claude-session-viewer 0.2.2 → 0.2.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.
@@ -1,4 +1,4 @@
1
- var lu=e=>{throw TypeError(e)};var fo=(e,t,n)=>t.has(e)||lu("Cannot "+n);var y=(e,t,n)=>(fo(e,t,"read from private field"),n?n.call(e):t.get(e)),D=(e,t,n)=>t.has(e)?lu("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),O=(e,t,n,r)=>(fo(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n),U=(e,t,n)=>(fo(e,t,"access private method"),n);var Ii=(e,t,n,r)=>({set _(i){O(e,t,i,n)},get _(){return y(e,t,r)}});(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))r(i);new MutationObserver(i=>{for(const l of i)if(l.type==="childList")for(const o of l.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&r(o)}).observe(document,{childList:!0,subtree:!0});function n(i){const l={};return i.integrity&&(l.integrity=i.integrity),i.referrerPolicy&&(l.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?l.credentials="include":i.crossOrigin==="anonymous"?l.credentials="omit":l.credentials="same-origin",l}function r(i){if(i.ep)return;i.ep=!0;const l=n(i);fetch(i.href,l)}})();function qh(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Xc={exports:{}},Hl={},bc={exports:{}},z={};/**
1
+ var lu=e=>{throw TypeError(e)};var fo=(e,t,n)=>t.has(e)||lu("Cannot "+n);var y=(e,t,n)=>(fo(e,t,"read from private field"),n?n.call(e):t.get(e)),D=(e,t,n)=>t.has(e)?lu("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),_=(e,t,n,r)=>(fo(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n),A=(e,t,n)=>(fo(e,t,"access private method"),n);var Ii=(e,t,n,r)=>({set _(i){_(e,t,i,n)},get _(){return y(e,t,r)}});(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))r(i);new MutationObserver(i=>{for(const l of i)if(l.type==="childList")for(const o of l.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&r(o)}).observe(document,{childList:!0,subtree:!0});function n(i){const l={};return i.integrity&&(l.integrity=i.integrity),i.referrerPolicy&&(l.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?l.credentials="include":i.crossOrigin==="anonymous"?l.credentials="omit":l.credentials="same-origin",l}function r(i){if(i.ep)return;i.ep=!0;const l=n(i);fetch(i.href,l)}})();function qh(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var bc={exports:{}},Hl={},Xc={exports:{}},z={};/**
2
2
  * @license React
3
3
  * react.production.min.js
4
4
  *
@@ -6,7 +6,7 @@ var lu=e=>{throw TypeError(e)};var fo=(e,t,n)=>t.has(e)||lu("Cannot "+n);var y=(
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 Pi=Symbol.for("react.element"),Xh=Symbol.for("react.portal"),bh=Symbol.for("react.fragment"),Jh=Symbol.for("react.strict_mode"),Zh=Symbol.for("react.profiler"),ep=Symbol.for("react.provider"),tp=Symbol.for("react.context"),np=Symbol.for("react.forward_ref"),rp=Symbol.for("react.suspense"),ip=Symbol.for("react.memo"),lp=Symbol.for("react.lazy"),ou=Symbol.iterator;function op(e){return e===null||typeof e!="object"?null:(e=ou&&e[ou]||e["@@iterator"],typeof e=="function"?e:null)}var Jc={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Zc=Object.assign,ef={};function Er(e,t,n){this.props=e,this.context=t,this.refs=ef,this.updater=n||Jc}Er.prototype.isReactComponent={};Er.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};Er.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function tf(){}tf.prototype=Er.prototype;function ea(e,t,n){this.props=e,this.context=t,this.refs=ef,this.updater=n||Jc}var ta=ea.prototype=new tf;ta.constructor=ea;Zc(ta,Er.prototype);ta.isPureReactComponent=!0;var su=Array.isArray,nf=Object.prototype.hasOwnProperty,na={current:null},rf={key:!0,ref:!0,__self:!0,__source:!0};function lf(e,t,n){var r,i={},l=null,o=null;if(t!=null)for(r in t.ref!==void 0&&(o=t.ref),t.key!==void 0&&(l=""+t.key),t)nf.call(t,r)&&!rf.hasOwnProperty(r)&&(i[r]=t[r]);var s=arguments.length-2;if(s===1)i.children=n;else if(1<s){for(var a=Array(s),u=0;u<s;u++)a[u]=arguments[u+2];i.children=a}if(e&&e.defaultProps)for(r in s=e.defaultProps,s)i[r]===void 0&&(i[r]=s[r]);return{$$typeof:Pi,type:e,key:l,ref:o,props:i,_owner:na.current}}function sp(e,t){return{$$typeof:Pi,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function ra(e){return typeof e=="object"&&e!==null&&e.$$typeof===Pi}function ap(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var au=/\/+/g;function ho(e,t){return typeof e=="object"&&e!==null&&e.key!=null?ap(""+e.key):t.toString(36)}function nl(e,t,n,r,i){var l=typeof e;(l==="undefined"||l==="boolean")&&(e=null);var o=!1;if(e===null)o=!0;else switch(l){case"string":case"number":o=!0;break;case"object":switch(e.$$typeof){case Pi:case Xh:o=!0}}if(o)return o=e,i=i(o),e=r===""?"."+ho(o,0):r,su(i)?(n="",e!=null&&(n=e.replace(au,"$&/")+"/"),nl(i,t,n,"",function(u){return u})):i!=null&&(ra(i)&&(i=sp(i,n+(!i.key||o&&o.key===i.key?"":(""+i.key).replace(au,"$&/")+"/")+e)),t.push(i)),1;if(o=0,r=r===""?".":r+":",su(e))for(var s=0;s<e.length;s++){l=e[s];var a=r+ho(l,s);o+=nl(l,t,n,a,i)}else if(a=op(e),typeof a=="function")for(e=a.call(e),s=0;!(l=e.next()).done;)l=l.value,a=r+ho(l,s++),o+=nl(l,t,n,a,i);else if(l==="object")throw t=String(e),Error("Objects are not valid as a React child (found: "+(t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return o}function zi(e,t,n){if(e==null)return e;var r=[],i=0;return nl(e,r,"","",function(l){return t.call(n,l,i++)}),r}function up(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(n){(e._status===0||e._status===-1)&&(e._status=1,e._result=n)},function(n){(e._status===0||e._status===-1)&&(e._status=2,e._result=n)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var Ee={current:null},rl={transition:null},cp={ReactCurrentDispatcher:Ee,ReactCurrentBatchConfig:rl,ReactCurrentOwner:na};function of(){throw Error("act(...) is not supported in production builds of React.")}z.Children={map:zi,forEach:function(e,t,n){zi(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return zi(e,function(){t++}),t},toArray:function(e){return zi(e,function(t){return t})||[]},only:function(e){if(!ra(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};z.Component=Er;z.Fragment=bh;z.Profiler=Zh;z.PureComponent=ea;z.StrictMode=Jh;z.Suspense=rp;z.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=cp;z.act=of;z.cloneElement=function(e,t,n){if(e==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var r=Zc({},e.props),i=e.key,l=e.ref,o=e._owner;if(t!=null){if(t.ref!==void 0&&(l=t.ref,o=na.current),t.key!==void 0&&(i=""+t.key),e.type&&e.type.defaultProps)var s=e.type.defaultProps;for(a in t)nf.call(t,a)&&!rf.hasOwnProperty(a)&&(r[a]=t[a]===void 0&&s!==void 0?s[a]:t[a])}var a=arguments.length-2;if(a===1)r.children=n;else if(1<a){s=Array(a);for(var u=0;u<a;u++)s[u]=arguments[u+2];r.children=s}return{$$typeof:Pi,type:e.type,key:i,ref:l,props:r,_owner:o}};z.createContext=function(e){return e={$$typeof:tp,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:ep,_context:e},e.Consumer=e};z.createElement=lf;z.createFactory=function(e){var t=lf.bind(null,e);return t.type=e,t};z.createRef=function(){return{current:null}};z.forwardRef=function(e){return{$$typeof:np,render:e}};z.isValidElement=ra;z.lazy=function(e){return{$$typeof:lp,_payload:{_status:-1,_result:e},_init:up}};z.memo=function(e,t){return{$$typeof:ip,type:e,compare:t===void 0?null:t}};z.startTransition=function(e){var t=rl.transition;rl.transition={};try{e()}finally{rl.transition=t}};z.unstable_act=of;z.useCallback=function(e,t){return Ee.current.useCallback(e,t)};z.useContext=function(e){return Ee.current.useContext(e)};z.useDebugValue=function(){};z.useDeferredValue=function(e){return Ee.current.useDeferredValue(e)};z.useEffect=function(e,t){return Ee.current.useEffect(e,t)};z.useId=function(){return Ee.current.useId()};z.useImperativeHandle=function(e,t,n){return Ee.current.useImperativeHandle(e,t,n)};z.useInsertionEffect=function(e,t){return Ee.current.useInsertionEffect(e,t)};z.useLayoutEffect=function(e,t){return Ee.current.useLayoutEffect(e,t)};z.useMemo=function(e,t){return Ee.current.useMemo(e,t)};z.useReducer=function(e,t,n){return Ee.current.useReducer(e,t,n)};z.useRef=function(e){return Ee.current.useRef(e)};z.useState=function(e){return Ee.current.useState(e)};z.useSyncExternalStore=function(e,t,n){return Ee.current.useSyncExternalStore(e,t,n)};z.useTransition=function(){return Ee.current.useTransition()};z.version="18.3.1";bc.exports=z;var S=bc.exports;const fp=qh(S);/**
9
+ */var Pi=Symbol.for("react.element"),bh=Symbol.for("react.portal"),Xh=Symbol.for("react.fragment"),Jh=Symbol.for("react.strict_mode"),Zh=Symbol.for("react.profiler"),ep=Symbol.for("react.provider"),tp=Symbol.for("react.context"),np=Symbol.for("react.forward_ref"),rp=Symbol.for("react.suspense"),ip=Symbol.for("react.memo"),lp=Symbol.for("react.lazy"),ou=Symbol.iterator;function op(e){return e===null||typeof e!="object"?null:(e=ou&&e[ou]||e["@@iterator"],typeof e=="function"?e:null)}var Jc={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Zc=Object.assign,ef={};function Er(e,t,n){this.props=e,this.context=t,this.refs=ef,this.updater=n||Jc}Er.prototype.isReactComponent={};Er.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};Er.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function tf(){}tf.prototype=Er.prototype;function ea(e,t,n){this.props=e,this.context=t,this.refs=ef,this.updater=n||Jc}var ta=ea.prototype=new tf;ta.constructor=ea;Zc(ta,Er.prototype);ta.isPureReactComponent=!0;var su=Array.isArray,nf=Object.prototype.hasOwnProperty,na={current:null},rf={key:!0,ref:!0,__self:!0,__source:!0};function lf(e,t,n){var r,i={},l=null,o=null;if(t!=null)for(r in t.ref!==void 0&&(o=t.ref),t.key!==void 0&&(l=""+t.key),t)nf.call(t,r)&&!rf.hasOwnProperty(r)&&(i[r]=t[r]);var s=arguments.length-2;if(s===1)i.children=n;else if(1<s){for(var a=Array(s),u=0;u<s;u++)a[u]=arguments[u+2];i.children=a}if(e&&e.defaultProps)for(r in s=e.defaultProps,s)i[r]===void 0&&(i[r]=s[r]);return{$$typeof:Pi,type:e,key:l,ref:o,props:i,_owner:na.current}}function sp(e,t){return{$$typeof:Pi,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function ra(e){return typeof e=="object"&&e!==null&&e.$$typeof===Pi}function ap(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var au=/\/+/g;function ho(e,t){return typeof e=="object"&&e!==null&&e.key!=null?ap(""+e.key):t.toString(36)}function nl(e,t,n,r,i){var l=typeof e;(l==="undefined"||l==="boolean")&&(e=null);var o=!1;if(e===null)o=!0;else switch(l){case"string":case"number":o=!0;break;case"object":switch(e.$$typeof){case Pi:case bh:o=!0}}if(o)return o=e,i=i(o),e=r===""?"."+ho(o,0):r,su(i)?(n="",e!=null&&(n=e.replace(au,"$&/")+"/"),nl(i,t,n,"",function(u){return u})):i!=null&&(ra(i)&&(i=sp(i,n+(!i.key||o&&o.key===i.key?"":(""+i.key).replace(au,"$&/")+"/")+e)),t.push(i)),1;if(o=0,r=r===""?".":r+":",su(e))for(var s=0;s<e.length;s++){l=e[s];var a=r+ho(l,s);o+=nl(l,t,n,a,i)}else if(a=op(e),typeof a=="function")for(e=a.call(e),s=0;!(l=e.next()).done;)l=l.value,a=r+ho(l,s++),o+=nl(l,t,n,a,i);else if(l==="object")throw t=String(e),Error("Objects are not valid as a React child (found: "+(t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return o}function zi(e,t,n){if(e==null)return e;var r=[],i=0;return nl(e,r,"","",function(l){return t.call(n,l,i++)}),r}function up(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(n){(e._status===0||e._status===-1)&&(e._status=1,e._result=n)},function(n){(e._status===0||e._status===-1)&&(e._status=2,e._result=n)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var ke={current:null},rl={transition:null},cp={ReactCurrentDispatcher:ke,ReactCurrentBatchConfig:rl,ReactCurrentOwner:na};function of(){throw Error("act(...) is not supported in production builds of React.")}z.Children={map:zi,forEach:function(e,t,n){zi(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return zi(e,function(){t++}),t},toArray:function(e){return zi(e,function(t){return t})||[]},only:function(e){if(!ra(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};z.Component=Er;z.Fragment=Xh;z.Profiler=Zh;z.PureComponent=ea;z.StrictMode=Jh;z.Suspense=rp;z.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=cp;z.act=of;z.cloneElement=function(e,t,n){if(e==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var r=Zc({},e.props),i=e.key,l=e.ref,o=e._owner;if(t!=null){if(t.ref!==void 0&&(l=t.ref,o=na.current),t.key!==void 0&&(i=""+t.key),e.type&&e.type.defaultProps)var s=e.type.defaultProps;for(a in t)nf.call(t,a)&&!rf.hasOwnProperty(a)&&(r[a]=t[a]===void 0&&s!==void 0?s[a]:t[a])}var a=arguments.length-2;if(a===1)r.children=n;else if(1<a){s=Array(a);for(var u=0;u<a;u++)s[u]=arguments[u+2];r.children=s}return{$$typeof:Pi,type:e.type,key:i,ref:l,props:r,_owner:o}};z.createContext=function(e){return e={$$typeof:tp,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:ep,_context:e},e.Consumer=e};z.createElement=lf;z.createFactory=function(e){var t=lf.bind(null,e);return t.type=e,t};z.createRef=function(){return{current:null}};z.forwardRef=function(e){return{$$typeof:np,render:e}};z.isValidElement=ra;z.lazy=function(e){return{$$typeof:lp,_payload:{_status:-1,_result:e},_init:up}};z.memo=function(e,t){return{$$typeof:ip,type:e,compare:t===void 0?null:t}};z.startTransition=function(e){var t=rl.transition;rl.transition={};try{e()}finally{rl.transition=t}};z.unstable_act=of;z.useCallback=function(e,t){return ke.current.useCallback(e,t)};z.useContext=function(e){return ke.current.useContext(e)};z.useDebugValue=function(){};z.useDeferredValue=function(e){return ke.current.useDeferredValue(e)};z.useEffect=function(e,t){return ke.current.useEffect(e,t)};z.useId=function(){return ke.current.useId()};z.useImperativeHandle=function(e,t,n){return ke.current.useImperativeHandle(e,t,n)};z.useInsertionEffect=function(e,t){return ke.current.useInsertionEffect(e,t)};z.useLayoutEffect=function(e,t){return ke.current.useLayoutEffect(e,t)};z.useMemo=function(e,t){return ke.current.useMemo(e,t)};z.useReducer=function(e,t,n){return ke.current.useReducer(e,t,n)};z.useRef=function(e){return ke.current.useRef(e)};z.useState=function(e){return ke.current.useState(e)};z.useSyncExternalStore=function(e,t,n){return ke.current.useSyncExternalStore(e,t,n)};z.useTransition=function(){return ke.current.useTransition()};z.version="18.3.1";Xc.exports=z;var S=Xc.exports;const fp=qh(S);/**
10
10
  * @license React
11
11
  * react-jsx-runtime.production.min.js
12
12
  *
@@ -14,7 +14,7 @@ var lu=e=>{throw TypeError(e)};var fo=(e,t,n)=>t.has(e)||lu("Cannot "+n);var y=(
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 dp=S,hp=Symbol.for("react.element"),pp=Symbol.for("react.fragment"),mp=Object.prototype.hasOwnProperty,yp=dp.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,gp={key:!0,ref:!0,__self:!0,__source:!0};function sf(e,t,n){var r,i={},l=null,o=null;n!==void 0&&(l=""+n),t.key!==void 0&&(l=""+t.key),t.ref!==void 0&&(o=t.ref);for(r in t)mp.call(t,r)&&!gp.hasOwnProperty(r)&&(i[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps,t)i[r]===void 0&&(i[r]=t[r]);return{$$typeof:hp,type:e,key:l,ref:o,props:i,_owner:yp.current}}Hl.Fragment=pp;Hl.jsx=sf;Hl.jsxs=sf;Xc.exports=Hl;var k=Xc.exports,Ho={},af={exports:{}},je={},uf={exports:{}},cf={};/**
17
+ */var dp=S,hp=Symbol.for("react.element"),pp=Symbol.for("react.fragment"),mp=Object.prototype.hasOwnProperty,yp=dp.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,vp={key:!0,ref:!0,__self:!0,__source:!0};function sf(e,t,n){var r,i={},l=null,o=null;n!==void 0&&(l=""+n),t.key!==void 0&&(l=""+t.key),t.ref!==void 0&&(o=t.ref);for(r in t)mp.call(t,r)&&!vp.hasOwnProperty(r)&&(i[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps,t)i[r]===void 0&&(i[r]=t[r]);return{$$typeof:hp,type:e,key:l,ref:o,props:i,_owner:yp.current}}Hl.Fragment=pp;Hl.jsx=sf;Hl.jsxs=sf;bc.exports=Hl;var k=bc.exports,Ho={},af={exports:{}},ze={},uf={exports:{}},cf={};/**
18
18
  * @license React
19
19
  * scheduler.production.min.js
20
20
  *
@@ -22,7 +22,7 @@ var lu=e=>{throw TypeError(e)};var fo=(e,t,n)=>t.has(e)||lu("Cannot "+n);var y=(
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
- */(function(e){function t(L,F){var j=L.length;L.push(F);e:for(;0<j;){var te=j-1>>>1,oe=L[te];if(0<i(oe,F))L[te]=F,L[j]=oe,j=te;else break e}}function n(L){return L.length===0?null:L[0]}function r(L){if(L.length===0)return null;var F=L[0],j=L.pop();if(j!==F){L[0]=j;e:for(var te=0,oe=L.length,Fi=oe>>>1;te<Fi;){var sn=2*(te+1)-1,co=L[sn],an=sn+1,ji=L[an];if(0>i(co,j))an<oe&&0>i(ji,co)?(L[te]=ji,L[an]=j,te=an):(L[te]=co,L[sn]=j,te=sn);else if(an<oe&&0>i(ji,j))L[te]=ji,L[an]=j,te=an;else break e}}return F}function i(L,F){var j=L.sortIndex-F.sortIndex;return j!==0?j:L.id-F.id}if(typeof performance=="object"&&typeof performance.now=="function"){var l=performance;e.unstable_now=function(){return l.now()}}else{var o=Date,s=o.now();e.unstable_now=function(){return o.now()-s}}var a=[],u=[],f=1,d=null,p=3,v=!1,w=!1,g=!1,E=typeof setTimeout=="function"?setTimeout:null,h=typeof clearTimeout=="function"?clearTimeout:null,c=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function m(L){for(var F=n(u);F!==null;){if(F.callback===null)r(u);else if(F.startTime<=L)r(u),F.sortIndex=F.expirationTime,t(a,F);else break;F=n(u)}}function x(L){if(g=!1,m(L),!w)if(n(a)!==null)w=!0,ao(C);else{var F=n(u);F!==null&&uo(x,F.startTime-L)}}function C(L,F){w=!1,g&&(g=!1,h(N),N=-1),v=!0;var j=p;try{for(m(F),d=n(a);d!==null&&(!(d.expirationTime>F)||L&&!$());){var te=d.callback;if(typeof te=="function"){d.callback=null,p=d.priorityLevel;var oe=te(d.expirationTime<=F);F=e.unstable_now(),typeof oe=="function"?d.callback=oe:d===n(a)&&r(a),m(F)}else r(a);d=n(a)}if(d!==null)var Fi=!0;else{var sn=n(u);sn!==null&&uo(x,sn.startTime-F),Fi=!1}return Fi}finally{d=null,p=j,v=!1}}var R=!1,T=null,N=-1,I=5,_=-1;function $(){return!(e.unstable_now()-_<I)}function ze(){if(T!==null){var L=e.unstable_now();_=L;var F=!0;try{F=T(!0,L)}finally{F?it():(R=!1,T=null)}}else R=!1}var it;if(typeof c=="function")it=function(){c(ze)};else if(typeof MessageChannel<"u"){var iu=new MessageChannel,Gh=iu.port2;iu.port1.onmessage=ze,it=function(){Gh.postMessage(null)}}else it=function(){E(ze,0)};function ao(L){T=L,R||(R=!0,it())}function uo(L,F){N=E(function(){L(e.unstable_now())},F)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(L){L.callback=null},e.unstable_continueExecution=function(){w||v||(w=!0,ao(C))},e.unstable_forceFrameRate=function(L){0>L||125<L?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):I=0<L?Math.floor(1e3/L):5},e.unstable_getCurrentPriorityLevel=function(){return p},e.unstable_getFirstCallbackNode=function(){return n(a)},e.unstable_next=function(L){switch(p){case 1:case 2:case 3:var F=3;break;default:F=p}var j=p;p=F;try{return L()}finally{p=j}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(L,F){switch(L){case 1:case 2:case 3:case 4:case 5:break;default:L=3}var j=p;p=L;try{return F()}finally{p=j}},e.unstable_scheduleCallback=function(L,F,j){var te=e.unstable_now();switch(typeof j=="object"&&j!==null?(j=j.delay,j=typeof j=="number"&&0<j?te+j:te):j=te,L){case 1:var oe=-1;break;case 2:oe=250;break;case 5:oe=1073741823;break;case 4:oe=1e4;break;default:oe=5e3}return oe=j+oe,L={id:f++,callback:F,priorityLevel:L,startTime:j,expirationTime:oe,sortIndex:-1},j>te?(L.sortIndex=j,t(u,L),n(a)===null&&L===n(u)&&(g?(h(N),N=-1):g=!0,uo(x,j-te))):(L.sortIndex=oe,t(a,L),w||v||(w=!0,ao(C))),L},e.unstable_shouldYield=$,e.unstable_wrapCallback=function(L){var F=p;return function(){var j=p;p=F;try{return L.apply(this,arguments)}finally{p=j}}}})(cf);uf.exports=cf;var vp=uf.exports;/**
25
+ */(function(e){function t(L,j){var I=L.length;L.push(j);e:for(;0<I;){var te=I-1>>>1,se=L[te];if(0<i(se,j))L[te]=j,L[I]=se,I=te;else break e}}function n(L){return L.length===0?null:L[0]}function r(L){if(L.length===0)return null;var j=L[0],I=L.pop();if(I!==j){L[0]=I;e:for(var te=0,se=L.length,Fi=se>>>1;te<Fi;){var sn=2*(te+1)-1,co=L[sn],an=sn+1,ji=L[an];if(0>i(co,I))an<se&&0>i(ji,co)?(L[te]=ji,L[an]=I,te=an):(L[te]=co,L[sn]=I,te=sn);else if(an<se&&0>i(ji,I))L[te]=ji,L[an]=I,te=an;else break e}}return j}function i(L,j){var I=L.sortIndex-j.sortIndex;return I!==0?I:L.id-j.id}if(typeof performance=="object"&&typeof performance.now=="function"){var l=performance;e.unstable_now=function(){return l.now()}}else{var o=Date,s=o.now();e.unstable_now=function(){return o.now()-s}}var a=[],u=[],d=1,f=null,p=3,w=!1,v=!1,x=!1,E=typeof setTimeout=="function"?setTimeout:null,h=typeof clearTimeout=="function"?clearTimeout:null,c=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function m(L){for(var j=n(u);j!==null;){if(j.callback===null)r(u);else if(j.startTime<=L)r(u),j.sortIndex=j.expirationTime,t(a,j);else break;j=n(u)}}function g(L){if(x=!1,m(L),!v)if(n(a)!==null)v=!0,ao(C);else{var j=n(u);j!==null&&uo(g,j.startTime-L)}}function C(L,j){v=!1,x&&(x=!1,h(T),T=-1),w=!0;var I=p;try{for(m(j),f=n(a);f!==null&&(!(f.expirationTime>j)||L&&!U());){var te=f.callback;if(typeof te=="function"){f.callback=null,p=f.priorityLevel;var se=te(f.expirationTime<=j);j=e.unstable_now(),typeof se=="function"?f.callback=se:f===n(a)&&r(a),m(j)}else r(a);f=n(a)}if(f!==null)var Fi=!0;else{var sn=n(u);sn!==null&&uo(g,sn.startTime-j),Fi=!1}return Fi}finally{f=null,p=I,w=!1}}var P=!1,N=null,T=-1,F=5,O=-1;function U(){return!(e.unstable_now()-O<F)}function oe(){if(N!==null){var L=e.unstable_now();O=L;var j=!0;try{j=N(!0,L)}finally{j?Pe():(P=!1,N=null)}}else P=!1}var Pe;if(typeof c=="function")Pe=function(){c(oe)};else if(typeof MessageChannel<"u"){var iu=new MessageChannel,Gh=iu.port2;iu.port1.onmessage=oe,Pe=function(){Gh.postMessage(null)}}else Pe=function(){E(oe,0)};function ao(L){N=L,P||(P=!0,Pe())}function uo(L,j){T=E(function(){L(e.unstable_now())},j)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(L){L.callback=null},e.unstable_continueExecution=function(){v||w||(v=!0,ao(C))},e.unstable_forceFrameRate=function(L){0>L||125<L?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):F=0<L?Math.floor(1e3/L):5},e.unstable_getCurrentPriorityLevel=function(){return p},e.unstable_getFirstCallbackNode=function(){return n(a)},e.unstable_next=function(L){switch(p){case 1:case 2:case 3:var j=3;break;default:j=p}var I=p;p=j;try{return L()}finally{p=I}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(L,j){switch(L){case 1:case 2:case 3:case 4:case 5:break;default:L=3}var I=p;p=L;try{return j()}finally{p=I}},e.unstable_scheduleCallback=function(L,j,I){var te=e.unstable_now();switch(typeof I=="object"&&I!==null?(I=I.delay,I=typeof I=="number"&&0<I?te+I:te):I=te,L){case 1:var se=-1;break;case 2:se=250;break;case 5:se=1073741823;break;case 4:se=1e4;break;default:se=5e3}return se=I+se,L={id:d++,callback:j,priorityLevel:L,startTime:I,expirationTime:se,sortIndex:-1},I>te?(L.sortIndex=I,t(u,L),n(a)===null&&L===n(u)&&(x?(h(T),T=-1):x=!0,uo(g,I-te))):(L.sortIndex=se,t(a,L),v||w||(v=!0,ao(C))),L},e.unstable_shouldYield=U,e.unstable_wrapCallback=function(L){var j=p;return function(){var I=p;p=j;try{return L.apply(this,arguments)}finally{p=I}}}})(cf);uf.exports=cf;var gp=uf.exports;/**
26
26
  * @license React
27
27
  * react-dom.production.min.js
28
28
  *
@@ -30,14 +30,14 @@ var lu=e=>{throw TypeError(e)};var fo=(e,t,n)=>t.has(e)||lu("Cannot "+n);var y=(
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 wp=S,Fe=vp;function P(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var ff=new Set,Zr={};function Fn(e,t){mr(e,t),mr(e+"Capture",t)}function mr(e,t){for(Zr[e]=t,e=0;e<t.length;e++)ff.add(t[e])}var kt=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Bo=Object.prototype.hasOwnProperty,xp=/^[: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]*$/,uu={},cu={};function Sp(e){return Bo.call(cu,e)?!0:Bo.call(uu,e)?!1:xp.test(e)?cu[e]=!0:(uu[e]=!0,!1)}function Ep(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function kp(e,t,n,r){if(t===null||typeof t>"u"||Ep(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function ke(e,t,n,r,i,l,o){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=l,this.removeEmptyString=o}var he={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){he[e]=new ke(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];he[t]=new ke(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){he[e]=new ke(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){he[e]=new ke(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){he[e]=new ke(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){he[e]=new ke(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){he[e]=new ke(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){he[e]=new ke(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){he[e]=new ke(e,5,!1,e.toLowerCase(),null,!1,!1)});var ia=/[\-:]([a-z])/g;function la(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(ia,la);he[t]=new ke(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(ia,la);he[t]=new ke(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(ia,la);he[t]=new ke(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){he[e]=new ke(e,1,!1,e.toLowerCase(),null,!1,!1)});he.xlinkHref=new ke("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){he[e]=new ke(e,1,!1,e.toLowerCase(),null,!0,!0)});function oa(e,t,n,r){var i=he.hasOwnProperty(t)?he[t]:null;(i!==null?i.type!==0:r||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(kp(t,n,i,r)&&(n=null),r||i===null?Sp(t)&&(n===null?e.removeAttribute(t):e.setAttribute(t,""+n)):i.mustUseProperty?e[i.propertyName]=n===null?i.type===3?!1:"":n:(t=i.attributeName,r=i.attributeNamespace,n===null?e.removeAttribute(t):(i=i.type,n=i===3||i===4&&n===!0?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}var Tt=wp.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,Ui=Symbol.for("react.element"),An=Symbol.for("react.portal"),Wn=Symbol.for("react.fragment"),sa=Symbol.for("react.strict_mode"),Vo=Symbol.for("react.profiler"),df=Symbol.for("react.provider"),hf=Symbol.for("react.context"),aa=Symbol.for("react.forward_ref"),Yo=Symbol.for("react.suspense"),Ko=Symbol.for("react.suspense_list"),ua=Symbol.for("react.memo"),Lt=Symbol.for("react.lazy"),pf=Symbol.for("react.offscreen"),fu=Symbol.iterator;function Nr(e){return e===null||typeof e!="object"?null:(e=fu&&e[fu]||e["@@iterator"],typeof e=="function"?e:null)}var J=Object.assign,po;function Ur(e){if(po===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);po=t&&t[1]||""}return`
33
+ */var wp=S,Ie=gp;function R(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var ff=new Set,Zr={};function Fn(e,t){mr(e,t),mr(e+"Capture",t)}function mr(e,t){for(Zr[e]=t,e=0;e<t.length;e++)ff.add(t[e])}var kt=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Bo=Object.prototype.hasOwnProperty,xp=/^[: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]*$/,uu={},cu={};function Sp(e){return Bo.call(cu,e)?!0:Bo.call(uu,e)?!1:xp.test(e)?cu[e]=!0:(uu[e]=!0,!1)}function Ep(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function kp(e,t,n,r){if(t===null||typeof t>"u"||Ep(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function Ce(e,t,n,r,i,l,o){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=l,this.removeEmptyString=o}var pe={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){pe[e]=new Ce(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];pe[t]=new Ce(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){pe[e]=new Ce(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){pe[e]=new Ce(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){pe[e]=new Ce(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){pe[e]=new Ce(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){pe[e]=new Ce(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){pe[e]=new Ce(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){pe[e]=new Ce(e,5,!1,e.toLowerCase(),null,!1,!1)});var ia=/[\-:]([a-z])/g;function la(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(ia,la);pe[t]=new Ce(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(ia,la);pe[t]=new Ce(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(ia,la);pe[t]=new Ce(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){pe[e]=new Ce(e,1,!1,e.toLowerCase(),null,!1,!1)});pe.xlinkHref=new Ce("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){pe[e]=new Ce(e,1,!1,e.toLowerCase(),null,!0,!0)});function oa(e,t,n,r){var i=pe.hasOwnProperty(t)?pe[t]:null;(i!==null?i.type!==0:r||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(kp(t,n,i,r)&&(n=null),r||i===null?Sp(t)&&(n===null?e.removeAttribute(t):e.setAttribute(t,""+n)):i.mustUseProperty?e[i.propertyName]=n===null?i.type===3?!1:"":n:(t=i.attributeName,r=i.attributeNamespace,n===null?e.removeAttribute(t):(i=i.type,n=i===3||i===4&&n===!0?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}var Tt=wp.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,Ui=Symbol.for("react.element"),An=Symbol.for("react.portal"),Wn=Symbol.for("react.fragment"),sa=Symbol.for("react.strict_mode"),Vo=Symbol.for("react.profiler"),df=Symbol.for("react.provider"),hf=Symbol.for("react.context"),aa=Symbol.for("react.forward_ref"),Yo=Symbol.for("react.suspense"),Ko=Symbol.for("react.suspense_list"),ua=Symbol.for("react.memo"),Lt=Symbol.for("react.lazy"),pf=Symbol.for("react.offscreen"),fu=Symbol.iterator;function Nr(e){return e===null||typeof e!="object"?null:(e=fu&&e[fu]||e["@@iterator"],typeof e=="function"?e:null)}var J=Object.assign,po;function Ur(e){if(po===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);po=t&&t[1]||""}return`
34
34
  `+po+e}var mo=!1;function yo(e,t){if(!e||mo)return"";mo=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(t,[])}catch(u){var r=u}Reflect.construct(e,[],t)}else{try{t.call()}catch(u){r=u}e.call(t.prototype)}else{try{throw Error()}catch(u){r=u}e()}}catch(u){if(u&&r&&typeof u.stack=="string"){for(var i=u.stack.split(`
35
35
  `),l=r.stack.split(`
36
36
  `),o=i.length-1,s=l.length-1;1<=o&&0<=s&&i[o]!==l[s];)s--;for(;1<=o&&0<=s;o--,s--)if(i[o]!==l[s]){if(o!==1||s!==1)do if(o--,s--,0>s||i[o]!==l[s]){var a=`
37
- `+i[o].replace(" at new "," at ");return e.displayName&&a.includes("<anonymous>")&&(a=a.replace("<anonymous>",e.displayName)),a}while(1<=o&&0<=s);break}}}finally{mo=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Ur(e):""}function Cp(e){switch(e.tag){case 5:return Ur(e.type);case 16:return Ur("Lazy");case 13:return Ur("Suspense");case 19:return Ur("SuspenseList");case 0:case 2:case 15:return e=yo(e.type,!1),e;case 11:return e=yo(e.type.render,!1),e;case 1:return e=yo(e.type,!0),e;default:return""}}function Go(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case Wn:return"Fragment";case An:return"Portal";case Vo:return"Profiler";case sa:return"StrictMode";case Yo:return"Suspense";case Ko:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case hf:return(e.displayName||"Context")+".Consumer";case df:return(e._context.displayName||"Context")+".Provider";case aa:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case ua:return t=e.displayName||null,t!==null?t:Go(e.type)||"Memo";case Lt:t=e._payload,e=e._init;try{return Go(e(t))}catch{}}return null}function Pp(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return Go(t);case 8:return t===sa?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function tn(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function mf(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Rp(e){var t=mf(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var i=n.get,l=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(o){r=""+o,l.call(this,o)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(o){r=""+o},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Ai(e){e._valueTracker||(e._valueTracker=Rp(e))}function yf(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=mf(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function yl(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}}function qo(e,t){var n=t.checked;return J({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function du(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=tn(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function gf(e,t){t=t.checked,t!=null&&oa(e,"checked",t,!1)}function Xo(e,t){gf(e,t);var n=tn(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?bo(e,t.type,n):t.hasOwnProperty("defaultValue")&&bo(e,t.type,tn(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function hu(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function bo(e,t,n){(t!=="number"||yl(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Ar=Array.isArray;function bn(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i<n.length;i++)t["$"+n[i]]=!0;for(n=0;n<e.length;n++)i=t.hasOwnProperty("$"+e[n].value),e[n].selected!==i&&(e[n].selected=i),i&&r&&(e[n].defaultSelected=!0)}else{for(n=""+tn(n),t=null,i=0;i<e.length;i++){if(e[i].value===n){e[i].selected=!0,r&&(e[i].defaultSelected=!0);return}t!==null||e[i].disabled||(t=e[i])}t!==null&&(t.selected=!0)}}function Jo(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(P(91));return J({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function pu(e,t){var n=t.value;if(n==null){if(n=t.children,t=t.defaultValue,n!=null){if(t!=null)throw Error(P(92));if(Ar(n)){if(1<n.length)throw Error(P(93));n=n[0]}t=n}t==null&&(t=""),n=t}e._wrapperState={initialValue:tn(n)}}function vf(e,t){var n=tn(t.value),r=tn(t.defaultValue);n!=null&&(n=""+n,n!==e.value&&(e.value=n),t.defaultValue==null&&e.defaultValue!==n&&(e.defaultValue=n)),r!=null&&(e.defaultValue=""+r)}function mu(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function wf(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function Zo(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?wf(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var Wi,xf=function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,n,r,i){MSApp.execUnsafeLocalFunction(function(){return e(t,n,r,i)})}:e}(function(e,t){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=t;else{for(Wi=Wi||document.createElement("div"),Wi.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=Wi.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function ei(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Hr={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},Np=["Webkit","ms","Moz","O"];Object.keys(Hr).forEach(function(e){Np.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Hr[t]=Hr[e]})});function Sf(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Hr.hasOwnProperty(e)&&Hr[e]?(""+t).trim():t+"px"}function Ef(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,i=Sf(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}var Tp=J({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function es(e,t){if(t){if(Tp[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(P(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(P(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(P(61))}if(t.style!=null&&typeof t.style!="object")throw Error(P(62))}}function ts(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";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 ns=null;function ca(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var rs=null,Jn=null,Zn=null;function yu(e){if(e=Ti(e)){if(typeof rs!="function")throw Error(P(280));var t=e.stateNode;t&&(t=Gl(t),rs(e.stateNode,e.type,t))}}function kf(e){Jn?Zn?Zn.push(e):Zn=[e]:Jn=e}function Cf(){if(Jn){var e=Jn,t=Zn;if(Zn=Jn=null,yu(e),t)for(e=0;e<t.length;e++)yu(t[e])}}function Pf(e,t){return e(t)}function Rf(){}var go=!1;function Nf(e,t,n){if(go)return e(t,n);go=!0;try{return Pf(e,t,n)}finally{go=!1,(Jn!==null||Zn!==null)&&(Rf(),Cf())}}function ti(e,t){var n=e.stateNode;if(n===null)return null;var r=Gl(n);if(r===null)return null;n=r[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":(r=!r.disabled)||(e=e.type,r=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!r;break e;default:e=!1}if(e)return null;if(n&&typeof n!="function")throw Error(P(231,t,typeof n));return n}var is=!1;if(kt)try{var Tr={};Object.defineProperty(Tr,"passive",{get:function(){is=!0}}),window.addEventListener("test",Tr,Tr),window.removeEventListener("test",Tr,Tr)}catch{is=!1}function _p(e,t,n,r,i,l,o,s,a){var u=Array.prototype.slice.call(arguments,3);try{t.apply(n,u)}catch(f){this.onError(f)}}var Br=!1,gl=null,vl=!1,ls=null,Op={onError:function(e){Br=!0,gl=e}};function Mp(e,t,n,r,i,l,o,s,a){Br=!1,gl=null,_p.apply(Op,arguments)}function Lp(e,t,n,r,i,l,o,s,a){if(Mp.apply(this,arguments),Br){if(Br){var u=gl;Br=!1,gl=null}else throw Error(P(198));vl||(vl=!0,ls=u)}}function jn(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,t.flags&4098&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function Tf(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 gu(e){if(jn(e)!==e)throw Error(P(188))}function Dp(e){var t=e.alternate;if(!t){if(t=jn(e),t===null)throw Error(P(188));return t!==e?null:e}for(var n=e,r=t;;){var i=n.return;if(i===null)break;var l=i.alternate;if(l===null){if(r=i.return,r!==null){n=r;continue}break}if(i.child===l.child){for(l=i.child;l;){if(l===n)return gu(i),e;if(l===r)return gu(i),t;l=l.sibling}throw Error(P(188))}if(n.return!==r.return)n=i,r=l;else{for(var o=!1,s=i.child;s;){if(s===n){o=!0,n=i,r=l;break}if(s===r){o=!0,r=i,n=l;break}s=s.sibling}if(!o){for(s=l.child;s;){if(s===n){o=!0,n=l,r=i;break}if(s===r){o=!0,r=l,n=i;break}s=s.sibling}if(!o)throw Error(P(189))}}if(n.alternate!==r)throw Error(P(190))}if(n.tag!==3)throw Error(P(188));return n.stateNode.current===n?e:t}function _f(e){return e=Dp(e),e!==null?Of(e):null}function Of(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=Of(e);if(t!==null)return t;e=e.sibling}return null}var Mf=Fe.unstable_scheduleCallback,vu=Fe.unstable_cancelCallback,Fp=Fe.unstable_shouldYield,jp=Fe.unstable_requestPaint,ne=Fe.unstable_now,Ip=Fe.unstable_getCurrentPriorityLevel,fa=Fe.unstable_ImmediatePriority,Lf=Fe.unstable_UserBlockingPriority,wl=Fe.unstable_NormalPriority,zp=Fe.unstable_LowPriority,Df=Fe.unstable_IdlePriority,Bl=null,ft=null;function Up(e){if(ft&&typeof ft.onCommitFiberRoot=="function")try{ft.onCommitFiberRoot(Bl,e,void 0,(e.current.flags&128)===128)}catch{}}var Ze=Math.clz32?Math.clz32:$p,Ap=Math.log,Wp=Math.LN2;function $p(e){return e>>>=0,e===0?32:31-(Ap(e)/Wp|0)|0}var $i=64,Qi=4194304;function Wr(e){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: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 e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function xl(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,i=e.suspendedLanes,l=e.pingedLanes,o=n&268435455;if(o!==0){var s=o&~i;s!==0?r=Wr(s):(l&=o,l!==0&&(r=Wr(l)))}else o=n&~i,o!==0?r=Wr(o):l!==0&&(r=Wr(l));if(r===0)return 0;if(t!==0&&t!==r&&!(t&i)&&(i=r&-r,l=t&-t,i>=l||i===16&&(l&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0<t;)n=31-Ze(t),i=1<<n,r|=e[n],t&=~i;return r}function Qp(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64: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:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function Hp(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,i=e.expirationTimes,l=e.pendingLanes;0<l;){var o=31-Ze(l),s=1<<o,a=i[o];a===-1?(!(s&n)||s&r)&&(i[o]=Qp(s,t)):a<=t&&(e.expiredLanes|=s),l&=~s}}function os(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function Ff(){var e=$i;return $i<<=1,!($i&4194240)&&($i=64),e}function vo(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Ri(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Ze(t),e[t]=n}function Bp(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0<n;){var i=31-Ze(n),l=1<<i;t[i]=0,r[i]=-1,e[i]=-1,n&=~l}}function da(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-Ze(n),i=1<<r;i&t|e[r]&t&&(e[r]|=t),n&=~i}}var B=0;function jf(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var If,ha,zf,Uf,Af,ss=!1,Hi=[],Yt=null,Kt=null,Gt=null,ni=new Map,ri=new Map,Ft=[],Vp="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 submit".split(" ");function wu(e,t){switch(e){case"focusin":case"focusout":Yt=null;break;case"dragenter":case"dragleave":Kt=null;break;case"mouseover":case"mouseout":Gt=null;break;case"pointerover":case"pointerout":ni.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":ri.delete(t.pointerId)}}function _r(e,t,n,r,i,l){return e===null||e.nativeEvent!==l?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:l,targetContainers:[i]},t!==null&&(t=Ti(t),t!==null&&ha(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,i!==null&&t.indexOf(i)===-1&&t.push(i),e)}function Yp(e,t,n,r,i){switch(t){case"focusin":return Yt=_r(Yt,e,t,n,r,i),!0;case"dragenter":return Kt=_r(Kt,e,t,n,r,i),!0;case"mouseover":return Gt=_r(Gt,e,t,n,r,i),!0;case"pointerover":var l=i.pointerId;return ni.set(l,_r(ni.get(l)||null,e,t,n,r,i)),!0;case"gotpointercapture":return l=i.pointerId,ri.set(l,_r(ri.get(l)||null,e,t,n,r,i)),!0}return!1}function Wf(e){var t=dn(e.target);if(t!==null){var n=jn(t);if(n!==null){if(t=n.tag,t===13){if(t=Tf(n),t!==null){e.blockedOn=t,Af(e.priority,function(){zf(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function il(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=as(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);ns=r,n.target.dispatchEvent(r),ns=null}else return t=Ti(n),t!==null&&ha(t),e.blockedOn=n,!1;t.shift()}return!0}function xu(e,t,n){il(e)&&n.delete(t)}function Kp(){ss=!1,Yt!==null&&il(Yt)&&(Yt=null),Kt!==null&&il(Kt)&&(Kt=null),Gt!==null&&il(Gt)&&(Gt=null),ni.forEach(xu),ri.forEach(xu)}function Or(e,t){e.blockedOn===t&&(e.blockedOn=null,ss||(ss=!0,Fe.unstable_scheduleCallback(Fe.unstable_NormalPriority,Kp)))}function ii(e){function t(i){return Or(i,e)}if(0<Hi.length){Or(Hi[0],e);for(var n=1;n<Hi.length;n++){var r=Hi[n];r.blockedOn===e&&(r.blockedOn=null)}}for(Yt!==null&&Or(Yt,e),Kt!==null&&Or(Kt,e),Gt!==null&&Or(Gt,e),ni.forEach(t),ri.forEach(t),n=0;n<Ft.length;n++)r=Ft[n],r.blockedOn===e&&(r.blockedOn=null);for(;0<Ft.length&&(n=Ft[0],n.blockedOn===null);)Wf(n),n.blockedOn===null&&Ft.shift()}var er=Tt.ReactCurrentBatchConfig,Sl=!0;function Gp(e,t,n,r){var i=B,l=er.transition;er.transition=null;try{B=1,pa(e,t,n,r)}finally{B=i,er.transition=l}}function qp(e,t,n,r){var i=B,l=er.transition;er.transition=null;try{B=4,pa(e,t,n,r)}finally{B=i,er.transition=l}}function pa(e,t,n,r){if(Sl){var i=as(e,t,n,r);if(i===null)To(e,t,r,El,n),wu(e,r);else if(Yp(i,e,t,n,r))r.stopPropagation();else if(wu(e,r),t&4&&-1<Vp.indexOf(e)){for(;i!==null;){var l=Ti(i);if(l!==null&&If(l),l=as(e,t,n,r),l===null&&To(e,t,r,El,n),l===i)break;i=l}i!==null&&r.stopPropagation()}else To(e,t,r,null,n)}}var El=null;function as(e,t,n,r){if(El=null,e=ca(r),e=dn(e),e!==null)if(t=jn(e),t===null)e=null;else if(n=t.tag,n===13){if(e=Tf(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return El=e,null}function $f(e){switch(e){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"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 1;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"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(Ip()){case fa:return 1;case Lf:return 4;case wl:case zp:return 16;case Df:return 536870912;default:return 16}default:return 16}}var Bt=null,ma=null,ll=null;function Qf(){if(ll)return ll;var e,t=ma,n=t.length,r,i="value"in Bt?Bt.value:Bt.textContent,l=i.length;for(e=0;e<n&&t[e]===i[e];e++);var o=n-e;for(r=1;r<=o&&t[n-r]===i[l-r];r++);return ll=i.slice(e,1<r?1-r:void 0)}function ol(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 Bi(){return!0}function Su(){return!1}function Ie(e){function t(n,r,i,l,o){this._reactName=n,this._targetInst=i,this.type=r,this.nativeEvent=l,this.target=o,this.currentTarget=null;for(var s in e)e.hasOwnProperty(s)&&(n=e[s],this[s]=n?n(l):l[s]);return this.isDefaultPrevented=(l.defaultPrevented!=null?l.defaultPrevented:l.returnValue===!1)?Bi:Su,this.isPropagationStopped=Su,this}return J(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=Bi)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=Bi)},persist:function(){},isPersistent:Bi}),t}var kr={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},ya=Ie(kr),Ni=J({},kr,{view:0,detail:0}),Xp=Ie(Ni),wo,xo,Mr,Vl=J({},Ni,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:ga,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!==Mr&&(Mr&&e.type==="mousemove"?(wo=e.screenX-Mr.screenX,xo=e.screenY-Mr.screenY):xo=wo=0,Mr=e),wo)},movementY:function(e){return"movementY"in e?e.movementY:xo}}),Eu=Ie(Vl),bp=J({},Vl,{dataTransfer:0}),Jp=Ie(bp),Zp=J({},Ni,{relatedTarget:0}),So=Ie(Zp),em=J({},kr,{animationName:0,elapsedTime:0,pseudoElement:0}),tm=Ie(em),nm=J({},kr,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),rm=Ie(nm),im=J({},kr,{data:0}),ku=Ie(im),lm={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},om={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"},sm={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function am(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=sm[e])?!!t[e]:!1}function ga(){return am}var um=J({},Ni,{key:function(e){if(e.key){var t=lm[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=ol(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?om[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:ga,charCode:function(e){return e.type==="keypress"?ol(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?ol(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),cm=Ie(um),fm=J({},Vl,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Cu=Ie(fm),dm=J({},Ni,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:ga}),hm=Ie(dm),pm=J({},kr,{propertyName:0,elapsedTime:0,pseudoElement:0}),mm=Ie(pm),ym=J({},Vl,{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}),gm=Ie(ym),vm=[9,13,27,32],va=kt&&"CompositionEvent"in window,Vr=null;kt&&"documentMode"in document&&(Vr=document.documentMode);var wm=kt&&"TextEvent"in window&&!Vr,Hf=kt&&(!va||Vr&&8<Vr&&11>=Vr),Pu=" ",Ru=!1;function Bf(e,t){switch(e){case"keyup":return vm.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Vf(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var $n=!1;function xm(e,t){switch(e){case"compositionend":return Vf(t);case"keypress":return t.which!==32?null:(Ru=!0,Pu);case"textInput":return e=t.data,e===Pu&&Ru?null:e;default:return null}}function Sm(e,t){if($n)return e==="compositionend"||!va&&Bf(e,t)?(e=Qf(),ll=ma=Bt=null,$n=!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 Hf&&t.locale!=="ko"?null:t.data;default:return null}}var Em={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 Nu(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!Em[e.type]:t==="textarea"}function Yf(e,t,n,r){kf(r),t=kl(t,"onChange"),0<t.length&&(n=new ya("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Yr=null,li=null;function km(e){rd(e,0)}function Yl(e){var t=Bn(e);if(yf(t))return e}function Cm(e,t){if(e==="change")return t}var Kf=!1;if(kt){var Eo;if(kt){var ko="oninput"in document;if(!ko){var Tu=document.createElement("div");Tu.setAttribute("oninput","return;"),ko=typeof Tu.oninput=="function"}Eo=ko}else Eo=!1;Kf=Eo&&(!document.documentMode||9<document.documentMode)}function _u(){Yr&&(Yr.detachEvent("onpropertychange",Gf),li=Yr=null)}function Gf(e){if(e.propertyName==="value"&&Yl(li)){var t=[];Yf(t,li,e,ca(e)),Nf(km,t)}}function Pm(e,t,n){e==="focusin"?(_u(),Yr=t,li=n,Yr.attachEvent("onpropertychange",Gf)):e==="focusout"&&_u()}function Rm(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Yl(li)}function Nm(e,t){if(e==="click")return Yl(t)}function Tm(e,t){if(e==="input"||e==="change")return Yl(t)}function _m(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var tt=typeof Object.is=="function"?Object.is:_m;function oi(e,t){if(tt(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var i=n[r];if(!Bo.call(t,i)||!tt(e[i],t[i]))return!1}return!0}function Ou(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Mu(e,t){var n=Ou(e);e=0;for(var r;n;){if(n.nodeType===3){if(r=e+n.textContent.length,e<=t&&r>=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=Ou(n)}}function qf(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?qf(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Xf(){for(var e=window,t=yl();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=yl(e.document)}return t}function wa(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")}function Om(e){var t=Xf(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&qf(n.ownerDocument.documentElement,n)){if(r!==null&&wa(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var i=n.textContent.length,l=Math.min(r.start,i);r=r.end===void 0?l:Math.min(r.end,i),!e.extend&&l>r&&(i=r,r=l,l=i),i=Mu(n,l);var o=Mu(n,r);i&&o&&(e.rangeCount!==1||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==o.node||e.focusOffset!==o.offset)&&(t=t.createRange(),t.setStart(i.node,i.offset),e.removeAllRanges(),l>r?(e.addRange(t),e.extend(o.node,o.offset)):(t.setEnd(o.node,o.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n<t.length;n++)e=t[n],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}}var Mm=kt&&"documentMode"in document&&11>=document.documentMode,Qn=null,us=null,Kr=null,cs=!1;function Lu(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;cs||Qn==null||Qn!==yl(r)||(r=Qn,"selectionStart"in r&&wa(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),Kr&&oi(Kr,r)||(Kr=r,r=kl(us,"onSelect"),0<r.length&&(t=new ya("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=Qn)))}function Vi(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Hn={animationend:Vi("Animation","AnimationEnd"),animationiteration:Vi("Animation","AnimationIteration"),animationstart:Vi("Animation","AnimationStart"),transitionend:Vi("Transition","TransitionEnd")},Co={},bf={};kt&&(bf=document.createElement("div").style,"AnimationEvent"in window||(delete Hn.animationend.animation,delete Hn.animationiteration.animation,delete Hn.animationstart.animation),"TransitionEvent"in window||delete Hn.transitionend.transition);function Kl(e){if(Co[e])return Co[e];if(!Hn[e])return e;var t=Hn[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in bf)return Co[e]=t[n];return e}var Jf=Kl("animationend"),Zf=Kl("animationiteration"),ed=Kl("animationstart"),td=Kl("transitionend"),nd=new Map,Du="abort auxClick 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(" ");function rn(e,t){nd.set(e,t),Fn(t,[e])}for(var Po=0;Po<Du.length;Po++){var Ro=Du[Po],Lm=Ro.toLowerCase(),Dm=Ro[0].toUpperCase()+Ro.slice(1);rn(Lm,"on"+Dm)}rn(Jf,"onAnimationEnd");rn(Zf,"onAnimationIteration");rn(ed,"onAnimationStart");rn("dblclick","onDoubleClick");rn("focusin","onFocus");rn("focusout","onBlur");rn(td,"onTransitionEnd");mr("onMouseEnter",["mouseout","mouseover"]);mr("onMouseLeave",["mouseout","mouseover"]);mr("onPointerEnter",["pointerout","pointerover"]);mr("onPointerLeave",["pointerout","pointerover"]);Fn("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));Fn("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));Fn("onBeforeInput",["compositionend","keypress","textInput","paste"]);Fn("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));Fn("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));Fn("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var $r="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(" "),Fm=new Set("cancel close invalid load scroll toggle".split(" ").concat($r));function Fu(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,Lp(r,t,void 0,e),e.currentTarget=null}function rd(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var r=e[n],i=r.event;r=r.listeners;e:{var l=void 0;if(t)for(var o=r.length-1;0<=o;o--){var s=r[o],a=s.instance,u=s.currentTarget;if(s=s.listener,a!==l&&i.isPropagationStopped())break e;Fu(i,s,u),l=a}else for(o=0;o<r.length;o++){if(s=r[o],a=s.instance,u=s.currentTarget,s=s.listener,a!==l&&i.isPropagationStopped())break e;Fu(i,s,u),l=a}}}if(vl)throw e=ls,vl=!1,ls=null,e}function Y(e,t){var n=t[ms];n===void 0&&(n=t[ms]=new Set);var r=e+"__bubble";n.has(r)||(id(t,e,2,!1),n.add(r))}function No(e,t,n){var r=0;t&&(r|=4),id(n,e,r,t)}var Yi="_reactListening"+Math.random().toString(36).slice(2);function si(e){if(!e[Yi]){e[Yi]=!0,ff.forEach(function(n){n!=="selectionchange"&&(Fm.has(n)||No(n,!1,e),No(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Yi]||(t[Yi]=!0,No("selectionchange",!1,t))}}function id(e,t,n,r){switch($f(t)){case 1:var i=Gp;break;case 4:i=qp;break;default:i=pa}n=i.bind(null,t,n,e),i=void 0,!is||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(i=!0),r?i!==void 0?e.addEventListener(t,n,{capture:!0,passive:i}):e.addEventListener(t,n,!0):i!==void 0?e.addEventListener(t,n,{passive:i}):e.addEventListener(t,n,!1)}function To(e,t,n,r,i){var l=r;if(!(t&1)&&!(t&2)&&r!==null)e:for(;;){if(r===null)return;var o=r.tag;if(o===3||o===4){var s=r.stateNode.containerInfo;if(s===i||s.nodeType===8&&s.parentNode===i)break;if(o===4)for(o=r.return;o!==null;){var a=o.tag;if((a===3||a===4)&&(a=o.stateNode.containerInfo,a===i||a.nodeType===8&&a.parentNode===i))return;o=o.return}for(;s!==null;){if(o=dn(s),o===null)return;if(a=o.tag,a===5||a===6){r=l=o;continue e}s=s.parentNode}}r=r.return}Nf(function(){var u=l,f=ca(n),d=[];e:{var p=nd.get(e);if(p!==void 0){var v=ya,w=e;switch(e){case"keypress":if(ol(n)===0)break e;case"keydown":case"keyup":v=cm;break;case"focusin":w="focus",v=So;break;case"focusout":w="blur",v=So;break;case"beforeblur":case"afterblur":v=So;break;case"click":if(n.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":v=Eu;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":v=Jp;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":v=hm;break;case Jf:case Zf:case ed:v=tm;break;case td:v=mm;break;case"scroll":v=Xp;break;case"wheel":v=gm;break;case"copy":case"cut":case"paste":v=rm;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":v=Cu}var g=(t&4)!==0,E=!g&&e==="scroll",h=g?p!==null?p+"Capture":null:p;g=[];for(var c=u,m;c!==null;){m=c;var x=m.stateNode;if(m.tag===5&&x!==null&&(m=x,h!==null&&(x=ti(c,h),x!=null&&g.push(ai(c,x,m)))),E)break;c=c.return}0<g.length&&(p=new v(p,w,null,n,f),d.push({event:p,listeners:g}))}}if(!(t&7)){e:{if(p=e==="mouseover"||e==="pointerover",v=e==="mouseout"||e==="pointerout",p&&n!==ns&&(w=n.relatedTarget||n.fromElement)&&(dn(w)||w[Ct]))break e;if((v||p)&&(p=f.window===f?f:(p=f.ownerDocument)?p.defaultView||p.parentWindow:window,v?(w=n.relatedTarget||n.toElement,v=u,w=w?dn(w):null,w!==null&&(E=jn(w),w!==E||w.tag!==5&&w.tag!==6)&&(w=null)):(v=null,w=u),v!==w)){if(g=Eu,x="onMouseLeave",h="onMouseEnter",c="mouse",(e==="pointerout"||e==="pointerover")&&(g=Cu,x="onPointerLeave",h="onPointerEnter",c="pointer"),E=v==null?p:Bn(v),m=w==null?p:Bn(w),p=new g(x,c+"leave",v,n,f),p.target=E,p.relatedTarget=m,x=null,dn(f)===u&&(g=new g(h,c+"enter",w,n,f),g.target=m,g.relatedTarget=E,x=g),E=x,v&&w)t:{for(g=v,h=w,c=0,m=g;m;m=zn(m))c++;for(m=0,x=h;x;x=zn(x))m++;for(;0<c-m;)g=zn(g),c--;for(;0<m-c;)h=zn(h),m--;for(;c--;){if(g===h||h!==null&&g===h.alternate)break t;g=zn(g),h=zn(h)}g=null}else g=null;v!==null&&ju(d,p,v,g,!1),w!==null&&E!==null&&ju(d,E,w,g,!0)}}e:{if(p=u?Bn(u):window,v=p.nodeName&&p.nodeName.toLowerCase(),v==="select"||v==="input"&&p.type==="file")var C=Cm;else if(Nu(p))if(Kf)C=Tm;else{C=Rm;var R=Pm}else(v=p.nodeName)&&v.toLowerCase()==="input"&&(p.type==="checkbox"||p.type==="radio")&&(C=Nm);if(C&&(C=C(e,u))){Yf(d,C,n,f);break e}R&&R(e,p,u),e==="focusout"&&(R=p._wrapperState)&&R.controlled&&p.type==="number"&&bo(p,"number",p.value)}switch(R=u?Bn(u):window,e){case"focusin":(Nu(R)||R.contentEditable==="true")&&(Qn=R,us=u,Kr=null);break;case"focusout":Kr=us=Qn=null;break;case"mousedown":cs=!0;break;case"contextmenu":case"mouseup":case"dragend":cs=!1,Lu(d,n,f);break;case"selectionchange":if(Mm)break;case"keydown":case"keyup":Lu(d,n,f)}var T;if(va)e:{switch(e){case"compositionstart":var N="onCompositionStart";break e;case"compositionend":N="onCompositionEnd";break e;case"compositionupdate":N="onCompositionUpdate";break e}N=void 0}else $n?Bf(e,n)&&(N="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(N="onCompositionStart");N&&(Hf&&n.locale!=="ko"&&($n||N!=="onCompositionStart"?N==="onCompositionEnd"&&$n&&(T=Qf()):(Bt=f,ma="value"in Bt?Bt.value:Bt.textContent,$n=!0)),R=kl(u,N),0<R.length&&(N=new ku(N,e,null,n,f),d.push({event:N,listeners:R}),T?N.data=T:(T=Vf(n),T!==null&&(N.data=T)))),(T=wm?xm(e,n):Sm(e,n))&&(u=kl(u,"onBeforeInput"),0<u.length&&(f=new ku("onBeforeInput","beforeinput",null,n,f),d.push({event:f,listeners:u}),f.data=T))}rd(d,t)})}function ai(e,t,n){return{instance:e,listener:t,currentTarget:n}}function kl(e,t){for(var n=t+"Capture",r=[];e!==null;){var i=e,l=i.stateNode;i.tag===5&&l!==null&&(i=l,l=ti(e,n),l!=null&&r.unshift(ai(e,l,i)),l=ti(e,t),l!=null&&r.push(ai(e,l,i))),e=e.return}return r}function zn(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function ju(e,t,n,r,i){for(var l=t._reactName,o=[];n!==null&&n!==r;){var s=n,a=s.alternate,u=s.stateNode;if(a!==null&&a===r)break;s.tag===5&&u!==null&&(s=u,i?(a=ti(n,l),a!=null&&o.unshift(ai(n,a,s))):i||(a=ti(n,l),a!=null&&o.push(ai(n,a,s)))),n=n.return}o.length!==0&&e.push({event:t,listeners:o})}var jm=/\r\n?/g,Im=/\u0000|\uFFFD/g;function Iu(e){return(typeof e=="string"?e:""+e).replace(jm,`
38
- `).replace(Im,"")}function Ki(e,t,n){if(t=Iu(t),Iu(e)!==t&&n)throw Error(P(425))}function Cl(){}var fs=null,ds=null;function hs(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var ps=typeof setTimeout=="function"?setTimeout:void 0,zm=typeof clearTimeout=="function"?clearTimeout:void 0,zu=typeof Promise=="function"?Promise:void 0,Um=typeof queueMicrotask=="function"?queueMicrotask:typeof zu<"u"?function(e){return zu.resolve(null).then(e).catch(Am)}:ps;function Am(e){setTimeout(function(){throw e})}function _o(e,t){var n=t,r=0;do{var i=n.nextSibling;if(e.removeChild(n),i&&i.nodeType===8)if(n=i.data,n==="/$"){if(r===0){e.removeChild(i),ii(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=i}while(n);ii(t)}function qt(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==="$?")break;if(t==="/$")return null}}return e}function Uu(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"){if(t===0)return e;t--}else n==="/$"&&t++}e=e.previousSibling}return null}var Cr=Math.random().toString(36).slice(2),ct="__reactFiber$"+Cr,ui="__reactProps$"+Cr,Ct="__reactContainer$"+Cr,ms="__reactEvents$"+Cr,Wm="__reactListeners$"+Cr,$m="__reactHandles$"+Cr;function dn(e){var t=e[ct];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Ct]||n[ct]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=Uu(e);e!==null;){if(n=e[ct])return n;e=Uu(e)}return t}e=n,n=e.parentNode}return null}function Ti(e){return e=e[ct]||e[Ct],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function Bn(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(P(33))}function Gl(e){return e[ui]||null}var ys=[],Vn=-1;function ln(e){return{current:e}}function K(e){0>Vn||(e.current=ys[Vn],ys[Vn]=null,Vn--)}function V(e,t){Vn++,ys[Vn]=e.current,e.current=t}var nn={},ge=ln(nn),Te=ln(!1),Nn=nn;function yr(e,t){var n=e.type.contextTypes;if(!n)return nn;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i={},l;for(l in n)i[l]=t[l];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function _e(e){return e=e.childContextTypes,e!=null}function Pl(){K(Te),K(ge)}function Au(e,t,n){if(ge.current!==nn)throw Error(P(168));V(ge,t),V(Te,n)}function ld(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var i in r)if(!(i in t))throw Error(P(108,Pp(e)||"Unknown",i));return J({},n,r)}function Rl(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||nn,Nn=ge.current,V(ge,e),V(Te,Te.current),!0}function Wu(e,t,n){var r=e.stateNode;if(!r)throw Error(P(169));n?(e=ld(e,t,Nn),r.__reactInternalMemoizedMergedChildContext=e,K(Te),K(ge),V(ge,e)):K(Te),V(Te,n)}var yt=null,ql=!1,Oo=!1;function od(e){yt===null?yt=[e]:yt.push(e)}function Qm(e){ql=!0,od(e)}function on(){if(!Oo&&yt!==null){Oo=!0;var e=0,t=B;try{var n=yt;for(B=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}yt=null,ql=!1}catch(i){throw yt!==null&&(yt=yt.slice(e+1)),Mf(fa,on),i}finally{B=t,Oo=!1}}return null}var Yn=[],Kn=0,Nl=null,Tl=0,We=[],$e=0,Tn=null,wt=1,xt="";function un(e,t){Yn[Kn++]=Tl,Yn[Kn++]=Nl,Nl=e,Tl=t}function sd(e,t,n){We[$e++]=wt,We[$e++]=xt,We[$e++]=Tn,Tn=e;var r=wt;e=xt;var i=32-Ze(r)-1;r&=~(1<<i),n+=1;var l=32-Ze(t)+i;if(30<l){var o=i-i%5;l=(r&(1<<o)-1).toString(32),r>>=o,i-=o,wt=1<<32-Ze(t)+i|n<<i|r,xt=l+e}else wt=1<<l|n<<i|r,xt=e}function xa(e){e.return!==null&&(un(e,1),sd(e,1,0))}function Sa(e){for(;e===Nl;)Nl=Yn[--Kn],Yn[Kn]=null,Tl=Yn[--Kn],Yn[Kn]=null;for(;e===Tn;)Tn=We[--$e],We[$e]=null,xt=We[--$e],We[$e]=null,wt=We[--$e],We[$e]=null}var De=null,Le=null,G=!1,Je=null;function ad(e,t){var n=Qe(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,t=e.deletions,t===null?(e.deletions=[n],e.flags|=16):t.push(n)}function $u(e,t){switch(e.tag){case 5:var n=e.type;return t=t.nodeType!==1||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(e.stateNode=t,De=e,Le=qt(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,De=e,Le=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(n=Tn!==null?{id:wt,overflow:xt}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=Qe(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,De=e,Le=null,!0):!1;default:return!1}}function gs(e){return(e.mode&1)!==0&&(e.flags&128)===0}function vs(e){if(G){var t=Le;if(t){var n=t;if(!$u(e,t)){if(gs(e))throw Error(P(418));t=qt(n.nextSibling);var r=De;t&&$u(e,t)?ad(r,n):(e.flags=e.flags&-4097|2,G=!1,De=e)}}else{if(gs(e))throw Error(P(418));e.flags=e.flags&-4097|2,G=!1,De=e}}}function Qu(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;De=e}function Gi(e){if(e!==De)return!1;if(!G)return Qu(e),G=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!hs(e.type,e.memoizedProps)),t&&(t=Le)){if(gs(e))throw ud(),Error(P(418));for(;t;)ad(e,t),t=qt(t.nextSibling)}if(Qu(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(P(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"){if(t===0){Le=qt(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++}e=e.nextSibling}Le=null}}else Le=De?qt(e.stateNode.nextSibling):null;return!0}function ud(){for(var e=Le;e;)e=qt(e.nextSibling)}function gr(){Le=De=null,G=!1}function Ea(e){Je===null?Je=[e]:Je.push(e)}var Hm=Tt.ReactCurrentBatchConfig;function Lr(e,t,n){if(e=n.ref,e!==null&&typeof e!="function"&&typeof e!="object"){if(n._owner){if(n=n._owner,n){if(n.tag!==1)throw Error(P(309));var r=n.stateNode}if(!r)throw Error(P(147,e));var i=r,l=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===l?t.ref:(t=function(o){var s=i.refs;o===null?delete s[l]:s[l]=o},t._stringRef=l,t)}if(typeof e!="string")throw Error(P(284));if(!n._owner)throw Error(P(290,e))}return e}function qi(e,t){throw e=Object.prototype.toString.call(t),Error(P(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function Hu(e){var t=e._init;return t(e._payload)}function cd(e){function t(h,c){if(e){var m=h.deletions;m===null?(h.deletions=[c],h.flags|=16):m.push(c)}}function n(h,c){if(!e)return null;for(;c!==null;)t(h,c),c=c.sibling;return null}function r(h,c){for(h=new Map;c!==null;)c.key!==null?h.set(c.key,c):h.set(c.index,c),c=c.sibling;return h}function i(h,c){return h=Zt(h,c),h.index=0,h.sibling=null,h}function l(h,c,m){return h.index=m,e?(m=h.alternate,m!==null?(m=m.index,m<c?(h.flags|=2,c):m):(h.flags|=2,c)):(h.flags|=1048576,c)}function o(h){return e&&h.alternate===null&&(h.flags|=2),h}function s(h,c,m,x){return c===null||c.tag!==6?(c=zo(m,h.mode,x),c.return=h,c):(c=i(c,m),c.return=h,c)}function a(h,c,m,x){var C=m.type;return C===Wn?f(h,c,m.props.children,x,m.key):c!==null&&(c.elementType===C||typeof C=="object"&&C!==null&&C.$$typeof===Lt&&Hu(C)===c.type)?(x=i(c,m.props),x.ref=Lr(h,c,m),x.return=h,x):(x=hl(m.type,m.key,m.props,null,h.mode,x),x.ref=Lr(h,c,m),x.return=h,x)}function u(h,c,m,x){return c===null||c.tag!==4||c.stateNode.containerInfo!==m.containerInfo||c.stateNode.implementation!==m.implementation?(c=Uo(m,h.mode,x),c.return=h,c):(c=i(c,m.children||[]),c.return=h,c)}function f(h,c,m,x,C){return c===null||c.tag!==7?(c=Rn(m,h.mode,x,C),c.return=h,c):(c=i(c,m),c.return=h,c)}function d(h,c,m){if(typeof c=="string"&&c!==""||typeof c=="number")return c=zo(""+c,h.mode,m),c.return=h,c;if(typeof c=="object"&&c!==null){switch(c.$$typeof){case Ui:return m=hl(c.type,c.key,c.props,null,h.mode,m),m.ref=Lr(h,null,c),m.return=h,m;case An:return c=Uo(c,h.mode,m),c.return=h,c;case Lt:var x=c._init;return d(h,x(c._payload),m)}if(Ar(c)||Nr(c))return c=Rn(c,h.mode,m,null),c.return=h,c;qi(h,c)}return null}function p(h,c,m,x){var C=c!==null?c.key:null;if(typeof m=="string"&&m!==""||typeof m=="number")return C!==null?null:s(h,c,""+m,x);if(typeof m=="object"&&m!==null){switch(m.$$typeof){case Ui:return m.key===C?a(h,c,m,x):null;case An:return m.key===C?u(h,c,m,x):null;case Lt:return C=m._init,p(h,c,C(m._payload),x)}if(Ar(m)||Nr(m))return C!==null?null:f(h,c,m,x,null);qi(h,m)}return null}function v(h,c,m,x,C){if(typeof x=="string"&&x!==""||typeof x=="number")return h=h.get(m)||null,s(c,h,""+x,C);if(typeof x=="object"&&x!==null){switch(x.$$typeof){case Ui:return h=h.get(x.key===null?m:x.key)||null,a(c,h,x,C);case An:return h=h.get(x.key===null?m:x.key)||null,u(c,h,x,C);case Lt:var R=x._init;return v(h,c,m,R(x._payload),C)}if(Ar(x)||Nr(x))return h=h.get(m)||null,f(c,h,x,C,null);qi(c,x)}return null}function w(h,c,m,x){for(var C=null,R=null,T=c,N=c=0,I=null;T!==null&&N<m.length;N++){T.index>N?(I=T,T=null):I=T.sibling;var _=p(h,T,m[N],x);if(_===null){T===null&&(T=I);break}e&&T&&_.alternate===null&&t(h,T),c=l(_,c,N),R===null?C=_:R.sibling=_,R=_,T=I}if(N===m.length)return n(h,T),G&&un(h,N),C;if(T===null){for(;N<m.length;N++)T=d(h,m[N],x),T!==null&&(c=l(T,c,N),R===null?C=T:R.sibling=T,R=T);return G&&un(h,N),C}for(T=r(h,T);N<m.length;N++)I=v(T,h,N,m[N],x),I!==null&&(e&&I.alternate!==null&&T.delete(I.key===null?N:I.key),c=l(I,c,N),R===null?C=I:R.sibling=I,R=I);return e&&T.forEach(function($){return t(h,$)}),G&&un(h,N),C}function g(h,c,m,x){var C=Nr(m);if(typeof C!="function")throw Error(P(150));if(m=C.call(m),m==null)throw Error(P(151));for(var R=C=null,T=c,N=c=0,I=null,_=m.next();T!==null&&!_.done;N++,_=m.next()){T.index>N?(I=T,T=null):I=T.sibling;var $=p(h,T,_.value,x);if($===null){T===null&&(T=I);break}e&&T&&$.alternate===null&&t(h,T),c=l($,c,N),R===null?C=$:R.sibling=$,R=$,T=I}if(_.done)return n(h,T),G&&un(h,N),C;if(T===null){for(;!_.done;N++,_=m.next())_=d(h,_.value,x),_!==null&&(c=l(_,c,N),R===null?C=_:R.sibling=_,R=_);return G&&un(h,N),C}for(T=r(h,T);!_.done;N++,_=m.next())_=v(T,h,N,_.value,x),_!==null&&(e&&_.alternate!==null&&T.delete(_.key===null?N:_.key),c=l(_,c,N),R===null?C=_:R.sibling=_,R=_);return e&&T.forEach(function(ze){return t(h,ze)}),G&&un(h,N),C}function E(h,c,m,x){if(typeof m=="object"&&m!==null&&m.type===Wn&&m.key===null&&(m=m.props.children),typeof m=="object"&&m!==null){switch(m.$$typeof){case Ui:e:{for(var C=m.key,R=c;R!==null;){if(R.key===C){if(C=m.type,C===Wn){if(R.tag===7){n(h,R.sibling),c=i(R,m.props.children),c.return=h,h=c;break e}}else if(R.elementType===C||typeof C=="object"&&C!==null&&C.$$typeof===Lt&&Hu(C)===R.type){n(h,R.sibling),c=i(R,m.props),c.ref=Lr(h,R,m),c.return=h,h=c;break e}n(h,R);break}else t(h,R);R=R.sibling}m.type===Wn?(c=Rn(m.props.children,h.mode,x,m.key),c.return=h,h=c):(x=hl(m.type,m.key,m.props,null,h.mode,x),x.ref=Lr(h,c,m),x.return=h,h=x)}return o(h);case An:e:{for(R=m.key;c!==null;){if(c.key===R)if(c.tag===4&&c.stateNode.containerInfo===m.containerInfo&&c.stateNode.implementation===m.implementation){n(h,c.sibling),c=i(c,m.children||[]),c.return=h,h=c;break e}else{n(h,c);break}else t(h,c);c=c.sibling}c=Uo(m,h.mode,x),c.return=h,h=c}return o(h);case Lt:return R=m._init,E(h,c,R(m._payload),x)}if(Ar(m))return w(h,c,m,x);if(Nr(m))return g(h,c,m,x);qi(h,m)}return typeof m=="string"&&m!==""||typeof m=="number"?(m=""+m,c!==null&&c.tag===6?(n(h,c.sibling),c=i(c,m),c.return=h,h=c):(n(h,c),c=zo(m,h.mode,x),c.return=h,h=c),o(h)):n(h,c)}return E}var vr=cd(!0),fd=cd(!1),_l=ln(null),Ol=null,Gn=null,ka=null;function Ca(){ka=Gn=Ol=null}function Pa(e){var t=_l.current;K(_l),e._currentValue=t}function ws(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function tr(e,t){Ol=e,ka=Gn=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(Ne=!0),e.firstContext=null)}function Be(e){var t=e._currentValue;if(ka!==e)if(e={context:e,memoizedValue:t,next:null},Gn===null){if(Ol===null)throw Error(P(308));Gn=e,Ol.dependencies={lanes:0,firstContext:e}}else Gn=Gn.next=e;return t}var hn=null;function Ra(e){hn===null?hn=[e]:hn.push(e)}function dd(e,t,n,r){var i=t.interleaved;return i===null?(n.next=n,Ra(t)):(n.next=i.next,i.next=n),t.interleaved=n,Pt(e,r)}function Pt(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var Dt=!1;function Na(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function hd(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function St(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Xt(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,W&2){var i=r.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),r.pending=t,Pt(e,n)}return i=r.interleaved,i===null?(t.next=t,Ra(r)):(t.next=i.next,i.next=t),r.interleaved=t,Pt(e,n)}function sl(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,da(e,n)}}function Bu(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var i=null,l=null;if(n=n.firstBaseUpdate,n!==null){do{var o={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};l===null?i=l=o:l=l.next=o,n=n.next}while(n!==null);l===null?i=l=t:l=l.next=t}else i=l=t;n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:l,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function Ml(e,t,n,r){var i=e.updateQueue;Dt=!1;var l=i.firstBaseUpdate,o=i.lastBaseUpdate,s=i.shared.pending;if(s!==null){i.shared.pending=null;var a=s,u=a.next;a.next=null,o===null?l=u:o.next=u,o=a;var f=e.alternate;f!==null&&(f=f.updateQueue,s=f.lastBaseUpdate,s!==o&&(s===null?f.firstBaseUpdate=u:s.next=u,f.lastBaseUpdate=a))}if(l!==null){var d=i.baseState;o=0,f=u=a=null,s=l;do{var p=s.lane,v=s.eventTime;if((r&p)===p){f!==null&&(f=f.next={eventTime:v,lane:0,tag:s.tag,payload:s.payload,callback:s.callback,next:null});e:{var w=e,g=s;switch(p=t,v=n,g.tag){case 1:if(w=g.payload,typeof w=="function"){d=w.call(v,d,p);break e}d=w;break e;case 3:w.flags=w.flags&-65537|128;case 0:if(w=g.payload,p=typeof w=="function"?w.call(v,d,p):w,p==null)break e;d=J({},d,p);break e;case 2:Dt=!0}}s.callback!==null&&s.lane!==0&&(e.flags|=64,p=i.effects,p===null?i.effects=[s]:p.push(s))}else v={eventTime:v,lane:p,tag:s.tag,payload:s.payload,callback:s.callback,next:null},f===null?(u=f=v,a=d):f=f.next=v,o|=p;if(s=s.next,s===null){if(s=i.shared.pending,s===null)break;p=s,s=p.next,p.next=null,i.lastBaseUpdate=p,i.shared.pending=null}}while(!0);if(f===null&&(a=d),i.baseState=a,i.firstBaseUpdate=u,i.lastBaseUpdate=f,t=i.shared.interleaved,t!==null){i=t;do o|=i.lane,i=i.next;while(i!==t)}else l===null&&(i.shared.lanes=0);On|=o,e.lanes=o,e.memoizedState=d}}function Vu(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var r=e[t],i=r.callback;if(i!==null){if(r.callback=null,r=n,typeof i!="function")throw Error(P(191,i));i.call(r)}}}var _i={},dt=ln(_i),ci=ln(_i),fi=ln(_i);function pn(e){if(e===_i)throw Error(P(174));return e}function Ta(e,t){switch(V(fi,t),V(ci,e),V(dt,_i),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Zo(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=Zo(t,e)}K(dt),V(dt,t)}function wr(){K(dt),K(ci),K(fi)}function pd(e){pn(fi.current);var t=pn(dt.current),n=Zo(t,e.type);t!==n&&(V(ci,e),V(dt,n))}function _a(e){ci.current===e&&(K(dt),K(ci))}var q=ln(0);function Ll(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var Mo=[];function Oa(){for(var e=0;e<Mo.length;e++)Mo[e]._workInProgressVersionPrimary=null;Mo.length=0}var al=Tt.ReactCurrentDispatcher,Lo=Tt.ReactCurrentBatchConfig,_n=0,X=null,ie=null,ae=null,Dl=!1,Gr=!1,di=0,Bm=0;function pe(){throw Error(P(321))}function Ma(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!tt(e[n],t[n]))return!1;return!0}function La(e,t,n,r,i,l){if(_n=l,X=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,al.current=e===null||e.memoizedState===null?Gm:qm,e=n(r,i),Gr){l=0;do{if(Gr=!1,di=0,25<=l)throw Error(P(301));l+=1,ae=ie=null,t.updateQueue=null,al.current=Xm,e=n(r,i)}while(Gr)}if(al.current=Fl,t=ie!==null&&ie.next!==null,_n=0,ae=ie=X=null,Dl=!1,t)throw Error(P(300));return e}function Da(){var e=di!==0;return di=0,e}function ot(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return ae===null?X.memoizedState=ae=e:ae=ae.next=e,ae}function Ve(){if(ie===null){var e=X.alternate;e=e!==null?e.memoizedState:null}else e=ie.next;var t=ae===null?X.memoizedState:ae.next;if(t!==null)ae=t,ie=e;else{if(e===null)throw Error(P(310));ie=e,e={memoizedState:ie.memoizedState,baseState:ie.baseState,baseQueue:ie.baseQueue,queue:ie.queue,next:null},ae===null?X.memoizedState=ae=e:ae=ae.next=e}return ae}function hi(e,t){return typeof t=="function"?t(e):t}function Do(e){var t=Ve(),n=t.queue;if(n===null)throw Error(P(311));n.lastRenderedReducer=e;var r=ie,i=r.baseQueue,l=n.pending;if(l!==null){if(i!==null){var o=i.next;i.next=l.next,l.next=o}r.baseQueue=i=l,n.pending=null}if(i!==null){l=i.next,r=r.baseState;var s=o=null,a=null,u=l;do{var f=u.lane;if((_n&f)===f)a!==null&&(a=a.next={lane:0,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),r=u.hasEagerState?u.eagerState:e(r,u.action);else{var d={lane:f,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null};a===null?(s=a=d,o=r):a=a.next=d,X.lanes|=f,On|=f}u=u.next}while(u!==null&&u!==l);a===null?o=r:a.next=s,tt(r,t.memoizedState)||(Ne=!0),t.memoizedState=r,t.baseState=o,t.baseQueue=a,n.lastRenderedState=r}if(e=n.interleaved,e!==null){i=e;do l=i.lane,X.lanes|=l,On|=l,i=i.next;while(i!==e)}else i===null&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function Fo(e){var t=Ve(),n=t.queue;if(n===null)throw Error(P(311));n.lastRenderedReducer=e;var r=n.dispatch,i=n.pending,l=t.memoizedState;if(i!==null){n.pending=null;var o=i=i.next;do l=e(l,o.action),o=o.next;while(o!==i);tt(l,t.memoizedState)||(Ne=!0),t.memoizedState=l,t.baseQueue===null&&(t.baseState=l),n.lastRenderedState=l}return[l,r]}function md(){}function yd(e,t){var n=X,r=Ve(),i=t(),l=!tt(r.memoizedState,i);if(l&&(r.memoizedState=i,Ne=!0),r=r.queue,Fa(wd.bind(null,n,r,e),[e]),r.getSnapshot!==t||l||ae!==null&&ae.memoizedState.tag&1){if(n.flags|=2048,pi(9,vd.bind(null,n,r,i,t),void 0,null),ue===null)throw Error(P(349));_n&30||gd(n,t,i)}return i}function gd(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=X.updateQueue,t===null?(t={lastEffect:null,stores:null},X.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function vd(e,t,n,r){t.value=n,t.getSnapshot=r,xd(t)&&Sd(e)}function wd(e,t,n){return n(function(){xd(t)&&Sd(e)})}function xd(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!tt(e,n)}catch{return!0}}function Sd(e){var t=Pt(e,1);t!==null&&et(t,e,1,-1)}function Yu(e){var t=ot();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:hi,lastRenderedState:e},t.queue=e,e=e.dispatch=Km.bind(null,X,e),[t.memoizedState,e]}function pi(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},t=X.updateQueue,t===null?(t={lastEffect:null,stores:null},X.updateQueue=t,t.lastEffect=e.next=e):(n=t.lastEffect,n===null?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e)),e}function Ed(){return Ve().memoizedState}function ul(e,t,n,r){var i=ot();X.flags|=e,i.memoizedState=pi(1|t,n,void 0,r===void 0?null:r)}function Xl(e,t,n,r){var i=Ve();r=r===void 0?null:r;var l=void 0;if(ie!==null){var o=ie.memoizedState;if(l=o.destroy,r!==null&&Ma(r,o.deps)){i.memoizedState=pi(t,n,l,r);return}}X.flags|=e,i.memoizedState=pi(1|t,n,l,r)}function Ku(e,t){return ul(8390656,8,e,t)}function Fa(e,t){return Xl(2048,8,e,t)}function kd(e,t){return Xl(4,2,e,t)}function Cd(e,t){return Xl(4,4,e,t)}function Pd(e,t){if(typeof t=="function")return e=e(),t(e),function(){t(null)};if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function Rd(e,t,n){return n=n!=null?n.concat([e]):null,Xl(4,4,Pd.bind(null,t,e),n)}function ja(){}function Nd(e,t){var n=Ve();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&Ma(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function Td(e,t){var n=Ve();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&Ma(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function _d(e,t,n){return _n&21?(tt(n,t)||(n=Ff(),X.lanes|=n,On|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,Ne=!0),e.memoizedState=n)}function Vm(e,t){var n=B;B=n!==0&&4>n?n:4,e(!0);var r=Lo.transition;Lo.transition={};try{e(!1),t()}finally{B=n,Lo.transition=r}}function Od(){return Ve().memoizedState}function Ym(e,t,n){var r=Jt(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},Md(e))Ld(t,n);else if(n=dd(e,t,n,r),n!==null){var i=Se();et(n,e,r,i),Dd(n,t,r)}}function Km(e,t,n){var r=Jt(e),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(Md(e))Ld(t,i);else{var l=e.alternate;if(e.lanes===0&&(l===null||l.lanes===0)&&(l=t.lastRenderedReducer,l!==null))try{var o=t.lastRenderedState,s=l(o,n);if(i.hasEagerState=!0,i.eagerState=s,tt(s,o)){var a=t.interleaved;a===null?(i.next=i,Ra(t)):(i.next=a.next,a.next=i),t.interleaved=i;return}}catch{}finally{}n=dd(e,t,i,r),n!==null&&(i=Se(),et(n,e,r,i),Dd(n,t,r))}}function Md(e){var t=e.alternate;return e===X||t!==null&&t===X}function Ld(e,t){Gr=Dl=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Dd(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,da(e,n)}}var Fl={readContext:Be,useCallback:pe,useContext:pe,useEffect:pe,useImperativeHandle:pe,useInsertionEffect:pe,useLayoutEffect:pe,useMemo:pe,useReducer:pe,useRef:pe,useState:pe,useDebugValue:pe,useDeferredValue:pe,useTransition:pe,useMutableSource:pe,useSyncExternalStore:pe,useId:pe,unstable_isNewReconciler:!1},Gm={readContext:Be,useCallback:function(e,t){return ot().memoizedState=[e,t===void 0?null:t],e},useContext:Be,useEffect:Ku,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,ul(4194308,4,Pd.bind(null,t,e),n)},useLayoutEffect:function(e,t){return ul(4194308,4,e,t)},useInsertionEffect:function(e,t){return ul(4,2,e,t)},useMemo:function(e,t){var n=ot();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=ot();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=Ym.bind(null,X,e),[r.memoizedState,e]},useRef:function(e){var t=ot();return e={current:e},t.memoizedState=e},useState:Yu,useDebugValue:ja,useDeferredValue:function(e){return ot().memoizedState=e},useTransition:function(){var e=Yu(!1),t=e[0];return e=Vm.bind(null,e[1]),ot().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=X,i=ot();if(G){if(n===void 0)throw Error(P(407));n=n()}else{if(n=t(),ue===null)throw Error(P(349));_n&30||gd(r,t,n)}i.memoizedState=n;var l={value:n,getSnapshot:t};return i.queue=l,Ku(wd.bind(null,r,l,e),[e]),r.flags|=2048,pi(9,vd.bind(null,r,l,n,t),void 0,null),n},useId:function(){var e=ot(),t=ue.identifierPrefix;if(G){var n=xt,r=wt;n=(r&~(1<<32-Ze(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=di++,0<n&&(t+="H"+n.toString(32)),t+=":"}else n=Bm++,t=":"+t+"r"+n.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},qm={readContext:Be,useCallback:Nd,useContext:Be,useEffect:Fa,useImperativeHandle:Rd,useInsertionEffect:kd,useLayoutEffect:Cd,useMemo:Td,useReducer:Do,useRef:Ed,useState:function(){return Do(hi)},useDebugValue:ja,useDeferredValue:function(e){var t=Ve();return _d(t,ie.memoizedState,e)},useTransition:function(){var e=Do(hi)[0],t=Ve().memoizedState;return[e,t]},useMutableSource:md,useSyncExternalStore:yd,useId:Od,unstable_isNewReconciler:!1},Xm={readContext:Be,useCallback:Nd,useContext:Be,useEffect:Fa,useImperativeHandle:Rd,useInsertionEffect:kd,useLayoutEffect:Cd,useMemo:Td,useReducer:Fo,useRef:Ed,useState:function(){return Fo(hi)},useDebugValue:ja,useDeferredValue:function(e){var t=Ve();return ie===null?t.memoizedState=e:_d(t,ie.memoizedState,e)},useTransition:function(){var e=Fo(hi)[0],t=Ve().memoizedState;return[e,t]},useMutableSource:md,useSyncExternalStore:yd,useId:Od,unstable_isNewReconciler:!1};function Ge(e,t){if(e&&e.defaultProps){t=J({},t),e=e.defaultProps;for(var n in e)t[n]===void 0&&(t[n]=e[n]);return t}return t}function xs(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:J({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var bl={isMounted:function(e){return(e=e._reactInternals)?jn(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=Se(),i=Jt(e),l=St(r,i);l.payload=t,n!=null&&(l.callback=n),t=Xt(e,l,i),t!==null&&(et(t,e,i,r),sl(t,e,i))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=Se(),i=Jt(e),l=St(r,i);l.tag=1,l.payload=t,n!=null&&(l.callback=n),t=Xt(e,l,i),t!==null&&(et(t,e,i,r),sl(t,e,i))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=Se(),r=Jt(e),i=St(n,r);i.tag=2,t!=null&&(i.callback=t),t=Xt(e,i,r),t!==null&&(et(t,e,r,n),sl(t,e,r))}};function Gu(e,t,n,r,i,l,o){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(r,l,o):t.prototype&&t.prototype.isPureReactComponent?!oi(n,r)||!oi(i,l):!0}function Fd(e,t,n){var r=!1,i=nn,l=t.contextType;return typeof l=="object"&&l!==null?l=Be(l):(i=_e(t)?Nn:ge.current,r=t.contextTypes,l=(r=r!=null)?yr(e,i):nn),t=new t(n,l),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=bl,e.stateNode=t,t._reactInternals=e,r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=i,e.__reactInternalMemoizedMaskedChildContext=l),t}function qu(e,t,n,r){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,r),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&bl.enqueueReplaceState(t,t.state,null)}function Ss(e,t,n,r){var i=e.stateNode;i.props=n,i.state=e.memoizedState,i.refs={},Na(e);var l=t.contextType;typeof l=="object"&&l!==null?i.context=Be(l):(l=_e(t)?Nn:ge.current,i.context=yr(e,l)),i.state=e.memoizedState,l=t.getDerivedStateFromProps,typeof l=="function"&&(xs(e,t,l,n),i.state=e.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof i.getSnapshotBeforeUpdate=="function"||typeof i.UNSAFE_componentWillMount!="function"&&typeof i.componentWillMount!="function"||(t=i.state,typeof i.componentWillMount=="function"&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount=="function"&&i.UNSAFE_componentWillMount(),t!==i.state&&bl.enqueueReplaceState(i,i.state,null),Ml(e,n,i,r),i.state=e.memoizedState),typeof i.componentDidMount=="function"&&(e.flags|=4194308)}function xr(e,t){try{var n="",r=t;do n+=Cp(r),r=r.return;while(r);var i=n}catch(l){i=`
37
+ `+i[o].replace(" at new "," at ");return e.displayName&&a.includes("<anonymous>")&&(a=a.replace("<anonymous>",e.displayName)),a}while(1<=o&&0<=s);break}}}finally{mo=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Ur(e):""}function Cp(e){switch(e.tag){case 5:return Ur(e.type);case 16:return Ur("Lazy");case 13:return Ur("Suspense");case 19:return Ur("SuspenseList");case 0:case 2:case 15:return e=yo(e.type,!1),e;case 11:return e=yo(e.type.render,!1),e;case 1:return e=yo(e.type,!0),e;default:return""}}function Go(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case Wn:return"Fragment";case An:return"Portal";case Vo:return"Profiler";case sa:return"StrictMode";case Yo:return"Suspense";case Ko:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case hf:return(e.displayName||"Context")+".Consumer";case df:return(e._context.displayName||"Context")+".Provider";case aa:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case ua:return t=e.displayName||null,t!==null?t:Go(e.type)||"Memo";case Lt:t=e._payload,e=e._init;try{return Go(e(t))}catch{}}return null}function Pp(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return Go(t);case 8:return t===sa?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function tn(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function mf(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Rp(e){var t=mf(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var i=n.get,l=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(o){r=""+o,l.call(this,o)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(o){r=""+o},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Ai(e){e._valueTracker||(e._valueTracker=Rp(e))}function yf(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=mf(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function yl(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}}function qo(e,t){var n=t.checked;return J({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function du(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=tn(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function vf(e,t){t=t.checked,t!=null&&oa(e,"checked",t,!1)}function bo(e,t){vf(e,t);var n=tn(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?Xo(e,t.type,n):t.hasOwnProperty("defaultValue")&&Xo(e,t.type,tn(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function hu(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function Xo(e,t,n){(t!=="number"||yl(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Ar=Array.isArray;function Xn(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i<n.length;i++)t["$"+n[i]]=!0;for(n=0;n<e.length;n++)i=t.hasOwnProperty("$"+e[n].value),e[n].selected!==i&&(e[n].selected=i),i&&r&&(e[n].defaultSelected=!0)}else{for(n=""+tn(n),t=null,i=0;i<e.length;i++){if(e[i].value===n){e[i].selected=!0,r&&(e[i].defaultSelected=!0);return}t!==null||e[i].disabled||(t=e[i])}t!==null&&(t.selected=!0)}}function Jo(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(R(91));return J({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function pu(e,t){var n=t.value;if(n==null){if(n=t.children,t=t.defaultValue,n!=null){if(t!=null)throw Error(R(92));if(Ar(n)){if(1<n.length)throw Error(R(93));n=n[0]}t=n}t==null&&(t=""),n=t}e._wrapperState={initialValue:tn(n)}}function gf(e,t){var n=tn(t.value),r=tn(t.defaultValue);n!=null&&(n=""+n,n!==e.value&&(e.value=n),t.defaultValue==null&&e.defaultValue!==n&&(e.defaultValue=n)),r!=null&&(e.defaultValue=""+r)}function mu(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function wf(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function Zo(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?wf(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var Wi,xf=function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,n,r,i){MSApp.execUnsafeLocalFunction(function(){return e(t,n,r,i)})}:e}(function(e,t){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=t;else{for(Wi=Wi||document.createElement("div"),Wi.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=Wi.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function ei(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Hr={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},Np=["Webkit","ms","Moz","O"];Object.keys(Hr).forEach(function(e){Np.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Hr[t]=Hr[e]})});function Sf(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Hr.hasOwnProperty(e)&&Hr[e]?(""+t).trim():t+"px"}function Ef(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,i=Sf(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}var Tp=J({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function es(e,t){if(t){if(Tp[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(R(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(R(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(R(61))}if(t.style!=null&&typeof t.style!="object")throw Error(R(62))}}function ts(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";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 ns=null;function ca(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var rs=null,Jn=null,Zn=null;function yu(e){if(e=Ti(e)){if(typeof rs!="function")throw Error(R(280));var t=e.stateNode;t&&(t=Gl(t),rs(e.stateNode,e.type,t))}}function kf(e){Jn?Zn?Zn.push(e):Zn=[e]:Jn=e}function Cf(){if(Jn){var e=Jn,t=Zn;if(Zn=Jn=null,yu(e),t)for(e=0;e<t.length;e++)yu(t[e])}}function Pf(e,t){return e(t)}function Rf(){}var vo=!1;function Nf(e,t,n){if(vo)return e(t,n);vo=!0;try{return Pf(e,t,n)}finally{vo=!1,(Jn!==null||Zn!==null)&&(Rf(),Cf())}}function ti(e,t){var n=e.stateNode;if(n===null)return null;var r=Gl(n);if(r===null)return null;n=r[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":(r=!r.disabled)||(e=e.type,r=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!r;break e;default:e=!1}if(e)return null;if(n&&typeof n!="function")throw Error(R(231,t,typeof n));return n}var is=!1;if(kt)try{var Tr={};Object.defineProperty(Tr,"passive",{get:function(){is=!0}}),window.addEventListener("test",Tr,Tr),window.removeEventListener("test",Tr,Tr)}catch{is=!1}function Op(e,t,n,r,i,l,o,s,a){var u=Array.prototype.slice.call(arguments,3);try{t.apply(n,u)}catch(d){this.onError(d)}}var Br=!1,vl=null,gl=!1,ls=null,_p={onError:function(e){Br=!0,vl=e}};function Mp(e,t,n,r,i,l,o,s,a){Br=!1,vl=null,Op.apply(_p,arguments)}function Lp(e,t,n,r,i,l,o,s,a){if(Mp.apply(this,arguments),Br){if(Br){var u=vl;Br=!1,vl=null}else throw Error(R(198));gl||(gl=!0,ls=u)}}function jn(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,t.flags&4098&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function Tf(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 vu(e){if(jn(e)!==e)throw Error(R(188))}function Dp(e){var t=e.alternate;if(!t){if(t=jn(e),t===null)throw Error(R(188));return t!==e?null:e}for(var n=e,r=t;;){var i=n.return;if(i===null)break;var l=i.alternate;if(l===null){if(r=i.return,r!==null){n=r;continue}break}if(i.child===l.child){for(l=i.child;l;){if(l===n)return vu(i),e;if(l===r)return vu(i),t;l=l.sibling}throw Error(R(188))}if(n.return!==r.return)n=i,r=l;else{for(var o=!1,s=i.child;s;){if(s===n){o=!0,n=i,r=l;break}if(s===r){o=!0,r=i,n=l;break}s=s.sibling}if(!o){for(s=l.child;s;){if(s===n){o=!0,n=l,r=i;break}if(s===r){o=!0,r=l,n=i;break}s=s.sibling}if(!o)throw Error(R(189))}}if(n.alternate!==r)throw Error(R(190))}if(n.tag!==3)throw Error(R(188));return n.stateNode.current===n?e:t}function Of(e){return e=Dp(e),e!==null?_f(e):null}function _f(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=_f(e);if(t!==null)return t;e=e.sibling}return null}var Mf=Ie.unstable_scheduleCallback,gu=Ie.unstable_cancelCallback,Fp=Ie.unstable_shouldYield,jp=Ie.unstable_requestPaint,ne=Ie.unstable_now,Ip=Ie.unstable_getCurrentPriorityLevel,fa=Ie.unstable_ImmediatePriority,Lf=Ie.unstable_UserBlockingPriority,wl=Ie.unstable_NormalPriority,zp=Ie.unstable_LowPriority,Df=Ie.unstable_IdlePriority,Bl=null,ft=null;function Up(e){if(ft&&typeof ft.onCommitFiberRoot=="function")try{ft.onCommitFiberRoot(Bl,e,void 0,(e.current.flags&128)===128)}catch{}}var et=Math.clz32?Math.clz32:$p,Ap=Math.log,Wp=Math.LN2;function $p(e){return e>>>=0,e===0?32:31-(Ap(e)/Wp|0)|0}var $i=64,Qi=4194304;function Wr(e){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: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 e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function xl(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,i=e.suspendedLanes,l=e.pingedLanes,o=n&268435455;if(o!==0){var s=o&~i;s!==0?r=Wr(s):(l&=o,l!==0&&(r=Wr(l)))}else o=n&~i,o!==0?r=Wr(o):l!==0&&(r=Wr(l));if(r===0)return 0;if(t!==0&&t!==r&&!(t&i)&&(i=r&-r,l=t&-t,i>=l||i===16&&(l&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0<t;)n=31-et(t),i=1<<n,r|=e[n],t&=~i;return r}function Qp(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64: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:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function Hp(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,i=e.expirationTimes,l=e.pendingLanes;0<l;){var o=31-et(l),s=1<<o,a=i[o];a===-1?(!(s&n)||s&r)&&(i[o]=Qp(s,t)):a<=t&&(e.expiredLanes|=s),l&=~s}}function os(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function Ff(){var e=$i;return $i<<=1,!($i&4194240)&&($i=64),e}function go(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Ri(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-et(t),e[t]=n}function Bp(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0<n;){var i=31-et(n),l=1<<i;t[i]=0,r[i]=-1,e[i]=-1,n&=~l}}function da(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-et(n),i=1<<r;i&t|e[r]&t&&(e[r]|=t),n&=~i}}var B=0;function jf(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var If,ha,zf,Uf,Af,ss=!1,Hi=[],Yt=null,Kt=null,Gt=null,ni=new Map,ri=new Map,Ft=[],Vp="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 submit".split(" ");function wu(e,t){switch(e){case"focusin":case"focusout":Yt=null;break;case"dragenter":case"dragleave":Kt=null;break;case"mouseover":case"mouseout":Gt=null;break;case"pointerover":case"pointerout":ni.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":ri.delete(t.pointerId)}}function Or(e,t,n,r,i,l){return e===null||e.nativeEvent!==l?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:l,targetContainers:[i]},t!==null&&(t=Ti(t),t!==null&&ha(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,i!==null&&t.indexOf(i)===-1&&t.push(i),e)}function Yp(e,t,n,r,i){switch(t){case"focusin":return Yt=Or(Yt,e,t,n,r,i),!0;case"dragenter":return Kt=Or(Kt,e,t,n,r,i),!0;case"mouseover":return Gt=Or(Gt,e,t,n,r,i),!0;case"pointerover":var l=i.pointerId;return ni.set(l,Or(ni.get(l)||null,e,t,n,r,i)),!0;case"gotpointercapture":return l=i.pointerId,ri.set(l,Or(ri.get(l)||null,e,t,n,r,i)),!0}return!1}function Wf(e){var t=dn(e.target);if(t!==null){var n=jn(t);if(n!==null){if(t=n.tag,t===13){if(t=Tf(n),t!==null){e.blockedOn=t,Af(e.priority,function(){zf(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function il(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=as(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);ns=r,n.target.dispatchEvent(r),ns=null}else return t=Ti(n),t!==null&&ha(t),e.blockedOn=n,!1;t.shift()}return!0}function xu(e,t,n){il(e)&&n.delete(t)}function Kp(){ss=!1,Yt!==null&&il(Yt)&&(Yt=null),Kt!==null&&il(Kt)&&(Kt=null),Gt!==null&&il(Gt)&&(Gt=null),ni.forEach(xu),ri.forEach(xu)}function _r(e,t){e.blockedOn===t&&(e.blockedOn=null,ss||(ss=!0,Ie.unstable_scheduleCallback(Ie.unstable_NormalPriority,Kp)))}function ii(e){function t(i){return _r(i,e)}if(0<Hi.length){_r(Hi[0],e);for(var n=1;n<Hi.length;n++){var r=Hi[n];r.blockedOn===e&&(r.blockedOn=null)}}for(Yt!==null&&_r(Yt,e),Kt!==null&&_r(Kt,e),Gt!==null&&_r(Gt,e),ni.forEach(t),ri.forEach(t),n=0;n<Ft.length;n++)r=Ft[n],r.blockedOn===e&&(r.blockedOn=null);for(;0<Ft.length&&(n=Ft[0],n.blockedOn===null);)Wf(n),n.blockedOn===null&&Ft.shift()}var er=Tt.ReactCurrentBatchConfig,Sl=!0;function Gp(e,t,n,r){var i=B,l=er.transition;er.transition=null;try{B=1,pa(e,t,n,r)}finally{B=i,er.transition=l}}function qp(e,t,n,r){var i=B,l=er.transition;er.transition=null;try{B=4,pa(e,t,n,r)}finally{B=i,er.transition=l}}function pa(e,t,n,r){if(Sl){var i=as(e,t,n,r);if(i===null)To(e,t,r,El,n),wu(e,r);else if(Yp(i,e,t,n,r))r.stopPropagation();else if(wu(e,r),t&4&&-1<Vp.indexOf(e)){for(;i!==null;){var l=Ti(i);if(l!==null&&If(l),l=as(e,t,n,r),l===null&&To(e,t,r,El,n),l===i)break;i=l}i!==null&&r.stopPropagation()}else To(e,t,r,null,n)}}var El=null;function as(e,t,n,r){if(El=null,e=ca(r),e=dn(e),e!==null)if(t=jn(e),t===null)e=null;else if(n=t.tag,n===13){if(e=Tf(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return El=e,null}function $f(e){switch(e){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"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 1;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"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(Ip()){case fa:return 1;case Lf:return 4;case wl:case zp:return 16;case Df:return 536870912;default:return 16}default:return 16}}var Bt=null,ma=null,ll=null;function Qf(){if(ll)return ll;var e,t=ma,n=t.length,r,i="value"in Bt?Bt.value:Bt.textContent,l=i.length;for(e=0;e<n&&t[e]===i[e];e++);var o=n-e;for(r=1;r<=o&&t[n-r]===i[l-r];r++);return ll=i.slice(e,1<r?1-r:void 0)}function ol(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 Bi(){return!0}function Su(){return!1}function Ue(e){function t(n,r,i,l,o){this._reactName=n,this._targetInst=i,this.type=r,this.nativeEvent=l,this.target=o,this.currentTarget=null;for(var s in e)e.hasOwnProperty(s)&&(n=e[s],this[s]=n?n(l):l[s]);return this.isDefaultPrevented=(l.defaultPrevented!=null?l.defaultPrevented:l.returnValue===!1)?Bi:Su,this.isPropagationStopped=Su,this}return J(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=Bi)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=Bi)},persist:function(){},isPersistent:Bi}),t}var kr={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},ya=Ue(kr),Ni=J({},kr,{view:0,detail:0}),bp=Ue(Ni),wo,xo,Mr,Vl=J({},Ni,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:va,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!==Mr&&(Mr&&e.type==="mousemove"?(wo=e.screenX-Mr.screenX,xo=e.screenY-Mr.screenY):xo=wo=0,Mr=e),wo)},movementY:function(e){return"movementY"in e?e.movementY:xo}}),Eu=Ue(Vl),Xp=J({},Vl,{dataTransfer:0}),Jp=Ue(Xp),Zp=J({},Ni,{relatedTarget:0}),So=Ue(Zp),em=J({},kr,{animationName:0,elapsedTime:0,pseudoElement:0}),tm=Ue(em),nm=J({},kr,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),rm=Ue(nm),im=J({},kr,{data:0}),ku=Ue(im),lm={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},om={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"},sm={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function am(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=sm[e])?!!t[e]:!1}function va(){return am}var um=J({},Ni,{key:function(e){if(e.key){var t=lm[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=ol(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?om[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:va,charCode:function(e){return e.type==="keypress"?ol(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?ol(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),cm=Ue(um),fm=J({},Vl,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Cu=Ue(fm),dm=J({},Ni,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:va}),hm=Ue(dm),pm=J({},kr,{propertyName:0,elapsedTime:0,pseudoElement:0}),mm=Ue(pm),ym=J({},Vl,{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}),vm=Ue(ym),gm=[9,13,27,32],ga=kt&&"CompositionEvent"in window,Vr=null;kt&&"documentMode"in document&&(Vr=document.documentMode);var wm=kt&&"TextEvent"in window&&!Vr,Hf=kt&&(!ga||Vr&&8<Vr&&11>=Vr),Pu=" ",Ru=!1;function Bf(e,t){switch(e){case"keyup":return gm.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Vf(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var $n=!1;function xm(e,t){switch(e){case"compositionend":return Vf(t);case"keypress":return t.which!==32?null:(Ru=!0,Pu);case"textInput":return e=t.data,e===Pu&&Ru?null:e;default:return null}}function Sm(e,t){if($n)return e==="compositionend"||!ga&&Bf(e,t)?(e=Qf(),ll=ma=Bt=null,$n=!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 Hf&&t.locale!=="ko"?null:t.data;default:return null}}var Em={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 Nu(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!Em[e.type]:t==="textarea"}function Yf(e,t,n,r){kf(r),t=kl(t,"onChange"),0<t.length&&(n=new ya("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Yr=null,li=null;function km(e){rd(e,0)}function Yl(e){var t=Bn(e);if(yf(t))return e}function Cm(e,t){if(e==="change")return t}var Kf=!1;if(kt){var Eo;if(kt){var ko="oninput"in document;if(!ko){var Tu=document.createElement("div");Tu.setAttribute("oninput","return;"),ko=typeof Tu.oninput=="function"}Eo=ko}else Eo=!1;Kf=Eo&&(!document.documentMode||9<document.documentMode)}function Ou(){Yr&&(Yr.detachEvent("onpropertychange",Gf),li=Yr=null)}function Gf(e){if(e.propertyName==="value"&&Yl(li)){var t=[];Yf(t,li,e,ca(e)),Nf(km,t)}}function Pm(e,t,n){e==="focusin"?(Ou(),Yr=t,li=n,Yr.attachEvent("onpropertychange",Gf)):e==="focusout"&&Ou()}function Rm(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Yl(li)}function Nm(e,t){if(e==="click")return Yl(t)}function Tm(e,t){if(e==="input"||e==="change")return Yl(t)}function Om(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var nt=typeof Object.is=="function"?Object.is:Om;function oi(e,t){if(nt(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var i=n[r];if(!Bo.call(t,i)||!nt(e[i],t[i]))return!1}return!0}function _u(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Mu(e,t){var n=_u(e);e=0;for(var r;n;){if(n.nodeType===3){if(r=e+n.textContent.length,e<=t&&r>=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=_u(n)}}function qf(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?qf(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function bf(){for(var e=window,t=yl();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=yl(e.document)}return t}function wa(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")}function _m(e){var t=bf(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&qf(n.ownerDocument.documentElement,n)){if(r!==null&&wa(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var i=n.textContent.length,l=Math.min(r.start,i);r=r.end===void 0?l:Math.min(r.end,i),!e.extend&&l>r&&(i=r,r=l,l=i),i=Mu(n,l);var o=Mu(n,r);i&&o&&(e.rangeCount!==1||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==o.node||e.focusOffset!==o.offset)&&(t=t.createRange(),t.setStart(i.node,i.offset),e.removeAllRanges(),l>r?(e.addRange(t),e.extend(o.node,o.offset)):(t.setEnd(o.node,o.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n<t.length;n++)e=t[n],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}}var Mm=kt&&"documentMode"in document&&11>=document.documentMode,Qn=null,us=null,Kr=null,cs=!1;function Lu(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;cs||Qn==null||Qn!==yl(r)||(r=Qn,"selectionStart"in r&&wa(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),Kr&&oi(Kr,r)||(Kr=r,r=kl(us,"onSelect"),0<r.length&&(t=new ya("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=Qn)))}function Vi(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Hn={animationend:Vi("Animation","AnimationEnd"),animationiteration:Vi("Animation","AnimationIteration"),animationstart:Vi("Animation","AnimationStart"),transitionend:Vi("Transition","TransitionEnd")},Co={},Xf={};kt&&(Xf=document.createElement("div").style,"AnimationEvent"in window||(delete Hn.animationend.animation,delete Hn.animationiteration.animation,delete Hn.animationstart.animation),"TransitionEvent"in window||delete Hn.transitionend.transition);function Kl(e){if(Co[e])return Co[e];if(!Hn[e])return e;var t=Hn[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in Xf)return Co[e]=t[n];return e}var Jf=Kl("animationend"),Zf=Kl("animationiteration"),ed=Kl("animationstart"),td=Kl("transitionend"),nd=new Map,Du="abort auxClick 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(" ");function rn(e,t){nd.set(e,t),Fn(t,[e])}for(var Po=0;Po<Du.length;Po++){var Ro=Du[Po],Lm=Ro.toLowerCase(),Dm=Ro[0].toUpperCase()+Ro.slice(1);rn(Lm,"on"+Dm)}rn(Jf,"onAnimationEnd");rn(Zf,"onAnimationIteration");rn(ed,"onAnimationStart");rn("dblclick","onDoubleClick");rn("focusin","onFocus");rn("focusout","onBlur");rn(td,"onTransitionEnd");mr("onMouseEnter",["mouseout","mouseover"]);mr("onMouseLeave",["mouseout","mouseover"]);mr("onPointerEnter",["pointerout","pointerover"]);mr("onPointerLeave",["pointerout","pointerover"]);Fn("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));Fn("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));Fn("onBeforeInput",["compositionend","keypress","textInput","paste"]);Fn("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));Fn("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));Fn("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var $r="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(" "),Fm=new Set("cancel close invalid load scroll toggle".split(" ").concat($r));function Fu(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,Lp(r,t,void 0,e),e.currentTarget=null}function rd(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var r=e[n],i=r.event;r=r.listeners;e:{var l=void 0;if(t)for(var o=r.length-1;0<=o;o--){var s=r[o],a=s.instance,u=s.currentTarget;if(s=s.listener,a!==l&&i.isPropagationStopped())break e;Fu(i,s,u),l=a}else for(o=0;o<r.length;o++){if(s=r[o],a=s.instance,u=s.currentTarget,s=s.listener,a!==l&&i.isPropagationStopped())break e;Fu(i,s,u),l=a}}}if(gl)throw e=ls,gl=!1,ls=null,e}function Y(e,t){var n=t[ms];n===void 0&&(n=t[ms]=new Set);var r=e+"__bubble";n.has(r)||(id(t,e,2,!1),n.add(r))}function No(e,t,n){var r=0;t&&(r|=4),id(n,e,r,t)}var Yi="_reactListening"+Math.random().toString(36).slice(2);function si(e){if(!e[Yi]){e[Yi]=!0,ff.forEach(function(n){n!=="selectionchange"&&(Fm.has(n)||No(n,!1,e),No(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Yi]||(t[Yi]=!0,No("selectionchange",!1,t))}}function id(e,t,n,r){switch($f(t)){case 1:var i=Gp;break;case 4:i=qp;break;default:i=pa}n=i.bind(null,t,n,e),i=void 0,!is||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(i=!0),r?i!==void 0?e.addEventListener(t,n,{capture:!0,passive:i}):e.addEventListener(t,n,!0):i!==void 0?e.addEventListener(t,n,{passive:i}):e.addEventListener(t,n,!1)}function To(e,t,n,r,i){var l=r;if(!(t&1)&&!(t&2)&&r!==null)e:for(;;){if(r===null)return;var o=r.tag;if(o===3||o===4){var s=r.stateNode.containerInfo;if(s===i||s.nodeType===8&&s.parentNode===i)break;if(o===4)for(o=r.return;o!==null;){var a=o.tag;if((a===3||a===4)&&(a=o.stateNode.containerInfo,a===i||a.nodeType===8&&a.parentNode===i))return;o=o.return}for(;s!==null;){if(o=dn(s),o===null)return;if(a=o.tag,a===5||a===6){r=l=o;continue e}s=s.parentNode}}r=r.return}Nf(function(){var u=l,d=ca(n),f=[];e:{var p=nd.get(e);if(p!==void 0){var w=ya,v=e;switch(e){case"keypress":if(ol(n)===0)break e;case"keydown":case"keyup":w=cm;break;case"focusin":v="focus",w=So;break;case"focusout":v="blur",w=So;break;case"beforeblur":case"afterblur":w=So;break;case"click":if(n.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":w=Eu;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":w=Jp;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":w=hm;break;case Jf:case Zf:case ed:w=tm;break;case td:w=mm;break;case"scroll":w=bp;break;case"wheel":w=vm;break;case"copy":case"cut":case"paste":w=rm;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":w=Cu}var x=(t&4)!==0,E=!x&&e==="scroll",h=x?p!==null?p+"Capture":null:p;x=[];for(var c=u,m;c!==null;){m=c;var g=m.stateNode;if(m.tag===5&&g!==null&&(m=g,h!==null&&(g=ti(c,h),g!=null&&x.push(ai(c,g,m)))),E)break;c=c.return}0<x.length&&(p=new w(p,v,null,n,d),f.push({event:p,listeners:x}))}}if(!(t&7)){e:{if(p=e==="mouseover"||e==="pointerover",w=e==="mouseout"||e==="pointerout",p&&n!==ns&&(v=n.relatedTarget||n.fromElement)&&(dn(v)||v[Ct]))break e;if((w||p)&&(p=d.window===d?d:(p=d.ownerDocument)?p.defaultView||p.parentWindow:window,w?(v=n.relatedTarget||n.toElement,w=u,v=v?dn(v):null,v!==null&&(E=jn(v),v!==E||v.tag!==5&&v.tag!==6)&&(v=null)):(w=null,v=u),w!==v)){if(x=Eu,g="onMouseLeave",h="onMouseEnter",c="mouse",(e==="pointerout"||e==="pointerover")&&(x=Cu,g="onPointerLeave",h="onPointerEnter",c="pointer"),E=w==null?p:Bn(w),m=v==null?p:Bn(v),p=new x(g,c+"leave",w,n,d),p.target=E,p.relatedTarget=m,g=null,dn(d)===u&&(x=new x(h,c+"enter",v,n,d),x.target=m,x.relatedTarget=E,g=x),E=g,w&&v)t:{for(x=w,h=v,c=0,m=x;m;m=zn(m))c++;for(m=0,g=h;g;g=zn(g))m++;for(;0<c-m;)x=zn(x),c--;for(;0<m-c;)h=zn(h),m--;for(;c--;){if(x===h||h!==null&&x===h.alternate)break t;x=zn(x),h=zn(h)}x=null}else x=null;w!==null&&ju(f,p,w,x,!1),v!==null&&E!==null&&ju(f,E,v,x,!0)}}e:{if(p=u?Bn(u):window,w=p.nodeName&&p.nodeName.toLowerCase(),w==="select"||w==="input"&&p.type==="file")var C=Cm;else if(Nu(p))if(Kf)C=Tm;else{C=Rm;var P=Pm}else(w=p.nodeName)&&w.toLowerCase()==="input"&&(p.type==="checkbox"||p.type==="radio")&&(C=Nm);if(C&&(C=C(e,u))){Yf(f,C,n,d);break e}P&&P(e,p,u),e==="focusout"&&(P=p._wrapperState)&&P.controlled&&p.type==="number"&&Xo(p,"number",p.value)}switch(P=u?Bn(u):window,e){case"focusin":(Nu(P)||P.contentEditable==="true")&&(Qn=P,us=u,Kr=null);break;case"focusout":Kr=us=Qn=null;break;case"mousedown":cs=!0;break;case"contextmenu":case"mouseup":case"dragend":cs=!1,Lu(f,n,d);break;case"selectionchange":if(Mm)break;case"keydown":case"keyup":Lu(f,n,d)}var N;if(ga)e:{switch(e){case"compositionstart":var T="onCompositionStart";break e;case"compositionend":T="onCompositionEnd";break e;case"compositionupdate":T="onCompositionUpdate";break e}T=void 0}else $n?Bf(e,n)&&(T="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(T="onCompositionStart");T&&(Hf&&n.locale!=="ko"&&($n||T!=="onCompositionStart"?T==="onCompositionEnd"&&$n&&(N=Qf()):(Bt=d,ma="value"in Bt?Bt.value:Bt.textContent,$n=!0)),P=kl(u,T),0<P.length&&(T=new ku(T,e,null,n,d),f.push({event:T,listeners:P}),N?T.data=N:(N=Vf(n),N!==null&&(T.data=N)))),(N=wm?xm(e,n):Sm(e,n))&&(u=kl(u,"onBeforeInput"),0<u.length&&(d=new ku("onBeforeInput","beforeinput",null,n,d),f.push({event:d,listeners:u}),d.data=N))}rd(f,t)})}function ai(e,t,n){return{instance:e,listener:t,currentTarget:n}}function kl(e,t){for(var n=t+"Capture",r=[];e!==null;){var i=e,l=i.stateNode;i.tag===5&&l!==null&&(i=l,l=ti(e,n),l!=null&&r.unshift(ai(e,l,i)),l=ti(e,t),l!=null&&r.push(ai(e,l,i))),e=e.return}return r}function zn(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function ju(e,t,n,r,i){for(var l=t._reactName,o=[];n!==null&&n!==r;){var s=n,a=s.alternate,u=s.stateNode;if(a!==null&&a===r)break;s.tag===5&&u!==null&&(s=u,i?(a=ti(n,l),a!=null&&o.unshift(ai(n,a,s))):i||(a=ti(n,l),a!=null&&o.push(ai(n,a,s)))),n=n.return}o.length!==0&&e.push({event:t,listeners:o})}var jm=/\r\n?/g,Im=/\u0000|\uFFFD/g;function Iu(e){return(typeof e=="string"?e:""+e).replace(jm,`
38
+ `).replace(Im,"")}function Ki(e,t,n){if(t=Iu(t),Iu(e)!==t&&n)throw Error(R(425))}function Cl(){}var fs=null,ds=null;function hs(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var ps=typeof setTimeout=="function"?setTimeout:void 0,zm=typeof clearTimeout=="function"?clearTimeout:void 0,zu=typeof Promise=="function"?Promise:void 0,Um=typeof queueMicrotask=="function"?queueMicrotask:typeof zu<"u"?function(e){return zu.resolve(null).then(e).catch(Am)}:ps;function Am(e){setTimeout(function(){throw e})}function Oo(e,t){var n=t,r=0;do{var i=n.nextSibling;if(e.removeChild(n),i&&i.nodeType===8)if(n=i.data,n==="/$"){if(r===0){e.removeChild(i),ii(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=i}while(n);ii(t)}function qt(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==="$?")break;if(t==="/$")return null}}return e}function Uu(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"){if(t===0)return e;t--}else n==="/$"&&t++}e=e.previousSibling}return null}var Cr=Math.random().toString(36).slice(2),ct="__reactFiber$"+Cr,ui="__reactProps$"+Cr,Ct="__reactContainer$"+Cr,ms="__reactEvents$"+Cr,Wm="__reactListeners$"+Cr,$m="__reactHandles$"+Cr;function dn(e){var t=e[ct];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Ct]||n[ct]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=Uu(e);e!==null;){if(n=e[ct])return n;e=Uu(e)}return t}e=n,n=e.parentNode}return null}function Ti(e){return e=e[ct]||e[Ct],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function Bn(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(R(33))}function Gl(e){return e[ui]||null}var ys=[],Vn=-1;function ln(e){return{current:e}}function K(e){0>Vn||(e.current=ys[Vn],ys[Vn]=null,Vn--)}function V(e,t){Vn++,ys[Vn]=e.current,e.current=t}var nn={},ge=ln(nn),_e=ln(!1),Nn=nn;function yr(e,t){var n=e.type.contextTypes;if(!n)return nn;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i={},l;for(l in n)i[l]=t[l];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function Me(e){return e=e.childContextTypes,e!=null}function Pl(){K(_e),K(ge)}function Au(e,t,n){if(ge.current!==nn)throw Error(R(168));V(ge,t),V(_e,n)}function ld(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var i in r)if(!(i in t))throw Error(R(108,Pp(e)||"Unknown",i));return J({},n,r)}function Rl(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||nn,Nn=ge.current,V(ge,e),V(_e,_e.current),!0}function Wu(e,t,n){var r=e.stateNode;if(!r)throw Error(R(169));n?(e=ld(e,t,Nn),r.__reactInternalMemoizedMergedChildContext=e,K(_e),K(ge),V(ge,e)):K(_e),V(_e,n)}var yt=null,ql=!1,_o=!1;function od(e){yt===null?yt=[e]:yt.push(e)}function Qm(e){ql=!0,od(e)}function on(){if(!_o&&yt!==null){_o=!0;var e=0,t=B;try{var n=yt;for(B=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}yt=null,ql=!1}catch(i){throw yt!==null&&(yt=yt.slice(e+1)),Mf(fa,on),i}finally{B=t,_o=!1}}return null}var Yn=[],Kn=0,Nl=null,Tl=0,$e=[],Qe=0,Tn=null,wt=1,xt="";function un(e,t){Yn[Kn++]=Tl,Yn[Kn++]=Nl,Nl=e,Tl=t}function sd(e,t,n){$e[Qe++]=wt,$e[Qe++]=xt,$e[Qe++]=Tn,Tn=e;var r=wt;e=xt;var i=32-et(r)-1;r&=~(1<<i),n+=1;var l=32-et(t)+i;if(30<l){var o=i-i%5;l=(r&(1<<o)-1).toString(32),r>>=o,i-=o,wt=1<<32-et(t)+i|n<<i|r,xt=l+e}else wt=1<<l|n<<i|r,xt=e}function xa(e){e.return!==null&&(un(e,1),sd(e,1,0))}function Sa(e){for(;e===Nl;)Nl=Yn[--Kn],Yn[Kn]=null,Tl=Yn[--Kn],Yn[Kn]=null;for(;e===Tn;)Tn=$e[--Qe],$e[Qe]=null,xt=$e[--Qe],$e[Qe]=null,wt=$e[--Qe],$e[Qe]=null}var je=null,Fe=null,G=!1,Ze=null;function ad(e,t){var n=He(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,t=e.deletions,t===null?(e.deletions=[n],e.flags|=16):t.push(n)}function $u(e,t){switch(e.tag){case 5:var n=e.type;return t=t.nodeType!==1||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(e.stateNode=t,je=e,Fe=qt(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,je=e,Fe=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(n=Tn!==null?{id:wt,overflow:xt}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=He(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,je=e,Fe=null,!0):!1;default:return!1}}function vs(e){return(e.mode&1)!==0&&(e.flags&128)===0}function gs(e){if(G){var t=Fe;if(t){var n=t;if(!$u(e,t)){if(vs(e))throw Error(R(418));t=qt(n.nextSibling);var r=je;t&&$u(e,t)?ad(r,n):(e.flags=e.flags&-4097|2,G=!1,je=e)}}else{if(vs(e))throw Error(R(418));e.flags=e.flags&-4097|2,G=!1,je=e}}}function Qu(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;je=e}function Gi(e){if(e!==je)return!1;if(!G)return Qu(e),G=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!hs(e.type,e.memoizedProps)),t&&(t=Fe)){if(vs(e))throw ud(),Error(R(418));for(;t;)ad(e,t),t=qt(t.nextSibling)}if(Qu(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(R(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"){if(t===0){Fe=qt(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++}e=e.nextSibling}Fe=null}}else Fe=je?qt(e.stateNode.nextSibling):null;return!0}function ud(){for(var e=Fe;e;)e=qt(e.nextSibling)}function vr(){Fe=je=null,G=!1}function Ea(e){Ze===null?Ze=[e]:Ze.push(e)}var Hm=Tt.ReactCurrentBatchConfig;function Lr(e,t,n){if(e=n.ref,e!==null&&typeof e!="function"&&typeof e!="object"){if(n._owner){if(n=n._owner,n){if(n.tag!==1)throw Error(R(309));var r=n.stateNode}if(!r)throw Error(R(147,e));var i=r,l=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===l?t.ref:(t=function(o){var s=i.refs;o===null?delete s[l]:s[l]=o},t._stringRef=l,t)}if(typeof e!="string")throw Error(R(284));if(!n._owner)throw Error(R(290,e))}return e}function qi(e,t){throw e=Object.prototype.toString.call(t),Error(R(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function Hu(e){var t=e._init;return t(e._payload)}function cd(e){function t(h,c){if(e){var m=h.deletions;m===null?(h.deletions=[c],h.flags|=16):m.push(c)}}function n(h,c){if(!e)return null;for(;c!==null;)t(h,c),c=c.sibling;return null}function r(h,c){for(h=new Map;c!==null;)c.key!==null?h.set(c.key,c):h.set(c.index,c),c=c.sibling;return h}function i(h,c){return h=Zt(h,c),h.index=0,h.sibling=null,h}function l(h,c,m){return h.index=m,e?(m=h.alternate,m!==null?(m=m.index,m<c?(h.flags|=2,c):m):(h.flags|=2,c)):(h.flags|=1048576,c)}function o(h){return e&&h.alternate===null&&(h.flags|=2),h}function s(h,c,m,g){return c===null||c.tag!==6?(c=zo(m,h.mode,g),c.return=h,c):(c=i(c,m),c.return=h,c)}function a(h,c,m,g){var C=m.type;return C===Wn?d(h,c,m.props.children,g,m.key):c!==null&&(c.elementType===C||typeof C=="object"&&C!==null&&C.$$typeof===Lt&&Hu(C)===c.type)?(g=i(c,m.props),g.ref=Lr(h,c,m),g.return=h,g):(g=hl(m.type,m.key,m.props,null,h.mode,g),g.ref=Lr(h,c,m),g.return=h,g)}function u(h,c,m,g){return c===null||c.tag!==4||c.stateNode.containerInfo!==m.containerInfo||c.stateNode.implementation!==m.implementation?(c=Uo(m,h.mode,g),c.return=h,c):(c=i(c,m.children||[]),c.return=h,c)}function d(h,c,m,g,C){return c===null||c.tag!==7?(c=Rn(m,h.mode,g,C),c.return=h,c):(c=i(c,m),c.return=h,c)}function f(h,c,m){if(typeof c=="string"&&c!==""||typeof c=="number")return c=zo(""+c,h.mode,m),c.return=h,c;if(typeof c=="object"&&c!==null){switch(c.$$typeof){case Ui:return m=hl(c.type,c.key,c.props,null,h.mode,m),m.ref=Lr(h,null,c),m.return=h,m;case An:return c=Uo(c,h.mode,m),c.return=h,c;case Lt:var g=c._init;return f(h,g(c._payload),m)}if(Ar(c)||Nr(c))return c=Rn(c,h.mode,m,null),c.return=h,c;qi(h,c)}return null}function p(h,c,m,g){var C=c!==null?c.key:null;if(typeof m=="string"&&m!==""||typeof m=="number")return C!==null?null:s(h,c,""+m,g);if(typeof m=="object"&&m!==null){switch(m.$$typeof){case Ui:return m.key===C?a(h,c,m,g):null;case An:return m.key===C?u(h,c,m,g):null;case Lt:return C=m._init,p(h,c,C(m._payload),g)}if(Ar(m)||Nr(m))return C!==null?null:d(h,c,m,g,null);qi(h,m)}return null}function w(h,c,m,g,C){if(typeof g=="string"&&g!==""||typeof g=="number")return h=h.get(m)||null,s(c,h,""+g,C);if(typeof g=="object"&&g!==null){switch(g.$$typeof){case Ui:return h=h.get(g.key===null?m:g.key)||null,a(c,h,g,C);case An:return h=h.get(g.key===null?m:g.key)||null,u(c,h,g,C);case Lt:var P=g._init;return w(h,c,m,P(g._payload),C)}if(Ar(g)||Nr(g))return h=h.get(m)||null,d(c,h,g,C,null);qi(c,g)}return null}function v(h,c,m,g){for(var C=null,P=null,N=c,T=c=0,F=null;N!==null&&T<m.length;T++){N.index>T?(F=N,N=null):F=N.sibling;var O=p(h,N,m[T],g);if(O===null){N===null&&(N=F);break}e&&N&&O.alternate===null&&t(h,N),c=l(O,c,T),P===null?C=O:P.sibling=O,P=O,N=F}if(T===m.length)return n(h,N),G&&un(h,T),C;if(N===null){for(;T<m.length;T++)N=f(h,m[T],g),N!==null&&(c=l(N,c,T),P===null?C=N:P.sibling=N,P=N);return G&&un(h,T),C}for(N=r(h,N);T<m.length;T++)F=w(N,h,T,m[T],g),F!==null&&(e&&F.alternate!==null&&N.delete(F.key===null?T:F.key),c=l(F,c,T),P===null?C=F:P.sibling=F,P=F);return e&&N.forEach(function(U){return t(h,U)}),G&&un(h,T),C}function x(h,c,m,g){var C=Nr(m);if(typeof C!="function")throw Error(R(150));if(m=C.call(m),m==null)throw Error(R(151));for(var P=C=null,N=c,T=c=0,F=null,O=m.next();N!==null&&!O.done;T++,O=m.next()){N.index>T?(F=N,N=null):F=N.sibling;var U=p(h,N,O.value,g);if(U===null){N===null&&(N=F);break}e&&N&&U.alternate===null&&t(h,N),c=l(U,c,T),P===null?C=U:P.sibling=U,P=U,N=F}if(O.done)return n(h,N),G&&un(h,T),C;if(N===null){for(;!O.done;T++,O=m.next())O=f(h,O.value,g),O!==null&&(c=l(O,c,T),P===null?C=O:P.sibling=O,P=O);return G&&un(h,T),C}for(N=r(h,N);!O.done;T++,O=m.next())O=w(N,h,T,O.value,g),O!==null&&(e&&O.alternate!==null&&N.delete(O.key===null?T:O.key),c=l(O,c,T),P===null?C=O:P.sibling=O,P=O);return e&&N.forEach(function(oe){return t(h,oe)}),G&&un(h,T),C}function E(h,c,m,g){if(typeof m=="object"&&m!==null&&m.type===Wn&&m.key===null&&(m=m.props.children),typeof m=="object"&&m!==null){switch(m.$$typeof){case Ui:e:{for(var C=m.key,P=c;P!==null;){if(P.key===C){if(C=m.type,C===Wn){if(P.tag===7){n(h,P.sibling),c=i(P,m.props.children),c.return=h,h=c;break e}}else if(P.elementType===C||typeof C=="object"&&C!==null&&C.$$typeof===Lt&&Hu(C)===P.type){n(h,P.sibling),c=i(P,m.props),c.ref=Lr(h,P,m),c.return=h,h=c;break e}n(h,P);break}else t(h,P);P=P.sibling}m.type===Wn?(c=Rn(m.props.children,h.mode,g,m.key),c.return=h,h=c):(g=hl(m.type,m.key,m.props,null,h.mode,g),g.ref=Lr(h,c,m),g.return=h,h=g)}return o(h);case An:e:{for(P=m.key;c!==null;){if(c.key===P)if(c.tag===4&&c.stateNode.containerInfo===m.containerInfo&&c.stateNode.implementation===m.implementation){n(h,c.sibling),c=i(c,m.children||[]),c.return=h,h=c;break e}else{n(h,c);break}else t(h,c);c=c.sibling}c=Uo(m,h.mode,g),c.return=h,h=c}return o(h);case Lt:return P=m._init,E(h,c,P(m._payload),g)}if(Ar(m))return v(h,c,m,g);if(Nr(m))return x(h,c,m,g);qi(h,m)}return typeof m=="string"&&m!==""||typeof m=="number"?(m=""+m,c!==null&&c.tag===6?(n(h,c.sibling),c=i(c,m),c.return=h,h=c):(n(h,c),c=zo(m,h.mode,g),c.return=h,h=c),o(h)):n(h,c)}return E}var gr=cd(!0),fd=cd(!1),Ol=ln(null),_l=null,Gn=null,ka=null;function Ca(){ka=Gn=_l=null}function Pa(e){var t=Ol.current;K(Ol),e._currentValue=t}function ws(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function tr(e,t){_l=e,ka=Gn=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(Oe=!0),e.firstContext=null)}function Ve(e){var t=e._currentValue;if(ka!==e)if(e={context:e,memoizedValue:t,next:null},Gn===null){if(_l===null)throw Error(R(308));Gn=e,_l.dependencies={lanes:0,firstContext:e}}else Gn=Gn.next=e;return t}var hn=null;function Ra(e){hn===null?hn=[e]:hn.push(e)}function dd(e,t,n,r){var i=t.interleaved;return i===null?(n.next=n,Ra(t)):(n.next=i.next,i.next=n),t.interleaved=n,Pt(e,r)}function Pt(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var Dt=!1;function Na(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function hd(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function St(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function bt(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,$&2){var i=r.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),r.pending=t,Pt(e,n)}return i=r.interleaved,i===null?(t.next=t,Ra(r)):(t.next=i.next,i.next=t),r.interleaved=t,Pt(e,n)}function sl(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,da(e,n)}}function Bu(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var i=null,l=null;if(n=n.firstBaseUpdate,n!==null){do{var o={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};l===null?i=l=o:l=l.next=o,n=n.next}while(n!==null);l===null?i=l=t:l=l.next=t}else i=l=t;n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:l,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function Ml(e,t,n,r){var i=e.updateQueue;Dt=!1;var l=i.firstBaseUpdate,o=i.lastBaseUpdate,s=i.shared.pending;if(s!==null){i.shared.pending=null;var a=s,u=a.next;a.next=null,o===null?l=u:o.next=u,o=a;var d=e.alternate;d!==null&&(d=d.updateQueue,s=d.lastBaseUpdate,s!==o&&(s===null?d.firstBaseUpdate=u:s.next=u,d.lastBaseUpdate=a))}if(l!==null){var f=i.baseState;o=0,d=u=a=null,s=l;do{var p=s.lane,w=s.eventTime;if((r&p)===p){d!==null&&(d=d.next={eventTime:w,lane:0,tag:s.tag,payload:s.payload,callback:s.callback,next:null});e:{var v=e,x=s;switch(p=t,w=n,x.tag){case 1:if(v=x.payload,typeof v=="function"){f=v.call(w,f,p);break e}f=v;break e;case 3:v.flags=v.flags&-65537|128;case 0:if(v=x.payload,p=typeof v=="function"?v.call(w,f,p):v,p==null)break e;f=J({},f,p);break e;case 2:Dt=!0}}s.callback!==null&&s.lane!==0&&(e.flags|=64,p=i.effects,p===null?i.effects=[s]:p.push(s))}else w={eventTime:w,lane:p,tag:s.tag,payload:s.payload,callback:s.callback,next:null},d===null?(u=d=w,a=f):d=d.next=w,o|=p;if(s=s.next,s===null){if(s=i.shared.pending,s===null)break;p=s,s=p.next,p.next=null,i.lastBaseUpdate=p,i.shared.pending=null}}while(!0);if(d===null&&(a=f),i.baseState=a,i.firstBaseUpdate=u,i.lastBaseUpdate=d,t=i.shared.interleaved,t!==null){i=t;do o|=i.lane,i=i.next;while(i!==t)}else l===null&&(i.shared.lanes=0);_n|=o,e.lanes=o,e.memoizedState=f}}function Vu(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var r=e[t],i=r.callback;if(i!==null){if(r.callback=null,r=n,typeof i!="function")throw Error(R(191,i));i.call(r)}}}var Oi={},dt=ln(Oi),ci=ln(Oi),fi=ln(Oi);function pn(e){if(e===Oi)throw Error(R(174));return e}function Ta(e,t){switch(V(fi,t),V(ci,e),V(dt,Oi),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Zo(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=Zo(t,e)}K(dt),V(dt,t)}function wr(){K(dt),K(ci),K(fi)}function pd(e){pn(fi.current);var t=pn(dt.current),n=Zo(t,e.type);t!==n&&(V(ci,e),V(dt,n))}function Oa(e){ci.current===e&&(K(dt),K(ci))}var q=ln(0);function Ll(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var Mo=[];function _a(){for(var e=0;e<Mo.length;e++)Mo[e]._workInProgressVersionPrimary=null;Mo.length=0}var al=Tt.ReactCurrentDispatcher,Lo=Tt.ReactCurrentBatchConfig,On=0,b=null,ie=null,ue=null,Dl=!1,Gr=!1,di=0,Bm=0;function me(){throw Error(R(321))}function Ma(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!nt(e[n],t[n]))return!1;return!0}function La(e,t,n,r,i,l){if(On=l,b=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,al.current=e===null||e.memoizedState===null?Gm:qm,e=n(r,i),Gr){l=0;do{if(Gr=!1,di=0,25<=l)throw Error(R(301));l+=1,ue=ie=null,t.updateQueue=null,al.current=bm,e=n(r,i)}while(Gr)}if(al.current=Fl,t=ie!==null&&ie.next!==null,On=0,ue=ie=b=null,Dl=!1,t)throw Error(R(300));return e}function Da(){var e=di!==0;return di=0,e}function ot(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return ue===null?b.memoizedState=ue=e:ue=ue.next=e,ue}function Ye(){if(ie===null){var e=b.alternate;e=e!==null?e.memoizedState:null}else e=ie.next;var t=ue===null?b.memoizedState:ue.next;if(t!==null)ue=t,ie=e;else{if(e===null)throw Error(R(310));ie=e,e={memoizedState:ie.memoizedState,baseState:ie.baseState,baseQueue:ie.baseQueue,queue:ie.queue,next:null},ue===null?b.memoizedState=ue=e:ue=ue.next=e}return ue}function hi(e,t){return typeof t=="function"?t(e):t}function Do(e){var t=Ye(),n=t.queue;if(n===null)throw Error(R(311));n.lastRenderedReducer=e;var r=ie,i=r.baseQueue,l=n.pending;if(l!==null){if(i!==null){var o=i.next;i.next=l.next,l.next=o}r.baseQueue=i=l,n.pending=null}if(i!==null){l=i.next,r=r.baseState;var s=o=null,a=null,u=l;do{var d=u.lane;if((On&d)===d)a!==null&&(a=a.next={lane:0,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),r=u.hasEagerState?u.eagerState:e(r,u.action);else{var f={lane:d,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null};a===null?(s=a=f,o=r):a=a.next=f,b.lanes|=d,_n|=d}u=u.next}while(u!==null&&u!==l);a===null?o=r:a.next=s,nt(r,t.memoizedState)||(Oe=!0),t.memoizedState=r,t.baseState=o,t.baseQueue=a,n.lastRenderedState=r}if(e=n.interleaved,e!==null){i=e;do l=i.lane,b.lanes|=l,_n|=l,i=i.next;while(i!==e)}else i===null&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function Fo(e){var t=Ye(),n=t.queue;if(n===null)throw Error(R(311));n.lastRenderedReducer=e;var r=n.dispatch,i=n.pending,l=t.memoizedState;if(i!==null){n.pending=null;var o=i=i.next;do l=e(l,o.action),o=o.next;while(o!==i);nt(l,t.memoizedState)||(Oe=!0),t.memoizedState=l,t.baseQueue===null&&(t.baseState=l),n.lastRenderedState=l}return[l,r]}function md(){}function yd(e,t){var n=b,r=Ye(),i=t(),l=!nt(r.memoizedState,i);if(l&&(r.memoizedState=i,Oe=!0),r=r.queue,Fa(wd.bind(null,n,r,e),[e]),r.getSnapshot!==t||l||ue!==null&&ue.memoizedState.tag&1){if(n.flags|=2048,pi(9,gd.bind(null,n,r,i,t),void 0,null),ce===null)throw Error(R(349));On&30||vd(n,t,i)}return i}function vd(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=b.updateQueue,t===null?(t={lastEffect:null,stores:null},b.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function gd(e,t,n,r){t.value=n,t.getSnapshot=r,xd(t)&&Sd(e)}function wd(e,t,n){return n(function(){xd(t)&&Sd(e)})}function xd(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!nt(e,n)}catch{return!0}}function Sd(e){var t=Pt(e,1);t!==null&&tt(t,e,1,-1)}function Yu(e){var t=ot();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:hi,lastRenderedState:e},t.queue=e,e=e.dispatch=Km.bind(null,b,e),[t.memoizedState,e]}function pi(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},t=b.updateQueue,t===null?(t={lastEffect:null,stores:null},b.updateQueue=t,t.lastEffect=e.next=e):(n=t.lastEffect,n===null?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e)),e}function Ed(){return Ye().memoizedState}function ul(e,t,n,r){var i=ot();b.flags|=e,i.memoizedState=pi(1|t,n,void 0,r===void 0?null:r)}function bl(e,t,n,r){var i=Ye();r=r===void 0?null:r;var l=void 0;if(ie!==null){var o=ie.memoizedState;if(l=o.destroy,r!==null&&Ma(r,o.deps)){i.memoizedState=pi(t,n,l,r);return}}b.flags|=e,i.memoizedState=pi(1|t,n,l,r)}function Ku(e,t){return ul(8390656,8,e,t)}function Fa(e,t){return bl(2048,8,e,t)}function kd(e,t){return bl(4,2,e,t)}function Cd(e,t){return bl(4,4,e,t)}function Pd(e,t){if(typeof t=="function")return e=e(),t(e),function(){t(null)};if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function Rd(e,t,n){return n=n!=null?n.concat([e]):null,bl(4,4,Pd.bind(null,t,e),n)}function ja(){}function Nd(e,t){var n=Ye();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&Ma(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function Td(e,t){var n=Ye();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&Ma(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function Od(e,t,n){return On&21?(nt(n,t)||(n=Ff(),b.lanes|=n,_n|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,Oe=!0),e.memoizedState=n)}function Vm(e,t){var n=B;B=n!==0&&4>n?n:4,e(!0);var r=Lo.transition;Lo.transition={};try{e(!1),t()}finally{B=n,Lo.transition=r}}function _d(){return Ye().memoizedState}function Ym(e,t,n){var r=Jt(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},Md(e))Ld(t,n);else if(n=dd(e,t,n,r),n!==null){var i=Ee();tt(n,e,r,i),Dd(n,t,r)}}function Km(e,t,n){var r=Jt(e),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(Md(e))Ld(t,i);else{var l=e.alternate;if(e.lanes===0&&(l===null||l.lanes===0)&&(l=t.lastRenderedReducer,l!==null))try{var o=t.lastRenderedState,s=l(o,n);if(i.hasEagerState=!0,i.eagerState=s,nt(s,o)){var a=t.interleaved;a===null?(i.next=i,Ra(t)):(i.next=a.next,a.next=i),t.interleaved=i;return}}catch{}finally{}n=dd(e,t,i,r),n!==null&&(i=Ee(),tt(n,e,r,i),Dd(n,t,r))}}function Md(e){var t=e.alternate;return e===b||t!==null&&t===b}function Ld(e,t){Gr=Dl=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Dd(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,da(e,n)}}var Fl={readContext:Ve,useCallback:me,useContext:me,useEffect:me,useImperativeHandle:me,useInsertionEffect:me,useLayoutEffect:me,useMemo:me,useReducer:me,useRef:me,useState:me,useDebugValue:me,useDeferredValue:me,useTransition:me,useMutableSource:me,useSyncExternalStore:me,useId:me,unstable_isNewReconciler:!1},Gm={readContext:Ve,useCallback:function(e,t){return ot().memoizedState=[e,t===void 0?null:t],e},useContext:Ve,useEffect:Ku,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,ul(4194308,4,Pd.bind(null,t,e),n)},useLayoutEffect:function(e,t){return ul(4194308,4,e,t)},useInsertionEffect:function(e,t){return ul(4,2,e,t)},useMemo:function(e,t){var n=ot();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=ot();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=Ym.bind(null,b,e),[r.memoizedState,e]},useRef:function(e){var t=ot();return e={current:e},t.memoizedState=e},useState:Yu,useDebugValue:ja,useDeferredValue:function(e){return ot().memoizedState=e},useTransition:function(){var e=Yu(!1),t=e[0];return e=Vm.bind(null,e[1]),ot().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=b,i=ot();if(G){if(n===void 0)throw Error(R(407));n=n()}else{if(n=t(),ce===null)throw Error(R(349));On&30||vd(r,t,n)}i.memoizedState=n;var l={value:n,getSnapshot:t};return i.queue=l,Ku(wd.bind(null,r,l,e),[e]),r.flags|=2048,pi(9,gd.bind(null,r,l,n,t),void 0,null),n},useId:function(){var e=ot(),t=ce.identifierPrefix;if(G){var n=xt,r=wt;n=(r&~(1<<32-et(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=di++,0<n&&(t+="H"+n.toString(32)),t+=":"}else n=Bm++,t=":"+t+"r"+n.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},qm={readContext:Ve,useCallback:Nd,useContext:Ve,useEffect:Fa,useImperativeHandle:Rd,useInsertionEffect:kd,useLayoutEffect:Cd,useMemo:Td,useReducer:Do,useRef:Ed,useState:function(){return Do(hi)},useDebugValue:ja,useDeferredValue:function(e){var t=Ye();return Od(t,ie.memoizedState,e)},useTransition:function(){var e=Do(hi)[0],t=Ye().memoizedState;return[e,t]},useMutableSource:md,useSyncExternalStore:yd,useId:_d,unstable_isNewReconciler:!1},bm={readContext:Ve,useCallback:Nd,useContext:Ve,useEffect:Fa,useImperativeHandle:Rd,useInsertionEffect:kd,useLayoutEffect:Cd,useMemo:Td,useReducer:Fo,useRef:Ed,useState:function(){return Fo(hi)},useDebugValue:ja,useDeferredValue:function(e){var t=Ye();return ie===null?t.memoizedState=e:Od(t,ie.memoizedState,e)},useTransition:function(){var e=Fo(hi)[0],t=Ye().memoizedState;return[e,t]},useMutableSource:md,useSyncExternalStore:yd,useId:_d,unstable_isNewReconciler:!1};function qe(e,t){if(e&&e.defaultProps){t=J({},t),e=e.defaultProps;for(var n in e)t[n]===void 0&&(t[n]=e[n]);return t}return t}function xs(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:J({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var Xl={isMounted:function(e){return(e=e._reactInternals)?jn(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=Ee(),i=Jt(e),l=St(r,i);l.payload=t,n!=null&&(l.callback=n),t=bt(e,l,i),t!==null&&(tt(t,e,i,r),sl(t,e,i))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=Ee(),i=Jt(e),l=St(r,i);l.tag=1,l.payload=t,n!=null&&(l.callback=n),t=bt(e,l,i),t!==null&&(tt(t,e,i,r),sl(t,e,i))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=Ee(),r=Jt(e),i=St(n,r);i.tag=2,t!=null&&(i.callback=t),t=bt(e,i,r),t!==null&&(tt(t,e,r,n),sl(t,e,r))}};function Gu(e,t,n,r,i,l,o){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(r,l,o):t.prototype&&t.prototype.isPureReactComponent?!oi(n,r)||!oi(i,l):!0}function Fd(e,t,n){var r=!1,i=nn,l=t.contextType;return typeof l=="object"&&l!==null?l=Ve(l):(i=Me(t)?Nn:ge.current,r=t.contextTypes,l=(r=r!=null)?yr(e,i):nn),t=new t(n,l),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=Xl,e.stateNode=t,t._reactInternals=e,r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=i,e.__reactInternalMemoizedMaskedChildContext=l),t}function qu(e,t,n,r){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,r),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&Xl.enqueueReplaceState(t,t.state,null)}function Ss(e,t,n,r){var i=e.stateNode;i.props=n,i.state=e.memoizedState,i.refs={},Na(e);var l=t.contextType;typeof l=="object"&&l!==null?i.context=Ve(l):(l=Me(t)?Nn:ge.current,i.context=yr(e,l)),i.state=e.memoizedState,l=t.getDerivedStateFromProps,typeof l=="function"&&(xs(e,t,l,n),i.state=e.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof i.getSnapshotBeforeUpdate=="function"||typeof i.UNSAFE_componentWillMount!="function"&&typeof i.componentWillMount!="function"||(t=i.state,typeof i.componentWillMount=="function"&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount=="function"&&i.UNSAFE_componentWillMount(),t!==i.state&&Xl.enqueueReplaceState(i,i.state,null),Ml(e,n,i,r),i.state=e.memoizedState),typeof i.componentDidMount=="function"&&(e.flags|=4194308)}function xr(e,t){try{var n="",r=t;do n+=Cp(r),r=r.return;while(r);var i=n}catch(l){i=`
39
39
  Error generating stack: `+l.message+`
40
- `+l.stack}return{value:e,source:t,stack:i,digest:null}}function jo(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function Es(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var bm=typeof WeakMap=="function"?WeakMap:Map;function jd(e,t,n){n=St(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Il||(Il=!0,Ls=r),Es(e,t)},n}function Id(e,t,n){n=St(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var i=t.value;n.payload=function(){return r(i)},n.callback=function(){Es(e,t)}}var l=e.stateNode;return l!==null&&typeof l.componentDidCatch=="function"&&(n.callback=function(){Es(e,t),typeof r!="function"&&(bt===null?bt=new Set([this]):bt.add(this));var o=t.stack;this.componentDidCatch(t.value,{componentStack:o!==null?o:""})}),n}function Xu(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new bm;var i=new Set;r.set(t,i)}else i=r.get(t),i===void 0&&(i=new Set,r.set(t,i));i.has(n)||(i.add(n),e=fy.bind(null,e,t,n),t.then(e,e))}function bu(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t!==null?t.dehydrated!==null:!0),t)return e;e=e.return}while(e!==null);return null}function Ju(e,t,n,r,i){return e.mode&1?(e.flags|=65536,e.lanes=i,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(t=St(-1,1),t.tag=2,Xt(n,t,1))),n.lanes|=1),e)}var Jm=Tt.ReactCurrentOwner,Ne=!1;function xe(e,t,n,r){t.child=e===null?fd(t,null,n,r):vr(t,e.child,n,r)}function Zu(e,t,n,r,i){n=n.render;var l=t.ref;return tr(t,i),r=La(e,t,n,r,l,i),n=Da(),e!==null&&!Ne?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,Rt(e,t,i)):(G&&n&&xa(t),t.flags|=1,xe(e,t,r,i),t.child)}function ec(e,t,n,r,i){if(e===null){var l=n.type;return typeof l=="function"&&!Ha(l)&&l.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=l,zd(e,t,l,r,i)):(e=hl(n.type,null,r,t,t.mode,i),e.ref=t.ref,e.return=t,t.child=e)}if(l=e.child,!(e.lanes&i)){var o=l.memoizedProps;if(n=n.compare,n=n!==null?n:oi,n(o,r)&&e.ref===t.ref)return Rt(e,t,i)}return t.flags|=1,e=Zt(l,r),e.ref=t.ref,e.return=t,t.child=e}function zd(e,t,n,r,i){if(e!==null){var l=e.memoizedProps;if(oi(l,r)&&e.ref===t.ref)if(Ne=!1,t.pendingProps=r=l,(e.lanes&i)!==0)e.flags&131072&&(Ne=!0);else return t.lanes=e.lanes,Rt(e,t,i)}return ks(e,t,n,r,i)}function Ud(e,t,n){var r=t.pendingProps,i=r.children,l=e!==null?e.memoizedState:null;if(r.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},V(Xn,Me),Me|=n;else{if(!(n&1073741824))return e=l!==null?l.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,V(Xn,Me),Me|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=l!==null?l.baseLanes:n,V(Xn,Me),Me|=r}else l!==null?(r=l.baseLanes|n,t.memoizedState=null):r=n,V(Xn,Me),Me|=r;return xe(e,t,i,n),t.child}function Ad(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function ks(e,t,n,r,i){var l=_e(n)?Nn:ge.current;return l=yr(t,l),tr(t,i),n=La(e,t,n,r,l,i),r=Da(),e!==null&&!Ne?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,Rt(e,t,i)):(G&&r&&xa(t),t.flags|=1,xe(e,t,n,i),t.child)}function tc(e,t,n,r,i){if(_e(n)){var l=!0;Rl(t)}else l=!1;if(tr(t,i),t.stateNode===null)cl(e,t),Fd(t,n,r),Ss(t,n,r,i),r=!0;else if(e===null){var o=t.stateNode,s=t.memoizedProps;o.props=s;var a=o.context,u=n.contextType;typeof u=="object"&&u!==null?u=Be(u):(u=_e(n)?Nn:ge.current,u=yr(t,u));var f=n.getDerivedStateFromProps,d=typeof f=="function"||typeof o.getSnapshotBeforeUpdate=="function";d||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(s!==r||a!==u)&&qu(t,o,r,u),Dt=!1;var p=t.memoizedState;o.state=p,Ml(t,r,o,i),a=t.memoizedState,s!==r||p!==a||Te.current||Dt?(typeof f=="function"&&(xs(t,n,f,r),a=t.memoizedState),(s=Dt||Gu(t,n,s,r,p,a,u))?(d||typeof o.UNSAFE_componentWillMount!="function"&&typeof o.componentWillMount!="function"||(typeof o.componentWillMount=="function"&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount=="function"&&o.UNSAFE_componentWillMount()),typeof o.componentDidMount=="function"&&(t.flags|=4194308)):(typeof o.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=a),o.props=r,o.state=a,o.context=u,r=s):(typeof o.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{o=t.stateNode,hd(e,t),s=t.memoizedProps,u=t.type===t.elementType?s:Ge(t.type,s),o.props=u,d=t.pendingProps,p=o.context,a=n.contextType,typeof a=="object"&&a!==null?a=Be(a):(a=_e(n)?Nn:ge.current,a=yr(t,a));var v=n.getDerivedStateFromProps;(f=typeof v=="function"||typeof o.getSnapshotBeforeUpdate=="function")||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(s!==d||p!==a)&&qu(t,o,r,a),Dt=!1,p=t.memoizedState,o.state=p,Ml(t,r,o,i);var w=t.memoizedState;s!==d||p!==w||Te.current||Dt?(typeof v=="function"&&(xs(t,n,v,r),w=t.memoizedState),(u=Dt||Gu(t,n,u,r,p,w,a)||!1)?(f||typeof o.UNSAFE_componentWillUpdate!="function"&&typeof o.componentWillUpdate!="function"||(typeof o.componentWillUpdate=="function"&&o.componentWillUpdate(r,w,a),typeof o.UNSAFE_componentWillUpdate=="function"&&o.UNSAFE_componentWillUpdate(r,w,a)),typeof o.componentDidUpdate=="function"&&(t.flags|=4),typeof o.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof o.componentDidUpdate!="function"||s===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||s===e.memoizedProps&&p===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=w),o.props=r,o.state=w,o.context=a,r=u):(typeof o.componentDidUpdate!="function"||s===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||s===e.memoizedProps&&p===e.memoizedState||(t.flags|=1024),r=!1)}return Cs(e,t,n,r,l,i)}function Cs(e,t,n,r,i,l){Ad(e,t);var o=(t.flags&128)!==0;if(!r&&!o)return i&&Wu(t,n,!1),Rt(e,t,l);r=t.stateNode,Jm.current=t;var s=o&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&o?(t.child=vr(t,e.child,null,l),t.child=vr(t,null,s,l)):xe(e,t,s,l),t.memoizedState=r.state,i&&Wu(t,n,!0),t.child}function Wd(e){var t=e.stateNode;t.pendingContext?Au(e,t.pendingContext,t.pendingContext!==t.context):t.context&&Au(e,t.context,!1),Ta(e,t.containerInfo)}function nc(e,t,n,r,i){return gr(),Ea(i),t.flags|=256,xe(e,t,n,r),t.child}var Ps={dehydrated:null,treeContext:null,retryLane:0};function Rs(e){return{baseLanes:e,cachePool:null,transitions:null}}function $d(e,t,n){var r=t.pendingProps,i=q.current,l=!1,o=(t.flags&128)!==0,s;if((s=o)||(s=e!==null&&e.memoizedState===null?!1:(i&2)!==0),s?(l=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(i|=1),V(q,i&1),e===null)return vs(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?(t.mode&1?e.data==="$!"?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(o=r.children,e=r.fallback,l?(r=t.mode,l=t.child,o={mode:"hidden",children:o},!(r&1)&&l!==null?(l.childLanes=0,l.pendingProps=o):l=eo(o,r,0,null),e=Rn(e,r,n,null),l.return=t,e.return=t,l.sibling=e,t.child=l,t.child.memoizedState=Rs(n),t.memoizedState=Ps,e):Ia(t,o));if(i=e.memoizedState,i!==null&&(s=i.dehydrated,s!==null))return Zm(e,t,o,r,s,i,n);if(l){l=r.fallback,o=t.mode,i=e.child,s=i.sibling;var a={mode:"hidden",children:r.children};return!(o&1)&&t.child!==i?(r=t.child,r.childLanes=0,r.pendingProps=a,t.deletions=null):(r=Zt(i,a),r.subtreeFlags=i.subtreeFlags&14680064),s!==null?l=Zt(s,l):(l=Rn(l,o,n,null),l.flags|=2),l.return=t,r.return=t,r.sibling=l,t.child=r,r=l,l=t.child,o=e.child.memoizedState,o=o===null?Rs(n):{baseLanes:o.baseLanes|n,cachePool:null,transitions:o.transitions},l.memoizedState=o,l.childLanes=e.childLanes&~n,t.memoizedState=Ps,r}return l=e.child,e=l.sibling,r=Zt(l,{mode:"visible",children:r.children}),!(t.mode&1)&&(r.lanes=n),r.return=t,r.sibling=null,e!==null&&(n=t.deletions,n===null?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=r,t.memoizedState=null,r}function Ia(e,t){return t=eo({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function Xi(e,t,n,r){return r!==null&&Ea(r),vr(t,e.child,null,n),e=Ia(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Zm(e,t,n,r,i,l,o){if(n)return t.flags&256?(t.flags&=-257,r=jo(Error(P(422))),Xi(e,t,o,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(l=r.fallback,i=t.mode,r=eo({mode:"visible",children:r.children},i,0,null),l=Rn(l,i,o,null),l.flags|=2,r.return=t,l.return=t,r.sibling=l,t.child=r,t.mode&1&&vr(t,e.child,null,o),t.child.memoizedState=Rs(o),t.memoizedState=Ps,l);if(!(t.mode&1))return Xi(e,t,o,null);if(i.data==="$!"){if(r=i.nextSibling&&i.nextSibling.dataset,r)var s=r.dgst;return r=s,l=Error(P(419)),r=jo(l,r,void 0),Xi(e,t,o,r)}if(s=(o&e.childLanes)!==0,Ne||s){if(r=ue,r!==null){switch(o&-o){case 4:i=2;break;case 16:i=8;break;case 64: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:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:i=32;break;case 536870912:i=268435456;break;default:i=0}i=i&(r.suspendedLanes|o)?0:i,i!==0&&i!==l.retryLane&&(l.retryLane=i,Pt(e,i),et(r,e,i,-1))}return Qa(),r=jo(Error(P(421))),Xi(e,t,o,r)}return i.data==="$?"?(t.flags|=128,t.child=e.child,t=dy.bind(null,e),i._reactRetry=t,null):(e=l.treeContext,Le=qt(i.nextSibling),De=t,G=!0,Je=null,e!==null&&(We[$e++]=wt,We[$e++]=xt,We[$e++]=Tn,wt=e.id,xt=e.overflow,Tn=t),t=Ia(t,r.children),t.flags|=4096,t)}function rc(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),ws(e.return,t,n)}function Io(e,t,n,r,i){var l=e.memoizedState;l===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i}:(l.isBackwards=t,l.rendering=null,l.renderingStartTime=0,l.last=r,l.tail=n,l.tailMode=i)}function Qd(e,t,n){var r=t.pendingProps,i=r.revealOrder,l=r.tail;if(xe(e,t,r.children,n),r=q.current,r&2)r=r&1|2,t.flags|=128;else{if(e!==null&&e.flags&128)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&rc(e,n,t);else if(e.tag===19)rc(e,n,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}r&=1}if(V(q,r),!(t.mode&1))t.memoizedState=null;else switch(i){case"forwards":for(n=t.child,i=null;n!==null;)e=n.alternate,e!==null&&Ll(e)===null&&(i=n),n=n.sibling;n=i,n===null?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),Io(t,!1,i,n,l);break;case"backwards":for(n=null,i=t.child,t.child=null;i!==null;){if(e=i.alternate,e!==null&&Ll(e)===null){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}Io(t,!0,n,null,l);break;case"together":Io(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function cl(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Rt(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),On|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(P(153));if(t.child!==null){for(e=t.child,n=Zt(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=Zt(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function ey(e,t,n){switch(t.tag){case 3:Wd(t),gr();break;case 5:pd(t);break;case 1:_e(t.type)&&Rl(t);break;case 4:Ta(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,i=t.memoizedProps.value;V(_l,r._currentValue),r._currentValue=i;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(V(q,q.current&1),t.flags|=128,null):n&t.child.childLanes?$d(e,t,n):(V(q,q.current&1),e=Rt(e,t,n),e!==null?e.sibling:null);V(q,q.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return Qd(e,t,n);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),V(q,q.current),r)break;return null;case 22:case 23:return t.lanes=0,Ud(e,t,n)}return Rt(e,t,n)}var Hd,Ns,Bd,Vd;Hd=function(e,t){for(var n=t.child;n!==null;){if(n.tag===5||n.tag===6)e.appendChild(n.stateNode);else if(n.tag!==4&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}};Ns=function(){};Bd=function(e,t,n,r){var i=e.memoizedProps;if(i!==r){e=t.stateNode,pn(dt.current);var l=null;switch(n){case"input":i=qo(e,i),r=qo(e,r),l=[];break;case"select":i=J({},i,{value:void 0}),r=J({},r,{value:void 0}),l=[];break;case"textarea":i=Jo(e,i),r=Jo(e,r),l=[];break;default:typeof i.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=Cl)}es(n,r);var o;n=null;for(u in i)if(!r.hasOwnProperty(u)&&i.hasOwnProperty(u)&&i[u]!=null)if(u==="style"){var s=i[u];for(o in s)s.hasOwnProperty(o)&&(n||(n={}),n[o]="")}else u!=="dangerouslySetInnerHTML"&&u!=="children"&&u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&u!=="autoFocus"&&(Zr.hasOwnProperty(u)?l||(l=[]):(l=l||[]).push(u,null));for(u in r){var a=r[u];if(s=i!=null?i[u]:void 0,r.hasOwnProperty(u)&&a!==s&&(a!=null||s!=null))if(u==="style")if(s){for(o in s)!s.hasOwnProperty(o)||a&&a.hasOwnProperty(o)||(n||(n={}),n[o]="");for(o in a)a.hasOwnProperty(o)&&s[o]!==a[o]&&(n||(n={}),n[o]=a[o])}else n||(l||(l=[]),l.push(u,n)),n=a;else u==="dangerouslySetInnerHTML"?(a=a?a.__html:void 0,s=s?s.__html:void 0,a!=null&&s!==a&&(l=l||[]).push(u,a)):u==="children"?typeof a!="string"&&typeof a!="number"||(l=l||[]).push(u,""+a):u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&(Zr.hasOwnProperty(u)?(a!=null&&u==="onScroll"&&Y("scroll",e),l||s===a||(l=[])):(l=l||[]).push(u,a))}n&&(l=l||[]).push("style",n);var u=l;(t.updateQueue=u)&&(t.flags|=4)}};Vd=function(e,t,n,r){n!==r&&(t.flags|=4)};function Dr(e,t){if(!G)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function me(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags&14680064,r|=i.flags&14680064,i.return=e,i=i.sibling;else for(i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags,r|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function ty(e,t,n){var r=t.pendingProps;switch(Sa(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return me(t),null;case 1:return _e(t.type)&&Pl(),me(t),null;case 3:return r=t.stateNode,wr(),K(Te),K(ge),Oa(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(Gi(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,Je!==null&&(js(Je),Je=null))),Ns(e,t),me(t),null;case 5:_a(t);var i=pn(fi.current);if(n=t.type,e!==null&&t.stateNode!=null)Bd(e,t,n,r,i),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(P(166));return me(t),null}if(e=pn(dt.current),Gi(t)){r=t.stateNode,n=t.type;var l=t.memoizedProps;switch(r[ct]=t,r[ui]=l,e=(t.mode&1)!==0,n){case"dialog":Y("cancel",r),Y("close",r);break;case"iframe":case"object":case"embed":Y("load",r);break;case"video":case"audio":for(i=0;i<$r.length;i++)Y($r[i],r);break;case"source":Y("error",r);break;case"img":case"image":case"link":Y("error",r),Y("load",r);break;case"details":Y("toggle",r);break;case"input":du(r,l),Y("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!l.multiple},Y("invalid",r);break;case"textarea":pu(r,l),Y("invalid",r)}es(n,l),i=null;for(var o in l)if(l.hasOwnProperty(o)){var s=l[o];o==="children"?typeof s=="string"?r.textContent!==s&&(l.suppressHydrationWarning!==!0&&Ki(r.textContent,s,e),i=["children",s]):typeof s=="number"&&r.textContent!==""+s&&(l.suppressHydrationWarning!==!0&&Ki(r.textContent,s,e),i=["children",""+s]):Zr.hasOwnProperty(o)&&s!=null&&o==="onScroll"&&Y("scroll",r)}switch(n){case"input":Ai(r),hu(r,l,!0);break;case"textarea":Ai(r),mu(r);break;case"select":case"option":break;default:typeof l.onClick=="function"&&(r.onclick=Cl)}r=i,t.updateQueue=r,r!==null&&(t.flags|=4)}else{o=i.nodeType===9?i:i.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=wf(n)),e==="http://www.w3.org/1999/xhtml"?n==="script"?(e=o.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=o.createElement(n,{is:r.is}):(e=o.createElement(n),n==="select"&&(o=e,r.multiple?o.multiple=!0:r.size&&(o.size=r.size))):e=o.createElementNS(e,n),e[ct]=t,e[ui]=r,Hd(e,t,!1,!1),t.stateNode=e;e:{switch(o=ts(n,r),n){case"dialog":Y("cancel",e),Y("close",e),i=r;break;case"iframe":case"object":case"embed":Y("load",e),i=r;break;case"video":case"audio":for(i=0;i<$r.length;i++)Y($r[i],e);i=r;break;case"source":Y("error",e),i=r;break;case"img":case"image":case"link":Y("error",e),Y("load",e),i=r;break;case"details":Y("toggle",e),i=r;break;case"input":du(e,r),i=qo(e,r),Y("invalid",e);break;case"option":i=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},i=J({},r,{value:void 0}),Y("invalid",e);break;case"textarea":pu(e,r),i=Jo(e,r),Y("invalid",e);break;default:i=r}es(n,i),s=i;for(l in s)if(s.hasOwnProperty(l)){var a=s[l];l==="style"?Ef(e,a):l==="dangerouslySetInnerHTML"?(a=a?a.__html:void 0,a!=null&&xf(e,a)):l==="children"?typeof a=="string"?(n!=="textarea"||a!=="")&&ei(e,a):typeof a=="number"&&ei(e,""+a):l!=="suppressContentEditableWarning"&&l!=="suppressHydrationWarning"&&l!=="autoFocus"&&(Zr.hasOwnProperty(l)?a!=null&&l==="onScroll"&&Y("scroll",e):a!=null&&oa(e,l,a,o))}switch(n){case"input":Ai(e),hu(e,r,!1);break;case"textarea":Ai(e),mu(e);break;case"option":r.value!=null&&e.setAttribute("value",""+tn(r.value));break;case"select":e.multiple=!!r.multiple,l=r.value,l!=null?bn(e,!!r.multiple,l,!1):r.defaultValue!=null&&bn(e,!!r.multiple,r.defaultValue,!0);break;default:typeof i.onClick=="function"&&(e.onclick=Cl)}switch(n){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}}r&&(t.flags|=4)}t.ref!==null&&(t.flags|=512,t.flags|=2097152)}return me(t),null;case 6:if(e&&t.stateNode!=null)Vd(e,t,e.memoizedProps,r);else{if(typeof r!="string"&&t.stateNode===null)throw Error(P(166));if(n=pn(fi.current),pn(dt.current),Gi(t)){if(r=t.stateNode,n=t.memoizedProps,r[ct]=t,(l=r.nodeValue!==n)&&(e=De,e!==null))switch(e.tag){case 3:Ki(r.nodeValue,n,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&Ki(r.nodeValue,n,(e.mode&1)!==0)}l&&(t.flags|=4)}else r=(n.nodeType===9?n:n.ownerDocument).createTextNode(r),r[ct]=t,t.stateNode=r}return me(t),null;case 13:if(K(q),r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(G&&Le!==null&&t.mode&1&&!(t.flags&128))ud(),gr(),t.flags|=98560,l=!1;else if(l=Gi(t),r!==null&&r.dehydrated!==null){if(e===null){if(!l)throw Error(P(318));if(l=t.memoizedState,l=l!==null?l.dehydrated:null,!l)throw Error(P(317));l[ct]=t}else gr(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;me(t),l=!1}else Je!==null&&(js(Je),Je=null),l=!0;if(!l)return t.flags&65536?t:null}return t.flags&128?(t.lanes=n,t):(r=r!==null,r!==(e!==null&&e.memoizedState!==null)&&r&&(t.child.flags|=8192,t.mode&1&&(e===null||q.current&1?le===0&&(le=3):Qa())),t.updateQueue!==null&&(t.flags|=4),me(t),null);case 4:return wr(),Ns(e,t),e===null&&si(t.stateNode.containerInfo),me(t),null;case 10:return Pa(t.type._context),me(t),null;case 17:return _e(t.type)&&Pl(),me(t),null;case 19:if(K(q),l=t.memoizedState,l===null)return me(t),null;if(r=(t.flags&128)!==0,o=l.rendering,o===null)if(r)Dr(l,!1);else{if(le!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(o=Ll(e),o!==null){for(t.flags|=128,Dr(l,!1),r=o.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;n!==null;)l=n,e=r,l.flags&=14680066,o=l.alternate,o===null?(l.childLanes=0,l.lanes=e,l.child=null,l.subtreeFlags=0,l.memoizedProps=null,l.memoizedState=null,l.updateQueue=null,l.dependencies=null,l.stateNode=null):(l.childLanes=o.childLanes,l.lanes=o.lanes,l.child=o.child,l.subtreeFlags=0,l.deletions=null,l.memoizedProps=o.memoizedProps,l.memoizedState=o.memoizedState,l.updateQueue=o.updateQueue,l.type=o.type,e=o.dependencies,l.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return V(q,q.current&1|2),t.child}e=e.sibling}l.tail!==null&&ne()>Sr&&(t.flags|=128,r=!0,Dr(l,!1),t.lanes=4194304)}else{if(!r)if(e=Ll(o),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),Dr(l,!0),l.tail===null&&l.tailMode==="hidden"&&!o.alternate&&!G)return me(t),null}else 2*ne()-l.renderingStartTime>Sr&&n!==1073741824&&(t.flags|=128,r=!0,Dr(l,!1),t.lanes=4194304);l.isBackwards?(o.sibling=t.child,t.child=o):(n=l.last,n!==null?n.sibling=o:t.child=o,l.last=o)}return l.tail!==null?(t=l.tail,l.rendering=t,l.tail=t.sibling,l.renderingStartTime=ne(),t.sibling=null,n=q.current,V(q,r?n&1|2:n&1),t):(me(t),null);case 22:case 23:return $a(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?Me&1073741824&&(me(t),t.subtreeFlags&6&&(t.flags|=8192)):me(t),null;case 24:return null;case 25:return null}throw Error(P(156,t.tag))}function ny(e,t){switch(Sa(t),t.tag){case 1:return _e(t.type)&&Pl(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return wr(),K(Te),K(ge),Oa(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return _a(t),null;case 13:if(K(q),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(P(340));gr()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return K(q),null;case 4:return wr(),null;case 10:return Pa(t.type._context),null;case 22:case 23:return $a(),null;case 24:return null;default:return null}}var bi=!1,ye=!1,ry=typeof WeakSet=="function"?WeakSet:Set,M=null;function qn(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){ee(e,t,r)}else n.current=null}function Ts(e,t,n){try{n()}catch(r){ee(e,t,r)}}var ic=!1;function iy(e,t){if(fs=Sl,e=Xf(),wa(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var i=r.anchorOffset,l=r.focusNode;r=r.focusOffset;try{n.nodeType,l.nodeType}catch{n=null;break e}var o=0,s=-1,a=-1,u=0,f=0,d=e,p=null;t:for(;;){for(var v;d!==n||i!==0&&d.nodeType!==3||(s=o+i),d!==l||r!==0&&d.nodeType!==3||(a=o+r),d.nodeType===3&&(o+=d.nodeValue.length),(v=d.firstChild)!==null;)p=d,d=v;for(;;){if(d===e)break t;if(p===n&&++u===i&&(s=o),p===l&&++f===r&&(a=o),(v=d.nextSibling)!==null)break;d=p,p=d.parentNode}d=v}n=s===-1||a===-1?null:{start:s,end:a}}else n=null}n=n||{start:0,end:0}}else n=null;for(ds={focusedElem:e,selectionRange:n},Sl=!1,M=t;M!==null;)if(t=M,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,M=e;else for(;M!==null;){t=M;try{var w=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(w!==null){var g=w.memoizedProps,E=w.memoizedState,h=t.stateNode,c=h.getSnapshotBeforeUpdate(t.elementType===t.type?g:Ge(t.type,g),E);h.__reactInternalSnapshotBeforeUpdate=c}break;case 3:var m=t.stateNode.containerInfo;m.nodeType===1?m.textContent="":m.nodeType===9&&m.documentElement&&m.removeChild(m.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(P(163))}}catch(x){ee(t,t.return,x)}if(e=t.sibling,e!==null){e.return=t.return,M=e;break}M=t.return}return w=ic,ic=!1,w}function qr(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var i=r=r.next;do{if((i.tag&e)===e){var l=i.destroy;i.destroy=void 0,l!==void 0&&Ts(t,n,l)}i=i.next}while(i!==r)}}function Jl(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function _s(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function Yd(e){var t=e.alternate;t!==null&&(e.alternate=null,Yd(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[ct],delete t[ui],delete t[ms],delete t[Wm],delete t[$m])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function Kd(e){return e.tag===5||e.tag===3||e.tag===4}function lc(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Kd(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.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 Os(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=Cl));else if(r!==4&&(e=e.child,e!==null))for(Os(e,t,n),e=e.sibling;e!==null;)Os(e,t,n),e=e.sibling}function Ms(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(Ms(e,t,n),e=e.sibling;e!==null;)Ms(e,t,n),e=e.sibling}var ce=null,be=!1;function _t(e,t,n){for(n=n.child;n!==null;)Gd(e,t,n),n=n.sibling}function Gd(e,t,n){if(ft&&typeof ft.onCommitFiberUnmount=="function")try{ft.onCommitFiberUnmount(Bl,n)}catch{}switch(n.tag){case 5:ye||qn(n,t);case 6:var r=ce,i=be;ce=null,_t(e,t,n),ce=r,be=i,ce!==null&&(be?(e=ce,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):ce.removeChild(n.stateNode));break;case 18:ce!==null&&(be?(e=ce,n=n.stateNode,e.nodeType===8?_o(e.parentNode,n):e.nodeType===1&&_o(e,n),ii(e)):_o(ce,n.stateNode));break;case 4:r=ce,i=be,ce=n.stateNode.containerInfo,be=!0,_t(e,t,n),ce=r,be=i;break;case 0:case 11:case 14:case 15:if(!ye&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){i=r=r.next;do{var l=i,o=l.destroy;l=l.tag,o!==void 0&&(l&2||l&4)&&Ts(n,t,o),i=i.next}while(i!==r)}_t(e,t,n);break;case 1:if(!ye&&(qn(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(s){ee(n,t,s)}_t(e,t,n);break;case 21:_t(e,t,n);break;case 22:n.mode&1?(ye=(r=ye)||n.memoizedState!==null,_t(e,t,n),ye=r):_t(e,t,n);break;default:_t(e,t,n)}}function oc(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new ry),t.forEach(function(r){var i=hy.bind(null,e,r);n.has(r)||(n.add(r),r.then(i,i))})}}function Ke(e,t){var n=t.deletions;if(n!==null)for(var r=0;r<n.length;r++){var i=n[r];try{var l=e,o=t,s=o;e:for(;s!==null;){switch(s.tag){case 5:ce=s.stateNode,be=!1;break e;case 3:ce=s.stateNode.containerInfo,be=!0;break e;case 4:ce=s.stateNode.containerInfo,be=!0;break e}s=s.return}if(ce===null)throw Error(P(160));Gd(l,o,i),ce=null,be=!1;var a=i.alternate;a!==null&&(a.return=null),i.return=null}catch(u){ee(i,t,u)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)qd(t,e),t=t.sibling}function qd(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(Ke(t,e),lt(e),r&4){try{qr(3,e,e.return),Jl(3,e)}catch(g){ee(e,e.return,g)}try{qr(5,e,e.return)}catch(g){ee(e,e.return,g)}}break;case 1:Ke(t,e),lt(e),r&512&&n!==null&&qn(n,n.return);break;case 5:if(Ke(t,e),lt(e),r&512&&n!==null&&qn(n,n.return),e.flags&32){var i=e.stateNode;try{ei(i,"")}catch(g){ee(e,e.return,g)}}if(r&4&&(i=e.stateNode,i!=null)){var l=e.memoizedProps,o=n!==null?n.memoizedProps:l,s=e.type,a=e.updateQueue;if(e.updateQueue=null,a!==null)try{s==="input"&&l.type==="radio"&&l.name!=null&&gf(i,l),ts(s,o);var u=ts(s,l);for(o=0;o<a.length;o+=2){var f=a[o],d=a[o+1];f==="style"?Ef(i,d):f==="dangerouslySetInnerHTML"?xf(i,d):f==="children"?ei(i,d):oa(i,f,d,u)}switch(s){case"input":Xo(i,l);break;case"textarea":vf(i,l);break;case"select":var p=i._wrapperState.wasMultiple;i._wrapperState.wasMultiple=!!l.multiple;var v=l.value;v!=null?bn(i,!!l.multiple,v,!1):p!==!!l.multiple&&(l.defaultValue!=null?bn(i,!!l.multiple,l.defaultValue,!0):bn(i,!!l.multiple,l.multiple?[]:"",!1))}i[ui]=l}catch(g){ee(e,e.return,g)}}break;case 6:if(Ke(t,e),lt(e),r&4){if(e.stateNode===null)throw Error(P(162));i=e.stateNode,l=e.memoizedProps;try{i.nodeValue=l}catch(g){ee(e,e.return,g)}}break;case 3:if(Ke(t,e),lt(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{ii(t.containerInfo)}catch(g){ee(e,e.return,g)}break;case 4:Ke(t,e),lt(e);break;case 13:Ke(t,e),lt(e),i=e.child,i.flags&8192&&(l=i.memoizedState!==null,i.stateNode.isHidden=l,!l||i.alternate!==null&&i.alternate.memoizedState!==null||(Aa=ne())),r&4&&oc(e);break;case 22:if(f=n!==null&&n.memoizedState!==null,e.mode&1?(ye=(u=ye)||f,Ke(t,e),ye=u):Ke(t,e),lt(e),r&8192){if(u=e.memoizedState!==null,(e.stateNode.isHidden=u)&&!f&&e.mode&1)for(M=e,f=e.child;f!==null;){for(d=M=f;M!==null;){switch(p=M,v=p.child,p.tag){case 0:case 11:case 14:case 15:qr(4,p,p.return);break;case 1:qn(p,p.return);var w=p.stateNode;if(typeof w.componentWillUnmount=="function"){r=p,n=p.return;try{t=r,w.props=t.memoizedProps,w.state=t.memoizedState,w.componentWillUnmount()}catch(g){ee(r,n,g)}}break;case 5:qn(p,p.return);break;case 22:if(p.memoizedState!==null){ac(d);continue}}v!==null?(v.return=p,M=v):ac(d)}f=f.sibling}e:for(f=null,d=e;;){if(d.tag===5){if(f===null){f=d;try{i=d.stateNode,u?(l=i.style,typeof l.setProperty=="function"?l.setProperty("display","none","important"):l.display="none"):(s=d.stateNode,a=d.memoizedProps.style,o=a!=null&&a.hasOwnProperty("display")?a.display:null,s.style.display=Sf("display",o))}catch(g){ee(e,e.return,g)}}}else if(d.tag===6){if(f===null)try{d.stateNode.nodeValue=u?"":d.memoizedProps}catch(g){ee(e,e.return,g)}}else if((d.tag!==22&&d.tag!==23||d.memoizedState===null||d===e)&&d.child!==null){d.child.return=d,d=d.child;continue}if(d===e)break e;for(;d.sibling===null;){if(d.return===null||d.return===e)break e;f===d&&(f=null),d=d.return}f===d&&(f=null),d.sibling.return=d.return,d=d.sibling}}break;case 19:Ke(t,e),lt(e),r&4&&oc(e);break;case 21:break;default:Ke(t,e),lt(e)}}function lt(e){var t=e.flags;if(t&2){try{e:{for(var n=e.return;n!==null;){if(Kd(n)){var r=n;break e}n=n.return}throw Error(P(160))}switch(r.tag){case 5:var i=r.stateNode;r.flags&32&&(ei(i,""),r.flags&=-33);var l=lc(e);Ms(e,l,i);break;case 3:case 4:var o=r.stateNode.containerInfo,s=lc(e);Os(e,s,o);break;default:throw Error(P(161))}}catch(a){ee(e,e.return,a)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function ly(e,t,n){M=e,Xd(e)}function Xd(e,t,n){for(var r=(e.mode&1)!==0;M!==null;){var i=M,l=i.child;if(i.tag===22&&r){var o=i.memoizedState!==null||bi;if(!o){var s=i.alternate,a=s!==null&&s.memoizedState!==null||ye;s=bi;var u=ye;if(bi=o,(ye=a)&&!u)for(M=i;M!==null;)o=M,a=o.child,o.tag===22&&o.memoizedState!==null?uc(i):a!==null?(a.return=o,M=a):uc(i);for(;l!==null;)M=l,Xd(l),l=l.sibling;M=i,bi=s,ye=u}sc(e)}else i.subtreeFlags&8772&&l!==null?(l.return=i,M=l):sc(e)}}function sc(e){for(;M!==null;){var t=M;if(t.flags&8772){var n=t.alternate;try{if(t.flags&8772)switch(t.tag){case 0:case 11:case 15:ye||Jl(5,t);break;case 1:var r=t.stateNode;if(t.flags&4&&!ye)if(n===null)r.componentDidMount();else{var i=t.elementType===t.type?n.memoizedProps:Ge(t.type,n.memoizedProps);r.componentDidUpdate(i,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var l=t.updateQueue;l!==null&&Vu(t,l,r);break;case 3:var o=t.updateQueue;if(o!==null){if(n=null,t.child!==null)switch(t.child.tag){case 5:n=t.child.stateNode;break;case 1:n=t.child.stateNode}Vu(t,o,n)}break;case 5:var s=t.stateNode;if(n===null&&t.flags&4){n=s;var a=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":a.autoFocus&&n.focus();break;case"img":a.src&&(n.src=a.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var u=t.alternate;if(u!==null){var f=u.memoizedState;if(f!==null){var d=f.dehydrated;d!==null&&ii(d)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(P(163))}ye||t.flags&512&&_s(t)}catch(p){ee(t,t.return,p)}}if(t===e){M=null;break}if(n=t.sibling,n!==null){n.return=t.return,M=n;break}M=t.return}}function ac(e){for(;M!==null;){var t=M;if(t===e){M=null;break}var n=t.sibling;if(n!==null){n.return=t.return,M=n;break}M=t.return}}function uc(e){for(;M!==null;){var t=M;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{Jl(4,t)}catch(a){ee(t,n,a)}break;case 1:var r=t.stateNode;if(typeof r.componentDidMount=="function"){var i=t.return;try{r.componentDidMount()}catch(a){ee(t,i,a)}}var l=t.return;try{_s(t)}catch(a){ee(t,l,a)}break;case 5:var o=t.return;try{_s(t)}catch(a){ee(t,o,a)}}}catch(a){ee(t,t.return,a)}if(t===e){M=null;break}var s=t.sibling;if(s!==null){s.return=t.return,M=s;break}M=t.return}}var oy=Math.ceil,jl=Tt.ReactCurrentDispatcher,za=Tt.ReactCurrentOwner,He=Tt.ReactCurrentBatchConfig,W=0,ue=null,re=null,de=0,Me=0,Xn=ln(0),le=0,mi=null,On=0,Zl=0,Ua=0,Xr=null,Re=null,Aa=0,Sr=1/0,mt=null,Il=!1,Ls=null,bt=null,Ji=!1,Vt=null,zl=0,br=0,Ds=null,fl=-1,dl=0;function Se(){return W&6?ne():fl!==-1?fl:fl=ne()}function Jt(e){return e.mode&1?W&2&&de!==0?de&-de:Hm.transition!==null?(dl===0&&(dl=Ff()),dl):(e=B,e!==0||(e=window.event,e=e===void 0?16:$f(e.type)),e):1}function et(e,t,n,r){if(50<br)throw br=0,Ds=null,Error(P(185));Ri(e,n,r),(!(W&2)||e!==ue)&&(e===ue&&(!(W&2)&&(Zl|=n),le===4&&jt(e,de)),Oe(e,r),n===1&&W===0&&!(t.mode&1)&&(Sr=ne()+500,ql&&on()))}function Oe(e,t){var n=e.callbackNode;Hp(e,t);var r=xl(e,e===ue?de:0);if(r===0)n!==null&&vu(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(n!=null&&vu(n),t===1)e.tag===0?Qm(cc.bind(null,e)):od(cc.bind(null,e)),Um(function(){!(W&6)&&on()}),n=null;else{switch(jf(r)){case 1:n=fa;break;case 4:n=Lf;break;case 16:n=wl;break;case 536870912:n=Df;break;default:n=wl}n=ih(n,bd.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function bd(e,t){if(fl=-1,dl=0,W&6)throw Error(P(327));var n=e.callbackNode;if(nr()&&e.callbackNode!==n)return null;var r=xl(e,e===ue?de:0);if(r===0)return null;if(r&30||r&e.expiredLanes||t)t=Ul(e,r);else{t=r;var i=W;W|=2;var l=Zd();(ue!==e||de!==t)&&(mt=null,Sr=ne()+500,Pn(e,t));do try{uy();break}catch(s){Jd(e,s)}while(!0);Ca(),jl.current=l,W=i,re!==null?t=0:(ue=null,de=0,t=le)}if(t!==0){if(t===2&&(i=os(e),i!==0&&(r=i,t=Fs(e,i))),t===1)throw n=mi,Pn(e,0),jt(e,r),Oe(e,ne()),n;if(t===6)jt(e,r);else{if(i=e.current.alternate,!(r&30)&&!sy(i)&&(t=Ul(e,r),t===2&&(l=os(e),l!==0&&(r=l,t=Fs(e,l))),t===1))throw n=mi,Pn(e,0),jt(e,r),Oe(e,ne()),n;switch(e.finishedWork=i,e.finishedLanes=r,t){case 0:case 1:throw Error(P(345));case 2:cn(e,Re,mt);break;case 3:if(jt(e,r),(r&130023424)===r&&(t=Aa+500-ne(),10<t)){if(xl(e,0)!==0)break;if(i=e.suspendedLanes,(i&r)!==r){Se(),e.pingedLanes|=e.suspendedLanes&i;break}e.timeoutHandle=ps(cn.bind(null,e,Re,mt),t);break}cn(e,Re,mt);break;case 4:if(jt(e,r),(r&4194240)===r)break;for(t=e.eventTimes,i=-1;0<r;){var o=31-Ze(r);l=1<<o,o=t[o],o>i&&(i=o),r&=~l}if(r=i,r=ne()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*oy(r/1960))-r,10<r){e.timeoutHandle=ps(cn.bind(null,e,Re,mt),r);break}cn(e,Re,mt);break;case 5:cn(e,Re,mt);break;default:throw Error(P(329))}}}return Oe(e,ne()),e.callbackNode===n?bd.bind(null,e):null}function Fs(e,t){var n=Xr;return e.current.memoizedState.isDehydrated&&(Pn(e,t).flags|=256),e=Ul(e,t),e!==2&&(t=Re,Re=n,t!==null&&js(t)),e}function js(e){Re===null?Re=e:Re.push.apply(Re,e)}function sy(e){for(var t=e;;){if(t.flags&16384){var n=t.updateQueue;if(n!==null&&(n=n.stores,n!==null))for(var r=0;r<n.length;r++){var i=n[r],l=i.getSnapshot;i=i.value;try{if(!tt(l(),i))return!1}catch{return!1}}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function jt(e,t){for(t&=~Ua,t&=~Zl,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-Ze(t),r=1<<n;e[n]=-1,t&=~r}}function cc(e){if(W&6)throw Error(P(327));nr();var t=xl(e,0);if(!(t&1))return Oe(e,ne()),null;var n=Ul(e,t);if(e.tag!==0&&n===2){var r=os(e);r!==0&&(t=r,n=Fs(e,r))}if(n===1)throw n=mi,Pn(e,0),jt(e,t),Oe(e,ne()),n;if(n===6)throw Error(P(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,cn(e,Re,mt),Oe(e,ne()),null}function Wa(e,t){var n=W;W|=1;try{return e(t)}finally{W=n,W===0&&(Sr=ne()+500,ql&&on())}}function Mn(e){Vt!==null&&Vt.tag===0&&!(W&6)&&nr();var t=W;W|=1;var n=He.transition,r=B;try{if(He.transition=null,B=1,e)return e()}finally{B=r,He.transition=n,W=t,!(W&6)&&on()}}function $a(){Me=Xn.current,K(Xn)}function Pn(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,zm(n)),re!==null)for(n=re.return;n!==null;){var r=n;switch(Sa(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&Pl();break;case 3:wr(),K(Te),K(ge),Oa();break;case 5:_a(r);break;case 4:wr();break;case 13:K(q);break;case 19:K(q);break;case 10:Pa(r.type._context);break;case 22:case 23:$a()}n=n.return}if(ue=e,re=e=Zt(e.current,null),de=Me=t,le=0,mi=null,Ua=Zl=On=0,Re=Xr=null,hn!==null){for(t=0;t<hn.length;t++)if(n=hn[t],r=n.interleaved,r!==null){n.interleaved=null;var i=r.next,l=n.pending;if(l!==null){var o=l.next;l.next=i,r.next=o}n.pending=r}hn=null}return e}function Jd(e,t){do{var n=re;try{if(Ca(),al.current=Fl,Dl){for(var r=X.memoizedState;r!==null;){var i=r.queue;i!==null&&(i.pending=null),r=r.next}Dl=!1}if(_n=0,ae=ie=X=null,Gr=!1,di=0,za.current=null,n===null||n.return===null){le=1,mi=t,re=null;break}e:{var l=e,o=n.return,s=n,a=t;if(t=de,s.flags|=32768,a!==null&&typeof a=="object"&&typeof a.then=="function"){var u=a,f=s,d=f.tag;if(!(f.mode&1)&&(d===0||d===11||d===15)){var p=f.alternate;p?(f.updateQueue=p.updateQueue,f.memoizedState=p.memoizedState,f.lanes=p.lanes):(f.updateQueue=null,f.memoizedState=null)}var v=bu(o);if(v!==null){v.flags&=-257,Ju(v,o,s,l,t),v.mode&1&&Xu(l,u,t),t=v,a=u;var w=t.updateQueue;if(w===null){var g=new Set;g.add(a),t.updateQueue=g}else w.add(a);break e}else{if(!(t&1)){Xu(l,u,t),Qa();break e}a=Error(P(426))}}else if(G&&s.mode&1){var E=bu(o);if(E!==null){!(E.flags&65536)&&(E.flags|=256),Ju(E,o,s,l,t),Ea(xr(a,s));break e}}l=a=xr(a,s),le!==4&&(le=2),Xr===null?Xr=[l]:Xr.push(l),l=o;do{switch(l.tag){case 3:l.flags|=65536,t&=-t,l.lanes|=t;var h=jd(l,a,t);Bu(l,h);break e;case 1:s=a;var c=l.type,m=l.stateNode;if(!(l.flags&128)&&(typeof c.getDerivedStateFromError=="function"||m!==null&&typeof m.componentDidCatch=="function"&&(bt===null||!bt.has(m)))){l.flags|=65536,t&=-t,l.lanes|=t;var x=Id(l,s,t);Bu(l,x);break e}}l=l.return}while(l!==null)}th(n)}catch(C){t=C,re===n&&n!==null&&(re=n=n.return);continue}break}while(!0)}function Zd(){var e=jl.current;return jl.current=Fl,e===null?Fl:e}function Qa(){(le===0||le===3||le===2)&&(le=4),ue===null||!(On&268435455)&&!(Zl&268435455)||jt(ue,de)}function Ul(e,t){var n=W;W|=2;var r=Zd();(ue!==e||de!==t)&&(mt=null,Pn(e,t));do try{ay();break}catch(i){Jd(e,i)}while(!0);if(Ca(),W=n,jl.current=r,re!==null)throw Error(P(261));return ue=null,de=0,le}function ay(){for(;re!==null;)eh(re)}function uy(){for(;re!==null&&!Fp();)eh(re)}function eh(e){var t=rh(e.alternate,e,Me);e.memoizedProps=e.pendingProps,t===null?th(e):re=t,za.current=null}function th(e){var t=e;do{var n=t.alternate;if(e=t.return,t.flags&32768){if(n=ny(n,t),n!==null){n.flags&=32767,re=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{le=6,re=null;return}}else if(n=ty(n,t,Me),n!==null){re=n;return}if(t=t.sibling,t!==null){re=t;return}re=t=e}while(t!==null);le===0&&(le=5)}function cn(e,t,n){var r=B,i=He.transition;try{He.transition=null,B=1,cy(e,t,n,r)}finally{He.transition=i,B=r}return null}function cy(e,t,n,r){do nr();while(Vt!==null);if(W&6)throw Error(P(327));n=e.finishedWork;var i=e.finishedLanes;if(n===null)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(P(177));e.callbackNode=null,e.callbackPriority=0;var l=n.lanes|n.childLanes;if(Bp(e,l),e===ue&&(re=ue=null,de=0),!(n.subtreeFlags&2064)&&!(n.flags&2064)||Ji||(Ji=!0,ih(wl,function(){return nr(),null})),l=(n.flags&15990)!==0,n.subtreeFlags&15990||l){l=He.transition,He.transition=null;var o=B;B=1;var s=W;W|=4,za.current=null,iy(e,n),qd(n,e),Om(ds),Sl=!!fs,ds=fs=null,e.current=n,ly(n),jp(),W=s,B=o,He.transition=l}else e.current=n;if(Ji&&(Ji=!1,Vt=e,zl=i),l=e.pendingLanes,l===0&&(bt=null),Up(n.stateNode),Oe(e,ne()),t!==null)for(r=e.onRecoverableError,n=0;n<t.length;n++)i=t[n],r(i.value,{componentStack:i.stack,digest:i.digest});if(Il)throw Il=!1,e=Ls,Ls=null,e;return zl&1&&e.tag!==0&&nr(),l=e.pendingLanes,l&1?e===Ds?br++:(br=0,Ds=e):br=0,on(),null}function nr(){if(Vt!==null){var e=jf(zl),t=He.transition,n=B;try{if(He.transition=null,B=16>e?16:e,Vt===null)var r=!1;else{if(e=Vt,Vt=null,zl=0,W&6)throw Error(P(331));var i=W;for(W|=4,M=e.current;M!==null;){var l=M,o=l.child;if(M.flags&16){var s=l.deletions;if(s!==null){for(var a=0;a<s.length;a++){var u=s[a];for(M=u;M!==null;){var f=M;switch(f.tag){case 0:case 11:case 15:qr(8,f,l)}var d=f.child;if(d!==null)d.return=f,M=d;else for(;M!==null;){f=M;var p=f.sibling,v=f.return;if(Yd(f),f===u){M=null;break}if(p!==null){p.return=v,M=p;break}M=v}}}var w=l.alternate;if(w!==null){var g=w.child;if(g!==null){w.child=null;do{var E=g.sibling;g.sibling=null,g=E}while(g!==null)}}M=l}}if(l.subtreeFlags&2064&&o!==null)o.return=l,M=o;else e:for(;M!==null;){if(l=M,l.flags&2048)switch(l.tag){case 0:case 11:case 15:qr(9,l,l.return)}var h=l.sibling;if(h!==null){h.return=l.return,M=h;break e}M=l.return}}var c=e.current;for(M=c;M!==null;){o=M;var m=o.child;if(o.subtreeFlags&2064&&m!==null)m.return=o,M=m;else e:for(o=c;M!==null;){if(s=M,s.flags&2048)try{switch(s.tag){case 0:case 11:case 15:Jl(9,s)}}catch(C){ee(s,s.return,C)}if(s===o){M=null;break e}var x=s.sibling;if(x!==null){x.return=s.return,M=x;break e}M=s.return}}if(W=i,on(),ft&&typeof ft.onPostCommitFiberRoot=="function")try{ft.onPostCommitFiberRoot(Bl,e)}catch{}r=!0}return r}finally{B=n,He.transition=t}}return!1}function fc(e,t,n){t=xr(n,t),t=jd(e,t,1),e=Xt(e,t,1),t=Se(),e!==null&&(Ri(e,1,t),Oe(e,t))}function ee(e,t,n){if(e.tag===3)fc(e,e,n);else for(;t!==null;){if(t.tag===3){fc(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(bt===null||!bt.has(r))){e=xr(n,e),e=Id(t,e,1),t=Xt(t,e,1),e=Se(),t!==null&&(Ri(t,1,e),Oe(t,e));break}}t=t.return}}function fy(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),t=Se(),e.pingedLanes|=e.suspendedLanes&n,ue===e&&(de&n)===n&&(le===4||le===3&&(de&130023424)===de&&500>ne()-Aa?Pn(e,0):Ua|=n),Oe(e,t)}function nh(e,t){t===0&&(e.mode&1?(t=Qi,Qi<<=1,!(Qi&130023424)&&(Qi=4194304)):t=1);var n=Se();e=Pt(e,t),e!==null&&(Ri(e,t,n),Oe(e,n))}function dy(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),nh(e,n)}function hy(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,i=e.memoizedState;i!==null&&(n=i.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(P(314))}r!==null&&r.delete(t),nh(e,n)}var rh;rh=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||Te.current)Ne=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return Ne=!1,ey(e,t,n);Ne=!!(e.flags&131072)}else Ne=!1,G&&t.flags&1048576&&sd(t,Tl,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;cl(e,t),e=t.pendingProps;var i=yr(t,ge.current);tr(t,n),i=La(null,t,r,e,i,n);var l=Da();return t.flags|=1,typeof i=="object"&&i!==null&&typeof i.render=="function"&&i.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,_e(r)?(l=!0,Rl(t)):l=!1,t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,Na(t),i.updater=bl,t.stateNode=i,i._reactInternals=t,Ss(t,r,e,n),t=Cs(null,t,r,!0,l,n)):(t.tag=0,G&&l&&xa(t),xe(null,t,i,n),t=t.child),t;case 16:r=t.elementType;e:{switch(cl(e,t),e=t.pendingProps,i=r._init,r=i(r._payload),t.type=r,i=t.tag=my(r),e=Ge(r,e),i){case 0:t=ks(null,t,r,e,n);break e;case 1:t=tc(null,t,r,e,n);break e;case 11:t=Zu(null,t,r,e,n);break e;case 14:t=ec(null,t,r,Ge(r.type,e),n);break e}throw Error(P(306,r,""))}return t;case 0:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Ge(r,i),ks(e,t,r,i,n);case 1:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Ge(r,i),tc(e,t,r,i,n);case 3:e:{if(Wd(t),e===null)throw Error(P(387));r=t.pendingProps,l=t.memoizedState,i=l.element,hd(e,t),Ml(t,r,null,n);var o=t.memoizedState;if(r=o.element,l.isDehydrated)if(l={element:r,isDehydrated:!1,cache:o.cache,pendingSuspenseBoundaries:o.pendingSuspenseBoundaries,transitions:o.transitions},t.updateQueue.baseState=l,t.memoizedState=l,t.flags&256){i=xr(Error(P(423)),t),t=nc(e,t,r,n,i);break e}else if(r!==i){i=xr(Error(P(424)),t),t=nc(e,t,r,n,i);break e}else for(Le=qt(t.stateNode.containerInfo.firstChild),De=t,G=!0,Je=null,n=fd(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(gr(),r===i){t=Rt(e,t,n);break e}xe(e,t,r,n)}t=t.child}return t;case 5:return pd(t),e===null&&vs(t),r=t.type,i=t.pendingProps,l=e!==null?e.memoizedProps:null,o=i.children,hs(r,i)?o=null:l!==null&&hs(r,l)&&(t.flags|=32),Ad(e,t),xe(e,t,o,n),t.child;case 6:return e===null&&vs(t),null;case 13:return $d(e,t,n);case 4:return Ta(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=vr(t,null,r,n):xe(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Ge(r,i),Zu(e,t,r,i,n);case 7:return xe(e,t,t.pendingProps,n),t.child;case 8:return xe(e,t,t.pendingProps.children,n),t.child;case 12:return xe(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,i=t.pendingProps,l=t.memoizedProps,o=i.value,V(_l,r._currentValue),r._currentValue=o,l!==null)if(tt(l.value,o)){if(l.children===i.children&&!Te.current){t=Rt(e,t,n);break e}}else for(l=t.child,l!==null&&(l.return=t);l!==null;){var s=l.dependencies;if(s!==null){o=l.child;for(var a=s.firstContext;a!==null;){if(a.context===r){if(l.tag===1){a=St(-1,n&-n),a.tag=2;var u=l.updateQueue;if(u!==null){u=u.shared;var f=u.pending;f===null?a.next=a:(a.next=f.next,f.next=a),u.pending=a}}l.lanes|=n,a=l.alternate,a!==null&&(a.lanes|=n),ws(l.return,n,t),s.lanes|=n;break}a=a.next}}else if(l.tag===10)o=l.type===t.type?null:l.child;else if(l.tag===18){if(o=l.return,o===null)throw Error(P(341));o.lanes|=n,s=o.alternate,s!==null&&(s.lanes|=n),ws(o,n,t),o=l.sibling}else o=l.child;if(o!==null)o.return=l;else for(o=l;o!==null;){if(o===t){o=null;break}if(l=o.sibling,l!==null){l.return=o.return,o=l;break}o=o.return}l=o}xe(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=t.pendingProps.children,tr(t,n),i=Be(i),r=r(i),t.flags|=1,xe(e,t,r,n),t.child;case 14:return r=t.type,i=Ge(r,t.pendingProps),i=Ge(r.type,i),ec(e,t,r,i,n);case 15:return zd(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Ge(r,i),cl(e,t),t.tag=1,_e(r)?(e=!0,Rl(t)):e=!1,tr(t,n),Fd(t,r,i),Ss(t,r,i,n),Cs(null,t,r,!0,e,n);case 19:return Qd(e,t,n);case 22:return Ud(e,t,n)}throw Error(P(156,t.tag))};function ih(e,t){return Mf(e,t)}function py(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Qe(e,t,n,r){return new py(e,t,n,r)}function Ha(e){return e=e.prototype,!(!e||!e.isReactComponent)}function my(e){if(typeof e=="function")return Ha(e)?1:0;if(e!=null){if(e=e.$$typeof,e===aa)return 11;if(e===ua)return 14}return 2}function Zt(e,t){var n=e.alternate;return n===null?(n=Qe(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function hl(e,t,n,r,i,l){var o=2;if(r=e,typeof e=="function")Ha(e)&&(o=1);else if(typeof e=="string")o=5;else e:switch(e){case Wn:return Rn(n.children,i,l,t);case sa:o=8,i|=8;break;case Vo:return e=Qe(12,n,t,i|2),e.elementType=Vo,e.lanes=l,e;case Yo:return e=Qe(13,n,t,i),e.elementType=Yo,e.lanes=l,e;case Ko:return e=Qe(19,n,t,i),e.elementType=Ko,e.lanes=l,e;case pf:return eo(n,i,l,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case df:o=10;break e;case hf:o=9;break e;case aa:o=11;break e;case ua:o=14;break e;case Lt:o=16,r=null;break e}throw Error(P(130,e==null?e:typeof e,""))}return t=Qe(o,n,t,i),t.elementType=e,t.type=r,t.lanes=l,t}function Rn(e,t,n,r){return e=Qe(7,e,r,t),e.lanes=n,e}function eo(e,t,n,r){return e=Qe(22,e,r,t),e.elementType=pf,e.lanes=n,e.stateNode={isHidden:!1},e}function zo(e,t,n){return e=Qe(6,e,null,t),e.lanes=n,e}function Uo(e,t,n){return t=Qe(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function yy(e,t,n,r,i){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=vo(0),this.expirationTimes=vo(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=vo(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function Ba(e,t,n,r,i,l,o,s,a){return e=new yy(e,t,n,s,a),t===1?(t=1,l===!0&&(t|=8)):t=0,l=Qe(3,null,null,t),e.current=l,l.stateNode=e,l.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Na(l),e}function gy(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:An,key:r==null?null:""+r,children:e,containerInfo:t,implementation:n}}function lh(e){if(!e)return nn;e=e._reactInternals;e:{if(jn(e)!==e||e.tag!==1)throw Error(P(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(_e(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(P(171))}if(e.tag===1){var n=e.type;if(_e(n))return ld(e,n,t)}return t}function oh(e,t,n,r,i,l,o,s,a){return e=Ba(n,r,!0,e,i,l,o,s,a),e.context=lh(null),n=e.current,r=Se(),i=Jt(n),l=St(r,i),l.callback=t??null,Xt(n,l,i),e.current.lanes=i,Ri(e,i,r),Oe(e,r),e}function to(e,t,n,r){var i=t.current,l=Se(),o=Jt(i);return n=lh(n),t.context===null?t.context=n:t.pendingContext=n,t=St(l,o),t.payload={element:e},r=r===void 0?null:r,r!==null&&(t.callback=r),e=Xt(i,t,o),e!==null&&(et(e,i,o,l),sl(e,i,o)),o}function Al(e){if(e=e.current,!e.child)return null;switch(e.child.tag){case 5:return e.child.stateNode;default:return e.child.stateNode}}function dc(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function Va(e,t){dc(e,t),(e=e.alternate)&&dc(e,t)}function vy(){return null}var sh=typeof reportError=="function"?reportError:function(e){console.error(e)};function Ya(e){this._internalRoot=e}no.prototype.render=Ya.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(P(409));to(e,t,null,null)};no.prototype.unmount=Ya.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Mn(function(){to(null,e,null,null)}),t[Ct]=null}};function no(e){this._internalRoot=e}no.prototype.unstable_scheduleHydration=function(e){if(e){var t=Uf();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Ft.length&&t!==0&&t<Ft[n].priority;n++);Ft.splice(n,0,e),n===0&&Wf(e)}};function Ka(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function ro(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function hc(){}function wy(e,t,n,r,i){if(i){if(typeof r=="function"){var l=r;r=function(){var u=Al(o);l.call(u)}}var o=oh(t,r,e,0,null,!1,!1,"",hc);return e._reactRootContainer=o,e[Ct]=o.current,si(e.nodeType===8?e.parentNode:e),Mn(),o}for(;i=e.lastChild;)e.removeChild(i);if(typeof r=="function"){var s=r;r=function(){var u=Al(a);s.call(u)}}var a=Ba(e,0,!1,null,null,!1,!1,"",hc);return e._reactRootContainer=a,e[Ct]=a.current,si(e.nodeType===8?e.parentNode:e),Mn(function(){to(t,a,n,r)}),a}function io(e,t,n,r,i){var l=n._reactRootContainer;if(l){var o=l;if(typeof i=="function"){var s=i;i=function(){var a=Al(o);s.call(a)}}to(t,o,e,i)}else o=wy(n,t,e,i,r);return Al(o)}If=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=Wr(t.pendingLanes);n!==0&&(da(t,n|1),Oe(t,ne()),!(W&6)&&(Sr=ne()+500,on()))}break;case 13:Mn(function(){var r=Pt(e,1);if(r!==null){var i=Se();et(r,e,1,i)}}),Va(e,1)}};ha=function(e){if(e.tag===13){var t=Pt(e,134217728);if(t!==null){var n=Se();et(t,e,134217728,n)}Va(e,134217728)}};zf=function(e){if(e.tag===13){var t=Jt(e),n=Pt(e,t);if(n!==null){var r=Se();et(n,e,t,r)}Va(e,t)}};Uf=function(){return B};Af=function(e,t){var n=B;try{return B=e,t()}finally{B=n}};rs=function(e,t,n){switch(t){case"input":if(Xo(e,n),t=n.name,n.type==="radio"&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var i=Gl(r);if(!i)throw Error(P(90));yf(r),Xo(r,i)}}}break;case"textarea":vf(e,n);break;case"select":t=n.value,t!=null&&bn(e,!!n.multiple,t,!1)}};Pf=Wa;Rf=Mn;var xy={usingClientEntryPoint:!1,Events:[Ti,Bn,Gl,kf,Cf,Wa]},Fr={findFiberByHostInstance:dn,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},Sy={bundleType:Fr.bundleType,version:Fr.version,rendererPackageName:Fr.rendererPackageName,rendererConfig:Fr.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:Tt.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=_f(e),e===null?null:e.stateNode},findFiberByHostInstance:Fr.findFiberByHostInstance||vy,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Zi=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Zi.isDisabled&&Zi.supportsFiber)try{Bl=Zi.inject(Sy),ft=Zi}catch{}}je.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=xy;je.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!Ka(t))throw Error(P(200));return gy(e,t,null,n)};je.createRoot=function(e,t){if(!Ka(e))throw Error(P(299));var n=!1,r="",i=sh;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onRecoverableError!==void 0&&(i=t.onRecoverableError)),t=Ba(e,1,!1,null,null,n,!1,r,i),e[Ct]=t.current,si(e.nodeType===8?e.parentNode:e),new Ya(t)};je.findDOMNode=function(e){if(e==null)return null;if(e.nodeType===1)return e;var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(P(188)):(e=Object.keys(e).join(","),Error(P(268,e)));return e=_f(t),e=e===null?null:e.stateNode,e};je.flushSync=function(e){return Mn(e)};je.hydrate=function(e,t,n){if(!ro(t))throw Error(P(200));return io(null,e,t,!0,n)};je.hydrateRoot=function(e,t,n){if(!Ka(e))throw Error(P(405));var r=n!=null&&n.hydratedSources||null,i=!1,l="",o=sh;if(n!=null&&(n.unstable_strictMode===!0&&(i=!0),n.identifierPrefix!==void 0&&(l=n.identifierPrefix),n.onRecoverableError!==void 0&&(o=n.onRecoverableError)),t=oh(t,null,e,1,n??null,i,!1,l,o),e[Ct]=t.current,si(e),r)for(e=0;e<r.length;e++)n=r[e],i=n._getVersion,i=i(n._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[n,i]:t.mutableSourceEagerHydrationData.push(n,i);return new no(t)};je.render=function(e,t,n){if(!ro(t))throw Error(P(200));return io(null,e,t,!1,n)};je.unmountComponentAtNode=function(e){if(!ro(e))throw Error(P(40));return e._reactRootContainer?(Mn(function(){io(null,null,e,!1,function(){e._reactRootContainer=null,e[Ct]=null})}),!0):!1};je.unstable_batchedUpdates=Wa;je.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!ro(n))throw Error(P(200));if(e==null||e._reactInternals===void 0)throw Error(P(38));return io(e,t,n,!1,r)};je.version="18.3.1-next-f1338f8080-20240426";function ah(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(ah)}catch(e){console.error(e)}}ah(),af.exports=je;var Ey=af.exports,pc=Ey;Ho.createRoot=pc.createRoot,Ho.hydrateRoot=pc.hydrateRoot;var Oi=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},ky={setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:e=>clearTimeout(e),setInterval:(e,t)=>setInterval(e,t),clearInterval:e=>clearInterval(e)},It,Zs,Wc,Cy=(Wc=class{constructor(){D(this,It,ky);D(this,Zs,!1)}setTimeoutProvider(e){O(this,It,e)}setTimeout(e,t){return y(this,It).setTimeout(e,t)}clearTimeout(e){y(this,It).clearTimeout(e)}setInterval(e,t){return y(this,It).setInterval(e,t)}clearInterval(e){y(this,It).clearInterval(e)}},It=new WeakMap,Zs=new WeakMap,Wc),mn=new Cy;function Py(e){setTimeout(e,0)}var Ln=typeof window>"u"||"Deno"in globalThis;function Pe(){}function Ry(e,t){return typeof e=="function"?e(t):e}function Is(e){return typeof e=="number"&&e>=0&&e!==1/0}function uh(e,t){return Math.max(e+(t||0)-Date.now(),0)}function en(e,t){return typeof e=="function"?e(t):e}function Ae(e,t){return typeof e=="function"?e(t):e}function mc(e,t){const{type:n="all",exact:r,fetchStatus:i,predicate:l,queryKey:o,stale:s}=e;if(o){if(r){if(t.queryHash!==Ga(o,t.options))return!1}else if(!gi(t.queryKey,o))return!1}if(n!=="all"){const a=t.isActive();if(n==="active"&&!a||n==="inactive"&&a)return!1}return!(typeof s=="boolean"&&t.isStale()!==s||i&&i!==t.state.fetchStatus||l&&!l(t))}function yc(e,t){const{exact:n,status:r,predicate:i,mutationKey:l}=e;if(l){if(!t.options.mutationKey)return!1;if(n){if(yi(t.options.mutationKey)!==yi(l))return!1}else if(!gi(t.options.mutationKey,l))return!1}return!(r&&t.state.status!==r||i&&!i(t))}function Ga(e,t){return((t==null?void 0:t.queryKeyHashFn)||yi)(e)}function yi(e){return JSON.stringify(e,(t,n)=>Us(n)?Object.keys(n).sort().reduce((r,i)=>(r[i]=n[i],r),{}):n)}function gi(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?Object.keys(t).every(n=>gi(e[n],t[n])):!1}var Ny=Object.prototype.hasOwnProperty;function ch(e,t){if(e===t)return e;const n=gc(e)&&gc(t);if(!n&&!(Us(e)&&Us(t)))return t;const i=(n?e:Object.keys(e)).length,l=n?t:Object.keys(t),o=l.length,s=n?new Array(o):{};let a=0;for(let u=0;u<o;u++){const f=n?u:l[u],d=e[f],p=t[f];if(d===p){s[f]=d,(n?u<i:Ny.call(e,f))&&a++;continue}if(d===null||p===null||typeof d!="object"||typeof p!="object"){s[f]=p;continue}const v=ch(d,p);s[f]=v,v===d&&a++}return i===o&&a===i?e:s}function zs(e,t){if(!t||Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(e[n]!==t[n])return!1;return!0}function gc(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function Us(e){if(!vc(e))return!1;const t=e.constructor;if(t===void 0)return!0;const n=t.prototype;return!(!vc(n)||!n.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(e)!==Object.prototype)}function vc(e){return Object.prototype.toString.call(e)==="[object Object]"}function Ty(e){return new Promise(t=>{mn.setTimeout(t,e)})}function As(e,t,n){return typeof n.structuralSharing=="function"?n.structuralSharing(e,t):n.structuralSharing!==!1?ch(e,t):t}function _y(e,t,n=0){const r=[...e,t];return n&&r.length>n?r.slice(1):r}function Oy(e,t,n=0){const r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var qa=Symbol();function fh(e,t){return!e.queryFn&&(t!=null&&t.initialPromise)?()=>t.initialPromise:!e.queryFn||e.queryFn===qa?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}function dh(e,t){return typeof e=="function"?e(...t):!!e}function My(e,t,n){let r=!1,i;return Object.defineProperty(e,"signal",{enumerable:!0,get:()=>(i??(i=t()),r||(r=!0,i.aborted?n():i.addEventListener("abort",n,{once:!0})),i)}),e}var yn,zt,rr,$c,Ly=($c=class extends Oi{constructor(){super();D(this,yn);D(this,zt);D(this,rr);O(this,rr,t=>{if(!Ln&&window.addEventListener){const n=()=>t();return window.addEventListener("visibilitychange",n,!1),()=>{window.removeEventListener("visibilitychange",n)}}})}onSubscribe(){y(this,zt)||this.setEventListener(y(this,rr))}onUnsubscribe(){var t;this.hasListeners()||((t=y(this,zt))==null||t.call(this),O(this,zt,void 0))}setEventListener(t){var n;O(this,rr,t),(n=y(this,zt))==null||n.call(this),O(this,zt,t(r=>{typeof r=="boolean"?this.setFocused(r):this.onFocus()}))}setFocused(t){y(this,yn)!==t&&(O(this,yn,t),this.onFocus())}onFocus(){const t=this.isFocused();this.listeners.forEach(n=>{n(t)})}isFocused(){var t;return typeof y(this,yn)=="boolean"?y(this,yn):((t=globalThis.document)==null?void 0:t.visibilityState)!=="hidden"}},yn=new WeakMap,zt=new WeakMap,rr=new WeakMap,$c),Xa=new Ly;function Ws(){let e,t;const n=new Promise((i,l)=>{e=i,t=l});n.status="pending",n.catch(()=>{});function r(i){Object.assign(n,i),delete n.resolve,delete n.reject}return n.resolve=i=>{r({status:"fulfilled",value:i}),e(i)},n.reject=i=>{r({status:"rejected",reason:i}),t(i)},n}var Dy=Py;function Fy(){let e=[],t=0,n=s=>{s()},r=s=>{s()},i=Dy;const l=s=>{t?e.push(s):i(()=>{n(s)})},o=()=>{const s=e;e=[],s.length&&i(()=>{r(()=>{s.forEach(a=>{n(a)})})})};return{batch:s=>{let a;t++;try{a=s()}finally{t--,t||o()}return a},batchCalls:s=>(...a)=>{l(()=>{s(...a)})},schedule:l,setNotifyFunction:s=>{n=s},setBatchNotifyFunction:s=>{r=s},setScheduler:s=>{i=s}}}var fe=Fy(),ir,Ut,lr,Qc,jy=(Qc=class extends Oi{constructor(){super();D(this,ir,!0);D(this,Ut);D(this,lr);O(this,lr,t=>{if(!Ln&&window.addEventListener){const n=()=>t(!0),r=()=>t(!1);return window.addEventListener("online",n,!1),window.addEventListener("offline",r,!1),()=>{window.removeEventListener("online",n),window.removeEventListener("offline",r)}}})}onSubscribe(){y(this,Ut)||this.setEventListener(y(this,lr))}onUnsubscribe(){var t;this.hasListeners()||((t=y(this,Ut))==null||t.call(this),O(this,Ut,void 0))}setEventListener(t){var n;O(this,lr,t),(n=y(this,Ut))==null||n.call(this),O(this,Ut,t(this.setOnline.bind(this)))}setOnline(t){y(this,ir)!==t&&(O(this,ir,t),this.listeners.forEach(r=>{r(t)}))}isOnline(){return y(this,ir)}},ir=new WeakMap,Ut=new WeakMap,lr=new WeakMap,Qc),Wl=new jy;function Iy(e){return Math.min(1e3*2**e,3e4)}function hh(e){return(e??"online")==="online"?Wl.isOnline():!0}var $s=class extends Error{constructor(e){super("CancelledError"),this.revert=e==null?void 0:e.revert,this.silent=e==null?void 0:e.silent}};function ph(e){let t=!1,n=0,r;const i=Ws(),l=()=>i.status!=="pending",o=g=>{var E;if(!l()){const h=new $s(g);p(h),(E=e.onCancel)==null||E.call(e,h)}},s=()=>{t=!0},a=()=>{t=!1},u=()=>Xa.isFocused()&&(e.networkMode==="always"||Wl.isOnline())&&e.canRun(),f=()=>hh(e.networkMode)&&e.canRun(),d=g=>{l()||(r==null||r(),i.resolve(g))},p=g=>{l()||(r==null||r(),i.reject(g))},v=()=>new Promise(g=>{var E;r=h=>{(l()||u())&&g(h)},(E=e.onPause)==null||E.call(e)}).then(()=>{var g;r=void 0,l()||(g=e.onContinue)==null||g.call(e)}),w=()=>{if(l())return;let g;const E=n===0?e.initialPromise:void 0;try{g=E??e.fn()}catch(h){g=Promise.reject(h)}Promise.resolve(g).then(d).catch(h=>{var R;if(l())return;const c=e.retry??(Ln?0:3),m=e.retryDelay??Iy,x=typeof m=="function"?m(n,h):m,C=c===!0||typeof c=="number"&&n<c||typeof c=="function"&&c(n,h);if(t||!C){p(h);return}n++,(R=e.onFail)==null||R.call(e,n,h),Ty(x).then(()=>u()?void 0:v()).then(()=>{t?p(h):w()})})};return{promise:i,status:()=>i.status,cancel:o,continue:()=>(r==null||r(),i),cancelRetry:s,continueRetry:a,canStart:f,start:()=>(f()?w():v().then(w),i)}}var gn,Hc,mh=(Hc=class{constructor(){D(this,gn)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),Is(this.gcTime)&&O(this,gn,mn.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(Ln?1/0:5*60*1e3))}clearGcTimeout(){y(this,gn)&&(mn.clearTimeout(y(this,gn)),O(this,gn,void 0))}},gn=new WeakMap,Hc),vn,or,Ue,wn,se,xi,xn,qe,pt,Bc,zy=(Bc=class extends mh{constructor(t){super();D(this,qe);D(this,vn);D(this,or);D(this,Ue);D(this,wn);D(this,se);D(this,xi);D(this,xn);O(this,xn,!1),O(this,xi,t.defaultOptions),this.setOptions(t.options),this.observers=[],O(this,wn,t.client),O(this,Ue,y(this,wn).getQueryCache()),this.queryKey=t.queryKey,this.queryHash=t.queryHash,O(this,vn,xc(this.options)),this.state=t.state??y(this,vn),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var t;return(t=y(this,se))==null?void 0:t.promise}setOptions(t){if(this.options={...y(this,xi),...t},this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){const n=xc(this.options);n.data!==void 0&&(this.setState(wc(n.data,n.dataUpdatedAt)),O(this,vn,n))}}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&y(this,Ue).remove(this)}setData(t,n){const r=As(this.state.data,t,this.options);return U(this,qe,pt).call(this,{data:r,type:"success",dataUpdatedAt:n==null?void 0:n.updatedAt,manual:n==null?void 0:n.manual}),r}setState(t,n){U(this,qe,pt).call(this,{type:"setState",state:t,setStateOptions:n})}cancel(t){var r,i;const n=(r=y(this,se))==null?void 0:r.promise;return(i=y(this,se))==null||i.cancel(t),n?n.then(Pe).catch(Pe):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(y(this,vn))}isActive(){return this.observers.some(t=>Ae(t.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===qa||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStatic(){return this.getObserversCount()>0?this.observers.some(t=>en(t.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(t=>t.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(t=0){return this.state.data===void 0?!0:t==="static"?!1:this.state.isInvalidated?!0:!uh(this.state.dataUpdatedAt,t)}onFocus(){var n;const t=this.observers.find(r=>r.shouldFetchOnWindowFocus());t==null||t.refetch({cancelRefetch:!1}),(n=y(this,se))==null||n.continue()}onOnline(){var n;const t=this.observers.find(r=>r.shouldFetchOnReconnect());t==null||t.refetch({cancelRefetch:!1}),(n=y(this,se))==null||n.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),y(this,Ue).notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(n=>n!==t),this.observers.length||(y(this,se)&&(y(this,xn)?y(this,se).cancel({revert:!0}):y(this,se).cancelRetry()),this.scheduleGc()),y(this,Ue).notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||U(this,qe,pt).call(this,{type:"invalidate"})}async fetch(t,n){var a,u,f,d,p,v,w,g,E,h,c,m;if(this.state.fetchStatus!=="idle"&&((a=y(this,se))==null?void 0:a.status())!=="rejected"){if(this.state.data!==void 0&&(n!=null&&n.cancelRefetch))this.cancel({silent:!0});else if(y(this,se))return y(this,se).continueRetry(),y(this,se).promise}if(t&&this.setOptions(t),!this.options.queryFn){const x=this.observers.find(C=>C.options.queryFn);x&&this.setOptions(x.options)}const r=new AbortController,i=x=>{Object.defineProperty(x,"signal",{enumerable:!0,get:()=>(O(this,xn,!0),r.signal)})},l=()=>{const x=fh(this.options,n),R=(()=>{const T={client:y(this,wn),queryKey:this.queryKey,meta:this.meta};return i(T),T})();return O(this,xn,!1),this.options.persister?this.options.persister(x,R,this):x(R)},s=(()=>{const x={fetchOptions:n,options:this.options,queryKey:this.queryKey,client:y(this,wn),state:this.state,fetchFn:l};return i(x),x})();(u=this.options.behavior)==null||u.onFetch(s,this),O(this,or,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((f=s.fetchOptions)==null?void 0:f.meta))&&U(this,qe,pt).call(this,{type:"fetch",meta:(d=s.fetchOptions)==null?void 0:d.meta}),O(this,se,ph({initialPromise:n==null?void 0:n.initialPromise,fn:s.fetchFn,onCancel:x=>{x instanceof $s&&x.revert&&this.setState({...y(this,or),fetchStatus:"idle"}),r.abort()},onFail:(x,C)=>{U(this,qe,pt).call(this,{type:"failed",failureCount:x,error:C})},onPause:()=>{U(this,qe,pt).call(this,{type:"pause"})},onContinue:()=>{U(this,qe,pt).call(this,{type:"continue"})},retry:s.options.retry,retryDelay:s.options.retryDelay,networkMode:s.options.networkMode,canRun:()=>!0}));try{const x=await y(this,se).start();if(x===void 0)throw new Error(`${this.queryHash} data is undefined`);return this.setData(x),(v=(p=y(this,Ue).config).onSuccess)==null||v.call(p,x,this),(g=(w=y(this,Ue).config).onSettled)==null||g.call(w,x,this.state.error,this),x}catch(x){if(x instanceof $s){if(x.silent)return y(this,se).promise;if(x.revert){if(this.state.data===void 0)throw x;return this.state.data}}throw U(this,qe,pt).call(this,{type:"error",error:x}),(h=(E=y(this,Ue).config).onError)==null||h.call(E,x,this),(m=(c=y(this,Ue).config).onSettled)==null||m.call(c,this.state.data,x,this),x}finally{this.scheduleGc()}}},vn=new WeakMap,or=new WeakMap,Ue=new WeakMap,wn=new WeakMap,se=new WeakMap,xi=new WeakMap,xn=new WeakMap,qe=new WeakSet,pt=function(t){const n=r=>{switch(t.type){case"failed":return{...r,fetchFailureCount:t.failureCount,fetchFailureReason:t.error};case"pause":return{...r,fetchStatus:"paused"};case"continue":return{...r,fetchStatus:"fetching"};case"fetch":return{...r,...yh(r.data,this.options),fetchMeta:t.meta??null};case"success":const i={...r,...wc(t.data,t.dataUpdatedAt),dataUpdateCount:r.dataUpdateCount+1,...!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return O(this,or,t.manual?i:void 0),i;case"error":const l=t.error;return{...r,error:l,errorUpdateCount:r.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:r.fetchFailureCount+1,fetchFailureReason:l,fetchStatus:"idle",status:"error",isInvalidated:!0};case"invalidate":return{...r,isInvalidated:!0};case"setState":return{...r,...t.state}}};this.state=n(this.state),fe.batch(()=>{this.observers.forEach(r=>{r.onQueryUpdate()}),y(this,Ue).notify({query:this,type:"updated",action:t})})},Bc);function yh(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:hh(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function wc(e,t){return{data:e,dataUpdatedAt:t??Date.now(),error:null,isInvalidated:!1,status:"success"}}function xc(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,n=t!==void 0,r=n?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?r??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?"success":"pending",fetchStatus:"idle"}}var Ce,A,Si,ve,Sn,sr,gt,At,Ei,ar,ur,En,kn,Wt,cr,Q,Qr,Qs,Hs,Bs,Vs,Ys,Ks,Gs,gh,Vc,Uy=(Vc=class extends Oi{constructor(t,n){super();D(this,Q);D(this,Ce);D(this,A);D(this,Si);D(this,ve);D(this,Sn);D(this,sr);D(this,gt);D(this,At);D(this,Ei);D(this,ar);D(this,ur);D(this,En);D(this,kn);D(this,Wt);D(this,cr,new Set);this.options=n,O(this,Ce,t),O(this,At,null),O(this,gt,Ws()),this.bindMethods(),this.setOptions(n)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(y(this,A).addObserver(this),Sc(y(this,A),this.options)?U(this,Q,Qr).call(this):this.updateResult(),U(this,Q,Vs).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return qs(y(this,A),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return qs(y(this,A),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,U(this,Q,Ys).call(this),U(this,Q,Ks).call(this),y(this,A).removeObserver(this)}setOptions(t){const n=this.options,r=y(this,A);if(this.options=y(this,Ce).defaultQueryOptions(t),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof Ae(this.options.enabled,y(this,A))!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");U(this,Q,Gs).call(this),y(this,A).setOptions(this.options),n._defaulted&&!zs(this.options,n)&&y(this,Ce).getQueryCache().notify({type:"observerOptionsUpdated",query:y(this,A),observer:this});const i=this.hasListeners();i&&Ec(y(this,A),r,this.options,n)&&U(this,Q,Qr).call(this),this.updateResult(),i&&(y(this,A)!==r||Ae(this.options.enabled,y(this,A))!==Ae(n.enabled,y(this,A))||en(this.options.staleTime,y(this,A))!==en(n.staleTime,y(this,A)))&&U(this,Q,Qs).call(this);const l=U(this,Q,Hs).call(this);i&&(y(this,A)!==r||Ae(this.options.enabled,y(this,A))!==Ae(n.enabled,y(this,A))||l!==y(this,Wt))&&U(this,Q,Bs).call(this,l)}getOptimisticResult(t){const n=y(this,Ce).getQueryCache().build(y(this,Ce),t),r=this.createResult(n,t);return Wy(this,r)&&(O(this,ve,r),O(this,sr,this.options),O(this,Sn,y(this,A).state)),r}getCurrentResult(){return y(this,ve)}trackResult(t,n){return new Proxy(t,{get:(r,i)=>(this.trackProp(i),n==null||n(i),i==="promise"&&(this.trackProp("data"),!this.options.experimental_prefetchInRender&&y(this,gt).status==="pending"&&y(this,gt).reject(new Error("experimental_prefetchInRender feature flag is not enabled"))),Reflect.get(r,i))})}trackProp(t){y(this,cr).add(t)}getCurrentQuery(){return y(this,A)}refetch({...t}={}){return this.fetch({...t})}fetchOptimistic(t){const n=y(this,Ce).defaultQueryOptions(t),r=y(this,Ce).getQueryCache().build(y(this,Ce),n);return r.fetch().then(()=>this.createResult(r,n))}fetch(t){return U(this,Q,Qr).call(this,{...t,cancelRefetch:t.cancelRefetch??!0}).then(()=>(this.updateResult(),y(this,ve)))}createResult(t,n){var I;const r=y(this,A),i=this.options,l=y(this,ve),o=y(this,Sn),s=y(this,sr),u=t!==r?t.state:y(this,Si),{state:f}=t;let d={...f},p=!1,v;if(n._optimisticResults){const _=this.hasListeners(),$=!_&&Sc(t,n),ze=_&&Ec(t,r,n,i);($||ze)&&(d={...d,...yh(f.data,t.options)}),n._optimisticResults==="isRestoring"&&(d.fetchStatus="idle")}let{error:w,errorUpdatedAt:g,status:E}=d;v=d.data;let h=!1;if(n.placeholderData!==void 0&&v===void 0&&E==="pending"){let _;l!=null&&l.isPlaceholderData&&n.placeholderData===(s==null?void 0:s.placeholderData)?(_=l.data,h=!0):_=typeof n.placeholderData=="function"?n.placeholderData((I=y(this,ur))==null?void 0:I.state.data,y(this,ur)):n.placeholderData,_!==void 0&&(E="success",v=As(l==null?void 0:l.data,_,n),p=!0)}if(n.select&&v!==void 0&&!h)if(l&&v===(o==null?void 0:o.data)&&n.select===y(this,Ei))v=y(this,ar);else try{O(this,Ei,n.select),v=n.select(v),v=As(l==null?void 0:l.data,v,n),O(this,ar,v),O(this,At,null)}catch(_){O(this,At,_)}y(this,At)&&(w=y(this,At),v=y(this,ar),g=Date.now(),E="error");const c=d.fetchStatus==="fetching",m=E==="pending",x=E==="error",C=m&&c,R=v!==void 0,N={status:E,fetchStatus:d.fetchStatus,isPending:m,isSuccess:E==="success",isError:x,isInitialLoading:C,isLoading:C,data:v,dataUpdatedAt:d.dataUpdatedAt,error:w,errorUpdatedAt:g,failureCount:d.fetchFailureCount,failureReason:d.fetchFailureReason,errorUpdateCount:d.errorUpdateCount,isFetched:d.dataUpdateCount>0||d.errorUpdateCount>0,isFetchedAfterMount:d.dataUpdateCount>u.dataUpdateCount||d.errorUpdateCount>u.errorUpdateCount,isFetching:c,isRefetching:c&&!m,isLoadingError:x&&!R,isPaused:d.fetchStatus==="paused",isPlaceholderData:p,isRefetchError:x&&R,isStale:ba(t,n),refetch:this.refetch,promise:y(this,gt),isEnabled:Ae(n.enabled,t)!==!1};if(this.options.experimental_prefetchInRender){const _=it=>{N.status==="error"?it.reject(N.error):N.data!==void 0&&it.resolve(N.data)},$=()=>{const it=O(this,gt,N.promise=Ws());_(it)},ze=y(this,gt);switch(ze.status){case"pending":t.queryHash===r.queryHash&&_(ze);break;case"fulfilled":(N.status==="error"||N.data!==ze.value)&&$();break;case"rejected":(N.status!=="error"||N.error!==ze.reason)&&$();break}}return N}updateResult(){const t=y(this,ve),n=this.createResult(y(this,A),this.options);if(O(this,Sn,y(this,A).state),O(this,sr,this.options),y(this,Sn).data!==void 0&&O(this,ur,y(this,A)),zs(n,t))return;O(this,ve,n);const r=()=>{if(!t)return!0;const{notifyOnChangeProps:i}=this.options,l=typeof i=="function"?i():i;if(l==="all"||!l&&!y(this,cr).size)return!0;const o=new Set(l??y(this,cr));return this.options.throwOnError&&o.add("error"),Object.keys(y(this,ve)).some(s=>{const a=s;return y(this,ve)[a]!==t[a]&&o.has(a)})};U(this,Q,gh).call(this,{listeners:r()})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&U(this,Q,Vs).call(this)}},Ce=new WeakMap,A=new WeakMap,Si=new WeakMap,ve=new WeakMap,Sn=new WeakMap,sr=new WeakMap,gt=new WeakMap,At=new WeakMap,Ei=new WeakMap,ar=new WeakMap,ur=new WeakMap,En=new WeakMap,kn=new WeakMap,Wt=new WeakMap,cr=new WeakMap,Q=new WeakSet,Qr=function(t){U(this,Q,Gs).call(this);let n=y(this,A).fetch(this.options,t);return t!=null&&t.throwOnError||(n=n.catch(Pe)),n},Qs=function(){U(this,Q,Ys).call(this);const t=en(this.options.staleTime,y(this,A));if(Ln||y(this,ve).isStale||!Is(t))return;const r=uh(y(this,ve).dataUpdatedAt,t)+1;O(this,En,mn.setTimeout(()=>{y(this,ve).isStale||this.updateResult()},r))},Hs=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(y(this,A)):this.options.refetchInterval)??!1},Bs=function(t){U(this,Q,Ks).call(this),O(this,Wt,t),!(Ln||Ae(this.options.enabled,y(this,A))===!1||!Is(y(this,Wt))||y(this,Wt)===0)&&O(this,kn,mn.setInterval(()=>{(this.options.refetchIntervalInBackground||Xa.isFocused())&&U(this,Q,Qr).call(this)},y(this,Wt)))},Vs=function(){U(this,Q,Qs).call(this),U(this,Q,Bs).call(this,U(this,Q,Hs).call(this))},Ys=function(){y(this,En)&&(mn.clearTimeout(y(this,En)),O(this,En,void 0))},Ks=function(){y(this,kn)&&(mn.clearInterval(y(this,kn)),O(this,kn,void 0))},Gs=function(){const t=y(this,Ce).getQueryCache().build(y(this,Ce),this.options);if(t===y(this,A))return;const n=y(this,A);O(this,A,t),O(this,Si,t.state),this.hasListeners()&&(n==null||n.removeObserver(this),t.addObserver(this))},gh=function(t){fe.batch(()=>{t.listeners&&this.listeners.forEach(n=>{n(y(this,ve))}),y(this,Ce).getQueryCache().notify({query:y(this,A),type:"observerResultsUpdated"})})},Vc);function Ay(e,t){return Ae(t.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status==="error"&&t.retryOnMount===!1)}function Sc(e,t){return Ay(e,t)||e.state.data!==void 0&&qs(e,t,t.refetchOnMount)}function qs(e,t,n){if(Ae(t.enabled,e)!==!1&&en(t.staleTime,e)!=="static"){const r=typeof n=="function"?n(e):n;return r==="always"||r!==!1&&ba(e,t)}return!1}function Ec(e,t,n,r){return(e!==t||Ae(r.enabled,e)===!1)&&(!n.suspense||e.state.status!=="error")&&ba(e,n)}function ba(e,t){return Ae(t.enabled,e)!==!1&&e.isStaleByTime(en(t.staleTime,e))}function Wy(e,t){return!zs(e.getCurrentResult(),t)}function kc(e){return{onFetch:(t,n)=>{var f,d,p,v,w;const r=t.options,i=(p=(d=(f=t.fetchOptions)==null?void 0:f.meta)==null?void 0:d.fetchMore)==null?void 0:p.direction,l=((v=t.state.data)==null?void 0:v.pages)||[],o=((w=t.state.data)==null?void 0:w.pageParams)||[];let s={pages:[],pageParams:[]},a=0;const u=async()=>{let g=!1;const E=m=>{My(m,()=>t.signal,()=>g=!0)},h=fh(t.options,t.fetchOptions),c=async(m,x,C)=>{if(g)return Promise.reject();if(x==null&&m.pages.length)return Promise.resolve(m);const T=(()=>{const $={client:t.client,queryKey:t.queryKey,pageParam:x,direction:C?"backward":"forward",meta:t.options.meta};return E($),$})(),N=await h(T),{maxPages:I}=t.options,_=C?Oy:_y;return{pages:_(m.pages,N,I),pageParams:_(m.pageParams,x,I)}};if(i&&l.length){const m=i==="backward",x=m?$y:Cc,C={pages:l,pageParams:o},R=x(r,C);s=await c(C,R,m)}else{const m=e??l.length;do{const x=a===0?o[0]??r.initialPageParam:Cc(r,s);if(a>0&&x==null)break;s=await c(s,x),a++}while(a<m)}return s};t.options.persister?t.fetchFn=()=>{var g,E;return(E=(g=t.options).persister)==null?void 0:E.call(g,u,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n)}:t.fetchFn=u}}}function Cc(e,{pages:t,pageParams:n}){const r=t.length-1;return t.length>0?e.getNextPageParam(t[r],t,n[r],n):void 0}function $y(e,{pages:t,pageParams:n}){var r;return t.length>0?(r=e.getPreviousPageParam)==null?void 0:r.call(e,t[0],t,n[0],n):void 0}var ki,st,we,Cn,at,Mt,Yc,Qy=(Yc=class extends mh{constructor(t){super();D(this,at);D(this,ki);D(this,st);D(this,we);D(this,Cn);O(this,ki,t.client),this.mutationId=t.mutationId,O(this,we,t.mutationCache),O(this,st,[]),this.state=t.state||Hy(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options=t,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){y(this,st).includes(t)||(y(this,st).push(t),this.clearGcTimeout(),y(this,we).notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){O(this,st,y(this,st).filter(n=>n!==t)),this.scheduleGc(),y(this,we).notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){y(this,st).length||(this.state.status==="pending"?this.scheduleGc():y(this,we).remove(this))}continue(){var t;return((t=y(this,Cn))==null?void 0:t.continue())??this.execute(this.state.variables)}async execute(t){var o,s,a,u,f,d,p,v,w,g,E,h,c,m,x,C,R,T,N,I;const n=()=>{U(this,at,Mt).call(this,{type:"continue"})},r={client:y(this,ki),meta:this.options.meta,mutationKey:this.options.mutationKey};O(this,Cn,ph({fn:()=>this.options.mutationFn?this.options.mutationFn(t,r):Promise.reject(new Error("No mutationFn found")),onFail:(_,$)=>{U(this,at,Mt).call(this,{type:"failed",failureCount:_,error:$})},onPause:()=>{U(this,at,Mt).call(this,{type:"pause"})},onContinue:n,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>y(this,we).canRun(this)}));const i=this.state.status==="pending",l=!y(this,Cn).canStart();try{if(i)n();else{U(this,at,Mt).call(this,{type:"pending",variables:t,isPaused:l}),await((s=(o=y(this,we).config).onMutate)==null?void 0:s.call(o,t,this,r));const $=await((u=(a=this.options).onMutate)==null?void 0:u.call(a,t,r));$!==this.state.context&&U(this,at,Mt).call(this,{type:"pending",context:$,variables:t,isPaused:l})}const _=await y(this,Cn).start();return await((d=(f=y(this,we).config).onSuccess)==null?void 0:d.call(f,_,t,this.state.context,this,r)),await((v=(p=this.options).onSuccess)==null?void 0:v.call(p,_,t,this.state.context,r)),await((g=(w=y(this,we).config).onSettled)==null?void 0:g.call(w,_,null,this.state.variables,this.state.context,this,r)),await((h=(E=this.options).onSettled)==null?void 0:h.call(E,_,null,t,this.state.context,r)),U(this,at,Mt).call(this,{type:"success",data:_}),_}catch(_){try{await((m=(c=y(this,we).config).onError)==null?void 0:m.call(c,_,t,this.state.context,this,r))}catch($){Promise.reject($)}try{await((C=(x=this.options).onError)==null?void 0:C.call(x,_,t,this.state.context,r))}catch($){Promise.reject($)}try{await((T=(R=y(this,we).config).onSettled)==null?void 0:T.call(R,void 0,_,this.state.variables,this.state.context,this,r))}catch($){Promise.reject($)}try{await((I=(N=this.options).onSettled)==null?void 0:I.call(N,void 0,_,t,this.state.context,r))}catch($){Promise.reject($)}throw U(this,at,Mt).call(this,{type:"error",error:_}),_}finally{y(this,we).runNext(this)}}},ki=new WeakMap,st=new WeakMap,we=new WeakMap,Cn=new WeakMap,at=new WeakSet,Mt=function(t){const n=r=>{switch(t.type){case"failed":return{...r,failureCount:t.failureCount,failureReason:t.error};case"pause":return{...r,isPaused:!0};case"continue":return{...r,isPaused:!1};case"pending":return{...r,context:t.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:t.isPaused,status:"pending",variables:t.variables,submittedAt:Date.now()};case"success":return{...r,data:t.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...r,data:void 0,error:t.error,failureCount:r.failureCount+1,failureReason:t.error,isPaused:!1,status:"error"}}};this.state=n(this.state),fe.batch(()=>{y(this,st).forEach(r=>{r.onMutationUpdate(t)}),y(this,we).notify({mutation:this,type:"updated",action:t})})},Yc);function Hy(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var vt,Xe,Ci,Kc,By=(Kc=class extends Oi{constructor(t={}){super();D(this,vt);D(this,Xe);D(this,Ci);this.config=t,O(this,vt,new Set),O(this,Xe,new Map),O(this,Ci,0)}build(t,n,r){const i=new Qy({client:t,mutationCache:this,mutationId:++Ii(this,Ci)._,options:t.defaultMutationOptions(n),state:r});return this.add(i),i}add(t){y(this,vt).add(t);const n=el(t);if(typeof n=="string"){const r=y(this,Xe).get(n);r?r.push(t):y(this,Xe).set(n,[t])}this.notify({type:"added",mutation:t})}remove(t){if(y(this,vt).delete(t)){const n=el(t);if(typeof n=="string"){const r=y(this,Xe).get(n);if(r)if(r.length>1){const i=r.indexOf(t);i!==-1&&r.splice(i,1)}else r[0]===t&&y(this,Xe).delete(n)}}this.notify({type:"removed",mutation:t})}canRun(t){const n=el(t);if(typeof n=="string"){const r=y(this,Xe).get(n),i=r==null?void 0:r.find(l=>l.state.status==="pending");return!i||i===t}else return!0}runNext(t){var r;const n=el(t);if(typeof n=="string"){const i=(r=y(this,Xe).get(n))==null?void 0:r.find(l=>l!==t&&l.state.isPaused);return(i==null?void 0:i.continue())??Promise.resolve()}else return Promise.resolve()}clear(){fe.batch(()=>{y(this,vt).forEach(t=>{this.notify({type:"removed",mutation:t})}),y(this,vt).clear(),y(this,Xe).clear()})}getAll(){return Array.from(y(this,vt))}find(t){const n={exact:!0,...t};return this.getAll().find(r=>yc(n,r))}findAll(t={}){return this.getAll().filter(n=>yc(t,n))}notify(t){fe.batch(()=>{this.listeners.forEach(n=>{n(t)})})}resumePausedMutations(){const t=this.getAll().filter(n=>n.state.isPaused);return fe.batch(()=>Promise.all(t.map(n=>n.continue().catch(Pe))))}},vt=new WeakMap,Xe=new WeakMap,Ci=new WeakMap,Kc);function el(e){var t;return(t=e.options.scope)==null?void 0:t.id}var ut,Gc,Vy=(Gc=class extends Oi{constructor(t={}){super();D(this,ut);this.config=t,O(this,ut,new Map)}build(t,n,r){const i=n.queryKey,l=n.queryHash??Ga(i,n);let o=this.get(l);return o||(o=new zy({client:t,queryKey:i,queryHash:l,options:t.defaultQueryOptions(n),state:r,defaultOptions:t.getQueryDefaults(i)}),this.add(o)),o}add(t){y(this,ut).has(t.queryHash)||(y(this,ut).set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){const n=y(this,ut).get(t.queryHash);n&&(t.destroy(),n===t&&y(this,ut).delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){fe.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return y(this,ut).get(t)}getAll(){return[...y(this,ut).values()]}find(t){const n={exact:!0,...t};return this.getAll().find(r=>mc(n,r))}findAll(t={}){const n=this.getAll();return Object.keys(t).length>0?n.filter(r=>mc(t,r)):n}notify(t){fe.batch(()=>{this.listeners.forEach(n=>{n(t)})})}onFocus(){fe.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){fe.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},ut=new WeakMap,Gc),Z,$t,Qt,fr,dr,Ht,hr,pr,qc,Yy=(qc=class{constructor(e={}){D(this,Z);D(this,$t);D(this,Qt);D(this,fr);D(this,dr);D(this,Ht);D(this,hr);D(this,pr);O(this,Z,e.queryCache||new Vy),O(this,$t,e.mutationCache||new By),O(this,Qt,e.defaultOptions||{}),O(this,fr,new Map),O(this,dr,new Map),O(this,Ht,0)}mount(){Ii(this,Ht)._++,y(this,Ht)===1&&(O(this,hr,Xa.subscribe(async e=>{e&&(await this.resumePausedMutations(),y(this,Z).onFocus())})),O(this,pr,Wl.subscribe(async e=>{e&&(await this.resumePausedMutations(),y(this,Z).onOnline())})))}unmount(){var e,t;Ii(this,Ht)._--,y(this,Ht)===0&&((e=y(this,hr))==null||e.call(this),O(this,hr,void 0),(t=y(this,pr))==null||t.call(this),O(this,pr,void 0))}isFetching(e){return y(this,Z).findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return y(this,$t).findAll({...e,status:"pending"}).length}getQueryData(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=y(this,Z).get(t.queryHash))==null?void 0:n.state.data}ensureQueryData(e){const t=this.defaultQueryOptions(e),n=y(this,Z).build(this,t),r=n.state.data;return r===void 0?this.fetchQuery(e):(e.revalidateIfStale&&n.isStaleByTime(en(t.staleTime,n))&&this.prefetchQuery(t),Promise.resolve(r))}getQueriesData(e){return y(this,Z).findAll(e).map(({queryKey:t,state:n})=>{const r=n.data;return[t,r]})}setQueryData(e,t,n){const r=this.defaultQueryOptions({queryKey:e}),i=y(this,Z).get(r.queryHash),l=i==null?void 0:i.state.data,o=Ry(t,l);if(o!==void 0)return y(this,Z).build(this,r).setData(o,{...n,manual:!0})}setQueriesData(e,t,n){return fe.batch(()=>y(this,Z).findAll(e).map(({queryKey:r})=>[r,this.setQueryData(r,t,n)]))}getQueryState(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=y(this,Z).get(t.queryHash))==null?void 0:n.state}removeQueries(e){const t=y(this,Z);fe.batch(()=>{t.findAll(e).forEach(n=>{t.remove(n)})})}resetQueries(e,t){const n=y(this,Z);return fe.batch(()=>(n.findAll(e).forEach(r=>{r.reset()}),this.refetchQueries({type:"active",...e},t)))}cancelQueries(e,t={}){const n={revert:!0,...t},r=fe.batch(()=>y(this,Z).findAll(e).map(i=>i.cancel(n)));return Promise.all(r).then(Pe).catch(Pe)}invalidateQueries(e,t={}){return fe.batch(()=>(y(this,Z).findAll(e).forEach(n=>{n.invalidate()}),(e==null?void 0:e.refetchType)==="none"?Promise.resolve():this.refetchQueries({...e,type:(e==null?void 0:e.refetchType)??(e==null?void 0:e.type)??"active"},t)))}refetchQueries(e,t={}){const n={...t,cancelRefetch:t.cancelRefetch??!0},r=fe.batch(()=>y(this,Z).findAll(e).filter(i=>!i.isDisabled()&&!i.isStatic()).map(i=>{let l=i.fetch(void 0,n);return n.throwOnError||(l=l.catch(Pe)),i.state.fetchStatus==="paused"?Promise.resolve():l}));return Promise.all(r).then(Pe)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const n=y(this,Z).build(this,t);return n.isStaleByTime(en(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(Pe).catch(Pe)}fetchInfiniteQuery(e){return e.behavior=kc(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(Pe).catch(Pe)}ensureInfiniteQueryData(e){return e.behavior=kc(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return Wl.isOnline()?y(this,$t).resumePausedMutations():Promise.resolve()}getQueryCache(){return y(this,Z)}getMutationCache(){return y(this,$t)}getDefaultOptions(){return y(this,Qt)}setDefaultOptions(e){O(this,Qt,e)}setQueryDefaults(e,t){y(this,fr).set(yi(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...y(this,fr).values()],n={};return t.forEach(r=>{gi(e,r.queryKey)&&Object.assign(n,r.defaultOptions)}),n}setMutationDefaults(e,t){y(this,dr).set(yi(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...y(this,dr).values()],n={};return t.forEach(r=>{gi(e,r.mutationKey)&&Object.assign(n,r.defaultOptions)}),n}defaultQueryOptions(e){if(e._defaulted)return e;const t={...y(this,Qt).queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=Ga(t.queryKey,t)),t.refetchOnReconnect===void 0&&(t.refetchOnReconnect=t.networkMode!=="always"),t.throwOnError===void 0&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode="offlineFirst"),t.queryFn===qa&&(t.enabled=!1),t}defaultMutationOptions(e){return e!=null&&e._defaulted?e:{...y(this,Qt).mutations,...(e==null?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){y(this,Z).clear(),y(this,$t).clear()}},Z=new WeakMap,$t=new WeakMap,Qt=new WeakMap,fr=new WeakMap,dr=new WeakMap,Ht=new WeakMap,hr=new WeakMap,pr=new WeakMap,qc),vh=S.createContext(void 0),Ky=e=>{const t=S.useContext(vh);if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},Gy=({client:e,children:t})=>(S.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),k.jsx(vh.Provider,{value:e,children:t})),wh=S.createContext(!1),qy=()=>S.useContext(wh);wh.Provider;function Xy(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var by=S.createContext(Xy()),Jy=()=>S.useContext(by),Zy=(e,t,n)=>{const r=n!=null&&n.state.error&&typeof e.throwOnError=="function"?dh(e.throwOnError,[n.state.error,n]):e.throwOnError;(e.suspense||e.experimental_prefetchInRender||r)&&(t.isReset()||(e.retryOnMount=!1))},eg=e=>{S.useEffect(()=>{e.clearReset()},[e])},tg=({result:e,errorResetBoundary:t,throwOnError:n,query:r,suspense:i})=>e.isError&&!t.isReset()&&!e.isFetching&&r&&(i&&e.data===void 0||dh(n,[e.error,r])),ng=e=>{if(e.suspense){const n=i=>i==="static"?i:Math.max(i??1e3,1e3),r=e.staleTime;e.staleTime=typeof r=="function"?(...i)=>n(r(...i)):n(r),typeof e.gcTime=="number"&&(e.gcTime=Math.max(e.gcTime,1e3))}},rg=(e,t)=>e.isLoading&&e.isFetching&&!t,ig=(e,t)=>(e==null?void 0:e.suspense)&&t.isPending,Pc=(e,t,n)=>t.fetchOptimistic(e).catch(()=>{n.clearReset()});function lg(e,t,n){var p,v,w,g;const r=qy(),i=Jy(),l=Ky(),o=l.defaultQueryOptions(e);(v=(p=l.getDefaultOptions().queries)==null?void 0:p._experimental_beforeQuery)==null||v.call(p,o);const s=l.getQueryCache().get(o.queryHash);o._optimisticResults=r?"isRestoring":"optimistic",ng(o),Zy(o,i,s),eg(i);const a=!l.getQueryCache().get(o.queryHash),[u]=S.useState(()=>new t(l,o)),f=u.getOptimisticResult(o),d=!r&&e.subscribed!==!1;if(S.useSyncExternalStore(S.useCallback(E=>{const h=d?u.subscribe(fe.batchCalls(E)):Pe;return u.updateResult(),h},[u,d]),()=>u.getCurrentResult(),()=>u.getCurrentResult()),S.useEffect(()=>{u.setOptions(o)},[o,u]),ig(o,f))throw Pc(o,u,i);if(tg({result:f,errorResetBoundary:i,throwOnError:o.throwOnError,query:s,suspense:o.suspense}))throw f.error;if((g=(w=l.getDefaultOptions().queries)==null?void 0:w._experimental_afterQuery)==null||g.call(w,o,f),o.experimental_prefetchInRender&&!Ln&&rg(f,r)){const E=a?Pc(o,u,i):s==null?void 0:s.promise;E==null||E.catch(Pe).finally(()=>{u.updateResult()})}return o.notifyOnChangeProps?f:u.trackResult(f)}function xh(e,t){return lg(e,Uy)}/**
40
+ `+l.stack}return{value:e,source:t,stack:i,digest:null}}function jo(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function Es(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var Xm=typeof WeakMap=="function"?WeakMap:Map;function jd(e,t,n){n=St(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Il||(Il=!0,Ls=r),Es(e,t)},n}function Id(e,t,n){n=St(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var i=t.value;n.payload=function(){return r(i)},n.callback=function(){Es(e,t)}}var l=e.stateNode;return l!==null&&typeof l.componentDidCatch=="function"&&(n.callback=function(){Es(e,t),typeof r!="function"&&(Xt===null?Xt=new Set([this]):Xt.add(this));var o=t.stack;this.componentDidCatch(t.value,{componentStack:o!==null?o:""})}),n}function bu(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new Xm;var i=new Set;r.set(t,i)}else i=r.get(t),i===void 0&&(i=new Set,r.set(t,i));i.has(n)||(i.add(n),e=fy.bind(null,e,t,n),t.then(e,e))}function Xu(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t!==null?t.dehydrated!==null:!0),t)return e;e=e.return}while(e!==null);return null}function Ju(e,t,n,r,i){return e.mode&1?(e.flags|=65536,e.lanes=i,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(t=St(-1,1),t.tag=2,bt(n,t,1))),n.lanes|=1),e)}var Jm=Tt.ReactCurrentOwner,Oe=!1;function Se(e,t,n,r){t.child=e===null?fd(t,null,n,r):gr(t,e.child,n,r)}function Zu(e,t,n,r,i){n=n.render;var l=t.ref;return tr(t,i),r=La(e,t,n,r,l,i),n=Da(),e!==null&&!Oe?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,Rt(e,t,i)):(G&&n&&xa(t),t.flags|=1,Se(e,t,r,i),t.child)}function ec(e,t,n,r,i){if(e===null){var l=n.type;return typeof l=="function"&&!Ha(l)&&l.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=l,zd(e,t,l,r,i)):(e=hl(n.type,null,r,t,t.mode,i),e.ref=t.ref,e.return=t,t.child=e)}if(l=e.child,!(e.lanes&i)){var o=l.memoizedProps;if(n=n.compare,n=n!==null?n:oi,n(o,r)&&e.ref===t.ref)return Rt(e,t,i)}return t.flags|=1,e=Zt(l,r),e.ref=t.ref,e.return=t,t.child=e}function zd(e,t,n,r,i){if(e!==null){var l=e.memoizedProps;if(oi(l,r)&&e.ref===t.ref)if(Oe=!1,t.pendingProps=r=l,(e.lanes&i)!==0)e.flags&131072&&(Oe=!0);else return t.lanes=e.lanes,Rt(e,t,i)}return ks(e,t,n,r,i)}function Ud(e,t,n){var r=t.pendingProps,i=r.children,l=e!==null?e.memoizedState:null;if(r.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},V(bn,De),De|=n;else{if(!(n&1073741824))return e=l!==null?l.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,V(bn,De),De|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=l!==null?l.baseLanes:n,V(bn,De),De|=r}else l!==null?(r=l.baseLanes|n,t.memoizedState=null):r=n,V(bn,De),De|=r;return Se(e,t,i,n),t.child}function Ad(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function ks(e,t,n,r,i){var l=Me(n)?Nn:ge.current;return l=yr(t,l),tr(t,i),n=La(e,t,n,r,l,i),r=Da(),e!==null&&!Oe?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,Rt(e,t,i)):(G&&r&&xa(t),t.flags|=1,Se(e,t,n,i),t.child)}function tc(e,t,n,r,i){if(Me(n)){var l=!0;Rl(t)}else l=!1;if(tr(t,i),t.stateNode===null)cl(e,t),Fd(t,n,r),Ss(t,n,r,i),r=!0;else if(e===null){var o=t.stateNode,s=t.memoizedProps;o.props=s;var a=o.context,u=n.contextType;typeof u=="object"&&u!==null?u=Ve(u):(u=Me(n)?Nn:ge.current,u=yr(t,u));var d=n.getDerivedStateFromProps,f=typeof d=="function"||typeof o.getSnapshotBeforeUpdate=="function";f||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(s!==r||a!==u)&&qu(t,o,r,u),Dt=!1;var p=t.memoizedState;o.state=p,Ml(t,r,o,i),a=t.memoizedState,s!==r||p!==a||_e.current||Dt?(typeof d=="function"&&(xs(t,n,d,r),a=t.memoizedState),(s=Dt||Gu(t,n,s,r,p,a,u))?(f||typeof o.UNSAFE_componentWillMount!="function"&&typeof o.componentWillMount!="function"||(typeof o.componentWillMount=="function"&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount=="function"&&o.UNSAFE_componentWillMount()),typeof o.componentDidMount=="function"&&(t.flags|=4194308)):(typeof o.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=a),o.props=r,o.state=a,o.context=u,r=s):(typeof o.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{o=t.stateNode,hd(e,t),s=t.memoizedProps,u=t.type===t.elementType?s:qe(t.type,s),o.props=u,f=t.pendingProps,p=o.context,a=n.contextType,typeof a=="object"&&a!==null?a=Ve(a):(a=Me(n)?Nn:ge.current,a=yr(t,a));var w=n.getDerivedStateFromProps;(d=typeof w=="function"||typeof o.getSnapshotBeforeUpdate=="function")||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(s!==f||p!==a)&&qu(t,o,r,a),Dt=!1,p=t.memoizedState,o.state=p,Ml(t,r,o,i);var v=t.memoizedState;s!==f||p!==v||_e.current||Dt?(typeof w=="function"&&(xs(t,n,w,r),v=t.memoizedState),(u=Dt||Gu(t,n,u,r,p,v,a)||!1)?(d||typeof o.UNSAFE_componentWillUpdate!="function"&&typeof o.componentWillUpdate!="function"||(typeof o.componentWillUpdate=="function"&&o.componentWillUpdate(r,v,a),typeof o.UNSAFE_componentWillUpdate=="function"&&o.UNSAFE_componentWillUpdate(r,v,a)),typeof o.componentDidUpdate=="function"&&(t.flags|=4),typeof o.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof o.componentDidUpdate!="function"||s===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||s===e.memoizedProps&&p===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=v),o.props=r,o.state=v,o.context=a,r=u):(typeof o.componentDidUpdate!="function"||s===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||s===e.memoizedProps&&p===e.memoizedState||(t.flags|=1024),r=!1)}return Cs(e,t,n,r,l,i)}function Cs(e,t,n,r,i,l){Ad(e,t);var o=(t.flags&128)!==0;if(!r&&!o)return i&&Wu(t,n,!1),Rt(e,t,l);r=t.stateNode,Jm.current=t;var s=o&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&o?(t.child=gr(t,e.child,null,l),t.child=gr(t,null,s,l)):Se(e,t,s,l),t.memoizedState=r.state,i&&Wu(t,n,!0),t.child}function Wd(e){var t=e.stateNode;t.pendingContext?Au(e,t.pendingContext,t.pendingContext!==t.context):t.context&&Au(e,t.context,!1),Ta(e,t.containerInfo)}function nc(e,t,n,r,i){return vr(),Ea(i),t.flags|=256,Se(e,t,n,r),t.child}var Ps={dehydrated:null,treeContext:null,retryLane:0};function Rs(e){return{baseLanes:e,cachePool:null,transitions:null}}function $d(e,t,n){var r=t.pendingProps,i=q.current,l=!1,o=(t.flags&128)!==0,s;if((s=o)||(s=e!==null&&e.memoizedState===null?!1:(i&2)!==0),s?(l=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(i|=1),V(q,i&1),e===null)return gs(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?(t.mode&1?e.data==="$!"?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(o=r.children,e=r.fallback,l?(r=t.mode,l=t.child,o={mode:"hidden",children:o},!(r&1)&&l!==null?(l.childLanes=0,l.pendingProps=o):l=eo(o,r,0,null),e=Rn(e,r,n,null),l.return=t,e.return=t,l.sibling=e,t.child=l,t.child.memoizedState=Rs(n),t.memoizedState=Ps,e):Ia(t,o));if(i=e.memoizedState,i!==null&&(s=i.dehydrated,s!==null))return Zm(e,t,o,r,s,i,n);if(l){l=r.fallback,o=t.mode,i=e.child,s=i.sibling;var a={mode:"hidden",children:r.children};return!(o&1)&&t.child!==i?(r=t.child,r.childLanes=0,r.pendingProps=a,t.deletions=null):(r=Zt(i,a),r.subtreeFlags=i.subtreeFlags&14680064),s!==null?l=Zt(s,l):(l=Rn(l,o,n,null),l.flags|=2),l.return=t,r.return=t,r.sibling=l,t.child=r,r=l,l=t.child,o=e.child.memoizedState,o=o===null?Rs(n):{baseLanes:o.baseLanes|n,cachePool:null,transitions:o.transitions},l.memoizedState=o,l.childLanes=e.childLanes&~n,t.memoizedState=Ps,r}return l=e.child,e=l.sibling,r=Zt(l,{mode:"visible",children:r.children}),!(t.mode&1)&&(r.lanes=n),r.return=t,r.sibling=null,e!==null&&(n=t.deletions,n===null?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=r,t.memoizedState=null,r}function Ia(e,t){return t=eo({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function bi(e,t,n,r){return r!==null&&Ea(r),gr(t,e.child,null,n),e=Ia(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Zm(e,t,n,r,i,l,o){if(n)return t.flags&256?(t.flags&=-257,r=jo(Error(R(422))),bi(e,t,o,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(l=r.fallback,i=t.mode,r=eo({mode:"visible",children:r.children},i,0,null),l=Rn(l,i,o,null),l.flags|=2,r.return=t,l.return=t,r.sibling=l,t.child=r,t.mode&1&&gr(t,e.child,null,o),t.child.memoizedState=Rs(o),t.memoizedState=Ps,l);if(!(t.mode&1))return bi(e,t,o,null);if(i.data==="$!"){if(r=i.nextSibling&&i.nextSibling.dataset,r)var s=r.dgst;return r=s,l=Error(R(419)),r=jo(l,r,void 0),bi(e,t,o,r)}if(s=(o&e.childLanes)!==0,Oe||s){if(r=ce,r!==null){switch(o&-o){case 4:i=2;break;case 16:i=8;break;case 64: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:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:i=32;break;case 536870912:i=268435456;break;default:i=0}i=i&(r.suspendedLanes|o)?0:i,i!==0&&i!==l.retryLane&&(l.retryLane=i,Pt(e,i),tt(r,e,i,-1))}return Qa(),r=jo(Error(R(421))),bi(e,t,o,r)}return i.data==="$?"?(t.flags|=128,t.child=e.child,t=dy.bind(null,e),i._reactRetry=t,null):(e=l.treeContext,Fe=qt(i.nextSibling),je=t,G=!0,Ze=null,e!==null&&($e[Qe++]=wt,$e[Qe++]=xt,$e[Qe++]=Tn,wt=e.id,xt=e.overflow,Tn=t),t=Ia(t,r.children),t.flags|=4096,t)}function rc(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),ws(e.return,t,n)}function Io(e,t,n,r,i){var l=e.memoizedState;l===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i}:(l.isBackwards=t,l.rendering=null,l.renderingStartTime=0,l.last=r,l.tail=n,l.tailMode=i)}function Qd(e,t,n){var r=t.pendingProps,i=r.revealOrder,l=r.tail;if(Se(e,t,r.children,n),r=q.current,r&2)r=r&1|2,t.flags|=128;else{if(e!==null&&e.flags&128)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&rc(e,n,t);else if(e.tag===19)rc(e,n,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}r&=1}if(V(q,r),!(t.mode&1))t.memoizedState=null;else switch(i){case"forwards":for(n=t.child,i=null;n!==null;)e=n.alternate,e!==null&&Ll(e)===null&&(i=n),n=n.sibling;n=i,n===null?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),Io(t,!1,i,n,l);break;case"backwards":for(n=null,i=t.child,t.child=null;i!==null;){if(e=i.alternate,e!==null&&Ll(e)===null){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}Io(t,!0,n,null,l);break;case"together":Io(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function cl(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Rt(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),_n|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(R(153));if(t.child!==null){for(e=t.child,n=Zt(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=Zt(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function ey(e,t,n){switch(t.tag){case 3:Wd(t),vr();break;case 5:pd(t);break;case 1:Me(t.type)&&Rl(t);break;case 4:Ta(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,i=t.memoizedProps.value;V(Ol,r._currentValue),r._currentValue=i;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(V(q,q.current&1),t.flags|=128,null):n&t.child.childLanes?$d(e,t,n):(V(q,q.current&1),e=Rt(e,t,n),e!==null?e.sibling:null);V(q,q.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return Qd(e,t,n);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),V(q,q.current),r)break;return null;case 22:case 23:return t.lanes=0,Ud(e,t,n)}return Rt(e,t,n)}var Hd,Ns,Bd,Vd;Hd=function(e,t){for(var n=t.child;n!==null;){if(n.tag===5||n.tag===6)e.appendChild(n.stateNode);else if(n.tag!==4&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}};Ns=function(){};Bd=function(e,t,n,r){var i=e.memoizedProps;if(i!==r){e=t.stateNode,pn(dt.current);var l=null;switch(n){case"input":i=qo(e,i),r=qo(e,r),l=[];break;case"select":i=J({},i,{value:void 0}),r=J({},r,{value:void 0}),l=[];break;case"textarea":i=Jo(e,i),r=Jo(e,r),l=[];break;default:typeof i.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=Cl)}es(n,r);var o;n=null;for(u in i)if(!r.hasOwnProperty(u)&&i.hasOwnProperty(u)&&i[u]!=null)if(u==="style"){var s=i[u];for(o in s)s.hasOwnProperty(o)&&(n||(n={}),n[o]="")}else u!=="dangerouslySetInnerHTML"&&u!=="children"&&u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&u!=="autoFocus"&&(Zr.hasOwnProperty(u)?l||(l=[]):(l=l||[]).push(u,null));for(u in r){var a=r[u];if(s=i!=null?i[u]:void 0,r.hasOwnProperty(u)&&a!==s&&(a!=null||s!=null))if(u==="style")if(s){for(o in s)!s.hasOwnProperty(o)||a&&a.hasOwnProperty(o)||(n||(n={}),n[o]="");for(o in a)a.hasOwnProperty(o)&&s[o]!==a[o]&&(n||(n={}),n[o]=a[o])}else n||(l||(l=[]),l.push(u,n)),n=a;else u==="dangerouslySetInnerHTML"?(a=a?a.__html:void 0,s=s?s.__html:void 0,a!=null&&s!==a&&(l=l||[]).push(u,a)):u==="children"?typeof a!="string"&&typeof a!="number"||(l=l||[]).push(u,""+a):u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&(Zr.hasOwnProperty(u)?(a!=null&&u==="onScroll"&&Y("scroll",e),l||s===a||(l=[])):(l=l||[]).push(u,a))}n&&(l=l||[]).push("style",n);var u=l;(t.updateQueue=u)&&(t.flags|=4)}};Vd=function(e,t,n,r){n!==r&&(t.flags|=4)};function Dr(e,t){if(!G)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function ye(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags&14680064,r|=i.flags&14680064,i.return=e,i=i.sibling;else for(i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags,r|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function ty(e,t,n){var r=t.pendingProps;switch(Sa(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return ye(t),null;case 1:return Me(t.type)&&Pl(),ye(t),null;case 3:return r=t.stateNode,wr(),K(_e),K(ge),_a(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(Gi(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,Ze!==null&&(js(Ze),Ze=null))),Ns(e,t),ye(t),null;case 5:Oa(t);var i=pn(fi.current);if(n=t.type,e!==null&&t.stateNode!=null)Bd(e,t,n,r,i),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(R(166));return ye(t),null}if(e=pn(dt.current),Gi(t)){r=t.stateNode,n=t.type;var l=t.memoizedProps;switch(r[ct]=t,r[ui]=l,e=(t.mode&1)!==0,n){case"dialog":Y("cancel",r),Y("close",r);break;case"iframe":case"object":case"embed":Y("load",r);break;case"video":case"audio":for(i=0;i<$r.length;i++)Y($r[i],r);break;case"source":Y("error",r);break;case"img":case"image":case"link":Y("error",r),Y("load",r);break;case"details":Y("toggle",r);break;case"input":du(r,l),Y("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!l.multiple},Y("invalid",r);break;case"textarea":pu(r,l),Y("invalid",r)}es(n,l),i=null;for(var o in l)if(l.hasOwnProperty(o)){var s=l[o];o==="children"?typeof s=="string"?r.textContent!==s&&(l.suppressHydrationWarning!==!0&&Ki(r.textContent,s,e),i=["children",s]):typeof s=="number"&&r.textContent!==""+s&&(l.suppressHydrationWarning!==!0&&Ki(r.textContent,s,e),i=["children",""+s]):Zr.hasOwnProperty(o)&&s!=null&&o==="onScroll"&&Y("scroll",r)}switch(n){case"input":Ai(r),hu(r,l,!0);break;case"textarea":Ai(r),mu(r);break;case"select":case"option":break;default:typeof l.onClick=="function"&&(r.onclick=Cl)}r=i,t.updateQueue=r,r!==null&&(t.flags|=4)}else{o=i.nodeType===9?i:i.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=wf(n)),e==="http://www.w3.org/1999/xhtml"?n==="script"?(e=o.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=o.createElement(n,{is:r.is}):(e=o.createElement(n),n==="select"&&(o=e,r.multiple?o.multiple=!0:r.size&&(o.size=r.size))):e=o.createElementNS(e,n),e[ct]=t,e[ui]=r,Hd(e,t,!1,!1),t.stateNode=e;e:{switch(o=ts(n,r),n){case"dialog":Y("cancel",e),Y("close",e),i=r;break;case"iframe":case"object":case"embed":Y("load",e),i=r;break;case"video":case"audio":for(i=0;i<$r.length;i++)Y($r[i],e);i=r;break;case"source":Y("error",e),i=r;break;case"img":case"image":case"link":Y("error",e),Y("load",e),i=r;break;case"details":Y("toggle",e),i=r;break;case"input":du(e,r),i=qo(e,r),Y("invalid",e);break;case"option":i=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},i=J({},r,{value:void 0}),Y("invalid",e);break;case"textarea":pu(e,r),i=Jo(e,r),Y("invalid",e);break;default:i=r}es(n,i),s=i;for(l in s)if(s.hasOwnProperty(l)){var a=s[l];l==="style"?Ef(e,a):l==="dangerouslySetInnerHTML"?(a=a?a.__html:void 0,a!=null&&xf(e,a)):l==="children"?typeof a=="string"?(n!=="textarea"||a!=="")&&ei(e,a):typeof a=="number"&&ei(e,""+a):l!=="suppressContentEditableWarning"&&l!=="suppressHydrationWarning"&&l!=="autoFocus"&&(Zr.hasOwnProperty(l)?a!=null&&l==="onScroll"&&Y("scroll",e):a!=null&&oa(e,l,a,o))}switch(n){case"input":Ai(e),hu(e,r,!1);break;case"textarea":Ai(e),mu(e);break;case"option":r.value!=null&&e.setAttribute("value",""+tn(r.value));break;case"select":e.multiple=!!r.multiple,l=r.value,l!=null?Xn(e,!!r.multiple,l,!1):r.defaultValue!=null&&Xn(e,!!r.multiple,r.defaultValue,!0);break;default:typeof i.onClick=="function"&&(e.onclick=Cl)}switch(n){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}}r&&(t.flags|=4)}t.ref!==null&&(t.flags|=512,t.flags|=2097152)}return ye(t),null;case 6:if(e&&t.stateNode!=null)Vd(e,t,e.memoizedProps,r);else{if(typeof r!="string"&&t.stateNode===null)throw Error(R(166));if(n=pn(fi.current),pn(dt.current),Gi(t)){if(r=t.stateNode,n=t.memoizedProps,r[ct]=t,(l=r.nodeValue!==n)&&(e=je,e!==null))switch(e.tag){case 3:Ki(r.nodeValue,n,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&Ki(r.nodeValue,n,(e.mode&1)!==0)}l&&(t.flags|=4)}else r=(n.nodeType===9?n:n.ownerDocument).createTextNode(r),r[ct]=t,t.stateNode=r}return ye(t),null;case 13:if(K(q),r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(G&&Fe!==null&&t.mode&1&&!(t.flags&128))ud(),vr(),t.flags|=98560,l=!1;else if(l=Gi(t),r!==null&&r.dehydrated!==null){if(e===null){if(!l)throw Error(R(318));if(l=t.memoizedState,l=l!==null?l.dehydrated:null,!l)throw Error(R(317));l[ct]=t}else vr(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;ye(t),l=!1}else Ze!==null&&(js(Ze),Ze=null),l=!0;if(!l)return t.flags&65536?t:null}return t.flags&128?(t.lanes=n,t):(r=r!==null,r!==(e!==null&&e.memoizedState!==null)&&r&&(t.child.flags|=8192,t.mode&1&&(e===null||q.current&1?le===0&&(le=3):Qa())),t.updateQueue!==null&&(t.flags|=4),ye(t),null);case 4:return wr(),Ns(e,t),e===null&&si(t.stateNode.containerInfo),ye(t),null;case 10:return Pa(t.type._context),ye(t),null;case 17:return Me(t.type)&&Pl(),ye(t),null;case 19:if(K(q),l=t.memoizedState,l===null)return ye(t),null;if(r=(t.flags&128)!==0,o=l.rendering,o===null)if(r)Dr(l,!1);else{if(le!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(o=Ll(e),o!==null){for(t.flags|=128,Dr(l,!1),r=o.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;n!==null;)l=n,e=r,l.flags&=14680066,o=l.alternate,o===null?(l.childLanes=0,l.lanes=e,l.child=null,l.subtreeFlags=0,l.memoizedProps=null,l.memoizedState=null,l.updateQueue=null,l.dependencies=null,l.stateNode=null):(l.childLanes=o.childLanes,l.lanes=o.lanes,l.child=o.child,l.subtreeFlags=0,l.deletions=null,l.memoizedProps=o.memoizedProps,l.memoizedState=o.memoizedState,l.updateQueue=o.updateQueue,l.type=o.type,e=o.dependencies,l.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return V(q,q.current&1|2),t.child}e=e.sibling}l.tail!==null&&ne()>Sr&&(t.flags|=128,r=!0,Dr(l,!1),t.lanes=4194304)}else{if(!r)if(e=Ll(o),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),Dr(l,!0),l.tail===null&&l.tailMode==="hidden"&&!o.alternate&&!G)return ye(t),null}else 2*ne()-l.renderingStartTime>Sr&&n!==1073741824&&(t.flags|=128,r=!0,Dr(l,!1),t.lanes=4194304);l.isBackwards?(o.sibling=t.child,t.child=o):(n=l.last,n!==null?n.sibling=o:t.child=o,l.last=o)}return l.tail!==null?(t=l.tail,l.rendering=t,l.tail=t.sibling,l.renderingStartTime=ne(),t.sibling=null,n=q.current,V(q,r?n&1|2:n&1),t):(ye(t),null);case 22:case 23:return $a(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?De&1073741824&&(ye(t),t.subtreeFlags&6&&(t.flags|=8192)):ye(t),null;case 24:return null;case 25:return null}throw Error(R(156,t.tag))}function ny(e,t){switch(Sa(t),t.tag){case 1:return Me(t.type)&&Pl(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return wr(),K(_e),K(ge),_a(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return Oa(t),null;case 13:if(K(q),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(R(340));vr()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return K(q),null;case 4:return wr(),null;case 10:return Pa(t.type._context),null;case 22:case 23:return $a(),null;case 24:return null;default:return null}}var Xi=!1,ve=!1,ry=typeof WeakSet=="function"?WeakSet:Set,M=null;function qn(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){ee(e,t,r)}else n.current=null}function Ts(e,t,n){try{n()}catch(r){ee(e,t,r)}}var ic=!1;function iy(e,t){if(fs=Sl,e=bf(),wa(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var i=r.anchorOffset,l=r.focusNode;r=r.focusOffset;try{n.nodeType,l.nodeType}catch{n=null;break e}var o=0,s=-1,a=-1,u=0,d=0,f=e,p=null;t:for(;;){for(var w;f!==n||i!==0&&f.nodeType!==3||(s=o+i),f!==l||r!==0&&f.nodeType!==3||(a=o+r),f.nodeType===3&&(o+=f.nodeValue.length),(w=f.firstChild)!==null;)p=f,f=w;for(;;){if(f===e)break t;if(p===n&&++u===i&&(s=o),p===l&&++d===r&&(a=o),(w=f.nextSibling)!==null)break;f=p,p=f.parentNode}f=w}n=s===-1||a===-1?null:{start:s,end:a}}else n=null}n=n||{start:0,end:0}}else n=null;for(ds={focusedElem:e,selectionRange:n},Sl=!1,M=t;M!==null;)if(t=M,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,M=e;else for(;M!==null;){t=M;try{var v=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(v!==null){var x=v.memoizedProps,E=v.memoizedState,h=t.stateNode,c=h.getSnapshotBeforeUpdate(t.elementType===t.type?x:qe(t.type,x),E);h.__reactInternalSnapshotBeforeUpdate=c}break;case 3:var m=t.stateNode.containerInfo;m.nodeType===1?m.textContent="":m.nodeType===9&&m.documentElement&&m.removeChild(m.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(R(163))}}catch(g){ee(t,t.return,g)}if(e=t.sibling,e!==null){e.return=t.return,M=e;break}M=t.return}return v=ic,ic=!1,v}function qr(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var i=r=r.next;do{if((i.tag&e)===e){var l=i.destroy;i.destroy=void 0,l!==void 0&&Ts(t,n,l)}i=i.next}while(i!==r)}}function Jl(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function Os(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function Yd(e){var t=e.alternate;t!==null&&(e.alternate=null,Yd(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[ct],delete t[ui],delete t[ms],delete t[Wm],delete t[$m])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function Kd(e){return e.tag===5||e.tag===3||e.tag===4}function lc(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Kd(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.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 _s(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=Cl));else if(r!==4&&(e=e.child,e!==null))for(_s(e,t,n),e=e.sibling;e!==null;)_s(e,t,n),e=e.sibling}function Ms(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(Ms(e,t,n),e=e.sibling;e!==null;)Ms(e,t,n),e=e.sibling}var fe=null,Je=!1;function Ot(e,t,n){for(n=n.child;n!==null;)Gd(e,t,n),n=n.sibling}function Gd(e,t,n){if(ft&&typeof ft.onCommitFiberUnmount=="function")try{ft.onCommitFiberUnmount(Bl,n)}catch{}switch(n.tag){case 5:ve||qn(n,t);case 6:var r=fe,i=Je;fe=null,Ot(e,t,n),fe=r,Je=i,fe!==null&&(Je?(e=fe,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):fe.removeChild(n.stateNode));break;case 18:fe!==null&&(Je?(e=fe,n=n.stateNode,e.nodeType===8?Oo(e.parentNode,n):e.nodeType===1&&Oo(e,n),ii(e)):Oo(fe,n.stateNode));break;case 4:r=fe,i=Je,fe=n.stateNode.containerInfo,Je=!0,Ot(e,t,n),fe=r,Je=i;break;case 0:case 11:case 14:case 15:if(!ve&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){i=r=r.next;do{var l=i,o=l.destroy;l=l.tag,o!==void 0&&(l&2||l&4)&&Ts(n,t,o),i=i.next}while(i!==r)}Ot(e,t,n);break;case 1:if(!ve&&(qn(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(s){ee(n,t,s)}Ot(e,t,n);break;case 21:Ot(e,t,n);break;case 22:n.mode&1?(ve=(r=ve)||n.memoizedState!==null,Ot(e,t,n),ve=r):Ot(e,t,n);break;default:Ot(e,t,n)}}function oc(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new ry),t.forEach(function(r){var i=hy.bind(null,e,r);n.has(r)||(n.add(r),r.then(i,i))})}}function Ge(e,t){var n=t.deletions;if(n!==null)for(var r=0;r<n.length;r++){var i=n[r];try{var l=e,o=t,s=o;e:for(;s!==null;){switch(s.tag){case 5:fe=s.stateNode,Je=!1;break e;case 3:fe=s.stateNode.containerInfo,Je=!0;break e;case 4:fe=s.stateNode.containerInfo,Je=!0;break e}s=s.return}if(fe===null)throw Error(R(160));Gd(l,o,i),fe=null,Je=!1;var a=i.alternate;a!==null&&(a.return=null),i.return=null}catch(u){ee(i,t,u)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)qd(t,e),t=t.sibling}function qd(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(Ge(t,e),lt(e),r&4){try{qr(3,e,e.return),Jl(3,e)}catch(x){ee(e,e.return,x)}try{qr(5,e,e.return)}catch(x){ee(e,e.return,x)}}break;case 1:Ge(t,e),lt(e),r&512&&n!==null&&qn(n,n.return);break;case 5:if(Ge(t,e),lt(e),r&512&&n!==null&&qn(n,n.return),e.flags&32){var i=e.stateNode;try{ei(i,"")}catch(x){ee(e,e.return,x)}}if(r&4&&(i=e.stateNode,i!=null)){var l=e.memoizedProps,o=n!==null?n.memoizedProps:l,s=e.type,a=e.updateQueue;if(e.updateQueue=null,a!==null)try{s==="input"&&l.type==="radio"&&l.name!=null&&vf(i,l),ts(s,o);var u=ts(s,l);for(o=0;o<a.length;o+=2){var d=a[o],f=a[o+1];d==="style"?Ef(i,f):d==="dangerouslySetInnerHTML"?xf(i,f):d==="children"?ei(i,f):oa(i,d,f,u)}switch(s){case"input":bo(i,l);break;case"textarea":gf(i,l);break;case"select":var p=i._wrapperState.wasMultiple;i._wrapperState.wasMultiple=!!l.multiple;var w=l.value;w!=null?Xn(i,!!l.multiple,w,!1):p!==!!l.multiple&&(l.defaultValue!=null?Xn(i,!!l.multiple,l.defaultValue,!0):Xn(i,!!l.multiple,l.multiple?[]:"",!1))}i[ui]=l}catch(x){ee(e,e.return,x)}}break;case 6:if(Ge(t,e),lt(e),r&4){if(e.stateNode===null)throw Error(R(162));i=e.stateNode,l=e.memoizedProps;try{i.nodeValue=l}catch(x){ee(e,e.return,x)}}break;case 3:if(Ge(t,e),lt(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{ii(t.containerInfo)}catch(x){ee(e,e.return,x)}break;case 4:Ge(t,e),lt(e);break;case 13:Ge(t,e),lt(e),i=e.child,i.flags&8192&&(l=i.memoizedState!==null,i.stateNode.isHidden=l,!l||i.alternate!==null&&i.alternate.memoizedState!==null||(Aa=ne())),r&4&&oc(e);break;case 22:if(d=n!==null&&n.memoizedState!==null,e.mode&1?(ve=(u=ve)||d,Ge(t,e),ve=u):Ge(t,e),lt(e),r&8192){if(u=e.memoizedState!==null,(e.stateNode.isHidden=u)&&!d&&e.mode&1)for(M=e,d=e.child;d!==null;){for(f=M=d;M!==null;){switch(p=M,w=p.child,p.tag){case 0:case 11:case 14:case 15:qr(4,p,p.return);break;case 1:qn(p,p.return);var v=p.stateNode;if(typeof v.componentWillUnmount=="function"){r=p,n=p.return;try{t=r,v.props=t.memoizedProps,v.state=t.memoizedState,v.componentWillUnmount()}catch(x){ee(r,n,x)}}break;case 5:qn(p,p.return);break;case 22:if(p.memoizedState!==null){ac(f);continue}}w!==null?(w.return=p,M=w):ac(f)}d=d.sibling}e:for(d=null,f=e;;){if(f.tag===5){if(d===null){d=f;try{i=f.stateNode,u?(l=i.style,typeof l.setProperty=="function"?l.setProperty("display","none","important"):l.display="none"):(s=f.stateNode,a=f.memoizedProps.style,o=a!=null&&a.hasOwnProperty("display")?a.display:null,s.style.display=Sf("display",o))}catch(x){ee(e,e.return,x)}}}else if(f.tag===6){if(d===null)try{f.stateNode.nodeValue=u?"":f.memoizedProps}catch(x){ee(e,e.return,x)}}else if((f.tag!==22&&f.tag!==23||f.memoizedState===null||f===e)&&f.child!==null){f.child.return=f,f=f.child;continue}if(f===e)break e;for(;f.sibling===null;){if(f.return===null||f.return===e)break e;d===f&&(d=null),f=f.return}d===f&&(d=null),f.sibling.return=f.return,f=f.sibling}}break;case 19:Ge(t,e),lt(e),r&4&&oc(e);break;case 21:break;default:Ge(t,e),lt(e)}}function lt(e){var t=e.flags;if(t&2){try{e:{for(var n=e.return;n!==null;){if(Kd(n)){var r=n;break e}n=n.return}throw Error(R(160))}switch(r.tag){case 5:var i=r.stateNode;r.flags&32&&(ei(i,""),r.flags&=-33);var l=lc(e);Ms(e,l,i);break;case 3:case 4:var o=r.stateNode.containerInfo,s=lc(e);_s(e,s,o);break;default:throw Error(R(161))}}catch(a){ee(e,e.return,a)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function ly(e,t,n){M=e,bd(e)}function bd(e,t,n){for(var r=(e.mode&1)!==0;M!==null;){var i=M,l=i.child;if(i.tag===22&&r){var o=i.memoizedState!==null||Xi;if(!o){var s=i.alternate,a=s!==null&&s.memoizedState!==null||ve;s=Xi;var u=ve;if(Xi=o,(ve=a)&&!u)for(M=i;M!==null;)o=M,a=o.child,o.tag===22&&o.memoizedState!==null?uc(i):a!==null?(a.return=o,M=a):uc(i);for(;l!==null;)M=l,bd(l),l=l.sibling;M=i,Xi=s,ve=u}sc(e)}else i.subtreeFlags&8772&&l!==null?(l.return=i,M=l):sc(e)}}function sc(e){for(;M!==null;){var t=M;if(t.flags&8772){var n=t.alternate;try{if(t.flags&8772)switch(t.tag){case 0:case 11:case 15:ve||Jl(5,t);break;case 1:var r=t.stateNode;if(t.flags&4&&!ve)if(n===null)r.componentDidMount();else{var i=t.elementType===t.type?n.memoizedProps:qe(t.type,n.memoizedProps);r.componentDidUpdate(i,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var l=t.updateQueue;l!==null&&Vu(t,l,r);break;case 3:var o=t.updateQueue;if(o!==null){if(n=null,t.child!==null)switch(t.child.tag){case 5:n=t.child.stateNode;break;case 1:n=t.child.stateNode}Vu(t,o,n)}break;case 5:var s=t.stateNode;if(n===null&&t.flags&4){n=s;var a=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":a.autoFocus&&n.focus();break;case"img":a.src&&(n.src=a.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var u=t.alternate;if(u!==null){var d=u.memoizedState;if(d!==null){var f=d.dehydrated;f!==null&&ii(f)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(R(163))}ve||t.flags&512&&Os(t)}catch(p){ee(t,t.return,p)}}if(t===e){M=null;break}if(n=t.sibling,n!==null){n.return=t.return,M=n;break}M=t.return}}function ac(e){for(;M!==null;){var t=M;if(t===e){M=null;break}var n=t.sibling;if(n!==null){n.return=t.return,M=n;break}M=t.return}}function uc(e){for(;M!==null;){var t=M;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{Jl(4,t)}catch(a){ee(t,n,a)}break;case 1:var r=t.stateNode;if(typeof r.componentDidMount=="function"){var i=t.return;try{r.componentDidMount()}catch(a){ee(t,i,a)}}var l=t.return;try{Os(t)}catch(a){ee(t,l,a)}break;case 5:var o=t.return;try{Os(t)}catch(a){ee(t,o,a)}}}catch(a){ee(t,t.return,a)}if(t===e){M=null;break}var s=t.sibling;if(s!==null){s.return=t.return,M=s;break}M=t.return}}var oy=Math.ceil,jl=Tt.ReactCurrentDispatcher,za=Tt.ReactCurrentOwner,Be=Tt.ReactCurrentBatchConfig,$=0,ce=null,re=null,he=0,De=0,bn=ln(0),le=0,mi=null,_n=0,Zl=0,Ua=0,br=null,Te=null,Aa=0,Sr=1/0,mt=null,Il=!1,Ls=null,Xt=null,Ji=!1,Vt=null,zl=0,Xr=0,Ds=null,fl=-1,dl=0;function Ee(){return $&6?ne():fl!==-1?fl:fl=ne()}function Jt(e){return e.mode&1?$&2&&he!==0?he&-he:Hm.transition!==null?(dl===0&&(dl=Ff()),dl):(e=B,e!==0||(e=window.event,e=e===void 0?16:$f(e.type)),e):1}function tt(e,t,n,r){if(50<Xr)throw Xr=0,Ds=null,Error(R(185));Ri(e,n,r),(!($&2)||e!==ce)&&(e===ce&&(!($&2)&&(Zl|=n),le===4&&jt(e,he)),Le(e,r),n===1&&$===0&&!(t.mode&1)&&(Sr=ne()+500,ql&&on()))}function Le(e,t){var n=e.callbackNode;Hp(e,t);var r=xl(e,e===ce?he:0);if(r===0)n!==null&&gu(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(n!=null&&gu(n),t===1)e.tag===0?Qm(cc.bind(null,e)):od(cc.bind(null,e)),Um(function(){!($&6)&&on()}),n=null;else{switch(jf(r)){case 1:n=fa;break;case 4:n=Lf;break;case 16:n=wl;break;case 536870912:n=Df;break;default:n=wl}n=ih(n,Xd.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function Xd(e,t){if(fl=-1,dl=0,$&6)throw Error(R(327));var n=e.callbackNode;if(nr()&&e.callbackNode!==n)return null;var r=xl(e,e===ce?he:0);if(r===0)return null;if(r&30||r&e.expiredLanes||t)t=Ul(e,r);else{t=r;var i=$;$|=2;var l=Zd();(ce!==e||he!==t)&&(mt=null,Sr=ne()+500,Pn(e,t));do try{uy();break}catch(s){Jd(e,s)}while(!0);Ca(),jl.current=l,$=i,re!==null?t=0:(ce=null,he=0,t=le)}if(t!==0){if(t===2&&(i=os(e),i!==0&&(r=i,t=Fs(e,i))),t===1)throw n=mi,Pn(e,0),jt(e,r),Le(e,ne()),n;if(t===6)jt(e,r);else{if(i=e.current.alternate,!(r&30)&&!sy(i)&&(t=Ul(e,r),t===2&&(l=os(e),l!==0&&(r=l,t=Fs(e,l))),t===1))throw n=mi,Pn(e,0),jt(e,r),Le(e,ne()),n;switch(e.finishedWork=i,e.finishedLanes=r,t){case 0:case 1:throw Error(R(345));case 2:cn(e,Te,mt);break;case 3:if(jt(e,r),(r&130023424)===r&&(t=Aa+500-ne(),10<t)){if(xl(e,0)!==0)break;if(i=e.suspendedLanes,(i&r)!==r){Ee(),e.pingedLanes|=e.suspendedLanes&i;break}e.timeoutHandle=ps(cn.bind(null,e,Te,mt),t);break}cn(e,Te,mt);break;case 4:if(jt(e,r),(r&4194240)===r)break;for(t=e.eventTimes,i=-1;0<r;){var o=31-et(r);l=1<<o,o=t[o],o>i&&(i=o),r&=~l}if(r=i,r=ne()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*oy(r/1960))-r,10<r){e.timeoutHandle=ps(cn.bind(null,e,Te,mt),r);break}cn(e,Te,mt);break;case 5:cn(e,Te,mt);break;default:throw Error(R(329))}}}return Le(e,ne()),e.callbackNode===n?Xd.bind(null,e):null}function Fs(e,t){var n=br;return e.current.memoizedState.isDehydrated&&(Pn(e,t).flags|=256),e=Ul(e,t),e!==2&&(t=Te,Te=n,t!==null&&js(t)),e}function js(e){Te===null?Te=e:Te.push.apply(Te,e)}function sy(e){for(var t=e;;){if(t.flags&16384){var n=t.updateQueue;if(n!==null&&(n=n.stores,n!==null))for(var r=0;r<n.length;r++){var i=n[r],l=i.getSnapshot;i=i.value;try{if(!nt(l(),i))return!1}catch{return!1}}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function jt(e,t){for(t&=~Ua,t&=~Zl,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-et(t),r=1<<n;e[n]=-1,t&=~r}}function cc(e){if($&6)throw Error(R(327));nr();var t=xl(e,0);if(!(t&1))return Le(e,ne()),null;var n=Ul(e,t);if(e.tag!==0&&n===2){var r=os(e);r!==0&&(t=r,n=Fs(e,r))}if(n===1)throw n=mi,Pn(e,0),jt(e,t),Le(e,ne()),n;if(n===6)throw Error(R(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,cn(e,Te,mt),Le(e,ne()),null}function Wa(e,t){var n=$;$|=1;try{return e(t)}finally{$=n,$===0&&(Sr=ne()+500,ql&&on())}}function Mn(e){Vt!==null&&Vt.tag===0&&!($&6)&&nr();var t=$;$|=1;var n=Be.transition,r=B;try{if(Be.transition=null,B=1,e)return e()}finally{B=r,Be.transition=n,$=t,!($&6)&&on()}}function $a(){De=bn.current,K(bn)}function Pn(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,zm(n)),re!==null)for(n=re.return;n!==null;){var r=n;switch(Sa(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&Pl();break;case 3:wr(),K(_e),K(ge),_a();break;case 5:Oa(r);break;case 4:wr();break;case 13:K(q);break;case 19:K(q);break;case 10:Pa(r.type._context);break;case 22:case 23:$a()}n=n.return}if(ce=e,re=e=Zt(e.current,null),he=De=t,le=0,mi=null,Ua=Zl=_n=0,Te=br=null,hn!==null){for(t=0;t<hn.length;t++)if(n=hn[t],r=n.interleaved,r!==null){n.interleaved=null;var i=r.next,l=n.pending;if(l!==null){var o=l.next;l.next=i,r.next=o}n.pending=r}hn=null}return e}function Jd(e,t){do{var n=re;try{if(Ca(),al.current=Fl,Dl){for(var r=b.memoizedState;r!==null;){var i=r.queue;i!==null&&(i.pending=null),r=r.next}Dl=!1}if(On=0,ue=ie=b=null,Gr=!1,di=0,za.current=null,n===null||n.return===null){le=1,mi=t,re=null;break}e:{var l=e,o=n.return,s=n,a=t;if(t=he,s.flags|=32768,a!==null&&typeof a=="object"&&typeof a.then=="function"){var u=a,d=s,f=d.tag;if(!(d.mode&1)&&(f===0||f===11||f===15)){var p=d.alternate;p?(d.updateQueue=p.updateQueue,d.memoizedState=p.memoizedState,d.lanes=p.lanes):(d.updateQueue=null,d.memoizedState=null)}var w=Xu(o);if(w!==null){w.flags&=-257,Ju(w,o,s,l,t),w.mode&1&&bu(l,u,t),t=w,a=u;var v=t.updateQueue;if(v===null){var x=new Set;x.add(a),t.updateQueue=x}else v.add(a);break e}else{if(!(t&1)){bu(l,u,t),Qa();break e}a=Error(R(426))}}else if(G&&s.mode&1){var E=Xu(o);if(E!==null){!(E.flags&65536)&&(E.flags|=256),Ju(E,o,s,l,t),Ea(xr(a,s));break e}}l=a=xr(a,s),le!==4&&(le=2),br===null?br=[l]:br.push(l),l=o;do{switch(l.tag){case 3:l.flags|=65536,t&=-t,l.lanes|=t;var h=jd(l,a,t);Bu(l,h);break e;case 1:s=a;var c=l.type,m=l.stateNode;if(!(l.flags&128)&&(typeof c.getDerivedStateFromError=="function"||m!==null&&typeof m.componentDidCatch=="function"&&(Xt===null||!Xt.has(m)))){l.flags|=65536,t&=-t,l.lanes|=t;var g=Id(l,s,t);Bu(l,g);break e}}l=l.return}while(l!==null)}th(n)}catch(C){t=C,re===n&&n!==null&&(re=n=n.return);continue}break}while(!0)}function Zd(){var e=jl.current;return jl.current=Fl,e===null?Fl:e}function Qa(){(le===0||le===3||le===2)&&(le=4),ce===null||!(_n&268435455)&&!(Zl&268435455)||jt(ce,he)}function Ul(e,t){var n=$;$|=2;var r=Zd();(ce!==e||he!==t)&&(mt=null,Pn(e,t));do try{ay();break}catch(i){Jd(e,i)}while(!0);if(Ca(),$=n,jl.current=r,re!==null)throw Error(R(261));return ce=null,he=0,le}function ay(){for(;re!==null;)eh(re)}function uy(){for(;re!==null&&!Fp();)eh(re)}function eh(e){var t=rh(e.alternate,e,De);e.memoizedProps=e.pendingProps,t===null?th(e):re=t,za.current=null}function th(e){var t=e;do{var n=t.alternate;if(e=t.return,t.flags&32768){if(n=ny(n,t),n!==null){n.flags&=32767,re=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{le=6,re=null;return}}else if(n=ty(n,t,De),n!==null){re=n;return}if(t=t.sibling,t!==null){re=t;return}re=t=e}while(t!==null);le===0&&(le=5)}function cn(e,t,n){var r=B,i=Be.transition;try{Be.transition=null,B=1,cy(e,t,n,r)}finally{Be.transition=i,B=r}return null}function cy(e,t,n,r){do nr();while(Vt!==null);if($&6)throw Error(R(327));n=e.finishedWork;var i=e.finishedLanes;if(n===null)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(R(177));e.callbackNode=null,e.callbackPriority=0;var l=n.lanes|n.childLanes;if(Bp(e,l),e===ce&&(re=ce=null,he=0),!(n.subtreeFlags&2064)&&!(n.flags&2064)||Ji||(Ji=!0,ih(wl,function(){return nr(),null})),l=(n.flags&15990)!==0,n.subtreeFlags&15990||l){l=Be.transition,Be.transition=null;var o=B;B=1;var s=$;$|=4,za.current=null,iy(e,n),qd(n,e),_m(ds),Sl=!!fs,ds=fs=null,e.current=n,ly(n),jp(),$=s,B=o,Be.transition=l}else e.current=n;if(Ji&&(Ji=!1,Vt=e,zl=i),l=e.pendingLanes,l===0&&(Xt=null),Up(n.stateNode),Le(e,ne()),t!==null)for(r=e.onRecoverableError,n=0;n<t.length;n++)i=t[n],r(i.value,{componentStack:i.stack,digest:i.digest});if(Il)throw Il=!1,e=Ls,Ls=null,e;return zl&1&&e.tag!==0&&nr(),l=e.pendingLanes,l&1?e===Ds?Xr++:(Xr=0,Ds=e):Xr=0,on(),null}function nr(){if(Vt!==null){var e=jf(zl),t=Be.transition,n=B;try{if(Be.transition=null,B=16>e?16:e,Vt===null)var r=!1;else{if(e=Vt,Vt=null,zl=0,$&6)throw Error(R(331));var i=$;for($|=4,M=e.current;M!==null;){var l=M,o=l.child;if(M.flags&16){var s=l.deletions;if(s!==null){for(var a=0;a<s.length;a++){var u=s[a];for(M=u;M!==null;){var d=M;switch(d.tag){case 0:case 11:case 15:qr(8,d,l)}var f=d.child;if(f!==null)f.return=d,M=f;else for(;M!==null;){d=M;var p=d.sibling,w=d.return;if(Yd(d),d===u){M=null;break}if(p!==null){p.return=w,M=p;break}M=w}}}var v=l.alternate;if(v!==null){var x=v.child;if(x!==null){v.child=null;do{var E=x.sibling;x.sibling=null,x=E}while(x!==null)}}M=l}}if(l.subtreeFlags&2064&&o!==null)o.return=l,M=o;else e:for(;M!==null;){if(l=M,l.flags&2048)switch(l.tag){case 0:case 11:case 15:qr(9,l,l.return)}var h=l.sibling;if(h!==null){h.return=l.return,M=h;break e}M=l.return}}var c=e.current;for(M=c;M!==null;){o=M;var m=o.child;if(o.subtreeFlags&2064&&m!==null)m.return=o,M=m;else e:for(o=c;M!==null;){if(s=M,s.flags&2048)try{switch(s.tag){case 0:case 11:case 15:Jl(9,s)}}catch(C){ee(s,s.return,C)}if(s===o){M=null;break e}var g=s.sibling;if(g!==null){g.return=s.return,M=g;break e}M=s.return}}if($=i,on(),ft&&typeof ft.onPostCommitFiberRoot=="function")try{ft.onPostCommitFiberRoot(Bl,e)}catch{}r=!0}return r}finally{B=n,Be.transition=t}}return!1}function fc(e,t,n){t=xr(n,t),t=jd(e,t,1),e=bt(e,t,1),t=Ee(),e!==null&&(Ri(e,1,t),Le(e,t))}function ee(e,t,n){if(e.tag===3)fc(e,e,n);else for(;t!==null;){if(t.tag===3){fc(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(Xt===null||!Xt.has(r))){e=xr(n,e),e=Id(t,e,1),t=bt(t,e,1),e=Ee(),t!==null&&(Ri(t,1,e),Le(t,e));break}}t=t.return}}function fy(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),t=Ee(),e.pingedLanes|=e.suspendedLanes&n,ce===e&&(he&n)===n&&(le===4||le===3&&(he&130023424)===he&&500>ne()-Aa?Pn(e,0):Ua|=n),Le(e,t)}function nh(e,t){t===0&&(e.mode&1?(t=Qi,Qi<<=1,!(Qi&130023424)&&(Qi=4194304)):t=1);var n=Ee();e=Pt(e,t),e!==null&&(Ri(e,t,n),Le(e,n))}function dy(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),nh(e,n)}function hy(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,i=e.memoizedState;i!==null&&(n=i.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(R(314))}r!==null&&r.delete(t),nh(e,n)}var rh;rh=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||_e.current)Oe=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return Oe=!1,ey(e,t,n);Oe=!!(e.flags&131072)}else Oe=!1,G&&t.flags&1048576&&sd(t,Tl,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;cl(e,t),e=t.pendingProps;var i=yr(t,ge.current);tr(t,n),i=La(null,t,r,e,i,n);var l=Da();return t.flags|=1,typeof i=="object"&&i!==null&&typeof i.render=="function"&&i.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Me(r)?(l=!0,Rl(t)):l=!1,t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,Na(t),i.updater=Xl,t.stateNode=i,i._reactInternals=t,Ss(t,r,e,n),t=Cs(null,t,r,!0,l,n)):(t.tag=0,G&&l&&xa(t),Se(null,t,i,n),t=t.child),t;case 16:r=t.elementType;e:{switch(cl(e,t),e=t.pendingProps,i=r._init,r=i(r._payload),t.type=r,i=t.tag=my(r),e=qe(r,e),i){case 0:t=ks(null,t,r,e,n);break e;case 1:t=tc(null,t,r,e,n);break e;case 11:t=Zu(null,t,r,e,n);break e;case 14:t=ec(null,t,r,qe(r.type,e),n);break e}throw Error(R(306,r,""))}return t;case 0:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:qe(r,i),ks(e,t,r,i,n);case 1:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:qe(r,i),tc(e,t,r,i,n);case 3:e:{if(Wd(t),e===null)throw Error(R(387));r=t.pendingProps,l=t.memoizedState,i=l.element,hd(e,t),Ml(t,r,null,n);var o=t.memoizedState;if(r=o.element,l.isDehydrated)if(l={element:r,isDehydrated:!1,cache:o.cache,pendingSuspenseBoundaries:o.pendingSuspenseBoundaries,transitions:o.transitions},t.updateQueue.baseState=l,t.memoizedState=l,t.flags&256){i=xr(Error(R(423)),t),t=nc(e,t,r,n,i);break e}else if(r!==i){i=xr(Error(R(424)),t),t=nc(e,t,r,n,i);break e}else for(Fe=qt(t.stateNode.containerInfo.firstChild),je=t,G=!0,Ze=null,n=fd(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(vr(),r===i){t=Rt(e,t,n);break e}Se(e,t,r,n)}t=t.child}return t;case 5:return pd(t),e===null&&gs(t),r=t.type,i=t.pendingProps,l=e!==null?e.memoizedProps:null,o=i.children,hs(r,i)?o=null:l!==null&&hs(r,l)&&(t.flags|=32),Ad(e,t),Se(e,t,o,n),t.child;case 6:return e===null&&gs(t),null;case 13:return $d(e,t,n);case 4:return Ta(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=gr(t,null,r,n):Se(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:qe(r,i),Zu(e,t,r,i,n);case 7:return Se(e,t,t.pendingProps,n),t.child;case 8:return Se(e,t,t.pendingProps.children,n),t.child;case 12:return Se(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,i=t.pendingProps,l=t.memoizedProps,o=i.value,V(Ol,r._currentValue),r._currentValue=o,l!==null)if(nt(l.value,o)){if(l.children===i.children&&!_e.current){t=Rt(e,t,n);break e}}else for(l=t.child,l!==null&&(l.return=t);l!==null;){var s=l.dependencies;if(s!==null){o=l.child;for(var a=s.firstContext;a!==null;){if(a.context===r){if(l.tag===1){a=St(-1,n&-n),a.tag=2;var u=l.updateQueue;if(u!==null){u=u.shared;var d=u.pending;d===null?a.next=a:(a.next=d.next,d.next=a),u.pending=a}}l.lanes|=n,a=l.alternate,a!==null&&(a.lanes|=n),ws(l.return,n,t),s.lanes|=n;break}a=a.next}}else if(l.tag===10)o=l.type===t.type?null:l.child;else if(l.tag===18){if(o=l.return,o===null)throw Error(R(341));o.lanes|=n,s=o.alternate,s!==null&&(s.lanes|=n),ws(o,n,t),o=l.sibling}else o=l.child;if(o!==null)o.return=l;else for(o=l;o!==null;){if(o===t){o=null;break}if(l=o.sibling,l!==null){l.return=o.return,o=l;break}o=o.return}l=o}Se(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=t.pendingProps.children,tr(t,n),i=Ve(i),r=r(i),t.flags|=1,Se(e,t,r,n),t.child;case 14:return r=t.type,i=qe(r,t.pendingProps),i=qe(r.type,i),ec(e,t,r,i,n);case 15:return zd(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:qe(r,i),cl(e,t),t.tag=1,Me(r)?(e=!0,Rl(t)):e=!1,tr(t,n),Fd(t,r,i),Ss(t,r,i,n),Cs(null,t,r,!0,e,n);case 19:return Qd(e,t,n);case 22:return Ud(e,t,n)}throw Error(R(156,t.tag))};function ih(e,t){return Mf(e,t)}function py(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function He(e,t,n,r){return new py(e,t,n,r)}function Ha(e){return e=e.prototype,!(!e||!e.isReactComponent)}function my(e){if(typeof e=="function")return Ha(e)?1:0;if(e!=null){if(e=e.$$typeof,e===aa)return 11;if(e===ua)return 14}return 2}function Zt(e,t){var n=e.alternate;return n===null?(n=He(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function hl(e,t,n,r,i,l){var o=2;if(r=e,typeof e=="function")Ha(e)&&(o=1);else if(typeof e=="string")o=5;else e:switch(e){case Wn:return Rn(n.children,i,l,t);case sa:o=8,i|=8;break;case Vo:return e=He(12,n,t,i|2),e.elementType=Vo,e.lanes=l,e;case Yo:return e=He(13,n,t,i),e.elementType=Yo,e.lanes=l,e;case Ko:return e=He(19,n,t,i),e.elementType=Ko,e.lanes=l,e;case pf:return eo(n,i,l,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case df:o=10;break e;case hf:o=9;break e;case aa:o=11;break e;case ua:o=14;break e;case Lt:o=16,r=null;break e}throw Error(R(130,e==null?e:typeof e,""))}return t=He(o,n,t,i),t.elementType=e,t.type=r,t.lanes=l,t}function Rn(e,t,n,r){return e=He(7,e,r,t),e.lanes=n,e}function eo(e,t,n,r){return e=He(22,e,r,t),e.elementType=pf,e.lanes=n,e.stateNode={isHidden:!1},e}function zo(e,t,n){return e=He(6,e,null,t),e.lanes=n,e}function Uo(e,t,n){return t=He(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function yy(e,t,n,r,i){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=go(0),this.expirationTimes=go(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=go(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function Ba(e,t,n,r,i,l,o,s,a){return e=new yy(e,t,n,s,a),t===1?(t=1,l===!0&&(t|=8)):t=0,l=He(3,null,null,t),e.current=l,l.stateNode=e,l.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Na(l),e}function vy(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:An,key:r==null?null:""+r,children:e,containerInfo:t,implementation:n}}function lh(e){if(!e)return nn;e=e._reactInternals;e:{if(jn(e)!==e||e.tag!==1)throw Error(R(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(Me(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(R(171))}if(e.tag===1){var n=e.type;if(Me(n))return ld(e,n,t)}return t}function oh(e,t,n,r,i,l,o,s,a){return e=Ba(n,r,!0,e,i,l,o,s,a),e.context=lh(null),n=e.current,r=Ee(),i=Jt(n),l=St(r,i),l.callback=t??null,bt(n,l,i),e.current.lanes=i,Ri(e,i,r),Le(e,r),e}function to(e,t,n,r){var i=t.current,l=Ee(),o=Jt(i);return n=lh(n),t.context===null?t.context=n:t.pendingContext=n,t=St(l,o),t.payload={element:e},r=r===void 0?null:r,r!==null&&(t.callback=r),e=bt(i,t,o),e!==null&&(tt(e,i,o,l),sl(e,i,o)),o}function Al(e){if(e=e.current,!e.child)return null;switch(e.child.tag){case 5:return e.child.stateNode;default:return e.child.stateNode}}function dc(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function Va(e,t){dc(e,t),(e=e.alternate)&&dc(e,t)}function gy(){return null}var sh=typeof reportError=="function"?reportError:function(e){console.error(e)};function Ya(e){this._internalRoot=e}no.prototype.render=Ya.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(R(409));to(e,t,null,null)};no.prototype.unmount=Ya.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Mn(function(){to(null,e,null,null)}),t[Ct]=null}};function no(e){this._internalRoot=e}no.prototype.unstable_scheduleHydration=function(e){if(e){var t=Uf();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Ft.length&&t!==0&&t<Ft[n].priority;n++);Ft.splice(n,0,e),n===0&&Wf(e)}};function Ka(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function ro(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function hc(){}function wy(e,t,n,r,i){if(i){if(typeof r=="function"){var l=r;r=function(){var u=Al(o);l.call(u)}}var o=oh(t,r,e,0,null,!1,!1,"",hc);return e._reactRootContainer=o,e[Ct]=o.current,si(e.nodeType===8?e.parentNode:e),Mn(),o}for(;i=e.lastChild;)e.removeChild(i);if(typeof r=="function"){var s=r;r=function(){var u=Al(a);s.call(u)}}var a=Ba(e,0,!1,null,null,!1,!1,"",hc);return e._reactRootContainer=a,e[Ct]=a.current,si(e.nodeType===8?e.parentNode:e),Mn(function(){to(t,a,n,r)}),a}function io(e,t,n,r,i){var l=n._reactRootContainer;if(l){var o=l;if(typeof i=="function"){var s=i;i=function(){var a=Al(o);s.call(a)}}to(t,o,e,i)}else o=wy(n,t,e,i,r);return Al(o)}If=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=Wr(t.pendingLanes);n!==0&&(da(t,n|1),Le(t,ne()),!($&6)&&(Sr=ne()+500,on()))}break;case 13:Mn(function(){var r=Pt(e,1);if(r!==null){var i=Ee();tt(r,e,1,i)}}),Va(e,1)}};ha=function(e){if(e.tag===13){var t=Pt(e,134217728);if(t!==null){var n=Ee();tt(t,e,134217728,n)}Va(e,134217728)}};zf=function(e){if(e.tag===13){var t=Jt(e),n=Pt(e,t);if(n!==null){var r=Ee();tt(n,e,t,r)}Va(e,t)}};Uf=function(){return B};Af=function(e,t){var n=B;try{return B=e,t()}finally{B=n}};rs=function(e,t,n){switch(t){case"input":if(bo(e,n),t=n.name,n.type==="radio"&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var i=Gl(r);if(!i)throw Error(R(90));yf(r),bo(r,i)}}}break;case"textarea":gf(e,n);break;case"select":t=n.value,t!=null&&Xn(e,!!n.multiple,t,!1)}};Pf=Wa;Rf=Mn;var xy={usingClientEntryPoint:!1,Events:[Ti,Bn,Gl,kf,Cf,Wa]},Fr={findFiberByHostInstance:dn,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},Sy={bundleType:Fr.bundleType,version:Fr.version,rendererPackageName:Fr.rendererPackageName,rendererConfig:Fr.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:Tt.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=Of(e),e===null?null:e.stateNode},findFiberByHostInstance:Fr.findFiberByHostInstance||gy,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Zi=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Zi.isDisabled&&Zi.supportsFiber)try{Bl=Zi.inject(Sy),ft=Zi}catch{}}ze.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=xy;ze.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!Ka(t))throw Error(R(200));return vy(e,t,null,n)};ze.createRoot=function(e,t){if(!Ka(e))throw Error(R(299));var n=!1,r="",i=sh;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onRecoverableError!==void 0&&(i=t.onRecoverableError)),t=Ba(e,1,!1,null,null,n,!1,r,i),e[Ct]=t.current,si(e.nodeType===8?e.parentNode:e),new Ya(t)};ze.findDOMNode=function(e){if(e==null)return null;if(e.nodeType===1)return e;var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(R(188)):(e=Object.keys(e).join(","),Error(R(268,e)));return e=Of(t),e=e===null?null:e.stateNode,e};ze.flushSync=function(e){return Mn(e)};ze.hydrate=function(e,t,n){if(!ro(t))throw Error(R(200));return io(null,e,t,!0,n)};ze.hydrateRoot=function(e,t,n){if(!Ka(e))throw Error(R(405));var r=n!=null&&n.hydratedSources||null,i=!1,l="",o=sh;if(n!=null&&(n.unstable_strictMode===!0&&(i=!0),n.identifierPrefix!==void 0&&(l=n.identifierPrefix),n.onRecoverableError!==void 0&&(o=n.onRecoverableError)),t=oh(t,null,e,1,n??null,i,!1,l,o),e[Ct]=t.current,si(e),r)for(e=0;e<r.length;e++)n=r[e],i=n._getVersion,i=i(n._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[n,i]:t.mutableSourceEagerHydrationData.push(n,i);return new no(t)};ze.render=function(e,t,n){if(!ro(t))throw Error(R(200));return io(null,e,t,!1,n)};ze.unmountComponentAtNode=function(e){if(!ro(e))throw Error(R(40));return e._reactRootContainer?(Mn(function(){io(null,null,e,!1,function(){e._reactRootContainer=null,e[Ct]=null})}),!0):!1};ze.unstable_batchedUpdates=Wa;ze.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!ro(n))throw Error(R(200));if(e==null||e._reactInternals===void 0)throw Error(R(38));return io(e,t,n,!1,r)};ze.version="18.3.1-next-f1338f8080-20240426";function ah(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(ah)}catch(e){console.error(e)}}ah(),af.exports=ze;var Ey=af.exports,pc=Ey;Ho.createRoot=pc.createRoot,Ho.hydrateRoot=pc.hydrateRoot;var _i=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},ky={setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:e=>clearTimeout(e),setInterval:(e,t)=>setInterval(e,t),clearInterval:e=>clearInterval(e)},It,Zs,Wc,Cy=(Wc=class{constructor(){D(this,It,ky);D(this,Zs,!1)}setTimeoutProvider(e){_(this,It,e)}setTimeout(e,t){return y(this,It).setTimeout(e,t)}clearTimeout(e){y(this,It).clearTimeout(e)}setInterval(e,t){return y(this,It).setInterval(e,t)}clearInterval(e){y(this,It).clearInterval(e)}},It=new WeakMap,Zs=new WeakMap,Wc),mn=new Cy;function Py(e){setTimeout(e,0)}var Ln=typeof window>"u"||"Deno"in globalThis;function Ne(){}function Ry(e,t){return typeof e=="function"?e(t):e}function Is(e){return typeof e=="number"&&e>=0&&e!==1/0}function uh(e,t){return Math.max(e+(t||0)-Date.now(),0)}function en(e,t){return typeof e=="function"?e(t):e}function We(e,t){return typeof e=="function"?e(t):e}function mc(e,t){const{type:n="all",exact:r,fetchStatus:i,predicate:l,queryKey:o,stale:s}=e;if(o){if(r){if(t.queryHash!==Ga(o,t.options))return!1}else if(!vi(t.queryKey,o))return!1}if(n!=="all"){const a=t.isActive();if(n==="active"&&!a||n==="inactive"&&a)return!1}return!(typeof s=="boolean"&&t.isStale()!==s||i&&i!==t.state.fetchStatus||l&&!l(t))}function yc(e,t){const{exact:n,status:r,predicate:i,mutationKey:l}=e;if(l){if(!t.options.mutationKey)return!1;if(n){if(yi(t.options.mutationKey)!==yi(l))return!1}else if(!vi(t.options.mutationKey,l))return!1}return!(r&&t.state.status!==r||i&&!i(t))}function Ga(e,t){return((t==null?void 0:t.queryKeyHashFn)||yi)(e)}function yi(e){return JSON.stringify(e,(t,n)=>Us(n)?Object.keys(n).sort().reduce((r,i)=>(r[i]=n[i],r),{}):n)}function vi(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?Object.keys(t).every(n=>vi(e[n],t[n])):!1}var Ny=Object.prototype.hasOwnProperty;function ch(e,t){if(e===t)return e;const n=vc(e)&&vc(t);if(!n&&!(Us(e)&&Us(t)))return t;const i=(n?e:Object.keys(e)).length,l=n?t:Object.keys(t),o=l.length,s=n?new Array(o):{};let a=0;for(let u=0;u<o;u++){const d=n?u:l[u],f=e[d],p=t[d];if(f===p){s[d]=f,(n?u<i:Ny.call(e,d))&&a++;continue}if(f===null||p===null||typeof f!="object"||typeof p!="object"){s[d]=p;continue}const w=ch(f,p);s[d]=w,w===f&&a++}return i===o&&a===i?e:s}function zs(e,t){if(!t||Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(e[n]!==t[n])return!1;return!0}function vc(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function Us(e){if(!gc(e))return!1;const t=e.constructor;if(t===void 0)return!0;const n=t.prototype;return!(!gc(n)||!n.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(e)!==Object.prototype)}function gc(e){return Object.prototype.toString.call(e)==="[object Object]"}function Ty(e){return new Promise(t=>{mn.setTimeout(t,e)})}function As(e,t,n){return typeof n.structuralSharing=="function"?n.structuralSharing(e,t):n.structuralSharing!==!1?ch(e,t):t}function Oy(e,t,n=0){const r=[...e,t];return n&&r.length>n?r.slice(1):r}function _y(e,t,n=0){const r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var qa=Symbol();function fh(e,t){return!e.queryFn&&(t!=null&&t.initialPromise)?()=>t.initialPromise:!e.queryFn||e.queryFn===qa?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}function dh(e,t){return typeof e=="function"?e(...t):!!e}function My(e,t,n){let r=!1,i;return Object.defineProperty(e,"signal",{enumerable:!0,get:()=>(i??(i=t()),r||(r=!0,i.aborted?n():i.addEventListener("abort",n,{once:!0})),i)}),e}var yn,zt,rr,$c,Ly=($c=class extends _i{constructor(){super();D(this,yn);D(this,zt);D(this,rr);_(this,rr,t=>{if(!Ln&&window.addEventListener){const n=()=>t();return window.addEventListener("visibilitychange",n,!1),()=>{window.removeEventListener("visibilitychange",n)}}})}onSubscribe(){y(this,zt)||this.setEventListener(y(this,rr))}onUnsubscribe(){var t;this.hasListeners()||((t=y(this,zt))==null||t.call(this),_(this,zt,void 0))}setEventListener(t){var n;_(this,rr,t),(n=y(this,zt))==null||n.call(this),_(this,zt,t(r=>{typeof r=="boolean"?this.setFocused(r):this.onFocus()}))}setFocused(t){y(this,yn)!==t&&(_(this,yn,t),this.onFocus())}onFocus(){const t=this.isFocused();this.listeners.forEach(n=>{n(t)})}isFocused(){var t;return typeof y(this,yn)=="boolean"?y(this,yn):((t=globalThis.document)==null?void 0:t.visibilityState)!=="hidden"}},yn=new WeakMap,zt=new WeakMap,rr=new WeakMap,$c),ba=new Ly;function Ws(){let e,t;const n=new Promise((i,l)=>{e=i,t=l});n.status="pending",n.catch(()=>{});function r(i){Object.assign(n,i),delete n.resolve,delete n.reject}return n.resolve=i=>{r({status:"fulfilled",value:i}),e(i)},n.reject=i=>{r({status:"rejected",reason:i}),t(i)},n}var Dy=Py;function Fy(){let e=[],t=0,n=s=>{s()},r=s=>{s()},i=Dy;const l=s=>{t?e.push(s):i(()=>{n(s)})},o=()=>{const s=e;e=[],s.length&&i(()=>{r(()=>{s.forEach(a=>{n(a)})})})};return{batch:s=>{let a;t++;try{a=s()}finally{t--,t||o()}return a},batchCalls:s=>(...a)=>{l(()=>{s(...a)})},schedule:l,setNotifyFunction:s=>{n=s},setBatchNotifyFunction:s=>{r=s},setScheduler:s=>{i=s}}}var de=Fy(),ir,Ut,lr,Qc,jy=(Qc=class extends _i{constructor(){super();D(this,ir,!0);D(this,Ut);D(this,lr);_(this,lr,t=>{if(!Ln&&window.addEventListener){const n=()=>t(!0),r=()=>t(!1);return window.addEventListener("online",n,!1),window.addEventListener("offline",r,!1),()=>{window.removeEventListener("online",n),window.removeEventListener("offline",r)}}})}onSubscribe(){y(this,Ut)||this.setEventListener(y(this,lr))}onUnsubscribe(){var t;this.hasListeners()||((t=y(this,Ut))==null||t.call(this),_(this,Ut,void 0))}setEventListener(t){var n;_(this,lr,t),(n=y(this,Ut))==null||n.call(this),_(this,Ut,t(this.setOnline.bind(this)))}setOnline(t){y(this,ir)!==t&&(_(this,ir,t),this.listeners.forEach(r=>{r(t)}))}isOnline(){return y(this,ir)}},ir=new WeakMap,Ut=new WeakMap,lr=new WeakMap,Qc),Wl=new jy;function Iy(e){return Math.min(1e3*2**e,3e4)}function hh(e){return(e??"online")==="online"?Wl.isOnline():!0}var $s=class extends Error{constructor(e){super("CancelledError"),this.revert=e==null?void 0:e.revert,this.silent=e==null?void 0:e.silent}};function ph(e){let t=!1,n=0,r;const i=Ws(),l=()=>i.status!=="pending",o=x=>{var E;if(!l()){const h=new $s(x);p(h),(E=e.onCancel)==null||E.call(e,h)}},s=()=>{t=!0},a=()=>{t=!1},u=()=>ba.isFocused()&&(e.networkMode==="always"||Wl.isOnline())&&e.canRun(),d=()=>hh(e.networkMode)&&e.canRun(),f=x=>{l()||(r==null||r(),i.resolve(x))},p=x=>{l()||(r==null||r(),i.reject(x))},w=()=>new Promise(x=>{var E;r=h=>{(l()||u())&&x(h)},(E=e.onPause)==null||E.call(e)}).then(()=>{var x;r=void 0,l()||(x=e.onContinue)==null||x.call(e)}),v=()=>{if(l())return;let x;const E=n===0?e.initialPromise:void 0;try{x=E??e.fn()}catch(h){x=Promise.reject(h)}Promise.resolve(x).then(f).catch(h=>{var P;if(l())return;const c=e.retry??(Ln?0:3),m=e.retryDelay??Iy,g=typeof m=="function"?m(n,h):m,C=c===!0||typeof c=="number"&&n<c||typeof c=="function"&&c(n,h);if(t||!C){p(h);return}n++,(P=e.onFail)==null||P.call(e,n,h),Ty(g).then(()=>u()?void 0:w()).then(()=>{t?p(h):v()})})};return{promise:i,status:()=>i.status,cancel:o,continue:()=>(r==null||r(),i),cancelRetry:s,continueRetry:a,canStart:d,start:()=>(d()?v():w().then(v),i)}}var vn,Hc,mh=(Hc=class{constructor(){D(this,vn)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),Is(this.gcTime)&&_(this,vn,mn.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(Ln?1/0:5*60*1e3))}clearGcTimeout(){y(this,vn)&&(mn.clearTimeout(y(this,vn)),_(this,vn,void 0))}},vn=new WeakMap,Hc),gn,or,Ae,wn,ae,xi,xn,be,pt,Bc,zy=(Bc=class extends mh{constructor(t){super();D(this,be);D(this,gn);D(this,or);D(this,Ae);D(this,wn);D(this,ae);D(this,xi);D(this,xn);_(this,xn,!1),_(this,xi,t.defaultOptions),this.setOptions(t.options),this.observers=[],_(this,wn,t.client),_(this,Ae,y(this,wn).getQueryCache()),this.queryKey=t.queryKey,this.queryHash=t.queryHash,_(this,gn,xc(this.options)),this.state=t.state??y(this,gn),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var t;return(t=y(this,ae))==null?void 0:t.promise}setOptions(t){if(this.options={...y(this,xi),...t},this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){const n=xc(this.options);n.data!==void 0&&(this.setState(wc(n.data,n.dataUpdatedAt)),_(this,gn,n))}}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&y(this,Ae).remove(this)}setData(t,n){const r=As(this.state.data,t,this.options);return A(this,be,pt).call(this,{data:r,type:"success",dataUpdatedAt:n==null?void 0:n.updatedAt,manual:n==null?void 0:n.manual}),r}setState(t,n){A(this,be,pt).call(this,{type:"setState",state:t,setStateOptions:n})}cancel(t){var r,i;const n=(r=y(this,ae))==null?void 0:r.promise;return(i=y(this,ae))==null||i.cancel(t),n?n.then(Ne).catch(Ne):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(y(this,gn))}isActive(){return this.observers.some(t=>We(t.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===qa||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStatic(){return this.getObserversCount()>0?this.observers.some(t=>en(t.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(t=>t.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(t=0){return this.state.data===void 0?!0:t==="static"?!1:this.state.isInvalidated?!0:!uh(this.state.dataUpdatedAt,t)}onFocus(){var n;const t=this.observers.find(r=>r.shouldFetchOnWindowFocus());t==null||t.refetch({cancelRefetch:!1}),(n=y(this,ae))==null||n.continue()}onOnline(){var n;const t=this.observers.find(r=>r.shouldFetchOnReconnect());t==null||t.refetch({cancelRefetch:!1}),(n=y(this,ae))==null||n.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),y(this,Ae).notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(n=>n!==t),this.observers.length||(y(this,ae)&&(y(this,xn)?y(this,ae).cancel({revert:!0}):y(this,ae).cancelRetry()),this.scheduleGc()),y(this,Ae).notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||A(this,be,pt).call(this,{type:"invalidate"})}async fetch(t,n){var a,u,d,f,p,w,v,x,E,h,c,m;if(this.state.fetchStatus!=="idle"&&((a=y(this,ae))==null?void 0:a.status())!=="rejected"){if(this.state.data!==void 0&&(n!=null&&n.cancelRefetch))this.cancel({silent:!0});else if(y(this,ae))return y(this,ae).continueRetry(),y(this,ae).promise}if(t&&this.setOptions(t),!this.options.queryFn){const g=this.observers.find(C=>C.options.queryFn);g&&this.setOptions(g.options)}const r=new AbortController,i=g=>{Object.defineProperty(g,"signal",{enumerable:!0,get:()=>(_(this,xn,!0),r.signal)})},l=()=>{const g=fh(this.options,n),P=(()=>{const N={client:y(this,wn),queryKey:this.queryKey,meta:this.meta};return i(N),N})();return _(this,xn,!1),this.options.persister?this.options.persister(g,P,this):g(P)},s=(()=>{const g={fetchOptions:n,options:this.options,queryKey:this.queryKey,client:y(this,wn),state:this.state,fetchFn:l};return i(g),g})();(u=this.options.behavior)==null||u.onFetch(s,this),_(this,or,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((d=s.fetchOptions)==null?void 0:d.meta))&&A(this,be,pt).call(this,{type:"fetch",meta:(f=s.fetchOptions)==null?void 0:f.meta}),_(this,ae,ph({initialPromise:n==null?void 0:n.initialPromise,fn:s.fetchFn,onCancel:g=>{g instanceof $s&&g.revert&&this.setState({...y(this,or),fetchStatus:"idle"}),r.abort()},onFail:(g,C)=>{A(this,be,pt).call(this,{type:"failed",failureCount:g,error:C})},onPause:()=>{A(this,be,pt).call(this,{type:"pause"})},onContinue:()=>{A(this,be,pt).call(this,{type:"continue"})},retry:s.options.retry,retryDelay:s.options.retryDelay,networkMode:s.options.networkMode,canRun:()=>!0}));try{const g=await y(this,ae).start();if(g===void 0)throw new Error(`${this.queryHash} data is undefined`);return this.setData(g),(w=(p=y(this,Ae).config).onSuccess)==null||w.call(p,g,this),(x=(v=y(this,Ae).config).onSettled)==null||x.call(v,g,this.state.error,this),g}catch(g){if(g instanceof $s){if(g.silent)return y(this,ae).promise;if(g.revert){if(this.state.data===void 0)throw g;return this.state.data}}throw A(this,be,pt).call(this,{type:"error",error:g}),(h=(E=y(this,Ae).config).onError)==null||h.call(E,g,this),(m=(c=y(this,Ae).config).onSettled)==null||m.call(c,this.state.data,g,this),g}finally{this.scheduleGc()}}},gn=new WeakMap,or=new WeakMap,Ae=new WeakMap,wn=new WeakMap,ae=new WeakMap,xi=new WeakMap,xn=new WeakMap,be=new WeakSet,pt=function(t){const n=r=>{switch(t.type){case"failed":return{...r,fetchFailureCount:t.failureCount,fetchFailureReason:t.error};case"pause":return{...r,fetchStatus:"paused"};case"continue":return{...r,fetchStatus:"fetching"};case"fetch":return{...r,...yh(r.data,this.options),fetchMeta:t.meta??null};case"success":const i={...r,...wc(t.data,t.dataUpdatedAt),dataUpdateCount:r.dataUpdateCount+1,...!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return _(this,or,t.manual?i:void 0),i;case"error":const l=t.error;return{...r,error:l,errorUpdateCount:r.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:r.fetchFailureCount+1,fetchFailureReason:l,fetchStatus:"idle",status:"error",isInvalidated:!0};case"invalidate":return{...r,isInvalidated:!0};case"setState":return{...r,...t.state}}};this.state=n(this.state),de.batch(()=>{this.observers.forEach(r=>{r.onQueryUpdate()}),y(this,Ae).notify({query:this,type:"updated",action:t})})},Bc);function yh(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:hh(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function wc(e,t){return{data:e,dataUpdatedAt:t??Date.now(),error:null,isInvalidated:!1,status:"success"}}function xc(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,n=t!==void 0,r=n?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?r??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?"success":"pending",fetchStatus:"idle"}}var Re,W,Si,we,Sn,sr,vt,At,Ei,ar,ur,En,kn,Wt,cr,Q,Qr,Qs,Hs,Bs,Vs,Ys,Ks,Gs,vh,Vc,Uy=(Vc=class extends _i{constructor(t,n){super();D(this,Q);D(this,Re);D(this,W);D(this,Si);D(this,we);D(this,Sn);D(this,sr);D(this,vt);D(this,At);D(this,Ei);D(this,ar);D(this,ur);D(this,En);D(this,kn);D(this,Wt);D(this,cr,new Set);this.options=n,_(this,Re,t),_(this,At,null),_(this,vt,Ws()),this.bindMethods(),this.setOptions(n)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(y(this,W).addObserver(this),Sc(y(this,W),this.options)?A(this,Q,Qr).call(this):this.updateResult(),A(this,Q,Vs).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return qs(y(this,W),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return qs(y(this,W),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,A(this,Q,Ys).call(this),A(this,Q,Ks).call(this),y(this,W).removeObserver(this)}setOptions(t){const n=this.options,r=y(this,W);if(this.options=y(this,Re).defaultQueryOptions(t),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof We(this.options.enabled,y(this,W))!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");A(this,Q,Gs).call(this),y(this,W).setOptions(this.options),n._defaulted&&!zs(this.options,n)&&y(this,Re).getQueryCache().notify({type:"observerOptionsUpdated",query:y(this,W),observer:this});const i=this.hasListeners();i&&Ec(y(this,W),r,this.options,n)&&A(this,Q,Qr).call(this),this.updateResult(),i&&(y(this,W)!==r||We(this.options.enabled,y(this,W))!==We(n.enabled,y(this,W))||en(this.options.staleTime,y(this,W))!==en(n.staleTime,y(this,W)))&&A(this,Q,Qs).call(this);const l=A(this,Q,Hs).call(this);i&&(y(this,W)!==r||We(this.options.enabled,y(this,W))!==We(n.enabled,y(this,W))||l!==y(this,Wt))&&A(this,Q,Bs).call(this,l)}getOptimisticResult(t){const n=y(this,Re).getQueryCache().build(y(this,Re),t),r=this.createResult(n,t);return Wy(this,r)&&(_(this,we,r),_(this,sr,this.options),_(this,Sn,y(this,W).state)),r}getCurrentResult(){return y(this,we)}trackResult(t,n){return new Proxy(t,{get:(r,i)=>(this.trackProp(i),n==null||n(i),i==="promise"&&(this.trackProp("data"),!this.options.experimental_prefetchInRender&&y(this,vt).status==="pending"&&y(this,vt).reject(new Error("experimental_prefetchInRender feature flag is not enabled"))),Reflect.get(r,i))})}trackProp(t){y(this,cr).add(t)}getCurrentQuery(){return y(this,W)}refetch({...t}={}){return this.fetch({...t})}fetchOptimistic(t){const n=y(this,Re).defaultQueryOptions(t),r=y(this,Re).getQueryCache().build(y(this,Re),n);return r.fetch().then(()=>this.createResult(r,n))}fetch(t){return A(this,Q,Qr).call(this,{...t,cancelRefetch:t.cancelRefetch??!0}).then(()=>(this.updateResult(),y(this,we)))}createResult(t,n){var F;const r=y(this,W),i=this.options,l=y(this,we),o=y(this,Sn),s=y(this,sr),u=t!==r?t.state:y(this,Si),{state:d}=t;let f={...d},p=!1,w;if(n._optimisticResults){const O=this.hasListeners(),U=!O&&Sc(t,n),oe=O&&Ec(t,r,n,i);(U||oe)&&(f={...f,...yh(d.data,t.options)}),n._optimisticResults==="isRestoring"&&(f.fetchStatus="idle")}let{error:v,errorUpdatedAt:x,status:E}=f;w=f.data;let h=!1;if(n.placeholderData!==void 0&&w===void 0&&E==="pending"){let O;l!=null&&l.isPlaceholderData&&n.placeholderData===(s==null?void 0:s.placeholderData)?(O=l.data,h=!0):O=typeof n.placeholderData=="function"?n.placeholderData((F=y(this,ur))==null?void 0:F.state.data,y(this,ur)):n.placeholderData,O!==void 0&&(E="success",w=As(l==null?void 0:l.data,O,n),p=!0)}if(n.select&&w!==void 0&&!h)if(l&&w===(o==null?void 0:o.data)&&n.select===y(this,Ei))w=y(this,ar);else try{_(this,Ei,n.select),w=n.select(w),w=As(l==null?void 0:l.data,w,n),_(this,ar,w),_(this,At,null)}catch(O){_(this,At,O)}y(this,At)&&(v=y(this,At),w=y(this,ar),x=Date.now(),E="error");const c=f.fetchStatus==="fetching",m=E==="pending",g=E==="error",C=m&&c,P=w!==void 0,T={status:E,fetchStatus:f.fetchStatus,isPending:m,isSuccess:E==="success",isError:g,isInitialLoading:C,isLoading:C,data:w,dataUpdatedAt:f.dataUpdatedAt,error:v,errorUpdatedAt:x,failureCount:f.fetchFailureCount,failureReason:f.fetchFailureReason,errorUpdateCount:f.errorUpdateCount,isFetched:f.dataUpdateCount>0||f.errorUpdateCount>0,isFetchedAfterMount:f.dataUpdateCount>u.dataUpdateCount||f.errorUpdateCount>u.errorUpdateCount,isFetching:c,isRefetching:c&&!m,isLoadingError:g&&!P,isPaused:f.fetchStatus==="paused",isPlaceholderData:p,isRefetchError:g&&P,isStale:Xa(t,n),refetch:this.refetch,promise:y(this,vt),isEnabled:We(n.enabled,t)!==!1};if(this.options.experimental_prefetchInRender){const O=Pe=>{T.status==="error"?Pe.reject(T.error):T.data!==void 0&&Pe.resolve(T.data)},U=()=>{const Pe=_(this,vt,T.promise=Ws());O(Pe)},oe=y(this,vt);switch(oe.status){case"pending":t.queryHash===r.queryHash&&O(oe);break;case"fulfilled":(T.status==="error"||T.data!==oe.value)&&U();break;case"rejected":(T.status!=="error"||T.error!==oe.reason)&&U();break}}return T}updateResult(){const t=y(this,we),n=this.createResult(y(this,W),this.options);if(_(this,Sn,y(this,W).state),_(this,sr,this.options),y(this,Sn).data!==void 0&&_(this,ur,y(this,W)),zs(n,t))return;_(this,we,n);const r=()=>{if(!t)return!0;const{notifyOnChangeProps:i}=this.options,l=typeof i=="function"?i():i;if(l==="all"||!l&&!y(this,cr).size)return!0;const o=new Set(l??y(this,cr));return this.options.throwOnError&&o.add("error"),Object.keys(y(this,we)).some(s=>{const a=s;return y(this,we)[a]!==t[a]&&o.has(a)})};A(this,Q,vh).call(this,{listeners:r()})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&A(this,Q,Vs).call(this)}},Re=new WeakMap,W=new WeakMap,Si=new WeakMap,we=new WeakMap,Sn=new WeakMap,sr=new WeakMap,vt=new WeakMap,At=new WeakMap,Ei=new WeakMap,ar=new WeakMap,ur=new WeakMap,En=new WeakMap,kn=new WeakMap,Wt=new WeakMap,cr=new WeakMap,Q=new WeakSet,Qr=function(t){A(this,Q,Gs).call(this);let n=y(this,W).fetch(this.options,t);return t!=null&&t.throwOnError||(n=n.catch(Ne)),n},Qs=function(){A(this,Q,Ys).call(this);const t=en(this.options.staleTime,y(this,W));if(Ln||y(this,we).isStale||!Is(t))return;const r=uh(y(this,we).dataUpdatedAt,t)+1;_(this,En,mn.setTimeout(()=>{y(this,we).isStale||this.updateResult()},r))},Hs=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(y(this,W)):this.options.refetchInterval)??!1},Bs=function(t){A(this,Q,Ks).call(this),_(this,Wt,t),!(Ln||We(this.options.enabled,y(this,W))===!1||!Is(y(this,Wt))||y(this,Wt)===0)&&_(this,kn,mn.setInterval(()=>{(this.options.refetchIntervalInBackground||ba.isFocused())&&A(this,Q,Qr).call(this)},y(this,Wt)))},Vs=function(){A(this,Q,Qs).call(this),A(this,Q,Bs).call(this,A(this,Q,Hs).call(this))},Ys=function(){y(this,En)&&(mn.clearTimeout(y(this,En)),_(this,En,void 0))},Ks=function(){y(this,kn)&&(mn.clearInterval(y(this,kn)),_(this,kn,void 0))},Gs=function(){const t=y(this,Re).getQueryCache().build(y(this,Re),this.options);if(t===y(this,W))return;const n=y(this,W);_(this,W,t),_(this,Si,t.state),this.hasListeners()&&(n==null||n.removeObserver(this),t.addObserver(this))},vh=function(t){de.batch(()=>{t.listeners&&this.listeners.forEach(n=>{n(y(this,we))}),y(this,Re).getQueryCache().notify({query:y(this,W),type:"observerResultsUpdated"})})},Vc);function Ay(e,t){return We(t.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status==="error"&&t.retryOnMount===!1)}function Sc(e,t){return Ay(e,t)||e.state.data!==void 0&&qs(e,t,t.refetchOnMount)}function qs(e,t,n){if(We(t.enabled,e)!==!1&&en(t.staleTime,e)!=="static"){const r=typeof n=="function"?n(e):n;return r==="always"||r!==!1&&Xa(e,t)}return!1}function Ec(e,t,n,r){return(e!==t||We(r.enabled,e)===!1)&&(!n.suspense||e.state.status!=="error")&&Xa(e,n)}function Xa(e,t){return We(t.enabled,e)!==!1&&e.isStaleByTime(en(t.staleTime,e))}function Wy(e,t){return!zs(e.getCurrentResult(),t)}function kc(e){return{onFetch:(t,n)=>{var d,f,p,w,v;const r=t.options,i=(p=(f=(d=t.fetchOptions)==null?void 0:d.meta)==null?void 0:f.fetchMore)==null?void 0:p.direction,l=((w=t.state.data)==null?void 0:w.pages)||[],o=((v=t.state.data)==null?void 0:v.pageParams)||[];let s={pages:[],pageParams:[]},a=0;const u=async()=>{let x=!1;const E=m=>{My(m,()=>t.signal,()=>x=!0)},h=fh(t.options,t.fetchOptions),c=async(m,g,C)=>{if(x)return Promise.reject();if(g==null&&m.pages.length)return Promise.resolve(m);const N=(()=>{const U={client:t.client,queryKey:t.queryKey,pageParam:g,direction:C?"backward":"forward",meta:t.options.meta};return E(U),U})(),T=await h(N),{maxPages:F}=t.options,O=C?_y:Oy;return{pages:O(m.pages,T,F),pageParams:O(m.pageParams,g,F)}};if(i&&l.length){const m=i==="backward",g=m?$y:Cc,C={pages:l,pageParams:o},P=g(r,C);s=await c(C,P,m)}else{const m=e??l.length;do{const g=a===0?o[0]??r.initialPageParam:Cc(r,s);if(a>0&&g==null)break;s=await c(s,g),a++}while(a<m)}return s};t.options.persister?t.fetchFn=()=>{var x,E;return(E=(x=t.options).persister)==null?void 0:E.call(x,u,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n)}:t.fetchFn=u}}}function Cc(e,{pages:t,pageParams:n}){const r=t.length-1;return t.length>0?e.getNextPageParam(t[r],t,n[r],n):void 0}function $y(e,{pages:t,pageParams:n}){var r;return t.length>0?(r=e.getPreviousPageParam)==null?void 0:r.call(e,t[0],t,n[0],n):void 0}var ki,st,xe,Cn,at,Mt,Yc,Qy=(Yc=class extends mh{constructor(t){super();D(this,at);D(this,ki);D(this,st);D(this,xe);D(this,Cn);_(this,ki,t.client),this.mutationId=t.mutationId,_(this,xe,t.mutationCache),_(this,st,[]),this.state=t.state||Hy(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options=t,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){y(this,st).includes(t)||(y(this,st).push(t),this.clearGcTimeout(),y(this,xe).notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){_(this,st,y(this,st).filter(n=>n!==t)),this.scheduleGc(),y(this,xe).notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){y(this,st).length||(this.state.status==="pending"?this.scheduleGc():y(this,xe).remove(this))}continue(){var t;return((t=y(this,Cn))==null?void 0:t.continue())??this.execute(this.state.variables)}async execute(t){var o,s,a,u,d,f,p,w,v,x,E,h,c,m,g,C,P,N,T,F;const n=()=>{A(this,at,Mt).call(this,{type:"continue"})},r={client:y(this,ki),meta:this.options.meta,mutationKey:this.options.mutationKey};_(this,Cn,ph({fn:()=>this.options.mutationFn?this.options.mutationFn(t,r):Promise.reject(new Error("No mutationFn found")),onFail:(O,U)=>{A(this,at,Mt).call(this,{type:"failed",failureCount:O,error:U})},onPause:()=>{A(this,at,Mt).call(this,{type:"pause"})},onContinue:n,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>y(this,xe).canRun(this)}));const i=this.state.status==="pending",l=!y(this,Cn).canStart();try{if(i)n();else{A(this,at,Mt).call(this,{type:"pending",variables:t,isPaused:l}),await((s=(o=y(this,xe).config).onMutate)==null?void 0:s.call(o,t,this,r));const U=await((u=(a=this.options).onMutate)==null?void 0:u.call(a,t,r));U!==this.state.context&&A(this,at,Mt).call(this,{type:"pending",context:U,variables:t,isPaused:l})}const O=await y(this,Cn).start();return await((f=(d=y(this,xe).config).onSuccess)==null?void 0:f.call(d,O,t,this.state.context,this,r)),await((w=(p=this.options).onSuccess)==null?void 0:w.call(p,O,t,this.state.context,r)),await((x=(v=y(this,xe).config).onSettled)==null?void 0:x.call(v,O,null,this.state.variables,this.state.context,this,r)),await((h=(E=this.options).onSettled)==null?void 0:h.call(E,O,null,t,this.state.context,r)),A(this,at,Mt).call(this,{type:"success",data:O}),O}catch(O){try{await((m=(c=y(this,xe).config).onError)==null?void 0:m.call(c,O,t,this.state.context,this,r))}catch(U){Promise.reject(U)}try{await((C=(g=this.options).onError)==null?void 0:C.call(g,O,t,this.state.context,r))}catch(U){Promise.reject(U)}try{await((N=(P=y(this,xe).config).onSettled)==null?void 0:N.call(P,void 0,O,this.state.variables,this.state.context,this,r))}catch(U){Promise.reject(U)}try{await((F=(T=this.options).onSettled)==null?void 0:F.call(T,void 0,O,t,this.state.context,r))}catch(U){Promise.reject(U)}throw A(this,at,Mt).call(this,{type:"error",error:O}),O}finally{y(this,xe).runNext(this)}}},ki=new WeakMap,st=new WeakMap,xe=new WeakMap,Cn=new WeakMap,at=new WeakSet,Mt=function(t){const n=r=>{switch(t.type){case"failed":return{...r,failureCount:t.failureCount,failureReason:t.error};case"pause":return{...r,isPaused:!0};case"continue":return{...r,isPaused:!1};case"pending":return{...r,context:t.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:t.isPaused,status:"pending",variables:t.variables,submittedAt:Date.now()};case"success":return{...r,data:t.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...r,data:void 0,error:t.error,failureCount:r.failureCount+1,failureReason:t.error,isPaused:!1,status:"error"}}};this.state=n(this.state),de.batch(()=>{y(this,st).forEach(r=>{r.onMutationUpdate(t)}),y(this,xe).notify({mutation:this,type:"updated",action:t})})},Yc);function Hy(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var gt,Xe,Ci,Kc,By=(Kc=class extends _i{constructor(t={}){super();D(this,gt);D(this,Xe);D(this,Ci);this.config=t,_(this,gt,new Set),_(this,Xe,new Map),_(this,Ci,0)}build(t,n,r){const i=new Qy({client:t,mutationCache:this,mutationId:++Ii(this,Ci)._,options:t.defaultMutationOptions(n),state:r});return this.add(i),i}add(t){y(this,gt).add(t);const n=el(t);if(typeof n=="string"){const r=y(this,Xe).get(n);r?r.push(t):y(this,Xe).set(n,[t])}this.notify({type:"added",mutation:t})}remove(t){if(y(this,gt).delete(t)){const n=el(t);if(typeof n=="string"){const r=y(this,Xe).get(n);if(r)if(r.length>1){const i=r.indexOf(t);i!==-1&&r.splice(i,1)}else r[0]===t&&y(this,Xe).delete(n)}}this.notify({type:"removed",mutation:t})}canRun(t){const n=el(t);if(typeof n=="string"){const r=y(this,Xe).get(n),i=r==null?void 0:r.find(l=>l.state.status==="pending");return!i||i===t}else return!0}runNext(t){var r;const n=el(t);if(typeof n=="string"){const i=(r=y(this,Xe).get(n))==null?void 0:r.find(l=>l!==t&&l.state.isPaused);return(i==null?void 0:i.continue())??Promise.resolve()}else return Promise.resolve()}clear(){de.batch(()=>{y(this,gt).forEach(t=>{this.notify({type:"removed",mutation:t})}),y(this,gt).clear(),y(this,Xe).clear()})}getAll(){return Array.from(y(this,gt))}find(t){const n={exact:!0,...t};return this.getAll().find(r=>yc(n,r))}findAll(t={}){return this.getAll().filter(n=>yc(t,n))}notify(t){de.batch(()=>{this.listeners.forEach(n=>{n(t)})})}resumePausedMutations(){const t=this.getAll().filter(n=>n.state.isPaused);return de.batch(()=>Promise.all(t.map(n=>n.continue().catch(Ne))))}},gt=new WeakMap,Xe=new WeakMap,Ci=new WeakMap,Kc);function el(e){var t;return(t=e.options.scope)==null?void 0:t.id}var ut,Gc,Vy=(Gc=class extends _i{constructor(t={}){super();D(this,ut);this.config=t,_(this,ut,new Map)}build(t,n,r){const i=n.queryKey,l=n.queryHash??Ga(i,n);let o=this.get(l);return o||(o=new zy({client:t,queryKey:i,queryHash:l,options:t.defaultQueryOptions(n),state:r,defaultOptions:t.getQueryDefaults(i)}),this.add(o)),o}add(t){y(this,ut).has(t.queryHash)||(y(this,ut).set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){const n=y(this,ut).get(t.queryHash);n&&(t.destroy(),n===t&&y(this,ut).delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){de.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return y(this,ut).get(t)}getAll(){return[...y(this,ut).values()]}find(t){const n={exact:!0,...t};return this.getAll().find(r=>mc(n,r))}findAll(t={}){const n=this.getAll();return Object.keys(t).length>0?n.filter(r=>mc(t,r)):n}notify(t){de.batch(()=>{this.listeners.forEach(n=>{n(t)})})}onFocus(){de.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){de.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},ut=new WeakMap,Gc),Z,$t,Qt,fr,dr,Ht,hr,pr,qc,Yy=(qc=class{constructor(e={}){D(this,Z);D(this,$t);D(this,Qt);D(this,fr);D(this,dr);D(this,Ht);D(this,hr);D(this,pr);_(this,Z,e.queryCache||new Vy),_(this,$t,e.mutationCache||new By),_(this,Qt,e.defaultOptions||{}),_(this,fr,new Map),_(this,dr,new Map),_(this,Ht,0)}mount(){Ii(this,Ht)._++,y(this,Ht)===1&&(_(this,hr,ba.subscribe(async e=>{e&&(await this.resumePausedMutations(),y(this,Z).onFocus())})),_(this,pr,Wl.subscribe(async e=>{e&&(await this.resumePausedMutations(),y(this,Z).onOnline())})))}unmount(){var e,t;Ii(this,Ht)._--,y(this,Ht)===0&&((e=y(this,hr))==null||e.call(this),_(this,hr,void 0),(t=y(this,pr))==null||t.call(this),_(this,pr,void 0))}isFetching(e){return y(this,Z).findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return y(this,$t).findAll({...e,status:"pending"}).length}getQueryData(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=y(this,Z).get(t.queryHash))==null?void 0:n.state.data}ensureQueryData(e){const t=this.defaultQueryOptions(e),n=y(this,Z).build(this,t),r=n.state.data;return r===void 0?this.fetchQuery(e):(e.revalidateIfStale&&n.isStaleByTime(en(t.staleTime,n))&&this.prefetchQuery(t),Promise.resolve(r))}getQueriesData(e){return y(this,Z).findAll(e).map(({queryKey:t,state:n})=>{const r=n.data;return[t,r]})}setQueryData(e,t,n){const r=this.defaultQueryOptions({queryKey:e}),i=y(this,Z).get(r.queryHash),l=i==null?void 0:i.state.data,o=Ry(t,l);if(o!==void 0)return y(this,Z).build(this,r).setData(o,{...n,manual:!0})}setQueriesData(e,t,n){return de.batch(()=>y(this,Z).findAll(e).map(({queryKey:r})=>[r,this.setQueryData(r,t,n)]))}getQueryState(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=y(this,Z).get(t.queryHash))==null?void 0:n.state}removeQueries(e){const t=y(this,Z);de.batch(()=>{t.findAll(e).forEach(n=>{t.remove(n)})})}resetQueries(e,t){const n=y(this,Z);return de.batch(()=>(n.findAll(e).forEach(r=>{r.reset()}),this.refetchQueries({type:"active",...e},t)))}cancelQueries(e,t={}){const n={revert:!0,...t},r=de.batch(()=>y(this,Z).findAll(e).map(i=>i.cancel(n)));return Promise.all(r).then(Ne).catch(Ne)}invalidateQueries(e,t={}){return de.batch(()=>(y(this,Z).findAll(e).forEach(n=>{n.invalidate()}),(e==null?void 0:e.refetchType)==="none"?Promise.resolve():this.refetchQueries({...e,type:(e==null?void 0:e.refetchType)??(e==null?void 0:e.type)??"active"},t)))}refetchQueries(e,t={}){const n={...t,cancelRefetch:t.cancelRefetch??!0},r=de.batch(()=>y(this,Z).findAll(e).filter(i=>!i.isDisabled()&&!i.isStatic()).map(i=>{let l=i.fetch(void 0,n);return n.throwOnError||(l=l.catch(Ne)),i.state.fetchStatus==="paused"?Promise.resolve():l}));return Promise.all(r).then(Ne)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const n=y(this,Z).build(this,t);return n.isStaleByTime(en(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(Ne).catch(Ne)}fetchInfiniteQuery(e){return e.behavior=kc(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(Ne).catch(Ne)}ensureInfiniteQueryData(e){return e.behavior=kc(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return Wl.isOnline()?y(this,$t).resumePausedMutations():Promise.resolve()}getQueryCache(){return y(this,Z)}getMutationCache(){return y(this,$t)}getDefaultOptions(){return y(this,Qt)}setDefaultOptions(e){_(this,Qt,e)}setQueryDefaults(e,t){y(this,fr).set(yi(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...y(this,fr).values()],n={};return t.forEach(r=>{vi(e,r.queryKey)&&Object.assign(n,r.defaultOptions)}),n}setMutationDefaults(e,t){y(this,dr).set(yi(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...y(this,dr).values()],n={};return t.forEach(r=>{vi(e,r.mutationKey)&&Object.assign(n,r.defaultOptions)}),n}defaultQueryOptions(e){if(e._defaulted)return e;const t={...y(this,Qt).queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=Ga(t.queryKey,t)),t.refetchOnReconnect===void 0&&(t.refetchOnReconnect=t.networkMode!=="always"),t.throwOnError===void 0&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode="offlineFirst"),t.queryFn===qa&&(t.enabled=!1),t}defaultMutationOptions(e){return e!=null&&e._defaulted?e:{...y(this,Qt).mutations,...(e==null?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){y(this,Z).clear(),y(this,$t).clear()}},Z=new WeakMap,$t=new WeakMap,Qt=new WeakMap,fr=new WeakMap,dr=new WeakMap,Ht=new WeakMap,hr=new WeakMap,pr=new WeakMap,qc),gh=S.createContext(void 0),Ky=e=>{const t=S.useContext(gh);if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},Gy=({client:e,children:t})=>(S.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),k.jsx(gh.Provider,{value:e,children:t})),wh=S.createContext(!1),qy=()=>S.useContext(wh);wh.Provider;function by(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var Xy=S.createContext(by()),Jy=()=>S.useContext(Xy),Zy=(e,t,n)=>{const r=n!=null&&n.state.error&&typeof e.throwOnError=="function"?dh(e.throwOnError,[n.state.error,n]):e.throwOnError;(e.suspense||e.experimental_prefetchInRender||r)&&(t.isReset()||(e.retryOnMount=!1))},ev=e=>{S.useEffect(()=>{e.clearReset()},[e])},tv=({result:e,errorResetBoundary:t,throwOnError:n,query:r,suspense:i})=>e.isError&&!t.isReset()&&!e.isFetching&&r&&(i&&e.data===void 0||dh(n,[e.error,r])),nv=e=>{if(e.suspense){const n=i=>i==="static"?i:Math.max(i??1e3,1e3),r=e.staleTime;e.staleTime=typeof r=="function"?(...i)=>n(r(...i)):n(r),typeof e.gcTime=="number"&&(e.gcTime=Math.max(e.gcTime,1e3))}},rv=(e,t)=>e.isLoading&&e.isFetching&&!t,iv=(e,t)=>(e==null?void 0:e.suspense)&&t.isPending,Pc=(e,t,n)=>t.fetchOptimistic(e).catch(()=>{n.clearReset()});function lv(e,t,n){var p,w,v,x;const r=qy(),i=Jy(),l=Ky(),o=l.defaultQueryOptions(e);(w=(p=l.getDefaultOptions().queries)==null?void 0:p._experimental_beforeQuery)==null||w.call(p,o);const s=l.getQueryCache().get(o.queryHash);o._optimisticResults=r?"isRestoring":"optimistic",nv(o),Zy(o,i,s),ev(i);const a=!l.getQueryCache().get(o.queryHash),[u]=S.useState(()=>new t(l,o)),d=u.getOptimisticResult(o),f=!r&&e.subscribed!==!1;if(S.useSyncExternalStore(S.useCallback(E=>{const h=f?u.subscribe(de.batchCalls(E)):Ne;return u.updateResult(),h},[u,f]),()=>u.getCurrentResult(),()=>u.getCurrentResult()),S.useEffect(()=>{u.setOptions(o)},[o,u]),iv(o,d))throw Pc(o,u,i);if(tv({result:d,errorResetBoundary:i,throwOnError:o.throwOnError,query:s,suspense:o.suspense}))throw d.error;if((x=(v=l.getDefaultOptions().queries)==null?void 0:v._experimental_afterQuery)==null||x.call(v,o,d),o.experimental_prefetchInRender&&!Ln&&rv(d,r)){const E=a?Pc(o,u,i):s==null?void 0:s.promise;E==null||E.catch(Ne).finally(()=>{u.updateResult()})}return o.notifyOnChangeProps?d:u.trackResult(d)}function xh(e,t){return lv(e,Uy)}/**
41
41
  * react-router v7.11.0
42
42
  *
43
43
  * Copyright (c) Remix Software Inc.
@@ -46,6 +46,6 @@ Error generating stack: `+l.message+`
46
46
  * LICENSE.md file in the root directory of this source tree.
47
47
  *
48
48
  * @license MIT
49
- */var Rc="popstate";function og(e={}){function t(r,i){let{pathname:l,search:o,hash:s}=r.location;return Xs("",{pathname:l,search:o,hash:s},i.state&&i.state.usr||null,i.state&&i.state.key||"default")}function n(r,i){return typeof i=="string"?i:vi(i)}return ag(t,n,null,e)}function b(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function nt(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function sg(){return Math.random().toString(36).substring(2,10)}function Nc(e,t){return{usr:e.state,key:e.key,idx:t}}function Xs(e,t,n=null,r){return{pathname:typeof e=="string"?e:e.pathname,search:"",hash:"",...typeof t=="string"?Pr(t):t,state:n,key:t&&t.key||r||sg()}}function vi({pathname:e="/",search:t="",hash:n=""}){return t&&t!=="?"&&(e+=t.charAt(0)==="?"?t:"?"+t),n&&n!=="#"&&(e+=n.charAt(0)==="#"?n:"#"+n),e}function Pr(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substring(n),e=e.substring(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substring(r),e=e.substring(0,r)),e&&(t.pathname=e)}return t}function ag(e,t,n,r={}){let{window:i=document.defaultView,v5Compat:l=!1}=r,o=i.history,s="POP",a=null,u=f();u==null&&(u=0,o.replaceState({...o.state,idx:u},""));function f(){return(o.state||{idx:null}).idx}function d(){s="POP";let E=f(),h=E==null?null:E-u;u=E,a&&a({action:s,location:g.location,delta:h})}function p(E,h){s="PUSH";let c=Xs(g.location,E,h);u=f()+1;let m=Nc(c,u),x=g.createHref(c);try{o.pushState(m,"",x)}catch(C){if(C instanceof DOMException&&C.name==="DataCloneError")throw C;i.location.assign(x)}l&&a&&a({action:s,location:g.location,delta:1})}function v(E,h){s="REPLACE";let c=Xs(g.location,E,h);u=f();let m=Nc(c,u),x=g.createHref(c);o.replaceState(m,"",x),l&&a&&a({action:s,location:g.location,delta:0})}function w(E){return ug(E)}let g={get action(){return s},get location(){return e(i,o)},listen(E){if(a)throw new Error("A history only accepts one active listener");return i.addEventListener(Rc,d),a=E,()=>{i.removeEventListener(Rc,d),a=null}},createHref(E){return t(i,E)},createURL:w,encodeLocation(E){let h=w(E);return{pathname:h.pathname,search:h.search,hash:h.hash}},push:p,replace:v,go(E){return o.go(E)}};return g}function ug(e,t=!1){let n="http://localhost";typeof window<"u"&&(n=window.location.origin!=="null"?window.location.origin:window.location.href),b(n,"No window.location.(origin|href) available to create URL");let r=typeof e=="string"?e:vi(e);return r=r.replace(/ $/,"%20"),!t&&r.startsWith("//")&&(r=n+r),new URL(r,n)}function Sh(e,t,n="/"){return cg(e,t,n,!1)}function cg(e,t,n,r){let i=typeof t=="string"?Pr(t):t,l=Nt(i.pathname||"/",n);if(l==null)return null;let o=Eh(e);fg(o);let s=null;for(let a=0;s==null&&a<o.length;++a){let u=Eg(l);s=xg(o[a],u,r)}return s}function Eh(e,t=[],n=[],r="",i=!1){let l=(o,s,a=i,u)=>{let f={relativePath:u===void 0?o.path||"":u,caseSensitive:o.caseSensitive===!0,childrenIndex:s,route:o};if(f.relativePath.startsWith("/")){if(!f.relativePath.startsWith(r)&&a)return;b(f.relativePath.startsWith(r),`Absolute route path "${f.relativePath}" nested under path "${r}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),f.relativePath=f.relativePath.slice(r.length)}let d=Et([r,f.relativePath]),p=n.concat(f);o.children&&o.children.length>0&&(b(o.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${d}".`),Eh(o.children,t,p,d,a)),!(o.path==null&&!o.index)&&t.push({path:d,score:vg(d,o.index),routesMeta:p})};return e.forEach((o,s)=>{var a;if(o.path===""||!((a=o.path)!=null&&a.includes("?")))l(o,s);else for(let u of kh(o.path))l(o,s,!0,u)}),t}function kh(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,i=n.endsWith("?"),l=n.replace(/\?$/,"");if(r.length===0)return i?[l,""]:[l];let o=kh(r.join("/")),s=[];return s.push(...o.map(a=>a===""?l:[l,a].join("/"))),i&&s.push(...o),s.map(a=>e.startsWith("/")&&a===""?"/":a)}function fg(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:wg(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}var dg=/^:[\w-]+$/,hg=3,pg=2,mg=1,yg=10,gg=-2,Tc=e=>e==="*";function vg(e,t){let n=e.split("/"),r=n.length;return n.some(Tc)&&(r+=gg),t&&(r+=pg),n.filter(i=>!Tc(i)).reduce((i,l)=>i+(dg.test(l)?hg:l===""?mg:yg),r)}function wg(e,t){return e.length===t.length&&e.slice(0,-1).every((r,i)=>r===t[i])?e[e.length-1]-t[t.length-1]:0}function xg(e,t,n=!1){let{routesMeta:r}=e,i={},l="/",o=[];for(let s=0;s<r.length;++s){let a=r[s],u=s===r.length-1,f=l==="/"?t:t.slice(l.length)||"/",d=$l({path:a.relativePath,caseSensitive:a.caseSensitive,end:u},f),p=a.route;if(!d&&u&&n&&!r[r.length-1].route.index&&(d=$l({path:a.relativePath,caseSensitive:a.caseSensitive,end:!1},f)),!d)return null;Object.assign(i,d.params),o.push({params:i,pathname:Et([l,d.pathname]),pathnameBase:Rg(Et([l,d.pathnameBase])),route:p}),d.pathnameBase!=="/"&&(l=Et([l,d.pathnameBase]))}return o}function $l(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=Sg(e.path,e.caseSensitive,e.end),i=t.match(n);if(!i)return null;let l=i[0],o=l.replace(/(.)\/+$/,"$1"),s=i.slice(1);return{params:r.reduce((u,{paramName:f,isOptional:d},p)=>{if(f==="*"){let w=s[p]||"";o=l.slice(0,l.length-w.length).replace(/(.)\/+$/,"$1")}const v=s[p];return d&&!v?u[f]=void 0:u[f]=(v||"").replace(/%2F/g,"/"),u},{}),pathname:l,pathnameBase:o,pattern:e}}function Sg(e,t=!1,n=!0){nt(e==="*"||!e.endsWith("*")||e.endsWith("/*"),`Route path "${e}" will be treated as if it were "${e.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${e.replace(/\*$/,"/*")}".`);let r=[],i="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(o,s,a)=>(r.push({paramName:s,isOptional:a!=null}),a?"/?([^\\/]+)?":"/([^\\/]+)")).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return e.endsWith("*")?(r.push({paramName:"*"}),i+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?i+="\\/*$":e!==""&&e!=="/"&&(i+="(?:(?=\\/|$))"),[new RegExp(i,t?void 0:"i"),r]}function Eg(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return nt(!1,`The URL path "${e}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${t}).`),e}}function Nt(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&r!=="/"?null:e.slice(n)||"/"}var Ch=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,kg=e=>Ch.test(e);function Cg(e,t="/"){let{pathname:n,search:r="",hash:i=""}=typeof e=="string"?Pr(e):e,l;if(n)if(kg(n))l=n;else{if(n.includes("//")){let o=n;n=n.replace(/\/\/+/g,"/"),nt(!1,`Pathnames cannot have embedded double slashes - normalizing ${o} -> ${n}`)}n.startsWith("/")?l=_c(n.substring(1),"/"):l=_c(n,t)}else l=t;return{pathname:l,search:Ng(r),hash:Tg(i)}}function _c(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(i=>{i===".."?n.length>1&&n.pop():i!=="."&&n.push(i)}),n.length>1?n.join("/"):"/"}function Ao(e,t,n,r){return`Cannot include a '${e}' character in a manually specified \`to.${t}\` field [${JSON.stringify(r)}]. Please separate it out to the \`to.${n}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function Pg(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function Ph(e){let t=Pg(e);return t.map((n,r)=>r===t.length-1?n.pathname:n.pathnameBase)}function Rh(e,t,n,r=!1){let i;typeof e=="string"?i=Pr(e):(i={...e},b(!i.pathname||!i.pathname.includes("?"),Ao("?","pathname","search",i)),b(!i.pathname||!i.pathname.includes("#"),Ao("#","pathname","hash",i)),b(!i.search||!i.search.includes("#"),Ao("#","search","hash",i)));let l=e===""||i.pathname==="",o=l?"/":i.pathname,s;if(o==null)s=n;else{let d=t.length-1;if(!r&&o.startsWith("..")){let p=o.split("/");for(;p[0]==="..";)p.shift(),d-=1;i.pathname=p.join("/")}s=d>=0?t[d]:"/"}let a=Cg(i,s),u=o&&o!=="/"&&o.endsWith("/"),f=(l||o===".")&&n.endsWith("/");return!a.pathname.endsWith("/")&&(u||f)&&(a.pathname+="/"),a}var Et=e=>e.join("/").replace(/\/\/+/g,"/"),Rg=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),Ng=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,Tg=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e,_g=class{constructor(e,t,n,r=!1){this.status=e,this.statusText=t||"",this.internal=r,n instanceof Error?(this.data=n.toString(),this.error=n):this.data=n}};function Og(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}function Mg(e){return e.map(t=>t.route.path).filter(Boolean).join("/").replace(/\/\/*/g,"/")||"/"}var Nh=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function Th(e,t){let n=e;if(typeof n!="string"||!Ch.test(n))return{absoluteURL:void 0,isExternal:!1,to:n};let r=n,i=!1;if(Nh)try{let l=new URL(window.location.href),o=n.startsWith("//")?new URL(l.protocol+n):new URL(n),s=Nt(o.pathname,t);o.origin===l.origin&&s!=null?n=s+o.search+o.hash:i=!0}catch{nt(!1,`<Link to="${n}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}return{absoluteURL:r,isExternal:i,to:n}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var _h=["POST","PUT","PATCH","DELETE"];new Set(_h);var Lg=["GET",..._h];new Set(Lg);var Rr=S.createContext(null);Rr.displayName="DataRouter";var lo=S.createContext(null);lo.displayName="DataRouterState";var Dg=S.createContext(!1),Oh=S.createContext({isTransitioning:!1});Oh.displayName="ViewTransition";var Fg=S.createContext(new Map);Fg.displayName="Fetchers";var jg=S.createContext(null);jg.displayName="Await";var Ye=S.createContext(null);Ye.displayName="Navigation";var Mi=S.createContext(null);Mi.displayName="Location";var ht=S.createContext({outlet:null,matches:[],isDataRoute:!1});ht.displayName="Route";var Ja=S.createContext(null);Ja.displayName="RouteError";var Mh="REACT_ROUTER_ERROR",Ig="REDIRECT",zg="ROUTE_ERROR_RESPONSE";function Ug(e){if(e.startsWith(`${Mh}:${Ig}:{`))try{let t=JSON.parse(e.slice(28));if(typeof t=="object"&&t&&typeof t.status=="number"&&typeof t.statusText=="string"&&typeof t.location=="string"&&typeof t.reloadDocument=="boolean"&&typeof t.replace=="boolean")return t}catch{}}function Ag(e){if(e.startsWith(`${Mh}:${zg}:{`))try{let t=JSON.parse(e.slice(40));if(typeof t=="object"&&t&&typeof t.status=="number"&&typeof t.statusText=="string")return new _g(t.status,t.statusText,t.data)}catch{}}function Wg(e,{relative:t}={}){b(Li(),"useHref() may be used only in the context of a <Router> component.");let{basename:n,navigator:r}=S.useContext(Ye),{hash:i,pathname:l,search:o}=Di(e,{relative:t}),s=l;return n!=="/"&&(s=l==="/"?n:Et([n,l])),r.createHref({pathname:s,search:o,hash:i})}function Li(){return S.useContext(Mi)!=null}function In(){return b(Li(),"useLocation() may be used only in the context of a <Router> component."),S.useContext(Mi).location}var Lh="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function Dh(e){S.useContext(Ye).static||S.useLayoutEffect(e)}function Fh(){let{isDataRoute:e}=S.useContext(ht);return e?ev():$g()}function $g(){b(Li(),"useNavigate() may be used only in the context of a <Router> component.");let e=S.useContext(Rr),{basename:t,navigator:n}=S.useContext(Ye),{matches:r}=S.useContext(ht),{pathname:i}=In(),l=JSON.stringify(Ph(r)),o=S.useRef(!1);return Dh(()=>{o.current=!0}),S.useCallback((a,u={})=>{if(nt(o.current,Lh),!o.current)return;if(typeof a=="number"){n.go(a);return}let f=Rh(a,JSON.parse(l),i,u.relative==="path");e==null&&t!=="/"&&(f.pathname=f.pathname==="/"?t:Et([t,f.pathname])),(u.replace?n.replace:n.push)(f,u.state,u)},[t,n,l,i,e])}S.createContext(null);function Qg(){let{matches:e}=S.useContext(ht),t=e[e.length-1];return t?t.params:{}}function Di(e,{relative:t}={}){let{matches:n}=S.useContext(ht),{pathname:r}=In(),i=JSON.stringify(Ph(n));return S.useMemo(()=>Rh(e,JSON.parse(i),r,t==="path"),[e,i,r,t])}function Hg(e,t){return jh(e,t)}function jh(e,t,n,r,i){var c;b(Li(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:l}=S.useContext(Ye),{matches:o}=S.useContext(ht),s=o[o.length-1],a=s?s.params:{},u=s?s.pathname:"/",f=s?s.pathnameBase:"/",d=s&&s.route;{let m=d&&d.path||"";zh(u,!d||m.endsWith("*")||m.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${u}" (under <Route path="${m}">) 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.
49
+ */var Rc="popstate";function ov(e={}){function t(r,i){let{pathname:l,search:o,hash:s}=r.location;return bs("",{pathname:l,search:o,hash:s},i.state&&i.state.usr||null,i.state&&i.state.key||"default")}function n(r,i){return typeof i=="string"?i:gi(i)}return av(t,n,null,e)}function X(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function rt(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function sv(){return Math.random().toString(36).substring(2,10)}function Nc(e,t){return{usr:e.state,key:e.key,idx:t}}function bs(e,t,n=null,r){return{pathname:typeof e=="string"?e:e.pathname,search:"",hash:"",...typeof t=="string"?Pr(t):t,state:n,key:t&&t.key||r||sv()}}function gi({pathname:e="/",search:t="",hash:n=""}){return t&&t!=="?"&&(e+=t.charAt(0)==="?"?t:"?"+t),n&&n!=="#"&&(e+=n.charAt(0)==="#"?n:"#"+n),e}function Pr(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substring(n),e=e.substring(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substring(r),e=e.substring(0,r)),e&&(t.pathname=e)}return t}function av(e,t,n,r={}){let{window:i=document.defaultView,v5Compat:l=!1}=r,o=i.history,s="POP",a=null,u=d();u==null&&(u=0,o.replaceState({...o.state,idx:u},""));function d(){return(o.state||{idx:null}).idx}function f(){s="POP";let E=d(),h=E==null?null:E-u;u=E,a&&a({action:s,location:x.location,delta:h})}function p(E,h){s="PUSH";let c=bs(x.location,E,h);u=d()+1;let m=Nc(c,u),g=x.createHref(c);try{o.pushState(m,"",g)}catch(C){if(C instanceof DOMException&&C.name==="DataCloneError")throw C;i.location.assign(g)}l&&a&&a({action:s,location:x.location,delta:1})}function w(E,h){s="REPLACE";let c=bs(x.location,E,h);u=d();let m=Nc(c,u),g=x.createHref(c);o.replaceState(m,"",g),l&&a&&a({action:s,location:x.location,delta:0})}function v(E){return uv(E)}let x={get action(){return s},get location(){return e(i,o)},listen(E){if(a)throw new Error("A history only accepts one active listener");return i.addEventListener(Rc,f),a=E,()=>{i.removeEventListener(Rc,f),a=null}},createHref(E){return t(i,E)},createURL:v,encodeLocation(E){let h=v(E);return{pathname:h.pathname,search:h.search,hash:h.hash}},push:p,replace:w,go(E){return o.go(E)}};return x}function uv(e,t=!1){let n="http://localhost";typeof window<"u"&&(n=window.location.origin!=="null"?window.location.origin:window.location.href),X(n,"No window.location.(origin|href) available to create URL");let r=typeof e=="string"?e:gi(e);return r=r.replace(/ $/,"%20"),!t&&r.startsWith("//")&&(r=n+r),new URL(r,n)}function Sh(e,t,n="/"){return cv(e,t,n,!1)}function cv(e,t,n,r){let i=typeof t=="string"?Pr(t):t,l=Nt(i.pathname||"/",n);if(l==null)return null;let o=Eh(e);fv(o);let s=null;for(let a=0;s==null&&a<o.length;++a){let u=Ev(l);s=xv(o[a],u,r)}return s}function Eh(e,t=[],n=[],r="",i=!1){let l=(o,s,a=i,u)=>{let d={relativePath:u===void 0?o.path||"":u,caseSensitive:o.caseSensitive===!0,childrenIndex:s,route:o};if(d.relativePath.startsWith("/")){if(!d.relativePath.startsWith(r)&&a)return;X(d.relativePath.startsWith(r),`Absolute route path "${d.relativePath}" nested under path "${r}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),d.relativePath=d.relativePath.slice(r.length)}let f=Et([r,d.relativePath]),p=n.concat(d);o.children&&o.children.length>0&&(X(o.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${f}".`),Eh(o.children,t,p,f,a)),!(o.path==null&&!o.index)&&t.push({path:f,score:gv(f,o.index),routesMeta:p})};return e.forEach((o,s)=>{var a;if(o.path===""||!((a=o.path)!=null&&a.includes("?")))l(o,s);else for(let u of kh(o.path))l(o,s,!0,u)}),t}function kh(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,i=n.endsWith("?"),l=n.replace(/\?$/,"");if(r.length===0)return i?[l,""]:[l];let o=kh(r.join("/")),s=[];return s.push(...o.map(a=>a===""?l:[l,a].join("/"))),i&&s.push(...o),s.map(a=>e.startsWith("/")&&a===""?"/":a)}function fv(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:wv(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}var dv=/^:[\w-]+$/,hv=3,pv=2,mv=1,yv=10,vv=-2,Tc=e=>e==="*";function gv(e,t){let n=e.split("/"),r=n.length;return n.some(Tc)&&(r+=vv),t&&(r+=pv),n.filter(i=>!Tc(i)).reduce((i,l)=>i+(dv.test(l)?hv:l===""?mv:yv),r)}function wv(e,t){return e.length===t.length&&e.slice(0,-1).every((r,i)=>r===t[i])?e[e.length-1]-t[t.length-1]:0}function xv(e,t,n=!1){let{routesMeta:r}=e,i={},l="/",o=[];for(let s=0;s<r.length;++s){let a=r[s],u=s===r.length-1,d=l==="/"?t:t.slice(l.length)||"/",f=$l({path:a.relativePath,caseSensitive:a.caseSensitive,end:u},d),p=a.route;if(!f&&u&&n&&!r[r.length-1].route.index&&(f=$l({path:a.relativePath,caseSensitive:a.caseSensitive,end:!1},d)),!f)return null;Object.assign(i,f.params),o.push({params:i,pathname:Et([l,f.pathname]),pathnameBase:Rv(Et([l,f.pathnameBase])),route:p}),f.pathnameBase!=="/"&&(l=Et([l,f.pathnameBase]))}return o}function $l(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=Sv(e.path,e.caseSensitive,e.end),i=t.match(n);if(!i)return null;let l=i[0],o=l.replace(/(.)\/+$/,"$1"),s=i.slice(1);return{params:r.reduce((u,{paramName:d,isOptional:f},p)=>{if(d==="*"){let v=s[p]||"";o=l.slice(0,l.length-v.length).replace(/(.)\/+$/,"$1")}const w=s[p];return f&&!w?u[d]=void 0:u[d]=(w||"").replace(/%2F/g,"/"),u},{}),pathname:l,pathnameBase:o,pattern:e}}function Sv(e,t=!1,n=!0){rt(e==="*"||!e.endsWith("*")||e.endsWith("/*"),`Route path "${e}" will be treated as if it were "${e.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${e.replace(/\*$/,"/*")}".`);let r=[],i="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(o,s,a)=>(r.push({paramName:s,isOptional:a!=null}),a?"/?([^\\/]+)?":"/([^\\/]+)")).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return e.endsWith("*")?(r.push({paramName:"*"}),i+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?i+="\\/*$":e!==""&&e!=="/"&&(i+="(?:(?=\\/|$))"),[new RegExp(i,t?void 0:"i"),r]}function Ev(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return rt(!1,`The URL path "${e}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${t}).`),e}}function Nt(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&r!=="/"?null:e.slice(n)||"/"}var Ch=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,kv=e=>Ch.test(e);function Cv(e,t="/"){let{pathname:n,search:r="",hash:i=""}=typeof e=="string"?Pr(e):e,l;if(n)if(kv(n))l=n;else{if(n.includes("//")){let o=n;n=n.replace(/\/\/+/g,"/"),rt(!1,`Pathnames cannot have embedded double slashes - normalizing ${o} -> ${n}`)}n.startsWith("/")?l=Oc(n.substring(1),"/"):l=Oc(n,t)}else l=t;return{pathname:l,search:Nv(r),hash:Tv(i)}}function Oc(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(i=>{i===".."?n.length>1&&n.pop():i!=="."&&n.push(i)}),n.length>1?n.join("/"):"/"}function Ao(e,t,n,r){return`Cannot include a '${e}' character in a manually specified \`to.${t}\` field [${JSON.stringify(r)}]. Please separate it out to the \`to.${n}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function Pv(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function Ph(e){let t=Pv(e);return t.map((n,r)=>r===t.length-1?n.pathname:n.pathnameBase)}function Rh(e,t,n,r=!1){let i;typeof e=="string"?i=Pr(e):(i={...e},X(!i.pathname||!i.pathname.includes("?"),Ao("?","pathname","search",i)),X(!i.pathname||!i.pathname.includes("#"),Ao("#","pathname","hash",i)),X(!i.search||!i.search.includes("#"),Ao("#","search","hash",i)));let l=e===""||i.pathname==="",o=l?"/":i.pathname,s;if(o==null)s=n;else{let f=t.length-1;if(!r&&o.startsWith("..")){let p=o.split("/");for(;p[0]==="..";)p.shift(),f-=1;i.pathname=p.join("/")}s=f>=0?t[f]:"/"}let a=Cv(i,s),u=o&&o!=="/"&&o.endsWith("/"),d=(l||o===".")&&n.endsWith("/");return!a.pathname.endsWith("/")&&(u||d)&&(a.pathname+="/"),a}var Et=e=>e.join("/").replace(/\/\/+/g,"/"),Rv=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),Nv=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,Tv=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e,Ov=class{constructor(e,t,n,r=!1){this.status=e,this.statusText=t||"",this.internal=r,n instanceof Error?(this.data=n.toString(),this.error=n):this.data=n}};function _v(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}function Mv(e){return e.map(t=>t.route.path).filter(Boolean).join("/").replace(/\/\/*/g,"/")||"/"}var Nh=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function Th(e,t){let n=e;if(typeof n!="string"||!Ch.test(n))return{absoluteURL:void 0,isExternal:!1,to:n};let r=n,i=!1;if(Nh)try{let l=new URL(window.location.href),o=n.startsWith("//")?new URL(l.protocol+n):new URL(n),s=Nt(o.pathname,t);o.origin===l.origin&&s!=null?n=s+o.search+o.hash:i=!0}catch{rt(!1,`<Link to="${n}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}return{absoluteURL:r,isExternal:i,to:n}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var Oh=["POST","PUT","PATCH","DELETE"];new Set(Oh);var Lv=["GET",...Oh];new Set(Lv);var Rr=S.createContext(null);Rr.displayName="DataRouter";var lo=S.createContext(null);lo.displayName="DataRouterState";var Dv=S.createContext(!1),_h=S.createContext({isTransitioning:!1});_h.displayName="ViewTransition";var Fv=S.createContext(new Map);Fv.displayName="Fetchers";var jv=S.createContext(null);jv.displayName="Await";var Ke=S.createContext(null);Ke.displayName="Navigation";var Mi=S.createContext(null);Mi.displayName="Location";var ht=S.createContext({outlet:null,matches:[],isDataRoute:!1});ht.displayName="Route";var Ja=S.createContext(null);Ja.displayName="RouteError";var Mh="REACT_ROUTER_ERROR",Iv="REDIRECT",zv="ROUTE_ERROR_RESPONSE";function Uv(e){if(e.startsWith(`${Mh}:${Iv}:{`))try{let t=JSON.parse(e.slice(28));if(typeof t=="object"&&t&&typeof t.status=="number"&&typeof t.statusText=="string"&&typeof t.location=="string"&&typeof t.reloadDocument=="boolean"&&typeof t.replace=="boolean")return t}catch{}}function Av(e){if(e.startsWith(`${Mh}:${zv}:{`))try{let t=JSON.parse(e.slice(40));if(typeof t=="object"&&t&&typeof t.status=="number"&&typeof t.statusText=="string")return new Ov(t.status,t.statusText,t.data)}catch{}}function Wv(e,{relative:t}={}){X(Li(),"useHref() may be used only in the context of a <Router> component.");let{basename:n,navigator:r}=S.useContext(Ke),{hash:i,pathname:l,search:o}=Di(e,{relative:t}),s=l;return n!=="/"&&(s=l==="/"?n:Et([n,l])),r.createHref({pathname:s,search:o,hash:i})}function Li(){return S.useContext(Mi)!=null}function In(){return X(Li(),"useLocation() may be used only in the context of a <Router> component."),S.useContext(Mi).location}var Lh="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function Dh(e){S.useContext(Ke).static||S.useLayoutEffect(e)}function Fh(){let{isDataRoute:e}=S.useContext(ht);return e?eg():$v()}function $v(){X(Li(),"useNavigate() may be used only in the context of a <Router> component.");let e=S.useContext(Rr),{basename:t,navigator:n}=S.useContext(Ke),{matches:r}=S.useContext(ht),{pathname:i}=In(),l=JSON.stringify(Ph(r)),o=S.useRef(!1);return Dh(()=>{o.current=!0}),S.useCallback((a,u={})=>{if(rt(o.current,Lh),!o.current)return;if(typeof a=="number"){n.go(a);return}let d=Rh(a,JSON.parse(l),i,u.relative==="path");e==null&&t!=="/"&&(d.pathname=d.pathname==="/"?t:Et([t,d.pathname])),(u.replace?n.replace:n.push)(d,u.state,u)},[t,n,l,i,e])}S.createContext(null);function Qv(){let{matches:e}=S.useContext(ht),t=e[e.length-1];return t?t.params:{}}function Di(e,{relative:t}={}){let{matches:n}=S.useContext(ht),{pathname:r}=In(),i=JSON.stringify(Ph(n));return S.useMemo(()=>Rh(e,JSON.parse(i),r,t==="path"),[e,i,r,t])}function Hv(e,t){return jh(e,t)}function jh(e,t,n,r,i){var c;X(Li(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:l}=S.useContext(Ke),{matches:o}=S.useContext(ht),s=o[o.length-1],a=s?s.params:{},u=s?s.pathname:"/",d=s?s.pathnameBase:"/",f=s&&s.route;{let m=f&&f.path||"";zh(u,!f||m.endsWith("*")||m.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${u}" (under <Route path="${m}">) 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.
50
50
 
51
- Please change the parent <Route path="${m}"> to <Route path="${m==="/"?"*":`${m}/*`}">.`)}let p=In(),v;if(t){let m=typeof t=="string"?Pr(t):t;b(f==="/"||((c=m.pathname)==null?void 0:c.startsWith(f)),`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 "${f}" but pathname "${m.pathname}" was given in the \`location\` prop.`),v=m}else v=p;let w=v.pathname||"/",g=w;if(f!=="/"){let m=f.replace(/^\//,"").split("/");g="/"+w.replace(/^\//,"").split("/").slice(m.length).join("/")}let E=Sh(e,{pathname:g});nt(d||E!=null,`No routes matched location "${v.pathname}${v.search}${v.hash}" `),nt(E==null||E[E.length-1].route.element!==void 0||E[E.length-1].route.Component!==void 0||E[E.length-1].route.lazy!==void 0,`Matched leaf route at location "${v.pathname}${v.search}${v.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`);let h=Gg(E&&E.map(m=>Object.assign({},m,{params:Object.assign({},a,m.params),pathname:Et([f,l.encodeLocation?l.encodeLocation(m.pathname.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:m.pathname]),pathnameBase:m.pathnameBase==="/"?f:Et([f,l.encodeLocation?l.encodeLocation(m.pathnameBase.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:m.pathnameBase])})),o,n,r,i);return t&&h?S.createElement(Mi.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",...v},navigationType:"POP"}},h):h}function Bg(){let e=Zg(),t=Og(e)?`${e.status} ${e.statusText}`:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,r="rgba(200,200,200, 0.5)",i={padding:"0.5rem",backgroundColor:r},l={padding:"2px 4px",backgroundColor:r},o=null;return console.error("Error handled by React Router default ErrorBoundary:",e),o=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:l},"ErrorBoundary")," or"," ",S.createElement("code",{style:l},"errorElement")," prop on your route.")),S.createElement(S.Fragment,null,S.createElement("h2",null,"Unexpected Application Error!"),S.createElement("h3",{style:{fontStyle:"italic"}},t),n?S.createElement("pre",{style:i},n):null,o)}var Vg=S.createElement(Bg,null),Ih=class extends S.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location||t.revalidation!=="idle"&&e.revalidation==="idle"?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:e.error!==void 0?e.error:t.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){this.props.onError?this.props.onError(e,t):console.error("React Router caught the following error during render",e)}render(){let e=this.state.error;if(this.context&&typeof e=="object"&&e&&"digest"in e&&typeof e.digest=="string"){const n=Ag(e.digest);n&&(e=n)}let t=e!==void 0?S.createElement(ht.Provider,{value:this.props.routeContext},S.createElement(Ja.Provider,{value:e,children:this.props.component})):this.props.children;return this.context?S.createElement(Yg,{error:e},t):t}};Ih.contextType=Dg;var Wo=new WeakMap;function Yg({children:e,error:t}){let{basename:n}=S.useContext(Ye);if(typeof t=="object"&&t&&"digest"in t&&typeof t.digest=="string"){let r=Ug(t.digest);if(r){let i=Wo.get(t);if(i)throw i;let l=Th(r.location,n);if(Nh&&!Wo.get(t))if(l.isExternal||r.reloadDocument)window.location.href=l.absoluteURL||l.to;else{const o=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(l.to,{replace:r.replace}));throw Wo.set(t,o),o}return S.createElement("meta",{httpEquiv:"refresh",content:`0;url=${l.absoluteURL||l.to}`})}}return e}function Kg({routeContext:e,match:t,children:n}){let r=S.useContext(Rr);return r&&r.static&&r.staticContext&&(t.route.errorElement||t.route.ErrorBoundary)&&(r.staticContext._deepestRenderedBoundaryId=t.route.id),S.createElement(ht.Provider,{value:e},n)}function Gg(e,t=[],n=null,r=null,i=null){if(e==null){if(!n)return null;if(n.errors)e=n.matches;else if(t.length===0&&!n.initialized&&n.matches.length>0)e=n.matches;else return null}let l=e,o=n==null?void 0:n.errors;if(o!=null){let f=l.findIndex(d=>d.route.id&&(o==null?void 0:o[d.route.id])!==void 0);b(f>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(o).join(",")}`),l=l.slice(0,Math.min(l.length,f+1))}let s=!1,a=-1;if(n)for(let f=0;f<l.length;f++){let d=l[f];if((d.route.HydrateFallback||d.route.hydrateFallbackElement)&&(a=f),d.route.id){let{loaderData:p,errors:v}=n,w=d.route.loader&&!p.hasOwnProperty(d.route.id)&&(!v||v[d.route.id]===void 0);if(d.route.lazy||w){s=!0,a>=0?l=l.slice(0,a+1):l=[l[0]];break}}}let u=n&&r?(f,d)=>{var p,v;r(f,{location:n.location,params:((v=(p=n.matches)==null?void 0:p[0])==null?void 0:v.params)??{},unstable_pattern:Mg(n.matches),errorInfo:d})}:void 0;return l.reduceRight((f,d,p)=>{let v,w=!1,g=null,E=null;n&&(v=o&&d.route.id?o[d.route.id]:void 0,g=d.route.errorElement||Vg,s&&(a<0&&p===0?(zh("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),w=!0,E=null):a===p&&(w=!0,E=d.route.hydrateFallbackElement||null)));let h=t.concat(l.slice(0,p+1)),c=()=>{let m;return v?m=g:w?m=E:d.route.Component?m=S.createElement(d.route.Component,null):d.route.element?m=d.route.element:m=f,S.createElement(Kg,{match:d,routeContext:{outlet:f,matches:h,isDataRoute:n!=null},children:m})};return n&&(d.route.ErrorBoundary||d.route.errorElement||p===0)?S.createElement(Ih,{location:n.location,revalidation:n.revalidation,component:g,error:v,children:c(),routeContext:{outlet:null,matches:h,isDataRoute:!0},onError:u}):c()},null)}function Za(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function qg(e){let t=S.useContext(Rr);return b(t,Za(e)),t}function Xg(e){let t=S.useContext(lo);return b(t,Za(e)),t}function bg(e){let t=S.useContext(ht);return b(t,Za(e)),t}function eu(e){let t=bg(e),n=t.matches[t.matches.length-1];return b(n.route.id,`${e} can only be used on routes that contain a unique "id"`),n.route.id}function Jg(){return eu("useRouteId")}function Zg(){var r;let e=S.useContext(Ja),t=Xg("useRouteError"),n=eu("useRouteError");return e!==void 0?e:(r=t.errors)==null?void 0:r[n]}function ev(){let{router:e}=qg("useNavigate"),t=eu("useNavigate"),n=S.useRef(!1);return Dh(()=>{n.current=!0}),S.useCallback(async(i,l={})=>{nt(n.current,Lh),n.current&&(typeof i=="number"?await e.navigate(i):await e.navigate(i,{fromRouteId:t,...l}))},[e,t])}var Oc={};function zh(e,t,n){!t&&!Oc[e]&&(Oc[e]=!0,nt(!1,n))}S.memo(tv);function tv({routes:e,future:t,state:n,onError:r}){return jh(e,void 0,n,r,t)}function bs(e){b(!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 nv({basename:e="/",children:t=null,location:n,navigationType:r="POP",navigator:i,static:l=!1,unstable_useTransitions:o}){b(!Li(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let s=e.replace(/^\/*/,"/"),a=S.useMemo(()=>({basename:s,navigator:i,static:l,unstable_useTransitions:o,future:{}}),[s,i,l,o]);typeof n=="string"&&(n=Pr(n));let{pathname:u="/",search:f="",hash:d="",state:p=null,key:v="default"}=n,w=S.useMemo(()=>{let g=Nt(u,s);return g==null?null:{location:{pathname:g,search:f,hash:d,state:p,key:v},navigationType:r}},[s,u,f,d,p,v,r]);return nt(w!=null,`<Router basename="${s}"> is not able to match the URL "${u}${f}${d}" because it does not start with the basename, so the <Router> won't render anything.`),w==null?null:S.createElement(Ye.Provider,{value:a},S.createElement(Mi.Provider,{children:t,value:w}))}function rv({children:e,location:t}){return Hg(Js(e),t)}function Js(e,t=[]){let n=[];return S.Children.forEach(e,(r,i)=>{if(!S.isValidElement(r))return;let l=[...t,i];if(r.type===S.Fragment){n.push.apply(n,Js(r.props.children,l));return}b(r.type===bs,`[${typeof r.type=="string"?r.type:r.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),b(!r.props.index||!r.props.children,"An index route cannot have child routes.");let o={id:r.props.id||l.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,Component:r.props.Component,index:r.props.index,path:r.props.path,middleware:r.props.middleware,loader:r.props.loader,action:r.props.action,hydrateFallbackElement:r.props.hydrateFallbackElement,HydrateFallback:r.props.HydrateFallback,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary:r.props.hasErrorBoundary===!0||r.props.ErrorBoundary!=null||r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle,lazy:r.props.lazy};r.props.children&&(o.children=Js(r.props.children,l)),n.push(o)}),n}var pl="get",ml="application/x-www-form-urlencoded";function oo(e){return typeof HTMLElement<"u"&&e instanceof HTMLElement}function iv(e){return oo(e)&&e.tagName.toLowerCase()==="button"}function lv(e){return oo(e)&&e.tagName.toLowerCase()==="form"}function ov(e){return oo(e)&&e.tagName.toLowerCase()==="input"}function sv(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function av(e,t){return e.button===0&&(!t||t==="_self")&&!sv(e)}var tl=null;function uv(){if(tl===null)try{new FormData(document.createElement("form"),0),tl=!1}catch{tl=!0}return tl}var cv=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function $o(e){return e!=null&&!cv.has(e)?(nt(!1,`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${ml}"`),null):e}function fv(e,t){let n,r,i,l,o;if(lv(e)){let s=e.getAttribute("action");r=s?Nt(s,t):null,n=e.getAttribute("method")||pl,i=$o(e.getAttribute("enctype"))||ml,l=new FormData(e)}else if(iv(e)||ov(e)&&(e.type==="submit"||e.type==="image")){let s=e.form;if(s==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let a=e.getAttribute("formaction")||s.getAttribute("action");if(r=a?Nt(a,t):null,n=e.getAttribute("formmethod")||s.getAttribute("method")||pl,i=$o(e.getAttribute("formenctype"))||$o(s.getAttribute("enctype"))||ml,l=new FormData(s,e),!uv()){let{name:u,type:f,value:d}=e;if(f==="image"){let p=u?`${u}.`:"";l.append(`${p}x`,"0"),l.append(`${p}y`,"0")}else u&&l.append(u,d)}}else{if(oo(e))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');n=pl,r=null,i=ml,o=e}return l&&i==="text/plain"&&(o=l,l=void 0),{action:r,method:n.toLowerCase(),encType:i,formData:l,body:o}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function tu(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function dv(e,t,n){let r=typeof e=="string"?new URL(e,typeof window>"u"?"server://singlefetch/":window.location.origin):e;return r.pathname==="/"?r.pathname=`_root.${n}`:t&&Nt(r.pathname,t)==="/"?r.pathname=`${t.replace(/\/$/,"")}/_root.${n}`:r.pathname=`${r.pathname.replace(/\/$/,"")}.${n}`,r}async function hv(e,t){if(e.id in t)return t[e.id];try{let n=await import(e.module);return t[e.id]=n,n}catch(n){return console.error(`Error loading route module \`${e.module}\`, reloading page...`),console.error(n),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function pv(e){return e==null?!1:e.href==null?e.rel==="preload"&&typeof e.imageSrcSet=="string"&&typeof e.imageSizes=="string":typeof e.rel=="string"&&typeof e.href=="string"}async function mv(e,t,n){let r=await Promise.all(e.map(async i=>{let l=t.routes[i.route.id];if(l){let o=await hv(l,n);return o.links?o.links():[]}return[]}));return wv(r.flat(1).filter(pv).filter(i=>i.rel==="stylesheet"||i.rel==="preload").map(i=>i.rel==="stylesheet"?{...i,rel:"prefetch",as:"style"}:{...i,rel:"prefetch"}))}function Mc(e,t,n,r,i,l){let o=(a,u)=>n[u]?a.route.id!==n[u].route.id:!0,s=(a,u)=>{var f;return n[u].pathname!==a.pathname||((f=n[u].route.path)==null?void 0:f.endsWith("*"))&&n[u].params["*"]!==a.params["*"]};return l==="assets"?t.filter((a,u)=>o(a,u)||s(a,u)):l==="data"?t.filter((a,u)=>{var d;let f=r.routes[a.route.id];if(!f||!f.hasLoader)return!1;if(o(a,u)||s(a,u))return!0;if(a.route.shouldRevalidate){let p=a.route.shouldRevalidate({currentUrl:new URL(i.pathname+i.search+i.hash,window.origin),currentParams:((d=n[0])==null?void 0:d.params)||{},nextUrl:new URL(e,window.origin),nextParams:a.params,defaultShouldRevalidate:!0});if(typeof p=="boolean")return p}return!0}):[]}function yv(e,t,{includeHydrateFallback:n}={}){return gv(e.map(r=>{let i=t.routes[r.route.id];if(!i)return[];let l=[i.module];return i.clientActionModule&&(l=l.concat(i.clientActionModule)),i.clientLoaderModule&&(l=l.concat(i.clientLoaderModule)),n&&i.hydrateFallbackModule&&(l=l.concat(i.hydrateFallbackModule)),i.imports&&(l=l.concat(i.imports)),l}).flat(1))}function gv(e){return[...new Set(e)]}function vv(e){let t={},n=Object.keys(e).sort();for(let r of n)t[r]=e[r];return t}function wv(e,t){let n=new Set;return new Set(t),e.reduce((r,i)=>{let l=JSON.stringify(vv(i));return n.has(l)||(n.add(l),r.push({key:l,link:i})),r},[])}function Uh(){let e=S.useContext(Rr);return tu(e,"You must render this element inside a <DataRouterContext.Provider> element"),e}function xv(){let e=S.useContext(lo);return tu(e,"You must render this element inside a <DataRouterStateContext.Provider> element"),e}var nu=S.createContext(void 0);nu.displayName="FrameworkContext";function Ah(){let e=S.useContext(nu);return tu(e,"You must render this element inside a <HydratedRouter> element"),e}function Sv(e,t){let n=S.useContext(nu),[r,i]=S.useState(!1),[l,o]=S.useState(!1),{onFocus:s,onBlur:a,onMouseEnter:u,onMouseLeave:f,onTouchStart:d}=t,p=S.useRef(null);S.useEffect(()=>{if(e==="render"&&o(!0),e==="viewport"){let g=h=>{h.forEach(c=>{o(c.isIntersecting)})},E=new IntersectionObserver(g,{threshold:.5});return p.current&&E.observe(p.current),()=>{E.disconnect()}}},[e]),S.useEffect(()=>{if(r){let g=setTimeout(()=>{o(!0)},100);return()=>{clearTimeout(g)}}},[r]);let v=()=>{i(!0)},w=()=>{i(!1),o(!1)};return n?e!=="intent"?[l,p,{}]:[l,p,{onFocus:jr(s,v),onBlur:jr(a,w),onMouseEnter:jr(u,v),onMouseLeave:jr(f,w),onTouchStart:jr(d,v)}]:[!1,p,{}]}function jr(e,t){return n=>{e&&e(n),n.defaultPrevented||t(n)}}function Ev({page:e,...t}){let{router:n}=Uh(),r=S.useMemo(()=>Sh(n.routes,e,n.basename),[n.routes,e,n.basename]);return r?S.createElement(Cv,{page:e,matches:r,...t}):null}function kv(e){let{manifest:t,routeModules:n}=Ah(),[r,i]=S.useState([]);return S.useEffect(()=>{let l=!1;return mv(e,t,n).then(o=>{l||i(o)}),()=>{l=!0}},[e,t,n]),r}function Cv({page:e,matches:t,...n}){let r=In(),{manifest:i,routeModules:l}=Ah(),{basename:o}=Uh(),{loaderData:s,matches:a}=xv(),u=S.useMemo(()=>Mc(e,t,a,i,r,"data"),[e,t,a,i,r]),f=S.useMemo(()=>Mc(e,t,a,i,r,"assets"),[e,t,a,i,r]),d=S.useMemo(()=>{if(e===r.pathname+r.search+r.hash)return[];let w=new Set,g=!1;if(t.forEach(h=>{var m;let c=i.routes[h.route.id];!c||!c.hasLoader||(!u.some(x=>x.route.id===h.route.id)&&h.route.id in s&&((m=l[h.route.id])!=null&&m.shouldRevalidate)||c.hasClientLoader?g=!0:w.add(h.route.id))}),w.size===0)return[];let E=dv(e,o,"data");return g&&w.size>0&&E.searchParams.set("_routes",t.filter(h=>w.has(h.route.id)).map(h=>h.route.id).join(",")),[E.pathname+E.search]},[o,s,r,i,u,t,e,l]),p=S.useMemo(()=>yv(f,i),[f,i]),v=kv(f);return S.createElement(S.Fragment,null,d.map(w=>S.createElement("link",{key:w,rel:"prefetch",as:"fetch",href:w,...n})),p.map(w=>S.createElement("link",{key:w,rel:"modulepreload",href:w,...n})),v.map(({key:w,link:g})=>S.createElement("link",{key:w,nonce:n.nonce,...g})))}function Pv(...e){return t=>{e.forEach(n=>{typeof n=="function"?n(t):n!=null&&(n.current=t)})}}var Rv=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{Rv&&(window.__reactRouterVersion="7.11.0")}catch{}function Nv({basename:e,children:t,unstable_useTransitions:n,window:r}){let i=S.useRef();i.current==null&&(i.current=og({window:r,v5Compat:!0}));let l=i.current,[o,s]=S.useState({action:l.action,location:l.location}),a=S.useCallback(u=>{n===!1?s(u):S.startTransition(()=>s(u))},[n]);return S.useLayoutEffect(()=>l.listen(a),[l,a]),S.createElement(nv,{basename:e,children:t,location:o.location,navigationType:o.action,navigator:l,unstable_useTransitions:n})}var Wh=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,ru=S.forwardRef(function({onClick:t,discover:n="render",prefetch:r="none",relative:i,reloadDocument:l,replace:o,state:s,target:a,to:u,preventScrollReset:f,viewTransition:d,unstable_defaultShouldRevalidate:p,...v},w){let{basename:g,unstable_useTransitions:E}=S.useContext(Ye),h=typeof u=="string"&&Wh.test(u),c=Th(u,g);u=c.to;let m=Wg(u,{relative:i}),[x,C,R]=Sv(r,v),T=Mv(u,{replace:o,state:s,target:a,preventScrollReset:f,relative:i,viewTransition:d,unstable_defaultShouldRevalidate:p,unstable_useTransitions:E});function N(_){t&&t(_),_.defaultPrevented||T(_)}let I=S.createElement("a",{...v,...R,href:c.absoluteURL||m,onClick:c.isExternal||l?t:N,ref:Pv(w,C),target:a,"data-discover":!h&&n==="render"?"true":void 0});return x&&!h?S.createElement(S.Fragment,null,I,S.createElement(Ev,{page:m})):I});ru.displayName="Link";var Tv=S.forwardRef(function({"aria-current":t="page",caseSensitive:n=!1,className:r="",end:i=!1,style:l,to:o,viewTransition:s,children:a,...u},f){let d=Di(o,{relative:u.relative}),p=In(),v=S.useContext(lo),{navigator:w,basename:g}=S.useContext(Ye),E=v!=null&&Iv(d)&&s===!0,h=w.encodeLocation?w.encodeLocation(d).pathname:d.pathname,c=p.pathname,m=v&&v.navigation&&v.navigation.location?v.navigation.location.pathname:null;n||(c=c.toLowerCase(),m=m?m.toLowerCase():null,h=h.toLowerCase()),m&&g&&(m=Nt(m,g)||m);const x=h!=="/"&&h.endsWith("/")?h.length-1:h.length;let C=c===h||!i&&c.startsWith(h)&&c.charAt(x)==="/",R=m!=null&&(m===h||!i&&m.startsWith(h)&&m.charAt(h.length)==="/"),T={isActive:C,isPending:R,isTransitioning:E},N=C?t:void 0,I;typeof r=="function"?I=r(T):I=[r,C?"active":null,R?"pending":null,E?"transitioning":null].filter(Boolean).join(" ");let _=typeof l=="function"?l(T):l;return S.createElement(ru,{...u,"aria-current":N,className:I,ref:f,style:_,to:o,viewTransition:s},typeof a=="function"?a(T):a)});Tv.displayName="NavLink";var _v=S.forwardRef(({discover:e="render",fetcherKey:t,navigate:n,reloadDocument:r,replace:i,state:l,method:o=pl,action:s,onSubmit:a,relative:u,preventScrollReset:f,viewTransition:d,unstable_defaultShouldRevalidate:p,...v},w)=>{let{unstable_useTransitions:g}=S.useContext(Ye),E=Fv(),h=jv(s,{relative:u}),c=o.toLowerCase()==="get"?"get":"post",m=typeof s=="string"&&Wh.test(s),x=C=>{if(a&&a(C),C.defaultPrevented)return;C.preventDefault();let R=C.nativeEvent.submitter,T=(R==null?void 0:R.getAttribute("formmethod"))||o,N=()=>E(R||C.currentTarget,{fetcherKey:t,method:T,navigate:n,replace:i,state:l,relative:u,preventScrollReset:f,viewTransition:d,unstable_defaultShouldRevalidate:p});g&&n!==!1?S.startTransition(()=>N()):N()};return S.createElement("form",{ref:w,method:c,action:h,onSubmit:r?a:x,...v,"data-discover":!m&&e==="render"?"true":void 0})});_v.displayName="Form";function Ov(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function $h(e){let t=S.useContext(Rr);return b(t,Ov(e)),t}function Mv(e,{target:t,replace:n,state:r,preventScrollReset:i,relative:l,viewTransition:o,unstable_defaultShouldRevalidate:s,unstable_useTransitions:a}={}){let u=Fh(),f=In(),d=Di(e,{relative:l});return S.useCallback(p=>{if(av(p,t)){p.preventDefault();let v=n!==void 0?n:vi(f)===vi(d),w=()=>u(e,{replace:v,state:r,preventScrollReset:i,relative:l,viewTransition:o,unstable_defaultShouldRevalidate:s});a?S.startTransition(()=>w()):w()}},[f,u,d,n,r,t,e,i,l,o,s,a])}var Lv=0,Dv=()=>`__${String(++Lv)}__`;function Fv(){let{router:e}=$h("useSubmit"),{basename:t}=S.useContext(Ye),n=Jg(),r=e.fetch,i=e.navigate;return S.useCallback(async(l,o={})=>{let{action:s,method:a,encType:u,formData:f,body:d}=fv(l,t);if(o.navigate===!1){let p=o.fetcherKey||Dv();await r(p,n,o.action||s,{unstable_defaultShouldRevalidate:o.unstable_defaultShouldRevalidate,preventScrollReset:o.preventScrollReset,formData:f,body:d,formMethod:o.method||a,formEncType:o.encType||u,flushSync:o.flushSync})}else await i(o.action||s,{unstable_defaultShouldRevalidate:o.unstable_defaultShouldRevalidate,preventScrollReset:o.preventScrollReset,formData:f,body:d,formMethod:o.method||a,formEncType:o.encType||u,replace:o.replace,state:o.state,fromRouteId:n,flushSync:o.flushSync,viewTransition:o.viewTransition})},[r,i,t,n])}function jv(e,{relative:t}={}){let{basename:n}=S.useContext(Ye),r=S.useContext(ht);b(r,"useFormAction must be used inside a RouteContext");let[i]=r.matches.slice(-1),l={...Di(e||".",{relative:t})},o=In();if(e==null){l.search=o.search;let s=new URLSearchParams(l.search),a=s.getAll("index");if(a.some(f=>f==="")){s.delete("index"),a.filter(d=>d).forEach(d=>s.append("index",d));let f=s.toString();l.search=f?`?${f}`:""}}return(!e||e===".")&&i.route.index&&(l.search=l.search?l.search.replace(/^\?/,"?index&"):"?index"),n!=="/"&&(l.pathname=l.pathname==="/"?n:Et([n,l.pathname])),vi(l)}function Iv(e,{relative:t}={}){let n=S.useContext(Oh);b(n!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:r}=$h("useViewTransitionState"),i=Di(e,{relative:t});if(!n.isTransitioning)return!1;let l=Nt(n.currentLocation.pathname,r)||n.currentLocation.pathname,o=Nt(n.nextLocation.pathname,r)||n.nextLocation.pathname;return $l(i.pathname,o)!=null||$l(i.pathname,l)!=null}function rt(e){const t=Object.prototype.toString.call(e);return e instanceof Date||typeof e=="object"&&t==="[object Date]"?new e.constructor(+e):typeof e=="number"||t==="[object Number]"||typeof e=="string"||t==="[object String]"?new Date(e):new Date(NaN)}function Dn(e,t){return e instanceof Date?new e.constructor(t):new Date(t)}const Qh=6048e5,zv=864e5;let Uv={};function so(){return Uv}function wi(e,t){var s,a,u,f;const n=so(),r=(t==null?void 0:t.weekStartsOn)??((a=(s=t==null?void 0:t.locale)==null?void 0:s.options)==null?void 0:a.weekStartsOn)??n.weekStartsOn??((f=(u=n.locale)==null?void 0:u.options)==null?void 0:f.weekStartsOn)??0,i=rt(e),l=i.getDay(),o=(l<r?7:0)+l-r;return i.setDate(i.getDate()-o),i.setHours(0,0,0,0),i}function Ql(e){return wi(e,{weekStartsOn:1})}function Hh(e){const t=rt(e),n=t.getFullYear(),r=Dn(e,0);r.setFullYear(n+1,0,4),r.setHours(0,0,0,0);const i=Ql(r),l=Dn(e,0);l.setFullYear(n,0,4),l.setHours(0,0,0,0);const o=Ql(l);return t.getTime()>=i.getTime()?n+1:t.getTime()>=o.getTime()?n:n-1}function Lc(e){const t=rt(e);return t.setHours(0,0,0,0),t}function Dc(e){const t=rt(e),n=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return n.setUTCFullYear(t.getFullYear()),+e-+n}function Av(e,t){const n=Lc(e),r=Lc(t),i=+n-Dc(n),l=+r-Dc(r);return Math.round((i-l)/zv)}function Wv(e){const t=Hh(e),n=Dn(e,0);return n.setFullYear(t,0,4),n.setHours(0,0,0,0),Ql(n)}function $v(e){return e instanceof Date||typeof e=="object"&&Object.prototype.toString.call(e)==="[object Date]"}function Qv(e){if(!$v(e)&&typeof e!="number")return!1;const t=rt(e);return!isNaN(Number(t))}function Hv(e){const t=rt(e),n=Dn(e,0);return n.setFullYear(t.getFullYear(),0,1),n.setHours(0,0,0,0),n}const Bv={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},Vv=(e,t,n)=>{let r;const i=Bv[e];return typeof i=="string"?r=i:t===1?r=i.one:r=i.other.replace("{{count}}",t.toString()),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?"in "+r:r+" ago":r};function Qo(e){return(t={})=>{const n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}const Yv={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},Kv={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},Gv={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},qv={date:Qo({formats:Yv,defaultWidth:"full"}),time:Qo({formats:Kv,defaultWidth:"full"}),dateTime:Qo({formats:Gv,defaultWidth:"full"})},Xv={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},bv=(e,t,n,r)=>Xv[e];function Ir(e){return(t,n)=>{const r=n!=null&&n.context?String(n.context):"standalone";let i;if(r==="formatting"&&e.formattingValues){const o=e.defaultFormattingWidth||e.defaultWidth,s=n!=null&&n.width?String(n.width):o;i=e.formattingValues[s]||e.formattingValues[o]}else{const o=e.defaultWidth,s=n!=null&&n.width?String(n.width):e.defaultWidth;i=e.values[s]||e.values[o]}const l=e.argumentCallback?e.argumentCallback(t):t;return i[l]}}const Jv={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},Zv={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},e0={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},t0={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},n0={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},r0={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},i0=(e,t)=>{const n=Number(e),r=n%100;if(r>20||r<10)switch(r%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},l0={ordinalNumber:i0,era:Ir({values:Jv,defaultWidth:"wide"}),quarter:Ir({values:Zv,defaultWidth:"wide",argumentCallback:e=>e-1}),month:Ir({values:e0,defaultWidth:"wide"}),day:Ir({values:t0,defaultWidth:"wide"}),dayPeriod:Ir({values:n0,defaultWidth:"wide",formattingValues:r0,defaultFormattingWidth:"wide"})};function zr(e){return(t,n={})=>{const r=n.width,i=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],l=t.match(i);if(!l)return null;const o=l[0],s=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],a=Array.isArray(s)?s0(s,d=>d.test(o)):o0(s,d=>d.test(o));let u;u=e.valueCallback?e.valueCallback(a):a,u=n.valueCallback?n.valueCallback(u):u;const f=t.slice(o.length);return{value:u,rest:f}}}function o0(e,t){for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t(e[n]))return n}function s0(e,t){for(let n=0;n<e.length;n++)if(t(e[n]))return n}function a0(e){return(t,n={})=>{const r=t.match(e.matchPattern);if(!r)return null;const i=r[0],l=t.match(e.parsePattern);if(!l)return null;let o=e.valueCallback?e.valueCallback(l[0]):l[0];o=n.valueCallback?n.valueCallback(o):o;const s=t.slice(i.length);return{value:o,rest:s}}}const u0=/^(\d+)(th|st|nd|rd)?/i,c0=/\d+/i,f0={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},d0={any:[/^b/i,/^(a|c)/i]},h0={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},p0={any:[/1/i,/2/i,/3/i,/4/i]},m0={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},y0={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},g0={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},v0={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},w0={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},x0={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},S0={ordinalNumber:a0({matchPattern:u0,parsePattern:c0,valueCallback:e=>parseInt(e,10)}),era:zr({matchPatterns:f0,defaultMatchWidth:"wide",parsePatterns:d0,defaultParseWidth:"any"}),quarter:zr({matchPatterns:h0,defaultMatchWidth:"wide",parsePatterns:p0,defaultParseWidth:"any",valueCallback:e=>e+1}),month:zr({matchPatterns:m0,defaultMatchWidth:"wide",parsePatterns:y0,defaultParseWidth:"any"}),day:zr({matchPatterns:g0,defaultMatchWidth:"wide",parsePatterns:v0,defaultParseWidth:"any"}),dayPeriod:zr({matchPatterns:w0,defaultMatchWidth:"any",parsePatterns:x0,defaultParseWidth:"any"})},E0={code:"en-US",formatDistance:Vv,formatLong:qv,formatRelative:bv,localize:l0,match:S0,options:{weekStartsOn:0,firstWeekContainsDate:1}};function k0(e){const t=rt(e);return Av(t,Hv(t))+1}function C0(e){const t=rt(e),n=+Ql(t)-+Wv(t);return Math.round(n/Qh)+1}function Bh(e,t){var f,d,p,v;const n=rt(e),r=n.getFullYear(),i=so(),l=(t==null?void 0:t.firstWeekContainsDate)??((d=(f=t==null?void 0:t.locale)==null?void 0:f.options)==null?void 0:d.firstWeekContainsDate)??i.firstWeekContainsDate??((v=(p=i.locale)==null?void 0:p.options)==null?void 0:v.firstWeekContainsDate)??1,o=Dn(e,0);o.setFullYear(r+1,0,l),o.setHours(0,0,0,0);const s=wi(o,t),a=Dn(e,0);a.setFullYear(r,0,l),a.setHours(0,0,0,0);const u=wi(a,t);return n.getTime()>=s.getTime()?r+1:n.getTime()>=u.getTime()?r:r-1}function P0(e,t){var s,a,u,f;const n=so(),r=(t==null?void 0:t.firstWeekContainsDate)??((a=(s=t==null?void 0:t.locale)==null?void 0:s.options)==null?void 0:a.firstWeekContainsDate)??n.firstWeekContainsDate??((f=(u=n.locale)==null?void 0:u.options)==null?void 0:f.firstWeekContainsDate)??1,i=Bh(e,t),l=Dn(e,0);return l.setFullYear(i,0,r),l.setHours(0,0,0,0),wi(l,t)}function R0(e,t){const n=rt(e),r=+wi(n,t)-+P0(n,t);return Math.round(r/Qh)+1}function H(e,t){const n=e<0?"-":"",r=Math.abs(e).toString().padStart(t,"0");return n+r}const Ot={y(e,t){const n=e.getFullYear(),r=n>0?n:1-n;return H(t==="yy"?r%100:r,t.length)},M(e,t){const n=e.getMonth();return t==="M"?String(n+1):H(n+1,2)},d(e,t){return H(e.getDate(),t.length)},a(e,t){const n=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.toUpperCase();case"aaa":return n;case"aaaaa":return n[0];case"aaaa":default:return n==="am"?"a.m.":"p.m."}},h(e,t){return H(e.getHours()%12||12,t.length)},H(e,t){return H(e.getHours(),t.length)},m(e,t){return H(e.getMinutes(),t.length)},s(e,t){return H(e.getSeconds(),t.length)},S(e,t){const n=t.length,r=e.getMilliseconds(),i=Math.trunc(r*Math.pow(10,n-3));return H(i,t.length)}},Un={midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},Fc={G:function(e,t,n){const r=e.getFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return n.era(r,{width:"abbreviated"});case"GGGGG":return n.era(r,{width:"narrow"});case"GGGG":default:return n.era(r,{width:"wide"})}},y:function(e,t,n){if(t==="yo"){const r=e.getFullYear(),i=r>0?r:1-r;return n.ordinalNumber(i,{unit:"year"})}return Ot.y(e,t)},Y:function(e,t,n,r){const i=Bh(e,r),l=i>0?i:1-i;if(t==="YY"){const o=l%100;return H(o,2)}return t==="Yo"?n.ordinalNumber(l,{unit:"year"}):H(l,t.length)},R:function(e,t){const n=Hh(e);return H(n,t.length)},u:function(e,t){const n=e.getFullYear();return H(n,t.length)},Q:function(e,t,n){const r=Math.ceil((e.getMonth()+1)/3);switch(t){case"Q":return String(r);case"QQ":return H(r,2);case"Qo":return n.ordinalNumber(r,{unit:"quarter"});case"QQQ":return n.quarter(r,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(r,{width:"narrow",context:"formatting"});case"QQQQ":default:return n.quarter(r,{width:"wide",context:"formatting"})}},q:function(e,t,n){const r=Math.ceil((e.getMonth()+1)/3);switch(t){case"q":return String(r);case"qq":return H(r,2);case"qo":return n.ordinalNumber(r,{unit:"quarter"});case"qqq":return n.quarter(r,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(r,{width:"narrow",context:"standalone"});case"qqqq":default:return n.quarter(r,{width:"wide",context:"standalone"})}},M:function(e,t,n){const r=e.getMonth();switch(t){case"M":case"MM":return Ot.M(e,t);case"Mo":return n.ordinalNumber(r+1,{unit:"month"});case"MMM":return n.month(r,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(r,{width:"narrow",context:"formatting"});case"MMMM":default:return n.month(r,{width:"wide",context:"formatting"})}},L:function(e,t,n){const r=e.getMonth();switch(t){case"L":return String(r+1);case"LL":return H(r+1,2);case"Lo":return n.ordinalNumber(r+1,{unit:"month"});case"LLL":return n.month(r,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(r,{width:"narrow",context:"standalone"});case"LLLL":default:return n.month(r,{width:"wide",context:"standalone"})}},w:function(e,t,n,r){const i=R0(e,r);return t==="wo"?n.ordinalNumber(i,{unit:"week"}):H(i,t.length)},I:function(e,t,n){const r=C0(e);return t==="Io"?n.ordinalNumber(r,{unit:"week"}):H(r,t.length)},d:function(e,t,n){return t==="do"?n.ordinalNumber(e.getDate(),{unit:"date"}):Ot.d(e,t)},D:function(e,t,n){const r=k0(e);return t==="Do"?n.ordinalNumber(r,{unit:"dayOfYear"}):H(r,t.length)},E:function(e,t,n){const r=e.getDay();switch(t){case"E":case"EE":case"EEE":return n.day(r,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(r,{width:"short",context:"formatting"});case"EEEE":default:return n.day(r,{width:"wide",context:"formatting"})}},e:function(e,t,n,r){const i=e.getDay(),l=(i-r.weekStartsOn+8)%7||7;switch(t){case"e":return String(l);case"ee":return H(l,2);case"eo":return n.ordinalNumber(l,{unit:"day"});case"eee":return n.day(i,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(i,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(i,{width:"short",context:"formatting"});case"eeee":default:return n.day(i,{width:"wide",context:"formatting"})}},c:function(e,t,n,r){const i=e.getDay(),l=(i-r.weekStartsOn+8)%7||7;switch(t){case"c":return String(l);case"cc":return H(l,t.length);case"co":return n.ordinalNumber(l,{unit:"day"});case"ccc":return n.day(i,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(i,{width:"narrow",context:"standalone"});case"cccccc":return n.day(i,{width:"short",context:"standalone"});case"cccc":default:return n.day(i,{width:"wide",context:"standalone"})}},i:function(e,t,n){const r=e.getDay(),i=r===0?7:r;switch(t){case"i":return String(i);case"ii":return H(i,t.length);case"io":return n.ordinalNumber(i,{unit:"day"});case"iii":return n.day(r,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(r,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(r,{width:"short",context:"formatting"});case"iiii":default:return n.day(r,{width:"wide",context:"formatting"})}},a:function(e,t,n){const i=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(i,{width:"narrow",context:"formatting"});case"aaaa":default:return n.dayPeriod(i,{width:"wide",context:"formatting"})}},b:function(e,t,n){const r=e.getHours();let i;switch(r===12?i=Un.noon:r===0?i=Un.midnight:i=r/12>=1?"pm":"am",t){case"b":case"bb":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(i,{width:"narrow",context:"formatting"});case"bbbb":default:return n.dayPeriod(i,{width:"wide",context:"formatting"})}},B:function(e,t,n){const r=e.getHours();let i;switch(r>=17?i=Un.evening:r>=12?i=Un.afternoon:r>=4?i=Un.morning:i=Un.night,t){case"B":case"BB":case"BBB":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(i,{width:"narrow",context:"formatting"});case"BBBB":default:return n.dayPeriod(i,{width:"wide",context:"formatting"})}},h:function(e,t,n){if(t==="ho"){let r=e.getHours()%12;return r===0&&(r=12),n.ordinalNumber(r,{unit:"hour"})}return Ot.h(e,t)},H:function(e,t,n){return t==="Ho"?n.ordinalNumber(e.getHours(),{unit:"hour"}):Ot.H(e,t)},K:function(e,t,n){const r=e.getHours()%12;return t==="Ko"?n.ordinalNumber(r,{unit:"hour"}):H(r,t.length)},k:function(e,t,n){let r=e.getHours();return r===0&&(r=24),t==="ko"?n.ordinalNumber(r,{unit:"hour"}):H(r,t.length)},m:function(e,t,n){return t==="mo"?n.ordinalNumber(e.getMinutes(),{unit:"minute"}):Ot.m(e,t)},s:function(e,t,n){return t==="so"?n.ordinalNumber(e.getSeconds(),{unit:"second"}):Ot.s(e,t)},S:function(e,t){return Ot.S(e,t)},X:function(e,t,n){const r=e.getTimezoneOffset();if(r===0)return"Z";switch(t){case"X":return Ic(r);case"XXXX":case"XX":return fn(r);case"XXXXX":case"XXX":default:return fn(r,":")}},x:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"x":return Ic(r);case"xxxx":case"xx":return fn(r);case"xxxxx":case"xxx":default:return fn(r,":")}},O:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+jc(r,":");case"OOOO":default:return"GMT"+fn(r,":")}},z:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+jc(r,":");case"zzzz":default:return"GMT"+fn(r,":")}},t:function(e,t,n){const r=Math.trunc(e.getTime()/1e3);return H(r,t.length)},T:function(e,t,n){const r=e.getTime();return H(r,t.length)}};function jc(e,t=""){const n=e>0?"-":"+",r=Math.abs(e),i=Math.trunc(r/60),l=r%60;return l===0?n+String(i):n+String(i)+t+H(l,2)}function Ic(e,t){return e%60===0?(e>0?"-":"+")+H(Math.abs(e)/60,2):fn(e,t)}function fn(e,t=""){const n=e>0?"-":"+",r=Math.abs(e),i=H(Math.trunc(r/60),2),l=H(r%60,2);return n+i+t+l}const zc=(e,t)=>{switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});case"PPPP":default:return t.date({width:"full"})}},Vh=(e,t)=>{switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});case"pppp":default:return t.time({width:"full"})}},N0=(e,t)=>{const n=e.match(/(P+)(p+)?/)||[],r=n[1],i=n[2];if(!i)return zc(e,t);let l;switch(r){case"P":l=t.dateTime({width:"short"});break;case"PP":l=t.dateTime({width:"medium"});break;case"PPP":l=t.dateTime({width:"long"});break;case"PPPP":default:l=t.dateTime({width:"full"});break}return l.replace("{{date}}",zc(r,t)).replace("{{time}}",Vh(i,t))},T0={p:Vh,P:N0},_0=/^D+$/,O0=/^Y+$/,M0=["D","DD","YY","YYYY"];function L0(e){return _0.test(e)}function D0(e){return O0.test(e)}function F0(e,t,n){const r=j0(e,t,n);if(console.warn(r),M0.includes(e))throw new RangeError(r)}function j0(e,t,n){const r=e[0]==="Y"?"years":"days of the month";return`Use \`${e.toLowerCase()}\` instead of \`${e}\` (in \`${t}\`) for formatting ${r} to the input \`${n}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}const I0=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,z0=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,U0=/^'([^]*?)'?$/,A0=/''/g,W0=/[a-zA-Z]/;function Jr(e,t,n){var f,d,p,v;const r=so(),i=r.locale??E0,l=r.firstWeekContainsDate??((d=(f=r.locale)==null?void 0:f.options)==null?void 0:d.firstWeekContainsDate)??1,o=r.weekStartsOn??((v=(p=r.locale)==null?void 0:p.options)==null?void 0:v.weekStartsOn)??0,s=rt(e);if(!Qv(s))throw new RangeError("Invalid time value");let a=t.match(z0).map(w=>{const g=w[0];if(g==="p"||g==="P"){const E=T0[g];return E(w,i.formatLong)}return w}).join("").match(I0).map(w=>{if(w==="''")return{isToken:!1,value:"'"};const g=w[0];if(g==="'")return{isToken:!1,value:$0(w)};if(Fc[g])return{isToken:!0,value:w};if(g.match(W0))throw new RangeError("Format string contains an unescaped latin alphabet character `"+g+"`");return{isToken:!1,value:w}});i.localize.preprocessor&&(a=i.localize.preprocessor(s,a));const u={firstWeekContainsDate:l,weekStartsOn:o,locale:i};return a.map(w=>{if(!w.isToken)return w.value;const g=w.value;(D0(g)||L0(g))&&F0(g,t,String(e));const E=Fc[g[0]];return E(s,g,i.localize,u)}).join("")}function $0(e){const t=e.match(U0);return t?t[1].replace(A0,"'"):e}function Q0({displayName:e,sessionCount:t,lastActivity:n,sessions:r,selectedId:i,onSelectSession:l,initialExpanded:o=!1}){const[s,a]=S.useState(o);return S.useEffect(()=>{i&&r.some(f=>{var d;return f.id===i||((d=f.agentSessions)==null?void 0:d.some(p=>p.id===i))})&&a(!0)},[i,r]),k.jsxs("div",{className:"border-b border-gray-700",children:[k.jsx("button",{onClick:()=>a(!s),className:"sticky top-0 z-10 w-full text-left p-4 bg-gray-900 hover:bg-gray-800 transition-colors flex items-center justify-between",children:k.jsxs("div",{className:"flex-1 min-w-0",children:[k.jsxs("div",{className:"flex items-center gap-2",children:[k.jsx("svg",{className:`w-4 h-4 transition-transform ${s?"rotate-90":""}`,fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:k.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M9 5l7 7-7 7"})}),k.jsx("span",{className:"font-semibold text-sm truncate",children:e})]}),k.jsxs("div",{className:"text-xs text-gray-400 mt-1 ml-6",children:[t," session",t!==1?"s":""," · Last activity"," ",Jr(new Date(n),"PPp")]})]})}),s&&k.jsx("div",{className:"bg-gray-900/50",children:r.map(u=>k.jsxs("div",{children:[k.jsxs("button",{onClick:()=>l(u.id),className:`w-full text-left px-4 py-3 pl-8 hover:bg-gray-700/50 transition-colors border-l-2 ${i===u.id?"bg-gray-700 border-blue-500":"border-transparent"}`,children:[u.title&&k.jsx("div",{className:"text-sm font-medium text-gray-200 mb-1 truncate",children:u.title}),k.jsx("div",{className:"text-xs text-gray-400",children:Jr(new Date(u.timestamp),"PPpp")}),k.jsxs("div",{className:"text-xs text-gray-500 mt-1",children:[u.messageCount," message",u.messageCount!==1?"s":"",u.agentSessions&&u.agentSessions.length>0&&k.jsxs("span",{className:"ml-2",children:["· ",u.agentSessions.length," task",u.agentSessions.length!==1?"s":""]})]})]}),u.agentSessions&&u.agentSessions.length>0&&k.jsx("div",{className:"bg-gray-900/70",children:u.agentSessions.map(f=>k.jsxs("button",{onClick:()=>l(f.id),className:`w-full text-left px-4 py-2 pl-14 hover:bg-gray-700/50 transition-colors border-l-2 ${i===f.id?"bg-gray-700 border-blue-500":"border-transparent"}`,children:[k.jsxs("div",{className:"flex items-center gap-2 mb-1",children:[k.jsx("span",{className:"px-1.5 py-0.5 text-xs bg-purple-900/50 text-purple-300 rounded",children:"TASK"}),f.title&&k.jsx("span",{className:"text-sm font-medium text-gray-300 truncate",children:f.title})]}),k.jsx("div",{className:"text-xs text-gray-400",children:Jr(new Date(f.timestamp),"PPpp")}),k.jsxs("div",{className:"text-xs text-gray-500 mt-1",children:[f.messageCount," message",f.messageCount!==1?"s":""]})]},f.id))})]},u.id))})]})}function H0({projects:e,selectedId:t,onSelect:n}){const r=i=>t?i.sessions.some(l=>{var o;return l.id===t||((o=l.agentSessions)==null?void 0:o.some(s=>s.id===t))}):!1;return k.jsx("div",{children:e.map(i=>k.jsx(Q0,{name:i.name,displayName:i.displayName,sessionCount:i.sessionCount,lastActivity:i.lastActivity,sessions:i.sessions,selectedId:t,onSelectSession:n,initialExpanded:r(i)},i.name))})}function B0({messages:e,activeId:t,onNavigate:n}){const[r,i]=S.useState([]),l=S.useRef(null),o=S.useRef(null),s=S.useRef(!1);S.useEffect(()=>{const u=e.map((f,d)=>{var g;const p=`message-${d}`;let v="";const w=[];if((g=f.message)!=null&&g.content&&Array.isArray(f.message.content)){const E=f.message.content.find(h=>h.type==="text");E&&(v=E.text.slice(0,50)+(E.text.length>50?"...":"")),f.message.content.forEach(h=>{h.type==="tool_use"?w.push({name:h.name,type:"tool_use"}):h.type==="tool_result"&&w.push({name:"Tool Result",type:"tool_result"})})}return{id:p,type:f.type||"system",text:v,toolUses:w,timestamp:f.timestamp}});i(u)},[e]),S.useEffect(()=>{if(!s.current&&l.current&&o.current){const u=o.current,f=l.current,d=u.getBoundingClientRect(),p=f.getBoundingClientRect();(p.top<d.top||p.bottom>d.bottom)&&f.scrollIntoView({behavior:"smooth",block:"center"})}},[t]);const a=u=>{s.current=!0,n(u),setTimeout(()=>{s.current=!1},1500)};return k.jsxs("div",{ref:o,className:"w-full border-l border-gray-700 bg-gray-800 overflow-y-auto h-full",children:[k.jsxs("div",{className:"p-4 border-b border-gray-700 sticky top-0 bg-gray-800 z-10",children:[k.jsx("h3",{className:"text-sm font-semibold text-gray-300",children:"Table of Contents"}),k.jsxs("p",{className:"text-xs text-gray-500 mt-1",children:[r.length," messages"]})]}),k.jsx("nav",{className:"p-2",children:r.map((u,f)=>k.jsx("div",{className:"mb-1",children:k.jsxs("button",{ref:t===u.id?l:null,onClick:()=>a(u.id),className:`w-full text-left px-3 py-2 rounded text-xs transition-colors ${t===u.id?"bg-blue-900/50 text-blue-200 border-l-2 border-blue-400":"text-gray-400 hover:bg-gray-700 hover:text-gray-200"}`,children:[k.jsxs("div",{className:"flex items-center gap-2 mb-1",children:[k.jsx("span",{className:`px-1.5 py-0.5 text-[10px] rounded ${u.type==="user"?"bg-blue-900/50 text-blue-300":u.type==="assistant"?"bg-green-900/50 text-green-300":"bg-gray-700 text-gray-400"}`,children:u.type}),k.jsxs("span",{className:"text-gray-500",children:["#",f+1]})]}),u.text&&k.jsx("div",{className:"text-gray-300 line-clamp-2 leading-tight",children:u.text}),u.toolUses.length>0&&k.jsx("div",{className:"mt-1 flex flex-wrap gap-1",children:u.toolUses.map((d,p)=>k.jsxs("span",{className:`px-1.5 py-0.5 text-[10px] rounded font-mono ${d.type==="tool_result"?"bg-green-900/30 text-green-400":"bg-yellow-900/30 text-yellow-400"}`,children:[d.type==="tool_result"?"✓":"🔧"," ",d.name]},p))})]})},u.id))})]})}const Yh=256,V0=640,Y0=896,K0=Y0+Yh;function G0({sessionId:e}){var v;const[t,n]=S.useState(null),[r,i]=S.useState(!0),l=S.useRef(new Map),o=S.useRef(!1),s=S.useRef(null),{data:a,isLoading:u,error:f}=xh({queryKey:["session",e],queryFn:async()=>{const w=await fetch(`/api/sessions/${e}`);if(!w.ok)throw new Error("Failed to fetch session");return w.json()}});S.useEffect(()=>{if(!s.current)return;const w=s.current.parentElement??s.current,g=c=>{i(c>=K0)},E=new ResizeObserver(c=>{for(const m of c)g(m.contentRect.width)}),h=w.getBoundingClientRect().width;return g(h),E.observe(w),()=>{E.disconnect()}},[]),S.useEffect(()=>{var g;if(!((g=a==null?void 0:a.session)!=null&&g.messages))return;const w=new IntersectionObserver(E=>{o.current||E.forEach(h=>{if(h.isIntersecting){const c=h.target.getAttribute("data-message-id");c&&n(c)}})},{rootMargin:"-50% 0px -50% 0px",threshold:0});return l.current.forEach(E=>{w.observe(E)}),()=>{w.disconnect()}},[(v=a==null?void 0:a.session)==null?void 0:v.messages]);const d=w=>{n(w),o.current=!0;const g=l.current.get(w);g&&g.scrollIntoView({behavior:"smooth",block:"center"}),setTimeout(()=>{o.current=!1},1500)};if(u)return k.jsx("div",{className:"flex items-center justify-center h-full",children:k.jsx("div",{className:"text-gray-400",children:"Loading session..."})});if(f)return k.jsx("div",{className:"flex items-center justify-center h-full",children:k.jsxs("div",{className:"text-red-400",children:["Error: ",f.message]})});const p=a==null?void 0:a.session;return k.jsxs("div",{ref:s,className:"h-full flex min-w-0",children:[k.jsxs("div",{className:"flex-1 flex flex-col min-w-0",style:{minWidth:`${V0}px`},children:[k.jsxs("div",{className:"border-b border-gray-700 p-6 bg-gray-800",children:[k.jsxs("div",{className:"flex items-center gap-2",children:[(p==null?void 0:p.isAgent)&&k.jsx("span",{className:"px-2 py-1 text-xs bg-purple-900/50 text-purple-300 rounded font-semibold",children:"TASK"}),k.jsx("h2",{className:"text-2xl font-bold truncate flex-1",children:(p==null?void 0:p.title)||"Untitled Session"})]}),k.jsx("div",{className:"text-xl text-gray-300",children:p==null?void 0:p.project}),k.jsxs("div",{className:"flex items-center gap-3 mt-4 text-sm text-gray-400",children:[k.jsx("span",{children:(p==null?void 0:p.timestamp)&&Jr(new Date(p.timestamp),"PPpp")}),k.jsx("span",{children:"•"}),k.jsxs("span",{children:[(p==null?void 0:p.messageCount)||0," message",(p==null?void 0:p.messageCount)!==1?"s":""]}),(p==null?void 0:p.agentSessions)&&p.agentSessions.length>0&&k.jsxs(k.Fragment,{children:[k.jsx("span",{children:"•"}),k.jsxs("span",{children:[p.agentSessions.length," task",p.agentSessions.length!==1?"s":""]})]})]})]}),k.jsx("div",{className:"flex-1 overflow-y-auto p-6",children:k.jsx("div",{className:"max-w-4xl mx-auto space-y-6",children:p==null?void 0:p.messages.map((w,g)=>{var h;const E=`message-${g}`;return k.jsxs("div",{ref:c=>{c?l.current.set(E,c):l.current.delete(E)},"data-message-id":E,className:"border-l-2 border-gray-700 pl-4",children:[k.jsx("div",{className:"flex items-start justify-between mb-2",children:k.jsxs("div",{className:"flex items-center gap-2",children:[k.jsx("span",{className:`px-2 py-1 text-xs rounded ${w.type==="user"?"bg-blue-900 text-blue-200":w.type==="assistant"?"bg-green-900 text-green-200":"bg-gray-700 text-gray-300"}`,children:w.type||"system"}),k.jsxs("span",{className:"text-xs text-gray-500 font-mono",children:["#",g+1]}),w.timestamp&&k.jsx("span",{className:"text-xs text-gray-500",children:Jr(new Date(w.timestamp),"HH:mm:ss")})]})}),k.jsx("div",{className:"bg-gray-800 rounded-lg p-4 text-sm",children:(h=w.message)!=null&&h.content&&Array.isArray(w.message.content)?k.jsx("div",{className:"space-y-2",children:w.message.content.map((c,m)=>k.jsxs("div",{children:[c.type==="text"&&k.jsx("p",{className:"whitespace-pre-wrap",children:c.text}),c.type==="tool_use"&&k.jsxs("div",{className:"bg-gray-900 p-3 rounded border border-gray-700",children:[k.jsxs("div",{className:"flex items-center justify-between mb-2",children:[k.jsxs("div",{className:"text-yellow-400 font-mono text-xs",children:["🔧 ",c.name]}),c.name==="Task"&&c.agentId&&k.jsx(ru,{to:`/sessions/agent-${c.agentId}`,className:"px-2 py-1 text-xs bg-purple-700 hover:bg-purple-600 text-purple-100 rounded transition-colors",children:"View Task →"})]}),k.jsx("pre",{className:"text-xs overflow-x-auto text-gray-400",children:JSON.stringify(c.input,null,2)})]}),c.type==="tool_result"&&k.jsxs("div",{className:"bg-gray-900 p-3 rounded border border-gray-700",children:[k.jsx("div",{className:"text-green-400 font-mono text-xs mb-2",children:"✓ Tool Result"}),k.jsx("pre",{className:"text-xs overflow-x-auto text-gray-400",children:typeof c.content=="string"?c.content:JSON.stringify(c.content,null,2)})]})]},m))}):k.jsx("pre",{className:"text-xs overflow-x-auto text-gray-400",children:JSON.stringify(w,null,2)})})]},g)})})})]}),r&&(p==null?void 0:p.messages)&&p.messages.length>0&&k.jsx("div",{style:{width:`${Yh}px`,flexShrink:0},children:k.jsx(B0,{messages:p.messages,activeId:t,onNavigate:d})})]})}const Kh=new Yy,Uc="claude-session-viewer-sidebar-width",q0=320,X0=200,b0=600;function Ac(){const e=Fh(),n=Qg().sessionId||null,[r,i]=S.useState(()=>{const v=localStorage.getItem(Uc);return v?parseInt(v,10):q0}),[l,o]=S.useState(!1),s=S.useRef(null),{data:a,isLoading:u,error:f,refetch:d}=xh({queryKey:["sessions"],queryFn:async()=>{const v=await fetch("/api/sessions");if(!v.ok)throw new Error("Failed to fetch sessions");return v.json()}}),p=v=>{e(`/sessions/${v}`)};return S.useEffect(()=>{const v=g=>{if(!l)return;const E=g.clientX;E>=X0&&E<=b0&&(i(E),localStorage.setItem(Uc,E.toString()))},w=()=>{o(!1),document.body.style.cursor="",document.body.style.userSelect=""};return l&&(document.body.style.cursor="col-resize",document.body.style.userSelect="none",document.addEventListener("mousemove",v),document.addEventListener("mouseup",w)),()=>{document.removeEventListener("mousemove",v),document.removeEventListener("mouseup",w)}},[l]),S.useEffect(()=>{const w=`${window.location.protocol==="https:"?"wss:":"ws:"}//${window.location.host}/ws`;let g=null,E=!1,h=null,c=0,m=!0;const x=()=>{g=new WebSocket(w),E=!1,g.onopen=()=>{if(E){g==null||g.close();return}c=0},g.onmessage=C=>{const R=JSON.parse(C.data);(R.type==="file-added"||R.type==="file-changed"||R.type==="file-deleted")&&(d(),n&&Kh.invalidateQueries({queryKey:["session",n]}))},g.onerror=C=>{console.error("WebSocket error:",C)},g.onclose=()=>{if(!m)return;const C=Math.min(1e3*2**c,1e4);c+=1,h=setTimeout(x,C)}};return x(),()=>{m=!1,h&&clearTimeout(h),g&&g.readyState===WebSocket.CONNECTING?E=!0:g==null||g.close()}},[d,n]),k.jsxs("div",{className:"flex h-screen bg-gray-900 text-white",children:[k.jsxs("div",{className:"relative",style:{width:`${r}px`},children:[k.jsxs("div",{ref:s,className:"border-r border-gray-700 overflow-y-auto h-full",children:[k.jsxs("div",{className:"p-4 border-b border-gray-700",children:[k.jsx("h1",{className:"text-xl font-bold",children:"Claude Sessions"}),k.jsx("p",{className:"text-sm text-gray-400 mt-1",children:u?"Loading...":`${(a==null?void 0:a.projects.length)||0} project${(a==null?void 0:a.projects.length)!==1?"s":""}`})]}),f?k.jsxs("div",{className:"p-4 text-red-400 text-sm",children:["Error loading sessions: ",f.message]}):k.jsx(H0,{projects:(a==null?void 0:a.projects)||[],selectedId:n,onSelect:p})]}),k.jsx("div",{className:"absolute top-0 right-0 w-4 h-full cursor-col-resize group z-10",onMouseDown:v=>{v.preventDefault(),o(!0)},style:{touchAction:"none"},children:k.jsx("div",{className:`w-1 h-full ml-auto transition-colors ${l?"bg-blue-500":"bg-transparent group-hover:bg-blue-500"}`})})]}),k.jsx("div",{className:"flex-1 min-w-0 overflow-y-auto",children:n?k.jsx(G0,{sessionId:n}):k.jsx("div",{className:"flex items-center justify-center h-full text-gray-500",children:k.jsxs("div",{className:"text-center",children:[k.jsx("svg",{className:"mx-auto h-12 w-12 text-gray-600",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:k.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M8 12h.01M12 12h.01M16 12h.01M21 12c0 4.418-4.03 8-9 8a9.863 9.863 0 01-4.255-.949L3 20l1.395-3.72C3.512 15.042 3 13.574 3 12c0-4.418 4.03-8 9-8s9 3.582 9 8z"})}),k.jsx("h3",{className:"mt-2 text-sm font-medium",children:"No session selected"}),k.jsx("p",{className:"mt-1 text-sm text-gray-600",children:"Select a session from the sidebar to view details"})]})})})]})}function J0(){return k.jsx(Gy,{client:Kh,children:k.jsx(Nv,{children:k.jsxs(rv,{children:[k.jsx(bs,{path:"/",element:k.jsx(Ac,{})}),k.jsx(bs,{path:"/sessions/:sessionId",element:k.jsx(Ac,{})})]})})})}Ho.createRoot(document.getElementById("root")).render(k.jsx(fp.StrictMode,{children:k.jsx(J0,{})}));
51
+ Please change the parent <Route path="${m}"> to <Route path="${m==="/"?"*":`${m}/*`}">.`)}let p=In(),w;if(t){let m=typeof t=="string"?Pr(t):t;X(d==="/"||((c=m.pathname)==null?void 0:c.startsWith(d)),`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 "${d}" but pathname "${m.pathname}" was given in the \`location\` prop.`),w=m}else w=p;let v=w.pathname||"/",x=v;if(d!=="/"){let m=d.replace(/^\//,"").split("/");x="/"+v.replace(/^\//,"").split("/").slice(m.length).join("/")}let E=Sh(e,{pathname:x});rt(f||E!=null,`No routes matched location "${w.pathname}${w.search}${w.hash}" `),rt(E==null||E[E.length-1].route.element!==void 0||E[E.length-1].route.Component!==void 0||E[E.length-1].route.lazy!==void 0,`Matched leaf route at location "${w.pathname}${w.search}${w.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 h=Gv(E&&E.map(m=>Object.assign({},m,{params:Object.assign({},a,m.params),pathname:Et([d,l.encodeLocation?l.encodeLocation(m.pathname.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:m.pathname]),pathnameBase:m.pathnameBase==="/"?d:Et([d,l.encodeLocation?l.encodeLocation(m.pathnameBase.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:m.pathnameBase])})),o,n,r,i);return t&&h?S.createElement(Mi.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",...w},navigationType:"POP"}},h):h}function Bv(){let e=Zv(),t=_v(e)?`${e.status} ${e.statusText}`:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,r="rgba(200,200,200, 0.5)",i={padding:"0.5rem",backgroundColor:r},l={padding:"2px 4px",backgroundColor:r},o=null;return console.error("Error handled by React Router default ErrorBoundary:",e),o=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:l},"ErrorBoundary")," or"," ",S.createElement("code",{style:l},"errorElement")," prop on your route.")),S.createElement(S.Fragment,null,S.createElement("h2",null,"Unexpected Application Error!"),S.createElement("h3",{style:{fontStyle:"italic"}},t),n?S.createElement("pre",{style:i},n):null,o)}var Vv=S.createElement(Bv,null),Ih=class extends S.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location||t.revalidation!=="idle"&&e.revalidation==="idle"?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:e.error!==void 0?e.error:t.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){this.props.onError?this.props.onError(e,t):console.error("React Router caught the following error during render",e)}render(){let e=this.state.error;if(this.context&&typeof e=="object"&&e&&"digest"in e&&typeof e.digest=="string"){const n=Av(e.digest);n&&(e=n)}let t=e!==void 0?S.createElement(ht.Provider,{value:this.props.routeContext},S.createElement(Ja.Provider,{value:e,children:this.props.component})):this.props.children;return this.context?S.createElement(Yv,{error:e},t):t}};Ih.contextType=Dv;var Wo=new WeakMap;function Yv({children:e,error:t}){let{basename:n}=S.useContext(Ke);if(typeof t=="object"&&t&&"digest"in t&&typeof t.digest=="string"){let r=Uv(t.digest);if(r){let i=Wo.get(t);if(i)throw i;let l=Th(r.location,n);if(Nh&&!Wo.get(t))if(l.isExternal||r.reloadDocument)window.location.href=l.absoluteURL||l.to;else{const o=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(l.to,{replace:r.replace}));throw Wo.set(t,o),o}return S.createElement("meta",{httpEquiv:"refresh",content:`0;url=${l.absoluteURL||l.to}`})}}return e}function Kv({routeContext:e,match:t,children:n}){let r=S.useContext(Rr);return r&&r.static&&r.staticContext&&(t.route.errorElement||t.route.ErrorBoundary)&&(r.staticContext._deepestRenderedBoundaryId=t.route.id),S.createElement(ht.Provider,{value:e},n)}function Gv(e,t=[],n=null,r=null,i=null){if(e==null){if(!n)return null;if(n.errors)e=n.matches;else if(t.length===0&&!n.initialized&&n.matches.length>0)e=n.matches;else return null}let l=e,o=n==null?void 0:n.errors;if(o!=null){let d=l.findIndex(f=>f.route.id&&(o==null?void 0:o[f.route.id])!==void 0);X(d>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(o).join(",")}`),l=l.slice(0,Math.min(l.length,d+1))}let s=!1,a=-1;if(n)for(let d=0;d<l.length;d++){let f=l[d];if((f.route.HydrateFallback||f.route.hydrateFallbackElement)&&(a=d),f.route.id){let{loaderData:p,errors:w}=n,v=f.route.loader&&!p.hasOwnProperty(f.route.id)&&(!w||w[f.route.id]===void 0);if(f.route.lazy||v){s=!0,a>=0?l=l.slice(0,a+1):l=[l[0]];break}}}let u=n&&r?(d,f)=>{var p,w;r(d,{location:n.location,params:((w=(p=n.matches)==null?void 0:p[0])==null?void 0:w.params)??{},unstable_pattern:Mv(n.matches),errorInfo:f})}:void 0;return l.reduceRight((d,f,p)=>{let w,v=!1,x=null,E=null;n&&(w=o&&f.route.id?o[f.route.id]:void 0,x=f.route.errorElement||Vv,s&&(a<0&&p===0?(zh("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),v=!0,E=null):a===p&&(v=!0,E=f.route.hydrateFallbackElement||null)));let h=t.concat(l.slice(0,p+1)),c=()=>{let m;return w?m=x:v?m=E:f.route.Component?m=S.createElement(f.route.Component,null):f.route.element?m=f.route.element:m=d,S.createElement(Kv,{match:f,routeContext:{outlet:d,matches:h,isDataRoute:n!=null},children:m})};return n&&(f.route.ErrorBoundary||f.route.errorElement||p===0)?S.createElement(Ih,{location:n.location,revalidation:n.revalidation,component:x,error:w,children:c(),routeContext:{outlet:null,matches:h,isDataRoute:!0},onError:u}):c()},null)}function Za(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function qv(e){let t=S.useContext(Rr);return X(t,Za(e)),t}function bv(e){let t=S.useContext(lo);return X(t,Za(e)),t}function Xv(e){let t=S.useContext(ht);return X(t,Za(e)),t}function eu(e){let t=Xv(e),n=t.matches[t.matches.length-1];return X(n.route.id,`${e} can only be used on routes that contain a unique "id"`),n.route.id}function Jv(){return eu("useRouteId")}function Zv(){var r;let e=S.useContext(Ja),t=bv("useRouteError"),n=eu("useRouteError");return e!==void 0?e:(r=t.errors)==null?void 0:r[n]}function eg(){let{router:e}=qv("useNavigate"),t=eu("useNavigate"),n=S.useRef(!1);return Dh(()=>{n.current=!0}),S.useCallback(async(i,l={})=>{rt(n.current,Lh),n.current&&(typeof i=="number"?await e.navigate(i):await e.navigate(i,{fromRouteId:t,...l}))},[e,t])}var _c={};function zh(e,t,n){!t&&!_c[e]&&(_c[e]=!0,rt(!1,n))}S.memo(tg);function tg({routes:e,future:t,state:n,onError:r}){return jh(e,void 0,n,r,t)}function Xs(e){X(!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 ng({basename:e="/",children:t=null,location:n,navigationType:r="POP",navigator:i,static:l=!1,unstable_useTransitions:o}){X(!Li(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let s=e.replace(/^\/*/,"/"),a=S.useMemo(()=>({basename:s,navigator:i,static:l,unstable_useTransitions:o,future:{}}),[s,i,l,o]);typeof n=="string"&&(n=Pr(n));let{pathname:u="/",search:d="",hash:f="",state:p=null,key:w="default"}=n,v=S.useMemo(()=>{let x=Nt(u,s);return x==null?null:{location:{pathname:x,search:d,hash:f,state:p,key:w},navigationType:r}},[s,u,d,f,p,w,r]);return rt(v!=null,`<Router basename="${s}"> is not able to match the URL "${u}${d}${f}" because it does not start with the basename, so the <Router> won't render anything.`),v==null?null:S.createElement(Ke.Provider,{value:a},S.createElement(Mi.Provider,{children:t,value:v}))}function rg({children:e,location:t}){return Hv(Js(e),t)}function Js(e,t=[]){let n=[];return S.Children.forEach(e,(r,i)=>{if(!S.isValidElement(r))return;let l=[...t,i];if(r.type===S.Fragment){n.push.apply(n,Js(r.props.children,l));return}X(r.type===Xs,`[${typeof r.type=="string"?r.type:r.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),X(!r.props.index||!r.props.children,"An index route cannot have child routes.");let o={id:r.props.id||l.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,Component:r.props.Component,index:r.props.index,path:r.props.path,middleware:r.props.middleware,loader:r.props.loader,action:r.props.action,hydrateFallbackElement:r.props.hydrateFallbackElement,HydrateFallback:r.props.HydrateFallback,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary:r.props.hasErrorBoundary===!0||r.props.ErrorBoundary!=null||r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle,lazy:r.props.lazy};r.props.children&&(o.children=Js(r.props.children,l)),n.push(o)}),n}var pl="get",ml="application/x-www-form-urlencoded";function oo(e){return typeof HTMLElement<"u"&&e instanceof HTMLElement}function ig(e){return oo(e)&&e.tagName.toLowerCase()==="button"}function lg(e){return oo(e)&&e.tagName.toLowerCase()==="form"}function og(e){return oo(e)&&e.tagName.toLowerCase()==="input"}function sg(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function ag(e,t){return e.button===0&&(!t||t==="_self")&&!sg(e)}var tl=null;function ug(){if(tl===null)try{new FormData(document.createElement("form"),0),tl=!1}catch{tl=!0}return tl}var cg=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function $o(e){return e!=null&&!cg.has(e)?(rt(!1,`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${ml}"`),null):e}function fg(e,t){let n,r,i,l,o;if(lg(e)){let s=e.getAttribute("action");r=s?Nt(s,t):null,n=e.getAttribute("method")||pl,i=$o(e.getAttribute("enctype"))||ml,l=new FormData(e)}else if(ig(e)||og(e)&&(e.type==="submit"||e.type==="image")){let s=e.form;if(s==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let a=e.getAttribute("formaction")||s.getAttribute("action");if(r=a?Nt(a,t):null,n=e.getAttribute("formmethod")||s.getAttribute("method")||pl,i=$o(e.getAttribute("formenctype"))||$o(s.getAttribute("enctype"))||ml,l=new FormData(s,e),!ug()){let{name:u,type:d,value:f}=e;if(d==="image"){let p=u?`${u}.`:"";l.append(`${p}x`,"0"),l.append(`${p}y`,"0")}else u&&l.append(u,f)}}else{if(oo(e))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');n=pl,r=null,i=ml,o=e}return l&&i==="text/plain"&&(o=l,l=void 0),{action:r,method:n.toLowerCase(),encType:i,formData:l,body:o}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function tu(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function dg(e,t,n){let r=typeof e=="string"?new URL(e,typeof window>"u"?"server://singlefetch/":window.location.origin):e;return r.pathname==="/"?r.pathname=`_root.${n}`:t&&Nt(r.pathname,t)==="/"?r.pathname=`${t.replace(/\/$/,"")}/_root.${n}`:r.pathname=`${r.pathname.replace(/\/$/,"")}.${n}`,r}async function hg(e,t){if(e.id in t)return t[e.id];try{let n=await import(e.module);return t[e.id]=n,n}catch(n){return console.error(`Error loading route module \`${e.module}\`, reloading page...`),console.error(n),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function pg(e){return e==null?!1:e.href==null?e.rel==="preload"&&typeof e.imageSrcSet=="string"&&typeof e.imageSizes=="string":typeof e.rel=="string"&&typeof e.href=="string"}async function mg(e,t,n){let r=await Promise.all(e.map(async i=>{let l=t.routes[i.route.id];if(l){let o=await hg(l,n);return o.links?o.links():[]}return[]}));return wg(r.flat(1).filter(pg).filter(i=>i.rel==="stylesheet"||i.rel==="preload").map(i=>i.rel==="stylesheet"?{...i,rel:"prefetch",as:"style"}:{...i,rel:"prefetch"}))}function Mc(e,t,n,r,i,l){let o=(a,u)=>n[u]?a.route.id!==n[u].route.id:!0,s=(a,u)=>{var d;return n[u].pathname!==a.pathname||((d=n[u].route.path)==null?void 0:d.endsWith("*"))&&n[u].params["*"]!==a.params["*"]};return l==="assets"?t.filter((a,u)=>o(a,u)||s(a,u)):l==="data"?t.filter((a,u)=>{var f;let d=r.routes[a.route.id];if(!d||!d.hasLoader)return!1;if(o(a,u)||s(a,u))return!0;if(a.route.shouldRevalidate){let p=a.route.shouldRevalidate({currentUrl:new URL(i.pathname+i.search+i.hash,window.origin),currentParams:((f=n[0])==null?void 0:f.params)||{},nextUrl:new URL(e,window.origin),nextParams:a.params,defaultShouldRevalidate:!0});if(typeof p=="boolean")return p}return!0}):[]}function yg(e,t,{includeHydrateFallback:n}={}){return vg(e.map(r=>{let i=t.routes[r.route.id];if(!i)return[];let l=[i.module];return i.clientActionModule&&(l=l.concat(i.clientActionModule)),i.clientLoaderModule&&(l=l.concat(i.clientLoaderModule)),n&&i.hydrateFallbackModule&&(l=l.concat(i.hydrateFallbackModule)),i.imports&&(l=l.concat(i.imports)),l}).flat(1))}function vg(e){return[...new Set(e)]}function gg(e){let t={},n=Object.keys(e).sort();for(let r of n)t[r]=e[r];return t}function wg(e,t){let n=new Set;return new Set(t),e.reduce((r,i)=>{let l=JSON.stringify(gg(i));return n.has(l)||(n.add(l),r.push({key:l,link:i})),r},[])}function Uh(){let e=S.useContext(Rr);return tu(e,"You must render this element inside a <DataRouterContext.Provider> element"),e}function xg(){let e=S.useContext(lo);return tu(e,"You must render this element inside a <DataRouterStateContext.Provider> element"),e}var nu=S.createContext(void 0);nu.displayName="FrameworkContext";function Ah(){let e=S.useContext(nu);return tu(e,"You must render this element inside a <HydratedRouter> element"),e}function Sg(e,t){let n=S.useContext(nu),[r,i]=S.useState(!1),[l,o]=S.useState(!1),{onFocus:s,onBlur:a,onMouseEnter:u,onMouseLeave:d,onTouchStart:f}=t,p=S.useRef(null);S.useEffect(()=>{if(e==="render"&&o(!0),e==="viewport"){let x=h=>{h.forEach(c=>{o(c.isIntersecting)})},E=new IntersectionObserver(x,{threshold:.5});return p.current&&E.observe(p.current),()=>{E.disconnect()}}},[e]),S.useEffect(()=>{if(r){let x=setTimeout(()=>{o(!0)},100);return()=>{clearTimeout(x)}}},[r]);let w=()=>{i(!0)},v=()=>{i(!1),o(!1)};return n?e!=="intent"?[l,p,{}]:[l,p,{onFocus:jr(s,w),onBlur:jr(a,v),onMouseEnter:jr(u,w),onMouseLeave:jr(d,v),onTouchStart:jr(f,w)}]:[!1,p,{}]}function jr(e,t){return n=>{e&&e(n),n.defaultPrevented||t(n)}}function Eg({page:e,...t}){let{router:n}=Uh(),r=S.useMemo(()=>Sh(n.routes,e,n.basename),[n.routes,e,n.basename]);return r?S.createElement(Cg,{page:e,matches:r,...t}):null}function kg(e){let{manifest:t,routeModules:n}=Ah(),[r,i]=S.useState([]);return S.useEffect(()=>{let l=!1;return mg(e,t,n).then(o=>{l||i(o)}),()=>{l=!0}},[e,t,n]),r}function Cg({page:e,matches:t,...n}){let r=In(),{manifest:i,routeModules:l}=Ah(),{basename:o}=Uh(),{loaderData:s,matches:a}=xg(),u=S.useMemo(()=>Mc(e,t,a,i,r,"data"),[e,t,a,i,r]),d=S.useMemo(()=>Mc(e,t,a,i,r,"assets"),[e,t,a,i,r]),f=S.useMemo(()=>{if(e===r.pathname+r.search+r.hash)return[];let v=new Set,x=!1;if(t.forEach(h=>{var m;let c=i.routes[h.route.id];!c||!c.hasLoader||(!u.some(g=>g.route.id===h.route.id)&&h.route.id in s&&((m=l[h.route.id])!=null&&m.shouldRevalidate)||c.hasClientLoader?x=!0:v.add(h.route.id))}),v.size===0)return[];let E=dg(e,o,"data");return x&&v.size>0&&E.searchParams.set("_routes",t.filter(h=>v.has(h.route.id)).map(h=>h.route.id).join(",")),[E.pathname+E.search]},[o,s,r,i,u,t,e,l]),p=S.useMemo(()=>yg(d,i),[d,i]),w=kg(d);return S.createElement(S.Fragment,null,f.map(v=>S.createElement("link",{key:v,rel:"prefetch",as:"fetch",href:v,...n})),p.map(v=>S.createElement("link",{key:v,rel:"modulepreload",href:v,...n})),w.map(({key:v,link:x})=>S.createElement("link",{key:v,nonce:n.nonce,...x})))}function Pg(...e){return t=>{e.forEach(n=>{typeof n=="function"?n(t):n!=null&&(n.current=t)})}}var Rg=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{Rg&&(window.__reactRouterVersion="7.11.0")}catch{}function Ng({basename:e,children:t,unstable_useTransitions:n,window:r}){let i=S.useRef();i.current==null&&(i.current=ov({window:r,v5Compat:!0}));let l=i.current,[o,s]=S.useState({action:l.action,location:l.location}),a=S.useCallback(u=>{n===!1?s(u):S.startTransition(()=>s(u))},[n]);return S.useLayoutEffect(()=>l.listen(a),[l,a]),S.createElement(ng,{basename:e,children:t,location:o.location,navigationType:o.action,navigator:l,unstable_useTransitions:n})}var Wh=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,ru=S.forwardRef(function({onClick:t,discover:n="render",prefetch:r="none",relative:i,reloadDocument:l,replace:o,state:s,target:a,to:u,preventScrollReset:d,viewTransition:f,unstable_defaultShouldRevalidate:p,...w},v){let{basename:x,unstable_useTransitions:E}=S.useContext(Ke),h=typeof u=="string"&&Wh.test(u),c=Th(u,x);u=c.to;let m=Wv(u,{relative:i}),[g,C,P]=Sg(r,w),N=Mg(u,{replace:o,state:s,target:a,preventScrollReset:d,relative:i,viewTransition:f,unstable_defaultShouldRevalidate:p,unstable_useTransitions:E});function T(O){t&&t(O),O.defaultPrevented||N(O)}let F=S.createElement("a",{...w,...P,href:c.absoluteURL||m,onClick:c.isExternal||l?t:T,ref:Pg(v,C),target:a,"data-discover":!h&&n==="render"?"true":void 0});return g&&!h?S.createElement(S.Fragment,null,F,S.createElement(Eg,{page:m})):F});ru.displayName="Link";var Tg=S.forwardRef(function({"aria-current":t="page",caseSensitive:n=!1,className:r="",end:i=!1,style:l,to:o,viewTransition:s,children:a,...u},d){let f=Di(o,{relative:u.relative}),p=In(),w=S.useContext(lo),{navigator:v,basename:x}=S.useContext(Ke),E=w!=null&&Ig(f)&&s===!0,h=v.encodeLocation?v.encodeLocation(f).pathname:f.pathname,c=p.pathname,m=w&&w.navigation&&w.navigation.location?w.navigation.location.pathname:null;n||(c=c.toLowerCase(),m=m?m.toLowerCase():null,h=h.toLowerCase()),m&&x&&(m=Nt(m,x)||m);const g=h!=="/"&&h.endsWith("/")?h.length-1:h.length;let C=c===h||!i&&c.startsWith(h)&&c.charAt(g)==="/",P=m!=null&&(m===h||!i&&m.startsWith(h)&&m.charAt(h.length)==="/"),N={isActive:C,isPending:P,isTransitioning:E},T=C?t:void 0,F;typeof r=="function"?F=r(N):F=[r,C?"active":null,P?"pending":null,E?"transitioning":null].filter(Boolean).join(" ");let O=typeof l=="function"?l(N):l;return S.createElement(ru,{...u,"aria-current":T,className:F,ref:d,style:O,to:o,viewTransition:s},typeof a=="function"?a(N):a)});Tg.displayName="NavLink";var Og=S.forwardRef(({discover:e="render",fetcherKey:t,navigate:n,reloadDocument:r,replace:i,state:l,method:o=pl,action:s,onSubmit:a,relative:u,preventScrollReset:d,viewTransition:f,unstable_defaultShouldRevalidate:p,...w},v)=>{let{unstable_useTransitions:x}=S.useContext(Ke),E=Fg(),h=jg(s,{relative:u}),c=o.toLowerCase()==="get"?"get":"post",m=typeof s=="string"&&Wh.test(s),g=C=>{if(a&&a(C),C.defaultPrevented)return;C.preventDefault();let P=C.nativeEvent.submitter,N=(P==null?void 0:P.getAttribute("formmethod"))||o,T=()=>E(P||C.currentTarget,{fetcherKey:t,method:N,navigate:n,replace:i,state:l,relative:u,preventScrollReset:d,viewTransition:f,unstable_defaultShouldRevalidate:p});x&&n!==!1?S.startTransition(()=>T()):T()};return S.createElement("form",{ref:v,method:c,action:h,onSubmit:r?a:g,...w,"data-discover":!m&&e==="render"?"true":void 0})});Og.displayName="Form";function _g(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function $h(e){let t=S.useContext(Rr);return X(t,_g(e)),t}function Mg(e,{target:t,replace:n,state:r,preventScrollReset:i,relative:l,viewTransition:o,unstable_defaultShouldRevalidate:s,unstable_useTransitions:a}={}){let u=Fh(),d=In(),f=Di(e,{relative:l});return S.useCallback(p=>{if(ag(p,t)){p.preventDefault();let w=n!==void 0?n:gi(d)===gi(f),v=()=>u(e,{replace:w,state:r,preventScrollReset:i,relative:l,viewTransition:o,unstable_defaultShouldRevalidate:s});a?S.startTransition(()=>v()):v()}},[d,u,f,n,r,t,e,i,l,o,s,a])}var Lg=0,Dg=()=>`__${String(++Lg)}__`;function Fg(){let{router:e}=$h("useSubmit"),{basename:t}=S.useContext(Ke),n=Jv(),r=e.fetch,i=e.navigate;return S.useCallback(async(l,o={})=>{let{action:s,method:a,encType:u,formData:d,body:f}=fg(l,t);if(o.navigate===!1){let p=o.fetcherKey||Dg();await r(p,n,o.action||s,{unstable_defaultShouldRevalidate:o.unstable_defaultShouldRevalidate,preventScrollReset:o.preventScrollReset,formData:d,body:f,formMethod:o.method||a,formEncType:o.encType||u,flushSync:o.flushSync})}else await i(o.action||s,{unstable_defaultShouldRevalidate:o.unstable_defaultShouldRevalidate,preventScrollReset:o.preventScrollReset,formData:d,body:f,formMethod:o.method||a,formEncType:o.encType||u,replace:o.replace,state:o.state,fromRouteId:n,flushSync:o.flushSync,viewTransition:o.viewTransition})},[r,i,t,n])}function jg(e,{relative:t}={}){let{basename:n}=S.useContext(Ke),r=S.useContext(ht);X(r,"useFormAction must be used inside a RouteContext");let[i]=r.matches.slice(-1),l={...Di(e||".",{relative:t})},o=In();if(e==null){l.search=o.search;let s=new URLSearchParams(l.search),a=s.getAll("index");if(a.some(d=>d==="")){s.delete("index"),a.filter(f=>f).forEach(f=>s.append("index",f));let d=s.toString();l.search=d?`?${d}`:""}}return(!e||e===".")&&i.route.index&&(l.search=l.search?l.search.replace(/^\?/,"?index&"):"?index"),n!=="/"&&(l.pathname=l.pathname==="/"?n:Et([n,l.pathname])),gi(l)}function Ig(e,{relative:t}={}){let n=S.useContext(_h);X(n!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:r}=$h("useViewTransitionState"),i=Di(e,{relative:t});if(!n.isTransitioning)return!1;let l=Nt(n.currentLocation.pathname,r)||n.currentLocation.pathname,o=Nt(n.nextLocation.pathname,r)||n.nextLocation.pathname;return $l(i.pathname,o)!=null||$l(i.pathname,l)!=null}function it(e){const t=Object.prototype.toString.call(e);return e instanceof Date||typeof e=="object"&&t==="[object Date]"?new e.constructor(+e):typeof e=="number"||t==="[object Number]"||typeof e=="string"||t==="[object String]"?new Date(e):new Date(NaN)}function Dn(e,t){return e instanceof Date?new e.constructor(t):new Date(t)}const Qh=6048e5,zg=864e5;let Ug={};function so(){return Ug}function wi(e,t){var s,a,u,d;const n=so(),r=(t==null?void 0:t.weekStartsOn)??((a=(s=t==null?void 0:t.locale)==null?void 0:s.options)==null?void 0:a.weekStartsOn)??n.weekStartsOn??((d=(u=n.locale)==null?void 0:u.options)==null?void 0:d.weekStartsOn)??0,i=it(e),l=i.getDay(),o=(l<r?7:0)+l-r;return i.setDate(i.getDate()-o),i.setHours(0,0,0,0),i}function Ql(e){return wi(e,{weekStartsOn:1})}function Hh(e){const t=it(e),n=t.getFullYear(),r=Dn(e,0);r.setFullYear(n+1,0,4),r.setHours(0,0,0,0);const i=Ql(r),l=Dn(e,0);l.setFullYear(n,0,4),l.setHours(0,0,0,0);const o=Ql(l);return t.getTime()>=i.getTime()?n+1:t.getTime()>=o.getTime()?n:n-1}function Lc(e){const t=it(e);return t.setHours(0,0,0,0),t}function Dc(e){const t=it(e),n=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return n.setUTCFullYear(t.getFullYear()),+e-+n}function Ag(e,t){const n=Lc(e),r=Lc(t),i=+n-Dc(n),l=+r-Dc(r);return Math.round((i-l)/zg)}function Wg(e){const t=Hh(e),n=Dn(e,0);return n.setFullYear(t,0,4),n.setHours(0,0,0,0),Ql(n)}function $g(e){return e instanceof Date||typeof e=="object"&&Object.prototype.toString.call(e)==="[object Date]"}function Qg(e){if(!$g(e)&&typeof e!="number")return!1;const t=it(e);return!isNaN(Number(t))}function Hg(e){const t=it(e),n=Dn(e,0);return n.setFullYear(t.getFullYear(),0,1),n.setHours(0,0,0,0),n}const Bg={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},Vg=(e,t,n)=>{let r;const i=Bg[e];return typeof i=="string"?r=i:t===1?r=i.one:r=i.other.replace("{{count}}",t.toString()),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?"in "+r:r+" ago":r};function Qo(e){return(t={})=>{const n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}const Yg={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},Kg={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},Gg={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},qg={date:Qo({formats:Yg,defaultWidth:"full"}),time:Qo({formats:Kg,defaultWidth:"full"}),dateTime:Qo({formats:Gg,defaultWidth:"full"})},bg={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},Xg=(e,t,n,r)=>bg[e];function Ir(e){return(t,n)=>{const r=n!=null&&n.context?String(n.context):"standalone";let i;if(r==="formatting"&&e.formattingValues){const o=e.defaultFormattingWidth||e.defaultWidth,s=n!=null&&n.width?String(n.width):o;i=e.formattingValues[s]||e.formattingValues[o]}else{const o=e.defaultWidth,s=n!=null&&n.width?String(n.width):e.defaultWidth;i=e.values[s]||e.values[o]}const l=e.argumentCallback?e.argumentCallback(t):t;return i[l]}}const Jg={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},Zg={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},e0={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},t0={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},n0={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},r0={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},i0=(e,t)=>{const n=Number(e),r=n%100;if(r>20||r<10)switch(r%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},l0={ordinalNumber:i0,era:Ir({values:Jg,defaultWidth:"wide"}),quarter:Ir({values:Zg,defaultWidth:"wide",argumentCallback:e=>e-1}),month:Ir({values:e0,defaultWidth:"wide"}),day:Ir({values:t0,defaultWidth:"wide"}),dayPeriod:Ir({values:n0,defaultWidth:"wide",formattingValues:r0,defaultFormattingWidth:"wide"})};function zr(e){return(t,n={})=>{const r=n.width,i=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],l=t.match(i);if(!l)return null;const o=l[0],s=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],a=Array.isArray(s)?s0(s,f=>f.test(o)):o0(s,f=>f.test(o));let u;u=e.valueCallback?e.valueCallback(a):a,u=n.valueCallback?n.valueCallback(u):u;const d=t.slice(o.length);return{value:u,rest:d}}}function o0(e,t){for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t(e[n]))return n}function s0(e,t){for(let n=0;n<e.length;n++)if(t(e[n]))return n}function a0(e){return(t,n={})=>{const r=t.match(e.matchPattern);if(!r)return null;const i=r[0],l=t.match(e.parsePattern);if(!l)return null;let o=e.valueCallback?e.valueCallback(l[0]):l[0];o=n.valueCallback?n.valueCallback(o):o;const s=t.slice(i.length);return{value:o,rest:s}}}const u0=/^(\d+)(th|st|nd|rd)?/i,c0=/\d+/i,f0={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},d0={any:[/^b/i,/^(a|c)/i]},h0={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},p0={any:[/1/i,/2/i,/3/i,/4/i]},m0={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},y0={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},v0={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},g0={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},w0={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},x0={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},S0={ordinalNumber:a0({matchPattern:u0,parsePattern:c0,valueCallback:e=>parseInt(e,10)}),era:zr({matchPatterns:f0,defaultMatchWidth:"wide",parsePatterns:d0,defaultParseWidth:"any"}),quarter:zr({matchPatterns:h0,defaultMatchWidth:"wide",parsePatterns:p0,defaultParseWidth:"any",valueCallback:e=>e+1}),month:zr({matchPatterns:m0,defaultMatchWidth:"wide",parsePatterns:y0,defaultParseWidth:"any"}),day:zr({matchPatterns:v0,defaultMatchWidth:"wide",parsePatterns:g0,defaultParseWidth:"any"}),dayPeriod:zr({matchPatterns:w0,defaultMatchWidth:"any",parsePatterns:x0,defaultParseWidth:"any"})},E0={code:"en-US",formatDistance:Vg,formatLong:qg,formatRelative:Xg,localize:l0,match:S0,options:{weekStartsOn:0,firstWeekContainsDate:1}};function k0(e){const t=it(e);return Ag(t,Hg(t))+1}function C0(e){const t=it(e),n=+Ql(t)-+Wg(t);return Math.round(n/Qh)+1}function Bh(e,t){var d,f,p,w;const n=it(e),r=n.getFullYear(),i=so(),l=(t==null?void 0:t.firstWeekContainsDate)??((f=(d=t==null?void 0:t.locale)==null?void 0:d.options)==null?void 0:f.firstWeekContainsDate)??i.firstWeekContainsDate??((w=(p=i.locale)==null?void 0:p.options)==null?void 0:w.firstWeekContainsDate)??1,o=Dn(e,0);o.setFullYear(r+1,0,l),o.setHours(0,0,0,0);const s=wi(o,t),a=Dn(e,0);a.setFullYear(r,0,l),a.setHours(0,0,0,0);const u=wi(a,t);return n.getTime()>=s.getTime()?r+1:n.getTime()>=u.getTime()?r:r-1}function P0(e,t){var s,a,u,d;const n=so(),r=(t==null?void 0:t.firstWeekContainsDate)??((a=(s=t==null?void 0:t.locale)==null?void 0:s.options)==null?void 0:a.firstWeekContainsDate)??n.firstWeekContainsDate??((d=(u=n.locale)==null?void 0:u.options)==null?void 0:d.firstWeekContainsDate)??1,i=Bh(e,t),l=Dn(e,0);return l.setFullYear(i,0,r),l.setHours(0,0,0,0),wi(l,t)}function R0(e,t){const n=it(e),r=+wi(n,t)-+P0(n,t);return Math.round(r/Qh)+1}function H(e,t){const n=e<0?"-":"",r=Math.abs(e).toString().padStart(t,"0");return n+r}const _t={y(e,t){const n=e.getFullYear(),r=n>0?n:1-n;return H(t==="yy"?r%100:r,t.length)},M(e,t){const n=e.getMonth();return t==="M"?String(n+1):H(n+1,2)},d(e,t){return H(e.getDate(),t.length)},a(e,t){const n=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.toUpperCase();case"aaa":return n;case"aaaaa":return n[0];case"aaaa":default:return n==="am"?"a.m.":"p.m."}},h(e,t){return H(e.getHours()%12||12,t.length)},H(e,t){return H(e.getHours(),t.length)},m(e,t){return H(e.getMinutes(),t.length)},s(e,t){return H(e.getSeconds(),t.length)},S(e,t){const n=t.length,r=e.getMilliseconds(),i=Math.trunc(r*Math.pow(10,n-3));return H(i,t.length)}},Un={midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},Fc={G:function(e,t,n){const r=e.getFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return n.era(r,{width:"abbreviated"});case"GGGGG":return n.era(r,{width:"narrow"});case"GGGG":default:return n.era(r,{width:"wide"})}},y:function(e,t,n){if(t==="yo"){const r=e.getFullYear(),i=r>0?r:1-r;return n.ordinalNumber(i,{unit:"year"})}return _t.y(e,t)},Y:function(e,t,n,r){const i=Bh(e,r),l=i>0?i:1-i;if(t==="YY"){const o=l%100;return H(o,2)}return t==="Yo"?n.ordinalNumber(l,{unit:"year"}):H(l,t.length)},R:function(e,t){const n=Hh(e);return H(n,t.length)},u:function(e,t){const n=e.getFullYear();return H(n,t.length)},Q:function(e,t,n){const r=Math.ceil((e.getMonth()+1)/3);switch(t){case"Q":return String(r);case"QQ":return H(r,2);case"Qo":return n.ordinalNumber(r,{unit:"quarter"});case"QQQ":return n.quarter(r,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(r,{width:"narrow",context:"formatting"});case"QQQQ":default:return n.quarter(r,{width:"wide",context:"formatting"})}},q:function(e,t,n){const r=Math.ceil((e.getMonth()+1)/3);switch(t){case"q":return String(r);case"qq":return H(r,2);case"qo":return n.ordinalNumber(r,{unit:"quarter"});case"qqq":return n.quarter(r,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(r,{width:"narrow",context:"standalone"});case"qqqq":default:return n.quarter(r,{width:"wide",context:"standalone"})}},M:function(e,t,n){const r=e.getMonth();switch(t){case"M":case"MM":return _t.M(e,t);case"Mo":return n.ordinalNumber(r+1,{unit:"month"});case"MMM":return n.month(r,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(r,{width:"narrow",context:"formatting"});case"MMMM":default:return n.month(r,{width:"wide",context:"formatting"})}},L:function(e,t,n){const r=e.getMonth();switch(t){case"L":return String(r+1);case"LL":return H(r+1,2);case"Lo":return n.ordinalNumber(r+1,{unit:"month"});case"LLL":return n.month(r,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(r,{width:"narrow",context:"standalone"});case"LLLL":default:return n.month(r,{width:"wide",context:"standalone"})}},w:function(e,t,n,r){const i=R0(e,r);return t==="wo"?n.ordinalNumber(i,{unit:"week"}):H(i,t.length)},I:function(e,t,n){const r=C0(e);return t==="Io"?n.ordinalNumber(r,{unit:"week"}):H(r,t.length)},d:function(e,t,n){return t==="do"?n.ordinalNumber(e.getDate(),{unit:"date"}):_t.d(e,t)},D:function(e,t,n){const r=k0(e);return t==="Do"?n.ordinalNumber(r,{unit:"dayOfYear"}):H(r,t.length)},E:function(e,t,n){const r=e.getDay();switch(t){case"E":case"EE":case"EEE":return n.day(r,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(r,{width:"short",context:"formatting"});case"EEEE":default:return n.day(r,{width:"wide",context:"formatting"})}},e:function(e,t,n,r){const i=e.getDay(),l=(i-r.weekStartsOn+8)%7||7;switch(t){case"e":return String(l);case"ee":return H(l,2);case"eo":return n.ordinalNumber(l,{unit:"day"});case"eee":return n.day(i,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(i,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(i,{width:"short",context:"formatting"});case"eeee":default:return n.day(i,{width:"wide",context:"formatting"})}},c:function(e,t,n,r){const i=e.getDay(),l=(i-r.weekStartsOn+8)%7||7;switch(t){case"c":return String(l);case"cc":return H(l,t.length);case"co":return n.ordinalNumber(l,{unit:"day"});case"ccc":return n.day(i,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(i,{width:"narrow",context:"standalone"});case"cccccc":return n.day(i,{width:"short",context:"standalone"});case"cccc":default:return n.day(i,{width:"wide",context:"standalone"})}},i:function(e,t,n){const r=e.getDay(),i=r===0?7:r;switch(t){case"i":return String(i);case"ii":return H(i,t.length);case"io":return n.ordinalNumber(i,{unit:"day"});case"iii":return n.day(r,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(r,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(r,{width:"short",context:"formatting"});case"iiii":default:return n.day(r,{width:"wide",context:"formatting"})}},a:function(e,t,n){const i=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(i,{width:"narrow",context:"formatting"});case"aaaa":default:return n.dayPeriod(i,{width:"wide",context:"formatting"})}},b:function(e,t,n){const r=e.getHours();let i;switch(r===12?i=Un.noon:r===0?i=Un.midnight:i=r/12>=1?"pm":"am",t){case"b":case"bb":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(i,{width:"narrow",context:"formatting"});case"bbbb":default:return n.dayPeriod(i,{width:"wide",context:"formatting"})}},B:function(e,t,n){const r=e.getHours();let i;switch(r>=17?i=Un.evening:r>=12?i=Un.afternoon:r>=4?i=Un.morning:i=Un.night,t){case"B":case"BB":case"BBB":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(i,{width:"narrow",context:"formatting"});case"BBBB":default:return n.dayPeriod(i,{width:"wide",context:"formatting"})}},h:function(e,t,n){if(t==="ho"){let r=e.getHours()%12;return r===0&&(r=12),n.ordinalNumber(r,{unit:"hour"})}return _t.h(e,t)},H:function(e,t,n){return t==="Ho"?n.ordinalNumber(e.getHours(),{unit:"hour"}):_t.H(e,t)},K:function(e,t,n){const r=e.getHours()%12;return t==="Ko"?n.ordinalNumber(r,{unit:"hour"}):H(r,t.length)},k:function(e,t,n){let r=e.getHours();return r===0&&(r=24),t==="ko"?n.ordinalNumber(r,{unit:"hour"}):H(r,t.length)},m:function(e,t,n){return t==="mo"?n.ordinalNumber(e.getMinutes(),{unit:"minute"}):_t.m(e,t)},s:function(e,t,n){return t==="so"?n.ordinalNumber(e.getSeconds(),{unit:"second"}):_t.s(e,t)},S:function(e,t){return _t.S(e,t)},X:function(e,t,n){const r=e.getTimezoneOffset();if(r===0)return"Z";switch(t){case"X":return Ic(r);case"XXXX":case"XX":return fn(r);case"XXXXX":case"XXX":default:return fn(r,":")}},x:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"x":return Ic(r);case"xxxx":case"xx":return fn(r);case"xxxxx":case"xxx":default:return fn(r,":")}},O:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+jc(r,":");case"OOOO":default:return"GMT"+fn(r,":")}},z:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+jc(r,":");case"zzzz":default:return"GMT"+fn(r,":")}},t:function(e,t,n){const r=Math.trunc(e.getTime()/1e3);return H(r,t.length)},T:function(e,t,n){const r=e.getTime();return H(r,t.length)}};function jc(e,t=""){const n=e>0?"-":"+",r=Math.abs(e),i=Math.trunc(r/60),l=r%60;return l===0?n+String(i):n+String(i)+t+H(l,2)}function Ic(e,t){return e%60===0?(e>0?"-":"+")+H(Math.abs(e)/60,2):fn(e,t)}function fn(e,t=""){const n=e>0?"-":"+",r=Math.abs(e),i=H(Math.trunc(r/60),2),l=H(r%60,2);return n+i+t+l}const zc=(e,t)=>{switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});case"PPPP":default:return t.date({width:"full"})}},Vh=(e,t)=>{switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});case"pppp":default:return t.time({width:"full"})}},N0=(e,t)=>{const n=e.match(/(P+)(p+)?/)||[],r=n[1],i=n[2];if(!i)return zc(e,t);let l;switch(r){case"P":l=t.dateTime({width:"short"});break;case"PP":l=t.dateTime({width:"medium"});break;case"PPP":l=t.dateTime({width:"long"});break;case"PPPP":default:l=t.dateTime({width:"full"});break}return l.replace("{{date}}",zc(r,t)).replace("{{time}}",Vh(i,t))},T0={p:Vh,P:N0},O0=/^D+$/,_0=/^Y+$/,M0=["D","DD","YY","YYYY"];function L0(e){return O0.test(e)}function D0(e){return _0.test(e)}function F0(e,t,n){const r=j0(e,t,n);if(console.warn(r),M0.includes(e))throw new RangeError(r)}function j0(e,t,n){const r=e[0]==="Y"?"years":"days of the month";return`Use \`${e.toLowerCase()}\` instead of \`${e}\` (in \`${t}\`) for formatting ${r} to the input \`${n}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}const I0=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,z0=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,U0=/^'([^]*?)'?$/,A0=/''/g,W0=/[a-zA-Z]/;function Jr(e,t,n){var d,f,p,w;const r=so(),i=r.locale??E0,l=r.firstWeekContainsDate??((f=(d=r.locale)==null?void 0:d.options)==null?void 0:f.firstWeekContainsDate)??1,o=r.weekStartsOn??((w=(p=r.locale)==null?void 0:p.options)==null?void 0:w.weekStartsOn)??0,s=it(e);if(!Qg(s))throw new RangeError("Invalid time value");let a=t.match(z0).map(v=>{const x=v[0];if(x==="p"||x==="P"){const E=T0[x];return E(v,i.formatLong)}return v}).join("").match(I0).map(v=>{if(v==="''")return{isToken:!1,value:"'"};const x=v[0];if(x==="'")return{isToken:!1,value:$0(v)};if(Fc[x])return{isToken:!0,value:v};if(x.match(W0))throw new RangeError("Format string contains an unescaped latin alphabet character `"+x+"`");return{isToken:!1,value:v}});i.localize.preprocessor&&(a=i.localize.preprocessor(s,a));const u={firstWeekContainsDate:l,weekStartsOn:o,locale:i};return a.map(v=>{if(!v.isToken)return v.value;const x=v.value;(D0(x)||L0(x))&&F0(x,t,String(e));const E=Fc[x[0]];return E(s,x,i.localize,u)}).join("")}function $0(e){const t=e.match(U0);return t?t[1].replace(A0,"'"):e}function Q0({displayName:e,sessionCount:t,lastActivity:n,sessions:r,selectedId:i,onSelectSession:l,initialExpanded:o=!1}){const[s,a]=S.useState(o);return S.useEffect(()=>{i&&r.some(d=>{var f;return d.id===i||((f=d.agentSessions)==null?void 0:f.some(p=>p.id===i))})&&a(!0)},[i,r]),k.jsxs("div",{className:"border-b border-gray-700",children:[k.jsx("button",{onClick:()=>a(!s),className:"sticky top-0 z-10 w-full text-left p-4 bg-gray-900 hover:bg-gray-800 transition-colors flex items-center justify-between",children:k.jsxs("div",{className:"flex-1 min-w-0",children:[k.jsxs("div",{className:"flex items-center gap-2",children:[k.jsx("svg",{className:`w-4 h-4 transition-transform ${s?"rotate-90":""}`,fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:k.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M9 5l7 7-7 7"})}),k.jsx("span",{className:"font-semibold text-sm truncate",children:e})]}),k.jsxs("div",{className:"text-xs text-gray-400 mt-1 ml-6",children:[t," session",t!==1?"s":""," · Last activity"," ",Jr(new Date(n),"PPp")]})]})}),s&&k.jsx("div",{className:"bg-gray-900/50",children:r.map(u=>k.jsxs("div",{children:[k.jsxs("button",{onClick:()=>l(u.id),className:`w-full text-left px-4 py-3 pl-8 hover:bg-gray-700/50 transition-colors border-l-2 ${i===u.id?"bg-gray-700 border-blue-500":"border-transparent"}`,children:[u.title&&k.jsx("div",{className:"text-sm font-medium text-gray-200 mb-1 truncate",children:u.title}),k.jsx("div",{className:"text-xs text-gray-400",children:Jr(new Date(u.timestamp),"PPpp")}),k.jsxs("div",{className:"text-xs text-gray-500 mt-1",children:[u.messageCount," message",u.messageCount!==1?"s":"",u.agentSessions&&u.agentSessions.length>0&&k.jsxs("span",{className:"ml-2",children:["· ",u.agentSessions.length," task",u.agentSessions.length!==1?"s":""]})]})]}),u.agentSessions&&u.agentSessions.length>0&&k.jsx("div",{className:"bg-gray-900/70",children:u.agentSessions.map(d=>k.jsxs("button",{onClick:()=>l(d.id),className:`w-full text-left px-4 py-2 pl-14 hover:bg-gray-700/50 transition-colors border-l-2 ${i===d.id?"bg-gray-700 border-blue-500":"border-transparent"}`,children:[k.jsxs("div",{className:"flex items-center gap-2 mb-1",children:[k.jsx("span",{className:"px-1.5 py-0.5 text-xs bg-purple-900/50 text-purple-300 rounded",children:"TASK"}),d.title&&k.jsx("span",{className:"text-sm font-medium text-gray-300 truncate",children:d.title})]}),k.jsx("div",{className:"text-xs text-gray-400",children:Jr(new Date(d.timestamp),"PPpp")}),k.jsxs("div",{className:"text-xs text-gray-500 mt-1",children:[d.messageCount," message",d.messageCount!==1?"s":""]})]},d.id))})]},u.id))})]})}function H0({projects:e,selectedId:t,onSelect:n}){const r=i=>t?i.sessions.some(l=>{var o;return l.id===t||((o=l.agentSessions)==null?void 0:o.some(s=>s.id===t))}):!1;return k.jsx("div",{children:e.map(i=>k.jsx(Q0,{name:i.name,displayName:i.displayName,sessionCount:i.sessionCount,lastActivity:i.lastActivity,sessions:i.sessions,selectedId:t,onSelectSession:n,initialExpanded:r(i)},i.name))})}function B0({messages:e,activeId:t,onNavigate:n}){const[r,i]=S.useState([]),l=S.useRef(null),o=S.useRef(null),s=S.useRef(!1);S.useEffect(()=>{const u=e.map((d,f)=>{var x;const p=`message-${f}`;let w="";const v=[];if((x=d.message)!=null&&x.content&&Array.isArray(d.message.content)){const E=d.message.content.find(h=>h.type==="text");E&&(w=E.text.slice(0,50)+(E.text.length>50?"...":"")),d.message.content.forEach(h=>{h.type==="tool_use"?v.push({name:h.name,type:"tool_use"}):h.type==="tool_result"&&v.push({name:"Tool Result",type:"tool_result"})})}return{id:p,type:d.type||"system",text:w,toolUses:v,timestamp:d.timestamp}});i(u)},[e]),S.useEffect(()=>{if(!s.current&&l.current&&o.current){const u=o.current,d=l.current,f=u.getBoundingClientRect(),p=d.getBoundingClientRect();(p.top<f.top||p.bottom>f.bottom)&&d.scrollIntoView({behavior:"smooth",block:"center"})}},[t]);const a=u=>{s.current=!0,n(u),setTimeout(()=>{s.current=!1},1500)};return k.jsxs("div",{ref:o,className:"w-full border-l border-gray-700 bg-gray-800 overflow-y-auto h-full",children:[k.jsxs("div",{className:"p-4 border-b border-gray-700 sticky top-0 bg-gray-800 z-10",children:[k.jsx("h3",{className:"text-sm font-semibold text-gray-300",children:"Table of Contents"}),k.jsxs("p",{className:"text-xs text-gray-500 mt-1",children:[r.length," messages"]})]}),k.jsx("nav",{className:"p-2",children:r.map((u,d)=>k.jsx("div",{className:"mb-1",children:k.jsxs("button",{ref:t===u.id?l:null,onClick:()=>a(u.id),className:`w-full text-left px-3 py-2 rounded text-xs transition-colors ${t===u.id?"bg-blue-900/50 text-blue-200 border-l-2 border-blue-400":"text-gray-400 hover:bg-gray-700 hover:text-gray-200"}`,children:[k.jsxs("div",{className:"flex items-center gap-2 mb-1",children:[k.jsx("span",{className:`px-1.5 py-0.5 text-[10px] rounded ${u.type==="user"?"bg-blue-900/50 text-blue-300":u.type==="assistant"?"bg-green-900/50 text-green-300":"bg-gray-700 text-gray-400"}`,children:u.type}),k.jsxs("span",{className:"text-gray-500",children:["#",d+1]})]}),u.text&&k.jsx("div",{className:"text-gray-300 line-clamp-2 leading-tight",children:u.text}),u.toolUses.length>0&&k.jsx("div",{className:"mt-1 flex flex-wrap gap-1",children:u.toolUses.map((f,p)=>k.jsxs("span",{className:`px-1.5 py-0.5 text-[10px] rounded font-mono ${f.type==="tool_result"?"bg-green-900/30 text-green-400":"bg-yellow-900/30 text-yellow-400"}`,children:[f.type==="tool_result"?"✓":"🔧"," ",f.name]},p))})]})},u.id))})]})}const Yh=256,V0=640,Y0=896,K0=Y0+Yh;function G0({sessionId:e}){var w;const[t,n]=S.useState(null),[r,i]=S.useState(!0),l=S.useRef(new Map),o=S.useRef(!1),s=S.useRef(null),{data:a,isLoading:u,error:d}=xh({queryKey:["session",e],queryFn:async()=>{const v=await fetch(`/api/sessions/${e}`);if(!v.ok)throw new Error("Failed to fetch session");return v.json()}});S.useEffect(()=>{if(!s.current)return;const v=s.current.parentElement??s.current,x=c=>{i(c>=K0)},E=new ResizeObserver(c=>{for(const m of c)x(m.contentRect.width)}),h=v.getBoundingClientRect().width;return x(h),E.observe(v),()=>{E.disconnect()}},[]),S.useEffect(()=>{var x;if(!((x=a==null?void 0:a.session)!=null&&x.messages))return;const v=new IntersectionObserver(E=>{o.current||E.forEach(h=>{if(h.isIntersecting){const c=h.target.getAttribute("data-message-id");c&&n(c)}})},{rootMargin:"-50% 0px -50% 0px",threshold:0});return l.current.forEach(E=>{v.observe(E)}),()=>{v.disconnect()}},[(w=a==null?void 0:a.session)==null?void 0:w.messages]);const f=v=>{n(v),o.current=!0;const x=l.current.get(v);x&&x.scrollIntoView({behavior:"smooth",block:"center"}),setTimeout(()=>{o.current=!1},1500)};if(u)return k.jsx("div",{className:"flex items-center justify-center h-full",children:k.jsx("div",{className:"text-gray-400",children:"Loading session..."})});if(d)return k.jsx("div",{className:"flex items-center justify-center h-full",children:k.jsxs("div",{className:"text-red-400",children:["Error: ",d.message]})});const p=a==null?void 0:a.session;return k.jsxs("div",{ref:s,className:"h-full flex min-w-0",children:[k.jsxs("div",{className:"flex-1 flex flex-col min-w-0",style:{minWidth:`${V0}px`},children:[k.jsxs("div",{className:"border-b border-gray-700 p-6 bg-gray-800",children:[k.jsxs("div",{className:"flex items-center gap-2",children:[(p==null?void 0:p.isAgent)&&k.jsx("span",{className:"px-2 py-1 text-xs bg-purple-900/50 text-purple-300 rounded font-semibold",children:"TASK"}),k.jsx("h2",{className:"text-2xl font-bold truncate flex-1",children:(p==null?void 0:p.title)||"Untitled Session"})]}),k.jsx("div",{className:"text-xl text-gray-300",children:p==null?void 0:p.project}),k.jsxs("div",{className:"flex items-center gap-3 mt-4 text-sm text-gray-400",children:[k.jsx("span",{children:(p==null?void 0:p.timestamp)&&Jr(new Date(p.timestamp),"PPpp")}),k.jsx("span",{children:"•"}),k.jsxs("span",{children:[(p==null?void 0:p.messageCount)||0," message",(p==null?void 0:p.messageCount)!==1?"s":""]}),(p==null?void 0:p.agentSessions)&&p.agentSessions.length>0&&k.jsxs(k.Fragment,{children:[k.jsx("span",{children:"•"}),k.jsxs("span",{children:[p.agentSessions.length," task",p.agentSessions.length!==1?"s":""]})]})]})]}),k.jsx("div",{className:"flex-1 overflow-y-auto p-6",children:k.jsx("div",{className:"max-w-4xl mx-auto space-y-6",children:p==null?void 0:p.messages.map((v,x)=>{var h;const E=`message-${x}`;return k.jsxs("div",{ref:c=>{c?l.current.set(E,c):l.current.delete(E)},"data-message-id":E,className:"border-l-2 border-gray-700 pl-4",children:[k.jsx("div",{className:"flex items-start justify-between mb-2",children:k.jsxs("div",{className:"flex items-center gap-2",children:[k.jsx("span",{className:`px-2 py-1 text-xs rounded ${v.type==="user"?"bg-blue-900 text-blue-200":v.type==="assistant"?"bg-green-900 text-green-200":"bg-gray-700 text-gray-300"}`,children:v.type||"system"}),k.jsxs("span",{className:"text-xs text-gray-500 font-mono",children:["#",x+1]}),v.timestamp&&k.jsx("span",{className:"text-xs text-gray-500",children:Jr(new Date(v.timestamp),"HH:mm:ss")})]})}),k.jsx("div",{className:"bg-gray-800 rounded-lg p-4 text-sm",children:(h=v.message)!=null&&h.content&&Array.isArray(v.message.content)?k.jsx("div",{className:"space-y-2",children:v.message.content.map((c,m)=>k.jsxs("div",{children:[c.type==="text"&&k.jsx("p",{className:"whitespace-pre-wrap",children:c.text}),c.type==="tool_use"&&k.jsxs("div",{className:"bg-gray-900 p-3 rounded border border-gray-700",children:[k.jsxs("div",{className:"flex items-center justify-between mb-2",children:[k.jsxs("div",{className:"text-yellow-400 font-mono text-xs",children:["🔧 ",c.name]}),c.name==="Task"&&c.agentId&&k.jsx(ru,{to:`/sessions/agent-${c.agentId}`,className:"px-2 py-1 text-xs bg-purple-700 hover:bg-purple-600 text-purple-100 rounded transition-colors",children:"View Task →"})]}),k.jsx("pre",{className:"text-xs overflow-x-auto text-gray-400",children:JSON.stringify(c.input,null,2)})]}),c.type==="tool_result"&&k.jsxs("div",{className:"bg-gray-900 p-3 rounded border border-gray-700",children:[k.jsx("div",{className:"text-green-400 font-mono text-xs mb-2",children:"✓ Tool Result"}),k.jsx("pre",{className:"text-xs overflow-x-auto text-gray-400",children:typeof c.content=="string"?c.content:JSON.stringify(c.content,null,2)})]})]},m))}):k.jsx("pre",{className:"text-xs overflow-x-auto text-gray-400",children:JSON.stringify(v,null,2)})})]},x)})})})]}),r&&(p==null?void 0:p.messages)&&p.messages.length>0&&k.jsx("div",{style:{width:`${Yh}px`,flexShrink:0},children:k.jsx(B0,{messages:p.messages,activeId:t,onNavigate:f})})]})}const Kh=new Yy,Uc="claude-session-viewer-sidebar-width",q0=320,b0=200,X0=600;function Ac(){const e=Fh(),n=Qv().sessionId||null,[r,i]=S.useState(()=>{const g=localStorage.getItem(Uc);return g?parseInt(g,10):q0}),[l,o]=S.useState(!1),[s,a]=S.useState(0),u=S.useRef(null),d=S.useRef(null),{data:f,isLoading:p,error:w,refetch:v}=xh({queryKey:["sessions"],queryFn:async()=>{const g=await fetch("/api/sessions");if(!g.ok)throw new Error("Failed to fetch sessions");return g.json()}}),x=g=>{e(`/sessions/${g}`)};S.useEffect(()=>{const g=d.current;if(!g)return;const C=()=>{a(g.scrollTop)};return g.addEventListener("scroll",C),()=>g.removeEventListener("scroll",C)},[]),S.useEffect(()=>{const g=P=>{if(!l)return;const N=P.clientX;N>=b0&&N<=X0&&(i(N),localStorage.setItem(Uc,N.toString()))},C=()=>{o(!1),document.body.style.cursor="",document.body.style.userSelect=""};return l&&(document.body.style.cursor="col-resize",document.body.style.userSelect="none",document.addEventListener("mousemove",g),document.addEventListener("mouseup",C)),()=>{document.removeEventListener("mousemove",g),document.removeEventListener("mouseup",C)}},[l]),S.useEffect(()=>{const C=`${window.location.protocol==="https:"?"wss:":"ws:"}//${window.location.host}/ws`;let P=null,N=!1,T=null,F=0,O=!0;const U=()=>{P=new WebSocket(C),N=!1,P.onopen=()=>{if(N){P==null||P.close();return}F=0},P.onmessage=oe=>{const Pe=JSON.parse(oe.data);(Pe.type==="file-added"||Pe.type==="file-changed"||Pe.type==="file-deleted")&&(v(),n&&Kh.invalidateQueries({queryKey:["session",n]}))},P.onerror=oe=>{console.error("WebSocket error:",oe)},P.onclose=()=>{if(!O)return;const oe=Math.min(1e3*2**F,1e4);F+=1,T=setTimeout(U,oe)}};return U(),()=>{O=!1,T&&clearTimeout(T),P&&P.readyState===WebSocket.CONNECTING?N=!0:P==null||P.close()}},[v,n]);const E=Math.max(0,1-s/80),h=12+E*12,c=1.125+E*.375,m=E;return k.jsxs("div",{className:"flex h-screen bg-gray-900 text-white",children:[k.jsxs("div",{className:"relative flex flex-col",style:{width:`${r}px`},children:[k.jsxs("div",{ref:u,className:"border-r border-gray-700 h-full flex flex-col",children:[k.jsxs("div",{className:"border-b border-gray-700 flex-shrink-0 transition-all duration-200",style:{padding:`${h}px`},children:[k.jsx("h1",{className:"font-bold transition-all duration-200",style:{fontSize:`${c}rem`},children:"Claude Sessions"}),k.jsx("p",{className:"text-sm text-gray-400 mt-1 transition-opacity duration-200",style:{opacity:m,height:m>0?"auto":0,overflow:"hidden"},children:p?"Loading...":`${(f==null?void 0:f.projects.length)||0} project${(f==null?void 0:f.projects.length)!==1?"s":""}`})]}),k.jsx("div",{ref:d,className:"flex-1 overflow-y-auto",children:w?k.jsxs("div",{className:"p-4 text-red-400 text-sm",children:["Error loading sessions: ",w.message]}):k.jsx(H0,{projects:(f==null?void 0:f.projects)||[],selectedId:n,onSelect:x})})]}),k.jsx("div",{className:"absolute top-0 right-0 w-4 h-full cursor-col-resize group z-10",onMouseDown:g=>{g.preventDefault(),o(!0)},style:{touchAction:"none"},children:k.jsx("div",{className:`w-1 h-full ml-auto transition-colors ${l?"bg-blue-500":"bg-transparent group-hover:bg-blue-500"}`})})]}),k.jsx("div",{className:"flex-1 min-w-0 overflow-y-auto",children:n?k.jsx(G0,{sessionId:n}):k.jsx("div",{className:"flex items-center justify-center h-full text-gray-500",children:k.jsxs("div",{className:"text-center",children:[k.jsx("svg",{className:"mx-auto h-12 w-12 text-gray-600",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:k.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M8 12h.01M12 12h.01M16 12h.01M21 12c0 4.418-4.03 8-9 8a9.863 9.863 0 01-4.255-.949L3 20l1.395-3.72C3.512 15.042 3 13.574 3 12c0-4.418 4.03-8 9-8s9 3.582 9 8z"})}),k.jsx("h3",{className:"mt-2 text-sm font-medium",children:"No session selected"}),k.jsx("p",{className:"mt-1 text-sm text-gray-600",children:"Select a session from the sidebar to view details"})]})})})]})}function J0(){return k.jsx(Gy,{client:Kh,children:k.jsx(Ng,{children:k.jsxs(rg,{children:[k.jsx(Xs,{path:"/",element:k.jsx(Ac,{})}),k.jsx(Xs,{path:"/sessions/:sessionId",element:k.jsx(Ac,{})})]})})})}Ho.createRoot(document.getElementById("root")).render(k.jsx(fp.StrictMode,{children:k.jsx(J0,{})}));