@openparachute/vault 0.5.0-rc.2 → 0.5.0-rc.3

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.
@@ -6,7 +6,7 @@
6
6
  *
7
7
  * This source code is licensed under the MIT license found in the
8
8
  * LICENSE file in the root directory of this source tree.
9
- */var yh;function Yy(){if(yh)return qn;yh=1;var i=Symbol.for("react.transitional.element"),s=Symbol.for("react.fragment");function f(o,h,m){var y=null;if(m!==void 0&&(y=""+m),h.key!==void 0&&(y=""+h.key),"key"in h){m={};for(var j in h)j!=="key"&&(m[j]=h[j])}else m=h;return h=m.ref,{$$typeof:i,type:o,key:y,ref:h!==void 0?h:null,props:m}}return qn.Fragment=s,qn.jsx=f,qn.jsxs=f,qn}var ph;function Gy(){return ph||(ph=1,ks.exports=Yy()),ks.exports}var c=Gy(),Ys={exports:{}},te={};/**
9
+ */var yh;function Yy(){if(yh)return qn;yh=1;var i=Symbol.for("react.transitional.element"),s=Symbol.for("react.fragment");function f(o,h,m){var y=null;if(m!==void 0&&(y=""+m),h.key!==void 0&&(y=""+h.key),"key"in h){m={};for(var j in h)j!=="key"&&(m[j]=h[j])}else m=h;return h=m.ref,{$$typeof:i,type:o,key:y,ref:h!==void 0?h:null,props:m}}return qn.Fragment=s,qn.jsx=f,qn.jsxs=f,qn}var ph;function Gy(){return ph||(ph=1,ks.exports=Yy()),ks.exports}var c=Gy(),Ys={exports:{}},le={};/**
10
10
  * @license React
11
11
  * react.production.js
12
12
  *
@@ -14,7 +14,7 @@
14
14
  *
15
15
  * This source code is licensed under the MIT license found in the
16
16
  * LICENSE file in the root directory of this source tree.
17
- */var gh;function Xy(){if(gh)return te;gh=1;var i=Symbol.for("react.transitional.element"),s=Symbol.for("react.portal"),f=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),h=Symbol.for("react.profiler"),m=Symbol.for("react.consumer"),y=Symbol.for("react.context"),j=Symbol.for("react.forward_ref"),g=Symbol.for("react.suspense"),v=Symbol.for("react.memo"),T=Symbol.for("react.lazy"),b=Symbol.for("react.activity"),C=Symbol.iterator;function q(E){return E===null||typeof E!="object"?null:(E=C&&E[C]||E["@@iterator"],typeof E=="function"?E:null)}var D={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},B=Object.assign,k={};function L(E,H,Z){this.props=E,this.context=H,this.refs=k,this.updater=Z||D}L.prototype.isReactComponent={},L.prototype.setState=function(E,H){if(typeof E!="object"&&typeof E!="function"&&E!=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,E,H,"setState")},L.prototype.forceUpdate=function(E){this.updater.enqueueForceUpdate(this,E,"forceUpdate")};function Q(){}Q.prototype=L.prototype;function J(E,H,Z){this.props=E,this.context=H,this.refs=k,this.updater=Z||D}var K=J.prototype=new Q;K.constructor=J,B(K,L.prototype),K.isPureReactComponent=!0;var G=Array.isArray;function Y(){}var X={H:null,A:null,T:null,S:null},fe=Object.prototype.hasOwnProperty;function Re(E,H,Z){var W=Z.ref;return{$$typeof:i,type:E,key:H,ref:W!==void 0?W:null,props:Z}}function Ut(E,H){return Re(E.type,H,E.props)}function gt(E){return typeof E=="object"&&E!==null&&E.$$typeof===i}function $e(E){var H={"=":"=0",":":"=2"};return"$"+E.replace(/[=:]/g,function(Z){return H[Z]})}var Ht=/\/+/g;function bt(E,H){return typeof E=="object"&&E!==null&&E.key!=null?$e(""+E.key):H.toString(36)}function Ue(E){switch(E.status){case"fulfilled":return E.value;case"rejected":throw E.reason;default:switch(typeof E.status=="string"?E.then(Y,Y):(E.status="pending",E.then(function(H){E.status==="pending"&&(E.status="fulfilled",E.value=H)},function(H){E.status==="pending"&&(E.status="rejected",E.reason=H)})),E.status){case"fulfilled":return E.value;case"rejected":throw E.reason}}throw E}function O(E,H,Z,W,le){var ue=typeof E;(ue==="undefined"||ue==="boolean")&&(E=null);var ve=!1;if(E===null)ve=!0;else switch(ue){case"bigint":case"string":case"number":ve=!0;break;case"object":switch(E.$$typeof){case i:case s:ve=!0;break;case T:return ve=E._init,O(ve(E._payload),H,Z,W,le)}}if(ve)return le=le(E),ve=W===""?"."+bt(E,0):W,G(le)?(Z="",ve!=null&&(Z=ve.replace(Ht,"$&/")+"/"),O(le,H,Z,"",function(Va){return Va})):le!=null&&(gt(le)&&(le=Ut(le,Z+(le.key==null||E&&E.key===le.key?"":(""+le.key).replace(Ht,"$&/")+"/")+ve)),H.push(le)),1;ve=0;var Fe=W===""?".":W+":";if(G(E))for(var Oe=0;Oe<E.length;Oe++)W=E[Oe],ue=Fe+bt(W,Oe),ve+=O(W,H,Z,ue,le);else if(Oe=q(E),typeof Oe=="function")for(E=Oe.call(E),Oe=0;!(W=E.next()).done;)W=W.value,ue=Fe+bt(W,Oe++),ve+=O(W,H,Z,ue,le);else if(ue==="object"){if(typeof E.then=="function")return O(Ue(E),H,Z,W,le);throw H=String(E),Error("Objects are not valid as a React child (found: "+(H==="[object Object]"?"object with keys {"+Object.keys(E).join(", ")+"}":H)+"). If you meant to render a collection of children, use an array instead.")}return ve}function V(E,H,Z){if(E==null)return E;var W=[],le=0;return O(E,W,"","",function(ue){return H.call(Z,ue,le++)}),W}function ee(E){if(E._status===-1){var H=E._result;H=H(),H.then(function(Z){(E._status===0||E._status===-1)&&(E._status=1,E._result=Z)},function(Z){(E._status===0||E._status===-1)&&(E._status=2,E._result=Z)}),E._status===-1&&(E._status=0,E._result=H)}if(E._status===1)return E._result.default;throw E._result}var ge=typeof reportError=="function"?reportError:function(E){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var H=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(H))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",E);return}console.error(E)},je={map:V,forEach:function(E,H,Z){V(E,function(){H.apply(this,arguments)},Z)},count:function(E){var H=0;return V(E,function(){H++}),H},toArray:function(E){return V(E,function(H){return H})||[]},only:function(E){if(!gt(E))throw Error("React.Children.only expected to receive a single React element child.");return E}};return te.Activity=b,te.Children=je,te.Component=L,te.Fragment=f,te.Profiler=h,te.PureComponent=J,te.StrictMode=o,te.Suspense=g,te.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=X,te.__COMPILER_RUNTIME={__proto__:null,c:function(E){return X.H.useMemoCache(E)}},te.cache=function(E){return function(){return E.apply(null,arguments)}},te.cacheSignal=function(){return null},te.cloneElement=function(E,H,Z){if(E==null)throw Error("The argument must be a React element, but you passed "+E+".");var W=B({},E.props),le=E.key;if(H!=null)for(ue in H.key!==void 0&&(le=""+H.key),H)!fe.call(H,ue)||ue==="key"||ue==="__self"||ue==="__source"||ue==="ref"&&H.ref===void 0||(W[ue]=H[ue]);var ue=arguments.length-2;if(ue===1)W.children=Z;else if(1<ue){for(var ve=Array(ue),Fe=0;Fe<ue;Fe++)ve[Fe]=arguments[Fe+2];W.children=ve}return Re(E.type,le,W)},te.createContext=function(E){return E={$$typeof:y,_currentValue:E,_currentValue2:E,_threadCount:0,Provider:null,Consumer:null},E.Provider=E,E.Consumer={$$typeof:m,_context:E},E},te.createElement=function(E,H,Z){var W,le={},ue=null;if(H!=null)for(W in H.key!==void 0&&(ue=""+H.key),H)fe.call(H,W)&&W!=="key"&&W!=="__self"&&W!=="__source"&&(le[W]=H[W]);var ve=arguments.length-2;if(ve===1)le.children=Z;else if(1<ve){for(var Fe=Array(ve),Oe=0;Oe<ve;Oe++)Fe[Oe]=arguments[Oe+2];le.children=Fe}if(E&&E.defaultProps)for(W in ve=E.defaultProps,ve)le[W]===void 0&&(le[W]=ve[W]);return Re(E,ue,le)},te.createRef=function(){return{current:null}},te.forwardRef=function(E){return{$$typeof:j,render:E}},te.isValidElement=gt,te.lazy=function(E){return{$$typeof:T,_payload:{_status:-1,_result:E},_init:ee}},te.memo=function(E,H){return{$$typeof:v,type:E,compare:H===void 0?null:H}},te.startTransition=function(E){var H=X.T,Z={};X.T=Z;try{var W=E(),le=X.S;le!==null&&le(Z,W),typeof W=="object"&&W!==null&&typeof W.then=="function"&&W.then(Y,ge)}catch(ue){ge(ue)}finally{H!==null&&Z.types!==null&&(H.types=Z.types),X.T=H}},te.unstable_useCacheRefresh=function(){return X.H.useCacheRefresh()},te.use=function(E){return X.H.use(E)},te.useActionState=function(E,H,Z){return X.H.useActionState(E,H,Z)},te.useCallback=function(E,H){return X.H.useCallback(E,H)},te.useContext=function(E){return X.H.useContext(E)},te.useDebugValue=function(){},te.useDeferredValue=function(E,H){return X.H.useDeferredValue(E,H)},te.useEffect=function(E,H){return X.H.useEffect(E,H)},te.useEffectEvent=function(E){return X.H.useEffectEvent(E)},te.useId=function(){return X.H.useId()},te.useImperativeHandle=function(E,H,Z){return X.H.useImperativeHandle(E,H,Z)},te.useInsertionEffect=function(E,H){return X.H.useInsertionEffect(E,H)},te.useLayoutEffect=function(E,H){return X.H.useLayoutEffect(E,H)},te.useMemo=function(E,H){return X.H.useMemo(E,H)},te.useOptimistic=function(E,H){return X.H.useOptimistic(E,H)},te.useReducer=function(E,H,Z){return X.H.useReducer(E,H,Z)},te.useRef=function(E){return X.H.useRef(E)},te.useState=function(E){return X.H.useState(E)},te.useSyncExternalStore=function(E,H,Z){return X.H.useSyncExternalStore(E,H,Z)},te.useTransition=function(){return X.H.useTransition()},te.version="19.2.5",te}var bh;function Ps(){return bh||(bh=1,Ys.exports=Xy()),Ys.exports}var S=Ps(),Gs={exports:{}},kn={},Xs={exports:{}},Qs={};/**
17
+ */var gh;function Xy(){if(gh)return le;gh=1;var i=Symbol.for("react.transitional.element"),s=Symbol.for("react.portal"),f=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),h=Symbol.for("react.profiler"),m=Symbol.for("react.consumer"),y=Symbol.for("react.context"),j=Symbol.for("react.forward_ref"),g=Symbol.for("react.suspense"),v=Symbol.for("react.memo"),T=Symbol.for("react.lazy"),b=Symbol.for("react.activity"),z=Symbol.iterator;function q(E){return E===null||typeof E!="object"?null:(E=z&&E[z]||E["@@iterator"],typeof E=="function"?E:null)}var D={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},B=Object.assign,k={};function L(E,H,Z){this.props=E,this.context=H,this.refs=k,this.updater=Z||D}L.prototype.isReactComponent={},L.prototype.setState=function(E,H){if(typeof E!="object"&&typeof E!="function"&&E!=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,E,H,"setState")},L.prototype.forceUpdate=function(E){this.updater.enqueueForceUpdate(this,E,"forceUpdate")};function X(){}X.prototype=L.prototype;function J(E,H,Z){this.props=E,this.context=H,this.refs=k,this.updater=Z||D}var V=J.prototype=new X;V.constructor=J,B(V,L.prototype),V.isPureReactComponent=!0;var Y=Array.isArray;function K(){}var G={H:null,A:null,T:null,S:null},te=Object.prototype.hasOwnProperty;function ye(E,H,Z){var W=Z.ref;return{$$typeof:i,type:E,key:H,ref:W!==void 0?W:null,props:Z}}function tt(E,H){return ye(E.type,H,E.props)}function Fe(E){return typeof E=="object"&&E!==null&&E.$$typeof===i}function $e(E){var H={"=":"=0",":":"=2"};return"$"+E.replace(/[=:]/g,function(Z){return H[Z]})}var Ht=/\/+/g;function St(E,H){return typeof E=="object"&&E!==null&&E.key!=null?$e(""+E.key):H.toString(36)}function Ue(E){switch(E.status){case"fulfilled":return E.value;case"rejected":throw E.reason;default:switch(typeof E.status=="string"?E.then(K,K):(E.status="pending",E.then(function(H){E.status==="pending"&&(E.status="fulfilled",E.value=H)},function(H){E.status==="pending"&&(E.status="rejected",E.reason=H)})),E.status){case"fulfilled":return E.value;case"rejected":throw E.reason}}throw E}function w(E,H,Z,W,ae){var ie=typeof E;(ie==="undefined"||ie==="boolean")&&(E=null);var ve=!1;if(E===null)ve=!0;else switch(ie){case"bigint":case"string":case"number":ve=!0;break;case"object":switch(E.$$typeof){case i:case s:ve=!0;break;case T:return ve=E._init,w(ve(E._payload),H,Z,W,ae)}}if(ve)return ae=ae(E),ve=W===""?"."+St(E,0):W,Y(ae)?(Z="",ve!=null&&(Z=ve.replace(Ht,"$&/")+"/"),w(ae,H,Z,"",function(Va){return Va})):ae!=null&&(Fe(ae)&&(ae=tt(ae,Z+(ae.key==null||E&&E.key===ae.key?"":(""+ae.key).replace(Ht,"$&/")+"/")+ve)),H.push(ae)),1;ve=0;var Ie=W===""?".":W+":";if(Y(E))for(var we=0;we<E.length;we++)W=E[we],ie=Ie+St(W,we),ve+=w(W,H,Z,ie,ae);else if(we=q(E),typeof we=="function")for(E=we.call(E),we=0;!(W=E.next()).done;)W=W.value,ie=Ie+St(W,we++),ve+=w(W,H,Z,ie,ae);else if(ie==="object"){if(typeof E.then=="function")return w(Ue(E),H,Z,W,ae);throw H=String(E),Error("Objects are not valid as a React child (found: "+(H==="[object Object]"?"object with keys {"+Object.keys(E).join(", ")+"}":H)+"). If you meant to render a collection of children, use an array instead.")}return ve}function Q(E,H,Z){if(E==null)return E;var W=[],ae=0;return w(E,W,"","",function(ie){return H.call(Z,ie,ae++)}),W}function ee(E){if(E._status===-1){var H=E._result;H=H(),H.then(function(Z){(E._status===0||E._status===-1)&&(E._status=1,E._result=Z)},function(Z){(E._status===0||E._status===-1)&&(E._status=2,E._result=Z)}),E._status===-1&&(E._status=0,E._result=H)}if(E._status===1)return E._result.default;throw E._result}var be=typeof reportError=="function"?reportError:function(E){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var H=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(H))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",E);return}console.error(E)},Ee={map:Q,forEach:function(E,H,Z){Q(E,function(){H.apply(this,arguments)},Z)},count:function(E){var H=0;return Q(E,function(){H++}),H},toArray:function(E){return Q(E,function(H){return H})||[]},only:function(E){if(!Fe(E))throw Error("React.Children.only expected to receive a single React element child.");return E}};return le.Activity=b,le.Children=Ee,le.Component=L,le.Fragment=f,le.Profiler=h,le.PureComponent=J,le.StrictMode=o,le.Suspense=g,le.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=G,le.__COMPILER_RUNTIME={__proto__:null,c:function(E){return G.H.useMemoCache(E)}},le.cache=function(E){return function(){return E.apply(null,arguments)}},le.cacheSignal=function(){return null},le.cloneElement=function(E,H,Z){if(E==null)throw Error("The argument must be a React element, but you passed "+E+".");var W=B({},E.props),ae=E.key;if(H!=null)for(ie in H.key!==void 0&&(ae=""+H.key),H)!te.call(H,ie)||ie==="key"||ie==="__self"||ie==="__source"||ie==="ref"&&H.ref===void 0||(W[ie]=H[ie]);var ie=arguments.length-2;if(ie===1)W.children=Z;else if(1<ie){for(var ve=Array(ie),Ie=0;Ie<ie;Ie++)ve[Ie]=arguments[Ie+2];W.children=ve}return ye(E.type,ae,W)},le.createContext=function(E){return E={$$typeof:y,_currentValue:E,_currentValue2:E,_threadCount:0,Provider:null,Consumer:null},E.Provider=E,E.Consumer={$$typeof:m,_context:E},E},le.createElement=function(E,H,Z){var W,ae={},ie=null;if(H!=null)for(W in H.key!==void 0&&(ie=""+H.key),H)te.call(H,W)&&W!=="key"&&W!=="__self"&&W!=="__source"&&(ae[W]=H[W]);var ve=arguments.length-2;if(ve===1)ae.children=Z;else if(1<ve){for(var Ie=Array(ve),we=0;we<ve;we++)Ie[we]=arguments[we+2];ae.children=Ie}if(E&&E.defaultProps)for(W in ve=E.defaultProps,ve)ae[W]===void 0&&(ae[W]=ve[W]);return ye(E,ie,ae)},le.createRef=function(){return{current:null}},le.forwardRef=function(E){return{$$typeof:j,render:E}},le.isValidElement=Fe,le.lazy=function(E){return{$$typeof:T,_payload:{_status:-1,_result:E},_init:ee}},le.memo=function(E,H){return{$$typeof:v,type:E,compare:H===void 0?null:H}},le.startTransition=function(E){var H=G.T,Z={};G.T=Z;try{var W=E(),ae=G.S;ae!==null&&ae(Z,W),typeof W=="object"&&W!==null&&typeof W.then=="function"&&W.then(K,be)}catch(ie){be(ie)}finally{H!==null&&Z.types!==null&&(H.types=Z.types),G.T=H}},le.unstable_useCacheRefresh=function(){return G.H.useCacheRefresh()},le.use=function(E){return G.H.use(E)},le.useActionState=function(E,H,Z){return G.H.useActionState(E,H,Z)},le.useCallback=function(E,H){return G.H.useCallback(E,H)},le.useContext=function(E){return G.H.useContext(E)},le.useDebugValue=function(){},le.useDeferredValue=function(E,H){return G.H.useDeferredValue(E,H)},le.useEffect=function(E,H){return G.H.useEffect(E,H)},le.useEffectEvent=function(E){return G.H.useEffectEvent(E)},le.useId=function(){return G.H.useId()},le.useImperativeHandle=function(E,H,Z){return G.H.useImperativeHandle(E,H,Z)},le.useInsertionEffect=function(E,H){return G.H.useInsertionEffect(E,H)},le.useLayoutEffect=function(E,H){return G.H.useLayoutEffect(E,H)},le.useMemo=function(E,H){return G.H.useMemo(E,H)},le.useOptimistic=function(E,H){return G.H.useOptimistic(E,H)},le.useReducer=function(E,H,Z){return G.H.useReducer(E,H,Z)},le.useRef=function(E){return G.H.useRef(E)},le.useState=function(E){return G.H.useState(E)},le.useSyncExternalStore=function(E,H,Z){return G.H.useSyncExternalStore(E,H,Z)},le.useTransition=function(){return G.H.useTransition()},le.version="19.2.5",le}var bh;function Ps(){return bh||(bh=1,Ys.exports=Xy()),Ys.exports}var S=Ps(),Gs={exports:{}},kn={},Xs={exports:{}},Qs={};/**
18
18
  * @license React
19
19
  * scheduler.production.js
20
20
  *
@@ -22,7 +22,7 @@
22
22
  *
23
23
  * This source code is licensed under the MIT license found in the
24
24
  * LICENSE file in the root directory of this source tree.
25
- */var Sh;function Qy(){return Sh||(Sh=1,(function(i){function s(O,V){var ee=O.length;O.push(V);e:for(;0<ee;){var ge=ee-1>>>1,je=O[ge];if(0<h(je,V))O[ge]=V,O[ee]=je,ee=ge;else break e}}function f(O){return O.length===0?null:O[0]}function o(O){if(O.length===0)return null;var V=O[0],ee=O.pop();if(ee!==V){O[0]=ee;e:for(var ge=0,je=O.length,E=je>>>1;ge<E;){var H=2*(ge+1)-1,Z=O[H],W=H+1,le=O[W];if(0>h(Z,ee))W<je&&0>h(le,Z)?(O[ge]=le,O[W]=ee,ge=W):(O[ge]=Z,O[H]=ee,ge=H);else if(W<je&&0>h(le,ee))O[ge]=le,O[W]=ee,ge=W;else break e}}return V}function h(O,V){var ee=O.sortIndex-V.sortIndex;return ee!==0?ee:O.id-V.id}if(i.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var m=performance;i.unstable_now=function(){return m.now()}}else{var y=Date,j=y.now();i.unstable_now=function(){return y.now()-j}}var g=[],v=[],T=1,b=null,C=3,q=!1,D=!1,B=!1,k=!1,L=typeof setTimeout=="function"?setTimeout:null,Q=typeof clearTimeout=="function"?clearTimeout:null,J=typeof setImmediate<"u"?setImmediate:null;function K(O){for(var V=f(v);V!==null;){if(V.callback===null)o(v);else if(V.startTime<=O)o(v),V.sortIndex=V.expirationTime,s(g,V);else break;V=f(v)}}function G(O){if(B=!1,K(O),!D)if(f(g)!==null)D=!0,Y||(Y=!0,$e());else{var V=f(v);V!==null&&Ue(G,V.startTime-O)}}var Y=!1,X=-1,fe=5,Re=-1;function Ut(){return k?!0:!(i.unstable_now()-Re<fe)}function gt(){if(k=!1,Y){var O=i.unstable_now();Re=O;var V=!0;try{e:{D=!1,B&&(B=!1,Q(X),X=-1),q=!0;var ee=C;try{t:{for(K(O),b=f(g);b!==null&&!(b.expirationTime>O&&Ut());){var ge=b.callback;if(typeof ge=="function"){b.callback=null,C=b.priorityLevel;var je=ge(b.expirationTime<=O);if(O=i.unstable_now(),typeof je=="function"){b.callback=je,K(O),V=!0;break t}b===f(g)&&o(g),K(O)}else o(g);b=f(g)}if(b!==null)V=!0;else{var E=f(v);E!==null&&Ue(G,E.startTime-O),V=!1}}break e}finally{b=null,C=ee,q=!1}V=void 0}}finally{V?$e():Y=!1}}}var $e;if(typeof J=="function")$e=function(){J(gt)};else if(typeof MessageChannel<"u"){var Ht=new MessageChannel,bt=Ht.port2;Ht.port1.onmessage=gt,$e=function(){bt.postMessage(null)}}else $e=function(){L(gt,0)};function Ue(O,V){X=L(function(){O(i.unstable_now())},V)}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"):fe=0<O?Math.floor(1e3/O):5},i.unstable_getCurrentPriorityLevel=function(){return C},i.unstable_next=function(O){switch(C){case 1:case 2:case 3:var V=3;break;default:V=C}var ee=C;C=V;try{return O()}finally{C=ee}},i.unstable_requestPaint=function(){k=!0},i.unstable_runWithPriority=function(O,V){switch(O){case 1:case 2:case 3:case 4:case 5:break;default:O=3}var ee=C;C=O;try{return V()}finally{C=ee}},i.unstable_scheduleCallback=function(O,V,ee){var ge=i.unstable_now();switch(typeof ee=="object"&&ee!==null?(ee=ee.delay,ee=typeof ee=="number"&&0<ee?ge+ee:ge):ee=ge,O){case 1:var je=-1;break;case 2:je=250;break;case 5:je=1073741823;break;case 4:je=1e4;break;default:je=5e3}return je=ee+je,O={id:T++,callback:V,priorityLevel:O,startTime:ee,expirationTime:je,sortIndex:-1},ee>ge?(O.sortIndex=ee,s(v,O),f(g)===null&&O===f(v)&&(B?(Q(X),X=-1):B=!0,Ue(G,ee-ge))):(O.sortIndex=je,s(g,O),D||q||(D=!0,Y||(Y=!0,$e()))),O},i.unstable_shouldYield=Ut,i.unstable_wrapCallback=function(O){var V=C;return function(){var ee=C;C=V;try{return O.apply(this,arguments)}finally{C=ee}}}})(Qs)),Qs}var xh;function Vy(){return xh||(xh=1,Xs.exports=Qy()),Xs.exports}var Vs={exports:{}},We={};/**
25
+ */var Sh;function Qy(){return Sh||(Sh=1,(function(i){function s(w,Q){var ee=w.length;w.push(Q);e:for(;0<ee;){var be=ee-1>>>1,Ee=w[be];if(0<h(Ee,Q))w[be]=Q,w[ee]=Ee,ee=be;else break e}}function f(w){return w.length===0?null:w[0]}function o(w){if(w.length===0)return null;var Q=w[0],ee=w.pop();if(ee!==Q){w[0]=ee;e:for(var be=0,Ee=w.length,E=Ee>>>1;be<E;){var H=2*(be+1)-1,Z=w[H],W=H+1,ae=w[W];if(0>h(Z,ee))W<Ee&&0>h(ae,Z)?(w[be]=ae,w[W]=ee,be=W):(w[be]=Z,w[H]=ee,be=H);else if(W<Ee&&0>h(ae,ee))w[be]=ae,w[W]=ee,be=W;else break e}}return Q}function h(w,Q){var ee=w.sortIndex-Q.sortIndex;return ee!==0?ee:w.id-Q.id}if(i.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var m=performance;i.unstable_now=function(){return m.now()}}else{var y=Date,j=y.now();i.unstable_now=function(){return y.now()-j}}var g=[],v=[],T=1,b=null,z=3,q=!1,D=!1,B=!1,k=!1,L=typeof setTimeout=="function"?setTimeout:null,X=typeof clearTimeout=="function"?clearTimeout:null,J=typeof setImmediate<"u"?setImmediate:null;function V(w){for(var Q=f(v);Q!==null;){if(Q.callback===null)o(v);else if(Q.startTime<=w)o(v),Q.sortIndex=Q.expirationTime,s(g,Q);else break;Q=f(v)}}function Y(w){if(B=!1,V(w),!D)if(f(g)!==null)D=!0,K||(K=!0,$e());else{var Q=f(v);Q!==null&&Ue(Y,Q.startTime-w)}}var K=!1,G=-1,te=5,ye=-1;function tt(){return k?!0:!(i.unstable_now()-ye<te)}function Fe(){if(k=!1,K){var w=i.unstable_now();ye=w;var Q=!0;try{e:{D=!1,B&&(B=!1,X(G),G=-1),q=!0;var ee=z;try{t:{for(V(w),b=f(g);b!==null&&!(b.expirationTime>w&&tt());){var be=b.callback;if(typeof be=="function"){b.callback=null,z=b.priorityLevel;var Ee=be(b.expirationTime<=w);if(w=i.unstable_now(),typeof Ee=="function"){b.callback=Ee,V(w),Q=!0;break t}b===f(g)&&o(g),V(w)}else o(g);b=f(g)}if(b!==null)Q=!0;else{var E=f(v);E!==null&&Ue(Y,E.startTime-w),Q=!1}}break e}finally{b=null,z=ee,q=!1}Q=void 0}}finally{Q?$e():K=!1}}}var $e;if(typeof J=="function")$e=function(){J(Fe)};else if(typeof MessageChannel<"u"){var Ht=new MessageChannel,St=Ht.port2;Ht.port1.onmessage=Fe,$e=function(){St.postMessage(null)}}else $e=function(){L(Fe,0)};function Ue(w,Q){G=L(function(){w(i.unstable_now())},Q)}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(w){w.callback=null},i.unstable_forceFrameRate=function(w){0>w||125<w?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):te=0<w?Math.floor(1e3/w):5},i.unstable_getCurrentPriorityLevel=function(){return z},i.unstable_next=function(w){switch(z){case 1:case 2:case 3:var Q=3;break;default:Q=z}var ee=z;z=Q;try{return w()}finally{z=ee}},i.unstable_requestPaint=function(){k=!0},i.unstable_runWithPriority=function(w,Q){switch(w){case 1:case 2:case 3:case 4:case 5:break;default:w=3}var ee=z;z=w;try{return Q()}finally{z=ee}},i.unstable_scheduleCallback=function(w,Q,ee){var be=i.unstable_now();switch(typeof ee=="object"&&ee!==null?(ee=ee.delay,ee=typeof ee=="number"&&0<ee?be+ee:be):ee=be,w){case 1:var Ee=-1;break;case 2:Ee=250;break;case 5:Ee=1073741823;break;case 4:Ee=1e4;break;default:Ee=5e3}return Ee=ee+Ee,w={id:T++,callback:Q,priorityLevel:w,startTime:ee,expirationTime:Ee,sortIndex:-1},ee>be?(w.sortIndex=ee,s(v,w),f(g)===null&&w===f(v)&&(B?(X(G),G=-1):B=!0,Ue(Y,ee-be))):(w.sortIndex=Ee,s(g,w),D||q||(D=!0,K||(K=!0,$e()))),w},i.unstable_shouldYield=tt,i.unstable_wrapCallback=function(w){var Q=z;return function(){var ee=z;z=Q;try{return w.apply(this,arguments)}finally{z=ee}}}})(Qs)),Qs}var xh;function Vy(){return xh||(xh=1,Xs.exports=Qy()),Xs.exports}var Vs={exports:{}},We={};/**
26
26
  * @license React
27
27
  * react-dom.production.js
28
28
  *
@@ -30,7 +30,7 @@
30
30
  *
31
31
  * This source code is licensed under the MIT license found in the
32
32
  * LICENSE file in the root directory of this source tree.
33
- */var jh;function Zy(){if(jh)return We;jh=1;var i=Ps();function s(g){var v="https://react.dev/errors/"+g;if(1<arguments.length){v+="?args[]="+encodeURIComponent(arguments[1]);for(var T=2;T<arguments.length;T++)v+="&args[]="+encodeURIComponent(arguments[T])}return"Minified React error #"+g+"; visit "+v+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function f(){}var o={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 m(g,v,T){var b=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:h,key:b==null?null:""+b,children:g,containerInfo:v,implementation:T}}var y=i.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function j(g,v){if(g==="font")return"";if(typeof v=="string")return v==="use-credentials"?v:""}return We.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=o,We.createPortal=function(g,v){var T=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!v||v.nodeType!==1&&v.nodeType!==9&&v.nodeType!==11)throw Error(s(299));return m(g,v,null,T)},We.flushSync=function(g){var v=y.T,T=o.p;try{if(y.T=null,o.p=2,g)return g()}finally{y.T=v,o.p=T,o.d.f()}},We.preconnect=function(g,v){typeof g=="string"&&(v?(v=v.crossOrigin,v=typeof v=="string"?v==="use-credentials"?v:"":void 0):v=null,o.d.C(g,v))},We.prefetchDNS=function(g){typeof g=="string"&&o.d.D(g)},We.preinit=function(g,v){if(typeof g=="string"&&v&&typeof v.as=="string"){var T=v.as,b=j(T,v.crossOrigin),C=typeof v.integrity=="string"?v.integrity:void 0,q=typeof v.fetchPriority=="string"?v.fetchPriority:void 0;T==="style"?o.d.S(g,typeof v.precedence=="string"?v.precedence:void 0,{crossOrigin:b,integrity:C,fetchPriority:q}):T==="script"&&o.d.X(g,{crossOrigin:b,integrity:C,fetchPriority:q,nonce:typeof v.nonce=="string"?v.nonce:void 0})}},We.preinitModule=function(g,v){if(typeof g=="string")if(typeof v=="object"&&v!==null){if(v.as==null||v.as==="script"){var T=j(v.as,v.crossOrigin);o.d.M(g,{crossOrigin:T,integrity:typeof v.integrity=="string"?v.integrity:void 0,nonce:typeof v.nonce=="string"?v.nonce:void 0})}}else v==null&&o.d.M(g)},We.preload=function(g,v){if(typeof g=="string"&&typeof v=="object"&&v!==null&&typeof v.as=="string"){var T=v.as,b=j(T,v.crossOrigin);o.d.L(g,T,{crossOrigin:b,integrity:typeof v.integrity=="string"?v.integrity:void 0,nonce:typeof v.nonce=="string"?v.nonce:void 0,type:typeof v.type=="string"?v.type:void 0,fetchPriority:typeof v.fetchPriority=="string"?v.fetchPriority:void 0,referrerPolicy:typeof v.referrerPolicy=="string"?v.referrerPolicy:void 0,imageSrcSet:typeof v.imageSrcSet=="string"?v.imageSrcSet:void 0,imageSizes:typeof v.imageSizes=="string"?v.imageSizes:void 0,media:typeof v.media=="string"?v.media:void 0})}},We.preloadModule=function(g,v){if(typeof g=="string")if(v){var T=j(v.as,v.crossOrigin);o.d.m(g,{as:typeof v.as=="string"&&v.as!=="script"?v.as:void 0,crossOrigin:T,integrity:typeof v.integrity=="string"?v.integrity:void 0})}else o.d.m(g)},We.requestFormReset=function(g){o.d.r(g)},We.unstable_batchedUpdates=function(g,v){return g(v)},We.useFormState=function(g,v,T){return y.H.useFormState(g,v,T)},We.useFormStatus=function(){return y.H.useHostTransitionStatus()},We.version="19.2.5",We}var Eh;function Ky(){if(Eh)return Vs.exports;Eh=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(),Vs.exports=Zy(),Vs.exports}/**
33
+ */var jh;function Zy(){if(jh)return We;jh=1;var i=Ps();function s(g){var v="https://react.dev/errors/"+g;if(1<arguments.length){v+="?args[]="+encodeURIComponent(arguments[1]);for(var T=2;T<arguments.length;T++)v+="&args[]="+encodeURIComponent(arguments[T])}return"Minified React error #"+g+"; visit "+v+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function f(){}var o={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 m(g,v,T){var b=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:h,key:b==null?null:""+b,children:g,containerInfo:v,implementation:T}}var y=i.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function j(g,v){if(g==="font")return"";if(typeof v=="string")return v==="use-credentials"?v:""}return We.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=o,We.createPortal=function(g,v){var T=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!v||v.nodeType!==1&&v.nodeType!==9&&v.nodeType!==11)throw Error(s(299));return m(g,v,null,T)},We.flushSync=function(g){var v=y.T,T=o.p;try{if(y.T=null,o.p=2,g)return g()}finally{y.T=v,o.p=T,o.d.f()}},We.preconnect=function(g,v){typeof g=="string"&&(v?(v=v.crossOrigin,v=typeof v=="string"?v==="use-credentials"?v:"":void 0):v=null,o.d.C(g,v))},We.prefetchDNS=function(g){typeof g=="string"&&o.d.D(g)},We.preinit=function(g,v){if(typeof g=="string"&&v&&typeof v.as=="string"){var T=v.as,b=j(T,v.crossOrigin),z=typeof v.integrity=="string"?v.integrity:void 0,q=typeof v.fetchPriority=="string"?v.fetchPriority:void 0;T==="style"?o.d.S(g,typeof v.precedence=="string"?v.precedence:void 0,{crossOrigin:b,integrity:z,fetchPriority:q}):T==="script"&&o.d.X(g,{crossOrigin:b,integrity:z,fetchPriority:q,nonce:typeof v.nonce=="string"?v.nonce:void 0})}},We.preinitModule=function(g,v){if(typeof g=="string")if(typeof v=="object"&&v!==null){if(v.as==null||v.as==="script"){var T=j(v.as,v.crossOrigin);o.d.M(g,{crossOrigin:T,integrity:typeof v.integrity=="string"?v.integrity:void 0,nonce:typeof v.nonce=="string"?v.nonce:void 0})}}else v==null&&o.d.M(g)},We.preload=function(g,v){if(typeof g=="string"&&typeof v=="object"&&v!==null&&typeof v.as=="string"){var T=v.as,b=j(T,v.crossOrigin);o.d.L(g,T,{crossOrigin:b,integrity:typeof v.integrity=="string"?v.integrity:void 0,nonce:typeof v.nonce=="string"?v.nonce:void 0,type:typeof v.type=="string"?v.type:void 0,fetchPriority:typeof v.fetchPriority=="string"?v.fetchPriority:void 0,referrerPolicy:typeof v.referrerPolicy=="string"?v.referrerPolicy:void 0,imageSrcSet:typeof v.imageSrcSet=="string"?v.imageSrcSet:void 0,imageSizes:typeof v.imageSizes=="string"?v.imageSizes:void 0,media:typeof v.media=="string"?v.media:void 0})}},We.preloadModule=function(g,v){if(typeof g=="string")if(v){var T=j(v.as,v.crossOrigin);o.d.m(g,{as:typeof v.as=="string"&&v.as!=="script"?v.as:void 0,crossOrigin:T,integrity:typeof v.integrity=="string"?v.integrity:void 0})}else o.d.m(g)},We.requestFormReset=function(g){o.d.r(g)},We.unstable_batchedUpdates=function(g,v){return g(v)},We.useFormState=function(g,v,T){return y.H.useFormState(g,v,T)},We.useFormStatus=function(){return y.H.useHostTransitionStatus()},We.version="19.2.5",We}var Eh;function Ky(){if(Eh)return Vs.exports;Eh=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(),Vs.exports=Zy(),Vs.exports}/**
34
34
  * @license React
35
35
  * react-dom-client.production.js
36
36
  *
@@ -38,15 +38,15 @@
38
38
  *
39
39
  * This source code is licensed under the MIT license found in the
40
40
  * LICENSE file in the root directory of this source tree.
41
- */var Th;function Jy(){if(Th)return kn;Th=1;var i=Vy(),s=Ps(),f=Ky();function o(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 m(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 y(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 j(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 g(e){if(m(e)!==e)throw Error(o(188))}function v(e){var t=e.alternate;if(!t){if(t=m(e),t===null)throw Error(o(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 g(n),e;if(u===a)return g(n),t;u=u.sibling}throw Error(o(188))}if(l.return!==a.return)l=n,a=u;else{for(var r=!1,d=n.child;d;){if(d===l){r=!0,l=n,a=u;break}if(d===a){r=!0,a=n,l=u;break}d=d.sibling}if(!r){for(d=u.child;d;){if(d===l){r=!0,l=u,a=n;break}if(d===a){r=!0,a=u,l=n;break}d=d.sibling}if(!r)throw Error(o(189))}}if(l.alternate!==a)throw Error(o(190))}if(l.tag!==3)throw Error(o(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 b=Object.assign,C=Symbol.for("react.element"),q=Symbol.for("react.transitional.element"),D=Symbol.for("react.portal"),B=Symbol.for("react.fragment"),k=Symbol.for("react.strict_mode"),L=Symbol.for("react.profiler"),Q=Symbol.for("react.consumer"),J=Symbol.for("react.context"),K=Symbol.for("react.forward_ref"),G=Symbol.for("react.suspense"),Y=Symbol.for("react.suspense_list"),X=Symbol.for("react.memo"),fe=Symbol.for("react.lazy"),Re=Symbol.for("react.activity"),Ut=Symbol.for("react.memo_cache_sentinel"),gt=Symbol.iterator;function $e(e){return e===null||typeof e!="object"?null:(e=gt&&e[gt]||e["@@iterator"],typeof e=="function"?e:null)}var Ht=Symbol.for("react.client.reference");function bt(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===Ht?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case B:return"Fragment";case L:return"Profiler";case k:return"StrictMode";case G:return"Suspense";case Y:return"SuspenseList";case Re:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case D:return"Portal";case J:return e.displayName||"Context";case Q:return(e._context.displayName||"Context")+".Consumer";case K:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case X:return t=e.displayName||null,t!==null?t:bt(e.type)||"Memo";case fe:t=e._payload,e=e._init;try{return bt(e(t))}catch{}}return null}var Ue=Array.isArray,O=s.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,V=f.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,ee={pending:!1,data:null,method:null,action:null},ge=[],je=-1;function E(e){return{current:e}}function H(e){0>je||(e.current=ge[je],ge[je]=null,je--)}function Z(e,t){je++,ge[je]=e.current,e.current=t}var W=E(null),le=E(null),ue=E(null),ve=E(null);function Fe(e,t){switch(Z(ue,t),Z(le,e),Z(W,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?qd(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=qd(t),e=kd(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}H(W),Z(W,e)}function Oe(){H(W),H(le),H(ue)}function Va(e){e.memoizedState!==null&&Z(ve,e);var t=W.current,l=kd(t,e.type);t!==l&&(Z(le,e),Z(W,l))}function $n(e){le.current===e&&(H(W),H(le)),ve.current===e&&(H(ve),Un._currentValue=ee)}var ji,hr;function Ll(e){if(ji===void 0)try{throw Error()}catch(l){var t=l.stack.trim().match(/\n( *(at )?)/);ji=t&&t[1]||"",hr=-1<l.stack.indexOf(`
41
+ */var Th;function Jy(){if(Th)return kn;Th=1;var i=Vy(),s=Ps(),f=Ky();function o(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 m(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 y(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 j(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 g(e){if(m(e)!==e)throw Error(o(188))}function v(e){var t=e.alternate;if(!t){if(t=m(e),t===null)throw Error(o(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 g(n),e;if(u===a)return g(n),t;u=u.sibling}throw Error(o(188))}if(l.return!==a.return)l=n,a=u;else{for(var r=!1,d=n.child;d;){if(d===l){r=!0,l=n,a=u;break}if(d===a){r=!0,a=n,l=u;break}d=d.sibling}if(!r){for(d=u.child;d;){if(d===l){r=!0,l=u,a=n;break}if(d===a){r=!0,a=u,l=n;break}d=d.sibling}if(!r)throw Error(o(189))}}if(l.alternate!==a)throw Error(o(190))}if(l.tag!==3)throw Error(o(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 b=Object.assign,z=Symbol.for("react.element"),q=Symbol.for("react.transitional.element"),D=Symbol.for("react.portal"),B=Symbol.for("react.fragment"),k=Symbol.for("react.strict_mode"),L=Symbol.for("react.profiler"),X=Symbol.for("react.consumer"),J=Symbol.for("react.context"),V=Symbol.for("react.forward_ref"),Y=Symbol.for("react.suspense"),K=Symbol.for("react.suspense_list"),G=Symbol.for("react.memo"),te=Symbol.for("react.lazy"),ye=Symbol.for("react.activity"),tt=Symbol.for("react.memo_cache_sentinel"),Fe=Symbol.iterator;function $e(e){return e===null||typeof e!="object"?null:(e=Fe&&e[Fe]||e["@@iterator"],typeof e=="function"?e:null)}var Ht=Symbol.for("react.client.reference");function St(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===Ht?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case B:return"Fragment";case L:return"Profiler";case k:return"StrictMode";case Y:return"Suspense";case K:return"SuspenseList";case ye:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case D:return"Portal";case J:return e.displayName||"Context";case X:return(e._context.displayName||"Context")+".Consumer";case V:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case G:return t=e.displayName||null,t!==null?t:St(e.type)||"Memo";case te:t=e._payload,e=e._init;try{return St(e(t))}catch{}}return null}var Ue=Array.isArray,w=s.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Q=f.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,ee={pending:!1,data:null,method:null,action:null},be=[],Ee=-1;function E(e){return{current:e}}function H(e){0>Ee||(e.current=be[Ee],be[Ee]=null,Ee--)}function Z(e,t){Ee++,be[Ee]=e.current,e.current=t}var W=E(null),ae=E(null),ie=E(null),ve=E(null);function Ie(e,t){switch(Z(ie,t),Z(ae,e),Z(W,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?qd(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=qd(t),e=kd(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}H(W),Z(W,e)}function we(){H(W),H(ae),H(ie)}function Va(e){e.memoizedState!==null&&Z(ve,e);var t=W.current,l=kd(t,e.type);t!==l&&(Z(ae,e),Z(W,l))}function $n(e){ae.current===e&&(H(W),H(ae)),ve.current===e&&(H(ve),Un._currentValue=ee)}var ji,hr;function Ll(e){if(ji===void 0)try{throw Error()}catch(l){var t=l.stack.trim().match(/\n( *(at )?)/);ji=t&&t[1]||"",hr=-1<l.stack.indexOf(`
42
42
  at`)?" (<anonymous>)":-1<l.stack.indexOf("@")?"@unknown:0:0":""}return`
43
- `+ji+e+hr}var Ei=!1;function Ti(e,t){if(!e||Ei)return"";Ei=!0;var l=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var a={DetermineComponentFrameRoot:function(){try{if(t){var U=function(){throw Error()};if(Object.defineProperty(U.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(U,[])}catch(z){var R=z}Reflect.construct(e,[],U)}else{try{U.call()}catch(z){R=z}e.call(U.prototype)}}else{try{throw Error()}catch(z){R=z}(U=e())&&typeof U.catch=="function"&&U.catch(function(){})}}catch(z){if(z&&R&&typeof z.stack=="string")return[z.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(),r=u[0],d=u[1];if(r&&d){var p=r.split(`
43
+ `+ji+e+hr}var Ei=!1;function Ti(e,t){if(!e||Ei)return"";Ei=!0;var l=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var a={DetermineComponentFrameRoot:function(){try{if(t){var U=function(){throw Error()};if(Object.defineProperty(U.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(U,[])}catch(C){var R=C}Reflect.construct(e,[],U)}else{try{U.call()}catch(C){R=C}e.call(U.prototype)}}else{try{throw Error()}catch(C){R=C}(U=e())&&typeof U.catch=="function"&&U.catch(function(){})}}catch(C){if(C&&R&&typeof C.stack=="string")return[C.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(),r=u[0],d=u[1];if(r&&d){var p=r.split(`
44
44
  `),N=d.split(`
45
45
  `);for(n=a=0;a<p.length&&!p[a].includes("DetermineComponentFrameRoot");)a++;for(;n<N.length&&!N[n].includes("DetermineComponentFrameRoot");)n++;if(a===p.length||n===N.length)for(a=p.length-1,n=N.length-1;1<=a&&0<=n&&p[a]!==N[n];)n--;for(;1<=a&&0<=n;a--,n--)if(p[a]!==N[n]){if(a!==1||n!==1)do if(a--,n--,0>n||p[a]!==N[n]){var M=`
46
46
  `+p[a].replace(" at new "," at ");return e.displayName&&M.includes("<anonymous>")&&(M=M.replace("<anonymous>",e.displayName)),M}while(1<=a&&0<=n);break}}}finally{Ei=!1,Error.prepareStackTrace=l}return(l=e?e.displayName||e.name:"")?Ll(l):""}function gm(e,t){switch(e.tag){case 26:case 27:case 5:return Ll(e.type);case 16:return Ll("Lazy");case 13:return e.child!==t&&t!==null?Ll("Suspense Fallback"):Ll("Suspense");case 19:return Ll("SuspenseList");case 0:case 15:return Ti(e.type,!1);case 11:return Ti(e.type.render,!1);case 1:return Ti(e.type,!0);case 31:return Ll("Activity");default:return""}}function mr(e){try{var t="",l=null;do t+=gm(e,l),l=e,e=e.return;while(e);return t}catch(a){return`
47
47
  Error generating stack: `+a.message+`
48
- `+a.stack}}var _i=Object.prototype.hasOwnProperty,Ai=i.unstable_scheduleCallback,Ni=i.unstable_cancelCallback,bm=i.unstable_shouldYield,Sm=i.unstable_requestPaint,st=i.unstable_now,xm=i.unstable_getCurrentPriorityLevel,vr=i.unstable_ImmediatePriority,yr=i.unstable_UserBlockingPriority,Wn=i.unstable_NormalPriority,jm=i.unstable_LowPriority,pr=i.unstable_IdlePriority,Em=i.log,Tm=i.unstable_setDisableYieldValue,Za=null,rt=null;function dl(e){if(typeof Em=="function"&&Tm(e),rt&&typeof rt.setStrictMode=="function")try{rt.setStrictMode(Za,e)}catch{}}var ot=Math.clz32?Math.clz32:Nm,_m=Math.log,Am=Math.LN2;function Nm(e){return e>>>=0,e===0?32:31-(_m(e)/Am|0)|0}var Fn=256,In=262144,Pn=4194304;function ql(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 eu(e,t,l){var a=e.pendingLanes;if(a===0)return 0;var n=0,u=e.suspendedLanes,r=e.pingedLanes;e=e.warmLanes;var d=a&134217727;return d!==0?(a=d&~u,a!==0?n=ql(a):(r&=d,r!==0?n=ql(r):l||(l=d&~e,l!==0&&(n=ql(l))))):(d=a&~u,d!==0?n=ql(d):r!==0?n=ql(r):l||(l=a&~e,l!==0&&(n=ql(l)))),n===0?0:t!==0&&t!==n&&(t&u)===0&&(u=n&-n,l=t&-t,u>=l||u===32&&(l&4194048)!==0)?t:n}function Ka(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function Rm(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 gr(){var e=Pn;return Pn<<=1,(Pn&62914560)===0&&(Pn=4194304),e}function Ri(e){for(var t=[],l=0;31>l;l++)t.push(e);return t}function Ja(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function zm(e,t,l,a,n,u){var r=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,N=e.hiddenUpdates;for(l=r&~l;0<l;){var M=31-ot(l),U=1<<M;d[M]=0,p[M]=-1;var R=N[M];if(R!==null)for(N[M]=null,M=0;M<R.length;M++){var z=R[M];z!==null&&(z.lane&=-536870913)}l&=~U}a!==0&&br(e,a,0),u!==0&&n===0&&e.tag!==0&&(e.suspendedLanes|=u&~(r&~t))}function br(e,t,l){e.pendingLanes|=t,e.suspendedLanes&=~t;var a=31-ot(t);e.entangledLanes|=t,e.entanglements[a]=e.entanglements[a]|1073741824|l&261930}function Sr(e,t){var l=e.entangledLanes|=t;for(e=e.entanglements;l;){var a=31-ot(l),n=1<<a;n&t|e[a]&t&&(e[a]|=t),l&=~n}}function xr(e,t){var l=t&-t;return l=(l&42)!==0?1:zi(l),(l&(e.suspendedLanes|t))!==0?0:l}function zi(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 Ci(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function jr(){var e=V.p;return e!==0?e:(e=window.event,e===void 0?32:rh(e.type))}function Er(e,t){var l=V.p;try{return V.p=e,t()}finally{V.p=l}}var hl=Math.random().toString(36).slice(2),Xe="__reactFiber$"+hl,et="__reactProps$"+hl,na="__reactContainer$"+hl,Mi="__reactEvents$"+hl,Cm="__reactListeners$"+hl,Mm="__reactHandles$"+hl,Tr="__reactResources$"+hl,$a="__reactMarker$"+hl;function Oi(e){delete e[Xe],delete e[et],delete e[Mi],delete e[Cm],delete e[Mm]}function ua(e){var t=e[Xe];if(t)return t;for(var l=e.parentNode;l;){if(t=l[na]||l[Xe]){if(l=t.alternate,t.child!==null||l!==null&&l.child!==null)for(e=Kd(e);e!==null;){if(l=e[Xe])return l;e=Kd(e)}return t}e=l,l=e.parentNode}return null}function ia(e){if(e=e[Xe]||e[na]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function Wa(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(o(33))}function ca(e){var t=e[Tr];return t||(t=e[Tr]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function Ye(e){e[$a]=!0}var _r=new Set,Ar={};function kl(e,t){sa(e,t),sa(e+"Capture",t)}function sa(e,t){for(Ar[e]=t,e=0;e<t.length;e++)_r.add(t[e])}var Om=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]*$"),Nr={},Rr={};function wm(e){return _i.call(Rr,e)?!0:_i.call(Nr,e)?!1:Om.test(e)?Rr[e]=!0:(Nr[e]=!0,!1)}function tu(e,t,l){if(wm(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 lu(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 Vt(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 St(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function zr(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Dm(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(r){l=""+r,u.call(this,r)}}),Object.defineProperty(e,t,{enumerable:a.enumerable}),{getValue:function(){return l},setValue:function(r){l=""+r},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function wi(e){if(!e._valueTracker){var t=zr(e)?"checked":"value";e._valueTracker=Dm(e,t,""+e[t])}}function Cr(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var l=t.getValue(),a="";return e&&(a=zr(e)?e.checked?"true":"false":e.value),e=a,e!==l?(t.setValue(e),!0):!1}function au(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 Um=/[\n"\\]/g;function xt(e){return e.replace(Um,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function Di(e,t,l,a,n,u,r,d){e.name="",r!=null&&typeof r!="function"&&typeof r!="symbol"&&typeof r!="boolean"?e.type=r:e.removeAttribute("type"),t!=null?r==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+St(t)):e.value!==""+St(t)&&(e.value=""+St(t)):r!=="submit"&&r!=="reset"||e.removeAttribute("value"),t!=null?Ui(e,r,St(t)):l!=null?Ui(e,r,St(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=""+St(d):e.removeAttribute("name")}function Mr(e,t,l,a,n,u,r,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)){wi(e);return}l=l!=null?""+St(l):"",t=t!=null?""+St(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,r!=null&&typeof r!="function"&&typeof r!="symbol"&&typeof r!="boolean"&&(e.name=r),wi(e)}function Ui(e,t,l){t==="number"&&au(e.ownerDocument)===e||e.defaultValue===""+l||(e.defaultValue=""+l)}function ra(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=""+St(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 Or(e,t,l){if(t!=null&&(t=""+St(t),t!==e.value&&(e.value=t),l==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=l!=null?""+St(l):""}function wr(e,t,l,a){if(t==null){if(a!=null){if(l!=null)throw Error(o(92));if(Ue(a)){if(1<a.length)throw Error(o(93));a=a[0]}l=a}l==null&&(l=""),t=l}l=St(t),e.defaultValue=l,a=e.textContent,a===l&&a!==""&&a!==null&&(e.value=a),wi(e)}function oa(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 Dr(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 Ur(e,t,l){if(t!=null&&typeof t!="object")throw Error(o(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&&Dr(e,n,a)}else for(var u in t)t.hasOwnProperty(u)&&Dr(e,u,t[u])}function Hi(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 Bm=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"]]),Lm=/^[\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 nu(e){return Lm.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function Zt(){}var Bi=null;function Li(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var fa=null,da=null;function Hr(e){var t=ia(e);if(t&&(e=t.stateNode)){var l=e[et]||null;e:switch(e=t.stateNode,t.type){case"input":if(Di(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="'+xt(""+t)+'"][type="radio"]'),t=0;t<l.length;t++){var a=l[t];if(a!==e&&a.form===e.form){var n=a[et]||null;if(!n)throw Error(o(90));Di(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&&Cr(a)}break e;case"textarea":Or(e,l.value,l.defaultValue);break e;case"select":t=l.value,t!=null&&ra(e,!!l.multiple,t,!1)}}}var qi=!1;function Br(e,t,l){if(qi)return e(t,l);qi=!0;try{var a=e(t);return a}finally{if(qi=!1,(fa!==null||da!==null)&&(Vu(),fa&&(t=fa,e=da,da=fa=null,Hr(t),e)))for(t=0;t<e.length;t++)Hr(e[t])}}function Fa(e,t){var l=e.stateNode;if(l===null)return null;var a=l[et]||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(o(231,t,typeof l));return l}var Kt=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),ki=!1;if(Kt)try{var Ia={};Object.defineProperty(Ia,"passive",{get:function(){ki=!0}}),window.addEventListener("test",Ia,Ia),window.removeEventListener("test",Ia,Ia)}catch{ki=!1}var ml=null,Yi=null,uu=null;function Lr(){if(uu)return uu;var e,t=Yi,l=t.length,a,n="value"in ml?ml.value:ml.textContent,u=n.length;for(e=0;e<l&&t[e]===n[e];e++);var r=l-e;for(a=1;a<=r&&t[l-a]===n[u-a];a++);return uu=n.slice(e,1<a?1-a:void 0)}function iu(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 cu(){return!0}function qr(){return!1}function tt(e){function t(l,a,n,u,r){this._reactName=l,this._targetInst=n,this.type=a,this.nativeEvent=u,this.target=r,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)?cu:qr,this.isPropagationStopped=qr,this}return b(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=cu)},stopPropagation:function(){var l=this.nativeEvent;l&&(l.stopPropagation?l.stopPropagation():typeof l.cancelBubble!="unknown"&&(l.cancelBubble=!0),this.isPropagationStopped=cu)},persist:function(){},isPersistent:cu}),t}var Yl={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},su=tt(Yl),Pa=b({},Yl,{view:0,detail:0}),qm=tt(Pa),Gi,Xi,en,ru=b({},Pa,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Vi,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!==en&&(en&&e.type==="mousemove"?(Gi=e.screenX-en.screenX,Xi=e.screenY-en.screenY):Xi=Gi=0,en=e),Gi)},movementY:function(e){return"movementY"in e?e.movementY:Xi}}),kr=tt(ru),km=b({},ru,{dataTransfer:0}),Ym=tt(km),Gm=b({},Pa,{relatedTarget:0}),Qi=tt(Gm),Xm=b({},Yl,{animationName:0,elapsedTime:0,pseudoElement:0}),Qm=tt(Xm),Vm=b({},Yl,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Zm=tt(Vm),Km=b({},Yl,{data:0}),Yr=tt(Km),Jm={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},$m={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"},Wm={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Fm(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=Wm[e])?!!t[e]:!1}function Vi(){return Fm}var Im=b({},Pa,{key:function(e){if(e.key){var t=Jm[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=iu(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?$m[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Vi,charCode:function(e){return e.type==="keypress"?iu(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?iu(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),Pm=tt(Im),ev=b({},ru,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Gr=tt(ev),tv=b({},Pa,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Vi}),lv=tt(tv),av=b({},Yl,{propertyName:0,elapsedTime:0,pseudoElement:0}),nv=tt(av),uv=b({},ru,{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}),iv=tt(uv),cv=b({},Yl,{newState:0,oldState:0}),sv=tt(cv),rv=[9,13,27,32],Zi=Kt&&"CompositionEvent"in window,tn=null;Kt&&"documentMode"in document&&(tn=document.documentMode);var ov=Kt&&"TextEvent"in window&&!tn,Xr=Kt&&(!Zi||tn&&8<tn&&11>=tn),Qr=" ",Vr=!1;function Zr(e,t){switch(e){case"keyup":return rv.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Kr(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var ha=!1;function fv(e,t){switch(e){case"compositionend":return Kr(t);case"keypress":return t.which!==32?null:(Vr=!0,Qr);case"textInput":return e=t.data,e===Qr&&Vr?null:e;default:return null}}function dv(e,t){if(ha)return e==="compositionend"||!Zi&&Zr(e,t)?(e=Lr(),uu=Yi=ml=null,ha=!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 Xr&&t.locale!=="ko"?null:t.data;default:return null}}var hv={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 Jr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!hv[e.type]:t==="textarea"}function $r(e,t,l,a){fa?da?da.push(a):da=[a]:fa=a,t=Iu(t,"onChange"),0<t.length&&(l=new su("onChange","change",null,l,a),e.push({event:l,listeners:t}))}var ln=null,an=null;function mv(e){wd(e,0)}function ou(e){var t=Wa(e);if(Cr(t))return e}function Wr(e,t){if(e==="change")return t}var Fr=!1;if(Kt){var Ki;if(Kt){var Ji="oninput"in document;if(!Ji){var Ir=document.createElement("div");Ir.setAttribute("oninput","return;"),Ji=typeof Ir.oninput=="function"}Ki=Ji}else Ki=!1;Fr=Ki&&(!document.documentMode||9<document.documentMode)}function Pr(){ln&&(ln.detachEvent("onpropertychange",eo),an=ln=null)}function eo(e){if(e.propertyName==="value"&&ou(an)){var t=[];$r(t,an,e,Li(e)),Br(mv,t)}}function vv(e,t,l){e==="focusin"?(Pr(),ln=t,an=l,ln.attachEvent("onpropertychange",eo)):e==="focusout"&&Pr()}function yv(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return ou(an)}function pv(e,t){if(e==="click")return ou(t)}function gv(e,t){if(e==="input"||e==="change")return ou(t)}function bv(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var ft=typeof Object.is=="function"?Object.is:bv;function nn(e,t){if(ft(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(!_i.call(t,n)||!ft(e[n],t[n]))return!1}return!0}function to(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function lo(e,t){var l=to(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=to(l)}}function ao(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?ao(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function no(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=au(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=au(e.document)}return t}function $i(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 Sv=Kt&&"documentMode"in document&&11>=document.documentMode,ma=null,Wi=null,un=null,Fi=!1;function uo(e,t,l){var a=l.window===l?l.document:l.nodeType===9?l:l.ownerDocument;Fi||ma==null||ma!==au(a)||(a=ma,"selectionStart"in a&&$i(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}),un&&nn(un,a)||(un=a,a=Iu(Wi,"onSelect"),0<a.length&&(t=new su("onSelect","select",null,t,l),e.push({event:t,listeners:a}),t.target=ma)))}function Gl(e,t){var l={};return l[e.toLowerCase()]=t.toLowerCase(),l["Webkit"+e]="webkit"+t,l["Moz"+e]="moz"+t,l}var va={animationend:Gl("Animation","AnimationEnd"),animationiteration:Gl("Animation","AnimationIteration"),animationstart:Gl("Animation","AnimationStart"),transitionrun:Gl("Transition","TransitionRun"),transitionstart:Gl("Transition","TransitionStart"),transitioncancel:Gl("Transition","TransitionCancel"),transitionend:Gl("Transition","TransitionEnd")},Ii={},io={};Kt&&(io=document.createElement("div").style,"AnimationEvent"in window||(delete va.animationend.animation,delete va.animationiteration.animation,delete va.animationstart.animation),"TransitionEvent"in window||delete va.transitionend.transition);function Xl(e){if(Ii[e])return Ii[e];if(!va[e])return e;var t=va[e],l;for(l in t)if(t.hasOwnProperty(l)&&l in io)return Ii[e]=t[l];return e}var co=Xl("animationend"),so=Xl("animationiteration"),ro=Xl("animationstart"),xv=Xl("transitionrun"),jv=Xl("transitionstart"),Ev=Xl("transitioncancel"),oo=Xl("transitionend"),fo=new Map,Pi="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(" ");Pi.push("scrollEnd");function Mt(e,t){fo.set(e,t),kl(t,[e])}var fu=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=[],ya=0,ec=0;function du(){for(var e=ya,t=ec=ya=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 r=a.pending;r===null?n.next=n:(n.next=r.next,r.next=n),a.pending=n}u!==0&&ho(l,n,u)}}function hu(e,t,l,a){jt[ya++]=e,jt[ya++]=t,jt[ya++]=l,jt[ya++]=a,ec|=a,e.lanes|=a,e=e.alternate,e!==null&&(e.lanes|=a)}function tc(e,t,l,a){return hu(e,t,l,a),mu(e)}function Ql(e,t){return hu(e,null,null,t),mu(e)}function ho(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-ot(l),e=u.hiddenUpdates,a=e[n],a===null?e[n]=[t]:a.push(t),t.lane=l|536870912),u):null}function mu(e){if(50<Rn)throw Rn=0,os=null,Error(o(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var pa={};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 dt(e,t,l,a){return new Tv(e,t,l,a)}function lc(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Jt(e,t){var l=e.alternate;return l===null?(l=dt(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 mo(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 vu(e,t,l,a,n,u){var r=0;if(a=e,typeof e=="function")lc(e)&&(r=1);else if(typeof e=="string")r=zy(e,l,W.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case Re:return e=dt(31,l,t,n),e.elementType=Re,e.lanes=u,e;case B:return Vl(l.children,n,u,t);case k:r=8,n|=24;break;case L:return e=dt(12,l,t,n|2),e.elementType=L,e.lanes=u,e;case G:return e=dt(13,l,t,n),e.elementType=G,e.lanes=u,e;case Y:return e=dt(19,l,t,n),e.elementType=Y,e.lanes=u,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case J:r=10;break e;case Q:r=9;break e;case K:r=11;break e;case X:r=14;break e;case fe:r=16,a=null;break e}r=29,l=Error(o(130,e===null?"null":typeof e,"")),a=null}return t=dt(r,l,t,n),t.elementType=e,t.type=a,t.lanes=u,t}function Vl(e,t,l,a){return e=dt(7,e,a,t),e.lanes=l,e}function ac(e,t,l){return e=dt(6,e,null,t),e.lanes=l,e}function vo(e){var t=dt(18,null,null,0);return t.stateNode=e,t}function nc(e,t,l){return t=dt(4,e.children!==null?e.children:[],e.key,t),t.lanes=l,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var yo=new WeakMap;function Et(e,t){if(typeof e=="object"&&e!==null){var l=yo.get(e);return l!==void 0?l:(t={value:e,source:t,stack:mr(t)},yo.set(e,t),t)}return{value:e,source:t,stack:mr(t)}}var ga=[],ba=0,yu=null,cn=0,Tt=[],_t=0,vl=null,Bt=1,Lt="";function $t(e,t){ga[ba++]=cn,ga[ba++]=yu,yu=e,cn=t}function po(e,t,l){Tt[_t++]=Bt,Tt[_t++]=Lt,Tt[_t++]=vl,vl=e;var a=Bt;e=Lt;var n=32-ot(a)-1;a&=~(1<<n),l+=1;var u=32-ot(t)+n;if(30<u){var r=n-n%5;u=(a&(1<<r)-1).toString(32),a>>=r,n-=r,Bt=1<<32-ot(t)+n|l<<n|a,Lt=u+e}else Bt=1<<u|l<<n|a,Lt=e}function uc(e){e.return!==null&&($t(e,1),po(e,1,0))}function ic(e){for(;e===yu;)yu=ga[--ba],ga[ba]=null,cn=ga[--ba],ga[ba]=null;for(;e===vl;)vl=Tt[--_t],Tt[_t]=null,Lt=Tt[--_t],Tt[_t]=null,Bt=Tt[--_t],Tt[_t]=null}function go(e,t){Tt[_t++]=Bt,Tt[_t++]=Lt,Tt[_t++]=vl,Bt=t.id,Lt=t.overflow,vl=e}var Qe=null,_e=null,oe=!1,yl=null,At=!1,cc=Error(o(519));function pl(e){var t=Error(o(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw sn(Et(t,e)),cc}function bo(e){var t=e.stateNode,l=e.type,a=e.memoizedProps;switch(t[Xe]=e,t[et]=a,l){case"dialog":ce("cancel",t),ce("close",t);break;case"iframe":case"object":case"embed":ce("load",t);break;case"video":case"audio":for(l=0;l<Cn.length;l++)ce(Cn[l],t);break;case"source":ce("error",t);break;case"img":case"image":case"link":ce("error",t),ce("load",t);break;case"details":ce("toggle",t);break;case"input":ce("invalid",t),Mr(t,a.value,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name,!0);break;case"select":ce("invalid",t);break;case"textarea":ce("invalid",t),wr(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||Bd(t.textContent,l)?(a.popover!=null&&(ce("beforetoggle",t),ce("toggle",t)),a.onScroll!=null&&ce("scroll",t),a.onScrollEnd!=null&&ce("scrollend",t),a.onClick!=null&&(t.onclick=Zt),t=!0):t=!1,t||pl(e,!0)}function So(e){for(Qe=e.return;Qe;)switch(Qe.tag){case 5:case 31:case 13:At=!1;return;case 27:case 3:At=!0;return;default:Qe=Qe.return}}function Sa(e){if(e!==Qe)return!1;if(!oe)return So(e),oe=!0,!1;var t=e.tag,l;if((l=t!==3&&t!==27)&&((l=t===5)&&(l=e.type,l=!(l!=="form"&&l!=="button")||_s(e.type,e.memoizedProps)),l=!l),l&&_e&&pl(e),So(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(o(317));_e=Zd(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(o(317));_e=Zd(e)}else t===27?(t=_e,Ml(e.type)?(e=Cs,Cs=null,_e=e):_e=t):_e=Qe?Rt(e.stateNode.nextSibling):null;return!0}function Zl(){_e=Qe=null,oe=!1}function sc(){var e=yl;return e!==null&&(ut===null?ut=e:ut.push.apply(ut,e),yl=null),e}function sn(e){yl===null?yl=[e]:yl.push(e)}var rc=E(null),Kl=null,Wt=null;function gl(e,t,l){Z(rc,t._currentValue),t._currentValue=l}function Ft(e){e._currentValue=rc.current,H(rc)}function oc(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 fc(e,t,l,a){var n=e.child;for(n!==null&&(n.return=e);n!==null;){var u=n.dependencies;if(u!==null){var r=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),oc(u.return,l,e),a||(r=null);break e}u=d.next}}else if(n.tag===18){if(r=n.return,r===null)throw Error(o(341));r.lanes|=l,u=r.alternate,u!==null&&(u.lanes|=l),oc(r,l,e),r=null}else r=n.child;if(r!==null)r.return=n;else for(r=n;r!==null;){if(r===e){r=null;break}if(n=r.sibling,n!==null){n.return=r.return,r=n;break}r=r.return}n=r}}function xa(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 r=n.alternate;if(r===null)throw Error(o(387));if(r=r.memoizedProps,r!==null){var d=n.type;ft(n.pendingProps.value,r.value)||(e!==null?e.push(d):e=[d])}}else if(n===ve.current){if(r=n.alternate,r===null)throw Error(o(387));r.memoizedState.memoizedState!==n.memoizedState.memoizedState&&(e!==null?e.push(Un):e=[Un])}n=n.return}e!==null&&fc(t,e,l,a),t.flags|=262144}function pu(e){for(e=e.firstContext;e!==null;){if(!ft(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function Jl(e){Kl=e,Wt=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function Ve(e){return xo(Kl,e)}function gu(e,t){return Kl===null&&Jl(e),xo(e,t)}function xo(e,t){var l=t._currentValue;if(t={context:t,memoizedValue:l,next:null},Wt===null){if(e===null)throw Error(o(308));Wt=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else Wt=Wt.next=t;return l}var _v=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,He={$$typeof:J,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function dc(){return{controller:new _v,data:new Map,refCount:0}}function rn(e){e.refCount--,e.refCount===0&&Av(Nv,function(){e.controller.abort()})}var on=null,hc=0,ja=0,Ea=null;function Rv(e,t){if(on===null){var l=on=[];hc=0,ja=ys(),Ea={status:"pending",value:void 0,then:function(a){l.push(a)}}}return hc++,t.then(jo,jo),t}function jo(){if(--hc===0&&on!==null){Ea!==null&&(Ea.status="fulfilled");var e=on;on=null,ja=0,Ea=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function zv(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 Eo=O.S;O.S=function(e,t){cd=st(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&Rv(e,t),Eo!==null&&Eo(e,t)};var $l=E(null);function mc(){var e=$l.current;return e!==null?e:Ee.pooledCache}function bu(e,t){t===null?Z($l,$l.current):Z($l,t.pool)}function To(){var e=mc();return e===null?null:{parent:He._currentValue,pool:e}}var Ta=Error(o(460)),vc=Error(o(474)),Su=Error(o(542)),xu={then:function(){}};function _o(e){return e=e.status,e==="fulfilled"||e==="rejected"}function Ao(e,t,l){switch(l=e[l],l===void 0?e.push(t):l!==t&&(t.then(Zt,Zt),t=l),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,Ro(e),e;default:if(typeof t.status=="string")t.then(Zt,Zt);else{if(e=Ee,e!==null&&100<e.shellSuspendCounter)throw Error(o(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,Ro(e),e}throw Fl=t,Ta}}function Wl(e){try{var t=e._init;return t(e._payload)}catch(l){throw l!==null&&typeof l=="object"&&typeof l.then=="function"?(Fl=l,Ta):l}}var Fl=null;function No(){if(Fl===null)throw Error(o(459));var e=Fl;return Fl=null,e}function Ro(e){if(e===Ta||e===Su)throw Error(o(483))}var _a=null,fn=0;function ju(e){var t=fn;return fn+=1,_a===null&&(_a=[]),Ao(_a,e,t)}function dn(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function Eu(e,t){throw t.$$typeof===C?Error(o(525)):(e=Object.prototype.toString.call(t),Error(o(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function zo(e){function t(_,x){if(e){var A=_.deletions;A===null?(_.deletions=[x],_.flags|=16):A.push(x)}}function l(_,x){if(!e)return null;for(;x!==null;)t(_,x),x=x.sibling;return null}function a(_){for(var x=new Map;_!==null;)_.key!==null?x.set(_.key,_):x.set(_.index,_),_=_.sibling;return x}function n(_,x){return _=Jt(_,x),_.index=0,_.sibling=null,_}function u(_,x,A){return _.index=A,e?(A=_.alternate,A!==null?(A=A.index,A<x?(_.flags|=67108866,x):A):(_.flags|=67108866,x)):(_.flags|=1048576,x)}function r(_){return e&&_.alternate===null&&(_.flags|=67108866),_}function d(_,x,A,w){return x===null||x.tag!==6?(x=ac(A,_.mode,w),x.return=_,x):(x=n(x,A),x.return=_,x)}function p(_,x,A,w){var I=A.type;return I===B?M(_,x,A.props.children,w,A.key):x!==null&&(x.elementType===I||typeof I=="object"&&I!==null&&I.$$typeof===fe&&Wl(I)===x.type)?(x=n(x,A.props),dn(x,A),x.return=_,x):(x=vu(A.type,A.key,A.props,null,_.mode,w),dn(x,A),x.return=_,x)}function N(_,x,A,w){return x===null||x.tag!==4||x.stateNode.containerInfo!==A.containerInfo||x.stateNode.implementation!==A.implementation?(x=nc(A,_.mode,w),x.return=_,x):(x=n(x,A.children||[]),x.return=_,x)}function M(_,x,A,w,I){return x===null||x.tag!==7?(x=Vl(A,_.mode,w,I),x.return=_,x):(x=n(x,A),x.return=_,x)}function U(_,x,A){if(typeof x=="string"&&x!==""||typeof x=="number"||typeof x=="bigint")return x=ac(""+x,_.mode,A),x.return=_,x;if(typeof x=="object"&&x!==null){switch(x.$$typeof){case q:return A=vu(x.type,x.key,x.props,null,_.mode,A),dn(A,x),A.return=_,A;case D:return x=nc(x,_.mode,A),x.return=_,x;case fe:return x=Wl(x),U(_,x,A)}if(Ue(x)||$e(x))return x=Vl(x,_.mode,A,null),x.return=_,x;if(typeof x.then=="function")return U(_,ju(x),A);if(x.$$typeof===J)return U(_,gu(_,x),A);Eu(_,x)}return null}function R(_,x,A,w){var I=x!==null?x.key:null;if(typeof A=="string"&&A!==""||typeof A=="number"||typeof A=="bigint")return I!==null?null:d(_,x,""+A,w);if(typeof A=="object"&&A!==null){switch(A.$$typeof){case q:return A.key===I?p(_,x,A,w):null;case D:return A.key===I?N(_,x,A,w):null;case fe:return A=Wl(A),R(_,x,A,w)}if(Ue(A)||$e(A))return I!==null?null:M(_,x,A,w,null);if(typeof A.then=="function")return R(_,x,ju(A),w);if(A.$$typeof===J)return R(_,x,gu(_,A),w);Eu(_,A)}return null}function z(_,x,A,w,I){if(typeof w=="string"&&w!==""||typeof w=="number"||typeof w=="bigint")return _=_.get(A)||null,d(x,_,""+w,I);if(typeof w=="object"&&w!==null){switch(w.$$typeof){case q:return _=_.get(w.key===null?A:w.key)||null,p(x,_,w,I);case D:return _=_.get(w.key===null?A:w.key)||null,N(x,_,w,I);case fe:return w=Wl(w),z(_,x,A,w,I)}if(Ue(w)||$e(w))return _=_.get(A)||null,M(x,_,w,I,null);if(typeof w.then=="function")return z(_,x,A,ju(w),I);if(w.$$typeof===J)return z(_,x,A,gu(x,w),I);Eu(x,w)}return null}function $(_,x,A,w){for(var I=null,de=null,F=x,ne=x=0,re=null;F!==null&&ne<A.length;ne++){F.index>ne?(re=F,F=null):re=F.sibling;var he=R(_,F,A[ne],w);if(he===null){F===null&&(F=re);break}e&&F&&he.alternate===null&&t(_,F),x=u(he,x,ne),de===null?I=he:de.sibling=he,de=he,F=re}if(ne===A.length)return l(_,F),oe&&$t(_,ne),I;if(F===null){for(;ne<A.length;ne++)F=U(_,A[ne],w),F!==null&&(x=u(F,x,ne),de===null?I=F:de.sibling=F,de=F);return oe&&$t(_,ne),I}for(F=a(F);ne<A.length;ne++)re=z(F,_,ne,A[ne],w),re!==null&&(e&&re.alternate!==null&&F.delete(re.key===null?ne:re.key),x=u(re,x,ne),de===null?I=re:de.sibling=re,de=re);return e&&F.forEach(function(Hl){return t(_,Hl)}),oe&&$t(_,ne),I}function P(_,x,A,w){if(A==null)throw Error(o(151));for(var I=null,de=null,F=x,ne=x=0,re=null,he=A.next();F!==null&&!he.done;ne++,he=A.next()){F.index>ne?(re=F,F=null):re=F.sibling;var Hl=R(_,F,he.value,w);if(Hl===null){F===null&&(F=re);break}e&&F&&Hl.alternate===null&&t(_,F),x=u(Hl,x,ne),de===null?I=Hl:de.sibling=Hl,de=Hl,F=re}if(he.done)return l(_,F),oe&&$t(_,ne),I;if(F===null){for(;!he.done;ne++,he=A.next())he=U(_,he.value,w),he!==null&&(x=u(he,x,ne),de===null?I=he:de.sibling=he,de=he);return oe&&$t(_,ne),I}for(F=a(F);!he.done;ne++,he=A.next())he=z(F,_,ne,he.value,w),he!==null&&(e&&he.alternate!==null&&F.delete(he.key===null?ne:he.key),x=u(he,x,ne),de===null?I=he:de.sibling=he,de=he);return e&&F.forEach(function(ky){return t(_,ky)}),oe&&$t(_,ne),I}function xe(_,x,A,w){if(typeof A=="object"&&A!==null&&A.type===B&&A.key===null&&(A=A.props.children),typeof A=="object"&&A!==null){switch(A.$$typeof){case q:e:{for(var I=A.key;x!==null;){if(x.key===I){if(I=A.type,I===B){if(x.tag===7){l(_,x.sibling),w=n(x,A.props.children),w.return=_,_=w;break e}}else if(x.elementType===I||typeof I=="object"&&I!==null&&I.$$typeof===fe&&Wl(I)===x.type){l(_,x.sibling),w=n(x,A.props),dn(w,A),w.return=_,_=w;break e}l(_,x);break}else t(_,x);x=x.sibling}A.type===B?(w=Vl(A.props.children,_.mode,w,A.key),w.return=_,_=w):(w=vu(A.type,A.key,A.props,null,_.mode,w),dn(w,A),w.return=_,_=w)}return r(_);case D:e:{for(I=A.key;x!==null;){if(x.key===I)if(x.tag===4&&x.stateNode.containerInfo===A.containerInfo&&x.stateNode.implementation===A.implementation){l(_,x.sibling),w=n(x,A.children||[]),w.return=_,_=w;break e}else{l(_,x);break}else t(_,x);x=x.sibling}w=nc(A,_.mode,w),w.return=_,_=w}return r(_);case fe:return A=Wl(A),xe(_,x,A,w)}if(Ue(A))return $(_,x,A,w);if($e(A)){if(I=$e(A),typeof I!="function")throw Error(o(150));return A=I.call(A),P(_,x,A,w)}if(typeof A.then=="function")return xe(_,x,ju(A),w);if(A.$$typeof===J)return xe(_,x,gu(_,A),w);Eu(_,A)}return typeof A=="string"&&A!==""||typeof A=="number"||typeof A=="bigint"?(A=""+A,x!==null&&x.tag===6?(l(_,x.sibling),w=n(x,A),w.return=_,_=w):(l(_,x),w=ac(A,_.mode,w),w.return=_,_=w),r(_)):l(_,x)}return function(_,x,A,w){try{fn=0;var I=xe(_,x,A,w);return _a=null,I}catch(F){if(F===Ta||F===Su)throw F;var de=dt(29,F,null,_.mode);return de.lanes=w,de.return=_,de}finally{}}}var Il=zo(!0),Co=zo(!1),bl=!1;function yc(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function pc(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 xl(e,t,l){var a=e.updateQueue;if(a===null)return null;if(a=a.shared,(me&2)!==0){var n=a.pending;return n===null?t.next=t:(t.next=n.next,n.next=t),a.pending=t,t=mu(e),ho(e,null,l),t}return hu(e,a,t,l),mu(e)}function hn(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,Sr(e,l)}}function gc(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 r={lane:l.lane,tag:l.tag,payload:l.payload,callback:null,next:null};u===null?n=u=r:u=u.next=r,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 bc=!1;function mn(){if(bc){var e=Ea;if(e!==null)throw e}}function vn(e,t,l,a){bc=!1;var n=e.updateQueue;bl=!1;var u=n.firstBaseUpdate,r=n.lastBaseUpdate,d=n.shared.pending;if(d!==null){n.shared.pending=null;var p=d,N=p.next;p.next=null,r===null?u=N:r.next=N,r=p;var M=e.alternate;M!==null&&(M=M.updateQueue,d=M.lastBaseUpdate,d!==r&&(d===null?M.firstBaseUpdate=N:d.next=N,M.lastBaseUpdate=p))}if(u!==null){var U=n.baseState;r=0,M=N=p=null,d=u;do{var R=d.lane&-536870913,z=R!==d.lane;if(z?(se&R)===R:(a&R)===R){R!==0&&R===ja&&(bc=!0),M!==null&&(M=M.next={lane:0,tag:d.tag,payload:d.payload,callback:null,next:null});e:{var $=e,P=d;R=t;var xe=l;switch(P.tag){case 1:if($=P.payload,typeof $=="function"){U=$.call(xe,U,R);break e}U=$;break e;case 3:$.flags=$.flags&-65537|128;case 0:if($=P.payload,R=typeof $=="function"?$.call(xe,U,R):$,R==null)break e;U=b({},U,R);break e;case 2:bl=!0}}R=d.callback,R!==null&&(e.flags|=64,z&&(e.flags|=8192),z=n.callbacks,z===null?n.callbacks=[R]:z.push(R))}else z={lane:R,tag:d.tag,payload:d.payload,callback:d.callback,next:null},M===null?(N=M=z,p=U):M=M.next=z,r|=R;if(d=d.next,d===null){if(d=n.shared.pending,d===null)break;z=d,d=z.next,z.next=null,n.lastBaseUpdate=z,n.shared.pending=null}}while(!0);M===null&&(p=U),n.baseState=p,n.firstBaseUpdate=N,n.lastBaseUpdate=M,u===null&&(n.shared.lanes=0),Al|=r,e.lanes=r,e.memoizedState=U}}function Mo(e,t){if(typeof e!="function")throw Error(o(191,e));e.call(t)}function Oo(e,t){var l=e.callbacks;if(l!==null)for(e.callbacks=null,e=0;e<l.length;e++)Mo(l[e],t)}var Aa=E(null),Tu=E(0);function wo(e,t){e=il,Z(Tu,e),Z(Aa,t),il=e|t.baseLanes}function Sc(){Z(Tu,il),Z(Aa,Aa.current)}function xc(){il=Tu.current,H(Aa),H(Tu)}var ht=E(null),Nt=null;function jl(e){var t=e.alternate;Z(we,we.current&1),Z(ht,e),Nt===null&&(t===null||Aa.current!==null||t.memoizedState!==null)&&(Nt=e)}function jc(e){Z(we,we.current),Z(ht,e),Nt===null&&(Nt=e)}function Do(e){e.tag===22?(Z(we,we.current),Z(ht,e),Nt===null&&(Nt=e)):El()}function El(){Z(we,we.current),Z(ht,ht.current)}function mt(e){H(ht),Nt===e&&(Nt=null),H(we)}var we=E(0);function _u(e){for(var t=e;t!==null;){if(t.tag===13){var l=t.memoizedState;if(l!==null&&(l=l.dehydrated,l===null||Rs(l)||zs(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,be=null,Be=null,Au=!1,Na=!1,Pl=!1,Nu=0,yn=0,Ra=null,Cv=0;function Ce(){throw Error(o(321))}function Ec(e,t){if(t===null)return!1;for(var l=0;l<t.length&&l<e.length;l++)if(!ft(e[l],t[l]))return!1;return!0}function Tc(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?gf:qc,Pl=!1,u=l(a,n),Pl=!1,Na&&(u=Ho(t,l,a,n)),Uo(e),u}function Uo(e){O.H=bn;var t=be!==null&&be.next!==null;if(It=0,Be=be=ae=null,Au=!1,yn=0,Ra=null,t)throw Error(o(300));e===null||Le||(e=e.dependencies,e!==null&&pu(e)&&(Le=!0))}function Ho(e,t,l,a){ae=e;var n=0;do{if(Na&&(Ra=null),yn=0,Na=!1,25<=n)throw Error(o(301));if(n+=1,Be=be=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=bf,u=t(l,a)}while(Na);return u}function Mv(){var e=O.H,t=e.useState()[0];return t=typeof t.then=="function"?pn(t):t,e=e.useState()[0],(be!==null?be.memoizedState:null)!==e&&(ae.flags|=1024),t}function _c(){var e=Nu!==0;return Nu=0,e}function Ac(e,t,l){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~l}function Nc(e){if(Au){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}Au=!1}It=0,Be=be=ae=null,Na=!1,yn=Nu=0,Ra=null}function Ie(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Be===null?ae.memoizedState=Be=e:Be=Be.next=e,Be}function De(){if(be===null){var e=ae.alternate;e=e!==null?e.memoizedState:null}else e=be.next;var t=Be===null?ae.memoizedState:Be.next;if(t!==null)Be=t,be=e;else{if(e===null)throw ae.alternate===null?Error(o(467)):Error(o(310));be=e,e={memoizedState:be.memoizedState,baseState:be.baseState,baseQueue:be.baseQueue,queue:be.queue,next:null},Be===null?ae.memoizedState=Be=e:Be=Be.next=e}return Be}function Ru(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function pn(e){var t=yn;return yn+=1,Ra===null&&(Ra=[]),e=Ao(Ra,e,t),t=ae,(Be===null?t.memoizedState:Be.next)===null&&(t=t.alternate,O.H=t===null||t.memoizedState===null?gf:qc),e}function zu(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return pn(e);if(e.$$typeof===J)return Ve(e)}throw Error(o(438,String(e)))}function Rc(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=Ru(),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]=Ut;return t.index++,l}function Pt(e,t){return typeof t=="function"?t(e):t}function Cu(e){var t=De();return zc(t,be,e)}function zc(e,t,l){var a=e.queue;if(a===null)throw Error(o(311));a.lastRenderedReducer=l;var n=e.baseQueue,u=a.pending;if(u!==null){if(n!==null){var r=n.next;n.next=u.next,u.next=r}t.baseQueue=n=u,a.pending=null}if(u=e.baseState,n===null)e.memoizedState=u;else{t=n.next;var d=r=null,p=null,N=t,M=!1;do{var U=N.lane&-536870913;if(U!==N.lane?(se&U)===U:(It&U)===U){var R=N.revertLane;if(R===0)p!==null&&(p=p.next={lane:0,revertLane:0,gesture:null,action:N.action,hasEagerState:N.hasEagerState,eagerState:N.eagerState,next:null}),U===ja&&(M=!0);else if((It&R)===R){N=N.next,R===ja&&(M=!0);continue}else U={lane:0,revertLane:N.revertLane,gesture:null,action:N.action,hasEagerState:N.hasEagerState,eagerState:N.eagerState,next:null},p===null?(d=p=U,r=u):p=p.next=U,ae.lanes|=R,Al|=R;U=N.action,Pl&&l(u,U),u=N.hasEagerState?N.eagerState:l(u,U)}else R={lane:U,revertLane:N.revertLane,gesture:N.gesture,action:N.action,hasEagerState:N.hasEagerState,eagerState:N.eagerState,next:null},p===null?(d=p=R,r=u):p=p.next=R,ae.lanes|=U,Al|=U;N=N.next}while(N!==null&&N!==t);if(p===null?r=u:p.next=d,!ft(u,e.memoizedState)&&(Le=!0,M&&(l=Ea,l!==null)))throw l;e.memoizedState=u,e.baseState=r,e.baseQueue=p,a.lastRenderedState=u}return n===null&&(a.lanes=0),[e.memoizedState,a.dispatch]}function Cc(e){var t=De(),l=t.queue;if(l===null)throw Error(o(311));l.lastRenderedReducer=e;var a=l.dispatch,n=l.pending,u=t.memoizedState;if(n!==null){l.pending=null;var r=n=n.next;do u=e(u,r.action),r=r.next;while(r!==n);ft(u,t.memoizedState)||(Le=!0),t.memoizedState=u,t.baseQueue===null&&(t.baseState=u),l.lastRenderedState=u}return[u,a]}function Bo(e,t,l){var a=ae,n=De(),u=oe;if(u){if(l===void 0)throw Error(o(407));l=l()}else l=t();var r=!ft((be||n).memoizedState,l);if(r&&(n.memoizedState=l,Le=!0),n=n.queue,wc(ko.bind(null,a,n,e),[e]),n.getSnapshot!==t||r||Be!==null&&Be.memoizedState.tag&1){if(a.flags|=2048,za(9,{destroy:void 0},qo.bind(null,a,n,l,t),null),Ee===null)throw Error(o(349));u||(It&127)!==0||Lo(a,t,l)}return l}function Lo(e,t,l){e.flags|=16384,e={getSnapshot:t,value:l},t=ae.updateQueue,t===null?(t=Ru(),ae.updateQueue=t,t.stores=[e]):(l=t.stores,l===null?t.stores=[e]:l.push(e))}function qo(e,t,l,a){t.value=l,t.getSnapshot=a,Yo(t)&&Go(e)}function ko(e,t,l){return l(function(){Yo(t)&&Go(e)})}function Yo(e){var t=e.getSnapshot;e=e.value;try{var l=t();return!ft(e,l)}catch{return!0}}function Go(e){var t=Ql(e,2);t!==null&&it(t,e,2)}function Mc(e){var t=Ie();if(typeof e=="function"){var l=e;if(e=l(),Pl){dl(!0);try{l()}finally{dl(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Pt,lastRenderedState:e},t}function Xo(e,t,l,a){return e.baseState=l,zc(e,be,typeof a=="function"?a:Pt)}function Ov(e,t,l,a,n){if(wu(e))throw Error(o(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(r){u.listeners.push(r)}};O.T!==null?l(!0):u.isTransition=!1,a(u),l=t.pending,l===null?(u.next=t.pending=u,Qo(t,u)):(u.next=l.next,t.pending=l.next=u)}}function Qo(e,t){var l=t.action,a=t.payload,n=e.state;if(t.isTransition){var u=O.T,r={};O.T=r;try{var d=l(n,a),p=O.S;p!==null&&p(r,d),Vo(e,t,d)}catch(N){Oc(e,t,N)}finally{u!==null&&r.types!==null&&(u.types=r.types),O.T=u}}else try{u=l(n,a),Vo(e,t,u)}catch(N){Oc(e,t,N)}}function Vo(e,t,l){l!==null&&typeof l=="object"&&typeof l.then=="function"?l.then(function(a){Zo(e,t,a)},function(a){return Oc(e,t,a)}):Zo(e,t,l)}function Zo(e,t,l){t.status="fulfilled",t.value=l,Ko(t),e.state=l,t=e.pending,t!==null&&(l=t.next,l===t?e.pending=null:(l=l.next,t.next=l,Qo(e,l)))}function Oc(e,t,l){var a=e.pending;if(e.pending=null,a!==null){a=a.next;do t.status="rejected",t.reason=l,Ko(t),t=t.next;while(t!==a)}e.action=null}function Ko(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function Jo(e,t){return t}function $o(e,t){if(oe){var l=Ee.formState;if(l!==null){e:{var a=ae;if(oe){if(_e){t:{for(var n=_e,u=At;n.nodeType!==8;){if(!u){n=null;break t}if(n=Rt(n.nextSibling),n===null){n=null;break t}}u=n.data,n=u==="F!"||u==="F"?n:null}if(n){_e=Rt(n.nextSibling),a=n.data==="F!";break e}}pl(a)}a=!1}a&&(t=l[0])}}return l=Ie(),l.memoizedState=l.baseState=t,a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Jo,lastRenderedState:t},l.queue=a,l=vf.bind(null,ae,a),a.dispatch=l,a=Mc(!1),u=Lc.bind(null,ae,!1,a.queue),a=Ie(),n={state:t,dispatch:null,action:e,pending:null},a.queue=n,l=Ov.bind(null,ae,n,u,l),n.dispatch=l,a.memoizedState=e,[t,l,!1]}function Wo(e){var t=De();return Fo(t,be,e)}function Fo(e,t,l){if(t=zc(e,t,Jo)[0],e=Cu(Pt)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var a=pn(t)}catch(r){throw r===Ta?Su:r}else a=t;t=De();var n=t.queue,u=n.dispatch;return l!==t.memoizedState&&(ae.flags|=2048,za(9,{destroy:void 0},wv.bind(null,n,l),null)),[a,u,e]}function wv(e,t){e.action=t}function Io(e){var t=De(),l=be;if(l!==null)return Fo(t,l,e);De(),t=t.memoizedState,l=De();var a=l.queue.dispatch;return l.memoizedState=e,[t,a,!1]}function za(e,t,l,a){return e={tag:e,create:l,deps:a,inst:t,next:null},t=ae.updateQueue,t===null&&(t=Ru(),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 Po(){return De().memoizedState}function Mu(e,t,l,a){var n=Ie();ae.flags|=e,n.memoizedState=za(1|t,{destroy:void 0},l,a===void 0?null:a)}function Ou(e,t,l,a){var n=De();a=a===void 0?null:a;var u=n.memoizedState.inst;be!==null&&a!==null&&Ec(a,be.memoizedState.deps)?n.memoizedState=za(t,u,l,a):(ae.flags|=e,n.memoizedState=za(1|t,u,l,a))}function ef(e,t){Mu(8390656,8,e,t)}function wc(e,t){Ou(2048,8,e,t)}function Dv(e){ae.flags|=4;var t=ae.updateQueue;if(t===null)t=Ru(),ae.updateQueue=t,t.events=[e];else{var l=t.events;l===null?t.events=[e]:l.push(e)}}function tf(e){var t=De().memoizedState;return Dv({ref:t,nextImpl:e}),function(){if((me&2)!==0)throw Error(o(440));return t.impl.apply(void 0,arguments)}}function lf(e,t){return Ou(4,2,e,t)}function af(e,t){return Ou(4,4,e,t)}function nf(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 uf(e,t,l){l=l!=null?l.concat([e]):null,Ou(4,4,nf.bind(null,t,e),l)}function Dc(){}function cf(e,t){var l=De();t=t===void 0?null:t;var a=l.memoizedState;return t!==null&&Ec(t,a[1])?a[0]:(l.memoizedState=[e,t],e)}function sf(e,t){var l=De();t=t===void 0?null:t;var a=l.memoizedState;if(t!==null&&Ec(t,a[1]))return a[0];if(a=e(),Pl){dl(!0);try{e()}finally{dl(!1)}}return l.memoizedState=[a,t],a}function Uc(e,t,l){return l===void 0||(It&1073741824)!==0&&(se&261930)===0?e.memoizedState=t:(e.memoizedState=l,e=rd(),ae.lanes|=e,Al|=e,l)}function rf(e,t,l,a){return ft(l,t)?l:Aa.current!==null?(e=Uc(e,l,a),ft(e,t)||(Le=!0),e):(It&42)===0||(It&1073741824)!==0&&(se&261930)===0?(Le=!0,e.memoizedState=l):(e=rd(),ae.lanes|=e,Al|=e,t)}function of(e,t,l,a,n){var u=V.p;V.p=u!==0&&8>u?u:8;var r=O.T,d={};O.T=d,Lc(e,!1,t,l);try{var p=n(),N=O.S;if(N!==null&&N(d,p),p!==null&&typeof p=="object"&&typeof p.then=="function"){var M=zv(p,a);gn(e,t,M,pt(e))}else gn(e,t,a,pt(e))}catch(U){gn(e,t,{then:function(){},status:"rejected",reason:U},pt())}finally{V.p=u,r!==null&&d.types!==null&&(r.types=d.types),O.T=r}}function Uv(){}function Hc(e,t,l,a){if(e.tag!==5)throw Error(o(476));var n=ff(e).queue;of(e,n,t,ee,l===null?Uv:function(){return df(e),l(a)})}function ff(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:ee,baseState:ee,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Pt,lastRenderedState:ee},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 df(e){var t=ff(e);t.next===null&&(t=e.alternate.memoizedState),gn(e,t.next.queue,{},pt())}function Bc(){return Ve(Un)}function hf(){return De().memoizedState}function mf(){return De().memoizedState}function Hv(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var l=pt();e=Sl(l);var a=xl(t,e,l);a!==null&&(it(a,t,l),hn(a,t,l)),t={cache:dc()},e.payload=t;return}t=t.return}}function Bv(e,t,l){var a=pt();l={lane:a,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null},wu(e)?yf(t,l):(l=tc(e,t,l,a),l!==null&&(it(l,e,a),pf(l,t,a)))}function vf(e,t,l){var a=pt();gn(e,t,l,a)}function gn(e,t,l,a){var n={lane:a,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null};if(wu(e))yf(t,n);else{var u=e.alternate;if(e.lanes===0&&(u===null||u.lanes===0)&&(u=t.lastRenderedReducer,u!==null))try{var r=t.lastRenderedState,d=u(r,l);if(n.hasEagerState=!0,n.eagerState=d,ft(d,r))return hu(e,t,n,0),Ee===null&&du(),!1}catch{}finally{}if(l=tc(e,t,n,a),l!==null)return it(l,e,a),pf(l,t,a),!0}return!1}function Lc(e,t,l,a){if(a={lane:2,revertLane:ys(),gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null},wu(e)){if(t)throw Error(o(479))}else t=tc(e,l,a,2),t!==null&&it(t,e,2)}function wu(e){var t=e.alternate;return e===ae||t!==null&&t===ae}function yf(e,t){Na=Au=!0;var l=e.pending;l===null?t.next=t:(t.next=l.next,l.next=t),e.pending=t}function pf(e,t,l){if((l&4194048)!==0){var a=t.lanes;a&=e.pendingLanes,l|=a,t.lanes=l,Sr(e,l)}}var bn={readContext:Ve,use:zu,useCallback:Ce,useContext:Ce,useEffect:Ce,useImperativeHandle:Ce,useLayoutEffect:Ce,useInsertionEffect:Ce,useMemo:Ce,useReducer:Ce,useRef:Ce,useState:Ce,useDebugValue:Ce,useDeferredValue:Ce,useTransition:Ce,useSyncExternalStore:Ce,useId:Ce,useHostTransitionStatus:Ce,useFormState:Ce,useActionState:Ce,useOptimistic:Ce,useMemoCache:Ce,useCacheRefresh:Ce};bn.useEffectEvent=Ce;var gf={readContext:Ve,use:zu,useCallback:function(e,t){return Ie().memoizedState=[e,t===void 0?null:t],e},useContext:Ve,useEffect:ef,useImperativeHandle:function(e,t,l){l=l!=null?l.concat([e]):null,Mu(4194308,4,nf.bind(null,t,e),l)},useLayoutEffect:function(e,t){return Mu(4194308,4,e,t)},useInsertionEffect:function(e,t){Mu(4,2,e,t)},useMemo:function(e,t){var l=Ie();t=t===void 0?null:t;var a=e();if(Pl){dl(!0);try{e()}finally{dl(!1)}}return l.memoizedState=[a,t],a},useReducer:function(e,t,l){var a=Ie();if(l!==void 0){var n=l(t);if(Pl){dl(!0);try{l(t)}finally{dl(!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=Bv.bind(null,ae,e),[a.memoizedState,e]},useRef:function(e){var t=Ie();return e={current:e},t.memoizedState=e},useState:function(e){e=Mc(e);var t=e.queue,l=vf.bind(null,ae,t);return t.dispatch=l,[e.memoizedState,l]},useDebugValue:Dc,useDeferredValue:function(e,t){var l=Ie();return Uc(l,e,t)},useTransition:function(){var e=Mc(!1);return e=of.bind(null,ae,e.queue,!0,!1),Ie().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,l){var a=ae,n=Ie();if(oe){if(l===void 0)throw Error(o(407));l=l()}else{if(l=t(),Ee===null)throw Error(o(349));(se&127)!==0||Lo(a,t,l)}n.memoizedState=l;var u={value:l,getSnapshot:t};return n.queue=u,ef(ko.bind(null,a,u,e),[e]),a.flags|=2048,za(9,{destroy:void 0},qo.bind(null,a,u,l,t),null),l},useId:function(){var e=Ie(),t=Ee.identifierPrefix;if(oe){var l=Lt,a=Bt;l=(a&~(1<<32-ot(a)-1)).toString(32)+l,t="_"+t+"R_"+l,l=Nu++,0<l&&(t+="H"+l.toString(32)),t+="_"}else l=Cv++,t="_"+t+"r_"+l.toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:Bc,useFormState:$o,useActionState:$o,useOptimistic:function(e){var t=Ie();t.memoizedState=t.baseState=e;var l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=l,t=Lc.bind(null,ae,!0,l),l.dispatch=t,[e,t]},useMemoCache:Rc,useCacheRefresh:function(){return Ie().memoizedState=Hv.bind(null,ae)},useEffectEvent:function(e){var t=Ie(),l={impl:e};return t.memoizedState=l,function(){if((me&2)!==0)throw Error(o(440));return l.impl.apply(void 0,arguments)}}},qc={readContext:Ve,use:zu,useCallback:cf,useContext:Ve,useEffect:wc,useImperativeHandle:uf,useInsertionEffect:lf,useLayoutEffect:af,useMemo:sf,useReducer:Cu,useRef:Po,useState:function(){return Cu(Pt)},useDebugValue:Dc,useDeferredValue:function(e,t){var l=De();return rf(l,be.memoizedState,e,t)},useTransition:function(){var e=Cu(Pt)[0],t=De().memoizedState;return[typeof e=="boolean"?e:pn(e),t]},useSyncExternalStore:Bo,useId:hf,useHostTransitionStatus:Bc,useFormState:Wo,useActionState:Wo,useOptimistic:function(e,t){var l=De();return Xo(l,be,e,t)},useMemoCache:Rc,useCacheRefresh:mf};qc.useEffectEvent=tf;var bf={readContext:Ve,use:zu,useCallback:cf,useContext:Ve,useEffect:wc,useImperativeHandle:uf,useInsertionEffect:lf,useLayoutEffect:af,useMemo:sf,useReducer:Cc,useRef:Po,useState:function(){return Cc(Pt)},useDebugValue:Dc,useDeferredValue:function(e,t){var l=De();return be===null?Uc(l,e,t):rf(l,be.memoizedState,e,t)},useTransition:function(){var e=Cc(Pt)[0],t=De().memoizedState;return[typeof e=="boolean"?e:pn(e),t]},useSyncExternalStore:Bo,useId:hf,useHostTransitionStatus:Bc,useFormState:Io,useActionState:Io,useOptimistic:function(e,t){var l=De();return be!==null?Xo(l,be,e,t):(l.baseState=e,[e,l.queue.dispatch])},useMemoCache:Rc,useCacheRefresh:mf};bf.useEffectEvent=tf;function kc(e,t,l,a){t=e.memoizedState,l=l(a,t),l=l==null?t:b({},t,l),e.memoizedState=l,e.lanes===0&&(e.updateQueue.baseState=l)}var Yc={enqueueSetState:function(e,t,l){e=e._reactInternals;var a=pt(),n=Sl(a);n.payload=t,l!=null&&(n.callback=l),t=xl(e,n,a),t!==null&&(it(t,e,a),hn(t,e,a))},enqueueReplaceState:function(e,t,l){e=e._reactInternals;var a=pt(),n=Sl(a);n.tag=1,n.payload=t,l!=null&&(n.callback=l),t=xl(e,n,a),t!==null&&(it(t,e,a),hn(t,e,a))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var l=pt(),a=Sl(l);a.tag=2,t!=null&&(a.callback=t),t=xl(e,a,l),t!==null&&(it(t,e,l),hn(t,e,l))}};function Sf(e,t,l,a,n,u,r){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(a,u,r):t.prototype&&t.prototype.isPureReactComponent?!nn(l,a)||!nn(n,u):!0}function xf(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&&Yc.enqueueReplaceState(t,t.state,null)}function ea(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=b({},l));for(var n in e)l[n]===void 0&&(l[n]=e[n])}return l}function jf(e){fu(e)}function Ef(e){console.error(e)}function Tf(e){fu(e)}function Du(e,t){try{var l=e.onUncaughtError;l(t.value,{componentStack:t.stack})}catch(a){setTimeout(function(){throw a})}}function _f(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 Gc(e,t,l){return l=Sl(l),l.tag=3,l.payload={element:null},l.callback=function(){Du(e,t)},l}function Af(e){return e=Sl(e),e.tag=3,e}function Nf(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(){_f(t,l,a)}}var r=l.stateNode;r!==null&&typeof r.componentDidCatch=="function"&&(e.callback=function(){_f(t,l,a),typeof n!="function"&&(Nl===null?Nl=new Set([this]):Nl.add(this));var d=a.stack;this.componentDidCatch(a.value,{componentStack:d!==null?d:""})})}function Lv(e,t,l,a,n){if(l.flags|=32768,a!==null&&typeof a=="object"&&typeof a.then=="function"){if(t=l.alternate,t!==null&&xa(t,l,n,!0),l=ht.current,l!==null){switch(l.tag){case 31:case 13:return Nt===null?Zu():l.alternate===null&&Me===0&&(Me=3),l.flags&=-257,l.flags|=65536,l.lanes=n,a===xu?l.flags|=16384:(t=l.updateQueue,t===null?l.updateQueue=new Set([a]):t.add(a),hs(e,a,n)),!1;case 22:return l.flags|=65536,a===xu?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)),hs(e,a,n)),!1}throw Error(o(435,l.tag))}return hs(e,a,n),Zu(),!1}if(oe)return t=ht.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=n,a!==cc&&(e=Error(o(422),{cause:a}),sn(Et(e,l)))):(a!==cc&&(t=Error(o(423),{cause:a}),sn(Et(t,l))),e=e.current.alternate,e.flags|=65536,n&=-n,e.lanes|=n,a=Et(a,l),n=Gc(e.stateNode,a,n),gc(e,n),Me!==4&&(Me=2)),!1;var u=Error(o(520),{cause:a});if(u=Et(u,l),Nn===null?Nn=[u]:Nn.push(u),Me!==4&&(Me=2),t===null)return!0;a=Et(a,l),l=t;do{switch(l.tag){case 3:return l.flags|=65536,e=n&-n,l.lanes|=e,e=Gc(l.stateNode,a,e),gc(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"&&(Nl===null||!Nl.has(u))))return l.flags|=65536,n&=-n,l.lanes|=n,n=Af(n),Nf(n,e,l,a),gc(l,n),!1}l=l.return}while(l!==null);return!1}var Xc=Error(o(461)),Le=!1;function Ze(e,t,l,a){t.child=e===null?Co(t,null,l,a):Il(t,e.child,l,a)}function Rf(e,t,l,a,n){l=l.render;var u=t.ref;if("ref"in a){var r={};for(var d in a)d!=="ref"&&(r[d]=a[d])}else r=a;return Jl(t),a=Tc(e,t,l,r,u,n),d=_c(),e!==null&&!Le?(Ac(e,t,n),el(e,t,n)):(oe&&d&&uc(t),t.flags|=1,Ze(e,t,a,n),t.child)}function zf(e,t,l,a,n){if(e===null){var u=l.type;return typeof u=="function"&&!lc(u)&&u.defaultProps===void 0&&l.compare===null?(t.tag=15,t.type=u,Cf(e,t,u,a,n)):(e=vu(l.type,null,a,t,t.mode,n),e.ref=t.ref,e.return=t,t.child=e)}if(u=e.child,!Fc(e,n)){var r=u.memoizedProps;if(l=l.compare,l=l!==null?l:nn,l(r,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 Cf(e,t,l,a,n){if(e!==null){var u=e.memoizedProps;if(nn(u,a)&&e.ref===t.ref)if(Le=!1,t.pendingProps=a=u,Fc(e,n))(e.flags&131072)!==0&&(Le=!0);else return t.lanes=e.lanes,el(e,t,n)}return Qc(e,t,l,a,n)}function Mf(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 Of(e,t,u,l,a)}if((l&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&bu(t,u!==null?u.cachePool:null),u!==null?wo(t,u):Sc(),Do(t);else return a=t.lanes=536870912,Of(e,t,u!==null?u.baseLanes|l:l,l,a)}else u!==null?(bu(t,u.cachePool),wo(t,u),El(),t.memoizedState=null):(e!==null&&bu(t,null),Sc(),El());return Ze(e,t,n,l),t.child}function Sn(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function Of(e,t,l,a,n){var u=mc();return u=u===null?null:{parent:He._currentValue,pool:u},t.memoizedState={baseLanes:l,cachePool:u},e!==null&&bu(t,null),Sc(),Do(t),e!==null&&xa(e,t,a,!0),t.childLanes=n,null}function Uu(e,t){return t=Bu({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function wf(e,t,l){return Il(t,e.child,null,l),e=Uu(t,t.pendingProps),e.flags|=2,mt(t),t.memoizedState=null,e}function qv(e,t,l){var a=t.pendingProps,n=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(oe){if(a.mode==="hidden")return e=Uu(t,a),t.lanes=536870912,Sn(null,e);if(jc(t),(e=_e)?(e=Vd(e,At),e=e!==null&&e.data==="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:vl!==null?{id:Bt,overflow:Lt}:null,retryLane:536870912,hydrationErrors:null},l=vo(e),l.return=t,t.child=l,Qe=t,_e=null)):e=null,e===null)throw pl(t);return t.lanes=536870912,null}return Uu(t,a)}var u=e.memoizedState;if(u!==null){var r=u.dehydrated;if(jc(t),n)if(t.flags&256)t.flags&=-257,t=wf(e,t,l);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(o(558));else if(Le||xa(e,t,l,!1),n=(l&e.childLanes)!==0,Le||n){if(a=Ee,a!==null&&(r=xr(a,l),r!==0&&r!==u.retryLane))throw u.retryLane=r,Ql(e,r),it(a,e,r),Xc;Zu(),t=wf(e,t,l)}else e=u.treeContext,_e=Rt(r.nextSibling),Qe=t,oe=!0,yl=null,At=!1,e!==null&&go(t,e),t=Uu(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 Hu(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(o(284));(e===null||e.ref!==l)&&(t.flags|=4194816)}}function Qc(e,t,l,a,n){return Jl(t),l=Tc(e,t,l,a,void 0,n),a=_c(),e!==null&&!Le?(Ac(e,t,n),el(e,t,n)):(oe&&a&&uc(t),t.flags|=1,Ze(e,t,l,n),t.child)}function Df(e,t,l,a,n,u){return Jl(t),t.updateQueue=null,l=Ho(t,a,l,n),Uo(e),a=_c(),e!==null&&!Le?(Ac(e,t,u),el(e,t,u)):(oe&&a&&uc(t),t.flags|=1,Ze(e,t,l,u),t.child)}function Uf(e,t,l,a,n){if(Jl(t),t.stateNode===null){var u=pa,r=l.contextType;typeof r=="object"&&r!==null&&(u=Ve(r)),u=new l(a,u),t.memoizedState=u.state!==null&&u.state!==void 0?u.state:null,u.updater=Yc,t.stateNode=u,u._reactInternals=t,u=t.stateNode,u.props=a,u.state=t.memoizedState,u.refs={},yc(t),r=l.contextType,u.context=typeof r=="object"&&r!==null?Ve(r):pa,u.state=t.memoizedState,r=l.getDerivedStateFromProps,typeof r=="function"&&(kc(t,l,r,a),u.state=t.memoizedState),typeof l.getDerivedStateFromProps=="function"||typeof u.getSnapshotBeforeUpdate=="function"||typeof u.UNSAFE_componentWillMount!="function"&&typeof u.componentWillMount!="function"||(r=u.state,typeof u.componentWillMount=="function"&&u.componentWillMount(),typeof u.UNSAFE_componentWillMount=="function"&&u.UNSAFE_componentWillMount(),r!==u.state&&Yc.enqueueReplaceState(u,u.state,null),vn(t,a,u,n),mn(),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=ea(l,d);u.props=p;var N=u.context,M=l.contextType;r=pa,typeof M=="object"&&M!==null&&(r=Ve(M));var U=l.getDerivedStateFromProps;M=typeof U=="function"||typeof u.getSnapshotBeforeUpdate=="function",d=t.pendingProps!==d,M||typeof u.UNSAFE_componentWillReceiveProps!="function"&&typeof u.componentWillReceiveProps!="function"||(d||N!==r)&&xf(t,u,a,r),bl=!1;var R=t.memoizedState;u.state=R,vn(t,a,u,n),mn(),N=t.memoizedState,d||R!==N||bl?(typeof U=="function"&&(kc(t,l,U,a),N=t.memoizedState),(p=bl||Sf(t,l,p,a,R,N,r))?(M||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=N),u.props=a,u.state=N,u.context=r,a=p):(typeof u.componentDidMount=="function"&&(t.flags|=4194308),a=!1)}else{u=t.stateNode,pc(e,t),r=t.memoizedProps,M=ea(l,r),u.props=M,U=t.pendingProps,R=u.context,N=l.contextType,p=pa,typeof N=="object"&&N!==null&&(p=Ve(N)),d=l.getDerivedStateFromProps,(N=typeof d=="function"||typeof u.getSnapshotBeforeUpdate=="function")||typeof u.UNSAFE_componentWillReceiveProps!="function"&&typeof u.componentWillReceiveProps!="function"||(r!==U||R!==p)&&xf(t,u,a,p),bl=!1,R=t.memoizedState,u.state=R,vn(t,a,u,n),mn();var z=t.memoizedState;r!==U||R!==z||bl||e!==null&&e.dependencies!==null&&pu(e.dependencies)?(typeof d=="function"&&(kc(t,l,d,a),z=t.memoizedState),(M=bl||Sf(t,l,M,a,R,z,p)||e!==null&&e.dependencies!==null&&pu(e.dependencies))?(N||typeof u.UNSAFE_componentWillUpdate!="function"&&typeof u.componentWillUpdate!="function"||(typeof u.componentWillUpdate=="function"&&u.componentWillUpdate(a,z,p),typeof u.UNSAFE_componentWillUpdate=="function"&&u.UNSAFE_componentWillUpdate(a,z,p)),typeof u.componentDidUpdate=="function"&&(t.flags|=4),typeof u.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof u.componentDidUpdate!="function"||r===e.memoizedProps&&R===e.memoizedState||(t.flags|=4),typeof u.getSnapshotBeforeUpdate!="function"||r===e.memoizedProps&&R===e.memoizedState||(t.flags|=1024),t.memoizedProps=a,t.memoizedState=z),u.props=a,u.state=z,u.context=p,a=M):(typeof u.componentDidUpdate!="function"||r===e.memoizedProps&&R===e.memoizedState||(t.flags|=4),typeof u.getSnapshotBeforeUpdate!="function"||r===e.memoizedProps&&R===e.memoizedState||(t.flags|=1024),a=!1)}return u=a,Hu(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=Il(t,e.child,null,n),t.child=Il(t,null,l,n)):Ze(e,t,l,n),t.memoizedState=u.state,e=t.child):e=el(e,t,n),e}function Hf(e,t,l,a){return Zl(),t.flags|=256,Ze(e,t,l,a),t.child}var Vc={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Zc(e){return{baseLanes:e,cachePool:To()}}function Kc(e,t,l){return e=e!==null?e.childLanes&~l:0,t&&(e|=yt),e}function Bf(e,t,l){var a=t.pendingProps,n=!1,u=(t.flags&128)!==0,r;if((r=u)||(r=e!==null&&e.memoizedState===null?!1:(we.current&2)!==0),r&&(n=!0,t.flags&=-129),r=(t.flags&32)!==0,t.flags&=-33,e===null){if(oe){if(n?jl(t):El(),(e=_e)?(e=Vd(e,At),e=e!==null&&e.data!=="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:vl!==null?{id:Bt,overflow:Lt}:null,retryLane:536870912,hydrationErrors:null},l=vo(e),l.return=t,t.child=l,Qe=t,_e=null)):e=null,e===null)throw pl(t);return zs(e)?t.lanes=32:t.lanes=536870912,null}var d=a.children;return a=a.fallback,n?(El(),n=t.mode,d=Bu({mode:"hidden",children:d},n),a=Vl(a,n,l,null),d.return=t,a.return=t,d.sibling=a,t.child=d,a=t.child,a.memoizedState=Zc(l),a.childLanes=Kc(e,r,l),t.memoizedState=Vc,Sn(null,a)):(jl(t),Jc(t,d))}var p=e.memoizedState;if(p!==null&&(d=p.dehydrated,d!==null)){if(u)t.flags&256?(jl(t),t.flags&=-257,t=$c(e,t,l)):t.memoizedState!==null?(El(),t.child=e.child,t.flags|=128,t=null):(El(),d=a.fallback,n=t.mode,a=Bu({mode:"visible",children:a.children},n),d=Vl(d,n,l,null),d.flags|=2,a.return=t,d.return=t,a.sibling=d,t.child=a,Il(t,e.child,null,l),a=t.child,a.memoizedState=Zc(l),a.childLanes=Kc(e,r,l),t.memoizedState=Vc,t=Sn(null,a));else if(jl(t),zs(d)){if(r=d.nextSibling&&d.nextSibling.dataset,r)var N=r.dgst;r=N,a=Error(o(419)),a.stack="",a.digest=r,sn({value:a,source:null,stack:null}),t=$c(e,t,l)}else if(Le||xa(e,t,l,!1),r=(l&e.childLanes)!==0,Le||r){if(r=Ee,r!==null&&(a=xr(r,l),a!==0&&a!==p.retryLane))throw p.retryLane=a,Ql(e,a),it(r,e,a),Xc;Rs(d)||Zu(),t=$c(e,t,l)}else Rs(d)?(t.flags|=192,t.child=e.child,t=null):(e=p.treeContext,_e=Rt(d.nextSibling),Qe=t,oe=!0,yl=null,At=!1,e!==null&&go(t,e),t=Jc(t,a.children),t.flags|=4096);return t}return n?(El(),d=a.fallback,n=t.mode,p=e.child,N=p.sibling,a=Jt(p,{mode:"hidden",children:a.children}),a.subtreeFlags=p.subtreeFlags&65011712,N!==null?d=Jt(N,d):(d=Vl(d,n,l,null),d.flags|=2),d.return=t,a.return=t,a.sibling=d,t.child=a,Sn(null,a),a=t.child,d=e.child.memoizedState,d===null?d=Zc(l):(n=d.cachePool,n!==null?(p=He._currentValue,n=n.parent!==p?{parent:p,pool:p}:n):n=To(),d={baseLanes:d.baseLanes|l,cachePool:n}),a.memoizedState=d,a.childLanes=Kc(e,r,l),t.memoizedState=Vc,Sn(e.child,a)):(jl(t),l=e.child,e=l.sibling,l=Jt(l,{mode:"visible",children:a.children}),l.return=t,l.sibling=null,e!==null&&(r=t.deletions,r===null?(t.deletions=[e],t.flags|=16):r.push(e)),t.child=l,t.memoizedState=null,l)}function Jc(e,t){return t=Bu({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function Bu(e,t){return e=dt(22,e,null,t),e.lanes=0,e}function $c(e,t,l){return Il(t,e.child,null,l),e=Jc(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Lf(e,t,l){e.lanes|=t;var a=e.alternate;a!==null&&(a.lanes|=t),oc(e.return,t,l)}function Wc(e,t,l,a,n,u){var r=e.memoizedState;r===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:a,tail:l,tailMode:n,treeForkCount:u}:(r.isBackwards=t,r.rendering=null,r.renderingStartTime=0,r.last=a,r.tail=l,r.tailMode=n,r.treeForkCount=u)}function qf(e,t,l){var a=t.pendingProps,n=a.revealOrder,u=a.tail;a=a.children;var r=we.current,d=(r&2)!==0;if(d?(r=r&1|2,t.flags|=128):r&=1,Z(we,r),Ze(e,t,a,l),a=oe?cn:0,!d&&e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Lf(e,l,t);else if(e.tag===19)Lf(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&&_u(e)===null&&(n=l),l=l.sibling;l=n,l===null?(n=t.child,t.child=null):(n=l.sibling,l.sibling=null),Wc(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&&_u(e)===null){t.child=n;break}e=n.sibling,n.sibling=l,l=n,n=e}Wc(t,!0,l,null,u,a);break;case"together":Wc(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),Al|=t.lanes,(l&t.childLanes)===0)if(e!==null){if(xa(e,t,l,!1),(l&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(o(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 Fc(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&pu(e)))}function kv(e,t,l){switch(t.tag){case 3:Fe(t,t.stateNode.containerInfo),gl(t,He,e.memoizedState.cache),Zl();break;case 27:case 5:Va(t);break;case 4:Fe(t,t.stateNode.containerInfo);break;case 10:gl(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,jc(t),null;break;case 13:var a=t.memoizedState;if(a!==null)return a.dehydrated!==null?(jl(t),t.flags|=128,null):(l&t.child.childLanes)!==0?Bf(e,t,l):(jl(t),e=el(e,t,l),e!==null?e.sibling:null);jl(t);break;case 19:var n=(e.flags&128)!==0;if(a=(l&t.childLanes)!==0,a||(xa(e,t,l,!1),a=(l&t.childLanes)!==0),n){if(a)return qf(e,t,l);t.flags|=128}if(n=t.memoizedState,n!==null&&(n.rendering=null,n.tail=null,n.lastEffect=null),Z(we,we.current),a)break;return null;case 22:return t.lanes=0,Mf(e,t,l,t.pendingProps);case 24:gl(t,He,e.memoizedState.cache)}return el(e,t,l)}function kf(e,t,l){if(e!==null)if(e.memoizedProps!==t.pendingProps)Le=!0;else{if(!Fc(e,l)&&(t.flags&128)===0)return Le=!1,kv(e,t,l);Le=(e.flags&131072)!==0}else Le=!1,oe&&(t.flags&1048576)!==0&&po(t,cn,t.index);switch(t.lanes=0,t.tag){case 16:e:{var a=t.pendingProps;if(e=Wl(t.elementType),t.type=e,typeof e=="function")lc(e)?(a=ea(e,a),t.tag=1,t=Uf(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===K){t.tag=11,t=Rf(null,t,e,a,l);break e}else if(n===X){t.tag=14,t=zf(null,t,e,a,l);break e}}throw t=bt(e)||e,Error(o(306,t,""))}}return t;case 0:return Qc(e,t,t.type,t.pendingProps,l);case 1:return a=t.type,n=ea(a,t.pendingProps),Uf(e,t,a,n,l);case 3:e:{if(Fe(t,t.stateNode.containerInfo),e===null)throw Error(o(387));a=t.pendingProps;var u=t.memoizedState;n=u.element,pc(e,t),vn(t,a,null,l);var r=t.memoizedState;if(a=r.cache,gl(t,He,a),a!==u.cache&&fc(t,[He],l,!0),mn(),a=r.element,u.isDehydrated)if(u={element:a,isDehydrated:!1,cache:r.cache},t.updateQueue.baseState=u,t.memoizedState=u,t.flags&256){t=Hf(e,t,a,l);break e}else if(a!==n){n=Et(Error(o(424)),t),sn(n),t=Hf(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(_e=Rt(e.firstChild),Qe=t,oe=!0,yl=null,At=!0,l=Co(t,null,a,l),t.child=l;l;)l.flags=l.flags&-3|4096,l=l.sibling}else{if(Zl(),a===n){t=el(e,t,l);break e}Ze(e,t,a,l)}t=t.child}return t;case 26:return Hu(e,t),e===null?(l=Fd(t.type,null,t.pendingProps,null))?t.memoizedState=l:oe||(l=t.type,e=t.pendingProps,a=Pu(ue.current).createElement(l),a[Xe]=t,a[et]=e,Ke(a,l,e),Ye(a),t.stateNode=a):t.memoizedState=Fd(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return Va(t),e===null&&oe&&(a=t.stateNode=Jd(t.type,t.pendingProps,ue.current),Qe=t,At=!0,n=_e,Ml(t.type)?(Cs=n,_e=Rt(a.firstChild)):_e=n),Ze(e,t,t.pendingProps.children,l),Hu(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&oe&&((n=a=_e)&&(a=yy(a,t.type,t.pendingProps,At),a!==null?(t.stateNode=a,Qe=t,_e=Rt(a.firstChild),At=!1,n=!0):n=!1),n||pl(t)),Va(t),n=t.type,u=t.pendingProps,r=e!==null?e.memoizedProps:null,a=u.children,_s(n,u)?a=null:r!==null&&_s(n,r)&&(t.flags|=32),t.memoizedState!==null&&(n=Tc(e,t,Mv,null,null,l),Un._currentValue=n),Hu(e,t),Ze(e,t,a,l),t.child;case 6:return e===null&&oe&&((e=l=_e)&&(l=py(l,t.pendingProps,At),l!==null?(t.stateNode=l,Qe=t,_e=null,e=!0):e=!1),e||pl(t)),null;case 13:return Bf(e,t,l);case 4:return Fe(t,t.stateNode.containerInfo),a=t.pendingProps,e===null?t.child=Il(t,null,a,l):Ze(e,t,a,l),t.child;case 11:return Rf(e,t,t.type,t.pendingProps,l);case 7:return Ze(e,t,t.pendingProps,l),t.child;case 8:return Ze(e,t,t.pendingProps.children,l),t.child;case 12:return Ze(e,t,t.pendingProps.children,l),t.child;case 10:return a=t.pendingProps,gl(t,t.type,a.value),Ze(e,t,a.children,l),t.child;case 9:return n=t.type._context,a=t.pendingProps.children,Jl(t),n=Ve(n),a=a(n),t.flags|=1,Ze(e,t,a,l),t.child;case 14:return zf(e,t,t.type,t.pendingProps,l);case 15:return Cf(e,t,t.type,t.pendingProps,l);case 19:return qf(e,t,l);case 31:return qv(e,t,l);case 22:return Mf(e,t,l,t.pendingProps);case 24:return Jl(t),a=Ve(He),e===null?(n=mc(),n===null&&(n=Ee,u=dc(),n.pooledCache=u,u.refCount++,u!==null&&(n.pooledCacheLanes|=l),n=u),t.memoizedState={parent:a,cache:n},yc(t),gl(t,He,n)):((e.lanes&l)!==0&&(pc(e,t),vn(t,null,null,l),mn()),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),gl(t,He,a)):(a=u.cache,gl(t,He,a),a!==n.cache&&fc(t,[He],l,!0))),Ze(e,t,t.pendingProps.children,l),t.child;case 29:throw t.pendingProps}throw Error(o(156,t.tag))}function tl(e){e.flags|=4}function Ic(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(hd())e.flags|=8192;else throw Fl=xu,vc}else e.flags&=-16777217}function Yf(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!lh(t))if(hd())e.flags|=8192;else throw Fl=xu,vc}function Lu(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?gr():536870912,e.lanes|=t,wa|=t)}function xn(e,t){if(!oe)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 Ae(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 Yv(e,t,l){var a=t.pendingProps;switch(ic(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Ae(t),null;case 1:return Ae(t),null;case 3:return l=t.stateNode,a=null,e!==null&&(a=e.memoizedState.cache),t.memoizedState.cache!==a&&(t.flags|=2048),Ft(He),Oe(),l.pendingContext&&(l.context=l.pendingContext,l.pendingContext=null),(e===null||e.child===null)&&(Sa(t)?tl(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,sc())),Ae(t),null;case 26:var n=t.type,u=t.memoizedState;return e===null?(tl(t),u!==null?(Ae(t),Yf(t,u)):(Ae(t),Ic(t,n,null,a,l))):u?u!==e.memoizedState?(tl(t),Ae(t),Yf(t,u)):(Ae(t),t.flags&=-16777217):(e=e.memoizedProps,e!==a&&tl(t),Ae(t),Ic(t,n,e,a,l)),null;case 27:if($n(t),l=ue.current,n=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==a&&tl(t);else{if(!a){if(t.stateNode===null)throw Error(o(166));return Ae(t),null}e=W.current,Sa(t)?bo(t):(e=Jd(n,a,l),t.stateNode=e,tl(t))}return Ae(t),null;case 5:if($n(t),n=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==a&&tl(t);else{if(!a){if(t.stateNode===null)throw Error(o(166));return Ae(t),null}if(u=W.current,Sa(t))bo(t);else{var r=Pu(ue.current);switch(u){case 1:u=r.createElementNS("http://www.w3.org/2000/svg",n);break;case 2:u=r.createElementNS("http://www.w3.org/1998/Math/MathML",n);break;default:switch(n){case"svg":u=r.createElementNS("http://www.w3.org/2000/svg",n);break;case"math":u=r.createElementNS("http://www.w3.org/1998/Math/MathML",n);break;case"script":u=r.createElement("div"),u.innerHTML="<script><\/script>",u=u.removeChild(u.firstChild);break;case"select":u=typeof a.is=="string"?r.createElement("select",{is:a.is}):r.createElement("select"),a.multiple?u.multiple=!0:a.size&&(u.size=a.size);break;default:u=typeof a.is=="string"?r.createElement(n,{is:a.is}):r.createElement(n)}}u[Xe]=t,u[et]=a;e:for(r=t.child;r!==null;){if(r.tag===5||r.tag===6)u.appendChild(r.stateNode);else if(r.tag!==4&&r.tag!==27&&r.child!==null){r.child.return=r,r=r.child;continue}if(r===t)break e;for(;r.sibling===null;){if(r.return===null||r.return===t)break e;r=r.return}r.sibling.return=r.return,r=r.sibling}t.stateNode=u;e:switch(Ke(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 Ae(t),Ic(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(o(166));if(e=ue.current,Sa(t)){if(e=t.stateNode,l=t.memoizedProps,a=null,n=Qe,n!==null)switch(n.tag){case 27:case 5:a=n.memoizedProps}e[Xe]=t,e=!!(e.nodeValue===l||a!==null&&a.suppressHydrationWarning===!0||Bd(e.nodeValue,l)),e||pl(t,!0)}else e=Pu(e).createTextNode(a),e[Xe]=t,t.stateNode=e}return Ae(t),null;case 31:if(l=t.memoizedState,e===null||e.memoizedState!==null){if(a=Sa(t),l!==null){if(e===null){if(!a)throw Error(o(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(o(557));e[Xe]=t}else Zl(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Ae(t),e=!1}else l=sc(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=l),e=!0;if(!e)return t.flags&256?(mt(t),t):(mt(t),null);if((t.flags&128)!==0)throw Error(o(558))}return Ae(t),null;case 13:if(a=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(n=Sa(t),a!==null&&a.dehydrated!==null){if(e===null){if(!n)throw Error(o(318));if(n=t.memoizedState,n=n!==null?n.dehydrated:null,!n)throw Error(o(317));n[Xe]=t}else Zl(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Ae(t),n=!1}else n=sc(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=n),n=!0;if(!n)return t.flags&256?(mt(t),t):(mt(t),null)}return mt(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),Lu(t,t.updateQueue),Ae(t),null);case 4:return Oe(),e===null&&Ss(t.stateNode.containerInfo),Ae(t),null;case 10:return Ft(t.type),Ae(t),null;case 19:if(H(we),a=t.memoizedState,a===null)return Ae(t),null;if(n=(t.flags&128)!==0,u=a.rendering,u===null)if(n)xn(a,!1);else{if(Me!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(u=_u(e),u!==null){for(t.flags|=128,xn(a,!1),e=u.updateQueue,t.updateQueue=e,Lu(t,e),t.subtreeFlags=0,e=l,l=t.child;l!==null;)mo(l,e),l=l.sibling;return Z(we,we.current&1|2),oe&&$t(t,a.treeForkCount),t.child}e=e.sibling}a.tail!==null&&st()>Xu&&(t.flags|=128,n=!0,xn(a,!1),t.lanes=4194304)}else{if(!n)if(e=_u(u),e!==null){if(t.flags|=128,n=!0,e=e.updateQueue,t.updateQueue=e,Lu(t,e),xn(a,!0),a.tail===null&&a.tailMode==="hidden"&&!u.alternate&&!oe)return Ae(t),null}else 2*st()-a.renderingStartTime>Xu&&l!==536870912&&(t.flags|=128,n=!0,xn(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=st(),e.sibling=null,l=we.current,Z(we,n?l&1|2:l&1),oe&&$t(t,a.treeForkCount),e):(Ae(t),null);case 22:case 23:return mt(t),xc(),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&&(Ae(t),t.subtreeFlags&6&&(t.flags|=8192)):Ae(t),l=t.updateQueue,l!==null&&Lu(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&&H($l),null;case 24:return l=null,e!==null&&(l=e.memoizedState.cache),t.memoizedState.cache!==l&&(t.flags|=2048),Ft(He),Ae(t),null;case 25:return null;case 30:return null}throw Error(o(156,t.tag))}function Gv(e,t){switch(ic(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Ft(He),Oe(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return $n(t),null;case 31:if(t.memoizedState!==null){if(mt(t),t.alternate===null)throw Error(o(340));Zl()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(mt(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(o(340));Zl()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return H(we),null;case 4:return Oe(),null;case 10:return Ft(t.type),null;case 22:case 23:return mt(t),xc(),e!==null&&H($l),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return Ft(He),null;case 25:return null;default:return null}}function Gf(e,t){switch(ic(t),t.tag){case 3:Ft(He),Oe();break;case 26:case 27:case 5:$n(t);break;case 4:Oe();break;case 31:t.memoizedState!==null&&mt(t);break;case 13:mt(t);break;case 19:H(we);break;case 10:Ft(t.type);break;case 22:case 23:mt(t),xc(),e!==null&&H($l);break;case 24:Ft(He)}}function jn(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,r=l.inst;a=u(),r.destroy=a}l=l.next}while(l!==n)}}catch(d){pe(t,t.return,d)}}function Tl(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 r=a.inst,d=r.destroy;if(d!==void 0){r.destroy=void 0,n=t;var p=l,N=d;try{N()}catch(M){pe(n,p,M)}}}a=a.next}while(a!==u)}}catch(M){pe(t,t.return,M)}}function Xf(e){var t=e.updateQueue;if(t!==null){var l=e.stateNode;try{Oo(t,l)}catch(a){pe(e,e.return,a)}}}function Qf(e,t,l){l.props=ea(e.type,e.memoizedProps),l.state=e.memoizedState;try{l.componentWillUnmount()}catch(a){pe(e,t,a)}}function En(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){pe(e,t,n)}}function qt(e,t){var l=e.ref,a=e.refCleanup;if(l!==null)if(typeof a=="function")try{a()}catch(n){pe(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){pe(e,t,n)}else l.current=null}function Vf(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){pe(e,e.return,n)}}function Pc(e,t,l){try{var a=e.stateNode;oy(a,e.type,l,t),a[et]=t}catch(n){pe(e,e.return,n)}}function Zf(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&Ml(e.type)||e.tag===4}function es(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Zf(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&&Ml(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 ts(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=Zt));else if(a!==4&&(a===27&&Ml(e.type)&&(l=e.stateNode,t=null),e=e.child,e!==null))for(ts(e,t,l),e=e.sibling;e!==null;)ts(e,t,l),e=e.sibling}function qu(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&&Ml(e.type)&&(l=e.stateNode),e=e.child,e!==null))for(qu(e,t,l),e=e.sibling;e!==null;)qu(e,t,l),e=e.sibling}function Kf(e){var t=e.stateNode,l=e.memoizedProps;try{for(var a=e.type,n=t.attributes;n.length;)t.removeAttributeNode(n[0]);Ke(t,a,l),t[Xe]=e,t[et]=l}catch(u){pe(e,e.return,u)}}var ll=!1,qe=!1,ls=!1,Jf=typeof WeakSet=="function"?WeakSet:Set,Ge=null;function Xv(e,t){if(e=e.containerInfo,Es=ii,e=no(e),$i(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 r=0,d=-1,p=-1,N=0,M=0,U=e,R=null;t:for(;;){for(var z;U!==l||n!==0&&U.nodeType!==3||(d=r+n),U!==u||a!==0&&U.nodeType!==3||(p=r+a),U.nodeType===3&&(r+=U.nodeValue.length),(z=U.firstChild)!==null;)R=U,U=z;for(;;){if(U===e)break t;if(R===l&&++N===n&&(d=r),R===u&&++M===a&&(p=r),(z=U.nextSibling)!==null)break;U=R,R=U.parentNode}U=z}l=d===-1||p===-1?null:{start:d,end:p}}else l=null}l=l||{start:0,end:0}}else l=null;for(Ts={focusedElem:e,selectionRange:l},ii=!1,Ge=t;Ge!==null;)if(t=Ge,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,Ge=e;else for(;Ge!==null;){switch(t=Ge,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 $=ea(l.type,n);e=a.getSnapshotBeforeUpdate($,u),a.__reactInternalSnapshotBeforeUpdate=e}catch(P){pe(l,l.return,P)}}break;case 3:if((e&1024)!==0){if(e=t.stateNode.containerInfo,l=e.nodeType,l===9)Ns(e);else if(l===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":Ns(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(o(163))}if(e=t.sibling,e!==null){e.return=t.return,Ge=e;break}Ge=t.return}}function $f(e,t,l){var a=l.flags;switch(l.tag){case 0:case 11:case 15:nl(e,l),a&4&&jn(5,l);break;case 1:if(nl(e,l),a&4)if(e=l.stateNode,t===null)try{e.componentDidMount()}catch(r){pe(l,l.return,r)}else{var n=ea(l.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(n,t,e.__reactInternalSnapshotBeforeUpdate)}catch(r){pe(l,l.return,r)}}a&64&&Xf(l),a&512&&En(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{Oo(e,t)}catch(r){pe(l,l.return,r)}}break;case 27:t===null&&a&4&&Kf(l);case 26:case 5:nl(e,l),t===null&&a&4&&Vf(l),a&512&&En(l,l.return);break;case 12:nl(e,l);break;case 31:nl(e,l),a&4&&If(e,l);break;case 13:nl(e,l),a&4&&Pf(e,l),a&64&&(e=l.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(l=Iv.bind(null,l),gy(e,l))));break;case 22:if(a=l.memoizedState!==null||ll,!a){t=t!==null&&t.memoizedState!==null||qe,n=ll;var u=qe;ll=a,(qe=t)&&!u?ul(e,l,(l.subtreeFlags&8772)!==0):nl(e,l),ll=n,qe=u}break;case 30:break;default:nl(e,l)}}function Wf(e){var t=e.alternate;t!==null&&(e.alternate=null,Wf(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&Oi(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 Ne=null,lt=!1;function al(e,t,l){for(l=l.child;l!==null;)Ff(e,t,l),l=l.sibling}function Ff(e,t,l){if(rt&&typeof rt.onCommitFiberUnmount=="function")try{rt.onCommitFiberUnmount(Za,l)}catch{}switch(l.tag){case 26:qe||qt(l,t),al(e,t,l),l.memoizedState?l.memoizedState.count--:l.stateNode&&(l=l.stateNode,l.parentNode.removeChild(l));break;case 27:qe||qt(l,t);var a=Ne,n=lt;Ml(l.type)&&(Ne=l.stateNode,lt=!1),al(e,t,l),On(l.stateNode),Ne=a,lt=n;break;case 5:qe||qt(l,t);case 6:if(a=Ne,n=lt,Ne=null,al(e,t,l),Ne=a,lt=n,Ne!==null)if(lt)try{(Ne.nodeType===9?Ne.body:Ne.nodeName==="HTML"?Ne.ownerDocument.body:Ne).removeChild(l.stateNode)}catch(u){pe(l,t,u)}else try{Ne.removeChild(l.stateNode)}catch(u){pe(l,t,u)}break;case 18:Ne!==null&&(lt?(e=Ne,Xd(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,l.stateNode),Ya(e)):Xd(Ne,l.stateNode));break;case 4:a=Ne,n=lt,Ne=l.stateNode.containerInfo,lt=!0,al(e,t,l),Ne=a,lt=n;break;case 0:case 11:case 14:case 15:Tl(2,l,t),qe||Tl(4,l,t),al(e,t,l);break;case 1:qe||(qt(l,t),a=l.stateNode,typeof a.componentWillUnmount=="function"&&Qf(l,t,a)),al(e,t,l);break;case 21:al(e,t,l);break;case 22:qe=(a=qe)||l.memoizedState!==null,al(e,t,l),qe=a;break;default:al(e,t,l)}}function If(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{Ya(e)}catch(l){pe(t,t.return,l)}}}function Pf(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{Ya(e)}catch(l){pe(t,t.return,l)}}function Qv(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new Jf),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new Jf),t;default:throw Error(o(435,e.tag))}}function ku(e,t){var l=Qv(e);t.forEach(function(a){if(!l.has(a)){l.add(a);var n=Pv.bind(null,e,a);a.then(n,n)}})}function at(e,t){var l=t.deletions;if(l!==null)for(var a=0;a<l.length;a++){var n=l[a],u=e,r=t,d=r;e:for(;d!==null;){switch(d.tag){case 27:if(Ml(d.type)){Ne=d.stateNode,lt=!1;break e}break;case 5:Ne=d.stateNode,lt=!1;break e;case 3:case 4:Ne=d.stateNode.containerInfo,lt=!0;break e}d=d.return}if(Ne===null)throw Error(o(160));Ff(u,r,n),Ne=null,lt=!1,u=n.alternate,u!==null&&(u.return=null),n.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)ed(t,e),t=t.sibling}var Ot=null;function ed(e,t){var l=e.alternate,a=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:at(t,e),nt(e),a&4&&(Tl(3,e,e.return),jn(3,e),Tl(5,e,e.return));break;case 1:at(t,e),nt(e),a&512&&(qe||l===null||qt(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=Ot;if(at(t,e),nt(e),a&512&&(qe||l===null||qt(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[$a]||u[Xe]||u.namespaceURI==="http://www.w3.org/2000/svg"||u.hasAttribute("itemprop"))&&(u=n.createElement(a),n.head.insertBefore(u,n.querySelector("head > title"))),Ke(u,a,l),u[Xe]=e,Ye(u),a=u;break e;case"link":var r=eh("link","href",n).get(a+(l.href||""));if(r){for(var d=0;d<r.length;d++)if(u=r[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)){r.splice(d,1);break t}}u=n.createElement(a),Ke(u,a,l),n.head.appendChild(u);break;case"meta":if(r=eh("meta","content",n).get(a+(l.content||""))){for(d=0;d<r.length;d++)if(u=r[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)){r.splice(d,1);break t}}u=n.createElement(a),Ke(u,a,l),n.head.appendChild(u);break;default:throw Error(o(468,a))}u[Xe]=e,Ye(u),a=u}e.stateNode=a}else th(n,e.type,e.stateNode);else e.stateNode=Pd(n,a,e.memoizedProps);else u!==a?(u===null?l.stateNode!==null&&(l=l.stateNode,l.parentNode.removeChild(l)):u.count--,a===null?th(n,e.type,e.stateNode):Pd(n,a,e.memoizedProps)):a===null&&e.stateNode!==null&&Pc(e,e.memoizedProps,l.memoizedProps)}break;case 27:at(t,e),nt(e),a&512&&(qe||l===null||qt(l,l.return)),l!==null&&a&4&&Pc(e,e.memoizedProps,l.memoizedProps);break;case 5:if(at(t,e),nt(e),a&512&&(qe||l===null||qt(l,l.return)),e.flags&32){n=e.stateNode;try{oa(n,"")}catch($){pe(e,e.return,$)}}a&4&&e.stateNode!=null&&(n=e.memoizedProps,Pc(e,n,l!==null?l.memoizedProps:n)),a&1024&&(ls=!0);break;case 6:if(at(t,e),nt(e),a&4){if(e.stateNode===null)throw Error(o(162));a=e.memoizedProps,l=e.stateNode;try{l.nodeValue=a}catch($){pe(e,e.return,$)}}break;case 3:if(li=null,n=Ot,Ot=ei(t.containerInfo),at(t,e),Ot=n,nt(e),a&4&&l!==null&&l.memoizedState.isDehydrated)try{Ya(t.containerInfo)}catch($){pe(e,e.return,$)}ls&&(ls=!1,td(e));break;case 4:a=Ot,Ot=ei(e.stateNode.containerInfo),at(t,e),nt(e),Ot=a;break;case 12:at(t,e),nt(e);break;case 31:at(t,e),nt(e),a&4&&(a=e.updateQueue,a!==null&&(e.updateQueue=null,ku(e,a)));break;case 13:at(t,e),nt(e),e.child.flags&8192&&e.memoizedState!==null!=(l!==null&&l.memoizedState!==null)&&(Gu=st()),a&4&&(a=e.updateQueue,a!==null&&(e.updateQueue=null,ku(e,a)));break;case 22:n=e.memoizedState!==null;var p=l!==null&&l.memoizedState!==null,N=ll,M=qe;if(ll=N||n,qe=M||p,at(t,e),qe=M,ll=N,nt(e),a&8192)e:for(t=e.stateNode,t._visibility=n?t._visibility&-2:t._visibility|1,n&&(l===null||p||ll||qe||ta(e)),l=null,t=e;;){if(t.tag===5||t.tag===26){if(l===null){p=l=t;try{if(u=p.stateNode,n)r=u.style,typeof r.setProperty=="function"?r.setProperty("display","none","important"):r.display="none";else{d=p.stateNode;var U=p.memoizedProps.style,R=U!=null&&U.hasOwnProperty("display")?U.display:null;d.style.display=R==null||typeof R=="boolean"?"":(""+R).trim()}}catch($){pe(p,p.return,$)}}}else if(t.tag===6){if(l===null){p=t;try{p.stateNode.nodeValue=n?"":p.memoizedProps}catch($){pe(p,p.return,$)}}}else if(t.tag===18){if(l===null){p=t;try{var z=p.stateNode;n?Qd(z,!0):Qd(p.stateNode,!1)}catch($){pe(p,p.return,$)}}}else if((t.tag!==22&&t.tag!==23||t.memoizedState===null||t===e)&&t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break e;for(;t.sibling===null;){if(t.return===null||t.return===e)break e;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,ku(e,l))));break;case 19:at(t,e),nt(e),a&4&&(a=e.updateQueue,a!==null&&(e.updateQueue=null,ku(e,a)));break;case 30:break;case 21:break;default:at(t,e),nt(e)}}function nt(e){var t=e.flags;if(t&2){try{for(var l,a=e.return;a!==null;){if(Zf(a)){l=a;break}a=a.return}if(l==null)throw Error(o(160));switch(l.tag){case 27:var n=l.stateNode,u=es(e);qu(e,u,n);break;case 5:var r=l.stateNode;l.flags&32&&(oa(r,""),l.flags&=-33);var d=es(e);qu(e,d,r);break;case 3:case 4:var p=l.stateNode.containerInfo,N=es(e);ts(e,N,p);break;default:throw Error(o(161))}}catch(M){pe(e,e.return,M)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function td(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;td(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;)$f(e,t.alternate,t),t=t.sibling}function ta(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:Tl(4,t,t.return),ta(t);break;case 1:qt(t,t.return);var l=t.stateNode;typeof l.componentWillUnmount=="function"&&Qf(t,t.return,l),ta(t);break;case 27:On(t.stateNode);case 26:case 5:qt(t,t.return),ta(t);break;case 22:t.memoizedState===null&&ta(t);break;case 30:ta(t);break;default:ta(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,r=u.flags;switch(u.tag){case 0:case 11:case 15:ul(n,u,l),jn(4,u);break;case 1:if(ul(n,u,l),a=u,n=a.stateNode,typeof n.componentDidMount=="function")try{n.componentDidMount()}catch(N){pe(a,a.return,N)}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++)Mo(p[n],d)}catch(N){pe(a,a.return,N)}}l&&r&64&&Xf(u),En(u,u.return);break;case 27:Kf(u);case 26:case 5:ul(n,u,l),l&&a===null&&r&4&&Vf(u),En(u,u.return);break;case 12:ul(n,u,l);break;case 31:ul(n,u,l),l&&r&4&&If(n,u);break;case 13:ul(n,u,l),l&&r&4&&Pf(n,u);break;case 22:u.memoizedState===null&&ul(n,u,l),En(u,u.return);break;case 30:break;default:ul(n,u,l)}t=t.sibling}}function as(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&&rn(l))}function ns(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&rn(e))}function wt(e,t,l,a){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)ld(e,t,l,a),t=t.sibling}function ld(e,t,l,a){var n=t.flags;switch(t.tag){case 0:case 11:case 15:wt(e,t,l,a),n&2048&&jn(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&&rn(e)));break;case 12:if(n&2048){wt(e,t,l,a),e=t.stateNode;try{var u=t.memoizedProps,r=u.id,d=u.onPostCommit;typeof d=="function"&&d(r,t.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(p){pe(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,r=t.alternate,t.memoizedState!==null?u._visibility&2?wt(e,t,l,a):Tn(e,t):u._visibility&2?wt(e,t,l,a):(u._visibility|=2,Ca(e,t,l,a,(t.subtreeFlags&10256)!==0||!1)),n&2048&&as(r,t);break;case 24:wt(e,t,l,a),n&2048&&ns(t.alternate,t);break;default:wt(e,t,l,a)}}function Ca(e,t,l,a,n){for(n=n&&((t.subtreeFlags&10256)!==0||!1),t=t.child;t!==null;){var u=e,r=t,d=l,p=a,N=r.flags;switch(r.tag){case 0:case 11:case 15:Ca(u,r,d,p,n),jn(8,r);break;case 23:break;case 22:var M=r.stateNode;r.memoizedState!==null?M._visibility&2?Ca(u,r,d,p,n):Tn(u,r):(M._visibility|=2,Ca(u,r,d,p,n)),n&&N&2048&&as(r.alternate,r);break;case 24:Ca(u,r,d,p,n),n&&N&2048&&ns(r.alternate,r);break;default:Ca(u,r,d,p,n)}t=t.sibling}}function Tn(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:Tn(l,a),n&2048&&as(a.alternate,a);break;case 24:Tn(l,a),n&2048&&ns(a.alternate,a);break;default:Tn(l,a)}t=t.sibling}}var _n=8192;function Ma(e,t,l){if(e.subtreeFlags&_n)for(e=e.child;e!==null;)ad(e,t,l),e=e.sibling}function ad(e,t,l){switch(e.tag){case 26:Ma(e,t,l),e.flags&_n&&e.memoizedState!==null&&Cy(l,Ot,e.memoizedState,e.memoizedProps);break;case 5:Ma(e,t,l);break;case 3:case 4:var a=Ot;Ot=ei(e.stateNode.containerInfo),Ma(e,t,l),Ot=a;break;case 22:e.memoizedState===null&&(a=e.alternate,a!==null&&a.memoizedState!==null?(a=_n,_n=16777216,Ma(e,t,l),_n=a):Ma(e,t,l));break;default:Ma(e,t,l)}}function nd(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 An(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];Ge=a,id(a,e)}nd(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)ud(e),e=e.sibling}function ud(e){switch(e.tag){case 0:case 11:case 15:An(e),e.flags&2048&&Tl(9,e,e.return);break;case 3:An(e);break;case 12:An(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,Yu(e)):An(e);break;default:An(e)}}function Yu(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];Ge=a,id(a,e)}nd(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:Tl(8,t,t.return),Yu(t);break;case 22:l=t.stateNode,l._visibility&2&&(l._visibility&=-3,Yu(t));break;default:Yu(t)}e=e.sibling}}function id(e,t){for(;Ge!==null;){var l=Ge;switch(l.tag){case 0:case 11:case 15:Tl(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:rn(l.memoizedState.cache)}if(a=l.child,a!==null)a.return=l,Ge=a;else e:for(l=e;Ge!==null;){a=Ge;var n=a.sibling,u=a.return;if(Wf(a),a===l){Ge=null;break e}if(n!==null){n.return=u,Ge=n;break e}Ge=u}}}var Vv={getCacheForType:function(e){var t=Ve(He),l=t.data.get(e);return l===void 0&&(l=e(),t.data.set(e,l)),l},cacheSignal:function(){return Ve(He).controller.signal}},Zv=typeof WeakMap=="function"?WeakMap:Map,me=0,Ee=null,ie=null,se=0,ye=0,vt=null,_l=!1,Oa=!1,us=!1,il=0,Me=0,Al=0,la=0,is=0,yt=0,wa=0,Nn=null,ut=null,cs=!1,Gu=0,cd=0,Xu=1/0,Qu=null,Nl=null,ke=0,Rl=null,Da=null,cl=0,ss=0,rs=null,sd=null,Rn=0,os=null;function pt(){return(me&2)!==0&&se!==0?se&-se:O.T!==null?ys():jr()}function rd(){if(yt===0)if((se&536870912)===0||oe){var e=In;In<<=1,(In&3932160)===0&&(In=262144),yt=e}else yt=536870912;return e=ht.current,e!==null&&(e.flags|=32),yt}function it(e,t,l){(e===Ee&&(ye===2||ye===9)||e.cancelPendingCommit!==null)&&(Ua(e,0),zl(e,se,yt,!1)),Ja(e,l),((me&2)===0||e!==Ee)&&(e===Ee&&((me&2)===0&&(la|=l),Me===4&&zl(e,se,yt,!1)),kt(e))}function od(e,t,l){if((me&6)!==0)throw Error(o(327));var a=!l&&(t&127)===0&&(t&e.expiredLanes)===0||Ka(e,t),n=a?$v(e,t):ds(e,t,!0),u=a;do{if(n===0){Oa&&!a&&zl(e,t,0,!1);break}else{if(l=e.current.alternate,u&&!Kv(l)){n=ds(e,t,!1),u=!1;continue}if(n===2){if(u=t,e.errorRecoveryDisabledLanes&u)var r=0;else r=e.pendingLanes&-536870913,r=r!==0?r:r&536870912?536870912:0;if(r!==0){t=r;e:{var d=e;n=Nn;var p=d.current.memoizedState.isDehydrated;if(p&&(Ua(d,r).flags|=256),r=ds(d,r,!1),r!==2){if(us&&!p){d.errorRecoveryDisabledLanes|=u,la|=u,n=4;break e}u=ut,ut=n,u!==null&&(ut===null?ut=u:ut.push.apply(ut,u))}n=r}if(u=!1,n!==2)continue}}if(n===1){Ua(e,0),zl(e,t,0,!0);break}e:{switch(a=e,u=n,u){case 0:case 1:throw Error(o(345));case 4:if((t&4194048)!==t)break;case 6:zl(a,t,yt,!_l);break e;case 2:ut=null;break;case 3:case 5:break;default:throw Error(o(329))}if((t&62914560)===t&&(n=Gu+300-st(),10<n)){if(zl(a,t,yt,!_l),eu(a,0,!0)!==0)break e;cl=t,a.timeoutHandle=Yd(fd.bind(null,a,l,ut,Qu,cs,t,yt,la,wa,_l,u,"Throttled",-0,0),n);break e}fd(a,l,ut,Qu,cs,t,yt,la,wa,_l,u,null,-0,0)}}break}while(!0);kt(e)}function fd(e,t,l,a,n,u,r,d,p,N,M,U,R,z){if(e.timeoutHandle=-1,U=t.subtreeFlags,U&8192||(U&16785408)===16785408){U={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:Zt},ad(t,u,U);var $=(u&62914560)===u?Gu-st():(u&4194048)===u?cd-st():0;if($=My(U,$),$!==null){cl=u,e.cancelPendingCommit=$(bd.bind(null,e,t,u,l,a,n,r,d,p,M,U,null,R,z)),zl(e,u,r,!N);return}}bd(e,t,u,l,a,n,r,d,p)}function Kv(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(!ft(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 zl(e,t,l,a){t&=~is,t&=~la,e.suspendedLanes|=t,e.pingedLanes&=~t,a&&(e.warmLanes|=t),a=e.expirationTimes;for(var n=t;0<n;){var u=31-ot(n),r=1<<u;a[u]=-1,n&=~r}l!==0&&br(e,l,t)}function Vu(){return(me&6)===0?(zn(0),!1):!0}function fs(){if(ie!==null){if(ye===0)var e=ie.return;else e=ie,Wt=Kl=null,Nc(e),_a=null,fn=0,e=ie;for(;e!==null;)Gf(e.alternate,e),e=e.return;ie=null}}function Ua(e,t){var l=e.timeoutHandle;l!==-1&&(e.timeoutHandle=-1,hy(l)),l=e.cancelPendingCommit,l!==null&&(e.cancelPendingCommit=null,l()),cl=0,fs(),Ee=e,ie=l=Jt(e.current,null),se=t,ye=0,vt=null,_l=!1,Oa=Ka(e,t),us=!1,wa=yt=is=la=Al=Me=0,ut=Nn=null,cs=!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-ot(a),u=1<<n;t|=e[n],a&=~u}return il=t,du(),l}function dd(e,t){ae=null,O.H=bn,t===Ta||t===Su?(t=No(),ye=3):t===vc?(t=No(),ye=4):ye=t===Xc?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,vt=t,ie===null&&(Me=1,Du(e,Et(t,e.current)))}function hd(){var e=ht.current;return e===null?!0:(se&4194048)===se?Nt===null:(se&62914560)===se||(se&536870912)!==0?e===Nt:!1}function md(){var e=O.H;return O.H=bn,e===null?bn:e}function vd(){var e=O.A;return O.A=Vv,e}function Zu(){Me=4,_l||(se&4194048)!==se&&ht.current!==null||(Oa=!0),(Al&134217727)===0&&(la&134217727)===0||Ee===null||zl(Ee,se,yt,!1)}function ds(e,t,l){var a=me;me|=2;var n=md(),u=vd();(Ee!==e||se!==t)&&(Qu=null,Ua(e,t)),t=!1;var r=Me;e:do try{if(ye!==0&&ie!==null){var d=ie,p=vt;switch(ye){case 8:fs(),r=6;break e;case 3:case 2:case 9:case 6:ht.current===null&&(t=!0);var N=ye;if(ye=0,vt=null,Ha(e,d,p,N),l&&Oa){r=0;break e}break;default:N=ye,ye=0,vt=null,Ha(e,d,p,N)}}Jv(),r=Me;break}catch(M){dd(e,M)}while(!0);return t&&e.shellSuspendCounter++,Wt=Kl=null,me=a,O.H=n,O.A=u,ie===null&&(Ee=null,se=0,du()),r}function Jv(){for(;ie!==null;)yd(ie)}function $v(e,t){var l=me;me|=2;var a=md(),n=vd();Ee!==e||se!==t?(Qu=null,Xu=st()+500,Ua(e,t)):Oa=Ka(e,t);e:do try{if(ye!==0&&ie!==null){t=ie;var u=vt;t:switch(ye){case 1:ye=0,vt=null,Ha(e,t,u,1);break;case 2:case 9:if(_o(u)){ye=0,vt=null,pd(t);break}t=function(){ye!==2&&ye!==9||Ee!==e||(ye=7),kt(e)},u.then(t,t);break e;case 3:ye=7;break e;case 4:ye=5;break e;case 7:_o(u)?(ye=0,vt=null,pd(t)):(ye=0,vt=null,Ha(e,t,u,7));break;case 5:var r=null;switch(ie.tag){case 26:r=ie.memoizedState;case 5:case 27:var d=ie;if(r?lh(r):d.stateNode.complete){ye=0,vt=null;var p=d.sibling;if(p!==null)ie=p;else{var N=d.return;N!==null?(ie=N,Ku(N)):ie=null}break t}}ye=0,vt=null,Ha(e,t,u,5);break;case 6:ye=0,vt=null,Ha(e,t,u,6);break;case 8:fs(),Me=6;break e;default:throw Error(o(462))}}Wv();break}catch(M){dd(e,M)}while(!0);return Wt=Kl=null,O.H=a,O.A=n,me=l,ie!==null?0:(Ee=null,se=0,du(),Me)}function Wv(){for(;ie!==null&&!bm();)yd(ie)}function yd(e){var t=kf(e.alternate,e,il);e.memoizedProps=e.pendingProps,t===null?Ku(e):ie=t}function pd(e){var t=e,l=t.alternate;switch(t.tag){case 15:case 0:t=Df(l,t,t.pendingProps,t.type,void 0,se);break;case 11:t=Df(l,t,t.pendingProps,t.type.render,t.ref,se);break;case 5:Nc(t);default:Gf(l,t),t=ie=mo(t,il),t=kf(l,t,il)}e.memoizedProps=e.pendingProps,t===null?Ku(e):ie=t}function Ha(e,t,l,a){Wt=Kl=null,Nc(t),_a=null,fn=0;var n=t.return;try{if(Lv(e,n,t,l,se)){Me=1,Du(e,Et(l,e.current)),ie=null;return}}catch(u){if(n!==null)throw ie=n,u;Me=1,Du(e,Et(l,e.current)),ie=null;return}t.flags&32768?(oe||a===1?e=!0:Oa||(se&536870912)!==0?e=!1:(_l=e=!0,(a===2||a===9||a===3||a===6)&&(a=ht.current,a!==null&&a.tag===13&&(a.flags|=16384))),gd(t,e)):Ku(t)}function Ku(e){var t=e;do{if((t.flags&32768)!==0){gd(t,_l);return}e=t.return;var l=Yv(t.alternate,t,il);if(l!==null){ie=l;return}if(t=t.sibling,t!==null){ie=t;return}ie=t=e}while(t!==null);Me===0&&(Me=5)}function gd(e,t){do{var l=Gv(e.alternate,e);if(l!==null){l.flags&=32767,ie=l;return}if(l=e.return,l!==null&&(l.flags|=32768,l.subtreeFlags=0,l.deletions=null),!t&&(e=e.sibling,e!==null)){ie=e;return}ie=e=l}while(e!==null);Me=6,ie=null}function bd(e,t,l,a,n,u,r,d,p){e.cancelPendingCommit=null;do Ju();while(ke!==0);if((me&6)!==0)throw Error(o(327));if(t!==null){if(t===e.current)throw Error(o(177));if(u=t.lanes|t.childLanes,u|=ec,zm(e,l,u,r,d,p),e===Ee&&(ie=Ee=null,se=0),Da=t,Rl=e,cl=l,ss=u,rs=n,sd=a,(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,ey(Wn,function(){return Td(),null})):(e.callbackNode=null,e.callbackPriority=0),a=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||a){a=O.T,O.T=null,n=V.p,V.p=2,r=me,me|=4;try{Xv(e,t,l)}finally{me=r,V.p=n,O.T=a}}ke=1,Sd(),xd(),jd()}}function Sd(){if(ke===1){ke=0;var e=Rl,t=Da,l=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||l){l=O.T,O.T=null;var a=V.p;V.p=2;var n=me;me|=4;try{ed(t,e);var u=Ts,r=no(e.containerInfo),d=u.focusedElem,p=u.selectionRange;if(r!==d&&d&&d.ownerDocument&&ao(d.ownerDocument.documentElement,d)){if(p!==null&&$i(d)){var N=p.start,M=p.end;if(M===void 0&&(M=N),"selectionStart"in d)d.selectionStart=N,d.selectionEnd=Math.min(M,d.value.length);else{var U=d.ownerDocument||document,R=U&&U.defaultView||window;if(R.getSelection){var z=R.getSelection(),$=d.textContent.length,P=Math.min(p.start,$),xe=p.end===void 0?P:Math.min(p.end,$);!z.extend&&P>xe&&(r=xe,xe=P,P=r);var _=lo(d,P),x=lo(d,xe);if(_&&x&&(z.rangeCount!==1||z.anchorNode!==_.node||z.anchorOffset!==_.offset||z.focusNode!==x.node||z.focusOffset!==x.offset)){var A=U.createRange();A.setStart(_.node,_.offset),z.removeAllRanges(),P>xe?(z.addRange(A),z.extend(x.node,x.offset)):(A.setEnd(x.node,x.offset),z.addRange(A))}}}}for(U=[],z=d;z=z.parentNode;)z.nodeType===1&&U.push({element:z,left:z.scrollLeft,top:z.scrollTop});for(typeof d.focus=="function"&&d.focus(),d=0;d<U.length;d++){var w=U[d];w.element.scrollLeft=w.left,w.element.scrollTop=w.top}}ii=!!Es,Ts=Es=null}finally{me=n,V.p=a,O.T=l}}e.current=t,ke=2}}function xd(){if(ke===2){ke=0;var e=Rl,t=Da,l=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||l){l=O.T,O.T=null;var a=V.p;V.p=2;var n=me;me|=4;try{$f(e,t.alternate,t)}finally{me=n,V.p=a,O.T=l}}ke=3}}function jd(){if(ke===4||ke===3){ke=0,Sm();var e=Rl,t=Da,l=cl,a=sd;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?ke=5:(ke=0,Da=Rl=null,Ed(e,e.pendingLanes));var n=e.pendingLanes;if(n===0&&(Nl=null),Ci(l),t=t.stateNode,rt&&typeof rt.onCommitFiberRoot=="function")try{rt.onCommitFiberRoot(Za,t,void 0,(t.current.flags&128)===128)}catch{}if(a!==null){t=O.T,n=V.p,V.p=2,O.T=null;try{for(var u=e.onRecoverableError,r=0;r<a.length;r++){var d=a[r];u(d.value,{componentStack:d.stack})}}finally{O.T=t,V.p=n}}(cl&3)!==0&&Ju(),kt(e),n=e.pendingLanes,(l&261930)!==0&&(n&42)!==0?e===os?Rn++:(Rn=0,os=e):Rn=0,zn(0)}}function Ed(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,rn(t)))}function Ju(){return Sd(),xd(),jd(),Td()}function Td(){if(ke!==5)return!1;var e=Rl,t=ss;ss=0;var l=Ci(cl),a=O.T,n=V.p;try{V.p=32>l?32:l,O.T=null,l=rs,rs=null;var u=Rl,r=cl;if(ke=0,Da=Rl=null,cl=0,(me&6)!==0)throw Error(o(331));var d=me;if(me|=4,ud(u.current),ld(u,u.current,r,l),me=d,zn(0,!1),rt&&typeof rt.onPostCommitFiberRoot=="function")try{rt.onPostCommitFiberRoot(Za,u)}catch{}return!0}finally{V.p=n,O.T=a,Ed(e,t)}}function _d(e,t,l){t=Et(l,t),t=Gc(e.stateNode,t,2),e=xl(e,t,2),e!==null&&(Ja(e,2),kt(e))}function pe(e,t,l){if(e.tag===3)_d(e,e,l);else for(;t!==null;){if(t.tag===3){_d(t,e,l);break}else if(t.tag===1){var a=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof a.componentDidCatch=="function"&&(Nl===null||!Nl.has(a))){e=Et(l,e),l=Af(2),a=xl(t,l,2),a!==null&&(Nf(l,a,t,e),Ja(a,2),kt(a));break}}t=t.return}}function hs(e,t,l){var a=e.pingCache;if(a===null){a=e.pingCache=new Zv;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)||(us=!0,n.add(l),e=Fv.bind(null,e,t,l),t.then(e,e))}function Fv(e,t,l){var a=e.pingCache;a!==null&&a.delete(t),e.pingedLanes|=e.suspendedLanes&l,e.warmLanes&=~l,Ee===e&&(se&l)===l&&(Me===4||Me===3&&(se&62914560)===se&&300>st()-Gu?(me&2)===0&&Ua(e,0):is|=l,wa===se&&(wa=0)),kt(e)}function Ad(e,t){t===0&&(t=gr()),e=Ql(e,t),e!==null&&(Ja(e,t),kt(e))}function Iv(e){var t=e.memoizedState,l=0;t!==null&&(l=t.retryLane),Ad(e,l)}function Pv(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(o(314))}a!==null&&a.delete(t),Ad(e,l)}function ey(e,t){return Ai(e,t)}var $u=null,Ba=null,ms=!1,Wu=!1,vs=!1,Cl=0;function kt(e){e!==Ba&&e.next===null&&(Ba===null?$u=Ba=e:Ba=Ba.next=e),Wu=!0,ms||(ms=!0,ly())}function zn(e,t){if(!vs&&Wu){vs=!0;do for(var l=!1,a=$u;a!==null;){if(e!==0){var n=a.pendingLanes;if(n===0)var u=0;else{var r=a.suspendedLanes,d=a.pingedLanes;u=(1<<31-ot(42|e)+1)-1,u&=n&~(r&~d),u=u&201326741?u&201326741|1:u?u|2:0}u!==0&&(l=!0,Cd(a,u))}else u=se,u=eu(a,a===Ee?u:0,a.cancelPendingCommit!==null||a.timeoutHandle!==-1),(u&3)===0||Ka(a,u)||(l=!0,Cd(a,u));a=a.next}while(l);vs=!1}}function ty(){Nd()}function Nd(){Wu=ms=!1;var e=0;Cl!==0&&dy()&&(e=Cl);for(var t=st(),l=null,a=$u;a!==null;){var n=a.next,u=Rd(a,t);u===0?(a.next=null,l===null?$u=n:l.next=n,n===null&&(Ba=l)):(l=a,(e!==0||(u&3)!==0)&&(Wu=!0)),a=n}ke!==0&&ke!==5||zn(e),Cl!==0&&(Cl=0)}function Rd(e,t){for(var l=e.suspendedLanes,a=e.pingedLanes,n=e.expirationTimes,u=e.pendingLanes&-62914561;0<u;){var r=31-ot(u),d=1<<r,p=n[r];p===-1?((d&l)===0||(d&a)!==0)&&(n[r]=Rm(d,t)):p<=t&&(e.expiredLanes|=d),u&=~d}if(t=Ee,l=se,l=eu(e,e===t?l:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),a=e.callbackNode,l===0||e===t&&(ye===2||ye===9)||e.cancelPendingCommit!==null)return a!==null&&a!==null&&Ni(a),e.callbackNode=null,e.callbackPriority=0;if((l&3)===0||Ka(e,l)){if(t=l&-l,t===e.callbackPriority)return t;switch(a!==null&&Ni(a),Ci(l)){case 2:case 8:l=yr;break;case 32:l=Wn;break;case 268435456:l=pr;break;default:l=Wn}return a=zd.bind(null,e),l=Ai(l,a),e.callbackPriority=t,e.callbackNode=l,t}return a!==null&&a!==null&&Ni(a),e.callbackPriority=2,e.callbackNode=null,2}function zd(e,t){if(ke!==0&&ke!==5)return e.callbackNode=null,e.callbackPriority=0,null;var l=e.callbackNode;if(Ju()&&e.callbackNode!==l)return null;var a=se;return a=eu(e,e===Ee?a:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),a===0?null:(od(e,a,t),Rd(e,st()),e.callbackNode!=null&&e.callbackNode===l?zd.bind(null,e):null)}function Cd(e,t){if(Ju())return null;od(e,t,!0)}function ly(){my(function(){(me&6)!==0?Ai(vr,ty):Nd()})}function ys(){if(Cl===0){var e=ja;e===0&&(e=Fn,Fn<<=1,(Fn&261888)===0&&(Fn=256)),Cl=e}return Cl}function Md(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:nu(""+e)}function Od(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 ay(e,t,l,a,n){if(t==="submit"&&l&&l.stateNode===n){var u=Md((n[et]||null).action),r=a.submitter;r&&(t=(t=r[et]||null)?Md(t.formAction):r.getAttribute("formAction"),t!==null&&(u=t,r=null));var d=new su("action","action",null,a,n);e.push({event:d,listeners:[{instance:null,listener:function(){if(a.defaultPrevented){if(Cl!==0){var p=r?Od(n,r):new FormData(n);Hc(l,{pending:!0,data:p,method:n.method,action:u},null,p)}}else typeof u=="function"&&(d.preventDefault(),p=r?Od(n,r):new FormData(n),Hc(l,{pending:!0,data:p,method:n.method,action:u},u,p))},currentTarget:n}]})}}for(var ps=0;ps<Pi.length;ps++){var gs=Pi[ps],ny=gs.toLowerCase(),uy=gs[0].toUpperCase()+gs.slice(1);Mt(ny,"on"+uy)}Mt(co,"onAnimationEnd"),Mt(so,"onAnimationIteration"),Mt(ro,"onAnimationStart"),Mt("dblclick","onDoubleClick"),Mt("focusin","onFocus"),Mt("focusout","onBlur"),Mt(xv,"onTransitionRun"),Mt(jv,"onTransitionStart"),Mt(Ev,"onTransitionCancel"),Mt(oo,"onTransitionEnd"),sa("onMouseEnter",["mouseout","mouseover"]),sa("onMouseLeave",["mouseout","mouseover"]),sa("onPointerEnter",["pointerout","pointerover"]),sa("onPointerLeave",["pointerout","pointerover"]),kl("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),kl("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),kl("onBeforeInput",["compositionend","keypress","textInput","paste"]),kl("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),kl("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),kl("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Cn="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(" "),iy=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Cn));function wd(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 r=a.length-1;0<=r;r--){var d=a[r],p=d.instance,N=d.currentTarget;if(d=d.listener,p!==u&&n.isPropagationStopped())break e;u=d,n.currentTarget=N;try{u(n)}catch(M){fu(M)}n.currentTarget=null,u=p}else for(r=0;r<a.length;r++){if(d=a[r],p=d.instance,N=d.currentTarget,d=d.listener,p!==u&&n.isPropagationStopped())break e;u=d,n.currentTarget=N;try{u(n)}catch(M){fu(M)}n.currentTarget=null,u=p}}}}function ce(e,t){var l=t[Mi];l===void 0&&(l=t[Mi]=new Set);var a=e+"__bubble";l.has(a)||(Dd(t,e,2,!1),l.add(a))}function bs(e,t,l){var a=0;t&&(a|=4),Dd(l,e,a,t)}var Fu="_reactListening"+Math.random().toString(36).slice(2);function Ss(e){if(!e[Fu]){e[Fu]=!0,_r.forEach(function(l){l!=="selectionchange"&&(iy.has(l)||bs(l,!1,e),bs(l,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Fu]||(t[Fu]=!0,bs("selectionchange",!1,t))}}function Dd(e,t,l,a){switch(rh(t)){case 2:var n=Dy;break;case 8:n=Uy;break;default:n=Us}l=n.bind(null,t,l,e),n=void 0,!ki||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 xs(e,t,l,a,n){var u=a;if((t&1)===0&&(t&2)===0&&a!==null)e:for(;;){if(a===null)return;var r=a.tag;if(r===3||r===4){var d=a.stateNode.containerInfo;if(d===n)break;if(r===4)for(r=a.return;r!==null;){var p=r.tag;if((p===3||p===4)&&r.stateNode.containerInfo===n)return;r=r.return}for(;d!==null;){if(r=ua(d),r===null)return;if(p=r.tag,p===5||p===6||p===26||p===27){a=u=r;continue e}d=d.parentNode}}a=a.return}Br(function(){var N=u,M=Li(l),U=[];e:{var R=fo.get(e);if(R!==void 0){var z=su,$=e;switch(e){case"keypress":if(iu(l)===0)break e;case"keydown":case"keyup":z=Pm;break;case"focusin":$="focus",z=Qi;break;case"focusout":$="blur",z=Qi;break;case"beforeblur":case"afterblur":z=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":z=kr;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":z=Ym;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":z=lv;break;case co:case so:case ro:z=Qm;break;case oo:z=nv;break;case"scroll":case"scrollend":z=qm;break;case"wheel":z=iv;break;case"copy":case"cut":case"paste":z=Zm;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":z=Gr;break;case"toggle":case"beforetoggle":z=sv}var P=(t&4)!==0,xe=!P&&(e==="scroll"||e==="scrollend"),_=P?R!==null?R+"Capture":null:R;P=[];for(var x=N,A;x!==null;){var w=x;if(A=w.stateNode,w=w.tag,w!==5&&w!==26&&w!==27||A===null||_===null||(w=Fa(x,_),w!=null&&P.push(Mn(x,w,A))),xe)break;x=x.return}0<P.length&&(R=new z(R,$,null,l,M),U.push({event:R,listeners:P}))}}if((t&7)===0){e:{if(R=e==="mouseover"||e==="pointerover",z=e==="mouseout"||e==="pointerout",R&&l!==Bi&&($=l.relatedTarget||l.fromElement)&&(ua($)||$[na]))break e;if((z||R)&&(R=M.window===M?M:(R=M.ownerDocument)?R.defaultView||R.parentWindow:window,z?($=l.relatedTarget||l.toElement,z=N,$=$?ua($):null,$!==null&&(xe=m($),P=$.tag,$!==xe||P!==5&&P!==27&&P!==6)&&($=null)):(z=null,$=N),z!==$)){if(P=kr,w="onMouseLeave",_="onMouseEnter",x="mouse",(e==="pointerout"||e==="pointerover")&&(P=Gr,w="onPointerLeave",_="onPointerEnter",x="pointer"),xe=z==null?R:Wa(z),A=$==null?R:Wa($),R=new P(w,x+"leave",z,l,M),R.target=xe,R.relatedTarget=A,w=null,ua(M)===N&&(P=new P(_,x+"enter",$,l,M),P.target=A,P.relatedTarget=xe,w=P),xe=w,z&&$)t:{for(P=cy,_=z,x=$,A=0,w=_;w;w=P(w))A++;w=0;for(var I=x;I;I=P(I))w++;for(;0<A-w;)_=P(_),A--;for(;0<w-A;)x=P(x),w--;for(;A--;){if(_===x||x!==null&&_===x.alternate){P=_;break t}_=P(_),x=P(x)}P=null}else P=null;z!==null&&Ud(U,R,z,P,!1),$!==null&&xe!==null&&Ud(U,xe,$,P,!0)}}e:{if(R=N?Wa(N):window,z=R.nodeName&&R.nodeName.toLowerCase(),z==="select"||z==="input"&&R.type==="file")var de=Wr;else if(Jr(R))if(Fr)de=gv;else{de=yv;var F=vv}else z=R.nodeName,!z||z.toLowerCase()!=="input"||R.type!=="checkbox"&&R.type!=="radio"?N&&Hi(N.elementType)&&(de=Wr):de=pv;if(de&&(de=de(e,N))){$r(U,de,l,M);break e}F&&F(e,R,N),e==="focusout"&&N&&R.type==="number"&&N.memoizedProps.value!=null&&Ui(R,"number",R.value)}switch(F=N?Wa(N):window,e){case"focusin":(Jr(F)||F.contentEditable==="true")&&(ma=F,Wi=N,un=null);break;case"focusout":un=Wi=ma=null;break;case"mousedown":Fi=!0;break;case"contextmenu":case"mouseup":case"dragend":Fi=!1,uo(U,l,M);break;case"selectionchange":if(Sv)break;case"keydown":case"keyup":uo(U,l,M)}var ne;if(Zi)e:{switch(e){case"compositionstart":var re="onCompositionStart";break e;case"compositionend":re="onCompositionEnd";break e;case"compositionupdate":re="onCompositionUpdate";break e}re=void 0}else ha?Zr(e,l)&&(re="onCompositionEnd"):e==="keydown"&&l.keyCode===229&&(re="onCompositionStart");re&&(Xr&&l.locale!=="ko"&&(ha||re!=="onCompositionStart"?re==="onCompositionEnd"&&ha&&(ne=Lr()):(ml=M,Yi="value"in ml?ml.value:ml.textContent,ha=!0)),F=Iu(N,re),0<F.length&&(re=new Yr(re,e,null,l,M),U.push({event:re,listeners:F}),ne?re.data=ne:(ne=Kr(l),ne!==null&&(re.data=ne)))),(ne=ov?fv(e,l):dv(e,l))&&(re=Iu(N,"onBeforeInput"),0<re.length&&(F=new Yr("onBeforeInput","beforeinput",null,l,M),U.push({event:F,listeners:re}),F.data=ne)),ay(U,e,N,l,M)}wd(U,t)})}function Mn(e,t,l){return{instance:e,listener:t,currentTarget:l}}function Iu(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=Fa(e,l),n!=null&&a.unshift(Mn(e,n,u)),n=Fa(e,t),n!=null&&a.push(Mn(e,n,u))),e.tag===3)return a;e=e.return}return[]}function cy(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function Ud(e,t,l,a,n){for(var u=t._reactName,r=[];l!==null&&l!==a;){var d=l,p=d.alternate,N=d.stateNode;if(d=d.tag,p!==null&&p===a)break;d!==5&&d!==26&&d!==27||N===null||(p=N,n?(N=Fa(l,u),N!=null&&r.unshift(Mn(l,N,p))):n||(N=Fa(l,u),N!=null&&r.push(Mn(l,N,p)))),l=l.return}r.length!==0&&e.push({event:t,listeners:r})}var sy=/\r\n?/g,ry=/\u0000|\uFFFD/g;function Hd(e){return(typeof e=="string"?e:""+e).replace(sy,`
49
- `).replace(ry,"")}function Bd(e,t){return t=Hd(t),Hd(e)===t}function Se(e,t,l,a,n,u){switch(l){case"children":typeof a=="string"?t==="body"||t==="textarea"&&a===""||oa(e,a):(typeof a=="number"||typeof a=="bigint")&&t!=="body"&&oa(e,""+a);break;case"className":lu(e,"class",a);break;case"tabIndex":lu(e,"tabindex",a);break;case"dir":case"role":case"viewBox":case"width":case"height":lu(e,l,a);break;case"style":Ur(e,a,u);break;case"data":if(t!=="object"){lu(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=nu(""+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"&&Se(e,t,"name",n.name,n,null),Se(e,t,"formEncType",n.formEncType,n,null),Se(e,t,"formMethod",n.formMethod,n,null),Se(e,t,"formTarget",n.formTarget,n,null)):(Se(e,t,"encType",n.encType,n,null),Se(e,t,"method",n.method,n,null),Se(e,t,"target",n.target,n,null)));if(a==null||typeof a=="symbol"||typeof a=="boolean"){e.removeAttribute(l);break}a=nu(""+a),e.setAttribute(l,a);break;case"onClick":a!=null&&(e.onclick=Zt);break;case"onScroll":a!=null&&ce("scroll",e);break;case"onScrollEnd":a!=null&&ce("scrollend",e);break;case"dangerouslySetInnerHTML":if(a!=null){if(typeof a!="object"||!("__html"in a))throw Error(o(61));if(l=a.__html,l!=null){if(n.children!=null)throw Error(o(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=nu(""+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":ce("beforetoggle",e),ce("toggle",e),tu(e,"popover",a);break;case"xlinkActuate":Vt(e,"http://www.w3.org/1999/xlink","xlink:actuate",a);break;case"xlinkArcrole":Vt(e,"http://www.w3.org/1999/xlink","xlink:arcrole",a);break;case"xlinkRole":Vt(e,"http://www.w3.org/1999/xlink","xlink:role",a);break;case"xlinkShow":Vt(e,"http://www.w3.org/1999/xlink","xlink:show",a);break;case"xlinkTitle":Vt(e,"http://www.w3.org/1999/xlink","xlink:title",a);break;case"xlinkType":Vt(e,"http://www.w3.org/1999/xlink","xlink:type",a);break;case"xmlBase":Vt(e,"http://www.w3.org/XML/1998/namespace","xml:base",a);break;case"xmlLang":Vt(e,"http://www.w3.org/XML/1998/namespace","xml:lang",a);break;case"xmlSpace":Vt(e,"http://www.w3.org/XML/1998/namespace","xml:space",a);break;case"is":tu(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=Bm.get(l)||l,tu(e,l,a))}}function js(e,t,l,a,n,u){switch(l){case"style":Ur(e,a,u);break;case"dangerouslySetInnerHTML":if(a!=null){if(typeof a!="object"||!("__html"in a))throw Error(o(61));if(l=a.__html,l!=null){if(n.children!=null)throw Error(o(60));e.innerHTML=l}}break;case"children":typeof a=="string"?oa(e,a):(typeof a=="number"||typeof a=="bigint")&&oa(e,""+a);break;case"onScroll":a!=null&&ce("scroll",e);break;case"onScrollEnd":a!=null&&ce("scrollend",e);break;case"onClick":a!=null&&(e.onclick=Zt);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!Ar.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[et]||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,""):tu(e,l,a)}}}function Ke(e,t,l){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":ce("error",e),ce("load",e);var a=!1,n=!1,u;for(u in l)if(l.hasOwnProperty(u)){var r=l[u];if(r!=null)switch(u){case"src":a=!0;break;case"srcSet":n=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(o(137,t));default:Se(e,t,u,r,l,null)}}n&&Se(e,t,"srcSet",l.srcSet,l,null),a&&Se(e,t,"src",l.src,l,null);return;case"input":ce("invalid",e);var d=u=r=n=null,p=null,N=null;for(a in l)if(l.hasOwnProperty(a)){var M=l[a];if(M!=null)switch(a){case"name":n=M;break;case"type":r=M;break;case"checked":p=M;break;case"defaultChecked":N=M;break;case"value":u=M;break;case"defaultValue":d=M;break;case"children":case"dangerouslySetInnerHTML":if(M!=null)throw Error(o(137,t));break;default:Se(e,t,a,M,l,null)}}Mr(e,u,d,p,N,r,n,!1);return;case"select":ce("invalid",e),a=r=u=null;for(n in l)if(l.hasOwnProperty(n)&&(d=l[n],d!=null))switch(n){case"value":u=d;break;case"defaultValue":r=d;break;case"multiple":a=d;default:Se(e,t,n,d,l,null)}t=u,l=r,e.multiple=!!a,t!=null?ra(e,!!a,t,!1):l!=null&&ra(e,!!a,l,!0);return;case"textarea":ce("invalid",e),u=n=a=null;for(r in l)if(l.hasOwnProperty(r)&&(d=l[r],d!=null))switch(r){case"value":a=d;break;case"defaultValue":n=d;break;case"children":u=d;break;case"dangerouslySetInnerHTML":if(d!=null)throw Error(o(91));break;default:Se(e,t,r,d,l,null)}wr(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:Se(e,t,p,a,l,null)}return;case"dialog":ce("beforetoggle",e),ce("toggle",e),ce("cancel",e),ce("close",e);break;case"iframe":case"object":ce("load",e);break;case"video":case"audio":for(a=0;a<Cn.length;a++)ce(Cn[a],e);break;case"image":ce("error",e),ce("load",e);break;case"details":ce("toggle",e);break;case"embed":case"source":case"link":ce("error",e),ce("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(N in l)if(l.hasOwnProperty(N)&&(a=l[N],a!=null))switch(N){case"children":case"dangerouslySetInnerHTML":throw Error(o(137,t));default:Se(e,t,N,a,l,null)}return;default:if(Hi(t)){for(M in l)l.hasOwnProperty(M)&&(a=l[M],a!==void 0&&js(e,t,M,a,l,void 0));return}}for(d in l)l.hasOwnProperty(d)&&(a=l[d],a!=null&&Se(e,t,d,a,l,null))}function oy(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,r=null,d=null,p=null,N=null,M=null;for(z in l){var U=l[z];if(l.hasOwnProperty(z)&&U!=null)switch(z){case"checked":break;case"value":break;case"defaultValue":p=U;default:a.hasOwnProperty(z)||Se(e,t,z,null,a,U)}}for(var R in a){var z=a[R];if(U=l[R],a.hasOwnProperty(R)&&(z!=null||U!=null))switch(R){case"type":u=z;break;case"name":n=z;break;case"checked":N=z;break;case"defaultChecked":M=z;break;case"value":r=z;break;case"defaultValue":d=z;break;case"children":case"dangerouslySetInnerHTML":if(z!=null)throw Error(o(137,t));break;default:z!==U&&Se(e,t,R,z,a,U)}}Di(e,r,d,p,N,M,u,n);return;case"select":z=r=d=R=null;for(u in l)if(p=l[u],l.hasOwnProperty(u)&&p!=null)switch(u){case"value":break;case"multiple":z=p;default:a.hasOwnProperty(u)||Se(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":r=u;default:u!==p&&Se(e,t,n,u,a,p)}t=d,l=r,a=z,R!=null?ra(e,!!l,R,!1):!!a!=!!l&&(t!=null?ra(e,!!l,t,!0):ra(e,!!l,l?[]:"",!1));return;case"textarea":z=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:Se(e,t,d,null,a,n)}for(r in a)if(n=a[r],u=l[r],a.hasOwnProperty(r)&&(n!=null||u!=null))switch(r){case"value":R=n;break;case"defaultValue":z=n;break;case"children":break;case"dangerouslySetInnerHTML":if(n!=null)throw Error(o(91));break;default:n!==u&&Se(e,t,r,n,a,u)}Or(e,R,z);return;case"option":for(var $ in l)if(R=l[$],l.hasOwnProperty($)&&R!=null&&!a.hasOwnProperty($))switch($){case"selected":e.selected=!1;break;default:Se(e,t,$,null,a,R)}for(p in a)if(R=a[p],z=l[p],a.hasOwnProperty(p)&&R!==z&&(R!=null||z!=null))switch(p){case"selected":e.selected=R&&typeof R!="function"&&typeof R!="symbol";break;default:Se(e,t,p,R,a,z)}return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var P in l)R=l[P],l.hasOwnProperty(P)&&R!=null&&!a.hasOwnProperty(P)&&Se(e,t,P,null,a,R);for(N in a)if(R=a[N],z=l[N],a.hasOwnProperty(N)&&R!==z&&(R!=null||z!=null))switch(N){case"children":case"dangerouslySetInnerHTML":if(R!=null)throw Error(o(137,t));break;default:Se(e,t,N,R,a,z)}return;default:if(Hi(t)){for(var xe in l)R=l[xe],l.hasOwnProperty(xe)&&R!==void 0&&!a.hasOwnProperty(xe)&&js(e,t,xe,void 0,a,R);for(M in a)R=a[M],z=l[M],!a.hasOwnProperty(M)||R===z||R===void 0&&z===void 0||js(e,t,M,R,a,z);return}}for(var _ in l)R=l[_],l.hasOwnProperty(_)&&R!=null&&!a.hasOwnProperty(_)&&Se(e,t,_,null,a,R);for(U in a)R=a[U],z=l[U],!a.hasOwnProperty(U)||R===z||R==null&&z==null||Se(e,t,U,R,a,z)}function Ld(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function fy(){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,r=n.initiatorType,d=n.duration;if(u&&d&&Ld(r)){for(r=0,d=n.responseEnd,a+=1;a<l.length;a++){var p=l[a],N=p.startTime;if(N>d)break;var M=p.transferSize,U=p.initiatorType;M&&Ld(U)&&(p=p.responseEnd,r+=M*(p<d?1:(d-N)/(p-N)))}if(--a,t+=8*(u+r)/(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 Es=null,Ts=null;function Pu(e){return e.nodeType===9?e:e.ownerDocument}function qd(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 kd(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 _s(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 As=null;function dy(){var e=window.event;return e&&e.type==="popstate"?e===As?!1:(As=e,!0):(As=null,!1)}var Yd=typeof setTimeout=="function"?setTimeout:void 0,hy=typeof clearTimeout=="function"?clearTimeout:void 0,Gd=typeof Promise=="function"?Promise:void 0,my=typeof queueMicrotask=="function"?queueMicrotask:typeof Gd<"u"?function(e){return Gd.resolve(null).then(e).catch(vy)}:Yd;function vy(e){setTimeout(function(){throw e})}function Ml(e){return e==="head"}function Xd(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),Ya(t);return}a--}else if(l==="$"||l==="$?"||l==="$~"||l==="$!"||l==="&")a++;else if(l==="html")On(e.ownerDocument.documentElement);else if(l==="head"){l=e.ownerDocument.head,On(l);for(var u=l.firstChild;u;){var r=u.nextSibling,d=u.nodeName;u[$a]||d==="SCRIPT"||d==="STYLE"||d==="LINK"&&u.rel.toLowerCase()==="stylesheet"||l.removeChild(u),u=r}}else l==="body"&&On(e.ownerDocument.body);l=n}while(l);Ya(t)}function Qd(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 Ns(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":Ns(l),Oi(l);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(l.rel.toLowerCase()==="stylesheet")continue}e.removeChild(l)}}function yy(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[$a])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=Rt(e.nextSibling),e===null)break}return null}function py(e,t,l){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!l||(e=Rt(e.nextSibling),e===null))return null;return e}function Vd(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t||(e=Rt(e.nextSibling),e===null))return null;return e}function Rs(e){return e.data==="$?"||e.data==="$~"}function zs(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function gy(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 Rt(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 Cs=null;function Zd(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var l=e.data;if(l==="/$"||l==="/&"){if(t===0)return Rt(e.nextSibling);t--}else l!=="$"&&l!=="$!"&&l!=="$?"&&l!=="$~"&&l!=="&"||t++}e=e.nextSibling}return null}function Kd(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 Jd(e,t,l){switch(t=Pu(l),e){case"html":if(e=t.documentElement,!e)throw Error(o(452));return e;case"head":if(e=t.head,!e)throw Error(o(453));return e;case"body":if(e=t.body,!e)throw Error(o(454));return e;default:throw Error(o(451))}}function On(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);Oi(e)}var zt=new Map,$d=new Set;function ei(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var sl=V.d;V.d={f:by,r:Sy,D:xy,C:jy,L:Ey,m:Ty,X:Ay,S:_y,M:Ny};function by(){var e=sl.f(),t=Vu();return e||t}function Sy(e){var t=ia(e);t!==null&&t.tag===5&&t.type==="form"?df(t):sl.r(e)}var La=typeof document>"u"?null:document;function Wd(e,t,l){var a=La;if(a&&typeof t=="string"&&t){var n=xt(t);n='link[rel="'+e+'"][href="'+n+'"]',typeof l=="string"&&(n+='[crossorigin="'+l+'"]'),$d.has(n)||($d.add(n),e={rel:e,crossOrigin:l,href:t},a.querySelector(n)===null&&(t=a.createElement("link"),Ke(t,"link",e),Ye(t),a.head.appendChild(t)))}}function xy(e){sl.D(e),Wd("dns-prefetch",e,null)}function jy(e,t){sl.C(e,t),Wd("preconnect",e,t)}function Ey(e,t,l){sl.L(e,t,l);var a=La;if(a&&e&&t){var n='link[rel="preload"][as="'+xt(t)+'"]';t==="image"&&l&&l.imageSrcSet?(n+='[imagesrcset="'+xt(l.imageSrcSet)+'"]',typeof l.imageSizes=="string"&&(n+='[imagesizes="'+xt(l.imageSizes)+'"]')):n+='[href="'+xt(e)+'"]';var u=n;switch(t){case"style":u=qa(e);break;case"script":u=ka(e)}zt.has(u)||(e=b({rel:"preload",href:t==="image"&&l&&l.imageSrcSet?void 0:e,as:t},l),zt.set(u,e),a.querySelector(n)!==null||t==="style"&&a.querySelector(wn(u))||t==="script"&&a.querySelector(Dn(u))||(t=a.createElement("link"),Ke(t,"link",e),Ye(t),a.head.appendChild(t)))}}function Ty(e,t){sl.m(e,t);var l=La;if(l&&e){var a=t&&typeof t.as=="string"?t.as:"script",n='link[rel="modulepreload"][as="'+xt(a)+'"][href="'+xt(e)+'"]',u=n;switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":u=ka(e)}if(!zt.has(u)&&(e=b({rel:"modulepreload",href:e},t),zt.set(u,e),l.querySelector(n)===null)){switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(l.querySelector(Dn(u)))return}a=l.createElement("link"),Ke(a,"link",e),Ye(a),l.head.appendChild(a)}}}function _y(e,t,l){sl.S(e,t,l);var a=La;if(a&&e){var n=ca(a).hoistableStyles,u=qa(e);t=t||"default";var r=n.get(u);if(!r){var d={loading:0,preload:null};if(r=a.querySelector(wn(u)))d.loading=5;else{e=b({rel:"stylesheet",href:e,"data-precedence":t},l),(l=zt.get(u))&&Ms(e,l);var p=r=a.createElement("link");Ye(p),Ke(p,"link",e),p._p=new Promise(function(N,M){p.onload=N,p.onerror=M}),p.addEventListener("load",function(){d.loading|=1}),p.addEventListener("error",function(){d.loading|=2}),d.loading|=4,ti(r,t,a)}r={type:"stylesheet",instance:r,count:1,state:d},n.set(u,r)}}}function Ay(e,t){sl.X(e,t);var l=La;if(l&&e){var a=ca(l).hoistableScripts,n=ka(e),u=a.get(n);u||(u=l.querySelector(Dn(n)),u||(e=b({src:e,async:!0},t),(t=zt.get(n))&&Os(e,t),u=l.createElement("script"),Ye(u),Ke(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=La;if(l&&e){var a=ca(l).hoistableScripts,n=ka(e),u=a.get(n);u||(u=l.querySelector(Dn(n)),u||(e=b({src:e,async:!0,type:"module"},t),(t=zt.get(n))&&Os(e,t),u=l.createElement("script"),Ye(u),Ke(u,"link",e),l.head.appendChild(u)),u={type:"script",instance:u,count:1,state:null},a.set(n,u))}}function Fd(e,t,l,a){var n=(n=ue.current)?ei(n):null;if(!n)throw Error(o(446));switch(e){case"meta":case"title":return null;case"style":return typeof l.precedence=="string"&&typeof l.href=="string"?(t=qa(l.href),l=ca(n).hoistableStyles,a=l.get(t),a||(a={type:"style",instance:null,count:0,state:null},l.set(t,a)),a):{type:"void",instance:null,count:0,state:null};case"link":if(l.rel==="stylesheet"&&typeof l.href=="string"&&typeof l.precedence=="string"){e=qa(l.href);var u=ca(n).hoistableStyles,r=u.get(e);if(r||(n=n.ownerDocument||n,r={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},u.set(e,r),(u=n.querySelector(wn(e)))&&!u._p&&(r.instance=u,r.state.loading=5),zt.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},zt.set(e,l),u||Ry(n,e,l,r.state))),t&&a===null)throw Error(o(528,""));return r}if(t&&a!==null)throw Error(o(529,""));return null;case"script":return t=l.async,l=l.src,typeof l=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=ka(l),l=ca(n).hoistableScripts,a=l.get(t),a||(a={type:"script",instance:null,count:0,state:null},l.set(t,a)),a):{type:"void",instance:null,count:0,state:null};default:throw Error(o(444,e))}}function qa(e){return'href="'+xt(e)+'"'}function wn(e){return'link[rel="stylesheet"]['+e+"]"}function Id(e){return b({},e,{"data-precedence":e.precedence,precedence:null})}function Ry(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}),Ke(t,"link",l),Ye(t),e.head.appendChild(t))}function ka(e){return'[src="'+xt(e)+'"]'}function Dn(e){return"script[async]"+e}function Pd(e,t,l){if(t.count++,t.instance===null)switch(t.type){case"style":var a=e.querySelector('style[data-href~="'+xt(l.href)+'"]');if(a)return t.instance=a,Ye(a),a;var n=b({},l,{"data-href":l.href,"data-precedence":l.precedence,href:null,precedence:null});return a=(e.ownerDocument||e).createElement("style"),Ye(a),Ke(a,"style",n),ti(a,l.precedence,e),t.instance=a;case"stylesheet":n=qa(l.href);var u=e.querySelector(wn(n));if(u)return t.state.loading|=4,t.instance=u,Ye(u),u;a=Id(l),(n=zt.get(n))&&Ms(a,n),u=(e.ownerDocument||e).createElement("link"),Ye(u);var r=u;return r._p=new Promise(function(d,p){r.onload=d,r.onerror=p}),Ke(u,"link",a),t.state.loading|=4,ti(u,l.precedence,e),t.instance=u;case"script":return u=ka(l.src),(n=e.querySelector(Dn(u)))?(t.instance=n,Ye(n),n):(a=l,(n=zt.get(u))&&(a=b({},l),Os(a,n)),e=e.ownerDocument||e,n=e.createElement("script"),Ye(n),Ke(n,"link",a),e.head.appendChild(n),t.instance=n);case"void":return null;default:throw Error(o(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(a=t.instance,t.state.loading|=4,ti(a,l.precedence,e));return t.instance}function ti(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,r=0;r<a.length;r++){var d=a[r];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 Ms(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function Os(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var li=null;function eh(e,t,l){if(li===null){var a=new Map,n=li=new Map;n.set(l,a)}else n=li,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[$a]||u[Xe]||e==="link"&&u.getAttribute("rel")==="stylesheet")&&u.namespaceURI!=="http://www.w3.org/2000/svg"){var r=u.getAttribute(t)||"";r=e+r;var d=a.get(r);d?d.push(u):a.set(r,[u])}}return a}function th(e,t,l){e=e.ownerDocument||e,e.head.insertBefore(l,t==="title"?e.querySelector("head > title"):null)}function zy(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 lh(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=qa(a.href),u=t.querySelector(wn(n));if(u){t=u._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=ai.bind(e),t.then(e,e)),l.state.loading|=4,l.instance=u,Ye(u);return}u=t.ownerDocument||t,a=Id(a),(n=zt.get(n))&&Ms(a,n),u=u.createElement("link"),Ye(u);var r=u;r._p=new Promise(function(d,p){r.onload=d,r.onerror=p}),Ke(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=ai.bind(e),t.addEventListener("load",l),t.addEventListener("error",l))}}var ws=0;function My(e,t){return e.stylesheets&&e.count===0&&ui(e,e.stylesheets),0<e.count||0<e.imgCount?function(l){var a=setTimeout(function(){if(e.stylesheets&&ui(e,e.stylesheets),e.unsuspend){var u=e.unsuspend;e.unsuspend=null,u()}},6e4+t);0<e.imgBytes&&ws===0&&(ws=62500*fy());var n=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&ui(e,e.stylesheets),e.unsuspend)){var u=e.unsuspend;e.unsuspend=null,u()}},(e.imgBytes>ws?50:800)+t);return e.unsuspend=l,function(){e.unsuspend=null,clearTimeout(a),clearTimeout(n)}}:null}function ai(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)ui(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var ni=null;function ui(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,ni=new Map,t.forEach(Oy,e),ni=null,ai.call(e))}function Oy(e,t){if(!(t.state.loading&4)){var l=ni.get(e);if(l)var a=l.get(null);else{l=new Map,ni.set(e,l);for(var n=e.querySelectorAll("link[data-precedence],style[data-precedence]"),u=0;u<n.length;u++){var r=n[u];(r.nodeName==="LINK"||r.getAttribute("media")!=="not all")&&(l.set(r.dataset.precedence,r),a=r)}a&&l.set(null,a)}n=t.instance,r=n.getAttribute("data-precedence"),u=l.get(r)||a,u===a&&l.set(null,n),l.set(r,n),this.count++,a=ai.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 Un={$$typeof:J,Provider:null,Consumer:null,_currentValue:ee,_currentValue2:ee,_threadCount:0};function wy(e,t,l,a,n,u,r,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=Ri(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Ri(0),this.hiddenUpdates=Ri(null),this.identifierPrefix=a,this.onUncaughtError=n,this.onCaughtError=u,this.onRecoverableError=r,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=p,this.incompleteTransitions=new Map}function ah(e,t,l,a,n,u,r,d,p,N,M,U){return e=new wy(e,t,l,r,p,N,M,U,d),t=1,u===!0&&(t|=24),u=dt(3,null,null,t),e.current=u,u.stateNode=e,t=dc(),t.refCount++,e.pooledCache=t,t.refCount++,u.memoizedState={element:a,isDehydrated:l,cache:t},yc(u),e}function nh(e){return e?(e=pa,e):pa}function uh(e,t,l,a,n,u){n=nh(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=xl(e,a,t),l!==null&&(it(l,e,t),hn(l,e,t))}function ih(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var l=e.retryLane;e.retryLane=l!==0&&l<t?l:t}}function Ds(e,t){ih(e,t),(e=e.alternate)&&ih(e,t)}function ch(e){if(e.tag===13||e.tag===31){var t=Ql(e,67108864);t!==null&&it(t,e,67108864),Ds(e,67108864)}}function sh(e){if(e.tag===13||e.tag===31){var t=pt();t=zi(t);var l=Ql(e,t);l!==null&&it(l,e,t),Ds(e,t)}}var ii=!0;function Dy(e,t,l,a){var n=O.T;O.T=null;var u=V.p;try{V.p=2,Us(e,t,l,a)}finally{V.p=u,O.T=n}}function Uy(e,t,l,a){var n=O.T;O.T=null;var u=V.p;try{V.p=8,Us(e,t,l,a)}finally{V.p=u,O.T=n}}function Us(e,t,l,a){if(ii){var n=Hs(a);if(n===null)xs(e,t,a,ci,l),oh(e,a);else if(By(n,e,t,l,a))a.stopPropagation();else if(oh(e,a),t&4&&-1<Hy.indexOf(e)){for(;n!==null;){var u=ia(n);if(u!==null)switch(u.tag){case 3:if(u=u.stateNode,u.current.memoizedState.isDehydrated){var r=ql(u.pendingLanes);if(r!==0){var d=u;for(d.pendingLanes|=2,d.entangledLanes|=2;r;){var p=1<<31-ot(r);d.entanglements[1]|=p,r&=~p}kt(u),(me&6)===0&&(Xu=st()+500,zn(0))}}break;case 31:case 13:d=Ql(u,2),d!==null&&it(d,u,2),Vu(),Ds(u,2)}if(u=Hs(a),u===null&&xs(e,t,a,ci,l),u===n)break;n=u}n!==null&&a.stopPropagation()}else xs(e,t,a,null,l)}}function Hs(e){return e=Li(e),Bs(e)}var ci=null;function Bs(e){if(ci=null,e=ua(e),e!==null){var t=m(e);if(t===null)e=null;else{var l=t.tag;if(l===13){if(e=y(t),e!==null)return e;e=null}else if(l===31){if(e=j(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 ci=e,null}function rh(e){switch(e){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(xm()){case vr:return 2;case yr:return 8;case Wn:case jm:return 32;case pr:return 268435456;default:return 32}default:return 32}}var Ls=!1,Ol=null,wl=null,Dl=null,Hn=new Map,Bn=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 oh(e,t){switch(e){case"focusin":case"focusout":Ol=null;break;case"dragenter":case"dragleave":wl=null;break;case"mouseover":case"mouseout":Dl=null;break;case"pointerover":case"pointerout":Hn.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Bn.delete(t.pointerId)}}function Ln(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=ia(t),t!==null&&ch(t)),e):(e.eventSystemFlags|=a,t=e.targetContainers,n!==null&&t.indexOf(n)===-1&&t.push(n),e)}function By(e,t,l,a,n){switch(t){case"focusin":return Ol=Ln(Ol,e,t,l,a,n),!0;case"dragenter":return wl=Ln(wl,e,t,l,a,n),!0;case"mouseover":return Dl=Ln(Dl,e,t,l,a,n),!0;case"pointerover":var u=n.pointerId;return Hn.set(u,Ln(Hn.get(u)||null,e,t,l,a,n)),!0;case"gotpointercapture":return u=n.pointerId,Bn.set(u,Ln(Bn.get(u)||null,e,t,l,a,n)),!0}return!1}function fh(e){var t=ua(e.target);if(t!==null){var l=m(t);if(l!==null){if(t=l.tag,t===13){if(t=y(l),t!==null){e.blockedOn=t,Er(e.priority,function(){sh(l)});return}}else if(t===31){if(t=j(l),t!==null){e.blockedOn=t,Er(e.priority,function(){sh(l)});return}}else if(t===3&&l.stateNode.current.memoizedState.isDehydrated){e.blockedOn=l.tag===3?l.stateNode.containerInfo:null;return}}}e.blockedOn=null}function si(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var l=Hs(e.nativeEvent);if(l===null){l=e.nativeEvent;var a=new l.constructor(l.type,l);Bi=a,l.target.dispatchEvent(a),Bi=null}else return t=ia(l),t!==null&&ch(t),e.blockedOn=l,!1;t.shift()}return!0}function dh(e,t,l){si(e)&&l.delete(t)}function Ly(){Ls=!1,Ol!==null&&si(Ol)&&(Ol=null),wl!==null&&si(wl)&&(wl=null),Dl!==null&&si(Dl)&&(Dl=null),Hn.forEach(dh),Bn.forEach(dh)}function ri(e,t){e.blockedOn===t&&(e.blockedOn=null,Ls||(Ls=!0,i.unstable_scheduleCallback(i.unstable_NormalPriority,Ly)))}var oi=null;function hh(e){oi!==e&&(oi=e,i.unstable_scheduleCallback(i.unstable_NormalPriority,function(){oi===e&&(oi=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(Bs(a||l)===null)continue;break}var u=ia(l);u!==null&&(e.splice(t,3),t-=3,Hc(u,{pending:!0,data:n,method:l.method,action:a},a,n))}}))}function Ya(e){function t(p){return ri(p,e)}Ol!==null&&ri(Ol,e),wl!==null&&ri(wl,e),Dl!==null&&ri(Dl,e),Hn.forEach(t),Bn.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);)fh(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],r=n[et]||null;if(typeof u=="function")r||hh(l);else if(r){var d=null;if(u&&u.hasAttribute("formAction")){if(n=u,r=u[et]||null)d=r.formAction;else if(Bs(n)!==null)continue}else d=r.action;typeof d=="function"?l[a+1]=d:(l.splice(a,3),a-=3),hh(l)}}}function mh(){function e(u){u.canIntercept&&u.info==="react-transition"&&u.intercept({handler:function(){return new Promise(function(r){return n=r})},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 qs(e){this._internalRoot=e}fi.prototype.render=qs.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(o(409));var l=t.current,a=pt();uh(l,a,e,t,null,null)},fi.prototype.unmount=qs.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;uh(e.current,2,null,e,null,null),Vu(),t[na]=null}};function fi(e){this._internalRoot=e}fi.prototype.unstable_scheduleHydration=function(e){if(e){var t=jr();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&&fh(e)}};var vh=s.version;if(vh!=="19.2.5")throw Error(o(527,vh,"19.2.5"));V.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(o(188)):(e=Object.keys(e).join(","),Error(o(268,e)));return e=v(t),e=e!==null?T(e):null,e=e===null?null:e.stateNode,e};var qy={bundleType:0,version:"19.2.5",rendererPackageName:"react-dom",currentDispatcherRef:O,reconcilerVersion:"19.2.5"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var di=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!di.isDisabled&&di.supportsFiber)try{Za=di.inject(qy),rt=di}catch{}}return kn.createRoot=function(e,t){if(!h(e))throw Error(o(299));var l=!1,a="",n=jf,u=Ef,r=Tf;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&&(r=t.onRecoverableError)),t=ah(e,1,!1,null,null,l,a,null,n,u,r,mh),e[na]=t.current,Ss(e),new qs(t)},kn.hydrateRoot=function(e,t,l){if(!h(e))throw Error(o(299));var a=!1,n="",u=jf,r=Ef,d=Tf,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&&(r=l.onCaughtError),l.onRecoverableError!==void 0&&(d=l.onRecoverableError),l.formState!==void 0&&(p=l.formState)),t=ah(e,1,!0,t,l??null,a,n,p,u,r,d,mh),t.context=nh(null),l=t.current,a=pt(),a=zi(a),n=Sl(a),n.callback=null,xl(l,n,a),l=a,t.current.lanes=l,Ja(t,l),kt(t),e[na]=t.current,Ss(e),new fi(t)},kn.version="19.2.5",kn}var _h;function $y(){if(_h)return Gs.exports;_h=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(),Gs.exports=Jy(),Gs.exports}var Wy=$y();/**
48
+ `+a.stack}}var _i=Object.prototype.hasOwnProperty,Ai=i.unstable_scheduleCallback,Ni=i.unstable_cancelCallback,bm=i.unstable_shouldYield,Sm=i.unstable_requestPaint,ot=i.unstable_now,xm=i.unstable_getCurrentPriorityLevel,vr=i.unstable_ImmediatePriority,yr=i.unstable_UserBlockingPriority,Wn=i.unstable_NormalPriority,jm=i.unstable_LowPriority,pr=i.unstable_IdlePriority,Em=i.log,Tm=i.unstable_setDisableYieldValue,Za=null,ft=null;function dl(e){if(typeof Em=="function"&&Tm(e),ft&&typeof ft.setStrictMode=="function")try{ft.setStrictMode(Za,e)}catch{}}var dt=Math.clz32?Math.clz32:Nm,_m=Math.log,Am=Math.LN2;function Nm(e){return e>>>=0,e===0?32:31-(_m(e)/Am|0)|0}var Fn=256,In=262144,Pn=4194304;function ql(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 eu(e,t,l){var a=e.pendingLanes;if(a===0)return 0;var n=0,u=e.suspendedLanes,r=e.pingedLanes;e=e.warmLanes;var d=a&134217727;return d!==0?(a=d&~u,a!==0?n=ql(a):(r&=d,r!==0?n=ql(r):l||(l=d&~e,l!==0&&(n=ql(l))))):(d=a&~u,d!==0?n=ql(d):r!==0?n=ql(r):l||(l=a&~e,l!==0&&(n=ql(l)))),n===0?0:t!==0&&t!==n&&(t&u)===0&&(u=n&-n,l=t&-t,u>=l||u===32&&(l&4194048)!==0)?t:n}function Ka(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function Rm(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 gr(){var e=Pn;return Pn<<=1,(Pn&62914560)===0&&(Pn=4194304),e}function Ri(e){for(var t=[],l=0;31>l;l++)t.push(e);return t}function Ja(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function zm(e,t,l,a,n,u){var r=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,N=e.hiddenUpdates;for(l=r&~l;0<l;){var M=31-dt(l),U=1<<M;d[M]=0,p[M]=-1;var R=N[M];if(R!==null)for(N[M]=null,M=0;M<R.length;M++){var C=R[M];C!==null&&(C.lane&=-536870913)}l&=~U}a!==0&&br(e,a,0),u!==0&&n===0&&e.tag!==0&&(e.suspendedLanes|=u&~(r&~t))}function br(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 Sr(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 xr(e,t){var l=t&-t;return l=(l&42)!==0?1:zi(l),(l&(e.suspendedLanes|t))!==0?0:l}function zi(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 Ci(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function jr(){var e=Q.p;return e!==0?e:(e=window.event,e===void 0?32:rh(e.type))}function Er(e,t){var l=Q.p;try{return Q.p=e,t()}finally{Q.p=l}}var hl=Math.random().toString(36).slice(2),Xe="__reactFiber$"+hl,lt="__reactProps$"+hl,na="__reactContainer$"+hl,Mi="__reactEvents$"+hl,Cm="__reactListeners$"+hl,Mm="__reactHandles$"+hl,Tr="__reactResources$"+hl,$a="__reactMarker$"+hl;function wi(e){delete e[Xe],delete e[lt],delete e[Mi],delete e[Cm],delete e[Mm]}function ua(e){var t=e[Xe];if(t)return t;for(var l=e.parentNode;l;){if(t=l[na]||l[Xe]){if(l=t.alternate,t.child!==null||l!==null&&l.child!==null)for(e=Kd(e);e!==null;){if(l=e[Xe])return l;e=Kd(e)}return t}e=l,l=e.parentNode}return null}function ia(e){if(e=e[Xe]||e[na]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function Wa(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(o(33))}function ca(e){var t=e[Tr];return t||(t=e[Tr]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function Ye(e){e[$a]=!0}var _r=new Set,Ar={};function kl(e,t){sa(e,t),sa(e+"Capture",t)}function sa(e,t){for(Ar[e]=t,e=0;e<t.length;e++)_r.add(t[e])}var wm=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]*$"),Nr={},Rr={};function Om(e){return _i.call(Rr,e)?!0:_i.call(Nr,e)?!1:wm.test(e)?Rr[e]=!0:(Nr[e]=!0,!1)}function tu(e,t,l){if(Om(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 lu(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 Vt(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 zr(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Dm(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(r){l=""+r,u.call(this,r)}}),Object.defineProperty(e,t,{enumerable:a.enumerable}),{getValue:function(){return l},setValue:function(r){l=""+r},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Oi(e){if(!e._valueTracker){var t=zr(e)?"checked":"value";e._valueTracker=Dm(e,t,""+e[t])}}function Cr(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var l=t.getValue(),a="";return e&&(a=zr(e)?e.checked?"true":"false":e.value),e=a,e!==l?(t.setValue(e),!0):!1}function au(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 Um=/[\n"\\]/g;function jt(e){return e.replace(Um,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function Di(e,t,l,a,n,u,r,d){e.name="",r!=null&&typeof r!="function"&&typeof r!="symbol"&&typeof r!="boolean"?e.type=r:e.removeAttribute("type"),t!=null?r==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+xt(t)):e.value!==""+xt(t)&&(e.value=""+xt(t)):r!=="submit"&&r!=="reset"||e.removeAttribute("value"),t!=null?Ui(e,r,xt(t)):l!=null?Ui(e,r,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 Mr(e,t,l,a,n,u,r,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)){Oi(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,r!=null&&typeof r!="function"&&typeof r!="symbol"&&typeof r!="boolean"&&(e.name=r),Oi(e)}function Ui(e,t,l){t==="number"&&au(e.ownerDocument)===e||e.defaultValue===""+l||(e.defaultValue=""+l)}function ra(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 wr(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 Or(e,t,l,a){if(t==null){if(a!=null){if(l!=null)throw Error(o(92));if(Ue(a)){if(1<a.length)throw Error(o(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),Oi(e)}function oa(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 Dr(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 Ur(e,t,l){if(t!=null&&typeof t!="object")throw Error(o(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&&Dr(e,n,a)}else for(var u in t)t.hasOwnProperty(u)&&Dr(e,u,t[u])}function Hi(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 Bm=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"]]),Lm=/^[\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 nu(e){return Lm.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function Zt(){}var Bi=null;function Li(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var fa=null,da=null;function Hr(e){var t=ia(e);if(t&&(e=t.stateNode)){var l=e[lt]||null;e:switch(e=t.stateNode,t.type){case"input":if(Di(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="'+jt(""+t)+'"][type="radio"]'),t=0;t<l.length;t++){var a=l[t];if(a!==e&&a.form===e.form){var n=a[lt]||null;if(!n)throw Error(o(90));Di(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&&Cr(a)}break e;case"textarea":wr(e,l.value,l.defaultValue);break e;case"select":t=l.value,t!=null&&ra(e,!!l.multiple,t,!1)}}}var qi=!1;function Br(e,t,l){if(qi)return e(t,l);qi=!0;try{var a=e(t);return a}finally{if(qi=!1,(fa!==null||da!==null)&&(Vu(),fa&&(t=fa,e=da,da=fa=null,Hr(t),e)))for(t=0;t<e.length;t++)Hr(e[t])}}function Fa(e,t){var l=e.stateNode;if(l===null)return null;var a=l[lt]||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(o(231,t,typeof l));return l}var Kt=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),ki=!1;if(Kt)try{var Ia={};Object.defineProperty(Ia,"passive",{get:function(){ki=!0}}),window.addEventListener("test",Ia,Ia),window.removeEventListener("test",Ia,Ia)}catch{ki=!1}var ml=null,Yi=null,uu=null;function Lr(){if(uu)return uu;var e,t=Yi,l=t.length,a,n="value"in ml?ml.value:ml.textContent,u=n.length;for(e=0;e<l&&t[e]===n[e];e++);var r=l-e;for(a=1;a<=r&&t[l-a]===n[u-a];a++);return uu=n.slice(e,1<a?1-a:void 0)}function iu(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 cu(){return!0}function qr(){return!1}function at(e){function t(l,a,n,u,r){this._reactName=l,this._targetInst=n,this.type=a,this.nativeEvent=u,this.target=r,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)?cu:qr,this.isPropagationStopped=qr,this}return b(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=cu)},stopPropagation:function(){var l=this.nativeEvent;l&&(l.stopPropagation?l.stopPropagation():typeof l.cancelBubble!="unknown"&&(l.cancelBubble=!0),this.isPropagationStopped=cu)},persist:function(){},isPersistent:cu}),t}var Yl={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},su=at(Yl),Pa=b({},Yl,{view:0,detail:0}),qm=at(Pa),Gi,Xi,en,ru=b({},Pa,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Vi,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!==en&&(en&&e.type==="mousemove"?(Gi=e.screenX-en.screenX,Xi=e.screenY-en.screenY):Xi=Gi=0,en=e),Gi)},movementY:function(e){return"movementY"in e?e.movementY:Xi}}),kr=at(ru),km=b({},ru,{dataTransfer:0}),Ym=at(km),Gm=b({},Pa,{relatedTarget:0}),Qi=at(Gm),Xm=b({},Yl,{animationName:0,elapsedTime:0,pseudoElement:0}),Qm=at(Xm),Vm=b({},Yl,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Zm=at(Vm),Km=b({},Yl,{data:0}),Yr=at(Km),Jm={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},$m={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"},Wm={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Fm(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=Wm[e])?!!t[e]:!1}function Vi(){return Fm}var Im=b({},Pa,{key:function(e){if(e.key){var t=Jm[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=iu(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?$m[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Vi,charCode:function(e){return e.type==="keypress"?iu(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?iu(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),Pm=at(Im),ev=b({},ru,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Gr=at(ev),tv=b({},Pa,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Vi}),lv=at(tv),av=b({},Yl,{propertyName:0,elapsedTime:0,pseudoElement:0}),nv=at(av),uv=b({},ru,{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}),iv=at(uv),cv=b({},Yl,{newState:0,oldState:0}),sv=at(cv),rv=[9,13,27,32],Zi=Kt&&"CompositionEvent"in window,tn=null;Kt&&"documentMode"in document&&(tn=document.documentMode);var ov=Kt&&"TextEvent"in window&&!tn,Xr=Kt&&(!Zi||tn&&8<tn&&11>=tn),Qr=" ",Vr=!1;function Zr(e,t){switch(e){case"keyup":return rv.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Kr(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var ha=!1;function fv(e,t){switch(e){case"compositionend":return Kr(t);case"keypress":return t.which!==32?null:(Vr=!0,Qr);case"textInput":return e=t.data,e===Qr&&Vr?null:e;default:return null}}function dv(e,t){if(ha)return e==="compositionend"||!Zi&&Zr(e,t)?(e=Lr(),uu=Yi=ml=null,ha=!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 Xr&&t.locale!=="ko"?null:t.data;default:return null}}var hv={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 Jr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!hv[e.type]:t==="textarea"}function $r(e,t,l,a){fa?da?da.push(a):da=[a]:fa=a,t=Iu(t,"onChange"),0<t.length&&(l=new su("onChange","change",null,l,a),e.push({event:l,listeners:t}))}var ln=null,an=null;function mv(e){Od(e,0)}function ou(e){var t=Wa(e);if(Cr(t))return e}function Wr(e,t){if(e==="change")return t}var Fr=!1;if(Kt){var Ki;if(Kt){var Ji="oninput"in document;if(!Ji){var Ir=document.createElement("div");Ir.setAttribute("oninput","return;"),Ji=typeof Ir.oninput=="function"}Ki=Ji}else Ki=!1;Fr=Ki&&(!document.documentMode||9<document.documentMode)}function Pr(){ln&&(ln.detachEvent("onpropertychange",eo),an=ln=null)}function eo(e){if(e.propertyName==="value"&&ou(an)){var t=[];$r(t,an,e,Li(e)),Br(mv,t)}}function vv(e,t,l){e==="focusin"?(Pr(),ln=t,an=l,ln.attachEvent("onpropertychange",eo)):e==="focusout"&&Pr()}function yv(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return ou(an)}function pv(e,t){if(e==="click")return ou(t)}function gv(e,t){if(e==="input"||e==="change")return ou(t)}function bv(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var ht=typeof Object.is=="function"?Object.is:bv;function nn(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(!_i.call(t,n)||!ht(e[n],t[n]))return!1}return!0}function to(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function lo(e,t){var l=to(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=to(l)}}function ao(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?ao(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function no(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=au(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=au(e.document)}return t}function $i(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 Sv=Kt&&"documentMode"in document&&11>=document.documentMode,ma=null,Wi=null,un=null,Fi=!1;function uo(e,t,l){var a=l.window===l?l.document:l.nodeType===9?l:l.ownerDocument;Fi||ma==null||ma!==au(a)||(a=ma,"selectionStart"in a&&$i(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}),un&&nn(un,a)||(un=a,a=Iu(Wi,"onSelect"),0<a.length&&(t=new su("onSelect","select",null,t,l),e.push({event:t,listeners:a}),t.target=ma)))}function Gl(e,t){var l={};return l[e.toLowerCase()]=t.toLowerCase(),l["Webkit"+e]="webkit"+t,l["Moz"+e]="moz"+t,l}var va={animationend:Gl("Animation","AnimationEnd"),animationiteration:Gl("Animation","AnimationIteration"),animationstart:Gl("Animation","AnimationStart"),transitionrun:Gl("Transition","TransitionRun"),transitionstart:Gl("Transition","TransitionStart"),transitioncancel:Gl("Transition","TransitionCancel"),transitionend:Gl("Transition","TransitionEnd")},Ii={},io={};Kt&&(io=document.createElement("div").style,"AnimationEvent"in window||(delete va.animationend.animation,delete va.animationiteration.animation,delete va.animationstart.animation),"TransitionEvent"in window||delete va.transitionend.transition);function Xl(e){if(Ii[e])return Ii[e];if(!va[e])return e;var t=va[e],l;for(l in t)if(t.hasOwnProperty(l)&&l in io)return Ii[e]=t[l];return e}var co=Xl("animationend"),so=Xl("animationiteration"),ro=Xl("animationstart"),xv=Xl("transitionrun"),jv=Xl("transitionstart"),Ev=Xl("transitioncancel"),oo=Xl("transitionend"),fo=new Map,Pi="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(" ");Pi.push("scrollEnd");function wt(e,t){fo.set(e,t),kl(t,[e])}var fu=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)},Et=[],ya=0,ec=0;function du(){for(var e=ya,t=ec=ya=0;t<e;){var l=Et[t];Et[t++]=null;var a=Et[t];Et[t++]=null;var n=Et[t];Et[t++]=null;var u=Et[t];if(Et[t++]=null,a!==null&&n!==null){var r=a.pending;r===null?n.next=n:(n.next=r.next,r.next=n),a.pending=n}u!==0&&ho(l,n,u)}}function hu(e,t,l,a){Et[ya++]=e,Et[ya++]=t,Et[ya++]=l,Et[ya++]=a,ec|=a,e.lanes|=a,e=e.alternate,e!==null&&(e.lanes|=a)}function tc(e,t,l,a){return hu(e,t,l,a),mu(e)}function Ql(e,t){return hu(e,null,null,t),mu(e)}function ho(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 mu(e){if(50<Rn)throw Rn=0,os=null,Error(o(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var pa={};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 lc(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 mo(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 vu(e,t,l,a,n,u){var r=0;if(a=e,typeof e=="function")lc(e)&&(r=1);else if(typeof e=="string")r=zy(e,l,W.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case ye:return e=mt(31,l,t,n),e.elementType=ye,e.lanes=u,e;case B:return Vl(l.children,n,u,t);case k:r=8,n|=24;break;case L:return e=mt(12,l,t,n|2),e.elementType=L,e.lanes=u,e;case Y:return e=mt(13,l,t,n),e.elementType=Y,e.lanes=u,e;case K:return e=mt(19,l,t,n),e.elementType=K,e.lanes=u,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case J:r=10;break e;case X:r=9;break e;case V:r=11;break e;case G:r=14;break e;case te:r=16,a=null;break e}r=29,l=Error(o(130,e===null?"null":typeof e,"")),a=null}return t=mt(r,l,t,n),t.elementType=e,t.type=a,t.lanes=u,t}function Vl(e,t,l,a){return e=mt(7,e,a,t),e.lanes=l,e}function ac(e,t,l){return e=mt(6,e,null,t),e.lanes=l,e}function vo(e){var t=mt(18,null,null,0);return t.stateNode=e,t}function nc(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 yo=new WeakMap;function Tt(e,t){if(typeof e=="object"&&e!==null){var l=yo.get(e);return l!==void 0?l:(t={value:e,source:t,stack:mr(t)},yo.set(e,t),t)}return{value:e,source:t,stack:mr(t)}}var ga=[],ba=0,yu=null,cn=0,_t=[],At=0,vl=null,Bt=1,Lt="";function $t(e,t){ga[ba++]=cn,ga[ba++]=yu,yu=e,cn=t}function po(e,t,l){_t[At++]=Bt,_t[At++]=Lt,_t[At++]=vl,vl=e;var a=Bt;e=Lt;var n=32-dt(a)-1;a&=~(1<<n),l+=1;var u=32-dt(t)+n;if(30<u){var r=n-n%5;u=(a&(1<<r)-1).toString(32),a>>=r,n-=r,Bt=1<<32-dt(t)+n|l<<n|a,Lt=u+e}else Bt=1<<u|l<<n|a,Lt=e}function uc(e){e.return!==null&&($t(e,1),po(e,1,0))}function ic(e){for(;e===yu;)yu=ga[--ba],ga[ba]=null,cn=ga[--ba],ga[ba]=null;for(;e===vl;)vl=_t[--At],_t[At]=null,Lt=_t[--At],_t[At]=null,Bt=_t[--At],_t[At]=null}function go(e,t){_t[At++]=Bt,_t[At++]=Lt,_t[At++]=vl,Bt=t.id,Lt=t.overflow,vl=e}var Qe=null,Ae=null,fe=!1,yl=null,Nt=!1,cc=Error(o(519));function pl(e){var t=Error(o(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw sn(Tt(t,e)),cc}function bo(e){var t=e.stateNode,l=e.type,a=e.memoizedProps;switch(t[Xe]=e,t[lt]=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<Cn.length;l++)se(Cn[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),Mr(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),Or(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||Bd(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=Zt),t=!0):t=!1,t||pl(e,!0)}function So(e){for(Qe=e.return;Qe;)switch(Qe.tag){case 5:case 31:case 13:Nt=!1;return;case 27:case 3:Nt=!0;return;default:Qe=Qe.return}}function Sa(e){if(e!==Qe)return!1;if(!fe)return So(e),fe=!0,!1;var t=e.tag,l;if((l=t!==3&&t!==27)&&((l=t===5)&&(l=e.type,l=!(l!=="form"&&l!=="button")||_s(e.type,e.memoizedProps)),l=!l),l&&Ae&&pl(e),So(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(o(317));Ae=Zd(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(o(317));Ae=Zd(e)}else t===27?(t=Ae,Ml(e.type)?(e=Cs,Cs=null,Ae=e):Ae=t):Ae=Qe?zt(e.stateNode.nextSibling):null;return!0}function Zl(){Ae=Qe=null,fe=!1}function sc(){var e=yl;return e!==null&&(ct===null?ct=e:ct.push.apply(ct,e),yl=null),e}function sn(e){yl===null?yl=[e]:yl.push(e)}var rc=E(null),Kl=null,Wt=null;function gl(e,t,l){Z(rc,t._currentValue),t._currentValue=l}function Ft(e){e._currentValue=rc.current,H(rc)}function oc(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 fc(e,t,l,a){var n=e.child;for(n!==null&&(n.return=e);n!==null;){var u=n.dependencies;if(u!==null){var r=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),oc(u.return,l,e),a||(r=null);break e}u=d.next}}else if(n.tag===18){if(r=n.return,r===null)throw Error(o(341));r.lanes|=l,u=r.alternate,u!==null&&(u.lanes|=l),oc(r,l,e),r=null}else r=n.child;if(r!==null)r.return=n;else for(r=n;r!==null;){if(r===e){r=null;break}if(n=r.sibling,n!==null){n.return=r.return,r=n;break}r=r.return}n=r}}function xa(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 r=n.alternate;if(r===null)throw Error(o(387));if(r=r.memoizedProps,r!==null){var d=n.type;ht(n.pendingProps.value,r.value)||(e!==null?e.push(d):e=[d])}}else if(n===ve.current){if(r=n.alternate,r===null)throw Error(o(387));r.memoizedState.memoizedState!==n.memoizedState.memoizedState&&(e!==null?e.push(Un):e=[Un])}n=n.return}e!==null&&fc(t,e,l,a),t.flags|=262144}function pu(e){for(e=e.firstContext;e!==null;){if(!ht(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function Jl(e){Kl=e,Wt=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function Ve(e){return xo(Kl,e)}function gu(e,t){return Kl===null&&Jl(e),xo(e,t)}function xo(e,t){var l=t._currentValue;if(t={context:t,memoizedValue:l,next:null},Wt===null){if(e===null)throw Error(o(308));Wt=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else Wt=Wt.next=t;return l}var _v=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,He={$$typeof:J,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function dc(){return{controller:new _v,data:new Map,refCount:0}}function rn(e){e.refCount--,e.refCount===0&&Av(Nv,function(){e.controller.abort()})}var on=null,hc=0,ja=0,Ea=null;function Rv(e,t){if(on===null){var l=on=[];hc=0,ja=ys(),Ea={status:"pending",value:void 0,then:function(a){l.push(a)}}}return hc++,t.then(jo,jo),t}function jo(){if(--hc===0&&on!==null){Ea!==null&&(Ea.status="fulfilled");var e=on;on=null,ja=0,Ea=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function zv(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 Eo=w.S;w.S=function(e,t){cd=ot(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&Rv(e,t),Eo!==null&&Eo(e,t)};var $l=E(null);function mc(){var e=$l.current;return e!==null?e:Te.pooledCache}function bu(e,t){t===null?Z($l,$l.current):Z($l,t.pool)}function To(){var e=mc();return e===null?null:{parent:He._currentValue,pool:e}}var Ta=Error(o(460)),vc=Error(o(474)),Su=Error(o(542)),xu={then:function(){}};function _o(e){return e=e.status,e==="fulfilled"||e==="rejected"}function Ao(e,t,l){switch(l=e[l],l===void 0?e.push(t):l!==t&&(t.then(Zt,Zt),t=l),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,Ro(e),e;default:if(typeof t.status=="string")t.then(Zt,Zt);else{if(e=Te,e!==null&&100<e.shellSuspendCounter)throw Error(o(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,Ro(e),e}throw Fl=t,Ta}}function Wl(e){try{var t=e._init;return t(e._payload)}catch(l){throw l!==null&&typeof l=="object"&&typeof l.then=="function"?(Fl=l,Ta):l}}var Fl=null;function No(){if(Fl===null)throw Error(o(459));var e=Fl;return Fl=null,e}function Ro(e){if(e===Ta||e===Su)throw Error(o(483))}var _a=null,fn=0;function ju(e){var t=fn;return fn+=1,_a===null&&(_a=[]),Ao(_a,e,t)}function dn(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function Eu(e,t){throw t.$$typeof===z?Error(o(525)):(e=Object.prototype.toString.call(t),Error(o(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function zo(e){function t(_,x){if(e){var A=_.deletions;A===null?(_.deletions=[x],_.flags|=16):A.push(x)}}function l(_,x){if(!e)return null;for(;x!==null;)t(_,x),x=x.sibling;return null}function a(_){for(var x=new Map;_!==null;)_.key!==null?x.set(_.key,_):x.set(_.index,_),_=_.sibling;return x}function n(_,x){return _=Jt(_,x),_.index=0,_.sibling=null,_}function u(_,x,A){return _.index=A,e?(A=_.alternate,A!==null?(A=A.index,A<x?(_.flags|=67108866,x):A):(_.flags|=67108866,x)):(_.flags|=1048576,x)}function r(_){return e&&_.alternate===null&&(_.flags|=67108866),_}function d(_,x,A,O){return x===null||x.tag!==6?(x=ac(A,_.mode,O),x.return=_,x):(x=n(x,A),x.return=_,x)}function p(_,x,A,O){var I=A.type;return I===B?M(_,x,A.props.children,O,A.key):x!==null&&(x.elementType===I||typeof I=="object"&&I!==null&&I.$$typeof===te&&Wl(I)===x.type)?(x=n(x,A.props),dn(x,A),x.return=_,x):(x=vu(A.type,A.key,A.props,null,_.mode,O),dn(x,A),x.return=_,x)}function N(_,x,A,O){return x===null||x.tag!==4||x.stateNode.containerInfo!==A.containerInfo||x.stateNode.implementation!==A.implementation?(x=nc(A,_.mode,O),x.return=_,x):(x=n(x,A.children||[]),x.return=_,x)}function M(_,x,A,O,I){return x===null||x.tag!==7?(x=Vl(A,_.mode,O,I),x.return=_,x):(x=n(x,A),x.return=_,x)}function U(_,x,A){if(typeof x=="string"&&x!==""||typeof x=="number"||typeof x=="bigint")return x=ac(""+x,_.mode,A),x.return=_,x;if(typeof x=="object"&&x!==null){switch(x.$$typeof){case q:return A=vu(x.type,x.key,x.props,null,_.mode,A),dn(A,x),A.return=_,A;case D:return x=nc(x,_.mode,A),x.return=_,x;case te:return x=Wl(x),U(_,x,A)}if(Ue(x)||$e(x))return x=Vl(x,_.mode,A,null),x.return=_,x;if(typeof x.then=="function")return U(_,ju(x),A);if(x.$$typeof===J)return U(_,gu(_,x),A);Eu(_,x)}return null}function R(_,x,A,O){var I=x!==null?x.key:null;if(typeof A=="string"&&A!==""||typeof A=="number"||typeof A=="bigint")return I!==null?null:d(_,x,""+A,O);if(typeof A=="object"&&A!==null){switch(A.$$typeof){case q:return A.key===I?p(_,x,A,O):null;case D:return A.key===I?N(_,x,A,O):null;case te:return A=Wl(A),R(_,x,A,O)}if(Ue(A)||$e(A))return I!==null?null:M(_,x,A,O,null);if(typeof A.then=="function")return R(_,x,ju(A),O);if(A.$$typeof===J)return R(_,x,gu(_,A),O);Eu(_,A)}return null}function C(_,x,A,O,I){if(typeof O=="string"&&O!==""||typeof O=="number"||typeof O=="bigint")return _=_.get(A)||null,d(x,_,""+O,I);if(typeof O=="object"&&O!==null){switch(O.$$typeof){case q:return _=_.get(O.key===null?A:O.key)||null,p(x,_,O,I);case D:return _=_.get(O.key===null?A:O.key)||null,N(x,_,O,I);case te:return O=Wl(O),C(_,x,A,O,I)}if(Ue(O)||$e(O))return _=_.get(A)||null,M(x,_,O,I,null);if(typeof O.then=="function")return C(_,x,A,ju(O),I);if(O.$$typeof===J)return C(_,x,A,gu(x,O),I);Eu(x,O)}return null}function $(_,x,A,O){for(var I=null,de=null,F=x,ue=x=0,oe=null;F!==null&&ue<A.length;ue++){F.index>ue?(oe=F,F=null):oe=F.sibling;var he=R(_,F,A[ue],O);if(he===null){F===null&&(F=oe);break}e&&F&&he.alternate===null&&t(_,F),x=u(he,x,ue),de===null?I=he:de.sibling=he,de=he,F=oe}if(ue===A.length)return l(_,F),fe&&$t(_,ue),I;if(F===null){for(;ue<A.length;ue++)F=U(_,A[ue],O),F!==null&&(x=u(F,x,ue),de===null?I=F:de.sibling=F,de=F);return fe&&$t(_,ue),I}for(F=a(F);ue<A.length;ue++)oe=C(F,_,ue,A[ue],O),oe!==null&&(e&&oe.alternate!==null&&F.delete(oe.key===null?ue:oe.key),x=u(oe,x,ue),de===null?I=oe:de.sibling=oe,de=oe);return e&&F.forEach(function(Hl){return t(_,Hl)}),fe&&$t(_,ue),I}function P(_,x,A,O){if(A==null)throw Error(o(151));for(var I=null,de=null,F=x,ue=x=0,oe=null,he=A.next();F!==null&&!he.done;ue++,he=A.next()){F.index>ue?(oe=F,F=null):oe=F.sibling;var Hl=R(_,F,he.value,O);if(Hl===null){F===null&&(F=oe);break}e&&F&&Hl.alternate===null&&t(_,F),x=u(Hl,x,ue),de===null?I=Hl:de.sibling=Hl,de=Hl,F=oe}if(he.done)return l(_,F),fe&&$t(_,ue),I;if(F===null){for(;!he.done;ue++,he=A.next())he=U(_,he.value,O),he!==null&&(x=u(he,x,ue),de===null?I=he:de.sibling=he,de=he);return fe&&$t(_,ue),I}for(F=a(F);!he.done;ue++,he=A.next())he=C(F,_,ue,he.value,O),he!==null&&(e&&he.alternate!==null&&F.delete(he.key===null?ue:he.key),x=u(he,x,ue),de===null?I=he:de.sibling=he,de=he);return e&&F.forEach(function(ky){return t(_,ky)}),fe&&$t(_,ue),I}function je(_,x,A,O){if(typeof A=="object"&&A!==null&&A.type===B&&A.key===null&&(A=A.props.children),typeof A=="object"&&A!==null){switch(A.$$typeof){case q:e:{for(var I=A.key;x!==null;){if(x.key===I){if(I=A.type,I===B){if(x.tag===7){l(_,x.sibling),O=n(x,A.props.children),O.return=_,_=O;break e}}else if(x.elementType===I||typeof I=="object"&&I!==null&&I.$$typeof===te&&Wl(I)===x.type){l(_,x.sibling),O=n(x,A.props),dn(O,A),O.return=_,_=O;break e}l(_,x);break}else t(_,x);x=x.sibling}A.type===B?(O=Vl(A.props.children,_.mode,O,A.key),O.return=_,_=O):(O=vu(A.type,A.key,A.props,null,_.mode,O),dn(O,A),O.return=_,_=O)}return r(_);case D:e:{for(I=A.key;x!==null;){if(x.key===I)if(x.tag===4&&x.stateNode.containerInfo===A.containerInfo&&x.stateNode.implementation===A.implementation){l(_,x.sibling),O=n(x,A.children||[]),O.return=_,_=O;break e}else{l(_,x);break}else t(_,x);x=x.sibling}O=nc(A,_.mode,O),O.return=_,_=O}return r(_);case te:return A=Wl(A),je(_,x,A,O)}if(Ue(A))return $(_,x,A,O);if($e(A)){if(I=$e(A),typeof I!="function")throw Error(o(150));return A=I.call(A),P(_,x,A,O)}if(typeof A.then=="function")return je(_,x,ju(A),O);if(A.$$typeof===J)return je(_,x,gu(_,A),O);Eu(_,A)}return typeof A=="string"&&A!==""||typeof A=="number"||typeof A=="bigint"?(A=""+A,x!==null&&x.tag===6?(l(_,x.sibling),O=n(x,A),O.return=_,_=O):(l(_,x),O=ac(A,_.mode,O),O.return=_,_=O),r(_)):l(_,x)}return function(_,x,A,O){try{fn=0;var I=je(_,x,A,O);return _a=null,I}catch(F){if(F===Ta||F===Su)throw F;var de=mt(29,F,null,_.mode);return de.lanes=O,de.return=_,de}finally{}}}var Il=zo(!0),Co=zo(!1),bl=!1;function yc(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function pc(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 xl(e,t,l){var a=e.updateQueue;if(a===null)return null;if(a=a.shared,(me&2)!==0){var n=a.pending;return n===null?t.next=t:(t.next=n.next,n.next=t),a.pending=t,t=mu(e),ho(e,null,l),t}return hu(e,a,t,l),mu(e)}function hn(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,Sr(e,l)}}function gc(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 r={lane:l.lane,tag:l.tag,payload:l.payload,callback:null,next:null};u===null?n=u=r:u=u.next=r,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 bc=!1;function mn(){if(bc){var e=Ea;if(e!==null)throw e}}function vn(e,t,l,a){bc=!1;var n=e.updateQueue;bl=!1;var u=n.firstBaseUpdate,r=n.lastBaseUpdate,d=n.shared.pending;if(d!==null){n.shared.pending=null;var p=d,N=p.next;p.next=null,r===null?u=N:r.next=N,r=p;var M=e.alternate;M!==null&&(M=M.updateQueue,d=M.lastBaseUpdate,d!==r&&(d===null?M.firstBaseUpdate=N:d.next=N,M.lastBaseUpdate=p))}if(u!==null){var U=n.baseState;r=0,M=N=p=null,d=u;do{var R=d.lane&-536870913,C=R!==d.lane;if(C?(re&R)===R:(a&R)===R){R!==0&&R===ja&&(bc=!0),M!==null&&(M=M.next={lane:0,tag:d.tag,payload:d.payload,callback:null,next:null});e:{var $=e,P=d;R=t;var je=l;switch(P.tag){case 1:if($=P.payload,typeof $=="function"){U=$.call(je,U,R);break e}U=$;break e;case 3:$.flags=$.flags&-65537|128;case 0:if($=P.payload,R=typeof $=="function"?$.call(je,U,R):$,R==null)break e;U=b({},U,R);break e;case 2:bl=!0}}R=d.callback,R!==null&&(e.flags|=64,C&&(e.flags|=8192),C=n.callbacks,C===null?n.callbacks=[R]:C.push(R))}else C={lane:R,tag:d.tag,payload:d.payload,callback:d.callback,next:null},M===null?(N=M=C,p=U):M=M.next=C,r|=R;if(d=d.next,d===null){if(d=n.shared.pending,d===null)break;C=d,d=C.next,C.next=null,n.lastBaseUpdate=C,n.shared.pending=null}}while(!0);M===null&&(p=U),n.baseState=p,n.firstBaseUpdate=N,n.lastBaseUpdate=M,u===null&&(n.shared.lanes=0),Al|=r,e.lanes=r,e.memoizedState=U}}function Mo(e,t){if(typeof e!="function")throw Error(o(191,e));e.call(t)}function wo(e,t){var l=e.callbacks;if(l!==null)for(e.callbacks=null,e=0;e<l.length;e++)Mo(l[e],t)}var Aa=E(null),Tu=E(0);function Oo(e,t){e=il,Z(Tu,e),Z(Aa,t),il=e|t.baseLanes}function Sc(){Z(Tu,il),Z(Aa,Aa.current)}function xc(){il=Tu.current,H(Aa),H(Tu)}var vt=E(null),Rt=null;function jl(e){var t=e.alternate;Z(Oe,Oe.current&1),Z(vt,e),Rt===null&&(t===null||Aa.current!==null||t.memoizedState!==null)&&(Rt=e)}function jc(e){Z(Oe,Oe.current),Z(vt,e),Rt===null&&(Rt=e)}function Do(e){e.tag===22?(Z(Oe,Oe.current),Z(vt,e),Rt===null&&(Rt=e)):El()}function El(){Z(Oe,Oe.current),Z(vt,vt.current)}function yt(e){H(vt),Rt===e&&(Rt=null),H(Oe)}var Oe=E(0);function _u(e){for(var t=e;t!==null;){if(t.tag===13){var l=t.memoizedState;if(l!==null&&(l=l.dehydrated,l===null||Rs(l)||zs(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,ne=null,Se=null,Be=null,Au=!1,Na=!1,Pl=!1,Nu=0,yn=0,Ra=null,Cv=0;function Ce(){throw Error(o(321))}function Ec(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 Tc(e,t,l,a,n,u){return It=u,ne=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,w.H=e===null||e.memoizedState===null?gf:qc,Pl=!1,u=l(a,n),Pl=!1,Na&&(u=Ho(t,l,a,n)),Uo(e),u}function Uo(e){w.H=bn;var t=Se!==null&&Se.next!==null;if(It=0,Be=Se=ne=null,Au=!1,yn=0,Ra=null,t)throw Error(o(300));e===null||Le||(e=e.dependencies,e!==null&&pu(e)&&(Le=!0))}function Ho(e,t,l,a){ne=e;var n=0;do{if(Na&&(Ra=null),yn=0,Na=!1,25<=n)throw Error(o(301));if(n+=1,Be=Se=null,e.updateQueue!=null){var u=e.updateQueue;u.lastEffect=null,u.events=null,u.stores=null,u.memoCache!=null&&(u.memoCache.index=0)}w.H=bf,u=t(l,a)}while(Na);return u}function Mv(){var e=w.H,t=e.useState()[0];return t=typeof t.then=="function"?pn(t):t,e=e.useState()[0],(Se!==null?Se.memoizedState:null)!==e&&(ne.flags|=1024),t}function _c(){var e=Nu!==0;return Nu=0,e}function Ac(e,t,l){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~l}function Nc(e){if(Au){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}Au=!1}It=0,Be=Se=ne=null,Na=!1,yn=Nu=0,Ra=null}function Pe(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Be===null?ne.memoizedState=Be=e:Be=Be.next=e,Be}function De(){if(Se===null){var e=ne.alternate;e=e!==null?e.memoizedState:null}else e=Se.next;var t=Be===null?ne.memoizedState:Be.next;if(t!==null)Be=t,Se=e;else{if(e===null)throw ne.alternate===null?Error(o(467)):Error(o(310));Se=e,e={memoizedState:Se.memoizedState,baseState:Se.baseState,baseQueue:Se.baseQueue,queue:Se.queue,next:null},Be===null?ne.memoizedState=Be=e:Be=Be.next=e}return Be}function Ru(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function pn(e){var t=yn;return yn+=1,Ra===null&&(Ra=[]),e=Ao(Ra,e,t),t=ne,(Be===null?t.memoizedState:Be.next)===null&&(t=t.alternate,w.H=t===null||t.memoizedState===null?gf:qc),e}function zu(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return pn(e);if(e.$$typeof===J)return Ve(e)}throw Error(o(438,String(e)))}function Rc(e){var t=null,l=ne.updateQueue;if(l!==null&&(t=l.memoCache),t==null){var a=ne.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=Ru(),ne.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]=tt;return t.index++,l}function Pt(e,t){return typeof t=="function"?t(e):t}function Cu(e){var t=De();return zc(t,Se,e)}function zc(e,t,l){var a=e.queue;if(a===null)throw Error(o(311));a.lastRenderedReducer=l;var n=e.baseQueue,u=a.pending;if(u!==null){if(n!==null){var r=n.next;n.next=u.next,u.next=r}t.baseQueue=n=u,a.pending=null}if(u=e.baseState,n===null)e.memoizedState=u;else{t=n.next;var d=r=null,p=null,N=t,M=!1;do{var U=N.lane&-536870913;if(U!==N.lane?(re&U)===U:(It&U)===U){var R=N.revertLane;if(R===0)p!==null&&(p=p.next={lane:0,revertLane:0,gesture:null,action:N.action,hasEagerState:N.hasEagerState,eagerState:N.eagerState,next:null}),U===ja&&(M=!0);else if((It&R)===R){N=N.next,R===ja&&(M=!0);continue}else U={lane:0,revertLane:N.revertLane,gesture:null,action:N.action,hasEagerState:N.hasEagerState,eagerState:N.eagerState,next:null},p===null?(d=p=U,r=u):p=p.next=U,ne.lanes|=R,Al|=R;U=N.action,Pl&&l(u,U),u=N.hasEagerState?N.eagerState:l(u,U)}else R={lane:U,revertLane:N.revertLane,gesture:N.gesture,action:N.action,hasEagerState:N.hasEagerState,eagerState:N.eagerState,next:null},p===null?(d=p=R,r=u):p=p.next=R,ne.lanes|=U,Al|=U;N=N.next}while(N!==null&&N!==t);if(p===null?r=u:p.next=d,!ht(u,e.memoizedState)&&(Le=!0,M&&(l=Ea,l!==null)))throw l;e.memoizedState=u,e.baseState=r,e.baseQueue=p,a.lastRenderedState=u}return n===null&&(a.lanes=0),[e.memoizedState,a.dispatch]}function Cc(e){var t=De(),l=t.queue;if(l===null)throw Error(o(311));l.lastRenderedReducer=e;var a=l.dispatch,n=l.pending,u=t.memoizedState;if(n!==null){l.pending=null;var r=n=n.next;do u=e(u,r.action),r=r.next;while(r!==n);ht(u,t.memoizedState)||(Le=!0),t.memoizedState=u,t.baseQueue===null&&(t.baseState=u),l.lastRenderedState=u}return[u,a]}function Bo(e,t,l){var a=ne,n=De(),u=fe;if(u){if(l===void 0)throw Error(o(407));l=l()}else l=t();var r=!ht((Se||n).memoizedState,l);if(r&&(n.memoizedState=l,Le=!0),n=n.queue,Oc(ko.bind(null,a,n,e),[e]),n.getSnapshot!==t||r||Be!==null&&Be.memoizedState.tag&1){if(a.flags|=2048,za(9,{destroy:void 0},qo.bind(null,a,n,l,t),null),Te===null)throw Error(o(349));u||(It&127)!==0||Lo(a,t,l)}return l}function Lo(e,t,l){e.flags|=16384,e={getSnapshot:t,value:l},t=ne.updateQueue,t===null?(t=Ru(),ne.updateQueue=t,t.stores=[e]):(l=t.stores,l===null?t.stores=[e]:l.push(e))}function qo(e,t,l,a){t.value=l,t.getSnapshot=a,Yo(t)&&Go(e)}function ko(e,t,l){return l(function(){Yo(t)&&Go(e)})}function Yo(e){var t=e.getSnapshot;e=e.value;try{var l=t();return!ht(e,l)}catch{return!0}}function Go(e){var t=Ql(e,2);t!==null&&st(t,e,2)}function Mc(e){var t=Pe();if(typeof e=="function"){var l=e;if(e=l(),Pl){dl(!0);try{l()}finally{dl(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Pt,lastRenderedState:e},t}function Xo(e,t,l,a){return e.baseState=l,zc(e,Se,typeof a=="function"?a:Pt)}function wv(e,t,l,a,n){if(Ou(e))throw Error(o(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(r){u.listeners.push(r)}};w.T!==null?l(!0):u.isTransition=!1,a(u),l=t.pending,l===null?(u.next=t.pending=u,Qo(t,u)):(u.next=l.next,t.pending=l.next=u)}}function Qo(e,t){var l=t.action,a=t.payload,n=e.state;if(t.isTransition){var u=w.T,r={};w.T=r;try{var d=l(n,a),p=w.S;p!==null&&p(r,d),Vo(e,t,d)}catch(N){wc(e,t,N)}finally{u!==null&&r.types!==null&&(u.types=r.types),w.T=u}}else try{u=l(n,a),Vo(e,t,u)}catch(N){wc(e,t,N)}}function Vo(e,t,l){l!==null&&typeof l=="object"&&typeof l.then=="function"?l.then(function(a){Zo(e,t,a)},function(a){return wc(e,t,a)}):Zo(e,t,l)}function Zo(e,t,l){t.status="fulfilled",t.value=l,Ko(t),e.state=l,t=e.pending,t!==null&&(l=t.next,l===t?e.pending=null:(l=l.next,t.next=l,Qo(e,l)))}function wc(e,t,l){var a=e.pending;if(e.pending=null,a!==null){a=a.next;do t.status="rejected",t.reason=l,Ko(t),t=t.next;while(t!==a)}e.action=null}function Ko(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function Jo(e,t){return t}function $o(e,t){if(fe){var l=Te.formState;if(l!==null){e:{var a=ne;if(fe){if(Ae){t:{for(var n=Ae,u=Nt;n.nodeType!==8;){if(!u){n=null;break t}if(n=zt(n.nextSibling),n===null){n=null;break t}}u=n.data,n=u==="F!"||u==="F"?n:null}if(n){Ae=zt(n.nextSibling),a=n.data==="F!";break e}}pl(a)}a=!1}a&&(t=l[0])}}return l=Pe(),l.memoizedState=l.baseState=t,a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Jo,lastRenderedState:t},l.queue=a,l=vf.bind(null,ne,a),a.dispatch=l,a=Mc(!1),u=Lc.bind(null,ne,!1,a.queue),a=Pe(),n={state:t,dispatch:null,action:e,pending:null},a.queue=n,l=wv.bind(null,ne,n,u,l),n.dispatch=l,a.memoizedState=e,[t,l,!1]}function Wo(e){var t=De();return Fo(t,Se,e)}function Fo(e,t,l){if(t=zc(e,t,Jo)[0],e=Cu(Pt)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var a=pn(t)}catch(r){throw r===Ta?Su:r}else a=t;t=De();var n=t.queue,u=n.dispatch;return l!==t.memoizedState&&(ne.flags|=2048,za(9,{destroy:void 0},Ov.bind(null,n,l),null)),[a,u,e]}function Ov(e,t){e.action=t}function Io(e){var t=De(),l=Se;if(l!==null)return Fo(t,l,e);De(),t=t.memoizedState,l=De();var a=l.queue.dispatch;return l.memoizedState=e,[t,a,!1]}function za(e,t,l,a){return e={tag:e,create:l,deps:a,inst:t,next:null},t=ne.updateQueue,t===null&&(t=Ru(),ne.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 Po(){return De().memoizedState}function Mu(e,t,l,a){var n=Pe();ne.flags|=e,n.memoizedState=za(1|t,{destroy:void 0},l,a===void 0?null:a)}function wu(e,t,l,a){var n=De();a=a===void 0?null:a;var u=n.memoizedState.inst;Se!==null&&a!==null&&Ec(a,Se.memoizedState.deps)?n.memoizedState=za(t,u,l,a):(ne.flags|=e,n.memoizedState=za(1|t,u,l,a))}function ef(e,t){Mu(8390656,8,e,t)}function Oc(e,t){wu(2048,8,e,t)}function Dv(e){ne.flags|=4;var t=ne.updateQueue;if(t===null)t=Ru(),ne.updateQueue=t,t.events=[e];else{var l=t.events;l===null?t.events=[e]:l.push(e)}}function tf(e){var t=De().memoizedState;return Dv({ref:t,nextImpl:e}),function(){if((me&2)!==0)throw Error(o(440));return t.impl.apply(void 0,arguments)}}function lf(e,t){return wu(4,2,e,t)}function af(e,t){return wu(4,4,e,t)}function nf(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 uf(e,t,l){l=l!=null?l.concat([e]):null,wu(4,4,nf.bind(null,t,e),l)}function Dc(){}function cf(e,t){var l=De();t=t===void 0?null:t;var a=l.memoizedState;return t!==null&&Ec(t,a[1])?a[0]:(l.memoizedState=[e,t],e)}function sf(e,t){var l=De();t=t===void 0?null:t;var a=l.memoizedState;if(t!==null&&Ec(t,a[1]))return a[0];if(a=e(),Pl){dl(!0);try{e()}finally{dl(!1)}}return l.memoizedState=[a,t],a}function Uc(e,t,l){return l===void 0||(It&1073741824)!==0&&(re&261930)===0?e.memoizedState=t:(e.memoizedState=l,e=rd(),ne.lanes|=e,Al|=e,l)}function rf(e,t,l,a){return ht(l,t)?l:Aa.current!==null?(e=Uc(e,l,a),ht(e,t)||(Le=!0),e):(It&42)===0||(It&1073741824)!==0&&(re&261930)===0?(Le=!0,e.memoizedState=l):(e=rd(),ne.lanes|=e,Al|=e,t)}function of(e,t,l,a,n){var u=Q.p;Q.p=u!==0&&8>u?u:8;var r=w.T,d={};w.T=d,Lc(e,!1,t,l);try{var p=n(),N=w.S;if(N!==null&&N(d,p),p!==null&&typeof p=="object"&&typeof p.then=="function"){var M=zv(p,a);gn(e,t,M,bt(e))}else gn(e,t,a,bt(e))}catch(U){gn(e,t,{then:function(){},status:"rejected",reason:U},bt())}finally{Q.p=u,r!==null&&d.types!==null&&(r.types=d.types),w.T=r}}function Uv(){}function Hc(e,t,l,a){if(e.tag!==5)throw Error(o(476));var n=ff(e).queue;of(e,n,t,ee,l===null?Uv:function(){return df(e),l(a)})}function ff(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:ee,baseState:ee,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Pt,lastRenderedState:ee},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 df(e){var t=ff(e);t.next===null&&(t=e.alternate.memoizedState),gn(e,t.next.queue,{},bt())}function Bc(){return Ve(Un)}function hf(){return De().memoizedState}function mf(){return De().memoizedState}function Hv(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var l=bt();e=Sl(l);var a=xl(t,e,l);a!==null&&(st(a,t,l),hn(a,t,l)),t={cache:dc()},e.payload=t;return}t=t.return}}function Bv(e,t,l){var a=bt();l={lane:a,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null},Ou(e)?yf(t,l):(l=tc(e,t,l,a),l!==null&&(st(l,e,a),pf(l,t,a)))}function vf(e,t,l){var a=bt();gn(e,t,l,a)}function gn(e,t,l,a){var n={lane:a,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null};if(Ou(e))yf(t,n);else{var u=e.alternate;if(e.lanes===0&&(u===null||u.lanes===0)&&(u=t.lastRenderedReducer,u!==null))try{var r=t.lastRenderedState,d=u(r,l);if(n.hasEagerState=!0,n.eagerState=d,ht(d,r))return hu(e,t,n,0),Te===null&&du(),!1}catch{}finally{}if(l=tc(e,t,n,a),l!==null)return st(l,e,a),pf(l,t,a),!0}return!1}function Lc(e,t,l,a){if(a={lane:2,revertLane:ys(),gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null},Ou(e)){if(t)throw Error(o(479))}else t=tc(e,l,a,2),t!==null&&st(t,e,2)}function Ou(e){var t=e.alternate;return e===ne||t!==null&&t===ne}function yf(e,t){Na=Au=!0;var l=e.pending;l===null?t.next=t:(t.next=l.next,l.next=t),e.pending=t}function pf(e,t,l){if((l&4194048)!==0){var a=t.lanes;a&=e.pendingLanes,l|=a,t.lanes=l,Sr(e,l)}}var bn={readContext:Ve,use:zu,useCallback:Ce,useContext:Ce,useEffect:Ce,useImperativeHandle:Ce,useLayoutEffect:Ce,useInsertionEffect:Ce,useMemo:Ce,useReducer:Ce,useRef:Ce,useState:Ce,useDebugValue:Ce,useDeferredValue:Ce,useTransition:Ce,useSyncExternalStore:Ce,useId:Ce,useHostTransitionStatus:Ce,useFormState:Ce,useActionState:Ce,useOptimistic:Ce,useMemoCache:Ce,useCacheRefresh:Ce};bn.useEffectEvent=Ce;var gf={readContext:Ve,use:zu,useCallback:function(e,t){return Pe().memoizedState=[e,t===void 0?null:t],e},useContext:Ve,useEffect:ef,useImperativeHandle:function(e,t,l){l=l!=null?l.concat([e]):null,Mu(4194308,4,nf.bind(null,t,e),l)},useLayoutEffect:function(e,t){return Mu(4194308,4,e,t)},useInsertionEffect:function(e,t){Mu(4,2,e,t)},useMemo:function(e,t){var l=Pe();t=t===void 0?null:t;var a=e();if(Pl){dl(!0);try{e()}finally{dl(!1)}}return l.memoizedState=[a,t],a},useReducer:function(e,t,l){var a=Pe();if(l!==void 0){var n=l(t);if(Pl){dl(!0);try{l(t)}finally{dl(!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=Bv.bind(null,ne,e),[a.memoizedState,e]},useRef:function(e){var t=Pe();return e={current:e},t.memoizedState=e},useState:function(e){e=Mc(e);var t=e.queue,l=vf.bind(null,ne,t);return t.dispatch=l,[e.memoizedState,l]},useDebugValue:Dc,useDeferredValue:function(e,t){var l=Pe();return Uc(l,e,t)},useTransition:function(){var e=Mc(!1);return e=of.bind(null,ne,e.queue,!0,!1),Pe().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,l){var a=ne,n=Pe();if(fe){if(l===void 0)throw Error(o(407));l=l()}else{if(l=t(),Te===null)throw Error(o(349));(re&127)!==0||Lo(a,t,l)}n.memoizedState=l;var u={value:l,getSnapshot:t};return n.queue=u,ef(ko.bind(null,a,u,e),[e]),a.flags|=2048,za(9,{destroy:void 0},qo.bind(null,a,u,l,t),null),l},useId:function(){var e=Pe(),t=Te.identifierPrefix;if(fe){var l=Lt,a=Bt;l=(a&~(1<<32-dt(a)-1)).toString(32)+l,t="_"+t+"R_"+l,l=Nu++,0<l&&(t+="H"+l.toString(32)),t+="_"}else l=Cv++,t="_"+t+"r_"+l.toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:Bc,useFormState:$o,useActionState:$o,useOptimistic:function(e){var t=Pe();t.memoizedState=t.baseState=e;var l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=l,t=Lc.bind(null,ne,!0,l),l.dispatch=t,[e,t]},useMemoCache:Rc,useCacheRefresh:function(){return Pe().memoizedState=Hv.bind(null,ne)},useEffectEvent:function(e){var t=Pe(),l={impl:e};return t.memoizedState=l,function(){if((me&2)!==0)throw Error(o(440));return l.impl.apply(void 0,arguments)}}},qc={readContext:Ve,use:zu,useCallback:cf,useContext:Ve,useEffect:Oc,useImperativeHandle:uf,useInsertionEffect:lf,useLayoutEffect:af,useMemo:sf,useReducer:Cu,useRef:Po,useState:function(){return Cu(Pt)},useDebugValue:Dc,useDeferredValue:function(e,t){var l=De();return rf(l,Se.memoizedState,e,t)},useTransition:function(){var e=Cu(Pt)[0],t=De().memoizedState;return[typeof e=="boolean"?e:pn(e),t]},useSyncExternalStore:Bo,useId:hf,useHostTransitionStatus:Bc,useFormState:Wo,useActionState:Wo,useOptimistic:function(e,t){var l=De();return Xo(l,Se,e,t)},useMemoCache:Rc,useCacheRefresh:mf};qc.useEffectEvent=tf;var bf={readContext:Ve,use:zu,useCallback:cf,useContext:Ve,useEffect:Oc,useImperativeHandle:uf,useInsertionEffect:lf,useLayoutEffect:af,useMemo:sf,useReducer:Cc,useRef:Po,useState:function(){return Cc(Pt)},useDebugValue:Dc,useDeferredValue:function(e,t){var l=De();return Se===null?Uc(l,e,t):rf(l,Se.memoizedState,e,t)},useTransition:function(){var e=Cc(Pt)[0],t=De().memoizedState;return[typeof e=="boolean"?e:pn(e),t]},useSyncExternalStore:Bo,useId:hf,useHostTransitionStatus:Bc,useFormState:Io,useActionState:Io,useOptimistic:function(e,t){var l=De();return Se!==null?Xo(l,Se,e,t):(l.baseState=e,[e,l.queue.dispatch])},useMemoCache:Rc,useCacheRefresh:mf};bf.useEffectEvent=tf;function kc(e,t,l,a){t=e.memoizedState,l=l(a,t),l=l==null?t:b({},t,l),e.memoizedState=l,e.lanes===0&&(e.updateQueue.baseState=l)}var Yc={enqueueSetState:function(e,t,l){e=e._reactInternals;var a=bt(),n=Sl(a);n.payload=t,l!=null&&(n.callback=l),t=xl(e,n,a),t!==null&&(st(t,e,a),hn(t,e,a))},enqueueReplaceState:function(e,t,l){e=e._reactInternals;var a=bt(),n=Sl(a);n.tag=1,n.payload=t,l!=null&&(n.callback=l),t=xl(e,n,a),t!==null&&(st(t,e,a),hn(t,e,a))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var l=bt(),a=Sl(l);a.tag=2,t!=null&&(a.callback=t),t=xl(e,a,l),t!==null&&(st(t,e,l),hn(t,e,l))}};function Sf(e,t,l,a,n,u,r){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(a,u,r):t.prototype&&t.prototype.isPureReactComponent?!nn(l,a)||!nn(n,u):!0}function xf(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&&Yc.enqueueReplaceState(t,t.state,null)}function ea(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=b({},l));for(var n in e)l[n]===void 0&&(l[n]=e[n])}return l}function jf(e){fu(e)}function Ef(e){console.error(e)}function Tf(e){fu(e)}function Du(e,t){try{var l=e.onUncaughtError;l(t.value,{componentStack:t.stack})}catch(a){setTimeout(function(){throw a})}}function _f(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 Gc(e,t,l){return l=Sl(l),l.tag=3,l.payload={element:null},l.callback=function(){Du(e,t)},l}function Af(e){return e=Sl(e),e.tag=3,e}function Nf(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(){_f(t,l,a)}}var r=l.stateNode;r!==null&&typeof r.componentDidCatch=="function"&&(e.callback=function(){_f(t,l,a),typeof n!="function"&&(Nl===null?Nl=new Set([this]):Nl.add(this));var d=a.stack;this.componentDidCatch(a.value,{componentStack:d!==null?d:""})})}function Lv(e,t,l,a,n){if(l.flags|=32768,a!==null&&typeof a=="object"&&typeof a.then=="function"){if(t=l.alternate,t!==null&&xa(t,l,n,!0),l=vt.current,l!==null){switch(l.tag){case 31:case 13:return Rt===null?Zu():l.alternate===null&&Me===0&&(Me=3),l.flags&=-257,l.flags|=65536,l.lanes=n,a===xu?l.flags|=16384:(t=l.updateQueue,t===null?l.updateQueue=new Set([a]):t.add(a),hs(e,a,n)),!1;case 22:return l.flags|=65536,a===xu?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)),hs(e,a,n)),!1}throw Error(o(435,l.tag))}return hs(e,a,n),Zu(),!1}if(fe)return t=vt.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=n,a!==cc&&(e=Error(o(422),{cause:a}),sn(Tt(e,l)))):(a!==cc&&(t=Error(o(423),{cause:a}),sn(Tt(t,l))),e=e.current.alternate,e.flags|=65536,n&=-n,e.lanes|=n,a=Tt(a,l),n=Gc(e.stateNode,a,n),gc(e,n),Me!==4&&(Me=2)),!1;var u=Error(o(520),{cause:a});if(u=Tt(u,l),Nn===null?Nn=[u]:Nn.push(u),Me!==4&&(Me=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=Gc(l.stateNode,a,e),gc(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"&&(Nl===null||!Nl.has(u))))return l.flags|=65536,n&=-n,l.lanes|=n,n=Af(n),Nf(n,e,l,a),gc(l,n),!1}l=l.return}while(l!==null);return!1}var Xc=Error(o(461)),Le=!1;function Ze(e,t,l,a){t.child=e===null?Co(t,null,l,a):Il(t,e.child,l,a)}function Rf(e,t,l,a,n){l=l.render;var u=t.ref;if("ref"in a){var r={};for(var d in a)d!=="ref"&&(r[d]=a[d])}else r=a;return Jl(t),a=Tc(e,t,l,r,u,n),d=_c(),e!==null&&!Le?(Ac(e,t,n),el(e,t,n)):(fe&&d&&uc(t),t.flags|=1,Ze(e,t,a,n),t.child)}function zf(e,t,l,a,n){if(e===null){var u=l.type;return typeof u=="function"&&!lc(u)&&u.defaultProps===void 0&&l.compare===null?(t.tag=15,t.type=u,Cf(e,t,u,a,n)):(e=vu(l.type,null,a,t,t.mode,n),e.ref=t.ref,e.return=t,t.child=e)}if(u=e.child,!Fc(e,n)){var r=u.memoizedProps;if(l=l.compare,l=l!==null?l:nn,l(r,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 Cf(e,t,l,a,n){if(e!==null){var u=e.memoizedProps;if(nn(u,a)&&e.ref===t.ref)if(Le=!1,t.pendingProps=a=u,Fc(e,n))(e.flags&131072)!==0&&(Le=!0);else return t.lanes=e.lanes,el(e,t,n)}return Qc(e,t,l,a,n)}function Mf(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 wf(e,t,u,l,a)}if((l&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&bu(t,u!==null?u.cachePool:null),u!==null?Oo(t,u):Sc(),Do(t);else return a=t.lanes=536870912,wf(e,t,u!==null?u.baseLanes|l:l,l,a)}else u!==null?(bu(t,u.cachePool),Oo(t,u),El(),t.memoizedState=null):(e!==null&&bu(t,null),Sc(),El());return Ze(e,t,n,l),t.child}function Sn(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function wf(e,t,l,a,n){var u=mc();return u=u===null?null:{parent:He._currentValue,pool:u},t.memoizedState={baseLanes:l,cachePool:u},e!==null&&bu(t,null),Sc(),Do(t),e!==null&&xa(e,t,a,!0),t.childLanes=n,null}function Uu(e,t){return t=Bu({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function Of(e,t,l){return Il(t,e.child,null,l),e=Uu(t,t.pendingProps),e.flags|=2,yt(t),t.memoizedState=null,e}function qv(e,t,l){var a=t.pendingProps,n=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(fe){if(a.mode==="hidden")return e=Uu(t,a),t.lanes=536870912,Sn(null,e);if(jc(t),(e=Ae)?(e=Vd(e,Nt),e=e!==null&&e.data==="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:vl!==null?{id:Bt,overflow:Lt}:null,retryLane:536870912,hydrationErrors:null},l=vo(e),l.return=t,t.child=l,Qe=t,Ae=null)):e=null,e===null)throw pl(t);return t.lanes=536870912,null}return Uu(t,a)}var u=e.memoizedState;if(u!==null){var r=u.dehydrated;if(jc(t),n)if(t.flags&256)t.flags&=-257,t=Of(e,t,l);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(o(558));else if(Le||xa(e,t,l,!1),n=(l&e.childLanes)!==0,Le||n){if(a=Te,a!==null&&(r=xr(a,l),r!==0&&r!==u.retryLane))throw u.retryLane=r,Ql(e,r),st(a,e,r),Xc;Zu(),t=Of(e,t,l)}else e=u.treeContext,Ae=zt(r.nextSibling),Qe=t,fe=!0,yl=null,Nt=!1,e!==null&&go(t,e),t=Uu(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 Hu(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(o(284));(e===null||e.ref!==l)&&(t.flags|=4194816)}}function Qc(e,t,l,a,n){return Jl(t),l=Tc(e,t,l,a,void 0,n),a=_c(),e!==null&&!Le?(Ac(e,t,n),el(e,t,n)):(fe&&a&&uc(t),t.flags|=1,Ze(e,t,l,n),t.child)}function Df(e,t,l,a,n,u){return Jl(t),t.updateQueue=null,l=Ho(t,a,l,n),Uo(e),a=_c(),e!==null&&!Le?(Ac(e,t,u),el(e,t,u)):(fe&&a&&uc(t),t.flags|=1,Ze(e,t,l,u),t.child)}function Uf(e,t,l,a,n){if(Jl(t),t.stateNode===null){var u=pa,r=l.contextType;typeof r=="object"&&r!==null&&(u=Ve(r)),u=new l(a,u),t.memoizedState=u.state!==null&&u.state!==void 0?u.state:null,u.updater=Yc,t.stateNode=u,u._reactInternals=t,u=t.stateNode,u.props=a,u.state=t.memoizedState,u.refs={},yc(t),r=l.contextType,u.context=typeof r=="object"&&r!==null?Ve(r):pa,u.state=t.memoizedState,r=l.getDerivedStateFromProps,typeof r=="function"&&(kc(t,l,r,a),u.state=t.memoizedState),typeof l.getDerivedStateFromProps=="function"||typeof u.getSnapshotBeforeUpdate=="function"||typeof u.UNSAFE_componentWillMount!="function"&&typeof u.componentWillMount!="function"||(r=u.state,typeof u.componentWillMount=="function"&&u.componentWillMount(),typeof u.UNSAFE_componentWillMount=="function"&&u.UNSAFE_componentWillMount(),r!==u.state&&Yc.enqueueReplaceState(u,u.state,null),vn(t,a,u,n),mn(),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=ea(l,d);u.props=p;var N=u.context,M=l.contextType;r=pa,typeof M=="object"&&M!==null&&(r=Ve(M));var U=l.getDerivedStateFromProps;M=typeof U=="function"||typeof u.getSnapshotBeforeUpdate=="function",d=t.pendingProps!==d,M||typeof u.UNSAFE_componentWillReceiveProps!="function"&&typeof u.componentWillReceiveProps!="function"||(d||N!==r)&&xf(t,u,a,r),bl=!1;var R=t.memoizedState;u.state=R,vn(t,a,u,n),mn(),N=t.memoizedState,d||R!==N||bl?(typeof U=="function"&&(kc(t,l,U,a),N=t.memoizedState),(p=bl||Sf(t,l,p,a,R,N,r))?(M||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=N),u.props=a,u.state=N,u.context=r,a=p):(typeof u.componentDidMount=="function"&&(t.flags|=4194308),a=!1)}else{u=t.stateNode,pc(e,t),r=t.memoizedProps,M=ea(l,r),u.props=M,U=t.pendingProps,R=u.context,N=l.contextType,p=pa,typeof N=="object"&&N!==null&&(p=Ve(N)),d=l.getDerivedStateFromProps,(N=typeof d=="function"||typeof u.getSnapshotBeforeUpdate=="function")||typeof u.UNSAFE_componentWillReceiveProps!="function"&&typeof u.componentWillReceiveProps!="function"||(r!==U||R!==p)&&xf(t,u,a,p),bl=!1,R=t.memoizedState,u.state=R,vn(t,a,u,n),mn();var C=t.memoizedState;r!==U||R!==C||bl||e!==null&&e.dependencies!==null&&pu(e.dependencies)?(typeof d=="function"&&(kc(t,l,d,a),C=t.memoizedState),(M=bl||Sf(t,l,M,a,R,C,p)||e!==null&&e.dependencies!==null&&pu(e.dependencies))?(N||typeof u.UNSAFE_componentWillUpdate!="function"&&typeof u.componentWillUpdate!="function"||(typeof u.componentWillUpdate=="function"&&u.componentWillUpdate(a,C,p),typeof u.UNSAFE_componentWillUpdate=="function"&&u.UNSAFE_componentWillUpdate(a,C,p)),typeof u.componentDidUpdate=="function"&&(t.flags|=4),typeof u.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof u.componentDidUpdate!="function"||r===e.memoizedProps&&R===e.memoizedState||(t.flags|=4),typeof u.getSnapshotBeforeUpdate!="function"||r===e.memoizedProps&&R===e.memoizedState||(t.flags|=1024),t.memoizedProps=a,t.memoizedState=C),u.props=a,u.state=C,u.context=p,a=M):(typeof u.componentDidUpdate!="function"||r===e.memoizedProps&&R===e.memoizedState||(t.flags|=4),typeof u.getSnapshotBeforeUpdate!="function"||r===e.memoizedProps&&R===e.memoizedState||(t.flags|=1024),a=!1)}return u=a,Hu(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=Il(t,e.child,null,n),t.child=Il(t,null,l,n)):Ze(e,t,l,n),t.memoizedState=u.state,e=t.child):e=el(e,t,n),e}function Hf(e,t,l,a){return Zl(),t.flags|=256,Ze(e,t,l,a),t.child}var Vc={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Zc(e){return{baseLanes:e,cachePool:To()}}function Kc(e,t,l){return e=e!==null?e.childLanes&~l:0,t&&(e|=gt),e}function Bf(e,t,l){var a=t.pendingProps,n=!1,u=(t.flags&128)!==0,r;if((r=u)||(r=e!==null&&e.memoizedState===null?!1:(Oe.current&2)!==0),r&&(n=!0,t.flags&=-129),r=(t.flags&32)!==0,t.flags&=-33,e===null){if(fe){if(n?jl(t):El(),(e=Ae)?(e=Vd(e,Nt),e=e!==null&&e.data!=="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:vl!==null?{id:Bt,overflow:Lt}:null,retryLane:536870912,hydrationErrors:null},l=vo(e),l.return=t,t.child=l,Qe=t,Ae=null)):e=null,e===null)throw pl(t);return zs(e)?t.lanes=32:t.lanes=536870912,null}var d=a.children;return a=a.fallback,n?(El(),n=t.mode,d=Bu({mode:"hidden",children:d},n),a=Vl(a,n,l,null),d.return=t,a.return=t,d.sibling=a,t.child=d,a=t.child,a.memoizedState=Zc(l),a.childLanes=Kc(e,r,l),t.memoizedState=Vc,Sn(null,a)):(jl(t),Jc(t,d))}var p=e.memoizedState;if(p!==null&&(d=p.dehydrated,d!==null)){if(u)t.flags&256?(jl(t),t.flags&=-257,t=$c(e,t,l)):t.memoizedState!==null?(El(),t.child=e.child,t.flags|=128,t=null):(El(),d=a.fallback,n=t.mode,a=Bu({mode:"visible",children:a.children},n),d=Vl(d,n,l,null),d.flags|=2,a.return=t,d.return=t,a.sibling=d,t.child=a,Il(t,e.child,null,l),a=t.child,a.memoizedState=Zc(l),a.childLanes=Kc(e,r,l),t.memoizedState=Vc,t=Sn(null,a));else if(jl(t),zs(d)){if(r=d.nextSibling&&d.nextSibling.dataset,r)var N=r.dgst;r=N,a=Error(o(419)),a.stack="",a.digest=r,sn({value:a,source:null,stack:null}),t=$c(e,t,l)}else if(Le||xa(e,t,l,!1),r=(l&e.childLanes)!==0,Le||r){if(r=Te,r!==null&&(a=xr(r,l),a!==0&&a!==p.retryLane))throw p.retryLane=a,Ql(e,a),st(r,e,a),Xc;Rs(d)||Zu(),t=$c(e,t,l)}else Rs(d)?(t.flags|=192,t.child=e.child,t=null):(e=p.treeContext,Ae=zt(d.nextSibling),Qe=t,fe=!0,yl=null,Nt=!1,e!==null&&go(t,e),t=Jc(t,a.children),t.flags|=4096);return t}return n?(El(),d=a.fallback,n=t.mode,p=e.child,N=p.sibling,a=Jt(p,{mode:"hidden",children:a.children}),a.subtreeFlags=p.subtreeFlags&65011712,N!==null?d=Jt(N,d):(d=Vl(d,n,l,null),d.flags|=2),d.return=t,a.return=t,a.sibling=d,t.child=a,Sn(null,a),a=t.child,d=e.child.memoizedState,d===null?d=Zc(l):(n=d.cachePool,n!==null?(p=He._currentValue,n=n.parent!==p?{parent:p,pool:p}:n):n=To(),d={baseLanes:d.baseLanes|l,cachePool:n}),a.memoizedState=d,a.childLanes=Kc(e,r,l),t.memoizedState=Vc,Sn(e.child,a)):(jl(t),l=e.child,e=l.sibling,l=Jt(l,{mode:"visible",children:a.children}),l.return=t,l.sibling=null,e!==null&&(r=t.deletions,r===null?(t.deletions=[e],t.flags|=16):r.push(e)),t.child=l,t.memoizedState=null,l)}function Jc(e,t){return t=Bu({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function Bu(e,t){return e=mt(22,e,null,t),e.lanes=0,e}function $c(e,t,l){return Il(t,e.child,null,l),e=Jc(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Lf(e,t,l){e.lanes|=t;var a=e.alternate;a!==null&&(a.lanes|=t),oc(e.return,t,l)}function Wc(e,t,l,a,n,u){var r=e.memoizedState;r===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:a,tail:l,tailMode:n,treeForkCount:u}:(r.isBackwards=t,r.rendering=null,r.renderingStartTime=0,r.last=a,r.tail=l,r.tailMode=n,r.treeForkCount=u)}function qf(e,t,l){var a=t.pendingProps,n=a.revealOrder,u=a.tail;a=a.children;var r=Oe.current,d=(r&2)!==0;if(d?(r=r&1|2,t.flags|=128):r&=1,Z(Oe,r),Ze(e,t,a,l),a=fe?cn:0,!d&&e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Lf(e,l,t);else if(e.tag===19)Lf(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&&_u(e)===null&&(n=l),l=l.sibling;l=n,l===null?(n=t.child,t.child=null):(n=l.sibling,l.sibling=null),Wc(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&&_u(e)===null){t.child=n;break}e=n.sibling,n.sibling=l,l=n,n=e}Wc(t,!0,l,null,u,a);break;case"together":Wc(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),Al|=t.lanes,(l&t.childLanes)===0)if(e!==null){if(xa(e,t,l,!1),(l&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(o(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 Fc(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&pu(e)))}function kv(e,t,l){switch(t.tag){case 3:Ie(t,t.stateNode.containerInfo),gl(t,He,e.memoizedState.cache),Zl();break;case 27:case 5:Va(t);break;case 4:Ie(t,t.stateNode.containerInfo);break;case 10:gl(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,jc(t),null;break;case 13:var a=t.memoizedState;if(a!==null)return a.dehydrated!==null?(jl(t),t.flags|=128,null):(l&t.child.childLanes)!==0?Bf(e,t,l):(jl(t),e=el(e,t,l),e!==null?e.sibling:null);jl(t);break;case 19:var n=(e.flags&128)!==0;if(a=(l&t.childLanes)!==0,a||(xa(e,t,l,!1),a=(l&t.childLanes)!==0),n){if(a)return qf(e,t,l);t.flags|=128}if(n=t.memoizedState,n!==null&&(n.rendering=null,n.tail=null,n.lastEffect=null),Z(Oe,Oe.current),a)break;return null;case 22:return t.lanes=0,Mf(e,t,l,t.pendingProps);case 24:gl(t,He,e.memoizedState.cache)}return el(e,t,l)}function kf(e,t,l){if(e!==null)if(e.memoizedProps!==t.pendingProps)Le=!0;else{if(!Fc(e,l)&&(t.flags&128)===0)return Le=!1,kv(e,t,l);Le=(e.flags&131072)!==0}else Le=!1,fe&&(t.flags&1048576)!==0&&po(t,cn,t.index);switch(t.lanes=0,t.tag){case 16:e:{var a=t.pendingProps;if(e=Wl(t.elementType),t.type=e,typeof e=="function")lc(e)?(a=ea(e,a),t.tag=1,t=Uf(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===V){t.tag=11,t=Rf(null,t,e,a,l);break e}else if(n===G){t.tag=14,t=zf(null,t,e,a,l);break e}}throw t=St(e)||e,Error(o(306,t,""))}}return t;case 0:return Qc(e,t,t.type,t.pendingProps,l);case 1:return a=t.type,n=ea(a,t.pendingProps),Uf(e,t,a,n,l);case 3:e:{if(Ie(t,t.stateNode.containerInfo),e===null)throw Error(o(387));a=t.pendingProps;var u=t.memoizedState;n=u.element,pc(e,t),vn(t,a,null,l);var r=t.memoizedState;if(a=r.cache,gl(t,He,a),a!==u.cache&&fc(t,[He],l,!0),mn(),a=r.element,u.isDehydrated)if(u={element:a,isDehydrated:!1,cache:r.cache},t.updateQueue.baseState=u,t.memoizedState=u,t.flags&256){t=Hf(e,t,a,l);break e}else if(a!==n){n=Tt(Error(o(424)),t),sn(n),t=Hf(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(Ae=zt(e.firstChild),Qe=t,fe=!0,yl=null,Nt=!0,l=Co(t,null,a,l),t.child=l;l;)l.flags=l.flags&-3|4096,l=l.sibling}else{if(Zl(),a===n){t=el(e,t,l);break e}Ze(e,t,a,l)}t=t.child}return t;case 26:return Hu(e,t),e===null?(l=Fd(t.type,null,t.pendingProps,null))?t.memoizedState=l:fe||(l=t.type,e=t.pendingProps,a=Pu(ie.current).createElement(l),a[Xe]=t,a[lt]=e,Ke(a,l,e),Ye(a),t.stateNode=a):t.memoizedState=Fd(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return Va(t),e===null&&fe&&(a=t.stateNode=Jd(t.type,t.pendingProps,ie.current),Qe=t,Nt=!0,n=Ae,Ml(t.type)?(Cs=n,Ae=zt(a.firstChild)):Ae=n),Ze(e,t,t.pendingProps.children,l),Hu(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&fe&&((n=a=Ae)&&(a=yy(a,t.type,t.pendingProps,Nt),a!==null?(t.stateNode=a,Qe=t,Ae=zt(a.firstChild),Nt=!1,n=!0):n=!1),n||pl(t)),Va(t),n=t.type,u=t.pendingProps,r=e!==null?e.memoizedProps:null,a=u.children,_s(n,u)?a=null:r!==null&&_s(n,r)&&(t.flags|=32),t.memoizedState!==null&&(n=Tc(e,t,Mv,null,null,l),Un._currentValue=n),Hu(e,t),Ze(e,t,a,l),t.child;case 6:return e===null&&fe&&((e=l=Ae)&&(l=py(l,t.pendingProps,Nt),l!==null?(t.stateNode=l,Qe=t,Ae=null,e=!0):e=!1),e||pl(t)),null;case 13:return Bf(e,t,l);case 4:return Ie(t,t.stateNode.containerInfo),a=t.pendingProps,e===null?t.child=Il(t,null,a,l):Ze(e,t,a,l),t.child;case 11:return Rf(e,t,t.type,t.pendingProps,l);case 7:return Ze(e,t,t.pendingProps,l),t.child;case 8:return Ze(e,t,t.pendingProps.children,l),t.child;case 12:return Ze(e,t,t.pendingProps.children,l),t.child;case 10:return a=t.pendingProps,gl(t,t.type,a.value),Ze(e,t,a.children,l),t.child;case 9:return n=t.type._context,a=t.pendingProps.children,Jl(t),n=Ve(n),a=a(n),t.flags|=1,Ze(e,t,a,l),t.child;case 14:return zf(e,t,t.type,t.pendingProps,l);case 15:return Cf(e,t,t.type,t.pendingProps,l);case 19:return qf(e,t,l);case 31:return qv(e,t,l);case 22:return Mf(e,t,l,t.pendingProps);case 24:return Jl(t),a=Ve(He),e===null?(n=mc(),n===null&&(n=Te,u=dc(),n.pooledCache=u,u.refCount++,u!==null&&(n.pooledCacheLanes|=l),n=u),t.memoizedState={parent:a,cache:n},yc(t),gl(t,He,n)):((e.lanes&l)!==0&&(pc(e,t),vn(t,null,null,l),mn()),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),gl(t,He,a)):(a=u.cache,gl(t,He,a),a!==n.cache&&fc(t,[He],l,!0))),Ze(e,t,t.pendingProps.children,l),t.child;case 29:throw t.pendingProps}throw Error(o(156,t.tag))}function tl(e){e.flags|=4}function Ic(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(hd())e.flags|=8192;else throw Fl=xu,vc}else e.flags&=-16777217}function Yf(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!lh(t))if(hd())e.flags|=8192;else throw Fl=xu,vc}function Lu(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?gr():536870912,e.lanes|=t,Oa|=t)}function xn(e,t){if(!fe)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 Yv(e,t,l){var a=t.pendingProps;switch(ic(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(He),we(),l.pendingContext&&(l.context=l.pendingContext,l.pendingContext=null),(e===null||e.child===null)&&(Sa(t)?tl(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,sc())),Ne(t),null;case 26:var n=t.type,u=t.memoizedState;return e===null?(tl(t),u!==null?(Ne(t),Yf(t,u)):(Ne(t),Ic(t,n,null,a,l))):u?u!==e.memoizedState?(tl(t),Ne(t),Yf(t,u)):(Ne(t),t.flags&=-16777217):(e=e.memoizedProps,e!==a&&tl(t),Ne(t),Ic(t,n,e,a,l)),null;case 27:if($n(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(o(166));return Ne(t),null}e=W.current,Sa(t)?bo(t):(e=Jd(n,a,l),t.stateNode=e,tl(t))}return Ne(t),null;case 5:if($n(t),n=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==a&&tl(t);else{if(!a){if(t.stateNode===null)throw Error(o(166));return Ne(t),null}if(u=W.current,Sa(t))bo(t);else{var r=Pu(ie.current);switch(u){case 1:u=r.createElementNS("http://www.w3.org/2000/svg",n);break;case 2:u=r.createElementNS("http://www.w3.org/1998/Math/MathML",n);break;default:switch(n){case"svg":u=r.createElementNS("http://www.w3.org/2000/svg",n);break;case"math":u=r.createElementNS("http://www.w3.org/1998/Math/MathML",n);break;case"script":u=r.createElement("div"),u.innerHTML="<script><\/script>",u=u.removeChild(u.firstChild);break;case"select":u=typeof a.is=="string"?r.createElement("select",{is:a.is}):r.createElement("select"),a.multiple?u.multiple=!0:a.size&&(u.size=a.size);break;default:u=typeof a.is=="string"?r.createElement(n,{is:a.is}):r.createElement(n)}}u[Xe]=t,u[lt]=a;e:for(r=t.child;r!==null;){if(r.tag===5||r.tag===6)u.appendChild(r.stateNode);else if(r.tag!==4&&r.tag!==27&&r.child!==null){r.child.return=r,r=r.child;continue}if(r===t)break e;for(;r.sibling===null;){if(r.return===null||r.return===t)break e;r=r.return}r.sibling.return=r.return,r=r.sibling}t.stateNode=u;e:switch(Ke(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),Ic(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(o(166));if(e=ie.current,Sa(t)){if(e=t.stateNode,l=t.memoizedProps,a=null,n=Qe,n!==null)switch(n.tag){case 27:case 5:a=n.memoizedProps}e[Xe]=t,e=!!(e.nodeValue===l||a!==null&&a.suppressHydrationWarning===!0||Bd(e.nodeValue,l)),e||pl(t,!0)}else e=Pu(e).createTextNode(a),e[Xe]=t,t.stateNode=e}return Ne(t),null;case 31:if(l=t.memoizedState,e===null||e.memoizedState!==null){if(a=Sa(t),l!==null){if(e===null){if(!a)throw Error(o(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(o(557));e[Xe]=t}else Zl(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Ne(t),e=!1}else l=sc(),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(o(558))}return Ne(t),null;case 13:if(a=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(n=Sa(t),a!==null&&a.dehydrated!==null){if(e===null){if(!n)throw Error(o(318));if(n=t.memoizedState,n=n!==null?n.dehydrated:null,!n)throw Error(o(317));n[Xe]=t}else Zl(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Ne(t),n=!1}else n=sc(),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),Lu(t,t.updateQueue),Ne(t),null);case 4:return we(),e===null&&Ss(t.stateNode.containerInfo),Ne(t),null;case 10:return Ft(t.type),Ne(t),null;case 19:if(H(Oe),a=t.memoizedState,a===null)return Ne(t),null;if(n=(t.flags&128)!==0,u=a.rendering,u===null)if(n)xn(a,!1);else{if(Me!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(u=_u(e),u!==null){for(t.flags|=128,xn(a,!1),e=u.updateQueue,t.updateQueue=e,Lu(t,e),t.subtreeFlags=0,e=l,l=t.child;l!==null;)mo(l,e),l=l.sibling;return Z(Oe,Oe.current&1|2),fe&&$t(t,a.treeForkCount),t.child}e=e.sibling}a.tail!==null&&ot()>Xu&&(t.flags|=128,n=!0,xn(a,!1),t.lanes=4194304)}else{if(!n)if(e=_u(u),e!==null){if(t.flags|=128,n=!0,e=e.updateQueue,t.updateQueue=e,Lu(t,e),xn(a,!0),a.tail===null&&a.tailMode==="hidden"&&!u.alternate&&!fe)return Ne(t),null}else 2*ot()-a.renderingStartTime>Xu&&l!==536870912&&(t.flags|=128,n=!0,xn(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=ot(),e.sibling=null,l=Oe.current,Z(Oe,n?l&1|2:l&1),fe&&$t(t,a.treeForkCount),e):(Ne(t),null);case 22:case 23:return yt(t),xc(),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&&Lu(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&&H($l),null;case 24:return l=null,e!==null&&(l=e.memoizedState.cache),t.memoizedState.cache!==l&&(t.flags|=2048),Ft(He),Ne(t),null;case 25:return null;case 30:return null}throw Error(o(156,t.tag))}function Gv(e,t){switch(ic(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Ft(He),we(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return $n(t),null;case 31:if(t.memoizedState!==null){if(yt(t),t.alternate===null)throw Error(o(340));Zl()}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(o(340));Zl()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return H(Oe),null;case 4:return we(),null;case 10:return Ft(t.type),null;case 22:case 23:return yt(t),xc(),e!==null&&H($l),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return Ft(He),null;case 25:return null;default:return null}}function Gf(e,t){switch(ic(t),t.tag){case 3:Ft(He),we();break;case 26:case 27:case 5:$n(t);break;case 4:we();break;case 31:t.memoizedState!==null&&yt(t);break;case 13:yt(t);break;case 19:H(Oe);break;case 10:Ft(t.type);break;case 22:case 23:yt(t),xc(),e!==null&&H($l);break;case 24:Ft(He)}}function jn(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,r=l.inst;a=u(),r.destroy=a}l=l.next}while(l!==n)}}catch(d){ge(t,t.return,d)}}function Tl(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 r=a.inst,d=r.destroy;if(d!==void 0){r.destroy=void 0,n=t;var p=l,N=d;try{N()}catch(M){ge(n,p,M)}}}a=a.next}while(a!==u)}}catch(M){ge(t,t.return,M)}}function Xf(e){var t=e.updateQueue;if(t!==null){var l=e.stateNode;try{wo(t,l)}catch(a){ge(e,e.return,a)}}}function Qf(e,t,l){l.props=ea(e.type,e.memoizedProps),l.state=e.memoizedState;try{l.componentWillUnmount()}catch(a){ge(e,t,a)}}function En(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){ge(e,t,n)}}function qt(e,t){var l=e.ref,a=e.refCleanup;if(l!==null)if(typeof a=="function")try{a()}catch(n){ge(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){ge(e,t,n)}else l.current=null}function Vf(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){ge(e,e.return,n)}}function Pc(e,t,l){try{var a=e.stateNode;oy(a,e.type,l,t),a[lt]=t}catch(n){ge(e,e.return,n)}}function Zf(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&Ml(e.type)||e.tag===4}function es(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Zf(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&&Ml(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 ts(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=Zt));else if(a!==4&&(a===27&&Ml(e.type)&&(l=e.stateNode,t=null),e=e.child,e!==null))for(ts(e,t,l),e=e.sibling;e!==null;)ts(e,t,l),e=e.sibling}function qu(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&&Ml(e.type)&&(l=e.stateNode),e=e.child,e!==null))for(qu(e,t,l),e=e.sibling;e!==null;)qu(e,t,l),e=e.sibling}function Kf(e){var t=e.stateNode,l=e.memoizedProps;try{for(var a=e.type,n=t.attributes;n.length;)t.removeAttributeNode(n[0]);Ke(t,a,l),t[Xe]=e,t[lt]=l}catch(u){ge(e,e.return,u)}}var ll=!1,qe=!1,ls=!1,Jf=typeof WeakSet=="function"?WeakSet:Set,Ge=null;function Xv(e,t){if(e=e.containerInfo,Es=ii,e=no(e),$i(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 r=0,d=-1,p=-1,N=0,M=0,U=e,R=null;t:for(;;){for(var C;U!==l||n!==0&&U.nodeType!==3||(d=r+n),U!==u||a!==0&&U.nodeType!==3||(p=r+a),U.nodeType===3&&(r+=U.nodeValue.length),(C=U.firstChild)!==null;)R=U,U=C;for(;;){if(U===e)break t;if(R===l&&++N===n&&(d=r),R===u&&++M===a&&(p=r),(C=U.nextSibling)!==null)break;U=R,R=U.parentNode}U=C}l=d===-1||p===-1?null:{start:d,end:p}}else l=null}l=l||{start:0,end:0}}else l=null;for(Ts={focusedElem:e,selectionRange:l},ii=!1,Ge=t;Ge!==null;)if(t=Ge,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,Ge=e;else for(;Ge!==null;){switch(t=Ge,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 $=ea(l.type,n);e=a.getSnapshotBeforeUpdate($,u),a.__reactInternalSnapshotBeforeUpdate=e}catch(P){ge(l,l.return,P)}}break;case 3:if((e&1024)!==0){if(e=t.stateNode.containerInfo,l=e.nodeType,l===9)Ns(e);else if(l===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":Ns(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(o(163))}if(e=t.sibling,e!==null){e.return=t.return,Ge=e;break}Ge=t.return}}function $f(e,t,l){var a=l.flags;switch(l.tag){case 0:case 11:case 15:nl(e,l),a&4&&jn(5,l);break;case 1:if(nl(e,l),a&4)if(e=l.stateNode,t===null)try{e.componentDidMount()}catch(r){ge(l,l.return,r)}else{var n=ea(l.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(n,t,e.__reactInternalSnapshotBeforeUpdate)}catch(r){ge(l,l.return,r)}}a&64&&Xf(l),a&512&&En(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{wo(e,t)}catch(r){ge(l,l.return,r)}}break;case 27:t===null&&a&4&&Kf(l);case 26:case 5:nl(e,l),t===null&&a&4&&Vf(l),a&512&&En(l,l.return);break;case 12:nl(e,l);break;case 31:nl(e,l),a&4&&If(e,l);break;case 13:nl(e,l),a&4&&Pf(e,l),a&64&&(e=l.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(l=Iv.bind(null,l),gy(e,l))));break;case 22:if(a=l.memoizedState!==null||ll,!a){t=t!==null&&t.memoizedState!==null||qe,n=ll;var u=qe;ll=a,(qe=t)&&!u?ul(e,l,(l.subtreeFlags&8772)!==0):nl(e,l),ll=n,qe=u}break;case 30:break;default:nl(e,l)}}function Wf(e){var t=e.alternate;t!==null&&(e.alternate=null,Wf(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&wi(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 Re=null,nt=!1;function al(e,t,l){for(l=l.child;l!==null;)Ff(e,t,l),l=l.sibling}function Ff(e,t,l){if(ft&&typeof ft.onCommitFiberUnmount=="function")try{ft.onCommitFiberUnmount(Za,l)}catch{}switch(l.tag){case 26:qe||qt(l,t),al(e,t,l),l.memoizedState?l.memoizedState.count--:l.stateNode&&(l=l.stateNode,l.parentNode.removeChild(l));break;case 27:qe||qt(l,t);var a=Re,n=nt;Ml(l.type)&&(Re=l.stateNode,nt=!1),al(e,t,l),wn(l.stateNode),Re=a,nt=n;break;case 5:qe||qt(l,t);case 6:if(a=Re,n=nt,Re=null,al(e,t,l),Re=a,nt=n,Re!==null)if(nt)try{(Re.nodeType===9?Re.body:Re.nodeName==="HTML"?Re.ownerDocument.body:Re).removeChild(l.stateNode)}catch(u){ge(l,t,u)}else try{Re.removeChild(l.stateNode)}catch(u){ge(l,t,u)}break;case 18:Re!==null&&(nt?(e=Re,Xd(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,l.stateNode),Ya(e)):Xd(Re,l.stateNode));break;case 4:a=Re,n=nt,Re=l.stateNode.containerInfo,nt=!0,al(e,t,l),Re=a,nt=n;break;case 0:case 11:case 14:case 15:Tl(2,l,t),qe||Tl(4,l,t),al(e,t,l);break;case 1:qe||(qt(l,t),a=l.stateNode,typeof a.componentWillUnmount=="function"&&Qf(l,t,a)),al(e,t,l);break;case 21:al(e,t,l);break;case 22:qe=(a=qe)||l.memoizedState!==null,al(e,t,l),qe=a;break;default:al(e,t,l)}}function If(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{Ya(e)}catch(l){ge(t,t.return,l)}}}function Pf(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{Ya(e)}catch(l){ge(t,t.return,l)}}function Qv(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new Jf),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new Jf),t;default:throw Error(o(435,e.tag))}}function ku(e,t){var l=Qv(e);t.forEach(function(a){if(!l.has(a)){l.add(a);var n=Pv.bind(null,e,a);a.then(n,n)}})}function ut(e,t){var l=t.deletions;if(l!==null)for(var a=0;a<l.length;a++){var n=l[a],u=e,r=t,d=r;e:for(;d!==null;){switch(d.tag){case 27:if(Ml(d.type)){Re=d.stateNode,nt=!1;break e}break;case 5:Re=d.stateNode,nt=!1;break e;case 3:case 4:Re=d.stateNode.containerInfo,nt=!0;break e}d=d.return}if(Re===null)throw Error(o(160));Ff(u,r,n),Re=null,nt=!1,u=n.alternate,u!==null&&(u.return=null),n.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)ed(t,e),t=t.sibling}var Ot=null;function ed(e,t){var l=e.alternate,a=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:ut(t,e),it(e),a&4&&(Tl(3,e,e.return),jn(3,e),Tl(5,e,e.return));break;case 1:ut(t,e),it(e),a&512&&(qe||l===null||qt(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=Ot;if(ut(t,e),it(e),a&512&&(qe||l===null||qt(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[$a]||u[Xe]||u.namespaceURI==="http://www.w3.org/2000/svg"||u.hasAttribute("itemprop"))&&(u=n.createElement(a),n.head.insertBefore(u,n.querySelector("head > title"))),Ke(u,a,l),u[Xe]=e,Ye(u),a=u;break e;case"link":var r=eh("link","href",n).get(a+(l.href||""));if(r){for(var d=0;d<r.length;d++)if(u=r[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)){r.splice(d,1);break t}}u=n.createElement(a),Ke(u,a,l),n.head.appendChild(u);break;case"meta":if(r=eh("meta","content",n).get(a+(l.content||""))){for(d=0;d<r.length;d++)if(u=r[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)){r.splice(d,1);break t}}u=n.createElement(a),Ke(u,a,l),n.head.appendChild(u);break;default:throw Error(o(468,a))}u[Xe]=e,Ye(u),a=u}e.stateNode=a}else th(n,e.type,e.stateNode);else e.stateNode=Pd(n,a,e.memoizedProps);else u!==a?(u===null?l.stateNode!==null&&(l=l.stateNode,l.parentNode.removeChild(l)):u.count--,a===null?th(n,e.type,e.stateNode):Pd(n,a,e.memoizedProps)):a===null&&e.stateNode!==null&&Pc(e,e.memoizedProps,l.memoizedProps)}break;case 27:ut(t,e),it(e),a&512&&(qe||l===null||qt(l,l.return)),l!==null&&a&4&&Pc(e,e.memoizedProps,l.memoizedProps);break;case 5:if(ut(t,e),it(e),a&512&&(qe||l===null||qt(l,l.return)),e.flags&32){n=e.stateNode;try{oa(n,"")}catch($){ge(e,e.return,$)}}a&4&&e.stateNode!=null&&(n=e.memoizedProps,Pc(e,n,l!==null?l.memoizedProps:n)),a&1024&&(ls=!0);break;case 6:if(ut(t,e),it(e),a&4){if(e.stateNode===null)throw Error(o(162));a=e.memoizedProps,l=e.stateNode;try{l.nodeValue=a}catch($){ge(e,e.return,$)}}break;case 3:if(li=null,n=Ot,Ot=ei(t.containerInfo),ut(t,e),Ot=n,it(e),a&4&&l!==null&&l.memoizedState.isDehydrated)try{Ya(t.containerInfo)}catch($){ge(e,e.return,$)}ls&&(ls=!1,td(e));break;case 4:a=Ot,Ot=ei(e.stateNode.containerInfo),ut(t,e),it(e),Ot=a;break;case 12:ut(t,e),it(e);break;case 31:ut(t,e),it(e),a&4&&(a=e.updateQueue,a!==null&&(e.updateQueue=null,ku(e,a)));break;case 13:ut(t,e),it(e),e.child.flags&8192&&e.memoizedState!==null!=(l!==null&&l.memoizedState!==null)&&(Gu=ot()),a&4&&(a=e.updateQueue,a!==null&&(e.updateQueue=null,ku(e,a)));break;case 22:n=e.memoizedState!==null;var p=l!==null&&l.memoizedState!==null,N=ll,M=qe;if(ll=N||n,qe=M||p,ut(t,e),qe=M,ll=N,it(e),a&8192)e:for(t=e.stateNode,t._visibility=n?t._visibility&-2:t._visibility|1,n&&(l===null||p||ll||qe||ta(e)),l=null,t=e;;){if(t.tag===5||t.tag===26){if(l===null){p=l=t;try{if(u=p.stateNode,n)r=u.style,typeof r.setProperty=="function"?r.setProperty("display","none","important"):r.display="none";else{d=p.stateNode;var U=p.memoizedProps.style,R=U!=null&&U.hasOwnProperty("display")?U.display:null;d.style.display=R==null||typeof R=="boolean"?"":(""+R).trim()}}catch($){ge(p,p.return,$)}}}else if(t.tag===6){if(l===null){p=t;try{p.stateNode.nodeValue=n?"":p.memoizedProps}catch($){ge(p,p.return,$)}}}else if(t.tag===18){if(l===null){p=t;try{var C=p.stateNode;n?Qd(C,!0):Qd(p.stateNode,!1)}catch($){ge(p,p.return,$)}}}else if((t.tag!==22&&t.tag!==23||t.memoizedState===null||t===e)&&t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break e;for(;t.sibling===null;){if(t.return===null||t.return===e)break e;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,ku(e,l))));break;case 19:ut(t,e),it(e),a&4&&(a=e.updateQueue,a!==null&&(e.updateQueue=null,ku(e,a)));break;case 30:break;case 21:break;default:ut(t,e),it(e)}}function it(e){var t=e.flags;if(t&2){try{for(var l,a=e.return;a!==null;){if(Zf(a)){l=a;break}a=a.return}if(l==null)throw Error(o(160));switch(l.tag){case 27:var n=l.stateNode,u=es(e);qu(e,u,n);break;case 5:var r=l.stateNode;l.flags&32&&(oa(r,""),l.flags&=-33);var d=es(e);qu(e,d,r);break;case 3:case 4:var p=l.stateNode.containerInfo,N=es(e);ts(e,N,p);break;default:throw Error(o(161))}}catch(M){ge(e,e.return,M)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function td(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;td(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;)$f(e,t.alternate,t),t=t.sibling}function ta(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:Tl(4,t,t.return),ta(t);break;case 1:qt(t,t.return);var l=t.stateNode;typeof l.componentWillUnmount=="function"&&Qf(t,t.return,l),ta(t);break;case 27:wn(t.stateNode);case 26:case 5:qt(t,t.return),ta(t);break;case 22:t.memoizedState===null&&ta(t);break;case 30:ta(t);break;default:ta(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,r=u.flags;switch(u.tag){case 0:case 11:case 15:ul(n,u,l),jn(4,u);break;case 1:if(ul(n,u,l),a=u,n=a.stateNode,typeof n.componentDidMount=="function")try{n.componentDidMount()}catch(N){ge(a,a.return,N)}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++)Mo(p[n],d)}catch(N){ge(a,a.return,N)}}l&&r&64&&Xf(u),En(u,u.return);break;case 27:Kf(u);case 26:case 5:ul(n,u,l),l&&a===null&&r&4&&Vf(u),En(u,u.return);break;case 12:ul(n,u,l);break;case 31:ul(n,u,l),l&&r&4&&If(n,u);break;case 13:ul(n,u,l),l&&r&4&&Pf(n,u);break;case 22:u.memoizedState===null&&ul(n,u,l),En(u,u.return);break;case 30:break;default:ul(n,u,l)}t=t.sibling}}function as(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&&rn(l))}function ns(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&rn(e))}function Dt(e,t,l,a){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)ld(e,t,l,a),t=t.sibling}function ld(e,t,l,a){var n=t.flags;switch(t.tag){case 0:case 11:case 15:Dt(e,t,l,a),n&2048&&jn(9,t);break;case 1:Dt(e,t,l,a);break;case 3:Dt(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&&rn(e)));break;case 12:if(n&2048){Dt(e,t,l,a),e=t.stateNode;try{var u=t.memoizedProps,r=u.id,d=u.onPostCommit;typeof d=="function"&&d(r,t.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(p){ge(t,t.return,p)}}else Dt(e,t,l,a);break;case 31:Dt(e,t,l,a);break;case 13:Dt(e,t,l,a);break;case 23:break;case 22:u=t.stateNode,r=t.alternate,t.memoizedState!==null?u._visibility&2?Dt(e,t,l,a):Tn(e,t):u._visibility&2?Dt(e,t,l,a):(u._visibility|=2,Ca(e,t,l,a,(t.subtreeFlags&10256)!==0||!1)),n&2048&&as(r,t);break;case 24:Dt(e,t,l,a),n&2048&&ns(t.alternate,t);break;default:Dt(e,t,l,a)}}function Ca(e,t,l,a,n){for(n=n&&((t.subtreeFlags&10256)!==0||!1),t=t.child;t!==null;){var u=e,r=t,d=l,p=a,N=r.flags;switch(r.tag){case 0:case 11:case 15:Ca(u,r,d,p,n),jn(8,r);break;case 23:break;case 22:var M=r.stateNode;r.memoizedState!==null?M._visibility&2?Ca(u,r,d,p,n):Tn(u,r):(M._visibility|=2,Ca(u,r,d,p,n)),n&&N&2048&&as(r.alternate,r);break;case 24:Ca(u,r,d,p,n),n&&N&2048&&ns(r.alternate,r);break;default:Ca(u,r,d,p,n)}t=t.sibling}}function Tn(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:Tn(l,a),n&2048&&as(a.alternate,a);break;case 24:Tn(l,a),n&2048&&ns(a.alternate,a);break;default:Tn(l,a)}t=t.sibling}}var _n=8192;function Ma(e,t,l){if(e.subtreeFlags&_n)for(e=e.child;e!==null;)ad(e,t,l),e=e.sibling}function ad(e,t,l){switch(e.tag){case 26:Ma(e,t,l),e.flags&_n&&e.memoizedState!==null&&Cy(l,Ot,e.memoizedState,e.memoizedProps);break;case 5:Ma(e,t,l);break;case 3:case 4:var a=Ot;Ot=ei(e.stateNode.containerInfo),Ma(e,t,l),Ot=a;break;case 22:e.memoizedState===null&&(a=e.alternate,a!==null&&a.memoizedState!==null?(a=_n,_n=16777216,Ma(e,t,l),_n=a):Ma(e,t,l));break;default:Ma(e,t,l)}}function nd(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 An(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];Ge=a,id(a,e)}nd(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)ud(e),e=e.sibling}function ud(e){switch(e.tag){case 0:case 11:case 15:An(e),e.flags&2048&&Tl(9,e,e.return);break;case 3:An(e);break;case 12:An(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,Yu(e)):An(e);break;default:An(e)}}function Yu(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];Ge=a,id(a,e)}nd(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:Tl(8,t,t.return),Yu(t);break;case 22:l=t.stateNode,l._visibility&2&&(l._visibility&=-3,Yu(t));break;default:Yu(t)}e=e.sibling}}function id(e,t){for(;Ge!==null;){var l=Ge;switch(l.tag){case 0:case 11:case 15:Tl(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:rn(l.memoizedState.cache)}if(a=l.child,a!==null)a.return=l,Ge=a;else e:for(l=e;Ge!==null;){a=Ge;var n=a.sibling,u=a.return;if(Wf(a),a===l){Ge=null;break e}if(n!==null){n.return=u,Ge=n;break e}Ge=u}}}var Vv={getCacheForType:function(e){var t=Ve(He),l=t.data.get(e);return l===void 0&&(l=e(),t.data.set(e,l)),l},cacheSignal:function(){return Ve(He).controller.signal}},Zv=typeof WeakMap=="function"?WeakMap:Map,me=0,Te=null,ce=null,re=0,pe=0,pt=null,_l=!1,wa=!1,us=!1,il=0,Me=0,Al=0,la=0,is=0,gt=0,Oa=0,Nn=null,ct=null,cs=!1,Gu=0,cd=0,Xu=1/0,Qu=null,Nl=null,ke=0,Rl=null,Da=null,cl=0,ss=0,rs=null,sd=null,Rn=0,os=null;function bt(){return(me&2)!==0&&re!==0?re&-re:w.T!==null?ys():jr()}function rd(){if(gt===0)if((re&536870912)===0||fe){var e=In;In<<=1,(In&3932160)===0&&(In=262144),gt=e}else gt=536870912;return e=vt.current,e!==null&&(e.flags|=32),gt}function st(e,t,l){(e===Te&&(pe===2||pe===9)||e.cancelPendingCommit!==null)&&(Ua(e,0),zl(e,re,gt,!1)),Ja(e,l),((me&2)===0||e!==Te)&&(e===Te&&((me&2)===0&&(la|=l),Me===4&&zl(e,re,gt,!1)),kt(e))}function od(e,t,l){if((me&6)!==0)throw Error(o(327));var a=!l&&(t&127)===0&&(t&e.expiredLanes)===0||Ka(e,t),n=a?$v(e,t):ds(e,t,!0),u=a;do{if(n===0){wa&&!a&&zl(e,t,0,!1);break}else{if(l=e.current.alternate,u&&!Kv(l)){n=ds(e,t,!1),u=!1;continue}if(n===2){if(u=t,e.errorRecoveryDisabledLanes&u)var r=0;else r=e.pendingLanes&-536870913,r=r!==0?r:r&536870912?536870912:0;if(r!==0){t=r;e:{var d=e;n=Nn;var p=d.current.memoizedState.isDehydrated;if(p&&(Ua(d,r).flags|=256),r=ds(d,r,!1),r!==2){if(us&&!p){d.errorRecoveryDisabledLanes|=u,la|=u,n=4;break e}u=ct,ct=n,u!==null&&(ct===null?ct=u:ct.push.apply(ct,u))}n=r}if(u=!1,n!==2)continue}}if(n===1){Ua(e,0),zl(e,t,0,!0);break}e:{switch(a=e,u=n,u){case 0:case 1:throw Error(o(345));case 4:if((t&4194048)!==t)break;case 6:zl(a,t,gt,!_l);break e;case 2:ct=null;break;case 3:case 5:break;default:throw Error(o(329))}if((t&62914560)===t&&(n=Gu+300-ot(),10<n)){if(zl(a,t,gt,!_l),eu(a,0,!0)!==0)break e;cl=t,a.timeoutHandle=Yd(fd.bind(null,a,l,ct,Qu,cs,t,gt,la,Oa,_l,u,"Throttled",-0,0),n);break e}fd(a,l,ct,Qu,cs,t,gt,la,Oa,_l,u,null,-0,0)}}break}while(!0);kt(e)}function fd(e,t,l,a,n,u,r,d,p,N,M,U,R,C){if(e.timeoutHandle=-1,U=t.subtreeFlags,U&8192||(U&16785408)===16785408){U={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:Zt},ad(t,u,U);var $=(u&62914560)===u?Gu-ot():(u&4194048)===u?cd-ot():0;if($=My(U,$),$!==null){cl=u,e.cancelPendingCommit=$(bd.bind(null,e,t,u,l,a,n,r,d,p,M,U,null,R,C)),zl(e,u,r,!N);return}}bd(e,t,u,l,a,n,r,d,p)}function Kv(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 zl(e,t,l,a){t&=~is,t&=~la,e.suspendedLanes|=t,e.pingedLanes&=~t,a&&(e.warmLanes|=t),a=e.expirationTimes;for(var n=t;0<n;){var u=31-dt(n),r=1<<u;a[u]=-1,n&=~r}l!==0&&br(e,l,t)}function Vu(){return(me&6)===0?(zn(0),!1):!0}function fs(){if(ce!==null){if(pe===0)var e=ce.return;else e=ce,Wt=Kl=null,Nc(e),_a=null,fn=0,e=ce;for(;e!==null;)Gf(e.alternate,e),e=e.return;ce=null}}function Ua(e,t){var l=e.timeoutHandle;l!==-1&&(e.timeoutHandle=-1,hy(l)),l=e.cancelPendingCommit,l!==null&&(e.cancelPendingCommit=null,l()),cl=0,fs(),Te=e,ce=l=Jt(e.current,null),re=t,pe=0,pt=null,_l=!1,wa=Ka(e,t),us=!1,Oa=gt=is=la=Al=Me=0,ct=Nn=null,cs=!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,du(),l}function dd(e,t){ne=null,w.H=bn,t===Ta||t===Su?(t=No(),pe=3):t===vc?(t=No(),pe=4):pe=t===Xc?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,pt=t,ce===null&&(Me=1,Du(e,Tt(t,e.current)))}function hd(){var e=vt.current;return e===null?!0:(re&4194048)===re?Rt===null:(re&62914560)===re||(re&536870912)!==0?e===Rt:!1}function md(){var e=w.H;return w.H=bn,e===null?bn:e}function vd(){var e=w.A;return w.A=Vv,e}function Zu(){Me=4,_l||(re&4194048)!==re&&vt.current!==null||(wa=!0),(Al&134217727)===0&&(la&134217727)===0||Te===null||zl(Te,re,gt,!1)}function ds(e,t,l){var a=me;me|=2;var n=md(),u=vd();(Te!==e||re!==t)&&(Qu=null,Ua(e,t)),t=!1;var r=Me;e:do try{if(pe!==0&&ce!==null){var d=ce,p=pt;switch(pe){case 8:fs(),r=6;break e;case 3:case 2:case 9:case 6:vt.current===null&&(t=!0);var N=pe;if(pe=0,pt=null,Ha(e,d,p,N),l&&wa){r=0;break e}break;default:N=pe,pe=0,pt=null,Ha(e,d,p,N)}}Jv(),r=Me;break}catch(M){dd(e,M)}while(!0);return t&&e.shellSuspendCounter++,Wt=Kl=null,me=a,w.H=n,w.A=u,ce===null&&(Te=null,re=0,du()),r}function Jv(){for(;ce!==null;)yd(ce)}function $v(e,t){var l=me;me|=2;var a=md(),n=vd();Te!==e||re!==t?(Qu=null,Xu=ot()+500,Ua(e,t)):wa=Ka(e,t);e:do try{if(pe!==0&&ce!==null){t=ce;var u=pt;t:switch(pe){case 1:pe=0,pt=null,Ha(e,t,u,1);break;case 2:case 9:if(_o(u)){pe=0,pt=null,pd(t);break}t=function(){pe!==2&&pe!==9||Te!==e||(pe=7),kt(e)},u.then(t,t);break e;case 3:pe=7;break e;case 4:pe=5;break e;case 7:_o(u)?(pe=0,pt=null,pd(t)):(pe=0,pt=null,Ha(e,t,u,7));break;case 5:var r=null;switch(ce.tag){case 26:r=ce.memoizedState;case 5:case 27:var d=ce;if(r?lh(r):d.stateNode.complete){pe=0,pt=null;var p=d.sibling;if(p!==null)ce=p;else{var N=d.return;N!==null?(ce=N,Ku(N)):ce=null}break t}}pe=0,pt=null,Ha(e,t,u,5);break;case 6:pe=0,pt=null,Ha(e,t,u,6);break;case 8:fs(),Me=6;break e;default:throw Error(o(462))}}Wv();break}catch(M){dd(e,M)}while(!0);return Wt=Kl=null,w.H=a,w.A=n,me=l,ce!==null?0:(Te=null,re=0,du(),Me)}function Wv(){for(;ce!==null&&!bm();)yd(ce)}function yd(e){var t=kf(e.alternate,e,il);e.memoizedProps=e.pendingProps,t===null?Ku(e):ce=t}function pd(e){var t=e,l=t.alternate;switch(t.tag){case 15:case 0:t=Df(l,t,t.pendingProps,t.type,void 0,re);break;case 11:t=Df(l,t,t.pendingProps,t.type.render,t.ref,re);break;case 5:Nc(t);default:Gf(l,t),t=ce=mo(t,il),t=kf(l,t,il)}e.memoizedProps=e.pendingProps,t===null?Ku(e):ce=t}function Ha(e,t,l,a){Wt=Kl=null,Nc(t),_a=null,fn=0;var n=t.return;try{if(Lv(e,n,t,l,re)){Me=1,Du(e,Tt(l,e.current)),ce=null;return}}catch(u){if(n!==null)throw ce=n,u;Me=1,Du(e,Tt(l,e.current)),ce=null;return}t.flags&32768?(fe||a===1?e=!0:wa||(re&536870912)!==0?e=!1:(_l=e=!0,(a===2||a===9||a===3||a===6)&&(a=vt.current,a!==null&&a.tag===13&&(a.flags|=16384))),gd(t,e)):Ku(t)}function Ku(e){var t=e;do{if((t.flags&32768)!==0){gd(t,_l);return}e=t.return;var l=Yv(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);Me===0&&(Me=5)}function gd(e,t){do{var l=Gv(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);Me=6,ce=null}function bd(e,t,l,a,n,u,r,d,p){e.cancelPendingCommit=null;do Ju();while(ke!==0);if((me&6)!==0)throw Error(o(327));if(t!==null){if(t===e.current)throw Error(o(177));if(u=t.lanes|t.childLanes,u|=ec,zm(e,l,u,r,d,p),e===Te&&(ce=Te=null,re=0),Da=t,Rl=e,cl=l,ss=u,rs=n,sd=a,(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,ey(Wn,function(){return Td(),null})):(e.callbackNode=null,e.callbackPriority=0),a=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||a){a=w.T,w.T=null,n=Q.p,Q.p=2,r=me,me|=4;try{Xv(e,t,l)}finally{me=r,Q.p=n,w.T=a}}ke=1,Sd(),xd(),jd()}}function Sd(){if(ke===1){ke=0;var e=Rl,t=Da,l=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||l){l=w.T,w.T=null;var a=Q.p;Q.p=2;var n=me;me|=4;try{ed(t,e);var u=Ts,r=no(e.containerInfo),d=u.focusedElem,p=u.selectionRange;if(r!==d&&d&&d.ownerDocument&&ao(d.ownerDocument.documentElement,d)){if(p!==null&&$i(d)){var N=p.start,M=p.end;if(M===void 0&&(M=N),"selectionStart"in d)d.selectionStart=N,d.selectionEnd=Math.min(M,d.value.length);else{var U=d.ownerDocument||document,R=U&&U.defaultView||window;if(R.getSelection){var C=R.getSelection(),$=d.textContent.length,P=Math.min(p.start,$),je=p.end===void 0?P:Math.min(p.end,$);!C.extend&&P>je&&(r=je,je=P,P=r);var _=lo(d,P),x=lo(d,je);if(_&&x&&(C.rangeCount!==1||C.anchorNode!==_.node||C.anchorOffset!==_.offset||C.focusNode!==x.node||C.focusOffset!==x.offset)){var A=U.createRange();A.setStart(_.node,_.offset),C.removeAllRanges(),P>je?(C.addRange(A),C.extend(x.node,x.offset)):(A.setEnd(x.node,x.offset),C.addRange(A))}}}}for(U=[],C=d;C=C.parentNode;)C.nodeType===1&&U.push({element:C,left:C.scrollLeft,top:C.scrollTop});for(typeof d.focus=="function"&&d.focus(),d=0;d<U.length;d++){var O=U[d];O.element.scrollLeft=O.left,O.element.scrollTop=O.top}}ii=!!Es,Ts=Es=null}finally{me=n,Q.p=a,w.T=l}}e.current=t,ke=2}}function xd(){if(ke===2){ke=0;var e=Rl,t=Da,l=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||l){l=w.T,w.T=null;var a=Q.p;Q.p=2;var n=me;me|=4;try{$f(e,t.alternate,t)}finally{me=n,Q.p=a,w.T=l}}ke=3}}function jd(){if(ke===4||ke===3){ke=0,Sm();var e=Rl,t=Da,l=cl,a=sd;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?ke=5:(ke=0,Da=Rl=null,Ed(e,e.pendingLanes));var n=e.pendingLanes;if(n===0&&(Nl=null),Ci(l),t=t.stateNode,ft&&typeof ft.onCommitFiberRoot=="function")try{ft.onCommitFiberRoot(Za,t,void 0,(t.current.flags&128)===128)}catch{}if(a!==null){t=w.T,n=Q.p,Q.p=2,w.T=null;try{for(var u=e.onRecoverableError,r=0;r<a.length;r++){var d=a[r];u(d.value,{componentStack:d.stack})}}finally{w.T=t,Q.p=n}}(cl&3)!==0&&Ju(),kt(e),n=e.pendingLanes,(l&261930)!==0&&(n&42)!==0?e===os?Rn++:(Rn=0,os=e):Rn=0,zn(0)}}function Ed(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,rn(t)))}function Ju(){return Sd(),xd(),jd(),Td()}function Td(){if(ke!==5)return!1;var e=Rl,t=ss;ss=0;var l=Ci(cl),a=w.T,n=Q.p;try{Q.p=32>l?32:l,w.T=null,l=rs,rs=null;var u=Rl,r=cl;if(ke=0,Da=Rl=null,cl=0,(me&6)!==0)throw Error(o(331));var d=me;if(me|=4,ud(u.current),ld(u,u.current,r,l),me=d,zn(0,!1),ft&&typeof ft.onPostCommitFiberRoot=="function")try{ft.onPostCommitFiberRoot(Za,u)}catch{}return!0}finally{Q.p=n,w.T=a,Ed(e,t)}}function _d(e,t,l){t=Tt(l,t),t=Gc(e.stateNode,t,2),e=xl(e,t,2),e!==null&&(Ja(e,2),kt(e))}function ge(e,t,l){if(e.tag===3)_d(e,e,l);else for(;t!==null;){if(t.tag===3){_d(t,e,l);break}else if(t.tag===1){var a=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof a.componentDidCatch=="function"&&(Nl===null||!Nl.has(a))){e=Tt(l,e),l=Af(2),a=xl(t,l,2),a!==null&&(Nf(l,a,t,e),Ja(a,2),kt(a));break}}t=t.return}}function hs(e,t,l){var a=e.pingCache;if(a===null){a=e.pingCache=new Zv;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)||(us=!0,n.add(l),e=Fv.bind(null,e,t,l),t.then(e,e))}function Fv(e,t,l){var a=e.pingCache;a!==null&&a.delete(t),e.pingedLanes|=e.suspendedLanes&l,e.warmLanes&=~l,Te===e&&(re&l)===l&&(Me===4||Me===3&&(re&62914560)===re&&300>ot()-Gu?(me&2)===0&&Ua(e,0):is|=l,Oa===re&&(Oa=0)),kt(e)}function Ad(e,t){t===0&&(t=gr()),e=Ql(e,t),e!==null&&(Ja(e,t),kt(e))}function Iv(e){var t=e.memoizedState,l=0;t!==null&&(l=t.retryLane),Ad(e,l)}function Pv(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(o(314))}a!==null&&a.delete(t),Ad(e,l)}function ey(e,t){return Ai(e,t)}var $u=null,Ba=null,ms=!1,Wu=!1,vs=!1,Cl=0;function kt(e){e!==Ba&&e.next===null&&(Ba===null?$u=Ba=e:Ba=Ba.next=e),Wu=!0,ms||(ms=!0,ly())}function zn(e,t){if(!vs&&Wu){vs=!0;do for(var l=!1,a=$u;a!==null;){if(e!==0){var n=a.pendingLanes;if(n===0)var u=0;else{var r=a.suspendedLanes,d=a.pingedLanes;u=(1<<31-dt(42|e)+1)-1,u&=n&~(r&~d),u=u&201326741?u&201326741|1:u?u|2:0}u!==0&&(l=!0,Cd(a,u))}else u=re,u=eu(a,a===Te?u:0,a.cancelPendingCommit!==null||a.timeoutHandle!==-1),(u&3)===0||Ka(a,u)||(l=!0,Cd(a,u));a=a.next}while(l);vs=!1}}function ty(){Nd()}function Nd(){Wu=ms=!1;var e=0;Cl!==0&&dy()&&(e=Cl);for(var t=ot(),l=null,a=$u;a!==null;){var n=a.next,u=Rd(a,t);u===0?(a.next=null,l===null?$u=n:l.next=n,n===null&&(Ba=l)):(l=a,(e!==0||(u&3)!==0)&&(Wu=!0)),a=n}ke!==0&&ke!==5||zn(e),Cl!==0&&(Cl=0)}function Rd(e,t){for(var l=e.suspendedLanes,a=e.pingedLanes,n=e.expirationTimes,u=e.pendingLanes&-62914561;0<u;){var r=31-dt(u),d=1<<r,p=n[r];p===-1?((d&l)===0||(d&a)!==0)&&(n[r]=Rm(d,t)):p<=t&&(e.expiredLanes|=d),u&=~d}if(t=Te,l=re,l=eu(e,e===t?l:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),a=e.callbackNode,l===0||e===t&&(pe===2||pe===9)||e.cancelPendingCommit!==null)return a!==null&&a!==null&&Ni(a),e.callbackNode=null,e.callbackPriority=0;if((l&3)===0||Ka(e,l)){if(t=l&-l,t===e.callbackPriority)return t;switch(a!==null&&Ni(a),Ci(l)){case 2:case 8:l=yr;break;case 32:l=Wn;break;case 268435456:l=pr;break;default:l=Wn}return a=zd.bind(null,e),l=Ai(l,a),e.callbackPriority=t,e.callbackNode=l,t}return a!==null&&a!==null&&Ni(a),e.callbackPriority=2,e.callbackNode=null,2}function zd(e,t){if(ke!==0&&ke!==5)return e.callbackNode=null,e.callbackPriority=0,null;var l=e.callbackNode;if(Ju()&&e.callbackNode!==l)return null;var a=re;return a=eu(e,e===Te?a:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),a===0?null:(od(e,a,t),Rd(e,ot()),e.callbackNode!=null&&e.callbackNode===l?zd.bind(null,e):null)}function Cd(e,t){if(Ju())return null;od(e,t,!0)}function ly(){my(function(){(me&6)!==0?Ai(vr,ty):Nd()})}function ys(){if(Cl===0){var e=ja;e===0&&(e=Fn,Fn<<=1,(Fn&261888)===0&&(Fn=256)),Cl=e}return Cl}function Md(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:nu(""+e)}function wd(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 ay(e,t,l,a,n){if(t==="submit"&&l&&l.stateNode===n){var u=Md((n[lt]||null).action),r=a.submitter;r&&(t=(t=r[lt]||null)?Md(t.formAction):r.getAttribute("formAction"),t!==null&&(u=t,r=null));var d=new su("action","action",null,a,n);e.push({event:d,listeners:[{instance:null,listener:function(){if(a.defaultPrevented){if(Cl!==0){var p=r?wd(n,r):new FormData(n);Hc(l,{pending:!0,data:p,method:n.method,action:u},null,p)}}else typeof u=="function"&&(d.preventDefault(),p=r?wd(n,r):new FormData(n),Hc(l,{pending:!0,data:p,method:n.method,action:u},u,p))},currentTarget:n}]})}}for(var ps=0;ps<Pi.length;ps++){var gs=Pi[ps],ny=gs.toLowerCase(),uy=gs[0].toUpperCase()+gs.slice(1);wt(ny,"on"+uy)}wt(co,"onAnimationEnd"),wt(so,"onAnimationIteration"),wt(ro,"onAnimationStart"),wt("dblclick","onDoubleClick"),wt("focusin","onFocus"),wt("focusout","onBlur"),wt(xv,"onTransitionRun"),wt(jv,"onTransitionStart"),wt(Ev,"onTransitionCancel"),wt(oo,"onTransitionEnd"),sa("onMouseEnter",["mouseout","mouseover"]),sa("onMouseLeave",["mouseout","mouseover"]),sa("onPointerEnter",["pointerout","pointerover"]),sa("onPointerLeave",["pointerout","pointerover"]),kl("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),kl("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),kl("onBeforeInput",["compositionend","keypress","textInput","paste"]),kl("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),kl("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),kl("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Cn="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(" "),iy=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Cn));function Od(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 r=a.length-1;0<=r;r--){var d=a[r],p=d.instance,N=d.currentTarget;if(d=d.listener,p!==u&&n.isPropagationStopped())break e;u=d,n.currentTarget=N;try{u(n)}catch(M){fu(M)}n.currentTarget=null,u=p}else for(r=0;r<a.length;r++){if(d=a[r],p=d.instance,N=d.currentTarget,d=d.listener,p!==u&&n.isPropagationStopped())break e;u=d,n.currentTarget=N;try{u(n)}catch(M){fu(M)}n.currentTarget=null,u=p}}}}function se(e,t){var l=t[Mi];l===void 0&&(l=t[Mi]=new Set);var a=e+"__bubble";l.has(a)||(Dd(t,e,2,!1),l.add(a))}function bs(e,t,l){var a=0;t&&(a|=4),Dd(l,e,a,t)}var Fu="_reactListening"+Math.random().toString(36).slice(2);function Ss(e){if(!e[Fu]){e[Fu]=!0,_r.forEach(function(l){l!=="selectionchange"&&(iy.has(l)||bs(l,!1,e),bs(l,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Fu]||(t[Fu]=!0,bs("selectionchange",!1,t))}}function Dd(e,t,l,a){switch(rh(t)){case 2:var n=Dy;break;case 8:n=Uy;break;default:n=Us}l=n.bind(null,t,l,e),n=void 0,!ki||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 xs(e,t,l,a,n){var u=a;if((t&1)===0&&(t&2)===0&&a!==null)e:for(;;){if(a===null)return;var r=a.tag;if(r===3||r===4){var d=a.stateNode.containerInfo;if(d===n)break;if(r===4)for(r=a.return;r!==null;){var p=r.tag;if((p===3||p===4)&&r.stateNode.containerInfo===n)return;r=r.return}for(;d!==null;){if(r=ua(d),r===null)return;if(p=r.tag,p===5||p===6||p===26||p===27){a=u=r;continue e}d=d.parentNode}}a=a.return}Br(function(){var N=u,M=Li(l),U=[];e:{var R=fo.get(e);if(R!==void 0){var C=su,$=e;switch(e){case"keypress":if(iu(l)===0)break e;case"keydown":case"keyup":C=Pm;break;case"focusin":$="focus",C=Qi;break;case"focusout":$="blur",C=Qi;break;case"beforeblur":case"afterblur":C=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":C=kr;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":C=Ym;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":C=lv;break;case co:case so:case ro:C=Qm;break;case oo:C=nv;break;case"scroll":case"scrollend":C=qm;break;case"wheel":C=iv;break;case"copy":case"cut":case"paste":C=Zm;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":C=Gr;break;case"toggle":case"beforetoggle":C=sv}var P=(t&4)!==0,je=!P&&(e==="scroll"||e==="scrollend"),_=P?R!==null?R+"Capture":null:R;P=[];for(var x=N,A;x!==null;){var O=x;if(A=O.stateNode,O=O.tag,O!==5&&O!==26&&O!==27||A===null||_===null||(O=Fa(x,_),O!=null&&P.push(Mn(x,O,A))),je)break;x=x.return}0<P.length&&(R=new C(R,$,null,l,M),U.push({event:R,listeners:P}))}}if((t&7)===0){e:{if(R=e==="mouseover"||e==="pointerover",C=e==="mouseout"||e==="pointerout",R&&l!==Bi&&($=l.relatedTarget||l.fromElement)&&(ua($)||$[na]))break e;if((C||R)&&(R=M.window===M?M:(R=M.ownerDocument)?R.defaultView||R.parentWindow:window,C?($=l.relatedTarget||l.toElement,C=N,$=$?ua($):null,$!==null&&(je=m($),P=$.tag,$!==je||P!==5&&P!==27&&P!==6)&&($=null)):(C=null,$=N),C!==$)){if(P=kr,O="onMouseLeave",_="onMouseEnter",x="mouse",(e==="pointerout"||e==="pointerover")&&(P=Gr,O="onPointerLeave",_="onPointerEnter",x="pointer"),je=C==null?R:Wa(C),A=$==null?R:Wa($),R=new P(O,x+"leave",C,l,M),R.target=je,R.relatedTarget=A,O=null,ua(M)===N&&(P=new P(_,x+"enter",$,l,M),P.target=A,P.relatedTarget=je,O=P),je=O,C&&$)t:{for(P=cy,_=C,x=$,A=0,O=_;O;O=P(O))A++;O=0;for(var I=x;I;I=P(I))O++;for(;0<A-O;)_=P(_),A--;for(;0<O-A;)x=P(x),O--;for(;A--;){if(_===x||x!==null&&_===x.alternate){P=_;break t}_=P(_),x=P(x)}P=null}else P=null;C!==null&&Ud(U,R,C,P,!1),$!==null&&je!==null&&Ud(U,je,$,P,!0)}}e:{if(R=N?Wa(N):window,C=R.nodeName&&R.nodeName.toLowerCase(),C==="select"||C==="input"&&R.type==="file")var de=Wr;else if(Jr(R))if(Fr)de=gv;else{de=yv;var F=vv}else C=R.nodeName,!C||C.toLowerCase()!=="input"||R.type!=="checkbox"&&R.type!=="radio"?N&&Hi(N.elementType)&&(de=Wr):de=pv;if(de&&(de=de(e,N))){$r(U,de,l,M);break e}F&&F(e,R,N),e==="focusout"&&N&&R.type==="number"&&N.memoizedProps.value!=null&&Ui(R,"number",R.value)}switch(F=N?Wa(N):window,e){case"focusin":(Jr(F)||F.contentEditable==="true")&&(ma=F,Wi=N,un=null);break;case"focusout":un=Wi=ma=null;break;case"mousedown":Fi=!0;break;case"contextmenu":case"mouseup":case"dragend":Fi=!1,uo(U,l,M);break;case"selectionchange":if(Sv)break;case"keydown":case"keyup":uo(U,l,M)}var ue;if(Zi)e:{switch(e){case"compositionstart":var oe="onCompositionStart";break e;case"compositionend":oe="onCompositionEnd";break e;case"compositionupdate":oe="onCompositionUpdate";break e}oe=void 0}else ha?Zr(e,l)&&(oe="onCompositionEnd"):e==="keydown"&&l.keyCode===229&&(oe="onCompositionStart");oe&&(Xr&&l.locale!=="ko"&&(ha||oe!=="onCompositionStart"?oe==="onCompositionEnd"&&ha&&(ue=Lr()):(ml=M,Yi="value"in ml?ml.value:ml.textContent,ha=!0)),F=Iu(N,oe),0<F.length&&(oe=new Yr(oe,e,null,l,M),U.push({event:oe,listeners:F}),ue?oe.data=ue:(ue=Kr(l),ue!==null&&(oe.data=ue)))),(ue=ov?fv(e,l):dv(e,l))&&(oe=Iu(N,"onBeforeInput"),0<oe.length&&(F=new Yr("onBeforeInput","beforeinput",null,l,M),U.push({event:F,listeners:oe}),F.data=ue)),ay(U,e,N,l,M)}Od(U,t)})}function Mn(e,t,l){return{instance:e,listener:t,currentTarget:l}}function Iu(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=Fa(e,l),n!=null&&a.unshift(Mn(e,n,u)),n=Fa(e,t),n!=null&&a.push(Mn(e,n,u))),e.tag===3)return a;e=e.return}return[]}function cy(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function Ud(e,t,l,a,n){for(var u=t._reactName,r=[];l!==null&&l!==a;){var d=l,p=d.alternate,N=d.stateNode;if(d=d.tag,p!==null&&p===a)break;d!==5&&d!==26&&d!==27||N===null||(p=N,n?(N=Fa(l,u),N!=null&&r.unshift(Mn(l,N,p))):n||(N=Fa(l,u),N!=null&&r.push(Mn(l,N,p)))),l=l.return}r.length!==0&&e.push({event:t,listeners:r})}var sy=/\r\n?/g,ry=/\u0000|\uFFFD/g;function Hd(e){return(typeof e=="string"?e:""+e).replace(sy,`
49
+ `).replace(ry,"")}function Bd(e,t){return t=Hd(t),Hd(e)===t}function xe(e,t,l,a,n,u){switch(l){case"children":typeof a=="string"?t==="body"||t==="textarea"&&a===""||oa(e,a):(typeof a=="number"||typeof a=="bigint")&&t!=="body"&&oa(e,""+a);break;case"className":lu(e,"class",a);break;case"tabIndex":lu(e,"tabindex",a);break;case"dir":case"role":case"viewBox":case"width":case"height":lu(e,l,a);break;case"style":Ur(e,a,u);break;case"data":if(t!=="object"){lu(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=nu(""+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"&&xe(e,t,"name",n.name,n,null),xe(e,t,"formEncType",n.formEncType,n,null),xe(e,t,"formMethod",n.formMethod,n,null),xe(e,t,"formTarget",n.formTarget,n,null)):(xe(e,t,"encType",n.encType,n,null),xe(e,t,"method",n.method,n,null),xe(e,t,"target",n.target,n,null)));if(a==null||typeof a=="symbol"||typeof a=="boolean"){e.removeAttribute(l);break}a=nu(""+a),e.setAttribute(l,a);break;case"onClick":a!=null&&(e.onclick=Zt);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(o(61));if(l=a.__html,l!=null){if(n.children!=null)throw Error(o(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=nu(""+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),tu(e,"popover",a);break;case"xlinkActuate":Vt(e,"http://www.w3.org/1999/xlink","xlink:actuate",a);break;case"xlinkArcrole":Vt(e,"http://www.w3.org/1999/xlink","xlink:arcrole",a);break;case"xlinkRole":Vt(e,"http://www.w3.org/1999/xlink","xlink:role",a);break;case"xlinkShow":Vt(e,"http://www.w3.org/1999/xlink","xlink:show",a);break;case"xlinkTitle":Vt(e,"http://www.w3.org/1999/xlink","xlink:title",a);break;case"xlinkType":Vt(e,"http://www.w3.org/1999/xlink","xlink:type",a);break;case"xmlBase":Vt(e,"http://www.w3.org/XML/1998/namespace","xml:base",a);break;case"xmlLang":Vt(e,"http://www.w3.org/XML/1998/namespace","xml:lang",a);break;case"xmlSpace":Vt(e,"http://www.w3.org/XML/1998/namespace","xml:space",a);break;case"is":tu(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=Bm.get(l)||l,tu(e,l,a))}}function js(e,t,l,a,n,u){switch(l){case"style":Ur(e,a,u);break;case"dangerouslySetInnerHTML":if(a!=null){if(typeof a!="object"||!("__html"in a))throw Error(o(61));if(l=a.__html,l!=null){if(n.children!=null)throw Error(o(60));e.innerHTML=l}}break;case"children":typeof a=="string"?oa(e,a):(typeof a=="number"||typeof a=="bigint")&&oa(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=Zt);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!Ar.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[lt]||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,""):tu(e,l,a)}}}function Ke(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 r=l[u];if(r!=null)switch(u){case"src":a=!0;break;case"srcSet":n=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(o(137,t));default:xe(e,t,u,r,l,null)}}n&&xe(e,t,"srcSet",l.srcSet,l,null),a&&xe(e,t,"src",l.src,l,null);return;case"input":se("invalid",e);var d=u=r=n=null,p=null,N=null;for(a in l)if(l.hasOwnProperty(a)){var M=l[a];if(M!=null)switch(a){case"name":n=M;break;case"type":r=M;break;case"checked":p=M;break;case"defaultChecked":N=M;break;case"value":u=M;break;case"defaultValue":d=M;break;case"children":case"dangerouslySetInnerHTML":if(M!=null)throw Error(o(137,t));break;default:xe(e,t,a,M,l,null)}}Mr(e,u,d,p,N,r,n,!1);return;case"select":se("invalid",e),a=r=u=null;for(n in l)if(l.hasOwnProperty(n)&&(d=l[n],d!=null))switch(n){case"value":u=d;break;case"defaultValue":r=d;break;case"multiple":a=d;default:xe(e,t,n,d,l,null)}t=u,l=r,e.multiple=!!a,t!=null?ra(e,!!a,t,!1):l!=null&&ra(e,!!a,l,!0);return;case"textarea":se("invalid",e),u=n=a=null;for(r in l)if(l.hasOwnProperty(r)&&(d=l[r],d!=null))switch(r){case"value":a=d;break;case"defaultValue":n=d;break;case"children":u=d;break;case"dangerouslySetInnerHTML":if(d!=null)throw Error(o(91));break;default:xe(e,t,r,d,l,null)}Or(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:xe(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<Cn.length;a++)se(Cn[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(N in l)if(l.hasOwnProperty(N)&&(a=l[N],a!=null))switch(N){case"children":case"dangerouslySetInnerHTML":throw Error(o(137,t));default:xe(e,t,N,a,l,null)}return;default:if(Hi(t)){for(M in l)l.hasOwnProperty(M)&&(a=l[M],a!==void 0&&js(e,t,M,a,l,void 0));return}}for(d in l)l.hasOwnProperty(d)&&(a=l[d],a!=null&&xe(e,t,d,a,l,null))}function oy(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,r=null,d=null,p=null,N=null,M=null;for(C in l){var U=l[C];if(l.hasOwnProperty(C)&&U!=null)switch(C){case"checked":break;case"value":break;case"defaultValue":p=U;default:a.hasOwnProperty(C)||xe(e,t,C,null,a,U)}}for(var R in a){var C=a[R];if(U=l[R],a.hasOwnProperty(R)&&(C!=null||U!=null))switch(R){case"type":u=C;break;case"name":n=C;break;case"checked":N=C;break;case"defaultChecked":M=C;break;case"value":r=C;break;case"defaultValue":d=C;break;case"children":case"dangerouslySetInnerHTML":if(C!=null)throw Error(o(137,t));break;default:C!==U&&xe(e,t,R,C,a,U)}}Di(e,r,d,p,N,M,u,n);return;case"select":C=r=d=R=null;for(u in l)if(p=l[u],l.hasOwnProperty(u)&&p!=null)switch(u){case"value":break;case"multiple":C=p;default:a.hasOwnProperty(u)||xe(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":r=u;default:u!==p&&xe(e,t,n,u,a,p)}t=d,l=r,a=C,R!=null?ra(e,!!l,R,!1):!!a!=!!l&&(t!=null?ra(e,!!l,t,!0):ra(e,!!l,l?[]:"",!1));return;case"textarea":C=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:xe(e,t,d,null,a,n)}for(r in a)if(n=a[r],u=l[r],a.hasOwnProperty(r)&&(n!=null||u!=null))switch(r){case"value":R=n;break;case"defaultValue":C=n;break;case"children":break;case"dangerouslySetInnerHTML":if(n!=null)throw Error(o(91));break;default:n!==u&&xe(e,t,r,n,a,u)}wr(e,R,C);return;case"option":for(var $ in l)if(R=l[$],l.hasOwnProperty($)&&R!=null&&!a.hasOwnProperty($))switch($){case"selected":e.selected=!1;break;default:xe(e,t,$,null,a,R)}for(p in a)if(R=a[p],C=l[p],a.hasOwnProperty(p)&&R!==C&&(R!=null||C!=null))switch(p){case"selected":e.selected=R&&typeof R!="function"&&typeof R!="symbol";break;default:xe(e,t,p,R,a,C)}return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var P in l)R=l[P],l.hasOwnProperty(P)&&R!=null&&!a.hasOwnProperty(P)&&xe(e,t,P,null,a,R);for(N in a)if(R=a[N],C=l[N],a.hasOwnProperty(N)&&R!==C&&(R!=null||C!=null))switch(N){case"children":case"dangerouslySetInnerHTML":if(R!=null)throw Error(o(137,t));break;default:xe(e,t,N,R,a,C)}return;default:if(Hi(t)){for(var je in l)R=l[je],l.hasOwnProperty(je)&&R!==void 0&&!a.hasOwnProperty(je)&&js(e,t,je,void 0,a,R);for(M in a)R=a[M],C=l[M],!a.hasOwnProperty(M)||R===C||R===void 0&&C===void 0||js(e,t,M,R,a,C);return}}for(var _ in l)R=l[_],l.hasOwnProperty(_)&&R!=null&&!a.hasOwnProperty(_)&&xe(e,t,_,null,a,R);for(U in a)R=a[U],C=l[U],!a.hasOwnProperty(U)||R===C||R==null&&C==null||xe(e,t,U,R,a,C)}function Ld(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function fy(){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,r=n.initiatorType,d=n.duration;if(u&&d&&Ld(r)){for(r=0,d=n.responseEnd,a+=1;a<l.length;a++){var p=l[a],N=p.startTime;if(N>d)break;var M=p.transferSize,U=p.initiatorType;M&&Ld(U)&&(p=p.responseEnd,r+=M*(p<d?1:(d-N)/(p-N)))}if(--a,t+=8*(u+r)/(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 Es=null,Ts=null;function Pu(e){return e.nodeType===9?e:e.ownerDocument}function qd(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 kd(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 _s(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 As=null;function dy(){var e=window.event;return e&&e.type==="popstate"?e===As?!1:(As=e,!0):(As=null,!1)}var Yd=typeof setTimeout=="function"?setTimeout:void 0,hy=typeof clearTimeout=="function"?clearTimeout:void 0,Gd=typeof Promise=="function"?Promise:void 0,my=typeof queueMicrotask=="function"?queueMicrotask:typeof Gd<"u"?function(e){return Gd.resolve(null).then(e).catch(vy)}:Yd;function vy(e){setTimeout(function(){throw e})}function Ml(e){return e==="head"}function Xd(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),Ya(t);return}a--}else if(l==="$"||l==="$?"||l==="$~"||l==="$!"||l==="&")a++;else if(l==="html")wn(e.ownerDocument.documentElement);else if(l==="head"){l=e.ownerDocument.head,wn(l);for(var u=l.firstChild;u;){var r=u.nextSibling,d=u.nodeName;u[$a]||d==="SCRIPT"||d==="STYLE"||d==="LINK"&&u.rel.toLowerCase()==="stylesheet"||l.removeChild(u),u=r}}else l==="body"&&wn(e.ownerDocument.body);l=n}while(l);Ya(t)}function Qd(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 Ns(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":Ns(l),wi(l);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(l.rel.toLowerCase()==="stylesheet")continue}e.removeChild(l)}}function yy(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[$a])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=zt(e.nextSibling),e===null)break}return null}function py(e,t,l){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!l||(e=zt(e.nextSibling),e===null))return null;return e}function Vd(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t||(e=zt(e.nextSibling),e===null))return null;return e}function Rs(e){return e.data==="$?"||e.data==="$~"}function zs(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function gy(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 zt(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 Cs=null;function Zd(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var l=e.data;if(l==="/$"||l==="/&"){if(t===0)return zt(e.nextSibling);t--}else l!=="$"&&l!=="$!"&&l!=="$?"&&l!=="$~"&&l!=="&"||t++}e=e.nextSibling}return null}function Kd(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 Jd(e,t,l){switch(t=Pu(l),e){case"html":if(e=t.documentElement,!e)throw Error(o(452));return e;case"head":if(e=t.head,!e)throw Error(o(453));return e;case"body":if(e=t.body,!e)throw Error(o(454));return e;default:throw Error(o(451))}}function wn(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);wi(e)}var Ct=new Map,$d=new Set;function ei(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var sl=Q.d;Q.d={f:by,r:Sy,D:xy,C:jy,L:Ey,m:Ty,X:Ay,S:_y,M:Ny};function by(){var e=sl.f(),t=Vu();return e||t}function Sy(e){var t=ia(e);t!==null&&t.tag===5&&t.type==="form"?df(t):sl.r(e)}var La=typeof document>"u"?null:document;function Wd(e,t,l){var a=La;if(a&&typeof t=="string"&&t){var n=jt(t);n='link[rel="'+e+'"][href="'+n+'"]',typeof l=="string"&&(n+='[crossorigin="'+l+'"]'),$d.has(n)||($d.add(n),e={rel:e,crossOrigin:l,href:t},a.querySelector(n)===null&&(t=a.createElement("link"),Ke(t,"link",e),Ye(t),a.head.appendChild(t)))}}function xy(e){sl.D(e),Wd("dns-prefetch",e,null)}function jy(e,t){sl.C(e,t),Wd("preconnect",e,t)}function Ey(e,t,l){sl.L(e,t,l);var a=La;if(a&&e&&t){var n='link[rel="preload"][as="'+jt(t)+'"]';t==="image"&&l&&l.imageSrcSet?(n+='[imagesrcset="'+jt(l.imageSrcSet)+'"]',typeof l.imageSizes=="string"&&(n+='[imagesizes="'+jt(l.imageSizes)+'"]')):n+='[href="'+jt(e)+'"]';var u=n;switch(t){case"style":u=qa(e);break;case"script":u=ka(e)}Ct.has(u)||(e=b({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(On(u))||t==="script"&&a.querySelector(Dn(u))||(t=a.createElement("link"),Ke(t,"link",e),Ye(t),a.head.appendChild(t)))}}function Ty(e,t){sl.m(e,t);var l=La;if(l&&e){var a=t&&typeof t.as=="string"?t.as:"script",n='link[rel="modulepreload"][as="'+jt(a)+'"][href="'+jt(e)+'"]',u=n;switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":u=ka(e)}if(!Ct.has(u)&&(e=b({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(Dn(u)))return}a=l.createElement("link"),Ke(a,"link",e),Ye(a),l.head.appendChild(a)}}}function _y(e,t,l){sl.S(e,t,l);var a=La;if(a&&e){var n=ca(a).hoistableStyles,u=qa(e);t=t||"default";var r=n.get(u);if(!r){var d={loading:0,preload:null};if(r=a.querySelector(On(u)))d.loading=5;else{e=b({rel:"stylesheet",href:e,"data-precedence":t},l),(l=Ct.get(u))&&Ms(e,l);var p=r=a.createElement("link");Ye(p),Ke(p,"link",e),p._p=new Promise(function(N,M){p.onload=N,p.onerror=M}),p.addEventListener("load",function(){d.loading|=1}),p.addEventListener("error",function(){d.loading|=2}),d.loading|=4,ti(r,t,a)}r={type:"stylesheet",instance:r,count:1,state:d},n.set(u,r)}}}function Ay(e,t){sl.X(e,t);var l=La;if(l&&e){var a=ca(l).hoistableScripts,n=ka(e),u=a.get(n);u||(u=l.querySelector(Dn(n)),u||(e=b({src:e,async:!0},t),(t=Ct.get(n))&&ws(e,t),u=l.createElement("script"),Ye(u),Ke(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=La;if(l&&e){var a=ca(l).hoistableScripts,n=ka(e),u=a.get(n);u||(u=l.querySelector(Dn(n)),u||(e=b({src:e,async:!0,type:"module"},t),(t=Ct.get(n))&&ws(e,t),u=l.createElement("script"),Ye(u),Ke(u,"link",e),l.head.appendChild(u)),u={type:"script",instance:u,count:1,state:null},a.set(n,u))}}function Fd(e,t,l,a){var n=(n=ie.current)?ei(n):null;if(!n)throw Error(o(446));switch(e){case"meta":case"title":return null;case"style":return typeof l.precedence=="string"&&typeof l.href=="string"?(t=qa(l.href),l=ca(n).hoistableStyles,a=l.get(t),a||(a={type:"style",instance:null,count:0,state:null},l.set(t,a)),a):{type:"void",instance:null,count:0,state:null};case"link":if(l.rel==="stylesheet"&&typeof l.href=="string"&&typeof l.precedence=="string"){e=qa(l.href);var u=ca(n).hoistableStyles,r=u.get(e);if(r||(n=n.ownerDocument||n,r={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},u.set(e,r),(u=n.querySelector(On(e)))&&!u._p&&(r.instance=u,r.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||Ry(n,e,l,r.state))),t&&a===null)throw Error(o(528,""));return r}if(t&&a!==null)throw Error(o(529,""));return null;case"script":return t=l.async,l=l.src,typeof l=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=ka(l),l=ca(n).hoistableScripts,a=l.get(t),a||(a={type:"script",instance:null,count:0,state:null},l.set(t,a)),a):{type:"void",instance:null,count:0,state:null};default:throw Error(o(444,e))}}function qa(e){return'href="'+jt(e)+'"'}function On(e){return'link[rel="stylesheet"]['+e+"]"}function Id(e){return b({},e,{"data-precedence":e.precedence,precedence:null})}function Ry(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}),Ke(t,"link",l),Ye(t),e.head.appendChild(t))}function ka(e){return'[src="'+jt(e)+'"]'}function Dn(e){return"script[async]"+e}function Pd(e,t,l){if(t.count++,t.instance===null)switch(t.type){case"style":var a=e.querySelector('style[data-href~="'+jt(l.href)+'"]');if(a)return t.instance=a,Ye(a),a;var n=b({},l,{"data-href":l.href,"data-precedence":l.precedence,href:null,precedence:null});return a=(e.ownerDocument||e).createElement("style"),Ye(a),Ke(a,"style",n),ti(a,l.precedence,e),t.instance=a;case"stylesheet":n=qa(l.href);var u=e.querySelector(On(n));if(u)return t.state.loading|=4,t.instance=u,Ye(u),u;a=Id(l),(n=Ct.get(n))&&Ms(a,n),u=(e.ownerDocument||e).createElement("link"),Ye(u);var r=u;return r._p=new Promise(function(d,p){r.onload=d,r.onerror=p}),Ke(u,"link",a),t.state.loading|=4,ti(u,l.precedence,e),t.instance=u;case"script":return u=ka(l.src),(n=e.querySelector(Dn(u)))?(t.instance=n,Ye(n),n):(a=l,(n=Ct.get(u))&&(a=b({},l),ws(a,n)),e=e.ownerDocument||e,n=e.createElement("script"),Ye(n),Ke(n,"link",a),e.head.appendChild(n),t.instance=n);case"void":return null;default:throw Error(o(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(a=t.instance,t.state.loading|=4,ti(a,l.precedence,e));return t.instance}function ti(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,r=0;r<a.length;r++){var d=a[r];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 Ms(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function ws(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var li=null;function eh(e,t,l){if(li===null){var a=new Map,n=li=new Map;n.set(l,a)}else n=li,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[$a]||u[Xe]||e==="link"&&u.getAttribute("rel")==="stylesheet")&&u.namespaceURI!=="http://www.w3.org/2000/svg"){var r=u.getAttribute(t)||"";r=e+r;var d=a.get(r);d?d.push(u):a.set(r,[u])}}return a}function th(e,t,l){e=e.ownerDocument||e,e.head.insertBefore(l,t==="title"?e.querySelector("head > title"):null)}function zy(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 lh(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=qa(a.href),u=t.querySelector(On(n));if(u){t=u._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=ai.bind(e),t.then(e,e)),l.state.loading|=4,l.instance=u,Ye(u);return}u=t.ownerDocument||t,a=Id(a),(n=Ct.get(n))&&Ms(a,n),u=u.createElement("link"),Ye(u);var r=u;r._p=new Promise(function(d,p){r.onload=d,r.onerror=p}),Ke(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=ai.bind(e),t.addEventListener("load",l),t.addEventListener("error",l))}}var Os=0;function My(e,t){return e.stylesheets&&e.count===0&&ui(e,e.stylesheets),0<e.count||0<e.imgCount?function(l){var a=setTimeout(function(){if(e.stylesheets&&ui(e,e.stylesheets),e.unsuspend){var u=e.unsuspend;e.unsuspend=null,u()}},6e4+t);0<e.imgBytes&&Os===0&&(Os=62500*fy());var n=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&ui(e,e.stylesheets),e.unsuspend)){var u=e.unsuspend;e.unsuspend=null,u()}},(e.imgBytes>Os?50:800)+t);return e.unsuspend=l,function(){e.unsuspend=null,clearTimeout(a),clearTimeout(n)}}:null}function ai(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)ui(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var ni=null;function ui(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,ni=new Map,t.forEach(wy,e),ni=null,ai.call(e))}function wy(e,t){if(!(t.state.loading&4)){var l=ni.get(e);if(l)var a=l.get(null);else{l=new Map,ni.set(e,l);for(var n=e.querySelectorAll("link[data-precedence],style[data-precedence]"),u=0;u<n.length;u++){var r=n[u];(r.nodeName==="LINK"||r.getAttribute("media")!=="not all")&&(l.set(r.dataset.precedence,r),a=r)}a&&l.set(null,a)}n=t.instance,r=n.getAttribute("data-precedence"),u=l.get(r)||a,u===a&&l.set(null,n),l.set(r,n),this.count++,a=ai.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 Un={$$typeof:J,Provider:null,Consumer:null,_currentValue:ee,_currentValue2:ee,_threadCount:0};function Oy(e,t,l,a,n,u,r,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=Ri(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Ri(0),this.hiddenUpdates=Ri(null),this.identifierPrefix=a,this.onUncaughtError=n,this.onCaughtError=u,this.onRecoverableError=r,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=p,this.incompleteTransitions=new Map}function ah(e,t,l,a,n,u,r,d,p,N,M,U){return e=new Oy(e,t,l,r,p,N,M,U,d),t=1,u===!0&&(t|=24),u=mt(3,null,null,t),e.current=u,u.stateNode=e,t=dc(),t.refCount++,e.pooledCache=t,t.refCount++,u.memoizedState={element:a,isDehydrated:l,cache:t},yc(u),e}function nh(e){return e?(e=pa,e):pa}function uh(e,t,l,a,n,u){n=nh(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=xl(e,a,t),l!==null&&(st(l,e,t),hn(l,e,t))}function ih(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var l=e.retryLane;e.retryLane=l!==0&&l<t?l:t}}function Ds(e,t){ih(e,t),(e=e.alternate)&&ih(e,t)}function ch(e){if(e.tag===13||e.tag===31){var t=Ql(e,67108864);t!==null&&st(t,e,67108864),Ds(e,67108864)}}function sh(e){if(e.tag===13||e.tag===31){var t=bt();t=zi(t);var l=Ql(e,t);l!==null&&st(l,e,t),Ds(e,t)}}var ii=!0;function Dy(e,t,l,a){var n=w.T;w.T=null;var u=Q.p;try{Q.p=2,Us(e,t,l,a)}finally{Q.p=u,w.T=n}}function Uy(e,t,l,a){var n=w.T;w.T=null;var u=Q.p;try{Q.p=8,Us(e,t,l,a)}finally{Q.p=u,w.T=n}}function Us(e,t,l,a){if(ii){var n=Hs(a);if(n===null)xs(e,t,a,ci,l),oh(e,a);else if(By(n,e,t,l,a))a.stopPropagation();else if(oh(e,a),t&4&&-1<Hy.indexOf(e)){for(;n!==null;){var u=ia(n);if(u!==null)switch(u.tag){case 3:if(u=u.stateNode,u.current.memoizedState.isDehydrated){var r=ql(u.pendingLanes);if(r!==0){var d=u;for(d.pendingLanes|=2,d.entangledLanes|=2;r;){var p=1<<31-dt(r);d.entanglements[1]|=p,r&=~p}kt(u),(me&6)===0&&(Xu=ot()+500,zn(0))}}break;case 31:case 13:d=Ql(u,2),d!==null&&st(d,u,2),Vu(),Ds(u,2)}if(u=Hs(a),u===null&&xs(e,t,a,ci,l),u===n)break;n=u}n!==null&&a.stopPropagation()}else xs(e,t,a,null,l)}}function Hs(e){return e=Li(e),Bs(e)}var ci=null;function Bs(e){if(ci=null,e=ua(e),e!==null){var t=m(e);if(t===null)e=null;else{var l=t.tag;if(l===13){if(e=y(t),e!==null)return e;e=null}else if(l===31){if(e=j(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 ci=e,null}function rh(e){switch(e){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(xm()){case vr:return 2;case yr:return 8;case Wn:case jm:return 32;case pr:return 268435456;default:return 32}default:return 32}}var Ls=!1,wl=null,Ol=null,Dl=null,Hn=new Map,Bn=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 oh(e,t){switch(e){case"focusin":case"focusout":wl=null;break;case"dragenter":case"dragleave":Ol=null;break;case"mouseover":case"mouseout":Dl=null;break;case"pointerover":case"pointerout":Hn.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Bn.delete(t.pointerId)}}function Ln(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=ia(t),t!==null&&ch(t)),e):(e.eventSystemFlags|=a,t=e.targetContainers,n!==null&&t.indexOf(n)===-1&&t.push(n),e)}function By(e,t,l,a,n){switch(t){case"focusin":return wl=Ln(wl,e,t,l,a,n),!0;case"dragenter":return Ol=Ln(Ol,e,t,l,a,n),!0;case"mouseover":return Dl=Ln(Dl,e,t,l,a,n),!0;case"pointerover":var u=n.pointerId;return Hn.set(u,Ln(Hn.get(u)||null,e,t,l,a,n)),!0;case"gotpointercapture":return u=n.pointerId,Bn.set(u,Ln(Bn.get(u)||null,e,t,l,a,n)),!0}return!1}function fh(e){var t=ua(e.target);if(t!==null){var l=m(t);if(l!==null){if(t=l.tag,t===13){if(t=y(l),t!==null){e.blockedOn=t,Er(e.priority,function(){sh(l)});return}}else if(t===31){if(t=j(l),t!==null){e.blockedOn=t,Er(e.priority,function(){sh(l)});return}}else if(t===3&&l.stateNode.current.memoizedState.isDehydrated){e.blockedOn=l.tag===3?l.stateNode.containerInfo:null;return}}}e.blockedOn=null}function si(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var l=Hs(e.nativeEvent);if(l===null){l=e.nativeEvent;var a=new l.constructor(l.type,l);Bi=a,l.target.dispatchEvent(a),Bi=null}else return t=ia(l),t!==null&&ch(t),e.blockedOn=l,!1;t.shift()}return!0}function dh(e,t,l){si(e)&&l.delete(t)}function Ly(){Ls=!1,wl!==null&&si(wl)&&(wl=null),Ol!==null&&si(Ol)&&(Ol=null),Dl!==null&&si(Dl)&&(Dl=null),Hn.forEach(dh),Bn.forEach(dh)}function ri(e,t){e.blockedOn===t&&(e.blockedOn=null,Ls||(Ls=!0,i.unstable_scheduleCallback(i.unstable_NormalPriority,Ly)))}var oi=null;function hh(e){oi!==e&&(oi=e,i.unstable_scheduleCallback(i.unstable_NormalPriority,function(){oi===e&&(oi=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(Bs(a||l)===null)continue;break}var u=ia(l);u!==null&&(e.splice(t,3),t-=3,Hc(u,{pending:!0,data:n,method:l.method,action:a},a,n))}}))}function Ya(e){function t(p){return ri(p,e)}wl!==null&&ri(wl,e),Ol!==null&&ri(Ol,e),Dl!==null&&ri(Dl,e),Hn.forEach(t),Bn.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);)fh(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],r=n[lt]||null;if(typeof u=="function")r||hh(l);else if(r){var d=null;if(u&&u.hasAttribute("formAction")){if(n=u,r=u[lt]||null)d=r.formAction;else if(Bs(n)!==null)continue}else d=r.action;typeof d=="function"?l[a+1]=d:(l.splice(a,3),a-=3),hh(l)}}}function mh(){function e(u){u.canIntercept&&u.info==="react-transition"&&u.intercept({handler:function(){return new Promise(function(r){return n=r})},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 qs(e){this._internalRoot=e}fi.prototype.render=qs.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(o(409));var l=t.current,a=bt();uh(l,a,e,t,null,null)},fi.prototype.unmount=qs.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;uh(e.current,2,null,e,null,null),Vu(),t[na]=null}};function fi(e){this._internalRoot=e}fi.prototype.unstable_scheduleHydration=function(e){if(e){var t=jr();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&&fh(e)}};var vh=s.version;if(vh!=="19.2.5")throw Error(o(527,vh,"19.2.5"));Q.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(o(188)):(e=Object.keys(e).join(","),Error(o(268,e)));return e=v(t),e=e!==null?T(e):null,e=e===null?null:e.stateNode,e};var qy={bundleType:0,version:"19.2.5",rendererPackageName:"react-dom",currentDispatcherRef:w,reconcilerVersion:"19.2.5"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var di=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!di.isDisabled&&di.supportsFiber)try{Za=di.inject(qy),ft=di}catch{}}return kn.createRoot=function(e,t){if(!h(e))throw Error(o(299));var l=!1,a="",n=jf,u=Ef,r=Tf;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&&(r=t.onRecoverableError)),t=ah(e,1,!1,null,null,l,a,null,n,u,r,mh),e[na]=t.current,Ss(e),new qs(t)},kn.hydrateRoot=function(e,t,l){if(!h(e))throw Error(o(299));var a=!1,n="",u=jf,r=Ef,d=Tf,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&&(r=l.onCaughtError),l.onRecoverableError!==void 0&&(d=l.onRecoverableError),l.formState!==void 0&&(p=l.formState)),t=ah(e,1,!0,t,l??null,a,n,p,u,r,d,mh),t.context=nh(null),l=t.current,a=bt(),a=zi(a),n=Sl(a),n.callback=null,xl(l,n,a),l=a,t.current.lanes=l,Ja(t,l),kt(t),e[na]=t.current,Ss(e),new fi(t)},kn.version="19.2.5",kn}var _h;function $y(){if(_h)return Gs.exports;_h=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(),Gs.exports=Jy(),Gs.exports}var Wy=$y();/**
50
50
  * react-router v7.14.2
51
51
  *
52
52
  * Copyright (c) Remix Software Inc.
@@ -55,6 +55,6 @@ Error generating stack: `+a.message+`
55
55
  * LICENSE.md file in the root directory of this source tree.
56
56
  *
57
57
  * @license MIT
58
- */var Ah="popstate";function Nh(i){return typeof i=="object"&&i!=null&&"pathname"in i&&"search"in i&&"hash"in i&&"state"in i&&"key"in i}function Fy(i={}){function s(o,h){var v;let m=(v=h.state)==null?void 0:v.masked,{pathname:y,search:j,hash:g}=m||o.location;return Ws("",{pathname:y,search:j,hash:g},h.state&&h.state.usr||null,h.state&&h.state.key||"default",m?{pathname:o.location.pathname,search:o.location.search,hash:o.location.hash}:void 0)}function f(o,h){return typeof h=="string"?h:Qn(h)}return Py(s,f,null,i)}function ze(i,s){if(i===!1||i===null||typeof i>"u")throw new Error(s)}function Xt(i,s){if(!i){typeof console<"u"&&console.warn(s);try{throw new Error(s)}catch{}}}function Iy(){return Math.random().toString(36).substring(2,10)}function Rh(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 Ws(i,s,f=null,o,h){return{pathname:typeof i=="string"?i:i.pathname,search:"",hash:"",...typeof s=="string"?Xa(s):s,state:f,key:s&&s.key||o||Iy(),unstable_mask:h}}function Qn({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 Xa(i){let s={};if(i){let f=i.indexOf("#");f>=0&&(s.hash=i.substring(f),i=i.substring(0,f));let o=i.indexOf("?");o>=0&&(s.search=i.substring(o),i=i.substring(0,o)),i&&(s.pathname=i)}return s}function Py(i,s,f,o={}){let{window:h=document.defaultView,v5Compat:m=!1}=o,y=h.history,j="POP",g=null,v=T();v==null&&(v=0,y.replaceState({...y.state,idx:v},""));function T(){return(y.state||{idx:null}).idx}function b(){j="POP";let k=T(),L=k==null?null:k-v;v=k,g&&g({action:j,location:B.location,delta:L})}function C(k,L){j="PUSH";let Q=Nh(k)?k:Ws(B.location,k,L);v=T()+1;let J=Rh(Q,v),K=B.createHref(Q.unstable_mask||Q);try{y.pushState(J,"",K)}catch(G){if(G instanceof DOMException&&G.name==="DataCloneError")throw G;h.location.assign(K)}m&&g&&g({action:j,location:B.location,delta:1})}function q(k,L){j="REPLACE";let Q=Nh(k)?k:Ws(B.location,k,L);v=T();let J=Rh(Q,v),K=B.createHref(Q.unstable_mask||Q);y.replaceState(J,"",K),m&&g&&g({action:j,location:B.location,delta:0})}function D(k){return ep(k)}let B={get action(){return j},get location(){return i(h,y)},listen(k){if(g)throw new Error("A history only accepts one active listener");return h.addEventListener(Ah,b),g=k,()=>{h.removeEventListener(Ah,b),g=null}},createHref(k){return s(h,k)},createURL:D,encodeLocation(k){let L=D(k);return{pathname:L.pathname,search:L.search,hash:L.hash}},push:C,replace:q,go(k){return y.go(k)}};return B}function ep(i,s=!1){let f="http://localhost";typeof window<"u"&&(f=window.location.origin!=="null"?window.location.origin:window.location.href),ze(f,"No window.location.(origin|href) available to create URL");let o=typeof i=="string"?i:Qn(i);return o=o.replace(/ $/,"%20"),!s&&o.startsWith("//")&&(o=f+o),new URL(o,f)}function Qh(i,s,f="/"){return tp(i,s,f,!1)}function tp(i,s,f,o){let h=typeof s=="string"?Xa(s):s,m=ol(h.pathname||"/",f);if(m==null)return null;let y=Vh(i);lp(y);let j=null;for(let g=0;j==null&&g<y.length;++g){let v=hp(m);j=fp(y[g],v,o)}return j}function Vh(i,s=[],f=[],o="",h=!1){let m=(y,j,g=h,v)=>{let T={relativePath:v===void 0?y.path||"":v,caseSensitive:y.caseSensitive===!0,childrenIndex:j,route:y};if(T.relativePath.startsWith("/")){if(!T.relativePath.startsWith(o)&&g)return;ze(T.relativePath.startsWith(o),`Absolute route path "${T.relativePath}" nested under path "${o}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),T.relativePath=T.relativePath.slice(o.length)}let b=Dt([o,T.relativePath]),C=f.concat(T);y.children&&y.children.length>0&&(ze(y.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${b}".`),Vh(y.children,s,C,b,g)),!(y.path==null&&!y.index)&&s.push({path:b,score:rp(b,y.index),routesMeta:C})};return i.forEach((y,j)=>{var g;if(y.path===""||!((g=y.path)!=null&&g.includes("?")))m(y,j);else for(let v of Zh(y.path))m(y,j,!0,v)}),s}function Zh(i){let s=i.split("/");if(s.length===0)return[];let[f,...o]=s,h=f.endsWith("?"),m=f.replace(/\?$/,"");if(o.length===0)return h?[m,""]:[m];let y=Zh(o.join("/")),j=[];return j.push(...y.map(g=>g===""?m:[m,g].join("/"))),h&&j.push(...y),j.map(g=>i.startsWith("/")&&g===""?"/":g)}function lp(i){i.sort((s,f)=>s.score!==f.score?f.score-s.score:op(s.routesMeta.map(o=>o.childrenIndex),f.routesMeta.map(o=>o.childrenIndex)))}var ap=/^:[\w-]+$/,np=3,up=2,ip=1,cp=10,sp=-2,zh=i=>i==="*";function rp(i,s){let f=i.split("/"),o=f.length;return f.some(zh)&&(o+=sp),s&&(o+=up),f.filter(h=>!zh(h)).reduce((h,m)=>h+(ap.test(m)?np:m===""?ip:cp),o)}function op(i,s){return i.length===s.length&&i.slice(0,-1).every((o,h)=>o===s[h])?i[i.length-1]-s[s.length-1]:0}function fp(i,s,f=!1){let{routesMeta:o}=i,h={},m="/",y=[];for(let j=0;j<o.length;++j){let g=o[j],v=j===o.length-1,T=m==="/"?s:s.slice(m.length)||"/",b=yi({path:g.relativePath,caseSensitive:g.caseSensitive,end:v},T),C=g.route;if(!b&&v&&f&&!o[o.length-1].route.index&&(b=yi({path:g.relativePath,caseSensitive:g.caseSensitive,end:!1},T)),!b)return null;Object.assign(h,b.params),y.push({params:h,pathname:Dt([m,b.pathname]),pathnameBase:pp(Dt([m,b.pathnameBase])),route:C}),b.pathnameBase!=="/"&&(m=Dt([m,b.pathnameBase]))}return y}function yi(i,s){typeof i=="string"&&(i={path:i,caseSensitive:!1,end:!0});let[f,o]=dp(i.path,i.caseSensitive,i.end),h=s.match(f);if(!h)return null;let m=h[0],y=m.replace(/(.)\/+$/,"$1"),j=h.slice(1);return{params:o.reduce((v,{paramName:T,isOptional:b},C)=>{if(T==="*"){let D=j[C]||"";y=m.slice(0,m.length-D.length).replace(/(.)\/+$/,"$1")}const q=j[C];return b&&!q?v[T]=void 0:v[T]=(q||"").replace(/%2F/g,"/"),v},{}),pathname:m,pathnameBase:y,pattern:i}}function dp(i,s=!1,f=!0){Xt(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 o=[],h="^"+i.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(y,j,g,v,T)=>{if(o.push({paramName:j,isOptional:g!=null}),g){let b=T.charAt(v+y.length);return b&&b!=="/"?"/([^\\/]*)":"(?:/([^\\/]*))?"}return"/([^\\/]+)"}).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return i.endsWith("*")?(o.push({paramName:"*"}),h+=i==="*"||i==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):f?h+="\\/*$":i!==""&&i!=="/"&&(h+="(?:(?=\\/|$))"),[new RegExp(h,s?void 0:"i"),o]}function hp(i){try{return i.split("/").map(s=>decodeURIComponent(s).replace(/\//g,"%2F")).join("/")}catch(s){return Xt(!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 ol(i,s){if(s==="/")return i;if(!i.toLowerCase().startsWith(s.toLowerCase()))return null;let f=s.endsWith("/")?s.length-1:s.length,o=i.charAt(f);return o&&o!=="/"?null:i.slice(f)||"/"}var mp=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i;function vp(i,s="/"){let{pathname:f,search:o="",hash:h=""}=typeof i=="string"?Xa(i):i,m;return f?(f=Jh(f),f.startsWith("/")?m=Ch(f.substring(1),"/"):m=Ch(f,s)):m=s,{pathname:m,search:gp(o),hash:bp(h)}}function Ch(i,s){let f=pi(s).split("/");return i.split("/").forEach(h=>{h===".."?f.length>1&&f.pop():h!=="."&&f.push(h)}),f.length>1?f.join("/"):"/"}function Zs(i,s,f,o){return`Cannot include a '${i}' character in a manually specified \`to.${s}\` field [${JSON.stringify(o)}]. 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 yp(i){return i.filter((s,f)=>f===0||s.route.path&&s.route.path.length>0)}function Kh(i){let s=yp(i);return s.map((f,o)=>o===s.length-1?f.pathname:f.pathnameBase)}function er(i,s,f,o=!1){let h;typeof i=="string"?h=Xa(i):(h={...i},ze(!h.pathname||!h.pathname.includes("?"),Zs("?","pathname","search",h)),ze(!h.pathname||!h.pathname.includes("#"),Zs("#","pathname","hash",h)),ze(!h.search||!h.search.includes("#"),Zs("#","search","hash",h)));let m=i===""||h.pathname==="",y=m?"/":h.pathname,j;if(y==null)j=f;else{let b=s.length-1;if(!o&&y.startsWith("..")){let C=y.split("/");for(;C[0]==="..";)C.shift(),b-=1;h.pathname=C.join("/")}j=b>=0?s[b]:"/"}let g=vp(h,j),v=y&&y!=="/"&&y.endsWith("/"),T=(m||y===".")&&f.endsWith("/");return!g.pathname.endsWith("/")&&(v||T)&&(g.pathname+="/"),g}var Jh=i=>i.replace(/\/\/+/g,"/"),Dt=i=>Jh(i.join("/")),pi=i=>i.replace(/\/+$/,""),pp=i=>pi(i).replace(/^\/*/,"/"),gp=i=>!i||i==="?"?"":i.startsWith("?")?i:"?"+i,bp=i=>!i||i==="#"?"":i.startsWith("#")?i:"#"+i,Sp=class{constructor(i,s,f,o=!1){this.status=i,this.statusText=s||"",this.internal=o,f instanceof Error?(this.data=f.toString(),this.error=f):this.data=f}};function xp(i){return i!=null&&typeof i.status=="number"&&typeof i.statusText=="string"&&typeof i.internal=="boolean"&&"data"in i}function jp(i){let s=i.map(f=>f.route.path).filter(Boolean);return Dt(s)||"/"}var $h=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function Wh(i,s){let f=i;if(typeof f!="string"||!mp.test(f))return{absoluteURL:void 0,isExternal:!1,to:f};let o=f,h=!1;if($h)try{let m=new URL(window.location.href),y=f.startsWith("//")?new URL(m.protocol+f):new URL(f),j=ol(y.pathname,s);y.origin===m.origin&&j!=null?f=j+y.search+y.hash:h=!0}catch{Xt(!1,`<Link to="${f}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}return{absoluteURL:o,isExternal:h,to:f}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var Fh=["POST","PUT","PATCH","DELETE"];new Set(Fh);var Ep=["GET",...Fh];new Set(Ep);var Qa=S.createContext(null);Qa.displayName="DataRouter";var gi=S.createContext(null);gi.displayName="DataRouterState";var Ih=S.createContext(!1);function Tp(){return S.useContext(Ih)}var Ph=S.createContext({isTransitioning:!1});Ph.displayName="ViewTransition";var _p=S.createContext(new Map);_p.displayName="Fetchers";var Ap=S.createContext(null);Ap.displayName="Await";var Ct=S.createContext(null);Ct.displayName="Navigation";var Zn=S.createContext(null);Zn.displayName="Location";var Qt=S.createContext({outlet:null,matches:[],isDataRoute:!1});Qt.displayName="Route";var tr=S.createContext(null);tr.displayName="RouteError";var em="REACT_ROUTER_ERROR",Np="REDIRECT",Rp="ROUTE_ERROR_RESPONSE";function zp(i){if(i.startsWith(`${em}:${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(`${em}:${Rp}:{`))try{let s=JSON.parse(i.slice(40));if(typeof s=="object"&&s&&typeof s.status=="number"&&typeof s.statusText=="string")return new Sp(s.status,s.statusText,s.data)}catch{}}function Mp(i,{relative:s}={}){ze(Kn(),"useHref() may be used only in the context of a <Router> component.");let{basename:f,navigator:o}=S.useContext(Ct),{hash:h,pathname:m,search:y}=Jn(i,{relative:s}),j=m;return f!=="/"&&(j=m==="/"?f:Dt([f,m])),o.createHref({pathname:j,search:y,hash:h})}function Kn(){return S.useContext(Zn)!=null}function fl(){return ze(Kn(),"useLocation() may be used only in the context of a <Router> component."),S.useContext(Zn).location}var tm="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function lm(i){S.useContext(Ct).static||S.useLayoutEffect(i)}function Op(){let{isDataRoute:i}=S.useContext(Qt);return i?Vp():wp()}function wp(){ze(Kn(),"useNavigate() may be used only in the context of a <Router> component.");let i=S.useContext(Qa),{basename:s,navigator:f}=S.useContext(Ct),{matches:o}=S.useContext(Qt),{pathname:h}=fl(),m=JSON.stringify(Kh(o)),y=S.useRef(!1);return lm(()=>{y.current=!0}),S.useCallback((g,v={})=>{if(Xt(y.current,tm),!y.current)return;if(typeof g=="number"){f.go(g);return}let T=er(g,JSON.parse(m),h,v.relative==="path");i==null&&s!=="/"&&(T.pathname=T.pathname==="/"?s:Dt([s,T.pathname])),(v.replace?f.replace:f.push)(T,v.state,v)},[s,f,m,h,i])}S.createContext(null);function lr(){let{matches:i}=S.useContext(Qt),s=i[i.length-1];return(s==null?void 0:s.params)??{}}function Jn(i,{relative:s}={}){let{matches:f}=S.useContext(Qt),{pathname:o}=fl(),h=JSON.stringify(Kh(f));return S.useMemo(()=>er(i,JSON.parse(h),o,s==="path"),[i,h,o,s])}function Dp(i,s){return am(i,s)}function am(i,s,f){var k;ze(Kn(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:o}=S.useContext(Ct),{matches:h}=S.useContext(Qt),m=h[h.length-1],y=m?m.params:{},j=m?m.pathname:"/",g=m?m.pathnameBase:"/",v=m&&m.route;{let L=v&&v.path||"";um(j,!v||L.endsWith("*")||L.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${j}" (under <Route path="${L}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.
58
+ */var Ah="popstate";function Nh(i){return typeof i=="object"&&i!=null&&"pathname"in i&&"search"in i&&"hash"in i&&"state"in i&&"key"in i}function Fy(i={}){function s(o,h){var v;let m=(v=h.state)==null?void 0:v.masked,{pathname:y,search:j,hash:g}=m||o.location;return Ws("",{pathname:y,search:j,hash:g},h.state&&h.state.usr||null,h.state&&h.state.key||"default",m?{pathname:o.location.pathname,search:o.location.search,hash:o.location.hash}:void 0)}function f(o,h){return typeof h=="string"?h:Qn(h)}return Py(s,f,null,i)}function ze(i,s){if(i===!1||i===null||typeof i>"u")throw new Error(s)}function Xt(i,s){if(!i){typeof console<"u"&&console.warn(s);try{throw new Error(s)}catch{}}}function Iy(){return Math.random().toString(36).substring(2,10)}function Rh(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 Ws(i,s,f=null,o,h){return{pathname:typeof i=="string"?i:i.pathname,search:"",hash:"",...typeof s=="string"?Xa(s):s,state:f,key:s&&s.key||o||Iy(),unstable_mask:h}}function Qn({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 Xa(i){let s={};if(i){let f=i.indexOf("#");f>=0&&(s.hash=i.substring(f),i=i.substring(0,f));let o=i.indexOf("?");o>=0&&(s.search=i.substring(o),i=i.substring(0,o)),i&&(s.pathname=i)}return s}function Py(i,s,f,o={}){let{window:h=document.defaultView,v5Compat:m=!1}=o,y=h.history,j="POP",g=null,v=T();v==null&&(v=0,y.replaceState({...y.state,idx:v},""));function T(){return(y.state||{idx:null}).idx}function b(){j="POP";let k=T(),L=k==null?null:k-v;v=k,g&&g({action:j,location:B.location,delta:L})}function z(k,L){j="PUSH";let X=Nh(k)?k:Ws(B.location,k,L);v=T()+1;let J=Rh(X,v),V=B.createHref(X.unstable_mask||X);try{y.pushState(J,"",V)}catch(Y){if(Y instanceof DOMException&&Y.name==="DataCloneError")throw Y;h.location.assign(V)}m&&g&&g({action:j,location:B.location,delta:1})}function q(k,L){j="REPLACE";let X=Nh(k)?k:Ws(B.location,k,L);v=T();let J=Rh(X,v),V=B.createHref(X.unstable_mask||X);y.replaceState(J,"",V),m&&g&&g({action:j,location:B.location,delta:0})}function D(k){return ep(k)}let B={get action(){return j},get location(){return i(h,y)},listen(k){if(g)throw new Error("A history only accepts one active listener");return h.addEventListener(Ah,b),g=k,()=>{h.removeEventListener(Ah,b),g=null}},createHref(k){return s(h,k)},createURL:D,encodeLocation(k){let L=D(k);return{pathname:L.pathname,search:L.search,hash:L.hash}},push:z,replace:q,go(k){return y.go(k)}};return B}function ep(i,s=!1){let f="http://localhost";typeof window<"u"&&(f=window.location.origin!=="null"?window.location.origin:window.location.href),ze(f,"No window.location.(origin|href) available to create URL");let o=typeof i=="string"?i:Qn(i);return o=o.replace(/ $/,"%20"),!s&&o.startsWith("//")&&(o=f+o),new URL(o,f)}function Qh(i,s,f="/"){return tp(i,s,f,!1)}function tp(i,s,f,o){let h=typeof s=="string"?Xa(s):s,m=ol(h.pathname||"/",f);if(m==null)return null;let y=Vh(i);lp(y);let j=null;for(let g=0;j==null&&g<y.length;++g){let v=hp(m);j=fp(y[g],v,o)}return j}function Vh(i,s=[],f=[],o="",h=!1){let m=(y,j,g=h,v)=>{let T={relativePath:v===void 0?y.path||"":v,caseSensitive:y.caseSensitive===!0,childrenIndex:j,route:y};if(T.relativePath.startsWith("/")){if(!T.relativePath.startsWith(o)&&g)return;ze(T.relativePath.startsWith(o),`Absolute route path "${T.relativePath}" nested under path "${o}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),T.relativePath=T.relativePath.slice(o.length)}let b=Ut([o,T.relativePath]),z=f.concat(T);y.children&&y.children.length>0&&(ze(y.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${b}".`),Vh(y.children,s,z,b,g)),!(y.path==null&&!y.index)&&s.push({path:b,score:rp(b,y.index),routesMeta:z})};return i.forEach((y,j)=>{var g;if(y.path===""||!((g=y.path)!=null&&g.includes("?")))m(y,j);else for(let v of Zh(y.path))m(y,j,!0,v)}),s}function Zh(i){let s=i.split("/");if(s.length===0)return[];let[f,...o]=s,h=f.endsWith("?"),m=f.replace(/\?$/,"");if(o.length===0)return h?[m,""]:[m];let y=Zh(o.join("/")),j=[];return j.push(...y.map(g=>g===""?m:[m,g].join("/"))),h&&j.push(...y),j.map(g=>i.startsWith("/")&&g===""?"/":g)}function lp(i){i.sort((s,f)=>s.score!==f.score?f.score-s.score:op(s.routesMeta.map(o=>o.childrenIndex),f.routesMeta.map(o=>o.childrenIndex)))}var ap=/^:[\w-]+$/,np=3,up=2,ip=1,cp=10,sp=-2,zh=i=>i==="*";function rp(i,s){let f=i.split("/"),o=f.length;return f.some(zh)&&(o+=sp),s&&(o+=up),f.filter(h=>!zh(h)).reduce((h,m)=>h+(ap.test(m)?np:m===""?ip:cp),o)}function op(i,s){return i.length===s.length&&i.slice(0,-1).every((o,h)=>o===s[h])?i[i.length-1]-s[s.length-1]:0}function fp(i,s,f=!1){let{routesMeta:o}=i,h={},m="/",y=[];for(let j=0;j<o.length;++j){let g=o[j],v=j===o.length-1,T=m==="/"?s:s.slice(m.length)||"/",b=yi({path:g.relativePath,caseSensitive:g.caseSensitive,end:v},T),z=g.route;if(!b&&v&&f&&!o[o.length-1].route.index&&(b=yi({path:g.relativePath,caseSensitive:g.caseSensitive,end:!1},T)),!b)return null;Object.assign(h,b.params),y.push({params:h,pathname:Ut([m,b.pathname]),pathnameBase:pp(Ut([m,b.pathnameBase])),route:z}),b.pathnameBase!=="/"&&(m=Ut([m,b.pathnameBase]))}return y}function yi(i,s){typeof i=="string"&&(i={path:i,caseSensitive:!1,end:!0});let[f,o]=dp(i.path,i.caseSensitive,i.end),h=s.match(f);if(!h)return null;let m=h[0],y=m.replace(/(.)\/+$/,"$1"),j=h.slice(1);return{params:o.reduce((v,{paramName:T,isOptional:b},z)=>{if(T==="*"){let D=j[z]||"";y=m.slice(0,m.length-D.length).replace(/(.)\/+$/,"$1")}const q=j[z];return b&&!q?v[T]=void 0:v[T]=(q||"").replace(/%2F/g,"/"),v},{}),pathname:m,pathnameBase:y,pattern:i}}function dp(i,s=!1,f=!0){Xt(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 o=[],h="^"+i.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(y,j,g,v,T)=>{if(o.push({paramName:j,isOptional:g!=null}),g){let b=T.charAt(v+y.length);return b&&b!=="/"?"/([^\\/]*)":"(?:/([^\\/]*))?"}return"/([^\\/]+)"}).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return i.endsWith("*")?(o.push({paramName:"*"}),h+=i==="*"||i==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):f?h+="\\/*$":i!==""&&i!=="/"&&(h+="(?:(?=\\/|$))"),[new RegExp(h,s?void 0:"i"),o]}function hp(i){try{return i.split("/").map(s=>decodeURIComponent(s).replace(/\//g,"%2F")).join("/")}catch(s){return Xt(!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 ol(i,s){if(s==="/")return i;if(!i.toLowerCase().startsWith(s.toLowerCase()))return null;let f=s.endsWith("/")?s.length-1:s.length,o=i.charAt(f);return o&&o!=="/"?null:i.slice(f)||"/"}var mp=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i;function vp(i,s="/"){let{pathname:f,search:o="",hash:h=""}=typeof i=="string"?Xa(i):i,m;return f?(f=Jh(f),f.startsWith("/")?m=Ch(f.substring(1),"/"):m=Ch(f,s)):m=s,{pathname:m,search:gp(o),hash:bp(h)}}function Ch(i,s){let f=pi(s).split("/");return i.split("/").forEach(h=>{h===".."?f.length>1&&f.pop():h!=="."&&f.push(h)}),f.length>1?f.join("/"):"/"}function Zs(i,s,f,o){return`Cannot include a '${i}' character in a manually specified \`to.${s}\` field [${JSON.stringify(o)}]. 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 yp(i){return i.filter((s,f)=>f===0||s.route.path&&s.route.path.length>0)}function Kh(i){let s=yp(i);return s.map((f,o)=>o===s.length-1?f.pathname:f.pathnameBase)}function er(i,s,f,o=!1){let h;typeof i=="string"?h=Xa(i):(h={...i},ze(!h.pathname||!h.pathname.includes("?"),Zs("?","pathname","search",h)),ze(!h.pathname||!h.pathname.includes("#"),Zs("#","pathname","hash",h)),ze(!h.search||!h.search.includes("#"),Zs("#","search","hash",h)));let m=i===""||h.pathname==="",y=m?"/":h.pathname,j;if(y==null)j=f;else{let b=s.length-1;if(!o&&y.startsWith("..")){let z=y.split("/");for(;z[0]==="..";)z.shift(),b-=1;h.pathname=z.join("/")}j=b>=0?s[b]:"/"}let g=vp(h,j),v=y&&y!=="/"&&y.endsWith("/"),T=(m||y===".")&&f.endsWith("/");return!g.pathname.endsWith("/")&&(v||T)&&(g.pathname+="/"),g}var Jh=i=>i.replace(/\/\/+/g,"/"),Ut=i=>Jh(i.join("/")),pi=i=>i.replace(/\/+$/,""),pp=i=>pi(i).replace(/^\/*/,"/"),gp=i=>!i||i==="?"?"":i.startsWith("?")?i:"?"+i,bp=i=>!i||i==="#"?"":i.startsWith("#")?i:"#"+i,Sp=class{constructor(i,s,f,o=!1){this.status=i,this.statusText=s||"",this.internal=o,f instanceof Error?(this.data=f.toString(),this.error=f):this.data=f}};function xp(i){return i!=null&&typeof i.status=="number"&&typeof i.statusText=="string"&&typeof i.internal=="boolean"&&"data"in i}function jp(i){let s=i.map(f=>f.route.path).filter(Boolean);return Ut(s)||"/"}var $h=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function Wh(i,s){let f=i;if(typeof f!="string"||!mp.test(f))return{absoluteURL:void 0,isExternal:!1,to:f};let o=f,h=!1;if($h)try{let m=new URL(window.location.href),y=f.startsWith("//")?new URL(m.protocol+f):new URL(f),j=ol(y.pathname,s);y.origin===m.origin&&j!=null?f=j+y.search+y.hash:h=!0}catch{Xt(!1,`<Link to="${f}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}return{absoluteURL:o,isExternal:h,to:f}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var Fh=["POST","PUT","PATCH","DELETE"];new Set(Fh);var Ep=["GET",...Fh];new Set(Ep);var Qa=S.createContext(null);Qa.displayName="DataRouter";var gi=S.createContext(null);gi.displayName="DataRouterState";var Ih=S.createContext(!1);function Tp(){return S.useContext(Ih)}var Ph=S.createContext({isTransitioning:!1});Ph.displayName="ViewTransition";var _p=S.createContext(new Map);_p.displayName="Fetchers";var Ap=S.createContext(null);Ap.displayName="Await";var Mt=S.createContext(null);Mt.displayName="Navigation";var Zn=S.createContext(null);Zn.displayName="Location";var Qt=S.createContext({outlet:null,matches:[],isDataRoute:!1});Qt.displayName="Route";var tr=S.createContext(null);tr.displayName="RouteError";var em="REACT_ROUTER_ERROR",Np="REDIRECT",Rp="ROUTE_ERROR_RESPONSE";function zp(i){if(i.startsWith(`${em}:${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(`${em}:${Rp}:{`))try{let s=JSON.parse(i.slice(40));if(typeof s=="object"&&s&&typeof s.status=="number"&&typeof s.statusText=="string")return new Sp(s.status,s.statusText,s.data)}catch{}}function Mp(i,{relative:s}={}){ze(Kn(),"useHref() may be used only in the context of a <Router> component.");let{basename:f,navigator:o}=S.useContext(Mt),{hash:h,pathname:m,search:y}=Jn(i,{relative:s}),j=m;return f!=="/"&&(j=m==="/"?f:Ut([f,m])),o.createHref({pathname:j,search:y,hash:h})}function Kn(){return S.useContext(Zn)!=null}function fl(){return ze(Kn(),"useLocation() may be used only in the context of a <Router> component."),S.useContext(Zn).location}var tm="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function lm(i){S.useContext(Mt).static||S.useLayoutEffect(i)}function wp(){let{isDataRoute:i}=S.useContext(Qt);return i?Vp():Op()}function Op(){ze(Kn(),"useNavigate() may be used only in the context of a <Router> component.");let i=S.useContext(Qa),{basename:s,navigator:f}=S.useContext(Mt),{matches:o}=S.useContext(Qt),{pathname:h}=fl(),m=JSON.stringify(Kh(o)),y=S.useRef(!1);return lm(()=>{y.current=!0}),S.useCallback((g,v={})=>{if(Xt(y.current,tm),!y.current)return;if(typeof g=="number"){f.go(g);return}let T=er(g,JSON.parse(m),h,v.relative==="path");i==null&&s!=="/"&&(T.pathname=T.pathname==="/"?s:Ut([s,T.pathname])),(v.replace?f.replace:f.push)(T,v.state,v)},[s,f,m,h,i])}S.createContext(null);function lr(){let{matches:i}=S.useContext(Qt),s=i[i.length-1];return(s==null?void 0:s.params)??{}}function Jn(i,{relative:s}={}){let{matches:f}=S.useContext(Qt),{pathname:o}=fl(),h=JSON.stringify(Kh(f));return S.useMemo(()=>er(i,JSON.parse(h),o,s==="path"),[i,h,o,s])}function Dp(i,s){return am(i,s)}function am(i,s,f){var k;ze(Kn(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:o}=S.useContext(Mt),{matches:h}=S.useContext(Qt),m=h[h.length-1],y=m?m.params:{},j=m?m.pathname:"/",g=m?m.pathnameBase:"/",v=m&&m.route;{let L=v&&v.path||"";um(j,!v||L.endsWith("*")||L.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${j}" (under <Route path="${L}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.
59
59
 
60
- Please change the parent <Route path="${L}"> to <Route path="${L==="/"?"*":`${L}/*`}">.`)}let T=fl(),b;if(s){let L=typeof s=="string"?Xa(s):s;ze(g==="/"||((k=L.pathname)==null?void 0:k.startsWith(g)),`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 "${g}" but pathname "${L.pathname}" was given in the \`location\` prop.`),b=L}else b=T;let C=b.pathname||"/",q=C;if(g!=="/"){let L=g.replace(/^\//,"").split("/");q="/"+C.replace(/^\//,"").split("/").slice(L.length).join("/")}let D=Qh(i,{pathname:q});Xt(v||D!=null,`No routes matched location "${b.pathname}${b.search}${b.hash}" `),Xt(D==null||D[D.length-1].route.element!==void 0||D[D.length-1].route.Component!==void 0||D[D.length-1].route.lazy!==void 0,`Matched leaf route at location "${b.pathname}${b.search}${b.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`);let B=qp(D&&D.map(L=>Object.assign({},L,{params:Object.assign({},y,L.params),pathname:Dt([g,o.encodeLocation?o.encodeLocation(L.pathname.replace(/%/g,"%25").replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:L.pathname]),pathnameBase:L.pathnameBase==="/"?g:Dt([g,o.encodeLocation?o.encodeLocation(L.pathnameBase.replace(/%/g,"%25").replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:L.pathnameBase])})),h,f);return s&&B?S.createElement(Zn.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",unstable_mask:void 0,...b},navigationType:"POP"}},B):B}function Up(){let i=Qp(),s=xp(i)?`${i.status} ${i.statusText}`:i instanceof Error?i.message:JSON.stringify(i),f=i instanceof Error?i.stack:null,o="rgba(200,200,200, 0.5)",h={padding:"0.5rem",backgroundColor:o},m={padding:"2px 4px",backgroundColor:o},y=null;return console.error("Error handled by React Router default ErrorBoundary:",i),y=S.createElement(S.Fragment,null,S.createElement("p",null,"💿 Hey developer 👋"),S.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",S.createElement("code",{style:m},"ErrorBoundary")," or"," ",S.createElement("code",{style:m},"errorElement")," prop on your route.")),S.createElement(S.Fragment,null,S.createElement("h2",null,"Unexpected Application Error!"),S.createElement("h3",{style:{fontStyle:"italic"}},s),f?S.createElement("pre",{style:h},f):null,y)}var Hp=S.createElement(Up,null),nm=class extends S.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?S.createElement(Qt.Provider,{value:this.props.routeContext},S.createElement(tr.Provider,{value:i,children:this.props.component})):this.props.children;return this.context?S.createElement(Bp,{error:i},s):s}};nm.contextType=Ih;var Ks=new WeakMap;function Bp({children:i,error:s}){let{basename:f}=S.useContext(Ct);if(typeof s=="object"&&s&&"digest"in s&&typeof s.digest=="string"){let o=zp(s.digest);if(o){let h=Ks.get(s);if(h)throw h;let m=Wh(o.location,f);if($h&&!Ks.get(s))if(m.isExternal||o.reloadDocument)window.location.href=m.absoluteURL||m.to;else{const y=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(m.to,{replace:o.replace}));throw Ks.set(s,y),y}return S.createElement("meta",{httpEquiv:"refresh",content:`0;url=${m.absoluteURL||m.to}`})}}return i}function Lp({routeContext:i,match:s,children:f}){let o=S.useContext(Qa);return o&&o.static&&o.staticContext&&(s.route.errorElement||s.route.ErrorBoundary)&&(o.staticContext._deepestRenderedBoundaryId=s.route.id),S.createElement(Qt.Provider,{value:i},f)}function qp(i,s=[],f){let o=f==null?void 0:f.state;if(i==null){if(!o)return null;if(o.errors)i=o.matches;else if(s.length===0&&!o.initialized&&o.matches.length>0)i=o.matches;else return null}let h=i,m=o==null?void 0:o.errors;if(m!=null){let T=h.findIndex(b=>b.route.id&&(m==null?void 0:m[b.route.id])!==void 0);ze(T>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(m).join(",")}`),h=h.slice(0,Math.min(h.length,T+1))}let y=!1,j=-1;if(f&&o){y=o.renderFallback;for(let T=0;T<h.length;T++){let b=h[T];if((b.route.HydrateFallback||b.route.hydrateFallbackElement)&&(j=T),b.route.id){let{loaderData:C,errors:q}=o,D=b.route.loader&&!C.hasOwnProperty(b.route.id)&&(!q||q[b.route.id]===void 0);if(b.route.lazy||D){f.isStatic&&(y=!0),j>=0?h=h.slice(0,j+1):h=[h[0]];break}}}}let g=f==null?void 0:f.onError,v=o&&g?(T,b)=>{var C,q;g(T,{location:o.location,params:((q=(C=o.matches)==null?void 0:C[0])==null?void 0:q.params)??{},unstable_pattern:jp(o.matches),errorInfo:b})}:void 0;return h.reduceRight((T,b,C)=>{let q,D=!1,B=null,k=null;o&&(q=m&&b.route.id?m[b.route.id]:void 0,B=b.route.errorElement||Hp,y&&(j<0&&C===0?(um("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),D=!0,k=null):j===C&&(D=!0,k=b.route.hydrateFallbackElement||null)));let L=s.concat(h.slice(0,C+1)),Q=()=>{let J;return q?J=B:D?J=k:b.route.Component?J=S.createElement(b.route.Component,null):b.route.element?J=b.route.element:J=T,S.createElement(Lp,{match:b,routeContext:{outlet:T,matches:L,isDataRoute:o!=null},children:J})};return o&&(b.route.ErrorBoundary||b.route.errorElement||C===0)?S.createElement(nm,{location:o.location,revalidation:o.revalidation,component:B,error:q,children:Q(),routeContext:{outlet:null,matches:L,isDataRoute:!0},onError:v}):Q()},null)}function ar(i){return`${i} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function kp(i){let s=S.useContext(Qa);return ze(s,ar(i)),s}function Yp(i){let s=S.useContext(gi);return ze(s,ar(i)),s}function Gp(i){let s=S.useContext(Qt);return ze(s,ar(i)),s}function nr(i){let s=Gp(i),f=s.matches[s.matches.length-1];return ze(f.route.id,`${i} can only be used on routes that contain a unique "id"`),f.route.id}function Xp(){return nr("useRouteId")}function Qp(){var o;let i=S.useContext(tr),s=Yp("useRouteError"),f=nr("useRouteError");return i!==void 0?i:(o=s.errors)==null?void 0:o[f]}function Vp(){let{router:i}=kp("useNavigate"),s=nr("useNavigate"),f=S.useRef(!1);return lm(()=>{f.current=!0}),S.useCallback(async(h,m={})=>{Xt(f.current,tm),f.current&&(typeof h=="number"?await i.navigate(h):await i.navigate(h,{fromRouteId:s,...m}))},[i,s])}var Mh={};function um(i,s,f){!s&&!Mh[i]&&(Mh[i]=!0,Xt(!1,f))}S.memo(Zp);function Zp({routes:i,future:s,state:f,isStatic:o,onError:h}){return am(i,void 0,{state:f,isStatic:o,onError:h})}function Yt(i){ze(!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 Kp({basename:i="/",children:s=null,location:f,navigationType:o="POP",navigator:h,static:m=!1,unstable_useTransitions:y}){ze(!Kn(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let j=i.replace(/^\/*/,"/"),g=S.useMemo(()=>({basename:j,navigator:h,static:m,unstable_useTransitions:y,future:{}}),[j,h,m,y]);typeof f=="string"&&(f=Xa(f));let{pathname:v="/",search:T="",hash:b="",state:C=null,key:q="default",unstable_mask:D}=f,B=S.useMemo(()=>{let k=ol(v,j);return k==null?null:{location:{pathname:k,search:T,hash:b,state:C,key:q,unstable_mask:D},navigationType:o}},[j,v,T,b,C,q,o,D]);return Xt(B!=null,`<Router basename="${j}"> is not able to match the URL "${v}${T}${b}" because it does not start with the basename, so the <Router> won't render anything.`),B==null?null:S.createElement(Ct.Provider,{value:g},S.createElement(Zn.Provider,{children:s,value:B}))}function Oh({children:i,location:s}){return Dp(Fs(i),s)}function Fs(i,s=[]){let f=[];return S.Children.forEach(i,(o,h)=>{if(!S.isValidElement(o))return;let m=[...s,h];if(o.type===S.Fragment){f.push.apply(f,Fs(o.props.children,m));return}ze(o.type===Yt,`[${typeof o.type=="string"?o.type:o.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),ze(!o.props.index||!o.props.children,"An index route cannot have child routes.");let y={id:o.props.id||m.join("-"),caseSensitive:o.props.caseSensitive,element:o.props.element,Component:o.props.Component,index:o.props.index,path:o.props.path,middleware:o.props.middleware,loader:o.props.loader,action:o.props.action,hydrateFallbackElement:o.props.hydrateFallbackElement,HydrateFallback:o.props.HydrateFallback,errorElement:o.props.errorElement,ErrorBoundary:o.props.ErrorBoundary,hasErrorBoundary:o.props.hasErrorBoundary===!0||o.props.ErrorBoundary!=null||o.props.errorElement!=null,shouldRevalidate:o.props.shouldRevalidate,handle:o.props.handle,lazy:o.props.lazy};o.props.children&&(y.children=Fs(o.props.children,m)),f.push(y)}),f}var mi="get",vi="application/x-www-form-urlencoded";function bi(i){return typeof HTMLElement<"u"&&i instanceof HTMLElement}function Jp(i){return bi(i)&&i.tagName.toLowerCase()==="button"}function $p(i){return bi(i)&&i.tagName.toLowerCase()==="form"}function Wp(i){return bi(i)&&i.tagName.toLowerCase()==="input"}function Fp(i){return!!(i.metaKey||i.altKey||i.ctrlKey||i.shiftKey)}function Ip(i,s){return i.button===0&&(!s||s==="_self")&&!Fp(i)}var hi=null;function Pp(){if(hi===null)try{new FormData(document.createElement("form"),0),hi=!1}catch{hi=!0}return hi}var eg=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function Js(i){return i!=null&&!eg.has(i)?(Xt(!1,`"${i}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${vi}"`),null):i}function tg(i,s){let f,o,h,m,y;if($p(i)){let j=i.getAttribute("action");o=j?ol(j,s):null,f=i.getAttribute("method")||mi,h=Js(i.getAttribute("enctype"))||vi,m=new FormData(i)}else if(Jp(i)||Wp(i)&&(i.type==="submit"||i.type==="image")){let j=i.form;if(j==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let g=i.getAttribute("formaction")||j.getAttribute("action");if(o=g?ol(g,s):null,f=i.getAttribute("formmethod")||j.getAttribute("method")||mi,h=Js(i.getAttribute("formenctype"))||Js(j.getAttribute("enctype"))||vi,m=new FormData(j,i),!Pp()){let{name:v,type:T,value:b}=i;if(T==="image"){let C=v?`${v}.`:"";m.append(`${C}x`,"0"),m.append(`${C}y`,"0")}else v&&m.append(v,b)}}else{if(bi(i))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');f=mi,o=null,h=vi,y=i}return m&&h==="text/plain"&&(y=m,m=void 0),{action:o,method:f.toLowerCase(),encType:h,formData:m,body:y}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function ur(i,s){if(i===!1||i===null||typeof i>"u")throw new Error(s)}function im(i,s,f,o){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}_.${o}`:h.pathname=`${h.pathname}.${o}`:h.pathname==="/"?h.pathname=`_root.${o}`:s&&ol(h.pathname,s)==="/"?h.pathname=`${pi(s)}/_root.${o}`:h.pathname=`${pi(h.pathname)}.${o}`,h}async function lg(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 ag(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 ng(i,s,f){let o=await Promise.all(i.map(async h=>{let m=s.routes[h.route.id];if(m){let y=await lg(m,f);return y.links?y.links():[]}return[]}));return sg(o.flat(1).filter(ag).filter(h=>h.rel==="stylesheet"||h.rel==="preload").map(h=>h.rel==="stylesheet"?{...h,rel:"prefetch",as:"style"}:{...h,rel:"prefetch"}))}function wh(i,s,f,o,h,m){let y=(g,v)=>f[v]?g.route.id!==f[v].route.id:!0,j=(g,v)=>{var T;return f[v].pathname!==g.pathname||((T=f[v].route.path)==null?void 0:T.endsWith("*"))&&f[v].params["*"]!==g.params["*"]};return m==="assets"?s.filter((g,v)=>y(g,v)||j(g,v)):m==="data"?s.filter((g,v)=>{var b;let T=o.routes[g.route.id];if(!T||!T.hasLoader)return!1;if(y(g,v)||j(g,v))return!0;if(g.route.shouldRevalidate){let C=g.route.shouldRevalidate({currentUrl:new URL(h.pathname+h.search+h.hash,window.origin),currentParams:((b=f[0])==null?void 0:b.params)||{},nextUrl:new URL(i,window.origin),nextParams:g.params,defaultShouldRevalidate:!0});if(typeof C=="boolean")return C}return!0}):[]}function ug(i,s,{includeHydrateFallback:f}={}){return ig(i.map(o=>{let h=s.routes[o.route.id];if(!h)return[];let m=[h.module];return h.clientActionModule&&(m=m.concat(h.clientActionModule)),h.clientLoaderModule&&(m=m.concat(h.clientLoaderModule)),f&&h.hydrateFallbackModule&&(m=m.concat(h.hydrateFallbackModule)),h.imports&&(m=m.concat(h.imports)),m}).flat(1))}function ig(i){return[...new Set(i)]}function cg(i){let s={},f=Object.keys(i).sort();for(let o of f)s[o]=i[o];return s}function sg(i,s){let f=new Set;return new Set(s),i.reduce((o,h)=>{let m=JSON.stringify(cg(h));return f.has(m)||(f.add(m),o.push({key:m,link:h})),o},[])}function ir(){let i=S.useContext(Qa);return ur(i,"You must render this element inside a <DataRouterContext.Provider> element"),i}function rg(){let i=S.useContext(gi);return ur(i,"You must render this element inside a <DataRouterStateContext.Provider> element"),i}var cr=S.createContext(void 0);cr.displayName="FrameworkContext";function sr(){let i=S.useContext(cr);return ur(i,"You must render this element inside a <HydratedRouter> element"),i}function og(i,s){let f=S.useContext(cr),[o,h]=S.useState(!1),[m,y]=S.useState(!1),{onFocus:j,onBlur:g,onMouseEnter:v,onMouseLeave:T,onTouchStart:b}=s,C=S.useRef(null);S.useEffect(()=>{if(i==="render"&&y(!0),i==="viewport"){let B=L=>{L.forEach(Q=>{y(Q.isIntersecting)})},k=new IntersectionObserver(B,{threshold:.5});return C.current&&k.observe(C.current),()=>{k.disconnect()}}},[i]),S.useEffect(()=>{if(o){let B=setTimeout(()=>{y(!0)},100);return()=>{clearTimeout(B)}}},[o]);let q=()=>{h(!0)},D=()=>{h(!1),y(!1)};return f?i!=="intent"?[m,C,{}]:[m,C,{onFocus:Yn(j,q),onBlur:Yn(g,D),onMouseEnter:Yn(v,q),onMouseLeave:Yn(T,D),onTouchStart:Yn(b,q)}]:[!1,C,{}]}function Yn(i,s){return f=>{i&&i(f),f.defaultPrevented||s(f)}}function fg({page:i,...s}){let f=Tp(),{router:o}=ir(),h=S.useMemo(()=>Qh(o.routes,i,o.basename),[o.routes,i,o.basename]);return h?f?S.createElement(hg,{page:i,matches:h,...s}):S.createElement(mg,{page:i,matches:h,...s}):null}function dg(i){let{manifest:s,routeModules:f}=sr(),[o,h]=S.useState([]);return S.useEffect(()=>{let m=!1;return ng(i,s,f).then(y=>{m||h(y)}),()=>{m=!0}},[i,s,f]),o}function hg({page:i,matches:s,...f}){let o=fl(),{future:h}=sr(),{basename:m}=ir(),y=S.useMemo(()=>{if(i===o.pathname+o.search+o.hash)return[];let j=im(i,m,h.unstable_trailingSlashAwareDataRequests,"rsc"),g=!1,v=[];for(let T of s)typeof T.route.shouldRevalidate=="function"?g=!0:v.push(T.route.id);return g&&v.length>0&&j.searchParams.set("_routes",v.join(",")),[j.pathname+j.search]},[m,h.unstable_trailingSlashAwareDataRequests,i,o,s]);return S.createElement(S.Fragment,null,y.map(j=>S.createElement("link",{key:j,rel:"prefetch",as:"fetch",href:j,...f})))}function mg({page:i,matches:s,...f}){let o=fl(),{future:h,manifest:m,routeModules:y}=sr(),{basename:j}=ir(),{loaderData:g,matches:v}=rg(),T=S.useMemo(()=>wh(i,s,v,m,o,"data"),[i,s,v,m,o]),b=S.useMemo(()=>wh(i,s,v,m,o,"assets"),[i,s,v,m,o]),C=S.useMemo(()=>{if(i===o.pathname+o.search+o.hash)return[];let B=new Set,k=!1;if(s.forEach(Q=>{var K;let J=m.routes[Q.route.id];!J||!J.hasLoader||(!T.some(G=>G.route.id===Q.route.id)&&Q.route.id in g&&((K=y[Q.route.id])!=null&&K.shouldRevalidate)||J.hasClientLoader?k=!0:B.add(Q.route.id))}),B.size===0)return[];let L=im(i,j,h.unstable_trailingSlashAwareDataRequests,"data");return k&&B.size>0&&L.searchParams.set("_routes",s.filter(Q=>B.has(Q.route.id)).map(Q=>Q.route.id).join(",")),[L.pathname+L.search]},[j,h.unstable_trailingSlashAwareDataRequests,g,o,m,T,s,i,y]),q=S.useMemo(()=>ug(b,m),[b,m]),D=dg(b);return S.createElement(S.Fragment,null,C.map(B=>S.createElement("link",{key:B,rel:"prefetch",as:"fetch",href:B,...f})),q.map(B=>S.createElement("link",{key:B,rel:"modulepreload",href:B,...f})),D.map(({key:B,link:k})=>S.createElement("link",{key:B,nonce:f.nonce,...k,crossOrigin:k.crossOrigin??f.crossOrigin})))}function vg(...i){return s=>{i.forEach(f=>{typeof f=="function"?f(s):f!=null&&(f.current=s)})}}var yg=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{yg&&(window.__reactRouterVersion="7.14.2")}catch{}function pg({basename:i,children:s,unstable_useTransitions:f,window:o}){let h=S.useRef();h.current==null&&(h.current=Fy({window:o,v5Compat:!0}));let m=h.current,[y,j]=S.useState({action:m.action,location:m.location}),g=S.useCallback(v=>{f===!1?j(v):S.startTransition(()=>j(v))},[f]);return S.useLayoutEffect(()=>m.listen(g),[m,g]),S.createElement(Kp,{basename:i,children:s,location:y.location,navigationType:y.action,navigator:m,unstable_useTransitions:f})}var cm=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Je=S.forwardRef(function({onClick:s,discover:f="render",prefetch:o="none",relative:h,reloadDocument:m,replace:y,unstable_mask:j,state:g,target:v,to:T,preventScrollReset:b,viewTransition:C,unstable_defaultShouldRevalidate:q,...D},B){let{basename:k,navigator:L,unstable_useTransitions:Q}=S.useContext(Ct),J=typeof T=="string"&&cm.test(T),K=Wh(T,k);T=K.to;let G=Mp(T,{relative:h}),Y=fl(),X=null;if(j){let Ue=er(j,[],Y.unstable_mask?Y.unstable_mask.pathname:"/",!0);k!=="/"&&(Ue.pathname=Ue.pathname==="/"?k:Dt([k,Ue.pathname])),X=L.createHref(Ue)}let[fe,Re,Ut]=og(o,D),gt=xg(T,{replace:y,unstable_mask:j,state:g,target:v,preventScrollReset:b,relative:h,viewTransition:C,unstable_defaultShouldRevalidate:q,unstable_useTransitions:Q});function $e(Ue){s&&s(Ue),Ue.defaultPrevented||gt(Ue)}let Ht=!(K.isExternal||m),bt=S.createElement("a",{...D,...Ut,href:(Ht?X:void 0)||K.absoluteURL||G,onClick:Ht?$e:s,ref:vg(B,Re),target:v,"data-discover":!J&&f==="render"?"true":void 0});return fe&&!J?S.createElement(S.Fragment,null,bt,S.createElement(fg,{page:G})):bt});Je.displayName="Link";var gg=S.forwardRef(function({"aria-current":s="page",caseSensitive:f=!1,className:o="",end:h=!1,style:m,to:y,viewTransition:j,children:g,...v},T){let b=Jn(y,{relative:v.relative}),C=fl(),q=S.useContext(gi),{navigator:D,basename:B}=S.useContext(Ct),k=q!=null&&Ag(b)&&j===!0,L=D.encodeLocation?D.encodeLocation(b).pathname:b.pathname,Q=C.pathname,J=q&&q.navigation&&q.navigation.location?q.navigation.location.pathname:null;f||(Q=Q.toLowerCase(),J=J?J.toLowerCase():null,L=L.toLowerCase()),J&&B&&(J=ol(J,B)||J);const K=L!=="/"&&L.endsWith("/")?L.length-1:L.length;let G=Q===L||!h&&Q.startsWith(L)&&Q.charAt(K)==="/",Y=J!=null&&(J===L||!h&&J.startsWith(L)&&J.charAt(L.length)==="/"),X={isActive:G,isPending:Y,isTransitioning:k},fe=G?s:void 0,Re;typeof o=="function"?Re=o(X):Re=[o,G?"active":null,Y?"pending":null,k?"transitioning":null].filter(Boolean).join(" ");let Ut=typeof m=="function"?m(X):m;return S.createElement(Je,{...v,"aria-current":fe,className:Re,ref:T,style:Ut,to:y,viewTransition:j},typeof g=="function"?g(X):g)});gg.displayName="NavLink";var bg=S.forwardRef(({discover:i="render",fetcherKey:s,navigate:f,reloadDocument:o,replace:h,state:m,method:y=mi,action:j,onSubmit:g,relative:v,preventScrollReset:T,viewTransition:b,unstable_defaultShouldRevalidate:C,...q},D)=>{let{unstable_useTransitions:B}=S.useContext(Ct),k=Tg(),L=_g(j,{relative:v}),Q=y.toLowerCase()==="get"?"get":"post",J=typeof j=="string"&&cm.test(j),K=G=>{if(g&&g(G),G.defaultPrevented)return;G.preventDefault();let Y=G.nativeEvent.submitter,X=(Y==null?void 0:Y.getAttribute("formmethod"))||y,fe=()=>k(Y||G.currentTarget,{fetcherKey:s,method:X,navigate:f,replace:h,state:m,relative:v,preventScrollReset:T,viewTransition:b,unstable_defaultShouldRevalidate:C});B&&f!==!1?S.startTransition(()=>fe()):fe()};return S.createElement("form",{ref:D,method:Q,action:L,onSubmit:o?g:K,...q,"data-discover":!J&&i==="render"?"true":void 0})});bg.displayName="Form";function Sg(i){return`${i} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function sm(i){let s=S.useContext(Qa);return ze(s,Sg(i)),s}function xg(i,{target:s,replace:f,unstable_mask:o,state:h,preventScrollReset:m,relative:y,viewTransition:j,unstable_defaultShouldRevalidate:g,unstable_useTransitions:v}={}){let T=Op(),b=fl(),C=Jn(i,{relative:y});return S.useCallback(q=>{if(Ip(q,s)){q.preventDefault();let D=f!==void 0?f:Qn(b)===Qn(C),B=()=>T(i,{replace:D,unstable_mask:o,state:h,preventScrollReset:m,relative:y,viewTransition:j,unstable_defaultShouldRevalidate:g});v?S.startTransition(()=>B()):B()}},[b,T,C,f,o,h,s,i,m,y,j,g,v])}var jg=0,Eg=()=>`__${String(++jg)}__`;function Tg(){let{router:i}=sm("useSubmit"),{basename:s}=S.useContext(Ct),f=Xp(),o=i.fetch,h=i.navigate;return S.useCallback(async(m,y={})=>{let{action:j,method:g,encType:v,formData:T,body:b}=tg(m,s);if(y.navigate===!1){let C=y.fetcherKey||Eg();await o(C,f,y.action||j,{unstable_defaultShouldRevalidate:y.unstable_defaultShouldRevalidate,preventScrollReset:y.preventScrollReset,formData:T,body:b,formMethod:y.method||g,formEncType:y.encType||v,flushSync:y.flushSync})}else await h(y.action||j,{unstable_defaultShouldRevalidate:y.unstable_defaultShouldRevalidate,preventScrollReset:y.preventScrollReset,formData:T,body:b,formMethod:y.method||g,formEncType:y.encType||v,replace:y.replace,state:y.state,fromRouteId:f,flushSync:y.flushSync,viewTransition:y.viewTransition})},[o,h,s,f])}function _g(i,{relative:s}={}){let{basename:f}=S.useContext(Ct),o=S.useContext(Qt);ze(o,"useFormAction must be used inside a RouteContext");let[h]=o.matches.slice(-1),m={...Jn(i||".",{relative:s})},y=fl();if(i==null){m.search=y.search;let j=new URLSearchParams(m.search),g=j.getAll("index");if(g.some(T=>T==="")){j.delete("index"),g.filter(b=>b).forEach(b=>j.append("index",b));let T=j.toString();m.search=T?`?${T}`:""}}return(!i||i===".")&&h.route.index&&(m.search=m.search?m.search.replace(/^\?/,"?index&"):"?index"),f!=="/"&&(m.pathname=m.pathname==="/"?f:Dt([f,m.pathname])),Qn(m)}function Ag(i,{relative:s}={}){let f=S.useContext(Ph);ze(f!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:o}=sm("useViewTransitionState"),h=Jn(i,{relative:s});if(!f.isTransitioning)return!1;let m=ol(f.currentLocation.pathname,o)||f.currentLocation.pathname,y=ol(f.nextLocation.pathname,o)||f.nextLocation.pathname;return yi(h.pathname,y)!=null||yi(h.pathname,m)!=null}const rm=/^\/vault\/([^/]+)\/admin(?=\/|$)/;function om(){if(typeof window>"u")return null;const i=window.location.pathname.match(rm);if(!i)return null;try{return decodeURIComponent(i[1])}catch{return null}}function Ng(){if(typeof window>"u")return"";const i=window.location.pathname,s=i.match(rm);return s?`/vault/${s[1]}/admin`:i==="/admin"||i.startsWith("/admin/")?"/admin":""}let Bl=null,Gt=null,aa=null,rl=null,Dh=!1;const Rg=.8,zg=1e3,Cg=3e4;function Mg(){if(typeof window>"u")return;const i=window.location.hash;if(!i||i.length<2)return;const s=new URLSearchParams(i.slice(1)),f=s.get("token");if(!f)return;Bl=f,Gt=null,s.delete("token");const o=s.toString(),h=o.length>0?`#${o}`:"",m=`${window.location.pathname}${window.location.search}${h}`;window.history.replaceState(null,"",m)}function rr(){return Bl}function Og(){Bl=null,Gt=null,rl=null,Si()}async function Vn(i){if(typeof window>"u")return{kind:"network-error",message:"no window"};let s;try{s=await fetch(`/admin/vault-admin-token/${encodeURIComponent(i)}`,{method:"GET",headers:{accept:"application/json"},credentials:"same-origin"})}catch(o){return{kind:"network-error",message:o instanceof Error?o.message:String(o)}}if(s.status===401||s.status===403||s.status===404)return{kind:"auth-required",status:s.status};if(!s.ok)return{kind:"network-error",message:`hub returned ${s.status}`};let f;try{f=await s.json()}catch(o){return{kind:"network-error",message:o instanceof Error?o.message:"could not parse mint response"}}return typeof f.token!="string"||f.token.length===0?{kind:"network-error",message:"mint response missing token"}:(Bl=f.token,Gt=f.expires_at?wg(f.expires_at):null,rl=i,fm(),Hg(),{kind:"ok",token:f.token})}function wg(i){const s=Date.parse(i);return Number.isNaN(s)?null:s}async function Is(i){if(Bl){if(Gt===null||Gt>Date.now())return{kind:"ok",token:Bl};Bl=null,Gt=null,Si()}return Vn(i)}async function Dg(i){typeof window>"u"||Bl||await Vn(i).catch(()=>{})}function fm(){if(Si(),Gt===null||rl===null||typeof document<"u"&&document.visibilityState==="hidden")return;const i=Date.now(),s=Gt-i;if(s<=0)return;const f=Math.max(Math.floor(s*Rg),zg);aa=setTimeout(()=>{Ug()},f)}function Si(){aa!==null&&(clearTimeout(aa),aa=null)}async function Ug(){if(aa=null,rl===null)return;const i=await Vn(rl);i.kind!=="ok"&&(typeof console<"u"&&console.warn("[vault-admin-spa] proactive token refresh failed; will retry once",i),aa=setTimeout(()=>{aa=null,rl!==null&&Vn(rl).catch(()=>{})},Cg))}function Hg(){Dh||typeof document>"u"||(Dh=!0,document.addEventListener("visibilitychange",()=>{if(document.visibilityState==="hidden"){Si();return}if(rl!==null){if(Gt!==null&&Gt<=Date.now()){Vn(rl).catch(()=>{});return}fm()}}))}class Te extends Error{constructor(s,f){super(f),this.status=s,this.name="HttpError"}}async function Pe(i,s,f={}){let o=rr();if(!o){const v=await Is(i);if(v.kind!=="ok")throw new Te(401,"no admin token — sign in to the hub to refresh");o=v.token}const{headers:h,...m}=f,y=v=>({accept:"application/json",...h??{},authorization:`Bearer ${v}`}),j=await fetch(s,{...m,headers:y(o)});if(j.status!==401)return j;Og();const g=await Is(i);return g.kind!=="ok"?j:fetch(s,{...m,headers:y(g.token)})}async function Bg(){const i=await fetch("/vaults/list",{headers:{accept:"application/json"}});if(i.status===404)return[];if(!i.ok)throw new Te(i.status,`vaults/list fetch failed: ${i.status}`);return(await i.json()).vaults??[]}async function Lg(i){const s=await Pe(i,`/vault/${encodeURIComponent(i)}/`);if(!s.ok)throw new Te(s.status,await ct(s));return await s.json()}async function qg(i){const s=await Pe(i,`/vault/${encodeURIComponent(i)}/.parachute/mirror`);if(!s.ok)throw new Te(s.status,await ct(s));return await s.json()}async function kg(i,s){const f=await Pe(i,`/vault/${encodeURIComponent(i)}/.parachute/mirror`,{method:"PUT",headers:{"content-type":"application/json"},body:JSON.stringify(s)});if(!f.ok)throw new Te(f.status,await ct(f));return await f.json()}async function Yg(i){const s=await Pe(i,`/vault/${encodeURIComponent(i)}/.parachute/mirror/run-now`,{method:"POST"});if(!s.ok)throw new Te(s.status,await ct(s));return await s.json()}async function Gg(i){const s=await Pe(i,`/vault/${encodeURIComponent(i)}/.parachute/mirror/push-now`,{method:"POST"});if(!s.ok)throw new Te(s.status,await ct(s));return await s.json()}async function dm(i){const s=await Pe(i,`/vault/${encodeURIComponent(i)}/.parachute/mirror/auth`);if(!s.ok)throw new Te(s.status,await ct(s));return await s.json()}async function Xg(i){const s=await Pe(i,`/vault/${encodeURIComponent(i)}/.parachute/mirror/auth`,{method:"DELETE"});if(!s.ok)throw new Te(s.status,await ct(s));return await s.json()}async function Qg(i){const s=await Pe(i,`/vault/${encodeURIComponent(i)}/.parachute/mirror/auth/github/device-code`,{method:"POST"});if(!s.ok)throw new Te(s.status,await ct(s));return await s.json()}async function Vg(i,s){const f=await Pe(i,`/vault/${encodeURIComponent(i)}/.parachute/mirror/auth/github/poll`,{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify({polling_id:s})});if(!f.ok&&f.status!==404)throw new Te(f.status,await ct(f));return await f.json()}async function Zg(i,s){const f=await Pe(i,`/vault/${encodeURIComponent(i)}/.parachute/mirror/auth/pat`,{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify(s)});if(!f.ok)throw new Te(f.status,await ct(f));return await f.json()}async function hm(i){const s=await Pe(i,`/vault/${encodeURIComponent(i)}/.parachute/mirror/auth/github/repos`);if(!s.ok)throw new Te(s.status,await ct(s));return await s.json()}async function Kg(i,s){const f=await Pe(i,`/vault/${encodeURIComponent(i)}/.parachute/mirror/auth/github/create-repo`,{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify(s)});if(!f.ok)throw new Te(f.status,await ct(f));return await f.json()}async function Jg(i,s){const f=await Pe(i,`/vault/${encodeURIComponent(i)}/.parachute/mirror/auth/github/select-repo`,{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify(s)});if(!f.ok)throw new Te(f.status,await ct(f));return await f.json()}async function $g(i,s){const f=await Pe(i,`/vault/${encodeURIComponent(i)}/.parachute/mirror/import`,{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify(s)});if(!f.ok)throw new Te(f.status,await ct(f));return await f.json()}async function ct(i){try{const s=await i.text(),f=JSON.parse(s);if(f.error_description)return f.error_description;if(f.message)return f.message;if(f.error)return f.error;if(s)return s}catch{}return`${i.status} ${i.statusText}`}function mm(i){const s=i.split(".");if(s.length!==3)return null;try{const f=s[1].replace(/-/g,"+").replace(/_/g,"/"),o=f.length%4===0?"":"=".repeat(4-f.length%4),h=atob(f+o),m=JSON.parse(h);return m===null||typeof m!="object"?null:m}catch{return null}}function Wg(i){if(!i)return[];const s=mm(i);if(!s)return[];const f=s.scope;if(typeof f=="string"&&f.length>0)return f.split(/\s+/).filter(h=>h.length>0);const o=s.scopes;return Array.isArray(o)?o.filter(h=>typeof h=="string"&&h.length>0):[]}function vm(i){return Wg(rr()).includes(`vault:${i}:admin`)}function ym(){const i=rr();if(!i)return null;const s=mm(i);if(!s)return null;const f=s.iss;return typeof f!="string"||f.length===0?null:f.replace(/\/$/,"")}const Uh=5e3;function or({vaultName:i,status:s,onRecovered:f}){S.useEffect(()=>{let y=!1,j=null;const g=async()=>{if(y||typeof document<"u"&&document.visibilityState!=="visible")return;const T=await Is(i);if(!y){if(T.kind==="ok"){f();return}j=setTimeout(()=>void g(),Uh)}},v=()=>{typeof document>"u"||document.visibilityState==="visible"&&(j!==null&&(clearTimeout(j),j=null),g())};return j=setTimeout(()=>void g(),Uh),typeof document<"u"&&document.addEventListener("visibilitychange",v),()=>{y=!0,j!==null&&clearTimeout(j),typeof document<"u"&&document.removeEventListener("visibilitychange",v)}},[i,f]);const o=Fg(),h=`/login?next=${encodeURIComponent(o)}`,m=s===404?"This hub doesn't host a vault by that name.":"You're not signed in to the hub.";return c.jsxs("div",{className:"warn-banner",role:"status",children:[c.jsxs("p",{style:{margin:"0 0 0.5rem"},children:[m," ",c.jsx("a",{href:h,children:"Sign in to the hub →"})]}),c.jsx("p",{className:"dim",style:{margin:0,fontSize:"0.85rem"},children:"After signing in, this page will refresh automatically."})]})}function Fg(){return typeof window>"u"?"/":`${window.location.pathname}${window.location.search}${window.location.hash}`}function Hh({vaultName:i}={}){const s=lr(),f=i??s.name,o=i!==void 0,h=o?"/tokens":`/vault/${encodeURIComponent(f??"")}/tokens`,m=o?"/mirror":`/vault/${encodeURIComponent(f??"")}/mirror`,[y,j]=S.useState({kind:"loading"}),[g,v]=S.useState(0),T=S.useCallback(()=>v(q=>q+1),[]);if(S.useEffect(()=>{let q=!1;if(!f){j({kind:"missing"});return}return j({kind:"loading"}),Lg(f).then(D=>{q||j({kind:"ok",vault:D})}).catch(D=>{if(q)return;if(D instanceof Te){if(D.status===401||D.status===403){j({kind:"auth-required",status:D.status});return}if(D.status===404){j({kind:"missing"});return}j({kind:"error",message:`${D.status}: ${D.message}`});return}const B=D instanceof Error?D.message:String(D);j({kind:"error",message:B})}),()=>{q=!0}},[f,g]),y.kind==="loading")return c.jsxs("div",{children:[c.jsx("h2",{children:"Vault"}),c.jsx("p",{className:"muted",children:"Loading…"})]});if(y.kind==="auth-required")return c.jsxs("div",{children:[c.jsxs("h2",{children:["Vault ",c.jsx("code",{children:f})]}),c.jsx(or,{vaultName:f??"",status:y.status,onRecovered:T}),o?null:c.jsx(Je,{to:"/",children:"← Back to vaults"})]});if(y.kind==="missing")return c.jsxs("div",{children:[c.jsx("h2",{children:"Vault not found"}),c.jsxs("p",{className:"muted",children:["No vault named ",c.jsx("code",{children:f})," is registered on this server."]}),o?null:c.jsx(Je,{to:"/",children:"← Back to vaults"})]});if(y.kind==="error")return c.jsxs("div",{children:[c.jsxs("h2",{children:["Vault ",c.jsx("code",{children:f})]}),c.jsx("div",{className:"error-banner",children:c.jsx("code",{children:y.message})}),o?null:c.jsx(Je,{to:"/",children:"← Back to vaults"})]});const{vault:b}=y,C=`/vault/${b.name}`;return c.jsxs("div",{children:[c.jsxs("div",{className:"list-header",children:[c.jsxs("h2",{children:["Vault ",c.jsx("code",{children:b.name})]}),o?null:c.jsx(Je,{to:"/",className:"muted",children:"← All vaults"})]}),c.jsxs("div",{className:"kv section",children:[c.jsx("div",{children:"Name"}),c.jsx("div",{children:c.jsx("code",{children:b.name})}),b.description?c.jsxs(c.Fragment,{children:[c.jsx("div",{children:"Description"}),c.jsx("div",{children:b.description})]}):null,c.jsx("div",{children:"Mount"}),c.jsx("div",{children:c.jsx("code",{children:C})}),b.createdAt?c.jsxs(c.Fragment,{children:[c.jsx("div",{children:"Created"}),c.jsx("div",{children:c.jsx("code",{children:b.createdAt})})]}):null]}),c.jsxs("div",{className:"section",children:[c.jsx("h3",{style:{margin:"0 0 0.85rem",fontSize:"1rem",fontWeight:500},children:"Stats"}),c.jsxs("div",{className:"stats",children:[c.jsxs("div",{className:"stat",children:[c.jsx("div",{className:"label",children:"Notes"}),c.jsx("div",{className:"value",children:b.stats.totalNotes})]}),c.jsxs("div",{className:"stat",children:[c.jsx("div",{className:"label",children:"Tags"}),c.jsx("div",{className:"value",children:b.stats.tagCount})]}),c.jsxs("div",{className:"stat",children:[c.jsx("div",{className:"label",children:"Attachments"}),c.jsx("div",{className:"value",children:b.stats.attachmentCount})]}),c.jsxs("div",{className:"stat",children:[c.jsx("div",{className:"label",children:"Links"}),c.jsx("div",{className:"value",children:b.stats.linkCount})]})]})]}),c.jsxs("div",{className:"section",children:[c.jsx("h3",{style:{margin:"0 0 0.85rem",fontSize:"1rem",fontWeight:500},children:"Manage"}),c.jsxs("ul",{className:"manage-list",children:[c.jsxs("li",{children:[c.jsx(Je,{to:h,children:"Tokens →"}),c.jsxs("span",{className:"dim",children:[" mint, list, and revoke ",c.jsx("code",{children:"pvt_*"})," tokens"]})]}),c.jsxs("li",{children:[c.jsx(Je,{to:m,children:"Git backup →"}),c.jsx("span",{className:"dim",children:" mirror this vault to a git repository on a schedule, or on demand"})]}),c.jsx(Ig,{vaultName:b.name})]})]})]})}function Ig({vaultName:i}){const s=ym();if(!s)return c.jsxs("li",{children:[c.jsx("span",{children:"Permissions →"}),c.jsxs("span",{className:"dim",children:[" ","grants are managed on hub (the OAuth issuer); link will be live when hub ships its permissions UI."]})]});const f=`${s}/hub/permissions?vault=${encodeURIComponent(i)}`;return c.jsxs("li",{children:[c.jsx("a",{href:f,children:"Permissions →"}),c.jsxs("span",{className:"dim",children:[" ","grants are managed on hub (the OAuth issuer); link will be live when hub ships its permissions UI."]})]})}const Pg=[{value:"events",label:"On change (default)"},{value:"manual",label:"Manual only"}],e0=[{id:"history",label:"History",subtext:"Local audit trail. Hidden under vault data. Events-driven.",apply:i=>({...i,enabled:!0,location:"internal",sync_mode:"events",auto_commit:!0,auto_push:!1})},{id:"live",label:"Live Mirror",subtext:"Visible folder. Open in Obsidian, push to GitHub. Events-driven.",apply:i=>({...i,enabled:!0,location:"external",sync_mode:"events",auto_commit:!0})},{id:"manual",label:"Manual Export",subtext:"Snapshot on demand. No auto-fire.",apply:i=>({...i,enabled:!0,location:"external",sync_mode:"manual",auto_commit:!0,auto_push:!1})}];function Bh({vaultName:i}={}){const s=lr(),f=i??s.name,o=i!==void 0,h=o?"/":`/vault/${encodeURIComponent(f??"")}`,[m,y]=S.useState({kind:"loading"}),[j,g]=S.useState(0);S.useEffect(()=>{let T=!1;if(f)return y({kind:"loading"}),qg(f).then(b=>{T||y({kind:"ok",snapshot:b})}).catch(b=>{if(T)return;if(b instanceof Te&&(b.status===401||b.status===403)){y({kind:"auth-required",status:b.status});return}const C=b instanceof Error?b.message:String(b);y({kind:"error",message:C})}),()=>{T=!0}},[f,j]);const v=S.useCallback(()=>g(T=>T+1),[]);return f?c.jsxs("div",{children:[c.jsxs("div",{className:"list-header",children:[c.jsxs("h2",{children:["Git backup for ",c.jsx("code",{children:f})]}),c.jsx(Je,{to:h,className:"muted",children:"← Vault detail"})]}),m.kind==="loading"?c.jsx("p",{className:"muted",children:"Loading…"}):null,m.kind==="auth-required"?c.jsx(or,{vaultName:f,status:m.status,onRecovered:v}):null,m.kind==="error"?c.jsx("div",{className:"error-banner",children:c.jsx("code",{children:m.message})}):null,m.kind==="ok"?c.jsx(t0,{vaultName:f,snapshot:m.snapshot,onRefresh:()=>g(T=>T+1),onSnapshot:T=>y({kind:"ok",snapshot:T})}):null]}):c.jsxs("div",{children:[c.jsx("h2",{children:"Mirror"}),c.jsx("p",{className:"muted",children:"Missing vault name."}),o?null:c.jsx(Je,{to:"/",children:"← Back to vaults"})]})}function t0({vaultName:i,snapshot:s,onRefresh:f,onSnapshot:o}){const h=vm(i),[m,y]=S.useState(null),[j,g]=S.useState(null);return S.useEffect(()=>{if(!h)return;let v=!1;return dm(i).then(T=>{v||y(T)}).catch(T=>{v||g(T instanceof Error?T.message:String(T))}),()=>{v=!0}},[i,h]),c.jsxs(c.Fragment,{children:[c.jsx(l0,{status:s.status,config:s.config,creds:m,canRun:h&&s.status.enabled,vaultName:i,onSnapshot:o}),h?null:c.jsxs("div",{className:"warn-banner",children:["You're viewing this page with a read-only token. Saving config + manual run require ",c.jsxs("code",{children:["vault:",i,":admin"]}),`. Re-enter from the hub directory's "Manage" link with an admin-scoped session to make changes.`]}),c.jsx(a0,{vaultName:i,initial:s.config,readOnly:!h,creds:m,onSaved:v=>{o(v),f()}}),h?c.jsx(n0,{vaultName:i,creds:m,credsError:j,onCredsChanged:y,onCredsSaved:()=>{f()},locationIsExternal:s.config.location==="external"}):null,h?c.jsx(r0,{vaultName:i,creds:m}):null]})}function l0({status:i,config:s,creds:f,canRun:o,vaultName:h,onSnapshot:m}){const y=s.enabled,[j,g]=S.useState(!1),[v,T]=S.useState(!1),[b,C]=S.useState(null),q=async()=>{g(!0),C(null);try{const L=await Yg(h);m(L)}catch(L){C(L instanceof Error?L.message:String(L))}finally{g(!1)}},D=async()=>{T(!0),C(null);try{const L=await Gg(h);m(L)}catch(L){C(L instanceof Error?L.message:String(L))}finally{T(!1)}},B=!!(f!=null&&f.active_method)||s.auto_push,k=!o||v||!B;return c.jsxs("div",{className:"section",children:[c.jsx("h3",{style:{margin:"0 0 0.85rem",fontSize:"1rem",fontWeight:500},children:"Status"}),c.jsxs("div",{className:"kv",children:[c.jsx("div",{children:"Enabled"}),c.jsx("div",{children:y?c.jsx("code",{children:"yes"}):c.jsx("code",{children:"no"})}),c.jsx("div",{children:"Watch loop"}),c.jsx("div",{children:i.watch_running?c.jsx("code",{children:"running"}):c.jsx("code",{children:"stopped"})}),c.jsx("div",{children:"Path"}),c.jsx("div",{children:i.mirror_path?c.jsx("code",{children:i.mirror_path}):c.jsx("span",{className:"dim",children:"—"})}),c.jsx("div",{children:"Last export"}),c.jsx("div",{children:i.last_export_at?c.jsxs(c.Fragment,{children:[c.jsx("code",{children:i.last_export_at}),i.last_export_notes_count!==null?c.jsxs("span",{className:"dim",children:[" ","· ",i.last_export_notes_count," note",i.last_export_notes_count===1?"":"s"]}):null]}):c.jsx("span",{className:"dim",children:"never"})}),c.jsx("div",{children:"Last commit"}),c.jsx("div",{children:i.last_commit_sha?c.jsx("code",{children:i.last_commit_sha.slice(0,10)}):c.jsx("span",{className:"dim",children:"—"})}),c.jsx("div",{children:"Last push"}),c.jsx("div",{children:i.last_push_at?c.jsxs(c.Fragment,{children:[c.jsx("code",{children:i.last_push_at}),i.last_push_sha?c.jsxs("span",{className:"dim",children:[" ","· ",c.jsx("code",{children:i.last_push_sha.slice(0,10)})]}):null]}):c.jsx("span",{className:"dim",children:"never"})}),i.commits_unpushed!==null&&i.commits_unpushed>0?c.jsxs(c.Fragment,{children:[c.jsx("div",{}),c.jsxs("div",{className:"dim",children:[i.commits_unpushed," commit",i.commits_unpushed===1?"":"s"," ready to push"]})]}):null]}),i.last_push_error?c.jsxs("div",{className:"error-banner",style:{marginTop:"1rem"},children:[c.jsx("strong",{children:"Last push failed:"})," ",c.jsx("code",{children:i.last_push_error})]}):null,i.last_error?c.jsxs("div",{className:"error-banner",style:{marginTop:"1rem"},children:[c.jsx("strong",{children:"Last error:"})," ",c.jsx("code",{children:i.last_error})]}):null,b?c.jsx("div",{className:"error-banner",style:{marginTop:"1rem"},children:c.jsx("code",{children:b})}):null,c.jsxs("div",{className:"actions",children:[c.jsx("button",{type:"button",onClick:q,disabled:!o||j,title:y?o?void 0:"Admin scope required to trigger a manual export.":"Enable the mirror first, then trigger a manual export.",children:j?"Running…":"Run export now"}),c.jsx("button",{type:"button",className:"secondary",onClick:D,disabled:k,title:y?o?B?void 0:"Wire credentials or turn on auto-push to push to a remote.":"Admin scope required to push.":"Enable the mirror first, then push.",children:v?"Pushing…":"Push now"})]})]})}function a0({vaultName:i,initial:s,readOnly:f,creds:o,onSaved:h}){const[m,y]=S.useState(s),[j,g]=S.useState(!1),[v,T]=S.useState(!1),[b,C]=S.useState(null),[q,D]=S.useState(null),[B,k]=S.useState(0);S.useEffect(()=>{y(s)},[s]);const L=K=>{const G=K.apply(m);y(G)},Q=K=>{y(G=>({...G,sync_mode:K}))},J=async K=>{if(K.preventDefault(),!f){T(!0),C(null),D(null);try{const G=await kg(i,m);h(G),k(Y=>Y+1),setTimeout(()=>k(0),3e3)}catch(G){if(G instanceof Te){const Y=G.message;C(Y);const X=Y.toLowerCase();X.includes("external_path")?D("external_path"):X.includes("commit_template")?D("commit_template"):X.includes("safety_net_seconds")?D("safety_net_seconds"):X.includes("sync_mode")?D("sync_mode"):X.includes("auto_push")?D("auto_push"):X.includes("location")?D("location"):D(null)}else C(G instanceof Error?G.message:String(G))}finally{T(!1)}}};return c.jsxs("form",{className:"section",onSubmit:J,children:[c.jsx("h3",{style:{margin:"0 0 0.85rem",fontSize:"1rem",fontWeight:500},children:"Configuration"}),c.jsxs("div",{className:"form-row",children:[c.jsxs("label",{children:[c.jsx("input",{type:"checkbox",checked:m.enabled,disabled:f,onChange:K=>y(G=>({...G,enabled:K.target.checked})),style:{width:"auto",marginRight:"0.5rem"}}),"Enable mirror"]}),c.jsx("p",{className:"dim",style:{margin:"0.35rem 0 0"},children:"Master switch. When off, no export / commit / push runs."})]}),c.jsxs("div",{className:"form-row",children:[c.jsx("label",{children:"Presets"}),c.jsxs("p",{className:"dim",style:{marginTop:0,marginBottom:"0.5rem",fontSize:"0.9em"},children:[c.jsx("strong",{children:"History"})," is the easiest start — vault manages the mirror folder under its own data dir, no path to pick, no remote to configure. ",c.jsx("strong",{children:"Live Mirror"})," + ",c.jsx("strong",{children:"Manual Export"})," are for operators who want to point at a visible folder (Obsidian, GitHub)."]}),c.jsx("div",{className:"preset-grid",children:e0.map(K=>c.jsxs("button",{type:"button",className:"preset-card",disabled:f,onClick:()=>L(K),"aria-label":`Apply ${K.label} preset`,children:[c.jsx("strong",{children:K.label}),c.jsx("span",{className:"dim",children:K.subtext})]},K.id))})]}),c.jsxs("div",{className:"form-row",children:[c.jsx("label",{children:"Location"}),c.jsxs("div",{children:[c.jsxs("label",{className:"radio-row",children:[c.jsx("input",{type:"radio",name:"location",value:"internal",checked:m.location==="internal",disabled:f,onChange:()=>y(K=>({...K,location:"internal"}))}),c.jsxs("span",{children:["Internal ",c.jsx("span",{className:"dim",children:"— hidden under vault data dir"})]})]}),c.jsxs("label",{className:"radio-row",children:[c.jsx("input",{type:"radio",name:"location",value:"external",checked:m.location==="external",disabled:f,onChange:()=>y(K=>({...K,location:"external"}))}),c.jsxs("span",{children:["External ",c.jsx("span",{className:"dim",children:"— operator-picked path"})]})]})]})]}),m.location==="external"?c.jsxs("div",{className:"form-row",children:[c.jsx("label",{htmlFor:"external-path",children:"External path"}),c.jsx("input",{id:"external-path",type:"text",value:m.external_path??"",disabled:f,onChange:K=>y(G=>({...G,external_path:K.target.value.length>0?K.target.value:null})),placeholder:"/Users/you/Documents/vault-mirror","aria-invalid":q==="external_path"}),c.jsxs("div",{className:"warn-banner",style:{marginTop:"0.5rem"},role:"alert",children:["Path must exist AND be a git repo (run ",c.jsx("code",{children:"git init"})," first if needed)."]})]}):null,c.jsxs("div",{className:"form-row",children:[c.jsx("label",{htmlFor:"sync-mode-select",children:"Sync mode"}),c.jsx("select",{id:"sync-mode-select",value:m.sync_mode,disabled:f,onChange:K=>Q(K.target.value),children:Pg.map(K=>c.jsx("option",{value:K.value,children:K.label},K.value))}),c.jsx("p",{className:"dim",style:{margin:"0.35rem 0 0"},children:m.sync_mode==="manual"?'No auto-fire. Exports only run when you click "Run export now" (or run `parachute-vault export` from the CLI).':"Every change to a note, tag, or attachment triggers an export within ~500ms. A background safety check runs hourly to catch anything missed."})]}),c.jsxs("div",{className:"form-row",children:[c.jsxs("label",{children:[c.jsx("input",{type:"checkbox",checked:m.auto_commit,disabled:f,onChange:K=>y(G=>({...G,auto_commit:K.target.checked})),style:{width:"auto",marginRight:"0.5rem"}}),"Commit after each export"]}),m.auto_commit?null:c.jsx("p",{className:"hint",style:{marginTop:"0.25rem",fontSize:"0.85em"},children:"Note: the export cursor still advances after each pass. Subsequent runs only re-export notes written since the last pass — even when triggered manually."})]}),m.location==="external"||o!=null&&o.active_method?c.jsxs("div",{className:"form-row",children:[c.jsxs("label",{children:[c.jsx("input",{type:"checkbox",checked:m.auto_push,disabled:f,onChange:K=>y(G=>({...G,auto_push:K.target.checked})),style:{width:"auto",marginRight:"0.5rem"}}),"Push after each commit"]}),c.jsx("p",{className:"dim",style:{margin:"0.35rem 0 0",fontSize:"0.9em"},children:"When credentials are configured, vault can push the mirror's commits to your remote regardless of whether the mirror folder lives under vault's data dir or somewhere visible."}),m.auto_push?o!=null&&o.active_method?c.jsxs("div",{className:"info-banner",style:{marginTop:"0.5rem"},role:"status",children:[o.active_method==="github_oauth"&&o.github_oauth?c.jsxs(c.Fragment,{children:["Will push to ",c.jsxs("code",{children:["@",o.github_oauth.user_login]})," on GitHub."]}):o.active_method==="pat"&&o.pat?c.jsxs(c.Fragment,{children:["Will push using saved credential: ",c.jsx("code",{children:o.pat.label}),"."]}):c.jsx(c.Fragment,{children:"Will push using saved credential."})," ","Failed pushes are logged but won't crash the export."]}):c.jsxs("div",{className:"warn-banner",style:{marginTop:"0.5rem"},role:"alert",children:["Auto-push needs git credentials. Either connect GitHub in the"," ",c.jsx("strong",{children:"Git remote"})," section below, or paste a Personal Access Token + remote URL. Failed pushes are logged but won't crash the export."]}):null]}):null,c.jsx("div",{className:"form-row",children:c.jsxs("button",{type:"button",className:"secondary",onClick:()=>g(K=>!K),children:[j?"Hide":"Show"," advanced"]})}),j?c.jsxs("div",{className:"form-row",children:[c.jsx("label",{htmlFor:"commit-template",children:"Commit template"}),c.jsx("input",{id:"commit-template",type:"text",value:m.commit_template,disabled:f,onChange:K=>y(G=>({...G,commit_template:K.target.value})),"aria-invalid":q==="commit_template"}),c.jsxs("p",{className:"dim",style:{margin:"0.35rem 0 0"},children:["Supports ",c.jsx("code",{children:"{{date}}"}),", ",c.jsx("code",{children:"{{notes_changed}}"}),","," ",c.jsx("code",{children:"{{plural}}"}),", ",c.jsx("code",{children:"{{first_note_title}}"}),","," ",c.jsx("code",{children:"{{vault_name}}"}),"."]})]}):null,b?c.jsx("div",{className:"error-banner",role:"alert",children:c.jsx("code",{children:b})}):null,B>0?c.jsx("div",{className:"mint-banner",style:{padding:"0.75rem 1rem",marginBottom:"1rem"},role:"status",children:"Saved."}):null,c.jsx("div",{className:"actions",children:c.jsx("button",{type:"submit",disabled:f||v,children:v?"Saving…":"Save"})})]})}function n0({vaultName:i,creds:s,credsError:f,onCredsChanged:o,onCredsSaved:h,locationIsExternal:m}){const[y,j]=S.useState(!1),[g,v]=S.useState(!1),[T,b]=S.useState(!1),[C,q]=S.useState(null),[D,B]=S.useState(null),k=(s==null?void 0:s.active_method)!==null&&(s==null?void 0:s.active_method)!==void 0,L=async()=>{if(confirm("Disconnect git remote credentials? Auto-push will stop working until you reconnect.")){b(!0),q(null);try{const Q=await Xg(i);o(Q)}catch(Q){q(Q instanceof Error?Q.message:String(Q))}finally{b(!1)}}};return c.jsxs("div",{className:"section",id:"git-remote-section",children:[c.jsx("h3",{style:{margin:"0 0 0.85rem",fontSize:"1rem",fontWeight:500},children:"Git remote"}),c.jsxs("p",{className:"dim",style:{marginTop:0},children:["Credentials for ",c.jsx("code",{children:"auto-push"}),". Stored on this server with"," ",c.jsx("code",{children:"0600"})," file permissions. Never sent to GitHub or any third party."]}),!m&&!(s!=null&&s.active_method)?c.jsx("div",{className:"info-banner",style:{marginBottom:"0.75rem"},role:"status",children:"Internal mirrors live under the vault's data directory. To push them to a remote, paste a Personal Access Token + remote URL below — that wires the remote and turns on auto-push automatically."}):null,f?c.jsxs("div",{className:"error-banner",role:"alert",children:["Could not load credential status: ",c.jsx("code",{children:f})]}):null,k?c.jsxs("div",{className:"kv",style:{marginBottom:"0.75rem"},children:[c.jsx("div",{children:"Status"}),c.jsx("div",{children:(s==null?void 0:s.active_method)==="github_oauth"&&s.github_oauth?c.jsxs(c.Fragment,{children:["Connected to ",c.jsxs("code",{children:["@",s.github_oauth.user_login]})," on GitHub"]}):(s==null?void 0:s.active_method)==="pat"&&s.pat?c.jsxs(c.Fragment,{children:["Custom credential: ",c.jsx("code",{children:s.pat.label})]}):null}),(s==null?void 0:s.active_method)==="github_oauth"&&s.github_oauth?c.jsxs(c.Fragment,{children:[c.jsx("div",{children:"Token"}),c.jsxs("div",{children:[c.jsx("code",{children:s.github_oauth.token_preview})," ",c.jsxs("span",{className:"dim",children:["· scope ",s.github_oauth.scope||"—"," · authorized"," ",s.github_oauth.authorized_at.slice(0,10)]})]})]}):null,(s==null?void 0:s.active_method)==="pat"&&s.pat?c.jsxs(c.Fragment,{children:[c.jsx("div",{children:"Remote"}),c.jsx("div",{children:c.jsx("code",{children:s.pat.remote_url})}),c.jsx("div",{children:"Token"}),c.jsx("div",{children:c.jsx("code",{children:s.pat.token_preview})})]}):null]}):c.jsx("p",{className:"dim",children:"Not connected. Auto-push won't work until you connect. Personal Access Token is the universal path (works with GitHub, GitLab, Gitea, Bitbucket, anything that takes an HTTPS token); the GitHub shortcut just saves a step for GitHub users."}),C?c.jsx("div",{className:"error-banner",role:"alert",children:c.jsx("code",{children:C})}):null,D?c.jsxs("div",{className:"mint-banner",style:{marginBottom:"0.75rem"},role:"status",children:[c.jsx("strong",{children:"Credentials saved."})," ",(()=>{const Q=D,J=Q.initial_push.fired&&Q.initial_push.pushed?Q.initial_push.sha:void 0,K=Q.initial_push.fired&&!Q.initial_push.pushed?Q.initial_push.error:void 0;return Q.auto_push_was_already_enabled?J?c.jsxs(c.Fragment,{children:["Auto-push was already on; just pushed"," ",c.jsx("code",{children:J.slice(0,10)}),"."]}):K?c.jsx(c.Fragment,{children:"Auto-push was already on; the push attempt failed — see the Status card above for details."}):c.jsx(c.Fragment,{children:"Auto-push was already on; nothing to push right now."}):Q.auto_push_enabled?J?c.jsxs(c.Fragment,{children:["Auto-push enabled and the first push landed"," ",c.jsx("code",{children:J.slice(0,10)}),". Your next commit will push to the remote too."]}):K?c.jsx(c.Fragment,{children:"Auto-push enabled. The initial push attempt failed — see the Status card above for the error."}):c.jsx(c.Fragment,{children:"Auto-push enabled. Your next commit will push to the remote."}):c.jsx(c.Fragment,{children:"Credentials wired. Auto-push remains off; flip it on in Configuration above to push commits automatically."})})()," ",c.jsx("button",{type:"button",className:"secondary",onClick:()=>B(null),style:{marginLeft:"0.5rem"},"aria-label":"Dismiss",children:"Dismiss"})]}):null,c.jsx("div",{className:"actions",children:k?c.jsx("button",{type:"button",className:"secondary",onClick:L,disabled:T,children:T?"Disconnecting…":"Disconnect"}):c.jsxs(c.Fragment,{children:[c.jsx("button",{type:"button",onClick:()=>v(!0),children:"Use Personal Access Token"}),c.jsx("button",{type:"button",className:"secondary",onClick:()=>j(!0),children:"Connect GitHub (one-click for GitHub users)"})]})}),y?c.jsx(u0,{vaultName:i,onClose:()=>j(!1),onConnected:(Q,J)=>{o(Q),J&&(B(J),h(J)),j(!1)}}):null,g?c.jsx(s0,{vaultName:i,onClose:()=>v(!1),onSaved:Q=>{o(Q),B(Q),h(Q),v(!1)}}):null]})}function u0({vaultName:i,onClose:s,onConnected:f}){const[o,h]=S.useState({kind:"starting"}),[m,y]=S.useState(Date.now()),j=S.useRef(!1);S.useEffect(()=>{const v=setInterval(()=>y(Date.now()),1e3);return()=>clearInterval(v)},[]),S.useEffect(()=>{let v=!1;return j.current=!1,Qg(i).then(T=>{v||h({kind:"polling",code:T,pollIntervalMs:Math.max(T.interval,1)*1e3,startedAt:Date.now()})}).catch(T=>{v||h({kind:"error",message:T instanceof Error?T.message:String(T)})}),()=>{v=!0,j.current=!0}},[i]),S.useEffect(()=>{if(o.kind!=="polling")return;const v=o.code;let T=!1,b=null,C=o.pollIntervalMs;const q=async()=>{if(!(T||j.current))try{const D=await Vg(i,v.polling_id);if(T)return;if(D.state==="granted"){h({kind:"granted",user:{login:D.user.login}});return}if(D.state==="denied"){h({kind:"error",message:"Authorization denied."});return}if(D.state==="expired"){h({kind:"error",message:"The device code expired. Try again."});return}D.state==="slow_down"&&(C=D.interval*1e3),b=setTimeout(q,C)}catch(D){if(T)return;h({kind:"error",message:D instanceof Error?D.message:String(D)})}};return b=setTimeout(q,C),()=>{T=!0,b&&clearTimeout(b)}},[o,i]);const g=async v=>{try{await navigator.clipboard.writeText(v)}catch{}};return c.jsx("div",{className:"modal-backdrop",role:"dialog","aria-modal":"true",children:c.jsxs("div",{className:"modal",children:[c.jsxs("div",{className:"list-header",children:[c.jsx("h3",{style:{margin:0},children:"Connect GitHub"}),c.jsx("button",{type:"button",className:"secondary",onClick:s,children:"Close"})]}),o.kind==="starting"?c.jsx("p",{className:"muted",children:"Requesting device code from GitHub…"}):null,o.kind==="polling"?c.jsxs(c.Fragment,{children:[c.jsxs("p",{children:[c.jsx("strong",{children:"Step 1."})," Open"," ",c.jsx("a",{href:o.code.verification_uri,target:"_blank",rel:"noreferrer",children:o.code.verification_uri})," ","in your browser."]}),c.jsxs("p",{children:[c.jsx("strong",{children:"Step 2."})," Enter this code:"]}),c.jsxs("div",{className:"device-code-row",children:[c.jsx("code",{className:"device-code",children:o.code.user_code}),c.jsx("button",{type:"button",className:"secondary",onClick:()=>g(o.code.user_code),children:"Copy"})]}),c.jsxs("p",{className:"dim",children:["Waiting for authorization…"," ",i0(o.code.expires_in,o.startedAt,m)]})]}):null,o.kind==="granted"?c.jsx(c0,{vaultName:i,user:o.user,onPicked:async(v,T)=>{const b=await Jg(i,{owner:v,name:T}),C=await dm(i);f(C,b)},onError:v=>h({kind:"error",message:v})}):null,o.kind==="error"?c.jsxs(c.Fragment,{children:[c.jsx("div",{className:"error-banner",role:"alert",children:c.jsx("code",{children:o.message})}),c.jsxs("div",{className:"actions",children:[c.jsx("button",{type:"button",onClick:()=>h({kind:"starting"}),children:"Try again"}),c.jsx("button",{type:"button",className:"secondary",onClick:s,children:"Close"})]})]}):null]})})}function i0(i,s,f){const o=Math.floor((f-s)/1e3),h=Math.max(0,i-o),m=Math.floor(h/60),y=h%60;return`${m}:${String(y).padStart(2,"0")} remaining`}function c0({vaultName:i,user:s,onPicked:f,onError:o}){const[h,m]=S.useState(null),[y,j]=S.useState(!1),[g,v]=S.useState(""),[T,b]=S.useState(null),[C,q]=S.useState(!1),[D,B]=S.useState(""),[k,L]=S.useState(!1);S.useEffect(()=>{let G=!1;return hm(i).then(({repos:Y,truncated:X})=>{G||(m(Y),j(!!X))}).catch(Y=>{G||o(Y instanceof Error?Y.message:String(Y))}),()=>{G=!0}},[i,o]);const Q=(h??[]).filter(G=>g.length===0?!0:G.full_name.toLowerCase().includes(g.toLowerCase())),J=async(G,Y)=>{b(`${G}/${Y}`);try{await f(G,Y)}catch(X){o(X instanceof Error?X.message:String(X))}finally{b(null)}},K=async()=>{if(D.trim().length!==0){q(!0);try{const G=await Kg(i,{name:D.trim(),description:"Parachute Vault mirror",private:!0});await f(G.owner,G.name)}catch(G){o(G instanceof Error?G.message:String(G))}finally{q(!1)}}};return c.jsxs(c.Fragment,{children:[c.jsxs("p",{children:["Authorized as ",c.jsxs("code",{children:["@",s.login]}),". Pick a repository to push the mirror to:"]}),c.jsx("div",{className:"form-row",children:c.jsx("input",{type:"search",placeholder:"Filter by name…",value:g,onChange:G=>v(G.target.value)})}),y?c.jsx("p",{className:"muted",style:{fontSize:"0.85em"},children:"Showing the first 300 repos. Use the filter above to narrow down — or paste the clone URL directly via Personal Access Token below if your repo isn't here."}):null,h===null?c.jsx("p",{className:"muted",children:"Loading repos…"}):null,h!==null?c.jsxs("div",{className:"repo-list",children:[Q.length===0&&g.length>0?c.jsxs("p",{className:"dim",children:['No repos match "',g,'".']}):null,Q.length===0&&g.length===0&&h.length===0?c.jsx("p",{className:"dim",children:"You don't own any repos on this account yet."}):null,Q.map(G=>c.jsxs("button",{type:"button",className:"repo-row",onClick:()=>J(G.owner,G.name),disabled:T!==null,children:[c.jsxs("span",{children:[c.jsx("strong",{children:G.name}),G.private?c.jsx("span",{className:"dim",children:" · private"}):null]}),c.jsx("span",{className:"dim",children:G.updated_at.slice(0,10)})]},G.full_name))]}):null,k?c.jsxs("div",{className:"form-row",style:{marginTop:"0.75rem"},children:[c.jsx("label",{htmlFor:"new-repo-name",children:"New repo name"}),c.jsx("input",{id:"new-repo-name",type:"text",value:D,placeholder:"my-vault-backup",onChange:G=>B(G.target.value)}),c.jsxs("div",{className:"actions",children:[c.jsx("button",{type:"button",onClick:K,disabled:C||D.trim().length===0,children:C?"Creating…":"Create"}),c.jsx("button",{type:"button",className:"secondary",onClick:()=>L(!1),disabled:C,children:"Cancel"})]})]}):c.jsx("div",{className:"actions",style:{marginTop:"0.75rem"},children:c.jsx("button",{type:"button",className:"secondary",onClick:()=>L(!0),children:"+ Create new private repo"})})]})}function s0({vaultName:i,onClose:s,onSaved:f}){const[o,h]=S.useState(""),[m,y]=S.useState(""),[j,g]=S.useState(""),[v,T]=S.useState(!1),[b,C]=S.useState(null),q=async D=>{D.preventDefault(),T(!0),C(null);try{const B=await Zg(i,{token:o.trim(),remote_url:m.trim(),label:j.trim()||void 0});f(B)}catch(B){C(B instanceof Error?B.message:String(B))}finally{T(!1)}};return c.jsx("div",{className:"modal-backdrop",role:"dialog","aria-modal":"true",children:c.jsxs("div",{className:"modal",children:[c.jsxs("div",{className:"list-header",children:[c.jsx("h3",{style:{margin:0},children:"Use Personal Access Token"}),c.jsx("button",{type:"button",className:"secondary",onClick:s,disabled:v,children:"Close"})]}),c.jsxs("p",{className:"dim",children:["Works for any provider that supports HTTPS push with a token in the URL (GitHub, GitLab, Codeberg, Gitea, …). The token is stored with"," ",c.jsx("code",{children:"0600"})," file perms on this server."]}),c.jsxs("form",{onSubmit:q,children:[c.jsxs("div",{className:"form-row",children:[c.jsx("label",{htmlFor:"pat-token",children:"Token"}),c.jsx("input",{id:"pat-token",type:"password",value:o,autoComplete:"off",onChange:D=>h(D.target.value),placeholder:"ghp_… or glpat-… or similar",required:!0})]}),c.jsxs("div",{className:"form-row",children:[c.jsx("label",{htmlFor:"pat-url",children:"Remote URL"}),c.jsx("input",{id:"pat-url",type:"url",value:m,onChange:D=>y(D.target.value),placeholder:"https://github.com/owner/repo.git",required:!0}),c.jsxs("p",{className:"dim",style:{margin:"0.35rem 0 0"},children:["We'll embed your token in the URL before saving (using GitHub's"," ",c.jsx("code",{children:"x-access-token"})," convention). The URL you see on disk will carry the token; ensure the file isn't shared."]})]}),c.jsxs("div",{className:"form-row",children:[c.jsx("label",{htmlFor:"pat-label",children:"Label (optional)"}),c.jsx("input",{id:"pat-label",type:"text",value:j,onChange:D=>g(D.target.value),placeholder:"GitHub PAT for backup"})]}),b?c.jsx("div",{className:"error-banner",role:"alert",children:c.jsx("code",{children:b})}):null,c.jsxs("div",{className:"actions",children:[c.jsx("button",{type:"submit",disabled:v,children:v?"Validating…":"Validate & save"}),c.jsx("button",{type:"button",className:"secondary",onClick:s,disabled:v,children:"Cancel"})]})]})]})})}function r0({vaultName:i,creds:s}){const[f,o]=S.useState(""),[h,m]=S.useState("merge"),[y,j]=S.useState(!1),[g,v]=S.useState(""),[T,b]=S.useState({kind:"idle"}),[C,q]=S.useState(""),[D,B]=S.useState(!1),k=(s==null?void 0:s.active_method)==="github_oauth"&&s.github_oauth!==null,L=(s==null?void 0:s.active_method)!==null&&(s==null?void 0:s.active_method)!==void 0,Q=h!=="replace"||C.trim()===i,J=T.kind!=="running"&&f.trim().length>0&&Q&&(!y||g.trim().length>0),K=async()=>{b({kind:"running",stage:"cloning"});let Y;y?Y={kind:"pat",token:g.trim()}:L?Y=null:Y={kind:"none"};try{const X=window.setTimeout(()=>b(Re=>Re.kind==="running"?{kind:"running",stage:"importing"}:Re),1500),fe=await $g(i,{remote_url:f.trim(),mode:h,credentials:Y});window.clearTimeout(X),b({kind:"success",result:fe,remoteUrl:f.trim(),mode:h})}catch(X){const fe=X instanceof Te?`${X.status===409?"Already running. ":""}${X.message}`:X instanceof Error?X.message:String(X);b({kind:"error",message:fe})}},G=()=>{b({kind:"idle"}),q("")};return c.jsxs("div",{className:"section",children:[c.jsx("h3",{style:{margin:"0 0 0.85rem",fontSize:"1rem",fontWeight:500},children:"Import from a git repo"}),c.jsxs("p",{className:"dim",style:{marginTop:0},children:["Pull a vault state from a remote git repo into ",c.jsx("strong",{children:"this"})," vault. Use this to load a vault someone has been mirroring, or to sync a vault between machines you control. The remote must be a Parachute vault export (created by ",c.jsx("code",{children:"parachute-vault export"})," or the mirror's export flow)."]}),c.jsxs("div",{className:"warn-banner",style:{marginBottom:"1rem"},role:"note",children:[c.jsx("strong",{children:"One vault per remote."})," Multiple vaults pushing to the same git repo isn't a supported shape — the last push wins, and vaults that diverge silently overwrite each other. Today's working pattern is one vault per remote. Active two-way sync is a future direction; for now, do exports from one place and imports as snapshots elsewhere."]}),T.kind==="success"?c.jsx(o0,{vaultName:i,result:T.result,remoteUrl:T.remoteUrl,mode:T.mode,onReset:G}):c.jsxs(c.Fragment,{children:[c.jsxs("div",{className:"form-row",children:[c.jsx("label",{htmlFor:"import-remote-url",children:"Remote URL"}),c.jsx("input",{id:"import-remote-url",type:"text",value:f,placeholder:"https://github.com/aaron/my-vault.git",onChange:Y=>o(Y.target.value),disabled:T.kind==="running"}),k?c.jsxs("p",{className:"dim",style:{margin:"0.35rem 0 0",fontSize:"0.9em"},children:["Or"," ",c.jsx("button",{type:"button",onClick:()=>B(!0),disabled:T.kind==="running",style:{background:"none",border:"none",padding:0,color:"var(--accent)",textDecoration:"underline",cursor:"pointer",fontSize:"inherit"},children:"pick from your GitHub repos"}),"."]}):null,!L&&!y?c.jsx("p",{className:"hint",style:{marginTop:"0.35rem",fontSize:"0.85em"},children:"No saved git credentials. The import will be unauthenticated — works for public repos; private repos will fail with a clear error. Use the one-time credential toggle below if needed."}):null]}),c.jsxs("div",{className:"form-row",children:[c.jsx("label",{children:"Mode"}),c.jsxs("label",{className:"radio-row",children:[c.jsx("input",{type:"radio",name:"import-mode",value:"merge",checked:h==="merge",onChange:()=>{m("merge"),q("")},disabled:T.kind==="running"}),c.jsxs("span",{children:[c.jsx("strong",{children:"Merge"})," ",c.jsxs("span",{className:"dim",children:["— upsert by id. Notes in the remote get created/updated; any notes that exist only locally ",c.jsx("strong",{children:"survive"}),"."]})]})]}),c.jsxs("label",{className:"radio-row",children:[c.jsx("input",{type:"radio",name:"import-mode",value:"replace",checked:h==="replace",onChange:()=>m("replace"),disabled:T.kind==="running"}),c.jsxs("span",{children:[c.jsx("strong",{children:"Replace"})," ",c.jsxs("span",{className:"dim",children:["— wipe this vault first, then import. The remote becomes the new source of truth. ",c.jsx("strong",{children:"Destructive."})]})]})]})]}),h==="replace"?c.jsxs("div",{className:"form-row",children:[c.jsxs("div",{className:"error-banner",role:"alert",style:{marginBottom:"0.5rem"},children:[c.jsxs("strong",{children:['Replace will delete every note in vault "',i,'" before importing.']})," To confirm, type the vault name below:"]}),c.jsx("input",{id:"import-confirm-name",type:"text",value:C,placeholder:i,onChange:Y=>q(Y.target.value),disabled:T.kind==="running","aria-label":"Type vault name to confirm"})]}):null,c.jsxs("div",{className:"form-row",children:[c.jsxs("label",{children:[c.jsx("input",{type:"checkbox",checked:y,onChange:Y=>j(Y.target.checked),disabled:T.kind==="running",style:{width:"auto",marginRight:"0.5rem"}}),"One-time credential for this import only"]}),c.jsx("p",{className:"dim",style:{margin:"0.35rem 0 0",fontSize:"0.85em"},children:"Use a different Personal Access Token just for this clone, without changing your saved credentials."}),y?c.jsx("input",{id:"import-per-call-pat",type:"password",value:g,placeholder:"ghp_… or similar",onChange:Y=>v(Y.target.value),disabled:T.kind==="running",autoComplete:"off",style:{marginTop:"0.5rem"}}):null]}),T.kind==="error"?c.jsx("div",{className:"error-banner",role:"alert",children:c.jsx("code",{children:T.message})}):null,c.jsx("div",{className:"actions",children:c.jsx("button",{type:"button",onClick:K,disabled:!J,title:Q?f.trim().length===0?"Provide a remote URL.":y&&g.trim().length===0?"Provide a token for one-time credential.":void 0:"Type the vault name to confirm Replace.",children:T.kind==="running"?T.stage==="cloning"?"Cloning…":"Importing…":"Start import"})})]}),D?c.jsx(f0,{vaultName:i,onClose:()=>B(!1),onPicked:Y=>{o(Y),B(!1)}}):null]})}function o0({vaultName:i,result:s,remoteUrl:f,mode:o,onReset:h}){const[m,y]=S.useState(!0);return c.jsxs(c.Fragment,{children:[c.jsxs("div",{className:"mint-banner",role:"status",style:{marginBottom:"0.75rem"},children:[c.jsx("strong",{children:"Import succeeded."})," Imported ",s.notes_imported," note",s.notes_imported===1?"":"s",", ",s.tags_imported," tag schema",s.tags_imported===1?"":"s",", ",s.attachments_imported," ","attachment",s.attachments_imported===1?"":"s",o==="replace"&&s.notes_deleted!==void 0?`, wiped ${s.notes_deleted} pre-existing note${s.notes_deleted===1?"":"s"}`:"","."]}),s.warnings.length>0?c.jsxs("details",{style:{marginBottom:"0.75rem"},children:[c.jsxs("summary",{children:[s.warnings.length," warning",s.warnings.length===1?"":"s"," ","(see details)"]}),c.jsx("ul",{style:{marginTop:"0.5rem"},children:s.warnings.map((j,g)=>c.jsx("li",{children:c.jsx("code",{style:{fontSize:"0.85em"},children:j})},g))})]}):null,m?c.jsxs("div",{className:"info-banner",style:{marginBottom:"0.75rem"},role:"status",children:[c.jsxs("p",{style:{marginTop:0},children:[c.jsx("strong",{children:"Set this repo as the active mirror remote?"})," Future exports from vault ",c.jsx("code",{children:i})," would push back to"," ",c.jsx("code",{children:f}),`. Skip if you'd rather keep them separate — see the "one vault per remote" note above.`]}),c.jsxs("div",{className:"actions",children:[c.jsx("button",{type:"button",onClick:()=>{var j;y(!1),(j=document.getElementById("git-remote-section"))==null||j.scrollIntoView({behavior:"smooth",block:"start"})},children:"Yes — configure mirror push above"}),c.jsx("button",{type:"button",className:"secondary",onClick:()=>y(!1),children:"No, keep import-only"})]})]}):null,c.jsx("div",{className:"actions",children:c.jsx("button",{type:"button",className:"secondary",onClick:h,children:"Run another import"})})]})}function f0({vaultName:i,onClose:s,onPicked:f}){const[o,h]=S.useState(null),[m,y]=S.useState(!1),[j,g]=S.useState(""),[v,T]=S.useState(null);S.useEffect(()=>{let C=!1;return hm(i).then(({repos:q,truncated:D})=>{C||(h(q),y(!!D))}).catch(q=>{C||T(q instanceof Error?q.message:String(q))}),()=>{C=!0}},[i]);const b=(o??[]).filter(C=>j.length===0?!0:C.full_name.toLowerCase().includes(j.toLowerCase()));return c.jsx("div",{className:"modal-backdrop",role:"dialog","aria-modal":"true",children:c.jsxs("div",{className:"modal",children:[c.jsxs("div",{className:"list-header",children:[c.jsx("h3",{style:{margin:0},children:"Pick a repo to import from"}),c.jsx("button",{type:"button",className:"secondary",onClick:s,children:"Close"})]}),v?c.jsx("div",{className:"error-banner",role:"alert",children:c.jsx("code",{children:v})}):null,c.jsx("div",{className:"form-row",children:c.jsx("input",{type:"search",placeholder:"Filter by name…",value:j,onChange:C=>g(C.target.value)})}),m?c.jsx("p",{className:"muted",style:{fontSize:"0.85em"},children:"Showing the first 300 repos. Use the filter above to narrow down."}):null,o===null&&!v?c.jsx("p",{className:"muted",children:"Loading repos…"}):null,o!==null?c.jsxs("div",{className:"repo-list",children:[b.length===0&&j.length>0?c.jsxs("p",{className:"dim",children:['No repos match "',j,'".']}):null,b.length===0&&j.length===0&&o.length===0?c.jsx("p",{className:"dim",children:"You don't own any repos on this account."}):null,b.map(C=>c.jsxs("button",{type:"button",className:"repo-row",onClick:()=>f(C.clone_url),children:[c.jsxs("span",{children:[c.jsx("strong",{children:C.name}),C.private?c.jsx("span",{className:"dim",children:" · private"}):null]}),c.jsx("span",{className:"dim",children:C.updated_at.slice(0,10)})]},C.full_name))]}):null]})})}let Gn=null,Xn=null;function d0(i){const s=Date.parse(i);return Number.isNaN(s)?null:s}async function h0(){if(typeof window>"u")return{kind:"network-error",message:"no window"};let i;try{i=await fetch("/admin/host-admin-token",{method:"GET",headers:{accept:"application/json"},credentials:"same-origin"})}catch(f){return{kind:"network-error",message:f instanceof Error?f.message:String(f)}}if(i.status===403)return{kind:"forbidden"};if(i.status===401||i.status===404)return{kind:"auth-required",status:i.status};if(!i.ok)return{kind:"network-error",message:`hub returned ${i.status}`};let s;try{s=await i.json()}catch(f){return{kind:"network-error",message:f instanceof Error?f.message:"could not parse host-admin mint response"}}return typeof s.token!="string"||s.token.length===0?{kind:"network-error",message:"host-admin mint response missing token"}:(Gn=s.token,Xn=s.expires_at?d0(s.expires_at):null,{kind:"ok",token:s.token})}async function Lh(){if(Gn){if(Xn===null||Xn>Date.now())return{kind:"ok",token:Gn};Gn=null,Xn=null}return h0()}function m0(){Gn=null,Xn=null}class Ga extends Error{constructor(s,f,o){super(f),this.status=s,this.disposition=o,this.name="HostAdminError"}}async function fr(i,s={}){let f;const o=await Lh();if(o.kind!=="ok")throw qh(o);f=o.token;const{headers:h,...m}=s,y=v=>({accept:"application/json",...h??{},authorization:`Bearer ${v}`}),j=await fetch(i,{...m,headers:y(f)});if(j.status!==401)return j;m0();const g=await Lh();if(g.kind!=="ok")throw qh(g);return fetch(i,{...m,headers:y(g.token)})}function qh(i){return i.kind==="forbidden"?new Ga(403,"host-admin token mint forbidden — not the hub admin","forbidden"):i.kind==="auth-required"?new Ga(i.status,"no host-admin session — sign in to the hub to manage tokens","auth-required"):new Ga(0,i.message,"network-error")}function dr(){if(typeof window>"u")return;const i=ym();window.location.href=i?`${i}/account/`:"/account/"}const v0=[30,90,180,365],kh=90,y0=1440*60;function p0(i){if(!i)return null;const s=i.scoped_tags;if(!Array.isArray(s))return null;const f=s.filter(o=>typeof o=="string"&&o.length>0);return f.length>0?f:null}function g0(i){return{jti:i.jti,label:i.subject,scopes:Array.isArray(i.scopes)?i.scopes:[],scoped_tags:p0(i.permissions),expires_at:i.expires_at??null,revoked_at:i.revoked_at??null,created_at:i.created_at}}async function b0(i,s){const f={scope:`vault:${i}:${s.verb}`,expires_in:s.ttlDays*y0,subject:s.label};s.scopedTags.length>0&&(f.permissions={scoped_tags:s.scopedTags});const o=await fr("/api/auth/mint-token",{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify(f)});if(!o.ok)throw new Te(o.status,await xi(o));const h=await o.json();return{jti:h.jti,token:h.token,scope:h.scope,expires_at:h.expires_at??null}}async function S0(i){const s=`vault:${i}:`,f=[];let o=null;for(let h=0;h<1e3;h++){const m=new URLSearchParams({revoked:"all"});o&&m.set("cursor",o);const y=await fr(`/api/auth/tokens?${m.toString()}`);if(!y.ok)throw new Te(y.status,await xi(y));const j=await y.json(),g=Array.isArray(j.tokens)?j.tokens:[];if(f.push(...g),o=j.next_cursor??null,!o)break}return f.filter(h=>Array.isArray(h.scopes)&&h.scopes.some(m=>m.startsWith(s))).map(g0)}async function x0(i){const s=await fr("/api/auth/revoke-token",{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify({jti:i})});if(!s.ok)throw new Te(s.status,await xi(s))}async function j0(i){const s=await Pe(i,`/vault/${encodeURIComponent(i)}/api/tags`);if(!s.ok)throw new Te(s.status,await xi(s));const f=await s.json();return Array.isArray(f)?f:[]}async function xi(i){try{const s=await i.text(),f=JSON.parse(s);if(f.error_description)return f.error_description;if(f.message)return f.message;if(f.error)return f.error;if(s)return s}catch{}return`${i.status} ${i.statusText}`}const E0=["read","write","admin"],T0={30:"30 days",90:"90 days",180:"180 days",365:"1 year (max)"};function _0(i){return i instanceof Ga?i.disposition==="forbidden"?(dr(),{kind:"auth-required",status:403}):i.disposition==="auth-required"?{kind:"auth-required",status:i.status}:{kind:"error",message:i.message}:i instanceof Te&&(i.status===401||i.status===403)?{kind:"auth-required",status:i.status}:{kind:"error",message:i instanceof Error?i.message:String(i)}}function Yh({vaultName:i}={}){const s=lr(),f=i??s.name,o=i!==void 0,h=o?"/":`/vault/${encodeURIComponent(f??"")}`,[m,y]=S.useState({kind:"loading"}),[j,g]=S.useState(null),[v,T]=S.useState(null),[b,C]=S.useState(0);S.useEffect(()=>{let B=!1;if(f)return y({kind:"loading"}),S0(f).then(k=>{B||y({kind:"ok",tokens:k})}).catch(k=>{B||y(_0(k))}),()=>{B=!0}},[f,b]);const q=S.useCallback(()=>C(B=>B+1),[]);if(S.useEffect(()=>{if(!j)return;const B=k=>{k.preventDefault(),k.returnValue=""};return window.addEventListener("beforeunload",B),()=>window.removeEventListener("beforeunload",B)},[j]),!f)return c.jsxs("div",{children:[c.jsx("h2",{children:"Tokens"}),c.jsx("p",{className:"muted",children:"Missing vault name."}),o?null:c.jsx(Je,{to:"/",children:"← Back to vaults"})]});const D=vm(f);return c.jsxs("div",{children:[c.jsxs("div",{className:"list-header",children:[c.jsxs("h2",{children:["Tokens for ",c.jsx("code",{children:f})]}),c.jsx(Je,{to:h,className:"muted",children:"← Vault detail"})]}),D?null:c.jsxs("div",{className:"warn-banner",children:["You're viewing this page with a read-only token. Mint and revoke require"," ",c.jsxs("code",{children:["vault:",f,":admin"]}),`. Re-enter from the hub directory's "Manage" link with an admin-scoped session to manage tokens.`]}),j?c.jsx(A0,{result:j,onDismiss:()=>g(null)}):null,m.kind==="ok"&&D&&!j?c.jsx(N0,{vaultName:f,onMinted:B=>{g(B),C(k=>k+1)}}):null,c.jsxs("div",{className:"section",children:[c.jsx("h3",{style:{margin:"0 0 0.85rem",fontSize:"1rem",fontWeight:500},children:"Existing tokens"}),m.kind==="loading"?c.jsx("p",{className:"muted",children:"Loading…"}):null,m.kind==="auth-required"?c.jsx(or,{vaultName:f,status:m.status,onRecovered:q}):null,m.kind==="error"?c.jsx("div",{className:"error-banner",children:c.jsx("code",{children:m.message})}):null,m.kind==="ok"?c.jsx(R0,{tokens:m.tokens,allowRevoke:D,confirmingJti:v,onAskConfirm:T,onRevoked:()=>{T(null),C(B=>B+1)}}):null]})]})}function A0({result:i,onDismiss:s}){const[f,o]=S.useState(!1),h=async()=>{try{await navigator.clipboard.writeText(i.token),o(!0),setTimeout(()=>o(!1),2e3)}catch{}};return c.jsxs("div",{className:"mint-banner",children:[c.jsx("h3",{children:"New token (shown once)"}),c.jsx("p",{className:"muted",children:"This is the only time the vault will show this token. Copy it now and store it somewhere safe — a password manager, the operator's notes, paraclaw's secrets store. If you lose it, revoke it and mint a new one."}),c.jsxs("div",{className:"token-box",children:[c.jsx("code",{children:i.token}),c.jsx("button",{type:"button",onClick:h,className:"secondary",children:f?"Copied":"Copy"})]}),c.jsx("p",{className:"warn",children:"⚠ Don't dismiss this banner until you've saved the token."}),c.jsx("div",{className:"actions",children:c.jsx("button",{type:"button",onClick:s,children:"Done — I've saved the token"})})]})}function N0({vaultName:i,onMinted:s}){const[f,o]=S.useState(""),[h,m]=S.useState("admin"),[y,j]=S.useState(kh),[g,v]=S.useState(!1),[T,b]=S.useState(null),[C,q]=S.useState([]),[D,B]=S.useState(null),[k,L]=S.useState(new Set);S.useEffect(()=>{let Y=!1;return j0(i).then(X=>{if(Y)return;const fe=X.map(Re=>Re.name).filter(Re=>!Re.includes("/")).sort();q(fe)}).catch(X=>{Y||B(X instanceof Error?X.message:String(X))}),()=>{Y=!0}},[i]);const Q=f.trim(),J=Q.length===0,K=Y=>{L(X=>{const fe=new Set(X);return fe.has(Y)?fe.delete(Y):fe.add(Y),fe})},G=async Y=>{if(Y.preventDefault(),J){b("label required — give the token a recognizable name");return}v(!0),b(null);try{const X=await b0(i,{verb:h,label:Q,scopedTags:[...k],ttlDays:y});s(X),o(""),m("admin"),j(kh),L(new Set)}catch(X){if(X instanceof Ga&&X.disposition==="forbidden"){dr();return}b(X instanceof Error?X.message:String(X))}finally{v(!1)}};return c.jsxs("form",{onSubmit:G,className:"section",children:[c.jsx("h3",{style:{margin:"0 0 0.85rem",fontSize:"1rem",fontWeight:500},children:"Mint a token"}),c.jsx("p",{className:"dim",style:{margin:"0 0 0.85rem"},children:"Issues a hub-signed token (JWT) scoped to this vault. Store it like a password — it's shown once and can't be re-displayed."}),T?c.jsx("div",{className:"error-banner",children:c.jsx("code",{children:T})}):null,c.jsxs("div",{className:"form-row",children:[c.jsxs("label",{htmlFor:"mint-label",children:["Label ",c.jsx("span",{className:"dim",children:"(required)"})]}),c.jsx("input",{id:"mint-label",type:"text",value:f,onChange:Y=>o(Y.target.value),placeholder:"e.g. ci, paraclaw-prod, my-laptop",maxLength:120,required:!0})]}),c.jsxs("div",{className:"form-row",children:[c.jsx("label",{htmlFor:"mint-scope",children:"Scope"}),c.jsx("select",{id:"mint-scope",value:h,onChange:Y=>m(Y.target.value),children:E0.map(Y=>c.jsx("option",{value:Y,children:Y==="read"?"read — query notes only":Y==="write"?"write — query + create/update notes":"admin — full control (incl. token mgmt)"},Y))}),c.jsxs("p",{className:"dim",style:{margin:"0.35rem 0 0"},children:["Issued as ",c.jsxs("code",{children:["vault:",i,":",h]}),". Lower scopes inherit narrower powers."]})]}),c.jsxs("div",{className:"form-row",children:[c.jsx("label",{htmlFor:"mint-ttl",children:"Expires after"}),c.jsx("select",{id:"mint-ttl",value:y,onChange:Y=>j(Number(Y.target.value)),children:v0.map(Y=>c.jsx("option",{value:Y,children:T0[Y]??`${Y} days`},Y))}),c.jsx("p",{className:"dim",style:{margin:"0.35rem 0 0"},children:"The token stops working after this. Rotate before it lapses."})]}),c.jsxs("div",{className:"form-row",children:[c.jsxs("label",{children:["Tag scope ",c.jsx("span",{className:"dim",children:"(optional)"})]}),D?c.jsxs("p",{className:"dim",style:{margin:"0.35rem 0 0"},children:["Couldn't load tags: ",c.jsx("code",{children:D}),". Token will be unscoped."]}):C.length===0?c.jsx("p",{className:"dim",style:{margin:"0.35rem 0 0"},children:"No root tags in this vault yet — token will see the full vault."}):c.jsxs(c.Fragment,{children:[c.jsx("div",{className:"tag-picker",children:C.map(Y=>c.jsxs("label",{className:"tag-checkbox",children:[c.jsx("input",{type:"checkbox",checked:k.has(Y),onChange:()=>K(Y)}),c.jsx("code",{children:Y})]},Y))}),c.jsx("p",{className:"dim",style:{margin:"0.35rem 0 0"},children:k.size===0?"Nothing selected — token sees the full vault (unscoped).":`Token limited to: ${[...k].join(", ")}. Sub-tags (e.g. health/food) are reachable when their root is selected.`})]})]}),c.jsx("div",{className:"actions",children:c.jsx("button",{type:"submit",disabled:g||J,children:g?"Minting…":"Mint token"})})]})}function R0({tokens:i,allowRevoke:s,confirmingJti:f,onAskConfirm:o,onRevoked:h}){return i.length===0?c.jsx("p",{className:"muted",children:"No tokens yet. Mint one above to get started."}):c.jsx("div",{className:"token-list",children:i.map(m=>c.jsx(z0,{token:m,allowRevoke:s,confirming:f===m.jti,onAskConfirm:o,onRevoked:h},m.jti))})}function z0({token:i,allowRevoke:s,confirming:f,onAskConfirm:o,onRevoked:h}){const[m,y]=S.useState(!1),[j,g]=S.useState(null),v=i.revoked_at!==null,T=async()=>{y(!0),g(null);try{await x0(i.jti),h()}catch(b){if(b instanceof Ga&&b.disposition==="forbidden"){dr();return}g(b instanceof Error?b.message:String(b)),y(!1)}};return c.jsxs("div",{className:"token-row",children:[c.jsxs("div",{className:"body",children:[c.jsxs("div",{className:"name",children:[c.jsx("strong",{children:i.label??"(unlabeled)"}),c.jsx("code",{className:"dim",children:i.jti}),v?c.jsx("code",{className:"scope-tag",title:"This token has been revoked and no longer works.",children:"revoked"}):null]}),c.jsxs("div",{className:"meta",children:[c.jsx("span",{className:"dim",children:"scopes:"})," ",i.scopes.length>0?i.scopes.map(b=>c.jsx("code",{className:"scope-tag",children:b},b)):c.jsx("span",{className:"dim",children:"(none)"})]}),i.scoped_tags&&i.scoped_tags.length>0?c.jsxs("div",{className:"meta",children:[c.jsx("span",{className:"dim",children:"tags:"})," ",i.scoped_tags.map(b=>c.jsxs("code",{className:"scope-tag tag-pill",children:["#",b]},b))]}):null,c.jsxs("div",{className:"meta dim",children:["created ",i.created_at,i.expires_at?` · expires ${i.expires_at}`:"",v&&i.revoked_at?` · revoked ${i.revoked_at}`:""]}),j?c.jsx("div",{className:"error-banner",style:{marginTop:"0.5rem"},children:c.jsx("code",{children:j})}):null]}),s&&!v?f?c.jsxs("div",{className:"actions",children:[c.jsx("button",{type:"button",onClick:T,disabled:m,children:m?"Revoking…":"Confirm revoke"}),c.jsx("button",{type:"button",className:"secondary",onClick:()=>o(null),disabled:m,children:"Cancel"})]}):c.jsx("button",{type:"button",className:"secondary",onClick:()=>o(i.jti),children:"Revoke"}):null]})}function C0(){const[i,s]=S.useState({kind:"loading"});return S.useEffect(()=>{let f=!1;return Bg().then(o=>{f||s({kind:"ok",vaults:o})}).catch(o=>{if(f)return;const h=o instanceof Te?`${o.status}: ${o.message}`:o instanceof Error?o.message:String(o);s({kind:"error",message:h})}),()=>{f=!0}},[]),i.kind==="loading"?c.jsxs("div",{children:[c.jsx("h2",{children:"Vaults"}),c.jsx("p",{className:"muted",children:"Loading…"})]}):i.kind==="error"?c.jsxs("div",{children:[c.jsx("h2",{children:"Vaults"}),c.jsx("div",{className:"error-banner",children:c.jsx("code",{children:i.message})})]}):i.vaults.length===0?c.jsxs("div",{children:[c.jsx("h2",{children:"Vaults"}),c.jsxs("div",{className:"empty",children:["No vaults yet. Run ",c.jsx("code",{children:"parachute-vault create <name>"})," on the host to create one."]})]}):c.jsxs("div",{children:[c.jsx("div",{className:"list-header",children:c.jsx("h2",{children:"Vaults"})}),i.vaults.map(f=>c.jsxs(Je,{to:`/vault/${f}`,className:"vault-row",children:[c.jsx("div",{className:"body",children:c.jsx("div",{className:"name",children:c.jsx("code",{children:f})})}),c.jsx("div",{className:"chev",children:"→"})]},f))]})}function M0(){const i=om();return c.jsxs("div",{className:"page",children:[c.jsxs("nav",{className:"nav",children:[c.jsxs(Je,{to:"/",className:"brand",children:["Parachute Vault ",c.jsx("span",{className:"sub",children:"admin"})]}),i?c.jsx(Je,{to:"/",children:c.jsx("code",{children:i})}):c.jsx(Je,{to:"/",children:"Vaults"})]}),i?c.jsxs(Oh,{children:[c.jsx(Yt,{path:"/",element:c.jsx(Hh,{vaultName:i})}),c.jsx(Yt,{path:"/tokens",element:c.jsx(Yh,{vaultName:i})}),c.jsx(Yt,{path:"/mirror",element:c.jsx(Bh,{vaultName:i})}),c.jsx(Yt,{path:"*",element:c.jsx(Gh,{})})]}):c.jsxs(Oh,{children:[c.jsx(Yt,{path:"/",element:c.jsx(C0,{})}),c.jsx(Yt,{path:"/vault/:name",element:c.jsx(Hh,{})}),c.jsx(Yt,{path:"/vault/:name/tokens",element:c.jsx(Yh,{})}),c.jsx(Yt,{path:"/vault/:name/mirror",element:c.jsx(Bh,{})}),c.jsx(Yt,{path:"*",element:c.jsx(Gh,{})})]})]})}function Gh(){return c.jsxs("div",{className:"empty",children:["404 — back to ",c.jsx(Je,{to:"/",children:"vault"}),"."]})}Mg();const pm=document.getElementById("root");if(!pm)throw new Error("#root not found");function $s(){Wy.createRoot(pm).render(c.jsx(S.StrictMode,{children:c.jsx(pg,{basename:Ng(),children:c.jsx(M0,{})})}))}const Xh=om();Xh?Dg(Xh).then($s,$s):$s();
60
+ Please change the parent <Route path="${L}"> to <Route path="${L==="/"?"*":`${L}/*`}">.`)}let T=fl(),b;if(s){let L=typeof s=="string"?Xa(s):s;ze(g==="/"||((k=L.pathname)==null?void 0:k.startsWith(g)),`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 "${g}" but pathname "${L.pathname}" was given in the \`location\` prop.`),b=L}else b=T;let z=b.pathname||"/",q=z;if(g!=="/"){let L=g.replace(/^\//,"").split("/");q="/"+z.replace(/^\//,"").split("/").slice(L.length).join("/")}let D=Qh(i,{pathname:q});Xt(v||D!=null,`No routes matched location "${b.pathname}${b.search}${b.hash}" `),Xt(D==null||D[D.length-1].route.element!==void 0||D[D.length-1].route.Component!==void 0||D[D.length-1].route.lazy!==void 0,`Matched leaf route at location "${b.pathname}${b.search}${b.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`);let B=qp(D&&D.map(L=>Object.assign({},L,{params:Object.assign({},y,L.params),pathname:Ut([g,o.encodeLocation?o.encodeLocation(L.pathname.replace(/%/g,"%25").replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:L.pathname]),pathnameBase:L.pathnameBase==="/"?g:Ut([g,o.encodeLocation?o.encodeLocation(L.pathnameBase.replace(/%/g,"%25").replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:L.pathnameBase])})),h,f);return s&&B?S.createElement(Zn.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",unstable_mask:void 0,...b},navigationType:"POP"}},B):B}function Up(){let i=Qp(),s=xp(i)?`${i.status} ${i.statusText}`:i instanceof Error?i.message:JSON.stringify(i),f=i instanceof Error?i.stack:null,o="rgba(200,200,200, 0.5)",h={padding:"0.5rem",backgroundColor:o},m={padding:"2px 4px",backgroundColor:o},y=null;return console.error("Error handled by React Router default ErrorBoundary:",i),y=S.createElement(S.Fragment,null,S.createElement("p",null,"💿 Hey developer 👋"),S.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",S.createElement("code",{style:m},"ErrorBoundary")," or"," ",S.createElement("code",{style:m},"errorElement")," prop on your route.")),S.createElement(S.Fragment,null,S.createElement("h2",null,"Unexpected Application Error!"),S.createElement("h3",{style:{fontStyle:"italic"}},s),f?S.createElement("pre",{style:h},f):null,y)}var Hp=S.createElement(Up,null),nm=class extends S.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?S.createElement(Qt.Provider,{value:this.props.routeContext},S.createElement(tr.Provider,{value:i,children:this.props.component})):this.props.children;return this.context?S.createElement(Bp,{error:i},s):s}};nm.contextType=Ih;var Ks=new WeakMap;function Bp({children:i,error:s}){let{basename:f}=S.useContext(Mt);if(typeof s=="object"&&s&&"digest"in s&&typeof s.digest=="string"){let o=zp(s.digest);if(o){let h=Ks.get(s);if(h)throw h;let m=Wh(o.location,f);if($h&&!Ks.get(s))if(m.isExternal||o.reloadDocument)window.location.href=m.absoluteURL||m.to;else{const y=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(m.to,{replace:o.replace}));throw Ks.set(s,y),y}return S.createElement("meta",{httpEquiv:"refresh",content:`0;url=${m.absoluteURL||m.to}`})}}return i}function Lp({routeContext:i,match:s,children:f}){let o=S.useContext(Qa);return o&&o.static&&o.staticContext&&(s.route.errorElement||s.route.ErrorBoundary)&&(o.staticContext._deepestRenderedBoundaryId=s.route.id),S.createElement(Qt.Provider,{value:i},f)}function qp(i,s=[],f){let o=f==null?void 0:f.state;if(i==null){if(!o)return null;if(o.errors)i=o.matches;else if(s.length===0&&!o.initialized&&o.matches.length>0)i=o.matches;else return null}let h=i,m=o==null?void 0:o.errors;if(m!=null){let T=h.findIndex(b=>b.route.id&&(m==null?void 0:m[b.route.id])!==void 0);ze(T>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(m).join(",")}`),h=h.slice(0,Math.min(h.length,T+1))}let y=!1,j=-1;if(f&&o){y=o.renderFallback;for(let T=0;T<h.length;T++){let b=h[T];if((b.route.HydrateFallback||b.route.hydrateFallbackElement)&&(j=T),b.route.id){let{loaderData:z,errors:q}=o,D=b.route.loader&&!z.hasOwnProperty(b.route.id)&&(!q||q[b.route.id]===void 0);if(b.route.lazy||D){f.isStatic&&(y=!0),j>=0?h=h.slice(0,j+1):h=[h[0]];break}}}}let g=f==null?void 0:f.onError,v=o&&g?(T,b)=>{var z,q;g(T,{location:o.location,params:((q=(z=o.matches)==null?void 0:z[0])==null?void 0:q.params)??{},unstable_pattern:jp(o.matches),errorInfo:b})}:void 0;return h.reduceRight((T,b,z)=>{let q,D=!1,B=null,k=null;o&&(q=m&&b.route.id?m[b.route.id]:void 0,B=b.route.errorElement||Hp,y&&(j<0&&z===0?(um("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),D=!0,k=null):j===z&&(D=!0,k=b.route.hydrateFallbackElement||null)));let L=s.concat(h.slice(0,z+1)),X=()=>{let J;return q?J=B:D?J=k:b.route.Component?J=S.createElement(b.route.Component,null):b.route.element?J=b.route.element:J=T,S.createElement(Lp,{match:b,routeContext:{outlet:T,matches:L,isDataRoute:o!=null},children:J})};return o&&(b.route.ErrorBoundary||b.route.errorElement||z===0)?S.createElement(nm,{location:o.location,revalidation:o.revalidation,component:B,error:q,children:X(),routeContext:{outlet:null,matches:L,isDataRoute:!0},onError:v}):X()},null)}function ar(i){return`${i} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function kp(i){let s=S.useContext(Qa);return ze(s,ar(i)),s}function Yp(i){let s=S.useContext(gi);return ze(s,ar(i)),s}function Gp(i){let s=S.useContext(Qt);return ze(s,ar(i)),s}function nr(i){let s=Gp(i),f=s.matches[s.matches.length-1];return ze(f.route.id,`${i} can only be used on routes that contain a unique "id"`),f.route.id}function Xp(){return nr("useRouteId")}function Qp(){var o;let i=S.useContext(tr),s=Yp("useRouteError"),f=nr("useRouteError");return i!==void 0?i:(o=s.errors)==null?void 0:o[f]}function Vp(){let{router:i}=kp("useNavigate"),s=nr("useNavigate"),f=S.useRef(!1);return lm(()=>{f.current=!0}),S.useCallback(async(h,m={})=>{Xt(f.current,tm),f.current&&(typeof h=="number"?await i.navigate(h):await i.navigate(h,{fromRouteId:s,...m}))},[i,s])}var Mh={};function um(i,s,f){!s&&!Mh[i]&&(Mh[i]=!0,Xt(!1,f))}S.memo(Zp);function Zp({routes:i,future:s,state:f,isStatic:o,onError:h}){return am(i,void 0,{state:f,isStatic:o,onError:h})}function Yt(i){ze(!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 Kp({basename:i="/",children:s=null,location:f,navigationType:o="POP",navigator:h,static:m=!1,unstable_useTransitions:y}){ze(!Kn(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let j=i.replace(/^\/*/,"/"),g=S.useMemo(()=>({basename:j,navigator:h,static:m,unstable_useTransitions:y,future:{}}),[j,h,m,y]);typeof f=="string"&&(f=Xa(f));let{pathname:v="/",search:T="",hash:b="",state:z=null,key:q="default",unstable_mask:D}=f,B=S.useMemo(()=>{let k=ol(v,j);return k==null?null:{location:{pathname:k,search:T,hash:b,state:z,key:q,unstable_mask:D},navigationType:o}},[j,v,T,b,z,q,o,D]);return Xt(B!=null,`<Router basename="${j}"> is not able to match the URL "${v}${T}${b}" because it does not start with the basename, so the <Router> won't render anything.`),B==null?null:S.createElement(Mt.Provider,{value:g},S.createElement(Zn.Provider,{children:s,value:B}))}function wh({children:i,location:s}){return Dp(Fs(i),s)}function Fs(i,s=[]){let f=[];return S.Children.forEach(i,(o,h)=>{if(!S.isValidElement(o))return;let m=[...s,h];if(o.type===S.Fragment){f.push.apply(f,Fs(o.props.children,m));return}ze(o.type===Yt,`[${typeof o.type=="string"?o.type:o.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),ze(!o.props.index||!o.props.children,"An index route cannot have child routes.");let y={id:o.props.id||m.join("-"),caseSensitive:o.props.caseSensitive,element:o.props.element,Component:o.props.Component,index:o.props.index,path:o.props.path,middleware:o.props.middleware,loader:o.props.loader,action:o.props.action,hydrateFallbackElement:o.props.hydrateFallbackElement,HydrateFallback:o.props.HydrateFallback,errorElement:o.props.errorElement,ErrorBoundary:o.props.ErrorBoundary,hasErrorBoundary:o.props.hasErrorBoundary===!0||o.props.ErrorBoundary!=null||o.props.errorElement!=null,shouldRevalidate:o.props.shouldRevalidate,handle:o.props.handle,lazy:o.props.lazy};o.props.children&&(y.children=Fs(o.props.children,m)),f.push(y)}),f}var mi="get",vi="application/x-www-form-urlencoded";function bi(i){return typeof HTMLElement<"u"&&i instanceof HTMLElement}function Jp(i){return bi(i)&&i.tagName.toLowerCase()==="button"}function $p(i){return bi(i)&&i.tagName.toLowerCase()==="form"}function Wp(i){return bi(i)&&i.tagName.toLowerCase()==="input"}function Fp(i){return!!(i.metaKey||i.altKey||i.ctrlKey||i.shiftKey)}function Ip(i,s){return i.button===0&&(!s||s==="_self")&&!Fp(i)}var hi=null;function Pp(){if(hi===null)try{new FormData(document.createElement("form"),0),hi=!1}catch{hi=!0}return hi}var eg=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function Js(i){return i!=null&&!eg.has(i)?(Xt(!1,`"${i}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${vi}"`),null):i}function tg(i,s){let f,o,h,m,y;if($p(i)){let j=i.getAttribute("action");o=j?ol(j,s):null,f=i.getAttribute("method")||mi,h=Js(i.getAttribute("enctype"))||vi,m=new FormData(i)}else if(Jp(i)||Wp(i)&&(i.type==="submit"||i.type==="image")){let j=i.form;if(j==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let g=i.getAttribute("formaction")||j.getAttribute("action");if(o=g?ol(g,s):null,f=i.getAttribute("formmethod")||j.getAttribute("method")||mi,h=Js(i.getAttribute("formenctype"))||Js(j.getAttribute("enctype"))||vi,m=new FormData(j,i),!Pp()){let{name:v,type:T,value:b}=i;if(T==="image"){let z=v?`${v}.`:"";m.append(`${z}x`,"0"),m.append(`${z}y`,"0")}else v&&m.append(v,b)}}else{if(bi(i))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');f=mi,o=null,h=vi,y=i}return m&&h==="text/plain"&&(y=m,m=void 0),{action:o,method:f.toLowerCase(),encType:h,formData:m,body:y}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function ur(i,s){if(i===!1||i===null||typeof i>"u")throw new Error(s)}function im(i,s,f,o){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}_.${o}`:h.pathname=`${h.pathname}.${o}`:h.pathname==="/"?h.pathname=`_root.${o}`:s&&ol(h.pathname,s)==="/"?h.pathname=`${pi(s)}/_root.${o}`:h.pathname=`${pi(h.pathname)}.${o}`,h}async function lg(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 ag(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 ng(i,s,f){let o=await Promise.all(i.map(async h=>{let m=s.routes[h.route.id];if(m){let y=await lg(m,f);return y.links?y.links():[]}return[]}));return sg(o.flat(1).filter(ag).filter(h=>h.rel==="stylesheet"||h.rel==="preload").map(h=>h.rel==="stylesheet"?{...h,rel:"prefetch",as:"style"}:{...h,rel:"prefetch"}))}function Oh(i,s,f,o,h,m){let y=(g,v)=>f[v]?g.route.id!==f[v].route.id:!0,j=(g,v)=>{var T;return f[v].pathname!==g.pathname||((T=f[v].route.path)==null?void 0:T.endsWith("*"))&&f[v].params["*"]!==g.params["*"]};return m==="assets"?s.filter((g,v)=>y(g,v)||j(g,v)):m==="data"?s.filter((g,v)=>{var b;let T=o.routes[g.route.id];if(!T||!T.hasLoader)return!1;if(y(g,v)||j(g,v))return!0;if(g.route.shouldRevalidate){let z=g.route.shouldRevalidate({currentUrl:new URL(h.pathname+h.search+h.hash,window.origin),currentParams:((b=f[0])==null?void 0:b.params)||{},nextUrl:new URL(i,window.origin),nextParams:g.params,defaultShouldRevalidate:!0});if(typeof z=="boolean")return z}return!0}):[]}function ug(i,s,{includeHydrateFallback:f}={}){return ig(i.map(o=>{let h=s.routes[o.route.id];if(!h)return[];let m=[h.module];return h.clientActionModule&&(m=m.concat(h.clientActionModule)),h.clientLoaderModule&&(m=m.concat(h.clientLoaderModule)),f&&h.hydrateFallbackModule&&(m=m.concat(h.hydrateFallbackModule)),h.imports&&(m=m.concat(h.imports)),m}).flat(1))}function ig(i){return[...new Set(i)]}function cg(i){let s={},f=Object.keys(i).sort();for(let o of f)s[o]=i[o];return s}function sg(i,s){let f=new Set;return new Set(s),i.reduce((o,h)=>{let m=JSON.stringify(cg(h));return f.has(m)||(f.add(m),o.push({key:m,link:h})),o},[])}function ir(){let i=S.useContext(Qa);return ur(i,"You must render this element inside a <DataRouterContext.Provider> element"),i}function rg(){let i=S.useContext(gi);return ur(i,"You must render this element inside a <DataRouterStateContext.Provider> element"),i}var cr=S.createContext(void 0);cr.displayName="FrameworkContext";function sr(){let i=S.useContext(cr);return ur(i,"You must render this element inside a <HydratedRouter> element"),i}function og(i,s){let f=S.useContext(cr),[o,h]=S.useState(!1),[m,y]=S.useState(!1),{onFocus:j,onBlur:g,onMouseEnter:v,onMouseLeave:T,onTouchStart:b}=s,z=S.useRef(null);S.useEffect(()=>{if(i==="render"&&y(!0),i==="viewport"){let B=L=>{L.forEach(X=>{y(X.isIntersecting)})},k=new IntersectionObserver(B,{threshold:.5});return z.current&&k.observe(z.current),()=>{k.disconnect()}}},[i]),S.useEffect(()=>{if(o){let B=setTimeout(()=>{y(!0)},100);return()=>{clearTimeout(B)}}},[o]);let q=()=>{h(!0)},D=()=>{h(!1),y(!1)};return f?i!=="intent"?[m,z,{}]:[m,z,{onFocus:Yn(j,q),onBlur:Yn(g,D),onMouseEnter:Yn(v,q),onMouseLeave:Yn(T,D),onTouchStart:Yn(b,q)}]:[!1,z,{}]}function Yn(i,s){return f=>{i&&i(f),f.defaultPrevented||s(f)}}function fg({page:i,...s}){let f=Tp(),{router:o}=ir(),h=S.useMemo(()=>Qh(o.routes,i,o.basename),[o.routes,i,o.basename]);return h?f?S.createElement(hg,{page:i,matches:h,...s}):S.createElement(mg,{page:i,matches:h,...s}):null}function dg(i){let{manifest:s,routeModules:f}=sr(),[o,h]=S.useState([]);return S.useEffect(()=>{let m=!1;return ng(i,s,f).then(y=>{m||h(y)}),()=>{m=!0}},[i,s,f]),o}function hg({page:i,matches:s,...f}){let o=fl(),{future:h}=sr(),{basename:m}=ir(),y=S.useMemo(()=>{if(i===o.pathname+o.search+o.hash)return[];let j=im(i,m,h.unstable_trailingSlashAwareDataRequests,"rsc"),g=!1,v=[];for(let T of s)typeof T.route.shouldRevalidate=="function"?g=!0:v.push(T.route.id);return g&&v.length>0&&j.searchParams.set("_routes",v.join(",")),[j.pathname+j.search]},[m,h.unstable_trailingSlashAwareDataRequests,i,o,s]);return S.createElement(S.Fragment,null,y.map(j=>S.createElement("link",{key:j,rel:"prefetch",as:"fetch",href:j,...f})))}function mg({page:i,matches:s,...f}){let o=fl(),{future:h,manifest:m,routeModules:y}=sr(),{basename:j}=ir(),{loaderData:g,matches:v}=rg(),T=S.useMemo(()=>Oh(i,s,v,m,o,"data"),[i,s,v,m,o]),b=S.useMemo(()=>Oh(i,s,v,m,o,"assets"),[i,s,v,m,o]),z=S.useMemo(()=>{if(i===o.pathname+o.search+o.hash)return[];let B=new Set,k=!1;if(s.forEach(X=>{var V;let J=m.routes[X.route.id];!J||!J.hasLoader||(!T.some(Y=>Y.route.id===X.route.id)&&X.route.id in g&&((V=y[X.route.id])!=null&&V.shouldRevalidate)||J.hasClientLoader?k=!0:B.add(X.route.id))}),B.size===0)return[];let L=im(i,j,h.unstable_trailingSlashAwareDataRequests,"data");return k&&B.size>0&&L.searchParams.set("_routes",s.filter(X=>B.has(X.route.id)).map(X=>X.route.id).join(",")),[L.pathname+L.search]},[j,h.unstable_trailingSlashAwareDataRequests,g,o,m,T,s,i,y]),q=S.useMemo(()=>ug(b,m),[b,m]),D=dg(b);return S.createElement(S.Fragment,null,z.map(B=>S.createElement("link",{key:B,rel:"prefetch",as:"fetch",href:B,...f})),q.map(B=>S.createElement("link",{key:B,rel:"modulepreload",href:B,...f})),D.map(({key:B,link:k})=>S.createElement("link",{key:B,nonce:f.nonce,...k,crossOrigin:k.crossOrigin??f.crossOrigin})))}function vg(...i){return s=>{i.forEach(f=>{typeof f=="function"?f(s):f!=null&&(f.current=s)})}}var yg=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{yg&&(window.__reactRouterVersion="7.14.2")}catch{}function pg({basename:i,children:s,unstable_useTransitions:f,window:o}){let h=S.useRef();h.current==null&&(h.current=Fy({window:o,v5Compat:!0}));let m=h.current,[y,j]=S.useState({action:m.action,location:m.location}),g=S.useCallback(v=>{f===!1?j(v):S.startTransition(()=>j(v))},[f]);return S.useLayoutEffect(()=>m.listen(g),[m,g]),S.createElement(Kp,{basename:i,children:s,location:y.location,navigationType:y.action,navigator:m,unstable_useTransitions:f})}var cm=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Je=S.forwardRef(function({onClick:s,discover:f="render",prefetch:o="none",relative:h,reloadDocument:m,replace:y,unstable_mask:j,state:g,target:v,to:T,preventScrollReset:b,viewTransition:z,unstable_defaultShouldRevalidate:q,...D},B){let{basename:k,navigator:L,unstable_useTransitions:X}=S.useContext(Mt),J=typeof T=="string"&&cm.test(T),V=Wh(T,k);T=V.to;let Y=Mp(T,{relative:h}),K=fl(),G=null;if(j){let Ue=er(j,[],K.unstable_mask?K.unstable_mask.pathname:"/",!0);k!=="/"&&(Ue.pathname=Ue.pathname==="/"?k:Ut([k,Ue.pathname])),G=L.createHref(Ue)}let[te,ye,tt]=og(o,D),Fe=xg(T,{replace:y,unstable_mask:j,state:g,target:v,preventScrollReset:b,relative:h,viewTransition:z,unstable_defaultShouldRevalidate:q,unstable_useTransitions:X});function $e(Ue){s&&s(Ue),Ue.defaultPrevented||Fe(Ue)}let Ht=!(V.isExternal||m),St=S.createElement("a",{...D,...tt,href:(Ht?G:void 0)||V.absoluteURL||Y,onClick:Ht?$e:s,ref:vg(B,ye),target:v,"data-discover":!J&&f==="render"?"true":void 0});return te&&!J?S.createElement(S.Fragment,null,St,S.createElement(fg,{page:Y})):St});Je.displayName="Link";var gg=S.forwardRef(function({"aria-current":s="page",caseSensitive:f=!1,className:o="",end:h=!1,style:m,to:y,viewTransition:j,children:g,...v},T){let b=Jn(y,{relative:v.relative}),z=fl(),q=S.useContext(gi),{navigator:D,basename:B}=S.useContext(Mt),k=q!=null&&Ag(b)&&j===!0,L=D.encodeLocation?D.encodeLocation(b).pathname:b.pathname,X=z.pathname,J=q&&q.navigation&&q.navigation.location?q.navigation.location.pathname:null;f||(X=X.toLowerCase(),J=J?J.toLowerCase():null,L=L.toLowerCase()),J&&B&&(J=ol(J,B)||J);const V=L!=="/"&&L.endsWith("/")?L.length-1:L.length;let Y=X===L||!h&&X.startsWith(L)&&X.charAt(V)==="/",K=J!=null&&(J===L||!h&&J.startsWith(L)&&J.charAt(L.length)==="/"),G={isActive:Y,isPending:K,isTransitioning:k},te=Y?s:void 0,ye;typeof o=="function"?ye=o(G):ye=[o,Y?"active":null,K?"pending":null,k?"transitioning":null].filter(Boolean).join(" ");let tt=typeof m=="function"?m(G):m;return S.createElement(Je,{...v,"aria-current":te,className:ye,ref:T,style:tt,to:y,viewTransition:j},typeof g=="function"?g(G):g)});gg.displayName="NavLink";var bg=S.forwardRef(({discover:i="render",fetcherKey:s,navigate:f,reloadDocument:o,replace:h,state:m,method:y=mi,action:j,onSubmit:g,relative:v,preventScrollReset:T,viewTransition:b,unstable_defaultShouldRevalidate:z,...q},D)=>{let{unstable_useTransitions:B}=S.useContext(Mt),k=Tg(),L=_g(j,{relative:v}),X=y.toLowerCase()==="get"?"get":"post",J=typeof j=="string"&&cm.test(j),V=Y=>{if(g&&g(Y),Y.defaultPrevented)return;Y.preventDefault();let K=Y.nativeEvent.submitter,G=(K==null?void 0:K.getAttribute("formmethod"))||y,te=()=>k(K||Y.currentTarget,{fetcherKey:s,method:G,navigate:f,replace:h,state:m,relative:v,preventScrollReset:T,viewTransition:b,unstable_defaultShouldRevalidate:z});B&&f!==!1?S.startTransition(()=>te()):te()};return S.createElement("form",{ref:D,method:X,action:L,onSubmit:o?g:V,...q,"data-discover":!J&&i==="render"?"true":void 0})});bg.displayName="Form";function Sg(i){return`${i} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function sm(i){let s=S.useContext(Qa);return ze(s,Sg(i)),s}function xg(i,{target:s,replace:f,unstable_mask:o,state:h,preventScrollReset:m,relative:y,viewTransition:j,unstable_defaultShouldRevalidate:g,unstable_useTransitions:v}={}){let T=wp(),b=fl(),z=Jn(i,{relative:y});return S.useCallback(q=>{if(Ip(q,s)){q.preventDefault();let D=f!==void 0?f:Qn(b)===Qn(z),B=()=>T(i,{replace:D,unstable_mask:o,state:h,preventScrollReset:m,relative:y,viewTransition:j,unstable_defaultShouldRevalidate:g});v?S.startTransition(()=>B()):B()}},[b,T,z,f,o,h,s,i,m,y,j,g,v])}var jg=0,Eg=()=>`__${String(++jg)}__`;function Tg(){let{router:i}=sm("useSubmit"),{basename:s}=S.useContext(Mt),f=Xp(),o=i.fetch,h=i.navigate;return S.useCallback(async(m,y={})=>{let{action:j,method:g,encType:v,formData:T,body:b}=tg(m,s);if(y.navigate===!1){let z=y.fetcherKey||Eg();await o(z,f,y.action||j,{unstable_defaultShouldRevalidate:y.unstable_defaultShouldRevalidate,preventScrollReset:y.preventScrollReset,formData:T,body:b,formMethod:y.method||g,formEncType:y.encType||v,flushSync:y.flushSync})}else await h(y.action||j,{unstable_defaultShouldRevalidate:y.unstable_defaultShouldRevalidate,preventScrollReset:y.preventScrollReset,formData:T,body:b,formMethod:y.method||g,formEncType:y.encType||v,replace:y.replace,state:y.state,fromRouteId:f,flushSync:y.flushSync,viewTransition:y.viewTransition})},[o,h,s,f])}function _g(i,{relative:s}={}){let{basename:f}=S.useContext(Mt),o=S.useContext(Qt);ze(o,"useFormAction must be used inside a RouteContext");let[h]=o.matches.slice(-1),m={...Jn(i||".",{relative:s})},y=fl();if(i==null){m.search=y.search;let j=new URLSearchParams(m.search),g=j.getAll("index");if(g.some(T=>T==="")){j.delete("index"),g.filter(b=>b).forEach(b=>j.append("index",b));let T=j.toString();m.search=T?`?${T}`:""}}return(!i||i===".")&&h.route.index&&(m.search=m.search?m.search.replace(/^\?/,"?index&"):"?index"),f!=="/"&&(m.pathname=m.pathname==="/"?f:Ut([f,m.pathname])),Qn(m)}function Ag(i,{relative:s}={}){let f=S.useContext(Ph);ze(f!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:o}=sm("useViewTransitionState"),h=Jn(i,{relative:s});if(!f.isTransitioning)return!1;let m=ol(f.currentLocation.pathname,o)||f.currentLocation.pathname,y=ol(f.nextLocation.pathname,o)||f.nextLocation.pathname;return yi(h.pathname,y)!=null||yi(h.pathname,m)!=null}const rm=/^\/vault\/([^/]+)\/admin(?=\/|$)/;function om(){if(typeof window>"u")return null;const i=window.location.pathname.match(rm);if(!i)return null;try{return decodeURIComponent(i[1])}catch{return null}}function Ng(){if(typeof window>"u")return"";const i=window.location.pathname,s=i.match(rm);return s?`/vault/${s[1]}/admin`:i==="/admin"||i.startsWith("/admin/")?"/admin":""}let Bl=null,Gt=null,aa=null,rl=null,Dh=!1;const Rg=.8,zg=1e3,Cg=3e4;function Mg(){if(typeof window>"u")return;const i=window.location.hash;if(!i||i.length<2)return;const s=new URLSearchParams(i.slice(1)),f=s.get("token");if(!f)return;Bl=f,Gt=null,s.delete("token");const o=s.toString(),h=o.length>0?`#${o}`:"",m=`${window.location.pathname}${window.location.search}${h}`;window.history.replaceState(null,"",m)}function rr(){return Bl}function wg(){Bl=null,Gt=null,rl=null,Si()}async function Vn(i){if(typeof window>"u")return{kind:"network-error",message:"no window"};let s;try{s=await fetch(`/admin/vault-admin-token/${encodeURIComponent(i)}`,{method:"GET",headers:{accept:"application/json"},credentials:"same-origin"})}catch(o){return{kind:"network-error",message:o instanceof Error?o.message:String(o)}}if(s.status===401||s.status===403||s.status===404)return{kind:"auth-required",status:s.status};if(!s.ok)return{kind:"network-error",message:`hub returned ${s.status}`};let f;try{f=await s.json()}catch(o){return{kind:"network-error",message:o instanceof Error?o.message:"could not parse mint response"}}return typeof f.token!="string"||f.token.length===0?{kind:"network-error",message:"mint response missing token"}:(Bl=f.token,Gt=f.expires_at?Og(f.expires_at):null,rl=i,fm(),Hg(),{kind:"ok",token:f.token})}function Og(i){const s=Date.parse(i);return Number.isNaN(s)?null:s}async function Is(i){if(Bl){if(Gt===null||Gt>Date.now())return{kind:"ok",token:Bl};Bl=null,Gt=null,Si()}return Vn(i)}async function Dg(i){typeof window>"u"||Bl||await Vn(i).catch(()=>{})}function fm(){if(Si(),Gt===null||rl===null||typeof document<"u"&&document.visibilityState==="hidden")return;const i=Date.now(),s=Gt-i;if(s<=0)return;const f=Math.max(Math.floor(s*Rg),zg);aa=setTimeout(()=>{Ug()},f)}function Si(){aa!==null&&(clearTimeout(aa),aa=null)}async function Ug(){if(aa=null,rl===null)return;const i=await Vn(rl);i.kind!=="ok"&&(typeof console<"u"&&console.warn("[vault-admin-spa] proactive token refresh failed; will retry once",i),aa=setTimeout(()=>{aa=null,rl!==null&&Vn(rl).catch(()=>{})},Cg))}function Hg(){Dh||typeof document>"u"||(Dh=!0,document.addEventListener("visibilitychange",()=>{if(document.visibilityState==="hidden"){Si();return}if(rl!==null){if(Gt!==null&&Gt<=Date.now()){Vn(rl).catch(()=>{});return}fm()}}))}class _e extends Error{constructor(s,f){super(f),this.status=s,this.name="HttpError"}}async function et(i,s,f={}){let o=rr();if(!o){const v=await Is(i);if(v.kind!=="ok")throw new _e(401,"no admin token — sign in to the hub to refresh");o=v.token}const{headers:h,...m}=f,y=v=>({accept:"application/json",...h??{},authorization:`Bearer ${v}`}),j=await fetch(s,{...m,headers:y(o)});if(j.status!==401)return j;wg();const g=await Is(i);return g.kind!=="ok"?j:fetch(s,{...m,headers:y(g.token)})}async function Bg(){const i=await fetch("/vaults/list",{headers:{accept:"application/json"}});if(i.status===404)return[];if(!i.ok)throw new _e(i.status,`vaults/list fetch failed: ${i.status}`);return(await i.json()).vaults??[]}async function Lg(i){const s=await et(i,`/vault/${encodeURIComponent(i)}/`);if(!s.ok)throw new _e(s.status,await rt(s));return await s.json()}async function qg(i){const s=await et(i,`/vault/${encodeURIComponent(i)}/.parachute/mirror`);if(!s.ok)throw new _e(s.status,await rt(s));return await s.json()}async function kg(i,s){const f=await et(i,`/vault/${encodeURIComponent(i)}/.parachute/mirror`,{method:"PUT",headers:{"content-type":"application/json"},body:JSON.stringify(s)});if(!f.ok)throw new _e(f.status,await rt(f));return await f.json()}async function Yg(i){const s=await et(i,`/vault/${encodeURIComponent(i)}/.parachute/mirror/run-now`,{method:"POST"});if(!s.ok)throw new _e(s.status,await rt(s));return await s.json()}async function Gg(i){const s=await et(i,`/vault/${encodeURIComponent(i)}/.parachute/mirror/push-now`,{method:"POST"});if(!s.ok)throw new _e(s.status,await rt(s));return await s.json()}async function dm(i){const s=await et(i,`/vault/${encodeURIComponent(i)}/.parachute/mirror/auth`);if(!s.ok)throw new _e(s.status,await rt(s));return await s.json()}async function Xg(i){const s=await et(i,`/vault/${encodeURIComponent(i)}/.parachute/mirror/auth`,{method:"DELETE"});if(!s.ok)throw new _e(s.status,await rt(s));return await s.json()}async function Qg(i){const s=await et(i,`/vault/${encodeURIComponent(i)}/.parachute/mirror/auth/github/device-code`,{method:"POST"});if(!s.ok)throw new _e(s.status,await rt(s));return await s.json()}async function Vg(i,s){const f=await et(i,`/vault/${encodeURIComponent(i)}/.parachute/mirror/auth/github/poll`,{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify({polling_id:s})});if(!f.ok&&f.status!==404)throw new _e(f.status,await rt(f));return await f.json()}async function Zg(i,s){const f=await et(i,`/vault/${encodeURIComponent(i)}/.parachute/mirror/auth/pat`,{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify(s)});if(!f.ok)throw new _e(f.status,await rt(f));return await f.json()}async function hm(i){const s=await et(i,`/vault/${encodeURIComponent(i)}/.parachute/mirror/auth/github/repos`);if(!s.ok)throw new _e(s.status,await rt(s));return await s.json()}async function Kg(i,s){const f=await et(i,`/vault/${encodeURIComponent(i)}/.parachute/mirror/auth/github/create-repo`,{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify(s)});if(!f.ok)throw new _e(f.status,await rt(f));return await f.json()}async function Jg(i,s){const f=await et(i,`/vault/${encodeURIComponent(i)}/.parachute/mirror/auth/github/select-repo`,{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify(s)});if(!f.ok)throw new _e(f.status,await rt(f));return await f.json()}async function $g(i,s){const f=await et(i,`/vault/${encodeURIComponent(i)}/.parachute/mirror/import`,{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify(s)});if(!f.ok)throw new _e(f.status,await rt(f));return await f.json()}async function rt(i){try{const s=await i.text(),f=JSON.parse(s);if(f.error_description)return f.error_description;if(f.message)return f.message;if(f.error)return f.error;if(s)return s}catch{}return`${i.status} ${i.statusText}`}function mm(i){const s=i.split(".");if(s.length!==3)return null;try{const f=s[1].replace(/-/g,"+").replace(/_/g,"/"),o=f.length%4===0?"":"=".repeat(4-f.length%4),h=atob(f+o),m=JSON.parse(h);return m===null||typeof m!="object"?null:m}catch{return null}}function Wg(i){if(!i)return[];const s=mm(i);if(!s)return[];const f=s.scope;if(typeof f=="string"&&f.length>0)return f.split(/\s+/).filter(h=>h.length>0);const o=s.scopes;return Array.isArray(o)?o.filter(h=>typeof h=="string"&&h.length>0):[]}function vm(i){return Wg(rr()).includes(`vault:${i}:admin`)}function ym(){const i=rr();if(!i)return null;const s=mm(i);if(!s)return null;const f=s.iss;return typeof f!="string"||f.length===0?null:f.replace(/\/$/,"")}const Uh=5e3;function or({vaultName:i,status:s,onRecovered:f}){S.useEffect(()=>{let y=!1,j=null;const g=async()=>{if(y||typeof document<"u"&&document.visibilityState!=="visible")return;const T=await Is(i);if(!y){if(T.kind==="ok"){f();return}j=setTimeout(()=>void g(),Uh)}},v=()=>{typeof document>"u"||document.visibilityState==="visible"&&(j!==null&&(clearTimeout(j),j=null),g())};return j=setTimeout(()=>void g(),Uh),typeof document<"u"&&document.addEventListener("visibilitychange",v),()=>{y=!0,j!==null&&clearTimeout(j),typeof document<"u"&&document.removeEventListener("visibilitychange",v)}},[i,f]);const o=Fg(),h=`/login?next=${encodeURIComponent(o)}`,m=s===404?"This hub doesn't host a vault by that name.":"You're not signed in to the hub.";return c.jsxs("div",{className:"warn-banner",role:"status",children:[c.jsxs("p",{style:{margin:"0 0 0.5rem"},children:[m," ",c.jsx("a",{href:h,children:"Sign in to the hub →"})]}),c.jsx("p",{className:"dim",style:{margin:0,fontSize:"0.85rem"},children:"After signing in, this page will refresh automatically."})]})}function Fg(){return typeof window>"u"?"/":`${window.location.pathname}${window.location.search}${window.location.hash}`}function Hh({vaultName:i}={}){const s=lr(),f=i??s.name,o=i!==void 0,h=o?"/tokens":`/vault/${encodeURIComponent(f??"")}/tokens`,m=o?"/mirror":`/vault/${encodeURIComponent(f??"")}/mirror`,[y,j]=S.useState({kind:"loading"}),[g,v]=S.useState(0),T=S.useCallback(()=>v(q=>q+1),[]);if(S.useEffect(()=>{let q=!1;if(!f){j({kind:"missing"});return}return j({kind:"loading"}),Lg(f).then(D=>{q||j({kind:"ok",vault:D})}).catch(D=>{if(q)return;if(D instanceof _e){if(D.status===401||D.status===403){j({kind:"auth-required",status:D.status});return}if(D.status===404){j({kind:"missing"});return}j({kind:"error",message:`${D.status}: ${D.message}`});return}const B=D instanceof Error?D.message:String(D);j({kind:"error",message:B})}),()=>{q=!0}},[f,g]),y.kind==="loading")return c.jsxs("div",{children:[c.jsx("h2",{children:"Vault"}),c.jsx("p",{className:"muted",children:"Loading…"})]});if(y.kind==="auth-required")return c.jsxs("div",{children:[c.jsxs("h2",{children:["Vault ",c.jsx("code",{children:f})]}),c.jsx(or,{vaultName:f??"",status:y.status,onRecovered:T}),o?null:c.jsx(Je,{to:"/",children:"← Back to vaults"})]});if(y.kind==="missing")return c.jsxs("div",{children:[c.jsx("h2",{children:"Vault not found"}),c.jsxs("p",{className:"muted",children:["No vault named ",c.jsx("code",{children:f})," is registered on this server."]}),o?null:c.jsx(Je,{to:"/",children:"← Back to vaults"})]});if(y.kind==="error")return c.jsxs("div",{children:[c.jsxs("h2",{children:["Vault ",c.jsx("code",{children:f})]}),c.jsx("div",{className:"error-banner",children:c.jsx("code",{children:y.message})}),o?null:c.jsx(Je,{to:"/",children:"← Back to vaults"})]});const{vault:b}=y,z=`/vault/${b.name}`;return c.jsxs("div",{children:[c.jsxs("div",{className:"list-header",children:[c.jsxs("h2",{children:["Vault ",c.jsx("code",{children:b.name})]}),o?null:c.jsx(Je,{to:"/",className:"muted",children:"← All vaults"})]}),c.jsxs("div",{className:"kv section",children:[c.jsx("div",{children:"Name"}),c.jsx("div",{children:c.jsx("code",{children:b.name})}),b.description?c.jsxs(c.Fragment,{children:[c.jsx("div",{children:"Description"}),c.jsx("div",{children:b.description})]}):null,c.jsx("div",{children:"Mount"}),c.jsx("div",{children:c.jsx("code",{children:z})}),b.createdAt?c.jsxs(c.Fragment,{children:[c.jsx("div",{children:"Created"}),c.jsx("div",{children:c.jsx("code",{children:b.createdAt})})]}):null]}),c.jsxs("div",{className:"section",children:[c.jsx("h3",{style:{margin:"0 0 0.85rem",fontSize:"1rem",fontWeight:500},children:"Stats"}),c.jsxs("div",{className:"stats",children:[c.jsxs("div",{className:"stat",children:[c.jsx("div",{className:"label",children:"Notes"}),c.jsx("div",{className:"value",children:b.stats.totalNotes})]}),c.jsxs("div",{className:"stat",children:[c.jsx("div",{className:"label",children:"Tags"}),c.jsx("div",{className:"value",children:b.stats.tagCount})]}),c.jsxs("div",{className:"stat",children:[c.jsx("div",{className:"label",children:"Attachments"}),c.jsx("div",{className:"value",children:b.stats.attachmentCount})]}),c.jsxs("div",{className:"stat",children:[c.jsx("div",{className:"label",children:"Links"}),c.jsx("div",{className:"value",children:b.stats.linkCount})]})]})]}),c.jsxs("div",{className:"section",children:[c.jsx("h3",{style:{margin:"0 0 0.85rem",fontSize:"1rem",fontWeight:500},children:"Manage"}),c.jsxs("ul",{className:"manage-list",children:[c.jsxs("li",{children:[c.jsx(Je,{to:h,children:"Tokens →"}),c.jsxs("span",{className:"dim",children:[" mint, list, and revoke ",c.jsx("code",{children:"pvt_*"})," tokens"]})]}),c.jsxs("li",{children:[c.jsx(Je,{to:m,children:"Git backup →"}),c.jsx("span",{className:"dim",children:" mirror this vault to a git repository on a schedule, or on demand"})]}),c.jsx(Ig,{vaultName:b.name})]})]})]})}function Ig({vaultName:i}){const s=ym();if(!s)return c.jsxs("li",{children:[c.jsx("span",{children:"Permissions →"}),c.jsxs("span",{className:"dim",children:[" ","grants are managed on hub (the OAuth issuer); link will be live when hub ships its permissions UI."]})]});const f=`${s}/hub/permissions?vault=${encodeURIComponent(i)}`;return c.jsxs("li",{children:[c.jsx("a",{href:f,children:"Permissions →"}),c.jsxs("span",{className:"dim",children:[" ","grants are managed on hub (the OAuth issuer); link will be live when hub ships its permissions UI."]})]})}const Pg=[{value:"events",label:"On change (default)"},{value:"manual",label:"Manual only"}],e0=[{id:"history",label:"History",subtext:"Local audit trail. Hidden under vault data. Events-driven.",apply:i=>({...i,enabled:!0,location:"internal",sync_mode:"events",auto_commit:!0,auto_push:!1})},{id:"live",label:"Live Mirror",subtext:"Visible folder. Open in Obsidian, push to GitHub. Events-driven.",apply:i=>({...i,enabled:!0,location:"external",sync_mode:"events",auto_commit:!0})},{id:"manual",label:"Manual Export",subtext:"Snapshot on demand. No auto-fire.",apply:i=>({...i,enabled:!0,location:"external",sync_mode:"manual",auto_commit:!0,auto_push:!1})}];function Bh({vaultName:i}={}){const s=lr(),f=i??s.name,o=i!==void 0,h=o?"/":`/vault/${encodeURIComponent(f??"")}`,[m,y]=S.useState({kind:"loading"}),[j,g]=S.useState(0);S.useEffect(()=>{let T=!1;if(f)return y({kind:"loading"}),qg(f).then(b=>{T||y({kind:"ok",snapshot:b})}).catch(b=>{if(T)return;if(b instanceof _e&&(b.status===401||b.status===403)){y({kind:"auth-required",status:b.status});return}const z=b instanceof Error?b.message:String(b);y({kind:"error",message:z})}),()=>{T=!0}},[f,j]);const v=S.useCallback(()=>g(T=>T+1),[]);return f?c.jsxs("div",{children:[c.jsxs("div",{className:"list-header",children:[c.jsxs("h2",{children:["Git backup for ",c.jsx("code",{children:f})]}),c.jsx(Je,{to:h,className:"muted",children:"← Vault detail"})]}),m.kind==="loading"?c.jsx("p",{className:"muted",children:"Loading…"}):null,m.kind==="auth-required"?c.jsx(or,{vaultName:f,status:m.status,onRecovered:v}):null,m.kind==="error"?c.jsx("div",{className:"error-banner",children:c.jsx("code",{children:m.message})}):null,m.kind==="ok"?c.jsx(t0,{vaultName:f,snapshot:m.snapshot,onRefresh:()=>g(T=>T+1),onSnapshot:T=>y({kind:"ok",snapshot:T})}):null]}):c.jsxs("div",{children:[c.jsx("h2",{children:"Mirror"}),c.jsx("p",{className:"muted",children:"Missing vault name."}),o?null:c.jsx(Je,{to:"/",children:"← Back to vaults"})]})}function t0({vaultName:i,snapshot:s,onRefresh:f,onSnapshot:o}){const h=vm(i),[m,y]=S.useState(null),[j,g]=S.useState(null);return S.useEffect(()=>{if(!h)return;let v=!1;return dm(i).then(T=>{v||y(T)}).catch(T=>{v||g(T instanceof Error?T.message:String(T))}),()=>{v=!0}},[i,h]),c.jsxs(c.Fragment,{children:[c.jsx(l0,{status:s.status,config:s.config,creds:m,canRun:h&&s.status.enabled,vaultName:i,onSnapshot:o}),h?null:c.jsxs("div",{className:"warn-banner",children:["You're viewing this page with a read-only token. Saving config + manual run require ",c.jsxs("code",{children:["vault:",i,":admin"]}),`. Re-enter from the hub directory's "Manage" link with an admin-scoped session to make changes.`]}),c.jsx(a0,{vaultName:i,initial:s.config,readOnly:!h,creds:m,onSaved:v=>{o(v),f()}}),h?c.jsx(n0,{vaultName:i,creds:m,credsError:j,onCredsChanged:y,onCredsSaved:()=>{f()},locationIsExternal:s.config.location==="external"}):null,h?c.jsx(r0,{vaultName:i,creds:m}):null]})}function l0({status:i,config:s,creds:f,canRun:o,vaultName:h,onSnapshot:m}){const y=s.enabled,[j,g]=S.useState(!1),[v,T]=S.useState(!1),[b,z]=S.useState(null),q=async()=>{g(!0),z(null);try{const L=await Yg(h);m(L)}catch(L){z(L instanceof Error?L.message:String(L))}finally{g(!1)}},D=async()=>{T(!0),z(null);try{const L=await Gg(h);m(L)}catch(L){z(L instanceof Error?L.message:String(L))}finally{T(!1)}},B=!!(f!=null&&f.active_method)||s.auto_push,k=!o||v||!B;return c.jsxs("div",{className:"section",children:[c.jsx("h3",{style:{margin:"0 0 0.85rem",fontSize:"1rem",fontWeight:500},children:"Status"}),c.jsxs("div",{className:"kv",children:[c.jsx("div",{children:"Enabled"}),c.jsx("div",{children:y?c.jsx("code",{children:"yes"}):c.jsx("code",{children:"no"})}),c.jsx("div",{children:"Watch loop"}),c.jsx("div",{children:i.watch_running?c.jsx("code",{children:"running"}):c.jsx("code",{children:"stopped"})}),c.jsx("div",{children:"Path"}),c.jsx("div",{children:i.mirror_path?c.jsx("code",{children:i.mirror_path}):c.jsx("span",{className:"dim",children:"—"})}),c.jsx("div",{children:"Last export"}),c.jsx("div",{children:i.last_export_at?c.jsxs(c.Fragment,{children:[c.jsx("code",{children:i.last_export_at}),i.last_export_notes_count!==null?c.jsxs("span",{className:"dim",children:[" ","· ",i.last_export_notes_count," note",i.last_export_notes_count===1?"":"s"]}):null]}):c.jsx("span",{className:"dim",children:"never"})}),c.jsx("div",{children:"Last commit"}),c.jsx("div",{children:i.last_commit_sha?c.jsx("code",{children:i.last_commit_sha.slice(0,10)}):c.jsx("span",{className:"dim",children:"—"})}),c.jsx("div",{children:"Last push"}),c.jsx("div",{children:i.last_push_at?c.jsxs(c.Fragment,{children:[c.jsx("code",{children:i.last_push_at}),i.last_push_sha?c.jsxs("span",{className:"dim",children:[" ","· ",c.jsx("code",{children:i.last_push_sha.slice(0,10)})]}):null]}):c.jsx("span",{className:"dim",children:"never"})}),i.commits_unpushed!==null&&i.commits_unpushed>0?c.jsxs(c.Fragment,{children:[c.jsx("div",{}),c.jsxs("div",{className:"dim",children:[i.commits_unpushed," commit",i.commits_unpushed===1?"":"s"," ready to push"]})]}):null]}),i.last_push_error?c.jsxs("div",{className:"error-banner",style:{marginTop:"1rem"},children:[c.jsx("strong",{children:"Last push failed:"})," ",c.jsx("code",{children:i.last_push_error})]}):null,i.last_error?c.jsxs("div",{className:"error-banner",style:{marginTop:"1rem"},children:[c.jsx("strong",{children:"Last error:"})," ",c.jsx("code",{children:i.last_error})]}):null,b?c.jsx("div",{className:"error-banner",style:{marginTop:"1rem"},children:c.jsx("code",{children:b})}):null,c.jsxs("div",{className:"actions",children:[c.jsx("button",{type:"button",onClick:q,disabled:!o||j,title:y?o?void 0:"Admin scope required to trigger a manual export.":"Enable the mirror first, then trigger a manual export.",children:j?"Running…":"Run export now"}),c.jsx("button",{type:"button",className:"secondary",onClick:D,disabled:k,title:y?o?B?void 0:"Wire credentials or turn on auto-push to push to a remote.":"Admin scope required to push.":"Enable the mirror first, then push.",children:v?"Pushing…":"Push now"})]})]})}function a0({vaultName:i,initial:s,readOnly:f,creds:o,onSaved:h}){const[m,y]=S.useState(s),[j,g]=S.useState(!1),[v,T]=S.useState(!1),[b,z]=S.useState(null),[q,D]=S.useState(null),[B,k]=S.useState(0);S.useEffect(()=>{y(s)},[s]);const L=V=>{const Y=V.apply(m);y(Y)},X=V=>{y(Y=>({...Y,sync_mode:V}))},J=async V=>{if(V.preventDefault(),!f){T(!0),z(null),D(null);try{const Y=await kg(i,m);h(Y),k(K=>K+1),setTimeout(()=>k(0),3e3)}catch(Y){if(Y instanceof _e){const K=Y.message;z(K);const G=K.toLowerCase();G.includes("external_path")?D("external_path"):G.includes("commit_template")?D("commit_template"):G.includes("safety_net_seconds")?D("safety_net_seconds"):G.includes("sync_mode")?D("sync_mode"):G.includes("auto_push")?D("auto_push"):G.includes("location")?D("location"):D(null)}else z(Y instanceof Error?Y.message:String(Y))}finally{T(!1)}}};return c.jsxs("form",{className:"section",onSubmit:J,children:[c.jsx("h3",{style:{margin:"0 0 0.85rem",fontSize:"1rem",fontWeight:500},children:"Configuration"}),c.jsxs("div",{className:"form-row",children:[c.jsxs("label",{children:[c.jsx("input",{type:"checkbox",checked:m.enabled,disabled:f,onChange:V=>y(Y=>({...Y,enabled:V.target.checked})),style:{width:"auto",marginRight:"0.5rem"}}),"Enable mirror"]}),c.jsx("p",{className:"dim",style:{margin:"0.35rem 0 0"},children:"Master switch. When off, no export / commit / push runs."})]}),c.jsxs("div",{className:"form-row",children:[c.jsx("label",{children:"Presets"}),c.jsxs("p",{className:"dim",style:{marginTop:0,marginBottom:"0.5rem",fontSize:"0.9em"},children:[c.jsx("strong",{children:"History"})," is the easiest start — vault manages the mirror folder under its own data dir, no path to pick, no remote to configure. ",c.jsx("strong",{children:"Live Mirror"})," + ",c.jsx("strong",{children:"Manual Export"})," are for operators who want to point at a visible folder (Obsidian, GitHub)."]}),c.jsx("div",{className:"preset-grid",children:e0.map(V=>c.jsxs("button",{type:"button",className:"preset-card",disabled:f,onClick:()=>L(V),"aria-label":`Apply ${V.label} preset`,children:[c.jsx("strong",{children:V.label}),c.jsx("span",{className:"dim",children:V.subtext})]},V.id))})]}),c.jsxs("div",{className:"form-row",children:[c.jsx("label",{children:"Location"}),c.jsxs("div",{children:[c.jsxs("label",{className:"radio-row",children:[c.jsx("input",{type:"radio",name:"location",value:"internal",checked:m.location==="internal",disabled:f,onChange:()=>y(V=>({...V,location:"internal"}))}),c.jsxs("span",{children:["Internal ",c.jsx("span",{className:"dim",children:"— hidden under vault data dir"})]})]}),c.jsxs("label",{className:"radio-row",children:[c.jsx("input",{type:"radio",name:"location",value:"external",checked:m.location==="external",disabled:f,onChange:()=>y(V=>({...V,location:"external"}))}),c.jsxs("span",{children:["External ",c.jsx("span",{className:"dim",children:"— operator-picked path"})]})]})]})]}),m.location==="external"?c.jsxs("div",{className:"form-row",children:[c.jsx("label",{htmlFor:"external-path",children:"External path"}),c.jsx("input",{id:"external-path",type:"text",value:m.external_path??"",disabled:f,onChange:V=>y(Y=>({...Y,external_path:V.target.value.length>0?V.target.value:null})),placeholder:"/Users/you/Documents/vault-mirror","aria-invalid":q==="external_path"}),c.jsxs("div",{className:"warn-banner",style:{marginTop:"0.5rem"},role:"alert",children:["Path must exist AND be a git repo (run ",c.jsx("code",{children:"git init"})," first if needed)."]})]}):null,c.jsxs("div",{className:"form-row",children:[c.jsx("label",{htmlFor:"sync-mode-select",children:"Sync mode"}),c.jsx("select",{id:"sync-mode-select",value:m.sync_mode,disabled:f,onChange:V=>X(V.target.value),children:Pg.map(V=>c.jsx("option",{value:V.value,children:V.label},V.value))}),c.jsx("p",{className:"dim",style:{margin:"0.35rem 0 0"},children:m.sync_mode==="manual"?'No auto-fire. Exports only run when you click "Run export now" (or run `parachute-vault export` from the CLI).':"Every change to a note, tag, or attachment triggers an export within ~500ms. A background safety check runs hourly to catch anything missed."})]}),c.jsxs("div",{className:"form-row",children:[c.jsxs("label",{children:[c.jsx("input",{type:"checkbox",checked:m.auto_commit,disabled:f,onChange:V=>y(Y=>({...Y,auto_commit:V.target.checked})),style:{width:"auto",marginRight:"0.5rem"}}),"Commit after each export"]}),m.auto_commit?null:c.jsx("p",{className:"hint",style:{marginTop:"0.25rem",fontSize:"0.85em"},children:"Note: the export cursor still advances after each pass. Subsequent runs only re-export notes written since the last pass — even when triggered manually."})]}),m.location==="external"||o!=null&&o.active_method?c.jsxs("div",{className:"form-row",children:[c.jsxs("label",{children:[c.jsx("input",{type:"checkbox",checked:m.auto_push,disabled:f,onChange:V=>y(Y=>({...Y,auto_push:V.target.checked})),style:{width:"auto",marginRight:"0.5rem"}}),"Push after each commit"]}),c.jsx("p",{className:"dim",style:{margin:"0.35rem 0 0",fontSize:"0.9em"},children:"When credentials are configured, vault can push the mirror's commits to your remote regardless of whether the mirror folder lives under vault's data dir or somewhere visible."}),m.auto_push?o!=null&&o.active_method?c.jsxs("div",{className:"info-banner",style:{marginTop:"0.5rem"},role:"status",children:[o.active_method==="github_oauth"&&o.github_oauth?c.jsxs(c.Fragment,{children:["Will push to ",c.jsxs("code",{children:["@",o.github_oauth.user_login]})," on GitHub."]}):o.active_method==="pat"&&o.pat?c.jsxs(c.Fragment,{children:["Will push using saved credential: ",c.jsx("code",{children:o.pat.label}),"."]}):c.jsx(c.Fragment,{children:"Will push using saved credential."})," ","Failed pushes are logged but won't crash the export."]}):c.jsxs("div",{className:"warn-banner",style:{marginTop:"0.5rem"},role:"alert",children:["Auto-push needs git credentials. Either connect GitHub in the"," ",c.jsx("strong",{children:"Git remote"})," section below, or paste a Personal Access Token + remote URL. Failed pushes are logged but won't crash the export."]}):null]}):null,c.jsx("div",{className:"form-row",children:c.jsxs("button",{type:"button",className:"secondary",onClick:()=>g(V=>!V),children:[j?"Hide":"Show"," advanced"]})}),j?c.jsxs("div",{className:"form-row",children:[c.jsx("label",{htmlFor:"commit-template",children:"Commit template"}),c.jsx("input",{id:"commit-template",type:"text",value:m.commit_template,disabled:f,onChange:V=>y(Y=>({...Y,commit_template:V.target.value})),"aria-invalid":q==="commit_template"}),c.jsxs("p",{className:"dim",style:{margin:"0.35rem 0 0"},children:["Supports ",c.jsx("code",{children:"{{date}}"}),", ",c.jsx("code",{children:"{{notes_changed}}"}),","," ",c.jsx("code",{children:"{{plural}}"}),", ",c.jsx("code",{children:"{{first_note_title}}"}),","," ",c.jsx("code",{children:"{{vault_name}}"}),"."]})]}):null,b?c.jsx("div",{className:"error-banner",role:"alert",children:c.jsx("code",{children:b})}):null,B>0?c.jsx("div",{className:"mint-banner",style:{padding:"0.75rem 1rem",marginBottom:"1rem"},role:"status",children:"Saved."}):null,c.jsx("div",{className:"actions",children:c.jsx("button",{type:"submit",disabled:f||v,children:v?"Saving…":"Save"})})]})}function n0({vaultName:i,creds:s,credsError:f,onCredsChanged:o,onCredsSaved:h,locationIsExternal:m}){const[y,j]=S.useState(!1),[g,v]=S.useState(!1),[T,b]=S.useState(!1),[z,q]=S.useState(null),[D,B]=S.useState(null),k=(s==null?void 0:s.active_method)!==null&&(s==null?void 0:s.active_method)!==void 0,L=async()=>{if(confirm("Disconnect git remote credentials? Auto-push will stop working until you reconnect.")){b(!0),q(null);try{const X=await Xg(i);o(X)}catch(X){q(X instanceof Error?X.message:String(X))}finally{b(!1)}}};return c.jsxs("div",{className:"section",id:"git-remote-section",children:[c.jsx("h3",{style:{margin:"0 0 0.85rem",fontSize:"1rem",fontWeight:500},children:"Git remote"}),c.jsxs("p",{className:"dim",style:{marginTop:0},children:["Credentials for ",c.jsx("code",{children:"auto-push"}),". Stored on this server with"," ",c.jsx("code",{children:"0600"})," file permissions. Never sent to GitHub or any third party."]}),!m&&!(s!=null&&s.active_method)?c.jsx("div",{className:"info-banner",style:{marginBottom:"0.75rem"},role:"status",children:"Internal mirrors live under the vault's data directory. To push them to a remote, paste a Personal Access Token + remote URL below — that wires the remote and turns on auto-push automatically."}):null,f?c.jsxs("div",{className:"error-banner",role:"alert",children:["Could not load credential status: ",c.jsx("code",{children:f})]}):null,k?c.jsxs("div",{className:"kv",style:{marginBottom:"0.75rem"},children:[c.jsx("div",{children:"Status"}),c.jsx("div",{children:(s==null?void 0:s.active_method)==="github_oauth"&&s.github_oauth?c.jsxs(c.Fragment,{children:["Connected to ",c.jsxs("code",{children:["@",s.github_oauth.user_login]})," on GitHub"]}):(s==null?void 0:s.active_method)==="pat"&&s.pat?c.jsxs(c.Fragment,{children:["Custom credential: ",c.jsx("code",{children:s.pat.label})]}):null}),(s==null?void 0:s.active_method)==="github_oauth"&&s.github_oauth?c.jsxs(c.Fragment,{children:[c.jsx("div",{children:"Token"}),c.jsxs("div",{children:[c.jsx("code",{children:s.github_oauth.token_preview})," ",c.jsxs("span",{className:"dim",children:["· scope ",s.github_oauth.scope||"—"," · authorized"," ",s.github_oauth.authorized_at.slice(0,10)]})]})]}):null,(s==null?void 0:s.active_method)==="pat"&&s.pat?c.jsxs(c.Fragment,{children:[c.jsx("div",{children:"Remote"}),c.jsx("div",{children:c.jsx("code",{children:s.pat.remote_url})}),c.jsx("div",{children:"Token"}),c.jsx("div",{children:c.jsx("code",{children:s.pat.token_preview})})]}):null]}):c.jsx("p",{className:"dim",children:"Not connected. Auto-push won't work until you connect. Personal Access Token is the universal path (works with GitHub, GitLab, Gitea, Bitbucket, anything that takes an HTTPS token); the GitHub shortcut just saves a step for GitHub users."}),z?c.jsx("div",{className:"error-banner",role:"alert",children:c.jsx("code",{children:z})}):null,D?c.jsxs("div",{className:"mint-banner",style:{marginBottom:"0.75rem"},role:"status",children:[c.jsx("strong",{children:"Credentials saved."})," ",(()=>{const X=D,J=X.initial_push.fired&&X.initial_push.pushed?X.initial_push.sha:void 0,V=X.initial_push.fired&&!X.initial_push.pushed?X.initial_push.error:void 0;return X.auto_push_was_already_enabled?J?c.jsxs(c.Fragment,{children:["Auto-push was already on; just pushed"," ",c.jsx("code",{children:J.slice(0,10)}),"."]}):V?c.jsx(c.Fragment,{children:"Auto-push was already on; the push attempt failed — see the Status card above for details."}):c.jsx(c.Fragment,{children:"Auto-push was already on; nothing to push right now."}):X.auto_push_enabled?J?c.jsxs(c.Fragment,{children:["Auto-push enabled and the first push landed"," ",c.jsx("code",{children:J.slice(0,10)}),". Your next commit will push to the remote too."]}):V?c.jsx(c.Fragment,{children:"Auto-push enabled. The initial push attempt failed — see the Status card above for the error."}):c.jsx(c.Fragment,{children:"Auto-push enabled. Your next commit will push to the remote."}):c.jsx(c.Fragment,{children:"Credentials wired. Auto-push remains off; flip it on in Configuration above to push commits automatically."})})()," ",c.jsx("button",{type:"button",className:"secondary",onClick:()=>B(null),style:{marginLeft:"0.5rem"},"aria-label":"Dismiss",children:"Dismiss"})]}):null,c.jsx("div",{className:"actions",children:k?c.jsx("button",{type:"button",className:"secondary",onClick:L,disabled:T,children:T?"Disconnecting…":"Disconnect"}):c.jsxs(c.Fragment,{children:[c.jsx("button",{type:"button",onClick:()=>v(!0),children:"Use Personal Access Token"}),c.jsx("button",{type:"button",className:"secondary",onClick:()=>j(!0),children:"Connect GitHub (one-click for GitHub users)"})]})}),y?c.jsx(u0,{vaultName:i,onClose:()=>j(!1),onConnected:(X,J)=>{o(X),J&&(B(J),h(J)),j(!1)}}):null,g?c.jsx(s0,{vaultName:i,onClose:()=>v(!1),onSaved:X=>{o(X),B(X),h(X),v(!1)}}):null]})}function u0({vaultName:i,onClose:s,onConnected:f}){const[o,h]=S.useState({kind:"starting"}),[m,y]=S.useState(Date.now()),j=S.useRef(!1);S.useEffect(()=>{const v=setInterval(()=>y(Date.now()),1e3);return()=>clearInterval(v)},[]),S.useEffect(()=>{let v=!1;return j.current=!1,Qg(i).then(T=>{v||h({kind:"polling",code:T,pollIntervalMs:Math.max(T.interval,1)*1e3,startedAt:Date.now()})}).catch(T=>{v||h({kind:"error",message:T instanceof Error?T.message:String(T)})}),()=>{v=!0,j.current=!0}},[i]),S.useEffect(()=>{if(o.kind!=="polling")return;const v=o.code;let T=!1,b=null,z=o.pollIntervalMs;const q=async()=>{if(!(T||j.current))try{const D=await Vg(i,v.polling_id);if(T)return;if(D.state==="granted"){h({kind:"granted",user:{login:D.user.login}});return}if(D.state==="denied"){h({kind:"error",message:"Authorization denied."});return}if(D.state==="expired"){h({kind:"error",message:"The device code expired. Try again."});return}D.state==="slow_down"&&(z=D.interval*1e3),b=setTimeout(q,z)}catch(D){if(T)return;h({kind:"error",message:D instanceof Error?D.message:String(D)})}};return b=setTimeout(q,z),()=>{T=!0,b&&clearTimeout(b)}},[o,i]);const g=async v=>{try{await navigator.clipboard.writeText(v)}catch{}};return c.jsx("div",{className:"modal-backdrop",role:"dialog","aria-modal":"true",children:c.jsxs("div",{className:"modal",children:[c.jsxs("div",{className:"list-header",children:[c.jsx("h3",{style:{margin:0},children:"Connect GitHub"}),c.jsx("button",{type:"button",className:"secondary",onClick:s,children:"Close"})]}),o.kind==="starting"?c.jsx("p",{className:"muted",children:"Requesting device code from GitHub…"}):null,o.kind==="polling"?c.jsxs(c.Fragment,{children:[c.jsxs("p",{children:[c.jsx("strong",{children:"Step 1."})," Open"," ",c.jsx("a",{href:o.code.verification_uri,target:"_blank",rel:"noreferrer",children:o.code.verification_uri})," ","in your browser."]}),c.jsxs("p",{children:[c.jsx("strong",{children:"Step 2."})," Enter this code:"]}),c.jsxs("div",{className:"device-code-row",children:[c.jsx("code",{className:"device-code",children:o.code.user_code}),c.jsx("button",{type:"button",className:"secondary",onClick:()=>g(o.code.user_code),children:"Copy"})]}),c.jsxs("p",{className:"dim",children:["Waiting for authorization…"," ",i0(o.code.expires_in,o.startedAt,m)]})]}):null,o.kind==="granted"?c.jsx(c0,{vaultName:i,user:o.user,onPicked:async(v,T)=>{const b=await Jg(i,{owner:v,name:T}),z=await dm(i);f(z,b)},onError:v=>h({kind:"error",message:v})}):null,o.kind==="error"?c.jsxs(c.Fragment,{children:[c.jsx("div",{className:"error-banner",role:"alert",children:c.jsx("code",{children:o.message})}),c.jsxs("div",{className:"actions",children:[c.jsx("button",{type:"button",onClick:()=>h({kind:"starting"}),children:"Try again"}),c.jsx("button",{type:"button",className:"secondary",onClick:s,children:"Close"})]})]}):null]})})}function i0(i,s,f){const o=Math.floor((f-s)/1e3),h=Math.max(0,i-o),m=Math.floor(h/60),y=h%60;return`${m}:${String(y).padStart(2,"0")} remaining`}function c0({vaultName:i,user:s,onPicked:f,onError:o}){const[h,m]=S.useState(null),[y,j]=S.useState(!1),[g,v]=S.useState(""),[T,b]=S.useState(null),[z,q]=S.useState(!1),[D,B]=S.useState(""),[k,L]=S.useState(!1);S.useEffect(()=>{let Y=!1;return hm(i).then(({repos:K,truncated:G})=>{Y||(m(K),j(!!G))}).catch(K=>{Y||o(K instanceof Error?K.message:String(K))}),()=>{Y=!0}},[i,o]);const X=(h??[]).filter(Y=>g.length===0?!0:Y.full_name.toLowerCase().includes(g.toLowerCase())),J=async(Y,K)=>{b(`${Y}/${K}`);try{await f(Y,K)}catch(G){o(G instanceof Error?G.message:String(G))}finally{b(null)}},V=async()=>{if(D.trim().length!==0){q(!0);try{const Y=await Kg(i,{name:D.trim(),description:"Parachute Vault mirror",private:!0});await f(Y.owner,Y.name)}catch(Y){o(Y instanceof Error?Y.message:String(Y))}finally{q(!1)}}};return c.jsxs(c.Fragment,{children:[c.jsxs("p",{children:["Authorized as ",c.jsxs("code",{children:["@",s.login]}),". Pick a repository to push the mirror to:"]}),c.jsx("div",{className:"form-row",children:c.jsx("input",{type:"search",placeholder:"Filter by name…",value:g,onChange:Y=>v(Y.target.value)})}),y?c.jsx("p",{className:"muted",style:{fontSize:"0.85em"},children:"Showing the first 300 repos. Use the filter above to narrow down — or paste the clone URL directly via Personal Access Token below if your repo isn't here."}):null,h===null?c.jsx("p",{className:"muted",children:"Loading repos…"}):null,h!==null?c.jsxs("div",{className:"repo-list",children:[X.length===0&&g.length>0?c.jsxs("p",{className:"dim",children:['No repos match "',g,'".']}):null,X.length===0&&g.length===0&&h.length===0?c.jsx("p",{className:"dim",children:"You don't own any repos on this account yet."}):null,X.map(Y=>c.jsxs("button",{type:"button",className:"repo-row",onClick:()=>J(Y.owner,Y.name),disabled:T!==null,children:[c.jsxs("span",{children:[c.jsx("strong",{children:Y.name}),Y.private?c.jsx("span",{className:"dim",children:" · private"}):null]}),c.jsx("span",{className:"dim",children:Y.updated_at.slice(0,10)})]},Y.full_name))]}):null,k?c.jsxs("div",{className:"form-row",style:{marginTop:"0.75rem"},children:[c.jsx("label",{htmlFor:"new-repo-name",children:"New repo name"}),c.jsx("input",{id:"new-repo-name",type:"text",value:D,placeholder:"my-vault-backup",onChange:Y=>B(Y.target.value)}),c.jsxs("div",{className:"actions",children:[c.jsx("button",{type:"button",onClick:V,disabled:z||D.trim().length===0,children:z?"Creating…":"Create"}),c.jsx("button",{type:"button",className:"secondary",onClick:()=>L(!1),disabled:z,children:"Cancel"})]})]}):c.jsx("div",{className:"actions",style:{marginTop:"0.75rem"},children:c.jsx("button",{type:"button",className:"secondary",onClick:()=>L(!0),children:"+ Create new private repo"})})]})}function s0({vaultName:i,onClose:s,onSaved:f}){const[o,h]=S.useState(""),[m,y]=S.useState(""),[j,g]=S.useState(""),[v,T]=S.useState(!1),[b,z]=S.useState(null),q=async D=>{D.preventDefault(),T(!0),z(null);try{const B=await Zg(i,{token:o.trim(),remote_url:m.trim(),label:j.trim()||void 0});f(B)}catch(B){z(B instanceof Error?B.message:String(B))}finally{T(!1)}};return c.jsx("div",{className:"modal-backdrop",role:"dialog","aria-modal":"true",children:c.jsxs("div",{className:"modal",children:[c.jsxs("div",{className:"list-header",children:[c.jsx("h3",{style:{margin:0},children:"Use Personal Access Token"}),c.jsx("button",{type:"button",className:"secondary",onClick:s,disabled:v,children:"Close"})]}),c.jsxs("p",{className:"dim",children:["Works for any provider that supports HTTPS push with a token in the URL (GitHub, GitLab, Codeberg, Gitea, …). The token is stored with"," ",c.jsx("code",{children:"0600"})," file perms on this server."]}),c.jsxs("form",{onSubmit:q,children:[c.jsxs("div",{className:"form-row",children:[c.jsx("label",{htmlFor:"pat-token",children:"Token"}),c.jsx("input",{id:"pat-token",type:"password",value:o,autoComplete:"off",onChange:D=>h(D.target.value),placeholder:"ghp_… or glpat-… or similar",required:!0})]}),c.jsxs("div",{className:"form-row",children:[c.jsx("label",{htmlFor:"pat-url",children:"Remote URL"}),c.jsx("input",{id:"pat-url",type:"url",value:m,onChange:D=>y(D.target.value),placeholder:"https://github.com/owner/repo.git",required:!0}),c.jsxs("p",{className:"dim",style:{margin:"0.35rem 0 0"},children:["We'll embed your token in the URL before saving (using GitHub's"," ",c.jsx("code",{children:"x-access-token"})," convention). The URL you see on disk will carry the token; ensure the file isn't shared."]})]}),c.jsxs("div",{className:"form-row",children:[c.jsx("label",{htmlFor:"pat-label",children:"Label (optional)"}),c.jsx("input",{id:"pat-label",type:"text",value:j,onChange:D=>g(D.target.value),placeholder:"GitHub PAT for backup"})]}),b?c.jsx("div",{className:"error-banner",role:"alert",children:c.jsx("code",{children:b})}):null,c.jsxs("div",{className:"actions",children:[c.jsx("button",{type:"submit",disabled:v,children:v?"Validating…":"Validate & save"}),c.jsx("button",{type:"button",className:"secondary",onClick:s,disabled:v,children:"Cancel"})]})]})]})})}function r0({vaultName:i,creds:s}){const[f,o]=S.useState(""),[h,m]=S.useState("merge"),[y,j]=S.useState(!1),[g,v]=S.useState(""),[T,b]=S.useState(!0),[z,q]=S.useState({kind:"idle"}),[D,B]=S.useState(""),[k,L]=S.useState(!1),X=(s==null?void 0:s.active_method)==="github_oauth"&&s.github_oauth!==null,J=(s==null?void 0:s.active_method)!==null&&(s==null?void 0:s.active_method)!==void 0,V=h!=="replace"||D.trim()===i,Y=z.kind!=="running"&&f.trim().length>0&&V&&(!y||g.trim().length>0),K=async()=>{q({kind:"running",stage:"cloning"});let te;y?te={kind:"pat",token:g.trim()}:J?te=null:te={kind:"none"};try{const ye=window.setTimeout(()=>q(Fe=>Fe.kind==="running"?{kind:"running",stage:"importing"}:Fe),1500),tt=await $g(i,{remote_url:f.trim(),mode:h,credentials:te,enable_sync:T});window.clearTimeout(ye),q({kind:"success",result:tt,remoteUrl:f.trim(),mode:h})}catch(ye){const tt=ye instanceof _e?`${ye.status===409?"Already running. ":""}${ye.message}`:ye instanceof Error?ye.message:String(ye);q({kind:"error",message:tt})}},G=()=>{q({kind:"idle"}),B("")};return c.jsxs("div",{className:"section",children:[c.jsx("h3",{style:{margin:"0 0 0.85rem",fontSize:"1rem",fontWeight:500},children:"Import from a git repo"}),c.jsxs("p",{className:"dim",style:{marginTop:0},children:["Pull a vault state from a remote git repo into ",c.jsx("strong",{children:"this"})," vault. Use this to load a vault someone has been mirroring, or to sync a vault between machines you control. The remote must be a Parachute vault export (created by ",c.jsx("code",{children:"parachute-vault export"})," or the mirror's export flow)."]}),c.jsxs("div",{className:"warn-banner",style:{marginBottom:"1rem"},role:"note",children:[c.jsx("strong",{children:"One vault per remote."})," Multiple vaults pushing to the same git repo isn't a supported shape — the last push wins, and vaults that diverge silently overwrite each other. Today's working pattern is one vault per remote. Active two-way sync is a future direction; for now, do exports from one place and imports as snapshots elsewhere."]}),z.kind==="success"?c.jsx(o0,{vaultName:i,result:z.result,remoteUrl:z.remoteUrl,mode:z.mode,onReset:G}):c.jsxs(c.Fragment,{children:[c.jsxs("div",{className:"form-row",children:[c.jsx("label",{htmlFor:"import-remote-url",children:"Remote URL"}),c.jsx("input",{id:"import-remote-url",type:"text",value:f,placeholder:"https://github.com/aaron/my-vault.git",onChange:te=>o(te.target.value),disabled:z.kind==="running"}),X?c.jsxs("p",{className:"dim",style:{margin:"0.35rem 0 0",fontSize:"0.9em"},children:["Or"," ",c.jsx("button",{type:"button",onClick:()=>L(!0),disabled:z.kind==="running",style:{background:"none",border:"none",padding:0,color:"var(--accent)",textDecoration:"underline",cursor:"pointer",fontSize:"inherit"},children:"pick from your GitHub repos"}),"."]}):null,!J&&!y?c.jsx("p",{className:"hint",style:{marginTop:"0.35rem",fontSize:"0.85em"},children:"No saved git credentials. The import will be unauthenticated — works for public repos; private repos will fail with a clear error. Use the one-time credential toggle below if needed."}):null]}),c.jsxs("div",{className:"form-row",children:[c.jsx("label",{children:"Mode"}),c.jsxs("label",{className:"radio-row",children:[c.jsx("input",{type:"radio",name:"import-mode",value:"merge",checked:h==="merge",onChange:()=>{m("merge"),B("")},disabled:z.kind==="running"}),c.jsxs("span",{children:[c.jsx("strong",{children:"Merge"})," ",c.jsxs("span",{className:"dim",children:["— upsert by id. Notes in the remote get created/updated; any notes that exist only locally ",c.jsx("strong",{children:"survive"}),"."]})]})]}),c.jsxs("label",{className:"radio-row",children:[c.jsx("input",{type:"radio",name:"import-mode",value:"replace",checked:h==="replace",onChange:()=>m("replace"),disabled:z.kind==="running"}),c.jsxs("span",{children:[c.jsx("strong",{children:"Replace"})," ",c.jsxs("span",{className:"dim",children:["— wipe this vault first, then import. The remote becomes the new source of truth. ",c.jsx("strong",{children:"Destructive."})]})]})]})]}),h==="replace"?c.jsxs("div",{className:"form-row",children:[c.jsxs("div",{className:"error-banner",role:"alert",style:{marginBottom:"0.5rem"},children:[c.jsxs("strong",{children:['Replace will delete every note in vault "',i,'" before importing.']})," To confirm, type the vault name below:"]}),c.jsx("input",{id:"import-confirm-name",type:"text",value:D,placeholder:i,onChange:te=>B(te.target.value),disabled:z.kind==="running","aria-label":"Type vault name to confirm"})]}):null,c.jsxs("div",{className:"form-row",children:[c.jsxs("label",{children:[c.jsx("input",{type:"checkbox",checked:y,onChange:te=>j(te.target.checked),disabled:z.kind==="running",style:{width:"auto",marginRight:"0.5rem"}}),"One-time credential for this import only"]}),c.jsx("p",{className:"dim",style:{margin:"0.35rem 0 0",fontSize:"0.85em"},children:"Use a different Personal Access Token just for this clone, without changing your saved credentials."}),y?c.jsx("input",{id:"import-per-call-pat",type:"password",value:g,placeholder:"ghp_… or similar",onChange:te=>v(te.target.value),disabled:z.kind==="running",autoComplete:"off",style:{marginTop:"0.5rem"}}):null]}),c.jsxs("div",{className:"form-row",children:[c.jsxs("label",{children:[c.jsx("input",{type:"checkbox",checked:T,onChange:te=>b(te.target.checked),disabled:z.kind==="running",style:{width:"auto",marginRight:"0.5rem"}}),"Also sync changes back to this repo"]}),c.jsx("p",{className:"dim",style:{margin:"0.35rem 0 0",fontSize:"0.85em"},children:"Pushes future changes to this repo automatically. Uses the access you provide above."})]}),z.kind==="error"?c.jsx("div",{className:"error-banner",role:"alert",children:c.jsx("code",{children:z.message})}):null,c.jsx("div",{className:"actions",children:c.jsx("button",{type:"button",onClick:K,disabled:!Y,title:V?f.trim().length===0?"Provide a remote URL.":y&&g.trim().length===0?"Provide a token for one-time credential.":void 0:"Type the vault name to confirm Replace.",children:z.kind==="running"?z.stage==="cloning"?"Cloning…":"Importing…":"Start import"})})]}),k?c.jsx(f0,{vaultName:i,onClose:()=>L(!1),onPicked:te=>{o(te),L(!1)}}):null]})}function o0({vaultName:i,result:s,remoteUrl:f,mode:o,onReset:h}){return c.jsxs(c.Fragment,{children:[c.jsxs("div",{className:"mint-banner",role:"status",style:{marginBottom:"0.75rem"},children:[c.jsx("strong",{children:"Import succeeded."})," Imported ",s.notes_imported," note",s.notes_imported===1?"":"s",", ",s.tags_imported," tag schema",s.tags_imported===1?"":"s",", ",s.attachments_imported," ","attachment",s.attachments_imported===1?"":"s",o==="replace"&&s.notes_deleted!==void 0?`, wiped ${s.notes_deleted} pre-existing note${s.notes_deleted===1?"":"s"}`:"","."]}),s.warnings.length>0?c.jsxs("details",{style:{marginBottom:"0.75rem"},children:[c.jsxs("summary",{children:[s.warnings.length," warning",s.warnings.length===1?"":"s"," ","(see details)"]}),c.jsx("ul",{style:{marginTop:"0.5rem"},children:s.warnings.map((m,y)=>c.jsx("li",{children:c.jsx("code",{style:{fontSize:"0.85em"},children:m})},y))})]}):null,s.sync_enabled?c.jsxs("div",{className:"mint-banner",style:{marginBottom:"0.75rem"},role:"status",children:[c.jsx("strong",{children:"Sync enabled."})," Changes to vault ",c.jsx("code",{children:i})," ","now push back to ",c.jsx("code",{children:f})," automatically."]}):s.sync_warning?c.jsxs("div",{className:"info-banner",style:{marginBottom:"0.75rem"},role:"status",children:[c.jsxs("p",{style:{marginTop:0},children:[c.jsx("strong",{children:"Sync not enabled."})," ",s.sync_warning]}),c.jsxs("p",{className:"dim",style:{marginBottom:0,fontSize:"0.9em"},children:["You can still set up Sync from the"," ",c.jsx("button",{type:"button",onClick:()=>{var m;return(m=document.getElementById("git-remote-section"))==null?void 0:m.scrollIntoView({behavior:"smooth",block:"start"})},style:{background:"none",border:"none",padding:0,color:"var(--accent)",textDecoration:"underline",cursor:"pointer",fontSize:"inherit"},children:"Git remote section"})," ","above."]})]}):null,c.jsx("div",{className:"actions",children:c.jsx("button",{type:"button",className:"secondary",onClick:h,children:"Run another import"})})]})}function f0({vaultName:i,onClose:s,onPicked:f}){const[o,h]=S.useState(null),[m,y]=S.useState(!1),[j,g]=S.useState(""),[v,T]=S.useState(null);S.useEffect(()=>{let z=!1;return hm(i).then(({repos:q,truncated:D})=>{z||(h(q),y(!!D))}).catch(q=>{z||T(q instanceof Error?q.message:String(q))}),()=>{z=!0}},[i]);const b=(o??[]).filter(z=>j.length===0?!0:z.full_name.toLowerCase().includes(j.toLowerCase()));return c.jsx("div",{className:"modal-backdrop",role:"dialog","aria-modal":"true",children:c.jsxs("div",{className:"modal",children:[c.jsxs("div",{className:"list-header",children:[c.jsx("h3",{style:{margin:0},children:"Pick a repo to import from"}),c.jsx("button",{type:"button",className:"secondary",onClick:s,children:"Close"})]}),v?c.jsx("div",{className:"error-banner",role:"alert",children:c.jsx("code",{children:v})}):null,c.jsx("div",{className:"form-row",children:c.jsx("input",{type:"search",placeholder:"Filter by name…",value:j,onChange:z=>g(z.target.value)})}),m?c.jsx("p",{className:"muted",style:{fontSize:"0.85em"},children:"Showing the first 300 repos. Use the filter above to narrow down."}):null,o===null&&!v?c.jsx("p",{className:"muted",children:"Loading repos…"}):null,o!==null?c.jsxs("div",{className:"repo-list",children:[b.length===0&&j.length>0?c.jsxs("p",{className:"dim",children:['No repos match "',j,'".']}):null,b.length===0&&j.length===0&&o.length===0?c.jsx("p",{className:"dim",children:"You don't own any repos on this account."}):null,b.map(z=>c.jsxs("button",{type:"button",className:"repo-row",onClick:()=>f(z.clone_url),children:[c.jsxs("span",{children:[c.jsx("strong",{children:z.name}),z.private?c.jsx("span",{className:"dim",children:" · private"}):null]}),c.jsx("span",{className:"dim",children:z.updated_at.slice(0,10)})]},z.full_name))]}):null]})})}let Gn=null,Xn=null;function d0(i){const s=Date.parse(i);return Number.isNaN(s)?null:s}async function h0(){if(typeof window>"u")return{kind:"network-error",message:"no window"};let i;try{i=await fetch("/admin/host-admin-token",{method:"GET",headers:{accept:"application/json"},credentials:"same-origin"})}catch(f){return{kind:"network-error",message:f instanceof Error?f.message:String(f)}}if(i.status===403)return{kind:"forbidden"};if(i.status===401||i.status===404)return{kind:"auth-required",status:i.status};if(!i.ok)return{kind:"network-error",message:`hub returned ${i.status}`};let s;try{s=await i.json()}catch(f){return{kind:"network-error",message:f instanceof Error?f.message:"could not parse host-admin mint response"}}return typeof s.token!="string"||s.token.length===0?{kind:"network-error",message:"host-admin mint response missing token"}:(Gn=s.token,Xn=s.expires_at?d0(s.expires_at):null,{kind:"ok",token:s.token})}async function Lh(){if(Gn){if(Xn===null||Xn>Date.now())return{kind:"ok",token:Gn};Gn=null,Xn=null}return h0()}function m0(){Gn=null,Xn=null}class Ga extends Error{constructor(s,f,o){super(f),this.status=s,this.disposition=o,this.name="HostAdminError"}}async function fr(i,s={}){let f;const o=await Lh();if(o.kind!=="ok")throw qh(o);f=o.token;const{headers:h,...m}=s,y=v=>({accept:"application/json",...h??{},authorization:`Bearer ${v}`}),j=await fetch(i,{...m,headers:y(f)});if(j.status!==401)return j;m0();const g=await Lh();if(g.kind!=="ok")throw qh(g);return fetch(i,{...m,headers:y(g.token)})}function qh(i){return i.kind==="forbidden"?new Ga(403,"host-admin token mint forbidden — not the hub admin","forbidden"):i.kind==="auth-required"?new Ga(i.status,"no host-admin session — sign in to the hub to manage tokens","auth-required"):new Ga(0,i.message,"network-error")}function dr(){if(typeof window>"u")return;const i=ym();window.location.href=i?`${i}/account/`:"/account/"}const v0=[30,90,180,365],kh=90,y0=1440*60;function p0(i){if(!i)return null;const s=i.scoped_tags;if(!Array.isArray(s))return null;const f=s.filter(o=>typeof o=="string"&&o.length>0);return f.length>0?f:null}function g0(i){return{jti:i.jti,label:i.subject,scopes:Array.isArray(i.scopes)?i.scopes:[],scoped_tags:p0(i.permissions),expires_at:i.expires_at??null,revoked_at:i.revoked_at??null,created_at:i.created_at}}async function b0(i,s){const f={scope:`vault:${i}:${s.verb}`,expires_in:s.ttlDays*y0,subject:s.label};s.scopedTags.length>0&&(f.permissions={scoped_tags:s.scopedTags});const o=await fr("/api/auth/mint-token",{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify(f)});if(!o.ok)throw new _e(o.status,await xi(o));const h=await o.json();return{jti:h.jti,token:h.token,scope:h.scope,expires_at:h.expires_at??null}}async function S0(i){const s=`vault:${i}:`,f=[];let o=null;for(let h=0;h<1e3;h++){const m=new URLSearchParams({revoked:"all"});o&&m.set("cursor",o);const y=await fr(`/api/auth/tokens?${m.toString()}`);if(!y.ok)throw new _e(y.status,await xi(y));const j=await y.json(),g=Array.isArray(j.tokens)?j.tokens:[];if(f.push(...g),o=j.next_cursor??null,!o)break}return f.filter(h=>Array.isArray(h.scopes)&&h.scopes.some(m=>m.startsWith(s))).map(g0)}async function x0(i){const s=await fr("/api/auth/revoke-token",{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify({jti:i})});if(!s.ok)throw new _e(s.status,await xi(s))}async function j0(i){const s=await et(i,`/vault/${encodeURIComponent(i)}/api/tags`);if(!s.ok)throw new _e(s.status,await xi(s));const f=await s.json();return Array.isArray(f)?f:[]}async function xi(i){try{const s=await i.text(),f=JSON.parse(s);if(f.error_description)return f.error_description;if(f.message)return f.message;if(f.error)return f.error;if(s)return s}catch{}return`${i.status} ${i.statusText}`}const E0=["read","write","admin"],T0={30:"30 days",90:"90 days",180:"180 days",365:"1 year (max)"};function _0(i){return i instanceof Ga?i.disposition==="forbidden"?(dr(),{kind:"auth-required",status:403}):i.disposition==="auth-required"?{kind:"auth-required",status:i.status}:{kind:"error",message:i.message}:i instanceof _e&&(i.status===401||i.status===403)?{kind:"auth-required",status:i.status}:{kind:"error",message:i instanceof Error?i.message:String(i)}}function Yh({vaultName:i}={}){const s=lr(),f=i??s.name,o=i!==void 0,h=o?"/":`/vault/${encodeURIComponent(f??"")}`,[m,y]=S.useState({kind:"loading"}),[j,g]=S.useState(null),[v,T]=S.useState(null),[b,z]=S.useState(0);S.useEffect(()=>{let B=!1;if(f)return y({kind:"loading"}),S0(f).then(k=>{B||y({kind:"ok",tokens:k})}).catch(k=>{B||y(_0(k))}),()=>{B=!0}},[f,b]);const q=S.useCallback(()=>z(B=>B+1),[]);if(S.useEffect(()=>{if(!j)return;const B=k=>{k.preventDefault(),k.returnValue=""};return window.addEventListener("beforeunload",B),()=>window.removeEventListener("beforeunload",B)},[j]),!f)return c.jsxs("div",{children:[c.jsx("h2",{children:"Tokens"}),c.jsx("p",{className:"muted",children:"Missing vault name."}),o?null:c.jsx(Je,{to:"/",children:"← Back to vaults"})]});const D=vm(f);return c.jsxs("div",{children:[c.jsxs("div",{className:"list-header",children:[c.jsxs("h2",{children:["Tokens for ",c.jsx("code",{children:f})]}),c.jsx(Je,{to:h,className:"muted",children:"← Vault detail"})]}),D?null:c.jsxs("div",{className:"warn-banner",children:["You're viewing this page with a read-only token. Mint and revoke require"," ",c.jsxs("code",{children:["vault:",f,":admin"]}),`. Re-enter from the hub directory's "Manage" link with an admin-scoped session to manage tokens.`]}),j?c.jsx(A0,{result:j,onDismiss:()=>g(null)}):null,m.kind==="ok"&&D&&!j?c.jsx(N0,{vaultName:f,onMinted:B=>{g(B),z(k=>k+1)}}):null,c.jsxs("div",{className:"section",children:[c.jsx("h3",{style:{margin:"0 0 0.85rem",fontSize:"1rem",fontWeight:500},children:"Existing tokens"}),m.kind==="loading"?c.jsx("p",{className:"muted",children:"Loading…"}):null,m.kind==="auth-required"?c.jsx(or,{vaultName:f,status:m.status,onRecovered:q}):null,m.kind==="error"?c.jsx("div",{className:"error-banner",children:c.jsx("code",{children:m.message})}):null,m.kind==="ok"?c.jsx(R0,{tokens:m.tokens,allowRevoke:D,confirmingJti:v,onAskConfirm:T,onRevoked:()=>{T(null),z(B=>B+1)}}):null]})]})}function A0({result:i,onDismiss:s}){const[f,o]=S.useState(!1),h=async()=>{try{await navigator.clipboard.writeText(i.token),o(!0),setTimeout(()=>o(!1),2e3)}catch{}};return c.jsxs("div",{className:"mint-banner",children:[c.jsx("h3",{children:"New token (shown once)"}),c.jsx("p",{className:"muted",children:"This is the only time the vault will show this token. Copy it now and store it somewhere safe — a password manager, the operator's notes, paraclaw's secrets store. If you lose it, revoke it and mint a new one."}),c.jsxs("div",{className:"token-box",children:[c.jsx("code",{children:i.token}),c.jsx("button",{type:"button",onClick:h,className:"secondary",children:f?"Copied":"Copy"})]}),c.jsx("p",{className:"warn",children:"⚠ Don't dismiss this banner until you've saved the token."}),c.jsx("div",{className:"actions",children:c.jsx("button",{type:"button",onClick:s,children:"Done — I've saved the token"})})]})}function N0({vaultName:i,onMinted:s}){const[f,o]=S.useState(""),[h,m]=S.useState("admin"),[y,j]=S.useState(kh),[g,v]=S.useState(!1),[T,b]=S.useState(null),[z,q]=S.useState([]),[D,B]=S.useState(null),[k,L]=S.useState(new Set);S.useEffect(()=>{let K=!1;return j0(i).then(G=>{if(K)return;const te=G.map(ye=>ye.name).filter(ye=>!ye.includes("/")).sort();q(te)}).catch(G=>{K||B(G instanceof Error?G.message:String(G))}),()=>{K=!0}},[i]);const X=f.trim(),J=X.length===0,V=K=>{L(G=>{const te=new Set(G);return te.has(K)?te.delete(K):te.add(K),te})},Y=async K=>{if(K.preventDefault(),J){b("label required — give the token a recognizable name");return}v(!0),b(null);try{const G=await b0(i,{verb:h,label:X,scopedTags:[...k],ttlDays:y});s(G),o(""),m("admin"),j(kh),L(new Set)}catch(G){if(G instanceof Ga&&G.disposition==="forbidden"){dr();return}b(G instanceof Error?G.message:String(G))}finally{v(!1)}};return c.jsxs("form",{onSubmit:Y,className:"section",children:[c.jsx("h3",{style:{margin:"0 0 0.85rem",fontSize:"1rem",fontWeight:500},children:"Mint a token"}),c.jsx("p",{className:"dim",style:{margin:"0 0 0.85rem"},children:"Issues a hub-signed token (JWT) scoped to this vault. Store it like a password — it's shown once and can't be re-displayed."}),T?c.jsx("div",{className:"error-banner",children:c.jsx("code",{children:T})}):null,c.jsxs("div",{className:"form-row",children:[c.jsxs("label",{htmlFor:"mint-label",children:["Label ",c.jsx("span",{className:"dim",children:"(required)"})]}),c.jsx("input",{id:"mint-label",type:"text",value:f,onChange:K=>o(K.target.value),placeholder:"e.g. ci, paraclaw-prod, my-laptop",maxLength:120,required:!0})]}),c.jsxs("div",{className:"form-row",children:[c.jsx("label",{htmlFor:"mint-scope",children:"Scope"}),c.jsx("select",{id:"mint-scope",value:h,onChange:K=>m(K.target.value),children:E0.map(K=>c.jsx("option",{value:K,children:K==="read"?"read — query notes only":K==="write"?"write — query + create/update notes":"admin — full control (incl. token mgmt)"},K))}),c.jsxs("p",{className:"dim",style:{margin:"0.35rem 0 0"},children:["Issued as ",c.jsxs("code",{children:["vault:",i,":",h]}),". Lower scopes inherit narrower powers."]})]}),c.jsxs("div",{className:"form-row",children:[c.jsx("label",{htmlFor:"mint-ttl",children:"Expires after"}),c.jsx("select",{id:"mint-ttl",value:y,onChange:K=>j(Number(K.target.value)),children:v0.map(K=>c.jsx("option",{value:K,children:T0[K]??`${K} days`},K))}),c.jsx("p",{className:"dim",style:{margin:"0.35rem 0 0"},children:"The token stops working after this. Rotate before it lapses."})]}),c.jsxs("div",{className:"form-row",children:[c.jsxs("label",{children:["Tag scope ",c.jsx("span",{className:"dim",children:"(optional)"})]}),D?c.jsxs("p",{className:"dim",style:{margin:"0.35rem 0 0"},children:["Couldn't load tags: ",c.jsx("code",{children:D}),". Token will be unscoped."]}):z.length===0?c.jsx("p",{className:"dim",style:{margin:"0.35rem 0 0"},children:"No root tags in this vault yet — token will see the full vault."}):c.jsxs(c.Fragment,{children:[c.jsx("div",{className:"tag-picker",children:z.map(K=>c.jsxs("label",{className:"tag-checkbox",children:[c.jsx("input",{type:"checkbox",checked:k.has(K),onChange:()=>V(K)}),c.jsx("code",{children:K})]},K))}),c.jsx("p",{className:"dim",style:{margin:"0.35rem 0 0"},children:k.size===0?"Nothing selected — token sees the full vault (unscoped).":`Token limited to: ${[...k].join(", ")}. Sub-tags (e.g. health/food) are reachable when their root is selected.`})]})]}),c.jsx("div",{className:"actions",children:c.jsx("button",{type:"submit",disabled:g||J,children:g?"Minting…":"Mint token"})})]})}function R0({tokens:i,allowRevoke:s,confirmingJti:f,onAskConfirm:o,onRevoked:h}){return i.length===0?c.jsx("p",{className:"muted",children:"No tokens yet. Mint one above to get started."}):c.jsx("div",{className:"token-list",children:i.map(m=>c.jsx(z0,{token:m,allowRevoke:s,confirming:f===m.jti,onAskConfirm:o,onRevoked:h},m.jti))})}function z0({token:i,allowRevoke:s,confirming:f,onAskConfirm:o,onRevoked:h}){const[m,y]=S.useState(!1),[j,g]=S.useState(null),v=i.revoked_at!==null,T=async()=>{y(!0),g(null);try{await x0(i.jti),h()}catch(b){if(b instanceof Ga&&b.disposition==="forbidden"){dr();return}g(b instanceof Error?b.message:String(b)),y(!1)}};return c.jsxs("div",{className:"token-row",children:[c.jsxs("div",{className:"body",children:[c.jsxs("div",{className:"name",children:[c.jsx("strong",{children:i.label??"(unlabeled)"}),c.jsx("code",{className:"dim",children:i.jti}),v?c.jsx("code",{className:"scope-tag",title:"This token has been revoked and no longer works.",children:"revoked"}):null]}),c.jsxs("div",{className:"meta",children:[c.jsx("span",{className:"dim",children:"scopes:"})," ",i.scopes.length>0?i.scopes.map(b=>c.jsx("code",{className:"scope-tag",children:b},b)):c.jsx("span",{className:"dim",children:"(none)"})]}),i.scoped_tags&&i.scoped_tags.length>0?c.jsxs("div",{className:"meta",children:[c.jsx("span",{className:"dim",children:"tags:"})," ",i.scoped_tags.map(b=>c.jsxs("code",{className:"scope-tag tag-pill",children:["#",b]},b))]}):null,c.jsxs("div",{className:"meta dim",children:["created ",i.created_at,i.expires_at?` · expires ${i.expires_at}`:"",v&&i.revoked_at?` · revoked ${i.revoked_at}`:""]}),j?c.jsx("div",{className:"error-banner",style:{marginTop:"0.5rem"},children:c.jsx("code",{children:j})}):null]}),s&&!v?f?c.jsxs("div",{className:"actions",children:[c.jsx("button",{type:"button",onClick:T,disabled:m,children:m?"Revoking…":"Confirm revoke"}),c.jsx("button",{type:"button",className:"secondary",onClick:()=>o(null),disabled:m,children:"Cancel"})]}):c.jsx("button",{type:"button",className:"secondary",onClick:()=>o(i.jti),children:"Revoke"}):null]})}function C0(){const[i,s]=S.useState({kind:"loading"});return S.useEffect(()=>{let f=!1;return Bg().then(o=>{f||s({kind:"ok",vaults:o})}).catch(o=>{if(f)return;const h=o instanceof _e?`${o.status}: ${o.message}`:o instanceof Error?o.message:String(o);s({kind:"error",message:h})}),()=>{f=!0}},[]),i.kind==="loading"?c.jsxs("div",{children:[c.jsx("h2",{children:"Vaults"}),c.jsx("p",{className:"muted",children:"Loading…"})]}):i.kind==="error"?c.jsxs("div",{children:[c.jsx("h2",{children:"Vaults"}),c.jsx("div",{className:"error-banner",children:c.jsx("code",{children:i.message})})]}):i.vaults.length===0?c.jsxs("div",{children:[c.jsx("h2",{children:"Vaults"}),c.jsxs("div",{className:"empty",children:["No vaults yet. Run ",c.jsx("code",{children:"parachute-vault create <name>"})," on the host to create one."]})]}):c.jsxs("div",{children:[c.jsx("div",{className:"list-header",children:c.jsx("h2",{children:"Vaults"})}),i.vaults.map(f=>c.jsxs(Je,{to:`/vault/${f}`,className:"vault-row",children:[c.jsx("div",{className:"body",children:c.jsx("div",{className:"name",children:c.jsx("code",{children:f})})}),c.jsx("div",{className:"chev",children:"→"})]},f))]})}function M0(){const i=om();return c.jsxs("div",{className:"page",children:[c.jsxs("nav",{className:"nav",children:[c.jsxs(Je,{to:"/",className:"brand",children:["Parachute Vault ",c.jsx("span",{className:"sub",children:"admin"})]}),i?c.jsx(Je,{to:"/",children:c.jsx("code",{children:i})}):c.jsx(Je,{to:"/",children:"Vaults"})]}),i?c.jsxs(wh,{children:[c.jsx(Yt,{path:"/",element:c.jsx(Hh,{vaultName:i})}),c.jsx(Yt,{path:"/tokens",element:c.jsx(Yh,{vaultName:i})}),c.jsx(Yt,{path:"/mirror",element:c.jsx(Bh,{vaultName:i})}),c.jsx(Yt,{path:"*",element:c.jsx(Gh,{})})]}):c.jsxs(wh,{children:[c.jsx(Yt,{path:"/",element:c.jsx(C0,{})}),c.jsx(Yt,{path:"/vault/:name",element:c.jsx(Hh,{})}),c.jsx(Yt,{path:"/vault/:name/tokens",element:c.jsx(Yh,{})}),c.jsx(Yt,{path:"/vault/:name/mirror",element:c.jsx(Bh,{})}),c.jsx(Yt,{path:"*",element:c.jsx(Gh,{})})]})]})}function Gh(){return c.jsxs("div",{className:"empty",children:["404 — back to ",c.jsx(Je,{to:"/",children:"vault"}),"."]})}Mg();const pm=document.getElementById("root");if(!pm)throw new Error("#root not found");function $s(){Wy.createRoot(pm).render(c.jsx(S.StrictMode,{children:c.jsx(pg,{basename:Ng(),children:c.jsx(M0,{})})}))}const Xh=om();Xh?Dg(Xh).then($s,$s):$s();