fckgit 1.1.1 → 1.1.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/app.js +67 -67
- package/package.json +2 -2
package/dist/app.js
CHANGED
|
@@ -89,18 +89,18 @@ process.env.NODE_ENV!==`production`&&(function(){function t(){if(x=!1,T){var t=e
|
|
|
89
89
|
* This source code is licensed under the MIT license found in the
|
|
90
90
|
* LICENSE file in the root directory of this source tree.
|
|
91
91
|
*/
|
|
92
|
-
t.exports=function(e){function t(e,t,n,r){return new ga(e,t,n,r)}function n(){}function r(e){var t=`https://react.dev/errors/`+e;if(1<arguments.length){t+=`?args[]=`+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)t+=`&args[]=`+encodeURIComponent(arguments[n])}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 i(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,t.flags&4098&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function a(e){if(i(e)!==e)throw Error(r(188))}function o(e){var t=e.alternate;if(!t){if(t=i(e),t===null)throw Error(r(188));return t===e?e:null}for(var n=e,o=t;;){var s=n.return;if(s===null)break;var c=s.alternate;if(c===null){if(o=s.return,o!==null){n=o;continue}break}if(s.child===c.child){for(c=s.child;c;){if(c===n)return a(s),e;if(c===o)return a(s),t;c=c.sibling}throw Error(r(188))}if(n.return!==o.return)n=s,o=c;else{for(var l=!1,u=s.child;u;){if(u===n){l=!0,n=s,o=c;break}if(u===o){l=!0,o=s,n=c;break}u=u.sibling}if(!l){for(u=c.child;u;){if(u===n){l=!0,n=c,o=s;break}if(u===o){l=!0,o=c,n=s;break}u=u.sibling}if(!l)throw Error(r(189))}}if(n.alternate!==o)throw Error(r(190))}if(n.tag!==3)throw Error(r(188));return n.stateNode.current===n?e:t}function s(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=s(e),t!==null)return t;e=e.sibling}return null}function c(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(e.tag!==4&&(t=c(e),t!==null))return t;e=e.sibling}return null}function l(e){return typeof e!=`object`||!e?null:(e=Xa&&e[Xa]||e[`@@iterator`],typeof e==`function`?e:null)}function u(e){if(e==null)return null;if(typeof e==`function`)return e.$$typeof===Za?null:e.displayName||e.name||null;if(typeof e==`string`)return e;switch(e){case Ra:return`Fragment`;case Ba:return`Profiler`;case za:return`StrictMode`;case Wa:return`Suspense`;case Ga:return`SuspenseList`;case Ja:return`Activity`}if(typeof e==`object`)switch(e.$$typeof){case La:return`Portal`;case Ha:return e.displayName||`Context`;case Va:return(e._context.displayName||`Context`)+`.Consumer`;case Ua:var t=e.render;return e=e.displayName,e||=(e=t.displayName||t.name||``,e===``?`ForwardRef`:`ForwardRef(`+e+`)`),e;case Ka:return t=e.displayName||null,t===null?u(e.type)||`Memo`:t;case qa:t=e._payload,e=e._init;try{return u(e(t))}catch{}}return null}function d(e){return{current:e}}function f(e){0>
|
|
92
|
+
t.exports=function(e){function t(e,t,n,r){return new ga(e,t,n,r)}function n(){}function r(e){var t=`https://react.dev/errors/`+e;if(1<arguments.length){t+=`?args[]=`+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)t+=`&args[]=`+encodeURIComponent(arguments[n])}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 i(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,t.flags&4098&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function a(e){if(i(e)!==e)throw Error(r(188))}function o(e){var t=e.alternate;if(!t){if(t=i(e),t===null)throw Error(r(188));return t===e?e:null}for(var n=e,o=t;;){var s=n.return;if(s===null)break;var c=s.alternate;if(c===null){if(o=s.return,o!==null){n=o;continue}break}if(s.child===c.child){for(c=s.child;c;){if(c===n)return a(s),e;if(c===o)return a(s),t;c=c.sibling}throw Error(r(188))}if(n.return!==o.return)n=s,o=c;else{for(var l=!1,u=s.child;u;){if(u===n){l=!0,n=s,o=c;break}if(u===o){l=!0,o=s,n=c;break}u=u.sibling}if(!l){for(u=c.child;u;){if(u===n){l=!0,n=c,o=s;break}if(u===o){l=!0,o=c,n=s;break}u=u.sibling}if(!l)throw Error(r(189))}}if(n.alternate!==o)throw Error(r(190))}if(n.tag!==3)throw Error(r(188));return n.stateNode.current===n?e:t}function s(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=s(e),t!==null)return t;e=e.sibling}return null}function c(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(e.tag!==4&&(t=c(e),t!==null))return t;e=e.sibling}return null}function l(e){return typeof e!=`object`||!e?null:(e=Xa&&e[Xa]||e[`@@iterator`],typeof e==`function`?e:null)}function u(e){if(e==null)return null;if(typeof e==`function`)return e.$$typeof===Za?null:e.displayName||e.name||null;if(typeof e==`string`)return e;switch(e){case Ra:return`Fragment`;case Ba:return`Profiler`;case za:return`StrictMode`;case Wa:return`Suspense`;case Ga:return`SuspenseList`;case Ja:return`Activity`}if(typeof e==`object`)switch(e.$$typeof){case La:return`Portal`;case Ha:return e.displayName||`Context`;case Va:return(e._context.displayName||`Context`)+`.Consumer`;case Ua:var t=e.render;return e=e.displayName,e||=(e=t.displayName||t.name||``,e===``?`ForwardRef`:`ForwardRef(`+e+`)`),e;case Ka:return t=e.displayName||null,t===null?u(e.type)||`Memo`:t;case qa:t=e._payload,e=e._init;try{return u(e(t))}catch{}}return null}function d(e){return{current:e}}function f(e){0>_c||(e.current=gc[_c],gc[_c]=null,_c--)}function p(e,t){_c++,gc[_c]=e.current,e.current=t}function m(e){return e>>>=0,e===0?32:31-(bc(e)/xc|0)|0}function h(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 g(e,t,n){var r=e.pendingLanes;if(r===0)return 0;var i=0,a=e.suspendedLanes,o=e.pingedLanes;e=e.warmLanes;var s=r&134217727;return s===0?(s=r&~a,s===0?o===0?n||(n=r&~e,n!==0&&(i=h(n))):i=h(o):i=h(s)):(r=s&~a,r===0?(o&=s,o===0?n||(n=s&~e,n!==0&&(i=h(n))):i=h(o)):i=h(r)),i===0?0:t!==0&&t!==i&&(t&a)===0&&(a=i&-i,n=t&-t,a>=n||a===32&&n&4194048)?t:i}function _(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function v(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 y(){var e=wc;return wc<<=1,!(wc&62914560)&&(wc=4194304),e}function b(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function x(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function S(e,t,n,r,i,a){var o=e.pendingLanes;e.pendingLanes=n,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=n,e.entangledLanes&=n,e.errorRecoveryDisabledLanes&=n,e.shellSuspendCounter=0;var s=e.entanglements,c=e.expirationTimes,l=e.hiddenUpdates;for(n=o&~n;0<n;){var u=31-yc(n),d=1<<u;s[u]=0,c[u]=-1;var f=l[u];if(f!==null)for(l[u]=null,u=0;u<f.length;u++){var p=f[u];p!==null&&(p.lane&=-536870913)}n&=~d}r!==0&&C(e,r,0),a!==0&&i===0&&e.tag!==0&&(e.suspendedLanes|=a&~(o&~t))}function C(e,t,n){e.pendingLanes|=t,e.suspendedLanes&=~t;var r=31-yc(t);e.entangledLanes|=t,e.entanglements[r]=e.entanglements[r]|1073741824|n&261930}function w(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-yc(n),i=1<<r;i&t|e[r]&t&&(e[r]|=t),n&=~i}}function T(e,t){var n=t&-t;return n=n&42?1:E(n),(n&(e.suspendedLanes|t))===0?n:0}function E(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 D(e){return e&=-e,2<e?8<e?e&134217727?32:268435456:8:2}function k(e){if(typeof Nc==`function`&&Pc(e),Ic&&typeof Ic.setStrictMode==`function`)try{Ic.setStrictMode(Fc,e)}catch{}}function ee(e,t){return e===t&&(e!==0||1/e==1/t)||e!==e&&t!==t}function A(e){if(Bc===void 0)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);Bc=t&&t[1]||``,Vc=-1<e.stack.indexOf(`
|
|
93
93
|
at`)?` (<anonymous>)`:-1<e.stack.indexOf(`@`)?`@unknown:0:0`:``}return`
|
|
94
|
-
`+
|
|
94
|
+
`+Bc+e+Vc}function te(e,t){if(!e||Hc)return``;Hc=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var r={DetermineComponentFrameRoot:function(){try{if(t){var n=function(){throw Error()};if(Object.defineProperty(n.prototype,"props",{set:function(){throw Error()}}),typeof Reflect==`object`&&Reflect.construct){try{Reflect.construct(n,[])}catch(e){var r=e}Reflect.construct(e,[],n)}else{try{n.call()}catch(e){r=e}e.call(n.prototype)}}else{try{throw Error()}catch(e){r=e}(n=e())&&typeof n.catch==`function`&&n.catch(function(){})}}catch(e){if(e&&r&&typeof e.stack==`string`)return[e.stack,r.stack]}return[null,null]}};r.DetermineComponentFrameRoot.displayName=`DetermineComponentFrameRoot`;var i=Object.getOwnPropertyDescriptor(r.DetermineComponentFrameRoot,`name`);i&&i.configurable&&Object.defineProperty(r.DetermineComponentFrameRoot,"name",{value:`DetermineComponentFrameRoot`});var a=r.DetermineComponentFrameRoot(),o=a[0],s=a[1];if(o&&s){var c=o.split(`
|
|
95
95
|
`),l=s.split(`
|
|
96
96
|
`);for(i=r=0;r<c.length&&!c[r].includes(`DetermineComponentFrameRoot`);)r++;for(;i<l.length&&!l[i].includes(`DetermineComponentFrameRoot`);)i++;if(r===c.length||i===l.length)for(r=c.length-1,i=l.length-1;1<=r&&0<=i&&c[r]!==l[i];)i--;for(;1<=r&&0<=i;r--,i--)if(c[r]!==l[i]){if(r!==1||i!==1)do if(r--,i--,0>i||c[r]!==l[i]){var u=`
|
|
97
|
-
`+c[r].replace(` at new `,` at `);return e.displayName&&u.includes(`<anonymous>`)&&(u=u.replace(`<anonymous>`,e.displayName)),u}while(1<=r&&0<=i);break}}}finally{
|
|
97
|
+
`+c[r].replace(` at new `,` at `);return e.displayName&&u.includes(`<anonymous>`)&&(u=u.replace(`<anonymous>`,e.displayName)),u}while(1<=r&&0<=i);break}}}finally{Hc=!1,Error.prepareStackTrace=n}return(n=e?e.displayName||e.name:``)?A(n):``}function j(e,t){switch(e.tag){case 26:case 27:case 5:return A(e.type);case 16:return A(`Lazy`);case 13:return e.child!==t&&t!==null?A(`Suspense Fallback`):A(`Suspense`);case 19:return A(`SuspenseList`);case 0:case 15:return te(e.type,!1);case 11:return te(e.type.render,!1);case 1:return te(e.type,!0);case 31:return A(`Activity`);default:return``}}function ne(e){try{var t=``,n=null;do t+=j(e,n),n=e,e=e.return;while(e);return t}catch(e){return`
|
|
98
98
|
Error generating stack: `+e.message+`
|
|
99
|
-
`+e.stack}}function M(e,t){if(typeof e==`object`&&e){var n=Wc.get(e);return n===void 0?(t={value:e,source:t,stack:ne(t)},Wc.set(e,t),t):n}return{value:e,source:t,stack:ne(t)}}function re(e,t){Gc[Kc++]=U,Gc[Kc++]=qc,qc=e,U=t}function ie(e,t,n){Jc[Yc++]=Zc,Jc[Yc++]=Qc,Jc[Yc++]=Xc,Xc=e;var r=Zc;e=Qc;var i=32-bc(r)-1;r&=~(1<<i),n+=1;var a=32-bc(t)+i;if(30<a){var o=i-i%5;a=(r&(1<<o)-1).toString(32),r>>=o,i-=o,Zc=1<<32-bc(t)+i|n<<i|r,Qc=a+e}else Zc=1<<a|n<<i|r,Qc=e}function ae(e){e.return!==null&&(re(e,1),ie(e,1,0))}function oe(e){for(;e===qc;)qc=Gc[--Kc],Gc[Kc]=null,U=Gc[--Kc],Gc[Kc]=null;for(;e===Xc;)Xc=Jc[--Yc],Jc[Yc]=null,Qc=Jc[--Yc],Jc[Yc]=null,Zc=Jc[--Yc],Jc[Yc]=null}function se(e,t){Jc[Yc++]=Zc,Jc[Yc++]=Qc,Jc[Yc++]=Xc,Zc=t.id,Qc=t.overflow,Xc=e}function ce(e,t){p(tl,t),p(el,e),p($c,null),e=ro(t),f($c),p($c,e)}function le(){f($c),f(el),f(tl)}function ue(e){e.memoizedState!==null&&p(nl,e);var t=$c.current,n=io(t,e.type);t!==n&&(p(el,e),p($c,n))}function N(e){el.current===e&&(f($c),f(el)),nl.current===e&&(f(nl),go?Fo._currentValue=Po:Fo._currentValue2=Po)}function de(e){throw _e(M(Error(r(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?`text`:`HTML`,``)),e)),sl}function fe(e,t){if(!yo)throw Error(r(175));Ms(e.stateNode,e.type,e.memoizedProps,t,e)||de(e,!0)}function pe(e){for(rl=e.return;rl;)switch(rl.tag){case 5:case 31:case 13:ol=!1;return;case 27:case 3:ol=!0;return;default:rl=rl.return}}function me(e){if(!yo||e!==rl)return!1;if(!W)return pe(e),W=!0,!1;var t=e.tag;if(dc?t!==3&&t!==27&&(t!==5||Js(e.type)&&!uo(e.type,e.memoizedProps))&&il&&de(e):t!==3&&(t!==5||Js(e.type)&&!uo(e.type,e.memoizedProps))&&il&&de(e),pe(e),t===13){if(!yo)throw Error(r(316));if(e=e.memoizedState,e=e===null?null:e.dehydrated,!e)throw Error(r(317));il=Ls(e)}else if(t===31){if(e=e.memoizedState,e=e===null?null:e.dehydrated,!e)throw Error(r(317));il=Is(e)}else il=dc&&t===27?Ss(e.type,il):rl?xs(e.stateNode):null;return!0}function he(){yo&&(il=rl=null,W=!1)}function ge(){var e=al;return e!==null&&(Wu===null?Wu=e:Wu.push.apply(Wu,e),al=null),e}function _e(e){al===null?al=[e]:al.push(e)}function ve(e,t,n){go?(p(cl,t._currentValue),t._currentValue=n):(p(cl,t._currentValue2),t._currentValue2=n)}function P(e){var t=cl.current;go?e._currentValue=t:e._currentValue2=t,f(cl)}function ye(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)===t?r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t):(e.childLanes|=t,r!==null&&(r.childLanes|=t)),e===n)break;e=e.return}}function be(e,t,n,i){var a=e.child;for(a!==null&&(a.return=e);a!==null;){var o=a.dependencies;if(o!==null){var s=a.child;o=o.firstContext;a:for(;o!==null;){var c=o;o=a;for(var l=0;l<t.length;l++)if(c.context===t[l]){o.lanes|=n,c=o.alternate,c!==null&&(c.lanes|=n),ye(o.return,n,e),i||(s=null);break a}o=c.next}}else if(a.tag===18){if(s=a.return,s===null)throw Error(r(341));s.lanes|=n,o=s.alternate,o!==null&&(o.lanes|=n),ye(s,n,e),s=null}else s=a.child;if(s!==null)s.return=a;else for(s=a;s!==null;){if(s===e){s=null;break}if(a=s.sibling,a!==null){a.return=s.return,s=a;break}s=s.return}a=s}}function F(e,t,n,i){e=null;for(var a=t,o=!1;a!==null;){if(!o){if(a.flags&524288)o=!0;else if(a.flags&262144)break}if(a.tag===10){var s=a.alternate;if(s===null)throw Error(r(387));if(s=s.memoizedProps,s!==null){var c=a.type;Rc(a.pendingProps.value,s.value)||(e===null?e=[c]:e.push(c))}}else if(a===nl.current){if(s=a.alternate,s===null)throw Error(r(387));s.memoizedState.memoizedState!==a.memoizedState.memoizedState&&(e===null?e=[Fo]:e.push(Fo))}a=a.return}e!==null&&be(t,e,n,i),t.flags|=262144}function xe(e){for(e=e.firstContext;e!==null;){var t=e.context;if(!Rc(go?t._currentValue:t._currentValue2,e.memoizedValue))return!0;e=e.next}return!1}function Se(e){ll=e,ul=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function Ce(e){return Te(ll,e)}function we(e,t){return ll===null&&Se(e),Te(e,t)}function Te(e,t){var n=go?t._currentValue:t._currentValue2;if(t={context:t,memoizedValue:n,next:null},ul===null){if(e===null)throw Error(r(308));ul=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else ul=ul.next=t;return n}function Ee(){return{controller:new dl,data:new Map,refCount:0}}function De(e){e.refCount--,e.refCount===0&&fl(pl,function(){e.controller.abort()})}function Oe(){}function ke(e){e!==gl&&e.next===null&&(gl===null?hl=gl=e:gl=gl.next=e),vl=!0,_l||(_l=!0,Ie())}function Ae(e,t){if(!yl&&vl){yl=!0;do for(var n=!1,r=hl;r!==null;){if(!t)if(e!==0){var i=r.pendingLanes;if(i===0)var a=0;else{var o=r.suspendedLanes,s=r.pingedLanes;a=(1<<31-bc(42|e)+1)-1,a&=i&~(o&~s),a=a&201326741?a&201326741|1:a?a|2:0}a!==0&&(n=!0,Fe(r,a))}else a=Au,a=g(r,r===Ou?a:0,r.cancelPendingCommit!==null||r.timeoutHandle!==ho),!(a&3)||_(r,a)||(n=!0,Fe(r,a));r=r.next}while(n);yl=!1}}function je(){Me()}function Me(){vl=_l=!1;var e=0;bl!==0&&To()&&(e=bl);for(var t=kc(),n=null,r=hl;r!==null;){var i=r.next,a=Ne(r,t);a===0?(r.next=null,n===null?hl=i:n.next=i,i===null&&(gl=n)):(n=r,(e!==0||a&3)&&(vl=!0)),r=i}Zu!==0&&Zu!==5||Ae(e,!1),bl!==0&&(bl=0)}function Ne(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,i=e.expirationTimes,a=e.pendingLanes&-62914561;0<a;){var o=31-bc(a),s=1<<o,c=i[o];c===-1?((s&n)===0||(s&r)!==0)&&(i[o]=v(s,t)):c<=t&&(e.expiredLanes|=s),a&=~s}if(t=Ou,n=Au,n=g(e,e===t?n:0,e.cancelPendingCommit!==null||e.timeoutHandle!==ho),r=e.callbackNode,n===0||e===t&&(ju===2||ju===9)||e.cancelPendingCommit!==null)return r!==null&&r!==null&&H(r),e.callbackNode=null,e.callbackPriority=0;if(!(n&3)||_(e,n)){if(t=n&-n,t===e.callbackPriority)return t;switch(r!==null&&H(r),D(n)){case 2:case 8:n=jc;break;case 32:n=Mc;break;case 268435456:n=Nc;break;default:n=Mc}return r=Pe.bind(null,e),n=Ec(n,r),e.callbackPriority=t,e.callbackNode=n,t}return r!==null&&r!==null&&H(r),e.callbackPriority=2,e.callbackNode=null,2}function Pe(e,t){if(Zu!==0&&Zu!==5)return e.callbackNode=null,e.callbackPriority=0,null;var n=e.callbackNode;if(oa()&&e.callbackNode!==n)return null;var r=Au;return r=g(e,e===Ou?r:0,e.cancelPendingCommit!==null||e.timeoutHandle!==ho),r===0?null:(Pi(e,r,t),Ne(e,kc()),e.callbackNode!=null&&e.callbackNode===n?Pe.bind(null,e):null)}function Fe(e,t){if(oa())return null;Pi(e,t,!0)}function Ie(){Lo?Ro(function(){Du&6?Ec(Ac,je):Me()}):Ec(Ac,je)}function Le(){if(bl===0){var e=Cl;e===0&&(e=Cc,Cc<<=1,!(Cc&261888)&&(Cc=256)),bl=e}return bl}function Re(e,t){if(xl===null){var n=xl=[];Sl=0,Cl=Le(),wl={status:`pending`,value:void 0,then:function(e){n.push(e)}}}return Sl++,t.then(ze,ze),t}function ze(){if(--Sl===0&&xl!==null){wl!==null&&(wl.status=`fulfilled`);var e=xl;xl=null,Cl=0,wl=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function Be(e,t){var n=[],r={status:`pending`,value:null,reason:null,then:function(e){n.push(e)}};return e.then(function(){r.status=`fulfilled`,r.value=t;for(var e=0;e<n.length;e++)(0,n[e])(t)},function(e){for(r.status=`rejected`,r.reason=e,e=0;e<n.length;e++)(0,n[e])(void 0)}),r}function Ve(){var e=El.current;return e===null?Ou.pooledCache:e}function I(e,t){t===null?p(El,El.current):p(El,t.pool)}function He(){var e=Ve();return e===null?null:{parent:go?ml._currentValue:ml._currentValue2,pool:e}}function Ue(e,t){if(Rc(e,t))return!0;if(typeof e!=`object`||!e||typeof t!=`object`||!t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var i=n[r];if(!Bc.call(t,i)||!Rc(e[i],t[i]))return!1}return!0}function We(e){return e=e.status,e===`fulfilled`||e===`rejected`}function Ge(e,t,n){switch(n=e[n],n===void 0?e.push(t):n!==t&&(t.then(Oe,Oe),t=n),t.status){case`fulfilled`:return t.value;case`rejected`:throw e=t.reason,Je(e),e;default:if(typeof t.status==`string`)t.then(Oe,Oe);else{if(e=Ou,e!==null&&100<e.shellSuspendCounter)throw Error(r(482));e=t,e.status=`pending`,e.then(function(e){if(t.status===`pending`){var n=t;n.status=`fulfilled`,n.value=e}},function(e){if(t.status===`pending`){var n=t;n.status=`rejected`,n.reason=e}})}switch(t.status){case`fulfilled`:return t.value;case`rejected`:throw e=t.reason,Je(e),e}throw jl=t,Dl}}function Ke(e){try{var t=e._init;return t(e._payload)}catch(e){throw typeof e==`object`&&e&&typeof e.then==`function`?(jl=e,Dl):e}}function qe(){if(jl===null)throw Error(r(459));var e=jl;return jl=null,e}function Je(e){if(e===Dl||e===kl)throw Error(r(483))}function Ye(e){var t=Nl;return Nl+=1,Ml===null&&(Ml=[]),Ge(Ml,e,t)}function Xe(e,t){t=t.props.ref,e.ref=t===void 0?null:t}function Ze(e,t){throw t.$$typeof===Fa?Error(r(525)):(e=Object.prototype.toString.call(t),Error(r(31,e===`[object Object]`?`object with keys {`+Object.keys(t).join(`, `)+`}`:e)))}function Qe(e){function n(t,n){if(e){var r=t.deletions;r===null?(t.deletions=[n],t.flags|=16):r.push(n)}}function i(t,r){if(!e)return null;for(;r!==null;)n(t,r),r=r.sibling;return null}function a(e){for(var t=new Map;e!==null;)e.key===null?t.set(e.index,e):t.set(e.key,e),e=e.sibling;return t}function o(e,t){return e=va(e,t),e.index=0,e.sibling=null,e}function s(t,n,r){return t.index=r,e?(r=t.alternate,r===null?(t.flags|=67108866,n):(r=r.index,r<n?(t.flags|=67108866,n):r)):(t.flags|=1048576,n)}function c(t){return e&&t.alternate===null&&(t.flags|=67108866),t}function u(e,t,n,r){return t===null||t.tag!==6?(t=Sa(n,e.mode,r),t.return=e,t):(t=o(t,n),t.return=e,t)}function d(e,t,n,r){var i=n.type;return i===Ra?p(e,t,n.props.children,r,n.key):t!==null&&(t.elementType===i||typeof i==`object`&&i&&i.$$typeof===qa&&Ke(i)===t.type)?(t=o(t,n.props),Xe(t,n),t.return=e,t):(t=ba(n.type,n.key,n.props,null,e.mode,r),Xe(t,n),t.return=e,t)}function f(e,t,n,r){return t===null||t.tag!==4||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?(t=wa(n,e.mode,r),t.return=e,t):(t=o(t,n.children||[]),t.return=e,t)}function p(e,t,n,r,i){return t===null||t.tag!==7?(t=xa(n,e.mode,r,i),t.return=e,t):(t=o(t,n),t.return=e,t)}function m(e,t,n){if(typeof t==`string`&&t!==``||typeof t==`number`||typeof t==`bigint`)return t=Sa(``+t,e.mode,n),t.return=e,t;if(typeof t==`object`&&t){switch(t.$$typeof){case Ia:return n=ba(t.type,t.key,t.props,null,e.mode,n),Xe(n,t),n.return=e,n;case La:return t=wa(t,e.mode,n),t.return=e,t;case qa:return t=Ke(t),m(e,t,n)}if(Qa(t)||l(t))return t=xa(t,e.mode,n,null),t.return=e,t;if(typeof t.then==`function`)return m(e,Ye(t),n);if(t.$$typeof===Ha)return m(e,we(e,t),n);Ze(e,t)}return null}function h(e,t,n,r){var i=t===null?null:t.key;if(typeof n==`string`&&n!==``||typeof n==`number`||typeof n==`bigint`)return i===null?u(e,t,``+n,r):null;if(typeof n==`object`&&n){switch(n.$$typeof){case Ia:return n.key===i?d(e,t,n,r):null;case La:return n.key===i?f(e,t,n,r):null;case qa:return n=Ke(n),h(e,t,n,r)}if(Qa(n)||l(n))return i===null?p(e,t,n,r,null):null;if(typeof n.then==`function`)return h(e,t,Ye(n),r);if(n.$$typeof===Ha)return h(e,t,we(e,n),r);Ze(e,n)}return null}function g(e,t,n,r,i){if(typeof r==`string`&&r!==``||typeof r==`number`||typeof r==`bigint`)return e=e.get(n)||null,u(t,e,``+r,i);if(typeof r==`object`&&r){switch(r.$$typeof){case Ia:return e=e.get(r.key===null?n:r.key)||null,d(t,e,r,i);case La:return e=e.get(r.key===null?n:r.key)||null,f(t,e,r,i);case qa:return r=Ke(r),g(e,t,n,r,i)}if(Qa(r)||l(r))return e=e.get(n)||null,p(t,e,r,i,null);if(typeof r.then==`function`)return g(e,t,n,Ye(r),i);if(r.$$typeof===Ha)return g(e,t,n,we(t,r),i);Ze(t,r)}return null}function _(t,r,o,c){for(var l=null,u=null,d=r,f=r=0,p=null;d!==null&&f<o.length;f++){d.index>f?(p=d,d=null):p=d.sibling;var _=h(t,d,o[f],c);if(_===null){d===null&&(d=p);break}e&&d&&_.alternate===null&&n(t,d),r=s(_,r,f),u===null?l=_:u.sibling=_,u=_,d=p}if(f===o.length)return i(t,d),W&&re(t,f),l;if(d===null){for(;f<o.length;f++)d=m(t,o[f],c),d!==null&&(r=s(d,r,f),u===null?l=d:u.sibling=d,u=d);return W&&re(t,f),l}for(d=a(d);f<o.length;f++)p=g(d,t,f,o[f],c),p!==null&&(e&&p.alternate!==null&&d.delete(p.key===null?f:p.key),r=s(p,r,f),u===null?l=p:u.sibling=p,u=p);return e&&d.forEach(function(e){return n(t,e)}),W&&re(t,f),l}function v(t,o,c,l){if(c==null)throw Error(r(151));for(var u=null,d=null,f=o,p=o=0,_=null,v=c.next();f!==null&&!v.done;p++,v=c.next()){f.index>p?(_=f,f=null):_=f.sibling;var y=h(t,f,v.value,l);if(y===null){f===null&&(f=_);break}e&&f&&y.alternate===null&&n(t,f),o=s(y,o,p),d===null?u=y:d.sibling=y,d=y,f=_}if(v.done)return i(t,f),W&&re(t,p),u;if(f===null){for(;!v.done;p++,v=c.next())v=m(t,v.value,l),v!==null&&(o=s(v,o,p),d===null?u=v:d.sibling=v,d=v);return W&&re(t,p),u}for(f=a(f);!v.done;p++,v=c.next())v=g(f,t,p,v.value,l),v!==null&&(e&&v.alternate!==null&&f.delete(v.key===null?p:v.key),o=s(v,o,p),d===null?u=v:d.sibling=v,d=v);return e&&f.forEach(function(e){return n(t,e)}),W&&re(t,p),u}function y(e,t,a,s){if(typeof a==`object`&&a&&a.type===Ra&&a.key===null&&(a=a.props.children),typeof a==`object`&&a){switch(a.$$typeof){case Ia:a:{for(var u=a.key;t!==null;){if(t.key===u){if(u=a.type,u===Ra){if(t.tag===7){i(e,t.sibling),s=o(t,a.props.children),s.return=e,e=s;break a}}else if(t.elementType===u||typeof u==`object`&&u&&u.$$typeof===qa&&Ke(u)===t.type){i(e,t.sibling),s=o(t,a.props),Xe(s,a),s.return=e,e=s;break a}i(e,t);break}else n(e,t);t=t.sibling}a.type===Ra?(s=xa(a.props.children,e.mode,s,a.key),s.return=e,e=s):(s=ba(a.type,a.key,a.props,null,e.mode,s),Xe(s,a),s.return=e,e=s)}return c(e);case La:a:{for(u=a.key;t!==null;){if(t.key===u)if(t.tag===4&&t.stateNode.containerInfo===a.containerInfo&&t.stateNode.implementation===a.implementation){i(e,t.sibling),s=o(t,a.children||[]),s.return=e,e=s;break a}else{i(e,t);break}else n(e,t);t=t.sibling}s=wa(a,e.mode,s),s.return=e,e=s}return c(e);case qa:return a=Ke(a),y(e,t,a,s)}if(Qa(a))return _(e,t,a,s);if(l(a)){if(u=l(a),typeof u!=`function`)throw Error(r(150));return a=u.call(a),v(e,t,a,s)}if(typeof a.then==`function`)return y(e,t,Ye(a),s);if(a.$$typeof===Ha)return y(e,t,we(e,a),s);Ze(e,a)}return typeof a==`string`&&a!==``||typeof a==`number`||typeof a==`bigint`?(a=``+a,t!==null&&t.tag===6?(i(e,t.sibling),s=o(t,a),s.return=e,e=s):(i(e,t),s=Sa(a,e.mode,s),s.return=e,e=s),c(e)):i(e,t)}return function(e,n,r,i){try{Nl=0;var a=y(e,n,r,i);return Ml=null,a}catch(n){if(n===Dl||n===kl)throw n;var o=t(29,n,null,e.mode);return o.lanes=i,o.return=e,o}}}function $e(){for(var e=Ll,t=Rl=Ll=0;t<e;){var n=Il[t];Il[t++]=null;var r=Il[t];Il[t++]=null;var i=Il[t];Il[t++]=null;var a=Il[t];if(Il[t++]=null,r!==null&&i!==null){var o=r.pending;o===null?i.next=i:(i.next=o.next,o.next=i),r.pending=i}a!==0&&rt(n,i,a)}}function et(e,t,n,r){Il[Ll++]=e,Il[Ll++]=t,Il[Ll++]=n,Il[Ll++]=r,Rl|=r,e.lanes|=r,e=e.alternate,e!==null&&(e.lanes|=r)}function tt(e,t,n,r){return et(e,t,n,r),it(e)}function nt(e,t){return et(e,null,null,t),it(e)}function rt(e,t,n){e.lanes|=n;var r=e.alternate;r!==null&&(r.lanes|=n);for(var i=!1,a=e.return;a!==null;)a.childLanes|=n,r=a.alternate,r!==null&&(r.childLanes|=n),a.tag===22&&(e=a.stateNode,e===null||e._visibility&1||(i=!0)),e=a,a=a.return;return e.tag===3?(a=e.stateNode,i&&t!==null&&(i=31-bc(n),e=a.hiddenUpdates,r=e[i],r===null?e[i]=[t]:r.push(t),t.lane=n|536870912),a):null}function it(e){if(50<id)throw id=0,ad=null,Error(r(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}function at(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function ot(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 st(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function ct(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,Du&2){var i=r.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),r.pending=t,t=it(e),rt(e,null,n),t}return et(e,r,t,n),it(e)}function lt(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,n&4194048)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,w(e,n)}}function ut(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var i=null,a=null;if(n=n.firstBaseUpdate,n!==null){do{var o={lane:n.lane,tag:n.tag,payload:n.payload,callback:null,next:null};a===null?i=a=o:a=a.next=o,n=n.next}while(n!==null);a===null?i=a=t:a=a.next=t}else i=a=t;n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:a,shared:r.shared,callbacks:r.callbacks},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function dt(){if(Bl){var e=wl;if(e!==null)throw e}}function ft(e,t,n,r){Bl=!1;var i=e.updateQueue;zl=!1;var a=i.firstBaseUpdate,o=i.lastBaseUpdate,s=i.shared.pending;if(s!==null){i.shared.pending=null;var c=s,l=c.next;c.next=null,o===null?a=l:o.next=l,o=c;var u=e.alternate;u!==null&&(u=u.updateQueue,s=u.lastBaseUpdate,s!==o&&(s===null?u.firstBaseUpdate=l:s.next=l,u.lastBaseUpdate=c))}if(a!==null){var d=i.baseState;o=0,u=l=c=null,s=a;do{var f=s.lane&-536870913,p=f!==s.lane;if(p?(Au&f)===f:(r&f)===f){f!==0&&f===Cl&&(Bl=!0),u!==null&&(u=u.next={lane:0,tag:s.tag,payload:s.payload,callback:null,next:null});a:{var m=e,h=s;f=t;var g=n;switch(h.tag){case 1:if(m=h.payload,typeof m==`function`){d=m.call(g,d,f);break a}d=m;break a;case 3:m.flags=m.flags&-65537|128;case 0:if(m=h.payload,f=typeof m==`function`?m.call(g,d,f):m,f==null)break a;d=Pa({},d,f);break a;case 2:zl=!0}}f=s.callback,f!==null&&(e.flags|=64,p&&(e.flags|=8192),p=i.callbacks,p===null?i.callbacks=[f]:p.push(f))}else p={lane:f,tag:s.tag,payload:s.payload,callback:s.callback,next:null},u===null?(l=u=p,c=d):u=u.next=p,o|=f;if(s=s.next,s===null){if(s=i.shared.pending,s===null)break;p=s,s=p.next,p.next=null,i.lastBaseUpdate=p,i.shared.pending=null}}while(1);u===null&&(c=d),i.baseState=c,i.firstBaseUpdate=l,i.lastBaseUpdate=u,a===null&&(i.shared.lanes=0),Ru|=o,e.lanes=o,e.memoizedState=d}}function pt(e,t){if(typeof e!=`function`)throw Error(r(191,e));e.call(t)}function mt(e,t){var n=e.callbacks;if(n!==null)for(e.callbacks=null,e=0;e<n.length;e++)pt(n[e],t)}function L(e,t){e=Iu,p(Hl,e),p(Vl,t),Iu=e|t.baseLanes}function ht(){p(Hl,Iu),p(Vl,Vl.current)}function gt(){Iu=Hl.current,f(Vl),f(Hl)}function _t(e){var t=e.alternate;p(Gl,Gl.current&1),p(Ul,e),Wl===null&&(t===null||Vl.current!==null||t.memoizedState!==null)&&(Wl=e)}function vt(e){p(Gl,Gl.current),p(Ul,e),Wl===null&&(Wl=e)}function yt(e){e.tag===22?(p(Gl,Gl.current),p(Ul,e),Wl===null&&(Wl=e)):bt(e)}function bt(){p(Gl,Gl.current),p(Ul,Ul.current)}function xt(e){f(Ul),Wl===e&&(Wl=null),f(Gl)}function St(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||hs(n)||gs(n)))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)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}function Ct(){throw Error(r(321))}function wt(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Rc(e[n],t[n]))return!1;return!0}function Tt(e,t,n,r,i,a){return Kl=a,G=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,V.H=e===null||e.memoizedState===null?ru:iu,Zl=!1,a=n(r,i),Zl=!1,Xl&&(a=Dt(t,n,r,i)),Et(e),a}function Et(e){V.H=nu;var t=ql!==null&&ql.next!==null;if(Kl=0,Jl=ql=G=null,Yl=!1,$l=0,eu=null,t)throw Error(r(300));e===null||cu||(e=e.dependencies,e!==null&&xe(e)&&(cu=!0))}function Dt(e,t,n,i){G=e;var a=0;do{if(Xl&&(eu=null),$l=0,Xl=!1,25<=a)throw Error(r(301));if(a+=1,Jl=ql=null,e.updateQueue!=null){var o=e.updateQueue;o.lastEffect=null,o.events=null,o.stores=null,o.memoCache!=null&&(o.memoCache.index=0)}V.H=au,o=t(n,i)}while(Xl);return o}function Ot(){var e=V.H,t=e.useState()[0];return t=typeof t.then==`function`?Ft(t):t,e=e.useState()[0],(ql===null?null:ql.memoizedState)!==e&&(G.flags|=1024),t}function kt(){var e=Ql!==0;return Ql=0,e}function At(e,t,n){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~n}function jt(e){if(Yl){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}Yl=!1}Kl=0,Jl=ql=G=null,Xl=!1,$l=Ql=0,eu=null}function Mt(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Jl===null?G.memoizedState=Jl=e:Jl=Jl.next=e,Jl}function Nt(){if(ql===null){var e=G.alternate;e=e===null?null:e.memoizedState}else e=ql.next;var t=Jl===null?G.memoizedState:Jl.next;if(t!==null)Jl=t,ql=e;else{if(e===null)throw G.alternate===null?Error(r(467)):Error(r(310));ql=e,e={memoizedState:ql.memoizedState,baseState:ql.baseState,baseQueue:ql.baseQueue,queue:ql.queue,next:null},Jl===null?G.memoizedState=Jl=e:Jl=Jl.next=e}return Jl}function Pt(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Ft(e){var t=$l;return $l+=1,eu===null&&(eu=[]),e=Ge(eu,e,t),t=G,(Jl===null?t.memoizedState:Jl.next)===null&&(t=t.alternate,V.H=t===null||t.memoizedState===null?ru:iu),e}function It(e){if(typeof e==`object`&&e){if(typeof e.then==`function`)return Ft(e);if(e.$$typeof===Ha)return Ce(e)}throw Error(r(438,String(e)))}function Lt(e){var t=null,n=G.updateQueue;if(n!==null&&(t=n.memoCache),t==null){var r=G.alternate;r!==null&&(r=r.updateQueue,r!==null&&(r=r.memoCache,r!=null&&(t={data:r.data.map(function(e){return e.slice()}),index:0})))}if(t??={data:[],index:0},n===null&&(n=Pt(),G.updateQueue=n),n.memoCache=t,n=t.data[t.index],n===void 0)for(n=t.data[t.index]=Array(e),r=0;r<e;r++)n[r]=Ya;return t.index++,n}function Rt(e,t){return typeof t==`function`?t(e):t}function zt(e){return Bt(Nt(),ql,e)}function Bt(e,t,n){var i=e.queue;if(i===null)throw Error(r(311));i.lastRenderedReducer=n;var a=e.baseQueue,o=i.pending;if(o!==null){if(a!==null){var s=a.next;a.next=o.next,o.next=s}t.baseQueue=a=o,i.pending=null}if(o=e.baseState,a===null)e.memoizedState=o;else{t=a.next;var c=s=null,l=null,u=t,d=!1;do{var f=u.lane&-536870913;if(f===u.lane?(Kl&f)===f:(Au&f)===f){var p=u.revertLane;if(p===0)l!==null&&(l=l.next={lane:0,revertLane:0,gesture:null,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),f===Cl&&(d=!0);else if((Kl&p)===p){u=u.next,p===Cl&&(d=!0);continue}else f={lane:0,revertLane:u.revertLane,gesture:null,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null},l===null?(c=l=f,s=o):l=l.next=f,G.lanes|=p,Ru|=p;f=u.action,Zl&&n(o,f),o=u.hasEagerState?u.eagerState:n(o,f)}else p={lane:f,revertLane:u.revertLane,gesture:u.gesture,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null},l===null?(c=l=p,s=o):l=l.next=p,G.lanes|=f,Ru|=f;u=u.next}while(u!==null&&u!==t);if(l===null?s=o:l.next=c,!Rc(o,e.memoizedState)&&(cu=!0,d&&(n=wl,n!==null)))throw n;e.memoizedState=o,e.baseState=s,e.baseQueue=l,i.lastRenderedState=o}return a===null&&(i.lanes=0),[e.memoizedState,i.dispatch]}function Vt(e){var t=Nt(),n=t.queue;if(n===null)throw Error(r(311));n.lastRenderedReducer=e;var i=n.dispatch,a=n.pending,o=t.memoizedState;if(a!==null){n.pending=null;var s=a=a.next;do o=e(o,s.action),s=s.next;while(s!==a);Rc(o,t.memoizedState)||(cu=!0),t.memoizedState=o,t.baseQueue===null&&(t.baseState=o),n.lastRenderedState=o}return[o,i]}function Ht(e,t,n){var i=G,a=Nt(),o=W;if(o){if(n===void 0)throw Error(r(407));n=n()}else n=t();var s=!Rc((ql||a).memoizedState,n);if(s&&(a.memoizedState=n,cu=!0),a=a.queue,hn(Gt.bind(null,i,a,e),[e]),a.getSnapshot!==t||s||Jl!==null&&Jl.memoizedState.tag&1){if(i.flags|=2048,ln(9,{destroy:void 0},Wt.bind(null,i,a,n,t),null),Ou===null)throw Error(r(349));o||Kl&127||Ut(i,t,n)}return n}function Ut(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=G.updateQueue,t===null?(t=Pt(),G.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function Wt(e,t,n,r){t.value=n,t.getSnapshot=r,Kt(t)&&qt(e)}function Gt(e,t,n){return n(function(){Kt(t)&&qt(e)})}function Kt(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Rc(e,n)}catch{return!0}}function qt(e){var t=nt(e,2);t!==null&&Ni(t,e,2)}function Jt(e){var t=Mt();if(typeof e==`function`){var n=e;if(e=n(),Zl){k(!0);try{n()}finally{k(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Rt,lastRenderedState:e},t}function Yt(e,t,n,r){return e.baseState=n,Bt(e,ql,typeof r==`function`?r:Rt)}function Xt(e,t,n,i,a){if(Ln(e))throw Error(r(485));if(e=t.action,e!==null){var o={payload:a,action:e,next:null,isTransition:!0,status:`pending`,value:null,reason:null,listeners:[],then:function(e){o.listeners.push(e)}};V.T===null?o.isTransition=!1:n(!0),i(o),n=t.pending,n===null?(o.next=t.pending=o,Zt(t,o)):(o.next=n.next,t.pending=n.next=o)}}function Zt(e,t){var n=t.action,r=t.payload,i=e.state;if(t.isTransition){var a=V.T,o={};V.T=o;try{var s=n(i,r),c=V.S;c!==null&&c(o,s),Qt(e,t,s)}catch(n){en(e,t,n)}finally{a!==null&&o.types!==null&&(a.types=o.types),V.T=a}}else try{a=n(i,r),Qt(e,t,a)}catch(n){en(e,t,n)}}function Qt(e,t,n){typeof n==`object`&&n&&typeof n.then==`function`?n.then(function(n){$t(e,t,n)},function(n){return en(e,t,n)}):$t(e,t,n)}function $t(e,t,n){t.status=`fulfilled`,t.value=n,tn(t),e.state=n,t=e.pending,t!==null&&(n=t.next,n===t?e.pending=null:(n=n.next,t.next=n,Zt(e,n)))}function en(e,t,n){var r=e.pending;if(e.pending=null,r!==null){r=r.next;do t.status=`rejected`,t.reason=n,tn(t),t=t.next;while(t!==r)}e.action=null}function tn(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function nn(e,t){return t}function rn(e,t){if(W){var n=Ou.formState;if(n!==null){a:{var r=G;if(W){if(il){var i=ys(il,ol);if(i){il=xs(i),r=bs(i);break a}}de(r)}r=!1}r&&(t=n[0])}}n=Mt(),n.memoizedState=n.baseState=t,r={pending:null,lanes:0,dispatch:null,lastRenderedReducer:nn,lastRenderedState:t},n.queue=r,n=Pn.bind(null,G,r),r.dispatch=n,r=Jt(!1);var a=In.bind(null,G,!1,r.queue);return r=Mt(),i={state:t,dispatch:null,action:e,pending:null},r.queue=i,n=Xt.bind(null,G,i,a,n),i.dispatch=n,r.memoizedState=e,[t,n,!1]}function an(e){return on(Nt(),ql,e)}function on(e,t,n){if(t=Bt(e,t,nn)[0],e=zt(Rt)[0],typeof t==`object`&&t&&typeof t.then==`function`)try{var r=Ft(t)}catch(e){throw e===Dl?kl:e}else r=t;t=Nt();var i=t.queue,a=i.dispatch;return n!==t.memoizedState&&(G.flags|=2048,ln(9,{destroy:void 0},sn.bind(null,i,n),null)),[r,a,e]}function sn(e,t){e.action=t}function cn(e){var t=Nt(),n=ql;if(n!==null)return on(t,n,e);Nt(),t=t.memoizedState,n=Nt();var r=n.queue.dispatch;return n.memoizedState=e,[t,r,!1]}function ln(e,t,n,r){return e={tag:e,create:n,deps:r,inst:t,next:null},t=G.updateQueue,t===null&&(t=Pt(),G.updateQueue=t),n=t.lastEffect,n===null?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e),e}function un(){return Nt().memoizedState}function dn(e,t,n,r){var i=Mt();G.flags|=e,i.memoizedState=ln(1|t,{destroy:void 0},n,r===void 0?null:r)}function pn(e,t,n,r){var i=Nt();r=r===void 0?null:r;var a=i.memoizedState.inst;ql!==null&&r!==null&&wt(r,ql.memoizedState.deps)?i.memoizedState=ln(t,a,n,r):(G.flags|=e,i.memoizedState=ln(1|t,a,n,r))}function mn(e,t){dn(8390656,8,e,t)}function hn(e,t){pn(2048,8,e,t)}function gn(e){G.flags|=4;var t=G.updateQueue;if(t===null)t=Pt(),G.updateQueue=t,t.events=[e];else{var n=t.events;n===null?t.events=[e]:n.push(e)}}function _n(e){var t=Nt().memoizedState;return gn({ref:t,nextImpl:e}),function(){if(Du&2)throw Error(r(440));return t.impl.apply(void 0,arguments)}}function vn(e,t){return pn(4,2,e,t)}function yn(e,t){return pn(4,4,e,t)}function bn(e,t){if(typeof t==`function`){e=e();var n=t(e);return function(){typeof n==`function`?n():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function xn(e,t,n){n=n==null?null:n.concat([e]),pn(4,4,bn.bind(null,t,e),n)}function Sn(){}function Cn(e,t){var n=Nt();t=t===void 0?null:t;var r=n.memoizedState;return t!==null&&wt(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function wn(e,t){var n=Nt();t=t===void 0?null:t;var r=n.memoizedState;if(t!==null&&wt(t,r[1]))return r[0];if(r=e(),Zl){k(!0);try{e()}finally{k(!1)}}return n.memoizedState=[r,t],r}function Tn(e,t,n){return n===void 0||Kl&1073741824&&!(Au&261930)?e.memoizedState=t:(e.memoizedState=n,e=Mi(),G.lanes|=e,Ru|=e,n)}function En(e,t,n,r){return Rc(n,t)?n:Vl.current===null?!(Kl&42)||Kl&1073741824&&!(Au&261930)?(cu=!0,e.memoizedState=n):(e=Mi(),G.lanes|=e,Ru|=e,t):(e=Tn(e,n,r),Rc(e,t)||(cu=!0),e)}function Dn(e,t,n,r,i){var a=Co();So(a!==0&&8>a?a:8);var o=V.T,s={};V.T=s,In(e,!1,t,n);try{var c=i(),l=V.S;l!==null&&l(s,c),typeof c==`object`&&c&&typeof c.then==`function`?Fn(e,t,Be(c,r),ji(e)):Fn(e,t,r,ji(e))}catch(n){Fn(e,t,{then:function(){},status:`rejected`,reason:n},ji())}finally{So(a),o!==null&&s.types!==null&&(o.types=s.types),V.T=o}}function On(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:Po,baseState:Po,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Rt,lastRenderedState:Po},next:null};var n={};return t.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Rt,lastRenderedState:n},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function kn(){return Ce(Fo)}function An(){return Nt().memoizedState}function jn(){return Nt().memoizedState}function Mn(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var n=ji();e=st(n);var r=ct(t,e,n);r!==null&&(Ni(r,t,n),lt(r,t,n)),t={cache:Ee()},e.payload=t;return}t=t.return}}function Nn(e,t,n){var r=ji();n={lane:r,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},Ln(e)?Rn(t,n):(n=tt(e,t,n,r),n!==null&&(Ni(n,e,r),zn(n,t,r)))}function Pn(e,t,n){Fn(e,t,n,ji())}function Fn(e,t,n,r){var i={lane:r,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};if(Ln(e))Rn(t,i);else{var a=e.alternate;if(e.lanes===0&&(a===null||a.lanes===0)&&(a=t.lastRenderedReducer,a!==null))try{var o=t.lastRenderedState,s=a(o,n);if(i.hasEagerState=!0,i.eagerState=s,Rc(s,o))return et(e,t,i,0),Ou===null&&$e(),!1}catch{}if(n=tt(e,t,i,r),n!==null)return Ni(n,e,r),zn(n,t,r),!0}return!1}function In(e,t,n,i){if(i={lane:2,revertLane:Le(),gesture:null,action:i,hasEagerState:!1,eagerState:null,next:null},Ln(e)){if(t)throw Error(r(479))}else t=tt(e,n,i,2),t!==null&&Ni(t,e,2)}function Ln(e){var t=e.alternate;return e===G||t!==null&&t===G}function Rn(e,t){Xl=Yl=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function zn(e,t,n){if(n&4194048){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,w(e,n)}}function Bn(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:Pa({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}function Vn(e,t,n,r,i,a,o){return e=e.stateNode,typeof e.shouldComponentUpdate==`function`?e.shouldComponentUpdate(r,a,o):t.prototype&&t.prototype.isPureReactComponent?!Ue(n,r)||!Ue(i,a):!0}function Hn(e,t,n,r){e=t.state,typeof t.componentWillReceiveProps==`function`&&t.componentWillReceiveProps(n,r),typeof t.UNSAFE_componentWillReceiveProps==`function`&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&ou.enqueueReplaceState(t,t.state,null)}function Un(e,t){var n=t;if(`ref`in t)for(var r in n={},t)r!==`ref`&&(n[r]=t[r]);if(e=e.defaultProps)for(var i in n===t&&(n=Pa({},n)),e)n[i]===void 0&&(n[i]=e[i]);return n}function Wn(e,t){try{var n=e.onUncaughtError;n(t.value,{componentStack:t.stack})}catch(e){setTimeout(function(){throw e})}}function Gn(e,t,n){try{var r=e.onCaughtError;r(n.value,{componentStack:n.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(e){setTimeout(function(){throw e})}}function Kn(e,t,n){return n=st(n),n.tag=3,n.payload={element:null},n.callback=function(){Wn(e,t)},n}function qn(e){return e=st(e),e.tag=3,e}function Jn(e,t,n,r){var i=n.type.getDerivedStateFromError;if(typeof i==`function`){var a=r.value;e.payload=function(){return i(a)},e.callback=function(){Gn(t,n,r)}}var o=n.stateNode;o!==null&&typeof o.componentDidCatch==`function`&&(e.callback=function(){Gn(t,n,r),typeof i!=`function`&&(Xu===null?Xu=new Set([this]):Xu.add(this));var e=r.stack;this.componentDidCatch(r.value,{componentStack:e===null?``:e})})}function Yn(e,t,n,i,a){if(n.flags|=32768,typeof i==`object`&&i&&typeof i.then==`function`){if(t=n.alternate,t!==null&&F(t,n,a,!0),n=Ul.current,n!==null){switch(n.tag){case 31:case 13:return Wl===null?Gi():n.alternate===null&&Lu===0&&(Lu=3),n.flags&=-257,n.flags|=65536,n.lanes=a,i===Al?n.flags|=16384:(t=n.updateQueue,t===null?n.updateQueue=new Set([i]):t.add(i),ua(e,i,a)),!1;case 22:return n.flags|=65536,i===Al?n.flags|=16384:(t=n.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([i])},n.updateQueue=t):(n=t.retryQueue,n===null?t.retryQueue=new Set([i]):n.add(i)),ua(e,i,a)),!1}throw Error(r(435,n.tag))}return ua(e,i,a),Gi(),!1}if(W)return t=Ul.current,t===null?(i!==sl&&(t=Error(r(423),{cause:i}),_e(M(t,n))),e=e.current.alternate,e.flags|=65536,a&=-a,e.lanes|=a,i=M(i,n),a=Kn(e.stateNode,i,a),ut(e,a),Lu!==4&&(Lu=2)):(!(t.flags&65536)&&(t.flags|=256),t.flags|=65536,t.lanes=a,i!==sl&&(e=Error(r(422),{cause:i}),_e(M(e,n)))),!1;var o=Error(r(520),{cause:i});if(o=M(o,n),Uu===null?Uu=[o]:Uu.push(o),Lu!==4&&(Lu=2),t===null)return!0;i=M(i,n),n=t;do{switch(n.tag){case 3:return n.flags|=65536,e=a&-a,n.lanes|=e,e=Kn(n.stateNode,i,e),ut(n,e),!1;case 1:if(t=n.type,o=n.stateNode,!(n.flags&128)&&(typeof t.getDerivedStateFromError==`function`||o!==null&&typeof o.componentDidCatch==`function`&&(Xu===null||!Xu.has(o))))return n.flags|=65536,a&=-a,n.lanes|=a,a=qn(a),Jn(a,e,n,i),ut(n,a),!1}n=n.return}while(n!==null);return!1}function Xn(e,t,n,r){t.child=e===null?Fl(t,null,n,r):Pl(t,e.child,n,r)}function Zn(e,t,n,r,i){n=n.render;var a=t.ref;if(`ref`in r){var o={};for(var s in r)s!==`ref`&&(o[s]=r[s])}else o=r;return Se(t),r=Tt(e,t,n,o,a,i),s=kt(),e!==null&&!cu?(At(e,t,i),vr(e,t,i)):(W&&s&&ae(t),t.flags|=1,Xn(e,t,r,i),t.child)}function Qn(e,t,n,r,i){if(e===null){var a=n.type;return typeof a==`function`&&!_a(a)&&a.defaultProps===void 0&&n.compare===null?(t.tag=15,t.type=a,$n(e,t,a,r,i)):(e=ba(n.type,null,r,t,t.mode,i),e.ref=t.ref,e.return=t,t.child=e)}if(a=e.child,!yr(e,i)){var o=a.memoizedProps;if(n=n.compare,n=n===null?Ue:n,n(o,r)&&e.ref===t.ref)return vr(e,t,i)}return t.flags|=1,e=va(a,r),e.ref=t.ref,e.return=t,t.child=e}function $n(e,t,n,r,i){if(e!==null){var a=e.memoizedProps;if(Ue(a,r)&&e.ref===t.ref)if(cu=!1,t.pendingProps=r=a,yr(e,i))e.flags&131072&&(cu=!0);else return t.lanes=e.lanes,vr(e,t,i)}return sr(e,t,n,r,i)}function er(e,t,n,r){var i=r.children,a=e===null?null:e.memoizedState;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),r.mode===`hidden`){if(t.flags&128){if(a=a===null?n:a.baseLanes|n,e!==null){for(r=t.child=e.child,i=0;r!==null;)i=i|r.lanes|r.childLanes,r=r.sibling;r=i&~a}else r=0,t.child=null;return nr(e,t,a,n,r)}if(n&536870912)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&I(t,a===null?null:a.cachePool),a===null?ht():L(t,a),yt(t);else return r=t.lanes=536870912,nr(e,t,a===null?n:a.baseLanes|n,n,r)}else a===null?(e!==null&&I(t,null),ht(),bt(t)):(I(t,a.cachePool),L(t,a),bt(t),t.memoizedState=null);return Xn(e,t,i,n),t.child}function tr(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function nr(e,t,n,r,i){var a=Ve();return a=a===null?null:{parent:go?ml._currentValue:ml._currentValue2,pool:a},t.memoizedState={baseLanes:n,cachePool:a},e!==null&&I(t,null),ht(),yt(t),e!==null&&F(e,t,r,!0),t.childLanes=i,null}function rr(e,t){return t=hr({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function ir(e,t,n){return Pl(t,e.child,null,n),e=rr(t,t.pendingProps),e.flags|=2,xt(t),t.memoizedState=null,e}function ar(e,t,n){var i=t.pendingProps,a=(t.flags&128)!=0;if(t.flags&=-129,e===null){if(W){if(i.mode===`hidden`)return e=rr(t,i),t.lanes=536870912,tr(null,e);if(vt(t),(e=il)?(e=As(e,ol),e!==null&&(t.memoizedState={dehydrated:e,treeContext:Xc===null?null:{id:Zc,overflow:Qc},retryLane:536870912,hydrationErrors:null},n=Ca(e),n.return=t,t.child=n,rl=t,il=null)):e=null,e===null)throw de(t);return t.lanes=536870912,null}return rr(t,i)}var o=e.memoizedState;if(o!==null){var s=o.dehydrated;if(vt(t),a)if(t.flags&256)t.flags&=-257,t=ir(e,t,n);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(r(558));else if(cu||F(e,t,n,!1),a=(n&e.childLanes)!==0,cu||a){if(i=Ou,i!==null&&(s=T(i,n),s!==0&&s!==o.retryLane))throw o.retryLane=s,nt(e,s),Ni(i,e,s),su;Gi(),t=ir(e,t,n)}else e=o.treeContext,yo&&(il=Ts(s),rl=t,W=!0,al=null,ol=!1,e!==null&&se(t,e)),t=rr(t,i),t.flags|=4096;return t}return e=va(e.child,{mode:i.mode,children:i.children}),e.ref=t.ref,t.child=e,e.return=t,e}function or(e,t){var n=t.ref;if(n===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof n!=`function`&&typeof n!=`object`)throw Error(r(284));(e===null||e.ref!==n)&&(t.flags|=4194816)}}function sr(e,t,n,r,i){return Se(t),n=Tt(e,t,n,r,void 0,i),r=kt(),e!==null&&!cu?(At(e,t,i),vr(e,t,i)):(W&&r&&ae(t),t.flags|=1,Xn(e,t,n,i),t.child)}function cr(e,t,n,r,i,a){return Se(t),t.updateQueue=null,n=Dt(t,r,n,i),Et(e),r=kt(),e!==null&&!cu?(At(e,t,a),vr(e,t,a)):(W&&r&&ae(t),t.flags|=1,Xn(e,t,n,a),t.child)}function lr(e,t,n,r,i){if(Se(t),t.stateNode===null){var a=yc,o=n.contextType;typeof o==`object`&&o&&(a=Ce(o)),a=new n(r,a),t.memoizedState=a.state!==null&&a.state!==void 0?a.state:null,a.updater=ou,t.stateNode=a,a._reactInternals=t,a=t.stateNode,a.props=r,a.state=t.memoizedState,a.refs={},at(t),o=n.contextType,a.context=typeof o==`object`&&o?Ce(o):yc,a.state=t.memoizedState,o=n.getDerivedStateFromProps,typeof o==`function`&&(Bn(t,n,o,r),a.state=t.memoizedState),typeof n.getDerivedStateFromProps==`function`||typeof a.getSnapshotBeforeUpdate==`function`||typeof a.UNSAFE_componentWillMount!=`function`&&typeof a.componentWillMount!=`function`||(o=a.state,typeof a.componentWillMount==`function`&&a.componentWillMount(),typeof a.UNSAFE_componentWillMount==`function`&&a.UNSAFE_componentWillMount(),o!==a.state&&ou.enqueueReplaceState(a,a.state,null),ft(t,r,a,i),dt(),a.state=t.memoizedState),typeof a.componentDidMount==`function`&&(t.flags|=4194308),r=!0}else if(e===null){a=t.stateNode;var s=t.memoizedProps,c=Un(n,s);a.props=c;var l=a.context,u=n.contextType;o=yc,typeof u==`object`&&u&&(o=Ce(u));var d=n.getDerivedStateFromProps;u=typeof d==`function`||typeof a.getSnapshotBeforeUpdate==`function`,s=t.pendingProps!==s,u||typeof a.UNSAFE_componentWillReceiveProps!=`function`&&typeof a.componentWillReceiveProps!=`function`||(s||l!==o)&&Hn(t,a,r,o),zl=!1;var f=t.memoizedState;a.state=f,ft(t,r,a,i),dt(),l=t.memoizedState,s||f!==l||zl?(typeof d==`function`&&(Bn(t,n,d,r),l=t.memoizedState),(c=zl||Vn(t,n,c,r,f,l,o))?(u||typeof a.UNSAFE_componentWillMount!=`function`&&typeof a.componentWillMount!=`function`||(typeof a.componentWillMount==`function`&&a.componentWillMount(),typeof a.UNSAFE_componentWillMount==`function`&&a.UNSAFE_componentWillMount()),typeof a.componentDidMount==`function`&&(t.flags|=4194308)):(typeof a.componentDidMount==`function`&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=l),a.props=r,a.state=l,a.context=o,r=c):(typeof a.componentDidMount==`function`&&(t.flags|=4194308),r=!1)}else{a=t.stateNode,ot(e,t),o=t.memoizedProps,u=Un(n,o),a.props=u,d=t.pendingProps,f=a.context,l=n.contextType,c=yc,typeof l==`object`&&l&&(c=Ce(l)),s=n.getDerivedStateFromProps,(l=typeof s==`function`||typeof a.getSnapshotBeforeUpdate==`function`)||typeof a.UNSAFE_componentWillReceiveProps!=`function`&&typeof a.componentWillReceiveProps!=`function`||(o!==d||f!==c)&&Hn(t,a,r,c),zl=!1,f=t.memoizedState,a.state=f,ft(t,r,a,i),dt();var p=t.memoizedState;o!==d||f!==p||zl||e!==null&&e.dependencies!==null&&xe(e.dependencies)?(typeof s==`function`&&(Bn(t,n,s,r),p=t.memoizedState),(u=zl||Vn(t,n,u,r,f,p,c)||e!==null&&e.dependencies!==null&&xe(e.dependencies))?(l||typeof a.UNSAFE_componentWillUpdate!=`function`&&typeof a.componentWillUpdate!=`function`||(typeof a.componentWillUpdate==`function`&&a.componentWillUpdate(r,p,c),typeof a.UNSAFE_componentWillUpdate==`function`&&a.UNSAFE_componentWillUpdate(r,p,c)),typeof a.componentDidUpdate==`function`&&(t.flags|=4),typeof a.getSnapshotBeforeUpdate==`function`&&(t.flags|=1024)):(typeof a.componentDidUpdate!=`function`||o===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!=`function`||o===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=p),a.props=r,a.state=p,a.context=c,r=u):(typeof a.componentDidUpdate!=`function`||o===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!=`function`||o===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),r=!1)}return a=r,or(e,t),r=(t.flags&128)!=0,a||r?(a=t.stateNode,n=r&&typeof n.getDerivedStateFromError!=`function`?null:a.render(),t.flags|=1,e!==null&&r?(t.child=Pl(t,e.child,null,i),t.child=Pl(t,null,n,i)):Xn(e,t,n,i),t.memoizedState=a.state,e=t.child):e=vr(e,t,i),e}function ur(e,t,n,r){return he(),t.flags|=256,Xn(e,t,n,r),t.child}function dr(e){return{baseLanes:e,cachePool:He()}}function fr(e,t,n){return e=e===null?0:e.childLanes&~n,t&&(e|=Vu),e}function pr(e,t,n){var i=t.pendingProps,a=!1,o=(t.flags&128)!=0,s;if((s=o)||(s=e!==null&&e.memoizedState===null?!1:(Gl.current&2)!=0),s&&(a=!0,t.flags&=-129),s=(t.flags&32)!=0,t.flags&=-33,e===null){if(W){if(a?_t(t):bt(t),(e=il)?(e=js(e,ol),e!==null&&(t.memoizedState={dehydrated:e,treeContext:Xc===null?null:{id:Zc,overflow:Qc},retryLane:536870912,hydrationErrors:null},n=Ca(e),n.return=t,t.child=n,rl=t,il=null)):e=null,e===null)throw de(t);return gs(e)?t.lanes=32:t.lanes=536870912,null}var c=i.children;return i=i.fallback,a?(bt(t),a=t.mode,c=hr({mode:`hidden`,children:c},a),i=xa(i,a,n,null),c.return=t,i.return=t,c.sibling=i,t.child=c,i=t.child,i.memoizedState=dr(n),i.childLanes=fr(e,s,n),t.memoizedState=lu,tr(null,i)):(_t(t),mr(t,c))}var l=e.memoizedState;if(l!==null&&(c=l.dehydrated,c!==null)){if(o)t.flags&256?(_t(t),t.flags&=-257,t=gr(e,t,n)):t.memoizedState===null?(bt(t),c=i.fallback,a=t.mode,i=hr({mode:`visible`,children:i.children},a),c=xa(c,a,n,null),c.flags|=2,i.return=t,c.return=t,i.sibling=c,t.child=i,Pl(t,e.child,null,n),i=t.child,i.memoizedState=dr(n),i.childLanes=fr(e,s,n),t.memoizedState=lu,t=tr(null,i)):(bt(t),t.child=e.child,t.flags|=128,t=null);else if(_t(t),gs(c))s=_s(c).digest,i=Error(r(419)),i.stack=``,i.digest=s,_e({value:i,source:null,stack:null}),t=gr(e,t,n);else if(cu||F(e,t,n,!1),s=(n&e.childLanes)!==0,cu||s){if(s=Ou,s!==null&&(i=T(s,n),i!==0&&i!==l.retryLane))throw l.retryLane=i,nt(e,i),Ni(s,e,i),su;hs(c)||Gi(),t=gr(e,t,n)}else hs(c)?(t.flags|=192,t.child=e.child,t=null):(e=l.treeContext,yo&&(il=Es(c),rl=t,W=!0,al=null,ol=!1,e!==null&&se(t,e)),t=mr(t,i.children),t.flags|=4096);return t}return a?(bt(t),c=i.fallback,a=t.mode,l=e.child,o=l.sibling,i=va(l,{mode:`hidden`,children:i.children}),i.subtreeFlags=l.subtreeFlags&65011712,o===null?(c=xa(c,a,n,null),c.flags|=2):c=va(o,c),c.return=t,i.return=t,i.sibling=c,t.child=i,tr(null,i),i=t.child,c=e.child.memoizedState,c===null?c=dr(n):(a=c.cachePool,a===null?a=He():(l=go?ml._currentValue:ml._currentValue2,a=a.parent===l?a:{parent:l,pool:l}),c={baseLanes:c.baseLanes|n,cachePool:a}),i.memoizedState=c,i.childLanes=fr(e,s,n),t.memoizedState=lu,tr(e.child,i)):(_t(t),n=e.child,e=n.sibling,n=va(n,{mode:`visible`,children:i.children}),n.return=t,n.sibling=null,e!==null&&(s=t.deletions,s===null?(t.deletions=[e],t.flags|=16):s.push(e)),t.child=n,t.memoizedState=null,n)}function mr(e,t){return t=hr({mode:`visible`,children:t},e.mode),t.return=e,e.child=t}function hr(e,n){return e=t(22,e,null,n),e.lanes=0,e}function gr(e,t,n){return Pl(t,e.child,null,n),e=mr(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function _r(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),ye(e.return,t,n)}function R(e,t,n,r,i,a){var o=e.memoizedState;o===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i,treeForkCount:a}:(o.isBackwards=t,o.rendering=null,o.renderingStartTime=0,o.last=r,o.tail=n,o.tailMode=i,o.treeForkCount=a)}function z(e,t,n){var r=t.pendingProps,i=r.revealOrder,a=r.tail;r=r.children;var o=Gl.current,s=(o&2)!=0;if(s?(o=o&1|2,t.flags|=128):o&=1,p(Gl,o),Xn(e,t,r,n),r=W?U:0,!s&&e!==null&&e.flags&128)a:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&_r(e,n,t);else if(e.tag===19)_r(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break a;for(;e.sibling===null;){if(e.return===null||e.return===t)break a;e=e.return}e.sibling.return=e.return,e=e.sibling}switch(i){case`forwards`:for(n=t.child,i=null;n!==null;)e=n.alternate,e!==null&&St(e)===null&&(i=n),n=n.sibling;n=i,n===null?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),R(t,!1,i,n,a,r);break;case`backwards`:case`unstable_legacy-backwards`:for(n=null,i=t.child,t.child=null;i!==null;){if(e=i.alternate,e!==null&&St(e)===null){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}R(t,!0,n,null,a,r);break;case`together`:R(t,!1,null,null,void 0,r);break;default:t.memoizedState=null}return t.child}function vr(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),Ru|=t.lanes,(n&t.childLanes)===0)if(e!==null){if(F(e,t,n,!1),(n&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(r(153));if(t.child!==null){for(e=t.child,n=va(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=va(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function yr(e,t){return(e.lanes&t)===0?(e=e.dependencies,!!(e!==null&&xe(e))):!0}function br(e,t,n){switch(t.tag){case 3:ce(t,t.stateNode.containerInfo),ve(t,ml,e.memoizedState.cache),he();break;case 27:case 5:ue(t);break;case 4:ce(t,t.stateNode.containerInfo);break;case 10:ve(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,vt(t),null;break;case 13:var r=t.memoizedState;if(r!==null)return r.dehydrated===null?(n&t.child.childLanes)===0?(_t(t),e=vr(e,t,n),e===null?null:e.sibling):pr(e,t,n):(_t(t),t.flags|=128,null);_t(t);break;case 19:var i=(e.flags&128)!=0;if(r=(n&t.childLanes)!==0,r||=(F(e,t,n,!1),(n&t.childLanes)!==0),i){if(r)return z(e,t,n);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),p(Gl,Gl.current),r)break;return null;case 22:return t.lanes=0,er(e,t,n,t.pendingProps);case 24:ve(t,ml,e.memoizedState.cache)}return vr(e,t,n)}function xr(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps)cu=!0;else{if(!yr(e,n)&&!(t.flags&128))return cu=!1,br(e,t,n);cu=!!(e.flags&131072)}else cu=!1,W&&t.flags&1048576&&ie(t,U,t.index);switch(t.lanes=0,t.tag){case 16:a:{var i=t.pendingProps;if(e=Ke(t.elementType),t.type=e,typeof e==`function`)_a(e)?(i=Un(e,i),t.tag=1,t=lr(null,t,e,i,n)):(t.tag=0,t=sr(null,t,e,i,n));else{if(e!=null){var a=e.$$typeof;if(a===Ua){t.tag=11,t=Zn(null,t,e,i,n);break a}else if(a===Ka){t.tag=14,t=Qn(null,t,e,i,n);break a}}throw t=u(e)||e,Error(r(306,t,``))}}return t;case 0:return sr(e,t,t.type,t.pendingProps,n);case 1:return i=t.type,a=Un(i,t.pendingProps),lr(e,t,i,a,n);case 3:a:{if(ce(t,t.stateNode.containerInfo),e===null)throw Error(r(387));var o=t.pendingProps;a=t.memoizedState,i=a.element,ot(e,t),ft(t,o,null,n);var s=t.memoizedState;if(o=s.cache,ve(t,ml,o),o!==a.cache&&be(t,[ml],n,!0),dt(),o=s.element,yo&&a.isDehydrated)if(a={element:o,isDehydrated:!1,cache:s.cache},t.updateQueue.baseState=a,t.memoizedState=a,t.flags&256){t=ur(e,t,o,n);break a}else if(o!==i){i=M(Error(r(424)),t),_e(i),t=ur(e,t,o,n);break a}else for(yo&&(il=ws(t.stateNode.containerInfo),rl=t,W=!0,al=null,ol=!0),n=Fl(t,null,o,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(he(),o===i){t=vr(e,t,n);break a}Xn(e,t,o,n)}t=t.child}return t;case 26:if(Zs)return or(e,t),e===null?(n=ec(t.type,null,t.pendingProps,null))?t.memoizedState=n:W||(t.stateNode=oc(t.type,t.pendingProps,tl.current,t)):t.memoizedState=ec(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:if(dc)return ue(t),e===null&&dc&&W&&(i=t.stateNode=fc(t.type,t.pendingProps,tl.current,$c.current,!1),rl=t,ol=!0,il=Ds(t.type,i,il)),Xn(e,t,t.pendingProps.children,n),or(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&W&&(Ys(t.type,t.pendingProps,$c.current),(a=i=il)&&(i=Os(i,t.type,t.pendingProps,ol),i===null?a=!1:(t.stateNode=i,rl=t,il=Cs(i),ol=!1,a=!0)),a||de(t)),ue(t),a=t.type,o=t.pendingProps,s=e===null?null:e.memoizedProps,i=o.children,uo(a,o)?i=null:s!==null&&uo(a,s)&&(t.flags|=32),t.memoizedState!==null&&(a=Tt(e,t,Ot,null,null,n),go?Fo._currentValue=a:Fo._currentValue2=a),or(e,t),Xn(e,t,i,n),t.child;case 6:return e===null&&W&&(Xs(t.pendingProps,$c.current),(e=n=il)&&(n=ks(n,t.pendingProps,ol),n===null?e=!1:(t.stateNode=n,rl=t,il=null,e=!0)),e||de(t)),null;case 13:return pr(e,t,n);case 4:return ce(t,t.stateNode.containerInfo),i=t.pendingProps,e===null?t.child=Pl(t,null,i,n):Xn(e,t,i,n),t.child;case 11:return Zn(e,t,t.type,t.pendingProps,n);case 7:return Xn(e,t,t.pendingProps,n),t.child;case 8:return Xn(e,t,t.pendingProps.children,n),t.child;case 12:return Xn(e,t,t.pendingProps.children,n),t.child;case 10:return i=t.pendingProps,ve(t,t.type,i.value),Xn(e,t,i.children,n),t.child;case 9:return a=t.type._context,i=t.pendingProps.children,Se(t),a=Ce(a),i=i(a),t.flags|=1,Xn(e,t,i,n),t.child;case 14:return Qn(e,t,t.type,t.pendingProps,n);case 15:return $n(e,t,t.type,t.pendingProps,n);case 19:return z(e,t,n);case 31:return ar(e,t,n);case 22:return er(e,t,n,t.pendingProps);case 24:return Se(t),i=Ce(ml),e===null?(a=Ve(),a===null&&(a=Ou,o=Ee(),a.pooledCache=o,o.refCount++,o!==null&&(a.pooledCacheLanes|=n),a=o),t.memoizedState={parent:i,cache:a},at(t),ve(t,ml,a)):((e.lanes&n)!==0&&(ot(e,t),ft(t,null,null,n),dt()),a=e.memoizedState,o=t.memoizedState,a.parent===i?(i=o.cache,ve(t,ml,i),i!==a.cache&&be(t,[ml],n,!0)):(a={parent:i,cache:i},t.memoizedState=a,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=a),ve(t,ml,i))),Xn(e,t,t.pendingProps.children,n),t.child;case 29:throw t.pendingProps}throw Error(r(156,t.tag))}function Sr(e){e.flags|=4}function Cr(e){vo&&(e.flags|=8)}function wr(e,t){if(e!==null&&e.child===t.child)return!1;if(t.flags&16)return!0;for(e=t.child;e!==null;){if(e.flags&8218||e.subtreeFlags&8218)return!0;e=e.sibling}return!1}function Tr(e,t,n,r){if(_o)for(n=t.child;n!==null;){if(n.tag===5||n.tag===6)co(e,n.stateNode);else if(!(n.tag===4||dc&&n.tag===27)&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}else if(vo)for(var i=t.child;i!==null;){if(i.tag===5){var a=i.stateNode;n&&r&&(a=ps(a,i.type,i.memoizedProps)),co(e,a)}else if(i.tag===6)a=i.stateNode,n&&r&&(a=ms(a,i.memoizedProps)),co(e,a);else if(i.tag!==4){if(i.tag===22&&i.memoizedState!==null)a=i.child,a!==null&&(a.return=i),Tr(e,i,!0,!0);else if(i.child!==null){i.child.return=i,i=i.child;continue}}if(i===t)break;for(;i.sibling===null;){if(i.return===null||i.return===t)return;i=i.return}i.sibling.return=i.return,i=i.sibling}}function Er(e,t,n,r){var i=!1;if(vo)for(var a=t.child;a!==null;){if(a.tag===5){var o=a.stateNode;n&&r&&(o=ps(o,a.type,a.memoizedProps)),us(e,o)}else if(a.tag===6)o=a.stateNode,n&&r&&(o=ms(o,a.memoizedProps)),us(e,o);else if(a.tag!==4){if(a.tag===22&&a.memoizedState!==null)i=a.child,i!==null&&(i.return=a),Er(e,a,!0,!0),i=!0;else if(a.child!==null){a.child.return=a,a=a.child;continue}}if(a===t)break;for(;a.sibling===null;){if(a.return===null||a.return===t)return i;a=a.return}a.sibling.return=a.return,a=a.sibling}return i}function Dr(e,t){if(vo&&wr(e,t)){e=t.stateNode;var n=e.containerInfo,r=ls();Er(r,t,!1,!1),e.pendingChildren=r,Sr(t),ds(n,r)}}function Or(e,t,n,r){if(_o)e.memoizedProps!==r&&Sr(t);else if(vo){var i=e.stateNode,a=e.memoizedProps;if((e=wr(e,t))||a!==r){var o=$c.current;a=cs(i,n,a,r,!e,null),a===i?t.stateNode=i:(Cr(t),lo(a,n,r,o)&&Sr(t),t.stateNode=a,e&&Tr(a,t,!1,!1))}else t.stateNode=i}}function kr(e,t,n,r,i){if(e.mode&32&&(n===null?Do(t,r):Oo(t,n,r))){if(e.flags|=16777216,(i&335544128)===i||ko(t,r))if(Ao(e.stateNode,t,r))e.flags|=8192;else if(Hi())e.flags|=8192;else throw jl=Al,Ol}else e.flags&=-16777217}function Ar(e,t){if(cc(t)){if(e.flags|=16777216,!lc(t))if(Hi())e.flags|=8192;else throw jl=Al,Ol}else e.flags&=-16777217}function jr(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag===22?536870912:y(),e.lanes|=t,Hu|=t)}function Mr(e,t){if(!W)switch(e.tailMode){case`hidden`:t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case`collapsed`:n=e.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function Nr(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags&65011712,r|=i.flags&65011712,i.return=e,i=i.sibling;else for(i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags,r|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function Pr(e,t,n){var i=t.pendingProps;switch(oe(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Nr(t),null;case 1:return Nr(t),null;case 3:return n=t.stateNode,i=null,e!==null&&(i=e.memoizedState.cache),t.memoizedState.cache!==i&&(t.flags|=2048),P(ml),le(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(e===null||e.child===null)&&(me(t)?Sr(t):e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,ge())),Dr(e,t),Nr(t),null;case 26:if(Zs){var a=t.type,o=t.memoizedState;return e===null?(Sr(t),o===null?(Nr(t),kr(t,a,null,i,n)):(Nr(t),Ar(t,o))):o?o===e.memoizedState?(Nr(t),t.flags&=-16777217):(Sr(t),Nr(t),Ar(t,o)):(o=e.memoizedProps,_o?o!==i&&Sr(t):Or(e,t,a,i),Nr(t),kr(t,a,o,i,n)),null}case 27:if(dc){if(N(t),n=tl.current,a=t.type,e!==null&&t.stateNode!=null)_o?e.memoizedProps!==i&&Sr(t):Or(e,t,a,i);else{if(!i){if(t.stateNode===null)throw Error(r(166));return Nr(t),null}e=$c.current,me(t)?fe(t,e):(e=fc(a,i,n,e,!0),t.stateNode=e,Sr(t))}return Nr(t),null}case 5:if(N(t),a=t.type,e!==null&&t.stateNode!=null)Or(e,t,a,i);else{if(!i){if(t.stateNode===null)throw Error(r(166));return Nr(t),null}if(o=$c.current,me(t))fe(t,o),Hs(t.stateNode,a,i,o)&&(t.flags|=64);else{var s=so(a,i,tl.current,o,t);Cr(t),Tr(s,t,!1,!1),t.stateNode=s,lo(s,a,i,o)&&Sr(t)}}return Nr(t),kr(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,n),null;case 6:if(e&&t.stateNode!=null)n=e.memoizedProps,_o?n!==i&&Sr(t):vo&&(n===i?t.stateNode=e.stateNode:(e=tl.current,n=$c.current,Cr(t),t.stateNode=fo(i,e,n,t)));else{if(typeof i!=`string`&&t.stateNode===null)throw Error(r(166));if(e=tl.current,n=$c.current,me(t)){if(!yo)throw Error(r(176));if(e=t.stateNode,n=t.memoizedProps,i=null,a=rl,a!==null)switch(a.tag){case 27:case 5:i=a.memoizedProps}Ns(e,n,t,i)||de(t,!0)}else Cr(t),t.stateNode=fo(i,e,n,t)}return Nr(t),null;case 31:if(n=t.memoizedState,e===null||e.memoizedState!==null){if(i=me(t),n!==null){if(e===null){if(!i)throw Error(r(318));if(!yo)throw Error(r(556));if(e=t.memoizedState,e=e===null?null:e.dehydrated,!e)throw Error(r(557));Ps(e,t)}else he(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;Nr(t),e=!1}else n=ge(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=n),e=!0;if(!e)return t.flags&256?(xt(t),t):(xt(t),null);if(t.flags&128)throw Error(r(558))}return Nr(t),null;case 13:if(i=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(a=me(t),i!==null&&i.dehydrated!==null){if(e===null){if(!a)throw Error(r(318));if(!yo)throw Error(r(344));if(a=t.memoizedState,a=a===null?null:a.dehydrated,!a)throw Error(r(317));Fs(a,t)}else he(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;Nr(t),a=!1}else a=ge(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=a),a=!0;if(!a)return t.flags&256?(xt(t),t):(xt(t),null)}return xt(t),t.flags&128?(t.lanes=n,t):(n=i!==null,e=e!==null&&e.memoizedState!==null,n&&(i=t.child,a=null,i.alternate!==null&&i.alternate.memoizedState!==null&&i.alternate.memoizedState.cachePool!==null&&(a=i.alternate.memoizedState.cachePool.pool),o=null,i.memoizedState!==null&&i.memoizedState.cachePool!==null&&(o=i.memoizedState.cachePool.pool),o!==a&&(i.flags|=2048)),n!==e&&n&&(t.child.flags|=8192),jr(t,t.updateQueue),Nr(t),null);case 4:return le(),Dr(e,t),e===null&&xo(t.stateNode.containerInfo),Nr(t),null;case 10:return P(t.type),Nr(t),null;case 19:if(f(Gl),i=t.memoizedState,i===null)return Nr(t),null;if(a=(t.flags&128)!=0,o=i.rendering,o===null)if(a)Mr(i,!1);else{if(Lu!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(o=St(e),o!==null){for(t.flags|=128,Mr(i,!1),e=o.updateQueue,t.updateQueue=e,jr(t,e),t.subtreeFlags=0,e=n,n=t.child;n!==null;)ya(n,e),n=n.sibling;return p(Gl,Gl.current&1|2),W&&re(t,i.treeForkCount),t.child}e=e.sibling}i.tail!==null&&kc()>Ju&&(t.flags|=128,a=!0,Mr(i,!1),t.lanes=4194304)}else{if(!a)if(e=St(o),e!==null){if(t.flags|=128,a=!0,e=e.updateQueue,t.updateQueue=e,jr(t,e),Mr(i,!0),i.tail===null&&i.tailMode===`hidden`&&!o.alternate&&!W)return Nr(t),null}else 2*kc()-i.renderingStartTime>Ju&&n!==536870912&&(t.flags|=128,a=!0,Mr(i,!1),t.lanes=4194304);i.isBackwards?(o.sibling=t.child,t.child=o):(e=i.last,e===null?t.child=o:e.sibling=o,i.last=o)}return i.tail===null?(Nr(t),null):(e=i.tail,i.rendering=e,i.tail=e.sibling,i.renderingStartTime=kc(),e.sibling=null,n=Gl.current,p(Gl,a?n&1|2:n&1),W&&re(t,i.treeForkCount),e);case 22:case 23:return xt(t),gt(),i=t.memoizedState!==null,e===null?i&&(t.flags|=8192):e.memoizedState!==null!==i&&(t.flags|=8192),i?n&536870912&&!(t.flags&128)&&(Nr(t),t.subtreeFlags&6&&(t.flags|=8192)):Nr(t),n=t.updateQueue,n!==null&&jr(t,n.retryQueue),n=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),i=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(i=t.memoizedState.cachePool.pool),i!==n&&(t.flags|=2048),e!==null&&f(El),null;case 24:return n=null,e!==null&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),P(ml),Nr(t),null;case 25:return null;case 30:return null}throw Error(r(156,t.tag))}function Fr(e,t){switch(oe(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return P(ml),le(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return N(t),null;case 31:if(t.memoizedState!==null){if(xt(t),t.alternate===null)throw Error(r(340));he()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(xt(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(r(340));he()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return f(Gl),null;case 4:return le(),null;case 10:return P(t.type),null;case 22:case 23:return xt(t),gt(),e!==null&&f(El),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return P(ml),null;case 25:return null;default:return null}}function Ir(e,t){switch(oe(t),t.tag){case 3:P(ml),le();break;case 26:case 27:case 5:N(t);break;case 4:le();break;case 31:t.memoizedState!==null&&xt(t);break;case 13:xt(t);break;case 19:f(Gl);break;case 10:P(t.type);break;case 22:case 23:xt(t),gt(),e!==null&&f(El);break;case 24:P(ml)}}function Lr(e,t){try{var n=t.updateQueue,r=n===null?null:n.lastEffect;if(r!==null){var i=r.next;n=i;do{if((n.tag&e)===e){r=void 0;var a=n.create,o=n.inst;r=a(),o.destroy=r}n=n.next}while(n!==i)}}catch(e){la(t,t.return,e)}}function Rr(e,t,n){try{var r=t.updateQueue,i=r===null?null:r.lastEffect;if(i!==null){var a=i.next;r=a;do{if((r.tag&e)===e){var o=r.inst,s=o.destroy;if(s!==void 0){o.destroy=void 0,i=t;var c=n,l=s;try{l()}catch(e){la(i,c,e)}}}r=r.next}while(r!==a)}}catch(e){la(t,t.return,e)}}function zr(e){var t=e.updateQueue;if(t!==null){var n=e.stateNode;try{mt(t,n)}catch(t){la(e,e.return,t)}}}function Br(e,t,n){n.props=Un(e.type,e.memoizedProps),n.state=e.memoizedState;try{n.componentWillUnmount()}catch(n){la(e,t,n)}}function Vr(e,t){try{var n=e.ref;if(n!==null){switch(e.tag){case 26:case 27:case 5:var r=no(e.stateNode);break;case 30:r=e.stateNode;break;default:r=e.stateNode}typeof n==`function`?e.refCleanup=n(r):n.current=r}}catch(n){la(e,t,n)}}function Hr(e,t){var n=e.ref,r=e.refCleanup;if(n!==null)if(typeof r==`function`)try{r()}catch(n){la(e,t,n)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof n==`function`)try{n(null)}catch(n){la(e,t,n)}else n.current=null}function Ur(e){var t=e.type,n=e.memoizedProps,r=e.stateNode;try{Xo(r,t,n,e)}catch(t){la(e,e.return,t)}}function Wr(e,t,n){try{Zo(e.stateNode,e.type,n,t,e)}catch(t){la(e,e.return,t)}}function Gr(e){return e.tag===5||e.tag===3||(Zs?e.tag===26:!1)||(dc?e.tag===27&&gc(e.type):!1)||e.tag===4}function Kr(e){a:for(;;){for(;e.sibling===null;){if(e.return===null||Gr(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(dc&&e.tag===27&&gc(e.type)||e.flags&2||e.child===null||e.tag===4)continue a;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function qr(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?$o(n,e,t):Jo(n,e);else if(r!==4&&(dc&&r===27&&gc(e.type)&&(n=e.stateNode,t=null),e=e.child,e!==null))for(qr(e,t,n),e=e.sibling;e!==null;)qr(e,t,n),e=e.sibling}function Jr(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?Qo(n,e,t):qo(n,e);else if(r!==4&&(dc&&r===27&&gc(e.type)&&(n=e.stateNode),e=e.child,e!==null))for(Jr(e,t,n),e=e.sibling;e!==null;)Jr(e,t,n),e=e.sibling}function Yr(e,t,n){e=e.containerInfo;try{fs(e,n)}catch(e){la(t,t.return,e)}}function Xr(e){var t=e.stateNode,n=e.memoizedProps;try{pc(e.type,n,t,e)}catch(t){la(e,e.return,t)}}function Zr(e,t){for(ao(e.containerInfo),mu=t;mu!==null;)if(e=mu,t=e.child,e.subtreeFlags&1028&&t!==null)t.return=e,mu=t;else for(;mu!==null;){e=mu;var n=e.alternate;switch(t=e.flags,e.tag){case 0:if(t&4&&(t=e.updateQueue,t=t===null?null:t.events,t!==null))for(var i=0;i<t.length;i++){var a=t[i];a.ref.impl=a.nextImpl}break;case 11:case 15:break;case 1:if(t&1024&&n!==null){t=void 0,i=e,a=n.memoizedProps,n=n.memoizedState;var o=i.stateNode;try{var s=Un(i.type,a);t=o.getSnapshotBeforeUpdate(s,n),o.__reactInternalSnapshotBeforeUpdate=t}catch(e){la(i,i.return,e)}}break;case 3:t&1024&&_o&&ss(e.stateNode.containerInfo);break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if(t&1024)throw Error(r(163))}if(t=e.sibling,t!==null){t.return=e.return,mu=t;break}mu=e.return}}function Qr(e,t,n){var r=n.flags;switch(n.tag){case 0:case 11:case 15:ui(e,n),r&4&&Lr(5,n);break;case 1:if(ui(e,n),r&4)if(e=n.stateNode,t===null)try{e.componentDidMount()}catch(e){la(n,n.return,e)}else{var i=Un(n.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(i,t,e.__reactInternalSnapshotBeforeUpdate)}catch(e){la(n,n.return,e)}}r&64&&zr(n),r&512&&Vr(n,n.return);break;case 3:if(ui(e,n),r&64&&(r=n.updateQueue,r!==null)){if(e=null,n.child!==null)switch(n.child.tag){case 27:case 5:e=no(n.child.stateNode);break;case 1:e=n.child.stateNode}try{mt(r,e)}catch(e){la(n,n.return,e)}}break;case 27:dc&&t===null&&r&4&&Xr(n);case 26:case 5:if(ui(e,n),t===null){if(r&4)Ur(n);else if(r&64){e=n.type,t=n.memoizedProps,i=n.stateNode;try{Rs(i,e,t,n)}catch(e){la(n,n.return,e)}}}r&512&&Vr(n,n.return);break;case 12:ui(e,n);break;case 31:ui(e,n),r&4&&ni(e,n);break;case 13:ui(e,n),r&4&&ri(e,n),r&64&&(r=n.memoizedState,r!==null&&(r=r.dehydrated,r!==null&&(n=pa.bind(null,n),vs(r,n))));break;case 22:if(r=n.memoizedState!==null||uu,!r){t=t!==null&&t.memoizedState!==null||du,i=uu;var a=du;uu=r,(du=t)&&!a?fi(e,n,(n.subtreeFlags&8772)!=0):ui(e,n),uu=i,du=a}break;case 30:break;default:ui(e,n)}}function $r(e){var t=e.alternate;t!==null&&(e.alternate=null,$r(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&Eo(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}function ei(e,t,n){for(n=n.child;n!==null;)ti(e,t,n),n=n.sibling}function ti(e,t,n){if(Lc&&typeof Lc.onCommitFiberUnmount==`function`)try{Lc.onCommitFiberUnmount(Ic,n)}catch{}switch(n.tag){case 26:if(Zs){du||Hr(n,t),ei(e,t,n),n.memoizedState?nc(n.memoizedState):n.stateNode&&ac(n.stateNode);break}case 27:if(dc){du||Hr(n,t);var r=hu,i=gu;gc(n.type)&&(hu=n.stateNode,gu=!1),ei(e,t,n),mc(n.stateNode),hu=r,gu=i;break}case 5:du||Hr(n,t);case 6:if(_o){if(r=hu,i=gu,hu=null,ei(e,t,n),hu=r,gu=i,hu!==null)if(gu)try{ts(hu,n.stateNode)}catch(e){la(n,t,e)}else try{es(hu,n.stateNode)}catch(e){la(n,t,e)}}else ei(e,t,n);break;case 18:_o&&hu!==null&&(gu?Gs(hu,n.stateNode):Ws(hu,n.stateNode));break;case 4:_o?(r=hu,i=gu,hu=n.stateNode.containerInfo,gu=!0,ei(e,t,n),hu=r,gu=i):(vo&&Yr(n.stateNode,n,ls()),ei(e,t,n));break;case 0:case 11:case 14:case 15:Rr(2,n,t),du||Rr(4,n,t),ei(e,t,n);break;case 1:du||(Hr(n,t),r=n.stateNode,typeof r.componentWillUnmount==`function`&&Br(n,t,r)),ei(e,t,n);break;case 21:ei(e,t,n);break;case 22:du=(r=du)||n.memoizedState!==null,ei(e,t,n),du=r;break;default:ei(e,t,n)}}function ni(e,t){if(yo&&t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{Bs(e)}catch(e){la(t,t.return,e)}}}function ri(e,t){if(yo&&t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{Vs(e)}catch(e){la(t,t.return,e)}}function ii(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new pu),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new pu),t;default:throw Error(r(435,e.tag))}}function ai(e,t){var n=ii(e);t.forEach(function(t){if(!n.has(t)){n.add(t);var r=ma.bind(null,e,t);t.then(r,r)}})}function oi(e,t){var n=t.deletions;if(n!==null)for(var i=0;i<n.length;i++){var a=n[i],o=e,s=t;if(_o){var c=s;a:for(;c!==null;){switch(c.tag){case 27:if(dc){if(gc(c.type)){hu=c.stateNode,gu=!1;break a}break}case 5:hu=c.stateNode,gu=!1;break a;case 3:case 4:hu=c.stateNode.containerInfo,gu=!0;break a}c=c.return}if(hu===null)throw Error(r(160));ti(o,s,a),hu=null,gu=!1}else ti(o,s,a);o=a.alternate,o!==null&&(o.return=null),a.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)si(t,e),t=t.sibling}function si(e,t){var n=e.alternate,i=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:oi(t,e),ci(e),i&4&&(Rr(3,e,e.return),Lr(3,e),Rr(5,e,e.return));break;case 1:oi(t,e),ci(e),i&512&&(du||n===null||Hr(n,n.return)),i&64&&uu&&(e=e.updateQueue,e!==null&&(i=e.callbacks,i!==null&&(n=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=n===null?i:n.concat(i))));break;case 26:if(Zs){var a=_u;if(oi(t,e),ci(e),i&512&&(du||n===null||Hr(n,n.return)),i&4){i=n===null?null:n.memoizedState;var o=e.memoizedState;n===null?o===null?e.stateNode===null?e.stateNode=rc(a,e.type,e.memoizedProps,e):ic(a,e.type,e.stateNode):e.stateNode=tc(a,o,e.memoizedProps):i===o?o===null&&e.stateNode!==null&&Wr(e,e.memoizedProps,n.memoizedProps):(i===null?n.stateNode!==null&&ac(n.stateNode):nc(i),o===null?ic(a,e.type,e.stateNode):tc(a,o,e.memoizedProps))}break}case 27:if(dc){oi(t,e),ci(e),i&512&&(du||n===null||Hr(n,n.return)),n!==null&&i&4&&Wr(e,e.memoizedProps,n.memoizedProps);break}case 5:if(oi(t,e),ci(e),i&512&&(du||n===null||Hr(n,n.return)),_o){if(e.flags&32){a=e.stateNode;try{ns(a)}catch(t){la(e,e.return,t)}}i&4&&e.stateNode!=null&&(a=e.memoizedProps,Wr(e,a,n===null?a:n.memoizedProps)),i&1024&&(fu=!0)}else vo&&e.alternate!==null&&(e.alternate.stateNode=e.stateNode);break;case 6:if(oi(t,e),ci(e),i&4&&_o){if(e.stateNode===null)throw Error(r(162));i=e.memoizedProps,n=n===null?i:n.memoizedProps,a=e.stateNode;try{Yo(a,n,i)}catch(t){la(e,e.return,t)}}break;case 3:if(Zs?(sc(),a=_u,_u=$s(t.containerInfo),oi(t,e),_u=a):oi(t,e),ci(e),i&4){if(_o&&yo&&n!==null&&n.memoizedState.isDehydrated)try{zs(t.containerInfo)}catch(t){la(e,e.return,t)}if(vo){i=t.containerInfo,n=t.pendingChildren;try{fs(i,n)}catch(t){la(e,e.return,t)}}}fu&&(fu=!1,li(e));break;case 4:Zs?(n=_u,_u=$s(e.stateNode.containerInfo),oi(t,e),ci(e),_u=n):(oi(t,e),ci(e)),i&4&&vo&&Yr(e.stateNode,e,e.stateNode.pendingChildren);break;case 12:oi(t,e),ci(e);break;case 31:oi(t,e),ci(e),i&4&&(i=e.updateQueue,i!==null&&(e.updateQueue=null,ai(e,i)));break;case 13:oi(t,e),ci(e),e.child.flags&8192&&e.memoizedState!==null!=(n!==null&&n.memoizedState!==null)&&(Ku=kc()),i&4&&(i=e.updateQueue,i!==null&&(e.updateQueue=null,ai(e,i)));break;case 22:a=e.memoizedState!==null;var s=n!==null&&n.memoizedState!==null,c=uu,l=du;if(uu=c||a,du=l||s,oi(t,e),du=l,uu=c,ci(e),i&8192&&(t=e.stateNode,t._visibility=a?t._visibility&-2:t._visibility|1,a&&(n===null||s||uu||du||di(e)),_o)){a:if(n=null,_o)for(t=e;;){if(t.tag===5||Zs&&t.tag===26){if(n===null){s=n=t;try{o=s.stateNode,a?rs(o):as(s.stateNode,s.memoizedProps)}catch(e){la(s,s.return,e)}}}else if(t.tag===6){if(n===null){s=t;try{var u=s.stateNode;a?is(u):os(u,s.memoizedProps)}catch(e){la(s,s.return,e)}}}else if(t.tag===18){if(n===null){s=t;try{var d=s.stateNode;a?Ks(d):qs(s.stateNode)}catch(e){la(s,s.return,e)}}}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 a;for(;t.sibling===null;){if(t.return===null||t.return===e)break a;n===t&&(n=null),t=t.return}n===t&&(n=null),t.sibling.return=t.return,t=t.sibling}}i&4&&(i=e.updateQueue,i!==null&&(n=i.retryQueue,n!==null&&(i.retryQueue=null,ai(e,n))));break;case 19:oi(t,e),ci(e),i&4&&(i=e.updateQueue,i!==null&&(e.updateQueue=null,ai(e,i)));break;case 30:break;case 21:break;default:oi(t,e),ci(e)}}function ci(e){var t=e.flags;if(t&2){try{for(var n,i=e.return;i!==null;){if(Gr(i)){n=i;break}i=i.return}if(_o){if(n==null)throw Error(r(160));switch(n.tag){case 27:if(dc){var a=n.stateNode;Jr(e,Kr(e),a);break}case 5:var o=n.stateNode;n.flags&32&&(ns(o),n.flags&=-33),Jr(e,Kr(e),o);break;case 3:case 4:var s=n.stateNode.containerInfo;qr(e,Kr(e),s);break;default:throw Error(r(161))}}}catch(t){la(e,e.return,t)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function li(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;li(t),t.tag===5&&t.flags&1024&&Io(t.stateNode),e=e.sibling}}function ui(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)Qr(e,t.alternate,t),t=t.sibling}function di(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:Rr(4,t,t.return),di(t);break;case 1:Hr(t,t.return);var n=t.stateNode;typeof n.componentWillUnmount==`function`&&Br(t,t.return,n),di(t);break;case 27:dc&&mc(t.stateNode);case 26:case 5:Hr(t,t.return),di(t);break;case 22:t.memoizedState===null&&di(t);break;case 30:di(t);break;default:di(t)}e=e.sibling}}function fi(e,t,n){for(n&&=(t.subtreeFlags&8772)!=0,t=t.child;t!==null;){var r=t.alternate,i=e,a=t,o=a.flags;switch(a.tag){case 0:case 11:case 15:fi(i,a,n),Lr(4,a);break;case 1:if(fi(i,a,n),r=a,i=r.stateNode,typeof i.componentDidMount==`function`)try{i.componentDidMount()}catch(e){la(r,r.return,e)}if(r=a,i=r.updateQueue,i!==null){var s=r.stateNode;try{var c=i.shared.hiddenCallbacks;if(c!==null)for(i.shared.hiddenCallbacks=null,i=0;i<c.length;i++)pt(c[i],s)}catch(e){la(r,r.return,e)}}n&&o&64&&zr(a),Vr(a,a.return);break;case 27:dc&&Xr(a);case 26:case 5:fi(i,a,n),n&&r===null&&o&4&&Ur(a),Vr(a,a.return);break;case 12:fi(i,a,n);break;case 31:fi(i,a,n),n&&o&4&&ni(i,a);break;case 13:fi(i,a,n),n&&o&4&&ri(i,a);break;case 22:a.memoizedState===null&&fi(i,a,n),Vr(a,a.return);break;case 30:break;default:fi(i,a,n)}t=t.sibling}}function pi(e,t){var n=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==n&&(e!=null&&e.refCount++,n!=null&&De(n))}function mi(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&De(e))}function hi(e,t,n,r){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)gi(e,t,n,r),t=t.sibling}function gi(e,t,n,r){var i=t.flags;switch(t.tag){case 0:case 11:case 15:hi(e,t,n,r),i&2048&&Lr(9,t);break;case 1:hi(e,t,n,r);break;case 3:hi(e,t,n,r),i&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&De(e)));break;case 12:if(i&2048){hi(e,t,n,r),e=t.stateNode;try{var a=t.memoizedProps,o=a.id,s=a.onPostCommit;typeof s==`function`&&s(o,t.alternate===null?`mount`:`update`,e.passiveEffectDuration,-0)}catch(e){la(t,t.return,e)}}else hi(e,t,n,r);break;case 31:hi(e,t,n,r);break;case 13:hi(e,t,n,r);break;case 23:break;case 22:a=t.stateNode,o=t.alternate,t.memoizedState===null?a._visibility&2?hi(e,t,n,r):(a._visibility|=2,_i(e,t,n,r,(t.subtreeFlags&10256)!=0||!1)):a._visibility&2?hi(e,t,n,r):vi(e,t),i&2048&&pi(o,t);break;case 24:hi(e,t,n,r),i&2048&&mi(t.alternate,t);break;default:hi(e,t,n,r)}}function _i(e,t,n,r,i){for(i&&=(t.subtreeFlags&10256)!=0||!1,t=t.child;t!==null;){var a=e,o=t,s=n,c=r,l=o.flags;switch(o.tag){case 0:case 11:case 15:_i(a,o,s,c,i),Lr(8,o);break;case 23:break;case 22:var u=o.stateNode;o.memoizedState===null?(u._visibility|=2,_i(a,o,s,c,i)):u._visibility&2?_i(a,o,s,c,i):vi(a,o),i&&l&2048&&pi(o.alternate,o);break;case 24:_i(a,o,s,c,i),i&&l&2048&&mi(o.alternate,o);break;default:_i(a,o,s,c,i)}t=t.sibling}}function vi(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var n=e,r=t,i=r.flags;switch(r.tag){case 22:vi(n,r),i&2048&&pi(r.alternate,r);break;case 24:vi(n,r),i&2048&&mi(r.alternate,r);break;default:vi(n,r)}t=t.sibling}}function yi(e,t,n){if(e.subtreeFlags&vu)for(e=e.child;e!==null;)bi(e,t,n),e=e.sibling}function bi(e,t,n){switch(e.tag){case 26:if(yi(e,t,n),e.flags&vu)if(e.memoizedState!==null)uc(n,_u,e.memoizedState,e.memoizedProps);else{var r=e.stateNode,i=e.type;e=e.memoizedProps,((t&335544128)===t||ko(i,e))&&Mo(n,r,i,e)}break;case 5:yi(e,t,n),e.flags&vu&&(r=e.stateNode,i=e.type,e=e.memoizedProps,((t&335544128)===t||ko(i,e))&&Mo(n,r,i,e));break;case 3:case 4:Zs?(r=_u,_u=$s(e.stateNode.containerInfo),yi(e,t,n),_u=r):yi(e,t,n);break;case 22:e.memoizedState===null&&(r=e.alternate,r!==null&&r.memoizedState!==null?(r=vu,vu=16777216,yi(e,t,n),vu=r):yi(e,t,n));break;default:yi(e,t,n)}}function xi(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 Si(e){var t=e.deletions;if(e.flags&16){if(t!==null)for(var n=0;n<t.length;n++){var r=t[n];mu=r,Ti(r,e)}xi(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)Ci(e),e=e.sibling}function Ci(e){switch(e.tag){case 0:case 11:case 15:Si(e),e.flags&2048&&Rr(9,e,e.return);break;case 3:Si(e);break;case 12:Si(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,wi(e)):Si(e);break;default:Si(e)}}function wi(e){var t=e.deletions;if(e.flags&16){if(t!==null)for(var n=0;n<t.length;n++){var r=t[n];mu=r,Ti(r,e)}xi(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:Rr(8,t,t.return),wi(t);break;case 22:n=t.stateNode,n._visibility&2&&(n._visibility&=-3,wi(t));break;default:wi(t)}e=e.sibling}}function Ti(e,t){for(;mu!==null;){var n=mu;switch(n.tag){case 0:case 11:case 15:Rr(8,n,t);break;case 23:case 22:if(n.memoizedState!==null&&n.memoizedState.cachePool!==null){var r=n.memoizedState.cachePool.pool;r!=null&&r.refCount++}break;case 24:De(n.memoizedState.cache)}if(r=n.child,r!==null)r.return=n,mu=r;else a:for(n=e;mu!==null;){r=mu;var i=r.sibling,a=r.return;if($r(r),r===n){mu=null;break a}if(i!==null){i.return=a,mu=i;break a}mu=a}}}function Ei(e){var t=bo(e);if(t!=null){if(typeof t.memoizedProps[`data-testname`]!=`string`)throw Error(r(364));return t}if(e=Bo(e),e===null)throw Error(r(362));return e.stateNode.current}function Di(e,t){var n=e.tag;switch(t.$$typeof){case bu:if(e.type===t.value)return!0;break;case xu:a:{for(t=t.value,e=[e,0],n=0;n<e.length;){var i=e[n++],a=i.tag,o=e[n++],s=t[o];if(a!==5&&a!==26&&a!==27||!Uo(i)){for(;s!=null&&Di(i,s);)o++,s=t[o];if(o===t.length){t=!0;break a}else for(i=i.child;i!==null;)e.push(i,o),i=i.sibling}}t=!1}return t;case Su:if((n===5||n===26||n===27)&&Wo(e.stateNode,t.value))return!0;break;case wu:if((n===5||n===6||n===26||n===27)&&(e=Ho(e),e!==null&&0<=e.indexOf(t.value)))return!0;break;case Cu:if((n===5||n===26||n===27)&&(e=e.memoizedProps[`data-testname`],typeof e==`string`&&e.toLowerCase()===t.value.toLowerCase()))return!0;break;default:throw Error(r(365))}return!1}function Oi(e){switch(e.$$typeof){case bu:return`<`+(u(e.value)||`Unknown`)+`>`;case xu:return`:has(`+(Oi(e)||``)+`)`;case Su:return`[role="`+e.value+`"]`;case wu:return`"`+e.value+`"`;case Cu:return`[data-testname="`+e.value+`"]`;default:throw Error(r(365))}}function ki(e,t){var n=[];e=[e,0];for(var r=0;r<e.length;){var i=e[r++],a=i.tag,o=e[r++],s=t[o];if(a!==5&&a!==26&&a!==27||!Uo(i)){for(;s!=null&&Di(i,s);)o++,s=t[o];if(o===t.length)n.push(i);else for(i=i.child;i!==null;)e.push(i,o),i=i.sibling}}return n}function Ai(e,t){if(!zo)throw Error(r(363));e=Ei(e),e=ki(e,t),t=[],e=Array.from(e);for(var n=0;n<e.length;){var i=e[n++],a=i.tag;if(a===5||a===26||a===27)Uo(i)||t.push(i.stateNode);else for(i=i.child;i!==null;)e.push(i),i=i.sibling}return t}function ji(){return Du&2&&Au!==0?Au&-Au:V.T===null?wo():Le()}function Mi(){if(Vu===0)if(!(Au&536870912)||W){var e=wc;wc<<=1,!(wc&3932160)&&(wc=262144),Vu=e}else Vu=536870912;return e=Ul.current,e!==null&&(e.flags|=32),Vu}function Ni(e,t,n){(e===Ou&&(ju===2||ju===9)||e.cancelPendingCommit!==null)&&(Bi(e,0),Li(e,Au,Vu,!1)),x(e,n),(!(Du&2)||e!==Ou)&&(e===Ou&&(!(Du&2)&&(zu|=n),Lu===4&&Li(e,Au,Vu,!1)),ke(e))}function Pi(e,t,n){if(Du&6)throw Error(r(327));var i=!n&&(t&127)==0&&(t&e.expiredLanes)===0||_(e,t),a=i?Ji(e,t):Ki(e,t,!0),o=i;do{if(a===0){Pu&&!i&&Li(e,t,0,!1);break}else{if(n=e.current.alternate,o&&!Ii(n)){a=Ki(e,t,!1),o=!1;continue}if(a===2){if(o=t,e.errorRecoveryDisabledLanes&o)var s=0;else s=e.pendingLanes&-536870913,s=s===0?s&536870912?536870912:0:s;if(s!==0){t=s;a:{var c=e;a=Uu;var l=yo&&c.current.memoizedState.isDehydrated;if(l&&(Bi(c,s).flags|=256),s=Ki(c,s,!1),s!==2){if(Fu&&!l){c.errorRecoveryDisabledLanes|=o,zu|=o,a=4;break a}o=Wu,Wu=a,o!==null&&(Wu===null?Wu=o:Wu.push.apply(Wu,o))}a=s}if(o=!1,a!==2)continue}}if(a===1){Bi(e,0),Li(e,t,0,!0);break}a:{switch(i=e,o=a,o){case 0:case 1:throw Error(r(345));case 4:if((t&4194048)!==t)break;case 6:Li(i,t,Vu,!Nu);break a;case 2:Wu=null;break;case 3:case 5:break;default:throw Error(r(329))}if((t&62914560)===t&&(a=Ku+300-kc(),10<a)){if(Li(i,t,Vu,!Nu),g(i,0,!0)!==0)break a;ed=t,i.timeoutHandle=po(Fi.bind(null,i,n,Wu,Yu,Gu,t,Vu,zu,Hu,Nu,o,`Throttled`,-0,0),a);break a}Fi(i,n,Wu,Yu,Gu,t,Vu,zu,Hu,Nu,o,null,-0,0)}}break}while(1);ke(e)}function Fi(e,t,n,r,i,a,o,s,c,l,u,d,f,p){if(e.timeoutHandle=ho,d=t.subtreeFlags,d&8192||(d&16785408)==16785408){d=jo(),bi(t,a,d);var m=(a&62914560)===a?Ku-kc():(a&4194048)===a?qu-kc():0;if(m=No(d,m),m!==null){ed=a,e.cancelPendingCommit=m(ta.bind(null,e,t,a,n,r,i,o,s,c,u,d,null,f,p)),Li(e,a,o,!l);return}}ta(e,t,a,n,r,i,o,s,c)}function Ii(e){for(var t=e;;){var n=t.tag;if((n===0||n===11||n===15)&&t.flags&16384&&(n=t.updateQueue,n!==null&&(n=n.stores,n!==null)))for(var r=0;r<n.length;r++){var i=n[r],a=i.getSnapshot;i=i.value;try{if(!Rc(a(),i))return!1}catch{return!1}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;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 Li(e,t,n,r){t&=~Bu,t&=~zu,e.suspendedLanes|=t,e.pingedLanes&=~t,r&&(e.warmLanes|=t),r=e.expirationTimes;for(var i=t;0<i;){var a=31-bc(i),o=1<<a;r[a]=-1,i&=~o}n!==0&&C(e,n,t)}function Ri(){return Du&6?!0:(Ae(0,!1),!1)}function zi(){if(ku!==null){if(ju===0)var e=ku.return;else e=ku,ul=ll=null,jt(e),Ml=null,Nl=0,e=ku;for(;e!==null;)Ir(e.alternate,e),e=e.return;ku=null}}function Bi(e,t){var n=e.timeoutHandle;n!==ho&&(e.timeoutHandle=ho,mo(n)),n=e.cancelPendingCommit,n!==null&&(e.cancelPendingCommit=null,n()),ed=0,zi(),Ou=e,ku=n=va(e.current,null),Au=t,ju=0,Mu=null,Nu=!1,Pu=_(e,t),Fu=!1,Hu=Vu=Bu=zu=Ru=Lu=0,Wu=Uu=null,Gu=!1,t&8&&(t|=t&32);var r=e.entangledLanes;if(r!==0)for(e=e.entanglements,r&=t;0<r;){var i=31-bc(r),a=1<<i;t|=e[i],r&=~a}return Iu=t,$e(),n}function Vi(e,t){G=null,V.H=nu,t===Dl||t===kl?(t=qe(),ju=3):t===Ol?(t=qe(),ju=4):ju=t===su?8:typeof t==`object`&&t&&typeof t.then==`function`?6:1,Mu=t,ku===null&&(Lu=1,Wn(e,M(t,e.current)))}function Hi(){var e=Ul.current;return e===null?!0:(Au&4194048)===Au?Wl===null:(Au&62914560)===Au||Au&536870912?e===Wl:!1}function Ui(){var e=V.H;return V.H=nu,e===null?nu:e}function Wi(){var e=V.A;return V.A=yu,e}function Gi(){Lu=4,Nu||(Au&4194048)!==Au&&Ul.current!==null||(Pu=!0),!(Ru&134217727)&&!(zu&134217727)||Ou===null||Li(Ou,Au,Vu,!1)}function Ki(e,t,n){var r=Du;Du|=2;var i=Ui(),a=Wi();(Ou!==e||Au!==t)&&(Yu=null,Bi(e,t)),t=!1;var o=Lu;a:do try{if(ju!==0&&ku!==null){var s=ku,c=Mu;switch(ju){case 8:zi(),o=6;break a;case 3:case 2:case 9:case 6:Ul.current===null&&(t=!0);var l=ju;if(ju=0,Mu=null,Qi(e,s,c,l),n&&Pu){o=0;break a}break;default:l=ju,ju=0,Mu=null,Qi(e,s,c,l)}}qi(),o=Lu;break}catch(t){Vi(e,t)}while(1);return t&&e.shellSuspendCounter++,ul=ll=null,Du=r,V.H=i,V.A=a,ku===null&&(Ou=null,Au=0,$e()),o}function qi(){for(;ku!==null;)Xi(ku)}function Ji(e,t){var n=Du;Du|=2;var i=Ui(),a=Wi();Ou!==e||Au!==t?(Yu=null,Ju=kc()+500,Bi(e,t)):Pu=_(e,t);a:do try{if(ju!==0&&ku!==null){t=ku;var o=Mu;b:switch(ju){case 1:ju=0,Mu=null,Qi(e,t,o,1);break;case 2:case 9:if(We(o)){ju=0,Mu=null,Zi(t);break}t=function(){ju!==2&&ju!==9||Ou!==e||(ju=7),ke(e)},o.then(t,t);break a;case 3:ju=7;break a;case 4:ju=5;break a;case 7:We(o)?(ju=0,Mu=null,Zi(t)):(ju=0,Mu=null,Qi(e,t,o,7));break;case 5:var s=null;switch(ku.tag){case 26:s=ku.memoizedState;case 5:case 27:var c=ku,l=c.type,u=c.pendingProps;if(s?lc(s):Ao(c.stateNode,l,u)){ju=0,Mu=null;var d=c.sibling;if(d!==null)ku=d;else{var f=c.return;f===null?ku=null:(ku=f,$i(f))}break b}}ju=0,Mu=null,Qi(e,t,o,5);break;case 6:ju=0,Mu=null,Qi(e,t,o,6);break;case 8:zi(),Lu=6;break a;default:throw Error(r(462))}}Yi();break}catch(t){Vi(e,t)}while(1);return ul=ll=null,V.H=i,V.A=a,Du=n,ku===null?(Ou=null,Au=0,$e(),Lu):0}function Yi(){for(;ku!==null&&!Dc();)Xi(ku)}function Xi(e){var t=xr(e.alternate,e,Iu);e.memoizedProps=e.pendingProps,t===null?$i(e):ku=t}function Zi(e){var t=e,n=t.alternate;switch(t.tag){case 15:case 0:t=cr(n,t,t.pendingProps,t.type,void 0,Au);break;case 11:t=cr(n,t,t.pendingProps,t.type.render,t.ref,Au);break;case 5:jt(t);default:Ir(n,t),t=ku=ya(t,Iu),t=xr(n,t,Iu)}e.memoizedProps=e.pendingProps,t===null?$i(e):ku=t}function Qi(e,t,n,r){ul=ll=null,jt(t),Ml=null,Nl=0;var i=t.return;try{if(Yn(e,i,t,n,Au)){Lu=1,Wn(e,M(n,e.current)),ku=null;return}}catch(t){if(i!==null)throw ku=i,t;Lu=1,Wn(e,M(n,e.current)),ku=null;return}t.flags&32768?(W||r===1?e=!0:Pu||Au&536870912?e=!1:(Nu=e=!0,(r===2||r===9||r===3||r===6)&&(r=Ul.current,r!==null&&r.tag===13&&(r.flags|=16384))),ea(t,e)):$i(t)}function $i(e){var t=e;do{if(t.flags&32768){ea(t,Nu);return}e=t.return;var n=Pr(t.alternate,t,Iu);if(n!==null){ku=n;return}if(t=t.sibling,t!==null){ku=t;return}ku=t=e}while(t!==null);Lu===0&&(Lu=5)}function ea(e,t){do{var n=Fr(e.alternate,e);if(n!==null){n.flags&=32767,ku=n;return}if(n=e.return,n!==null&&(n.flags|=32768,n.subtreeFlags=0,n.deletions=null),!t&&(e=e.sibling,e!==null)){ku=e;return}ku=e=n}while(e!==null);Lu=6,ku=null}function ta(e,t,n,i,a,o,s,c,l){e.cancelPendingCommit=null;do oa();while(Zu!==0);if(Du&6)throw Error(r(327));if(t!==null){if(t===e.current)throw Error(r(177));if(o=t.lanes|t.childLanes,o|=Rl,S(e,n,o,s,c,l),e===Ou&&(ku=Ou=null,Au=0),$u=t,Qu=e,ed=n,td=o,nd=a,rd=i,t.subtreeFlags&10256||t.flags&10256?(e.callbackNode=null,e.callbackPriority=0,ha(Mc,function(){return sa(),null})):(e.callbackNode=null,e.callbackPriority=0),i=(t.flags&13878)!=0,t.subtreeFlags&13878||i){i=V.T,V.T=null,a=Co(),So(2),s=Du,Du|=4;try{Zr(e,t,n)}finally{Du=s,So(a),V.T=i}}Zu=1,na(),ra(),ia()}}function na(){if(Zu===1){Zu=0;var e=Qu,t=$u,n=(t.flags&13878)!=0;if(t.subtreeFlags&13878||n){n=V.T,V.T=null;var r=Co();So(2);var i=Du;Du|=4;try{si(t,e),oo(e.containerInfo)}finally{Du=i,So(r),V.T=n}}e.current=t,Zu=2}}function ra(){if(Zu===2){Zu=0;var e=Qu,t=$u,n=(t.flags&8772)!=0;if(t.subtreeFlags&8772||n){n=V.T,V.T=null;var r=Co();So(2);var i=Du;Du|=4;try{Qr(e,t.alternate,t)}finally{Du=i,So(r),V.T=n}}Zu=3}}function ia(){if(Zu===4||Zu===3){Zu=0,Oc();var e=Qu,t=$u,n=ed,r=rd;t.subtreeFlags&10256||t.flags&10256?Zu=5:(Zu=0,$u=Qu=null,aa(e,e.pendingLanes));var i=e.pendingLanes;if(i===0&&(Xu=null),D(n),t=t.stateNode,Lc&&typeof Lc.onCommitFiberRoot==`function`)try{Lc.onCommitFiberRoot(Ic,t,void 0,(t.current.flags&128)==128)}catch{}if(r!==null){t=V.T,i=Co(),So(2),V.T=null;try{for(var a=e.onRecoverableError,o=0;o<r.length;o++){var s=r[o];a(s.value,{componentStack:s.stack})}}finally{V.T=t,So(i)}}ed&3&&oa(),ke(e),i=e.pendingLanes,n&261930&&i&42?e===ad?id++:(id=0,ad=e):id=0,yo&&Us(),Ae(0,!1)}}function aa(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,De(t)))}function oa(){return na(),ra(),ia(),sa()}function sa(){if(Zu!==5)return!1;var e=Qu,t=td;td=0;var n=D(ed),i=32>n?32:n;n=V.T;var a=Co();try{So(i),V.T=null,i=nd,nd=null;var o=Qu,s=ed;if(Zu=0,$u=Qu=null,ed=0,Du&6)throw Error(r(331));var c=Du;if(Du|=4,Ci(o.current),gi(o,o.current,s,i),Du=c,Ae(0,!1),Lc&&typeof Lc.onPostCommitFiberRoot==`function`)try{Lc.onPostCommitFiberRoot(Ic,o)}catch{}return!0}finally{So(a),V.T=n,aa(e,t)}}function ca(e,t,n){t=M(n,t),t=Kn(e.stateNode,t,2),e=ct(e,t,2),e!==null&&(x(e,2),ke(e))}function la(e,t,n){if(e.tag===3)ca(e,e,n);else for(;t!==null;){if(t.tag===3){ca(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError==`function`||typeof r.componentDidCatch==`function`&&(Xu===null||!Xu.has(r))){e=M(n,e),n=qn(2),r=ct(t,n,2),r!==null&&(Jn(n,r,t,e),x(r,2),ke(r));break}}t=t.return}}function ua(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new Eu;var i=new Set;r.set(t,i)}else i=r.get(t),i===void 0&&(i=new Set,r.set(t,i));i.has(n)||(Fu=!0,i.add(n),e=da.bind(null,e,t,n),t.then(e,e))}function da(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),e.pingedLanes|=e.suspendedLanes&n,e.warmLanes&=~n,Ou===e&&(Au&n)===n&&(Lu===4||Lu===3&&(Au&62914560)===Au&&300>kc()-Ku?!(Du&2)&&Bi(e,0):Bu|=n,Hu===Au&&(Hu=0)),ke(e)}function fa(e,t){t===0&&(t=y()),e=nt(e,t),e!==null&&(x(e,t),ke(e))}function pa(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),fa(e,n)}function ma(e,t){var n=0;switch(e.tag){case 31:case 13:var i=e.stateNode,a=e.memoizedState;a!==null&&(n=a.retryLane);break;case 19:i=e.stateNode;break;case 22:i=e.stateNode._retryCache;break;default:throw Error(r(314))}i!==null&&i.delete(t),fa(e,n)}function ha(e,t){return Ec(e,t)}function ga(e,t,n,r){this.tag=e,this.key=n,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=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function _a(e){return e=e.prototype,!(!e||!e.isReactComponent)}function va(e,n){var r=e.alternate;return r===null?(r=t(e.tag,n,e.key,e.mode),r.elementType=e.elementType,r.type=e.type,r.stateNode=e.stateNode,r.alternate=e,e.alternate=r):(r.pendingProps=n,r.type=e.type,r.flags=0,r.subtreeFlags=0,r.deletions=null),r.flags=e.flags&65011712,r.childLanes=e.childLanes,r.lanes=e.lanes,r.child=e.child,r.memoizedProps=e.memoizedProps,r.memoizedState=e.memoizedState,r.updateQueue=e.updateQueue,n=e.dependencies,r.dependencies=n===null?null:{lanes:n.lanes,firstContext:n.firstContext},r.sibling=e.sibling,r.index=e.index,r.ref=e.ref,r.refCleanup=e.refCleanup,r}function ya(e,t){e.flags&=65011714;var n=e.alternate;return n===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=n.childLanes,e.lanes=n.lanes,e.child=n.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=n.memoizedProps,e.memoizedState=n.memoizedState,e.updateQueue=n.updateQueue,e.type=n.type,t=n.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function ba(e,n,i,a,o,s){var c=0;if(a=e,typeof e==`function`)_a(e)&&(c=1);else if(typeof e==`string`)c=Zs&&dc?Qs(e,i,$c.current)?26:hc(e)?27:5:Zs?Qs(e,i,$c.current)?26:5:dc&&hc(e)?27:5;else a:switch(e){case Ja:return e=t(31,i,n,o),e.elementType=Ja,e.lanes=s,e;case Ra:return xa(i.children,o,s,n);case za:c=8,o|=24;break;case Ba:return e=t(12,i,n,o|2),e.elementType=Ba,e.lanes=s,e;case Wa:return e=t(13,i,n,o),e.elementType=Wa,e.lanes=s,e;case Ga:return e=t(19,i,n,o),e.elementType=Ga,e.lanes=s,e;default:if(typeof e==`object`&&e)switch(e.$$typeof){case Ha:c=10;break a;case Va:c=9;break a;case Ua:c=11;break a;case Ka:c=14;break a;case qa:c=16,a=null;break a}c=29,i=Error(r(130,e===null?`null`:typeof e,``)),a=null}return n=t(c,i,n,o),n.elementType=e,n.type=a,n.lanes=s,n}function xa(e,n,r,i){return e=t(7,e,i,n),e.lanes=r,e}function Sa(e,n,r){return e=t(6,e,null,n),e.lanes=r,e}function Ca(e){var n=t(18,null,null,0);return n.stateNode=e,n}function wa(e,n,r){return n=t(4,e.children===null?[]:e.children,e.key,n),n.lanes=r,n.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},n}function Ta(e,t,n,r,i,a,o,s,c){this.tag=1,this.containerInfo=e,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=ho,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=b(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=b(0),this.hiddenUpdates=b(null),this.identifierPrefix=r,this.onUncaughtError=i,this.onCaughtError=a,this.onRecoverableError=o,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=c,this.incompleteTransitions=new Map}function Ea(e,n,r,i,a,o,s,c,l,u,d,f){return e=new Ta(e,n,r,s,l,u,d,f,c),n=1,!0===o&&(n|=24),o=t(3,null,null,n),e.current=o,o.stateNode=e,n=Ee(),n.refCount++,e.pooledCache=n,n.refCount++,o.memoizedState={element:i,isDehydrated:r,cache:n},at(o),e}function Da(e){return e?(e=yc,e):yc}function Oa(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render==`function`?Error(r(188)):(e=Object.keys(e).join(`,`),Error(r(268,e)));return e=o(t),e=e===null?null:s(e),e===null?null:no(e.stateNode)}function ka(e,t,n,r,i,a){i=Da(i),r.context===null?r.context=i:r.pendingContext=i,r=st(t),r.payload={element:n},a=a===void 0?null:a,a!==null&&(r.callback=a),n=ct(e,r,t),n!==null&&(Ni(n,e,t),lt(n,e,t))}function Aa(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function ja(e,t){Aa(e,t),(e=e.alternate)&&Aa(e,t)}var B={},Ma=O(),Na=fn(),Pa=Object.assign,Fa=Symbol.for(`react.element`),Ia=Symbol.for(`react.transitional.element`),La=Symbol.for(`react.portal`),Ra=Symbol.for(`react.fragment`),za=Symbol.for(`react.strict_mode`),Ba=Symbol.for(`react.profiler`),Va=Symbol.for(`react.consumer`),Ha=Symbol.for(`react.context`),Ua=Symbol.for(`react.forward_ref`),Wa=Symbol.for(`react.suspense`),Ga=Symbol.for(`react.suspense_list`),Ka=Symbol.for(`react.memo`),qa=Symbol.for(`react.lazy`),Ja=Symbol.for(`react.activity`),Ya=Symbol.for(`react.memo_cache_sentinel`),Xa=Symbol.iterator,Za=Symbol.for(`react.client.reference`),Qa=Array.isArray,V=Ma.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,$a=e.rendererVersion,eo=e.rendererPackageName,to=e.extraDevToolsConfig,no=e.getPublicInstance,ro=e.getRootHostContext,io=e.getChildHostContext,ao=e.prepareForCommit,oo=e.resetAfterCommit,so=e.createInstance;e.cloneMutableInstance;var co=e.appendInitialChild,lo=e.finalizeInitialChildren,uo=e.shouldSetTextContent,fo=e.createTextInstance;e.cloneMutableTextInstance;var po=e.scheduleTimeout,mo=e.cancelTimeout,ho=e.noTimeout,go=e.isPrimaryRenderer;e.warnsIfNotActing;var _o=e.supportsMutation,vo=e.supportsPersistence,yo=e.supportsHydration,bo=e.getInstanceFromNode;e.beforeActiveInstanceBlur;var xo=e.preparePortalMount;e.prepareScopeUpdate,e.getInstanceFromScope;var So=e.setCurrentUpdatePriority,Co=e.getCurrentUpdatePriority,wo=e.resolveUpdatePriority;e.trackSchedulerEvent,e.resolveEventType,e.resolveEventTimeStamp;var To=e.shouldAttemptEagerTransition,Eo=e.detachDeletedInstance;e.requestPostPaintCallback;var Do=e.maySuspendCommit,Oo=e.maySuspendCommitOnUpdate,ko=e.maySuspendCommitInSyncRender,Ao=e.preloadInstance,jo=e.startSuspendingCommit,Mo=e.suspendInstance;e.suspendOnActiveViewTransition;var No=e.waitForCommitToBeReady;e.getSuspendedCommitReason;var Po=e.NotPendingTransition,Fo=e.HostTransitionContext,Io=e.resetFormInstance;e.bindToConsole;var Lo=e.supportsMicrotasks,Ro=e.scheduleMicrotask,zo=e.supportsTestSelectors,Bo=e.findFiberRoot,Vo=e.getBoundingRect,Ho=e.getTextContent,Uo=e.isHiddenSubtree,Wo=e.matchAccessibilityRole,Go=e.setFocusIfFocusable,Ko=e.setupIntersectionObserver,qo=e.appendChild,Jo=e.appendChildToContainer,Yo=e.commitTextUpdate,Xo=e.commitMount,Zo=e.commitUpdate,Qo=e.insertBefore,$o=e.insertInContainerBefore,es=e.removeChild,ts=e.removeChildFromContainer,ns=e.resetTextContent,rs=e.hideInstance,is=e.hideTextInstance,as=e.unhideInstance,os=e.unhideTextInstance;e.cancelViewTransitionName,e.cancelRootViewTransitionName,e.restoreRootViewTransitionName,e.cloneRootViewTransitionContainer,e.removeRootViewTransitionClone,e.measureClonedInstance,e.hasInstanceChanged,e.hasInstanceAffectedParent,e.startViewTransition,e.startGestureTransition,e.stopViewTransition,e.getCurrentGestureOffset,e.createViewTransitionInstance;var ss=e.clearContainer;e.createFragmentInstance,e.updateFragmentInstanceFiber,e.commitNewChildToFragmentInstance,e.deleteChildFromFragmentInstance;var cs=e.cloneInstance,ls=e.createContainerChildSet,us=e.appendChildToContainerChildSet,ds=e.finalizeContainerChildren,fs=e.replaceContainerChildren,ps=e.cloneHiddenInstance,ms=e.cloneHiddenTextInstance,hs=e.isSuspenseInstancePending,gs=e.isSuspenseInstanceFallback,_s=e.getSuspenseInstanceFallbackErrorDetails,vs=e.registerSuspenseInstanceRetry,ys=e.canHydrateFormStateMarker,bs=e.isFormStateMarkerMatching,xs=e.getNextHydratableSibling,Ss=e.getNextHydratableSiblingAfterSingleton,Cs=e.getFirstHydratableChild,ws=e.getFirstHydratableChildWithinContainer,Ts=e.getFirstHydratableChildWithinActivityInstance,Es=e.getFirstHydratableChildWithinSuspenseInstance,Ds=e.getFirstHydratableChildWithinSingleton,Os=e.canHydrateInstance,ks=e.canHydrateTextInstance,As=e.canHydrateActivityInstance,js=e.canHydrateSuspenseInstance,Ms=e.hydrateInstance,Ns=e.hydrateTextInstance,Ps=e.hydrateActivityInstance,Fs=e.hydrateSuspenseInstance,Is=e.getNextHydratableInstanceAfterActivityInstance,Ls=e.getNextHydratableInstanceAfterSuspenseInstance,Rs=e.commitHydratedInstance,zs=e.commitHydratedContainer,Bs=e.commitHydratedActivityInstance,Vs=e.commitHydratedSuspenseInstance,Hs=e.finalizeHydratedChildren,Us=e.flushHydrationEvents;e.clearActivityBoundary;var Ws=e.clearSuspenseBoundary;e.clearActivityBoundaryFromContainer;var Gs=e.clearSuspenseBoundaryFromContainer,Ks=e.hideDehydratedBoundary,qs=e.unhideDehydratedBoundary,Js=e.shouldDeleteUnhydratedTailInstances;e.diffHydratedPropsForDevWarnings,e.diffHydratedTextForDevWarnings,e.describeHydratableInstanceForDevWarnings;var Ys=e.validateHydratableInstance,Xs=e.validateHydratableTextInstance,Zs=e.supportsResources,Qs=e.isHostHoistableType,$s=e.getHoistableRoot,ec=e.getResource,tc=e.acquireResource,nc=e.releaseResource,rc=e.hydrateHoistable,ic=e.mountHoistable,ac=e.unmountHoistable,oc=e.createHoistableInstance,sc=e.prepareToCommitHoistables,cc=e.mayResourceSuspendCommit,lc=e.preloadResource,uc=e.suspendResource,dc=e.supportsSingletons,fc=e.resolveSingletonInstance,pc=e.acquireSingletonInstance,mc=e.releaseSingletonInstance,hc=e.isHostSingletonType,gc=e.isSingletonScope,_c=[],vc=-1,yc={},bc=Math.clz32?Math.clz32:m,xc=Math.log,Sc=Math.LN2,Cc=256,wc=262144,Tc=4194304,Ec=Na.unstable_scheduleCallback,H=Na.unstable_cancelCallback,Dc=Na.unstable_shouldYield,Oc=Na.unstable_requestPaint,kc=Na.unstable_now,Ac=Na.unstable_ImmediatePriority,jc=Na.unstable_UserBlockingPriority,Mc=Na.unstable_NormalPriority,Nc=Na.unstable_IdlePriority,Pc=Na.log,Fc=Na.unstable_setDisableYieldValue,Ic=null,Lc=null,Rc=typeof Object.is==`function`?Object.is:ee,zc=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&&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)},Bc=Object.prototype.hasOwnProperty,Vc,Hc,Uc=!1,Wc=new WeakMap,Gc=[],Kc=0,qc=null,U=0,Jc=[],Yc=0,Xc=null,Zc=1,Qc=``,$c=d(null),el=d(null),tl=d(null),nl=d(null),rl=null,il=null,W=!1,al=null,ol=!1,sl=Error(r(519)),cl=d(null),ll=null,ul=null,dl=typeof AbortController<`u`?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(t,n){e.push(n)}};this.abort=function(){t.aborted=!0,e.forEach(function(e){return e()})}},fl=Na.unstable_scheduleCallback,pl=Na.unstable_NormalPriority,ml={$$typeof:Ha,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0},hl=null,gl=null,_l=!1,vl=!1,yl=!1,bl=0,xl=null,Sl=0,Cl=0,wl=null,Tl=V.S;V.S=function(e,t){qu=kc(),typeof t==`object`&&t&&typeof t.then==`function`&&Re(e,t),Tl!==null&&Tl(e,t)};var El=d(null),Dl=Error(r(460)),Ol=Error(r(474)),kl=Error(r(542)),Al={then:function(){}},jl=null,Ml=null,Nl=0,Pl=Qe(!0),Fl=Qe(!1),Il=[],Ll=0,Rl=0,zl=!1,Bl=!1,Vl=d(null),Hl=d(0),Ul=d(null),Wl=null,Gl=d(0),Kl=0,G=null,ql=null,Jl=null,Yl=!1,Xl=!1,Zl=!1,Ql=0,$l=0,eu=null,tu=0,nu={readContext:Ce,use:It,useCallback:Ct,useContext:Ct,useEffect:Ct,useImperativeHandle:Ct,useLayoutEffect:Ct,useInsertionEffect:Ct,useMemo:Ct,useReducer:Ct,useRef:Ct,useState:Ct,useDebugValue:Ct,useDeferredValue:Ct,useTransition:Ct,useSyncExternalStore:Ct,useId:Ct,useHostTransitionStatus:Ct,useFormState:Ct,useActionState:Ct,useOptimistic:Ct,useMemoCache:Ct,useCacheRefresh:Ct};nu.useEffectEvent=Ct;var ru={readContext:Ce,use:It,useCallback:function(e,t){return Mt().memoizedState=[e,t===void 0?null:t],e},useContext:Ce,useEffect:mn,useImperativeHandle:function(e,t,n){n=n==null?null:n.concat([e]),dn(4194308,4,bn.bind(null,t,e),n)},useLayoutEffect:function(e,t){return dn(4194308,4,e,t)},useInsertionEffect:function(e,t){dn(4,2,e,t)},useMemo:function(e,t){var n=Mt();t=t===void 0?null:t;var r=e();if(Zl){k(!0);try{e()}finally{k(!1)}}return n.memoizedState=[r,t],r},useReducer:function(e,t,n){var r=Mt();if(n!==void 0){var i=n(t);if(Zl){k(!0);try{n(t)}finally{k(!1)}}}else i=t;return r.memoizedState=r.baseState=i,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:i},r.queue=e,e=e.dispatch=Nn.bind(null,G,e),[r.memoizedState,e]},useRef:function(e){var t=Mt();return e={current:e},t.memoizedState=e},useState:function(e){e=Jt(e);var t=e.queue,n=Pn.bind(null,G,t);return t.dispatch=n,[e.memoizedState,n]},useDebugValue:Sn,useDeferredValue:function(e,t){return Tn(Mt(),e,t)},useTransition:function(){var e=Jt(!1);return e=Dn.bind(null,G,e.queue,!0,!1),Mt().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,n){var i=G,a=Mt();if(W){if(n===void 0)throw Error(r(407));n=n()}else{if(n=t(),Ou===null)throw Error(r(349));Au&127||Ut(i,t,n)}a.memoizedState=n;var o={value:n,getSnapshot:t};return a.queue=o,mn(Gt.bind(null,i,o,e),[e]),i.flags|=2048,ln(9,{destroy:void 0},Wt.bind(null,i,o,n,t),null),n},useId:function(){var e=Mt(),t=Ou.identifierPrefix;if(W){var n=Qc,r=Zc;n=(r&~(1<<32-bc(r)-1)).toString(32)+n,t=`_`+t+`R_`+n,n=Ql++,0<n&&(t+=`H`+n.toString(32)),t+=`_`}else n=tu++,t=`_`+t+`r_`+n.toString(32)+`_`;return e.memoizedState=t},useHostTransitionStatus:kn,useFormState:rn,useActionState:rn,useOptimistic:function(e){var t=Mt();t.memoizedState=t.baseState=e;var n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=n,t=In.bind(null,G,!0,n),n.dispatch=t,[e,t]},useMemoCache:Lt,useCacheRefresh:function(){return Mt().memoizedState=Mn.bind(null,G)},useEffectEvent:function(e){var t=Mt(),n={impl:e};return t.memoizedState=n,function(){if(Du&2)throw Error(r(440));return n.impl.apply(void 0,arguments)}}},iu={readContext:Ce,use:It,useCallback:Cn,useContext:Ce,useEffect:hn,useImperativeHandle:xn,useInsertionEffect:vn,useLayoutEffect:yn,useMemo:wn,useReducer:zt,useRef:un,useState:function(){return zt(Rt)},useDebugValue:Sn,useDeferredValue:function(e,t){return En(Nt(),ql.memoizedState,e,t)},useTransition:function(){var e=zt(Rt)[0],t=Nt().memoizedState;return[typeof e==`boolean`?e:Ft(e),t]},useSyncExternalStore:Ht,useId:An,useHostTransitionStatus:kn,useFormState:an,useActionState:an,useOptimistic:function(e,t){return Yt(Nt(),ql,e,t)},useMemoCache:Lt,useCacheRefresh:jn};iu.useEffectEvent=_n;var au={readContext:Ce,use:It,useCallback:Cn,useContext:Ce,useEffect:hn,useImperativeHandle:xn,useInsertionEffect:vn,useLayoutEffect:yn,useMemo:wn,useReducer:Vt,useRef:un,useState:function(){return Vt(Rt)},useDebugValue:Sn,useDeferredValue:function(e,t){var n=Nt();return ql===null?Tn(n,e,t):En(n,ql.memoizedState,e,t)},useTransition:function(){var e=Vt(Rt)[0],t=Nt().memoizedState;return[typeof e==`boolean`?e:Ft(e),t]},useSyncExternalStore:Ht,useId:An,useHostTransitionStatus:kn,useFormState:cn,useActionState:cn,useOptimistic:function(e,t){var n=Nt();return ql===null?(n.baseState=e,[e,n.queue.dispatch]):Yt(n,ql,e,t)},useMemoCache:Lt,useCacheRefresh:jn};au.useEffectEvent=_n;var ou={enqueueSetState:function(e,t,n){e=e._reactInternals;var r=ji(),i=st(r);i.payload=t,n!=null&&(i.callback=n),t=ct(e,i,r),t!==null&&(Ni(t,e,r),lt(t,e,r))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=ji(),i=st(r);i.tag=1,i.payload=t,n!=null&&(i.callback=n),t=ct(e,i,r),t!==null&&(Ni(t,e,r),lt(t,e,r))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=ji(),r=st(n);r.tag=2,t!=null&&(r.callback=t),t=ct(e,r,n),t!==null&&(Ni(t,e,n),lt(t,e,n))}},su=Error(r(461)),cu=!1,lu={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null},uu=!1,du=!1,fu=!1,pu=typeof WeakSet==`function`?WeakSet:Set,mu=null,hu=null,gu=!1,_u=null,vu=8192,yu={getCacheForType:function(e){var t=Ce(ml),n=t.data.get(e);return n===void 0&&(n=e(),t.data.set(e,n)),n},cacheSignal:function(){return Ce(ml).controller.signal}},bu=0,xu=1,Su=2,Cu=3,wu=4;if(typeof Symbol==`function`&&Symbol.for){var Tu=Symbol.for;bu=Tu(`selector.component`),xu=Tu(`selector.has_pseudo_class`),Su=Tu(`selector.role`),Cu=Tu(`selector.test_id`),wu=Tu(`selector.text`)}var Eu=typeof WeakMap==`function`?WeakMap:Map,Du=0,Ou=null,ku=null,Au=0,ju=0,Mu=null,Nu=!1,Pu=!1,Fu=!1,Iu=0,Lu=0,Ru=0,zu=0,Bu=0,Vu=0,Hu=0,Uu=null,Wu=null,Gu=!1,Ku=0,qu=0,Ju=1/0,Yu=null,Xu=null,Zu=0,Qu=null,$u=null,ed=0,td=0,nd=null,rd=null,id=0,ad=null;return B.attemptContinuousHydration=function(e){if(e.tag===13||e.tag===31){var t=nt(e,67108864);t!==null&&Ni(t,e,67108864),ja(e,67108864)}},B.attemptHydrationAtCurrentPriority=function(e){if(e.tag===13||e.tag===31){var t=ji();t=E(t);var n=nt(e,t);n!==null&&Ni(n,e,t),ja(e,t)}},B.attemptSynchronousHydration=function(e){switch(e.tag){case 3:if(e=e.stateNode,e.current.memoizedState.isDehydrated){var t=h(e.pendingLanes);if(t!==0){for(e.pendingLanes|=2,e.entangledLanes|=2;t;){var n=1<<31-bc(t);e.entanglements[1]|=n,t&=~n}ke(e),!(Du&6)&&(Ju=kc()+500,Ae(0,!1))}}break;case 31:case 13:t=nt(e,2),t!==null&&Ni(t,e,2),Ri(),ja(e,2)}},B.batchedUpdates=function(e,t){return e(t)},B.createComponentSelector=function(e){return{$$typeof:bu,value:e}},B.createContainer=function(e,t,n,r,i,a,o,s,c,l){return Ea(e,t,!1,null,n,r,a,null,o,s,c,l)},B.createHasPseudoClassSelector=function(e){return{$$typeof:xu,value:e}},B.createHydrationContainer=function(e,t,n,r,i,a,o,s,c,l,u,d,f,p){return e=Ea(n,r,!0,e,i,a,s,p,c,l,u,d),e.context=Da(null),n=e.current,r=ji(),r=E(r),i=st(r),i.callback=t??null,ct(n,i,r),t=r,e.current.lanes=t,x(e,t),ke(e),e},B.createPortal=function(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:La,key:r==null?null:``+r,children:e,containerInfo:t,implementation:n}},B.createRoleSelector=function(e){return{$$typeof:Su,value:e}},B.createTestNameSelector=function(e){return{$$typeof:Cu,value:e}},B.createTextSelector=function(e){return{$$typeof:wu,value:e}},B.defaultOnCaughtError=function(e){console.error(e)},B.defaultOnRecoverableError=function(e){zc(e)},B.defaultOnUncaughtError=function(e){zc(e)},B.deferredUpdates=function(e){var t=V.T,n=Co();try{return So(32),V.T=null,e()}finally{So(n),V.T=t}},B.discreteUpdates=function(e,t,n,r,i){var a=V.T,o=Co();try{return So(2),V.T=null,e(t,n,r,i)}finally{So(o),V.T=a,Du===0&&(Ju=kc()+500)}},B.findAllNodes=Ai,B.findBoundingRects=function(e,t){if(!zo)throw Error(r(363));t=Ai(e,t),e=[];for(var n=0;n<t.length;n++)e.push(Vo(t[n]));for(t=e.length-1;0<t;t--){n=e[t];for(var i=n.x,a=i+n.width,o=n.y,s=o+n.height,c=t-1;0<=c;c--)if(t!==c){var l=e[c],u=l.x,d=u+l.width,f=l.y,p=f+l.height;if(i>=u&&o>=f&&a<=d&&s<=p){e.splice(t,1);break}else if(!(i!==u||n.width!==l.width||p<o||f>s)){f>o&&(l.height+=f-o,l.y=o),p<s&&(l.height=s-f),e.splice(t,1);break}else if(!(o!==f||n.height!==l.height||d<i||u>a)){u>i&&(l.width+=u-i,l.x=i),d<a&&(l.width=a-u),e.splice(t,1);break}}}return e},B.findHostInstance=Oa,B.findHostInstanceWithNoPortals=function(e){return e=o(e),e=e===null?null:c(e),e===null?null:no(e.stateNode)},B.findHostInstanceWithWarning=function(e){return Oa(e)},B.flushPassiveEffects=oa,B.flushSyncFromReconciler=function(e){var t=Du;Du|=1;var n=V.T,r=Co();try{if(So(2),V.T=null,e)return e()}finally{So(r),V.T=n,Du=t,!(Du&6)&&Ae(0,!1)}},B.flushSyncWork=Ri,B.focusWithin=function(e,t){if(!zo)throw Error(r(363));for(e=Ei(e),t=ki(e,t),t=Array.from(t),e=0;e<t.length;){var n=t[e++],i=n.tag;if(!Uo(n)){if((i===5||i===26||i===27)&&Go(n.stateNode))return!0;for(n=n.child;n!==null;)t.push(n),n=n.sibling}}return!1},B.getFindAllNodesFailureDescription=function(e,t){if(!zo)throw Error(r(363));var n=0,i=[];e=[Ei(e),0];for(var a=0;a<e.length;){var o=e[a++],s=o.tag,c=e[a++],l=t[c];if((s!==5&&s!==26&&s!==27||!Uo(o))&&(Di(o,l)&&(i.push(Oi(l)),c++,c>n&&(n=c)),c<t.length))for(o=o.child;o!==null;)e.push(o,c),o=o.sibling}if(n<t.length){for(e=[];n<t.length;n++)e.push(Oi(t[n]));return`findAllNodes was able to match part of the selector:
|
|
99
|
+
`+e.stack}}function M(e,t){if(typeof e==`object`&&e){var n=Uc.get(e);return n===void 0?(t={value:e,source:t,stack:ne(t)},Uc.set(e,t),t):n}return{value:e,source:t,stack:ne(t)}}function re(e,t){Wc[Gc++]=W,Wc[Gc++]=Kc,Kc=e,W=t}function ie(e,t,n){qc[Jc++]=Xc,qc[Jc++]=Zc,qc[Jc++]=Yc,Yc=e;var r=Xc;e=Zc;var i=32-yc(r)-1;r&=~(1<<i),n+=1;var a=32-yc(t)+i;if(30<a){var o=i-i%5;a=(r&(1<<o)-1).toString(32),r>>=o,i-=o,Xc=1<<32-yc(t)+i|n<<i|r,Zc=a+e}else Xc=1<<a|n<<i|r,Zc=e}function ae(e){e.return!==null&&(re(e,1),ie(e,1,0))}function oe(e){for(;e===Kc;)Kc=Wc[--Gc],Wc[Gc]=null,W=Wc[--Gc],Wc[Gc]=null;for(;e===Yc;)Yc=qc[--Jc],qc[Jc]=null,Zc=qc[--Jc],qc[Jc]=null,Xc=qc[--Jc],qc[Jc]=null}function se(e,t){qc[Jc++]=Xc,qc[Jc++]=Zc,qc[Jc++]=Yc,Xc=t.id,Zc=t.overflow,Yc=e}function ce(e,t){p(el,t),p($c,e),p(Qc,null),e=ro(t),f(Qc),p(Qc,e)}function le(){f(Qc),f($c),f(el)}function ue(e){e.memoizedState!==null&&p(tl,e);var t=Qc.current,n=io(t,e.type);t!==n&&(p($c,e),p(Qc,n))}function N(e){$c.current===e&&(f(Qc),f($c)),tl.current===e&&(f(tl),go?Fo._currentValue=Po:Fo._currentValue2=Po)}function de(e){throw _e(M(Error(r(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?`text`:`HTML`,``)),e)),sl}function fe(e,t){if(!yo)throw Error(r(175));Ms(e.stateNode,e.type,e.memoizedProps,t,e)||de(e,!0)}function pe(e){for(nl=e.return;nl;)switch(nl.tag){case 5:case 31:case 13:ol=!1;return;case 27:case 3:ol=!0;return;default:nl=nl.return}}function me(e){if(!yo||e!==nl)return!1;if(!il)return pe(e),il=!0,!1;var t=e.tag;if(uc?t!==3&&t!==27&&(t!==5||Js(e.type)&&!uo(e.type,e.memoizedProps))&&rl&&de(e):t!==3&&(t!==5||Js(e.type)&&!uo(e.type,e.memoizedProps))&&rl&&de(e),pe(e),t===13){if(!yo)throw Error(r(316));if(e=e.memoizedState,e=e===null?null:e.dehydrated,!e)throw Error(r(317));rl=Ls(e)}else if(t===31){if(e=e.memoizedState,e=e===null?null:e.dehydrated,!e)throw Error(r(317));rl=Is(e)}else rl=uc&&t===27?Ss(e.type,rl):nl?xs(e.stateNode):null;return!0}function he(){yo&&(rl=nl=null,il=!1)}function ge(){var e=al;return e!==null&&(Wu===null?Wu=e:Wu.push.apply(Wu,e),al=null),e}function _e(e){al===null?al=[e]:al.push(e)}function ve(e,t,n){go?(p(cl,t._currentValue),t._currentValue=n):(p(cl,t._currentValue2),t._currentValue2=n)}function P(e){var t=cl.current;go?e._currentValue=t:e._currentValue2=t,f(cl)}function ye(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)===t?r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t):(e.childLanes|=t,r!==null&&(r.childLanes|=t)),e===n)break;e=e.return}}function be(e,t,n,i){var a=e.child;for(a!==null&&(a.return=e);a!==null;){var o=a.dependencies;if(o!==null){var s=a.child;o=o.firstContext;a:for(;o!==null;){var c=o;o=a;for(var l=0;l<t.length;l++)if(c.context===t[l]){o.lanes|=n,c=o.alternate,c!==null&&(c.lanes|=n),ye(o.return,n,e),i||(s=null);break a}o=c.next}}else if(a.tag===18){if(s=a.return,s===null)throw Error(r(341));s.lanes|=n,o=s.alternate,o!==null&&(o.lanes|=n),ye(s,n,e),s=null}else s=a.child;if(s!==null)s.return=a;else for(s=a;s!==null;){if(s===e){s=null;break}if(a=s.sibling,a!==null){a.return=s.return,s=a;break}s=s.return}a=s}}function F(e,t,n,i){e=null;for(var a=t,o=!1;a!==null;){if(!o){if(a.flags&524288)o=!0;else if(a.flags&262144)break}if(a.tag===10){var s=a.alternate;if(s===null)throw Error(r(387));if(s=s.memoizedProps,s!==null){var c=a.type;Lc(a.pendingProps.value,s.value)||(e===null?e=[c]:e.push(c))}}else if(a===tl.current){if(s=a.alternate,s===null)throw Error(r(387));s.memoizedState.memoizedState!==a.memoizedState.memoizedState&&(e===null?e=[Fo]:e.push(Fo))}a=a.return}e!==null&&be(t,e,n,i),t.flags|=262144}function xe(e){for(e=e.firstContext;e!==null;){var t=e.context;if(!Lc(go?t._currentValue:t._currentValue2,e.memoizedValue))return!0;e=e.next}return!1}function Se(e){ll=e,ul=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function Ce(e){return Te(ll,e)}function we(e,t){return ll===null&&Se(e),Te(e,t)}function Te(e,t){var n=go?t._currentValue:t._currentValue2;if(t={context:t,memoizedValue:n,next:null},ul===null){if(e===null)throw Error(r(308));ul=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else ul=ul.next=t;return n}function Ee(){return{controller:new dl,data:new Map,refCount:0}}function De(e){e.refCount--,e.refCount===0&&fl(pl,function(){e.controller.abort()})}function Oe(){}function ke(e){e!==gl&&e.next===null&&(gl===null?hl=gl=e:gl=gl.next=e),vl=!0,_l||(_l=!0,Ie())}function Ae(e,t){if(!yl&&vl){yl=!0;do for(var n=!1,r=hl;r!==null;){if(!t)if(e!==0){var i=r.pendingLanes;if(i===0)var a=0;else{var o=r.suspendedLanes,s=r.pingedLanes;a=(1<<31-yc(42|e)+1)-1,a&=i&~(o&~s),a=a&201326741?a&201326741|1:a?a|2:0}a!==0&&(n=!0,Fe(r,a))}else a=Au,a=g(r,r===Ou?a:0,r.cancelPendingCommit!==null||r.timeoutHandle!==ho),!(a&3)||_(r,a)||(n=!0,Fe(r,a));r=r.next}while(n);yl=!1}}function je(){Me()}function Me(){vl=_l=!1;var e=0;bl!==0&&To()&&(e=bl);for(var t=Oc(),n=null,r=hl;r!==null;){var i=r.next,a=Ne(r,t);a===0?(r.next=null,n===null?hl=i:n.next=i,i===null&&(gl=n)):(n=r,(e!==0||a&3)&&(vl=!0)),r=i}Zu!==0&&Zu!==5||Ae(e,!1),bl!==0&&(bl=0)}function Ne(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,i=e.expirationTimes,a=e.pendingLanes&-62914561;0<a;){var o=31-yc(a),s=1<<o,c=i[o];c===-1?((s&n)===0||(s&r)!==0)&&(i[o]=v(s,t)):c<=t&&(e.expiredLanes|=s),a&=~s}if(t=Ou,n=Au,n=g(e,e===t?n:0,e.cancelPendingCommit!==null||e.timeoutHandle!==ho),r=e.callbackNode,n===0||e===t&&(ju===2||ju===9)||e.cancelPendingCommit!==null)return r!==null&&r!==null&&U(r),e.callbackNode=null,e.callbackPriority=0;if(!(n&3)||_(e,n)){if(t=n&-n,t===e.callbackPriority)return t;switch(r!==null&&U(r),D(n)){case 2:case 8:n=Ac;break;case 32:n=jc;break;case 268435456:n=Mc;break;default:n=jc}return r=Pe.bind(null,e),n=Tc(n,r),e.callbackPriority=t,e.callbackNode=n,t}return r!==null&&r!==null&&U(r),e.callbackPriority=2,e.callbackNode=null,2}function Pe(e,t){if(Zu!==0&&Zu!==5)return e.callbackNode=null,e.callbackPriority=0,null;var n=e.callbackNode;if(oa()&&e.callbackNode!==n)return null;var r=Au;return r=g(e,e===Ou?r:0,e.cancelPendingCommit!==null||e.timeoutHandle!==ho),r===0?null:(Pi(e,r,t),Ne(e,Oc()),e.callbackNode!=null&&e.callbackNode===n?Pe.bind(null,e):null)}function Fe(e,t){if(oa())return null;Pi(e,t,!0)}function Ie(){Lo?Ro(function(){Du&6?Tc(kc,je):Me()}):Tc(kc,je)}function Le(){if(bl===0){var e=Cl;e===0&&(e=Sc,Sc<<=1,!(Sc&261888)&&(Sc=256)),bl=e}return bl}function Re(e,t){if(xl===null){var n=xl=[];Sl=0,Cl=Le(),wl={status:`pending`,value:void 0,then:function(e){n.push(e)}}}return Sl++,t.then(ze,ze),t}function ze(){if(--Sl===0&&xl!==null){wl!==null&&(wl.status=`fulfilled`);var e=xl;xl=null,Cl=0,wl=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function Be(e,t){var n=[],r={status:`pending`,value:null,reason:null,then:function(e){n.push(e)}};return e.then(function(){r.status=`fulfilled`,r.value=t;for(var e=0;e<n.length;e++)(0,n[e])(t)},function(e){for(r.status=`rejected`,r.reason=e,e=0;e<n.length;e++)(0,n[e])(void 0)}),r}function Ve(){var e=El.current;return e===null?Ou.pooledCache:e}function I(e,t){t===null?p(El,El.current):p(El,t.pool)}function He(){var e=Ve();return e===null?null:{parent:go?ml._currentValue:ml._currentValue2,pool:e}}function Ue(e,t){if(Lc(e,t))return!0;if(typeof e!=`object`||!e||typeof t!=`object`||!t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var i=n[r];if(!zc.call(t,i)||!Lc(e[i],t[i]))return!1}return!0}function We(e){return e=e.status,e===`fulfilled`||e===`rejected`}function Ge(e,t,n){switch(n=e[n],n===void 0?e.push(t):n!==t&&(t.then(Oe,Oe),t=n),t.status){case`fulfilled`:return t.value;case`rejected`:throw e=t.reason,Je(e),e;default:if(typeof t.status==`string`)t.then(Oe,Oe);else{if(e=Ou,e!==null&&100<e.shellSuspendCounter)throw Error(r(482));e=t,e.status=`pending`,e.then(function(e){if(t.status===`pending`){var n=t;n.status=`fulfilled`,n.value=e}},function(e){if(t.status===`pending`){var n=t;n.status=`rejected`,n.reason=e}})}switch(t.status){case`fulfilled`:return t.value;case`rejected`:throw e=t.reason,Je(e),e}throw jl=t,Dl}}function Ke(e){try{var t=e._init;return t(e._payload)}catch(e){throw typeof e==`object`&&e&&typeof e.then==`function`?(jl=e,Dl):e}}function qe(){if(jl===null)throw Error(r(459));var e=jl;return jl=null,e}function Je(e){if(e===Dl||e===kl)throw Error(r(483))}function Ye(e){var t=Nl;return Nl+=1,Ml===null&&(Ml=[]),Ge(Ml,e,t)}function Xe(e,t){t=t.props.ref,e.ref=t===void 0?null:t}function Ze(e,t){throw t.$$typeof===Fa?Error(r(525)):(e=Object.prototype.toString.call(t),Error(r(31,e===`[object Object]`?`object with keys {`+Object.keys(t).join(`, `)+`}`:e)))}function Qe(e){function n(t,n){if(e){var r=t.deletions;r===null?(t.deletions=[n],t.flags|=16):r.push(n)}}function i(t,r){if(!e)return null;for(;r!==null;)n(t,r),r=r.sibling;return null}function a(e){for(var t=new Map;e!==null;)e.key===null?t.set(e.index,e):t.set(e.key,e),e=e.sibling;return t}function o(e,t){return e=va(e,t),e.index=0,e.sibling=null,e}function s(t,n,r){return t.index=r,e?(r=t.alternate,r===null?(t.flags|=67108866,n):(r=r.index,r<n?(t.flags|=67108866,n):r)):(t.flags|=1048576,n)}function c(t){return e&&t.alternate===null&&(t.flags|=67108866),t}function u(e,t,n,r){return t===null||t.tag!==6?(t=Sa(n,e.mode,r),t.return=e,t):(t=o(t,n),t.return=e,t)}function d(e,t,n,r){var i=n.type;return i===Ra?p(e,t,n.props.children,r,n.key):t!==null&&(t.elementType===i||typeof i==`object`&&i&&i.$$typeof===qa&&Ke(i)===t.type)?(t=o(t,n.props),Xe(t,n),t.return=e,t):(t=ba(n.type,n.key,n.props,null,e.mode,r),Xe(t,n),t.return=e,t)}function f(e,t,n,r){return t===null||t.tag!==4||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?(t=wa(n,e.mode,r),t.return=e,t):(t=o(t,n.children||[]),t.return=e,t)}function p(e,t,n,r,i){return t===null||t.tag!==7?(t=xa(n,e.mode,r,i),t.return=e,t):(t=o(t,n),t.return=e,t)}function m(e,t,n){if(typeof t==`string`&&t!==``||typeof t==`number`||typeof t==`bigint`)return t=Sa(``+t,e.mode,n),t.return=e,t;if(typeof t==`object`&&t){switch(t.$$typeof){case Ia:return n=ba(t.type,t.key,t.props,null,e.mode,n),Xe(n,t),n.return=e,n;case La:return t=wa(t,e.mode,n),t.return=e,t;case qa:return t=Ke(t),m(e,t,n)}if(Qa(t)||l(t))return t=xa(t,e.mode,n,null),t.return=e,t;if(typeof t.then==`function`)return m(e,Ye(t),n);if(t.$$typeof===Ha)return m(e,we(e,t),n);Ze(e,t)}return null}function h(e,t,n,r){var i=t===null?null:t.key;if(typeof n==`string`&&n!==``||typeof n==`number`||typeof n==`bigint`)return i===null?u(e,t,``+n,r):null;if(typeof n==`object`&&n){switch(n.$$typeof){case Ia:return n.key===i?d(e,t,n,r):null;case La:return n.key===i?f(e,t,n,r):null;case qa:return n=Ke(n),h(e,t,n,r)}if(Qa(n)||l(n))return i===null?p(e,t,n,r,null):null;if(typeof n.then==`function`)return h(e,t,Ye(n),r);if(n.$$typeof===Ha)return h(e,t,we(e,n),r);Ze(e,n)}return null}function g(e,t,n,r,i){if(typeof r==`string`&&r!==``||typeof r==`number`||typeof r==`bigint`)return e=e.get(n)||null,u(t,e,``+r,i);if(typeof r==`object`&&r){switch(r.$$typeof){case Ia:return e=e.get(r.key===null?n:r.key)||null,d(t,e,r,i);case La:return e=e.get(r.key===null?n:r.key)||null,f(t,e,r,i);case qa:return r=Ke(r),g(e,t,n,r,i)}if(Qa(r)||l(r))return e=e.get(n)||null,p(t,e,r,i,null);if(typeof r.then==`function`)return g(e,t,n,Ye(r),i);if(r.$$typeof===Ha)return g(e,t,n,we(t,r),i);Ze(t,r)}return null}function _(t,r,o,c){for(var l=null,u=null,d=r,f=r=0,p=null;d!==null&&f<o.length;f++){d.index>f?(p=d,d=null):p=d.sibling;var _=h(t,d,o[f],c);if(_===null){d===null&&(d=p);break}e&&d&&_.alternate===null&&n(t,d),r=s(_,r,f),u===null?l=_:u.sibling=_,u=_,d=p}if(f===o.length)return i(t,d),il&&re(t,f),l;if(d===null){for(;f<o.length;f++)d=m(t,o[f],c),d!==null&&(r=s(d,r,f),u===null?l=d:u.sibling=d,u=d);return il&&re(t,f),l}for(d=a(d);f<o.length;f++)p=g(d,t,f,o[f],c),p!==null&&(e&&p.alternate!==null&&d.delete(p.key===null?f:p.key),r=s(p,r,f),u===null?l=p:u.sibling=p,u=p);return e&&d.forEach(function(e){return n(t,e)}),il&&re(t,f),l}function v(t,o,c,l){if(c==null)throw Error(r(151));for(var u=null,d=null,f=o,p=o=0,_=null,v=c.next();f!==null&&!v.done;p++,v=c.next()){f.index>p?(_=f,f=null):_=f.sibling;var y=h(t,f,v.value,l);if(y===null){f===null&&(f=_);break}e&&f&&y.alternate===null&&n(t,f),o=s(y,o,p),d===null?u=y:d.sibling=y,d=y,f=_}if(v.done)return i(t,f),il&&re(t,p),u;if(f===null){for(;!v.done;p++,v=c.next())v=m(t,v.value,l),v!==null&&(o=s(v,o,p),d===null?u=v:d.sibling=v,d=v);return il&&re(t,p),u}for(f=a(f);!v.done;p++,v=c.next())v=g(f,t,p,v.value,l),v!==null&&(e&&v.alternate!==null&&f.delete(v.key===null?p:v.key),o=s(v,o,p),d===null?u=v:d.sibling=v,d=v);return e&&f.forEach(function(e){return n(t,e)}),il&&re(t,p),u}function y(e,t,a,s){if(typeof a==`object`&&a&&a.type===Ra&&a.key===null&&(a=a.props.children),typeof a==`object`&&a){switch(a.$$typeof){case Ia:a:{for(var u=a.key;t!==null;){if(t.key===u){if(u=a.type,u===Ra){if(t.tag===7){i(e,t.sibling),s=o(t,a.props.children),s.return=e,e=s;break a}}else if(t.elementType===u||typeof u==`object`&&u&&u.$$typeof===qa&&Ke(u)===t.type){i(e,t.sibling),s=o(t,a.props),Xe(s,a),s.return=e,e=s;break a}i(e,t);break}else n(e,t);t=t.sibling}a.type===Ra?(s=xa(a.props.children,e.mode,s,a.key),s.return=e,e=s):(s=ba(a.type,a.key,a.props,null,e.mode,s),Xe(s,a),s.return=e,e=s)}return c(e);case La:a:{for(u=a.key;t!==null;){if(t.key===u)if(t.tag===4&&t.stateNode.containerInfo===a.containerInfo&&t.stateNode.implementation===a.implementation){i(e,t.sibling),s=o(t,a.children||[]),s.return=e,e=s;break a}else{i(e,t);break}else n(e,t);t=t.sibling}s=wa(a,e.mode,s),s.return=e,e=s}return c(e);case qa:return a=Ke(a),y(e,t,a,s)}if(Qa(a))return _(e,t,a,s);if(l(a)){if(u=l(a),typeof u!=`function`)throw Error(r(150));return a=u.call(a),v(e,t,a,s)}if(typeof a.then==`function`)return y(e,t,Ye(a),s);if(a.$$typeof===Ha)return y(e,t,we(e,a),s);Ze(e,a)}return typeof a==`string`&&a!==``||typeof a==`number`||typeof a==`bigint`?(a=``+a,t!==null&&t.tag===6?(i(e,t.sibling),s=o(t,a),s.return=e,e=s):(i(e,t),s=Sa(a,e.mode,s),s.return=e,e=s),c(e)):i(e,t)}return function(e,n,r,i){try{Nl=0;var a=y(e,n,r,i);return Ml=null,a}catch(n){if(n===Dl||n===kl)throw n;var o=t(29,n,null,e.mode);return o.lanes=i,o.return=e,o}}}function $e(){for(var e=Ll,t=Rl=Ll=0;t<e;){var n=Il[t];Il[t++]=null;var r=Il[t];Il[t++]=null;var i=Il[t];Il[t++]=null;var a=Il[t];if(Il[t++]=null,r!==null&&i!==null){var o=r.pending;o===null?i.next=i:(i.next=o.next,o.next=i),r.pending=i}a!==0&&rt(n,i,a)}}function et(e,t,n,r){Il[Ll++]=e,Il[Ll++]=t,Il[Ll++]=n,Il[Ll++]=r,Rl|=r,e.lanes|=r,e=e.alternate,e!==null&&(e.lanes|=r)}function tt(e,t,n,r){return et(e,t,n,r),it(e)}function nt(e,t){return et(e,null,null,t),it(e)}function rt(e,t,n){e.lanes|=n;var r=e.alternate;r!==null&&(r.lanes|=n);for(var i=!1,a=e.return;a!==null;)a.childLanes|=n,r=a.alternate,r!==null&&(r.childLanes|=n),a.tag===22&&(e=a.stateNode,e===null||e._visibility&1||(i=!0)),e=a,a=a.return;return e.tag===3?(a=e.stateNode,i&&t!==null&&(i=31-yc(n),e=a.hiddenUpdates,r=e[i],r===null?e[i]=[t]:r.push(t),t.lane=n|536870912),a):null}function it(e){if(50<id)throw id=0,ad=null,Error(r(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}function at(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function ot(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 st(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function ct(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,Du&2){var i=r.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),r.pending=t,t=it(e),rt(e,null,n),t}return et(e,r,t,n),it(e)}function lt(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,n&4194048)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,w(e,n)}}function ut(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var i=null,a=null;if(n=n.firstBaseUpdate,n!==null){do{var o={lane:n.lane,tag:n.tag,payload:n.payload,callback:null,next:null};a===null?i=a=o:a=a.next=o,n=n.next}while(n!==null);a===null?i=a=t:a=a.next=t}else i=a=t;n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:a,shared:r.shared,callbacks:r.callbacks},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function dt(){if(Bl){var e=wl;if(e!==null)throw e}}function ft(e,t,n,r){Bl=!1;var i=e.updateQueue;zl=!1;var a=i.firstBaseUpdate,o=i.lastBaseUpdate,s=i.shared.pending;if(s!==null){i.shared.pending=null;var c=s,l=c.next;c.next=null,o===null?a=l:o.next=l,o=c;var u=e.alternate;u!==null&&(u=u.updateQueue,s=u.lastBaseUpdate,s!==o&&(s===null?u.firstBaseUpdate=l:s.next=l,u.lastBaseUpdate=c))}if(a!==null){var d=i.baseState;o=0,u=l=c=null,s=a;do{var f=s.lane&-536870913,p=f!==s.lane;if(p?(Au&f)===f:(r&f)===f){f!==0&&f===Cl&&(Bl=!0),u!==null&&(u=u.next={lane:0,tag:s.tag,payload:s.payload,callback:null,next:null});a:{var m=e,h=s;f=t;var g=n;switch(h.tag){case 1:if(m=h.payload,typeof m==`function`){d=m.call(g,d,f);break a}d=m;break a;case 3:m.flags=m.flags&-65537|128;case 0:if(m=h.payload,f=typeof m==`function`?m.call(g,d,f):m,f==null)break a;d=Pa({},d,f);break a;case 2:zl=!0}}f=s.callback,f!==null&&(e.flags|=64,p&&(e.flags|=8192),p=i.callbacks,p===null?i.callbacks=[f]:p.push(f))}else p={lane:f,tag:s.tag,payload:s.payload,callback:s.callback,next:null},u===null?(l=u=p,c=d):u=u.next=p,o|=f;if(s=s.next,s===null){if(s=i.shared.pending,s===null)break;p=s,s=p.next,p.next=null,i.lastBaseUpdate=p,i.shared.pending=null}}while(1);u===null&&(c=d),i.baseState=c,i.firstBaseUpdate=l,i.lastBaseUpdate=u,a===null&&(i.shared.lanes=0),Ru|=o,e.lanes=o,e.memoizedState=d}}function pt(e,t){if(typeof e!=`function`)throw Error(r(191,e));e.call(t)}function mt(e,t){var n=e.callbacks;if(n!==null)for(e.callbacks=null,e=0;e<n.length;e++)pt(n[e],t)}function L(e,t){e=Iu,p(Hl,e),p(Vl,t),Iu=e|t.baseLanes}function ht(){p(Hl,Iu),p(Vl,Vl.current)}function gt(){Iu=Hl.current,f(Vl),f(Hl)}function _t(e){var t=e.alternate;p(Gl,Gl.current&1),p(Ul,e),Wl===null&&(t===null||Vl.current!==null||t.memoizedState!==null)&&(Wl=e)}function vt(e){p(Gl,Gl.current),p(Ul,e),Wl===null&&(Wl=e)}function yt(e){e.tag===22?(p(Gl,Gl.current),p(Ul,e),Wl===null&&(Wl=e)):bt(e)}function bt(){p(Gl,Gl.current),p(Ul,Ul.current)}function xt(e){f(Ul),Wl===e&&(Wl=null),f(Gl)}function St(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||hs(n)||gs(n)))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)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}function Ct(){throw Error(r(321))}function wt(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Lc(e[n],t[n]))return!1;return!0}function Tt(e,t,n,r,i,a){return Kl=a,G=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,V.H=e===null||e.memoizedState===null?ru:iu,Zl=!1,a=n(r,i),Zl=!1,Xl&&(a=Dt(t,n,r,i)),Et(e),a}function Et(e){V.H=nu;var t=ql!==null&&ql.next!==null;if(Kl=0,Jl=ql=G=null,Yl=!1,$l=0,eu=null,t)throw Error(r(300));e===null||cu||(e=e.dependencies,e!==null&&xe(e)&&(cu=!0))}function Dt(e,t,n,i){G=e;var a=0;do{if(Xl&&(eu=null),$l=0,Xl=!1,25<=a)throw Error(r(301));if(a+=1,Jl=ql=null,e.updateQueue!=null){var o=e.updateQueue;o.lastEffect=null,o.events=null,o.stores=null,o.memoCache!=null&&(o.memoCache.index=0)}V.H=au,o=t(n,i)}while(Xl);return o}function Ot(){var e=V.H,t=e.useState()[0];return t=typeof t.then==`function`?Ft(t):t,e=e.useState()[0],(ql===null?null:ql.memoizedState)!==e&&(G.flags|=1024),t}function kt(){var e=Ql!==0;return Ql=0,e}function At(e,t,n){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~n}function jt(e){if(Yl){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}Yl=!1}Kl=0,Jl=ql=G=null,Xl=!1,$l=Ql=0,eu=null}function Mt(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Jl===null?G.memoizedState=Jl=e:Jl=Jl.next=e,Jl}function Nt(){if(ql===null){var e=G.alternate;e=e===null?null:e.memoizedState}else e=ql.next;var t=Jl===null?G.memoizedState:Jl.next;if(t!==null)Jl=t,ql=e;else{if(e===null)throw G.alternate===null?Error(r(467)):Error(r(310));ql=e,e={memoizedState:ql.memoizedState,baseState:ql.baseState,baseQueue:ql.baseQueue,queue:ql.queue,next:null},Jl===null?G.memoizedState=Jl=e:Jl=Jl.next=e}return Jl}function Pt(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Ft(e){var t=$l;return $l+=1,eu===null&&(eu=[]),e=Ge(eu,e,t),t=G,(Jl===null?t.memoizedState:Jl.next)===null&&(t=t.alternate,V.H=t===null||t.memoizedState===null?ru:iu),e}function It(e){if(typeof e==`object`&&e){if(typeof e.then==`function`)return Ft(e);if(e.$$typeof===Ha)return Ce(e)}throw Error(r(438,String(e)))}function Lt(e){var t=null,n=G.updateQueue;if(n!==null&&(t=n.memoCache),t==null){var r=G.alternate;r!==null&&(r=r.updateQueue,r!==null&&(r=r.memoCache,r!=null&&(t={data:r.data.map(function(e){return e.slice()}),index:0})))}if(t??={data:[],index:0},n===null&&(n=Pt(),G.updateQueue=n),n.memoCache=t,n=t.data[t.index],n===void 0)for(n=t.data[t.index]=Array(e),r=0;r<e;r++)n[r]=Ya;return t.index++,n}function Rt(e,t){return typeof t==`function`?t(e):t}function zt(e){return Bt(Nt(),ql,e)}function Bt(e,t,n){var i=e.queue;if(i===null)throw Error(r(311));i.lastRenderedReducer=n;var a=e.baseQueue,o=i.pending;if(o!==null){if(a!==null){var s=a.next;a.next=o.next,o.next=s}t.baseQueue=a=o,i.pending=null}if(o=e.baseState,a===null)e.memoizedState=o;else{t=a.next;var c=s=null,l=null,u=t,d=!1;do{var f=u.lane&-536870913;if(f===u.lane?(Kl&f)===f:(Au&f)===f){var p=u.revertLane;if(p===0)l!==null&&(l=l.next={lane:0,revertLane:0,gesture:null,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),f===Cl&&(d=!0);else if((Kl&p)===p){u=u.next,p===Cl&&(d=!0);continue}else f={lane:0,revertLane:u.revertLane,gesture:null,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null},l===null?(c=l=f,s=o):l=l.next=f,G.lanes|=p,Ru|=p;f=u.action,Zl&&n(o,f),o=u.hasEagerState?u.eagerState:n(o,f)}else p={lane:f,revertLane:u.revertLane,gesture:u.gesture,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null},l===null?(c=l=p,s=o):l=l.next=p,G.lanes|=f,Ru|=f;u=u.next}while(u!==null&&u!==t);if(l===null?s=o:l.next=c,!Lc(o,e.memoizedState)&&(cu=!0,d&&(n=wl,n!==null)))throw n;e.memoizedState=o,e.baseState=s,e.baseQueue=l,i.lastRenderedState=o}return a===null&&(i.lanes=0),[e.memoizedState,i.dispatch]}function Vt(e){var t=Nt(),n=t.queue;if(n===null)throw Error(r(311));n.lastRenderedReducer=e;var i=n.dispatch,a=n.pending,o=t.memoizedState;if(a!==null){n.pending=null;var s=a=a.next;do o=e(o,s.action),s=s.next;while(s!==a);Lc(o,t.memoizedState)||(cu=!0),t.memoizedState=o,t.baseQueue===null&&(t.baseState=o),n.lastRenderedState=o}return[o,i]}function Ht(e,t,n){var i=G,a=Nt(),o=il;if(o){if(n===void 0)throw Error(r(407));n=n()}else n=t();var s=!Lc((ql||a).memoizedState,n);if(s&&(a.memoizedState=n,cu=!0),a=a.queue,hn(Gt.bind(null,i,a,e),[e]),a.getSnapshot!==t||s||Jl!==null&&Jl.memoizedState.tag&1){if(i.flags|=2048,ln(9,{destroy:void 0},Wt.bind(null,i,a,n,t),null),Ou===null)throw Error(r(349));o||Kl&127||Ut(i,t,n)}return n}function Ut(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=G.updateQueue,t===null?(t=Pt(),G.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function Wt(e,t,n,r){t.value=n,t.getSnapshot=r,Kt(t)&&qt(e)}function Gt(e,t,n){return n(function(){Kt(t)&&qt(e)})}function Kt(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Lc(e,n)}catch{return!0}}function qt(e){var t=nt(e,2);t!==null&&Ni(t,e,2)}function Jt(e){var t=Mt();if(typeof e==`function`){var n=e;if(e=n(),Zl){k(!0);try{n()}finally{k(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Rt,lastRenderedState:e},t}function Yt(e,t,n,r){return e.baseState=n,Bt(e,ql,typeof r==`function`?r:Rt)}function Xt(e,t,n,i,a){if(Ln(e))throw Error(r(485));if(e=t.action,e!==null){var o={payload:a,action:e,next:null,isTransition:!0,status:`pending`,value:null,reason:null,listeners:[],then:function(e){o.listeners.push(e)}};V.T===null?o.isTransition=!1:n(!0),i(o),n=t.pending,n===null?(o.next=t.pending=o,Zt(t,o)):(o.next=n.next,t.pending=n.next=o)}}function Zt(e,t){var n=t.action,r=t.payload,i=e.state;if(t.isTransition){var a=V.T,o={};V.T=o;try{var s=n(i,r),c=V.S;c!==null&&c(o,s),Qt(e,t,s)}catch(n){en(e,t,n)}finally{a!==null&&o.types!==null&&(a.types=o.types),V.T=a}}else try{a=n(i,r),Qt(e,t,a)}catch(n){en(e,t,n)}}function Qt(e,t,n){typeof n==`object`&&n&&typeof n.then==`function`?n.then(function(n){$t(e,t,n)},function(n){return en(e,t,n)}):$t(e,t,n)}function $t(e,t,n){t.status=`fulfilled`,t.value=n,tn(t),e.state=n,t=e.pending,t!==null&&(n=t.next,n===t?e.pending=null:(n=n.next,t.next=n,Zt(e,n)))}function en(e,t,n){var r=e.pending;if(e.pending=null,r!==null){r=r.next;do t.status=`rejected`,t.reason=n,tn(t),t=t.next;while(t!==r)}e.action=null}function tn(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function nn(e,t){return t}function rn(e,t){if(il){var n=Ou.formState;if(n!==null){a:{var r=G;if(il){if(rl){var i=ys(rl,ol);if(i){rl=xs(i),r=bs(i);break a}}de(r)}r=!1}r&&(t=n[0])}}n=Mt(),n.memoizedState=n.baseState=t,r={pending:null,lanes:0,dispatch:null,lastRenderedReducer:nn,lastRenderedState:t},n.queue=r,n=Pn.bind(null,G,r),r.dispatch=n,r=Jt(!1);var a=In.bind(null,G,!1,r.queue);return r=Mt(),i={state:t,dispatch:null,action:e,pending:null},r.queue=i,n=Xt.bind(null,G,i,a,n),i.dispatch=n,r.memoizedState=e,[t,n,!1]}function an(e){return on(Nt(),ql,e)}function on(e,t,n){if(t=Bt(e,t,nn)[0],e=zt(Rt)[0],typeof t==`object`&&t&&typeof t.then==`function`)try{var r=Ft(t)}catch(e){throw e===Dl?kl:e}else r=t;t=Nt();var i=t.queue,a=i.dispatch;return n!==t.memoizedState&&(G.flags|=2048,ln(9,{destroy:void 0},sn.bind(null,i,n),null)),[r,a,e]}function sn(e,t){e.action=t}function cn(e){var t=Nt(),n=ql;if(n!==null)return on(t,n,e);Nt(),t=t.memoizedState,n=Nt();var r=n.queue.dispatch;return n.memoizedState=e,[t,r,!1]}function ln(e,t,n,r){return e={tag:e,create:n,deps:r,inst:t,next:null},t=G.updateQueue,t===null&&(t=Pt(),G.updateQueue=t),n=t.lastEffect,n===null?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e),e}function un(){return Nt().memoizedState}function dn(e,t,n,r){var i=Mt();G.flags|=e,i.memoizedState=ln(1|t,{destroy:void 0},n,r===void 0?null:r)}function pn(e,t,n,r){var i=Nt();r=r===void 0?null:r;var a=i.memoizedState.inst;ql!==null&&r!==null&&wt(r,ql.memoizedState.deps)?i.memoizedState=ln(t,a,n,r):(G.flags|=e,i.memoizedState=ln(1|t,a,n,r))}function mn(e,t){dn(8390656,8,e,t)}function hn(e,t){pn(2048,8,e,t)}function gn(e){G.flags|=4;var t=G.updateQueue;if(t===null)t=Pt(),G.updateQueue=t,t.events=[e];else{var n=t.events;n===null?t.events=[e]:n.push(e)}}function _n(e){var t=Nt().memoizedState;return gn({ref:t,nextImpl:e}),function(){if(Du&2)throw Error(r(440));return t.impl.apply(void 0,arguments)}}function vn(e,t){return pn(4,2,e,t)}function yn(e,t){return pn(4,4,e,t)}function bn(e,t){if(typeof t==`function`){e=e();var n=t(e);return function(){typeof n==`function`?n():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function xn(e,t,n){n=n==null?null:n.concat([e]),pn(4,4,bn.bind(null,t,e),n)}function Sn(){}function Cn(e,t){var n=Nt();t=t===void 0?null:t;var r=n.memoizedState;return t!==null&&wt(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function wn(e,t){var n=Nt();t=t===void 0?null:t;var r=n.memoizedState;if(t!==null&&wt(t,r[1]))return r[0];if(r=e(),Zl){k(!0);try{e()}finally{k(!1)}}return n.memoizedState=[r,t],r}function Tn(e,t,n){return n===void 0||Kl&1073741824&&!(Au&261930)?e.memoizedState=t:(e.memoizedState=n,e=Mi(),G.lanes|=e,Ru|=e,n)}function En(e,t,n,r){return Lc(n,t)?n:Vl.current===null?!(Kl&42)||Kl&1073741824&&!(Au&261930)?(cu=!0,e.memoizedState=n):(e=Mi(),G.lanes|=e,Ru|=e,t):(e=Tn(e,n,r),Lc(e,t)||(cu=!0),e)}function Dn(e,t,n,r,i){var a=Co();So(a!==0&&8>a?a:8);var o=V.T,s={};V.T=s,In(e,!1,t,n);try{var c=i(),l=V.S;l!==null&&l(s,c),typeof c==`object`&&c&&typeof c.then==`function`?Fn(e,t,Be(c,r),ji(e)):Fn(e,t,r,ji(e))}catch(n){Fn(e,t,{then:function(){},status:`rejected`,reason:n},ji())}finally{So(a),o!==null&&s.types!==null&&(o.types=s.types),V.T=o}}function On(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:Po,baseState:Po,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Rt,lastRenderedState:Po},next:null};var n={};return t.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Rt,lastRenderedState:n},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function kn(){return Ce(Fo)}function An(){return Nt().memoizedState}function jn(){return Nt().memoizedState}function Mn(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var n=ji();e=st(n);var r=ct(t,e,n);r!==null&&(Ni(r,t,n),lt(r,t,n)),t={cache:Ee()},e.payload=t;return}t=t.return}}function Nn(e,t,n){var r=ji();n={lane:r,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},Ln(e)?Rn(t,n):(n=tt(e,t,n,r),n!==null&&(Ni(n,e,r),zn(n,t,r)))}function Pn(e,t,n){Fn(e,t,n,ji())}function Fn(e,t,n,r){var i={lane:r,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};if(Ln(e))Rn(t,i);else{var a=e.alternate;if(e.lanes===0&&(a===null||a.lanes===0)&&(a=t.lastRenderedReducer,a!==null))try{var o=t.lastRenderedState,s=a(o,n);if(i.hasEagerState=!0,i.eagerState=s,Lc(s,o))return et(e,t,i,0),Ou===null&&$e(),!1}catch{}if(n=tt(e,t,i,r),n!==null)return Ni(n,e,r),zn(n,t,r),!0}return!1}function In(e,t,n,i){if(i={lane:2,revertLane:Le(),gesture:null,action:i,hasEagerState:!1,eagerState:null,next:null},Ln(e)){if(t)throw Error(r(479))}else t=tt(e,n,i,2),t!==null&&Ni(t,e,2)}function Ln(e){var t=e.alternate;return e===G||t!==null&&t===G}function Rn(e,t){Xl=Yl=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function zn(e,t,n){if(n&4194048){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,w(e,n)}}function Bn(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:Pa({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}function Vn(e,t,n,r,i,a,o){return e=e.stateNode,typeof e.shouldComponentUpdate==`function`?e.shouldComponentUpdate(r,a,o):t.prototype&&t.prototype.isPureReactComponent?!Ue(n,r)||!Ue(i,a):!0}function Hn(e,t,n,r){e=t.state,typeof t.componentWillReceiveProps==`function`&&t.componentWillReceiveProps(n,r),typeof t.UNSAFE_componentWillReceiveProps==`function`&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&ou.enqueueReplaceState(t,t.state,null)}function Un(e,t){var n=t;if(`ref`in t)for(var r in n={},t)r!==`ref`&&(n[r]=t[r]);if(e=e.defaultProps)for(var i in n===t&&(n=Pa({},n)),e)n[i]===void 0&&(n[i]=e[i]);return n}function Wn(e,t){try{var n=e.onUncaughtError;n(t.value,{componentStack:t.stack})}catch(e){setTimeout(function(){throw e})}}function Gn(e,t,n){try{var r=e.onCaughtError;r(n.value,{componentStack:n.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(e){setTimeout(function(){throw e})}}function Kn(e,t,n){return n=st(n),n.tag=3,n.payload={element:null},n.callback=function(){Wn(e,t)},n}function qn(e){return e=st(e),e.tag=3,e}function Jn(e,t,n,r){var i=n.type.getDerivedStateFromError;if(typeof i==`function`){var a=r.value;e.payload=function(){return i(a)},e.callback=function(){Gn(t,n,r)}}var o=n.stateNode;o!==null&&typeof o.componentDidCatch==`function`&&(e.callback=function(){Gn(t,n,r),typeof i!=`function`&&(Xu===null?Xu=new Set([this]):Xu.add(this));var e=r.stack;this.componentDidCatch(r.value,{componentStack:e===null?``:e})})}function Yn(e,t,n,i,a){if(n.flags|=32768,typeof i==`object`&&i&&typeof i.then==`function`){if(t=n.alternate,t!==null&&F(t,n,a,!0),n=Ul.current,n!==null){switch(n.tag){case 31:case 13:return Wl===null?Gi():n.alternate===null&&Lu===0&&(Lu=3),n.flags&=-257,n.flags|=65536,n.lanes=a,i===Al?n.flags|=16384:(t=n.updateQueue,t===null?n.updateQueue=new Set([i]):t.add(i),ua(e,i,a)),!1;case 22:return n.flags|=65536,i===Al?n.flags|=16384:(t=n.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([i])},n.updateQueue=t):(n=t.retryQueue,n===null?t.retryQueue=new Set([i]):n.add(i)),ua(e,i,a)),!1}throw Error(r(435,n.tag))}return ua(e,i,a),Gi(),!1}if(il)return t=Ul.current,t===null?(i!==sl&&(t=Error(r(423),{cause:i}),_e(M(t,n))),e=e.current.alternate,e.flags|=65536,a&=-a,e.lanes|=a,i=M(i,n),a=Kn(e.stateNode,i,a),ut(e,a),Lu!==4&&(Lu=2)):(!(t.flags&65536)&&(t.flags|=256),t.flags|=65536,t.lanes=a,i!==sl&&(e=Error(r(422),{cause:i}),_e(M(e,n)))),!1;var o=Error(r(520),{cause:i});if(o=M(o,n),Uu===null?Uu=[o]:Uu.push(o),Lu!==4&&(Lu=2),t===null)return!0;i=M(i,n),n=t;do{switch(n.tag){case 3:return n.flags|=65536,e=a&-a,n.lanes|=e,e=Kn(n.stateNode,i,e),ut(n,e),!1;case 1:if(t=n.type,o=n.stateNode,!(n.flags&128)&&(typeof t.getDerivedStateFromError==`function`||o!==null&&typeof o.componentDidCatch==`function`&&(Xu===null||!Xu.has(o))))return n.flags|=65536,a&=-a,n.lanes|=a,a=qn(a),Jn(a,e,n,i),ut(n,a),!1}n=n.return}while(n!==null);return!1}function Xn(e,t,n,r){t.child=e===null?Fl(t,null,n,r):Pl(t,e.child,n,r)}function Zn(e,t,n,r,i){n=n.render;var a=t.ref;if(`ref`in r){var o={};for(var s in r)s!==`ref`&&(o[s]=r[s])}else o=r;return Se(t),r=Tt(e,t,n,o,a,i),s=kt(),e!==null&&!cu?(At(e,t,i),vr(e,t,i)):(il&&s&&ae(t),t.flags|=1,Xn(e,t,r,i),t.child)}function Qn(e,t,n,r,i){if(e===null){var a=n.type;return typeof a==`function`&&!_a(a)&&a.defaultProps===void 0&&n.compare===null?(t.tag=15,t.type=a,$n(e,t,a,r,i)):(e=ba(n.type,null,r,t,t.mode,i),e.ref=t.ref,e.return=t,t.child=e)}if(a=e.child,!yr(e,i)){var o=a.memoizedProps;if(n=n.compare,n=n===null?Ue:n,n(o,r)&&e.ref===t.ref)return vr(e,t,i)}return t.flags|=1,e=va(a,r),e.ref=t.ref,e.return=t,t.child=e}function $n(e,t,n,r,i){if(e!==null){var a=e.memoizedProps;if(Ue(a,r)&&e.ref===t.ref)if(cu=!1,t.pendingProps=r=a,yr(e,i))e.flags&131072&&(cu=!0);else return t.lanes=e.lanes,vr(e,t,i)}return sr(e,t,n,r,i)}function er(e,t,n,r){var i=r.children,a=e===null?null:e.memoizedState;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),r.mode===`hidden`){if(t.flags&128){if(a=a===null?n:a.baseLanes|n,e!==null){for(r=t.child=e.child,i=0;r!==null;)i=i|r.lanes|r.childLanes,r=r.sibling;r=i&~a}else r=0,t.child=null;return nr(e,t,a,n,r)}if(n&536870912)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&I(t,a===null?null:a.cachePool),a===null?ht():L(t,a),yt(t);else return r=t.lanes=536870912,nr(e,t,a===null?n:a.baseLanes|n,n,r)}else a===null?(e!==null&&I(t,null),ht(),bt(t)):(I(t,a.cachePool),L(t,a),bt(t),t.memoizedState=null);return Xn(e,t,i,n),t.child}function tr(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function nr(e,t,n,r,i){var a=Ve();return a=a===null?null:{parent:go?ml._currentValue:ml._currentValue2,pool:a},t.memoizedState={baseLanes:n,cachePool:a},e!==null&&I(t,null),ht(),yt(t),e!==null&&F(e,t,r,!0),t.childLanes=i,null}function rr(e,t){return t=hr({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function ir(e,t,n){return Pl(t,e.child,null,n),e=rr(t,t.pendingProps),e.flags|=2,xt(t),t.memoizedState=null,e}function ar(e,t,n){var i=t.pendingProps,a=(t.flags&128)!=0;if(t.flags&=-129,e===null){if(il){if(i.mode===`hidden`)return e=rr(t,i),t.lanes=536870912,tr(null,e);if(vt(t),(e=rl)?(e=As(e,ol),e!==null&&(t.memoizedState={dehydrated:e,treeContext:Yc===null?null:{id:Xc,overflow:Zc},retryLane:536870912,hydrationErrors:null},n=Ca(e),n.return=t,t.child=n,nl=t,rl=null)):e=null,e===null)throw de(t);return t.lanes=536870912,null}return rr(t,i)}var o=e.memoizedState;if(o!==null){var s=o.dehydrated;if(vt(t),a)if(t.flags&256)t.flags&=-257,t=ir(e,t,n);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(r(558));else if(cu||F(e,t,n,!1),a=(n&e.childLanes)!==0,cu||a){if(i=Ou,i!==null&&(s=T(i,n),s!==0&&s!==o.retryLane))throw o.retryLane=s,nt(e,s),Ni(i,e,s),su;Gi(),t=ir(e,t,n)}else e=o.treeContext,yo&&(rl=Ts(s),nl=t,il=!0,al=null,ol=!1,e!==null&&se(t,e)),t=rr(t,i),t.flags|=4096;return t}return e=va(e.child,{mode:i.mode,children:i.children}),e.ref=t.ref,t.child=e,e.return=t,e}function or(e,t){var n=t.ref;if(n===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof n!=`function`&&typeof n!=`object`)throw Error(r(284));(e===null||e.ref!==n)&&(t.flags|=4194816)}}function sr(e,t,n,r,i){return Se(t),n=Tt(e,t,n,r,void 0,i),r=kt(),e!==null&&!cu?(At(e,t,i),vr(e,t,i)):(il&&r&&ae(t),t.flags|=1,Xn(e,t,n,i),t.child)}function cr(e,t,n,r,i,a){return Se(t),t.updateQueue=null,n=Dt(t,r,n,i),Et(e),r=kt(),e!==null&&!cu?(At(e,t,a),vr(e,t,a)):(il&&r&&ae(t),t.flags|=1,Xn(e,t,n,a),t.child)}function lr(e,t,n,r,i){if(Se(t),t.stateNode===null){var a=vc,o=n.contextType;typeof o==`object`&&o&&(a=Ce(o)),a=new n(r,a),t.memoizedState=a.state!==null&&a.state!==void 0?a.state:null,a.updater=ou,t.stateNode=a,a._reactInternals=t,a=t.stateNode,a.props=r,a.state=t.memoizedState,a.refs={},at(t),o=n.contextType,a.context=typeof o==`object`&&o?Ce(o):vc,a.state=t.memoizedState,o=n.getDerivedStateFromProps,typeof o==`function`&&(Bn(t,n,o,r),a.state=t.memoizedState),typeof n.getDerivedStateFromProps==`function`||typeof a.getSnapshotBeforeUpdate==`function`||typeof a.UNSAFE_componentWillMount!=`function`&&typeof a.componentWillMount!=`function`||(o=a.state,typeof a.componentWillMount==`function`&&a.componentWillMount(),typeof a.UNSAFE_componentWillMount==`function`&&a.UNSAFE_componentWillMount(),o!==a.state&&ou.enqueueReplaceState(a,a.state,null),ft(t,r,a,i),dt(),a.state=t.memoizedState),typeof a.componentDidMount==`function`&&(t.flags|=4194308),r=!0}else if(e===null){a=t.stateNode;var s=t.memoizedProps,c=Un(n,s);a.props=c;var l=a.context,u=n.contextType;o=vc,typeof u==`object`&&u&&(o=Ce(u));var d=n.getDerivedStateFromProps;u=typeof d==`function`||typeof a.getSnapshotBeforeUpdate==`function`,s=t.pendingProps!==s,u||typeof a.UNSAFE_componentWillReceiveProps!=`function`&&typeof a.componentWillReceiveProps!=`function`||(s||l!==o)&&Hn(t,a,r,o),zl=!1;var f=t.memoizedState;a.state=f,ft(t,r,a,i),dt(),l=t.memoizedState,s||f!==l||zl?(typeof d==`function`&&(Bn(t,n,d,r),l=t.memoizedState),(c=zl||Vn(t,n,c,r,f,l,o))?(u||typeof a.UNSAFE_componentWillMount!=`function`&&typeof a.componentWillMount!=`function`||(typeof a.componentWillMount==`function`&&a.componentWillMount(),typeof a.UNSAFE_componentWillMount==`function`&&a.UNSAFE_componentWillMount()),typeof a.componentDidMount==`function`&&(t.flags|=4194308)):(typeof a.componentDidMount==`function`&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=l),a.props=r,a.state=l,a.context=o,r=c):(typeof a.componentDidMount==`function`&&(t.flags|=4194308),r=!1)}else{a=t.stateNode,ot(e,t),o=t.memoizedProps,u=Un(n,o),a.props=u,d=t.pendingProps,f=a.context,l=n.contextType,c=vc,typeof l==`object`&&l&&(c=Ce(l)),s=n.getDerivedStateFromProps,(l=typeof s==`function`||typeof a.getSnapshotBeforeUpdate==`function`)||typeof a.UNSAFE_componentWillReceiveProps!=`function`&&typeof a.componentWillReceiveProps!=`function`||(o!==d||f!==c)&&Hn(t,a,r,c),zl=!1,f=t.memoizedState,a.state=f,ft(t,r,a,i),dt();var p=t.memoizedState;o!==d||f!==p||zl||e!==null&&e.dependencies!==null&&xe(e.dependencies)?(typeof s==`function`&&(Bn(t,n,s,r),p=t.memoizedState),(u=zl||Vn(t,n,u,r,f,p,c)||e!==null&&e.dependencies!==null&&xe(e.dependencies))?(l||typeof a.UNSAFE_componentWillUpdate!=`function`&&typeof a.componentWillUpdate!=`function`||(typeof a.componentWillUpdate==`function`&&a.componentWillUpdate(r,p,c),typeof a.UNSAFE_componentWillUpdate==`function`&&a.UNSAFE_componentWillUpdate(r,p,c)),typeof a.componentDidUpdate==`function`&&(t.flags|=4),typeof a.getSnapshotBeforeUpdate==`function`&&(t.flags|=1024)):(typeof a.componentDidUpdate!=`function`||o===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!=`function`||o===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=p),a.props=r,a.state=p,a.context=c,r=u):(typeof a.componentDidUpdate!=`function`||o===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!=`function`||o===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),r=!1)}return a=r,or(e,t),r=(t.flags&128)!=0,a||r?(a=t.stateNode,n=r&&typeof n.getDerivedStateFromError!=`function`?null:a.render(),t.flags|=1,e!==null&&r?(t.child=Pl(t,e.child,null,i),t.child=Pl(t,null,n,i)):Xn(e,t,n,i),t.memoizedState=a.state,e=t.child):e=vr(e,t,i),e}function ur(e,t,n,r){return he(),t.flags|=256,Xn(e,t,n,r),t.child}function dr(e){return{baseLanes:e,cachePool:He()}}function fr(e,t,n){return e=e===null?0:e.childLanes&~n,t&&(e|=Vu),e}function pr(e,t,n){var i=t.pendingProps,a=!1,o=(t.flags&128)!=0,s;if((s=o)||(s=e!==null&&e.memoizedState===null?!1:(Gl.current&2)!=0),s&&(a=!0,t.flags&=-129),s=(t.flags&32)!=0,t.flags&=-33,e===null){if(il){if(a?_t(t):bt(t),(e=rl)?(e=js(e,ol),e!==null&&(t.memoizedState={dehydrated:e,treeContext:Yc===null?null:{id:Xc,overflow:Zc},retryLane:536870912,hydrationErrors:null},n=Ca(e),n.return=t,t.child=n,nl=t,rl=null)):e=null,e===null)throw de(t);return gs(e)?t.lanes=32:t.lanes=536870912,null}var c=i.children;return i=i.fallback,a?(bt(t),a=t.mode,c=hr({mode:`hidden`,children:c},a),i=xa(i,a,n,null),c.return=t,i.return=t,c.sibling=i,t.child=c,i=t.child,i.memoizedState=dr(n),i.childLanes=fr(e,s,n),t.memoizedState=lu,tr(null,i)):(_t(t),mr(t,c))}var l=e.memoizedState;if(l!==null&&(c=l.dehydrated,c!==null)){if(o)t.flags&256?(_t(t),t.flags&=-257,t=gr(e,t,n)):t.memoizedState===null?(bt(t),c=i.fallback,a=t.mode,i=hr({mode:`visible`,children:i.children},a),c=xa(c,a,n,null),c.flags|=2,i.return=t,c.return=t,i.sibling=c,t.child=i,Pl(t,e.child,null,n),i=t.child,i.memoizedState=dr(n),i.childLanes=fr(e,s,n),t.memoizedState=lu,t=tr(null,i)):(bt(t),t.child=e.child,t.flags|=128,t=null);else if(_t(t),gs(c))s=_s(c).digest,i=Error(r(419)),i.stack=``,i.digest=s,_e({value:i,source:null,stack:null}),t=gr(e,t,n);else if(cu||F(e,t,n,!1),s=(n&e.childLanes)!==0,cu||s){if(s=Ou,s!==null&&(i=T(s,n),i!==0&&i!==l.retryLane))throw l.retryLane=i,nt(e,i),Ni(s,e,i),su;hs(c)||Gi(),t=gr(e,t,n)}else hs(c)?(t.flags|=192,t.child=e.child,t=null):(e=l.treeContext,yo&&(rl=Es(c),nl=t,il=!0,al=null,ol=!1,e!==null&&se(t,e)),t=mr(t,i.children),t.flags|=4096);return t}return a?(bt(t),c=i.fallback,a=t.mode,l=e.child,o=l.sibling,i=va(l,{mode:`hidden`,children:i.children}),i.subtreeFlags=l.subtreeFlags&65011712,o===null?(c=xa(c,a,n,null),c.flags|=2):c=va(o,c),c.return=t,i.return=t,i.sibling=c,t.child=i,tr(null,i),i=t.child,c=e.child.memoizedState,c===null?c=dr(n):(a=c.cachePool,a===null?a=He():(l=go?ml._currentValue:ml._currentValue2,a=a.parent===l?a:{parent:l,pool:l}),c={baseLanes:c.baseLanes|n,cachePool:a}),i.memoizedState=c,i.childLanes=fr(e,s,n),t.memoizedState=lu,tr(e.child,i)):(_t(t),n=e.child,e=n.sibling,n=va(n,{mode:`visible`,children:i.children}),n.return=t,n.sibling=null,e!==null&&(s=t.deletions,s===null?(t.deletions=[e],t.flags|=16):s.push(e)),t.child=n,t.memoizedState=null,n)}function mr(e,t){return t=hr({mode:`visible`,children:t},e.mode),t.return=e,e.child=t}function hr(e,n){return e=t(22,e,null,n),e.lanes=0,e}function gr(e,t,n){return Pl(t,e.child,null,n),e=mr(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function _r(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),ye(e.return,t,n)}function R(e,t,n,r,i,a){var o=e.memoizedState;o===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i,treeForkCount:a}:(o.isBackwards=t,o.rendering=null,o.renderingStartTime=0,o.last=r,o.tail=n,o.tailMode=i,o.treeForkCount=a)}function z(e,t,n){var r=t.pendingProps,i=r.revealOrder,a=r.tail;r=r.children;var o=Gl.current,s=(o&2)!=0;if(s?(o=o&1|2,t.flags|=128):o&=1,p(Gl,o),Xn(e,t,r,n),r=il?W:0,!s&&e!==null&&e.flags&128)a:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&_r(e,n,t);else if(e.tag===19)_r(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break a;for(;e.sibling===null;){if(e.return===null||e.return===t)break a;e=e.return}e.sibling.return=e.return,e=e.sibling}switch(i){case`forwards`:for(n=t.child,i=null;n!==null;)e=n.alternate,e!==null&&St(e)===null&&(i=n),n=n.sibling;n=i,n===null?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),R(t,!1,i,n,a,r);break;case`backwards`:case`unstable_legacy-backwards`:for(n=null,i=t.child,t.child=null;i!==null;){if(e=i.alternate,e!==null&&St(e)===null){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}R(t,!0,n,null,a,r);break;case`together`:R(t,!1,null,null,void 0,r);break;default:t.memoizedState=null}return t.child}function vr(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),Ru|=t.lanes,(n&t.childLanes)===0)if(e!==null){if(F(e,t,n,!1),(n&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(r(153));if(t.child!==null){for(e=t.child,n=va(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=va(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function yr(e,t){return(e.lanes&t)===0?(e=e.dependencies,!!(e!==null&&xe(e))):!0}function br(e,t,n){switch(t.tag){case 3:ce(t,t.stateNode.containerInfo),ve(t,ml,e.memoizedState.cache),he();break;case 27:case 5:ue(t);break;case 4:ce(t,t.stateNode.containerInfo);break;case 10:ve(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,vt(t),null;break;case 13:var r=t.memoizedState;if(r!==null)return r.dehydrated===null?(n&t.child.childLanes)===0?(_t(t),e=vr(e,t,n),e===null?null:e.sibling):pr(e,t,n):(_t(t),t.flags|=128,null);_t(t);break;case 19:var i=(e.flags&128)!=0;if(r=(n&t.childLanes)!==0,r||=(F(e,t,n,!1),(n&t.childLanes)!==0),i){if(r)return z(e,t,n);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),p(Gl,Gl.current),r)break;return null;case 22:return t.lanes=0,er(e,t,n,t.pendingProps);case 24:ve(t,ml,e.memoizedState.cache)}return vr(e,t,n)}function xr(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps)cu=!0;else{if(!yr(e,n)&&!(t.flags&128))return cu=!1,br(e,t,n);cu=!!(e.flags&131072)}else cu=!1,il&&t.flags&1048576&&ie(t,W,t.index);switch(t.lanes=0,t.tag){case 16:a:{var i=t.pendingProps;if(e=Ke(t.elementType),t.type=e,typeof e==`function`)_a(e)?(i=Un(e,i),t.tag=1,t=lr(null,t,e,i,n)):(t.tag=0,t=sr(null,t,e,i,n));else{if(e!=null){var a=e.$$typeof;if(a===Ua){t.tag=11,t=Zn(null,t,e,i,n);break a}else if(a===Ka){t.tag=14,t=Qn(null,t,e,i,n);break a}}throw t=u(e)||e,Error(r(306,t,``))}}return t;case 0:return sr(e,t,t.type,t.pendingProps,n);case 1:return i=t.type,a=Un(i,t.pendingProps),lr(e,t,i,a,n);case 3:a:{if(ce(t,t.stateNode.containerInfo),e===null)throw Error(r(387));var o=t.pendingProps;a=t.memoizedState,i=a.element,ot(e,t),ft(t,o,null,n);var s=t.memoizedState;if(o=s.cache,ve(t,ml,o),o!==a.cache&&be(t,[ml],n,!0),dt(),o=s.element,yo&&a.isDehydrated)if(a={element:o,isDehydrated:!1,cache:s.cache},t.updateQueue.baseState=a,t.memoizedState=a,t.flags&256){t=ur(e,t,o,n);break a}else if(o!==i){i=M(Error(r(424)),t),_e(i),t=ur(e,t,o,n);break a}else for(yo&&(rl=ws(t.stateNode.containerInfo),nl=t,il=!0,al=null,ol=!0),n=Fl(t,null,o,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(he(),o===i){t=vr(e,t,n);break a}Xn(e,t,o,n)}t=t.child}return t;case 26:if(Zs)return or(e,t),e===null?(n=$s(t.type,null,t.pendingProps,null))?t.memoizedState=n:il||(t.stateNode=ac(t.type,t.pendingProps,el.current,t)):t.memoizedState=$s(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:if(uc)return ue(t),e===null&&uc&&il&&(i=t.stateNode=dc(t.type,t.pendingProps,el.current,Qc.current,!1),nl=t,ol=!0,rl=Ds(t.type,i,rl)),Xn(e,t,t.pendingProps.children,n),or(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&il&&(Ys(t.type,t.pendingProps,Qc.current),(a=i=rl)&&(i=Os(i,t.type,t.pendingProps,ol),i===null?a=!1:(t.stateNode=i,nl=t,rl=Cs(i),ol=!1,a=!0)),a||de(t)),ue(t),a=t.type,o=t.pendingProps,s=e===null?null:e.memoizedProps,i=o.children,uo(a,o)?i=null:s!==null&&uo(a,s)&&(t.flags|=32),t.memoizedState!==null&&(a=Tt(e,t,Ot,null,null,n),go?Fo._currentValue=a:Fo._currentValue2=a),or(e,t),Xn(e,t,i,n),t.child;case 6:return e===null&&il&&(Xs(t.pendingProps,Qc.current),(e=n=rl)&&(n=ks(n,t.pendingProps,ol),n===null?e=!1:(t.stateNode=n,nl=t,rl=null,e=!0)),e||de(t)),null;case 13:return pr(e,t,n);case 4:return ce(t,t.stateNode.containerInfo),i=t.pendingProps,e===null?t.child=Pl(t,null,i,n):Xn(e,t,i,n),t.child;case 11:return Zn(e,t,t.type,t.pendingProps,n);case 7:return Xn(e,t,t.pendingProps,n),t.child;case 8:return Xn(e,t,t.pendingProps.children,n),t.child;case 12:return Xn(e,t,t.pendingProps.children,n),t.child;case 10:return i=t.pendingProps,ve(t,t.type,i.value),Xn(e,t,i.children,n),t.child;case 9:return a=t.type._context,i=t.pendingProps.children,Se(t),a=Ce(a),i=i(a),t.flags|=1,Xn(e,t,i,n),t.child;case 14:return Qn(e,t,t.type,t.pendingProps,n);case 15:return $n(e,t,t.type,t.pendingProps,n);case 19:return z(e,t,n);case 31:return ar(e,t,n);case 22:return er(e,t,n,t.pendingProps);case 24:return Se(t),i=Ce(ml),e===null?(a=Ve(),a===null&&(a=Ou,o=Ee(),a.pooledCache=o,o.refCount++,o!==null&&(a.pooledCacheLanes|=n),a=o),t.memoizedState={parent:i,cache:a},at(t),ve(t,ml,a)):((e.lanes&n)!==0&&(ot(e,t),ft(t,null,null,n),dt()),a=e.memoizedState,o=t.memoizedState,a.parent===i?(i=o.cache,ve(t,ml,i),i!==a.cache&&be(t,[ml],n,!0)):(a={parent:i,cache:i},t.memoizedState=a,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=a),ve(t,ml,i))),Xn(e,t,t.pendingProps.children,n),t.child;case 29:throw t.pendingProps}throw Error(r(156,t.tag))}function Sr(e){e.flags|=4}function Cr(e){vo&&(e.flags|=8)}function wr(e,t){if(e!==null&&e.child===t.child)return!1;if(t.flags&16)return!0;for(e=t.child;e!==null;){if(e.flags&8218||e.subtreeFlags&8218)return!0;e=e.sibling}return!1}function Tr(e,t,n,r){if(_o)for(n=t.child;n!==null;){if(n.tag===5||n.tag===6)co(e,n.stateNode);else if(!(n.tag===4||uc&&n.tag===27)&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}else if(vo)for(var i=t.child;i!==null;){if(i.tag===5){var a=i.stateNode;n&&r&&(a=ps(a,i.type,i.memoizedProps)),co(e,a)}else if(i.tag===6)a=i.stateNode,n&&r&&(a=ms(a,i.memoizedProps)),co(e,a);else if(i.tag!==4){if(i.tag===22&&i.memoizedState!==null)a=i.child,a!==null&&(a.return=i),Tr(e,i,!0,!0);else if(i.child!==null){i.child.return=i,i=i.child;continue}}if(i===t)break;for(;i.sibling===null;){if(i.return===null||i.return===t)return;i=i.return}i.sibling.return=i.return,i=i.sibling}}function Er(e,t,n,r){var i=!1;if(vo)for(var a=t.child;a!==null;){if(a.tag===5){var o=a.stateNode;n&&r&&(o=ps(o,a.type,a.memoizedProps)),us(e,o)}else if(a.tag===6)o=a.stateNode,n&&r&&(o=ms(o,a.memoizedProps)),us(e,o);else if(a.tag!==4){if(a.tag===22&&a.memoizedState!==null)i=a.child,i!==null&&(i.return=a),Er(e,a,!0,!0),i=!0;else if(a.child!==null){a.child.return=a,a=a.child;continue}}if(a===t)break;for(;a.sibling===null;){if(a.return===null||a.return===t)return i;a=a.return}a.sibling.return=a.return,a=a.sibling}return i}function Dr(e,t){if(vo&&wr(e,t)){e=t.stateNode;var n=e.containerInfo,r=ls();Er(r,t,!1,!1),e.pendingChildren=r,Sr(t),ds(n,r)}}function Or(e,t,n,r){if(_o)e.memoizedProps!==r&&Sr(t);else if(vo){var i=e.stateNode,a=e.memoizedProps;if((e=wr(e,t))||a!==r){var o=Qc.current;a=cs(i,n,a,r,!e,null),a===i?t.stateNode=i:(Cr(t),lo(a,n,r,o)&&Sr(t),t.stateNode=a,e&&Tr(a,t,!1,!1))}else t.stateNode=i}}function kr(e,t,n,r,i){if(e.mode&32&&(n===null?Do(t,r):Oo(t,n,r))){if(e.flags|=16777216,(i&335544128)===i||ko(t,r))if(Ao(e.stateNode,t,r))e.flags|=8192;else if(Hi())e.flags|=8192;else throw jl=Al,Ol}else e.flags&=-16777217}function Ar(e,t){if(sc(t)){if(e.flags|=16777216,!cc(t))if(Hi())e.flags|=8192;else throw jl=Al,Ol}else e.flags&=-16777217}function jr(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag===22?536870912:y(),e.lanes|=t,Hu|=t)}function Mr(e,t){if(!il)switch(e.tailMode){case`hidden`:t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case`collapsed`:n=e.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function Nr(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags&65011712,r|=i.flags&65011712,i.return=e,i=i.sibling;else for(i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags,r|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function Pr(e,t,n){var i=t.pendingProps;switch(oe(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Nr(t),null;case 1:return Nr(t),null;case 3:return n=t.stateNode,i=null,e!==null&&(i=e.memoizedState.cache),t.memoizedState.cache!==i&&(t.flags|=2048),P(ml),le(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(e===null||e.child===null)&&(me(t)?Sr(t):e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,ge())),Dr(e,t),Nr(t),null;case 26:if(Zs){var a=t.type,o=t.memoizedState;return e===null?(Sr(t),o===null?(Nr(t),kr(t,a,null,i,n)):(Nr(t),Ar(t,o))):o?o===e.memoizedState?(Nr(t),t.flags&=-16777217):(Sr(t),Nr(t),Ar(t,o)):(o=e.memoizedProps,_o?o!==i&&Sr(t):Or(e,t,a,i),Nr(t),kr(t,a,o,i,n)),null}case 27:if(uc){if(N(t),n=el.current,a=t.type,e!==null&&t.stateNode!=null)_o?e.memoizedProps!==i&&Sr(t):Or(e,t,a,i);else{if(!i){if(t.stateNode===null)throw Error(r(166));return Nr(t),null}e=Qc.current,me(t)?fe(t,e):(e=dc(a,i,n,e,!0),t.stateNode=e,Sr(t))}return Nr(t),null}case 5:if(N(t),a=t.type,e!==null&&t.stateNode!=null)Or(e,t,a,i);else{if(!i){if(t.stateNode===null)throw Error(r(166));return Nr(t),null}if(o=Qc.current,me(t))fe(t,o),Hs(t.stateNode,a,i,o)&&(t.flags|=64);else{var s=so(a,i,el.current,o,t);Cr(t),Tr(s,t,!1,!1),t.stateNode=s,lo(s,a,i,o)&&Sr(t)}}return Nr(t),kr(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,n),null;case 6:if(e&&t.stateNode!=null)n=e.memoizedProps,_o?n!==i&&Sr(t):vo&&(n===i?t.stateNode=e.stateNode:(e=el.current,n=Qc.current,Cr(t),t.stateNode=fo(i,e,n,t)));else{if(typeof i!=`string`&&t.stateNode===null)throw Error(r(166));if(e=el.current,n=Qc.current,me(t)){if(!yo)throw Error(r(176));if(e=t.stateNode,n=t.memoizedProps,i=null,a=nl,a!==null)switch(a.tag){case 27:case 5:i=a.memoizedProps}Ns(e,n,t,i)||de(t,!0)}else Cr(t),t.stateNode=fo(i,e,n,t)}return Nr(t),null;case 31:if(n=t.memoizedState,e===null||e.memoizedState!==null){if(i=me(t),n!==null){if(e===null){if(!i)throw Error(r(318));if(!yo)throw Error(r(556));if(e=t.memoizedState,e=e===null?null:e.dehydrated,!e)throw Error(r(557));Ps(e,t)}else he(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;Nr(t),e=!1}else n=ge(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=n),e=!0;if(!e)return t.flags&256?(xt(t),t):(xt(t),null);if(t.flags&128)throw Error(r(558))}return Nr(t),null;case 13:if(i=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(a=me(t),i!==null&&i.dehydrated!==null){if(e===null){if(!a)throw Error(r(318));if(!yo)throw Error(r(344));if(a=t.memoizedState,a=a===null?null:a.dehydrated,!a)throw Error(r(317));Fs(a,t)}else he(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;Nr(t),a=!1}else a=ge(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=a),a=!0;if(!a)return t.flags&256?(xt(t),t):(xt(t),null)}return xt(t),t.flags&128?(t.lanes=n,t):(n=i!==null,e=e!==null&&e.memoizedState!==null,n&&(i=t.child,a=null,i.alternate!==null&&i.alternate.memoizedState!==null&&i.alternate.memoizedState.cachePool!==null&&(a=i.alternate.memoizedState.cachePool.pool),o=null,i.memoizedState!==null&&i.memoizedState.cachePool!==null&&(o=i.memoizedState.cachePool.pool),o!==a&&(i.flags|=2048)),n!==e&&n&&(t.child.flags|=8192),jr(t,t.updateQueue),Nr(t),null);case 4:return le(),Dr(e,t),e===null&&xo(t.stateNode.containerInfo),Nr(t),null;case 10:return P(t.type),Nr(t),null;case 19:if(f(Gl),i=t.memoizedState,i===null)return Nr(t),null;if(a=(t.flags&128)!=0,o=i.rendering,o===null)if(a)Mr(i,!1);else{if(Lu!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(o=St(e),o!==null){for(t.flags|=128,Mr(i,!1),e=o.updateQueue,t.updateQueue=e,jr(t,e),t.subtreeFlags=0,e=n,n=t.child;n!==null;)ya(n,e),n=n.sibling;return p(Gl,Gl.current&1|2),il&&re(t,i.treeForkCount),t.child}e=e.sibling}i.tail!==null&&Oc()>Ju&&(t.flags|=128,a=!0,Mr(i,!1),t.lanes=4194304)}else{if(!a)if(e=St(o),e!==null){if(t.flags|=128,a=!0,e=e.updateQueue,t.updateQueue=e,jr(t,e),Mr(i,!0),i.tail===null&&i.tailMode===`hidden`&&!o.alternate&&!il)return Nr(t),null}else 2*Oc()-i.renderingStartTime>Ju&&n!==536870912&&(t.flags|=128,a=!0,Mr(i,!1),t.lanes=4194304);i.isBackwards?(o.sibling=t.child,t.child=o):(e=i.last,e===null?t.child=o:e.sibling=o,i.last=o)}return i.tail===null?(Nr(t),null):(e=i.tail,i.rendering=e,i.tail=e.sibling,i.renderingStartTime=Oc(),e.sibling=null,n=Gl.current,p(Gl,a?n&1|2:n&1),il&&re(t,i.treeForkCount),e);case 22:case 23:return xt(t),gt(),i=t.memoizedState!==null,e===null?i&&(t.flags|=8192):e.memoizedState!==null!==i&&(t.flags|=8192),i?n&536870912&&!(t.flags&128)&&(Nr(t),t.subtreeFlags&6&&(t.flags|=8192)):Nr(t),n=t.updateQueue,n!==null&&jr(t,n.retryQueue),n=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),i=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(i=t.memoizedState.cachePool.pool),i!==n&&(t.flags|=2048),e!==null&&f(El),null;case 24:return n=null,e!==null&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),P(ml),Nr(t),null;case 25:return null;case 30:return null}throw Error(r(156,t.tag))}function Fr(e,t){switch(oe(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return P(ml),le(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return N(t),null;case 31:if(t.memoizedState!==null){if(xt(t),t.alternate===null)throw Error(r(340));he()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(xt(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(r(340));he()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return f(Gl),null;case 4:return le(),null;case 10:return P(t.type),null;case 22:case 23:return xt(t),gt(),e!==null&&f(El),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return P(ml),null;case 25:return null;default:return null}}function Ir(e,t){switch(oe(t),t.tag){case 3:P(ml),le();break;case 26:case 27:case 5:N(t);break;case 4:le();break;case 31:t.memoizedState!==null&&xt(t);break;case 13:xt(t);break;case 19:f(Gl);break;case 10:P(t.type);break;case 22:case 23:xt(t),gt(),e!==null&&f(El);break;case 24:P(ml)}}function Lr(e,t){try{var n=t.updateQueue,r=n===null?null:n.lastEffect;if(r!==null){var i=r.next;n=i;do{if((n.tag&e)===e){r=void 0;var a=n.create,o=n.inst;r=a(),o.destroy=r}n=n.next}while(n!==i)}}catch(e){la(t,t.return,e)}}function Rr(e,t,n){try{var r=t.updateQueue,i=r===null?null:r.lastEffect;if(i!==null){var a=i.next;r=a;do{if((r.tag&e)===e){var o=r.inst,s=o.destroy;if(s!==void 0){o.destroy=void 0,i=t;var c=n,l=s;try{l()}catch(e){la(i,c,e)}}}r=r.next}while(r!==a)}}catch(e){la(t,t.return,e)}}function zr(e){var t=e.updateQueue;if(t!==null){var n=e.stateNode;try{mt(t,n)}catch(t){la(e,e.return,t)}}}function Br(e,t,n){n.props=Un(e.type,e.memoizedProps),n.state=e.memoizedState;try{n.componentWillUnmount()}catch(n){la(e,t,n)}}function Vr(e,t){try{var n=e.ref;if(n!==null){switch(e.tag){case 26:case 27:case 5:var r=no(e.stateNode);break;case 30:r=e.stateNode;break;default:r=e.stateNode}typeof n==`function`?e.refCleanup=n(r):n.current=r}}catch(n){la(e,t,n)}}function Hr(e,t){var n=e.ref,r=e.refCleanup;if(n!==null)if(typeof r==`function`)try{r()}catch(n){la(e,t,n)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof n==`function`)try{n(null)}catch(n){la(e,t,n)}else n.current=null}function Ur(e){var t=e.type,n=e.memoizedProps,r=e.stateNode;try{Xo(r,t,n,e)}catch(t){la(e,e.return,t)}}function Wr(e,t,n){try{Zo(e.stateNode,e.type,n,t,e)}catch(t){la(e,e.return,t)}}function Gr(e){return e.tag===5||e.tag===3||(Zs?e.tag===26:!1)||(uc?e.tag===27&&hc(e.type):!1)||e.tag===4}function Kr(e){a:for(;;){for(;e.sibling===null;){if(e.return===null||Gr(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(uc&&e.tag===27&&hc(e.type)||e.flags&2||e.child===null||e.tag===4)continue a;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function qr(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?$o(n,e,t):Jo(n,e);else if(r!==4&&(uc&&r===27&&hc(e.type)&&(n=e.stateNode,t=null),e=e.child,e!==null))for(qr(e,t,n),e=e.sibling;e!==null;)qr(e,t,n),e=e.sibling}function Jr(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?Qo(n,e,t):qo(n,e);else if(r!==4&&(uc&&r===27&&hc(e.type)&&(n=e.stateNode),e=e.child,e!==null))for(Jr(e,t,n),e=e.sibling;e!==null;)Jr(e,t,n),e=e.sibling}function Yr(e,t,n){e=e.containerInfo;try{fs(e,n)}catch(e){la(t,t.return,e)}}function Xr(e){var t=e.stateNode,n=e.memoizedProps;try{fc(e.type,n,t,e)}catch(t){la(e,e.return,t)}}function Zr(e,t){for(ao(e.containerInfo),mu=t;mu!==null;)if(e=mu,t=e.child,e.subtreeFlags&1028&&t!==null)t.return=e,mu=t;else for(;mu!==null;){e=mu;var n=e.alternate;switch(t=e.flags,e.tag){case 0:if(t&4&&(t=e.updateQueue,t=t===null?null:t.events,t!==null))for(var i=0;i<t.length;i++){var a=t[i];a.ref.impl=a.nextImpl}break;case 11:case 15:break;case 1:if(t&1024&&n!==null){t=void 0,i=e,a=n.memoizedProps,n=n.memoizedState;var o=i.stateNode;try{var s=Un(i.type,a);t=o.getSnapshotBeforeUpdate(s,n),o.__reactInternalSnapshotBeforeUpdate=t}catch(e){la(i,i.return,e)}}break;case 3:t&1024&&_o&&ss(e.stateNode.containerInfo);break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if(t&1024)throw Error(r(163))}if(t=e.sibling,t!==null){t.return=e.return,mu=t;break}mu=e.return}}function Qr(e,t,n){var r=n.flags;switch(n.tag){case 0:case 11:case 15:ui(e,n),r&4&&Lr(5,n);break;case 1:if(ui(e,n),r&4)if(e=n.stateNode,t===null)try{e.componentDidMount()}catch(e){la(n,n.return,e)}else{var i=Un(n.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(i,t,e.__reactInternalSnapshotBeforeUpdate)}catch(e){la(n,n.return,e)}}r&64&&zr(n),r&512&&Vr(n,n.return);break;case 3:if(ui(e,n),r&64&&(r=n.updateQueue,r!==null)){if(e=null,n.child!==null)switch(n.child.tag){case 27:case 5:e=no(n.child.stateNode);break;case 1:e=n.child.stateNode}try{mt(r,e)}catch(e){la(n,n.return,e)}}break;case 27:uc&&t===null&&r&4&&Xr(n);case 26:case 5:if(ui(e,n),t===null){if(r&4)Ur(n);else if(r&64){e=n.type,t=n.memoizedProps,i=n.stateNode;try{Rs(i,e,t,n)}catch(e){la(n,n.return,e)}}}r&512&&Vr(n,n.return);break;case 12:ui(e,n);break;case 31:ui(e,n),r&4&&ni(e,n);break;case 13:ui(e,n),r&4&&ri(e,n),r&64&&(r=n.memoizedState,r!==null&&(r=r.dehydrated,r!==null&&(n=pa.bind(null,n),vs(r,n))));break;case 22:if(r=n.memoizedState!==null||uu,!r){t=t!==null&&t.memoizedState!==null||du,i=uu;var a=du;uu=r,(du=t)&&!a?fi(e,n,(n.subtreeFlags&8772)!=0):ui(e,n),uu=i,du=a}break;case 30:break;default:ui(e,n)}}function $r(e){var t=e.alternate;t!==null&&(e.alternate=null,$r(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&Eo(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}function ei(e,t,n){for(n=n.child;n!==null;)ti(e,t,n),n=n.sibling}function ti(e,t,n){if(Ic&&typeof Ic.onCommitFiberUnmount==`function`)try{Ic.onCommitFiberUnmount(Fc,n)}catch{}switch(n.tag){case 26:if(Zs){du||Hr(n,t),ei(e,t,n),n.memoizedState?tc(n.memoizedState):n.stateNode&&ic(n.stateNode);break}case 27:if(uc){du||Hr(n,t);var r=hu,i=gu;hc(n.type)&&(hu=n.stateNode,gu=!1),ei(e,t,n),pc(n.stateNode),hu=r,gu=i;break}case 5:du||Hr(n,t);case 6:if(_o){if(r=hu,i=gu,hu=null,ei(e,t,n),hu=r,gu=i,hu!==null)if(gu)try{ts(hu,n.stateNode)}catch(e){la(n,t,e)}else try{es(hu,n.stateNode)}catch(e){la(n,t,e)}}else ei(e,t,n);break;case 18:_o&&hu!==null&&(gu?Gs(hu,n.stateNode):Ws(hu,n.stateNode));break;case 4:_o?(r=hu,i=gu,hu=n.stateNode.containerInfo,gu=!0,ei(e,t,n),hu=r,gu=i):(vo&&Yr(n.stateNode,n,ls()),ei(e,t,n));break;case 0:case 11:case 14:case 15:Rr(2,n,t),du||Rr(4,n,t),ei(e,t,n);break;case 1:du||(Hr(n,t),r=n.stateNode,typeof r.componentWillUnmount==`function`&&Br(n,t,r)),ei(e,t,n);break;case 21:ei(e,t,n);break;case 22:du=(r=du)||n.memoizedState!==null,ei(e,t,n),du=r;break;default:ei(e,t,n)}}function ni(e,t){if(yo&&t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{Bs(e)}catch(e){la(t,t.return,e)}}}function ri(e,t){if(yo&&t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{Vs(e)}catch(e){la(t,t.return,e)}}function ii(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new pu),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new pu),t;default:throw Error(r(435,e.tag))}}function ai(e,t){var n=ii(e);t.forEach(function(t){if(!n.has(t)){n.add(t);var r=ma.bind(null,e,t);t.then(r,r)}})}function oi(e,t){var n=t.deletions;if(n!==null)for(var i=0;i<n.length;i++){var a=n[i],o=e,s=t;if(_o){var c=s;a:for(;c!==null;){switch(c.tag){case 27:if(uc){if(hc(c.type)){hu=c.stateNode,gu=!1;break a}break}case 5:hu=c.stateNode,gu=!1;break a;case 3:case 4:hu=c.stateNode.containerInfo,gu=!0;break a}c=c.return}if(hu===null)throw Error(r(160));ti(o,s,a),hu=null,gu=!1}else ti(o,s,a);o=a.alternate,o!==null&&(o.return=null),a.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)si(t,e),t=t.sibling}function si(e,t){var n=e.alternate,i=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:oi(t,e),ci(e),i&4&&(Rr(3,e,e.return),Lr(3,e),Rr(5,e,e.return));break;case 1:oi(t,e),ci(e),i&512&&(du||n===null||Hr(n,n.return)),i&64&&uu&&(e=e.updateQueue,e!==null&&(i=e.callbacks,i!==null&&(n=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=n===null?i:n.concat(i))));break;case 26:if(Zs){var a=_u;if(oi(t,e),ci(e),i&512&&(du||n===null||Hr(n,n.return)),i&4){i=n===null?null:n.memoizedState;var o=e.memoizedState;n===null?o===null?e.stateNode===null?e.stateNode=nc(a,e.type,e.memoizedProps,e):rc(a,e.type,e.stateNode):e.stateNode=ec(a,o,e.memoizedProps):i===o?o===null&&e.stateNode!==null&&Wr(e,e.memoizedProps,n.memoizedProps):(i===null?n.stateNode!==null&&ic(n.stateNode):tc(i),o===null?rc(a,e.type,e.stateNode):ec(a,o,e.memoizedProps))}break}case 27:if(uc){oi(t,e),ci(e),i&512&&(du||n===null||Hr(n,n.return)),n!==null&&i&4&&Wr(e,e.memoizedProps,n.memoizedProps);break}case 5:if(oi(t,e),ci(e),i&512&&(du||n===null||Hr(n,n.return)),_o){if(e.flags&32){a=e.stateNode;try{ns(a)}catch(t){la(e,e.return,t)}}i&4&&e.stateNode!=null&&(a=e.memoizedProps,Wr(e,a,n===null?a:n.memoizedProps)),i&1024&&(fu=!0)}else vo&&e.alternate!==null&&(e.alternate.stateNode=e.stateNode);break;case 6:if(oi(t,e),ci(e),i&4&&_o){if(e.stateNode===null)throw Error(r(162));i=e.memoizedProps,n=n===null?i:n.memoizedProps,a=e.stateNode;try{Yo(a,n,i)}catch(t){la(e,e.return,t)}}break;case 3:if(Zs?(oc(),a=_u,_u=H(t.containerInfo),oi(t,e),_u=a):oi(t,e),ci(e),i&4){if(_o&&yo&&n!==null&&n.memoizedState.isDehydrated)try{zs(t.containerInfo)}catch(t){la(e,e.return,t)}if(vo){i=t.containerInfo,n=t.pendingChildren;try{fs(i,n)}catch(t){la(e,e.return,t)}}}fu&&(fu=!1,li(e));break;case 4:Zs?(n=_u,_u=H(e.stateNode.containerInfo),oi(t,e),ci(e),_u=n):(oi(t,e),ci(e)),i&4&&vo&&Yr(e.stateNode,e,e.stateNode.pendingChildren);break;case 12:oi(t,e),ci(e);break;case 31:oi(t,e),ci(e),i&4&&(i=e.updateQueue,i!==null&&(e.updateQueue=null,ai(e,i)));break;case 13:oi(t,e),ci(e),e.child.flags&8192&&e.memoizedState!==null!=(n!==null&&n.memoizedState!==null)&&(Ku=Oc()),i&4&&(i=e.updateQueue,i!==null&&(e.updateQueue=null,ai(e,i)));break;case 22:a=e.memoizedState!==null;var s=n!==null&&n.memoizedState!==null,c=uu,l=du;if(uu=c||a,du=l||s,oi(t,e),du=l,uu=c,ci(e),i&8192&&(t=e.stateNode,t._visibility=a?t._visibility&-2:t._visibility|1,a&&(n===null||s||uu||du||di(e)),_o)){a:if(n=null,_o)for(t=e;;){if(t.tag===5||Zs&&t.tag===26){if(n===null){s=n=t;try{o=s.stateNode,a?rs(o):as(s.stateNode,s.memoizedProps)}catch(e){la(s,s.return,e)}}}else if(t.tag===6){if(n===null){s=t;try{var u=s.stateNode;a?is(u):os(u,s.memoizedProps)}catch(e){la(s,s.return,e)}}}else if(t.tag===18){if(n===null){s=t;try{var d=s.stateNode;a?Ks(d):qs(s.stateNode)}catch(e){la(s,s.return,e)}}}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 a;for(;t.sibling===null;){if(t.return===null||t.return===e)break a;n===t&&(n=null),t=t.return}n===t&&(n=null),t.sibling.return=t.return,t=t.sibling}}i&4&&(i=e.updateQueue,i!==null&&(n=i.retryQueue,n!==null&&(i.retryQueue=null,ai(e,n))));break;case 19:oi(t,e),ci(e),i&4&&(i=e.updateQueue,i!==null&&(e.updateQueue=null,ai(e,i)));break;case 30:break;case 21:break;default:oi(t,e),ci(e)}}function ci(e){var t=e.flags;if(t&2){try{for(var n,i=e.return;i!==null;){if(Gr(i)){n=i;break}i=i.return}if(_o){if(n==null)throw Error(r(160));switch(n.tag){case 27:if(uc){var a=n.stateNode;Jr(e,Kr(e),a);break}case 5:var o=n.stateNode;n.flags&32&&(ns(o),n.flags&=-33),Jr(e,Kr(e),o);break;case 3:case 4:var s=n.stateNode.containerInfo;qr(e,Kr(e),s);break;default:throw Error(r(161))}}}catch(t){la(e,e.return,t)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function li(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;li(t),t.tag===5&&t.flags&1024&&Io(t.stateNode),e=e.sibling}}function ui(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)Qr(e,t.alternate,t),t=t.sibling}function di(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:Rr(4,t,t.return),di(t);break;case 1:Hr(t,t.return);var n=t.stateNode;typeof n.componentWillUnmount==`function`&&Br(t,t.return,n),di(t);break;case 27:uc&&pc(t.stateNode);case 26:case 5:Hr(t,t.return),di(t);break;case 22:t.memoizedState===null&&di(t);break;case 30:di(t);break;default:di(t)}e=e.sibling}}function fi(e,t,n){for(n&&=(t.subtreeFlags&8772)!=0,t=t.child;t!==null;){var r=t.alternate,i=e,a=t,o=a.flags;switch(a.tag){case 0:case 11:case 15:fi(i,a,n),Lr(4,a);break;case 1:if(fi(i,a,n),r=a,i=r.stateNode,typeof i.componentDidMount==`function`)try{i.componentDidMount()}catch(e){la(r,r.return,e)}if(r=a,i=r.updateQueue,i!==null){var s=r.stateNode;try{var c=i.shared.hiddenCallbacks;if(c!==null)for(i.shared.hiddenCallbacks=null,i=0;i<c.length;i++)pt(c[i],s)}catch(e){la(r,r.return,e)}}n&&o&64&&zr(a),Vr(a,a.return);break;case 27:uc&&Xr(a);case 26:case 5:fi(i,a,n),n&&r===null&&o&4&&Ur(a),Vr(a,a.return);break;case 12:fi(i,a,n);break;case 31:fi(i,a,n),n&&o&4&&ni(i,a);break;case 13:fi(i,a,n),n&&o&4&&ri(i,a);break;case 22:a.memoizedState===null&&fi(i,a,n),Vr(a,a.return);break;case 30:break;default:fi(i,a,n)}t=t.sibling}}function pi(e,t){var n=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==n&&(e!=null&&e.refCount++,n!=null&&De(n))}function mi(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&De(e))}function hi(e,t,n,r){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)gi(e,t,n,r),t=t.sibling}function gi(e,t,n,r){var i=t.flags;switch(t.tag){case 0:case 11:case 15:hi(e,t,n,r),i&2048&&Lr(9,t);break;case 1:hi(e,t,n,r);break;case 3:hi(e,t,n,r),i&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&De(e)));break;case 12:if(i&2048){hi(e,t,n,r),e=t.stateNode;try{var a=t.memoizedProps,o=a.id,s=a.onPostCommit;typeof s==`function`&&s(o,t.alternate===null?`mount`:`update`,e.passiveEffectDuration,-0)}catch(e){la(t,t.return,e)}}else hi(e,t,n,r);break;case 31:hi(e,t,n,r);break;case 13:hi(e,t,n,r);break;case 23:break;case 22:a=t.stateNode,o=t.alternate,t.memoizedState===null?a._visibility&2?hi(e,t,n,r):(a._visibility|=2,_i(e,t,n,r,(t.subtreeFlags&10256)!=0||!1)):a._visibility&2?hi(e,t,n,r):vi(e,t),i&2048&&pi(o,t);break;case 24:hi(e,t,n,r),i&2048&&mi(t.alternate,t);break;default:hi(e,t,n,r)}}function _i(e,t,n,r,i){for(i&&=(t.subtreeFlags&10256)!=0||!1,t=t.child;t!==null;){var a=e,o=t,s=n,c=r,l=o.flags;switch(o.tag){case 0:case 11:case 15:_i(a,o,s,c,i),Lr(8,o);break;case 23:break;case 22:var u=o.stateNode;o.memoizedState===null?(u._visibility|=2,_i(a,o,s,c,i)):u._visibility&2?_i(a,o,s,c,i):vi(a,o),i&&l&2048&&pi(o.alternate,o);break;case 24:_i(a,o,s,c,i),i&&l&2048&&mi(o.alternate,o);break;default:_i(a,o,s,c,i)}t=t.sibling}}function vi(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var n=e,r=t,i=r.flags;switch(r.tag){case 22:vi(n,r),i&2048&&pi(r.alternate,r);break;case 24:vi(n,r),i&2048&&mi(r.alternate,r);break;default:vi(n,r)}t=t.sibling}}function yi(e,t,n){if(e.subtreeFlags&vu)for(e=e.child;e!==null;)bi(e,t,n),e=e.sibling}function bi(e,t,n){switch(e.tag){case 26:if(yi(e,t,n),e.flags&vu)if(e.memoizedState!==null)lc(n,_u,e.memoizedState,e.memoizedProps);else{var r=e.stateNode,i=e.type;e=e.memoizedProps,((t&335544128)===t||ko(i,e))&&Mo(n,r,i,e)}break;case 5:yi(e,t,n),e.flags&vu&&(r=e.stateNode,i=e.type,e=e.memoizedProps,((t&335544128)===t||ko(i,e))&&Mo(n,r,i,e));break;case 3:case 4:Zs?(r=_u,_u=H(e.stateNode.containerInfo),yi(e,t,n),_u=r):yi(e,t,n);break;case 22:e.memoizedState===null&&(r=e.alternate,r!==null&&r.memoizedState!==null?(r=vu,vu=16777216,yi(e,t,n),vu=r):yi(e,t,n));break;default:yi(e,t,n)}}function xi(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 Si(e){var t=e.deletions;if(e.flags&16){if(t!==null)for(var n=0;n<t.length;n++){var r=t[n];mu=r,Ti(r,e)}xi(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)Ci(e),e=e.sibling}function Ci(e){switch(e.tag){case 0:case 11:case 15:Si(e),e.flags&2048&&Rr(9,e,e.return);break;case 3:Si(e);break;case 12:Si(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,wi(e)):Si(e);break;default:Si(e)}}function wi(e){var t=e.deletions;if(e.flags&16){if(t!==null)for(var n=0;n<t.length;n++){var r=t[n];mu=r,Ti(r,e)}xi(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:Rr(8,t,t.return),wi(t);break;case 22:n=t.stateNode,n._visibility&2&&(n._visibility&=-3,wi(t));break;default:wi(t)}e=e.sibling}}function Ti(e,t){for(;mu!==null;){var n=mu;switch(n.tag){case 0:case 11:case 15:Rr(8,n,t);break;case 23:case 22:if(n.memoizedState!==null&&n.memoizedState.cachePool!==null){var r=n.memoizedState.cachePool.pool;r!=null&&r.refCount++}break;case 24:De(n.memoizedState.cache)}if(r=n.child,r!==null)r.return=n,mu=r;else a:for(n=e;mu!==null;){r=mu;var i=r.sibling,a=r.return;if($r(r),r===n){mu=null;break a}if(i!==null){i.return=a,mu=i;break a}mu=a}}}function Ei(e){var t=bo(e);if(t!=null){if(typeof t.memoizedProps[`data-testname`]!=`string`)throw Error(r(364));return t}if(e=Bo(e),e===null)throw Error(r(362));return e.stateNode.current}function Di(e,t){var n=e.tag;switch(t.$$typeof){case bu:if(e.type===t.value)return!0;break;case xu:a:{for(t=t.value,e=[e,0],n=0;n<e.length;){var i=e[n++],a=i.tag,o=e[n++],s=t[o];if(a!==5&&a!==26&&a!==27||!Uo(i)){for(;s!=null&&Di(i,s);)o++,s=t[o];if(o===t.length){t=!0;break a}else for(i=i.child;i!==null;)e.push(i,o),i=i.sibling}}t=!1}return t;case Su:if((n===5||n===26||n===27)&&Wo(e.stateNode,t.value))return!0;break;case wu:if((n===5||n===6||n===26||n===27)&&(e=Ho(e),e!==null&&0<=e.indexOf(t.value)))return!0;break;case Cu:if((n===5||n===26||n===27)&&(e=e.memoizedProps[`data-testname`],typeof e==`string`&&e.toLowerCase()===t.value.toLowerCase()))return!0;break;default:throw Error(r(365))}return!1}function Oi(e){switch(e.$$typeof){case bu:return`<`+(u(e.value)||`Unknown`)+`>`;case xu:return`:has(`+(Oi(e)||``)+`)`;case Su:return`[role="`+e.value+`"]`;case wu:return`"`+e.value+`"`;case Cu:return`[data-testname="`+e.value+`"]`;default:throw Error(r(365))}}function ki(e,t){var n=[];e=[e,0];for(var r=0;r<e.length;){var i=e[r++],a=i.tag,o=e[r++],s=t[o];if(a!==5&&a!==26&&a!==27||!Uo(i)){for(;s!=null&&Di(i,s);)o++,s=t[o];if(o===t.length)n.push(i);else for(i=i.child;i!==null;)e.push(i,o),i=i.sibling}}return n}function Ai(e,t){if(!zo)throw Error(r(363));e=Ei(e),e=ki(e,t),t=[],e=Array.from(e);for(var n=0;n<e.length;){var i=e[n++],a=i.tag;if(a===5||a===26||a===27)Uo(i)||t.push(i.stateNode);else for(i=i.child;i!==null;)e.push(i),i=i.sibling}return t}function ji(){return Du&2&&Au!==0?Au&-Au:V.T===null?wo():Le()}function Mi(){if(Vu===0)if(!(Au&536870912)||il){var e=Cc;Cc<<=1,!(Cc&3932160)&&(Cc=262144),Vu=e}else Vu=536870912;return e=Ul.current,e!==null&&(e.flags|=32),Vu}function Ni(e,t,n){(e===Ou&&(ju===2||ju===9)||e.cancelPendingCommit!==null)&&(Bi(e,0),Li(e,Au,Vu,!1)),x(e,n),(!(Du&2)||e!==Ou)&&(e===Ou&&(!(Du&2)&&(zu|=n),Lu===4&&Li(e,Au,Vu,!1)),ke(e))}function Pi(e,t,n){if(Du&6)throw Error(r(327));var i=!n&&(t&127)==0&&(t&e.expiredLanes)===0||_(e,t),a=i?Ji(e,t):Ki(e,t,!0),o=i;do{if(a===0){Pu&&!i&&Li(e,t,0,!1);break}else{if(n=e.current.alternate,o&&!Ii(n)){a=Ki(e,t,!1),o=!1;continue}if(a===2){if(o=t,e.errorRecoveryDisabledLanes&o)var s=0;else s=e.pendingLanes&-536870913,s=s===0?s&536870912?536870912:0:s;if(s!==0){t=s;a:{var c=e;a=Uu;var l=yo&&c.current.memoizedState.isDehydrated;if(l&&(Bi(c,s).flags|=256),s=Ki(c,s,!1),s!==2){if(Fu&&!l){c.errorRecoveryDisabledLanes|=o,zu|=o,a=4;break a}o=Wu,Wu=a,o!==null&&(Wu===null?Wu=o:Wu.push.apply(Wu,o))}a=s}if(o=!1,a!==2)continue}}if(a===1){Bi(e,0),Li(e,t,0,!0);break}a:{switch(i=e,o=a,o){case 0:case 1:throw Error(r(345));case 4:if((t&4194048)!==t)break;case 6:Li(i,t,Vu,!Nu);break a;case 2:Wu=null;break;case 3:case 5:break;default:throw Error(r(329))}if((t&62914560)===t&&(a=Ku+300-Oc(),10<a)){if(Li(i,t,Vu,!Nu),g(i,0,!0)!==0)break a;ed=t,i.timeoutHandle=po(Fi.bind(null,i,n,Wu,Yu,Gu,t,Vu,zu,Hu,Nu,o,`Throttled`,-0,0),a);break a}Fi(i,n,Wu,Yu,Gu,t,Vu,zu,Hu,Nu,o,null,-0,0)}}break}while(1);ke(e)}function Fi(e,t,n,r,i,a,o,s,c,l,u,d,f,p){if(e.timeoutHandle=ho,d=t.subtreeFlags,d&8192||(d&16785408)==16785408){d=jo(),bi(t,a,d);var m=(a&62914560)===a?Ku-Oc():(a&4194048)===a?qu-Oc():0;if(m=No(d,m),m!==null){ed=a,e.cancelPendingCommit=m(ta.bind(null,e,t,a,n,r,i,o,s,c,u,d,null,f,p)),Li(e,a,o,!l);return}}ta(e,t,a,n,r,i,o,s,c)}function Ii(e){for(var t=e;;){var n=t.tag;if((n===0||n===11||n===15)&&t.flags&16384&&(n=t.updateQueue,n!==null&&(n=n.stores,n!==null)))for(var r=0;r<n.length;r++){var i=n[r],a=i.getSnapshot;i=i.value;try{if(!Lc(a(),i))return!1}catch{return!1}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;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 Li(e,t,n,r){t&=~Bu,t&=~zu,e.suspendedLanes|=t,e.pingedLanes&=~t,r&&(e.warmLanes|=t),r=e.expirationTimes;for(var i=t;0<i;){var a=31-yc(i),o=1<<a;r[a]=-1,i&=~o}n!==0&&C(e,n,t)}function Ri(){return Du&6?!0:(Ae(0,!1),!1)}function zi(){if(ku!==null){if(ju===0)var e=ku.return;else e=ku,ul=ll=null,jt(e),Ml=null,Nl=0,e=ku;for(;e!==null;)Ir(e.alternate,e),e=e.return;ku=null}}function Bi(e,t){var n=e.timeoutHandle;n!==ho&&(e.timeoutHandle=ho,mo(n)),n=e.cancelPendingCommit,n!==null&&(e.cancelPendingCommit=null,n()),ed=0,zi(),Ou=e,ku=n=va(e.current,null),Au=t,ju=0,Mu=null,Nu=!1,Pu=_(e,t),Fu=!1,Hu=Vu=Bu=zu=Ru=Lu=0,Wu=Uu=null,Gu=!1,t&8&&(t|=t&32);var r=e.entangledLanes;if(r!==0)for(e=e.entanglements,r&=t;0<r;){var i=31-yc(r),a=1<<i;t|=e[i],r&=~a}return Iu=t,$e(),n}function Vi(e,t){G=null,V.H=nu,t===Dl||t===kl?(t=qe(),ju=3):t===Ol?(t=qe(),ju=4):ju=t===su?8:typeof t==`object`&&t&&typeof t.then==`function`?6:1,Mu=t,ku===null&&(Lu=1,Wn(e,M(t,e.current)))}function Hi(){var e=Ul.current;return e===null?!0:(Au&4194048)===Au?Wl===null:(Au&62914560)===Au||Au&536870912?e===Wl:!1}function Ui(){var e=V.H;return V.H=nu,e===null?nu:e}function Wi(){var e=V.A;return V.A=yu,e}function Gi(){Lu=4,Nu||(Au&4194048)!==Au&&Ul.current!==null||(Pu=!0),!(Ru&134217727)&&!(zu&134217727)||Ou===null||Li(Ou,Au,Vu,!1)}function Ki(e,t,n){var r=Du;Du|=2;var i=Ui(),a=Wi();(Ou!==e||Au!==t)&&(Yu=null,Bi(e,t)),t=!1;var o=Lu;a:do try{if(ju!==0&&ku!==null){var s=ku,c=Mu;switch(ju){case 8:zi(),o=6;break a;case 3:case 2:case 9:case 6:Ul.current===null&&(t=!0);var l=ju;if(ju=0,Mu=null,Qi(e,s,c,l),n&&Pu){o=0;break a}break;default:l=ju,ju=0,Mu=null,Qi(e,s,c,l)}}qi(),o=Lu;break}catch(t){Vi(e,t)}while(1);return t&&e.shellSuspendCounter++,ul=ll=null,Du=r,V.H=i,V.A=a,ku===null&&(Ou=null,Au=0,$e()),o}function qi(){for(;ku!==null;)Xi(ku)}function Ji(e,t){var n=Du;Du|=2;var i=Ui(),a=Wi();Ou!==e||Au!==t?(Yu=null,Ju=Oc()+500,Bi(e,t)):Pu=_(e,t);a:do try{if(ju!==0&&ku!==null){t=ku;var o=Mu;b:switch(ju){case 1:ju=0,Mu=null,Qi(e,t,o,1);break;case 2:case 9:if(We(o)){ju=0,Mu=null,Zi(t);break}t=function(){ju!==2&&ju!==9||Ou!==e||(ju=7),ke(e)},o.then(t,t);break a;case 3:ju=7;break a;case 4:ju=5;break a;case 7:We(o)?(ju=0,Mu=null,Zi(t)):(ju=0,Mu=null,Qi(e,t,o,7));break;case 5:var s=null;switch(ku.tag){case 26:s=ku.memoizedState;case 5:case 27:var c=ku,l=c.type,u=c.pendingProps;if(s?cc(s):Ao(c.stateNode,l,u)){ju=0,Mu=null;var d=c.sibling;if(d!==null)ku=d;else{var f=c.return;f===null?ku=null:(ku=f,$i(f))}break b}}ju=0,Mu=null,Qi(e,t,o,5);break;case 6:ju=0,Mu=null,Qi(e,t,o,6);break;case 8:zi(),Lu=6;break a;default:throw Error(r(462))}}Yi();break}catch(t){Vi(e,t)}while(1);return ul=ll=null,V.H=i,V.A=a,Du=n,ku===null?(Ou=null,Au=0,$e(),Lu):0}function Yi(){for(;ku!==null&&!Ec();)Xi(ku)}function Xi(e){var t=xr(e.alternate,e,Iu);e.memoizedProps=e.pendingProps,t===null?$i(e):ku=t}function Zi(e){var t=e,n=t.alternate;switch(t.tag){case 15:case 0:t=cr(n,t,t.pendingProps,t.type,void 0,Au);break;case 11:t=cr(n,t,t.pendingProps,t.type.render,t.ref,Au);break;case 5:jt(t);default:Ir(n,t),t=ku=ya(t,Iu),t=xr(n,t,Iu)}e.memoizedProps=e.pendingProps,t===null?$i(e):ku=t}function Qi(e,t,n,r){ul=ll=null,jt(t),Ml=null,Nl=0;var i=t.return;try{if(Yn(e,i,t,n,Au)){Lu=1,Wn(e,M(n,e.current)),ku=null;return}}catch(t){if(i!==null)throw ku=i,t;Lu=1,Wn(e,M(n,e.current)),ku=null;return}t.flags&32768?(il||r===1?e=!0:Pu||Au&536870912?e=!1:(Nu=e=!0,(r===2||r===9||r===3||r===6)&&(r=Ul.current,r!==null&&r.tag===13&&(r.flags|=16384))),ea(t,e)):$i(t)}function $i(e){var t=e;do{if(t.flags&32768){ea(t,Nu);return}e=t.return;var n=Pr(t.alternate,t,Iu);if(n!==null){ku=n;return}if(t=t.sibling,t!==null){ku=t;return}ku=t=e}while(t!==null);Lu===0&&(Lu=5)}function ea(e,t){do{var n=Fr(e.alternate,e);if(n!==null){n.flags&=32767,ku=n;return}if(n=e.return,n!==null&&(n.flags|=32768,n.subtreeFlags=0,n.deletions=null),!t&&(e=e.sibling,e!==null)){ku=e;return}ku=e=n}while(e!==null);Lu=6,ku=null}function ta(e,t,n,i,a,o,s,c,l){e.cancelPendingCommit=null;do oa();while(Zu!==0);if(Du&6)throw Error(r(327));if(t!==null){if(t===e.current)throw Error(r(177));if(o=t.lanes|t.childLanes,o|=Rl,S(e,n,o,s,c,l),e===Ou&&(ku=Ou=null,Au=0),$u=t,Qu=e,ed=n,td=o,nd=a,rd=i,t.subtreeFlags&10256||t.flags&10256?(e.callbackNode=null,e.callbackPriority=0,ha(jc,function(){return sa(),null})):(e.callbackNode=null,e.callbackPriority=0),i=(t.flags&13878)!=0,t.subtreeFlags&13878||i){i=V.T,V.T=null,a=Co(),So(2),s=Du,Du|=4;try{Zr(e,t,n)}finally{Du=s,So(a),V.T=i}}Zu=1,na(),ra(),ia()}}function na(){if(Zu===1){Zu=0;var e=Qu,t=$u,n=(t.flags&13878)!=0;if(t.subtreeFlags&13878||n){n=V.T,V.T=null;var r=Co();So(2);var i=Du;Du|=4;try{si(t,e),oo(e.containerInfo)}finally{Du=i,So(r),V.T=n}}e.current=t,Zu=2}}function ra(){if(Zu===2){Zu=0;var e=Qu,t=$u,n=(t.flags&8772)!=0;if(t.subtreeFlags&8772||n){n=V.T,V.T=null;var r=Co();So(2);var i=Du;Du|=4;try{Qr(e,t.alternate,t)}finally{Du=i,So(r),V.T=n}}Zu=3}}function ia(){if(Zu===4||Zu===3){Zu=0,Dc();var e=Qu,t=$u,n=ed,r=rd;t.subtreeFlags&10256||t.flags&10256?Zu=5:(Zu=0,$u=Qu=null,aa(e,e.pendingLanes));var i=e.pendingLanes;if(i===0&&(Xu=null),D(n),t=t.stateNode,Ic&&typeof Ic.onCommitFiberRoot==`function`)try{Ic.onCommitFiberRoot(Fc,t,void 0,(t.current.flags&128)==128)}catch{}if(r!==null){t=V.T,i=Co(),So(2),V.T=null;try{for(var a=e.onRecoverableError,o=0;o<r.length;o++){var s=r[o];a(s.value,{componentStack:s.stack})}}finally{V.T=t,So(i)}}ed&3&&oa(),ke(e),i=e.pendingLanes,n&261930&&i&42?e===ad?id++:(id=0,ad=e):id=0,yo&&Us(),Ae(0,!1)}}function aa(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,De(t)))}function oa(){return na(),ra(),ia(),sa()}function sa(){if(Zu!==5)return!1;var e=Qu,t=td;td=0;var n=D(ed),i=32>n?32:n;n=V.T;var a=Co();try{So(i),V.T=null,i=nd,nd=null;var o=Qu,s=ed;if(Zu=0,$u=Qu=null,ed=0,Du&6)throw Error(r(331));var c=Du;if(Du|=4,Ci(o.current),gi(o,o.current,s,i),Du=c,Ae(0,!1),Ic&&typeof Ic.onPostCommitFiberRoot==`function`)try{Ic.onPostCommitFiberRoot(Fc,o)}catch{}return!0}finally{So(a),V.T=n,aa(e,t)}}function ca(e,t,n){t=M(n,t),t=Kn(e.stateNode,t,2),e=ct(e,t,2),e!==null&&(x(e,2),ke(e))}function la(e,t,n){if(e.tag===3)ca(e,e,n);else for(;t!==null;){if(t.tag===3){ca(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError==`function`||typeof r.componentDidCatch==`function`&&(Xu===null||!Xu.has(r))){e=M(n,e),n=qn(2),r=ct(t,n,2),r!==null&&(Jn(n,r,t,e),x(r,2),ke(r));break}}t=t.return}}function ua(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new Eu;var i=new Set;r.set(t,i)}else i=r.get(t),i===void 0&&(i=new Set,r.set(t,i));i.has(n)||(Fu=!0,i.add(n),e=da.bind(null,e,t,n),t.then(e,e))}function da(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),e.pingedLanes|=e.suspendedLanes&n,e.warmLanes&=~n,Ou===e&&(Au&n)===n&&(Lu===4||Lu===3&&(Au&62914560)===Au&&300>Oc()-Ku?!(Du&2)&&Bi(e,0):Bu|=n,Hu===Au&&(Hu=0)),ke(e)}function fa(e,t){t===0&&(t=y()),e=nt(e,t),e!==null&&(x(e,t),ke(e))}function pa(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),fa(e,n)}function ma(e,t){var n=0;switch(e.tag){case 31:case 13:var i=e.stateNode,a=e.memoizedState;a!==null&&(n=a.retryLane);break;case 19:i=e.stateNode;break;case 22:i=e.stateNode._retryCache;break;default:throw Error(r(314))}i!==null&&i.delete(t),fa(e,n)}function ha(e,t){return Tc(e,t)}function ga(e,t,n,r){this.tag=e,this.key=n,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=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function _a(e){return e=e.prototype,!(!e||!e.isReactComponent)}function va(e,n){var r=e.alternate;return r===null?(r=t(e.tag,n,e.key,e.mode),r.elementType=e.elementType,r.type=e.type,r.stateNode=e.stateNode,r.alternate=e,e.alternate=r):(r.pendingProps=n,r.type=e.type,r.flags=0,r.subtreeFlags=0,r.deletions=null),r.flags=e.flags&65011712,r.childLanes=e.childLanes,r.lanes=e.lanes,r.child=e.child,r.memoizedProps=e.memoizedProps,r.memoizedState=e.memoizedState,r.updateQueue=e.updateQueue,n=e.dependencies,r.dependencies=n===null?null:{lanes:n.lanes,firstContext:n.firstContext},r.sibling=e.sibling,r.index=e.index,r.ref=e.ref,r.refCleanup=e.refCleanup,r}function ya(e,t){e.flags&=65011714;var n=e.alternate;return n===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=n.childLanes,e.lanes=n.lanes,e.child=n.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=n.memoizedProps,e.memoizedState=n.memoizedState,e.updateQueue=n.updateQueue,e.type=n.type,t=n.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function ba(e,n,i,a,o,s){var c=0;if(a=e,typeof e==`function`)_a(e)&&(c=1);else if(typeof e==`string`)c=Zs&&uc?Qs(e,i,Qc.current)?26:mc(e)?27:5:Zs?Qs(e,i,Qc.current)?26:5:uc&&mc(e)?27:5;else a:switch(e){case Ja:return e=t(31,i,n,o),e.elementType=Ja,e.lanes=s,e;case Ra:return xa(i.children,o,s,n);case za:c=8,o|=24;break;case Ba:return e=t(12,i,n,o|2),e.elementType=Ba,e.lanes=s,e;case Wa:return e=t(13,i,n,o),e.elementType=Wa,e.lanes=s,e;case Ga:return e=t(19,i,n,o),e.elementType=Ga,e.lanes=s,e;default:if(typeof e==`object`&&e)switch(e.$$typeof){case Ha:c=10;break a;case Va:c=9;break a;case Ua:c=11;break a;case Ka:c=14;break a;case qa:c=16,a=null;break a}c=29,i=Error(r(130,e===null?`null`:typeof e,``)),a=null}return n=t(c,i,n,o),n.elementType=e,n.type=a,n.lanes=s,n}function xa(e,n,r,i){return e=t(7,e,i,n),e.lanes=r,e}function Sa(e,n,r){return e=t(6,e,null,n),e.lanes=r,e}function Ca(e){var n=t(18,null,null,0);return n.stateNode=e,n}function wa(e,n,r){return n=t(4,e.children===null?[]:e.children,e.key,n),n.lanes=r,n.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},n}function Ta(e,t,n,r,i,a,o,s,c){this.tag=1,this.containerInfo=e,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=ho,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=b(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=b(0),this.hiddenUpdates=b(null),this.identifierPrefix=r,this.onUncaughtError=i,this.onCaughtError=a,this.onRecoverableError=o,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=c,this.incompleteTransitions=new Map}function Ea(e,n,r,i,a,o,s,c,l,u,d,f){return e=new Ta(e,n,r,s,l,u,d,f,c),n=1,!0===o&&(n|=24),o=t(3,null,null,n),e.current=o,o.stateNode=e,n=Ee(),n.refCount++,e.pooledCache=n,n.refCount++,o.memoizedState={element:i,isDehydrated:r,cache:n},at(o),e}function Da(e){return e?(e=vc,e):vc}function Oa(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render==`function`?Error(r(188)):(e=Object.keys(e).join(`,`),Error(r(268,e)));return e=o(t),e=e===null?null:s(e),e===null?null:no(e.stateNode)}function ka(e,t,n,r,i,a){i=Da(i),r.context===null?r.context=i:r.pendingContext=i,r=st(t),r.payload={element:n},a=a===void 0?null:a,a!==null&&(r.callback=a),n=ct(e,r,t),n!==null&&(Ni(n,e,t),lt(n,e,t))}function Aa(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function ja(e,t){Aa(e,t),(e=e.alternate)&&Aa(e,t)}var B={},Ma=O(),Na=fn(),Pa=Object.assign,Fa=Symbol.for(`react.element`),Ia=Symbol.for(`react.transitional.element`),La=Symbol.for(`react.portal`),Ra=Symbol.for(`react.fragment`),za=Symbol.for(`react.strict_mode`),Ba=Symbol.for(`react.profiler`),Va=Symbol.for(`react.consumer`),Ha=Symbol.for(`react.context`),Ua=Symbol.for(`react.forward_ref`),Wa=Symbol.for(`react.suspense`),Ga=Symbol.for(`react.suspense_list`),Ka=Symbol.for(`react.memo`),qa=Symbol.for(`react.lazy`),Ja=Symbol.for(`react.activity`),Ya=Symbol.for(`react.memo_cache_sentinel`),Xa=Symbol.iterator,Za=Symbol.for(`react.client.reference`),Qa=Array.isArray,V=Ma.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,$a=e.rendererVersion,eo=e.rendererPackageName,to=e.extraDevToolsConfig,no=e.getPublicInstance,ro=e.getRootHostContext,io=e.getChildHostContext,ao=e.prepareForCommit,oo=e.resetAfterCommit,so=e.createInstance;e.cloneMutableInstance;var co=e.appendInitialChild,lo=e.finalizeInitialChildren,uo=e.shouldSetTextContent,fo=e.createTextInstance;e.cloneMutableTextInstance;var po=e.scheduleTimeout,mo=e.cancelTimeout,ho=e.noTimeout,go=e.isPrimaryRenderer;e.warnsIfNotActing;var _o=e.supportsMutation,vo=e.supportsPersistence,yo=e.supportsHydration,bo=e.getInstanceFromNode;e.beforeActiveInstanceBlur;var xo=e.preparePortalMount;e.prepareScopeUpdate,e.getInstanceFromScope;var So=e.setCurrentUpdatePriority,Co=e.getCurrentUpdatePriority,wo=e.resolveUpdatePriority;e.trackSchedulerEvent,e.resolveEventType,e.resolveEventTimeStamp;var To=e.shouldAttemptEagerTransition,Eo=e.detachDeletedInstance;e.requestPostPaintCallback;var Do=e.maySuspendCommit,Oo=e.maySuspendCommitOnUpdate,ko=e.maySuspendCommitInSyncRender,Ao=e.preloadInstance,jo=e.startSuspendingCommit,Mo=e.suspendInstance;e.suspendOnActiveViewTransition;var No=e.waitForCommitToBeReady;e.getSuspendedCommitReason;var Po=e.NotPendingTransition,Fo=e.HostTransitionContext,Io=e.resetFormInstance;e.bindToConsole;var Lo=e.supportsMicrotasks,Ro=e.scheduleMicrotask,zo=e.supportsTestSelectors,Bo=e.findFiberRoot,Vo=e.getBoundingRect,Ho=e.getTextContent,Uo=e.isHiddenSubtree,Wo=e.matchAccessibilityRole,Go=e.setFocusIfFocusable,Ko=e.setupIntersectionObserver,qo=e.appendChild,Jo=e.appendChildToContainer,Yo=e.commitTextUpdate,Xo=e.commitMount,Zo=e.commitUpdate,Qo=e.insertBefore,$o=e.insertInContainerBefore,es=e.removeChild,ts=e.removeChildFromContainer,ns=e.resetTextContent,rs=e.hideInstance,is=e.hideTextInstance,as=e.unhideInstance,os=e.unhideTextInstance;e.cancelViewTransitionName,e.cancelRootViewTransitionName,e.restoreRootViewTransitionName,e.cloneRootViewTransitionContainer,e.removeRootViewTransitionClone,e.measureClonedInstance,e.hasInstanceChanged,e.hasInstanceAffectedParent,e.startViewTransition,e.startGestureTransition,e.stopViewTransition,e.getCurrentGestureOffset,e.createViewTransitionInstance;var ss=e.clearContainer;e.createFragmentInstance,e.updateFragmentInstanceFiber,e.commitNewChildToFragmentInstance,e.deleteChildFromFragmentInstance;var cs=e.cloneInstance,ls=e.createContainerChildSet,us=e.appendChildToContainerChildSet,ds=e.finalizeContainerChildren,fs=e.replaceContainerChildren,ps=e.cloneHiddenInstance,ms=e.cloneHiddenTextInstance,hs=e.isSuspenseInstancePending,gs=e.isSuspenseInstanceFallback,_s=e.getSuspenseInstanceFallbackErrorDetails,vs=e.registerSuspenseInstanceRetry,ys=e.canHydrateFormStateMarker,bs=e.isFormStateMarkerMatching,xs=e.getNextHydratableSibling,Ss=e.getNextHydratableSiblingAfterSingleton,Cs=e.getFirstHydratableChild,ws=e.getFirstHydratableChildWithinContainer,Ts=e.getFirstHydratableChildWithinActivityInstance,Es=e.getFirstHydratableChildWithinSuspenseInstance,Ds=e.getFirstHydratableChildWithinSingleton,Os=e.canHydrateInstance,ks=e.canHydrateTextInstance,As=e.canHydrateActivityInstance,js=e.canHydrateSuspenseInstance,Ms=e.hydrateInstance,Ns=e.hydrateTextInstance,Ps=e.hydrateActivityInstance,Fs=e.hydrateSuspenseInstance,Is=e.getNextHydratableInstanceAfterActivityInstance,Ls=e.getNextHydratableInstanceAfterSuspenseInstance,Rs=e.commitHydratedInstance,zs=e.commitHydratedContainer,Bs=e.commitHydratedActivityInstance,Vs=e.commitHydratedSuspenseInstance,Hs=e.finalizeHydratedChildren,Us=e.flushHydrationEvents;e.clearActivityBoundary;var Ws=e.clearSuspenseBoundary;e.clearActivityBoundaryFromContainer;var Gs=e.clearSuspenseBoundaryFromContainer,Ks=e.hideDehydratedBoundary,qs=e.unhideDehydratedBoundary,Js=e.shouldDeleteUnhydratedTailInstances;e.diffHydratedPropsForDevWarnings,e.diffHydratedTextForDevWarnings,e.describeHydratableInstanceForDevWarnings;var Ys=e.validateHydratableInstance,Xs=e.validateHydratableTextInstance,Zs=e.supportsResources,Qs=e.isHostHoistableType,H=e.getHoistableRoot,$s=e.getResource,ec=e.acquireResource,tc=e.releaseResource,nc=e.hydrateHoistable,rc=e.mountHoistable,ic=e.unmountHoistable,ac=e.createHoistableInstance,oc=e.prepareToCommitHoistables,sc=e.mayResourceSuspendCommit,cc=e.preloadResource,lc=e.suspendResource,uc=e.supportsSingletons,dc=e.resolveSingletonInstance,fc=e.acquireSingletonInstance,pc=e.releaseSingletonInstance,mc=e.isHostSingletonType,hc=e.isSingletonScope,gc=[],_c=-1,vc={},yc=Math.clz32?Math.clz32:m,bc=Math.log,xc=Math.LN2,Sc=256,Cc=262144,wc=4194304,Tc=Na.unstable_scheduleCallback,U=Na.unstable_cancelCallback,Ec=Na.unstable_shouldYield,Dc=Na.unstable_requestPaint,Oc=Na.unstable_now,kc=Na.unstable_ImmediatePriority,Ac=Na.unstable_UserBlockingPriority,jc=Na.unstable_NormalPriority,Mc=Na.unstable_IdlePriority,Nc=Na.log,Pc=Na.unstable_setDisableYieldValue,Fc=null,Ic=null,Lc=typeof Object.is==`function`?Object.is:ee,Rc=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&&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)},zc=Object.prototype.hasOwnProperty,Bc,Vc,Hc=!1,Uc=new WeakMap,Wc=[],Gc=0,Kc=null,W=0,qc=[],Jc=0,Yc=null,Xc=1,Zc=``,Qc=d(null),$c=d(null),el=d(null),tl=d(null),nl=null,rl=null,il=!1,al=null,ol=!1,sl=Error(r(519)),cl=d(null),ll=null,ul=null,dl=typeof AbortController<`u`?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(t,n){e.push(n)}};this.abort=function(){t.aborted=!0,e.forEach(function(e){return e()})}},fl=Na.unstable_scheduleCallback,pl=Na.unstable_NormalPriority,ml={$$typeof:Ha,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0},hl=null,gl=null,_l=!1,vl=!1,yl=!1,bl=0,xl=null,Sl=0,Cl=0,wl=null,Tl=V.S;V.S=function(e,t){qu=Oc(),typeof t==`object`&&t&&typeof t.then==`function`&&Re(e,t),Tl!==null&&Tl(e,t)};var El=d(null),Dl=Error(r(460)),Ol=Error(r(474)),kl=Error(r(542)),Al={then:function(){}},jl=null,Ml=null,Nl=0,Pl=Qe(!0),Fl=Qe(!1),Il=[],Ll=0,Rl=0,zl=!1,Bl=!1,Vl=d(null),Hl=d(0),Ul=d(null),Wl=null,Gl=d(0),Kl=0,G=null,ql=null,Jl=null,Yl=!1,Xl=!1,Zl=!1,Ql=0,$l=0,eu=null,tu=0,nu={readContext:Ce,use:It,useCallback:Ct,useContext:Ct,useEffect:Ct,useImperativeHandle:Ct,useLayoutEffect:Ct,useInsertionEffect:Ct,useMemo:Ct,useReducer:Ct,useRef:Ct,useState:Ct,useDebugValue:Ct,useDeferredValue:Ct,useTransition:Ct,useSyncExternalStore:Ct,useId:Ct,useHostTransitionStatus:Ct,useFormState:Ct,useActionState:Ct,useOptimistic:Ct,useMemoCache:Ct,useCacheRefresh:Ct};nu.useEffectEvent=Ct;var ru={readContext:Ce,use:It,useCallback:function(e,t){return Mt().memoizedState=[e,t===void 0?null:t],e},useContext:Ce,useEffect:mn,useImperativeHandle:function(e,t,n){n=n==null?null:n.concat([e]),dn(4194308,4,bn.bind(null,t,e),n)},useLayoutEffect:function(e,t){return dn(4194308,4,e,t)},useInsertionEffect:function(e,t){dn(4,2,e,t)},useMemo:function(e,t){var n=Mt();t=t===void 0?null:t;var r=e();if(Zl){k(!0);try{e()}finally{k(!1)}}return n.memoizedState=[r,t],r},useReducer:function(e,t,n){var r=Mt();if(n!==void 0){var i=n(t);if(Zl){k(!0);try{n(t)}finally{k(!1)}}}else i=t;return r.memoizedState=r.baseState=i,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:i},r.queue=e,e=e.dispatch=Nn.bind(null,G,e),[r.memoizedState,e]},useRef:function(e){var t=Mt();return e={current:e},t.memoizedState=e},useState:function(e){e=Jt(e);var t=e.queue,n=Pn.bind(null,G,t);return t.dispatch=n,[e.memoizedState,n]},useDebugValue:Sn,useDeferredValue:function(e,t){return Tn(Mt(),e,t)},useTransition:function(){var e=Jt(!1);return e=Dn.bind(null,G,e.queue,!0,!1),Mt().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,n){var i=G,a=Mt();if(il){if(n===void 0)throw Error(r(407));n=n()}else{if(n=t(),Ou===null)throw Error(r(349));Au&127||Ut(i,t,n)}a.memoizedState=n;var o={value:n,getSnapshot:t};return a.queue=o,mn(Gt.bind(null,i,o,e),[e]),i.flags|=2048,ln(9,{destroy:void 0},Wt.bind(null,i,o,n,t),null),n},useId:function(){var e=Mt(),t=Ou.identifierPrefix;if(il){var n=Zc,r=Xc;n=(r&~(1<<32-yc(r)-1)).toString(32)+n,t=`_`+t+`R_`+n,n=Ql++,0<n&&(t+=`H`+n.toString(32)),t+=`_`}else n=tu++,t=`_`+t+`r_`+n.toString(32)+`_`;return e.memoizedState=t},useHostTransitionStatus:kn,useFormState:rn,useActionState:rn,useOptimistic:function(e){var t=Mt();t.memoizedState=t.baseState=e;var n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=n,t=In.bind(null,G,!0,n),n.dispatch=t,[e,t]},useMemoCache:Lt,useCacheRefresh:function(){return Mt().memoizedState=Mn.bind(null,G)},useEffectEvent:function(e){var t=Mt(),n={impl:e};return t.memoizedState=n,function(){if(Du&2)throw Error(r(440));return n.impl.apply(void 0,arguments)}}},iu={readContext:Ce,use:It,useCallback:Cn,useContext:Ce,useEffect:hn,useImperativeHandle:xn,useInsertionEffect:vn,useLayoutEffect:yn,useMemo:wn,useReducer:zt,useRef:un,useState:function(){return zt(Rt)},useDebugValue:Sn,useDeferredValue:function(e,t){return En(Nt(),ql.memoizedState,e,t)},useTransition:function(){var e=zt(Rt)[0],t=Nt().memoizedState;return[typeof e==`boolean`?e:Ft(e),t]},useSyncExternalStore:Ht,useId:An,useHostTransitionStatus:kn,useFormState:an,useActionState:an,useOptimistic:function(e,t){return Yt(Nt(),ql,e,t)},useMemoCache:Lt,useCacheRefresh:jn};iu.useEffectEvent=_n;var au={readContext:Ce,use:It,useCallback:Cn,useContext:Ce,useEffect:hn,useImperativeHandle:xn,useInsertionEffect:vn,useLayoutEffect:yn,useMemo:wn,useReducer:Vt,useRef:un,useState:function(){return Vt(Rt)},useDebugValue:Sn,useDeferredValue:function(e,t){var n=Nt();return ql===null?Tn(n,e,t):En(n,ql.memoizedState,e,t)},useTransition:function(){var e=Vt(Rt)[0],t=Nt().memoizedState;return[typeof e==`boolean`?e:Ft(e),t]},useSyncExternalStore:Ht,useId:An,useHostTransitionStatus:kn,useFormState:cn,useActionState:cn,useOptimistic:function(e,t){var n=Nt();return ql===null?(n.baseState=e,[e,n.queue.dispatch]):Yt(n,ql,e,t)},useMemoCache:Lt,useCacheRefresh:jn};au.useEffectEvent=_n;var ou={enqueueSetState:function(e,t,n){e=e._reactInternals;var r=ji(),i=st(r);i.payload=t,n!=null&&(i.callback=n),t=ct(e,i,r),t!==null&&(Ni(t,e,r),lt(t,e,r))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=ji(),i=st(r);i.tag=1,i.payload=t,n!=null&&(i.callback=n),t=ct(e,i,r),t!==null&&(Ni(t,e,r),lt(t,e,r))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=ji(),r=st(n);r.tag=2,t!=null&&(r.callback=t),t=ct(e,r,n),t!==null&&(Ni(t,e,n),lt(t,e,n))}},su=Error(r(461)),cu=!1,lu={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null},uu=!1,du=!1,fu=!1,pu=typeof WeakSet==`function`?WeakSet:Set,mu=null,hu=null,gu=!1,_u=null,vu=8192,yu={getCacheForType:function(e){var t=Ce(ml),n=t.data.get(e);return n===void 0&&(n=e(),t.data.set(e,n)),n},cacheSignal:function(){return Ce(ml).controller.signal}},bu=0,xu=1,Su=2,Cu=3,wu=4;if(typeof Symbol==`function`&&Symbol.for){var Tu=Symbol.for;bu=Tu(`selector.component`),xu=Tu(`selector.has_pseudo_class`),Su=Tu(`selector.role`),Cu=Tu(`selector.test_id`),wu=Tu(`selector.text`)}var Eu=typeof WeakMap==`function`?WeakMap:Map,Du=0,Ou=null,ku=null,Au=0,ju=0,Mu=null,Nu=!1,Pu=!1,Fu=!1,Iu=0,Lu=0,Ru=0,zu=0,Bu=0,Vu=0,Hu=0,Uu=null,Wu=null,Gu=!1,Ku=0,qu=0,Ju=1/0,Yu=null,Xu=null,Zu=0,Qu=null,$u=null,ed=0,td=0,nd=null,rd=null,id=0,ad=null;return B.attemptContinuousHydration=function(e){if(e.tag===13||e.tag===31){var t=nt(e,67108864);t!==null&&Ni(t,e,67108864),ja(e,67108864)}},B.attemptHydrationAtCurrentPriority=function(e){if(e.tag===13||e.tag===31){var t=ji();t=E(t);var n=nt(e,t);n!==null&&Ni(n,e,t),ja(e,t)}},B.attemptSynchronousHydration=function(e){switch(e.tag){case 3:if(e=e.stateNode,e.current.memoizedState.isDehydrated){var t=h(e.pendingLanes);if(t!==0){for(e.pendingLanes|=2,e.entangledLanes|=2;t;){var n=1<<31-yc(t);e.entanglements[1]|=n,t&=~n}ke(e),!(Du&6)&&(Ju=Oc()+500,Ae(0,!1))}}break;case 31:case 13:t=nt(e,2),t!==null&&Ni(t,e,2),Ri(),ja(e,2)}},B.batchedUpdates=function(e,t){return e(t)},B.createComponentSelector=function(e){return{$$typeof:bu,value:e}},B.createContainer=function(e,t,n,r,i,a,o,s,c,l){return Ea(e,t,!1,null,n,r,a,null,o,s,c,l)},B.createHasPseudoClassSelector=function(e){return{$$typeof:xu,value:e}},B.createHydrationContainer=function(e,t,n,r,i,a,o,s,c,l,u,d,f,p){return e=Ea(n,r,!0,e,i,a,s,p,c,l,u,d),e.context=Da(null),n=e.current,r=ji(),r=E(r),i=st(r),i.callback=t??null,ct(n,i,r),t=r,e.current.lanes=t,x(e,t),ke(e),e},B.createPortal=function(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:La,key:r==null?null:``+r,children:e,containerInfo:t,implementation:n}},B.createRoleSelector=function(e){return{$$typeof:Su,value:e}},B.createTestNameSelector=function(e){return{$$typeof:Cu,value:e}},B.createTextSelector=function(e){return{$$typeof:wu,value:e}},B.defaultOnCaughtError=function(e){console.error(e)},B.defaultOnRecoverableError=function(e){Rc(e)},B.defaultOnUncaughtError=function(e){Rc(e)},B.deferredUpdates=function(e){var t=V.T,n=Co();try{return So(32),V.T=null,e()}finally{So(n),V.T=t}},B.discreteUpdates=function(e,t,n,r,i){var a=V.T,o=Co();try{return So(2),V.T=null,e(t,n,r,i)}finally{So(o),V.T=a,Du===0&&(Ju=Oc()+500)}},B.findAllNodes=Ai,B.findBoundingRects=function(e,t){if(!zo)throw Error(r(363));t=Ai(e,t),e=[];for(var n=0;n<t.length;n++)e.push(Vo(t[n]));for(t=e.length-1;0<t;t--){n=e[t];for(var i=n.x,a=i+n.width,o=n.y,s=o+n.height,c=t-1;0<=c;c--)if(t!==c){var l=e[c],u=l.x,d=u+l.width,f=l.y,p=f+l.height;if(i>=u&&o>=f&&a<=d&&s<=p){e.splice(t,1);break}else if(!(i!==u||n.width!==l.width||p<o||f>s)){f>o&&(l.height+=f-o,l.y=o),p<s&&(l.height=s-f),e.splice(t,1);break}else if(!(o!==f||n.height!==l.height||d<i||u>a)){u>i&&(l.width+=u-i,l.x=i),d<a&&(l.width=a-u),e.splice(t,1);break}}}return e},B.findHostInstance=Oa,B.findHostInstanceWithNoPortals=function(e){return e=o(e),e=e===null?null:c(e),e===null?null:no(e.stateNode)},B.findHostInstanceWithWarning=function(e){return Oa(e)},B.flushPassiveEffects=oa,B.flushSyncFromReconciler=function(e){var t=Du;Du|=1;var n=V.T,r=Co();try{if(So(2),V.T=null,e)return e()}finally{So(r),V.T=n,Du=t,!(Du&6)&&Ae(0,!1)}},B.flushSyncWork=Ri,B.focusWithin=function(e,t){if(!zo)throw Error(r(363));for(e=Ei(e),t=ki(e,t),t=Array.from(t),e=0;e<t.length;){var n=t[e++],i=n.tag;if(!Uo(n)){if((i===5||i===26||i===27)&&Go(n.stateNode))return!0;for(n=n.child;n!==null;)t.push(n),n=n.sibling}}return!1},B.getFindAllNodesFailureDescription=function(e,t){if(!zo)throw Error(r(363));var n=0,i=[];e=[Ei(e),0];for(var a=0;a<e.length;){var o=e[a++],s=o.tag,c=e[a++],l=t[c];if((s!==5&&s!==26&&s!==27||!Uo(o))&&(Di(o,l)&&(i.push(Oi(l)),c++,c>n&&(n=c)),c<t.length))for(o=o.child;o!==null;)e.push(o,c),o=o.sibling}if(n<t.length){for(e=[];n<t.length;n++)e.push(Oi(t[n]));return`findAllNodes was able to match part of the selector:
|
|
100
100
|
`+(i.join(` > `)+`
|
|
101
101
|
|
|
102
102
|
No matching component was found for:
|
|
103
|
-
`)+e.join(` > `)}return null},B.getPublicRootInstance=function(e){if(e=e.current,!e.child)return null;switch(e.child.tag){case 27:case 5:return no(e.child.stateNode);default:return e.child.stateNode}},B.injectIntoDevTools=function(){var e={bundleType:0,version:$a,rendererPackageName:eo,currentDispatcherRef:V,reconcilerVersion:`19.2.0`};if(to!==null&&(e.rendererConfig=to),typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>`u`)e=!1;else{var t=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(t.isDisabled||!t.supportsFiber)e=!0;else{try{
|
|
103
|
+
`)+e.join(` > `)}return null},B.getPublicRootInstance=function(e){if(e=e.current,!e.child)return null;switch(e.child.tag){case 27:case 5:return no(e.child.stateNode);default:return e.child.stateNode}},B.injectIntoDevTools=function(){var e={bundleType:0,version:$a,rendererPackageName:eo,currentDispatcherRef:V,reconcilerVersion:`19.2.0`};if(to!==null&&(e.rendererConfig=to),typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>`u`)e=!1;else{var t=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(t.isDisabled||!t.supportsFiber)e=!0;else{try{Fc=t.inject(e),Ic=t}catch{}e=!!t.checkDCE}}return e},B.isAlreadyRendering=function(){return(Du&6)!=0},B.observeVisibleRects=function(e,t,n,i){if(!zo)throw Error(r(363));e=Ai(e,t);var a=Ko(e,n,i).disconnect;return{disconnect:function(){a()}}},B.shouldError=function(){return null},B.shouldSuspend=function(){return!1},B.startHostTransition=function(e,t,i,a){if(e.tag!==5)throw Error(r(476));var o=On(e).queue;Dn(e,o,t,Po,i===null?n:function(){var t=On(e);return t.next===null&&(t=e.alternate.memoizedState),Fn(e,t.next.queue,{},ji()),i(a)})},B.updateContainer=function(e,t,n,r){var i=t.current,a=ji();return ka(i,a,e,t,n,r),a},B.updateContainerSync=function(e,t,n,r){return ka(t.current,2,e,t,n,r),2},B},t.exports.default=t.exports,Object.defineProperty(t.exports,"__esModule",{value:!0})})),mn=x(((e,t)=>{
|
|
104
104
|
/**
|
|
105
105
|
* @license React
|
|
106
106
|
* react-reconciler.development.js
|
|
@@ -110,29 +110,29 @@ No matching component was found for:
|
|
|
110
110
|
* This source code is licensed under the MIT license found in the
|
|
111
111
|
* LICENSE file in the root directory of this source tree.
|
|
112
112
|
*/
|
|
113
|
-
process.env.NODE_ENV!==`production`&&(t.exports=function(e){function t(e,t){for(e=e.memoizedState;e!==null&&0<t;)e=e.next,t--;return e}function n(e,t,r,i){if(r>=t.length)return i;var a=t[r],o=qc(e)?e.slice():kc({},e);return o[a]=n(e[a],t,r+1,i),o}function r(e,t,n){if(t.length!==n.length)console.warn(`copyWithRename() expects paths of the same length`);else{for(var r=0;r<n.length-1;r++)if(t[r]!==n[r]){console.warn(`copyWithRename() expects paths to be the same except for the deepest key`);return}return i(e,t,n,0)}}function i(e,t,n,r){var a=t[r],o=qc(e)?e.slice():kc({},e);return r+1===t.length?(o[n[r]]=o[a],qc(o)?o.splice(a,1):delete o[a]):o[a]=i(e[a],t,n,r+1),o}function a(e,t,n){var r=t[n],i=qc(e)?e.slice():kc({},e);return n+1===t.length?(qc(i)?i.splice(r,1):delete i[r],i):(i[r]=a(e[r],t,n+1),i)}function o(){return!1}function s(){return null}function c(e,t,n,r){return new cc(e,t,n,r)}function l(e,t){e.context===bd&&(Sc(t,e,null,null),ms())}function u(e,t){if($_!==null){var n=t.staleFamilies;t=t.updatedFamilies,Vs(),sc(e.current,t,n),ms()}}function d(e){$_=e}function f(){console.error(`Do not call Hooks inside useEffect(...), useMemo(...), or other built-in Hooks. You can only call Hooks at the top level of your React function. For more information, see https://react.dev/link/rules-of-hooks`)}function p(){console.error(`Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo().`)}function m(){}function h(){}function g(e){var t=[];return e.forEach(function(e){t.push(e)}),t.sort().join(`, `)}function _(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,t.flags&4098&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function v(e){if(_(e)!==e)throw Error(`Unable to find node on an unmounted component.`)}function y(e){var t=e.alternate;if(!t){if(t=_(e),t===null)throw Error(`Unable to find node on an unmounted component.`);return t===e?e:null}for(var n=e,r=t;;){var i=n.return;if(i===null)break;var a=i.alternate;if(a===null){if(r=i.return,r!==null){n=r;continue}break}if(i.child===a.child){for(a=i.child;a;){if(a===n)return v(i),e;if(a===r)return v(i),t;a=a.sibling}throw Error(`Unable to find node on an unmounted component.`)}if(n.return!==r.return)n=i,r=a;else{for(var o=!1,s=i.child;s;){if(s===n){o=!0,n=i,r=a;break}if(s===r){o=!0,r=i,n=a;break}s=s.sibling}if(!o){for(s=a.child;s;){if(s===n){o=!0,n=a,r=i;break}if(s===r){o=!0,r=a,n=i;break}s=s.sibling}if(!o)throw Error(`Child was not found in either parent set. This indicates a bug in React related to the return pointer. Please file an issue.`)}}if(n.alternate!==r)throw Error(`Return fibers should always be each others' alternates. This error is likely caused by a bug in React. Please file an issue.`)}if(n.tag!==3)throw Error(`Unable to find node on an unmounted component.`);return n.stateNode.current===n?e:t}function b(e){return e=y(e),e===null?null:x(e)}function x(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=x(e),t!==null)return t;e=e.sibling}return null}function S(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(e.tag!==4&&(t=S(e),t!==null))return t;e=e.sibling}return null}function C(e){return typeof e!=`object`||!e?null:(e=Gc&&e[Gc]||e[`@@iterator`],typeof e==`function`?e:null)}function w(e){if(e==null)return null;if(typeof e==`function`)return e.$$typeof===Kc?null:e.displayName||e.name||null;if(typeof e==`string`)return e;switch(e){case Nc:return`Fragment`;case Fc:return`Profiler`;case Pc:return`StrictMode`;case zc:return`Suspense`;case Bc:return`SuspenseList`;case Uc:return`Activity`}if(typeof e==`object`)switch(typeof e.tag==`number`&&console.error(`Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue.`),e.$$typeof){case Mc:return`Portal`;case Lc:return e.displayName||`Context`;case Ic:return(e._context.displayName||`Context`)+`.Consumer`;case Rc:var t=e.render;return e=e.displayName,e||=(e=t.displayName||t.name||``,e===``?`ForwardRef`:`ForwardRef(`+e+`)`),e;case Vc:return t=e.displayName||null,t===null?w(e.type)||`Memo`:t;case Hc:t=e._payload,e=e._init;try{return w(e(t))}catch{}}return null}function T(e){var t=e.type;switch(e.tag){case 31:return`Activity`;case 24:return`Cache`;case 9:return(t._context.displayName||`Context`)+`.Consumer`;case 10:return t.displayName||`Context`;case 18:return`DehydratedFragment`;case 11:return e=t.render,e=e.displayName||e.name||``,t.displayName||(e===``?`ForwardRef`:`ForwardRef(`+e+`)`);case 7:return`Fragment`;case 26:case 27:case 5:return t;case 4:return`Portal`;case 3:return`Root`;case 6:return`Text`;case 16:return w(t);case 8:return t===Pc?`StrictMode`:`Mode`;case 22:return`Offscreen`;case 12:return`Profiler`;case 21:return`Scope`;case 13:return`Suspense`;case 19:return`SuspenseList`;case 25:return`TracingMarker`;case 1:case 0:case 14:case 15:if(typeof t==`function`)return t.displayName||t.name||null;if(typeof t==`string`)return t;break;case 29:if(t=e._debugInfo,t!=null){for(var n=t.length-1;0<=n;n--)if(typeof t[n].name==`string`)return t[n].name}if(e.return!==null)return T(e.return)}return null}function E(e){return{current:e}}function D(e,t){0>yd?console.error(`Unexpected pop.`):(t!==vd[yd]&&console.error(`Unexpected Fiber popped.`),e.current=_d[yd],_d[yd]=null,vd[yd]=null,yd--)}function k(e,t,n){yd++,_d[yd]=e.current,vd[yd]=n,e.current=t}function ee(e){return e>>>=0,e===0?32:31-(Sd(e)/Cd|0)|0}function A(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 console.error(`Should have found matching lanes. This is a bug in React.`),e}}function te(e,t,n){var r=e.pendingLanes;if(r===0)return 0;var i=0,a=e.suspendedLanes,o=e.pingedLanes;e=e.warmLanes;var s=r&134217727;return s===0?(s=r&~a,s===0?o===0?n||(n=r&~e,n!==0&&(i=A(n))):i=A(o):i=A(s)):(r=s&~a,r===0?(o&=s,o===0?n||(n=s&~e,n!==0&&(i=A(n))):i=A(o)):i=A(r)),i===0?0:t!==0&&t!==i&&(t&a)===0&&(a=i&-i,n=t&-t,a>=n||a===32&&n&4194048)?t:i}function j(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function ne(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 console.error(`Should have found matching lanes. This is a bug in React.`),-1}}function M(){var e=Ed;return Ed<<=1,!(Ed&62914560)&&(Ed=4194304),e}function re(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function ie(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function ae(e,t,n,r,i,a){var o=e.pendingLanes;e.pendingLanes=n,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=n,e.entangledLanes&=n,e.errorRecoveryDisabledLanes&=n,e.shellSuspendCounter=0;var s=e.entanglements,c=e.expirationTimes,l=e.hiddenUpdates;for(n=o&~n;0<n;){var u=31-xd(n),d=1<<u;s[u]=0,c[u]=-1;var f=l[u];if(f!==null)for(l[u]=null,u=0;u<f.length;u++){var p=f[u];p!==null&&(p.lane&=-536870913)}n&=~d}r!==0&&oe(e,r,0),a!==0&&i===0&&e.tag!==0&&(e.suspendedLanes|=a&~(o&~t))}function oe(e,t,n){e.pendingLanes|=t,e.suspendedLanes&=~t;var r=31-xd(t);e.entangledLanes|=t,e.entanglements[r]=e.entanglements[r]|1073741824|n&261930}function se(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-xd(n),i=1<<r;i&t|e[r]&t&&(e[r]|=t),n&=~i}}function ce(e,t){var n=t&-t;return n=n&42?1:le(n),(n&(e.suspendedLanes|t))===0?n:0}function le(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 ue(e,t,n){if(Vd)for(e=e.pendingUpdatersLaneMap;0<n;){var r=31-xd(n),i=1<<r;e[r].add(t),n&=~i}}function N(e,t){if(Vd)for(var n=e.pendingUpdatersLaneMap,r=e.memoizedUpdaters;0<t;){var i=31-xd(t);e=1<<i,i=n[i],0<i.size&&(i.forEach(function(e){var t=e.alternate;t!==null&&r.has(t)||r.add(e)}),i.clear()),t&=~e}}function de(e){return e&=-e,2<e?8<e?e&134217727?32:268435456:8:2}function fe(e){if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>`u`)return!1;var t=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(t.isDisabled)return!0;if(!t.supportsFiber)return console.error(`The installed version of React DevTools is too old and will not work with the current version of React. Please update React DevTools. https://react.dev/link/react-devtools`),!0;try{Rd=t.inject(e),zd=t}catch(e){console.error(`React instrumentation encountered an error: %o.`,e)}return!!t.checkDCE}function pe(e){if(typeof Id==`function`&&Ld(e),zd&&typeof zd.setStrictMode==`function`)try{zd.setStrictMode(Rd,e)}catch(e){Bd||(Bd=!0,console.error(`React instrumentation encountered an error: %o`,e))}}function me(e,t){return e===t&&(e!==0||1/e==1/t)||e!==e&&t!==t}function he(e){for(var t=0,n=0;n<e.length;n++){var r=e[n];if(typeof r==`object`&&r)if(qc(r)&&r.length===2&&typeof r[0]==`string`){if(t!==0&&t!==3)return 1;t=3}else return 1;else{if(typeof r==`function`||typeof r==`string`&&50<r.length||t!==0&&t!==2)return 1;t=2}}return t}function ge(e,t,n,r){for(var i in e)Jd.call(e,i)&&i[0]!==`_`&&_e(i,e[i],t,n,r)}function _e(e,t,n,r,i){switch(typeof t){case`object`:if(t===null){t=`null`;break}else{if(t.$$typeof===jc){var a=w(t.type)||`…`,o=t.key;t=t.props;var s=Object.keys(t),c=s.length;if(o==null&&c===0){t=`<`+a+` />`;break}if(3>r||c===1&&s[0]===`children`&&o==null){t=`<`+a+` … />`;break}for(var l in n.push([i+`\xA0\xA0`.repeat(r)+e,`<`+a]),o!==null&&_e(`key`,o,n,r+1,i),e=!1,t)l===`children`?t.children!=null&&(!qc(t.children)||0<t.children.length)&&(e=!0):Jd.call(t,l)&&l[0]!==`_`&&_e(l,t[l],n,r+1,i);n.push([``,e?`>…</`+a+`>`:`/>`]);return}if(a=Object.prototype.toString.call(t),a=a.slice(8,a.length-1),a===`Array`){if(l=he(t),l===2||l===0){t=JSON.stringify(t);break}else if(l===3){for(n.push([i+`\xA0\xA0`.repeat(r)+e,``]),e=0;e<t.length;e++)a=t[e],_e(a[0],a[1],n,r+1,i);return}}if(a===`Promise`){if(t.status===`fulfilled`){if(a=n.length,_e(e,t.value,n,r,i),n.length>a){n=n[a],n[1]=`Promise<`+(n[1]||`Object`)+`>`;return}}else if(t.status===`rejected`&&(a=n.length,_e(e,t.reason,n,r,i),n.length>a)){n=n[a],n[1]=`Rejected Promise<`+n[1]+`>`;return}n.push([`\xA0\xA0`.repeat(r)+e,`Promise`]);return}a===`Object`&&(l=Object.getPrototypeOf(t))&&typeof l.constructor==`function`&&(a=l.constructor.name),n.push([i+`\xA0\xA0`.repeat(r)+e,a===`Object`?3>r?``:`…`:a]),3>r&&ge(t,n,r+1,i);return}case`function`:t=t.name===``?`() => {}`:t.name+`() {}`;break;case`string`:t=t===`This object has been omitted by React in the console log to avoid sending too much data from the server. Try logging smaller or more specific objects.`?`…`:JSON.stringify(t);break;case`undefined`:t=`undefined`;break;case`boolean`:t=t?`true`:`false`;break;default:t=String(t)}n.push([i+`\xA0\xA0`.repeat(r)+e,t])}function ve(e,t,n,r){var i=!0;for(o in e)o in t||(n.push([`–\xA0`+`\xA0\xA0`.repeat(r)+o,`…`]),i=!1);for(var a in t)if(a in e){var o=e[a],s=t[a];if(o!==s){if(r===0&&a===`children`)i=`\xA0\xA0`.repeat(r)+a,n.push([`–\xA0`+i,`…`],[`+\xA0`+i,`…`]);else{if(!(3<=r)){if(typeof o==`object`&&typeof s==`object`&&o!==null&&s!==null&&o.$$typeof===s.$$typeof)if(s.$$typeof===jc){if(o.type===s.type&&o.key===s.key){o=w(s.type)||`…`,i=`\xA0\xA0`.repeat(r)+a,o=`<`+o+` … />`,n.push([`–\xA0`+i,o],[`+\xA0`+i,o]),i=!1;continue}}else{var c=Object.prototype.toString.call(o),l=Object.prototype.toString.call(s);if(c===l&&(l===`[object Object]`||l===`[object Array]`)){c=[` \xA0`+`\xA0\xA0`.repeat(r)+a,l===`[object Array]`?`Array`:``],n.push(c),l=n.length,ve(o,s,n,r+1)?l===n.length&&(c[1]=`Referentially unequal but deeply equal objects. Consider memoization.`):i=!1;continue}}else if(typeof o==`function`&&typeof s==`function`&&o.name===s.name&&o.length===s.length&&(c=Function.prototype.toString.call(o),l=Function.prototype.toString.call(s),c===l)){o=s.name===``?`() => {}`:s.name+`() {}`,n.push([` \xA0`+`\xA0\xA0`.repeat(r)+a,o+` Referentially unequal function closure. Consider memoization.`]);continue}}_e(a,o,n,r,`–\xA0`),_e(a,s,n,r,`+\xA0`)}i=!1}}else n.push([`+\xA0`+`\xA0\xA0`.repeat(r)+a,`…`]),i=!1;return i}function P(e){Xd=e&63?`Blocking`:e&64?`Gesture`:e&4194176?`Transition`:e&62914560?`Suspense`:e&2080374784?`Idle`:`Other`}function ye(e,t,n,r){Yd&&($d.start=t,$d.end=n,Qd.color=`warning`,Qd.tooltipText=r,Qd.properties=null,(e=e._debugTask)?e.run(performance.measure.bind(performance,r,$d)):performance.measure(r,$d))}function be(e,t,n){ye(e,t,n,`Reconnect`)}function F(e,t,n,r,i){var a=T(e);if(a!==null&&Yd){var o=e.alternate,s=e.actualDuration;if(o===null||o.child!==e.child)for(var c=e.child;c!==null;c=c.sibling)s-=c.actualDuration;r=.5>s?r?`tertiary-light`:`primary-light`:10>s?r?`tertiary`:`primary`:100>s?r?`tertiary-dark`:`primary-dark`:`error`;var l=e.memoizedProps;s=e._debugTask,l!==null&&o!==null&&o.memoizedProps!==l?(c=[ef],l=ve(o.memoizedProps,l,c,0),1<c.length&&(l&&!Zd&&(o.lanes&i)===0&&100<e.actualDuration?(Zd=!0,c[0]=tf,Qd.color=`warning`,Qd.tooltipText=`This component received deeply equal props. It might benefit from useMemo or the React Compiler in its owner.`):(Qd.color=r,Qd.tooltipText=a),Qd.properties=c,$d.start=t,$d.end=n,s==null?performance.measure(``+a,$d):s.run(performance.measure.bind(performance,``+a,$d)))):s==null?console.timeStamp(a,t,n,`Components ⚛`,void 0,r):s.run(console.timeStamp.bind(console,a,t,n,`Components ⚛`,void 0,r))}}function xe(e,t,n,r){if(Yd){var i=T(e);if(i!==null){for(var a=null,o=[],s=0;s<r.length;s++){var c=r[s];a==null&&c.source!==null&&(a=c.source._debugTask),c=c.value,o.push([`Error`,typeof c==`object`&&c&&typeof c.message==`string`?String(c.message):String(c)])}e.key!==null&&_e(`key`,e.key,o,0,``),e.memoizedProps!==null&&ge(e.memoizedProps,o,0,``),a??=e._debugTask,e={start:t,end:n,detail:{devtools:{color:`error`,track:`Components ⚛`,tooltipText:e.tag===13?`Hydration failed`:`Error boundary caught an error`,properties:o}}},a?a.run(performance.measure.bind(performance,``+i,e)):performance.measure(``+i,e)}}}function Se(e,t,n,r,i){if(i!==null){if(Yd){var a=T(e);if(a!==null){r=[];for(var o=0;o<i.length;o++){var s=i[o].value;r.push([`Error`,typeof s==`object`&&s&&typeof s.message==`string`?String(s.message):String(s)])}e.key!==null&&_e(`key`,e.key,r,0,``),e.memoizedProps!==null&&ge(e.memoizedProps,r,0,``),t={start:t,end:n,detail:{devtools:{color:`error`,track:`Components ⚛`,tooltipText:`A lifecycle or effect errored`,properties:r}}},(e=e._debugTask)?e.run(performance.measure.bind(performance,``+a,t)):performance.measure(``+a,t)}}}else a=T(e),a!==null&&Yd&&(i=1>r?`secondary-light`:100>r?`secondary`:500>r?`secondary-dark`:`error`,(e=e._debugTask)?e.run(console.timeStamp.bind(console,a,t,n,`Components ⚛`,void 0,i)):console.timeStamp(a,t,n,`Components ⚛`,void 0,i))}function Ce(e,t,n,r){if(Yd&&!(t<=e)){var i=(n&738197653)===n?`tertiary-dark`:`primary-dark`;n=(n&536870912)===n?`Prepared`:(n&201326741)===n?`Hydrated`:`Render`,r?r.run(console.timeStamp.bind(console,n,e,t,Xd,`Scheduler ⚛`,i)):console.timeStamp(n,e,t,Xd,`Scheduler ⚛`,i)}}function we(e,t,n,r){!Yd||t<=e||(n=(n&738197653)===n?`tertiary-dark`:`primary-dark`,r?r.run(console.timeStamp.bind(console,`Prewarm`,e,t,Xd,`Scheduler ⚛`,n)):console.timeStamp(`Prewarm`,e,t,Xd,`Scheduler ⚛`,n))}function Te(e,t,n,r){!Yd||t<=e||(n=(n&738197653)===n?`tertiary-dark`:`primary-dark`,r?r.run(console.timeStamp.bind(console,`Suspended`,e,t,Xd,`Scheduler ⚛`,n)):console.timeStamp(`Suspended`,e,t,Xd,`Scheduler ⚛`,n))}function Ee(e,t,n,r,i,a){if(Yd&&!(t<=e)){n=[];for(var o=0;o<r.length;o++){var s=r[o].value;n.push([`Recoverable Error`,typeof s==`object`&&s&&typeof s.message==`string`?String(s.message):String(s)])}e={start:e,end:t,detail:{devtools:{color:`primary-dark`,track:Xd,trackGroup:`Scheduler ⚛`,tooltipText:i?`Hydration Failed`:`Recovered after Error`,properties:n}}},a?a.run(performance.measure.bind(performance,`Recovered`,e)):performance.measure(`Recovered`,e)}}function De(e,t,n,r){!Yd||t<=e||(r?r.run(console.timeStamp.bind(console,`Errored`,e,t,Xd,`Scheduler ⚛`,`error`)):console.timeStamp(`Errored`,e,t,Xd,`Scheduler ⚛`,`error`))}function Oe(e,t,n,r){!Yd||t<=e||(r?r.run(console.timeStamp.bind(console,n,e,t,Xd,`Scheduler ⚛`,`secondary-light`)):console.timeStamp(n,e,t,Xd,`Scheduler ⚛`,`secondary-light`))}function ke(e,t,n,r,i){if(Yd&&!(t<=e)){for(var a=[],o=0;o<n.length;o++){var s=n[o].value;a.push([`Error`,typeof s==`object`&&s&&typeof s.message==`string`?String(s.message):String(s)])}e={start:e,end:t,detail:{devtools:{color:`error`,track:Xd,trackGroup:`Scheduler ⚛`,tooltipText:r?`Remaining Effects Errored`:`Commit Errored`,properties:a}}},i?i.run(performance.measure.bind(performance,`Errored`,e)):performance.measure(`Errored`,e)}}function Ae(){}function je(){if(nf===0){rf=console.log,af=console.info,of=console.warn,sf=console.error,cf=console.group,lf=console.groupCollapsed,uf=console.groupEnd;var e={configurable:!0,enumerable:!0,value:Ae,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}nf++}function Me(){if(nf--,nf===0){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:kc({},e,{value:rf}),info:kc({},e,{value:af}),warn:kc({},e,{value:of}),error:kc({},e,{value:sf}),group:kc({},e,{value:cf}),groupCollapsed:kc({},e,{value:lf}),groupEnd:kc({},e,{value:uf})})}0>nf&&console.error(`disabledDepth fell below zero. This is a bug in React. Please file an issue.`)}function Ne(e){var t=Error.prepareStackTrace;if(Error.prepareStackTrace=void 0,e=e.stack,Error.prepareStackTrace=t,e.startsWith(`Error: react-stack-top-frame
|
|
113
|
+
process.env.NODE_ENV!==`production`&&(t.exports=function(e){function t(e,t){for(e=e.memoizedState;e!==null&&0<t;)e=e.next,t--;return e}function n(e,t,r,i){if(r>=t.length)return i;var a=t[r],o=Kc(e)?e.slice():Oc({},e);return o[a]=n(e[a],t,r+1,i),o}function r(e,t,n){if(t.length!==n.length)console.warn(`copyWithRename() expects paths of the same length`);else{for(var r=0;r<n.length-1;r++)if(t[r]!==n[r]){console.warn(`copyWithRename() expects paths to be the same except for the deepest key`);return}return i(e,t,n,0)}}function i(e,t,n,r){var a=t[r],o=Kc(e)?e.slice():Oc({},e);return r+1===t.length?(o[n[r]]=o[a],Kc(o)?o.splice(a,1):delete o[a]):o[a]=i(e[a],t,n,r+1),o}function a(e,t,n){var r=t[n],i=Kc(e)?e.slice():Oc({},e);return n+1===t.length?(Kc(i)?i.splice(r,1):delete i[r],i):(i[r]=a(e[r],t,n+1),i)}function o(){return!1}function s(){return null}function c(e,t,n,r){return new sc(e,t,n,r)}function l(e,t){e.context===bd&&(xc(t,e,null,null),ms())}function u(e,t){if($_!==null){var n=t.staleFamilies;t=t.updatedFamilies,Vs(),oc(e.current,t,n),ms()}}function d(e){$_=e}function f(){console.error(`Do not call Hooks inside useEffect(...), useMemo(...), or other built-in Hooks. You can only call Hooks at the top level of your React function. For more information, see https://react.dev/link/rules-of-hooks`)}function p(){console.error(`Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo().`)}function m(){}function h(){}function g(e){var t=[];return e.forEach(function(e){t.push(e)}),t.sort().join(`, `)}function _(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,t.flags&4098&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function v(e){if(_(e)!==e)throw Error(`Unable to find node on an unmounted component.`)}function y(e){var t=e.alternate;if(!t){if(t=_(e),t===null)throw Error(`Unable to find node on an unmounted component.`);return t===e?e:null}for(var n=e,r=t;;){var i=n.return;if(i===null)break;var a=i.alternate;if(a===null){if(r=i.return,r!==null){n=r;continue}break}if(i.child===a.child){for(a=i.child;a;){if(a===n)return v(i),e;if(a===r)return v(i),t;a=a.sibling}throw Error(`Unable to find node on an unmounted component.`)}if(n.return!==r.return)n=i,r=a;else{for(var o=!1,s=i.child;s;){if(s===n){o=!0,n=i,r=a;break}if(s===r){o=!0,r=i,n=a;break}s=s.sibling}if(!o){for(s=a.child;s;){if(s===n){o=!0,n=a,r=i;break}if(s===r){o=!0,r=a,n=i;break}s=s.sibling}if(!o)throw Error(`Child was not found in either parent set. This indicates a bug in React related to the return pointer. Please file an issue.`)}}if(n.alternate!==r)throw Error(`Return fibers should always be each others' alternates. This error is likely caused by a bug in React. Please file an issue.`)}if(n.tag!==3)throw Error(`Unable to find node on an unmounted component.`);return n.stateNode.current===n?e:t}function b(e){return e=y(e),e===null?null:x(e)}function x(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=x(e),t!==null)return t;e=e.sibling}return null}function S(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(e.tag!==4&&(t=S(e),t!==null))return t;e=e.sibling}return null}function C(e){return typeof e!=`object`||!e?null:(e=Wc&&e[Wc]||e[`@@iterator`],typeof e==`function`?e:null)}function w(e){if(e==null)return null;if(typeof e==`function`)return e.$$typeof===Gc?null:e.displayName||e.name||null;if(typeof e==`string`)return e;switch(e){case Mc:return`Fragment`;case Pc:return`Profiler`;case Nc:return`StrictMode`;case Rc:return`Suspense`;case zc:return`SuspenseList`;case Hc:return`Activity`}if(typeof e==`object`)switch(typeof e.tag==`number`&&console.error(`Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue.`),e.$$typeof){case jc:return`Portal`;case Ic:return e.displayName||`Context`;case Fc:return(e._context.displayName||`Context`)+`.Consumer`;case Lc:var t=e.render;return e=e.displayName,e||=(e=t.displayName||t.name||``,e===``?`ForwardRef`:`ForwardRef(`+e+`)`),e;case Bc:return t=e.displayName||null,t===null?w(e.type)||`Memo`:t;case Vc:t=e._payload,e=e._init;try{return w(e(t))}catch{}}return null}function T(e){var t=e.type;switch(e.tag){case 31:return`Activity`;case 24:return`Cache`;case 9:return(t._context.displayName||`Context`)+`.Consumer`;case 10:return t.displayName||`Context`;case 18:return`DehydratedFragment`;case 11:return e=t.render,e=e.displayName||e.name||``,t.displayName||(e===``?`ForwardRef`:`ForwardRef(`+e+`)`);case 7:return`Fragment`;case 26:case 27:case 5:return t;case 4:return`Portal`;case 3:return`Root`;case 6:return`Text`;case 16:return w(t);case 8:return t===Nc?`StrictMode`:`Mode`;case 22:return`Offscreen`;case 12:return`Profiler`;case 21:return`Scope`;case 13:return`Suspense`;case 19:return`SuspenseList`;case 25:return`TracingMarker`;case 1:case 0:case 14:case 15:if(typeof t==`function`)return t.displayName||t.name||null;if(typeof t==`string`)return t;break;case 29:if(t=e._debugInfo,t!=null){for(var n=t.length-1;0<=n;n--)if(typeof t[n].name==`string`)return t[n].name}if(e.return!==null)return T(e.return)}return null}function E(e){return{current:e}}function D(e,t){0>yd?console.error(`Unexpected pop.`):(t!==vd[yd]&&console.error(`Unexpected Fiber popped.`),e.current=_d[yd],_d[yd]=null,vd[yd]=null,yd--)}function k(e,t,n){yd++,_d[yd]=e.current,vd[yd]=n,e.current=t}function ee(e){return e>>>=0,e===0?32:31-(Sd(e)/Cd|0)|0}function A(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 console.error(`Should have found matching lanes. This is a bug in React.`),e}}function te(e,t,n){var r=e.pendingLanes;if(r===0)return 0;var i=0,a=e.suspendedLanes,o=e.pingedLanes;e=e.warmLanes;var s=r&134217727;return s===0?(s=r&~a,s===0?o===0?n||(n=r&~e,n!==0&&(i=A(n))):i=A(o):i=A(s)):(r=s&~a,r===0?(o&=s,o===0?n||(n=s&~e,n!==0&&(i=A(n))):i=A(o)):i=A(r)),i===0?0:t!==0&&t!==i&&(t&a)===0&&(a=i&-i,n=t&-t,a>=n||a===32&&n&4194048)?t:i}function j(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function ne(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 console.error(`Should have found matching lanes. This is a bug in React.`),-1}}function M(){var e=Ed;return Ed<<=1,!(Ed&62914560)&&(Ed=4194304),e}function re(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function ie(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function ae(e,t,n,r,i,a){var o=e.pendingLanes;e.pendingLanes=n,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=n,e.entangledLanes&=n,e.errorRecoveryDisabledLanes&=n,e.shellSuspendCounter=0;var s=e.entanglements,c=e.expirationTimes,l=e.hiddenUpdates;for(n=o&~n;0<n;){var u=31-xd(n),d=1<<u;s[u]=0,c[u]=-1;var f=l[u];if(f!==null)for(l[u]=null,u=0;u<f.length;u++){var p=f[u];p!==null&&(p.lane&=-536870913)}n&=~d}r!==0&&oe(e,r,0),a!==0&&i===0&&e.tag!==0&&(e.suspendedLanes|=a&~(o&~t))}function oe(e,t,n){e.pendingLanes|=t,e.suspendedLanes&=~t;var r=31-xd(t);e.entangledLanes|=t,e.entanglements[r]=e.entanglements[r]|1073741824|n&261930}function se(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-xd(n),i=1<<r;i&t|e[r]&t&&(e[r]|=t),n&=~i}}function ce(e,t){var n=t&-t;return n=n&42?1:le(n),(n&(e.suspendedLanes|t))===0?n:0}function le(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 ue(e,t,n){if(Vd)for(e=e.pendingUpdatersLaneMap;0<n;){var r=31-xd(n),i=1<<r;e[r].add(t),n&=~i}}function N(e,t){if(Vd)for(var n=e.pendingUpdatersLaneMap,r=e.memoizedUpdaters;0<t;){var i=31-xd(t);e=1<<i,i=n[i],0<i.size&&(i.forEach(function(e){var t=e.alternate;t!==null&&r.has(t)||r.add(e)}),i.clear()),t&=~e}}function de(e){return e&=-e,2<e?8<e?e&134217727?32:268435456:8:2}function fe(e){if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>`u`)return!1;var t=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(t.isDisabled)return!0;if(!t.supportsFiber)return console.error(`The installed version of React DevTools is too old and will not work with the current version of React. Please update React DevTools. https://react.dev/link/react-devtools`),!0;try{Rd=t.inject(e),zd=t}catch(e){console.error(`React instrumentation encountered an error: %o.`,e)}return!!t.checkDCE}function pe(e){if(typeof Id==`function`&&Ld(e),zd&&typeof zd.setStrictMode==`function`)try{zd.setStrictMode(Rd,e)}catch(e){Bd||(Bd=!0,console.error(`React instrumentation encountered an error: %o`,e))}}function me(e,t){return e===t&&(e!==0||1/e==1/t)||e!==e&&t!==t}function he(e){for(var t=0,n=0;n<e.length;n++){var r=e[n];if(typeof r==`object`&&r)if(Kc(r)&&r.length===2&&typeof r[0]==`string`){if(t!==0&&t!==3)return 1;t=3}else return 1;else{if(typeof r==`function`||typeof r==`string`&&50<r.length||t!==0&&t!==2)return 1;t=2}}return t}function ge(e,t,n,r){for(var i in e)Jd.call(e,i)&&i[0]!==`_`&&_e(i,e[i],t,n,r)}function _e(e,t,n,r,i){switch(typeof t){case`object`:if(t===null){t=`null`;break}else{if(t.$$typeof===Ac){var a=w(t.type)||`…`,o=t.key;t=t.props;var s=Object.keys(t),c=s.length;if(o==null&&c===0){t=`<`+a+` />`;break}if(3>r||c===1&&s[0]===`children`&&o==null){t=`<`+a+` … />`;break}for(var l in n.push([i+`\xA0\xA0`.repeat(r)+e,`<`+a]),o!==null&&_e(`key`,o,n,r+1,i),e=!1,t)l===`children`?t.children!=null&&(!Kc(t.children)||0<t.children.length)&&(e=!0):Jd.call(t,l)&&l[0]!==`_`&&_e(l,t[l],n,r+1,i);n.push([``,e?`>…</`+a+`>`:`/>`]);return}if(a=Object.prototype.toString.call(t),a=a.slice(8,a.length-1),a===`Array`){if(l=he(t),l===2||l===0){t=JSON.stringify(t);break}else if(l===3){for(n.push([i+`\xA0\xA0`.repeat(r)+e,``]),e=0;e<t.length;e++)a=t[e],_e(a[0],a[1],n,r+1,i);return}}if(a===`Promise`){if(t.status===`fulfilled`){if(a=n.length,_e(e,t.value,n,r,i),n.length>a){n=n[a],n[1]=`Promise<`+(n[1]||`Object`)+`>`;return}}else if(t.status===`rejected`&&(a=n.length,_e(e,t.reason,n,r,i),n.length>a)){n=n[a],n[1]=`Rejected Promise<`+n[1]+`>`;return}n.push([`\xA0\xA0`.repeat(r)+e,`Promise`]);return}a===`Object`&&(l=Object.getPrototypeOf(t))&&typeof l.constructor==`function`&&(a=l.constructor.name),n.push([i+`\xA0\xA0`.repeat(r)+e,a===`Object`?3>r?``:`…`:a]),3>r&&ge(t,n,r+1,i);return}case`function`:t=t.name===``?`() => {}`:t.name+`() {}`;break;case`string`:t=t===`This object has been omitted by React in the console log to avoid sending too much data from the server. Try logging smaller or more specific objects.`?`…`:JSON.stringify(t);break;case`undefined`:t=`undefined`;break;case`boolean`:t=t?`true`:`false`;break;default:t=String(t)}n.push([i+`\xA0\xA0`.repeat(r)+e,t])}function ve(e,t,n,r){var i=!0;for(o in e)o in t||(n.push([`–\xA0`+`\xA0\xA0`.repeat(r)+o,`…`]),i=!1);for(var a in t)if(a in e){var o=e[a],s=t[a];if(o!==s){if(r===0&&a===`children`)i=`\xA0\xA0`.repeat(r)+a,n.push([`–\xA0`+i,`…`],[`+\xA0`+i,`…`]);else{if(!(3<=r)){if(typeof o==`object`&&typeof s==`object`&&o!==null&&s!==null&&o.$$typeof===s.$$typeof)if(s.$$typeof===Ac){if(o.type===s.type&&o.key===s.key){o=w(s.type)||`…`,i=`\xA0\xA0`.repeat(r)+a,o=`<`+o+` … />`,n.push([`–\xA0`+i,o],[`+\xA0`+i,o]),i=!1;continue}}else{var c=Object.prototype.toString.call(o),l=Object.prototype.toString.call(s);if(c===l&&(l===`[object Object]`||l===`[object Array]`)){c=[` \xA0`+`\xA0\xA0`.repeat(r)+a,l===`[object Array]`?`Array`:``],n.push(c),l=n.length,ve(o,s,n,r+1)?l===n.length&&(c[1]=`Referentially unequal but deeply equal objects. Consider memoization.`):i=!1;continue}}else if(typeof o==`function`&&typeof s==`function`&&o.name===s.name&&o.length===s.length&&(c=Function.prototype.toString.call(o),l=Function.prototype.toString.call(s),c===l)){o=s.name===``?`() => {}`:s.name+`() {}`,n.push([` \xA0`+`\xA0\xA0`.repeat(r)+a,o+` Referentially unequal function closure. Consider memoization.`]);continue}}_e(a,o,n,r,`–\xA0`),_e(a,s,n,r,`+\xA0`)}i=!1}}else n.push([`+\xA0`+`\xA0\xA0`.repeat(r)+a,`…`]),i=!1;return i}function P(e){Xd=e&63?`Blocking`:e&64?`Gesture`:e&4194176?`Transition`:e&62914560?`Suspense`:e&2080374784?`Idle`:`Other`}function ye(e,t,n,r){Yd&&($d.start=t,$d.end=n,Qd.color=`warning`,Qd.tooltipText=r,Qd.properties=null,(e=e._debugTask)?e.run(performance.measure.bind(performance,r,$d)):performance.measure(r,$d))}function be(e,t,n){ye(e,t,n,`Reconnect`)}function F(e,t,n,r,i){var a=T(e);if(a!==null&&Yd){var o=e.alternate,s=e.actualDuration;if(o===null||o.child!==e.child)for(var c=e.child;c!==null;c=c.sibling)s-=c.actualDuration;r=.5>s?r?`tertiary-light`:`primary-light`:10>s?r?`tertiary`:`primary`:100>s?r?`tertiary-dark`:`primary-dark`:`error`;var l=e.memoizedProps;s=e._debugTask,l!==null&&o!==null&&o.memoizedProps!==l?(c=[ef],l=ve(o.memoizedProps,l,c,0),1<c.length&&(l&&!Zd&&(o.lanes&i)===0&&100<e.actualDuration?(Zd=!0,c[0]=tf,Qd.color=`warning`,Qd.tooltipText=`This component received deeply equal props. It might benefit from useMemo or the React Compiler in its owner.`):(Qd.color=r,Qd.tooltipText=a),Qd.properties=c,$d.start=t,$d.end=n,s==null?performance.measure(``+a,$d):s.run(performance.measure.bind(performance,``+a,$d)))):s==null?console.timeStamp(a,t,n,`Components ⚛`,void 0,r):s.run(console.timeStamp.bind(console,a,t,n,`Components ⚛`,void 0,r))}}function xe(e,t,n,r){if(Yd){var i=T(e);if(i!==null){for(var a=null,o=[],s=0;s<r.length;s++){var c=r[s];a==null&&c.source!==null&&(a=c.source._debugTask),c=c.value,o.push([`Error`,typeof c==`object`&&c&&typeof c.message==`string`?String(c.message):String(c)])}e.key!==null&&_e(`key`,e.key,o,0,``),e.memoizedProps!==null&&ge(e.memoizedProps,o,0,``),a??=e._debugTask,e={start:t,end:n,detail:{devtools:{color:`error`,track:`Components ⚛`,tooltipText:e.tag===13?`Hydration failed`:`Error boundary caught an error`,properties:o}}},a?a.run(performance.measure.bind(performance,``+i,e)):performance.measure(``+i,e)}}}function Se(e,t,n,r,i){if(i!==null){if(Yd){var a=T(e);if(a!==null){r=[];for(var o=0;o<i.length;o++){var s=i[o].value;r.push([`Error`,typeof s==`object`&&s&&typeof s.message==`string`?String(s.message):String(s)])}e.key!==null&&_e(`key`,e.key,r,0,``),e.memoizedProps!==null&&ge(e.memoizedProps,r,0,``),t={start:t,end:n,detail:{devtools:{color:`error`,track:`Components ⚛`,tooltipText:`A lifecycle or effect errored`,properties:r}}},(e=e._debugTask)?e.run(performance.measure.bind(performance,``+a,t)):performance.measure(``+a,t)}}}else a=T(e),a!==null&&Yd&&(i=1>r?`secondary-light`:100>r?`secondary`:500>r?`secondary-dark`:`error`,(e=e._debugTask)?e.run(console.timeStamp.bind(console,a,t,n,`Components ⚛`,void 0,i)):console.timeStamp(a,t,n,`Components ⚛`,void 0,i))}function Ce(e,t,n,r){if(Yd&&!(t<=e)){var i=(n&738197653)===n?`tertiary-dark`:`primary-dark`;n=(n&536870912)===n?`Prepared`:(n&201326741)===n?`Hydrated`:`Render`,r?r.run(console.timeStamp.bind(console,n,e,t,Xd,`Scheduler ⚛`,i)):console.timeStamp(n,e,t,Xd,`Scheduler ⚛`,i)}}function we(e,t,n,r){!Yd||t<=e||(n=(n&738197653)===n?`tertiary-dark`:`primary-dark`,r?r.run(console.timeStamp.bind(console,`Prewarm`,e,t,Xd,`Scheduler ⚛`,n)):console.timeStamp(`Prewarm`,e,t,Xd,`Scheduler ⚛`,n))}function Te(e,t,n,r){!Yd||t<=e||(n=(n&738197653)===n?`tertiary-dark`:`primary-dark`,r?r.run(console.timeStamp.bind(console,`Suspended`,e,t,Xd,`Scheduler ⚛`,n)):console.timeStamp(`Suspended`,e,t,Xd,`Scheduler ⚛`,n))}function Ee(e,t,n,r,i,a){if(Yd&&!(t<=e)){n=[];for(var o=0;o<r.length;o++){var s=r[o].value;n.push([`Recoverable Error`,typeof s==`object`&&s&&typeof s.message==`string`?String(s.message):String(s)])}e={start:e,end:t,detail:{devtools:{color:`primary-dark`,track:Xd,trackGroup:`Scheduler ⚛`,tooltipText:i?`Hydration Failed`:`Recovered after Error`,properties:n}}},a?a.run(performance.measure.bind(performance,`Recovered`,e)):performance.measure(`Recovered`,e)}}function De(e,t,n,r){!Yd||t<=e||(r?r.run(console.timeStamp.bind(console,`Errored`,e,t,Xd,`Scheduler ⚛`,`error`)):console.timeStamp(`Errored`,e,t,Xd,`Scheduler ⚛`,`error`))}function Oe(e,t,n,r){!Yd||t<=e||(r?r.run(console.timeStamp.bind(console,n,e,t,Xd,`Scheduler ⚛`,`secondary-light`)):console.timeStamp(n,e,t,Xd,`Scheduler ⚛`,`secondary-light`))}function ke(e,t,n,r,i){if(Yd&&!(t<=e)){for(var a=[],o=0;o<n.length;o++){var s=n[o].value;a.push([`Error`,typeof s==`object`&&s&&typeof s.message==`string`?String(s.message):String(s)])}e={start:e,end:t,detail:{devtools:{color:`error`,track:Xd,trackGroup:`Scheduler ⚛`,tooltipText:r?`Remaining Effects Errored`:`Commit Errored`,properties:a}}},i?i.run(performance.measure.bind(performance,`Errored`,e)):performance.measure(`Errored`,e)}}function Ae(){}function je(){if(nf===0){rf=console.log,af=console.info,of=console.warn,sf=console.error,cf=console.group,lf=console.groupCollapsed,uf=console.groupEnd;var e={configurable:!0,enumerable:!0,value:Ae,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}nf++}function Me(){if(nf--,nf===0){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:Oc({},e,{value:rf}),info:Oc({},e,{value:af}),warn:Oc({},e,{value:of}),error:Oc({},e,{value:sf}),group:Oc({},e,{value:cf}),groupCollapsed:Oc({},e,{value:lf}),groupEnd:Oc({},e,{value:uf})})}0>nf&&console.error(`disabledDepth fell below zero. This is a bug in React. Please file an issue.`)}function Ne(e){var t=Error.prepareStackTrace;if(Error.prepareStackTrace=void 0,e=e.stack,Error.prepareStackTrace=t,e.startsWith(`Error: react-stack-top-frame
|
|
114
114
|
`)&&(e=e.slice(29)),t=e.indexOf(`
|
|
115
115
|
`),t!==-1&&(e=e.slice(t+1)),t=e.indexOf(`react_stack_bottom_frame`),t!==-1&&(t=e.lastIndexOf(`
|
|
116
116
|
`,t)),t!==-1)e=e.slice(0,t);else return``;return e}function Pe(e){if(df===void 0)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);df=t&&t[1]||``,ff=-1<e.stack.indexOf(`
|
|
117
117
|
at`)?` (<anonymous>)`:-1<e.stack.indexOf(`@`)?`@unknown:0:0`:``}return`
|
|
118
|
-
`+df+e+ff}function Fe(e,t){if(!e||pf)return``;var n=mf.get(e);if(n!==void 0)return n;pf=!0,n=Error.prepareStackTrace,Error.prepareStackTrace=void 0;var r=null;r=
|
|
118
|
+
`+df+e+ff}function Fe(e,t){if(!e||pf)return``;var n=mf.get(e);if(n!==void 0)return n;pf=!0,n=Error.prepareStackTrace,Error.prepareStackTrace=void 0;var r=null;r=W.H,W.H=null,je();try{var i={DetermineComponentFrameRoot:function(){try{if(t){var n=function(){throw Error()};if(Object.defineProperty(n.prototype,"props",{set:function(){throw Error()}}),typeof Reflect==`object`&&Reflect.construct){try{Reflect.construct(n,[])}catch(e){var r=e}Reflect.construct(e,[],n)}else{try{n.call()}catch(e){r=e}e.call(n.prototype)}}else{try{throw Error()}catch(e){r=e}(n=e())&&typeof n.catch==`function`&&n.catch(function(){})}}catch(e){if(e&&r&&typeof e.stack==`string`)return[e.stack,r.stack]}return[null,null]}};i.DetermineComponentFrameRoot.displayName=`DetermineComponentFrameRoot`;var a=Object.getOwnPropertyDescriptor(i.DetermineComponentFrameRoot,`name`);a&&a.configurable&&Object.defineProperty(i.DetermineComponentFrameRoot,"name",{value:`DetermineComponentFrameRoot`});var o=i.DetermineComponentFrameRoot(),s=o[0],c=o[1];if(s&&c){var l=s.split(`
|
|
119
119
|
`),u=c.split(`
|
|
120
120
|
`);for(o=a=0;a<l.length&&!l[a].includes(`DetermineComponentFrameRoot`);)a++;for(;o<u.length&&!u[o].includes(`DetermineComponentFrameRoot`);)o++;if(a===l.length||o===u.length)for(a=l.length-1,o=u.length-1;1<=a&&0<=o&&l[a]!==u[o];)o--;for(;1<=a&&0<=o;a--,o--)if(l[a]!==u[o]){if(a!==1||o!==1)do if(a--,o--,0>o||l[a]!==u[o]){var d=`
|
|
121
|
-
`+l[a].replace(` at new `,` at `);return e.displayName&&d.includes(`<anonymous>`)&&(d=d.replace(`<anonymous>`,e.displayName)),typeof e==`function`&&mf.set(e,d),d}while(1<=a&&0<=o);break}}}finally{pf=!1,
|
|
121
|
+
`+l[a].replace(` at new `,` at `);return e.displayName&&d.includes(`<anonymous>`)&&(d=d.replace(`<anonymous>`,e.displayName)),typeof e==`function`&&mf.set(e,d),d}while(1<=a&&0<=o);break}}}finally{pf=!1,W.H=r,Me(),Error.prepareStackTrace=n}return l=(l=e?e.displayName||e.name:``)?Pe(l):``,typeof e==`function`&&mf.set(e,l),l}function Ie(e,t){switch(e.tag){case 26:case 27:case 5:return Pe(e.type);case 16:return Pe(`Lazy`);case 13:return e.child!==t&&t!==null?Pe(`Suspense Fallback`):Pe(`Suspense`);case 19:return Pe(`SuspenseList`);case 0:case 15:return Fe(e.type,!1);case 11:return Fe(e.type.render,!1);case 1:return Fe(e.type,!0);case 31:return Pe(`Activity`);default:return``}}function Le(e){try{var t=``,n=null;do{t+=Ie(e,n);var r=e._debugInfo;if(r)for(var i=r.length-1;0<=i;i--){var a=r[i];if(typeof a.name==`string`){var o=t;a:{var s=a.name,c=a.env,l=a.debugLocation;if(l!=null){var u=Ne(l),d=u.lastIndexOf(`
|
|
122
122
|
`),f=d===-1?u:u.slice(d+1);if(f.indexOf(s)!==-1){var p=`
|
|
123
123
|
`+f;break a}}p=Pe(s+(c?` [`+c+`]`:``))}t=o+p}}n=e,e=e.return}while(e);return t}catch(e){return`
|
|
124
124
|
Error generating stack: `+e.message+`
|
|
125
|
-
`+e.stack}}function Re(e){return(e=e?e.displayName||e.name:``)?Pe(e):``}function ze(e,t){if(typeof e==`object`&&e){var n=hf.get(e);return n===void 0?(t={value:e,source:t,stack:Le(t)},hf.set(e,t),t):n}return{value:e,source:t,stack:Le(t)}}function Be(e,t){Ge(),gf[_f++]=yf,gf[_f++]=vf,vf=e,yf=t}function Ve(e,t,n){Ge(),bf[xf++]=Cf,bf[xf++]=wf,bf[xf++]=Sf,Sf=e;var r=Cf;e=wf;var i=32-xd(r)-1;r&=~(1<<i),n+=1;var a=32-xd(t)+i;if(30<a){var o=i-i%5;a=(r&(1<<o)-1).toString(32),r>>=o,i-=o,Cf=1<<32-xd(t)+i|n<<i|r,wf=a+e}else Cf=1<<a|n<<i|r,wf=e}function I(e){Ge(),e.return!==null&&(Be(e,1),Ve(e,1,0))}function He(e){for(;e===vf;)vf=gf[--_f],gf[_f]=null,yf=gf[--_f],gf[_f]=null;for(;e===Sf;)Sf=bf[--xf],bf[xf]=null,wf=bf[--xf],bf[xf]=null,Cf=bf[--xf],bf[xf]=null}function Ue(){return Ge(),Sf===null?null:{id:Cf,overflow:wf}}function We(e,t){Ge(),bf[xf++]=Cf,bf[xf++]=wf,bf[xf++]=Sf,Cf=t.id,wf=t.overflow,Sf=e}function Ge(){Pf||console.error(`Expected to be hydrating. This is a bug in React. Please file an issue.`)}function Ke(e){return e===null&&console.error(`Expected host context to exist. This error is likely caused by a bug in React. Please file an issue.`),e}function qe(e,t){k(Df,t,e),k(Ef,e,e),k(Tf,null,e),t=
|
|
125
|
+
`+e.stack}}function Re(e){return(e=e?e.displayName||e.name:``)?Pe(e):``}function ze(e,t){if(typeof e==`object`&&e){var n=hf.get(e);return n===void 0?(t={value:e,source:t,stack:Le(t)},hf.set(e,t),t):n}return{value:e,source:t,stack:Le(t)}}function Be(e,t){Ge(),gf[_f++]=yf,gf[_f++]=vf,vf=e,yf=t}function Ve(e,t,n){Ge(),bf[xf++]=Cf,bf[xf++]=wf,bf[xf++]=Sf,Sf=e;var r=Cf;e=wf;var i=32-xd(r)-1;r&=~(1<<i),n+=1;var a=32-xd(t)+i;if(30<a){var o=i-i%5;a=(r&(1<<o)-1).toString(32),r>>=o,i-=o,Cf=1<<32-xd(t)+i|n<<i|r,wf=a+e}else Cf=1<<a|n<<i|r,wf=e}function I(e){Ge(),e.return!==null&&(Be(e,1),Ve(e,1,0))}function He(e){for(;e===vf;)vf=gf[--_f],gf[_f]=null,yf=gf[--_f],gf[_f]=null;for(;e===Sf;)Sf=bf[--xf],bf[xf]=null,wf=bf[--xf],bf[xf]=null,Cf=bf[--xf],bf[xf]=null}function Ue(){return Ge(),Sf===null?null:{id:Cf,overflow:wf}}function We(e,t){Ge(),bf[xf++]=Cf,bf[xf++]=wf,bf[xf++]=Sf,Cf=t.id,wf=t.overflow,Sf=e}function Ge(){Pf||console.error(`Expected to be hydrating. This is a bug in React. Please file an issue.`)}function Ke(e){return e===null&&console.error(`Expected host context to exist. This error is likely caused by a bug in React. Please file an issue.`),e}function qe(e,t){k(Df,t,e),k(Ef,e,e),k(Tf,null,e),t=Zc(t),D(Tf,e),k(Tf,t,e)}function Je(e){D(Tf,e),D(Ef,e),D(Df,e)}function Ye(){return Ke(Tf.current)}function Xe(e){e.memoizedState!==null&&k(Of,e,e);var t=Ke(Tf.current),n=Qc(t,e.type);t!==n&&(k(Ef,e,e),k(Tf,n,e))}function Ze(e){Ef.current===e&&(D(Tf,e),D(Ef,e)),Of.current===e&&(D(Of,e),ll?Ml._currentValue=jl:Ml._currentValue2=jl)}function Qe(e,t){return e.serverProps===void 0&&e.serverTail.length===0&&e.children.length===1&&3<e.distanceFromLeaf&&e.distanceFromLeaf>15-t?Qe(e.children[0],t):e}function $e(e){return` `+` `.repeat(e)}function et(e){return`+ `+` `.repeat(e)}function tt(e){return`- `+` `.repeat(e)}function nt(e){switch(e.tag){case 26:case 27:case 5:return e.type;case 16:return`Lazy`;case 31:return`Activity`;case 13:return`Suspense`;case 19:return`SuspenseList`;case 0:case 15:return e=e.type,e.displayName||e.name||null;case 11:return e=e.type.render,e.displayName||e.name||null;case 1:return e=e.type,e.displayName||e.name||null;default:return null}}function rt(e,t){return kf.test(e)?(e=JSON.stringify(e),e.length>t-2?8>t?`{"..."}`:`{`+e.slice(0,t-7)+`..."}`:`{`+e+`}`):e.length>t?5>t?`{"..."}`:e.slice(0,t-3)+`...`:e}function it(e,t,n){var r=120-2*n;if(t===null)return et(n)+rt(e,r)+`
|
|
126
126
|
`;if(typeof t==`string`){for(var i=0;i<t.length&&i<e.length&&t.charCodeAt(i)===e.charCodeAt(i);i++);return i>r-8&&10<i&&(e=`...`+e.slice(i-8),t=`...`+t.slice(i-8)),et(n)+rt(e,r)+`
|
|
127
127
|
`+tt(n)+rt(t,r)+`
|
|
128
128
|
`}return $e(n)+rt(e,r)+`
|
|
129
|
-
`}function at(e){return Object.prototype.toString.call(e).replace(/^\[object (.*)\]$/,function(e,t){return t})}function ot(e,t){switch(typeof e){case`string`:return e=JSON.stringify(e),e.length>t?5>t?`"..."`:e.slice(0,t-4)+`..."`:e;case`object`:if(e===null)return`null`;if(
|
|
129
|
+
`}function at(e){return Object.prototype.toString.call(e).replace(/^\[object (.*)\]$/,function(e,t){return t})}function ot(e,t){switch(typeof e){case`string`:return e=JSON.stringify(e),e.length>t?5>t?`"..."`:e.slice(0,t-4)+`..."`:e;case`object`:if(e===null)return`null`;if(Kc(e))return`[...]`;if(e.$$typeof===Ac)return(t=w(e.type))?`<`+t+`>`:`<...>`;var n=at(e);if(n===`Object`){for(var r in n=``,t-=2,e)if(e.hasOwnProperty(r)){var i=JSON.stringify(r);if(i!==`"`+r+`"`&&(r=i),t-=r.length-2,i=ot(e[r],15>t?t:15),t-=i.length,0>t){n+=n===``?`...`:`, ...`;break}n+=(n===``?``:`,`)+r+`:`+i}return`{`+n+`}`}return n;case`function`:return(t=e.displayName||e.name)?`function `+t:`function`;default:return String(e)}}function st(e,t){return typeof e!=`string`||kf.test(e)?`{`+ot(e,t-2)+`}`:e.length>t-2?5>t?`"..."`:`"`+e.slice(0,t-5)+`..."`:`"`+e+`"`}function ct(e,t,n){var r=120-n.length-e.length,i=[],a;for(a in t)if(t.hasOwnProperty(a)&&a!==`children`){var o=st(t[a],120-n.length-a.length-1);r-=a.length+o.length+2,i.push(a+`=`+o)}return i.length===0?n+`<`+e+`>
|
|
130
130
|
`:0<r?n+`<`+e+` `+i.join(` `)+`>
|
|
131
131
|
`:n+`<`+e+`
|
|
132
132
|
`+n+` `+i.join(`
|
|
133
133
|
`+n+` `)+`
|
|
134
134
|
`+n+`>
|
|
135
|
-
`}function lt(e,t,n){var r=``,i=
|
|
135
|
+
`}function lt(e,t,n){var r=``,i=Oc({},t),a;for(a in e)if(e.hasOwnProperty(a)){delete i[a];var o=120-2*n-a.length-2,s=ot(e[a],o);t.hasOwnProperty(a)?(o=ot(t[a],o),r+=et(n)+a+`: `+s+`
|
|
136
136
|
`,r+=tt(n)+a+`: `+o+`
|
|
137
137
|
`):r+=et(n)+a+`: `+s+`
|
|
138
138
|
`}for(var c in i)i.hasOwnProperty(c)&&(e=ot(i[c],120-2*n-c.length-2),r+=tt(n)+c+`: `+e+`
|
|
@@ -157,7 +157,7 @@ Error generating stack: `+e.message+`
|
|
|
157
157
|
`+i)}}else if(e.debugStack!=null){var a=e.debugStack;(e=e.owner)&&a&&(t+=`
|
|
158
158
|
`+Ne(a))}else break;var o=t}catch(e){o=`
|
|
159
159
|
Error generating stack: `+e.message+`
|
|
160
|
-
`+e.stack}return o}function L(e,t,n,r,i,a,o){var s=Af;ht(e);try{return e!==null&&e._debugTask?e._debugTask.run(t.bind(null,n,r,i,a,o)):t(n,r,i,a,o)}finally{ht(s)}throw Error(`runWithFiberInDEV should never be called in production. This is a bug in React.`)}function ht(e){
|
|
160
|
+
`+e.stack}return o}function L(e,t,n,r,i,a,o){var s=Af;ht(e);try{return e!==null&&e._debugTask?e._debugTask.run(t.bind(null,n,r,i,a,o)):t(n,r,i,a,o)}finally{ht(s)}throw Error(`runWithFiberInDEV should never be called in production. This is a bug in React.`)}function ht(e){W.getCurrentStack=e===null?null:mt,jf=!1,Af=e}function gt(e,t){if(e.return===null){if(If===null)If={fiber:e,children:[],serverProps:void 0,serverTail:[],distanceFromLeaf:t};else{if(If.fiber!==e)throw Error(`Saw multiple hydration diff roots in a pass. This is a bug in React.`);If.distanceFromLeaf>t&&(If.distanceFromLeaf=t)}return If}var n=gt(e.return,t+1).children;return 0<n.length&&n[n.length-1].fiber===e?(n=n[n.length-1],n.distanceFromLeaf>t&&(n.distanceFromLeaf=t),n):(t={fiber:e,children:[],serverProps:void 0,serverTail:[],distanceFromLeaf:t},n.push(t),t)}function _t(){Pf&&console.error(`We should not be hydrating here. This is a bug in React. Please file a bug.`)}function vt(e,t){Ff||(e=gt(e,0),e.serverProps=null,t!==null&&(t=Ju(t),e.serverTail.push(t)))}function yt(e){var t=1<arguments.length&&arguments[1]!==void 0?arguments[1]:!1,n=``,r=If;throw r!==null&&(If=null,n=pt(r)),Et(ze(Error(`Hydration failed because the server rendered `+(t?`text`:`HTML`)+` didn't match the client. As a result this tree will be regenerated on the client. This can happen if a SSR-ed Client Component used:
|
|
161
161
|
|
|
162
162
|
- A server/client branch \`if (typeof window !== 'undefined')\`.
|
|
163
163
|
- Variable input such as \`Date.now()\` or \`Math.random()\` which changes each time it's called.
|
|
@@ -167,7 +167,7 @@ Error generating stack: `+e.message+`
|
|
|
167
167
|
|
|
168
168
|
It can also happen if the client has a browser extension installed which messes with the HTML before React loaded.
|
|
169
169
|
|
|
170
|
-
https://react.dev/link/hydration-mismatch`+n),e)),zf}function bt(e,t){if(!fl)throw Error(`Expected prepareToHydrateHostInstance() to never be called. This error is likely caused by a bug in React. Please file an issue.`);ku(e.stateNode,e.type,e.memoizedProps,t,e)||yt(e,!0)}function xt(e){for(Mf=e.return;Mf;)switch(Mf.tag){case 5:case 31:case 13:Rf=!1;return;case 27:case 3:Rf=!0;return;default:Mf=Mf.return}}function St(e){if(!fl||e!==Mf)return!1;if(!Pf)return xt(e),Pf=!0,!1;var t=e.tag;if(dd?t!==3&&t!==27&&(t!==5||Gu(e.type)&&!
|
|
170
|
+
https://react.dev/link/hydration-mismatch`+n),e)),zf}function bt(e,t){if(!fl)throw Error(`Expected prepareToHydrateHostInstance() to never be called. This error is likely caused by a bug in React. Please file an issue.`);ku(e.stateNode,e.type,e.memoizedProps,t,e)||yt(e,!0)}function xt(e){for(Mf=e.return;Mf;)switch(Mf.tag){case 5:case 31:case 13:Rf=!1;return;case 27:case 3:Rf=!0;return;default:Mf=Mf.return}}function St(e){if(!fl||e!==Mf)return!1;if(!Pf)return xt(e),Pf=!0,!1;var t=e.tag;if(dd?t!==3&&t!==27&&(t!==5||Gu(e.type)&&!il(e.type,e.memoizedProps))&&Nf&&(Ct(e),yt(e)):t!==3&&(t!==5||Gu(e.type)&&!il(e.type,e.memoizedProps))&&Nf&&(Ct(e),yt(e)),xt(e),t===13){if(!fl)throw Error(`Expected skipPastDehydratedSuspenseInstance() to never be called. This error is likely caused by a bug in React. Please file an issue.`);if(e=e.memoizedState,e=e===null?null:e.dehydrated,!e)throw Error(`Expected to have a hydrated suspense instance. This error is likely caused by a bug in React. Please file an issue.`);Nf=Pu(e)}else if(t===31){if(e=e.memoizedState,e=e===null?null:e.dehydrated,!e)throw Error(`Expected to have a hydrated suspense instance. This error is likely caused by a bug in React. Please file an issue.`);Nf=Nu(e)}else Nf=dd&&t===27?yu(e.type,Nf):Mf?vu(e.stateNode):null;return!0}function Ct(e){for(var t=Nf;t;){var n=gt(e,0),r=Ju(t);n.serverTail.push(r),t=r.type===`Suspense`?Pu(t):vu(t)}}function wt(){fl&&(Nf=Mf=null,Ff=Pf=!1)}function Tt(){var e=Lf;return e!==null&&(l_===null?l_=e:l_.push.apply(l_,e),Lf=null),e}function Et(e){Lf===null?Lf=[e]:Lf.push(e)}function Dt(){var e=If;if(e!==null){If=null;for(var t=pt(e);0<e.children.length;)e=e.children[0];L(e.fiber,function(){console.error(`A tree hydrated but some attributes of the server rendered HTML didn't match the client properties. This won't be patched up. This can happen if a SSR-ed Client Component used:
|
|
171
171
|
|
|
172
172
|
- A server/client branch \`if (typeof window !== 'undefined')\`.
|
|
173
173
|
- Variable input such as \`Date.now()\` or \`Math.random()\` which changes each time it's called.
|
|
@@ -177,31 +177,31 @@ https://react.dev/link/hydration-mismatch`+n),e)),zf}function bt(e,t){if(!fl)thr
|
|
|
177
177
|
|
|
178
178
|
It can also happen if the client has a browser extension installed which messes with the HTML before React loaded.
|
|
179
179
|
|
|
180
|
-
%s%s`,`https://react.dev/link/hydration-mismatch`,t)})}}function Ot(){Gf=Wf=null,Kf=!1}function kt(e,t,n){ll?(k(Bf,t._currentValue,e),t._currentValue=n,k(Vf,t._currentRenderer,e),t._currentRenderer!==void 0&&t._currentRenderer!==null&&t._currentRenderer!==Uf&&console.error(`Detected multiple renderers concurrently rendering the same context provider. This is currently unsupported.`),t._currentRenderer=Uf):(k(Bf,t._currentValue2,e),t._currentValue2=n,k(Hf,t._currentRenderer2,e),t._currentRenderer2!==void 0&&t._currentRenderer2!==null&&t._currentRenderer2!==Uf&&console.error(`Detected multiple renderers concurrently rendering the same context provider. This is currently unsupported.`),t._currentRenderer2=Uf)}function At(e,t){var n=Bf.current;ll?(e._currentValue=n,n=Vf.current,D(Vf,t),e._currentRenderer=n):(e._currentValue2=n,n=Hf.current,D(Hf,t),e._currentRenderer2=n),D(Bf,t)}function jt(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)===t?r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t):(e.childLanes|=t,r!==null&&(r.childLanes|=t)),e===n)break;e=e.return}e!==n&&console.error(`Expected to find the propagation root when scheduling context work. This error is likely caused by a bug in React. Please file an issue.`)}function Mt(e,t,n,r){var i=e.child;for(i!==null&&(i.return=e);i!==null;){var a=i.dependencies;if(a!==null){var o=i.child;a=a.firstContext;a:for(;a!==null;){var s=a;a=i;for(var c=0;c<t.length;c++)if(s.context===t[c]){a.lanes|=n,s=a.alternate,s!==null&&(s.lanes|=n),jt(a.return,n,e),r||(o=null);break a}a=s.next}}else if(i.tag===18){if(o=i.return,o===null)throw Error(`We just came from a parent so we must have had a parent. This is a bug in React.`);o.lanes|=n,a=o.alternate,a!==null&&(a.lanes|=n),jt(o,n,e),o=null}else o=i.child;if(o!==null)o.return=i;else for(o=i;o!==null;){if(o===e){o=null;break}if(i=o.sibling,i!==null){i.return=o.return,o=i;break}o=o.return}i=o}}function Nt(e,t,n,r){e=null;for(var i=t,a=!1;i!==null;){if(!a){if(i.flags&524288)a=!0;else if(i.flags&262144)break}if(i.tag===10){var o=i.alternate;if(o===null)throw Error(`Should have a current fiber. This is a bug in React.`);if(o=o.memoizedProps,o!==null){var s=i.type;Kd(i.pendingProps.value,o.value)||(e===null?e=[s]:e.push(s))}}else if(i===Of.current){if(o=i.alternate,o===null)throw Error(`Should have a current fiber. This is a bug in React.`);o.memoizedState.memoizedState!==i.memoizedState.memoizedState&&(e===null?e=[Ml]:e.push(Ml))}i=i.return}e!==null&&Mt(t,e,n,r),t.flags|=262144}function Pt(e){for(e=e.firstContext;e!==null;){var t=e.context;if(!Kd(ll?t._currentValue:t._currentValue2,e.memoizedValue))return!0;e=e.next}return!1}function Ft(e){Wf=e,Gf=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function It(e){return Kf&&console.error(`Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo().`),Rt(Wf,e)}function Lt(e,t){return Wf===null&&Ft(e),Rt(e,t)}function Rt(e,t){var n=ll?t._currentValue:t._currentValue2;if(t={context:t,memoizedValue:n,next:null},Gf===null){if(e===null)throw Error(`Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo().`);Gf=t,e.dependencies={lanes:0,firstContext:t,_debugThenableState:null},e.flags|=524288}else Gf=Gf.next=t;return n}function zt(){return{controller:new qf,data:new Map,refCount:0}}function Bt(e){e.controller.signal.aborted&&console.warn(`A cache instance was retained after it was already freed. This likely indicates a bug in React.`),e.refCount++}function Vt(e){e.refCount--,0>e.refCount&&console.warn(`A cache instance was released after it was already freed. This likely indicates a bug in React.`),e.refCount===0&&Jf(Yf,function(){e.controller.abort()})}function Ht(e,t,n){e&127?0>lp&&(lp=Zf(),up=Qf(t),fp=t,n!=null&&(pp=T(n)),hs()&&(sp=!0,dp=1),e=bl(),t=yl(),e!==gp||t!==hp?gp=-1.1:t!==null&&(dp=1),mp=e,hp=t):e&4194048&&0>bp&&(bp=Zf(),Sp=Qf(t),Cp=t,n!=null&&(wp=T(n)),0>yp)&&(e=bl(),t=yl(),(e!==Dp||t!==Ep)&&(Dp=-1.1),Tp=e,Ep=t)}function Ut(e){if(0>lp){lp=Zf(),up=e._debugTask==null?null:e._debugTask,hs()&&(dp=1);var t=bl(),n=yl();t!==gp||n!==hp?gp=-1.1:n!==null&&(dp=1),mp=t,hp=n}0>bp&&(bp=Zf(),Sp=e._debugTask==null?null:e._debugTask,0>yp)&&(e=bl(),t=yl(),(e!==Dp||t!==Ep)&&(Dp=-1.1),Tp=e,Ep=t)}function Wt(){var e=ip;return ip=0,e}function Gt(e){var t=ip;return ip=e,t}function Kt(e){var t=ip;return ip+=e,t}function qt(){J=q=-1.1}function Jt(){var e=q;return q=-1.1,e}function Yt(e){0<=e&&(q=e)}function Xt(){var e=ap;return ap=-0,e}function Zt(e){0<=e&&(ap=e)}function Qt(){var e=op;return op=null,e}function $t(){var e=sp;return sp=!1,e}function en(e){rp=Zf(),0>e.actualStartTime&&(e.actualStartTime=rp)}function tn(e){if(0<=rp){var t=Zf()-rp;e.actualDuration+=t,e.selfBaseDuration=t,rp=-1}}function nn(e){if(0<=rp){var t=Zf()-rp;e.actualDuration+=t,rp=-1}}function rn(){if(0<=rp){var e=Zf(),t=e-rp;rp=-1,ip+=t,ap+=t,J=e}}function an(e){op===null&&(op=[]),op.push(e),np===null&&(np=[]),np.push(e)}function on(){rp=Zf(),0>q&&(q=rp)}function sn(e){for(var t=e.child;t;)e.actualDuration+=t.actualDuration,t=t.sibling}function cn(){}function ln(e){e!==Fp&&e.next===null&&(Fp===null?Pp=Fp=e:Fp=Fp.next=e),Rp=!0,U.actQueue===null?Ip||(Ip=!0,vn()):Lp||(Lp=!0,vn())}function un(e,t){if(!zp&&Rp){zp=!0;do for(var n=!1,r=Pp;r!==null;){if(!t)if(e!==0){var i=r.pendingLanes;if(i===0)var a=0;else{var o=r.suspendedLanes,s=r.pingedLanes;a=(1<<31-xd(42|e)+1)-1,a&=i&~(o&~s),a=a&201326741?a&201326741|1:a?a|2:0}a!==0&&(n=!0,gn(r,a))}else a=$,a=te(r,r===zg?a:0,r.cancelPendingCommit!==null||r.timeoutHandle!==cl),!(a&3)||j(r,a)||(n=!0,gn(r,a));r=r.next}while(n);zp=!1}}function dn(){vl(),pn()}function pn(){Rp=Lp=Ip=!1;var e=0;Bp!==0&&xl()&&(e=Bp);for(var t=jd(),n=null,r=Pp;r!==null;){var i=r.next,a=mn(r,t);a===0?(r.next=null,n===null?Pp=i:n.next=i,i===null&&(Fp=n)):(n=r,(e!==0||a&3)&&(Rp=!0)),r=i}k_!==C_&&k_!==O_||un(e,!1),Bp!==0&&(Bp=0)}function mn(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,i=e.expirationTimes,a=e.pendingLanes&-62914561;0<a;){var o=31-xd(a),s=1<<o,c=i[o];c===-1?((s&n)===0||(s&r)!==0)&&(i[o]=ne(s,t)):c<=t&&(e.expiredLanes|=s),a&=~s}if(t=zg,n=$,n=te(e,e===t?n:0,e.cancelPendingCommit!==null||e.timeoutHandle!==cl),r=e.callbackNode,n===0||e===t&&(Xg===Hg||Xg===Yg)||e.cancelPendingCommit!==null)return r!==null&&_n(r),e.callbackNode=null,e.callbackPriority=0;if(!(n&3)||j(e,n)){if(t=n&-n,t!==e.callbackPriority||U.actQueue!==null&&r!==Vp)_n(r);else return t;switch(de(n)){case 2:case 8:n=Nd;break;case 32:n=Pd;break;case 268435456:n=Fd;break;default:n=Pd}return r=hn.bind(null,e),U.actQueue===null?n=Dd(n,r):(U.actQueue.push(r),n=Vp),e.callbackPriority=t,e.callbackNode=n,t}return r!==null&&_n(r),e.callbackPriority=2,e.callbackNode=null,2}function hn(e,t){if(Np=Mp=!1,vl(),k_!==C_&&k_!==O_)return e.callbackNode=null,e.callbackPriority=0,null;var n=e.callbackNode;if(R_===y_&&(R_=x_),Vs()&&e.callbackNode!==n)return null;var r=$;return r=te(e,e===zg?r:0,e.cancelPendingCommit!==null||e.timeoutHandle!==cl),r===0?null:(us(e,r,t),mn(e,jd()),e.callbackNode!=null&&e.callbackNode===n?hn.bind(null,e):null)}function gn(e,t){if(Vs())return null;Mp=Np,Np=!1,us(e,t,!0)}function _n(e){e!==Vp&&e!==null&&Od(e)}function vn(){U.actQueue!==null&&U.actQueue.push(function(){return pn(),null}),Fl?Il(function(){(Rg&(kg|Ag))===Og?pn():Dd(Md,dn)}):Dd(Md,dn)}function yn(){if(Bp===0){var e=Wp;e===0&&(e=wd,wd<<=1,!(wd&261888)&&(wd=256)),Bp=e}return Bp}function bn(e,t){if(Hp===null){var n=Hp=[];Up=0,Wp=yn(),Gp={status:`pending`,value:void 0,then:function(e){n.push(e)}}}return Up++,t.then(xn,xn),t}function xn(){if(--Up===0&&(-1<bp||(yp=-1.1),Hp!==null)){Gp!==null&&(Gp.status=`fulfilled`);var e=Hp;Hp=null,Wp=0,Gp=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function Sn(e,t){var n=[],r={status:`pending`,value:null,reason:null,then:function(e){n.push(e)}};return e.then(function(){r.status=`fulfilled`,r.value=t;for(var e=0;e<n.length;e++)(0,n[e])(t)},function(e){for(r.status=`rejected`,r.reason=e,e=0;e<n.length;e++)(0,n[e])(void 0)}),r}function Cn(){var e=qp.current;return e===null?zg.pooledCache:e}function wn(e,t){t===null?k(qp,qp.current,e):k(qp,t.pool,e)}function Tn(){var e=Cn();return e===null?null:{parent:ll?Xf._currentValue:Xf._currentValue2,pool:e}}function En(e,t){if(Kd(e,t))return!0;if(typeof e!=`object`||!e||typeof t!=`object`||!t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var i=n[r];if(!Jd.call(t,i)||!Kd(e[i],t[i]))return!1}return!0}function Dn(){return{didWarnAboutUncachedPromise:!1,thenables:[]}}function On(e){return e=e.status,e===`fulfilled`||e===`rejected`}function kn(e,t,n){U.actQueue!==null&&(U.didUsePromise=!0);var r=e.thenables;if(n=r[n],n===void 0?r.push(t):n!==t&&(e.didWarnAboutUncachedPromise||(e.didWarnAboutUncachedPromise=!0,console.error(`A component was suspended by an uncached promise. Creating promises inside a Client Component or hook is not yet supported, except via a Suspense-compatible library or framework.`)),t.then(cn,cn),t=n),t._debugInfo===void 0){e=performance.now(),r=t.displayName;var i={name:typeof r==`string`?r:`Promise`,start:e,end:e,value:t};t._debugInfo=[{awaited:i}],t.status!==`fulfilled`&&t.status!==`rejected`&&(e=function(){i.end=performance.now()},t.then(e,e))}switch(t.status){case`fulfilled`:return t.value;case`rejected`:throw e=t.reason,Mn(e),e;default:if(typeof t.status==`string`)t.then(cn,cn);else{if(e=zg,e!==null&&100<e.shellSuspendCounter)throw Error("An unknown Component is an async Client Component. Only Server Components can be async at the moment. This error is often caused by accidentally adding `'use client'` to a module that was originally written for the server.");e=t,e.status=`pending`,e.then(function(e){if(t.status===`pending`){var n=t;n.status=`fulfilled`,n.value=e}},function(e){if(t.status===`pending`){var n=t;n.status=`rejected`,n.reason=e}})}switch(t.status){case`fulfilled`:return t.value;case`rejected`:throw e=t.reason,Mn(e),e}throw Em=t,Dm=!0,Sm}}function An(e){try{return xm(e)}catch(e){throw typeof e==`object`&&e&&typeof e.then==`function`?(Em=e,Dm=!0,Sm):e}}function jn(){if(Em===null)throw Error(`Expected a suspended thenable. This is a bug in React. Please file an issue.`);var e=Em;return Em=null,Dm=!1,e}function Mn(e){if(e===Sm||e===wm)throw Error("Hooks are not supported inside an async component. This error is often caused by accidentally adding `'use client'` to a module that was originally written for the server.")}function Nn(e){var t=Y;return e!=null&&(Y=t===null?e:t.concat(e)),t}function Pn(){var e=Y;if(e!=null){for(var t=e.length-1;0<=t;t--)if(e[t].name!=null){var n=e[t].debugTask;if(n!=null)return n}}return null}function Fn(e,t,n){for(var r=Object.keys(e.props),i=0;i<r.length;i++){var a=r[i];if(a!==`children`&&a!==`key`){t===null&&(t=pc(e,n.mode,0),t._debugInfo=Y,t.return=n),L(t,function(e){console.error("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",e)},a);break}}}function In(e){var t=km;return km+=1,Om===null&&(Om=Dn()),kn(Om,e,t)}function Ln(e,t){t=t.props.ref,e.ref=t===void 0?null:t}function Rn(e,t){throw t.$$typeof===Ac?Error(`A React Element from an older version of React was rendered. This is not supported. It can happen if:
|
|
180
|
+
%s%s`,`https://react.dev/link/hydration-mismatch`,t)})}}function Ot(){Gf=Wf=null,Kf=!1}function kt(e,t,n){ll?(k(Bf,t._currentValue,e),t._currentValue=n,k(Vf,t._currentRenderer,e),t._currentRenderer!==void 0&&t._currentRenderer!==null&&t._currentRenderer!==Uf&&console.error(`Detected multiple renderers concurrently rendering the same context provider. This is currently unsupported.`),t._currentRenderer=Uf):(k(Bf,t._currentValue2,e),t._currentValue2=n,k(Hf,t._currentRenderer2,e),t._currentRenderer2!==void 0&&t._currentRenderer2!==null&&t._currentRenderer2!==Uf&&console.error(`Detected multiple renderers concurrently rendering the same context provider. This is currently unsupported.`),t._currentRenderer2=Uf)}function At(e,t){var n=Bf.current;ll?(e._currentValue=n,n=Vf.current,D(Vf,t),e._currentRenderer=n):(e._currentValue2=n,n=Hf.current,D(Hf,t),e._currentRenderer2=n),D(Bf,t)}function jt(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)===t?r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t):(e.childLanes|=t,r!==null&&(r.childLanes|=t)),e===n)break;e=e.return}e!==n&&console.error(`Expected to find the propagation root when scheduling context work. This error is likely caused by a bug in React. Please file an issue.`)}function Mt(e,t,n,r){var i=e.child;for(i!==null&&(i.return=e);i!==null;){var a=i.dependencies;if(a!==null){var o=i.child;a=a.firstContext;a:for(;a!==null;){var s=a;a=i;for(var c=0;c<t.length;c++)if(s.context===t[c]){a.lanes|=n,s=a.alternate,s!==null&&(s.lanes|=n),jt(a.return,n,e),r||(o=null);break a}a=s.next}}else if(i.tag===18){if(o=i.return,o===null)throw Error(`We just came from a parent so we must have had a parent. This is a bug in React.`);o.lanes|=n,a=o.alternate,a!==null&&(a.lanes|=n),jt(o,n,e),o=null}else o=i.child;if(o!==null)o.return=i;else for(o=i;o!==null;){if(o===e){o=null;break}if(i=o.sibling,i!==null){i.return=o.return,o=i;break}o=o.return}i=o}}function Nt(e,t,n,r){e=null;for(var i=t,a=!1;i!==null;){if(!a){if(i.flags&524288)a=!0;else if(i.flags&262144)break}if(i.tag===10){var o=i.alternate;if(o===null)throw Error(`Should have a current fiber. This is a bug in React.`);if(o=o.memoizedProps,o!==null){var s=i.type;Kd(i.pendingProps.value,o.value)||(e===null?e=[s]:e.push(s))}}else if(i===Of.current){if(o=i.alternate,o===null)throw Error(`Should have a current fiber. This is a bug in React.`);o.memoizedState.memoizedState!==i.memoizedState.memoizedState&&(e===null?e=[Ml]:e.push(Ml))}i=i.return}e!==null&&Mt(t,e,n,r),t.flags|=262144}function Pt(e){for(e=e.firstContext;e!==null;){var t=e.context;if(!Kd(ll?t._currentValue:t._currentValue2,e.memoizedValue))return!0;e=e.next}return!1}function Ft(e){Wf=e,Gf=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function It(e){return Kf&&console.error(`Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo().`),Rt(Wf,e)}function Lt(e,t){return Wf===null&&Ft(e),Rt(e,t)}function Rt(e,t){var n=ll?t._currentValue:t._currentValue2;if(t={context:t,memoizedValue:n,next:null},Gf===null){if(e===null)throw Error(`Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo().`);Gf=t,e.dependencies={lanes:0,firstContext:t,_debugThenableState:null},e.flags|=524288}else Gf=Gf.next=t;return n}function zt(){return{controller:new qf,data:new Map,refCount:0}}function Bt(e){e.controller.signal.aborted&&console.warn(`A cache instance was retained after it was already freed. This likely indicates a bug in React.`),e.refCount++}function Vt(e){e.refCount--,0>e.refCount&&console.warn(`A cache instance was released after it was already freed. This likely indicates a bug in React.`),e.refCount===0&&Jf(Yf,function(){e.controller.abort()})}function Ht(e,t,n){e&127?0>lp&&(lp=Zf(),up=Qf(t),fp=t,n!=null&&(pp=T(n)),hs()&&(sp=!0,dp=1),e=bl(),t=yl(),e!==gp||t!==hp?gp=-1.1:t!==null&&(dp=1),mp=e,hp=t):e&4194048&&0>bp&&(bp=Zf(),Sp=Qf(t),Cp=t,n!=null&&(wp=T(n)),0>yp)&&(e=bl(),t=yl(),(e!==Dp||t!==Ep)&&(Dp=-1.1),Tp=e,Ep=t)}function Ut(e){if(0>lp){lp=Zf(),up=e._debugTask==null?null:e._debugTask,hs()&&(dp=1);var t=bl(),n=yl();t!==gp||n!==hp?gp=-1.1:n!==null&&(dp=1),mp=t,hp=n}0>bp&&(bp=Zf(),Sp=e._debugTask==null?null:e._debugTask,0>yp)&&(e=bl(),t=yl(),(e!==Dp||t!==Ep)&&(Dp=-1.1),Tp=e,Ep=t)}function Wt(){var e=ip;return ip=0,e}function Gt(e){var t=ip;return ip=e,t}function Kt(e){var t=ip;return ip+=e,t}function qt(){J=q=-1.1}function Jt(){var e=q;return q=-1.1,e}function Yt(e){0<=e&&(q=e)}function Xt(){var e=ap;return ap=-0,e}function Zt(e){0<=e&&(ap=e)}function Qt(){var e=op;return op=null,e}function $t(){var e=sp;return sp=!1,e}function en(e){rp=Zf(),0>e.actualStartTime&&(e.actualStartTime=rp)}function tn(e){if(0<=rp){var t=Zf()-rp;e.actualDuration+=t,e.selfBaseDuration=t,rp=-1}}function nn(e){if(0<=rp){var t=Zf()-rp;e.actualDuration+=t,rp=-1}}function rn(){if(0<=rp){var e=Zf(),t=e-rp;rp=-1,ip+=t,ap+=t,J=e}}function an(e){op===null&&(op=[]),op.push(e),np===null&&(np=[]),np.push(e)}function on(){rp=Zf(),0>q&&(q=rp)}function sn(e){for(var t=e.child;t;)e.actualDuration+=t.actualDuration,t=t.sibling}function cn(){}function ln(e){e!==Fp&&e.next===null&&(Fp===null?Pp=Fp=e:Fp=Fp.next=e),Rp=!0,W.actQueue===null?Ip||(Ip=!0,vn()):Lp||(Lp=!0,vn())}function un(e,t){if(!zp&&Rp){zp=!0;do for(var n=!1,r=Pp;r!==null;){if(!t)if(e!==0){var i=r.pendingLanes;if(i===0)var a=0;else{var o=r.suspendedLanes,s=r.pingedLanes;a=(1<<31-xd(42|e)+1)-1,a&=i&~(o&~s),a=a&201326741?a&201326741|1:a?a|2:0}a!==0&&(n=!0,gn(r,a))}else a=$,a=te(r,r===zg?a:0,r.cancelPendingCommit!==null||r.timeoutHandle!==cl),!(a&3)||j(r,a)||(n=!0,gn(r,a));r=r.next}while(n);zp=!1}}function dn(){vl(),pn()}function pn(){Rp=Lp=Ip=!1;var e=0;Bp!==0&&xl()&&(e=Bp);for(var t=jd(),n=null,r=Pp;r!==null;){var i=r.next,a=mn(r,t);a===0?(r.next=null,n===null?Pp=i:n.next=i,i===null&&(Fp=n)):(n=r,(e!==0||a&3)&&(Rp=!0)),r=i}k_!==C_&&k_!==O_||un(e,!1),Bp!==0&&(Bp=0)}function mn(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,i=e.expirationTimes,a=e.pendingLanes&-62914561;0<a;){var o=31-xd(a),s=1<<o,c=i[o];c===-1?((s&n)===0||(s&r)!==0)&&(i[o]=ne(s,t)):c<=t&&(e.expiredLanes|=s),a&=~s}if(t=zg,n=$,n=te(e,e===t?n:0,e.cancelPendingCommit!==null||e.timeoutHandle!==cl),r=e.callbackNode,n===0||e===t&&(Xg===Hg||Xg===Yg)||e.cancelPendingCommit!==null)return r!==null&&_n(r),e.callbackNode=null,e.callbackPriority=0;if(!(n&3)||j(e,n)){if(t=n&-n,t!==e.callbackPriority||W.actQueue!==null&&r!==Vp)_n(r);else return t;switch(de(n)){case 2:case 8:n=Nd;break;case 32:n=Pd;break;case 268435456:n=Fd;break;default:n=Pd}return r=hn.bind(null,e),W.actQueue===null?n=Dd(n,r):(W.actQueue.push(r),n=Vp),e.callbackPriority=t,e.callbackNode=n,t}return r!==null&&_n(r),e.callbackPriority=2,e.callbackNode=null,2}function hn(e,t){if(Np=Mp=!1,vl(),k_!==C_&&k_!==O_)return e.callbackNode=null,e.callbackPriority=0,null;var n=e.callbackNode;if(R_===y_&&(R_=x_),Vs()&&e.callbackNode!==n)return null;var r=$;return r=te(e,e===zg?r:0,e.cancelPendingCommit!==null||e.timeoutHandle!==cl),r===0?null:(us(e,r,t),mn(e,jd()),e.callbackNode!=null&&e.callbackNode===n?hn.bind(null,e):null)}function gn(e,t){if(Vs())return null;Mp=Np,Np=!1,us(e,t,!0)}function _n(e){e!==Vp&&e!==null&&Od(e)}function vn(){W.actQueue!==null&&W.actQueue.push(function(){return pn(),null}),Fl?Il(function(){(Rg&(kg|Ag))===Og?pn():Dd(Md,dn)}):Dd(Md,dn)}function yn(){if(Bp===0){var e=Wp;e===0&&(e=wd,wd<<=1,!(wd&261888)&&(wd=256)),Bp=e}return Bp}function bn(e,t){if(Hp===null){var n=Hp=[];Up=0,Wp=yn(),Gp={status:`pending`,value:void 0,then:function(e){n.push(e)}}}return Up++,t.then(xn,xn),t}function xn(){if(--Up===0&&(-1<bp||(yp=-1.1),Hp!==null)){Gp!==null&&(Gp.status=`fulfilled`);var e=Hp;Hp=null,Wp=0,Gp=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function Sn(e,t){var n=[],r={status:`pending`,value:null,reason:null,then:function(e){n.push(e)}};return e.then(function(){r.status=`fulfilled`,r.value=t;for(var e=0;e<n.length;e++)(0,n[e])(t)},function(e){for(r.status=`rejected`,r.reason=e,e=0;e<n.length;e++)(0,n[e])(void 0)}),r}function Cn(){var e=qp.current;return e===null?zg.pooledCache:e}function wn(e,t){t===null?k(qp,qp.current,e):k(qp,t.pool,e)}function Tn(){var e=Cn();return e===null?null:{parent:ll?Xf._currentValue:Xf._currentValue2,pool:e}}function En(e,t){if(Kd(e,t))return!0;if(typeof e!=`object`||!e||typeof t!=`object`||!t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var i=n[r];if(!Jd.call(t,i)||!Kd(e[i],t[i]))return!1}return!0}function Dn(){return{didWarnAboutUncachedPromise:!1,thenables:[]}}function On(e){return e=e.status,e===`fulfilled`||e===`rejected`}function kn(e,t,n){W.actQueue!==null&&(W.didUsePromise=!0);var r=e.thenables;if(n=r[n],n===void 0?r.push(t):n!==t&&(e.didWarnAboutUncachedPromise||(e.didWarnAboutUncachedPromise=!0,console.error(`A component was suspended by an uncached promise. Creating promises inside a Client Component or hook is not yet supported, except via a Suspense-compatible library or framework.`)),t.then(cn,cn),t=n),t._debugInfo===void 0){e=performance.now(),r=t.displayName;var i={name:typeof r==`string`?r:`Promise`,start:e,end:e,value:t};t._debugInfo=[{awaited:i}],t.status!==`fulfilled`&&t.status!==`rejected`&&(e=function(){i.end=performance.now()},t.then(e,e))}switch(t.status){case`fulfilled`:return t.value;case`rejected`:throw e=t.reason,Mn(e),e;default:if(typeof t.status==`string`)t.then(cn,cn);else{if(e=zg,e!==null&&100<e.shellSuspendCounter)throw Error("An unknown Component is an async Client Component. Only Server Components can be async at the moment. This error is often caused by accidentally adding `'use client'` to a module that was originally written for the server.");e=t,e.status=`pending`,e.then(function(e){if(t.status===`pending`){var n=t;n.status=`fulfilled`,n.value=e}},function(e){if(t.status===`pending`){var n=t;n.status=`rejected`,n.reason=e}})}switch(t.status){case`fulfilled`:return t.value;case`rejected`:throw e=t.reason,Mn(e),e}throw Em=t,Dm=!0,Sm}}function An(e){try{return xm(e)}catch(e){throw typeof e==`object`&&e&&typeof e.then==`function`?(Em=e,Dm=!0,Sm):e}}function jn(){if(Em===null)throw Error(`Expected a suspended thenable. This is a bug in React. Please file an issue.`);var e=Em;return Em=null,Dm=!1,e}function Mn(e){if(e===Sm||e===wm)throw Error("Hooks are not supported inside an async component. This error is often caused by accidentally adding `'use client'` to a module that was originally written for the server.")}function Nn(e){var t=Y;return e!=null&&(Y=t===null?e:t.concat(e)),t}function Pn(){var e=Y;if(e!=null){for(var t=e.length-1;0<=t;t--)if(e[t].name!=null){var n=e[t].debugTask;if(n!=null)return n}}return null}function Fn(e,t,n){for(var r=Object.keys(e.props),i=0;i<r.length;i++){var a=r[i];if(a!==`children`&&a!==`key`){t===null&&(t=fc(e,n.mode,0),t._debugInfo=Y,t.return=n),L(t,function(e){console.error("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",e)},a);break}}}function In(e){var t=km;return km+=1,Om===null&&(Om=Dn()),kn(Om,e,t)}function Ln(e,t){t=t.props.ref,e.ref=t===void 0?null:t}function Rn(e,t){throw t.$$typeof===kc?Error(`A React Element from an older version of React was rendered. This is not supported. It can happen if:
|
|
181
181
|
- Multiple copies of the "react" package is used.
|
|
182
182
|
- A library pre-bundled an old copy of "react" or "react/jsx-runtime".
|
|
183
183
|
- A compiler tries to "inline" JSX instead of using the runtime.`):(e=Object.prototype.toString.call(t),Error(`Objects are not valid as a React child (found: `+(e===`[object Object]`?`object with keys {`+Object.keys(t).join(`, `)+`}`:e)+`). If you meant to render a collection of children, use an array instead.`))}function zn(e,t){var n=Pn();n===null?Rn(e,t):n.run(Rn.bind(null,e,t))}function Bn(e,t){var n=T(e)||`Component`;Nm[n]||(Nm[n]=!0,t=t.displayName||t.name||`Component`,e.tag===3?console.error(`Functions are not valid as a React child. This may happen if you return %s instead of <%s /> from render. Or maybe you meant to call this function rather than return it.
|
|
184
184
|
root.render(%s)`,t,t,t):console.error(`Functions are not valid as a React child. This may happen if you return %s instead of <%s /> from render. Or maybe you meant to call this function rather than return it.
|
|
185
185
|
<%s>{%s}</%s>`,t,t,n,t,n))}function Vn(e,t){var n=Pn();n===null?Bn(e,t):n.run(Bn.bind(null,e,t))}function Hn(e,t){var n=T(e)||`Component`;Pm[n]||(Pm[n]=!0,t=String(t),e.tag===3?console.error(`Symbols are not valid as a React child.
|
|
186
186
|
root.render(%s)`,t):console.error(`Symbols are not valid as a React child.
|
|
187
|
-
<%s>%s</%s>`,n,t,n))}function Un(e,t){var n=Pn();n===null?Hn(e,t):n.run(Hn.bind(null,e,t))}function Wn(e){function t(t,n){if(e){var r=t.deletions;r===null?(t.deletions=[n],t.flags|=16):r.push(n)}}function n(n,r){if(!e)return null;for(;r!==null;)t(n,r),r=r.sibling;return null}function r(e){for(var t=new Map;e!==null;)e.key===null?t.set(e.index,e):t.set(e.key,e),e=e.sibling;return t}function i(e,t){return e=uc(e,t),e.index=0,e.sibling=null,e}function a(t,n,r){return t.index=r,e?(r=t.alternate,r===null?(t.flags|=67108866,n):(r=r.index,r<n?(t.flags|=67108866,n):r)):(t.flags|=1048576,n)}function o(t){return e&&t.alternate===null&&(t.flags|=67108866),t}function s(e,t,n,r){return t===null||t.tag!==6?(t=hc(n,e.mode,r),t.return=e,t._debugOwner=e,t._debugTask=e._debugTask,t._debugInfo=Y,t):(t=i(t,n),t.return=e,t._debugInfo=Y,t)}function l(e,t,n,r){var a=n.type;return a===Nc?(t=d(e,t,n.props.children,r,n.key),Fn(n,t,e),t):t!==null&&(t.elementType===a||ac(t,n)||typeof a==`object`&&a&&a.$$typeof===Hc&&An(a)===t.type)?(t=i(t,n.props),Ln(t,n),t.return=e,t._debugOwner=n._owner,t._debugInfo=Y,t):(t=pc(n,e.mode,r),Ln(t,n),t.return=e,t._debugInfo=Y,t)}function u(e,t,n,r){return t===null||t.tag!==4||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?(t=_c(n,e.mode,r),t.return=e,t._debugInfo=Y,t):(t=i(t,n.children||[]),t.return=e,t._debugInfo=Y,t)}function d(e,t,n,r,a){return t===null||t.tag!==7?(t=mc(n,e.mode,r,a),t.return=e,t._debugOwner=e,t._debugTask=e._debugTask,t._debugInfo=Y,t):(t=i(t,n),t.return=e,t._debugInfo=Y,t)}function f(e,t,n){if(typeof t==`string`&&t!==``||typeof t==`number`||typeof t==`bigint`)return t=hc(``+t,e.mode,n),t.return=e,t._debugOwner=e,t._debugTask=e._debugTask,t._debugInfo=Y,t;if(typeof t==`object`&&t){switch(t.$$typeof){case jc:return n=pc(t,e.mode,n),Ln(n,t),n.return=e,e=Nn(t._debugInfo),n._debugInfo=Y,Y=e,n;case Mc:return t=_c(t,e.mode,n),t.return=e,t._debugInfo=Y,t;case Hc:var r=Nn(t._debugInfo);return t=An(t),e=f(e,t,n),Y=r,e}if(qc(t)||C(t))return n=mc(t,e.mode,n,null),n.return=e,n._debugOwner=e,n._debugTask=e._debugTask,e=Nn(t._debugInfo),n._debugInfo=Y,Y=e,n;if(typeof t.then==`function`)return r=Nn(t._debugInfo),e=f(e,In(t),n),Y=r,e;if(t.$$typeof===Lc)return f(e,Lt(e,t),n);zn(e,t)}return typeof t==`function`&&Vn(e,t),typeof t==`symbol`&&Un(e,t),null}function p(e,t,n,r){var i=t===null?null:t.key;if(typeof n==`string`&&n!==``||typeof n==`number`||typeof n==`bigint`)return i===null?s(e,t,``+n,r):null;if(typeof n==`object`&&n){switch(n.$$typeof){case jc:return n.key===i?(i=Nn(n._debugInfo),e=l(e,t,n,r),Y=i,e):null;case Mc:return n.key===i?u(e,t,n,r):null;case Hc:return i=Nn(n._debugInfo),n=An(n),e=p(e,t,n,r),Y=i,e}if(qc(n)||C(n))return i===null?(i=Nn(n._debugInfo),e=d(e,t,n,r,null),Y=i,e):null;if(typeof n.then==`function`)return i=Nn(n._debugInfo),e=p(e,t,In(n),r),Y=i,e;if(n.$$typeof===Lc)return p(e,t,Lt(e,n),r);zn(e,n)}return typeof n==`function`&&Vn(e,n),typeof n==`symbol`&&Un(e,n),null}function m(e,t,n,r,i){if(typeof r==`string`&&r!==``||typeof r==`number`||typeof r==`bigint`)return e=e.get(n)||null,s(t,e,``+r,i);if(typeof r==`object`&&r){switch(r.$$typeof){case jc:return n=e.get(r.key===null?n:r.key)||null,e=Nn(r._debugInfo),t=l(t,n,r,i),Y=e,t;case Mc:return e=e.get(r.key===null?n:r.key)||null,u(t,e,r,i);case Hc:var a=Nn(r._debugInfo);return r=An(r),t=m(e,t,n,r,i),Y=a,t}if(qc(r)||C(r))return n=e.get(n)||null,e=Nn(r._debugInfo),t=d(t,n,r,i,null),Y=e,t;if(typeof r.then==`function`)return a=Nn(r._debugInfo),t=m(e,t,n,In(r),i),Y=a,t;if(r.$$typeof===Lc)return m(e,t,n,Lt(t,r),i);zn(t,r)}return typeof r==`function`&&Vn(t,r),typeof r==`symbol`&&Un(t,r),null}function g(e,t,n,r){if(typeof n!=`object`||!n)return r;switch(n.$$typeof){case jc:case Mc:h(e,t,n);var i=n.key;if(typeof i!=`string`)break;if(r===null){r=new Set,r.add(i);break}if(!r.has(i)){r.add(i);break}L(t,function(){console.error("Encountered two children with the same key, `%s`. Keys should be unique so that components maintain their identity across updates. Non-unique keys may cause children to be duplicated and/or omitted — the behavior is unsupported and could change in a future version.",i)});break;case Hc:n=An(n),g(e,t,n,r)}return r}function _(i,o,s,c){for(var l=null,u=null,d=null,h=o,_=o=0,v=null;h!==null&&_<s.length;_++){h.index>_?(v=h,h=null):v=h.sibling;var y=p(i,h,s[_],c);if(y===null){h===null&&(h=v);break}l=g(i,y,s[_],l),e&&h&&y.alternate===null&&t(i,h),o=a(y,o,_),d===null?u=y:d.sibling=y,d=y,h=v}if(_===s.length)return n(i,h),Pf&&Be(i,_),u;if(h===null){for(;_<s.length;_++)h=f(i,s[_],c),h!==null&&(l=g(i,h,s[_],l),o=a(h,o,_),d===null?u=h:d.sibling=h,d=h);return Pf&&Be(i,_),u}for(h=r(h);_<s.length;_++)v=m(h,i,_,s[_],c),v!==null&&(l=g(i,v,s[_],l),e&&v.alternate!==null&&h.delete(v.key===null?_:v.key),o=a(v,o,_),d===null?u=v:d.sibling=v,d=v);return e&&h.forEach(function(e){return t(i,e)}),Pf&&Be(i,_),u}function v(i,o,s,c){if(s==null)throw Error(`An iterable object provided no iterator.`);for(var l=null,u=null,d=o,h=o=0,_=null,v=null,y=s.next();d!==null&&!y.done;h++,y=s.next()){d.index>h?(_=d,d=null):_=d.sibling;var b=p(i,d,y.value,c);if(b===null){d===null&&(d=_);break}v=g(i,b,y.value,v),e&&d&&b.alternate===null&&t(i,d),o=a(b,o,h),u===null?l=b:u.sibling=b,u=b,d=_}if(y.done)return n(i,d),Pf&&Be(i,h),l;if(d===null){for(;!y.done;h++,y=s.next())d=f(i,y.value,c),d!==null&&(v=g(i,d,y.value,v),o=a(d,o,h),u===null?l=d:u.sibling=d,u=d);return Pf&&Be(i,h),l}for(d=r(d);!y.done;h++,y=s.next())_=m(d,i,h,y.value,c),_!==null&&(v=g(i,_,y.value,v),e&&_.alternate!==null&&d.delete(_.key===null?h:_.key),o=a(_,o,h),u===null?l=_:u.sibling=_,u=_);return e&&d.forEach(function(e){return t(i,e)}),Pf&&Be(i,h),l}function y(e,r,a,s){if(typeof a==`object`&&a&&a.type===Nc&&a.key===null&&(Fn(a,null,e),a=a.props.children),typeof a==`object`&&a){switch(a.$$typeof){case jc:var c=Nn(a._debugInfo);a:{for(var l=a.key;r!==null;){if(r.key===l){if(l=a.type,l===Nc){if(r.tag===7){n(e,r.sibling),s=i(r,a.props.children),s.return=e,s._debugOwner=a._owner,s._debugInfo=Y,Fn(a,s,e),e=s;break a}}else if(r.elementType===l||ac(r,a)||typeof l==`object`&&l&&l.$$typeof===Hc&&An(l)===r.type){n(e,r.sibling),s=i(r,a.props),Ln(s,a),s.return=e,s._debugOwner=a._owner,s._debugInfo=Y,e=s;break a}n(e,r);break}else t(e,r);r=r.sibling}a.type===Nc?(s=mc(a.props.children,e.mode,s,a.key),s.return=e,s._debugOwner=e,s._debugTask=e._debugTask,s._debugInfo=Y,Fn(a,s,e),e=s):(s=pc(a,e.mode,s),Ln(s,a),s.return=e,s._debugInfo=Y,e=s)}return e=o(e),Y=c,e;case Mc:a:{for(c=a,a=c.key;r!==null;){if(r.key===a)if(r.tag===4&&r.stateNode.containerInfo===c.containerInfo&&r.stateNode.implementation===c.implementation){n(e,r.sibling),s=i(r,c.children||[]),s.return=e,e=s;break a}else{n(e,r);break}else t(e,r);r=r.sibling}s=_c(c,e.mode,s),s.return=e,e=s}return o(e);case Hc:return c=Nn(a._debugInfo),a=An(a),e=y(e,r,a,s),Y=c,e}if(qc(a))return c=Nn(a._debugInfo),e=_(e,r,a,s),Y=c,e;if(C(a)){if(c=Nn(a._debugInfo),l=C(a),typeof l!=`function`)throw Error(`An object is not an iterable. This error is likely caused by a bug in React. Please file an issue.`);var u=l.call(a);return u===a?(e.tag!==0||Object.prototype.toString.call(e.type)!==`[object GeneratorFunction]`||Object.prototype.toString.call(u)!==`[object Generator]`)&&(jm||console.error("Using Iterators as children is unsupported and will likely yield unexpected results because enumerating a generator mutates it. You may convert it to an array with `Array.from()` or the `[...spread]` operator before rendering. You can also use an Iterable that can iterate multiple times over the same items."),jm=!0):a.entries!==l||Am||(console.error(`Using Maps as children is not supported. Use an array of keyed ReactElements instead.`),Am=!0),e=v(e,r,u,s),Y=c,e}if(typeof a.then==`function`)return c=Nn(a._debugInfo),e=y(e,r,In(a),s),Y=c,e;if(a.$$typeof===Lc)return y(e,r,Lt(e,a),s);zn(e,a)}return typeof a==`string`&&a!==``||typeof a==`number`||typeof a==`bigint`?(c=``+a,r!==null&&r.tag===6?(n(e,r.sibling),s=i(r,c),s.return=e,e=s):(n(e,r),s=hc(c,e.mode,s),s.return=e,s._debugOwner=e,s._debugTask=e._debugTask,s._debugInfo=Y,e=s),o(e)):(typeof a==`function`&&Vn(e,a),typeof a==`symbol`&&Un(e,a),n(e,r))}return function(e,t,n,r){var i=Y;Y=null;try{km=0;var a=y(e,t,n,r);return Om=null,a}catch(t){if(t===Sm||t===wm)throw t;var o=c(29,t,null,e.mode);o.lanes=r,o.return=e;var s=o._debugInfo=Y;if(o._debugOwner=e._debugOwner,o._debugTask=e._debugTask,s!=null){for(var l=s.length-1;0<=l;l--)if(typeof s[l].stack==`string`){o._debugOwner=s[l],o._debugTask=s[l].debugTask;break}}return o}finally{Y=i}}}function Gn(e,t){var n=qc(e);return e=!n&&typeof C(e)==`function`,n||e?(n=n?`array`:`iterable`,console.error(`A nested %s was passed to row #%s in <SuspenseList />. Wrap it in an additional SuspenseList to configure its revealOrder: <SuspenseList revealOrder=...> ... <SuspenseList revealOrder=...>{%s}</SuspenseList> ... </SuspenseList>`,n,t,n),!1):!0}function Kn(){for(var e=Bm,t=Vm=Bm=0;t<e;){var n=zm[t];zm[t++]=null;var r=zm[t];zm[t++]=null;var i=zm[t];zm[t++]=null;var a=zm[t];if(zm[t++]=null,r!==null&&i!==null){var o=r.pending;o===null?i.next=i:(i.next=o.next,o.next=i),r.pending=i}a!==0&&Xn(n,i,a)}}function qn(e,t,n,r){zm[Bm++]=e,zm[Bm++]=t,zm[Bm++]=n,zm[Bm++]=r,Vm|=r,e.lanes|=r,e=e.alternate,e!==null&&(e.lanes|=r)}function Jn(e,t,n,r){return qn(e,t,n,r),Zn(e)}function Yn(e,t){return qn(e,null,null,t),Zn(e)}function Xn(e,t,n){e.lanes|=n;var r=e.alternate;r!==null&&(r.lanes|=n);for(var i=!1,a=e.return;a!==null;)a.childLanes|=n,r=a.alternate,r!==null&&(r.childLanes|=n),a.tag===22&&(e=a.stateNode,e===null||e._visibility&Lm||(i=!0)),e=a,a=a.return;return e.tag===3?(a=e.stateNode,i&&t!==null&&(i=31-xd(n),e=a.hiddenUpdates,r=e[i],r===null?e[i]=[t]:r.push(t),t.lane=n|536870912),a):null}function Zn(e){if(V_>B_)throw K_=V_=0,q_=H_=null,Error(`Maximum update depth exceeded. This can happen when a component repeatedly calls setState inside componentWillUpdate or componentDidUpdate. React limits the number of nested updates to prevent infinite loops.`);K_>G_&&(K_=0,q_=null,console.error(`Maximum update depth exceeded. This can happen when a component calls setState inside useEffect, but useEffect either doesn't have a dependency array, or one of the dependencies changes on every render.`)),e.alternate===null&&e.flags&4098&&$s(e);for(var t=e,n=t.return;n!==null;)t.alternate===null&&t.flags&4098&&$s(e),t=n,n=t.return;return t.tag===3?t.stateNode:null}function Qn(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function $n(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 er(e){return{lane:e,tag:Hm,payload:null,callback:null,next:null}}function tr(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,Jm===r&&!qm){var i=T(e);console.error(`An update (setState, replaceState, or forceUpdate) was scheduled from inside an update function. Update functions should be pure, with zero side-effects. Consider using componentDidUpdate or a callback.
|
|
187
|
+
<%s>%s</%s>`,n,t,n))}function Un(e,t){var n=Pn();n===null?Hn(e,t):n.run(Hn.bind(null,e,t))}function Wn(e){function t(t,n){if(e){var r=t.deletions;r===null?(t.deletions=[n],t.flags|=16):r.push(n)}}function n(n,r){if(!e)return null;for(;r!==null;)t(n,r),r=r.sibling;return null}function r(e){for(var t=new Map;e!==null;)e.key===null?t.set(e.index,e):t.set(e.key,e),e=e.sibling;return t}function i(e,t){return e=lc(e,t),e.index=0,e.sibling=null,e}function a(t,n,r){return t.index=r,e?(r=t.alternate,r===null?(t.flags|=67108866,n):(r=r.index,r<n?(t.flags|=67108866,n):r)):(t.flags|=1048576,n)}function o(t){return e&&t.alternate===null&&(t.flags|=67108866),t}function s(e,t,n,r){return t===null||t.tag!==6?(t=mc(n,e.mode,r),t.return=e,t._debugOwner=e,t._debugTask=e._debugTask,t._debugInfo=Y,t):(t=i(t,n),t.return=e,t._debugInfo=Y,t)}function l(e,t,n,r){var a=n.type;return a===Mc?(t=d(e,t,n.props.children,r,n.key),Fn(n,t,e),t):t!==null&&(t.elementType===a||ic(t,n)||typeof a==`object`&&a&&a.$$typeof===Vc&&An(a)===t.type)?(t=i(t,n.props),Ln(t,n),t.return=e,t._debugOwner=n._owner,t._debugInfo=Y,t):(t=fc(n,e.mode,r),Ln(t,n),t.return=e,t._debugInfo=Y,t)}function u(e,t,n,r){return t===null||t.tag!==4||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?(t=gc(n,e.mode,r),t.return=e,t._debugInfo=Y,t):(t=i(t,n.children||[]),t.return=e,t._debugInfo=Y,t)}function d(e,t,n,r,a){return t===null||t.tag!==7?(t=pc(n,e.mode,r,a),t.return=e,t._debugOwner=e,t._debugTask=e._debugTask,t._debugInfo=Y,t):(t=i(t,n),t.return=e,t._debugInfo=Y,t)}function f(e,t,n){if(typeof t==`string`&&t!==``||typeof t==`number`||typeof t==`bigint`)return t=mc(``+t,e.mode,n),t.return=e,t._debugOwner=e,t._debugTask=e._debugTask,t._debugInfo=Y,t;if(typeof t==`object`&&t){switch(t.$$typeof){case Ac:return n=fc(t,e.mode,n),Ln(n,t),n.return=e,e=Nn(t._debugInfo),n._debugInfo=Y,Y=e,n;case jc:return t=gc(t,e.mode,n),t.return=e,t._debugInfo=Y,t;case Vc:var r=Nn(t._debugInfo);return t=An(t),e=f(e,t,n),Y=r,e}if(Kc(t)||C(t))return n=pc(t,e.mode,n,null),n.return=e,n._debugOwner=e,n._debugTask=e._debugTask,e=Nn(t._debugInfo),n._debugInfo=Y,Y=e,n;if(typeof t.then==`function`)return r=Nn(t._debugInfo),e=f(e,In(t),n),Y=r,e;if(t.$$typeof===Ic)return f(e,Lt(e,t),n);zn(e,t)}return typeof t==`function`&&Vn(e,t),typeof t==`symbol`&&Un(e,t),null}function p(e,t,n,r){var i=t===null?null:t.key;if(typeof n==`string`&&n!==``||typeof n==`number`||typeof n==`bigint`)return i===null?s(e,t,``+n,r):null;if(typeof n==`object`&&n){switch(n.$$typeof){case Ac:return n.key===i?(i=Nn(n._debugInfo),e=l(e,t,n,r),Y=i,e):null;case jc:return n.key===i?u(e,t,n,r):null;case Vc:return i=Nn(n._debugInfo),n=An(n),e=p(e,t,n,r),Y=i,e}if(Kc(n)||C(n))return i===null?(i=Nn(n._debugInfo),e=d(e,t,n,r,null),Y=i,e):null;if(typeof n.then==`function`)return i=Nn(n._debugInfo),e=p(e,t,In(n),r),Y=i,e;if(n.$$typeof===Ic)return p(e,t,Lt(e,n),r);zn(e,n)}return typeof n==`function`&&Vn(e,n),typeof n==`symbol`&&Un(e,n),null}function m(e,t,n,r,i){if(typeof r==`string`&&r!==``||typeof r==`number`||typeof r==`bigint`)return e=e.get(n)||null,s(t,e,``+r,i);if(typeof r==`object`&&r){switch(r.$$typeof){case Ac:return n=e.get(r.key===null?n:r.key)||null,e=Nn(r._debugInfo),t=l(t,n,r,i),Y=e,t;case jc:return e=e.get(r.key===null?n:r.key)||null,u(t,e,r,i);case Vc:var a=Nn(r._debugInfo);return r=An(r),t=m(e,t,n,r,i),Y=a,t}if(Kc(r)||C(r))return n=e.get(n)||null,e=Nn(r._debugInfo),t=d(t,n,r,i,null),Y=e,t;if(typeof r.then==`function`)return a=Nn(r._debugInfo),t=m(e,t,n,In(r),i),Y=a,t;if(r.$$typeof===Ic)return m(e,t,n,Lt(t,r),i);zn(t,r)}return typeof r==`function`&&Vn(t,r),typeof r==`symbol`&&Un(t,r),null}function g(e,t,n,r){if(typeof n!=`object`||!n)return r;switch(n.$$typeof){case Ac:case jc:h(e,t,n);var i=n.key;if(typeof i!=`string`)break;if(r===null){r=new Set,r.add(i);break}if(!r.has(i)){r.add(i);break}L(t,function(){console.error("Encountered two children with the same key, `%s`. Keys should be unique so that components maintain their identity across updates. Non-unique keys may cause children to be duplicated and/or omitted — the behavior is unsupported and could change in a future version.",i)});break;case Vc:n=An(n),g(e,t,n,r)}return r}function _(i,o,s,c){for(var l=null,u=null,d=null,h=o,_=o=0,v=null;h!==null&&_<s.length;_++){h.index>_?(v=h,h=null):v=h.sibling;var y=p(i,h,s[_],c);if(y===null){h===null&&(h=v);break}l=g(i,y,s[_],l),e&&h&&y.alternate===null&&t(i,h),o=a(y,o,_),d===null?u=y:d.sibling=y,d=y,h=v}if(_===s.length)return n(i,h),Pf&&Be(i,_),u;if(h===null){for(;_<s.length;_++)h=f(i,s[_],c),h!==null&&(l=g(i,h,s[_],l),o=a(h,o,_),d===null?u=h:d.sibling=h,d=h);return Pf&&Be(i,_),u}for(h=r(h);_<s.length;_++)v=m(h,i,_,s[_],c),v!==null&&(l=g(i,v,s[_],l),e&&v.alternate!==null&&h.delete(v.key===null?_:v.key),o=a(v,o,_),d===null?u=v:d.sibling=v,d=v);return e&&h.forEach(function(e){return t(i,e)}),Pf&&Be(i,_),u}function v(i,o,s,c){if(s==null)throw Error(`An iterable object provided no iterator.`);for(var l=null,u=null,d=o,h=o=0,_=null,v=null,y=s.next();d!==null&&!y.done;h++,y=s.next()){d.index>h?(_=d,d=null):_=d.sibling;var b=p(i,d,y.value,c);if(b===null){d===null&&(d=_);break}v=g(i,b,y.value,v),e&&d&&b.alternate===null&&t(i,d),o=a(b,o,h),u===null?l=b:u.sibling=b,u=b,d=_}if(y.done)return n(i,d),Pf&&Be(i,h),l;if(d===null){for(;!y.done;h++,y=s.next())d=f(i,y.value,c),d!==null&&(v=g(i,d,y.value,v),o=a(d,o,h),u===null?l=d:u.sibling=d,u=d);return Pf&&Be(i,h),l}for(d=r(d);!y.done;h++,y=s.next())_=m(d,i,h,y.value,c),_!==null&&(v=g(i,_,y.value,v),e&&_.alternate!==null&&d.delete(_.key===null?h:_.key),o=a(_,o,h),u===null?l=_:u.sibling=_,u=_);return e&&d.forEach(function(e){return t(i,e)}),Pf&&Be(i,h),l}function y(e,r,a,s){if(typeof a==`object`&&a&&a.type===Mc&&a.key===null&&(Fn(a,null,e),a=a.props.children),typeof a==`object`&&a){switch(a.$$typeof){case Ac:var c=Nn(a._debugInfo);a:{for(var l=a.key;r!==null;){if(r.key===l){if(l=a.type,l===Mc){if(r.tag===7){n(e,r.sibling),s=i(r,a.props.children),s.return=e,s._debugOwner=a._owner,s._debugInfo=Y,Fn(a,s,e),e=s;break a}}else if(r.elementType===l||ic(r,a)||typeof l==`object`&&l&&l.$$typeof===Vc&&An(l)===r.type){n(e,r.sibling),s=i(r,a.props),Ln(s,a),s.return=e,s._debugOwner=a._owner,s._debugInfo=Y,e=s;break a}n(e,r);break}else t(e,r);r=r.sibling}a.type===Mc?(s=pc(a.props.children,e.mode,s,a.key),s.return=e,s._debugOwner=e,s._debugTask=e._debugTask,s._debugInfo=Y,Fn(a,s,e),e=s):(s=fc(a,e.mode,s),Ln(s,a),s.return=e,s._debugInfo=Y,e=s)}return e=o(e),Y=c,e;case jc:a:{for(c=a,a=c.key;r!==null;){if(r.key===a)if(r.tag===4&&r.stateNode.containerInfo===c.containerInfo&&r.stateNode.implementation===c.implementation){n(e,r.sibling),s=i(r,c.children||[]),s.return=e,e=s;break a}else{n(e,r);break}else t(e,r);r=r.sibling}s=gc(c,e.mode,s),s.return=e,e=s}return o(e);case Vc:return c=Nn(a._debugInfo),a=An(a),e=y(e,r,a,s),Y=c,e}if(Kc(a))return c=Nn(a._debugInfo),e=_(e,r,a,s),Y=c,e;if(C(a)){if(c=Nn(a._debugInfo),l=C(a),typeof l!=`function`)throw Error(`An object is not an iterable. This error is likely caused by a bug in React. Please file an issue.`);var u=l.call(a);return u===a?(e.tag!==0||Object.prototype.toString.call(e.type)!==`[object GeneratorFunction]`||Object.prototype.toString.call(u)!==`[object Generator]`)&&(jm||console.error("Using Iterators as children is unsupported and will likely yield unexpected results because enumerating a generator mutates it. You may convert it to an array with `Array.from()` or the `[...spread]` operator before rendering. You can also use an Iterable that can iterate multiple times over the same items."),jm=!0):a.entries!==l||Am||(console.error(`Using Maps as children is not supported. Use an array of keyed ReactElements instead.`),Am=!0),e=v(e,r,u,s),Y=c,e}if(typeof a.then==`function`)return c=Nn(a._debugInfo),e=y(e,r,In(a),s),Y=c,e;if(a.$$typeof===Ic)return y(e,r,Lt(e,a),s);zn(e,a)}return typeof a==`string`&&a!==``||typeof a==`number`||typeof a==`bigint`?(c=``+a,r!==null&&r.tag===6?(n(e,r.sibling),s=i(r,c),s.return=e,e=s):(n(e,r),s=mc(c,e.mode,s),s.return=e,s._debugOwner=e,s._debugTask=e._debugTask,s._debugInfo=Y,e=s),o(e)):(typeof a==`function`&&Vn(e,a),typeof a==`symbol`&&Un(e,a),n(e,r))}return function(e,t,n,r){var i=Y;Y=null;try{km=0;var a=y(e,t,n,r);return Om=null,a}catch(t){if(t===Sm||t===wm)throw t;var o=c(29,t,null,e.mode);o.lanes=r,o.return=e;var s=o._debugInfo=Y;if(o._debugOwner=e._debugOwner,o._debugTask=e._debugTask,s!=null){for(var l=s.length-1;0<=l;l--)if(typeof s[l].stack==`string`){o._debugOwner=s[l],o._debugTask=s[l].debugTask;break}}return o}finally{Y=i}}}function Gn(e,t){var n=Kc(e);return e=!n&&typeof C(e)==`function`,n||e?(n=n?`array`:`iterable`,console.error(`A nested %s was passed to row #%s in <SuspenseList />. Wrap it in an additional SuspenseList to configure its revealOrder: <SuspenseList revealOrder=...> ... <SuspenseList revealOrder=...>{%s}</SuspenseList> ... </SuspenseList>`,n,t,n),!1):!0}function Kn(){for(var e=Bm,t=Vm=Bm=0;t<e;){var n=zm[t];zm[t++]=null;var r=zm[t];zm[t++]=null;var i=zm[t];zm[t++]=null;var a=zm[t];if(zm[t++]=null,r!==null&&i!==null){var o=r.pending;o===null?i.next=i:(i.next=o.next,o.next=i),r.pending=i}a!==0&&Xn(n,i,a)}}function qn(e,t,n,r){zm[Bm++]=e,zm[Bm++]=t,zm[Bm++]=n,zm[Bm++]=r,Vm|=r,e.lanes|=r,e=e.alternate,e!==null&&(e.lanes|=r)}function Jn(e,t,n,r){return qn(e,t,n,r),Zn(e)}function Yn(e,t){return qn(e,null,null,t),Zn(e)}function Xn(e,t,n){e.lanes|=n;var r=e.alternate;r!==null&&(r.lanes|=n);for(var i=!1,a=e.return;a!==null;)a.childLanes|=n,r=a.alternate,r!==null&&(r.childLanes|=n),a.tag===22&&(e=a.stateNode,e===null||e._visibility&Lm||(i=!0)),e=a,a=a.return;return e.tag===3?(a=e.stateNode,i&&t!==null&&(i=31-xd(n),e=a.hiddenUpdates,r=e[i],r===null?e[i]=[t]:r.push(t),t.lane=n|536870912),a):null}function Zn(e){if(V_>B_)throw K_=V_=0,q_=H_=null,Error(`Maximum update depth exceeded. This can happen when a component repeatedly calls setState inside componentWillUpdate or componentDidUpdate. React limits the number of nested updates to prevent infinite loops.`);K_>G_&&(K_=0,q_=null,console.error(`Maximum update depth exceeded. This can happen when a component calls setState inside useEffect, but useEffect either doesn't have a dependency array, or one of the dependencies changes on every render.`)),e.alternate===null&&e.flags&4098&&H(e);for(var t=e,n=t.return;n!==null;)t.alternate===null&&t.flags&4098&&H(e),t=n,n=t.return;return t.tag===3?t.stateNode:null}function Qn(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function $n(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 er(e){return{lane:e,tag:Hm,payload:null,callback:null,next:null}}function tr(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,Jm===r&&!qm){var i=T(e);console.error(`An update (setState, replaceState, or forceUpdate) was scheduled from inside an update function. Update functions should be pure, with zero side-effects. Consider using componentDidUpdate or a callback.
|
|
188
188
|
|
|
189
|
-
Please update the following component: %s`,i),qm=!0}return(Rg&kg)===Og?(qn(e,r,t,n),Zn(e)):(i=r.pending,i===null?t.next=t:(t.next=i.next,i.next=t),r.pending=t,t=Zn(e),Xn(e,null,n),t)}function nr(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,n&4194048)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,se(e,n)}}function rr(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var i=null,a=null;if(n=n.firstBaseUpdate,n!==null){do{var o={lane:n.lane,tag:n.tag,payload:n.payload,callback:null,next:null};a===null?i=a=o:a=a.next=o,n=n.next}while(n!==null);a===null?i=a=t:a=a.next=t}else i=a=t;n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:a,shared:r.shared,callbacks:r.callbacks},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function ir(){if(Ym){var e=Gp;if(e!==null)throw e}}function ar(e,t,n,r){Ym=!1;var i=e.updateQueue;Km=!1,Jm=i.shared;var a=i.firstBaseUpdate,o=i.lastBaseUpdate,s=i.shared.pending;if(s!==null){i.shared.pending=null;var c=s,l=c.next;c.next=null,o===null?a=l:o.next=l,o=c;var u=e.alternate;u!==null&&(u=u.updateQueue,s=u.lastBaseUpdate,s!==o&&(s===null?u.firstBaseUpdate=l:s.next=l,u.lastBaseUpdate=c))}if(a!==null){var d=i.baseState;o=0,u=l=c=null,s=a;do{var f=s.lane&-536870913,p=f!==s.lane;if(p?($&f)===f:(r&f)===f){f!==0&&f===Wp&&(Ym=!0),u!==null&&(u=u.next={lane:0,tag:s.tag,payload:s.payload,callback:null,next:null});a:{f=e;var m=s,h=t,g=n;switch(m.tag){case Um:if(m=m.payload,typeof m==`function`){Kf=!0;var _=m.call(g,d,h);if(f.mode&8){pe(!0);try{m.call(g,d,h)}finally{pe(!1)}}Kf=!1,d=_;break a}d=m;break a;case Gm:f.flags=f.flags&-65537|128;case Hm:if(_=m.payload,typeof _==`function`){if(Kf=!0,m=_.call(g,d,h),f.mode&8){pe(!0);try{_.call(g,d,h)}finally{pe(!1)}}Kf=!1}else m=_;if(m==null)break a;d=
|
|
189
|
+
Please update the following component: %s`,i),qm=!0}return(Rg&kg)===Og?(qn(e,r,t,n),Zn(e)):(i=r.pending,i===null?t.next=t:(t.next=i.next,i.next=t),r.pending=t,t=Zn(e),Xn(e,null,n),t)}function nr(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,n&4194048)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,se(e,n)}}function rr(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var i=null,a=null;if(n=n.firstBaseUpdate,n!==null){do{var o={lane:n.lane,tag:n.tag,payload:n.payload,callback:null,next:null};a===null?i=a=o:a=a.next=o,n=n.next}while(n!==null);a===null?i=a=t:a=a.next=t}else i=a=t;n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:a,shared:r.shared,callbacks:r.callbacks},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function ir(){if(Ym){var e=Gp;if(e!==null)throw e}}function ar(e,t,n,r){Ym=!1;var i=e.updateQueue;Km=!1,Jm=i.shared;var a=i.firstBaseUpdate,o=i.lastBaseUpdate,s=i.shared.pending;if(s!==null){i.shared.pending=null;var c=s,l=c.next;c.next=null,o===null?a=l:o.next=l,o=c;var u=e.alternate;u!==null&&(u=u.updateQueue,s=u.lastBaseUpdate,s!==o&&(s===null?u.firstBaseUpdate=l:s.next=l,u.lastBaseUpdate=c))}if(a!==null){var d=i.baseState;o=0,u=l=c=null,s=a;do{var f=s.lane&-536870913,p=f!==s.lane;if(p?($&f)===f:(r&f)===f){f!==0&&f===Wp&&(Ym=!0),u!==null&&(u=u.next={lane:0,tag:s.tag,payload:s.payload,callback:null,next:null});a:{f=e;var m=s,h=t,g=n;switch(m.tag){case Um:if(m=m.payload,typeof m==`function`){Kf=!0;var _=m.call(g,d,h);if(f.mode&8){pe(!0);try{m.call(g,d,h)}finally{pe(!1)}}Kf=!1,d=_;break a}d=m;break a;case Gm:f.flags=f.flags&-65537|128;case Hm:if(_=m.payload,typeof _==`function`){if(Kf=!0,m=_.call(g,d,h),f.mode&8){pe(!0);try{_.call(g,d,h)}finally{pe(!1)}}Kf=!1}else m=_;if(m==null)break a;d=Oc({},d,m);break a;case Wm:Km=!0}}f=s.callback,f!==null&&(e.flags|=64,p&&(e.flags|=8192),p=i.callbacks,p===null?i.callbacks=[f]:p.push(f))}else p={lane:f,tag:s.tag,payload:s.payload,callback:s.callback,next:null},u===null?(l=u=p,c=d):u=u.next=p,o|=f;if(s=s.next,s===null){if(s=i.shared.pending,s===null)break;p=s,s=p.next,p.next=null,i.lastBaseUpdate=p,i.shared.pending=null}}while(1);u===null&&(c=d),i.baseState=c,i.firstBaseUpdate=l,i.lastBaseUpdate=u,a===null&&(i.shared.lanes=0),r_|=o,e.lanes=o,e.memoizedState=d}Jm=null}function or(e,t){if(typeof e!=`function`)throw Error(`Invalid argument passed as callback. Expected a function. Instead received: `+e);e.call(t)}function sr(e,t){var n=e.shared.hiddenCallbacks;if(n!==null)for(e.shared.hiddenCallbacks=null,e=0;e<n.length;e++)or(n[e],t)}function cr(e,t){var n=e.callbacks;if(n!==null)for(e.callbacks=null,e=0;e<n.length;e++)or(n[e],t)}function lr(e,t){var n=t_;k(Zm,n,e),k(Xm,t,e),t_=n|t.baseLanes}function ur(e){k(Zm,t_,e),k(Xm,Xm.current,e)}function dr(e){t_=Zm.current,D(Xm,e),D(Zm,e)}function fr(e){var t=e.alternate;k(nh,nh.current&eh,e),k(Qm,e,e),$m===null&&(t===null||Xm.current!==null||t.memoizedState!==null)&&($m=e)}function pr(e){k(nh,nh.current,e),k(Qm,e,e),$m===null&&($m=e)}function mr(e){e.tag===22?(k(nh,nh.current,e),k(Qm,e,e),$m===null&&($m=e)):hr(e)}function hr(e){k(nh,nh.current,e),k(Qm,Qm.current,e)}function gr(e){D(Qm,e),$m===e&&($m=null),D(nh,e)}function _r(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||fu(n)||pu(n)))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)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}function R(){var e=Z;wh===null?wh=[e]:wh.push(e)}function z(){var e=Z;if(wh!==null&&(Th++,wh[Th]!==e)){var t=T(X);if(!lh.has(t)&&(lh.add(t),wh!==null)){for(var n=``,r=0;r<=Th;r++){var i=wh[r],a=r===Th?e:i;for(i=r+1+`. `+i;30>i.length;)i+=` `;i+=a+`
|
|
190
190
|
`,n+=i}console.error(`React has detected a change in the order of Hooks called by %s. This will lead to bugs and errors if not fixed. For more information, read the Rules of Hooks: https://react.dev/link/rules-of-hooks
|
|
191
191
|
|
|
192
192
|
Previous render Next render
|
|
193
193
|
------------------------------------------------------
|
|
194
194
|
%s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
195
|
-
`,t,n)}}}function vr(e){e==null||
|
|
195
|
+
`,t,n)}}}function vr(e){e==null||Kc(e)||console.error("%s received a final argument that is not an array (instead, received `%s`). When specified, the final argument must be an array.",Z,typeof e)}function yr(){var e=T(X);fh.has(e)||(fh.add(e),console.error(`ReactDOM.useFormState has been renamed to React.useActionState. Please update %s to use React.useActionState.`,e))}function br(){throw Error(`Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
|
|
196
196
|
1. You might have mismatching versions of React and the renderer (such as React DOM)
|
|
197
197
|
2. You might be breaking the Rules of Hooks
|
|
198
198
|
3. You might have more than one copy of React in the same app
|
|
199
199
|
See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.`)}function xr(e,t){if(Eh)return!1;if(t===null)return console.error(`%s received a final argument during this render, but not during the previous render. Even though the final argument is optional, its type cannot change between renders.`,Z),!1;e.length!==t.length&&console.error(`The final argument passed to %s changed size between renders. The order and size of this array must remain constant.
|
|
200
200
|
|
|
201
201
|
Previous: %s
|
|
202
|
-
Incoming: %s`,Z,`[`+t.join(`, `)+`]`,`[`+e.join(`, `)+`]`);for(var n=0;n<t.length&&n<e.length;n++)if(!Kd(e[n],t[n]))return!1;return!0}function Sr(e,t,n,r,i,a){ph=a,X=t,wh=e===null?null:e._debugHookTypes,Th=-1,Eh=e!==null&&e.type!==t.type,(Object.prototype.toString.call(n)===`[object AsyncFunction]`||Object.prototype.toString.call(n)===`[object AsyncGeneratorFunction]`)&&(a=T(X),dh.has(a)||(dh.add(a),console.error("%s is an async Client Component. Only Server Components can be async at the moment. This error is often caused by accidentally adding `'use client'` to a module that was originally written for the server.",a===null?`An unknown Component`:`<`+a+`>`))),t.memoizedState=null,t.updateQueue=null,t.lanes=0,U.H=e!==null&&e.memoizedState!==null?Ah:wh===null?Oh:kh,vh=a=(t.mode&8)!==K;var o=am(n,r,i);if(vh=!1,_h&&(o=wr(t,n,r,i)),a){pe(!0);try{o=wr(t,n,r,i)}finally{pe(!1)}}return Cr(e,t),o}function Cr(e,t){t._debugHookTypes=wh,t.dependencies===null?xh!==null&&(t.dependencies={lanes:0,firstContext:null,_debugThenableState:xh}):t.dependencies._debugThenableState=xh,U.H=Dh;var n=mh!==null&&mh.next!==null;if(ph=0,wh=Z=hh=mh=X=null,Th=-1,e!==null&&(e.flags&65011712)!=(t.flags&65011712)&&console.error(`Internal React error: Expected static flag was missing. Please notify the React team.`),gh=!1,bh=0,xh=null,n)throw Error(`Rendered fewer hooks than expected. This may be caused by an accidental early return statement.`);e===null||Xh||(e=e.dependencies,e!==null&&Pt(e)&&(Xh=!0)),Dm?(Dm=!1,e=!0):e=!1,e&&(t=T(t)||`Unknown`,uh.has(t)||dh.has(t)||(uh.add(t),console.error("`use` was called from inside a try/catch block. This is not allowed and can lead to unexpected behavior. To handle errors triggered by `use`, wrap your component in a error boundary.")))}function wr(e,t,n,r){X=e;var i=0;do{if(_h&&(xh=null),bh=0,_h=!1,i>=Ch)throw Error(`Too many re-renders. React limits the number of renders to prevent an infinite loop.`);if(i+=1,Eh=!1,hh=mh=null,e.updateQueue!=null){var a=e.updateQueue;a.lastEffect=null,a.events=null,a.stores=null,a.memoCache!=null&&(a.memoCache.index=0)}Th=-1,U.H=jh,a=am(t,n,r)}while(_h);return a}function Tr(){var e=U.H,t=e.useState()[0];return t=typeof t.then==`function`?Mr(t):t,e=e.useState()[0],(mh===null?null:mh.memoizedState)!==e&&(X.flags|=1024),t}function Er(){var e=yh!==0;return yh=0,e}function Dr(e,t,n){t.updateQueue=e.updateQueue,t.flags=(t.mode&16)===K?t.flags&-2053:t.flags&-402655237,e.lanes&=~n}function Or(e){if(gh){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}gh=!1}ph=0,wh=hh=mh=X=null,Th=-1,Z=null,_h=!1,bh=yh=0,xh=null}function kr(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return hh===null?X.memoizedState=hh=e:hh=hh.next=e,hh}function Ar(){if(mh===null){var e=X.alternate;e=e===null?null:e.memoizedState}else e=mh.next;var t=hh===null?X.memoizedState:hh.next;if(t!==null)hh=t,mh=e;else{if(e===null)throw X.alternate===null?Error(`Update hook called on initial render. This is likely a bug in React. Please file an issue.`):Error(`Rendered more hooks than during the previous render.`);mh=e,e={memoizedState:mh.memoizedState,baseState:mh.baseState,baseQueue:mh.baseQueue,queue:mh.queue,next:null},hh===null?X.memoizedState=hh=e:hh=hh.next=e}return hh}function jr(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Mr(e){var t=bh;return bh+=1,xh===null&&(xh=Dn()),e=kn(xh,e,t),t=X,(hh===null?t.memoizedState:hh.next)===null&&(t=t.alternate,U.H=t!==null&&t.memoizedState!==null?Ah:Oh),e}function Nr(e){if(typeof e==`object`&&e){if(typeof e.then==`function`)return Mr(e);if(e.$$typeof===Lc)return It(e)}throw Error(`An unsupported type was passed to use(): `+String(e))}function Pr(e){var t=null,n=X.updateQueue;if(n!==null&&(t=n.memoCache),t==null){var r=X.alternate;r!==null&&(r=r.updateQueue,r!==null&&(r=r.memoCache,r!=null&&(t={data:r.data.map(function(e){return e.slice()}),index:0})))}if(t??={data:[],index:0},n===null&&(n=jr(),X.updateQueue=n),n.memoCache=t,n=t.data[t.index],n===void 0||Eh)for(n=t.data[t.index]=Array(e),r=0;r<e;r++)n[r]=Wc;else n.length!==e&&console.error(`Expected a constant size argument for each invocation of useMemoCache. The previous cache was allocated with size %s but size %s was requested.`,n.length,e);return t.index++,n}function Fr(e,t){return typeof t==`function`?t(e):t}function Ir(e,t,n){var r=kr();if(n!==void 0){var i=n(t);if(vh){pe(!0);try{n(t)}finally{pe(!1)}}}else i=t;return r.memoizedState=r.baseState=i,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:i},r.queue=e,e=e.dispatch=Hi.bind(null,X,e),[r.memoizedState,e]}function Lr(e){return Rr(Ar(),mh,e)}function Rr(e,t,n){var r=e.queue;if(r===null)throw Error(`Should have a queue. You are likely calling Hooks conditionally, which is not allowed. (https://react.dev/link/invalid-hook-call)`);r.lastRenderedReducer=n;var i=e.baseQueue,a=r.pending;if(a!==null){if(i!==null){var o=i.next;i.next=a.next,a.next=o}t.baseQueue!==i&&console.error(`Internal error: Expected work-in-progress queue to be a clone. This is a bug in React.`),t.baseQueue=i=a,r.pending=null}if(a=e.baseState,i===null)e.memoizedState=a;else{t=i.next;var s=o=null,c=null,l=t,u=!1;do{var d=l.lane&-536870913;if(d===l.lane?(ph&d)===d:($&d)===d){var f=l.revertLane;if(f===0)c!==null&&(c=c.next={lane:0,revertLane:0,gesture:null,action:l.action,hasEagerState:l.hasEagerState,eagerState:l.eagerState,next:null}),d===Wp&&(u=!0);else if((ph&f)===f){l=l.next,f===Wp&&(u=!0);continue}else d={lane:0,revertLane:l.revertLane,gesture:null,action:l.action,hasEagerState:l.hasEagerState,eagerState:l.eagerState,next:null},c===null?(s=c=d,o=a):c=c.next=d,X.lanes|=f,r_|=f;d=l.action,vh&&n(a,d),a=l.hasEagerState?l.eagerState:n(a,d)}else f={lane:d,revertLane:l.revertLane,gesture:l.gesture,action:l.action,hasEagerState:l.hasEagerState,eagerState:l.eagerState,next:null},c===null?(s=c=f,o=a):c=c.next=f,X.lanes|=d,r_|=d;l=l.next}while(l!==null&&l!==t);if(c===null?o=a:c.next=s,!Kd(a,e.memoizedState)&&(Xh=!0,u&&(n=Gp,n!==null)))throw n;e.memoizedState=a,e.baseState=o,e.baseQueue=c,r.lastRenderedState=a}return i===null&&(r.lanes=0),[e.memoizedState,r.dispatch]}function zr(e){var t=Ar(),n=t.queue;if(n===null)throw Error(`Should have a queue. You are likely calling Hooks conditionally, which is not allowed. (https://react.dev/link/invalid-hook-call)`);n.lastRenderedReducer=e;var r=n.dispatch,i=n.pending,a=t.memoizedState;if(i!==null){n.pending=null;var o=i=i.next;do a=e(a,o.action),o=o.next;while(o!==i);Kd(a,t.memoizedState)||(Xh=!0),t.memoizedState=a,t.baseQueue===null&&(t.baseState=a),n.lastRenderedState=a}return[a,r]}function Br(e,t,n){var r=X,i=kr();if(Pf){if(n===void 0)throw Error(`Missing getServerSnapshot, which is required for server-rendered content. Will revert to client rendering.`);var a=n();ch||a===n()||(console.error(`The result of getServerSnapshot should be cached to avoid an infinite loop`),ch=!0)}else{if(a=t(),ch||(n=t(),Kd(a,n)||(console.error(`The result of getSnapshot should be cached to avoid an infinite loop`),ch=!0)),zg===null)throw Error(`Expected a work-in-progress root. This is a bug in React. Please file an issue.`);$&127||Hr(r,t,a)}return i.memoizedState=a,n={value:a,getSnapshot:t},i.queue=n,hi(Wr.bind(null,r,n,e),[e]),r.flags|=2048,di(ih|sh,{destroy:void 0},Ur.bind(null,r,n,a,t),null),a}function Vr(e,t,n){var r=X,i=Ar(),a=Pf;if(a){if(n===void 0)throw Error(`Missing getServerSnapshot, which is required for server-rendered content. Will revert to client rendering.`);n=n()}else if(n=t(),!ch){var o=t();Kd(n,o)||(console.error(`The result of getSnapshot should be cached to avoid an infinite loop`),ch=!0)}if((o=!Kd((mh||i).memoizedState,n))&&(i.memoizedState=n,Xh=!0),i=i.queue,mi(2048,sh,Wr.bind(null,r,i,e),[e]),i.getSnapshot!==t||o||hh!==null&&hh.memoizedState.tag&ih){if(r.flags|=2048,di(ih|sh,{destroy:void 0},Ur.bind(null,r,i,n,t),null),zg===null)throw Error(`Expected a work-in-progress root. This is a bug in React. Please file an issue.`);a||ph&127||Hr(r,t,n)}return n}function Hr(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=X.updateQueue,t===null?(t=jr(),X.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function Ur(e,t,n,r){t.value=n,t.getSnapshot=r,Gr(t)&&Kr(e)}function Wr(e,t,n){return n(function(){Gr(t)&&(Ht(2,`updateSyncExternalStore()`,e),Kr(e))})}function Gr(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Kd(e,n)}catch{return!0}}function Kr(e){var t=Yn(e,2);t!==null&&ls(t,e,2)}function qr(e){var t=kr();if(typeof e==`function`){var n=e;if(e=n(),vh){pe(!0);try{n()}finally{pe(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Fr,lastRenderedState:e},t}function Jr(e){e=qr(e);var t=e.queue,n=Ui.bind(null,X,t);return t.dispatch=n,[e.memoizedState,n]}function Yr(e){var t=kr();t.memoizedState=t.baseState=e;var n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=n,t=Gi.bind(null,X,!0,n),n.dispatch=t,[e,t]}function Xr(e,t){return Zr(Ar(),mh,e,t)}function Zr(e,t,n,r){return e.baseState=n,Rr(e,mh,typeof r==`function`?r:Fr)}function Qr(e,t){var n=Ar();return mh===null?(n.baseState=e,[e,n.queue.dispatch]):Zr(n,mh,e,t)}function $r(e,t,n,r,i){if(Ki(e))throw Error(`Cannot update form state while rendering.`);if(e=t.action,e!==null){var a={payload:i,action:e,next:null,isTransition:!0,status:`pending`,value:null,reason:null,listeners:[],then:function(e){a.listeners.push(e)}};U.T===null?a.isTransition=!1:n(!0),r(a),n=t.pending,n===null?(a.next=t.pending=a,ei(t,a)):(a.next=n.next,t.pending=n.next=a)}}function ei(e,t){var n=t.action,r=t.payload,i=e.state;if(t.isTransition){var a=U.T,o={};o._updatedFibers=new Set,U.T=o;try{var s=n(i,r),c=U.S;c!==null&&c(o,s),ti(e,t,s)}catch(n){ri(e,t,n)}finally{a!==null&&o.types!==null&&(a.types!==null&&a.types!==o.types&&console.error(`We expected inner Transitions to have transferred the outer types set and that you cannot add to the outer Transition while inside the inner.This is a bug in React.`),a.types=o.types),U.T=a,a===null&&o._updatedFibers&&(e=o._updatedFibers.size,o._updatedFibers.clear(),10<e&&console.warn(`Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table.`))}}else try{o=n(i,r),ti(e,t,o)}catch(n){ri(e,t,n)}}function ti(e,t,n){typeof n==`object`&&n&&typeof n.then==`function`?(U.asyncTransitions++,n.then(Mi,Mi),n.then(function(n){ni(e,t,n)},function(n){return ri(e,t,n)}),t.isTransition||console.error("An async function with useActionState was called outside of a transition. This is likely not what you intended (for example, isPending will not update correctly). Either call the returned function inside startTransition, or pass it to an `action` or `formAction` prop.")):ni(e,t,n)}function ni(e,t,n){t.status=`fulfilled`,t.value=n,ii(t),e.state=n,t=e.pending,t!==null&&(n=t.next,n===t?e.pending=null:(n=n.next,t.next=n,ei(e,n)))}function ri(e,t,n){var r=e.pending;if(e.pending=null,r!==null){r=r.next;do t.status=`rejected`,t.reason=n,ii(t),t=t.next;while(t!==r)}e.action=null}function ii(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function ai(e,t){return t}function oi(e,t){if(Pf){var n=zg.formState;if(n!==null){a:{var r=X;if(Pf){if(Nf){var i=gu(Nf,Rf);if(i){Nf=vu(i),r=_u(i);break a}}yt(r)}r=!1}r&&(t=n[0])}}n=kr(),n.memoizedState=n.baseState=t,r={pending:null,lanes:0,dispatch:null,lastRenderedReducer:ai,lastRenderedState:t},n.queue=r,n=Ui.bind(null,X,r),r.dispatch=n,r=qr(!1);var a=Gi.bind(null,X,!1,r.queue);return r=kr(),i={state:t,dispatch:null,action:e,pending:null},r.queue=i,n=$r.bind(null,X,i,a,n),i.dispatch=n,r.memoizedState=e,[t,n,!1]}function si(e){return ci(Ar(),mh,e)}function ci(e,t,n){if(t=Rr(e,t,ai)[0],e=Lr(Fr)[0],typeof t==`object`&&t&&typeof t.then==`function`)try{var r=Mr(t)}catch(e){throw e===Sm?wm:e}else r=t;t=Ar();var i=t.queue,a=i.dispatch;return n!==t.memoizedState&&(X.flags|=2048,di(ih|sh,{destroy:void 0},li.bind(null,i,n),null)),[r,a,e]}function li(e,t){e.action=t}function ui(e){var t=Ar(),n=mh;if(n!==null)return ci(t,n,e);Ar(),t=t.memoizedState,n=Ar();var r=n.queue.dispatch;return n.memoizedState=e,[t,r,!1]}function di(e,t,n,r){return e={tag:e,create:n,deps:r,inst:t,next:null},t=X.updateQueue,t===null&&(t=jr(),X.updateQueue=t),n=t.lastEffect,n===null?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e),e}function fi(e){var t=kr();return e={current:e},t.memoizedState=e}function pi(e,t,n,r){var i=kr();X.flags|=e,i.memoizedState=di(ih|t,{destroy:void 0},n,r===void 0?null:r)}function mi(e,t,n,r){var i=Ar();r=r===void 0?null:r;var a=i.memoizedState.inst;mh!==null&&r!==null&&xr(r,mh.memoizedState.deps)?i.memoizedState=di(t,a,n,r):(X.flags|=e,i.memoizedState=di(ih|t,a,n,r))}function hi(e,t){(X.mode&16)===K?pi(8390656,sh,e,t):pi(276826112,sh,e,t)}function gi(e){X.flags|=4;var t=X.updateQueue;if(t===null)t=jr(),X.updateQueue=t,t.events=[e];else{var n=t.events;n===null?t.events=[e]:n.push(e)}}function _i(e){var t=kr(),n={impl:e};return t.memoizedState=n,function(){if((Rg&kg)!==Og)throw Error(`A function wrapped in useEffectEvent can't be called during rendering.`);return n.impl.apply(void 0,arguments)}}function vi(e){var t=Ar().memoizedState;return gi({ref:t,nextImpl:e}),function(){if((Rg&kg)!==Og)throw Error(`A function wrapped in useEffectEvent can't be called during rendering.`);return t.impl.apply(void 0,arguments)}}function yi(e,t){var n=4194308;return(X.mode&16)!==K&&(n|=134217728),pi(n,oh,e,t)}function bi(e,t){if(typeof t==`function`){e=e();var n=t(e);return function(){typeof n==`function`?n():t(null)}}if(t!=null)return t.hasOwnProperty(`current`)||console.error(`Expected useImperativeHandle() first argument to either be a ref callback or React.createRef() object. Instead received: %s.`,`an object with keys {`+Object.keys(t).join(`, `)+`}`),e=e(),t.current=e,function(){t.current=null}}function xi(e,t,n){typeof t!=`function`&&console.error(`Expected useImperativeHandle() second argument to be a function that creates a handle. Instead received: %s.`,t===null?`null`:typeof t),n=n==null?null:n.concat([e]);var r=4194308;(X.mode&16)!==K&&(r|=134217728),pi(r,oh,bi.bind(null,t,e),n)}function Si(e,t,n){typeof t!=`function`&&console.error(`Expected useImperativeHandle() second argument to be a function that creates a handle. Instead received: %s.`,t===null?`null`:typeof t),n=n==null?null:n.concat([e]),mi(4,oh,bi.bind(null,t,e),n)}function Ci(e,t){return kr().memoizedState=[e,t===void 0?null:t],e}function wi(e,t){var n=Ar();t=t===void 0?null:t;var r=n.memoizedState;return t!==null&&xr(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function Ti(e,t){var n=kr();t=t===void 0?null:t;var r=e();if(vh){pe(!0);try{e()}finally{pe(!1)}}return n.memoizedState=[r,t],r}function Ei(e,t){var n=Ar();t=t===void 0?null:t;var r=n.memoizedState;if(t!==null&&xr(t,r[1]))return r[0];if(r=e(),vh){pe(!0);try{e()}finally{pe(!1)}}return n.memoizedState=[r,t],r}function Di(e,t){return Ai(kr(),e,t)}function Oi(e,t){return ji(Ar(),mh.memoizedState,e,t)}function ki(e,t){var n=Ar();return mh===null?Ai(n,e,t):ji(n,mh.memoizedState,e,t)}function Ai(e,t,n){return n===void 0||ph&1073741824&&!($&261930)?e.memoizedState=t:(e.memoizedState=n,e=cs(),X.lanes|=e,r_|=e,n)}function ji(e,t,n,r){return Kd(n,t)?n:Xm.current===null?!(ph&42)||ph&1073741824&&!($&261930)?(Xh=!0,e.memoizedState=n):(e=cs(),X.lanes|=e,r_|=e,t):(e=Ai(e,n,r),Kd(e,t)||(Xh=!0),e)}function Mi(){U.asyncTransitions--}function Ni(e,t,n,r,i){var a=gl();hl(a!==0&&8>a?a:8);var o=U.T,s={};s._updatedFibers=new Set,U.T=s,Gi(e,!1,t,n);try{var c=i(),l=U.S;if(l!==null&&l(s,c),typeof c==`object`&&c&&typeof c.then==`function`){U.asyncTransitions++,c.then(Mi,Mi);var u=Sn(c,r);Wi(e,t,u,ss(e))}else Wi(e,t,r,ss(e))}catch(n){Wi(e,t,{then:function(){},status:`rejected`,reason:n},ss(e))}finally{hl(a),o!==null&&s.types!==null&&(o.types!==null&&o.types!==s.types&&console.error(`We expected inner Transitions to have transferred the outer types set and that you cannot add to the outer Transition while inside the inner.This is a bug in React.`),o.types=s.types),U.T=o,o===null&&s._updatedFibers&&(e=s._updatedFibers.size,s._updatedFibers.clear(),10<e&&console.warn(`Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table.`))}}function Pi(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:jl,baseState:jl,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Fr,lastRenderedState:jl},next:null};var n={};return t.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Fr,lastRenderedState:n},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function Fi(){var e=qr(!1);return e=Ni.bind(null,X,e.queue,!0,!1),kr().memoizedState=e,[!1,e]}function Ii(){var e=Lr(Fr)[0],t=Ar().memoizedState;return[typeof e==`boolean`?e:Mr(e),t]}function Li(){var e=zr(Fr)[0],t=Ar().memoizedState;return[typeof e==`boolean`?e:Mr(e),t]}function Ri(){return It(Ml)}function zi(){var e=kr(),t=zg.identifierPrefix;if(Pf){var n=wf,r=Cf;n=(r&~(1<<32-xd(r)-1)).toString(32)+n,t=`_`+t+`R_`+n,n=yh++,0<n&&(t+=`H`+n.toString(32)),t+=`_`}else n=Sh++,t=`_`+t+`r_`+n.toString(32)+`_`;return e.memoizedState=t}function Bi(){return kr().memoizedState=Vi.bind(null,X)}function Vi(e,t){for(var n=e.return;n!==null;){switch(n.tag){case 24:case 3:var r=ss(n),i=er(r),a=tr(n,i,r);a!==null&&(Ht(r,`refresh()`,e),ls(a,n,r),nr(a,n,r)),e=zt(),t!=null&&a!==null&&console.error(`The seed argument is not enabled outside experimental channels.`),i.payload={cache:e};return}n=n.return}}function Hi(e,t,n){var r=arguments;typeof r[3]==`function`&&console.error(`State updates from the useState() and useReducer() Hooks don't support the second callback argument. To execute a side effect after rendering, declare it in the component body with useEffect().`),r=ss(e);var i={lane:r,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};Ki(e)?qi(t,i):(i=Jn(e,t,i,r),i!==null&&(Ht(r,`dispatch()`,e),ls(i,e,r),Ji(i,t,r)))}function Ui(e,t,n){var r=arguments;typeof r[3]==`function`&&console.error(`State updates from the useState() and useReducer() Hooks don't support the second callback argument. To execute a side effect after rendering, declare it in the component body with useEffect().`),r=ss(e),Wi(e,t,n,r)&&Ht(r,`setState()`,e)}function Wi(e,t,n,r){var i={lane:r,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};if(Ki(e))qi(t,i);else{var a=e.alternate;if(e.lanes===0&&(a===null||a.lanes===0)&&(a=t.lastRenderedReducer,a!==null)){var o=U.H;U.H=Nh;try{var s=t.lastRenderedState,c=a(s,n);if(i.hasEagerState=!0,i.eagerState=c,Kd(c,s))return qn(e,t,i,0),zg===null&&Kn(),!1}catch{}finally{U.H=o}}if(n=Jn(e,t,i,r),n!==null)return ls(n,e,r),Ji(n,t,r),!0}return!1}function Gi(e,t,n,r){if(U.T===null&&Wp===0&&console.error(`An optimistic state update occurred outside a transition or action. To fix, move the update to an action, or wrap with startTransition.`),r={lane:2,revertLane:yn(),gesture:null,action:r,hasEagerState:!1,eagerState:null,next:null},Ki(e)){if(t)throw Error(`Cannot update optimistic state while rendering.`);console.error(`Cannot call startTransition while rendering.`)}else t=Jn(e,n,r,2),t!==null&&(Ht(2,`setOptimistic()`,e),ls(t,e,2))}function Ki(e){var t=e.alternate;return e===X||t!==null&&t===X}function qi(e,t){_h=gh=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Ji(e,t,n){if(n&4194048){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,se(e,n)}}function Yi(e){if(e!==null&&typeof e!=`function`){var t=String(e);Gh.has(t)||(Gh.add(t),console.error("Expected the last optional `callback` argument to be a function. Instead received: %s.",e))}}function Xi(e,t,n,r){var i=e.memoizedState,a=n(r,i);if(e.mode&8){pe(!0);try{a=n(r,i)}finally{pe(!1)}}a===void 0&&(t=w(t)||`Component`,Vh.has(t)||(Vh.add(t),console.error(`%s.getDerivedStateFromProps(): A valid state object (or null) must be returned. You have returned undefined.`,t))),i=a==null?i:kc({},i,a),e.memoizedState=i,e.lanes===0&&(e.updateQueue.baseState=i)}function Zi(e,t,n,r,i,a,o){var s=e.stateNode;if(typeof s.shouldComponentUpdate==`function`){if(n=s.shouldComponentUpdate(r,a,o),e.mode&8){pe(!0);try{n=s.shouldComponentUpdate(r,a,o)}finally{pe(!1)}}return n===void 0&&console.error(`%s.shouldComponentUpdate(): Returned undefined instead of a boolean value. Make sure to return true or false.`,w(t)||`Component`),n}return t.prototype&&t.prototype.isPureReactComponent?!En(n,r)||!En(i,a):!0}function Qi(e,t,n,r){var i=t.state;typeof t.componentWillReceiveProps==`function`&&t.componentWillReceiveProps(n,r),typeof t.UNSAFE_componentWillReceiveProps==`function`&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==i&&(e=T(e)||`Component`,Ih.has(e)||(Ih.add(e),console.error(`%s.componentWillReceiveProps(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.`,e)),Kh.enqueueReplaceState(t,t.state,null))}function $i(e,t){var n=t;if(`ref`in t)for(var r in n={},t)r!==`ref`&&(n[r]=t[r]);if(e=e.defaultProps)for(var i in n===t&&(n=kc({},n)),e)n[i]===void 0&&(n[i]=e[i]);return n}function ea(e,t){try{qh=t.source?T(t.source):null,Jh=null;var n=t.value;if(U.actQueue!==null)U.thrownErrors.push(n);else{var r=e.onUncaughtError;r(n,{componentStack:t.stack})}}catch(e){setTimeout(function(){throw e})}}function ta(e,t,n){try{qh=n.source?T(n.source):null,Jh=T(t);var r=e.onCaughtError;r(n.value,{componentStack:n.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(e){setTimeout(function(){throw e})}}function na(e,t,n){return n=er(n),n.tag=Gm,n.payload={element:null},n.callback=function(){L(t.source,ea,e,t)},n}function ra(e){return e=er(e),e.tag=Gm,e}function ia(e,t,n,r){var i=n.type.getDerivedStateFromError;if(typeof i==`function`){var a=r.value;e.payload=function(){return i(a)},e.callback=function(){oc(n),L(r.source,ta,t,n,r)}}var o=n.stateNode;o!==null&&typeof o.componentDidCatch==`function`&&(e.callback=function(){oc(n),L(r.source,ta,t,n,r),typeof i!=`function`&&(v_===null?v_=new Set([this]):v_.add(this)),pm(this,r),typeof i==`function`||!(n.lanes&2)&&console.error(`%s: Error boundaries should implement getDerivedStateFromError(). In that method, return a state update to display an error message or fallback UI.`,T(n)||`Unknown`)})}function aa(e,t,n,r,i){if(n.flags|=32768,Vd&&ec(e,i),typeof r==`object`&&r&&typeof r.then==`function`){if(t=n.alternate,t!==null&&Nt(t,n,i,!0),Pf&&(Ff=!0),n=Qm.current,n!==null){switch(n.tag){case 31:case 13:return $m===null?ws():n.alternate===null&&n_===jg&&(n_=Pg),n.flags&=-257,n.flags|=65536,n.lanes=i,r===Tm?n.flags|=16384:(t=n.updateQueue,t===null?n.updateQueue=new Set([r]):t.add(r),Gs(e,r,i)),!1;case 22:return n.flags|=65536,r===Tm?n.flags|=16384:(t=n.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([r])},n.updateQueue=t):(n=t.retryQueue,n===null?t.retryQueue=new Set([r]):n.add(r)),Gs(e,r,i)),!1}throw Error(`Unexpected Suspense handler tag (`+n.tag+`). This is a bug in React.`)}return Gs(e,r,i),ws(),!1}if(Pf)return Ff=!0,t=Qm.current,t===null?(r!==zf&&Et(ze(Error(`There was an error while hydrating but React was able to recover by instead client rendering the entire root.`,{cause:r}),n)),e=e.current.alternate,e.flags|=65536,i&=-i,e.lanes|=i,r=ze(r,n),i=na(e.stateNode,r,i),rr(e,i),n_!==Fg&&(n_=Ng)):(!(t.flags&65536)&&(t.flags|=256),t.flags|=65536,t.lanes=i,r!==zf&&Et(ze(Error(`There was an error while hydrating but React was able to recover by instead client rendering from the nearest Suspense boundary.`,{cause:r}),n))),!1;var a=ze(Error(`There was an error during concurrent rendering but React was able to recover by instead synchronously rendering the entire root.`,{cause:r}),n);if(c_===null?c_=[a]:c_.push(a),n_!==Fg&&(n_=Ng),t===null)return!0;r=ze(r,n),n=t;do{switch(n.tag){case 3:return n.flags|=65536,e=i&-i,n.lanes|=e,e=na(n.stateNode,r,e),rr(n,e),!1;case 1:if(t=n.type,a=n.stateNode,!(n.flags&128)&&(typeof t.getDerivedStateFromError==`function`||a!==null&&typeof a.componentDidCatch==`function`&&(v_===null||!v_.has(a))))return n.flags|=65536,i&=-i,n.lanes|=i,i=ra(i),ia(i,e,n,r),rr(n,i),!1}n=n.return}while(n!==null);return!1}function oa(e,t,n,r){t.child=e===null?Im(t,null,n,r):Fm(t,e.child,n,r)}function sa(e,t,n,r,i){n=n.render;var a=t.ref;if(`ref`in r){var o={};for(var s in r)s!==`ref`&&(o[s]=r[s])}else o=r;return Ft(t),r=Sr(e,t,n,o,a,i),s=Er(),e!==null&&!Xh?(Dr(e,t,i),ja(e,t,i)):(Pf&&s&&I(t),t.flags|=1,oa(e,t,r,i),t.child)}function ca(e,t,n,r,i){if(e===null){var a=n.type;return typeof a==`function`&&!lc(a)&&a.defaultProps===void 0&&n.compare===null?(n=rc(a),t.tag=15,t.type=n,xa(t,a),la(e,t,n,r,i)):(e=fc(n.type,null,r,t,t.mode,i),e.ref=t.ref,e.return=t,t.child=e)}if(a=e.child,!B(e,i)){var o=a.memoizedProps;if(n=n.compare,n=n===null?En:n,n(o,r)&&e.ref===t.ref)return ja(e,t,i)}return t.flags|=1,e=uc(a,r),e.ref=t.ref,e.return=t,t.child=e}function la(e,t,n,r,i){if(e!==null){var a=e.memoizedProps;if(En(a,r)&&e.ref===t.ref&&t.type===e.type)if(Xh=!1,t.pendingProps=r=a,B(e,i))e.flags&131072&&(Xh=!0);else return t.lanes=e.lanes,ja(e,t,i)}return _a(e,t,n,r,i)}function ua(e,t,n,r){var i=r.children,a=e===null?null:e.memoizedState;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:Lm,_pendingMarkers:null,_retryCache:null,_transitions:null}),r.mode===`hidden`){if(t.flags&128){if(a=a===null?n:a.baseLanes|n,e!==null){for(r=t.child=e.child,i=0;r!==null;)i=i|r.lanes|r.childLanes,r=r.sibling;r=i&~a}else r=0,t.child=null;return fa(e,t,a,n,r)}if(n&536870912)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&wn(t,a===null?null:a.cachePool),a===null?ur(t):lr(t,a),mr(t);else return r=t.lanes=536870912,fa(e,t,a===null?n:a.baseLanes|n,n,r)}else a===null?(e!==null&&wn(t,null),ur(t),hr(t)):(wn(t,a.cachePool),lr(t,a),hr(t),t.memoizedState=null);return oa(e,t,i,n),t.child}function da(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:Lm,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function fa(e,t,n,r,i){var a=Cn();return a=a===null?null:{parent:ll?Xf._currentValue:Xf._currentValue2,pool:a},t.memoizedState={baseLanes:n,cachePool:a},e!==null&&wn(t,null),ur(t),mr(t),e!==null&&Nt(e,t,r,!0),t.childLanes=i,null}function pa(e,t){var n=t.hidden;return n!==void 0&&console.error(`<Activity> doesn't accept a hidden prop. Use mode="hidden" instead.
|
|
202
|
+
Incoming: %s`,Z,`[`+t.join(`, `)+`]`,`[`+e.join(`, `)+`]`);for(var n=0;n<t.length&&n<e.length;n++)if(!Kd(e[n],t[n]))return!1;return!0}function Sr(e,t,n,r,i,a){ph=a,X=t,wh=e===null?null:e._debugHookTypes,Th=-1,Eh=e!==null&&e.type!==t.type,(Object.prototype.toString.call(n)===`[object AsyncFunction]`||Object.prototype.toString.call(n)===`[object AsyncGeneratorFunction]`)&&(a=T(X),dh.has(a)||(dh.add(a),console.error("%s is an async Client Component. Only Server Components can be async at the moment. This error is often caused by accidentally adding `'use client'` to a module that was originally written for the server.",a===null?`An unknown Component`:`<`+a+`>`))),t.memoizedState=null,t.updateQueue=null,t.lanes=0,W.H=e!==null&&e.memoizedState!==null?Ah:wh===null?Oh:kh,vh=a=(t.mode&8)!==K;var o=am(n,r,i);if(vh=!1,_h&&(o=wr(t,n,r,i)),a){pe(!0);try{o=wr(t,n,r,i)}finally{pe(!1)}}return Cr(e,t),o}function Cr(e,t){t._debugHookTypes=wh,t.dependencies===null?xh!==null&&(t.dependencies={lanes:0,firstContext:null,_debugThenableState:xh}):t.dependencies._debugThenableState=xh,W.H=Dh;var n=mh!==null&&mh.next!==null;if(ph=0,wh=Z=hh=mh=X=null,Th=-1,e!==null&&(e.flags&65011712)!=(t.flags&65011712)&&console.error(`Internal React error: Expected static flag was missing. Please notify the React team.`),gh=!1,bh=0,xh=null,n)throw Error(`Rendered fewer hooks than expected. This may be caused by an accidental early return statement.`);e===null||Xh||(e=e.dependencies,e!==null&&Pt(e)&&(Xh=!0)),Dm?(Dm=!1,e=!0):e=!1,e&&(t=T(t)||`Unknown`,uh.has(t)||dh.has(t)||(uh.add(t),console.error("`use` was called from inside a try/catch block. This is not allowed and can lead to unexpected behavior. To handle errors triggered by `use`, wrap your component in a error boundary.")))}function wr(e,t,n,r){X=e;var i=0;do{if(_h&&(xh=null),bh=0,_h=!1,i>=Ch)throw Error(`Too many re-renders. React limits the number of renders to prevent an infinite loop.`);if(i+=1,Eh=!1,hh=mh=null,e.updateQueue!=null){var a=e.updateQueue;a.lastEffect=null,a.events=null,a.stores=null,a.memoCache!=null&&(a.memoCache.index=0)}Th=-1,W.H=jh,a=am(t,n,r)}while(_h);return a}function Tr(){var e=W.H,t=e.useState()[0];return t=typeof t.then==`function`?Mr(t):t,e=e.useState()[0],(mh===null?null:mh.memoizedState)!==e&&(X.flags|=1024),t}function Er(){var e=yh!==0;return yh=0,e}function Dr(e,t,n){t.updateQueue=e.updateQueue,t.flags=(t.mode&16)===K?t.flags&-2053:t.flags&-402655237,e.lanes&=~n}function Or(e){if(gh){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}gh=!1}ph=0,wh=hh=mh=X=null,Th=-1,Z=null,_h=!1,bh=yh=0,xh=null}function kr(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return hh===null?X.memoizedState=hh=e:hh=hh.next=e,hh}function Ar(){if(mh===null){var e=X.alternate;e=e===null?null:e.memoizedState}else e=mh.next;var t=hh===null?X.memoizedState:hh.next;if(t!==null)hh=t,mh=e;else{if(e===null)throw X.alternate===null?Error(`Update hook called on initial render. This is likely a bug in React. Please file an issue.`):Error(`Rendered more hooks than during the previous render.`);mh=e,e={memoizedState:mh.memoizedState,baseState:mh.baseState,baseQueue:mh.baseQueue,queue:mh.queue,next:null},hh===null?X.memoizedState=hh=e:hh=hh.next=e}return hh}function jr(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Mr(e){var t=bh;return bh+=1,xh===null&&(xh=Dn()),e=kn(xh,e,t),t=X,(hh===null?t.memoizedState:hh.next)===null&&(t=t.alternate,W.H=t!==null&&t.memoizedState!==null?Ah:Oh),e}function Nr(e){if(typeof e==`object`&&e){if(typeof e.then==`function`)return Mr(e);if(e.$$typeof===Ic)return It(e)}throw Error(`An unsupported type was passed to use(): `+String(e))}function Pr(e){var t=null,n=X.updateQueue;if(n!==null&&(t=n.memoCache),t==null){var r=X.alternate;r!==null&&(r=r.updateQueue,r!==null&&(r=r.memoCache,r!=null&&(t={data:r.data.map(function(e){return e.slice()}),index:0})))}if(t??={data:[],index:0},n===null&&(n=jr(),X.updateQueue=n),n.memoCache=t,n=t.data[t.index],n===void 0||Eh)for(n=t.data[t.index]=Array(e),r=0;r<e;r++)n[r]=Uc;else n.length!==e&&console.error(`Expected a constant size argument for each invocation of useMemoCache. The previous cache was allocated with size %s but size %s was requested.`,n.length,e);return t.index++,n}function Fr(e,t){return typeof t==`function`?t(e):t}function Ir(e,t,n){var r=kr();if(n!==void 0){var i=n(t);if(vh){pe(!0);try{n(t)}finally{pe(!1)}}}else i=t;return r.memoizedState=r.baseState=i,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:i},r.queue=e,e=e.dispatch=Hi.bind(null,X,e),[r.memoizedState,e]}function Lr(e){return Rr(Ar(),mh,e)}function Rr(e,t,n){var r=e.queue;if(r===null)throw Error(`Should have a queue. You are likely calling Hooks conditionally, which is not allowed. (https://react.dev/link/invalid-hook-call)`);r.lastRenderedReducer=n;var i=e.baseQueue,a=r.pending;if(a!==null){if(i!==null){var o=i.next;i.next=a.next,a.next=o}t.baseQueue!==i&&console.error(`Internal error: Expected work-in-progress queue to be a clone. This is a bug in React.`),t.baseQueue=i=a,r.pending=null}if(a=e.baseState,i===null)e.memoizedState=a;else{t=i.next;var s=o=null,c=null,l=t,u=!1;do{var d=l.lane&-536870913;if(d===l.lane?(ph&d)===d:($&d)===d){var f=l.revertLane;if(f===0)c!==null&&(c=c.next={lane:0,revertLane:0,gesture:null,action:l.action,hasEagerState:l.hasEagerState,eagerState:l.eagerState,next:null}),d===Wp&&(u=!0);else if((ph&f)===f){l=l.next,f===Wp&&(u=!0);continue}else d={lane:0,revertLane:l.revertLane,gesture:null,action:l.action,hasEagerState:l.hasEagerState,eagerState:l.eagerState,next:null},c===null?(s=c=d,o=a):c=c.next=d,X.lanes|=f,r_|=f;d=l.action,vh&&n(a,d),a=l.hasEagerState?l.eagerState:n(a,d)}else f={lane:d,revertLane:l.revertLane,gesture:l.gesture,action:l.action,hasEagerState:l.hasEagerState,eagerState:l.eagerState,next:null},c===null?(s=c=f,o=a):c=c.next=f,X.lanes|=d,r_|=d;l=l.next}while(l!==null&&l!==t);if(c===null?o=a:c.next=s,!Kd(a,e.memoizedState)&&(Xh=!0,u&&(n=Gp,n!==null)))throw n;e.memoizedState=a,e.baseState=o,e.baseQueue=c,r.lastRenderedState=a}return i===null&&(r.lanes=0),[e.memoizedState,r.dispatch]}function zr(e){var t=Ar(),n=t.queue;if(n===null)throw Error(`Should have a queue. You are likely calling Hooks conditionally, which is not allowed. (https://react.dev/link/invalid-hook-call)`);n.lastRenderedReducer=e;var r=n.dispatch,i=n.pending,a=t.memoizedState;if(i!==null){n.pending=null;var o=i=i.next;do a=e(a,o.action),o=o.next;while(o!==i);Kd(a,t.memoizedState)||(Xh=!0),t.memoizedState=a,t.baseQueue===null&&(t.baseState=a),n.lastRenderedState=a}return[a,r]}function Br(e,t,n){var r=X,i=kr();if(Pf){if(n===void 0)throw Error(`Missing getServerSnapshot, which is required for server-rendered content. Will revert to client rendering.`);var a=n();ch||a===n()||(console.error(`The result of getServerSnapshot should be cached to avoid an infinite loop`),ch=!0)}else{if(a=t(),ch||(n=t(),Kd(a,n)||(console.error(`The result of getSnapshot should be cached to avoid an infinite loop`),ch=!0)),zg===null)throw Error(`Expected a work-in-progress root. This is a bug in React. Please file an issue.`);$&127||Hr(r,t,a)}return i.memoizedState=a,n={value:a,getSnapshot:t},i.queue=n,hi(Wr.bind(null,r,n,e),[e]),r.flags|=2048,di(ih|sh,{destroy:void 0},Ur.bind(null,r,n,a,t),null),a}function Vr(e,t,n){var r=X,i=Ar(),a=Pf;if(a){if(n===void 0)throw Error(`Missing getServerSnapshot, which is required for server-rendered content. Will revert to client rendering.`);n=n()}else if(n=t(),!ch){var o=t();Kd(n,o)||(console.error(`The result of getSnapshot should be cached to avoid an infinite loop`),ch=!0)}if((o=!Kd((mh||i).memoizedState,n))&&(i.memoizedState=n,Xh=!0),i=i.queue,mi(2048,sh,Wr.bind(null,r,i,e),[e]),i.getSnapshot!==t||o||hh!==null&&hh.memoizedState.tag&ih){if(r.flags|=2048,di(ih|sh,{destroy:void 0},Ur.bind(null,r,i,n,t),null),zg===null)throw Error(`Expected a work-in-progress root. This is a bug in React. Please file an issue.`);a||ph&127||Hr(r,t,n)}return n}function Hr(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=X.updateQueue,t===null?(t=jr(),X.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function Ur(e,t,n,r){t.value=n,t.getSnapshot=r,Gr(t)&&Kr(e)}function Wr(e,t,n){return n(function(){Gr(t)&&(Ht(2,`updateSyncExternalStore()`,e),Kr(e))})}function Gr(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Kd(e,n)}catch{return!0}}function Kr(e){var t=Yn(e,2);t!==null&&ls(t,e,2)}function qr(e){var t=kr();if(typeof e==`function`){var n=e;if(e=n(),vh){pe(!0);try{n()}finally{pe(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Fr,lastRenderedState:e},t}function Jr(e){e=qr(e);var t=e.queue,n=Ui.bind(null,X,t);return t.dispatch=n,[e.memoizedState,n]}function Yr(e){var t=kr();t.memoizedState=t.baseState=e;var n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=n,t=Gi.bind(null,X,!0,n),n.dispatch=t,[e,t]}function Xr(e,t){return Zr(Ar(),mh,e,t)}function Zr(e,t,n,r){return e.baseState=n,Rr(e,mh,typeof r==`function`?r:Fr)}function Qr(e,t){var n=Ar();return mh===null?(n.baseState=e,[e,n.queue.dispatch]):Zr(n,mh,e,t)}function $r(e,t,n,r,i){if(Ki(e))throw Error(`Cannot update form state while rendering.`);if(e=t.action,e!==null){var a={payload:i,action:e,next:null,isTransition:!0,status:`pending`,value:null,reason:null,listeners:[],then:function(e){a.listeners.push(e)}};W.T===null?a.isTransition=!1:n(!0),r(a),n=t.pending,n===null?(a.next=t.pending=a,ei(t,a)):(a.next=n.next,t.pending=n.next=a)}}function ei(e,t){var n=t.action,r=t.payload,i=e.state;if(t.isTransition){var a=W.T,o={};o._updatedFibers=new Set,W.T=o;try{var s=n(i,r),c=W.S;c!==null&&c(o,s),ti(e,t,s)}catch(n){ri(e,t,n)}finally{a!==null&&o.types!==null&&(a.types!==null&&a.types!==o.types&&console.error(`We expected inner Transitions to have transferred the outer types set and that you cannot add to the outer Transition while inside the inner.This is a bug in React.`),a.types=o.types),W.T=a,a===null&&o._updatedFibers&&(e=o._updatedFibers.size,o._updatedFibers.clear(),10<e&&console.warn(`Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table.`))}}else try{o=n(i,r),ti(e,t,o)}catch(n){ri(e,t,n)}}function ti(e,t,n){typeof n==`object`&&n&&typeof n.then==`function`?(W.asyncTransitions++,n.then(Mi,Mi),n.then(function(n){ni(e,t,n)},function(n){return ri(e,t,n)}),t.isTransition||console.error("An async function with useActionState was called outside of a transition. This is likely not what you intended (for example, isPending will not update correctly). Either call the returned function inside startTransition, or pass it to an `action` or `formAction` prop.")):ni(e,t,n)}function ni(e,t,n){t.status=`fulfilled`,t.value=n,ii(t),e.state=n,t=e.pending,t!==null&&(n=t.next,n===t?e.pending=null:(n=n.next,t.next=n,ei(e,n)))}function ri(e,t,n){var r=e.pending;if(e.pending=null,r!==null){r=r.next;do t.status=`rejected`,t.reason=n,ii(t),t=t.next;while(t!==r)}e.action=null}function ii(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function ai(e,t){return t}function oi(e,t){if(Pf){var n=zg.formState;if(n!==null){a:{var r=X;if(Pf){if(Nf){var i=gu(Nf,Rf);if(i){Nf=vu(i),r=_u(i);break a}}yt(r)}r=!1}r&&(t=n[0])}}n=kr(),n.memoizedState=n.baseState=t,r={pending:null,lanes:0,dispatch:null,lastRenderedReducer:ai,lastRenderedState:t},n.queue=r,n=Ui.bind(null,X,r),r.dispatch=n,r=qr(!1);var a=Gi.bind(null,X,!1,r.queue);return r=kr(),i={state:t,dispatch:null,action:e,pending:null},r.queue=i,n=$r.bind(null,X,i,a,n),i.dispatch=n,r.memoizedState=e,[t,n,!1]}function si(e){return ci(Ar(),mh,e)}function ci(e,t,n){if(t=Rr(e,t,ai)[0],e=Lr(Fr)[0],typeof t==`object`&&t&&typeof t.then==`function`)try{var r=Mr(t)}catch(e){throw e===Sm?wm:e}else r=t;t=Ar();var i=t.queue,a=i.dispatch;return n!==t.memoizedState&&(X.flags|=2048,di(ih|sh,{destroy:void 0},li.bind(null,i,n),null)),[r,a,e]}function li(e,t){e.action=t}function ui(e){var t=Ar(),n=mh;if(n!==null)return ci(t,n,e);Ar(),t=t.memoizedState,n=Ar();var r=n.queue.dispatch;return n.memoizedState=e,[t,r,!1]}function di(e,t,n,r){return e={tag:e,create:n,deps:r,inst:t,next:null},t=X.updateQueue,t===null&&(t=jr(),X.updateQueue=t),n=t.lastEffect,n===null?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e),e}function fi(e){var t=kr();return e={current:e},t.memoizedState=e}function pi(e,t,n,r){var i=kr();X.flags|=e,i.memoizedState=di(ih|t,{destroy:void 0},n,r===void 0?null:r)}function mi(e,t,n,r){var i=Ar();r=r===void 0?null:r;var a=i.memoizedState.inst;mh!==null&&r!==null&&xr(r,mh.memoizedState.deps)?i.memoizedState=di(t,a,n,r):(X.flags|=e,i.memoizedState=di(ih|t,a,n,r))}function hi(e,t){(X.mode&16)===K?pi(8390656,sh,e,t):pi(276826112,sh,e,t)}function gi(e){X.flags|=4;var t=X.updateQueue;if(t===null)t=jr(),X.updateQueue=t,t.events=[e];else{var n=t.events;n===null?t.events=[e]:n.push(e)}}function _i(e){var t=kr(),n={impl:e};return t.memoizedState=n,function(){if((Rg&kg)!==Og)throw Error(`A function wrapped in useEffectEvent can't be called during rendering.`);return n.impl.apply(void 0,arguments)}}function vi(e){var t=Ar().memoizedState;return gi({ref:t,nextImpl:e}),function(){if((Rg&kg)!==Og)throw Error(`A function wrapped in useEffectEvent can't be called during rendering.`);return t.impl.apply(void 0,arguments)}}function yi(e,t){var n=4194308;return(X.mode&16)!==K&&(n|=134217728),pi(n,oh,e,t)}function bi(e,t){if(typeof t==`function`){e=e();var n=t(e);return function(){typeof n==`function`?n():t(null)}}if(t!=null)return t.hasOwnProperty(`current`)||console.error(`Expected useImperativeHandle() first argument to either be a ref callback or React.createRef() object. Instead received: %s.`,`an object with keys {`+Object.keys(t).join(`, `)+`}`),e=e(),t.current=e,function(){t.current=null}}function xi(e,t,n){typeof t!=`function`&&console.error(`Expected useImperativeHandle() second argument to be a function that creates a handle. Instead received: %s.`,t===null?`null`:typeof t),n=n==null?null:n.concat([e]);var r=4194308;(X.mode&16)!==K&&(r|=134217728),pi(r,oh,bi.bind(null,t,e),n)}function Si(e,t,n){typeof t!=`function`&&console.error(`Expected useImperativeHandle() second argument to be a function that creates a handle. Instead received: %s.`,t===null?`null`:typeof t),n=n==null?null:n.concat([e]),mi(4,oh,bi.bind(null,t,e),n)}function Ci(e,t){return kr().memoizedState=[e,t===void 0?null:t],e}function wi(e,t){var n=Ar();t=t===void 0?null:t;var r=n.memoizedState;return t!==null&&xr(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function Ti(e,t){var n=kr();t=t===void 0?null:t;var r=e();if(vh){pe(!0);try{e()}finally{pe(!1)}}return n.memoizedState=[r,t],r}function Ei(e,t){var n=Ar();t=t===void 0?null:t;var r=n.memoizedState;if(t!==null&&xr(t,r[1]))return r[0];if(r=e(),vh){pe(!0);try{e()}finally{pe(!1)}}return n.memoizedState=[r,t],r}function Di(e,t){return Ai(kr(),e,t)}function Oi(e,t){return ji(Ar(),mh.memoizedState,e,t)}function ki(e,t){var n=Ar();return mh===null?Ai(n,e,t):ji(n,mh.memoizedState,e,t)}function Ai(e,t,n){return n===void 0||ph&1073741824&&!($&261930)?e.memoizedState=t:(e.memoizedState=n,e=cs(),X.lanes|=e,r_|=e,n)}function ji(e,t,n,r){return Kd(n,t)?n:Xm.current===null?!(ph&42)||ph&1073741824&&!($&261930)?(Xh=!0,e.memoizedState=n):(e=cs(),X.lanes|=e,r_|=e,t):(e=Ai(e,n,r),Kd(e,t)||(Xh=!0),e)}function Mi(){W.asyncTransitions--}function Ni(e,t,n,r,i){var a=gl();hl(a!==0&&8>a?a:8);var o=W.T,s={};s._updatedFibers=new Set,W.T=s,Gi(e,!1,t,n);try{var c=i(),l=W.S;if(l!==null&&l(s,c),typeof c==`object`&&c&&typeof c.then==`function`){W.asyncTransitions++,c.then(Mi,Mi);var u=Sn(c,r);Wi(e,t,u,ss(e))}else Wi(e,t,r,ss(e))}catch(n){Wi(e,t,{then:function(){},status:`rejected`,reason:n},ss(e))}finally{hl(a),o!==null&&s.types!==null&&(o.types!==null&&o.types!==s.types&&console.error(`We expected inner Transitions to have transferred the outer types set and that you cannot add to the outer Transition while inside the inner.This is a bug in React.`),o.types=s.types),W.T=o,o===null&&s._updatedFibers&&(e=s._updatedFibers.size,s._updatedFibers.clear(),10<e&&console.warn(`Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table.`))}}function Pi(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:jl,baseState:jl,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Fr,lastRenderedState:jl},next:null};var n={};return t.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Fr,lastRenderedState:n},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function Fi(){var e=qr(!1);return e=Ni.bind(null,X,e.queue,!0,!1),kr().memoizedState=e,[!1,e]}function Ii(){var e=Lr(Fr)[0],t=Ar().memoizedState;return[typeof e==`boolean`?e:Mr(e),t]}function Li(){var e=zr(Fr)[0],t=Ar().memoizedState;return[typeof e==`boolean`?e:Mr(e),t]}function Ri(){return It(Ml)}function zi(){var e=kr(),t=zg.identifierPrefix;if(Pf){var n=wf,r=Cf;n=(r&~(1<<32-xd(r)-1)).toString(32)+n,t=`_`+t+`R_`+n,n=yh++,0<n&&(t+=`H`+n.toString(32)),t+=`_`}else n=Sh++,t=`_`+t+`r_`+n.toString(32)+`_`;return e.memoizedState=t}function Bi(){return kr().memoizedState=Vi.bind(null,X)}function Vi(e,t){for(var n=e.return;n!==null;){switch(n.tag){case 24:case 3:var r=ss(n),i=er(r),a=tr(n,i,r);a!==null&&(Ht(r,`refresh()`,e),ls(a,n,r),nr(a,n,r)),e=zt(),t!=null&&a!==null&&console.error(`The seed argument is not enabled outside experimental channels.`),i.payload={cache:e};return}n=n.return}}function Hi(e,t,n){var r=arguments;typeof r[3]==`function`&&console.error(`State updates from the useState() and useReducer() Hooks don't support the second callback argument. To execute a side effect after rendering, declare it in the component body with useEffect().`),r=ss(e);var i={lane:r,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};Ki(e)?qi(t,i):(i=Jn(e,t,i,r),i!==null&&(Ht(r,`dispatch()`,e),ls(i,e,r),Ji(i,t,r)))}function Ui(e,t,n){var r=arguments;typeof r[3]==`function`&&console.error(`State updates from the useState() and useReducer() Hooks don't support the second callback argument. To execute a side effect after rendering, declare it in the component body with useEffect().`),r=ss(e),Wi(e,t,n,r)&&Ht(r,`setState()`,e)}function Wi(e,t,n,r){var i={lane:r,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};if(Ki(e))qi(t,i);else{var a=e.alternate;if(e.lanes===0&&(a===null||a.lanes===0)&&(a=t.lastRenderedReducer,a!==null)){var o=W.H;W.H=Nh;try{var s=t.lastRenderedState,c=a(s,n);if(i.hasEagerState=!0,i.eagerState=c,Kd(c,s))return qn(e,t,i,0),zg===null&&Kn(),!1}catch{}finally{W.H=o}}if(n=Jn(e,t,i,r),n!==null)return ls(n,e,r),Ji(n,t,r),!0}return!1}function Gi(e,t,n,r){if(W.T===null&&Wp===0&&console.error(`An optimistic state update occurred outside a transition or action. To fix, move the update to an action, or wrap with startTransition.`),r={lane:2,revertLane:yn(),gesture:null,action:r,hasEagerState:!1,eagerState:null,next:null},Ki(e)){if(t)throw Error(`Cannot update optimistic state while rendering.`);console.error(`Cannot call startTransition while rendering.`)}else t=Jn(e,n,r,2),t!==null&&(Ht(2,`setOptimistic()`,e),ls(t,e,2))}function Ki(e){var t=e.alternate;return e===X||t!==null&&t===X}function qi(e,t){_h=gh=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Ji(e,t,n){if(n&4194048){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,se(e,n)}}function Yi(e){if(e!==null&&typeof e!=`function`){var t=String(e);Gh.has(t)||(Gh.add(t),console.error("Expected the last optional `callback` argument to be a function. Instead received: %s.",e))}}function Xi(e,t,n,r){var i=e.memoizedState,a=n(r,i);if(e.mode&8){pe(!0);try{a=n(r,i)}finally{pe(!1)}}a===void 0&&(t=w(t)||`Component`,Vh.has(t)||(Vh.add(t),console.error(`%s.getDerivedStateFromProps(): A valid state object (or null) must be returned. You have returned undefined.`,t))),i=a==null?i:Oc({},i,a),e.memoizedState=i,e.lanes===0&&(e.updateQueue.baseState=i)}function Zi(e,t,n,r,i,a,o){var s=e.stateNode;if(typeof s.shouldComponentUpdate==`function`){if(n=s.shouldComponentUpdate(r,a,o),e.mode&8){pe(!0);try{n=s.shouldComponentUpdate(r,a,o)}finally{pe(!1)}}return n===void 0&&console.error(`%s.shouldComponentUpdate(): Returned undefined instead of a boolean value. Make sure to return true or false.`,w(t)||`Component`),n}return t.prototype&&t.prototype.isPureReactComponent?!En(n,r)||!En(i,a):!0}function Qi(e,t,n,r){var i=t.state;typeof t.componentWillReceiveProps==`function`&&t.componentWillReceiveProps(n,r),typeof t.UNSAFE_componentWillReceiveProps==`function`&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==i&&(e=T(e)||`Component`,Ih.has(e)||(Ih.add(e),console.error(`%s.componentWillReceiveProps(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.`,e)),Kh.enqueueReplaceState(t,t.state,null))}function $i(e,t){var n=t;if(`ref`in t)for(var r in n={},t)r!==`ref`&&(n[r]=t[r]);if(e=e.defaultProps)for(var i in n===t&&(n=Oc({},n)),e)n[i]===void 0&&(n[i]=e[i]);return n}function ea(e,t){try{qh=t.source?T(t.source):null,Jh=null;var n=t.value;if(W.actQueue!==null)W.thrownErrors.push(n);else{var r=e.onUncaughtError;r(n,{componentStack:t.stack})}}catch(e){setTimeout(function(){throw e})}}function ta(e,t,n){try{qh=n.source?T(n.source):null,Jh=T(t);var r=e.onCaughtError;r(n.value,{componentStack:n.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(e){setTimeout(function(){throw e})}}function na(e,t,n){return n=er(n),n.tag=Gm,n.payload={element:null},n.callback=function(){L(t.source,ea,e,t)},n}function ra(e){return e=er(e),e.tag=Gm,e}function ia(e,t,n,r){var i=n.type.getDerivedStateFromError;if(typeof i==`function`){var a=r.value;e.payload=function(){return i(a)},e.callback=function(){ac(n),L(r.source,ta,t,n,r)}}var o=n.stateNode;o!==null&&typeof o.componentDidCatch==`function`&&(e.callback=function(){ac(n),L(r.source,ta,t,n,r),typeof i!=`function`&&(v_===null?v_=new Set([this]):v_.add(this)),pm(this,r),typeof i==`function`||!(n.lanes&2)&&console.error(`%s: Error boundaries should implement getDerivedStateFromError(). In that method, return a state update to display an error message or fallback UI.`,T(n)||`Unknown`)})}function aa(e,t,n,r,i){if(n.flags|=32768,Vd&&$s(e,i),typeof r==`object`&&r&&typeof r.then==`function`){if(t=n.alternate,t!==null&&Nt(t,n,i,!0),Pf&&(Ff=!0),n=Qm.current,n!==null){switch(n.tag){case 31:case 13:return $m===null?ws():n.alternate===null&&n_===jg&&(n_=Pg),n.flags&=-257,n.flags|=65536,n.lanes=i,r===Tm?n.flags|=16384:(t=n.updateQueue,t===null?n.updateQueue=new Set([r]):t.add(r),Gs(e,r,i)),!1;case 22:return n.flags|=65536,r===Tm?n.flags|=16384:(t=n.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([r])},n.updateQueue=t):(n=t.retryQueue,n===null?t.retryQueue=new Set([r]):n.add(r)),Gs(e,r,i)),!1}throw Error(`Unexpected Suspense handler tag (`+n.tag+`). This is a bug in React.`)}return Gs(e,r,i),ws(),!1}if(Pf)return Ff=!0,t=Qm.current,t===null?(r!==zf&&Et(ze(Error(`There was an error while hydrating but React was able to recover by instead client rendering the entire root.`,{cause:r}),n)),e=e.current.alternate,e.flags|=65536,i&=-i,e.lanes|=i,r=ze(r,n),i=na(e.stateNode,r,i),rr(e,i),n_!==Fg&&(n_=Ng)):(!(t.flags&65536)&&(t.flags|=256),t.flags|=65536,t.lanes=i,r!==zf&&Et(ze(Error(`There was an error while hydrating but React was able to recover by instead client rendering from the nearest Suspense boundary.`,{cause:r}),n))),!1;var a=ze(Error(`There was an error during concurrent rendering but React was able to recover by instead synchronously rendering the entire root.`,{cause:r}),n);if(c_===null?c_=[a]:c_.push(a),n_!==Fg&&(n_=Ng),t===null)return!0;r=ze(r,n),n=t;do{switch(n.tag){case 3:return n.flags|=65536,e=i&-i,n.lanes|=e,e=na(n.stateNode,r,e),rr(n,e),!1;case 1:if(t=n.type,a=n.stateNode,!(n.flags&128)&&(typeof t.getDerivedStateFromError==`function`||a!==null&&typeof a.componentDidCatch==`function`&&(v_===null||!v_.has(a))))return n.flags|=65536,i&=-i,n.lanes|=i,i=ra(i),ia(i,e,n,r),rr(n,i),!1}n=n.return}while(n!==null);return!1}function oa(e,t,n,r){t.child=e===null?Im(t,null,n,r):Fm(t,e.child,n,r)}function sa(e,t,n,r,i){n=n.render;var a=t.ref;if(`ref`in r){var o={};for(var s in r)s!==`ref`&&(o[s]=r[s])}else o=r;return Ft(t),r=Sr(e,t,n,o,a,i),s=Er(),e!==null&&!Xh?(Dr(e,t,i),ja(e,t,i)):(Pf&&s&&I(t),t.flags|=1,oa(e,t,r,i),t.child)}function ca(e,t,n,r,i){if(e===null){var a=n.type;return typeof a==`function`&&!cc(a)&&a.defaultProps===void 0&&n.compare===null?(n=nc(a),t.tag=15,t.type=n,xa(t,a),la(e,t,n,r,i)):(e=dc(n.type,null,r,t,t.mode,i),e.ref=t.ref,e.return=t,t.child=e)}if(a=e.child,!B(e,i)){var o=a.memoizedProps;if(n=n.compare,n=n===null?En:n,n(o,r)&&e.ref===t.ref)return ja(e,t,i)}return t.flags|=1,e=lc(a,r),e.ref=t.ref,e.return=t,t.child=e}function la(e,t,n,r,i){if(e!==null){var a=e.memoizedProps;if(En(a,r)&&e.ref===t.ref&&t.type===e.type)if(Xh=!1,t.pendingProps=r=a,B(e,i))e.flags&131072&&(Xh=!0);else return t.lanes=e.lanes,ja(e,t,i)}return _a(e,t,n,r,i)}function ua(e,t,n,r){var i=r.children,a=e===null?null:e.memoizedState;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:Lm,_pendingMarkers:null,_retryCache:null,_transitions:null}),r.mode===`hidden`){if(t.flags&128){if(a=a===null?n:a.baseLanes|n,e!==null){for(r=t.child=e.child,i=0;r!==null;)i=i|r.lanes|r.childLanes,r=r.sibling;r=i&~a}else r=0,t.child=null;return fa(e,t,a,n,r)}if(n&536870912)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&wn(t,a===null?null:a.cachePool),a===null?ur(t):lr(t,a),mr(t);else return r=t.lanes=536870912,fa(e,t,a===null?n:a.baseLanes|n,n,r)}else a===null?(e!==null&&wn(t,null),ur(t),hr(t)):(wn(t,a.cachePool),lr(t,a),hr(t),t.memoizedState=null);return oa(e,t,i,n),t.child}function da(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:Lm,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function fa(e,t,n,r,i){var a=Cn();return a=a===null?null:{parent:ll?Xf._currentValue:Xf._currentValue2,pool:a},t.memoizedState={baseLanes:n,cachePool:a},e!==null&&wn(t,null),ur(t),mr(t),e!==null&&Nt(e,t,r,!0),t.childLanes=i,null}function pa(e,t){var n=t.hidden;return n!==void 0&&console.error(`<Activity> doesn't accept a hidden prop. Use mode="hidden" instead.
|
|
203
203
|
- <Activity %s>
|
|
204
|
-
+ <Activity %s>`,!0===n?`hidden`:!1===n?`hidden={false}`:`hidden={...}`,n?`mode="hidden"`:`mode="visible"`),t=Ea({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function ma(e,t,n){return Fm(t,e.child,null,n),e=pa(t,t.pendingProps),e.flags|=2,gr(t),t.memoizedState=null,e}function ha(e,t,n){var r=t.pendingProps,i=(t.flags&128)!=0;if(t.flags&=-129,e===null){if(Pf){if(r.mode===`hidden`)return e=pa(t,r),t.lanes=536870912,da(null,e);if(pr(t),(e=Nf)?(n=Du(e,Rf),n!==null&&(r={dehydrated:n,treeContext:Ue(),retryLane:536870912,hydrationErrors:null},t.memoizedState=r,r=
|
|
204
|
+
+ <Activity %s>`,!0===n?`hidden`:!1===n?`hidden={false}`:`hidden={...}`,n?`mode="hidden"`:`mode="visible"`),t=Ea({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function ma(e,t,n){return Fm(t,e.child,null,n),e=pa(t,t.pendingProps),e.flags|=2,gr(t),t.memoizedState=null,e}function ha(e,t,n){var r=t.pendingProps,i=(t.flags&128)!=0;if(t.flags&=-129,e===null){if(Pf){if(r.mode===`hidden`)return e=pa(t,r),t.lanes=536870912,da(null,e);if(pr(t),(e=Nf)?(n=Du(e,Rf),n!==null&&(r={dehydrated:n,treeContext:Ue(),retryLane:536870912,hydrationErrors:null},t.memoizedState=r,r=hc(n),r.return=t,t.child=r,Mf=t,Nf=null)):n=null,n===null)throw vt(t,e),yt(t);return t.lanes=536870912,null}return pa(t,r)}var a=e.memoizedState;if(a!==null){var o=a.dehydrated;if(pr(t),i)if(t.flags&256)t.flags&=-257,t=ma(e,t,n);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(`Client rendering an Activity suspended it again. This is a bug in React.`);else if(_t(),n&536870912&&Cs(t),Xh||Nt(e,t,n,!1),i=(n&e.childLanes)!==0,Xh||i){if(r=zg,r!==null&&(o=ce(r,n),o!==0&&o!==a.retryLane))throw a.retryLane=o,Yn(e,o),ls(r,e,o),Yh;ws(),t=ma(e,t,n)}else e=a.treeContext,fl&&(Nf=Su(o),Mf=t,Pf=!0,Lf=null,Ff=!1,If=null,Rf=!1,e!==null&&We(t,e)),t=pa(t,r),t.flags|=4096;return t}return a=e.child,r={mode:r.mode,children:r.children},n&536870912&&(n&e.lanes)!==0&&Cs(t),e=lc(a,r),e.ref=t.ref,t.child=e,e.return=t,e}function ga(e,t){var n=t.ref;if(n===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof n!=`function`&&typeof n!=`object`)throw Error(`Expected ref to be a function, an object returned by React.createRef(), or undefined/null.`);(e===null||e.ref!==n)&&(t.flags|=4194816)}}function _a(e,t,n,r,i){if(n.prototype&&typeof n.prototype.render==`function`){var a=w(n)||`Unknown`;Zh[a]||(console.error(`The <%s /> component appears to have a render method, but doesn't extend React.Component. This is likely to cause errors. Change %s to extend React.Component instead.`,a,a),Zh[a]=!0)}return t.mode&8&&Jp.recordLegacyContextWarning(t,null),e===null&&(xa(t,t.type),n.contextTypes&&(a=w(n)||`Unknown`,$h[a]||($h[a]=!0,console.error(`%s uses the legacy contextTypes API which was removed in React 19. Use React.createContext() with React.useContext() instead. (https://react.dev/link/legacy-context)`,a)))),Ft(t),n=Sr(e,t,n,r,void 0,i),r=Er(),e!==null&&!Xh?(Dr(e,t,i),ja(e,t,i)):(Pf&&r&&I(t),t.flags|=1,oa(e,t,n,i),t.child)}function va(e,t,n,r,i,a){return Ft(t),Th=-1,Eh=e!==null&&e.type!==t.type,t.updateQueue=null,n=wr(t,r,n,i),Cr(e,t),r=Er(),e!==null&&!Xh?(Dr(e,t,a),ja(e,t,a)):(Pf&&r&&I(t),t.flags|=1,oa(e,t,n,a),t.child)}function ya(e,t,n,r,i){switch(s(t)){case!1:var a=t.stateNode,o=new t.type(t.memoizedProps,a.context).state;a.updater.enqueueSetState(a,o,null);break;case!0:t.flags|=128,t.flags|=65536,a=Error(`Simulated error coming from DevTools`);var c=i&-i;if(t.lanes|=c,o=zg,o===null)throw Error(`Expected a work-in-progress root. This is a bug in React. Please file an issue.`);c=ra(c),ia(c,o,t,ze(a,t)),rr(t,c)}if(Ft(t),t.stateNode===null){if(o=bd,a=n.contextType,`contextType`in n&&a!==null&&(a===void 0||a.$$typeof!==Ic)&&!Wh.has(n)&&(Wh.add(n),c=a===void 0?` However, it is set to undefined. This can be caused by a typo or by mixing up named and default imports. This can also happen due to a circular dependency, so try moving the createContext() call to a separate file.`:typeof a==`object`?a.$$typeof===Fc?` Did you accidentally pass the Context.Consumer instead?`:` However, it is set to an object with keys {`+Object.keys(a).join(`, `)+`}.`:` However, it is set to a `+typeof a+`.`,console.error(`%s defines an invalid contextType. contextType should point to the Context object returned by React.createContext().%s`,w(n)||`Component`,c)),typeof a==`object`&&a&&(o=It(a)),a=new n(r,o),t.mode&8){pe(!0);try{a=new n(r,o)}finally{pe(!1)}}if(o=t.memoizedState=a.state!==null&&a.state!==void 0?a.state:null,a.updater=Kh,t.stateNode=a,a._reactInternals=t,a._reactInternalInstance=Fh,typeof n.getDerivedStateFromProps==`function`&&o===null&&(o=w(n)||`Component`,Lh.has(o)||(Lh.add(o),console.error("`%s` uses `getDerivedStateFromProps` but its initial state is %s. This is not recommended. Instead, define the initial state by assigning an object to `this.state` in the constructor of `%s`. This ensures that `getDerivedStateFromProps` arguments have a consistent shape.",o,a.state===null?`null`:`undefined`,o))),typeof n.getDerivedStateFromProps==`function`||typeof a.getSnapshotBeforeUpdate==`function`){var l=c=o=null;if(typeof a.componentWillMount==`function`&&!0!==a.componentWillMount.__suppressDeprecationWarning?o=`componentWillMount`:typeof a.UNSAFE_componentWillMount==`function`&&(o=`UNSAFE_componentWillMount`),typeof a.componentWillReceiveProps==`function`&&!0!==a.componentWillReceiveProps.__suppressDeprecationWarning?c=`componentWillReceiveProps`:typeof a.UNSAFE_componentWillReceiveProps==`function`&&(c=`UNSAFE_componentWillReceiveProps`),typeof a.componentWillUpdate==`function`&&!0!==a.componentWillUpdate.__suppressDeprecationWarning?l=`componentWillUpdate`:typeof a.UNSAFE_componentWillUpdate==`function`&&(l=`UNSAFE_componentWillUpdate`),o!==null||c!==null||l!==null){a=w(n)||`Component`;var u=typeof n.getDerivedStateFromProps==`function`?`getDerivedStateFromProps()`:`getSnapshotBeforeUpdate()`;zh.has(a)||(zh.add(a),console.error(`Unsafe legacy lifecycles will not be called for components using new component APIs.
|
|
205
205
|
|
|
206
206
|
%s uses %s but also contains the following legacy lifecycles:%s%s%s
|
|
207
207
|
|
|
@@ -209,8 +209,8 @@ The above lifecycles should be removed. Learn more about this warning here:
|
|
|
209
209
|
https://react.dev/link/unsafe-component-lifecycles`,a,u,o===null?``:`
|
|
210
210
|
`+o,c===null?``:`
|
|
211
211
|
`+c,l===null?``:`
|
|
212
|
-
`+l))}}a=t.stateNode,o=w(n)||`Component`,a.render||(n.prototype&&typeof n.prototype.render==`function`?console.error("No `render` method found on the %s instance: did you accidentally return an object from the constructor?",o):console.error("No `render` method found on the %s instance: you may have forgotten to define `render`.",o)),!a.getInitialState||a.getInitialState.isReactClassApproved||a.state||console.error(`getInitialState was defined on %s, a plain JavaScript class. This is only supported for classes created using React.createClass. Did you mean to define a state property instead?`,o),a.getDefaultProps&&!a.getDefaultProps.isReactClassApproved&&console.error(`getDefaultProps was defined on %s, a plain JavaScript class. This is only supported for classes created using React.createClass. Use a static property to define defaultProps instead.`,o),a.contextType&&console.error(`contextType was defined as an instance property on %s. Use a static property to define contextType instead.`,o),n.childContextTypes&&!Uh.has(n)&&(Uh.add(n),console.error(`%s uses the legacy childContextTypes API which was removed in React 19. Use React.createContext() instead. (https://react.dev/link/legacy-context)`,o)),n.contextTypes&&!Hh.has(n)&&(Hh.add(n),console.error(`%s uses the legacy contextTypes API which was removed in React 19. Use React.createContext() with static contextType instead. (https://react.dev/link/legacy-context)`,o)),typeof a.componentShouldUpdate==`function`&&console.error(`%s has a method called componentShouldUpdate(). Did you mean shouldComponentUpdate()? The name is phrased as a question because the function is expected to return a value.`,o),n.prototype&&n.prototype.isPureReactComponent&&a.shouldComponentUpdate!==void 0&&console.error(`%s has a method called shouldComponentUpdate(). shouldComponentUpdate should not be used when extending React.PureComponent. Please extend React.Component if shouldComponentUpdate is used.`,w(n)||`A pure component`),typeof a.componentDidUnmount==`function`&&console.error(`%s has a method called componentDidUnmount(). But there is no such lifecycle method. Did you mean componentWillUnmount()?`,o),typeof a.componentDidReceiveProps==`function`&&console.error(`%s has a method called componentDidReceiveProps(). But there is no such lifecycle method. If you meant to update the state in response to changing props, use componentWillReceiveProps(). If you meant to fetch data or run side-effects or mutations after React has updated the UI, use componentDidUpdate().`,o),typeof a.componentWillRecieveProps==`function`&&console.error(`%s has a method called componentWillRecieveProps(). Did you mean componentWillReceiveProps()?`,o),typeof a.UNSAFE_componentWillRecieveProps==`function`&&console.error(`%s has a method called UNSAFE_componentWillRecieveProps(). Did you mean UNSAFE_componentWillReceiveProps()?`,o),c=a.props!==r,a.props!==void 0&&c&&console.error("When calling super() in `%s`, make sure to pass up the same props that your component's constructor was passed.",o),a.defaultProps&&console.error(`Setting defaultProps as an instance property on %s is not supported and will be ignored. Instead, define defaultProps as a static property on %s.`,o,o),typeof a.getSnapshotBeforeUpdate!=`function`||typeof a.componentDidUpdate==`function`||Rh.has(n)||(Rh.add(n),console.error(`%s: getSnapshotBeforeUpdate() should be used with componentDidUpdate(). This component defines getSnapshotBeforeUpdate() only.`,w(n))),typeof a.getDerivedStateFromProps==`function`&&console.error(`%s: getDerivedStateFromProps() is defined as an instance method and will be ignored. Instead, declare it as a static method.`,o),typeof a.getDerivedStateFromError==`function`&&console.error(`%s: getDerivedStateFromError() is defined as an instance method and will be ignored. Instead, declare it as a static method.`,o),typeof n.getSnapshotBeforeUpdate==`function`&&console.error(`%s: getSnapshotBeforeUpdate() is defined as a static method and will be ignored. Instead, declare it as an instance method.`,o),(c=a.state)&&(typeof c!=`object`||
|
|
213
|
-
%s.childContextTypes = ...`,t.displayName||t.name||`Component`),typeof t.getDerivedStateFromProps==`function`&&(e=w(t)||`Unknown`,eg[e]||(console.error(`%s: Function components do not support getDerivedStateFromProps.`,e),eg[e]=!0)),typeof t.contextType==`object`&&t.contextType!==null&&(t=w(t)||`Unknown`,Qh[t]||(console.error(`%s: Function components do not support contextType.`,t),Qh[t]=!0))}function Sa(e){return{baseLanes:e,cachePool:Tn()}}function Ca(e,t,n){return e=e===null?0:e.childLanes&~n,t&&(e|=o_),e}function wa(e,t,n){var r=t.pendingProps;o(t)&&(t.flags|=128);var i=!1,a=(t.flags&128)!=0,s;if((s=a)||(s=e!==null&&e.memoizedState===null?!1:(nh.current&th)!==0),s&&(i=!0,t.flags&=-129),s=(t.flags&32)!=0,t.flags&=-33,e===null){if(Pf){if(i?fr(t):hr(t),(e=Nf)?(n=Ou(e,Rf),n!==null&&(s={dehydrated:n,treeContext:Ue(),retryLane:536870912,hydrationErrors:null},t.memoizedState=s,s=gc(n),s.return=t,t.child=s,Mf=t,Nf=null)):n=null,n===null)throw vt(t,e),yt(t);return pu(n)?t.lanes=32:t.lanes=536870912,null}var c=r.children;return r=r.fallback,i?(hr(t),i=t.mode,c=Ea({mode:`hidden`,children:c},i),r=mc(r,i,n,null),c.return=t,r.return=t,c.sibling=r,t.child=c,r=t.child,r.memoizedState=Sa(n),r.childLanes=Ca(e,s,n),t.memoizedState=ig,da(null,r)):(fr(t),Ta(t,c))}var l=e.memoizedState;if(l!==null&&(c=l.dehydrated,c!==null)){if(a)t.flags&256?(fr(t),t.flags&=-257,t=Da(e,t,n)):t.memoizedState===null?(hr(t),c=r.fallback,i=t.mode,r=Ea({mode:`visible`,children:r.children},i),c=mc(c,i,n,null),c.flags|=2,r.return=t,c.return=t,r.sibling=c,t.child=r,Fm(t,e.child,null,n),r=t.child,r.memoizedState=Sa(n),r.childLanes=Ca(e,s,n),t.memoizedState=ig,t=da(null,r)):(hr(t),t.child=e.child,t.flags|=128,t=null);else if(fr(t),_t(),n&536870912&&Cs(t),pu(c))i=mu(c),s=i.digest,c=i.message,r=i.stack,i=i.componentStack,c=Error(c||`The server could not finish this Suspense boundary, likely due to an error during server rendering. Switched to client rendering.`),c.stack=r||``,c.digest=s,s=i===void 0?null:i,r={value:c,source:null,stack:s},typeof s==`string`&&hf.set(c,r),Et(r),t=Da(e,t,n);else if(Xh||Nt(e,t,n,!1),s=(n&e.childLanes)!==0,Xh||s){if(s=zg,s!==null&&(r=ce(s,n),r!==0&&r!==l.retryLane))throw l.retryLane=r,Yn(e,r),ls(s,e,r),Yh;fu(c)||ws(),t=Da(e,t,n)}else fu(c)?(t.flags|=192,t.child=e.child,t=null):(e=l.treeContext,fl&&(Nf=Cu(c),Mf=t,Pf=!0,Lf=null,Ff=!1,If=null,Rf=!1,e!==null&&We(t,e)),t=Ta(t,r.children),t.flags|=4096);return t}return i?(hr(t),c=r.fallback,i=t.mode,l=e.child,a=l.sibling,r=uc(l,{mode:`hidden`,children:r.children}),r.subtreeFlags=l.subtreeFlags&65011712,a===null?(c=mc(c,i,n,null),c.flags|=2):c=uc(a,c),c.return=t,r.return=t,r.sibling=c,t.child=r,da(null,r),r=t.child,c=e.child.memoizedState,c===null?c=Sa(n):(i=c.cachePool,i===null?i=Tn():(l=ll?Xf._currentValue:Xf._currentValue2,i=i.parent===l?i:{parent:l,pool:l}),c={baseLanes:c.baseLanes|n,cachePool:i}),r.memoizedState=c,r.childLanes=Ca(e,s,n),t.memoizedState=ig,da(e.child,r)):(l!==null&&(n&62914560)===n&&(n&e.lanes)!==0&&Cs(t),fr(t),n=e.child,e=n.sibling,n=uc(n,{mode:`visible`,children:r.children}),n.return=t,n.sibling=null,e!==null&&(s=t.deletions,s===null?(t.deletions=[e],t.flags|=16):s.push(e)),t.child=n,t.memoizedState=null,n)}function Ta(e,t){return t=Ea({mode:`visible`,children:t},e.mode),t.return=e,e.child=t}function Ea(e,t){return e=c(22,e,null,t),e.lanes=0,e}function Da(e,t,n){return Fm(t,e.child,null,n),e=Ta(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Oa(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),jt(e.return,t,n)}function ka(e,t,n,r,i,a){var o=e.memoizedState;o===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i,treeForkCount:a}:(o.isBackwards=t,o.rendering=null,o.renderingStartTime=0,o.last=r,o.tail=n,o.tailMode=i,o.treeForkCount=a)}function Aa(e,t,n){var r=t.pendingProps,i=r.revealOrder,a=r.tail,o=r.children,s=nh.current;if((r=(s&th)!==0)?(s=s&eh|th,t.flags|=128):s&=eh,k(nh,s,t),s=i??`null`,i!==`forwards`&&i!==`unstable_legacy-backwards`&&i!==`together`&&i!==`independent`&&!ng[s])if(ng[s]=!0,i==null)console.error(`The default for the <SuspenseList revealOrder="..."> prop is changing. To be future compatible you must explictly specify either "independent" (the current default), "together", "forwards" or "legacy_unstable-backwards".`);else if(i===`backwards`)console.error(`The rendering order of <SuspenseList revealOrder="backwards"> is changing. To be future compatible you must specify revealOrder="legacy_unstable-backwards" instead.`);else if(typeof i==`string`)switch(i.toLowerCase()){case`together`:case`forwards`:case`backwards`:case`independent`:console.error(`"%s" is not a valid value for revealOrder on <SuspenseList />. Use lowercase "%s" instead.`,i,i.toLowerCase());break;case`forward`:case`backward`:console.error(`"%s" is not a valid value for revealOrder on <SuspenseList />. React uses the -s suffix in the spelling. Use "%ss" instead.`,i,i.toLowerCase());break;default:console.error(`"%s" is not a supported revealOrder on <SuspenseList />. Did you mean "independent", "together", "forwards" or "backwards"?`,i)}else console.error(`%s is not a supported value for revealOrder on <SuspenseList />. Did you mean "independent", "together", "forwards" or "backwards"?`,i);s=a??`null`,rg[s]||(a==null?(i===`forwards`||i===`backwards`||i===`unstable_legacy-backwards`)&&(rg[s]=!0,console.error(`The default for the <SuspenseList tail="..."> prop is changing. To be future compatible you must explictly specify either "visible" (the current default), "collapsed" or "hidden".`)):a!==`visible`&&a!==`collapsed`&&a!==`hidden`?(rg[s]=!0,console.error(`"%s" is not a supported value for tail on <SuspenseList />. Did you mean "visible", "collapsed" or "hidden"?`,a)):i!==`forwards`&&i!==`backwards`&&i!==`unstable_legacy-backwards`&&(rg[s]=!0,console.error(`<SuspenseList tail="%s" /> is only valid if revealOrder is "forwards" or "backwards". Did you mean to specify revealOrder="forwards"?`,a)));a:if((i===`forwards`||i===`backwards`||i===`unstable_legacy-backwards`)&&o!=null&&!1!==o)if(qc(o)){for(s=0;s<o.length;s++)if(!Gn(o[s],s))break a}else if(s=C(o),typeof s==`function`){if(s=s.call(o))for(var c=s.next(),l=0;!c.done;c=s.next()){if(!Gn(c.value,l))break a;l++}}else console.error(`A single row was passed to a <SuspenseList revealOrder="%s" />. This is not useful since it needs multiple rows. Did you mean to pass multiple children or an array?`,i);if(oa(e,t,o,n),Pf?(Ge(),o=yf):o=0,!r&&e!==null&&e.flags&128)a:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Oa(e,n,t);else if(e.tag===19)Oa(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break a;for(;e.sibling===null;){if(e.return===null||e.return===t)break a;e=e.return}e.sibling.return=e.return,e=e.sibling}switch(i){case`forwards`:for(n=t.child,i=null;n!==null;)e=n.alternate,e!==null&&_r(e)===null&&(i=n),n=n.sibling;n=i,n===null?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),ka(t,!1,i,n,a,o);break;case`backwards`:case`unstable_legacy-backwards`:for(n=null,i=t.child,t.child=null;i!==null;){if(e=i.alternate,e!==null&&_r(e)===null){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}ka(t,!0,n,null,a,o);break;case`together`:ka(t,!1,null,null,void 0,o);break;default:t.memoizedState=null}return t.child}function ja(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),rp=-1,r_|=t.lanes,(n&t.childLanes)===0)if(e!==null){if(Nt(e,t,n,!1),(n&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(`Resuming work not yet implemented.`);if(t.child!==null){for(e=t.child,n=uc(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=uc(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function B(e,t){return(e.lanes&t)===0?(e=e.dependencies,!!(e!==null&&Pt(e))):!0}function Ma(e,t,n){switch(t.tag){case 3:qe(t,t.stateNode.containerInfo),kt(t,Xf,e.memoizedState.cache),wt();break;case 27:case 5:Xe(t);break;case 4:qe(t,t.stateNode.containerInfo);break;case 10:kt(t,t.type,t.memoizedProps.value);break;case 12:(n&t.childLanes)!==0&&(t.flags|=4),t.flags|=2048;var r=t.stateNode;r.effectDuration=-0,r.passiveEffectDuration=-0;break;case 31:if(t.memoizedState!==null)return t.flags|=128,pr(t),null;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated===null?(n&t.child.childLanes)===0?(fr(t),e=ja(e,t,n),e===null?null:e.sibling):wa(e,t,n):(fr(t),t.flags|=128,null);fr(t);break;case 19:var i=(e.flags&128)!=0;if(r=(n&t.childLanes)!==0,r||=(Nt(e,t,n,!1),(n&t.childLanes)!==0),i){if(r)return Aa(e,t,n);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),k(nh,nh.current,t),r)break;return null;case 22:return t.lanes=0,ua(e,t,n,t.pendingProps);case 24:kt(t,Xf,e.memoizedState.cache)}return ja(e,t,n)}function Na(e,t,n){if(t._debugNeedsRemount&&e!==null){n=fc(t.type,t.key,t.pendingProps,t._debugOwner||null,t.mode,t.lanes),n._debugStack=t._debugStack,n._debugTask=t._debugTask;var r=t.return;if(r===null)throw Error(`Cannot swap the root fiber.`);if(e.alternate=null,t.alternate=null,n.index=t.index,n.sibling=t.sibling,n.return=t.return,n.ref=t.ref,n._debugInfo=t._debugInfo,t===r.child)r.child=n;else{var i=r.child;if(i===null)throw Error(`Expected parent to have a child.`);for(;i.sibling!==t;)if(i=i.sibling,i===null)throw Error(`Expected to find the previous sibling.`);i.sibling=n}return t=r.deletions,t===null?(r.deletions=[e],r.flags|=16):t.push(e),n.flags|=2,n}if(e!==null)if(e.memoizedProps!==t.pendingProps||t.type!==e.type)Xh=!0;else{if(!B(e,n)&&!(t.flags&128))return Xh=!1,Ma(e,t,n);Xh=!!(e.flags&131072)}else Xh=!1,(r=Pf)&&(Ge(),r=(t.flags&1048576)!=0),r&&(r=t.index,Ge(),Ve(t,yf,r));switch(t.lanes=0,t.tag){case 16:a:if(r=t.pendingProps,e=An(t.elementType),t.type=e,typeof e==`function`)lc(e)?(r=$i(e,r),t.tag=1,t.type=e=rc(e),t=ya(null,t,e,r,n)):(t.tag=0,xa(t,e),t.type=e=rc(e),t=_a(null,t,e,r,n));else{if(e!=null){if(i=e.$$typeof,i===Rc){t.tag=11,t.type=e=ic(e),t=sa(null,t,e,r,n);break a}else if(i===Vc){t.tag=14,t=ca(null,t,e,r,n);break a}}throw t=``,typeof e==`object`&&e&&e.$$typeof===Hc&&(t=` Did you wrap a component in React.lazy() more than once?`),e=w(e)||e,Error(`Element type is invalid. Received a promise that resolves to: `+e+`. Lazy element type must resolve to a class or function.`+t)}return t;case 0:return _a(e,t,t.type,t.pendingProps,n);case 1:return r=t.type,i=$i(r,t.pendingProps),ya(e,t,r,i,n);case 3:a:{if(qe(t,t.stateNode.containerInfo),e===null)throw Error(`Should have a current fiber. This is a bug in React.`);var a=t.pendingProps;i=t.memoizedState,r=i.element,$n(e,t),ar(t,a,null,n);var o=t.memoizedState;if(a=o.cache,kt(t,Xf,a),a!==i.cache&&Mt(t,[Xf],n,!0),ir(),a=o.element,fl&&i.isDehydrated)if(i={element:a,isDehydrated:!1,cache:o.cache},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){t=ba(e,t,a,n);break a}else if(a!==r){r=ze(Error(`This root received an early update, before anything was able hydrate. Switched the entire root to client rendering.`),t),Et(r),t=ba(e,t,a,n);break a}else for(fl&&(Nf=xu(t.stateNode.containerInfo),Mf=t,Pf=!0,Lf=null,Ff=!1,If=null,Rf=!0),e=Im(t,null,a,n),t.child=e;e;)e.flags=e.flags&-3|4096,e=e.sibling;else{if(wt(),a===r){t=ja(e,t,n);break a}oa(e,t,a,n)}t=t.child}return t;case 26:if(Zu)return ga(e,t),e===null?(e=ed(t.type,null,t.pendingProps,null))?t.memoizedState=e:Pf||(t.stateNode=od(t.type,t.pendingProps,Ke(Df.current),t)):t.memoizedState=ed(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:if(dd)return Xe(t),e===null&&dd&&Pf&&(i=Ke(Df.current),r=Ye(),i=t.stateNode=fd(t.type,t.pendingProps,i,r,!1),Ff||(r=Ku(i,t.type,t.pendingProps,r),r!==null&&(gt(t,0).serverProps=r)),Mf=t,Rf=!0,Nf=wu(t.type,i,Nf)),oa(e,t,t.pendingProps.children,n),ga(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&Pf&&(a=Ye(),r=Yu(t.type,t.pendingProps,a),i=Nf,(o=!i)||(o=Tu(i,t.type,t.pendingProps,Rf),o===null?a=!1:(t.stateNode=o,Ff||(a=Ku(o,t.type,t.pendingProps,a),a!==null&&(gt(t,0).serverProps=a)),Mf=t,Nf=bu(o),Rf=!1,a=!0),o=!a),o&&(r&&vt(t,i),yt(t))),Xe(t),i=t.type,a=t.pendingProps,o=e===null?null:e.memoizedProps,r=a.children,W(i,a)?r=null:o!==null&&W(i,o)&&(t.flags|=32),t.memoizedState!==null&&(i=Sr(e,t,Tr,null,null,n),ll?Ml._currentValue=i:Ml._currentValue2=i),ga(e,t),oa(e,t,r,n),t.child;case 6:return e===null&&Pf&&(e=t.pendingProps,n=Ye(),e=Xu(e,n),n=Nf,(r=!n)||(r=Eu(n,t.pendingProps,Rf),r===null?r=!1:(t.stateNode=r,Mf=t,Nf=null,r=!0),r=!r),r&&(e&&vt(t,n),yt(t))),null;case 13:return wa(e,t,n);case 4:return qe(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Fm(t,null,r,n):oa(e,t,r,n),t.child;case 11:return sa(e,t,t.type,t.pendingProps,n);case 7:return oa(e,t,t.pendingProps,n),t.child;case 8:return oa(e,t,t.pendingProps.children,n),t.child;case 12:return t.flags|=4,t.flags|=2048,r=t.stateNode,r.effectDuration=-0,r.passiveEffectDuration=-0,oa(e,t,t.pendingProps.children,n),t.child;case 10:return r=t.type,i=t.pendingProps,a=i.value,`value`in i||ag||(ag=!0,console.error("The `value` prop is required for the `<Context.Provider>`. Did you misspell it or forget to pass it?")),kt(t,r,a),oa(e,t,i.children,n),t.child;case 9:return i=t.type._context,r=t.pendingProps.children,typeof r!=`function`&&console.error(`A context consumer was rendered with multiple children, or a child that isn't a function. A context consumer expects a single child that is a function. If you did pass a function, make sure there is no trailing or leading whitespace around it.`),Ft(t),i=It(i),r=am(r,i,void 0),t.flags|=1,oa(e,t,r,n),t.child;case 14:return ca(e,t,t.type,t.pendingProps,n);case 15:return la(e,t,t.type,t.pendingProps,n);case 19:return Aa(e,t,n);case 31:return ha(e,t,n);case 22:return ua(e,t,n,t.pendingProps);case 24:return Ft(t),r=It(Xf),e===null?(i=Cn(),i===null&&(i=zg,a=zt(),i.pooledCache=a,Bt(a),a!==null&&(i.pooledCacheLanes|=n),i=a),t.memoizedState={parent:r,cache:i},Qn(t),kt(t,Xf,i)):((e.lanes&n)!==0&&($n(e,t),ar(t,null,null,n),ir()),i=e.memoizedState,a=t.memoizedState,i.parent===r?(r=a.cache,kt(t,Xf,r),r!==i.cache&&Mt(t,[Xf],n,!0)):(i={parent:r,cache:r},t.memoizedState=i,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=i),kt(t,Xf,r))),oa(e,t,t.pendingProps.children,n),t.child;case 29:throw t.pendingProps}throw Error(`Unknown unit of work tag (`+t.tag+`). This error is likely caused by a bug in React. Please file an issue.`)}function Pa(e){e.flags|=4}function Fa(e){dl&&(e.flags|=8)}function Ia(e,t){if(e!==null&&e.child===t.child)return!1;if(t.flags&16)return!0;for(e=t.child;e!==null;){if(e.flags&8218||e.subtreeFlags&8218)return!0;e=e.sibling}return!1}function La(e,t,n,r){if(ul)for(n=t.child;n!==null;){if(n.tag===5||n.tag===6)rl(e,n.stateNode);else if(!(n.tag===4||dd&&n.tag===27)&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}else if(dl)for(var i=t.child;i!==null;){if(i.tag===5){var a=i.stateNode;n&&r&&(a=uu(a,i.type,i.memoizedProps)),rl(e,a)}else if(i.tag===6)a=i.stateNode,n&&r&&(a=du(a,i.memoizedProps)),rl(e,a);else if(i.tag!==4){if(i.tag===22&&i.memoizedState!==null)a=i.child,a!==null&&(a.return=i),La(e,i,!0,!0);else if(i.child!==null){i.child.return=i,i=i.child;continue}}if(i===t)break;for(;i.sibling===null;){if(i.return===null||i.return===t)return;i=i.return}i.sibling.return=i.return,i=i.sibling}}function Ra(e,t,n,r){var i=!1;if(dl)for(var a=t.child;a!==null;){if(a.tag===5){var o=a.stateNode;n&&r&&(o=uu(o,a.type,a.memoizedProps)),su(e,o)}else if(a.tag===6)o=a.stateNode,n&&r&&(o=du(o,a.memoizedProps)),su(e,o);else if(a.tag!==4){if(a.tag===22&&a.memoizedState!==null)i=a.child,i!==null&&(i.return=a),Ra(e,a,!0,!0),i=!0;else if(a.child!==null){a.child.return=a,a=a.child;continue}}if(a===t)break;for(;a.sibling===null;){if(a.return===null||a.return===t)return i;a=a.return}a.sibling.return=a.return,a=a.sibling}return i}function za(e,t){if(dl&&Ia(e,t)){e=t.stateNode;var n=e.containerInfo,r=ou();Ra(r,t,!1,!1),e.pendingChildren=r,Pa(t),cu(n,r)}}function Ba(e,t,n,r){if(ul)e.memoizedProps!==r&&Pa(t);else if(dl){var i=e.stateNode,a=e.memoizedProps;if((e=Ia(e,t))||a!==r){var o=Ye();a=au(i,n,a,r,!e,null),a===i?t.stateNode=i:(Fa(t),il(a,n,r,o)&&Pa(t),t.stateNode=a,e&&La(a,t,!1,!1))}else t.stateNode=i}}function Va(e,t,n,r,i){if((e.mode&32)!==K&&(n===null?Cl(t,r):wl(t,n,r))){if(e.flags|=16777216,(i&335544128)===i||Tl(t,r))if(El(e.stateNode,t,r))e.flags|=8192;else if(bs())e.flags|=8192;else throw Em=Tm,Cm}else e.flags&=-16777217}function Ha(e,t){if(cd(t)){if(e.flags|=16777216,!ld(t))if(bs())e.flags|=8192;else throw Em=Tm,Cm}else e.flags&=-16777217}function Ua(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag===22?536870912:M(),e.lanes|=t,s_|=t)}function Wa(e,t){if(!Pf)switch(e.tailMode){case`hidden`:t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case`collapsed`:n=e.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function Ga(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)if((e.mode&2)!==K){for(var i=e.selfBaseDuration,a=e.child;a!==null;)n|=a.lanes|a.childLanes,r|=a.subtreeFlags&65011712,r|=a.flags&65011712,i+=a.treeBaseDuration,a=a.sibling;e.treeBaseDuration=i}else for(i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags&65011712,r|=i.flags&65011712,i.return=e,i=i.sibling;else if((e.mode&2)!==K){i=e.actualDuration,a=e.selfBaseDuration;for(var o=e.child;o!==null;)n|=o.lanes|o.childLanes,r|=o.subtreeFlags,r|=o.flags,i+=o.actualDuration,a+=o.treeBaseDuration,o=o.sibling;e.actualDuration=i,e.treeBaseDuration=a}else for(i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags,r|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function Ka(e,t,n){var r=t.pendingProps;switch(He(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Ga(t),null;case 1:return Ga(t),null;case 3:return n=t.stateNode,r=null,e!==null&&(r=e.memoizedState.cache),t.memoizedState.cache!==r&&(t.flags|=2048),At(Xf,t),Je(t),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(e===null||e.child===null)&&(St(t)?(Dt(),Pa(t)):e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,Tt())),za(e,t),Ga(t),null;case 26:if(Zu){var i=t.type,a=t.memoizedState;return e===null?(Pa(t),a===null?(Ga(t),Va(t,i,null,r,n)):(Ga(t),Ha(t,a))):a?a===e.memoizedState?(Ga(t),t.flags&=-16777217):(Pa(t),Ga(t),Ha(t,a)):(a=e.memoizedProps,ul?a!==r&&Pa(t):Ba(e,t,i,r),Ga(t),Va(t,i,a,r,n)),null}case 27:if(dd){if(Ze(t),n=Ke(Df.current),i=t.type,e!==null&&t.stateNode!=null)ul?e.memoizedProps!==r&&Pa(t):Ba(e,t,i,r);else{if(!r){if(t.stateNode===null)throw Error(`We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue.`);return Ga(t),null}e=Ye(),St(t)?bt(t,e):(e=fd(i,r,n,e,!0),t.stateNode=e,Pa(t))}return Ga(t),null}case 5:if(Ze(t),i=t.type,e!==null&&t.stateNode!=null)Ba(e,t,i,r);else{if(!r){if(t.stateNode===null)throw Error(`We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue.`);return Ga(t),null}if(a=Ye(),St(t))bt(t,a),zu(t.stateNode,i,r,a)&&(t.flags|=64);else{var o=Ke(Df.current);o=nl(i,r,o,a,t),Fa(t),La(o,t,!1,!1),t.stateNode=o,il(o,i,r,a)&&Pa(t)}}return Ga(t),Va(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,n),null;case 6:if(e&&t.stateNode!=null)n=e.memoizedProps,ul?n!==r&&Pa(t):dl&&(n===r?t.stateNode=e.stateNode:(e=Ke(Df.current),n=Ye(),Fa(t),t.stateNode=al(r,e,n,t)));else{if(typeof r!=`string`&&t.stateNode===null)throw Error(`We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue.`);if(e=Ke(Df.current),n=Ye(),St(t)){if(!fl)throw Error(`Expected prepareToHydrateHostTextInstance() to never be called. This error is likely caused by a bug in React. Please file an issue.`);if(e=t.stateNode,n=t.memoizedProps,i=!Ff,r=null,a=Mf,a!==null)switch(a.tag){case 3:i&&(i=qu(e,n,r),i!==null&&(gt(t,0).serverProps=i));break;case 27:case 5:r=a.memoizedProps,i&&(i=qu(e,n,r),i!==null&&(gt(t,0).serverProps=i))}Au(e,n,t,r)||yt(t,!0)}else Fa(t),t.stateNode=al(r,e,n,t)}return Ga(t),null;case 31:if(n=t.memoizedState,e===null||e.memoizedState!==null){if(r=St(t),n!==null){if(e===null){if(!r)throw Error(`A dehydrated suspense component was completed without a hydrated node. This is probably a bug in React.`);if(!fl)throw Error(`Expected prepareToHydrateHostActivityInstance() to never be called. This error is likely caused by a bug in React. Please file an issue.`);if(e=t.memoizedState,e=e===null?null:e.dehydrated,!e)throw Error(`Expected to have a hydrated activity instance. This error is likely caused by a bug in React. Please file an issue.`);ju(e,t),Ga(t),(t.mode&2)!==K&&n!==null&&(e=t.child,e!==null&&(t.treeBaseDuration-=e.treeBaseDuration))}else Dt(),wt(),!(t.flags&128)&&(n=t.memoizedState=null),t.flags|=4,Ga(t),(t.mode&2)!==K&&n!==null&&(e=t.child,e!==null&&(t.treeBaseDuration-=e.treeBaseDuration));e=!1}else n=Tt(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=n),e=!0;if(!e)return t.flags&256?(gr(t),t):(gr(t),null);if(t.flags&128)throw Error(`Client rendering an Activity suspended it again. This is a bug in React.`)}return Ga(t),null;case 13:if(r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(i=r,a=St(t),i!==null&&i.dehydrated!==null){if(e===null){if(!a)throw Error(`A dehydrated suspense component was completed without a hydrated node. This is probably a bug in React.`);if(!fl)throw Error(`Expected prepareToHydrateHostSuspenseInstance() to never be called. This error is likely caused by a bug in React. Please file an issue.`);if(a=t.memoizedState,a=a===null?null:a.dehydrated,!a)throw Error(`Expected to have a hydrated suspense instance. This error is likely caused by a bug in React. Please file an issue.`);Mu(a,t),Ga(t),(t.mode&2)!==K&&i!==null&&(i=t.child,i!==null&&(t.treeBaseDuration-=i.treeBaseDuration))}else Dt(),wt(),!(t.flags&128)&&(i=t.memoizedState=null),t.flags|=4,Ga(t),(t.mode&2)!==K&&i!==null&&(i=t.child,i!==null&&(t.treeBaseDuration-=i.treeBaseDuration));i=!1}else i=Tt(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=i),i=!0;if(!i)return t.flags&256?(gr(t),t):(gr(t),null)}return gr(t),t.flags&128?(t.lanes=n,(t.mode&2)!==K&&sn(t),t):(n=r!==null,e=e!==null&&e.memoizedState!==null,n&&(r=t.child,i=null,r.alternate!==null&&r.alternate.memoizedState!==null&&r.alternate.memoizedState.cachePool!==null&&(i=r.alternate.memoizedState.cachePool.pool),a=null,r.memoizedState!==null&&r.memoizedState.cachePool!==null&&(a=r.memoizedState.cachePool.pool),a!==i&&(r.flags|=2048)),n!==e&&n&&(t.child.flags|=8192),Ua(t,t.updateQueue),Ga(t),(t.mode&2)!==K&&n&&(e=t.child,e!==null&&(t.treeBaseDuration-=e.treeBaseDuration)),null);case 4:return Je(t),za(e,t),e===null&&ml(t.stateNode.containerInfo),Ga(t),null;case 10:return At(t.type,t),Ga(t),null;case 19:if(D(nh,t),r=t.memoizedState,r===null)return Ga(t),null;if(i=(t.flags&128)!=0,a=r.rendering,a===null)if(i)Wa(r,!1);else{if(n_!==jg||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(a=_r(e),a!==null){for(t.flags|=128,Wa(r,!1),e=a.updateQueue,t.updateQueue=e,Ua(t,e),t.subtreeFlags=0,e=n,n=t.child;n!==null;)dc(n,e),n=n.sibling;return k(nh,nh.current&eh|th,t),Pf&&Be(t,r.treeForkCount),t.child}e=e.sibling}r.tail!==null&&jd()>m_&&(t.flags|=128,i=!0,Wa(r,!1),t.lanes=4194304)}else{if(!i)if(e=_r(a),e!==null){if(t.flags|=128,i=!0,e=e.updateQueue,t.updateQueue=e,Ua(t,e),Wa(r,!0),r.tail===null&&r.tailMode===`hidden`&&!a.alternate&&!Pf)return Ga(t),null}else 2*jd()-r.renderingStartTime>m_&&n!==536870912&&(t.flags|=128,i=!0,Wa(r,!1),t.lanes=4194304);r.isBackwards?(a.sibling=t.child,t.child=a):(e=r.last,e===null?t.child=a:e.sibling=a,r.last=a)}return r.tail===null?(Ga(t),null):(e=r.tail,r.rendering=e,r.tail=e.sibling,r.renderingStartTime=jd(),e.sibling=null,n=nh.current,n=i?n&eh|th:n&eh,k(nh,n,t),Pf&&Be(t,r.treeForkCount),e);case 22:case 23:return gr(t),dr(t),r=t.memoizedState!==null,e===null?r&&(t.flags|=8192):e.memoizedState!==null!==r&&(t.flags|=8192),r?n&536870912&&!(t.flags&128)&&(Ga(t),t.subtreeFlags&6&&(t.flags|=8192)):Ga(t),n=t.updateQueue,n!==null&&Ua(t,n.retryQueue),n=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),r=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(r=t.memoizedState.cachePool.pool),r!==n&&(t.flags|=2048),e!==null&&D(qp,t),null;case 24:return n=null,e!==null&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),At(Xf,t),Ga(t),null;case 25:return null;case 30:return null}throw Error(`Unknown unit of work tag (`+t.tag+`). This error is likely caused by a bug in React. Please file an issue.`)}function qa(e,t){switch(He(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,(t.mode&2)!==K&&sn(t),t):null;case 3:return At(Xf,t),Je(t),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return Ze(t),null;case 31:if(t.memoizedState!==null){if(gr(t),t.alternate===null)throw Error(`Threw in newly mounted dehydrated component. This is likely a bug in React. Please file an issue.`);wt()}return e=t.flags,e&65536?(t.flags=e&-65537|128,(t.mode&2)!==K&&sn(t),t):null;case 13:if(gr(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(`Threw in newly mounted dehydrated component. This is likely a bug in React. Please file an issue.`);wt()}return e=t.flags,e&65536?(t.flags=e&-65537|128,(t.mode&2)!==K&&sn(t),t):null;case 19:return D(nh,t),null;case 4:return Je(t),null;case 10:return At(t.type,t),null;case 22:case 23:return gr(t),dr(t),e!==null&&D(qp,t),e=t.flags,e&65536?(t.flags=e&-65537|128,(t.mode&2)!==K&&sn(t),t):null;case 24:return At(Xf,t),null;case 25:return null;default:return null}}function Ja(e,t){switch(He(t),t.tag){case 3:At(Xf,t),Je(t);break;case 26:case 27:case 5:Ze(t);break;case 4:Je(t);break;case 31:t.memoizedState!==null&&gr(t);break;case 13:gr(t);break;case 19:D(nh,t);break;case 10:At(t.type,t);break;case 22:case 23:gr(t),dr(t),e!==null&&D(qp,t);break;case 24:At(Xf,t)}}function Ya(e){return(e.mode&2)!==K}function Xa(e,t){Ya(e)?(on(),Qa(t,e),rn()):Qa(t,e)}function Za(e,t,n){Ya(e)?(on(),V(n,e,t),rn()):V(n,e,t)}function Qa(e,t){try{var n=t.updateQueue,r=n===null?null:n.lastEffect;if(r!==null){var i=r.next;n=i;do{if((n.tag&e)===e&&(r=void 0,(e&ah)!==rh&&(J_=!0),r=L(t,_m,n),(e&ah)!==rh&&(J_=!1),r!==void 0&&typeof r!=`function`)){var a=void 0;a=(n.tag&oh)===0?(n.tag&ah)===0?`useEffect`:`useInsertionEffect`:`useLayoutEffect`;var o=void 0;o=r===null?` You returned null. If your effect does not require clean up, return undefined (or nothing).`:typeof r.then==`function`?`
|
|
212
|
+
`+l))}}a=t.stateNode,o=w(n)||`Component`,a.render||(n.prototype&&typeof n.prototype.render==`function`?console.error("No `render` method found on the %s instance: did you accidentally return an object from the constructor?",o):console.error("No `render` method found on the %s instance: you may have forgotten to define `render`.",o)),!a.getInitialState||a.getInitialState.isReactClassApproved||a.state||console.error(`getInitialState was defined on %s, a plain JavaScript class. This is only supported for classes created using React.createClass. Did you mean to define a state property instead?`,o),a.getDefaultProps&&!a.getDefaultProps.isReactClassApproved&&console.error(`getDefaultProps was defined on %s, a plain JavaScript class. This is only supported for classes created using React.createClass. Use a static property to define defaultProps instead.`,o),a.contextType&&console.error(`contextType was defined as an instance property on %s. Use a static property to define contextType instead.`,o),n.childContextTypes&&!Uh.has(n)&&(Uh.add(n),console.error(`%s uses the legacy childContextTypes API which was removed in React 19. Use React.createContext() instead. (https://react.dev/link/legacy-context)`,o)),n.contextTypes&&!Hh.has(n)&&(Hh.add(n),console.error(`%s uses the legacy contextTypes API which was removed in React 19. Use React.createContext() with static contextType instead. (https://react.dev/link/legacy-context)`,o)),typeof a.componentShouldUpdate==`function`&&console.error(`%s has a method called componentShouldUpdate(). Did you mean shouldComponentUpdate()? The name is phrased as a question because the function is expected to return a value.`,o),n.prototype&&n.prototype.isPureReactComponent&&a.shouldComponentUpdate!==void 0&&console.error(`%s has a method called shouldComponentUpdate(). shouldComponentUpdate should not be used when extending React.PureComponent. Please extend React.Component if shouldComponentUpdate is used.`,w(n)||`A pure component`),typeof a.componentDidUnmount==`function`&&console.error(`%s has a method called componentDidUnmount(). But there is no such lifecycle method. Did you mean componentWillUnmount()?`,o),typeof a.componentDidReceiveProps==`function`&&console.error(`%s has a method called componentDidReceiveProps(). But there is no such lifecycle method. If you meant to update the state in response to changing props, use componentWillReceiveProps(). If you meant to fetch data or run side-effects or mutations after React has updated the UI, use componentDidUpdate().`,o),typeof a.componentWillRecieveProps==`function`&&console.error(`%s has a method called componentWillRecieveProps(). Did you mean componentWillReceiveProps()?`,o),typeof a.UNSAFE_componentWillRecieveProps==`function`&&console.error(`%s has a method called UNSAFE_componentWillRecieveProps(). Did you mean UNSAFE_componentWillReceiveProps()?`,o),c=a.props!==r,a.props!==void 0&&c&&console.error("When calling super() in `%s`, make sure to pass up the same props that your component's constructor was passed.",o),a.defaultProps&&console.error(`Setting defaultProps as an instance property on %s is not supported and will be ignored. Instead, define defaultProps as a static property on %s.`,o,o),typeof a.getSnapshotBeforeUpdate!=`function`||typeof a.componentDidUpdate==`function`||Rh.has(n)||(Rh.add(n),console.error(`%s: getSnapshotBeforeUpdate() should be used with componentDidUpdate(). This component defines getSnapshotBeforeUpdate() only.`,w(n))),typeof a.getDerivedStateFromProps==`function`&&console.error(`%s: getDerivedStateFromProps() is defined as an instance method and will be ignored. Instead, declare it as a static method.`,o),typeof a.getDerivedStateFromError==`function`&&console.error(`%s: getDerivedStateFromError() is defined as an instance method and will be ignored. Instead, declare it as a static method.`,o),typeof n.getSnapshotBeforeUpdate==`function`&&console.error(`%s: getSnapshotBeforeUpdate() is defined as a static method and will be ignored. Instead, declare it as an instance method.`,o),(c=a.state)&&(typeof c!=`object`||Kc(c))&&console.error(`%s.state: must be set to an object or null`,o),typeof a.getChildContext==`function`&&typeof n.childContextTypes!=`object`&&console.error(`%s.getChildContext(): childContextTypes must be defined in order to use getChildContext().`,o),a=t.stateNode,a.props=r,a.state=t.memoizedState,a.refs={},Qn(t),o=n.contextType,a.context=typeof o==`object`&&o?It(o):bd,a.state===r&&(o=w(n)||`Component`,Bh.has(o)||(Bh.add(o),console.error(`%s: It is not recommended to assign props directly to state because updates to props won't be reflected in state. In most cases, it is better to use props directly.`,o))),t.mode&8&&Jp.recordLegacyContextWarning(t,a),Jp.recordUnsafeLifecycleWarnings(t,a),a.state=t.memoizedState,o=n.getDerivedStateFromProps,typeof o==`function`&&(Xi(t,n,o,r),a.state=t.memoizedState),typeof n.getDerivedStateFromProps==`function`||typeof a.getSnapshotBeforeUpdate==`function`||typeof a.UNSAFE_componentWillMount!=`function`&&typeof a.componentWillMount!=`function`||(o=a.state,typeof a.componentWillMount==`function`&&a.componentWillMount(),typeof a.UNSAFE_componentWillMount==`function`&&a.UNSAFE_componentWillMount(),o!==a.state&&(console.error(`%s.componentWillMount(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.`,T(t)||`Component`),Kh.enqueueReplaceState(a,a.state,null)),ar(t,r,a,i),ir(),a.state=t.memoizedState),typeof a.componentDidMount==`function`&&(t.flags|=4194308),(t.mode&16)!==K&&(t.flags|=134217728),a=!0}else if(e===null){a=t.stateNode;var d=t.memoizedProps;c=$i(n,d),a.props=c;var f=a.context;l=n.contextType,o=bd,typeof l==`object`&&l&&(o=It(l)),u=n.getDerivedStateFromProps,l=typeof u==`function`||typeof a.getSnapshotBeforeUpdate==`function`,d=t.pendingProps!==d,l||typeof a.UNSAFE_componentWillReceiveProps!=`function`&&typeof a.componentWillReceiveProps!=`function`||(d||f!==o)&&Qi(t,a,r,o),Km=!1;var p=t.memoizedState;a.state=p,ar(t,r,a,i),ir(),f=t.memoizedState,d||p!==f||Km?(typeof u==`function`&&(Xi(t,n,u,r),f=t.memoizedState),(c=Km||Zi(t,n,c,r,p,f,o))?(l||typeof a.UNSAFE_componentWillMount!=`function`&&typeof a.componentWillMount!=`function`||(typeof a.componentWillMount==`function`&&a.componentWillMount(),typeof a.UNSAFE_componentWillMount==`function`&&a.UNSAFE_componentWillMount()),typeof a.componentDidMount==`function`&&(t.flags|=4194308),(t.mode&16)!==K&&(t.flags|=134217728)):(typeof a.componentDidMount==`function`&&(t.flags|=4194308),(t.mode&16)!==K&&(t.flags|=134217728),t.memoizedProps=r,t.memoizedState=f),a.props=r,a.state=f,a.context=o,a=c):(typeof a.componentDidMount==`function`&&(t.flags|=4194308),(t.mode&16)!==K&&(t.flags|=134217728),a=!1)}else{a=t.stateNode,$n(e,t),o=t.memoizedProps,l=$i(n,o),a.props=l,u=t.pendingProps,p=a.context,f=n.contextType,c=bd,typeof f==`object`&&f&&(c=It(f)),d=n.getDerivedStateFromProps,(f=typeof d==`function`||typeof a.getSnapshotBeforeUpdate==`function`)||typeof a.UNSAFE_componentWillReceiveProps!=`function`&&typeof a.componentWillReceiveProps!=`function`||(o!==u||p!==c)&&Qi(t,a,r,c),Km=!1,p=t.memoizedState,a.state=p,ar(t,r,a,i),ir();var m=t.memoizedState;o!==u||p!==m||Km||e!==null&&e.dependencies!==null&&Pt(e.dependencies)?(typeof d==`function`&&(Xi(t,n,d,r),m=t.memoizedState),(l=Km||Zi(t,n,l,r,p,m,c)||e!==null&&e.dependencies!==null&&Pt(e.dependencies))?(f||typeof a.UNSAFE_componentWillUpdate!=`function`&&typeof a.componentWillUpdate!=`function`||(typeof a.componentWillUpdate==`function`&&a.componentWillUpdate(r,m,c),typeof a.UNSAFE_componentWillUpdate==`function`&&a.UNSAFE_componentWillUpdate(r,m,c)),typeof a.componentDidUpdate==`function`&&(t.flags|=4),typeof a.getSnapshotBeforeUpdate==`function`&&(t.flags|=1024)):(typeof a.componentDidUpdate!=`function`||o===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!=`function`||o===e.memoizedProps&&p===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=m),a.props=r,a.state=m,a.context=c,a=l):(typeof a.componentDidUpdate!=`function`||o===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!=`function`||o===e.memoizedProps&&p===e.memoizedState||(t.flags|=1024),a=!1)}if(c=a,ga(e,t),o=(t.flags&128)!=0,c||o){if(c=t.stateNode,ht(t),o&&typeof n.getDerivedStateFromError!=`function`)n=null,rp=-1;else if(n=sm(c),t.mode&8){pe(!0);try{sm(c)}finally{pe(!1)}}t.flags|=1,e!==null&&o?(t.child=Fm(t,e.child,null,i),t.child=Fm(t,null,n,i)):oa(e,t,n,i),t.memoizedState=c.state,e=t.child}else e=ja(e,t,i);return i=t.stateNode,a&&i.props!==r&&(tg||console.error("It looks like %s is reassigning its own `this.props` while rendering. This is not supported and can lead to confusing bugs.",T(t)||`a component`),tg=!0),e}function ba(e,t,n,r){return wt(),t.flags|=256,oa(e,t,n,r),t.child}function xa(e,t){t&&t.childContextTypes&&console.error(`childContextTypes cannot be defined on a function component.
|
|
213
|
+
%s.childContextTypes = ...`,t.displayName||t.name||`Component`),typeof t.getDerivedStateFromProps==`function`&&(e=w(t)||`Unknown`,eg[e]||(console.error(`%s: Function components do not support getDerivedStateFromProps.`,e),eg[e]=!0)),typeof t.contextType==`object`&&t.contextType!==null&&(t=w(t)||`Unknown`,Qh[t]||(console.error(`%s: Function components do not support contextType.`,t),Qh[t]=!0))}function Sa(e){return{baseLanes:e,cachePool:Tn()}}function Ca(e,t,n){return e=e===null?0:e.childLanes&~n,t&&(e|=o_),e}function wa(e,t,n){var r=t.pendingProps;o(t)&&(t.flags|=128);var i=!1,a=(t.flags&128)!=0,s;if((s=a)||(s=e!==null&&e.memoizedState===null?!1:(nh.current&th)!==0),s&&(i=!0,t.flags&=-129),s=(t.flags&32)!=0,t.flags&=-33,e===null){if(Pf){if(i?fr(t):hr(t),(e=Nf)?(n=Ou(e,Rf),n!==null&&(s={dehydrated:n,treeContext:Ue(),retryLane:536870912,hydrationErrors:null},t.memoizedState=s,s=hc(n),s.return=t,t.child=s,Mf=t,Nf=null)):n=null,n===null)throw vt(t,e),yt(t);return pu(n)?t.lanes=32:t.lanes=536870912,null}var c=r.children;return r=r.fallback,i?(hr(t),i=t.mode,c=Ea({mode:`hidden`,children:c},i),r=pc(r,i,n,null),c.return=t,r.return=t,c.sibling=r,t.child=c,r=t.child,r.memoizedState=Sa(n),r.childLanes=Ca(e,s,n),t.memoizedState=ig,da(null,r)):(fr(t),Ta(t,c))}var l=e.memoizedState;if(l!==null&&(c=l.dehydrated,c!==null)){if(a)t.flags&256?(fr(t),t.flags&=-257,t=Da(e,t,n)):t.memoizedState===null?(hr(t),c=r.fallback,i=t.mode,r=Ea({mode:`visible`,children:r.children},i),c=pc(c,i,n,null),c.flags|=2,r.return=t,c.return=t,r.sibling=c,t.child=r,Fm(t,e.child,null,n),r=t.child,r.memoizedState=Sa(n),r.childLanes=Ca(e,s,n),t.memoizedState=ig,t=da(null,r)):(hr(t),t.child=e.child,t.flags|=128,t=null);else if(fr(t),_t(),n&536870912&&Cs(t),pu(c))i=mu(c),s=i.digest,c=i.message,r=i.stack,i=i.componentStack,c=Error(c||`The server could not finish this Suspense boundary, likely due to an error during server rendering. Switched to client rendering.`),c.stack=r||``,c.digest=s,s=i===void 0?null:i,r={value:c,source:null,stack:s},typeof s==`string`&&hf.set(c,r),Et(r),t=Da(e,t,n);else if(Xh||Nt(e,t,n,!1),s=(n&e.childLanes)!==0,Xh||s){if(s=zg,s!==null&&(r=ce(s,n),r!==0&&r!==l.retryLane))throw l.retryLane=r,Yn(e,r),ls(s,e,r),Yh;fu(c)||ws(),t=Da(e,t,n)}else fu(c)?(t.flags|=192,t.child=e.child,t=null):(e=l.treeContext,fl&&(Nf=Cu(c),Mf=t,Pf=!0,Lf=null,Ff=!1,If=null,Rf=!1,e!==null&&We(t,e)),t=Ta(t,r.children),t.flags|=4096);return t}return i?(hr(t),c=r.fallback,i=t.mode,l=e.child,a=l.sibling,r=lc(l,{mode:`hidden`,children:r.children}),r.subtreeFlags=l.subtreeFlags&65011712,a===null?(c=pc(c,i,n,null),c.flags|=2):c=lc(a,c),c.return=t,r.return=t,r.sibling=c,t.child=r,da(null,r),r=t.child,c=e.child.memoizedState,c===null?c=Sa(n):(i=c.cachePool,i===null?i=Tn():(l=ll?Xf._currentValue:Xf._currentValue2,i=i.parent===l?i:{parent:l,pool:l}),c={baseLanes:c.baseLanes|n,cachePool:i}),r.memoizedState=c,r.childLanes=Ca(e,s,n),t.memoizedState=ig,da(e.child,r)):(l!==null&&(n&62914560)===n&&(n&e.lanes)!==0&&Cs(t),fr(t),n=e.child,e=n.sibling,n=lc(n,{mode:`visible`,children:r.children}),n.return=t,n.sibling=null,e!==null&&(s=t.deletions,s===null?(t.deletions=[e],t.flags|=16):s.push(e)),t.child=n,t.memoizedState=null,n)}function Ta(e,t){return t=Ea({mode:`visible`,children:t},e.mode),t.return=e,e.child=t}function Ea(e,t){return e=c(22,e,null,t),e.lanes=0,e}function Da(e,t,n){return Fm(t,e.child,null,n),e=Ta(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Oa(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),jt(e.return,t,n)}function ka(e,t,n,r,i,a){var o=e.memoizedState;o===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i,treeForkCount:a}:(o.isBackwards=t,o.rendering=null,o.renderingStartTime=0,o.last=r,o.tail=n,o.tailMode=i,o.treeForkCount=a)}function Aa(e,t,n){var r=t.pendingProps,i=r.revealOrder,a=r.tail,o=r.children,s=nh.current;if((r=(s&th)!==0)?(s=s&eh|th,t.flags|=128):s&=eh,k(nh,s,t),s=i??`null`,i!==`forwards`&&i!==`unstable_legacy-backwards`&&i!==`together`&&i!==`independent`&&!ng[s])if(ng[s]=!0,i==null)console.error(`The default for the <SuspenseList revealOrder="..."> prop is changing. To be future compatible you must explictly specify either "independent" (the current default), "together", "forwards" or "legacy_unstable-backwards".`);else if(i===`backwards`)console.error(`The rendering order of <SuspenseList revealOrder="backwards"> is changing. To be future compatible you must specify revealOrder="legacy_unstable-backwards" instead.`);else if(typeof i==`string`)switch(i.toLowerCase()){case`together`:case`forwards`:case`backwards`:case`independent`:console.error(`"%s" is not a valid value for revealOrder on <SuspenseList />. Use lowercase "%s" instead.`,i,i.toLowerCase());break;case`forward`:case`backward`:console.error(`"%s" is not a valid value for revealOrder on <SuspenseList />. React uses the -s suffix in the spelling. Use "%ss" instead.`,i,i.toLowerCase());break;default:console.error(`"%s" is not a supported revealOrder on <SuspenseList />. Did you mean "independent", "together", "forwards" or "backwards"?`,i)}else console.error(`%s is not a supported value for revealOrder on <SuspenseList />. Did you mean "independent", "together", "forwards" or "backwards"?`,i);s=a??`null`,rg[s]||(a==null?(i===`forwards`||i===`backwards`||i===`unstable_legacy-backwards`)&&(rg[s]=!0,console.error(`The default for the <SuspenseList tail="..."> prop is changing. To be future compatible you must explictly specify either "visible" (the current default), "collapsed" or "hidden".`)):a!==`visible`&&a!==`collapsed`&&a!==`hidden`?(rg[s]=!0,console.error(`"%s" is not a supported value for tail on <SuspenseList />. Did you mean "visible", "collapsed" or "hidden"?`,a)):i!==`forwards`&&i!==`backwards`&&i!==`unstable_legacy-backwards`&&(rg[s]=!0,console.error(`<SuspenseList tail="%s" /> is only valid if revealOrder is "forwards" or "backwards". Did you mean to specify revealOrder="forwards"?`,a)));a:if((i===`forwards`||i===`backwards`||i===`unstable_legacy-backwards`)&&o!=null&&!1!==o)if(Kc(o)){for(s=0;s<o.length;s++)if(!Gn(o[s],s))break a}else if(s=C(o),typeof s==`function`){if(s=s.call(o))for(var c=s.next(),l=0;!c.done;c=s.next()){if(!Gn(c.value,l))break a;l++}}else console.error(`A single row was passed to a <SuspenseList revealOrder="%s" />. This is not useful since it needs multiple rows. Did you mean to pass multiple children or an array?`,i);if(oa(e,t,o,n),Pf?(Ge(),o=yf):o=0,!r&&e!==null&&e.flags&128)a:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Oa(e,n,t);else if(e.tag===19)Oa(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break a;for(;e.sibling===null;){if(e.return===null||e.return===t)break a;e=e.return}e.sibling.return=e.return,e=e.sibling}switch(i){case`forwards`:for(n=t.child,i=null;n!==null;)e=n.alternate,e!==null&&_r(e)===null&&(i=n),n=n.sibling;n=i,n===null?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),ka(t,!1,i,n,a,o);break;case`backwards`:case`unstable_legacy-backwards`:for(n=null,i=t.child,t.child=null;i!==null;){if(e=i.alternate,e!==null&&_r(e)===null){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}ka(t,!0,n,null,a,o);break;case`together`:ka(t,!1,null,null,void 0,o);break;default:t.memoizedState=null}return t.child}function ja(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),rp=-1,r_|=t.lanes,(n&t.childLanes)===0)if(e!==null){if(Nt(e,t,n,!1),(n&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(`Resuming work not yet implemented.`);if(t.child!==null){for(e=t.child,n=lc(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=lc(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function B(e,t){return(e.lanes&t)===0?(e=e.dependencies,!!(e!==null&&Pt(e))):!0}function Ma(e,t,n){switch(t.tag){case 3:qe(t,t.stateNode.containerInfo),kt(t,Xf,e.memoizedState.cache),wt();break;case 27:case 5:Xe(t);break;case 4:qe(t,t.stateNode.containerInfo);break;case 10:kt(t,t.type,t.memoizedProps.value);break;case 12:(n&t.childLanes)!==0&&(t.flags|=4),t.flags|=2048;var r=t.stateNode;r.effectDuration=-0,r.passiveEffectDuration=-0;break;case 31:if(t.memoizedState!==null)return t.flags|=128,pr(t),null;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated===null?(n&t.child.childLanes)===0?(fr(t),e=ja(e,t,n),e===null?null:e.sibling):wa(e,t,n):(fr(t),t.flags|=128,null);fr(t);break;case 19:var i=(e.flags&128)!=0;if(r=(n&t.childLanes)!==0,r||=(Nt(e,t,n,!1),(n&t.childLanes)!==0),i){if(r)return Aa(e,t,n);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),k(nh,nh.current,t),r)break;return null;case 22:return t.lanes=0,ua(e,t,n,t.pendingProps);case 24:kt(t,Xf,e.memoizedState.cache)}return ja(e,t,n)}function Na(e,t,n){if(t._debugNeedsRemount&&e!==null){n=dc(t.type,t.key,t.pendingProps,t._debugOwner||null,t.mode,t.lanes),n._debugStack=t._debugStack,n._debugTask=t._debugTask;var r=t.return;if(r===null)throw Error(`Cannot swap the root fiber.`);if(e.alternate=null,t.alternate=null,n.index=t.index,n.sibling=t.sibling,n.return=t.return,n.ref=t.ref,n._debugInfo=t._debugInfo,t===r.child)r.child=n;else{var i=r.child;if(i===null)throw Error(`Expected parent to have a child.`);for(;i.sibling!==t;)if(i=i.sibling,i===null)throw Error(`Expected to find the previous sibling.`);i.sibling=n}return t=r.deletions,t===null?(r.deletions=[e],r.flags|=16):t.push(e),n.flags|=2,n}if(e!==null)if(e.memoizedProps!==t.pendingProps||t.type!==e.type)Xh=!0;else{if(!B(e,n)&&!(t.flags&128))return Xh=!1,Ma(e,t,n);Xh=!!(e.flags&131072)}else Xh=!1,(r=Pf)&&(Ge(),r=(t.flags&1048576)!=0),r&&(r=t.index,Ge(),Ve(t,yf,r));switch(t.lanes=0,t.tag){case 16:a:if(r=t.pendingProps,e=An(t.elementType),t.type=e,typeof e==`function`)cc(e)?(r=$i(e,r),t.tag=1,t.type=e=nc(e),t=ya(null,t,e,r,n)):(t.tag=0,xa(t,e),t.type=e=nc(e),t=_a(null,t,e,r,n));else{if(e!=null){if(i=e.$$typeof,i===Lc){t.tag=11,t.type=e=rc(e),t=sa(null,t,e,r,n);break a}else if(i===Bc){t.tag=14,t=ca(null,t,e,r,n);break a}}throw t=``,typeof e==`object`&&e&&e.$$typeof===Vc&&(t=` Did you wrap a component in React.lazy() more than once?`),e=w(e)||e,Error(`Element type is invalid. Received a promise that resolves to: `+e+`. Lazy element type must resolve to a class or function.`+t)}return t;case 0:return _a(e,t,t.type,t.pendingProps,n);case 1:return r=t.type,i=$i(r,t.pendingProps),ya(e,t,r,i,n);case 3:a:{if(qe(t,t.stateNode.containerInfo),e===null)throw Error(`Should have a current fiber. This is a bug in React.`);var a=t.pendingProps;i=t.memoizedState,r=i.element,$n(e,t),ar(t,a,null,n);var o=t.memoizedState;if(a=o.cache,kt(t,Xf,a),a!==i.cache&&Mt(t,[Xf],n,!0),ir(),a=o.element,fl&&i.isDehydrated)if(i={element:a,isDehydrated:!1,cache:o.cache},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){t=ba(e,t,a,n);break a}else if(a!==r){r=ze(Error(`This root received an early update, before anything was able hydrate. Switched the entire root to client rendering.`),t),Et(r),t=ba(e,t,a,n);break a}else for(fl&&(Nf=xu(t.stateNode.containerInfo),Mf=t,Pf=!0,Lf=null,Ff=!1,If=null,Rf=!0),e=Im(t,null,a,n),t.child=e;e;)e.flags=e.flags&-3|4096,e=e.sibling;else{if(wt(),a===r){t=ja(e,t,n);break a}oa(e,t,a,n)}t=t.child}return t;case 26:if(Zu)return ga(e,t),e===null?(e=ed(t.type,null,t.pendingProps,null))?t.memoizedState=e:Pf||(t.stateNode=od(t.type,t.pendingProps,Ke(Df.current),t)):t.memoizedState=ed(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:if(dd)return Xe(t),e===null&&dd&&Pf&&(i=Ke(Df.current),r=Ye(),i=t.stateNode=fd(t.type,t.pendingProps,i,r,!1),Ff||(r=Ku(i,t.type,t.pendingProps,r),r!==null&&(gt(t,0).serverProps=r)),Mf=t,Rf=!0,Nf=wu(t.type,i,Nf)),oa(e,t,t.pendingProps.children,n),ga(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&Pf&&(a=Ye(),r=Yu(t.type,t.pendingProps,a),i=Nf,(o=!i)||(o=Tu(i,t.type,t.pendingProps,Rf),o===null?a=!1:(t.stateNode=o,Ff||(a=Ku(o,t.type,t.pendingProps,a),a!==null&&(gt(t,0).serverProps=a)),Mf=t,Nf=bu(o),Rf=!1,a=!0),o=!a),o&&(r&&vt(t,i),yt(t))),Xe(t),i=t.type,a=t.pendingProps,o=e===null?null:e.memoizedProps,r=a.children,il(i,a)?r=null:o!==null&&il(i,o)&&(t.flags|=32),t.memoizedState!==null&&(i=Sr(e,t,Tr,null,null,n),ll?Ml._currentValue=i:Ml._currentValue2=i),ga(e,t),oa(e,t,r,n),t.child;case 6:return e===null&&Pf&&(e=t.pendingProps,n=Ye(),e=Xu(e,n),n=Nf,(r=!n)||(r=Eu(n,t.pendingProps,Rf),r===null?r=!1:(t.stateNode=r,Mf=t,Nf=null,r=!0),r=!r),r&&(e&&vt(t,n),yt(t))),null;case 13:return wa(e,t,n);case 4:return qe(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Fm(t,null,r,n):oa(e,t,r,n),t.child;case 11:return sa(e,t,t.type,t.pendingProps,n);case 7:return oa(e,t,t.pendingProps,n),t.child;case 8:return oa(e,t,t.pendingProps.children,n),t.child;case 12:return t.flags|=4,t.flags|=2048,r=t.stateNode,r.effectDuration=-0,r.passiveEffectDuration=-0,oa(e,t,t.pendingProps.children,n),t.child;case 10:return r=t.type,i=t.pendingProps,a=i.value,`value`in i||ag||(ag=!0,console.error("The `value` prop is required for the `<Context.Provider>`. Did you misspell it or forget to pass it?")),kt(t,r,a),oa(e,t,i.children,n),t.child;case 9:return i=t.type._context,r=t.pendingProps.children,typeof r!=`function`&&console.error(`A context consumer was rendered with multiple children, or a child that isn't a function. A context consumer expects a single child that is a function. If you did pass a function, make sure there is no trailing or leading whitespace around it.`),Ft(t),i=It(i),r=am(r,i,void 0),t.flags|=1,oa(e,t,r,n),t.child;case 14:return ca(e,t,t.type,t.pendingProps,n);case 15:return la(e,t,t.type,t.pendingProps,n);case 19:return Aa(e,t,n);case 31:return ha(e,t,n);case 22:return ua(e,t,n,t.pendingProps);case 24:return Ft(t),r=It(Xf),e===null?(i=Cn(),i===null&&(i=zg,a=zt(),i.pooledCache=a,Bt(a),a!==null&&(i.pooledCacheLanes|=n),i=a),t.memoizedState={parent:r,cache:i},Qn(t),kt(t,Xf,i)):((e.lanes&n)!==0&&($n(e,t),ar(t,null,null,n),ir()),i=e.memoizedState,a=t.memoizedState,i.parent===r?(r=a.cache,kt(t,Xf,r),r!==i.cache&&Mt(t,[Xf],n,!0)):(i={parent:r,cache:r},t.memoizedState=i,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=i),kt(t,Xf,r))),oa(e,t,t.pendingProps.children,n),t.child;case 29:throw t.pendingProps}throw Error(`Unknown unit of work tag (`+t.tag+`). This error is likely caused by a bug in React. Please file an issue.`)}function Pa(e){e.flags|=4}function Fa(e){dl&&(e.flags|=8)}function Ia(e,t){if(e!==null&&e.child===t.child)return!1;if(t.flags&16)return!0;for(e=t.child;e!==null;){if(e.flags&8218||e.subtreeFlags&8218)return!0;e=e.sibling}return!1}function La(e,t,n,r){if(ul)for(n=t.child;n!==null;){if(n.tag===5||n.tag===6)nl(e,n.stateNode);else if(!(n.tag===4||dd&&n.tag===27)&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}else if(dl)for(var i=t.child;i!==null;){if(i.tag===5){var a=i.stateNode;n&&r&&(a=uu(a,i.type,i.memoizedProps)),nl(e,a)}else if(i.tag===6)a=i.stateNode,n&&r&&(a=du(a,i.memoizedProps)),nl(e,a);else if(i.tag!==4){if(i.tag===22&&i.memoizedState!==null)a=i.child,a!==null&&(a.return=i),La(e,i,!0,!0);else if(i.child!==null){i.child.return=i,i=i.child;continue}}if(i===t)break;for(;i.sibling===null;){if(i.return===null||i.return===t)return;i=i.return}i.sibling.return=i.return,i=i.sibling}}function Ra(e,t,n,r){var i=!1;if(dl)for(var a=t.child;a!==null;){if(a.tag===5){var o=a.stateNode;n&&r&&(o=uu(o,a.type,a.memoizedProps)),su(e,o)}else if(a.tag===6)o=a.stateNode,n&&r&&(o=du(o,a.memoizedProps)),su(e,o);else if(a.tag!==4){if(a.tag===22&&a.memoizedState!==null)i=a.child,i!==null&&(i.return=a),Ra(e,a,!0,!0),i=!0;else if(a.child!==null){a.child.return=a,a=a.child;continue}}if(a===t)break;for(;a.sibling===null;){if(a.return===null||a.return===t)return i;a=a.return}a.sibling.return=a.return,a=a.sibling}return i}function za(e,t){if(dl&&Ia(e,t)){e=t.stateNode;var n=e.containerInfo,r=ou();Ra(r,t,!1,!1),e.pendingChildren=r,Pa(t),cu(n,r)}}function Ba(e,t,n,r){if(ul)e.memoizedProps!==r&&Pa(t);else if(dl){var i=e.stateNode,a=e.memoizedProps;if((e=Ia(e,t))||a!==r){var o=Ye();a=au(i,n,a,r,!e,null),a===i?t.stateNode=i:(Fa(t),rl(a,n,r,o)&&Pa(t),t.stateNode=a,e&&La(a,t,!1,!1))}else t.stateNode=i}}function Va(e,t,n,r,i){if((e.mode&32)!==K&&(n===null?Cl(t,r):wl(t,n,r))){if(e.flags|=16777216,(i&335544128)===i||Tl(t,r))if(El(e.stateNode,t,r))e.flags|=8192;else if(bs())e.flags|=8192;else throw Em=Tm,Cm}else e.flags&=-16777217}function Ha(e,t){if(cd(t)){if(e.flags|=16777216,!ld(t))if(bs())e.flags|=8192;else throw Em=Tm,Cm}else e.flags&=-16777217}function Ua(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag===22?536870912:M(),e.lanes|=t,s_|=t)}function Wa(e,t){if(!Pf)switch(e.tailMode){case`hidden`:t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case`collapsed`:n=e.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function Ga(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)if((e.mode&2)!==K){for(var i=e.selfBaseDuration,a=e.child;a!==null;)n|=a.lanes|a.childLanes,r|=a.subtreeFlags&65011712,r|=a.flags&65011712,i+=a.treeBaseDuration,a=a.sibling;e.treeBaseDuration=i}else for(i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags&65011712,r|=i.flags&65011712,i.return=e,i=i.sibling;else if((e.mode&2)!==K){i=e.actualDuration,a=e.selfBaseDuration;for(var o=e.child;o!==null;)n|=o.lanes|o.childLanes,r|=o.subtreeFlags,r|=o.flags,i+=o.actualDuration,a+=o.treeBaseDuration,o=o.sibling;e.actualDuration=i,e.treeBaseDuration=a}else for(i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags,r|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function Ka(e,t,n){var r=t.pendingProps;switch(He(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Ga(t),null;case 1:return Ga(t),null;case 3:return n=t.stateNode,r=null,e!==null&&(r=e.memoizedState.cache),t.memoizedState.cache!==r&&(t.flags|=2048),At(Xf,t),Je(t),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(e===null||e.child===null)&&(St(t)?(Dt(),Pa(t)):e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,Tt())),za(e,t),Ga(t),null;case 26:if(Zu){var i=t.type,a=t.memoizedState;return e===null?(Pa(t),a===null?(Ga(t),Va(t,i,null,r,n)):(Ga(t),Ha(t,a))):a?a===e.memoizedState?(Ga(t),t.flags&=-16777217):(Pa(t),Ga(t),Ha(t,a)):(a=e.memoizedProps,ul?a!==r&&Pa(t):Ba(e,t,i,r),Ga(t),Va(t,i,a,r,n)),null}case 27:if(dd){if(Ze(t),n=Ke(Df.current),i=t.type,e!==null&&t.stateNode!=null)ul?e.memoizedProps!==r&&Pa(t):Ba(e,t,i,r);else{if(!r){if(t.stateNode===null)throw Error(`We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue.`);return Ga(t),null}e=Ye(),St(t)?bt(t,e):(e=fd(i,r,n,e,!0),t.stateNode=e,Pa(t))}return Ga(t),null}case 5:if(Ze(t),i=t.type,e!==null&&t.stateNode!=null)Ba(e,t,i,r);else{if(!r){if(t.stateNode===null)throw Error(`We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue.`);return Ga(t),null}if(a=Ye(),St(t))bt(t,a),zu(t.stateNode,i,r,a)&&(t.flags|=64);else{var o=Ke(Df.current);o=tl(i,r,o,a,t),Fa(t),La(o,t,!1,!1),t.stateNode=o,rl(o,i,r,a)&&Pa(t)}}return Ga(t),Va(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,n),null;case 6:if(e&&t.stateNode!=null)n=e.memoizedProps,ul?n!==r&&Pa(t):dl&&(n===r?t.stateNode=e.stateNode:(e=Ke(Df.current),n=Ye(),Fa(t),t.stateNode=al(r,e,n,t)));else{if(typeof r!=`string`&&t.stateNode===null)throw Error(`We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue.`);if(e=Ke(Df.current),n=Ye(),St(t)){if(!fl)throw Error(`Expected prepareToHydrateHostTextInstance() to never be called. This error is likely caused by a bug in React. Please file an issue.`);if(e=t.stateNode,n=t.memoizedProps,i=!Ff,r=null,a=Mf,a!==null)switch(a.tag){case 3:i&&(i=qu(e,n,r),i!==null&&(gt(t,0).serverProps=i));break;case 27:case 5:r=a.memoizedProps,i&&(i=qu(e,n,r),i!==null&&(gt(t,0).serverProps=i))}Au(e,n,t,r)||yt(t,!0)}else Fa(t),t.stateNode=al(r,e,n,t)}return Ga(t),null;case 31:if(n=t.memoizedState,e===null||e.memoizedState!==null){if(r=St(t),n!==null){if(e===null){if(!r)throw Error(`A dehydrated suspense component was completed without a hydrated node. This is probably a bug in React.`);if(!fl)throw Error(`Expected prepareToHydrateHostActivityInstance() to never be called. This error is likely caused by a bug in React. Please file an issue.`);if(e=t.memoizedState,e=e===null?null:e.dehydrated,!e)throw Error(`Expected to have a hydrated activity instance. This error is likely caused by a bug in React. Please file an issue.`);ju(e,t),Ga(t),(t.mode&2)!==K&&n!==null&&(e=t.child,e!==null&&(t.treeBaseDuration-=e.treeBaseDuration))}else Dt(),wt(),!(t.flags&128)&&(n=t.memoizedState=null),t.flags|=4,Ga(t),(t.mode&2)!==K&&n!==null&&(e=t.child,e!==null&&(t.treeBaseDuration-=e.treeBaseDuration));e=!1}else n=Tt(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=n),e=!0;if(!e)return t.flags&256?(gr(t),t):(gr(t),null);if(t.flags&128)throw Error(`Client rendering an Activity suspended it again. This is a bug in React.`)}return Ga(t),null;case 13:if(r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(i=r,a=St(t),i!==null&&i.dehydrated!==null){if(e===null){if(!a)throw Error(`A dehydrated suspense component was completed without a hydrated node. This is probably a bug in React.`);if(!fl)throw Error(`Expected prepareToHydrateHostSuspenseInstance() to never be called. This error is likely caused by a bug in React. Please file an issue.`);if(a=t.memoizedState,a=a===null?null:a.dehydrated,!a)throw Error(`Expected to have a hydrated suspense instance. This error is likely caused by a bug in React. Please file an issue.`);Mu(a,t),Ga(t),(t.mode&2)!==K&&i!==null&&(i=t.child,i!==null&&(t.treeBaseDuration-=i.treeBaseDuration))}else Dt(),wt(),!(t.flags&128)&&(i=t.memoizedState=null),t.flags|=4,Ga(t),(t.mode&2)!==K&&i!==null&&(i=t.child,i!==null&&(t.treeBaseDuration-=i.treeBaseDuration));i=!1}else i=Tt(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=i),i=!0;if(!i)return t.flags&256?(gr(t),t):(gr(t),null)}return gr(t),t.flags&128?(t.lanes=n,(t.mode&2)!==K&&sn(t),t):(n=r!==null,e=e!==null&&e.memoizedState!==null,n&&(r=t.child,i=null,r.alternate!==null&&r.alternate.memoizedState!==null&&r.alternate.memoizedState.cachePool!==null&&(i=r.alternate.memoizedState.cachePool.pool),a=null,r.memoizedState!==null&&r.memoizedState.cachePool!==null&&(a=r.memoizedState.cachePool.pool),a!==i&&(r.flags|=2048)),n!==e&&n&&(t.child.flags|=8192),Ua(t,t.updateQueue),Ga(t),(t.mode&2)!==K&&n&&(e=t.child,e!==null&&(t.treeBaseDuration-=e.treeBaseDuration)),null);case 4:return Je(t),za(e,t),e===null&&ml(t.stateNode.containerInfo),Ga(t),null;case 10:return At(t.type,t),Ga(t),null;case 19:if(D(nh,t),r=t.memoizedState,r===null)return Ga(t),null;if(i=(t.flags&128)!=0,a=r.rendering,a===null)if(i)Wa(r,!1);else{if(n_!==jg||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(a=_r(e),a!==null){for(t.flags|=128,Wa(r,!1),e=a.updateQueue,t.updateQueue=e,Ua(t,e),t.subtreeFlags=0,e=n,n=t.child;n!==null;)uc(n,e),n=n.sibling;return k(nh,nh.current&eh|th,t),Pf&&Be(t,r.treeForkCount),t.child}e=e.sibling}r.tail!==null&&jd()>m_&&(t.flags|=128,i=!0,Wa(r,!1),t.lanes=4194304)}else{if(!i)if(e=_r(a),e!==null){if(t.flags|=128,i=!0,e=e.updateQueue,t.updateQueue=e,Ua(t,e),Wa(r,!0),r.tail===null&&r.tailMode===`hidden`&&!a.alternate&&!Pf)return Ga(t),null}else 2*jd()-r.renderingStartTime>m_&&n!==536870912&&(t.flags|=128,i=!0,Wa(r,!1),t.lanes=4194304);r.isBackwards?(a.sibling=t.child,t.child=a):(e=r.last,e===null?t.child=a:e.sibling=a,r.last=a)}return r.tail===null?(Ga(t),null):(e=r.tail,r.rendering=e,r.tail=e.sibling,r.renderingStartTime=jd(),e.sibling=null,n=nh.current,n=i?n&eh|th:n&eh,k(nh,n,t),Pf&&Be(t,r.treeForkCount),e);case 22:case 23:return gr(t),dr(t),r=t.memoizedState!==null,e===null?r&&(t.flags|=8192):e.memoizedState!==null!==r&&(t.flags|=8192),r?n&536870912&&!(t.flags&128)&&(Ga(t),t.subtreeFlags&6&&(t.flags|=8192)):Ga(t),n=t.updateQueue,n!==null&&Ua(t,n.retryQueue),n=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),r=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(r=t.memoizedState.cachePool.pool),r!==n&&(t.flags|=2048),e!==null&&D(qp,t),null;case 24:return n=null,e!==null&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),At(Xf,t),Ga(t),null;case 25:return null;case 30:return null}throw Error(`Unknown unit of work tag (`+t.tag+`). This error is likely caused by a bug in React. Please file an issue.`)}function qa(e,t){switch(He(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,(t.mode&2)!==K&&sn(t),t):null;case 3:return At(Xf,t),Je(t),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return Ze(t),null;case 31:if(t.memoizedState!==null){if(gr(t),t.alternate===null)throw Error(`Threw in newly mounted dehydrated component. This is likely a bug in React. Please file an issue.`);wt()}return e=t.flags,e&65536?(t.flags=e&-65537|128,(t.mode&2)!==K&&sn(t),t):null;case 13:if(gr(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(`Threw in newly mounted dehydrated component. This is likely a bug in React. Please file an issue.`);wt()}return e=t.flags,e&65536?(t.flags=e&-65537|128,(t.mode&2)!==K&&sn(t),t):null;case 19:return D(nh,t),null;case 4:return Je(t),null;case 10:return At(t.type,t),null;case 22:case 23:return gr(t),dr(t),e!==null&&D(qp,t),e=t.flags,e&65536?(t.flags=e&-65537|128,(t.mode&2)!==K&&sn(t),t):null;case 24:return At(Xf,t),null;case 25:return null;default:return null}}function Ja(e,t){switch(He(t),t.tag){case 3:At(Xf,t),Je(t);break;case 26:case 27:case 5:Ze(t);break;case 4:Je(t);break;case 31:t.memoizedState!==null&&gr(t);break;case 13:gr(t);break;case 19:D(nh,t);break;case 10:At(t.type,t);break;case 22:case 23:gr(t),dr(t),e!==null&&D(qp,t);break;case 24:At(Xf,t)}}function Ya(e){return(e.mode&2)!==K}function Xa(e,t){Ya(e)?(on(),Qa(t,e),rn()):Qa(t,e)}function Za(e,t,n){Ya(e)?(on(),V(n,e,t),rn()):V(n,e,t)}function Qa(e,t){try{var n=t.updateQueue,r=n===null?null:n.lastEffect;if(r!==null){var i=r.next;n=i;do{if((n.tag&e)===e&&(r=void 0,(e&ah)!==rh&&(J_=!0),r=L(t,_m,n),(e&ah)!==rh&&(J_=!1),r!==void 0&&typeof r!=`function`)){var a=void 0;a=(n.tag&oh)===0?(n.tag&ah)===0?`useEffect`:`useInsertionEffect`:`useLayoutEffect`;var o=void 0;o=r===null?` You returned null. If your effect does not require clean up, return undefined (or nothing).`:typeof r.then==`function`?`
|
|
214
214
|
|
|
215
215
|
It looks like you wrote `+a+`(async () => ...) or returned a Promise. Instead, write the async function inside your effect and call it immediately:
|
|
216
216
|
|
|
@@ -223,11 +223,11 @@ It looks like you wrote `+a+`(async () => ...) or returned a Promise. Instead, w
|
|
|
223
223
|
fetchData();
|
|
224
224
|
}, [someId]); // Or [] if effect doesn't need props or state
|
|
225
225
|
|
|
226
|
-
Learn more about data fetching with Hooks: https://react.dev/link/hooks-data-fetching`:` You returned: `+r,L(t,function(e,t){console.error(`%s must not return anything besides a function, which is used for clean-up.%s`,e,t)},a,o)}n=n.next}while(n!==i)}}catch(e){Ws(t,t.return,e)}}function V(e,t,n){try{var r=t.updateQueue,i=r===null?null:r.lastEffect;if(i!==null){var a=i.next;r=a;do{if((r.tag&e)===e){var o=r.inst,s=o.destroy;s!==void 0&&(o.destroy=void 0,(e&ah)!==rh&&(J_=!0),i=t,L(i,ym,i,n,s),(e&ah)!==rh&&(J_=!1))}r=r.next}while(r!==a)}}catch(e){Ws(t,t.return,e)}}function $a(e,t){Ya(e)?(on(),Qa(t,e),rn()):Qa(t,e)}function eo(e,t,n){Ya(e)?(on(),V(n,e,t),rn()):V(n,e,t)}function to(e){var t=e.updateQueue;if(t!==null){var n=e.stateNode;e.type.defaultProps||`ref`in e.memoizedProps||tg||(n.props!==e.memoizedProps&&console.error("Expected %s props to match memoized props before processing the update queue. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",T(e)||`instance`),n.state!==e.memoizedState&&console.error("Expected %s state to match memoized state before processing the update queue. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",T(e)||`instance`));try{L(e,cr,t,n)}catch(t){Ws(e,e.return,t)}}}function no(e,t,n){return e.getSnapshotBeforeUpdate(t,n)}function ro(e,t){var n=t.memoizedProps,r=t.memoizedState;t=e.stateNode,e.type.defaultProps||`ref`in e.memoizedProps||tg||(t.props!==e.memoizedProps&&console.error("Expected %s props to match memoized props before getSnapshotBeforeUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",T(e)||`instance`),t.state!==e.memoizedState&&console.error("Expected %s state to match memoized state before getSnapshotBeforeUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",T(e)||`instance`));try{var i=$i(e.type,n),a=L(e,no,t,i,r);n=og,a!==void 0||n.has(e.type)||(n.add(e.type),L(e,function(){console.error(`%s.getSnapshotBeforeUpdate(): A snapshot value (or null) must be returned. You have returned undefined.`,T(e))})),t.__reactInternalSnapshotBeforeUpdate=a}catch(t){Ws(e,e.return,t)}}function io(e,t,n){n.props=$i(e.type,e.memoizedProps),n.state=e.memoizedState,Ya(e)?(on(),L(e,hm,e,t,n),rn()):L(e,hm,e,t,n)}function ao(e){var t=e.ref;if(t!==null){switch(e.tag){case 26:case 27:case 5:var n=Zc(e.stateNode);break;case 30:n=e.stateNode;break;default:n=e.stateNode}if(typeof t==`function`)if(Ya(e))try{on(),e.refCleanup=t(n)}finally{rn()}else e.refCleanup=t(n);else typeof t==`string`?console.error(`String refs are no longer supported.`):t.hasOwnProperty(`current`)||console.error(`Unexpected ref object provided for %s. Use either a ref-setter function or React.createRef().`,T(e)),t.current=n}}function oo(e,t){try{L(e,ao,e)}catch(n){Ws(e,t,n)}}function so(e,t){var n=e.ref,r=e.refCleanup;if(n!==null)if(typeof r==`function`)try{if(Ya(e))try{on(),L(e,r)}finally{rn(e)}else L(e,r)}catch(n){Ws(e,t,n)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof n==`function`)try{if(Ya(e))try{on(),L(e,n,null)}finally{rn(e)}else L(e,n,null)}catch(n){Ws(e,t,n)}else n.current=null}function co(e,t,n,r){var i=e.memoizedProps,a=i.id,o=i.onCommit;i=i.onRender,t=t===null?`mount`:`update`,Mp&&(t=`nested-update`),typeof i==`function`&&i(a,t,e.actualDuration,e.treeBaseDuration,e.actualStartTime,n),typeof o==`function`&&o(a,t,r,n)}function lo(e,t,n,r){var i=e.memoizedProps;e=i.id,i=i.onPostCommit,t=t===null?`mount`:`update`,Mp&&(t=`nested-update`),typeof i==`function`&&i(e,t,r,n)}function uo(e){var t=e.type,n=e.memoizedProps,r=e.stateNode;try{L(e,ql,r,t,n,e)}catch(t){Ws(e,e.return,t)}}function fo(e,t,n){try{L(e,Jl,e.stateNode,e.type,n,t,e)}catch(t){Ws(e,e.return,t)}}function po(e){return e.tag===5||e.tag===3||(Zu?e.tag===26:!1)||(dd?e.tag===27&&gd(e.type):!1)||e.tag===4}function mo(e){a:for(;;){for(;e.sibling===null;){if(e.return===null||po(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(dd&&e.tag===27&&gd(e.type)||e.flags&2||e.child===null||e.tag===4)continue a;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function ho(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?Xl(n,e,t):Kl(n,e);else if(r!==4&&(dd&&r===27&&gd(e.type)&&(n=e.stateNode,t=null),e=e.child,e!==null))for(ho(e,t,n),e=e.sibling;e!==null;)ho(e,t,n),e=e.sibling}function go(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?Yl(n,e,t):Gl(n,e);else if(r!==4&&(dd&&r===27&&gd(e.type)&&(n=e.stateNode),e=e.child,e!==null))for(go(e,t,n),e=e.sibling;e!==null;)go(e,t,n),e=e.sibling}function _o(e){for(var t,n=e.return;n!==null;){if(po(n)){t=n;break}n=n.return}if(ul){if(t==null)throw Error(`Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue.`);switch(t.tag){case 27:if(dd){t=t.stateNode,n=mo(e),go(e,n,t);break}case 5:n=t.stateNode,t.flags&32&&($l(n),t.flags&=-33),t=mo(e),go(e,t,n);break;case 3:case 4:t=t.stateNode.containerInfo,n=mo(e),ho(e,n,t);break;default:throw Error(`Invalid host parent fiber. This error is likely caused by a bug in React. Please file an issue.`)}}}function vo(e,t,n){e=e.containerInfo;try{L(t,lu,e,n)}catch(e){Ws(t,t.return,e)}}function yo(e){var t=e.stateNode,n=e.memoizedProps;try{L(e,pd,e.type,n,t,e)}catch(t){Ws(e,e.return,t)}}function bo(e,t){return t.tag===31?(t=t.memoizedState,e.memoizedState!==null&&t===null):t.tag===13?(e=e.memoizedState,t=t.memoizedState,e!==null&&e.dehydrated!==null&&(t===null||t.dehydrated===null)):t.tag===3?e.memoizedState.isDehydrated&&(t.flags&256)==0:!1}function xo(e,t){for(el(e.containerInfo),dg=t;dg!==null;)if(e=dg,t=e.child,e.subtreeFlags&1028&&t!==null)t.return=e,dg=t;else for(;dg!==null;){t=e=dg;var n=t.alternate,r=t.flags;switch(t.tag){case 0:if(r&4&&(t=t.updateQueue,t=t===null?null:t.events,t!==null))for(n=0;n<t.length;n++)r=t[n],r.ref.impl=r.nextImpl;break;case 11:case 15:break;case 1:r&1024&&n!==null&&ro(t,n);break;case 3:r&1024&&ul&&iu(t.stateNode.containerInfo);break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if(r&1024)throw Error(`This unit of work tag should not have side-effects. This error is likely caused by a bug in React. Please file an issue.`)}if(t=e.sibling,t!==null){t.return=e.return,dg=t;break}dg=e.return}}function So(e,t,n){var r=Jt(),i=Xt(),a=Qt(),o=$t(),s=n.flags;switch(n.tag){case 0:case 11:case 15:Po(e,n),s&4&&Xa(n,oh|ih);break;case 1:if(Po(e,n),s&4)if(e=n.stateNode,t===null)n.type.defaultProps||`ref`in n.memoizedProps||tg||(e.props!==n.memoizedProps&&console.error("Expected %s props to match memoized props before componentDidMount. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",T(n)||`instance`),e.state!==n.memoizedState&&console.error("Expected %s state to match memoized state before componentDidMount. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",T(n)||`instance`)),Ya(n)?(on(),L(n,lm,n,e),rn()):L(n,lm,n,e);else{var c=$i(n.type,t.memoizedProps);t=t.memoizedState,n.type.defaultProps||`ref`in n.memoizedProps||tg||(e.props!==n.memoizedProps&&console.error("Expected %s props to match memoized props before componentDidUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",T(n)||`instance`),e.state!==n.memoizedState&&console.error("Expected %s state to match memoized state before componentDidUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",T(n)||`instance`)),Ya(n)?(on(),L(n,dm,n,e,c,t,e.__reactInternalSnapshotBeforeUpdate),rn()):L(n,dm,n,e,c,t,e.__reactInternalSnapshotBeforeUpdate)}s&64&&to(n),s&512&&oo(n,n.return);break;case 3:if(t=Wt(),Po(e,n),s&64&&(s=n.updateQueue,s!==null)){if(c=null,n.child!==null)switch(n.child.tag){case 27:case 5:c=Zc(n.child.stateNode);break;case 1:c=n.child.stateNode}try{L(n,cr,s,c)}catch(e){Ws(n,n.return,e)}}e.effectDuration+=Gt(t);break;case 27:dd&&t===null&&s&4&&yo(n);case 26:case 5:if(Po(e,n),t===null){if(s&4)uo(n);else if(s&64){e=n.type,t=n.memoizedProps,c=n.stateNode;try{L(n,Fu,c,e,t,n)}catch(e){Ws(n,n.return,e)}}}s&512&&oo(n,n.return);break;case 12:if(s&4){s=Wt(),Po(e,n),e=n.stateNode,e.effectDuration+=Kt(s);try{L(n,co,n,t,ep,e.effectDuration)}catch(e){Ws(n,n.return,e)}}else Po(e,n);break;case 31:Po(e,n),s&4&&Eo(e,n);break;case 13:Po(e,n),s&4&&Do(e,n),s&64&&(e=n.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(s=Js.bind(null,n),hu(e,s))));break;case 22:if(s=n.memoizedState!==null||sg,!s){t=t!==null&&t.memoizedState!==null||cg,c=sg;var l=cg;sg=s,(cg=t)&&!l?(Ro(e,n,(n.subtreeFlags&8772)!=0),(n.mode&2)!==K&&0<=q&&0<=J&&.05<J-q&&be(n,q,J)):Po(e,n),sg=c,cg=l}break;case 30:break;default:Po(e,n)}(n.mode&2)!==K&&0<=q&&0<=J&&((sp||.05<ap)&&Se(n,q,J,ap,op),n.alternate===null&&n.return!==null&&n.return.alternate!==null&&.05<J-q&&(bo(n.return.alternate,n.return)||ye(n,q,J,`Mount`))),Yt(r),Zt(i),op=a,sp=o}function Co(e){var t=e.alternate;t!==null&&(e.alternate=null,Co(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&Sl(t)),e.stateNode=null,e._debugOwner=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function wo(e,t,n){for(n=n.child;n!==null;)To(e,t,n),n=n.sibling}function To(e,t,n){if(zd&&typeof zd.onCommitFiberUnmount==`function`)try{zd.onCommitFiberUnmount(Rd,n)}catch(e){Bd||(Bd=!0,console.error(`React instrumentation encountered an error: %o`,e))}var r=Jt(),i=Xt(),a=Qt(),o=$t();switch(n.tag){case 26:if(Zu){cg||so(n,t),wo(e,t,n),n.memoizedState?nd(n.memoizedState):n.stateNode&&ad(n.stateNode);break}case 27:if(dd){cg||so(n,t);var s=mg,c=hg;gd(n.type)&&(mg=n.stateNode,hg=!1),wo(e,t,n),L(n,md,n.stateNode),mg=s,hg=c;break}case 5:cg||so(n,t);case 6:if(ul){if(s=mg,c=hg,mg=null,wo(e,t,n),mg=s,hg=c,mg!==null)if(hg)try{L(n,Ql,mg,n.stateNode)}catch(e){Ws(n,t,e)}else try{L(n,Zl,mg,n.stateNode)}catch(e){Ws(n,t,e)}}else wo(e,t,n);break;case 18:ul&&mg!==null&&(hg?Hu(mg,n.stateNode):Vu(mg,n.stateNode));break;case 4:ul?(s=mg,c=hg,mg=n.stateNode.containerInfo,hg=!0,wo(e,t,n),mg=s,hg=c):(dl&&vo(n.stateNode,n,ou()),wo(e,t,n));break;case 0:case 11:case 14:case 15:V(ah,n,t),cg||Za(n,t,oh),wo(e,t,n);break;case 1:cg||(so(n,t),s=n.stateNode,typeof s.componentWillUnmount==`function`&&io(n,t,s)),wo(e,t,n);break;case 21:wo(e,t,n);break;case 22:cg=(s=cg)||n.memoizedState!==null,wo(e,t,n),cg=s;break;default:wo(e,t,n)}(n.mode&2)!==K&&0<=q&&0<=J&&(sp||.05<ap)&&Se(n,q,J,ap,op),Yt(r),Zt(i),op=a,sp=o}function Eo(e,t){if(fl&&t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{L(t,Lu,e)}catch(e){Ws(t,t.return,e)}}}function Do(e,t){if(fl&&t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{L(t,Ru,e)}catch(e){Ws(t,t.return,e)}}function Oo(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new ug),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new ug),t;default:throw Error(`Unexpected Suspense handler tag (`+e.tag+`). This is a bug in React.`)}}function ko(e,t){var n=Oo(e);t.forEach(function(t){if(!n.has(t)){if(n.add(t),Vd)if(fg!==null&&pg!==null)ec(pg,fg);else throw Error(`Expected finished root and lanes to be set. This is a bug in React.`);var r=Ys.bind(null,e,t);t.then(r,r)}})}function Ao(e,t){var n=t.deletions;if(n!==null)for(var r=0;r<n.length;r++){var i=e,a=t,o=n[r],s=Jt();if(ul){var c=a;a:for(;c!==null;){switch(c.tag){case 27:if(dd){if(gd(c.type)){mg=c.stateNode,hg=!1;break a}break}case 5:mg=c.stateNode,hg=!1;break a;case 3:case 4:mg=c.stateNode.containerInfo,hg=!0;break a}c=c.return}if(mg===null)throw Error(`Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue.`);To(i,a,o),mg=null,hg=!1}else To(i,a,o);(o.mode&2)!==K&&0<=q&&0<=J&&.05<J-q&&ye(o,q,J,`Unmount`),Yt(s),i=o,a=i.alternate,a!==null&&(a.return=null),i.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)jo(t,e),t=t.sibling}function jo(e,t){var n=Jt(),r=Xt(),i=Qt(),a=$t(),o=e.alternate,s=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:Ao(t,e),Mo(e),s&4&&(V(ah|ih,e,e.return),Qa(ah|ih,e),Za(e,e.return,oh|ih));break;case 1:Ao(t,e),Mo(e),s&512&&(cg||o===null||so(o,o.return)),s&64&&sg&&(s=e.updateQueue,s!==null&&(o=s.callbacks,o!==null&&(t=s.shared.hiddenCallbacks,s.shared.hiddenCallbacks=t===null?o:t.concat(o))));break;case 26:if(Zu){var c=gg;Ao(t,e),Mo(e),s&512&&(cg||o===null||so(o,o.return)),s&4&&(s=o===null?null:o.memoizedState,t=e.memoizedState,o===null?t===null?e.stateNode===null?e.stateNode=rd(c,e.type,e.memoizedProps,e):id(c,e.type,e.stateNode):e.stateNode=td(c,t,e.memoizedProps):s===t?t===null&&e.stateNode!==null&&fo(e,e.memoizedProps,o.memoizedProps):(s===null?o.stateNode!==null&&ad(o.stateNode):nd(s),t===null?id(c,e.type,e.stateNode):td(c,t,e.memoizedProps)));break}case 27:if(dd){Ao(t,e),Mo(e),s&512&&(cg||o===null||so(o,o.return)),o!==null&&s&4&&fo(e,e.memoizedProps,o.memoizedProps);break}case 5:if(Ao(t,e),Mo(e),s&512&&(cg||o===null||so(o,o.return)),ul){if(e.flags&32){t=e.stateNode;try{L(e,$l,t)}catch(t){Ws(e,e.return,t)}}s&4&&e.stateNode!=null&&(t=e.memoizedProps,fo(e,t,o===null?t:o.memoizedProps)),s&1024&&(lg=!0,e.type!==`form`&&console.error(`Unexpected host component type. Expected a form. This is a bug in React.`))}else dl&&e.alternate!==null&&(e.alternate.stateNode=e.stateNode);break;case 6:if(Ao(t,e),Mo(e),s&4&&ul){if(e.stateNode===null)throw Error(`This should have a text node initialized. This error is likely caused by a bug in React. Please file an issue.`);s=e.memoizedProps,o=o===null?s:o.memoizedProps,t=e.stateNode;try{L(e,G,t,o,s)}catch(t){Ws(e,e.return,t)}}break;case 3:if(c=Wt(),Zu){sd();var l=gg;gg=$u(t.containerInfo),Ao(t,e),gg=l}else Ao(t,e);if(Mo(e),s&4){if(ul&&fl&&o!==null&&o.memoizedState.isDehydrated)try{L(e,Iu,t.containerInfo)}catch(t){Ws(e,e.return,t)}if(dl){s=t.containerInfo,o=t.pendingChildren;try{L(e,lu,s,o)}catch(t){Ws(e,e.return,t)}}}lg&&(lg=!1,No(e)),t.effectDuration+=Gt(c);break;case 4:Zu?(o=gg,gg=$u(e.stateNode.containerInfo),Ao(t,e),Mo(e),gg=o):(Ao(t,e),Mo(e)),s&4&&dl&&vo(e.stateNode,e,e.stateNode.pendingChildren);break;case 12:s=Wt(),Ao(t,e),Mo(e),e.stateNode.effectDuration+=Kt(s);break;case 31:Ao(t,e),Mo(e),s&4&&(s=e.updateQueue,s!==null&&(e.updateQueue=null,ko(e,s)));break;case 13:Ao(t,e),Mo(e),e.child.flags&8192&&e.memoizedState!==null!=(o!==null&&o.memoizedState!==null)&&(d_=jd()),s&4&&(s=e.updateQueue,s!==null&&(e.updateQueue=null,ko(e,s)));break;case 22:c=e.memoizedState!==null;var u=o!==null&&o.memoizedState!==null,d=sg,f=cg;if(sg=d||c,cg=f||u,Ao(t,e),cg=f,sg=d,u&&!c&&!d&&!f&&(e.mode&2)!==K&&0<=q&&0<=J&&.05<J-q&&be(e,q,J),Mo(e),s&8192&&(t=e.stateNode,t._visibility=c?t._visibility&~Lm:t._visibility|Lm,!c||o===null||u||sg||cg||(Io(e),(e.mode&2)!==K&&0<=q&&0<=J&&.05<J-q&&ye(e,q,J,`Disconnect`)),ul)){a:if(o=null,ul)for(t=e;;){if(t.tag===5||Zu&&t.tag===26){if(o===null){u=o=t;try{l=u.stateNode,c?L(u,eu,l):L(u,nu,u.stateNode,u.memoizedProps)}catch(e){Ws(u,u.return,e)}}}else if(t.tag===6){if(o===null){u=t;try{var p=u.stateNode;c?L(u,tu,p):L(u,ru,p,u.memoizedProps)}catch(e){Ws(u,u.return,e)}}}else if(t.tag===18){if(o===null){u=t;try{var m=u.stateNode;c?L(u,Uu,m):L(u,Wu,u.stateNode)}catch(e){Ws(u,u.return,e)}}}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 a;for(;t.sibling===null;){if(t.return===null||t.return===e)break a;o===t&&(o=null),t=t.return}o===t&&(o=null),t.sibling.return=t.return,t=t.sibling}}s&4&&(s=e.updateQueue,s!==null&&(o=s.retryQueue,o!==null&&(s.retryQueue=null,ko(e,o))));break;case 19:Ao(t,e),Mo(e),s&4&&(s=e.updateQueue,s!==null&&(e.updateQueue=null,ko(e,s)));break;case 30:break;case 21:break;default:Ao(t,e),Mo(e)}(e.mode&2)!==K&&0<=q&&0<=J&&((sp||.05<ap)&&Se(e,q,J,ap,op),e.alternate===null&&e.return!==null&&e.return.alternate!==null&&.05<J-q&&(bo(e.return.alternate,e.return)||ye(e,q,J,`Mount`))),Yt(n),Zt(r),op=i,sp=a}function Mo(e){var t=e.flags;if(t&2){try{L(e,_o,e)}catch(t){Ws(e,e.return,t)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function No(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;No(t),t.tag===5&&t.flags&1024&&Nl(t.stateNode),e=e.sibling}}function Po(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)So(e,t.alternate,t),t=t.sibling}function Fo(e){var t=Jt(),n=Xt(),r=Qt(),i=$t();switch(e.tag){case 0:case 11:case 14:case 15:Za(e,e.return,oh),Io(e);break;case 1:so(e,e.return);var a=e.stateNode;typeof a.componentWillUnmount==`function`&&io(e,e.return,a),Io(e);break;case 27:dd&&L(e,md,e.stateNode);case 26:case 5:so(e,e.return),Io(e);break;case 22:e.memoizedState===null&&Io(e);break;case 30:Io(e);break;default:Io(e)}(e.mode&2)!==K&&0<=q&&0<=J&&(sp||.05<ap)&&Se(e,q,J,ap,op),Yt(t),Zt(n),op=r,sp=i}function Io(e){for(e=e.child;e!==null;)Fo(e),e=e.sibling}function Lo(e,t,n,r){var i=Jt(),a=Xt(),o=Qt(),s=$t(),c=n.flags;switch(n.tag){case 0:case 11:case 15:Ro(e,n,r),Xa(n,oh);break;case 1:if(Ro(e,n,r),t=n.stateNode,typeof t.componentDidMount==`function`&&L(n,lm,n,t),t=n.updateQueue,t!==null){e=n.stateNode;try{L(n,sr,t,e)}catch(e){Ws(n,n.return,e)}}r&&c&64&&to(n),oo(n,n.return);break;case 27:dd&&yo(n);case 26:case 5:Ro(e,n,r),r&&t===null&&c&4&&uo(n),oo(n,n.return);break;case 12:if(r&&c&4){c=Wt(),Ro(e,n,r),r=n.stateNode,r.effectDuration+=Kt(c);try{L(n,co,n,t,ep,r.effectDuration)}catch(e){Ws(n,n.return,e)}}else Ro(e,n,r);break;case 31:Ro(e,n,r),r&&c&4&&Eo(e,n);break;case 13:Ro(e,n,r),r&&c&4&&Do(e,n);break;case 22:n.memoizedState===null&&Ro(e,n,r),oo(n,n.return);break;case 30:break;default:Ro(e,n,r)}(n.mode&2)!==K&&0<=q&&0<=J&&(sp||.05<ap)&&Se(n,q,J,ap,op),Yt(i),Zt(a),op=o,sp=s}function Ro(e,t,n){for(n&&=(t.subtreeFlags&8772)!=0,t=t.child;t!==null;)Lo(e,t.alternate,t,n),t=t.sibling}function zo(e,t){var n=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==n&&(e!=null&&Bt(e),n!=null&&Vt(n))}function Bo(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(Bt(t),e!=null&&Vt(e))}function Vo(e,t,n,r,i){if(t.subtreeFlags&10256||t.actualDuration!==0&&(t.alternate===null||t.alternate.child!==t.child))for(t=t.child;t!==null;){var a=t.sibling;Ho(e,t,n,r,a===null?i:a.actualStartTime),t=a}}function Ho(e,t,n,r,i){var a=Jt(),o=Xt(),s=Qt(),c=$t(),l=Zd,u=t.flags;switch(t.tag){case 0:case 11:case 15:(t.mode&2)!==K&&0<t.actualStartTime&&t.flags&1&&F(t,t.actualStartTime,i,_g,n),Vo(e,t,n,r,i),u&2048&&$a(t,sh|ih);break;case 1:(t.mode&2)!==K&&0<t.actualStartTime&&(t.flags&128?xe(t,t.actualStartTime,i,[]):t.flags&1&&F(t,t.actualStartTime,i,_g,n)),Vo(e,t,n,r,i);break;case 3:var d=Wt(),f=_g;_g=t.alternate!==null&&t.alternate.memoizedState.isDehydrated&&(t.flags&256)==0,Vo(e,t,n,r,i),_g=f,u&2048&&(n=null,t.alternate!==null&&(n=t.alternate.memoizedState.cache),r=t.memoizedState.cache,r!==n&&(Bt(r),n!=null&&Vt(n))),e.passiveEffectDuration+=Gt(d);break;case 12:if(u&2048){u=Wt(),Vo(e,t,n,r,i),e=t.stateNode,e.passiveEffectDuration+=Kt(u);try{L(t,lo,t,t.alternate,ep,e.passiveEffectDuration)}catch(e){Ws(t,t.return,e)}}else Vo(e,t,n,r,i);break;case 31:u=_g,d=t.alternate===null?null:t.alternate.memoizedState,f=t.memoizedState,d!==null&&f===null?(f=t.deletions,f!==null&&0<f.length&&f[0].tag===18?(_g=!1,d=d.hydrationErrors,d!==null&&xe(t,t.actualStartTime,i,d)):_g=!0):_g=!1,Vo(e,t,n,r,i),_g=u;break;case 13:u=_g,d=t.alternate===null?null:t.alternate.memoizedState,f=t.memoizedState,d===null||d.dehydrated===null||f!==null&&f.dehydrated!==null?_g=!1:(f=t.deletions,f!==null&&0<f.length&&f[0].tag===18?(_g=!1,d=d.hydrationErrors,d!==null&&xe(t,t.actualStartTime,i,d)):_g=!0),Vo(e,t,n,r,i),_g=u;break;case 23:break;case 22:f=t.stateNode,d=t.alternate,t.memoizedState===null?f._visibility&Rm?Vo(e,t,n,r,i):(f._visibility|=Rm,Uo(e,t,n,r,(t.subtreeFlags&10256)!=0||t.actualDuration!==0&&(t.alternate===null||t.alternate.child!==t.child),i),(t.mode&2)===K||_g||(e=t.actualStartTime,0<=e&&.05<i-e&&be(t,e,i),0<=q&&0<=J&&.05<J-q&&be(t,q,J))):f._visibility&Rm?Vo(e,t,n,r,i):Go(e,t,n,r,i),u&2048&&zo(d,t);break;case 24:Vo(e,t,n,r,i),u&2048&&Bo(t.alternate,t);break;default:Vo(e,t,n,r,i)}(t.mode&2)!==K&&((e=!_g&&t.alternate===null&&t.return!==null&&t.return.alternate!==null)&&(n=t.actualStartTime,0<=n&&.05<i-n&&ye(t,n,i,`Mount`)),0<=q&&0<=J&&((sp||.05<ap)&&Se(t,q,J,ap,op),e&&.05<J-q&&ye(t,q,J,`Mount`))),Yt(a),Zt(o),op=s,sp=c,Zd=l}function Uo(e,t,n,r,i,a){for(i&&=(t.subtreeFlags&10256)!=0||t.actualDuration!==0&&(t.alternate===null||t.alternate.child!==t.child),t=t.child;t!==null;){var o=t.sibling;Wo(e,t,n,r,i,o===null?a:o.actualStartTime),t=o}}function Wo(e,t,n,r,i,a){var o=Jt(),s=Xt(),c=Qt(),l=$t(),u=Zd;i&&(t.mode&2)!==K&&0<t.actualStartTime&&t.flags&1&&F(t,t.actualStartTime,a,_g,n);var d=t.flags;switch(t.tag){case 0:case 11:case 15:Uo(e,t,n,r,i,a),$a(t,sh);break;case 23:break;case 22:var f=t.stateNode;t.memoizedState===null?(f._visibility|=Rm,Uo(e,t,n,r,i,a)):f._visibility&Rm?Uo(e,t,n,r,i,a):Go(e,t,n,r,a),i&&d&2048&&zo(t.alternate,t);break;case 24:Uo(e,t,n,r,i,a),i&&d&2048&&Bo(t.alternate,t);break;default:Uo(e,t,n,r,i,a)}(t.mode&2)!==K&&0<=q&&0<=J&&(sp||.05<ap)&&Se(t,q,J,ap,op),Yt(o),Zt(s),op=c,sp=l,Zd=u}function Go(e,t,n,r,i){if(t.subtreeFlags&10256||t.actualDuration!==0&&(t.alternate===null||t.alternate.child!==t.child))for(var a=t.child;a!==null;){t=a.sibling;var o=e,s=n,c=r,l=t===null?i:t.actualStartTime,u=Zd;(a.mode&2)!==K&&0<a.actualStartTime&&a.flags&1&&F(a,a.actualStartTime,l,_g,s);var d=a.flags;switch(a.tag){case 22:Go(o,a,s,c,l),d&2048&&zo(a.alternate,a);break;case 24:Go(o,a,s,c,l),d&2048&&Bo(a.alternate,a);break;default:Go(o,a,s,c,l)}Zd=u,a=t}}function Ko(e,t,n){if(e.subtreeFlags&vg)for(e=e.child;e!==null;)qo(e,t,n),e=e.sibling}function qo(e,t,n){switch(e.tag){case 26:if(Ko(e,t,n),e.flags&vg)if(e.memoizedState!==null)ud(n,gg,e.memoizedState,e.memoizedProps);else{var r=e.stateNode,i=e.type;e=e.memoizedProps,((t&335544128)===t||Tl(i,e))&&Ol(n,r,i,e)}break;case 5:Ko(e,t,n),e.flags&vg&&(r=e.stateNode,i=e.type,e=e.memoizedProps,((t&335544128)===t||Tl(i,e))&&Ol(n,r,i,e));break;case 3:case 4:Zu?(r=gg,gg=$u(e.stateNode.containerInfo),Ko(e,t,n),gg=r):Ko(e,t,n);break;case 22:e.memoizedState===null&&(r=e.alternate,r!==null&&r.memoizedState!==null?(r=vg,vg=16777216,Ko(e,t,n),vg=r):Ko(e,t,n));break;default:Ko(e,t,n)}}function Jo(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 Yo(e){var t=e.deletions;if(e.flags&16){if(t!==null)for(var n=0;n<t.length;n++){var r=t[n],i=Jt();dg=r,$o(r,e),(r.mode&2)!==K&&0<=q&&0<=J&&.05<J-q&&ye(r,q,J,`Unmount`),Yt(i)}Jo(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)Xo(e),e=e.sibling}function Xo(e){var t=Jt(),n=Xt(),r=Qt(),i=$t();switch(e.tag){case 0:case 11:case 15:Yo(e),e.flags&2048&&eo(e,e.return,sh|ih);break;case 3:var a=Wt();Yo(e),e.stateNode.passiveEffectDuration+=Gt(a);break;case 12:a=Wt(),Yo(e),e.stateNode.passiveEffectDuration+=Kt(a);break;case 22:a=e.stateNode,e.memoizedState!==null&&a._visibility&Rm&&(e.return===null||e.return.tag!==13)?(a._visibility&=~Rm,Zo(e),(e.mode&2)!==K&&0<=q&&0<=J&&.05<J-q&&ye(e,q,J,`Disconnect`)):Yo(e);break;default:Yo(e)}(e.mode&2)!==K&&0<=q&&0<=J&&(sp||.05<ap)&&Se(e,q,J,ap,op),Yt(t),Zt(n),sp=i,op=r}function Zo(e){var t=e.deletions;if(e.flags&16){if(t!==null)for(var n=0;n<t.length;n++){var r=t[n],i=Jt();dg=r,$o(r,e),(r.mode&2)!==K&&0<=q&&0<=J&&.05<J-q&&ye(r,q,J,`Unmount`),Yt(i)}Jo(e)}for(e=e.child;e!==null;)Qo(e),e=e.sibling}function Qo(e){var t=Jt(),n=Xt(),r=Qt(),i=$t();switch(e.tag){case 0:case 11:case 15:eo(e,e.return,sh),Zo(e);break;case 22:var a=e.stateNode;a._visibility&Rm&&(a._visibility&=~Rm,Zo(e));break;default:Zo(e)}(e.mode&2)!==K&&0<=q&&0<=J&&(sp||.05<ap)&&Se(e,q,J,ap,op),Yt(t),Zt(n),sp=i,op=r}function $o(e,t){for(;dg!==null;){var n=dg,r=n,i=t,a=Jt(),o=Xt(),s=Qt(),c=$t();switch(r.tag){case 0:case 11:case 15:eo(r,i,sh);break;case 23:case 22:r.memoizedState!==null&&r.memoizedState.cachePool!==null&&(i=r.memoizedState.cachePool.pool,i!=null&&Bt(i));break;case 24:Vt(r.memoizedState.cache)}if((r.mode&2)!==K&&0<=q&&0<=J&&(sp||.05<ap)&&Se(r,q,J,ap,op),Yt(a),Zt(o),sp=c,op=s,r=n.child,r!==null)r.return=n,dg=r;else a:for(n=e;dg!==null;){if(r=dg,a=r.sibling,o=r.return,Co(r),r===n){dg=null;break a}if(a!==null){a.return=o,dg=a;break a}dg=o}}}function es(e){var t=pl(e);if(t!=null){if(typeof t.memoizedProps[`data-testname`]!=`string`)throw Error(`Invalid host root specified. Should be either a React container or a node with a testname attribute.`);return t}if(e=Rl(e),e===null)throw Error(`Could not find React container within specified host subtree.`);return e.stateNode.current}function ts(e,t){var n=e.tag;switch(t.$$typeof){case bg:if(e.type===t.value)return!0;break;case xg:a:{for(t=t.value,e=[e,0],n=0;n<e.length;){var r=e[n++],i=r.tag,a=e[n++],o=t[a];if(i!==5&&i!==26&&i!==27||!Vl(r)){for(;o!=null&&ts(r,o);)a++,o=t[a];if(a===t.length){t=!0;break a}else for(r=r.child;r!==null;)e.push(r,a),r=r.sibling}}t=!1}return t;case Sg:if((n===5||n===26||n===27)&&Hl(e.stateNode,t.value))return!0;break;case wg:if((n===5||n===6||n===26||n===27)&&(e=Bl(e),e!==null&&0<=e.indexOf(t.value)))return!0;break;case Cg:if((n===5||n===26||n===27)&&(e=e.memoizedProps[`data-testname`],typeof e==`string`&&e.toLowerCase()===t.value.toLowerCase()))return!0;break;default:throw Error(`Invalid selector type specified.`)}return!1}function ns(e){switch(e.$$typeof){case bg:return`<`+(w(e.value)||`Unknown`)+`>`;case xg:return`:has(`+(ns(e)||``)+`)`;case Sg:return`[role="`+e.value+`"]`;case wg:return`"`+e.value+`"`;case Cg:return`[data-testname="`+e.value+`"]`;default:throw Error(`Invalid selector type specified.`)}}function rs(e,t){var n=[];e=[e,0];for(var r=0;r<e.length;){var i=e[r++],a=i.tag,o=e[r++],s=t[o];if(a!==5&&a!==26&&a!==27||!Vl(i)){for(;s!=null&&ts(i,s);)o++,s=t[o];if(o===t.length)n.push(i);else for(i=i.child;i!==null;)e.push(i,o),i=i.sibling}}return n}function is(e,t){if(!Ll)throw Error(`Test selector API is not supported by this renderer.`);e=es(e),e=rs(e,t),t=[],e=Array.from(e);for(var n=0;n<e.length;){var r=e[n++],i=r.tag;if(i===5||i===26||i===27)Vl(r)||t.push(r.stateNode);else for(r=r.child;r!==null;)e.push(r),r=r.sibling}return t}function as(){Ll&&Eg.forEach(function(e){return e()})}function os(){var e=typeof IS_REACT_ACT_ENVIRONMENT<`u`?IS_REACT_ACT_ENVIRONMENT:void 0;return e||U.actQueue===null||console.error(`The current testing environment is not configured to support act(...)`),e}function ss(e){if((Rg&kg)!==Og&&$!==0)return $&-$;var t=U.T;return t===null?_l():(t._updatedFibers||=new Set,t._updatedFibers.add(e),yn())}function cs(){if(o_===0)if(!($&536870912)||Pf){var e=Td;Td<<=1,!(Td&3932160)&&(Td=262144),o_=e}else o_=536870912;return e=Qm.current,e!==null&&(e.flags|=32),o_}function ls(e,t,n){if(J_&&console.error(`useInsertionEffect must not schedule updates.`),U_&&(W_=!0),(e===zg&&(Xg===Hg||Xg===Yg)||e.cancelPendingCommit!==null)&&(vs(e,0),ps(e,$,o_,!1)),ie(e,n),(Rg&kg)!==Og&&e===zg){if(jf)switch(t.tag){case 0:case 11:case 15:e=Q&&T(Q)||`Unknown`,Z_.has(e)||(Z_.add(e),t=T(t)||`Unknown`,console.error("Cannot update a component (`%s`) while rendering a different component (`%s`). To locate the bad setState() call inside `%s`, follow the stack trace as described in https://react.dev/link/setstate-in-render",t,e,e));break;case 1:X_||=(console.error("Cannot update during an existing state transition (such as within `render`). Render methods should be a pure function of props and state."),!0)}}else Vd&&ue(e,t,n),nc(t),e===zg&&((Rg&kg)===Og&&(i_|=n),n_===Fg&&ps(e,$,o_,!1)),ln(e)}function us(e,t,n){if((Rg&(kg|Ag))!==Og)throw Error(`Should not already be working.`);if($!==0&&Q!==null){var r=Q,i=jd();switch(Ap){case Ug:case Hg:var a=jp;Yd&&((r=r._debugTask)?r.run(console.timeStamp.bind(console,`Suspended`,a,i,`Components ⚛`,void 0,`primary-light`)):console.timeStamp(`Suspended`,a,i,`Components ⚛`,void 0,`primary-light`));break;case Yg:a=jp,Yd&&((r=r._debugTask)?r.run(console.timeStamp.bind(console,`Action`,a,i,`Components ⚛`,void 0,`primary-light`)):console.timeStamp(`Action`,a,i,`Components ⚛`,void 0,`primary-light`));break;default:Yd&&(r=i-jp,3>r||console.timeStamp(`Blocked`,jp,i,`Components ⚛`,void 0,5>r?`primary-light`:10>r?`primary`:100>r?`primary-dark`:`error`))}}a=(n=!n&&(t&127)==0&&(t&e.expiredLanes)===0||j(e,t))?Ds(e,t):Ts(e,t,!0);var o=n;do{if(a===jg){$g&&!n&&ps(e,t,0,!1),t=Xg,jp=Zf(),Ap=t;break}else{if(r=jd(),i=e.current.alternate,o&&!fs(i)){P(t),i=$f,a=r,!Yd||a<=i||(__?__.run(console.timeStamp.bind(console,`Teared Render`,i,a,Xd,`Scheduler ⚛`,`error`)):console.timeStamp(`Teared Render`,i,a,Xd,`Scheduler ⚛`,`error`)),_s(t,r),a=Ts(e,t,!1),o=!1;continue}if(a===Ng){if(o=t,e.errorRecoveryDisabledLanes&o)var s=0;else s=e.pendingLanes&-536870913,s=s===0?s&536870912?536870912:0:s;if(s!==0){P(t),De($f,r,t,__),_s(t,r),t=s;a:{r=e,a=o,o=c_;var c=fl&&r.current.memoizedState.isDehydrated;if(c&&(vs(r,s).flags|=256),s=Ts(r,s,!1),s!==Ng){if(e_&&!c){r.errorRecoveryDisabledLanes|=a,i_|=a,a=Fg;break a}r=l_,l_=o,r!==null&&(l_===null?l_=r:l_.push.apply(l_,r))}a=s}if(o=!1,a!==Ng)continue;r=jd()}}if(a===Mg){P(t),De($f,r,t,__),_s(t,r),vs(e,0),ps(e,t,0,!0);break}a:{switch(n=e,a){case jg:case Mg:throw Error(`Root did not complete. This is a bug in React.`);case Fg:if((t&4194048)!==t)break;case Ig:P(t),we($f,r,t,__),_s(t,r),i=t,i&127?_p=r:i&4194048&&(Op=r),ps(n,t,o_,!Qg);break a;case Ng:l_=null;break;case Pg:case Lg:break;default:throw Error(`Unknown root exit status.`)}if(U.actQueue!==null)Fs(n,i,t,l_,g_,u_,o_,i_,s_,a,null,null,$f,r);else{if((t&62914560)===t&&(o=d_+p_-jd(),10<o)){if(ps(n,t,o_,!Qg),te(n,0,!0)!==0)break a;M_=t,n.timeoutHandle=ol(ds.bind(null,n,i,l_,g_,u_,t,o_,i_,s_,Qg,a,`Throttled`,$f,r),o);break a}ds(n,i,l_,g_,u_,t,o_,i_,s_,Qg,a,null,$f,r)}}}break}while(1);ln(e)}function ds(e,t,n,r,i,a,o,s,c,l,u,d,f,p){e.timeoutHandle=cl;var m=t.subtreeFlags,h=null;if((m&8192||(m&16785408)==16785408)&&(h=Dl(),qo(t,a,h),m=(a&62914560)===a?d_-jd():(a&4194048)===a?f_-jd():0,m=kl(h,m),m!==null)){M_=a,e.cancelPendingCommit=m(Fs.bind(null,e,t,a,n,r,i,o,s,c,u,h,Al(h,e.containerInfo),f,p)),ps(e,a,o,!l);return}Fs(e,t,a,n,r,i,o,s,c,u,h,d,f,p)}function fs(e){for(var t=e;;){var n=t.tag;if((n===0||n===11||n===15)&&t.flags&16384&&(n=t.updateQueue,n!==null&&(n=n.stores,n!==null)))for(var r=0;r<n.length;r++){var i=n[r],a=i.getSnapshot;i=i.value;try{if(!Kd(a(),i))return!1}catch{return!1}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;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 ps(e,t,n,r){t&=~a_,t&=~i_,e.suspendedLanes|=t,e.pingedLanes&=~t,r&&(e.warmLanes|=t),r=e.expirationTimes;for(var i=t;0<i;){var a=31-xd(i),o=1<<a;r[a]=-1,i&=~o}n!==0&&oe(e,n,t)}function ms(){return(Rg&(kg|Ag))===Og?(un(0,!1),!1):!0}function hs(){return(Rg&(kg|Ag))!==Og}function gs(){if(Q!==null){if(Xg===Bg)var e=Q.return;else e=Q,Ot(),Or(e),Om=null,km=0,e=Q;for(;e!==null;)Ja(e.alternate,e),e=e.return;Q=null}}function _s(e,t){e&127&&(cp=t),e&4194048&&(vp=t)}function vs(e,t){Yd&&(console.timeStamp(`Blocking Track`,.003,.003,`Blocking`,`Scheduler ⚛`,`primary-light`),console.timeStamp(`Transition Track`,.003,.003,`Transition`,`Scheduler ⚛`,`primary-light`),console.timeStamp(`Suspense Track`,.003,.003,`Suspense`,`Scheduler ⚛`,`primary-light`),console.timeStamp(`Idle Track`,.003,.003,`Idle`,`Scheduler ⚛`,`primary-light`));var n=$f;if($f=Zf(),$!==0&&0<n){if(P($),n_===Pg||n_===Fg)we(n,$f,t,__);else{var r=$f,i=__;if(Yd&&!(r<=n)){var a=(t&738197653)===t?`tertiary-dark`:`primary-dark`,o=(t&536870912)===t?`Prewarm`:(t&201326741)===t?`Interrupted Hydration`:`Interrupted Render`;i?i.run(console.timeStamp.bind(console,o,n,r,Xd,`Scheduler ⚛`,a)):console.timeStamp(o,n,r,Xd,`Scheduler ⚛`,a)}}_s($,$f)}if(n=__,__=null,t&127){__=up,i=0<=lp&&lp<cp?cp:lp,r=0<=mp&&mp<cp?cp:mp,a=0<=r?r:0<=i?i:$f,0<=_p&&(P(2),Te(_p,a,t,n)),n=i;var s=r,c=hp,l=0<gp,u=dp===1,d=dp===2;if(i=$f,r=up,a=fp,o=pp,Yd){if(Xd=`Blocking`,0<n?n>i&&(n=i):n=i,0<s?s>n&&(s=n):s=n,c!==null&&n>s){var f=l?`secondary-light`:`warning`;r?r.run(console.timeStamp.bind(console,l?`Consecutive`:`Event: `+c,s,n,Xd,`Scheduler ⚛`,f)):console.timeStamp(l?`Consecutive`:`Event: `+c,s,n,Xd,`Scheduler ⚛`,f)}i>n&&(s=u?`error`:(t&738197653)===t?`tertiary-light`:`primary-light`,u=d?`Promise Resolved`:u?`Cascading Update`:5<i-n?`Update Blocked`:`Update`,d=[],o!=null&&d.push([`Component name`,o]),a!=null&&d.push([`Method name`,a]),n={start:n,end:i,detail:{devtools:{properties:d,track:Xd,trackGroup:`Scheduler ⚛`,color:s}}},r?r.run(performance.measure.bind(performance,u,n)):performance.measure(u,n))}lp=-1.1,dp=0,pp=fp=null,_p=-1.1,gp=mp,mp=-1.1,cp=Zf()}if(t&4194048&&(__=Sp,i=0<=yp&&yp<vp?vp:yp,n=0<=bp&&bp<vp?vp:bp,r=0<=Tp&&Tp<vp?vp:Tp,a=0<=r?r:0<=n?n:$f,0<=Op&&(P(256),Te(Op,a,t,__)),d=r,s=Ep,c=0<Dp,l=xp===2,a=$f,r=Sp,o=Cp,u=wp,Yd&&(Xd=`Transition`,0<n?n>a&&(n=a):n=a,0<i?i>n&&(i=n):i=n,0<d?d>i&&(d=i):d=i,i>d&&s!==null&&(f=c?`secondary-light`:`warning`,r?r.run(console.timeStamp.bind(console,c?`Consecutive`:`Event: `+s,d,i,Xd,`Scheduler ⚛`,f)):console.timeStamp(c?`Consecutive`:`Event: `+s,d,i,Xd,`Scheduler ⚛`,f)),n>i&&(r?r.run(console.timeStamp.bind(console,`Action`,i,n,Xd,`Scheduler ⚛`,`primary-dark`)):console.timeStamp(`Action`,i,n,Xd,`Scheduler ⚛`,`primary-dark`)),a>n&&(i=l?`Promise Resolved`:5<a-n?`Update Blocked`:`Update`,d=[],u!=null&&d.push([`Component name`,u]),o!=null&&d.push([`Method name`,o]),n={start:n,end:a,detail:{devtools:{properties:d,track:Xd,trackGroup:`Scheduler ⚛`,color:`primary-light`}}},r?r.run(performance.measure.bind(performance,i,n)):performance.measure(i,n))),bp=yp=-1.1,xp=0,Op=-1.1,Dp=Tp,Tp=-1.1,vp=Zf()),n=e.timeoutHandle,n!==cl&&(e.timeoutHandle=cl,sl(n)),n=e.cancelPendingCommit,n!==null&&(e.cancelPendingCommit=null,n()),M_=0,gs(),zg=e,Q=n=uc(e.current,null),$=t,Xg=Bg,Zg=null,Qg=!1,$g=j(e,t),e_=!1,n_=jg,s_=o_=a_=i_=r_=0,l_=c_=null,u_=!1,t&8&&(t|=t&32),r=e.entangledLanes,r!==0)for(e=e.entanglements,r&=t;0<r;)i=31-xd(r),a=1<<i,t|=e[i],r&=~a;return t_=t,Kn(),e=Wd(),1e3<e-Hd&&(U.recentlyCreatedOwnerStacks=0,Hd=e),Jp.discardPendingWarnings(),n}function ys(e,t){X=null,U.H=Dh,U.getCurrentStack=null,jf=!1,Af=null,t===Sm||t===wm?(t=jn(),Xg=Ug):t===Cm?(t=jn(),Xg=Wg):Xg=t===Yh?Jg:typeof t==`object`&&t&&typeof t.then==`function`?Kg:Vg,Zg=t;var n=Q;n===null?(n_=Mg,ea(e,ze(t,e.current))):n.mode&2&&tn(n)}function bs(){var e=Qm.current;return e===null?!0:($&4194048)===$?$m===null:($&62914560)===$||$&536870912?e===$m:!1}function xs(){var e=U.H;return U.H=Dh,e===null?Dh:e}function Ss(){var e=U.A;return U.A=yg,e}function Cs(e){__===null&&(__=e._debugTask==null?null:e._debugTask)}function ws(){n_=Fg,Qg||($&4194048)!==$&&Qm.current!==null||($g=!0),!(r_&134217727)&&!(i_&134217727)||zg===null||ps(zg,$,o_,!1)}function Ts(e,t,n){var r=Rg;Rg|=kg;var i=xs(),a=Ss();if(zg!==e||$!==t){if(Vd){var o=e.memoizedUpdaters;0<o.size&&(ec(e,$),o.clear()),N(e,t)}g_=null,vs(e,t)}t=!1,o=n_;a:do try{if(Xg!==Bg&&Q!==null){var s=Q,c=Zg;switch(Xg){case Jg:gs(),o=Ig;break a;case Ug:case Hg:case Yg:case Kg:Qm.current===null&&(t=!0);var l=Xg;if(Xg=Bg,Zg=null,Ms(e,s,c,l),n&&$g){o=jg;break a}break;default:l=Xg,Xg=Bg,Zg=null,Ms(e,s,c,l)}}Es(),o=n_;break}catch(t){ys(e,t)}while(1);return t&&e.shellSuspendCounter++,Ot(),Rg=r,U.H=i,U.A=a,Q===null&&(zg=null,$=0,Kn()),o}function Es(){for(;Q!==null;)ks(Q)}function Ds(e,t){var n=Rg;Rg|=kg;var r=xs(),i=Ss();if(zg!==e||$!==t){if(Vd){var a=e.memoizedUpdaters;0<a.size&&(ec(e,$),a.clear()),N(e,t)}g_=null,m_=jd()+h_,vs(e,t)}else $g=j(e,t);a:do try{if(Xg!==Bg&&Q!==null)b:switch(t=Q,a=Zg,Xg){case Vg:Xg=Bg,Zg=null,Ms(e,t,a,Vg);break;case Hg:case Yg:if(On(a)){Xg=Bg,Zg=null,As(t);break}t=function(){Xg!==Hg&&Xg!==Yg||zg!==e||(Xg=qg),ln(e)},a.then(t,t);break a;case Ug:Xg=qg;break a;case Wg:Xg=Gg;break a;case qg:On(a)?(Xg=Bg,Zg=null,As(t)):(Xg=Bg,Zg=null,Ms(e,t,a,qg));break;case Gg:var o=null;switch(Q.tag){case 26:o=Q.memoizedState;case 5:case 27:var s=Q,c=s.type,l=s.pendingProps;if(o?ld(o):El(s.stateNode,c,l)){Xg=Bg,Zg=null;var u=s.sibling;if(u!==null)Q=u;else{var d=s.return;d===null?Q=null:(Q=d,Ns(d))}break b}break;default:console.error(`Unexpected type of fiber triggered a suspensey commit. This is a bug in React.`)}Xg=Bg,Zg=null,Ms(e,t,a,Gg);break;case Kg:Xg=Bg,Zg=null,Ms(e,t,a,Kg);break;case Jg:gs(),n_=Ig;break a;default:throw Error(`Unexpected SuspendedReason. This is a bug in React.`)}U.actQueue===null?Os():Es();break}catch(t){ys(e,t)}while(1);return Ot(),U.H=r,U.A=i,Rg=n,Q===null?(zg=null,$=0,Kn(),n_):jg}function Os(){for(;Q!==null&&!kd();)ks(Q)}function ks(e){var t=e.alternate;(e.mode&2)===K?t=L(e,Na,t,e,t_):(en(e),t=L(e,Na,t,e,t_),tn(e)),e.memoizedProps=e.pendingProps,t===null?Ns(e):Q=t}function As(e){var t=L(e,js,e);e.memoizedProps=e.pendingProps,t===null?Ns(e):Q=t}function js(e){var t=e.alternate,n=(e.mode&2)!==K;switch(n&&en(e),e.tag){case 15:case 0:t=va(t,e,e.pendingProps,e.type,void 0,$);break;case 11:t=va(t,e,e.pendingProps,e.type.render,e.ref,$);break;case 5:Or(e);default:Ja(t,e),e=Q=dc(e,t_),t=Na(t,e,t_)}return n&&tn(e),t}function Ms(e,t,n,r){Ot(),Or(t),Om=null,km=0;var i=t.return;try{if(aa(e,i,t,n,$)){n_=Mg,ea(e,ze(n,e.current)),Q=null;return}}catch(t){if(i!==null)throw Q=i,t;n_=Mg,ea(e,ze(n,e.current)),Q=null;return}t.flags&32768?(Pf||r===Vg?e=!0:$g||$&536870912?e=!1:(Qg=e=!0,(r===Hg||r===Yg||r===Ug||r===Kg)&&(r=Qm.current,r!==null&&r.tag===13&&(r.flags|=16384))),Ps(t,e)):Ns(t)}function Ns(e){var t=e;do{if(t.flags&32768){Ps(t,Qg);return}var n=t.alternate;if(e=t.return,en(t),n=L(t,Ka,n,t,t_),(t.mode&2)!==K&&nn(t),n!==null){Q=n;return}if(t=t.sibling,t!==null){Q=t;return}Q=t=e}while(t!==null);n_===jg&&(n_=Lg)}function Ps(e,t){do{var n=qa(e.alternate,e);if(n!==null){n.flags&=32767,Q=n;return}if((e.mode&2)!==K){nn(e),n=e.actualDuration;for(var r=e.child;r!==null;)n+=r.actualDuration,r=r.sibling;e.actualDuration=n}if(n=e.return,n!==null&&(n.flags|=32768,n.subtreeFlags=0,n.deletions=null),!t&&(e=e.sibling,e!==null)){Q=e;return}Q=e=n}while(e!==null);n_=Ig,Q=null}function Fs(e,t,n,r,i,a,o,s,c,l,u,d,f,p){e.cancelPendingCommit=null;do Vs();while(k_!==C_);if(Jp.flushLegacyContextWarning(),Jp.flushPendingUnsafeLifecycleWarnings(),(Rg&(kg|Ag))!==Og)throw Error(`Should not already be working.`);if(P(n),l===Ng?De(f,p,n,__):r===null?Ce(f,p,n,__):Ee(f,p,n,r,t!==null&&t.alternate!==null&&t.alternate.memoizedState.isDehydrated&&(t.flags&256)!=0,__),t!==null){if(n===0&&console.error(`finishedLanes should not be empty during a commit. This is a bug in React.`),t===e.current)throw Error(`Cannot commit the same tree as before. This error is likely caused by a bug in React. Please file an issue.`);if(a=t.lanes|t.childLanes,a|=Vm,ae(e,n,a,o,s,c),e===zg&&(Q=zg=null,$=0),j_=t,A_=e,M_=n,N_=a,F_=i,I_=r,P_=p,L_=d,R_=y_,z_=null,t.actualDuration!==0||t.subtreeFlags&10256||t.flags&10256?(e.callbackNode=null,e.callbackPriority=0,tc(Pd,function(){return vl(),R_===y_&&(R_=x_),Hs(),null})):(e.callbackNode=null,e.callbackPriority=0),np=null,ep=Zf(),d!==null&&Oe(p,ep,d,__),r=(t.flags&13878)!=0,t.subtreeFlags&13878||r){r=U.T,U.T=null,i=gl(),hl(2),o=Rg,Rg|=Ag;try{xo(e,t,n)}finally{Rg=o,hl(i),U.T=r}}k_=w_,Is(),Ls(),Rs()}}function Is(){if(k_===w_){k_=C_;var e=A_,t=j_,n=M_,r=(t.flags&13878)!=0;if(t.subtreeFlags&13878||r){r=U.T,U.T=null;var i=gl();hl(2);var a=Rg;Rg|=Ag;try{fg=n,pg=e,qt(),jo(t,e),pg=fg=null,tl(e.containerInfo)}finally{Rg=a,hl(i),U.T=r}}e.current=t,k_=T_}}function Ls(){if(k_===T_){k_=C_;var e=z_;if(e!==null){ep=Zf();var t=tp,n=ep;!Yd||n<=t||(kp?kp.run(console.timeStamp.bind(console,e,t,n,Xd,`Scheduler ⚛`,`secondary-light`)):console.timeStamp(e,t,n,Xd,`Scheduler ⚛`,`secondary-light`))}e=A_,t=j_,n=M_;var r=(t.flags&8772)!=0;if(t.subtreeFlags&8772||r){r=U.T,U.T=null;var i=gl();hl(2);var a=Rg;Rg|=Ag;try{fg=n,pg=e,qt(),So(e,t.alternate,t),pg=fg=null}finally{Rg=a,hl(i),U.T=r}}e=P_,t=L_,tp=Zf(),e=t===null?e:ep,t=tp,n=R_===b_,r=__,np===null?!Yd||t<=e||(r?r.run(console.timeStamp.bind(console,n?`Commit Interrupted View Transition`:`Commit`,e,t,Xd,`Scheduler ⚛`,n?`error`:`secondary-dark`)):console.timeStamp(n?`Commit Interrupted View Transition`:`Commit`,e,t,Xd,`Scheduler ⚛`,n?`error`:`secondary-dark`)):ke(e,t,np,!1,r),k_=E_}}function Rs(){if(k_===D_||k_===E_){if(k_===D_){var e=tp;tp=Zf();var t=tp,n=R_===b_;!Yd||t<=e||(kp?kp.run(console.timeStamp.bind(console,n?`Interrupted View Transition`:`Starting Animation`,e,t,Xd,`Scheduler ⚛`,n?`error`:`secondary-light`)):console.timeStamp(n?`Interrupted View Transition`:`Starting Animation`,e,t,Xd,`Scheduler ⚛`,n?` error`:`secondary-light`)),R_!==b_&&(R_=S_)}k_=C_,Ad(),e=A_;var r=j_;t=M_,n=I_;var i=r.actualDuration!==0||(r.subtreeFlags&10256)!=0||(r.flags&10256)!=0;i?k_=O_:(k_=C_,j_=A_=null,Bs(e,e.pendingLanes),K_=0,q_=null);var a=e.pendingLanes;if(a===0&&(v_=null),i||Qs(e),a=de(t),r=r.stateNode,zd&&typeof zd.onCommitFiberRoot==`function`)try{var o=(r.current.flags&128)==128;switch(a){case 2:var s=Md;break;case 8:s=Nd;break;case 32:s=Pd;break;case 268435456:s=Fd;break;default:s=Pd}zd.onCommitFiberRoot(Rd,r,s,o)}catch(e){Bd||(Bd=!0,console.error(`React instrumentation encountered an error: %o`,e))}if(Vd&&e.memoizedUpdaters.clear(),as(),n!==null){o=U.T,s=gl(),hl(2),U.T=null;try{var c=e.onRecoverableError;for(r=0;r<n.length;r++){var l=n[r],u=zs(l.stack);L(l.source,c,l.value,u)}}finally{U.T=o,hl(s)}}M_&3&&Vs(),ln(e),a=e.pendingLanes,t&261930&&a&42?(Np=!0,e===H_?V_++:(V_=0,H_=e)):V_=0,i||_s(t,tp),fl&&Bu(),un(0,!1)}}function zs(e){return e={componentStack:e},Object.defineProperty(e,"digest",{get:function(){console.error(`You are accessing "digest" from the errorInfo object passed to onRecoverableError. This property is no longer provided as part of errorInfo but can be accessed as a property of the Error instance itself.`)}}),e}function Bs(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,Vt(t)))}function Vs(){return Is(),Ls(),Rs(),Hs()}function Hs(){if(k_!==O_)return!1;var e=A_,t=N_;N_=0;var n=de(M_),r=32>n?32:n;n=U.T;var i=gl();try{hl(r),U.T=null;var a=F_;F_=null,r=A_;var o=M_;if(k_=C_,j_=A_=null,M_=0,(Rg&(kg|Ag))!==Og)throw Error(`Cannot flush passive effects while already rendering.`);P(o),U_=!0,W_=!1;var s=0;if(np=null,s=jd(),R_===S_){var c=tp,l=s;!Yd||l<=c||(kp?kp.run(console.timeStamp.bind(console,`Animating`,c,l,Xd,`Scheduler ⚛`,`secondary-dark`)):console.timeStamp(`Animating`,c,l,Xd,`Scheduler ⚛`,`secondary-dark`))}else{c=tp,l=s;var u=R_===x_;!Yd||l<=c||(__?__.run(console.timeStamp.bind(console,u?`Waiting for Paint`:`Waiting`,c,l,Xd,`Scheduler ⚛`,`secondary-light`)):console.timeStamp(u?`Waiting for Paint`:`Waiting`,c,l,Xd,`Scheduler ⚛`,`secondary-light`))}c=Rg,Rg|=Ag;var d=r.current;qt(),Xo(d);var f=r.current;d=P_,qt(),Ho(r,f,o,a,d),Qs(r),Rg=c;var p=jd();if(f=s,d=__,np===null?!Yd||p<=f||(d?d.run(console.timeStamp.bind(console,`Remaining Effects`,f,p,Xd,`Scheduler ⚛`,`secondary-dark`)):console.timeStamp(`Remaining Effects`,f,p,Xd,`Scheduler ⚛`,`secondary-dark`)):ke(f,p,np,!0,d),_s(o,p),un(0,!1),W_?r===q_?K_++:(K_=0,q_=r):K_=0,W_=U_=!1,zd&&typeof zd.onPostCommitFiberRoot==`function`)try{zd.onPostCommitFiberRoot(Rd,r)}catch(e){Bd||(Bd=!0,console.error(`React instrumentation encountered an error: %o`,e))}var m=r.current.stateNode;return m.effectDuration=0,m.passiveEffectDuration=0,!0}finally{hl(i),U.T=n,Bs(e,t)}}function Us(e,t,n){t=ze(n,t),an(t),t=na(e.stateNode,t,2),e=tr(e,t,2),e!==null&&(ie(e,2),ln(e))}function Ws(e,t,n){if(J_=!1,e.tag===3)Us(e,e,n);else{for(;t!==null;){if(t.tag===3){Us(t,e,n);return}if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError==`function`||typeof r.componentDidCatch==`function`&&(v_===null||!v_.has(r))){e=ze(n,e),an(e),n=ra(2),r=tr(t,n,2),r!==null&&(ia(n,r,t,e),ie(r,2),ln(r));return}}t=t.return}console.error(`Internal React error: Attempted to capture a commit phase error inside a detached tree. This indicates a bug in React. Potential causes include deleting the same fiber more than once, committing an already-finished tree, or an inconsistent return pointer.
|
|
226
|
+
Learn more about data fetching with Hooks: https://react.dev/link/hooks-data-fetching`:` You returned: `+r,L(t,function(e,t){console.error(`%s must not return anything besides a function, which is used for clean-up.%s`,e,t)},a,o)}n=n.next}while(n!==i)}}catch(e){Ws(t,t.return,e)}}function V(e,t,n){try{var r=t.updateQueue,i=r===null?null:r.lastEffect;if(i!==null){var a=i.next;r=a;do{if((r.tag&e)===e){var o=r.inst,s=o.destroy;s!==void 0&&(o.destroy=void 0,(e&ah)!==rh&&(J_=!0),i=t,L(i,ym,i,n,s),(e&ah)!==rh&&(J_=!1))}r=r.next}while(r!==a)}}catch(e){Ws(t,t.return,e)}}function $a(e,t){Ya(e)?(on(),Qa(t,e),rn()):Qa(t,e)}function eo(e,t,n){Ya(e)?(on(),V(n,e,t),rn()):V(n,e,t)}function to(e){var t=e.updateQueue;if(t!==null){var n=e.stateNode;e.type.defaultProps||`ref`in e.memoizedProps||tg||(n.props!==e.memoizedProps&&console.error("Expected %s props to match memoized props before processing the update queue. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",T(e)||`instance`),n.state!==e.memoizedState&&console.error("Expected %s state to match memoized state before processing the update queue. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",T(e)||`instance`));try{L(e,cr,t,n)}catch(t){Ws(e,e.return,t)}}}function no(e,t,n){return e.getSnapshotBeforeUpdate(t,n)}function ro(e,t){var n=t.memoizedProps,r=t.memoizedState;t=e.stateNode,e.type.defaultProps||`ref`in e.memoizedProps||tg||(t.props!==e.memoizedProps&&console.error("Expected %s props to match memoized props before getSnapshotBeforeUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",T(e)||`instance`),t.state!==e.memoizedState&&console.error("Expected %s state to match memoized state before getSnapshotBeforeUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",T(e)||`instance`));try{var i=$i(e.type,n),a=L(e,no,t,i,r);n=og,a!==void 0||n.has(e.type)||(n.add(e.type),L(e,function(){console.error(`%s.getSnapshotBeforeUpdate(): A snapshot value (or null) must be returned. You have returned undefined.`,T(e))})),t.__reactInternalSnapshotBeforeUpdate=a}catch(t){Ws(e,e.return,t)}}function io(e,t,n){n.props=$i(e.type,e.memoizedProps),n.state=e.memoizedState,Ya(e)?(on(),L(e,hm,e,t,n),rn()):L(e,hm,e,t,n)}function ao(e){var t=e.ref;if(t!==null){switch(e.tag){case 26:case 27:case 5:var n=Xc(e.stateNode);break;case 30:n=e.stateNode;break;default:n=e.stateNode}if(typeof t==`function`)if(Ya(e))try{on(),e.refCleanup=t(n)}finally{rn()}else e.refCleanup=t(n);else typeof t==`string`?console.error(`String refs are no longer supported.`):t.hasOwnProperty(`current`)||console.error(`Unexpected ref object provided for %s. Use either a ref-setter function or React.createRef().`,T(e)),t.current=n}}function oo(e,t){try{L(e,ao,e)}catch(n){Ws(e,t,n)}}function so(e,t){var n=e.ref,r=e.refCleanup;if(n!==null)if(typeof r==`function`)try{if(Ya(e))try{on(),L(e,r)}finally{rn(e)}else L(e,r)}catch(n){Ws(e,t,n)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof n==`function`)try{if(Ya(e))try{on(),L(e,n,null)}finally{rn(e)}else L(e,n,null)}catch(n){Ws(e,t,n)}else n.current=null}function co(e,t,n,r){var i=e.memoizedProps,a=i.id,o=i.onCommit;i=i.onRender,t=t===null?`mount`:`update`,Mp&&(t=`nested-update`),typeof i==`function`&&i(a,t,e.actualDuration,e.treeBaseDuration,e.actualStartTime,n),typeof o==`function`&&o(a,t,r,n)}function lo(e,t,n,r){var i=e.memoizedProps;e=i.id,i=i.onPostCommit,t=t===null?`mount`:`update`,Mp&&(t=`nested-update`),typeof i==`function`&&i(e,t,r,n)}function uo(e){var t=e.type,n=e.memoizedProps,r=e.stateNode;try{L(e,ql,r,t,n,e)}catch(t){Ws(e,e.return,t)}}function fo(e,t,n){try{L(e,Jl,e.stateNode,e.type,n,t,e)}catch(t){Ws(e,e.return,t)}}function po(e){return e.tag===5||e.tag===3||(Zu?e.tag===26:!1)||(dd?e.tag===27&&gd(e.type):!1)||e.tag===4}function mo(e){a:for(;;){for(;e.sibling===null;){if(e.return===null||po(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(dd&&e.tag===27&&gd(e.type)||e.flags&2||e.child===null||e.tag===4)continue a;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function ho(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?Xl(n,e,t):Kl(n,e);else if(r!==4&&(dd&&r===27&&gd(e.type)&&(n=e.stateNode,t=null),e=e.child,e!==null))for(ho(e,t,n),e=e.sibling;e!==null;)ho(e,t,n),e=e.sibling}function go(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?Yl(n,e,t):Gl(n,e);else if(r!==4&&(dd&&r===27&&gd(e.type)&&(n=e.stateNode),e=e.child,e!==null))for(go(e,t,n),e=e.sibling;e!==null;)go(e,t,n),e=e.sibling}function _o(e){for(var t,n=e.return;n!==null;){if(po(n)){t=n;break}n=n.return}if(ul){if(t==null)throw Error(`Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue.`);switch(t.tag){case 27:if(dd){t=t.stateNode,n=mo(e),go(e,n,t);break}case 5:n=t.stateNode,t.flags&32&&($l(n),t.flags&=-33),t=mo(e),go(e,t,n);break;case 3:case 4:t=t.stateNode.containerInfo,n=mo(e),ho(e,n,t);break;default:throw Error(`Invalid host parent fiber. This error is likely caused by a bug in React. Please file an issue.`)}}}function vo(e,t,n){e=e.containerInfo;try{L(t,lu,e,n)}catch(e){Ws(t,t.return,e)}}function yo(e){var t=e.stateNode,n=e.memoizedProps;try{L(e,pd,e.type,n,t,e)}catch(t){Ws(e,e.return,t)}}function bo(e,t){return t.tag===31?(t=t.memoizedState,e.memoizedState!==null&&t===null):t.tag===13?(e=e.memoizedState,t=t.memoizedState,e!==null&&e.dehydrated!==null&&(t===null||t.dehydrated===null)):t.tag===3?e.memoizedState.isDehydrated&&(t.flags&256)==0:!1}function xo(e,t){for($c(e.containerInfo),dg=t;dg!==null;)if(e=dg,t=e.child,e.subtreeFlags&1028&&t!==null)t.return=e,dg=t;else for(;dg!==null;){t=e=dg;var n=t.alternate,r=t.flags;switch(t.tag){case 0:if(r&4&&(t=t.updateQueue,t=t===null?null:t.events,t!==null))for(n=0;n<t.length;n++)r=t[n],r.ref.impl=r.nextImpl;break;case 11:case 15:break;case 1:r&1024&&n!==null&&ro(t,n);break;case 3:r&1024&&ul&&iu(t.stateNode.containerInfo);break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if(r&1024)throw Error(`This unit of work tag should not have side-effects. This error is likely caused by a bug in React. Please file an issue.`)}if(t=e.sibling,t!==null){t.return=e.return,dg=t;break}dg=e.return}}function So(e,t,n){var r=Jt(),i=Xt(),a=Qt(),o=$t(),s=n.flags;switch(n.tag){case 0:case 11:case 15:Po(e,n),s&4&&Xa(n,oh|ih);break;case 1:if(Po(e,n),s&4)if(e=n.stateNode,t===null)n.type.defaultProps||`ref`in n.memoizedProps||tg||(e.props!==n.memoizedProps&&console.error("Expected %s props to match memoized props before componentDidMount. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",T(n)||`instance`),e.state!==n.memoizedState&&console.error("Expected %s state to match memoized state before componentDidMount. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",T(n)||`instance`)),Ya(n)?(on(),L(n,lm,n,e),rn()):L(n,lm,n,e);else{var c=$i(n.type,t.memoizedProps);t=t.memoizedState,n.type.defaultProps||`ref`in n.memoizedProps||tg||(e.props!==n.memoizedProps&&console.error("Expected %s props to match memoized props before componentDidUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",T(n)||`instance`),e.state!==n.memoizedState&&console.error("Expected %s state to match memoized state before componentDidUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",T(n)||`instance`)),Ya(n)?(on(),L(n,dm,n,e,c,t,e.__reactInternalSnapshotBeforeUpdate),rn()):L(n,dm,n,e,c,t,e.__reactInternalSnapshotBeforeUpdate)}s&64&&to(n),s&512&&oo(n,n.return);break;case 3:if(t=Wt(),Po(e,n),s&64&&(s=n.updateQueue,s!==null)){if(c=null,n.child!==null)switch(n.child.tag){case 27:case 5:c=Xc(n.child.stateNode);break;case 1:c=n.child.stateNode}try{L(n,cr,s,c)}catch(e){Ws(n,n.return,e)}}e.effectDuration+=Gt(t);break;case 27:dd&&t===null&&s&4&&yo(n);case 26:case 5:if(Po(e,n),t===null){if(s&4)uo(n);else if(s&64){e=n.type,t=n.memoizedProps,c=n.stateNode;try{L(n,Fu,c,e,t,n)}catch(e){Ws(n,n.return,e)}}}s&512&&oo(n,n.return);break;case 12:if(s&4){s=Wt(),Po(e,n),e=n.stateNode,e.effectDuration+=Kt(s);try{L(n,co,n,t,ep,e.effectDuration)}catch(e){Ws(n,n.return,e)}}else Po(e,n);break;case 31:Po(e,n),s&4&&Eo(e,n);break;case 13:Po(e,n),s&4&&Do(e,n),s&64&&(e=n.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(s=Js.bind(null,n),hu(e,s))));break;case 22:if(s=n.memoizedState!==null||sg,!s){t=t!==null&&t.memoizedState!==null||cg,c=sg;var l=cg;sg=s,(cg=t)&&!l?(Ro(e,n,(n.subtreeFlags&8772)!=0),(n.mode&2)!==K&&0<=q&&0<=J&&.05<J-q&&be(n,q,J)):Po(e,n),sg=c,cg=l}break;case 30:break;default:Po(e,n)}(n.mode&2)!==K&&0<=q&&0<=J&&((sp||.05<ap)&&Se(n,q,J,ap,op),n.alternate===null&&n.return!==null&&n.return.alternate!==null&&.05<J-q&&(bo(n.return.alternate,n.return)||ye(n,q,J,`Mount`))),Yt(r),Zt(i),op=a,sp=o}function Co(e){var t=e.alternate;t!==null&&(e.alternate=null,Co(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&Sl(t)),e.stateNode=null,e._debugOwner=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function wo(e,t,n){for(n=n.child;n!==null;)To(e,t,n),n=n.sibling}function To(e,t,n){if(zd&&typeof zd.onCommitFiberUnmount==`function`)try{zd.onCommitFiberUnmount(Rd,n)}catch(e){Bd||(Bd=!0,console.error(`React instrumentation encountered an error: %o`,e))}var r=Jt(),i=Xt(),a=Qt(),o=$t();switch(n.tag){case 26:if(Zu){cg||so(n,t),wo(e,t,n),n.memoizedState?nd(n.memoizedState):n.stateNode&&ad(n.stateNode);break}case 27:if(dd){cg||so(n,t);var s=mg,c=hg;gd(n.type)&&(mg=n.stateNode,hg=!1),wo(e,t,n),L(n,md,n.stateNode),mg=s,hg=c;break}case 5:cg||so(n,t);case 6:if(ul){if(s=mg,c=hg,mg=null,wo(e,t,n),mg=s,hg=c,mg!==null)if(hg)try{L(n,Ql,mg,n.stateNode)}catch(e){Ws(n,t,e)}else try{L(n,Zl,mg,n.stateNode)}catch(e){Ws(n,t,e)}}else wo(e,t,n);break;case 18:ul&&mg!==null&&(hg?Hu(mg,n.stateNode):Vu(mg,n.stateNode));break;case 4:ul?(s=mg,c=hg,mg=n.stateNode.containerInfo,hg=!0,wo(e,t,n),mg=s,hg=c):(dl&&vo(n.stateNode,n,ou()),wo(e,t,n));break;case 0:case 11:case 14:case 15:V(ah,n,t),cg||Za(n,t,oh),wo(e,t,n);break;case 1:cg||(so(n,t),s=n.stateNode,typeof s.componentWillUnmount==`function`&&io(n,t,s)),wo(e,t,n);break;case 21:wo(e,t,n);break;case 22:cg=(s=cg)||n.memoizedState!==null,wo(e,t,n),cg=s;break;default:wo(e,t,n)}(n.mode&2)!==K&&0<=q&&0<=J&&(sp||.05<ap)&&Se(n,q,J,ap,op),Yt(r),Zt(i),op=a,sp=o}function Eo(e,t){if(fl&&t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{L(t,Lu,e)}catch(e){Ws(t,t.return,e)}}}function Do(e,t){if(fl&&t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{L(t,Ru,e)}catch(e){Ws(t,t.return,e)}}function Oo(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new ug),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new ug),t;default:throw Error(`Unexpected Suspense handler tag (`+e.tag+`). This is a bug in React.`)}}function ko(e,t){var n=Oo(e);t.forEach(function(t){if(!n.has(t)){if(n.add(t),Vd)if(fg!==null&&pg!==null)$s(pg,fg);else throw Error(`Expected finished root and lanes to be set. This is a bug in React.`);var r=Ys.bind(null,e,t);t.then(r,r)}})}function Ao(e,t){var n=t.deletions;if(n!==null)for(var r=0;r<n.length;r++){var i=e,a=t,o=n[r],s=Jt();if(ul){var c=a;a:for(;c!==null;){switch(c.tag){case 27:if(dd){if(gd(c.type)){mg=c.stateNode,hg=!1;break a}break}case 5:mg=c.stateNode,hg=!1;break a;case 3:case 4:mg=c.stateNode.containerInfo,hg=!0;break a}c=c.return}if(mg===null)throw Error(`Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue.`);To(i,a,o),mg=null,hg=!1}else To(i,a,o);(o.mode&2)!==K&&0<=q&&0<=J&&.05<J-q&&ye(o,q,J,`Unmount`),Yt(s),i=o,a=i.alternate,a!==null&&(a.return=null),i.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)jo(t,e),t=t.sibling}function jo(e,t){var n=Jt(),r=Xt(),i=Qt(),a=$t(),o=e.alternate,s=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:Ao(t,e),Mo(e),s&4&&(V(ah|ih,e,e.return),Qa(ah|ih,e),Za(e,e.return,oh|ih));break;case 1:Ao(t,e),Mo(e),s&512&&(cg||o===null||so(o,o.return)),s&64&&sg&&(s=e.updateQueue,s!==null&&(o=s.callbacks,o!==null&&(t=s.shared.hiddenCallbacks,s.shared.hiddenCallbacks=t===null?o:t.concat(o))));break;case 26:if(Zu){var c=gg;Ao(t,e),Mo(e),s&512&&(cg||o===null||so(o,o.return)),s&4&&(s=o===null?null:o.memoizedState,t=e.memoizedState,o===null?t===null?e.stateNode===null?e.stateNode=rd(c,e.type,e.memoizedProps,e):id(c,e.type,e.stateNode):e.stateNode=td(c,t,e.memoizedProps):s===t?t===null&&e.stateNode!==null&&fo(e,e.memoizedProps,o.memoizedProps):(s===null?o.stateNode!==null&&ad(o.stateNode):nd(s),t===null?id(c,e.type,e.stateNode):td(c,t,e.memoizedProps)));break}case 27:if(dd){Ao(t,e),Mo(e),s&512&&(cg||o===null||so(o,o.return)),o!==null&&s&4&&fo(e,e.memoizedProps,o.memoizedProps);break}case 5:if(Ao(t,e),Mo(e),s&512&&(cg||o===null||so(o,o.return)),ul){if(e.flags&32){t=e.stateNode;try{L(e,$l,t)}catch(t){Ws(e,e.return,t)}}s&4&&e.stateNode!=null&&(t=e.memoizedProps,fo(e,t,o===null?t:o.memoizedProps)),s&1024&&(lg=!0,e.type!==`form`&&console.error(`Unexpected host component type. Expected a form. This is a bug in React.`))}else dl&&e.alternate!==null&&(e.alternate.stateNode=e.stateNode);break;case 6:if(Ao(t,e),Mo(e),s&4&&ul){if(e.stateNode===null)throw Error(`This should have a text node initialized. This error is likely caused by a bug in React. Please file an issue.`);s=e.memoizedProps,o=o===null?s:o.memoizedProps,t=e.stateNode;try{L(e,G,t,o,s)}catch(t){Ws(e,e.return,t)}}break;case 3:if(c=Wt(),Zu){sd();var l=gg;gg=$u(t.containerInfo),Ao(t,e),gg=l}else Ao(t,e);if(Mo(e),s&4){if(ul&&fl&&o!==null&&o.memoizedState.isDehydrated)try{L(e,Iu,t.containerInfo)}catch(t){Ws(e,e.return,t)}if(dl){s=t.containerInfo,o=t.pendingChildren;try{L(e,lu,s,o)}catch(t){Ws(e,e.return,t)}}}lg&&(lg=!1,No(e)),t.effectDuration+=Gt(c);break;case 4:Zu?(o=gg,gg=$u(e.stateNode.containerInfo),Ao(t,e),Mo(e),gg=o):(Ao(t,e),Mo(e)),s&4&&dl&&vo(e.stateNode,e,e.stateNode.pendingChildren);break;case 12:s=Wt(),Ao(t,e),Mo(e),e.stateNode.effectDuration+=Kt(s);break;case 31:Ao(t,e),Mo(e),s&4&&(s=e.updateQueue,s!==null&&(e.updateQueue=null,ko(e,s)));break;case 13:Ao(t,e),Mo(e),e.child.flags&8192&&e.memoizedState!==null!=(o!==null&&o.memoizedState!==null)&&(d_=jd()),s&4&&(s=e.updateQueue,s!==null&&(e.updateQueue=null,ko(e,s)));break;case 22:c=e.memoizedState!==null;var u=o!==null&&o.memoizedState!==null,d=sg,f=cg;if(sg=d||c,cg=f||u,Ao(t,e),cg=f,sg=d,u&&!c&&!d&&!f&&(e.mode&2)!==K&&0<=q&&0<=J&&.05<J-q&&be(e,q,J),Mo(e),s&8192&&(t=e.stateNode,t._visibility=c?t._visibility&~Lm:t._visibility|Lm,!c||o===null||u||sg||cg||(Io(e),(e.mode&2)!==K&&0<=q&&0<=J&&.05<J-q&&ye(e,q,J,`Disconnect`)),ul)){a:if(o=null,ul)for(t=e;;){if(t.tag===5||Zu&&t.tag===26){if(o===null){u=o=t;try{l=u.stateNode,c?L(u,eu,l):L(u,nu,u.stateNode,u.memoizedProps)}catch(e){Ws(u,u.return,e)}}}else if(t.tag===6){if(o===null){u=t;try{var p=u.stateNode;c?L(u,tu,p):L(u,ru,p,u.memoizedProps)}catch(e){Ws(u,u.return,e)}}}else if(t.tag===18){if(o===null){u=t;try{var m=u.stateNode;c?L(u,Uu,m):L(u,Wu,u.stateNode)}catch(e){Ws(u,u.return,e)}}}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 a;for(;t.sibling===null;){if(t.return===null||t.return===e)break a;o===t&&(o=null),t=t.return}o===t&&(o=null),t.sibling.return=t.return,t=t.sibling}}s&4&&(s=e.updateQueue,s!==null&&(o=s.retryQueue,o!==null&&(s.retryQueue=null,ko(e,o))));break;case 19:Ao(t,e),Mo(e),s&4&&(s=e.updateQueue,s!==null&&(e.updateQueue=null,ko(e,s)));break;case 30:break;case 21:break;default:Ao(t,e),Mo(e)}(e.mode&2)!==K&&0<=q&&0<=J&&((sp||.05<ap)&&Se(e,q,J,ap,op),e.alternate===null&&e.return!==null&&e.return.alternate!==null&&.05<J-q&&(bo(e.return.alternate,e.return)||ye(e,q,J,`Mount`))),Yt(n),Zt(r),op=i,sp=a}function Mo(e){var t=e.flags;if(t&2){try{L(e,_o,e)}catch(t){Ws(e,e.return,t)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function No(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;No(t),t.tag===5&&t.flags&1024&&Nl(t.stateNode),e=e.sibling}}function Po(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)So(e,t.alternate,t),t=t.sibling}function Fo(e){var t=Jt(),n=Xt(),r=Qt(),i=$t();switch(e.tag){case 0:case 11:case 14:case 15:Za(e,e.return,oh),Io(e);break;case 1:so(e,e.return);var a=e.stateNode;typeof a.componentWillUnmount==`function`&&io(e,e.return,a),Io(e);break;case 27:dd&&L(e,md,e.stateNode);case 26:case 5:so(e,e.return),Io(e);break;case 22:e.memoizedState===null&&Io(e);break;case 30:Io(e);break;default:Io(e)}(e.mode&2)!==K&&0<=q&&0<=J&&(sp||.05<ap)&&Se(e,q,J,ap,op),Yt(t),Zt(n),op=r,sp=i}function Io(e){for(e=e.child;e!==null;)Fo(e),e=e.sibling}function Lo(e,t,n,r){var i=Jt(),a=Xt(),o=Qt(),s=$t(),c=n.flags;switch(n.tag){case 0:case 11:case 15:Ro(e,n,r),Xa(n,oh);break;case 1:if(Ro(e,n,r),t=n.stateNode,typeof t.componentDidMount==`function`&&L(n,lm,n,t),t=n.updateQueue,t!==null){e=n.stateNode;try{L(n,sr,t,e)}catch(e){Ws(n,n.return,e)}}r&&c&64&&to(n),oo(n,n.return);break;case 27:dd&&yo(n);case 26:case 5:Ro(e,n,r),r&&t===null&&c&4&&uo(n),oo(n,n.return);break;case 12:if(r&&c&4){c=Wt(),Ro(e,n,r),r=n.stateNode,r.effectDuration+=Kt(c);try{L(n,co,n,t,ep,r.effectDuration)}catch(e){Ws(n,n.return,e)}}else Ro(e,n,r);break;case 31:Ro(e,n,r),r&&c&4&&Eo(e,n);break;case 13:Ro(e,n,r),r&&c&4&&Do(e,n);break;case 22:n.memoizedState===null&&Ro(e,n,r),oo(n,n.return);break;case 30:break;default:Ro(e,n,r)}(n.mode&2)!==K&&0<=q&&0<=J&&(sp||.05<ap)&&Se(n,q,J,ap,op),Yt(i),Zt(a),op=o,sp=s}function Ro(e,t,n){for(n&&=(t.subtreeFlags&8772)!=0,t=t.child;t!==null;)Lo(e,t.alternate,t,n),t=t.sibling}function zo(e,t){var n=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==n&&(e!=null&&Bt(e),n!=null&&Vt(n))}function Bo(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(Bt(t),e!=null&&Vt(e))}function Vo(e,t,n,r,i){if(t.subtreeFlags&10256||t.actualDuration!==0&&(t.alternate===null||t.alternate.child!==t.child))for(t=t.child;t!==null;){var a=t.sibling;Ho(e,t,n,r,a===null?i:a.actualStartTime),t=a}}function Ho(e,t,n,r,i){var a=Jt(),o=Xt(),s=Qt(),c=$t(),l=Zd,u=t.flags;switch(t.tag){case 0:case 11:case 15:(t.mode&2)!==K&&0<t.actualStartTime&&t.flags&1&&F(t,t.actualStartTime,i,_g,n),Vo(e,t,n,r,i),u&2048&&$a(t,sh|ih);break;case 1:(t.mode&2)!==K&&0<t.actualStartTime&&(t.flags&128?xe(t,t.actualStartTime,i,[]):t.flags&1&&F(t,t.actualStartTime,i,_g,n)),Vo(e,t,n,r,i);break;case 3:var d=Wt(),f=_g;_g=t.alternate!==null&&t.alternate.memoizedState.isDehydrated&&(t.flags&256)==0,Vo(e,t,n,r,i),_g=f,u&2048&&(n=null,t.alternate!==null&&(n=t.alternate.memoizedState.cache),r=t.memoizedState.cache,r!==n&&(Bt(r),n!=null&&Vt(n))),e.passiveEffectDuration+=Gt(d);break;case 12:if(u&2048){u=Wt(),Vo(e,t,n,r,i),e=t.stateNode,e.passiveEffectDuration+=Kt(u);try{L(t,lo,t,t.alternate,ep,e.passiveEffectDuration)}catch(e){Ws(t,t.return,e)}}else Vo(e,t,n,r,i);break;case 31:u=_g,d=t.alternate===null?null:t.alternate.memoizedState,f=t.memoizedState,d!==null&&f===null?(f=t.deletions,f!==null&&0<f.length&&f[0].tag===18?(_g=!1,d=d.hydrationErrors,d!==null&&xe(t,t.actualStartTime,i,d)):_g=!0):_g=!1,Vo(e,t,n,r,i),_g=u;break;case 13:u=_g,d=t.alternate===null?null:t.alternate.memoizedState,f=t.memoizedState,d===null||d.dehydrated===null||f!==null&&f.dehydrated!==null?_g=!1:(f=t.deletions,f!==null&&0<f.length&&f[0].tag===18?(_g=!1,d=d.hydrationErrors,d!==null&&xe(t,t.actualStartTime,i,d)):_g=!0),Vo(e,t,n,r,i),_g=u;break;case 23:break;case 22:f=t.stateNode,d=t.alternate,t.memoizedState===null?f._visibility&Rm?Vo(e,t,n,r,i):(f._visibility|=Rm,Uo(e,t,n,r,(t.subtreeFlags&10256)!=0||t.actualDuration!==0&&(t.alternate===null||t.alternate.child!==t.child),i),(t.mode&2)===K||_g||(e=t.actualStartTime,0<=e&&.05<i-e&&be(t,e,i),0<=q&&0<=J&&.05<J-q&&be(t,q,J))):f._visibility&Rm?Vo(e,t,n,r,i):Go(e,t,n,r,i),u&2048&&zo(d,t);break;case 24:Vo(e,t,n,r,i),u&2048&&Bo(t.alternate,t);break;default:Vo(e,t,n,r,i)}(t.mode&2)!==K&&((e=!_g&&t.alternate===null&&t.return!==null&&t.return.alternate!==null)&&(n=t.actualStartTime,0<=n&&.05<i-n&&ye(t,n,i,`Mount`)),0<=q&&0<=J&&((sp||.05<ap)&&Se(t,q,J,ap,op),e&&.05<J-q&&ye(t,q,J,`Mount`))),Yt(a),Zt(o),op=s,sp=c,Zd=l}function Uo(e,t,n,r,i,a){for(i&&=(t.subtreeFlags&10256)!=0||t.actualDuration!==0&&(t.alternate===null||t.alternate.child!==t.child),t=t.child;t!==null;){var o=t.sibling;Wo(e,t,n,r,i,o===null?a:o.actualStartTime),t=o}}function Wo(e,t,n,r,i,a){var o=Jt(),s=Xt(),c=Qt(),l=$t(),u=Zd;i&&(t.mode&2)!==K&&0<t.actualStartTime&&t.flags&1&&F(t,t.actualStartTime,a,_g,n);var d=t.flags;switch(t.tag){case 0:case 11:case 15:Uo(e,t,n,r,i,a),$a(t,sh);break;case 23:break;case 22:var f=t.stateNode;t.memoizedState===null?(f._visibility|=Rm,Uo(e,t,n,r,i,a)):f._visibility&Rm?Uo(e,t,n,r,i,a):Go(e,t,n,r,a),i&&d&2048&&zo(t.alternate,t);break;case 24:Uo(e,t,n,r,i,a),i&&d&2048&&Bo(t.alternate,t);break;default:Uo(e,t,n,r,i,a)}(t.mode&2)!==K&&0<=q&&0<=J&&(sp||.05<ap)&&Se(t,q,J,ap,op),Yt(o),Zt(s),op=c,sp=l,Zd=u}function Go(e,t,n,r,i){if(t.subtreeFlags&10256||t.actualDuration!==0&&(t.alternate===null||t.alternate.child!==t.child))for(var a=t.child;a!==null;){t=a.sibling;var o=e,s=n,c=r,l=t===null?i:t.actualStartTime,u=Zd;(a.mode&2)!==K&&0<a.actualStartTime&&a.flags&1&&F(a,a.actualStartTime,l,_g,s);var d=a.flags;switch(a.tag){case 22:Go(o,a,s,c,l),d&2048&&zo(a.alternate,a);break;case 24:Go(o,a,s,c,l),d&2048&&Bo(a.alternate,a);break;default:Go(o,a,s,c,l)}Zd=u,a=t}}function Ko(e,t,n){if(e.subtreeFlags&vg)for(e=e.child;e!==null;)qo(e,t,n),e=e.sibling}function qo(e,t,n){switch(e.tag){case 26:if(Ko(e,t,n),e.flags&vg)if(e.memoizedState!==null)ud(n,gg,e.memoizedState,e.memoizedProps);else{var r=e.stateNode,i=e.type;e=e.memoizedProps,((t&335544128)===t||Tl(i,e))&&Ol(n,r,i,e)}break;case 5:Ko(e,t,n),e.flags&vg&&(r=e.stateNode,i=e.type,e=e.memoizedProps,((t&335544128)===t||Tl(i,e))&&Ol(n,r,i,e));break;case 3:case 4:Zu?(r=gg,gg=$u(e.stateNode.containerInfo),Ko(e,t,n),gg=r):Ko(e,t,n);break;case 22:e.memoizedState===null&&(r=e.alternate,r!==null&&r.memoizedState!==null?(r=vg,vg=16777216,Ko(e,t,n),vg=r):Ko(e,t,n));break;default:Ko(e,t,n)}}function Jo(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 Yo(e){var t=e.deletions;if(e.flags&16){if(t!==null)for(var n=0;n<t.length;n++){var r=t[n],i=Jt();dg=r,$o(r,e),(r.mode&2)!==K&&0<=q&&0<=J&&.05<J-q&&ye(r,q,J,`Unmount`),Yt(i)}Jo(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)Xo(e),e=e.sibling}function Xo(e){var t=Jt(),n=Xt(),r=Qt(),i=$t();switch(e.tag){case 0:case 11:case 15:Yo(e),e.flags&2048&&eo(e,e.return,sh|ih);break;case 3:var a=Wt();Yo(e),e.stateNode.passiveEffectDuration+=Gt(a);break;case 12:a=Wt(),Yo(e),e.stateNode.passiveEffectDuration+=Kt(a);break;case 22:a=e.stateNode,e.memoizedState!==null&&a._visibility&Rm&&(e.return===null||e.return.tag!==13)?(a._visibility&=~Rm,Zo(e),(e.mode&2)!==K&&0<=q&&0<=J&&.05<J-q&&ye(e,q,J,`Disconnect`)):Yo(e);break;default:Yo(e)}(e.mode&2)!==K&&0<=q&&0<=J&&(sp||.05<ap)&&Se(e,q,J,ap,op),Yt(t),Zt(n),sp=i,op=r}function Zo(e){var t=e.deletions;if(e.flags&16){if(t!==null)for(var n=0;n<t.length;n++){var r=t[n],i=Jt();dg=r,$o(r,e),(r.mode&2)!==K&&0<=q&&0<=J&&.05<J-q&&ye(r,q,J,`Unmount`),Yt(i)}Jo(e)}for(e=e.child;e!==null;)Qo(e),e=e.sibling}function Qo(e){var t=Jt(),n=Xt(),r=Qt(),i=$t();switch(e.tag){case 0:case 11:case 15:eo(e,e.return,sh),Zo(e);break;case 22:var a=e.stateNode;a._visibility&Rm&&(a._visibility&=~Rm,Zo(e));break;default:Zo(e)}(e.mode&2)!==K&&0<=q&&0<=J&&(sp||.05<ap)&&Se(e,q,J,ap,op),Yt(t),Zt(n),sp=i,op=r}function $o(e,t){for(;dg!==null;){var n=dg,r=n,i=t,a=Jt(),o=Xt(),s=Qt(),c=$t();switch(r.tag){case 0:case 11:case 15:eo(r,i,sh);break;case 23:case 22:r.memoizedState!==null&&r.memoizedState.cachePool!==null&&(i=r.memoizedState.cachePool.pool,i!=null&&Bt(i));break;case 24:Vt(r.memoizedState.cache)}if((r.mode&2)!==K&&0<=q&&0<=J&&(sp||.05<ap)&&Se(r,q,J,ap,op),Yt(a),Zt(o),sp=c,op=s,r=n.child,r!==null)r.return=n,dg=r;else a:for(n=e;dg!==null;){if(r=dg,a=r.sibling,o=r.return,Co(r),r===n){dg=null;break a}if(a!==null){a.return=o,dg=a;break a}dg=o}}}function es(e){var t=pl(e);if(t!=null){if(typeof t.memoizedProps[`data-testname`]!=`string`)throw Error(`Invalid host root specified. Should be either a React container or a node with a testname attribute.`);return t}if(e=Rl(e),e===null)throw Error(`Could not find React container within specified host subtree.`);return e.stateNode.current}function ts(e,t){var n=e.tag;switch(t.$$typeof){case bg:if(e.type===t.value)return!0;break;case xg:a:{for(t=t.value,e=[e,0],n=0;n<e.length;){var r=e[n++],i=r.tag,a=e[n++],o=t[a];if(i!==5&&i!==26&&i!==27||!Vl(r)){for(;o!=null&&ts(r,o);)a++,o=t[a];if(a===t.length){t=!0;break a}else for(r=r.child;r!==null;)e.push(r,a),r=r.sibling}}t=!1}return t;case Sg:if((n===5||n===26||n===27)&&Hl(e.stateNode,t.value))return!0;break;case wg:if((n===5||n===6||n===26||n===27)&&(e=Bl(e),e!==null&&0<=e.indexOf(t.value)))return!0;break;case Cg:if((n===5||n===26||n===27)&&(e=e.memoizedProps[`data-testname`],typeof e==`string`&&e.toLowerCase()===t.value.toLowerCase()))return!0;break;default:throw Error(`Invalid selector type specified.`)}return!1}function ns(e){switch(e.$$typeof){case bg:return`<`+(w(e.value)||`Unknown`)+`>`;case xg:return`:has(`+(ns(e)||``)+`)`;case Sg:return`[role="`+e.value+`"]`;case wg:return`"`+e.value+`"`;case Cg:return`[data-testname="`+e.value+`"]`;default:throw Error(`Invalid selector type specified.`)}}function rs(e,t){var n=[];e=[e,0];for(var r=0;r<e.length;){var i=e[r++],a=i.tag,o=e[r++],s=t[o];if(a!==5&&a!==26&&a!==27||!Vl(i)){for(;s!=null&&ts(i,s);)o++,s=t[o];if(o===t.length)n.push(i);else for(i=i.child;i!==null;)e.push(i,o),i=i.sibling}}return n}function is(e,t){if(!Ll)throw Error(`Test selector API is not supported by this renderer.`);e=es(e),e=rs(e,t),t=[],e=Array.from(e);for(var n=0;n<e.length;){var r=e[n++],i=r.tag;if(i===5||i===26||i===27)Vl(r)||t.push(r.stateNode);else for(r=r.child;r!==null;)e.push(r),r=r.sibling}return t}function as(){Ll&&Eg.forEach(function(e){return e()})}function os(){var e=typeof IS_REACT_ACT_ENVIRONMENT<`u`?IS_REACT_ACT_ENVIRONMENT:void 0;return e||W.actQueue===null||console.error(`The current testing environment is not configured to support act(...)`),e}function ss(e){if((Rg&kg)!==Og&&$!==0)return $&-$;var t=W.T;return t===null?_l():(t._updatedFibers||=new Set,t._updatedFibers.add(e),yn())}function cs(){if(o_===0)if(!($&536870912)||Pf){var e=Td;Td<<=1,!(Td&3932160)&&(Td=262144),o_=e}else o_=536870912;return e=Qm.current,e!==null&&(e.flags|=32),o_}function ls(e,t,n){if(J_&&console.error(`useInsertionEffect must not schedule updates.`),U_&&(W_=!0),(e===zg&&(Xg===Hg||Xg===Yg)||e.cancelPendingCommit!==null)&&(vs(e,0),ps(e,$,o_,!1)),ie(e,n),(Rg&kg)!==Og&&e===zg){if(jf)switch(t.tag){case 0:case 11:case 15:e=Q&&T(Q)||`Unknown`,Z_.has(e)||(Z_.add(e),t=T(t)||`Unknown`,console.error("Cannot update a component (`%s`) while rendering a different component (`%s`). To locate the bad setState() call inside `%s`, follow the stack trace as described in https://react.dev/link/setstate-in-render",t,e,e));break;case 1:X_||=(console.error("Cannot update during an existing state transition (such as within `render`). Render methods should be a pure function of props and state."),!0)}}else Vd&&ue(e,t,n),tc(t),e===zg&&((Rg&kg)===Og&&(i_|=n),n_===Fg&&ps(e,$,o_,!1)),ln(e)}function us(e,t,n){if((Rg&(kg|Ag))!==Og)throw Error(`Should not already be working.`);if($!==0&&Q!==null){var r=Q,i=jd();switch(Ap){case Ug:case Hg:var a=jp;Yd&&((r=r._debugTask)?r.run(console.timeStamp.bind(console,`Suspended`,a,i,`Components ⚛`,void 0,`primary-light`)):console.timeStamp(`Suspended`,a,i,`Components ⚛`,void 0,`primary-light`));break;case Yg:a=jp,Yd&&((r=r._debugTask)?r.run(console.timeStamp.bind(console,`Action`,a,i,`Components ⚛`,void 0,`primary-light`)):console.timeStamp(`Action`,a,i,`Components ⚛`,void 0,`primary-light`));break;default:Yd&&(r=i-jp,3>r||console.timeStamp(`Blocked`,jp,i,`Components ⚛`,void 0,5>r?`primary-light`:10>r?`primary`:100>r?`primary-dark`:`error`))}}a=(n=!n&&(t&127)==0&&(t&e.expiredLanes)===0||j(e,t))?Ds(e,t):Ts(e,t,!0);var o=n;do{if(a===jg){$g&&!n&&ps(e,t,0,!1),t=Xg,jp=Zf(),Ap=t;break}else{if(r=jd(),i=e.current.alternate,o&&!fs(i)){P(t),i=$f,a=r,!Yd||a<=i||(__?__.run(console.timeStamp.bind(console,`Teared Render`,i,a,Xd,`Scheduler ⚛`,`error`)):console.timeStamp(`Teared Render`,i,a,Xd,`Scheduler ⚛`,`error`)),_s(t,r),a=Ts(e,t,!1),o=!1;continue}if(a===Ng){if(o=t,e.errorRecoveryDisabledLanes&o)var s=0;else s=e.pendingLanes&-536870913,s=s===0?s&536870912?536870912:0:s;if(s!==0){P(t),De($f,r,t,__),_s(t,r),t=s;a:{r=e,a=o,o=c_;var c=fl&&r.current.memoizedState.isDehydrated;if(c&&(vs(r,s).flags|=256),s=Ts(r,s,!1),s!==Ng){if(e_&&!c){r.errorRecoveryDisabledLanes|=a,i_|=a,a=Fg;break a}r=l_,l_=o,r!==null&&(l_===null?l_=r:l_.push.apply(l_,r))}a=s}if(o=!1,a!==Ng)continue;r=jd()}}if(a===Mg){P(t),De($f,r,t,__),_s(t,r),vs(e,0),ps(e,t,0,!0);break}a:{switch(n=e,a){case jg:case Mg:throw Error(`Root did not complete. This is a bug in React.`);case Fg:if((t&4194048)!==t)break;case Ig:P(t),we($f,r,t,__),_s(t,r),i=t,i&127?_p=r:i&4194048&&(Op=r),ps(n,t,o_,!Qg);break a;case Ng:l_=null;break;case Pg:case Lg:break;default:throw Error(`Unknown root exit status.`)}if(W.actQueue!==null)Fs(n,i,t,l_,g_,u_,o_,i_,s_,a,null,null,$f,r);else{if((t&62914560)===t&&(o=d_+p_-jd(),10<o)){if(ps(n,t,o_,!Qg),te(n,0,!0)!==0)break a;M_=t,n.timeoutHandle=ol(ds.bind(null,n,i,l_,g_,u_,t,o_,i_,s_,Qg,a,`Throttled`,$f,r),o);break a}ds(n,i,l_,g_,u_,t,o_,i_,s_,Qg,a,null,$f,r)}}}break}while(1);ln(e)}function ds(e,t,n,r,i,a,o,s,c,l,u,d,f,p){e.timeoutHandle=cl;var m=t.subtreeFlags,h=null;if((m&8192||(m&16785408)==16785408)&&(h=Dl(),qo(t,a,h),m=(a&62914560)===a?d_-jd():(a&4194048)===a?f_-jd():0,m=kl(h,m),m!==null)){M_=a,e.cancelPendingCommit=m(Fs.bind(null,e,t,a,n,r,i,o,s,c,u,h,Al(h,e.containerInfo),f,p)),ps(e,a,o,!l);return}Fs(e,t,a,n,r,i,o,s,c,u,h,d,f,p)}function fs(e){for(var t=e;;){var n=t.tag;if((n===0||n===11||n===15)&&t.flags&16384&&(n=t.updateQueue,n!==null&&(n=n.stores,n!==null)))for(var r=0;r<n.length;r++){var i=n[r],a=i.getSnapshot;i=i.value;try{if(!Kd(a(),i))return!1}catch{return!1}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;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 ps(e,t,n,r){t&=~a_,t&=~i_,e.suspendedLanes|=t,e.pingedLanes&=~t,r&&(e.warmLanes|=t),r=e.expirationTimes;for(var i=t;0<i;){var a=31-xd(i),o=1<<a;r[a]=-1,i&=~o}n!==0&&oe(e,n,t)}function ms(){return(Rg&(kg|Ag))===Og?(un(0,!1),!1):!0}function hs(){return(Rg&(kg|Ag))!==Og}function gs(){if(Q!==null){if(Xg===Bg)var e=Q.return;else e=Q,Ot(),Or(e),Om=null,km=0,e=Q;for(;e!==null;)Ja(e.alternate,e),e=e.return;Q=null}}function _s(e,t){e&127&&(cp=t),e&4194048&&(vp=t)}function vs(e,t){Yd&&(console.timeStamp(`Blocking Track`,.003,.003,`Blocking`,`Scheduler ⚛`,`primary-light`),console.timeStamp(`Transition Track`,.003,.003,`Transition`,`Scheduler ⚛`,`primary-light`),console.timeStamp(`Suspense Track`,.003,.003,`Suspense`,`Scheduler ⚛`,`primary-light`),console.timeStamp(`Idle Track`,.003,.003,`Idle`,`Scheduler ⚛`,`primary-light`));var n=$f;if($f=Zf(),$!==0&&0<n){if(P($),n_===Pg||n_===Fg)we(n,$f,t,__);else{var r=$f,i=__;if(Yd&&!(r<=n)){var a=(t&738197653)===t?`tertiary-dark`:`primary-dark`,o=(t&536870912)===t?`Prewarm`:(t&201326741)===t?`Interrupted Hydration`:`Interrupted Render`;i?i.run(console.timeStamp.bind(console,o,n,r,Xd,`Scheduler ⚛`,a)):console.timeStamp(o,n,r,Xd,`Scheduler ⚛`,a)}}_s($,$f)}if(n=__,__=null,t&127){__=up,i=0<=lp&&lp<cp?cp:lp,r=0<=mp&&mp<cp?cp:mp,a=0<=r?r:0<=i?i:$f,0<=_p&&(P(2),Te(_p,a,t,n)),n=i;var s=r,c=hp,l=0<gp,u=dp===1,d=dp===2;if(i=$f,r=up,a=fp,o=pp,Yd){if(Xd=`Blocking`,0<n?n>i&&(n=i):n=i,0<s?s>n&&(s=n):s=n,c!==null&&n>s){var f=l?`secondary-light`:`warning`;r?r.run(console.timeStamp.bind(console,l?`Consecutive`:`Event: `+c,s,n,Xd,`Scheduler ⚛`,f)):console.timeStamp(l?`Consecutive`:`Event: `+c,s,n,Xd,`Scheduler ⚛`,f)}i>n&&(s=u?`error`:(t&738197653)===t?`tertiary-light`:`primary-light`,u=d?`Promise Resolved`:u?`Cascading Update`:5<i-n?`Update Blocked`:`Update`,d=[],o!=null&&d.push([`Component name`,o]),a!=null&&d.push([`Method name`,a]),n={start:n,end:i,detail:{devtools:{properties:d,track:Xd,trackGroup:`Scheduler ⚛`,color:s}}},r?r.run(performance.measure.bind(performance,u,n)):performance.measure(u,n))}lp=-1.1,dp=0,pp=fp=null,_p=-1.1,gp=mp,mp=-1.1,cp=Zf()}if(t&4194048&&(__=Sp,i=0<=yp&&yp<vp?vp:yp,n=0<=bp&&bp<vp?vp:bp,r=0<=Tp&&Tp<vp?vp:Tp,a=0<=r?r:0<=n?n:$f,0<=Op&&(P(256),Te(Op,a,t,__)),d=r,s=Ep,c=0<Dp,l=xp===2,a=$f,r=Sp,o=Cp,u=wp,Yd&&(Xd=`Transition`,0<n?n>a&&(n=a):n=a,0<i?i>n&&(i=n):i=n,0<d?d>i&&(d=i):d=i,i>d&&s!==null&&(f=c?`secondary-light`:`warning`,r?r.run(console.timeStamp.bind(console,c?`Consecutive`:`Event: `+s,d,i,Xd,`Scheduler ⚛`,f)):console.timeStamp(c?`Consecutive`:`Event: `+s,d,i,Xd,`Scheduler ⚛`,f)),n>i&&(r?r.run(console.timeStamp.bind(console,`Action`,i,n,Xd,`Scheduler ⚛`,`primary-dark`)):console.timeStamp(`Action`,i,n,Xd,`Scheduler ⚛`,`primary-dark`)),a>n&&(i=l?`Promise Resolved`:5<a-n?`Update Blocked`:`Update`,d=[],u!=null&&d.push([`Component name`,u]),o!=null&&d.push([`Method name`,o]),n={start:n,end:a,detail:{devtools:{properties:d,track:Xd,trackGroup:`Scheduler ⚛`,color:`primary-light`}}},r?r.run(performance.measure.bind(performance,i,n)):performance.measure(i,n))),bp=yp=-1.1,xp=0,Op=-1.1,Dp=Tp,Tp=-1.1,vp=Zf()),n=e.timeoutHandle,n!==cl&&(e.timeoutHandle=cl,sl(n)),n=e.cancelPendingCommit,n!==null&&(e.cancelPendingCommit=null,n()),M_=0,gs(),zg=e,Q=n=lc(e.current,null),$=t,Xg=Bg,Zg=null,Qg=!1,$g=j(e,t),e_=!1,n_=jg,s_=o_=a_=i_=r_=0,l_=c_=null,u_=!1,t&8&&(t|=t&32),r=e.entangledLanes,r!==0)for(e=e.entanglements,r&=t;0<r;)i=31-xd(r),a=1<<i,t|=e[i],r&=~a;return t_=t,Kn(),e=Wd(),1e3<e-Hd&&(W.recentlyCreatedOwnerStacks=0,Hd=e),Jp.discardPendingWarnings(),n}function ys(e,t){X=null,W.H=Dh,W.getCurrentStack=null,jf=!1,Af=null,t===Sm||t===wm?(t=jn(),Xg=Ug):t===Cm?(t=jn(),Xg=Wg):Xg=t===Yh?Jg:typeof t==`object`&&t&&typeof t.then==`function`?Kg:Vg,Zg=t;var n=Q;n===null?(n_=Mg,ea(e,ze(t,e.current))):n.mode&2&&tn(n)}function bs(){var e=Qm.current;return e===null?!0:($&4194048)===$?$m===null:($&62914560)===$||$&536870912?e===$m:!1}function xs(){var e=W.H;return W.H=Dh,e===null?Dh:e}function Ss(){var e=W.A;return W.A=yg,e}function Cs(e){__===null&&(__=e._debugTask==null?null:e._debugTask)}function ws(){n_=Fg,Qg||($&4194048)!==$&&Qm.current!==null||($g=!0),!(r_&134217727)&&!(i_&134217727)||zg===null||ps(zg,$,o_,!1)}function Ts(e,t,n){var r=Rg;Rg|=kg;var i=xs(),a=Ss();if(zg!==e||$!==t){if(Vd){var o=e.memoizedUpdaters;0<o.size&&($s(e,$),o.clear()),N(e,t)}g_=null,vs(e,t)}t=!1,o=n_;a:do try{if(Xg!==Bg&&Q!==null){var s=Q,c=Zg;switch(Xg){case Jg:gs(),o=Ig;break a;case Ug:case Hg:case Yg:case Kg:Qm.current===null&&(t=!0);var l=Xg;if(Xg=Bg,Zg=null,Ms(e,s,c,l),n&&$g){o=jg;break a}break;default:l=Xg,Xg=Bg,Zg=null,Ms(e,s,c,l)}}Es(),o=n_;break}catch(t){ys(e,t)}while(1);return t&&e.shellSuspendCounter++,Ot(),Rg=r,W.H=i,W.A=a,Q===null&&(zg=null,$=0,Kn()),o}function Es(){for(;Q!==null;)ks(Q)}function Ds(e,t){var n=Rg;Rg|=kg;var r=xs(),i=Ss();if(zg!==e||$!==t){if(Vd){var a=e.memoizedUpdaters;0<a.size&&($s(e,$),a.clear()),N(e,t)}g_=null,m_=jd()+h_,vs(e,t)}else $g=j(e,t);a:do try{if(Xg!==Bg&&Q!==null)b:switch(t=Q,a=Zg,Xg){case Vg:Xg=Bg,Zg=null,Ms(e,t,a,Vg);break;case Hg:case Yg:if(On(a)){Xg=Bg,Zg=null,As(t);break}t=function(){Xg!==Hg&&Xg!==Yg||zg!==e||(Xg=qg),ln(e)},a.then(t,t);break a;case Ug:Xg=qg;break a;case Wg:Xg=Gg;break a;case qg:On(a)?(Xg=Bg,Zg=null,As(t)):(Xg=Bg,Zg=null,Ms(e,t,a,qg));break;case Gg:var o=null;switch(Q.tag){case 26:o=Q.memoizedState;case 5:case 27:var s=Q,c=s.type,l=s.pendingProps;if(o?ld(o):El(s.stateNode,c,l)){Xg=Bg,Zg=null;var u=s.sibling;if(u!==null)Q=u;else{var d=s.return;d===null?Q=null:(Q=d,Ns(d))}break b}break;default:console.error(`Unexpected type of fiber triggered a suspensey commit. This is a bug in React.`)}Xg=Bg,Zg=null,Ms(e,t,a,Gg);break;case Kg:Xg=Bg,Zg=null,Ms(e,t,a,Kg);break;case Jg:gs(),n_=Ig;break a;default:throw Error(`Unexpected SuspendedReason. This is a bug in React.`)}W.actQueue===null?Os():Es();break}catch(t){ys(e,t)}while(1);return Ot(),W.H=r,W.A=i,Rg=n,Q===null?(zg=null,$=0,Kn(),n_):jg}function Os(){for(;Q!==null&&!kd();)ks(Q)}function ks(e){var t=e.alternate;(e.mode&2)===K?t=L(e,Na,t,e,t_):(en(e),t=L(e,Na,t,e,t_),tn(e)),e.memoizedProps=e.pendingProps,t===null?Ns(e):Q=t}function As(e){var t=L(e,js,e);e.memoizedProps=e.pendingProps,t===null?Ns(e):Q=t}function js(e){var t=e.alternate,n=(e.mode&2)!==K;switch(n&&en(e),e.tag){case 15:case 0:t=va(t,e,e.pendingProps,e.type,void 0,$);break;case 11:t=va(t,e,e.pendingProps,e.type.render,e.ref,$);break;case 5:Or(e);default:Ja(t,e),e=Q=uc(e,t_),t=Na(t,e,t_)}return n&&tn(e),t}function Ms(e,t,n,r){Ot(),Or(t),Om=null,km=0;var i=t.return;try{if(aa(e,i,t,n,$)){n_=Mg,ea(e,ze(n,e.current)),Q=null;return}}catch(t){if(i!==null)throw Q=i,t;n_=Mg,ea(e,ze(n,e.current)),Q=null;return}t.flags&32768?(Pf||r===Vg?e=!0:$g||$&536870912?e=!1:(Qg=e=!0,(r===Hg||r===Yg||r===Ug||r===Kg)&&(r=Qm.current,r!==null&&r.tag===13&&(r.flags|=16384))),Ps(t,e)):Ns(t)}function Ns(e){var t=e;do{if(t.flags&32768){Ps(t,Qg);return}var n=t.alternate;if(e=t.return,en(t),n=L(t,Ka,n,t,t_),(t.mode&2)!==K&&nn(t),n!==null){Q=n;return}if(t=t.sibling,t!==null){Q=t;return}Q=t=e}while(t!==null);n_===jg&&(n_=Lg)}function Ps(e,t){do{var n=qa(e.alternate,e);if(n!==null){n.flags&=32767,Q=n;return}if((e.mode&2)!==K){nn(e),n=e.actualDuration;for(var r=e.child;r!==null;)n+=r.actualDuration,r=r.sibling;e.actualDuration=n}if(n=e.return,n!==null&&(n.flags|=32768,n.subtreeFlags=0,n.deletions=null),!t&&(e=e.sibling,e!==null)){Q=e;return}Q=e=n}while(e!==null);n_=Ig,Q=null}function Fs(e,t,n,r,i,a,o,s,c,l,u,d,f,p){e.cancelPendingCommit=null;do Vs();while(k_!==C_);if(Jp.flushLegacyContextWarning(),Jp.flushPendingUnsafeLifecycleWarnings(),(Rg&(kg|Ag))!==Og)throw Error(`Should not already be working.`);if(P(n),l===Ng?De(f,p,n,__):r===null?Ce(f,p,n,__):Ee(f,p,n,r,t!==null&&t.alternate!==null&&t.alternate.memoizedState.isDehydrated&&(t.flags&256)!=0,__),t!==null){if(n===0&&console.error(`finishedLanes should not be empty during a commit. This is a bug in React.`),t===e.current)throw Error(`Cannot commit the same tree as before. This error is likely caused by a bug in React. Please file an issue.`);if(a=t.lanes|t.childLanes,a|=Vm,ae(e,n,a,o,s,c),e===zg&&(Q=zg=null,$=0),j_=t,A_=e,M_=n,N_=a,F_=i,I_=r,P_=p,L_=d,R_=y_,z_=null,t.actualDuration!==0||t.subtreeFlags&10256||t.flags&10256?(e.callbackNode=null,e.callbackPriority=0,ec(Pd,function(){return vl(),R_===y_&&(R_=x_),Hs(),null})):(e.callbackNode=null,e.callbackPriority=0),np=null,ep=Zf(),d!==null&&Oe(p,ep,d,__),r=(t.flags&13878)!=0,t.subtreeFlags&13878||r){r=W.T,W.T=null,i=gl(),hl(2),o=Rg,Rg|=Ag;try{xo(e,t,n)}finally{Rg=o,hl(i),W.T=r}}k_=w_,Is(),Ls(),Rs()}}function Is(){if(k_===w_){k_=C_;var e=A_,t=j_,n=M_,r=(t.flags&13878)!=0;if(t.subtreeFlags&13878||r){r=W.T,W.T=null;var i=gl();hl(2);var a=Rg;Rg|=Ag;try{fg=n,pg=e,qt(),jo(t,e),pg=fg=null,el(e.containerInfo)}finally{Rg=a,hl(i),W.T=r}}e.current=t,k_=T_}}function Ls(){if(k_===T_){k_=C_;var e=z_;if(e!==null){ep=Zf();var t=tp,n=ep;!Yd||n<=t||(kp?kp.run(console.timeStamp.bind(console,e,t,n,Xd,`Scheduler ⚛`,`secondary-light`)):console.timeStamp(e,t,n,Xd,`Scheduler ⚛`,`secondary-light`))}e=A_,t=j_,n=M_;var r=(t.flags&8772)!=0;if(t.subtreeFlags&8772||r){r=W.T,W.T=null;var i=gl();hl(2);var a=Rg;Rg|=Ag;try{fg=n,pg=e,qt(),So(e,t.alternate,t),pg=fg=null}finally{Rg=a,hl(i),W.T=r}}e=P_,t=L_,tp=Zf(),e=t===null?e:ep,t=tp,n=R_===b_,r=__,np===null?!Yd||t<=e||(r?r.run(console.timeStamp.bind(console,n?`Commit Interrupted View Transition`:`Commit`,e,t,Xd,`Scheduler ⚛`,n?`error`:`secondary-dark`)):console.timeStamp(n?`Commit Interrupted View Transition`:`Commit`,e,t,Xd,`Scheduler ⚛`,n?`error`:`secondary-dark`)):ke(e,t,np,!1,r),k_=E_}}function Rs(){if(k_===D_||k_===E_){if(k_===D_){var e=tp;tp=Zf();var t=tp,n=R_===b_;!Yd||t<=e||(kp?kp.run(console.timeStamp.bind(console,n?`Interrupted View Transition`:`Starting Animation`,e,t,Xd,`Scheduler ⚛`,n?`error`:`secondary-light`)):console.timeStamp(n?`Interrupted View Transition`:`Starting Animation`,e,t,Xd,`Scheduler ⚛`,n?` error`:`secondary-light`)),R_!==b_&&(R_=S_)}k_=C_,Ad(),e=A_;var r=j_;t=M_,n=I_;var i=r.actualDuration!==0||(r.subtreeFlags&10256)!=0||(r.flags&10256)!=0;i?k_=O_:(k_=C_,j_=A_=null,Bs(e,e.pendingLanes),K_=0,q_=null);var a=e.pendingLanes;if(a===0&&(v_=null),i||Qs(e),a=de(t),r=r.stateNode,zd&&typeof zd.onCommitFiberRoot==`function`)try{var o=(r.current.flags&128)==128;switch(a){case 2:var s=Md;break;case 8:s=Nd;break;case 32:s=Pd;break;case 268435456:s=Fd;break;default:s=Pd}zd.onCommitFiberRoot(Rd,r,s,o)}catch(e){Bd||(Bd=!0,console.error(`React instrumentation encountered an error: %o`,e))}if(Vd&&e.memoizedUpdaters.clear(),as(),n!==null){o=W.T,s=gl(),hl(2),W.T=null;try{var c=e.onRecoverableError;for(r=0;r<n.length;r++){var l=n[r],u=zs(l.stack);L(l.source,c,l.value,u)}}finally{W.T=o,hl(s)}}M_&3&&Vs(),ln(e),a=e.pendingLanes,t&261930&&a&42?(Np=!0,e===H_?V_++:(V_=0,H_=e)):V_=0,i||_s(t,tp),fl&&Bu(),un(0,!1)}}function zs(e){return e={componentStack:e},Object.defineProperty(e,"digest",{get:function(){console.error(`You are accessing "digest" from the errorInfo object passed to onRecoverableError. This property is no longer provided as part of errorInfo but can be accessed as a property of the Error instance itself.`)}}),e}function Bs(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,Vt(t)))}function Vs(){return Is(),Ls(),Rs(),Hs()}function Hs(){if(k_!==O_)return!1;var e=A_,t=N_;N_=0;var n=de(M_),r=32>n?32:n;n=W.T;var i=gl();try{hl(r),W.T=null;var a=F_;F_=null,r=A_;var o=M_;if(k_=C_,j_=A_=null,M_=0,(Rg&(kg|Ag))!==Og)throw Error(`Cannot flush passive effects while already rendering.`);P(o),U_=!0,W_=!1;var s=0;if(np=null,s=jd(),R_===S_){var c=tp,l=s;!Yd||l<=c||(kp?kp.run(console.timeStamp.bind(console,`Animating`,c,l,Xd,`Scheduler ⚛`,`secondary-dark`)):console.timeStamp(`Animating`,c,l,Xd,`Scheduler ⚛`,`secondary-dark`))}else{c=tp,l=s;var u=R_===x_;!Yd||l<=c||(__?__.run(console.timeStamp.bind(console,u?`Waiting for Paint`:`Waiting`,c,l,Xd,`Scheduler ⚛`,`secondary-light`)):console.timeStamp(u?`Waiting for Paint`:`Waiting`,c,l,Xd,`Scheduler ⚛`,`secondary-light`))}c=Rg,Rg|=Ag;var d=r.current;qt(),Xo(d);var f=r.current;d=P_,qt(),Ho(r,f,o,a,d),Qs(r),Rg=c;var p=jd();if(f=s,d=__,np===null?!Yd||p<=f||(d?d.run(console.timeStamp.bind(console,`Remaining Effects`,f,p,Xd,`Scheduler ⚛`,`secondary-dark`)):console.timeStamp(`Remaining Effects`,f,p,Xd,`Scheduler ⚛`,`secondary-dark`)):ke(f,p,np,!0,d),_s(o,p),un(0,!1),W_?r===q_?K_++:(K_=0,q_=r):K_=0,W_=U_=!1,zd&&typeof zd.onPostCommitFiberRoot==`function`)try{zd.onPostCommitFiberRoot(Rd,r)}catch(e){Bd||(Bd=!0,console.error(`React instrumentation encountered an error: %o`,e))}var m=r.current.stateNode;return m.effectDuration=0,m.passiveEffectDuration=0,!0}finally{hl(i),W.T=n,Bs(e,t)}}function Us(e,t,n){t=ze(n,t),an(t),t=na(e.stateNode,t,2),e=tr(e,t,2),e!==null&&(ie(e,2),ln(e))}function Ws(e,t,n){if(J_=!1,e.tag===3)Us(e,e,n);else{for(;t!==null;){if(t.tag===3){Us(t,e,n);return}if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError==`function`||typeof r.componentDidCatch==`function`&&(v_===null||!v_.has(r))){e=ze(n,e),an(e),n=ra(2),r=tr(t,n,2),r!==null&&(ia(n,r,t,e),ie(r,2),ln(r));return}}t=t.return}console.error(`Internal React error: Attempted to capture a commit phase error inside a detached tree. This indicates a bug in React. Potential causes include deleting the same fiber more than once, committing an already-finished tree, or an inconsistent return pointer.
|
|
227
227
|
|
|
228
228
|
Error message:
|
|
229
229
|
|
|
230
|
-
%s`,n)}}function Gs(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new Dg;var i=new Set;r.set(t,i)}else i=r.get(t),i===void 0&&(i=new Set,r.set(t,i));i.has(n)||(e_=!0,i.add(n),r=Ks.bind(null,e,t,n),Vd
|
|
230
|
+
%s`,n)}}function Gs(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new Dg;var i=new Set;r.set(t,i)}else i=r.get(t),i===void 0&&(i=new Set,r.set(t,i));i.has(n)||(e_=!0,i.add(n),r=Ks.bind(null,e,t,n),Vd&&$s(e,n),t.then(r,r))}function Ks(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),e.pingedLanes|=e.suspendedLanes&n,e.warmLanes&=~n,n&127?0>lp&&(cp=lp=Zf(),up=Qf(`Promise Resolved`),dp=2):n&4194048&&0>bp&&(vp=bp=Zf(),Sp=Qf(`Promise Resolved`),xp=2),os()&&W.actQueue===null&&console.error(`A suspended resource finished loading inside a test, but the event was not wrapped in act(...).
|
|
231
231
|
|
|
232
232
|
When testing, code that resolves suspended data should be wrapped into act(...):
|
|
233
233
|
|
|
@@ -236,7 +236,7 @@ act(() => {
|
|
|
236
236
|
});
|
|
237
237
|
/* assert on the output */
|
|
238
238
|
|
|
239
|
-
This ensures that you're testing the behavior the user would see in the browser. Learn more at https://react.dev/link/wrap-tests-with-act`),zg===e&&($&n)===n&&(n_===Fg||n_===Pg&&($&62914560)===$&&jd()-d_<p_?(Rg&kg)===Og&&vs(e,0):a_|=n,s_===$&&(s_=0)),ln(e)}function qs(e,t){t===0&&(t=M()),e=Yn(e,t),e!==null&&(ie(e,t),ln(e))}function Js(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),qs(e,n)}function Ys(e,t){var n=0;switch(e.tag){case 31:case 13:var r=e.stateNode,i=e.memoizedState;i!==null&&(n=i.retryLane);break;case 19:r=e.stateNode;break;case 22:r=e.stateNode._retryCache;break;default:throw Error(`Pinged unknown suspense boundary type. This is probably a bug in React.`)}r!==null&&r.delete(t),qs(e,n)}function Xs(e,t,n){if(t.subtreeFlags&67117056)for(t=t.child;t!==null;){var r=e,i=t,a=i.type===
|
|
239
|
+
This ensures that you're testing the behavior the user would see in the browser. Learn more at https://react.dev/link/wrap-tests-with-act`),zg===e&&($&n)===n&&(n_===Fg||n_===Pg&&($&62914560)===$&&jd()-d_<p_?(Rg&kg)===Og&&vs(e,0):a_|=n,s_===$&&(s_=0)),ln(e)}function qs(e,t){t===0&&(t=M()),e=Yn(e,t),e!==null&&(ie(e,t),ln(e))}function Js(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),qs(e,n)}function Ys(e,t){var n=0;switch(e.tag){case 31:case 13:var r=e.stateNode,i=e.memoizedState;i!==null&&(n=i.retryLane);break;case 19:r=e.stateNode;break;case 22:r=e.stateNode._retryCache;break;default:throw Error(`Pinged unknown suspense boundary type. This is probably a bug in React.`)}r!==null&&r.delete(t),qs(e,n)}function Xs(e,t,n){if(t.subtreeFlags&67117056)for(t=t.child;t!==null;){var r=e,i=t,a=i.type===Nc;a=n||a,i.tag===22?i.memoizedState===null&&(a&&i.flags&8192?L(i,Zs,r,i):i.subtreeFlags&67108864&&L(i,Xs,r,i,a)):i.flags&67108864?a&&L(i,Zs,r,i):Xs(r,i,a),t=t.sibling}}function Zs(e,t){pe(!0);try{Fo(t),Qo(t),Lo(e,t.alternate,t,!1),Wo(e,t,0,null,!1,0)}finally{pe(!1)}}function Qs(e){var t=!0;e.current.mode&24||(t=!1),Xs(e,e.current,t)}function H(e){if((Rg&kg)===Og){var t=e.tag;if(t===3||t===1||t===0||t===11||t===14||t===15){if(t=T(e)||`ReactComponent`,Y_!==null){if(Y_.has(t))return;Y_.add(t)}else Y_=new Set([t]);L(e,function(){console.error(`Can't perform a React state update on a component that hasn't mounted yet. This indicates that you have a side-effect in your render function that asynchronously tries to update the component. Move this work to useEffect instead.`)})}}}function $s(e,t){Vd&&e.memoizedUpdaters.forEach(function(n){ue(e,n,t)})}function ec(e,t){var n=W.actQueue;return n===null?Dd(e,t):(n.push(t),Q_)}function tc(e){os()&&W.actQueue===null&&L(e,function(){console.error(`An update to %s inside a test was not wrapped in act(...).
|
|
240
240
|
|
|
241
241
|
When testing, code that causes React state updates should be wrapped into act(...):
|
|
242
242
|
|
|
@@ -245,11 +245,11 @@ act(() => {
|
|
|
245
245
|
});
|
|
246
246
|
/* assert on the output */
|
|
247
247
|
|
|
248
|
-
This ensures that you're testing the behavior the user would see in the browser. Learn more at https://react.dev/link/wrap-tests-with-act`,T(e))})}function
|
|
248
|
+
This ensures that you're testing the behavior the user would see in the browser. Learn more at https://react.dev/link/wrap-tests-with-act`,T(e))})}function nc(e){if($_===null)return e;var t=$_(e);return t===void 0?e:t.current}function rc(e){if($_===null)return e;var t=$_(e);return t===void 0?e!=null&&typeof e.render==`function`&&(t=nc(e.render),e.render!==t)?(t={$$typeof:Lc,render:t},e.displayName!==void 0&&(t.displayName=e.displayName),t):e:t.current}function ic(e,t){if($_===null)return!1;var n=e.elementType;t=t.type;var r=!1,i=typeof t==`object`&&t?t.$$typeof:null;switch(e.tag){case 1:typeof t==`function`&&(r=!0);break;case 0:(typeof t==`function`||i===Vc)&&(r=!0);break;case 11:(i===Lc||i===Vc)&&(r=!0);break;case 14:case 15:(i===Bc||i===Vc)&&(r=!0);break;default:return!1}return!!(r&&(e=$_(n),e!==void 0&&e===$_(t)))}function ac(e){$_!==null&&typeof WeakSet==`function`&&(ev===null&&(ev=new WeakSet),ev.add(e))}function oc(e,t,n){do{var r=e,i=r.alternate,a=r.child,o=r.sibling,s=r.tag;r=r.type;var c=null;switch(s){case 0:case 15:case 1:c=r;break;case 11:c=r.render}if($_===null)throw Error(`Expected resolveFamily to be set during hot reload.`);var l=!1;if(r=!1,c!==null&&(c=$_(c),c!==void 0&&(n.has(c)?r=!0:t.has(c)&&(s===1?r=!0:l=!0))),ev!==null&&(ev.has(e)||i!==null&&ev.has(i))&&(r=!0),r&&(e._debugNeedsRemount=!0),(r||l)&&(i=Yn(e,2),i!==null&&ls(i,e,2)),a===null||r||oc(a,t,n),o===null)break;e=o}while(1)}function sc(e,t,n,r){this.tag=e,this.key=n,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=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null,this.actualDuration=-0,this.actualStartTime=-1.1,this.treeBaseDuration=this.selfBaseDuration=-0,this._debugTask=this._debugStack=this._debugOwner=this._debugInfo=null,this._debugNeedsRemount=!1,this._debugHookTypes=null,tv||typeof Object.preventExtensions!=`function`||Object.preventExtensions(this)}function cc(e){return e=e.prototype,!(!e||!e.isReactComponent)}function lc(e,t){var n=e.alternate;switch(n===null?(n=c(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n._debugOwner=e._debugOwner,n._debugStack=e._debugStack,n._debugTask=e._debugTask,n._debugHookTypes=e._debugHookTypes,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null,n.actualDuration=-0,n.actualStartTime=-1.1),n.flags=e.flags&65011712,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext,_debugThenableState:t._debugThenableState},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n.refCleanup=e.refCleanup,n.selfBaseDuration=e.selfBaseDuration,n.treeBaseDuration=e.treeBaseDuration,n._debugInfo=e._debugInfo,n._debugNeedsRemount=e._debugNeedsRemount,n.tag){case 0:case 15:n.type=nc(e.type);break;case 1:n.type=nc(e.type);break;case 11:n.type=rc(e.type)}return n}function uc(e,t){e.flags&=65011714;var n=e.alternate;return n===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.selfBaseDuration=0,e.treeBaseDuration=0):(e.childLanes=n.childLanes,e.lanes=n.lanes,e.child=n.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=n.memoizedProps,e.memoizedState=n.memoizedState,e.updateQueue=n.updateQueue,e.type=n.type,t=n.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext,_debugThenableState:t._debugThenableState},e.selfBaseDuration=n.selfBaseDuration,e.treeBaseDuration=n.treeBaseDuration),e}function dc(e,t,n,r,i,a){var o=0,s=e;if(typeof e==`function`)cc(e)&&(o=1),s=nc(s);else if(typeof e==`string`)Zu&&dd?(o=Ye(),o=Qu(e,n,o)?26:hd(e)?27:5):Zu?(o=Ye(),o=Qu(e,n,o)?26:5):o=dd&&hd(e)?27:5;else a:switch(e){case Hc:return t=c(31,n,t,i),t.elementType=Hc,t.lanes=a,t;case Mc:return pc(n.children,i,a,t);case Nc:o=8,i|=24;break;case Pc:return e=n,r=i,typeof e.id!=`string`&&console.error('Profiler must specify an "id" of type `string` as a prop. Received the type `%s` instead.',typeof e.id),t=c(12,e,t,r|2),t.elementType=Pc,t.lanes=a,t.stateNode={effectDuration:0,passiveEffectDuration:0},t;case Rc:return t=c(13,n,t,i),t.elementType=Rc,t.lanes=a,t;case zc:return t=c(19,n,t,i),t.elementType=zc,t.lanes=a,t;default:if(typeof e==`object`&&e)switch(e.$$typeof){case Ic:o=10;break a;case Fc:o=9;break a;case Lc:o=11,s=rc(s);break a;case Bc:o=14;break a;case Vc:o=16,s=null;break a}s=``,(e===void 0||typeof e==`object`&&e&&Object.keys(e).length===0)&&(s+=` You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.`),e===null?n=`null`:Kc(e)?n=`array`:e!==void 0&&e.$$typeof===Ac?(n=`<`+(w(e.type)||`Unknown`)+` />`,s=` Did you accidentally export a JSX literal instead of a component?`):n=typeof e,o=r?typeof r.tag==`number`?T(r):typeof r.name==`string`?r.name:null:null,o&&(s+=`
|
|
249
249
|
|
|
250
|
-
Check the render method of \``+o+"`."),o=29,n=Error(`Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: `+(n+`.`+s)),s=null}return t=c(o,n,t,i),t.elementType=e,t.type=s,t.lanes=a,t._debugOwner=r,t}function
|
|
250
|
+
Check the render method of \``+o+"`."),o=29,n=Error(`Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: `+(n+`.`+s)),s=null}return t=c(o,n,t,i),t.elementType=e,t.type=s,t.lanes=a,t._debugOwner=r,t}function fc(e,t,n){return t=dc(e.type,e.key,e.props,e._owner,t,n),t._debugOwner=e._owner,t._debugStack=e._debugStack,t._debugTask=e._debugTask,t}function pc(e,t,n,r){return e=c(7,e,r,t),e.lanes=n,e}function mc(e,t,n){return e=c(6,e,null,t),e.lanes=n,e}function hc(e){var t=c(18,null,null,K);return t.stateNode=e,t}function gc(e,t,n){return t=c(4,e.children===null?[]:e.children,e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function _c(e,t,n,r,i,a,o,s,c){for(this.tag=1,this.containerInfo=e,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=cl,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=re(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=re(0),this.hiddenUpdates=re(null),this.identifierPrefix=r,this.onUncaughtError=i,this.onCaughtError=a,this.onRecoverableError=o,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=c,this.incompleteTransitions=new Map,this.passiveEffectDuration=this.effectDuration=-0,this.memoizedUpdaters=new Set,e=this.pendingUpdatersLaneMap=[],t=0;31>t;t++)e.push(new Set);this._debugRootType=n?`hydrateRoot()`:`createRoot()`}function vc(e,t,n,r,i,a,o,s,l,u,d,f){return e=new _c(e,t,n,o,l,u,d,f,s),t=1,!0===a&&(t|=24),a=c(3,null,null,t|2),e.current=a,a.stateNode=e,t=zt(),Bt(t),e.pooledCache=t,Bt(t),a.memoizedState={element:r,isDehydrated:n,cache:t},Qn(a),e}function yc(e){return``+e}function bc(e){return e?(e=bd,e):bd}function xc(e,t,n,r){return Sc(t.current,2,e,t,n,r),2}function Sc(e,t,n,r,i,a){if(zd&&typeof zd.onScheduleFiberRoot==`function`)try{zd.onScheduleFiberRoot(Rd,r,n)}catch(e){Bd||(Bd=!0,console.error(`React instrumentation encountered an error: %o`,e))}i=bc(i),r.context===null?r.context=i:r.pendingContext=i,jf&&Af!==null&&!rv&&(rv=!0,console.error(`Render methods should be a pure function of props and state; triggering nested component updates from render is not allowed. If necessary, trigger nested updates in componentDidUpdate.
|
|
251
251
|
|
|
252
|
-
Check the render method of %s.`,T(Af)||`Unknown`)),r=er(t),r.payload={element:n},a=a===void 0?null:a,a!==null&&(typeof a!=`function`&&console.error("Expected the last optional `callback` argument to be a function. Instead received: %s.",a),r.callback=a),n=tr(e,r,t),n!==null&&(Ht(t,`root.render()`,null),ls(n,e,t),nr(n,e,t))}function wc(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function Tc(e,t){wc(e,t),(e=e.alternate)&&wc(e,t)}function Ec(){return Af}var H={},Dc=O(),Oc=fn(),kc=Object.assign,Ac=Symbol.for(`react.element`),jc=Symbol.for(`react.transitional.element`),Mc=Symbol.for(`react.portal`),Nc=Symbol.for(`react.fragment`),Pc=Symbol.for(`react.strict_mode`),Fc=Symbol.for(`react.profiler`),Ic=Symbol.for(`react.consumer`),Lc=Symbol.for(`react.context`),Rc=Symbol.for(`react.forward_ref`),zc=Symbol.for(`react.suspense`),Bc=Symbol.for(`react.suspense_list`),Vc=Symbol.for(`react.memo`),Hc=Symbol.for(`react.lazy`),Uc=Symbol.for(`react.activity`),Wc=Symbol.for(`react.memo_cache_sentinel`),Gc=Symbol.iterator,Kc=Symbol.for(`react.client.reference`),qc=Array.isArray,U=Dc.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Jc=e.rendererVersion,Yc=e.rendererPackageName,Xc=e.extraDevToolsConfig,Zc=e.getPublicInstance,Qc=e.getRootHostContext,$c=e.getChildHostContext,el=e.prepareForCommit,tl=e.resetAfterCommit,nl=e.createInstance;e.cloneMutableInstance;var rl=e.appendInitialChild,il=e.finalizeInitialChildren,W=e.shouldSetTextContent,al=e.createTextInstance;e.cloneMutableTextInstance;var ol=e.scheduleTimeout,sl=e.cancelTimeout,cl=e.noTimeout,ll=e.isPrimaryRenderer;e.warnsIfNotActing;var ul=e.supportsMutation,dl=e.supportsPersistence,fl=e.supportsHydration,pl=e.getInstanceFromNode;e.beforeActiveInstanceBlur;var ml=e.preparePortalMount;e.prepareScopeUpdate,e.getInstanceFromScope;var hl=e.setCurrentUpdatePriority,gl=e.getCurrentUpdatePriority,_l=e.resolveUpdatePriority,vl=e.trackSchedulerEvent,yl=e.resolveEventType,bl=e.resolveEventTimeStamp,xl=e.shouldAttemptEagerTransition,Sl=e.detachDeletedInstance;e.requestPostPaintCallback;var Cl=e.maySuspendCommit,wl=e.maySuspendCommitOnUpdate,Tl=e.maySuspendCommitInSyncRender,El=e.preloadInstance,Dl=e.startSuspendingCommit,Ol=e.suspendInstance;e.suspendOnActiveViewTransition;var kl=e.waitForCommitToBeReady,Al=e.getSuspendedCommitReason,jl=e.NotPendingTransition,Ml=e.HostTransitionContext,Nl=e.resetFormInstance,Pl=e.bindToConsole,Fl=e.supportsMicrotasks,Il=e.scheduleMicrotask,Ll=e.supportsTestSelectors,Rl=e.findFiberRoot,zl=e.getBoundingRect,Bl=e.getTextContent,Vl=e.isHiddenSubtree,Hl=e.matchAccessibilityRole,Ul=e.setFocusIfFocusable,Wl=e.setupIntersectionObserver,Gl=e.appendChild,Kl=e.appendChildToContainer,G=e.commitTextUpdate,ql=e.commitMount,Jl=e.commitUpdate,Yl=e.insertBefore,Xl=e.insertInContainerBefore,Zl=e.removeChild,Ql=e.removeChildFromContainer,$l=e.resetTextContent,eu=e.hideInstance,tu=e.hideTextInstance,nu=e.unhideInstance,ru=e.unhideTextInstance;e.cancelViewTransitionName,e.cancelRootViewTransitionName,e.restoreRootViewTransitionName,e.cloneRootViewTransitionContainer,e.removeRootViewTransitionClone,e.measureClonedInstance,e.hasInstanceChanged,e.hasInstanceAffectedParent,e.startViewTransition,e.startGestureTransition,e.stopViewTransition,e.getCurrentGestureOffset,e.createViewTransitionInstance;var iu=e.clearContainer;e.createFragmentInstance,e.updateFragmentInstanceFiber,e.commitNewChildToFragmentInstance,e.deleteChildFromFragmentInstance;var au=e.cloneInstance,ou=e.createContainerChildSet,su=e.appendChildToContainerChildSet,cu=e.finalizeContainerChildren,lu=e.replaceContainerChildren,uu=e.cloneHiddenInstance,du=e.cloneHiddenTextInstance,fu=e.isSuspenseInstancePending,pu=e.isSuspenseInstanceFallback,mu=e.getSuspenseInstanceFallbackErrorDetails,hu=e.registerSuspenseInstanceRetry,gu=e.canHydrateFormStateMarker,_u=e.isFormStateMarkerMatching,vu=e.getNextHydratableSibling,yu=e.getNextHydratableSiblingAfterSingleton,bu=e.getFirstHydratableChild,xu=e.getFirstHydratableChildWithinContainer,Su=e.getFirstHydratableChildWithinActivityInstance,Cu=e.getFirstHydratableChildWithinSuspenseInstance,wu=e.getFirstHydratableChildWithinSingleton,Tu=e.canHydrateInstance,Eu=e.canHydrateTextInstance,Du=e.canHydrateActivityInstance,Ou=e.canHydrateSuspenseInstance,ku=e.hydrateInstance,Au=e.hydrateTextInstance,ju=e.hydrateActivityInstance,Mu=e.hydrateSuspenseInstance,Nu=e.getNextHydratableInstanceAfterActivityInstance,Pu=e.getNextHydratableInstanceAfterSuspenseInstance,Fu=e.commitHydratedInstance,Iu=e.commitHydratedContainer,Lu=e.commitHydratedActivityInstance,Ru=e.commitHydratedSuspenseInstance,zu=e.finalizeHydratedChildren,Bu=e.flushHydrationEvents;e.clearActivityBoundary;var Vu=e.clearSuspenseBoundary;e.clearActivityBoundaryFromContainer;var Hu=e.clearSuspenseBoundaryFromContainer,Uu=e.hideDehydratedBoundary,Wu=e.unhideDehydratedBoundary,Gu=e.shouldDeleteUnhydratedTailInstances,Ku=e.diffHydratedPropsForDevWarnings,qu=e.diffHydratedTextForDevWarnings,Ju=e.describeHydratableInstanceForDevWarnings,Yu=e.validateHydratableInstance,Xu=e.validateHydratableTextInstance,Zu=e.supportsResources,Qu=e.isHostHoistableType,$u=e.getHoistableRoot,ed=e.getResource,td=e.acquireResource,nd=e.releaseResource,rd=e.hydrateHoistable,id=e.mountHoistable,ad=e.unmountHoistable,od=e.createHoistableInstance,sd=e.prepareToCommitHoistables,cd=e.mayResourceSuspendCommit,ld=e.preloadResource,ud=e.suspendResource,dd=e.supportsSingletons,fd=e.resolveSingletonInstance,pd=e.acquireSingletonInstance,md=e.releaseSingletonInstance,hd=e.isHostSingletonType,gd=e.isSingletonScope,_d=[],vd=[],yd=-1,bd={};Object.freeze(bd);var xd=Math.clz32?Math.clz32:ee,Sd=Math.log,Cd=Math.LN2,wd=256,Td=262144,Ed=4194304,Dd=Oc.unstable_scheduleCallback,Od=Oc.unstable_cancelCallback,kd=Oc.unstable_shouldYield,Ad=Oc.unstable_requestPaint,jd=Oc.unstable_now,Md=Oc.unstable_ImmediatePriority,Nd=Oc.unstable_UserBlockingPriority,Pd=Oc.unstable_NormalPriority,Fd=Oc.unstable_IdlePriority,Id=Oc.log,Ld=Oc.unstable_setDisableYieldValue,Rd=null,zd=null,Bd=!1,Vd=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<`u`,Hd=0;if(typeof performance==`object`&&typeof performance.now==`function`)var Ud=performance,Wd=function(){return Ud.now()};else{var Gd=Date;Wd=function(){return Gd.now()}}var Kd=typeof Object.is==`function`?Object.is:me,qd=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&&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)},Jd=Object.prototype.hasOwnProperty,Yd=typeof console<`u`&&typeof console.timeStamp==`function`&&typeof performance<`u`&&typeof performance.measure==`function`,Xd=`Blocking`,Zd=!1,Qd={color:`primary`,properties:null,tooltipText:``,track:`Components ⚛`},$d={start:-0,end:-0,detail:{devtools:Qd}},ef=[`Changed Props`,``],tf=[`Changed Props`,`This component received deeply equal props. It might benefit from useMemo or the React Compiler in its owner.`],nf=0,rf,af,of,sf,cf,lf,uf;Ae.__reactDisabledLog=!0;var df,ff,pf=!1,mf=new(typeof WeakMap==`function`?WeakMap:Map),hf=new WeakMap,gf=[],_f=0,vf=null,yf=0,bf=[],xf=0,Sf=null,Cf=1,wf=``,Tf=E(null),Ef=E(null),Df=E(null),Of=E(null),kf=/["'&<>\n\t]|^\s|\s$/,Af=null,jf=!1,Mf=null,Nf=null,Pf=!1,Ff=!1,If=null,Lf=null,Rf=!1,zf=Error(`Hydration Mismatch Exception: This is not a real error, and should not leak into userspace. If you're seeing this, it's likely a bug in React.`),K=0,Bf=E(null),Vf=E(null),Hf=E(null),Uf={},Wf=null,Gf=null,Kf=!1,qf=typeof AbortController<`u`?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(t,n){e.push(n)}};this.abort=function(){t.aborted=!0,e.forEach(function(e){return e()})}},Jf=Oc.unstable_scheduleCallback,Yf=Oc.unstable_NormalPriority,Xf={$$typeof:Lc,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0,_currentRenderer:null,_currentRenderer2:null},Zf=Oc.unstable_now,Qf=console.createTask?console.createTask:function(){return null},$f=-0,ep=-0,tp=-0,np=null,rp=-1.1,ip=-0,ap=-0,q=-1.1,J=-1.1,op=null,sp=!1,cp=-0,lp=-1.1,up=null,dp=0,fp=null,pp=null,mp=-1.1,hp=null,gp=-1.1,_p=-1.1,vp=-0,yp=-1.1,bp=-1.1,xp=0,Sp=null,Cp=null,wp=null,Tp=-1.1,Ep=null,Dp=-1.1,Op=-1.1,kp=null,Ap=0,jp=-1.1,Mp=!1,Np=!1,Pp=null,Fp=null,Ip=!1,Lp=!1,Rp=!1,zp=!1,Bp=0,Vp={},Hp=null,Up=0,Wp=0,Gp=null,Kp=U.S;U.S=function(e,t){if(f_=jd(),typeof t==`object`&&t&&typeof t.then==`function`){if(0>yp&&0>bp){yp=Zf();var n=bl(),r=yl();(n!==Dp||r!==Ep)&&(Dp=-1.1),Tp=n,Ep=r}bn(e,t)}Kp!==null&&Kp(e,t)};var qp=E(null),Jp={recordUnsafeLifecycleWarnings:function(){},flushPendingUnsafeLifecycleWarnings:function(){},recordLegacyContextWarning:function(){},flushLegacyContextWarning:function(){},discardPendingWarnings:function(){}},Yp=[],Xp=[],Zp=[],Qp=[],$p=[],em=[],tm=new Set;Jp.recordUnsafeLifecycleWarnings=function(e,t){tm.has(e.type)||(typeof t.componentWillMount==`function`&&!0!==t.componentWillMount.__suppressDeprecationWarning&&Yp.push(e),e.mode&8&&typeof t.UNSAFE_componentWillMount==`function`&&Xp.push(e),typeof t.componentWillReceiveProps==`function`&&!0!==t.componentWillReceiveProps.__suppressDeprecationWarning&&Zp.push(e),e.mode&8&&typeof t.UNSAFE_componentWillReceiveProps==`function`&&Qp.push(e),typeof t.componentWillUpdate==`function`&&!0!==t.componentWillUpdate.__suppressDeprecationWarning&&$p.push(e),e.mode&8&&typeof t.UNSAFE_componentWillUpdate==`function`&&em.push(e))},Jp.flushPendingUnsafeLifecycleWarnings=function(){var e=new Set;0<Yp.length&&(Yp.forEach(function(t){e.add(T(t)||`Component`),tm.add(t.type)}),Yp=[]);var t=new Set;0<Xp.length&&(Xp.forEach(function(e){t.add(T(e)||`Component`),tm.add(e.type)}),Xp=[]);var n=new Set;0<Zp.length&&(Zp.forEach(function(e){n.add(T(e)||`Component`),tm.add(e.type)}),Zp=[]);var r=new Set;0<Qp.length&&(Qp.forEach(function(e){r.add(T(e)||`Component`),tm.add(e.type)}),Qp=[]);var i=new Set;0<$p.length&&($p.forEach(function(e){i.add(T(e)||`Component`),tm.add(e.type)}),$p=[]);var a=new Set;if(0<em.length&&(em.forEach(function(e){a.add(T(e)||`Component`),tm.add(e.type)}),em=[]),0<t.size){var o=g(t);console.error(`Using UNSAFE_componentWillMount in strict mode is not recommended and may indicate bugs in your code. See https://react.dev/link/unsafe-component-lifecycles for details.
|
|
252
|
+
Check the render method of %s.`,T(Af)||`Unknown`)),r=er(t),r.payload={element:n},a=a===void 0?null:a,a!==null&&(typeof a!=`function`&&console.error("Expected the last optional `callback` argument to be a function. Instead received: %s.",a),r.callback=a),n=tr(e,r,t),n!==null&&(Ht(t,`root.render()`,null),ls(n,e,t),nr(n,e,t))}function Cc(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function wc(e,t){Cc(e,t),(e=e.alternate)&&Cc(e,t)}function Tc(){return Af}var U={},Ec=O(),Dc=fn(),Oc=Object.assign,kc=Symbol.for(`react.element`),Ac=Symbol.for(`react.transitional.element`),jc=Symbol.for(`react.portal`),Mc=Symbol.for(`react.fragment`),Nc=Symbol.for(`react.strict_mode`),Pc=Symbol.for(`react.profiler`),Fc=Symbol.for(`react.consumer`),Ic=Symbol.for(`react.context`),Lc=Symbol.for(`react.forward_ref`),Rc=Symbol.for(`react.suspense`),zc=Symbol.for(`react.suspense_list`),Bc=Symbol.for(`react.memo`),Vc=Symbol.for(`react.lazy`),Hc=Symbol.for(`react.activity`),Uc=Symbol.for(`react.memo_cache_sentinel`),Wc=Symbol.iterator,Gc=Symbol.for(`react.client.reference`),Kc=Array.isArray,W=Ec.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,qc=e.rendererVersion,Jc=e.rendererPackageName,Yc=e.extraDevToolsConfig,Xc=e.getPublicInstance,Zc=e.getRootHostContext,Qc=e.getChildHostContext,$c=e.prepareForCommit,el=e.resetAfterCommit,tl=e.createInstance;e.cloneMutableInstance;var nl=e.appendInitialChild,rl=e.finalizeInitialChildren,il=e.shouldSetTextContent,al=e.createTextInstance;e.cloneMutableTextInstance;var ol=e.scheduleTimeout,sl=e.cancelTimeout,cl=e.noTimeout,ll=e.isPrimaryRenderer;e.warnsIfNotActing;var ul=e.supportsMutation,dl=e.supportsPersistence,fl=e.supportsHydration,pl=e.getInstanceFromNode;e.beforeActiveInstanceBlur;var ml=e.preparePortalMount;e.prepareScopeUpdate,e.getInstanceFromScope;var hl=e.setCurrentUpdatePriority,gl=e.getCurrentUpdatePriority,_l=e.resolveUpdatePriority,vl=e.trackSchedulerEvent,yl=e.resolveEventType,bl=e.resolveEventTimeStamp,xl=e.shouldAttemptEagerTransition,Sl=e.detachDeletedInstance;e.requestPostPaintCallback;var Cl=e.maySuspendCommit,wl=e.maySuspendCommitOnUpdate,Tl=e.maySuspendCommitInSyncRender,El=e.preloadInstance,Dl=e.startSuspendingCommit,Ol=e.suspendInstance;e.suspendOnActiveViewTransition;var kl=e.waitForCommitToBeReady,Al=e.getSuspendedCommitReason,jl=e.NotPendingTransition,Ml=e.HostTransitionContext,Nl=e.resetFormInstance,Pl=e.bindToConsole,Fl=e.supportsMicrotasks,Il=e.scheduleMicrotask,Ll=e.supportsTestSelectors,Rl=e.findFiberRoot,zl=e.getBoundingRect,Bl=e.getTextContent,Vl=e.isHiddenSubtree,Hl=e.matchAccessibilityRole,Ul=e.setFocusIfFocusable,Wl=e.setupIntersectionObserver,Gl=e.appendChild,Kl=e.appendChildToContainer,G=e.commitTextUpdate,ql=e.commitMount,Jl=e.commitUpdate,Yl=e.insertBefore,Xl=e.insertInContainerBefore,Zl=e.removeChild,Ql=e.removeChildFromContainer,$l=e.resetTextContent,eu=e.hideInstance,tu=e.hideTextInstance,nu=e.unhideInstance,ru=e.unhideTextInstance;e.cancelViewTransitionName,e.cancelRootViewTransitionName,e.restoreRootViewTransitionName,e.cloneRootViewTransitionContainer,e.removeRootViewTransitionClone,e.measureClonedInstance,e.hasInstanceChanged,e.hasInstanceAffectedParent,e.startViewTransition,e.startGestureTransition,e.stopViewTransition,e.getCurrentGestureOffset,e.createViewTransitionInstance;var iu=e.clearContainer;e.createFragmentInstance,e.updateFragmentInstanceFiber,e.commitNewChildToFragmentInstance,e.deleteChildFromFragmentInstance;var au=e.cloneInstance,ou=e.createContainerChildSet,su=e.appendChildToContainerChildSet,cu=e.finalizeContainerChildren,lu=e.replaceContainerChildren,uu=e.cloneHiddenInstance,du=e.cloneHiddenTextInstance,fu=e.isSuspenseInstancePending,pu=e.isSuspenseInstanceFallback,mu=e.getSuspenseInstanceFallbackErrorDetails,hu=e.registerSuspenseInstanceRetry,gu=e.canHydrateFormStateMarker,_u=e.isFormStateMarkerMatching,vu=e.getNextHydratableSibling,yu=e.getNextHydratableSiblingAfterSingleton,bu=e.getFirstHydratableChild,xu=e.getFirstHydratableChildWithinContainer,Su=e.getFirstHydratableChildWithinActivityInstance,Cu=e.getFirstHydratableChildWithinSuspenseInstance,wu=e.getFirstHydratableChildWithinSingleton,Tu=e.canHydrateInstance,Eu=e.canHydrateTextInstance,Du=e.canHydrateActivityInstance,Ou=e.canHydrateSuspenseInstance,ku=e.hydrateInstance,Au=e.hydrateTextInstance,ju=e.hydrateActivityInstance,Mu=e.hydrateSuspenseInstance,Nu=e.getNextHydratableInstanceAfterActivityInstance,Pu=e.getNextHydratableInstanceAfterSuspenseInstance,Fu=e.commitHydratedInstance,Iu=e.commitHydratedContainer,Lu=e.commitHydratedActivityInstance,Ru=e.commitHydratedSuspenseInstance,zu=e.finalizeHydratedChildren,Bu=e.flushHydrationEvents;e.clearActivityBoundary;var Vu=e.clearSuspenseBoundary;e.clearActivityBoundaryFromContainer;var Hu=e.clearSuspenseBoundaryFromContainer,Uu=e.hideDehydratedBoundary,Wu=e.unhideDehydratedBoundary,Gu=e.shouldDeleteUnhydratedTailInstances,Ku=e.diffHydratedPropsForDevWarnings,qu=e.diffHydratedTextForDevWarnings,Ju=e.describeHydratableInstanceForDevWarnings,Yu=e.validateHydratableInstance,Xu=e.validateHydratableTextInstance,Zu=e.supportsResources,Qu=e.isHostHoistableType,$u=e.getHoistableRoot,ed=e.getResource,td=e.acquireResource,nd=e.releaseResource,rd=e.hydrateHoistable,id=e.mountHoistable,ad=e.unmountHoistable,od=e.createHoistableInstance,sd=e.prepareToCommitHoistables,cd=e.mayResourceSuspendCommit,ld=e.preloadResource,ud=e.suspendResource,dd=e.supportsSingletons,fd=e.resolveSingletonInstance,pd=e.acquireSingletonInstance,md=e.releaseSingletonInstance,hd=e.isHostSingletonType,gd=e.isSingletonScope,_d=[],vd=[],yd=-1,bd={};Object.freeze(bd);var xd=Math.clz32?Math.clz32:ee,Sd=Math.log,Cd=Math.LN2,wd=256,Td=262144,Ed=4194304,Dd=Dc.unstable_scheduleCallback,Od=Dc.unstable_cancelCallback,kd=Dc.unstable_shouldYield,Ad=Dc.unstable_requestPaint,jd=Dc.unstable_now,Md=Dc.unstable_ImmediatePriority,Nd=Dc.unstable_UserBlockingPriority,Pd=Dc.unstable_NormalPriority,Fd=Dc.unstable_IdlePriority,Id=Dc.log,Ld=Dc.unstable_setDisableYieldValue,Rd=null,zd=null,Bd=!1,Vd=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<`u`,Hd=0;if(typeof performance==`object`&&typeof performance.now==`function`)var Ud=performance,Wd=function(){return Ud.now()};else{var Gd=Date;Wd=function(){return Gd.now()}}var Kd=typeof Object.is==`function`?Object.is:me,qd=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&&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)},Jd=Object.prototype.hasOwnProperty,Yd=typeof console<`u`&&typeof console.timeStamp==`function`&&typeof performance<`u`&&typeof performance.measure==`function`,Xd=`Blocking`,Zd=!1,Qd={color:`primary`,properties:null,tooltipText:``,track:`Components ⚛`},$d={start:-0,end:-0,detail:{devtools:Qd}},ef=[`Changed Props`,``],tf=[`Changed Props`,`This component received deeply equal props. It might benefit from useMemo or the React Compiler in its owner.`],nf=0,rf,af,of,sf,cf,lf,uf;Ae.__reactDisabledLog=!0;var df,ff,pf=!1,mf=new(typeof WeakMap==`function`?WeakMap:Map),hf=new WeakMap,gf=[],_f=0,vf=null,yf=0,bf=[],xf=0,Sf=null,Cf=1,wf=``,Tf=E(null),Ef=E(null),Df=E(null),Of=E(null),kf=/["'&<>\n\t]|^\s|\s$/,Af=null,jf=!1,Mf=null,Nf=null,Pf=!1,Ff=!1,If=null,Lf=null,Rf=!1,zf=Error(`Hydration Mismatch Exception: This is not a real error, and should not leak into userspace. If you're seeing this, it's likely a bug in React.`),K=0,Bf=E(null),Vf=E(null),Hf=E(null),Uf={},Wf=null,Gf=null,Kf=!1,qf=typeof AbortController<`u`?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(t,n){e.push(n)}};this.abort=function(){t.aborted=!0,e.forEach(function(e){return e()})}},Jf=Dc.unstable_scheduleCallback,Yf=Dc.unstable_NormalPriority,Xf={$$typeof:Ic,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0,_currentRenderer:null,_currentRenderer2:null},Zf=Dc.unstable_now,Qf=console.createTask?console.createTask:function(){return null},$f=-0,ep=-0,tp=-0,np=null,rp=-1.1,ip=-0,ap=-0,q=-1.1,J=-1.1,op=null,sp=!1,cp=-0,lp=-1.1,up=null,dp=0,fp=null,pp=null,mp=-1.1,hp=null,gp=-1.1,_p=-1.1,vp=-0,yp=-1.1,bp=-1.1,xp=0,Sp=null,Cp=null,wp=null,Tp=-1.1,Ep=null,Dp=-1.1,Op=-1.1,kp=null,Ap=0,jp=-1.1,Mp=!1,Np=!1,Pp=null,Fp=null,Ip=!1,Lp=!1,Rp=!1,zp=!1,Bp=0,Vp={},Hp=null,Up=0,Wp=0,Gp=null,Kp=W.S;W.S=function(e,t){if(f_=jd(),typeof t==`object`&&t&&typeof t.then==`function`){if(0>yp&&0>bp){yp=Zf();var n=bl(),r=yl();(n!==Dp||r!==Ep)&&(Dp=-1.1),Tp=n,Ep=r}bn(e,t)}Kp!==null&&Kp(e,t)};var qp=E(null),Jp={recordUnsafeLifecycleWarnings:function(){},flushPendingUnsafeLifecycleWarnings:function(){},recordLegacyContextWarning:function(){},flushLegacyContextWarning:function(){},discardPendingWarnings:function(){}},Yp=[],Xp=[],Zp=[],Qp=[],$p=[],em=[],tm=new Set;Jp.recordUnsafeLifecycleWarnings=function(e,t){tm.has(e.type)||(typeof t.componentWillMount==`function`&&!0!==t.componentWillMount.__suppressDeprecationWarning&&Yp.push(e),e.mode&8&&typeof t.UNSAFE_componentWillMount==`function`&&Xp.push(e),typeof t.componentWillReceiveProps==`function`&&!0!==t.componentWillReceiveProps.__suppressDeprecationWarning&&Zp.push(e),e.mode&8&&typeof t.UNSAFE_componentWillReceiveProps==`function`&&Qp.push(e),typeof t.componentWillUpdate==`function`&&!0!==t.componentWillUpdate.__suppressDeprecationWarning&&$p.push(e),e.mode&8&&typeof t.UNSAFE_componentWillUpdate==`function`&&em.push(e))},Jp.flushPendingUnsafeLifecycleWarnings=function(){var e=new Set;0<Yp.length&&(Yp.forEach(function(t){e.add(T(t)||`Component`),tm.add(t.type)}),Yp=[]);var t=new Set;0<Xp.length&&(Xp.forEach(function(e){t.add(T(e)||`Component`),tm.add(e.type)}),Xp=[]);var n=new Set;0<Zp.length&&(Zp.forEach(function(e){n.add(T(e)||`Component`),tm.add(e.type)}),Zp=[]);var r=new Set;0<Qp.length&&(Qp.forEach(function(e){r.add(T(e)||`Component`),tm.add(e.type)}),Qp=[]);var i=new Set;0<$p.length&&($p.forEach(function(e){i.add(T(e)||`Component`),tm.add(e.type)}),$p=[]);var a=new Set;if(0<em.length&&(em.forEach(function(e){a.add(T(e)||`Component`),tm.add(e.type)}),em=[]),0<t.size){var o=g(t);console.error(`Using UNSAFE_componentWillMount in strict mode is not recommended and may indicate bugs in your code. See https://react.dev/link/unsafe-component-lifecycles for details.
|
|
253
253
|
|
|
254
254
|
* Move code with side effects to componentDidMount, and set initial state in the constructor.
|
|
255
255
|
|
|
@@ -288,7 +288,7 @@ Learn more about this warning here: https://react.dev/link/legacy-context`,r)})}
|
|
|
288
288
|
|
|
289
289
|
Check the render method of \``+i+"`."),a||r&&(a=`
|
|
290
290
|
|
|
291
|
-
Check the top-level render call using <`+r+`>.`);var o=``;n!=null&&e!==n&&(r=null,typeof n.tag==`number`?r=T(n):typeof n.name==`string`&&(r=n.name),r&&(o=` It was passed a child from `+r+`.`)),L(t,function(){console.error(`Each child in a list should have a unique "key" prop.%s%s See https://react.dev/link/warning-keys for more information.`,a,o)})}}};var Fm=Wn(!0),Im=Wn(!1),Lm=1,Rm=2,zm=[],Bm=0,Vm=0,Hm=0,Um=1,Wm=2,Gm=3,Km=!1,qm=!1,Jm=null,Ym=!1,Xm=E(null),Zm=E(0),Qm=E(null),$m=null,eh=1,th=2,nh=E(0),rh=0,ih=1,ah=2,oh=4,sh=8,ch,lh=new Set,uh=new Set,dh=new Set,fh=new Set,ph=0,X=null,mh=null,hh=null,gh=!1,_h=!1,vh=!1,yh=0,bh=0,xh=null,Sh=0,Ch=25,Z=null,wh=null,Th=-1,Eh=!1,Dh={readContext:It,use:Nr,useCallback:br,useContext:br,useEffect:br,useImperativeHandle:br,useLayoutEffect:br,useInsertionEffect:br,useMemo:br,useReducer:br,useRef:br,useState:br,useDebugValue:br,useDeferredValue:br,useTransition:br,useSyncExternalStore:br,useId:br,useHostTransitionStatus:br,useFormState:br,useActionState:br,useOptimistic:br,useMemoCache:br,useCacheRefresh:br};Dh.useEffectEvent=br;var Oh=null,kh=null,Ah=null,jh=null,Mh=null,Nh=null,Ph=null;Oh={readContext:function(e){return It(e)},use:Nr,useCallback:function(e,t){return Z=`useCallback`,R(),vr(t),Ci(e,t)},useContext:function(e){return Z=`useContext`,R(),It(e)},useEffect:function(e,t){return Z=`useEffect`,R(),vr(t),hi(e,t)},useImperativeHandle:function(e,t,n){return Z=`useImperativeHandle`,R(),vr(n),xi(e,t,n)},useInsertionEffect:function(e,t){Z=`useInsertionEffect`,R(),vr(t),pi(4,ah,e,t)},useLayoutEffect:function(e,t){return Z=`useLayoutEffect`,R(),vr(t),yi(e,t)},useMemo:function(e,t){Z=`useMemo`,R(),vr(t);var n=U.H;U.H=Mh;try{return Ti(e,t)}finally{U.H=n}},useReducer:function(e,t,n){Z=`useReducer`,R();var r=U.H;U.H=Mh;try{return Ir(e,t,n)}finally{U.H=r}},useRef:function(e){return Z=`useRef`,R(),fi(e)},useState:function(e){Z=`useState`,R();var t=U.H;U.H=Mh;try{return Jr(e)}finally{U.H=t}},useDebugValue:function(){Z=`useDebugValue`,R()},useDeferredValue:function(e,t){return Z=`useDeferredValue`,R(),Di(e,t)},useTransition:function(){return Z=`useTransition`,R(),Fi()},useSyncExternalStore:function(e,t,n){return Z=`useSyncExternalStore`,R(),Br(e,t,n)},useId:function(){return Z=`useId`,R(),zi()},useFormState:function(e,t){return Z=`useFormState`,R(),yr(),oi(e,t)},useActionState:function(e,t){return Z=`useActionState`,R(),oi(e,t)},useOptimistic:function(e){return Z=`useOptimistic`,R(),Yr(e)},useHostTransitionStatus:Ri,useMemoCache:Pr,useCacheRefresh:function(){return Z=`useCacheRefresh`,R(),Bi()},useEffectEvent:function(e){return Z=`useEffectEvent`,R(),_i(e)}},kh={readContext:function(e){return It(e)},use:Nr,useCallback:function(e,t){return Z=`useCallback`,z(),Ci(e,t)},useContext:function(e){return Z=`useContext`,z(),It(e)},useEffect:function(e,t){return Z=`useEffect`,z(),hi(e,t)},useImperativeHandle:function(e,t,n){return Z=`useImperativeHandle`,z(),xi(e,t,n)},useInsertionEffect:function(e,t){Z=`useInsertionEffect`,z(),pi(4,ah,e,t)},useLayoutEffect:function(e,t){return Z=`useLayoutEffect`,z(),yi(e,t)},useMemo:function(e,t){Z=`useMemo`,z();var n=U.H;U.H=Mh;try{return Ti(e,t)}finally{U.H=n}},useReducer:function(e,t,n){Z=`useReducer`,z();var r=U.H;U.H=Mh;try{return Ir(e,t,n)}finally{U.H=r}},useRef:function(e){return Z=`useRef`,z(),fi(e)},useState:function(e){Z=`useState`,z();var t=U.H;U.H=Mh;try{return Jr(e)}finally{U.H=t}},useDebugValue:function(){Z=`useDebugValue`,z()},useDeferredValue:function(e,t){return Z=`useDeferredValue`,z(),Di(e,t)},useTransition:function(){return Z=`useTransition`,z(),Fi()},useSyncExternalStore:function(e,t,n){return Z=`useSyncExternalStore`,z(),Br(e,t,n)},useId:function(){return Z=`useId`,z(),zi()},useActionState:function(e,t){return Z=`useActionState`,z(),oi(e,t)},useFormState:function(e,t){return Z=`useFormState`,z(),yr(),oi(e,t)},useOptimistic:function(e){return Z=`useOptimistic`,z(),Yr(e)},useHostTransitionStatus:Ri,useMemoCache:Pr,useCacheRefresh:function(){return Z=`useCacheRefresh`,z(),Bi()},useEffectEvent:function(e){return Z=`useEffectEvent`,z(),_i(e)}},Ah={readContext:function(e){return It(e)},use:Nr,useCallback:function(e,t){return Z=`useCallback`,z(),wi(e,t)},useContext:function(e){return Z=`useContext`,z(),It(e)},useEffect:function(e,t){Z=`useEffect`,z(),mi(2048,sh,e,t)},useImperativeHandle:function(e,t,n){return Z=`useImperativeHandle`,z(),Si(e,t,n)},useInsertionEffect:function(e,t){return Z=`useInsertionEffect`,z(),mi(4,ah,e,t)},useLayoutEffect:function(e,t){return Z=`useLayoutEffect`,z(),mi(4,oh,e,t)},useMemo:function(e,t){Z=`useMemo`,z();var n=U.H;U.H=Nh;try{return Ei(e,t)}finally{U.H=n}},useReducer:function(e,t,n){Z=`useReducer`,z();var r=U.H;U.H=Nh;try{return Lr(e,t,n)}finally{U.H=r}},useRef:function(){return Z=`useRef`,z(),Ar().memoizedState},useState:function(){Z=`useState`,z();var e=U.H;U.H=Nh;try{return Lr(Fr)}finally{U.H=e}},useDebugValue:function(){Z=`useDebugValue`,z()},useDeferredValue:function(e,t){return Z=`useDeferredValue`,z(),Oi(e,t)},useTransition:function(){return Z=`useTransition`,z(),Ii()},useSyncExternalStore:function(e,t,n){return Z=`useSyncExternalStore`,z(),Vr(e,t,n)},useId:function(){return Z=`useId`,z(),Ar().memoizedState},useFormState:function(e){return Z=`useFormState`,z(),yr(),si(e)},useActionState:function(e){return Z=`useActionState`,z(),si(e)},useOptimistic:function(e,t){return Z=`useOptimistic`,z(),Xr(e,t)},useHostTransitionStatus:Ri,useMemoCache:Pr,useCacheRefresh:function(){return Z=`useCacheRefresh`,z(),Ar().memoizedState},useEffectEvent:function(e){return Z=`useEffectEvent`,z(),vi(e)}},jh={readContext:function(e){return It(e)},use:Nr,useCallback:function(e,t){return Z=`useCallback`,z(),wi(e,t)},useContext:function(e){return Z=`useContext`,z(),It(e)},useEffect:function(e,t){Z=`useEffect`,z(),mi(2048,sh,e,t)},useImperativeHandle:function(e,t,n){return Z=`useImperativeHandle`,z(),Si(e,t,n)},useInsertionEffect:function(e,t){return Z=`useInsertionEffect`,z(),mi(4,ah,e,t)},useLayoutEffect:function(e,t){return Z=`useLayoutEffect`,z(),mi(4,oh,e,t)},useMemo:function(e,t){Z=`useMemo`,z();var n=U.H;U.H=Ph;try{return Ei(e,t)}finally{U.H=n}},useReducer:function(e,t,n){Z=`useReducer`,z();var r=U.H;U.H=Ph;try{return zr(e,t,n)}finally{U.H=r}},useRef:function(){return Z=`useRef`,z(),Ar().memoizedState},useState:function(){Z=`useState`,z();var e=U.H;U.H=Ph;try{return zr(Fr)}finally{U.H=e}},useDebugValue:function(){Z=`useDebugValue`,z()},useDeferredValue:function(e,t){return Z=`useDeferredValue`,z(),ki(e,t)},useTransition:function(){return Z=`useTransition`,z(),Li()},useSyncExternalStore:function(e,t,n){return Z=`useSyncExternalStore`,z(),Vr(e,t,n)},useId:function(){return Z=`useId`,z(),Ar().memoizedState},useFormState:function(e){return Z=`useFormState`,z(),yr(),ui(e)},useActionState:function(e){return Z=`useActionState`,z(),ui(e)},useOptimistic:function(e,t){return Z=`useOptimistic`,z(),Qr(e,t)},useHostTransitionStatus:Ri,useMemoCache:Pr,useCacheRefresh:function(){return Z=`useCacheRefresh`,z(),Ar().memoizedState},useEffectEvent:function(e){return Z=`useEffectEvent`,z(),vi(e)}},Mh={readContext:function(e){return p(),It(e)},use:function(e){return f(),Nr(e)},useCallback:function(e,t){return Z=`useCallback`,f(),R(),Ci(e,t)},useContext:function(e){return Z=`useContext`,f(),R(),It(e)},useEffect:function(e,t){return Z=`useEffect`,f(),R(),hi(e,t)},useImperativeHandle:function(e,t,n){return Z=`useImperativeHandle`,f(),R(),xi(e,t,n)},useInsertionEffect:function(e,t){Z=`useInsertionEffect`,f(),R(),pi(4,ah,e,t)},useLayoutEffect:function(e,t){return Z=`useLayoutEffect`,f(),R(),yi(e,t)},useMemo:function(e,t){Z=`useMemo`,f(),R();var n=U.H;U.H=Mh;try{return Ti(e,t)}finally{U.H=n}},useReducer:function(e,t,n){Z=`useReducer`,f(),R();var r=U.H;U.H=Mh;try{return Ir(e,t,n)}finally{U.H=r}},useRef:function(e){return Z=`useRef`,f(),R(),fi(e)},useState:function(e){Z=`useState`,f(),R();var t=U.H;U.H=Mh;try{return Jr(e)}finally{U.H=t}},useDebugValue:function(){Z=`useDebugValue`,f(),R()},useDeferredValue:function(e,t){return Z=`useDeferredValue`,f(),R(),Di(e,t)},useTransition:function(){return Z=`useTransition`,f(),R(),Fi()},useSyncExternalStore:function(e,t,n){return Z=`useSyncExternalStore`,f(),R(),Br(e,t,n)},useId:function(){return Z=`useId`,f(),R(),zi()},useFormState:function(e,t){return Z=`useFormState`,f(),R(),oi(e,t)},useActionState:function(e,t){return Z=`useActionState`,f(),R(),oi(e,t)},useOptimistic:function(e){return Z=`useOptimistic`,f(),R(),Yr(e)},useMemoCache:function(e){return f(),Pr(e)},useHostTransitionStatus:Ri,useCacheRefresh:function(){return Z=`useCacheRefresh`,R(),Bi()},useEffectEvent:function(e){return Z=`useEffectEvent`,f(),R(),_i(e)}},Nh={readContext:function(e){return p(),It(e)},use:function(e){return f(),Nr(e)},useCallback:function(e,t){return Z=`useCallback`,f(),z(),wi(e,t)},useContext:function(e){return Z=`useContext`,f(),z(),It(e)},useEffect:function(e,t){Z=`useEffect`,f(),z(),mi(2048,sh,e,t)},useImperativeHandle:function(e,t,n){return Z=`useImperativeHandle`,f(),z(),Si(e,t,n)},useInsertionEffect:function(e,t){return Z=`useInsertionEffect`,f(),z(),mi(4,ah,e,t)},useLayoutEffect:function(e,t){return Z=`useLayoutEffect`,f(),z(),mi(4,oh,e,t)},useMemo:function(e,t){Z=`useMemo`,f(),z();var n=U.H;U.H=Nh;try{return Ei(e,t)}finally{U.H=n}},useReducer:function(e,t,n){Z=`useReducer`,f(),z();var r=U.H;U.H=Nh;try{return Lr(e,t,n)}finally{U.H=r}},useRef:function(){return Z=`useRef`,f(),z(),Ar().memoizedState},useState:function(){Z=`useState`,f(),z();var e=U.H;U.H=Nh;try{return Lr(Fr)}finally{U.H=e}},useDebugValue:function(){Z=`useDebugValue`,f(),z()},useDeferredValue:function(e,t){return Z=`useDeferredValue`,f(),z(),Oi(e,t)},useTransition:function(){return Z=`useTransition`,f(),z(),Ii()},useSyncExternalStore:function(e,t,n){return Z=`useSyncExternalStore`,f(),z(),Vr(e,t,n)},useId:function(){return Z=`useId`,f(),z(),Ar().memoizedState},useFormState:function(e){return Z=`useFormState`,f(),z(),si(e)},useActionState:function(e){return Z=`useActionState`,f(),z(),si(e)},useOptimistic:function(e,t){return Z=`useOptimistic`,f(),z(),Xr(e,t)},useMemoCache:function(e){return f(),Pr(e)},useHostTransitionStatus:Ri,useCacheRefresh:function(){return Z=`useCacheRefresh`,z(),Ar().memoizedState},useEffectEvent:function(e){return Z=`useEffectEvent`,f(),z(),vi(e)}},Ph={readContext:function(e){return p(),It(e)},use:function(e){return f(),Nr(e)},useCallback:function(e,t){return Z=`useCallback`,f(),z(),wi(e,t)},useContext:function(e){return Z=`useContext`,f(),z(),It(e)},useEffect:function(e,t){Z=`useEffect`,f(),z(),mi(2048,sh,e,t)},useImperativeHandle:function(e,t,n){return Z=`useImperativeHandle`,f(),z(),Si(e,t,n)},useInsertionEffect:function(e,t){return Z=`useInsertionEffect`,f(),z(),mi(4,ah,e,t)},useLayoutEffect:function(e,t){return Z=`useLayoutEffect`,f(),z(),mi(4,oh,e,t)},useMemo:function(e,t){Z=`useMemo`,f(),z();var n=U.H;U.H=Nh;try{return Ei(e,t)}finally{U.H=n}},useReducer:function(e,t,n){Z=`useReducer`,f(),z();var r=U.H;U.H=Nh;try{return zr(e,t,n)}finally{U.H=r}},useRef:function(){return Z=`useRef`,f(),z(),Ar().memoizedState},useState:function(){Z=`useState`,f(),z();var e=U.H;U.H=Nh;try{return zr(Fr)}finally{U.H=e}},useDebugValue:function(){Z=`useDebugValue`,f(),z()},useDeferredValue:function(e,t){return Z=`useDeferredValue`,f(),z(),ki(e,t)},useTransition:function(){return Z=`useTransition`,f(),z(),Li()},useSyncExternalStore:function(e,t,n){return Z=`useSyncExternalStore`,f(),z(),Vr(e,t,n)},useId:function(){return Z=`useId`,f(),z(),Ar().memoizedState},useFormState:function(e){return Z=`useFormState`,f(),z(),ui(e)},useActionState:function(e){return Z=`useActionState`,f(),z(),ui(e)},useOptimistic:function(e,t){return Z=`useOptimistic`,f(),z(),Qr(e,t)},useMemoCache:function(e){return f(),Pr(e)},useHostTransitionStatus:Ri,useCacheRefresh:function(){return Z=`useCacheRefresh`,z(),Ar().memoizedState},useEffectEvent:function(e){return Z=`useEffectEvent`,f(),z(),vi(e)}};var Fh={},Ih=new Set,Lh=new Set,Rh=new Set,zh=new Set,Bh=new Set,Vh=new Set,Hh=new Set,Uh=new Set,Wh=new Set,Gh=new Set;Object.freeze(Fh);var Kh={enqueueSetState:function(e,t,n){e=e._reactInternals;var r=ss(e),i=er(r);i.payload=t,n!=null&&(Yi(n),i.callback=n),t=tr(e,i,r),t!==null&&(Ht(r,`this.setState()`,e),ls(t,e,r),nr(t,e,r))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=ss(e),i=er(r);i.tag=Um,i.payload=t,n!=null&&(Yi(n),i.callback=n),t=tr(e,i,r),t!==null&&(Ht(r,`this.replaceState()`,e),ls(t,e,r),nr(t,e,r))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=ss(e),r=er(n);r.tag=Wm,t!=null&&(Yi(t),r.callback=t),t=tr(e,r,n),t!==null&&(Ht(n,`this.forceUpdate()`,e),ls(t,e,n),nr(t,e,n))}},qh=null,Jh=null,Yh=Error(`This is not a real error. It's an implementation detail of React's selective hydration feature. If this leaks into userspace, it's a bug in React. Please file an issue.`),Xh=!1,Zh={},Qh={},$h={},eg={},tg=!1,ng={},rg={},ig={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null},ag=!1,og=null;og=new Set;var sg=!1,cg=!1,lg=!1,ug=typeof WeakSet==`function`?WeakSet:Set,dg=null,fg=null,pg=null,mg=null,hg=!1,gg=null,_g=!1,vg=8192,yg={getCacheForType:function(e){var t=It(Xf),n=t.data.get(e);return n===void 0&&(n=e(),t.data.set(e,n)),n},cacheSignal:function(){return It(Xf).controller.signal},getOwner:function(){return Af}},bg=0,xg=1,Sg=2,Cg=3,wg=4;if(typeof Symbol==`function`&&Symbol.for){var Tg=Symbol.for;bg=Tg(`selector.component`),xg=Tg(`selector.has_pseudo_class`),Sg=Tg(`selector.role`),Cg=Tg(`selector.test_id`),wg=Tg(`selector.text`)}var Eg=[],Dg=typeof WeakMap==`function`?WeakMap:Map,Og=0,kg=2,Ag=4,jg=0,Mg=1,Ng=2,Pg=3,Fg=4,Ig=6,Lg=5,Rg=Og,zg=null,Q=null,$=0,Bg=0,Vg=1,Hg=2,Ug=3,Wg=4,Gg=5,Kg=6,qg=7,Jg=8,Yg=9,Xg=Bg,Zg=null,Qg=!1,$g=!1,e_=!1,t_=0,n_=jg,r_=0,i_=0,a_=0,o_=0,s_=0,c_=null,l_=null,u_=!1,d_=0,f_=0,p_=300,m_=1/0,h_=500,g_=null,__=null,v_=null,y_=0,b_=1,x_=2,S_=3,C_=0,w_=1,T_=2,E_=3,D_=4,O_=5,k_=0,A_=null,j_=null,M_=0,N_=0,P_=-0,F_=null,I_=null,L_=null,R_=y_,z_=null,B_=50,V_=0,H_=null,U_=!1,W_=!1,G_=50,K_=0,q_=null,J_=!1,Y_=null,X_=!1,Z_=new Set,Q_={},$_=null,ev=null,tv=!1;try{var nv=Object.preventExtensions({});new Map([[nv,null]]),new Set([nv])}catch{tv=!0}var rv=!1,iv={},av=null,ov=null,sv=null,cv=null,lv=null,uv=null,dv=null,fv=null,pv=null,mv=null;return av=function(e,r,i,a){r=t(e,r),r!==null&&(i=n(r.memoizedState,i,0,a),r.memoizedState=i,r.baseState=i,e.memoizedProps=kc({},e.memoizedProps),i=Yn(e,2),i!==null&&ls(i,e,2))},ov=function(e,n,r){n=t(e,n),n!==null&&(r=a(n.memoizedState,r,0),n.memoizedState=r,n.baseState=r,e.memoizedProps=kc({},e.memoizedProps),r=Yn(e,2),r!==null&&ls(r,e,2))},sv=function(e,n,i,a){n=t(e,n),n!==null&&(i=r(n.memoizedState,i,a),n.memoizedState=i,n.baseState=i,e.memoizedProps=kc({},e.memoizedProps),i=Yn(e,2),i!==null&&ls(i,e,2))},cv=function(e,t,r){e.pendingProps=n(e.memoizedProps,t,0,r),e.alternate&&(e.alternate.pendingProps=e.pendingProps),t=Yn(e,2),t!==null&&ls(t,e,2)},lv=function(e,t){e.pendingProps=a(e.memoizedProps,t,0),e.alternate&&(e.alternate.pendingProps=e.pendingProps),t=Yn(e,2),t!==null&&ls(t,e,2)},uv=function(e,t,n){e.pendingProps=r(e.memoizedProps,t,n),e.alternate&&(e.alternate.pendingProps=e.pendingProps),t=Yn(e,2),t!==null&&ls(t,e,2)},dv=function(e){var t=Yn(e,2);t!==null&&ls(t,e,2)},fv=function(e){var t=M(),n=Yn(e,t);n!==null&&ls(n,e,t)},pv=function(e){s=e},mv=function(e){o=e},H.attemptContinuousHydration=function(e){if(e.tag===13||e.tag===31){var t=Yn(e,67108864);t!==null&&ls(t,e,67108864),Tc(e,67108864)}},H.attemptHydrationAtCurrentPriority=function(e){if(e.tag===13||e.tag===31){var t=ss(e);t=le(t);var n=Yn(e,t);n!==null&&ls(n,e,t),Tc(e,t)}},H.attemptSynchronousHydration=function(e){switch(e.tag){case 3:if(e=e.stateNode,e.current.memoizedState.isDehydrated){var t=A(e.pendingLanes);if(t!==0){for(e.pendingLanes|=2,e.entangledLanes|=2;t;){var n=1<<31-xd(t);e.entanglements[1]|=n,t&=~n}ln(e),(Rg&(kg|Ag))===Og&&(m_=jd()+h_,un(0,!1))}}break;case 31:case 13:t=Yn(e,2),t!==null&&ls(t,e,2),ms(),Tc(e,2)}},H.batchedUpdates=function(e,t){return e(t)},H.createComponentSelector=function(e){return{$$typeof:bg,value:e}},H.createContainer=function(e,t,n,r,i,a,o,s,c,l){return yc(e,t,!1,null,n,r,a,null,o,s,c,l)},H.createHasPseudoClassSelector=function(e){return{$$typeof:xg,value:e}},H.createHydrationContainer=function(e,t,n,r,i,a,o,s,c,l,u,d,f,p){return e=yc(n,r,!0,e,i,a,s,p,c,l,u,d),e.context=xc(null),n=e.current,r=ss(n),r=le(r),i=er(r),i.callback=t??null,tr(n,i,r),Ht(r,`hydrateRoot()`,null),t=r,e.current.lanes=t,ie(e,t),ln(e),e},H.createPortal=function(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;try{bc(r);var i=!1}catch{i=!0}return i&&(console.error(`The provided key is an unsupported type %s. This value must be coerced to a string before using it here.`,typeof Symbol==`function`&&Symbol.toStringTag&&r[Symbol.toStringTag]||r.constructor.name||`Object`),bc(r)),{$$typeof:Mc,key:r==null?null:``+r,children:e,containerInfo:t,implementation:n}},H.createRoleSelector=function(e){return{$$typeof:Sg,value:e}},H.createTestNameSelector=function(e){return{$$typeof:Cg,value:e}},H.createTextSelector=function(e){return{$$typeof:wg,value:e}},H.defaultOnCaughtError=function(e){var t=qh?`The above error occurred in the <`+qh+`> component.`:`The above error occurred in one of your React components.`,n=`React will try to recreate this component tree from scratch using the error boundary you provided, `+((Jh||`Anonymous`)+`.`);typeof e==`object`&&e&&typeof e.environmentName==`string`?Pl(`error`,[`%o
|
|
291
|
+
Check the top-level render call using <`+r+`>.`);var o=``;n!=null&&e!==n&&(r=null,typeof n.tag==`number`?r=T(n):typeof n.name==`string`&&(r=n.name),r&&(o=` It was passed a child from `+r+`.`)),L(t,function(){console.error(`Each child in a list should have a unique "key" prop.%s%s See https://react.dev/link/warning-keys for more information.`,a,o)})}}};var Fm=Wn(!0),Im=Wn(!1),Lm=1,Rm=2,zm=[],Bm=0,Vm=0,Hm=0,Um=1,Wm=2,Gm=3,Km=!1,qm=!1,Jm=null,Ym=!1,Xm=E(null),Zm=E(0),Qm=E(null),$m=null,eh=1,th=2,nh=E(0),rh=0,ih=1,ah=2,oh=4,sh=8,ch,lh=new Set,uh=new Set,dh=new Set,fh=new Set,ph=0,X=null,mh=null,hh=null,gh=!1,_h=!1,vh=!1,yh=0,bh=0,xh=null,Sh=0,Ch=25,Z=null,wh=null,Th=-1,Eh=!1,Dh={readContext:It,use:Nr,useCallback:br,useContext:br,useEffect:br,useImperativeHandle:br,useLayoutEffect:br,useInsertionEffect:br,useMemo:br,useReducer:br,useRef:br,useState:br,useDebugValue:br,useDeferredValue:br,useTransition:br,useSyncExternalStore:br,useId:br,useHostTransitionStatus:br,useFormState:br,useActionState:br,useOptimistic:br,useMemoCache:br,useCacheRefresh:br};Dh.useEffectEvent=br;var Oh=null,kh=null,Ah=null,jh=null,Mh=null,Nh=null,Ph=null;Oh={readContext:function(e){return It(e)},use:Nr,useCallback:function(e,t){return Z=`useCallback`,R(),vr(t),Ci(e,t)},useContext:function(e){return Z=`useContext`,R(),It(e)},useEffect:function(e,t){return Z=`useEffect`,R(),vr(t),hi(e,t)},useImperativeHandle:function(e,t,n){return Z=`useImperativeHandle`,R(),vr(n),xi(e,t,n)},useInsertionEffect:function(e,t){Z=`useInsertionEffect`,R(),vr(t),pi(4,ah,e,t)},useLayoutEffect:function(e,t){return Z=`useLayoutEffect`,R(),vr(t),yi(e,t)},useMemo:function(e,t){Z=`useMemo`,R(),vr(t);var n=W.H;W.H=Mh;try{return Ti(e,t)}finally{W.H=n}},useReducer:function(e,t,n){Z=`useReducer`,R();var r=W.H;W.H=Mh;try{return Ir(e,t,n)}finally{W.H=r}},useRef:function(e){return Z=`useRef`,R(),fi(e)},useState:function(e){Z=`useState`,R();var t=W.H;W.H=Mh;try{return Jr(e)}finally{W.H=t}},useDebugValue:function(){Z=`useDebugValue`,R()},useDeferredValue:function(e,t){return Z=`useDeferredValue`,R(),Di(e,t)},useTransition:function(){return Z=`useTransition`,R(),Fi()},useSyncExternalStore:function(e,t,n){return Z=`useSyncExternalStore`,R(),Br(e,t,n)},useId:function(){return Z=`useId`,R(),zi()},useFormState:function(e,t){return Z=`useFormState`,R(),yr(),oi(e,t)},useActionState:function(e,t){return Z=`useActionState`,R(),oi(e,t)},useOptimistic:function(e){return Z=`useOptimistic`,R(),Yr(e)},useHostTransitionStatus:Ri,useMemoCache:Pr,useCacheRefresh:function(){return Z=`useCacheRefresh`,R(),Bi()},useEffectEvent:function(e){return Z=`useEffectEvent`,R(),_i(e)}},kh={readContext:function(e){return It(e)},use:Nr,useCallback:function(e,t){return Z=`useCallback`,z(),Ci(e,t)},useContext:function(e){return Z=`useContext`,z(),It(e)},useEffect:function(e,t){return Z=`useEffect`,z(),hi(e,t)},useImperativeHandle:function(e,t,n){return Z=`useImperativeHandle`,z(),xi(e,t,n)},useInsertionEffect:function(e,t){Z=`useInsertionEffect`,z(),pi(4,ah,e,t)},useLayoutEffect:function(e,t){return Z=`useLayoutEffect`,z(),yi(e,t)},useMemo:function(e,t){Z=`useMemo`,z();var n=W.H;W.H=Mh;try{return Ti(e,t)}finally{W.H=n}},useReducer:function(e,t,n){Z=`useReducer`,z();var r=W.H;W.H=Mh;try{return Ir(e,t,n)}finally{W.H=r}},useRef:function(e){return Z=`useRef`,z(),fi(e)},useState:function(e){Z=`useState`,z();var t=W.H;W.H=Mh;try{return Jr(e)}finally{W.H=t}},useDebugValue:function(){Z=`useDebugValue`,z()},useDeferredValue:function(e,t){return Z=`useDeferredValue`,z(),Di(e,t)},useTransition:function(){return Z=`useTransition`,z(),Fi()},useSyncExternalStore:function(e,t,n){return Z=`useSyncExternalStore`,z(),Br(e,t,n)},useId:function(){return Z=`useId`,z(),zi()},useActionState:function(e,t){return Z=`useActionState`,z(),oi(e,t)},useFormState:function(e,t){return Z=`useFormState`,z(),yr(),oi(e,t)},useOptimistic:function(e){return Z=`useOptimistic`,z(),Yr(e)},useHostTransitionStatus:Ri,useMemoCache:Pr,useCacheRefresh:function(){return Z=`useCacheRefresh`,z(),Bi()},useEffectEvent:function(e){return Z=`useEffectEvent`,z(),_i(e)}},Ah={readContext:function(e){return It(e)},use:Nr,useCallback:function(e,t){return Z=`useCallback`,z(),wi(e,t)},useContext:function(e){return Z=`useContext`,z(),It(e)},useEffect:function(e,t){Z=`useEffect`,z(),mi(2048,sh,e,t)},useImperativeHandle:function(e,t,n){return Z=`useImperativeHandle`,z(),Si(e,t,n)},useInsertionEffect:function(e,t){return Z=`useInsertionEffect`,z(),mi(4,ah,e,t)},useLayoutEffect:function(e,t){return Z=`useLayoutEffect`,z(),mi(4,oh,e,t)},useMemo:function(e,t){Z=`useMemo`,z();var n=W.H;W.H=Nh;try{return Ei(e,t)}finally{W.H=n}},useReducer:function(e,t,n){Z=`useReducer`,z();var r=W.H;W.H=Nh;try{return Lr(e,t,n)}finally{W.H=r}},useRef:function(){return Z=`useRef`,z(),Ar().memoizedState},useState:function(){Z=`useState`,z();var e=W.H;W.H=Nh;try{return Lr(Fr)}finally{W.H=e}},useDebugValue:function(){Z=`useDebugValue`,z()},useDeferredValue:function(e,t){return Z=`useDeferredValue`,z(),Oi(e,t)},useTransition:function(){return Z=`useTransition`,z(),Ii()},useSyncExternalStore:function(e,t,n){return Z=`useSyncExternalStore`,z(),Vr(e,t,n)},useId:function(){return Z=`useId`,z(),Ar().memoizedState},useFormState:function(e){return Z=`useFormState`,z(),yr(),si(e)},useActionState:function(e){return Z=`useActionState`,z(),si(e)},useOptimistic:function(e,t){return Z=`useOptimistic`,z(),Xr(e,t)},useHostTransitionStatus:Ri,useMemoCache:Pr,useCacheRefresh:function(){return Z=`useCacheRefresh`,z(),Ar().memoizedState},useEffectEvent:function(e){return Z=`useEffectEvent`,z(),vi(e)}},jh={readContext:function(e){return It(e)},use:Nr,useCallback:function(e,t){return Z=`useCallback`,z(),wi(e,t)},useContext:function(e){return Z=`useContext`,z(),It(e)},useEffect:function(e,t){Z=`useEffect`,z(),mi(2048,sh,e,t)},useImperativeHandle:function(e,t,n){return Z=`useImperativeHandle`,z(),Si(e,t,n)},useInsertionEffect:function(e,t){return Z=`useInsertionEffect`,z(),mi(4,ah,e,t)},useLayoutEffect:function(e,t){return Z=`useLayoutEffect`,z(),mi(4,oh,e,t)},useMemo:function(e,t){Z=`useMemo`,z();var n=W.H;W.H=Ph;try{return Ei(e,t)}finally{W.H=n}},useReducer:function(e,t,n){Z=`useReducer`,z();var r=W.H;W.H=Ph;try{return zr(e,t,n)}finally{W.H=r}},useRef:function(){return Z=`useRef`,z(),Ar().memoizedState},useState:function(){Z=`useState`,z();var e=W.H;W.H=Ph;try{return zr(Fr)}finally{W.H=e}},useDebugValue:function(){Z=`useDebugValue`,z()},useDeferredValue:function(e,t){return Z=`useDeferredValue`,z(),ki(e,t)},useTransition:function(){return Z=`useTransition`,z(),Li()},useSyncExternalStore:function(e,t,n){return Z=`useSyncExternalStore`,z(),Vr(e,t,n)},useId:function(){return Z=`useId`,z(),Ar().memoizedState},useFormState:function(e){return Z=`useFormState`,z(),yr(),ui(e)},useActionState:function(e){return Z=`useActionState`,z(),ui(e)},useOptimistic:function(e,t){return Z=`useOptimistic`,z(),Qr(e,t)},useHostTransitionStatus:Ri,useMemoCache:Pr,useCacheRefresh:function(){return Z=`useCacheRefresh`,z(),Ar().memoizedState},useEffectEvent:function(e){return Z=`useEffectEvent`,z(),vi(e)}},Mh={readContext:function(e){return p(),It(e)},use:function(e){return f(),Nr(e)},useCallback:function(e,t){return Z=`useCallback`,f(),R(),Ci(e,t)},useContext:function(e){return Z=`useContext`,f(),R(),It(e)},useEffect:function(e,t){return Z=`useEffect`,f(),R(),hi(e,t)},useImperativeHandle:function(e,t,n){return Z=`useImperativeHandle`,f(),R(),xi(e,t,n)},useInsertionEffect:function(e,t){Z=`useInsertionEffect`,f(),R(),pi(4,ah,e,t)},useLayoutEffect:function(e,t){return Z=`useLayoutEffect`,f(),R(),yi(e,t)},useMemo:function(e,t){Z=`useMemo`,f(),R();var n=W.H;W.H=Mh;try{return Ti(e,t)}finally{W.H=n}},useReducer:function(e,t,n){Z=`useReducer`,f(),R();var r=W.H;W.H=Mh;try{return Ir(e,t,n)}finally{W.H=r}},useRef:function(e){return Z=`useRef`,f(),R(),fi(e)},useState:function(e){Z=`useState`,f(),R();var t=W.H;W.H=Mh;try{return Jr(e)}finally{W.H=t}},useDebugValue:function(){Z=`useDebugValue`,f(),R()},useDeferredValue:function(e,t){return Z=`useDeferredValue`,f(),R(),Di(e,t)},useTransition:function(){return Z=`useTransition`,f(),R(),Fi()},useSyncExternalStore:function(e,t,n){return Z=`useSyncExternalStore`,f(),R(),Br(e,t,n)},useId:function(){return Z=`useId`,f(),R(),zi()},useFormState:function(e,t){return Z=`useFormState`,f(),R(),oi(e,t)},useActionState:function(e,t){return Z=`useActionState`,f(),R(),oi(e,t)},useOptimistic:function(e){return Z=`useOptimistic`,f(),R(),Yr(e)},useMemoCache:function(e){return f(),Pr(e)},useHostTransitionStatus:Ri,useCacheRefresh:function(){return Z=`useCacheRefresh`,R(),Bi()},useEffectEvent:function(e){return Z=`useEffectEvent`,f(),R(),_i(e)}},Nh={readContext:function(e){return p(),It(e)},use:function(e){return f(),Nr(e)},useCallback:function(e,t){return Z=`useCallback`,f(),z(),wi(e,t)},useContext:function(e){return Z=`useContext`,f(),z(),It(e)},useEffect:function(e,t){Z=`useEffect`,f(),z(),mi(2048,sh,e,t)},useImperativeHandle:function(e,t,n){return Z=`useImperativeHandle`,f(),z(),Si(e,t,n)},useInsertionEffect:function(e,t){return Z=`useInsertionEffect`,f(),z(),mi(4,ah,e,t)},useLayoutEffect:function(e,t){return Z=`useLayoutEffect`,f(),z(),mi(4,oh,e,t)},useMemo:function(e,t){Z=`useMemo`,f(),z();var n=W.H;W.H=Nh;try{return Ei(e,t)}finally{W.H=n}},useReducer:function(e,t,n){Z=`useReducer`,f(),z();var r=W.H;W.H=Nh;try{return Lr(e,t,n)}finally{W.H=r}},useRef:function(){return Z=`useRef`,f(),z(),Ar().memoizedState},useState:function(){Z=`useState`,f(),z();var e=W.H;W.H=Nh;try{return Lr(Fr)}finally{W.H=e}},useDebugValue:function(){Z=`useDebugValue`,f(),z()},useDeferredValue:function(e,t){return Z=`useDeferredValue`,f(),z(),Oi(e,t)},useTransition:function(){return Z=`useTransition`,f(),z(),Ii()},useSyncExternalStore:function(e,t,n){return Z=`useSyncExternalStore`,f(),z(),Vr(e,t,n)},useId:function(){return Z=`useId`,f(),z(),Ar().memoizedState},useFormState:function(e){return Z=`useFormState`,f(),z(),si(e)},useActionState:function(e){return Z=`useActionState`,f(),z(),si(e)},useOptimistic:function(e,t){return Z=`useOptimistic`,f(),z(),Xr(e,t)},useMemoCache:function(e){return f(),Pr(e)},useHostTransitionStatus:Ri,useCacheRefresh:function(){return Z=`useCacheRefresh`,z(),Ar().memoizedState},useEffectEvent:function(e){return Z=`useEffectEvent`,f(),z(),vi(e)}},Ph={readContext:function(e){return p(),It(e)},use:function(e){return f(),Nr(e)},useCallback:function(e,t){return Z=`useCallback`,f(),z(),wi(e,t)},useContext:function(e){return Z=`useContext`,f(),z(),It(e)},useEffect:function(e,t){Z=`useEffect`,f(),z(),mi(2048,sh,e,t)},useImperativeHandle:function(e,t,n){return Z=`useImperativeHandle`,f(),z(),Si(e,t,n)},useInsertionEffect:function(e,t){return Z=`useInsertionEffect`,f(),z(),mi(4,ah,e,t)},useLayoutEffect:function(e,t){return Z=`useLayoutEffect`,f(),z(),mi(4,oh,e,t)},useMemo:function(e,t){Z=`useMemo`,f(),z();var n=W.H;W.H=Nh;try{return Ei(e,t)}finally{W.H=n}},useReducer:function(e,t,n){Z=`useReducer`,f(),z();var r=W.H;W.H=Nh;try{return zr(e,t,n)}finally{W.H=r}},useRef:function(){return Z=`useRef`,f(),z(),Ar().memoizedState},useState:function(){Z=`useState`,f(),z();var e=W.H;W.H=Nh;try{return zr(Fr)}finally{W.H=e}},useDebugValue:function(){Z=`useDebugValue`,f(),z()},useDeferredValue:function(e,t){return Z=`useDeferredValue`,f(),z(),ki(e,t)},useTransition:function(){return Z=`useTransition`,f(),z(),Li()},useSyncExternalStore:function(e,t,n){return Z=`useSyncExternalStore`,f(),z(),Vr(e,t,n)},useId:function(){return Z=`useId`,f(),z(),Ar().memoizedState},useFormState:function(e){return Z=`useFormState`,f(),z(),ui(e)},useActionState:function(e){return Z=`useActionState`,f(),z(),ui(e)},useOptimistic:function(e,t){return Z=`useOptimistic`,f(),z(),Qr(e,t)},useMemoCache:function(e){return f(),Pr(e)},useHostTransitionStatus:Ri,useCacheRefresh:function(){return Z=`useCacheRefresh`,z(),Ar().memoizedState},useEffectEvent:function(e){return Z=`useEffectEvent`,f(),z(),vi(e)}};var Fh={},Ih=new Set,Lh=new Set,Rh=new Set,zh=new Set,Bh=new Set,Vh=new Set,Hh=new Set,Uh=new Set,Wh=new Set,Gh=new Set;Object.freeze(Fh);var Kh={enqueueSetState:function(e,t,n){e=e._reactInternals;var r=ss(e),i=er(r);i.payload=t,n!=null&&(Yi(n),i.callback=n),t=tr(e,i,r),t!==null&&(Ht(r,`this.setState()`,e),ls(t,e,r),nr(t,e,r))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=ss(e),i=er(r);i.tag=Um,i.payload=t,n!=null&&(Yi(n),i.callback=n),t=tr(e,i,r),t!==null&&(Ht(r,`this.replaceState()`,e),ls(t,e,r),nr(t,e,r))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=ss(e),r=er(n);r.tag=Wm,t!=null&&(Yi(t),r.callback=t),t=tr(e,r,n),t!==null&&(Ht(n,`this.forceUpdate()`,e),ls(t,e,n),nr(t,e,n))}},qh=null,Jh=null,Yh=Error(`This is not a real error. It's an implementation detail of React's selective hydration feature. If this leaks into userspace, it's a bug in React. Please file an issue.`),Xh=!1,Zh={},Qh={},$h={},eg={},tg=!1,ng={},rg={},ig={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null},ag=!1,og=null;og=new Set;var sg=!1,cg=!1,lg=!1,ug=typeof WeakSet==`function`?WeakSet:Set,dg=null,fg=null,pg=null,mg=null,hg=!1,gg=null,_g=!1,vg=8192,yg={getCacheForType:function(e){var t=It(Xf),n=t.data.get(e);return n===void 0&&(n=e(),t.data.set(e,n)),n},cacheSignal:function(){return It(Xf).controller.signal},getOwner:function(){return Af}},bg=0,xg=1,Sg=2,Cg=3,wg=4;if(typeof Symbol==`function`&&Symbol.for){var Tg=Symbol.for;bg=Tg(`selector.component`),xg=Tg(`selector.has_pseudo_class`),Sg=Tg(`selector.role`),Cg=Tg(`selector.test_id`),wg=Tg(`selector.text`)}var Eg=[],Dg=typeof WeakMap==`function`?WeakMap:Map,Og=0,kg=2,Ag=4,jg=0,Mg=1,Ng=2,Pg=3,Fg=4,Ig=6,Lg=5,Rg=Og,zg=null,Q=null,$=0,Bg=0,Vg=1,Hg=2,Ug=3,Wg=4,Gg=5,Kg=6,qg=7,Jg=8,Yg=9,Xg=Bg,Zg=null,Qg=!1,$g=!1,e_=!1,t_=0,n_=jg,r_=0,i_=0,a_=0,o_=0,s_=0,c_=null,l_=null,u_=!1,d_=0,f_=0,p_=300,m_=1/0,h_=500,g_=null,__=null,v_=null,y_=0,b_=1,x_=2,S_=3,C_=0,w_=1,T_=2,E_=3,D_=4,O_=5,k_=0,A_=null,j_=null,M_=0,N_=0,P_=-0,F_=null,I_=null,L_=null,R_=y_,z_=null,B_=50,V_=0,H_=null,U_=!1,W_=!1,G_=50,K_=0,q_=null,J_=!1,Y_=null,X_=!1,Z_=new Set,Q_={},$_=null,ev=null,tv=!1;try{var nv=Object.preventExtensions({});new Map([[nv,null]]),new Set([nv])}catch{tv=!0}var rv=!1,iv={},av=null,ov=null,sv=null,cv=null,lv=null,uv=null,dv=null,fv=null,pv=null,mv=null;return av=function(e,r,i,a){r=t(e,r),r!==null&&(i=n(r.memoizedState,i,0,a),r.memoizedState=i,r.baseState=i,e.memoizedProps=Oc({},e.memoizedProps),i=Yn(e,2),i!==null&&ls(i,e,2))},ov=function(e,n,r){n=t(e,n),n!==null&&(r=a(n.memoizedState,r,0),n.memoizedState=r,n.baseState=r,e.memoizedProps=Oc({},e.memoizedProps),r=Yn(e,2),r!==null&&ls(r,e,2))},sv=function(e,n,i,a){n=t(e,n),n!==null&&(i=r(n.memoizedState,i,a),n.memoizedState=i,n.baseState=i,e.memoizedProps=Oc({},e.memoizedProps),i=Yn(e,2),i!==null&&ls(i,e,2))},cv=function(e,t,r){e.pendingProps=n(e.memoizedProps,t,0,r),e.alternate&&(e.alternate.pendingProps=e.pendingProps),t=Yn(e,2),t!==null&&ls(t,e,2)},lv=function(e,t){e.pendingProps=a(e.memoizedProps,t,0),e.alternate&&(e.alternate.pendingProps=e.pendingProps),t=Yn(e,2),t!==null&&ls(t,e,2)},uv=function(e,t,n){e.pendingProps=r(e.memoizedProps,t,n),e.alternate&&(e.alternate.pendingProps=e.pendingProps),t=Yn(e,2),t!==null&&ls(t,e,2)},dv=function(e){var t=Yn(e,2);t!==null&&ls(t,e,2)},fv=function(e){var t=M(),n=Yn(e,t);n!==null&&ls(n,e,t)},pv=function(e){s=e},mv=function(e){o=e},U.attemptContinuousHydration=function(e){if(e.tag===13||e.tag===31){var t=Yn(e,67108864);t!==null&&ls(t,e,67108864),wc(e,67108864)}},U.attemptHydrationAtCurrentPriority=function(e){if(e.tag===13||e.tag===31){var t=ss(e);t=le(t);var n=Yn(e,t);n!==null&&ls(n,e,t),wc(e,t)}},U.attemptSynchronousHydration=function(e){switch(e.tag){case 3:if(e=e.stateNode,e.current.memoizedState.isDehydrated){var t=A(e.pendingLanes);if(t!==0){for(e.pendingLanes|=2,e.entangledLanes|=2;t;){var n=1<<31-xd(t);e.entanglements[1]|=n,t&=~n}ln(e),(Rg&(kg|Ag))===Og&&(m_=jd()+h_,un(0,!1))}}break;case 31:case 13:t=Yn(e,2),t!==null&&ls(t,e,2),ms(),wc(e,2)}},U.batchedUpdates=function(e,t){return e(t)},U.createComponentSelector=function(e){return{$$typeof:bg,value:e}},U.createContainer=function(e,t,n,r,i,a,o,s,c,l){return vc(e,t,!1,null,n,r,a,null,o,s,c,l)},U.createHasPseudoClassSelector=function(e){return{$$typeof:xg,value:e}},U.createHydrationContainer=function(e,t,n,r,i,a,o,s,c,l,u,d,f,p){return e=vc(n,r,!0,e,i,a,s,p,c,l,u,d),e.context=bc(null),n=e.current,r=ss(n),r=le(r),i=er(r),i.callback=t??null,tr(n,i,r),Ht(r,`hydrateRoot()`,null),t=r,e.current.lanes=t,ie(e,t),ln(e),e},U.createPortal=function(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;try{yc(r);var i=!1}catch{i=!0}return i&&(console.error(`The provided key is an unsupported type %s. This value must be coerced to a string before using it here.`,typeof Symbol==`function`&&Symbol.toStringTag&&r[Symbol.toStringTag]||r.constructor.name||`Object`),yc(r)),{$$typeof:jc,key:r==null?null:``+r,children:e,containerInfo:t,implementation:n}},U.createRoleSelector=function(e){return{$$typeof:Sg,value:e}},U.createTestNameSelector=function(e){return{$$typeof:Cg,value:e}},U.createTextSelector=function(e){return{$$typeof:wg,value:e}},U.defaultOnCaughtError=function(e){var t=qh?`The above error occurred in the <`+qh+`> component.`:`The above error occurred in one of your React components.`,n=`React will try to recreate this component tree from scratch using the error boundary you provided, `+((Jh||`Anonymous`)+`.`);typeof e==`object`&&e&&typeof e.environmentName==`string`?Pl(`error`,[`%o
|
|
292
292
|
|
|
293
293
|
%s
|
|
294
294
|
|
|
@@ -298,61 +298,61 @@ Check the top-level render call using <`+r+`>.`);var o=``;n!=null&&e!==n&&(r=nul
|
|
|
298
298
|
%s
|
|
299
299
|
|
|
300
300
|
%s
|
|
301
|
-
`,e,t,n)},
|
|
301
|
+
`,e,t,n)},U.defaultOnRecoverableError=function(e){qd(e)},U.defaultOnUncaughtError=function(e){qd(e),console.warn(`%s
|
|
302
302
|
|
|
303
303
|
%s
|
|
304
304
|
`,qh?`An error occurred in the <`+qh+`> component.`:`An error occurred in one of your React components.`,`Consider adding an error boundary to your tree to customize error handling behavior.
|
|
305
|
-
Visit https://react.dev/link/error-boundaries to learn more about error boundaries.`)},
|
|
305
|
+
Visit https://react.dev/link/error-boundaries to learn more about error boundaries.`)},U.deferredUpdates=function(e){var t=W.T,n=gl();try{return hl(32),W.T=null,e()}finally{hl(n),W.T=t}},U.discreteUpdates=function(e,t,n,r,i){var a=W.T,o=gl();try{return hl(2),W.T=null,e(t,n,r,i)}finally{hl(o),W.T=a,Rg===Og&&(m_=jd()+h_)}},U.findAllNodes=is,U.findBoundingRects=function(e,t){if(!Ll)throw Error(`Test selector API is not supported by this renderer.`);t=is(e,t),e=[];for(var n=0;n<t.length;n++)e.push(zl(t[n]));for(t=e.length-1;0<t;t--){n=e[t];for(var r=n.x,i=r+n.width,a=n.y,o=a+n.height,s=t-1;0<=s;s--)if(t!==s){var c=e[s],l=c.x,u=l+c.width,d=c.y,f=d+c.height;if(r>=l&&a>=d&&i<=u&&o<=f){e.splice(t,1);break}else if(!(r!==l||n.width!==c.width||f<a||d>o)){d>a&&(c.height+=d-a,c.y=a),f<o&&(c.height=o-d),e.splice(t,1);break}else if(!(a!==d||n.height!==c.height||u<r||l>i)){l>r&&(c.width+=l-r,c.x=r),u<i&&(c.width=i-l),e.splice(t,1);break}}}return e},U.findHostInstance=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render==`function`?Error(`Unable to find node on an unmounted component.`):(e=Object.keys(e).join(`,`),Error(`Argument appears to not be a ReactComponent. Keys: `+e));return e=b(t),e===null?null:Xc(e.stateNode)},U.findHostInstanceWithNoPortals=function(e){return e=y(e),e=e===null?null:S(e),e===null?null:Xc(e.stateNode)},U.findHostInstanceWithWarning=function(e,t){var n=e._reactInternals;if(n===void 0)throw typeof e.render==`function`?Error(`Unable to find node on an unmounted component.`):(e=Object.keys(e).join(`,`),Error(`Argument appears to not be a ReactComponent. Keys: `+e));if(e=b(n),e===null)return null;if(e.mode&8){var r=T(n)||`Component`;iv[r]||(iv[r]=!0,L(e,function(){n.mode&8?console.error(`%s is deprecated in StrictMode. %s was passed an instance of %s which is inside StrictMode. Instead, add a ref directly to the element you want to reference. Learn more about using refs safely here: https://react.dev/link/strict-mode-find-node`,t,t,r):console.error(`%s is deprecated in StrictMode. %s was passed an instance of %s which renders StrictMode children. Instead, add a ref directly to the element you want to reference. Learn more about using refs safely here: https://react.dev/link/strict-mode-find-node`,t,t,r)}))}return Xc(e.stateNode)},U.flushPassiveEffects=Vs,U.flushSyncFromReconciler=function(e){var t=Rg;Rg|=1;var n=W.T,r=gl();try{if(hl(2),W.T=null,e)return e()}finally{hl(r),W.T=n,Rg=t,(Rg&(kg|Ag))===Og&&un(0,!1)}},U.flushSyncWork=ms,U.focusWithin=function(e,t){if(!Ll)throw Error(`Test selector API is not supported by this renderer.`);for(e=es(e),t=rs(e,t),t=Array.from(t),e=0;e<t.length;){var n=t[e++],r=n.tag;if(!Vl(n)){if((r===5||r===26||r===27)&&Ul(n.stateNode))return!0;for(n=n.child;n!==null;)t.push(n),n=n.sibling}}return!1},U.getFindAllNodesFailureDescription=function(e,t){if(!Ll)throw Error(`Test selector API is not supported by this renderer.`);var n=0,r=[];e=[es(e),0];for(var i=0;i<e.length;){var a=e[i++],o=a.tag,s=e[i++],c=t[s];if((o!==5&&o!==26&&o!==27||!Vl(a))&&(ts(a,c)&&(r.push(ns(c)),s++,s>n&&(n=s)),s<t.length))for(a=a.child;a!==null;)e.push(a,s),a=a.sibling}if(n<t.length){for(e=[];n<t.length;n++)e.push(ns(t[n]));return`findAllNodes was able to match part of the selector:
|
|
306
306
|
`+(r.join(` > `)+`
|
|
307
307
|
|
|
308
308
|
No matching component was found for:
|
|
309
|
-
`)+e.join(` > `)}return null},
|
|
309
|
+
`)+e.join(` > `)}return null},U.getPublicRootInstance=function(e){if(e=e.current,!e.child)return null;switch(e.child.tag){case 27:case 5:return Xc(e.child.stateNode);default:return e.child.stateNode}},U.injectIntoDevTools=function(){var e={bundleType:1,version:qc,rendererPackageName:Jc,currentDispatcherRef:W,reconcilerVersion:`19.2.0`};return Yc!==null&&(e.rendererConfig=Yc),e.overrideHookState=av,e.overrideHookStateDeletePath=ov,e.overrideHookStateRenamePath=sv,e.overrideProps=cv,e.overridePropsDeletePath=lv,e.overridePropsRenamePath=uv,e.scheduleUpdate=dv,e.scheduleRetry=fv,e.setErrorHandler=pv,e.setSuspenseHandler=mv,e.scheduleRefresh=u,e.scheduleRoot=l,e.setRefreshHandler=d,e.getCurrentFiber=Tc,fe(e)},U.isAlreadyRendering=hs,U.observeVisibleRects=function(e,t,n,r){function i(){var n=is(e,t);a.forEach(function(e){0>n.indexOf(e)&&c(e)}),n.forEach(function(e){0>a.indexOf(e)&&s(e)})}if(!Ll)throw Error(`Test selector API is not supported by this renderer.`);var a=is(e,t);n=Wl(a,n,r);var o=n.disconnect,s=n.observe,c=n.unobserve;return Eg.push(i),{disconnect:function(){var e=Eg.indexOf(i);0<=e&&Eg.splice(e,1),o()}}},U.shouldError=function(e){return s(e)},U.shouldSuspend=function(e){return o(e)},U.startHostTransition=function(e,t,n,r){if(e.tag!==5)throw Error(`Expected the form instance to be a HostComponent. This is a bug in React.`);var i=Pi(e).queue;Ut(e),Ni(e,i,t,jl,n===null?m:function(){W.T===null&&console.error(`requestFormReset was called outside a transition or action. To fix, move to an action, or wrap with startTransition.`);var t=Pi(e);return t.next===null&&(t=e.alternate.memoizedState),Wi(e,t.next.queue,{},ss(e)),n(r)})},U.updateContainer=function(e,t,n,r){var i=t.current,a=ss(i);return Sc(i,a,e,t,n,r),a},U.updateContainerSync=xc,U},t.exports.default=t.exports,Object.defineProperty(t.exports,"__esModule",{value:!0}))})),hn=x(((e,t)=>{process.env.NODE_ENV===`production`?t.exports=pn():t.exports=mn()})),gn=w(fn(),1),_n=w(hn(),1);function vn(e){let t=0;for(let n of e.split(`
|
|
310
310
|
`))t=Math.max(t,vt(n));return t}const yn=new Map,bn=e=>{if(e.length===0)return{width:0,height:0};let t=yn.get(e);if(t)return t;let n={width:vn(e),height:e.split(`
|
|
311
|
-
`).length};return yn.set(e,n),n};function xn(e){return Number.isInteger(e)?et(e)||tt(e):!1}const Sn=new Set([27,144,152,155,156,157,158,159]),Cn=`\x1B]8;`,wn=`8;`,Tn=`${Cn};`,En=`${wn};`,Dn=`0`.codePointAt(0),On=`9`.codePointAt(0),kn=`;`.codePointAt(0),An=`:`.codePointAt(0),jn=`0`.codePointAt(0),Mn=`?`.codePointAt(0),Nn=` `.codePointAt(0),Pn=`/`.codePointAt(0),Fn=`@`.codePointAt(0),In=`~`.codePointAt(0),Ln=/\p{Emoji_Presentation}/v,Rn=new Intl.Segmenter(void 0,{granularity:`grapheme`}),zn=new Set;for(let[,e]of Et.codes)zn.add(e);function Bn(e){return e>=Dn&&e<=On||e===kn||e===An}function Vn(e){return e>=jn&&e<=Mn}function Hn(e){return e>=Nn&&e<=Pn}function Un(e){return e>=Fn&&e<=In}function Wn(e){return e>=127462&&e<=127487}function Gn(e,t){return{token:{type:`control`,code:e},endIndex:t}}function Kn(e){if(Ln.test(e))return!0;for(let t of e){let e=t.codePointAt(0);if(e===65039||e===8419)return!0}return!1}function qn(e){let t=0;for(let n of e){let e=n.codePointAt(0);if(xn(e))return 2;Wn(e)&&t++}return t>=1||Kn(e)?2:1}function Jn(e){return e.startsWith(``)?``:`\x1B[`}function Yn(e,t){return`${e}${t.join(`;`)}m`}function Xn(e){let t=[],n=Jn(e),r;if(e.startsWith(`\x1B[`))r=e.slice(2,-1);else if(e.startsWith(``))r=e.slice(1,-1);else return t;let i=r.length===0?[`0`]:r.split(`;`),a=0;for(;a<i.length;){let e=Number.parseInt(i[a],10);if(Number.isNaN(e)){a++;continue}if(e===0){t.push({type:`reset`}),a++;continue}if(e===38||e===48){let r=Number.parseInt(i[a+1],10);if(r===5&&a+2<i.length){let r=Yn(n,i.slice(a,a+3));t.push({type:`start`,code:r,endCode:Et.color.ansi(e===38?39:49)}),a+=3;continue}if(r===2&&a+4<i.length){let r=Yn(n,i.slice(a,a+5));t.push({type:`start`,code:r,endCode:Et.color.ansi(e===38?39:49)}),a+=5;continue}let o=Yn(n,[i[a]]);t.push({type:`start`,code:o,endCode:Et.color.ansi(e===38?39:49)}),a++;continue}if(zn.has(e)){t.push({type:`end`,endCode:Et.color.ansi(e)}),a++;continue}let r=Et.codes.get(e);if(r!==void 0){let e=Yn(n,[i[a]]);t.push({type:`start`,code:e,endCode:Et.color.ansi(r)}),a++;continue}let o=Yn(n,[i[a]]);t.push({type:`start`,code:o,endCode:Et.reset.open}),a++}return t.length===0&&t.push({type:`reset`}),t}function Zn(e,t){let n=e.codePointAt(t),r;if(n===27){if(e[t+1]!==`[`)return;r=t+2}else if(n===155)r=t+1;else return;let i=!0;for(let n=r;n<e.length;n++){let r=e.codePointAt(n);if(Un(r)){let r=e.slice(t,n+1);return e[n]!==`m`||!i?Gn(r,n+1):{token:{type:`sgr`,code:r,fragments:Xn(r)},endIndex:n+1}}if(Vn(r)){Bn(r)||(i=!1);continue}if(Hn(r)){i=!1;continue}let a=n;return Gn(e.slice(t,a),a)}return Gn(e.slice(t),e.length)}function Qn(e,t){let n,r,i=e.codePointAt(t);if(i===27&&e.startsWith(Cn,t))n=Cn,r=Tn;else if(i===157&&e.startsWith(wn,t))n=wn,r=En;else return;let a=e.indexOf(`;`,t+n.length);if(a===-1)return Gn(e.slice(t),e.length);for(let n=a+1;n<e.length;n++){let i=e[n];if(i===`\x07`)return{token:{type:`hyperlink`,code:e.slice(t,n+1),action:n===a+1?`close`:`open`,closePrefix:r,terminator:`\x07`},endIndex:n+1};if(i===`\x1B`&&e[n+1]===`\\`)return{token:{type:`hyperlink`,code:e.slice(t,n+2),action:n===a+1?`close`:`open`,closePrefix:r,terminator:`\x1B\\`},endIndex:n+2};if(i===``)return{token:{type:`hyperlink`,code:e.slice(t,n+1),action:n===a+1?`close`:`open`,closePrefix:r,terminator:``},endIndex:n+1}}return Gn(e.slice(t),e.length)}function $n(e,t){let n=e.codePointAt(t),r,i=!1;switch(n){case 27:switch(e[t+1]){case`]`:r=t+2,i=!0;break;case`P`:case`X`:case`^`:case`_`:r=t+2;break;case`\\`:return Gn(`\x1B\\`,t+2);default:return}break;case 157:r=t+1,i=!0;break;case 144:case 152:case 158:case 159:r=t+1;break;case 156:return Gn(``,t+1);default:return}for(let n=r;n<e.length;n++){if(i&&e[n]===`\x07`)return Gn(e.slice(t,n+1),n+1);if(e[n]===`\x1B`&&e[n+1]===`\\`)return Gn(e.slice(t,n+2),n+2);if(e[n]===``)return Gn(e.slice(t,n+1),n+1)}return Gn(e.slice(t),e.length)}function er(e,t){let n=e.codePointAt(t);if(n===27||n===157){let n=Qn(e,t);if(n)return n}return $n(e,t)||Zn(e,t)}function tr(e,t,n){for(;t<e.length;){let r=e.codePointAt(t);if(!Sn.has(r))break;let i=er(e,t);if(!i)break;n.push(i.token),t=i.endIndex}return t}function nr(e,t,n){let r=n.containing(t);if(!(!r||r.index!==t))return{token:{type:`character`,value:r.segment,visibleWidth:qn(r.segment),isGraphemeContinuation:!1},endIndex:t+r.segment.length}}function rr(e){let t=[],n=0;for(;n<e.length;){let r=e.codePointAt(n);if(Sn.has(r)){let t=er(e,n);if(t){n=t.endIndex;continue}}let i=String.fromCodePoint(r);t.push({value:i,visibleWidth:1,isGraphemeContinuation:!1}),n+=i.length}return t}function ir(e){if(e.length===0)return;let t=e.map(({value:e})=>e).join(``),n=[],r=0;for(let t of e)n.push(r),r+=t.value.length;let i=0;for(let r of Rn.segment(t)){for(;i<e.length&&n[i]<r.index;)i++;let t=i,a=!0;for(;t<e.length&&n[t]<r.index+r.segment.length;)e[t].visibleWidth=a?qn(r.segment):0,e[t].isGraphemeContinuation=!a,a=!1,t++;i=t}}function ar(e,{endCharacter:t=1/0}={}){let n=[],r=rr(e);ir(r);let i=0,a=0,o=0;for(;i<e.length;){let s=e.codePointAt(i);if(Sn.has(s)){let t=er(e,i);if(t){n.push(t.token),i=t.endIndex;continue}}let c=String.fromCodePoint(s),l=r[a],u=xn(s)?2:c.length;l&&(u=l.visibleWidth);let d={type:`character`,value:c,visibleWidth:u,isGraphemeContinuation:l?l.isGraphemeContinuation:!1};if(n.push(d),i+=c.length,a++,o+=d.visibleWidth,o>=t){let t=r[a];if(!t||!t.isGraphemeContinuation){i=tr(e,i,n);break}}}return n}function or(e,t){let n=`${e}${t}`,r=e.length;for(let e of Rn.segment(n)){if(e.index===r)return!1;if(e.index>r)return!0}return!0}function sr(e,t,n,r){if(!n)return!1;let i=t,a=!1;for(;i<e.length;){let t=e.codePointAt(i);if(Sn.has(t)){let t=er(e,i);if(t){a=!0,i=t.endIndex;continue}}if(!a)return!1;let o=nr(e,i,r);return o?or(n,o.token.value):!0}return!1}function cr(e,{endCharacter:t=1/0}={}){let n=[],r=Rn.segment(e),i=0,a=0,o,s=!1;for(;i<e.length;){let c=e.codePointAt(i);if(Sn.has(c)){let t=er(e,i);if(t){n.push(t.token),i=t.endIndex,s=!0;continue}}let l=nr(e,i,r);if(!l||s&&o&&or(o,l.token.value))return ar(e,{endCharacter:t});if(n.push(l.token),i=l.endIndex,a+=l.token.visibleWidth,s=!1,o=l.token.value,a>=t){if(sr(e,i,o,r))return ar(e,{endCharacter:t});i=tr(e,i,n);break}}return n}function lr(e,t){for(let n of t)switch(n.type){case`reset`:e.clear();break;case`end`:e.delete(n.endCode);break;case`start`:e.delete(n.endCode),e.set(n.endCode,n.code);break;default:break}return e}function ur(e){return[...e.keys()].toReversed().join(``)}function dr(e){return`${e.closePrefix}${e.terminator}`}function fr(e,t){let n=!1,r=!1;for(let i of e.fragments){if(i.type===`start`){n=!0;continue}if(i.type===`reset`&&t.size>0){r=!0;continue}i.type===`end`&&t.has(i.endCode)&&(r=!0)}return r&&!n}function pr(e){return e.fragments.some(e=>e.type===`start`)}function mr(e){if(e.activeHyperlink&&!e.activeHyperlinkHasVisibleText&&e.activeHyperlinkOutputIndex!==void 0){let t=e.activeHyperlink.code.length;e.returnValue=e.returnValue.slice(0,e.activeHyperlinkOutputIndex)+e.returnValue.slice(e.activeHyperlinkOutputIndex+t),e.pendingSgrOutputIndex!==void 0&&e.pendingSgrOutputIndex>e.activeHyperlinkOutputIndex&&(e.pendingSgrOutputIndex-=t)}e.activeHyperlink=void 0,e.activeHyperlinkHasVisibleText=!1,e.activeHyperlinkOutputIndex=void 0}function hr(e){return e.isPastEnd&&!fr(e.token,e.activeStyles)?e:(e.include&&pr(e.token)&&e.pendingSgrOutputIndex===void 0&&(e.pendingSgrOutputIndex=e.returnValue.length,e.pendingSgrActiveStyles=new Map(e.activeStyles)),e.activeStyles=lr(e.activeStyles,e.token.fragments),e.include&&(e.returnValue+=e.token.code),e)}function gr(e){if(e.isPastEnd&&(e.token.action!==`close`||!e.activeHyperlink))return e;if(e.token.action===`open`)e.activeHyperlink=e.token,e.activeHyperlinkHasVisibleText=!1,e.activeHyperlinkOutputIndex=void 0,e.include&&(e.activeHyperlinkOutputIndex=e.returnValue.length);else if(e.token.action===`close`){if(e.include&&e.activeHyperlink&&!e.activeHyperlinkHasVisibleText)return mr(e),e;e.activeHyperlink=void 0,e.activeHyperlinkHasVisibleText=!1,e.activeHyperlinkOutputIndex=void 0}return e.include&&(e.returnValue+=e.token.code),e}function _r(e){return!e.isPastEnd&&e.include&&(e.returnValue+=e.token.code),e}function R(e){return!e.include&&e.position>=e.start&&!e.token.isGraphemeContinuation&&(e.include=!0,e.returnValue=[...e.activeStyles.values()].join(``),e.activeHyperlink&&(e.activeHyperlinkOutputIndex=e.returnValue.length,e.returnValue+=e.activeHyperlink.code)),e.include&&(e.returnValue+=e.token.value,e.pendingSgrOutputIndex=void 0,e.pendingSgrActiveStyles=void 0,e.activeHyperlink&&(e.activeHyperlinkHasVisibleText=!0)),e.position+=e.token.visibleWidth,e}const z={sgr:hr,hyperlink:gr,control:_r,character:R};function vr(e){let t=z[e.token.type];return t?t(e):e}function yr(e){let t=Array.from({length:e.length},()=>!1),n=!1;for(let r=e.length-1;r>=0;r--){let i=e[r];t[r]=n,i.type===`character`&&(n=!!i.isGraphemeContinuation)}return t}function br(e,t,n){return n===void 0?!1:t>=n?!0:e.type===`character`&&!e.isGraphemeContinuation&&t+e.visibleWidth>n}function xr(e,t,n){let r=cr(e,{endCharacter:n}),i=yr(r),a=new Map,o,s=!1,c,l,u,d=0,f=``,p=!1;for(let[e,m]of r.entries()){let r=br(m,d,n);if(r&&m.type!==`character`&&i[e]&&(r=!1),r&&m.type===`character`&&!m.isGraphemeContinuation){if(o&&!s){let e={activeHyperlink:o,activeHyperlinkHasVisibleText:s,activeHyperlinkOutputIndex:c,pendingSgrOutputIndex:l,returnValue:f};mr(e),{activeHyperlink:o,activeHyperlinkHasVisibleText:s,activeHyperlinkOutputIndex:c,pendingSgrOutputIndex:l,returnValue:f}=e}l!==void 0&&(f=f.slice(0,l),a=u,l=void 0,u=void 0);break}({activeStyles:a,activeHyperlink:o,activeHyperlinkHasVisibleText:s,activeHyperlinkOutputIndex:c,pendingSgrOutputIndex:l,pendingSgrActiveStyles:u,position:d,returnValue:f,include:p}=vr({token:m,isPastEnd:r,start:t,activeStyles:a,activeHyperlink:o,activeHyperlinkHasVisibleText:s,activeHyperlinkOutputIndex:c,pendingSgrOutputIndex:l,pendingSgrActiveStyles:u,position:d,returnValue:f,include:p}))}return p?(o&&(f+=dr(o)),f+=ur(a),f):``}function Sr(e,t,n){if(e.charAt(t)===` `)return t;let r=n?1:-1;for(let n=0;n<=3;n++){let i=t+n*r;if(e.charAt(i)===` `)return i}return t}function Cr(e,t,n={}){let{position:r=`end`,space:i=!1,preferTruncationOnSpace:a=!1}=n,{truncationCharacter:o=`…`}=n;if(typeof e!=`string`)throw TypeError(`Expected \`input\` to be a string, got ${typeof e}`);if(typeof t!=`number`)throw TypeError(`Expected \`columns\` to be a number, got ${typeof t}`);if(t<1)return``;let s=vt(e);if(s<=t)return e;if(t===1)return o;let c={ESC:27,LEFT_BRACKET:91,LETTER_M:109},l=e=>e>=48&&e<=57||e===59;function u(e){let t=0;for(;t+2<e.length&&e.codePointAt(t)===c.ESC&&e.codePointAt(t+1)===c.LEFT_BRACKET;){let n=t+2;for(;n<e.length&&l(e.codePointAt(n));)n++;if(n<e.length&&e.codePointAt(n)===c.LETTER_M){t=n+1;continue}break}return t}function d(e){let t=e.length;for(;t>1&&e.codePointAt(t-1)===c.LETTER_M;){let n=t-2;for(;n>=0&&l(e.codePointAt(n));)n--;if(n>=1&&e.codePointAt(n-1)===c.ESC&&e.codePointAt(n)===c.LEFT_BRACKET){t=n-1;continue}break}return t}function f(e,t){let n=d(e);return n===e.length?e+t:e.slice(0,n)+t+e.slice(n)}function p(e,t){let n=u(t);return n===0?e+t:t.slice(0,n)+e+t.slice(n)}if(r===`start`){if(a){let n=xr(e,Sr(e,s-t+1,!0),s).trim();return p(o,n)}i&&(o+=` `);let n=xr(e,s-t+vt(o),s);return p(o,n)}if(r===`middle`){i&&(o=` ${o} `);let n=Math.floor(t/2);if(a){let r=Sr(e,n),i=Sr(e,s-(t-n)+1,!0);return xr(e,0,r)+o+xr(e,i,s).trim()}return xr(e,0,n)+o+xr(e,s-(t-n)+vt(o),s)}if(r===`end`)return a?f(xr(e,0,Sr(e,t-1)),o):(i&&(o=` ${o}`),f(xr(e,0,t-vt(o)),o));throw Error(`Expected \`options.position\` to be either \`start\`, \`middle\` or \`end\`, got ${r}`)}const wr={},Tr=(e,t,n)=>{let r=e+String(t)+String(n),i=wr[r];if(i)return i;let a=e;if(n===`wrap`&&(a=$t(e,t,{trim:!1,hard:!0})),n===`hard`&&(a=$t(e,t,{trim:!1,hard:!0,wordWrap:!1})),n.startsWith(`truncate`)){let r=`end`;n===`truncate-middle`&&(r=`middle`),n===`truncate-start`&&(r=`start`),a=Cr(e,t,{position:r})}return wr[r]=a,a},Er=e=>{let t=e.codePointAt(0);return t!==void 0&&t>=48&&t<=63},Dr=e=>{let t=e.codePointAt(0);return t!==void 0&&t>=32&&t<=47},Or=e=>{let t=e.codePointAt(0);return t!==void 0&&t>=64&&t<=126},kr=e=>{let t=e.codePointAt(0);return t!==void 0&&t>=32&&t<=47},Ar=e=>{let t=e.codePointAt(0);return t!==void 0&&t>=48&&t<=126},jr=e=>{let t=e.codePointAt(0);return t!==void 0&&t>=128&&t<=159},Mr=(e,t)=>{let n=t;for(;n<e.length;){let t=e[n];if(!Er(t))break;n++}let r=e.slice(t,n),i=n;for(;n<e.length;){let t=e[n];if(!Dr(t))break;n++}let a=e.slice(i,n),o=e[n];if(!(o===void 0||!Or(o)))return{endIndex:n+1,parameterString:r,intermediateString:a,finalCharacter:o}},Nr=(e,t,n)=>{for(let r=t;r<e.length;r++){let t=e[r];if(n&&t===`\x07`||t===``)return r+1;if(t===`\x1B`){let t=e[r+1];if(t===`\x1B`){r++;continue}if(t===`\\`)return r+2}}},Pr=(e,t)=>{let n=t;for(;n<e.length;){let t=e[n];if(!kr(t))break;n++}let r=e.slice(t,n),i=e[n];if(!(i===void 0||!Ar(i)))return{endIndex:n+1,intermediateString:r,finalCharacter:i}},Fr=e=>{switch(e){case`]`:return{type:`osc`,allowBellTerminator:!0};case`P`:return{type:`dcs`,allowBellTerminator:!1};case`^`:return{type:`pm`,allowBellTerminator:!1};case`_`:return{type:`apc`,allowBellTerminator:!1};case`X`:return{type:`sos`,allowBellTerminator:!1};default:return}},Ir=e=>{switch(e){case``:return{type:`osc`,allowBellTerminator:!0};case``:return{type:`dcs`,allowBellTerminator:!1};case``:return{type:`pm`,allowBellTerminator:!1};case``:return{type:`apc`,allowBellTerminator:!1};case``:return{type:`sos`,allowBellTerminator:!1};default:return}},Lr=e=>{if(e.includes(`\x1B`))return!0;for(let t of e)if(jr(t))return!0;return!1},Rr=(e,t,n,r)=>(r>n&&e.push({type:`text`,value:t.slice(n,r)}),e.push({type:`invalid`,value:t.slice(r)}),e),zr=e=>{if(!Lr(e))return[{type:`text`,value:e}];let t=[],n=0;for(let r=0;r<e.length;){let i=e[r];if(i===void 0)break;if(i===`\x1B`){let i=e[r+1];if(i===void 0)return Rr(t,e,n,r);if(i===`[`){let i=Mr(e,r+2);if(i===void 0)return Rr(t,e,n,r);r>n&&t.push({type:`text`,value:e.slice(n,r)}),t.push({type:`csi`,value:e.slice(r,i.endIndex),parameterString:i.parameterString,intermediateString:i.intermediateString,finalCharacter:i.finalCharacter}),r=i.endIndex,n=r;continue}let a=Fr(i);if(a!==void 0){let i=Nr(e,r+2,a.allowBellTerminator);if(i===void 0)return Rr(t,e,n,r);r>n&&t.push({type:`text`,value:e.slice(n,r)}),t.push({type:a.type,value:e.slice(r,i)}),r=i,n=r;continue}let o=Pr(e,r+1);if(o===void 0){if(kr(i))return Rr(t,e,n,r);r>n&&t.push({type:`text`,value:e.slice(n,r)}),r++,n=r;continue}r>n&&t.push({type:`text`,value:e.slice(n,r)}),t.push({type:`esc`,value:e.slice(r,o.endIndex),intermediateString:o.intermediateString,finalCharacter:o.finalCharacter}),r=o.endIndex,n=r;continue}if(i===``){let i=Mr(e,r+1);if(i===void 0)return Rr(t,e,n,r);r>n&&t.push({type:`text`,value:e.slice(n,r)}),t.push({type:`csi`,value:e.slice(r,i.endIndex),parameterString:i.parameterString,intermediateString:i.intermediateString,finalCharacter:i.finalCharacter}),r=i.endIndex,n=r;continue}let a=Ir(i);if(a!==void 0){let i=Nr(e,r+1,a.allowBellTerminator);if(i===void 0)return Rr(t,e,n,r);r>n&&t.push({type:`text`,value:e.slice(n,r)}),t.push({type:a.type,value:e.slice(r,i)}),r=i,n=r;continue}if(i===``){r>n&&t.push({type:`text`,value:e.slice(n,r)}),t.push({type:`st`,value:i}),r++,n=r;continue}if(jr(i)){r>n&&t.push({type:`text`,value:e.slice(n,r)}),t.push({type:`c1`,value:i}),r++,n=r;continue}r++}return n<e.length&&t.push({type:`text`,value:e.slice(n)}),t},Br=/^[\d:;]*$/,Vr=e=>{if(!Lr(e))return e;let t=``;for(let n of zr(e)){if(n.type===`text`||n.type===`osc`){t+=n.value;continue}n.type===`csi`&&n.finalCharacter===`m`&&n.intermediateString===``&&Br.test(n.parameterString)&&(t+=n.value)}return t},Hr=e=>{let t=``;for(let n=0;n<e.childNodes.length;n++){let r=e.childNodes[n];if(r===void 0)continue;let i=``;r.nodeName===`#text`?i=r.nodeValue:((r.nodeName===`ink-text`||r.nodeName===`ink-virtual-text`)&&(i=Hr(r)),i.length>0&&typeof r.internal_transform==`function`&&(i=r.internal_transform(i,n))),t+=i}return Vr(t)},Ur=e=>{let t={nodeName:e,style:{},attributes:{},childNodes:[],parentNode:void 0,yogaNode:e===`ink-virtual-text`?void 0:I.Node.create(),internal_accessibility:{}};return e===`ink-text`&&t.yogaNode?.setMeasureFunc(Xr.bind(null,t)),t},Wr=(e,t)=>{t.parentNode&&Kr(t.parentNode,t),t.parentNode=e,e.childNodes.push(t),t.yogaNode&&e.yogaNode?.insertChild(t.yogaNode,e.yogaNode.getChildCount()),(e.nodeName===`ink-text`||e.nodeName===`ink-virtual-text`)&&Qr(e)},Gr=(e,t,n)=>{t.parentNode&&Kr(t.parentNode,t),t.parentNode=e;let r=e.childNodes.indexOf(n);r>=0?(e.childNodes.splice(r,0,t),t.yogaNode&&e.yogaNode?.insertChild(t.yogaNode,r)):(e.childNodes.push(t),t.yogaNode&&e.yogaNode?.insertChild(t.yogaNode,e.yogaNode.getChildCount())),(e.nodeName===`ink-text`||e.nodeName===`ink-virtual-text`)&&Qr(e)},Kr=(e,t)=>{t.yogaNode&&t.parentNode?.yogaNode?.removeChild(t.yogaNode),t.parentNode=void 0;let n=e.childNodes.indexOf(t);n>=0&&e.childNodes.splice(n,1),(e.nodeName===`ink-text`||e.nodeName===`ink-virtual-text`)&&Qr(e)},qr=(e,t,n)=>{if(t===`internal_accessibility`){e.internal_accessibility=n;return}e.attributes[t]=n},Jr=(e,t)=>{e.style=t??{}},Yr=e=>{let t={nodeName:`#text`,nodeValue:e,yogaNode:void 0,parentNode:void 0,style:{}};return $r(t,e),t},Xr=function(e,t){let n=e.nodeName===`#text`?e.nodeValue:Hr(e),r=bn(n);return r.width<=t||r.width>=1&&t>0&&t<1?r:bn(Tr(n,t,e.style?.textWrap??`wrap`))},Zr=e=>{if(e?.parentNode)return e.yogaNode??Zr(e.parentNode)},Qr=e=>{Zr(e)?.markDirty()},$r=(e,t)=>{typeof t!=`string`&&(t=String(t)),e.nodeValue=t,Qr(e)},ei=e=>{if(!(e.nodeName!==`ink-root`||!e.internal_layoutListeners))for(let t of e.internal_layoutListeners)t()},ti=[[`top`,I.EDGE_TOP],[`right`,I.EDGE_RIGHT],[`bottom`,I.EDGE_BOTTOM],[`left`,I.EDGE_LEFT]],ni=(e,t)=>{if(`position`in t){let n=I.POSITION_TYPE_RELATIVE;t.position===`absolute`?n=I.POSITION_TYPE_ABSOLUTE:t.position===`static`&&(n=I.POSITION_TYPE_STATIC),e.setPositionType(n)}for(let[n,r]of ti){if(!(n in t))continue;let i=t[n];if(typeof i==`string`){e.setPositionPercent(r,Number.parseFloat(i));continue}e.setPosition(r,i)}},ri=(e,t)=>{`margin`in t&&e.setMargin(I.EDGE_ALL,t.margin??0),`marginX`in t&&e.setMargin(I.EDGE_HORIZONTAL,t.marginX??0),`marginY`in t&&e.setMargin(I.EDGE_VERTICAL,t.marginY??0),`marginLeft`in t&&e.setMargin(I.EDGE_START,t.marginLeft??0),`marginRight`in t&&e.setMargin(I.EDGE_END,t.marginRight??0),`marginTop`in t&&e.setMargin(I.EDGE_TOP,t.marginTop??0),`marginBottom`in t&&e.setMargin(I.EDGE_BOTTOM,t.marginBottom??0)},ii=(e,t)=>{`padding`in t&&e.setPadding(I.EDGE_ALL,t.padding??0),`paddingX`in t&&e.setPadding(I.EDGE_HORIZONTAL,t.paddingX??0),`paddingY`in t&&e.setPadding(I.EDGE_VERTICAL,t.paddingY??0),`paddingLeft`in t&&e.setPadding(I.EDGE_LEFT,t.paddingLeft??0),`paddingRight`in t&&e.setPadding(I.EDGE_RIGHT,t.paddingRight??0),`paddingTop`in t&&e.setPadding(I.EDGE_TOP,t.paddingTop??0),`paddingBottom`in t&&e.setPadding(I.EDGE_BOTTOM,t.paddingBottom??0)},ai=(e,t)=>{`flexGrow`in t&&e.setFlexGrow(t.flexGrow??0),`flexShrink`in t&&e.setFlexShrink(typeof t.flexShrink==`number`?t.flexShrink:1),`flexWrap`in t&&(t.flexWrap===`nowrap`&&e.setFlexWrap(I.WRAP_NO_WRAP),t.flexWrap===`wrap`&&e.setFlexWrap(I.WRAP_WRAP),t.flexWrap===`wrap-reverse`&&e.setFlexWrap(I.WRAP_WRAP_REVERSE)),`flexDirection`in t&&(t.flexDirection===`row`&&e.setFlexDirection(I.FLEX_DIRECTION_ROW),t.flexDirection===`row-reverse`&&e.setFlexDirection(I.FLEX_DIRECTION_ROW_REVERSE),t.flexDirection===`column`&&e.setFlexDirection(I.FLEX_DIRECTION_COLUMN),t.flexDirection===`column-reverse`&&e.setFlexDirection(I.FLEX_DIRECTION_COLUMN_REVERSE)),`flexBasis`in t&&(typeof t.flexBasis==`number`?e.setFlexBasis(t.flexBasis):typeof t.flexBasis==`string`?e.setFlexBasisPercent(Number.parseInt(t.flexBasis,10)):e.setFlexBasisAuto()),`alignItems`in t&&((t.alignItems===`stretch`||!t.alignItems)&&e.setAlignItems(I.ALIGN_STRETCH),t.alignItems===`flex-start`&&e.setAlignItems(I.ALIGN_FLEX_START),t.alignItems===`center`&&e.setAlignItems(I.ALIGN_CENTER),t.alignItems===`flex-end`&&e.setAlignItems(I.ALIGN_FLEX_END),t.alignItems===`baseline`&&e.setAlignItems(I.ALIGN_BASELINE)),`alignSelf`in t&&((t.alignSelf===`auto`||!t.alignSelf)&&e.setAlignSelf(I.ALIGN_AUTO),t.alignSelf===`flex-start`&&e.setAlignSelf(I.ALIGN_FLEX_START),t.alignSelf===`center`&&e.setAlignSelf(I.ALIGN_CENTER),t.alignSelf===`flex-end`&&e.setAlignSelf(I.ALIGN_FLEX_END),t.alignSelf===`stretch`&&e.setAlignSelf(I.ALIGN_STRETCH),t.alignSelf===`baseline`&&e.setAlignSelf(I.ALIGN_BASELINE)),`alignContent`in t&&((t.alignContent===`flex-start`||!t.alignContent)&&e.setAlignContent(I.ALIGN_FLEX_START),t.alignContent===`center`&&e.setAlignContent(I.ALIGN_CENTER),t.alignContent===`flex-end`&&e.setAlignContent(I.ALIGN_FLEX_END),t.alignContent===`space-between`&&e.setAlignContent(I.ALIGN_SPACE_BETWEEN),t.alignContent===`space-around`&&e.setAlignContent(I.ALIGN_SPACE_AROUND),t.alignContent===`space-evenly`&&e.setAlignContent(I.ALIGN_SPACE_EVENLY),t.alignContent===`stretch`&&e.setAlignContent(I.ALIGN_STRETCH)),`justifyContent`in t&&((t.justifyContent===`flex-start`||!t.justifyContent)&&e.setJustifyContent(I.JUSTIFY_FLEX_START),t.justifyContent===`center`&&e.setJustifyContent(I.JUSTIFY_CENTER),t.justifyContent===`flex-end`&&e.setJustifyContent(I.JUSTIFY_FLEX_END),t.justifyContent===`space-between`&&e.setJustifyContent(I.JUSTIFY_SPACE_BETWEEN),t.justifyContent===`space-around`&&e.setJustifyContent(I.JUSTIFY_SPACE_AROUND),t.justifyContent===`space-evenly`&&e.setJustifyContent(I.JUSTIFY_SPACE_EVENLY))},oi=(e,t)=>{`width`in t&&(typeof t.width==`number`?e.setWidth(t.width):typeof t.width==`string`?e.setWidthPercent(Number.parseInt(t.width,10)):e.setWidthAuto()),`height`in t&&(typeof t.height==`number`?e.setHeight(t.height):typeof t.height==`string`?e.setHeightPercent(Number.parseInt(t.height,10)):e.setHeightAuto()),`minWidth`in t&&(typeof t.minWidth==`string`?e.setMinWidthPercent(Number.parseInt(t.minWidth,10)):e.setMinWidth(t.minWidth??0)),`minHeight`in t&&(typeof t.minHeight==`string`?e.setMinHeightPercent(Number.parseInt(t.minHeight,10)):e.setMinHeight(t.minHeight??0)),`maxWidth`in t&&(typeof t.maxWidth==`string`?e.setMaxWidthPercent(Number.parseInt(t.maxWidth,10)):e.setMaxWidth(t.maxWidth)),`maxHeight`in t&&(typeof t.maxHeight==`string`?e.setMaxHeightPercent(Number.parseInt(t.maxHeight,10)):e.setMaxHeight(t.maxHeight)),`aspectRatio`in t&&e.setAspectRatio(t.aspectRatio)},si=(e,t)=>{`display`in t&&e.setDisplay(t.display===`flex`?I.DISPLAY_FLEX:I.DISPLAY_NONE)},ci=(e,t,n)=>{if(!(`borderStyle`in t||`borderTop`in t||`borderBottom`in t||`borderLeft`in t||`borderRight`in t))return;let r=+!!n.borderStyle;e.setBorder(I.EDGE_TOP,n.borderTop===!1?0:r),e.setBorder(I.EDGE_BOTTOM,n.borderBottom===!1?0:r),e.setBorder(I.EDGE_LEFT,n.borderLeft===!1?0:r),e.setBorder(I.EDGE_RIGHT,n.borderRight===!1?0:r)},li=(e,t)=>{`gap`in t&&e.setGap(I.GUTTER_ALL,t.gap??0),`columnGap`in t&&e.setGap(I.GUTTER_COLUMN,t.columnGap??0),`rowGap`in t&&e.setGap(I.GUTTER_ROW,t.rowGap??0)},ui=(e,t={},n=t)=>{ni(e,t),ri(e,t),ii(e,t),ai(e,t),oi(e,t),si(e,t),ci(e,t,n),li(e,t)};var di=x(((e,t)=>{let n=[`nodebuffer`,`arraybuffer`,`fragments`],r=typeof Blob<`u`;r&&n.push(`blob`),t.exports={BINARY_TYPES:n,CLOSE_TIMEOUT:3e4,EMPTY_BUFFER:Buffer.alloc(0),GUID:`258EAFA5-E914-47DA-95CA-C5AB0DC85B11`,hasBlob:r,kForOnEventAttribute:Symbol(`kIsForOnEventAttribute`),kListener:Symbol(`kListener`),kStatusCode:Symbol(`status-code`),kWebSocket:Symbol(`websocket`),NOOP:()=>{}}})),fi=x(((e,t)=>{let{EMPTY_BUFFER:n}=di(),r=Buffer[Symbol.species];function i(e,t){if(e.length===0)return n;if(e.length===1)return e[0];let i=Buffer.allocUnsafe(t),a=0;for(let t=0;t<e.length;t++){let n=e[t];i.set(n,a),a+=n.length}return a<t?new r(i.buffer,i.byteOffset,a):i}function a(e,t,n,r,i){for(let a=0;a<i;a++)n[r+a]=e[a]^t[a&3]}function o(e,t){for(let n=0;n<e.length;n++)e[n]^=t[n&3]}function s(e){return e.length===e.buffer.byteLength?e.buffer:e.buffer.slice(e.byteOffset,e.byteOffset+e.length)}function c(e){if(c.readOnly=!0,Buffer.isBuffer(e))return e;let t;return e instanceof ArrayBuffer?t=new r(e):ArrayBuffer.isView(e)?t=new r(e.buffer,e.byteOffset,e.byteLength):(t=Buffer.from(e),c.readOnly=!1),t}if(t.exports={concat:i,mask:a,toArrayBuffer:s,toBuffer:c,unmask:o},!process.env.WS_NO_BUFFER_UTIL)try{let e=T(`bufferutil`);t.exports.mask=function(t,n,r,i,o){o<48?a(t,n,r,i,o):e.mask(t,n,r,i,o)},t.exports.unmask=function(t,n){t.length<32?o(t,n):e.unmask(t,n)}}catch{}})),pi=x(((e,t)=>{let n=Symbol(`kDone`),r=Symbol(`kRun`);t.exports=class{constructor(e){this[n]=()=>{this.pending--,this[r]()},this.concurrency=e||1/0,this.jobs=[],this.pending=0}add(e){this.jobs.push(e),this[r]()}[r](){if(this.pending!==this.concurrency&&this.jobs.length){let e=this.jobs.shift();this.pending++,e(this[n])}}}})),mi=x(((e,t)=>{let n=T(`zlib`),r=fi(),i=pi(),{kStatusCode:a}=di(),o=Buffer[Symbol.species],s=Buffer.from([0,0,255,255]),c=Symbol(`permessage-deflate`),l=Symbol(`total-length`),u=Symbol(`callback`),d=Symbol(`buffers`),f=Symbol(`error`),p;t.exports=class{constructor(e){this._options=e||{},this._threshold=this._options.threshold===void 0?1024:this._options.threshold,this._maxPayload=this._options.maxPayload|0,this._isServer=!!this._options.isServer,this._deflate=null,this._inflate=null,this.params=null,p||=new i(this._options.concurrencyLimit===void 0?10:this._options.concurrencyLimit)}static get extensionName(){return`permessage-deflate`}offer(){let e={};return this._options.serverNoContextTakeover&&(e.server_no_context_takeover=!0),this._options.clientNoContextTakeover&&(e.client_no_context_takeover=!0),this._options.serverMaxWindowBits&&(e.server_max_window_bits=this._options.serverMaxWindowBits),this._options.clientMaxWindowBits?e.client_max_window_bits=this._options.clientMaxWindowBits:this._options.clientMaxWindowBits??(e.client_max_window_bits=!0),e}accept(e){return e=this.normalizeParams(e),this.params=this._isServer?this.acceptAsServer(e):this.acceptAsClient(e),this.params}cleanup(){if(this._inflate&&=(this._inflate.close(),null),this._deflate){let e=this._deflate[u];this._deflate.close(),this._deflate=null,e&&e(Error(`The deflate stream was closed while data was being processed`))}}acceptAsServer(e){let t=this._options,n=e.find(e=>!(t.serverNoContextTakeover===!1&&e.server_no_context_takeover||e.server_max_window_bits&&(t.serverMaxWindowBits===!1||typeof t.serverMaxWindowBits==`number`&&t.serverMaxWindowBits>e.server_max_window_bits)||typeof t.clientMaxWindowBits==`number`&&!e.client_max_window_bits));if(!n)throw Error(`None of the extension offers can be accepted`);return t.serverNoContextTakeover&&(n.server_no_context_takeover=!0),t.clientNoContextTakeover&&(n.client_no_context_takeover=!0),typeof t.serverMaxWindowBits==`number`&&(n.server_max_window_bits=t.serverMaxWindowBits),typeof t.clientMaxWindowBits==`number`?n.client_max_window_bits=t.clientMaxWindowBits:(n.client_max_window_bits===!0||t.clientMaxWindowBits===!1)&&delete n.client_max_window_bits,n}acceptAsClient(e){let t=e[0];if(this._options.clientNoContextTakeover===!1&&t.client_no_context_takeover)throw Error(`Unexpected parameter "client_no_context_takeover"`);if(!t.client_max_window_bits)typeof this._options.clientMaxWindowBits==`number`&&(t.client_max_window_bits=this._options.clientMaxWindowBits);else if(this._options.clientMaxWindowBits===!1||typeof this._options.clientMaxWindowBits==`number`&&t.client_max_window_bits>this._options.clientMaxWindowBits)throw Error(`Unexpected or invalid parameter "client_max_window_bits"`);return t}normalizeParams(e){return e.forEach(e=>{Object.keys(e).forEach(t=>{let n=e[t];if(n.length>1)throw Error(`Parameter "${t}" must have only a single value`);if(n=n[0],t===`client_max_window_bits`){if(n!==!0){let e=+n;if(!Number.isInteger(e)||e<8||e>15)throw TypeError(`Invalid value for parameter "${t}": ${n}`);n=e}else if(!this._isServer)throw TypeError(`Invalid value for parameter "${t}": ${n}`)}else if(t===`server_max_window_bits`){let e=+n;if(!Number.isInteger(e)||e<8||e>15)throw TypeError(`Invalid value for parameter "${t}": ${n}`);n=e}else if(t===`client_no_context_takeover`||t===`server_no_context_takeover`){if(n!==!0)throw TypeError(`Invalid value for parameter "${t}": ${n}`)}else throw Error(`Unknown parameter "${t}"`);e[t]=n})}),e}decompress(e,t,n){p.add(r=>{this._decompress(e,t,(e,t)=>{r(),n(e,t)})})}compress(e,t,n){p.add(r=>{this._compress(e,t,(e,t)=>{r(),n(e,t)})})}_decompress(e,t,i){let a=this._isServer?`client`:`server`;if(!this._inflate){let e=`${a}_max_window_bits`,t=typeof this.params[e]==`number`?this.params[e]:n.Z_DEFAULT_WINDOWBITS;this._inflate=n.createInflateRaw({...this._options.zlibInflateOptions,windowBits:t}),this._inflate[c]=this,this._inflate[l]=0,this._inflate[d]=[],this._inflate.on(`error`,g),this._inflate.on(`data`,h)}this._inflate[u]=i,this._inflate.write(e),t&&this._inflate.write(s),this._inflate.flush(()=>{let e=this._inflate[f];if(e){this._inflate.close(),this._inflate=null,i(e);return}let n=r.concat(this._inflate[d],this._inflate[l]);this._inflate._readableState.endEmitted?(this._inflate.close(),this._inflate=null):(this._inflate[l]=0,this._inflate[d]=[],t&&this.params[`${a}_no_context_takeover`]&&this._inflate.reset()),i(null,n)})}_compress(e,t,i){let a=this._isServer?`server`:`client`;if(!this._deflate){let e=`${a}_max_window_bits`,t=typeof this.params[e]==`number`?this.params[e]:n.Z_DEFAULT_WINDOWBITS;this._deflate=n.createDeflateRaw({...this._options.zlibDeflateOptions,windowBits:t}),this._deflate[l]=0,this._deflate[d]=[],this._deflate.on(`data`,m)}this._deflate[u]=i,this._deflate.write(e),this._deflate.flush(n.Z_SYNC_FLUSH,()=>{if(!this._deflate)return;let e=r.concat(this._deflate[d],this._deflate[l]);t&&(e=new o(e.buffer,e.byteOffset,e.length-4)),this._deflate[u]=null,this._deflate[l]=0,this._deflate[d]=[],t&&this.params[`${a}_no_context_takeover`]&&this._deflate.reset(),i(null,e)})}};function m(e){this[d].push(e),this[l]+=e.length}function h(e){if(this[l]+=e.length,this[c]._maxPayload<1||this[l]<=this[c]._maxPayload){this[d].push(e);return}this[f]=RangeError(`Max payload size exceeded`),this[f].code=`WS_ERR_UNSUPPORTED_MESSAGE_LENGTH`,this[f][a]=1009,this.removeListener(`data`,h),this.reset()}function g(e){if(this[c]._inflate=null,this[f]){this[u](this[f]);return}e[a]=1007,this[u](e)}})),hi=x(((e,t)=>{let{isUtf8:n}=T(`buffer`),{hasBlob:r}=di(),i=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,1,1,1,1,1,0,0,1,1,0,1,1,0,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,1,0,1,0];function a(e){return e>=1e3&&e<=1014&&e!==1004&&e!==1005&&e!==1006||e>=3e3&&e<=4999}function o(e){let t=e.length,n=0;for(;n<t;)if(!(e[n]&128))n++;else if((e[n]&224)==192){if(n+1===t||(e[n+1]&192)!=128||(e[n]&254)==192)return!1;n+=2}else if((e[n]&240)==224){if(n+2>=t||(e[n+1]&192)!=128||(e[n+2]&192)!=128||e[n]===224&&(e[n+1]&224)==128||e[n]===237&&(e[n+1]&224)==160)return!1;n+=3}else if((e[n]&248)==240){if(n+3>=t||(e[n+1]&192)!=128||(e[n+2]&192)!=128||(e[n+3]&192)!=128||e[n]===240&&(e[n+1]&240)==128||e[n]===244&&e[n+1]>143||e[n]>244)return!1;n+=4}else return!1;return!0}function s(e){return r&&typeof e==`object`&&typeof e.arrayBuffer==`function`&&typeof e.type==`string`&&typeof e.stream==`function`&&(e[Symbol.toStringTag]===`Blob`||e[Symbol.toStringTag]===`File`)}if(t.exports={isBlob:s,isValidStatusCode:a,isValidUTF8:o,tokenChars:i},n)t.exports.isValidUTF8=function(e){return e.length<24?o(e):n(e)};else if(!process.env.WS_NO_UTF_8_VALIDATE)try{let e=T(`utf-8-validate`);t.exports.isValidUTF8=function(t){return t.length<32?o(t):e(t)}}catch{}})),gi=x(((e,t)=>{let{Writable:n}=T(`stream`),r=mi(),{BINARY_TYPES:i,EMPTY_BUFFER:a,kStatusCode:o,kWebSocket:s}=di(),{concat:c,toArrayBuffer:l,unmask:u}=fi(),{isValidStatusCode:d,isValidUTF8:f}=hi(),p=Buffer[Symbol.species];t.exports=class extends n{constructor(e={}){super(),this._allowSynchronousEvents=e.allowSynchronousEvents===void 0?!0:e.allowSynchronousEvents,this._binaryType=e.binaryType||i[0],this._extensions=e.extensions||{},this._isServer=!!e.isServer,this._maxBufferedChunks=e.maxBufferedChunks|0,this._maxFragments=e.maxFragments|0,this._maxPayload=e.maxPayload|0,this._skipUTF8Validation=!!e.skipUTF8Validation,this[s]=void 0,this._bufferedBytes=0,this._buffers=[],this._compressed=!1,this._payloadLength=0,this._mask=void 0,this._fragmented=0,this._masked=!1,this._fin=!1,this._opcode=0,this._totalPayloadLength=0,this._messageLength=0,this._fragments=[],this._errored=!1,this._loop=!1,this._state=0}_write(e,t,n){if(this._opcode===8&&this._state==0)return n();if(this._maxBufferedChunks>0&&this._buffers.length>=this._maxBufferedChunks){n(this.createError(RangeError,`Too many buffered chunks`,!1,1008,`WS_ERR_TOO_MANY_BUFFERED_PARTS`));return}this._bufferedBytes+=e.length,this._buffers.push(e),this.startLoop(n)}consume(e){if(this._bufferedBytes-=e,e===this._buffers[0].length)return this._buffers.shift();if(e<this._buffers[0].length){let t=this._buffers[0];return this._buffers[0]=new p(t.buffer,t.byteOffset+e,t.length-e),new p(t.buffer,t.byteOffset,e)}let t=Buffer.allocUnsafe(e);do{let n=this._buffers[0],r=t.length-e;e>=n.length?t.set(this._buffers.shift(),r):(t.set(new Uint8Array(n.buffer,n.byteOffset,e),r),this._buffers[0]=new p(n.buffer,n.byteOffset+e,n.length-e)),e-=n.length}while(e>0);return t}startLoop(e){this._loop=!0;do switch(this._state){case 0:this.getInfo(e);break;case 1:this.getPayloadLength16(e);break;case 2:this.getPayloadLength64(e);break;case 3:this.getMask();break;case 4:this.getData(e);break;case 5:case 6:this._loop=!1;return}while(this._loop);this._errored||e()}getInfo(e){if(this._bufferedBytes<2){this._loop=!1;return}let t=this.consume(2);if(t[0]&48){e(this.createError(RangeError,`RSV2 and RSV3 must be clear`,!0,1002,`WS_ERR_UNEXPECTED_RSV_2_3`));return}let n=(t[0]&64)==64;if(n&&!this._extensions[r.extensionName]){e(this.createError(RangeError,`RSV1 must be clear`,!0,1002,`WS_ERR_UNEXPECTED_RSV_1`));return}if(this._fin=(t[0]&128)==128,this._opcode=t[0]&15,this._payloadLength=t[1]&127,this._opcode===0){if(n){e(this.createError(RangeError,`RSV1 must be clear`,!0,1002,`WS_ERR_UNEXPECTED_RSV_1`));return}if(!this._fragmented){e(this.createError(RangeError,`invalid opcode 0`,!0,1002,`WS_ERR_INVALID_OPCODE`));return}this._opcode=this._fragmented}else if(this._opcode===1||this._opcode===2){if(this._fragmented){e(this.createError(RangeError,`invalid opcode ${this._opcode}`,!0,1002,`WS_ERR_INVALID_OPCODE`));return}this._compressed=n}else if(this._opcode>7&&this._opcode<11){if(!this._fin){e(this.createError(RangeError,`FIN must be set`,!0,1002,`WS_ERR_EXPECTED_FIN`));return}if(n){e(this.createError(RangeError,`RSV1 must be clear`,!0,1002,`WS_ERR_UNEXPECTED_RSV_1`));return}if(this._payloadLength>125||this._opcode===8&&this._payloadLength===1){e(this.createError(RangeError,`invalid payload length ${this._payloadLength}`,!0,1002,`WS_ERR_INVALID_CONTROL_PAYLOAD_LENGTH`));return}}else{e(this.createError(RangeError,`invalid opcode ${this._opcode}`,!0,1002,`WS_ERR_INVALID_OPCODE`));return}if(!this._fin&&!this._fragmented&&(this._fragmented=this._opcode),this._masked=(t[1]&128)==128,this._isServer){if(!this._masked){e(this.createError(RangeError,`MASK must be set`,!0,1002,`WS_ERR_EXPECTED_MASK`));return}}else if(this._masked){e(this.createError(RangeError,`MASK must be clear`,!0,1002,`WS_ERR_UNEXPECTED_MASK`));return}this._payloadLength===126?this._state=1:this._payloadLength===127?this._state=2:this.haveLength(e)}getPayloadLength16(e){if(this._bufferedBytes<2){this._loop=!1;return}this._payloadLength=this.consume(2).readUInt16BE(0),this.haveLength(e)}getPayloadLength64(e){if(this._bufferedBytes<8){this._loop=!1;return}let t=this.consume(8),n=t.readUInt32BE(0);if(n>2**21-1){e(this.createError(RangeError,`Unsupported WebSocket frame: payload length > 2^53 - 1`,!1,1009,`WS_ERR_UNSUPPORTED_DATA_PAYLOAD_LENGTH`));return}this._payloadLength=n*2**32+t.readUInt32BE(4),this.haveLength(e)}haveLength(e){if(this._payloadLength&&this._opcode<8&&(this._totalPayloadLength+=this._payloadLength,this._totalPayloadLength>this._maxPayload&&this._maxPayload>0)){e(this.createError(RangeError,`Max payload size exceeded`,!1,1009,`WS_ERR_UNSUPPORTED_MESSAGE_LENGTH`));return}this._masked?this._state=3:this._state=4}getMask(){if(this._bufferedBytes<4){this._loop=!1;return}this._mask=this.consume(4),this._state=4}getData(e){let t=a;if(this._payloadLength){if(this._bufferedBytes<this._payloadLength){this._loop=!1;return}t=this.consume(this._payloadLength),this._masked&&(this._mask[0]|this._mask[1]|this._mask[2]|this._mask[3])!==0&&u(t,this._mask)}if(this._opcode>7){this.controlMessage(t,e);return}if(this._compressed){this._state=5,this.decompress(t,e);return}if(t.length){if(this._maxFragments>0&&this._fragments.length>=this._maxFragments){e(this.createError(RangeError,`Too many message fragments`,!1,1008,`WS_ERR_TOO_MANY_BUFFERED_PARTS`));return}this._messageLength=this._totalPayloadLength,this._fragments.push(t)}this.dataMessage(e)}decompress(e,t){this._extensions[r.extensionName].decompress(e,this._fin,(e,n)=>{if(e)return t(e);if(n.length){if(this._messageLength+=n.length,this._messageLength>this._maxPayload&&this._maxPayload>0){t(this.createError(RangeError,`Max payload size exceeded`,!1,1009,`WS_ERR_UNSUPPORTED_MESSAGE_LENGTH`));return}if(this._maxFragments>0&&this._fragments.length>=this._maxFragments){t(this.createError(RangeError,`Too many message fragments`,!1,1008,`WS_ERR_TOO_MANY_BUFFERED_PARTS`));return}this._fragments.push(n)}this.dataMessage(t),this._state===0&&this.startLoop(t)})}dataMessage(e){if(!this._fin){this._state=0;return}let t=this._messageLength,n=this._fragments;if(this._totalPayloadLength=0,this._messageLength=0,this._fragmented=0,this._fragments=[],this._opcode===2){let r;r=this._binaryType===`nodebuffer`?c(n,t):this._binaryType===`arraybuffer`?l(c(n,t)):this._binaryType===`blob`?new Blob(n):n,this._allowSynchronousEvents?(this.emit(`message`,r,!0),this._state=0):(this._state=6,setImmediate(()=>{this.emit(`message`,r,!0),this._state=0,this.startLoop(e)}))}else{let r=c(n,t);if(!this._skipUTF8Validation&&!f(r)){e(this.createError(Error,`invalid UTF-8 sequence`,!0,1007,`WS_ERR_INVALID_UTF8`));return}this._state===5||this._allowSynchronousEvents?(this.emit(`message`,r,!1),this._state=0):(this._state=6,setImmediate(()=>{this.emit(`message`,r,!1),this._state=0,this.startLoop(e)}))}}controlMessage(e,t){if(this._opcode===8){if(e.length===0)this._loop=!1,this.emit(`conclude`,1005,a),this.end();else{let n=e.readUInt16BE(0);if(!d(n)){t(this.createError(RangeError,`invalid status code ${n}`,!0,1002,`WS_ERR_INVALID_CLOSE_CODE`));return}let r=new p(e.buffer,e.byteOffset+2,e.length-2);if(!this._skipUTF8Validation&&!f(r)){t(this.createError(Error,`invalid UTF-8 sequence`,!0,1007,`WS_ERR_INVALID_UTF8`));return}this._loop=!1,this.emit(`conclude`,n,r),this.end()}this._state=0;return}this._allowSynchronousEvents?(this.emit(this._opcode===9?`ping`:`pong`,e),this._state=0):(this._state=6,setImmediate(()=>{this.emit(this._opcode===9?`ping`:`pong`,e),this._state=0,this.startLoop(t)}))}createError(e,t,n,r,i){this._loop=!1,this._errored=!0;let a=new e(n?`Invalid WebSocket frame: ${t}`:t);return Error.captureStackTrace(a,this.createError),a.code=i,a[o]=r,a}}})),_i=x(((e,t)=>{let{Duplex:n}=T(`stream`),{randomFillSync:r}=T(`crypto`),{types:{isUint8Array:i}}=T(`util`),a=mi(),{EMPTY_BUFFER:o,kWebSocket:s,NOOP:c}=di(),{isBlob:l,isValidStatusCode:u}=hi(),{mask:d,toBuffer:f}=fi(),p=Symbol(`kByteLength`),m=Buffer.alloc(4),h=8*1024,g,_=h;t.exports=class e{constructor(e,t,n){this._extensions=t||{},n&&(this._generateMask=n,this._maskBuffer=Buffer.alloc(4)),this._socket=e,this._firstFragment=!0,this._compress=!1,this._bufferedBytes=0,this._queue=[],this._state=0,this.onerror=c,this[s]=void 0}static frame(e,t){let n,i=!1,a=2,o=!1;t.mask&&(n=t.maskBuffer||m,t.generateMask?t.generateMask(n):(_===h&&(g===void 0&&(g=Buffer.alloc(h)),r(g,0,h),_=0),n[0]=g[_++],n[1]=g[_++],n[2]=g[_++],n[3]=g[_++]),o=(n[0]|n[1]|n[2]|n[3])===0,a=6);let s;typeof e==`string`?(!t.mask||o)&&t[p]!==void 0?s=t[p]:(e=Buffer.from(e),s=e.length):(s=e.length,i=t.mask&&t.readOnly&&!o);let c=s;s>=65536?(a+=8,c=127):s>125&&(a+=2,c=126);let l=Buffer.allocUnsafe(i?s+a:a);return l[0]=t.fin?t.opcode|128:t.opcode,t.rsv1&&(l[0]|=64),l[1]=c,c===126?l.writeUInt16BE(s,2):c===127&&(l[2]=l[3]=0,l.writeUIntBE(s,4,6)),!t.mask||(l[1]|=128,l[a-4]=n[0],l[a-3]=n[1],l[a-2]=n[2],l[a-1]=n[3],o)?[l,e]:i?(d(e,n,l,a,s),[l]):(d(e,n,e,0,s),[l,e])}close(t,n,r,a){let s;if(t===void 0)s=o;else if(typeof t!=`number`||!u(t))throw TypeError(`First argument must be a valid error code number`);else if(n===void 0||!n.length)s=Buffer.allocUnsafe(2),s.writeUInt16BE(t,0);else{let e=Buffer.byteLength(n);if(e>123)throw RangeError(`The message must not be greater than 123 bytes`);if(s=Buffer.allocUnsafe(2+e),s.writeUInt16BE(t,0),typeof n==`string`)s.write(n,2);else if(i(n))s.set(n,2);else throw TypeError(`Second argument must be a string or a Uint8Array`)}let c={[p]:s.length,fin:!0,generateMask:this._generateMask,mask:r,maskBuffer:this._maskBuffer,opcode:8,readOnly:!1,rsv1:!1};this._state===0?this.sendFrame(e.frame(s,c),a):this.enqueue([this.dispatch,s,!1,c,a])}ping(t,n,r){let i,a;if(typeof t==`string`?(i=Buffer.byteLength(t),a=!1):l(t)?(i=t.size,a=!1):(t=f(t),i=t.length,a=f.readOnly),i>125)throw RangeError(`The data size must not be greater than 125 bytes`);let o={[p]:i,fin:!0,generateMask:this._generateMask,mask:n,maskBuffer:this._maskBuffer,opcode:9,readOnly:a,rsv1:!1};l(t)?this._state===0?this.getBlobData(t,!1,o,r):this.enqueue([this.getBlobData,t,!1,o,r]):this._state===0?this.sendFrame(e.frame(t,o),r):this.enqueue([this.dispatch,t,!1,o,r])}pong(t,n,r){let i,a;if(typeof t==`string`?(i=Buffer.byteLength(t),a=!1):l(t)?(i=t.size,a=!1):(t=f(t),i=t.length,a=f.readOnly),i>125)throw RangeError(`The data size must not be greater than 125 bytes`);let o={[p]:i,fin:!0,generateMask:this._generateMask,mask:n,maskBuffer:this._maskBuffer,opcode:10,readOnly:a,rsv1:!1};l(t)?this._state===0?this.getBlobData(t,!1,o,r):this.enqueue([this.getBlobData,t,!1,o,r]):this._state===0?this.sendFrame(e.frame(t,o),r):this.enqueue([this.dispatch,t,!1,o,r])}send(e,t,n){let r=this._extensions[a.extensionName],i=t.binary?2:1,o=t.compress,s,c;typeof e==`string`?(s=Buffer.byteLength(e),c=!1):l(e)?(s=e.size,c=!1):(e=f(e),s=e.length,c=f.readOnly),this._firstFragment?(this._firstFragment=!1,o&&r&&r.params[r._isServer?`server_no_context_takeover`:`client_no_context_takeover`]&&(o=s>=r._threshold),this._compress=o):(o=!1,i=0),t.fin&&(this._firstFragment=!0);let u={[p]:s,fin:t.fin,generateMask:this._generateMask,mask:t.mask,maskBuffer:this._maskBuffer,opcode:i,readOnly:c,rsv1:o};l(e)?this._state===0?this.getBlobData(e,this._compress,u,n):this.enqueue([this.getBlobData,e,this._compress,u,n]):this._state===0?this.dispatch(e,this._compress,u,n):this.enqueue([this.dispatch,e,this._compress,u,n])}getBlobData(t,n,r,i){this._bufferedBytes+=r[p],this._state=2,t.arrayBuffer().then(t=>{if(this._socket.destroyed){let e=Error(`The socket was closed while the blob was being read`);process.nextTick(v,this,e,i);return}this._bufferedBytes-=r[p];let a=f(t);n?this.dispatch(a,n,r,i):(this._state=0,this.sendFrame(e.frame(a,r),i),this.dequeue())}).catch(e=>{process.nextTick(y,this,e,i)})}dispatch(t,n,r,i){if(!n){this.sendFrame(e.frame(t,r),i);return}let o=this._extensions[a.extensionName];this._bufferedBytes+=r[p],this._state=1,o.compress(t,r.fin,(t,n)=>{if(this._socket.destroyed){let e=Error(`The socket was closed while data was being compressed`);v(this,e,i);return}this._bufferedBytes-=r[p],this._state=0,r.readOnly=!1,this.sendFrame(e.frame(n,r),i),this.dequeue()})}dequeue(){for(;this._state===0&&this._queue.length;){let e=this._queue.shift();this._bufferedBytes-=e[3][p],Reflect.apply(e[0],this,e.slice(1))}}enqueue(e){this._bufferedBytes+=e[3][p],this._queue.push(e)}sendFrame(e,t){e.length===2?(this._socket.cork(),this._socket.write(e[0]),this._socket.write(e[1],t),this._socket.uncork()):this._socket.write(e[0],t)}};function v(e,t,n){typeof n==`function`&&n(t);for(let n=0;n<e._queue.length;n++){let r=e._queue[n],i=r[r.length-1];typeof i==`function`&&i(t)}}function y(e,t,n){v(e,t,n),e.onerror(t)}})),vi=x(((e,t)=>{let{kForOnEventAttribute:n,kListener:r}=di(),i=Symbol(`kCode`),a=Symbol(`kData`),o=Symbol(`kError`),s=Symbol(`kMessage`),c=Symbol(`kReason`),l=Symbol(`kTarget`),u=Symbol(`kType`),d=Symbol(`kWasClean`);var f=class{constructor(e){this[l]=null,this[u]=e}get target(){return this[l]}get type(){return this[u]}};Object.defineProperty(f.prototype,"target",{enumerable:!0}),Object.defineProperty(f.prototype,"type",{enumerable:!0});var p=class extends f{constructor(e,t={}){super(e),this[i]=t.code===void 0?0:t.code,this[c]=t.reason===void 0?``:t.reason,this[d]=t.wasClean===void 0?!1:t.wasClean}get code(){return this[i]}get reason(){return this[c]}get wasClean(){return this[d]}};Object.defineProperty(p.prototype,"code",{enumerable:!0}),Object.defineProperty(p.prototype,"reason",{enumerable:!0}),Object.defineProperty(p.prototype,"wasClean",{enumerable:!0});var m=class extends f{constructor(e,t={}){super(e),this[o]=t.error===void 0?null:t.error,this[s]=t.message===void 0?``:t.message}get error(){return this[o]}get message(){return this[s]}};Object.defineProperty(m.prototype,"error",{enumerable:!0}),Object.defineProperty(m.prototype,"message",{enumerable:!0});var h=class extends f{constructor(e,t={}){super(e),this[a]=t.data===void 0?null:t.data}get data(){return this[a]}};Object.defineProperty(h.prototype,"data",{enumerable:!0}),t.exports={CloseEvent:p,ErrorEvent:m,Event:f,EventTarget:{addEventListener(e,t,i={}){for(let a of this.listeners(e))if(!i[n]&&a[r]===t&&!a[n])return;let a;if(e===`message`)a=function(e,n){let r=new h(`message`,{data:n?e:e.toString()});r[l]=this,g(t,this,r)};else if(e===`close`)a=function(e,n){let r=new p(`close`,{code:e,reason:n.toString(),wasClean:this._closeFrameReceived&&this._closeFrameSent});r[l]=this,g(t,this,r)};else if(e===`error`)a=function(e){let n=new m(`error`,{error:e,message:e.message});n[l]=this,g(t,this,n)};else if(e===`open`)a=function(){let e=new f(`open`);e[l]=this,g(t,this,e)};else return;a[n]=!!i[n],a[r]=t,i.once?this.once(e,a):this.on(e,a)},removeEventListener(e,t){for(let i of this.listeners(e))if(i[r]===t&&!i[n]){this.removeListener(e,i);break}}},MessageEvent:h};function g(e,t,n){typeof e==`object`&&e.handleEvent?e.handleEvent.call(e,n):e.call(t,n)}})),yi=x(((e,t)=>{let{tokenChars:n}=hi();function r(e,t,n){e[t]===void 0?e[t]=[n]:e[t].push(n)}function i(e){let t=Object.create(null),i=Object.create(null),a=!1,o=!1,s=!1,c,l,u=-1,d=-1,f=-1,p=0;for(;p<e.length;p++)if(d=e.charCodeAt(p),c===void 0)if(f===-1&&n[d]===1)u===-1&&(u=p);else if(p!==0&&(d===32||d===9))f===-1&&u!==-1&&(f=p);else if(d===59||d===44){if(u===-1)throw SyntaxError(`Unexpected character at index ${p}`);f===-1&&(f=p);let n=e.slice(u,f);d===44?(r(t,n,i),i=Object.create(null)):c=n,u=f=-1}else throw SyntaxError(`Unexpected character at index ${p}`);else if(l===void 0)if(f===-1&&n[d]===1)u===-1&&(u=p);else if(d===32||d===9)f===-1&&u!==-1&&(f=p);else if(d===59||d===44){if(u===-1)throw SyntaxError(`Unexpected character at index ${p}`);f===-1&&(f=p),r(i,e.slice(u,f),!0),d===44&&(r(t,c,i),i=Object.create(null),c=void 0),u=f=-1}else if(d===61&&u!==-1&&f===-1)l=e.slice(u,p),u=f=-1;else throw SyntaxError(`Unexpected character at index ${p}`);else if(o){if(n[d]!==1)throw SyntaxError(`Unexpected character at index ${p}`);u===-1?u=p:a||=!0,o=!1}else if(s)if(n[d]===1)u===-1&&(u=p);else if(d===34&&u!==-1)s=!1,f=p;else if(d===92)o=!0;else throw SyntaxError(`Unexpected character at index ${p}`);else if(d===34&&e.charCodeAt(p-1)===61)s=!0;else if(f===-1&&n[d]===1)u===-1&&(u=p);else if(u!==-1&&(d===32||d===9))f===-1&&(f=p);else if(d===59||d===44){if(u===-1)throw SyntaxError(`Unexpected character at index ${p}`);f===-1&&(f=p);let n=e.slice(u,f);a&&=(n=n.replace(/\\/g,``),!1),r(i,l,n),d===44&&(r(t,c,i),i=Object.create(null),c=void 0),l=void 0,u=f=-1}else throw SyntaxError(`Unexpected character at index ${p}`);if(u===-1||s||d===32||d===9)throw SyntaxError(`Unexpected end of input`);f===-1&&(f=p);let m=e.slice(u,f);return c===void 0?r(t,m,i):(l===void 0?r(i,m,!0):a?r(i,l,m.replace(/\\/g,``)):r(i,l,m),r(t,c,i)),t}function a(e){return Object.keys(e).map(t=>{let n=e[t];return Array.isArray(n)||(n=[n]),n.map(e=>[t].concat(Object.keys(e).map(t=>{let n=e[t];return Array.isArray(n)||(n=[n]),n.map(e=>e===!0?t:`${t}=${e}`).join(`; `)})).join(`; `)).join(`, `)}).join(`, `)}t.exports={format:a,parse:i}})),bi=x(((e,t)=>{let n=T(`events`),r=T(`https`),i=T(`http`),a=T(`net`),o=T(`tls`),{randomBytes:s,createHash:c}=T(`crypto`),{Duplex:l,Readable:u}=T(`stream`),{URL:d}=T(`url`),f=mi(),p=gi(),m=_i(),{isBlob:h}=hi(),{BINARY_TYPES:g,CLOSE_TIMEOUT:_,EMPTY_BUFFER:v,GUID:y,kForOnEventAttribute:b,kListener:x,kStatusCode:S,kWebSocket:C,NOOP:w}=di(),{EventTarget:{addEventListener:E,removeEventListener:D}}=vi(),{format:O,parse:k}=yi(),{toBuffer:ee}=fi(),A=Symbol(`kAborted`),te=[8,13],j=[`CONNECTING`,`OPEN`,`CLOSING`,`CLOSED`],ne=/^[!#$%&'*+\-.0-9A-Z^_`|a-z~]+$/;var M=class e extends n{constructor(t,n,r){super(),this._binaryType=g[0],this._closeCode=1006,this._closeFrameReceived=!1,this._closeFrameSent=!1,this._closeMessage=v,this._closeTimer=null,this._errorEmitted=!1,this._extensions={},this._paused=!1,this._protocol=``,this._readyState=e.CONNECTING,this._receiver=null,this._sender=null,this._socket=null,t===null?(this._autoPong=r.autoPong,this._closeTimeout=r.closeTimeout,this._isServer=!0):(this._bufferedAmount=0,this._isServer=!1,this._redirects=0,n===void 0?n=[]:Array.isArray(n)||(typeof n==`object`&&n?(r=n,n=[]):n=[n]),re(this,t,n,r))}get binaryType(){return this._binaryType}set binaryType(e){g.includes(e)&&(this._binaryType=e,this._receiver&&(this._receiver._binaryType=e))}get bufferedAmount(){return this._socket?this._socket._writableState.length+this._sender._bufferedBytes:this._bufferedAmount}get extensions(){return Object.keys(this._extensions).join()}get isPaused(){return this._paused}get onclose(){return null}get onerror(){return null}get onopen(){return null}get onmessage(){return null}get protocol(){return this._protocol}get readyState(){return this._readyState}get url(){return this._url}setSocket(t,n,r){let i=new p({allowSynchronousEvents:r.allowSynchronousEvents,binaryType:this.binaryType,extensions:this._extensions,isServer:this._isServer,maxBufferedChunks:r.maxBufferedChunks,maxFragments:r.maxFragments,maxPayload:r.maxPayload,skipUTF8Validation:r.skipUTF8Validation}),a=new m(t,this._extensions,r.generateMask);this._receiver=i,this._sender=a,this._socket=t,i[C]=this,a[C]=this,t[C]=this,i.on(`conclude`,le),i.on(`drain`,ue),i.on(`error`,N),i.on(`message`,fe),i.on(`ping`,pe),i.on(`pong`,me),a.onerror=ge,t.setTimeout&&t.setTimeout(0),t.setNoDelay&&t.setNoDelay(),n.length>0&&t.unshift(n),t.on(`close`,ve),t.on(`data`,P),t.on(`end`,ye),t.on(`error`,be),this._readyState=e.OPEN,this.emit(`open`)}emitClose(){if(!this._socket){this._readyState=e.CLOSED,this.emit(`close`,this._closeCode,this._closeMessage);return}this._extensions[f.extensionName]&&this._extensions[f.extensionName].cleanup(),this._receiver.removeAllListeners(),this._readyState=e.CLOSED,this.emit(`close`,this._closeCode,this._closeMessage)}close(t,n){if(this.readyState!==e.CLOSED){if(this.readyState===e.CONNECTING){se(this,this._req,`WebSocket was closed before the connection was established`);return}if(this.readyState===e.CLOSING){this._closeFrameSent&&(this._closeFrameReceived||this._receiver._writableState.errorEmitted)&&this._socket.end();return}this._readyState=e.CLOSING,this._sender.close(t,n,!this._isServer,e=>{e||(this._closeFrameSent=!0,(this._closeFrameReceived||this._receiver._writableState.errorEmitted)&&this._socket.end())}),_e(this)}}pause(){this.readyState===e.CONNECTING||this.readyState===e.CLOSED||(this._paused=!0,this._socket.pause())}ping(t,n,r){if(this.readyState===e.CONNECTING)throw Error(`WebSocket is not open: readyState 0 (CONNECTING)`);if(typeof t==`function`?(r=t,t=n=void 0):typeof n==`function`&&(r=n,n=void 0),typeof t==`number`&&(t=t.toString()),this.readyState!==e.OPEN){ce(this,t,r);return}n===void 0&&(n=!this._isServer),this._sender.ping(t||v,n,r)}pong(t,n,r){if(this.readyState===e.CONNECTING)throw Error(`WebSocket is not open: readyState 0 (CONNECTING)`);if(typeof t==`function`?(r=t,t=n=void 0):typeof n==`function`&&(r=n,n=void 0),typeof t==`number`&&(t=t.toString()),this.readyState!==e.OPEN){ce(this,t,r);return}n===void 0&&(n=!this._isServer),this._sender.pong(t||v,n,r)}resume(){this.readyState===e.CONNECTING||this.readyState===e.CLOSED||(this._paused=!1,this._receiver._writableState.needDrain||this._socket.resume())}send(t,n,r){if(this.readyState===e.CONNECTING)throw Error(`WebSocket is not open: readyState 0 (CONNECTING)`);if(typeof n==`function`&&(r=n,n={}),typeof t==`number`&&(t=t.toString()),this.readyState!==e.OPEN){ce(this,t,r);return}let i={binary:typeof t!=`string`,mask:!this._isServer,compress:!0,fin:!0,...n};this._extensions[f.extensionName]||(i.compress=!1),this._sender.send(t||v,i,r)}terminate(){if(this.readyState!==e.CLOSED){if(this.readyState===e.CONNECTING){se(this,this._req,`WebSocket was closed before the connection was established`);return}this._socket&&(this._readyState=e.CLOSING,this._socket.destroy())}}};Object.defineProperty(M,"CONNECTING",{enumerable:!0,value:j.indexOf(`CONNECTING`)}),Object.defineProperty(M.prototype,"CONNECTING",{enumerable:!0,value:j.indexOf(`CONNECTING`)}),Object.defineProperty(M,"OPEN",{enumerable:!0,value:j.indexOf(`OPEN`)}),Object.defineProperty(M.prototype,"OPEN",{enumerable:!0,value:j.indexOf(`OPEN`)}),Object.defineProperty(M,"CLOSING",{enumerable:!0,value:j.indexOf(`CLOSING`)}),Object.defineProperty(M.prototype,"CLOSING",{enumerable:!0,value:j.indexOf(`CLOSING`)}),Object.defineProperty(M,"CLOSED",{enumerable:!0,value:j.indexOf(`CLOSED`)}),Object.defineProperty(M.prototype,"CLOSED",{enumerable:!0,value:j.indexOf(`CLOSED`)}),[`binaryType`,`bufferedAmount`,`extensions`,`isPaused`,`protocol`,`readyState`,`url`].forEach(e=>{Object.defineProperty(M.prototype,e,{enumerable:!0})}),[`open`,`error`,`close`,`message`].forEach(e=>{Object.defineProperty(M.prototype,`on${e}`,{enumerable:!0,get(){for(let t of this.listeners(e))if(t[b])return t[x];return null},set(t){for(let t of this.listeners(e))if(t[b]){this.removeListener(e,t);break}typeof t==`function`&&this.addEventListener(e,t,{[b]:!0})}})}),M.prototype.addEventListener=E,M.prototype.removeEventListener=D,t.exports=M;function re(e,t,n,a){let o={allowSynchronousEvents:!0,autoPong:!0,closeTimeout:_,protocolVersion:te[1],maxBufferedChunks:1024*1024,maxFragments:128*1024,maxPayload:100*1024*1024,skipUTF8Validation:!1,perMessageDeflate:!0,followRedirects:!1,maxRedirects:10,...a,socketPath:void 0,hostname:void 0,protocol:void 0,timeout:void 0,method:`GET`,host:void 0,path:void 0,port:void 0};if(e._autoPong=o.autoPong,e._closeTimeout=o.closeTimeout,!te.includes(o.protocolVersion))throw RangeError(`Unsupported protocol version: ${o.protocolVersion} (supported versions: ${te.join(`, `)})`);let l;if(t instanceof d)l=t;else try{l=new d(t)}catch{throw SyntaxError(`Invalid URL: ${t}`)}l.protocol===`http:`?l.protocol=`ws:`:l.protocol===`https:`&&(l.protocol=`wss:`),e._url=l.href;let u=l.protocol===`wss:`,p=l.protocol===`ws+unix:`,m;if(l.protocol!==`ws:`&&!u&&!p?m=`The URL's protocol must be one of "ws:", "wss:", "http:", "https:", or "ws+unix:"`:p&&!l.pathname?m=`The URL's pathname is empty`:l.hash&&(m=`The URL contains a fragment identifier`),m){let t=SyntaxError(m);if(e._redirects===0)throw t;ie(e,t);return}let h=u?443:80,g=s(16).toString(`base64`),v=u?r.request:i.request,b=new Set,x;if(o.createConnection=o.createConnection||(u?oe:ae),o.defaultPort=o.defaultPort||h,o.port=l.port||h,o.host=l.hostname.startsWith(`[`)?l.hostname.slice(1,-1):l.hostname,o.headers={...o.headers,"Sec-WebSocket-Version":o.protocolVersion,"Sec-WebSocket-Key":g,Connection:`Upgrade`,Upgrade:`websocket`},o.path=l.pathname+l.search,o.timeout=o.handshakeTimeout,o.perMessageDeflate&&(x=new f({...o.perMessageDeflate,isServer:!1,maxPayload:o.maxPayload}),o.headers[`Sec-WebSocket-Extensions`]=O({[f.extensionName]:x.offer()})),n.length){for(let e of n){if(typeof e!=`string`||!ne.test(e)||b.has(e))throw SyntaxError(`An invalid or duplicated subprotocol was specified`);b.add(e)}o.headers[`Sec-WebSocket-Protocol`]=n.join(`,`)}if(o.origin&&(o.protocolVersion<13?o.headers[`Sec-WebSocket-Origin`]=o.origin:o.headers.Origin=o.origin),(l.username||l.password)&&(o.auth=`${l.username}:${l.password}`),p){let e=o.path.split(`:`);o.socketPath=e[0],o.path=e[1]}let S;if(o.followRedirects){if(e._redirects===0){e._originalIpc=p,e._originalSecure=u,e._originalHostOrSocketPath=p?o.socketPath:l.host;let t=a&&a.headers;if(a={...a,headers:{}},t)for(let[e,n]of Object.entries(t))a.headers[e.toLowerCase()]=n}else if(e.listenerCount(`redirect`)===0){let t=p?e._originalIpc?o.socketPath===e._originalHostOrSocketPath:!1:e._originalIpc?!1:l.host===e._originalHostOrSocketPath;(!t||e._originalSecure&&!u)&&(delete o.headers.authorization,delete o.headers.cookie,t||delete o.headers.host,o.auth=void 0)}o.auth&&!a.headers.authorization&&(a.headers.authorization=`Basic `+Buffer.from(o.auth).toString(`base64`)),S=e._req=v(o),e._redirects&&e.emit(`redirect`,e.url,S)}else S=e._req=v(o);o.timeout&&S.on(`timeout`,()=>{se(e,S,`Opening handshake has timed out`)}),S.on(`error`,t=>{S===null||S[A]||(S=e._req=null,ie(e,t))}),S.on(`response`,r=>{let i=r.headers.location,s=r.statusCode;if(i&&o.followRedirects&&s>=300&&s<400){if(++e._redirects>o.maxRedirects){se(e,S,`Maximum redirects exceeded`);return}S.abort();let r;try{r=new d(i,t)}catch{ie(e,SyntaxError(`Invalid URL: ${i}`));return}re(e,r,n,a)}else e.emit(`unexpected-response`,S,r)||se(e,S,`Unexpected server response: ${r.statusCode}`)}),S.on(`upgrade`,(t,n,r)=>{if(e.emit(`upgrade`,t),e.readyState!==M.CONNECTING)return;S=e._req=null;let i=t.headers.upgrade;if(i===void 0||i.toLowerCase()!==`websocket`){se(e,n,`Invalid Upgrade header`);return}let a=c(`sha1`).update(g+y).digest(`base64`);if(t.headers[`sec-websocket-accept`]!==a){se(e,n,`Invalid Sec-WebSocket-Accept header`);return}let s=t.headers[`sec-websocket-protocol`],l;if(s===void 0?b.size&&(l=`Server sent no subprotocol`):b.size?b.has(s)||(l=`Server sent an invalid subprotocol`):l=`Server sent a subprotocol but none was requested`,l){se(e,n,l);return}s&&(e._protocol=s);let u=t.headers[`sec-websocket-extensions`];if(u!==void 0){if(!x){se(e,n,`Server sent a Sec-WebSocket-Extensions header but no extension was requested`);return}let t;try{t=k(u)}catch{se(e,n,`Invalid Sec-WebSocket-Extensions header`);return}let r=Object.keys(t);if(r.length!==1||r[0]!==f.extensionName){se(e,n,`Server indicated an extension that was not requested`);return}try{x.accept(t[f.extensionName])}catch{se(e,n,`Invalid Sec-WebSocket-Extensions header`);return}e._extensions[f.extensionName]=x}e.setSocket(n,r,{allowSynchronousEvents:o.allowSynchronousEvents,generateMask:o.generateMask,maxBufferedChunks:o.maxBufferedChunks,maxFragments:o.maxFragments,maxPayload:o.maxPayload,skipUTF8Validation:o.skipUTF8Validation})}),o.finishRequest?o.finishRequest(S,e):S.end()}function ie(e,t){e._readyState=M.CLOSING,e._errorEmitted=!0,e.emit(`error`,t),e.emitClose()}function ae(e){return e.path=e.socketPath,a.connect(e)}function oe(e){return e.path=void 0,!e.servername&&e.servername!==``&&(e.servername=a.isIP(e.host)?``:e.host),o.connect(e)}function se(e,t,n){e._readyState=M.CLOSING;let r=Error(n);Error.captureStackTrace(r,se),t.setHeader?(t[A]=!0,t.abort(),t.socket&&!t.socket.destroyed&&t.socket.destroy(),process.nextTick(ie,e,r)):(t.destroy(r),t.once(`error`,e.emit.bind(e,`error`)),t.once(`close`,e.emitClose.bind(e)))}function ce(e,t,n){if(t){let n=h(t)?t.size:ee(t).length;e._socket?e._sender._bufferedBytes+=n:e._bufferedAmount+=n}if(n){let t=Error(`WebSocket is not open: readyState ${e.readyState} (${j[e.readyState]})`);process.nextTick(n,t)}}function le(e,t){let n=this[C];n._closeFrameReceived=!0,n._closeMessage=t,n._closeCode=e,n._socket[C]!==void 0&&(n._socket.removeListener(`data`,P),process.nextTick(he,n._socket),e===1005?n.close():n.close(e,t))}function ue(){let e=this[C];e.isPaused||e._socket.resume()}function N(e){let t=this[C];t._socket[C]!==void 0&&(t._socket.removeListener(`data`,P),process.nextTick(he,t._socket),t.close(e[S])),t._errorEmitted||(t._errorEmitted=!0,t.emit(`error`,e))}function de(){this[C].emitClose()}function fe(e,t){this[C].emit(`message`,e,t)}function pe(e){let t=this[C];t._autoPong&&t.pong(e,!this._isServer,w),t.emit(`ping`,e)}function me(e){this[C].emit(`pong`,e)}function he(e){e.resume()}function ge(e){let t=this[C];t.readyState!==M.CLOSED&&(t.readyState===M.OPEN&&(t._readyState=M.CLOSING,_e(t)),this._socket.end(),t._errorEmitted||(t._errorEmitted=!0,t.emit(`error`,e)))}function _e(e){e._closeTimer=setTimeout(e._socket.destroy.bind(e._socket),e._closeTimeout)}function ve(){let e=this[C];if(this.removeListener(`close`,ve),this.removeListener(`data`,P),this.removeListener(`end`,ye),e._readyState=M.CLOSING,!this._readableState.endEmitted&&!e._closeFrameReceived&&!e._receiver._writableState.errorEmitted&&this._readableState.length!==0){let t=this.read(this._readableState.length);e._receiver.write(t)}e._receiver.end(),this[C]=void 0,clearTimeout(e._closeTimer),e._receiver._writableState.finished||e._receiver._writableState.errorEmitted?e.emitClose():(e._receiver.on(`error`,de),e._receiver.on(`finish`,de))}function P(e){this[C]._receiver.write(e)||this.pause()}function ye(){let e=this[C];e._readyState=M.CLOSING,e._receiver.end(),this.end()}function be(){let e=this[C];this.removeListener(`error`,be),this.on(`error`,w),e&&(e._readyState=M.CLOSING,this.destroy())}})),xi=x(((e,t)=>{bi();let{Duplex:n}=T(`stream`);function r(e){e.emit(`close`)}function i(){!this.destroyed&&this._writableState.finished&&this.destroy()}function a(e){this.removeListener(`error`,a),this.destroy(),this.listenerCount(`error`)===0&&this.emit(`error`,e)}function o(e,t){let o=!0,s=new n({...t,autoDestroy:!1,emitClose:!1,objectMode:!1,writableObjectMode:!1});return e.on(`message`,function(t,n){let r=!n&&s._readableState.objectMode?t.toString():t;s.push(r)||e.pause()}),e.once(`error`,function(e){s.destroyed||(o=!1,s.destroy(e))}),e.once(`close`,function(){s.destroyed||s.push(null)}),s._destroy=function(t,n){if(e.readyState===e.CLOSED){n(t),process.nextTick(r,s);return}let i=!1;e.once(`error`,function(e){i=!0,n(e)}),e.once(`close`,function(){i||n(t),process.nextTick(r,s)}),o&&e.terminate()},s._final=function(t){if(e.readyState===e.CONNECTING){e.once(`open`,function(){s._final(t)});return}e._socket!==null&&(e._socket._writableState.finished?(t(),s._readableState.endEmitted&&s.destroy()):(e._socket.once(`finish`,function(){t()}),e.close()))},s._read=function(){e.isPaused&&e.resume()},s._write=function(t,n,r){if(e.readyState===e.CONNECTING){e.once(`open`,function(){s._write(t,n,r)});return}e.send(t,r)},s.on(`end`,i),s.on(`error`,a),s}t.exports=o})),Si=x(((e,t)=>{let{tokenChars:n}=hi();function r(e){let t=new Set,r=-1,i=-1,a=0;for(;a<e.length;a++){let o=e.charCodeAt(a);if(i===-1&&n[o]===1)r===-1&&(r=a);else if(a!==0&&(o===32||o===9))i===-1&&r!==-1&&(i=a);else if(o===44){if(r===-1)throw SyntaxError(`Unexpected character at index ${a}`);i===-1&&(i=a);let n=e.slice(r,i);if(t.has(n))throw SyntaxError(`The "${n}" subprotocol is duplicated`);t.add(n),r=i=-1}else throw SyntaxError(`Unexpected character at index ${a}`)}if(r===-1||i!==-1)throw SyntaxError(`Unexpected end of input`);let o=e.slice(r,a);if(t.has(o))throw SyntaxError(`The "${o}" subprotocol is duplicated`);return t.add(o),t}t.exports={parse:r}})),Ci=x(((e,t)=>{let n=T(`events`),r=T(`http`),{Duplex:i}=T(`stream`),{createHash:a}=T(`crypto`),o=yi(),s=mi(),c=Si(),l=bi(),{CLOSE_TIMEOUT:u,GUID:d,kWebSocket:f}=di(),p=/^[+/0-9A-Za-z]{22}==$/;t.exports=class extends n{constructor(e,t){if(super(),e={allowSynchronousEvents:!0,autoPong:!0,maxBufferedChunks:1024*1024,maxFragments:128*1024,maxPayload:100*1024*1024,skipUTF8Validation:!1,perMessageDeflate:!1,handleProtocols:null,clientTracking:!0,closeTimeout:u,verifyClient:null,noServer:!1,backlog:null,server:null,host:null,path:null,port:null,WebSocket:l,...e},e.port==null&&!e.server&&!e.noServer||e.port!=null&&(e.server||e.noServer)||e.server&&e.noServer)throw TypeError(`One and only one of the "port", "server", or "noServer" options must be specified`);if(e.port==null?e.server&&(this._server=e.server):(this._server=r.createServer((e,t)=>{let n=r.STATUS_CODES[426];t.writeHead(426,{"Content-Length":n.length,"Content-Type":`text/plain`}),t.end(n)}),this._server.listen(e.port,e.host,e.backlog,t)),this._server){let e=this.emit.bind(this,`connection`);this._removeListeners=m(this._server,{listening:this.emit.bind(this,`listening`),error:this.emit.bind(this,`error`),upgrade:(t,n,r)=>{this.handleUpgrade(t,n,r,e)}})}e.perMessageDeflate===!0&&(e.perMessageDeflate={}),e.clientTracking&&(this.clients=new Set,this._shouldEmitClose=!1),this.options=e,this._state=0}address(){if(this.options.noServer)throw Error(`The server is operating in "noServer" mode`);return this._server?this._server.address():null}close(e){if(this._state===2){e&&this.once(`close`,()=>{e(Error(`The server is not running`))}),process.nextTick(h,this);return}if(e&&this.once(`close`,e),this._state!==1)if(this._state=1,this.options.noServer||this.options.server)this._server&&(this._removeListeners(),this._removeListeners=this._server=null),this.clients&&this.clients.size?this._shouldEmitClose=!0:process.nextTick(h,this);else{let e=this._server;this._removeListeners(),this._removeListeners=this._server=null,e.close(()=>{h(this)})}}shouldHandle(e){if(this.options.path){let t=e.url.indexOf(`?`);if((t===-1?e.url:e.url.slice(0,t))!==this.options.path)return!1}return!0}handleUpgrade(e,t,n,r){t.on(`error`,g);let i=e.headers[`sec-websocket-key`],a=e.headers.upgrade,l=+e.headers[`sec-websocket-version`];if(e.method!==`GET`){v(this,e,t,405,`Invalid HTTP method`);return}if(a===void 0||a.toLowerCase()!==`websocket`){v(this,e,t,400,`Invalid Upgrade header`);return}if(i===void 0||!p.test(i)){v(this,e,t,400,`Missing or invalid Sec-WebSocket-Key header`);return}if(l!==13&&l!==8){v(this,e,t,400,`Missing or invalid Sec-WebSocket-Version header`,{"Sec-WebSocket-Version":`13, 8`});return}if(!this.shouldHandle(e)){_(t,400);return}let u=e.headers[`sec-websocket-protocol`],d=new Set;if(u!==void 0)try{d=c.parse(u)}catch{v(this,e,t,400,`Invalid Sec-WebSocket-Protocol header`);return}let f=e.headers[`sec-websocket-extensions`],m={};if(this.options.perMessageDeflate&&f!==void 0){let n=new s({...this.options.perMessageDeflate,isServer:!0,maxPayload:this.options.maxPayload});try{let e=o.parse(f);e[s.extensionName]&&(n.accept(e[s.extensionName]),m[s.extensionName]=n)}catch{v(this,e,t,400,`Invalid or unacceptable Sec-WebSocket-Extensions header`);return}}if(this.options.verifyClient){let a={origin:e.headers[`${l===8?`sec-websocket-origin`:`origin`}`],secure:!!(e.socket.authorized||e.socket.encrypted),req:e};if(this.options.verifyClient.length===2){this.options.verifyClient(a,(a,o,s,c)=>{if(!a)return _(t,o||401,s,c);this.completeUpgrade(m,i,d,e,t,n,r)});return}if(!this.options.verifyClient(a))return _(t,401)}this.completeUpgrade(m,i,d,e,t,n,r)}completeUpgrade(e,t,n,r,i,c,l){if(!i.readable||!i.writable)return i.destroy();if(i[f])throw Error(`server.handleUpgrade() was called more than once with the same socket, possibly due to a misconfiguration`);if(this._state>0)return _(i,503);let u=[`HTTP/1.1 101 Switching Protocols`,`Upgrade: websocket`,`Connection: Upgrade`,`Sec-WebSocket-Accept: ${a(`sha1`).update(t+d).digest(`base64`)}`],p=new this.options.WebSocket(null,void 0,this.options);if(n.size){let e=this.options.handleProtocols?this.options.handleProtocols(n,r):n.values().next().value;e&&(u.push(`Sec-WebSocket-Protocol: ${e}`),p._protocol=e)}if(e[s.extensionName]){let t=e[s.extensionName].params,n=o.format({[s.extensionName]:[t]});u.push(`Sec-WebSocket-Extensions: ${n}`),p._extensions=e}this.emit(`headers`,u,r),i.write(u.concat(`\r
|
|
311
|
+
`).length};return yn.set(e,n),n};function xn(e){return Number.isInteger(e)?et(e)||tt(e):!1}const Sn=new Set([27,144,152,155,156,157,158,159]),Cn=`\x1B]8;`,wn=`8;`,Tn=`${Cn};`,En=`${wn};`,Dn=`0`.codePointAt(0),On=`9`.codePointAt(0),kn=`;`.codePointAt(0),An=`:`.codePointAt(0),jn=`0`.codePointAt(0),Mn=`?`.codePointAt(0),Nn=` `.codePointAt(0),Pn=`/`.codePointAt(0),Fn=`@`.codePointAt(0),In=`~`.codePointAt(0),Ln=/\p{Emoji_Presentation}/v,Rn=new Intl.Segmenter(void 0,{granularity:`grapheme`}),zn=new Set;for(let[,e]of Et.codes)zn.add(e);function Bn(e){return e>=Dn&&e<=On||e===kn||e===An}function Vn(e){return e>=jn&&e<=Mn}function Hn(e){return e>=Nn&&e<=Pn}function Un(e){return e>=Fn&&e<=In}function Wn(e){return e>=127462&&e<=127487}function Gn(e,t){return{token:{type:`control`,code:e},endIndex:t}}function Kn(e){if(Ln.test(e))return!0;for(let t of e){let e=t.codePointAt(0);if(e===65039||e===8419)return!0}return!1}function qn(e){let t=0;for(let n of e){let e=n.codePointAt(0);if(xn(e))return 2;Wn(e)&&t++}return t>=1||Kn(e)?2:1}function Jn(e){return e.startsWith(``)?``:`\x1B[`}function Yn(e,t){return`${e}${t.join(`;`)}m`}function Xn(e){let t=[],n=Jn(e),r;if(e.startsWith(`\x1B[`))r=e.slice(2,-1);else if(e.startsWith(``))r=e.slice(1,-1);else return t;let i=r.length===0?[`0`]:r.split(`;`),a=0;for(;a<i.length;){let e=Number.parseInt(i[a],10);if(Number.isNaN(e)){a++;continue}if(e===0){t.push({type:`reset`}),a++;continue}if(e===38||e===48){let r=Number.parseInt(i[a+1],10);if(r===5&&a+2<i.length){let r=Yn(n,i.slice(a,a+3));t.push({type:`start`,code:r,endCode:Et.color.ansi(e===38?39:49)}),a+=3;continue}if(r===2&&a+4<i.length){let r=Yn(n,i.slice(a,a+5));t.push({type:`start`,code:r,endCode:Et.color.ansi(e===38?39:49)}),a+=5;continue}let o=Yn(n,[i[a]]);t.push({type:`start`,code:o,endCode:Et.color.ansi(e===38?39:49)}),a++;continue}if(zn.has(e)){t.push({type:`end`,endCode:Et.color.ansi(e)}),a++;continue}let r=Et.codes.get(e);if(r!==void 0){let e=Yn(n,[i[a]]);t.push({type:`start`,code:e,endCode:Et.color.ansi(r)}),a++;continue}let o=Yn(n,[i[a]]);t.push({type:`start`,code:o,endCode:Et.reset.open}),a++}return t.length===0&&t.push({type:`reset`}),t}function Zn(e,t){let n=e.codePointAt(t),r;if(n===27){if(e[t+1]!==`[`)return;r=t+2}else if(n===155)r=t+1;else return;let i=!0;for(let n=r;n<e.length;n++){let r=e.codePointAt(n);if(Un(r)){let r=e.slice(t,n+1);return e[n]!==`m`||!i?Gn(r,n+1):{token:{type:`sgr`,code:r,fragments:Xn(r)},endIndex:n+1}}if(Vn(r)){Bn(r)||(i=!1);continue}if(Hn(r)){i=!1;continue}let a=n;return Gn(e.slice(t,a),a)}return Gn(e.slice(t),e.length)}function Qn(e,t){let n,r,i=e.codePointAt(t);if(i===27&&e.startsWith(Cn,t))n=Cn,r=Tn;else if(i===157&&e.startsWith(wn,t))n=wn,r=En;else return;let a=e.indexOf(`;`,t+n.length);if(a===-1)return Gn(e.slice(t),e.length);for(let n=a+1;n<e.length;n++){let i=e[n];if(i===`\x07`)return{token:{type:`hyperlink`,code:e.slice(t,n+1),action:n===a+1?`close`:`open`,closePrefix:r,terminator:`\x07`},endIndex:n+1};if(i===`\x1B`&&e[n+1]===`\\`)return{token:{type:`hyperlink`,code:e.slice(t,n+2),action:n===a+1?`close`:`open`,closePrefix:r,terminator:`\x1B\\`},endIndex:n+2};if(i===``)return{token:{type:`hyperlink`,code:e.slice(t,n+1),action:n===a+1?`close`:`open`,closePrefix:r,terminator:``},endIndex:n+1}}return Gn(e.slice(t),e.length)}function $n(e,t){let n=e.codePointAt(t),r,i=!1;switch(n){case 27:switch(e[t+1]){case`]`:r=t+2,i=!0;break;case`P`:case`X`:case`^`:case`_`:r=t+2;break;case`\\`:return Gn(`\x1B\\`,t+2);default:return}break;case 157:r=t+1,i=!0;break;case 144:case 152:case 158:case 159:r=t+1;break;case 156:return Gn(``,t+1);default:return}for(let n=r;n<e.length;n++){if(i&&e[n]===`\x07`)return Gn(e.slice(t,n+1),n+1);if(e[n]===`\x1B`&&e[n+1]===`\\`)return Gn(e.slice(t,n+2),n+2);if(e[n]===``)return Gn(e.slice(t,n+1),n+1)}return Gn(e.slice(t),e.length)}function er(e,t){let n=e.codePointAt(t);if(n===27||n===157){let n=Qn(e,t);if(n)return n}return $n(e,t)||Zn(e,t)}function tr(e,t,n){for(;t<e.length;){let r=e.codePointAt(t);if(!Sn.has(r))break;let i=er(e,t);if(!i)break;n.push(i.token),t=i.endIndex}return t}function nr(e,t,n){let r=n.containing(t);if(!(!r||r.index!==t))return{token:{type:`character`,value:r.segment,visibleWidth:qn(r.segment),isGraphemeContinuation:!1},endIndex:t+r.segment.length}}function rr(e){let t=[],n=0;for(;n<e.length;){let r=e.codePointAt(n);if(Sn.has(r)){let t=er(e,n);if(t){n=t.endIndex;continue}}let i=String.fromCodePoint(r);t.push({value:i,visibleWidth:1,isGraphemeContinuation:!1}),n+=i.length}return t}function ir(e){if(e.length===0)return;let t=e.map(({value:e})=>e).join(``),n=[],r=0;for(let t of e)n.push(r),r+=t.value.length;let i=0;for(let r of Rn.segment(t)){for(;i<e.length&&n[i]<r.index;)i++;let t=i,a=!0;for(;t<e.length&&n[t]<r.index+r.segment.length;)e[t].visibleWidth=a?qn(r.segment):0,e[t].isGraphemeContinuation=!a,a=!1,t++;i=t}}function ar(e,{endCharacter:t=1/0}={}){let n=[],r=rr(e);ir(r);let i=0,a=0,o=0;for(;i<e.length;){let s=e.codePointAt(i);if(Sn.has(s)){let t=er(e,i);if(t){n.push(t.token),i=t.endIndex;continue}}let c=String.fromCodePoint(s),l=r[a],u=xn(s)?2:c.length;l&&(u=l.visibleWidth);let d={type:`character`,value:c,visibleWidth:u,isGraphemeContinuation:l?l.isGraphemeContinuation:!1};if(n.push(d),i+=c.length,a++,o+=d.visibleWidth,o>=t){let t=r[a];if(!t||!t.isGraphemeContinuation){i=tr(e,i,n);break}}}return n}function or(e,t){let n=`${e}${t}`,r=e.length;for(let e of Rn.segment(n)){if(e.index===r)return!1;if(e.index>r)return!0}return!0}function sr(e,t,n,r){if(!n)return!1;let i=t,a=!1;for(;i<e.length;){let t=e.codePointAt(i);if(Sn.has(t)){let t=er(e,i);if(t){a=!0,i=t.endIndex;continue}}if(!a)return!1;let o=nr(e,i,r);return o?or(n,o.token.value):!0}return!1}function cr(e,{endCharacter:t=1/0}={}){let n=[],r=Rn.segment(e),i=0,a=0,o,s=!1;for(;i<e.length;){let c=e.codePointAt(i);if(Sn.has(c)){let t=er(e,i);if(t){n.push(t.token),i=t.endIndex,s=!0;continue}}let l=nr(e,i,r);if(!l||s&&o&&or(o,l.token.value))return ar(e,{endCharacter:t});if(n.push(l.token),i=l.endIndex,a+=l.token.visibleWidth,s=!1,o=l.token.value,a>=t){if(sr(e,i,o,r))return ar(e,{endCharacter:t});i=tr(e,i,n);break}}return n}function lr(e,t){for(let n of t)switch(n.type){case`reset`:e.clear();break;case`end`:e.delete(n.endCode);break;case`start`:e.delete(n.endCode),e.set(n.endCode,n.code);break;default:break}return e}function ur(e){return[...e.keys()].toReversed().join(``)}function dr(e){return`${e.closePrefix}${e.terminator}`}function fr(e,t){let n=!1,r=!1;for(let i of e.fragments){if(i.type===`start`){n=!0;continue}if(i.type===`reset`&&t.size>0){r=!0;continue}i.type===`end`&&t.has(i.endCode)&&(r=!0)}return r&&!n}function pr(e){return e.fragments.some(e=>e.type===`start`)}function mr(e){if(e.activeHyperlink&&!e.activeHyperlinkHasVisibleText&&e.activeHyperlinkOutputIndex!==void 0){let t=e.activeHyperlink.code.length;e.returnValue=e.returnValue.slice(0,e.activeHyperlinkOutputIndex)+e.returnValue.slice(e.activeHyperlinkOutputIndex+t),e.pendingSgrOutputIndex!==void 0&&e.pendingSgrOutputIndex>e.activeHyperlinkOutputIndex&&(e.pendingSgrOutputIndex-=t)}e.activeHyperlink=void 0,e.activeHyperlinkHasVisibleText=!1,e.activeHyperlinkOutputIndex=void 0}function hr(e){return e.isPastEnd&&!fr(e.token,e.activeStyles)?e:(e.include&&pr(e.token)&&e.pendingSgrOutputIndex===void 0&&(e.pendingSgrOutputIndex=e.returnValue.length,e.pendingSgrActiveStyles=new Map(e.activeStyles)),e.activeStyles=lr(e.activeStyles,e.token.fragments),e.include&&(e.returnValue+=e.token.code),e)}function gr(e){if(e.isPastEnd&&(e.token.action!==`close`||!e.activeHyperlink))return e;if(e.token.action===`open`)e.activeHyperlink=e.token,e.activeHyperlinkHasVisibleText=!1,e.activeHyperlinkOutputIndex=void 0,e.include&&(e.activeHyperlinkOutputIndex=e.returnValue.length);else if(e.token.action===`close`){if(e.include&&e.activeHyperlink&&!e.activeHyperlinkHasVisibleText)return mr(e),e;e.activeHyperlink=void 0,e.activeHyperlinkHasVisibleText=!1,e.activeHyperlinkOutputIndex=void 0}return e.include&&(e.returnValue+=e.token.code),e}function _r(e){return!e.isPastEnd&&e.include&&(e.returnValue+=e.token.code),e}function R(e){return!e.include&&e.position>=e.start&&!e.token.isGraphemeContinuation&&(e.include=!0,e.returnValue=[...e.activeStyles.values()].join(``),e.activeHyperlink&&(e.activeHyperlinkOutputIndex=e.returnValue.length,e.returnValue+=e.activeHyperlink.code)),e.include&&(e.returnValue+=e.token.value,e.pendingSgrOutputIndex=void 0,e.pendingSgrActiveStyles=void 0,e.activeHyperlink&&(e.activeHyperlinkHasVisibleText=!0)),e.position+=e.token.visibleWidth,e}const z={sgr:hr,hyperlink:gr,control:_r,character:R};function vr(e){let t=z[e.token.type];return t?t(e):e}function yr(e){let t=Array.from({length:e.length},()=>!1),n=!1;for(let r=e.length-1;r>=0;r--){let i=e[r];t[r]=n,i.type===`character`&&(n=!!i.isGraphemeContinuation)}return t}function br(e,t,n){return n===void 0?!1:t>=n?!0:e.type===`character`&&!e.isGraphemeContinuation&&t+e.visibleWidth>n}function xr(e,t,n){let r=cr(e,{endCharacter:n}),i=yr(r),a=new Map,o,s=!1,c,l,u,d=0,f=``,p=!1;for(let[e,m]of r.entries()){let r=br(m,d,n);if(r&&m.type!==`character`&&i[e]&&(r=!1),r&&m.type===`character`&&!m.isGraphemeContinuation){if(o&&!s){let e={activeHyperlink:o,activeHyperlinkHasVisibleText:s,activeHyperlinkOutputIndex:c,pendingSgrOutputIndex:l,returnValue:f};mr(e),{activeHyperlink:o,activeHyperlinkHasVisibleText:s,activeHyperlinkOutputIndex:c,pendingSgrOutputIndex:l,returnValue:f}=e}l!==void 0&&(f=f.slice(0,l),a=u,l=void 0,u=void 0);break}({activeStyles:a,activeHyperlink:o,activeHyperlinkHasVisibleText:s,activeHyperlinkOutputIndex:c,pendingSgrOutputIndex:l,pendingSgrActiveStyles:u,position:d,returnValue:f,include:p}=vr({token:m,isPastEnd:r,start:t,activeStyles:a,activeHyperlink:o,activeHyperlinkHasVisibleText:s,activeHyperlinkOutputIndex:c,pendingSgrOutputIndex:l,pendingSgrActiveStyles:u,position:d,returnValue:f,include:p}))}return p?(o&&(f+=dr(o)),f+=ur(a),f):``}function Sr(e,t,n){if(e.charAt(t)===` `)return t;let r=n?1:-1;for(let n=0;n<=3;n++){let i=t+n*r;if(e.charAt(i)===` `)return i}return t}function Cr(e,t,n={}){let{position:r=`end`,space:i=!1,preferTruncationOnSpace:a=!1}=n,{truncationCharacter:o=`…`}=n;if(typeof e!=`string`)throw TypeError(`Expected \`input\` to be a string, got ${typeof e}`);if(typeof t!=`number`)throw TypeError(`Expected \`columns\` to be a number, got ${typeof t}`);if(t<1)return``;let s=vt(e);if(s<=t)return e;if(t===1)return o;let c={ESC:27,LEFT_BRACKET:91,LETTER_M:109},l=e=>e>=48&&e<=57||e===59;function u(e){let t=0;for(;t+2<e.length&&e.codePointAt(t)===c.ESC&&e.codePointAt(t+1)===c.LEFT_BRACKET;){let n=t+2;for(;n<e.length&&l(e.codePointAt(n));)n++;if(n<e.length&&e.codePointAt(n)===c.LETTER_M){t=n+1;continue}break}return t}function d(e){let t=e.length;for(;t>1&&e.codePointAt(t-1)===c.LETTER_M;){let n=t-2;for(;n>=0&&l(e.codePointAt(n));)n--;if(n>=1&&e.codePointAt(n-1)===c.ESC&&e.codePointAt(n)===c.LEFT_BRACKET){t=n-1;continue}break}return t}function f(e,t){let n=d(e);return n===e.length?e+t:e.slice(0,n)+t+e.slice(n)}function p(e,t){let n=u(t);return n===0?e+t:t.slice(0,n)+e+t.slice(n)}if(r===`start`){if(a){let n=xr(e,Sr(e,s-t+1,!0),s).trim();return p(o,n)}i&&(o+=` `);let n=xr(e,s-t+vt(o),s);return p(o,n)}if(r===`middle`){i&&(o=` ${o} `);let n=Math.floor(t/2);if(a){let r=Sr(e,n),i=Sr(e,s-(t-n)+1,!0);return xr(e,0,r)+o+xr(e,i,s).trim()}return xr(e,0,n)+o+xr(e,s-(t-n)+vt(o),s)}if(r===`end`)return a?f(xr(e,0,Sr(e,t-1)),o):(i&&(o=` ${o}`),f(xr(e,0,t-vt(o)),o));throw Error(`Expected \`options.position\` to be either \`start\`, \`middle\` or \`end\`, got ${r}`)}const wr={},Tr=(e,t,n)=>{let r=e+String(t)+String(n),i=wr[r];if(i)return i;let a=e;if(n===`wrap`&&(a=$t(e,t,{trim:!1,hard:!0})),n===`hard`&&(a=$t(e,t,{trim:!1,hard:!0,wordWrap:!1})),n.startsWith(`truncate`)){let r=`end`;n===`truncate-middle`&&(r=`middle`),n===`truncate-start`&&(r=`start`),a=Cr(e,t,{position:r})}return wr[r]=a,a},Er=e=>{let t=e.codePointAt(0);return t!==void 0&&t>=48&&t<=63},Dr=e=>{let t=e.codePointAt(0);return t!==void 0&&t>=32&&t<=47},Or=e=>{let t=e.codePointAt(0);return t!==void 0&&t>=64&&t<=126},kr=e=>{let t=e.codePointAt(0);return t!==void 0&&t>=32&&t<=47},Ar=e=>{let t=e.codePointAt(0);return t!==void 0&&t>=48&&t<=126},jr=e=>{let t=e.codePointAt(0);return t!==void 0&&t>=128&&t<=159},Mr=(e,t)=>{let n=t;for(;n<e.length;){let t=e[n];if(!Er(t))break;n++}let r=e.slice(t,n),i=n;for(;n<e.length;){let t=e[n];if(!Dr(t))break;n++}let a=e.slice(i,n),o=e[n];if(!(o===void 0||!Or(o)))return{endIndex:n+1,parameterString:r,intermediateString:a,finalCharacter:o}},Nr=(e,t,n)=>{for(let r=t;r<e.length;r++){let t=e[r];if(n&&t===`\x07`||t===``)return r+1;if(t===`\x1B`){let t=e[r+1];if(t===`\x1B`){r++;continue}if(t===`\\`)return r+2}}},Pr=(e,t)=>{let n=t;for(;n<e.length;){let t=e[n];if(!kr(t))break;n++}let r=e.slice(t,n),i=e[n];if(!(i===void 0||!Ar(i)))return{endIndex:n+1,intermediateString:r,finalCharacter:i}},Fr=e=>{switch(e){case`]`:return{type:`osc`,allowBellTerminator:!0};case`P`:return{type:`dcs`,allowBellTerminator:!1};case`^`:return{type:`pm`,allowBellTerminator:!1};case`_`:return{type:`apc`,allowBellTerminator:!1};case`X`:return{type:`sos`,allowBellTerminator:!1};default:return}},Ir=e=>{switch(e){case``:return{type:`osc`,allowBellTerminator:!0};case``:return{type:`dcs`,allowBellTerminator:!1};case``:return{type:`pm`,allowBellTerminator:!1};case``:return{type:`apc`,allowBellTerminator:!1};case``:return{type:`sos`,allowBellTerminator:!1};default:return}},Lr=e=>{if(e.includes(`\x1B`))return!0;for(let t of e)if(jr(t))return!0;return!1},Rr=(e,t,n,r)=>(r>n&&e.push({type:`text`,value:t.slice(n,r)}),e.push({type:`invalid`,value:t.slice(r)}),e),zr=e=>{if(!Lr(e))return[{type:`text`,value:e}];let t=[],n=0;for(let r=0;r<e.length;){let i=e[r];if(i===void 0)break;if(i===`\x1B`){let i=e[r+1];if(i===void 0)return Rr(t,e,n,r);if(i===`[`){let i=Mr(e,r+2);if(i===void 0)return Rr(t,e,n,r);r>n&&t.push({type:`text`,value:e.slice(n,r)}),t.push({type:`csi`,value:e.slice(r,i.endIndex),parameterString:i.parameterString,intermediateString:i.intermediateString,finalCharacter:i.finalCharacter}),r=i.endIndex,n=r;continue}let a=Fr(i);if(a!==void 0){let i=Nr(e,r+2,a.allowBellTerminator);if(i===void 0)return Rr(t,e,n,r);r>n&&t.push({type:`text`,value:e.slice(n,r)}),t.push({type:a.type,value:e.slice(r,i)}),r=i,n=r;continue}let o=Pr(e,r+1);if(o===void 0){if(kr(i))return Rr(t,e,n,r);r>n&&t.push({type:`text`,value:e.slice(n,r)}),r++,n=r;continue}r>n&&t.push({type:`text`,value:e.slice(n,r)}),t.push({type:`esc`,value:e.slice(r,o.endIndex),intermediateString:o.intermediateString,finalCharacter:o.finalCharacter}),r=o.endIndex,n=r;continue}if(i===``){let i=Mr(e,r+1);if(i===void 0)return Rr(t,e,n,r);r>n&&t.push({type:`text`,value:e.slice(n,r)}),t.push({type:`csi`,value:e.slice(r,i.endIndex),parameterString:i.parameterString,intermediateString:i.intermediateString,finalCharacter:i.finalCharacter}),r=i.endIndex,n=r;continue}let a=Ir(i);if(a!==void 0){let i=Nr(e,r+1,a.allowBellTerminator);if(i===void 0)return Rr(t,e,n,r);r>n&&t.push({type:`text`,value:e.slice(n,r)}),t.push({type:a.type,value:e.slice(r,i)}),r=i,n=r;continue}if(i===``){r>n&&t.push({type:`text`,value:e.slice(n,r)}),t.push({type:`st`,value:i}),r++,n=r;continue}if(jr(i)){r>n&&t.push({type:`text`,value:e.slice(n,r)}),t.push({type:`c1`,value:i}),r++,n=r;continue}r++}return n<e.length&&t.push({type:`text`,value:e.slice(n)}),t},Br=/^[\d:;]*$/,Vr=e=>{if(!Lr(e))return e;let t=``;for(let n of zr(e)){if(n.type===`text`||n.type===`osc`){t+=n.value;continue}n.type===`csi`&&n.finalCharacter===`m`&&n.intermediateString===``&&Br.test(n.parameterString)&&(t+=n.value)}return t},Hr=e=>{let t=``;for(let n=0;n<e.childNodes.length;n++){let r=e.childNodes[n];if(r===void 0)continue;let i=``;r.nodeName===`#text`?i=r.nodeValue:((r.nodeName===`ink-text`||r.nodeName===`ink-virtual-text`)&&(i=Hr(r)),i.length>0&&typeof r.internal_transform==`function`&&(i=r.internal_transform(i,n))),t+=i}return Vr(t)},Ur=e=>{let t={nodeName:e,style:{},attributes:{},childNodes:[],parentNode:void 0,yogaNode:e===`ink-virtual-text`?void 0:I.Node.create(),internal_accessibility:{}};return e===`ink-text`&&t.yogaNode?.setMeasureFunc(Xr.bind(null,t)),t},Wr=(e,t)=>{t.parentNode&&Kr(t.parentNode,t),t.parentNode=e,e.childNodes.push(t),t.yogaNode&&e.yogaNode?.insertChild(t.yogaNode,e.yogaNode.getChildCount()),(e.nodeName===`ink-text`||e.nodeName===`ink-virtual-text`)&&Qr(e)},Gr=(e,t,n)=>{t.parentNode&&Kr(t.parentNode,t),t.parentNode=e;let r=e.childNodes.indexOf(n);r>=0?(e.childNodes.splice(r,0,t),t.yogaNode&&e.yogaNode?.insertChild(t.yogaNode,r)):(e.childNodes.push(t),t.yogaNode&&e.yogaNode?.insertChild(t.yogaNode,e.yogaNode.getChildCount())),(e.nodeName===`ink-text`||e.nodeName===`ink-virtual-text`)&&Qr(e)},Kr=(e,t)=>{t.yogaNode&&t.parentNode?.yogaNode?.removeChild(t.yogaNode),t.parentNode=void 0;let n=e.childNodes.indexOf(t);n>=0&&e.childNodes.splice(n,1),(e.nodeName===`ink-text`||e.nodeName===`ink-virtual-text`)&&Qr(e)},qr=(e,t,n)=>{if(t===`internal_accessibility`){e.internal_accessibility=n;return}e.attributes[t]=n},Jr=(e,t)=>{e.style=t??{}},Yr=e=>{let t={nodeName:`#text`,nodeValue:e,yogaNode:void 0,parentNode:void 0,style:{}};return $r(t,e),t},Xr=function(e,t){let n=e.nodeName===`#text`?e.nodeValue:Hr(e),r=bn(n);return r.width<=t||r.width>=1&&t>0&&t<1?r:bn(Tr(n,t,e.style?.textWrap??`wrap`))},Zr=e=>{if(e?.parentNode)return e.yogaNode??Zr(e.parentNode)},Qr=e=>{Zr(e)?.markDirty()},$r=(e,t)=>{typeof t!=`string`&&(t=String(t)),e.nodeValue=t,Qr(e)},ei=(e,t)=>e.nodeName===`ink-root`?(e.internal_layoutListeners??=new Set,e.internal_layoutListeners.add(t),()=>{e.internal_layoutListeners?.delete(t)}):()=>{},ti=e=>{if(!(e.nodeName!==`ink-root`||!e.internal_layoutListeners))for(let t of e.internal_layoutListeners)t()},ni=[[`top`,I.EDGE_TOP],[`right`,I.EDGE_RIGHT],[`bottom`,I.EDGE_BOTTOM],[`left`,I.EDGE_LEFT]],ri=(e,t)=>{if(`position`in t){let n=I.POSITION_TYPE_RELATIVE;t.position===`absolute`?n=I.POSITION_TYPE_ABSOLUTE:t.position===`static`&&(n=I.POSITION_TYPE_STATIC),e.setPositionType(n)}for(let[n,r]of ni){if(!(n in t))continue;let i=t[n];if(typeof i==`string`){e.setPositionPercent(r,Number.parseFloat(i));continue}e.setPosition(r,i)}},ii=(e,t)=>{`margin`in t&&e.setMargin(I.EDGE_ALL,t.margin??0),`marginX`in t&&e.setMargin(I.EDGE_HORIZONTAL,t.marginX??0),`marginY`in t&&e.setMargin(I.EDGE_VERTICAL,t.marginY??0),`marginLeft`in t&&e.setMargin(I.EDGE_START,t.marginLeft??0),`marginRight`in t&&e.setMargin(I.EDGE_END,t.marginRight??0),`marginTop`in t&&e.setMargin(I.EDGE_TOP,t.marginTop??0),`marginBottom`in t&&e.setMargin(I.EDGE_BOTTOM,t.marginBottom??0)},ai=(e,t)=>{`padding`in t&&e.setPadding(I.EDGE_ALL,t.padding??0),`paddingX`in t&&e.setPadding(I.EDGE_HORIZONTAL,t.paddingX??0),`paddingY`in t&&e.setPadding(I.EDGE_VERTICAL,t.paddingY??0),`paddingLeft`in t&&e.setPadding(I.EDGE_LEFT,t.paddingLeft??0),`paddingRight`in t&&e.setPadding(I.EDGE_RIGHT,t.paddingRight??0),`paddingTop`in t&&e.setPadding(I.EDGE_TOP,t.paddingTop??0),`paddingBottom`in t&&e.setPadding(I.EDGE_BOTTOM,t.paddingBottom??0)},oi=(e,t)=>{`flexGrow`in t&&e.setFlexGrow(t.flexGrow??0),`flexShrink`in t&&e.setFlexShrink(typeof t.flexShrink==`number`?t.flexShrink:1),`flexWrap`in t&&(t.flexWrap===`nowrap`&&e.setFlexWrap(I.WRAP_NO_WRAP),t.flexWrap===`wrap`&&e.setFlexWrap(I.WRAP_WRAP),t.flexWrap===`wrap-reverse`&&e.setFlexWrap(I.WRAP_WRAP_REVERSE)),`flexDirection`in t&&(t.flexDirection===`row`&&e.setFlexDirection(I.FLEX_DIRECTION_ROW),t.flexDirection===`row-reverse`&&e.setFlexDirection(I.FLEX_DIRECTION_ROW_REVERSE),t.flexDirection===`column`&&e.setFlexDirection(I.FLEX_DIRECTION_COLUMN),t.flexDirection===`column-reverse`&&e.setFlexDirection(I.FLEX_DIRECTION_COLUMN_REVERSE)),`flexBasis`in t&&(typeof t.flexBasis==`number`?e.setFlexBasis(t.flexBasis):typeof t.flexBasis==`string`?e.setFlexBasisPercent(Number.parseInt(t.flexBasis,10)):e.setFlexBasisAuto()),`alignItems`in t&&((t.alignItems===`stretch`||!t.alignItems)&&e.setAlignItems(I.ALIGN_STRETCH),t.alignItems===`flex-start`&&e.setAlignItems(I.ALIGN_FLEX_START),t.alignItems===`center`&&e.setAlignItems(I.ALIGN_CENTER),t.alignItems===`flex-end`&&e.setAlignItems(I.ALIGN_FLEX_END),t.alignItems===`baseline`&&e.setAlignItems(I.ALIGN_BASELINE)),`alignSelf`in t&&((t.alignSelf===`auto`||!t.alignSelf)&&e.setAlignSelf(I.ALIGN_AUTO),t.alignSelf===`flex-start`&&e.setAlignSelf(I.ALIGN_FLEX_START),t.alignSelf===`center`&&e.setAlignSelf(I.ALIGN_CENTER),t.alignSelf===`flex-end`&&e.setAlignSelf(I.ALIGN_FLEX_END),t.alignSelf===`stretch`&&e.setAlignSelf(I.ALIGN_STRETCH),t.alignSelf===`baseline`&&e.setAlignSelf(I.ALIGN_BASELINE)),`alignContent`in t&&((t.alignContent===`flex-start`||!t.alignContent)&&e.setAlignContent(I.ALIGN_FLEX_START),t.alignContent===`center`&&e.setAlignContent(I.ALIGN_CENTER),t.alignContent===`flex-end`&&e.setAlignContent(I.ALIGN_FLEX_END),t.alignContent===`space-between`&&e.setAlignContent(I.ALIGN_SPACE_BETWEEN),t.alignContent===`space-around`&&e.setAlignContent(I.ALIGN_SPACE_AROUND),t.alignContent===`space-evenly`&&e.setAlignContent(I.ALIGN_SPACE_EVENLY),t.alignContent===`stretch`&&e.setAlignContent(I.ALIGN_STRETCH)),`justifyContent`in t&&((t.justifyContent===`flex-start`||!t.justifyContent)&&e.setJustifyContent(I.JUSTIFY_FLEX_START),t.justifyContent===`center`&&e.setJustifyContent(I.JUSTIFY_CENTER),t.justifyContent===`flex-end`&&e.setJustifyContent(I.JUSTIFY_FLEX_END),t.justifyContent===`space-between`&&e.setJustifyContent(I.JUSTIFY_SPACE_BETWEEN),t.justifyContent===`space-around`&&e.setJustifyContent(I.JUSTIFY_SPACE_AROUND),t.justifyContent===`space-evenly`&&e.setJustifyContent(I.JUSTIFY_SPACE_EVENLY))},si=(e,t)=>{`width`in t&&(typeof t.width==`number`?e.setWidth(t.width):typeof t.width==`string`?e.setWidthPercent(Number.parseInt(t.width,10)):e.setWidthAuto()),`height`in t&&(typeof t.height==`number`?e.setHeight(t.height):typeof t.height==`string`?e.setHeightPercent(Number.parseInt(t.height,10)):e.setHeightAuto()),`minWidth`in t&&(typeof t.minWidth==`string`?e.setMinWidthPercent(Number.parseInt(t.minWidth,10)):e.setMinWidth(t.minWidth??0)),`minHeight`in t&&(typeof t.minHeight==`string`?e.setMinHeightPercent(Number.parseInt(t.minHeight,10)):e.setMinHeight(t.minHeight??0)),`maxWidth`in t&&(typeof t.maxWidth==`string`?e.setMaxWidthPercent(Number.parseInt(t.maxWidth,10)):e.setMaxWidth(t.maxWidth)),`maxHeight`in t&&(typeof t.maxHeight==`string`?e.setMaxHeightPercent(Number.parseInt(t.maxHeight,10)):e.setMaxHeight(t.maxHeight)),`aspectRatio`in t&&e.setAspectRatio(t.aspectRatio)},ci=(e,t)=>{`display`in t&&e.setDisplay(t.display===`flex`?I.DISPLAY_FLEX:I.DISPLAY_NONE)},li=(e,t,n)=>{if(!(`borderStyle`in t||`borderTop`in t||`borderBottom`in t||`borderLeft`in t||`borderRight`in t))return;let r=+!!n.borderStyle;e.setBorder(I.EDGE_TOP,n.borderTop===!1?0:r),e.setBorder(I.EDGE_BOTTOM,n.borderBottom===!1?0:r),e.setBorder(I.EDGE_LEFT,n.borderLeft===!1?0:r),e.setBorder(I.EDGE_RIGHT,n.borderRight===!1?0:r)},ui=(e,t)=>{`gap`in t&&e.setGap(I.GUTTER_ALL,t.gap??0),`columnGap`in t&&e.setGap(I.GUTTER_COLUMN,t.columnGap??0),`rowGap`in t&&e.setGap(I.GUTTER_ROW,t.rowGap??0)},di=(e,t={},n=t)=>{ri(e,t),ii(e,t),ai(e,t),oi(e,t),si(e,t),ci(e,t),li(e,t,n),ui(e,t)};var fi=x(((e,t)=>{let n=[`nodebuffer`,`arraybuffer`,`fragments`],r=typeof Blob<`u`;r&&n.push(`blob`),t.exports={BINARY_TYPES:n,CLOSE_TIMEOUT:3e4,EMPTY_BUFFER:Buffer.alloc(0),GUID:`258EAFA5-E914-47DA-95CA-C5AB0DC85B11`,hasBlob:r,kForOnEventAttribute:Symbol(`kIsForOnEventAttribute`),kListener:Symbol(`kListener`),kStatusCode:Symbol(`status-code`),kWebSocket:Symbol(`websocket`),NOOP:()=>{}}})),pi=x(((e,t)=>{let{EMPTY_BUFFER:n}=fi(),r=Buffer[Symbol.species];function i(e,t){if(e.length===0)return n;if(e.length===1)return e[0];let i=Buffer.allocUnsafe(t),a=0;for(let t=0;t<e.length;t++){let n=e[t];i.set(n,a),a+=n.length}return a<t?new r(i.buffer,i.byteOffset,a):i}function a(e,t,n,r,i){for(let a=0;a<i;a++)n[r+a]=e[a]^t[a&3]}function o(e,t){for(let n=0;n<e.length;n++)e[n]^=t[n&3]}function s(e){return e.length===e.buffer.byteLength?e.buffer:e.buffer.slice(e.byteOffset,e.byteOffset+e.length)}function c(e){if(c.readOnly=!0,Buffer.isBuffer(e))return e;let t;return e instanceof ArrayBuffer?t=new r(e):ArrayBuffer.isView(e)?t=new r(e.buffer,e.byteOffset,e.byteLength):(t=Buffer.from(e),c.readOnly=!1),t}if(t.exports={concat:i,mask:a,toArrayBuffer:s,toBuffer:c,unmask:o},!process.env.WS_NO_BUFFER_UTIL)try{let e=T(`bufferutil`);t.exports.mask=function(t,n,r,i,o){o<48?a(t,n,r,i,o):e.mask(t,n,r,i,o)},t.exports.unmask=function(t,n){t.length<32?o(t,n):e.unmask(t,n)}}catch{}})),mi=x(((e,t)=>{let n=Symbol(`kDone`),r=Symbol(`kRun`);t.exports=class{constructor(e){this[n]=()=>{this.pending--,this[r]()},this.concurrency=e||1/0,this.jobs=[],this.pending=0}add(e){this.jobs.push(e),this[r]()}[r](){if(this.pending!==this.concurrency&&this.jobs.length){let e=this.jobs.shift();this.pending++,e(this[n])}}}})),hi=x(((e,t)=>{let n=T(`zlib`),r=pi(),i=mi(),{kStatusCode:a}=fi(),o=Buffer[Symbol.species],s=Buffer.from([0,0,255,255]),c=Symbol(`permessage-deflate`),l=Symbol(`total-length`),u=Symbol(`callback`),d=Symbol(`buffers`),f=Symbol(`error`),p;t.exports=class{constructor(e){this._options=e||{},this._threshold=this._options.threshold===void 0?1024:this._options.threshold,this._maxPayload=this._options.maxPayload|0,this._isServer=!!this._options.isServer,this._deflate=null,this._inflate=null,this.params=null,p||=new i(this._options.concurrencyLimit===void 0?10:this._options.concurrencyLimit)}static get extensionName(){return`permessage-deflate`}offer(){let e={};return this._options.serverNoContextTakeover&&(e.server_no_context_takeover=!0),this._options.clientNoContextTakeover&&(e.client_no_context_takeover=!0),this._options.serverMaxWindowBits&&(e.server_max_window_bits=this._options.serverMaxWindowBits),this._options.clientMaxWindowBits?e.client_max_window_bits=this._options.clientMaxWindowBits:this._options.clientMaxWindowBits??(e.client_max_window_bits=!0),e}accept(e){return e=this.normalizeParams(e),this.params=this._isServer?this.acceptAsServer(e):this.acceptAsClient(e),this.params}cleanup(){if(this._inflate&&=(this._inflate.close(),null),this._deflate){let e=this._deflate[u];this._deflate.close(),this._deflate=null,e&&e(Error(`The deflate stream was closed while data was being processed`))}}acceptAsServer(e){let t=this._options,n=e.find(e=>!(t.serverNoContextTakeover===!1&&e.server_no_context_takeover||e.server_max_window_bits&&(t.serverMaxWindowBits===!1||typeof t.serverMaxWindowBits==`number`&&t.serverMaxWindowBits>e.server_max_window_bits)||typeof t.clientMaxWindowBits==`number`&&!e.client_max_window_bits));if(!n)throw Error(`None of the extension offers can be accepted`);return t.serverNoContextTakeover&&(n.server_no_context_takeover=!0),t.clientNoContextTakeover&&(n.client_no_context_takeover=!0),typeof t.serverMaxWindowBits==`number`&&(n.server_max_window_bits=t.serverMaxWindowBits),typeof t.clientMaxWindowBits==`number`?n.client_max_window_bits=t.clientMaxWindowBits:(n.client_max_window_bits===!0||t.clientMaxWindowBits===!1)&&delete n.client_max_window_bits,n}acceptAsClient(e){let t=e[0];if(this._options.clientNoContextTakeover===!1&&t.client_no_context_takeover)throw Error(`Unexpected parameter "client_no_context_takeover"`);if(!t.client_max_window_bits)typeof this._options.clientMaxWindowBits==`number`&&(t.client_max_window_bits=this._options.clientMaxWindowBits);else if(this._options.clientMaxWindowBits===!1||typeof this._options.clientMaxWindowBits==`number`&&t.client_max_window_bits>this._options.clientMaxWindowBits)throw Error(`Unexpected or invalid parameter "client_max_window_bits"`);return t}normalizeParams(e){return e.forEach(e=>{Object.keys(e).forEach(t=>{let n=e[t];if(n.length>1)throw Error(`Parameter "${t}" must have only a single value`);if(n=n[0],t===`client_max_window_bits`){if(n!==!0){let e=+n;if(!Number.isInteger(e)||e<8||e>15)throw TypeError(`Invalid value for parameter "${t}": ${n}`);n=e}else if(!this._isServer)throw TypeError(`Invalid value for parameter "${t}": ${n}`)}else if(t===`server_max_window_bits`){let e=+n;if(!Number.isInteger(e)||e<8||e>15)throw TypeError(`Invalid value for parameter "${t}": ${n}`);n=e}else if(t===`client_no_context_takeover`||t===`server_no_context_takeover`){if(n!==!0)throw TypeError(`Invalid value for parameter "${t}": ${n}`)}else throw Error(`Unknown parameter "${t}"`);e[t]=n})}),e}decompress(e,t,n){p.add(r=>{this._decompress(e,t,(e,t)=>{r(),n(e,t)})})}compress(e,t,n){p.add(r=>{this._compress(e,t,(e,t)=>{r(),n(e,t)})})}_decompress(e,t,i){let a=this._isServer?`client`:`server`;if(!this._inflate){let e=`${a}_max_window_bits`,t=typeof this.params[e]==`number`?this.params[e]:n.Z_DEFAULT_WINDOWBITS;this._inflate=n.createInflateRaw({...this._options.zlibInflateOptions,windowBits:t}),this._inflate[c]=this,this._inflate[l]=0,this._inflate[d]=[],this._inflate.on(`error`,g),this._inflate.on(`data`,h)}this._inflate[u]=i,this._inflate.write(e),t&&this._inflate.write(s),this._inflate.flush(()=>{let e=this._inflate[f];if(e){this._inflate.close(),this._inflate=null,i(e);return}let n=r.concat(this._inflate[d],this._inflate[l]);this._inflate._readableState.endEmitted?(this._inflate.close(),this._inflate=null):(this._inflate[l]=0,this._inflate[d]=[],t&&this.params[`${a}_no_context_takeover`]&&this._inflate.reset()),i(null,n)})}_compress(e,t,i){let a=this._isServer?`server`:`client`;if(!this._deflate){let e=`${a}_max_window_bits`,t=typeof this.params[e]==`number`?this.params[e]:n.Z_DEFAULT_WINDOWBITS;this._deflate=n.createDeflateRaw({...this._options.zlibDeflateOptions,windowBits:t}),this._deflate[l]=0,this._deflate[d]=[],this._deflate.on(`data`,m)}this._deflate[u]=i,this._deflate.write(e),this._deflate.flush(n.Z_SYNC_FLUSH,()=>{if(!this._deflate)return;let e=r.concat(this._deflate[d],this._deflate[l]);t&&(e=new o(e.buffer,e.byteOffset,e.length-4)),this._deflate[u]=null,this._deflate[l]=0,this._deflate[d]=[],t&&this.params[`${a}_no_context_takeover`]&&this._deflate.reset(),i(null,e)})}};function m(e){this[d].push(e),this[l]+=e.length}function h(e){if(this[l]+=e.length,this[c]._maxPayload<1||this[l]<=this[c]._maxPayload){this[d].push(e);return}this[f]=RangeError(`Max payload size exceeded`),this[f].code=`WS_ERR_UNSUPPORTED_MESSAGE_LENGTH`,this[f][a]=1009,this.removeListener(`data`,h),this.reset()}function g(e){if(this[c]._inflate=null,this[f]){this[u](this[f]);return}e[a]=1007,this[u](e)}})),gi=x(((e,t)=>{let{isUtf8:n}=T(`buffer`),{hasBlob:r}=fi(),i=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,1,1,1,1,1,0,0,1,1,0,1,1,0,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,1,0,1,0];function a(e){return e>=1e3&&e<=1014&&e!==1004&&e!==1005&&e!==1006||e>=3e3&&e<=4999}function o(e){let t=e.length,n=0;for(;n<t;)if(!(e[n]&128))n++;else if((e[n]&224)==192){if(n+1===t||(e[n+1]&192)!=128||(e[n]&254)==192)return!1;n+=2}else if((e[n]&240)==224){if(n+2>=t||(e[n+1]&192)!=128||(e[n+2]&192)!=128||e[n]===224&&(e[n+1]&224)==128||e[n]===237&&(e[n+1]&224)==160)return!1;n+=3}else if((e[n]&248)==240){if(n+3>=t||(e[n+1]&192)!=128||(e[n+2]&192)!=128||(e[n+3]&192)!=128||e[n]===240&&(e[n+1]&240)==128||e[n]===244&&e[n+1]>143||e[n]>244)return!1;n+=4}else return!1;return!0}function s(e){return r&&typeof e==`object`&&typeof e.arrayBuffer==`function`&&typeof e.type==`string`&&typeof e.stream==`function`&&(e[Symbol.toStringTag]===`Blob`||e[Symbol.toStringTag]===`File`)}if(t.exports={isBlob:s,isValidStatusCode:a,isValidUTF8:o,tokenChars:i},n)t.exports.isValidUTF8=function(e){return e.length<24?o(e):n(e)};else if(!process.env.WS_NO_UTF_8_VALIDATE)try{let e=T(`utf-8-validate`);t.exports.isValidUTF8=function(t){return t.length<32?o(t):e(t)}}catch{}})),_i=x(((e,t)=>{let{Writable:n}=T(`stream`),r=hi(),{BINARY_TYPES:i,EMPTY_BUFFER:a,kStatusCode:o,kWebSocket:s}=fi(),{concat:c,toArrayBuffer:l,unmask:u}=pi(),{isValidStatusCode:d,isValidUTF8:f}=gi(),p=Buffer[Symbol.species];t.exports=class extends n{constructor(e={}){super(),this._allowSynchronousEvents=e.allowSynchronousEvents===void 0?!0:e.allowSynchronousEvents,this._binaryType=e.binaryType||i[0],this._extensions=e.extensions||{},this._isServer=!!e.isServer,this._maxBufferedChunks=e.maxBufferedChunks|0,this._maxFragments=e.maxFragments|0,this._maxPayload=e.maxPayload|0,this._skipUTF8Validation=!!e.skipUTF8Validation,this[s]=void 0,this._bufferedBytes=0,this._buffers=[],this._compressed=!1,this._payloadLength=0,this._mask=void 0,this._fragmented=0,this._masked=!1,this._fin=!1,this._opcode=0,this._totalPayloadLength=0,this._messageLength=0,this._fragments=[],this._errored=!1,this._loop=!1,this._state=0}_write(e,t,n){if(this._opcode===8&&this._state==0)return n();if(this._maxBufferedChunks>0&&this._buffers.length>=this._maxBufferedChunks){n(this.createError(RangeError,`Too many buffered chunks`,!1,1008,`WS_ERR_TOO_MANY_BUFFERED_PARTS`));return}this._bufferedBytes+=e.length,this._buffers.push(e),this.startLoop(n)}consume(e){if(this._bufferedBytes-=e,e===this._buffers[0].length)return this._buffers.shift();if(e<this._buffers[0].length){let t=this._buffers[0];return this._buffers[0]=new p(t.buffer,t.byteOffset+e,t.length-e),new p(t.buffer,t.byteOffset,e)}let t=Buffer.allocUnsafe(e);do{let n=this._buffers[0],r=t.length-e;e>=n.length?t.set(this._buffers.shift(),r):(t.set(new Uint8Array(n.buffer,n.byteOffset,e),r),this._buffers[0]=new p(n.buffer,n.byteOffset+e,n.length-e)),e-=n.length}while(e>0);return t}startLoop(e){this._loop=!0;do switch(this._state){case 0:this.getInfo(e);break;case 1:this.getPayloadLength16(e);break;case 2:this.getPayloadLength64(e);break;case 3:this.getMask();break;case 4:this.getData(e);break;case 5:case 6:this._loop=!1;return}while(this._loop);this._errored||e()}getInfo(e){if(this._bufferedBytes<2){this._loop=!1;return}let t=this.consume(2);if(t[0]&48){e(this.createError(RangeError,`RSV2 and RSV3 must be clear`,!0,1002,`WS_ERR_UNEXPECTED_RSV_2_3`));return}let n=(t[0]&64)==64;if(n&&!this._extensions[r.extensionName]){e(this.createError(RangeError,`RSV1 must be clear`,!0,1002,`WS_ERR_UNEXPECTED_RSV_1`));return}if(this._fin=(t[0]&128)==128,this._opcode=t[0]&15,this._payloadLength=t[1]&127,this._opcode===0){if(n){e(this.createError(RangeError,`RSV1 must be clear`,!0,1002,`WS_ERR_UNEXPECTED_RSV_1`));return}if(!this._fragmented){e(this.createError(RangeError,`invalid opcode 0`,!0,1002,`WS_ERR_INVALID_OPCODE`));return}this._opcode=this._fragmented}else if(this._opcode===1||this._opcode===2){if(this._fragmented){e(this.createError(RangeError,`invalid opcode ${this._opcode}`,!0,1002,`WS_ERR_INVALID_OPCODE`));return}this._compressed=n}else if(this._opcode>7&&this._opcode<11){if(!this._fin){e(this.createError(RangeError,`FIN must be set`,!0,1002,`WS_ERR_EXPECTED_FIN`));return}if(n){e(this.createError(RangeError,`RSV1 must be clear`,!0,1002,`WS_ERR_UNEXPECTED_RSV_1`));return}if(this._payloadLength>125||this._opcode===8&&this._payloadLength===1){e(this.createError(RangeError,`invalid payload length ${this._payloadLength}`,!0,1002,`WS_ERR_INVALID_CONTROL_PAYLOAD_LENGTH`));return}}else{e(this.createError(RangeError,`invalid opcode ${this._opcode}`,!0,1002,`WS_ERR_INVALID_OPCODE`));return}if(!this._fin&&!this._fragmented&&(this._fragmented=this._opcode),this._masked=(t[1]&128)==128,this._isServer){if(!this._masked){e(this.createError(RangeError,`MASK must be set`,!0,1002,`WS_ERR_EXPECTED_MASK`));return}}else if(this._masked){e(this.createError(RangeError,`MASK must be clear`,!0,1002,`WS_ERR_UNEXPECTED_MASK`));return}this._payloadLength===126?this._state=1:this._payloadLength===127?this._state=2:this.haveLength(e)}getPayloadLength16(e){if(this._bufferedBytes<2){this._loop=!1;return}this._payloadLength=this.consume(2).readUInt16BE(0),this.haveLength(e)}getPayloadLength64(e){if(this._bufferedBytes<8){this._loop=!1;return}let t=this.consume(8),n=t.readUInt32BE(0);if(n>2**21-1){e(this.createError(RangeError,`Unsupported WebSocket frame: payload length > 2^53 - 1`,!1,1009,`WS_ERR_UNSUPPORTED_DATA_PAYLOAD_LENGTH`));return}this._payloadLength=n*2**32+t.readUInt32BE(4),this.haveLength(e)}haveLength(e){if(this._payloadLength&&this._opcode<8&&(this._totalPayloadLength+=this._payloadLength,this._totalPayloadLength>this._maxPayload&&this._maxPayload>0)){e(this.createError(RangeError,`Max payload size exceeded`,!1,1009,`WS_ERR_UNSUPPORTED_MESSAGE_LENGTH`));return}this._masked?this._state=3:this._state=4}getMask(){if(this._bufferedBytes<4){this._loop=!1;return}this._mask=this.consume(4),this._state=4}getData(e){let t=a;if(this._payloadLength){if(this._bufferedBytes<this._payloadLength){this._loop=!1;return}t=this.consume(this._payloadLength),this._masked&&(this._mask[0]|this._mask[1]|this._mask[2]|this._mask[3])!==0&&u(t,this._mask)}if(this._opcode>7){this.controlMessage(t,e);return}if(this._compressed){this._state=5,this.decompress(t,e);return}if(t.length){if(this._maxFragments>0&&this._fragments.length>=this._maxFragments){e(this.createError(RangeError,`Too many message fragments`,!1,1008,`WS_ERR_TOO_MANY_BUFFERED_PARTS`));return}this._messageLength=this._totalPayloadLength,this._fragments.push(t)}this.dataMessage(e)}decompress(e,t){this._extensions[r.extensionName].decompress(e,this._fin,(e,n)=>{if(e)return t(e);if(n.length){if(this._messageLength+=n.length,this._messageLength>this._maxPayload&&this._maxPayload>0){t(this.createError(RangeError,`Max payload size exceeded`,!1,1009,`WS_ERR_UNSUPPORTED_MESSAGE_LENGTH`));return}if(this._maxFragments>0&&this._fragments.length>=this._maxFragments){t(this.createError(RangeError,`Too many message fragments`,!1,1008,`WS_ERR_TOO_MANY_BUFFERED_PARTS`));return}this._fragments.push(n)}this.dataMessage(t),this._state===0&&this.startLoop(t)})}dataMessage(e){if(!this._fin){this._state=0;return}let t=this._messageLength,n=this._fragments;if(this._totalPayloadLength=0,this._messageLength=0,this._fragmented=0,this._fragments=[],this._opcode===2){let r;r=this._binaryType===`nodebuffer`?c(n,t):this._binaryType===`arraybuffer`?l(c(n,t)):this._binaryType===`blob`?new Blob(n):n,this._allowSynchronousEvents?(this.emit(`message`,r,!0),this._state=0):(this._state=6,setImmediate(()=>{this.emit(`message`,r,!0),this._state=0,this.startLoop(e)}))}else{let r=c(n,t);if(!this._skipUTF8Validation&&!f(r)){e(this.createError(Error,`invalid UTF-8 sequence`,!0,1007,`WS_ERR_INVALID_UTF8`));return}this._state===5||this._allowSynchronousEvents?(this.emit(`message`,r,!1),this._state=0):(this._state=6,setImmediate(()=>{this.emit(`message`,r,!1),this._state=0,this.startLoop(e)}))}}controlMessage(e,t){if(this._opcode===8){if(e.length===0)this._loop=!1,this.emit(`conclude`,1005,a),this.end();else{let n=e.readUInt16BE(0);if(!d(n)){t(this.createError(RangeError,`invalid status code ${n}`,!0,1002,`WS_ERR_INVALID_CLOSE_CODE`));return}let r=new p(e.buffer,e.byteOffset+2,e.length-2);if(!this._skipUTF8Validation&&!f(r)){t(this.createError(Error,`invalid UTF-8 sequence`,!0,1007,`WS_ERR_INVALID_UTF8`));return}this._loop=!1,this.emit(`conclude`,n,r),this.end()}this._state=0;return}this._allowSynchronousEvents?(this.emit(this._opcode===9?`ping`:`pong`,e),this._state=0):(this._state=6,setImmediate(()=>{this.emit(this._opcode===9?`ping`:`pong`,e),this._state=0,this.startLoop(t)}))}createError(e,t,n,r,i){this._loop=!1,this._errored=!0;let a=new e(n?`Invalid WebSocket frame: ${t}`:t);return Error.captureStackTrace(a,this.createError),a.code=i,a[o]=r,a}}})),vi=x(((e,t)=>{let{Duplex:n}=T(`stream`),{randomFillSync:r}=T(`crypto`),{types:{isUint8Array:i}}=T(`util`),a=hi(),{EMPTY_BUFFER:o,kWebSocket:s,NOOP:c}=fi(),{isBlob:l,isValidStatusCode:u}=gi(),{mask:d,toBuffer:f}=pi(),p=Symbol(`kByteLength`),m=Buffer.alloc(4),h=8*1024,g,_=h;t.exports=class e{constructor(e,t,n){this._extensions=t||{},n&&(this._generateMask=n,this._maskBuffer=Buffer.alloc(4)),this._socket=e,this._firstFragment=!0,this._compress=!1,this._bufferedBytes=0,this._queue=[],this._state=0,this.onerror=c,this[s]=void 0}static frame(e,t){let n,i=!1,a=2,o=!1;t.mask&&(n=t.maskBuffer||m,t.generateMask?t.generateMask(n):(_===h&&(g===void 0&&(g=Buffer.alloc(h)),r(g,0,h),_=0),n[0]=g[_++],n[1]=g[_++],n[2]=g[_++],n[3]=g[_++]),o=(n[0]|n[1]|n[2]|n[3])===0,a=6);let s;typeof e==`string`?(!t.mask||o)&&t[p]!==void 0?s=t[p]:(e=Buffer.from(e),s=e.length):(s=e.length,i=t.mask&&t.readOnly&&!o);let c=s;s>=65536?(a+=8,c=127):s>125&&(a+=2,c=126);let l=Buffer.allocUnsafe(i?s+a:a);return l[0]=t.fin?t.opcode|128:t.opcode,t.rsv1&&(l[0]|=64),l[1]=c,c===126?l.writeUInt16BE(s,2):c===127&&(l[2]=l[3]=0,l.writeUIntBE(s,4,6)),!t.mask||(l[1]|=128,l[a-4]=n[0],l[a-3]=n[1],l[a-2]=n[2],l[a-1]=n[3],o)?[l,e]:i?(d(e,n,l,a,s),[l]):(d(e,n,e,0,s),[l,e])}close(t,n,r,a){let s;if(t===void 0)s=o;else if(typeof t!=`number`||!u(t))throw TypeError(`First argument must be a valid error code number`);else if(n===void 0||!n.length)s=Buffer.allocUnsafe(2),s.writeUInt16BE(t,0);else{let e=Buffer.byteLength(n);if(e>123)throw RangeError(`The message must not be greater than 123 bytes`);if(s=Buffer.allocUnsafe(2+e),s.writeUInt16BE(t,0),typeof n==`string`)s.write(n,2);else if(i(n))s.set(n,2);else throw TypeError(`Second argument must be a string or a Uint8Array`)}let c={[p]:s.length,fin:!0,generateMask:this._generateMask,mask:r,maskBuffer:this._maskBuffer,opcode:8,readOnly:!1,rsv1:!1};this._state===0?this.sendFrame(e.frame(s,c),a):this.enqueue([this.dispatch,s,!1,c,a])}ping(t,n,r){let i,a;if(typeof t==`string`?(i=Buffer.byteLength(t),a=!1):l(t)?(i=t.size,a=!1):(t=f(t),i=t.length,a=f.readOnly),i>125)throw RangeError(`The data size must not be greater than 125 bytes`);let o={[p]:i,fin:!0,generateMask:this._generateMask,mask:n,maskBuffer:this._maskBuffer,opcode:9,readOnly:a,rsv1:!1};l(t)?this._state===0?this.getBlobData(t,!1,o,r):this.enqueue([this.getBlobData,t,!1,o,r]):this._state===0?this.sendFrame(e.frame(t,o),r):this.enqueue([this.dispatch,t,!1,o,r])}pong(t,n,r){let i,a;if(typeof t==`string`?(i=Buffer.byteLength(t),a=!1):l(t)?(i=t.size,a=!1):(t=f(t),i=t.length,a=f.readOnly),i>125)throw RangeError(`The data size must not be greater than 125 bytes`);let o={[p]:i,fin:!0,generateMask:this._generateMask,mask:n,maskBuffer:this._maskBuffer,opcode:10,readOnly:a,rsv1:!1};l(t)?this._state===0?this.getBlobData(t,!1,o,r):this.enqueue([this.getBlobData,t,!1,o,r]):this._state===0?this.sendFrame(e.frame(t,o),r):this.enqueue([this.dispatch,t,!1,o,r])}send(e,t,n){let r=this._extensions[a.extensionName],i=t.binary?2:1,o=t.compress,s,c;typeof e==`string`?(s=Buffer.byteLength(e),c=!1):l(e)?(s=e.size,c=!1):(e=f(e),s=e.length,c=f.readOnly),this._firstFragment?(this._firstFragment=!1,o&&r&&r.params[r._isServer?`server_no_context_takeover`:`client_no_context_takeover`]&&(o=s>=r._threshold),this._compress=o):(o=!1,i=0),t.fin&&(this._firstFragment=!0);let u={[p]:s,fin:t.fin,generateMask:this._generateMask,mask:t.mask,maskBuffer:this._maskBuffer,opcode:i,readOnly:c,rsv1:o};l(e)?this._state===0?this.getBlobData(e,this._compress,u,n):this.enqueue([this.getBlobData,e,this._compress,u,n]):this._state===0?this.dispatch(e,this._compress,u,n):this.enqueue([this.dispatch,e,this._compress,u,n])}getBlobData(t,n,r,i){this._bufferedBytes+=r[p],this._state=2,t.arrayBuffer().then(t=>{if(this._socket.destroyed){let e=Error(`The socket was closed while the blob was being read`);process.nextTick(v,this,e,i);return}this._bufferedBytes-=r[p];let a=f(t);n?this.dispatch(a,n,r,i):(this._state=0,this.sendFrame(e.frame(a,r),i),this.dequeue())}).catch(e=>{process.nextTick(y,this,e,i)})}dispatch(t,n,r,i){if(!n){this.sendFrame(e.frame(t,r),i);return}let o=this._extensions[a.extensionName];this._bufferedBytes+=r[p],this._state=1,o.compress(t,r.fin,(t,n)=>{if(this._socket.destroyed){let e=Error(`The socket was closed while data was being compressed`);v(this,e,i);return}this._bufferedBytes-=r[p],this._state=0,r.readOnly=!1,this.sendFrame(e.frame(n,r),i),this.dequeue()})}dequeue(){for(;this._state===0&&this._queue.length;){let e=this._queue.shift();this._bufferedBytes-=e[3][p],Reflect.apply(e[0],this,e.slice(1))}}enqueue(e){this._bufferedBytes+=e[3][p],this._queue.push(e)}sendFrame(e,t){e.length===2?(this._socket.cork(),this._socket.write(e[0]),this._socket.write(e[1],t),this._socket.uncork()):this._socket.write(e[0],t)}};function v(e,t,n){typeof n==`function`&&n(t);for(let n=0;n<e._queue.length;n++){let r=e._queue[n],i=r[r.length-1];typeof i==`function`&&i(t)}}function y(e,t,n){v(e,t,n),e.onerror(t)}})),yi=x(((e,t)=>{let{kForOnEventAttribute:n,kListener:r}=fi(),i=Symbol(`kCode`),a=Symbol(`kData`),o=Symbol(`kError`),s=Symbol(`kMessage`),c=Symbol(`kReason`),l=Symbol(`kTarget`),u=Symbol(`kType`),d=Symbol(`kWasClean`);var f=class{constructor(e){this[l]=null,this[u]=e}get target(){return this[l]}get type(){return this[u]}};Object.defineProperty(f.prototype,"target",{enumerable:!0}),Object.defineProperty(f.prototype,"type",{enumerable:!0});var p=class extends f{constructor(e,t={}){super(e),this[i]=t.code===void 0?0:t.code,this[c]=t.reason===void 0?``:t.reason,this[d]=t.wasClean===void 0?!1:t.wasClean}get code(){return this[i]}get reason(){return this[c]}get wasClean(){return this[d]}};Object.defineProperty(p.prototype,"code",{enumerable:!0}),Object.defineProperty(p.prototype,"reason",{enumerable:!0}),Object.defineProperty(p.prototype,"wasClean",{enumerable:!0});var m=class extends f{constructor(e,t={}){super(e),this[o]=t.error===void 0?null:t.error,this[s]=t.message===void 0?``:t.message}get error(){return this[o]}get message(){return this[s]}};Object.defineProperty(m.prototype,"error",{enumerable:!0}),Object.defineProperty(m.prototype,"message",{enumerable:!0});var h=class extends f{constructor(e,t={}){super(e),this[a]=t.data===void 0?null:t.data}get data(){return this[a]}};Object.defineProperty(h.prototype,"data",{enumerable:!0}),t.exports={CloseEvent:p,ErrorEvent:m,Event:f,EventTarget:{addEventListener(e,t,i={}){for(let a of this.listeners(e))if(!i[n]&&a[r]===t&&!a[n])return;let a;if(e===`message`)a=function(e,n){let r=new h(`message`,{data:n?e:e.toString()});r[l]=this,g(t,this,r)};else if(e===`close`)a=function(e,n){let r=new p(`close`,{code:e,reason:n.toString(),wasClean:this._closeFrameReceived&&this._closeFrameSent});r[l]=this,g(t,this,r)};else if(e===`error`)a=function(e){let n=new m(`error`,{error:e,message:e.message});n[l]=this,g(t,this,n)};else if(e===`open`)a=function(){let e=new f(`open`);e[l]=this,g(t,this,e)};else return;a[n]=!!i[n],a[r]=t,i.once?this.once(e,a):this.on(e,a)},removeEventListener(e,t){for(let i of this.listeners(e))if(i[r]===t&&!i[n]){this.removeListener(e,i);break}}},MessageEvent:h};function g(e,t,n){typeof e==`object`&&e.handleEvent?e.handleEvent.call(e,n):e.call(t,n)}})),bi=x(((e,t)=>{let{tokenChars:n}=gi();function r(e,t,n){e[t]===void 0?e[t]=[n]:e[t].push(n)}function i(e){let t=Object.create(null),i=Object.create(null),a=!1,o=!1,s=!1,c,l,u=-1,d=-1,f=-1,p=0;for(;p<e.length;p++)if(d=e.charCodeAt(p),c===void 0)if(f===-1&&n[d]===1)u===-1&&(u=p);else if(p!==0&&(d===32||d===9))f===-1&&u!==-1&&(f=p);else if(d===59||d===44){if(u===-1)throw SyntaxError(`Unexpected character at index ${p}`);f===-1&&(f=p);let n=e.slice(u,f);d===44?(r(t,n,i),i=Object.create(null)):c=n,u=f=-1}else throw SyntaxError(`Unexpected character at index ${p}`);else if(l===void 0)if(f===-1&&n[d]===1)u===-1&&(u=p);else if(d===32||d===9)f===-1&&u!==-1&&(f=p);else if(d===59||d===44){if(u===-1)throw SyntaxError(`Unexpected character at index ${p}`);f===-1&&(f=p),r(i,e.slice(u,f),!0),d===44&&(r(t,c,i),i=Object.create(null),c=void 0),u=f=-1}else if(d===61&&u!==-1&&f===-1)l=e.slice(u,p),u=f=-1;else throw SyntaxError(`Unexpected character at index ${p}`);else if(o){if(n[d]!==1)throw SyntaxError(`Unexpected character at index ${p}`);u===-1?u=p:a||=!0,o=!1}else if(s)if(n[d]===1)u===-1&&(u=p);else if(d===34&&u!==-1)s=!1,f=p;else if(d===92)o=!0;else throw SyntaxError(`Unexpected character at index ${p}`);else if(d===34&&e.charCodeAt(p-1)===61)s=!0;else if(f===-1&&n[d]===1)u===-1&&(u=p);else if(u!==-1&&(d===32||d===9))f===-1&&(f=p);else if(d===59||d===44){if(u===-1)throw SyntaxError(`Unexpected character at index ${p}`);f===-1&&(f=p);let n=e.slice(u,f);a&&=(n=n.replace(/\\/g,``),!1),r(i,l,n),d===44&&(r(t,c,i),i=Object.create(null),c=void 0),l=void 0,u=f=-1}else throw SyntaxError(`Unexpected character at index ${p}`);if(u===-1||s||d===32||d===9)throw SyntaxError(`Unexpected end of input`);f===-1&&(f=p);let m=e.slice(u,f);return c===void 0?r(t,m,i):(l===void 0?r(i,m,!0):a?r(i,l,m.replace(/\\/g,``)):r(i,l,m),r(t,c,i)),t}function a(e){return Object.keys(e).map(t=>{let n=e[t];return Array.isArray(n)||(n=[n]),n.map(e=>[t].concat(Object.keys(e).map(t=>{let n=e[t];return Array.isArray(n)||(n=[n]),n.map(e=>e===!0?t:`${t}=${e}`).join(`; `)})).join(`; `)).join(`, `)}).join(`, `)}t.exports={format:a,parse:i}})),xi=x(((e,t)=>{let n=T(`events`),r=T(`https`),i=T(`http`),a=T(`net`),o=T(`tls`),{randomBytes:s,createHash:c}=T(`crypto`),{Duplex:l,Readable:u}=T(`stream`),{URL:d}=T(`url`),f=hi(),p=_i(),m=vi(),{isBlob:h}=gi(),{BINARY_TYPES:g,CLOSE_TIMEOUT:_,EMPTY_BUFFER:v,GUID:y,kForOnEventAttribute:b,kListener:x,kStatusCode:S,kWebSocket:C,NOOP:w}=fi(),{EventTarget:{addEventListener:E,removeEventListener:D}}=yi(),{format:O,parse:k}=bi(),{toBuffer:ee}=pi(),A=Symbol(`kAborted`),te=[8,13],j=[`CONNECTING`,`OPEN`,`CLOSING`,`CLOSED`],ne=/^[!#$%&'*+\-.0-9A-Z^_`|a-z~]+$/;var M=class e extends n{constructor(t,n,r){super(),this._binaryType=g[0],this._closeCode=1006,this._closeFrameReceived=!1,this._closeFrameSent=!1,this._closeMessage=v,this._closeTimer=null,this._errorEmitted=!1,this._extensions={},this._paused=!1,this._protocol=``,this._readyState=e.CONNECTING,this._receiver=null,this._sender=null,this._socket=null,t===null?(this._autoPong=r.autoPong,this._closeTimeout=r.closeTimeout,this._isServer=!0):(this._bufferedAmount=0,this._isServer=!1,this._redirects=0,n===void 0?n=[]:Array.isArray(n)||(typeof n==`object`&&n?(r=n,n=[]):n=[n]),re(this,t,n,r))}get binaryType(){return this._binaryType}set binaryType(e){g.includes(e)&&(this._binaryType=e,this._receiver&&(this._receiver._binaryType=e))}get bufferedAmount(){return this._socket?this._socket._writableState.length+this._sender._bufferedBytes:this._bufferedAmount}get extensions(){return Object.keys(this._extensions).join()}get isPaused(){return this._paused}get onclose(){return null}get onerror(){return null}get onopen(){return null}get onmessage(){return null}get protocol(){return this._protocol}get readyState(){return this._readyState}get url(){return this._url}setSocket(t,n,r){let i=new p({allowSynchronousEvents:r.allowSynchronousEvents,binaryType:this.binaryType,extensions:this._extensions,isServer:this._isServer,maxBufferedChunks:r.maxBufferedChunks,maxFragments:r.maxFragments,maxPayload:r.maxPayload,skipUTF8Validation:r.skipUTF8Validation}),a=new m(t,this._extensions,r.generateMask);this._receiver=i,this._sender=a,this._socket=t,i[C]=this,a[C]=this,t[C]=this,i.on(`conclude`,le),i.on(`drain`,ue),i.on(`error`,N),i.on(`message`,fe),i.on(`ping`,pe),i.on(`pong`,me),a.onerror=ge,t.setTimeout&&t.setTimeout(0),t.setNoDelay&&t.setNoDelay(),n.length>0&&t.unshift(n),t.on(`close`,ve),t.on(`data`,P),t.on(`end`,ye),t.on(`error`,be),this._readyState=e.OPEN,this.emit(`open`)}emitClose(){if(!this._socket){this._readyState=e.CLOSED,this.emit(`close`,this._closeCode,this._closeMessage);return}this._extensions[f.extensionName]&&this._extensions[f.extensionName].cleanup(),this._receiver.removeAllListeners(),this._readyState=e.CLOSED,this.emit(`close`,this._closeCode,this._closeMessage)}close(t,n){if(this.readyState!==e.CLOSED){if(this.readyState===e.CONNECTING){se(this,this._req,`WebSocket was closed before the connection was established`);return}if(this.readyState===e.CLOSING){this._closeFrameSent&&(this._closeFrameReceived||this._receiver._writableState.errorEmitted)&&this._socket.end();return}this._readyState=e.CLOSING,this._sender.close(t,n,!this._isServer,e=>{e||(this._closeFrameSent=!0,(this._closeFrameReceived||this._receiver._writableState.errorEmitted)&&this._socket.end())}),_e(this)}}pause(){this.readyState===e.CONNECTING||this.readyState===e.CLOSED||(this._paused=!0,this._socket.pause())}ping(t,n,r){if(this.readyState===e.CONNECTING)throw Error(`WebSocket is not open: readyState 0 (CONNECTING)`);if(typeof t==`function`?(r=t,t=n=void 0):typeof n==`function`&&(r=n,n=void 0),typeof t==`number`&&(t=t.toString()),this.readyState!==e.OPEN){ce(this,t,r);return}n===void 0&&(n=!this._isServer),this._sender.ping(t||v,n,r)}pong(t,n,r){if(this.readyState===e.CONNECTING)throw Error(`WebSocket is not open: readyState 0 (CONNECTING)`);if(typeof t==`function`?(r=t,t=n=void 0):typeof n==`function`&&(r=n,n=void 0),typeof t==`number`&&(t=t.toString()),this.readyState!==e.OPEN){ce(this,t,r);return}n===void 0&&(n=!this._isServer),this._sender.pong(t||v,n,r)}resume(){this.readyState===e.CONNECTING||this.readyState===e.CLOSED||(this._paused=!1,this._receiver._writableState.needDrain||this._socket.resume())}send(t,n,r){if(this.readyState===e.CONNECTING)throw Error(`WebSocket is not open: readyState 0 (CONNECTING)`);if(typeof n==`function`&&(r=n,n={}),typeof t==`number`&&(t=t.toString()),this.readyState!==e.OPEN){ce(this,t,r);return}let i={binary:typeof t!=`string`,mask:!this._isServer,compress:!0,fin:!0,...n};this._extensions[f.extensionName]||(i.compress=!1),this._sender.send(t||v,i,r)}terminate(){if(this.readyState!==e.CLOSED){if(this.readyState===e.CONNECTING){se(this,this._req,`WebSocket was closed before the connection was established`);return}this._socket&&(this._readyState=e.CLOSING,this._socket.destroy())}}};Object.defineProperty(M,"CONNECTING",{enumerable:!0,value:j.indexOf(`CONNECTING`)}),Object.defineProperty(M.prototype,"CONNECTING",{enumerable:!0,value:j.indexOf(`CONNECTING`)}),Object.defineProperty(M,"OPEN",{enumerable:!0,value:j.indexOf(`OPEN`)}),Object.defineProperty(M.prototype,"OPEN",{enumerable:!0,value:j.indexOf(`OPEN`)}),Object.defineProperty(M,"CLOSING",{enumerable:!0,value:j.indexOf(`CLOSING`)}),Object.defineProperty(M.prototype,"CLOSING",{enumerable:!0,value:j.indexOf(`CLOSING`)}),Object.defineProperty(M,"CLOSED",{enumerable:!0,value:j.indexOf(`CLOSED`)}),Object.defineProperty(M.prototype,"CLOSED",{enumerable:!0,value:j.indexOf(`CLOSED`)}),[`binaryType`,`bufferedAmount`,`extensions`,`isPaused`,`protocol`,`readyState`,`url`].forEach(e=>{Object.defineProperty(M.prototype,e,{enumerable:!0})}),[`open`,`error`,`close`,`message`].forEach(e=>{Object.defineProperty(M.prototype,`on${e}`,{enumerable:!0,get(){for(let t of this.listeners(e))if(t[b])return t[x];return null},set(t){for(let t of this.listeners(e))if(t[b]){this.removeListener(e,t);break}typeof t==`function`&&this.addEventListener(e,t,{[b]:!0})}})}),M.prototype.addEventListener=E,M.prototype.removeEventListener=D,t.exports=M;function re(e,t,n,a){let o={allowSynchronousEvents:!0,autoPong:!0,closeTimeout:_,protocolVersion:te[1],maxBufferedChunks:1024*1024,maxFragments:128*1024,maxPayload:100*1024*1024,skipUTF8Validation:!1,perMessageDeflate:!0,followRedirects:!1,maxRedirects:10,...a,socketPath:void 0,hostname:void 0,protocol:void 0,timeout:void 0,method:`GET`,host:void 0,path:void 0,port:void 0};if(e._autoPong=o.autoPong,e._closeTimeout=o.closeTimeout,!te.includes(o.protocolVersion))throw RangeError(`Unsupported protocol version: ${o.protocolVersion} (supported versions: ${te.join(`, `)})`);let l;if(t instanceof d)l=t;else try{l=new d(t)}catch{throw SyntaxError(`Invalid URL: ${t}`)}l.protocol===`http:`?l.protocol=`ws:`:l.protocol===`https:`&&(l.protocol=`wss:`),e._url=l.href;let u=l.protocol===`wss:`,p=l.protocol===`ws+unix:`,m;if(l.protocol!==`ws:`&&!u&&!p?m=`The URL's protocol must be one of "ws:", "wss:", "http:", "https:", or "ws+unix:"`:p&&!l.pathname?m=`The URL's pathname is empty`:l.hash&&(m=`The URL contains a fragment identifier`),m){let t=SyntaxError(m);if(e._redirects===0)throw t;ie(e,t);return}let h=u?443:80,g=s(16).toString(`base64`),v=u?r.request:i.request,b=new Set,x;if(o.createConnection=o.createConnection||(u?oe:ae),o.defaultPort=o.defaultPort||h,o.port=l.port||h,o.host=l.hostname.startsWith(`[`)?l.hostname.slice(1,-1):l.hostname,o.headers={...o.headers,"Sec-WebSocket-Version":o.protocolVersion,"Sec-WebSocket-Key":g,Connection:`Upgrade`,Upgrade:`websocket`},o.path=l.pathname+l.search,o.timeout=o.handshakeTimeout,o.perMessageDeflate&&(x=new f({...o.perMessageDeflate,isServer:!1,maxPayload:o.maxPayload}),o.headers[`Sec-WebSocket-Extensions`]=O({[f.extensionName]:x.offer()})),n.length){for(let e of n){if(typeof e!=`string`||!ne.test(e)||b.has(e))throw SyntaxError(`An invalid or duplicated subprotocol was specified`);b.add(e)}o.headers[`Sec-WebSocket-Protocol`]=n.join(`,`)}if(o.origin&&(o.protocolVersion<13?o.headers[`Sec-WebSocket-Origin`]=o.origin:o.headers.Origin=o.origin),(l.username||l.password)&&(o.auth=`${l.username}:${l.password}`),p){let e=o.path.split(`:`);o.socketPath=e[0],o.path=e[1]}let S;if(o.followRedirects){if(e._redirects===0){e._originalIpc=p,e._originalSecure=u,e._originalHostOrSocketPath=p?o.socketPath:l.host;let t=a&&a.headers;if(a={...a,headers:{}},t)for(let[e,n]of Object.entries(t))a.headers[e.toLowerCase()]=n}else if(e.listenerCount(`redirect`)===0){let t=p?e._originalIpc?o.socketPath===e._originalHostOrSocketPath:!1:e._originalIpc?!1:l.host===e._originalHostOrSocketPath;(!t||e._originalSecure&&!u)&&(delete o.headers.authorization,delete o.headers.cookie,t||delete o.headers.host,o.auth=void 0)}o.auth&&!a.headers.authorization&&(a.headers.authorization=`Basic `+Buffer.from(o.auth).toString(`base64`)),S=e._req=v(o),e._redirects&&e.emit(`redirect`,e.url,S)}else S=e._req=v(o);o.timeout&&S.on(`timeout`,()=>{se(e,S,`Opening handshake has timed out`)}),S.on(`error`,t=>{S===null||S[A]||(S=e._req=null,ie(e,t))}),S.on(`response`,r=>{let i=r.headers.location,s=r.statusCode;if(i&&o.followRedirects&&s>=300&&s<400){if(++e._redirects>o.maxRedirects){se(e,S,`Maximum redirects exceeded`);return}S.abort();let r;try{r=new d(i,t)}catch{ie(e,SyntaxError(`Invalid URL: ${i}`));return}re(e,r,n,a)}else e.emit(`unexpected-response`,S,r)||se(e,S,`Unexpected server response: ${r.statusCode}`)}),S.on(`upgrade`,(t,n,r)=>{if(e.emit(`upgrade`,t),e.readyState!==M.CONNECTING)return;S=e._req=null;let i=t.headers.upgrade;if(i===void 0||i.toLowerCase()!==`websocket`){se(e,n,`Invalid Upgrade header`);return}let a=c(`sha1`).update(g+y).digest(`base64`);if(t.headers[`sec-websocket-accept`]!==a){se(e,n,`Invalid Sec-WebSocket-Accept header`);return}let s=t.headers[`sec-websocket-protocol`],l;if(s===void 0?b.size&&(l=`Server sent no subprotocol`):b.size?b.has(s)||(l=`Server sent an invalid subprotocol`):l=`Server sent a subprotocol but none was requested`,l){se(e,n,l);return}s&&(e._protocol=s);let u=t.headers[`sec-websocket-extensions`];if(u!==void 0){if(!x){se(e,n,`Server sent a Sec-WebSocket-Extensions header but no extension was requested`);return}let t;try{t=k(u)}catch{se(e,n,`Invalid Sec-WebSocket-Extensions header`);return}let r=Object.keys(t);if(r.length!==1||r[0]!==f.extensionName){se(e,n,`Server indicated an extension that was not requested`);return}try{x.accept(t[f.extensionName])}catch{se(e,n,`Invalid Sec-WebSocket-Extensions header`);return}e._extensions[f.extensionName]=x}e.setSocket(n,r,{allowSynchronousEvents:o.allowSynchronousEvents,generateMask:o.generateMask,maxBufferedChunks:o.maxBufferedChunks,maxFragments:o.maxFragments,maxPayload:o.maxPayload,skipUTF8Validation:o.skipUTF8Validation})}),o.finishRequest?o.finishRequest(S,e):S.end()}function ie(e,t){e._readyState=M.CLOSING,e._errorEmitted=!0,e.emit(`error`,t),e.emitClose()}function ae(e){return e.path=e.socketPath,a.connect(e)}function oe(e){return e.path=void 0,!e.servername&&e.servername!==``&&(e.servername=a.isIP(e.host)?``:e.host),o.connect(e)}function se(e,t,n){e._readyState=M.CLOSING;let r=Error(n);Error.captureStackTrace(r,se),t.setHeader?(t[A]=!0,t.abort(),t.socket&&!t.socket.destroyed&&t.socket.destroy(),process.nextTick(ie,e,r)):(t.destroy(r),t.once(`error`,e.emit.bind(e,`error`)),t.once(`close`,e.emitClose.bind(e)))}function ce(e,t,n){if(t){let n=h(t)?t.size:ee(t).length;e._socket?e._sender._bufferedBytes+=n:e._bufferedAmount+=n}if(n){let t=Error(`WebSocket is not open: readyState ${e.readyState} (${j[e.readyState]})`);process.nextTick(n,t)}}function le(e,t){let n=this[C];n._closeFrameReceived=!0,n._closeMessage=t,n._closeCode=e,n._socket[C]!==void 0&&(n._socket.removeListener(`data`,P),process.nextTick(he,n._socket),e===1005?n.close():n.close(e,t))}function ue(){let e=this[C];e.isPaused||e._socket.resume()}function N(e){let t=this[C];t._socket[C]!==void 0&&(t._socket.removeListener(`data`,P),process.nextTick(he,t._socket),t.close(e[S])),t._errorEmitted||(t._errorEmitted=!0,t.emit(`error`,e))}function de(){this[C].emitClose()}function fe(e,t){this[C].emit(`message`,e,t)}function pe(e){let t=this[C];t._autoPong&&t.pong(e,!this._isServer,w),t.emit(`ping`,e)}function me(e){this[C].emit(`pong`,e)}function he(e){e.resume()}function ge(e){let t=this[C];t.readyState!==M.CLOSED&&(t.readyState===M.OPEN&&(t._readyState=M.CLOSING,_e(t)),this._socket.end(),t._errorEmitted||(t._errorEmitted=!0,t.emit(`error`,e)))}function _e(e){e._closeTimer=setTimeout(e._socket.destroy.bind(e._socket),e._closeTimeout)}function ve(){let e=this[C];if(this.removeListener(`close`,ve),this.removeListener(`data`,P),this.removeListener(`end`,ye),e._readyState=M.CLOSING,!this._readableState.endEmitted&&!e._closeFrameReceived&&!e._receiver._writableState.errorEmitted&&this._readableState.length!==0){let t=this.read(this._readableState.length);e._receiver.write(t)}e._receiver.end(),this[C]=void 0,clearTimeout(e._closeTimer),e._receiver._writableState.finished||e._receiver._writableState.errorEmitted?e.emitClose():(e._receiver.on(`error`,de),e._receiver.on(`finish`,de))}function P(e){this[C]._receiver.write(e)||this.pause()}function ye(){let e=this[C];e._readyState=M.CLOSING,e._receiver.end(),this.end()}function be(){let e=this[C];this.removeListener(`error`,be),this.on(`error`,w),e&&(e._readyState=M.CLOSING,this.destroy())}})),Si=x(((e,t)=>{xi();let{Duplex:n}=T(`stream`);function r(e){e.emit(`close`)}function i(){!this.destroyed&&this._writableState.finished&&this.destroy()}function a(e){this.removeListener(`error`,a),this.destroy(),this.listenerCount(`error`)===0&&this.emit(`error`,e)}function o(e,t){let o=!0,s=new n({...t,autoDestroy:!1,emitClose:!1,objectMode:!1,writableObjectMode:!1});return e.on(`message`,function(t,n){let r=!n&&s._readableState.objectMode?t.toString():t;s.push(r)||e.pause()}),e.once(`error`,function(e){s.destroyed||(o=!1,s.destroy(e))}),e.once(`close`,function(){s.destroyed||s.push(null)}),s._destroy=function(t,n){if(e.readyState===e.CLOSED){n(t),process.nextTick(r,s);return}let i=!1;e.once(`error`,function(e){i=!0,n(e)}),e.once(`close`,function(){i||n(t),process.nextTick(r,s)}),o&&e.terminate()},s._final=function(t){if(e.readyState===e.CONNECTING){e.once(`open`,function(){s._final(t)});return}e._socket!==null&&(e._socket._writableState.finished?(t(),s._readableState.endEmitted&&s.destroy()):(e._socket.once(`finish`,function(){t()}),e.close()))},s._read=function(){e.isPaused&&e.resume()},s._write=function(t,n,r){if(e.readyState===e.CONNECTING){e.once(`open`,function(){s._write(t,n,r)});return}e.send(t,r)},s.on(`end`,i),s.on(`error`,a),s}t.exports=o})),Ci=x(((e,t)=>{let{tokenChars:n}=gi();function r(e){let t=new Set,r=-1,i=-1,a=0;for(;a<e.length;a++){let o=e.charCodeAt(a);if(i===-1&&n[o]===1)r===-1&&(r=a);else if(a!==0&&(o===32||o===9))i===-1&&r!==-1&&(i=a);else if(o===44){if(r===-1)throw SyntaxError(`Unexpected character at index ${a}`);i===-1&&(i=a);let n=e.slice(r,i);if(t.has(n))throw SyntaxError(`The "${n}" subprotocol is duplicated`);t.add(n),r=i=-1}else throw SyntaxError(`Unexpected character at index ${a}`)}if(r===-1||i!==-1)throw SyntaxError(`Unexpected end of input`);let o=e.slice(r,a);if(t.has(o))throw SyntaxError(`The "${o}" subprotocol is duplicated`);return t.add(o),t}t.exports={parse:r}})),wi=x(((e,t)=>{let n=T(`events`),r=T(`http`),{Duplex:i}=T(`stream`),{createHash:a}=T(`crypto`),o=bi(),s=hi(),c=Ci(),l=xi(),{CLOSE_TIMEOUT:u,GUID:d,kWebSocket:f}=fi(),p=/^[+/0-9A-Za-z]{22}==$/;t.exports=class extends n{constructor(e,t){if(super(),e={allowSynchronousEvents:!0,autoPong:!0,maxBufferedChunks:1024*1024,maxFragments:128*1024,maxPayload:100*1024*1024,skipUTF8Validation:!1,perMessageDeflate:!1,handleProtocols:null,clientTracking:!0,closeTimeout:u,verifyClient:null,noServer:!1,backlog:null,server:null,host:null,path:null,port:null,WebSocket:l,...e},e.port==null&&!e.server&&!e.noServer||e.port!=null&&(e.server||e.noServer)||e.server&&e.noServer)throw TypeError(`One and only one of the "port", "server", or "noServer" options must be specified`);if(e.port==null?e.server&&(this._server=e.server):(this._server=r.createServer((e,t)=>{let n=r.STATUS_CODES[426];t.writeHead(426,{"Content-Length":n.length,"Content-Type":`text/plain`}),t.end(n)}),this._server.listen(e.port,e.host,e.backlog,t)),this._server){let e=this.emit.bind(this,`connection`);this._removeListeners=m(this._server,{listening:this.emit.bind(this,`listening`),error:this.emit.bind(this,`error`),upgrade:(t,n,r)=>{this.handleUpgrade(t,n,r,e)}})}e.perMessageDeflate===!0&&(e.perMessageDeflate={}),e.clientTracking&&(this.clients=new Set,this._shouldEmitClose=!1),this.options=e,this._state=0}address(){if(this.options.noServer)throw Error(`The server is operating in "noServer" mode`);return this._server?this._server.address():null}close(e){if(this._state===2){e&&this.once(`close`,()=>{e(Error(`The server is not running`))}),process.nextTick(h,this);return}if(e&&this.once(`close`,e),this._state!==1)if(this._state=1,this.options.noServer||this.options.server)this._server&&(this._removeListeners(),this._removeListeners=this._server=null),this.clients&&this.clients.size?this._shouldEmitClose=!0:process.nextTick(h,this);else{let e=this._server;this._removeListeners(),this._removeListeners=this._server=null,e.close(()=>{h(this)})}}shouldHandle(e){if(this.options.path){let t=e.url.indexOf(`?`);if((t===-1?e.url:e.url.slice(0,t))!==this.options.path)return!1}return!0}handleUpgrade(e,t,n,r){t.on(`error`,g);let i=e.headers[`sec-websocket-key`],a=e.headers.upgrade,l=+e.headers[`sec-websocket-version`];if(e.method!==`GET`){v(this,e,t,405,`Invalid HTTP method`);return}if(a===void 0||a.toLowerCase()!==`websocket`){v(this,e,t,400,`Invalid Upgrade header`);return}if(i===void 0||!p.test(i)){v(this,e,t,400,`Missing or invalid Sec-WebSocket-Key header`);return}if(l!==13&&l!==8){v(this,e,t,400,`Missing or invalid Sec-WebSocket-Version header`,{"Sec-WebSocket-Version":`13, 8`});return}if(!this.shouldHandle(e)){_(t,400);return}let u=e.headers[`sec-websocket-protocol`],d=new Set;if(u!==void 0)try{d=c.parse(u)}catch{v(this,e,t,400,`Invalid Sec-WebSocket-Protocol header`);return}let f=e.headers[`sec-websocket-extensions`],m={};if(this.options.perMessageDeflate&&f!==void 0){let n=new s({...this.options.perMessageDeflate,isServer:!0,maxPayload:this.options.maxPayload});try{let e=o.parse(f);e[s.extensionName]&&(n.accept(e[s.extensionName]),m[s.extensionName]=n)}catch{v(this,e,t,400,`Invalid or unacceptable Sec-WebSocket-Extensions header`);return}}if(this.options.verifyClient){let a={origin:e.headers[`${l===8?`sec-websocket-origin`:`origin`}`],secure:!!(e.socket.authorized||e.socket.encrypted),req:e};if(this.options.verifyClient.length===2){this.options.verifyClient(a,(a,o,s,c)=>{if(!a)return _(t,o||401,s,c);this.completeUpgrade(m,i,d,e,t,n,r)});return}if(!this.options.verifyClient(a))return _(t,401)}this.completeUpgrade(m,i,d,e,t,n,r)}completeUpgrade(e,t,n,r,i,c,l){if(!i.readable||!i.writable)return i.destroy();if(i[f])throw Error(`server.handleUpgrade() was called more than once with the same socket, possibly due to a misconfiguration`);if(this._state>0)return _(i,503);let u=[`HTTP/1.1 101 Switching Protocols`,`Upgrade: websocket`,`Connection: Upgrade`,`Sec-WebSocket-Accept: ${a(`sha1`).update(t+d).digest(`base64`)}`],p=new this.options.WebSocket(null,void 0,this.options);if(n.size){let e=this.options.handleProtocols?this.options.handleProtocols(n,r):n.values().next().value;e&&(u.push(`Sec-WebSocket-Protocol: ${e}`),p._protocol=e)}if(e[s.extensionName]){let t=e[s.extensionName].params,n=o.format({[s.extensionName]:[t]});u.push(`Sec-WebSocket-Extensions: ${n}`),p._extensions=e}this.emit(`headers`,u,r),i.write(u.concat(`\r
|
|
312
312
|
`).join(`\r
|
|
313
313
|
`)),i.removeListener(`error`,g),p.setSocket(i,c,{allowSynchronousEvents:this.options.allowSynchronousEvents,maxBufferedChunks:this.options.maxBufferedChunks,maxFragments:this.options.maxFragments,maxPayload:this.options.maxPayload,skipUTF8Validation:this.options.skipUTF8Validation}),this.clients&&(this.clients.add(p),p.on(`close`,()=>{this.clients.delete(p),this._shouldEmitClose&&!this.clients.size&&process.nextTick(h,this)})),l(p,r)}};function m(e,t){for(let n of Object.keys(t))e.on(n,t[n]);return function(){for(let n of Object.keys(t))e.removeListener(n,t[n])}}function h(e){e._state=2,e.emit(`close`)}function g(){this.destroy()}function _(e,t,n,i){n||=r.STATUS_CODES[t],i={Connection:`close`,"Content-Type":`text/html`,"Content-Length":Buffer.byteLength(n),...i},e.once(`finish`,e.destroy),e.end(`HTTP/1.1 ${t} ${r.STATUS_CODES[t]}\r\n`+Object.keys(i).map(e=>`${e}: ${i[e]}`).join(`\r
|
|
314
314
|
`)+`\r
|
|
315
315
|
\r
|
|
316
|
-
`+n)}function v(e,t,n,r,i,a){if(e.listenerCount(`wsClientError`)){let r=Error(i);Error.captureStackTrace(r,v),e.emit(`wsClientError`,r,n,t)}else _(n,r,i,a)}})),
|
|
316
|
+
`+n)}function v(e,t,n,r,i,a){if(e.listenerCount(`wsClientError`)){let r=Error(i);Error.captureStackTrace(r,v),e.emit(`wsClientError`,r,n,t)}else _(n,r,i,a)}})),Ti,Ei,Di=b((()=>{Si(),bi(),hi(),_i(),vi(),Ci(),Ti=w(xi(),1),wi(),Ei=Ti.default})),Oi,ki=b((()=>{Di(),Oi=globalThis,Oi.WebSocket||=Ei,Oi.window||=globalThis,Oi.self||=globalThis,Oi.window.__REACT_DEVTOOLS_COMPONENT_FILTERS__=[{type:1,value:7,isEnabled:!0},{type:2,value:`InternalApp`,isEnabled:!0,isValid:!0},{type:2,value:`InternalAppContext`,isEnabled:!0,isValid:!0},{type:2,value:`InternalStdoutContext`,isEnabled:!0,isValid:!0},{type:2,value:`InternalStderrContext`,isEnabled:!0,isValid:!0},{type:2,value:`InternalStdinContext`,isEnabled:!0,isValid:!0},{type:2,value:`InternalFocusContext`,isEnabled:!0,isValid:!0}]})),Ai,ji=b((()=>{Ai={initialize(){},connectToDevTools(){}}})),Mi=S({}),Ni,Pi=b((async()=>{ki(),Di(),ji(),Ni=async()=>new Promise(e=>{let t=new Ei(`ws://localhost:8097`),n=setTimeout(()=>{t.terminate(),e(!1)},2e3);n.unref(),t.on(`open`,()=>{clearTimeout(n),t.terminate(),e(!0)}),t.on(`error`,()=>{clearTimeout(n),t.terminate(),e(!1)})}),await Ni()?(Ai.initialize(),Ai.connectToDevTools()):console.warn(`DEV is set to true, but the React DevTools server is not running. Start it with:
|
|
317
317
|
|
|
318
318
|
$ npx react-devtools
|
|
319
|
-
`)}));if(r.env.DEV===`true`){let e=!1;try{import.meta.resolve(`react-devtools-core`),e=!0}catch{}e&&await Ni().then(()=>ji)}const Pi=(e,t)=>{if(e===t)return;if(!e)return t;let n={},r=!1;for(let i of Object.keys(e))(!t||!Object.hasOwn(t,i))&&(n[i]=void 0,r=!0);if(t)for(let i of Object.keys(t))t[i]!==e[i]&&(n[i]=t[i],r=!0);return r?n:void 0},Fi=e=>{e?.unsetMeasureFunc(),e?.freeRecursive()};let Ii=F.NoEventPriority,Li;async function Ri(){let e=(await import(`node:fs`)).readFileSync(new URL(`../package.json`,import.meta.url),`utf8`),t=JSON.parse(e);return{name:t?.name,version:t?.version}}let zi={name:`ink`,version:N.version};if(r.env.DEV===`true`)try{let e=await Ri();zi={name:e.name||zi.name,version:e.version||zi.version}}catch(e){console.warn(`Failed to load package.json in development mode. Falling back to default renderer metadata.`,e)}var Bi=(0,_n.default)({getRootHostContext:()=>({isInsideText:!1}),prepareForCommit:()=>null,preparePortalMount:()=>null,clearContainer:()=>!1,resetAfterCommit(e){if(typeof e.onComputeLayout==`function`&&e.onComputeLayout(),ei(e),e.staticNode!==e.previousStaticNode&&(e.previousStaticNode=e.staticNode,typeof e.onStaticChange==`function`&&e.onStaticChange()),e.isStaticDirty){e.isStaticDirty=!1,typeof e.onImmediateRender==`function`&&e.onImmediateRender();return}typeof e.onRender==`function`&&e.onRender()},getChildHostContext(e,t){let n=e.isInsideText,r=t===`ink-text`||t===`ink-virtual-text`;return n===r?e:{isInsideText:r}},shouldSetTextContent:()=>!1,createInstance(e,t,n,r){if(r.isInsideText&&e===`ink-box`)throw Error(`<Box> can’t be nested inside <Text> component`);let i=Ur(e===`ink-text`&&r.isInsideText?`ink-virtual-text`:e);for(let[e,r]of Object.entries(t))if(e!==`children`){if(e===`style`){Jr(i,r),i.yogaNode&&ui(i.yogaNode,r);continue}if(e===`internal_transform`){i.internal_transform=r;continue}if(e===`internal_static`){Li=n,i.internal_static=!0,n.isStaticDirty=!0,n.staticNode=i;continue}qr(i,e,r)}return i},createTextInstance(e,t,n){if(!n.isInsideText)throw Error(`Text string "${e}" must be rendered inside <Text> component`);return Yr(e)},resetTextContent(){},hideTextInstance(e){$r(e,``)},unhideTextInstance(e,t){$r(e,t)},getPublicInstance:e=>e,hideInstance(e){e.yogaNode?.setDisplay(I.DISPLAY_NONE)},unhideInstance(e){e.yogaNode?.setDisplay(I.DISPLAY_FLEX)},appendInitialChild:Wr,appendChild:Wr,insertBefore:Gr,finalizeInitialChildren(){return!1},isPrimaryRenderer:!0,supportsMutation:!0,supportsPersistence:!1,supportsHydration:!1,supportsMicrotasks:!0,scheduleMicrotask:queueMicrotask,scheduleCallback:gn.unstable_scheduleCallback,cancelCallback:gn.unstable_cancelCallback,shouldYield:gn.unstable_shouldYield,now:gn.unstable_now,scheduleTimeout:setTimeout,cancelTimeout:clearTimeout,noTimeout:-1,beforeActiveInstanceBlur(){},afterActiveInstanceBlur(){},detachDeletedInstance(){},getInstanceFromNode:()=>null,prepareScopeUpdate(){},getInstanceFromScope:()=>null,appendChildToContainer:Wr,insertInContainerBefore:Gr,removeChildFromContainer(e,t){Kr(e,t),Fi(t.yogaNode),t.internal_static&&Li?.staticNode===t&&(Li.staticNode=void 0)},commitUpdate(e,t,n,r){Li&&e.internal_static&&(Li.isStaticDirty=!0);let i=Pi(n,r),a=Pi(n.style,r.style);if(!(!i&&!a)){if(i)for(let[t,n]of Object.entries(i)){if(t===`style`){Jr(e,n);continue}if(t===`internal_transform`){e.internal_transform=n;continue}if(t===`internal_static`){e.internal_static=!0;continue}qr(e,t,n)}a&&e.yogaNode&&ui(e.yogaNode,a,r.style??{})}},commitTextUpdate(e,t,n){$r(e,n)},removeChild(e,t){Kr(e,t),Fi(t.yogaNode),t.internal_static&&Li?.staticNode===t&&(Li.staticNode=void 0)},setCurrentUpdatePriority(e){Ii=e},getCurrentUpdatePriority:()=>Ii,resolveUpdatePriority(){return Ii===F.NoEventPriority?F.DefaultEventPriority:Ii},maySuspendCommit(){return!0},NotPendingTransition:void 0,HostTransitionContext:(0,N.createContext)(null),resetFormInstance(){},requestPostPaintCallback(){},shouldAttemptEagerTransition(){return!1},trackSchedulerEvent(){},resolveEventType(){return null},resolveEventTimeStamp(){return-1.1},preloadInstance(){return!0},startSuspendingCommit(){},suspendInstance(){},waitForCommitToBeReady(){return null},rendererPackageName:zi.name,rendererVersion:zi.version});function Vi(e,t=1,n={}){let{indent:r=` `,includeEmptyLines:i=!1}=n;if(typeof e!=`string`)throw TypeError(`Expected \`input\` to be a \`string\`, got \`${typeof e}\``);if(typeof t!=`number`)throw TypeError(`Expected \`count\` to be a \`number\`, got \`${typeof t}\``);if(t<0)throw RangeError(`Expected \`count\` to be at least 0, got \`${t}\``);if(typeof r!=`string`)throw TypeError(`Expected \`options.indent\` to be a \`string\`, got \`${typeof r}\``);if(t===0)return e;let a=i?/^/gm:/^(?!\s*$)/gm;return e.replace(a,r.repeat(t))}const Hi=e=>e.getComputedWidth()-e.getComputedPadding(I.EDGE_LEFT)-e.getComputedPadding(I.EDGE_RIGHT)-e.getComputedBorder(I.EDGE_LEFT)-e.getComputedBorder(I.EDGE_RIGHT);var Ui={single:{topLeft:`┌`,top:`─`,topRight:`┐`,right:`│`,bottomRight:`┘`,bottom:`─`,bottomLeft:`└`,left:`│`},double:{topLeft:`╔`,top:`═`,topRight:`╗`,right:`║`,bottomRight:`╝`,bottom:`═`,bottomLeft:`╚`,left:`║`},round:{topLeft:`╭`,top:`─`,topRight:`╮`,right:`│`,bottomRight:`╯`,bottom:`─`,bottomLeft:`╰`,left:`│`},bold:{topLeft:`┏`,top:`━`,topRight:`┓`,right:`┃`,bottomRight:`┛`,bottom:`━`,bottomLeft:`┗`,left:`┃`},singleDouble:{topLeft:`╓`,top:`─`,topRight:`╖`,right:`║`,bottomRight:`╜`,bottom:`─`,bottomLeft:`╙`,left:`║`},doubleSingle:{topLeft:`╒`,top:`═`,topRight:`╕`,right:`│`,bottomRight:`╛`,bottom:`═`,bottomLeft:`╘`,left:`│`},classic:{topLeft:`+`,top:`-`,topRight:`+`,right:`|`,bottomRight:`+`,bottom:`-`,bottomLeft:`+`,left:`|`},arrow:{topLeft:`↘`,top:`↓`,topRight:`↙`,right:`←`,bottomRight:`↖`,bottom:`↑`,bottomLeft:`↗`,left:`→`}};const Wi=(e=0)=>t=>`\u001B[${t+e}m`,Gi=(e=0)=>t=>`\u001B[${38+e};5;${t}m`,Ki=(e=0)=>(t,n,r)=>`\u001B[${38+e};2;${t};${n};${r}m`,qi={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],overline:[53,55],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],blackBright:[90,39],gray:[90,39],grey:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgGray:[100,49],bgGrey:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}};Object.keys(qi.modifier);const Ji=Object.keys(qi.color),Yi=Object.keys(qi.bgColor);[...Ji,...Yi];function Xi(){let e=new Map;for(let[t,n]of Object.entries(qi)){for(let[t,r]of Object.entries(n))qi[t]={open:`\u001B[${r[0]}m`,close:`\u001B[${r[1]}m`},n[t]=qi[t],e.set(r[0],r[1]);Object.defineProperty(qi,t,{value:n,enumerable:!1})}return Object.defineProperty(qi,"codes",{value:e,enumerable:!1}),qi.color.close=`\x1B[39m`,qi.bgColor.close=`\x1B[49m`,qi.color.ansi=Wi(),qi.color.ansi256=Gi(),qi.color.ansi16m=Ki(),qi.bgColor.ansi=Wi(10),qi.bgColor.ansi256=Gi(10),qi.bgColor.ansi16m=Ki(10),Object.defineProperties(qi,{rgbToAnsi256:{value(e,t,n){return e===t&&t===n?e<8?16:e>248?231:Math.round((e-8)/247*24)+232:16+36*Math.round(e/255*5)+6*Math.round(t/255*5)+Math.round(n/255*5)},enumerable:!1},hexToRgb:{value(e){let t=/[a-f\d]{6}|[a-f\d]{3}/i.exec(e.toString(16));if(!t)return[0,0,0];let[n]=t;n.length===3&&(n=[...n].map(e=>e+e).join(``));let r=Number.parseInt(n,16);return[r>>16&255,r>>8&255,r&255]},enumerable:!1},hexToAnsi256:{value:e=>qi.rgbToAnsi256(...qi.hexToRgb(e)),enumerable:!1},ansi256ToAnsi:{value(e){if(e<8)return 30+e;if(e<16)return 90+(e-8);let t,n,r;if(e>=232)t=((e-232)*10+8)/255,n=t,r=t;else{e-=16;let i=e%36;t=Math.floor(e/36)/5,n=Math.floor(i/6)/5,r=i%6/5}let i=Math.max(t,n,r)*2;if(i===0)return 30;let a=30+(Math.round(r)<<2|Math.round(n)<<1|Math.round(t));return i===2&&(a+=60),a},enumerable:!1},rgbToAnsi:{value:(e,t,n)=>qi.ansi256ToAnsi(qi.rgbToAnsi256(e,t,n)),enumerable:!1},hexToAnsi:{value:e=>qi.ansi256ToAnsi(qi.hexToAnsi256(e)),enumerable:!1}}),qi}const Zi=Xi();function Qi(e,t=globalThis.Deno?globalThis.Deno.args:r.argv){let n=e.startsWith(`-`)?``:e.length===1?`-`:`--`,i=t.indexOf(n+e),a=t.indexOf(`--`);return i!==-1&&(a===-1||i<a)}const{env:$i}=r;let ea;Qi(`no-color`)||Qi(`no-colors`)||Qi(`color=false`)||Qi(`color=never`)?ea=0:(Qi(`color`)||Qi(`colors`)||Qi(`color=true`)||Qi(`color=always`))&&(ea=1);function ta(){if(`FORCE_COLOR`in $i)return $i.FORCE_COLOR===`true`?1:$i.FORCE_COLOR===`false`?0:$i.FORCE_COLOR.length===0?1:Math.min(Number.parseInt($i.FORCE_COLOR,10),3)}function na(e){return e===0?!1:{level:e,hasBasic:!0,has256:e>=2,has16m:e>=3}}function ra(e,{streamIsTTY:t,sniffFlags:n=!0}={}){let i=ta();i!==void 0&&(ea=i);let a=n?ea:i;if(a===0)return 0;if(n){if(Qi(`color=16m`)||Qi(`color=full`)||Qi(`color=truecolor`))return 3;if(Qi(`color=256`))return 2}if(`TF_BUILD`in $i&&`AGENT_NAME`in $i)return 1;if(e&&!t&&a===void 0)return 0;let s=a||0;if($i.TERM===`dumb`)return s;if(r.platform===`win32`){let e=o.release().split(`.`);return Number(e[0])>=10&&Number(e[2])>=10586?Number(e[2])>=14931?3:2:1}if(`CI`in $i)return[`GITHUB_ACTIONS`,`GITEA_ACTIONS`,`CIRCLECI`].some(e=>e in $i)?3:[`TRAVIS`,`APPVEYOR`,`GITLAB_CI`,`BUILDKITE`,`DRONE`].some(e=>e in $i)||$i.CI_NAME===`codeship`?1:s;if(`TEAMCITY_VERSION`in $i)return+!!/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test($i.TEAMCITY_VERSION);if($i.COLORTERM===`truecolor`||$i.TERM===`xterm-kitty`||$i.TERM===`xterm-ghostty`||$i.TERM===`wezterm`)return 3;if(`TERM_PROGRAM`in $i){let e=Number.parseInt(($i.TERM_PROGRAM_VERSION||``).split(`.`)[0],10);switch($i.TERM_PROGRAM){case`iTerm.app`:return e>=3?3:2;case`Apple_Terminal`:return 2}}return/-256(color)?$/i.test($i.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test($i.TERM)||`COLORTERM`in $i?1:s}function ia(e,t={}){return na(ra(e,{streamIsTTY:e&&e.isTTY,...t}))}const aa={stdout:ia({isTTY:u.isatty(1)}),stderr:ia({isTTY:u.isatty(2)})};function oa(e,t,n){let r=e.indexOf(t);if(r===-1)return e;let i=t.length,a=0,o=``;do o+=e.slice(a,r)+t+n,a=r+i,r=e.indexOf(t,a);while(r!==-1);return o+=e.slice(a),o}function sa(e,t,n,r){let i=0,a=``;do{let o=e[r-1]===`\r`;a+=e.slice(i,o?r-1:r)+t+(o?`\r
|
|
319
|
+
`)}));if(r.env.DEV===`true`){let e=!1;try{import.meta.resolve(`react-devtools-core`),e=!0}catch{}e&&await Pi().then(()=>Mi)}const Fi=(e,t)=>{if(e===t)return;if(!e)return t;let n={},r=!1;for(let i of Object.keys(e))(!t||!Object.hasOwn(t,i))&&(n[i]=void 0,r=!0);if(t)for(let i of Object.keys(t))t[i]!==e[i]&&(n[i]=t[i],r=!0);return r?n:void 0},Ii=e=>{e?.unsetMeasureFunc(),e?.freeRecursive()};let Li=F.NoEventPriority,Ri;async function zi(){let e=(await import(`node:fs`)).readFileSync(new URL(`../package.json`,import.meta.url),`utf8`),t=JSON.parse(e);return{name:t?.name,version:t?.version}}let Bi={name:`ink`,version:N.version};if(r.env.DEV===`true`)try{let e=await zi();Bi={name:e.name||Bi.name,version:e.version||Bi.version}}catch(e){console.warn(`Failed to load package.json in development mode. Falling back to default renderer metadata.`,e)}var Vi=(0,_n.default)({getRootHostContext:()=>({isInsideText:!1}),prepareForCommit:()=>null,preparePortalMount:()=>null,clearContainer:()=>!1,resetAfterCommit(e){if(typeof e.onComputeLayout==`function`&&e.onComputeLayout(),ti(e),e.staticNode!==e.previousStaticNode&&(e.previousStaticNode=e.staticNode,typeof e.onStaticChange==`function`&&e.onStaticChange()),e.isStaticDirty){e.isStaticDirty=!1,typeof e.onImmediateRender==`function`&&e.onImmediateRender();return}typeof e.onRender==`function`&&e.onRender()},getChildHostContext(e,t){let n=e.isInsideText,r=t===`ink-text`||t===`ink-virtual-text`;return n===r?e:{isInsideText:r}},shouldSetTextContent:()=>!1,createInstance(e,t,n,r){if(r.isInsideText&&e===`ink-box`)throw Error(`<Box> can’t be nested inside <Text> component`);let i=Ur(e===`ink-text`&&r.isInsideText?`ink-virtual-text`:e);for(let[e,r]of Object.entries(t))if(e!==`children`){if(e===`style`){Jr(i,r),i.yogaNode&&di(i.yogaNode,r);continue}if(e===`internal_transform`){i.internal_transform=r;continue}if(e===`internal_static`){Ri=n,i.internal_static=!0,n.isStaticDirty=!0,n.staticNode=i;continue}qr(i,e,r)}return i},createTextInstance(e,t,n){if(!n.isInsideText)throw Error(`Text string "${e}" must be rendered inside <Text> component`);return Yr(e)},resetTextContent(){},hideTextInstance(e){$r(e,``)},unhideTextInstance(e,t){$r(e,t)},getPublicInstance:e=>e,hideInstance(e){e.yogaNode?.setDisplay(I.DISPLAY_NONE)},unhideInstance(e){e.yogaNode?.setDisplay(I.DISPLAY_FLEX)},appendInitialChild:Wr,appendChild:Wr,insertBefore:Gr,finalizeInitialChildren(){return!1},isPrimaryRenderer:!0,supportsMutation:!0,supportsPersistence:!1,supportsHydration:!1,supportsMicrotasks:!0,scheduleMicrotask:queueMicrotask,scheduleCallback:gn.unstable_scheduleCallback,cancelCallback:gn.unstable_cancelCallback,shouldYield:gn.unstable_shouldYield,now:gn.unstable_now,scheduleTimeout:setTimeout,cancelTimeout:clearTimeout,noTimeout:-1,beforeActiveInstanceBlur(){},afterActiveInstanceBlur(){},detachDeletedInstance(){},getInstanceFromNode:()=>null,prepareScopeUpdate(){},getInstanceFromScope:()=>null,appendChildToContainer:Wr,insertInContainerBefore:Gr,removeChildFromContainer(e,t){Kr(e,t),Ii(t.yogaNode),t.internal_static&&Ri?.staticNode===t&&(Ri.staticNode=void 0)},commitUpdate(e,t,n,r){Ri&&e.internal_static&&(Ri.isStaticDirty=!0);let i=Fi(n,r),a=Fi(n.style,r.style);if(!(!i&&!a)){if(i)for(let[t,n]of Object.entries(i)){if(t===`style`){Jr(e,n);continue}if(t===`internal_transform`){e.internal_transform=n;continue}if(t===`internal_static`){e.internal_static=!0;continue}qr(e,t,n)}a&&e.yogaNode&&di(e.yogaNode,a,r.style??{})}},commitTextUpdate(e,t,n){$r(e,n)},removeChild(e,t){Kr(e,t),Ii(t.yogaNode),t.internal_static&&Ri?.staticNode===t&&(Ri.staticNode=void 0)},setCurrentUpdatePriority(e){Li=e},getCurrentUpdatePriority:()=>Li,resolveUpdatePriority(){return Li===F.NoEventPriority?F.DefaultEventPriority:Li},maySuspendCommit(){return!0},NotPendingTransition:void 0,HostTransitionContext:(0,N.createContext)(null),resetFormInstance(){},requestPostPaintCallback(){},shouldAttemptEagerTransition(){return!1},trackSchedulerEvent(){},resolveEventType(){return null},resolveEventTimeStamp(){return-1.1},preloadInstance(){return!0},startSuspendingCommit(){},suspendInstance(){},waitForCommitToBeReady(){return null},rendererPackageName:Bi.name,rendererVersion:Bi.version});function Hi(e,t=1,n={}){let{indent:r=` `,includeEmptyLines:i=!1}=n;if(typeof e!=`string`)throw TypeError(`Expected \`input\` to be a \`string\`, got \`${typeof e}\``);if(typeof t!=`number`)throw TypeError(`Expected \`count\` to be a \`number\`, got \`${typeof t}\``);if(t<0)throw RangeError(`Expected \`count\` to be at least 0, got \`${t}\``);if(typeof r!=`string`)throw TypeError(`Expected \`options.indent\` to be a \`string\`, got \`${typeof r}\``);if(t===0)return e;let a=i?/^/gm:/^(?!\s*$)/gm;return e.replace(a,r.repeat(t))}const Ui=e=>e.getComputedWidth()-e.getComputedPadding(I.EDGE_LEFT)-e.getComputedPadding(I.EDGE_RIGHT)-e.getComputedBorder(I.EDGE_LEFT)-e.getComputedBorder(I.EDGE_RIGHT);var Wi={single:{topLeft:`┌`,top:`─`,topRight:`┐`,right:`│`,bottomRight:`┘`,bottom:`─`,bottomLeft:`└`,left:`│`},double:{topLeft:`╔`,top:`═`,topRight:`╗`,right:`║`,bottomRight:`╝`,bottom:`═`,bottomLeft:`╚`,left:`║`},round:{topLeft:`╭`,top:`─`,topRight:`╮`,right:`│`,bottomRight:`╯`,bottom:`─`,bottomLeft:`╰`,left:`│`},bold:{topLeft:`┏`,top:`━`,topRight:`┓`,right:`┃`,bottomRight:`┛`,bottom:`━`,bottomLeft:`┗`,left:`┃`},singleDouble:{topLeft:`╓`,top:`─`,topRight:`╖`,right:`║`,bottomRight:`╜`,bottom:`─`,bottomLeft:`╙`,left:`║`},doubleSingle:{topLeft:`╒`,top:`═`,topRight:`╕`,right:`│`,bottomRight:`╛`,bottom:`═`,bottomLeft:`╘`,left:`│`},classic:{topLeft:`+`,top:`-`,topRight:`+`,right:`|`,bottomRight:`+`,bottom:`-`,bottomLeft:`+`,left:`|`},arrow:{topLeft:`↘`,top:`↓`,topRight:`↙`,right:`←`,bottomRight:`↖`,bottom:`↑`,bottomLeft:`↗`,left:`→`}};const Gi=(e=0)=>t=>`\u001B[${t+e}m`,Ki=(e=0)=>t=>`\u001B[${38+e};5;${t}m`,qi=(e=0)=>(t,n,r)=>`\u001B[${38+e};2;${t};${n};${r}m`,Ji={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],overline:[53,55],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],blackBright:[90,39],gray:[90,39],grey:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgGray:[100,49],bgGrey:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}};Object.keys(Ji.modifier);const Yi=Object.keys(Ji.color),Xi=Object.keys(Ji.bgColor);[...Yi,...Xi];function Zi(){let e=new Map;for(let[t,n]of Object.entries(Ji)){for(let[t,r]of Object.entries(n))Ji[t]={open:`\u001B[${r[0]}m`,close:`\u001B[${r[1]}m`},n[t]=Ji[t],e.set(r[0],r[1]);Object.defineProperty(Ji,t,{value:n,enumerable:!1})}return Object.defineProperty(Ji,"codes",{value:e,enumerable:!1}),Ji.color.close=`\x1B[39m`,Ji.bgColor.close=`\x1B[49m`,Ji.color.ansi=Gi(),Ji.color.ansi256=Ki(),Ji.color.ansi16m=qi(),Ji.bgColor.ansi=Gi(10),Ji.bgColor.ansi256=Ki(10),Ji.bgColor.ansi16m=qi(10),Object.defineProperties(Ji,{rgbToAnsi256:{value(e,t,n){return e===t&&t===n?e<8?16:e>248?231:Math.round((e-8)/247*24)+232:16+36*Math.round(e/255*5)+6*Math.round(t/255*5)+Math.round(n/255*5)},enumerable:!1},hexToRgb:{value(e){let t=/[a-f\d]{6}|[a-f\d]{3}/i.exec(e.toString(16));if(!t)return[0,0,0];let[n]=t;n.length===3&&(n=[...n].map(e=>e+e).join(``));let r=Number.parseInt(n,16);return[r>>16&255,r>>8&255,r&255]},enumerable:!1},hexToAnsi256:{value:e=>Ji.rgbToAnsi256(...Ji.hexToRgb(e)),enumerable:!1},ansi256ToAnsi:{value(e){if(e<8)return 30+e;if(e<16)return 90+(e-8);let t,n,r;if(e>=232)t=((e-232)*10+8)/255,n=t,r=t;else{e-=16;let i=e%36;t=Math.floor(e/36)/5,n=Math.floor(i/6)/5,r=i%6/5}let i=Math.max(t,n,r)*2;if(i===0)return 30;let a=30+(Math.round(r)<<2|Math.round(n)<<1|Math.round(t));return i===2&&(a+=60),a},enumerable:!1},rgbToAnsi:{value:(e,t,n)=>Ji.ansi256ToAnsi(Ji.rgbToAnsi256(e,t,n)),enumerable:!1},hexToAnsi:{value:e=>Ji.ansi256ToAnsi(Ji.hexToAnsi256(e)),enumerable:!1}}),Ji}const Qi=Zi();function $i(e,t=globalThis.Deno?globalThis.Deno.args:r.argv){let n=e.startsWith(`-`)?``:e.length===1?`-`:`--`,i=t.indexOf(n+e),a=t.indexOf(`--`);return i!==-1&&(a===-1||i<a)}const{env:ea}=r;let ta;$i(`no-color`)||$i(`no-colors`)||$i(`color=false`)||$i(`color=never`)?ta=0:($i(`color`)||$i(`colors`)||$i(`color=true`)||$i(`color=always`))&&(ta=1);function na(){if(`FORCE_COLOR`in ea)return ea.FORCE_COLOR===`true`?1:ea.FORCE_COLOR===`false`?0:ea.FORCE_COLOR.length===0?1:Math.min(Number.parseInt(ea.FORCE_COLOR,10),3)}function ra(e){return e===0?!1:{level:e,hasBasic:!0,has256:e>=2,has16m:e>=3}}function ia(e,{streamIsTTY:t,sniffFlags:n=!0}={}){let i=na();i!==void 0&&(ta=i);let a=n?ta:i;if(a===0)return 0;if(n){if($i(`color=16m`)||$i(`color=full`)||$i(`color=truecolor`))return 3;if($i(`color=256`))return 2}if(`TF_BUILD`in ea&&`AGENT_NAME`in ea)return 1;if(e&&!t&&a===void 0)return 0;let s=a||0;if(ea.TERM===`dumb`)return s;if(r.platform===`win32`){let e=o.release().split(`.`);return Number(e[0])>=10&&Number(e[2])>=10586?Number(e[2])>=14931?3:2:1}if(`CI`in ea)return[`GITHUB_ACTIONS`,`GITEA_ACTIONS`,`CIRCLECI`].some(e=>e in ea)?3:[`TRAVIS`,`APPVEYOR`,`GITLAB_CI`,`BUILDKITE`,`DRONE`].some(e=>e in ea)||ea.CI_NAME===`codeship`?1:s;if(`TEAMCITY_VERSION`in ea)return+!!/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(ea.TEAMCITY_VERSION);if(ea.COLORTERM===`truecolor`||ea.TERM===`xterm-kitty`||ea.TERM===`xterm-ghostty`||ea.TERM===`wezterm`)return 3;if(`TERM_PROGRAM`in ea){let e=Number.parseInt((ea.TERM_PROGRAM_VERSION||``).split(`.`)[0],10);switch(ea.TERM_PROGRAM){case`iTerm.app`:return e>=3?3:2;case`Apple_Terminal`:return 2}}return/-256(color)?$/i.test(ea.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(ea.TERM)||`COLORTERM`in ea?1:s}function aa(e,t={}){return ra(ia(e,{streamIsTTY:e&&e.isTTY,...t}))}const oa={stdout:aa({isTTY:u.isatty(1)}),stderr:aa({isTTY:u.isatty(2)})};function sa(e,t,n){let r=e.indexOf(t);if(r===-1)return e;let i=t.length,a=0,o=``;do o+=e.slice(a,r)+t+n,a=r+i,r=e.indexOf(t,a);while(r!==-1);return o+=e.slice(a),o}function ca(e,t,n,r){let i=0,a=``;do{let o=e[r-1]===`\r`;a+=e.slice(i,o?r-1:r)+t+(o?`\r
|
|
320
320
|
`:`
|
|
321
321
|
`)+n,i=r+1,r=e.indexOf(`
|
|
322
|
-
`,i)}while(r!==-1);return a+=e.slice(i),a}const{stdout:
|
|
323
|
-
`);return a!==-1&&(t=
|
|
324
|
-
`).repeat(T));let D=``;S&&(D=(
|
|
325
|
-
`).repeat(T));let O=b?(x?o.bottomLeft:``)+o.bottom.repeat(C)+(S?o.bottomRight:``):void 0;O&&=
|
|
326
|
-
`.repeat(r)+
|
|
327
|
-
`;n=(e.style.flexDirection===`row-reverse`||e.style.flexDirection===`column-reverse`?[...e.childNodes].reverse():[...e.childNodes]).map(n=>
|
|
328
|
-
`))n=Math.max(n,this.getStringWidth(t));t=n,this.blockWidths.set(e,t)}return t}},
|
|
329
|
-
`),c=t.at(-1);if(c){let e=typeof c?.x1==`number`&&typeof c?.x2==`number`,t=typeof c?.y1==`number`&&typeof c?.y2==`number`;if(e){let e=this.caches.getWidestLine(r);if(a+e<c.x1||a>c.x2)continue}if(t){let e=s.length;if(o+e<c.y1||o>c.y2)continue}if(e&&(s=s.map(e=>{let t=a<c.x1?c.x1-a:0,n=this.caches.getStringWidth(e);return xr(e,t,a+n>c.x2?c.x2-a:n)}),a<c.x1&&(a=c.x1)),t){let e=o<c.y1?c.y1-o:0,t=s.length,n=o+t>c.y2?c.y2-o:t;s=s.slice(e,n),o<c.y1&&(o=c.y1)}}let l=0;for(let[t,n]of s.entries()){let r=e[o+l];if(!r)continue;for(let e of i)n=e(n,t);let s=this.caches.getStyledChars(n),c=a;if(s.length===0){l++;continue}let u={type:`char`,value:` `,fullWidth:!1,styles:[]};r[c]?.value===``&&c>0&&this.caches.getStringWidth(r[c-1]?.value??``)>1&&(r[c-1]=u);for(let e of s){r[c]=e;let t=Math.max(1,this.caches.getStringWidth(e.value));if(t>1)for(let n=1;n<t;n++)r[c+n]={type:`char`,value:``,fullWidth:!1,styles:e.styles};c+=t}r[c]?.value===``&&(r[c]=u),l++}}return{output:e.map(e=>
|
|
330
|
-
`),height:e.length}}};const
|
|
331
|
-
`).length,r=``;return e.staticNode&&(r=
|
|
332
|
-
`)?e.length-1:e.length,
|
|
333
|
-
`),m=
|
|
334
|
-
`);r=t,n=l.length,!i&&c&&e.write(
|
|
335
|
-
`),m=
|
|
336
|
-
`||r.length===0){let t=
|
|
322
|
+
`,i)}while(r!==-1);return a+=e.slice(i),a}const{stdout:la,stderr:ua}=oa,da=Symbol(`GENERATOR`),fa=Symbol(`STYLER`),pa=Symbol(`IS_EMPTY`),ma=[`ansi`,`ansi`,`ansi256`,`ansi16m`],ha=Object.create(null),ga=(e,t={})=>{if(t.level&&!(Number.isInteger(t.level)&&t.level>=0&&t.level<=3))throw Error("The `level` option should be an integer from 0 to 3");let n=la?la.level:0;e.level=t.level===void 0?n:t.level},_a=e=>{let t=(...e)=>e.join(` `);return ga(t,e),Object.setPrototypeOf(t,va.prototype),t};function va(e){return _a(e)}Object.setPrototypeOf(va.prototype,Function.prototype);for(let[e,t]of Object.entries(Qi))ha[e]={get(){let n=Sa(this,xa(t.open,t.close,this[fa]),this[pa]);return Object.defineProperty(this,e,{value:n}),n}};ha.visible={get(){let e=Sa(this,this[fa],!0);return Object.defineProperty(this,"visible",{value:e}),e}};const ya=(e,t,n,...r)=>e===`rgb`?t===`ansi16m`?Qi[n].ansi16m(...r):t===`ansi256`?Qi[n].ansi256(Qi.rgbToAnsi256(...r)):Qi[n].ansi(Qi.rgbToAnsi(...r)):e===`hex`?ya(`rgb`,t,n,...Qi.hexToRgb(...r)):Qi[n][e](...r);for(let e of[`rgb`,`hex`,`ansi256`]){ha[e]={get(){let{level:t}=this;return function(...n){let r=xa(ya(e,ma[t],`color`,...n),Qi.color.close,this[fa]);return Sa(this,r,this[pa])}}};let t=`bg`+e[0].toUpperCase()+e.slice(1);ha[t]={get(){let{level:t}=this;return function(...n){let r=xa(ya(e,ma[t],`bgColor`,...n),Qi.bgColor.close,this[fa]);return Sa(this,r,this[pa])}}}}const ba=Object.defineProperties(()=>{},{...ha,level:{enumerable:!0,get(){return this[da].level},set(e){this[da].level=e}}}),xa=(e,t,n)=>{let r,i;return n===void 0?(r=e,i=t):(r=n.openAll+e,i=t+n.closeAll),{open:e,close:t,openAll:r,closeAll:i,parent:n}},Sa=(e,t,n)=>{let r=(...e)=>Ca(r,e.length===1?``+e[0]:e.join(` `));return Object.setPrototypeOf(r,ba),r[da]=e,r[fa]=t,r[pa]=n,r},Ca=(e,t)=>{if(e.level<=0||!t)return e[pa]?``:t;let n=e[fa];if(n===void 0)return t;let{openAll:r,closeAll:i}=n;if(t.includes(`\x1B`))for(;n!==void 0;)t=sa(t,n.close,n.open),n=n.parent;let a=t.indexOf(`
|
|
323
|
+
`);return a!==-1&&(t=ca(t,i,r,a)),r+t+i};Object.defineProperties(va.prototype,ha);const wa=va();va({level:ua?ua.level:0});const Ta=/^rgb\(\s?(\d+),\s?(\d+),\s?(\d+)\s?\)$/,Ea=/^ansi256\(\s?(\d+)\s?\)$/,Da=e=>e in wa,Oa=(e,t,n)=>{if(!t)return e;if(Da(t))return n===`foreground`?wa[t](e):wa[`bg${t[0].toUpperCase()+t.slice(1)}`](e);if(t.startsWith(`#`))return n===`foreground`?wa.hex(t)(e):wa.bgHex(t)(e);if(t.startsWith(`ansi256`)){let r=Ea.exec(t);if(!r)return e;let i=Number(r[1]);return n===`foreground`?wa.ansi256(i)(e):wa.bgAnsi256(i)(e)}if(t.startsWith(`rgb`)){let r=Ta.exec(t);if(!r)return e;let i=Number(r[1]),a=Number(r[2]),o=Number(r[3]);return n===`foreground`?wa.rgb(i,a,o)(e):wa.bgRgb(i,a,o)(e)}return e},ka=(e,t,n,r)=>{let i=Oa(e,t,`foreground`);return i=Oa(i,n,`background`),r&&(i=wa.dim(i)),i},Aa=(e,t,n,r)=>{if(n.style.borderStyle){let i=n.yogaNode.getComputedWidth(),a=n.yogaNode.getComputedHeight(),o=typeof n.style.borderStyle==`string`?Wi[n.style.borderStyle]:n.style.borderStyle,s=n.style.borderTopColor??n.style.borderColor,c=n.style.borderBottomColor??n.style.borderColor,l=n.style.borderLeftColor??n.style.borderColor,u=n.style.borderRightColor??n.style.borderColor,d=n.style.borderTopBackgroundColor??n.style.borderBackgroundColor,f=n.style.borderBottomBackgroundColor??n.style.borderBackgroundColor,p=n.style.borderLeftBackgroundColor??n.style.borderBackgroundColor,m=n.style.borderRightBackgroundColor??n.style.borderBackgroundColor,h=n.style.borderTopDimColor??n.style.borderDimColor,g=n.style.borderBottomDimColor??n.style.borderDimColor,_=n.style.borderLeftDimColor??n.style.borderDimColor,v=n.style.borderRightDimColor??n.style.borderDimColor,y=n.style.borderTop!==!1,b=n.style.borderBottom!==!1,x=n.style.borderLeft!==!1,S=n.style.borderRight!==!1,C=i-+!!x-!!S,w=y?(x?o.topLeft:``)+o.top.repeat(C)+(S?o.topRight:``):void 0;w&&=ka(w,s,d,h);let T=a;y&&--T,b&&--T;let E=``;x&&(E=(ka(o.left,l,p,_)+`
|
|
324
|
+
`).repeat(T));let D=``;S&&(D=(ka(o.right,u,m,v)+`
|
|
325
|
+
`).repeat(T));let O=b?(x?o.bottomLeft:``)+o.bottom.repeat(C)+(S?o.bottomRight:``):void 0;O&&=ka(O,c,f,g);let k=+!!y;w&&r.write(e,t,w,{transformers:[]}),E&&r.write(e,t+k,E,{transformers:[]}),D&&r.write(e+i-1,t+k,D,{transformers:[]}),O&&r.write(e,t+a-1,O,{transformers:[]})}},ja=(e,t,n,r)=>{if(!n.style.backgroundColor)return;let i=n.yogaNode.getComputedWidth(),a=n.yogaNode.getComputedHeight(),o=n.style.borderStyle&&n.style.borderLeft!==!1?1:0,s=n.style.borderStyle&&n.style.borderRight!==!1?1:0,c=n.style.borderStyle&&n.style.borderTop!==!1?1:0,l=n.style.borderStyle&&n.style.borderBottom!==!1?1:0,u=i-o-s,d=a-c-l;if(!(u>0&&d>0))return;let f=Oa(` `.repeat(u),n.style.backgroundColor,`background`);for(let n=0;n<d;n++)r.write(e+o,t+c+n,f,{transformers:[]})},B=(e,t)=>{let n=e.childNodes[0]?.yogaNode;if(n){let e=n.getComputedLeft(),r=n.getComputedTop();t=`
|
|
326
|
+
`.repeat(r)+Hi(t,e)}return t},Ma=(e,t={})=>{if(t.skipStaticElements&&e.internal_static||e.yogaNode?.getDisplay()===I.DISPLAY_NONE)return``;let n=``;if(e.nodeName===`ink-text`)n=Hr(e);else if(e.nodeName===`ink-box`||e.nodeName===`ink-root`){let r=e.style.flexDirection===`row`||e.style.flexDirection===`row-reverse`?` `:`
|
|
327
|
+
`;n=(e.style.flexDirection===`row-reverse`||e.style.flexDirection===`column-reverse`?[...e.childNodes].reverse():[...e.childNodes]).map(n=>Ma(n,{parentRole:e.internal_accessibility?.role,skipStaticElements:t.skipStaticElements})).filter(Boolean).join(r)}if(e.internal_accessibility){let{role:r,state:i}=e.internal_accessibility;if(i){let e=Object.keys(i).filter(e=>i[e]).join(`, `);e&&(n=`(${e}) ${n}`)}r&&r!==t.parentRole&&(n=`${r}: ${n}`)}return n},Na=(e,t,n)=>{let{offsetX:r=0,offsetY:i=0,transformers:a=[],skipStaticElements:o}=n;if(o&&e.internal_static)return;let{yogaNode:s}=e;if(s){if(s.getDisplay()===I.DISPLAY_NONE)return;let n=r+s.getComputedLeft(),c=i+s.getComputedTop(),l=a;if(typeof e.internal_transform==`function`&&(l=[e.internal_transform,...a]),e.nodeName===`ink-text`){let r=Hr(e);if(r.length>0){let i=vn(r),a=Ui(s);if(i>a){let t=e.style.textWrap??`wrap`;r=Tr(r,a,t)}r=B(e,r),t.write(n,c,r,{transformers:l})}return}let u=!1;if(e.nodeName===`ink-box`){ja(n,c,e,t),Aa(n,c,e,t);let r=e.style.overflowX===`hidden`||e.style.overflow===`hidden`,i=e.style.overflowY===`hidden`||e.style.overflow===`hidden`;if(r||i){let e=r?n+s.getComputedBorder(I.EDGE_LEFT):void 0,a=r?n+s.getComputedWidth()-s.getComputedBorder(I.EDGE_RIGHT):void 0,o=i?c+s.getComputedBorder(I.EDGE_TOP):void 0,l=i?c+s.getComputedHeight()-s.getComputedBorder(I.EDGE_BOTTOM):void 0;t.clip({x1:e,x2:a,y1:o,y2:l}),u=!0}}if(e.nodeName===`ink-root`||e.nodeName===`ink-box`){for(let r of e.childNodes)Na(r,t,{offsetX:n,offsetY:c,transformers:l,skipStaticElements:o});u&&t.unclip()}}},Pa=new Set([27,155]),Fa=`\x1B]8;`,Ia=Fa.split(``).map(e=>e.charCodeAt(0)),La=new Set,Ra=new Map;for(let[e,t]of Et.codes)La.add(Et.color.ansi(t)),Ra.set(Et.color.ansi(e),Et.color.ansi(t));function za(e){if(La.has(e))return e;if(Ra.has(e))return Ra.get(e);if(e.startsWith(Fa))return e.endsWith(`\x1B\\`)?`\x1B]8;;\x1B\\`:e.endsWith(``)?`\x1B]8;;`:`\x1B]8;;\x07`;if(e=e.slice(2),e.startsWith(`38`))return Et.color.close;if(e.startsWith(`48`))return Et.bgColor.close;let t=Et.codes.get(parseInt(e,10));return t?Et.color.ansi(t):Et.reset.open}function Ba(e){return[...new Set(e.map(e=>e.code))].join(``)}function Va(e){return e.code===Et.bold.open||e.code===Et.dim.open}function Ha(e){return Ua([],e)}function Ua(e,t){let n=[...e];for(let e of t)e.code===Et.reset.open?n=[]:La.has(e.code)?n=n.filter(t=>t.endCode!==e.code):Va(e)?n.find(t=>t.code===e.code&&t.endCode===e.endCode)||n.push(e):(n=n.filter(t=>t.endCode!==e.endCode),n.push(e));return n}function Wa(e){return Ha(e).reverse().map(e=>({...e,code:e.endCode}))}function Ga(e,t){let n=new Set(t.map(e=>e.endCode)),r=new Set(t.map(e=>e.code)),i=new Set(e.map(e=>e.code));return[...Wa(e.filter(e=>Va(e)?!r.has(e.code):!n.has(e.endCode))),...t.filter(e=>!i.has(e.code))]}function Ka(e){let t=[],n=[];for(let r of e)r.type===`ansi`?t=Ua(t,[r]):r.type===`char`&&n.push({...r,styles:[...t]});return n}function qa(e){let t=``;for(let n=0;n<e.length;n++){let r=e[n];n===0?t+=Ba(r.styles):t+=Ba(Ga(e[n-1].styles,r.styles)),t+=r.value,n===e.length-1&&(t+=Ba(Ga(r.styles,[])))}return t}const Ja=new Intl.Segmenter(void 0,{granularity:`grapheme`});function Ya(e,t){return!!(xn(t)||e.includes(`️`)||t>=127462&&t<=127487)}function Xa(e,t){e=e.slice(t);for(let t=1;t<Ia.length;t++)if(e.charCodeAt(t)!==Ia[t])return;let n=e.indexOf(`;`,4);if(n===-1)return;let r=Qa(e,n+1);if(r!==-1)return e.slice(0,r+1)}function Za(e,t){e=e.slice(t);let n=Qa(e,2);if(n!==-1)return e.slice(0,n+1)}function Qa(e,t){for(let n=t;n<e.length;n++){let t=e.charCodeAt(n);if(t===7||t===156)return n;if(t===27&&n+1<e.length&&e.charCodeAt(n+1)===92)return n+1}return-1}function V(e){for(let t=2;t<e.length;t++){let n=e.charCodeAt(t);if(n===109)return t;if(n!==59&&!(n>=48&&n<=57))break}return-1}function $a(e,t){e=e.slice(t);let n=V(e);if(n!==-1)return e.slice(0,n+1)}function eo(e){if(!e.includes(`;`))return[e];let t=e.slice(2,-1).split(`;`),n=[];for(let e=0;e<t.length;e++){let r=t[e];if(r===`38`||r===`48`){if(e+2<t.length&&t[e+1]===`5`){n.push(t.slice(e,e+3).join(`;`)),e+=2;continue}else if(e+4<t.length&&t[e+1]===`2`){n.push(t.slice(e,e+5).join(`;`)),e+=4;continue}}n.push(r)}return n.map(e=>`\x1b[${e}m`)}function to(e,t=1/0){let n=[],r=0,i=0;for(let{segment:a,index:o}of Ja.segment(e)){if(o<i)continue;let s=a.codePointAt(0);if(Pa.has(s)){let t,r=e.codePointAt(o+1);if(r===93)t=Xa(e,o),t?n.push({type:`ansi`,code:t,endCode:za(t)}):(t=Za(e,o),t&&n.push({type:`control`,code:t}));else if(r===91&&(t=$a(e,o),t)){let e=eo(t);for(let t of e)n.push({type:`ansi`,code:t,endCode:za(t)})}if(t){i=o+t.length;continue}}let c=Ya(a,s);if(n.push({type:`char`,value:a,fullWidth:c}),r+=c?2:1,r>=t)break}return n}var no=class{widths=new Map;blockWidths=new Map;styledChars=new Map;getStyledChars(e){let t=this.styledChars.get(e);return t===void 0&&(t=Ka(to(e)),this.styledChars.set(e,t)),t}getStringWidth(e){let t=this.widths.get(e);return t===void 0&&(t=vt(e),this.widths.set(e,t)),t}getWidestLine(e){let t=this.blockWidths.get(e);if(t===void 0){let n=0;for(let t of e.split(`
|
|
328
|
+
`))n=Math.max(n,this.getStringWidth(t));t=n,this.blockWidths.set(e,t)}return t}},ro=class{width;height;operations=[];caches=new no;constructor(e){let{width:t,height:n}=e;this.width=t,this.height=n}write(e,t,n,r){let{transformers:i}=r;n&&this.operations.push({type:`write`,x:e,y:t,text:n,transformers:i})}clip(e){this.operations.push({type:`clip`,clip:e})}unclip(){this.operations.push({type:`unclip`})}get(){let e=[];for(let t=0;t<this.height;t++){let t=[];for(let e=0;e<this.width;e++)t.push({type:`char`,value:` `,fullWidth:!1,styles:[]});e.push(t)}let t=[];for(let n of this.operations)if(n.type===`clip`&&t.push(n.clip),n.type===`unclip`&&t.pop(),n.type===`write`){let{text:r,transformers:i}=n,{x:a,y:o}=n,s=r.split(`
|
|
329
|
+
`),c=t.at(-1);if(c){let e=typeof c?.x1==`number`&&typeof c?.x2==`number`,t=typeof c?.y1==`number`&&typeof c?.y2==`number`;if(e){let e=this.caches.getWidestLine(r);if(a+e<c.x1||a>c.x2)continue}if(t){let e=s.length;if(o+e<c.y1||o>c.y2)continue}if(e&&(s=s.map(e=>{let t=a<c.x1?c.x1-a:0,n=this.caches.getStringWidth(e);return xr(e,t,a+n>c.x2?c.x2-a:n)}),a<c.x1&&(a=c.x1)),t){let e=o<c.y1?c.y1-o:0,t=s.length,n=o+t>c.y2?c.y2-o:t;s=s.slice(e,n),o<c.y1&&(o=c.y1)}}let l=0;for(let[t,n]of s.entries()){let r=e[o+l];if(!r)continue;for(let e of i)n=e(n,t);let s=this.caches.getStyledChars(n),c=a;if(s.length===0){l++;continue}let u={type:`char`,value:` `,fullWidth:!1,styles:[]};r[c]?.value===``&&c>0&&this.caches.getStringWidth(r[c-1]?.value??``)>1&&(r[c-1]=u);for(let e of s){r[c]=e;let t=Math.max(1,this.caches.getStringWidth(e.value));if(t>1)for(let n=1;n<t;n++)r[c+n]={type:`char`,value:``,fullWidth:!1,styles:e.styles};c+=t}r[c]?.value===``&&(r[c]=u),l++}}return{output:e.map(e=>qa(e.filter(e=>e!==void 0)).trimEnd()).join(`
|
|
330
|
+
`),height:e.length}}};const io=(e,t)=>{if(e.yogaNode){if(t){let t=Ma(e,{skipStaticElements:!0}),n=t===``?0:t.split(`
|
|
331
|
+
`).length,r=``;return e.staticNode&&(r=Ma(e.staticNode,{skipStaticElements:!1})),{output:t,outputHeight:n,staticOutput:r?`${r}\n`:``}}let n=new ro({width:e.yogaNode.getComputedWidth(),height:e.yogaNode.getComputedHeight()});Na(e,n,{skipStaticElements:!0});let r;e.staticNode?.yogaNode&&(r=new ro({width:e.staticNode.yogaNode.getComputedWidth(),height:e.staticNode.yogaNode.getComputedHeight()}),Na(e.staticNode,r,{skipStaticElements:!1}));let{output:i,height:a}=n.get();return{output:i,outputHeight:a,staticOutput:r?`${r.get().output}\n`:``}}return{output:``,outputHeight:0,staticOutput:``}},ao=`\x1B[?25h`,oo=`\x1B[?25l`,so=(e,t)=>e?.x!==t?.x||e?.y!==t?.y,co=(e,t)=>{if(!t)return``;let n=e-t.y;return(n>0?re(n):``)+M(t.x)+ao},lo=(e,t)=>{if(!t)return``;let n=e-1-t.y;return(n>0?ie(n):``)+M(0)},uo=e=>{let t=e.cursorWasShown?oo:``,n=lo(e.previousLineCount,e.previousCursorPosition),r=co(e.visibleLineCount,e.cursorPosition);return t+n+r},fo=(e,t,n)=>e?oo+lo(t,n):``;var po=x(((e,t)=>{let n=(e,t)=>{for(let n of Reflect.ownKeys(t))Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n));return e};t.exports=n,t.exports.default=n}));const mo=(0,w(x(((e,t)=>{let n=po(),r=new WeakMap,i=(e,t={})=>{if(typeof e!=`function`)throw TypeError(`Expected a function`);let i,a=0,o=e.displayName||e.name||`<anonymous>`,s=function(...n){if(r.set(s,++a),a===1)i=e.apply(this,n),e=null;else if(t.throw===!0)throw Error(`Function \`${o}\` can only be called once`);return i};return n(s,e),r.set(s,a),s};t.exports=i,t.exports.default=i,t.exports.callCount=e=>{if(!r.has(e))throw Error(`The given function \`${e.name}\` is not wrapped by the \`onetime\` package`);return r.get(e)}}))(),1).default)(()=>{(0,ge.default)(()=>{r.stderr.write(`\x1B[?25h`)},{alwaysLast:!0})});let ho=!1;const go={};go.show=(e=r.stderr)=>{e.isTTY&&(ho=!1,e.write(`\x1B[?25h`))},go.hide=(e=r.stderr)=>{e.isTTY&&(mo(),ho=!0,e.write(`\x1B[?25l`))},go.toggle=(e,t)=>{e!==void 0&&(ho=e),ho?go.show(t):go.hide(t)};const _o=(e,t)=>t.endsWith(`
|
|
332
|
+
`)?e.length-1:e.length,vo=(e,{showCursor:t=!1}={})=>{let n=0,r=``,i=!1,a,o=!1,s,c=!1,l=()=>o?a:void 0,u=(e,t)=>{let n=so(t,s);return e!==r||n},d=a=>{!t&&!i&&(go.hide(e),i=!0);let d=l();o=!1;let f=so(d,s);if(!u(a,d))return!1;let p=a.split(`
|
|
333
|
+
`),m=_o(p,a),h=co(m,d);if(a===r&&f)e.write(uo({cursorWasShown:c,previousLineCount:n,previousCursorPosition:s,visibleLineCount:m,cursorPosition:d}));else{r=a;let t=fo(c,n,s);e.write(t+ae(n)+a+h),n=p.length}return s=d?{...d}:void 0,c=d!==void 0,!0};return d.clear=()=>{let t=fo(c,n,s);e.write(t+ae(n)),r=``,n=0,s=void 0,c=!1},d.done=()=>{r=``,n=0,s=void 0,c=!1,t||(go.show(e),i=!1)},d.reset=()=>{r=``,n=0,s=void 0,c=!1},d.sync=t=>{let i=o?a:void 0;o=!1;let l=t.split(`
|
|
334
|
+
`);r=t,n=l.length,!i&&c&&e.write(oo),i&&e.write(co(_o(l,t),i)),s=i?{...i}:void 0,c=i!==void 0},d.setCursorPosition=e=>{a=e,o=!0},d.isCursorDirty=()=>o,d.willRender=e=>u(e,l()),d},yo=(e,{showCursor:t=!1}={})=>{let n=[],r=``,i=!1,a,o=!1,s,c=!1,l=()=>o?a:void 0,u=(e,t)=>{let n=so(t,s);return e!==r||n},d=a=>{!t&&!i&&(go.hide(e),i=!0);let d=l();o=!1;let f=so(d,s);if(!u(a,d))return!1;let p=a.split(`
|
|
335
|
+
`),m=_o(p,a),h=_o(n,r);if(a===r&&f)return e.write(uo({cursorWasShown:c,previousLineCount:n.length,previousCursorPosition:s,visibleLineCount:m,cursorPosition:d})),s=d?{...d}:void 0,c=d!==void 0,!0;let g=fo(c,n.length,s);if(a===`
|
|
336
|
+
`||r.length===0){let t=co(m,d);return e.write(g+ae(n.length)+a+t),c=d!==void 0,s=d?{...d}:void 0,r=a,n=p,!0}let _=a.endsWith(`
|
|
337
337
|
`),v=[];if(v.push(g),m<h){let e=+!!r.endsWith(`
|
|
338
338
|
`);v.push(ae(h-m+e),re(m))}else v.push(re(n.length-1));for(let e=0;e<m;e++){let t=e===m-1;if(p[e]===n[e]){(!t||_)&&v.push(`\x1B[E`);continue}v.push(M(0)+p[e]+`\x1B[K`+(t&&!_?``:`
|
|
339
|
-
`))}let y=
|
|
340
|
-
`);r=t,n=l,!i&&c&&e.write(
|
|
341
|
-
`)),!/^\s*at /.test(e[0])&&/^\s*at /.test(e[1])&&(e=e.slice(1));let n=!1,r=null,i=[];return e.forEach(e=>{if(e=e.replace(/\\/g,`/`),this._internals.some(t=>t.test(e)))return;let t=/^\s*at /.test(e);n?e=e.trimEnd().replace(/^(\s+)at /,`$1`):(e=e.trim(),t&&(e=e.slice(3))),e=e.replace(`${this._cwd}/`,``),e&&(t?(r&&=(i.push(r),null),i.push(e)):(n=!0,r=e))}),i.map(e=>`${t}${e}\n`).join(``)}captureString(e,t=this.captureString){typeof e==`function`&&(t=e,e=1/0);let{stackTraceLimit:n}=Error;e&&(Error.stackTraceLimit=e);let r={};Error.captureStackTrace(r,t);let{stack:i}=r;return Error.stackTraceLimit=n,this.clean(i)}capture(e,t=this.capture){typeof e==`function`&&(t=e,e=1/0);let{prepareStackTrace:n,stackTraceLimit:r}=Error;Error.prepareStackTrace=(e,t)=>this._wrapCallSite?t.map(this._wrapCallSite):t,e&&(Error.stackTraceLimit=e);let i={};Error.captureStackTrace(i,t);let{stack:a}=i;return Object.assign(Error,{prepareStackTrace:n,stackTraceLimit:r}),a}at(e=this.at){let[t]=this.capture(1,e);if(!t)return{};let n={line:t.getLineNumber(),column:t.getColumnNumber()};o(n,t.getFileName(),this._cwd),t.isConstructor()&&Object.defineProperty(n,"constructor",{value:!0,configurable:!0}),t.isEval()&&(n.evalOrigin=t.getEvalOrigin()),t.isNative()&&(n.native=!0);let r;try{r=t.getTypeName()}catch{}r&&r!==`Object`&&r!==`[object Object]`&&(n.type=r);let i=t.getFunctionName();i&&(n.function=i);let a=t.getMethodName();return a&&i!==a&&(n.method=a),n}parseLine(e){let t=e&&e.match(c);if(!t)return null;let n=t[1]===`new`,r=t[2],i=t[3],a=t[4],s=Number(t[5]),u=Number(t[6]),d=t[7],f=t[8],p=t[9],m=t[10]===`native`,h=t[11]===`)`,g,_={};if(f&&(_.line=Number(f)),p&&(_.column=Number(p)),h&&d){let e=0;for(let t=d.length-1;t>0;t--)if(d.charAt(t)===`)`)e++;else if(d.charAt(t)===`(`&&d.charAt(t-1)===` `&&(e--,e===-1&&d.charAt(t-1)===` `)){let e=d.slice(0,t-1);d=d.slice(t+1),r+=` (${e}`;break}}if(r){let e=r.match(l);e&&(r=e[1],g=e[2])}return o(_,d,this._cwd),n&&Object.defineProperty(_,"constructor",{value:!0,configurable:!0}),i&&(_.evalOrigin=i,_.evalLine=s,_.evalColumn=u,_.evalFile=a&&a.replace(/\\/g,`/`)),m&&(_.native=!0),r&&(_.function=r),g&&r!==g&&(_.method=g),_}};function o(e,t,n){t&&(t=t.replace(/\\/g,`/`),t.startsWith(`${n}/`)&&(t=t.slice(n.length+1)),e.file=t)}function s(e){if(e.length===0)return[];let t=e.map(e=>n(e));return RegExp(`[\/\\\\]node_modules[\/\\\\](?:${t.join(`|`)})[\/\\\\][^:]+:\\d+:\\d+`)}let c=RegExp(`^(?:\\s*at )?(?:(new) )?(?:(.*?) \\()?(?:eval at ([^ ]+) \\((.+?):(\\d+):(\\d+)\\), )?(?:(.+?):(\\d+):(\\d+)|(native))(\\)?)$`),l=/^(.*?) \[as (.*?)\]$/;t.exports=a}))(),1);const
|
|
342
|
-
`).slice(1):void 0,n=t?
|
|
343
|
-
`).slice(1).map(e=>{let t=
|
|
339
|
+
`))}let y=co(m,d);return v.push(y),e.write(v.join(``)),c=d!==void 0,s=d?{...d}:void 0,r=a,n=p,!0};return d.clear=()=>{let t=fo(c,n.length,s);e.write(t+ae(n.length)),r=``,n=[],s=void 0,c=!1},d.done=()=>{r=``,n=[],s=void 0,c=!1,t||(go.show(e),i=!1)},d.reset=()=>{r=``,n=[],s=void 0,c=!1},d.sync=t=>{let i=o?a:void 0;o=!1;let l=t.split(`
|
|
340
|
+
`);r=t,n=l,!i&&c&&e.write(oo),i&&e.write(co(_o(l,t),i)),s=i?{...i}:void 0,c=i!==void 0},d.setCursorPosition=e=>{a=e,o=!0},d.isCursorDirty=()=>o,d.willRender=e=>u(e,l()),d},bo={create:(e,{showCursor:t=!1,incremental:n=!1}={})=>n?yo(e,{showCursor:t}):vo(e,{showCursor:t})},xo=`\x1B[?2026h`,So=`\x1B[?2026l`;function Co(e,t){return`isTTY`in e&&e.isTTY&&(t??!fe)}const wo=new WeakMap,To=`\x1B[200~`,Eo=e=>e>=48&&e<=63,Do=e=>e>=32&&e<=47,Oo=e=>e>=64&&e<=126,ko=(e,t,n)=>{let r=t+n+1,i=r;for(;i<e.length;i++){let n=e.codePointAt(i);if(n===void 0)return`pending`;if(!(Eo(n)||Do(n))&&!(n===91&&i===r))return Oo(n)?{sequence:e.slice(t,i+1),nextIndex:i+1}:void 0}return`pending`},Ao=(e,t,n)=>{let r=t+n+2;if(r>e.length)return`pending`;let i=e.codePointAt(r-1);if(!(i===void 0||!Oo(i)))return{sequence:e.slice(t,r),nextIndex:r}},jo=(e,t,n)=>{let r=e[t+n];if(r===void 0)return`pending`;if(r===`[`)return ko(e,t,n);if(r===`O`)return Ao(e,t,n)},Mo=(e,t)=>{let n=e.codePointAt(t+1),r=n!==void 0&&n>65535?2:1,i=t+1+r;return{sequence:e.slice(t,i),nextIndex:i}},No=(e,t)=>{if(t===e.length-1)return`pending`;if(e[t+1]===`\x1B`){if(t+2>=e.length)return`pending`;let n=jo(e,t,2);return n===`pending`?`pending`:n||{sequence:e.slice(t,t+2),nextIndex:t+2}}let n=jo(e,t,1);return n===`pending`?`pending`:n||Mo(e,t)},Po=(e,t)=>{let n=0;for(let r=0;r<e.length;r++){let i=e[r];(i===``||i===`\b`)&&(r>n&&t.push(e.slice(n,r)),t.push(i),n=r+1)}n<e.length&&t.push(e.slice(n))},Fo=e=>{let t=[],n=0,r=n=>({events:t,pending:e.slice(n)});for(;n<e.length;){let i=e.indexOf(`\x1B`,n);if(i===-1)return Po(e.slice(n),t),{events:t,pending:``};i>n&&Po(e.slice(n,i),t);let a=No(e,i);if(a===`pending`)return r(i);if(a.sequence===To){let o=a.nextIndex,s=e.indexOf(`\x1B[201~`,o);if(s===-1)return r(i);t.push({paste:e.slice(o,s)}),n=s+6;continue}t.push(a.sequence),n=a.nextIndex}return{events:t,pending:``}},Io=()=>{let e=``;return{push(t){let n=Fo(e+t);return e=n.pending,n.events},hasPendingEscape(){return e.startsWith(`\x1B`)&&!e.startsWith(To)&&e!==`\x1B[200`},flushPendingEscape(){if(!e.startsWith(`\x1B`))return;let t=e;return e=``,t},reset(){e=``}}},Lo={async resume(){},async[Symbol.asyncDispose](){}},Ro=(0,N.createContext)({exit(e){},async waitUntilRenderFlush(){},suspendTerminal:(async e=>{if(e){await e();return}return Lo})});Ro.displayName=`InternalAppContext`;const zo=(0,N.createContext)({stdin:r.stdin,internal_eventEmitter:new d,setRawMode(){},setBracketedPasteMode(){},isRawModeSupported:!1,internal_exitOnCtrlC:!0});zo.displayName=`InternalStdinContext`;const Bo=(0,N.createContext)({stdout:r.stdout,write(){}});Bo.displayName=`InternalStdoutContext`;const Vo=(0,N.createContext)({stderr:r.stderr,write(){}});Vo.displayName=`InternalStderrContext`;const Ho=(0,N.createContext)({activeId:void 0,add(){},remove(){},activate(){},deactivate(){},enableFocus(){},disableFocus(){},focusNext(){},focusPrevious(){},focus(){}});Ho.displayName=`InternalFocusContext`;const Uo=(0,N.createContext)({renderThrottleMs:0,subscribe(){return{startTime:0,unsubscribe(){}}}});Uo.displayName=`InternalAnimationContext`;const Wo=(0,N.createContext)({setCursorPosition(){}});Wo.displayName=`InternalCursorContext`;var Go=x(((e,t)=>{let n=/[|\\{}()[\]^$+*?.-]/g;t.exports=e=>{if(typeof e!=`string`)throw TypeError(`Expected a string`);return e.replace(n,`\\$&`)}})),Ko=w(x(((e,t)=>{let n=Go(),r=typeof process==`object`&&process&&typeof process.cwd==`function`?process.cwd():`.`,i=[].concat(T(`module`).builtinModules,`bootstrap_node`,`node`).map(e=>RegExp(`(?:\\((?:node:)?${e}(?:\\.js)?:\\d+:\\d+\\)$|^\\s*at (?:node:)?${e}(?:\\.js)?:\\d+:\\d+$)`));i.push(/\((?:node:)?internal\/[^:]+:\d+:\d+\)$/,/\s*at (?:node:)?internal\/[^:]+:\d+:\d+$/,/\/\.node-spawn-wrap-\w+-\w+\/node:\d+:\d+\)?$/);var a=class e{constructor(t){t={ignoredPackages:[],...t},`internals`in t||(t.internals=e.nodeInternals()),`cwd`in t||(t.cwd=r),this._cwd=t.cwd.replace(/\\/g,`/`),this._internals=[].concat(t.internals,s(t.ignoredPackages)),this._wrapCallSite=t.wrapCallSite||!1}static nodeInternals(){return[...i]}clean(e,t=0){t=` `.repeat(t),Array.isArray(e)||(e=e.split(`
|
|
341
|
+
`)),!/^\s*at /.test(e[0])&&/^\s*at /.test(e[1])&&(e=e.slice(1));let n=!1,r=null,i=[];return e.forEach(e=>{if(e=e.replace(/\\/g,`/`),this._internals.some(t=>t.test(e)))return;let t=/^\s*at /.test(e);n?e=e.trimEnd().replace(/^(\s+)at /,`$1`):(e=e.trim(),t&&(e=e.slice(3))),e=e.replace(`${this._cwd}/`,``),e&&(t?(r&&=(i.push(r),null),i.push(e)):(n=!0,r=e))}),i.map(e=>`${t}${e}\n`).join(``)}captureString(e,t=this.captureString){typeof e==`function`&&(t=e,e=1/0);let{stackTraceLimit:n}=Error;e&&(Error.stackTraceLimit=e);let r={};Error.captureStackTrace(r,t);let{stack:i}=r;return Error.stackTraceLimit=n,this.clean(i)}capture(e,t=this.capture){typeof e==`function`&&(t=e,e=1/0);let{prepareStackTrace:n,stackTraceLimit:r}=Error;Error.prepareStackTrace=(e,t)=>this._wrapCallSite?t.map(this._wrapCallSite):t,e&&(Error.stackTraceLimit=e);let i={};Error.captureStackTrace(i,t);let{stack:a}=i;return Object.assign(Error,{prepareStackTrace:n,stackTraceLimit:r}),a}at(e=this.at){let[t]=this.capture(1,e);if(!t)return{};let n={line:t.getLineNumber(),column:t.getColumnNumber()};o(n,t.getFileName(),this._cwd),t.isConstructor()&&Object.defineProperty(n,"constructor",{value:!0,configurable:!0}),t.isEval()&&(n.evalOrigin=t.getEvalOrigin()),t.isNative()&&(n.native=!0);let r;try{r=t.getTypeName()}catch{}r&&r!==`Object`&&r!==`[object Object]`&&(n.type=r);let i=t.getFunctionName();i&&(n.function=i);let a=t.getMethodName();return a&&i!==a&&(n.method=a),n}parseLine(e){let t=e&&e.match(c);if(!t)return null;let n=t[1]===`new`,r=t[2],i=t[3],a=t[4],s=Number(t[5]),u=Number(t[6]),d=t[7],f=t[8],p=t[9],m=t[10]===`native`,h=t[11]===`)`,g,_={};if(f&&(_.line=Number(f)),p&&(_.column=Number(p)),h&&d){let e=0;for(let t=d.length-1;t>0;t--)if(d.charAt(t)===`)`)e++;else if(d.charAt(t)===`(`&&d.charAt(t-1)===` `&&(e--,e===-1&&d.charAt(t-1)===` `)){let e=d.slice(0,t-1);d=d.slice(t+1),r+=` (${e}`;break}}if(r){let e=r.match(l);e&&(r=e[1],g=e[2])}return o(_,d,this._cwd),n&&Object.defineProperty(_,"constructor",{value:!0,configurable:!0}),i&&(_.evalOrigin=i,_.evalLine=s,_.evalColumn=u,_.evalFile=a&&a.replace(/\\/g,`/`)),m&&(_.native=!0),r&&(_.function=r),g&&r!==g&&(_.method=g),_}};function o(e,t,n){t&&(t=t.replace(/\\/g,`/`),t.startsWith(`${n}/`)&&(t=t.slice(n.length+1)),e.file=t)}function s(e){if(e.length===0)return[];let t=e.map(e=>n(e));return RegExp(`[\/\\\\]node_modules[\/\\\\](?:${t.join(`|`)})[\/\\\\][^:]+:\\d+:\\d+`)}let c=RegExp(`^(?:\\s*at )?(?:(new) )?(?:(.*?) \\()?(?:eval at ([^ ]+) \\((.+?):(\\d+):(\\d+)\\), )?(?:(.+?):(\\d+):(\\d+)|(native))(\\)?)$`),l=/^(.*?) \[as (.*?)\]$/;t.exports=a}))(),1);const qo=(e,t=2)=>e.replace(/^\t+/gm,e=>` `.repeat(e.length*t)),Jo=(e,t)=>{let n=[],r=e-t,i=e+t;for(let e=r;e<=i;e++)n.push(e);return n},Yo=(e,t,n={})=>{if(typeof e!=`string`)throw TypeError(`Source code is missing.`);if(!t||t<1)throw TypeError("Line number must start from `1`.");let r=qo(e).split(/\r?\n/);if(!(t>r.length))return Jo(t,n.around??3).filter(e=>r[e-1]!==void 0).map(e=>({line:e,value:r[e-1]}))},Xo=(0,N.createContext)({isScreenReaderEnabled:!1}),Zo=(0,N.createContext)(void 0),Qo=(0,N.forwardRef)(({children:e,backgroundColor:t,"aria-label":n,"aria-hidden":r,"aria-role":i,"aria-state":a,...o},s)=>{let{isScreenReaderEnabled:c}=(0,N.useContext)(Xo),l=n?N.createElement(`ink-text`,null,n):void 0;if(c&&r)return null;let u=N.createElement(`ink-box`,{ref:s,style:{flexWrap:`nowrap`,flexDirection:`row`,flexGrow:0,flexShrink:1,...o,backgroundColor:t,overflowX:o.overflowX??o.overflow??`visible`,overflowY:o.overflowY??o.overflow??`visible`},internal_accessibility:{role:i,state:a}},c&&l?l:e);return t?N.createElement(Zo.Provider,{value:t},u):u});Qo.displayName=`Box`;function $o({color:e,backgroundColor:t,dimColor:n=!1,bold:r=!1,italic:i=!1,underline:a=!1,strikethrough:o=!1,inverse:s=!1,wrap:c=`wrap`,children:l,"aria-label":u,"aria-hidden":d=!1}){let{isScreenReaderEnabled:f}=(0,N.useContext)(Xo),p=(0,N.useContext)(Zo),m=f&&u?u:l;return m==null||f&&d?null:N.createElement(`ink-text`,{style:{flexGrow:0,flexShrink:1,flexDirection:`row`,textWrap:c},internal_transform:c=>{n&&(c=wa.dim(c)),e&&(c=Oa(c,e,`foreground`));let l=t??p;return l&&(c=Oa(c,l,`background`)),r&&(c=wa.bold(c)),i&&(c=wa.italic(c)),a&&(c=wa.underline(c)),o&&(c=wa.strikethrough(c)),s&&(c=wa.inverse(c)),c}},m)}const es=e=>e?.replace(`file://${i()}/`,``),ts=new Ko.default({cwd:i(),internals:Ko.default.nodeInternals()});function ns({error:e}){let t=e.stack?e.stack.split(`
|
|
342
|
+
`).slice(1):void 0,n=t?ts.parseLine(t[0]):void 0,r=es(n?.file),i,a=0,o=new Map;if(r&&n?.line&&c.existsSync(r)&&(i=Yo(c.readFileSync(r,`utf8`),n.line),i))for(let{line:e}of i)a=Math.max(a,String(e).length);return N.createElement(Qo,{flexDirection:`column`,padding:1},N.createElement(Qo,null,N.createElement($o,{backgroundColor:`red`,color:`white`},` `,`ERROR`,` `),N.createElement($o,null,` `,e.message)),n&&r?N.createElement(Qo,{marginTop:1},N.createElement($o,{dimColor:!0},r,`:`,n.line,`:`,n.column)):null,n&&i?N.createElement(Qo,{marginTop:1,flexDirection:`column`},i.map(({line:e,value:t})=>N.createElement(Qo,{key:e},N.createElement(Qo,{width:a+1},N.createElement($o,{dimColor:e!==n.line,backgroundColor:e===n.line?`red`:void 0,color:e===n.line?`white`:void 0,"aria-label":e===n.line?`Line ${e}, error`:`Line ${e}`},String(e).padStart(a,` `),`:`)),N.createElement($o,{key:e,backgroundColor:e===n.line?`red`:void 0,color:e===n.line?`white`:void 0},` `+t)))):null,e.stack?N.createElement(Qo,{marginTop:1,flexDirection:`column`},e.stack.split(`
|
|
343
|
+
`).slice(1).map(e=>{let t=ts.parseLine(e),n=o.get(e)??0;o.set(e,n+1);let r=`${e}-${n}`;return!t?.file||!t.line||!t.column?N.createElement(Qo,{key:r},N.createElement($o,{dimColor:!0},`- `),N.createElement($o,{dimColor:!0,bold:!0},e,`\\t`,` `)):N.createElement(Qo,{key:r},N.createElement($o,{dimColor:!0},`- `),N.createElement($o,{dimColor:!0,bold:!0},t.function),N.createElement($o,{dimColor:!0,color:`gray`,"aria-label":`at ${es(t.file)??``} line ${t.line} column ${t.column}`},` `,`(`,es(t.file)??``,`:`,t.line,`:`,t.column,`)`))})):null)}var rs=class extends N.PureComponent{static displayName=`InternalErrorBoundary`;static getDerivedStateFromError(e){return{error:e}}state={error:void 0};componentDidCatch(e){this.props.onError(e)}render(){return this.state.error?N.createElement(ns,{error:this.state.error}):this.props.children}};function is({children:e,stdin:t,stdout:n,stderr:i,writeToStdout:a,writeToStderr:o,exitOnCtrlC:s,onExit:c,onWaitUntilRenderFlush:l,onSuspendTerminal:u,onRegisterInputControl:f,setCursorPosition:p,interactive:m,renderThrottleMs:h}){let[g,_]=(0,N.useState)(!0),[v,y]=(0,N.useState)(void 0),[,b]=(0,N.useState)([]),x=(0,N.useRef)(0),S=(0,N.useRef)(new Map),C=(0,N.useRef)(void 0),w=(0,N.useRef)(0),T=(0,N.useRef)(!1),E=(0,N.useRef)(0),D=(0,N.useRef)(new d);D.current.setMaxListeners(1/0);let O=(0,N.useRef)(void 0),k=(0,N.useRef)(Io()),ee=(0,N.useRef)(void 0),A=(0,N.useCallback)(()=>{ee.current&&=(clearTimeout(ee.current),void 0)},[]),te=(0,N.useCallback)(()=>{C.current&&=(clearTimeout(C.current),void 0)},[]),j=(0,N.useCallback)(()=>{if(te(),S.current.size===0)return;let e=1/0;for(let t of S.current.values())e=Math.min(e,t.nextDueTime);let t=Math.max(0,e-performance.now());C.current=setTimeout(()=>{C.current=void 0;let e=performance.now();for(let t of S.current.values()){if(e<t.nextDueTime)continue;t.callback(e);let n=e-t.startTime,r=Math.floor(n/t.interval)+1;t.nextDueTime=t.startTime+r*t.interval}j()},t)},[te]),ne=(0,N.useCallback)((e,t)=>{let n=performance.now();return S.current.set(e,{callback:e,interval:t,startTime:n,nextDueTime:n+t}),j(),{startTime:n,unsubscribe(){if(S.current.delete(e),S.current.size===0){te();return}j()}}},[te,j]);(0,N.useEffect)(()=>()=>{te()},[te]);let M=t.isTTY,re=(0,N.useCallback)(()=>{O.current&&=(t.removeListener(`readable`,O.current),void 0)},[t]),ie=(0,N.useCallback)(()=>{k.current.reset(),A(),re()},[A,re]),ae=(0,N.useCallback)(()=>{T.current=!1,t.setRawMode(!1),t.unref(),w.current=0,ie()},[t,ie]),oe=(0,N.useCallback)(e=>{M&&(w.current>0||T.current)&&ae(),c(e)},[M,ae,c]),se=(0,N.useCallback)(e=>{if(e===``&&s){oe();return}e===`\x1B`&&g&&y(void 0)},[s,oe,g]),ce=(0,N.useCallback)(e=>{se(e),D.current.emit(`input`,e)},[se]),le=(0,N.useCallback)(()=>{A(),ee.current=setTimeout(()=>{ee.current=void 0;let e=k.current.flushPendingEscape();e&&ce(e)},20)},[A,ce]),ue=(0,N.useCallback)(()=>{A();let e;for(;(e=t.read())!==null;){let t=k.current.push(e);for(let e of t)if(typeof e==`string`)ce(e);else{if(D.current.listenerCount(`paste`)===0){ce(e.paste);continue}D.current.emit(`paste`,e.paste)}}k.current.hasPendingEscape()&&le()},[t,ce,A,le]),de=(0,N.useCallback)(()=>{O.current||(O.current=ue,t.addListener(`readable`,ue))},[t,ue]),fe=(0,N.useCallback)(e=>{if(!M)throw t===r.stdin?Error(`Raw mode is not supported on the current process.stdin, which Ink uses as input stream by default.
|
|
344
344
|
Read about how to prevent this error on https://github.com/vadimdemedes/ink/#israwmodesupported`):Error(`Raw mode is not supported on the stdin provided to Ink.
|
|
345
|
-
Read about how to prevent this error on https://github.com/vadimdemedes/ink/#israwmodesupported`);if(t.setEncoding(`utf8`),e){if(w.current===0){let e=T.current;T.current=!1,e||(t.ref(),t.setRawMode(!0)),de()}w.current++;return}w.current!==0&&--w.current===0&&(ie(),T.current=!0,queueMicrotask(()=>{T.current&&ae()}))},[M,t,de,ie,ae]),pe=(0,N.useCallback)(e=>{if(n.isTTY){if(e){E.current===0&&n.write(`\x1B[?2004h`),E.current++;return}E.current!==0&&--E.current===0&&n.write(`\x1B[?2004l`)}},[n]),me=(0,N.useRef)({rawMode:!1,bracketedPaste:!1}),he=(0,N.useCallback)(()=>{let e=M&&w.current>0,r=E.current>0;if(me.current={rawMode:e,bracketedPaste:r},r&&n.isTTY)try{n.write(`\x1B[?2004l`)}catch{}e&&(t.setRawMode(!1),t.unref(),ie())},[M,t,n,ie]),ge=(0,N.useCallback)(()=>{let{rawMode:e,bracketedPaste:r}=me.current;if(e&&(t.setEncoding(`utf8`),t.ref(),t.setRawMode(!0),de()),r&&n.isTTY)try{n.write(`\x1B[?2004h`)}catch{}},[t,n,de]);(0,N.useInsertionEffect)(()=>{f(he,ge)},[f,he,ge]);let _e=(0,N.useCallback)((e,t)=>{let n=e.findIndex(e=>e.id===t);for(let t=n+1;t<e.length;t++){let n=e[t];if(n?.isActive)return n.id}},[]),ve=(0,N.useCallback)((e,t)=>{let n=e.findIndex(e=>e.id===t);for(let t=n-1;t>=0;t--){let n=e[t];if(n?.isActive)return n.id}},[]),P=(0,N.useCallback)(()=>{b(e=>(y(t=>{let n=e.find(e=>e.isActive)?.id;return _e(e,t)??n}),e))},[_e]),ye=(0,N.useCallback)(()=>{b(e=>(y(t=>{let n=e.findLast(e=>e.isActive)?.id;return ve(e,t)??n}),e))},[ve]);(0,N.useEffect)(()=>{let e=e=>{!g||x.current===0||(e===` `&&P(),e===`\x1B[Z`&&ye())};D.current.on(`input`,e);let t=D.current;return()=>{t.off(`input`,e)}},[g,P,ye]);let be=(0,N.useCallback)(()=>{_(!0)},[]),F=(0,N.useCallback)(()=>{_(!1)},[]),xe=(0,N.useCallback)(e=>{b(t=>(t.some(t=>t?.id===e)&&y(e),t))},[]),Se=(0,N.useCallback)((e,{autoFocus:t})=>{b(t=>(x.current=t.length+1,[...t,{id:e,isActive:!0}])),t&&y(t=>t||e)},[]),Ce=(0,N.useCallback)(e=>{y(t=>{if(t!==e)return t}),b(t=>{let n=t.filter(t=>t.id!==e);return x.current=n.length,n})},[]),we=(0,N.useCallback)(e=>{b(t=>t.map(t=>t.id===e?{id:e,isActive:!0}:t))},[]),Te=(0,N.useCallback)(e=>{y(t=>{if(t!==e)return t}),b(t=>t.map(t=>t.id===e?{id:e,isActive:!1}:t))},[]);(0,N.useEffect)(()=>()=>{let e=!n.destroyed&&!n.writableEnded;m&&e&&
|
|
346
|
-
`))};calculateLayout=()=>{let e=ln(this.options.stdout).columns;this.rootNode.yogaNode.setWidth(e),this.rootNode.yogaNode.calculateLayout(void 0,void 0,I.DIRECTION_LTR)};handleStaticChange=()=>{this.fullStaticOutput=``};onRender=()=>{if(this.hasPendingThrottledRender=!1,this.isUnmounted)return;if(this.isSuspended){this.nextRenderCommit&&=(this.nextRenderCommit.resolve(),void 0);return}this.nextRenderCommit&&=(this.nextRenderCommit.resolve(),void 0);let e=performance.now(),{output:t,outputHeight:n,staticOutput:r}=
|
|
345
|
+
Read about how to prevent this error on https://github.com/vadimdemedes/ink/#israwmodesupported`);if(t.setEncoding(`utf8`),e){if(w.current===0){let e=T.current;T.current=!1,e||(t.ref(),t.setRawMode(!0)),de()}w.current++;return}w.current!==0&&--w.current===0&&(ie(),T.current=!0,queueMicrotask(()=>{T.current&&ae()}))},[M,t,de,ie,ae]),pe=(0,N.useCallback)(e=>{if(n.isTTY){if(e){E.current===0&&n.write(`\x1B[?2004h`),E.current++;return}E.current!==0&&--E.current===0&&n.write(`\x1B[?2004l`)}},[n]),me=(0,N.useRef)({rawMode:!1,bracketedPaste:!1}),he=(0,N.useCallback)(()=>{let e=M&&w.current>0,r=E.current>0;if(me.current={rawMode:e,bracketedPaste:r},r&&n.isTTY)try{n.write(`\x1B[?2004l`)}catch{}e&&(t.setRawMode(!1),t.unref(),ie())},[M,t,n,ie]),ge=(0,N.useCallback)(()=>{let{rawMode:e,bracketedPaste:r}=me.current;if(e&&(t.setEncoding(`utf8`),t.ref(),t.setRawMode(!0),de()),r&&n.isTTY)try{n.write(`\x1B[?2004h`)}catch{}},[t,n,de]);(0,N.useInsertionEffect)(()=>{f(he,ge)},[f,he,ge]);let _e=(0,N.useCallback)((e,t)=>{let n=e.findIndex(e=>e.id===t);for(let t=n+1;t<e.length;t++){let n=e[t];if(n?.isActive)return n.id}},[]),ve=(0,N.useCallback)((e,t)=>{let n=e.findIndex(e=>e.id===t);for(let t=n-1;t>=0;t--){let n=e[t];if(n?.isActive)return n.id}},[]),P=(0,N.useCallback)(()=>{b(e=>(y(t=>{let n=e.find(e=>e.isActive)?.id;return _e(e,t)??n}),e))},[_e]),ye=(0,N.useCallback)(()=>{b(e=>(y(t=>{let n=e.findLast(e=>e.isActive)?.id;return ve(e,t)??n}),e))},[ve]);(0,N.useEffect)(()=>{let e=e=>{!g||x.current===0||(e===` `&&P(),e===`\x1B[Z`&&ye())};D.current.on(`input`,e);let t=D.current;return()=>{t.off(`input`,e)}},[g,P,ye]);let be=(0,N.useCallback)(()=>{_(!0)},[]),F=(0,N.useCallback)(()=>{_(!1)},[]),xe=(0,N.useCallback)(e=>{b(t=>(t.some(t=>t?.id===e)&&y(e),t))},[]),Se=(0,N.useCallback)((e,{autoFocus:t})=>{b(t=>(x.current=t.length+1,[...t,{id:e,isActive:!0}])),t&&y(t=>t||e)},[]),Ce=(0,N.useCallback)(e=>{y(t=>{if(t!==e)return t}),b(t=>{let n=t.filter(t=>t.id!==e);return x.current=n.length,n})},[]),we=(0,N.useCallback)(e=>{b(t=>t.map(t=>t.id===e?{id:e,isActive:!0}:t))},[]),Te=(0,N.useCallback)(e=>{y(t=>{if(t!==e)return t}),b(t=>t.map(t=>t.id===e?{id:e,isActive:!1}:t))},[]);(0,N.useEffect)(()=>()=>{let e=!n.destroyed&&!n.writableEnded;m&&e&&go.show(n),M&&(w.current>0||T.current)&&ae(),E.current>0&&(n.isTTY&&e&&n.write(`\x1B[?2004l`),E.current=0)},[n,M,ae,m]);let Ee=(0,N.useMemo)(()=>({exit:oe,waitUntilRenderFlush:l,suspendTerminal:u}),[oe,l,u]),De=(0,N.useMemo)(()=>({stdin:t,setRawMode:fe,setBracketedPasteMode:pe,isRawModeSupported:M,internal_exitOnCtrlC:s,internal_eventEmitter:D.current}),[t,fe,pe,M,s]),Oe=(0,N.useMemo)(()=>({stdout:n,write:a}),[n,a]),ke=(0,N.useMemo)(()=>({stderr:i,write:o}),[i,o]),Ae=(0,N.useMemo)(()=>({setCursorPosition:p}),[p]),je=(0,N.useMemo)(()=>({activeId:v,add:Se,remove:Ce,activate:we,deactivate:Te,enableFocus:be,disableFocus:F,focusNext:P,focusPrevious:ye,focus:xe}),[v,Se,Ce,we,Te,be,F,P,ye,xe]),Me=(0,N.useMemo)(()=>({renderThrottleMs:h,subscribe:ne}),[ne,h]);return N.createElement(Ro.Provider,{value:Ee},N.createElement(zo.Provider,{value:De},N.createElement(Bo.Provider,{value:Oe},N.createElement(Vo.Provider,{value:ke},N.createElement(Ho.Provider,{value:je},N.createElement(Uo.Provider,{value:Me},N.createElement(Wo.Provider,{value:Ae},N.createElement(rs,{onError:oe},e))))))))}is.displayName=`InternalApp`;const as={disambiguateEscapeCodes:1,reportEventTypes:2,reportAlternateKeys:4,reportAllKeysAsEscapeCodes:8,reportAssociatedText:16};function os(e){let t=0;for(let n of e)t|=as[n];return t}const ss={shift:1,alt:2,ctrl:4,super:8,hyper:16,meta:32,capsLock:64,numLock:128},cs=()=>{},ls=new TextEncoder,us=async()=>new Promise(e=>{setImmediate(e)}),ds=e=>e>=48&&e<=57,fs=(e,t)=>{if(e[t]!==27||e[t+1]!==91||e[t+2]!==63)return;let n=t+3,r=n;for(;n<e.length&&ds(e[n]);)n++;if(n!==r){if(n===e.length)return{state:`partial`};if(e[n]===117)return{state:`complete`,endIndex:n}}},ps=e=>{for(let t=0;t<e.length;t++)if(fs(e,t)?.state===`complete`)return!0;return!1},ms=e=>{let t=[],n=0;for(;n<e.length;){let r=fs(e,n);if(r?.state===`complete`){n=r.endIndex+1;continue}if(r?.state===`partial`)break;t.push(e[n]),n++}return t},hs=r.platform===`win32`,gs=({isTty:e,viewportRows:t,previousOutputHeight:n,nextOutputHeight:r,isUnmounting:i})=>{if(!e)return!1;let a=n>0,o=n>=t;return hs&&(o||r>=t)?!0:n>t||r>t&&a||o&&r<t||i&&o},_s=e=>e instanceof Error||Object.prototype.toString.call(e)===`[object Error]`,vs=e=>({canWriteToStdout:!e.destroyed&&!e.writableEnded&&(e.writable??!0),hasWritableState:e._writableState!==void 0||e.writableLength!==void 0}),ys=(e,t)=>{if(!e||typeof e.flush!=`function`)return;let n=e;t?n.flush():typeof n.cancel==`function`&&n.cancel()};var bs=class{isConcurrent;options;log;cursorPosition;throttledLog;isScreenReaderEnabled;interactive;renderThrottleMs;alternateScreen;isUnmounted;isUnmounting;lastOutput;lastOutputToRender;lastOutputHeight;lastTerminalWidth;container;rootNode;fullStaticOutput;exitPromise;exitResult;beforeExitHandler;restoreConsole;unsubscribeResize;throttledOnRender;hasPendingThrottledRender=!1;kittyProtocolEnabled=!1;kittyFlags;cancelKittyDetection;nextRenderCommit;isSuspended=!1;pauseInput;resumeInput;constructor(e){me(this),this.options=e,this.rootNode=Ur(`ink-root`),this.rootNode.onComputeLayout=this.calculateLayout,this.isScreenReaderEnabled=e.isScreenReaderEnabled??r.env.INK_SCREEN_READER===`true`,this.interactive=this.resolveInteractiveOption(e.interactive),this.alternateScreen=!1;let t=e.debug||this.isScreenReaderEnabled,n=e.maxFps??30,i=n>0?Math.max(1,Math.ceil(1e3/n)):0;if(this.renderThrottleMs=t?0:i,t)this.rootNode.onRender=this.onRender,this.throttledOnRender=void 0;else{let e=A(this.onRender,i,{leading:!0,trailing:!0});this.rootNode.onRender=()=>{this.hasPendingThrottledRender=!0,e()},this.throttledOnRender=e}this.rootNode.onImmediateRender=this.onRender,this.rootNode.onStaticChange=this.handleStaticChange,this.log=bo.create(e.stdout,{incremental:e.incrementalRendering}),this.cursorPosition=void 0,this.throttledLog=t?this.log:A(e=>{let t=this.log.willRender(e),n=this.shouldSync();n&&t&&this.options.stdout.write(xo),this.log(e),n&&t&&this.options.stdout.write(So)},void 0,{leading:!0,trailing:!0}),this.isUnmounted=!1,this.isUnmounting=!1,this.isConcurrent=e.concurrent??!1,this.lastOutput=``,this.lastOutputToRender=``,this.lastOutputHeight=0,this.lastTerminalWidth=ln(this.options.stdout).columns,this.fullStaticOutput=``;let a=e.concurrent?F.ConcurrentRoot:F.LegacyRoot;this.container=Vi.createContainer(this.rootNode,a,null,!1,null,`id`,()=>{},()=>{},()=>{},()=>{}),this.unsubscribeExit=(0,ge.default)(this.unmount,{alwaysLast:!1}),this.setAlternateScreen(!!e.alternateScreen),r.env.DEV===`true`&&Vi.injectIntoDevTools(),e.patchConsole&&this.patchConsole(),this.interactive&&(e.stdout.on(`resize`,this.resized),this.unsubscribeResize=()=>{e.stdout.off(`resize`,this.resized)}),this.initKittyKeyboard(),this.exitPromise=new Promise((e,t)=>{this.resolveExitPromise=e,this.rejectExitPromise=t}),this.exitPromise.catch(cs)}resized=()=>{let e=ln(this.options.stdout).columns;e<this.lastTerminalWidth&&(this.log.clear(),this.lastOutput=``,this.lastOutputToRender=``),this.calculateLayout(),ti(this.rootNode),this.onRender(),this.lastTerminalWidth=e};resolveExitPromise=()=>{};rejectExitPromise=()=>{};unsubscribeExit=()=>{};handleAppExit=e=>{if(!(this.isUnmounted||this.isUnmounting)){if(_s(e)){this.unmount(e);return}this.exitResult=e,this.unmount()}};setCursorPosition=e=>{this.cursorPosition=e,this.log.setCursorPosition(e)};restoreLastOutput=()=>{this.interactive&&(this.log.setCursorPosition(this.cursorPosition),this.log(this.lastOutputToRender||this.lastOutput+`
|
|
346
|
+
`))};calculateLayout=()=>{let e=ln(this.options.stdout).columns;this.rootNode.yogaNode.setWidth(e),this.rootNode.yogaNode.calculateLayout(void 0,void 0,I.DIRECTION_LTR)};handleStaticChange=()=>{this.fullStaticOutput=``};onRender=()=>{if(this.hasPendingThrottledRender=!1,this.isUnmounted)return;if(this.isSuspended){this.nextRenderCommit&&=(this.nextRenderCommit.resolve(),void 0);return}this.nextRenderCommit&&=(this.nextRenderCommit.resolve(),void 0);let e=performance.now(),{output:t,outputHeight:n,staticOutput:r}=io(this.rootNode,this.isScreenReaderEnabled);this.options.onRender?.({renderTime:performance.now()-e});let i=r&&r!==`
|
|
347
347
|
`;if(this.options.debug){i&&(this.fullStaticOutput+=r),this.lastOutput=t,this.lastOutputToRender=t,this.lastOutputHeight=n,this.options.stdout.write(this.fullStaticOutput+t);return}if(!this.interactive){i&&this.options.stdout.write(r),this.lastOutput=t,this.lastOutputToRender=t+`
|
|
348
|
-
`,this.lastOutputHeight=n;return}if(this.isScreenReaderEnabled){let e=this.shouldSync();if(e&&this.options.stdout.write(
|
|
349
|
-
`).length,e&&this.options.stdout.write(
|
|
348
|
+
`,this.lastOutputHeight=n;return}if(this.isScreenReaderEnabled){let e=this.shouldSync();if(e&&this.options.stdout.write(xo),i){let e=this.lastOutputHeight>0?ae(this.lastOutputHeight):``;this.options.stdout.write(e+r),this.lastOutputHeight=0}if(t===this.lastOutput&&!i){e&&this.options.stdout.write(So);return}let n=ln(this.options.stdout).columns,a=$t(t,n,{trim:!1,hard:!0});if(i)this.options.stdout.write(a);else{let e=this.lastOutputHeight>0?ae(this.lastOutputHeight):``;this.options.stdout.write(e+a)}this.lastOutput=t,this.lastOutputToRender=a,this.lastOutputHeight=a===``?0:a.split(`
|
|
349
|
+
`).length,e&&this.options.stdout.write(So);return}i&&(this.fullStaticOutput+=r),this.renderInteractiveFrame(t,n,i?r:``)};render(e){let t=N.createElement(Xo.Provider,{value:{isScreenReaderEnabled:this.isScreenReaderEnabled}},N.createElement(is,{stdin:this.options.stdin,stdout:this.options.stdout,stderr:this.options.stderr,exitOnCtrlC:this.options.exitOnCtrlC,interactive:this.interactive,renderThrottleMs:this.renderThrottleMs,writeToStdout:this.writeToStdout,writeToStderr:this.writeToStderr,setCursorPosition:this.setCursorPosition,onExit:this.handleAppExit,onWaitUntilRenderFlush:this.waitUntilRenderFlush,onSuspendTerminal:this.suspendTerminal,onRegisterInputControl:this.registerInputControl},e));this.options.concurrent?Vi.updateContainer(t,this.container,null,cs):(Vi.updateContainerSync(t,this.container,null,cs),Vi.flushSyncWork())}writeToStdout(e){if(this.isUnmounted||this.isSuspended)return;if(this.options.debug){this.options.stdout.write(e+this.fullStaticOutput+this.lastOutput);return}if(!this.interactive){this.options.stdout.write(e);return}let t=this.shouldSync();t&&this.options.stdout.write(xo),this.log.clear(),this.options.stdout.write(e),this.restoreLastOutput(),t&&this.options.stdout.write(So)}writeToStderr(e){if(this.isUnmounted||this.isSuspended)return;if(this.options.debug){this.options.stderr.write(e),this.options.stdout.write(this.fullStaticOutput+this.lastOutput);return}if(!this.interactive){this.options.stderr.write(e);return}let t=this.shouldSync();t&&this.options.stdout.write(xo),this.log.clear(),this.options.stderr.write(e),this.restoreLastOutput(),t&&this.options.stdout.write(So)}unmount(e){if(this.isUnmounted||this.isUnmounting)return;this.isUnmounting=!0,this.beforeExitHandler&&=(r.off(`beforeExit`,this.beforeExitHandler),void 0);let t=this.options.stdout,{canWriteToStdout:n,hasWritableState:i}=vs(t);ys(this.throttledOnRender,n),n&&(!this.throttledOnRender||!this.hasPendingThrottledRender&&this.fullStaticOutput===``)&&(this.calculateLayout(),this.onRender()),this.isUnmounted=!0,this.unsubscribeExit(),ys(this.throttledLog,n),typeof this.restoreConsole==`function`&&this.restoreConsole();let a=()=>{typeof this.unsubscribeResize==`function`&&this.unsubscribeResize(),this.cancelKittyDetection&&this.cancelKittyDetection(),n&&(this.kittyProtocolEnabled&&this.writeBestEffort(this.options.stdout,`\x1B[<u`),this.alternateScreen&&=(this.writeBestEffort(this.options.stdout,ue),this.writeBestEffort(this.options.stdout,ao),!1),this.interactive?this.options.debug||this.log.done():this.options.stdout.write(this.options.debug?`
|
|
350
350
|
`:this.lastOutput+`
|
|
351
|
-
`)),this.kittyProtocolEnabled=!1,
|
|
352
|
-
`))}patchConsole(){this.options.debug||(this.restoreConsole=P((e,t)=>{e===`stdout`&&this.writeToStdout(t),e===`stderr`&&(t.startsWith(`The above error occurred`)||this.writeToStderr(t))}))}registerInputControl(e,t){this.pauseInput=e,this.resumeInput=t}async suspendTerminal(e){if(this.beginSuspend(),e){try{await e()}finally{await this.endSuspend()}return}let t=async()=>{await this.endSuspend()};return{resume:t,[Symbol.asyncDispose]:t}}setAlternateScreen(e){this.alternateScreen=this.resolveAlternateScreenOption(e,this.interactive),this.alternateScreen&&(this.writeBestEffort(this.options.stdout,le),this.writeBestEffort(this.options.stdout,
|
|
353
|
-
`;if(
|
|
354
|
-
`),n},
|
|
355
|
-
`)i.name=`enter`;else if(e===` `)i.name=`tab`;else if(e===`\b`||e===`\x1B\b`)i.name=`backspace`,i.meta=e.charAt(0)===`\x1B`;else if(e===``||e===`\x1B`)i.name=`backspace`,i.meta=e.charAt(0)===`\x1B`;else if(e===`\x1B`||e===`\x1B\x1B`)i.name=`escape`,i.meta=e.length===2;else if(e===` `||e===`\x1B `)i.name=`space`,i.meta=e.length===2;else if(e.length===1&&e<=``)i.name=String.fromCharCode(e.charCodeAt(0)+97-1),i.ctrl=!0;else if(e.length===1&&e>=`0`&&e<=`9`)i.name=`number`;else if(e.length===1&&e>=`a`&&e<=`z`)i.name=e;else if(e.length===1&&e>=`A`&&e<=`Z`)i.name=e.toLowerCase(),i.shift=!0;else if(t=
|
|
351
|
+
`)),this.kittyProtocolEnabled=!1,wo.delete(this.options.stdout);let{exitResult:t}=this,r=()=>{_s(e)?this.rejectExitPromise(e):this.resolveExitPromise(t)};e!==void 0&&!_s(e)?r():n&&i?this.options.stdout.write(``,r):setImmediate(r)},o=Vi;this.options.concurrent?(Vi.updateContainerSync(null,this.container,null,cs),Vi.flushSyncWork(),o.flushPassiveEffects?.(),a()):(Vi.updateContainerSync(null,this.container,null,cs),Vi.flushSyncWork(),a())}async waitUntilExit(){return this.beforeExitHandler||(this.beforeExitHandler=()=>{this.unmount()},r.once(`beforeExit`,this.beforeExitHandler)),this.exitPromise}async waitUntilRenderFlush(){if(this.isUnmounted||this.isUnmounting){await this.awaitExit();return}if(await us(),this.isUnmounted||this.isUnmounting){await this.awaitExit();return}if(this.isConcurrent&&this.hasPendingConcurrentWork()&&(await Promise.race([this.awaitNextRender(),this.awaitExit()]),this.isUnmounted||this.isUnmounting)){this.nextRenderCommit=void 0,await this.awaitExit();return}Vi.flushSyncWork();let e=this.options.stdout,{canWriteToStdout:t,hasWritableState:n}=vs(e);if(ys(this.throttledOnRender,t),ys(this.throttledLog,t),t&&n){await new Promise(e=>{this.options.stdout.write(``,()=>{e()})});return}await us()}clear(){this.interactive&&!this.options.debug&&(this.log.clear(),this.log.sync(this.lastOutputToRender||this.lastOutput+`
|
|
352
|
+
`))}patchConsole(){this.options.debug||(this.restoreConsole=P((e,t)=>{e===`stdout`&&this.writeToStdout(t),e===`stderr`&&(t.startsWith(`The above error occurred`)||this.writeToStderr(t))}))}registerInputControl(e,t){this.pauseInput=e,this.resumeInput=t}async suspendTerminal(e){if(this.beginSuspend(),e){try{await e()}finally{await this.endSuspend()}return}let t=async()=>{await this.endSuspend()};return{resume:t,[Symbol.asyncDispose]:t}}setAlternateScreen(e){this.alternateScreen=this.resolveAlternateScreenOption(e,this.interactive),this.alternateScreen&&(this.writeBestEffort(this.options.stdout,le),this.writeBestEffort(this.options.stdout,oo))}resolveInteractiveOption(e){return e??(!fe&&!!this.options.stdout.isTTY)}resolveAlternateScreenOption(e,t){return!!e&&t&&!!this.options.stdout.isTTY}shouldSync(){return Co(this.options.stdout,this.interactive)}writeBestEffort(e,t){try{e.write(t)}catch{}}async awaitExit(){try{await this.exitPromise}catch{}}hasPendingConcurrentWork(){let e=this.container;return(e.pendingLanes??0)!==0&&e.callbackNode!==void 0&&e.callbackNode!==null}async awaitNextRender(){if(!this.nextRenderCommit){let e,t=new Promise(t=>{e=t});this.nextRenderCommit={promise:t,resolve:e}}return this.nextRenderCommit.promise}renderInteractiveFrame(e,t,n){let r=n!==``,i=this.options.stdout.isTTY,a=i?ln(this.options.stdout).rows:24,o=i&&t>=a?e:e+`
|
|
353
|
+
`;if(gs({isTty:i,viewportRows:a,previousOutputHeight:this.lastOutputHeight,nextOutputHeight:t,isUnmounting:this.isUnmounting})){let n=this.shouldSync();n&&this.options.stdout.write(xo),this.options.stdout.write(ce+this.fullStaticOutput+e),this.lastOutput=e,this.lastOutputToRender=o,this.lastOutputHeight=t,this.log.sync(o),n&&this.options.stdout.write(So);return}if(r){let e=this.shouldSync();e&&this.options.stdout.write(xo),this.log.clear(),this.options.stdout.write(n),this.log(o),e&&this.options.stdout.write(So)}else(e!==this.lastOutput||this.log.isCursorDirty())&&this.throttledLog(o);this.lastOutput=e,this.lastOutputToRender=o,this.lastOutputHeight=t}initKittyKeyboard(){if(!this.options.kittyKeyboard)return;let e=this.options.kittyKeyboard,t=e.mode??`auto`;if(t===`disabled`)return;let n=e.flags??[`disambiguateEscapeCodes`];if(t===`enabled`){this.options.stdin.isTTY&&this.options.stdout.isTTY&&this.enableKittyProtocol(n);return}!this.interactive||!this.options.stdin.isTTY||!this.options.stdout.isTTY||this.confirmKittySupport(n)}confirmKittySupport(e){let{stdin:t,stdout:n}=this.options,r=[],i=()=>{this.cancelKittyDetection=void 0,clearTimeout(o),t.removeListener(`data`,a);let e=ms(r);r=[],e.length>0&&t.unshift(Uint8Array.from(e))},a=t=>{let n=typeof t==`string`?ls.encode(t):t;for(let e of n)r.push(e);ps(r)&&(i(),this.isUnmounted||this.enableKittyProtocol(e))};t.on(`data`,a);let o=setTimeout(i,200);this.cancelKittyDetection=i,n.write(`\x1B[?u`)}enableKittyProtocol(e){this.options.stdout.write(`\u001B[>${os(e)}u`),this.kittyProtocolEnabled=!0,this.kittyFlags=e}beginSuspend(){if(this.isSuspended)throw Error(`The terminal is already suspended. Resume the current suspension before suspending again.`);if(this.isSuspended=!0,!(!this.interactive||this.isUnmounted||this.isUnmounting))try{let e=this.options.stdout,{canWriteToStdout:t}=vs(e);ys(this.throttledOnRender,t),ys(this.throttledLog,t),t&&(this.log.clear(),this.log.done(),this.kittyProtocolEnabled&&this.writeBestEffort(this.options.stdout,`\x1B[<u`),this.alternateScreen&&this.writeBestEffort(this.options.stdout,ue)),this.pauseInput?.()}catch(e){this.isSuspended=!1;try{this.resumeInput?.()}catch{}throw e}}async endSuspend(){if(!this.isSuspended||(this.isSuspended=!1,this.resumeInput?.(),!this.interactive||this.isUnmounted||this.isUnmounting))return;let e=this.options.stdout,{canWriteToStdout:t}=vs(e);t&&(this.alternateScreen&&this.writeBestEffort(this.options.stdout,le),this.kittyProtocolEnabled&&this.kittyFlags&&this.writeBestEffort(this.options.stdout,`\u001B[>${os(this.kittyFlags)}u`)),this.lastOutput=``,this.lastOutputToRender=``,this.lastOutputHeight=0,this.log.reset();try{this.calculateLayout(),this.onRender(),await this.waitUntilRenderFlush()}catch{}}};const xs=(e,t)=>{let n={stdout:r.stdout,stdin:r.stdin,stderr:r.stderr,debug:!1,exitOnCtrlC:!0,patchConsole:!0,maxFps:30,incrementalRendering:!1,concurrent:!1,alternateScreen:!1,...Ss(t)},i=Cs(n.stdout,()=>new bs(n));return i.render(e),{rerender:i.render,unmount(){i.unmount()},waitUntilExit:i.waitUntilExit,waitUntilRenderFlush:i.waitUntilRenderFlush,cleanup(){i.unmount()},clear:i.clear}},Ss=(e={})=>e instanceof n?{stdout:e,stdin:r.stdin}:e,Cs=(e,t)=>{let n=wo.get(e);if(n===void 0){let n=t();return wo.set(e,n),n}return r.stderr.write(`Warning: render() was called again for the same stdout before the previous Ink instance was unmounted. Reusing stdout across multiple render() calls is unsupported. Call unmount() first.
|
|
354
|
+
`),n},ws=new TextDecoder,Ts=/^(?:\x1b)([a-zA-Z0-9])$/,Es=/^(?:\x1b+)(O|N|\[|\[\[)(?:(\d+)(?:;(\d+))?([~^$])|(?:1;)?(\d+)?([a-zA-Z]))/,Ds={OP:`f1`,OQ:`f2`,OR:`f3`,OS:`f4`,"[P":`f1`,"[Q":`f2`,"[R":`f3`,"[S":`f4`,"[11~":`f1`,"[12~":`f2`,"[13~":`f3`,"[14~":`f4`,"[[A":`f1`,"[[B":`f2`,"[[C":`f3`,"[[D":`f4`,"[[E":`f5`,"[15~":`f5`,"[17~":`f6`,"[18~":`f7`,"[19~":`f8`,"[20~":`f9`,"[21~":`f10`,"[23~":`f11`,"[24~":`f12`,"[A":`up`,"[B":`down`,"[C":`right`,"[D":`left`,"[E":`clear`,"[F":`end`,"[H":`home`,OA:`up`,OB:`down`,OC:`right`,OD:`left`,OE:`clear`,OF:`end`,OH:`home`,"[1~":`home`,"[2~":`insert`,"[3~":`delete`,"[4~":`end`,"[5~":`pageup`,"[6~":`pagedown`,"[[5~":`pageup`,"[[6~":`pagedown`,"[7~":`home`,"[8~":`end`,"[a":`up`,"[b":`down`,"[c":`right`,"[d":`left`,"[e":`clear`,"[2$":`insert`,"[3$":`delete`,"[5$":`pageup`,"[6$":`pagedown`,"[7$":`home`,"[8$":`end`,Oa:`up`,Ob:`down`,Oc:`right`,Od:`left`,Oe:`clear`,"[2^":`insert`,"[3^":`delete`,"[5^":`pageup`,"[6^":`pagedown`,"[7^":`home`,"[8^":`end`,"[Z":`tab`},Os=[...Object.values(Ds),`backspace`],ks=e=>[`[a`,`[b`,`[c`,`[d`,`[e`,`[2$`,`[3$`,`[5$`,`[6$`,`[7$`,`[8$`,`[Z`].includes(e),As=e=>[`Oa`,`Ob`,`Oc`,`Od`,`Oe`,`[2^`,`[3^`,`[5^`,`[6^`,`[7^`,`[8^`].includes(e),js=/^\x1b\[(\d+)(?:;(\d+)(?::(\d+))?(?:;([\d:]+))?)?u$/,Ms=/^\x1b\[(\d+);(\d+):(\d+)([A-Za-z~])$/,Ns={A:`up`,B:`down`,C:`right`,D:`left`,E:`clear`,F:`end`,H:`home`,P:`f1`,Q:`f2`,R:`f3`,S:`f4`},Ps={2:`insert`,3:`delete`,5:`pageup`,6:`pagedown`,7:`home`,8:`end`,11:`f1`,12:`f2`,13:`f3`,14:`f4`,15:`f5`,17:`f6`,18:`f7`,19:`f8`,20:`f9`,21:`f10`,23:`f11`,24:`f12`},Fs={27:`escape`,9:`tab`,127:`backspace`,8:`backspace`,57358:`capslock`,57359:`scrolllock`,57360:`numlock`,57361:`printscreen`,57362:`pause`,57363:`menu`,57376:`f13`,57377:`f14`,57378:`f15`,57379:`f16`,57380:`f17`,57381:`f18`,57382:`f19`,57383:`f20`,57384:`f21`,57385:`f22`,57386:`f23`,57387:`f24`,57388:`f25`,57389:`f26`,57390:`f27`,57391:`f28`,57392:`f29`,57393:`f30`,57394:`f31`,57395:`f32`,57396:`f33`,57397:`f34`,57398:`f35`,57399:`kp0`,57400:`kp1`,57401:`kp2`,57402:`kp3`,57403:`kp4`,57404:`kp5`,57405:`kp6`,57406:`kp7`,57407:`kp8`,57408:`kp9`,57409:`kpdecimal`,57410:`kpdivide`,57411:`kpmultiply`,57412:`kpsubtract`,57413:`kpadd`,57414:`kpenter`,57415:`kpequal`,57416:`kpseparator`,57417:`kpleft`,57418:`kpright`,57419:`kpup`,57420:`kpdown`,57421:`kppageup`,57422:`kppagedown`,57423:`kphome`,57424:`kpend`,57425:`kpinsert`,57426:`kpdelete`,57427:`kpbegin`,57428:`mediaplay`,57429:`mediapause`,57430:`mediaplaypause`,57431:`mediareverse`,57432:`mediastop`,57433:`mediafastforward`,57434:`mediarewind`,57435:`mediatracknext`,57436:`mediatrackprevious`,57437:`mediarecord`,57438:`lowervolume`,57439:`raisevolume`,57440:`mutevolume`,57441:`leftshift`,57442:`leftcontrol`,57443:`leftalt`,57444:`leftsuper`,57445:`lefthyper`,57446:`leftmeta`,57447:`rightshift`,57448:`rightcontrol`,57449:`rightalt`,57450:`rightsuper`,57451:`righthyper`,57452:`rightmeta`,57453:`isoLevel3Shift`,57454:`isoLevel5Shift`},Is=e=>e>=0&&e<=1114111&&!(e>=55296&&e<=57343),Ls=e=>Is(e)?String.fromCodePoint(e):`?`;function Rs(e){return e===3?`release`:e===2?`repeat`:`press`}function zs(e){return{ctrl:!!(e&ss.ctrl),shift:!!(e&ss.shift),meta:!!(e&(ss.meta|ss.alt)),super:!!(e&ss.super),hyper:!!(e&ss.hyper),capsLock:!!(e&ss.capsLock),numLock:!!(e&ss.numLock)}}const Bs=e=>{let t=js.exec(e);if(!t)return null;let n=parseInt(t[1],10),r=t[2]?Math.max(0,parseInt(t[2],10)-1):0,i=t[3]?parseInt(t[3],10):1,a=t[4];if(!Is(n))return null;let o;a&&(o=a.split(`:`).map(e=>Ls(parseInt(e,10))).join(``));let s,c;return n===32?(s=`space`,c=!0):n===13?(s=`return`,c=!0):Fs[n]?(s=Fs[n],c=!1):n>=1&&n<=26?(s=String.fromCodePoint(n+96),c=!1):(s=Ls(n).toLowerCase(),c=!0),c&&!o&&(o=Ls(n)),{name:s,...zs(r),eventType:Rs(i),sequence:e,raw:e,isKittyProtocol:!0,isPrintable:c,text:o}},Vs=e=>{let t=Ms.exec(e);if(!t)return null;let n=parseInt(t[1],10),r=Math.max(0,parseInt(t[2],10)-1),i=parseInt(t[3],10),a=t[4],o=a===`~`?Ps[n]:Ns[a];return o?{name:o,...zs(r),eventType:Rs(i),sequence:e,raw:e,isKittyProtocol:!0,isPrintable:!1}:null},Hs=(e=``)=>{let t;e instanceof Uint8Array?e[0]>127&&e[1]===void 0?(e[0]-=128,e=`\x1B`+ws.decode(e)):e=ws.decode(e):e!==void 0&&typeof e!=`string`?e=String(e):e||=``;let n=Bs(e);if(n)return n;let r=Vs(e);if(r)return r;if(js.test(e))return{name:``,ctrl:!1,meta:!1,shift:!1,sequence:e,raw:e,isKittyProtocol:!0,isPrintable:!1};let i={name:``,ctrl:!1,meta:!1,shift:!1,sequence:e,raw:e};if(i.sequence=i.sequence||e||i.name,e===`\r`||e===`\x1B\r`)i.raw=void 0,i.name=`return`,i.meta=e.length===2;else if(e===`
|
|
355
|
+
`)i.name=`enter`;else if(e===` `)i.name=`tab`;else if(e===`\b`||e===`\x1B\b`)i.name=`backspace`,i.meta=e.charAt(0)===`\x1B`;else if(e===``||e===`\x1B`)i.name=`backspace`,i.meta=e.charAt(0)===`\x1B`;else if(e===`\x1B`||e===`\x1B\x1B`)i.name=`escape`,i.meta=e.length===2;else if(e===` `||e===`\x1B `)i.name=`space`,i.meta=e.length===2;else if(e.length===1&&e<=``)i.name=String.fromCharCode(e.charCodeAt(0)+97-1),i.ctrl=!0;else if(e.length===1&&e>=`0`&&e<=`9`)i.name=`number`;else if(e.length===1&&e>=`a`&&e<=`z`)i.name=e;else if(e.length===1&&e>=`A`&&e<=`Z`)i.name=e.toLowerCase(),i.shift=!0;else if(t=Ts.exec(e))i.name=t[1].toLowerCase(),i.meta=!0,i.shift=/^[A-Z]$/.test(t[1]);else if(t=Es.exec(e)){let n=[...e];n[0]===`\x1B`&&n[1]===`\x1B`&&(i.meta=!0);let r=[t[1],t[2],t[4],t[6]].filter(Boolean).join(``),a=(t[3]||t[5]||1)-1;i.ctrl=!!(a&4),i.meta=i.meta||!!(a&10),i.shift=!!(a&1),i.code=r,i.name=Ds[r]??``,i.shift=ks(r)||i.shift,i.ctrl=As(r)||i.ctrl}return i},Us=()=>(0,N.useContext)(zo),Ws=(e,t={})=>{let{setRawMode:n,internal_exitOnCtrlC:r,internal_eventEmitter:i}=Us();(0,N.useEffect)(()=>{if(t.isActive!==!1)return n(!0),()=>{n(!1)}},[t.isActive,n]);let a=(0,N.useEffectEvent)(t=>{let n=Hs(t),i={upArrow:n.name===`up`,downArrow:n.name===`down`,leftArrow:n.name===`left`,rightArrow:n.name===`right`,pageDown:n.name===`pagedown`,pageUp:n.name===`pageup`,home:n.name===`home`,end:n.name===`end`,return:n.name===`return`,escape:n.name===`escape`,ctrl:n.ctrl,shift:n.shift,tab:n.name===`tab`,backspace:n.name===`backspace`,delete:n.name===`delete`,meta:n.meta,super:n.super??!1,hyper:n.hyper??!1,capsLock:n.capsLock??!1,numLock:n.numLock??!1,eventType:n.eventType},a;a=n.isKittyProtocol?n.isPrintable?n.text??n.name:n.ctrl&&n.name.length===1?n.name:``:n.ctrl?n.name??``:n.sequence,!n.isKittyProtocol&&Os.includes(n.name)&&(a=``),a.startsWith(`\x1B`)&&(a=a.slice(1)),a.length===1&&/[A-Z]/.test(a)&&(i.shift=!0),!(a===`c`&&i.ctrl&&r)&&Vi.discreteUpdates(()=>{e(a,i)})});(0,N.useEffect)(()=>{if(t.isActive!==!1)return i.on(`input`,a),()=>{i.removeListener(`input`,a)}},[t.isActive,i])},Gs=()=>(0,N.useContext)(Ro),Ks=()=>(0,N.useContext)(Bo),qs={width:0,height:0,left:0,top:0},Js=e=>{if(e)return e.parentNode?Js(e.parentNode):e.nodeName===`ink-root`?e:void 0},Ys=e=>{let[t,n]=(0,N.useState)(qs),[r,i]=(0,N.useState)(!1),a=(0,N.useCallback)(()=>{let t=e.current?.yogaNode?.getComputedLayout()??qs;n(e=>e.width!==t.width||e.height!==t.height||e.left!==t.left||e.top!==t.top?t:e),i(!!e.current)},[e]);return(0,N.useEffect)(a),(0,N.useEffect)(()=>{let t=Js(e.current);if(t)return ei(t,a)}),(0,N.useMemo)(()=>({...t,hasMeasured:r}),[t,r])},Xs=e=>({width:e.yogaNode?.getComputedWidth()??0,height:e.yogaNode?.getComputedHeight()??0});
|
|
356
356
|
/**
|
|
357
357
|
* @license React
|
|
358
358
|
* react-jsx-runtime.production.js
|
|
@@ -362,7 +362,7 @@ Read about how to prevent this error on https://github.com/vadimdemedes/ink/#isr
|
|
|
362
362
|
* This source code is licensed under the MIT license found in the
|
|
363
363
|
* LICENSE file in the root directory of this source tree.
|
|
364
364
|
*/
|
|
365
|
-
var
|
|
365
|
+
var Zs=x((e=>{var t=Symbol.for(`react.transitional.element`),n=Symbol.for(`react.fragment`);function r(e,n,r){var i=null;if(r!==void 0&&(i=``+r),n.key!==void 0&&(i=``+n.key),`key`in n)for(var a in r={},n)a!==`key`&&(r[a]=n[a]);else r=n;return n=r.ref,{$$typeof:t,type:e,key:i,ref:n===void 0?null:n,props:r}}e.Fragment=n,e.jsx=r,e.jsxs=r})),Qs=x((e=>{
|
|
366
366
|
/**
|
|
367
367
|
* @license React
|
|
368
368
|
* react-jsx-runtime.development.js
|
|
@@ -377,6 +377,6 @@ process.env.NODE_ENV!==`production`&&(function(){function t(e){if(e==null)return
|
|
|
377
377
|
<%s {...props} />
|
|
378
378
|
React keys must be passed directly to JSX without using spread:
|
|
379
379
|
let props = %s;
|
|
380
|
-
<%s key={someKey} {...props} />`,o,p,m,p),ae[p+o]=!0)}if(p=null,i!==void 0&&(r(i),p=``+i),s(n)&&(r(n.key),p=``+n.key),`key`in n)for(var h in i={},n)h!==`key`&&(i[h]=n[h]);else i=n;return p&&c(i,typeof e==`function`?e.displayName||e.name||`Unknown`:e),u(e,p,i,a(),l,d)}function f(e){p(e)?e._store&&(e._store.validated=1):typeof e==`object`&&e&&e.$$typeof===E&&(e._payload.status===`fulfilled`?p(e._payload.value)&&e._payload.value._store&&(e._payload.value._store.validated=1):e._store&&(e._store.validated=1))}function p(e){return typeof e==`object`&&!!e&&e.$$typeof===h}var m=O(),h=Symbol.for(`react.transitional.element`),g=Symbol.for(`react.portal`),_=Symbol.for(`react.fragment`),v=Symbol.for(`react.strict_mode`),y=Symbol.for(`react.profiler`),b=Symbol.for(`react.consumer`),x=Symbol.for(`react.context`),S=Symbol.for(`react.forward_ref`),C=Symbol.for(`react.suspense`),w=Symbol.for(`react.suspense_list`),T=Symbol.for(`react.memo`),E=Symbol.for(`react.lazy`),D=Symbol.for(`react.activity`),k=Symbol.for(`react.client.reference`),ee=m.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,A=Object.prototype.hasOwnProperty,te=Array.isArray,j=console.createTask?console.createTask:function(){return null};m={react_stack_bottom_frame:function(e){return e()}};var ne,M={},re=m.react_stack_bottom_frame.bind(m,o)(),ie=j(i(o)),ae={};e.Fragment=_,e.jsx=function(e,t,n){var r=1e4>ee.recentlyCreatedOwnerStacks++;return d(e,t,n,!1,r?Error(`react-stack-top-frame`):re,r?j(i(e)):ie)},e.jsxs=function(e,t,n){var r=1e4>ee.recentlyCreatedOwnerStacks++;return d(e,t,n,!0,r?Error(`react-stack-top-frame`):re,r?j(i(e)):ie)}})()})),
|
|
381
|
-
`).
|
|
382
|
-
`),n=t
|
|
380
|
+
<%s key={someKey} {...props} />`,o,p,m,p),ae[p+o]=!0)}if(p=null,i!==void 0&&(r(i),p=``+i),s(n)&&(r(n.key),p=``+n.key),`key`in n)for(var h in i={},n)h!==`key`&&(i[h]=n[h]);else i=n;return p&&c(i,typeof e==`function`?e.displayName||e.name||`Unknown`:e),u(e,p,i,a(),l,d)}function f(e){p(e)?e._store&&(e._store.validated=1):typeof e==`object`&&e&&e.$$typeof===E&&(e._payload.status===`fulfilled`?p(e._payload.value)&&e._payload.value._store&&(e._payload.value._store.validated=1):e._store&&(e._store.validated=1))}function p(e){return typeof e==`object`&&!!e&&e.$$typeof===h}var m=O(),h=Symbol.for(`react.transitional.element`),g=Symbol.for(`react.portal`),_=Symbol.for(`react.fragment`),v=Symbol.for(`react.strict_mode`),y=Symbol.for(`react.profiler`),b=Symbol.for(`react.consumer`),x=Symbol.for(`react.context`),S=Symbol.for(`react.forward_ref`),C=Symbol.for(`react.suspense`),w=Symbol.for(`react.suspense_list`),T=Symbol.for(`react.memo`),E=Symbol.for(`react.lazy`),D=Symbol.for(`react.activity`),k=Symbol.for(`react.client.reference`),ee=m.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,A=Object.prototype.hasOwnProperty,te=Array.isArray,j=console.createTask?console.createTask:function(){return null};m={react_stack_bottom_frame:function(e){return e()}};var ne,M={},re=m.react_stack_bottom_frame.bind(m,o)(),ie=j(i(o)),ae={};e.Fragment=_,e.jsx=function(e,t,n){var r=1e4>ee.recentlyCreatedOwnerStacks++;return d(e,t,n,!1,r?Error(`react-stack-top-frame`):re,r?j(i(e)):ie)},e.jsxs=function(e,t,n){var r=1e4>ee.recentlyCreatedOwnerStacks++;return d(e,t,n,!0,r?Error(`react-stack-top-frame`):re,r?j(i(e)):ie)}})()})),H=x(((e,t)=>{process.env.NODE_ENV===`production`?t.exports=Zs():t.exports=Qs()}))(),$s=({children:e,onMeasure:t,index:n,width:r,measureKey:i})=>{let a=(0,N.useRef)(null);return(0,N.useLayoutEffect)(()=>{if(a.current){let{height:e}=Xs(a.current);t(n,e)}},[n,t,r,i,e]),(0,H.jsx)(Qo,{ref:a,flexShrink:0,width:`100%`,flexDirection:`column`,children:e})};function ec(e){let[t,n]=(0,N.useState)(e),r=(0,N.useRef)(e);return[t,(0,N.useCallback)(e=>{let t=typeof e==`function`?e(r.current):e;r.current=t,n(t)},[]),(0,N.useCallback)(()=>r.current,[])]}var tc=(0,N.forwardRef)(({scrollOffset:e,onViewportSizeChange:t,onContentHeightChange:n,onItemHeightChange:r,debug:i=!1,children:a,...o},s)=>{let[c,l,u]=ec({height:0,width:0}),[d,f,p]=ec(0),[m,h]=(0,N.useState)({}),g=(0,N.useRef)(null),_=(0,N.useRef)(null),v=(0,N.useRef)(0);(0,N.useLayoutEffect)(()=>{d!==v.current&&(n?.(d,v.current),v.current=d)},[d,n]);let y=(0,N.useRef)({}),b=(0,N.useRef)([]),x=(0,N.useRef)([]),S=(0,N.useRef)(0),C=(0,N.useCallback)((e,t)=>{let n=b.current[e]||e;if(y.current[n]!==t){let i=y.current[n]||0;y.current={...y.current,[n]:t};let a=0;for(let e of b.current)a+=y.current[e]||0;let o=p();a!==o&&f(a),r?.(e,t,i),S.current=Math.min(S.current,e+1)}},[r,n,p,f]),w=(0,N.useCallback)(()=>{if(g.current){let{width:e,height:n}=Xs(g.current),r=u();(e!==r.width||n!==r.height)&&(t?.({width:e,height:n},r),l({width:e,height:n}))}},[g,t,u,l]);(0,N.useLayoutEffect)(()=>{w()});let T=(0,N.useRef)(null);if(T.current!==a){T.current=a;let e=[],t={};N.Children.forEach(a,(n,r)=>{if(!n)return;let i=(0,N.isValidElement)(n)?n.key:null,a=i===null?r:i;e[r]=a,t[a]=y.current[a]||0}),y.current=t,b.current=e,x.current=Array(e.length).fill(0),S.current=0;let n=0;e.forEach(e=>{n+=t[e]||0});let r=p();n!==r&&f(n)}return(0,N.useImperativeHandle)(s,()=>({getContentHeight:p,getViewportHeight:()=>u().height,getBottomOffset:()=>Math.max(0,p()-u().height),getItemHeight:e=>{let t=b.current[e]||e;return y.current[t]||0},remeasure:w,remeasureItem:e=>h(t=>({...t,[e]:(t[e]||0)+1})),getItemPosition:e=>{if(e<0||e>=b.current.length)return null;if(e>=S.current){let t=0,n=0;if(S.current>0){n=S.current;let e=n-1,r=b.current[e]||e,i=y.current[r]||0;t=(x.current[e]??0)+i}for(let r=n;r<=e;r++){x.current[r]=t;let e=b.current[r]||r,n=y.current[e]||0;t+=n}S.current=e+1}let t=x.current[e]??0,n=b.current[e]||e;return{top:t,height:y.current[n]||0}}}),[]),(0,H.jsx)(Qo,{...o,children:(0,H.jsx)(Qo,{ref:g,width:`100%`,children:(0,H.jsx)(Qo,{overflow:i?void 0:`hidden`,width:`100%`,children:(0,H.jsx)(Qo,{ref:_,width:`100%`,flexDirection:`column`,marginTop:-e,children:N.Children.map(a,(e,t)=>e?(0,H.jsx)($s,{index:t,width:c.width,onMeasure:C,measureKey:m[t],children:e},(0,N.isValidElement)(e)&&e.key||t):null)})})})})});function nc(e){let[t,n]=(0,N.useState)(e),r=(0,N.useRef)(e);return[t,(0,N.useCallback)(e=>{let t=typeof e==`function`?e(r.current):e;r.current=t,n(t)},[]),(0,N.useCallback)(()=>r.current,[])]}var rc=(0,N.forwardRef)(({onScroll:e,onViewportSizeChange:t,onContentHeightChange:n,onItemHeightChange:r,debug:i=!1,children:a,...o},s)=>{let[c,l,u]=nc(0),d=(0,N.useRef)(null),f=(0,N.useRef)(0),p=(0,N.useCallback)((t,r)=>{f.current=t,n?.(t,r),u()>t&&(l(t),e?.(t))},[n,e,u,l]),m=(0,N.useCallback)(()=>Math.max(0,f.current-(d.current?.getViewportHeight()||0)),[]);return(0,N.useImperativeHandle)(s,()=>({scrollTo:t=>{if(typeof t!=`number`||isNaN(t))return;let n=f.current,r=Math.max(0,Math.min(t,n));r!==u()&&(l(r),e?.(r))},scrollBy:t=>{if(typeof t!=`number`||isNaN(t))return;let n=f.current,r=Math.max(0,Math.min(u()+t,n));r!==u()&&(l(r),e?.(r))},scrollToTop:()=>{u()!==0&&(l(0),e?.(0))},scrollToBottom:()=>{let t=m();u()!==t&&(l(t),e?.(t))},getScrollOffset:u,getContentHeight:()=>f.current,getViewportHeight:()=>d.current?.getViewportHeight()||0,getBottomOffset:m,getItemHeight:e=>d.current?.getItemHeight(e)||0,getItemPosition:e=>d.current?.getItemPosition(e)||null,remeasure:()=>d.current?.remeasure(),remeasureItem:e=>d.current?.remeasureItem(e)}),[e,m,u,l]),(0,H.jsx)(tc,{ref:d,scrollOffset:c,onViewportSizeChange:t,onContentHeightChange:p,onItemHeightChange:r,debug:i,children:a,...o})});function ic(e){if(!e)return[{kind:`context`,text:`(no diff)`}];let t=e.split(`
|
|
381
|
+
`),n=t.findIndex(e=>e.startsWith(`@@`));return n===-1?[{kind:`context`,text:`(no diff)`}]:t.slice(n).map(e=>e.startsWith(`@@`)?{kind:`hunk`,text:e}:e.startsWith(`+`)?{kind:`add`,text:e.slice(1)}:e.startsWith(`-`)?{kind:`remove`,text:e.slice(1)}:{kind:`context`,text:e.slice(1)})}const ac=f(`git`,[`rev-parse`,`--show-toplevel`],{encoding:`utf8`,stdio:`pipe`}).trimEnd();function oc(...e){return f(`git`,e,{encoding:`utf8`,stdio:`pipe`,cwd:ac}).trimEnd()}function sc(...e){return p(`git`,e,{encoding:`utf8`,cwd:ac}).stdout?.trim()??``}function cc(){try{return oc(`branch`,`--show-current`)}catch{return null}}const lc={M:`MODIFIED`,A:`ADDED`,D:`DELETED`,R:`RENAMED`,"?":`UNTRACKED`};function uc(){try{let e=oc(`status`,`--porcelain`,`--untracked-files=all`);return e?e.split(`
|
|
382
|
+
`).map(e=>{let t=e[0],n=e[1],r=t!==` `&&t!==`?`,i=n===`?`?`?`:r?t:n;return{path:e.slice(3),status:lc[i??``]??`-`,staged:r}}):[]}catch{return[]}}function dc(e,t,n){return n?sc(`diff`,`--no-index`,`/dev/null`,e):t?sc(`diff`,`--cached`,e):sc(`diff`,e)}function fc(e){oc(`add`,e)}function pc(e){try{oc(`restore`,`--staged`,e)}catch{oc(`rm`,`--cached`,`--force`,e)}}function mc(e){if(e.kind===`add`)return`#0d2a0d`;if(e.kind===`remove`)return`#2a0d0d`}function hc({file:e,focused:t,width:n}){let[r,i]=(0,N.useState)([]),[a,o]=(0,N.useState)(0),s=(0,N.useRef)(null),c=(0,N.useRef)(void 0),l=(0,N.useRef)(null),{width:u,height:d}=Ys(l);(0,N.useEffect)(()=>{if(!e){i([]),s.current?.scrollToTop();return}i(ic(dc(e.path,e.staged,e.status===`UNTRACKED`))),c.current!==e.path&&(s.current?.scrollToTop(),o(0)),c.current=e.path},[e]);let f=(0,N.useMemo)(()=>Math.max(0,...r.map(e=>e.text.length)),[r]);return Ws((e,t)=>{let n=Math.max(0,f-u);t.upArrow&&s.current?.scrollBy(-1),t.downArrow&&s.current?.scrollBy(1),t.leftArrow&&o(e=>Math.max(0,e-1)),t.rightArrow&&o(e=>Math.min(n,e+1))},{isActive:t}),(0,H.jsxs)(Qo,{flexDirection:`column`,width:n,ref:l,children:[(0,H.jsx)(Qo,{marginLeft:1,children:(0,H.jsx)($o,{bold:!0,color:t?`whiteBright`:`gray`,children:e?e.path:`no file selected`})}),(0,H.jsx)(rc,{borderColor:t?`white`:`gray`,borderStyle:`round`,flexGrow:1,height:d,ref:s,children:r.map((e,t)=>{let n=e.text.slice(a,a+u-2)||` `;return(0,H.jsx)(Qo,{width:`100%`,backgroundColor:mc(e),children:(0,H.jsx)($o,{wrap:`hard`,color:e.kind===`hunk`?`cyan`:`white`,children:n})},t)})})]})}var gc=(0,N.forwardRef)((e,t)=>{let{children:n,selectedIndex:r,scrollAlignment:i=`auto`,onScroll:a,onViewportSizeChange:o,onContentHeightChange:s,onItemHeightChange:c,...l}=e,u=(0,N.useRef)(null),[d,f]=(0,N.useState)(0),p=(0,N.useRef)(0);(0,N.useEffect)(()=>{p.current=d},[d]);let m=(0,N.useCallback)(e=>{e!==p.current&&(f(e),a?.(e))},[a]),h=(0,N.useRef)(r);h.current=r;let g=(0,N.useCallback)(()=>{let e=h.current;if(e===void 0||e<0)return null;let t=u.current?.getItemPosition(e);if(!t)return null;let n=u.current?.getViewportHeight()??0,r=u.current?.getContentHeight()??0,i=t.top+t.height-n,a=t.top;i>a&&([i,a]=[a,i]);let o=Math.max(0,r-n);return{min:Math.max(0,i),max:Math.min(o,a)}},[]),_=(0,N.useCallback)(e=>{let t=u.current?.getContentHeight()??0,n=u.current?.getViewportHeight()??0,r=Math.max(0,t-n),i=Math.max(0,Math.min(e,r)),a=g();return a&&(i=Math.max(a.min,Math.min(i,a.max))),i},[g]),v=(0,N.useCallback)((e,t,n,r)=>{let i=u.current?.getItemPosition(e);if(!i)return t;let a=r??u.current?.getViewportHeight()??0,o=u.current?.getContentHeight()??0,s=t;if(n===`top`)s=i.top;else if(n===`bottom`)s=i.top+i.height-a;else if(n===`center`)s=i.top+i.height/2-a/2;else{let e=i.top+i.height;i.top<=t&&e>=t+a?s=t:i.top<t?s=i.top:e>t+a&&(s=e-a)}let c=Math.max(0,o-a);return Math.max(0,Math.min(s,c))},[]),y=d;r!==void 0&&r>=0&&(y=v(r,d,i)),(0,N.useEffect)(()=>{y!==d&&m(y)},[y,d,m]);let b=(0,N.useCallback)((e,t=i,n)=>{m(v(e,d,t,n))},[v,d,i,m]),x=(0,N.useCallback)((e,t)=>{h.current!==void 0&&h.current>=0&&m(v(h.current,d,i,e.height)),o?.(e,t)},[o,b]),S=(0,N.useCallback)((e,t,n)=>{let r=h.current;r!==void 0&&r>=0&&(e<r?m(_(d+(t-n))):e===r&&m(v(e,d,i))),c?.(e,t,n)},[c,c,v,i,d,_,m]),C=(0,N.useCallback)((e,t)=>{h.current!==void 0&&h.current>=0&&(b(h.current),m(v(h.current,d,i))),s?.(e,t)},[s,b]);return(0,N.useImperativeHandle)(t,()=>({scrollTo:e=>{m(_(e))},scrollBy:e=>{let t=p.current;m(_(t+e))},scrollToTop:()=>{m(_(0))},scrollToBottom:()=>{let e=u.current?.getContentHeight()??0,t=u.current?.getViewportHeight()??0;m(_(Math.max(0,e-t)))},getScrollOffset:()=>p.current,getContentHeight:()=>u.current?.getContentHeight()??0,getViewportHeight:()=>u.current?.getViewportHeight()??0,getBottomOffset:()=>u.current?.getBottomOffset()??0,getItemHeight:e=>u.current?.getItemHeight(e)??0,getItemPosition:e=>u.current?.getItemPosition(e)??null,remeasure:()=>u.current?.remeasure(),remeasureItem:e=>u.current?.remeasureItem(e)}),[]),(0,H.jsx)(tc,{ref:u,scrollOffset:y,onViewportSizeChange:x,onContentHeightChange:C,onItemHeightChange:S,...l,children:n})});function _c(e){return e.slice().sort((e,t)=>{let n=e.path.split(`/`).slice(0,-1).join(`/`),r=t.path.split(`/`).slice(0,-1).join(`/`);return n===r?e.path.localeCompare(t.path):n.localeCompare(r)})}function vc(){let[e,t]=(0,N.useState)(()=>_c(uc())),[n,r]=(0,N.useState)(()=>cc());function i(){t(_c(uc())),r(cc())}(0,N.useEffect)(()=>{let e=setInterval(i,2e3);return()=>clearInterval(e)},[]);function a(e){fc(e),i()}function o(e){pc(e),i()}return{files:e,branch:n,stage:a,unstage:o}}const yc={MODIFIED:`ᵐ`,ADDED:`ᵃ`,DELETED:`ᵈ`,RENAMED:`ʳ`,UNTRACKED:`ᵘ`,"-":`⁻`};function bc({width:e,focused:t,onSelectedFile:n}){let{files:r,branch:i,stage:a,unstage:o}=vc(),[s,c]=(0,N.useState)(0);return(0,N.useEffect)(()=>{n(r[s])},[s,r,n]),Ws((e,t)=>{if(t.upArrow&&c(e=>Math.max(0,e-1)),t.downArrow&&c(e=>Math.min(r.length-1,e+1)),e===` `){let e=r[s];if(!e)return;e.staged?o(e.path):a(e.path)}},{isActive:t}),(0,H.jsxs)(Qo,{flexDirection:`column`,width:e,children:[(0,H.jsx)(Qo,{marginLeft:1,children:(0,H.jsx)($o,{bold:!0,color:t?`whiteBright`:`gray`,children:i})}),(0,H.jsx)(Qo,{borderColor:t?`white`:`gray`,borderStyle:`round`,flexGrow:1,children:(0,H.jsx)(gc,{height:`100%`,selectedIndex:s,width:`100%`,children:r.map((e,t)=>{let n=e.path.split(`/`),r=n.at(-1)??e.path,i=n.slice(0,-1).join(`/`);return(0,H.jsxs)(Qo,{backgroundColor:t===s?`#222`:void 0,paddingX:1,height:1,children:[(0,H.jsxs)($o,{color:e.staged?`green`:`gray`,children:[e.staged?`●`:`○`,` `]}),(0,H.jsx)(Qo,{flexGrow:1,overflow:`hidden`,children:(0,H.jsxs)($o,{wrap:`hard`,children:[(0,H.jsx)($o,{children:r}),i?(0,H.jsxs)($o,{color:`gray`,children:[` `,i]}):null]})}),(0,H.jsxs)($o,{color:`gray`,children:[` `,yc[e.status]]})]},e.path)})})})]})}function xc(){let e=(0,N.useMemo)(()=>process.cwd().split(`/`).pop(),[]);return(0,H.jsxs)(Qo,{backgroundColor:`green`,paddingX:1,marginBottom:1,justifyContent:`space-between`,children:[(0,H.jsx)($o,{bold:!0,color:`black`,children:`f*ckgit`}),(0,H.jsx)($o,{color:`black`,children:e})]})}function Sc(){let{exit:e}=Gs(),{stdout:t}=Ks(),[n,r]=(0,N.useState)(`files`),[i,a]=(0,N.useState)(void 0);return Ws((t,n)=>{(t===`q`||n.ctrl&&t===`c`)&&e(),n.tab&&r(e=>e===`files`?`diff`:`files`)}),(0,H.jsxs)(Qo,{flexDirection:`column`,width:t.columns,height:t.rows,padding:0,children:[(0,H.jsx)(xc,{}),(0,H.jsxs)(Qo,{flexDirection:`row`,flexGrow:1,children:[(0,H.jsx)(bc,{width:`30%`,focused:n===`files`,onSelectedFile:a}),(0,H.jsx)(hc,{file:i,focused:n===`diff`,width:`70%`})]})]})}process.stdout.write(`\x1B[?1049h\x1B[?25l`);const{waitUntilExit:Cc,unmount:wc}=xs((0,H.jsx)(Sc,{}),{exitOnCtrlC:!1});process.on(`SIGINT`,wc),process.on(`SIGTERM`,wc),await Cc(),process.stdout.write(`\x1B[?25h\x1B[?1049l`);export{};
|