@openparachute/hub 0.5.7 → 0.5.10-rc.10

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.
Files changed (85) hide show
  1. package/package.json +1 -1
  2. package/src/__tests__/admin-clients.test.ts +275 -0
  3. package/src/__tests__/admin-handlers.test.ts +70 -323
  4. package/src/__tests__/admin-host-admin-token.test.ts +52 -4
  5. package/src/__tests__/api-me.test.ts +149 -0
  6. package/src/__tests__/api-mint-token.test.ts +381 -0
  7. package/src/__tests__/api-modules-ops.test.ts +658 -0
  8. package/src/__tests__/api-modules.test.ts +426 -0
  9. package/src/__tests__/api-revocation-list.test.ts +198 -0
  10. package/src/__tests__/api-revoke-token.test.ts +320 -0
  11. package/src/__tests__/api-tokens.test.ts +629 -0
  12. package/src/__tests__/auth.test.ts +680 -16
  13. package/src/__tests__/csrf.test.ts +40 -1
  14. package/src/__tests__/expose-2fa-warning.test.ts +3 -5
  15. package/src/__tests__/expose-cloudflare.test.ts +1 -1
  16. package/src/__tests__/expose.test.ts +2 -2
  17. package/src/__tests__/hub-server.test.ts +584 -67
  18. package/src/__tests__/hub-settings.test.ts +377 -0
  19. package/src/__tests__/hub.test.ts +123 -53
  20. package/src/__tests__/install-source.test.ts +249 -0
  21. package/src/__tests__/jwt-sign.test.ts +205 -0
  22. package/src/__tests__/module-manifest.test.ts +48 -0
  23. package/src/__tests__/oauth-handlers.test.ts +522 -5
  24. package/src/__tests__/operator-token.test.ts +427 -3
  25. package/src/__tests__/origin-check.test.ts +220 -0
  26. package/src/__tests__/request-protocol.test.ts +54 -0
  27. package/src/__tests__/serve-boot.test.ts +193 -0
  28. package/src/__tests__/serve.test.ts +100 -0
  29. package/src/__tests__/sessions.test.ts +25 -2
  30. package/src/__tests__/setup-gate.test.ts +222 -0
  31. package/src/__tests__/setup-wizard.test.ts +2089 -0
  32. package/src/__tests__/status.test.ts +199 -0
  33. package/src/__tests__/supervisor.test.ts +482 -0
  34. package/src/__tests__/upgrade.test.ts +247 -4
  35. package/src/__tests__/vault-name.test.ts +79 -0
  36. package/src/__tests__/well-known.test.ts +69 -0
  37. package/src/admin-clients.ts +139 -0
  38. package/src/admin-handlers.ts +37 -254
  39. package/src/admin-host-admin-token.ts +25 -10
  40. package/src/admin-login-ui.ts +256 -0
  41. package/src/admin-vault-admin-token.ts +1 -1
  42. package/src/api-me.ts +124 -0
  43. package/src/api-mint-token.ts +239 -0
  44. package/src/api-modules-ops.ts +585 -0
  45. package/src/api-modules.ts +367 -0
  46. package/src/api-revocation-list.ts +59 -0
  47. package/src/api-revoke-token.ts +153 -0
  48. package/src/api-tokens.ts +224 -0
  49. package/src/cli.ts +28 -0
  50. package/src/commands/auth.ts +408 -51
  51. package/src/commands/expose-2fa-warning.ts +6 -6
  52. package/src/commands/serve-boot.ts +133 -0
  53. package/src/commands/serve.ts +214 -0
  54. package/src/commands/status.ts +74 -10
  55. package/src/commands/upgrade.ts +33 -6
  56. package/src/csrf.ts +34 -13
  57. package/src/help.ts +55 -5
  58. package/src/hub-control.ts +1 -0
  59. package/src/hub-db.ts +87 -0
  60. package/src/hub-server.ts +767 -136
  61. package/src/hub-settings.ts +259 -0
  62. package/src/hub.ts +298 -150
  63. package/src/install-source.ts +291 -0
  64. package/src/jwt-sign.ts +265 -5
  65. package/src/module-manifest.ts +48 -10
  66. package/src/oauth-handlers.ts +262 -56
  67. package/src/oauth-ui.ts +23 -2
  68. package/src/operator-token.ts +349 -18
  69. package/src/origin-check.ts +127 -0
  70. package/src/rate-limit.ts +5 -2
  71. package/src/request-protocol.ts +48 -0
  72. package/src/scope-explanations.ts +33 -2
  73. package/src/sessions.ts +30 -18
  74. package/src/setup-wizard.ts +2009 -0
  75. package/src/supervisor.ts +411 -0
  76. package/src/vault-name.ts +71 -0
  77. package/src/well-known.ts +54 -1
  78. package/web/ui/dist/assets/index-BDSEsaBY.css +1 -0
  79. package/web/ui/dist/assets/index-CP07NbdF.js +61 -0
  80. package/web/ui/dist/index.html +2 -2
  81. package/src/__tests__/admin-config.test.ts +0 -281
  82. package/src/admin-config-ui.ts +0 -534
  83. package/src/admin-config.ts +0 -226
  84. package/web/ui/dist/assets/index-BKzPDdB0.js +0 -60
  85. package/web/ui/dist/assets/index-Dyk6g7vT.css +0 -1
@@ -0,0 +1,61 @@
1
+ (function(){const s=document.createElement("link").relList;if(s&&s.supports&&s.supports("modulepreload"))return;for(const h of document.querySelectorAll('link[rel="modulepreload"]'))r(h);new MutationObserver(h=>{for(const v of h)if(v.type==="childList")for(const b of v.addedNodes)b.tagName==="LINK"&&b.rel==="modulepreload"&&r(b)}).observe(document,{childList:!0,subtree:!0});function f(h){const v={};return h.integrity&&(v.integrity=h.integrity),h.referrerPolicy&&(v.referrerPolicy=h.referrerPolicy),h.crossOrigin==="use-credentials"?v.credentials="include":h.crossOrigin==="anonymous"?v.credentials="omit":v.credentials="same-origin",v}function r(h){if(h.ep)return;h.ep=!0;const v=f(h);fetch(h.href,v)}})();var ws={exports:{}},Hn={};/**
2
+ * @license React
3
+ * react-jsx-runtime.production.js
4
+ *
5
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
6
+ *
7
+ * This source code is licensed under the MIT license found in the
8
+ * LICENSE file in the root directory of this source tree.
9
+ */var sh;function gy(){if(sh)return Hn;sh=1;var i=Symbol.for("react.transitional.element"),s=Symbol.for("react.fragment");function f(r,h,v){var b=null;if(v!==void 0&&(b=""+v),h.key!==void 0&&(b=""+h.key),"key"in h){v={};for(var x in h)x!=="key"&&(v[x]=h[x])}else v=h;return h=v.ref,{$$typeof:i,type:r,key:b,ref:h!==void 0?h:null,props:v}}return Hn.Fragment=s,Hn.jsx=f,Hn.jsxs=f,Hn}var rh;function Sy(){return rh||(rh=1,ws.exports=gy()),ws.exports}var o=Sy(),Hs={exports:{}},te={};/**
10
+ * @license React
11
+ * react.production.js
12
+ *
13
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
14
+ *
15
+ * This source code is licensed under the MIT license found in the
16
+ * LICENSE file in the root directory of this source tree.
17
+ */var fh;function by(){if(fh)return te;fh=1;var i=Symbol.for("react.transitional.element"),s=Symbol.for("react.portal"),f=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),h=Symbol.for("react.profiler"),v=Symbol.for("react.consumer"),b=Symbol.for("react.context"),x=Symbol.for("react.forward_ref"),y=Symbol.for("react.suspense"),m=Symbol.for("react.memo"),T=Symbol.for("react.lazy"),_=Symbol.for("react.activity"),B=Symbol.iterator;function Y(S){return S===null||typeof S!="object"?null:(S=B&&S[B]||S["@@iterator"],typeof S=="function"?S:null)}var Q={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},q=Object.assign,Z={};function G(S,U,V){this.props=S,this.context=U,this.refs=Z,this.updater=V||Q}G.prototype.isReactComponent={},G.prototype.setState=function(S,U){if(typeof S!="object"&&typeof S!="function"&&S!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,S,U,"setState")},G.prototype.forceUpdate=function(S){this.updater.enqueueForceUpdate(this,S,"forceUpdate")};function ee(){}ee.prototype=G.prototype;function w(S,U,V){this.props=S,this.context=U,this.refs=Z,this.updater=V||Q}var L=w.prototype=new ee;L.constructor=w,q(L,G.prototype),L.isPureReactComponent=!0;var J=Array.isArray;function oe(){}var H={H:null,A:null,T:null,S:null},I=Object.prototype.hasOwnProperty;function xe(S,U,V){var K=V.ref;return{$$typeof:i,type:S,key:U,ref:K!==void 0?K:null,props:V}}function Ve(S,U){return xe(S.type,U,S.props)}function he(S){return typeof S=="object"&&S!==null&&S.$$typeof===i}function Me(S){var U={"=":"=0",":":"=2"};return"$"+S.replace(/[=:]/g,function(V){return U[V]})}var qt=/\/+/g;function bt(S,U){return typeof S=="object"&&S!==null&&S.key!=null?Me(""+S.key):U.toString(36)}function Le(S){switch(S.status){case"fulfilled":return S.value;case"rejected":throw S.reason;default:switch(typeof S.status=="string"?S.then(oe,oe):(S.status="pending",S.then(function(U){S.status==="pending"&&(S.status="fulfilled",S.value=U)},function(U){S.status==="pending"&&(S.status="rejected",S.reason=U)})),S.status){case"fulfilled":return S.value;case"rejected":throw S.reason}}throw S}function O(S,U,V,K,le){var ie=typeof S;(ie==="undefined"||ie==="boolean")&&(S=null);var ge=!1;if(S===null)ge=!0;else switch(ie){case"bigint":case"string":case"number":ge=!0;break;case"object":switch(S.$$typeof){case i:case s:ge=!0;break;case T:return ge=S._init,O(ge(S._payload),U,V,K,le)}}if(ge)return le=le(S),ge=K===""?"."+bt(S,0):K,J(le)?(V="",ge!=null&&(V=ge.replace(qt,"$&/")+"/"),O(le,U,V,"",function(Xa){return Xa})):le!=null&&(he(le)&&(le=Ve(le,V+(le.key==null||S&&S.key===le.key?"":(""+le.key).replace(qt,"$&/")+"/")+ge)),U.push(le)),1;ge=0;var et=K===""?".":K+":";if(J(S))for(var we=0;we<S.length;we++)K=S[we],ie=et+bt(K,we),ge+=O(K,U,V,ie,le);else if(we=Y(S),typeof we=="function")for(S=we.call(S),we=0;!(K=S.next()).done;)K=K.value,ie=et+bt(K,we++),ge+=O(K,U,V,ie,le);else if(ie==="object"){if(typeof S.then=="function")return O(Le(S),U,V,K,le);throw U=String(S),Error("Objects are not valid as a React child (found: "+(U==="[object Object]"?"object with keys {"+Object.keys(S).join(", ")+"}":U)+"). If you meant to render a collection of children, use an array instead.")}return ge}function X(S,U,V){if(S==null)return S;var K=[],le=0;return O(S,K,"","",function(ie){return U.call(V,ie,le++)}),K}function P(S){if(S._status===-1){var U=S._result;U=U(),U.then(function(V){(S._status===0||S._status===-1)&&(S._status=1,S._result=V)},function(V){(S._status===0||S._status===-1)&&(S._status=2,S._result=V)}),S._status===-1&&(S._status=0,S._result=U)}if(S._status===1)return S._result.default;throw S._result}var Ee=typeof reportError=="function"?reportError:function(S){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var U=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof S=="object"&&S!==null&&typeof S.message=="string"?String(S.message):String(S),error:S});if(!window.dispatchEvent(U))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",S);return}console.error(S)},Ae={map:X,forEach:function(S,U,V){X(S,function(){U.apply(this,arguments)},V)},count:function(S){var U=0;return X(S,function(){U++}),U},toArray:function(S){return X(S,function(U){return U})||[]},only:function(S){if(!he(S))throw Error("React.Children.only expected to receive a single React element child.");return S}};return te.Activity=_,te.Children=Ae,te.Component=G,te.Fragment=f,te.Profiler=h,te.PureComponent=w,te.StrictMode=r,te.Suspense=y,te.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=H,te.__COMPILER_RUNTIME={__proto__:null,c:function(S){return H.H.useMemoCache(S)}},te.cache=function(S){return function(){return S.apply(null,arguments)}},te.cacheSignal=function(){return null},te.cloneElement=function(S,U,V){if(S==null)throw Error("The argument must be a React element, but you passed "+S+".");var K=q({},S.props),le=S.key;if(U!=null)for(ie in U.key!==void 0&&(le=""+U.key),U)!I.call(U,ie)||ie==="key"||ie==="__self"||ie==="__source"||ie==="ref"&&U.ref===void 0||(K[ie]=U[ie]);var ie=arguments.length-2;if(ie===1)K.children=V;else if(1<ie){for(var ge=Array(ie),et=0;et<ie;et++)ge[et]=arguments[et+2];K.children=ge}return xe(S.type,le,K)},te.createContext=function(S){return S={$$typeof:b,_currentValue:S,_currentValue2:S,_threadCount:0,Provider:null,Consumer:null},S.Provider=S,S.Consumer={$$typeof:v,_context:S},S},te.createElement=function(S,U,V){var K,le={},ie=null;if(U!=null)for(K in U.key!==void 0&&(ie=""+U.key),U)I.call(U,K)&&K!=="key"&&K!=="__self"&&K!=="__source"&&(le[K]=U[K]);var ge=arguments.length-2;if(ge===1)le.children=V;else if(1<ge){for(var et=Array(ge),we=0;we<ge;we++)et[we]=arguments[we+2];le.children=et}if(S&&S.defaultProps)for(K in ge=S.defaultProps,ge)le[K]===void 0&&(le[K]=ge[K]);return xe(S,ie,le)},te.createRef=function(){return{current:null}},te.forwardRef=function(S){return{$$typeof:x,render:S}},te.isValidElement=he,te.lazy=function(S){return{$$typeof:T,_payload:{_status:-1,_result:S},_init:P}},te.memo=function(S,U){return{$$typeof:m,type:S,compare:U===void 0?null:U}},te.startTransition=function(S){var U=H.T,V={};H.T=V;try{var K=S(),le=H.S;le!==null&&le(V,K),typeof K=="object"&&K!==null&&typeof K.then=="function"&&K.then(oe,Ee)}catch(ie){Ee(ie)}finally{U!==null&&V.types!==null&&(U.types=V.types),H.T=U}},te.unstable_useCacheRefresh=function(){return H.H.useCacheRefresh()},te.use=function(S){return H.H.use(S)},te.useActionState=function(S,U,V){return H.H.useActionState(S,U,V)},te.useCallback=function(S,U){return H.H.useCallback(S,U)},te.useContext=function(S){return H.H.useContext(S)},te.useDebugValue=function(){},te.useDeferredValue=function(S,U){return H.H.useDeferredValue(S,U)},te.useEffect=function(S,U){return H.H.useEffect(S,U)},te.useEffectEvent=function(S){return H.H.useEffectEvent(S)},te.useId=function(){return H.H.useId()},te.useImperativeHandle=function(S,U,V){return H.H.useImperativeHandle(S,U,V)},te.useInsertionEffect=function(S,U){return H.H.useInsertionEffect(S,U)},te.useLayoutEffect=function(S,U){return H.H.useLayoutEffect(S,U)},te.useMemo=function(S,U){return H.H.useMemo(S,U)},te.useOptimistic=function(S,U){return H.H.useOptimistic(S,U)},te.useReducer=function(S,U,V){return H.H.useReducer(S,U,V)},te.useRef=function(S){return H.H.useRef(S)},te.useState=function(S){return H.H.useState(S)},te.useSyncExternalStore=function(S,U,V){return H.H.useSyncExternalStore(S,U,V)},te.useTransition=function(){return H.H.useTransition()},te.version="19.2.5",te}var oh;function $s(){return oh||(oh=1,Hs.exports=by()),Hs.exports}var j=$s(),Bs={exports:{}},Bn={},Ls={exports:{}},qs={};/**
18
+ * @license React
19
+ * scheduler.production.js
20
+ *
21
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
22
+ *
23
+ * This source code is licensed under the MIT license found in the
24
+ * LICENSE file in the root directory of this source tree.
25
+ */var dh;function xy(){return dh||(dh=1,(function(i){function s(O,X){var P=O.length;O.push(X);e:for(;0<P;){var Ee=P-1>>>1,Ae=O[Ee];if(0<h(Ae,X))O[Ee]=X,O[P]=Ae,P=Ee;else break e}}function f(O){return O.length===0?null:O[0]}function r(O){if(O.length===0)return null;var X=O[0],P=O.pop();if(P!==X){O[0]=P;e:for(var Ee=0,Ae=O.length,S=Ae>>>1;Ee<S;){var U=2*(Ee+1)-1,V=O[U],K=U+1,le=O[K];if(0>h(V,P))K<Ae&&0>h(le,V)?(O[Ee]=le,O[K]=P,Ee=K):(O[Ee]=V,O[U]=P,Ee=U);else if(K<Ae&&0>h(le,P))O[Ee]=le,O[K]=P,Ee=K;else break e}}return X}function h(O,X){var P=O.sortIndex-X.sortIndex;return P!==0?P:O.id-X.id}if(i.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var v=performance;i.unstable_now=function(){return v.now()}}else{var b=Date,x=b.now();i.unstable_now=function(){return b.now()-x}}var y=[],m=[],T=1,_=null,B=3,Y=!1,Q=!1,q=!1,Z=!1,G=typeof setTimeout=="function"?setTimeout:null,ee=typeof clearTimeout=="function"?clearTimeout:null,w=typeof setImmediate<"u"?setImmediate:null;function L(O){for(var X=f(m);X!==null;){if(X.callback===null)r(m);else if(X.startTime<=O)r(m),X.sortIndex=X.expirationTime,s(y,X);else break;X=f(m)}}function J(O){if(q=!1,L(O),!Q)if(f(y)!==null)Q=!0,oe||(oe=!0,Me());else{var X=f(m);X!==null&&Le(J,X.startTime-O)}}var oe=!1,H=-1,I=5,xe=-1;function Ve(){return Z?!0:!(i.unstable_now()-xe<I)}function he(){if(Z=!1,oe){var O=i.unstable_now();xe=O;var X=!0;try{e:{Q=!1,q&&(q=!1,ee(H),H=-1),Y=!0;var P=B;try{t:{for(L(O),_=f(y);_!==null&&!(_.expirationTime>O&&Ve());){var Ee=_.callback;if(typeof Ee=="function"){_.callback=null,B=_.priorityLevel;var Ae=Ee(_.expirationTime<=O);if(O=i.unstable_now(),typeof Ae=="function"){_.callback=Ae,L(O),X=!0;break t}_===f(y)&&r(y),L(O)}else r(y);_=f(y)}if(_!==null)X=!0;else{var S=f(m);S!==null&&Le(J,S.startTime-O),X=!1}}break e}finally{_=null,B=P,Y=!1}X=void 0}}finally{X?Me():oe=!1}}}var Me;if(typeof w=="function")Me=function(){w(he)};else if(typeof MessageChannel<"u"){var qt=new MessageChannel,bt=qt.port2;qt.port1.onmessage=he,Me=function(){bt.postMessage(null)}}else Me=function(){G(he,0)};function Le(O,X){H=G(function(){O(i.unstable_now())},X)}i.unstable_IdlePriority=5,i.unstable_ImmediatePriority=1,i.unstable_LowPriority=4,i.unstable_NormalPriority=3,i.unstable_Profiling=null,i.unstable_UserBlockingPriority=2,i.unstable_cancelCallback=function(O){O.callback=null},i.unstable_forceFrameRate=function(O){0>O||125<O?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):I=0<O?Math.floor(1e3/O):5},i.unstable_getCurrentPriorityLevel=function(){return B},i.unstable_next=function(O){switch(B){case 1:case 2:case 3:var X=3;break;default:X=B}var P=B;B=X;try{return O()}finally{B=P}},i.unstable_requestPaint=function(){Z=!0},i.unstable_runWithPriority=function(O,X){switch(O){case 1:case 2:case 3:case 4:case 5:break;default:O=3}var P=B;B=O;try{return X()}finally{B=P}},i.unstable_scheduleCallback=function(O,X,P){var Ee=i.unstable_now();switch(typeof P=="object"&&P!==null?(P=P.delay,P=typeof P=="number"&&0<P?Ee+P:Ee):P=Ee,O){case 1:var Ae=-1;break;case 2:Ae=250;break;case 5:Ae=1073741823;break;case 4:Ae=1e4;break;default:Ae=5e3}return Ae=P+Ae,O={id:T++,callback:X,priorityLevel:O,startTime:P,expirationTime:Ae,sortIndex:-1},P>Ee?(O.sortIndex=P,s(m,O),f(y)===null&&O===f(m)&&(q?(ee(H),H=-1):q=!0,Le(J,P-Ee))):(O.sortIndex=Ae,s(y,O),Q||Y||(Q=!0,oe||(oe=!0,Me()))),O},i.unstable_shouldYield=Ve,i.unstable_wrapCallback=function(O){var X=B;return function(){var P=B;B=X;try{return O.apply(this,arguments)}finally{B=P}}}})(qs)),qs}var hh;function Ey(){return hh||(hh=1,Ls.exports=xy()),Ls.exports}var Ys={exports:{}},Ie={};/**
26
+ * @license React
27
+ * react-dom.production.js
28
+ *
29
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
30
+ *
31
+ * This source code is licensed under the MIT license found in the
32
+ * LICENSE file in the root directory of this source tree.
33
+ */var mh;function jy(){if(mh)return Ie;mh=1;var i=$s();function s(y){var m="https://react.dev/errors/"+y;if(1<arguments.length){m+="?args[]="+encodeURIComponent(arguments[1]);for(var T=2;T<arguments.length;T++)m+="&args[]="+encodeURIComponent(arguments[T])}return"Minified React error #"+y+"; visit "+m+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function f(){}var r={d:{f,r:function(){throw Error(s(522))},D:f,C:f,L:f,m:f,X:f,S:f,M:f},p:0,findDOMNode:null},h=Symbol.for("react.portal");function v(y,m,T){var _=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:h,key:_==null?null:""+_,children:y,containerInfo:m,implementation:T}}var b=i.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function x(y,m){if(y==="font")return"";if(typeof m=="string")return m==="use-credentials"?m:""}return Ie.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=r,Ie.createPortal=function(y,m){var T=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!m||m.nodeType!==1&&m.nodeType!==9&&m.nodeType!==11)throw Error(s(299));return v(y,m,null,T)},Ie.flushSync=function(y){var m=b.T,T=r.p;try{if(b.T=null,r.p=2,y)return y()}finally{b.T=m,r.p=T,r.d.f()}},Ie.preconnect=function(y,m){typeof y=="string"&&(m?(m=m.crossOrigin,m=typeof m=="string"?m==="use-credentials"?m:"":void 0):m=null,r.d.C(y,m))},Ie.prefetchDNS=function(y){typeof y=="string"&&r.d.D(y)},Ie.preinit=function(y,m){if(typeof y=="string"&&m&&typeof m.as=="string"){var T=m.as,_=x(T,m.crossOrigin),B=typeof m.integrity=="string"?m.integrity:void 0,Y=typeof m.fetchPriority=="string"?m.fetchPriority:void 0;T==="style"?r.d.S(y,typeof m.precedence=="string"?m.precedence:void 0,{crossOrigin:_,integrity:B,fetchPriority:Y}):T==="script"&&r.d.X(y,{crossOrigin:_,integrity:B,fetchPriority:Y,nonce:typeof m.nonce=="string"?m.nonce:void 0})}},Ie.preinitModule=function(y,m){if(typeof y=="string")if(typeof m=="object"&&m!==null){if(m.as==null||m.as==="script"){var T=x(m.as,m.crossOrigin);r.d.M(y,{crossOrigin:T,integrity:typeof m.integrity=="string"?m.integrity:void 0,nonce:typeof m.nonce=="string"?m.nonce:void 0})}}else m==null&&r.d.M(y)},Ie.preload=function(y,m){if(typeof y=="string"&&typeof m=="object"&&m!==null&&typeof m.as=="string"){var T=m.as,_=x(T,m.crossOrigin);r.d.L(y,T,{crossOrigin:_,integrity:typeof m.integrity=="string"?m.integrity:void 0,nonce:typeof m.nonce=="string"?m.nonce:void 0,type:typeof m.type=="string"?m.type:void 0,fetchPriority:typeof m.fetchPriority=="string"?m.fetchPriority:void 0,referrerPolicy:typeof m.referrerPolicy=="string"?m.referrerPolicy:void 0,imageSrcSet:typeof m.imageSrcSet=="string"?m.imageSrcSet:void 0,imageSizes:typeof m.imageSizes=="string"?m.imageSizes:void 0,media:typeof m.media=="string"?m.media:void 0})}},Ie.preloadModule=function(y,m){if(typeof y=="string")if(m){var T=x(m.as,m.crossOrigin);r.d.m(y,{as:typeof m.as=="string"&&m.as!=="script"?m.as:void 0,crossOrigin:T,integrity:typeof m.integrity=="string"?m.integrity:void 0})}else r.d.m(y)},Ie.requestFormReset=function(y){r.d.r(y)},Ie.unstable_batchedUpdates=function(y,m){return y(m)},Ie.useFormState=function(y,m,T){return b.H.useFormState(y,m,T)},Ie.useFormStatus=function(){return b.H.useHostTransitionStatus()},Ie.version="19.2.5",Ie}var vh;function Ty(){if(vh)return Ys.exports;vh=1;function i(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(i)}catch(s){console.error(s)}}return i(),Ys.exports=jy(),Ys.exports}/**
34
+ * @license React
35
+ * react-dom-client.production.js
36
+ *
37
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
38
+ *
39
+ * This source code is licensed under the MIT license found in the
40
+ * LICENSE file in the root directory of this source tree.
41
+ */var yh;function _y(){if(yh)return Bn;yh=1;var i=Ey(),s=$s(),f=Ty();function r(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var l=2;l<arguments.length;l++)t+="&args[]="+encodeURIComponent(arguments[l])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function h(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function v(e){var t=e,l=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(l=t.return),e=t.return;while(e)}return t.tag===3?l:null}function b(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function x(e){if(e.tag===31){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function y(e){if(v(e)!==e)throw Error(r(188))}function m(e){var t=e.alternate;if(!t){if(t=v(e),t===null)throw Error(r(188));return t!==e?null:e}for(var l=e,a=t;;){var n=l.return;if(n===null)break;var u=n.alternate;if(u===null){if(a=n.return,a!==null){l=a;continue}break}if(n.child===u.child){for(u=n.child;u;){if(u===l)return y(n),e;if(u===a)return y(n),t;u=u.sibling}throw Error(r(188))}if(l.return!==a.return)l=n,a=u;else{for(var c=!1,d=n.child;d;){if(d===l){c=!0,l=n,a=u;break}if(d===a){c=!0,a=n,l=u;break}d=d.sibling}if(!c){for(d=u.child;d;){if(d===l){c=!0,l=u,a=n;break}if(d===a){c=!0,a=u,l=n;break}d=d.sibling}if(!c)throw Error(r(189))}}if(l.alternate!==a)throw Error(r(190))}if(l.tag!==3)throw Error(r(188));return l.stateNode.current===l?e:t}function T(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=T(e),t!==null)return t;e=e.sibling}return null}var _=Object.assign,B=Symbol.for("react.element"),Y=Symbol.for("react.transitional.element"),Q=Symbol.for("react.portal"),q=Symbol.for("react.fragment"),Z=Symbol.for("react.strict_mode"),G=Symbol.for("react.profiler"),ee=Symbol.for("react.consumer"),w=Symbol.for("react.context"),L=Symbol.for("react.forward_ref"),J=Symbol.for("react.suspense"),oe=Symbol.for("react.suspense_list"),H=Symbol.for("react.memo"),I=Symbol.for("react.lazy"),xe=Symbol.for("react.activity"),Ve=Symbol.for("react.memo_cache_sentinel"),he=Symbol.iterator;function Me(e){return e===null||typeof e!="object"?null:(e=he&&e[he]||e["@@iterator"],typeof e=="function"?e:null)}var qt=Symbol.for("react.client.reference");function bt(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===qt?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case q:return"Fragment";case G:return"Profiler";case Z:return"StrictMode";case J:return"Suspense";case oe:return"SuspenseList";case xe:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case Q:return"Portal";case w:return e.displayName||"Context";case ee:return(e._context.displayName||"Context")+".Consumer";case L:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case H:return t=e.displayName||null,t!==null?t:bt(e.type)||"Memo";case I:t=e._payload,e=e._init;try{return bt(e(t))}catch{}}return null}var Le=Array.isArray,O=s.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,X=f.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,P={pending:!1,data:null,method:null,action:null},Ee=[],Ae=-1;function S(e){return{current:e}}function U(e){0>Ae||(e.current=Ee[Ae],Ee[Ae]=null,Ae--)}function V(e,t){Ae++,Ee[Ae]=e.current,e.current=t}var K=S(null),le=S(null),ie=S(null),ge=S(null);function et(e,t){switch(V(ie,t),V(le,e),V(K,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?Od(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=Od(t),e=Md(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}U(K),V(K,e)}function we(){U(K),U(le),U(ie)}function Xa(e){e.memoizedState!==null&&V(ge,e);var t=K.current,l=Md(t,e.type);t!==l&&(V(le,e),V(K,l))}function Vn(e){le.current===e&&(U(K),U(le)),ge.current===e&&(U(ge),Mn._currentValue=P)}var pi,ur;function Hl(e){if(pi===void 0)try{throw Error()}catch(l){var t=l.stack.trim().match(/\n( *(at )?)/);pi=t&&t[1]||"",ur=-1<l.stack.indexOf(`
42
+ at`)?" (<anonymous>)":-1<l.stack.indexOf("@")?"@unknown:0:0":""}return`
43
+ `+pi+e+ur}var gi=!1;function Si(e,t){if(!e||gi)return"";gi=!0;var l=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var a={DetermineComponentFrameRoot:function(){try{if(t){var D=function(){throw Error()};if(Object.defineProperty(D.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(D,[])}catch(N){var R=N}Reflect.construct(e,[],D)}else{try{D.call()}catch(N){R=N}e.call(D.prototype)}}else{try{throw Error()}catch(N){R=N}(D=e())&&typeof D.catch=="function"&&D.catch(function(){})}}catch(N){if(N&&R&&typeof N.stack=="string")return[N.stack,R.stack]}return[null,null]}};a.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var n=Object.getOwnPropertyDescriptor(a.DetermineComponentFrameRoot,"name");n&&n.configurable&&Object.defineProperty(a.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var u=a.DetermineComponentFrameRoot(),c=u[0],d=u[1];if(c&&d){var p=c.split(`
44
+ `),z=d.split(`
45
+ `);for(n=a=0;a<p.length&&!p[a].includes("DetermineComponentFrameRoot");)a++;for(;n<z.length&&!z[n].includes("DetermineComponentFrameRoot");)n++;if(a===p.length||n===z.length)for(a=p.length-1,n=z.length-1;1<=a&&0<=n&&p[a]!==z[n];)n--;for(;1<=a&&0<=n;a--,n--)if(p[a]!==z[n]){if(a!==1||n!==1)do if(a--,n--,0>n||p[a]!==z[n]){var C=`
46
+ `+p[a].replace(" at new "," at ");return e.displayName&&C.includes("<anonymous>")&&(C=C.replace("<anonymous>",e.displayName)),C}while(1<=a&&0<=n);break}}}finally{gi=!1,Error.prepareStackTrace=l}return(l=e?e.displayName||e.name:"")?Hl(l):""}function $h(e,t){switch(e.tag){case 26:case 27:case 5:return Hl(e.type);case 16:return Hl("Lazy");case 13:return e.child!==t&&t!==null?Hl("Suspense Fallback"):Hl("Suspense");case 19:return Hl("SuspenseList");case 0:case 15:return Si(e.type,!1);case 11:return Si(e.type.render,!1);case 1:return Si(e.type,!0);case 31:return Hl("Activity");default:return""}}function ir(e){try{var t="",l=null;do t+=$h(e,l),l=e,e=e.return;while(e);return t}catch(a){return`
47
+ Error generating stack: `+a.message+`
48
+ `+a.stack}}var bi=Object.prototype.hasOwnProperty,xi=i.unstable_scheduleCallback,Ei=i.unstable_cancelCallback,Wh=i.unstable_shouldYield,Fh=i.unstable_requestPaint,ft=i.unstable_now,Ih=i.unstable_getCurrentPriorityLevel,cr=i.unstable_ImmediatePriority,sr=i.unstable_UserBlockingPriority,Zn=i.unstable_NormalPriority,Ph=i.unstable_LowPriority,rr=i.unstable_IdlePriority,em=i.log,tm=i.unstable_setDisableYieldValue,Qa=null,ot=null;function ol(e){if(typeof em=="function"&&tm(e),ot&&typeof ot.setStrictMode=="function")try{ot.setStrictMode(Qa,e)}catch{}}var dt=Math.clz32?Math.clz32:nm,lm=Math.log,am=Math.LN2;function nm(e){return e>>>=0,e===0?32:31-(lm(e)/am|0)|0}var kn=256,Kn=262144,Jn=4194304;function Bl(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 $n(e,t,l){var a=e.pendingLanes;if(a===0)return 0;var n=0,u=e.suspendedLanes,c=e.pingedLanes;e=e.warmLanes;var d=a&134217727;return d!==0?(a=d&~u,a!==0?n=Bl(a):(c&=d,c!==0?n=Bl(c):l||(l=d&~e,l!==0&&(n=Bl(l))))):(d=a&~u,d!==0?n=Bl(d):c!==0?n=Bl(c):l||(l=a&~e,l!==0&&(n=Bl(l)))),n===0?0:t!==0&&t!==n&&(t&u)===0&&(u=n&-n,l=t&-t,u>=l||u===32&&(l&4194048)!==0)?t:n}function Va(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function um(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 fr(){var e=Jn;return Jn<<=1,(Jn&62914560)===0&&(Jn=4194304),e}function ji(e){for(var t=[],l=0;31>l;l++)t.push(e);return t}function Za(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function im(e,t,l,a,n,u){var c=e.pendingLanes;e.pendingLanes=l,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=l,e.entangledLanes&=l,e.errorRecoveryDisabledLanes&=l,e.shellSuspendCounter=0;var d=e.entanglements,p=e.expirationTimes,z=e.hiddenUpdates;for(l=c&~l;0<l;){var C=31-dt(l),D=1<<C;d[C]=0,p[C]=-1;var R=z[C];if(R!==null)for(z[C]=null,C=0;C<R.length;C++){var N=R[C];N!==null&&(N.lane&=-536870913)}l&=~D}a!==0&&or(e,a,0),u!==0&&n===0&&e.tag!==0&&(e.suspendedLanes|=u&~(c&~t))}function or(e,t,l){e.pendingLanes|=t,e.suspendedLanes&=~t;var a=31-dt(t);e.entangledLanes|=t,e.entanglements[a]=e.entanglements[a]|1073741824|l&261930}function dr(e,t){var l=e.entangledLanes|=t;for(e=e.entanglements;l;){var a=31-dt(l),n=1<<a;n&t|e[a]&t&&(e[a]|=t),l&=~n}}function hr(e,t){var l=t&-t;return l=(l&42)!==0?1:Ti(l),(l&(e.suspendedLanes|t))!==0?0:l}function Ti(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 _i(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function mr(){var e=X.p;return e!==0?e:(e=window.event,e===void 0?32:th(e.type))}function vr(e,t){var l=X.p;try{return X.p=e,t()}finally{X.p=l}}var dl=Math.random().toString(36).slice(2),Ke="__reactFiber$"+dl,at="__reactProps$"+dl,ta="__reactContainer$"+dl,Ai="__reactEvents$"+dl,cm="__reactListeners$"+dl,sm="__reactHandles$"+dl,yr="__reactResources$"+dl,ka="__reactMarker$"+dl;function zi(e){delete e[Ke],delete e[at],delete e[Ai],delete e[cm],delete e[sm]}function la(e){var t=e[Ke];if(t)return t;for(var l=e.parentNode;l;){if(t=l[ta]||l[Ke]){if(l=t.alternate,t.child!==null||l!==null&&l.child!==null)for(e=qd(e);e!==null;){if(l=e[Ke])return l;e=qd(e)}return t}e=l,l=e.parentNode}return null}function aa(e){if(e=e[Ke]||e[ta]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function Ka(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(r(33))}function na(e){var t=e[yr];return t||(t=e[yr]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function Ze(e){e[ka]=!0}var pr=new Set,gr={};function Ll(e,t){ua(e,t),ua(e+"Capture",t)}function ua(e,t){for(gr[e]=t,e=0;e<t.length;e++)pr.add(t[e])}var rm=RegExp("^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),Sr={},br={};function fm(e){return bi.call(br,e)?!0:bi.call(Sr,e)?!1:rm.test(e)?br[e]=!0:(Sr[e]=!0,!1)}function Wn(e,t,l){if(fm(t))if(l===null)e.removeAttribute(t);else{switch(typeof l){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var a=t.toLowerCase().slice(0,5);if(a!=="data-"&&a!=="aria-"){e.removeAttribute(t);return}}e.setAttribute(t,""+l)}}function Fn(e,t,l){if(l===null)e.removeAttribute(t);else{switch(typeof l){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(t);return}e.setAttribute(t,""+l)}}function Zt(e,t,l,a){if(a===null)e.removeAttribute(l);else{switch(typeof a){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(l);return}e.setAttributeNS(t,l,""+a)}}function xt(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function xr(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function om(e,t,l){var a=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&typeof a<"u"&&typeof a.get=="function"&&typeof a.set=="function"){var n=a.get,u=a.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return n.call(this)},set:function(c){l=""+c,u.call(this,c)}}),Object.defineProperty(e,t,{enumerable:a.enumerable}),{getValue:function(){return l},setValue:function(c){l=""+c},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Ri(e){if(!e._valueTracker){var t=xr(e)?"checked":"value";e._valueTracker=om(e,t,""+e[t])}}function Er(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var l=t.getValue(),a="";return e&&(a=xr(e)?e.checked?"true":"false":e.value),e=a,e!==l?(t.setValue(e),!0):!1}function In(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}var dm=/[\n"\\]/g;function Et(e){return e.replace(dm,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function Ni(e,t,l,a,n,u,c,d){e.name="",c!=null&&typeof c!="function"&&typeof c!="symbol"&&typeof c!="boolean"?e.type=c:e.removeAttribute("type"),t!=null?c==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+xt(t)):e.value!==""+xt(t)&&(e.value=""+xt(t)):c!=="submit"&&c!=="reset"||e.removeAttribute("value"),t!=null?Ci(e,c,xt(t)):l!=null?Ci(e,c,xt(l)):a!=null&&e.removeAttribute("value"),n==null&&u!=null&&(e.defaultChecked=!!u),n!=null&&(e.checked=n&&typeof n!="function"&&typeof n!="symbol"),d!=null&&typeof d!="function"&&typeof d!="symbol"&&typeof d!="boolean"?e.name=""+xt(d):e.removeAttribute("name")}function jr(e,t,l,a,n,u,c,d){if(u!=null&&typeof u!="function"&&typeof u!="symbol"&&typeof u!="boolean"&&(e.type=u),t!=null||l!=null){if(!(u!=="submit"&&u!=="reset"||t!=null)){Ri(e);return}l=l!=null?""+xt(l):"",t=t!=null?""+xt(t):l,d||t===e.value||(e.value=t),e.defaultValue=t}a=a??n,a=typeof a!="function"&&typeof a!="symbol"&&!!a,e.checked=d?e.checked:!!a,e.defaultChecked=!!a,c!=null&&typeof c!="function"&&typeof c!="symbol"&&typeof c!="boolean"&&(e.name=c),Ri(e)}function Ci(e,t,l){t==="number"&&In(e.ownerDocument)===e||e.defaultValue===""+l||(e.defaultValue=""+l)}function ia(e,t,l,a){if(e=e.options,t){t={};for(var n=0;n<l.length;n++)t["$"+l[n]]=!0;for(l=0;l<e.length;l++)n=t.hasOwnProperty("$"+e[l].value),e[l].selected!==n&&(e[l].selected=n),n&&a&&(e[l].defaultSelected=!0)}else{for(l=""+xt(l),t=null,n=0;n<e.length;n++){if(e[n].value===l){e[n].selected=!0,a&&(e[n].defaultSelected=!0);return}t!==null||e[n].disabled||(t=e[n])}t!==null&&(t.selected=!0)}}function Tr(e,t,l){if(t!=null&&(t=""+xt(t),t!==e.value&&(e.value=t),l==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=l!=null?""+xt(l):""}function _r(e,t,l,a){if(t==null){if(a!=null){if(l!=null)throw Error(r(92));if(Le(a)){if(1<a.length)throw Error(r(93));a=a[0]}l=a}l==null&&(l=""),t=l}l=xt(t),e.defaultValue=l,a=e.textContent,a===l&&a!==""&&a!==null&&(e.value=a),Ri(e)}function ca(e,t){if(t){var l=e.firstChild;if(l&&l===e.lastChild&&l.nodeType===3){l.nodeValue=t;return}}e.textContent=t}var hm=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function Ar(e,t,l){var a=t.indexOf("--")===0;l==null||typeof l=="boolean"||l===""?a?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":a?e.setProperty(t,l):typeof l!="number"||l===0||hm.has(t)?t==="float"?e.cssFloat=l:e[t]=(""+l).trim():e[t]=l+"px"}function zr(e,t,l){if(t!=null&&typeof t!="object")throw Error(r(62));if(e=e.style,l!=null){for(var a in l)!l.hasOwnProperty(a)||t!=null&&t.hasOwnProperty(a)||(a.indexOf("--")===0?e.setProperty(a,""):a==="float"?e.cssFloat="":e[a]="");for(var n in t)a=t[n],t.hasOwnProperty(n)&&l[n]!==a&&Ar(e,n,a)}else for(var u in t)t.hasOwnProperty(u)&&Ar(e,u,t[u])}function Oi(e){if(e.indexOf("-")===-1)return!1;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var mm=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),vm=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function Pn(e){return vm.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function kt(){}var Mi=null;function Di(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var sa=null,ra=null;function Rr(e){var t=aa(e);if(t&&(e=t.stateNode)){var l=e[at]||null;e:switch(e=t.stateNode,t.type){case"input":if(Ni(e,l.value,l.defaultValue,l.defaultValue,l.checked,l.defaultChecked,l.type,l.name),t=l.name,l.type==="radio"&&t!=null){for(l=e;l.parentNode;)l=l.parentNode;for(l=l.querySelectorAll('input[name="'+Et(""+t)+'"][type="radio"]'),t=0;t<l.length;t++){var a=l[t];if(a!==e&&a.form===e.form){var n=a[at]||null;if(!n)throw Error(r(90));Ni(a,n.value,n.defaultValue,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name)}}for(t=0;t<l.length;t++)a=l[t],a.form===e.form&&Er(a)}break e;case"textarea":Tr(e,l.value,l.defaultValue);break e;case"select":t=l.value,t!=null&&ia(e,!!l.multiple,t,!1)}}}var Ui=!1;function Nr(e,t,l){if(Ui)return e(t,l);Ui=!0;try{var a=e(t);return a}finally{if(Ui=!1,(sa!==null||ra!==null)&&(Yu(),sa&&(t=sa,e=ra,ra=sa=null,Rr(t),e)))for(t=0;t<e.length;t++)Rr(e[t])}}function Ja(e,t){var l=e.stateNode;if(l===null)return null;var a=l[at]||null;if(a===null)return null;l=a[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(a=!a.disabled)||(e=e.type,a=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!a;break e;default:e=!1}if(e)return null;if(l&&typeof l!="function")throw Error(r(231,t,typeof l));return l}var Kt=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),wi=!1;if(Kt)try{var $a={};Object.defineProperty($a,"passive",{get:function(){wi=!0}}),window.addEventListener("test",$a,$a),window.removeEventListener("test",$a,$a)}catch{wi=!1}var hl=null,Hi=null,eu=null;function Cr(){if(eu)return eu;var e,t=Hi,l=t.length,a,n="value"in hl?hl.value:hl.textContent,u=n.length;for(e=0;e<l&&t[e]===n[e];e++);var c=l-e;for(a=1;a<=c&&t[l-a]===n[u-a];a++);return eu=n.slice(e,1<a?1-a:void 0)}function tu(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function lu(){return!0}function Or(){return!1}function nt(e){function t(l,a,n,u,c){this._reactName=l,this._targetInst=n,this.type=a,this.nativeEvent=u,this.target=c,this.currentTarget=null;for(var d in e)e.hasOwnProperty(d)&&(l=e[d],this[d]=l?l(u):u[d]);return this.isDefaultPrevented=(u.defaultPrevented!=null?u.defaultPrevented:u.returnValue===!1)?lu:Or,this.isPropagationStopped=Or,this}return _(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var l=this.nativeEvent;l&&(l.preventDefault?l.preventDefault():typeof l.returnValue!="unknown"&&(l.returnValue=!1),this.isDefaultPrevented=lu)},stopPropagation:function(){var l=this.nativeEvent;l&&(l.stopPropagation?l.stopPropagation():typeof l.cancelBubble!="unknown"&&(l.cancelBubble=!0),this.isPropagationStopped=lu)},persist:function(){},isPersistent:lu}),t}var ql={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},au=nt(ql),Wa=_({},ql,{view:0,detail:0}),ym=nt(Wa),Bi,Li,Fa,nu=_({},Wa,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Yi,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==Fa&&(Fa&&e.type==="mousemove"?(Bi=e.screenX-Fa.screenX,Li=e.screenY-Fa.screenY):Li=Bi=0,Fa=e),Bi)},movementY:function(e){return"movementY"in e?e.movementY:Li}}),Mr=nt(nu),pm=_({},nu,{dataTransfer:0}),gm=nt(pm),Sm=_({},Wa,{relatedTarget:0}),qi=nt(Sm),bm=_({},ql,{animationName:0,elapsedTime:0,pseudoElement:0}),xm=nt(bm),Em=_({},ql,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),jm=nt(Em),Tm=_({},ql,{data:0}),Dr=nt(Tm),_m={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Am={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},zm={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Rm(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=zm[e])?!!t[e]:!1}function Yi(){return Rm}var Nm=_({},Wa,{key:function(e){if(e.key){var t=_m[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=tu(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?Am[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Yi,charCode:function(e){return e.type==="keypress"?tu(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?tu(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),Cm=nt(Nm),Om=_({},nu,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Ur=nt(Om),Mm=_({},Wa,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Yi}),Dm=nt(Mm),Um=_({},ql,{propertyName:0,elapsedTime:0,pseudoElement:0}),wm=nt(Um),Hm=_({},nu,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),Bm=nt(Hm),Lm=_({},ql,{newState:0,oldState:0}),qm=nt(Lm),Ym=[9,13,27,32],Gi=Kt&&"CompositionEvent"in window,Ia=null;Kt&&"documentMode"in document&&(Ia=document.documentMode);var Gm=Kt&&"TextEvent"in window&&!Ia,wr=Kt&&(!Gi||Ia&&8<Ia&&11>=Ia),Hr=" ",Br=!1;function Lr(e,t){switch(e){case"keyup":return Ym.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function qr(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var fa=!1;function Xm(e,t){switch(e){case"compositionend":return qr(t);case"keypress":return t.which!==32?null:(Br=!0,Hr);case"textInput":return e=t.data,e===Hr&&Br?null:e;default:return null}}function Qm(e,t){if(fa)return e==="compositionend"||!Gi&&Lr(e,t)?(e=Cr(),eu=Hi=hl=null,fa=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return wr&&t.locale!=="ko"?null:t.data;default:return null}}var Vm={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function Yr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!Vm[e.type]:t==="textarea"}function Gr(e,t,l,a){sa?ra?ra.push(a):ra=[a]:sa=a,t=Ku(t,"onChange"),0<t.length&&(l=new au("onChange","change",null,l,a),e.push({event:l,listeners:t}))}var Pa=null,en=null;function Zm(e){_d(e,0)}function uu(e){var t=Ka(e);if(Er(t))return e}function Xr(e,t){if(e==="change")return t}var Qr=!1;if(Kt){var Xi;if(Kt){var Qi="oninput"in document;if(!Qi){var Vr=document.createElement("div");Vr.setAttribute("oninput","return;"),Qi=typeof Vr.oninput=="function"}Xi=Qi}else Xi=!1;Qr=Xi&&(!document.documentMode||9<document.documentMode)}function Zr(){Pa&&(Pa.detachEvent("onpropertychange",kr),en=Pa=null)}function kr(e){if(e.propertyName==="value"&&uu(en)){var t=[];Gr(t,en,e,Di(e)),Nr(Zm,t)}}function km(e,t,l){e==="focusin"?(Zr(),Pa=t,en=l,Pa.attachEvent("onpropertychange",kr)):e==="focusout"&&Zr()}function Km(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return uu(en)}function Jm(e,t){if(e==="click")return uu(t)}function $m(e,t){if(e==="input"||e==="change")return uu(t)}function Wm(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var ht=typeof Object.is=="function"?Object.is:Wm;function tn(e,t){if(ht(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var l=Object.keys(e),a=Object.keys(t);if(l.length!==a.length)return!1;for(a=0;a<l.length;a++){var n=l[a];if(!bi.call(t,n)||!ht(e[n],t[n]))return!1}return!0}function Kr(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Jr(e,t){var l=Kr(e);e=0;for(var a;l;){if(l.nodeType===3){if(a=e+l.textContent.length,e<=t&&a>=t)return{node:l,offset:t-e};e=a}e:{for(;l;){if(l.nextSibling){l=l.nextSibling;break e}l=l.parentNode}l=void 0}l=Kr(l)}}function $r(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?$r(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Wr(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=In(e.document);t instanceof e.HTMLIFrameElement;){try{var l=typeof t.contentWindow.location.href=="string"}catch{l=!1}if(l)e=t.contentWindow;else break;t=In(e.document)}return t}function Vi(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}var Fm=Kt&&"documentMode"in document&&11>=document.documentMode,oa=null,Zi=null,ln=null,ki=!1;function Fr(e,t,l){var a=l.window===l?l.document:l.nodeType===9?l:l.ownerDocument;ki||oa==null||oa!==In(a)||(a=oa,"selectionStart"in a&&Vi(a)?a={start:a.selectionStart,end:a.selectionEnd}:(a=(a.ownerDocument&&a.ownerDocument.defaultView||window).getSelection(),a={anchorNode:a.anchorNode,anchorOffset:a.anchorOffset,focusNode:a.focusNode,focusOffset:a.focusOffset}),ln&&tn(ln,a)||(ln=a,a=Ku(Zi,"onSelect"),0<a.length&&(t=new au("onSelect","select",null,t,l),e.push({event:t,listeners:a}),t.target=oa)))}function Yl(e,t){var l={};return l[e.toLowerCase()]=t.toLowerCase(),l["Webkit"+e]="webkit"+t,l["Moz"+e]="moz"+t,l}var da={animationend:Yl("Animation","AnimationEnd"),animationiteration:Yl("Animation","AnimationIteration"),animationstart:Yl("Animation","AnimationStart"),transitionrun:Yl("Transition","TransitionRun"),transitionstart:Yl("Transition","TransitionStart"),transitioncancel:Yl("Transition","TransitionCancel"),transitionend:Yl("Transition","TransitionEnd")},Ki={},Ir={};Kt&&(Ir=document.createElement("div").style,"AnimationEvent"in window||(delete da.animationend.animation,delete da.animationiteration.animation,delete da.animationstart.animation),"TransitionEvent"in window||delete da.transitionend.transition);function Gl(e){if(Ki[e])return Ki[e];if(!da[e])return e;var t=da[e],l;for(l in t)if(t.hasOwnProperty(l)&&l in Ir)return Ki[e]=t[l];return e}var Pr=Gl("animationend"),ef=Gl("animationiteration"),tf=Gl("animationstart"),Im=Gl("transitionrun"),Pm=Gl("transitionstart"),ev=Gl("transitioncancel"),lf=Gl("transitionend"),af=new Map,Ji="abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");Ji.push("scrollEnd");function Dt(e,t){af.set(e,t),Ll(t,[e])}var iu=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e=="object"&&e!==null&&typeof e.message=="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)},jt=[],ha=0,$i=0;function cu(){for(var e=ha,t=$i=ha=0;t<e;){var l=jt[t];jt[t++]=null;var a=jt[t];jt[t++]=null;var n=jt[t];jt[t++]=null;var u=jt[t];if(jt[t++]=null,a!==null&&n!==null){var c=a.pending;c===null?n.next=n:(n.next=c.next,c.next=n),a.pending=n}u!==0&&nf(l,n,u)}}function su(e,t,l,a){jt[ha++]=e,jt[ha++]=t,jt[ha++]=l,jt[ha++]=a,$i|=a,e.lanes|=a,e=e.alternate,e!==null&&(e.lanes|=a)}function Wi(e,t,l,a){return su(e,t,l,a),ru(e)}function Xl(e,t){return su(e,null,null,t),ru(e)}function nf(e,t,l){e.lanes|=l;var a=e.alternate;a!==null&&(a.lanes|=l);for(var n=!1,u=e.return;u!==null;)u.childLanes|=l,a=u.alternate,a!==null&&(a.childLanes|=l),u.tag===22&&(e=u.stateNode,e===null||e._visibility&1||(n=!0)),e=u,u=u.return;return e.tag===3?(u=e.stateNode,n&&t!==null&&(n=31-dt(l),e=u.hiddenUpdates,a=e[n],a===null?e[n]=[t]:a.push(t),t.lane=l|536870912),u):null}function ru(e){if(50<_n)throw _n=0,us=null,Error(r(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var ma={};function tv(e,t,l,a){this.tag=e,this.key=l,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=a,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function mt(e,t,l,a){return new tv(e,t,l,a)}function Fi(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Jt(e,t){var l=e.alternate;return l===null?(l=mt(e.tag,t,e.key,e.mode),l.elementType=e.elementType,l.type=e.type,l.stateNode=e.stateNode,l.alternate=e,e.alternate=l):(l.pendingProps=t,l.type=e.type,l.flags=0,l.subtreeFlags=0,l.deletions=null),l.flags=e.flags&65011712,l.childLanes=e.childLanes,l.lanes=e.lanes,l.child=e.child,l.memoizedProps=e.memoizedProps,l.memoizedState=e.memoizedState,l.updateQueue=e.updateQueue,t=e.dependencies,l.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},l.sibling=e.sibling,l.index=e.index,l.ref=e.ref,l.refCleanup=e.refCleanup,l}function uf(e,t){e.flags&=65011714;var l=e.alternate;return l===null?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=l.childLanes,e.lanes=l.lanes,e.child=l.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=l.memoizedProps,e.memoizedState=l.memoizedState,e.updateQueue=l.updateQueue,e.type=l.type,t=l.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function fu(e,t,l,a,n,u){var c=0;if(a=e,typeof e=="function")Fi(e)&&(c=1);else if(typeof e=="string")c=iy(e,l,K.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case xe:return e=mt(31,l,t,n),e.elementType=xe,e.lanes=u,e;case q:return Ql(l.children,n,u,t);case Z:c=8,n|=24;break;case G:return e=mt(12,l,t,n|2),e.elementType=G,e.lanes=u,e;case J:return e=mt(13,l,t,n),e.elementType=J,e.lanes=u,e;case oe:return e=mt(19,l,t,n),e.elementType=oe,e.lanes=u,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case w:c=10;break e;case ee:c=9;break e;case L:c=11;break e;case H:c=14;break e;case I:c=16,a=null;break e}c=29,l=Error(r(130,e===null?"null":typeof e,"")),a=null}return t=mt(c,l,t,n),t.elementType=e,t.type=a,t.lanes=u,t}function Ql(e,t,l,a){return e=mt(7,e,a,t),e.lanes=l,e}function Ii(e,t,l){return e=mt(6,e,null,t),e.lanes=l,e}function cf(e){var t=mt(18,null,null,0);return t.stateNode=e,t}function Pi(e,t,l){return t=mt(4,e.children!==null?e.children:[],e.key,t),t.lanes=l,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var sf=new WeakMap;function Tt(e,t){if(typeof e=="object"&&e!==null){var l=sf.get(e);return l!==void 0?l:(t={value:e,source:t,stack:ir(t)},sf.set(e,t),t)}return{value:e,source:t,stack:ir(t)}}var va=[],ya=0,ou=null,an=0,_t=[],At=0,ml=null,Yt=1,Gt="";function $t(e,t){va[ya++]=an,va[ya++]=ou,ou=e,an=t}function rf(e,t,l){_t[At++]=Yt,_t[At++]=Gt,_t[At++]=ml,ml=e;var a=Yt;e=Gt;var n=32-dt(a)-1;a&=~(1<<n),l+=1;var u=32-dt(t)+n;if(30<u){var c=n-n%5;u=(a&(1<<c)-1).toString(32),a>>=c,n-=c,Yt=1<<32-dt(t)+n|l<<n|a,Gt=u+e}else Yt=1<<u|l<<n|a,Gt=e}function ec(e){e.return!==null&&($t(e,1),rf(e,1,0))}function tc(e){for(;e===ou;)ou=va[--ya],va[ya]=null,an=va[--ya],va[ya]=null;for(;e===ml;)ml=_t[--At],_t[At]=null,Gt=_t[--At],_t[At]=null,Yt=_t[--At],_t[At]=null}function ff(e,t){_t[At++]=Yt,_t[At++]=Gt,_t[At++]=ml,Yt=t.id,Gt=t.overflow,ml=e}var Je=null,Re=null,de=!1,vl=null,zt=!1,lc=Error(r(519));function yl(e){var t=Error(r(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw nn(Tt(t,e)),lc}function of(e){var t=e.stateNode,l=e.type,a=e.memoizedProps;switch(t[Ke]=e,t[at]=a,l){case"dialog":se("cancel",t),se("close",t);break;case"iframe":case"object":case"embed":se("load",t);break;case"video":case"audio":for(l=0;l<zn.length;l++)se(zn[l],t);break;case"source":se("error",t);break;case"img":case"image":case"link":se("error",t),se("load",t);break;case"details":se("toggle",t);break;case"input":se("invalid",t),jr(t,a.value,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name,!0);break;case"select":se("invalid",t);break;case"textarea":se("invalid",t),_r(t,a.value,a.defaultValue,a.children)}l=a.children,typeof l!="string"&&typeof l!="number"&&typeof l!="bigint"||t.textContent===""+l||a.suppressHydrationWarning===!0||Nd(t.textContent,l)?(a.popover!=null&&(se("beforetoggle",t),se("toggle",t)),a.onScroll!=null&&se("scroll",t),a.onScrollEnd!=null&&se("scrollend",t),a.onClick!=null&&(t.onclick=kt),t=!0):t=!1,t||yl(e,!0)}function df(e){for(Je=e.return;Je;)switch(Je.tag){case 5:case 31:case 13:zt=!1;return;case 27:case 3:zt=!0;return;default:Je=Je.return}}function pa(e){if(e!==Je)return!1;if(!de)return df(e),de=!0,!1;var t=e.tag,l;if((l=t!==3&&t!==27)&&((l=t===5)&&(l=e.type,l=!(l!=="form"&&l!=="button")||bs(e.type,e.memoizedProps)),l=!l),l&&Re&&yl(e),df(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(r(317));Re=Ld(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(r(317));Re=Ld(e)}else t===27?(t=Re,Cl(e.type)?(e=_s,_s=null,Re=e):Re=t):Re=Je?Nt(e.stateNode.nextSibling):null;return!0}function Vl(){Re=Je=null,de=!1}function ac(){var e=vl;return e!==null&&(st===null?st=e:st.push.apply(st,e),vl=null),e}function nn(e){vl===null?vl=[e]:vl.push(e)}var nc=S(null),Zl=null,Wt=null;function pl(e,t,l){V(nc,t._currentValue),t._currentValue=l}function Ft(e){e._currentValue=nc.current,U(nc)}function uc(e,t,l){for(;e!==null;){var a=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,a!==null&&(a.childLanes|=t)):a!==null&&(a.childLanes&t)!==t&&(a.childLanes|=t),e===l)break;e=e.return}}function ic(e,t,l,a){var n=e.child;for(n!==null&&(n.return=e);n!==null;){var u=n.dependencies;if(u!==null){var c=n.child;u=u.firstContext;e:for(;u!==null;){var d=u;u=n;for(var p=0;p<t.length;p++)if(d.context===t[p]){u.lanes|=l,d=u.alternate,d!==null&&(d.lanes|=l),uc(u.return,l,e),a||(c=null);break e}u=d.next}}else if(n.tag===18){if(c=n.return,c===null)throw Error(r(341));c.lanes|=l,u=c.alternate,u!==null&&(u.lanes|=l),uc(c,l,e),c=null}else c=n.child;if(c!==null)c.return=n;else for(c=n;c!==null;){if(c===e){c=null;break}if(n=c.sibling,n!==null){n.return=c.return,c=n;break}c=c.return}n=c}}function ga(e,t,l,a){e=null;for(var n=t,u=!1;n!==null;){if(!u){if((n.flags&524288)!==0)u=!0;else if((n.flags&262144)!==0)break}if(n.tag===10){var c=n.alternate;if(c===null)throw Error(r(387));if(c=c.memoizedProps,c!==null){var d=n.type;ht(n.pendingProps.value,c.value)||(e!==null?e.push(d):e=[d])}}else if(n===ge.current){if(c=n.alternate,c===null)throw Error(r(387));c.memoizedState.memoizedState!==n.memoizedState.memoizedState&&(e!==null?e.push(Mn):e=[Mn])}n=n.return}e!==null&&ic(t,e,l,a),t.flags|=262144}function du(e){for(e=e.firstContext;e!==null;){if(!ht(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function kl(e){Zl=e,Wt=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function $e(e){return hf(Zl,e)}function hu(e,t){return Zl===null&&kl(e),hf(e,t)}function hf(e,t){var l=t._currentValue;if(t={context:t,memoizedValue:l,next:null},Wt===null){if(e===null)throw Error(r(308));Wt=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else Wt=Wt.next=t;return l}var lv=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(l,a){e.push(a)}};this.abort=function(){t.aborted=!0,e.forEach(function(l){return l()})}},av=i.unstable_scheduleCallback,nv=i.unstable_NormalPriority,qe={$$typeof:w,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function cc(){return{controller:new lv,data:new Map,refCount:0}}function un(e){e.refCount--,e.refCount===0&&av(nv,function(){e.controller.abort()})}var cn=null,sc=0,Sa=0,ba=null;function uv(e,t){if(cn===null){var l=cn=[];sc=0,Sa=os(),ba={status:"pending",value:void 0,then:function(a){l.push(a)}}}return sc++,t.then(mf,mf),t}function mf(){if(--sc===0&&cn!==null){ba!==null&&(ba.status="fulfilled");var e=cn;cn=null,Sa=0,ba=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function iv(e,t){var l=[],a={status:"pending",value:null,reason:null,then:function(n){l.push(n)}};return e.then(function(){a.status="fulfilled",a.value=t;for(var n=0;n<l.length;n++)(0,l[n])(t)},function(n){for(a.status="rejected",a.reason=n,n=0;n<l.length;n++)(0,l[n])(void 0)}),a}var vf=O.S;O.S=function(e,t){Po=ft(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&uv(e,t),vf!==null&&vf(e,t)};var Kl=S(null);function rc(){var e=Kl.current;return e!==null?e:ze.pooledCache}function mu(e,t){t===null?V(Kl,Kl.current):V(Kl,t.pool)}function yf(){var e=rc();return e===null?null:{parent:qe._currentValue,pool:e}}var xa=Error(r(460)),fc=Error(r(474)),vu=Error(r(542)),yu={then:function(){}};function pf(e){return e=e.status,e==="fulfilled"||e==="rejected"}function gf(e,t,l){switch(l=e[l],l===void 0?e.push(t):l!==t&&(t.then(kt,kt),t=l),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,bf(e),e;default:if(typeof t.status=="string")t.then(kt,kt);else{if(e=ze,e!==null&&100<e.shellSuspendCounter)throw Error(r(482));e=t,e.status="pending",e.then(function(a){if(t.status==="pending"){var n=t;n.status="fulfilled",n.value=a}},function(a){if(t.status==="pending"){var n=t;n.status="rejected",n.reason=a}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,bf(e),e}throw $l=t,xa}}function Jl(e){try{var t=e._init;return t(e._payload)}catch(l){throw l!==null&&typeof l=="object"&&typeof l.then=="function"?($l=l,xa):l}}var $l=null;function Sf(){if($l===null)throw Error(r(459));var e=$l;return $l=null,e}function bf(e){if(e===xa||e===vu)throw Error(r(483))}var Ea=null,sn=0;function pu(e){var t=sn;return sn+=1,Ea===null&&(Ea=[]),gf(Ea,e,t)}function rn(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function gu(e,t){throw t.$$typeof===B?Error(r(525)):(e=Object.prototype.toString.call(t),Error(r(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function xf(e){function t(E,g){if(e){var A=E.deletions;A===null?(E.deletions=[g],E.flags|=16):A.push(g)}}function l(E,g){if(!e)return null;for(;g!==null;)t(E,g),g=g.sibling;return null}function a(E){for(var g=new Map;E!==null;)E.key!==null?g.set(E.key,E):g.set(E.index,E),E=E.sibling;return g}function n(E,g){return E=Jt(E,g),E.index=0,E.sibling=null,E}function u(E,g,A){return E.index=A,e?(A=E.alternate,A!==null?(A=A.index,A<g?(E.flags|=67108866,g):A):(E.flags|=67108866,g)):(E.flags|=1048576,g)}function c(E){return e&&E.alternate===null&&(E.flags|=67108866),E}function d(E,g,A,M){return g===null||g.tag!==6?(g=Ii(A,E.mode,M),g.return=E,g):(g=n(g,A),g.return=E,g)}function p(E,g,A,M){var W=A.type;return W===q?C(E,g,A.props.children,M,A.key):g!==null&&(g.elementType===W||typeof W=="object"&&W!==null&&W.$$typeof===I&&Jl(W)===g.type)?(g=n(g,A.props),rn(g,A),g.return=E,g):(g=fu(A.type,A.key,A.props,null,E.mode,M),rn(g,A),g.return=E,g)}function z(E,g,A,M){return g===null||g.tag!==4||g.stateNode.containerInfo!==A.containerInfo||g.stateNode.implementation!==A.implementation?(g=Pi(A,E.mode,M),g.return=E,g):(g=n(g,A.children||[]),g.return=E,g)}function C(E,g,A,M,W){return g===null||g.tag!==7?(g=Ql(A,E.mode,M,W),g.return=E,g):(g=n(g,A),g.return=E,g)}function D(E,g,A){if(typeof g=="string"&&g!==""||typeof g=="number"||typeof g=="bigint")return g=Ii(""+g,E.mode,A),g.return=E,g;if(typeof g=="object"&&g!==null){switch(g.$$typeof){case Y:return A=fu(g.type,g.key,g.props,null,E.mode,A),rn(A,g),A.return=E,A;case Q:return g=Pi(g,E.mode,A),g.return=E,g;case I:return g=Jl(g),D(E,g,A)}if(Le(g)||Me(g))return g=Ql(g,E.mode,A,null),g.return=E,g;if(typeof g.then=="function")return D(E,pu(g),A);if(g.$$typeof===w)return D(E,hu(E,g),A);gu(E,g)}return null}function R(E,g,A,M){var W=g!==null?g.key:null;if(typeof A=="string"&&A!==""||typeof A=="number"||typeof A=="bigint")return W!==null?null:d(E,g,""+A,M);if(typeof A=="object"&&A!==null){switch(A.$$typeof){case Y:return A.key===W?p(E,g,A,M):null;case Q:return A.key===W?z(E,g,A,M):null;case I:return A=Jl(A),R(E,g,A,M)}if(Le(A)||Me(A))return W!==null?null:C(E,g,A,M,null);if(typeof A.then=="function")return R(E,g,pu(A),M);if(A.$$typeof===w)return R(E,g,hu(E,A),M);gu(E,A)}return null}function N(E,g,A,M,W){if(typeof M=="string"&&M!==""||typeof M=="number"||typeof M=="bigint")return E=E.get(A)||null,d(g,E,""+M,W);if(typeof M=="object"&&M!==null){switch(M.$$typeof){case Y:return E=E.get(M.key===null?A:M.key)||null,p(g,E,M,W);case Q:return E=E.get(M.key===null?A:M.key)||null,z(g,E,M,W);case I:return M=Jl(M),N(E,g,A,M,W)}if(Le(M)||Me(M))return E=E.get(A)||null,C(g,E,M,W,null);if(typeof M.then=="function")return N(E,g,A,pu(M),W);if(M.$$typeof===w)return N(E,g,A,hu(g,M),W);gu(g,M)}return null}function k(E,g,A,M){for(var W=null,ve=null,$=g,ue=g=0,fe=null;$!==null&&ue<A.length;ue++){$.index>ue?(fe=$,$=null):fe=$.sibling;var ye=R(E,$,A[ue],M);if(ye===null){$===null&&($=fe);break}e&&$&&ye.alternate===null&&t(E,$),g=u(ye,g,ue),ve===null?W=ye:ve.sibling=ye,ve=ye,$=fe}if(ue===A.length)return l(E,$),de&&$t(E,ue),W;if($===null){for(;ue<A.length;ue++)$=D(E,A[ue],M),$!==null&&(g=u($,g,ue),ve===null?W=$:ve.sibling=$,ve=$);return de&&$t(E,ue),W}for($=a($);ue<A.length;ue++)fe=N($,E,ue,A[ue],M),fe!==null&&(e&&fe.alternate!==null&&$.delete(fe.key===null?ue:fe.key),g=u(fe,g,ue),ve===null?W=fe:ve.sibling=fe,ve=fe);return e&&$.forEach(function(wl){return t(E,wl)}),de&&$t(E,ue),W}function F(E,g,A,M){if(A==null)throw Error(r(151));for(var W=null,ve=null,$=g,ue=g=0,fe=null,ye=A.next();$!==null&&!ye.done;ue++,ye=A.next()){$.index>ue?(fe=$,$=null):fe=$.sibling;var wl=R(E,$,ye.value,M);if(wl===null){$===null&&($=fe);break}e&&$&&wl.alternate===null&&t(E,$),g=u(wl,g,ue),ve===null?W=wl:ve.sibling=wl,ve=wl,$=fe}if(ye.done)return l(E,$),de&&$t(E,ue),W;if($===null){for(;!ye.done;ue++,ye=A.next())ye=D(E,ye.value,M),ye!==null&&(g=u(ye,g,ue),ve===null?W=ye:ve.sibling=ye,ve=ye);return de&&$t(E,ue),W}for($=a($);!ye.done;ue++,ye=A.next())ye=N($,E,ue,ye.value,M),ye!==null&&(e&&ye.alternate!==null&&$.delete(ye.key===null?ue:ye.key),g=u(ye,g,ue),ve===null?W=ye:ve.sibling=ye,ve=ye);return e&&$.forEach(function(py){return t(E,py)}),de&&$t(E,ue),W}function _e(E,g,A,M){if(typeof A=="object"&&A!==null&&A.type===q&&A.key===null&&(A=A.props.children),typeof A=="object"&&A!==null){switch(A.$$typeof){case Y:e:{for(var W=A.key;g!==null;){if(g.key===W){if(W=A.type,W===q){if(g.tag===7){l(E,g.sibling),M=n(g,A.props.children),M.return=E,E=M;break e}}else if(g.elementType===W||typeof W=="object"&&W!==null&&W.$$typeof===I&&Jl(W)===g.type){l(E,g.sibling),M=n(g,A.props),rn(M,A),M.return=E,E=M;break e}l(E,g);break}else t(E,g);g=g.sibling}A.type===q?(M=Ql(A.props.children,E.mode,M,A.key),M.return=E,E=M):(M=fu(A.type,A.key,A.props,null,E.mode,M),rn(M,A),M.return=E,E=M)}return c(E);case Q:e:{for(W=A.key;g!==null;){if(g.key===W)if(g.tag===4&&g.stateNode.containerInfo===A.containerInfo&&g.stateNode.implementation===A.implementation){l(E,g.sibling),M=n(g,A.children||[]),M.return=E,E=M;break e}else{l(E,g);break}else t(E,g);g=g.sibling}M=Pi(A,E.mode,M),M.return=E,E=M}return c(E);case I:return A=Jl(A),_e(E,g,A,M)}if(Le(A))return k(E,g,A,M);if(Me(A)){if(W=Me(A),typeof W!="function")throw Error(r(150));return A=W.call(A),F(E,g,A,M)}if(typeof A.then=="function")return _e(E,g,pu(A),M);if(A.$$typeof===w)return _e(E,g,hu(E,A),M);gu(E,A)}return typeof A=="string"&&A!==""||typeof A=="number"||typeof A=="bigint"?(A=""+A,g!==null&&g.tag===6?(l(E,g.sibling),M=n(g,A),M.return=E,E=M):(l(E,g),M=Ii(A,E.mode,M),M.return=E,E=M),c(E)):l(E,g)}return function(E,g,A,M){try{sn=0;var W=_e(E,g,A,M);return Ea=null,W}catch($){if($===xa||$===vu)throw $;var ve=mt(29,$,null,E.mode);return ve.lanes=M,ve.return=E,ve}finally{}}}var Wl=xf(!0),Ef=xf(!1),gl=!1;function oc(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function dc(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 Sl(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function bl(e,t,l){var a=e.updateQueue;if(a===null)return null;if(a=a.shared,(pe&2)!==0){var n=a.pending;return n===null?t.next=t:(t.next=n.next,n.next=t),a.pending=t,t=ru(e),nf(e,null,l),t}return su(e,a,t,l),ru(e)}function fn(e,t,l){if(t=t.updateQueue,t!==null&&(t=t.shared,(l&4194048)!==0)){var a=t.lanes;a&=e.pendingLanes,l|=a,t.lanes=l,dr(e,l)}}function hc(e,t){var l=e.updateQueue,a=e.alternate;if(a!==null&&(a=a.updateQueue,l===a)){var n=null,u=null;if(l=l.firstBaseUpdate,l!==null){do{var c={lane:l.lane,tag:l.tag,payload:l.payload,callback:null,next:null};u===null?n=u=c:u=u.next=c,l=l.next}while(l!==null);u===null?n=u=t:u=u.next=t}else n=u=t;l={baseState:a.baseState,firstBaseUpdate:n,lastBaseUpdate:u,shared:a.shared,callbacks:a.callbacks},e.updateQueue=l;return}e=l.lastBaseUpdate,e===null?l.firstBaseUpdate=t:e.next=t,l.lastBaseUpdate=t}var mc=!1;function on(){if(mc){var e=ba;if(e!==null)throw e}}function dn(e,t,l,a){mc=!1;var n=e.updateQueue;gl=!1;var u=n.firstBaseUpdate,c=n.lastBaseUpdate,d=n.shared.pending;if(d!==null){n.shared.pending=null;var p=d,z=p.next;p.next=null,c===null?u=z:c.next=z,c=p;var C=e.alternate;C!==null&&(C=C.updateQueue,d=C.lastBaseUpdate,d!==c&&(d===null?C.firstBaseUpdate=z:d.next=z,C.lastBaseUpdate=p))}if(u!==null){var D=n.baseState;c=0,C=z=p=null,d=u;do{var R=d.lane&-536870913,N=R!==d.lane;if(N?(re&R)===R:(a&R)===R){R!==0&&R===Sa&&(mc=!0),C!==null&&(C=C.next={lane:0,tag:d.tag,payload:d.payload,callback:null,next:null});e:{var k=e,F=d;R=t;var _e=l;switch(F.tag){case 1:if(k=F.payload,typeof k=="function"){D=k.call(_e,D,R);break e}D=k;break e;case 3:k.flags=k.flags&-65537|128;case 0:if(k=F.payload,R=typeof k=="function"?k.call(_e,D,R):k,R==null)break e;D=_({},D,R);break e;case 2:gl=!0}}R=d.callback,R!==null&&(e.flags|=64,N&&(e.flags|=8192),N=n.callbacks,N===null?n.callbacks=[R]:N.push(R))}else N={lane:R,tag:d.tag,payload:d.payload,callback:d.callback,next:null},C===null?(z=C=N,p=D):C=C.next=N,c|=R;if(d=d.next,d===null){if(d=n.shared.pending,d===null)break;N=d,d=N.next,N.next=null,n.lastBaseUpdate=N,n.shared.pending=null}}while(!0);C===null&&(p=D),n.baseState=p,n.firstBaseUpdate=z,n.lastBaseUpdate=C,u===null&&(n.shared.lanes=0),_l|=c,e.lanes=c,e.memoizedState=D}}function jf(e,t){if(typeof e!="function")throw Error(r(191,e));e.call(t)}function Tf(e,t){var l=e.callbacks;if(l!==null)for(e.callbacks=null,e=0;e<l.length;e++)jf(l[e],t)}var ja=S(null),Su=S(0);function _f(e,t){e=il,V(Su,e),V(ja,t),il=e|t.baseLanes}function vc(){V(Su,il),V(ja,ja.current)}function yc(){il=Su.current,U(ja),U(Su)}var vt=S(null),Rt=null;function xl(e){var t=e.alternate;V(He,He.current&1),V(vt,e),Rt===null&&(t===null||ja.current!==null||t.memoizedState!==null)&&(Rt=e)}function pc(e){V(He,He.current),V(vt,e),Rt===null&&(Rt=e)}function Af(e){e.tag===22?(V(He,He.current),V(vt,e),Rt===null&&(Rt=e)):El()}function El(){V(He,He.current),V(vt,vt.current)}function yt(e){U(vt),Rt===e&&(Rt=null),U(He)}var He=S(0);function bu(e){for(var t=e;t!==null;){if(t.tag===13){var l=t.memoizedState;if(l!==null&&(l=l.dehydrated,l===null||js(l)||Ts(l)))return t}else if(t.tag===19&&(t.memoizedProps.revealOrder==="forwards"||t.memoizedProps.revealOrder==="backwards"||t.memoizedProps.revealOrder==="unstable_legacy-backwards"||t.memoizedProps.revealOrder==="together")){if((t.flags&128)!==0)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var It=0,ae=null,je=null,Ye=null,xu=!1,Ta=!1,Fl=!1,Eu=0,hn=0,_a=null,cv=0;function De(){throw Error(r(321))}function gc(e,t){if(t===null)return!1;for(var l=0;l<t.length&&l<e.length;l++)if(!ht(e[l],t[l]))return!1;return!0}function Sc(e,t,l,a,n,u){return It=u,ae=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,O.H=e===null||e.memoizedState===null?ro:Uc,Fl=!1,u=l(a,n),Fl=!1,Ta&&(u=Rf(t,l,a,n)),zf(e),u}function zf(e){O.H=yn;var t=je!==null&&je.next!==null;if(It=0,Ye=je=ae=null,xu=!1,hn=0,_a=null,t)throw Error(r(300));e===null||Ge||(e=e.dependencies,e!==null&&du(e)&&(Ge=!0))}function Rf(e,t,l,a){ae=e;var n=0;do{if(Ta&&(_a=null),hn=0,Ta=!1,25<=n)throw Error(r(301));if(n+=1,Ye=je=null,e.updateQueue!=null){var u=e.updateQueue;u.lastEffect=null,u.events=null,u.stores=null,u.memoCache!=null&&(u.memoCache.index=0)}O.H=fo,u=t(l,a)}while(Ta);return u}function sv(){var e=O.H,t=e.useState()[0];return t=typeof t.then=="function"?mn(t):t,e=e.useState()[0],(je!==null?je.memoizedState:null)!==e&&(ae.flags|=1024),t}function bc(){var e=Eu!==0;return Eu=0,e}function xc(e,t,l){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~l}function Ec(e){if(xu){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}xu=!1}It=0,Ye=je=ae=null,Ta=!1,hn=Eu=0,_a=null}function tt(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Ye===null?ae.memoizedState=Ye=e:Ye=Ye.next=e,Ye}function Be(){if(je===null){var e=ae.alternate;e=e!==null?e.memoizedState:null}else e=je.next;var t=Ye===null?ae.memoizedState:Ye.next;if(t!==null)Ye=t,je=e;else{if(e===null)throw ae.alternate===null?Error(r(467)):Error(r(310));je=e,e={memoizedState:je.memoizedState,baseState:je.baseState,baseQueue:je.baseQueue,queue:je.queue,next:null},Ye===null?ae.memoizedState=Ye=e:Ye=Ye.next=e}return Ye}function ju(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function mn(e){var t=hn;return hn+=1,_a===null&&(_a=[]),e=gf(_a,e,t),t=ae,(Ye===null?t.memoizedState:Ye.next)===null&&(t=t.alternate,O.H=t===null||t.memoizedState===null?ro:Uc),e}function Tu(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return mn(e);if(e.$$typeof===w)return $e(e)}throw Error(r(438,String(e)))}function jc(e){var t=null,l=ae.updateQueue;if(l!==null&&(t=l.memoCache),t==null){var a=ae.alternate;a!==null&&(a=a.updateQueue,a!==null&&(a=a.memoCache,a!=null&&(t={data:a.data.map(function(n){return n.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),l===null&&(l=ju(),ae.updateQueue=l),l.memoCache=t,l=t.data[t.index],l===void 0)for(l=t.data[t.index]=Array(e),a=0;a<e;a++)l[a]=Ve;return t.index++,l}function Pt(e,t){return typeof t=="function"?t(e):t}function _u(e){var t=Be();return Tc(t,je,e)}function Tc(e,t,l){var a=e.queue;if(a===null)throw Error(r(311));a.lastRenderedReducer=l;var n=e.baseQueue,u=a.pending;if(u!==null){if(n!==null){var c=n.next;n.next=u.next,u.next=c}t.baseQueue=n=u,a.pending=null}if(u=e.baseState,n===null)e.memoizedState=u;else{t=n.next;var d=c=null,p=null,z=t,C=!1;do{var D=z.lane&-536870913;if(D!==z.lane?(re&D)===D:(It&D)===D){var R=z.revertLane;if(R===0)p!==null&&(p=p.next={lane:0,revertLane:0,gesture:null,action:z.action,hasEagerState:z.hasEagerState,eagerState:z.eagerState,next:null}),D===Sa&&(C=!0);else if((It&R)===R){z=z.next,R===Sa&&(C=!0);continue}else D={lane:0,revertLane:z.revertLane,gesture:null,action:z.action,hasEagerState:z.hasEagerState,eagerState:z.eagerState,next:null},p===null?(d=p=D,c=u):p=p.next=D,ae.lanes|=R,_l|=R;D=z.action,Fl&&l(u,D),u=z.hasEagerState?z.eagerState:l(u,D)}else R={lane:D,revertLane:z.revertLane,gesture:z.gesture,action:z.action,hasEagerState:z.hasEagerState,eagerState:z.eagerState,next:null},p===null?(d=p=R,c=u):p=p.next=R,ae.lanes|=D,_l|=D;z=z.next}while(z!==null&&z!==t);if(p===null?c=u:p.next=d,!ht(u,e.memoizedState)&&(Ge=!0,C&&(l=ba,l!==null)))throw l;e.memoizedState=u,e.baseState=c,e.baseQueue=p,a.lastRenderedState=u}return n===null&&(a.lanes=0),[e.memoizedState,a.dispatch]}function _c(e){var t=Be(),l=t.queue;if(l===null)throw Error(r(311));l.lastRenderedReducer=e;var a=l.dispatch,n=l.pending,u=t.memoizedState;if(n!==null){l.pending=null;var c=n=n.next;do u=e(u,c.action),c=c.next;while(c!==n);ht(u,t.memoizedState)||(Ge=!0),t.memoizedState=u,t.baseQueue===null&&(t.baseState=u),l.lastRenderedState=u}return[u,a]}function Nf(e,t,l){var a=ae,n=Be(),u=de;if(u){if(l===void 0)throw Error(r(407));l=l()}else l=t();var c=!ht((je||n).memoizedState,l);if(c&&(n.memoizedState=l,Ge=!0),n=n.queue,Rc(Mf.bind(null,a,n,e),[e]),n.getSnapshot!==t||c||Ye!==null&&Ye.memoizedState.tag&1){if(a.flags|=2048,Aa(9,{destroy:void 0},Of.bind(null,a,n,l,t),null),ze===null)throw Error(r(349));u||(It&127)!==0||Cf(a,t,l)}return l}function Cf(e,t,l){e.flags|=16384,e={getSnapshot:t,value:l},t=ae.updateQueue,t===null?(t=ju(),ae.updateQueue=t,t.stores=[e]):(l=t.stores,l===null?t.stores=[e]:l.push(e))}function Of(e,t,l,a){t.value=l,t.getSnapshot=a,Df(t)&&Uf(e)}function Mf(e,t,l){return l(function(){Df(t)&&Uf(e)})}function Df(e){var t=e.getSnapshot;e=e.value;try{var l=t();return!ht(e,l)}catch{return!0}}function Uf(e){var t=Xl(e,2);t!==null&&rt(t,e,2)}function Ac(e){var t=tt();if(typeof e=="function"){var l=e;if(e=l(),Fl){ol(!0);try{l()}finally{ol(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Pt,lastRenderedState:e},t}function wf(e,t,l,a){return e.baseState=l,Tc(e,je,typeof a=="function"?a:Pt)}function rv(e,t,l,a,n){if(Ru(e))throw Error(r(485));if(e=t.action,e!==null){var u={payload:n,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(c){u.listeners.push(c)}};O.T!==null?l(!0):u.isTransition=!1,a(u),l=t.pending,l===null?(u.next=t.pending=u,Hf(t,u)):(u.next=l.next,t.pending=l.next=u)}}function Hf(e,t){var l=t.action,a=t.payload,n=e.state;if(t.isTransition){var u=O.T,c={};O.T=c;try{var d=l(n,a),p=O.S;p!==null&&p(c,d),Bf(e,t,d)}catch(z){zc(e,t,z)}finally{u!==null&&c.types!==null&&(u.types=c.types),O.T=u}}else try{u=l(n,a),Bf(e,t,u)}catch(z){zc(e,t,z)}}function Bf(e,t,l){l!==null&&typeof l=="object"&&typeof l.then=="function"?l.then(function(a){Lf(e,t,a)},function(a){return zc(e,t,a)}):Lf(e,t,l)}function Lf(e,t,l){t.status="fulfilled",t.value=l,qf(t),e.state=l,t=e.pending,t!==null&&(l=t.next,l===t?e.pending=null:(l=l.next,t.next=l,Hf(e,l)))}function zc(e,t,l){var a=e.pending;if(e.pending=null,a!==null){a=a.next;do t.status="rejected",t.reason=l,qf(t),t=t.next;while(t!==a)}e.action=null}function qf(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function Yf(e,t){return t}function Gf(e,t){if(de){var l=ze.formState;if(l!==null){e:{var a=ae;if(de){if(Re){t:{for(var n=Re,u=zt;n.nodeType!==8;){if(!u){n=null;break t}if(n=Nt(n.nextSibling),n===null){n=null;break t}}u=n.data,n=u==="F!"||u==="F"?n:null}if(n){Re=Nt(n.nextSibling),a=n.data==="F!";break e}}yl(a)}a=!1}a&&(t=l[0])}}return l=tt(),l.memoizedState=l.baseState=t,a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Yf,lastRenderedState:t},l.queue=a,l=io.bind(null,ae,a),a.dispatch=l,a=Ac(!1),u=Dc.bind(null,ae,!1,a.queue),a=tt(),n={state:t,dispatch:null,action:e,pending:null},a.queue=n,l=rv.bind(null,ae,n,u,l),n.dispatch=l,a.memoizedState=e,[t,l,!1]}function Xf(e){var t=Be();return Qf(t,je,e)}function Qf(e,t,l){if(t=Tc(e,t,Yf)[0],e=_u(Pt)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var a=mn(t)}catch(c){throw c===xa?vu:c}else a=t;t=Be();var n=t.queue,u=n.dispatch;return l!==t.memoizedState&&(ae.flags|=2048,Aa(9,{destroy:void 0},fv.bind(null,n,l),null)),[a,u,e]}function fv(e,t){e.action=t}function Vf(e){var t=Be(),l=je;if(l!==null)return Qf(t,l,e);Be(),t=t.memoizedState,l=Be();var a=l.queue.dispatch;return l.memoizedState=e,[t,a,!1]}function Aa(e,t,l,a){return e={tag:e,create:l,deps:a,inst:t,next:null},t=ae.updateQueue,t===null&&(t=ju(),ae.updateQueue=t),l=t.lastEffect,l===null?t.lastEffect=e.next=e:(a=l.next,l.next=e,e.next=a,t.lastEffect=e),e}function Zf(){return Be().memoizedState}function Au(e,t,l,a){var n=tt();ae.flags|=e,n.memoizedState=Aa(1|t,{destroy:void 0},l,a===void 0?null:a)}function zu(e,t,l,a){var n=Be();a=a===void 0?null:a;var u=n.memoizedState.inst;je!==null&&a!==null&&gc(a,je.memoizedState.deps)?n.memoizedState=Aa(t,u,l,a):(ae.flags|=e,n.memoizedState=Aa(1|t,u,l,a))}function kf(e,t){Au(8390656,8,e,t)}function Rc(e,t){zu(2048,8,e,t)}function ov(e){ae.flags|=4;var t=ae.updateQueue;if(t===null)t=ju(),ae.updateQueue=t,t.events=[e];else{var l=t.events;l===null?t.events=[e]:l.push(e)}}function Kf(e){var t=Be().memoizedState;return ov({ref:t,nextImpl:e}),function(){if((pe&2)!==0)throw Error(r(440));return t.impl.apply(void 0,arguments)}}function Jf(e,t){return zu(4,2,e,t)}function $f(e,t){return zu(4,4,e,t)}function Wf(e,t){if(typeof t=="function"){e=e();var l=t(e);return function(){typeof l=="function"?l():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function Ff(e,t,l){l=l!=null?l.concat([e]):null,zu(4,4,Wf.bind(null,t,e),l)}function Nc(){}function If(e,t){var l=Be();t=t===void 0?null:t;var a=l.memoizedState;return t!==null&&gc(t,a[1])?a[0]:(l.memoizedState=[e,t],e)}function Pf(e,t){var l=Be();t=t===void 0?null:t;var a=l.memoizedState;if(t!==null&&gc(t,a[1]))return a[0];if(a=e(),Fl){ol(!0);try{e()}finally{ol(!1)}}return l.memoizedState=[a,t],a}function Cc(e,t,l){return l===void 0||(It&1073741824)!==0&&(re&261930)===0?e.memoizedState=t:(e.memoizedState=l,e=td(),ae.lanes|=e,_l|=e,l)}function eo(e,t,l,a){return ht(l,t)?l:ja.current!==null?(e=Cc(e,l,a),ht(e,t)||(Ge=!0),e):(It&42)===0||(It&1073741824)!==0&&(re&261930)===0?(Ge=!0,e.memoizedState=l):(e=td(),ae.lanes|=e,_l|=e,t)}function to(e,t,l,a,n){var u=X.p;X.p=u!==0&&8>u?u:8;var c=O.T,d={};O.T=d,Dc(e,!1,t,l);try{var p=n(),z=O.S;if(z!==null&&z(d,p),p!==null&&typeof p=="object"&&typeof p.then=="function"){var C=iv(p,a);vn(e,t,C,St(e))}else vn(e,t,a,St(e))}catch(D){vn(e,t,{then:function(){},status:"rejected",reason:D},St())}finally{X.p=u,c!==null&&d.types!==null&&(c.types=d.types),O.T=c}}function dv(){}function Oc(e,t,l,a){if(e.tag!==5)throw Error(r(476));var n=lo(e).queue;to(e,n,t,P,l===null?dv:function(){return ao(e),l(a)})}function lo(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:P,baseState:P,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Pt,lastRenderedState:P},next:null};var l={};return t.next={memoizedState:l,baseState:l,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Pt,lastRenderedState:l},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function ao(e){var t=lo(e);t.next===null&&(t=e.alternate.memoizedState),vn(e,t.next.queue,{},St())}function Mc(){return $e(Mn)}function no(){return Be().memoizedState}function uo(){return Be().memoizedState}function hv(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var l=St();e=Sl(l);var a=bl(t,e,l);a!==null&&(rt(a,t,l),fn(a,t,l)),t={cache:cc()},e.payload=t;return}t=t.return}}function mv(e,t,l){var a=St();l={lane:a,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null},Ru(e)?co(t,l):(l=Wi(e,t,l,a),l!==null&&(rt(l,e,a),so(l,t,a)))}function io(e,t,l){var a=St();vn(e,t,l,a)}function vn(e,t,l,a){var n={lane:a,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null};if(Ru(e))co(t,n);else{var u=e.alternate;if(e.lanes===0&&(u===null||u.lanes===0)&&(u=t.lastRenderedReducer,u!==null))try{var c=t.lastRenderedState,d=u(c,l);if(n.hasEagerState=!0,n.eagerState=d,ht(d,c))return su(e,t,n,0),ze===null&&cu(),!1}catch{}finally{}if(l=Wi(e,t,n,a),l!==null)return rt(l,e,a),so(l,t,a),!0}return!1}function Dc(e,t,l,a){if(a={lane:2,revertLane:os(),gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null},Ru(e)){if(t)throw Error(r(479))}else t=Wi(e,l,a,2),t!==null&&rt(t,e,2)}function Ru(e){var t=e.alternate;return e===ae||t!==null&&t===ae}function co(e,t){Ta=xu=!0;var l=e.pending;l===null?t.next=t:(t.next=l.next,l.next=t),e.pending=t}function so(e,t,l){if((l&4194048)!==0){var a=t.lanes;a&=e.pendingLanes,l|=a,t.lanes=l,dr(e,l)}}var yn={readContext:$e,use:Tu,useCallback:De,useContext:De,useEffect:De,useImperativeHandle:De,useLayoutEffect:De,useInsertionEffect:De,useMemo:De,useReducer:De,useRef:De,useState:De,useDebugValue:De,useDeferredValue:De,useTransition:De,useSyncExternalStore:De,useId:De,useHostTransitionStatus:De,useFormState:De,useActionState:De,useOptimistic:De,useMemoCache:De,useCacheRefresh:De};yn.useEffectEvent=De;var ro={readContext:$e,use:Tu,useCallback:function(e,t){return tt().memoizedState=[e,t===void 0?null:t],e},useContext:$e,useEffect:kf,useImperativeHandle:function(e,t,l){l=l!=null?l.concat([e]):null,Au(4194308,4,Wf.bind(null,t,e),l)},useLayoutEffect:function(e,t){return Au(4194308,4,e,t)},useInsertionEffect:function(e,t){Au(4,2,e,t)},useMemo:function(e,t){var l=tt();t=t===void 0?null:t;var a=e();if(Fl){ol(!0);try{e()}finally{ol(!1)}}return l.memoizedState=[a,t],a},useReducer:function(e,t,l){var a=tt();if(l!==void 0){var n=l(t);if(Fl){ol(!0);try{l(t)}finally{ol(!1)}}}else n=t;return a.memoizedState=a.baseState=n,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:n},a.queue=e,e=e.dispatch=mv.bind(null,ae,e),[a.memoizedState,e]},useRef:function(e){var t=tt();return e={current:e},t.memoizedState=e},useState:function(e){e=Ac(e);var t=e.queue,l=io.bind(null,ae,t);return t.dispatch=l,[e.memoizedState,l]},useDebugValue:Nc,useDeferredValue:function(e,t){var l=tt();return Cc(l,e,t)},useTransition:function(){var e=Ac(!1);return e=to.bind(null,ae,e.queue,!0,!1),tt().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,l){var a=ae,n=tt();if(de){if(l===void 0)throw Error(r(407));l=l()}else{if(l=t(),ze===null)throw Error(r(349));(re&127)!==0||Cf(a,t,l)}n.memoizedState=l;var u={value:l,getSnapshot:t};return n.queue=u,kf(Mf.bind(null,a,u,e),[e]),a.flags|=2048,Aa(9,{destroy:void 0},Of.bind(null,a,u,l,t),null),l},useId:function(){var e=tt(),t=ze.identifierPrefix;if(de){var l=Gt,a=Yt;l=(a&~(1<<32-dt(a)-1)).toString(32)+l,t="_"+t+"R_"+l,l=Eu++,0<l&&(t+="H"+l.toString(32)),t+="_"}else l=cv++,t="_"+t+"r_"+l.toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:Mc,useFormState:Gf,useActionState:Gf,useOptimistic:function(e){var t=tt();t.memoizedState=t.baseState=e;var l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=l,t=Dc.bind(null,ae,!0,l),l.dispatch=t,[e,t]},useMemoCache:jc,useCacheRefresh:function(){return tt().memoizedState=hv.bind(null,ae)},useEffectEvent:function(e){var t=tt(),l={impl:e};return t.memoizedState=l,function(){if((pe&2)!==0)throw Error(r(440));return l.impl.apply(void 0,arguments)}}},Uc={readContext:$e,use:Tu,useCallback:If,useContext:$e,useEffect:Rc,useImperativeHandle:Ff,useInsertionEffect:Jf,useLayoutEffect:$f,useMemo:Pf,useReducer:_u,useRef:Zf,useState:function(){return _u(Pt)},useDebugValue:Nc,useDeferredValue:function(e,t){var l=Be();return eo(l,je.memoizedState,e,t)},useTransition:function(){var e=_u(Pt)[0],t=Be().memoizedState;return[typeof e=="boolean"?e:mn(e),t]},useSyncExternalStore:Nf,useId:no,useHostTransitionStatus:Mc,useFormState:Xf,useActionState:Xf,useOptimistic:function(e,t){var l=Be();return wf(l,je,e,t)},useMemoCache:jc,useCacheRefresh:uo};Uc.useEffectEvent=Kf;var fo={readContext:$e,use:Tu,useCallback:If,useContext:$e,useEffect:Rc,useImperativeHandle:Ff,useInsertionEffect:Jf,useLayoutEffect:$f,useMemo:Pf,useReducer:_c,useRef:Zf,useState:function(){return _c(Pt)},useDebugValue:Nc,useDeferredValue:function(e,t){var l=Be();return je===null?Cc(l,e,t):eo(l,je.memoizedState,e,t)},useTransition:function(){var e=_c(Pt)[0],t=Be().memoizedState;return[typeof e=="boolean"?e:mn(e),t]},useSyncExternalStore:Nf,useId:no,useHostTransitionStatus:Mc,useFormState:Vf,useActionState:Vf,useOptimistic:function(e,t){var l=Be();return je!==null?wf(l,je,e,t):(l.baseState=e,[e,l.queue.dispatch])},useMemoCache:jc,useCacheRefresh:uo};fo.useEffectEvent=Kf;function wc(e,t,l,a){t=e.memoizedState,l=l(a,t),l=l==null?t:_({},t,l),e.memoizedState=l,e.lanes===0&&(e.updateQueue.baseState=l)}var Hc={enqueueSetState:function(e,t,l){e=e._reactInternals;var a=St(),n=Sl(a);n.payload=t,l!=null&&(n.callback=l),t=bl(e,n,a),t!==null&&(rt(t,e,a),fn(t,e,a))},enqueueReplaceState:function(e,t,l){e=e._reactInternals;var a=St(),n=Sl(a);n.tag=1,n.payload=t,l!=null&&(n.callback=l),t=bl(e,n,a),t!==null&&(rt(t,e,a),fn(t,e,a))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var l=St(),a=Sl(l);a.tag=2,t!=null&&(a.callback=t),t=bl(e,a,l),t!==null&&(rt(t,e,l),fn(t,e,l))}};function oo(e,t,l,a,n,u,c){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(a,u,c):t.prototype&&t.prototype.isPureReactComponent?!tn(l,a)||!tn(n,u):!0}function ho(e,t,l,a){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(l,a),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(l,a),t.state!==e&&Hc.enqueueReplaceState(t,t.state,null)}function Il(e,t){var l=t;if("ref"in t){l={};for(var a in t)a!=="ref"&&(l[a]=t[a])}if(e=e.defaultProps){l===t&&(l=_({},l));for(var n in e)l[n]===void 0&&(l[n]=e[n])}return l}function mo(e){iu(e)}function vo(e){console.error(e)}function yo(e){iu(e)}function Nu(e,t){try{var l=e.onUncaughtError;l(t.value,{componentStack:t.stack})}catch(a){setTimeout(function(){throw a})}}function po(e,t,l){try{var a=e.onCaughtError;a(l.value,{componentStack:l.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(n){setTimeout(function(){throw n})}}function Bc(e,t,l){return l=Sl(l),l.tag=3,l.payload={element:null},l.callback=function(){Nu(e,t)},l}function go(e){return e=Sl(e),e.tag=3,e}function So(e,t,l,a){var n=l.type.getDerivedStateFromError;if(typeof n=="function"){var u=a.value;e.payload=function(){return n(u)},e.callback=function(){po(t,l,a)}}var c=l.stateNode;c!==null&&typeof c.componentDidCatch=="function"&&(e.callback=function(){po(t,l,a),typeof n!="function"&&(Al===null?Al=new Set([this]):Al.add(this));var d=a.stack;this.componentDidCatch(a.value,{componentStack:d!==null?d:""})})}function vv(e,t,l,a,n){if(l.flags|=32768,a!==null&&typeof a=="object"&&typeof a.then=="function"){if(t=l.alternate,t!==null&&ga(t,l,n,!0),l=vt.current,l!==null){switch(l.tag){case 31:case 13:return Rt===null?Gu():l.alternate===null&&Ue===0&&(Ue=3),l.flags&=-257,l.flags|=65536,l.lanes=n,a===yu?l.flags|=16384:(t=l.updateQueue,t===null?l.updateQueue=new Set([a]):t.add(a),ss(e,a,n)),!1;case 22:return l.flags|=65536,a===yu?l.flags|=16384:(t=l.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([a])},l.updateQueue=t):(l=t.retryQueue,l===null?t.retryQueue=new Set([a]):l.add(a)),ss(e,a,n)),!1}throw Error(r(435,l.tag))}return ss(e,a,n),Gu(),!1}if(de)return t=vt.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=n,a!==lc&&(e=Error(r(422),{cause:a}),nn(Tt(e,l)))):(a!==lc&&(t=Error(r(423),{cause:a}),nn(Tt(t,l))),e=e.current.alternate,e.flags|=65536,n&=-n,e.lanes|=n,a=Tt(a,l),n=Bc(e.stateNode,a,n),hc(e,n),Ue!==4&&(Ue=2)),!1;var u=Error(r(520),{cause:a});if(u=Tt(u,l),Tn===null?Tn=[u]:Tn.push(u),Ue!==4&&(Ue=2),t===null)return!0;a=Tt(a,l),l=t;do{switch(l.tag){case 3:return l.flags|=65536,e=n&-n,l.lanes|=e,e=Bc(l.stateNode,a,e),hc(l,e),!1;case 1:if(t=l.type,u=l.stateNode,(l.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||u!==null&&typeof u.componentDidCatch=="function"&&(Al===null||!Al.has(u))))return l.flags|=65536,n&=-n,l.lanes|=n,n=go(n),So(n,e,l,a),hc(l,n),!1}l=l.return}while(l!==null);return!1}var Lc=Error(r(461)),Ge=!1;function We(e,t,l,a){t.child=e===null?Ef(t,null,l,a):Wl(t,e.child,l,a)}function bo(e,t,l,a,n){l=l.render;var u=t.ref;if("ref"in a){var c={};for(var d in a)d!=="ref"&&(c[d]=a[d])}else c=a;return kl(t),a=Sc(e,t,l,c,u,n),d=bc(),e!==null&&!Ge?(xc(e,t,n),el(e,t,n)):(de&&d&&ec(t),t.flags|=1,We(e,t,a,n),t.child)}function xo(e,t,l,a,n){if(e===null){var u=l.type;return typeof u=="function"&&!Fi(u)&&u.defaultProps===void 0&&l.compare===null?(t.tag=15,t.type=u,Eo(e,t,u,a,n)):(e=fu(l.type,null,a,t,t.mode,n),e.ref=t.ref,e.return=t,t.child=e)}if(u=e.child,!kc(e,n)){var c=u.memoizedProps;if(l=l.compare,l=l!==null?l:tn,l(c,a)&&e.ref===t.ref)return el(e,t,n)}return t.flags|=1,e=Jt(u,a),e.ref=t.ref,e.return=t,t.child=e}function Eo(e,t,l,a,n){if(e!==null){var u=e.memoizedProps;if(tn(u,a)&&e.ref===t.ref)if(Ge=!1,t.pendingProps=a=u,kc(e,n))(e.flags&131072)!==0&&(Ge=!0);else return t.lanes=e.lanes,el(e,t,n)}return qc(e,t,l,a,n)}function jo(e,t,l,a){var n=a.children,u=e!==null?e.memoizedState:null;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),a.mode==="hidden"){if((t.flags&128)!==0){if(u=u!==null?u.baseLanes|l:l,e!==null){for(a=t.child=e.child,n=0;a!==null;)n=n|a.lanes|a.childLanes,a=a.sibling;a=n&~u}else a=0,t.child=null;return To(e,t,u,l,a)}if((l&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&mu(t,u!==null?u.cachePool:null),u!==null?_f(t,u):vc(),Af(t);else return a=t.lanes=536870912,To(e,t,u!==null?u.baseLanes|l:l,l,a)}else u!==null?(mu(t,u.cachePool),_f(t,u),El(),t.memoizedState=null):(e!==null&&mu(t,null),vc(),El());return We(e,t,n,l),t.child}function pn(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function To(e,t,l,a,n){var u=rc();return u=u===null?null:{parent:qe._currentValue,pool:u},t.memoizedState={baseLanes:l,cachePool:u},e!==null&&mu(t,null),vc(),Af(t),e!==null&&ga(e,t,a,!0),t.childLanes=n,null}function Cu(e,t){return t=Mu({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function _o(e,t,l){return Wl(t,e.child,null,l),e=Cu(t,t.pendingProps),e.flags|=2,yt(t),t.memoizedState=null,e}function yv(e,t,l){var a=t.pendingProps,n=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(de){if(a.mode==="hidden")return e=Cu(t,a),t.lanes=536870912,pn(null,e);if(pc(t),(e=Re)?(e=Bd(e,zt),e=e!==null&&e.data==="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:ml!==null?{id:Yt,overflow:Gt}:null,retryLane:536870912,hydrationErrors:null},l=cf(e),l.return=t,t.child=l,Je=t,Re=null)):e=null,e===null)throw yl(t);return t.lanes=536870912,null}return Cu(t,a)}var u=e.memoizedState;if(u!==null){var c=u.dehydrated;if(pc(t),n)if(t.flags&256)t.flags&=-257,t=_o(e,t,l);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(r(558));else if(Ge||ga(e,t,l,!1),n=(l&e.childLanes)!==0,Ge||n){if(a=ze,a!==null&&(c=hr(a,l),c!==0&&c!==u.retryLane))throw u.retryLane=c,Xl(e,c),rt(a,e,c),Lc;Gu(),t=_o(e,t,l)}else e=u.treeContext,Re=Nt(c.nextSibling),Je=t,de=!0,vl=null,zt=!1,e!==null&&ff(t,e),t=Cu(t,a),t.flags|=4096;return t}return e=Jt(e.child,{mode:a.mode,children:a.children}),e.ref=t.ref,t.child=e,e.return=t,e}function Ou(e,t){var l=t.ref;if(l===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof l!="function"&&typeof l!="object")throw Error(r(284));(e===null||e.ref!==l)&&(t.flags|=4194816)}}function qc(e,t,l,a,n){return kl(t),l=Sc(e,t,l,a,void 0,n),a=bc(),e!==null&&!Ge?(xc(e,t,n),el(e,t,n)):(de&&a&&ec(t),t.flags|=1,We(e,t,l,n),t.child)}function Ao(e,t,l,a,n,u){return kl(t),t.updateQueue=null,l=Rf(t,a,l,n),zf(e),a=bc(),e!==null&&!Ge?(xc(e,t,u),el(e,t,u)):(de&&a&&ec(t),t.flags|=1,We(e,t,l,u),t.child)}function zo(e,t,l,a,n){if(kl(t),t.stateNode===null){var u=ma,c=l.contextType;typeof c=="object"&&c!==null&&(u=$e(c)),u=new l(a,u),t.memoizedState=u.state!==null&&u.state!==void 0?u.state:null,u.updater=Hc,t.stateNode=u,u._reactInternals=t,u=t.stateNode,u.props=a,u.state=t.memoizedState,u.refs={},oc(t),c=l.contextType,u.context=typeof c=="object"&&c!==null?$e(c):ma,u.state=t.memoizedState,c=l.getDerivedStateFromProps,typeof c=="function"&&(wc(t,l,c,a),u.state=t.memoizedState),typeof l.getDerivedStateFromProps=="function"||typeof u.getSnapshotBeforeUpdate=="function"||typeof u.UNSAFE_componentWillMount!="function"&&typeof u.componentWillMount!="function"||(c=u.state,typeof u.componentWillMount=="function"&&u.componentWillMount(),typeof u.UNSAFE_componentWillMount=="function"&&u.UNSAFE_componentWillMount(),c!==u.state&&Hc.enqueueReplaceState(u,u.state,null),dn(t,a,u,n),on(),u.state=t.memoizedState),typeof u.componentDidMount=="function"&&(t.flags|=4194308),a=!0}else if(e===null){u=t.stateNode;var d=t.memoizedProps,p=Il(l,d);u.props=p;var z=u.context,C=l.contextType;c=ma,typeof C=="object"&&C!==null&&(c=$e(C));var D=l.getDerivedStateFromProps;C=typeof D=="function"||typeof u.getSnapshotBeforeUpdate=="function",d=t.pendingProps!==d,C||typeof u.UNSAFE_componentWillReceiveProps!="function"&&typeof u.componentWillReceiveProps!="function"||(d||z!==c)&&ho(t,u,a,c),gl=!1;var R=t.memoizedState;u.state=R,dn(t,a,u,n),on(),z=t.memoizedState,d||R!==z||gl?(typeof D=="function"&&(wc(t,l,D,a),z=t.memoizedState),(p=gl||oo(t,l,p,a,R,z,c))?(C||typeof u.UNSAFE_componentWillMount!="function"&&typeof u.componentWillMount!="function"||(typeof u.componentWillMount=="function"&&u.componentWillMount(),typeof u.UNSAFE_componentWillMount=="function"&&u.UNSAFE_componentWillMount()),typeof u.componentDidMount=="function"&&(t.flags|=4194308)):(typeof u.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=a,t.memoizedState=z),u.props=a,u.state=z,u.context=c,a=p):(typeof u.componentDidMount=="function"&&(t.flags|=4194308),a=!1)}else{u=t.stateNode,dc(e,t),c=t.memoizedProps,C=Il(l,c),u.props=C,D=t.pendingProps,R=u.context,z=l.contextType,p=ma,typeof z=="object"&&z!==null&&(p=$e(z)),d=l.getDerivedStateFromProps,(z=typeof d=="function"||typeof u.getSnapshotBeforeUpdate=="function")||typeof u.UNSAFE_componentWillReceiveProps!="function"&&typeof u.componentWillReceiveProps!="function"||(c!==D||R!==p)&&ho(t,u,a,p),gl=!1,R=t.memoizedState,u.state=R,dn(t,a,u,n),on();var N=t.memoizedState;c!==D||R!==N||gl||e!==null&&e.dependencies!==null&&du(e.dependencies)?(typeof d=="function"&&(wc(t,l,d,a),N=t.memoizedState),(C=gl||oo(t,l,C,a,R,N,p)||e!==null&&e.dependencies!==null&&du(e.dependencies))?(z||typeof u.UNSAFE_componentWillUpdate!="function"&&typeof u.componentWillUpdate!="function"||(typeof u.componentWillUpdate=="function"&&u.componentWillUpdate(a,N,p),typeof u.UNSAFE_componentWillUpdate=="function"&&u.UNSAFE_componentWillUpdate(a,N,p)),typeof u.componentDidUpdate=="function"&&(t.flags|=4),typeof u.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof u.componentDidUpdate!="function"||c===e.memoizedProps&&R===e.memoizedState||(t.flags|=4),typeof u.getSnapshotBeforeUpdate!="function"||c===e.memoizedProps&&R===e.memoizedState||(t.flags|=1024),t.memoizedProps=a,t.memoizedState=N),u.props=a,u.state=N,u.context=p,a=C):(typeof u.componentDidUpdate!="function"||c===e.memoizedProps&&R===e.memoizedState||(t.flags|=4),typeof u.getSnapshotBeforeUpdate!="function"||c===e.memoizedProps&&R===e.memoizedState||(t.flags|=1024),a=!1)}return u=a,Ou(e,t),a=(t.flags&128)!==0,u||a?(u=t.stateNode,l=a&&typeof l.getDerivedStateFromError!="function"?null:u.render(),t.flags|=1,e!==null&&a?(t.child=Wl(t,e.child,null,n),t.child=Wl(t,null,l,n)):We(e,t,l,n),t.memoizedState=u.state,e=t.child):e=el(e,t,n),e}function Ro(e,t,l,a){return Vl(),t.flags|=256,We(e,t,l,a),t.child}var Yc={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Gc(e){return{baseLanes:e,cachePool:yf()}}function Xc(e,t,l){return e=e!==null?e.childLanes&~l:0,t&&(e|=gt),e}function No(e,t,l){var a=t.pendingProps,n=!1,u=(t.flags&128)!==0,c;if((c=u)||(c=e!==null&&e.memoizedState===null?!1:(He.current&2)!==0),c&&(n=!0,t.flags&=-129),c=(t.flags&32)!==0,t.flags&=-33,e===null){if(de){if(n?xl(t):El(),(e=Re)?(e=Bd(e,zt),e=e!==null&&e.data!=="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:ml!==null?{id:Yt,overflow:Gt}:null,retryLane:536870912,hydrationErrors:null},l=cf(e),l.return=t,t.child=l,Je=t,Re=null)):e=null,e===null)throw yl(t);return Ts(e)?t.lanes=32:t.lanes=536870912,null}var d=a.children;return a=a.fallback,n?(El(),n=t.mode,d=Mu({mode:"hidden",children:d},n),a=Ql(a,n,l,null),d.return=t,a.return=t,d.sibling=a,t.child=d,a=t.child,a.memoizedState=Gc(l),a.childLanes=Xc(e,c,l),t.memoizedState=Yc,pn(null,a)):(xl(t),Qc(t,d))}var p=e.memoizedState;if(p!==null&&(d=p.dehydrated,d!==null)){if(u)t.flags&256?(xl(t),t.flags&=-257,t=Vc(e,t,l)):t.memoizedState!==null?(El(),t.child=e.child,t.flags|=128,t=null):(El(),d=a.fallback,n=t.mode,a=Mu({mode:"visible",children:a.children},n),d=Ql(d,n,l,null),d.flags|=2,a.return=t,d.return=t,a.sibling=d,t.child=a,Wl(t,e.child,null,l),a=t.child,a.memoizedState=Gc(l),a.childLanes=Xc(e,c,l),t.memoizedState=Yc,t=pn(null,a));else if(xl(t),Ts(d)){if(c=d.nextSibling&&d.nextSibling.dataset,c)var z=c.dgst;c=z,a=Error(r(419)),a.stack="",a.digest=c,nn({value:a,source:null,stack:null}),t=Vc(e,t,l)}else if(Ge||ga(e,t,l,!1),c=(l&e.childLanes)!==0,Ge||c){if(c=ze,c!==null&&(a=hr(c,l),a!==0&&a!==p.retryLane))throw p.retryLane=a,Xl(e,a),rt(c,e,a),Lc;js(d)||Gu(),t=Vc(e,t,l)}else js(d)?(t.flags|=192,t.child=e.child,t=null):(e=p.treeContext,Re=Nt(d.nextSibling),Je=t,de=!0,vl=null,zt=!1,e!==null&&ff(t,e),t=Qc(t,a.children),t.flags|=4096);return t}return n?(El(),d=a.fallback,n=t.mode,p=e.child,z=p.sibling,a=Jt(p,{mode:"hidden",children:a.children}),a.subtreeFlags=p.subtreeFlags&65011712,z!==null?d=Jt(z,d):(d=Ql(d,n,l,null),d.flags|=2),d.return=t,a.return=t,a.sibling=d,t.child=a,pn(null,a),a=t.child,d=e.child.memoizedState,d===null?d=Gc(l):(n=d.cachePool,n!==null?(p=qe._currentValue,n=n.parent!==p?{parent:p,pool:p}:n):n=yf(),d={baseLanes:d.baseLanes|l,cachePool:n}),a.memoizedState=d,a.childLanes=Xc(e,c,l),t.memoizedState=Yc,pn(e.child,a)):(xl(t),l=e.child,e=l.sibling,l=Jt(l,{mode:"visible",children:a.children}),l.return=t,l.sibling=null,e!==null&&(c=t.deletions,c===null?(t.deletions=[e],t.flags|=16):c.push(e)),t.child=l,t.memoizedState=null,l)}function Qc(e,t){return t=Mu({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function Mu(e,t){return e=mt(22,e,null,t),e.lanes=0,e}function Vc(e,t,l){return Wl(t,e.child,null,l),e=Qc(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Co(e,t,l){e.lanes|=t;var a=e.alternate;a!==null&&(a.lanes|=t),uc(e.return,t,l)}function Zc(e,t,l,a,n,u){var c=e.memoizedState;c===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:a,tail:l,tailMode:n,treeForkCount:u}:(c.isBackwards=t,c.rendering=null,c.renderingStartTime=0,c.last=a,c.tail=l,c.tailMode=n,c.treeForkCount=u)}function Oo(e,t,l){var a=t.pendingProps,n=a.revealOrder,u=a.tail;a=a.children;var c=He.current,d=(c&2)!==0;if(d?(c=c&1|2,t.flags|=128):c&=1,V(He,c),We(e,t,a,l),a=de?an:0,!d&&e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Co(e,l,t);else if(e.tag===19)Co(e,l,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}switch(n){case"forwards":for(l=t.child,n=null;l!==null;)e=l.alternate,e!==null&&bu(e)===null&&(n=l),l=l.sibling;l=n,l===null?(n=t.child,t.child=null):(n=l.sibling,l.sibling=null),Zc(t,!1,n,l,u,a);break;case"backwards":case"unstable_legacy-backwards":for(l=null,n=t.child,t.child=null;n!==null;){if(e=n.alternate,e!==null&&bu(e)===null){t.child=n;break}e=n.sibling,n.sibling=l,l=n,n=e}Zc(t,!0,l,null,u,a);break;case"together":Zc(t,!1,null,null,void 0,a);break;default:t.memoizedState=null}return t.child}function el(e,t,l){if(e!==null&&(t.dependencies=e.dependencies),_l|=t.lanes,(l&t.childLanes)===0)if(e!==null){if(ga(e,t,l,!1),(l&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(r(153));if(t.child!==null){for(e=t.child,l=Jt(e,e.pendingProps),t.child=l,l.return=t;e.sibling!==null;)e=e.sibling,l=l.sibling=Jt(e,e.pendingProps),l.return=t;l.sibling=null}return t.child}function kc(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&du(e)))}function pv(e,t,l){switch(t.tag){case 3:et(t,t.stateNode.containerInfo),pl(t,qe,e.memoizedState.cache),Vl();break;case 27:case 5:Xa(t);break;case 4:et(t,t.stateNode.containerInfo);break;case 10:pl(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,pc(t),null;break;case 13:var a=t.memoizedState;if(a!==null)return a.dehydrated!==null?(xl(t),t.flags|=128,null):(l&t.child.childLanes)!==0?No(e,t,l):(xl(t),e=el(e,t,l),e!==null?e.sibling:null);xl(t);break;case 19:var n=(e.flags&128)!==0;if(a=(l&t.childLanes)!==0,a||(ga(e,t,l,!1),a=(l&t.childLanes)!==0),n){if(a)return Oo(e,t,l);t.flags|=128}if(n=t.memoizedState,n!==null&&(n.rendering=null,n.tail=null,n.lastEffect=null),V(He,He.current),a)break;return null;case 22:return t.lanes=0,jo(e,t,l,t.pendingProps);case 24:pl(t,qe,e.memoizedState.cache)}return el(e,t,l)}function Mo(e,t,l){if(e!==null)if(e.memoizedProps!==t.pendingProps)Ge=!0;else{if(!kc(e,l)&&(t.flags&128)===0)return Ge=!1,pv(e,t,l);Ge=(e.flags&131072)!==0}else Ge=!1,de&&(t.flags&1048576)!==0&&rf(t,an,t.index);switch(t.lanes=0,t.tag){case 16:e:{var a=t.pendingProps;if(e=Jl(t.elementType),t.type=e,typeof e=="function")Fi(e)?(a=Il(e,a),t.tag=1,t=zo(null,t,e,a,l)):(t.tag=0,t=qc(null,t,e,a,l));else{if(e!=null){var n=e.$$typeof;if(n===L){t.tag=11,t=bo(null,t,e,a,l);break e}else if(n===H){t.tag=14,t=xo(null,t,e,a,l);break e}}throw t=bt(e)||e,Error(r(306,t,""))}}return t;case 0:return qc(e,t,t.type,t.pendingProps,l);case 1:return a=t.type,n=Il(a,t.pendingProps),zo(e,t,a,n,l);case 3:e:{if(et(t,t.stateNode.containerInfo),e===null)throw Error(r(387));a=t.pendingProps;var u=t.memoizedState;n=u.element,dc(e,t),dn(t,a,null,l);var c=t.memoizedState;if(a=c.cache,pl(t,qe,a),a!==u.cache&&ic(t,[qe],l,!0),on(),a=c.element,u.isDehydrated)if(u={element:a,isDehydrated:!1,cache:c.cache},t.updateQueue.baseState=u,t.memoizedState=u,t.flags&256){t=Ro(e,t,a,l);break e}else if(a!==n){n=Tt(Error(r(424)),t),nn(n),t=Ro(e,t,a,l);break e}else{switch(e=t.stateNode.containerInfo,e.nodeType){case 9:e=e.body;break;default:e=e.nodeName==="HTML"?e.ownerDocument.body:e}for(Re=Nt(e.firstChild),Je=t,de=!0,vl=null,zt=!0,l=Ef(t,null,a,l),t.child=l;l;)l.flags=l.flags&-3|4096,l=l.sibling}else{if(Vl(),a===n){t=el(e,t,l);break e}We(e,t,a,l)}t=t.child}return t;case 26:return Ou(e,t),e===null?(l=Qd(t.type,null,t.pendingProps,null))?t.memoizedState=l:de||(l=t.type,e=t.pendingProps,a=Ju(ie.current).createElement(l),a[Ke]=t,a[at]=e,Fe(a,l,e),Ze(a),t.stateNode=a):t.memoizedState=Qd(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return Xa(t),e===null&&de&&(a=t.stateNode=Yd(t.type,t.pendingProps,ie.current),Je=t,zt=!0,n=Re,Cl(t.type)?(_s=n,Re=Nt(a.firstChild)):Re=n),We(e,t,t.pendingProps.children,l),Ou(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&de&&((n=a=Re)&&(a=Kv(a,t.type,t.pendingProps,zt),a!==null?(t.stateNode=a,Je=t,Re=Nt(a.firstChild),zt=!1,n=!0):n=!1),n||yl(t)),Xa(t),n=t.type,u=t.pendingProps,c=e!==null?e.memoizedProps:null,a=u.children,bs(n,u)?a=null:c!==null&&bs(n,c)&&(t.flags|=32),t.memoizedState!==null&&(n=Sc(e,t,sv,null,null,l),Mn._currentValue=n),Ou(e,t),We(e,t,a,l),t.child;case 6:return e===null&&de&&((e=l=Re)&&(l=Jv(l,t.pendingProps,zt),l!==null?(t.stateNode=l,Je=t,Re=null,e=!0):e=!1),e||yl(t)),null;case 13:return No(e,t,l);case 4:return et(t,t.stateNode.containerInfo),a=t.pendingProps,e===null?t.child=Wl(t,null,a,l):We(e,t,a,l),t.child;case 11:return bo(e,t,t.type,t.pendingProps,l);case 7:return We(e,t,t.pendingProps,l),t.child;case 8:return We(e,t,t.pendingProps.children,l),t.child;case 12:return We(e,t,t.pendingProps.children,l),t.child;case 10:return a=t.pendingProps,pl(t,t.type,a.value),We(e,t,a.children,l),t.child;case 9:return n=t.type._context,a=t.pendingProps.children,kl(t),n=$e(n),a=a(n),t.flags|=1,We(e,t,a,l),t.child;case 14:return xo(e,t,t.type,t.pendingProps,l);case 15:return Eo(e,t,t.type,t.pendingProps,l);case 19:return Oo(e,t,l);case 31:return yv(e,t,l);case 22:return jo(e,t,l,t.pendingProps);case 24:return kl(t),a=$e(qe),e===null?(n=rc(),n===null&&(n=ze,u=cc(),n.pooledCache=u,u.refCount++,u!==null&&(n.pooledCacheLanes|=l),n=u),t.memoizedState={parent:a,cache:n},oc(t),pl(t,qe,n)):((e.lanes&l)!==0&&(dc(e,t),dn(t,null,null,l),on()),n=e.memoizedState,u=t.memoizedState,n.parent!==a?(n={parent:a,cache:a},t.memoizedState=n,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=n),pl(t,qe,a)):(a=u.cache,pl(t,qe,a),a!==n.cache&&ic(t,[qe],l,!0))),We(e,t,t.pendingProps.children,l),t.child;case 29:throw t.pendingProps}throw Error(r(156,t.tag))}function tl(e){e.flags|=4}function Kc(e,t,l,a,n){if((t=(e.mode&32)!==0)&&(t=!1),t){if(e.flags|=16777216,(n&335544128)===n)if(e.stateNode.complete)e.flags|=8192;else if(ud())e.flags|=8192;else throw $l=yu,fc}else e.flags&=-16777217}function Do(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!Jd(t))if(ud())e.flags|=8192;else throw $l=yu,fc}function Du(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?fr():536870912,e.lanes|=t,Ca|=t)}function gn(e,t){if(!de)switch(e.tailMode){case"hidden":t=e.tail;for(var l=null;t!==null;)t.alternate!==null&&(l=t),t=t.sibling;l===null?e.tail=null:l.sibling=null;break;case"collapsed":l=e.tail;for(var a=null;l!==null;)l.alternate!==null&&(a=l),l=l.sibling;a===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:a.sibling=null}}function Ne(e){var t=e.alternate!==null&&e.alternate.child===e.child,l=0,a=0;if(t)for(var n=e.child;n!==null;)l|=n.lanes|n.childLanes,a|=n.subtreeFlags&65011712,a|=n.flags&65011712,n.return=e,n=n.sibling;else for(n=e.child;n!==null;)l|=n.lanes|n.childLanes,a|=n.subtreeFlags,a|=n.flags,n.return=e,n=n.sibling;return e.subtreeFlags|=a,e.childLanes=l,t}function gv(e,t,l){var a=t.pendingProps;switch(tc(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Ne(t),null;case 1:return Ne(t),null;case 3:return l=t.stateNode,a=null,e!==null&&(a=e.memoizedState.cache),t.memoizedState.cache!==a&&(t.flags|=2048),Ft(qe),we(),l.pendingContext&&(l.context=l.pendingContext,l.pendingContext=null),(e===null||e.child===null)&&(pa(t)?tl(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,ac())),Ne(t),null;case 26:var n=t.type,u=t.memoizedState;return e===null?(tl(t),u!==null?(Ne(t),Do(t,u)):(Ne(t),Kc(t,n,null,a,l))):u?u!==e.memoizedState?(tl(t),Ne(t),Do(t,u)):(Ne(t),t.flags&=-16777217):(e=e.memoizedProps,e!==a&&tl(t),Ne(t),Kc(t,n,e,a,l)),null;case 27:if(Vn(t),l=ie.current,n=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==a&&tl(t);else{if(!a){if(t.stateNode===null)throw Error(r(166));return Ne(t),null}e=K.current,pa(t)?of(t):(e=Yd(n,a,l),t.stateNode=e,tl(t))}return Ne(t),null;case 5:if(Vn(t),n=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==a&&tl(t);else{if(!a){if(t.stateNode===null)throw Error(r(166));return Ne(t),null}if(u=K.current,pa(t))of(t);else{var c=Ju(ie.current);switch(u){case 1:u=c.createElementNS("http://www.w3.org/2000/svg",n);break;case 2:u=c.createElementNS("http://www.w3.org/1998/Math/MathML",n);break;default:switch(n){case"svg":u=c.createElementNS("http://www.w3.org/2000/svg",n);break;case"math":u=c.createElementNS("http://www.w3.org/1998/Math/MathML",n);break;case"script":u=c.createElement("div"),u.innerHTML="<script><\/script>",u=u.removeChild(u.firstChild);break;case"select":u=typeof a.is=="string"?c.createElement("select",{is:a.is}):c.createElement("select"),a.multiple?u.multiple=!0:a.size&&(u.size=a.size);break;default:u=typeof a.is=="string"?c.createElement(n,{is:a.is}):c.createElement(n)}}u[Ke]=t,u[at]=a;e:for(c=t.child;c!==null;){if(c.tag===5||c.tag===6)u.appendChild(c.stateNode);else if(c.tag!==4&&c.tag!==27&&c.child!==null){c.child.return=c,c=c.child;continue}if(c===t)break e;for(;c.sibling===null;){if(c.return===null||c.return===t)break e;c=c.return}c.sibling.return=c.return,c=c.sibling}t.stateNode=u;e:switch(Fe(u,n,a),n){case"button":case"input":case"select":case"textarea":a=!!a.autoFocus;break e;case"img":a=!0;break e;default:a=!1}a&&tl(t)}}return Ne(t),Kc(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,l),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==a&&tl(t);else{if(typeof a!="string"&&t.stateNode===null)throw Error(r(166));if(e=ie.current,pa(t)){if(e=t.stateNode,l=t.memoizedProps,a=null,n=Je,n!==null)switch(n.tag){case 27:case 5:a=n.memoizedProps}e[Ke]=t,e=!!(e.nodeValue===l||a!==null&&a.suppressHydrationWarning===!0||Nd(e.nodeValue,l)),e||yl(t,!0)}else e=Ju(e).createTextNode(a),e[Ke]=t,t.stateNode=e}return Ne(t),null;case 31:if(l=t.memoizedState,e===null||e.memoizedState!==null){if(a=pa(t),l!==null){if(e===null){if(!a)throw Error(r(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(r(557));e[Ke]=t}else Vl(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Ne(t),e=!1}else l=ac(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=l),e=!0;if(!e)return t.flags&256?(yt(t),t):(yt(t),null);if((t.flags&128)!==0)throw Error(r(558))}return Ne(t),null;case 13:if(a=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(n=pa(t),a!==null&&a.dehydrated!==null){if(e===null){if(!n)throw Error(r(318));if(n=t.memoizedState,n=n!==null?n.dehydrated:null,!n)throw Error(r(317));n[Ke]=t}else Vl(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Ne(t),n=!1}else n=ac(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=n),n=!0;if(!n)return t.flags&256?(yt(t),t):(yt(t),null)}return yt(t),(t.flags&128)!==0?(t.lanes=l,t):(l=a!==null,e=e!==null&&e.memoizedState!==null,l&&(a=t.child,n=null,a.alternate!==null&&a.alternate.memoizedState!==null&&a.alternate.memoizedState.cachePool!==null&&(n=a.alternate.memoizedState.cachePool.pool),u=null,a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(u=a.memoizedState.cachePool.pool),u!==n&&(a.flags|=2048)),l!==e&&l&&(t.child.flags|=8192),Du(t,t.updateQueue),Ne(t),null);case 4:return we(),e===null&&vs(t.stateNode.containerInfo),Ne(t),null;case 10:return Ft(t.type),Ne(t),null;case 19:if(U(He),a=t.memoizedState,a===null)return Ne(t),null;if(n=(t.flags&128)!==0,u=a.rendering,u===null)if(n)gn(a,!1);else{if(Ue!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(u=bu(e),u!==null){for(t.flags|=128,gn(a,!1),e=u.updateQueue,t.updateQueue=e,Du(t,e),t.subtreeFlags=0,e=l,l=t.child;l!==null;)uf(l,e),l=l.sibling;return V(He,He.current&1|2),de&&$t(t,a.treeForkCount),t.child}e=e.sibling}a.tail!==null&&ft()>Lu&&(t.flags|=128,n=!0,gn(a,!1),t.lanes=4194304)}else{if(!n)if(e=bu(u),e!==null){if(t.flags|=128,n=!0,e=e.updateQueue,t.updateQueue=e,Du(t,e),gn(a,!0),a.tail===null&&a.tailMode==="hidden"&&!u.alternate&&!de)return Ne(t),null}else 2*ft()-a.renderingStartTime>Lu&&l!==536870912&&(t.flags|=128,n=!0,gn(a,!1),t.lanes=4194304);a.isBackwards?(u.sibling=t.child,t.child=u):(e=a.last,e!==null?e.sibling=u:t.child=u,a.last=u)}return a.tail!==null?(e=a.tail,a.rendering=e,a.tail=e.sibling,a.renderingStartTime=ft(),e.sibling=null,l=He.current,V(He,n?l&1|2:l&1),de&&$t(t,a.treeForkCount),e):(Ne(t),null);case 22:case 23:return yt(t),yc(),a=t.memoizedState!==null,e!==null?e.memoizedState!==null!==a&&(t.flags|=8192):a&&(t.flags|=8192),a?(l&536870912)!==0&&(t.flags&128)===0&&(Ne(t),t.subtreeFlags&6&&(t.flags|=8192)):Ne(t),l=t.updateQueue,l!==null&&Du(t,l.retryQueue),l=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(l=e.memoizedState.cachePool.pool),a=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(a=t.memoizedState.cachePool.pool),a!==l&&(t.flags|=2048),e!==null&&U(Kl),null;case 24:return l=null,e!==null&&(l=e.memoizedState.cache),t.memoizedState.cache!==l&&(t.flags|=2048),Ft(qe),Ne(t),null;case 25:return null;case 30:return null}throw Error(r(156,t.tag))}function Sv(e,t){switch(tc(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Ft(qe),we(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return Vn(t),null;case 31:if(t.memoizedState!==null){if(yt(t),t.alternate===null)throw Error(r(340));Vl()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(yt(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(r(340));Vl()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return U(He),null;case 4:return we(),null;case 10:return Ft(t.type),null;case 22:case 23:return yt(t),yc(),e!==null&&U(Kl),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return Ft(qe),null;case 25:return null;default:return null}}function Uo(e,t){switch(tc(t),t.tag){case 3:Ft(qe),we();break;case 26:case 27:case 5:Vn(t);break;case 4:we();break;case 31:t.memoizedState!==null&&yt(t);break;case 13:yt(t);break;case 19:U(He);break;case 10:Ft(t.type);break;case 22:case 23:yt(t),yc(),e!==null&&U(Kl);break;case 24:Ft(qe)}}function Sn(e,t){try{var l=t.updateQueue,a=l!==null?l.lastEffect:null;if(a!==null){var n=a.next;l=n;do{if((l.tag&e)===e){a=void 0;var u=l.create,c=l.inst;a=u(),c.destroy=a}l=l.next}while(l!==n)}}catch(d){be(t,t.return,d)}}function jl(e,t,l){try{var a=t.updateQueue,n=a!==null?a.lastEffect:null;if(n!==null){var u=n.next;a=u;do{if((a.tag&e)===e){var c=a.inst,d=c.destroy;if(d!==void 0){c.destroy=void 0,n=t;var p=l,z=d;try{z()}catch(C){be(n,p,C)}}}a=a.next}while(a!==u)}}catch(C){be(t,t.return,C)}}function wo(e){var t=e.updateQueue;if(t!==null){var l=e.stateNode;try{Tf(t,l)}catch(a){be(e,e.return,a)}}}function Ho(e,t,l){l.props=Il(e.type,e.memoizedProps),l.state=e.memoizedState;try{l.componentWillUnmount()}catch(a){be(e,t,a)}}function bn(e,t){try{var l=e.ref;if(l!==null){switch(e.tag){case 26:case 27:case 5:var a=e.stateNode;break;case 30:a=e.stateNode;break;default:a=e.stateNode}typeof l=="function"?e.refCleanup=l(a):l.current=a}}catch(n){be(e,t,n)}}function Xt(e,t){var l=e.ref,a=e.refCleanup;if(l!==null)if(typeof a=="function")try{a()}catch(n){be(e,t,n)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof l=="function")try{l(null)}catch(n){be(e,t,n)}else l.current=null}function Bo(e){var t=e.type,l=e.memoizedProps,a=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":l.autoFocus&&a.focus();break e;case"img":l.src?a.src=l.src:l.srcSet&&(a.srcset=l.srcSet)}}catch(n){be(e,e.return,n)}}function Jc(e,t,l){try{var a=e.stateNode;Gv(a,e.type,l,t),a[at]=t}catch(n){be(e,e.return,n)}}function Lo(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&Cl(e.type)||e.tag===4}function $c(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Lo(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.tag===27&&Cl(e.type)||e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Wc(e,t,l){var a=e.tag;if(a===5||a===6)e=e.stateNode,t?(l.nodeType===9?l.body:l.nodeName==="HTML"?l.ownerDocument.body:l).insertBefore(e,t):(t=l.nodeType===9?l.body:l.nodeName==="HTML"?l.ownerDocument.body:l,t.appendChild(e),l=l._reactRootContainer,l!=null||t.onclick!==null||(t.onclick=kt));else if(a!==4&&(a===27&&Cl(e.type)&&(l=e.stateNode,t=null),e=e.child,e!==null))for(Wc(e,t,l),e=e.sibling;e!==null;)Wc(e,t,l),e=e.sibling}function Uu(e,t,l){var a=e.tag;if(a===5||a===6)e=e.stateNode,t?l.insertBefore(e,t):l.appendChild(e);else if(a!==4&&(a===27&&Cl(e.type)&&(l=e.stateNode),e=e.child,e!==null))for(Uu(e,t,l),e=e.sibling;e!==null;)Uu(e,t,l),e=e.sibling}function qo(e){var t=e.stateNode,l=e.memoizedProps;try{for(var a=e.type,n=t.attributes;n.length;)t.removeAttributeNode(n[0]);Fe(t,a,l),t[Ke]=e,t[at]=l}catch(u){be(e,e.return,u)}}var ll=!1,Xe=!1,Fc=!1,Yo=typeof WeakSet=="function"?WeakSet:Set,ke=null;function bv(e,t){if(e=e.containerInfo,gs=ti,e=Wr(e),Vi(e)){if("selectionStart"in e)var l={start:e.selectionStart,end:e.selectionEnd};else e:{l=(l=e.ownerDocument)&&l.defaultView||window;var a=l.getSelection&&l.getSelection();if(a&&a.rangeCount!==0){l=a.anchorNode;var n=a.anchorOffset,u=a.focusNode;a=a.focusOffset;try{l.nodeType,u.nodeType}catch{l=null;break e}var c=0,d=-1,p=-1,z=0,C=0,D=e,R=null;t:for(;;){for(var N;D!==l||n!==0&&D.nodeType!==3||(d=c+n),D!==u||a!==0&&D.nodeType!==3||(p=c+a),D.nodeType===3&&(c+=D.nodeValue.length),(N=D.firstChild)!==null;)R=D,D=N;for(;;){if(D===e)break t;if(R===l&&++z===n&&(d=c),R===u&&++C===a&&(p=c),(N=D.nextSibling)!==null)break;D=R,R=D.parentNode}D=N}l=d===-1||p===-1?null:{start:d,end:p}}else l=null}l=l||{start:0,end:0}}else l=null;for(Ss={focusedElem:e,selectionRange:l},ti=!1,ke=t;ke!==null;)if(t=ke,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,ke=e;else for(;ke!==null;){switch(t=ke,u=t.alternate,e=t.flags,t.tag){case 0:if((e&4)!==0&&(e=t.updateQueue,e=e!==null?e.events:null,e!==null))for(l=0;l<e.length;l++)n=e[l],n.ref.impl=n.nextImpl;break;case 11:case 15:break;case 1:if((e&1024)!==0&&u!==null){e=void 0,l=t,n=u.memoizedProps,u=u.memoizedState,a=l.stateNode;try{var k=Il(l.type,n);e=a.getSnapshotBeforeUpdate(k,u),a.__reactInternalSnapshotBeforeUpdate=e}catch(F){be(l,l.return,F)}}break;case 3:if((e&1024)!==0){if(e=t.stateNode.containerInfo,l=e.nodeType,l===9)Es(e);else if(l===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":Es(e);break;default:e.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((e&1024)!==0)throw Error(r(163))}if(e=t.sibling,e!==null){e.return=t.return,ke=e;break}ke=t.return}}function Go(e,t,l){var a=l.flags;switch(l.tag){case 0:case 11:case 15:nl(e,l),a&4&&Sn(5,l);break;case 1:if(nl(e,l),a&4)if(e=l.stateNode,t===null)try{e.componentDidMount()}catch(c){be(l,l.return,c)}else{var n=Il(l.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(n,t,e.__reactInternalSnapshotBeforeUpdate)}catch(c){be(l,l.return,c)}}a&64&&wo(l),a&512&&bn(l,l.return);break;case 3:if(nl(e,l),a&64&&(e=l.updateQueue,e!==null)){if(t=null,l.child!==null)switch(l.child.tag){case 27:case 5:t=l.child.stateNode;break;case 1:t=l.child.stateNode}try{Tf(e,t)}catch(c){be(l,l.return,c)}}break;case 27:t===null&&a&4&&qo(l);case 26:case 5:nl(e,l),t===null&&a&4&&Bo(l),a&512&&bn(l,l.return);break;case 12:nl(e,l);break;case 31:nl(e,l),a&4&&Vo(e,l);break;case 13:nl(e,l),a&4&&Zo(e,l),a&64&&(e=l.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(l=Nv.bind(null,l),$v(e,l))));break;case 22:if(a=l.memoizedState!==null||ll,!a){t=t!==null&&t.memoizedState!==null||Xe,n=ll;var u=Xe;ll=a,(Xe=t)&&!u?ul(e,l,(l.subtreeFlags&8772)!==0):nl(e,l),ll=n,Xe=u}break;case 30:break;default:nl(e,l)}}function Xo(e){var t=e.alternate;t!==null&&(e.alternate=null,Xo(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&zi(t)),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}var Ce=null,ut=!1;function al(e,t,l){for(l=l.child;l!==null;)Qo(e,t,l),l=l.sibling}function Qo(e,t,l){if(ot&&typeof ot.onCommitFiberUnmount=="function")try{ot.onCommitFiberUnmount(Qa,l)}catch{}switch(l.tag){case 26:Xe||Xt(l,t),al(e,t,l),l.memoizedState?l.memoizedState.count--:l.stateNode&&(l=l.stateNode,l.parentNode.removeChild(l));break;case 27:Xe||Xt(l,t);var a=Ce,n=ut;Cl(l.type)&&(Ce=l.stateNode,ut=!1),al(e,t,l),Nn(l.stateNode),Ce=a,ut=n;break;case 5:Xe||Xt(l,t);case 6:if(a=Ce,n=ut,Ce=null,al(e,t,l),Ce=a,ut=n,Ce!==null)if(ut)try{(Ce.nodeType===9?Ce.body:Ce.nodeName==="HTML"?Ce.ownerDocument.body:Ce).removeChild(l.stateNode)}catch(u){be(l,t,u)}else try{Ce.removeChild(l.stateNode)}catch(u){be(l,t,u)}break;case 18:Ce!==null&&(ut?(e=Ce,wd(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,l.stateNode),La(e)):wd(Ce,l.stateNode));break;case 4:a=Ce,n=ut,Ce=l.stateNode.containerInfo,ut=!0,al(e,t,l),Ce=a,ut=n;break;case 0:case 11:case 14:case 15:jl(2,l,t),Xe||jl(4,l,t),al(e,t,l);break;case 1:Xe||(Xt(l,t),a=l.stateNode,typeof a.componentWillUnmount=="function"&&Ho(l,t,a)),al(e,t,l);break;case 21:al(e,t,l);break;case 22:Xe=(a=Xe)||l.memoizedState!==null,al(e,t,l),Xe=a;break;default:al(e,t,l)}}function Vo(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{La(e)}catch(l){be(t,t.return,l)}}}function Zo(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{La(e)}catch(l){be(t,t.return,l)}}function xv(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new Yo),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new Yo),t;default:throw Error(r(435,e.tag))}}function wu(e,t){var l=xv(e);t.forEach(function(a){if(!l.has(a)){l.add(a);var n=Cv.bind(null,e,a);a.then(n,n)}})}function it(e,t){var l=t.deletions;if(l!==null)for(var a=0;a<l.length;a++){var n=l[a],u=e,c=t,d=c;e:for(;d!==null;){switch(d.tag){case 27:if(Cl(d.type)){Ce=d.stateNode,ut=!1;break e}break;case 5:Ce=d.stateNode,ut=!1;break e;case 3:case 4:Ce=d.stateNode.containerInfo,ut=!0;break e}d=d.return}if(Ce===null)throw Error(r(160));Qo(u,c,n),Ce=null,ut=!1,u=n.alternate,u!==null&&(u.return=null),n.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)ko(t,e),t=t.sibling}var Ut=null;function ko(e,t){var l=e.alternate,a=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:it(t,e),ct(e),a&4&&(jl(3,e,e.return),Sn(3,e),jl(5,e,e.return));break;case 1:it(t,e),ct(e),a&512&&(Xe||l===null||Xt(l,l.return)),a&64&&ll&&(e=e.updateQueue,e!==null&&(a=e.callbacks,a!==null&&(l=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=l===null?a:l.concat(a))));break;case 26:var n=Ut;if(it(t,e),ct(e),a&512&&(Xe||l===null||Xt(l,l.return)),a&4){var u=l!==null?l.memoizedState:null;if(a=e.memoizedState,l===null)if(a===null)if(e.stateNode===null){e:{a=e.type,l=e.memoizedProps,n=n.ownerDocument||n;t:switch(a){case"title":u=n.getElementsByTagName("title")[0],(!u||u[ka]||u[Ke]||u.namespaceURI==="http://www.w3.org/2000/svg"||u.hasAttribute("itemprop"))&&(u=n.createElement(a),n.head.insertBefore(u,n.querySelector("head > title"))),Fe(u,a,l),u[Ke]=e,Ze(u),a=u;break e;case"link":var c=kd("link","href",n).get(a+(l.href||""));if(c){for(var d=0;d<c.length;d++)if(u=c[d],u.getAttribute("href")===(l.href==null||l.href===""?null:l.href)&&u.getAttribute("rel")===(l.rel==null?null:l.rel)&&u.getAttribute("title")===(l.title==null?null:l.title)&&u.getAttribute("crossorigin")===(l.crossOrigin==null?null:l.crossOrigin)){c.splice(d,1);break t}}u=n.createElement(a),Fe(u,a,l),n.head.appendChild(u);break;case"meta":if(c=kd("meta","content",n).get(a+(l.content||""))){for(d=0;d<c.length;d++)if(u=c[d],u.getAttribute("content")===(l.content==null?null:""+l.content)&&u.getAttribute("name")===(l.name==null?null:l.name)&&u.getAttribute("property")===(l.property==null?null:l.property)&&u.getAttribute("http-equiv")===(l.httpEquiv==null?null:l.httpEquiv)&&u.getAttribute("charset")===(l.charSet==null?null:l.charSet)){c.splice(d,1);break t}}u=n.createElement(a),Fe(u,a,l),n.head.appendChild(u);break;default:throw Error(r(468,a))}u[Ke]=e,Ze(u),a=u}e.stateNode=a}else Kd(n,e.type,e.stateNode);else e.stateNode=Zd(n,a,e.memoizedProps);else u!==a?(u===null?l.stateNode!==null&&(l=l.stateNode,l.parentNode.removeChild(l)):u.count--,a===null?Kd(n,e.type,e.stateNode):Zd(n,a,e.memoizedProps)):a===null&&e.stateNode!==null&&Jc(e,e.memoizedProps,l.memoizedProps)}break;case 27:it(t,e),ct(e),a&512&&(Xe||l===null||Xt(l,l.return)),l!==null&&a&4&&Jc(e,e.memoizedProps,l.memoizedProps);break;case 5:if(it(t,e),ct(e),a&512&&(Xe||l===null||Xt(l,l.return)),e.flags&32){n=e.stateNode;try{ca(n,"")}catch(k){be(e,e.return,k)}}a&4&&e.stateNode!=null&&(n=e.memoizedProps,Jc(e,n,l!==null?l.memoizedProps:n)),a&1024&&(Fc=!0);break;case 6:if(it(t,e),ct(e),a&4){if(e.stateNode===null)throw Error(r(162));a=e.memoizedProps,l=e.stateNode;try{l.nodeValue=a}catch(k){be(e,e.return,k)}}break;case 3:if(Fu=null,n=Ut,Ut=$u(t.containerInfo),it(t,e),Ut=n,ct(e),a&4&&l!==null&&l.memoizedState.isDehydrated)try{La(t.containerInfo)}catch(k){be(e,e.return,k)}Fc&&(Fc=!1,Ko(e));break;case 4:a=Ut,Ut=$u(e.stateNode.containerInfo),it(t,e),ct(e),Ut=a;break;case 12:it(t,e),ct(e);break;case 31:it(t,e),ct(e),a&4&&(a=e.updateQueue,a!==null&&(e.updateQueue=null,wu(e,a)));break;case 13:it(t,e),ct(e),e.child.flags&8192&&e.memoizedState!==null!=(l!==null&&l.memoizedState!==null)&&(Bu=ft()),a&4&&(a=e.updateQueue,a!==null&&(e.updateQueue=null,wu(e,a)));break;case 22:n=e.memoizedState!==null;var p=l!==null&&l.memoizedState!==null,z=ll,C=Xe;if(ll=z||n,Xe=C||p,it(t,e),Xe=C,ll=z,ct(e),a&8192)e:for(t=e.stateNode,t._visibility=n?t._visibility&-2:t._visibility|1,n&&(l===null||p||ll||Xe||Pl(e)),l=null,t=e;;){if(t.tag===5||t.tag===26){if(l===null){p=l=t;try{if(u=p.stateNode,n)c=u.style,typeof c.setProperty=="function"?c.setProperty("display","none","important"):c.display="none";else{d=p.stateNode;var D=p.memoizedProps.style,R=D!=null&&D.hasOwnProperty("display")?D.display:null;d.style.display=R==null||typeof R=="boolean"?"":(""+R).trim()}}catch(k){be(p,p.return,k)}}}else if(t.tag===6){if(l===null){p=t;try{p.stateNode.nodeValue=n?"":p.memoizedProps}catch(k){be(p,p.return,k)}}}else if(t.tag===18){if(l===null){p=t;try{var N=p.stateNode;n?Hd(N,!0):Hd(p.stateNode,!1)}catch(k){be(p,p.return,k)}}}else if((t.tag!==22&&t.tag!==23||t.memoizedState===null||t===e)&&t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break e;for(;t.sibling===null;){if(t.return===null||t.return===e)break e;l===t&&(l=null),t=t.return}l===t&&(l=null),t.sibling.return=t.return,t=t.sibling}a&4&&(a=e.updateQueue,a!==null&&(l=a.retryQueue,l!==null&&(a.retryQueue=null,wu(e,l))));break;case 19:it(t,e),ct(e),a&4&&(a=e.updateQueue,a!==null&&(e.updateQueue=null,wu(e,a)));break;case 30:break;case 21:break;default:it(t,e),ct(e)}}function ct(e){var t=e.flags;if(t&2){try{for(var l,a=e.return;a!==null;){if(Lo(a)){l=a;break}a=a.return}if(l==null)throw Error(r(160));switch(l.tag){case 27:var n=l.stateNode,u=$c(e);Uu(e,u,n);break;case 5:var c=l.stateNode;l.flags&32&&(ca(c,""),l.flags&=-33);var d=$c(e);Uu(e,d,c);break;case 3:case 4:var p=l.stateNode.containerInfo,z=$c(e);Wc(e,z,p);break;default:throw Error(r(161))}}catch(C){be(e,e.return,C)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function Ko(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;Ko(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function nl(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)Go(e,t.alternate,t),t=t.sibling}function Pl(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:jl(4,t,t.return),Pl(t);break;case 1:Xt(t,t.return);var l=t.stateNode;typeof l.componentWillUnmount=="function"&&Ho(t,t.return,l),Pl(t);break;case 27:Nn(t.stateNode);case 26:case 5:Xt(t,t.return),Pl(t);break;case 22:t.memoizedState===null&&Pl(t);break;case 30:Pl(t);break;default:Pl(t)}e=e.sibling}}function ul(e,t,l){for(l=l&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;){var a=t.alternate,n=e,u=t,c=u.flags;switch(u.tag){case 0:case 11:case 15:ul(n,u,l),Sn(4,u);break;case 1:if(ul(n,u,l),a=u,n=a.stateNode,typeof n.componentDidMount=="function")try{n.componentDidMount()}catch(z){be(a,a.return,z)}if(a=u,n=a.updateQueue,n!==null){var d=a.stateNode;try{var p=n.shared.hiddenCallbacks;if(p!==null)for(n.shared.hiddenCallbacks=null,n=0;n<p.length;n++)jf(p[n],d)}catch(z){be(a,a.return,z)}}l&&c&64&&wo(u),bn(u,u.return);break;case 27:qo(u);case 26:case 5:ul(n,u,l),l&&a===null&&c&4&&Bo(u),bn(u,u.return);break;case 12:ul(n,u,l);break;case 31:ul(n,u,l),l&&c&4&&Vo(n,u);break;case 13:ul(n,u,l),l&&c&4&&Zo(n,u);break;case 22:u.memoizedState===null&&ul(n,u,l),bn(u,u.return);break;case 30:break;default:ul(n,u,l)}t=t.sibling}}function Ic(e,t){var l=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(l=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==l&&(e!=null&&e.refCount++,l!=null&&un(l))}function Pc(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&un(e))}function wt(e,t,l,a){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)Jo(e,t,l,a),t=t.sibling}function Jo(e,t,l,a){var n=t.flags;switch(t.tag){case 0:case 11:case 15:wt(e,t,l,a),n&2048&&Sn(9,t);break;case 1:wt(e,t,l,a);break;case 3:wt(e,t,l,a),n&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&un(e)));break;case 12:if(n&2048){wt(e,t,l,a),e=t.stateNode;try{var u=t.memoizedProps,c=u.id,d=u.onPostCommit;typeof d=="function"&&d(c,t.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(p){be(t,t.return,p)}}else wt(e,t,l,a);break;case 31:wt(e,t,l,a);break;case 13:wt(e,t,l,a);break;case 23:break;case 22:u=t.stateNode,c=t.alternate,t.memoizedState!==null?u._visibility&2?wt(e,t,l,a):xn(e,t):u._visibility&2?wt(e,t,l,a):(u._visibility|=2,za(e,t,l,a,(t.subtreeFlags&10256)!==0||!1)),n&2048&&Ic(c,t);break;case 24:wt(e,t,l,a),n&2048&&Pc(t.alternate,t);break;default:wt(e,t,l,a)}}function za(e,t,l,a,n){for(n=n&&((t.subtreeFlags&10256)!==0||!1),t=t.child;t!==null;){var u=e,c=t,d=l,p=a,z=c.flags;switch(c.tag){case 0:case 11:case 15:za(u,c,d,p,n),Sn(8,c);break;case 23:break;case 22:var C=c.stateNode;c.memoizedState!==null?C._visibility&2?za(u,c,d,p,n):xn(u,c):(C._visibility|=2,za(u,c,d,p,n)),n&&z&2048&&Ic(c.alternate,c);break;case 24:za(u,c,d,p,n),n&&z&2048&&Pc(c.alternate,c);break;default:za(u,c,d,p,n)}t=t.sibling}}function xn(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var l=e,a=t,n=a.flags;switch(a.tag){case 22:xn(l,a),n&2048&&Ic(a.alternate,a);break;case 24:xn(l,a),n&2048&&Pc(a.alternate,a);break;default:xn(l,a)}t=t.sibling}}var En=8192;function Ra(e,t,l){if(e.subtreeFlags&En)for(e=e.child;e!==null;)$o(e,t,l),e=e.sibling}function $o(e,t,l){switch(e.tag){case 26:Ra(e,t,l),e.flags&En&&e.memoizedState!==null&&cy(l,Ut,e.memoizedState,e.memoizedProps);break;case 5:Ra(e,t,l);break;case 3:case 4:var a=Ut;Ut=$u(e.stateNode.containerInfo),Ra(e,t,l),Ut=a;break;case 22:e.memoizedState===null&&(a=e.alternate,a!==null&&a.memoizedState!==null?(a=En,En=16777216,Ra(e,t,l),En=a):Ra(e,t,l));break;default:Ra(e,t,l)}}function Wo(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 jn(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var l=0;l<t.length;l++){var a=t[l];ke=a,Io(a,e)}Wo(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)Fo(e),e=e.sibling}function Fo(e){switch(e.tag){case 0:case 11:case 15:jn(e),e.flags&2048&&jl(9,e,e.return);break;case 3:jn(e);break;case 12:jn(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,Hu(e)):jn(e);break;default:jn(e)}}function Hu(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var l=0;l<t.length;l++){var a=t[l];ke=a,Io(a,e)}Wo(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:jl(8,t,t.return),Hu(t);break;case 22:l=t.stateNode,l._visibility&2&&(l._visibility&=-3,Hu(t));break;default:Hu(t)}e=e.sibling}}function Io(e,t){for(;ke!==null;){var l=ke;switch(l.tag){case 0:case 11:case 15:jl(8,l,t);break;case 23:case 22:if(l.memoizedState!==null&&l.memoizedState.cachePool!==null){var a=l.memoizedState.cachePool.pool;a!=null&&a.refCount++}break;case 24:un(l.memoizedState.cache)}if(a=l.child,a!==null)a.return=l,ke=a;else e:for(l=e;ke!==null;){a=ke;var n=a.sibling,u=a.return;if(Xo(a),a===l){ke=null;break e}if(n!==null){n.return=u,ke=n;break e}ke=u}}}var Ev={getCacheForType:function(e){var t=$e(qe),l=t.data.get(e);return l===void 0&&(l=e(),t.data.set(e,l)),l},cacheSignal:function(){return $e(qe).controller.signal}},jv=typeof WeakMap=="function"?WeakMap:Map,pe=0,ze=null,ce=null,re=0,Se=0,pt=null,Tl=!1,Na=!1,es=!1,il=0,Ue=0,_l=0,ea=0,ts=0,gt=0,Ca=0,Tn=null,st=null,ls=!1,Bu=0,Po=0,Lu=1/0,qu=null,Al=null,Qe=0,zl=null,Oa=null,cl=0,as=0,ns=null,ed=null,_n=0,us=null;function St(){return(pe&2)!==0&&re!==0?re&-re:O.T!==null?os():mr()}function td(){if(gt===0)if((re&536870912)===0||de){var e=Kn;Kn<<=1,(Kn&3932160)===0&&(Kn=262144),gt=e}else gt=536870912;return e=vt.current,e!==null&&(e.flags|=32),gt}function rt(e,t,l){(e===ze&&(Se===2||Se===9)||e.cancelPendingCommit!==null)&&(Ma(e,0),Rl(e,re,gt,!1)),Za(e,l),((pe&2)===0||e!==ze)&&(e===ze&&((pe&2)===0&&(ea|=l),Ue===4&&Rl(e,re,gt,!1)),Qt(e))}function ld(e,t,l){if((pe&6)!==0)throw Error(r(327));var a=!l&&(t&127)===0&&(t&e.expiredLanes)===0||Va(e,t),n=a?Av(e,t):cs(e,t,!0),u=a;do{if(n===0){Na&&!a&&Rl(e,t,0,!1);break}else{if(l=e.current.alternate,u&&!Tv(l)){n=cs(e,t,!1),u=!1;continue}if(n===2){if(u=t,e.errorRecoveryDisabledLanes&u)var c=0;else c=e.pendingLanes&-536870913,c=c!==0?c:c&536870912?536870912:0;if(c!==0){t=c;e:{var d=e;n=Tn;var p=d.current.memoizedState.isDehydrated;if(p&&(Ma(d,c).flags|=256),c=cs(d,c,!1),c!==2){if(es&&!p){d.errorRecoveryDisabledLanes|=u,ea|=u,n=4;break e}u=st,st=n,u!==null&&(st===null?st=u:st.push.apply(st,u))}n=c}if(u=!1,n!==2)continue}}if(n===1){Ma(e,0),Rl(e,t,0,!0);break}e:{switch(a=e,u=n,u){case 0:case 1:throw Error(r(345));case 4:if((t&4194048)!==t)break;case 6:Rl(a,t,gt,!Tl);break e;case 2:st=null;break;case 3:case 5:break;default:throw Error(r(329))}if((t&62914560)===t&&(n=Bu+300-ft(),10<n)){if(Rl(a,t,gt,!Tl),$n(a,0,!0)!==0)break e;cl=t,a.timeoutHandle=Dd(ad.bind(null,a,l,st,qu,ls,t,gt,ea,Ca,Tl,u,"Throttled",-0,0),n);break e}ad(a,l,st,qu,ls,t,gt,ea,Ca,Tl,u,null,-0,0)}}break}while(!0);Qt(e)}function ad(e,t,l,a,n,u,c,d,p,z,C,D,R,N){if(e.timeoutHandle=-1,D=t.subtreeFlags,D&8192||(D&16785408)===16785408){D={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:kt},$o(t,u,D);var k=(u&62914560)===u?Bu-ft():(u&4194048)===u?Po-ft():0;if(k=sy(D,k),k!==null){cl=u,e.cancelPendingCommit=k(od.bind(null,e,t,u,l,a,n,c,d,p,C,D,null,R,N)),Rl(e,u,c,!z);return}}od(e,t,u,l,a,n,c,d,p)}function Tv(e){for(var t=e;;){var l=t.tag;if((l===0||l===11||l===15)&&t.flags&16384&&(l=t.updateQueue,l!==null&&(l=l.stores,l!==null)))for(var a=0;a<l.length;a++){var n=l[a],u=n.getSnapshot;n=n.value;try{if(!ht(u(),n))return!1}catch{return!1}}if(l=t.child,t.subtreeFlags&16384&&l!==null)l.return=t,t=l;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function Rl(e,t,l,a){t&=~ts,t&=~ea,e.suspendedLanes|=t,e.pingedLanes&=~t,a&&(e.warmLanes|=t),a=e.expirationTimes;for(var n=t;0<n;){var u=31-dt(n),c=1<<u;a[u]=-1,n&=~c}l!==0&&or(e,l,t)}function Yu(){return(pe&6)===0?(An(0),!1):!0}function is(){if(ce!==null){if(Se===0)var e=ce.return;else e=ce,Wt=Zl=null,Ec(e),Ea=null,sn=0,e=ce;for(;e!==null;)Uo(e.alternate,e),e=e.return;ce=null}}function Ma(e,t){var l=e.timeoutHandle;l!==-1&&(e.timeoutHandle=-1,Vv(l)),l=e.cancelPendingCommit,l!==null&&(e.cancelPendingCommit=null,l()),cl=0,is(),ze=e,ce=l=Jt(e.current,null),re=t,Se=0,pt=null,Tl=!1,Na=Va(e,t),es=!1,Ca=gt=ts=ea=_l=Ue=0,st=Tn=null,ls=!1,(t&8)!==0&&(t|=t&32);var a=e.entangledLanes;if(a!==0)for(e=e.entanglements,a&=t;0<a;){var n=31-dt(a),u=1<<n;t|=e[n],a&=~u}return il=t,cu(),l}function nd(e,t){ae=null,O.H=yn,t===xa||t===vu?(t=Sf(),Se=3):t===fc?(t=Sf(),Se=4):Se=t===Lc?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,pt=t,ce===null&&(Ue=1,Nu(e,Tt(t,e.current)))}function ud(){var e=vt.current;return e===null?!0:(re&4194048)===re?Rt===null:(re&62914560)===re||(re&536870912)!==0?e===Rt:!1}function id(){var e=O.H;return O.H=yn,e===null?yn:e}function cd(){var e=O.A;return O.A=Ev,e}function Gu(){Ue=4,Tl||(re&4194048)!==re&&vt.current!==null||(Na=!0),(_l&134217727)===0&&(ea&134217727)===0||ze===null||Rl(ze,re,gt,!1)}function cs(e,t,l){var a=pe;pe|=2;var n=id(),u=cd();(ze!==e||re!==t)&&(qu=null,Ma(e,t)),t=!1;var c=Ue;e:do try{if(Se!==0&&ce!==null){var d=ce,p=pt;switch(Se){case 8:is(),c=6;break e;case 3:case 2:case 9:case 6:vt.current===null&&(t=!0);var z=Se;if(Se=0,pt=null,Da(e,d,p,z),l&&Na){c=0;break e}break;default:z=Se,Se=0,pt=null,Da(e,d,p,z)}}_v(),c=Ue;break}catch(C){nd(e,C)}while(!0);return t&&e.shellSuspendCounter++,Wt=Zl=null,pe=a,O.H=n,O.A=u,ce===null&&(ze=null,re=0,cu()),c}function _v(){for(;ce!==null;)sd(ce)}function Av(e,t){var l=pe;pe|=2;var a=id(),n=cd();ze!==e||re!==t?(qu=null,Lu=ft()+500,Ma(e,t)):Na=Va(e,t);e:do try{if(Se!==0&&ce!==null){t=ce;var u=pt;t:switch(Se){case 1:Se=0,pt=null,Da(e,t,u,1);break;case 2:case 9:if(pf(u)){Se=0,pt=null,rd(t);break}t=function(){Se!==2&&Se!==9||ze!==e||(Se=7),Qt(e)},u.then(t,t);break e;case 3:Se=7;break e;case 4:Se=5;break e;case 7:pf(u)?(Se=0,pt=null,rd(t)):(Se=0,pt=null,Da(e,t,u,7));break;case 5:var c=null;switch(ce.tag){case 26:c=ce.memoizedState;case 5:case 27:var d=ce;if(c?Jd(c):d.stateNode.complete){Se=0,pt=null;var p=d.sibling;if(p!==null)ce=p;else{var z=d.return;z!==null?(ce=z,Xu(z)):ce=null}break t}}Se=0,pt=null,Da(e,t,u,5);break;case 6:Se=0,pt=null,Da(e,t,u,6);break;case 8:is(),Ue=6;break e;default:throw Error(r(462))}}zv();break}catch(C){nd(e,C)}while(!0);return Wt=Zl=null,O.H=a,O.A=n,pe=l,ce!==null?0:(ze=null,re=0,cu(),Ue)}function zv(){for(;ce!==null&&!Wh();)sd(ce)}function sd(e){var t=Mo(e.alternate,e,il);e.memoizedProps=e.pendingProps,t===null?Xu(e):ce=t}function rd(e){var t=e,l=t.alternate;switch(t.tag){case 15:case 0:t=Ao(l,t,t.pendingProps,t.type,void 0,re);break;case 11:t=Ao(l,t,t.pendingProps,t.type.render,t.ref,re);break;case 5:Ec(t);default:Uo(l,t),t=ce=uf(t,il),t=Mo(l,t,il)}e.memoizedProps=e.pendingProps,t===null?Xu(e):ce=t}function Da(e,t,l,a){Wt=Zl=null,Ec(t),Ea=null,sn=0;var n=t.return;try{if(vv(e,n,t,l,re)){Ue=1,Nu(e,Tt(l,e.current)),ce=null;return}}catch(u){if(n!==null)throw ce=n,u;Ue=1,Nu(e,Tt(l,e.current)),ce=null;return}t.flags&32768?(de||a===1?e=!0:Na||(re&536870912)!==0?e=!1:(Tl=e=!0,(a===2||a===9||a===3||a===6)&&(a=vt.current,a!==null&&a.tag===13&&(a.flags|=16384))),fd(t,e)):Xu(t)}function Xu(e){var t=e;do{if((t.flags&32768)!==0){fd(t,Tl);return}e=t.return;var l=gv(t.alternate,t,il);if(l!==null){ce=l;return}if(t=t.sibling,t!==null){ce=t;return}ce=t=e}while(t!==null);Ue===0&&(Ue=5)}function fd(e,t){do{var l=Sv(e.alternate,e);if(l!==null){l.flags&=32767,ce=l;return}if(l=e.return,l!==null&&(l.flags|=32768,l.subtreeFlags=0,l.deletions=null),!t&&(e=e.sibling,e!==null)){ce=e;return}ce=e=l}while(e!==null);Ue=6,ce=null}function od(e,t,l,a,n,u,c,d,p){e.cancelPendingCommit=null;do Qu();while(Qe!==0);if((pe&6)!==0)throw Error(r(327));if(t!==null){if(t===e.current)throw Error(r(177));if(u=t.lanes|t.childLanes,u|=$i,im(e,l,u,c,d,p),e===ze&&(ce=ze=null,re=0),Oa=t,zl=e,cl=l,as=u,ns=n,ed=a,(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,Ov(Zn,function(){return yd(),null})):(e.callbackNode=null,e.callbackPriority=0),a=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||a){a=O.T,O.T=null,n=X.p,X.p=2,c=pe,pe|=4;try{bv(e,t,l)}finally{pe=c,X.p=n,O.T=a}}Qe=1,dd(),hd(),md()}}function dd(){if(Qe===1){Qe=0;var e=zl,t=Oa,l=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||l){l=O.T,O.T=null;var a=X.p;X.p=2;var n=pe;pe|=4;try{ko(t,e);var u=Ss,c=Wr(e.containerInfo),d=u.focusedElem,p=u.selectionRange;if(c!==d&&d&&d.ownerDocument&&$r(d.ownerDocument.documentElement,d)){if(p!==null&&Vi(d)){var z=p.start,C=p.end;if(C===void 0&&(C=z),"selectionStart"in d)d.selectionStart=z,d.selectionEnd=Math.min(C,d.value.length);else{var D=d.ownerDocument||document,R=D&&D.defaultView||window;if(R.getSelection){var N=R.getSelection(),k=d.textContent.length,F=Math.min(p.start,k),_e=p.end===void 0?F:Math.min(p.end,k);!N.extend&&F>_e&&(c=_e,_e=F,F=c);var E=Jr(d,F),g=Jr(d,_e);if(E&&g&&(N.rangeCount!==1||N.anchorNode!==E.node||N.anchorOffset!==E.offset||N.focusNode!==g.node||N.focusOffset!==g.offset)){var A=D.createRange();A.setStart(E.node,E.offset),N.removeAllRanges(),F>_e?(N.addRange(A),N.extend(g.node,g.offset)):(A.setEnd(g.node,g.offset),N.addRange(A))}}}}for(D=[],N=d;N=N.parentNode;)N.nodeType===1&&D.push({element:N,left:N.scrollLeft,top:N.scrollTop});for(typeof d.focus=="function"&&d.focus(),d=0;d<D.length;d++){var M=D[d];M.element.scrollLeft=M.left,M.element.scrollTop=M.top}}ti=!!gs,Ss=gs=null}finally{pe=n,X.p=a,O.T=l}}e.current=t,Qe=2}}function hd(){if(Qe===2){Qe=0;var e=zl,t=Oa,l=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||l){l=O.T,O.T=null;var a=X.p;X.p=2;var n=pe;pe|=4;try{Go(e,t.alternate,t)}finally{pe=n,X.p=a,O.T=l}}Qe=3}}function md(){if(Qe===4||Qe===3){Qe=0,Fh();var e=zl,t=Oa,l=cl,a=ed;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?Qe=5:(Qe=0,Oa=zl=null,vd(e,e.pendingLanes));var n=e.pendingLanes;if(n===0&&(Al=null),_i(l),t=t.stateNode,ot&&typeof ot.onCommitFiberRoot=="function")try{ot.onCommitFiberRoot(Qa,t,void 0,(t.current.flags&128)===128)}catch{}if(a!==null){t=O.T,n=X.p,X.p=2,O.T=null;try{for(var u=e.onRecoverableError,c=0;c<a.length;c++){var d=a[c];u(d.value,{componentStack:d.stack})}}finally{O.T=t,X.p=n}}(cl&3)!==0&&Qu(),Qt(e),n=e.pendingLanes,(l&261930)!==0&&(n&42)!==0?e===us?_n++:(_n=0,us=e):_n=0,An(0)}}function vd(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,un(t)))}function Qu(){return dd(),hd(),md(),yd()}function yd(){if(Qe!==5)return!1;var e=zl,t=as;as=0;var l=_i(cl),a=O.T,n=X.p;try{X.p=32>l?32:l,O.T=null,l=ns,ns=null;var u=zl,c=cl;if(Qe=0,Oa=zl=null,cl=0,(pe&6)!==0)throw Error(r(331));var d=pe;if(pe|=4,Fo(u.current),Jo(u,u.current,c,l),pe=d,An(0,!1),ot&&typeof ot.onPostCommitFiberRoot=="function")try{ot.onPostCommitFiberRoot(Qa,u)}catch{}return!0}finally{X.p=n,O.T=a,vd(e,t)}}function pd(e,t,l){t=Tt(l,t),t=Bc(e.stateNode,t,2),e=bl(e,t,2),e!==null&&(Za(e,2),Qt(e))}function be(e,t,l){if(e.tag===3)pd(e,e,l);else for(;t!==null;){if(t.tag===3){pd(t,e,l);break}else if(t.tag===1){var a=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof a.componentDidCatch=="function"&&(Al===null||!Al.has(a))){e=Tt(l,e),l=go(2),a=bl(t,l,2),a!==null&&(So(l,a,t,e),Za(a,2),Qt(a));break}}t=t.return}}function ss(e,t,l){var a=e.pingCache;if(a===null){a=e.pingCache=new jv;var n=new Set;a.set(t,n)}else n=a.get(t),n===void 0&&(n=new Set,a.set(t,n));n.has(l)||(es=!0,n.add(l),e=Rv.bind(null,e,t,l),t.then(e,e))}function Rv(e,t,l){var a=e.pingCache;a!==null&&a.delete(t),e.pingedLanes|=e.suspendedLanes&l,e.warmLanes&=~l,ze===e&&(re&l)===l&&(Ue===4||Ue===3&&(re&62914560)===re&&300>ft()-Bu?(pe&2)===0&&Ma(e,0):ts|=l,Ca===re&&(Ca=0)),Qt(e)}function gd(e,t){t===0&&(t=fr()),e=Xl(e,t),e!==null&&(Za(e,t),Qt(e))}function Nv(e){var t=e.memoizedState,l=0;t!==null&&(l=t.retryLane),gd(e,l)}function Cv(e,t){var l=0;switch(e.tag){case 31:case 13:var a=e.stateNode,n=e.memoizedState;n!==null&&(l=n.retryLane);break;case 19:a=e.stateNode;break;case 22:a=e.stateNode._retryCache;break;default:throw Error(r(314))}a!==null&&a.delete(t),gd(e,l)}function Ov(e,t){return xi(e,t)}var Vu=null,Ua=null,rs=!1,Zu=!1,fs=!1,Nl=0;function Qt(e){e!==Ua&&e.next===null&&(Ua===null?Vu=Ua=e:Ua=Ua.next=e),Zu=!0,rs||(rs=!0,Dv())}function An(e,t){if(!fs&&Zu){fs=!0;do for(var l=!1,a=Vu;a!==null;){if(e!==0){var n=a.pendingLanes;if(n===0)var u=0;else{var c=a.suspendedLanes,d=a.pingedLanes;u=(1<<31-dt(42|e)+1)-1,u&=n&~(c&~d),u=u&201326741?u&201326741|1:u?u|2:0}u!==0&&(l=!0,Ed(a,u))}else u=re,u=$n(a,a===ze?u:0,a.cancelPendingCommit!==null||a.timeoutHandle!==-1),(u&3)===0||Va(a,u)||(l=!0,Ed(a,u));a=a.next}while(l);fs=!1}}function Mv(){Sd()}function Sd(){Zu=rs=!1;var e=0;Nl!==0&&Qv()&&(e=Nl);for(var t=ft(),l=null,a=Vu;a!==null;){var n=a.next,u=bd(a,t);u===0?(a.next=null,l===null?Vu=n:l.next=n,n===null&&(Ua=l)):(l=a,(e!==0||(u&3)!==0)&&(Zu=!0)),a=n}Qe!==0&&Qe!==5||An(e),Nl!==0&&(Nl=0)}function bd(e,t){for(var l=e.suspendedLanes,a=e.pingedLanes,n=e.expirationTimes,u=e.pendingLanes&-62914561;0<u;){var c=31-dt(u),d=1<<c,p=n[c];p===-1?((d&l)===0||(d&a)!==0)&&(n[c]=um(d,t)):p<=t&&(e.expiredLanes|=d),u&=~d}if(t=ze,l=re,l=$n(e,e===t?l:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),a=e.callbackNode,l===0||e===t&&(Se===2||Se===9)||e.cancelPendingCommit!==null)return a!==null&&a!==null&&Ei(a),e.callbackNode=null,e.callbackPriority=0;if((l&3)===0||Va(e,l)){if(t=l&-l,t===e.callbackPriority)return t;switch(a!==null&&Ei(a),_i(l)){case 2:case 8:l=sr;break;case 32:l=Zn;break;case 268435456:l=rr;break;default:l=Zn}return a=xd.bind(null,e),l=xi(l,a),e.callbackPriority=t,e.callbackNode=l,t}return a!==null&&a!==null&&Ei(a),e.callbackPriority=2,e.callbackNode=null,2}function xd(e,t){if(Qe!==0&&Qe!==5)return e.callbackNode=null,e.callbackPriority=0,null;var l=e.callbackNode;if(Qu()&&e.callbackNode!==l)return null;var a=re;return a=$n(e,e===ze?a:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),a===0?null:(ld(e,a,t),bd(e,ft()),e.callbackNode!=null&&e.callbackNode===l?xd.bind(null,e):null)}function Ed(e,t){if(Qu())return null;ld(e,t,!0)}function Dv(){Zv(function(){(pe&6)!==0?xi(cr,Mv):Sd()})}function os(){if(Nl===0){var e=Sa;e===0&&(e=kn,kn<<=1,(kn&261888)===0&&(kn=256)),Nl=e}return Nl}function jd(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:Pn(""+e)}function Td(e,t){var l=t.ownerDocument.createElement("input");return l.name=t.name,l.value=t.value,e.id&&l.setAttribute("form",e.id),t.parentNode.insertBefore(l,t),e=new FormData(e),l.parentNode.removeChild(l),e}function Uv(e,t,l,a,n){if(t==="submit"&&l&&l.stateNode===n){var u=jd((n[at]||null).action),c=a.submitter;c&&(t=(t=c[at]||null)?jd(t.formAction):c.getAttribute("formAction"),t!==null&&(u=t,c=null));var d=new au("action","action",null,a,n);e.push({event:d,listeners:[{instance:null,listener:function(){if(a.defaultPrevented){if(Nl!==0){var p=c?Td(n,c):new FormData(n);Oc(l,{pending:!0,data:p,method:n.method,action:u},null,p)}}else typeof u=="function"&&(d.preventDefault(),p=c?Td(n,c):new FormData(n),Oc(l,{pending:!0,data:p,method:n.method,action:u},u,p))},currentTarget:n}]})}}for(var ds=0;ds<Ji.length;ds++){var hs=Ji[ds],wv=hs.toLowerCase(),Hv=hs[0].toUpperCase()+hs.slice(1);Dt(wv,"on"+Hv)}Dt(Pr,"onAnimationEnd"),Dt(ef,"onAnimationIteration"),Dt(tf,"onAnimationStart"),Dt("dblclick","onDoubleClick"),Dt("focusin","onFocus"),Dt("focusout","onBlur"),Dt(Im,"onTransitionRun"),Dt(Pm,"onTransitionStart"),Dt(ev,"onTransitionCancel"),Dt(lf,"onTransitionEnd"),ua("onMouseEnter",["mouseout","mouseover"]),ua("onMouseLeave",["mouseout","mouseover"]),ua("onPointerEnter",["pointerout","pointerover"]),ua("onPointerLeave",["pointerout","pointerover"]),Ll("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Ll("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Ll("onBeforeInput",["compositionend","keypress","textInput","paste"]),Ll("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Ll("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Ll("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var zn="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),Bv=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(zn));function _d(e,t){t=(t&4)!==0;for(var l=0;l<e.length;l++){var a=e[l],n=a.event;a=a.listeners;e:{var u=void 0;if(t)for(var c=a.length-1;0<=c;c--){var d=a[c],p=d.instance,z=d.currentTarget;if(d=d.listener,p!==u&&n.isPropagationStopped())break e;u=d,n.currentTarget=z;try{u(n)}catch(C){iu(C)}n.currentTarget=null,u=p}else for(c=0;c<a.length;c++){if(d=a[c],p=d.instance,z=d.currentTarget,d=d.listener,p!==u&&n.isPropagationStopped())break e;u=d,n.currentTarget=z;try{u(n)}catch(C){iu(C)}n.currentTarget=null,u=p}}}}function se(e,t){var l=t[Ai];l===void 0&&(l=t[Ai]=new Set);var a=e+"__bubble";l.has(a)||(Ad(t,e,2,!1),l.add(a))}function ms(e,t,l){var a=0;t&&(a|=4),Ad(l,e,a,t)}var ku="_reactListening"+Math.random().toString(36).slice(2);function vs(e){if(!e[ku]){e[ku]=!0,pr.forEach(function(l){l!=="selectionchange"&&(Bv.has(l)||ms(l,!1,e),ms(l,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[ku]||(t[ku]=!0,ms("selectionchange",!1,t))}}function Ad(e,t,l,a){switch(th(t)){case 2:var n=oy;break;case 8:n=dy;break;default:n=Cs}l=n.bind(null,t,l,e),n=void 0,!wi||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(n=!0),a?n!==void 0?e.addEventListener(t,l,{capture:!0,passive:n}):e.addEventListener(t,l,!0):n!==void 0?e.addEventListener(t,l,{passive:n}):e.addEventListener(t,l,!1)}function ys(e,t,l,a,n){var u=a;if((t&1)===0&&(t&2)===0&&a!==null)e:for(;;){if(a===null)return;var c=a.tag;if(c===3||c===4){var d=a.stateNode.containerInfo;if(d===n)break;if(c===4)for(c=a.return;c!==null;){var p=c.tag;if((p===3||p===4)&&c.stateNode.containerInfo===n)return;c=c.return}for(;d!==null;){if(c=la(d),c===null)return;if(p=c.tag,p===5||p===6||p===26||p===27){a=u=c;continue e}d=d.parentNode}}a=a.return}Nr(function(){var z=u,C=Di(l),D=[];e:{var R=af.get(e);if(R!==void 0){var N=au,k=e;switch(e){case"keypress":if(tu(l)===0)break e;case"keydown":case"keyup":N=Cm;break;case"focusin":k="focus",N=qi;break;case"focusout":k="blur",N=qi;break;case"beforeblur":case"afterblur":N=qi;break;case"click":if(l.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":N=Mr;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":N=gm;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":N=Dm;break;case Pr:case ef:case tf:N=xm;break;case lf:N=wm;break;case"scroll":case"scrollend":N=ym;break;case"wheel":N=Bm;break;case"copy":case"cut":case"paste":N=jm;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":N=Ur;break;case"toggle":case"beforetoggle":N=qm}var F=(t&4)!==0,_e=!F&&(e==="scroll"||e==="scrollend"),E=F?R!==null?R+"Capture":null:R;F=[];for(var g=z,A;g!==null;){var M=g;if(A=M.stateNode,M=M.tag,M!==5&&M!==26&&M!==27||A===null||E===null||(M=Ja(g,E),M!=null&&F.push(Rn(g,M,A))),_e)break;g=g.return}0<F.length&&(R=new N(R,k,null,l,C),D.push({event:R,listeners:F}))}}if((t&7)===0){e:{if(R=e==="mouseover"||e==="pointerover",N=e==="mouseout"||e==="pointerout",R&&l!==Mi&&(k=l.relatedTarget||l.fromElement)&&(la(k)||k[ta]))break e;if((N||R)&&(R=C.window===C?C:(R=C.ownerDocument)?R.defaultView||R.parentWindow:window,N?(k=l.relatedTarget||l.toElement,N=z,k=k?la(k):null,k!==null&&(_e=v(k),F=k.tag,k!==_e||F!==5&&F!==27&&F!==6)&&(k=null)):(N=null,k=z),N!==k)){if(F=Mr,M="onMouseLeave",E="onMouseEnter",g="mouse",(e==="pointerout"||e==="pointerover")&&(F=Ur,M="onPointerLeave",E="onPointerEnter",g="pointer"),_e=N==null?R:Ka(N),A=k==null?R:Ka(k),R=new F(M,g+"leave",N,l,C),R.target=_e,R.relatedTarget=A,M=null,la(C)===z&&(F=new F(E,g+"enter",k,l,C),F.target=A,F.relatedTarget=_e,M=F),_e=M,N&&k)t:{for(F=Lv,E=N,g=k,A=0,M=E;M;M=F(M))A++;M=0;for(var W=g;W;W=F(W))M++;for(;0<A-M;)E=F(E),A--;for(;0<M-A;)g=F(g),M--;for(;A--;){if(E===g||g!==null&&E===g.alternate){F=E;break t}E=F(E),g=F(g)}F=null}else F=null;N!==null&&zd(D,R,N,F,!1),k!==null&&_e!==null&&zd(D,_e,k,F,!0)}}e:{if(R=z?Ka(z):window,N=R.nodeName&&R.nodeName.toLowerCase(),N==="select"||N==="input"&&R.type==="file")var ve=Xr;else if(Yr(R))if(Qr)ve=$m;else{ve=Km;var $=km}else N=R.nodeName,!N||N.toLowerCase()!=="input"||R.type!=="checkbox"&&R.type!=="radio"?z&&Oi(z.elementType)&&(ve=Xr):ve=Jm;if(ve&&(ve=ve(e,z))){Gr(D,ve,l,C);break e}$&&$(e,R,z),e==="focusout"&&z&&R.type==="number"&&z.memoizedProps.value!=null&&Ci(R,"number",R.value)}switch($=z?Ka(z):window,e){case"focusin":(Yr($)||$.contentEditable==="true")&&(oa=$,Zi=z,ln=null);break;case"focusout":ln=Zi=oa=null;break;case"mousedown":ki=!0;break;case"contextmenu":case"mouseup":case"dragend":ki=!1,Fr(D,l,C);break;case"selectionchange":if(Fm)break;case"keydown":case"keyup":Fr(D,l,C)}var ue;if(Gi)e:{switch(e){case"compositionstart":var fe="onCompositionStart";break e;case"compositionend":fe="onCompositionEnd";break e;case"compositionupdate":fe="onCompositionUpdate";break e}fe=void 0}else fa?Lr(e,l)&&(fe="onCompositionEnd"):e==="keydown"&&l.keyCode===229&&(fe="onCompositionStart");fe&&(wr&&l.locale!=="ko"&&(fa||fe!=="onCompositionStart"?fe==="onCompositionEnd"&&fa&&(ue=Cr()):(hl=C,Hi="value"in hl?hl.value:hl.textContent,fa=!0)),$=Ku(z,fe),0<$.length&&(fe=new Dr(fe,e,null,l,C),D.push({event:fe,listeners:$}),ue?fe.data=ue:(ue=qr(l),ue!==null&&(fe.data=ue)))),(ue=Gm?Xm(e,l):Qm(e,l))&&(fe=Ku(z,"onBeforeInput"),0<fe.length&&($=new Dr("onBeforeInput","beforeinput",null,l,C),D.push({event:$,listeners:fe}),$.data=ue)),Uv(D,e,z,l,C)}_d(D,t)})}function Rn(e,t,l){return{instance:e,listener:t,currentTarget:l}}function Ku(e,t){for(var l=t+"Capture",a=[];e!==null;){var n=e,u=n.stateNode;if(n=n.tag,n!==5&&n!==26&&n!==27||u===null||(n=Ja(e,l),n!=null&&a.unshift(Rn(e,n,u)),n=Ja(e,t),n!=null&&a.push(Rn(e,n,u))),e.tag===3)return a;e=e.return}return[]}function Lv(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function zd(e,t,l,a,n){for(var u=t._reactName,c=[];l!==null&&l!==a;){var d=l,p=d.alternate,z=d.stateNode;if(d=d.tag,p!==null&&p===a)break;d!==5&&d!==26&&d!==27||z===null||(p=z,n?(z=Ja(l,u),z!=null&&c.unshift(Rn(l,z,p))):n||(z=Ja(l,u),z!=null&&c.push(Rn(l,z,p)))),l=l.return}c.length!==0&&e.push({event:t,listeners:c})}var qv=/\r\n?/g,Yv=/\u0000|\uFFFD/g;function Rd(e){return(typeof e=="string"?e:""+e).replace(qv,`
49
+ `).replace(Yv,"")}function Nd(e,t){return t=Rd(t),Rd(e)===t}function Te(e,t,l,a,n,u){switch(l){case"children":typeof a=="string"?t==="body"||t==="textarea"&&a===""||ca(e,a):(typeof a=="number"||typeof a=="bigint")&&t!=="body"&&ca(e,""+a);break;case"className":Fn(e,"class",a);break;case"tabIndex":Fn(e,"tabindex",a);break;case"dir":case"role":case"viewBox":case"width":case"height":Fn(e,l,a);break;case"style":zr(e,a,u);break;case"data":if(t!=="object"){Fn(e,"data",a);break}case"src":case"href":if(a===""&&(t!=="a"||l!=="href")){e.removeAttribute(l);break}if(a==null||typeof a=="function"||typeof a=="symbol"||typeof a=="boolean"){e.removeAttribute(l);break}a=Pn(""+a),e.setAttribute(l,a);break;case"action":case"formAction":if(typeof a=="function"){e.setAttribute(l,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof u=="function"&&(l==="formAction"?(t!=="input"&&Te(e,t,"name",n.name,n,null),Te(e,t,"formEncType",n.formEncType,n,null),Te(e,t,"formMethod",n.formMethod,n,null),Te(e,t,"formTarget",n.formTarget,n,null)):(Te(e,t,"encType",n.encType,n,null),Te(e,t,"method",n.method,n,null),Te(e,t,"target",n.target,n,null)));if(a==null||typeof a=="symbol"||typeof a=="boolean"){e.removeAttribute(l);break}a=Pn(""+a),e.setAttribute(l,a);break;case"onClick":a!=null&&(e.onclick=kt);break;case"onScroll":a!=null&&se("scroll",e);break;case"onScrollEnd":a!=null&&se("scrollend",e);break;case"dangerouslySetInnerHTML":if(a!=null){if(typeof a!="object"||!("__html"in a))throw Error(r(61));if(l=a.__html,l!=null){if(n.children!=null)throw Error(r(60));e.innerHTML=l}}break;case"multiple":e.multiple=a&&typeof a!="function"&&typeof a!="symbol";break;case"muted":e.muted=a&&typeof a!="function"&&typeof a!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(a==null||typeof a=="function"||typeof a=="boolean"||typeof a=="symbol"){e.removeAttribute("xlink:href");break}l=Pn(""+a),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",l);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":a!=null&&typeof a!="function"&&typeof a!="symbol"?e.setAttribute(l,""+a):e.removeAttribute(l);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":a&&typeof a!="function"&&typeof a!="symbol"?e.setAttribute(l,""):e.removeAttribute(l);break;case"capture":case"download":a===!0?e.setAttribute(l,""):a!==!1&&a!=null&&typeof a!="function"&&typeof a!="symbol"?e.setAttribute(l,a):e.removeAttribute(l);break;case"cols":case"rows":case"size":case"span":a!=null&&typeof a!="function"&&typeof a!="symbol"&&!isNaN(a)&&1<=a?e.setAttribute(l,a):e.removeAttribute(l);break;case"rowSpan":case"start":a==null||typeof a=="function"||typeof a=="symbol"||isNaN(a)?e.removeAttribute(l):e.setAttribute(l,a);break;case"popover":se("beforetoggle",e),se("toggle",e),Wn(e,"popover",a);break;case"xlinkActuate":Zt(e,"http://www.w3.org/1999/xlink","xlink:actuate",a);break;case"xlinkArcrole":Zt(e,"http://www.w3.org/1999/xlink","xlink:arcrole",a);break;case"xlinkRole":Zt(e,"http://www.w3.org/1999/xlink","xlink:role",a);break;case"xlinkShow":Zt(e,"http://www.w3.org/1999/xlink","xlink:show",a);break;case"xlinkTitle":Zt(e,"http://www.w3.org/1999/xlink","xlink:title",a);break;case"xlinkType":Zt(e,"http://www.w3.org/1999/xlink","xlink:type",a);break;case"xmlBase":Zt(e,"http://www.w3.org/XML/1998/namespace","xml:base",a);break;case"xmlLang":Zt(e,"http://www.w3.org/XML/1998/namespace","xml:lang",a);break;case"xmlSpace":Zt(e,"http://www.w3.org/XML/1998/namespace","xml:space",a);break;case"is":Wn(e,"is",a);break;case"innerText":case"textContent":break;default:(!(2<l.length)||l[0]!=="o"&&l[0]!=="O"||l[1]!=="n"&&l[1]!=="N")&&(l=mm.get(l)||l,Wn(e,l,a))}}function ps(e,t,l,a,n,u){switch(l){case"style":zr(e,a,u);break;case"dangerouslySetInnerHTML":if(a!=null){if(typeof a!="object"||!("__html"in a))throw Error(r(61));if(l=a.__html,l!=null){if(n.children!=null)throw Error(r(60));e.innerHTML=l}}break;case"children":typeof a=="string"?ca(e,a):(typeof a=="number"||typeof a=="bigint")&&ca(e,""+a);break;case"onScroll":a!=null&&se("scroll",e);break;case"onScrollEnd":a!=null&&se("scrollend",e);break;case"onClick":a!=null&&(e.onclick=kt);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!gr.hasOwnProperty(l))e:{if(l[0]==="o"&&l[1]==="n"&&(n=l.endsWith("Capture"),t=l.slice(2,n?l.length-7:void 0),u=e[at]||null,u=u!=null?u[l]:null,typeof u=="function"&&e.removeEventListener(t,u,n),typeof a=="function")){typeof u!="function"&&u!==null&&(l in e?e[l]=null:e.hasAttribute(l)&&e.removeAttribute(l)),e.addEventListener(t,a,n);break e}l in e?e[l]=a:a===!0?e.setAttribute(l,""):Wn(e,l,a)}}}function Fe(e,t,l){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":se("error",e),se("load",e);var a=!1,n=!1,u;for(u in l)if(l.hasOwnProperty(u)){var c=l[u];if(c!=null)switch(u){case"src":a=!0;break;case"srcSet":n=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(r(137,t));default:Te(e,t,u,c,l,null)}}n&&Te(e,t,"srcSet",l.srcSet,l,null),a&&Te(e,t,"src",l.src,l,null);return;case"input":se("invalid",e);var d=u=c=n=null,p=null,z=null;for(a in l)if(l.hasOwnProperty(a)){var C=l[a];if(C!=null)switch(a){case"name":n=C;break;case"type":c=C;break;case"checked":p=C;break;case"defaultChecked":z=C;break;case"value":u=C;break;case"defaultValue":d=C;break;case"children":case"dangerouslySetInnerHTML":if(C!=null)throw Error(r(137,t));break;default:Te(e,t,a,C,l,null)}}jr(e,u,d,p,z,c,n,!1);return;case"select":se("invalid",e),a=c=u=null;for(n in l)if(l.hasOwnProperty(n)&&(d=l[n],d!=null))switch(n){case"value":u=d;break;case"defaultValue":c=d;break;case"multiple":a=d;default:Te(e,t,n,d,l,null)}t=u,l=c,e.multiple=!!a,t!=null?ia(e,!!a,t,!1):l!=null&&ia(e,!!a,l,!0);return;case"textarea":se("invalid",e),u=n=a=null;for(c in l)if(l.hasOwnProperty(c)&&(d=l[c],d!=null))switch(c){case"value":a=d;break;case"defaultValue":n=d;break;case"children":u=d;break;case"dangerouslySetInnerHTML":if(d!=null)throw Error(r(91));break;default:Te(e,t,c,d,l,null)}_r(e,a,n,u);return;case"option":for(p in l)if(l.hasOwnProperty(p)&&(a=l[p],a!=null))switch(p){case"selected":e.selected=a&&typeof a!="function"&&typeof a!="symbol";break;default:Te(e,t,p,a,l,null)}return;case"dialog":se("beforetoggle",e),se("toggle",e),se("cancel",e),se("close",e);break;case"iframe":case"object":se("load",e);break;case"video":case"audio":for(a=0;a<zn.length;a++)se(zn[a],e);break;case"image":se("error",e),se("load",e);break;case"details":se("toggle",e);break;case"embed":case"source":case"link":se("error",e),se("load",e);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(z in l)if(l.hasOwnProperty(z)&&(a=l[z],a!=null))switch(z){case"children":case"dangerouslySetInnerHTML":throw Error(r(137,t));default:Te(e,t,z,a,l,null)}return;default:if(Oi(t)){for(C in l)l.hasOwnProperty(C)&&(a=l[C],a!==void 0&&ps(e,t,C,a,l,void 0));return}}for(d in l)l.hasOwnProperty(d)&&(a=l[d],a!=null&&Te(e,t,d,a,l,null))}function Gv(e,t,l,a){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var n=null,u=null,c=null,d=null,p=null,z=null,C=null;for(N in l){var D=l[N];if(l.hasOwnProperty(N)&&D!=null)switch(N){case"checked":break;case"value":break;case"defaultValue":p=D;default:a.hasOwnProperty(N)||Te(e,t,N,null,a,D)}}for(var R in a){var N=a[R];if(D=l[R],a.hasOwnProperty(R)&&(N!=null||D!=null))switch(R){case"type":u=N;break;case"name":n=N;break;case"checked":z=N;break;case"defaultChecked":C=N;break;case"value":c=N;break;case"defaultValue":d=N;break;case"children":case"dangerouslySetInnerHTML":if(N!=null)throw Error(r(137,t));break;default:N!==D&&Te(e,t,R,N,a,D)}}Ni(e,c,d,p,z,C,u,n);return;case"select":N=c=d=R=null;for(u in l)if(p=l[u],l.hasOwnProperty(u)&&p!=null)switch(u){case"value":break;case"multiple":N=p;default:a.hasOwnProperty(u)||Te(e,t,u,null,a,p)}for(n in a)if(u=a[n],p=l[n],a.hasOwnProperty(n)&&(u!=null||p!=null))switch(n){case"value":R=u;break;case"defaultValue":d=u;break;case"multiple":c=u;default:u!==p&&Te(e,t,n,u,a,p)}t=d,l=c,a=N,R!=null?ia(e,!!l,R,!1):!!a!=!!l&&(t!=null?ia(e,!!l,t,!0):ia(e,!!l,l?[]:"",!1));return;case"textarea":N=R=null;for(d in l)if(n=l[d],l.hasOwnProperty(d)&&n!=null&&!a.hasOwnProperty(d))switch(d){case"value":break;case"children":break;default:Te(e,t,d,null,a,n)}for(c in a)if(n=a[c],u=l[c],a.hasOwnProperty(c)&&(n!=null||u!=null))switch(c){case"value":R=n;break;case"defaultValue":N=n;break;case"children":break;case"dangerouslySetInnerHTML":if(n!=null)throw Error(r(91));break;default:n!==u&&Te(e,t,c,n,a,u)}Tr(e,R,N);return;case"option":for(var k in l)if(R=l[k],l.hasOwnProperty(k)&&R!=null&&!a.hasOwnProperty(k))switch(k){case"selected":e.selected=!1;break;default:Te(e,t,k,null,a,R)}for(p in a)if(R=a[p],N=l[p],a.hasOwnProperty(p)&&R!==N&&(R!=null||N!=null))switch(p){case"selected":e.selected=R&&typeof R!="function"&&typeof R!="symbol";break;default:Te(e,t,p,R,a,N)}return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var F in l)R=l[F],l.hasOwnProperty(F)&&R!=null&&!a.hasOwnProperty(F)&&Te(e,t,F,null,a,R);for(z in a)if(R=a[z],N=l[z],a.hasOwnProperty(z)&&R!==N&&(R!=null||N!=null))switch(z){case"children":case"dangerouslySetInnerHTML":if(R!=null)throw Error(r(137,t));break;default:Te(e,t,z,R,a,N)}return;default:if(Oi(t)){for(var _e in l)R=l[_e],l.hasOwnProperty(_e)&&R!==void 0&&!a.hasOwnProperty(_e)&&ps(e,t,_e,void 0,a,R);for(C in a)R=a[C],N=l[C],!a.hasOwnProperty(C)||R===N||R===void 0&&N===void 0||ps(e,t,C,R,a,N);return}}for(var E in l)R=l[E],l.hasOwnProperty(E)&&R!=null&&!a.hasOwnProperty(E)&&Te(e,t,E,null,a,R);for(D in a)R=a[D],N=l[D],!a.hasOwnProperty(D)||R===N||R==null&&N==null||Te(e,t,D,R,a,N)}function Cd(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function Xv(){if(typeof performance.getEntriesByType=="function"){for(var e=0,t=0,l=performance.getEntriesByType("resource"),a=0;a<l.length;a++){var n=l[a],u=n.transferSize,c=n.initiatorType,d=n.duration;if(u&&d&&Cd(c)){for(c=0,d=n.responseEnd,a+=1;a<l.length;a++){var p=l[a],z=p.startTime;if(z>d)break;var C=p.transferSize,D=p.initiatorType;C&&Cd(D)&&(p=p.responseEnd,c+=C*(p<d?1:(d-z)/(p-z)))}if(--a,t+=8*(u+c)/(n.duration/1e3),e++,10<e)break}}if(0<e)return t/e/1e6}return navigator.connection&&(e=navigator.connection.downlink,typeof e=="number")?e:5}var gs=null,Ss=null;function Ju(e){return e.nodeType===9?e:e.ownerDocument}function Od(e){switch(e){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function Md(e,t){if(e===0)switch(t){case"svg":return 1;case"math":return 2;default:return 0}return e===1&&t==="foreignObject"?0:e}function bs(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.children=="bigint"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var xs=null;function Qv(){var e=window.event;return e&&e.type==="popstate"?e===xs?!1:(xs=e,!0):(xs=null,!1)}var Dd=typeof setTimeout=="function"?setTimeout:void 0,Vv=typeof clearTimeout=="function"?clearTimeout:void 0,Ud=typeof Promise=="function"?Promise:void 0,Zv=typeof queueMicrotask=="function"?queueMicrotask:typeof Ud<"u"?function(e){return Ud.resolve(null).then(e).catch(kv)}:Dd;function kv(e){setTimeout(function(){throw e})}function Cl(e){return e==="head"}function wd(e,t){var l=t,a=0;do{var n=l.nextSibling;if(e.removeChild(l),n&&n.nodeType===8)if(l=n.data,l==="/$"||l==="/&"){if(a===0){e.removeChild(n),La(t);return}a--}else if(l==="$"||l==="$?"||l==="$~"||l==="$!"||l==="&")a++;else if(l==="html")Nn(e.ownerDocument.documentElement);else if(l==="head"){l=e.ownerDocument.head,Nn(l);for(var u=l.firstChild;u;){var c=u.nextSibling,d=u.nodeName;u[ka]||d==="SCRIPT"||d==="STYLE"||d==="LINK"&&u.rel.toLowerCase()==="stylesheet"||l.removeChild(u),u=c}}else l==="body"&&Nn(e.ownerDocument.body);l=n}while(l);La(t)}function Hd(e,t){var l=e;e=0;do{var a=l.nextSibling;if(l.nodeType===1?t?(l._stashedDisplay=l.style.display,l.style.display="none"):(l.style.display=l._stashedDisplay||"",l.getAttribute("style")===""&&l.removeAttribute("style")):l.nodeType===3&&(t?(l._stashedText=l.nodeValue,l.nodeValue=""):l.nodeValue=l._stashedText||""),a&&a.nodeType===8)if(l=a.data,l==="/$"){if(e===0)break;e--}else l!=="$"&&l!=="$?"&&l!=="$~"&&l!=="$!"||e++;l=a}while(l)}function Es(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var l=t;switch(t=t.nextSibling,l.nodeName){case"HTML":case"HEAD":case"BODY":Es(l),zi(l);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(l.rel.toLowerCase()==="stylesheet")continue}e.removeChild(l)}}function Kv(e,t,l,a){for(;e.nodeType===1;){var n=l;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!a&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(a){if(!e[ka])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(u=e.getAttribute("rel"),u==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(u!==n.rel||e.getAttribute("href")!==(n.href==null||n.href===""?null:n.href)||e.getAttribute("crossorigin")!==(n.crossOrigin==null?null:n.crossOrigin)||e.getAttribute("title")!==(n.title==null?null:n.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(u=e.getAttribute("src"),(u!==(n.src==null?null:n.src)||e.getAttribute("type")!==(n.type==null?null:n.type)||e.getAttribute("crossorigin")!==(n.crossOrigin==null?null:n.crossOrigin))&&u&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){var u=n.name==null?null:""+n.name;if(n.type==="hidden"&&e.getAttribute("name")===u)return e}else return e;if(e=Nt(e.nextSibling),e===null)break}return null}function Jv(e,t,l){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!l||(e=Nt(e.nextSibling),e===null))return null;return e}function Bd(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t||(e=Nt(e.nextSibling),e===null))return null;return e}function js(e){return e.data==="$?"||e.data==="$~"}function Ts(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function $v(e,t){var l=e.ownerDocument;if(e.data==="$~")e._reactRetry=t;else if(e.data!=="$?"||l.readyState!=="loading")t();else{var a=function(){t(),l.removeEventListener("DOMContentLoaded",a)};l.addEventListener("DOMContentLoaded",a),e._reactRetry=a}}function Nt(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?"||t==="$~"||t==="&"||t==="F!"||t==="F")break;if(t==="/$"||t==="/&")return null}}return e}var _s=null;function Ld(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var l=e.data;if(l==="/$"||l==="/&"){if(t===0)return Nt(e.nextSibling);t--}else l!=="$"&&l!=="$!"&&l!=="$?"&&l!=="$~"&&l!=="&"||t++}e=e.nextSibling}return null}function qd(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var l=e.data;if(l==="$"||l==="$!"||l==="$?"||l==="$~"||l==="&"){if(t===0)return e;t--}else l!=="/$"&&l!=="/&"||t++}e=e.previousSibling}return null}function Yd(e,t,l){switch(t=Ju(l),e){case"html":if(e=t.documentElement,!e)throw Error(r(452));return e;case"head":if(e=t.head,!e)throw Error(r(453));return e;case"body":if(e=t.body,!e)throw Error(r(454));return e;default:throw Error(r(451))}}function Nn(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);zi(e)}var Ct=new Map,Gd=new Set;function $u(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var sl=X.d;X.d={f:Wv,r:Fv,D:Iv,C:Pv,L:ey,m:ty,X:ay,S:ly,M:ny};function Wv(){var e=sl.f(),t=Yu();return e||t}function Fv(e){var t=aa(e);t!==null&&t.tag===5&&t.type==="form"?ao(t):sl.r(e)}var wa=typeof document>"u"?null:document;function Xd(e,t,l){var a=wa;if(a&&typeof t=="string"&&t){var n=Et(t);n='link[rel="'+e+'"][href="'+n+'"]',typeof l=="string"&&(n+='[crossorigin="'+l+'"]'),Gd.has(n)||(Gd.add(n),e={rel:e,crossOrigin:l,href:t},a.querySelector(n)===null&&(t=a.createElement("link"),Fe(t,"link",e),Ze(t),a.head.appendChild(t)))}}function Iv(e){sl.D(e),Xd("dns-prefetch",e,null)}function Pv(e,t){sl.C(e,t),Xd("preconnect",e,t)}function ey(e,t,l){sl.L(e,t,l);var a=wa;if(a&&e&&t){var n='link[rel="preload"][as="'+Et(t)+'"]';t==="image"&&l&&l.imageSrcSet?(n+='[imagesrcset="'+Et(l.imageSrcSet)+'"]',typeof l.imageSizes=="string"&&(n+='[imagesizes="'+Et(l.imageSizes)+'"]')):n+='[href="'+Et(e)+'"]';var u=n;switch(t){case"style":u=Ha(e);break;case"script":u=Ba(e)}Ct.has(u)||(e=_({rel:"preload",href:t==="image"&&l&&l.imageSrcSet?void 0:e,as:t},l),Ct.set(u,e),a.querySelector(n)!==null||t==="style"&&a.querySelector(Cn(u))||t==="script"&&a.querySelector(On(u))||(t=a.createElement("link"),Fe(t,"link",e),Ze(t),a.head.appendChild(t)))}}function ty(e,t){sl.m(e,t);var l=wa;if(l&&e){var a=t&&typeof t.as=="string"?t.as:"script",n='link[rel="modulepreload"][as="'+Et(a)+'"][href="'+Et(e)+'"]',u=n;switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":u=Ba(e)}if(!Ct.has(u)&&(e=_({rel:"modulepreload",href:e},t),Ct.set(u,e),l.querySelector(n)===null)){switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(l.querySelector(On(u)))return}a=l.createElement("link"),Fe(a,"link",e),Ze(a),l.head.appendChild(a)}}}function ly(e,t,l){sl.S(e,t,l);var a=wa;if(a&&e){var n=na(a).hoistableStyles,u=Ha(e);t=t||"default";var c=n.get(u);if(!c){var d={loading:0,preload:null};if(c=a.querySelector(Cn(u)))d.loading=5;else{e=_({rel:"stylesheet",href:e,"data-precedence":t},l),(l=Ct.get(u))&&As(e,l);var p=c=a.createElement("link");Ze(p),Fe(p,"link",e),p._p=new Promise(function(z,C){p.onload=z,p.onerror=C}),p.addEventListener("load",function(){d.loading|=1}),p.addEventListener("error",function(){d.loading|=2}),d.loading|=4,Wu(c,t,a)}c={type:"stylesheet",instance:c,count:1,state:d},n.set(u,c)}}}function ay(e,t){sl.X(e,t);var l=wa;if(l&&e){var a=na(l).hoistableScripts,n=Ba(e),u=a.get(n);u||(u=l.querySelector(On(n)),u||(e=_({src:e,async:!0},t),(t=Ct.get(n))&&zs(e,t),u=l.createElement("script"),Ze(u),Fe(u,"link",e),l.head.appendChild(u)),u={type:"script",instance:u,count:1,state:null},a.set(n,u))}}function ny(e,t){sl.M(e,t);var l=wa;if(l&&e){var a=na(l).hoistableScripts,n=Ba(e),u=a.get(n);u||(u=l.querySelector(On(n)),u||(e=_({src:e,async:!0,type:"module"},t),(t=Ct.get(n))&&zs(e,t),u=l.createElement("script"),Ze(u),Fe(u,"link",e),l.head.appendChild(u)),u={type:"script",instance:u,count:1,state:null},a.set(n,u))}}function Qd(e,t,l,a){var n=(n=ie.current)?$u(n):null;if(!n)throw Error(r(446));switch(e){case"meta":case"title":return null;case"style":return typeof l.precedence=="string"&&typeof l.href=="string"?(t=Ha(l.href),l=na(n).hoistableStyles,a=l.get(t),a||(a={type:"style",instance:null,count:0,state:null},l.set(t,a)),a):{type:"void",instance:null,count:0,state:null};case"link":if(l.rel==="stylesheet"&&typeof l.href=="string"&&typeof l.precedence=="string"){e=Ha(l.href);var u=na(n).hoistableStyles,c=u.get(e);if(c||(n=n.ownerDocument||n,c={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},u.set(e,c),(u=n.querySelector(Cn(e)))&&!u._p&&(c.instance=u,c.state.loading=5),Ct.has(e)||(l={rel:"preload",as:"style",href:l.href,crossOrigin:l.crossOrigin,integrity:l.integrity,media:l.media,hrefLang:l.hrefLang,referrerPolicy:l.referrerPolicy},Ct.set(e,l),u||uy(n,e,l,c.state))),t&&a===null)throw Error(r(528,""));return c}if(t&&a!==null)throw Error(r(529,""));return null;case"script":return t=l.async,l=l.src,typeof l=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=Ba(l),l=na(n).hoistableScripts,a=l.get(t),a||(a={type:"script",instance:null,count:0,state:null},l.set(t,a)),a):{type:"void",instance:null,count:0,state:null};default:throw Error(r(444,e))}}function Ha(e){return'href="'+Et(e)+'"'}function Cn(e){return'link[rel="stylesheet"]['+e+"]"}function Vd(e){return _({},e,{"data-precedence":e.precedence,precedence:null})}function uy(e,t,l,a){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?a.loading=1:(t=e.createElement("link"),a.preload=t,t.addEventListener("load",function(){return a.loading|=1}),t.addEventListener("error",function(){return a.loading|=2}),Fe(t,"link",l),Ze(t),e.head.appendChild(t))}function Ba(e){return'[src="'+Et(e)+'"]'}function On(e){return"script[async]"+e}function Zd(e,t,l){if(t.count++,t.instance===null)switch(t.type){case"style":var a=e.querySelector('style[data-href~="'+Et(l.href)+'"]');if(a)return t.instance=a,Ze(a),a;var n=_({},l,{"data-href":l.href,"data-precedence":l.precedence,href:null,precedence:null});return a=(e.ownerDocument||e).createElement("style"),Ze(a),Fe(a,"style",n),Wu(a,l.precedence,e),t.instance=a;case"stylesheet":n=Ha(l.href);var u=e.querySelector(Cn(n));if(u)return t.state.loading|=4,t.instance=u,Ze(u),u;a=Vd(l),(n=Ct.get(n))&&As(a,n),u=(e.ownerDocument||e).createElement("link"),Ze(u);var c=u;return c._p=new Promise(function(d,p){c.onload=d,c.onerror=p}),Fe(u,"link",a),t.state.loading|=4,Wu(u,l.precedence,e),t.instance=u;case"script":return u=Ba(l.src),(n=e.querySelector(On(u)))?(t.instance=n,Ze(n),n):(a=l,(n=Ct.get(u))&&(a=_({},l),zs(a,n)),e=e.ownerDocument||e,n=e.createElement("script"),Ze(n),Fe(n,"link",a),e.head.appendChild(n),t.instance=n);case"void":return null;default:throw Error(r(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(a=t.instance,t.state.loading|=4,Wu(a,l.precedence,e));return t.instance}function Wu(e,t,l){for(var a=l.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),n=a.length?a[a.length-1]:null,u=n,c=0;c<a.length;c++){var d=a[c];if(d.dataset.precedence===t)u=d;else if(u!==n)break}u?u.parentNode.insertBefore(e,u.nextSibling):(t=l.nodeType===9?l.head:l,t.insertBefore(e,t.firstChild))}function As(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function zs(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var Fu=null;function kd(e,t,l){if(Fu===null){var a=new Map,n=Fu=new Map;n.set(l,a)}else n=Fu,a=n.get(l),a||(a=new Map,n.set(l,a));if(a.has(e))return a;for(a.set(e,null),l=l.getElementsByTagName(e),n=0;n<l.length;n++){var u=l[n];if(!(u[ka]||u[Ke]||e==="link"&&u.getAttribute("rel")==="stylesheet")&&u.namespaceURI!=="http://www.w3.org/2000/svg"){var c=u.getAttribute(t)||"";c=e+c;var d=a.get(c);d?d.push(u):a.set(c,[u])}}return a}function Kd(e,t,l){e=e.ownerDocument||e,e.head.insertBefore(l,t==="title"?e.querySelector("head > title"):null)}function iy(e,t,l){if(l===1||t.itemProp!=null)return!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof t.precedence!="string"||typeof t.href!="string"||t.href==="")break;return!0;case"link":if(typeof t.rel!="string"||typeof t.href!="string"||t.href===""||t.onLoad||t.onError)break;switch(t.rel){case"stylesheet":return e=t.disabled,typeof t.precedence=="string"&&e==null;default:return!0}case"script":if(t.async&&typeof t.async!="function"&&typeof t.async!="symbol"&&!t.onLoad&&!t.onError&&t.src&&typeof t.src=="string")return!0}return!1}function Jd(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function cy(e,t,l,a){if(l.type==="stylesheet"&&(typeof a.media!="string"||matchMedia(a.media).matches!==!1)&&(l.state.loading&4)===0){if(l.instance===null){var n=Ha(a.href),u=t.querySelector(Cn(n));if(u){t=u._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=Iu.bind(e),t.then(e,e)),l.state.loading|=4,l.instance=u,Ze(u);return}u=t.ownerDocument||t,a=Vd(a),(n=Ct.get(n))&&As(a,n),u=u.createElement("link"),Ze(u);var c=u;c._p=new Promise(function(d,p){c.onload=d,c.onerror=p}),Fe(u,"link",a),l.instance=u}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(l,t),(t=l.state.preload)&&(l.state.loading&3)===0&&(e.count++,l=Iu.bind(e),t.addEventListener("load",l),t.addEventListener("error",l))}}var Rs=0;function sy(e,t){return e.stylesheets&&e.count===0&&ei(e,e.stylesheets),0<e.count||0<e.imgCount?function(l){var a=setTimeout(function(){if(e.stylesheets&&ei(e,e.stylesheets),e.unsuspend){var u=e.unsuspend;e.unsuspend=null,u()}},6e4+t);0<e.imgBytes&&Rs===0&&(Rs=62500*Xv());var n=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&ei(e,e.stylesheets),e.unsuspend)){var u=e.unsuspend;e.unsuspend=null,u()}},(e.imgBytes>Rs?50:800)+t);return e.unsuspend=l,function(){e.unsuspend=null,clearTimeout(a),clearTimeout(n)}}:null}function Iu(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)ei(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var Pu=null;function ei(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,Pu=new Map,t.forEach(ry,e),Pu=null,Iu.call(e))}function ry(e,t){if(!(t.state.loading&4)){var l=Pu.get(e);if(l)var a=l.get(null);else{l=new Map,Pu.set(e,l);for(var n=e.querySelectorAll("link[data-precedence],style[data-precedence]"),u=0;u<n.length;u++){var c=n[u];(c.nodeName==="LINK"||c.getAttribute("media")!=="not all")&&(l.set(c.dataset.precedence,c),a=c)}a&&l.set(null,a)}n=t.instance,c=n.getAttribute("data-precedence"),u=l.get(c)||a,u===a&&l.set(null,n),l.set(c,n),this.count++,a=Iu.bind(this),n.addEventListener("load",a),n.addEventListener("error",a),u?u.parentNode.insertBefore(n,u.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(n,e.firstChild)),t.state.loading|=4}}var Mn={$$typeof:w,Provider:null,Consumer:null,_currentValue:P,_currentValue2:P,_threadCount:0};function fy(e,t,l,a,n,u,c,d,p){this.tag=1,this.containerInfo=e,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=ji(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=ji(0),this.hiddenUpdates=ji(null),this.identifierPrefix=a,this.onUncaughtError=n,this.onCaughtError=u,this.onRecoverableError=c,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=p,this.incompleteTransitions=new Map}function $d(e,t,l,a,n,u,c,d,p,z,C,D){return e=new fy(e,t,l,c,p,z,C,D,d),t=1,u===!0&&(t|=24),u=mt(3,null,null,t),e.current=u,u.stateNode=e,t=cc(),t.refCount++,e.pooledCache=t,t.refCount++,u.memoizedState={element:a,isDehydrated:l,cache:t},oc(u),e}function Wd(e){return e?(e=ma,e):ma}function Fd(e,t,l,a,n,u){n=Wd(n),a.context===null?a.context=n:a.pendingContext=n,a=Sl(t),a.payload={element:l},u=u===void 0?null:u,u!==null&&(a.callback=u),l=bl(e,a,t),l!==null&&(rt(l,e,t),fn(l,e,t))}function Id(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var l=e.retryLane;e.retryLane=l!==0&&l<t?l:t}}function Ns(e,t){Id(e,t),(e=e.alternate)&&Id(e,t)}function Pd(e){if(e.tag===13||e.tag===31){var t=Xl(e,67108864);t!==null&&rt(t,e,67108864),Ns(e,67108864)}}function eh(e){if(e.tag===13||e.tag===31){var t=St();t=Ti(t);var l=Xl(e,t);l!==null&&rt(l,e,t),Ns(e,t)}}var ti=!0;function oy(e,t,l,a){var n=O.T;O.T=null;var u=X.p;try{X.p=2,Cs(e,t,l,a)}finally{X.p=u,O.T=n}}function dy(e,t,l,a){var n=O.T;O.T=null;var u=X.p;try{X.p=8,Cs(e,t,l,a)}finally{X.p=u,O.T=n}}function Cs(e,t,l,a){if(ti){var n=Os(a);if(n===null)ys(e,t,a,li,l),lh(e,a);else if(my(n,e,t,l,a))a.stopPropagation();else if(lh(e,a),t&4&&-1<hy.indexOf(e)){for(;n!==null;){var u=aa(n);if(u!==null)switch(u.tag){case 3:if(u=u.stateNode,u.current.memoizedState.isDehydrated){var c=Bl(u.pendingLanes);if(c!==0){var d=u;for(d.pendingLanes|=2,d.entangledLanes|=2;c;){var p=1<<31-dt(c);d.entanglements[1]|=p,c&=~p}Qt(u),(pe&6)===0&&(Lu=ft()+500,An(0))}}break;case 31:case 13:d=Xl(u,2),d!==null&&rt(d,u,2),Yu(),Ns(u,2)}if(u=Os(a),u===null&&ys(e,t,a,li,l),u===n)break;n=u}n!==null&&a.stopPropagation()}else ys(e,t,a,null,l)}}function Os(e){return e=Di(e),Ms(e)}var li=null;function Ms(e){if(li=null,e=la(e),e!==null){var t=v(e);if(t===null)e=null;else{var l=t.tag;if(l===13){if(e=b(t),e!==null)return e;e=null}else if(l===31){if(e=x(t),e!==null)return e;e=null}else if(l===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return li=e,null}function th(e){switch(e){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(Ih()){case cr:return 2;case sr:return 8;case Zn:case Ph:return 32;case rr:return 268435456;default:return 32}default:return 32}}var Ds=!1,Ol=null,Ml=null,Dl=null,Dn=new Map,Un=new Map,Ul=[],hy="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset".split(" ");function lh(e,t){switch(e){case"focusin":case"focusout":Ol=null;break;case"dragenter":case"dragleave":Ml=null;break;case"mouseover":case"mouseout":Dl=null;break;case"pointerover":case"pointerout":Dn.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Un.delete(t.pointerId)}}function wn(e,t,l,a,n,u){return e===null||e.nativeEvent!==u?(e={blockedOn:t,domEventName:l,eventSystemFlags:a,nativeEvent:u,targetContainers:[n]},t!==null&&(t=aa(t),t!==null&&Pd(t)),e):(e.eventSystemFlags|=a,t=e.targetContainers,n!==null&&t.indexOf(n)===-1&&t.push(n),e)}function my(e,t,l,a,n){switch(t){case"focusin":return Ol=wn(Ol,e,t,l,a,n),!0;case"dragenter":return Ml=wn(Ml,e,t,l,a,n),!0;case"mouseover":return Dl=wn(Dl,e,t,l,a,n),!0;case"pointerover":var u=n.pointerId;return Dn.set(u,wn(Dn.get(u)||null,e,t,l,a,n)),!0;case"gotpointercapture":return u=n.pointerId,Un.set(u,wn(Un.get(u)||null,e,t,l,a,n)),!0}return!1}function ah(e){var t=la(e.target);if(t!==null){var l=v(t);if(l!==null){if(t=l.tag,t===13){if(t=b(l),t!==null){e.blockedOn=t,vr(e.priority,function(){eh(l)});return}}else if(t===31){if(t=x(l),t!==null){e.blockedOn=t,vr(e.priority,function(){eh(l)});return}}else if(t===3&&l.stateNode.current.memoizedState.isDehydrated){e.blockedOn=l.tag===3?l.stateNode.containerInfo:null;return}}}e.blockedOn=null}function ai(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var l=Os(e.nativeEvent);if(l===null){l=e.nativeEvent;var a=new l.constructor(l.type,l);Mi=a,l.target.dispatchEvent(a),Mi=null}else return t=aa(l),t!==null&&Pd(t),e.blockedOn=l,!1;t.shift()}return!0}function nh(e,t,l){ai(e)&&l.delete(t)}function vy(){Ds=!1,Ol!==null&&ai(Ol)&&(Ol=null),Ml!==null&&ai(Ml)&&(Ml=null),Dl!==null&&ai(Dl)&&(Dl=null),Dn.forEach(nh),Un.forEach(nh)}function ni(e,t){e.blockedOn===t&&(e.blockedOn=null,Ds||(Ds=!0,i.unstable_scheduleCallback(i.unstable_NormalPriority,vy)))}var ui=null;function uh(e){ui!==e&&(ui=e,i.unstable_scheduleCallback(i.unstable_NormalPriority,function(){ui===e&&(ui=null);for(var t=0;t<e.length;t+=3){var l=e[t],a=e[t+1],n=e[t+2];if(typeof a!="function"){if(Ms(a||l)===null)continue;break}var u=aa(l);u!==null&&(e.splice(t,3),t-=3,Oc(u,{pending:!0,data:n,method:l.method,action:a},a,n))}}))}function La(e){function t(p){return ni(p,e)}Ol!==null&&ni(Ol,e),Ml!==null&&ni(Ml,e),Dl!==null&&ni(Dl,e),Dn.forEach(t),Un.forEach(t);for(var l=0;l<Ul.length;l++){var a=Ul[l];a.blockedOn===e&&(a.blockedOn=null)}for(;0<Ul.length&&(l=Ul[0],l.blockedOn===null);)ah(l),l.blockedOn===null&&Ul.shift();if(l=(e.ownerDocument||e).$$reactFormReplay,l!=null)for(a=0;a<l.length;a+=3){var n=l[a],u=l[a+1],c=n[at]||null;if(typeof u=="function")c||uh(l);else if(c){var d=null;if(u&&u.hasAttribute("formAction")){if(n=u,c=u[at]||null)d=c.formAction;else if(Ms(n)!==null)continue}else d=c.action;typeof d=="function"?l[a+1]=d:(l.splice(a,3),a-=3),uh(l)}}}function ih(){function e(u){u.canIntercept&&u.info==="react-transition"&&u.intercept({handler:function(){return new Promise(function(c){return n=c})},focusReset:"manual",scroll:"manual"})}function t(){n!==null&&(n(),n=null),a||setTimeout(l,20)}function l(){if(!a&&!navigation.transition){var u=navigation.currentEntry;u&&u.url!=null&&navigation.navigate(u.url,{state:u.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var a=!1,n=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",t),navigation.addEventListener("navigateerror",t),setTimeout(l,100),function(){a=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",t),navigation.removeEventListener("navigateerror",t),n!==null&&(n(),n=null)}}}function Us(e){this._internalRoot=e}ii.prototype.render=Us.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(r(409));var l=t.current,a=St();Fd(l,a,e,t,null,null)},ii.prototype.unmount=Us.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Fd(e.current,2,null,e,null,null),Yu(),t[ta]=null}};function ii(e){this._internalRoot=e}ii.prototype.unstable_scheduleHydration=function(e){if(e){var t=mr();e={blockedOn:null,target:e,priority:t};for(var l=0;l<Ul.length&&t!==0&&t<Ul[l].priority;l++);Ul.splice(l,0,e),l===0&&ah(e)}};var ch=s.version;if(ch!=="19.2.5")throw Error(r(527,ch,"19.2.5"));X.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(r(188)):(e=Object.keys(e).join(","),Error(r(268,e)));return e=m(t),e=e!==null?T(e):null,e=e===null?null:e.stateNode,e};var yy={bundleType:0,version:"19.2.5",rendererPackageName:"react-dom",currentDispatcherRef:O,reconcilerVersion:"19.2.5"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var ci=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!ci.isDisabled&&ci.supportsFiber)try{Qa=ci.inject(yy),ot=ci}catch{}}return Bn.createRoot=function(e,t){if(!h(e))throw Error(r(299));var l=!1,a="",n=mo,u=vo,c=yo;return t!=null&&(t.unstable_strictMode===!0&&(l=!0),t.identifierPrefix!==void 0&&(a=t.identifierPrefix),t.onUncaughtError!==void 0&&(n=t.onUncaughtError),t.onCaughtError!==void 0&&(u=t.onCaughtError),t.onRecoverableError!==void 0&&(c=t.onRecoverableError)),t=$d(e,1,!1,null,null,l,a,null,n,u,c,ih),e[ta]=t.current,vs(e),new Us(t)},Bn.hydrateRoot=function(e,t,l){if(!h(e))throw Error(r(299));var a=!1,n="",u=mo,c=vo,d=yo,p=null;return l!=null&&(l.unstable_strictMode===!0&&(a=!0),l.identifierPrefix!==void 0&&(n=l.identifierPrefix),l.onUncaughtError!==void 0&&(u=l.onUncaughtError),l.onCaughtError!==void 0&&(c=l.onCaughtError),l.onRecoverableError!==void 0&&(d=l.onRecoverableError),l.formState!==void 0&&(p=l.formState)),t=$d(e,1,!0,t,l??null,a,n,p,u,c,d,ih),t.context=Wd(null),l=t.current,a=St(),a=Ti(a),n=Sl(a),n.callback=null,bl(l,n,a),l=a,t.current.lanes=l,Za(t,l),Qt(t),e[ta]=t.current,vs(e),new ii(t)},Bn.version="19.2.5",Bn}var ph;function Ay(){if(ph)return Bs.exports;ph=1;function i(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(i)}catch(s){console.error(s)}}return i(),Bs.exports=_y(),Bs.exports}var zy=Ay();/**
50
+ * react-router v7.14.2
51
+ *
52
+ * Copyright (c) Remix Software Inc.
53
+ *
54
+ * This source code is licensed under the MIT license found in the
55
+ * LICENSE.md file in the root directory of this source tree.
56
+ *
57
+ * @license MIT
58
+ */var gh="popstate";function Sh(i){return typeof i=="object"&&i!=null&&"pathname"in i&&"search"in i&&"hash"in i&&"state"in i&&"key"in i}function Ry(i={}){function s(r,h){var m;let v=(m=h.state)==null?void 0:m.masked,{pathname:b,search:x,hash:y}=v||r.location;return ks("",{pathname:b,search:x,hash:y},h.state&&h.state.usr||null,h.state&&h.state.key||"default",v?{pathname:r.location.pathname,search:r.location.search,hash:r.location.hash}:void 0)}function f(r,h){return typeof h=="string"?h:Yn(h)}return Cy(s,f,null,i)}function Oe(i,s){if(i===!1||i===null||typeof i>"u")throw new Error(s)}function Bt(i,s){if(!i){typeof console<"u"&&console.warn(s);try{throw new Error(s)}catch{}}}function Ny(){return Math.random().toString(36).substring(2,10)}function bh(i,s){return{usr:i.state,key:i.key,idx:s,masked:i.unstable_mask?{pathname:i.pathname,search:i.search,hash:i.hash}:void 0}}function ks(i,s,f=null,r,h){return{pathname:typeof i=="string"?i:i.pathname,search:"",hash:"",...typeof s=="string"?Ya(s):s,state:f,key:s&&s.key||r||Ny(),unstable_mask:h}}function Yn({pathname:i="/",search:s="",hash:f=""}){return s&&s!=="?"&&(i+=s.charAt(0)==="?"?s:"?"+s),f&&f!=="#"&&(i+=f.charAt(0)==="#"?f:"#"+f),i}function Ya(i){let s={};if(i){let f=i.indexOf("#");f>=0&&(s.hash=i.substring(f),i=i.substring(0,f));let r=i.indexOf("?");r>=0&&(s.search=i.substring(r),i=i.substring(0,r)),i&&(s.pathname=i)}return s}function Cy(i,s,f,r={}){let{window:h=document.defaultView,v5Compat:v=!1}=r,b=h.history,x="POP",y=null,m=T();m==null&&(m=0,b.replaceState({...b.state,idx:m},""));function T(){return(b.state||{idx:null}).idx}function _(){x="POP";let Z=T(),G=Z==null?null:Z-m;m=Z,y&&y({action:x,location:q.location,delta:G})}function B(Z,G){x="PUSH";let ee=Sh(Z)?Z:ks(q.location,Z,G);m=T()+1;let w=bh(ee,m),L=q.createHref(ee.unstable_mask||ee);try{b.pushState(w,"",L)}catch(J){if(J instanceof DOMException&&J.name==="DataCloneError")throw J;h.location.assign(L)}v&&y&&y({action:x,location:q.location,delta:1})}function Y(Z,G){x="REPLACE";let ee=Sh(Z)?Z:ks(q.location,Z,G);m=T();let w=bh(ee,m),L=q.createHref(ee.unstable_mask||ee);b.replaceState(w,"",L),v&&y&&y({action:x,location:q.location,delta:0})}function Q(Z){return Oy(Z)}let q={get action(){return x},get location(){return i(h,b)},listen(Z){if(y)throw new Error("A history only accepts one active listener");return h.addEventListener(gh,_),y=Z,()=>{h.removeEventListener(gh,_),y=null}},createHref(Z){return s(h,Z)},createURL:Q,encodeLocation(Z){let G=Q(Z);return{pathname:G.pathname,search:G.search,hash:G.hash}},push:B,replace:Y,go(Z){return b.go(Z)}};return q}function Oy(i,s=!1){let f="http://localhost";typeof window<"u"&&(f=window.location.origin!=="null"?window.location.origin:window.location.href),Oe(f,"No window.location.(origin|href) available to create URL");let r=typeof i=="string"?i:Yn(i);return r=r.replace(/ $/,"%20"),!s&&r.startsWith("//")&&(r=f+r),new URL(r,f)}function Rh(i,s,f="/"){return My(i,s,f,!1)}function My(i,s,f,r){let h=typeof s=="string"?Ya(s):s,v=fl(h.pathname||"/",f);if(v==null)return null;let b=Nh(i);Dy(b);let x=null;for(let y=0;x==null&&y<b.length;++y){let m=Vy(v);x=Xy(b[y],m,r)}return x}function Nh(i,s=[],f=[],r="",h=!1){let v=(b,x,y=h,m)=>{let T={relativePath:m===void 0?b.path||"":m,caseSensitive:b.caseSensitive===!0,childrenIndex:x,route:b};if(T.relativePath.startsWith("/")){if(!T.relativePath.startsWith(r)&&y)return;Oe(T.relativePath.startsWith(r),`Absolute route path "${T.relativePath}" nested under path "${r}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),T.relativePath=T.relativePath.slice(r.length)}let _=Ht([r,T.relativePath]),B=f.concat(T);b.children&&b.children.length>0&&(Oe(b.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${_}".`),Nh(b.children,s,B,_,y)),!(b.path==null&&!b.index)&&s.push({path:_,score:Yy(_,b.index),routesMeta:B})};return i.forEach((b,x)=>{var y;if(b.path===""||!((y=b.path)!=null&&y.includes("?")))v(b,x);else for(let m of Ch(b.path))v(b,x,!0,m)}),s}function Ch(i){let s=i.split("/");if(s.length===0)return[];let[f,...r]=s,h=f.endsWith("?"),v=f.replace(/\?$/,"");if(r.length===0)return h?[v,""]:[v];let b=Ch(r.join("/")),x=[];return x.push(...b.map(y=>y===""?v:[v,y].join("/"))),h&&x.push(...b),x.map(y=>i.startsWith("/")&&y===""?"/":y)}function Dy(i){i.sort((s,f)=>s.score!==f.score?f.score-s.score:Gy(s.routesMeta.map(r=>r.childrenIndex),f.routesMeta.map(r=>r.childrenIndex)))}var Uy=/^:[\w-]+$/,wy=3,Hy=2,By=1,Ly=10,qy=-2,xh=i=>i==="*";function Yy(i,s){let f=i.split("/"),r=f.length;return f.some(xh)&&(r+=qy),s&&(r+=Hy),f.filter(h=>!xh(h)).reduce((h,v)=>h+(Uy.test(v)?wy:v===""?By:Ly),r)}function Gy(i,s){return i.length===s.length&&i.slice(0,-1).every((r,h)=>r===s[h])?i[i.length-1]-s[s.length-1]:0}function Xy(i,s,f=!1){let{routesMeta:r}=i,h={},v="/",b=[];for(let x=0;x<r.length;++x){let y=r[x],m=x===r.length-1,T=v==="/"?s:s.slice(v.length)||"/",_=di({path:y.relativePath,caseSensitive:y.caseSensitive,end:m},T),B=y.route;if(!_&&m&&f&&!r[r.length-1].route.index&&(_=di({path:y.relativePath,caseSensitive:y.caseSensitive,end:!1},T)),!_)return null;Object.assign(h,_.params),b.push({params:h,pathname:Ht([v,_.pathname]),pathnameBase:Jy(Ht([v,_.pathnameBase])),route:B}),_.pathnameBase!=="/"&&(v=Ht([v,_.pathnameBase]))}return b}function di(i,s){typeof i=="string"&&(i={path:i,caseSensitive:!1,end:!0});let[f,r]=Qy(i.path,i.caseSensitive,i.end),h=s.match(f);if(!h)return null;let v=h[0],b=v.replace(/(.)\/+$/,"$1"),x=h.slice(1);return{params:r.reduce((m,{paramName:T,isOptional:_},B)=>{if(T==="*"){let Q=x[B]||"";b=v.slice(0,v.length-Q.length).replace(/(.)\/+$/,"$1")}const Y=x[B];return _&&!Y?m[T]=void 0:m[T]=(Y||"").replace(/%2F/g,"/"),m},{}),pathname:v,pathnameBase:b,pattern:i}}function Qy(i,s=!1,f=!0){Bt(i==="*"||!i.endsWith("*")||i.endsWith("/*"),`Route path "${i}" will be treated as if it were "${i.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${i.replace(/\*$/,"/*")}".`);let r=[],h="^"+i.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(b,x,y,m,T)=>{if(r.push({paramName:x,isOptional:y!=null}),y){let _=T.charAt(m+b.length);return _&&_!=="/"?"/([^\\/]*)":"(?:/([^\\/]*))?"}return"/([^\\/]+)"}).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return i.endsWith("*")?(r.push({paramName:"*"}),h+=i==="*"||i==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):f?h+="\\/*$":i!==""&&i!=="/"&&(h+="(?:(?=\\/|$))"),[new RegExp(h,s?void 0:"i"),r]}function Vy(i){try{return i.split("/").map(s=>decodeURIComponent(s).replace(/\//g,"%2F")).join("/")}catch(s){return Bt(!1,`The URL path "${i}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${s}).`),i}}function fl(i,s){if(s==="/")return i;if(!i.toLowerCase().startsWith(s.toLowerCase()))return null;let f=s.endsWith("/")?s.length-1:s.length,r=i.charAt(f);return r&&r!=="/"?null:i.slice(f)||"/"}var Zy=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i;function ky(i,s="/"){let{pathname:f,search:r="",hash:h=""}=typeof i=="string"?Ya(i):i,v;return f?(f=Mh(f),f.startsWith("/")?v=Eh(f.substring(1),"/"):v=Eh(f,s)):v=s,{pathname:v,search:$y(r),hash:Wy(h)}}function Eh(i,s){let f=hi(s).split("/");return i.split("/").forEach(h=>{h===".."?f.length>1&&f.pop():h!=="."&&f.push(h)}),f.length>1?f.join("/"):"/"}function Gs(i,s,f,r){return`Cannot include a '${i}' character in a manually specified \`to.${s}\` field [${JSON.stringify(r)}]. Please separate it out to the \`to.${f}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function Ky(i){return i.filter((s,f)=>f===0||s.route.path&&s.route.path.length>0)}function Oh(i){let s=Ky(i);return s.map((f,r)=>r===s.length-1?f.pathname:f.pathnameBase)}function Ws(i,s,f,r=!1){let h;typeof i=="string"?h=Ya(i):(h={...i},Oe(!h.pathname||!h.pathname.includes("?"),Gs("?","pathname","search",h)),Oe(!h.pathname||!h.pathname.includes("#"),Gs("#","pathname","hash",h)),Oe(!h.search||!h.search.includes("#"),Gs("#","search","hash",h)));let v=i===""||h.pathname==="",b=v?"/":h.pathname,x;if(b==null)x=f;else{let _=s.length-1;if(!r&&b.startsWith("..")){let B=b.split("/");for(;B[0]==="..";)B.shift(),_-=1;h.pathname=B.join("/")}x=_>=0?s[_]:"/"}let y=ky(h,x),m=b&&b!=="/"&&b.endsWith("/"),T=(v||b===".")&&f.endsWith("/");return!y.pathname.endsWith("/")&&(m||T)&&(y.pathname+="/"),y}var Mh=i=>i.replace(/\/\/+/g,"/"),Ht=i=>Mh(i.join("/")),hi=i=>i.replace(/\/+$/,""),Jy=i=>hi(i).replace(/^\/*/,"/"),$y=i=>!i||i==="?"?"":i.startsWith("?")?i:"?"+i,Wy=i=>!i||i==="#"?"":i.startsWith("#")?i:"#"+i,Fy=class{constructor(i,s,f,r=!1){this.status=i,this.statusText=s||"",this.internal=r,f instanceof Error?(this.data=f.toString(),this.error=f):this.data=f}};function Iy(i){return i!=null&&typeof i.status=="number"&&typeof i.statusText=="string"&&typeof i.internal=="boolean"&&"data"in i}function Py(i){let s=i.map(f=>f.route.path).filter(Boolean);return Ht(s)||"/"}var Dh=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function Uh(i,s){let f=i;if(typeof f!="string"||!Zy.test(f))return{absoluteURL:void 0,isExternal:!1,to:f};let r=f,h=!1;if(Dh)try{let v=new URL(window.location.href),b=f.startsWith("//")?new URL(v.protocol+f):new URL(f),x=fl(b.pathname,s);b.origin===v.origin&&x!=null?f=x+b.search+b.hash:h=!0}catch{Bt(!1,`<Link to="${f}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}return{absoluteURL:r,isExternal:h,to:f}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var wh=["POST","PUT","PATCH","DELETE"];new Set(wh);var ep=["GET",...wh];new Set(ep);var Ga=j.createContext(null);Ga.displayName="DataRouter";var mi=j.createContext(null);mi.displayName="DataRouterState";var Hh=j.createContext(!1);function tp(){return j.useContext(Hh)}var Bh=j.createContext({isTransitioning:!1});Bh.displayName="ViewTransition";var lp=j.createContext(new Map);lp.displayName="Fetchers";var ap=j.createContext(null);ap.displayName="Await";var Ot=j.createContext(null);Ot.displayName="Navigation";var Gn=j.createContext(null);Gn.displayName="Location";var Vt=j.createContext({outlet:null,matches:[],isDataRoute:!1});Vt.displayName="Route";var Fs=j.createContext(null);Fs.displayName="RouteError";var Lh="REACT_ROUTER_ERROR",np="REDIRECT",up="ROUTE_ERROR_RESPONSE";function ip(i){if(i.startsWith(`${Lh}:${np}:{`))try{let s=JSON.parse(i.slice(28));if(typeof s=="object"&&s&&typeof s.status=="number"&&typeof s.statusText=="string"&&typeof s.location=="string"&&typeof s.reloadDocument=="boolean"&&typeof s.replace=="boolean")return s}catch{}}function cp(i){if(i.startsWith(`${Lh}:${up}:{`))try{let s=JSON.parse(i.slice(40));if(typeof s=="object"&&s&&typeof s.status=="number"&&typeof s.statusText=="string")return new Fy(s.status,s.statusText,s.data)}catch{}}function sp(i,{relative:s}={}){Oe(Xn(),"useHref() may be used only in the context of a <Router> component.");let{basename:f,navigator:r}=j.useContext(Ot),{hash:h,pathname:v,search:b}=Qn(i,{relative:s}),x=v;return f!=="/"&&(x=v==="/"?f:Ht([f,v])),r.createHref({pathname:x,search:b,hash:h})}function Xn(){return j.useContext(Gn)!=null}function Lt(){return Oe(Xn(),"useLocation() may be used only in the context of a <Router> component."),j.useContext(Gn).location}var qh="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function Yh(i){j.useContext(Ot).static||j.useLayoutEffect(i)}function Is(){let{isDataRoute:i}=j.useContext(Vt);return i?Ep():rp()}function rp(){Oe(Xn(),"useNavigate() may be used only in the context of a <Router> component.");let i=j.useContext(Ga),{basename:s,navigator:f}=j.useContext(Ot),{matches:r}=j.useContext(Vt),{pathname:h}=Lt(),v=JSON.stringify(Oh(r)),b=j.useRef(!1);return Yh(()=>{b.current=!0}),j.useCallback((y,m={})=>{if(Bt(b.current,qh),!b.current)return;if(typeof y=="number"){f.go(y);return}let T=Ws(y,JSON.parse(v),h,m.relative==="path");i==null&&s!=="/"&&(T.pathname=T.pathname==="/"?s:Ht([s,T.pathname])),(m.replace?f.replace:f.push)(T,m.state,m)},[s,f,v,h,i])}j.createContext(null);function fp(){let{matches:i}=j.useContext(Vt),s=i[i.length-1];return(s==null?void 0:s.params)??{}}function Qn(i,{relative:s}={}){let{matches:f}=j.useContext(Vt),{pathname:r}=Lt(),h=JSON.stringify(Oh(f));return j.useMemo(()=>Ws(i,JSON.parse(h),r,s==="path"),[i,h,r,s])}function op(i,s){return Gh(i,s)}function Gh(i,s,f){var Z;Oe(Xn(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:r}=j.useContext(Ot),{matches:h}=j.useContext(Vt),v=h[h.length-1],b=v?v.params:{},x=v?v.pathname:"/",y=v?v.pathnameBase:"/",m=v&&v.route;{let G=m&&m.path||"";Qh(x,!m||G.endsWith("*")||G.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${x}" (under <Route path="${G}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.
59
+
60
+ Please change the parent <Route path="${G}"> to <Route path="${G==="/"?"*":`${G}/*`}">.`)}let T=Lt(),_;if(s){let G=typeof s=="string"?Ya(s):s;Oe(y==="/"||((Z=G.pathname)==null?void 0:Z.startsWith(y)),`When overriding the location using \`<Routes location>\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${y}" but pathname "${G.pathname}" was given in the \`location\` prop.`),_=G}else _=T;let B=_.pathname||"/",Y=B;if(y!=="/"){let G=y.replace(/^\//,"").split("/");Y="/"+B.replace(/^\//,"").split("/").slice(G.length).join("/")}let Q=Rh(i,{pathname:Y});Bt(m||Q!=null,`No routes matched location "${_.pathname}${_.search}${_.hash}" `),Bt(Q==null||Q[Q.length-1].route.element!==void 0||Q[Q.length-1].route.Component!==void 0||Q[Q.length-1].route.lazy!==void 0,`Matched leaf route at location "${_.pathname}${_.search}${_.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`);let q=yp(Q&&Q.map(G=>Object.assign({},G,{params:Object.assign({},b,G.params),pathname:Ht([y,r.encodeLocation?r.encodeLocation(G.pathname.replace(/%/g,"%25").replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:G.pathname]),pathnameBase:G.pathnameBase==="/"?y:Ht([y,r.encodeLocation?r.encodeLocation(G.pathnameBase.replace(/%/g,"%25").replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:G.pathnameBase])})),h,f);return s&&q?j.createElement(Gn.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",unstable_mask:void 0,..._},navigationType:"POP"}},q):q}function dp(){let i=xp(),s=Iy(i)?`${i.status} ${i.statusText}`:i instanceof Error?i.message:JSON.stringify(i),f=i instanceof Error?i.stack:null,r="rgba(200,200,200, 0.5)",h={padding:"0.5rem",backgroundColor:r},v={padding:"2px 4px",backgroundColor:r},b=null;return console.error("Error handled by React Router default ErrorBoundary:",i),b=j.createElement(j.Fragment,null,j.createElement("p",null,"💿 Hey developer 👋"),j.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",j.createElement("code",{style:v},"ErrorBoundary")," or"," ",j.createElement("code",{style:v},"errorElement")," prop on your route.")),j.createElement(j.Fragment,null,j.createElement("h2",null,"Unexpected Application Error!"),j.createElement("h3",{style:{fontStyle:"italic"}},s),f?j.createElement("pre",{style:h},f):null,b)}var hp=j.createElement(dp,null),Xh=class extends j.Component{constructor(i){super(i),this.state={location:i.location,revalidation:i.revalidation,error:i.error}}static getDerivedStateFromError(i){return{error:i}}static getDerivedStateFromProps(i,s){return s.location!==i.location||s.revalidation!=="idle"&&i.revalidation==="idle"?{error:i.error,location:i.location,revalidation:i.revalidation}:{error:i.error!==void 0?i.error:s.error,location:s.location,revalidation:i.revalidation||s.revalidation}}componentDidCatch(i,s){this.props.onError?this.props.onError(i,s):console.error("React Router caught the following error during render",i)}render(){let i=this.state.error;if(this.context&&typeof i=="object"&&i&&"digest"in i&&typeof i.digest=="string"){const f=cp(i.digest);f&&(i=f)}let s=i!==void 0?j.createElement(Vt.Provider,{value:this.props.routeContext},j.createElement(Fs.Provider,{value:i,children:this.props.component})):this.props.children;return this.context?j.createElement(mp,{error:i},s):s}};Xh.contextType=Hh;var Xs=new WeakMap;function mp({children:i,error:s}){let{basename:f}=j.useContext(Ot);if(typeof s=="object"&&s&&"digest"in s&&typeof s.digest=="string"){let r=ip(s.digest);if(r){let h=Xs.get(s);if(h)throw h;let v=Uh(r.location,f);if(Dh&&!Xs.get(s))if(v.isExternal||r.reloadDocument)window.location.href=v.absoluteURL||v.to;else{const b=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(v.to,{replace:r.replace}));throw Xs.set(s,b),b}return j.createElement("meta",{httpEquiv:"refresh",content:`0;url=${v.absoluteURL||v.to}`})}}return i}function vp({routeContext:i,match:s,children:f}){let r=j.useContext(Ga);return r&&r.static&&r.staticContext&&(s.route.errorElement||s.route.ErrorBoundary)&&(r.staticContext._deepestRenderedBoundaryId=s.route.id),j.createElement(Vt.Provider,{value:i},f)}function yp(i,s=[],f){let r=f==null?void 0:f.state;if(i==null){if(!r)return null;if(r.errors)i=r.matches;else if(s.length===0&&!r.initialized&&r.matches.length>0)i=r.matches;else return null}let h=i,v=r==null?void 0:r.errors;if(v!=null){let T=h.findIndex(_=>_.route.id&&(v==null?void 0:v[_.route.id])!==void 0);Oe(T>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(v).join(",")}`),h=h.slice(0,Math.min(h.length,T+1))}let b=!1,x=-1;if(f&&r){b=r.renderFallback;for(let T=0;T<h.length;T++){let _=h[T];if((_.route.HydrateFallback||_.route.hydrateFallbackElement)&&(x=T),_.route.id){let{loaderData:B,errors:Y}=r,Q=_.route.loader&&!B.hasOwnProperty(_.route.id)&&(!Y||Y[_.route.id]===void 0);if(_.route.lazy||Q){f.isStatic&&(b=!0),x>=0?h=h.slice(0,x+1):h=[h[0]];break}}}}let y=f==null?void 0:f.onError,m=r&&y?(T,_)=>{var B,Y;y(T,{location:r.location,params:((Y=(B=r.matches)==null?void 0:B[0])==null?void 0:Y.params)??{},unstable_pattern:Py(r.matches),errorInfo:_})}:void 0;return h.reduceRight((T,_,B)=>{let Y,Q=!1,q=null,Z=null;r&&(Y=v&&_.route.id?v[_.route.id]:void 0,q=_.route.errorElement||hp,b&&(x<0&&B===0?(Qh("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),Q=!0,Z=null):x===B&&(Q=!0,Z=_.route.hydrateFallbackElement||null)));let G=s.concat(h.slice(0,B+1)),ee=()=>{let w;return Y?w=q:Q?w=Z:_.route.Component?w=j.createElement(_.route.Component,null):_.route.element?w=_.route.element:w=T,j.createElement(vp,{match:_,routeContext:{outlet:T,matches:G,isDataRoute:r!=null},children:w})};return r&&(_.route.ErrorBoundary||_.route.errorElement||B===0)?j.createElement(Xh,{location:r.location,revalidation:r.revalidation,component:q,error:Y,children:ee(),routeContext:{outlet:null,matches:G,isDataRoute:!0},onError:m}):ee()},null)}function Ps(i){return`${i} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function pp(i){let s=j.useContext(Ga);return Oe(s,Ps(i)),s}function gp(i){let s=j.useContext(mi);return Oe(s,Ps(i)),s}function Sp(i){let s=j.useContext(Vt);return Oe(s,Ps(i)),s}function er(i){let s=Sp(i),f=s.matches[s.matches.length-1];return Oe(f.route.id,`${i} can only be used on routes that contain a unique "id"`),f.route.id}function bp(){return er("useRouteId")}function xp(){var r;let i=j.useContext(Fs),s=gp("useRouteError"),f=er("useRouteError");return i!==void 0?i:(r=s.errors)==null?void 0:r[f]}function Ep(){let{router:i}=pp("useNavigate"),s=er("useNavigate"),f=j.useRef(!1);return Yh(()=>{f.current=!0}),j.useCallback(async(h,v={})=>{Bt(f.current,qh),f.current&&(typeof h=="number"?await i.navigate(h):await i.navigate(h,{fromRouteId:s,...v}))},[i,s])}var jh={};function Qh(i,s,f){!s&&!jh[i]&&(jh[i]=!0,Bt(!1,f))}j.memo(jp);function jp({routes:i,future:s,state:f,isStatic:r,onError:h}){return Gh(i,void 0,{state:f,isStatic:r,onError:h})}function rl(i){Oe(!1,"A <Route> is only ever to be used as the child of <Routes> element, never rendered directly. Please wrap your <Route> in a <Routes>.")}function Tp({basename:i="/",children:s=null,location:f,navigationType:r="POP",navigator:h,static:v=!1,unstable_useTransitions:b}){Oe(!Xn(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let x=i.replace(/^\/*/,"/"),y=j.useMemo(()=>({basename:x,navigator:h,static:v,unstable_useTransitions:b,future:{}}),[x,h,v,b]);typeof f=="string"&&(f=Ya(f));let{pathname:m="/",search:T="",hash:_="",state:B=null,key:Y="default",unstable_mask:Q}=f,q=j.useMemo(()=>{let Z=fl(m,x);return Z==null?null:{location:{pathname:Z,search:T,hash:_,state:B,key:Y,unstable_mask:Q},navigationType:r}},[x,m,T,_,B,Y,r,Q]);return Bt(q!=null,`<Router basename="${x}"> is not able to match the URL "${m}${T}${_}" because it does not start with the basename, so the <Router> won't render anything.`),q==null?null:j.createElement(Ot.Provider,{value:y},j.createElement(Gn.Provider,{children:s,value:q}))}function _p({children:i,location:s}){return op(Ks(i),s)}function Ks(i,s=[]){let f=[];return j.Children.forEach(i,(r,h)=>{if(!j.isValidElement(r))return;let v=[...s,h];if(r.type===j.Fragment){f.push.apply(f,Ks(r.props.children,v));return}Oe(r.type===rl,`[${typeof r.type=="string"?r.type:r.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),Oe(!r.props.index||!r.props.children,"An index route cannot have child routes.");let b={id:r.props.id||v.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,Component:r.props.Component,index:r.props.index,path:r.props.path,middleware:r.props.middleware,loader:r.props.loader,action:r.props.action,hydrateFallbackElement:r.props.hydrateFallbackElement,HydrateFallback:r.props.HydrateFallback,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary:r.props.hasErrorBoundary===!0||r.props.ErrorBoundary!=null||r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle,lazy:r.props.lazy};r.props.children&&(b.children=Ks(r.props.children,v)),f.push(b)}),f}var fi="get",oi="application/x-www-form-urlencoded";function vi(i){return typeof HTMLElement<"u"&&i instanceof HTMLElement}function Ap(i){return vi(i)&&i.tagName.toLowerCase()==="button"}function zp(i){return vi(i)&&i.tagName.toLowerCase()==="form"}function Rp(i){return vi(i)&&i.tagName.toLowerCase()==="input"}function Np(i){return!!(i.metaKey||i.altKey||i.ctrlKey||i.shiftKey)}function Cp(i,s){return i.button===0&&(!s||s==="_self")&&!Np(i)}function Js(i=""){return new URLSearchParams(typeof i=="string"||Array.isArray(i)||i instanceof URLSearchParams?i:Object.keys(i).reduce((s,f)=>{let r=i[f];return s.concat(Array.isArray(r)?r.map(h=>[f,h]):[[f,r]])},[]))}function Op(i,s){let f=Js(i);return s&&s.forEach((r,h)=>{f.has(h)||s.getAll(h).forEach(v=>{f.append(h,v)})}),f}var si=null;function Mp(){if(si===null)try{new FormData(document.createElement("form"),0),si=!1}catch{si=!0}return si}var Dp=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function Qs(i){return i!=null&&!Dp.has(i)?(Bt(!1,`"${i}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${oi}"`),null):i}function Up(i,s){let f,r,h,v,b;if(zp(i)){let x=i.getAttribute("action");r=x?fl(x,s):null,f=i.getAttribute("method")||fi,h=Qs(i.getAttribute("enctype"))||oi,v=new FormData(i)}else if(Ap(i)||Rp(i)&&(i.type==="submit"||i.type==="image")){let x=i.form;if(x==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let y=i.getAttribute("formaction")||x.getAttribute("action");if(r=y?fl(y,s):null,f=i.getAttribute("formmethod")||x.getAttribute("method")||fi,h=Qs(i.getAttribute("formenctype"))||Qs(x.getAttribute("enctype"))||oi,v=new FormData(x,i),!Mp()){let{name:m,type:T,value:_}=i;if(T==="image"){let B=m?`${m}.`:"";v.append(`${B}x`,"0"),v.append(`${B}y`,"0")}else m&&v.append(m,_)}}else{if(vi(i))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');f=fi,r=null,h=oi,b=i}return v&&h==="text/plain"&&(b=v,v=void 0),{action:r,method:f.toLowerCase(),encType:h,formData:v,body:b}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function tr(i,s){if(i===!1||i===null||typeof i>"u")throw new Error(s)}function Vh(i,s,f,r){let h=typeof i=="string"?new URL(i,typeof window>"u"?"server://singlefetch/":window.location.origin):i;return f?h.pathname.endsWith("/")?h.pathname=`${h.pathname}_.${r}`:h.pathname=`${h.pathname}.${r}`:h.pathname==="/"?h.pathname=`_root.${r}`:s&&fl(h.pathname,s)==="/"?h.pathname=`${hi(s)}/_root.${r}`:h.pathname=`${hi(h.pathname)}.${r}`,h}async function wp(i,s){if(i.id in s)return s[i.id];try{let f=await import(i.module);return s[i.id]=f,f}catch(f){return console.error(`Error loading route module \`${i.module}\`, reloading page...`),console.error(f),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function Hp(i){return i==null?!1:i.href==null?i.rel==="preload"&&typeof i.imageSrcSet=="string"&&typeof i.imageSizes=="string":typeof i.rel=="string"&&typeof i.href=="string"}async function Bp(i,s,f){let r=await Promise.all(i.map(async h=>{let v=s.routes[h.route.id];if(v){let b=await wp(v,f);return b.links?b.links():[]}return[]}));return Gp(r.flat(1).filter(Hp).filter(h=>h.rel==="stylesheet"||h.rel==="preload").map(h=>h.rel==="stylesheet"?{...h,rel:"prefetch",as:"style"}:{...h,rel:"prefetch"}))}function Th(i,s,f,r,h,v){let b=(y,m)=>f[m]?y.route.id!==f[m].route.id:!0,x=(y,m)=>{var T;return f[m].pathname!==y.pathname||((T=f[m].route.path)==null?void 0:T.endsWith("*"))&&f[m].params["*"]!==y.params["*"]};return v==="assets"?s.filter((y,m)=>b(y,m)||x(y,m)):v==="data"?s.filter((y,m)=>{var _;let T=r.routes[y.route.id];if(!T||!T.hasLoader)return!1;if(b(y,m)||x(y,m))return!0;if(y.route.shouldRevalidate){let B=y.route.shouldRevalidate({currentUrl:new URL(h.pathname+h.search+h.hash,window.origin),currentParams:((_=f[0])==null?void 0:_.params)||{},nextUrl:new URL(i,window.origin),nextParams:y.params,defaultShouldRevalidate:!0});if(typeof B=="boolean")return B}return!0}):[]}function Lp(i,s,{includeHydrateFallback:f}={}){return qp(i.map(r=>{let h=s.routes[r.route.id];if(!h)return[];let v=[h.module];return h.clientActionModule&&(v=v.concat(h.clientActionModule)),h.clientLoaderModule&&(v=v.concat(h.clientLoaderModule)),f&&h.hydrateFallbackModule&&(v=v.concat(h.hydrateFallbackModule)),h.imports&&(v=v.concat(h.imports)),v}).flat(1))}function qp(i){return[...new Set(i)]}function Yp(i){let s={},f=Object.keys(i).sort();for(let r of f)s[r]=i[r];return s}function Gp(i,s){let f=new Set;return new Set(s),i.reduce((r,h)=>{let v=JSON.stringify(Yp(h));return f.has(v)||(f.add(v),r.push({key:v,link:h})),r},[])}function lr(){let i=j.useContext(Ga);return tr(i,"You must render this element inside a <DataRouterContext.Provider> element"),i}function Xp(){let i=j.useContext(mi);return tr(i,"You must render this element inside a <DataRouterStateContext.Provider> element"),i}var ar=j.createContext(void 0);ar.displayName="FrameworkContext";function nr(){let i=j.useContext(ar);return tr(i,"You must render this element inside a <HydratedRouter> element"),i}function Qp(i,s){let f=j.useContext(ar),[r,h]=j.useState(!1),[v,b]=j.useState(!1),{onFocus:x,onBlur:y,onMouseEnter:m,onMouseLeave:T,onTouchStart:_}=s,B=j.useRef(null);j.useEffect(()=>{if(i==="render"&&b(!0),i==="viewport"){let q=G=>{G.forEach(ee=>{b(ee.isIntersecting)})},Z=new IntersectionObserver(q,{threshold:.5});return B.current&&Z.observe(B.current),()=>{Z.disconnect()}}},[i]),j.useEffect(()=>{if(r){let q=setTimeout(()=>{b(!0)},100);return()=>{clearTimeout(q)}}},[r]);let Y=()=>{h(!0)},Q=()=>{h(!1),b(!1)};return f?i!=="intent"?[v,B,{}]:[v,B,{onFocus:Ln(x,Y),onBlur:Ln(y,Q),onMouseEnter:Ln(m,Y),onMouseLeave:Ln(T,Q),onTouchStart:Ln(_,Y)}]:[!1,B,{}]}function Ln(i,s){return f=>{i&&i(f),f.defaultPrevented||s(f)}}function Vp({page:i,...s}){let f=tp(),{router:r}=lr(),h=j.useMemo(()=>Rh(r.routes,i,r.basename),[r.routes,i,r.basename]);return h?f?j.createElement(kp,{page:i,matches:h,...s}):j.createElement(Kp,{page:i,matches:h,...s}):null}function Zp(i){let{manifest:s,routeModules:f}=nr(),[r,h]=j.useState([]);return j.useEffect(()=>{let v=!1;return Bp(i,s,f).then(b=>{v||h(b)}),()=>{v=!0}},[i,s,f]),r}function kp({page:i,matches:s,...f}){let r=Lt(),{future:h}=nr(),{basename:v}=lr(),b=j.useMemo(()=>{if(i===r.pathname+r.search+r.hash)return[];let x=Vh(i,v,h.unstable_trailingSlashAwareDataRequests,"rsc"),y=!1,m=[];for(let T of s)typeof T.route.shouldRevalidate=="function"?y=!0:m.push(T.route.id);return y&&m.length>0&&x.searchParams.set("_routes",m.join(",")),[x.pathname+x.search]},[v,h.unstable_trailingSlashAwareDataRequests,i,r,s]);return j.createElement(j.Fragment,null,b.map(x=>j.createElement("link",{key:x,rel:"prefetch",as:"fetch",href:x,...f})))}function Kp({page:i,matches:s,...f}){let r=Lt(),{future:h,manifest:v,routeModules:b}=nr(),{basename:x}=lr(),{loaderData:y,matches:m}=Xp(),T=j.useMemo(()=>Th(i,s,m,v,r,"data"),[i,s,m,v,r]),_=j.useMemo(()=>Th(i,s,m,v,r,"assets"),[i,s,m,v,r]),B=j.useMemo(()=>{if(i===r.pathname+r.search+r.hash)return[];let q=new Set,Z=!1;if(s.forEach(ee=>{var L;let w=v.routes[ee.route.id];!w||!w.hasLoader||(!T.some(J=>J.route.id===ee.route.id)&&ee.route.id in y&&((L=b[ee.route.id])!=null&&L.shouldRevalidate)||w.hasClientLoader?Z=!0:q.add(ee.route.id))}),q.size===0)return[];let G=Vh(i,x,h.unstable_trailingSlashAwareDataRequests,"data");return Z&&q.size>0&&G.searchParams.set("_routes",s.filter(ee=>q.has(ee.route.id)).map(ee=>ee.route.id).join(",")),[G.pathname+G.search]},[x,h.unstable_trailingSlashAwareDataRequests,y,r,v,T,s,i,b]),Y=j.useMemo(()=>Lp(_,v),[_,v]),Q=Zp(_);return j.createElement(j.Fragment,null,B.map(q=>j.createElement("link",{key:q,rel:"prefetch",as:"fetch",href:q,...f})),Y.map(q=>j.createElement("link",{key:q,rel:"modulepreload",href:q,...f})),Q.map(({key:q,link:Z})=>j.createElement("link",{key:q,nonce:f.nonce,...Z,crossOrigin:Z.crossOrigin??f.crossOrigin})))}function Jp(...i){return s=>{i.forEach(f=>{typeof f=="function"?f(s):f!=null&&(f.current=s)})}}var $p=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{$p&&(window.__reactRouterVersion="7.14.2")}catch{}function Wp({basename:i,children:s,unstable_useTransitions:f,window:r}){let h=j.useRef();h.current==null&&(h.current=Ry({window:r,v5Compat:!0}));let v=h.current,[b,x]=j.useState({action:v.action,location:v.location}),y=j.useCallback(m=>{f===!1?x(m):j.startTransition(()=>x(m))},[f]);return j.useLayoutEffect(()=>v.listen(y),[v,y]),j.createElement(Tp,{basename:i,children:s,location:b.location,navigationType:b.action,navigator:v,unstable_useTransitions:f})}var Zh=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Pe=j.forwardRef(function({onClick:s,discover:f="render",prefetch:r="none",relative:h,reloadDocument:v,replace:b,unstable_mask:x,state:y,target:m,to:T,preventScrollReset:_,viewTransition:B,unstable_defaultShouldRevalidate:Y,...Q},q){let{basename:Z,navigator:G,unstable_useTransitions:ee}=j.useContext(Ot),w=typeof T=="string"&&Zh.test(T),L=Uh(T,Z);T=L.to;let J=sp(T,{relative:h}),oe=Lt(),H=null;if(x){let Le=Ws(x,[],oe.unstable_mask?oe.unstable_mask.pathname:"/",!0);Z!=="/"&&(Le.pathname=Le.pathname==="/"?Z:Ht([Z,Le.pathname])),H=G.createHref(Le)}let[I,xe,Ve]=Qp(r,Q),he=eg(T,{replace:b,unstable_mask:x,state:y,target:m,preventScrollReset:_,relative:h,viewTransition:B,unstable_defaultShouldRevalidate:Y,unstable_useTransitions:ee});function Me(Le){s&&s(Le),Le.defaultPrevented||he(Le)}let qt=!(L.isExternal||v),bt=j.createElement("a",{...Q,...Ve,href:(qt?H:void 0)||L.absoluteURL||J,onClick:qt?Me:s,ref:Jp(q,xe),target:m,"data-discover":!w&&f==="render"?"true":void 0});return I&&!w?j.createElement(j.Fragment,null,bt,j.createElement(Vp,{page:J})):bt});Pe.displayName="Link";var Fp=j.forwardRef(function({"aria-current":s="page",caseSensitive:f=!1,className:r="",end:h=!1,style:v,to:b,viewTransition:x,children:y,...m},T){let _=Qn(b,{relative:m.relative}),B=Lt(),Y=j.useContext(mi),{navigator:Q,basename:q}=j.useContext(Ot),Z=Y!=null&&ig(_)&&x===!0,G=Q.encodeLocation?Q.encodeLocation(_).pathname:_.pathname,ee=B.pathname,w=Y&&Y.navigation&&Y.navigation.location?Y.navigation.location.pathname:null;f||(ee=ee.toLowerCase(),w=w?w.toLowerCase():null,G=G.toLowerCase()),w&&q&&(w=fl(w,q)||w);const L=G!=="/"&&G.endsWith("/")?G.length-1:G.length;let J=ee===G||!h&&ee.startsWith(G)&&ee.charAt(L)==="/",oe=w!=null&&(w===G||!h&&w.startsWith(G)&&w.charAt(G.length)==="/"),H={isActive:J,isPending:oe,isTransitioning:Z},I=J?s:void 0,xe;typeof r=="function"?xe=r(H):xe=[r,J?"active":null,oe?"pending":null,Z?"transitioning":null].filter(Boolean).join(" ");let Ve=typeof v=="function"?v(H):v;return j.createElement(Pe,{...m,"aria-current":I,className:xe,ref:T,style:Ve,to:b,viewTransition:x},typeof y=="function"?y(H):y)});Fp.displayName="NavLink";var Ip=j.forwardRef(({discover:i="render",fetcherKey:s,navigate:f,reloadDocument:r,replace:h,state:v,method:b=fi,action:x,onSubmit:y,relative:m,preventScrollReset:T,viewTransition:_,unstable_defaultShouldRevalidate:B,...Y},Q)=>{let{unstable_useTransitions:q}=j.useContext(Ot),Z=ng(),G=ug(x,{relative:m}),ee=b.toLowerCase()==="get"?"get":"post",w=typeof x=="string"&&Zh.test(x),L=J=>{if(y&&y(J),J.defaultPrevented)return;J.preventDefault();let oe=J.nativeEvent.submitter,H=(oe==null?void 0:oe.getAttribute("formmethod"))||b,I=()=>Z(oe||J.currentTarget,{fetcherKey:s,method:H,navigate:f,replace:h,state:v,relative:m,preventScrollReset:T,viewTransition:_,unstable_defaultShouldRevalidate:B});q&&f!==!1?j.startTransition(()=>I()):I()};return j.createElement("form",{ref:Q,method:ee,action:G,onSubmit:r?y:L,...Y,"data-discover":!w&&i==="render"?"true":void 0})});Ip.displayName="Form";function Pp(i){return`${i} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function kh(i){let s=j.useContext(Ga);return Oe(s,Pp(i)),s}function eg(i,{target:s,replace:f,unstable_mask:r,state:h,preventScrollReset:v,relative:b,viewTransition:x,unstable_defaultShouldRevalidate:y,unstable_useTransitions:m}={}){let T=Is(),_=Lt(),B=Qn(i,{relative:b});return j.useCallback(Y=>{if(Cp(Y,s)){Y.preventDefault();let Q=f!==void 0?f:Yn(_)===Yn(B),q=()=>T(i,{replace:Q,unstable_mask:r,state:h,preventScrollReset:v,relative:b,viewTransition:x,unstable_defaultShouldRevalidate:y});m?j.startTransition(()=>q()):q()}},[_,T,B,f,r,h,s,i,v,b,x,y,m])}function tg(i){Bt(typeof URLSearchParams<"u","You cannot use the `useSearchParams` hook in a browser that does not support the URLSearchParams API. If you need to support Internet Explorer 11, we recommend you load a polyfill such as https://github.com/ungap/url-search-params.");let s=j.useRef(Js(i)),f=j.useRef(!1),r=Lt(),h=j.useMemo(()=>Op(r.search,f.current?null:s.current),[r.search]),v=Is(),b=j.useCallback((x,y)=>{const m=Js(typeof x=="function"?x(new URLSearchParams(h)):x);f.current=!0,v("?"+m,y)},[v,h]);return[h,b]}var lg=0,ag=()=>`__${String(++lg)}__`;function ng(){let{router:i}=kh("useSubmit"),{basename:s}=j.useContext(Ot),f=bp(),r=i.fetch,h=i.navigate;return j.useCallback(async(v,b={})=>{let{action:x,method:y,encType:m,formData:T,body:_}=Up(v,s);if(b.navigate===!1){let B=b.fetcherKey||ag();await r(B,f,b.action||x,{unstable_defaultShouldRevalidate:b.unstable_defaultShouldRevalidate,preventScrollReset:b.preventScrollReset,formData:T,body:_,formMethod:b.method||y,formEncType:b.encType||m,flushSync:b.flushSync})}else await h(b.action||x,{unstable_defaultShouldRevalidate:b.unstable_defaultShouldRevalidate,preventScrollReset:b.preventScrollReset,formData:T,body:_,formMethod:b.method||y,formEncType:b.encType||m,replace:b.replace,state:b.state,fromRouteId:f,flushSync:b.flushSync,viewTransition:b.viewTransition})},[r,h,s,f])}function ug(i,{relative:s}={}){let{basename:f}=j.useContext(Ot),r=j.useContext(Vt);Oe(r,"useFormAction must be used inside a RouteContext");let[h]=r.matches.slice(-1),v={...Qn(i||".",{relative:s})},b=Lt();if(i==null){v.search=b.search;let x=new URLSearchParams(v.search),y=x.getAll("index");if(y.some(T=>T==="")){x.delete("index"),y.filter(_=>_).forEach(_=>x.append("index",_));let T=x.toString();v.search=T?`?${T}`:""}}return(!i||i===".")&&h.route.index&&(v.search=v.search?v.search.replace(/^\?/,"?index&"):"?index"),f!=="/"&&(v.pathname=v.pathname==="/"?f:Ht([f,v.pathname])),Yn(v)}function ig(i,{relative:s}={}){let f=j.useContext(Bh);Oe(f!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:r}=kh("useViewTransitionState"),h=Qn(i,{relative:s});if(!f.isTransitioning)return!1;let v=fl(f.currentLocation.pathname,r)||f.currentLocation.pathname,b=fl(f.nextLocation.pathname,r)||f.nextLocation.pathname;return di(h.pathname,b)!=null||di(h.pathname,v)!=null}let qa=null,qn=null;const cg=3e4;function sg(){return"/admin/host-admin-token"}function rg(){const i=`${window.location.pathname}${window.location.search}`;return`/login?next=${encodeURIComponent(i)}`}function Kh(){return window.location.replace(rg()),new Promise(()=>{})}async function Mt(){const i=Date.now();return qa&&qa.expiresAt-i>cg?qa.token:qn||(qn=fg().finally(()=>{qn=null}),qn)}async function fg(){const i=await fetch(sg(),{method:"GET",headers:{accept:"application/json"},credentials:"same-origin"});if(i.status===401)return qa=null,Kh();if(!i.ok)throw new Error(`/admin/host-admin-token failed: ${i.status} ${await i.text()}`);const s=await i.json();if(!s.token||!s.expires_at)throw new Error("/admin/host-admin-token returned malformed body");return qa={token:s.token,expiresAt:new Date(s.expires_at).getTime()},s.token}function lt(){qa=null}class ne extends Error{constructor(s,f){super(f),this.status=s,this.name="HttpError"}}async function og(){const i=await fetch("/.well-known/parachute.json",{headers:{accept:"application/json"}});if(!i.ok)throw new ne(i.status,`well-known fetch failed: ${i.status}`);const s=await i.json(),f=s.vaults??[],r=s.services??[];return f.map(h=>{const v={name:h.name,url:h.url,version:h.version,path:dg(h.name,h.url,r)};return h.managementUrl&&(v.managementUrl=h.managementUrl),v})}function dg(i,s,f){const r=f.find(h=>h.name===`parachute-vault-${i}`||h.path===`/vault/${i}`);if(r)return r.path;try{return new URL(s).pathname}catch{return`/vault/${i}`}}async function hg(i){const s=await Mt(),f=await fetch("/vaults",{method:"POST",headers:{"content-type":"application/json",accept:"application/json",authorization:`Bearer ${s}`},body:JSON.stringify(i)});if(f.status===401||f.status===403)throw lt(),new ne(f.status,await me(f));if(!f.ok)throw new ne(f.status,await me(f));return await f.json()}async function mg(i){const s=await fetch(`/admin/vault-admin-token/${encodeURIComponent(i)}`,{method:"GET",headers:{accept:"application/json"},credentials:"same-origin"});if(s.status===401)return Kh();if(!s.ok)throw new ne(s.status,await me(s));const f=await s.json();if(!f.token||!f.expires_at)throw new ne(500,"/admin/vault-admin-token returned malformed body");return{token:f.token,expiresAt:f.expires_at,scopes:f.scopes??[]}}async function vg(i={}){const s=await Mt(),f=i.vault?`?vault=${encodeURIComponent(i.vault)}`:"",r=await fetch(`/api/grants${f}`,{method:"GET",headers:{accept:"application/json",authorization:`Bearer ${s}`}});if(r.status===401||r.status===403)throw lt(),new ne(r.status,await me(r));if(!r.ok)throw new ne(r.status,await me(r));return(await r.json()).grants??[]}async function yg(i){const s=await Mt(),f=await fetch(`/api/grants/${encodeURIComponent(i)}`,{method:"DELETE",headers:{authorization:`Bearer ${s}`}});if(f.status===401||f.status===403)throw lt(),new ne(f.status,await me(f));if(!f.ok)throw new ne(f.status,await me(f))}async function pg(){const i=await fetch("/api/me",{method:"GET",headers:{accept:"application/json"},credentials:"same-origin"});if(!i.ok)throw new ne(i.status,await me(i));return await i.json()}async function gg(i){const s=new URLSearchParams({__csrf:i}),f=await fetch("/logout",{method:"POST",headers:{"content-type":"application/x-www-form-urlencoded",accept:"text/html, application/json"},credentials:"same-origin",body:s,redirect:"manual"});if(!(f.status===0||f.ok||f.status===302))throw new ne(f.status,await me(f))}function Sg(i,s){if(/^https?:\/\//i.test(s))return s;const f=i.replace(/\/+$/,""),r=s.startsWith("/")?s:`/${s}`;return`${f}${r}`}async function _h(i={}){const s=new URLSearchParams;i.revoked&&s.set("revoked",i.revoked),i.subject&&s.set("subject",i.subject),i.createdVia&&s.set("created_via",i.createdVia),i.cursor&&s.set("cursor",i.cursor);const f=s.toString(),r=f?`/api/auth/tokens?${f}`:"/api/auth/tokens",h=await Mt(),v=await fetch(r,{method:"GET",headers:{accept:"application/json",authorization:`Bearer ${h}`}});if(v.status===401||v.status===403)throw lt(),new ne(v.status,await me(v));if(!v.ok)throw new ne(v.status,await me(v));return await v.json()}async function bg(i){const s=await Mt(),f=await fetch("/api/auth/mint-token",{method:"POST",headers:{"content-type":"application/json",accept:"application/json",authorization:`Bearer ${s}`},body:JSON.stringify(i)});if(f.status===401||f.status===403)throw lt(),new ne(f.status,await me(f));if(!f.ok)throw new ne(f.status,await me(f));return await f.json()}async function xg(i){const s=await Mt(),f=await fetch("/api/auth/revoke-token",{method:"POST",headers:{"content-type":"application/json",accept:"application/json",authorization:`Bearer ${s}`},body:JSON.stringify({jti:i})});if(f.status===401||f.status===403)throw lt(),new ne(f.status,await me(f));if(!f.ok)throw new ne(f.status,await me(f));return await f.json()}async function Eg(i){const s=await Mt(),f=await fetch(`/api/oauth/clients/${encodeURIComponent(i)}`,{method:"GET",headers:{accept:"application/json",authorization:`Bearer ${s}`}});if(f.status===401||f.status===403)throw lt(),new ne(f.status,await me(f));if(!f.ok)throw new ne(f.status,await me(f));return await f.json()}async function jg(i){const s=await Mt(),f=await fetch(`/api/oauth/clients/${encodeURIComponent(i)}/approve`,{method:"POST",headers:{accept:"application/json",authorization:`Bearer ${s}`}});if(f.status===401||f.status===403)throw lt(),new ne(f.status,await me(f));if(!f.ok)throw new ne(f.status,await me(f));return await f.json()}async function Tg(){const i=await Mt(),s=await fetch("/api/modules",{method:"GET",headers:{accept:"application/json",authorization:`Bearer ${i}`}});if(s.status===401||s.status===403)throw lt(),new ne(s.status,await me(s));if(!s.ok)throw new ne(s.status,await me(s));return await s.json()}async function yi(i,s){const f=await Mt();return await fetch(`/api/modules/${encodeURIComponent(i)}/${s}`,{method:"POST",headers:{accept:"application/json",authorization:`Bearer ${f}`}})}async function _g(i){const s=await yi(i,"install");if(s.status===401||s.status===403)throw lt(),new ne(s.status,await me(s));if(!s.ok)throw new ne(s.status,await me(s));return(await s.json()).operation_id}async function Ag(i){const s=await yi(i,"upgrade");if(s.status===401||s.status===403)throw lt(),new ne(s.status,await me(s));if(!s.ok)throw new ne(s.status,await me(s));return(await s.json()).operation_id}async function zg(i){const s=await yi(i,"restart");if(s.status===401||s.status===403)throw lt(),new ne(s.status,await me(s));if(!s.ok)throw new ne(s.status,await me(s));return await s.json()}async function Rg(i){const s=await yi(i,"uninstall");if(s.status===401||s.status===403)throw lt(),new ne(s.status,await me(s));if(!s.ok)throw new ne(s.status,await me(s));return await s.json()}async function Ng(i){const s=await Mt(),f=await fetch("/api/modules/channel",{method:"PUT",headers:{"content-type":"application/json",accept:"application/json",authorization:`Bearer ${s}`},body:JSON.stringify({channel:i})});if(f.status===401||f.status===403)throw lt(),new ne(f.status,await me(f));if(!f.ok)throw new ne(f.status,await me(f));return(await f.json()).channel}async function Cg(i){const s=await Mt(),f=await fetch(`/api/modules/operations/${encodeURIComponent(i)}`,{method:"GET",headers:{accept:"application/json",authorization:`Bearer ${s}`}});if(f.status===401||f.status===403)throw lt(),new ne(f.status,await me(f));if(!f.ok)throw new ne(f.status,await me(f));return await f.json()}async function me(i){try{const s=await i.text(),f=JSON.parse(s);if(f.error_description)return f.error_description;if(f.error)return f.error;if(s)return s}catch{}return`${i.status} ${i.statusText}`}function Og(){const{clientId:i}=fp(),s=i??"",[f,r]=j.useState({kind:"loading"}),[h,v]=j.useState({kind:"idle"}),[b,x]=j.useState(0);j.useEffect(()=>{if(!s){r({kind:"error",message:"missing client id in URL"});return}let m=!1;return r({kind:"loading"}),Eg(s).then(T=>{m||(r({kind:"ok",client:T}),T.status==="approved"&&v({kind:"approved",alreadyApproved:!0}))}).catch(T=>{if(m)return;if(T instanceof ne&&T.status===404){r({kind:"not_found"});return}const _=T instanceof Error?T.message:String(T);r({kind:"error",message:_})}),()=>{m=!0}},[s,b]);async function y(){v({kind:"approving"});try{const m=await jg(s);v({kind:"approved",alreadyApproved:m.already_approved})}catch(m){const T=m instanceof ne?`approve failed (${m.status}): ${m.message}`:m instanceof Error?m.message:String(m);v({kind:"error",message:T})}}return o.jsxs("div",{children:[o.jsx("div",{className:"list-header",children:o.jsx("h2",{children:"Approve app"})}),Mg({loadState:f,action:h,onApprove:y,onRetry:()=>x(m=>m+1)})]})}function Mg({loadState:i,action:s,onApprove:f,onRetry:r}){if(i.kind==="loading")return o.jsx("p",{className:"muted",children:"Loading…"});if(i.kind==="not_found")return o.jsxs("div",{className:"empty empty-rich",children:[o.jsx("p",{className:"empty-headline",children:"Unknown client."}),o.jsxs("p",{className:"muted",children:["This client_id isn't registered with this hub. The deep link may be stale, or the requesting app may have been registered against a different hub."," ",o.jsx(Pe,{to:"/permissions",children:"Back to permissions"}),"."]})]});if(i.kind==="error")return o.jsxs(o.Fragment,{children:[o.jsxs("div",{className:"error-banner",children:["Couldn't load the client: ",o.jsx("code",{children:i.message})]}),o.jsx("button",{type:"button",onClick:r,className:"secondary",children:"Retry"})]});const{client:h}=i,v=h.client_name??h.client_id;if(s.kind==="approved")return o.jsxs("div",{className:"empty empty-rich",children:[o.jsx("p",{className:"empty-headline",children:s.alreadyApproved?"Already approved.":"Approved."}),o.jsxs("p",{className:"muted",children:[o.jsx("code",{children:v})," ",s.alreadyApproved?"was already on this hub's approved list.":"can now run an OAuth flow with this hub."," ","Return to the app that sent you here and retry the action — the request will go through now."]}),o.jsx("p",{className:"muted",style:{marginTop:"1rem"},children:o.jsx(Pe,{to:"/permissions",children:"View permissions"})})]});const b=s.kind==="approving",x=s.kind==="error"?s.message:null;return o.jsxs("div",{children:[o.jsx("p",{className:"muted",children:"An app is asking this hub to issue OAuth tokens. Review the details below and approve only if you recognize the app."}),o.jsx("div",{className:"vault-row",style:{marginTop:"1rem"},children:o.jsxs("div",{className:"body",children:[o.jsx("div",{className:"name",children:o.jsx("code",{children:v})}),o.jsxs("div",{className:"dim",children:[o.jsx("span",{className:"muted",children:"client_id: "}),o.jsx("code",{children:h.client_id})]}),o.jsxs("div",{className:"dim",style:{marginTop:"0.25rem"},children:[o.jsx("span",{className:"muted",children:"redirect_uris: "}),h.redirect_uris.map((y,m)=>o.jsxs("span",{children:[o.jsx("code",{children:y}),m<h.redirect_uris.length-1?" ":null]},y))]}),h.scopes.length>0?o.jsxs("div",{className:"dim",style:{marginTop:"0.25rem"},children:[o.jsx("span",{className:"muted",children:"requested scopes: "}),h.scopes.map((y,m)=>o.jsxs("span",{children:[o.jsx("code",{children:y}),m<h.scopes.length-1?" ":null]},y))]}):null,o.jsxs("div",{className:"dim",style:{marginTop:"0.25rem"},children:[o.jsx("span",{className:"muted",children:"registered: "}),o.jsx("code",{title:h.registered_at,children:h.registered_at})]}),x?o.jsx("div",{className:"error-banner",style:{marginTop:"0.5rem"},children:o.jsx("code",{children:x})}):null]})}),o.jsxs("div",{style:{marginTop:"1rem",display:"flex",gap:"0.5rem"},children:[o.jsx("button",{type:"button",onClick:()=>{f()},disabled:b,children:b?"Approving…":`Approve ${v}`}),o.jsx(Pe,{to:"/permissions",className:"secondary",style:{alignSelf:"center"},children:"Cancel"})]})]})}const Dg=1e3;function Ug(){const[i,s]=j.useState({kind:"loading"}),[f,r]=j.useState([]),[h,v]=j.useState({}),[b,x]=j.useState({}),y=j.useCallback(async()=>{try{const w=await Tg();s({kind:"ok",catalog:w})}catch(w){const L=w instanceof Error?w.message:String(w);s({kind:"error",message:L})}},[]);j.useEffect(()=>{y()},[y]);const m=j.useRef(null);j.useEffect(()=>{if(f.length===0){m.current&&(clearInterval(m.current),m.current=null);return}if(!m.current)return m.current=setInterval(()=>{Promise.all(f.map(async w=>{try{const L=await Cg(w.operationId);r(J=>J.map(oe=>oe.operationId===L.id?{...oe,log:L.log,status:L.status,error:L.error}:oe)),(L.status==="succeeded"||L.status==="failed")&&setTimeout(()=>{r(J=>J.filter(oe=>oe.operationId!==L.id)),y()},1500)}catch(L){const J=L instanceof Error?L.message:String(L);r(oe=>oe.map(H=>H.operationId===w.operationId?{...H,status:"failed",error:J}:H))}}))},Dg),()=>{m.current&&(clearInterval(m.current),m.current=null)}},[f,y]);async function T(w){try{const L=await _g(w);r(J=>[...J,{kind:"install",operationId:L,short:w,log:[],status:"pending"}])}catch(L){x(J=>({...J,[w]:L instanceof Error?L.message:String(L)}))}}async function _(w){try{const L=await Ag(w);r(J=>[...J,{kind:"upgrade",operationId:L,short:w,log:[],status:"pending"}])}catch(L){x(J=>({...J,[w]:L instanceof Error?L.message:String(L)}))}}async function B(w){if(!h[w]){v(L=>({...L,[w]:!0})),x(L=>{const J={...L};return delete J[w],J});try{await zg(w),await y()}catch(L){x(J=>({...J,[w]:L instanceof Error?L.message:String(L)}))}finally{v(L=>({...L,[w]:!1}))}}}async function Y(w){if(!h[w]&&window.confirm(`Uninstall ${w}? The container will stop the service, remove the package, and drop its services.json entry. The persistent disk's data dir is left intact.`)){v(L=>({...L,[w]:!0})),x(L=>{const J={...L};return delete J[w],J});try{await Rg(w),await y()}catch(L){x(J=>({...J,[w]:L instanceof Error?L.message:String(L)}))}finally{v(L=>({...L,[w]:!1}))}}}if(i.kind==="loading")return o.jsx("div",{className:"empty",children:"Loading modules…"});if(i.kind==="error")return i.message.includes("setup_required")?o.jsxs("div",{className:"empty",children:["Hub not yet configured. ",o.jsx("a",{href:"/admin/setup",children:"Finish first-boot setup"})," first."]}):o.jsxs("div",{className:"empty",children:["Failed to load modules: ",i.message,"."," ",o.jsx("button",{type:"button",onClick:()=>void y(),children:"Retry"})]});const Q=i.catalog,{modules:q,supervisor_available:Z,module_install_channel:G}=Q;async function ee(w){if(w!==G){s({kind:"ok",catalog:{...Q,module_install_channel:w}});try{const L=await Ng(w);s(J=>J.kind==="ok"?{kind:"ok",catalog:{...J.catalog,module_install_channel:L}}:J)}catch(L){const J=L instanceof Error?L.message:String(L);s({kind:"error",message:`Failed to update channel — ${J}`})}}}return o.jsxs("section",{className:"modules",children:[o.jsx("h1",{children:"Modules"}),o.jsx("p",{className:"muted",children:"Install, upgrade, and manage Parachute modules. Available modules are pinned for the v0.6 release; the marketplace is on the roadmap."}),o.jsx(Bg,{channel:G,disabled:!Z,onChange:w=>void ee(w)}),!Z&&o.jsxs("div",{className:"banner banner-info",children:["This hub is running outside container mode (no supervisor wired). Module install / restart / upgrade is available only under ",o.jsx("code",{children:"parachute serve"}),". On-box installs use"," ",o.jsx("code",{children:"parachute install vault"})," etc. from a shell instead."]}),f.length>0&&o.jsxs("div",{className:"banner",children:[o.jsx("strong",{children:"In progress:"}),o.jsx("ul",{children:f.map(w=>o.jsxs("li",{children:[o.jsx("code",{children:w.short})," · ",w.kind," · status: ",w.status,w.error?` · error: ${w.error}`:null,w.log.length>0&&o.jsxs("details",{children:[o.jsxs("summary",{children:[w.log.length," log line(s)"]}),o.jsx("pre",{children:w.log.join(`
61
+ `)})]})]},w.operationId))})]}),o.jsx("ul",{className:"module-list",children:q.map(w=>o.jsx(wg,{module:w,supervisorAvailable:Z,syncBusy:!!h[w.short],errorMessage:b[w.short],onInstall:()=>void T(w.short),onUpgrade:()=>void _(w.short),onRestart:()=>void B(w.short),onUninstall:()=>void Y(w.short)},w.short))})]})}function wg({module:i,supervisorAvailable:s,syncBusy:f,errorMessage:r,onInstall:h,onUpgrade:v,onRestart:b,onUninstall:x}){const y=s&&!f,m=i.installed&&i.installed_version!==i.latest_version&&i.latest_version!==null;return o.jsxs("li",{className:"module-row","data-short":i.short,children:[o.jsxs("header",{children:[o.jsxs("h2",{children:[i.display_name," ",o.jsxs("span",{className:"muted",children:["(",i.short,")"]})]}),o.jsx("span",{className:`status status-${i.supervisor_status??"absent"}`,children:Hg(i)})]}),i.tagline?o.jsx("p",{className:"tagline",children:i.tagline}):null,o.jsxs("dl",{className:"meta",children:[o.jsx("dt",{children:"Package"}),o.jsx("dd",{children:o.jsx("code",{children:i.package})}),i.installed&&o.jsxs(o.Fragment,{children:[o.jsx("dt",{children:"Installed"}),o.jsxs("dd",{children:["v",i.installed_version??"unknown",m&&o.jsxs("span",{className:"badge",children:["v",i.latest_version," available"]})]})]}),!i.installed&&i.latest_version&&o.jsxs(o.Fragment,{children:[o.jsx("dt",{children:"Latest on npm"}),o.jsxs("dd",{children:["v",i.latest_version]})]}),i.pid&&o.jsxs(o.Fragment,{children:[o.jsx("dt",{children:"PID"}),o.jsx("dd",{children:i.pid})]})]}),o.jsxs("div",{className:"actions",children:[!i.installed&&o.jsx("button",{type:"button",disabled:!y,onClick:h,children:"Install"}),i.installed&&o.jsxs(o.Fragment,{children:[o.jsx("button",{type:"button",disabled:!y,onClick:b,children:"Restart"}),o.jsx("button",{type:"button",disabled:!y||!m,onClick:v,children:m?`Upgrade to v${i.latest_version}`:"Up to date"}),o.jsx("button",{type:"button",className:"destructive",disabled:!y,onClick:x,children:"Uninstall"})]})]}),r&&o.jsx("div",{className:"error",children:r})]})}function Hg(i){return i.installed?i.supervisor_status?i.supervisor_status:"not supervised":"not installed"}function Bg({channel:i,disabled:s,onChange:f}){return o.jsxs("fieldset",{className:"channel-toggle","data-testid":"channel-toggle",children:[o.jsx("legend",{children:"Install channel"}),o.jsxs("label",{children:[o.jsx("input",{type:"radio",name:"module-install-channel",value:"latest",checked:i==="latest",disabled:s,onChange:()=>f("latest")}),"Stable (",o.jsx("code",{children:"latest"}),")"]}),o.jsxs("label",{children:[o.jsx("input",{type:"radio",name:"module-install-channel",value:"rc",checked:i==="rc",disabled:s,onChange:()=>f("rc")}),"Release candidates (",o.jsx("code",{children:"rc"}),")"]}),o.jsxs("p",{className:"muted",children:["All future module installs and upgrades use this channel. Existing installed modules are unaffected — use ",o.jsx("strong",{children:"Upgrade"})," to pull a newer version."]})]})}const Lg=/^[a-zA-Z0-9_-]+$/,qg=new Set(["list"]);function Yg(){const i=Is(),[s,f]=j.useState(""),[r,h]=j.useState({kind:"idle"}),v=r.kind==="created"&&r.result.token!=null;j.useEffect(()=>{if(!v)return;const y=m=>{m.preventDefault(),m.returnValue=""};return window.addEventListener("beforeunload",y),()=>window.removeEventListener("beforeunload",y)},[v]);const b=Xg(s),x=async y=>{if(y.preventDefault(),!b){h({kind:"submitting"});try{const m=await hg({name:s});h({kind:"created",result:m})}catch(m){const T=m instanceof ne?`${m.status}: ${m.message}`:m instanceof Error?m.message:String(m);h({kind:"error",message:T})}}};return r.kind==="created"?o.jsx(Gg,{result:r.result,onDone:()=>i(`/${encodeURIComponent(r.result.name)}`)}):o.jsxs("div",{children:[o.jsx("h2",{children:"Create a vault"}),o.jsxs("p",{className:"muted",children:["A vault stores tokens, secrets, and notes scoped to this hub. The hub provisions it via"," ",o.jsx("code",{children:"parachute-vault create"})," on the host filesystem and registers it in"," ",o.jsx("code",{children:"services.json"}),"."]}),r.kind==="error"&&o.jsxs("div",{className:"error-banner",children:["Couldn't create vault: ",o.jsx("code",{children:r.message})]}),o.jsxs("form",{onSubmit:x,className:"section",children:[o.jsxs("div",{className:"row",children:[o.jsx("label",{htmlFor:"vault-name",children:"Vault name"}),o.jsx("input",{id:"vault-name",type:"text",value:s,onChange:y=>f(y.target.value),placeholder:"e.g. work, home, scratch",disabled:r.kind==="submitting"}),b?o.jsx("div",{className:"field-error",children:b}):o.jsxs("div",{className:"field-hint",children:["Letters, numbers, hyphens, and underscores. Becomes the path under"," ",o.jsx("code",{children:"/vault/<name>"}),"."]})]}),o.jsxs("div",{className:"actions",children:[o.jsx("button",{type:"submit",disabled:s.length===0||!!b||r.kind==="submitting",children:r.kind==="submitting"?"Creating…":"Create vault"}),o.jsx(Pe,{to:"/vaults",className:"muted",children:"Cancel"})]})]})]})}function Gg({result:i,onDone:s}){const[f,r]=j.useState(!1),h=async()=>{if(i.token)try{await navigator.clipboard.writeText(i.token),r(!0),setTimeout(()=>r(!1),2e3)}catch{}};return o.jsxs("div",{children:[o.jsx("h2",{children:"Vault created"}),i.token?o.jsxs("div",{className:"mint-banner",children:[o.jsx("h3",{children:"Your vault token (shown once)"}),o.jsx("p",{className:"muted",children:"This is the only time the hub will show this token. Copy it and store it somewhere safe — a password manager, the operator's notes, parachute-agent's secrets store. If you lose it, you'll need to mint a new one from the vault directly."}),o.jsxs("div",{className:"token-box",children:[o.jsx("code",{children:i.token}),o.jsx("button",{type:"button",onClick:h,className:"secondary",children:f?"Copied":"Copy"})]}),o.jsx("p",{className:"warn",children:"⚠ Don't navigate away until you've saved this token."}),o.jsx("div",{className:"actions",children:o.jsx("button",{type:"button",onClick:s,children:"Done — I've saved the token"})})]}):o.jsxs("div",{className:"section",children:[o.jsxs("p",{children:["Vault ",o.jsx("code",{children:i.name})," already existed; nothing new was minted. Use the existing token, or mint a fresh one from the vault directly with"," ",o.jsx("code",{children:"parachute-vault mint-token"}),"."]}),o.jsx("div",{className:"actions",children:o.jsx(Pe,{to:`/${encodeURIComponent(i.name)}`,children:o.jsx("button",{type:"button",children:"Continue"})})})]}),o.jsxs("div",{className:"kv section",children:[o.jsx("div",{children:"Name"}),o.jsx("div",{children:o.jsx("code",{children:i.name})}),o.jsx("div",{children:"URL"}),o.jsx("div",{children:o.jsx("code",{children:i.url})}),o.jsx("div",{children:"Version"}),o.jsx("div",{children:o.jsx("code",{children:i.version})}),i.paths&&o.jsxs(o.Fragment,{children:[o.jsx("div",{children:"Vault dir"}),o.jsx("div",{children:o.jsx("code",{children:i.paths.vault_dir})}),o.jsx("div",{children:"Database"}),o.jsx("div",{children:o.jsx("code",{children:i.paths.vault_db})}),o.jsx("div",{children:"Config"}),o.jsx("div",{children:o.jsx("code",{children:i.paths.vault_config})})]})]})]})}function Xg(i){return i.length===0?null:Lg.test(i)?qg.has(i)?`"${i}" is a reserved name.`:null:"Letters, numbers, hyphens, and underscores only."}function Qg(){const[i,s]=j.useState({kind:"loading"}),[f,r]=j.useState(""),[h,v]=j.useState(""),[b,x]=j.useState(0),[y,m]=j.useState({kind:"idle"});j.useEffect(()=>{let Y=!1;return s({kind:"loading"}),vg(h?{vault:h}:{}).then(q=>{Y||s({kind:"ok",grants:q})}).catch(q=>{if(Y)return;const Z=q instanceof Error?q.message:String(q);s({kind:"error",message:Z})}),()=>{Y=!0}},[b,h]);function T(Y){Y.preventDefault(),v(f.trim())}function _(){r(""),v("")}async function B(Y){m({kind:"revoking",clientId:Y.client_id});try{await yg(Y.client_id),m({kind:"idle"}),x(Q=>Q+1)}catch(Q){const q=Q instanceof ne?`revoke failed (${Q.status}): ${Q.message}`:Q instanceof Error?Q.message:String(Q);m({kind:"error",clientId:Y.client_id,message:q})}}return o.jsxs("div",{children:[o.jsx("div",{className:"list-header",children:o.jsx("h2",{children:"Permissions"})}),o.jsxs("p",{className:"muted",children:["Apps you've granted OAuth scopes to. Revoking a grant forces the consent screen on the next authorize flow — it does ",o.jsx("em",{children:"not"})," invalidate tokens already issued."]}),o.jsxs("form",{onSubmit:T,style:{marginTop:"1rem",marginBottom:"1rem"},children:[o.jsx("label",{htmlFor:"vault-filter",className:"muted",style:{marginRight:"0.5rem"},children:"Filter by vault:"}),o.jsx("input",{id:"vault-filter",type:"text",value:f,onChange:Y=>r(Y.target.value),placeholder:"e.g. work",style:{marginRight:"0.5rem"}}),o.jsx("button",{type:"submit",children:"Apply"}),h?o.jsx("button",{type:"button",onClick:_,className:"secondary",style:{marginLeft:"0.5rem"},children:"Clear"}):null]}),Vg({state:i,revoke:y,setRevoke:m,onConfirm:B,onRetry:()=>x(Y=>Y+1)})]})}function Vg({state:i,revoke:s,setRevoke:f,onConfirm:r,onRetry:h}){return i.kind==="loading"?o.jsx("p",{className:"muted",children:"Loading…"}):i.kind==="error"?o.jsxs(o.Fragment,{children:[o.jsxs("div",{className:"error-banner",children:["Couldn't load grants: ",o.jsx("code",{children:i.message})]}),o.jsx("button",{type:"button",onClick:h,className:"secondary",children:"Retry"})]}):i.grants.length===0?o.jsxs("div",{className:"empty empty-rich",children:[o.jsx("p",{className:"empty-headline",children:"No grants."}),o.jsx("p",{className:"muted",children:"When an app asks for OAuth scopes and you approve them, the grant lands here. Revoking it forces the consent screen on the next authorize flow."})]}):o.jsx("div",{style:{marginTop:"1rem"},children:i.grants.map(v=>{const b=s.kind==="revoking"&&s.clientId===v.client_id,x=s.kind==="error"&&s.clientId===v.client_id?s:null,y=s.kind==="confirming"&&s.grant.client_id===v.client_id;return o.jsxs("div",{className:"vault-row",children:[o.jsxs("div",{className:"body",children:[o.jsx("div",{className:"name",children:o.jsx("code",{children:v.client_name??v.client_id})}),o.jsxs("div",{className:"dim",children:[o.jsx("span",{className:"muted",children:"granted "}),o.jsx("code",{title:v.granted_at,children:Zg(v.granted_at)})]}),o.jsxs("div",{className:"dim",style:{marginTop:"0.25rem"},children:[o.jsx("span",{className:"muted",children:"scopes: "}),v.scopes.map((m,T)=>o.jsxs("span",{children:[o.jsx("code",{children:m}),T<v.scopes.length-1?" ":null]},m))]}),x?o.jsx("div",{className:"error-banner",style:{marginTop:"0.5rem"},children:o.jsx("code",{children:x.message})}):null,y?o.jsxs("dialog",{open:!0,className:"error-banner",style:{marginTop:"0.5rem",background:"var(--bg-warn, #fffbe6)"},"aria-label":`Confirm revoke ${v.client_name??v.client_id}`,children:[o.jsxs("p",{children:["Revoke ",o.jsx("code",{children:v.client_name??v.client_id}),"? Next OAuth flow for this app will prompt you to consent again."]}),o.jsxs("div",{style:{display:"flex",gap:"0.5rem",marginTop:"0.5rem"},children:[o.jsx("button",{type:"button",onClick:()=>{r(v)},disabled:b,children:b?"Revoking…":"Revoke"}),o.jsx("button",{type:"button",className:"secondary",onClick:()=>f({kind:"idle"}),disabled:b,children:"Cancel"})]})]}):null]}),y?null:o.jsx("button",{type:"button",className:"secondary",onClick:()=>f({kind:"confirming",grant:v}),"aria-label":`Revoke ${v.client_name??v.client_id}`,children:"Revoke"})]},v.client_id)})})}function Zg(i){const s=new Date(i);return Number.isNaN(s.getTime())?i:s.toLocaleString()}const Vs={scope:"",audience:"",expiresIn:"",subject:"",permissions:""};function kg(){const[i,s]=tg(),f=$g(i.get("status")),r=Wg(i.get("source")),[h,v]=j.useState({kind:"loading"}),[b,x]=j.useState(0),[y,m]=j.useState({kind:"idle"}),[T,_]=j.useState(Vs),[B,Y]=j.useState({kind:"idle"}),[Q,q]=j.useState(!1),[Z,G]=j.useState(!1);function ee(H,I){s(xe=>{const Ve=new URLSearchParams(xe);return I==="all"?Ve.delete(H):Ve.set(H,I),Ve},{replace:!0})}j.useEffect(()=>{let H=!1;return v({kind:"loading"}),_h(Ah(f,r)).then(I=>{H||v({kind:"ok",tokens:I.tokens,nextCursor:I.next_cursor})}).catch(I=>{if(H)return;const xe=I instanceof Error?I.message:String(I);v({kind:"error",message:xe})}),()=>{H=!0}},[b,f,r]);async function w(){if(h.kind!=="ok"||!h.nextCursor||Z)return;const H={...Ah(f,r),cursor:h.nextCursor};G(!0);try{const I=await _h(H);v({kind:"ok",tokens:[...h.tokens,...I.tokens],nextCursor:I.next_cursor})}catch(I){const xe=I instanceof Error?I.message:String(I);v({kind:"error",message:xe})}finally{G(!1)}}async function L(H){H.preventDefault();const I=T.scope.trim();if(I.length===0){m({kind:"error",message:"scope is required"});return}let xe;if(T.permissions.trim().length>0)try{const he=JSON.parse(T.permissions);if(he===null||typeof he!="object"||Array.isArray(he)){m({kind:"error",message:'permissions must be a JSON object (e.g. {"vault":{"default":...}})'});return}xe=he}catch(he){const Me=he instanceof Error?he.message:String(he);m({kind:"error",message:`permissions is not valid JSON — ${Me}`});return}let Ve;if(T.expiresIn.trim().length>0){const he=Number(T.expiresIn);if(!Number.isInteger(he)||he<=0){m({kind:"error",message:"expires_in must be a positive integer (seconds)"});return}Ve=he}m({kind:"submitting"});try{const he=await bg({scope:I,...T.audience.trim()?{audience:T.audience.trim()}:{},...Ve!==void 0?{expires_in:Ve}:{},...T.subject.trim()?{subject:T.subject.trim()}:{},...xe?{permissions:xe}:{}});m({kind:"minted",token:he}),_(Vs),q(!1),x(Me=>Me+1)}catch(he){const Me=he instanceof ne?`mint failed (${he.status}): ${he.message}`:he instanceof Error?he.message:String(he);m({kind:"error",message:Me})}}async function J(H){Y({kind:"revoking",jti:H});try{await xg(H),Y({kind:"idle"}),x(I=>I+1)}catch(I){const xe=I instanceof ne?`revoke failed (${I.status}): ${I.message}`:I instanceof Error?I.message:String(I);Y({kind:"error",jti:H,message:xe})}}function oe(H){typeof navigator<"u"&&navigator.clipboard&&navigator.clipboard.writeText(H)}return o.jsxs("div",{children:[o.jsxs("div",{className:"list-header",children:[o.jsx("h2",{children:"Tokens"}),o.jsx("button",{type:"button",onClick:()=>q(H=>!H),children:Q?"Hide form":"Mint new token"})]}),o.jsxs("p",{className:"muted",children:["The hub's token registry. Every CLI / OAuth / operator-mint writes a row here. Revoking flips ",o.jsx("code",{children:"revoked_at"}),"; resource servers on"," ",o.jsx("code",{children:"@openparachute/scope-guard@^0.2.0"})," reject within ~60s of the next poll."]}),y.kind==="minted"?o.jsxs("div",{className:"mint-banner",children:[o.jsx("h3",{children:"Minted"}),o.jsxs("p",{children:["Your new access token (jti: ",o.jsx("code",{children:y.token.jti}),"):"]}),o.jsx("div",{className:"token-box",children:o.jsx("code",{children:y.token.token})}),o.jsx("p",{className:"warn",children:"This is the only time the JWT is shown. Copy it now — there is no DB-side recovery."}),o.jsxs("div",{className:"actions",children:[o.jsx("button",{type:"button",onClick:()=>oe(y.token.token),children:"Copy"}),o.jsx("button",{type:"button",className:"secondary",onClick:()=>m({kind:"idle"}),children:"Dismiss"})]})]}):null,Q?o.jsx("div",{className:"section",children:o.jsxs("form",{onSubmit:L,children:[o.jsxs("div",{className:"row",children:[o.jsx("label",{htmlFor:"mint-scope",children:"Scope (space-separated)"}),o.jsx("input",{id:"mint-scope",type:"text",value:T.scope,onChange:H=>_({...T,scope:H.target.value}),placeholder:"e.g. scribe:transcribe vault:default:read",required:!0}),o.jsxs("div",{className:"field-hint",children:["Space-separated ",o.jsx("code",{children:"resource:verb"})," or ",o.jsx("code",{children:"resource:name:verb"})," ","tuples. The hub rejects non-requestable scopes (admin, host:*) per the privilege-diffusion guard."]})]}),o.jsxs("div",{className:"row",children:[o.jsx("label",{htmlFor:"mint-audience",children:"Audience (optional)"}),o.jsx("input",{id:"mint-audience",type:"text",value:T.audience,onChange:H=>_({...T,audience:H.target.value}),placeholder:"inferred from scope when blank"}),o.jsxs("div",{className:"field-hint",children:["Inferred from scope if omitted. ",o.jsx("code",{children:"vault:<name>:<verb>"})," →"," ",o.jsx("code",{children:"vault.<name>"}),"; otherwise the first colon-prefixed scope's namespace; fallback ",o.jsx("code",{children:"hub"}),"."]})]}),o.jsxs("div",{className:"row",children:[o.jsx("label",{htmlFor:"mint-expires-in",children:"Expires in (seconds, optional)"}),o.jsx("input",{id:"mint-expires-in",type:"text",inputMode:"numeric",value:T.expiresIn,onChange:H=>_({...T,expiresIn:H.target.value}),placeholder:"default 90d (7776000)"})]}),o.jsxs("div",{className:"row",children:[o.jsx("label",{htmlFor:"mint-subject",children:"Subject (optional)"}),o.jsx("input",{id:"mint-subject",type:"text",value:T.subject,onChange:H=>_({...T,subject:H.target.value}),placeholder:"defaults to operator's sub"})]}),o.jsxs("div",{className:"row",children:[o.jsx("label",{htmlFor:"mint-permissions",children:"Permissions (JSON object, optional)"}),o.jsx("textarea",{id:"mint-permissions",value:T.permissions,onChange:H=>_({...T,permissions:H.target.value}),placeholder:'e.g. {"vault":{"default":{"write_tags":["health"]}}}',rows:3,style:{width:"100%",fontFamily:"monospace",fontSize:"0.9rem"}})]}),y.kind==="error"?o.jsx("div",{className:"field-error",children:o.jsx("code",{children:y.message})}):null,o.jsxs("div",{className:"actions",children:[o.jsx("button",{type:"submit",disabled:y.kind==="submitting",children:y.kind==="submitting"?"Minting…":"Mint"}),o.jsx("button",{type:"button",className:"secondary",onClick:()=>{q(!1),_(Vs),m({kind:"idle"})},children:"Cancel"})]})]})}):null,o.jsxs("div",{style:{marginTop:"1rem",marginBottom:"0.5rem",display:"flex",gap:"0.5rem"},children:[o.jsx("span",{className:"muted",style:{marginRight:"0.5rem",minWidth:"4rem"},children:"Status:"}),[{value:"all",label:"Show all"},{value:"live",label:"Live only"},{value:"revoked",label:"Revoked only"}].map(H=>o.jsx("button",{type:"button",onClick:()=>ee("status",H.value),className:f===H.value?void 0:"secondary","aria-pressed":f===H.value,children:H.label},H.value))]}),o.jsxs("div",{style:{marginBottom:"1rem",display:"flex",gap:"0.5rem"},children:[o.jsx("span",{className:"muted",style:{marginRight:"0.5rem",minWidth:"4rem"},children:"Source:"}),[{value:"all",label:"All sources"},{value:"oauth_refresh",label:"OAuth"},{value:"operator_mint",label:"Operator"},{value:"cli_mint",label:"CLI mint"}].map(H=>o.jsx("button",{type:"button",onClick:()=>ee("source",H.value),className:r===H.value?void 0:"secondary","aria-pressed":r===H.value,children:H.label},H.value))]}),Kg({list:h,revoke:B,setRevoke:Y,onConfirm:J,onLoadMore:w,onRetry:()=>x(H=>H+1),loadingMore:Z,filtersActive:f!=="all"||r!=="all"})]})}function Kg({list:i,revoke:s,setRevoke:f,onConfirm:r,onLoadMore:h,onRetry:v,loadingMore:b,filtersActive:x}){return i.kind==="loading"?o.jsx("p",{className:"muted",children:"Loading…"}):i.kind==="error"?o.jsxs(o.Fragment,{children:[o.jsxs("div",{className:"error-banner",children:["Couldn't load tokens: ",o.jsx("code",{children:i.message})]}),o.jsx("button",{type:"button",onClick:v,className:"secondary",children:"Retry"})]}):i.tokens.length===0?x?o.jsxs("div",{className:"empty empty-rich",children:[o.jsx("p",{className:"empty-headline",children:"No tokens match the current filter."}),o.jsx("p",{className:"muted",children:'Try widening the Status or Source pills above. The default "Show all / All sources" view shows every registry row.'})]}):o.jsxs("div",{className:"empty empty-rich",children:[o.jsx("p",{className:"empty-headline",children:"No tokens."}),o.jsxs("p",{className:"muted",children:["Every CLI mint, OAuth grant, and operator-token rotation lands here. Mint one with the form above, or via ",o.jsx("code",{children:"parachute auth mint-token"}),"."]})]}):o.jsxs("div",{children:[i.tokens.map(y=>{const m=Jg(y),T=s.kind==="revoking"&&s.jti===y.jti,_=s.kind==="confirming"&&s.jti===y.jti,B=s.kind==="error"&&s.jti===y.jti?s:null,Y=y.user_id??y.subject??"(unknown)";return o.jsxs("div",{className:"vault-row",children:[o.jsxs("div",{className:"body",children:[o.jsxs("div",{className:"name",children:[o.jsx("code",{title:y.jti,children:ri(y.jti)}),o.jsx("span",{className:`tag${m==="live"?"":" muted"}`,children:m}),o.jsx("span",{className:`tag source-${Ig(y.created_via)}`,title:`created_via: ${y.created_via}`,children:Fg(y.created_via)})]}),o.jsxs("div",{className:"dim",style:{marginTop:"0.25rem"},children:[o.jsx("span",{className:"muted",children:"identity: "}),o.jsx("code",{children:Y}),y.client_id?o.jsxs(o.Fragment,{children:[o.jsx("span",{className:"muted",children:" · client: "}),o.jsx("code",{children:y.client_id})]}):null]}),o.jsxs("div",{className:"dim",style:{marginTop:"0.25rem"},children:[o.jsx("span",{className:"muted",children:"scope: "}),y.scopes.map((Q,q)=>o.jsxs("span",{children:[o.jsx("code",{children:Q}),q<y.scopes.length-1?" ":null]},Q))]}),o.jsxs("div",{className:"dim",style:{marginTop:"0.25rem",fontSize:"0.82rem"},children:[o.jsx("span",{className:"muted",children:"created "}),o.jsx("code",{title:y.created_at,children:Zs(y.created_at)}),o.jsx("span",{className:"muted",children:" · expires "}),o.jsx("code",{title:y.expires_at,children:Zs(y.expires_at)}),y.revoked_at?o.jsxs(o.Fragment,{children:[o.jsx("span",{className:"muted",children:" · revoked "}),o.jsx("code",{title:y.revoked_at,children:Zs(y.revoked_at)})]}):null]}),y.permissions?o.jsxs("details",{style:{marginTop:"0.35rem"},children:[o.jsx("summary",{className:"muted",style:{cursor:"pointer",fontSize:"0.85rem"},children:"permissions"}),o.jsx("pre",{style:{fontSize:"0.82rem",marginTop:"0.25rem"},children:JSON.stringify(y.permissions,null,2)})]}):null,B?o.jsx("div",{className:"error-banner",style:{marginTop:"0.5rem"},children:o.jsx("code",{children:B.message})}):null,_?o.jsxs("dialog",{open:!0,className:"error-banner",style:{marginTop:"0.5rem",background:"var(--bg-warn, #fffbe6)"},"aria-label":`Confirm revoke ${ri(y.jti)}`,children:[o.jsxs("p",{children:["Revoke ",o.jsx("code",{children:ri(y.jti)}),"? Resource servers reject within ~60s of the next revocation-list poll. This cannot be undone."]}),o.jsxs("div",{style:{display:"flex",gap:"0.5rem",marginTop:"0.5rem"},children:[o.jsx("button",{type:"button",onClick:()=>{r(y.jti)},disabled:T,children:T?"Revoking…":"Revoke"}),o.jsx("button",{type:"button",className:"secondary",onClick:()=>f({kind:"idle"}),disabled:T,children:"Cancel"})]})]}):null]}),!_&&m==="live"?o.jsx("button",{type:"button",className:"secondary",onClick:()=>f({kind:"confirming",jti:y.jti}),"aria-label":`Revoke ${ri(y.jti)}`,children:"Revoke"}):null]},y.jti)}),i.nextCursor?o.jsx("div",{style:{marginTop:"1rem"},children:o.jsx("button",{type:"button",className:"secondary",disabled:b,onClick:()=>{h()},children:b?"Loading…":"Load more"})}):null]})}function Jg(i){if(i.revoked_at)return"revoked";const s=new Date(i.expires_at).getTime();return!Number.isNaN(s)&&s<Date.now()?"expired":"live"}function $g(i){return i==="live"||i==="revoked"||i==="all"?i:"all"}function Wg(i){return i==="oauth_refresh"||i==="operator_mint"||i==="cli_mint"||i==="all"?i:"all"}function Ah(i,s){const f={};return i==="live"?f.revoked="false":i==="revoked"?f.revoked="true":f.revoked="all",s!=="all"&&(f.createdVia=s),f}function Fg(i){switch(i){case"oauth_refresh":return"OAuth";case"operator_mint":return"Operator";case"cli_mint":return"CLI";default:return i}}function Ig(i){switch(i){case"oauth_refresh":return"oauth";case"operator_mint":return"operator";case"cli_mint":return"cli";default:return"unknown"}}function ri(i){return i.length<=14?i:`${i.slice(0,8)}…${i.slice(-4)}`}function Zs(i){const s=new Date(i);return Number.isNaN(s.getTime())?i:s.toLocaleString()}function zh(){const[i,s]=j.useState({kind:"loading"}),[f,r]=j.useState(0),[h,v]=j.useState({kind:"idle"});async function b(x){if(x.managementUrl){v({kind:"minting",name:x.name});try{const y=await mg(x.name),m=Sg(x.url,x.managementUrl),T=m.includes("#")?"&":"#";window.location.assign(`${m}${T}token=${y.token}`)}catch(y){const m=y instanceof ne?`mint failed (${y.status}): ${y.message}`:y instanceof Error?y.message:String(y);v({kind:"error",name:x.name,message:m})}}}return j.useEffect(()=>{let x=!1;return og().then(y=>{x||s({kind:"ok",vaults:y})}).catch(y=>{if(x)return;const m=y instanceof Error?y.message:String(y);s({kind:"error",message:m})}),()=>{x=!0}},[f]),i.kind==="loading"?o.jsxs("div",{children:[o.jsx("div",{className:"list-header",children:o.jsx("h2",{children:"Vaults"})}),o.jsx("p",{className:"muted",children:"Loading…"})]}):i.kind==="error"?o.jsxs("div",{children:[o.jsxs("div",{className:"list-header",children:[o.jsx("h2",{children:"Vaults"}),o.jsx(Pe,{to:"/vaults/new",children:o.jsx("button",{type:"button",children:"New vault"})})]}),o.jsxs("div",{className:"error-banner",children:["Couldn't load vaults: ",o.jsx("code",{children:i.message})]}),o.jsx("button",{type:"button",onClick:()=>r(x=>x+1),className:"secondary",children:"Retry"})]}):o.jsxs("div",{children:[o.jsxs("div",{className:"list-header",children:[o.jsxs("h2",{children:["Vaults (",i.vaults.length,")"]}),o.jsx(Pe,{to:"/vaults/new",children:o.jsx("button",{type:"button",children:"New vault"})})]}),o.jsxs("p",{className:"muted",children:["Vaults registered with this hub at ",o.jsx("code",{children:"/.well-known/parachute.json"}),"."]}),i.vaults.length===0?o.jsxs("div",{className:"empty empty-rich",children:[o.jsx("p",{className:"empty-headline",children:"No vaults yet."}),o.jsx("p",{className:"muted",children:"Create your first vault to start storing tokens, secrets, and notes scoped to this hub."}),o.jsx("p",{style:{marginTop:"0.75rem"},children:o.jsx(Pe,{to:"/vaults/new",children:"Create a vault →"})})]}):o.jsx("div",{style:{marginTop:"1rem"},children:i.vaults.map(x=>{const y=h.kind==="minting"&&h.name===x.name,m=h.kind==="error"&&h.name===x.name?h:null;return o.jsxs("div",{className:"vault-row",children:[o.jsxs("div",{className:"body",children:[o.jsxs("div",{className:"name",children:[o.jsx("code",{children:x.name}),o.jsxs("span",{className:"tag muted",title:"Vault version",children:["v",x.version]})]}),o.jsx("div",{className:"dim url",children:o.jsx("code",{children:x.url})}),m?o.jsx("div",{className:"error-banner",style:{marginTop:"0.5rem"},children:o.jsx("code",{children:m.message})}):null]}),x.managementUrl?o.jsx("button",{type:"button",onClick:()=>{b(x)},disabled:y,"aria-label":`Manage vault ${x.name}`,children:y?"Opening…":"Manage"}):o.jsx("span",{className:"muted",title:"This vault has no admin SPA — manage with parachute-vault on the host.",children:"CLI only"})]},x.name)})})]})}function Pg(i){return i==="/permissions"||i.startsWith("/permissions/")?"permissions":i==="/tokens"||i.startsWith("/tokens/")?"tokens":i==="/modules"||i.startsWith("/modules/")?"modules":i.startsWith("/approve-client/")?"approve app":"vaults"}function e0(){const{pathname:i}=Lt(),s=Pg(i),[f,r]=j.useState(null),[h,v]=j.useState(!1);j.useEffect(()=>{let x=!1;return pg().then(y=>{x||r(y)}).catch(()=>{x||r({hasSession:!1})}),()=>{x=!0}},[]);async function b(x){v(!0);try{await gg(x),window.location.href="/"}catch{v(!1)}}return o.jsxs("div",{className:"page",children:[o.jsxs("nav",{className:"nav",children:[o.jsxs(Pe,{to:"/vaults",className:"brand",children:["Parachute Admin ",o.jsx("span",{className:"sub",children:s})]}),o.jsx(t0,{me:f,signingOut:h,onSignOut:b}),o.jsx(Pe,{to:"/vaults",children:"Vaults"}),o.jsx(Pe,{to:"/modules",children:"Modules"}),o.jsx(Pe,{to:"/permissions",children:"Permissions"}),o.jsx(Pe,{to:"/tokens",children:"Tokens"}),o.jsx("span",{className:"nav-divider","aria-hidden":"true"}),o.jsx("a",{href:"/",title:"Hub discovery page (top-level)",children:"Discovery"})]}),o.jsxs(_p,{children:[o.jsx(rl,{path:"/",element:o.jsx(zh,{})}),o.jsx(rl,{path:"/vaults",element:o.jsx(zh,{})}),o.jsx(rl,{path:"/vaults/new",element:o.jsx(Yg,{})}),o.jsx(rl,{path:"/modules",element:o.jsx(Ug,{})}),o.jsx(rl,{path:"/permissions",element:o.jsx(Qg,{})}),o.jsx(rl,{path:"/tokens",element:o.jsx(kg,{})}),o.jsx(rl,{path:"/approve-client/:clientId",element:o.jsx(Og,{})}),o.jsx(rl,{path:"*",element:o.jsxs("div",{className:"empty",children:["404 — back to ",o.jsx(Pe,{to:"/vaults",children:"vaults"}),"."]})})]})]})}function t0({me:i,signingOut:s,onSignOut:f}){return i===null?null:i.hasSession?o.jsxs("span",{className:"auth-spa",children:[o.jsxs("span",{className:"muted",children:["Signed in as ",o.jsx("strong",{children:i.user.displayName})]})," ","·"," ",o.jsx("button",{type:"button",className:"auth-spa-signout",disabled:s,onClick:()=>{f(i.csrf)},children:s?"Signing out…":"Sign out"})]}):o.jsx("a",{href:`/login?next=${encodeURIComponent(window.location.pathname)}`,className:"auth-spa",children:"Sign in"})}const Jh=document.getElementById("root");if(!Jh)throw new Error("#root not found");function l0(){const i=window.location.pathname;return i==="/admin"||i.startsWith("/admin/")?"/admin":""}zy.createRoot(Jh).render(o.jsx(j.StrictMode,{children:o.jsx(Wp,{basename:l0(),children:o.jsx(e0,{})})}));