diff --git a/CHANGELOG.md b/CHANGELOG.md index e9cc530..8d340d2 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,10 @@ # Release Notes for Palette +## 5.1.0 - 2024-04-09 + +### Added +- Show links to section-specific entries (Thanks, @kylecotter) + ## 5.0.0 - 2024-03-27 ### Added diff --git a/composer.json b/composer.json index 13d01e5..9d51490 100644 --- a/composer.json +++ b/composer.json @@ -2,7 +2,7 @@ "name": "trendyminds/craft-palette", "description": "A command palette to easily jump to specific areas within Craft", "type": "craft-plugin", - "version": "5.0.0", + "version": "5.1.0", "keywords": ["palette", "craft", "craft cms", "cmdk", "spotlight", "craft plugin"], "license": "MIT", "authors": [ diff --git a/scripts/Icon.jsx b/scripts/Icon.jsx index 07d25cc..55a70a7 100644 --- a/scripts/Icon.jsx +++ b/scripts/Icon.jsx @@ -7,6 +7,7 @@ import { CodeBracketSquareIcon, Cog8ToothIcon, DocumentIcon, + DocumentDuplicateIcon, GlobeAltIcon, MagnifyingGlassIcon, PaperClipIcon, @@ -69,6 +70,10 @@ export default function Icon({ name, ...props }) { return <AdjustmentsVerticalIcon {...props} /> } + if (name === 'docs') { + return <DocumentDuplicateIcon {...props} /> + } + if (name === 'user') { return <UserCircleIcon {...props} /> } diff --git a/src/assetbundles/resources/Init.js b/src/assetbundles/resources/Init.js index f6f4383..4c286cc 100644 --- a/src/assetbundles/resources/Init.js +++ b/src/assetbundles/resources/Init.js @@ -7,7 +7,7 @@ function sf(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"d * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var yo=Symbol.for("react.element"),fv=Symbol.for("react.portal"),dv=Symbol.for("react.fragment"),pv=Symbol.for("react.strict_mode"),hv=Symbol.for("react.profiler"),vv=Symbol.for("react.provider"),mv=Symbol.for("react.context"),yv=Symbol.for("react.forward_ref"),gv=Symbol.for("react.suspense"),Sv=Symbol.for("react.memo"),wv=Symbol.for("react.lazy"),Aa=Symbol.iterator;function _v(e){return e===null||typeof e!="object"?null:(e=Aa&&e[Aa]||e["@@iterator"],typeof e=="function"?e:null)}var ff={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},df=Object.assign,pf={};function mr(e,t,n){this.props=e,this.context=t,this.refs=pf,this.updater=n||ff}mr.prototype.isReactComponent={};mr.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")};mr.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function hf(){}hf.prototype=mr.prototype;function ds(e,t,n){this.props=e,this.context=t,this.refs=pf,this.updater=n||ff}var ps=ds.prototype=new hf;ps.constructor=ds;df(ps,mr.prototype);ps.isPureReactComponent=!0;var xa=Array.isArray,vf=Object.prototype.hasOwnProperty,hs={current:null},mf={key:!0,ref:!0,__self:!0,__source:!0};function yf(e,t,n){var r,o={},l=null,i=null;if(t!=null)for(r in t.ref!==void 0&&(i=t.ref),t.key!==void 0&&(l=""+t.key),t)vf.call(t,r)&&!mf.hasOwnProperty(r)&&(o[r]=t[r]);var u=arguments.length-2;if(u===1)o.children=n;else if(1<u){for(var s=Array(u),a=0;a<u;a++)s[a]=arguments[a+2];o.children=s}if(e&&e.defaultProps)for(r in u=e.defaultProps,u)o[r]===void 0&&(o[r]=u[r]);return{$$typeof:yo,type:e,key:l,ref:i,props:o,_owner:hs.current}}function Rv(e,t){return{$$typeof:yo,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function vs(e){return typeof e=="object"&&e!==null&&e.$$typeof===yo}function Ev(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var Ma=/\/+/g;function Li(e,t){return typeof e=="object"&&e!==null&&e.key!=null?Ev(""+e.key):t.toString(36)}function tl(e,t,n,r,o){var l=typeof e;(l==="undefined"||l==="boolean")&&(e=null);var i=!1;if(e===null)i=!0;else switch(l){case"string":case"number":i=!0;break;case"object":switch(e.$$typeof){case yo:case fv:i=!0}}if(i)return i=e,o=o(i),e=r===""?"."+Li(i,0):r,xa(o)?(n="",e!=null&&(n=e.replace(Ma,"$&/")+"/"),tl(o,t,n,"",function(a){return a})):o!=null&&(vs(o)&&(o=Rv(o,n+(!o.key||i&&i.key===o.key?"":(""+o.key).replace(Ma,"$&/")+"/")+e)),t.push(o)),1;if(i=0,r=r===""?".":r+":",xa(e))for(var u=0;u<e.length;u++){l=e[u];var s=r+Li(l,u);i+=tl(l,t,n,s,o)}else if(s=_v(e),typeof s=="function")for(e=s.call(e),u=0;!(l=e.next()).done;)l=l.value,s=r+Li(l,u++),i+=tl(l,t,n,s,o);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 i}function $o(e,t,n){if(e==null)return e;var r=[],o=0;return tl(e,r,"","",function(l){return t.call(n,l,o++)}),r}function kv(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 Be={current:null},nl={transition:null},Tv={ReactCurrentDispatcher:Be,ReactCurrentBatchConfig:nl,ReactCurrentOwner:hs};ee.Children={map:$o,forEach:function(e,t,n){$o(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return $o(e,function(){t++}),t},toArray:function(e){return $o(e,function(t){return t})||[]},only:function(e){if(!vs(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};ee.Component=mr;ee.Fragment=dv;ee.Profiler=hv;ee.PureComponent=ds;ee.StrictMode=pv;ee.Suspense=gv;ee.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Tv;ee.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=df({},e.props),o=e.key,l=e.ref,i=e._owner;if(t!=null){if(t.ref!==void 0&&(l=t.ref,i=hs.current),t.key!==void 0&&(o=""+t.key),e.type&&e.type.defaultProps)var u=e.type.defaultProps;for(s in t)vf.call(t,s)&&!mf.hasOwnProperty(s)&&(r[s]=t[s]===void 0&&u!==void 0?u[s]:t[s])}var s=arguments.length-2;if(s===1)r.children=n;else if(1<s){u=Array(s);for(var a=0;a<s;a++)u[a]=arguments[a+2];r.children=u}return{$$typeof:yo,type:e.type,key:o,ref:l,props:r,_owner:i}};ee.createContext=function(e){return e={$$typeof:mv,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:vv,_context:e},e.Consumer=e};ee.createElement=yf;ee.createFactory=function(e){var t=yf.bind(null,e);return t.type=e,t};ee.createRef=function(){return{current:null}};ee.forwardRef=function(e){return{$$typeof:yv,render:e}};ee.isValidElement=vs;ee.lazy=function(e){return{$$typeof:wv,_payload:{_status:-1,_result:e},_init:kv}};ee.memo=function(e,t){return{$$typeof:Sv,type:e,compare:t===void 0?null:t}};ee.startTransition=function(e){var t=nl.transition;nl.transition={};try{e()}finally{nl.transition=t}};ee.unstable_act=function(){throw Error("act(...) is not supported in production builds of React.")};ee.useCallback=function(e,t){return Be.current.useCallback(e,t)};ee.useContext=function(e){return Be.current.useContext(e)};ee.useDebugValue=function(){};ee.useDeferredValue=function(e){return Be.current.useDeferredValue(e)};ee.useEffect=function(e,t){return Be.current.useEffect(e,t)};ee.useId=function(){return Be.current.useId()};ee.useImperativeHandle=function(e,t,n){return Be.current.useImperativeHandle(e,t,n)};ee.useInsertionEffect=function(e,t){return Be.current.useInsertionEffect(e,t)};ee.useLayoutEffect=function(e,t){return Be.current.useLayoutEffect(e,t)};ee.useMemo=function(e,t){return Be.current.useMemo(e,t)};ee.useReducer=function(e,t,n){return Be.current.useReducer(e,t,n)};ee.useRef=function(e){return Be.current.useRef(e)};ee.useState=function(e){return Be.current.useState(e)};ee.useSyncExternalStore=function(e,t,n){return Be.current.useSyncExternalStore(e,t,n)};ee.useTransition=function(){return Be.current.useTransition()};ee.version="18.2.0";cf.exports=ee;var C=cf.exports;const me=sf(C);/** + */var yo=Symbol.for("react.element"),fv=Symbol.for("react.portal"),dv=Symbol.for("react.fragment"),pv=Symbol.for("react.strict_mode"),hv=Symbol.for("react.profiler"),vv=Symbol.for("react.provider"),mv=Symbol.for("react.context"),yv=Symbol.for("react.forward_ref"),gv=Symbol.for("react.suspense"),Sv=Symbol.for("react.memo"),wv=Symbol.for("react.lazy"),Aa=Symbol.iterator;function _v(e){return e===null||typeof e!="object"?null:(e=Aa&&e[Aa]||e["@@iterator"],typeof e=="function"?e:null)}var ff={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},df=Object.assign,pf={};function mr(e,t,n){this.props=e,this.context=t,this.refs=pf,this.updater=n||ff}mr.prototype.isReactComponent={};mr.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")};mr.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function hf(){}hf.prototype=mr.prototype;function ds(e,t,n){this.props=e,this.context=t,this.refs=pf,this.updater=n||ff}var ps=ds.prototype=new hf;ps.constructor=ds;df(ps,mr.prototype);ps.isPureReactComponent=!0;var xa=Array.isArray,vf=Object.prototype.hasOwnProperty,hs={current:null},mf={key:!0,ref:!0,__self:!0,__source:!0};function yf(e,t,n){var r,o={},l=null,i=null;if(t!=null)for(r in t.ref!==void 0&&(i=t.ref),t.key!==void 0&&(l=""+t.key),t)vf.call(t,r)&&!mf.hasOwnProperty(r)&&(o[r]=t[r]);var u=arguments.length-2;if(u===1)o.children=n;else if(1<u){for(var s=Array(u),a=0;a<u;a++)s[a]=arguments[a+2];o.children=s}if(e&&e.defaultProps)for(r in u=e.defaultProps,u)o[r]===void 0&&(o[r]=u[r]);return{$$typeof:yo,type:e,key:l,ref:i,props:o,_owner:hs.current}}function Rv(e,t){return{$$typeof:yo,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function vs(e){return typeof e=="object"&&e!==null&&e.$$typeof===yo}function Ev(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var Ma=/\/+/g;function Li(e,t){return typeof e=="object"&&e!==null&&e.key!=null?Ev(""+e.key):t.toString(36)}function tl(e,t,n,r,o){var l=typeof e;(l==="undefined"||l==="boolean")&&(e=null);var i=!1;if(e===null)i=!0;else switch(l){case"string":case"number":i=!0;break;case"object":switch(e.$$typeof){case yo:case fv:i=!0}}if(i)return i=e,o=o(i),e=r===""?"."+Li(i,0):r,xa(o)?(n="",e!=null&&(n=e.replace(Ma,"$&/")+"/"),tl(o,t,n,"",function(a){return a})):o!=null&&(vs(o)&&(o=Rv(o,n+(!o.key||i&&i.key===o.key?"":(""+o.key).replace(Ma,"$&/")+"/")+e)),t.push(o)),1;if(i=0,r=r===""?".":r+":",xa(e))for(var u=0;u<e.length;u++){l=e[u];var s=r+Li(l,u);i+=tl(l,t,n,s,o)}else if(s=_v(e),typeof s=="function")for(e=s.call(e),u=0;!(l=e.next()).done;)l=l.value,s=r+Li(l,u++),i+=tl(l,t,n,s,o);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 i}function $o(e,t,n){if(e==null)return e;var r=[],o=0;return tl(e,r,"","",function(l){return t.call(n,l,o++)}),r}function kv(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 Be={current:null},nl={transition:null},Tv={ReactCurrentDispatcher:Be,ReactCurrentBatchConfig:nl,ReactCurrentOwner:hs};ee.Children={map:$o,forEach:function(e,t,n){$o(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return $o(e,function(){t++}),t},toArray:function(e){return $o(e,function(t){return t})||[]},only:function(e){if(!vs(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};ee.Component=mr;ee.Fragment=dv;ee.Profiler=hv;ee.PureComponent=ds;ee.StrictMode=pv;ee.Suspense=gv;ee.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Tv;ee.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=df({},e.props),o=e.key,l=e.ref,i=e._owner;if(t!=null){if(t.ref!==void 0&&(l=t.ref,i=hs.current),t.key!==void 0&&(o=""+t.key),e.type&&e.type.defaultProps)var u=e.type.defaultProps;for(s in t)vf.call(t,s)&&!mf.hasOwnProperty(s)&&(r[s]=t[s]===void 0&&u!==void 0?u[s]:t[s])}var s=arguments.length-2;if(s===1)r.children=n;else if(1<s){u=Array(s);for(var a=0;a<s;a++)u[a]=arguments[a+2];r.children=u}return{$$typeof:yo,type:e.type,key:o,ref:l,props:r,_owner:i}};ee.createContext=function(e){return e={$$typeof:mv,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:vv,_context:e},e.Consumer=e};ee.createElement=yf;ee.createFactory=function(e){var t=yf.bind(null,e);return t.type=e,t};ee.createRef=function(){return{current:null}};ee.forwardRef=function(e){return{$$typeof:yv,render:e}};ee.isValidElement=vs;ee.lazy=function(e){return{$$typeof:wv,_payload:{_status:-1,_result:e},_init:kv}};ee.memo=function(e,t){return{$$typeof:Sv,type:e,compare:t===void 0?null:t}};ee.startTransition=function(e){var t=nl.transition;nl.transition={};try{e()}finally{nl.transition=t}};ee.unstable_act=function(){throw Error("act(...) is not supported in production builds of React.")};ee.useCallback=function(e,t){return Be.current.useCallback(e,t)};ee.useContext=function(e){return Be.current.useContext(e)};ee.useDebugValue=function(){};ee.useDeferredValue=function(e){return Be.current.useDeferredValue(e)};ee.useEffect=function(e,t){return Be.current.useEffect(e,t)};ee.useId=function(){return Be.current.useId()};ee.useImperativeHandle=function(e,t,n){return Be.current.useImperativeHandle(e,t,n)};ee.useInsertionEffect=function(e,t){return Be.current.useInsertionEffect(e,t)};ee.useLayoutEffect=function(e,t){return Be.current.useLayoutEffect(e,t)};ee.useMemo=function(e,t){return Be.current.useMemo(e,t)};ee.useReducer=function(e,t,n){return Be.current.useReducer(e,t,n)};ee.useRef=function(e){return Be.current.useRef(e)};ee.useState=function(e){return Be.current.useState(e)};ee.useSyncExternalStore=function(e,t,n){return Be.current.useSyncExternalStore(e,t,n)};ee.useTransition=function(){return Be.current.useTransition()};ee.version="18.2.0";cf.exports=ee;var k=cf.exports;const me=sf(k);/** * @license React * react-jsx-runtime.production.min.js * @@ -15,7 +15,7 @@ function sf(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"d * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var Cv=C,Nv=Symbol.for("react.element"),Lv=Symbol.for("react.fragment"),Av=Object.prototype.hasOwnProperty,xv=Cv.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,Mv={key:!0,ref:!0,__self:!0,__source:!0};function gf(e,t,n){var r,o={},l=null,i=null;n!==void 0&&(l=""+n),t.key!==void 0&&(l=""+t.key),t.ref!==void 0&&(i=t.ref);for(r in t)Av.call(t,r)&&!Mv.hasOwnProperty(r)&&(o[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps,t)o[r]===void 0&&(o[r]=t[r]);return{$$typeof:Nv,type:e,key:l,ref:i,props:o,_owner:xv.current}}Wl.Fragment=Lv;Wl.jsx=gf;Wl.jsxs=gf;af.exports=Wl;var B=af.exports,Sf={exports:{}},rt={},wf={exports:{}},_f={};/** + */var Cv=k,Nv=Symbol.for("react.element"),Lv=Symbol.for("react.fragment"),Av=Object.prototype.hasOwnProperty,xv=Cv.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,Mv={key:!0,ref:!0,__self:!0,__source:!0};function gf(e,t,n){var r,o={},l=null,i=null;n!==void 0&&(l=""+n),t.key!==void 0&&(l=""+t.key),t.ref!==void 0&&(i=t.ref);for(r in t)Av.call(t,r)&&!Mv.hasOwnProperty(r)&&(o[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps,t)o[r]===void 0&&(o[r]=t[r]);return{$$typeof:Nv,type:e,key:l,ref:i,props:o,_owner:xv.current}}Wl.Fragment=Lv;Wl.jsx=gf;Wl.jsxs=gf;af.exports=Wl;var F=af.exports,Sf={exports:{}},rt={},wf={exports:{}},_f={};/** * @license React * scheduler.production.min.js * @@ -23,7 +23,7 @@ function sf(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"d * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */(function(e){function t($,H){var I=$.length;$.push(H);e:for(;0<I;){var j=I-1>>>1,y=$[j];if(0<o(y,H))$[j]=H,$[I]=y,I=j;else break e}}function n($){return $.length===0?null:$[0]}function r($){if($.length===0)return null;var H=$[0],I=$.pop();if(I!==H){$[0]=I;e:for(var j=0,y=$.length,A=y>>>1;j<A;){var x=2*(j+1)-1,G=$[x],z=x+1,Y=$[z];if(0>o(G,I))z<y&&0>o(Y,G)?($[j]=Y,$[z]=I,j=z):($[j]=G,$[x]=I,j=x);else if(z<y&&0>o(Y,I))$[j]=Y,$[z]=I,j=z;else break e}}return H}function o($,H){var I=$.sortIndex-H.sortIndex;return I!==0?I:$.id-H.id}if(typeof performance=="object"&&typeof performance.now=="function"){var l=performance;e.unstable_now=function(){return l.now()}}else{var i=Date,u=i.now();e.unstable_now=function(){return i.now()-u}}var s=[],a=[],d=1,f=null,m=3,_=!1,S=!1,R=!1,F=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 p($){for(var H=n(a);H!==null;){if(H.callback===null)r(a);else if(H.startTime<=$)r(a),H.sortIndex=H.expirationTime,t(s,H);else break;H=n(a)}}function w($){if(R=!1,p($),!S)if(n(s)!==null)S=!0,Ie(E);else{var H=n(a);H!==null&&Xe(w,H.startTime-$)}}function E($,H){S=!1,R&&(R=!1,h(V),V=-1),_=!0;var I=m;try{for(p(H),f=n(s);f!==null&&(!(f.expirationTime>H)||$&&!fe());){var j=f.callback;if(typeof j=="function"){f.callback=null,m=f.priorityLevel;var y=j(f.expirationTime<=H);H=e.unstable_now(),typeof y=="function"?f.callback=y:f===n(s)&&r(s),p(H)}else r(s);f=n(s)}if(f!==null)var A=!0;else{var x=n(a);x!==null&&Xe(w,x.startTime-H),A=!1}return A}finally{f=null,m=I,_=!1}}var L=!1,N=null,V=-1,te=5,U=-1;function fe(){return!(e.unstable_now()-U<te)}function lt(){if(N!==null){var $=e.unstable_now();U=$;var H=!0;try{H=N(!0,$)}finally{H?oe():(L=!1,N=null)}}else L=!1}var oe;if(typeof c=="function")oe=function(){c(lt)};else if(typeof MessageChannel<"u"){var $e=new MessageChannel,Mt=$e.port2;$e.port1.onmessage=lt,oe=function(){Mt.postMessage(null)}}else oe=function(){F(lt,0)};function Ie($){N=$,L||(L=!0,oe())}function Xe($,H){V=F(function(){$(e.unstable_now())},H)}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($){$.callback=null},e.unstable_continueExecution=function(){S||_||(S=!0,Ie(E))},e.unstable_forceFrameRate=function($){0>$||125<$?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):te=0<$?Math.floor(1e3/$):5},e.unstable_getCurrentPriorityLevel=function(){return m},e.unstable_getFirstCallbackNode=function(){return n(s)},e.unstable_next=function($){switch(m){case 1:case 2:case 3:var H=3;break;default:H=m}var I=m;m=H;try{return $()}finally{m=I}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function($,H){switch($){case 1:case 2:case 3:case 4:case 5:break;default:$=3}var I=m;m=$;try{return H()}finally{m=I}},e.unstable_scheduleCallback=function($,H,I){var j=e.unstable_now();switch(typeof I=="object"&&I!==null?(I=I.delay,I=typeof I=="number"&&0<I?j+I:j):I=j,$){case 1:var y=-1;break;case 2:y=250;break;case 5:y=1073741823;break;case 4:y=1e4;break;default:y=5e3}return y=I+y,$={id:d++,callback:H,priorityLevel:$,startTime:I,expirationTime:y,sortIndex:-1},I>j?($.sortIndex=I,t(a,$),n(s)===null&&$===n(a)&&(R?(h(V),V=-1):R=!0,Xe(w,I-j))):($.sortIndex=y,t(s,$),S||_||(S=!0,Ie(E))),$},e.unstable_shouldYield=fe,e.unstable_wrapCallback=function($){var H=m;return function(){var I=m;m=H;try{return $.apply(this,arguments)}finally{m=I}}}})(_f);wf.exports=_f;var Pv=wf.exports;/** + */(function(e){function t($,H){var I=$.length;$.push(H);e:for(;0<I;){var j=I-1>>>1,y=$[j];if(0<o(y,H))$[j]=H,$[I]=y,I=j;else break e}}function n($){return $.length===0?null:$[0]}function r($){if($.length===0)return null;var H=$[0],I=$.pop();if(I!==H){$[0]=I;e:for(var j=0,y=$.length,A=y>>>1;j<A;){var x=2*(j+1)-1,G=$[x],z=x+1,Y=$[z];if(0>o(G,I))z<y&&0>o(Y,G)?($[j]=Y,$[z]=I,j=z):($[j]=G,$[x]=I,j=x);else if(z<y&&0>o(Y,I))$[j]=Y,$[z]=I,j=z;else break e}}return H}function o($,H){var I=$.sortIndex-H.sortIndex;return I!==0?I:$.id-H.id}if(typeof performance=="object"&&typeof performance.now=="function"){var l=performance;e.unstable_now=function(){return l.now()}}else{var i=Date,u=i.now();e.unstable_now=function(){return i.now()-u}}var s=[],a=[],d=1,f=null,m=3,_=!1,S=!1,R=!1,B=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 p($){for(var H=n(a);H!==null;){if(H.callback===null)r(a);else if(H.startTime<=$)r(a),H.sortIndex=H.expirationTime,t(s,H);else break;H=n(a)}}function w($){if(R=!1,p($),!S)if(n(s)!==null)S=!0,Ie(E);else{var H=n(a);H!==null&&Xe(w,H.startTime-$)}}function E($,H){S=!1,R&&(R=!1,h(V),V=-1),_=!0;var I=m;try{for(p(H),f=n(s);f!==null&&(!(f.expirationTime>H)||$&&!fe());){var j=f.callback;if(typeof j=="function"){f.callback=null,m=f.priorityLevel;var y=j(f.expirationTime<=H);H=e.unstable_now(),typeof y=="function"?f.callback=y:f===n(s)&&r(s),p(H)}else r(s);f=n(s)}if(f!==null)var A=!0;else{var x=n(a);x!==null&&Xe(w,x.startTime-H),A=!1}return A}finally{f=null,m=I,_=!1}}var L=!1,N=null,V=-1,te=5,U=-1;function fe(){return!(e.unstable_now()-U<te)}function lt(){if(N!==null){var $=e.unstable_now();U=$;var H=!0;try{H=N(!0,$)}finally{H?oe():(L=!1,N=null)}}else L=!1}var oe;if(typeof c=="function")oe=function(){c(lt)};else if(typeof MessageChannel<"u"){var $e=new MessageChannel,Mt=$e.port2;$e.port1.onmessage=lt,oe=function(){Mt.postMessage(null)}}else oe=function(){B(lt,0)};function Ie($){N=$,L||(L=!0,oe())}function Xe($,H){V=B(function(){$(e.unstable_now())},H)}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($){$.callback=null},e.unstable_continueExecution=function(){S||_||(S=!0,Ie(E))},e.unstable_forceFrameRate=function($){0>$||125<$?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):te=0<$?Math.floor(1e3/$):5},e.unstable_getCurrentPriorityLevel=function(){return m},e.unstable_getFirstCallbackNode=function(){return n(s)},e.unstable_next=function($){switch(m){case 1:case 2:case 3:var H=3;break;default:H=m}var I=m;m=H;try{return $()}finally{m=I}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function($,H){switch($){case 1:case 2:case 3:case 4:case 5:break;default:$=3}var I=m;m=$;try{return H()}finally{m=I}},e.unstable_scheduleCallback=function($,H,I){var j=e.unstable_now();switch(typeof I=="object"&&I!==null?(I=I.delay,I=typeof I=="number"&&0<I?j+I:j):I=j,$){case 1:var y=-1;break;case 2:y=250;break;case 5:y=1073741823;break;case 4:y=1e4;break;default:y=5e3}return y=I+y,$={id:d++,callback:H,priorityLevel:$,startTime:I,expirationTime:y,sortIndex:-1},I>j?($.sortIndex=I,t(a,$),n(s)===null&&$===n(a)&&(R?(h(V),V=-1):R=!0,Xe(w,I-j))):($.sortIndex=y,t(s,$),S||_||(S=!0,Ie(E))),$},e.unstable_shouldYield=fe,e.unstable_wrapCallback=function($){var H=m;return function(){var I=m;m=H;try{return $.apply(this,arguments)}finally{m=I}}}})(_f);wf.exports=_f;var Pv=wf.exports;/** * @license React * react-dom.production.min.js * @@ -31,15 +31,15 @@ function sf(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"d * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var Rf=C,nt=Pv;function T(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 Ef=new Set,Jr={};function Pn(e,t){or(e,t),or(e+"Capture",t)}function or(e,t){for(Jr[e]=t,e=0;e<t.length;e++)Ef.add(t[e])}var Dt=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),cu=Object.prototype.hasOwnProperty,$v=/^[: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]*$/,Pa={},$a={};function Iv(e){return cu.call($a,e)?!0:cu.call(Pa,e)?!1:$v.test(e)?$a[e]=!0:(Pa[e]=!0,!1)}function Vv(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 zv(e,t,n,r){if(t===null||typeof t>"u"||Vv(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 je(e,t,n,r,o,l,i){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=l,this.removeEmptyString=i}var Pe={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Pe[e]=new je(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 je(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Pe[e]=new je(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Pe[e]=new je(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 je(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Pe[e]=new je(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Pe[e]=new je(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Pe[e]=new je(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Pe[e]=new je(e,5,!1,e.toLowerCase(),null,!1,!1)});var ms=/[\-:]([a-z])/g;function ys(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(ms,ys);Pe[t]=new je(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(ms,ys);Pe[t]=new je(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(ms,ys);Pe[t]=new je(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Pe[e]=new je(e,1,!1,e.toLowerCase(),null,!1,!1)});Pe.xlinkHref=new je("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Pe[e]=new je(e,1,!1,e.toLowerCase(),null,!0,!0)});function gs(e,t,n,r){var o=Pe.hasOwnProperty(t)?Pe[t]:null;(o!==null?o.type!==0:r||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(zv(t,n,o,r)&&(n=null),r||o===null?Iv(t)&&(n===null?e.removeAttribute(t):e.setAttribute(t,""+n)):o.mustUseProperty?e[o.propertyName]=n===null?o.type===3?!1:"":n:(t=o.attributeName,r=o.attributeNamespace,n===null?e.removeAttribute(t):(o=o.type,n=o===3||o===4&&n===!0?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}var Bt=Rf.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,Io=Symbol.for("react.element"),Un=Symbol.for("react.portal"),Fn=Symbol.for("react.fragment"),Ss=Symbol.for("react.strict_mode"),fu=Symbol.for("react.profiler"),kf=Symbol.for("react.provider"),Tf=Symbol.for("react.context"),ws=Symbol.for("react.forward_ref"),du=Symbol.for("react.suspense"),pu=Symbol.for("react.suspense_list"),_s=Symbol.for("react.memo"),Ht=Symbol.for("react.lazy"),Cf=Symbol.for("react.offscreen"),Ia=Symbol.iterator;function Er(e){return e===null||typeof e!="object"?null:(e=Ia&&e[Ia]||e["@@iterator"],typeof e=="function"?e:null)}var we=Object.assign,Ai;function zr(e){if(Ai===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);Ai=t&&t[1]||""}return` + */var Rf=k,nt=Pv;function C(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 Ef=new Set,Jr={};function Pn(e,t){or(e,t),or(e+"Capture",t)}function or(e,t){for(Jr[e]=t,e=0;e<t.length;e++)Ef.add(t[e])}var Dt=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),cu=Object.prototype.hasOwnProperty,$v=/^[: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]*$/,Pa={},$a={};function Iv(e){return cu.call($a,e)?!0:cu.call(Pa,e)?!1:$v.test(e)?$a[e]=!0:(Pa[e]=!0,!1)}function Vv(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 zv(e,t,n,r){if(t===null||typeof t>"u"||Vv(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 je(e,t,n,r,o,l,i){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=l,this.removeEmptyString=i}var Pe={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Pe[e]=new je(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 je(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Pe[e]=new je(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Pe[e]=new je(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 je(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Pe[e]=new je(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Pe[e]=new je(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Pe[e]=new je(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Pe[e]=new je(e,5,!1,e.toLowerCase(),null,!1,!1)});var ms=/[\-:]([a-z])/g;function ys(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(ms,ys);Pe[t]=new je(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(ms,ys);Pe[t]=new je(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(ms,ys);Pe[t]=new je(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Pe[e]=new je(e,1,!1,e.toLowerCase(),null,!1,!1)});Pe.xlinkHref=new je("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Pe[e]=new je(e,1,!1,e.toLowerCase(),null,!0,!0)});function gs(e,t,n,r){var o=Pe.hasOwnProperty(t)?Pe[t]:null;(o!==null?o.type!==0:r||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(zv(t,n,o,r)&&(n=null),r||o===null?Iv(t)&&(n===null?e.removeAttribute(t):e.setAttribute(t,""+n)):o.mustUseProperty?e[o.propertyName]=n===null?o.type===3?!1:"":n:(t=o.attributeName,r=o.attributeNamespace,n===null?e.removeAttribute(t):(o=o.type,n=o===3||o===4&&n===!0?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}var Bt=Rf.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,Io=Symbol.for("react.element"),Un=Symbol.for("react.portal"),Fn=Symbol.for("react.fragment"),Ss=Symbol.for("react.strict_mode"),fu=Symbol.for("react.profiler"),kf=Symbol.for("react.provider"),Tf=Symbol.for("react.context"),ws=Symbol.for("react.forward_ref"),du=Symbol.for("react.suspense"),pu=Symbol.for("react.suspense_list"),_s=Symbol.for("react.memo"),Ht=Symbol.for("react.lazy"),Cf=Symbol.for("react.offscreen"),Ia=Symbol.iterator;function Er(e){return e===null||typeof e!="object"?null:(e=Ia&&e[Ia]||e["@@iterator"],typeof e=="function"?e:null)}var we=Object.assign,Ai;function zr(e){if(Ai===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);Ai=t&&t[1]||""}return` `+Ai+e}var xi=!1;function Mi(e,t){if(!e||xi)return"";xi=!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(a){var r=a}Reflect.construct(e,[],t)}else{try{t.call()}catch(a){r=a}e.call(t.prototype)}else{try{throw Error()}catch(a){r=a}e()}}catch(a){if(a&&r&&typeof a.stack=="string"){for(var o=a.stack.split(` `),l=r.stack.split(` `),i=o.length-1,u=l.length-1;1<=i&&0<=u&&o[i]!==l[u];)u--;for(;1<=i&&0<=u;i--,u--)if(o[i]!==l[u]){if(i!==1||u!==1)do if(i--,u--,0>u||o[i]!==l[u]){var s=` -`+o[i].replace(" at new "," at ");return e.displayName&&s.includes("<anonymous>")&&(s=s.replace("<anonymous>",e.displayName)),s}while(1<=i&&0<=u);break}}}finally{xi=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?zr(e):""}function Dv(e){switch(e.tag){case 5:return zr(e.type);case 16:return zr("Lazy");case 13:return zr("Suspense");case 19:return zr("SuspenseList");case 0:case 2:case 15:return e=Mi(e.type,!1),e;case 11:return e=Mi(e.type.render,!1),e;case 1:return e=Mi(e.type,!0),e;default:return""}}function hu(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 Fn:return"Fragment";case Un:return"Portal";case fu:return"Profiler";case Ss:return"StrictMode";case du:return"Suspense";case pu:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Tf:return(e.displayName||"Context")+".Consumer";case kf:return(e._context.displayName||"Context")+".Provider";case ws:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case _s:return t=e.displayName||null,t!==null?t:hu(e.type)||"Memo";case Ht:t=e._payload,e=e._init;try{return hu(e(t))}catch{}}return null}function Ov(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 hu(t);case 8:return t===Ss?"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 sn(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Nf(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Uv(e){var t=Nf(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 o=n.get,l=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(i){r=""+i,l.call(this,i)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(i){r=""+i},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Vo(e){e._valueTracker||(e._valueTracker=Uv(e))}function Lf(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=Nf(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function hl(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 vu(e,t){var n=t.checked;return we({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Va(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=sn(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 Af(e,t){t=t.checked,t!=null&&gs(e,"checked",t,!1)}function mu(e,t){Af(e,t);var n=sn(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")?yu(e,t.type,n):t.hasOwnProperty("defaultValue")&&yu(e,t.type,sn(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function za(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 yu(e,t,n){(t!=="number"||hl(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Dr=Array.isArray;function Xn(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o<n.length;o++)t["$"+n[o]]=!0;for(n=0;n<e.length;n++)o=t.hasOwnProperty("$"+e[n].value),e[n].selected!==o&&(e[n].selected=o),o&&r&&(e[n].defaultSelected=!0)}else{for(n=""+sn(n),t=null,o=0;o<e.length;o++){if(e[o].value===n){e[o].selected=!0,r&&(e[o].defaultSelected=!0);return}t!==null||e[o].disabled||(t=e[o])}t!==null&&(t.selected=!0)}}function gu(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(T(91));return we({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function Da(e,t){var n=t.value;if(n==null){if(n=t.children,t=t.defaultValue,n!=null){if(t!=null)throw Error(T(92));if(Dr(n)){if(1<n.length)throw Error(T(93));n=n[0]}t=n}t==null&&(t=""),n=t}e._wrapperState={initialValue:sn(n)}}function xf(e,t){var n=sn(t.value),r=sn(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 Oa(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function Mf(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 Su(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?Mf(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var zo,Pf=function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,n,r,o){MSApp.execUnsafeLocalFunction(function(){return e(t,n,r,o)})}:e}(function(e,t){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=t;else{for(zo=zo||document.createElement("div"),zo.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=zo.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function eo(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Br={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},Fv=["Webkit","ms","Moz","O"];Object.keys(Br).forEach(function(e){Fv.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Br[t]=Br[e]})});function $f(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Br.hasOwnProperty(e)&&Br[e]?(""+t).trim():t+"px"}function If(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,o=$f(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}var Bv=we({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 wu(e,t){if(t){if(Bv[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(T(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(T(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(T(61))}if(t.style!=null&&typeof t.style!="object")throw Error(T(62))}}function _u(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 Ru=null;function Rs(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Eu=null,qn=null,Jn=null;function Ua(e){if(e=wo(e)){if(typeof Eu!="function")throw Error(T(280));var t=e.stateNode;t&&(t=Ql(t),Eu(e.stateNode,e.type,t))}}function Vf(e){qn?Jn?Jn.push(e):Jn=[e]:qn=e}function zf(){if(qn){var e=qn,t=Jn;if(Jn=qn=null,Ua(e),t)for(e=0;e<t.length;e++)Ua(t[e])}}function Df(e,t){return e(t)}function Of(){}var Pi=!1;function Uf(e,t,n){if(Pi)return e(t,n);Pi=!0;try{return Df(e,t,n)}finally{Pi=!1,(qn!==null||Jn!==null)&&(Of(),zf())}}function to(e,t){var n=e.stateNode;if(n===null)return null;var r=Ql(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(T(231,t,typeof n));return n}var ku=!1;if(Dt)try{var kr={};Object.defineProperty(kr,"passive",{get:function(){ku=!0}}),window.addEventListener("test",kr,kr),window.removeEventListener("test",kr,kr)}catch{ku=!1}function jv(e,t,n,r,o,l,i,u,s){var a=Array.prototype.slice.call(arguments,3);try{t.apply(n,a)}catch(d){this.onError(d)}}var jr=!1,vl=null,ml=!1,Tu=null,Wv={onError:function(e){jr=!0,vl=e}};function Hv(e,t,n,r,o,l,i,u,s){jr=!1,vl=null,jv.apply(Wv,arguments)}function bv(e,t,n,r,o,l,i,u,s){if(Hv.apply(this,arguments),jr){if(jr){var a=vl;jr=!1,vl=null}else throw Error(T(198));ml||(ml=!0,Tu=a)}}function $n(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 Ff(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 Fa(e){if($n(e)!==e)throw Error(T(188))}function Kv(e){var t=e.alternate;if(!t){if(t=$n(e),t===null)throw Error(T(188));return t!==e?null:e}for(var n=e,r=t;;){var o=n.return;if(o===null)break;var l=o.alternate;if(l===null){if(r=o.return,r!==null){n=r;continue}break}if(o.child===l.child){for(l=o.child;l;){if(l===n)return Fa(o),e;if(l===r)return Fa(o),t;l=l.sibling}throw Error(T(188))}if(n.return!==r.return)n=o,r=l;else{for(var i=!1,u=o.child;u;){if(u===n){i=!0,n=o,r=l;break}if(u===r){i=!0,r=o,n=l;break}u=u.sibling}if(!i){for(u=l.child;u;){if(u===n){i=!0,n=l,r=o;break}if(u===r){i=!0,r=l,n=o;break}u=u.sibling}if(!i)throw Error(T(189))}}if(n.alternate!==r)throw Error(T(190))}if(n.tag!==3)throw Error(T(188));return n.stateNode.current===n?e:t}function Bf(e){return e=Kv(e),e!==null?jf(e):null}function jf(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=jf(e);if(t!==null)return t;e=e.sibling}return null}var Wf=nt.unstable_scheduleCallback,Ba=nt.unstable_cancelCallback,Gv=nt.unstable_shouldYield,Qv=nt.unstable_requestPaint,Re=nt.unstable_now,Zv=nt.unstable_getCurrentPriorityLevel,Es=nt.unstable_ImmediatePriority,Hf=nt.unstable_UserBlockingPriority,yl=nt.unstable_NormalPriority,Yv=nt.unstable_LowPriority,bf=nt.unstable_IdlePriority,Hl=null,Nt=null;function Xv(e){if(Nt&&typeof Nt.onCommitFiberRoot=="function")try{Nt.onCommitFiberRoot(Hl,e,void 0,(e.current.flags&128)===128)}catch{}}var _t=Math.clz32?Math.clz32:e0,qv=Math.log,Jv=Math.LN2;function e0(e){return e>>>=0,e===0?32:31-(qv(e)/Jv|0)|0}var Do=64,Oo=4194304;function Or(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 gl(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,o=e.suspendedLanes,l=e.pingedLanes,i=n&268435455;if(i!==0){var u=i&~o;u!==0?r=Or(u):(l&=i,l!==0&&(r=Or(l)))}else i=n&~o,i!==0?r=Or(i):l!==0&&(r=Or(l));if(r===0)return 0;if(t!==0&&t!==r&&!(t&o)&&(o=r&-r,l=t&-t,o>=l||o===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-_t(t),o=1<<n,r|=e[n],t&=~o;return r}function t0(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 n0(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,o=e.expirationTimes,l=e.pendingLanes;0<l;){var i=31-_t(l),u=1<<i,s=o[i];s===-1?(!(u&n)||u&r)&&(o[i]=t0(u,t)):s<=t&&(e.expiredLanes|=u),l&=~u}}function Cu(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function Kf(){var e=Do;return Do<<=1,!(Do&4194240)&&(Do=64),e}function $i(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function go(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-_t(t),e[t]=n}function r0(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 o=31-_t(n),l=1<<o;t[o]=0,r[o]=-1,e[o]=-1,n&=~l}}function ks(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-_t(n),o=1<<r;o&t|e[r]&t&&(e[r]|=t),n&=~o}}var re=0;function Gf(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var Qf,Ts,Zf,Yf,Xf,Nu=!1,Uo=[],Jt=null,en=null,tn=null,no=new Map,ro=new Map,Gt=[],o0="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 ja(e,t){switch(e){case"focusin":case"focusout":Jt=null;break;case"dragenter":case"dragleave":en=null;break;case"mouseover":case"mouseout":tn=null;break;case"pointerover":case"pointerout":no.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":ro.delete(t.pointerId)}}function Tr(e,t,n,r,o,l){return e===null||e.nativeEvent!==l?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:l,targetContainers:[o]},t!==null&&(t=wo(t),t!==null&&Ts(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,o!==null&&t.indexOf(o)===-1&&t.push(o),e)}function l0(e,t,n,r,o){switch(t){case"focusin":return Jt=Tr(Jt,e,t,n,r,o),!0;case"dragenter":return en=Tr(en,e,t,n,r,o),!0;case"mouseover":return tn=Tr(tn,e,t,n,r,o),!0;case"pointerover":var l=o.pointerId;return no.set(l,Tr(no.get(l)||null,e,t,n,r,o)),!0;case"gotpointercapture":return l=o.pointerId,ro.set(l,Tr(ro.get(l)||null,e,t,n,r,o)),!0}return!1}function qf(e){var t=wn(e.target);if(t!==null){var n=$n(t);if(n!==null){if(t=n.tag,t===13){if(t=Ff(n),t!==null){e.blockedOn=t,Xf(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 rl(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=Lu(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);Ru=r,n.target.dispatchEvent(r),Ru=null}else return t=wo(n),t!==null&&Ts(t),e.blockedOn=n,!1;t.shift()}return!0}function Wa(e,t,n){rl(e)&&n.delete(t)}function i0(){Nu=!1,Jt!==null&&rl(Jt)&&(Jt=null),en!==null&&rl(en)&&(en=null),tn!==null&&rl(tn)&&(tn=null),no.forEach(Wa),ro.forEach(Wa)}function Cr(e,t){e.blockedOn===t&&(e.blockedOn=null,Nu||(Nu=!0,nt.unstable_scheduleCallback(nt.unstable_NormalPriority,i0)))}function oo(e){function t(o){return Cr(o,e)}if(0<Uo.length){Cr(Uo[0],e);for(var n=1;n<Uo.length;n++){var r=Uo[n];r.blockedOn===e&&(r.blockedOn=null)}}for(Jt!==null&&Cr(Jt,e),en!==null&&Cr(en,e),tn!==null&&Cr(tn,e),no.forEach(t),ro.forEach(t),n=0;n<Gt.length;n++)r=Gt[n],r.blockedOn===e&&(r.blockedOn=null);for(;0<Gt.length&&(n=Gt[0],n.blockedOn===null);)qf(n),n.blockedOn===null&&Gt.shift()}var er=Bt.ReactCurrentBatchConfig,Sl=!0;function u0(e,t,n,r){var o=re,l=er.transition;er.transition=null;try{re=1,Cs(e,t,n,r)}finally{re=o,er.transition=l}}function s0(e,t,n,r){var o=re,l=er.transition;er.transition=null;try{re=4,Cs(e,t,n,r)}finally{re=o,er.transition=l}}function Cs(e,t,n,r){if(Sl){var o=Lu(e,t,n,r);if(o===null)Wi(e,t,r,wl,n),ja(e,r);else if(l0(o,e,t,n,r))r.stopPropagation();else if(ja(e,r),t&4&&-1<o0.indexOf(e)){for(;o!==null;){var l=wo(o);if(l!==null&&Qf(l),l=Lu(e,t,n,r),l===null&&Wi(e,t,r,wl,n),l===o)break;o=l}o!==null&&r.stopPropagation()}else Wi(e,t,r,null,n)}}var wl=null;function Lu(e,t,n,r){if(wl=null,e=Rs(r),e=wn(e),e!==null)if(t=$n(e),t===null)e=null;else if(n=t.tag,n===13){if(e=Ff(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 wl=e,null}function Jf(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(Zv()){case Es:return 1;case Hf:return 4;case yl:case Yv:return 16;case bf:return 536870912;default:return 16}default:return 16}}var Zt=null,Ns=null,ol=null;function ed(){if(ol)return ol;var e,t=Ns,n=t.length,r,o="value"in Zt?Zt.value:Zt.textContent,l=o.length;for(e=0;e<n&&t[e]===o[e];e++);var i=n-e;for(r=1;r<=i&&t[n-r]===o[l-r];r++);return ol=o.slice(e,1<r?1-r:void 0)}function ll(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 Fo(){return!0}function Ha(){return!1}function ot(e){function t(n,r,o,l,i){this._reactName=n,this._targetInst=o,this.type=r,this.nativeEvent=l,this.target=i,this.currentTarget=null;for(var u in e)e.hasOwnProperty(u)&&(n=e[u],this[u]=n?n(l):l[u]);return this.isDefaultPrevented=(l.defaultPrevented!=null?l.defaultPrevented:l.returnValue===!1)?Fo:Ha,this.isPropagationStopped=Ha,this}return we(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=Fo)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=Fo)},persist:function(){},isPersistent:Fo}),t}var yr={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Ls=ot(yr),So=we({},yr,{view:0,detail:0}),a0=ot(So),Ii,Vi,Nr,bl=we({},So,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:As,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!==Nr&&(Nr&&e.type==="mousemove"?(Ii=e.screenX-Nr.screenX,Vi=e.screenY-Nr.screenY):Vi=Ii=0,Nr=e),Ii)},movementY:function(e){return"movementY"in e?e.movementY:Vi}}),ba=ot(bl),c0=we({},bl,{dataTransfer:0}),f0=ot(c0),d0=we({},So,{relatedTarget:0}),zi=ot(d0),p0=we({},yr,{animationName:0,elapsedTime:0,pseudoElement:0}),h0=ot(p0),v0=we({},yr,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),m0=ot(v0),y0=we({},yr,{data:0}),Ka=ot(y0),g0={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},S0={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"},w0={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function _0(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=w0[e])?!!t[e]:!1}function As(){return _0}var R0=we({},So,{key:function(e){if(e.key){var t=g0[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=ll(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?S0[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:As,charCode:function(e){return e.type==="keypress"?ll(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?ll(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),E0=ot(R0),k0=we({},bl,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Ga=ot(k0),T0=we({},So,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:As}),C0=ot(T0),N0=we({},yr,{propertyName:0,elapsedTime:0,pseudoElement:0}),L0=ot(N0),A0=we({},bl,{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}),x0=ot(A0),M0=[9,13,27,32],xs=Dt&&"CompositionEvent"in window,Wr=null;Dt&&"documentMode"in document&&(Wr=document.documentMode);var P0=Dt&&"TextEvent"in window&&!Wr,td=Dt&&(!xs||Wr&&8<Wr&&11>=Wr),Qa=" ",Za=!1;function nd(e,t){switch(e){case"keyup":return M0.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function rd(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Bn=!1;function $0(e,t){switch(e){case"compositionend":return rd(t);case"keypress":return t.which!==32?null:(Za=!0,Qa);case"textInput":return e=t.data,e===Qa&&Za?null:e;default:return null}}function I0(e,t){if(Bn)return e==="compositionend"||!xs&&nd(e,t)?(e=ed(),ol=Ns=Zt=null,Bn=!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 td&&t.locale!=="ko"?null:t.data;default:return null}}var V0={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 Ya(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!V0[e.type]:t==="textarea"}function od(e,t,n,r){Vf(r),t=_l(t,"onChange"),0<t.length&&(n=new Ls("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Hr=null,lo=null;function z0(e){vd(e,0)}function Kl(e){var t=Hn(e);if(Lf(t))return e}function D0(e,t){if(e==="change")return t}var ld=!1;if(Dt){var Di;if(Dt){var Oi="oninput"in document;if(!Oi){var Xa=document.createElement("div");Xa.setAttribute("oninput","return;"),Oi=typeof Xa.oninput=="function"}Di=Oi}else Di=!1;ld=Di&&(!document.documentMode||9<document.documentMode)}function qa(){Hr&&(Hr.detachEvent("onpropertychange",id),lo=Hr=null)}function id(e){if(e.propertyName==="value"&&Kl(lo)){var t=[];od(t,lo,e,Rs(e)),Uf(z0,t)}}function O0(e,t,n){e==="focusin"?(qa(),Hr=t,lo=n,Hr.attachEvent("onpropertychange",id)):e==="focusout"&&qa()}function U0(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Kl(lo)}function F0(e,t){if(e==="click")return Kl(t)}function B0(e,t){if(e==="input"||e==="change")return Kl(t)}function j0(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Et=typeof Object.is=="function"?Object.is:j0;function io(e,t){if(Et(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 o=n[r];if(!cu.call(t,o)||!Et(e[o],t[o]))return!1}return!0}function Ja(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function ec(e,t){var n=Ja(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=Ja(n)}}function ud(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?ud(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function sd(){for(var e=window,t=hl();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=hl(e.document)}return t}function Ms(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 W0(e){var t=sd(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&ud(n.ownerDocument.documentElement,n)){if(r!==null&&Ms(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 o=n.textContent.length,l=Math.min(r.start,o);r=r.end===void 0?l:Math.min(r.end,o),!e.extend&&l>r&&(o=r,r=l,l=o),o=ec(n,l);var i=ec(n,r);o&&i&&(e.rangeCount!==1||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==i.node||e.focusOffset!==i.offset)&&(t=t.createRange(),t.setStart(o.node,o.offset),e.removeAllRanges(),l>r?(e.addRange(t),e.extend(i.node,i.offset)):(t.setEnd(i.node,i.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 H0=Dt&&"documentMode"in document&&11>=document.documentMode,jn=null,Au=null,br=null,xu=!1;function tc(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;xu||jn==null||jn!==hl(r)||(r=jn,"selectionStart"in r&&Ms(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}),br&&io(br,r)||(br=r,r=_l(Au,"onSelect"),0<r.length&&(t=new Ls("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=jn)))}function Bo(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Wn={animationend:Bo("Animation","AnimationEnd"),animationiteration:Bo("Animation","AnimationIteration"),animationstart:Bo("Animation","AnimationStart"),transitionend:Bo("Transition","TransitionEnd")},Ui={},ad={};Dt&&(ad=document.createElement("div").style,"AnimationEvent"in window||(delete Wn.animationend.animation,delete Wn.animationiteration.animation,delete Wn.animationstart.animation),"TransitionEvent"in window||delete Wn.transitionend.transition);function Gl(e){if(Ui[e])return Ui[e];if(!Wn[e])return e;var t=Wn[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in ad)return Ui[e]=t[n];return e}var cd=Gl("animationend"),fd=Gl("animationiteration"),dd=Gl("animationstart"),pd=Gl("transitionend"),hd=new Map,nc="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 fn(e,t){hd.set(e,t),Pn(t,[e])}for(var Fi=0;Fi<nc.length;Fi++){var Bi=nc[Fi],b0=Bi.toLowerCase(),K0=Bi[0].toUpperCase()+Bi.slice(1);fn(b0,"on"+K0)}fn(cd,"onAnimationEnd");fn(fd,"onAnimationIteration");fn(dd,"onAnimationStart");fn("dblclick","onDoubleClick");fn("focusin","onFocus");fn("focusout","onBlur");fn(pd,"onTransitionEnd");or("onMouseEnter",["mouseout","mouseover"]);or("onMouseLeave",["mouseout","mouseover"]);or("onPointerEnter",["pointerout","pointerover"]);or("onPointerLeave",["pointerout","pointerover"]);Pn("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));Pn("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));Pn("onBeforeInput",["compositionend","keypress","textInput","paste"]);Pn("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));Pn("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));Pn("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Ur="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(" "),G0=new Set("cancel close invalid load scroll toggle".split(" ").concat(Ur));function rc(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,bv(r,t,void 0,e),e.currentTarget=null}function vd(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var r=e[n],o=r.event;r=r.listeners;e:{var l=void 0;if(t)for(var i=r.length-1;0<=i;i--){var u=r[i],s=u.instance,a=u.currentTarget;if(u=u.listener,s!==l&&o.isPropagationStopped())break e;rc(o,u,a),l=s}else for(i=0;i<r.length;i++){if(u=r[i],s=u.instance,a=u.currentTarget,u=u.listener,s!==l&&o.isPropagationStopped())break e;rc(o,u,a),l=s}}}if(ml)throw e=Tu,ml=!1,Tu=null,e}function se(e,t){var n=t[Vu];n===void 0&&(n=t[Vu]=new Set);var r=e+"__bubble";n.has(r)||(md(t,e,2,!1),n.add(r))}function ji(e,t,n){var r=0;t&&(r|=4),md(n,e,r,t)}var jo="_reactListening"+Math.random().toString(36).slice(2);function uo(e){if(!e[jo]){e[jo]=!0,Ef.forEach(function(n){n!=="selectionchange"&&(G0.has(n)||ji(n,!1,e),ji(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[jo]||(t[jo]=!0,ji("selectionchange",!1,t))}}function md(e,t,n,r){switch(Jf(t)){case 1:var o=u0;break;case 4:o=s0;break;default:o=Cs}n=o.bind(null,t,n,e),o=void 0,!ku||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(o=!0),r?o!==void 0?e.addEventListener(t,n,{capture:!0,passive:o}):e.addEventListener(t,n,!0):o!==void 0?e.addEventListener(t,n,{passive:o}):e.addEventListener(t,n,!1)}function Wi(e,t,n,r,o){var l=r;if(!(t&1)&&!(t&2)&&r!==null)e:for(;;){if(r===null)return;var i=r.tag;if(i===3||i===4){var u=r.stateNode.containerInfo;if(u===o||u.nodeType===8&&u.parentNode===o)break;if(i===4)for(i=r.return;i!==null;){var s=i.tag;if((s===3||s===4)&&(s=i.stateNode.containerInfo,s===o||s.nodeType===8&&s.parentNode===o))return;i=i.return}for(;u!==null;){if(i=wn(u),i===null)return;if(s=i.tag,s===5||s===6){r=l=i;continue e}u=u.parentNode}}r=r.return}Uf(function(){var a=l,d=Rs(n),f=[];e:{var m=hd.get(e);if(m!==void 0){var _=Ls,S=e;switch(e){case"keypress":if(ll(n)===0)break e;case"keydown":case"keyup":_=E0;break;case"focusin":S="focus",_=zi;break;case"focusout":S="blur",_=zi;break;case"beforeblur":case"afterblur":_=zi;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":_=ba;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":_=f0;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":_=C0;break;case cd:case fd:case dd:_=h0;break;case pd:_=L0;break;case"scroll":_=a0;break;case"wheel":_=x0;break;case"copy":case"cut":case"paste":_=m0;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":_=Ga}var R=(t&4)!==0,F=!R&&e==="scroll",h=R?m!==null?m+"Capture":null:m;R=[];for(var c=a,p;c!==null;){p=c;var w=p.stateNode;if(p.tag===5&&w!==null&&(p=w,h!==null&&(w=to(c,h),w!=null&&R.push(so(c,w,p)))),F)break;c=c.return}0<R.length&&(m=new _(m,S,null,n,d),f.push({event:m,listeners:R}))}}if(!(t&7)){e:{if(m=e==="mouseover"||e==="pointerover",_=e==="mouseout"||e==="pointerout",m&&n!==Ru&&(S=n.relatedTarget||n.fromElement)&&(wn(S)||S[Ot]))break e;if((_||m)&&(m=d.window===d?d:(m=d.ownerDocument)?m.defaultView||m.parentWindow:window,_?(S=n.relatedTarget||n.toElement,_=a,S=S?wn(S):null,S!==null&&(F=$n(S),S!==F||S.tag!==5&&S.tag!==6)&&(S=null)):(_=null,S=a),_!==S)){if(R=ba,w="onMouseLeave",h="onMouseEnter",c="mouse",(e==="pointerout"||e==="pointerover")&&(R=Ga,w="onPointerLeave",h="onPointerEnter",c="pointer"),F=_==null?m:Hn(_),p=S==null?m:Hn(S),m=new R(w,c+"leave",_,n,d),m.target=F,m.relatedTarget=p,w=null,wn(d)===a&&(R=new R(h,c+"enter",S,n,d),R.target=p,R.relatedTarget=F,w=R),F=w,_&&S)t:{for(R=_,h=S,c=0,p=R;p;p=Dn(p))c++;for(p=0,w=h;w;w=Dn(w))p++;for(;0<c-p;)R=Dn(R),c--;for(;0<p-c;)h=Dn(h),p--;for(;c--;){if(R===h||h!==null&&R===h.alternate)break t;R=Dn(R),h=Dn(h)}R=null}else R=null;_!==null&&oc(f,m,_,R,!1),S!==null&&F!==null&&oc(f,F,S,R,!0)}}e:{if(m=a?Hn(a):window,_=m.nodeName&&m.nodeName.toLowerCase(),_==="select"||_==="input"&&m.type==="file")var E=D0;else if(Ya(m))if(ld)E=B0;else{E=U0;var L=O0}else(_=m.nodeName)&&_.toLowerCase()==="input"&&(m.type==="checkbox"||m.type==="radio")&&(E=F0);if(E&&(E=E(e,a))){od(f,E,n,d);break e}L&&L(e,m,a),e==="focusout"&&(L=m._wrapperState)&&L.controlled&&m.type==="number"&&yu(m,"number",m.value)}switch(L=a?Hn(a):window,e){case"focusin":(Ya(L)||L.contentEditable==="true")&&(jn=L,Au=a,br=null);break;case"focusout":br=Au=jn=null;break;case"mousedown":xu=!0;break;case"contextmenu":case"mouseup":case"dragend":xu=!1,tc(f,n,d);break;case"selectionchange":if(H0)break;case"keydown":case"keyup":tc(f,n,d)}var N;if(xs)e:{switch(e){case"compositionstart":var V="onCompositionStart";break e;case"compositionend":V="onCompositionEnd";break e;case"compositionupdate":V="onCompositionUpdate";break e}V=void 0}else Bn?nd(e,n)&&(V="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(V="onCompositionStart");V&&(td&&n.locale!=="ko"&&(Bn||V!=="onCompositionStart"?V==="onCompositionEnd"&&Bn&&(N=ed()):(Zt=d,Ns="value"in Zt?Zt.value:Zt.textContent,Bn=!0)),L=_l(a,V),0<L.length&&(V=new Ka(V,e,null,n,d),f.push({event:V,listeners:L}),N?V.data=N:(N=rd(n),N!==null&&(V.data=N)))),(N=P0?$0(e,n):I0(e,n))&&(a=_l(a,"onBeforeInput"),0<a.length&&(d=new Ka("onBeforeInput","beforeinput",null,n,d),f.push({event:d,listeners:a}),d.data=N))}vd(f,t)})}function so(e,t,n){return{instance:e,listener:t,currentTarget:n}}function _l(e,t){for(var n=t+"Capture",r=[];e!==null;){var o=e,l=o.stateNode;o.tag===5&&l!==null&&(o=l,l=to(e,n),l!=null&&r.unshift(so(e,l,o)),l=to(e,t),l!=null&&r.push(so(e,l,o))),e=e.return}return r}function Dn(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function oc(e,t,n,r,o){for(var l=t._reactName,i=[];n!==null&&n!==r;){var u=n,s=u.alternate,a=u.stateNode;if(s!==null&&s===r)break;u.tag===5&&a!==null&&(u=a,o?(s=to(n,l),s!=null&&i.unshift(so(n,s,u))):o||(s=to(n,l),s!=null&&i.push(so(n,s,u)))),n=n.return}i.length!==0&&e.push({event:t,listeners:i})}var Q0=/\r\n?/g,Z0=/\u0000|\uFFFD/g;function lc(e){return(typeof e=="string"?e:""+e).replace(Q0,` -`).replace(Z0,"")}function Wo(e,t,n){if(t=lc(t),lc(e)!==t&&n)throw Error(T(425))}function Rl(){}var Mu=null,Pu=null;function $u(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 Iu=typeof setTimeout=="function"?setTimeout:void 0,Y0=typeof clearTimeout=="function"?clearTimeout:void 0,ic=typeof Promise=="function"?Promise:void 0,X0=typeof queueMicrotask=="function"?queueMicrotask:typeof ic<"u"?function(e){return ic.resolve(null).then(e).catch(q0)}:Iu;function q0(e){setTimeout(function(){throw e})}function Hi(e,t){var n=t,r=0;do{var o=n.nextSibling;if(e.removeChild(n),o&&o.nodeType===8)if(n=o.data,n==="/$"){if(r===0){e.removeChild(o),oo(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=o}while(n);oo(t)}function nn(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 uc(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 gr=Math.random().toString(36).slice(2),Ct="__reactFiber$"+gr,ao="__reactProps$"+gr,Ot="__reactContainer$"+gr,Vu="__reactEvents$"+gr,J0="__reactListeners$"+gr,em="__reactHandles$"+gr;function wn(e){var t=e[Ct];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Ot]||n[Ct]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=uc(e);e!==null;){if(n=e[Ct])return n;e=uc(e)}return t}e=n,n=e.parentNode}return null}function wo(e){return e=e[Ct]||e[Ot],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function Hn(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(T(33))}function Ql(e){return e[ao]||null}var zu=[],bn=-1;function dn(e){return{current:e}}function ce(e){0>bn||(e.current=zu[bn],zu[bn]=null,bn--)}function ue(e,t){bn++,zu[bn]=e.current,e.current=t}var an={},Oe=dn(an),Ke=dn(!1),Tn=an;function lr(e,t){var n=e.type.contextTypes;if(!n)return an;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o={},l;for(l in n)o[l]=t[l];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function Ge(e){return e=e.childContextTypes,e!=null}function El(){ce(Ke),ce(Oe)}function sc(e,t,n){if(Oe.current!==an)throw Error(T(168));ue(Oe,t),ue(Ke,n)}function yd(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var o in r)if(!(o in t))throw Error(T(108,Ov(e)||"Unknown",o));return we({},n,r)}function kl(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||an,Tn=Oe.current,ue(Oe,e),ue(Ke,Ke.current),!0}function ac(e,t,n){var r=e.stateNode;if(!r)throw Error(T(169));n?(e=yd(e,t,Tn),r.__reactInternalMemoizedMergedChildContext=e,ce(Ke),ce(Oe),ue(Oe,e)):ce(Ke),ue(Ke,n)}var $t=null,Zl=!1,bi=!1;function gd(e){$t===null?$t=[e]:$t.push(e)}function tm(e){Zl=!0,gd(e)}function pn(){if(!bi&&$t!==null){bi=!0;var e=0,t=re;try{var n=$t;for(re=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}$t=null,Zl=!1}catch(o){throw $t!==null&&($t=$t.slice(e+1)),Wf(Es,pn),o}finally{re=t,bi=!1}}return null}var Kn=[],Gn=0,Tl=null,Cl=0,st=[],at=0,Cn=null,It=1,Vt="";function yn(e,t){Kn[Gn++]=Cl,Kn[Gn++]=Tl,Tl=e,Cl=t}function Sd(e,t,n){st[at++]=It,st[at++]=Vt,st[at++]=Cn,Cn=e;var r=It;e=Vt;var o=32-_t(r)-1;r&=~(1<<o),n+=1;var l=32-_t(t)+o;if(30<l){var i=o-o%5;l=(r&(1<<i)-1).toString(32),r>>=i,o-=i,It=1<<32-_t(t)+o|n<<o|r,Vt=l+e}else It=1<<l|n<<o|r,Vt=e}function Ps(e){e.return!==null&&(yn(e,1),Sd(e,1,0))}function $s(e){for(;e===Tl;)Tl=Kn[--Gn],Kn[Gn]=null,Cl=Kn[--Gn],Kn[Gn]=null;for(;e===Cn;)Cn=st[--at],st[at]=null,Vt=st[--at],st[at]=null,It=st[--at],st[at]=null}var tt=null,et=null,he=!1,wt=null;function wd(e,t){var n=ct(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 cc(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,tt=e,et=nn(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,tt=e,et=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(n=Cn!==null?{id:It,overflow:Vt}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=ct(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,tt=e,et=null,!0):!1;default:return!1}}function Du(e){return(e.mode&1)!==0&&(e.flags&128)===0}function Ou(e){if(he){var t=et;if(t){var n=t;if(!cc(e,t)){if(Du(e))throw Error(T(418));t=nn(n.nextSibling);var r=tt;t&&cc(e,t)?wd(r,n):(e.flags=e.flags&-4097|2,he=!1,tt=e)}}else{if(Du(e))throw Error(T(418));e.flags=e.flags&-4097|2,he=!1,tt=e}}}function fc(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;tt=e}function Ho(e){if(e!==tt)return!1;if(!he)return fc(e),he=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!$u(e.type,e.memoizedProps)),t&&(t=et)){if(Du(e))throw _d(),Error(T(418));for(;t;)wd(e,t),t=nn(t.nextSibling)}if(fc(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(T(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"){if(t===0){et=nn(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++}e=e.nextSibling}et=null}}else et=tt?nn(e.stateNode.nextSibling):null;return!0}function _d(){for(var e=et;e;)e=nn(e.nextSibling)}function ir(){et=tt=null,he=!1}function Is(e){wt===null?wt=[e]:wt.push(e)}var nm=Bt.ReactCurrentBatchConfig;function gt(e,t){if(e&&e.defaultProps){t=we({},t),e=e.defaultProps;for(var n in e)t[n]===void 0&&(t[n]=e[n]);return t}return t}var Nl=dn(null),Ll=null,Qn=null,Vs=null;function zs(){Vs=Qn=Ll=null}function Ds(e){var t=Nl.current;ce(Nl),e._currentValue=t}function Uu(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){Ll=e,Vs=Qn=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(be=!0),e.firstContext=null)}function dt(e){var t=e._currentValue;if(Vs!==e)if(e={context:e,memoizedValue:t,next:null},Qn===null){if(Ll===null)throw Error(T(308));Qn=e,Ll.dependencies={lanes:0,firstContext:e}}else Qn=Qn.next=e;return t}var _n=null;function Os(e){_n===null?_n=[e]:_n.push(e)}function Rd(e,t,n,r){var o=t.interleaved;return o===null?(n.next=n,Os(t)):(n.next=o.next,o.next=n),t.interleaved=n,Ut(e,r)}function Ut(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 bt=!1;function Us(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Ed(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 zt(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function rn(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,ne&2){var o=r.pending;return o===null?t.next=t:(t.next=o.next,o.next=t),r.pending=t,Ut(e,n)}return o=r.interleaved,o===null?(t.next=t,Os(r)):(t.next=o.next,o.next=t),r.interleaved=t,Ut(e,n)}function il(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,ks(e,n)}}function dc(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var o=null,l=null;if(n=n.firstBaseUpdate,n!==null){do{var i={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};l===null?o=l=i:l=l.next=i,n=n.next}while(n!==null);l===null?o=l=t:l=l.next=t}else o=l=t;n={baseState:r.baseState,firstBaseUpdate:o,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 Al(e,t,n,r){var o=e.updateQueue;bt=!1;var l=o.firstBaseUpdate,i=o.lastBaseUpdate,u=o.shared.pending;if(u!==null){o.shared.pending=null;var s=u,a=s.next;s.next=null,i===null?l=a:i.next=a,i=s;var d=e.alternate;d!==null&&(d=d.updateQueue,u=d.lastBaseUpdate,u!==i&&(u===null?d.firstBaseUpdate=a:u.next=a,d.lastBaseUpdate=s))}if(l!==null){var f=o.baseState;i=0,d=a=s=null,u=l;do{var m=u.lane,_=u.eventTime;if((r&m)===m){d!==null&&(d=d.next={eventTime:_,lane:0,tag:u.tag,payload:u.payload,callback:u.callback,next:null});e:{var S=e,R=u;switch(m=t,_=n,R.tag){case 1:if(S=R.payload,typeof S=="function"){f=S.call(_,f,m);break e}f=S;break e;case 3:S.flags=S.flags&-65537|128;case 0:if(S=R.payload,m=typeof S=="function"?S.call(_,f,m):S,m==null)break e;f=we({},f,m);break e;case 2:bt=!0}}u.callback!==null&&u.lane!==0&&(e.flags|=64,m=o.effects,m===null?o.effects=[u]:m.push(u))}else _={eventTime:_,lane:m,tag:u.tag,payload:u.payload,callback:u.callback,next:null},d===null?(a=d=_,s=f):d=d.next=_,i|=m;if(u=u.next,u===null){if(u=o.shared.pending,u===null)break;m=u,u=m.next,m.next=null,o.lastBaseUpdate=m,o.shared.pending=null}}while(!0);if(d===null&&(s=f),o.baseState=s,o.firstBaseUpdate=a,o.lastBaseUpdate=d,t=o.shared.interleaved,t!==null){o=t;do i|=o.lane,o=o.next;while(o!==t)}else l===null&&(o.shared.lanes=0);Ln|=i,e.lanes=i,e.memoizedState=f}}function pc(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var r=e[t],o=r.callback;if(o!==null){if(r.callback=null,r=n,typeof o!="function")throw Error(T(191,o));o.call(r)}}}var kd=new Rf.Component().refs;function Fu(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:we({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var Yl={isMounted:function(e){return(e=e._reactInternals)?$n(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=Fe(),o=ln(e),l=zt(r,o);l.payload=t,n!=null&&(l.callback=n),t=rn(e,l,o),t!==null&&(Rt(t,e,o,r),il(t,e,o))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=Fe(),o=ln(e),l=zt(r,o);l.tag=1,l.payload=t,n!=null&&(l.callback=n),t=rn(e,l,o),t!==null&&(Rt(t,e,o,r),il(t,e,o))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=Fe(),r=ln(e),o=zt(n,r);o.tag=2,t!=null&&(o.callback=t),t=rn(e,o,r),t!==null&&(Rt(t,e,r,n),il(t,e,r))}};function hc(e,t,n,r,o,l,i){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(r,l,i):t.prototype&&t.prototype.isPureReactComponent?!io(n,r)||!io(o,l):!0}function Td(e,t,n){var r=!1,o=an,l=t.contextType;return typeof l=="object"&&l!==null?l=dt(l):(o=Ge(t)?Tn:Oe.current,r=t.contextTypes,l=(r=r!=null)?lr(e,o):an),t=new t(n,l),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=Yl,e.stateNode=t,t._reactInternals=e,r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=o,e.__reactInternalMemoizedMaskedChildContext=l),t}function vc(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&&Yl.enqueueReplaceState(t,t.state,null)}function Bu(e,t,n,r){var o=e.stateNode;o.props=n,o.state=e.memoizedState,o.refs=kd,Us(e);var l=t.contextType;typeof l=="object"&&l!==null?o.context=dt(l):(l=Ge(t)?Tn:Oe.current,o.context=lr(e,l)),o.state=e.memoizedState,l=t.getDerivedStateFromProps,typeof l=="function"&&(Fu(e,t,l,n),o.state=e.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof o.getSnapshotBeforeUpdate=="function"||typeof o.UNSAFE_componentWillMount!="function"&&typeof o.componentWillMount!="function"||(t=o.state,typeof o.componentWillMount=="function"&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount=="function"&&o.UNSAFE_componentWillMount(),t!==o.state&&Yl.enqueueReplaceState(o,o.state,null),Al(e,n,o,r),o.state=e.memoizedState),typeof o.componentDidMount=="function"&&(e.flags|=4194308)}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(T(309));var r=n.stateNode}if(!r)throw Error(T(147,e));var o=r,l=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===l?t.ref:(t=function(i){var u=o.refs;u===kd&&(u=o.refs={}),i===null?delete u[l]:u[l]=i},t._stringRef=l,t)}if(typeof e!="string")throw Error(T(284));if(!n._owner)throw Error(T(290,e))}return e}function bo(e,t){throw e=Object.prototype.toString.call(t),Error(T(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function mc(e){var t=e._init;return t(e._payload)}function Cd(e){function t(h,c){if(e){var p=h.deletions;p===null?(h.deletions=[c],h.flags|=16):p.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 o(h,c){return h=un(h,c),h.index=0,h.sibling=null,h}function l(h,c,p){return h.index=p,e?(p=h.alternate,p!==null?(p=p.index,p<c?(h.flags|=2,c):p):(h.flags|=2,c)):(h.flags|=1048576,c)}function i(h){return e&&h.alternate===null&&(h.flags|=2),h}function u(h,c,p,w){return c===null||c.tag!==6?(c=qi(p,h.mode,w),c.return=h,c):(c=o(c,p),c.return=h,c)}function s(h,c,p,w){var E=p.type;return E===Fn?d(h,c,p.props.children,w,p.key):c!==null&&(c.elementType===E||typeof E=="object"&&E!==null&&E.$$typeof===Ht&&mc(E)===c.type)?(w=o(c,p.props),w.ref=Lr(h,c,p),w.return=h,w):(w=dl(p.type,p.key,p.props,null,h.mode,w),w.ref=Lr(h,c,p),w.return=h,w)}function a(h,c,p,w){return c===null||c.tag!==4||c.stateNode.containerInfo!==p.containerInfo||c.stateNode.implementation!==p.implementation?(c=Ji(p,h.mode,w),c.return=h,c):(c=o(c,p.children||[]),c.return=h,c)}function d(h,c,p,w,E){return c===null||c.tag!==7?(c=kn(p,h.mode,w,E),c.return=h,c):(c=o(c,p),c.return=h,c)}function f(h,c,p){if(typeof c=="string"&&c!==""||typeof c=="number")return c=qi(""+c,h.mode,p),c.return=h,c;if(typeof c=="object"&&c!==null){switch(c.$$typeof){case Io:return p=dl(c.type,c.key,c.props,null,h.mode,p),p.ref=Lr(h,null,c),p.return=h,p;case Un:return c=Ji(c,h.mode,p),c.return=h,c;case Ht:var w=c._init;return f(h,w(c._payload),p)}if(Dr(c)||Er(c))return c=kn(c,h.mode,p,null),c.return=h,c;bo(h,c)}return null}function m(h,c,p,w){var E=c!==null?c.key:null;if(typeof p=="string"&&p!==""||typeof p=="number")return E!==null?null:u(h,c,""+p,w);if(typeof p=="object"&&p!==null){switch(p.$$typeof){case Io:return p.key===E?s(h,c,p,w):null;case Un:return p.key===E?a(h,c,p,w):null;case Ht:return E=p._init,m(h,c,E(p._payload),w)}if(Dr(p)||Er(p))return E!==null?null:d(h,c,p,w,null);bo(h,p)}return null}function _(h,c,p,w,E){if(typeof w=="string"&&w!==""||typeof w=="number")return h=h.get(p)||null,u(c,h,""+w,E);if(typeof w=="object"&&w!==null){switch(w.$$typeof){case Io:return h=h.get(w.key===null?p:w.key)||null,s(c,h,w,E);case Un:return h=h.get(w.key===null?p:w.key)||null,a(c,h,w,E);case Ht:var L=w._init;return _(h,c,p,L(w._payload),E)}if(Dr(w)||Er(w))return h=h.get(p)||null,d(c,h,w,E,null);bo(c,w)}return null}function S(h,c,p,w){for(var E=null,L=null,N=c,V=c=0,te=null;N!==null&&V<p.length;V++){N.index>V?(te=N,N=null):te=N.sibling;var U=m(h,N,p[V],w);if(U===null){N===null&&(N=te);break}e&&N&&U.alternate===null&&t(h,N),c=l(U,c,V),L===null?E=U:L.sibling=U,L=U,N=te}if(V===p.length)return n(h,N),he&&yn(h,V),E;if(N===null){for(;V<p.length;V++)N=f(h,p[V],w),N!==null&&(c=l(N,c,V),L===null?E=N:L.sibling=N,L=N);return he&&yn(h,V),E}for(N=r(h,N);V<p.length;V++)te=_(N,h,V,p[V],w),te!==null&&(e&&te.alternate!==null&&N.delete(te.key===null?V:te.key),c=l(te,c,V),L===null?E=te:L.sibling=te,L=te);return e&&N.forEach(function(fe){return t(h,fe)}),he&&yn(h,V),E}function R(h,c,p,w){var E=Er(p);if(typeof E!="function")throw Error(T(150));if(p=E.call(p),p==null)throw Error(T(151));for(var L=E=null,N=c,V=c=0,te=null,U=p.next();N!==null&&!U.done;V++,U=p.next()){N.index>V?(te=N,N=null):te=N.sibling;var fe=m(h,N,U.value,w);if(fe===null){N===null&&(N=te);break}e&&N&&fe.alternate===null&&t(h,N),c=l(fe,c,V),L===null?E=fe:L.sibling=fe,L=fe,N=te}if(U.done)return n(h,N),he&&yn(h,V),E;if(N===null){for(;!U.done;V++,U=p.next())U=f(h,U.value,w),U!==null&&(c=l(U,c,V),L===null?E=U:L.sibling=U,L=U);return he&&yn(h,V),E}for(N=r(h,N);!U.done;V++,U=p.next())U=_(N,h,V,U.value,w),U!==null&&(e&&U.alternate!==null&&N.delete(U.key===null?V:U.key),c=l(U,c,V),L===null?E=U:L.sibling=U,L=U);return e&&N.forEach(function(lt){return t(h,lt)}),he&&yn(h,V),E}function F(h,c,p,w){if(typeof p=="object"&&p!==null&&p.type===Fn&&p.key===null&&(p=p.props.children),typeof p=="object"&&p!==null){switch(p.$$typeof){case Io:e:{for(var E=p.key,L=c;L!==null;){if(L.key===E){if(E=p.type,E===Fn){if(L.tag===7){n(h,L.sibling),c=o(L,p.props.children),c.return=h,h=c;break e}}else if(L.elementType===E||typeof E=="object"&&E!==null&&E.$$typeof===Ht&&mc(E)===L.type){n(h,L.sibling),c=o(L,p.props),c.ref=Lr(h,L,p),c.return=h,h=c;break e}n(h,L);break}else t(h,L);L=L.sibling}p.type===Fn?(c=kn(p.props.children,h.mode,w,p.key),c.return=h,h=c):(w=dl(p.type,p.key,p.props,null,h.mode,w),w.ref=Lr(h,c,p),w.return=h,h=w)}return i(h);case Un:e:{for(L=p.key;c!==null;){if(c.key===L)if(c.tag===4&&c.stateNode.containerInfo===p.containerInfo&&c.stateNode.implementation===p.implementation){n(h,c.sibling),c=o(c,p.children||[]),c.return=h,h=c;break e}else{n(h,c);break}else t(h,c);c=c.sibling}c=Ji(p,h.mode,w),c.return=h,h=c}return i(h);case Ht:return L=p._init,F(h,c,L(p._payload),w)}if(Dr(p))return S(h,c,p,w);if(Er(p))return R(h,c,p,w);bo(h,p)}return typeof p=="string"&&p!==""||typeof p=="number"?(p=""+p,c!==null&&c.tag===6?(n(h,c.sibling),c=o(c,p),c.return=h,h=c):(n(h,c),c=qi(p,h.mode,w),c.return=h,h=c),i(h)):n(h,c)}return F}var ur=Cd(!0),Nd=Cd(!1),_o={},Lt=dn(_o),co=dn(_o),fo=dn(_o);function Rn(e){if(e===_o)throw Error(T(174));return e}function Fs(e,t){switch(ue(fo,t),ue(co,e),ue(Lt,_o),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Su(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=Su(t,e)}ce(Lt),ue(Lt,t)}function sr(){ce(Lt),ce(co),ce(fo)}function Ld(e){Rn(fo.current);var t=Rn(Lt.current),n=Su(t,e.type);t!==n&&(ue(co,e),ue(Lt,n))}function Bs(e){co.current===e&&(ce(Lt),ce(co))}var ge=dn(0);function xl(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 Ki=[];function js(){for(var e=0;e<Ki.length;e++)Ki[e]._workInProgressVersionPrimary=null;Ki.length=0}var ul=Bt.ReactCurrentDispatcher,Gi=Bt.ReactCurrentBatchConfig,Nn=0,Se=null,Te=null,Le=null,Ml=!1,Kr=!1,po=0,rm=0;function Ve(){throw Error(T(321))}function Ws(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Et(e[n],t[n]))return!1;return!0}function Hs(e,t,n,r,o,l){if(Nn=l,Se=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,ul.current=e===null||e.memoizedState===null?um:sm,e=n(r,o),Kr){l=0;do{if(Kr=!1,po=0,25<=l)throw Error(T(301));l+=1,Le=Te=null,t.updateQueue=null,ul.current=am,e=n(r,o)}while(Kr)}if(ul.current=Pl,t=Te!==null&&Te.next!==null,Nn=0,Le=Te=Se=null,Ml=!1,t)throw Error(T(300));return e}function bs(){var e=po!==0;return po=0,e}function Tt(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Le===null?Se.memoizedState=Le=e:Le=Le.next=e,Le}function pt(){if(Te===null){var e=Se.alternate;e=e!==null?e.memoizedState:null}else e=Te.next;var t=Le===null?Se.memoizedState:Le.next;if(t!==null)Le=t,Te=e;else{if(e===null)throw Error(T(310));Te=e,e={memoizedState:Te.memoizedState,baseState:Te.baseState,baseQueue:Te.baseQueue,queue:Te.queue,next:null},Le===null?Se.memoizedState=Le=e:Le=Le.next=e}return Le}function ho(e,t){return typeof t=="function"?t(e):t}function Qi(e){var t=pt(),n=t.queue;if(n===null)throw Error(T(311));n.lastRenderedReducer=e;var r=Te,o=r.baseQueue,l=n.pending;if(l!==null){if(o!==null){var i=o.next;o.next=l.next,l.next=i}r.baseQueue=o=l,n.pending=null}if(o!==null){l=o.next,r=r.baseState;var u=i=null,s=null,a=l;do{var d=a.lane;if((Nn&d)===d)s!==null&&(s=s.next={lane:0,action:a.action,hasEagerState:a.hasEagerState,eagerState:a.eagerState,next:null}),r=a.hasEagerState?a.eagerState:e(r,a.action);else{var f={lane:d,action:a.action,hasEagerState:a.hasEagerState,eagerState:a.eagerState,next:null};s===null?(u=s=f,i=r):s=s.next=f,Se.lanes|=d,Ln|=d}a=a.next}while(a!==null&&a!==l);s===null?i=r:s.next=u,Et(r,t.memoizedState)||(be=!0),t.memoizedState=r,t.baseState=i,t.baseQueue=s,n.lastRenderedState=r}if(e=n.interleaved,e!==null){o=e;do l=o.lane,Se.lanes|=l,Ln|=l,o=o.next;while(o!==e)}else o===null&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function Zi(e){var t=pt(),n=t.queue;if(n===null)throw Error(T(311));n.lastRenderedReducer=e;var r=n.dispatch,o=n.pending,l=t.memoizedState;if(o!==null){n.pending=null;var i=o=o.next;do l=e(l,i.action),i=i.next;while(i!==o);Et(l,t.memoizedState)||(be=!0),t.memoizedState=l,t.baseQueue===null&&(t.baseState=l),n.lastRenderedState=l}return[l,r]}function Ad(){}function xd(e,t){var n=Se,r=pt(),o=t(),l=!Et(r.memoizedState,o);if(l&&(r.memoizedState=o,be=!0),r=r.queue,Ks($d.bind(null,n,r,e),[e]),r.getSnapshot!==t||l||Le!==null&&Le.memoizedState.tag&1){if(n.flags|=2048,vo(9,Pd.bind(null,n,r,o,t),void 0,null),Ae===null)throw Error(T(349));Nn&30||Md(n,t,o)}return o}function Md(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=Se.updateQueue,t===null?(t={lastEffect:null,stores:null},Se.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function Pd(e,t,n,r){t.value=n,t.getSnapshot=r,Id(t)&&Vd(e)}function $d(e,t,n){return n(function(){Id(t)&&Vd(e)})}function Id(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Et(e,n)}catch{return!0}}function Vd(e){var t=Ut(e,1);t!==null&&Rt(t,e,1,-1)}function yc(e){var t=Tt();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:ho,lastRenderedState:e},t.queue=e,e=e.dispatch=im.bind(null,Se,e),[t.memoizedState,e]}function vo(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},t=Se.updateQueue,t===null?(t={lastEffect:null,stores:null},Se.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 zd(){return pt().memoizedState}function sl(e,t,n,r){var o=Tt();Se.flags|=e,o.memoizedState=vo(1|t,n,void 0,r===void 0?null:r)}function Xl(e,t,n,r){var o=pt();r=r===void 0?null:r;var l=void 0;if(Te!==null){var i=Te.memoizedState;if(l=i.destroy,r!==null&&Ws(r,i.deps)){o.memoizedState=vo(t,n,l,r);return}}Se.flags|=e,o.memoizedState=vo(1|t,n,l,r)}function gc(e,t){return sl(8390656,8,e,t)}function Ks(e,t){return Xl(2048,8,e,t)}function Dd(e,t){return Xl(4,2,e,t)}function Od(e,t){return Xl(4,4,e,t)}function Ud(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 Fd(e,t,n){return n=n!=null?n.concat([e]):null,Xl(4,4,Ud.bind(null,t,e),n)}function Gs(){}function Bd(e,t){var n=pt();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&Ws(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function jd(e,t){var n=pt();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&Ws(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function Wd(e,t,n){return Nn&21?(Et(n,t)||(n=Kf(),Se.lanes|=n,Ln|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,be=!0),e.memoizedState=n)}function om(e,t){var n=re;re=n!==0&&4>n?n:4,e(!0);var r=Gi.transition;Gi.transition={};try{e(!1),t()}finally{re=n,Gi.transition=r}}function Hd(){return pt().memoizedState}function lm(e,t,n){var r=ln(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},bd(e))Kd(t,n);else if(n=Rd(e,t,n,r),n!==null){var o=Fe();Rt(n,e,r,o),Gd(n,t,r)}}function im(e,t,n){var r=ln(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(bd(e))Kd(t,o);else{var l=e.alternate;if(e.lanes===0&&(l===null||l.lanes===0)&&(l=t.lastRenderedReducer,l!==null))try{var i=t.lastRenderedState,u=l(i,n);if(o.hasEagerState=!0,o.eagerState=u,Et(u,i)){var s=t.interleaved;s===null?(o.next=o,Os(t)):(o.next=s.next,s.next=o),t.interleaved=o;return}}catch{}finally{}n=Rd(e,t,o,r),n!==null&&(o=Fe(),Rt(n,e,r,o),Gd(n,t,r))}}function bd(e){var t=e.alternate;return e===Se||t!==null&&t===Se}function Kd(e,t){Kr=Ml=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Gd(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,ks(e,n)}}var Pl={readContext:dt,useCallback:Ve,useContext:Ve,useEffect:Ve,useImperativeHandle:Ve,useInsertionEffect:Ve,useLayoutEffect:Ve,useMemo:Ve,useReducer:Ve,useRef:Ve,useState:Ve,useDebugValue:Ve,useDeferredValue:Ve,useTransition:Ve,useMutableSource:Ve,useSyncExternalStore:Ve,useId:Ve,unstable_isNewReconciler:!1},um={readContext:dt,useCallback:function(e,t){return Tt().memoizedState=[e,t===void 0?null:t],e},useContext:dt,useEffect:gc,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,sl(4194308,4,Ud.bind(null,t,e),n)},useLayoutEffect:function(e,t){return sl(4194308,4,e,t)},useInsertionEffect:function(e,t){return sl(4,2,e,t)},useMemo:function(e,t){var n=Tt();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Tt();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=lm.bind(null,Se,e),[r.memoizedState,e]},useRef:function(e){var t=Tt();return e={current:e},t.memoizedState=e},useState:yc,useDebugValue:Gs,useDeferredValue:function(e){return Tt().memoizedState=e},useTransition:function(){var e=yc(!1),t=e[0];return e=om.bind(null,e[1]),Tt().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=Se,o=Tt();if(he){if(n===void 0)throw Error(T(407));n=n()}else{if(n=t(),Ae===null)throw Error(T(349));Nn&30||Md(r,t,n)}o.memoizedState=n;var l={value:n,getSnapshot:t};return o.queue=l,gc($d.bind(null,r,l,e),[e]),r.flags|=2048,vo(9,Pd.bind(null,r,l,n,t),void 0,null),n},useId:function(){var e=Tt(),t=Ae.identifierPrefix;if(he){var n=Vt,r=It;n=(r&~(1<<32-_t(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=po++,0<n&&(t+="H"+n.toString(32)),t+=":"}else n=rm++,t=":"+t+"r"+n.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},sm={readContext:dt,useCallback:Bd,useContext:dt,useEffect:Ks,useImperativeHandle:Fd,useInsertionEffect:Dd,useLayoutEffect:Od,useMemo:jd,useReducer:Qi,useRef:zd,useState:function(){return Qi(ho)},useDebugValue:Gs,useDeferredValue:function(e){var t=pt();return Wd(t,Te.memoizedState,e)},useTransition:function(){var e=Qi(ho)[0],t=pt().memoizedState;return[e,t]},useMutableSource:Ad,useSyncExternalStore:xd,useId:Hd,unstable_isNewReconciler:!1},am={readContext:dt,useCallback:Bd,useContext:dt,useEffect:Ks,useImperativeHandle:Fd,useInsertionEffect:Dd,useLayoutEffect:Od,useMemo:jd,useReducer:Zi,useRef:zd,useState:function(){return Zi(ho)},useDebugValue:Gs,useDeferredValue:function(e){var t=pt();return Te===null?t.memoizedState=e:Wd(t,Te.memoizedState,e)},useTransition:function(){var e=Zi(ho)[0],t=pt().memoizedState;return[e,t]},useMutableSource:Ad,useSyncExternalStore:xd,useId:Hd,unstable_isNewReconciler:!1};function ar(e,t){try{var n="",r=t;do n+=Dv(r),r=r.return;while(r);var o=n}catch(l){o=` +`+o[i].replace(" at new "," at ");return e.displayName&&s.includes("<anonymous>")&&(s=s.replace("<anonymous>",e.displayName)),s}while(1<=i&&0<=u);break}}}finally{xi=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?zr(e):""}function Dv(e){switch(e.tag){case 5:return zr(e.type);case 16:return zr("Lazy");case 13:return zr("Suspense");case 19:return zr("SuspenseList");case 0:case 2:case 15:return e=Mi(e.type,!1),e;case 11:return e=Mi(e.type.render,!1),e;case 1:return e=Mi(e.type,!0),e;default:return""}}function hu(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 Fn:return"Fragment";case Un:return"Portal";case fu:return"Profiler";case Ss:return"StrictMode";case du:return"Suspense";case pu:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Tf:return(e.displayName||"Context")+".Consumer";case kf:return(e._context.displayName||"Context")+".Provider";case ws:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case _s:return t=e.displayName||null,t!==null?t:hu(e.type)||"Memo";case Ht:t=e._payload,e=e._init;try{return hu(e(t))}catch{}}return null}function Ov(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 hu(t);case 8:return t===Ss?"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 sn(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Nf(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Uv(e){var t=Nf(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 o=n.get,l=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(i){r=""+i,l.call(this,i)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(i){r=""+i},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Vo(e){e._valueTracker||(e._valueTracker=Uv(e))}function Lf(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=Nf(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function hl(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 vu(e,t){var n=t.checked;return we({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Va(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=sn(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 Af(e,t){t=t.checked,t!=null&&gs(e,"checked",t,!1)}function mu(e,t){Af(e,t);var n=sn(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")?yu(e,t.type,n):t.hasOwnProperty("defaultValue")&&yu(e,t.type,sn(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function za(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 yu(e,t,n){(t!=="number"||hl(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Dr=Array.isArray;function Xn(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o<n.length;o++)t["$"+n[o]]=!0;for(n=0;n<e.length;n++)o=t.hasOwnProperty("$"+e[n].value),e[n].selected!==o&&(e[n].selected=o),o&&r&&(e[n].defaultSelected=!0)}else{for(n=""+sn(n),t=null,o=0;o<e.length;o++){if(e[o].value===n){e[o].selected=!0,r&&(e[o].defaultSelected=!0);return}t!==null||e[o].disabled||(t=e[o])}t!==null&&(t.selected=!0)}}function gu(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(C(91));return we({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function Da(e,t){var n=t.value;if(n==null){if(n=t.children,t=t.defaultValue,n!=null){if(t!=null)throw Error(C(92));if(Dr(n)){if(1<n.length)throw Error(C(93));n=n[0]}t=n}t==null&&(t=""),n=t}e._wrapperState={initialValue:sn(n)}}function xf(e,t){var n=sn(t.value),r=sn(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 Oa(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function Mf(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 Su(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?Mf(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var zo,Pf=function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,n,r,o){MSApp.execUnsafeLocalFunction(function(){return e(t,n,r,o)})}:e}(function(e,t){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=t;else{for(zo=zo||document.createElement("div"),zo.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=zo.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function eo(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Br={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},Fv=["Webkit","ms","Moz","O"];Object.keys(Br).forEach(function(e){Fv.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Br[t]=Br[e]})});function $f(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Br.hasOwnProperty(e)&&Br[e]?(""+t).trim():t+"px"}function If(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,o=$f(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}var Bv=we({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 wu(e,t){if(t){if(Bv[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(C(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(C(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(C(61))}if(t.style!=null&&typeof t.style!="object")throw Error(C(62))}}function _u(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 Ru=null;function Rs(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Eu=null,qn=null,Jn=null;function Ua(e){if(e=wo(e)){if(typeof Eu!="function")throw Error(C(280));var t=e.stateNode;t&&(t=Ql(t),Eu(e.stateNode,e.type,t))}}function Vf(e){qn?Jn?Jn.push(e):Jn=[e]:qn=e}function zf(){if(qn){var e=qn,t=Jn;if(Jn=qn=null,Ua(e),t)for(e=0;e<t.length;e++)Ua(t[e])}}function Df(e,t){return e(t)}function Of(){}var Pi=!1;function Uf(e,t,n){if(Pi)return e(t,n);Pi=!0;try{return Df(e,t,n)}finally{Pi=!1,(qn!==null||Jn!==null)&&(Of(),zf())}}function to(e,t){var n=e.stateNode;if(n===null)return null;var r=Ql(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(C(231,t,typeof n));return n}var ku=!1;if(Dt)try{var kr={};Object.defineProperty(kr,"passive",{get:function(){ku=!0}}),window.addEventListener("test",kr,kr),window.removeEventListener("test",kr,kr)}catch{ku=!1}function jv(e,t,n,r,o,l,i,u,s){var a=Array.prototype.slice.call(arguments,3);try{t.apply(n,a)}catch(d){this.onError(d)}}var jr=!1,vl=null,ml=!1,Tu=null,Wv={onError:function(e){jr=!0,vl=e}};function Hv(e,t,n,r,o,l,i,u,s){jr=!1,vl=null,jv.apply(Wv,arguments)}function bv(e,t,n,r,o,l,i,u,s){if(Hv.apply(this,arguments),jr){if(jr){var a=vl;jr=!1,vl=null}else throw Error(C(198));ml||(ml=!0,Tu=a)}}function $n(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 Ff(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 Fa(e){if($n(e)!==e)throw Error(C(188))}function Kv(e){var t=e.alternate;if(!t){if(t=$n(e),t===null)throw Error(C(188));return t!==e?null:e}for(var n=e,r=t;;){var o=n.return;if(o===null)break;var l=o.alternate;if(l===null){if(r=o.return,r!==null){n=r;continue}break}if(o.child===l.child){for(l=o.child;l;){if(l===n)return Fa(o),e;if(l===r)return Fa(o),t;l=l.sibling}throw Error(C(188))}if(n.return!==r.return)n=o,r=l;else{for(var i=!1,u=o.child;u;){if(u===n){i=!0,n=o,r=l;break}if(u===r){i=!0,r=o,n=l;break}u=u.sibling}if(!i){for(u=l.child;u;){if(u===n){i=!0,n=l,r=o;break}if(u===r){i=!0,r=l,n=o;break}u=u.sibling}if(!i)throw Error(C(189))}}if(n.alternate!==r)throw Error(C(190))}if(n.tag!==3)throw Error(C(188));return n.stateNode.current===n?e:t}function Bf(e){return e=Kv(e),e!==null?jf(e):null}function jf(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=jf(e);if(t!==null)return t;e=e.sibling}return null}var Wf=nt.unstable_scheduleCallback,Ba=nt.unstable_cancelCallback,Gv=nt.unstable_shouldYield,Qv=nt.unstable_requestPaint,Re=nt.unstable_now,Zv=nt.unstable_getCurrentPriorityLevel,Es=nt.unstable_ImmediatePriority,Hf=nt.unstable_UserBlockingPriority,yl=nt.unstable_NormalPriority,Yv=nt.unstable_LowPriority,bf=nt.unstable_IdlePriority,Hl=null,Nt=null;function Xv(e){if(Nt&&typeof Nt.onCommitFiberRoot=="function")try{Nt.onCommitFiberRoot(Hl,e,void 0,(e.current.flags&128)===128)}catch{}}var _t=Math.clz32?Math.clz32:e0,qv=Math.log,Jv=Math.LN2;function e0(e){return e>>>=0,e===0?32:31-(qv(e)/Jv|0)|0}var Do=64,Oo=4194304;function Or(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 gl(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,o=e.suspendedLanes,l=e.pingedLanes,i=n&268435455;if(i!==0){var u=i&~o;u!==0?r=Or(u):(l&=i,l!==0&&(r=Or(l)))}else i=n&~o,i!==0?r=Or(i):l!==0&&(r=Or(l));if(r===0)return 0;if(t!==0&&t!==r&&!(t&o)&&(o=r&-r,l=t&-t,o>=l||o===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-_t(t),o=1<<n,r|=e[n],t&=~o;return r}function t0(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 n0(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,o=e.expirationTimes,l=e.pendingLanes;0<l;){var i=31-_t(l),u=1<<i,s=o[i];s===-1?(!(u&n)||u&r)&&(o[i]=t0(u,t)):s<=t&&(e.expiredLanes|=u),l&=~u}}function Cu(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function Kf(){var e=Do;return Do<<=1,!(Do&4194240)&&(Do=64),e}function $i(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function go(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-_t(t),e[t]=n}function r0(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 o=31-_t(n),l=1<<o;t[o]=0,r[o]=-1,e[o]=-1,n&=~l}}function ks(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-_t(n),o=1<<r;o&t|e[r]&t&&(e[r]|=t),n&=~o}}var re=0;function Gf(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var Qf,Ts,Zf,Yf,Xf,Nu=!1,Uo=[],Jt=null,en=null,tn=null,no=new Map,ro=new Map,Gt=[],o0="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 ja(e,t){switch(e){case"focusin":case"focusout":Jt=null;break;case"dragenter":case"dragleave":en=null;break;case"mouseover":case"mouseout":tn=null;break;case"pointerover":case"pointerout":no.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":ro.delete(t.pointerId)}}function Tr(e,t,n,r,o,l){return e===null||e.nativeEvent!==l?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:l,targetContainers:[o]},t!==null&&(t=wo(t),t!==null&&Ts(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,o!==null&&t.indexOf(o)===-1&&t.push(o),e)}function l0(e,t,n,r,o){switch(t){case"focusin":return Jt=Tr(Jt,e,t,n,r,o),!0;case"dragenter":return en=Tr(en,e,t,n,r,o),!0;case"mouseover":return tn=Tr(tn,e,t,n,r,o),!0;case"pointerover":var l=o.pointerId;return no.set(l,Tr(no.get(l)||null,e,t,n,r,o)),!0;case"gotpointercapture":return l=o.pointerId,ro.set(l,Tr(ro.get(l)||null,e,t,n,r,o)),!0}return!1}function qf(e){var t=wn(e.target);if(t!==null){var n=$n(t);if(n!==null){if(t=n.tag,t===13){if(t=Ff(n),t!==null){e.blockedOn=t,Xf(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 rl(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=Lu(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);Ru=r,n.target.dispatchEvent(r),Ru=null}else return t=wo(n),t!==null&&Ts(t),e.blockedOn=n,!1;t.shift()}return!0}function Wa(e,t,n){rl(e)&&n.delete(t)}function i0(){Nu=!1,Jt!==null&&rl(Jt)&&(Jt=null),en!==null&&rl(en)&&(en=null),tn!==null&&rl(tn)&&(tn=null),no.forEach(Wa),ro.forEach(Wa)}function Cr(e,t){e.blockedOn===t&&(e.blockedOn=null,Nu||(Nu=!0,nt.unstable_scheduleCallback(nt.unstable_NormalPriority,i0)))}function oo(e){function t(o){return Cr(o,e)}if(0<Uo.length){Cr(Uo[0],e);for(var n=1;n<Uo.length;n++){var r=Uo[n];r.blockedOn===e&&(r.blockedOn=null)}}for(Jt!==null&&Cr(Jt,e),en!==null&&Cr(en,e),tn!==null&&Cr(tn,e),no.forEach(t),ro.forEach(t),n=0;n<Gt.length;n++)r=Gt[n],r.blockedOn===e&&(r.blockedOn=null);for(;0<Gt.length&&(n=Gt[0],n.blockedOn===null);)qf(n),n.blockedOn===null&&Gt.shift()}var er=Bt.ReactCurrentBatchConfig,Sl=!0;function u0(e,t,n,r){var o=re,l=er.transition;er.transition=null;try{re=1,Cs(e,t,n,r)}finally{re=o,er.transition=l}}function s0(e,t,n,r){var o=re,l=er.transition;er.transition=null;try{re=4,Cs(e,t,n,r)}finally{re=o,er.transition=l}}function Cs(e,t,n,r){if(Sl){var o=Lu(e,t,n,r);if(o===null)Wi(e,t,r,wl,n),ja(e,r);else if(l0(o,e,t,n,r))r.stopPropagation();else if(ja(e,r),t&4&&-1<o0.indexOf(e)){for(;o!==null;){var l=wo(o);if(l!==null&&Qf(l),l=Lu(e,t,n,r),l===null&&Wi(e,t,r,wl,n),l===o)break;o=l}o!==null&&r.stopPropagation()}else Wi(e,t,r,null,n)}}var wl=null;function Lu(e,t,n,r){if(wl=null,e=Rs(r),e=wn(e),e!==null)if(t=$n(e),t===null)e=null;else if(n=t.tag,n===13){if(e=Ff(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 wl=e,null}function Jf(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(Zv()){case Es:return 1;case Hf:return 4;case yl:case Yv:return 16;case bf:return 536870912;default:return 16}default:return 16}}var Zt=null,Ns=null,ol=null;function ed(){if(ol)return ol;var e,t=Ns,n=t.length,r,o="value"in Zt?Zt.value:Zt.textContent,l=o.length;for(e=0;e<n&&t[e]===o[e];e++);var i=n-e;for(r=1;r<=i&&t[n-r]===o[l-r];r++);return ol=o.slice(e,1<r?1-r:void 0)}function ll(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 Fo(){return!0}function Ha(){return!1}function ot(e){function t(n,r,o,l,i){this._reactName=n,this._targetInst=o,this.type=r,this.nativeEvent=l,this.target=i,this.currentTarget=null;for(var u in e)e.hasOwnProperty(u)&&(n=e[u],this[u]=n?n(l):l[u]);return this.isDefaultPrevented=(l.defaultPrevented!=null?l.defaultPrevented:l.returnValue===!1)?Fo:Ha,this.isPropagationStopped=Ha,this}return we(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=Fo)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=Fo)},persist:function(){},isPersistent:Fo}),t}var yr={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Ls=ot(yr),So=we({},yr,{view:0,detail:0}),a0=ot(So),Ii,Vi,Nr,bl=we({},So,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:As,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!==Nr&&(Nr&&e.type==="mousemove"?(Ii=e.screenX-Nr.screenX,Vi=e.screenY-Nr.screenY):Vi=Ii=0,Nr=e),Ii)},movementY:function(e){return"movementY"in e?e.movementY:Vi}}),ba=ot(bl),c0=we({},bl,{dataTransfer:0}),f0=ot(c0),d0=we({},So,{relatedTarget:0}),zi=ot(d0),p0=we({},yr,{animationName:0,elapsedTime:0,pseudoElement:0}),h0=ot(p0),v0=we({},yr,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),m0=ot(v0),y0=we({},yr,{data:0}),Ka=ot(y0),g0={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},S0={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"},w0={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function _0(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=w0[e])?!!t[e]:!1}function As(){return _0}var R0=we({},So,{key:function(e){if(e.key){var t=g0[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=ll(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?S0[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:As,charCode:function(e){return e.type==="keypress"?ll(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?ll(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),E0=ot(R0),k0=we({},bl,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Ga=ot(k0),T0=we({},So,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:As}),C0=ot(T0),N0=we({},yr,{propertyName:0,elapsedTime:0,pseudoElement:0}),L0=ot(N0),A0=we({},bl,{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}),x0=ot(A0),M0=[9,13,27,32],xs=Dt&&"CompositionEvent"in window,Wr=null;Dt&&"documentMode"in document&&(Wr=document.documentMode);var P0=Dt&&"TextEvent"in window&&!Wr,td=Dt&&(!xs||Wr&&8<Wr&&11>=Wr),Qa=" ",Za=!1;function nd(e,t){switch(e){case"keyup":return M0.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function rd(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Bn=!1;function $0(e,t){switch(e){case"compositionend":return rd(t);case"keypress":return t.which!==32?null:(Za=!0,Qa);case"textInput":return e=t.data,e===Qa&&Za?null:e;default:return null}}function I0(e,t){if(Bn)return e==="compositionend"||!xs&&nd(e,t)?(e=ed(),ol=Ns=Zt=null,Bn=!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 td&&t.locale!=="ko"?null:t.data;default:return null}}var V0={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 Ya(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!V0[e.type]:t==="textarea"}function od(e,t,n,r){Vf(r),t=_l(t,"onChange"),0<t.length&&(n=new Ls("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Hr=null,lo=null;function z0(e){vd(e,0)}function Kl(e){var t=Hn(e);if(Lf(t))return e}function D0(e,t){if(e==="change")return t}var ld=!1;if(Dt){var Di;if(Dt){var Oi="oninput"in document;if(!Oi){var Xa=document.createElement("div");Xa.setAttribute("oninput","return;"),Oi=typeof Xa.oninput=="function"}Di=Oi}else Di=!1;ld=Di&&(!document.documentMode||9<document.documentMode)}function qa(){Hr&&(Hr.detachEvent("onpropertychange",id),lo=Hr=null)}function id(e){if(e.propertyName==="value"&&Kl(lo)){var t=[];od(t,lo,e,Rs(e)),Uf(z0,t)}}function O0(e,t,n){e==="focusin"?(qa(),Hr=t,lo=n,Hr.attachEvent("onpropertychange",id)):e==="focusout"&&qa()}function U0(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Kl(lo)}function F0(e,t){if(e==="click")return Kl(t)}function B0(e,t){if(e==="input"||e==="change")return Kl(t)}function j0(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Et=typeof Object.is=="function"?Object.is:j0;function io(e,t){if(Et(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 o=n[r];if(!cu.call(t,o)||!Et(e[o],t[o]))return!1}return!0}function Ja(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function ec(e,t){var n=Ja(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=Ja(n)}}function ud(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?ud(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function sd(){for(var e=window,t=hl();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=hl(e.document)}return t}function Ms(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 W0(e){var t=sd(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&ud(n.ownerDocument.documentElement,n)){if(r!==null&&Ms(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 o=n.textContent.length,l=Math.min(r.start,o);r=r.end===void 0?l:Math.min(r.end,o),!e.extend&&l>r&&(o=r,r=l,l=o),o=ec(n,l);var i=ec(n,r);o&&i&&(e.rangeCount!==1||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==i.node||e.focusOffset!==i.offset)&&(t=t.createRange(),t.setStart(o.node,o.offset),e.removeAllRanges(),l>r?(e.addRange(t),e.extend(i.node,i.offset)):(t.setEnd(i.node,i.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 H0=Dt&&"documentMode"in document&&11>=document.documentMode,jn=null,Au=null,br=null,xu=!1;function tc(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;xu||jn==null||jn!==hl(r)||(r=jn,"selectionStart"in r&&Ms(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}),br&&io(br,r)||(br=r,r=_l(Au,"onSelect"),0<r.length&&(t=new Ls("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=jn)))}function Bo(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Wn={animationend:Bo("Animation","AnimationEnd"),animationiteration:Bo("Animation","AnimationIteration"),animationstart:Bo("Animation","AnimationStart"),transitionend:Bo("Transition","TransitionEnd")},Ui={},ad={};Dt&&(ad=document.createElement("div").style,"AnimationEvent"in window||(delete Wn.animationend.animation,delete Wn.animationiteration.animation,delete Wn.animationstart.animation),"TransitionEvent"in window||delete Wn.transitionend.transition);function Gl(e){if(Ui[e])return Ui[e];if(!Wn[e])return e;var t=Wn[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in ad)return Ui[e]=t[n];return e}var cd=Gl("animationend"),fd=Gl("animationiteration"),dd=Gl("animationstart"),pd=Gl("transitionend"),hd=new Map,nc="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 fn(e,t){hd.set(e,t),Pn(t,[e])}for(var Fi=0;Fi<nc.length;Fi++){var Bi=nc[Fi],b0=Bi.toLowerCase(),K0=Bi[0].toUpperCase()+Bi.slice(1);fn(b0,"on"+K0)}fn(cd,"onAnimationEnd");fn(fd,"onAnimationIteration");fn(dd,"onAnimationStart");fn("dblclick","onDoubleClick");fn("focusin","onFocus");fn("focusout","onBlur");fn(pd,"onTransitionEnd");or("onMouseEnter",["mouseout","mouseover"]);or("onMouseLeave",["mouseout","mouseover"]);or("onPointerEnter",["pointerout","pointerover"]);or("onPointerLeave",["pointerout","pointerover"]);Pn("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));Pn("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));Pn("onBeforeInput",["compositionend","keypress","textInput","paste"]);Pn("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));Pn("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));Pn("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Ur="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(" "),G0=new Set("cancel close invalid load scroll toggle".split(" ").concat(Ur));function rc(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,bv(r,t,void 0,e),e.currentTarget=null}function vd(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var r=e[n],o=r.event;r=r.listeners;e:{var l=void 0;if(t)for(var i=r.length-1;0<=i;i--){var u=r[i],s=u.instance,a=u.currentTarget;if(u=u.listener,s!==l&&o.isPropagationStopped())break e;rc(o,u,a),l=s}else for(i=0;i<r.length;i++){if(u=r[i],s=u.instance,a=u.currentTarget,u=u.listener,s!==l&&o.isPropagationStopped())break e;rc(o,u,a),l=s}}}if(ml)throw e=Tu,ml=!1,Tu=null,e}function se(e,t){var n=t[Vu];n===void 0&&(n=t[Vu]=new Set);var r=e+"__bubble";n.has(r)||(md(t,e,2,!1),n.add(r))}function ji(e,t,n){var r=0;t&&(r|=4),md(n,e,r,t)}var jo="_reactListening"+Math.random().toString(36).slice(2);function uo(e){if(!e[jo]){e[jo]=!0,Ef.forEach(function(n){n!=="selectionchange"&&(G0.has(n)||ji(n,!1,e),ji(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[jo]||(t[jo]=!0,ji("selectionchange",!1,t))}}function md(e,t,n,r){switch(Jf(t)){case 1:var o=u0;break;case 4:o=s0;break;default:o=Cs}n=o.bind(null,t,n,e),o=void 0,!ku||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(o=!0),r?o!==void 0?e.addEventListener(t,n,{capture:!0,passive:o}):e.addEventListener(t,n,!0):o!==void 0?e.addEventListener(t,n,{passive:o}):e.addEventListener(t,n,!1)}function Wi(e,t,n,r,o){var l=r;if(!(t&1)&&!(t&2)&&r!==null)e:for(;;){if(r===null)return;var i=r.tag;if(i===3||i===4){var u=r.stateNode.containerInfo;if(u===o||u.nodeType===8&&u.parentNode===o)break;if(i===4)for(i=r.return;i!==null;){var s=i.tag;if((s===3||s===4)&&(s=i.stateNode.containerInfo,s===o||s.nodeType===8&&s.parentNode===o))return;i=i.return}for(;u!==null;){if(i=wn(u),i===null)return;if(s=i.tag,s===5||s===6){r=l=i;continue e}u=u.parentNode}}r=r.return}Uf(function(){var a=l,d=Rs(n),f=[];e:{var m=hd.get(e);if(m!==void 0){var _=Ls,S=e;switch(e){case"keypress":if(ll(n)===0)break e;case"keydown":case"keyup":_=E0;break;case"focusin":S="focus",_=zi;break;case"focusout":S="blur",_=zi;break;case"beforeblur":case"afterblur":_=zi;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":_=ba;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":_=f0;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":_=C0;break;case cd:case fd:case dd:_=h0;break;case pd:_=L0;break;case"scroll":_=a0;break;case"wheel":_=x0;break;case"copy":case"cut":case"paste":_=m0;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":_=Ga}var R=(t&4)!==0,B=!R&&e==="scroll",h=R?m!==null?m+"Capture":null:m;R=[];for(var c=a,p;c!==null;){p=c;var w=p.stateNode;if(p.tag===5&&w!==null&&(p=w,h!==null&&(w=to(c,h),w!=null&&R.push(so(c,w,p)))),B)break;c=c.return}0<R.length&&(m=new _(m,S,null,n,d),f.push({event:m,listeners:R}))}}if(!(t&7)){e:{if(m=e==="mouseover"||e==="pointerover",_=e==="mouseout"||e==="pointerout",m&&n!==Ru&&(S=n.relatedTarget||n.fromElement)&&(wn(S)||S[Ot]))break e;if((_||m)&&(m=d.window===d?d:(m=d.ownerDocument)?m.defaultView||m.parentWindow:window,_?(S=n.relatedTarget||n.toElement,_=a,S=S?wn(S):null,S!==null&&(B=$n(S),S!==B||S.tag!==5&&S.tag!==6)&&(S=null)):(_=null,S=a),_!==S)){if(R=ba,w="onMouseLeave",h="onMouseEnter",c="mouse",(e==="pointerout"||e==="pointerover")&&(R=Ga,w="onPointerLeave",h="onPointerEnter",c="pointer"),B=_==null?m:Hn(_),p=S==null?m:Hn(S),m=new R(w,c+"leave",_,n,d),m.target=B,m.relatedTarget=p,w=null,wn(d)===a&&(R=new R(h,c+"enter",S,n,d),R.target=p,R.relatedTarget=B,w=R),B=w,_&&S)t:{for(R=_,h=S,c=0,p=R;p;p=Dn(p))c++;for(p=0,w=h;w;w=Dn(w))p++;for(;0<c-p;)R=Dn(R),c--;for(;0<p-c;)h=Dn(h),p--;for(;c--;){if(R===h||h!==null&&R===h.alternate)break t;R=Dn(R),h=Dn(h)}R=null}else R=null;_!==null&&oc(f,m,_,R,!1),S!==null&&B!==null&&oc(f,B,S,R,!0)}}e:{if(m=a?Hn(a):window,_=m.nodeName&&m.nodeName.toLowerCase(),_==="select"||_==="input"&&m.type==="file")var E=D0;else if(Ya(m))if(ld)E=B0;else{E=U0;var L=O0}else(_=m.nodeName)&&_.toLowerCase()==="input"&&(m.type==="checkbox"||m.type==="radio")&&(E=F0);if(E&&(E=E(e,a))){od(f,E,n,d);break e}L&&L(e,m,a),e==="focusout"&&(L=m._wrapperState)&&L.controlled&&m.type==="number"&&yu(m,"number",m.value)}switch(L=a?Hn(a):window,e){case"focusin":(Ya(L)||L.contentEditable==="true")&&(jn=L,Au=a,br=null);break;case"focusout":br=Au=jn=null;break;case"mousedown":xu=!0;break;case"contextmenu":case"mouseup":case"dragend":xu=!1,tc(f,n,d);break;case"selectionchange":if(H0)break;case"keydown":case"keyup":tc(f,n,d)}var N;if(xs)e:{switch(e){case"compositionstart":var V="onCompositionStart";break e;case"compositionend":V="onCompositionEnd";break e;case"compositionupdate":V="onCompositionUpdate";break e}V=void 0}else Bn?nd(e,n)&&(V="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(V="onCompositionStart");V&&(td&&n.locale!=="ko"&&(Bn||V!=="onCompositionStart"?V==="onCompositionEnd"&&Bn&&(N=ed()):(Zt=d,Ns="value"in Zt?Zt.value:Zt.textContent,Bn=!0)),L=_l(a,V),0<L.length&&(V=new Ka(V,e,null,n,d),f.push({event:V,listeners:L}),N?V.data=N:(N=rd(n),N!==null&&(V.data=N)))),(N=P0?$0(e,n):I0(e,n))&&(a=_l(a,"onBeforeInput"),0<a.length&&(d=new Ka("onBeforeInput","beforeinput",null,n,d),f.push({event:d,listeners:a}),d.data=N))}vd(f,t)})}function so(e,t,n){return{instance:e,listener:t,currentTarget:n}}function _l(e,t){for(var n=t+"Capture",r=[];e!==null;){var o=e,l=o.stateNode;o.tag===5&&l!==null&&(o=l,l=to(e,n),l!=null&&r.unshift(so(e,l,o)),l=to(e,t),l!=null&&r.push(so(e,l,o))),e=e.return}return r}function Dn(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function oc(e,t,n,r,o){for(var l=t._reactName,i=[];n!==null&&n!==r;){var u=n,s=u.alternate,a=u.stateNode;if(s!==null&&s===r)break;u.tag===5&&a!==null&&(u=a,o?(s=to(n,l),s!=null&&i.unshift(so(n,s,u))):o||(s=to(n,l),s!=null&&i.push(so(n,s,u)))),n=n.return}i.length!==0&&e.push({event:t,listeners:i})}var Q0=/\r\n?/g,Z0=/\u0000|\uFFFD/g;function lc(e){return(typeof e=="string"?e:""+e).replace(Q0,` +`).replace(Z0,"")}function Wo(e,t,n){if(t=lc(t),lc(e)!==t&&n)throw Error(C(425))}function Rl(){}var Mu=null,Pu=null;function $u(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 Iu=typeof setTimeout=="function"?setTimeout:void 0,Y0=typeof clearTimeout=="function"?clearTimeout:void 0,ic=typeof Promise=="function"?Promise:void 0,X0=typeof queueMicrotask=="function"?queueMicrotask:typeof ic<"u"?function(e){return ic.resolve(null).then(e).catch(q0)}:Iu;function q0(e){setTimeout(function(){throw e})}function Hi(e,t){var n=t,r=0;do{var o=n.nextSibling;if(e.removeChild(n),o&&o.nodeType===8)if(n=o.data,n==="/$"){if(r===0){e.removeChild(o),oo(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=o}while(n);oo(t)}function nn(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 uc(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 gr=Math.random().toString(36).slice(2),Ct="__reactFiber$"+gr,ao="__reactProps$"+gr,Ot="__reactContainer$"+gr,Vu="__reactEvents$"+gr,J0="__reactListeners$"+gr,em="__reactHandles$"+gr;function wn(e){var t=e[Ct];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Ot]||n[Ct]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=uc(e);e!==null;){if(n=e[Ct])return n;e=uc(e)}return t}e=n,n=e.parentNode}return null}function wo(e){return e=e[Ct]||e[Ot],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function Hn(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(C(33))}function Ql(e){return e[ao]||null}var zu=[],bn=-1;function dn(e){return{current:e}}function ce(e){0>bn||(e.current=zu[bn],zu[bn]=null,bn--)}function ue(e,t){bn++,zu[bn]=e.current,e.current=t}var an={},Oe=dn(an),Ke=dn(!1),Tn=an;function lr(e,t){var n=e.type.contextTypes;if(!n)return an;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o={},l;for(l in n)o[l]=t[l];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function Ge(e){return e=e.childContextTypes,e!=null}function El(){ce(Ke),ce(Oe)}function sc(e,t,n){if(Oe.current!==an)throw Error(C(168));ue(Oe,t),ue(Ke,n)}function yd(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var o in r)if(!(o in t))throw Error(C(108,Ov(e)||"Unknown",o));return we({},n,r)}function kl(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||an,Tn=Oe.current,ue(Oe,e),ue(Ke,Ke.current),!0}function ac(e,t,n){var r=e.stateNode;if(!r)throw Error(C(169));n?(e=yd(e,t,Tn),r.__reactInternalMemoizedMergedChildContext=e,ce(Ke),ce(Oe),ue(Oe,e)):ce(Ke),ue(Ke,n)}var $t=null,Zl=!1,bi=!1;function gd(e){$t===null?$t=[e]:$t.push(e)}function tm(e){Zl=!0,gd(e)}function pn(){if(!bi&&$t!==null){bi=!0;var e=0,t=re;try{var n=$t;for(re=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}$t=null,Zl=!1}catch(o){throw $t!==null&&($t=$t.slice(e+1)),Wf(Es,pn),o}finally{re=t,bi=!1}}return null}var Kn=[],Gn=0,Tl=null,Cl=0,st=[],at=0,Cn=null,It=1,Vt="";function yn(e,t){Kn[Gn++]=Cl,Kn[Gn++]=Tl,Tl=e,Cl=t}function Sd(e,t,n){st[at++]=It,st[at++]=Vt,st[at++]=Cn,Cn=e;var r=It;e=Vt;var o=32-_t(r)-1;r&=~(1<<o),n+=1;var l=32-_t(t)+o;if(30<l){var i=o-o%5;l=(r&(1<<i)-1).toString(32),r>>=i,o-=i,It=1<<32-_t(t)+o|n<<o|r,Vt=l+e}else It=1<<l|n<<o|r,Vt=e}function Ps(e){e.return!==null&&(yn(e,1),Sd(e,1,0))}function $s(e){for(;e===Tl;)Tl=Kn[--Gn],Kn[Gn]=null,Cl=Kn[--Gn],Kn[Gn]=null;for(;e===Cn;)Cn=st[--at],st[at]=null,Vt=st[--at],st[at]=null,It=st[--at],st[at]=null}var tt=null,et=null,he=!1,wt=null;function wd(e,t){var n=ct(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 cc(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,tt=e,et=nn(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,tt=e,et=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(n=Cn!==null?{id:It,overflow:Vt}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=ct(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,tt=e,et=null,!0):!1;default:return!1}}function Du(e){return(e.mode&1)!==0&&(e.flags&128)===0}function Ou(e){if(he){var t=et;if(t){var n=t;if(!cc(e,t)){if(Du(e))throw Error(C(418));t=nn(n.nextSibling);var r=tt;t&&cc(e,t)?wd(r,n):(e.flags=e.flags&-4097|2,he=!1,tt=e)}}else{if(Du(e))throw Error(C(418));e.flags=e.flags&-4097|2,he=!1,tt=e}}}function fc(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;tt=e}function Ho(e){if(e!==tt)return!1;if(!he)return fc(e),he=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!$u(e.type,e.memoizedProps)),t&&(t=et)){if(Du(e))throw _d(),Error(C(418));for(;t;)wd(e,t),t=nn(t.nextSibling)}if(fc(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(C(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"){if(t===0){et=nn(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++}e=e.nextSibling}et=null}}else et=tt?nn(e.stateNode.nextSibling):null;return!0}function _d(){for(var e=et;e;)e=nn(e.nextSibling)}function ir(){et=tt=null,he=!1}function Is(e){wt===null?wt=[e]:wt.push(e)}var nm=Bt.ReactCurrentBatchConfig;function gt(e,t){if(e&&e.defaultProps){t=we({},t),e=e.defaultProps;for(var n in e)t[n]===void 0&&(t[n]=e[n]);return t}return t}var Nl=dn(null),Ll=null,Qn=null,Vs=null;function zs(){Vs=Qn=Ll=null}function Ds(e){var t=Nl.current;ce(Nl),e._currentValue=t}function Uu(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){Ll=e,Vs=Qn=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(be=!0),e.firstContext=null)}function dt(e){var t=e._currentValue;if(Vs!==e)if(e={context:e,memoizedValue:t,next:null},Qn===null){if(Ll===null)throw Error(C(308));Qn=e,Ll.dependencies={lanes:0,firstContext:e}}else Qn=Qn.next=e;return t}var _n=null;function Os(e){_n===null?_n=[e]:_n.push(e)}function Rd(e,t,n,r){var o=t.interleaved;return o===null?(n.next=n,Os(t)):(n.next=o.next,o.next=n),t.interleaved=n,Ut(e,r)}function Ut(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 bt=!1;function Us(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Ed(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 zt(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function rn(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,ne&2){var o=r.pending;return o===null?t.next=t:(t.next=o.next,o.next=t),r.pending=t,Ut(e,n)}return o=r.interleaved,o===null?(t.next=t,Os(r)):(t.next=o.next,o.next=t),r.interleaved=t,Ut(e,n)}function il(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,ks(e,n)}}function dc(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var o=null,l=null;if(n=n.firstBaseUpdate,n!==null){do{var i={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};l===null?o=l=i:l=l.next=i,n=n.next}while(n!==null);l===null?o=l=t:l=l.next=t}else o=l=t;n={baseState:r.baseState,firstBaseUpdate:o,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 Al(e,t,n,r){var o=e.updateQueue;bt=!1;var l=o.firstBaseUpdate,i=o.lastBaseUpdate,u=o.shared.pending;if(u!==null){o.shared.pending=null;var s=u,a=s.next;s.next=null,i===null?l=a:i.next=a,i=s;var d=e.alternate;d!==null&&(d=d.updateQueue,u=d.lastBaseUpdate,u!==i&&(u===null?d.firstBaseUpdate=a:u.next=a,d.lastBaseUpdate=s))}if(l!==null){var f=o.baseState;i=0,d=a=s=null,u=l;do{var m=u.lane,_=u.eventTime;if((r&m)===m){d!==null&&(d=d.next={eventTime:_,lane:0,tag:u.tag,payload:u.payload,callback:u.callback,next:null});e:{var S=e,R=u;switch(m=t,_=n,R.tag){case 1:if(S=R.payload,typeof S=="function"){f=S.call(_,f,m);break e}f=S;break e;case 3:S.flags=S.flags&-65537|128;case 0:if(S=R.payload,m=typeof S=="function"?S.call(_,f,m):S,m==null)break e;f=we({},f,m);break e;case 2:bt=!0}}u.callback!==null&&u.lane!==0&&(e.flags|=64,m=o.effects,m===null?o.effects=[u]:m.push(u))}else _={eventTime:_,lane:m,tag:u.tag,payload:u.payload,callback:u.callback,next:null},d===null?(a=d=_,s=f):d=d.next=_,i|=m;if(u=u.next,u===null){if(u=o.shared.pending,u===null)break;m=u,u=m.next,m.next=null,o.lastBaseUpdate=m,o.shared.pending=null}}while(!0);if(d===null&&(s=f),o.baseState=s,o.firstBaseUpdate=a,o.lastBaseUpdate=d,t=o.shared.interleaved,t!==null){o=t;do i|=o.lane,o=o.next;while(o!==t)}else l===null&&(o.shared.lanes=0);Ln|=i,e.lanes=i,e.memoizedState=f}}function pc(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var r=e[t],o=r.callback;if(o!==null){if(r.callback=null,r=n,typeof o!="function")throw Error(C(191,o));o.call(r)}}}var kd=new Rf.Component().refs;function Fu(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:we({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var Yl={isMounted:function(e){return(e=e._reactInternals)?$n(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=Fe(),o=ln(e),l=zt(r,o);l.payload=t,n!=null&&(l.callback=n),t=rn(e,l,o),t!==null&&(Rt(t,e,o,r),il(t,e,o))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=Fe(),o=ln(e),l=zt(r,o);l.tag=1,l.payload=t,n!=null&&(l.callback=n),t=rn(e,l,o),t!==null&&(Rt(t,e,o,r),il(t,e,o))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=Fe(),r=ln(e),o=zt(n,r);o.tag=2,t!=null&&(o.callback=t),t=rn(e,o,r),t!==null&&(Rt(t,e,r,n),il(t,e,r))}};function hc(e,t,n,r,o,l,i){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(r,l,i):t.prototype&&t.prototype.isPureReactComponent?!io(n,r)||!io(o,l):!0}function Td(e,t,n){var r=!1,o=an,l=t.contextType;return typeof l=="object"&&l!==null?l=dt(l):(o=Ge(t)?Tn:Oe.current,r=t.contextTypes,l=(r=r!=null)?lr(e,o):an),t=new t(n,l),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=Yl,e.stateNode=t,t._reactInternals=e,r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=o,e.__reactInternalMemoizedMaskedChildContext=l),t}function vc(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&&Yl.enqueueReplaceState(t,t.state,null)}function Bu(e,t,n,r){var o=e.stateNode;o.props=n,o.state=e.memoizedState,o.refs=kd,Us(e);var l=t.contextType;typeof l=="object"&&l!==null?o.context=dt(l):(l=Ge(t)?Tn:Oe.current,o.context=lr(e,l)),o.state=e.memoizedState,l=t.getDerivedStateFromProps,typeof l=="function"&&(Fu(e,t,l,n),o.state=e.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof o.getSnapshotBeforeUpdate=="function"||typeof o.UNSAFE_componentWillMount!="function"&&typeof o.componentWillMount!="function"||(t=o.state,typeof o.componentWillMount=="function"&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount=="function"&&o.UNSAFE_componentWillMount(),t!==o.state&&Yl.enqueueReplaceState(o,o.state,null),Al(e,n,o,r),o.state=e.memoizedState),typeof o.componentDidMount=="function"&&(e.flags|=4194308)}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(C(309));var r=n.stateNode}if(!r)throw Error(C(147,e));var o=r,l=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===l?t.ref:(t=function(i){var u=o.refs;u===kd&&(u=o.refs={}),i===null?delete u[l]:u[l]=i},t._stringRef=l,t)}if(typeof e!="string")throw Error(C(284));if(!n._owner)throw Error(C(290,e))}return e}function bo(e,t){throw e=Object.prototype.toString.call(t),Error(C(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function mc(e){var t=e._init;return t(e._payload)}function Cd(e){function t(h,c){if(e){var p=h.deletions;p===null?(h.deletions=[c],h.flags|=16):p.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 o(h,c){return h=un(h,c),h.index=0,h.sibling=null,h}function l(h,c,p){return h.index=p,e?(p=h.alternate,p!==null?(p=p.index,p<c?(h.flags|=2,c):p):(h.flags|=2,c)):(h.flags|=1048576,c)}function i(h){return e&&h.alternate===null&&(h.flags|=2),h}function u(h,c,p,w){return c===null||c.tag!==6?(c=qi(p,h.mode,w),c.return=h,c):(c=o(c,p),c.return=h,c)}function s(h,c,p,w){var E=p.type;return E===Fn?d(h,c,p.props.children,w,p.key):c!==null&&(c.elementType===E||typeof E=="object"&&E!==null&&E.$$typeof===Ht&&mc(E)===c.type)?(w=o(c,p.props),w.ref=Lr(h,c,p),w.return=h,w):(w=dl(p.type,p.key,p.props,null,h.mode,w),w.ref=Lr(h,c,p),w.return=h,w)}function a(h,c,p,w){return c===null||c.tag!==4||c.stateNode.containerInfo!==p.containerInfo||c.stateNode.implementation!==p.implementation?(c=Ji(p,h.mode,w),c.return=h,c):(c=o(c,p.children||[]),c.return=h,c)}function d(h,c,p,w,E){return c===null||c.tag!==7?(c=kn(p,h.mode,w,E),c.return=h,c):(c=o(c,p),c.return=h,c)}function f(h,c,p){if(typeof c=="string"&&c!==""||typeof c=="number")return c=qi(""+c,h.mode,p),c.return=h,c;if(typeof c=="object"&&c!==null){switch(c.$$typeof){case Io:return p=dl(c.type,c.key,c.props,null,h.mode,p),p.ref=Lr(h,null,c),p.return=h,p;case Un:return c=Ji(c,h.mode,p),c.return=h,c;case Ht:var w=c._init;return f(h,w(c._payload),p)}if(Dr(c)||Er(c))return c=kn(c,h.mode,p,null),c.return=h,c;bo(h,c)}return null}function m(h,c,p,w){var E=c!==null?c.key:null;if(typeof p=="string"&&p!==""||typeof p=="number")return E!==null?null:u(h,c,""+p,w);if(typeof p=="object"&&p!==null){switch(p.$$typeof){case Io:return p.key===E?s(h,c,p,w):null;case Un:return p.key===E?a(h,c,p,w):null;case Ht:return E=p._init,m(h,c,E(p._payload),w)}if(Dr(p)||Er(p))return E!==null?null:d(h,c,p,w,null);bo(h,p)}return null}function _(h,c,p,w,E){if(typeof w=="string"&&w!==""||typeof w=="number")return h=h.get(p)||null,u(c,h,""+w,E);if(typeof w=="object"&&w!==null){switch(w.$$typeof){case Io:return h=h.get(w.key===null?p:w.key)||null,s(c,h,w,E);case Un:return h=h.get(w.key===null?p:w.key)||null,a(c,h,w,E);case Ht:var L=w._init;return _(h,c,p,L(w._payload),E)}if(Dr(w)||Er(w))return h=h.get(p)||null,d(c,h,w,E,null);bo(c,w)}return null}function S(h,c,p,w){for(var E=null,L=null,N=c,V=c=0,te=null;N!==null&&V<p.length;V++){N.index>V?(te=N,N=null):te=N.sibling;var U=m(h,N,p[V],w);if(U===null){N===null&&(N=te);break}e&&N&&U.alternate===null&&t(h,N),c=l(U,c,V),L===null?E=U:L.sibling=U,L=U,N=te}if(V===p.length)return n(h,N),he&&yn(h,V),E;if(N===null){for(;V<p.length;V++)N=f(h,p[V],w),N!==null&&(c=l(N,c,V),L===null?E=N:L.sibling=N,L=N);return he&&yn(h,V),E}for(N=r(h,N);V<p.length;V++)te=_(N,h,V,p[V],w),te!==null&&(e&&te.alternate!==null&&N.delete(te.key===null?V:te.key),c=l(te,c,V),L===null?E=te:L.sibling=te,L=te);return e&&N.forEach(function(fe){return t(h,fe)}),he&&yn(h,V),E}function R(h,c,p,w){var E=Er(p);if(typeof E!="function")throw Error(C(150));if(p=E.call(p),p==null)throw Error(C(151));for(var L=E=null,N=c,V=c=0,te=null,U=p.next();N!==null&&!U.done;V++,U=p.next()){N.index>V?(te=N,N=null):te=N.sibling;var fe=m(h,N,U.value,w);if(fe===null){N===null&&(N=te);break}e&&N&&fe.alternate===null&&t(h,N),c=l(fe,c,V),L===null?E=fe:L.sibling=fe,L=fe,N=te}if(U.done)return n(h,N),he&&yn(h,V),E;if(N===null){for(;!U.done;V++,U=p.next())U=f(h,U.value,w),U!==null&&(c=l(U,c,V),L===null?E=U:L.sibling=U,L=U);return he&&yn(h,V),E}for(N=r(h,N);!U.done;V++,U=p.next())U=_(N,h,V,U.value,w),U!==null&&(e&&U.alternate!==null&&N.delete(U.key===null?V:U.key),c=l(U,c,V),L===null?E=U:L.sibling=U,L=U);return e&&N.forEach(function(lt){return t(h,lt)}),he&&yn(h,V),E}function B(h,c,p,w){if(typeof p=="object"&&p!==null&&p.type===Fn&&p.key===null&&(p=p.props.children),typeof p=="object"&&p!==null){switch(p.$$typeof){case Io:e:{for(var E=p.key,L=c;L!==null;){if(L.key===E){if(E=p.type,E===Fn){if(L.tag===7){n(h,L.sibling),c=o(L,p.props.children),c.return=h,h=c;break e}}else if(L.elementType===E||typeof E=="object"&&E!==null&&E.$$typeof===Ht&&mc(E)===L.type){n(h,L.sibling),c=o(L,p.props),c.ref=Lr(h,L,p),c.return=h,h=c;break e}n(h,L);break}else t(h,L);L=L.sibling}p.type===Fn?(c=kn(p.props.children,h.mode,w,p.key),c.return=h,h=c):(w=dl(p.type,p.key,p.props,null,h.mode,w),w.ref=Lr(h,c,p),w.return=h,h=w)}return i(h);case Un:e:{for(L=p.key;c!==null;){if(c.key===L)if(c.tag===4&&c.stateNode.containerInfo===p.containerInfo&&c.stateNode.implementation===p.implementation){n(h,c.sibling),c=o(c,p.children||[]),c.return=h,h=c;break e}else{n(h,c);break}else t(h,c);c=c.sibling}c=Ji(p,h.mode,w),c.return=h,h=c}return i(h);case Ht:return L=p._init,B(h,c,L(p._payload),w)}if(Dr(p))return S(h,c,p,w);if(Er(p))return R(h,c,p,w);bo(h,p)}return typeof p=="string"&&p!==""||typeof p=="number"?(p=""+p,c!==null&&c.tag===6?(n(h,c.sibling),c=o(c,p),c.return=h,h=c):(n(h,c),c=qi(p,h.mode,w),c.return=h,h=c),i(h)):n(h,c)}return B}var ur=Cd(!0),Nd=Cd(!1),_o={},Lt=dn(_o),co=dn(_o),fo=dn(_o);function Rn(e){if(e===_o)throw Error(C(174));return e}function Fs(e,t){switch(ue(fo,t),ue(co,e),ue(Lt,_o),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Su(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=Su(t,e)}ce(Lt),ue(Lt,t)}function sr(){ce(Lt),ce(co),ce(fo)}function Ld(e){Rn(fo.current);var t=Rn(Lt.current),n=Su(t,e.type);t!==n&&(ue(co,e),ue(Lt,n))}function Bs(e){co.current===e&&(ce(Lt),ce(co))}var ge=dn(0);function xl(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 Ki=[];function js(){for(var e=0;e<Ki.length;e++)Ki[e]._workInProgressVersionPrimary=null;Ki.length=0}var ul=Bt.ReactCurrentDispatcher,Gi=Bt.ReactCurrentBatchConfig,Nn=0,Se=null,Te=null,Le=null,Ml=!1,Kr=!1,po=0,rm=0;function Ve(){throw Error(C(321))}function Ws(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Et(e[n],t[n]))return!1;return!0}function Hs(e,t,n,r,o,l){if(Nn=l,Se=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,ul.current=e===null||e.memoizedState===null?um:sm,e=n(r,o),Kr){l=0;do{if(Kr=!1,po=0,25<=l)throw Error(C(301));l+=1,Le=Te=null,t.updateQueue=null,ul.current=am,e=n(r,o)}while(Kr)}if(ul.current=Pl,t=Te!==null&&Te.next!==null,Nn=0,Le=Te=Se=null,Ml=!1,t)throw Error(C(300));return e}function bs(){var e=po!==0;return po=0,e}function Tt(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Le===null?Se.memoizedState=Le=e:Le=Le.next=e,Le}function pt(){if(Te===null){var e=Se.alternate;e=e!==null?e.memoizedState:null}else e=Te.next;var t=Le===null?Se.memoizedState:Le.next;if(t!==null)Le=t,Te=e;else{if(e===null)throw Error(C(310));Te=e,e={memoizedState:Te.memoizedState,baseState:Te.baseState,baseQueue:Te.baseQueue,queue:Te.queue,next:null},Le===null?Se.memoizedState=Le=e:Le=Le.next=e}return Le}function ho(e,t){return typeof t=="function"?t(e):t}function Qi(e){var t=pt(),n=t.queue;if(n===null)throw Error(C(311));n.lastRenderedReducer=e;var r=Te,o=r.baseQueue,l=n.pending;if(l!==null){if(o!==null){var i=o.next;o.next=l.next,l.next=i}r.baseQueue=o=l,n.pending=null}if(o!==null){l=o.next,r=r.baseState;var u=i=null,s=null,a=l;do{var d=a.lane;if((Nn&d)===d)s!==null&&(s=s.next={lane:0,action:a.action,hasEagerState:a.hasEagerState,eagerState:a.eagerState,next:null}),r=a.hasEagerState?a.eagerState:e(r,a.action);else{var f={lane:d,action:a.action,hasEagerState:a.hasEagerState,eagerState:a.eagerState,next:null};s===null?(u=s=f,i=r):s=s.next=f,Se.lanes|=d,Ln|=d}a=a.next}while(a!==null&&a!==l);s===null?i=r:s.next=u,Et(r,t.memoizedState)||(be=!0),t.memoizedState=r,t.baseState=i,t.baseQueue=s,n.lastRenderedState=r}if(e=n.interleaved,e!==null){o=e;do l=o.lane,Se.lanes|=l,Ln|=l,o=o.next;while(o!==e)}else o===null&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function Zi(e){var t=pt(),n=t.queue;if(n===null)throw Error(C(311));n.lastRenderedReducer=e;var r=n.dispatch,o=n.pending,l=t.memoizedState;if(o!==null){n.pending=null;var i=o=o.next;do l=e(l,i.action),i=i.next;while(i!==o);Et(l,t.memoizedState)||(be=!0),t.memoizedState=l,t.baseQueue===null&&(t.baseState=l),n.lastRenderedState=l}return[l,r]}function Ad(){}function xd(e,t){var n=Se,r=pt(),o=t(),l=!Et(r.memoizedState,o);if(l&&(r.memoizedState=o,be=!0),r=r.queue,Ks($d.bind(null,n,r,e),[e]),r.getSnapshot!==t||l||Le!==null&&Le.memoizedState.tag&1){if(n.flags|=2048,vo(9,Pd.bind(null,n,r,o,t),void 0,null),Ae===null)throw Error(C(349));Nn&30||Md(n,t,o)}return o}function Md(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=Se.updateQueue,t===null?(t={lastEffect:null,stores:null},Se.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function Pd(e,t,n,r){t.value=n,t.getSnapshot=r,Id(t)&&Vd(e)}function $d(e,t,n){return n(function(){Id(t)&&Vd(e)})}function Id(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Et(e,n)}catch{return!0}}function Vd(e){var t=Ut(e,1);t!==null&&Rt(t,e,1,-1)}function yc(e){var t=Tt();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:ho,lastRenderedState:e},t.queue=e,e=e.dispatch=im.bind(null,Se,e),[t.memoizedState,e]}function vo(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},t=Se.updateQueue,t===null?(t={lastEffect:null,stores:null},Se.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 zd(){return pt().memoizedState}function sl(e,t,n,r){var o=Tt();Se.flags|=e,o.memoizedState=vo(1|t,n,void 0,r===void 0?null:r)}function Xl(e,t,n,r){var o=pt();r=r===void 0?null:r;var l=void 0;if(Te!==null){var i=Te.memoizedState;if(l=i.destroy,r!==null&&Ws(r,i.deps)){o.memoizedState=vo(t,n,l,r);return}}Se.flags|=e,o.memoizedState=vo(1|t,n,l,r)}function gc(e,t){return sl(8390656,8,e,t)}function Ks(e,t){return Xl(2048,8,e,t)}function Dd(e,t){return Xl(4,2,e,t)}function Od(e,t){return Xl(4,4,e,t)}function Ud(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 Fd(e,t,n){return n=n!=null?n.concat([e]):null,Xl(4,4,Ud.bind(null,t,e),n)}function Gs(){}function Bd(e,t){var n=pt();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&Ws(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function jd(e,t){var n=pt();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&Ws(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function Wd(e,t,n){return Nn&21?(Et(n,t)||(n=Kf(),Se.lanes|=n,Ln|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,be=!0),e.memoizedState=n)}function om(e,t){var n=re;re=n!==0&&4>n?n:4,e(!0);var r=Gi.transition;Gi.transition={};try{e(!1),t()}finally{re=n,Gi.transition=r}}function Hd(){return pt().memoizedState}function lm(e,t,n){var r=ln(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},bd(e))Kd(t,n);else if(n=Rd(e,t,n,r),n!==null){var o=Fe();Rt(n,e,r,o),Gd(n,t,r)}}function im(e,t,n){var r=ln(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(bd(e))Kd(t,o);else{var l=e.alternate;if(e.lanes===0&&(l===null||l.lanes===0)&&(l=t.lastRenderedReducer,l!==null))try{var i=t.lastRenderedState,u=l(i,n);if(o.hasEagerState=!0,o.eagerState=u,Et(u,i)){var s=t.interleaved;s===null?(o.next=o,Os(t)):(o.next=s.next,s.next=o),t.interleaved=o;return}}catch{}finally{}n=Rd(e,t,o,r),n!==null&&(o=Fe(),Rt(n,e,r,o),Gd(n,t,r))}}function bd(e){var t=e.alternate;return e===Se||t!==null&&t===Se}function Kd(e,t){Kr=Ml=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Gd(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,ks(e,n)}}var Pl={readContext:dt,useCallback:Ve,useContext:Ve,useEffect:Ve,useImperativeHandle:Ve,useInsertionEffect:Ve,useLayoutEffect:Ve,useMemo:Ve,useReducer:Ve,useRef:Ve,useState:Ve,useDebugValue:Ve,useDeferredValue:Ve,useTransition:Ve,useMutableSource:Ve,useSyncExternalStore:Ve,useId:Ve,unstable_isNewReconciler:!1},um={readContext:dt,useCallback:function(e,t){return Tt().memoizedState=[e,t===void 0?null:t],e},useContext:dt,useEffect:gc,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,sl(4194308,4,Ud.bind(null,t,e),n)},useLayoutEffect:function(e,t){return sl(4194308,4,e,t)},useInsertionEffect:function(e,t){return sl(4,2,e,t)},useMemo:function(e,t){var n=Tt();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Tt();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=lm.bind(null,Se,e),[r.memoizedState,e]},useRef:function(e){var t=Tt();return e={current:e},t.memoizedState=e},useState:yc,useDebugValue:Gs,useDeferredValue:function(e){return Tt().memoizedState=e},useTransition:function(){var e=yc(!1),t=e[0];return e=om.bind(null,e[1]),Tt().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=Se,o=Tt();if(he){if(n===void 0)throw Error(C(407));n=n()}else{if(n=t(),Ae===null)throw Error(C(349));Nn&30||Md(r,t,n)}o.memoizedState=n;var l={value:n,getSnapshot:t};return o.queue=l,gc($d.bind(null,r,l,e),[e]),r.flags|=2048,vo(9,Pd.bind(null,r,l,n,t),void 0,null),n},useId:function(){var e=Tt(),t=Ae.identifierPrefix;if(he){var n=Vt,r=It;n=(r&~(1<<32-_t(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=po++,0<n&&(t+="H"+n.toString(32)),t+=":"}else n=rm++,t=":"+t+"r"+n.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},sm={readContext:dt,useCallback:Bd,useContext:dt,useEffect:Ks,useImperativeHandle:Fd,useInsertionEffect:Dd,useLayoutEffect:Od,useMemo:jd,useReducer:Qi,useRef:zd,useState:function(){return Qi(ho)},useDebugValue:Gs,useDeferredValue:function(e){var t=pt();return Wd(t,Te.memoizedState,e)},useTransition:function(){var e=Qi(ho)[0],t=pt().memoizedState;return[e,t]},useMutableSource:Ad,useSyncExternalStore:xd,useId:Hd,unstable_isNewReconciler:!1},am={readContext:dt,useCallback:Bd,useContext:dt,useEffect:Ks,useImperativeHandle:Fd,useInsertionEffect:Dd,useLayoutEffect:Od,useMemo:jd,useReducer:Zi,useRef:zd,useState:function(){return Zi(ho)},useDebugValue:Gs,useDeferredValue:function(e){var t=pt();return Te===null?t.memoizedState=e:Wd(t,Te.memoizedState,e)},useTransition:function(){var e=Zi(ho)[0],t=pt().memoizedState;return[e,t]},useMutableSource:Ad,useSyncExternalStore:xd,useId:Hd,unstable_isNewReconciler:!1};function ar(e,t){try{var n="",r=t;do n+=Dv(r),r=r.return;while(r);var o=n}catch(l){o=` Error generating stack: `+l.message+` -`+l.stack}return{value:e,source:t,stack:o,digest:null}}function Yi(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function ju(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var cm=typeof WeakMap=="function"?WeakMap:Map;function Qd(e,t,n){n=zt(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Il||(Il=!0,qu=r),ju(e,t)},n}function Zd(e,t,n){n=zt(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var o=t.value;n.payload=function(){return r(o)},n.callback=function(){ju(e,t)}}var l=e.stateNode;return l!==null&&typeof l.componentDidCatch=="function"&&(n.callback=function(){ju(e,t),typeof r!="function"&&(on===null?on=new Set([this]):on.add(this));var i=t.stack;this.componentDidCatch(t.value,{componentStack:i!==null?i:""})}),n}function Sc(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new cm;var o=new Set;r.set(t,o)}else o=r.get(t),o===void 0&&(o=new Set,r.set(t,o));o.has(n)||(o.add(n),e=km.bind(null,e,t,n),t.then(e,e))}function wc(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 _c(e,t,n,r,o){return e.mode&1?(e.flags|=65536,e.lanes=o,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=zt(-1,1),t.tag=2,rn(n,t,1))),n.lanes|=1),e)}var fm=Bt.ReactCurrentOwner,be=!1;function Ue(e,t,n,r){t.child=e===null?Nd(t,null,n,r):ur(t,e.child,n,r)}function Rc(e,t,n,r,o){n=n.render;var l=t.ref;return tr(t,o),r=Hs(e,t,n,r,l,o),n=bs(),e!==null&&!be?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,Ft(e,t,o)):(he&&n&&Ps(t),t.flags|=1,Ue(e,t,r,o),t.child)}function Ec(e,t,n,r,o){if(e===null){var l=n.type;return typeof l=="function"&&!ta(l)&&l.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=l,Yd(e,t,l,r,o)):(e=dl(n.type,null,r,t,t.mode,o),e.ref=t.ref,e.return=t,t.child=e)}if(l=e.child,!(e.lanes&o)){var i=l.memoizedProps;if(n=n.compare,n=n!==null?n:io,n(i,r)&&e.ref===t.ref)return Ft(e,t,o)}return t.flags|=1,e=un(l,r),e.ref=t.ref,e.return=t,t.child=e}function Yd(e,t,n,r,o){if(e!==null){var l=e.memoizedProps;if(io(l,r)&&e.ref===t.ref)if(be=!1,t.pendingProps=r=l,(e.lanes&o)!==0)e.flags&131072&&(be=!0);else return t.lanes=e.lanes,Ft(e,t,o)}return Wu(e,t,n,r,o)}function Xd(e,t,n){var r=t.pendingProps,o=r.children,l=e!==null?e.memoizedState:null;if(r.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},ue(Yn,Je),Je|=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,ue(Yn,Je),Je|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=l!==null?l.baseLanes:n,ue(Yn,Je),Je|=r}else l!==null?(r=l.baseLanes|n,t.memoizedState=null):r=n,ue(Yn,Je),Je|=r;return Ue(e,t,o,n),t.child}function qd(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Wu(e,t,n,r,o){var l=Ge(n)?Tn:Oe.current;return l=lr(t,l),tr(t,o),n=Hs(e,t,n,r,l,o),r=bs(),e!==null&&!be?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,Ft(e,t,o)):(he&&r&&Ps(t),t.flags|=1,Ue(e,t,n,o),t.child)}function kc(e,t,n,r,o){if(Ge(n)){var l=!0;kl(t)}else l=!1;if(tr(t,o),t.stateNode===null)al(e,t),Td(t,n,r),Bu(t,n,r,o),r=!0;else if(e===null){var i=t.stateNode,u=t.memoizedProps;i.props=u;var s=i.context,a=n.contextType;typeof a=="object"&&a!==null?a=dt(a):(a=Ge(n)?Tn:Oe.current,a=lr(t,a));var d=n.getDerivedStateFromProps,f=typeof d=="function"||typeof i.getSnapshotBeforeUpdate=="function";f||typeof i.UNSAFE_componentWillReceiveProps!="function"&&typeof i.componentWillReceiveProps!="function"||(u!==r||s!==a)&&vc(t,i,r,a),bt=!1;var m=t.memoizedState;i.state=m,Al(t,r,i,o),s=t.memoizedState,u!==r||m!==s||Ke.current||bt?(typeof d=="function"&&(Fu(t,n,d,r),s=t.memoizedState),(u=bt||hc(t,n,u,r,m,s,a))?(f||typeof i.UNSAFE_componentWillMount!="function"&&typeof i.componentWillMount!="function"||(typeof i.componentWillMount=="function"&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount=="function"&&i.UNSAFE_componentWillMount()),typeof i.componentDidMount=="function"&&(t.flags|=4194308)):(typeof i.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=s),i.props=r,i.state=s,i.context=a,r=u):(typeof i.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{i=t.stateNode,Ed(e,t),u=t.memoizedProps,a=t.type===t.elementType?u:gt(t.type,u),i.props=a,f=t.pendingProps,m=i.context,s=n.contextType,typeof s=="object"&&s!==null?s=dt(s):(s=Ge(n)?Tn:Oe.current,s=lr(t,s));var _=n.getDerivedStateFromProps;(d=typeof _=="function"||typeof i.getSnapshotBeforeUpdate=="function")||typeof i.UNSAFE_componentWillReceiveProps!="function"&&typeof i.componentWillReceiveProps!="function"||(u!==f||m!==s)&&vc(t,i,r,s),bt=!1,m=t.memoizedState,i.state=m,Al(t,r,i,o);var S=t.memoizedState;u!==f||m!==S||Ke.current||bt?(typeof _=="function"&&(Fu(t,n,_,r),S=t.memoizedState),(a=bt||hc(t,n,a,r,m,S,s)||!1)?(d||typeof i.UNSAFE_componentWillUpdate!="function"&&typeof i.componentWillUpdate!="function"||(typeof i.componentWillUpdate=="function"&&i.componentWillUpdate(r,S,s),typeof i.UNSAFE_componentWillUpdate=="function"&&i.UNSAFE_componentWillUpdate(r,S,s)),typeof i.componentDidUpdate=="function"&&(t.flags|=4),typeof i.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof i.componentDidUpdate!="function"||u===e.memoizedProps&&m===e.memoizedState||(t.flags|=4),typeof i.getSnapshotBeforeUpdate!="function"||u===e.memoizedProps&&m===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=S),i.props=r,i.state=S,i.context=s,r=a):(typeof i.componentDidUpdate!="function"||u===e.memoizedProps&&m===e.memoizedState||(t.flags|=4),typeof i.getSnapshotBeforeUpdate!="function"||u===e.memoizedProps&&m===e.memoizedState||(t.flags|=1024),r=!1)}return Hu(e,t,n,r,l,o)}function Hu(e,t,n,r,o,l){qd(e,t);var i=(t.flags&128)!==0;if(!r&&!i)return o&&ac(t,n,!1),Ft(e,t,l);r=t.stateNode,fm.current=t;var u=i&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&i?(t.child=ur(t,e.child,null,l),t.child=ur(t,null,u,l)):Ue(e,t,u,l),t.memoizedState=r.state,o&&ac(t,n,!0),t.child}function Jd(e){var t=e.stateNode;t.pendingContext?sc(e,t.pendingContext,t.pendingContext!==t.context):t.context&&sc(e,t.context,!1),Fs(e,t.containerInfo)}function Tc(e,t,n,r,o){return ir(),Is(o),t.flags|=256,Ue(e,t,n,r),t.child}var bu={dehydrated:null,treeContext:null,retryLane:0};function Ku(e){return{baseLanes:e,cachePool:null,transitions:null}}function ep(e,t,n){var r=t.pendingProps,o=ge.current,l=!1,i=(t.flags&128)!==0,u;if((u=i)||(u=e!==null&&e.memoizedState===null?!1:(o&2)!==0),u?(l=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(o|=1),ue(ge,o&1),e===null)return Ou(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):(i=r.children,e=r.fallback,l?(r=t.mode,l=t.child,i={mode:"hidden",children:i},!(r&1)&&l!==null?(l.childLanes=0,l.pendingProps=i):l=ei(i,r,0,null),e=kn(e,r,n,null),l.return=t,e.return=t,l.sibling=e,t.child=l,t.child.memoizedState=Ku(n),t.memoizedState=bu,e):Qs(t,i));if(o=e.memoizedState,o!==null&&(u=o.dehydrated,u!==null))return dm(e,t,i,r,u,o,n);if(l){l=r.fallback,i=t.mode,o=e.child,u=o.sibling;var s={mode:"hidden",children:r.children};return!(i&1)&&t.child!==o?(r=t.child,r.childLanes=0,r.pendingProps=s,t.deletions=null):(r=un(o,s),r.subtreeFlags=o.subtreeFlags&14680064),u!==null?l=un(u,l):(l=kn(l,i,n,null),l.flags|=2),l.return=t,r.return=t,r.sibling=l,t.child=r,r=l,l=t.child,i=e.child.memoizedState,i=i===null?Ku(n):{baseLanes:i.baseLanes|n,cachePool:null,transitions:i.transitions},l.memoizedState=i,l.childLanes=e.childLanes&~n,t.memoizedState=bu,r}return l=e.child,e=l.sibling,r=un(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 Qs(e,t){return t=ei({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function Ko(e,t,n,r){return r!==null&&Is(r),ur(t,e.child,null,n),e=Qs(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function dm(e,t,n,r,o,l,i){if(n)return t.flags&256?(t.flags&=-257,r=Yi(Error(T(422))),Ko(e,t,i,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(l=r.fallback,o=t.mode,r=ei({mode:"visible",children:r.children},o,0,null),l=kn(l,o,i,null),l.flags|=2,r.return=t,l.return=t,r.sibling=l,t.child=r,t.mode&1&&ur(t,e.child,null,i),t.child.memoizedState=Ku(i),t.memoizedState=bu,l);if(!(t.mode&1))return Ko(e,t,i,null);if(o.data==="$!"){if(r=o.nextSibling&&o.nextSibling.dataset,r)var u=r.dgst;return r=u,l=Error(T(419)),r=Yi(l,r,void 0),Ko(e,t,i,r)}if(u=(i&e.childLanes)!==0,be||u){if(r=Ae,r!==null){switch(i&-i){case 4:o=2;break;case 16:o=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:o=32;break;case 536870912:o=268435456;break;default:o=0}o=o&(r.suspendedLanes|i)?0:o,o!==0&&o!==l.retryLane&&(l.retryLane=o,Ut(e,o),Rt(r,e,o,-1))}return ea(),r=Yi(Error(T(421))),Ko(e,t,i,r)}return o.data==="$?"?(t.flags|=128,t.child=e.child,t=Tm.bind(null,e),o._reactRetry=t,null):(e=l.treeContext,et=nn(o.nextSibling),tt=t,he=!0,wt=null,e!==null&&(st[at++]=It,st[at++]=Vt,st[at++]=Cn,It=e.id,Vt=e.overflow,Cn=t),t=Qs(t,r.children),t.flags|=4096,t)}function Cc(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),Uu(e.return,t,n)}function Xi(e,t,n,r,o){var l=e.memoizedState;l===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:o}:(l.isBackwards=t,l.rendering=null,l.renderingStartTime=0,l.last=r,l.tail=n,l.tailMode=o)}function tp(e,t,n){var r=t.pendingProps,o=r.revealOrder,l=r.tail;if(Ue(e,t,r.children,n),r=ge.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&&Cc(e,n,t);else if(e.tag===19)Cc(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(ue(ge,r),!(t.mode&1))t.memoizedState=null;else switch(o){case"forwards":for(n=t.child,o=null;n!==null;)e=n.alternate,e!==null&&xl(e)===null&&(o=n),n=n.sibling;n=o,n===null?(o=t.child,t.child=null):(o=n.sibling,n.sibling=null),Xi(t,!1,o,n,l);break;case"backwards":for(n=null,o=t.child,t.child=null;o!==null;){if(e=o.alternate,e!==null&&xl(e)===null){t.child=o;break}e=o.sibling,o.sibling=n,n=o,o=e}Xi(t,!0,n,null,l);break;case"together":Xi(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function al(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Ft(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),Ln|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(T(153));if(t.child!==null){for(e=t.child,n=un(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=un(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function pm(e,t,n){switch(t.tag){case 3:Jd(t),ir();break;case 5:Ld(t);break;case 1:Ge(t.type)&&kl(t);break;case 4:Fs(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,o=t.memoizedProps.value;ue(Nl,r._currentValue),r._currentValue=o;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(ue(ge,ge.current&1),t.flags|=128,null):n&t.child.childLanes?ep(e,t,n):(ue(ge,ge.current&1),e=Ft(e,t,n),e!==null?e.sibling:null);ue(ge,ge.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return tp(e,t,n);t.flags|=128}if(o=t.memoizedState,o!==null&&(o.rendering=null,o.tail=null,o.lastEffect=null),ue(ge,ge.current),r)break;return null;case 22:case 23:return t.lanes=0,Xd(e,t,n)}return Ft(e,t,n)}var np,Gu,rp,op;np=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}};Gu=function(){};rp=function(e,t,n,r){var o=e.memoizedProps;if(o!==r){e=t.stateNode,Rn(Lt.current);var l=null;switch(n){case"input":o=vu(e,o),r=vu(e,r),l=[];break;case"select":o=we({},o,{value:void 0}),r=we({},r,{value:void 0}),l=[];break;case"textarea":o=gu(e,o),r=gu(e,r),l=[];break;default:typeof o.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=Rl)}wu(n,r);var i;n=null;for(a in o)if(!r.hasOwnProperty(a)&&o.hasOwnProperty(a)&&o[a]!=null)if(a==="style"){var u=o[a];for(i in u)u.hasOwnProperty(i)&&(n||(n={}),n[i]="")}else a!=="dangerouslySetInnerHTML"&&a!=="children"&&a!=="suppressContentEditableWarning"&&a!=="suppressHydrationWarning"&&a!=="autoFocus"&&(Jr.hasOwnProperty(a)?l||(l=[]):(l=l||[]).push(a,null));for(a in r){var s=r[a];if(u=o!=null?o[a]:void 0,r.hasOwnProperty(a)&&s!==u&&(s!=null||u!=null))if(a==="style")if(u){for(i in u)!u.hasOwnProperty(i)||s&&s.hasOwnProperty(i)||(n||(n={}),n[i]="");for(i in s)s.hasOwnProperty(i)&&u[i]!==s[i]&&(n||(n={}),n[i]=s[i])}else n||(l||(l=[]),l.push(a,n)),n=s;else a==="dangerouslySetInnerHTML"?(s=s?s.__html:void 0,u=u?u.__html:void 0,s!=null&&u!==s&&(l=l||[]).push(a,s)):a==="children"?typeof s!="string"&&typeof s!="number"||(l=l||[]).push(a,""+s):a!=="suppressContentEditableWarning"&&a!=="suppressHydrationWarning"&&(Jr.hasOwnProperty(a)?(s!=null&&a==="onScroll"&&se("scroll",e),l||u===s||(l=[])):(l=l||[]).push(a,s))}n&&(l=l||[]).push("style",n);var a=l;(t.updateQueue=a)&&(t.flags|=4)}};op=function(e,t,n,r){n!==r&&(t.flags|=4)};function Ar(e,t){if(!he)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 ze(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var o=e.child;o!==null;)n|=o.lanes|o.childLanes,r|=o.subtreeFlags&14680064,r|=o.flags&14680064,o.return=e,o=o.sibling;else for(o=e.child;o!==null;)n|=o.lanes|o.childLanes,r|=o.subtreeFlags,r|=o.flags,o.return=e,o=o.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function hm(e,t,n){var r=t.pendingProps;switch($s(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return ze(t),null;case 1:return Ge(t.type)&&El(),ze(t),null;case 3:return r=t.stateNode,sr(),ce(Ke),ce(Oe),js(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(Ho(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,wt!==null&&(ts(wt),wt=null))),Gu(e,t),ze(t),null;case 5:Bs(t);var o=Rn(fo.current);if(n=t.type,e!==null&&t.stateNode!=null)rp(e,t,n,r,o),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(T(166));return ze(t),null}if(e=Rn(Lt.current),Ho(t)){r=t.stateNode,n=t.type;var l=t.memoizedProps;switch(r[Ct]=t,r[ao]=l,e=(t.mode&1)!==0,n){case"dialog":se("cancel",r),se("close",r);break;case"iframe":case"object":case"embed":se("load",r);break;case"video":case"audio":for(o=0;o<Ur.length;o++)se(Ur[o],r);break;case"source":se("error",r);break;case"img":case"image":case"link":se("error",r),se("load",r);break;case"details":se("toggle",r);break;case"input":Va(r,l),se("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!l.multiple},se("invalid",r);break;case"textarea":Da(r,l),se("invalid",r)}wu(n,l),o=null;for(var i in l)if(l.hasOwnProperty(i)){var u=l[i];i==="children"?typeof u=="string"?r.textContent!==u&&(l.suppressHydrationWarning!==!0&&Wo(r.textContent,u,e),o=["children",u]):typeof u=="number"&&r.textContent!==""+u&&(l.suppressHydrationWarning!==!0&&Wo(r.textContent,u,e),o=["children",""+u]):Jr.hasOwnProperty(i)&&u!=null&&i==="onScroll"&&se("scroll",r)}switch(n){case"input":Vo(r),za(r,l,!0);break;case"textarea":Vo(r),Oa(r);break;case"select":case"option":break;default:typeof l.onClick=="function"&&(r.onclick=Rl)}r=o,t.updateQueue=r,r!==null&&(t.flags|=4)}else{i=o.nodeType===9?o:o.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=Mf(n)),e==="http://www.w3.org/1999/xhtml"?n==="script"?(e=i.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=i.createElement(n,{is:r.is}):(e=i.createElement(n),n==="select"&&(i=e,r.multiple?i.multiple=!0:r.size&&(i.size=r.size))):e=i.createElementNS(e,n),e[Ct]=t,e[ao]=r,np(e,t,!1,!1),t.stateNode=e;e:{switch(i=_u(n,r),n){case"dialog":se("cancel",e),se("close",e),o=r;break;case"iframe":case"object":case"embed":se("load",e),o=r;break;case"video":case"audio":for(o=0;o<Ur.length;o++)se(Ur[o],e);o=r;break;case"source":se("error",e),o=r;break;case"img":case"image":case"link":se("error",e),se("load",e),o=r;break;case"details":se("toggle",e),o=r;break;case"input":Va(e,r),o=vu(e,r),se("invalid",e);break;case"option":o=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},o=we({},r,{value:void 0}),se("invalid",e);break;case"textarea":Da(e,r),o=gu(e,r),se("invalid",e);break;default:o=r}wu(n,o),u=o;for(l in u)if(u.hasOwnProperty(l)){var s=u[l];l==="style"?If(e,s):l==="dangerouslySetInnerHTML"?(s=s?s.__html:void 0,s!=null&&Pf(e,s)):l==="children"?typeof s=="string"?(n!=="textarea"||s!=="")&&eo(e,s):typeof s=="number"&&eo(e,""+s):l!=="suppressContentEditableWarning"&&l!=="suppressHydrationWarning"&&l!=="autoFocus"&&(Jr.hasOwnProperty(l)?s!=null&&l==="onScroll"&&se("scroll",e):s!=null&&gs(e,l,s,i))}switch(n){case"input":Vo(e),za(e,r,!1);break;case"textarea":Vo(e),Oa(e);break;case"option":r.value!=null&&e.setAttribute("value",""+sn(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 o.onClick=="function"&&(e.onclick=Rl)}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 ze(t),null;case 6:if(e&&t.stateNode!=null)op(e,t,e.memoizedProps,r);else{if(typeof r!="string"&&t.stateNode===null)throw Error(T(166));if(n=Rn(fo.current),Rn(Lt.current),Ho(t)){if(r=t.stateNode,n=t.memoizedProps,r[Ct]=t,(l=r.nodeValue!==n)&&(e=tt,e!==null))switch(e.tag){case 3:Wo(r.nodeValue,n,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&Wo(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 ze(t),null;case 13:if(ce(ge),r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(he&&et!==null&&t.mode&1&&!(t.flags&128))_d(),ir(),t.flags|=98560,l=!1;else if(l=Ho(t),r!==null&&r.dehydrated!==null){if(e===null){if(!l)throw Error(T(318));if(l=t.memoizedState,l=l!==null?l.dehydrated:null,!l)throw Error(T(317));l[Ct]=t}else ir(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;ze(t),l=!1}else wt!==null&&(ts(wt),wt=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||ge.current&1?Ce===0&&(Ce=3):ea())),t.updateQueue!==null&&(t.flags|=4),ze(t),null);case 4:return sr(),Gu(e,t),e===null&&uo(t.stateNode.containerInfo),ze(t),null;case 10:return Ds(t.type._context),ze(t),null;case 17:return Ge(t.type)&&El(),ze(t),null;case 19:if(ce(ge),l=t.memoizedState,l===null)return ze(t),null;if(r=(t.flags&128)!==0,i=l.rendering,i===null)if(r)Ar(l,!1);else{if(Ce!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(i=xl(e),i!==null){for(t.flags|=128,Ar(l,!1),r=i.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,i=l.alternate,i===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=i.childLanes,l.lanes=i.lanes,l.child=i.child,l.subtreeFlags=0,l.deletions=null,l.memoizedProps=i.memoizedProps,l.memoizedState=i.memoizedState,l.updateQueue=i.updateQueue,l.type=i.type,e=i.dependencies,l.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return ue(ge,ge.current&1|2),t.child}e=e.sibling}l.tail!==null&&Re()>cr&&(t.flags|=128,r=!0,Ar(l,!1),t.lanes=4194304)}else{if(!r)if(e=xl(i),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),Ar(l,!0),l.tail===null&&l.tailMode==="hidden"&&!i.alternate&&!he)return ze(t),null}else 2*Re()-l.renderingStartTime>cr&&n!==1073741824&&(t.flags|=128,r=!0,Ar(l,!1),t.lanes=4194304);l.isBackwards?(i.sibling=t.child,t.child=i):(n=l.last,n!==null?n.sibling=i:t.child=i,l.last=i)}return l.tail!==null?(t=l.tail,l.rendering=t,l.tail=t.sibling,l.renderingStartTime=Re(),t.sibling=null,n=ge.current,ue(ge,r?n&1|2:n&1),t):(ze(t),null);case 22:case 23:return Js(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?Je&1073741824&&(ze(t),t.subtreeFlags&6&&(t.flags|=8192)):ze(t),null;case 24:return null;case 25:return null}throw Error(T(156,t.tag))}function vm(e,t){switch($s(t),t.tag){case 1:return Ge(t.type)&&El(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return sr(),ce(Ke),ce(Oe),js(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return Bs(t),null;case 13:if(ce(ge),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(T(340));ir()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return ce(ge),null;case 4:return sr(),null;case 10:return Ds(t.type._context),null;case 22:case 23:return Js(),null;case 24:return null;default:return null}}var Go=!1,De=!1,mm=typeof WeakSet=="function"?WeakSet:Set,D=null;function Zn(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){_e(e,t,r)}else n.current=null}function Qu(e,t,n){try{n()}catch(r){_e(e,t,r)}}var Nc=!1;function ym(e,t){if(Mu=Sl,e=sd(),Ms(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 o=r.anchorOffset,l=r.focusNode;r=r.focusOffset;try{n.nodeType,l.nodeType}catch{n=null;break e}var i=0,u=-1,s=-1,a=0,d=0,f=e,m=null;t:for(;;){for(var _;f!==n||o!==0&&f.nodeType!==3||(u=i+o),f!==l||r!==0&&f.nodeType!==3||(s=i+r),f.nodeType===3&&(i+=f.nodeValue.length),(_=f.firstChild)!==null;)m=f,f=_;for(;;){if(f===e)break t;if(m===n&&++a===o&&(u=i),m===l&&++d===r&&(s=i),(_=f.nextSibling)!==null)break;f=m,m=f.parentNode}f=_}n=u===-1||s===-1?null:{start:u,end:s}}else n=null}n=n||{start:0,end:0}}else n=null;for(Pu={focusedElem:e,selectionRange:n},Sl=!1,D=t;D!==null;)if(t=D,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,D=e;else for(;D!==null;){t=D;try{var S=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(S!==null){var R=S.memoizedProps,F=S.memoizedState,h=t.stateNode,c=h.getSnapshotBeforeUpdate(t.elementType===t.type?R:gt(t.type,R),F);h.__reactInternalSnapshotBeforeUpdate=c}break;case 3:var p=t.stateNode.containerInfo;p.nodeType===1?p.textContent="":p.nodeType===9&&p.documentElement&&p.removeChild(p.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(T(163))}}catch(w){_e(t,t.return,w)}if(e=t.sibling,e!==null){e.return=t.return,D=e;break}D=t.return}return S=Nc,Nc=!1,S}function Gr(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var o=r=r.next;do{if((o.tag&e)===e){var l=o.destroy;o.destroy=void 0,l!==void 0&&Qu(t,n,l)}o=o.next}while(o!==r)}}function ql(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 Zu(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 lp(e){var t=e.alternate;t!==null&&(e.alternate=null,lp(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Ct],delete t[ao],delete t[Vu],delete t[J0],delete t[em])),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 ip(e){return e.tag===5||e.tag===3||e.tag===4}function Lc(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||ip(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 Yu(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=Rl));else if(r!==4&&(e=e.child,e!==null))for(Yu(e,t,n),e=e.sibling;e!==null;)Yu(e,t,n),e=e.sibling}function Xu(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(Xu(e,t,n),e=e.sibling;e!==null;)Xu(e,t,n),e=e.sibling}var xe=null,St=!1;function Wt(e,t,n){for(n=n.child;n!==null;)up(e,t,n),n=n.sibling}function up(e,t,n){if(Nt&&typeof Nt.onCommitFiberUnmount=="function")try{Nt.onCommitFiberUnmount(Hl,n)}catch{}switch(n.tag){case 5:De||Zn(n,t);case 6:var r=xe,o=St;xe=null,Wt(e,t,n),xe=r,St=o,xe!==null&&(St?(e=xe,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):xe.removeChild(n.stateNode));break;case 18:xe!==null&&(St?(e=xe,n=n.stateNode,e.nodeType===8?Hi(e.parentNode,n):e.nodeType===1&&Hi(e,n),oo(e)):Hi(xe,n.stateNode));break;case 4:r=xe,o=St,xe=n.stateNode.containerInfo,St=!0,Wt(e,t,n),xe=r,St=o;break;case 0:case 11:case 14:case 15:if(!De&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){o=r=r.next;do{var l=o,i=l.destroy;l=l.tag,i!==void 0&&(l&2||l&4)&&Qu(n,t,i),o=o.next}while(o!==r)}Wt(e,t,n);break;case 1:if(!De&&(Zn(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(u){_e(n,t,u)}Wt(e,t,n);break;case 21:Wt(e,t,n);break;case 22:n.mode&1?(De=(r=De)||n.memoizedState!==null,Wt(e,t,n),De=r):Wt(e,t,n);break;default:Wt(e,t,n)}}function Ac(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new mm),t.forEach(function(r){var o=Cm.bind(null,e,r);n.has(r)||(n.add(r),r.then(o,o))})}}function mt(e,t){var n=t.deletions;if(n!==null)for(var r=0;r<n.length;r++){var o=n[r];try{var l=e,i=t,u=i;e:for(;u!==null;){switch(u.tag){case 5:xe=u.stateNode,St=!1;break e;case 3:xe=u.stateNode.containerInfo,St=!0;break e;case 4:xe=u.stateNode.containerInfo,St=!0;break e}u=u.return}if(xe===null)throw Error(T(160));up(l,i,o),xe=null,St=!1;var s=o.alternate;s!==null&&(s.return=null),o.return=null}catch(a){_e(o,t,a)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)sp(t,e),t=t.sibling}function sp(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(mt(t,e),kt(e),r&4){try{Gr(3,e,e.return),ql(3,e)}catch(R){_e(e,e.return,R)}try{Gr(5,e,e.return)}catch(R){_e(e,e.return,R)}}break;case 1:mt(t,e),kt(e),r&512&&n!==null&&Zn(n,n.return);break;case 5:if(mt(t,e),kt(e),r&512&&n!==null&&Zn(n,n.return),e.flags&32){var o=e.stateNode;try{eo(o,"")}catch(R){_e(e,e.return,R)}}if(r&4&&(o=e.stateNode,o!=null)){var l=e.memoizedProps,i=n!==null?n.memoizedProps:l,u=e.type,s=e.updateQueue;if(e.updateQueue=null,s!==null)try{u==="input"&&l.type==="radio"&&l.name!=null&&Af(o,l),_u(u,i);var a=_u(u,l);for(i=0;i<s.length;i+=2){var d=s[i],f=s[i+1];d==="style"?If(o,f):d==="dangerouslySetInnerHTML"?Pf(o,f):d==="children"?eo(o,f):gs(o,d,f,a)}switch(u){case"input":mu(o,l);break;case"textarea":xf(o,l);break;case"select":var m=o._wrapperState.wasMultiple;o._wrapperState.wasMultiple=!!l.multiple;var _=l.value;_!=null?Xn(o,!!l.multiple,_,!1):m!==!!l.multiple&&(l.defaultValue!=null?Xn(o,!!l.multiple,l.defaultValue,!0):Xn(o,!!l.multiple,l.multiple?[]:"",!1))}o[ao]=l}catch(R){_e(e,e.return,R)}}break;case 6:if(mt(t,e),kt(e),r&4){if(e.stateNode===null)throw Error(T(162));o=e.stateNode,l=e.memoizedProps;try{o.nodeValue=l}catch(R){_e(e,e.return,R)}}break;case 3:if(mt(t,e),kt(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{oo(t.containerInfo)}catch(R){_e(e,e.return,R)}break;case 4:mt(t,e),kt(e);break;case 13:mt(t,e),kt(e),o=e.child,o.flags&8192&&(l=o.memoizedState!==null,o.stateNode.isHidden=l,!l||o.alternate!==null&&o.alternate.memoizedState!==null||(Xs=Re())),r&4&&Ac(e);break;case 22:if(d=n!==null&&n.memoizedState!==null,e.mode&1?(De=(a=De)||d,mt(t,e),De=a):mt(t,e),kt(e),r&8192){if(a=e.memoizedState!==null,(e.stateNode.isHidden=a)&&!d&&e.mode&1)for(D=e,d=e.child;d!==null;){for(f=D=d;D!==null;){switch(m=D,_=m.child,m.tag){case 0:case 11:case 14:case 15:Gr(4,m,m.return);break;case 1:Zn(m,m.return);var S=m.stateNode;if(typeof S.componentWillUnmount=="function"){r=m,n=m.return;try{t=r,S.props=t.memoizedProps,S.state=t.memoizedState,S.componentWillUnmount()}catch(R){_e(r,n,R)}}break;case 5:Zn(m,m.return);break;case 22:if(m.memoizedState!==null){Mc(f);continue}}_!==null?(_.return=m,D=_):Mc(f)}d=d.sibling}e:for(d=null,f=e;;){if(f.tag===5){if(d===null){d=f;try{o=f.stateNode,a?(l=o.style,typeof l.setProperty=="function"?l.setProperty("display","none","important"):l.display="none"):(u=f.stateNode,s=f.memoizedProps.style,i=s!=null&&s.hasOwnProperty("display")?s.display:null,u.style.display=$f("display",i))}catch(R){_e(e,e.return,R)}}}else if(f.tag===6){if(d===null)try{f.stateNode.nodeValue=a?"":f.memoizedProps}catch(R){_e(e,e.return,R)}}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:mt(t,e),kt(e),r&4&&Ac(e);break;case 21:break;default:mt(t,e),kt(e)}}function kt(e){var t=e.flags;if(t&2){try{e:{for(var n=e.return;n!==null;){if(ip(n)){var r=n;break e}n=n.return}throw Error(T(160))}switch(r.tag){case 5:var o=r.stateNode;r.flags&32&&(eo(o,""),r.flags&=-33);var l=Lc(e);Xu(e,l,o);break;case 3:case 4:var i=r.stateNode.containerInfo,u=Lc(e);Yu(e,u,i);break;default:throw Error(T(161))}}catch(s){_e(e,e.return,s)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function gm(e,t,n){D=e,ap(e)}function ap(e,t,n){for(var r=(e.mode&1)!==0;D!==null;){var o=D,l=o.child;if(o.tag===22&&r){var i=o.memoizedState!==null||Go;if(!i){var u=o.alternate,s=u!==null&&u.memoizedState!==null||De;u=Go;var a=De;if(Go=i,(De=s)&&!a)for(D=o;D!==null;)i=D,s=i.child,i.tag===22&&i.memoizedState!==null?Pc(o):s!==null?(s.return=i,D=s):Pc(o);for(;l!==null;)D=l,ap(l),l=l.sibling;D=o,Go=u,De=a}xc(e)}else o.subtreeFlags&8772&&l!==null?(l.return=o,D=l):xc(e)}}function xc(e){for(;D!==null;){var t=D;if(t.flags&8772){var n=t.alternate;try{if(t.flags&8772)switch(t.tag){case 0:case 11:case 15:De||ql(5,t);break;case 1:var r=t.stateNode;if(t.flags&4&&!De)if(n===null)r.componentDidMount();else{var o=t.elementType===t.type?n.memoizedProps:gt(t.type,n.memoizedProps);r.componentDidUpdate(o,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var l=t.updateQueue;l!==null&&pc(t,l,r);break;case 3:var i=t.updateQueue;if(i!==null){if(n=null,t.child!==null)switch(t.child.tag){case 5:n=t.child.stateNode;break;case 1:n=t.child.stateNode}pc(t,i,n)}break;case 5:var u=t.stateNode;if(n===null&&t.flags&4){n=u;var s=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":s.autoFocus&&n.focus();break;case"img":s.src&&(n.src=s.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var a=t.alternate;if(a!==null){var d=a.memoizedState;if(d!==null){var f=d.dehydrated;f!==null&&oo(f)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(T(163))}De||t.flags&512&&Zu(t)}catch(m){_e(t,t.return,m)}}if(t===e){D=null;break}if(n=t.sibling,n!==null){n.return=t.return,D=n;break}D=t.return}}function Mc(e){for(;D!==null;){var t=D;if(t===e){D=null;break}var n=t.sibling;if(n!==null){n.return=t.return,D=n;break}D=t.return}}function Pc(e){for(;D!==null;){var t=D;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{ql(4,t)}catch(s){_e(t,n,s)}break;case 1:var r=t.stateNode;if(typeof r.componentDidMount=="function"){var o=t.return;try{r.componentDidMount()}catch(s){_e(t,o,s)}}var l=t.return;try{Zu(t)}catch(s){_e(t,l,s)}break;case 5:var i=t.return;try{Zu(t)}catch(s){_e(t,i,s)}}}catch(s){_e(t,t.return,s)}if(t===e){D=null;break}var u=t.sibling;if(u!==null){u.return=t.return,D=u;break}D=t.return}}var Sm=Math.ceil,$l=Bt.ReactCurrentDispatcher,Zs=Bt.ReactCurrentOwner,ft=Bt.ReactCurrentBatchConfig,ne=0,Ae=null,Ee=null,Me=0,Je=0,Yn=dn(0),Ce=0,mo=null,Ln=0,Jl=0,Ys=0,Qr=null,He=null,Xs=0,cr=1/0,Pt=null,Il=!1,qu=null,on=null,Qo=!1,Yt=null,Vl=0,Zr=0,Ju=null,cl=-1,fl=0;function Fe(){return ne&6?Re():cl!==-1?cl:cl=Re()}function ln(e){return e.mode&1?ne&2&&Me!==0?Me&-Me:nm.transition!==null?(fl===0&&(fl=Kf()),fl):(e=re,e!==0||(e=window.event,e=e===void 0?16:Jf(e.type)),e):1}function Rt(e,t,n,r){if(50<Zr)throw Zr=0,Ju=null,Error(T(185));go(e,n,r),(!(ne&2)||e!==Ae)&&(e===Ae&&(!(ne&2)&&(Jl|=n),Ce===4&&Qt(e,Me)),Qe(e,r),n===1&&ne===0&&!(t.mode&1)&&(cr=Re()+500,Zl&&pn()))}function Qe(e,t){var n=e.callbackNode;n0(e,t);var r=gl(e,e===Ae?Me:0);if(r===0)n!==null&&Ba(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(n!=null&&Ba(n),t===1)e.tag===0?tm($c.bind(null,e)):gd($c.bind(null,e)),X0(function(){!(ne&6)&&pn()}),n=null;else{switch(Gf(r)){case 1:n=Es;break;case 4:n=Hf;break;case 16:n=yl;break;case 536870912:n=bf;break;default:n=yl}n=yp(n,cp.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function cp(e,t){if(cl=-1,fl=0,ne&6)throw Error(T(327));var n=e.callbackNode;if(nr()&&e.callbackNode!==n)return null;var r=gl(e,e===Ae?Me:0);if(r===0)return null;if(r&30||r&e.expiredLanes||t)t=zl(e,r);else{t=r;var o=ne;ne|=2;var l=dp();(Ae!==e||Me!==t)&&(Pt=null,cr=Re()+500,En(e,t));do try{Rm();break}catch(u){fp(e,u)}while(!0);zs(),$l.current=l,ne=o,Ee!==null?t=0:(Ae=null,Me=0,t=Ce)}if(t!==0){if(t===2&&(o=Cu(e),o!==0&&(r=o,t=es(e,o))),t===1)throw n=mo,En(e,0),Qt(e,r),Qe(e,Re()),n;if(t===6)Qt(e,r);else{if(o=e.current.alternate,!(r&30)&&!wm(o)&&(t=zl(e,r),t===2&&(l=Cu(e),l!==0&&(r=l,t=es(e,l))),t===1))throw n=mo,En(e,0),Qt(e,r),Qe(e,Re()),n;switch(e.finishedWork=o,e.finishedLanes=r,t){case 0:case 1:throw Error(T(345));case 2:gn(e,He,Pt);break;case 3:if(Qt(e,r),(r&130023424)===r&&(t=Xs+500-Re(),10<t)){if(gl(e,0)!==0)break;if(o=e.suspendedLanes,(o&r)!==r){Fe(),e.pingedLanes|=e.suspendedLanes&o;break}e.timeoutHandle=Iu(gn.bind(null,e,He,Pt),t);break}gn(e,He,Pt);break;case 4:if(Qt(e,r),(r&4194240)===r)break;for(t=e.eventTimes,o=-1;0<r;){var i=31-_t(r);l=1<<i,i=t[i],i>o&&(o=i),r&=~l}if(r=o,r=Re()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*Sm(r/1960))-r,10<r){e.timeoutHandle=Iu(gn.bind(null,e,He,Pt),r);break}gn(e,He,Pt);break;case 5:gn(e,He,Pt);break;default:throw Error(T(329))}}}return Qe(e,Re()),e.callbackNode===n?cp.bind(null,e):null}function es(e,t){var n=Qr;return e.current.memoizedState.isDehydrated&&(En(e,t).flags|=256),e=zl(e,t),e!==2&&(t=He,He=n,t!==null&&ts(t)),e}function ts(e){He===null?He=e:He.push.apply(He,e)}function wm(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 o=n[r],l=o.getSnapshot;o=o.value;try{if(!Et(l(),o))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 Qt(e,t){for(t&=~Ys,t&=~Jl,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-_t(t),r=1<<n;e[n]=-1,t&=~r}}function $c(e){if(ne&6)throw Error(T(327));nr();var t=gl(e,0);if(!(t&1))return Qe(e,Re()),null;var n=zl(e,t);if(e.tag!==0&&n===2){var r=Cu(e);r!==0&&(t=r,n=es(e,r))}if(n===1)throw n=mo,En(e,0),Qt(e,t),Qe(e,Re()),n;if(n===6)throw Error(T(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,gn(e,He,Pt),Qe(e,Re()),null}function qs(e,t){var n=ne;ne|=1;try{return e(t)}finally{ne=n,ne===0&&(cr=Re()+500,Zl&&pn())}}function An(e){Yt!==null&&Yt.tag===0&&!(ne&6)&&nr();var t=ne;ne|=1;var n=ft.transition,r=re;try{if(ft.transition=null,re=1,e)return e()}finally{re=r,ft.transition=n,ne=t,!(ne&6)&&pn()}}function Js(){Je=Yn.current,ce(Yn)}function En(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,Y0(n)),Ee!==null)for(n=Ee.return;n!==null;){var r=n;switch($s(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&El();break;case 3:sr(),ce(Ke),ce(Oe),js();break;case 5:Bs(r);break;case 4:sr();break;case 13:ce(ge);break;case 19:ce(ge);break;case 10:Ds(r.type._context);break;case 22:case 23:Js()}n=n.return}if(Ae=e,Ee=e=un(e.current,null),Me=Je=t,Ce=0,mo=null,Ys=Jl=Ln=0,He=Qr=null,_n!==null){for(t=0;t<_n.length;t++)if(n=_n[t],r=n.interleaved,r!==null){n.interleaved=null;var o=r.next,l=n.pending;if(l!==null){var i=l.next;l.next=o,r.next=i}n.pending=r}_n=null}return e}function fp(e,t){do{var n=Ee;try{if(zs(),ul.current=Pl,Ml){for(var r=Se.memoizedState;r!==null;){var o=r.queue;o!==null&&(o.pending=null),r=r.next}Ml=!1}if(Nn=0,Le=Te=Se=null,Kr=!1,po=0,Zs.current=null,n===null||n.return===null){Ce=1,mo=t,Ee=null;break}e:{var l=e,i=n.return,u=n,s=t;if(t=Me,u.flags|=32768,s!==null&&typeof s=="object"&&typeof s.then=="function"){var a=s,d=u,f=d.tag;if(!(d.mode&1)&&(f===0||f===11||f===15)){var m=d.alternate;m?(d.updateQueue=m.updateQueue,d.memoizedState=m.memoizedState,d.lanes=m.lanes):(d.updateQueue=null,d.memoizedState=null)}var _=wc(i);if(_!==null){_.flags&=-257,_c(_,i,u,l,t),_.mode&1&&Sc(l,a,t),t=_,s=a;var S=t.updateQueue;if(S===null){var R=new Set;R.add(s),t.updateQueue=R}else S.add(s);break e}else{if(!(t&1)){Sc(l,a,t),ea();break e}s=Error(T(426))}}else if(he&&u.mode&1){var F=wc(i);if(F!==null){!(F.flags&65536)&&(F.flags|=256),_c(F,i,u,l,t),Is(ar(s,u));break e}}l=s=ar(s,u),Ce!==4&&(Ce=2),Qr===null?Qr=[l]:Qr.push(l),l=i;do{switch(l.tag){case 3:l.flags|=65536,t&=-t,l.lanes|=t;var h=Qd(l,s,t);dc(l,h);break e;case 1:u=s;var c=l.type,p=l.stateNode;if(!(l.flags&128)&&(typeof c.getDerivedStateFromError=="function"||p!==null&&typeof p.componentDidCatch=="function"&&(on===null||!on.has(p)))){l.flags|=65536,t&=-t,l.lanes|=t;var w=Zd(l,u,t);dc(l,w);break e}}l=l.return}while(l!==null)}hp(n)}catch(E){t=E,Ee===n&&n!==null&&(Ee=n=n.return);continue}break}while(!0)}function dp(){var e=$l.current;return $l.current=Pl,e===null?Pl:e}function ea(){(Ce===0||Ce===3||Ce===2)&&(Ce=4),Ae===null||!(Ln&268435455)&&!(Jl&268435455)||Qt(Ae,Me)}function zl(e,t){var n=ne;ne|=2;var r=dp();(Ae!==e||Me!==t)&&(Pt=null,En(e,t));do try{_m();break}catch(o){fp(e,o)}while(!0);if(zs(),ne=n,$l.current=r,Ee!==null)throw Error(T(261));return Ae=null,Me=0,Ce}function _m(){for(;Ee!==null;)pp(Ee)}function Rm(){for(;Ee!==null&&!Gv();)pp(Ee)}function pp(e){var t=mp(e.alternate,e,Je);e.memoizedProps=e.pendingProps,t===null?hp(e):Ee=t,Zs.current=null}function hp(e){var t=e;do{var n=t.alternate;if(e=t.return,t.flags&32768){if(n=vm(n,t),n!==null){n.flags&=32767,Ee=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{Ce=6,Ee=null;return}}else if(n=hm(n,t,Je),n!==null){Ee=n;return}if(t=t.sibling,t!==null){Ee=t;return}Ee=t=e}while(t!==null);Ce===0&&(Ce=5)}function gn(e,t,n){var r=re,o=ft.transition;try{ft.transition=null,re=1,Em(e,t,n,r)}finally{ft.transition=o,re=r}return null}function Em(e,t,n,r){do nr();while(Yt!==null);if(ne&6)throw Error(T(327));n=e.finishedWork;var o=e.finishedLanes;if(n===null)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(T(177));e.callbackNode=null,e.callbackPriority=0;var l=n.lanes|n.childLanes;if(r0(e,l),e===Ae&&(Ee=Ae=null,Me=0),!(n.subtreeFlags&2064)&&!(n.flags&2064)||Qo||(Qo=!0,yp(yl,function(){return nr(),null})),l=(n.flags&15990)!==0,n.subtreeFlags&15990||l){l=ft.transition,ft.transition=null;var i=re;re=1;var u=ne;ne|=4,Zs.current=null,ym(e,n),sp(n,e),W0(Pu),Sl=!!Mu,Pu=Mu=null,e.current=n,gm(n),Qv(),ne=u,re=i,ft.transition=l}else e.current=n;if(Qo&&(Qo=!1,Yt=e,Vl=o),l=e.pendingLanes,l===0&&(on=null),Xv(n.stateNode),Qe(e,Re()),t!==null)for(r=e.onRecoverableError,n=0;n<t.length;n++)o=t[n],r(o.value,{componentStack:o.stack,digest:o.digest});if(Il)throw Il=!1,e=qu,qu=null,e;return Vl&1&&e.tag!==0&&nr(),l=e.pendingLanes,l&1?e===Ju?Zr++:(Zr=0,Ju=e):Zr=0,pn(),null}function nr(){if(Yt!==null){var e=Gf(Vl),t=ft.transition,n=re;try{if(ft.transition=null,re=16>e?16:e,Yt===null)var r=!1;else{if(e=Yt,Yt=null,Vl=0,ne&6)throw Error(T(331));var o=ne;for(ne|=4,D=e.current;D!==null;){var l=D,i=l.child;if(D.flags&16){var u=l.deletions;if(u!==null){for(var s=0;s<u.length;s++){var a=u[s];for(D=a;D!==null;){var d=D;switch(d.tag){case 0:case 11:case 15:Gr(8,d,l)}var f=d.child;if(f!==null)f.return=d,D=f;else for(;D!==null;){d=D;var m=d.sibling,_=d.return;if(lp(d),d===a){D=null;break}if(m!==null){m.return=_,D=m;break}D=_}}}var S=l.alternate;if(S!==null){var R=S.child;if(R!==null){S.child=null;do{var F=R.sibling;R.sibling=null,R=F}while(R!==null)}}D=l}}if(l.subtreeFlags&2064&&i!==null)i.return=l,D=i;else e:for(;D!==null;){if(l=D,l.flags&2048)switch(l.tag){case 0:case 11:case 15:Gr(9,l,l.return)}var h=l.sibling;if(h!==null){h.return=l.return,D=h;break e}D=l.return}}var c=e.current;for(D=c;D!==null;){i=D;var p=i.child;if(i.subtreeFlags&2064&&p!==null)p.return=i,D=p;else e:for(i=c;D!==null;){if(u=D,u.flags&2048)try{switch(u.tag){case 0:case 11:case 15:ql(9,u)}}catch(E){_e(u,u.return,E)}if(u===i){D=null;break e}var w=u.sibling;if(w!==null){w.return=u.return,D=w;break e}D=u.return}}if(ne=o,pn(),Nt&&typeof Nt.onPostCommitFiberRoot=="function")try{Nt.onPostCommitFiberRoot(Hl,e)}catch{}r=!0}return r}finally{re=n,ft.transition=t}}return!1}function Ic(e,t,n){t=ar(n,t),t=Qd(e,t,1),e=rn(e,t,1),t=Fe(),e!==null&&(go(e,1,t),Qe(e,t))}function _e(e,t,n){if(e.tag===3)Ic(e,e,n);else for(;t!==null;){if(t.tag===3){Ic(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(on===null||!on.has(r))){e=ar(n,e),e=Zd(t,e,1),t=rn(t,e,1),e=Fe(),t!==null&&(go(t,1,e),Qe(t,e));break}}t=t.return}}function km(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),t=Fe(),e.pingedLanes|=e.suspendedLanes&n,Ae===e&&(Me&n)===n&&(Ce===4||Ce===3&&(Me&130023424)===Me&&500>Re()-Xs?En(e,0):Ys|=n),Qe(e,t)}function vp(e,t){t===0&&(e.mode&1?(t=Oo,Oo<<=1,!(Oo&130023424)&&(Oo=4194304)):t=1);var n=Fe();e=Ut(e,t),e!==null&&(go(e,t,n),Qe(e,n))}function Tm(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),vp(e,n)}function Cm(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,o=e.memoizedState;o!==null&&(n=o.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(T(314))}r!==null&&r.delete(t),vp(e,n)}var mp;mp=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||Ke.current)be=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return be=!1,pm(e,t,n);be=!!(e.flags&131072)}else be=!1,he&&t.flags&1048576&&Sd(t,Cl,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;al(e,t),e=t.pendingProps;var o=lr(t,Oe.current);tr(t,n),o=Hs(null,t,r,e,o,n);var l=bs();return t.flags|=1,typeof o=="object"&&o!==null&&typeof o.render=="function"&&o.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Ge(r)?(l=!0,kl(t)):l=!1,t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,Us(t),o.updater=Yl,t.stateNode=o,o._reactInternals=t,Bu(t,r,e,n),t=Hu(null,t,r,!0,l,n)):(t.tag=0,he&&l&&Ps(t),Ue(null,t,o,n),t=t.child),t;case 16:r=t.elementType;e:{switch(al(e,t),e=t.pendingProps,o=r._init,r=o(r._payload),t.type=r,o=t.tag=Lm(r),e=gt(r,e),o){case 0:t=Wu(null,t,r,e,n);break e;case 1:t=kc(null,t,r,e,n);break e;case 11:t=Rc(null,t,r,e,n);break e;case 14:t=Ec(null,t,r,gt(r.type,e),n);break e}throw Error(T(306,r,""))}return t;case 0:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:gt(r,o),Wu(e,t,r,o,n);case 1:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:gt(r,o),kc(e,t,r,o,n);case 3:e:{if(Jd(t),e===null)throw Error(T(387));r=t.pendingProps,l=t.memoizedState,o=l.element,Ed(e,t),Al(t,r,null,n);var i=t.memoizedState;if(r=i.element,l.isDehydrated)if(l={element:r,isDehydrated:!1,cache:i.cache,pendingSuspenseBoundaries:i.pendingSuspenseBoundaries,transitions:i.transitions},t.updateQueue.baseState=l,t.memoizedState=l,t.flags&256){o=ar(Error(T(423)),t),t=Tc(e,t,r,n,o);break e}else if(r!==o){o=ar(Error(T(424)),t),t=Tc(e,t,r,n,o);break e}else for(et=nn(t.stateNode.containerInfo.firstChild),tt=t,he=!0,wt=null,n=Nd(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(ir(),r===o){t=Ft(e,t,n);break e}Ue(e,t,r,n)}t=t.child}return t;case 5:return Ld(t),e===null&&Ou(t),r=t.type,o=t.pendingProps,l=e!==null?e.memoizedProps:null,i=o.children,$u(r,o)?i=null:l!==null&&$u(r,l)&&(t.flags|=32),qd(e,t),Ue(e,t,i,n),t.child;case 6:return e===null&&Ou(t),null;case 13:return ep(e,t,n);case 4:return Fs(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=ur(t,null,r,n):Ue(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:gt(r,o),Rc(e,t,r,o,n);case 7:return Ue(e,t,t.pendingProps,n),t.child;case 8:return Ue(e,t,t.pendingProps.children,n),t.child;case 12:return Ue(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,o=t.pendingProps,l=t.memoizedProps,i=o.value,ue(Nl,r._currentValue),r._currentValue=i,l!==null)if(Et(l.value,i)){if(l.children===o.children&&!Ke.current){t=Ft(e,t,n);break e}}else for(l=t.child,l!==null&&(l.return=t);l!==null;){var u=l.dependencies;if(u!==null){i=l.child;for(var s=u.firstContext;s!==null;){if(s.context===r){if(l.tag===1){s=zt(-1,n&-n),s.tag=2;var a=l.updateQueue;if(a!==null){a=a.shared;var d=a.pending;d===null?s.next=s:(s.next=d.next,d.next=s),a.pending=s}}l.lanes|=n,s=l.alternate,s!==null&&(s.lanes|=n),Uu(l.return,n,t),u.lanes|=n;break}s=s.next}}else if(l.tag===10)i=l.type===t.type?null:l.child;else if(l.tag===18){if(i=l.return,i===null)throw Error(T(341));i.lanes|=n,u=i.alternate,u!==null&&(u.lanes|=n),Uu(i,n,t),i=l.sibling}else i=l.child;if(i!==null)i.return=l;else for(i=l;i!==null;){if(i===t){i=null;break}if(l=i.sibling,l!==null){l.return=i.return,i=l;break}i=i.return}l=i}Ue(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,tr(t,n),o=dt(o),r=r(o),t.flags|=1,Ue(e,t,r,n),t.child;case 14:return r=t.type,o=gt(r,t.pendingProps),o=gt(r.type,o),Ec(e,t,r,o,n);case 15:return Yd(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:gt(r,o),al(e,t),t.tag=1,Ge(r)?(e=!0,kl(t)):e=!1,tr(t,n),Td(t,r,o),Bu(t,r,o,n),Hu(null,t,r,!0,e,n);case 19:return tp(e,t,n);case 22:return Xd(e,t,n)}throw Error(T(156,t.tag))};function yp(e,t){return Wf(e,t)}function Nm(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 ct(e,t,n,r){return new Nm(e,t,n,r)}function ta(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Lm(e){if(typeof e=="function")return ta(e)?1:0;if(e!=null){if(e=e.$$typeof,e===ws)return 11;if(e===_s)return 14}return 2}function un(e,t){var n=e.alternate;return n===null?(n=ct(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 dl(e,t,n,r,o,l){var i=2;if(r=e,typeof e=="function")ta(e)&&(i=1);else if(typeof e=="string")i=5;else e:switch(e){case Fn:return kn(n.children,o,l,t);case Ss:i=8,o|=8;break;case fu:return e=ct(12,n,t,o|2),e.elementType=fu,e.lanes=l,e;case du:return e=ct(13,n,t,o),e.elementType=du,e.lanes=l,e;case pu:return e=ct(19,n,t,o),e.elementType=pu,e.lanes=l,e;case Cf:return ei(n,o,l,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case kf:i=10;break e;case Tf:i=9;break e;case ws:i=11;break e;case _s:i=14;break e;case Ht:i=16,r=null;break e}throw Error(T(130,e==null?e:typeof e,""))}return t=ct(i,n,t,o),t.elementType=e,t.type=r,t.lanes=l,t}function kn(e,t,n,r){return e=ct(7,e,r,t),e.lanes=n,e}function ei(e,t,n,r){return e=ct(22,e,r,t),e.elementType=Cf,e.lanes=n,e.stateNode={isHidden:!1},e}function qi(e,t,n){return e=ct(6,e,null,t),e.lanes=n,e}function Ji(e,t,n){return t=ct(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Am(e,t,n,r,o){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=$i(0),this.expirationTimes=$i(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=$i(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function na(e,t,n,r,o,l,i,u,s){return e=new Am(e,t,n,u,s),t===1?(t=1,l===!0&&(t|=8)):t=0,l=ct(3,null,null,t),e.current=l,l.stateNode=e,l.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Us(l),e}function xm(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:Un,key:r==null?null:""+r,children:e,containerInfo:t,implementation:n}}function gp(e){if(!e)return an;e=e._reactInternals;e:{if($n(e)!==e||e.tag!==1)throw Error(T(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(Ge(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(T(171))}if(e.tag===1){var n=e.type;if(Ge(n))return yd(e,n,t)}return t}function Sp(e,t,n,r,o,l,i,u,s){return e=na(n,r,!0,e,o,l,i,u,s),e.context=gp(null),n=e.current,r=Fe(),o=ln(n),l=zt(r,o),l.callback=t??null,rn(n,l,o),e.current.lanes=o,go(e,o,r),Qe(e,r),e}function ti(e,t,n,r){var o=t.current,l=Fe(),i=ln(o);return n=gp(n),t.context===null?t.context=n:t.pendingContext=n,t=zt(l,i),t.payload={element:e},r=r===void 0?null:r,r!==null&&(t.callback=r),e=rn(o,t,i),e!==null&&(Rt(e,o,i,l),il(e,o,i)),i}function Dl(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 Vc(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function ra(e,t){Vc(e,t),(e=e.alternate)&&Vc(e,t)}function Mm(){return null}var wp=typeof reportError=="function"?reportError:function(e){console.error(e)};function oa(e){this._internalRoot=e}ni.prototype.render=oa.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(T(409));ti(e,t,null,null)};ni.prototype.unmount=oa.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;An(function(){ti(null,e,null,null)}),t[Ot]=null}};function ni(e){this._internalRoot=e}ni.prototype.unstable_scheduleHydration=function(e){if(e){var t=Yf();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Gt.length&&t!==0&&t<Gt[n].priority;n++);Gt.splice(n,0,e),n===0&&qf(e)}};function la(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function ri(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function zc(){}function Pm(e,t,n,r,o){if(o){if(typeof r=="function"){var l=r;r=function(){var a=Dl(i);l.call(a)}}var i=Sp(t,r,e,0,null,!1,!1,"",zc);return e._reactRootContainer=i,e[Ot]=i.current,uo(e.nodeType===8?e.parentNode:e),An(),i}for(;o=e.lastChild;)e.removeChild(o);if(typeof r=="function"){var u=r;r=function(){var a=Dl(s);u.call(a)}}var s=na(e,0,!1,null,null,!1,!1,"",zc);return e._reactRootContainer=s,e[Ot]=s.current,uo(e.nodeType===8?e.parentNode:e),An(function(){ti(t,s,n,r)}),s}function oi(e,t,n,r,o){var l=n._reactRootContainer;if(l){var i=l;if(typeof o=="function"){var u=o;o=function(){var s=Dl(i);u.call(s)}}ti(t,i,e,o)}else i=Pm(n,t,e,o,r);return Dl(i)}Qf=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=Or(t.pendingLanes);n!==0&&(ks(t,n|1),Qe(t,Re()),!(ne&6)&&(cr=Re()+500,pn()))}break;case 13:An(function(){var r=Ut(e,1);if(r!==null){var o=Fe();Rt(r,e,1,o)}}),ra(e,1)}};Ts=function(e){if(e.tag===13){var t=Ut(e,134217728);if(t!==null){var n=Fe();Rt(t,e,134217728,n)}ra(e,134217728)}};Zf=function(e){if(e.tag===13){var t=ln(e),n=Ut(e,t);if(n!==null){var r=Fe();Rt(n,e,t,r)}ra(e,t)}};Yf=function(){return re};Xf=function(e,t){var n=re;try{return re=e,t()}finally{re=n}};Eu=function(e,t,n){switch(t){case"input":if(mu(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 o=Ql(r);if(!o)throw Error(T(90));Lf(r),mu(r,o)}}}break;case"textarea":xf(e,n);break;case"select":t=n.value,t!=null&&Xn(e,!!n.multiple,t,!1)}};Df=qs;Of=An;var $m={usingClientEntryPoint:!1,Events:[wo,Hn,Ql,Vf,zf,qs]},xr={findFiberByHostInstance:wn,bundleType:0,version:"18.2.0",rendererPackageName:"react-dom"},Im={bundleType:xr.bundleType,version:xr.version,rendererPackageName:xr.rendererPackageName,rendererConfig:xr.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:Bt.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=Bf(e),e===null?null:e.stateNode},findFiberByHostInstance:xr.findFiberByHostInstance||Mm,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.2.0-next-9e3b772b8-20220608"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Zo=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Zo.isDisabled&&Zo.supportsFiber)try{Hl=Zo.inject(Im),Nt=Zo}catch{}}rt.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=$m;rt.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!la(t))throw Error(T(200));return xm(e,t,null,n)};rt.createRoot=function(e,t){if(!la(e))throw Error(T(299));var n=!1,r="",o=wp;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onRecoverableError!==void 0&&(o=t.onRecoverableError)),t=na(e,1,!1,null,null,n,!1,r,o),e[Ot]=t.current,uo(e.nodeType===8?e.parentNode:e),new oa(t)};rt.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(T(188)):(e=Object.keys(e).join(","),Error(T(268,e)));return e=Bf(t),e=e===null?null:e.stateNode,e};rt.flushSync=function(e){return An(e)};rt.hydrate=function(e,t,n){if(!ri(t))throw Error(T(200));return oi(null,e,t,!0,n)};rt.hydrateRoot=function(e,t,n){if(!la(e))throw Error(T(405));var r=n!=null&&n.hydratedSources||null,o=!1,l="",i=wp;if(n!=null&&(n.unstable_strictMode===!0&&(o=!0),n.identifierPrefix!==void 0&&(l=n.identifierPrefix),n.onRecoverableError!==void 0&&(i=n.onRecoverableError)),t=Sp(t,null,e,1,n??null,o,!1,l,i),e[Ot]=t.current,uo(e),r)for(e=0;e<r.length;e++)n=r[e],o=n._getVersion,o=o(n._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[n,o]:t.mutableSourceEagerHydrationData.push(n,o);return new ni(t)};rt.render=function(e,t,n){if(!ri(t))throw Error(T(200));return oi(null,e,t,!1,n)};rt.unmountComponentAtNode=function(e){if(!ri(e))throw Error(T(40));return e._reactRootContainer?(An(function(){oi(null,null,e,!1,function(){e._reactRootContainer=null,e[Ot]=null})}),!0):!1};rt.unstable_batchedUpdates=qs;rt.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!ri(n))throw Error(T(200));if(e==null||e._reactInternals===void 0)throw Error(T(38));return oi(e,t,n,!1,r)};rt.version="18.2.0-next-9e3b772b8-20220608";function _p(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(_p)}catch(e){console.error(e)}}_p(),Sf.exports=rt;var Rp=Sf.exports;const Vm=sf(Rp);var Ep={};function zm(e){const t=new Error(e);if(t.stack===void 0)try{throw t}catch{}return t}var Dm=zm,X=Dm;function Om(e){return!!e&&typeof e.then=="function"}var ae=Om;function Um(e,t){if(e!=null)return e;throw X(t??"Got unexpected null or undefined")}var ve=Um;function Z(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class li{getValue(){throw X("BaseLoadable")}toPromise(){throw X("BaseLoadable")}valueMaybe(){throw X("BaseLoadable")}valueOrThrow(){throw X(`Loadable expected value, but in "${this.state}" state`)}promiseMaybe(){throw X("BaseLoadable")}promiseOrThrow(){throw X(`Loadable expected promise, but in "${this.state}" state`)}errorMaybe(){throw X("BaseLoadable")}errorOrThrow(){throw X(`Loadable expected error, but in "${this.state}" state`)}is(t){return t.state===this.state&&t.contents===this.contents}map(t){throw X("BaseLoadable")}}class Fm extends li{constructor(t){super(),Z(this,"state","hasValue"),Z(this,"contents",void 0),this.contents=t}getValue(){return this.contents}toPromise(){return Promise.resolve(this.contents)}valueMaybe(){return this.contents}valueOrThrow(){return this.contents}promiseMaybe(){}errorMaybe(){}map(t){try{const n=t(this.contents);return ae(n)?xn(n):fr(n)?n:Ro(n)}catch(n){return ae(n)?xn(n.next(()=>this.map(t))):ii(n)}}}class Bm extends li{constructor(t){super(),Z(this,"state","hasError"),Z(this,"contents",void 0),this.contents=t}getValue(){throw this.contents}toPromise(){return Promise.reject(this.contents)}valueMaybe(){}promiseMaybe(){}errorMaybe(){return this.contents}errorOrThrow(){return this.contents}map(t){return this}}class kp extends li{constructor(t){super(),Z(this,"state","loading"),Z(this,"contents",void 0),this.contents=t}getValue(){throw this.contents}toPromise(){return this.contents}valueMaybe(){}promiseMaybe(){return this.contents}promiseOrThrow(){return this.contents}errorMaybe(){}map(t){return xn(this.contents.then(n=>{const r=t(n);if(fr(r)){const o=r;switch(o.state){case"hasValue":return o.contents;case"hasError":throw o.contents;case"loading":return o.contents}}return r}).catch(n=>{if(ae(n))return n.then(()=>this.map(t).contents);throw n}))}}function Ro(e){return Object.freeze(new Fm(e))}function ii(e){return Object.freeze(new Bm(e))}function xn(e){return Object.freeze(new kp(e))}function Tp(){return Object.freeze(new kp(new Promise(()=>{})))}function jm(e){return e.every(t=>t.state==="hasValue")?Ro(e.map(t=>t.contents)):e.some(t=>t.state==="hasError")?ii(ve(e.find(t=>t.state==="hasError"),"Invalid loadable passed to loadableAll").contents):xn(Promise.all(e.map(t=>t.contents)))}function Cp(e){const n=(Array.isArray(e)?e:Object.getOwnPropertyNames(e).map(o=>e[o])).map(o=>fr(o)?o:ae(o)?xn(o):Ro(o)),r=jm(n);return Array.isArray(e)?r:r.map(o=>Object.getOwnPropertyNames(e).reduce((l,i,u)=>({...l,[i]:o[u]}),{}))}function fr(e){return e instanceof li}const Wm={of:e=>ae(e)?xn(e):fr(e)?e:Ro(e),error:e=>ii(e),loading:()=>Tp(),all:Cp,isLoadable:fr};var In={loadableWithValue:Ro,loadableWithError:ii,loadableWithPromise:xn,loadableLoading:Tp,loadableAll:Cp,isLoadable:fr,RecoilLoadable:Wm},Hm=In.loadableWithValue,bm=In.loadableWithError,Km=In.loadableWithPromise,Gm=In.loadableLoading,Qm=In.loadableAll,Zm=In.isLoadable,Ym=In.RecoilLoadable,Eo=Object.freeze({__proto__:null,loadableWithValue:Hm,loadableWithError:bm,loadableWithPromise:Km,loadableLoading:Gm,loadableAll:Qm,isLoadable:Zm,RecoilLoadable:Ym});const ns={RECOIL_DUPLICATE_ATOM_KEY_CHECKING_ENABLED:!0,RECOIL_GKS_ENABLED:new Set(["recoil_hamt_2020","recoil_sync_external_store","recoil_suppress_rerender_in_callback","recoil_memory_managament_2020"])};function Xm(e,t){var n,r;const o=(n=Ep[e])===null||n===void 0||(r=n.toLowerCase())===null||r===void 0?void 0:r.trim();if(o==null||o==="")return;if(!["true","false"].includes(o))throw X(`process.env.${e} value must be 'true', 'false', or empty: ${o}`);t(o==="true")}function qm(e,t){var n;const r=(n=Ep[e])===null||n===void 0?void 0:n.trim();r==null||r===""||t(r.split(/\s*,\s*|\s+/))}function Jm(){var e;typeof process>"u"||((e=process)===null||e===void 0?void 0:e.env)!=null&&(Xm("RECOIL_DUPLICATE_ATOM_KEY_CHECKING_ENABLED",t=>{ns.RECOIL_DUPLICATE_ATOM_KEY_CHECKING_ENABLED=t}),qm("RECOIL_GKS_ENABLED",t=>{t.forEach(n=>{ns.RECOIL_GKS_ENABLED.add(n)})}))}Jm();var Sr=ns;function ui(e){return Sr.RECOIL_GKS_ENABLED.has(e)}ui.setPass=e=>{Sr.RECOIL_GKS_ENABLED.add(e)};ui.setFail=e=>{Sr.RECOIL_GKS_ENABLED.delete(e)};ui.clear=()=>{Sr.RECOIL_GKS_ENABLED.clear()};var ie=ui;function e1(e,t,{error:n}={}){return null}var t1=e1,ia=t1,eu,tu,nu;const n1=(eu=me.createMutableSource)!==null&&eu!==void 0?eu:me.unstable_createMutableSource,Np=(tu=me.useMutableSource)!==null&&tu!==void 0?tu:me.unstable_useMutableSource,Lp=(nu=me.useSyncExternalStore)!==null&&nu!==void 0?nu:me.unstable_useSyncExternalStore;function r1(){var e;const{ReactCurrentDispatcher:t,ReactCurrentOwner:n}=me.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;return((e=t==null?void 0:t.current)!==null&&e!==void 0?e:n.currentDispatcher).useSyncExternalStore!=null}function o1(){return ie("recoil_transition_support")?{mode:"TRANSITION_SUPPORT",early:!0,concurrent:!0}:ie("recoil_sync_external_store")&&Lp!=null?{mode:"SYNC_EXTERNAL_STORE",early:!0,concurrent:!1}:ie("recoil_mutable_source")&&Np!=null&&typeof window<"u"&&!window.$disableRecoilValueMutableSource_TEMP_HACK_DO_NOT_USE?ie("recoil_suppress_rerender_in_callback")?{mode:"MUTABLE_SOURCE",early:!0,concurrent:!0}:{mode:"MUTABLE_SOURCE",early:!1,concurrent:!1}:ie("recoil_suppress_rerender_in_callback")?{mode:"LEGACY",early:!0,concurrent:!1}:{mode:"LEGACY",early:!1,concurrent:!1}}function l1(){return!1}var ko={createMutableSource:n1,useMutableSource:Np,useSyncExternalStore:Lp,currentRendererSupportsUseSyncExternalStore:r1,reactMode:o1,isFastRefreshEnabled:l1};class ua{constructor(t){Z(this,"key",void 0),this.key=t}toJSON(){return{key:this.key}}}class Ap extends ua{}class xp extends ua{}function i1(e){return e instanceof Ap||e instanceof xp}var si={AbstractRecoilValue:ua,RecoilState:Ap,RecoilValueReadOnly:xp,isRecoilValue:i1},u1=si.AbstractRecoilValue,s1=si.RecoilState,a1=si.RecoilValueReadOnly,c1=si.isRecoilValue,dr=Object.freeze({__proto__:null,AbstractRecoilValue:u1,RecoilState:s1,RecoilValueReadOnly:a1,isRecoilValue:c1});function f1(e,t){return function*(){let n=0;for(const r of e)yield t(r,n++)}()}var ai=f1;class Mp{}const d1=new Mp,Mn=new Map,sa=new Map;function p1(e){return ai(e,t=>ve(sa.get(t)))}function h1(e){if(Mn.has(e)){const t=`Duplicate atom key "${e}". This is a FATAL ERROR in +`+l.stack}return{value:e,source:t,stack:o,digest:null}}function Yi(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function ju(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var cm=typeof WeakMap=="function"?WeakMap:Map;function Qd(e,t,n){n=zt(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Il||(Il=!0,qu=r),ju(e,t)},n}function Zd(e,t,n){n=zt(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var o=t.value;n.payload=function(){return r(o)},n.callback=function(){ju(e,t)}}var l=e.stateNode;return l!==null&&typeof l.componentDidCatch=="function"&&(n.callback=function(){ju(e,t),typeof r!="function"&&(on===null?on=new Set([this]):on.add(this));var i=t.stack;this.componentDidCatch(t.value,{componentStack:i!==null?i:""})}),n}function Sc(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new cm;var o=new Set;r.set(t,o)}else o=r.get(t),o===void 0&&(o=new Set,r.set(t,o));o.has(n)||(o.add(n),e=km.bind(null,e,t,n),t.then(e,e))}function wc(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 _c(e,t,n,r,o){return e.mode&1?(e.flags|=65536,e.lanes=o,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=zt(-1,1),t.tag=2,rn(n,t,1))),n.lanes|=1),e)}var fm=Bt.ReactCurrentOwner,be=!1;function Ue(e,t,n,r){t.child=e===null?Nd(t,null,n,r):ur(t,e.child,n,r)}function Rc(e,t,n,r,o){n=n.render;var l=t.ref;return tr(t,o),r=Hs(e,t,n,r,l,o),n=bs(),e!==null&&!be?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,Ft(e,t,o)):(he&&n&&Ps(t),t.flags|=1,Ue(e,t,r,o),t.child)}function Ec(e,t,n,r,o){if(e===null){var l=n.type;return typeof l=="function"&&!ta(l)&&l.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=l,Yd(e,t,l,r,o)):(e=dl(n.type,null,r,t,t.mode,o),e.ref=t.ref,e.return=t,t.child=e)}if(l=e.child,!(e.lanes&o)){var i=l.memoizedProps;if(n=n.compare,n=n!==null?n:io,n(i,r)&&e.ref===t.ref)return Ft(e,t,o)}return t.flags|=1,e=un(l,r),e.ref=t.ref,e.return=t,t.child=e}function Yd(e,t,n,r,o){if(e!==null){var l=e.memoizedProps;if(io(l,r)&&e.ref===t.ref)if(be=!1,t.pendingProps=r=l,(e.lanes&o)!==0)e.flags&131072&&(be=!0);else return t.lanes=e.lanes,Ft(e,t,o)}return Wu(e,t,n,r,o)}function Xd(e,t,n){var r=t.pendingProps,o=r.children,l=e!==null?e.memoizedState:null;if(r.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},ue(Yn,Je),Je|=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,ue(Yn,Je),Je|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=l!==null?l.baseLanes:n,ue(Yn,Je),Je|=r}else l!==null?(r=l.baseLanes|n,t.memoizedState=null):r=n,ue(Yn,Je),Je|=r;return Ue(e,t,o,n),t.child}function qd(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Wu(e,t,n,r,o){var l=Ge(n)?Tn:Oe.current;return l=lr(t,l),tr(t,o),n=Hs(e,t,n,r,l,o),r=bs(),e!==null&&!be?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,Ft(e,t,o)):(he&&r&&Ps(t),t.flags|=1,Ue(e,t,n,o),t.child)}function kc(e,t,n,r,o){if(Ge(n)){var l=!0;kl(t)}else l=!1;if(tr(t,o),t.stateNode===null)al(e,t),Td(t,n,r),Bu(t,n,r,o),r=!0;else if(e===null){var i=t.stateNode,u=t.memoizedProps;i.props=u;var s=i.context,a=n.contextType;typeof a=="object"&&a!==null?a=dt(a):(a=Ge(n)?Tn:Oe.current,a=lr(t,a));var d=n.getDerivedStateFromProps,f=typeof d=="function"||typeof i.getSnapshotBeforeUpdate=="function";f||typeof i.UNSAFE_componentWillReceiveProps!="function"&&typeof i.componentWillReceiveProps!="function"||(u!==r||s!==a)&&vc(t,i,r,a),bt=!1;var m=t.memoizedState;i.state=m,Al(t,r,i,o),s=t.memoizedState,u!==r||m!==s||Ke.current||bt?(typeof d=="function"&&(Fu(t,n,d,r),s=t.memoizedState),(u=bt||hc(t,n,u,r,m,s,a))?(f||typeof i.UNSAFE_componentWillMount!="function"&&typeof i.componentWillMount!="function"||(typeof i.componentWillMount=="function"&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount=="function"&&i.UNSAFE_componentWillMount()),typeof i.componentDidMount=="function"&&(t.flags|=4194308)):(typeof i.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=s),i.props=r,i.state=s,i.context=a,r=u):(typeof i.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{i=t.stateNode,Ed(e,t),u=t.memoizedProps,a=t.type===t.elementType?u:gt(t.type,u),i.props=a,f=t.pendingProps,m=i.context,s=n.contextType,typeof s=="object"&&s!==null?s=dt(s):(s=Ge(n)?Tn:Oe.current,s=lr(t,s));var _=n.getDerivedStateFromProps;(d=typeof _=="function"||typeof i.getSnapshotBeforeUpdate=="function")||typeof i.UNSAFE_componentWillReceiveProps!="function"&&typeof i.componentWillReceiveProps!="function"||(u!==f||m!==s)&&vc(t,i,r,s),bt=!1,m=t.memoizedState,i.state=m,Al(t,r,i,o);var S=t.memoizedState;u!==f||m!==S||Ke.current||bt?(typeof _=="function"&&(Fu(t,n,_,r),S=t.memoizedState),(a=bt||hc(t,n,a,r,m,S,s)||!1)?(d||typeof i.UNSAFE_componentWillUpdate!="function"&&typeof i.componentWillUpdate!="function"||(typeof i.componentWillUpdate=="function"&&i.componentWillUpdate(r,S,s),typeof i.UNSAFE_componentWillUpdate=="function"&&i.UNSAFE_componentWillUpdate(r,S,s)),typeof i.componentDidUpdate=="function"&&(t.flags|=4),typeof i.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof i.componentDidUpdate!="function"||u===e.memoizedProps&&m===e.memoizedState||(t.flags|=4),typeof i.getSnapshotBeforeUpdate!="function"||u===e.memoizedProps&&m===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=S),i.props=r,i.state=S,i.context=s,r=a):(typeof i.componentDidUpdate!="function"||u===e.memoizedProps&&m===e.memoizedState||(t.flags|=4),typeof i.getSnapshotBeforeUpdate!="function"||u===e.memoizedProps&&m===e.memoizedState||(t.flags|=1024),r=!1)}return Hu(e,t,n,r,l,o)}function Hu(e,t,n,r,o,l){qd(e,t);var i=(t.flags&128)!==0;if(!r&&!i)return o&&ac(t,n,!1),Ft(e,t,l);r=t.stateNode,fm.current=t;var u=i&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&i?(t.child=ur(t,e.child,null,l),t.child=ur(t,null,u,l)):Ue(e,t,u,l),t.memoizedState=r.state,o&&ac(t,n,!0),t.child}function Jd(e){var t=e.stateNode;t.pendingContext?sc(e,t.pendingContext,t.pendingContext!==t.context):t.context&&sc(e,t.context,!1),Fs(e,t.containerInfo)}function Tc(e,t,n,r,o){return ir(),Is(o),t.flags|=256,Ue(e,t,n,r),t.child}var bu={dehydrated:null,treeContext:null,retryLane:0};function Ku(e){return{baseLanes:e,cachePool:null,transitions:null}}function ep(e,t,n){var r=t.pendingProps,o=ge.current,l=!1,i=(t.flags&128)!==0,u;if((u=i)||(u=e!==null&&e.memoizedState===null?!1:(o&2)!==0),u?(l=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(o|=1),ue(ge,o&1),e===null)return Ou(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):(i=r.children,e=r.fallback,l?(r=t.mode,l=t.child,i={mode:"hidden",children:i},!(r&1)&&l!==null?(l.childLanes=0,l.pendingProps=i):l=ei(i,r,0,null),e=kn(e,r,n,null),l.return=t,e.return=t,l.sibling=e,t.child=l,t.child.memoizedState=Ku(n),t.memoizedState=bu,e):Qs(t,i));if(o=e.memoizedState,o!==null&&(u=o.dehydrated,u!==null))return dm(e,t,i,r,u,o,n);if(l){l=r.fallback,i=t.mode,o=e.child,u=o.sibling;var s={mode:"hidden",children:r.children};return!(i&1)&&t.child!==o?(r=t.child,r.childLanes=0,r.pendingProps=s,t.deletions=null):(r=un(o,s),r.subtreeFlags=o.subtreeFlags&14680064),u!==null?l=un(u,l):(l=kn(l,i,n,null),l.flags|=2),l.return=t,r.return=t,r.sibling=l,t.child=r,r=l,l=t.child,i=e.child.memoizedState,i=i===null?Ku(n):{baseLanes:i.baseLanes|n,cachePool:null,transitions:i.transitions},l.memoizedState=i,l.childLanes=e.childLanes&~n,t.memoizedState=bu,r}return l=e.child,e=l.sibling,r=un(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 Qs(e,t){return t=ei({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function Ko(e,t,n,r){return r!==null&&Is(r),ur(t,e.child,null,n),e=Qs(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function dm(e,t,n,r,o,l,i){if(n)return t.flags&256?(t.flags&=-257,r=Yi(Error(C(422))),Ko(e,t,i,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(l=r.fallback,o=t.mode,r=ei({mode:"visible",children:r.children},o,0,null),l=kn(l,o,i,null),l.flags|=2,r.return=t,l.return=t,r.sibling=l,t.child=r,t.mode&1&&ur(t,e.child,null,i),t.child.memoizedState=Ku(i),t.memoizedState=bu,l);if(!(t.mode&1))return Ko(e,t,i,null);if(o.data==="$!"){if(r=o.nextSibling&&o.nextSibling.dataset,r)var u=r.dgst;return r=u,l=Error(C(419)),r=Yi(l,r,void 0),Ko(e,t,i,r)}if(u=(i&e.childLanes)!==0,be||u){if(r=Ae,r!==null){switch(i&-i){case 4:o=2;break;case 16:o=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:o=32;break;case 536870912:o=268435456;break;default:o=0}o=o&(r.suspendedLanes|i)?0:o,o!==0&&o!==l.retryLane&&(l.retryLane=o,Ut(e,o),Rt(r,e,o,-1))}return ea(),r=Yi(Error(C(421))),Ko(e,t,i,r)}return o.data==="$?"?(t.flags|=128,t.child=e.child,t=Tm.bind(null,e),o._reactRetry=t,null):(e=l.treeContext,et=nn(o.nextSibling),tt=t,he=!0,wt=null,e!==null&&(st[at++]=It,st[at++]=Vt,st[at++]=Cn,It=e.id,Vt=e.overflow,Cn=t),t=Qs(t,r.children),t.flags|=4096,t)}function Cc(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),Uu(e.return,t,n)}function Xi(e,t,n,r,o){var l=e.memoizedState;l===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:o}:(l.isBackwards=t,l.rendering=null,l.renderingStartTime=0,l.last=r,l.tail=n,l.tailMode=o)}function tp(e,t,n){var r=t.pendingProps,o=r.revealOrder,l=r.tail;if(Ue(e,t,r.children,n),r=ge.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&&Cc(e,n,t);else if(e.tag===19)Cc(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(ue(ge,r),!(t.mode&1))t.memoizedState=null;else switch(o){case"forwards":for(n=t.child,o=null;n!==null;)e=n.alternate,e!==null&&xl(e)===null&&(o=n),n=n.sibling;n=o,n===null?(o=t.child,t.child=null):(o=n.sibling,n.sibling=null),Xi(t,!1,o,n,l);break;case"backwards":for(n=null,o=t.child,t.child=null;o!==null;){if(e=o.alternate,e!==null&&xl(e)===null){t.child=o;break}e=o.sibling,o.sibling=n,n=o,o=e}Xi(t,!0,n,null,l);break;case"together":Xi(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function al(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Ft(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),Ln|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(C(153));if(t.child!==null){for(e=t.child,n=un(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=un(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function pm(e,t,n){switch(t.tag){case 3:Jd(t),ir();break;case 5:Ld(t);break;case 1:Ge(t.type)&&kl(t);break;case 4:Fs(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,o=t.memoizedProps.value;ue(Nl,r._currentValue),r._currentValue=o;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(ue(ge,ge.current&1),t.flags|=128,null):n&t.child.childLanes?ep(e,t,n):(ue(ge,ge.current&1),e=Ft(e,t,n),e!==null?e.sibling:null);ue(ge,ge.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return tp(e,t,n);t.flags|=128}if(o=t.memoizedState,o!==null&&(o.rendering=null,o.tail=null,o.lastEffect=null),ue(ge,ge.current),r)break;return null;case 22:case 23:return t.lanes=0,Xd(e,t,n)}return Ft(e,t,n)}var np,Gu,rp,op;np=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}};Gu=function(){};rp=function(e,t,n,r){var o=e.memoizedProps;if(o!==r){e=t.stateNode,Rn(Lt.current);var l=null;switch(n){case"input":o=vu(e,o),r=vu(e,r),l=[];break;case"select":o=we({},o,{value:void 0}),r=we({},r,{value:void 0}),l=[];break;case"textarea":o=gu(e,o),r=gu(e,r),l=[];break;default:typeof o.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=Rl)}wu(n,r);var i;n=null;for(a in o)if(!r.hasOwnProperty(a)&&o.hasOwnProperty(a)&&o[a]!=null)if(a==="style"){var u=o[a];for(i in u)u.hasOwnProperty(i)&&(n||(n={}),n[i]="")}else a!=="dangerouslySetInnerHTML"&&a!=="children"&&a!=="suppressContentEditableWarning"&&a!=="suppressHydrationWarning"&&a!=="autoFocus"&&(Jr.hasOwnProperty(a)?l||(l=[]):(l=l||[]).push(a,null));for(a in r){var s=r[a];if(u=o!=null?o[a]:void 0,r.hasOwnProperty(a)&&s!==u&&(s!=null||u!=null))if(a==="style")if(u){for(i in u)!u.hasOwnProperty(i)||s&&s.hasOwnProperty(i)||(n||(n={}),n[i]="");for(i in s)s.hasOwnProperty(i)&&u[i]!==s[i]&&(n||(n={}),n[i]=s[i])}else n||(l||(l=[]),l.push(a,n)),n=s;else a==="dangerouslySetInnerHTML"?(s=s?s.__html:void 0,u=u?u.__html:void 0,s!=null&&u!==s&&(l=l||[]).push(a,s)):a==="children"?typeof s!="string"&&typeof s!="number"||(l=l||[]).push(a,""+s):a!=="suppressContentEditableWarning"&&a!=="suppressHydrationWarning"&&(Jr.hasOwnProperty(a)?(s!=null&&a==="onScroll"&&se("scroll",e),l||u===s||(l=[])):(l=l||[]).push(a,s))}n&&(l=l||[]).push("style",n);var a=l;(t.updateQueue=a)&&(t.flags|=4)}};op=function(e,t,n,r){n!==r&&(t.flags|=4)};function Ar(e,t){if(!he)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 ze(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var o=e.child;o!==null;)n|=o.lanes|o.childLanes,r|=o.subtreeFlags&14680064,r|=o.flags&14680064,o.return=e,o=o.sibling;else for(o=e.child;o!==null;)n|=o.lanes|o.childLanes,r|=o.subtreeFlags,r|=o.flags,o.return=e,o=o.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function hm(e,t,n){var r=t.pendingProps;switch($s(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return ze(t),null;case 1:return Ge(t.type)&&El(),ze(t),null;case 3:return r=t.stateNode,sr(),ce(Ke),ce(Oe),js(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(Ho(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,wt!==null&&(ts(wt),wt=null))),Gu(e,t),ze(t),null;case 5:Bs(t);var o=Rn(fo.current);if(n=t.type,e!==null&&t.stateNode!=null)rp(e,t,n,r,o),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(C(166));return ze(t),null}if(e=Rn(Lt.current),Ho(t)){r=t.stateNode,n=t.type;var l=t.memoizedProps;switch(r[Ct]=t,r[ao]=l,e=(t.mode&1)!==0,n){case"dialog":se("cancel",r),se("close",r);break;case"iframe":case"object":case"embed":se("load",r);break;case"video":case"audio":for(o=0;o<Ur.length;o++)se(Ur[o],r);break;case"source":se("error",r);break;case"img":case"image":case"link":se("error",r),se("load",r);break;case"details":se("toggle",r);break;case"input":Va(r,l),se("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!l.multiple},se("invalid",r);break;case"textarea":Da(r,l),se("invalid",r)}wu(n,l),o=null;for(var i in l)if(l.hasOwnProperty(i)){var u=l[i];i==="children"?typeof u=="string"?r.textContent!==u&&(l.suppressHydrationWarning!==!0&&Wo(r.textContent,u,e),o=["children",u]):typeof u=="number"&&r.textContent!==""+u&&(l.suppressHydrationWarning!==!0&&Wo(r.textContent,u,e),o=["children",""+u]):Jr.hasOwnProperty(i)&&u!=null&&i==="onScroll"&&se("scroll",r)}switch(n){case"input":Vo(r),za(r,l,!0);break;case"textarea":Vo(r),Oa(r);break;case"select":case"option":break;default:typeof l.onClick=="function"&&(r.onclick=Rl)}r=o,t.updateQueue=r,r!==null&&(t.flags|=4)}else{i=o.nodeType===9?o:o.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=Mf(n)),e==="http://www.w3.org/1999/xhtml"?n==="script"?(e=i.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=i.createElement(n,{is:r.is}):(e=i.createElement(n),n==="select"&&(i=e,r.multiple?i.multiple=!0:r.size&&(i.size=r.size))):e=i.createElementNS(e,n),e[Ct]=t,e[ao]=r,np(e,t,!1,!1),t.stateNode=e;e:{switch(i=_u(n,r),n){case"dialog":se("cancel",e),se("close",e),o=r;break;case"iframe":case"object":case"embed":se("load",e),o=r;break;case"video":case"audio":for(o=0;o<Ur.length;o++)se(Ur[o],e);o=r;break;case"source":se("error",e),o=r;break;case"img":case"image":case"link":se("error",e),se("load",e),o=r;break;case"details":se("toggle",e),o=r;break;case"input":Va(e,r),o=vu(e,r),se("invalid",e);break;case"option":o=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},o=we({},r,{value:void 0}),se("invalid",e);break;case"textarea":Da(e,r),o=gu(e,r),se("invalid",e);break;default:o=r}wu(n,o),u=o;for(l in u)if(u.hasOwnProperty(l)){var s=u[l];l==="style"?If(e,s):l==="dangerouslySetInnerHTML"?(s=s?s.__html:void 0,s!=null&&Pf(e,s)):l==="children"?typeof s=="string"?(n!=="textarea"||s!=="")&&eo(e,s):typeof s=="number"&&eo(e,""+s):l!=="suppressContentEditableWarning"&&l!=="suppressHydrationWarning"&&l!=="autoFocus"&&(Jr.hasOwnProperty(l)?s!=null&&l==="onScroll"&&se("scroll",e):s!=null&&gs(e,l,s,i))}switch(n){case"input":Vo(e),za(e,r,!1);break;case"textarea":Vo(e),Oa(e);break;case"option":r.value!=null&&e.setAttribute("value",""+sn(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 o.onClick=="function"&&(e.onclick=Rl)}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 ze(t),null;case 6:if(e&&t.stateNode!=null)op(e,t,e.memoizedProps,r);else{if(typeof r!="string"&&t.stateNode===null)throw Error(C(166));if(n=Rn(fo.current),Rn(Lt.current),Ho(t)){if(r=t.stateNode,n=t.memoizedProps,r[Ct]=t,(l=r.nodeValue!==n)&&(e=tt,e!==null))switch(e.tag){case 3:Wo(r.nodeValue,n,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&Wo(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 ze(t),null;case 13:if(ce(ge),r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(he&&et!==null&&t.mode&1&&!(t.flags&128))_d(),ir(),t.flags|=98560,l=!1;else if(l=Ho(t),r!==null&&r.dehydrated!==null){if(e===null){if(!l)throw Error(C(318));if(l=t.memoizedState,l=l!==null?l.dehydrated:null,!l)throw Error(C(317));l[Ct]=t}else ir(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;ze(t),l=!1}else wt!==null&&(ts(wt),wt=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||ge.current&1?Ce===0&&(Ce=3):ea())),t.updateQueue!==null&&(t.flags|=4),ze(t),null);case 4:return sr(),Gu(e,t),e===null&&uo(t.stateNode.containerInfo),ze(t),null;case 10:return Ds(t.type._context),ze(t),null;case 17:return Ge(t.type)&&El(),ze(t),null;case 19:if(ce(ge),l=t.memoizedState,l===null)return ze(t),null;if(r=(t.flags&128)!==0,i=l.rendering,i===null)if(r)Ar(l,!1);else{if(Ce!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(i=xl(e),i!==null){for(t.flags|=128,Ar(l,!1),r=i.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,i=l.alternate,i===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=i.childLanes,l.lanes=i.lanes,l.child=i.child,l.subtreeFlags=0,l.deletions=null,l.memoizedProps=i.memoizedProps,l.memoizedState=i.memoizedState,l.updateQueue=i.updateQueue,l.type=i.type,e=i.dependencies,l.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return ue(ge,ge.current&1|2),t.child}e=e.sibling}l.tail!==null&&Re()>cr&&(t.flags|=128,r=!0,Ar(l,!1),t.lanes=4194304)}else{if(!r)if(e=xl(i),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),Ar(l,!0),l.tail===null&&l.tailMode==="hidden"&&!i.alternate&&!he)return ze(t),null}else 2*Re()-l.renderingStartTime>cr&&n!==1073741824&&(t.flags|=128,r=!0,Ar(l,!1),t.lanes=4194304);l.isBackwards?(i.sibling=t.child,t.child=i):(n=l.last,n!==null?n.sibling=i:t.child=i,l.last=i)}return l.tail!==null?(t=l.tail,l.rendering=t,l.tail=t.sibling,l.renderingStartTime=Re(),t.sibling=null,n=ge.current,ue(ge,r?n&1|2:n&1),t):(ze(t),null);case 22:case 23:return Js(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?Je&1073741824&&(ze(t),t.subtreeFlags&6&&(t.flags|=8192)):ze(t),null;case 24:return null;case 25:return null}throw Error(C(156,t.tag))}function vm(e,t){switch($s(t),t.tag){case 1:return Ge(t.type)&&El(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return sr(),ce(Ke),ce(Oe),js(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return Bs(t),null;case 13:if(ce(ge),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(C(340));ir()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return ce(ge),null;case 4:return sr(),null;case 10:return Ds(t.type._context),null;case 22:case 23:return Js(),null;case 24:return null;default:return null}}var Go=!1,De=!1,mm=typeof WeakSet=="function"?WeakSet:Set,D=null;function Zn(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){_e(e,t,r)}else n.current=null}function Qu(e,t,n){try{n()}catch(r){_e(e,t,r)}}var Nc=!1;function ym(e,t){if(Mu=Sl,e=sd(),Ms(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 o=r.anchorOffset,l=r.focusNode;r=r.focusOffset;try{n.nodeType,l.nodeType}catch{n=null;break e}var i=0,u=-1,s=-1,a=0,d=0,f=e,m=null;t:for(;;){for(var _;f!==n||o!==0&&f.nodeType!==3||(u=i+o),f!==l||r!==0&&f.nodeType!==3||(s=i+r),f.nodeType===3&&(i+=f.nodeValue.length),(_=f.firstChild)!==null;)m=f,f=_;for(;;){if(f===e)break t;if(m===n&&++a===o&&(u=i),m===l&&++d===r&&(s=i),(_=f.nextSibling)!==null)break;f=m,m=f.parentNode}f=_}n=u===-1||s===-1?null:{start:u,end:s}}else n=null}n=n||{start:0,end:0}}else n=null;for(Pu={focusedElem:e,selectionRange:n},Sl=!1,D=t;D!==null;)if(t=D,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,D=e;else for(;D!==null;){t=D;try{var S=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(S!==null){var R=S.memoizedProps,B=S.memoizedState,h=t.stateNode,c=h.getSnapshotBeforeUpdate(t.elementType===t.type?R:gt(t.type,R),B);h.__reactInternalSnapshotBeforeUpdate=c}break;case 3:var p=t.stateNode.containerInfo;p.nodeType===1?p.textContent="":p.nodeType===9&&p.documentElement&&p.removeChild(p.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(C(163))}}catch(w){_e(t,t.return,w)}if(e=t.sibling,e!==null){e.return=t.return,D=e;break}D=t.return}return S=Nc,Nc=!1,S}function Gr(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var o=r=r.next;do{if((o.tag&e)===e){var l=o.destroy;o.destroy=void 0,l!==void 0&&Qu(t,n,l)}o=o.next}while(o!==r)}}function ql(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 Zu(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 lp(e){var t=e.alternate;t!==null&&(e.alternate=null,lp(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Ct],delete t[ao],delete t[Vu],delete t[J0],delete t[em])),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 ip(e){return e.tag===5||e.tag===3||e.tag===4}function Lc(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||ip(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 Yu(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=Rl));else if(r!==4&&(e=e.child,e!==null))for(Yu(e,t,n),e=e.sibling;e!==null;)Yu(e,t,n),e=e.sibling}function Xu(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(Xu(e,t,n),e=e.sibling;e!==null;)Xu(e,t,n),e=e.sibling}var xe=null,St=!1;function Wt(e,t,n){for(n=n.child;n!==null;)up(e,t,n),n=n.sibling}function up(e,t,n){if(Nt&&typeof Nt.onCommitFiberUnmount=="function")try{Nt.onCommitFiberUnmount(Hl,n)}catch{}switch(n.tag){case 5:De||Zn(n,t);case 6:var r=xe,o=St;xe=null,Wt(e,t,n),xe=r,St=o,xe!==null&&(St?(e=xe,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):xe.removeChild(n.stateNode));break;case 18:xe!==null&&(St?(e=xe,n=n.stateNode,e.nodeType===8?Hi(e.parentNode,n):e.nodeType===1&&Hi(e,n),oo(e)):Hi(xe,n.stateNode));break;case 4:r=xe,o=St,xe=n.stateNode.containerInfo,St=!0,Wt(e,t,n),xe=r,St=o;break;case 0:case 11:case 14:case 15:if(!De&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){o=r=r.next;do{var l=o,i=l.destroy;l=l.tag,i!==void 0&&(l&2||l&4)&&Qu(n,t,i),o=o.next}while(o!==r)}Wt(e,t,n);break;case 1:if(!De&&(Zn(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(u){_e(n,t,u)}Wt(e,t,n);break;case 21:Wt(e,t,n);break;case 22:n.mode&1?(De=(r=De)||n.memoizedState!==null,Wt(e,t,n),De=r):Wt(e,t,n);break;default:Wt(e,t,n)}}function Ac(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new mm),t.forEach(function(r){var o=Cm.bind(null,e,r);n.has(r)||(n.add(r),r.then(o,o))})}}function mt(e,t){var n=t.deletions;if(n!==null)for(var r=0;r<n.length;r++){var o=n[r];try{var l=e,i=t,u=i;e:for(;u!==null;){switch(u.tag){case 5:xe=u.stateNode,St=!1;break e;case 3:xe=u.stateNode.containerInfo,St=!0;break e;case 4:xe=u.stateNode.containerInfo,St=!0;break e}u=u.return}if(xe===null)throw Error(C(160));up(l,i,o),xe=null,St=!1;var s=o.alternate;s!==null&&(s.return=null),o.return=null}catch(a){_e(o,t,a)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)sp(t,e),t=t.sibling}function sp(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(mt(t,e),kt(e),r&4){try{Gr(3,e,e.return),ql(3,e)}catch(R){_e(e,e.return,R)}try{Gr(5,e,e.return)}catch(R){_e(e,e.return,R)}}break;case 1:mt(t,e),kt(e),r&512&&n!==null&&Zn(n,n.return);break;case 5:if(mt(t,e),kt(e),r&512&&n!==null&&Zn(n,n.return),e.flags&32){var o=e.stateNode;try{eo(o,"")}catch(R){_e(e,e.return,R)}}if(r&4&&(o=e.stateNode,o!=null)){var l=e.memoizedProps,i=n!==null?n.memoizedProps:l,u=e.type,s=e.updateQueue;if(e.updateQueue=null,s!==null)try{u==="input"&&l.type==="radio"&&l.name!=null&&Af(o,l),_u(u,i);var a=_u(u,l);for(i=0;i<s.length;i+=2){var d=s[i],f=s[i+1];d==="style"?If(o,f):d==="dangerouslySetInnerHTML"?Pf(o,f):d==="children"?eo(o,f):gs(o,d,f,a)}switch(u){case"input":mu(o,l);break;case"textarea":xf(o,l);break;case"select":var m=o._wrapperState.wasMultiple;o._wrapperState.wasMultiple=!!l.multiple;var _=l.value;_!=null?Xn(o,!!l.multiple,_,!1):m!==!!l.multiple&&(l.defaultValue!=null?Xn(o,!!l.multiple,l.defaultValue,!0):Xn(o,!!l.multiple,l.multiple?[]:"",!1))}o[ao]=l}catch(R){_e(e,e.return,R)}}break;case 6:if(mt(t,e),kt(e),r&4){if(e.stateNode===null)throw Error(C(162));o=e.stateNode,l=e.memoizedProps;try{o.nodeValue=l}catch(R){_e(e,e.return,R)}}break;case 3:if(mt(t,e),kt(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{oo(t.containerInfo)}catch(R){_e(e,e.return,R)}break;case 4:mt(t,e),kt(e);break;case 13:mt(t,e),kt(e),o=e.child,o.flags&8192&&(l=o.memoizedState!==null,o.stateNode.isHidden=l,!l||o.alternate!==null&&o.alternate.memoizedState!==null||(Xs=Re())),r&4&&Ac(e);break;case 22:if(d=n!==null&&n.memoizedState!==null,e.mode&1?(De=(a=De)||d,mt(t,e),De=a):mt(t,e),kt(e),r&8192){if(a=e.memoizedState!==null,(e.stateNode.isHidden=a)&&!d&&e.mode&1)for(D=e,d=e.child;d!==null;){for(f=D=d;D!==null;){switch(m=D,_=m.child,m.tag){case 0:case 11:case 14:case 15:Gr(4,m,m.return);break;case 1:Zn(m,m.return);var S=m.stateNode;if(typeof S.componentWillUnmount=="function"){r=m,n=m.return;try{t=r,S.props=t.memoizedProps,S.state=t.memoizedState,S.componentWillUnmount()}catch(R){_e(r,n,R)}}break;case 5:Zn(m,m.return);break;case 22:if(m.memoizedState!==null){Mc(f);continue}}_!==null?(_.return=m,D=_):Mc(f)}d=d.sibling}e:for(d=null,f=e;;){if(f.tag===5){if(d===null){d=f;try{o=f.stateNode,a?(l=o.style,typeof l.setProperty=="function"?l.setProperty("display","none","important"):l.display="none"):(u=f.stateNode,s=f.memoizedProps.style,i=s!=null&&s.hasOwnProperty("display")?s.display:null,u.style.display=$f("display",i))}catch(R){_e(e,e.return,R)}}}else if(f.tag===6){if(d===null)try{f.stateNode.nodeValue=a?"":f.memoizedProps}catch(R){_e(e,e.return,R)}}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:mt(t,e),kt(e),r&4&&Ac(e);break;case 21:break;default:mt(t,e),kt(e)}}function kt(e){var t=e.flags;if(t&2){try{e:{for(var n=e.return;n!==null;){if(ip(n)){var r=n;break e}n=n.return}throw Error(C(160))}switch(r.tag){case 5:var o=r.stateNode;r.flags&32&&(eo(o,""),r.flags&=-33);var l=Lc(e);Xu(e,l,o);break;case 3:case 4:var i=r.stateNode.containerInfo,u=Lc(e);Yu(e,u,i);break;default:throw Error(C(161))}}catch(s){_e(e,e.return,s)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function gm(e,t,n){D=e,ap(e)}function ap(e,t,n){for(var r=(e.mode&1)!==0;D!==null;){var o=D,l=o.child;if(o.tag===22&&r){var i=o.memoizedState!==null||Go;if(!i){var u=o.alternate,s=u!==null&&u.memoizedState!==null||De;u=Go;var a=De;if(Go=i,(De=s)&&!a)for(D=o;D!==null;)i=D,s=i.child,i.tag===22&&i.memoizedState!==null?Pc(o):s!==null?(s.return=i,D=s):Pc(o);for(;l!==null;)D=l,ap(l),l=l.sibling;D=o,Go=u,De=a}xc(e)}else o.subtreeFlags&8772&&l!==null?(l.return=o,D=l):xc(e)}}function xc(e){for(;D!==null;){var t=D;if(t.flags&8772){var n=t.alternate;try{if(t.flags&8772)switch(t.tag){case 0:case 11:case 15:De||ql(5,t);break;case 1:var r=t.stateNode;if(t.flags&4&&!De)if(n===null)r.componentDidMount();else{var o=t.elementType===t.type?n.memoizedProps:gt(t.type,n.memoizedProps);r.componentDidUpdate(o,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var l=t.updateQueue;l!==null&&pc(t,l,r);break;case 3:var i=t.updateQueue;if(i!==null){if(n=null,t.child!==null)switch(t.child.tag){case 5:n=t.child.stateNode;break;case 1:n=t.child.stateNode}pc(t,i,n)}break;case 5:var u=t.stateNode;if(n===null&&t.flags&4){n=u;var s=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":s.autoFocus&&n.focus();break;case"img":s.src&&(n.src=s.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var a=t.alternate;if(a!==null){var d=a.memoizedState;if(d!==null){var f=d.dehydrated;f!==null&&oo(f)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(C(163))}De||t.flags&512&&Zu(t)}catch(m){_e(t,t.return,m)}}if(t===e){D=null;break}if(n=t.sibling,n!==null){n.return=t.return,D=n;break}D=t.return}}function Mc(e){for(;D!==null;){var t=D;if(t===e){D=null;break}var n=t.sibling;if(n!==null){n.return=t.return,D=n;break}D=t.return}}function Pc(e){for(;D!==null;){var t=D;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{ql(4,t)}catch(s){_e(t,n,s)}break;case 1:var r=t.stateNode;if(typeof r.componentDidMount=="function"){var o=t.return;try{r.componentDidMount()}catch(s){_e(t,o,s)}}var l=t.return;try{Zu(t)}catch(s){_e(t,l,s)}break;case 5:var i=t.return;try{Zu(t)}catch(s){_e(t,i,s)}}}catch(s){_e(t,t.return,s)}if(t===e){D=null;break}var u=t.sibling;if(u!==null){u.return=t.return,D=u;break}D=t.return}}var Sm=Math.ceil,$l=Bt.ReactCurrentDispatcher,Zs=Bt.ReactCurrentOwner,ft=Bt.ReactCurrentBatchConfig,ne=0,Ae=null,Ee=null,Me=0,Je=0,Yn=dn(0),Ce=0,mo=null,Ln=0,Jl=0,Ys=0,Qr=null,He=null,Xs=0,cr=1/0,Pt=null,Il=!1,qu=null,on=null,Qo=!1,Yt=null,Vl=0,Zr=0,Ju=null,cl=-1,fl=0;function Fe(){return ne&6?Re():cl!==-1?cl:cl=Re()}function ln(e){return e.mode&1?ne&2&&Me!==0?Me&-Me:nm.transition!==null?(fl===0&&(fl=Kf()),fl):(e=re,e!==0||(e=window.event,e=e===void 0?16:Jf(e.type)),e):1}function Rt(e,t,n,r){if(50<Zr)throw Zr=0,Ju=null,Error(C(185));go(e,n,r),(!(ne&2)||e!==Ae)&&(e===Ae&&(!(ne&2)&&(Jl|=n),Ce===4&&Qt(e,Me)),Qe(e,r),n===1&&ne===0&&!(t.mode&1)&&(cr=Re()+500,Zl&&pn()))}function Qe(e,t){var n=e.callbackNode;n0(e,t);var r=gl(e,e===Ae?Me:0);if(r===0)n!==null&&Ba(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(n!=null&&Ba(n),t===1)e.tag===0?tm($c.bind(null,e)):gd($c.bind(null,e)),X0(function(){!(ne&6)&&pn()}),n=null;else{switch(Gf(r)){case 1:n=Es;break;case 4:n=Hf;break;case 16:n=yl;break;case 536870912:n=bf;break;default:n=yl}n=yp(n,cp.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function cp(e,t){if(cl=-1,fl=0,ne&6)throw Error(C(327));var n=e.callbackNode;if(nr()&&e.callbackNode!==n)return null;var r=gl(e,e===Ae?Me:0);if(r===0)return null;if(r&30||r&e.expiredLanes||t)t=zl(e,r);else{t=r;var o=ne;ne|=2;var l=dp();(Ae!==e||Me!==t)&&(Pt=null,cr=Re()+500,En(e,t));do try{Rm();break}catch(u){fp(e,u)}while(!0);zs(),$l.current=l,ne=o,Ee!==null?t=0:(Ae=null,Me=0,t=Ce)}if(t!==0){if(t===2&&(o=Cu(e),o!==0&&(r=o,t=es(e,o))),t===1)throw n=mo,En(e,0),Qt(e,r),Qe(e,Re()),n;if(t===6)Qt(e,r);else{if(o=e.current.alternate,!(r&30)&&!wm(o)&&(t=zl(e,r),t===2&&(l=Cu(e),l!==0&&(r=l,t=es(e,l))),t===1))throw n=mo,En(e,0),Qt(e,r),Qe(e,Re()),n;switch(e.finishedWork=o,e.finishedLanes=r,t){case 0:case 1:throw Error(C(345));case 2:gn(e,He,Pt);break;case 3:if(Qt(e,r),(r&130023424)===r&&(t=Xs+500-Re(),10<t)){if(gl(e,0)!==0)break;if(o=e.suspendedLanes,(o&r)!==r){Fe(),e.pingedLanes|=e.suspendedLanes&o;break}e.timeoutHandle=Iu(gn.bind(null,e,He,Pt),t);break}gn(e,He,Pt);break;case 4:if(Qt(e,r),(r&4194240)===r)break;for(t=e.eventTimes,o=-1;0<r;){var i=31-_t(r);l=1<<i,i=t[i],i>o&&(o=i),r&=~l}if(r=o,r=Re()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*Sm(r/1960))-r,10<r){e.timeoutHandle=Iu(gn.bind(null,e,He,Pt),r);break}gn(e,He,Pt);break;case 5:gn(e,He,Pt);break;default:throw Error(C(329))}}}return Qe(e,Re()),e.callbackNode===n?cp.bind(null,e):null}function es(e,t){var n=Qr;return e.current.memoizedState.isDehydrated&&(En(e,t).flags|=256),e=zl(e,t),e!==2&&(t=He,He=n,t!==null&&ts(t)),e}function ts(e){He===null?He=e:He.push.apply(He,e)}function wm(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 o=n[r],l=o.getSnapshot;o=o.value;try{if(!Et(l(),o))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 Qt(e,t){for(t&=~Ys,t&=~Jl,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-_t(t),r=1<<n;e[n]=-1,t&=~r}}function $c(e){if(ne&6)throw Error(C(327));nr();var t=gl(e,0);if(!(t&1))return Qe(e,Re()),null;var n=zl(e,t);if(e.tag!==0&&n===2){var r=Cu(e);r!==0&&(t=r,n=es(e,r))}if(n===1)throw n=mo,En(e,0),Qt(e,t),Qe(e,Re()),n;if(n===6)throw Error(C(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,gn(e,He,Pt),Qe(e,Re()),null}function qs(e,t){var n=ne;ne|=1;try{return e(t)}finally{ne=n,ne===0&&(cr=Re()+500,Zl&&pn())}}function An(e){Yt!==null&&Yt.tag===0&&!(ne&6)&&nr();var t=ne;ne|=1;var n=ft.transition,r=re;try{if(ft.transition=null,re=1,e)return e()}finally{re=r,ft.transition=n,ne=t,!(ne&6)&&pn()}}function Js(){Je=Yn.current,ce(Yn)}function En(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,Y0(n)),Ee!==null)for(n=Ee.return;n!==null;){var r=n;switch($s(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&El();break;case 3:sr(),ce(Ke),ce(Oe),js();break;case 5:Bs(r);break;case 4:sr();break;case 13:ce(ge);break;case 19:ce(ge);break;case 10:Ds(r.type._context);break;case 22:case 23:Js()}n=n.return}if(Ae=e,Ee=e=un(e.current,null),Me=Je=t,Ce=0,mo=null,Ys=Jl=Ln=0,He=Qr=null,_n!==null){for(t=0;t<_n.length;t++)if(n=_n[t],r=n.interleaved,r!==null){n.interleaved=null;var o=r.next,l=n.pending;if(l!==null){var i=l.next;l.next=o,r.next=i}n.pending=r}_n=null}return e}function fp(e,t){do{var n=Ee;try{if(zs(),ul.current=Pl,Ml){for(var r=Se.memoizedState;r!==null;){var o=r.queue;o!==null&&(o.pending=null),r=r.next}Ml=!1}if(Nn=0,Le=Te=Se=null,Kr=!1,po=0,Zs.current=null,n===null||n.return===null){Ce=1,mo=t,Ee=null;break}e:{var l=e,i=n.return,u=n,s=t;if(t=Me,u.flags|=32768,s!==null&&typeof s=="object"&&typeof s.then=="function"){var a=s,d=u,f=d.tag;if(!(d.mode&1)&&(f===0||f===11||f===15)){var m=d.alternate;m?(d.updateQueue=m.updateQueue,d.memoizedState=m.memoizedState,d.lanes=m.lanes):(d.updateQueue=null,d.memoizedState=null)}var _=wc(i);if(_!==null){_.flags&=-257,_c(_,i,u,l,t),_.mode&1&&Sc(l,a,t),t=_,s=a;var S=t.updateQueue;if(S===null){var R=new Set;R.add(s),t.updateQueue=R}else S.add(s);break e}else{if(!(t&1)){Sc(l,a,t),ea();break e}s=Error(C(426))}}else if(he&&u.mode&1){var B=wc(i);if(B!==null){!(B.flags&65536)&&(B.flags|=256),_c(B,i,u,l,t),Is(ar(s,u));break e}}l=s=ar(s,u),Ce!==4&&(Ce=2),Qr===null?Qr=[l]:Qr.push(l),l=i;do{switch(l.tag){case 3:l.flags|=65536,t&=-t,l.lanes|=t;var h=Qd(l,s,t);dc(l,h);break e;case 1:u=s;var c=l.type,p=l.stateNode;if(!(l.flags&128)&&(typeof c.getDerivedStateFromError=="function"||p!==null&&typeof p.componentDidCatch=="function"&&(on===null||!on.has(p)))){l.flags|=65536,t&=-t,l.lanes|=t;var w=Zd(l,u,t);dc(l,w);break e}}l=l.return}while(l!==null)}hp(n)}catch(E){t=E,Ee===n&&n!==null&&(Ee=n=n.return);continue}break}while(!0)}function dp(){var e=$l.current;return $l.current=Pl,e===null?Pl:e}function ea(){(Ce===0||Ce===3||Ce===2)&&(Ce=4),Ae===null||!(Ln&268435455)&&!(Jl&268435455)||Qt(Ae,Me)}function zl(e,t){var n=ne;ne|=2;var r=dp();(Ae!==e||Me!==t)&&(Pt=null,En(e,t));do try{_m();break}catch(o){fp(e,o)}while(!0);if(zs(),ne=n,$l.current=r,Ee!==null)throw Error(C(261));return Ae=null,Me=0,Ce}function _m(){for(;Ee!==null;)pp(Ee)}function Rm(){for(;Ee!==null&&!Gv();)pp(Ee)}function pp(e){var t=mp(e.alternate,e,Je);e.memoizedProps=e.pendingProps,t===null?hp(e):Ee=t,Zs.current=null}function hp(e){var t=e;do{var n=t.alternate;if(e=t.return,t.flags&32768){if(n=vm(n,t),n!==null){n.flags&=32767,Ee=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{Ce=6,Ee=null;return}}else if(n=hm(n,t,Je),n!==null){Ee=n;return}if(t=t.sibling,t!==null){Ee=t;return}Ee=t=e}while(t!==null);Ce===0&&(Ce=5)}function gn(e,t,n){var r=re,o=ft.transition;try{ft.transition=null,re=1,Em(e,t,n,r)}finally{ft.transition=o,re=r}return null}function Em(e,t,n,r){do nr();while(Yt!==null);if(ne&6)throw Error(C(327));n=e.finishedWork;var o=e.finishedLanes;if(n===null)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(C(177));e.callbackNode=null,e.callbackPriority=0;var l=n.lanes|n.childLanes;if(r0(e,l),e===Ae&&(Ee=Ae=null,Me=0),!(n.subtreeFlags&2064)&&!(n.flags&2064)||Qo||(Qo=!0,yp(yl,function(){return nr(),null})),l=(n.flags&15990)!==0,n.subtreeFlags&15990||l){l=ft.transition,ft.transition=null;var i=re;re=1;var u=ne;ne|=4,Zs.current=null,ym(e,n),sp(n,e),W0(Pu),Sl=!!Mu,Pu=Mu=null,e.current=n,gm(n),Qv(),ne=u,re=i,ft.transition=l}else e.current=n;if(Qo&&(Qo=!1,Yt=e,Vl=o),l=e.pendingLanes,l===0&&(on=null),Xv(n.stateNode),Qe(e,Re()),t!==null)for(r=e.onRecoverableError,n=0;n<t.length;n++)o=t[n],r(o.value,{componentStack:o.stack,digest:o.digest});if(Il)throw Il=!1,e=qu,qu=null,e;return Vl&1&&e.tag!==0&&nr(),l=e.pendingLanes,l&1?e===Ju?Zr++:(Zr=0,Ju=e):Zr=0,pn(),null}function nr(){if(Yt!==null){var e=Gf(Vl),t=ft.transition,n=re;try{if(ft.transition=null,re=16>e?16:e,Yt===null)var r=!1;else{if(e=Yt,Yt=null,Vl=0,ne&6)throw Error(C(331));var o=ne;for(ne|=4,D=e.current;D!==null;){var l=D,i=l.child;if(D.flags&16){var u=l.deletions;if(u!==null){for(var s=0;s<u.length;s++){var a=u[s];for(D=a;D!==null;){var d=D;switch(d.tag){case 0:case 11:case 15:Gr(8,d,l)}var f=d.child;if(f!==null)f.return=d,D=f;else for(;D!==null;){d=D;var m=d.sibling,_=d.return;if(lp(d),d===a){D=null;break}if(m!==null){m.return=_,D=m;break}D=_}}}var S=l.alternate;if(S!==null){var R=S.child;if(R!==null){S.child=null;do{var B=R.sibling;R.sibling=null,R=B}while(R!==null)}}D=l}}if(l.subtreeFlags&2064&&i!==null)i.return=l,D=i;else e:for(;D!==null;){if(l=D,l.flags&2048)switch(l.tag){case 0:case 11:case 15:Gr(9,l,l.return)}var h=l.sibling;if(h!==null){h.return=l.return,D=h;break e}D=l.return}}var c=e.current;for(D=c;D!==null;){i=D;var p=i.child;if(i.subtreeFlags&2064&&p!==null)p.return=i,D=p;else e:for(i=c;D!==null;){if(u=D,u.flags&2048)try{switch(u.tag){case 0:case 11:case 15:ql(9,u)}}catch(E){_e(u,u.return,E)}if(u===i){D=null;break e}var w=u.sibling;if(w!==null){w.return=u.return,D=w;break e}D=u.return}}if(ne=o,pn(),Nt&&typeof Nt.onPostCommitFiberRoot=="function")try{Nt.onPostCommitFiberRoot(Hl,e)}catch{}r=!0}return r}finally{re=n,ft.transition=t}}return!1}function Ic(e,t,n){t=ar(n,t),t=Qd(e,t,1),e=rn(e,t,1),t=Fe(),e!==null&&(go(e,1,t),Qe(e,t))}function _e(e,t,n){if(e.tag===3)Ic(e,e,n);else for(;t!==null;){if(t.tag===3){Ic(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(on===null||!on.has(r))){e=ar(n,e),e=Zd(t,e,1),t=rn(t,e,1),e=Fe(),t!==null&&(go(t,1,e),Qe(t,e));break}}t=t.return}}function km(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),t=Fe(),e.pingedLanes|=e.suspendedLanes&n,Ae===e&&(Me&n)===n&&(Ce===4||Ce===3&&(Me&130023424)===Me&&500>Re()-Xs?En(e,0):Ys|=n),Qe(e,t)}function vp(e,t){t===0&&(e.mode&1?(t=Oo,Oo<<=1,!(Oo&130023424)&&(Oo=4194304)):t=1);var n=Fe();e=Ut(e,t),e!==null&&(go(e,t,n),Qe(e,n))}function Tm(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),vp(e,n)}function Cm(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,o=e.memoizedState;o!==null&&(n=o.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(C(314))}r!==null&&r.delete(t),vp(e,n)}var mp;mp=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||Ke.current)be=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return be=!1,pm(e,t,n);be=!!(e.flags&131072)}else be=!1,he&&t.flags&1048576&&Sd(t,Cl,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;al(e,t),e=t.pendingProps;var o=lr(t,Oe.current);tr(t,n),o=Hs(null,t,r,e,o,n);var l=bs();return t.flags|=1,typeof o=="object"&&o!==null&&typeof o.render=="function"&&o.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Ge(r)?(l=!0,kl(t)):l=!1,t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,Us(t),o.updater=Yl,t.stateNode=o,o._reactInternals=t,Bu(t,r,e,n),t=Hu(null,t,r,!0,l,n)):(t.tag=0,he&&l&&Ps(t),Ue(null,t,o,n),t=t.child),t;case 16:r=t.elementType;e:{switch(al(e,t),e=t.pendingProps,o=r._init,r=o(r._payload),t.type=r,o=t.tag=Lm(r),e=gt(r,e),o){case 0:t=Wu(null,t,r,e,n);break e;case 1:t=kc(null,t,r,e,n);break e;case 11:t=Rc(null,t,r,e,n);break e;case 14:t=Ec(null,t,r,gt(r.type,e),n);break e}throw Error(C(306,r,""))}return t;case 0:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:gt(r,o),Wu(e,t,r,o,n);case 1:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:gt(r,o),kc(e,t,r,o,n);case 3:e:{if(Jd(t),e===null)throw Error(C(387));r=t.pendingProps,l=t.memoizedState,o=l.element,Ed(e,t),Al(t,r,null,n);var i=t.memoizedState;if(r=i.element,l.isDehydrated)if(l={element:r,isDehydrated:!1,cache:i.cache,pendingSuspenseBoundaries:i.pendingSuspenseBoundaries,transitions:i.transitions},t.updateQueue.baseState=l,t.memoizedState=l,t.flags&256){o=ar(Error(C(423)),t),t=Tc(e,t,r,n,o);break e}else if(r!==o){o=ar(Error(C(424)),t),t=Tc(e,t,r,n,o);break e}else for(et=nn(t.stateNode.containerInfo.firstChild),tt=t,he=!0,wt=null,n=Nd(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(ir(),r===o){t=Ft(e,t,n);break e}Ue(e,t,r,n)}t=t.child}return t;case 5:return Ld(t),e===null&&Ou(t),r=t.type,o=t.pendingProps,l=e!==null?e.memoizedProps:null,i=o.children,$u(r,o)?i=null:l!==null&&$u(r,l)&&(t.flags|=32),qd(e,t),Ue(e,t,i,n),t.child;case 6:return e===null&&Ou(t),null;case 13:return ep(e,t,n);case 4:return Fs(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=ur(t,null,r,n):Ue(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:gt(r,o),Rc(e,t,r,o,n);case 7:return Ue(e,t,t.pendingProps,n),t.child;case 8:return Ue(e,t,t.pendingProps.children,n),t.child;case 12:return Ue(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,o=t.pendingProps,l=t.memoizedProps,i=o.value,ue(Nl,r._currentValue),r._currentValue=i,l!==null)if(Et(l.value,i)){if(l.children===o.children&&!Ke.current){t=Ft(e,t,n);break e}}else for(l=t.child,l!==null&&(l.return=t);l!==null;){var u=l.dependencies;if(u!==null){i=l.child;for(var s=u.firstContext;s!==null;){if(s.context===r){if(l.tag===1){s=zt(-1,n&-n),s.tag=2;var a=l.updateQueue;if(a!==null){a=a.shared;var d=a.pending;d===null?s.next=s:(s.next=d.next,d.next=s),a.pending=s}}l.lanes|=n,s=l.alternate,s!==null&&(s.lanes|=n),Uu(l.return,n,t),u.lanes|=n;break}s=s.next}}else if(l.tag===10)i=l.type===t.type?null:l.child;else if(l.tag===18){if(i=l.return,i===null)throw Error(C(341));i.lanes|=n,u=i.alternate,u!==null&&(u.lanes|=n),Uu(i,n,t),i=l.sibling}else i=l.child;if(i!==null)i.return=l;else for(i=l;i!==null;){if(i===t){i=null;break}if(l=i.sibling,l!==null){l.return=i.return,i=l;break}i=i.return}l=i}Ue(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,tr(t,n),o=dt(o),r=r(o),t.flags|=1,Ue(e,t,r,n),t.child;case 14:return r=t.type,o=gt(r,t.pendingProps),o=gt(r.type,o),Ec(e,t,r,o,n);case 15:return Yd(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:gt(r,o),al(e,t),t.tag=1,Ge(r)?(e=!0,kl(t)):e=!1,tr(t,n),Td(t,r,o),Bu(t,r,o,n),Hu(null,t,r,!0,e,n);case 19:return tp(e,t,n);case 22:return Xd(e,t,n)}throw Error(C(156,t.tag))};function yp(e,t){return Wf(e,t)}function Nm(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 ct(e,t,n,r){return new Nm(e,t,n,r)}function ta(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Lm(e){if(typeof e=="function")return ta(e)?1:0;if(e!=null){if(e=e.$$typeof,e===ws)return 11;if(e===_s)return 14}return 2}function un(e,t){var n=e.alternate;return n===null?(n=ct(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 dl(e,t,n,r,o,l){var i=2;if(r=e,typeof e=="function")ta(e)&&(i=1);else if(typeof e=="string")i=5;else e:switch(e){case Fn:return kn(n.children,o,l,t);case Ss:i=8,o|=8;break;case fu:return e=ct(12,n,t,o|2),e.elementType=fu,e.lanes=l,e;case du:return e=ct(13,n,t,o),e.elementType=du,e.lanes=l,e;case pu:return e=ct(19,n,t,o),e.elementType=pu,e.lanes=l,e;case Cf:return ei(n,o,l,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case kf:i=10;break e;case Tf:i=9;break e;case ws:i=11;break e;case _s:i=14;break e;case Ht:i=16,r=null;break e}throw Error(C(130,e==null?e:typeof e,""))}return t=ct(i,n,t,o),t.elementType=e,t.type=r,t.lanes=l,t}function kn(e,t,n,r){return e=ct(7,e,r,t),e.lanes=n,e}function ei(e,t,n,r){return e=ct(22,e,r,t),e.elementType=Cf,e.lanes=n,e.stateNode={isHidden:!1},e}function qi(e,t,n){return e=ct(6,e,null,t),e.lanes=n,e}function Ji(e,t,n){return t=ct(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Am(e,t,n,r,o){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=$i(0),this.expirationTimes=$i(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=$i(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function na(e,t,n,r,o,l,i,u,s){return e=new Am(e,t,n,u,s),t===1?(t=1,l===!0&&(t|=8)):t=0,l=ct(3,null,null,t),e.current=l,l.stateNode=e,l.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Us(l),e}function xm(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:Un,key:r==null?null:""+r,children:e,containerInfo:t,implementation:n}}function gp(e){if(!e)return an;e=e._reactInternals;e:{if($n(e)!==e||e.tag!==1)throw Error(C(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(Ge(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(C(171))}if(e.tag===1){var n=e.type;if(Ge(n))return yd(e,n,t)}return t}function Sp(e,t,n,r,o,l,i,u,s){return e=na(n,r,!0,e,o,l,i,u,s),e.context=gp(null),n=e.current,r=Fe(),o=ln(n),l=zt(r,o),l.callback=t??null,rn(n,l,o),e.current.lanes=o,go(e,o,r),Qe(e,r),e}function ti(e,t,n,r){var o=t.current,l=Fe(),i=ln(o);return n=gp(n),t.context===null?t.context=n:t.pendingContext=n,t=zt(l,i),t.payload={element:e},r=r===void 0?null:r,r!==null&&(t.callback=r),e=rn(o,t,i),e!==null&&(Rt(e,o,i,l),il(e,o,i)),i}function Dl(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 Vc(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function ra(e,t){Vc(e,t),(e=e.alternate)&&Vc(e,t)}function Mm(){return null}var wp=typeof reportError=="function"?reportError:function(e){console.error(e)};function oa(e){this._internalRoot=e}ni.prototype.render=oa.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(C(409));ti(e,t,null,null)};ni.prototype.unmount=oa.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;An(function(){ti(null,e,null,null)}),t[Ot]=null}};function ni(e){this._internalRoot=e}ni.prototype.unstable_scheduleHydration=function(e){if(e){var t=Yf();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Gt.length&&t!==0&&t<Gt[n].priority;n++);Gt.splice(n,0,e),n===0&&qf(e)}};function la(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function ri(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function zc(){}function Pm(e,t,n,r,o){if(o){if(typeof r=="function"){var l=r;r=function(){var a=Dl(i);l.call(a)}}var i=Sp(t,r,e,0,null,!1,!1,"",zc);return e._reactRootContainer=i,e[Ot]=i.current,uo(e.nodeType===8?e.parentNode:e),An(),i}for(;o=e.lastChild;)e.removeChild(o);if(typeof r=="function"){var u=r;r=function(){var a=Dl(s);u.call(a)}}var s=na(e,0,!1,null,null,!1,!1,"",zc);return e._reactRootContainer=s,e[Ot]=s.current,uo(e.nodeType===8?e.parentNode:e),An(function(){ti(t,s,n,r)}),s}function oi(e,t,n,r,o){var l=n._reactRootContainer;if(l){var i=l;if(typeof o=="function"){var u=o;o=function(){var s=Dl(i);u.call(s)}}ti(t,i,e,o)}else i=Pm(n,t,e,o,r);return Dl(i)}Qf=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=Or(t.pendingLanes);n!==0&&(ks(t,n|1),Qe(t,Re()),!(ne&6)&&(cr=Re()+500,pn()))}break;case 13:An(function(){var r=Ut(e,1);if(r!==null){var o=Fe();Rt(r,e,1,o)}}),ra(e,1)}};Ts=function(e){if(e.tag===13){var t=Ut(e,134217728);if(t!==null){var n=Fe();Rt(t,e,134217728,n)}ra(e,134217728)}};Zf=function(e){if(e.tag===13){var t=ln(e),n=Ut(e,t);if(n!==null){var r=Fe();Rt(n,e,t,r)}ra(e,t)}};Yf=function(){return re};Xf=function(e,t){var n=re;try{return re=e,t()}finally{re=n}};Eu=function(e,t,n){switch(t){case"input":if(mu(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 o=Ql(r);if(!o)throw Error(C(90));Lf(r),mu(r,o)}}}break;case"textarea":xf(e,n);break;case"select":t=n.value,t!=null&&Xn(e,!!n.multiple,t,!1)}};Df=qs;Of=An;var $m={usingClientEntryPoint:!1,Events:[wo,Hn,Ql,Vf,zf,qs]},xr={findFiberByHostInstance:wn,bundleType:0,version:"18.2.0",rendererPackageName:"react-dom"},Im={bundleType:xr.bundleType,version:xr.version,rendererPackageName:xr.rendererPackageName,rendererConfig:xr.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:Bt.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=Bf(e),e===null?null:e.stateNode},findFiberByHostInstance:xr.findFiberByHostInstance||Mm,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.2.0-next-9e3b772b8-20220608"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Zo=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Zo.isDisabled&&Zo.supportsFiber)try{Hl=Zo.inject(Im),Nt=Zo}catch{}}rt.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=$m;rt.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!la(t))throw Error(C(200));return xm(e,t,null,n)};rt.createRoot=function(e,t){if(!la(e))throw Error(C(299));var n=!1,r="",o=wp;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onRecoverableError!==void 0&&(o=t.onRecoverableError)),t=na(e,1,!1,null,null,n,!1,r,o),e[Ot]=t.current,uo(e.nodeType===8?e.parentNode:e),new oa(t)};rt.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(C(188)):(e=Object.keys(e).join(","),Error(C(268,e)));return e=Bf(t),e=e===null?null:e.stateNode,e};rt.flushSync=function(e){return An(e)};rt.hydrate=function(e,t,n){if(!ri(t))throw Error(C(200));return oi(null,e,t,!0,n)};rt.hydrateRoot=function(e,t,n){if(!la(e))throw Error(C(405));var r=n!=null&&n.hydratedSources||null,o=!1,l="",i=wp;if(n!=null&&(n.unstable_strictMode===!0&&(o=!0),n.identifierPrefix!==void 0&&(l=n.identifierPrefix),n.onRecoverableError!==void 0&&(i=n.onRecoverableError)),t=Sp(t,null,e,1,n??null,o,!1,l,i),e[Ot]=t.current,uo(e),r)for(e=0;e<r.length;e++)n=r[e],o=n._getVersion,o=o(n._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[n,o]:t.mutableSourceEagerHydrationData.push(n,o);return new ni(t)};rt.render=function(e,t,n){if(!ri(t))throw Error(C(200));return oi(null,e,t,!1,n)};rt.unmountComponentAtNode=function(e){if(!ri(e))throw Error(C(40));return e._reactRootContainer?(An(function(){oi(null,null,e,!1,function(){e._reactRootContainer=null,e[Ot]=null})}),!0):!1};rt.unstable_batchedUpdates=qs;rt.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!ri(n))throw Error(C(200));if(e==null||e._reactInternals===void 0)throw Error(C(38));return oi(e,t,n,!1,r)};rt.version="18.2.0-next-9e3b772b8-20220608";function _p(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(_p)}catch(e){console.error(e)}}_p(),Sf.exports=rt;var Rp=Sf.exports;const Vm=sf(Rp);var Ep={};function zm(e){const t=new Error(e);if(t.stack===void 0)try{throw t}catch{}return t}var Dm=zm,X=Dm;function Om(e){return!!e&&typeof e.then=="function"}var ae=Om;function Um(e,t){if(e!=null)return e;throw X(t??"Got unexpected null or undefined")}var ve=Um;function Z(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class li{getValue(){throw X("BaseLoadable")}toPromise(){throw X("BaseLoadable")}valueMaybe(){throw X("BaseLoadable")}valueOrThrow(){throw X(`Loadable expected value, but in "${this.state}" state`)}promiseMaybe(){throw X("BaseLoadable")}promiseOrThrow(){throw X(`Loadable expected promise, but in "${this.state}" state`)}errorMaybe(){throw X("BaseLoadable")}errorOrThrow(){throw X(`Loadable expected error, but in "${this.state}" state`)}is(t){return t.state===this.state&&t.contents===this.contents}map(t){throw X("BaseLoadable")}}class Fm extends li{constructor(t){super(),Z(this,"state","hasValue"),Z(this,"contents",void 0),this.contents=t}getValue(){return this.contents}toPromise(){return Promise.resolve(this.contents)}valueMaybe(){return this.contents}valueOrThrow(){return this.contents}promiseMaybe(){}errorMaybe(){}map(t){try{const n=t(this.contents);return ae(n)?xn(n):fr(n)?n:Ro(n)}catch(n){return ae(n)?xn(n.next(()=>this.map(t))):ii(n)}}}class Bm extends li{constructor(t){super(),Z(this,"state","hasError"),Z(this,"contents",void 0),this.contents=t}getValue(){throw this.contents}toPromise(){return Promise.reject(this.contents)}valueMaybe(){}promiseMaybe(){}errorMaybe(){return this.contents}errorOrThrow(){return this.contents}map(t){return this}}class kp extends li{constructor(t){super(),Z(this,"state","loading"),Z(this,"contents",void 0),this.contents=t}getValue(){throw this.contents}toPromise(){return this.contents}valueMaybe(){}promiseMaybe(){return this.contents}promiseOrThrow(){return this.contents}errorMaybe(){}map(t){return xn(this.contents.then(n=>{const r=t(n);if(fr(r)){const o=r;switch(o.state){case"hasValue":return o.contents;case"hasError":throw o.contents;case"loading":return o.contents}}return r}).catch(n=>{if(ae(n))return n.then(()=>this.map(t).contents);throw n}))}}function Ro(e){return Object.freeze(new Fm(e))}function ii(e){return Object.freeze(new Bm(e))}function xn(e){return Object.freeze(new kp(e))}function Tp(){return Object.freeze(new kp(new Promise(()=>{})))}function jm(e){return e.every(t=>t.state==="hasValue")?Ro(e.map(t=>t.contents)):e.some(t=>t.state==="hasError")?ii(ve(e.find(t=>t.state==="hasError"),"Invalid loadable passed to loadableAll").contents):xn(Promise.all(e.map(t=>t.contents)))}function Cp(e){const n=(Array.isArray(e)?e:Object.getOwnPropertyNames(e).map(o=>e[o])).map(o=>fr(o)?o:ae(o)?xn(o):Ro(o)),r=jm(n);return Array.isArray(e)?r:r.map(o=>Object.getOwnPropertyNames(e).reduce((l,i,u)=>({...l,[i]:o[u]}),{}))}function fr(e){return e instanceof li}const Wm={of:e=>ae(e)?xn(e):fr(e)?e:Ro(e),error:e=>ii(e),loading:()=>Tp(),all:Cp,isLoadable:fr};var In={loadableWithValue:Ro,loadableWithError:ii,loadableWithPromise:xn,loadableLoading:Tp,loadableAll:Cp,isLoadable:fr,RecoilLoadable:Wm},Hm=In.loadableWithValue,bm=In.loadableWithError,Km=In.loadableWithPromise,Gm=In.loadableLoading,Qm=In.loadableAll,Zm=In.isLoadable,Ym=In.RecoilLoadable,Eo=Object.freeze({__proto__:null,loadableWithValue:Hm,loadableWithError:bm,loadableWithPromise:Km,loadableLoading:Gm,loadableAll:Qm,isLoadable:Zm,RecoilLoadable:Ym});const ns={RECOIL_DUPLICATE_ATOM_KEY_CHECKING_ENABLED:!0,RECOIL_GKS_ENABLED:new Set(["recoil_hamt_2020","recoil_sync_external_store","recoil_suppress_rerender_in_callback","recoil_memory_managament_2020"])};function Xm(e,t){var n,r;const o=(n=Ep[e])===null||n===void 0||(r=n.toLowerCase())===null||r===void 0?void 0:r.trim();if(o==null||o==="")return;if(!["true","false"].includes(o))throw X(`process.env.${e} value must be 'true', 'false', or empty: ${o}`);t(o==="true")}function qm(e,t){var n;const r=(n=Ep[e])===null||n===void 0?void 0:n.trim();r==null||r===""||t(r.split(/\s*,\s*|\s+/))}function Jm(){var e;typeof process>"u"||((e=process)===null||e===void 0?void 0:e.env)!=null&&(Xm("RECOIL_DUPLICATE_ATOM_KEY_CHECKING_ENABLED",t=>{ns.RECOIL_DUPLICATE_ATOM_KEY_CHECKING_ENABLED=t}),qm("RECOIL_GKS_ENABLED",t=>{t.forEach(n=>{ns.RECOIL_GKS_ENABLED.add(n)})}))}Jm();var Sr=ns;function ui(e){return Sr.RECOIL_GKS_ENABLED.has(e)}ui.setPass=e=>{Sr.RECOIL_GKS_ENABLED.add(e)};ui.setFail=e=>{Sr.RECOIL_GKS_ENABLED.delete(e)};ui.clear=()=>{Sr.RECOIL_GKS_ENABLED.clear()};var ie=ui;function e1(e,t,{error:n}={}){return null}var t1=e1,ia=t1,eu,tu,nu;const n1=(eu=me.createMutableSource)!==null&&eu!==void 0?eu:me.unstable_createMutableSource,Np=(tu=me.useMutableSource)!==null&&tu!==void 0?tu:me.unstable_useMutableSource,Lp=(nu=me.useSyncExternalStore)!==null&&nu!==void 0?nu:me.unstable_useSyncExternalStore;function r1(){var e;const{ReactCurrentDispatcher:t,ReactCurrentOwner:n}=me.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;return((e=t==null?void 0:t.current)!==null&&e!==void 0?e:n.currentDispatcher).useSyncExternalStore!=null}function o1(){return ie("recoil_transition_support")?{mode:"TRANSITION_SUPPORT",early:!0,concurrent:!0}:ie("recoil_sync_external_store")&&Lp!=null?{mode:"SYNC_EXTERNAL_STORE",early:!0,concurrent:!1}:ie("recoil_mutable_source")&&Np!=null&&typeof window<"u"&&!window.$disableRecoilValueMutableSource_TEMP_HACK_DO_NOT_USE?ie("recoil_suppress_rerender_in_callback")?{mode:"MUTABLE_SOURCE",early:!0,concurrent:!0}:{mode:"MUTABLE_SOURCE",early:!1,concurrent:!1}:ie("recoil_suppress_rerender_in_callback")?{mode:"LEGACY",early:!0,concurrent:!1}:{mode:"LEGACY",early:!1,concurrent:!1}}function l1(){return!1}var ko={createMutableSource:n1,useMutableSource:Np,useSyncExternalStore:Lp,currentRendererSupportsUseSyncExternalStore:r1,reactMode:o1,isFastRefreshEnabled:l1};class ua{constructor(t){Z(this,"key",void 0),this.key=t}toJSON(){return{key:this.key}}}class Ap extends ua{}class xp extends ua{}function i1(e){return e instanceof Ap||e instanceof xp}var si={AbstractRecoilValue:ua,RecoilState:Ap,RecoilValueReadOnly:xp,isRecoilValue:i1},u1=si.AbstractRecoilValue,s1=si.RecoilState,a1=si.RecoilValueReadOnly,c1=si.isRecoilValue,dr=Object.freeze({__proto__:null,AbstractRecoilValue:u1,RecoilState:s1,RecoilValueReadOnly:a1,isRecoilValue:c1});function f1(e,t){return function*(){let n=0;for(const r of e)yield t(r,n++)}()}var ai=f1;class Mp{}const d1=new Mp,Mn=new Map,sa=new Map;function p1(e){return ai(e,t=>ve(sa.get(t)))}function h1(e){if(Mn.has(e)){const t=`Duplicate atom key "${e}". This is a FATAL ERROR in production. But it is safe to ignore this warning if it occurred because of - hot module replacement.`;console.warn(t)}}function v1(e){Sr.RECOIL_DUPLICATE_ATOM_KEY_CHECKING_ENABLED&&h1(e.key),Mn.set(e.key,e);const t=e.set==null?new dr.RecoilValueReadOnly(e.key):new dr.RecoilState(e.key);return sa.set(e.key,t),t}class Pp extends Error{}function m1(e){const t=Mn.get(e);if(t==null)throw new Pp(`Missing definition for RecoilValue: "${e}""`);return t}function y1(e){return Mn.get(e)}const Ol=new Map;function g1(e){var t;if(!ie("recoil_memory_managament_2020"))return;const n=Mn.get(e);if(n!=null&&(t=n.shouldDeleteConfigOnRelease)!==null&&t!==void 0&&t.call(n)){var r;Mn.delete(e),(r=$p(e))===null||r===void 0||r(),Ol.delete(e)}}function S1(e,t){ie("recoil_memory_managament_2020")&&(t===void 0?Ol.delete(e):Ol.set(e,t))}function $p(e){return Ol.get(e)}var Ye={nodes:Mn,recoilValues:sa,registerNode:v1,getNode:m1,getNodeMaybe:y1,deleteNodeConfigIfPossible:g1,setConfigDeletionHandler:S1,getConfigDeletionHandler:$p,recoilValuesForKeys:p1,NodeMissingError:Pp,DefaultValue:Mp,DEFAULT_VALUE:d1};function w1(e,t){t()}var _1={enqueueExecution:w1};function R1(e,t){return t={exports:{}},e(t,t.exports),t.exports}var E1=R1(function(e){var t=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(g){return typeof g}:function(g){return g&&typeof Symbol=="function"&&g.constructor===Symbol&&g!==Symbol.prototype?"symbol":typeof g},n={},r=5,o=Math.pow(2,r),l=o-1,i=o/2,u=o/4,s={},a=function(v){return function(){return v}},d=n.hash=function(g){var v=typeof g>"u"?"undefined":t(g);if(v==="number")return g;v!=="string"&&(g+="");for(var k=0,M=0,P=g.length;M<P;++M){var O=g.charCodeAt(M);k=(k<<5)-k+O|0}return k},f=function(v){return v-=v>>1&1431655765,v=(v&858993459)+(v>>2&858993459),v=v+(v>>4)&252645135,v+=v>>8,v+=v>>16,v&127},m=function(v,k){return k>>>v&l},_=function(v){return 1<<v},S=function(v,k){return f(v&k-1)},R=function(v,k,M,P){var O=P;if(!v){var Q=P.length;O=new Array(Q);for(var b=0;b<Q;++b)O[b]=P[b]}return O[k]=M,O},F=function(v,k,M){var P=M.length-1,O=0,Q=0,b=M;if(v)O=Q=k;else for(b=new Array(P);O<k;)b[Q++]=M[O++];for(++O;O<=P;)b[Q++]=M[O++];return v&&(b.length=P),b},h=function(v,k,M,P){var O=P.length;if(v){for(var Q=O;Q>=k;)P[Q--]=P[Q];return P[k]=M,P}for(var b=0,K=0,q=new Array(O+1);b<k;)q[K++]=P[b++];for(q[k]=M;b<O;)q[++K]=P[b++];return q},c=1,p=2,w=3,E=4,L={__hamt_isEmpty:!0},N=function(v){return v===L||v&&v.__hamt_isEmpty},V=function(v,k,M,P){return{type:c,edit:v,hash:k,key:M,value:P,_modify:$}},te=function(v,k,M){return{type:p,edit:v,hash:k,children:M,_modify:H}},U=function(v,k,M){return{type:w,edit:v,mask:k,children:M,_modify:I}},fe=function(v,k,M){return{type:E,edit:v,size:k,children:M,_modify:j}},lt=function(v){return v===L||v.type===c||v.type===p},oe=function(v,k,M,P,O){for(var Q=[],b=P,K=0,q=0;b;++q)b&1&&(Q[q]=O[K++]),b>>>=1;return Q[k]=M,fe(v,K+1,Q)},$e=function(v,k,M,P){for(var O=new Array(k-1),Q=0,b=0,K=0,q=P.length;K<q;++K)if(K!==M){var pe=P[K];pe&&!N(pe)&&(O[Q++]=pe,b|=1<<K)}return U(v,b,O)},Mt=function g(v,k,M,P,O,Q){if(M===O)return te(v,M,[Q,P]);var b=m(k,M),K=m(k,O);return U(v,_(b)|_(K),b===K?[g(v,k+r,M,P,O,Q)]:b<K?[P,Q]:[Q,P])},Ie=function(v,k,M,P,O,Q,b,K){for(var q=O.length,pe=0;pe<q;++pe){var We=O[pe];if(M(b,We.key)){var Ne=We.value,ut=Q(Ne);return ut===Ne?O:ut===s?(--K.value,F(v,pe,O)):R(v,pe,V(k,P,b,ut),O)}}var vt=Q();return vt===s?O:(++K.value,R(v,q,V(k,P,b,vt),O))},Xe=function(v,k){return v===k.edit},$=function(v,k,M,P,O,Q,b){if(k(Q,this.key)){var K=P(this.value);return K===this.value?this:K===s?(--b.value,L):Xe(v,this)?(this.value=K,this):V(v,O,Q,K)}var q=P();return q===s?this:(++b.value,Mt(v,M,this.hash,this,O,V(v,O,Q,q)))},H=function(v,k,M,P,O,Q,b){if(O===this.hash){var K=Xe(v,this),q=Ie(K,v,k,this.hash,this.children,P,Q,b);return q===this.children?this:q.length>1?te(v,this.hash,q):q[0]}var pe=P();return pe===s?this:(++b.value,Mt(v,M,this.hash,this,O,V(v,O,Q,pe)))},I=function(v,k,M,P,O,Q,b){var K=this.mask,q=this.children,pe=m(M,O),We=_(pe),Ne=S(K,We),ut=K&We,vt=ut?q[Ne]:L,zn=vt._modify(v,k,M+r,P,O,Q,b);if(vt===zn)return this;var Po=Xe(v,this),_r=K,Rr=void 0;if(ut&&N(zn)){if(_r&=~We,!_r)return L;if(q.length<=2&<(q[Ne^1]))return q[Ne^1];Rr=F(Po,Ne,q)}else if(!ut&&!N(zn)){if(q.length>=i)return oe(v,pe,zn,K,q);_r|=We,Rr=h(Po,Ne,zn,q)}else Rr=R(Po,Ne,zn,q);return Po?(this.mask=_r,this.children=Rr,this):U(v,_r,Rr)},j=function(v,k,M,P,O,Q,b){var K=this.size,q=this.children,pe=m(M,O),We=q[pe],Ne=(We||L)._modify(v,k,M+r,P,O,Q,b);if(We===Ne)return this;var ut=Xe(v,this),vt=void 0;if(N(We)&&!N(Ne))++K,vt=R(ut,pe,Ne,q);else if(!N(We)&&N(Ne)){if(--K,K<=u)return $e(v,K,pe,q);vt=R(ut,pe,L,q)}else vt=R(ut,pe,Ne,q);return ut?(this.size=K,this.children=vt,this):fe(v,K,vt)};L._modify=function(g,v,k,M,P,O,Q){var b=M();return b===s?L:(++Q.value,V(g,P,O,b))};function y(g,v,k,M,P){this._editable=g,this._edit=v,this._config=k,this._root=M,this._size=P}y.prototype.setTree=function(g,v){return this._editable?(this._root=g,this._size=v,this):g===this._root?this:new y(this._editable,this._edit,this._config,g,v)};var A=n.tryGetHash=function(g,v,k,M){for(var P=M._root,O=0,Q=M._config.keyEq;;)switch(P.type){case c:return Q(k,P.key)?P.value:g;case p:{if(v===P.hash)for(var b=P.children,K=0,q=b.length;K<q;++K){var pe=b[K];if(Q(k,pe.key))return pe.value}return g}case w:{var We=m(O,v),Ne=_(We);if(P.mask&Ne){P=P.children[S(P.mask,Ne)],O+=r;break}return g}case E:{if(P=P.children[m(O,v)],P){O+=r;break}return g}default:return g}};y.prototype.tryGetHash=function(g,v,k){return A(g,v,k,this)};var x=n.tryGet=function(g,v,k){return A(g,k._config.hash(v),v,k)};y.prototype.tryGet=function(g,v){return x(g,v,this)};var G=n.getHash=function(g,v,k){return A(void 0,g,v,k)};y.prototype.getHash=function(g,v){return G(g,v,this)},n.get=function(g,v){return A(void 0,v._config.hash(g),g,v)},y.prototype.get=function(g,v){return x(v,g,this)};var z=n.has=function(g,v,k){return A(s,g,v,k)!==s};y.prototype.hasHash=function(g,v){return z(g,v,this)};var Y=n.has=function(g,v){return z(v._config.hash(g),g,v)};y.prototype.has=function(g){return Y(g,this)};var J=function(v,k){return v===k};n.make=function(g){return new y(0,0,{keyEq:g&&g.keyEq||J,hash:g&&g.hash||d},L,0)},n.empty=n.make();var W=n.isEmpty=function(g){return g&&!!N(g._root)};y.prototype.isEmpty=function(){return W(this)};var de=n.modifyHash=function(g,v,k,M){var P={value:M._size},O=M._root._modify(M._editable?M._edit:NaN,M._config.keyEq,0,g,v,k,P);return M.setTree(O,P.value)};y.prototype.modifyHash=function(g,v,k){return de(k,g,v,this)};var ke=n.modify=function(g,v,k){return de(g,k._config.hash(v),v,k)};y.prototype.modify=function(g,v){return ke(v,g,this)};var le=n.setHash=function(g,v,k,M){return de(a(k),g,v,M)};y.prototype.setHash=function(g,v,k){return le(g,v,k,this)};var ye=n.set=function(g,v,k){return le(k._config.hash(g),g,v,k)};y.prototype.set=function(g,v){return ye(g,v,this)};var ht=a(s),mn=n.removeHash=function(g,v,k){return de(ht,g,v,k)};y.prototype.removeHash=y.prototype.deleteHash=function(g,v){return mn(g,v,this)};var it=n.remove=function(g,v){return mn(v._config.hash(g),g,v)};y.prototype.remove=y.prototype.delete=function(g){return it(g,this)};var qe=n.beginMutation=function(g){return new y(g._editable+1,g._edit+1,g._config,g._root,g._size)};y.prototype.beginMutation=function(){return qe(this)};var Ta=n.endMutation=function(g){return g._editable=g._editable&&g._editable-1,g};y.prototype.endMutation=function(){return Ta(this)};var tv=n.mutate=function(g,v){var k=qe(v);return g(k),Ta(k)};y.prototype.mutate=function(g){return tv(g,this)};var Ti=function(v){return v&&Ca(v[0],v[1],v[2],v[3],v[4])},Ca=function(v,k,M,P,O){for(;M<v;){var Q=k[M++];if(Q&&!N(Q))return Na(Q,P,[v,k,M,P,O])}return Ti(O)},Na=function(v,k,M){switch(v.type){case c:return{value:k(v),rest:M};case p:case E:case w:var P=v.children;return Ca(P.length,P,0,k,M);default:return Ti(M)}},nv={done:!0};function Ci(g){this.v=g}Ci.prototype.next=function(){if(!this.v)return nv;var g=this.v;return this.v=Ti(g.rest),g},Ci.prototype[Symbol.iterator]=function(){return this};var Ni=function(v,k){return new Ci(Na(v._root,k))},rv=function(v){return[v.key,v.value]},ov=n.entries=function(g){return Ni(g,rv)};y.prototype.entries=y.prototype[Symbol.iterator]=function(){return ov(this)};var lv=function(v){return v.key},iv=n.keys=function(g){return Ni(g,lv)};y.prototype.keys=function(){return iv(this)};var uv=function(v){return v.value},sv=n.values=y.prototype.values=function(g){return Ni(g,uv)};y.prototype.values=function(){return sv(this)};var La=n.fold=function(g,v,k){var M=k._root;if(M.type===c)return g(v,M.value,M.key);for(var P=[M.children],O=void 0;O=P.pop();)for(var Q=0,b=O.length;Q<b;){var K=O[Q++];K&&K.type&&(K.type===c?v=g(v,K.value,K.key):P.push(K.children))}return v};y.prototype.fold=function(g,v){return La(g,v,this)};var av=n.forEach=function(g,v){return La(function(k,M,P){return g(M,P,v)},null,v)};y.prototype.forEach=function(g){return av(g,this)};var cv=n.count=function(g){return g._size};y.prototype.count=function(){return cv(this)},Object.defineProperty(y.prototype,"size",{get:y.prototype.count}),e.exports?e.exports=n:(void 0).hamt=n});class k1{constructor(t){Z(this,"_map",void 0),this._map=new Map(t==null?void 0:t.entries())}keys(){return this._map.keys()}entries(){return this._map.entries()}get(t){return this._map.get(t)}has(t){return this._map.has(t)}set(t,n){return this._map.set(t,n),this}delete(t){return this._map.delete(t),this}clone(){return ca(this)}toMap(){return new Map(this._map)}}class aa{constructor(t){if(Z(this,"_hamt",E1.empty.beginMutation()),t instanceof aa){const n=t._hamt.endMutation();t._hamt=n.beginMutation(),this._hamt=n.beginMutation()}else if(t)for(const[n,r]of t.entries())this._hamt.set(n,r)}keys(){return this._hamt.keys()}entries(){return this._hamt.entries()}get(t){return this._hamt.get(t)}has(t){return this._hamt.has(t)}set(t,n){return this._hamt.set(t,n),this}delete(t){return this._hamt.delete(t),this}clone(){return ca(this)}toMap(){return new Map(this._hamt)}}function ca(e){return ie("recoil_hamt_2020")?new aa(e):new k1(e)}var T1={persistentMap:ca},C1=T1.persistentMap,N1=Object.freeze({__proto__:null,persistentMap:C1});function L1(e,...t){const n=new Set;e:for(const r of e){for(const o of t)if(o.has(r))continue e;n.add(r)}return n}var Yr=L1;function A1(e,t){const n=new Map;return e.forEach((r,o)=>{n.set(o,t(r,o))}),n}var Ul=A1;function x1(){return{nodeDeps:new Map,nodeToNodeSubscriptions:new Map}}function M1(e){return{nodeDeps:Ul(e.nodeDeps,t=>new Set(t)),nodeToNodeSubscriptions:Ul(e.nodeToNodeSubscriptions,t=>new Set(t))}}function ru(e,t,n,r){const{nodeDeps:o,nodeToNodeSubscriptions:l}=n,i=o.get(e);if(i&&r&&i!==r.nodeDeps.get(e))return;o.set(e,t);const u=i==null?t:Yr(t,i);for(const s of u)l.has(s)||l.set(s,new Set),ve(l.get(s)).add(e);if(i){const s=Yr(i,t);for(const a of s){if(!l.has(a))return;const d=ve(l.get(a));d.delete(e),d.size===0&&l.delete(a)}}}function P1(e,t,n,r){var o,l,i,u;const s=n.getState();r===s.currentTree.version||r===((o=s.nextTree)===null||o===void 0?void 0:o.version)||((l=s.previousTree)===null||l===void 0||l.version);const a=n.getGraph(r);if(ru(e,t,a),r===((i=s.previousTree)===null||i===void 0?void 0:i.version)){const f=n.getGraph(s.currentTree.version);ru(e,t,f,a)}if(r===((u=s.previousTree)===null||u===void 0?void 0:u.version)||r===s.currentTree.version){var d;const f=(d=s.nextTree)===null||d===void 0?void 0:d.version;if(f!==void 0){const m=n.getGraph(f);ru(e,t,m,a)}}}var To={cloneGraph:M1,graph:x1,saveDepsToStore:P1};let $1=0;const I1=()=>$1++;let V1=0;const z1=()=>V1++;let D1=0;const O1=()=>D1++;var ci={getNextTreeStateVersion:I1,getNextStoreID:z1,getNextComponentID:O1};const{persistentMap:Dc}=N1,{graph:U1}=To,{getNextTreeStateVersion:Ip}=ci;function Vp(){const e=Ip();return{version:e,stateID:e,transactionMetadata:{},dirtyAtoms:new Set,atomValues:Dc(),nonvalidatedAtoms:Dc()}}function F1(){const e=Vp();return{currentTree:e,nextTree:null,previousTree:null,commitDepth:0,knownAtoms:new Set,knownSelectors:new Set,transactionSubscriptions:new Map,nodeTransactionSubscriptions:new Map,nodeToComponentSubscriptions:new Map,queuedComponentCallbacks_DEPRECATED:[],suspendedComponentResolvers:new Set,graphsByVersion:new Map().set(e.version,U1()),retention:{referenceCounts:new Map,nodesRetainedByZone:new Map,retainablesToCheckForRelease:new Set},nodeCleanupFunctions:new Map}}var zp={makeEmptyTreeState:Vp,makeEmptyStoreState:F1,getNextTreeStateVersion:Ip};class Dp{}function B1(){return new Dp}var fi={RetentionZone:Dp,retentionZone:B1};function j1(e,t){const n=new Set(e);return n.add(t),n}function W1(e,t){const n=new Set(e);return n.delete(t),n}function H1(e,t,n){const r=new Map(e);return r.set(t,n),r}function b1(e,t,n){const r=new Map(e);return r.set(t,n(r.get(t))),r}function K1(e,t){const n=new Map(e);return n.delete(t),n}function G1(e,t){const n=new Map(e);return t.forEach(r=>n.delete(r)),n}var Op={setByAddingToSet:j1,setByDeletingFromSet:W1,mapBySettingInMap:H1,mapByUpdatingInMap:b1,mapByDeletingFromMap:K1,mapByDeletingMultipleFromMap:G1};function*Q1(e,t){let n=0;for(const r of e)t(r,n++)&&(yield r)}var fa=Q1;function Z1(e,t){return new Proxy(e,{get:(r,o)=>(!(o in r)&&o in t&&(r[o]=t[o]()),r[o]),ownKeys:r=>Object.keys(r)})}var Up=Z1;const{getNode:Co,getNodeMaybe:Y1,recoilValuesForKeys:Oc}=Ye,{RetentionZone:Uc}=fi,{setByAddingToSet:X1}=Op,q1=Object.freeze(new Set);class J1 extends Error{}function ey(e,t,n){if(!ie("recoil_memory_managament_2020"))return()=>{};const{nodesRetainedByZone:r}=e.getState().retention;function o(l){let i=r.get(l);i||r.set(l,i=new Set),i.add(t)}if(n instanceof Uc)o(n);else if(Array.isArray(n))for(const l of n)o(l);return()=>{if(!ie("recoil_memory_managament_2020"))return;const{retention:l}=e.getState();function i(u){const s=l.nodesRetainedByZone.get(u);s==null||s.delete(t),s&&s.size===0&&l.nodesRetainedByZone.delete(u)}if(n instanceof Uc)i(n);else if(Array.isArray(n))for(const u of n)i(u)}}function da(e,t,n,r){const o=e.getState();if(o.nodeCleanupFunctions.has(n))return;const l=Co(n),i=ey(e,n,l.retainedBy),u=l.init(e,t,r);o.nodeCleanupFunctions.set(n,()=>{u(),i()})}function ty(e,t,n){da(e,e.getState().currentTree,t,n)}function ny(e,t){var n;const r=e.getState();(n=r.nodeCleanupFunctions.get(t))===null||n===void 0||n(),r.nodeCleanupFunctions.delete(t)}function ry(e,t,n){return da(e,t,n,"get"),Co(n).get(e,t)}function Fp(e,t,n){return Co(n).peek(e,t)}function oy(e,t,n){var r;const o=Y1(t);return o==null||(r=o.invalidate)===null||r===void 0||r.call(o,e),{...e,atomValues:e.atomValues.clone().delete(t),nonvalidatedAtoms:e.nonvalidatedAtoms.clone().set(t,n),dirtyAtoms:X1(e.dirtyAtoms,t)}}function ly(e,t,n,r){const o=Co(n);if(o.set==null)throw new J1(`Attempt to set read-only RecoilValue: ${n}`);const l=o.set;return da(e,t,n,"set"),l(e,t,r)}function iy(e,t,n){const r=e.getState(),o=e.getGraph(t.version),l=Co(n).nodeType;return Up({type:l},{loadable:()=>Fp(e,t,n),isActive:()=>r.knownAtoms.has(n)||r.knownSelectors.has(n),isSet:()=>l==="selector"?!1:t.atomValues.has(n),isModified:()=>t.dirtyAtoms.has(n),deps:()=>{var i;return Oc((i=o.nodeDeps.get(n))!==null&&i!==void 0?i:[])},subscribers:()=>{var i,u;return{nodes:Oc(fa(Bp(e,t,new Set([n])),s=>s!==n)),components:ai((i=(u=r.nodeToComponentSubscriptions.get(n))===null||u===void 0?void 0:u.values())!==null&&i!==void 0?i:[],([s])=>({name:s}))}}})}function Bp(e,t,n){const r=new Set,o=Array.from(n),l=e.getGraph(t.version);for(let u=o.pop();u;u=o.pop()){var i;r.add(u);const s=(i=l.nodeToNodeSubscriptions.get(u))!==null&&i!==void 0?i:q1;for(const a of s)r.has(a)||o.push(a)}return r}var hn={getNodeLoadable:ry,peekNodeLoadable:Fp,setNodeValue:ly,initializeNode:ty,cleanUpNode:ny,setUnvalidatedAtomValue_DEPRECATED:oy,peekNodeInfo:iy,getDownstreamNodes:Bp};let jp=null;function uy(e){jp=e}function sy(){var e;(e=jp)===null||e===void 0||e()}var Wp={setInvalidateMemoizedSnapshot:uy,invalidateMemoizedSnapshot:sy};const{getDownstreamNodes:ay,getNodeLoadable:Hp,setNodeValue:cy}=hn,{getNextComponentID:fy}=ci,{getNode:dy,getNodeMaybe:bp}=Ye,{DefaultValue:pa}=Ye,{reactMode:py}=ko,{AbstractRecoilValue:hy,RecoilState:vy,RecoilValueReadOnly:my,isRecoilValue:yy}=dr,{invalidateMemoizedSnapshot:gy}=Wp;function Sy(e,{key:t},n=e.getState().currentTree){var r,o;const l=e.getState();n.version===l.currentTree.version||n.version===((r=l.nextTree)===null||r===void 0?void 0:r.version)||(n.version,(o=l.previousTree)===null||o===void 0||o.version);const i=Hp(e,n,t);return i.state==="loading"&&i.contents.catch(()=>{}),i}function wy(e,t){const n=e.clone();return t.forEach((r,o)=>{r.state==="hasValue"&&r.contents instanceof pa?n.delete(o):n.set(o,r)}),n}function _y(e,t,{key:n},r){if(typeof r=="function"){const o=Hp(e,t,n);if(o.state==="loading"){const l=`Tried to set atom or selector "${n}" using an updater function while the current state is pending, this is not currently supported.`;throw X(l)}else if(o.state==="hasError")throw o.contents;return r(o.contents)}else return r}function Ry(e,t,n){if(n.type==="set"){const{recoilValue:o,valueOrUpdater:l}=n,i=_y(e,t,o,l),u=cy(e,t,o.key,i);for(const[s,a]of u.entries())rs(t,s,a)}else if(n.type==="setLoadable"){const{recoilValue:{key:o},loadable:l}=n;rs(t,o,l)}else if(n.type==="markModified"){const{recoilValue:{key:o}}=n;t.dirtyAtoms.add(o)}else if(n.type==="setUnvalidated"){var r;const{recoilValue:{key:o},unvalidatedValue:l}=n,i=bp(o);i==null||(r=i.invalidate)===null||r===void 0||r.call(i,t),t.atomValues.delete(o),t.nonvalidatedAtoms.set(o,l),t.dirtyAtoms.add(o)}else ia(`Unknown action ${n.type}`)}function rs(e,t,n){n.state==="hasValue"&&n.contents instanceof pa?e.atomValues.delete(t):e.atomValues.set(t,n),e.dirtyAtoms.add(t),e.nonvalidatedAtoms.delete(t)}function Kp(e,t){e.replaceState(n=>{const r=Gp(n);for(const o of t)Ry(e,r,o);return Qp(e,r),gy(),r})}function di(e,t){if(Xr.length){const n=Xr[Xr.length-1];let r=n.get(e);r||n.set(e,r=[]),r.push(t)}else Kp(e,[t])}const Xr=[];function Ey(){const e=new Map;return Xr.push(e),()=>{for(const[t,n]of e)Kp(t,n);Xr.pop()}}function Gp(e){return{...e,atomValues:e.atomValues.clone(),nonvalidatedAtoms:e.nonvalidatedAtoms.clone(),dirtyAtoms:new Set(e.dirtyAtoms)}}function Qp(e,t){const n=ay(e,t,t.dirtyAtoms);for(const l of n){var r,o;(r=bp(l))===null||r===void 0||(o=r.invalidate)===null||o===void 0||o.call(r,t)}}function Zp(e,t,n){di(e,{type:"set",recoilValue:t,valueOrUpdater:n})}function ky(e,t,n){if(n instanceof pa)return Zp(e,t,n);di(e,{type:"setLoadable",recoilValue:t,loadable:n})}function Ty(e,t){di(e,{type:"markModified",recoilValue:t})}function Cy(e,t,n){di(e,{type:"setUnvalidated",recoilValue:t,unvalidatedValue:n})}function Ny(e,{key:t},n,r=null){const o=fy(),l=e.getState();l.nodeToComponentSubscriptions.has(t)||l.nodeToComponentSubscriptions.set(t,new Map),ve(l.nodeToComponentSubscriptions.get(t)).set(o,[r??"<not captured>",n]);const i=py();if(i.early&&(i.mode==="LEGACY"||i.mode==="MUTABLE_SOURCE")){const u=e.getState().nextTree;u&&u.dirtyAtoms.has(t)&&n(u)}return{release:()=>{const u=e.getState(),s=u.nodeToComponentSubscriptions.get(t);s===void 0||!s.has(o)||(s.delete(o),s.size===0&&u.nodeToComponentSubscriptions.delete(t))}}}function Ly(e,t){var n;const{currentTree:r}=e.getState(),o=dy(t.key);(n=o.clearCache)===null||n===void 0||n.call(o,e,r)}var At={RecoilValueReadOnly:my,AbstractRecoilValue:hy,RecoilState:vy,getRecoilValueAsLoadable:Sy,setRecoilValue:Zp,setRecoilValueLoadable:ky,markRecoilValueModified:Ty,setUnvalidatedRecoilValue:Cy,subscribeToRecoilValue:Ny,isRecoilValue:yy,applyAtomValueWrites:wy,batchStart:Ey,writeLoadableToTreeState:rs,invalidateDownstreams:Qp,copyTreeState:Gp,refreshRecoilValue:Ly};function Ay(e,t,n){const r=e.entries();let o=r.next();for(;!o.done;){const l=o.value;if(t.call(n,l[1],l[0],e))return!0;o=r.next()}return!1}var xy=Ay;const{cleanUpNode:My}=hn,{deleteNodeConfigIfPossible:Py,getNode:Yp}=Ye,{RetentionZone:Xp}=fi,$y=12e4,qp=new Set;function Jp(e,t){const n=e.getState(),r=n.currentTree;if(n.nextTree)return;const o=new Set;for(const i of t)if(i instanceof Xp)for(const u of Dy(n,i))o.add(u);else o.add(i);const l=Iy(e,o);for(const i of l)zy(e,r,i)}function Iy(e,t){const n=e.getState(),r=n.currentTree,o=e.getGraph(r.version),l=new Set,i=new Set;return u(t),l;function u(s){const a=new Set,d=Vy(e,r,s,l,i);for(const S of d){var f;if(Yp(S).retainedBy==="recoilRoot"){i.add(S);continue}if(((f=n.retention.referenceCounts.get(S))!==null&&f!==void 0?f:0)>0){i.add(S);continue}if(eh(S).some(F=>n.retention.referenceCounts.get(F))){i.add(S);continue}const R=o.nodeToNodeSubscriptions.get(S);if(R&&xy(R,F=>i.has(F))){i.add(S);continue}l.add(S),a.add(S)}const m=new Set;for(const S of a)for(const R of(_=o.nodeDeps.get(S))!==null&&_!==void 0?_:qp){var _;l.has(R)||m.add(R)}m.size&&u(m)}}function Vy(e,t,n,r,o){const l=e.getGraph(t.version),i=[],u=new Set;for(;n.size>0;)s(ve(n.values().next().value));return i;function s(a){if(r.has(a)||o.has(a)){n.delete(a);return}if(u.has(a))return;const d=l.nodeToNodeSubscriptions.get(a);if(d)for(const f of d)s(f);u.add(a),n.delete(a),i.push(a)}}function zy(e,t,n){if(!ie("recoil_memory_managament_2020"))return;My(e,n);const r=e.getState();r.knownAtoms.delete(n),r.knownSelectors.delete(n),r.nodeTransactionSubscriptions.delete(n),r.retention.referenceCounts.delete(n);const o=eh(n);for(const s of o){var l;(l=r.retention.nodesRetainedByZone.get(s))===null||l===void 0||l.delete(n)}t.atomValues.delete(n),t.dirtyAtoms.delete(n),t.nonvalidatedAtoms.delete(n);const i=r.graphsByVersion.get(t.version);if(i){const s=i.nodeDeps.get(n);if(s!==void 0){i.nodeDeps.delete(n);for(const a of s){var u;(u=i.nodeToNodeSubscriptions.get(a))===null||u===void 0||u.delete(n)}}i.nodeToNodeSubscriptions.delete(n)}Py(n)}function Dy(e,t){var n;return(n=e.retention.nodesRetainedByZone.get(t))!==null&&n!==void 0?n:qp}function eh(e){const t=Yp(e).retainedBy;return t===void 0||t==="components"||t==="recoilRoot"?[]:t instanceof Xp?[t]:t}function Oy(e,t){const n=e.getState();n.nextTree?n.retention.retainablesToCheckForRelease.add(t):Jp(e,new Set([t]))}function Uy(e,t,n){var r;if(!ie("recoil_memory_managament_2020"))return;const o=e.getState().retention.referenceCounts,l=((r=o.get(t))!==null&&r!==void 0?r:0)+n;l===0?th(e,t):o.set(t,l)}function th(e,t){if(!ie("recoil_memory_managament_2020"))return;e.getState().retention.referenceCounts.delete(t),Oy(e,t)}function Fy(e){if(!ie("recoil_memory_managament_2020"))return;const t=e.getState();Jp(e,t.retention.retainablesToCheckForRelease),t.retention.retainablesToCheckForRelease.clear()}function By(e){return e===void 0?"recoilRoot":e}var Vn={SUSPENSE_TIMEOUT_MS:$y,updateRetainCount:Uy,updateRetainCountToZero:th,releaseScheduledRetainablesNow:Fy,retainedByOptionWithDefault:By};const{unstable_batchedUpdates:jy}=Vm;var Wy={unstable_batchedUpdates:jy};const{unstable_batchedUpdates:Hy}=Wy;var by={unstable_batchedUpdates:Hy};const{batchStart:Ky}=At,{unstable_batchedUpdates:Gy}=by;let ha=Gy||(e=>e());const Qy=e=>{ha=e},Zy=()=>ha,Yy=e=>{ha(()=>{let t=()=>{};try{t=Ky(),e()}finally{t()}})};var pi={getBatcher:Zy,setBatcher:Qy,batchUpdates:Yy};function*Xy(e){for(const t of e)for(const n of t)yield n}var nh=Xy;const rh=typeof Window>"u"||typeof window>"u",qy=e=>!rh&&(e===window||e instanceof Window),Jy=typeof navigator<"u"&&navigator.product==="ReactNative";var hi={isSSR:rh,isReactNative:Jy,isWindow:qy};function eg(e,t){let n;return(...r)=>{n||(n={});const o=t(...r);return Object.hasOwnProperty.call(n,o)||(n[o]=e(...r)),n[o]}}function tg(e,t){let n,r;return(...o)=>{const l=t(...o);return n===l||(n=l,r=e(...o)),r}}function ng(e,t){let n,r;return[(...i)=>{const u=t(...i);return n===u||(n=u,r=e(...i)),r},()=>{n=null}]}var rg={memoizeWithArgsHash:eg,memoizeOneWithArgsHash:tg,memoizeOneWithArgsHashAndInvalidation:ng};const{batchUpdates:os}=pi,{initializeNode:og,peekNodeInfo:lg}=hn,{graph:ig}=To,{getNextStoreID:ug}=ci,{DEFAULT_VALUE:sg,recoilValues:Fc,recoilValuesForKeys:Bc}=Ye,{AbstractRecoilValue:ag,getRecoilValueAsLoadable:cg,setRecoilValue:jc,setUnvalidatedRecoilValue:fg}=At,{updateRetainCount:pl}=Vn,{setInvalidateMemoizedSnapshot:dg}=Wp,{getNextTreeStateVersion:pg,makeEmptyStoreState:hg}=zp,{isSSR:vg}=hi,{memoizeOneWithArgsHashAndInvalidation:mg}=rg;class vi{constructor(t,n){Z(this,"_store",void 0),Z(this,"_refCount",1),Z(this,"getLoadable",r=>(this.checkRefCount_INTERNAL(),cg(this._store,r))),Z(this,"getPromise",r=>(this.checkRefCount_INTERNAL(),this.getLoadable(r).toPromise())),Z(this,"getNodes_UNSTABLE",r=>{if(this.checkRefCount_INTERNAL(),(r==null?void 0:r.isModified)===!0){if((r==null?void 0:r.isInitialized)===!1)return[];const i=this._store.getState().currentTree;return Bc(i.dirtyAtoms)}const o=this._store.getState().knownAtoms,l=this._store.getState().knownSelectors;return(r==null?void 0:r.isInitialized)==null?Fc.values():r.isInitialized===!0?Bc(nh([o,l])):fa(Fc.values(),({key:i})=>!o.has(i)&&!l.has(i))}),Z(this,"getInfo_UNSTABLE",({key:r})=>(this.checkRefCount_INTERNAL(),lg(this._store,this._store.getState().currentTree,r))),Z(this,"map",r=>{this.checkRefCount_INTERNAL();const o=new ls(this,os);return r(o),o}),Z(this,"asyncMap",async r=>{this.checkRefCount_INTERNAL();const o=new ls(this,os);return o.retain(),await r(o),o.autoRelease_INTERNAL(),o}),this._store={storeID:ug(),parentStoreID:n,getState:()=>t,replaceState:r=>{t.currentTree=r(t.currentTree)},getGraph:r=>{const o=t.graphsByVersion;if(o.has(r))return ve(o.get(r));const l=ig();return o.set(r,l),l},subscribeToTransactions:()=>({release:()=>{}}),addTransactionMetadata:()=>{throw X("Cannot subscribe to Snapshots")}};for(const r of this._store.getState().knownAtoms)og(this._store,r,"get"),pl(this._store,r,1);this.autoRelease_INTERNAL()}retain(){this._refCount<=0,this._refCount++;let t=!1;return()=>{t||(t=!0,this._release())}}autoRelease_INTERNAL(){vg||window.setTimeout(()=>this._release(),10)}_release(){if(this._refCount--,this._refCount===0){if(this._store.getState().nodeCleanupFunctions.forEach(t=>t()),this._store.getState().nodeCleanupFunctions.clear(),!ie("recoil_memory_managament_2020"))return}else this._refCount<0}isRetained(){return this._refCount>0}checkRefCount_INTERNAL(){ie("recoil_memory_managament_2020")&&this._refCount<=0}getStore_INTERNAL(){return this.checkRefCount_INTERNAL(),this._store}getID(){return this.checkRefCount_INTERNAL(),this._store.getState().currentTree.stateID}getStoreID(){return this.checkRefCount_INTERNAL(),this._store.storeID}}function oh(e,t,n=!1){const r=e.getState(),o=n?pg():t.version;return{currentTree:{version:n?o:t.version,stateID:n?o:t.stateID,transactionMetadata:{...t.transactionMetadata},dirtyAtoms:new Set(t.dirtyAtoms),atomValues:t.atomValues.clone(),nonvalidatedAtoms:t.nonvalidatedAtoms.clone()},commitDepth:0,nextTree:null,previousTree:null,knownAtoms:new Set(r.knownAtoms),knownSelectors:new Set(r.knownSelectors),transactionSubscriptions:new Map,nodeTransactionSubscriptions:new Map,nodeToComponentSubscriptions:new Map,queuedComponentCallbacks_DEPRECATED:[],suspendedComponentResolvers:new Set,graphsByVersion:new Map().set(o,e.getGraph(t.version)),retention:{referenceCounts:new Map,nodesRetainedByZone:new Map,retainablesToCheckForRelease:new Set},nodeCleanupFunctions:new Map(ai(r.nodeCleanupFunctions.entries(),([l])=>[l,()=>{}]))}}function yg(e){const t=new vi(hg());return e!=null?t.map(e):t}const[Wc,lh]=mg((e,t)=>{var n;const r=e.getState(),o=t==="latest"?(n=r.nextTree)!==null&&n!==void 0?n:r.currentTree:ve(r.previousTree);return new vi(oh(e,o),e.storeID)},(e,t)=>{var n,r;return String(t)+String(e.storeID)+String((n=e.getState().nextTree)===null||n===void 0?void 0:n.version)+String(e.getState().currentTree.version)+String((r=e.getState().previousTree)===null||r===void 0?void 0:r.version)});dg(lh);function gg(e,t="latest"){const n=Wc(e,t);return n.isRetained()?n:(lh(),Wc(e,t))}class ls extends vi{constructor(t,n){super(oh(t.getStore_INTERNAL(),t.getStore_INTERNAL().getState().currentTree,!0),t.getStoreID()),Z(this,"_batch",void 0),Z(this,"set",(r,o)=>{this.checkRefCount_INTERNAL();const l=this.getStore_INTERNAL();this._batch(()=>{pl(l,r.key,1),jc(this.getStore_INTERNAL(),r,o)})}),Z(this,"reset",r=>{this.checkRefCount_INTERNAL();const o=this.getStore_INTERNAL();this._batch(()=>{pl(o,r.key,1),jc(this.getStore_INTERNAL(),r,sg)})}),Z(this,"setUnvalidatedAtomValues_DEPRECATED",r=>{this.checkRefCount_INTERNAL();const o=this.getStore_INTERNAL();os(()=>{for(const[l,i]of r.entries())pl(o,l,1),fg(o,new ag(l),i)})}),this._batch=n}}var mi={Snapshot:vi,MutableSnapshot:ls,freshSnapshot:yg,cloneSnapshot:gg},Sg=mi.Snapshot,wg=mi.MutableSnapshot,_g=mi.freshSnapshot,Rg=mi.cloneSnapshot,yi=Object.freeze({__proto__:null,Snapshot:Sg,MutableSnapshot:wg,freshSnapshot:_g,cloneSnapshot:Rg});function Eg(...e){const t=new Set;for(const n of e)for(const r of n)t.add(r);return t}var kg=Eg;const{useRef:Tg}=me;function Cg(e){const t=Tg(e);return t.current===e&&typeof e=="function"&&(t.current=e()),t}var Hc=Cg;const{getNextTreeStateVersion:Ng,makeEmptyStoreState:ih}=zp,{cleanUpNode:Lg,getDownstreamNodes:Ag,initializeNode:xg,setNodeValue:Mg,setUnvalidatedAtomValue_DEPRECATED:Pg}=hn,{graph:$g}=To,{cloneGraph:Ig}=To,{getNextStoreID:uh}=ci,{createMutableSource:ou,reactMode:sh}=ko,{applyAtomValueWrites:Vg}=At,{releaseScheduledRetainablesNow:ah}=Vn,{freshSnapshot:zg}=yi,{useCallback:Dg,useContext:ch,useEffect:is,useMemo:Og,useRef:Ug,useState:Fg}=me;function Mr(){throw X("This component must be used inside a <RecoilRoot> component.")}const fh=Object.freeze({storeID:uh(),getState:Mr,replaceState:Mr,getGraph:Mr,subscribeToTransactions:Mr,addTransactionMetadata:Mr});let us=!1;function bc(e){if(us)throw X("An atom update was triggered within the execution of a state updater function. State updater functions provided to Recoil must be pure functions.");const t=e.getState();if(t.nextTree===null){ie("recoil_memory_managament_2020")&&ie("recoil_release_on_cascading_update_killswitch_2021")&&t.commitDepth>0&&ah(e);const n=t.currentTree.version,r=Ng();t.nextTree={...t.currentTree,version:r,stateID:r,dirtyAtoms:new Set,transactionMetadata:{}},t.graphsByVersion.set(r,Ig(ve(t.graphsByVersion.get(n))))}}const dh=me.createContext({current:fh}),gi=()=>ch(dh),ph=me.createContext(null);function Bg(){return ch(ph)}function va(e,t,n){const r=Ag(e,n,n.dirtyAtoms);for(const o of r){const l=t.nodeToComponentSubscriptions.get(o);if(l)for(const[i,[u,s]]of l)s(n)}}function hh(e){const t=e.getState(),n=t.currentTree,r=n.dirtyAtoms;if(r.size){for(const[o,l]of t.nodeTransactionSubscriptions)if(r.has(o))for(const[i,u]of l)u(e);for(const[o,l]of t.transactionSubscriptions)l(e);(!sh().early||t.suspendedComponentResolvers.size>0)&&(va(e,t,n),t.suspendedComponentResolvers.forEach(o=>o()),t.suspendedComponentResolvers.clear())}t.queuedComponentCallbacks_DEPRECATED.forEach(o=>o(n)),t.queuedComponentCallbacks_DEPRECATED.splice(0,t.queuedComponentCallbacks_DEPRECATED.length)}function jg(e){const t=e.getState();t.commitDepth++;try{const{nextTree:n}=t;if(n==null)return;t.previousTree=t.currentTree,t.currentTree=n,t.nextTree=null,hh(e),t.previousTree!=null?t.graphsByVersion.delete(t.previousTree.version):ia("Ended batch with no previous state, which is unexpected","recoil"),t.previousTree=null,ie("recoil_memory_managament_2020")&&n==null&&ah(e)}finally{t.commitDepth--}}function Wg({setNotifyBatcherOfChange:e}){const t=gi(),[,n]=Fg([]);return e(()=>n({})),is(()=>(e(()=>n({})),()=>{e(()=>{})}),[e]),is(()=>{_1.enqueueExecution("Batcher",()=>{jg(t.current)})}),null}function Hg(e,t){const n=ih();return t({set:(r,o)=>{const l=n.currentTree,i=Mg(e,l,r.key,o),u=new Set(i.keys()),s=l.nonvalidatedAtoms.clone();for(const a of u)s.delete(a);n.currentTree={...l,dirtyAtoms:kg(l.dirtyAtoms,u),atomValues:Vg(l.atomValues,i),nonvalidatedAtoms:s}},setUnvalidatedAtomValues:r=>{r.forEach((o,l)=>{n.currentTree=Pg(n.currentTree,l,o)})}}),n}function bg(e){const t=zg(e),n=t.getStore_INTERNAL().getState();return t.retain(),n.nodeCleanupFunctions.forEach(r=>r()),n.nodeCleanupFunctions.clear(),n}let Kc=0;function Kg({initializeState_DEPRECATED:e,initializeState:t,store_INTERNAL:n,children:r}){let o;const l=_=>{const S=o.current.graphsByVersion;if(S.has(_))return ve(S.get(_));const R=$g();return S.set(_,R),R},i=(_,S)=>{if(S==null){const{transactionSubscriptions:R}=f.current.getState(),F=Kc++;return R.set(F,_),{release:()=>{R.delete(F)}}}else{const{nodeTransactionSubscriptions:R}=f.current.getState();R.has(S)||R.set(S,new Map);const F=Kc++;return ve(R.get(S)).set(F,_),{release:()=>{const h=R.get(S);h&&(h.delete(F),h.size===0&&R.delete(S))}}}},u=_=>{bc(f.current);for(const S of Object.keys(_))ve(f.current.getState().nextTree).transactionMetadata[S]=_[S]},s=_=>{bc(f.current);const S=ve(o.current.nextTree);let R;try{us=!0,R=_(S)}finally{us=!1}R!==S&&(o.current.nextTree=R,sh().early&&va(f.current,o.current,R),ve(a.current)())},a=Ug(null),d=Dg(_=>{a.current=_},[a]),f=Hc(()=>n??{storeID:uh(),getState:()=>o.current,replaceState:s,getGraph:l,subscribeToTransactions:i,addTransactionMetadata:u});n!=null&&(f.current=n),o=Hc(()=>e!=null?Hg(f.current,e):t!=null?bg(t):ih());const m=Og(()=>ou==null?void 0:ou(o,()=>o.current.currentTree.version),[o]);return is(()=>{const _=f.current;for(const S of new Set(_.getState().knownAtoms))xg(_,S,"get");return()=>{for(const S of _.getState().knownAtoms)Lg(_,S)}},[f]),me.createElement(dh.Provider,{value:f},me.createElement(ph.Provider,{value:m},me.createElement(Wg,{setNotifyBatcherOfChange:d}),r))}function Gg(e){const{override:t,...n}=e,r=gi();return t===!1&&r.current!==fh?e.children:me.createElement(Kg,n)}function Qg(){return gi().current.storeID}var jt={RecoilRoot:Gg,useStoreRef:gi,useRecoilMutableSource:Bg,useRecoilStoreID:Qg,notifyComponents_FOR_TESTING:va,sendEndOfBatchNotifications_FOR_TESTING:hh};function Zg(e,t){if(e===t)return!0;if(e.length!==t.length)return!1;for(let n=0,r=e.length;n<r;n++)if(e[n]!==t[n])return!1;return!0}var Yg=Zg;const{useEffect:Xg,useRef:qg}=me;function Jg(e){const t=qg();return Xg(()=>{t.current=e}),t.current}var vh=Jg;const{useStoreRef:eS}=jt,{SUSPENSE_TIMEOUT_MS:tS}=Vn,{updateRetainCount:Pr}=Vn,{RetentionZone:nS}=fi,{useEffect:rS,useRef:oS}=me,{isSSR:Gc}=hi;function lS(e){if(ie("recoil_memory_managament_2020"))return iS(e)}function iS(e){const n=(Array.isArray(e)?e:[e]).map(i=>i instanceof nS?i:i.key),r=eS();rS(()=>{if(!ie("recoil_memory_managament_2020"))return;const i=r.current;if(o.current&&!Gc)window.clearTimeout(o.current),o.current=null;else for(const u of n)Pr(i,u,1);return()=>{for(const u of n)Pr(i,u,-1)}},[r,...n]);const o=oS(),l=vh(n);if(!Gc&&(l===void 0||!Yg(l,n))){const i=r.current;for(const u of n)Pr(i,u,1);if(l)for(const u of l)Pr(i,u,-1);o.current&&window.clearTimeout(o.current),o.current=window.setTimeout(()=>{o.current=null;for(const u of n)Pr(i,u,-1)},tS)}}var ma=lS;function uS(){return"<component name not available>"}var No=uS;const{batchUpdates:sS}=pi,{DEFAULT_VALUE:mh}=Ye,{currentRendererSupportsUseSyncExternalStore:aS,reactMode:wr,useMutableSource:cS,useSyncExternalStore:fS}=ko,{useRecoilMutableSource:dS,useStoreRef:xt}=jt,{AbstractRecoilValue:ss,getRecoilValueAsLoadable:Lo,setRecoilValue:Fl,setUnvalidatedRecoilValue:pS,subscribeToRecoilValue:pr}=At,{useCallback:Ze,useEffect:hr,useMemo:yh,useRef:qr,useState:ya}=me,{setByAddingToSet:hS}=Op,{isSSR:vS}=hi;function ga(e,t,n){if(e.state==="hasValue")return e.contents;throw e.state==="loading"?new Promise(o=>{const l=n.current.getState().suspendedComponentResolvers;l.add(o),vS&&ae(e.contents)&&e.contents.finally(()=>{l.delete(o)})}):e.state==="hasError"?e.contents:X(`Invalid value of loadable atom "${t.key}"`)}function mS(){const e=No(),t=xt(),[,n]=ya([]),r=qr(new Set);r.current=new Set;const o=qr(new Set),l=qr(new Map),i=Ze(s=>{const a=l.current.get(s);a&&(a.release(),l.current.delete(s))},[l]),u=Ze((s,a)=>{l.current.has(a)&&n([])},[]);return hr(()=>{const s=t.current;Yr(r.current,o.current).forEach(a=>{if(l.current.has(a))return;const d=pr(s,new ss(a),m=>u(m,a),e);l.current.set(a,d),s.getState().nextTree?s.getState().queuedComponentCallbacks_DEPRECATED.push(()=>{u(s.getState(),a)}):u(s.getState(),a)}),Yr(o.current,r.current).forEach(a=>{i(a)}),o.current=r.current}),hr(()=>{const s=l.current;return Yr(r.current,new Set(s.keys())).forEach(a=>{const d=pr(t.current,new ss(a),f=>u(f,a),e);s.set(a,d)}),()=>s.forEach((a,d)=>i(d))},[e,t,i,u]),yh(()=>{function s(S){return R=>{Fl(t.current,S,R)}}function a(S){return()=>Fl(t.current,S,mh)}function d(S){var R;r.current.has(S.key)||(r.current=hS(r.current,S.key));const F=t.current.getState();return Lo(t.current,S,wr().early&&(R=F.nextTree)!==null&&R!==void 0?R:F.currentTree)}function f(S){const R=d(S);return ga(R,S,t)}function m(S){return[f(S),s(S)]}function _(S){return[d(S),s(S)]}return{getRecoilValue:f,getRecoilValueLoadable:d,getRecoilState:m,getRecoilStateLoadable:_,getSetRecoilState:s,getResetRecoilState:a}},[r,t])}const yS={current:0};function gS(e){const t=xt(),n=No(),r=Ze(()=>{var u;const s=t.current,a=s.getState(),d=wr().early&&(u=a.nextTree)!==null&&u!==void 0?u:a.currentTree;return{loadable:Lo(s,e,d),key:e.key}},[t,e]),o=Ze(u=>{let s;return()=>{var a,d;const f=u();return(a=s)!==null&&a!==void 0&&a.loadable.is(f.loadable)&&((d=s)===null||d===void 0?void 0:d.key)===f.key?s:(s=f,f)}},[]),l=yh(()=>o(r),[r,o]),i=Ze(u=>{const s=t.current;return pr(s,e,u,n).release},[t,e,n]);return fS(i,l,l).loadable}function SS(e){const t=xt(),n=Ze(()=>{var a;const d=t.current,f=d.getState(),m=wr().early&&(a=f.nextTree)!==null&&a!==void 0?a:f.currentTree;return Lo(d,e,m)},[t,e]),r=Ze(()=>n(),[n]),o=No(),l=Ze((a,d)=>{const f=t.current;return pr(f,e,()=>{if(!ie("recoil_suppress_rerender_in_callback"))return d();const _=n();s.current.is(_)||d(),s.current=_},o).release},[t,e,o,n]),i=dS();if(i==null)throw X("Recoil hooks must be used in components contained within a <RecoilRoot> component.");const u=cS(i,r,l),s=qr(u);return hr(()=>{s.current=u}),u}function as(e){const t=xt(),n=No(),r=Ze(()=>{var s;const a=t.current,d=a.getState(),f=wr().early&&(s=d.nextTree)!==null&&s!==void 0?s:d.currentTree;return Lo(a,e,f)},[t,e]),o=Ze(()=>({loadable:r(),key:e.key}),[r,e.key]),l=Ze(s=>{const a=o();return s.loadable.is(a.loadable)&&s.key===a.key?s:a},[o]);hr(()=>{const s=pr(t.current,e,a=>{u(l)},n);return u(l),s.release},[n,e,t,l]);const[i,u]=ya(o);return i.key!==e.key?o().loadable:i.loadable}function wS(e){const t=xt(),[,n]=ya([]),r=No(),o=Ze(()=>{var u;const s=t.current,a=s.getState(),d=wr().early&&(u=a.nextTree)!==null&&u!==void 0?u:a.currentTree;return Lo(s,e,d)},[t,e]),l=o(),i=qr(l);return hr(()=>{i.current=l}),hr(()=>{const u=t.current,s=u.getState(),a=pr(u,e,f=>{var m;if(!ie("recoil_suppress_rerender_in_callback"))return n([]);const _=o();(m=i.current)!==null&&m!==void 0&&m.is(_)||n(_),i.current=_},r);if(s.nextTree)u.getState().queuedComponentCallbacks_DEPRECATED.push(()=>{i.current=null,n([])});else{var d;if(!ie("recoil_suppress_rerender_in_callback"))return n([]);const f=o();(d=i.current)!==null&&d!==void 0&&d.is(f)||n(f),i.current=f}return a.release},[r,o,e,t]),l}function Sa(e){return ie("recoil_memory_managament_2020")&&ma(e),{TRANSITION_SUPPORT:as,SYNC_EXTERNAL_STORE:aS()?gS:as,MUTABLE_SOURCE:SS,LEGACY:wS}[wr().mode](e)}function gh(e){const t=xt(),n=Sa(e);return ga(n,e,t)}function Si(e){const t=xt();return Ze(n=>{Fl(t.current,e,n)},[t,e])}function _S(e){const t=xt();return Ze(()=>{Fl(t.current,e,mh)},[t,e])}function RS(e){return[gh(e),Si(e)]}function ES(e){return[Sa(e),Si(e)]}function kS(){const e=xt();return(t,n={})=>{sS(()=>{e.current.addTransactionMetadata(n),t.forEach((r,o)=>pS(e.current,new ss(o),r))})}}function Sh(e){return ie("recoil_memory_managament_2020")&&ma(e),as(e)}function wh(e){const t=xt(),n=Sh(e);return ga(n,e,t)}function TS(e){return[wh(e),Si(e)]}var CS={recoilComponentGetRecoilValueCount_FOR_TESTING:yS,useRecoilInterface:mS,useRecoilState:RS,useRecoilStateLoadable:ES,useRecoilValue:gh,useRecoilValueLoadable:Sa,useResetRecoilState:_S,useSetRecoilState:Si,useSetUnvalidatedAtomValues:kS,useRecoilValueLoadable_TRANSITION_SUPPORT_UNSTABLE:Sh,useRecoilValue_TRANSITION_SUPPORT_UNSTABLE:wh,useRecoilState_TRANSITION_SUPPORT_UNSTABLE:TS};function NS(e,t){const n=new Map;for(const[r,o]of e)t(o,r)&&n.set(r,o);return n}var LS=NS;function AS(e,t){const n=new Set;for(const r of e)t(r)&&n.add(r);return n}var xS=AS;function MS(...e){const t=new Map;for(let n=0;n<e.length;n++){const r=e[n].keys();let o;for(;!(o=r.next()).done;)t.set(o.value,e[n].get(o.value))}return t}var PS=MS;const{batchUpdates:$S}=pi,{DEFAULT_VALUE:IS,getNode:_h,nodes:VS}=Ye,{useStoreRef:wa}=jt,{AbstractRecoilValue:zS,setRecoilValueLoadable:DS}=At,{SUSPENSE_TIMEOUT_MS:OS}=Vn,{cloneSnapshot:Bl}=yi,{useCallback:wi,useEffect:Rh,useRef:Qc,useState:US}=me,{isSSR:Zc}=hi;function _i(e){const t=wa();Rh(()=>t.current.subscribeToTransactions(e).release,[e,t])}function Yc(e){const t=e.atomValues.toMap(),n=Ul(LS(t,(r,o)=>{const i=_h(o).persistence_UNSTABLE;return i!=null&&i.type!=="none"&&r.state==="hasValue"}),r=>r.contents);return PS(e.nonvalidatedAtoms.toMap(),n)}function FS(e){_i(wi(t=>{let n=t.getState().previousTree;const r=t.getState().currentTree;n||(n=t.getState().currentTree);const o=Yc(r),l=Yc(n),i=Ul(VS,s=>{var a,d,f,m;return{persistence_UNSTABLE:{type:(a=(d=s.persistence_UNSTABLE)===null||d===void 0?void 0:d.type)!==null&&a!==void 0?a:"none",backButton:(f=(m=s.persistence_UNSTABLE)===null||m===void 0?void 0:m.backButton)!==null&&f!==void 0?f:!1}}}),u=xS(r.dirtyAtoms,s=>o.has(s)||l.has(s));e({atomValues:o,previousAtomValues:l,atomInfo:i,modifiedAtoms:u,transactionMetadata:{...r.transactionMetadata}})},[e]))}function BS(e){_i(wi(t=>{const n=Bl(t,"latest"),r=Bl(t,"previous");e({snapshot:n,previousSnapshot:r})},[e]))}function jS(){const e=wa(),[t,n]=US(()=>Bl(e.current)),r=vh(t),o=Qc(),l=Qc();if(_i(wi(u=>n(Bl(u)),[])),Rh(()=>{const u=t.retain();if(o.current&&!Zc){var s;window.clearTimeout(o.current),o.current=null,(s=l.current)===null||s===void 0||s.call(l),l.current=null}return()=>{window.setTimeout(u,10)}},[t]),r!==t&&!Zc){if(o.current){var i;window.clearTimeout(o.current),o.current=null,(i=l.current)===null||i===void 0||i.call(l),l.current=null}l.current=t.retain(),o.current=window.setTimeout(()=>{var u;o.current=null,(u=l.current)===null||u===void 0||u.call(l),l.current=null},OS)}return t}function Eh(e,t){var n;const r=e.getState(),o=(n=r.nextTree)!==null&&n!==void 0?n:r.currentTree,l=t.getStore_INTERNAL().getState().currentTree;$S(()=>{const i=new Set;for(const a of[o.atomValues.keys(),l.atomValues.keys()])for(const d of a){var u,s;((u=o.atomValues.get(d))===null||u===void 0?void 0:u.contents)!==((s=l.atomValues.get(d))===null||s===void 0?void 0:s.contents)&&_h(d).shouldRestoreFromSnapshots&&i.add(d)}i.forEach(a=>{DS(e,new zS(a),l.atomValues.has(a)?ve(l.atomValues.get(a)):IS)}),e.replaceState(a=>({...a,stateID:t.getID()}))})}function WS(){const e=wa();return wi(t=>Eh(e.current,t),[e])}var kh={useRecoilSnapshot:jS,gotoSnapshot:Eh,useGotoRecoilSnapshot:WS,useRecoilTransactionObserver:BS,useTransactionObservation_DEPRECATED:FS,useTransactionSubscription_DEPRECATED:_i};const{peekNodeInfo:HS}=hn,{useStoreRef:bS}=jt;function KS(){const e=bS();return({key:t})=>HS(e.current,e.current.getState().currentTree,t)}var GS=KS;const{reactMode:QS}=ko,{RecoilRoot:ZS,useStoreRef:YS}=jt,{useMemo:XS}=me;function qS(){QS().mode==="MUTABLE_SOURCE"&&console.warn("Warning: There are known issues using useRecoilBridgeAcrossReactRoots() in recoil_mutable_source rendering mode. Please consider upgrading to recoil_sync_external_store mode.");const e=YS().current;return XS(()=>{function t({children:n}){return me.createElement(ZS,{store_INTERNAL:e},n)}return t},[e])}var JS=qS;const{loadableWithValue:e2}=Eo,{initializeNode:t2}=hn,{DEFAULT_VALUE:n2,getNode:r2}=Ye,{copyTreeState:o2,getRecoilValueAsLoadable:l2,invalidateDownstreams:i2,writeLoadableToTreeState:u2}=At;function Xc(e){return r2(e.key).nodeType==="atom"}class s2{constructor(t,n){Z(this,"_store",void 0),Z(this,"_treeState",void 0),Z(this,"_changes",void 0),Z(this,"get",r=>{if(this._changes.has(r.key))return this._changes.get(r.key);if(!Xc(r))throw X("Reading selectors within atomicUpdate is not supported");const o=l2(this._store,r,this._treeState);if(o.state==="hasValue")return o.contents;throw o.state==="hasError"?o.contents:X(`Expected Recoil atom ${r.key} to have a value, but it is in a loading state.`)}),Z(this,"set",(r,o)=>{if(!Xc(r))throw X("Setting selectors within atomicUpdate is not supported");if(typeof o=="function"){const l=this.get(r);this._changes.set(r.key,o(l))}else t2(this._store,r.key,"set"),this._changes.set(r.key,o)}),Z(this,"reset",r=>{this.set(r,n2)}),this._store=t,this._treeState=n,this._changes=new Map}newTreeState_INTERNAL(){if(this._changes.size===0)return this._treeState;const t=o2(this._treeState);for(const[n,r]of this._changes)u2(t,n,e2(r));return i2(this._store,t),t}}function a2(e){return t=>{e.replaceState(n=>{const r=new s2(e,n);return t(r),r.newTreeState_INTERNAL()})}}var c2={atomicUpdater:a2},f2=c2.atomicUpdater,Th=Object.freeze({__proto__:null,atomicUpdater:f2});function d2(e,t){if(!e)throw new Error(t)}var p2=d2,Fr=p2;const{atomicUpdater:h2}=Th,{batchUpdates:v2}=pi,{DEFAULT_VALUE:m2}=Ye,{useStoreRef:y2}=jt,{refreshRecoilValue:g2,setRecoilValue:qc}=At,{cloneSnapshot:S2}=yi,{gotoSnapshot:w2}=kh,{useCallback:_2}=me;class Ch{}const R2=new Ch;function Nh(e,t,n,r){let o=R2,l;if(v2(()=>{const u="useRecoilCallback() expects a function that returns a function: it accepts a function of the type (RecoilInterface) => (Args) => ReturnType and returns a callback function (Args) => ReturnType, where RecoilInterface is an object {snapshot, set, ...} and Args and ReturnType are the argument and return types of the callback you want to create. Please see the docs at recoiljs.org for details.";if(typeof t!="function")throw X(u);const s=Up({...r??{},set:(d,f)=>qc(e,d,f),reset:d=>qc(e,d,m2),refresh:d=>g2(e,d),gotoSnapshot:d=>w2(e,d),transact_UNSTABLE:d=>h2(e)(d)},{snapshot:()=>{const d=S2(e);return l=d.retain(),d}}),a=t(s);if(typeof a!="function")throw X(u);o=a(...n)}),o instanceof Ch&&Fr(!1),ae(o))o=o.finally(()=>{var u;(u=l)===null||u===void 0||u()});else{var i;(i=l)===null||i===void 0||i()}return o}function E2(e,t){const n=y2();return _2((...r)=>Nh(n.current,e,r),t!=null?[...t,n]:void 0)}var Lh={recoilCallback:Nh,useRecoilCallback:E2};const{useStoreRef:k2}=jt,{refreshRecoilValue:T2}=At,{useCallback:C2}=me;function N2(e){const t=k2();return C2(()=>{const n=t.current;T2(n,e)},[e,t])}var L2=N2;const{atomicUpdater:A2}=Th,{useStoreRef:x2}=jt,{useMemo:M2}=me;function P2(e,t){const n=x2();return M2(()=>(...r)=>{A2(n.current)(l=>{e(l)(...r)})},t!=null?[...t,n]:void 0)}var $2=P2;class I2{constructor(t){Z(this,"value",void 0),this.value=t}}var V2={WrappedValue:I2},z2=V2.WrappedValue,Ah=Object.freeze({__proto__:null,WrappedValue:z2});const{isFastRefreshEnabled:D2}=ko;class Jc extends Error{}class O2{constructor(t){var n,r,o;Z(this,"_name",void 0),Z(this,"_numLeafs",void 0),Z(this,"_root",void 0),Z(this,"_onHit",void 0),Z(this,"_onSet",void 0),Z(this,"_mapNodeValue",void 0),this._name=t==null?void 0:t.name,this._numLeafs=0,this._root=null,this._onHit=(n=t==null?void 0:t.onHit)!==null&&n!==void 0?n:()=>{},this._onSet=(r=t==null?void 0:t.onSet)!==null&&r!==void 0?r:()=>{},this._mapNodeValue=(o=t==null?void 0:t.mapNodeValue)!==null&&o!==void 0?o:l=>l}size(){return this._numLeafs}root(){return this._root}get(t,n){var r;return(r=this.getLeafNode(t,n))===null||r===void 0?void 0:r.value}getLeafNode(t,n){if(this._root==null)return;let r=this._root;for(;r;){if(n==null||n.onNodeVisit(r),r.type==="leaf")return this._onHit(r),r;const o=this._mapNodeValue(t(r.nodeKey));r=r.branches.get(o)}}set(t,n,r){const o=()=>{var l,i,u,s;let a,d;for(const[F,h]of t){var f,m,_;const c=this._root;if((c==null?void 0:c.type)==="leaf")throw this.invalidCacheError();const p=a;if(a=p?p.branches.get(d):c,a=(f=a)!==null&&f!==void 0?f:{type:"branch",nodeKey:F,parent:p,branches:new Map,branchKey:d},a.type!=="branch"||a.nodeKey!==F)throw this.invalidCacheError();p==null||p.branches.set(d,a),r==null||(m=r.onNodeVisit)===null||m===void 0||m.call(r,a),d=this._mapNodeValue(h),this._root=(_=this._root)!==null&&_!==void 0?_:a}const S=a?(l=a)===null||l===void 0?void 0:l.branches.get(d):this._root;if(S!=null&&(S.type!=="leaf"||S.branchKey!==d))throw this.invalidCacheError();const R={type:"leaf",value:n,parent:a,branchKey:d};(i=a)===null||i===void 0||i.branches.set(d,R),this._root=(u=this._root)!==null&&u!==void 0?u:R,this._numLeafs++,this._onSet(R),r==null||(s=r.onNodeVisit)===null||s===void 0||s.call(r,R)};try{o()}catch(l){if(l instanceof Jc)this.clear(),o();else throw l}}delete(t){const n=this.root();if(!n)return!1;if(t===n)return this._root=null,this._numLeafs=0,!0;let r=t.parent,o=t.branchKey;for(;r;){var l;if(r.branches.delete(o),r===n)return r.branches.size===0?(this._root=null,this._numLeafs=0):this._numLeafs--,!0;if(r.branches.size>0)break;o=(l=r)===null||l===void 0?void 0:l.branchKey,r=r.parent}for(;r!==n;r=r.parent)if(r==null)return!1;return this._numLeafs--,!0}clear(){this._numLeafs=0,this._root=null}invalidCacheError(){const t=D2()?"Possible Fast Refresh module reload detected. This may also be caused by an selector returning inconsistent values. Resetting cache.":"Invalid cache values. This happens when selectors do not return consistent values for the same input dependency values. That may also be caused when using Fast Refresh to change a selector implementation. Resetting cache.";throw ia(t+(this._name!=null?` - ${this._name}`:"")),new Jc}}var U2={TreeCache:O2},F2=U2.TreeCache,xh=Object.freeze({__proto__:null,TreeCache:F2});class B2{constructor(t){var n;Z(this,"_maxSize",void 0),Z(this,"_size",void 0),Z(this,"_head",void 0),Z(this,"_tail",void 0),Z(this,"_map",void 0),Z(this,"_keyMapper",void 0),this._maxSize=t.maxSize,this._size=0,this._head=null,this._tail=null,this._map=new Map,this._keyMapper=(n=t.mapKey)!==null&&n!==void 0?n:r=>r}head(){return this._head}tail(){return this._tail}size(){return this._size}maxSize(){return this._maxSize}has(t){return this._map.has(this._keyMapper(t))}get(t){const n=this._keyMapper(t),r=this._map.get(n);if(r)return this.set(t,r.value),r.value}set(t,n){const r=this._keyMapper(t);this._map.get(r)&&this.delete(t);const l=this.head(),i={key:t,right:l,left:null,value:n};l?l.left=i:this._tail=i,this._map.set(r,i),this._head=i,this._size++,this._maybeDeleteLRU()}_maybeDeleteLRU(){this.size()>this.maxSize()&&this.deleteLru()}deleteLru(){const t=this.tail();t&&this.delete(t.key)}delete(t){const n=this._keyMapper(t);if(!this._size||!this._map.has(n))return;const r=ve(this._map.get(n)),o=r.right,l=r.left;o&&(o.left=r.left),l&&(l.right=r.right),r===this.head()&&(this._head=o),r===this.tail()&&(this._tail=l),this._map.delete(n),this._size--}clear(){this._size=0,this._head=null,this._tail=null,this._map=new Map}}var j2={LRUCache:B2},W2=j2.LRUCache,Mh=Object.freeze({__proto__:null,LRUCache:W2});const{LRUCache:H2}=Mh,{TreeCache:b2}=xh;function K2({name:e,maxSize:t,mapNodeValue:n=r=>r}){const r=new H2({maxSize:t}),o=new b2({name:e,mapNodeValue:n,onHit:l=>{r.set(l,!0)},onSet:l=>{const i=r.tail();r.set(l,!0),i&&o.size()>t&&o.delete(i.key)}});return o}var ef=K2;function yt(e,t,n){if(typeof e=="string"&&!e.includes('"')&&!e.includes("\\"))return`"${e}"`;switch(typeof e){case"undefined":return"";case"boolean":return e?"true":"false";case"number":case"symbol":return String(e);case"string":return JSON.stringify(e);case"function":if((t==null?void 0:t.allowFunctions)!==!0)throw X("Attempt to serialize function in a Recoil cache key");return`__FUNCTION(${e.name})__`}if(e===null)return"null";if(typeof e!="object"){var r;return(r=JSON.stringify(e))!==null&&r!==void 0?r:""}if(ae(e))return"__PROMISE__";if(Array.isArray(e))return`[${e.map((o,l)=>yt(o,t,l.toString()))}]`;if(typeof e.toJSON=="function")return yt(e.toJSON(n),t,n);if(e instanceof Map){const o={};for(const[l,i]of e)o[typeof l=="string"?l:yt(l,t)]=i;return yt(o,t,n)}return e instanceof Set?yt(Array.from(e).sort((o,l)=>yt(o,t).localeCompare(yt(l,t))),t,n):Symbol!==void 0&&e[Symbol.iterator]!=null&&typeof e[Symbol.iterator]=="function"?yt(Array.from(e),t,n):`{${Object.keys(e).filter(o=>e[o]!==void 0).sort().map(o=>`${yt(o,t)}:${yt(e[o],t,o)}`).join(",")}}`}function G2(e,t={allowFunctions:!1}){return yt(e,t)}var Ri=G2;const{TreeCache:Q2}=xh,Yo={equality:"reference",eviction:"keep-all",maxSize:1/0};function Z2({equality:e=Yo.equality,eviction:t=Yo.eviction,maxSize:n=Yo.maxSize}=Yo,r){const o=Y2(e);return X2(t,n,o,r)}function Y2(e){switch(e){case"reference":return t=>t;case"value":return t=>Ri(t)}throw X(`Unrecognized equality policy ${e}`)}function X2(e,t,n,r){switch(e){case"keep-all":return new Q2({name:r,mapNodeValue:n});case"lru":return ef({name:r,maxSize:ve(t),mapNodeValue:n});case"most-recent":return ef({name:r,maxSize:1,mapNodeValue:n})}throw X(`Unrecognized eviction policy ${e}`)}var q2=Z2;function J2(e){return()=>null}var ew={startPerfBlock:J2};const{isLoadable:tw,loadableWithError:Xo,loadableWithPromise:nw,loadableWithValue:lu}=Eo,{WrappedValue:Ph}=Ah,{getNodeLoadable:qo,peekNodeLoadable:rw,setNodeValue:ow}=hn,{saveDepsToStore:lw}=To,{DEFAULT_VALUE:iw,getConfigDeletionHandler:uw,getNode:sw,registerNode:tf}=Ye,{isRecoilValue:aw}=dr,{markRecoilValueModified:nf}=At,{retainedByOptionWithDefault:cw}=Vn,{recoilCallback:fw}=Lh,{startPerfBlock:dw}=ew;class $h{}const $r=new $h,Ir=[],Jo=new Map,pw=(()=>{let e=0;return()=>e++})();function Ih(e){let t=null;const{key:n,get:r,cachePolicy_UNSTABLE:o}=e,l=e.set!=null?e.set:void 0,i=new Set,u=q2(o??{equality:"reference",eviction:"keep-all"},n),s=cw(e.retainedBy_UNSTABLE),a=new Map;let d=0;function f(){return!ie("recoil_memory_managament_2020")||d>0}function m(y){return y.getState().knownSelectors.add(n),d++,()=>{d--}}function _(){return uw(n)!==void 0&&!f()}function S(y,A,x,G,z){Ie(A,G,z),R(y,x)}function R(y,A){$e(y,A)&&oe(y),h(A,!0)}function F(y,A){$e(y,A)&&(ve(U(y)).stateVersions.clear(),h(A,!1))}function h(y,A){const x=Jo.get(y);if(x!=null){for(const G of x)nf(G,ve(t));A&&Jo.delete(y)}}function c(y,A){let x=Jo.get(A);x==null&&Jo.set(A,x=new Set),x.add(y)}function p(y,A,x,G,z,Y){return A.then(J=>{if(!f())throw oe(y),$r;const W=lu(J);return S(y,x,z,W,G),J}).catch(J=>{if(!f())throw oe(y),$r;if(ae(J))return w(y,J,x,G,z,Y);const W=Xo(J);throw S(y,x,z,W,G),J})}function w(y,A,x,G,z,Y){return A.then(J=>{if(!f())throw oe(y),$r;Y.loadingDepKey!=null&&Y.loadingDepPromise===A?x.atomValues.set(Y.loadingDepKey,lu(J)):y.getState().knownSelectors.forEach(le=>{x.atomValues.delete(le)});const W=N(y,x);if(W&&W.state!=="loading"){if(($e(y,z)||U(y)==null)&&R(y,z),W.state==="hasValue")return W.contents;throw W.contents}if(!$e(y,z)){const le=te(y,x);if(le!=null)return le.loadingLoadable.contents}const[de,ke]=L(y,x,z);if(de.state!=="loading"&&S(y,x,z,de,ke),de.state==="hasError")throw de.contents;return de.contents}).catch(J=>{if(J instanceof $h)throw $r;if(!f())throw oe(y),$r;const W=Xo(J);throw S(y,x,z,W,G),J})}function E(y,A,x,G){var z,Y,J,W;if($e(y,G)||A.version===((z=y.getState())===null||z===void 0||(Y=z.currentTree)===null||Y===void 0?void 0:Y.version)||A.version===((J=y.getState())===null||J===void 0||(W=J.nextTree)===null||W===void 0?void 0:W.version)){var de,ke,le;lw(n,x,y,(de=(ke=y.getState())===null||ke===void 0||(le=ke.nextTree)===null||le===void 0?void 0:le.version)!==null&&de!==void 0?de:y.getState().currentTree.version)}for(const ye of x)i.add(ye)}function L(y,A,x){const G=dw(n);let z=!0,Y=!0;const J=()=>{G(),Y=!1};let W,de=!1,ke;const le={loadingDepKey:null,loadingDepPromise:null},ye=new Map;function ht({key:it}){const qe=qo(y,A,it);switch(ye.set(it,qe),z||(E(y,A,new Set(ye.keys()),x),F(y,x)),qe.state){case"hasValue":return qe.contents;case"hasError":throw qe.contents;case"loading":throw le.loadingDepKey=it,le.loadingDepPromise=qe.contents,qe.contents}throw X("Invalid Loadable state")}const mn=it=>(...qe)=>{if(Y)throw X("Callbacks from getCallback() should only be called asynchronously after the selector is evalutated. It can be used for selectors to return objects with callbacks that can work with Recoil state without a subscription.");return t==null&&Fr(!1),fw(y,it,qe,{node:t})};try{W=r({get:ht,getCallback:mn}),W=aw(W)?ht(W):W,tw(W)&&(W.state==="hasError"&&(de=!0),W=W.contents),ae(W)?W=p(y,W,A,ye,x,le).finally(J):J(),W=W instanceof Ph?W.value:W}catch(it){W=it,ae(W)?W=w(y,W,A,ye,x,le).finally(J):(de=!0,J())}return de?ke=Xo(W):ae(W)?ke=nw(W):ke=lu(W),z=!1,lt(y,x,ye),E(y,A,new Set(ye.keys()),x),[ke,ye]}function N(y,A){let x=A.atomValues.get(n);if(x!=null)return x;const G=new Set;try{x=u.get(Y=>(typeof Y!="string"&&Fr(!1),qo(y,A,Y).contents),{onNodeVisit:Y=>{Y.type==="branch"&&Y.nodeKey!==n&&G.add(Y.nodeKey)}})}catch(Y){throw X(`Problem with cache lookup for selector "${n}": ${Y.message}`)}if(x){var z;A.atomValues.set(n,x),E(y,A,G,(z=U(y))===null||z===void 0?void 0:z.executionID)}return x}function V(y,A){const x=N(y,A);if(x!=null)return oe(y),x;const G=te(y,A);if(G!=null){var z;return((z=G.loadingLoadable)===null||z===void 0?void 0:z.state)==="loading"&&c(y,G.executionID),G.loadingLoadable}const Y=pw(),[J,W]=L(y,A,Y);return J.state==="loading"?(fe(y,Y,J,W,A),c(y,Y)):(oe(y),Ie(A,J,W)),J}function te(y,A){const x=nh([a.has(y)?[ve(a.get(y))]:[],ai(fa(a,([z])=>z!==y),([,z])=>z)]);function G(z){for(const[Y,J]of z)if(!qo(y,A,Y).is(J))return!0;return!1}for(const z of x){if(z.stateVersions.get(A.version)||!G(z.depValuesDiscoveredSoFarDuringAsyncWork))return z.stateVersions.set(A.version,!0),z;z.stateVersions.set(A.version,!1)}}function U(y){return a.get(y)}function fe(y,A,x,G,z){a.set(y,{depValuesDiscoveredSoFarDuringAsyncWork:G,executionID:A,loadingLoadable:x,stateVersions:new Map([[z.version,!0]])})}function lt(y,A,x){if($e(y,A)){const G=U(y);G!=null&&(G.depValuesDiscoveredSoFarDuringAsyncWork=x)}}function oe(y){a.delete(y)}function $e(y,A){var x;return A===((x=U(y))===null||x===void 0?void 0:x.executionID)}function Mt(y){return Array.from(y.entries()).map(([A,x])=>[A,x.contents])}function Ie(y,A,x){y.atomValues.set(n,A);try{u.set(Mt(x),A)}catch(G){throw X(`Problem with setting cache for selector "${n}": ${G.message}`)}}function Xe(y){if(Ir.includes(n)){const A=`Recoil selector has circular dependencies: ${Ir.slice(Ir.indexOf(n)).join(" → ")}`;return Xo(X(A))}Ir.push(n);try{return y()}finally{Ir.pop()}}function $(y,A){const x=A.atomValues.get(n);return x??u.get(G=>{var z;return typeof G!="string"&&Fr(!1),(z=rw(y,A,G))===null||z===void 0?void 0:z.contents})}function H(y,A){return Xe(()=>V(y,A))}function I(y){y.atomValues.delete(n)}function j(y,A){t==null&&Fr(!1);for(const G of i){var x;const z=sw(G);(x=z.clearCache)===null||x===void 0||x.call(z,y,A)}i.clear(),I(A),u.clear(),nf(y,t)}return l!=null?t=tf({key:n,nodeType:"selector",peek:$,get:H,set:(A,x,G)=>{let z=!1;const Y=new Map;function J({key:le}){if(z)throw X("Recoil: Async selector sets are not currently supported.");const ye=qo(A,x,le);if(ye.state==="hasValue")return ye.contents;if(ye.state==="loading"){const ht=`Getting value of asynchronous atom or selector "${le}" in a pending state while setting selector "${n}" is not yet supported.`;throw X(ht)}else throw ye.contents}function W(le,ye){if(z)throw X("Recoil: Async selector sets are not currently supported.");const ht=typeof ye=="function"?ye(J(le)):ye;ow(A,x,le.key,ht).forEach((it,qe)=>Y.set(qe,it))}function de(le){W(le,iw)}const ke=l({set:W,get:J,reset:de},G);if(ke!==void 0)throw ae(ke)?X("Recoil: Async selector sets are not currently supported."):X("Recoil: selector set should be a void function.");return z=!0,Y},init:m,invalidate:I,clearCache:j,shouldDeleteConfigOnRelease:_,dangerouslyAllowMutability:e.dangerouslyAllowMutability,shouldRestoreFromSnapshots:!1,retainedBy:s}):t=tf({key:n,nodeType:"selector",peek:$,get:H,init:m,invalidate:I,clearCache:j,shouldDeleteConfigOnRelease:_,dangerouslyAllowMutability:e.dangerouslyAllowMutability,shouldRestoreFromSnapshots:!1,retainedBy:s})}Ih.value=e=>new Ph(e);var vr=Ih;const{isLoadable:hw,loadableWithError:iu,loadableWithPromise:uu,loadableWithValue:On}=Eo,{WrappedValue:Vh}=Ah,{peekNodeInfo:vw}=hn,{DEFAULT_VALUE:Sn,DefaultValue:Kt,getConfigDeletionHandler:zh,registerNode:mw,setConfigDeletionHandler:yw}=Ye,{isRecoilValue:gw}=dr,{getRecoilValueAsLoadable:Sw,markRecoilValueModified:ww,setRecoilValue:rf,setRecoilValueLoadable:_w}=At,{retainedByOptionWithDefault:Rw}=Vn,Vr=e=>e instanceof Vh?e.value:e;function Ew(e){const{key:t,persistence_UNSTABLE:n}=e,r=Rw(e.retainedBy_UNSTABLE);let o=0;function l(c){return uu(c.then(p=>(i=On(p),p)).catch(p=>{throw i=iu(p),p}))}let i=ae(e.default)?l(e.default):hw(e.default)?e.default.state==="loading"?l(e.default.contents):e.default:On(Vr(e.default));i.contents;let u;const s=new Map;function a(c){return c}function d(c,p){const w=p.then(E=>{var L,N;return((N=((L=c.getState().nextTree)!==null&&L!==void 0?L:c.getState().currentTree).atomValues.get(t))===null||N===void 0?void 0:N.contents)===w&&rf(c,h,E),E}).catch(E=>{var L,N;throw((N=((L=c.getState().nextTree)!==null&&L!==void 0?L:c.getState().currentTree).atomValues.get(t))===null||N===void 0?void 0:N.contents)===w&&_w(c,h,iu(E)),E});return w}function f(c,p,w){var E;o++;const L=()=>{var U;o--,(U=s.get(c))===null||U===void 0||U.forEach(fe=>fe()),s.delete(c)};if(c.getState().knownAtoms.add(t),i.state==="loading"){const U=()=>{var fe;((fe=c.getState().nextTree)!==null&&fe!==void 0?fe:c.getState().currentTree).atomValues.has(t)||ww(c,h)};i.contents.finally(U)}const N=(E=e.effects)!==null&&E!==void 0?E:e.effects_UNSTABLE;if(N!=null){let U=function(I){if($e&&I.key===t){const j=oe;return j instanceof Kt?m(c,p):ae(j)?uu(j.then(y=>y instanceof Kt?i.toPromise():y)):On(j)}return Sw(c,I)},fe=function(I){return U(I).toPromise()},lt=function(I){var j;const y=vw(c,(j=c.getState().nextTree)!==null&&j!==void 0?j:c.getState().currentTree,I.key);return $e&&I.key===t&&!(oe instanceof Kt)?{...y,isSet:!0,loadable:U(I)}:y},oe=Sn,$e=!0,Mt=!1,Ie=null;const Xe=I=>j=>{if($e){const y=U(h),A=y.state==="hasValue"?y.contents:Sn;oe=typeof j=="function"?j(A):j,ae(oe)&&(oe=oe.then(x=>(Ie={effect:I,value:x},x)))}else{if(ae(j))throw X("Setting atoms to async values is not implemented.");typeof j!="function"&&(Ie={effect:I,value:Vr(j)}),rf(c,h,typeof j=="function"?y=>{const A=Vr(j(y));return Ie={effect:I,value:A},A}:Vr(j))}},$=I=>()=>Xe(I)(Sn),H=I=>j=>{var y;const{release:A}=c.subscribeToTransactions(x=>{var G;let{currentTree:z,previousTree:Y}=x.getState();Y||(Y=z);const J=(G=z.atomValues.get(t))!==null&&G!==void 0?G:i;if(J.state==="hasValue"){var W,de,ke,le;const ye=J.contents,ht=(W=Y.atomValues.get(t))!==null&&W!==void 0?W:i,mn=ht.state==="hasValue"?ht.contents:Sn;((de=Ie)===null||de===void 0?void 0:de.effect)!==I||((ke=Ie)===null||ke===void 0?void 0:ke.value)!==ye?j(ye,mn,!z.atomValues.has(t)):((le=Ie)===null||le===void 0?void 0:le.effect)===I&&(Ie=null)}},t);s.set(c,[...(y=s.get(c))!==null&&y!==void 0?y:[],A])};for(const I of N)try{const j=I({node:h,storeID:c.storeID,parentStoreID_UNSTABLE:c.parentStoreID,trigger:w,setSelf:Xe(I),resetSelf:$(I),onSet:H(I),getPromise:fe,getLoadable:U,getInfo_UNSTABLE:lt});if(j!=null){var V;s.set(c,[...(V=s.get(c))!==null&&V!==void 0?V:[],j])}}catch(j){oe=j,Mt=!0}if($e=!1,!(oe instanceof Kt)){var te;const I=Mt?iu(oe):ae(oe)?uu(d(c,oe)):On(Vr(oe));I.contents,p.atomValues.set(t,I),(te=c.getState().nextTree)===null||te===void 0||te.atomValues.set(t,I)}}return L}function m(c,p){var w,E;return(w=(E=p.atomValues.get(t))!==null&&E!==void 0?E:u)!==null&&w!==void 0?w:i}function _(c,p){if(p.atomValues.has(t))return ve(p.atomValues.get(t));if(p.nonvalidatedAtoms.has(t)){if(u!=null)return u;if(n==null)return i;const w=p.nonvalidatedAtoms.get(t),E=n.validator(w,Sn);return u=E instanceof Kt?i:On(E),u}else return i}function S(){u=void 0}function R(c,p,w){if(p.atomValues.has(t)){const E=ve(p.atomValues.get(t));if(E.state==="hasValue"&&w===E.contents)return new Map}else if(!p.nonvalidatedAtoms.has(t)&&w instanceof Kt)return new Map;return u=void 0,new Map().set(t,On(w))}function F(){return zh(t)!==void 0&&o<=0}const h=mw({key:t,nodeType:"atom",peek:m,get:_,set:R,init:f,invalidate:S,shouldDeleteConfigOnRelease:F,dangerouslyAllowMutability:e.dangerouslyAllowMutability,persistence_UNSTABLE:e.persistence_UNSTABLE?{type:e.persistence_UNSTABLE.type,backButton:e.persistence_UNSTABLE.backButton}:void 0,shouldRestoreFromSnapshots:!0,retainedBy:r});return h}function _a(e){const{...t}=e,n="default"in e?e.default:new Promise(()=>{});return gw(n)?kw({...t,default:n}):Ew({...t,default:n})}function kw(e){const t=_a({...e,default:Sn,persistence_UNSTABLE:e.persistence_UNSTABLE===void 0?void 0:{...e.persistence_UNSTABLE,validator:r=>r instanceof Kt?r:ve(e.persistence_UNSTABLE).validator(r,Sn)},effects:e.effects,effects_UNSTABLE:e.effects_UNSTABLE}),n=vr({key:`${e.key}__withFallback`,get:({get:r})=>{const o=r(t);return o instanceof Kt?e.default:o},set:({set:r},o)=>r(t,o),cachePolicy_UNSTABLE:{eviction:"most-recent"},dangerouslyAllowMutability:e.dangerouslyAllowMutability});return yw(n.key,zh(e.key)),n}_a.value=e=>new Vh(e);var Dh=_a;class Tw{constructor(t){var n;Z(this,"_map",void 0),Z(this,"_keyMapper",void 0),this._map=new Map,this._keyMapper=(n=t==null?void 0:t.mapKey)!==null&&n!==void 0?n:r=>r}size(){return this._map.size}has(t){return this._map.has(this._keyMapper(t))}get(t){return this._map.get(this._keyMapper(t))}set(t,n){this._map.set(this._keyMapper(t),n)}delete(t){this._map.delete(this._keyMapper(t))}clear(){this._map.clear()}}var Cw={MapCache:Tw},Nw=Cw.MapCache,Lw=Object.freeze({__proto__:null,MapCache:Nw});const{LRUCache:of}=Mh,{MapCache:Aw}=Lw,el={equality:"reference",eviction:"none",maxSize:1/0};function xw({equality:e=el.equality,eviction:t=el.eviction,maxSize:n=el.maxSize}=el){const r=Mw(e);return Pw(t,n,r)}function Mw(e){switch(e){case"reference":return t=>t;case"value":return t=>Ri(t)}throw X(`Unrecognized equality policy ${e}`)}function Pw(e,t,n){switch(e){case"keep-all":return new Aw({mapKey:n});case"lru":return new of({mapKey:n,maxSize:ve(t)});case"most-recent":return new of({mapKey:n,maxSize:1})}throw X(`Unrecognized eviction policy ${e}`)}var Oh=xw;const{setConfigDeletionHandler:$w}=Ye;function Iw(e){var t,n;const r=Oh({equality:(t=(n=e.cachePolicyForParams_UNSTABLE)===null||n===void 0?void 0:n.equality)!==null&&t!==void 0?t:"value",eviction:"keep-all"});return o=>{var l,i;const u=r.get(o);if(u!=null)return u;const{cachePolicyForParams_UNSTABLE:s,...a}=e,d="default"in e?e.default:new Promise(()=>{}),f=Dh({...a,key:`${e.key}__${(l=Ri(o))!==null&&l!==void 0?l:"void"}`,default:typeof d=="function"?d(o):d,retainedBy_UNSTABLE:typeof e.retainedBy_UNSTABLE=="function"?e.retainedBy_UNSTABLE(o):e.retainedBy_UNSTABLE,effects:typeof e.effects=="function"?e.effects(o):typeof e.effects_UNSTABLE=="function"?e.effects_UNSTABLE(o):(i=e.effects)!==null&&i!==void 0?i:e.effects_UNSTABLE});return r.set(o,f),$w(f.key,()=>{r.delete(o)}),f}}var Vw=Iw;const{setConfigDeletionHandler:zw}=Ye;let Dw=0;function Ow(e){var t,n;const r=Oh({equality:(t=(n=e.cachePolicyForParams_UNSTABLE)===null||n===void 0?void 0:n.equality)!==null&&t!==void 0?t:"value",eviction:"keep-all"});return o=>{var l;let i;try{i=r.get(o)}catch(m){throw X(`Problem with cache lookup for selector ${e.key}: ${m.message}`)}if(i!=null)return i;const u=`${e.key}__selectorFamily/${(l=Ri(o,{allowFunctions:!0}))!==null&&l!==void 0?l:"void"}/${Dw++}`,s=m=>e.get(o)(m),a=e.cachePolicy_UNSTABLE,d=typeof e.retainedBy_UNSTABLE=="function"?e.retainedBy_UNSTABLE(o):e.retainedBy_UNSTABLE;let f;if(e.set!=null){const m=e.set;f=vr({key:u,get:s,set:(S,R)=>m(o)(S,R),cachePolicy_UNSTABLE:a,dangerouslyAllowMutability:e.dangerouslyAllowMutability,retainedBy_UNSTABLE:d})}else f=vr({key:u,get:s,cachePolicy_UNSTABLE:a,dangerouslyAllowMutability:e.dangerouslyAllowMutability,retainedBy_UNSTABLE:d});return r.set(o,f),zw(f.key,()=>{r.delete(o)}),f}}var vn=Ow;const Uw=vn({key:"__constant",get:e=>()=>e,cachePolicyForParams_UNSTABLE:{equality:"reference"}});function Fw(e){return Uw(e)}var Bw=Fw;const jw=vn({key:"__error",get:e=>()=>{throw X(e)},cachePolicyForParams_UNSTABLE:{equality:"reference"}});function Ww(e){return jw(e)}var Hw=Ww;function bw(e){return e}var Kw=bw;const{loadableWithError:Uh,loadableWithPromise:Fh,loadableWithValue:Bh}=Eo;function Ei(e,t){const n=Array(t.length).fill(void 0),r=Array(t.length).fill(void 0);for(const[o,l]of t.entries())try{n[o]=e(l)}catch(i){r[o]=i}return[n,r]}function Gw(e){return e!=null&&!ae(e)}function ki(e){return Array.isArray(e)?e:Object.getOwnPropertyNames(e).map(t=>e[t])}function cs(e,t){return Array.isArray(e)?t:Object.getOwnPropertyNames(e).reduce((n,r,o)=>({...n,[r]:t[o]}),{})}function rr(e,t,n){const r=n.map((o,l)=>o==null?Bh(t[l]):ae(o)?Fh(o):Uh(o));return cs(e,r)}function Qw(e,t){return t.map((n,r)=>n===void 0?e[r]:n)}const Zw=vn({key:"__waitForNone",get:e=>({get:t})=>{const n=ki(e),[r,o]=Ei(t,n);return rr(e,r,o)},dangerouslyAllowMutability:!0}),Yw=vn({key:"__waitForAny",get:e=>({get:t})=>{const n=ki(e),[r,o]=Ei(t,n);return o.some(l=>!ae(l))?rr(e,r,o):new Promise(l=>{for(const[i,u]of o.entries())ae(u)&&u.then(s=>{r[i]=s,o[i]=void 0,l(rr(e,r,o))}).catch(s=>{o[i]=s,l(rr(e,r,o))})})},dangerouslyAllowMutability:!0}),Xw=vn({key:"__waitForAll",get:e=>({get:t})=>{const n=ki(e),[r,o]=Ei(t,n);if(o.every(i=>i==null))return cs(e,r);const l=o.find(Gw);if(l!=null)throw l;return Promise.all(o).then(i=>cs(e,Qw(r,i)))},dangerouslyAllowMutability:!0}),qw=vn({key:"__waitForAllSettled",get:e=>({get:t})=>{const n=ki(e),[r,o]=Ei(t,n);return o.every(l=>!ae(l))?rr(e,r,o):Promise.all(o.map((l,i)=>ae(l)?l.then(u=>{r[i]=u,o[i]=void 0}).catch(u=>{r[i]=void 0,o[i]=u}):null)).then(()=>rr(e,r,o))},dangerouslyAllowMutability:!0}),Jw=vn({key:"__noWait",get:e=>({get:t})=>{try{return vr.value(Bh(t(e)))}catch(n){return vr.value(ae(n)?Fh(n):Uh(n))}},dangerouslyAllowMutability:!0});var e_={waitForNone:Zw,waitForAny:Yw,waitForAll:Xw,waitForAllSettled:qw,noWait:Jw};const{RecoilLoadable:t_}=Eo,{DefaultValue:n_}=Ye,{RecoilRoot:r_,useRecoilStoreID:o_}=jt,{isRecoilValue:l_}=dr,{retentionZone:i_}=fi,{freshSnapshot:u_}=yi,{useRecoilState:s_,useRecoilState_TRANSITION_SUPPORT_UNSTABLE:a_,useRecoilStateLoadable:c_,useRecoilValue:f_,useRecoilValue_TRANSITION_SUPPORT_UNSTABLE:d_,useRecoilValueLoadable:p_,useRecoilValueLoadable_TRANSITION_SUPPORT_UNSTABLE:h_,useResetRecoilState:v_,useSetRecoilState:m_}=CS,{useGotoRecoilSnapshot:y_,useRecoilSnapshot:g_,useRecoilTransactionObserver:S_}=kh,{useRecoilCallback:w_}=Lh,{noWait:__,waitForAll:R_,waitForAllSettled:E_,waitForAny:k_,waitForNone:T_}=e_;var Ao={DefaultValue:n_,isRecoilValue:l_,RecoilLoadable:t_,RecoilEnv:Sr,RecoilRoot:r_,useRecoilStoreID:o_,useRecoilBridgeAcrossReactRoots_UNSTABLE:JS,atom:Dh,selector:vr,atomFamily:Vw,selectorFamily:vn,constSelector:Bw,errorSelector:Hw,readOnlySelector:Kw,noWait:__,waitForNone:T_,waitForAny:k_,waitForAll:R_,waitForAllSettled:E_,useRecoilValue:f_,useRecoilValueLoadable:p_,useRecoilState:s_,useRecoilStateLoadable:c_,useSetRecoilState:m_,useResetRecoilState:v_,useGetRecoilValueInfo_UNSTABLE:GS,useRecoilRefresher_UNSTABLE:L2,useRecoilValueLoadable_TRANSITION_SUPPORT_UNSTABLE:h_,useRecoilValue_TRANSITION_SUPPORT_UNSTABLE:d_,useRecoilState_TRANSITION_SUPPORT_UNSTABLE:a_,useRecoilCallback:w_,useRecoilTransaction_UNSTABLE:$2,useGotoRecoilSnapshot:y_,useRecoilSnapshot:g_,useRecoilTransactionObserver_UNSTABLE:S_,snapshot_UNSTABLE:u_,useRetain:ma,retentionZone:i_},C_=Ao.RecoilRoot,xo=Ao.atom,N_=Ao.selector,L_=Ao.useRecoilValue,Mo=Ao.useRecoilState;function jh(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=jh(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function jl(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=jh(e))&&(r&&(r+=" "),r+=t);return r}function fs(){return fs=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},fs.apply(this,arguments)}var Wh=["shift","alt","meta","mod","ctrl"],A_={esc:"escape",return:"enter",".":"period",",":"comma","-":"slash"," ":"space","`":"backquote","#":"backslash","+":"bracketright",ShiftLeft:"shift",ShiftRight:"shift",AltLeft:"alt",AltRight:"alt",MetaLeft:"meta",MetaRight:"meta",OSLeft:"meta",OSRight:"meta",ControlLeft:"ctrl",ControlRight:"ctrl"};function Xt(e){return(A_[e]||e).trim().toLowerCase().replace(/key|digit|numpad|arrow/,"")}function x_(e){return Wh.includes(e)}function su(e,t){return t===void 0&&(t=","),e.split(t)}function au(e,t,n){t===void 0&&(t="+");var r=e.toLocaleLowerCase().split(t).map(function(i){return Xt(i)}),o={alt:r.includes("alt"),ctrl:r.includes("ctrl")||r.includes("control"),shift:r.includes("shift"),meta:r.includes("meta"),mod:r.includes("mod")},l=r.filter(function(i){return!Wh.includes(i)});return fs({},o,{keys:l,description:n})}(function(){typeof document<"u"&&(document.addEventListener("keydown",function(e){e.key!==void 0&&Hh([Xt(e.key),Xt(e.code)])}),document.addEventListener("keyup",function(e){e.key!==void 0&&bh([Xt(e.key),Xt(e.code)])})),typeof window<"u"&&window.addEventListener("blur",function(){qt.clear()})})();var qt=new Set;function Ra(e){return Array.isArray(e)}function M_(e,t){t===void 0&&(t=",");var n=Ra(e)?e:e.split(t);return n.every(function(r){return qt.has(r.trim().toLowerCase())})}function Hh(e){var t=Array.isArray(e)?e:[e];qt.has("meta")&&qt.forEach(function(n){return!x_(n)&&qt.delete(n.toLowerCase())}),t.forEach(function(n){return qt.add(n.toLowerCase())})}function bh(e){var t=Array.isArray(e)?e:[e];e==="meta"?qt.clear():t.forEach(function(n){return qt.delete(n.toLowerCase())})}function P_(e,t,n){(typeof n=="function"&&n(e,t)||n===!0)&&e.preventDefault()}function $_(e,t,n){return typeof n=="function"?n(e,t):n===!0||n===void 0}function I_(e){return Kh(e,["input","textarea","select"])}function Kh(e,t){var n=e.target;t===void 0&&(t=!1);var r=n&&n.tagName;return Ra(t)?!!(r&&t&&t.some(function(o){return o.toLowerCase()===r.toLowerCase()})):!!(r&&t&&t===!0)}function V_(e,t){return e.length===0&&t?(console.warn('A hotkey has the "scopes" option set, however no active scopes were found. If you want to use the global scopes feature, you need to wrap your app in a <HotkeysProvider>'),!0):t?e.some(function(n){return t.includes(n)})||e.includes("*"):!0}var z_=function(t,n,r){r===void 0&&(r=!1);var o=n.alt,l=n.meta,i=n.mod,u=n.shift,s=n.ctrl,a=n.keys,d=t.key,f=t.code,m=t.ctrlKey,_=t.metaKey,S=t.shiftKey,R=t.altKey,F=Xt(f),h=d.toLowerCase();if(!(a!=null&&a.includes(F))&&!(a!=null&&a.includes(h))&&!["ctrl","control","unknown","meta","alt","shift","os"].includes(F))return!1;if(!r){if(o===!R&&h!=="alt"||u===!S&&h!=="shift")return!1;if(i){if(!_&&!m)return!1}else if(l===!_&&h!=="meta"&&h!=="os"||s===!m&&h!=="ctrl"&&h!=="control")return!1}return a&&a.length===1&&(a.includes(h)||a.includes(F))?!0:a?M_(a):!a},D_=C.createContext(void 0),O_=function(){return C.useContext(D_)};function Gh(e,t){return e&&t&&typeof e=="object"&&typeof t=="object"?Object.keys(e).length===Object.keys(t).length&&Object.keys(e).reduce(function(n,r){return n&&Gh(e[r],t[r])},!0):e===t}var U_=C.createContext({hotkeys:[],enabledScopes:[],toggleScope:function(){},enableScope:function(){},disableScope:function(){}}),F_=function(){return C.useContext(U_)};function B_(e){var t=C.useRef(void 0);return Gh(t.current,e)||(t.current=e),t.current}var lf=function(t){t.stopPropagation(),t.preventDefault(),t.stopImmediatePropagation()},j_=typeof window<"u"?C.useLayoutEffect:C.useEffect;function cn(e,t,n,r){var o=C.useRef(null),l=C.useRef(!1),i=n instanceof Array?r instanceof Array?void 0:r:n,u=Ra(e)?e.join(i==null?void 0:i.splitKey):e,s=n instanceof Array?n:r instanceof Array?r:void 0,a=C.useCallback(t,s??[]),d=C.useRef(a);s?d.current=a:d.current=t;var f=B_(i),m=F_(),_=m.enabledScopes,S=O_();return j_(function(){if(!((f==null?void 0:f.enabled)===!1||!V_(_,f==null?void 0:f.scopes))){var R=function(w,E){var L;if(E===void 0&&(E=!1),!(I_(w)&&!Kh(w,f==null?void 0:f.enableOnFormTags))){if(o.current!==null){var N=o.current.getRootNode();if((N instanceof Document||N instanceof ShadowRoot)&&N.activeElement!==o.current&&!o.current.contains(N.activeElement)){lf(w);return}}(L=w.target)!=null&&L.isContentEditable&&!(f!=null&&f.enableOnContentEditable)||su(u,f==null?void 0:f.splitKey).forEach(function(V){var te,U=au(V,f==null?void 0:f.combinationKey);if(z_(w,U,f==null?void 0:f.ignoreModifiers)||(te=U.keys)!=null&&te.includes("*")){if(f!=null&&f.ignoreEventWhen!=null&&f.ignoreEventWhen(w)||E&&l.current)return;if(P_(w,U,f==null?void 0:f.preventDefault),!$_(w,U,f==null?void 0:f.enabled)){lf(w);return}d.current(w,U),E||(l.current=!0)}})}},F=function(w){w.key!==void 0&&(Hh(Xt(w.code)),((f==null?void 0:f.keydown)===void 0&&(f==null?void 0:f.keyup)!==!0||f!=null&&f.keydown)&&R(w))},h=function(w){w.key!==void 0&&(bh(Xt(w.code)),l.current=!1,f!=null&&f.keyup&&R(w,!0))},c=o.current||(i==null?void 0:i.document)||document;return c.addEventListener("keyup",h),c.addEventListener("keydown",F),S&&su(u,f==null?void 0:f.splitKey).forEach(function(p){return S.addHotkey(au(p,f==null?void 0:f.combinationKey,f==null?void 0:f.description))}),function(){c.removeEventListener("keyup",h),c.removeEventListener("keydown",F),S&&su(u,f==null?void 0:f.splitKey).forEach(function(p){return S.removeHotkey(au(p,f==null?void 0:f.combinationKey,f==null?void 0:f.description))})}}},[u,f,_]),o}const W_=xo({key:"open",default:!1}),H_=()=>Mo(W_),b_=xo({key:"context",default:"ACTIONS"}),Ea=()=>Mo(b_);function K_(e){const t=C.useRef();return C.useEffect(()=>{const n=r=>{t.current&&!t.current.contains(r.target)&&e()};return document.addEventListener("click",n,!0),()=>{document.removeEventListener("click",n,!0)}},[t]),t}const Qh=xo({key:"query",default:""}),Zh=()=>Mo(Qh);function Yh(){let e="/";return window.palette&&window.palette.baseUrl&&(e=`${window.palette.baseUrl}/`,e=e.replace(/\/+$/,"/")),e}const Xh=xo({key:"unfilteredActionsState",default:[]}),G_=N_({key:"actionsState",get:({get:e})=>{const t=e(Qh);return e(Xh).filter(r=>r.name.toLowerCase().includes(t.toLowerCase())||r.subtitle.toLowerCase().includes(t.toLowerCase()))}});function Q_(){const[e,t]=Mo(Xh),n=L_(G_);async function r(){const o=Yh(),i=await(await fetch(`${o}actions/palette/actions`)).json();t(i)}return{getActions:r,actions:n}}const Z_=xo({key:"focus",default:0});function ka(e){const[t,n]=Mo(Z_);C.useEffect(()=>{n(0)},[e]);async function r(o,l){l.length!==0&&(o==="up"&&t===0||o==="down"&&t===l.length-1||(o==="up"&&n(i=>i-1),o==="down"&&n(i=>i+1)))}return{setFocus:n,moveFocus:r,focus:t}}function Y_({title:e,titleId:t,...n},r){return C.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":t},n),e?C.createElement("title",{id:t},e):null,C.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M6 13.5V3.75m0 9.75a1.5 1.5 0 0 1 0 3m0-3a1.5 1.5 0 0 0 0 3m0 3.75V16.5m12-3V3.75m0 9.75a1.5 1.5 0 0 1 0 3m0-3a1.5 1.5 0 0 0 0 3m0 3.75V16.5m-6-9V3.75m0 3.75a1.5 1.5 0 0 1 0 3m0-3a1.5 1.5 0 0 0 0 3m0 9.75V10.5"}))}const X_=C.forwardRef(Y_),q_=X_;function J_({title:e,titleId:t,...n},r){return C.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":t},n),e?C.createElement("title",{id:t},e):null,C.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M15.75 9V5.25A2.25 2.25 0 0 0 13.5 3h-6a2.25 2.25 0 0 0-2.25 2.25v13.5A2.25 2.25 0 0 0 7.5 21h6a2.25 2.25 0 0 0 2.25-2.25V15M12 9l-3 3m0 0 3 3m-3-3h12.75"}))}const eR=C.forwardRef(J_),tR=eR;function nR({title:e,titleId:t,...n},r){return C.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":t},n),e?C.createElement("title",{id:t},e):null,C.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M9 15 3 9m0 0 6-6M3 9h12a6 6 0 0 1 0 12h-3"}))}const rR=C.forwardRef(nR),oR=rR;function lR({title:e,titleId:t,...n},r){return C.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":t},n),e?C.createElement("title",{id:t},e):null,C.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M3.75 6.75h16.5M3.75 12h16.5m-16.5 5.25h16.5"}))}const iR=C.forwardRef(lR),uR=iR;function sR({title:e,titleId:t,...n},r){return C.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":t},n),e?C.createElement("title",{id:t},e):null,C.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m3.75 13.5 10.5-11.25L12 10.5h8.25L9.75 21.75 12 13.5H3.75Z"}))}const aR=C.forwardRef(sR),cR=aR;function fR({title:e,titleId:t,...n},r){return C.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":t},n),e?C.createElement("title",{id:t},e):null,C.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M20.25 6.375c0 2.278-3.694 4.125-8.25 4.125S3.75 8.653 3.75 6.375m16.5 0c0-2.278-3.694-4.125-8.25-4.125S3.75 4.097 3.75 6.375m16.5 0v11.25c0 2.278-3.694 4.125-8.25 4.125s-8.25-1.847-8.25-4.125V6.375m16.5 0v3.75m-16.5-3.75v3.75m16.5 0v3.75C20.25 16.153 16.556 18 12 18s-8.25-1.847-8.25-4.125v-3.75m16.5 0c0 2.278-3.694 4.125-8.25 4.125s-8.25-1.847-8.25-4.125"}))}const dR=C.forwardRef(fR),pR=dR;function hR({title:e,titleId:t,...n},r){return C.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":t},n),e?C.createElement("title",{id:t},e):null,C.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M14.25 9.75 16.5 12l-2.25 2.25m-4.5 0L7.5 12l2.25-2.25M6 20.25h12A2.25 2.25 0 0 0 20.25 18V6A2.25 2.25 0 0 0 18 3.75H6A2.25 2.25 0 0 0 3.75 6v12A2.25 2.25 0 0 0 6 20.25Z"}))}const vR=C.forwardRef(hR),mR=vR;function yR({title:e,titleId:t,...n},r){return C.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":t},n),e?C.createElement("title",{id:t},e):null,C.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M10.343 3.94c.09-.542.56-.94 1.11-.94h1.093c.55 0 1.02.398 1.11.94l.149.894c.07.424.384.764.78.93.398.164.855.142 1.205-.108l.737-.527a1.125 1.125 0 0 1 1.45.12l.773.774c.39.389.44 1.002.12 1.45l-.527.737c-.25.35-.272.806-.107 1.204.165.397.505.71.93.78l.893.15c.543.09.94.559.94 1.109v1.094c0 .55-.397 1.02-.94 1.11l-.894.149c-.424.07-.764.383-.929.78-.165.398-.143.854.107 1.204l.527.738c.32.447.269 1.06-.12 1.45l-.774.773a1.125 1.125 0 0 1-1.449.12l-.738-.527c-.35-.25-.806-.272-1.203-.107-.398.165-.71.505-.781.929l-.149.894c-.09.542-.56.94-1.11.94h-1.094c-.55 0-1.019-.398-1.11-.94l-.148-.894c-.071-.424-.384-.764-.781-.93-.398-.164-.854-.142-1.204.108l-.738.527c-.447.32-1.06.269-1.45-.12l-.773-.774a1.125 1.125 0 0 1-.12-1.45l.527-.737c.25-.35.272-.806.108-1.204-.165-.397-.506-.71-.93-.78l-.894-.15c-.542-.09-.94-.56-.94-1.109v-1.094c0-.55.398-1.02.94-1.11l.894-.149c.424-.07.765-.383.93-.78.165-.398.143-.854-.108-1.204l-.526-.738a1.125 1.125 0 0 1 .12-1.45l.773-.773a1.125 1.125 0 0 1 1.45-.12l.737.527c.35.25.807.272 1.204.107.397-.165.71-.505.78-.929l.15-.894Z"}),C.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M15 12a3 3 0 1 1-6 0 3 3 0 0 1 6 0Z"}))}const gR=C.forwardRef(yR),SR=gR;function wR({title:e,titleId:t,...n},r){return C.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":t},n),e?C.createElement("title",{id:t},e):null,C.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m6.75 7.5 3 2.25-3 2.25m4.5 0h3m-9 8.25h13.5A2.25 2.25 0 0 0 21 18V6a2.25 2.25 0 0 0-2.25-2.25H5.25A2.25 2.25 0 0 0 3 6v12a2.25 2.25 0 0 0 2.25 2.25Z"}))}const _R=C.forwardRef(wR),RR=_R;function ER({title:e,titleId:t,...n},r){return C.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":t},n),e?C.createElement("title",{id:t},e):null,C.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M19.5 14.25v-2.625a3.375 3.375 0 0 0-3.375-3.375h-1.5A1.125 1.125 0 0 1 13.5 7.125v-1.5a3.375 3.375 0 0 0-3.375-3.375H8.25m2.25 0H5.625c-.621 0-1.125.504-1.125 1.125v17.25c0 .621.504 1.125 1.125 1.125h12.75c.621 0 1.125-.504 1.125-1.125V11.25a9 9 0 0 0-9-9Z"}))}const kR=C.forwardRef(ER),uf=kR;function TR({title:e,titleId:t,...n},r){return C.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":t},n),e?C.createElement("title",{id:t},e):null,C.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 21a9.004 9.004 0 0 0 8.716-6.747M12 21a9.004 9.004 0 0 1-8.716-6.747M12 21c2.485 0 4.5-4.03 4.5-9S14.485 3 12 3m0 18c-2.485 0-4.5-4.03-4.5-9S9.515 3 12 3m0 0a8.997 8.997 0 0 1 7.843 4.582M12 3a8.997 8.997 0 0 0-7.843 4.582m15.686 0A11.953 11.953 0 0 1 12 10.5c-2.998 0-5.74-1.1-7.843-2.918m15.686 0A8.959 8.959 0 0 1 21 12c0 .778-.099 1.533-.284 2.253m0 0A17.919 17.919 0 0 1 12 16.5c-3.162 0-6.133-.815-8.716-2.247m0 0A9.015 9.015 0 0 1 3 12c0-1.605.42-3.113 1.157-4.418"}))}const CR=C.forwardRef(TR),NR=CR;function LR({title:e,titleId:t,...n},r){return C.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":t},n),e?C.createElement("title",{id:t},e):null,C.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m21 21-5.197-5.197m0 0A7.5 7.5 0 1 0 5.196 5.196a7.5 7.5 0 0 0 10.607 10.607Z"}))}const AR=C.forwardRef(LR),xR=AR;function MR({title:e,titleId:t,...n},r){return C.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":t},n),e?C.createElement("title",{id:t},e):null,C.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m18.375 12.739-7.693 7.693a4.5 4.5 0 0 1-6.364-6.364l10.94-10.94A3 3 0 1 1 19.5 7.372L8.552 18.32m.009-.01-.01.01m5.699-9.941-7.81 7.81a1.5 1.5 0 0 0 2.112 2.13"}))}const PR=C.forwardRef(MR),$R=PR;function IR({title:e,titleId:t,...n},r){return C.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":t},n),e?C.createElement("title",{id:t},e):null,C.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m16.862 4.487 1.687-1.688a1.875 1.875 0 1 1 2.652 2.652L10.582 16.07a4.5 4.5 0 0 1-1.897 1.13L6 18l.8-2.685a4.5 4.5 0 0 1 1.13-1.897l8.932-8.931Zm0 0L19.5 7.125M18 14v4.75A2.25 2.25 0 0 1 15.75 21H5.25A2.25 2.25 0 0 1 3 18.75V8.25A2.25 2.25 0 0 1 5.25 6H10"}))}const VR=C.forwardRef(IR),zR=VR;function DR({title:e,titleId:t,...n},r){return C.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":t},n),e?C.createElement("title",{id:t},e):null,C.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M3.75 6A2.25 2.25 0 0 1 6 3.75h2.25A2.25 2.25 0 0 1 10.5 6v2.25a2.25 2.25 0 0 1-2.25 2.25H6a2.25 2.25 0 0 1-2.25-2.25V6ZM3.75 15.75A2.25 2.25 0 0 1 6 13.5h2.25a2.25 2.25 0 0 1 2.25 2.25V18a2.25 2.25 0 0 1-2.25 2.25H6A2.25 2.25 0 0 1 3.75 18v-2.25ZM13.5 6a2.25 2.25 0 0 1 2.25-2.25H18A2.25 2.25 0 0 1 20.25 6v2.25A2.25 2.25 0 0 1 18 10.5h-2.25a2.25 2.25 0 0 1-2.25-2.25V6ZM13.5 15.75a2.25 2.25 0 0 1 2.25-2.25H18a2.25 2.25 0 0 1 2.25 2.25V18A2.25 2.25 0 0 1 18 20.25h-2.25A2.25 2.25 0 0 1 13.5 18v-2.25Z"}))}const OR=C.forwardRef(DR),UR=OR;function FR({title:e,titleId:t,...n},r){return C.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":t},n),e?C.createElement("title",{id:t},e):null,C.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M3.375 19.5h17.25m-17.25 0a1.125 1.125 0 0 1-1.125-1.125M3.375 19.5h7.5c.621 0 1.125-.504 1.125-1.125m-9.75 0V5.625m0 12.75v-1.5c0-.621.504-1.125 1.125-1.125m18.375 2.625V5.625m0 12.75c0 .621-.504 1.125-1.125 1.125m1.125-1.125v-1.5c0-.621-.504-1.125-1.125-1.125m0 3.75h-7.5A1.125 1.125 0 0 1 12 18.375m9.75-12.75c0-.621-.504-1.125-1.125-1.125H3.375c-.621 0-1.125.504-1.125 1.125m19.5 0v1.5c0 .621-.504 1.125-1.125 1.125M2.25 5.625v1.5c0 .621.504 1.125 1.125 1.125m0 0h17.25m-17.25 0h7.5c.621 0 1.125.504 1.125 1.125M3.375 8.25c-.621 0-1.125.504-1.125 1.125v1.5c0 .621.504 1.125 1.125 1.125m17.25-3.75h-7.5c-.621 0-1.125.504-1.125 1.125m8.625-1.125c.621 0 1.125.504 1.125 1.125v1.5c0 .621-.504 1.125-1.125 1.125m-17.25 0h7.5m-7.5 0c-.621 0-1.125.504-1.125 1.125v1.5c0 .621.504 1.125 1.125 1.125M12 10.875v-1.5m0 1.5c0 .621-.504 1.125-1.125 1.125M12 10.875c0 .621.504 1.125 1.125 1.125m-2.25 0c.621 0 1.125.504 1.125 1.125M13.125 12h7.5m-7.5 0c-.621 0-1.125.504-1.125 1.125M20.625 12c.621 0 1.125.504 1.125 1.125v1.5c0 .621-.504 1.125-1.125 1.125m-17.25 0h7.5M12 14.625v-1.5m0 1.5c0 .621-.504 1.125-1.125 1.125M12 14.625c0 .621.504 1.125 1.125 1.125m-2.25 0c.621 0 1.125.504 1.125 1.125m0 1.5v-1.5m0 0c0-.621.504-1.125 1.125-1.125m0 0h7.5"}))}const BR=C.forwardRef(FR),jR=BR;function WR({title:e,titleId:t,...n},r){return C.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":t},n),e?C.createElement("title",{id:t},e):null,C.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M17.982 18.725A7.488 7.488 0 0 0 12 15.75a7.488 7.488 0 0 0-5.982 2.975m11.963 0a9 9 0 1 0-11.963 0m11.963 0A8.966 8.966 0 0 1 12 21a8.966 8.966 0 0 1-5.982-2.275M15 9.75a3 3 0 1 1-6 0 3 3 0 0 1 6 0Z"}))}const HR=C.forwardRef(WR),bR=HR;function KR({name:e,...t}){return e==="document"?B.jsx(uf,{...t}):e==="table"?B.jsx(jR,{...t}):e==="section"?B.jsx(UR,{...t}):e==="code"?B.jsx(mR,{...t}):e==="bolt"?B.jsx(cR,{...t}):e==="settings"?B.jsx(SR,{...t}):e==="search"?B.jsx(xR,{...t}):e==="globe"?B.jsx(NR,{...t}):e==="edit"?B.jsx(zR,{...t}):e==="menu"?B.jsx(uR,{...t}):e==="attachment"?B.jsx($R,{...t}):e==="database"?B.jsx(pR,{...t}):e==="utility"?B.jsx(q_,{...t}):e==="user"?B.jsx(bR,{...t}):e==="logout"?B.jsx(tR,{...t}):B.jsx(uf,{...t})}function qh({url:e,title:t,subtitle:n,icon:r,type:o,focused:l}){const i=C.useRef(null),[u,s]=Ea(),{focus:a,setFocus:d}=ka();return cn("enter",()=>{l&&(o==="link"?window.location=e:s(e))},{enableOnFormTags:!0}),cn("meta+enter",()=>{l&&(o==="link"?window.open(e,"_blank"):s(e))},{enableOnFormTags:!0}),C.useEffect(()=>{l&&i.current.scrollIntoView({block:"center"})},[a]),B.jsx("a",{className:jl("p-flex p-items-center p-gap-2","p-font-sans p-text-sm p-text-zinc-700 dark:p-text-zinc-300 p-no-underline","p-px-3 p-py-2.5 p-mx-2 p-rounded-lg",l&&"p-bg-zinc-200/75 dark:p-bg-zinc-700/50","hover:p-bg-zinc-200/75 dark:hover:p-bg-zinc-700/50"),onMouseEnter:()=>d(null),href:o==="link"?e:null,onClick:()=>o==="context"?s(e):null,ref:i,children:B.jsx("div",{className:"p-flex p-items-center p-justify-between p-gap-2 p-flex-1",children:B.jsxs("div",{className:"p-flex p-items-center p-gap-3 p-flex-1",children:[B.jsx(KR,{name:r,className:"p-size-5 p-opacity-75"}),B.jsxs("div",{className:"p-flex-1 p-flex p-justify-between p-items-center p-gap-1",children:[B.jsx("p",{className:"p-block p-leading-none p-m-0 p-font-sans p-font-medium",children:t}),n&&B.jsx("p",{className:"p-block p-leading-none p-text-xs p-m-0 p-font-sans p-opacity-75",children:n})]})]})})})}function Jh({text:e="No matching results found"}){return B.jsxs("div",{className:"p-flex p-flex-col p-justify-center p-items-center p-py-6 p-text-zinc-400 dark:p-text-zinc-500",children:[B.jsx("div",{children:B.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor",className:"p-size-12",children:B.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m21 21-5.197-5.197m0 0A7.5 7.5 0 1 0 5.196 5.196a7.5 7.5 0 0 0 10.607 10.607Z"})})}),B.jsx("p",{className:"p-text-lg p-mt-1",children:e})]})}function GR(){const{actions:e,getActions:t}=Q_(),{focus:n,moveFocus:r}=ka(e);return cn("up",()=>r("up",e),{enableOnFormTags:!0,preventDefault:!0}),cn("down",()=>r("down",e),{enableOnFormTags:!0,preventDefault:!0}),C.useEffect(()=>{t()},[]),B.jsxs(B.Fragment,{children:[e.length===0&&B.jsx(Jh,{}),e.map((o,l)=>B.jsx(qh,{url:o.url,title:o.name,subtitle:o.subtitle,icon:o.icon,focused:l===n,type:o.type},o.url))]})}function QR(e,t,n){C.useEffect(()=>{const r=setTimeout(()=>e(),n);return()=>clearTimeout(r)},[...t||[],n])}function ZR(){const[e]=Zh(),[t,n]=C.useState([]),{focus:r,moveFocus:o}=ka(t);return QR(()=>{const l=Yh();fetch(`${l}actions/palette/search?query=${e}`).then(i=>i.json()).then(i=>n(i))},[e],200),cn("up",()=>o("up",t),{enableOnFormTags:!0,preventDefault:!0}),cn("down",()=>o("down",t),{enableOnFormTags:!0,preventDefault:!0}),B.jsxs(B.Fragment,{children:[t.length===0&&B.jsx(Jh,{text:"No matching entries found"}),t.map((l,i)=>B.jsx(qh,{url:l.url,title:l.name,subtitle:l.subtitle,icon:l.icon,focused:i===r,type:l.type},l.url))]})}function YR({placeholder:e="Search"}){const[t,n]=Zh(),[r,o]=Ea();return C.useEffect(()=>{n("")},[r]),B.jsxs("div",{className:"p-flex p-px-2 p-items-center p-gap-1 p-border-b p-border-zinc-200 dark:p-border-zinc-700",children:[r!=="ACTIONS"&&B.jsx("div",{children:B.jsx("button",{className:"p-size-8 p-flex p-items-center p-justify-center p-border p-border-zinc-300 dark:p-border-zinc-700 p-rounded-lg dark:p-bg-zinc-900",onClick:()=>o("ACTIONS"),children:B.jsx(oR,{className:"p-size-4 p-text-zinc-500"})})}),B.jsx("input",{type:"text",className:jl(["p-bg-transparent","p-w-full p-px-2 p-py-3","p-outline-none p-ring-0 p-shadow-none p-border-0","p-text-base placeholder:p-text-zinc-400 placeholder:dark:p-text-zinc-500 p-text-zinc-700 dark:p-text-zinc-200"]),placeholder:e,onInput:({target:l})=>n(l.value),value:t,autoFocus:!0,spellCheck:!1})]})}function XR(){const[e,t]=H_(),[n,r]=Ea(),o=K_(()=>t(!1));return cn(["ctrl+k, meta+k"],()=>{t(l=>!l),r("ACTIONS")},{enableOnFormTags:!0,preventDefault:!0}),cn("esc",()=>{n==="ACTIONS"&&t(!1),r("ACTIONS")},{enableOnFormTags:!0}),B.jsxs(B.Fragment,{children:[e&&B.jsx("div",{className:"p-fixed p-inset-0 p-z-[9999] p-size-full p-flex p-justify-center p-antialiased",children:B.jsx("div",{className:"p-w-full p-max-w-2xl",children:B.jsxs("div",{ref:o,className:jl(["p-bg-white/70 dark:p-bg-zinc-950/90","p-outline-zinc-300 dark:p-outline-zinc-900 p-outline p-outline-1","p-border p-border-white dark:p-border-zinc-500","p-rounded-lg p-translate-y-24 p-overflow-hidden p-backdrop-blur-xl p-shadow-2xl"]),children:[B.jsx(YR,{}),B.jsxs("div",{className:"dark:p-bg-zinc-950/10 p-max-h-96 p-overflow-scroll p-py-2",children:[n==="ACTIONS"&&B.jsx(GR,{}),n==="SEARCH_ENTRIES"&&B.jsx(ZR,{})]})]})})}),B.jsx("button",{className:jl(["p-fixed p-bottom-5 p-right-5 p-z-[100]","p-flex p-items-center p-justify-center","p-backdrop-blur-md p-shadow p-rounded-full","p-bg-zinc-50/70 dark:p-bg-neutral-800/90","dark:p-text-neutral-300","p-size-8","p-cursor-pointer","p-border-0","p-transition-transform hover:p-scale-110 active:p-scale-90"]),onClick:()=>t(!0),"aria-label":"Open Palette",children:B.jsx(RR,{className:"p-size-5"})})]})}function qR(){return B.jsx(C_,{children:B.jsx(XR,{})})}const ev=document.createElement("div");ev.setAttribute("data-palette","");document.body.appendChild(ev);document.querySelectorAll("[data-palette]").forEach(e=>Rp.render(B.jsx(qR,{}),e)); + hot module replacement.`;console.warn(t)}}function v1(e){Sr.RECOIL_DUPLICATE_ATOM_KEY_CHECKING_ENABLED&&h1(e.key),Mn.set(e.key,e);const t=e.set==null?new dr.RecoilValueReadOnly(e.key):new dr.RecoilState(e.key);return sa.set(e.key,t),t}class Pp extends Error{}function m1(e){const t=Mn.get(e);if(t==null)throw new Pp(`Missing definition for RecoilValue: "${e}""`);return t}function y1(e){return Mn.get(e)}const Ol=new Map;function g1(e){var t;if(!ie("recoil_memory_managament_2020"))return;const n=Mn.get(e);if(n!=null&&(t=n.shouldDeleteConfigOnRelease)!==null&&t!==void 0&&t.call(n)){var r;Mn.delete(e),(r=$p(e))===null||r===void 0||r(),Ol.delete(e)}}function S1(e,t){ie("recoil_memory_managament_2020")&&(t===void 0?Ol.delete(e):Ol.set(e,t))}function $p(e){return Ol.get(e)}var Ye={nodes:Mn,recoilValues:sa,registerNode:v1,getNode:m1,getNodeMaybe:y1,deleteNodeConfigIfPossible:g1,setConfigDeletionHandler:S1,getConfigDeletionHandler:$p,recoilValuesForKeys:p1,NodeMissingError:Pp,DefaultValue:Mp,DEFAULT_VALUE:d1};function w1(e,t){t()}var _1={enqueueExecution:w1};function R1(e,t){return t={exports:{}},e(t,t.exports),t.exports}var E1=R1(function(e){var t=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(g){return typeof g}:function(g){return g&&typeof Symbol=="function"&&g.constructor===Symbol&&g!==Symbol.prototype?"symbol":typeof g},n={},r=5,o=Math.pow(2,r),l=o-1,i=o/2,u=o/4,s={},a=function(v){return function(){return v}},d=n.hash=function(g){var v=typeof g>"u"?"undefined":t(g);if(v==="number")return g;v!=="string"&&(g+="");for(var T=0,M=0,P=g.length;M<P;++M){var O=g.charCodeAt(M);T=(T<<5)-T+O|0}return T},f=function(v){return v-=v>>1&1431655765,v=(v&858993459)+(v>>2&858993459),v=v+(v>>4)&252645135,v+=v>>8,v+=v>>16,v&127},m=function(v,T){return T>>>v&l},_=function(v){return 1<<v},S=function(v,T){return f(v&T-1)},R=function(v,T,M,P){var O=P;if(!v){var Q=P.length;O=new Array(Q);for(var b=0;b<Q;++b)O[b]=P[b]}return O[T]=M,O},B=function(v,T,M){var P=M.length-1,O=0,Q=0,b=M;if(v)O=Q=T;else for(b=new Array(P);O<T;)b[Q++]=M[O++];for(++O;O<=P;)b[Q++]=M[O++];return v&&(b.length=P),b},h=function(v,T,M,P){var O=P.length;if(v){for(var Q=O;Q>=T;)P[Q--]=P[Q];return P[T]=M,P}for(var b=0,K=0,q=new Array(O+1);b<T;)q[K++]=P[b++];for(q[T]=M;b<O;)q[++K]=P[b++];return q},c=1,p=2,w=3,E=4,L={__hamt_isEmpty:!0},N=function(v){return v===L||v&&v.__hamt_isEmpty},V=function(v,T,M,P){return{type:c,edit:v,hash:T,key:M,value:P,_modify:$}},te=function(v,T,M){return{type:p,edit:v,hash:T,children:M,_modify:H}},U=function(v,T,M){return{type:w,edit:v,mask:T,children:M,_modify:I}},fe=function(v,T,M){return{type:E,edit:v,size:T,children:M,_modify:j}},lt=function(v){return v===L||v.type===c||v.type===p},oe=function(v,T,M,P,O){for(var Q=[],b=P,K=0,q=0;b;++q)b&1&&(Q[q]=O[K++]),b>>>=1;return Q[T]=M,fe(v,K+1,Q)},$e=function(v,T,M,P){for(var O=new Array(T-1),Q=0,b=0,K=0,q=P.length;K<q;++K)if(K!==M){var pe=P[K];pe&&!N(pe)&&(O[Q++]=pe,b|=1<<K)}return U(v,b,O)},Mt=function g(v,T,M,P,O,Q){if(M===O)return te(v,M,[Q,P]);var b=m(T,M),K=m(T,O);return U(v,_(b)|_(K),b===K?[g(v,T+r,M,P,O,Q)]:b<K?[P,Q]:[Q,P])},Ie=function(v,T,M,P,O,Q,b,K){for(var q=O.length,pe=0;pe<q;++pe){var We=O[pe];if(M(b,We.key)){var Ne=We.value,ut=Q(Ne);return ut===Ne?O:ut===s?(--K.value,B(v,pe,O)):R(v,pe,V(T,P,b,ut),O)}}var vt=Q();return vt===s?O:(++K.value,R(v,q,V(T,P,b,vt),O))},Xe=function(v,T){return v===T.edit},$=function(v,T,M,P,O,Q,b){if(T(Q,this.key)){var K=P(this.value);return K===this.value?this:K===s?(--b.value,L):Xe(v,this)?(this.value=K,this):V(v,O,Q,K)}var q=P();return q===s?this:(++b.value,Mt(v,M,this.hash,this,O,V(v,O,Q,q)))},H=function(v,T,M,P,O,Q,b){if(O===this.hash){var K=Xe(v,this),q=Ie(K,v,T,this.hash,this.children,P,Q,b);return q===this.children?this:q.length>1?te(v,this.hash,q):q[0]}var pe=P();return pe===s?this:(++b.value,Mt(v,M,this.hash,this,O,V(v,O,Q,pe)))},I=function(v,T,M,P,O,Q,b){var K=this.mask,q=this.children,pe=m(M,O),We=_(pe),Ne=S(K,We),ut=K&We,vt=ut?q[Ne]:L,zn=vt._modify(v,T,M+r,P,O,Q,b);if(vt===zn)return this;var Po=Xe(v,this),_r=K,Rr=void 0;if(ut&&N(zn)){if(_r&=~We,!_r)return L;if(q.length<=2&<(q[Ne^1]))return q[Ne^1];Rr=B(Po,Ne,q)}else if(!ut&&!N(zn)){if(q.length>=i)return oe(v,pe,zn,K,q);_r|=We,Rr=h(Po,Ne,zn,q)}else Rr=R(Po,Ne,zn,q);return Po?(this.mask=_r,this.children=Rr,this):U(v,_r,Rr)},j=function(v,T,M,P,O,Q,b){var K=this.size,q=this.children,pe=m(M,O),We=q[pe],Ne=(We||L)._modify(v,T,M+r,P,O,Q,b);if(We===Ne)return this;var ut=Xe(v,this),vt=void 0;if(N(We)&&!N(Ne))++K,vt=R(ut,pe,Ne,q);else if(!N(We)&&N(Ne)){if(--K,K<=u)return $e(v,K,pe,q);vt=R(ut,pe,L,q)}else vt=R(ut,pe,Ne,q);return ut?(this.size=K,this.children=vt,this):fe(v,K,vt)};L._modify=function(g,v,T,M,P,O,Q){var b=M();return b===s?L:(++Q.value,V(g,P,O,b))};function y(g,v,T,M,P){this._editable=g,this._edit=v,this._config=T,this._root=M,this._size=P}y.prototype.setTree=function(g,v){return this._editable?(this._root=g,this._size=v,this):g===this._root?this:new y(this._editable,this._edit,this._config,g,v)};var A=n.tryGetHash=function(g,v,T,M){for(var P=M._root,O=0,Q=M._config.keyEq;;)switch(P.type){case c:return Q(T,P.key)?P.value:g;case p:{if(v===P.hash)for(var b=P.children,K=0,q=b.length;K<q;++K){var pe=b[K];if(Q(T,pe.key))return pe.value}return g}case w:{var We=m(O,v),Ne=_(We);if(P.mask&Ne){P=P.children[S(P.mask,Ne)],O+=r;break}return g}case E:{if(P=P.children[m(O,v)],P){O+=r;break}return g}default:return g}};y.prototype.tryGetHash=function(g,v,T){return A(g,v,T,this)};var x=n.tryGet=function(g,v,T){return A(g,T._config.hash(v),v,T)};y.prototype.tryGet=function(g,v){return x(g,v,this)};var G=n.getHash=function(g,v,T){return A(void 0,g,v,T)};y.prototype.getHash=function(g,v){return G(g,v,this)},n.get=function(g,v){return A(void 0,v._config.hash(g),g,v)},y.prototype.get=function(g,v){return x(v,g,this)};var z=n.has=function(g,v,T){return A(s,g,v,T)!==s};y.prototype.hasHash=function(g,v){return z(g,v,this)};var Y=n.has=function(g,v){return z(v._config.hash(g),g,v)};y.prototype.has=function(g){return Y(g,this)};var J=function(v,T){return v===T};n.make=function(g){return new y(0,0,{keyEq:g&&g.keyEq||J,hash:g&&g.hash||d},L,0)},n.empty=n.make();var W=n.isEmpty=function(g){return g&&!!N(g._root)};y.prototype.isEmpty=function(){return W(this)};var de=n.modifyHash=function(g,v,T,M){var P={value:M._size},O=M._root._modify(M._editable?M._edit:NaN,M._config.keyEq,0,g,v,T,P);return M.setTree(O,P.value)};y.prototype.modifyHash=function(g,v,T){return de(T,g,v,this)};var ke=n.modify=function(g,v,T){return de(g,T._config.hash(v),v,T)};y.prototype.modify=function(g,v){return ke(v,g,this)};var le=n.setHash=function(g,v,T,M){return de(a(T),g,v,M)};y.prototype.setHash=function(g,v,T){return le(g,v,T,this)};var ye=n.set=function(g,v,T){return le(T._config.hash(g),g,v,T)};y.prototype.set=function(g,v){return ye(g,v,this)};var ht=a(s),mn=n.removeHash=function(g,v,T){return de(ht,g,v,T)};y.prototype.removeHash=y.prototype.deleteHash=function(g,v){return mn(g,v,this)};var it=n.remove=function(g,v){return mn(v._config.hash(g),g,v)};y.prototype.remove=y.prototype.delete=function(g){return it(g,this)};var qe=n.beginMutation=function(g){return new y(g._editable+1,g._edit+1,g._config,g._root,g._size)};y.prototype.beginMutation=function(){return qe(this)};var Ta=n.endMutation=function(g){return g._editable=g._editable&&g._editable-1,g};y.prototype.endMutation=function(){return Ta(this)};var tv=n.mutate=function(g,v){var T=qe(v);return g(T),Ta(T)};y.prototype.mutate=function(g){return tv(g,this)};var Ti=function(v){return v&&Ca(v[0],v[1],v[2],v[3],v[4])},Ca=function(v,T,M,P,O){for(;M<v;){var Q=T[M++];if(Q&&!N(Q))return Na(Q,P,[v,T,M,P,O])}return Ti(O)},Na=function(v,T,M){switch(v.type){case c:return{value:T(v),rest:M};case p:case E:case w:var P=v.children;return Ca(P.length,P,0,T,M);default:return Ti(M)}},nv={done:!0};function Ci(g){this.v=g}Ci.prototype.next=function(){if(!this.v)return nv;var g=this.v;return this.v=Ti(g.rest),g},Ci.prototype[Symbol.iterator]=function(){return this};var Ni=function(v,T){return new Ci(Na(v._root,T))},rv=function(v){return[v.key,v.value]},ov=n.entries=function(g){return Ni(g,rv)};y.prototype.entries=y.prototype[Symbol.iterator]=function(){return ov(this)};var lv=function(v){return v.key},iv=n.keys=function(g){return Ni(g,lv)};y.prototype.keys=function(){return iv(this)};var uv=function(v){return v.value},sv=n.values=y.prototype.values=function(g){return Ni(g,uv)};y.prototype.values=function(){return sv(this)};var La=n.fold=function(g,v,T){var M=T._root;if(M.type===c)return g(v,M.value,M.key);for(var P=[M.children],O=void 0;O=P.pop();)for(var Q=0,b=O.length;Q<b;){var K=O[Q++];K&&K.type&&(K.type===c?v=g(v,K.value,K.key):P.push(K.children))}return v};y.prototype.fold=function(g,v){return La(g,v,this)};var av=n.forEach=function(g,v){return La(function(T,M,P){return g(M,P,v)},null,v)};y.prototype.forEach=function(g){return av(g,this)};var cv=n.count=function(g){return g._size};y.prototype.count=function(){return cv(this)},Object.defineProperty(y.prototype,"size",{get:y.prototype.count}),e.exports?e.exports=n:(void 0).hamt=n});class k1{constructor(t){Z(this,"_map",void 0),this._map=new Map(t==null?void 0:t.entries())}keys(){return this._map.keys()}entries(){return this._map.entries()}get(t){return this._map.get(t)}has(t){return this._map.has(t)}set(t,n){return this._map.set(t,n),this}delete(t){return this._map.delete(t),this}clone(){return ca(this)}toMap(){return new Map(this._map)}}class aa{constructor(t){if(Z(this,"_hamt",E1.empty.beginMutation()),t instanceof aa){const n=t._hamt.endMutation();t._hamt=n.beginMutation(),this._hamt=n.beginMutation()}else if(t)for(const[n,r]of t.entries())this._hamt.set(n,r)}keys(){return this._hamt.keys()}entries(){return this._hamt.entries()}get(t){return this._hamt.get(t)}has(t){return this._hamt.has(t)}set(t,n){return this._hamt.set(t,n),this}delete(t){return this._hamt.delete(t),this}clone(){return ca(this)}toMap(){return new Map(this._hamt)}}function ca(e){return ie("recoil_hamt_2020")?new aa(e):new k1(e)}var T1={persistentMap:ca},C1=T1.persistentMap,N1=Object.freeze({__proto__:null,persistentMap:C1});function L1(e,...t){const n=new Set;e:for(const r of e){for(const o of t)if(o.has(r))continue e;n.add(r)}return n}var Yr=L1;function A1(e,t){const n=new Map;return e.forEach((r,o)=>{n.set(o,t(r,o))}),n}var Ul=A1;function x1(){return{nodeDeps:new Map,nodeToNodeSubscriptions:new Map}}function M1(e){return{nodeDeps:Ul(e.nodeDeps,t=>new Set(t)),nodeToNodeSubscriptions:Ul(e.nodeToNodeSubscriptions,t=>new Set(t))}}function ru(e,t,n,r){const{nodeDeps:o,nodeToNodeSubscriptions:l}=n,i=o.get(e);if(i&&r&&i!==r.nodeDeps.get(e))return;o.set(e,t);const u=i==null?t:Yr(t,i);for(const s of u)l.has(s)||l.set(s,new Set),ve(l.get(s)).add(e);if(i){const s=Yr(i,t);for(const a of s){if(!l.has(a))return;const d=ve(l.get(a));d.delete(e),d.size===0&&l.delete(a)}}}function P1(e,t,n,r){var o,l,i,u;const s=n.getState();r===s.currentTree.version||r===((o=s.nextTree)===null||o===void 0?void 0:o.version)||((l=s.previousTree)===null||l===void 0||l.version);const a=n.getGraph(r);if(ru(e,t,a),r===((i=s.previousTree)===null||i===void 0?void 0:i.version)){const f=n.getGraph(s.currentTree.version);ru(e,t,f,a)}if(r===((u=s.previousTree)===null||u===void 0?void 0:u.version)||r===s.currentTree.version){var d;const f=(d=s.nextTree)===null||d===void 0?void 0:d.version;if(f!==void 0){const m=n.getGraph(f);ru(e,t,m,a)}}}var To={cloneGraph:M1,graph:x1,saveDepsToStore:P1};let $1=0;const I1=()=>$1++;let V1=0;const z1=()=>V1++;let D1=0;const O1=()=>D1++;var ci={getNextTreeStateVersion:I1,getNextStoreID:z1,getNextComponentID:O1};const{persistentMap:Dc}=N1,{graph:U1}=To,{getNextTreeStateVersion:Ip}=ci;function Vp(){const e=Ip();return{version:e,stateID:e,transactionMetadata:{},dirtyAtoms:new Set,atomValues:Dc(),nonvalidatedAtoms:Dc()}}function F1(){const e=Vp();return{currentTree:e,nextTree:null,previousTree:null,commitDepth:0,knownAtoms:new Set,knownSelectors:new Set,transactionSubscriptions:new Map,nodeTransactionSubscriptions:new Map,nodeToComponentSubscriptions:new Map,queuedComponentCallbacks_DEPRECATED:[],suspendedComponentResolvers:new Set,graphsByVersion:new Map().set(e.version,U1()),retention:{referenceCounts:new Map,nodesRetainedByZone:new Map,retainablesToCheckForRelease:new Set},nodeCleanupFunctions:new Map}}var zp={makeEmptyTreeState:Vp,makeEmptyStoreState:F1,getNextTreeStateVersion:Ip};class Dp{}function B1(){return new Dp}var fi={RetentionZone:Dp,retentionZone:B1};function j1(e,t){const n=new Set(e);return n.add(t),n}function W1(e,t){const n=new Set(e);return n.delete(t),n}function H1(e,t,n){const r=new Map(e);return r.set(t,n),r}function b1(e,t,n){const r=new Map(e);return r.set(t,n(r.get(t))),r}function K1(e,t){const n=new Map(e);return n.delete(t),n}function G1(e,t){const n=new Map(e);return t.forEach(r=>n.delete(r)),n}var Op={setByAddingToSet:j1,setByDeletingFromSet:W1,mapBySettingInMap:H1,mapByUpdatingInMap:b1,mapByDeletingFromMap:K1,mapByDeletingMultipleFromMap:G1};function*Q1(e,t){let n=0;for(const r of e)t(r,n++)&&(yield r)}var fa=Q1;function Z1(e,t){return new Proxy(e,{get:(r,o)=>(!(o in r)&&o in t&&(r[o]=t[o]()),r[o]),ownKeys:r=>Object.keys(r)})}var Up=Z1;const{getNode:Co,getNodeMaybe:Y1,recoilValuesForKeys:Oc}=Ye,{RetentionZone:Uc}=fi,{setByAddingToSet:X1}=Op,q1=Object.freeze(new Set);class J1 extends Error{}function ey(e,t,n){if(!ie("recoil_memory_managament_2020"))return()=>{};const{nodesRetainedByZone:r}=e.getState().retention;function o(l){let i=r.get(l);i||r.set(l,i=new Set),i.add(t)}if(n instanceof Uc)o(n);else if(Array.isArray(n))for(const l of n)o(l);return()=>{if(!ie("recoil_memory_managament_2020"))return;const{retention:l}=e.getState();function i(u){const s=l.nodesRetainedByZone.get(u);s==null||s.delete(t),s&&s.size===0&&l.nodesRetainedByZone.delete(u)}if(n instanceof Uc)i(n);else if(Array.isArray(n))for(const u of n)i(u)}}function da(e,t,n,r){const o=e.getState();if(o.nodeCleanupFunctions.has(n))return;const l=Co(n),i=ey(e,n,l.retainedBy),u=l.init(e,t,r);o.nodeCleanupFunctions.set(n,()=>{u(),i()})}function ty(e,t,n){da(e,e.getState().currentTree,t,n)}function ny(e,t){var n;const r=e.getState();(n=r.nodeCleanupFunctions.get(t))===null||n===void 0||n(),r.nodeCleanupFunctions.delete(t)}function ry(e,t,n){return da(e,t,n,"get"),Co(n).get(e,t)}function Fp(e,t,n){return Co(n).peek(e,t)}function oy(e,t,n){var r;const o=Y1(t);return o==null||(r=o.invalidate)===null||r===void 0||r.call(o,e),{...e,atomValues:e.atomValues.clone().delete(t),nonvalidatedAtoms:e.nonvalidatedAtoms.clone().set(t,n),dirtyAtoms:X1(e.dirtyAtoms,t)}}function ly(e,t,n,r){const o=Co(n);if(o.set==null)throw new J1(`Attempt to set read-only RecoilValue: ${n}`);const l=o.set;return da(e,t,n,"set"),l(e,t,r)}function iy(e,t,n){const r=e.getState(),o=e.getGraph(t.version),l=Co(n).nodeType;return Up({type:l},{loadable:()=>Fp(e,t,n),isActive:()=>r.knownAtoms.has(n)||r.knownSelectors.has(n),isSet:()=>l==="selector"?!1:t.atomValues.has(n),isModified:()=>t.dirtyAtoms.has(n),deps:()=>{var i;return Oc((i=o.nodeDeps.get(n))!==null&&i!==void 0?i:[])},subscribers:()=>{var i,u;return{nodes:Oc(fa(Bp(e,t,new Set([n])),s=>s!==n)),components:ai((i=(u=r.nodeToComponentSubscriptions.get(n))===null||u===void 0?void 0:u.values())!==null&&i!==void 0?i:[],([s])=>({name:s}))}}})}function Bp(e,t,n){const r=new Set,o=Array.from(n),l=e.getGraph(t.version);for(let u=o.pop();u;u=o.pop()){var i;r.add(u);const s=(i=l.nodeToNodeSubscriptions.get(u))!==null&&i!==void 0?i:q1;for(const a of s)r.has(a)||o.push(a)}return r}var hn={getNodeLoadable:ry,peekNodeLoadable:Fp,setNodeValue:ly,initializeNode:ty,cleanUpNode:ny,setUnvalidatedAtomValue_DEPRECATED:oy,peekNodeInfo:iy,getDownstreamNodes:Bp};let jp=null;function uy(e){jp=e}function sy(){var e;(e=jp)===null||e===void 0||e()}var Wp={setInvalidateMemoizedSnapshot:uy,invalidateMemoizedSnapshot:sy};const{getDownstreamNodes:ay,getNodeLoadable:Hp,setNodeValue:cy}=hn,{getNextComponentID:fy}=ci,{getNode:dy,getNodeMaybe:bp}=Ye,{DefaultValue:pa}=Ye,{reactMode:py}=ko,{AbstractRecoilValue:hy,RecoilState:vy,RecoilValueReadOnly:my,isRecoilValue:yy}=dr,{invalidateMemoizedSnapshot:gy}=Wp;function Sy(e,{key:t},n=e.getState().currentTree){var r,o;const l=e.getState();n.version===l.currentTree.version||n.version===((r=l.nextTree)===null||r===void 0?void 0:r.version)||(n.version,(o=l.previousTree)===null||o===void 0||o.version);const i=Hp(e,n,t);return i.state==="loading"&&i.contents.catch(()=>{}),i}function wy(e,t){const n=e.clone();return t.forEach((r,o)=>{r.state==="hasValue"&&r.contents instanceof pa?n.delete(o):n.set(o,r)}),n}function _y(e,t,{key:n},r){if(typeof r=="function"){const o=Hp(e,t,n);if(o.state==="loading"){const l=`Tried to set atom or selector "${n}" using an updater function while the current state is pending, this is not currently supported.`;throw X(l)}else if(o.state==="hasError")throw o.contents;return r(o.contents)}else return r}function Ry(e,t,n){if(n.type==="set"){const{recoilValue:o,valueOrUpdater:l}=n,i=_y(e,t,o,l),u=cy(e,t,o.key,i);for(const[s,a]of u.entries())rs(t,s,a)}else if(n.type==="setLoadable"){const{recoilValue:{key:o},loadable:l}=n;rs(t,o,l)}else if(n.type==="markModified"){const{recoilValue:{key:o}}=n;t.dirtyAtoms.add(o)}else if(n.type==="setUnvalidated"){var r;const{recoilValue:{key:o},unvalidatedValue:l}=n,i=bp(o);i==null||(r=i.invalidate)===null||r===void 0||r.call(i,t),t.atomValues.delete(o),t.nonvalidatedAtoms.set(o,l),t.dirtyAtoms.add(o)}else ia(`Unknown action ${n.type}`)}function rs(e,t,n){n.state==="hasValue"&&n.contents instanceof pa?e.atomValues.delete(t):e.atomValues.set(t,n),e.dirtyAtoms.add(t),e.nonvalidatedAtoms.delete(t)}function Kp(e,t){e.replaceState(n=>{const r=Gp(n);for(const o of t)Ry(e,r,o);return Qp(e,r),gy(),r})}function di(e,t){if(Xr.length){const n=Xr[Xr.length-1];let r=n.get(e);r||n.set(e,r=[]),r.push(t)}else Kp(e,[t])}const Xr=[];function Ey(){const e=new Map;return Xr.push(e),()=>{for(const[t,n]of e)Kp(t,n);Xr.pop()}}function Gp(e){return{...e,atomValues:e.atomValues.clone(),nonvalidatedAtoms:e.nonvalidatedAtoms.clone(),dirtyAtoms:new Set(e.dirtyAtoms)}}function Qp(e,t){const n=ay(e,t,t.dirtyAtoms);for(const l of n){var r,o;(r=bp(l))===null||r===void 0||(o=r.invalidate)===null||o===void 0||o.call(r,t)}}function Zp(e,t,n){di(e,{type:"set",recoilValue:t,valueOrUpdater:n})}function ky(e,t,n){if(n instanceof pa)return Zp(e,t,n);di(e,{type:"setLoadable",recoilValue:t,loadable:n})}function Ty(e,t){di(e,{type:"markModified",recoilValue:t})}function Cy(e,t,n){di(e,{type:"setUnvalidated",recoilValue:t,unvalidatedValue:n})}function Ny(e,{key:t},n,r=null){const o=fy(),l=e.getState();l.nodeToComponentSubscriptions.has(t)||l.nodeToComponentSubscriptions.set(t,new Map),ve(l.nodeToComponentSubscriptions.get(t)).set(o,[r??"<not captured>",n]);const i=py();if(i.early&&(i.mode==="LEGACY"||i.mode==="MUTABLE_SOURCE")){const u=e.getState().nextTree;u&&u.dirtyAtoms.has(t)&&n(u)}return{release:()=>{const u=e.getState(),s=u.nodeToComponentSubscriptions.get(t);s===void 0||!s.has(o)||(s.delete(o),s.size===0&&u.nodeToComponentSubscriptions.delete(t))}}}function Ly(e,t){var n;const{currentTree:r}=e.getState(),o=dy(t.key);(n=o.clearCache)===null||n===void 0||n.call(o,e,r)}var At={RecoilValueReadOnly:my,AbstractRecoilValue:hy,RecoilState:vy,getRecoilValueAsLoadable:Sy,setRecoilValue:Zp,setRecoilValueLoadable:ky,markRecoilValueModified:Ty,setUnvalidatedRecoilValue:Cy,subscribeToRecoilValue:Ny,isRecoilValue:yy,applyAtomValueWrites:wy,batchStart:Ey,writeLoadableToTreeState:rs,invalidateDownstreams:Qp,copyTreeState:Gp,refreshRecoilValue:Ly};function Ay(e,t,n){const r=e.entries();let o=r.next();for(;!o.done;){const l=o.value;if(t.call(n,l[1],l[0],e))return!0;o=r.next()}return!1}var xy=Ay;const{cleanUpNode:My}=hn,{deleteNodeConfigIfPossible:Py,getNode:Yp}=Ye,{RetentionZone:Xp}=fi,$y=12e4,qp=new Set;function Jp(e,t){const n=e.getState(),r=n.currentTree;if(n.nextTree)return;const o=new Set;for(const i of t)if(i instanceof Xp)for(const u of Dy(n,i))o.add(u);else o.add(i);const l=Iy(e,o);for(const i of l)zy(e,r,i)}function Iy(e,t){const n=e.getState(),r=n.currentTree,o=e.getGraph(r.version),l=new Set,i=new Set;return u(t),l;function u(s){const a=new Set,d=Vy(e,r,s,l,i);for(const S of d){var f;if(Yp(S).retainedBy==="recoilRoot"){i.add(S);continue}if(((f=n.retention.referenceCounts.get(S))!==null&&f!==void 0?f:0)>0){i.add(S);continue}if(eh(S).some(B=>n.retention.referenceCounts.get(B))){i.add(S);continue}const R=o.nodeToNodeSubscriptions.get(S);if(R&&xy(R,B=>i.has(B))){i.add(S);continue}l.add(S),a.add(S)}const m=new Set;for(const S of a)for(const R of(_=o.nodeDeps.get(S))!==null&&_!==void 0?_:qp){var _;l.has(R)||m.add(R)}m.size&&u(m)}}function Vy(e,t,n,r,o){const l=e.getGraph(t.version),i=[],u=new Set;for(;n.size>0;)s(ve(n.values().next().value));return i;function s(a){if(r.has(a)||o.has(a)){n.delete(a);return}if(u.has(a))return;const d=l.nodeToNodeSubscriptions.get(a);if(d)for(const f of d)s(f);u.add(a),n.delete(a),i.push(a)}}function zy(e,t,n){if(!ie("recoil_memory_managament_2020"))return;My(e,n);const r=e.getState();r.knownAtoms.delete(n),r.knownSelectors.delete(n),r.nodeTransactionSubscriptions.delete(n),r.retention.referenceCounts.delete(n);const o=eh(n);for(const s of o){var l;(l=r.retention.nodesRetainedByZone.get(s))===null||l===void 0||l.delete(n)}t.atomValues.delete(n),t.dirtyAtoms.delete(n),t.nonvalidatedAtoms.delete(n);const i=r.graphsByVersion.get(t.version);if(i){const s=i.nodeDeps.get(n);if(s!==void 0){i.nodeDeps.delete(n);for(const a of s){var u;(u=i.nodeToNodeSubscriptions.get(a))===null||u===void 0||u.delete(n)}}i.nodeToNodeSubscriptions.delete(n)}Py(n)}function Dy(e,t){var n;return(n=e.retention.nodesRetainedByZone.get(t))!==null&&n!==void 0?n:qp}function eh(e){const t=Yp(e).retainedBy;return t===void 0||t==="components"||t==="recoilRoot"?[]:t instanceof Xp?[t]:t}function Oy(e,t){const n=e.getState();n.nextTree?n.retention.retainablesToCheckForRelease.add(t):Jp(e,new Set([t]))}function Uy(e,t,n){var r;if(!ie("recoil_memory_managament_2020"))return;const o=e.getState().retention.referenceCounts,l=((r=o.get(t))!==null&&r!==void 0?r:0)+n;l===0?th(e,t):o.set(t,l)}function th(e,t){if(!ie("recoil_memory_managament_2020"))return;e.getState().retention.referenceCounts.delete(t),Oy(e,t)}function Fy(e){if(!ie("recoil_memory_managament_2020"))return;const t=e.getState();Jp(e,t.retention.retainablesToCheckForRelease),t.retention.retainablesToCheckForRelease.clear()}function By(e){return e===void 0?"recoilRoot":e}var Vn={SUSPENSE_TIMEOUT_MS:$y,updateRetainCount:Uy,updateRetainCountToZero:th,releaseScheduledRetainablesNow:Fy,retainedByOptionWithDefault:By};const{unstable_batchedUpdates:jy}=Vm;var Wy={unstable_batchedUpdates:jy};const{unstable_batchedUpdates:Hy}=Wy;var by={unstable_batchedUpdates:Hy};const{batchStart:Ky}=At,{unstable_batchedUpdates:Gy}=by;let ha=Gy||(e=>e());const Qy=e=>{ha=e},Zy=()=>ha,Yy=e=>{ha(()=>{let t=()=>{};try{t=Ky(),e()}finally{t()}})};var pi={getBatcher:Zy,setBatcher:Qy,batchUpdates:Yy};function*Xy(e){for(const t of e)for(const n of t)yield n}var nh=Xy;const rh=typeof Window>"u"||typeof window>"u",qy=e=>!rh&&(e===window||e instanceof Window),Jy=typeof navigator<"u"&&navigator.product==="ReactNative";var hi={isSSR:rh,isReactNative:Jy,isWindow:qy};function eg(e,t){let n;return(...r)=>{n||(n={});const o=t(...r);return Object.hasOwnProperty.call(n,o)||(n[o]=e(...r)),n[o]}}function tg(e,t){let n,r;return(...o)=>{const l=t(...o);return n===l||(n=l,r=e(...o)),r}}function ng(e,t){let n,r;return[(...i)=>{const u=t(...i);return n===u||(n=u,r=e(...i)),r},()=>{n=null}]}var rg={memoizeWithArgsHash:eg,memoizeOneWithArgsHash:tg,memoizeOneWithArgsHashAndInvalidation:ng};const{batchUpdates:os}=pi,{initializeNode:og,peekNodeInfo:lg}=hn,{graph:ig}=To,{getNextStoreID:ug}=ci,{DEFAULT_VALUE:sg,recoilValues:Fc,recoilValuesForKeys:Bc}=Ye,{AbstractRecoilValue:ag,getRecoilValueAsLoadable:cg,setRecoilValue:jc,setUnvalidatedRecoilValue:fg}=At,{updateRetainCount:pl}=Vn,{setInvalidateMemoizedSnapshot:dg}=Wp,{getNextTreeStateVersion:pg,makeEmptyStoreState:hg}=zp,{isSSR:vg}=hi,{memoizeOneWithArgsHashAndInvalidation:mg}=rg;class vi{constructor(t,n){Z(this,"_store",void 0),Z(this,"_refCount",1),Z(this,"getLoadable",r=>(this.checkRefCount_INTERNAL(),cg(this._store,r))),Z(this,"getPromise",r=>(this.checkRefCount_INTERNAL(),this.getLoadable(r).toPromise())),Z(this,"getNodes_UNSTABLE",r=>{if(this.checkRefCount_INTERNAL(),(r==null?void 0:r.isModified)===!0){if((r==null?void 0:r.isInitialized)===!1)return[];const i=this._store.getState().currentTree;return Bc(i.dirtyAtoms)}const o=this._store.getState().knownAtoms,l=this._store.getState().knownSelectors;return(r==null?void 0:r.isInitialized)==null?Fc.values():r.isInitialized===!0?Bc(nh([o,l])):fa(Fc.values(),({key:i})=>!o.has(i)&&!l.has(i))}),Z(this,"getInfo_UNSTABLE",({key:r})=>(this.checkRefCount_INTERNAL(),lg(this._store,this._store.getState().currentTree,r))),Z(this,"map",r=>{this.checkRefCount_INTERNAL();const o=new ls(this,os);return r(o),o}),Z(this,"asyncMap",async r=>{this.checkRefCount_INTERNAL();const o=new ls(this,os);return o.retain(),await r(o),o.autoRelease_INTERNAL(),o}),this._store={storeID:ug(),parentStoreID:n,getState:()=>t,replaceState:r=>{t.currentTree=r(t.currentTree)},getGraph:r=>{const o=t.graphsByVersion;if(o.has(r))return ve(o.get(r));const l=ig();return o.set(r,l),l},subscribeToTransactions:()=>({release:()=>{}}),addTransactionMetadata:()=>{throw X("Cannot subscribe to Snapshots")}};for(const r of this._store.getState().knownAtoms)og(this._store,r,"get"),pl(this._store,r,1);this.autoRelease_INTERNAL()}retain(){this._refCount<=0,this._refCount++;let t=!1;return()=>{t||(t=!0,this._release())}}autoRelease_INTERNAL(){vg||window.setTimeout(()=>this._release(),10)}_release(){if(this._refCount--,this._refCount===0){if(this._store.getState().nodeCleanupFunctions.forEach(t=>t()),this._store.getState().nodeCleanupFunctions.clear(),!ie("recoil_memory_managament_2020"))return}else this._refCount<0}isRetained(){return this._refCount>0}checkRefCount_INTERNAL(){ie("recoil_memory_managament_2020")&&this._refCount<=0}getStore_INTERNAL(){return this.checkRefCount_INTERNAL(),this._store}getID(){return this.checkRefCount_INTERNAL(),this._store.getState().currentTree.stateID}getStoreID(){return this.checkRefCount_INTERNAL(),this._store.storeID}}function oh(e,t,n=!1){const r=e.getState(),o=n?pg():t.version;return{currentTree:{version:n?o:t.version,stateID:n?o:t.stateID,transactionMetadata:{...t.transactionMetadata},dirtyAtoms:new Set(t.dirtyAtoms),atomValues:t.atomValues.clone(),nonvalidatedAtoms:t.nonvalidatedAtoms.clone()},commitDepth:0,nextTree:null,previousTree:null,knownAtoms:new Set(r.knownAtoms),knownSelectors:new Set(r.knownSelectors),transactionSubscriptions:new Map,nodeTransactionSubscriptions:new Map,nodeToComponentSubscriptions:new Map,queuedComponentCallbacks_DEPRECATED:[],suspendedComponentResolvers:new Set,graphsByVersion:new Map().set(o,e.getGraph(t.version)),retention:{referenceCounts:new Map,nodesRetainedByZone:new Map,retainablesToCheckForRelease:new Set},nodeCleanupFunctions:new Map(ai(r.nodeCleanupFunctions.entries(),([l])=>[l,()=>{}]))}}function yg(e){const t=new vi(hg());return e!=null?t.map(e):t}const[Wc,lh]=mg((e,t)=>{var n;const r=e.getState(),o=t==="latest"?(n=r.nextTree)!==null&&n!==void 0?n:r.currentTree:ve(r.previousTree);return new vi(oh(e,o),e.storeID)},(e,t)=>{var n,r;return String(t)+String(e.storeID)+String((n=e.getState().nextTree)===null||n===void 0?void 0:n.version)+String(e.getState().currentTree.version)+String((r=e.getState().previousTree)===null||r===void 0?void 0:r.version)});dg(lh);function gg(e,t="latest"){const n=Wc(e,t);return n.isRetained()?n:(lh(),Wc(e,t))}class ls extends vi{constructor(t,n){super(oh(t.getStore_INTERNAL(),t.getStore_INTERNAL().getState().currentTree,!0),t.getStoreID()),Z(this,"_batch",void 0),Z(this,"set",(r,o)=>{this.checkRefCount_INTERNAL();const l=this.getStore_INTERNAL();this._batch(()=>{pl(l,r.key,1),jc(this.getStore_INTERNAL(),r,o)})}),Z(this,"reset",r=>{this.checkRefCount_INTERNAL();const o=this.getStore_INTERNAL();this._batch(()=>{pl(o,r.key,1),jc(this.getStore_INTERNAL(),r,sg)})}),Z(this,"setUnvalidatedAtomValues_DEPRECATED",r=>{this.checkRefCount_INTERNAL();const o=this.getStore_INTERNAL();os(()=>{for(const[l,i]of r.entries())pl(o,l,1),fg(o,new ag(l),i)})}),this._batch=n}}var mi={Snapshot:vi,MutableSnapshot:ls,freshSnapshot:yg,cloneSnapshot:gg},Sg=mi.Snapshot,wg=mi.MutableSnapshot,_g=mi.freshSnapshot,Rg=mi.cloneSnapshot,yi=Object.freeze({__proto__:null,Snapshot:Sg,MutableSnapshot:wg,freshSnapshot:_g,cloneSnapshot:Rg});function Eg(...e){const t=new Set;for(const n of e)for(const r of n)t.add(r);return t}var kg=Eg;const{useRef:Tg}=me;function Cg(e){const t=Tg(e);return t.current===e&&typeof e=="function"&&(t.current=e()),t}var Hc=Cg;const{getNextTreeStateVersion:Ng,makeEmptyStoreState:ih}=zp,{cleanUpNode:Lg,getDownstreamNodes:Ag,initializeNode:xg,setNodeValue:Mg,setUnvalidatedAtomValue_DEPRECATED:Pg}=hn,{graph:$g}=To,{cloneGraph:Ig}=To,{getNextStoreID:uh}=ci,{createMutableSource:ou,reactMode:sh}=ko,{applyAtomValueWrites:Vg}=At,{releaseScheduledRetainablesNow:ah}=Vn,{freshSnapshot:zg}=yi,{useCallback:Dg,useContext:ch,useEffect:is,useMemo:Og,useRef:Ug,useState:Fg}=me;function Mr(){throw X("This component must be used inside a <RecoilRoot> component.")}const fh=Object.freeze({storeID:uh(),getState:Mr,replaceState:Mr,getGraph:Mr,subscribeToTransactions:Mr,addTransactionMetadata:Mr});let us=!1;function bc(e){if(us)throw X("An atom update was triggered within the execution of a state updater function. State updater functions provided to Recoil must be pure functions.");const t=e.getState();if(t.nextTree===null){ie("recoil_memory_managament_2020")&&ie("recoil_release_on_cascading_update_killswitch_2021")&&t.commitDepth>0&&ah(e);const n=t.currentTree.version,r=Ng();t.nextTree={...t.currentTree,version:r,stateID:r,dirtyAtoms:new Set,transactionMetadata:{}},t.graphsByVersion.set(r,Ig(ve(t.graphsByVersion.get(n))))}}const dh=me.createContext({current:fh}),gi=()=>ch(dh),ph=me.createContext(null);function Bg(){return ch(ph)}function va(e,t,n){const r=Ag(e,n,n.dirtyAtoms);for(const o of r){const l=t.nodeToComponentSubscriptions.get(o);if(l)for(const[i,[u,s]]of l)s(n)}}function hh(e){const t=e.getState(),n=t.currentTree,r=n.dirtyAtoms;if(r.size){for(const[o,l]of t.nodeTransactionSubscriptions)if(r.has(o))for(const[i,u]of l)u(e);for(const[o,l]of t.transactionSubscriptions)l(e);(!sh().early||t.suspendedComponentResolvers.size>0)&&(va(e,t,n),t.suspendedComponentResolvers.forEach(o=>o()),t.suspendedComponentResolvers.clear())}t.queuedComponentCallbacks_DEPRECATED.forEach(o=>o(n)),t.queuedComponentCallbacks_DEPRECATED.splice(0,t.queuedComponentCallbacks_DEPRECATED.length)}function jg(e){const t=e.getState();t.commitDepth++;try{const{nextTree:n}=t;if(n==null)return;t.previousTree=t.currentTree,t.currentTree=n,t.nextTree=null,hh(e),t.previousTree!=null?t.graphsByVersion.delete(t.previousTree.version):ia("Ended batch with no previous state, which is unexpected","recoil"),t.previousTree=null,ie("recoil_memory_managament_2020")&&n==null&&ah(e)}finally{t.commitDepth--}}function Wg({setNotifyBatcherOfChange:e}){const t=gi(),[,n]=Fg([]);return e(()=>n({})),is(()=>(e(()=>n({})),()=>{e(()=>{})}),[e]),is(()=>{_1.enqueueExecution("Batcher",()=>{jg(t.current)})}),null}function Hg(e,t){const n=ih();return t({set:(r,o)=>{const l=n.currentTree,i=Mg(e,l,r.key,o),u=new Set(i.keys()),s=l.nonvalidatedAtoms.clone();for(const a of u)s.delete(a);n.currentTree={...l,dirtyAtoms:kg(l.dirtyAtoms,u),atomValues:Vg(l.atomValues,i),nonvalidatedAtoms:s}},setUnvalidatedAtomValues:r=>{r.forEach((o,l)=>{n.currentTree=Pg(n.currentTree,l,o)})}}),n}function bg(e){const t=zg(e),n=t.getStore_INTERNAL().getState();return t.retain(),n.nodeCleanupFunctions.forEach(r=>r()),n.nodeCleanupFunctions.clear(),n}let Kc=0;function Kg({initializeState_DEPRECATED:e,initializeState:t,store_INTERNAL:n,children:r}){let o;const l=_=>{const S=o.current.graphsByVersion;if(S.has(_))return ve(S.get(_));const R=$g();return S.set(_,R),R},i=(_,S)=>{if(S==null){const{transactionSubscriptions:R}=f.current.getState(),B=Kc++;return R.set(B,_),{release:()=>{R.delete(B)}}}else{const{nodeTransactionSubscriptions:R}=f.current.getState();R.has(S)||R.set(S,new Map);const B=Kc++;return ve(R.get(S)).set(B,_),{release:()=>{const h=R.get(S);h&&(h.delete(B),h.size===0&&R.delete(S))}}}},u=_=>{bc(f.current);for(const S of Object.keys(_))ve(f.current.getState().nextTree).transactionMetadata[S]=_[S]},s=_=>{bc(f.current);const S=ve(o.current.nextTree);let R;try{us=!0,R=_(S)}finally{us=!1}R!==S&&(o.current.nextTree=R,sh().early&&va(f.current,o.current,R),ve(a.current)())},a=Ug(null),d=Dg(_=>{a.current=_},[a]),f=Hc(()=>n??{storeID:uh(),getState:()=>o.current,replaceState:s,getGraph:l,subscribeToTransactions:i,addTransactionMetadata:u});n!=null&&(f.current=n),o=Hc(()=>e!=null?Hg(f.current,e):t!=null?bg(t):ih());const m=Og(()=>ou==null?void 0:ou(o,()=>o.current.currentTree.version),[o]);return is(()=>{const _=f.current;for(const S of new Set(_.getState().knownAtoms))xg(_,S,"get");return()=>{for(const S of _.getState().knownAtoms)Lg(_,S)}},[f]),me.createElement(dh.Provider,{value:f},me.createElement(ph.Provider,{value:m},me.createElement(Wg,{setNotifyBatcherOfChange:d}),r))}function Gg(e){const{override:t,...n}=e,r=gi();return t===!1&&r.current!==fh?e.children:me.createElement(Kg,n)}function Qg(){return gi().current.storeID}var jt={RecoilRoot:Gg,useStoreRef:gi,useRecoilMutableSource:Bg,useRecoilStoreID:Qg,notifyComponents_FOR_TESTING:va,sendEndOfBatchNotifications_FOR_TESTING:hh};function Zg(e,t){if(e===t)return!0;if(e.length!==t.length)return!1;for(let n=0,r=e.length;n<r;n++)if(e[n]!==t[n])return!1;return!0}var Yg=Zg;const{useEffect:Xg,useRef:qg}=me;function Jg(e){const t=qg();return Xg(()=>{t.current=e}),t.current}var vh=Jg;const{useStoreRef:eS}=jt,{SUSPENSE_TIMEOUT_MS:tS}=Vn,{updateRetainCount:Pr}=Vn,{RetentionZone:nS}=fi,{useEffect:rS,useRef:oS}=me,{isSSR:Gc}=hi;function lS(e){if(ie("recoil_memory_managament_2020"))return iS(e)}function iS(e){const n=(Array.isArray(e)?e:[e]).map(i=>i instanceof nS?i:i.key),r=eS();rS(()=>{if(!ie("recoil_memory_managament_2020"))return;const i=r.current;if(o.current&&!Gc)window.clearTimeout(o.current),o.current=null;else for(const u of n)Pr(i,u,1);return()=>{for(const u of n)Pr(i,u,-1)}},[r,...n]);const o=oS(),l=vh(n);if(!Gc&&(l===void 0||!Yg(l,n))){const i=r.current;for(const u of n)Pr(i,u,1);if(l)for(const u of l)Pr(i,u,-1);o.current&&window.clearTimeout(o.current),o.current=window.setTimeout(()=>{o.current=null;for(const u of n)Pr(i,u,-1)},tS)}}var ma=lS;function uS(){return"<component name not available>"}var No=uS;const{batchUpdates:sS}=pi,{DEFAULT_VALUE:mh}=Ye,{currentRendererSupportsUseSyncExternalStore:aS,reactMode:wr,useMutableSource:cS,useSyncExternalStore:fS}=ko,{useRecoilMutableSource:dS,useStoreRef:xt}=jt,{AbstractRecoilValue:ss,getRecoilValueAsLoadable:Lo,setRecoilValue:Fl,setUnvalidatedRecoilValue:pS,subscribeToRecoilValue:pr}=At,{useCallback:Ze,useEffect:hr,useMemo:yh,useRef:qr,useState:ya}=me,{setByAddingToSet:hS}=Op,{isSSR:vS}=hi;function ga(e,t,n){if(e.state==="hasValue")return e.contents;throw e.state==="loading"?new Promise(o=>{const l=n.current.getState().suspendedComponentResolvers;l.add(o),vS&&ae(e.contents)&&e.contents.finally(()=>{l.delete(o)})}):e.state==="hasError"?e.contents:X(`Invalid value of loadable atom "${t.key}"`)}function mS(){const e=No(),t=xt(),[,n]=ya([]),r=qr(new Set);r.current=new Set;const o=qr(new Set),l=qr(new Map),i=Ze(s=>{const a=l.current.get(s);a&&(a.release(),l.current.delete(s))},[l]),u=Ze((s,a)=>{l.current.has(a)&&n([])},[]);return hr(()=>{const s=t.current;Yr(r.current,o.current).forEach(a=>{if(l.current.has(a))return;const d=pr(s,new ss(a),m=>u(m,a),e);l.current.set(a,d),s.getState().nextTree?s.getState().queuedComponentCallbacks_DEPRECATED.push(()=>{u(s.getState(),a)}):u(s.getState(),a)}),Yr(o.current,r.current).forEach(a=>{i(a)}),o.current=r.current}),hr(()=>{const s=l.current;return Yr(r.current,new Set(s.keys())).forEach(a=>{const d=pr(t.current,new ss(a),f=>u(f,a),e);s.set(a,d)}),()=>s.forEach((a,d)=>i(d))},[e,t,i,u]),yh(()=>{function s(S){return R=>{Fl(t.current,S,R)}}function a(S){return()=>Fl(t.current,S,mh)}function d(S){var R;r.current.has(S.key)||(r.current=hS(r.current,S.key));const B=t.current.getState();return Lo(t.current,S,wr().early&&(R=B.nextTree)!==null&&R!==void 0?R:B.currentTree)}function f(S){const R=d(S);return ga(R,S,t)}function m(S){return[f(S),s(S)]}function _(S){return[d(S),s(S)]}return{getRecoilValue:f,getRecoilValueLoadable:d,getRecoilState:m,getRecoilStateLoadable:_,getSetRecoilState:s,getResetRecoilState:a}},[r,t])}const yS={current:0};function gS(e){const t=xt(),n=No(),r=Ze(()=>{var u;const s=t.current,a=s.getState(),d=wr().early&&(u=a.nextTree)!==null&&u!==void 0?u:a.currentTree;return{loadable:Lo(s,e,d),key:e.key}},[t,e]),o=Ze(u=>{let s;return()=>{var a,d;const f=u();return(a=s)!==null&&a!==void 0&&a.loadable.is(f.loadable)&&((d=s)===null||d===void 0?void 0:d.key)===f.key?s:(s=f,f)}},[]),l=yh(()=>o(r),[r,o]),i=Ze(u=>{const s=t.current;return pr(s,e,u,n).release},[t,e,n]);return fS(i,l,l).loadable}function SS(e){const t=xt(),n=Ze(()=>{var a;const d=t.current,f=d.getState(),m=wr().early&&(a=f.nextTree)!==null&&a!==void 0?a:f.currentTree;return Lo(d,e,m)},[t,e]),r=Ze(()=>n(),[n]),o=No(),l=Ze((a,d)=>{const f=t.current;return pr(f,e,()=>{if(!ie("recoil_suppress_rerender_in_callback"))return d();const _=n();s.current.is(_)||d(),s.current=_},o).release},[t,e,o,n]),i=dS();if(i==null)throw X("Recoil hooks must be used in components contained within a <RecoilRoot> component.");const u=cS(i,r,l),s=qr(u);return hr(()=>{s.current=u}),u}function as(e){const t=xt(),n=No(),r=Ze(()=>{var s;const a=t.current,d=a.getState(),f=wr().early&&(s=d.nextTree)!==null&&s!==void 0?s:d.currentTree;return Lo(a,e,f)},[t,e]),o=Ze(()=>({loadable:r(),key:e.key}),[r,e.key]),l=Ze(s=>{const a=o();return s.loadable.is(a.loadable)&&s.key===a.key?s:a},[o]);hr(()=>{const s=pr(t.current,e,a=>{u(l)},n);return u(l),s.release},[n,e,t,l]);const[i,u]=ya(o);return i.key!==e.key?o().loadable:i.loadable}function wS(e){const t=xt(),[,n]=ya([]),r=No(),o=Ze(()=>{var u;const s=t.current,a=s.getState(),d=wr().early&&(u=a.nextTree)!==null&&u!==void 0?u:a.currentTree;return Lo(s,e,d)},[t,e]),l=o(),i=qr(l);return hr(()=>{i.current=l}),hr(()=>{const u=t.current,s=u.getState(),a=pr(u,e,f=>{var m;if(!ie("recoil_suppress_rerender_in_callback"))return n([]);const _=o();(m=i.current)!==null&&m!==void 0&&m.is(_)||n(_),i.current=_},r);if(s.nextTree)u.getState().queuedComponentCallbacks_DEPRECATED.push(()=>{i.current=null,n([])});else{var d;if(!ie("recoil_suppress_rerender_in_callback"))return n([]);const f=o();(d=i.current)!==null&&d!==void 0&&d.is(f)||n(f),i.current=f}return a.release},[r,o,e,t]),l}function Sa(e){return ie("recoil_memory_managament_2020")&&ma(e),{TRANSITION_SUPPORT:as,SYNC_EXTERNAL_STORE:aS()?gS:as,MUTABLE_SOURCE:SS,LEGACY:wS}[wr().mode](e)}function gh(e){const t=xt(),n=Sa(e);return ga(n,e,t)}function Si(e){const t=xt();return Ze(n=>{Fl(t.current,e,n)},[t,e])}function _S(e){const t=xt();return Ze(()=>{Fl(t.current,e,mh)},[t,e])}function RS(e){return[gh(e),Si(e)]}function ES(e){return[Sa(e),Si(e)]}function kS(){const e=xt();return(t,n={})=>{sS(()=>{e.current.addTransactionMetadata(n),t.forEach((r,o)=>pS(e.current,new ss(o),r))})}}function Sh(e){return ie("recoil_memory_managament_2020")&&ma(e),as(e)}function wh(e){const t=xt(),n=Sh(e);return ga(n,e,t)}function TS(e){return[wh(e),Si(e)]}var CS={recoilComponentGetRecoilValueCount_FOR_TESTING:yS,useRecoilInterface:mS,useRecoilState:RS,useRecoilStateLoadable:ES,useRecoilValue:gh,useRecoilValueLoadable:Sa,useResetRecoilState:_S,useSetRecoilState:Si,useSetUnvalidatedAtomValues:kS,useRecoilValueLoadable_TRANSITION_SUPPORT_UNSTABLE:Sh,useRecoilValue_TRANSITION_SUPPORT_UNSTABLE:wh,useRecoilState_TRANSITION_SUPPORT_UNSTABLE:TS};function NS(e,t){const n=new Map;for(const[r,o]of e)t(o,r)&&n.set(r,o);return n}var LS=NS;function AS(e,t){const n=new Set;for(const r of e)t(r)&&n.add(r);return n}var xS=AS;function MS(...e){const t=new Map;for(let n=0;n<e.length;n++){const r=e[n].keys();let o;for(;!(o=r.next()).done;)t.set(o.value,e[n].get(o.value))}return t}var PS=MS;const{batchUpdates:$S}=pi,{DEFAULT_VALUE:IS,getNode:_h,nodes:VS}=Ye,{useStoreRef:wa}=jt,{AbstractRecoilValue:zS,setRecoilValueLoadable:DS}=At,{SUSPENSE_TIMEOUT_MS:OS}=Vn,{cloneSnapshot:Bl}=yi,{useCallback:wi,useEffect:Rh,useRef:Qc,useState:US}=me,{isSSR:Zc}=hi;function _i(e){const t=wa();Rh(()=>t.current.subscribeToTransactions(e).release,[e,t])}function Yc(e){const t=e.atomValues.toMap(),n=Ul(LS(t,(r,o)=>{const i=_h(o).persistence_UNSTABLE;return i!=null&&i.type!=="none"&&r.state==="hasValue"}),r=>r.contents);return PS(e.nonvalidatedAtoms.toMap(),n)}function FS(e){_i(wi(t=>{let n=t.getState().previousTree;const r=t.getState().currentTree;n||(n=t.getState().currentTree);const o=Yc(r),l=Yc(n),i=Ul(VS,s=>{var a,d,f,m;return{persistence_UNSTABLE:{type:(a=(d=s.persistence_UNSTABLE)===null||d===void 0?void 0:d.type)!==null&&a!==void 0?a:"none",backButton:(f=(m=s.persistence_UNSTABLE)===null||m===void 0?void 0:m.backButton)!==null&&f!==void 0?f:!1}}}),u=xS(r.dirtyAtoms,s=>o.has(s)||l.has(s));e({atomValues:o,previousAtomValues:l,atomInfo:i,modifiedAtoms:u,transactionMetadata:{...r.transactionMetadata}})},[e]))}function BS(e){_i(wi(t=>{const n=Bl(t,"latest"),r=Bl(t,"previous");e({snapshot:n,previousSnapshot:r})},[e]))}function jS(){const e=wa(),[t,n]=US(()=>Bl(e.current)),r=vh(t),o=Qc(),l=Qc();if(_i(wi(u=>n(Bl(u)),[])),Rh(()=>{const u=t.retain();if(o.current&&!Zc){var s;window.clearTimeout(o.current),o.current=null,(s=l.current)===null||s===void 0||s.call(l),l.current=null}return()=>{window.setTimeout(u,10)}},[t]),r!==t&&!Zc){if(o.current){var i;window.clearTimeout(o.current),o.current=null,(i=l.current)===null||i===void 0||i.call(l),l.current=null}l.current=t.retain(),o.current=window.setTimeout(()=>{var u;o.current=null,(u=l.current)===null||u===void 0||u.call(l),l.current=null},OS)}return t}function Eh(e,t){var n;const r=e.getState(),o=(n=r.nextTree)!==null&&n!==void 0?n:r.currentTree,l=t.getStore_INTERNAL().getState().currentTree;$S(()=>{const i=new Set;for(const a of[o.atomValues.keys(),l.atomValues.keys()])for(const d of a){var u,s;((u=o.atomValues.get(d))===null||u===void 0?void 0:u.contents)!==((s=l.atomValues.get(d))===null||s===void 0?void 0:s.contents)&&_h(d).shouldRestoreFromSnapshots&&i.add(d)}i.forEach(a=>{DS(e,new zS(a),l.atomValues.has(a)?ve(l.atomValues.get(a)):IS)}),e.replaceState(a=>({...a,stateID:t.getID()}))})}function WS(){const e=wa();return wi(t=>Eh(e.current,t),[e])}var kh={useRecoilSnapshot:jS,gotoSnapshot:Eh,useGotoRecoilSnapshot:WS,useRecoilTransactionObserver:BS,useTransactionObservation_DEPRECATED:FS,useTransactionSubscription_DEPRECATED:_i};const{peekNodeInfo:HS}=hn,{useStoreRef:bS}=jt;function KS(){const e=bS();return({key:t})=>HS(e.current,e.current.getState().currentTree,t)}var GS=KS;const{reactMode:QS}=ko,{RecoilRoot:ZS,useStoreRef:YS}=jt,{useMemo:XS}=me;function qS(){QS().mode==="MUTABLE_SOURCE"&&console.warn("Warning: There are known issues using useRecoilBridgeAcrossReactRoots() in recoil_mutable_source rendering mode. Please consider upgrading to recoil_sync_external_store mode.");const e=YS().current;return XS(()=>{function t({children:n}){return me.createElement(ZS,{store_INTERNAL:e},n)}return t},[e])}var JS=qS;const{loadableWithValue:e2}=Eo,{initializeNode:t2}=hn,{DEFAULT_VALUE:n2,getNode:r2}=Ye,{copyTreeState:o2,getRecoilValueAsLoadable:l2,invalidateDownstreams:i2,writeLoadableToTreeState:u2}=At;function Xc(e){return r2(e.key).nodeType==="atom"}class s2{constructor(t,n){Z(this,"_store",void 0),Z(this,"_treeState",void 0),Z(this,"_changes",void 0),Z(this,"get",r=>{if(this._changes.has(r.key))return this._changes.get(r.key);if(!Xc(r))throw X("Reading selectors within atomicUpdate is not supported");const o=l2(this._store,r,this._treeState);if(o.state==="hasValue")return o.contents;throw o.state==="hasError"?o.contents:X(`Expected Recoil atom ${r.key} to have a value, but it is in a loading state.`)}),Z(this,"set",(r,o)=>{if(!Xc(r))throw X("Setting selectors within atomicUpdate is not supported");if(typeof o=="function"){const l=this.get(r);this._changes.set(r.key,o(l))}else t2(this._store,r.key,"set"),this._changes.set(r.key,o)}),Z(this,"reset",r=>{this.set(r,n2)}),this._store=t,this._treeState=n,this._changes=new Map}newTreeState_INTERNAL(){if(this._changes.size===0)return this._treeState;const t=o2(this._treeState);for(const[n,r]of this._changes)u2(t,n,e2(r));return i2(this._store,t),t}}function a2(e){return t=>{e.replaceState(n=>{const r=new s2(e,n);return t(r),r.newTreeState_INTERNAL()})}}var c2={atomicUpdater:a2},f2=c2.atomicUpdater,Th=Object.freeze({__proto__:null,atomicUpdater:f2});function d2(e,t){if(!e)throw new Error(t)}var p2=d2,Fr=p2;const{atomicUpdater:h2}=Th,{batchUpdates:v2}=pi,{DEFAULT_VALUE:m2}=Ye,{useStoreRef:y2}=jt,{refreshRecoilValue:g2,setRecoilValue:qc}=At,{cloneSnapshot:S2}=yi,{gotoSnapshot:w2}=kh,{useCallback:_2}=me;class Ch{}const R2=new Ch;function Nh(e,t,n,r){let o=R2,l;if(v2(()=>{const u="useRecoilCallback() expects a function that returns a function: it accepts a function of the type (RecoilInterface) => (Args) => ReturnType and returns a callback function (Args) => ReturnType, where RecoilInterface is an object {snapshot, set, ...} and Args and ReturnType are the argument and return types of the callback you want to create. Please see the docs at recoiljs.org for details.";if(typeof t!="function")throw X(u);const s=Up({...r??{},set:(d,f)=>qc(e,d,f),reset:d=>qc(e,d,m2),refresh:d=>g2(e,d),gotoSnapshot:d=>w2(e,d),transact_UNSTABLE:d=>h2(e)(d)},{snapshot:()=>{const d=S2(e);return l=d.retain(),d}}),a=t(s);if(typeof a!="function")throw X(u);o=a(...n)}),o instanceof Ch&&Fr(!1),ae(o))o=o.finally(()=>{var u;(u=l)===null||u===void 0||u()});else{var i;(i=l)===null||i===void 0||i()}return o}function E2(e,t){const n=y2();return _2((...r)=>Nh(n.current,e,r),t!=null?[...t,n]:void 0)}var Lh={recoilCallback:Nh,useRecoilCallback:E2};const{useStoreRef:k2}=jt,{refreshRecoilValue:T2}=At,{useCallback:C2}=me;function N2(e){const t=k2();return C2(()=>{const n=t.current;T2(n,e)},[e,t])}var L2=N2;const{atomicUpdater:A2}=Th,{useStoreRef:x2}=jt,{useMemo:M2}=me;function P2(e,t){const n=x2();return M2(()=>(...r)=>{A2(n.current)(l=>{e(l)(...r)})},t!=null?[...t,n]:void 0)}var $2=P2;class I2{constructor(t){Z(this,"value",void 0),this.value=t}}var V2={WrappedValue:I2},z2=V2.WrappedValue,Ah=Object.freeze({__proto__:null,WrappedValue:z2});const{isFastRefreshEnabled:D2}=ko;class Jc extends Error{}class O2{constructor(t){var n,r,o;Z(this,"_name",void 0),Z(this,"_numLeafs",void 0),Z(this,"_root",void 0),Z(this,"_onHit",void 0),Z(this,"_onSet",void 0),Z(this,"_mapNodeValue",void 0),this._name=t==null?void 0:t.name,this._numLeafs=0,this._root=null,this._onHit=(n=t==null?void 0:t.onHit)!==null&&n!==void 0?n:()=>{},this._onSet=(r=t==null?void 0:t.onSet)!==null&&r!==void 0?r:()=>{},this._mapNodeValue=(o=t==null?void 0:t.mapNodeValue)!==null&&o!==void 0?o:l=>l}size(){return this._numLeafs}root(){return this._root}get(t,n){var r;return(r=this.getLeafNode(t,n))===null||r===void 0?void 0:r.value}getLeafNode(t,n){if(this._root==null)return;let r=this._root;for(;r;){if(n==null||n.onNodeVisit(r),r.type==="leaf")return this._onHit(r),r;const o=this._mapNodeValue(t(r.nodeKey));r=r.branches.get(o)}}set(t,n,r){const o=()=>{var l,i,u,s;let a,d;for(const[B,h]of t){var f,m,_;const c=this._root;if((c==null?void 0:c.type)==="leaf")throw this.invalidCacheError();const p=a;if(a=p?p.branches.get(d):c,a=(f=a)!==null&&f!==void 0?f:{type:"branch",nodeKey:B,parent:p,branches:new Map,branchKey:d},a.type!=="branch"||a.nodeKey!==B)throw this.invalidCacheError();p==null||p.branches.set(d,a),r==null||(m=r.onNodeVisit)===null||m===void 0||m.call(r,a),d=this._mapNodeValue(h),this._root=(_=this._root)!==null&&_!==void 0?_:a}const S=a?(l=a)===null||l===void 0?void 0:l.branches.get(d):this._root;if(S!=null&&(S.type!=="leaf"||S.branchKey!==d))throw this.invalidCacheError();const R={type:"leaf",value:n,parent:a,branchKey:d};(i=a)===null||i===void 0||i.branches.set(d,R),this._root=(u=this._root)!==null&&u!==void 0?u:R,this._numLeafs++,this._onSet(R),r==null||(s=r.onNodeVisit)===null||s===void 0||s.call(r,R)};try{o()}catch(l){if(l instanceof Jc)this.clear(),o();else throw l}}delete(t){const n=this.root();if(!n)return!1;if(t===n)return this._root=null,this._numLeafs=0,!0;let r=t.parent,o=t.branchKey;for(;r;){var l;if(r.branches.delete(o),r===n)return r.branches.size===0?(this._root=null,this._numLeafs=0):this._numLeafs--,!0;if(r.branches.size>0)break;o=(l=r)===null||l===void 0?void 0:l.branchKey,r=r.parent}for(;r!==n;r=r.parent)if(r==null)return!1;return this._numLeafs--,!0}clear(){this._numLeafs=0,this._root=null}invalidCacheError(){const t=D2()?"Possible Fast Refresh module reload detected. This may also be caused by an selector returning inconsistent values. Resetting cache.":"Invalid cache values. This happens when selectors do not return consistent values for the same input dependency values. That may also be caused when using Fast Refresh to change a selector implementation. Resetting cache.";throw ia(t+(this._name!=null?` - ${this._name}`:"")),new Jc}}var U2={TreeCache:O2},F2=U2.TreeCache,xh=Object.freeze({__proto__:null,TreeCache:F2});class B2{constructor(t){var n;Z(this,"_maxSize",void 0),Z(this,"_size",void 0),Z(this,"_head",void 0),Z(this,"_tail",void 0),Z(this,"_map",void 0),Z(this,"_keyMapper",void 0),this._maxSize=t.maxSize,this._size=0,this._head=null,this._tail=null,this._map=new Map,this._keyMapper=(n=t.mapKey)!==null&&n!==void 0?n:r=>r}head(){return this._head}tail(){return this._tail}size(){return this._size}maxSize(){return this._maxSize}has(t){return this._map.has(this._keyMapper(t))}get(t){const n=this._keyMapper(t),r=this._map.get(n);if(r)return this.set(t,r.value),r.value}set(t,n){const r=this._keyMapper(t);this._map.get(r)&&this.delete(t);const l=this.head(),i={key:t,right:l,left:null,value:n};l?l.left=i:this._tail=i,this._map.set(r,i),this._head=i,this._size++,this._maybeDeleteLRU()}_maybeDeleteLRU(){this.size()>this.maxSize()&&this.deleteLru()}deleteLru(){const t=this.tail();t&&this.delete(t.key)}delete(t){const n=this._keyMapper(t);if(!this._size||!this._map.has(n))return;const r=ve(this._map.get(n)),o=r.right,l=r.left;o&&(o.left=r.left),l&&(l.right=r.right),r===this.head()&&(this._head=o),r===this.tail()&&(this._tail=l),this._map.delete(n),this._size--}clear(){this._size=0,this._head=null,this._tail=null,this._map=new Map}}var j2={LRUCache:B2},W2=j2.LRUCache,Mh=Object.freeze({__proto__:null,LRUCache:W2});const{LRUCache:H2}=Mh,{TreeCache:b2}=xh;function K2({name:e,maxSize:t,mapNodeValue:n=r=>r}){const r=new H2({maxSize:t}),o=new b2({name:e,mapNodeValue:n,onHit:l=>{r.set(l,!0)},onSet:l=>{const i=r.tail();r.set(l,!0),i&&o.size()>t&&o.delete(i.key)}});return o}var ef=K2;function yt(e,t,n){if(typeof e=="string"&&!e.includes('"')&&!e.includes("\\"))return`"${e}"`;switch(typeof e){case"undefined":return"";case"boolean":return e?"true":"false";case"number":case"symbol":return String(e);case"string":return JSON.stringify(e);case"function":if((t==null?void 0:t.allowFunctions)!==!0)throw X("Attempt to serialize function in a Recoil cache key");return`__FUNCTION(${e.name})__`}if(e===null)return"null";if(typeof e!="object"){var r;return(r=JSON.stringify(e))!==null&&r!==void 0?r:""}if(ae(e))return"__PROMISE__";if(Array.isArray(e))return`[${e.map((o,l)=>yt(o,t,l.toString()))}]`;if(typeof e.toJSON=="function")return yt(e.toJSON(n),t,n);if(e instanceof Map){const o={};for(const[l,i]of e)o[typeof l=="string"?l:yt(l,t)]=i;return yt(o,t,n)}return e instanceof Set?yt(Array.from(e).sort((o,l)=>yt(o,t).localeCompare(yt(l,t))),t,n):Symbol!==void 0&&e[Symbol.iterator]!=null&&typeof e[Symbol.iterator]=="function"?yt(Array.from(e),t,n):`{${Object.keys(e).filter(o=>e[o]!==void 0).sort().map(o=>`${yt(o,t)}:${yt(e[o],t,o)}`).join(",")}}`}function G2(e,t={allowFunctions:!1}){return yt(e,t)}var Ri=G2;const{TreeCache:Q2}=xh,Yo={equality:"reference",eviction:"keep-all",maxSize:1/0};function Z2({equality:e=Yo.equality,eviction:t=Yo.eviction,maxSize:n=Yo.maxSize}=Yo,r){const o=Y2(e);return X2(t,n,o,r)}function Y2(e){switch(e){case"reference":return t=>t;case"value":return t=>Ri(t)}throw X(`Unrecognized equality policy ${e}`)}function X2(e,t,n,r){switch(e){case"keep-all":return new Q2({name:r,mapNodeValue:n});case"lru":return ef({name:r,maxSize:ve(t),mapNodeValue:n});case"most-recent":return ef({name:r,maxSize:1,mapNodeValue:n})}throw X(`Unrecognized eviction policy ${e}`)}var q2=Z2;function J2(e){return()=>null}var ew={startPerfBlock:J2};const{isLoadable:tw,loadableWithError:Xo,loadableWithPromise:nw,loadableWithValue:lu}=Eo,{WrappedValue:Ph}=Ah,{getNodeLoadable:qo,peekNodeLoadable:rw,setNodeValue:ow}=hn,{saveDepsToStore:lw}=To,{DEFAULT_VALUE:iw,getConfigDeletionHandler:uw,getNode:sw,registerNode:tf}=Ye,{isRecoilValue:aw}=dr,{markRecoilValueModified:nf}=At,{retainedByOptionWithDefault:cw}=Vn,{recoilCallback:fw}=Lh,{startPerfBlock:dw}=ew;class $h{}const $r=new $h,Ir=[],Jo=new Map,pw=(()=>{let e=0;return()=>e++})();function Ih(e){let t=null;const{key:n,get:r,cachePolicy_UNSTABLE:o}=e,l=e.set!=null?e.set:void 0,i=new Set,u=q2(o??{equality:"reference",eviction:"keep-all"},n),s=cw(e.retainedBy_UNSTABLE),a=new Map;let d=0;function f(){return!ie("recoil_memory_managament_2020")||d>0}function m(y){return y.getState().knownSelectors.add(n),d++,()=>{d--}}function _(){return uw(n)!==void 0&&!f()}function S(y,A,x,G,z){Ie(A,G,z),R(y,x)}function R(y,A){$e(y,A)&&oe(y),h(A,!0)}function B(y,A){$e(y,A)&&(ve(U(y)).stateVersions.clear(),h(A,!1))}function h(y,A){const x=Jo.get(y);if(x!=null){for(const G of x)nf(G,ve(t));A&&Jo.delete(y)}}function c(y,A){let x=Jo.get(A);x==null&&Jo.set(A,x=new Set),x.add(y)}function p(y,A,x,G,z,Y){return A.then(J=>{if(!f())throw oe(y),$r;const W=lu(J);return S(y,x,z,W,G),J}).catch(J=>{if(!f())throw oe(y),$r;if(ae(J))return w(y,J,x,G,z,Y);const W=Xo(J);throw S(y,x,z,W,G),J})}function w(y,A,x,G,z,Y){return A.then(J=>{if(!f())throw oe(y),$r;Y.loadingDepKey!=null&&Y.loadingDepPromise===A?x.atomValues.set(Y.loadingDepKey,lu(J)):y.getState().knownSelectors.forEach(le=>{x.atomValues.delete(le)});const W=N(y,x);if(W&&W.state!=="loading"){if(($e(y,z)||U(y)==null)&&R(y,z),W.state==="hasValue")return W.contents;throw W.contents}if(!$e(y,z)){const le=te(y,x);if(le!=null)return le.loadingLoadable.contents}const[de,ke]=L(y,x,z);if(de.state!=="loading"&&S(y,x,z,de,ke),de.state==="hasError")throw de.contents;return de.contents}).catch(J=>{if(J instanceof $h)throw $r;if(!f())throw oe(y),$r;const W=Xo(J);throw S(y,x,z,W,G),J})}function E(y,A,x,G){var z,Y,J,W;if($e(y,G)||A.version===((z=y.getState())===null||z===void 0||(Y=z.currentTree)===null||Y===void 0?void 0:Y.version)||A.version===((J=y.getState())===null||J===void 0||(W=J.nextTree)===null||W===void 0?void 0:W.version)){var de,ke,le;lw(n,x,y,(de=(ke=y.getState())===null||ke===void 0||(le=ke.nextTree)===null||le===void 0?void 0:le.version)!==null&&de!==void 0?de:y.getState().currentTree.version)}for(const ye of x)i.add(ye)}function L(y,A,x){const G=dw(n);let z=!0,Y=!0;const J=()=>{G(),Y=!1};let W,de=!1,ke;const le={loadingDepKey:null,loadingDepPromise:null},ye=new Map;function ht({key:it}){const qe=qo(y,A,it);switch(ye.set(it,qe),z||(E(y,A,new Set(ye.keys()),x),B(y,x)),qe.state){case"hasValue":return qe.contents;case"hasError":throw qe.contents;case"loading":throw le.loadingDepKey=it,le.loadingDepPromise=qe.contents,qe.contents}throw X("Invalid Loadable state")}const mn=it=>(...qe)=>{if(Y)throw X("Callbacks from getCallback() should only be called asynchronously after the selector is evalutated. It can be used for selectors to return objects with callbacks that can work with Recoil state without a subscription.");return t==null&&Fr(!1),fw(y,it,qe,{node:t})};try{W=r({get:ht,getCallback:mn}),W=aw(W)?ht(W):W,tw(W)&&(W.state==="hasError"&&(de=!0),W=W.contents),ae(W)?W=p(y,W,A,ye,x,le).finally(J):J(),W=W instanceof Ph?W.value:W}catch(it){W=it,ae(W)?W=w(y,W,A,ye,x,le).finally(J):(de=!0,J())}return de?ke=Xo(W):ae(W)?ke=nw(W):ke=lu(W),z=!1,lt(y,x,ye),E(y,A,new Set(ye.keys()),x),[ke,ye]}function N(y,A){let x=A.atomValues.get(n);if(x!=null)return x;const G=new Set;try{x=u.get(Y=>(typeof Y!="string"&&Fr(!1),qo(y,A,Y).contents),{onNodeVisit:Y=>{Y.type==="branch"&&Y.nodeKey!==n&&G.add(Y.nodeKey)}})}catch(Y){throw X(`Problem with cache lookup for selector "${n}": ${Y.message}`)}if(x){var z;A.atomValues.set(n,x),E(y,A,G,(z=U(y))===null||z===void 0?void 0:z.executionID)}return x}function V(y,A){const x=N(y,A);if(x!=null)return oe(y),x;const G=te(y,A);if(G!=null){var z;return((z=G.loadingLoadable)===null||z===void 0?void 0:z.state)==="loading"&&c(y,G.executionID),G.loadingLoadable}const Y=pw(),[J,W]=L(y,A,Y);return J.state==="loading"?(fe(y,Y,J,W,A),c(y,Y)):(oe(y),Ie(A,J,W)),J}function te(y,A){const x=nh([a.has(y)?[ve(a.get(y))]:[],ai(fa(a,([z])=>z!==y),([,z])=>z)]);function G(z){for(const[Y,J]of z)if(!qo(y,A,Y).is(J))return!0;return!1}for(const z of x){if(z.stateVersions.get(A.version)||!G(z.depValuesDiscoveredSoFarDuringAsyncWork))return z.stateVersions.set(A.version,!0),z;z.stateVersions.set(A.version,!1)}}function U(y){return a.get(y)}function fe(y,A,x,G,z){a.set(y,{depValuesDiscoveredSoFarDuringAsyncWork:G,executionID:A,loadingLoadable:x,stateVersions:new Map([[z.version,!0]])})}function lt(y,A,x){if($e(y,A)){const G=U(y);G!=null&&(G.depValuesDiscoveredSoFarDuringAsyncWork=x)}}function oe(y){a.delete(y)}function $e(y,A){var x;return A===((x=U(y))===null||x===void 0?void 0:x.executionID)}function Mt(y){return Array.from(y.entries()).map(([A,x])=>[A,x.contents])}function Ie(y,A,x){y.atomValues.set(n,A);try{u.set(Mt(x),A)}catch(G){throw X(`Problem with setting cache for selector "${n}": ${G.message}`)}}function Xe(y){if(Ir.includes(n)){const A=`Recoil selector has circular dependencies: ${Ir.slice(Ir.indexOf(n)).join(" → ")}`;return Xo(X(A))}Ir.push(n);try{return y()}finally{Ir.pop()}}function $(y,A){const x=A.atomValues.get(n);return x??u.get(G=>{var z;return typeof G!="string"&&Fr(!1),(z=rw(y,A,G))===null||z===void 0?void 0:z.contents})}function H(y,A){return Xe(()=>V(y,A))}function I(y){y.atomValues.delete(n)}function j(y,A){t==null&&Fr(!1);for(const G of i){var x;const z=sw(G);(x=z.clearCache)===null||x===void 0||x.call(z,y,A)}i.clear(),I(A),u.clear(),nf(y,t)}return l!=null?t=tf({key:n,nodeType:"selector",peek:$,get:H,set:(A,x,G)=>{let z=!1;const Y=new Map;function J({key:le}){if(z)throw X("Recoil: Async selector sets are not currently supported.");const ye=qo(A,x,le);if(ye.state==="hasValue")return ye.contents;if(ye.state==="loading"){const ht=`Getting value of asynchronous atom or selector "${le}" in a pending state while setting selector "${n}" is not yet supported.`;throw X(ht)}else throw ye.contents}function W(le,ye){if(z)throw X("Recoil: Async selector sets are not currently supported.");const ht=typeof ye=="function"?ye(J(le)):ye;ow(A,x,le.key,ht).forEach((it,qe)=>Y.set(qe,it))}function de(le){W(le,iw)}const ke=l({set:W,get:J,reset:de},G);if(ke!==void 0)throw ae(ke)?X("Recoil: Async selector sets are not currently supported."):X("Recoil: selector set should be a void function.");return z=!0,Y},init:m,invalidate:I,clearCache:j,shouldDeleteConfigOnRelease:_,dangerouslyAllowMutability:e.dangerouslyAllowMutability,shouldRestoreFromSnapshots:!1,retainedBy:s}):t=tf({key:n,nodeType:"selector",peek:$,get:H,init:m,invalidate:I,clearCache:j,shouldDeleteConfigOnRelease:_,dangerouslyAllowMutability:e.dangerouslyAllowMutability,shouldRestoreFromSnapshots:!1,retainedBy:s})}Ih.value=e=>new Ph(e);var vr=Ih;const{isLoadable:hw,loadableWithError:iu,loadableWithPromise:uu,loadableWithValue:On}=Eo,{WrappedValue:Vh}=Ah,{peekNodeInfo:vw}=hn,{DEFAULT_VALUE:Sn,DefaultValue:Kt,getConfigDeletionHandler:zh,registerNode:mw,setConfigDeletionHandler:yw}=Ye,{isRecoilValue:gw}=dr,{getRecoilValueAsLoadable:Sw,markRecoilValueModified:ww,setRecoilValue:rf,setRecoilValueLoadable:_w}=At,{retainedByOptionWithDefault:Rw}=Vn,Vr=e=>e instanceof Vh?e.value:e;function Ew(e){const{key:t,persistence_UNSTABLE:n}=e,r=Rw(e.retainedBy_UNSTABLE);let o=0;function l(c){return uu(c.then(p=>(i=On(p),p)).catch(p=>{throw i=iu(p),p}))}let i=ae(e.default)?l(e.default):hw(e.default)?e.default.state==="loading"?l(e.default.contents):e.default:On(Vr(e.default));i.contents;let u;const s=new Map;function a(c){return c}function d(c,p){const w=p.then(E=>{var L,N;return((N=((L=c.getState().nextTree)!==null&&L!==void 0?L:c.getState().currentTree).atomValues.get(t))===null||N===void 0?void 0:N.contents)===w&&rf(c,h,E),E}).catch(E=>{var L,N;throw((N=((L=c.getState().nextTree)!==null&&L!==void 0?L:c.getState().currentTree).atomValues.get(t))===null||N===void 0?void 0:N.contents)===w&&_w(c,h,iu(E)),E});return w}function f(c,p,w){var E;o++;const L=()=>{var U;o--,(U=s.get(c))===null||U===void 0||U.forEach(fe=>fe()),s.delete(c)};if(c.getState().knownAtoms.add(t),i.state==="loading"){const U=()=>{var fe;((fe=c.getState().nextTree)!==null&&fe!==void 0?fe:c.getState().currentTree).atomValues.has(t)||ww(c,h)};i.contents.finally(U)}const N=(E=e.effects)!==null&&E!==void 0?E:e.effects_UNSTABLE;if(N!=null){let U=function(I){if($e&&I.key===t){const j=oe;return j instanceof Kt?m(c,p):ae(j)?uu(j.then(y=>y instanceof Kt?i.toPromise():y)):On(j)}return Sw(c,I)},fe=function(I){return U(I).toPromise()},lt=function(I){var j;const y=vw(c,(j=c.getState().nextTree)!==null&&j!==void 0?j:c.getState().currentTree,I.key);return $e&&I.key===t&&!(oe instanceof Kt)?{...y,isSet:!0,loadable:U(I)}:y},oe=Sn,$e=!0,Mt=!1,Ie=null;const Xe=I=>j=>{if($e){const y=U(h),A=y.state==="hasValue"?y.contents:Sn;oe=typeof j=="function"?j(A):j,ae(oe)&&(oe=oe.then(x=>(Ie={effect:I,value:x},x)))}else{if(ae(j))throw X("Setting atoms to async values is not implemented.");typeof j!="function"&&(Ie={effect:I,value:Vr(j)}),rf(c,h,typeof j=="function"?y=>{const A=Vr(j(y));return Ie={effect:I,value:A},A}:Vr(j))}},$=I=>()=>Xe(I)(Sn),H=I=>j=>{var y;const{release:A}=c.subscribeToTransactions(x=>{var G;let{currentTree:z,previousTree:Y}=x.getState();Y||(Y=z);const J=(G=z.atomValues.get(t))!==null&&G!==void 0?G:i;if(J.state==="hasValue"){var W,de,ke,le;const ye=J.contents,ht=(W=Y.atomValues.get(t))!==null&&W!==void 0?W:i,mn=ht.state==="hasValue"?ht.contents:Sn;((de=Ie)===null||de===void 0?void 0:de.effect)!==I||((ke=Ie)===null||ke===void 0?void 0:ke.value)!==ye?j(ye,mn,!z.atomValues.has(t)):((le=Ie)===null||le===void 0?void 0:le.effect)===I&&(Ie=null)}},t);s.set(c,[...(y=s.get(c))!==null&&y!==void 0?y:[],A])};for(const I of N)try{const j=I({node:h,storeID:c.storeID,parentStoreID_UNSTABLE:c.parentStoreID,trigger:w,setSelf:Xe(I),resetSelf:$(I),onSet:H(I),getPromise:fe,getLoadable:U,getInfo_UNSTABLE:lt});if(j!=null){var V;s.set(c,[...(V=s.get(c))!==null&&V!==void 0?V:[],j])}}catch(j){oe=j,Mt=!0}if($e=!1,!(oe instanceof Kt)){var te;const I=Mt?iu(oe):ae(oe)?uu(d(c,oe)):On(Vr(oe));I.contents,p.atomValues.set(t,I),(te=c.getState().nextTree)===null||te===void 0||te.atomValues.set(t,I)}}return L}function m(c,p){var w,E;return(w=(E=p.atomValues.get(t))!==null&&E!==void 0?E:u)!==null&&w!==void 0?w:i}function _(c,p){if(p.atomValues.has(t))return ve(p.atomValues.get(t));if(p.nonvalidatedAtoms.has(t)){if(u!=null)return u;if(n==null)return i;const w=p.nonvalidatedAtoms.get(t),E=n.validator(w,Sn);return u=E instanceof Kt?i:On(E),u}else return i}function S(){u=void 0}function R(c,p,w){if(p.atomValues.has(t)){const E=ve(p.atomValues.get(t));if(E.state==="hasValue"&&w===E.contents)return new Map}else if(!p.nonvalidatedAtoms.has(t)&&w instanceof Kt)return new Map;return u=void 0,new Map().set(t,On(w))}function B(){return zh(t)!==void 0&&o<=0}const h=mw({key:t,nodeType:"atom",peek:m,get:_,set:R,init:f,invalidate:S,shouldDeleteConfigOnRelease:B,dangerouslyAllowMutability:e.dangerouslyAllowMutability,persistence_UNSTABLE:e.persistence_UNSTABLE?{type:e.persistence_UNSTABLE.type,backButton:e.persistence_UNSTABLE.backButton}:void 0,shouldRestoreFromSnapshots:!0,retainedBy:r});return h}function _a(e){const{...t}=e,n="default"in e?e.default:new Promise(()=>{});return gw(n)?kw({...t,default:n}):Ew({...t,default:n})}function kw(e){const t=_a({...e,default:Sn,persistence_UNSTABLE:e.persistence_UNSTABLE===void 0?void 0:{...e.persistence_UNSTABLE,validator:r=>r instanceof Kt?r:ve(e.persistence_UNSTABLE).validator(r,Sn)},effects:e.effects,effects_UNSTABLE:e.effects_UNSTABLE}),n=vr({key:`${e.key}__withFallback`,get:({get:r})=>{const o=r(t);return o instanceof Kt?e.default:o},set:({set:r},o)=>r(t,o),cachePolicy_UNSTABLE:{eviction:"most-recent"},dangerouslyAllowMutability:e.dangerouslyAllowMutability});return yw(n.key,zh(e.key)),n}_a.value=e=>new Vh(e);var Dh=_a;class Tw{constructor(t){var n;Z(this,"_map",void 0),Z(this,"_keyMapper",void 0),this._map=new Map,this._keyMapper=(n=t==null?void 0:t.mapKey)!==null&&n!==void 0?n:r=>r}size(){return this._map.size}has(t){return this._map.has(this._keyMapper(t))}get(t){return this._map.get(this._keyMapper(t))}set(t,n){this._map.set(this._keyMapper(t),n)}delete(t){this._map.delete(this._keyMapper(t))}clear(){this._map.clear()}}var Cw={MapCache:Tw},Nw=Cw.MapCache,Lw=Object.freeze({__proto__:null,MapCache:Nw});const{LRUCache:of}=Mh,{MapCache:Aw}=Lw,el={equality:"reference",eviction:"none",maxSize:1/0};function xw({equality:e=el.equality,eviction:t=el.eviction,maxSize:n=el.maxSize}=el){const r=Mw(e);return Pw(t,n,r)}function Mw(e){switch(e){case"reference":return t=>t;case"value":return t=>Ri(t)}throw X(`Unrecognized equality policy ${e}`)}function Pw(e,t,n){switch(e){case"keep-all":return new Aw({mapKey:n});case"lru":return new of({mapKey:n,maxSize:ve(t)});case"most-recent":return new of({mapKey:n,maxSize:1})}throw X(`Unrecognized eviction policy ${e}`)}var Oh=xw;const{setConfigDeletionHandler:$w}=Ye;function Iw(e){var t,n;const r=Oh({equality:(t=(n=e.cachePolicyForParams_UNSTABLE)===null||n===void 0?void 0:n.equality)!==null&&t!==void 0?t:"value",eviction:"keep-all"});return o=>{var l,i;const u=r.get(o);if(u!=null)return u;const{cachePolicyForParams_UNSTABLE:s,...a}=e,d="default"in e?e.default:new Promise(()=>{}),f=Dh({...a,key:`${e.key}__${(l=Ri(o))!==null&&l!==void 0?l:"void"}`,default:typeof d=="function"?d(o):d,retainedBy_UNSTABLE:typeof e.retainedBy_UNSTABLE=="function"?e.retainedBy_UNSTABLE(o):e.retainedBy_UNSTABLE,effects:typeof e.effects=="function"?e.effects(o):typeof e.effects_UNSTABLE=="function"?e.effects_UNSTABLE(o):(i=e.effects)!==null&&i!==void 0?i:e.effects_UNSTABLE});return r.set(o,f),$w(f.key,()=>{r.delete(o)}),f}}var Vw=Iw;const{setConfigDeletionHandler:zw}=Ye;let Dw=0;function Ow(e){var t,n;const r=Oh({equality:(t=(n=e.cachePolicyForParams_UNSTABLE)===null||n===void 0?void 0:n.equality)!==null&&t!==void 0?t:"value",eviction:"keep-all"});return o=>{var l;let i;try{i=r.get(o)}catch(m){throw X(`Problem with cache lookup for selector ${e.key}: ${m.message}`)}if(i!=null)return i;const u=`${e.key}__selectorFamily/${(l=Ri(o,{allowFunctions:!0}))!==null&&l!==void 0?l:"void"}/${Dw++}`,s=m=>e.get(o)(m),a=e.cachePolicy_UNSTABLE,d=typeof e.retainedBy_UNSTABLE=="function"?e.retainedBy_UNSTABLE(o):e.retainedBy_UNSTABLE;let f;if(e.set!=null){const m=e.set;f=vr({key:u,get:s,set:(S,R)=>m(o)(S,R),cachePolicy_UNSTABLE:a,dangerouslyAllowMutability:e.dangerouslyAllowMutability,retainedBy_UNSTABLE:d})}else f=vr({key:u,get:s,cachePolicy_UNSTABLE:a,dangerouslyAllowMutability:e.dangerouslyAllowMutability,retainedBy_UNSTABLE:d});return r.set(o,f),zw(f.key,()=>{r.delete(o)}),f}}var vn=Ow;const Uw=vn({key:"__constant",get:e=>()=>e,cachePolicyForParams_UNSTABLE:{equality:"reference"}});function Fw(e){return Uw(e)}var Bw=Fw;const jw=vn({key:"__error",get:e=>()=>{throw X(e)},cachePolicyForParams_UNSTABLE:{equality:"reference"}});function Ww(e){return jw(e)}var Hw=Ww;function bw(e){return e}var Kw=bw;const{loadableWithError:Uh,loadableWithPromise:Fh,loadableWithValue:Bh}=Eo;function Ei(e,t){const n=Array(t.length).fill(void 0),r=Array(t.length).fill(void 0);for(const[o,l]of t.entries())try{n[o]=e(l)}catch(i){r[o]=i}return[n,r]}function Gw(e){return e!=null&&!ae(e)}function ki(e){return Array.isArray(e)?e:Object.getOwnPropertyNames(e).map(t=>e[t])}function cs(e,t){return Array.isArray(e)?t:Object.getOwnPropertyNames(e).reduce((n,r,o)=>({...n,[r]:t[o]}),{})}function rr(e,t,n){const r=n.map((o,l)=>o==null?Bh(t[l]):ae(o)?Fh(o):Uh(o));return cs(e,r)}function Qw(e,t){return t.map((n,r)=>n===void 0?e[r]:n)}const Zw=vn({key:"__waitForNone",get:e=>({get:t})=>{const n=ki(e),[r,o]=Ei(t,n);return rr(e,r,o)},dangerouslyAllowMutability:!0}),Yw=vn({key:"__waitForAny",get:e=>({get:t})=>{const n=ki(e),[r,o]=Ei(t,n);return o.some(l=>!ae(l))?rr(e,r,o):new Promise(l=>{for(const[i,u]of o.entries())ae(u)&&u.then(s=>{r[i]=s,o[i]=void 0,l(rr(e,r,o))}).catch(s=>{o[i]=s,l(rr(e,r,o))})})},dangerouslyAllowMutability:!0}),Xw=vn({key:"__waitForAll",get:e=>({get:t})=>{const n=ki(e),[r,o]=Ei(t,n);if(o.every(i=>i==null))return cs(e,r);const l=o.find(Gw);if(l!=null)throw l;return Promise.all(o).then(i=>cs(e,Qw(r,i)))},dangerouslyAllowMutability:!0}),qw=vn({key:"__waitForAllSettled",get:e=>({get:t})=>{const n=ki(e),[r,o]=Ei(t,n);return o.every(l=>!ae(l))?rr(e,r,o):Promise.all(o.map((l,i)=>ae(l)?l.then(u=>{r[i]=u,o[i]=void 0}).catch(u=>{r[i]=void 0,o[i]=u}):null)).then(()=>rr(e,r,o))},dangerouslyAllowMutability:!0}),Jw=vn({key:"__noWait",get:e=>({get:t})=>{try{return vr.value(Bh(t(e)))}catch(n){return vr.value(ae(n)?Fh(n):Uh(n))}},dangerouslyAllowMutability:!0});var e_={waitForNone:Zw,waitForAny:Yw,waitForAll:Xw,waitForAllSettled:qw,noWait:Jw};const{RecoilLoadable:t_}=Eo,{DefaultValue:n_}=Ye,{RecoilRoot:r_,useRecoilStoreID:o_}=jt,{isRecoilValue:l_}=dr,{retentionZone:i_}=fi,{freshSnapshot:u_}=yi,{useRecoilState:s_,useRecoilState_TRANSITION_SUPPORT_UNSTABLE:a_,useRecoilStateLoadable:c_,useRecoilValue:f_,useRecoilValue_TRANSITION_SUPPORT_UNSTABLE:d_,useRecoilValueLoadable:p_,useRecoilValueLoadable_TRANSITION_SUPPORT_UNSTABLE:h_,useResetRecoilState:v_,useSetRecoilState:m_}=CS,{useGotoRecoilSnapshot:y_,useRecoilSnapshot:g_,useRecoilTransactionObserver:S_}=kh,{useRecoilCallback:w_}=Lh,{noWait:__,waitForAll:R_,waitForAllSettled:E_,waitForAny:k_,waitForNone:T_}=e_;var Ao={DefaultValue:n_,isRecoilValue:l_,RecoilLoadable:t_,RecoilEnv:Sr,RecoilRoot:r_,useRecoilStoreID:o_,useRecoilBridgeAcrossReactRoots_UNSTABLE:JS,atom:Dh,selector:vr,atomFamily:Vw,selectorFamily:vn,constSelector:Bw,errorSelector:Hw,readOnlySelector:Kw,noWait:__,waitForNone:T_,waitForAny:k_,waitForAll:R_,waitForAllSettled:E_,useRecoilValue:f_,useRecoilValueLoadable:p_,useRecoilState:s_,useRecoilStateLoadable:c_,useSetRecoilState:m_,useResetRecoilState:v_,useGetRecoilValueInfo_UNSTABLE:GS,useRecoilRefresher_UNSTABLE:L2,useRecoilValueLoadable_TRANSITION_SUPPORT_UNSTABLE:h_,useRecoilValue_TRANSITION_SUPPORT_UNSTABLE:d_,useRecoilState_TRANSITION_SUPPORT_UNSTABLE:a_,useRecoilCallback:w_,useRecoilTransaction_UNSTABLE:$2,useGotoRecoilSnapshot:y_,useRecoilSnapshot:g_,useRecoilTransactionObserver_UNSTABLE:S_,snapshot_UNSTABLE:u_,useRetain:ma,retentionZone:i_},C_=Ao.RecoilRoot,xo=Ao.atom,N_=Ao.selector,L_=Ao.useRecoilValue,Mo=Ao.useRecoilState;function jh(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=jh(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function jl(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=jh(e))&&(r&&(r+=" "),r+=t);return r}function fs(){return fs=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},fs.apply(this,arguments)}var Wh=["shift","alt","meta","mod","ctrl"],A_={esc:"escape",return:"enter",".":"period",",":"comma","-":"slash"," ":"space","`":"backquote","#":"backslash","+":"bracketright",ShiftLeft:"shift",ShiftRight:"shift",AltLeft:"alt",AltRight:"alt",MetaLeft:"meta",MetaRight:"meta",OSLeft:"meta",OSRight:"meta",ControlLeft:"ctrl",ControlRight:"ctrl"};function Xt(e){return(A_[e]||e).trim().toLowerCase().replace(/key|digit|numpad|arrow/,"")}function x_(e){return Wh.includes(e)}function su(e,t){return t===void 0&&(t=","),e.split(t)}function au(e,t,n){t===void 0&&(t="+");var r=e.toLocaleLowerCase().split(t).map(function(i){return Xt(i)}),o={alt:r.includes("alt"),ctrl:r.includes("ctrl")||r.includes("control"),shift:r.includes("shift"),meta:r.includes("meta"),mod:r.includes("mod")},l=r.filter(function(i){return!Wh.includes(i)});return fs({},o,{keys:l,description:n})}(function(){typeof document<"u"&&(document.addEventListener("keydown",function(e){e.key!==void 0&&Hh([Xt(e.key),Xt(e.code)])}),document.addEventListener("keyup",function(e){e.key!==void 0&&bh([Xt(e.key),Xt(e.code)])})),typeof window<"u"&&window.addEventListener("blur",function(){qt.clear()})})();var qt=new Set;function Ra(e){return Array.isArray(e)}function M_(e,t){t===void 0&&(t=",");var n=Ra(e)?e:e.split(t);return n.every(function(r){return qt.has(r.trim().toLowerCase())})}function Hh(e){var t=Array.isArray(e)?e:[e];qt.has("meta")&&qt.forEach(function(n){return!x_(n)&&qt.delete(n.toLowerCase())}),t.forEach(function(n){return qt.add(n.toLowerCase())})}function bh(e){var t=Array.isArray(e)?e:[e];e==="meta"?qt.clear():t.forEach(function(n){return qt.delete(n.toLowerCase())})}function P_(e,t,n){(typeof n=="function"&&n(e,t)||n===!0)&&e.preventDefault()}function $_(e,t,n){return typeof n=="function"?n(e,t):n===!0||n===void 0}function I_(e){return Kh(e,["input","textarea","select"])}function Kh(e,t){var n=e.target;t===void 0&&(t=!1);var r=n&&n.tagName;return Ra(t)?!!(r&&t&&t.some(function(o){return o.toLowerCase()===r.toLowerCase()})):!!(r&&t&&t===!0)}function V_(e,t){return e.length===0&&t?(console.warn('A hotkey has the "scopes" option set, however no active scopes were found. If you want to use the global scopes feature, you need to wrap your app in a <HotkeysProvider>'),!0):t?e.some(function(n){return t.includes(n)})||e.includes("*"):!0}var z_=function(t,n,r){r===void 0&&(r=!1);var o=n.alt,l=n.meta,i=n.mod,u=n.shift,s=n.ctrl,a=n.keys,d=t.key,f=t.code,m=t.ctrlKey,_=t.metaKey,S=t.shiftKey,R=t.altKey,B=Xt(f),h=d.toLowerCase();if(!(a!=null&&a.includes(B))&&!(a!=null&&a.includes(h))&&!["ctrl","control","unknown","meta","alt","shift","os"].includes(B))return!1;if(!r){if(o===!R&&h!=="alt"||u===!S&&h!=="shift")return!1;if(i){if(!_&&!m)return!1}else if(l===!_&&h!=="meta"&&h!=="os"||s===!m&&h!=="ctrl"&&h!=="control")return!1}return a&&a.length===1&&(a.includes(h)||a.includes(B))?!0:a?M_(a):!a},D_=k.createContext(void 0),O_=function(){return k.useContext(D_)};function Gh(e,t){return e&&t&&typeof e=="object"&&typeof t=="object"?Object.keys(e).length===Object.keys(t).length&&Object.keys(e).reduce(function(n,r){return n&&Gh(e[r],t[r])},!0):e===t}var U_=k.createContext({hotkeys:[],enabledScopes:[],toggleScope:function(){},enableScope:function(){},disableScope:function(){}}),F_=function(){return k.useContext(U_)};function B_(e){var t=k.useRef(void 0);return Gh(t.current,e)||(t.current=e),t.current}var lf=function(t){t.stopPropagation(),t.preventDefault(),t.stopImmediatePropagation()},j_=typeof window<"u"?k.useLayoutEffect:k.useEffect;function cn(e,t,n,r){var o=k.useRef(null),l=k.useRef(!1),i=n instanceof Array?r instanceof Array?void 0:r:n,u=Ra(e)?e.join(i==null?void 0:i.splitKey):e,s=n instanceof Array?n:r instanceof Array?r:void 0,a=k.useCallback(t,s??[]),d=k.useRef(a);s?d.current=a:d.current=t;var f=B_(i),m=F_(),_=m.enabledScopes,S=O_();return j_(function(){if(!((f==null?void 0:f.enabled)===!1||!V_(_,f==null?void 0:f.scopes))){var R=function(w,E){var L;if(E===void 0&&(E=!1),!(I_(w)&&!Kh(w,f==null?void 0:f.enableOnFormTags))){if(o.current!==null){var N=o.current.getRootNode();if((N instanceof Document||N instanceof ShadowRoot)&&N.activeElement!==o.current&&!o.current.contains(N.activeElement)){lf(w);return}}(L=w.target)!=null&&L.isContentEditable&&!(f!=null&&f.enableOnContentEditable)||su(u,f==null?void 0:f.splitKey).forEach(function(V){var te,U=au(V,f==null?void 0:f.combinationKey);if(z_(w,U,f==null?void 0:f.ignoreModifiers)||(te=U.keys)!=null&&te.includes("*")){if(f!=null&&f.ignoreEventWhen!=null&&f.ignoreEventWhen(w)||E&&l.current)return;if(P_(w,U,f==null?void 0:f.preventDefault),!$_(w,U,f==null?void 0:f.enabled)){lf(w);return}d.current(w,U),E||(l.current=!0)}})}},B=function(w){w.key!==void 0&&(Hh(Xt(w.code)),((f==null?void 0:f.keydown)===void 0&&(f==null?void 0:f.keyup)!==!0||f!=null&&f.keydown)&&R(w))},h=function(w){w.key!==void 0&&(bh(Xt(w.code)),l.current=!1,f!=null&&f.keyup&&R(w,!0))},c=o.current||(i==null?void 0:i.document)||document;return c.addEventListener("keyup",h),c.addEventListener("keydown",B),S&&su(u,f==null?void 0:f.splitKey).forEach(function(p){return S.addHotkey(au(p,f==null?void 0:f.combinationKey,f==null?void 0:f.description))}),function(){c.removeEventListener("keyup",h),c.removeEventListener("keydown",B),S&&su(u,f==null?void 0:f.splitKey).forEach(function(p){return S.removeHotkey(au(p,f==null?void 0:f.combinationKey,f==null?void 0:f.description))})}}},[u,f,_]),o}const W_=xo({key:"open",default:!1}),H_=()=>Mo(W_),b_=xo({key:"context",default:"ACTIONS"}),Ea=()=>Mo(b_);function K_(e){const t=k.useRef();return k.useEffect(()=>{const n=r=>{t.current&&!t.current.contains(r.target)&&e()};return document.addEventListener("click",n,!0),()=>{document.removeEventListener("click",n,!0)}},[t]),t}const Qh=xo({key:"query",default:""}),Zh=()=>Mo(Qh);function Yh(){let e="/";return window.palette&&window.palette.baseUrl&&(e=`${window.palette.baseUrl}/`,e=e.replace(/\/+$/,"/")),e}const Xh=xo({key:"unfilteredActionsState",default:[]}),G_=N_({key:"actionsState",get:({get:e})=>{const t=e(Qh);return e(Xh).filter(r=>r.name.toLowerCase().includes(t.toLowerCase())||r.subtitle.toLowerCase().includes(t.toLowerCase()))}});function Q_(){const[e,t]=Mo(Xh),n=L_(G_);async function r(){const o=Yh(),i=await(await fetch(`${o}actions/palette/actions`)).json();t(i)}return{getActions:r,actions:n}}const Z_=xo({key:"focus",default:0});function ka(e){const[t,n]=Mo(Z_);k.useEffect(()=>{n(0)},[e]);async function r(o,l){l.length!==0&&(o==="up"&&t===0||o==="down"&&t===l.length-1||(o==="up"&&n(i=>i-1),o==="down"&&n(i=>i+1)))}return{setFocus:n,moveFocus:r,focus:t}}function Y_({title:e,titleId:t,...n},r){return k.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":t},n),e?k.createElement("title",{id:t},e):null,k.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M6 13.5V3.75m0 9.75a1.5 1.5 0 0 1 0 3m0-3a1.5 1.5 0 0 0 0 3m0 3.75V16.5m12-3V3.75m0 9.75a1.5 1.5 0 0 1 0 3m0-3a1.5 1.5 0 0 0 0 3m0 3.75V16.5m-6-9V3.75m0 3.75a1.5 1.5 0 0 1 0 3m0-3a1.5 1.5 0 0 0 0 3m0 9.75V10.5"}))}const X_=k.forwardRef(Y_),q_=X_;function J_({title:e,titleId:t,...n},r){return k.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":t},n),e?k.createElement("title",{id:t},e):null,k.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M15.75 9V5.25A2.25 2.25 0 0 0 13.5 3h-6a2.25 2.25 0 0 0-2.25 2.25v13.5A2.25 2.25 0 0 0 7.5 21h6a2.25 2.25 0 0 0 2.25-2.25V15M12 9l-3 3m0 0 3 3m-3-3h12.75"}))}const e5=k.forwardRef(J_),t5=e5;function n5({title:e,titleId:t,...n},r){return k.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":t},n),e?k.createElement("title",{id:t},e):null,k.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M9 15 3 9m0 0 6-6M3 9h12a6 6 0 0 1 0 12h-3"}))}const r5=k.forwardRef(n5),o5=r5;function l5({title:e,titleId:t,...n},r){return k.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":t},n),e?k.createElement("title",{id:t},e):null,k.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M3.75 6.75h16.5M3.75 12h16.5m-16.5 5.25h16.5"}))}const i5=k.forwardRef(l5),u5=i5;function s5({title:e,titleId:t,...n},r){return k.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":t},n),e?k.createElement("title",{id:t},e):null,k.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m3.75 13.5 10.5-11.25L12 10.5h8.25L9.75 21.75 12 13.5H3.75Z"}))}const a5=k.forwardRef(s5),c5=a5;function f5({title:e,titleId:t,...n},r){return k.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":t},n),e?k.createElement("title",{id:t},e):null,k.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M20.25 6.375c0 2.278-3.694 4.125-8.25 4.125S3.75 8.653 3.75 6.375m16.5 0c0-2.278-3.694-4.125-8.25-4.125S3.75 4.097 3.75 6.375m16.5 0v11.25c0 2.278-3.694 4.125-8.25 4.125s-8.25-1.847-8.25-4.125V6.375m16.5 0v3.75m-16.5-3.75v3.75m16.5 0v3.75C20.25 16.153 16.556 18 12 18s-8.25-1.847-8.25-4.125v-3.75m16.5 0c0 2.278-3.694 4.125-8.25 4.125s-8.25-1.847-8.25-4.125"}))}const d5=k.forwardRef(f5),p5=d5;function h5({title:e,titleId:t,...n},r){return k.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":t},n),e?k.createElement("title",{id:t},e):null,k.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M14.25 9.75 16.5 12l-2.25 2.25m-4.5 0L7.5 12l2.25-2.25M6 20.25h12A2.25 2.25 0 0 0 20.25 18V6A2.25 2.25 0 0 0 18 3.75H6A2.25 2.25 0 0 0 3.75 6v12A2.25 2.25 0 0 0 6 20.25Z"}))}const v5=k.forwardRef(h5),m5=v5;function y5({title:e,titleId:t,...n},r){return k.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":t},n),e?k.createElement("title",{id:t},e):null,k.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M10.343 3.94c.09-.542.56-.94 1.11-.94h1.093c.55 0 1.02.398 1.11.94l.149.894c.07.424.384.764.78.93.398.164.855.142 1.205-.108l.737-.527a1.125 1.125 0 0 1 1.45.12l.773.774c.39.389.44 1.002.12 1.45l-.527.737c-.25.35-.272.806-.107 1.204.165.397.505.71.93.78l.893.15c.543.09.94.559.94 1.109v1.094c0 .55-.397 1.02-.94 1.11l-.894.149c-.424.07-.764.383-.929.78-.165.398-.143.854.107 1.204l.527.738c.32.447.269 1.06-.12 1.45l-.774.773a1.125 1.125 0 0 1-1.449.12l-.738-.527c-.35-.25-.806-.272-1.203-.107-.398.165-.71.505-.781.929l-.149.894c-.09.542-.56.94-1.11.94h-1.094c-.55 0-1.019-.398-1.11-.94l-.148-.894c-.071-.424-.384-.764-.781-.93-.398-.164-.854-.142-1.204.108l-.738.527c-.447.32-1.06.269-1.45-.12l-.773-.774a1.125 1.125 0 0 1-.12-1.45l.527-.737c.25-.35.272-.806.108-1.204-.165-.397-.506-.71-.93-.78l-.894-.15c-.542-.09-.94-.56-.94-1.109v-1.094c0-.55.398-1.02.94-1.11l.894-.149c.424-.07.765-.383.93-.78.165-.398.143-.854-.108-1.204l-.526-.738a1.125 1.125 0 0 1 .12-1.45l.773-.773a1.125 1.125 0 0 1 1.45-.12l.737.527c.35.25.807.272 1.204.107.397-.165.71-.505.78-.929l.15-.894Z"}),k.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M15 12a3 3 0 1 1-6 0 3 3 0 0 1 6 0Z"}))}const g5=k.forwardRef(y5),S5=g5;function w5({title:e,titleId:t,...n},r){return k.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":t},n),e?k.createElement("title",{id:t},e):null,k.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m6.75 7.5 3 2.25-3 2.25m4.5 0h3m-9 8.25h13.5A2.25 2.25 0 0 0 21 18V6a2.25 2.25 0 0 0-2.25-2.25H5.25A2.25 2.25 0 0 0 3 6v12a2.25 2.25 0 0 0 2.25 2.25Z"}))}const _5=k.forwardRef(w5),R5=_5;function E5({title:e,titleId:t,...n},r){return k.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":t},n),e?k.createElement("title",{id:t},e):null,k.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M15.75 17.25v3.375c0 .621-.504 1.125-1.125 1.125h-9.75a1.125 1.125 0 0 1-1.125-1.125V7.875c0-.621.504-1.125 1.125-1.125H6.75a9.06 9.06 0 0 1 1.5.124m7.5 10.376h3.375c.621 0 1.125-.504 1.125-1.125V11.25c0-4.46-3.243-8.161-7.5-8.876a9.06 9.06 0 0 0-1.5-.124H9.375c-.621 0-1.125.504-1.125 1.125v3.5m7.5 10.375H9.375a1.125 1.125 0 0 1-1.125-1.125v-9.25m12 6.625v-1.875a3.375 3.375 0 0 0-3.375-3.375h-1.5a1.125 1.125 0 0 1-1.125-1.125v-1.5a3.375 3.375 0 0 0-3.375-3.375H9.75"}))}const k5=k.forwardRef(E5),T5=k5;function C5({title:e,titleId:t,...n},r){return k.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":t},n),e?k.createElement("title",{id:t},e):null,k.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M19.5 14.25v-2.625a3.375 3.375 0 0 0-3.375-3.375h-1.5A1.125 1.125 0 0 1 13.5 7.125v-1.5a3.375 3.375 0 0 0-3.375-3.375H8.25m2.25 0H5.625c-.621 0-1.125.504-1.125 1.125v17.25c0 .621.504 1.125 1.125 1.125h12.75c.621 0 1.125-.504 1.125-1.125V11.25a9 9 0 0 0-9-9Z"}))}const N5=k.forwardRef(C5),uf=N5;function L5({title:e,titleId:t,...n},r){return k.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":t},n),e?k.createElement("title",{id:t},e):null,k.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 21a9.004 9.004 0 0 0 8.716-6.747M12 21a9.004 9.004 0 0 1-8.716-6.747M12 21c2.485 0 4.5-4.03 4.5-9S14.485 3 12 3m0 18c-2.485 0-4.5-4.03-4.5-9S9.515 3 12 3m0 0a8.997 8.997 0 0 1 7.843 4.582M12 3a8.997 8.997 0 0 0-7.843 4.582m15.686 0A11.953 11.953 0 0 1 12 10.5c-2.998 0-5.74-1.1-7.843-2.918m15.686 0A8.959 8.959 0 0 1 21 12c0 .778-.099 1.533-.284 2.253m0 0A17.919 17.919 0 0 1 12 16.5c-3.162 0-6.133-.815-8.716-2.247m0 0A9.015 9.015 0 0 1 3 12c0-1.605.42-3.113 1.157-4.418"}))}const A5=k.forwardRef(L5),x5=A5;function M5({title:e,titleId:t,...n},r){return k.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":t},n),e?k.createElement("title",{id:t},e):null,k.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m21 21-5.197-5.197m0 0A7.5 7.5 0 1 0 5.196 5.196a7.5 7.5 0 0 0 10.607 10.607Z"}))}const P5=k.forwardRef(M5),$5=P5;function I5({title:e,titleId:t,...n},r){return k.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":t},n),e?k.createElement("title",{id:t},e):null,k.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m18.375 12.739-7.693 7.693a4.5 4.5 0 0 1-6.364-6.364l10.94-10.94A3 3 0 1 1 19.5 7.372L8.552 18.32m.009-.01-.01.01m5.699-9.941-7.81 7.81a1.5 1.5 0 0 0 2.112 2.13"}))}const V5=k.forwardRef(I5),z5=V5;function D5({title:e,titleId:t,...n},r){return k.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":t},n),e?k.createElement("title",{id:t},e):null,k.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m16.862 4.487 1.687-1.688a1.875 1.875 0 1 1 2.652 2.652L10.582 16.07a4.5 4.5 0 0 1-1.897 1.13L6 18l.8-2.685a4.5 4.5 0 0 1 1.13-1.897l8.932-8.931Zm0 0L19.5 7.125M18 14v4.75A2.25 2.25 0 0 1 15.75 21H5.25A2.25 2.25 0 0 1 3 18.75V8.25A2.25 2.25 0 0 1 5.25 6H10"}))}const O5=k.forwardRef(D5),U5=O5;function F5({title:e,titleId:t,...n},r){return k.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":t},n),e?k.createElement("title",{id:t},e):null,k.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M3.75 6A2.25 2.25 0 0 1 6 3.75h2.25A2.25 2.25 0 0 1 10.5 6v2.25a2.25 2.25 0 0 1-2.25 2.25H6a2.25 2.25 0 0 1-2.25-2.25V6ZM3.75 15.75A2.25 2.25 0 0 1 6 13.5h2.25a2.25 2.25 0 0 1 2.25 2.25V18a2.25 2.25 0 0 1-2.25 2.25H6A2.25 2.25 0 0 1 3.75 18v-2.25ZM13.5 6a2.25 2.25 0 0 1 2.25-2.25H18A2.25 2.25 0 0 1 20.25 6v2.25A2.25 2.25 0 0 1 18 10.5h-2.25a2.25 2.25 0 0 1-2.25-2.25V6ZM13.5 15.75a2.25 2.25 0 0 1 2.25-2.25H18a2.25 2.25 0 0 1 2.25 2.25V18A2.25 2.25 0 0 1 18 20.25h-2.25A2.25 2.25 0 0 1 13.5 18v-2.25Z"}))}const B5=k.forwardRef(F5),j5=B5;function W5({title:e,titleId:t,...n},r){return k.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":t},n),e?k.createElement("title",{id:t},e):null,k.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M3.375 19.5h17.25m-17.25 0a1.125 1.125 0 0 1-1.125-1.125M3.375 19.5h7.5c.621 0 1.125-.504 1.125-1.125m-9.75 0V5.625m0 12.75v-1.5c0-.621.504-1.125 1.125-1.125m18.375 2.625V5.625m0 12.75c0 .621-.504 1.125-1.125 1.125m1.125-1.125v-1.5c0-.621-.504-1.125-1.125-1.125m0 3.75h-7.5A1.125 1.125 0 0 1 12 18.375m9.75-12.75c0-.621-.504-1.125-1.125-1.125H3.375c-.621 0-1.125.504-1.125 1.125m19.5 0v1.5c0 .621-.504 1.125-1.125 1.125M2.25 5.625v1.5c0 .621.504 1.125 1.125 1.125m0 0h17.25m-17.25 0h7.5c.621 0 1.125.504 1.125 1.125M3.375 8.25c-.621 0-1.125.504-1.125 1.125v1.5c0 .621.504 1.125 1.125 1.125m17.25-3.75h-7.5c-.621 0-1.125.504-1.125 1.125m8.625-1.125c.621 0 1.125.504 1.125 1.125v1.5c0 .621-.504 1.125-1.125 1.125m-17.25 0h7.5m-7.5 0c-.621 0-1.125.504-1.125 1.125v1.5c0 .621.504 1.125 1.125 1.125M12 10.875v-1.5m0 1.5c0 .621-.504 1.125-1.125 1.125M12 10.875c0 .621.504 1.125 1.125 1.125m-2.25 0c.621 0 1.125.504 1.125 1.125M13.125 12h7.5m-7.5 0c-.621 0-1.125.504-1.125 1.125M20.625 12c.621 0 1.125.504 1.125 1.125v1.5c0 .621-.504 1.125-1.125 1.125m-17.25 0h7.5M12 14.625v-1.5m0 1.5c0 .621-.504 1.125-1.125 1.125M12 14.625c0 .621.504 1.125 1.125 1.125m-2.25 0c.621 0 1.125.504 1.125 1.125m0 1.5v-1.5m0 0c0-.621.504-1.125 1.125-1.125m0 0h7.5"}))}const H5=k.forwardRef(W5),b5=H5;function K5({title:e,titleId:t,...n},r){return k.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":t},n),e?k.createElement("title",{id:t},e):null,k.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M17.982 18.725A7.488 7.488 0 0 0 12 15.75a7.488 7.488 0 0 0-5.982 2.975m11.963 0a9 9 0 1 0-11.963 0m11.963 0A8.966 8.966 0 0 1 12 21a8.966 8.966 0 0 1-5.982-2.275M15 9.75a3 3 0 1 1-6 0 3 3 0 0 1 6 0Z"}))}const G5=k.forwardRef(K5),Q5=G5;function Z5({name:e,...t}){return e==="document"?F.jsx(uf,{...t}):e==="table"?F.jsx(b5,{...t}):e==="section"?F.jsx(j5,{...t}):e==="code"?F.jsx(m5,{...t}):e==="bolt"?F.jsx(c5,{...t}):e==="settings"?F.jsx(S5,{...t}):e==="search"?F.jsx($5,{...t}):e==="globe"?F.jsx(x5,{...t}):e==="edit"?F.jsx(U5,{...t}):e==="menu"?F.jsx(u5,{...t}):e==="attachment"?F.jsx(z5,{...t}):e==="database"?F.jsx(p5,{...t}):e==="utility"?F.jsx(q_,{...t}):e==="docs"?F.jsx(T5,{...t}):e==="user"?F.jsx(Q5,{...t}):e==="logout"?F.jsx(t5,{...t}):F.jsx(uf,{...t})}function qh({url:e,title:t,subtitle:n,icon:r,type:o,focused:l}){const i=k.useRef(null),[u,s]=Ea(),{focus:a,setFocus:d}=ka();return cn("enter",()=>{l&&(o==="link"?window.location=e:s(e))},{enableOnFormTags:!0}),cn("meta+enter",()=>{l&&(o==="link"?window.open(e,"_blank"):s(e))},{enableOnFormTags:!0}),k.useEffect(()=>{l&&i.current.scrollIntoView({block:"center"})},[a]),F.jsx("a",{className:jl("p-flex p-items-center p-gap-2","p-font-sans p-text-sm p-text-zinc-700 dark:p-text-zinc-300 p-no-underline","p-px-3 p-py-2.5 p-mx-2 p-rounded-lg",l&&"p-bg-zinc-200/75 dark:p-bg-zinc-700/50","hover:p-bg-zinc-200/75 dark:hover:p-bg-zinc-700/50"),onMouseEnter:()=>d(null),href:o==="link"?e:null,onClick:()=>o==="context"?s(e):null,ref:i,children:F.jsx("div",{className:"p-flex p-items-center p-justify-between p-gap-2 p-flex-1",children:F.jsxs("div",{className:"p-flex p-items-center p-gap-3 p-flex-1",children:[F.jsx(Z5,{name:r,className:"p-size-5 p-opacity-75"}),F.jsxs("div",{className:"p-flex-1 p-flex p-justify-between p-items-center p-gap-1",children:[F.jsx("p",{className:"p-block p-leading-none p-m-0 p-font-sans p-font-medium",children:t}),n&&F.jsx("p",{className:"p-block p-leading-none p-text-xs p-m-0 p-font-sans p-opacity-75",children:n})]})]})})})}function Jh({text:e="No matching results found"}){return F.jsxs("div",{className:"p-flex p-flex-col p-justify-center p-items-center p-py-6 p-text-zinc-400 dark:p-text-zinc-500",children:[F.jsx("div",{children:F.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor",className:"p-size-12",children:F.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m21 21-5.197-5.197m0 0A7.5 7.5 0 1 0 5.196 5.196a7.5 7.5 0 0 0 10.607 10.607Z"})})}),F.jsx("p",{className:"p-text-lg p-mt-1",children:e})]})}function Y5(){const{actions:e,getActions:t}=Q_(),{focus:n,moveFocus:r}=ka(e);return cn("up",()=>r("up",e),{enableOnFormTags:!0,preventDefault:!0}),cn("down",()=>r("down",e),{enableOnFormTags:!0,preventDefault:!0}),k.useEffect(()=>{t()},[]),F.jsxs(F.Fragment,{children:[e.length===0&&F.jsx(Jh,{}),e.map((o,l)=>F.jsx(qh,{url:o.url,title:o.name,subtitle:o.subtitle,icon:o.icon,focused:l===n,type:o.type},o.url))]})}function X5(e,t,n){k.useEffect(()=>{const r=setTimeout(()=>e(),n);return()=>clearTimeout(r)},[...t||[],n])}function q5(){const[e]=Zh(),[t,n]=k.useState([]),{focus:r,moveFocus:o}=ka(t);return X5(()=>{const l=Yh();fetch(`${l}actions/palette/search?query=${e}`).then(i=>i.json()).then(i=>n(i))},[e],200),cn("up",()=>o("up",t),{enableOnFormTags:!0,preventDefault:!0}),cn("down",()=>o("down",t),{enableOnFormTags:!0,preventDefault:!0}),F.jsxs(F.Fragment,{children:[t.length===0&&F.jsx(Jh,{text:"No matching entries found"}),t.map((l,i)=>F.jsx(qh,{url:l.url,title:l.name,subtitle:l.subtitle,icon:l.icon,focused:i===r,type:l.type},l.url))]})}function J5({placeholder:e="Search"}){const[t,n]=Zh(),[r,o]=Ea();return k.useEffect(()=>{n("")},[r]),F.jsxs("div",{className:"p-flex p-px-2 p-items-center p-gap-1 p-border-b p-border-zinc-200 dark:p-border-zinc-700",children:[r!=="ACTIONS"&&F.jsx("div",{children:F.jsx("button",{className:"p-size-8 p-flex p-items-center p-justify-center p-border p-border-zinc-300 dark:p-border-zinc-700 p-rounded-lg dark:p-bg-zinc-900",onClick:()=>o("ACTIONS"),children:F.jsx(o5,{className:"p-size-4 p-text-zinc-500"})})}),F.jsx("input",{type:"text",className:jl(["p-bg-transparent","p-w-full p-px-2 p-py-3","p-outline-none p-ring-0 p-shadow-none p-border-0","p-text-base placeholder:p-text-zinc-400 placeholder:dark:p-text-zinc-500 p-text-zinc-700 dark:p-text-zinc-200"]),placeholder:e,onInput:({target:l})=>n(l.value),value:t,autoFocus:!0,spellCheck:!1})]})}function eR(){const[e,t]=H_(),[n,r]=Ea(),o=K_(()=>t(!1));return cn(["ctrl+k, meta+k"],()=>{t(l=>!l),r("ACTIONS")},{enableOnFormTags:!0,preventDefault:!0}),cn("esc",()=>{n==="ACTIONS"&&t(!1),r("ACTIONS")},{enableOnFormTags:!0}),F.jsxs(F.Fragment,{children:[e&&F.jsx("div",{className:"p-fixed p-inset-0 p-z-[9999] p-size-full p-flex p-justify-center p-antialiased",children:F.jsx("div",{className:"p-w-full p-max-w-2xl",children:F.jsxs("div",{ref:o,className:jl(["p-bg-white/70 dark:p-bg-zinc-950/90","p-outline-zinc-300 dark:p-outline-zinc-900 p-outline p-outline-1","p-border p-border-white dark:p-border-zinc-500","p-rounded-lg p-translate-y-24 p-overflow-hidden p-backdrop-blur-xl p-shadow-2xl"]),children:[F.jsx(J5,{}),F.jsxs("div",{className:"dark:p-bg-zinc-950/10 p-max-h-96 p-overflow-scroll p-py-2",children:[n==="ACTIONS"&&F.jsx(Y5,{}),n==="SEARCH_ENTRIES"&&F.jsx(q5,{})]})]})})}),F.jsx("button",{className:jl(["p-fixed p-bottom-5 p-right-5 p-z-[100]","p-flex p-items-center p-justify-center","p-backdrop-blur-md p-shadow p-rounded-full","p-bg-zinc-50/70 dark:p-bg-neutral-800/90","dark:p-text-neutral-300","p-size-8","p-cursor-pointer","p-border-0","p-transition-transform hover:p-scale-110 active:p-scale-90"]),onClick:()=>t(!0),"aria-label":"Open Palette",children:F.jsx(R5,{className:"p-size-5"})})]})}function tR(){return F.jsx(C_,{children:F.jsx(eR,{})})}const ev=document.createElement("div");ev.setAttribute("data-palette","");document.body.appendChild(ev);document.querySelectorAll("[data-palette]").forEach(e=>Rp.render(F.jsx(tR,{}),e)); })() \ No newline at end of file diff --git a/src/controllers/ActionsController.php b/src/controllers/ActionsController.php index 0cc16e4..cd5d61a 100644 --- a/src/controllers/ActionsController.php +++ b/src/controllers/ActionsController.php @@ -19,6 +19,7 @@ public function actionIndex(): \craft\web\Response ...$this->_getRouteContextActions(), ...$this->_getContextActions(), ...$this->_navigationActions(), + ...$this->_entriesActions(), ...$this->_adminActions(), ...$this->_utilityActions(), ...$this->_userActions(), @@ -271,6 +272,25 @@ private function _isCpRequest(): bool return false; } + /** + * Returns a list of sections that a user has permission to create entries in + */ + private function _entriesActions(): array + { + return collect(Craft::$app->getEntries()->getAllSections()) + ->filter(fn ($section) => $section->type !== 'single') + ->filter(fn ($section) => Craft::$app->getUser()->checkPermission('createEntries:'.$section->uid)) + ->map(fn ($section) => [ + 'type' => 'link', + 'name' => "{$section->name} Entries", + 'url' => UrlHelper::cpUrl('entries/'.$section->handle), + 'subtitle' => "Entries → {$section->name}", + 'icon' => 'docs', + ]) + ->values() + ->toArray(); + } + /** * Parses the custom URLs defined by a user and maps them back into a valid Palette structure */