8784.7d59df50905aff5c579d.js 126 KB

12
  1. /*! For license information please see 8784.7d59df50905aff5c579d.js.LICENSE.txt */
  2. !function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},t=(new Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="8ad9434c-ce12-40c2-9461-9d7d732debc7",e._sentryDebugIdIdentifier="sentry-dbid-8ad9434c-ce12-40c2-9461-9d7d732debc7")}catch(e){}}();var _global="undefined"!==typeof window?window:"undefined"!==typeof global?global:"undefined"!==typeof self?self:{};_global.SENTRY_RELEASE={id:"833aaee1cc06f5081274f22d18347a1cce30fb04"},(self.webpackChunkcloud_frontend=self.webpackChunkcloud_frontend||[]).push([[8784],{17563:function(e,t,n){const r=n(70610),o=n(44020),a=n(80500),i=n(92806),s=Symbol("encodeFragmentIdentifier");function u(e){if("string"!==typeof e||1!==e.length)throw new TypeError("arrayFormatSeparator must be single character string")}function l(e,t){return t.encode?t.strict?r(e):encodeURIComponent(e):e}function c(e,t){return t.decode?o(e):e}function d(e){return Array.isArray(e)?e.sort():"object"===typeof e?d(Object.keys(e)).sort(((e,t)=>Number(e)-Number(t))).map((t=>e[t])):e}function f(e){const t=e.indexOf("#");return-1!==t&&(e=e.slice(0,t)),e}function p(e){const t=(e=f(e)).indexOf("?");return-1===t?"":e.slice(t+1)}function h(e,t){return t.parseNumbers&&!Number.isNaN(Number(e))&&"string"===typeof e&&""!==e.trim()?e=Number(e):!t.parseBooleans||null===e||"true"!==e.toLowerCase()&&"false"!==e.toLowerCase()||(e="true"===e.toLowerCase()),e}function m(e,t){u((t=Object.assign({decode:!0,sort:!0,arrayFormat:"none",arrayFormatSeparator:",",parseNumbers:!1,parseBooleans:!1},t)).arrayFormatSeparator);const n=function(e){let t;switch(e.arrayFormat){case"index":return(e,n,r)=>{t=/\[(\d*)\]$/.exec(e),e=e.replace(/\[\d*\]$/,""),t?(void 0===r[e]&&(r[e]={}),r[e][t[1]]=n):r[e]=n};case"bracket":return(e,n,r)=>{t=/(\[\])$/.exec(e),e=e.replace(/\[\]$/,""),t?void 0!==r[e]?r[e]=[].concat(r[e],n):r[e]=[n]:r[e]=n};case"colon-list-separator":return(e,n,r)=>{t=/(:list)$/.exec(e),e=e.replace(/:list$/,""),t?void 0!==r[e]?r[e]=[].concat(r[e],n):r[e]=[n]:r[e]=n};case"comma":case"separator":return(t,n,r)=>{const o="string"===typeof n&&n.includes(e.arrayFormatSeparator),a="string"===typeof n&&!o&&c(n,e).includes(e.arrayFormatSeparator);n=a?c(n,e):n;const i=o||a?n.split(e.arrayFormatSeparator).map((t=>c(t,e))):null===n?n:c(n,e);r[t]=i};case"bracket-separator":return(t,n,r)=>{const o=/(\[\])$/.test(t);if(t=t.replace(/\[\]$/,""),!o)return void(r[t]=n?c(n,e):n);const a=null===n?[]:n.split(e.arrayFormatSeparator).map((t=>c(t,e)));void 0!==r[t]?r[t]=[].concat(r[t],a):r[t]=a};default:return(e,t,n)=>{void 0!==n[e]?n[e]=[].concat(n[e],t):n[e]=t}}}(t),r=Object.create(null);if("string"!==typeof e)return r;if(!(e=e.trim().replace(/^[?#&]/,"")))return r;for(const o of e.split("&")){if(""===o)continue;let[e,i]=a(t.decode?o.replace(/\+/g," "):o,"=");i=void 0===i?null:["comma","separator","bracket-separator"].includes(t.arrayFormat)?i:c(i,t),n(c(e,t),i,r)}for(const o of Object.keys(r)){const e=r[o];if("object"===typeof e&&null!==e)for(const n of Object.keys(e))e[n]=h(e[n],t);else r[o]=h(e,t)}return!1===t.sort?r:(!0===t.sort?Object.keys(r).sort():Object.keys(r).sort(t.sort)).reduce(((e,t)=>{const n=r[t];return Boolean(n)&&"object"===typeof n&&!Array.isArray(n)?e[t]=d(n):e[t]=n,e}),Object.create(null))}t.extract=p,t.parse=m,t.stringify=(e,t)=>{if(!e)return"";u((t=Object.assign({encode:!0,strict:!0,arrayFormat:"none",arrayFormatSeparator:","},t)).arrayFormatSeparator);const n=n=>{return t.skipNull&&(null===(r=e[n])||void 0===r)||t.skipEmptyString&&""===e[n];var r},r=function(e){switch(e.arrayFormat){case"index":return t=>(n,r)=>{const o=n.length;return void 0===r||e.skipNull&&null===r||e.skipEmptyString&&""===r?n:null===r?[...n,[l(t,e),"[",o,"]"].join("")]:[...n,[l(t,e),"[",l(o,e),"]=",l(r,e)].join("")]};case"bracket":return t=>(n,r)=>void 0===r||e.skipNull&&null===r||e.skipEmptyString&&""===r?n:null===r?[...n,[l(t,e),"[]"].join("")]:[...n,[l(t,e),"[]=",l(r,e)].join("")];case"colon-list-separator":return t=>(n,r)=>void 0===r||e.skipNull&&null===r||e.skipEmptyString&&""===r?n:null===r?[...n,[l(t,e),":list="].join("")]:[...n,[l(t,e),":list=",l(r,e)].join("")];case"comma":case"separator":case"bracket-separator":{const t="bracket-separator"===e.arrayFormat?"[]=":"=";return n=>(r,o)=>void 0===o||e.skipNull&&null===o||e.skipEmptyString&&""===o?r:(o=null===o?"":o,0===r.length?[[l(n,e),t,l(o,e)].join("")]:[[r,l(o,e)].join(e.arrayFormatSeparator)])}default:return t=>(n,r)=>void 0===r||e.skipNull&&null===r||e.skipEmptyString&&""===r?n:null===r?[...n,l(t,e)]:[...n,[l(t,e),"=",l(r,e)].join("")]}}(t),o={};for(const i of Object.keys(e))n(i)||(o[i]=e[i]);const a=Object.keys(o);return!1!==t.sort&&a.sort(t.sort),a.map((n=>{const o=e[n];return void 0===o?"":null===o?l(n,t):Array.isArray(o)?0===o.length&&"bracket-separator"===t.arrayFormat?l(n,t)+"[]":o.reduce(r(n),[]).join("&"):l(n,t)+"="+l(o,t)})).filter((e=>e.length>0)).join("&")},t.parseUrl=(e,t)=>{t=Object.assign({decode:!0},t);const[n,r]=a(e,"#");return Object.assign({url:n.split("?")[0]||"",query:m(p(e),t)},t&&t.parseFragmentIdentifier&&r?{fragmentIdentifier:c(r,t)}:{})},t.stringifyUrl=(e,n)=>{n=Object.assign({encode:!0,strict:!0,[s]:!0},n);const r=f(e.url).split("?")[0]||"",o=t.extract(e.url),a=t.parse(o,{sort:!1}),i=Object.assign(a,e.query);let u=t.stringify(i,n);u&&(u=`?${u}`);let c=function(e){let t="";const n=e.indexOf("#");return-1!==n&&(t=e.slice(n)),t}(e.url);return e.fragmentIdentifier&&(c=`#${n[s]?l(e.fragmentIdentifier,n):e.fragmentIdentifier}`),`${r}${u}${c}`},t.pick=(e,n,r)=>{r=Object.assign({parseFragmentIdentifier:!0,[s]:!1},r);const{url:o,query:a,fragmentIdentifier:u}=t.parseUrl(e,r);return t.stringifyUrl({url:o,query:i(a,n),fragmentIdentifier:u},r)},t.exclude=(e,n,r)=>{const o=Array.isArray(n)?e=>!n.includes(e):(e,t)=>!n(e,t);return t.pick(e,o,r)}},69921:function(e,t){var n,r=Symbol.for("react.element"),o=Symbol.for("react.portal"),a=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),u=Symbol.for("react.provider"),l=Symbol.for("react.context"),c=Symbol.for("react.server_context"),d=Symbol.for("react.forward_ref"),f=Symbol.for("react.suspense"),p=Symbol.for("react.suspense_list"),h=Symbol.for("react.memo"),m=Symbol.for("react.lazy"),v=Symbol.for("react.offscreen");function y(e){if("object"===typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:switch(e=e.type){case a:case s:case i:case f:case p:return e;default:switch(e=e&&e.$$typeof){case c:case l:case d:case m:case h:case u:return e;default:return t}}case o:return t}}}n=Symbol.for("react.module.reference"),t.isValidElementType=function(e){return"string"===typeof e||"function"===typeof e||e===a||e===s||e===i||e===f||e===p||e===v||"object"===typeof e&&null!==e&&(e.$$typeof===m||e.$$typeof===h||e.$$typeof===u||e.$$typeof===l||e.$$typeof===d||e.$$typeof===n||void 0!==e.getModuleId)},t.typeOf=y},59864:function(e,t,n){e.exports=n(69921)},26519:function(e,t,n){n.d(t,{Z:function(){return h}});var r=n(73935),o=n(67294),a=n(45697),i=n.n(a),s=!("undefined"===typeof window||!window.document||!window.document.createElement),u=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();var l=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),u(t,[{key:"componentWillUnmount",value:function(){this.defaultNode&&document.body.removeChild(this.defaultNode),this.defaultNode=null}},{key:"render",value:function(){return s?(this.props.node||this.defaultNode||(this.defaultNode=document.createElement("div"),document.body.appendChild(this.defaultNode)),r.createPortal(this.props.children,this.props.node||this.defaultNode)):null}}]),t}(o.Component);l.propTypes={children:i().node.isRequired,node:i().any};var c=l,d=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();var f=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),d(t,[{key:"componentDidMount",value:function(){this.renderPortal()}},{key:"componentDidUpdate",value:function(e){this.renderPortal()}},{key:"componentWillUnmount",value:function(){r.unmountComponentAtNode(this.defaultNode||this.props.node),this.defaultNode&&document.body.removeChild(this.defaultNode),this.defaultNode=null,this.portal=null}},{key:"renderPortal",value:function(e){this.props.node||this.defaultNode||(this.defaultNode=document.createElement("div"),document.body.appendChild(this.defaultNode));var t=this.props.children;"function"===typeof this.props.children.type&&(t=o.cloneElement(this.props.children)),this.portal=r.unstable_renderSubtreeIntoContainer(this,t,this.props.node||this.defaultNode)}},{key:"render",value:function(){return null}}]),t}(o.Component),p=f;f.propTypes={children:i().node.isRequired,node:i().any};var h=r.createPortal?c:p},79655:function(e,t,n){var r;n.d(t,{M:function(){return f},lr:function(){return g},rU:function(){return m}});var o=n(67294),a=n(89250),i=n(12599);function s(){return s=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},s.apply(this,arguments)}function u(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}function l(e){return void 0===e&&(e=""),new URLSearchParams("string"===typeof e||Array.isArray(e)||e instanceof URLSearchParams?e:Object.keys(e).reduce(((t,n)=>{let r=e[n];return t.concat(Array.isArray(r)?r.map((e=>[n,e])):[[n,r]])}),[]))}new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);const c=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset"];const d=(r||(r=n.t(o,2))).startTransition;function f(e){let{basename:t,children:n,future:r,history:i}=e,[s,u]=o.useState({action:i.action,location:i.location}),{v7_startTransition:l}=r||{},c=o.useCallback((e=>{l&&d?d((()=>u(e))):u(e)}),[u,l]);return o.useLayoutEffect((()=>i.listen(c)),[i,c]),o.createElement(a.F0,{basename:t,children:n,location:s.location,navigationType:s.action,navigator:i})}const p="undefined"!==typeof window&&"undefined"!==typeof window.document&&"undefined"!==typeof window.document.createElement,h=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,m=o.forwardRef((function(e,t){let n,{onClick:r,relative:l,reloadDocument:d,replace:f,state:m,target:v,to:y,preventScrollReset:g}=e,_=u(e,c),{basename:S}=o.useContext(a.Us),b=!1;if("string"===typeof y&&h.test(y)&&(n=y,p))try{let e=new URL(window.location.href),t=y.startsWith("//")?new URL(e.protocol+y):new URL(y),n=(0,i.Zn)(t.pathname,S);t.origin===e.origin&&null!=n?y=n+t.search+t.hash:b=!0}catch(R){}let E=(0,a.oQ)(y,{relative:l}),T=function(e,t){let{target:n,replace:r,state:s,preventScrollReset:u,relative:l}=void 0===t?{}:t,c=(0,a.s0)(),d=(0,a.TH)(),f=(0,a.WU)(e,{relative:l});return o.useCallback((t=>{if(function(e,t){return 0===e.button&&(!t||"_self"===t)&&!function(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}(e)}(t,n)){t.preventDefault();let n=void 0!==r?r:(0,i.Ep)(d)===(0,i.Ep)(f);c(e,{replace:n,state:s,preventScrollReset:u,relative:l})}}),[d,c,f,r,s,n,e,u,l])}(y,{replace:f,state:m,target:v,preventScrollReset:g,relative:l});return o.createElement("a",s({},_,{href:n||E,onClick:b||d?r:function(e){r&&r(e),e.defaultPrevented||T(e)},ref:t,target:v}))}));var v,y;function g(e){let t=o.useRef(l(e)),n=o.useRef(!1),r=(0,a.TH)(),i=o.useMemo((()=>function(e,t){let n=l(e);return t&&t.forEach(((e,r)=>{n.has(r)||t.getAll(r).forEach((e=>{n.append(r,e)}))})),n}(r.search,n.current?null:t.current)),[r.search]),s=(0,a.s0)(),u=o.useCallback(((e,t)=>{const r=l("function"===typeof e?e(i):e);n.current=!0,s("?"+r,t)}),[s,i]);return[i,u]}(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher"})(v||(v={})),function(e){e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"}(y||(y={}))},89250:function(e,t,n){var r;n.d(t,{AW:function(){return I},F0:function(){return V},Fg:function(){return x},TH:function(){return m},UO:function(){return _},Us:function(){return l},WU:function(){return S},Z5:function(){return M},bS:function(){return v},oQ:function(){return p},s0:function(){return g}});var o=n(67294),a=n(12599);function i(){return i=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},i.apply(this,arguments)}const s=o.createContext(null);const u=o.createContext(null);const l=o.createContext(null);const c=o.createContext(null);const d=o.createContext({outlet:null,matches:[],isDataRoute:!1});const f=o.createContext(null);function p(e,t){let{relative:n}=void 0===t?{}:t;h()||(0,a.J0)(!1);let{basename:r,navigator:i}=o.useContext(l),{hash:s,pathname:u,search:c}=S(e,{relative:n}),d=u;return"/"!==r&&(d="/"===u?r:(0,a.RQ)([r,u])),i.createHref({pathname:d,search:c,hash:s})}function h(){return null!=o.useContext(c)}function m(){return h()||(0,a.J0)(!1),o.useContext(c).location}function v(e){h()||(0,a.J0)(!1);let{pathname:t}=m();return o.useMemo((()=>(0,a.LX)(e,t)),[t,e])}function y(e){o.useContext(l).static||o.useLayoutEffect(e)}function g(){let{isDataRoute:e}=o.useContext(d);return e?function(){let{router:e}=C(N.UseNavigateStable),t=O(k.UseNavigateStable),n=o.useRef(!1);return y((()=>{n.current=!0})),o.useCallback((function(r,o){void 0===o&&(o={}),n.current&&("number"===typeof r?e.navigate(r):e.navigate(r,i({fromRouteId:t},o)))}),[e,t])}():function(){h()||(0,a.J0)(!1);let e=o.useContext(s),{basename:t,navigator:n}=o.useContext(l),{matches:r}=o.useContext(d),{pathname:i}=m(),u=JSON.stringify((0,a.Zq)(r).map((e=>e.pathnameBase))),c=o.useRef(!1);return y((()=>{c.current=!0})),o.useCallback((function(r,o){if(void 0===o&&(o={}),!c.current)return;if("number"===typeof r)return void n.go(r);let s=(0,a.pC)(r,JSON.parse(u),i,"path"===o.relative);null==e&&"/"!==t&&(s.pathname="/"===s.pathname?t:(0,a.RQ)([t,s.pathname])),(o.replace?n.replace:n.push)(s,o.state,o)}),[t,n,u,i,e])}()}function _(){let{matches:e}=o.useContext(d),t=e[e.length-1];return t?t.params:{}}function S(e,t){let{relative:n}=void 0===t?{}:t,{matches:r}=o.useContext(d),{pathname:i}=m(),s=JSON.stringify((0,a.Zq)(r).map((e=>e.pathnameBase)));return o.useMemo((()=>(0,a.pC)(e,JSON.parse(s),i,"path"===n)),[e,s,i,n])}function b(e,t,n){h()||(0,a.J0)(!1);let{navigator:r}=o.useContext(l),{matches:s}=o.useContext(d),u=s[s.length-1],f=u?u.params:{},p=(u&&u.pathname,u?u.pathnameBase:"/");u&&u.route;let v,y=m();if(t){var g;let e="string"===typeof t?(0,a.cP)(t):t;"/"===p||(null==(g=e.pathname)?void 0:g.startsWith(p))||(0,a.J0)(!1),v=e}else v=y;let _=v.pathname||"/",S="/"===p?_:_.slice(p.length)||"/",b=(0,a.fp)(e,{pathname:S});let E=A(b&&b.map((e=>Object.assign({},e,{params:Object.assign({},f,e.params),pathname:(0,a.RQ)([p,r.encodeLocation?r.encodeLocation(e.pathname).pathname:e.pathname]),pathnameBase:"/"===e.pathnameBase?p:(0,a.RQ)([p,r.encodeLocation?r.encodeLocation(e.pathnameBase).pathname:e.pathnameBase])}))),s,n);return t&&E?o.createElement(c.Provider,{value:{location:i({pathname:"/",search:"",hash:"",state:null,key:"default"},v),navigationType:a.aU.Pop}},E):E}function E(){let e=function(){var e;let t=o.useContext(f),n=L(k.UseRouteError),r=O(k.UseRouteError);if(t)return t;return null==(e=n.errors)?void 0:e[r]}(),t=(0,a.WK)(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,r="rgba(200,200,200, 0.5)",i={padding:"0.5rem",backgroundColor:r};return o.createElement(o.Fragment,null,o.createElement("h2",null,"Unexpected Application Error!"),o.createElement("h3",{style:{fontStyle:"italic"}},t),n?o.createElement("pre",{style:i},n):null,null)}const T=o.createElement(E,null);class R extends o.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location||"idle"!==t.revalidation&&"idle"===e.revalidation?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:e.error||t.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){console.error("React Router caught the following error during render",e,t)}render(){return this.state.error?o.createElement(d.Provider,{value:this.props.routeContext},o.createElement(f.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function w(e){let{routeContext:t,match:n,children:r}=e,a=o.useContext(s);return a&&a.static&&a.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(a.staticContext._deepestRenderedBoundaryId=n.route.id),o.createElement(d.Provider,{value:t},r)}function A(e,t,n){var r;if(void 0===t&&(t=[]),void 0===n&&(n=null),null==e){var i;if(null==(i=n)||!i.errors)return null;e=n.matches}let s=e,u=null==(r=n)?void 0:r.errors;if(null!=u){let e=s.findIndex((e=>e.route.id&&(null==u?void 0:u[e.route.id])));e>=0||(0,a.J0)(!1),s=s.slice(0,Math.min(s.length,e+1))}return s.reduceRight(((e,r,a)=>{let i=r.route.id?null==u?void 0:u[r.route.id]:null,l=null;n&&(l=r.route.errorElement||T);let c=t.concat(s.slice(0,a+1)),d=()=>{let t;return t=i?l:r.route.Component?o.createElement(r.route.Component,null):r.route.element?r.route.element:e,o.createElement(w,{match:r,routeContext:{outlet:e,matches:c,isDataRoute:null!=n},children:t})};return n&&(r.route.ErrorBoundary||r.route.errorElement||0===a)?o.createElement(R,{location:n.location,revalidation:n.revalidation,component:l,error:i,children:d(),routeContext:{outlet:null,matches:c,isDataRoute:!0}}):d()}),null)}var N=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(N||{}),k=function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e}(k||{});function C(e){let t=o.useContext(s);return t||(0,a.J0)(!1),t}function L(e){let t=o.useContext(u);return t||(0,a.J0)(!1),t}function O(e){let t=function(e){let t=o.useContext(d);return t||(0,a.J0)(!1),t}(),n=t.matches[t.matches.length-1];return n.route.id||(0,a.J0)(!1),n.route.id}(r||(r=n.t(o,2))).startTransition;function x(e){let{to:t,replace:n,state:r,relative:i}=e;h()||(0,a.J0)(!1);let{matches:s}=o.useContext(d),{pathname:u}=m(),l=g(),c=(0,a.pC)(t,(0,a.Zq)(s).map((e=>e.pathnameBase)),u,"path"===i),f=JSON.stringify(c);return o.useEffect((()=>l(JSON.parse(f),{replace:n,state:r,relative:i})),[l,f,i,n,r]),null}function I(e){(0,a.J0)(!1)}function V(e){let{basename:t="/",children:n=null,location:r,navigationType:i=a.aU.Pop,navigator:s,static:u=!1}=e;h()&&(0,a.J0)(!1);let d=t.replace(/^\/*/,"/"),f=o.useMemo((()=>({basename:d,navigator:s,static:u})),[d,s,u]);"string"===typeof r&&(r=(0,a.cP)(r));let{pathname:p="/",search:m="",hash:v="",state:y=null,key:g="default"}=r,_=o.useMemo((()=>{let e=(0,a.Zn)(p,d);return null==e?null:{location:{pathname:e,search:m,hash:v,state:y,key:g},navigationType:i}}),[d,p,m,v,y,g,i]);return null==_?null:o.createElement(l.Provider,{value:f},o.createElement(c.Provider,{children:n,value:_}))}function M(e){let{children:t,location:n}=e;return b(D(t),n)}new Promise((()=>{}));class U extends o.Component{constructor(e){super(e),this.state={error:null}}static getDerivedStateFromError(e){return{error:e}}componentDidCatch(e,t){console.error("<Await> caught the following error during render",e,t)}render(){let{children:e,errorElement:t,resolve:n}=this.props,r=null,i=AwaitRenderStatus.pending;if(n instanceof Promise)if(this.state.error){AwaitRenderStatus.error;let e=this.state.error;Promise.reject().catch((()=>{})),Object.defineProperty(r,"_tracked",{get:()=>!0}),Object.defineProperty(r,"_error",{get:()=>e})}else n._tracked?(n,void 0!==r._error?AwaitRenderStatus.error:void 0!==r._data?AwaitRenderStatus.success:AwaitRenderStatus.pending):(AwaitRenderStatus.pending,Object.defineProperty(n,"_tracked",{get:()=>!0}),n.then((e=>Object.defineProperty(n,"_data",{get:()=>e})),(e=>Object.defineProperty(n,"_error",{get:()=>e}))));else AwaitRenderStatus.success,Promise.resolve(),Object.defineProperty(r,"_tracked",{get:()=>!0}),Object.defineProperty(r,"_data",{get:()=>n});if(i===AwaitRenderStatus.error&&r._error instanceof a.X3)throw neverSettledPromise;if(i===AwaitRenderStatus.error&&!t)throw r._error;if(i===AwaitRenderStatus.error)return o.createElement(AwaitContext.Provider,{value:r,children:t});if(i===AwaitRenderStatus.success)return o.createElement(AwaitContext.Provider,{value:r,children:e});throw r}}function D(e,t){void 0===t&&(t=[]);let n=[];return o.Children.forEach(e,((e,r)=>{if(!o.isValidElement(e))return;let i=[...t,r];if(e.type===o.Fragment)return void n.push.apply(n,D(e.props.children,i));e.type!==I&&(0,a.J0)(!1),e.props.index&&e.props.children&&(0,a.J0)(!1);let s={id:e.props.id||i.join("-"),caseSensitive:e.props.caseSensitive,element:e.props.element,Component:e.props.Component,index:e.props.index,path:e.props.path,loader:e.props.loader,action:e.props.action,errorElement:e.props.errorElement,ErrorBoundary:e.props.ErrorBoundary,hasErrorBoundary:null!=e.props.ErrorBoundary||null!=e.props.errorElement,shouldRevalidate:e.props.shouldRevalidate,handle:e.props.handle,lazy:e.props.lazy};e.props.children&&(s.children=D(e.props.children,i)),n.push(s)})),n}},57762:function(e,t,n){n.d(t,{ZP:function(){return v}});var r=n(63366),o=n(94578),a=n(67294),i=n(73935),s=!1,u=a.createContext(null),l="unmounted",c="exited",d="entering",f="entered",p="exiting",h=function(e){function t(t,n){var r;r=e.call(this,t,n)||this;var o,a=n&&!n.isMounting?t.enter:t.appear;return r.appearStatus=null,t.in?a?(o=c,r.appearStatus=d):o=f:o=t.unmountOnExit||t.mountOnEnter?l:c,r.state={status:o},r.nextCallback=null,r}(0,o.Z)(t,e),t.getDerivedStateFromProps=function(e,t){return e.in&&t.status===l?{status:c}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(e){var t=null;if(e!==this.props){var n=this.state.status;this.props.in?n!==d&&n!==f&&(t=d):n!==d&&n!==f||(t=p)}this.updateStatus(!1,t)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var e,t,n,r=this.props.timeout;return e=t=n=r,null!=r&&"number"!==typeof r&&(e=r.exit,t=r.enter,n=void 0!==r.appear?r.appear:t),{exit:e,enter:t,appear:n}},n.updateStatus=function(e,t){if(void 0===e&&(e=!1),null!==t)if(this.cancelNextCallback(),t===d){if(this.props.unmountOnExit||this.props.mountOnEnter){var n=this.props.nodeRef?this.props.nodeRef.current:i.findDOMNode(this);n&&function(e){e.scrollTop}(n)}this.performEnter(e)}else this.performExit();else this.props.unmountOnExit&&this.state.status===c&&this.setState({status:l})},n.performEnter=function(e){var t=this,n=this.props.enter,r=this.context?this.context.isMounting:e,o=this.props.nodeRef?[r]:[i.findDOMNode(this),r],a=o[0],u=o[1],l=this.getTimeouts(),c=r?l.appear:l.enter;!e&&!n||s?this.safeSetState({status:f},(function(){t.props.onEntered(a)})):(this.props.onEnter(a,u),this.safeSetState({status:d},(function(){t.props.onEntering(a,u),t.onTransitionEnd(c,(function(){t.safeSetState({status:f},(function(){t.props.onEntered(a,u)}))}))})))},n.performExit=function(){var e=this,t=this.props.exit,n=this.getTimeouts(),r=this.props.nodeRef?void 0:i.findDOMNode(this);t&&!s?(this.props.onExit(r),this.safeSetState({status:p},(function(){e.props.onExiting(r),e.onTransitionEnd(n.exit,(function(){e.safeSetState({status:c},(function(){e.props.onExited(r)}))}))}))):this.safeSetState({status:c},(function(){e.props.onExited(r)}))},n.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},n.setNextCallback=function(e){var t=this,n=!0;return this.nextCallback=function(r){n&&(n=!1,t.nextCallback=null,e(r))},this.nextCallback.cancel=function(){n=!1},this.nextCallback},n.onTransitionEnd=function(e,t){this.setNextCallback(t);var n=this.props.nodeRef?this.props.nodeRef.current:i.findDOMNode(this),r=null==e&&!this.props.addEndListener;if(n&&!r){if(this.props.addEndListener){var o=this.props.nodeRef?[this.nextCallback]:[n,this.nextCallback],a=o[0],s=o[1];this.props.addEndListener(a,s)}null!=e&&setTimeout(this.nextCallback,e)}else setTimeout(this.nextCallback,0)},n.render=function(){var e=this.state.status;if(e===l)return null;var t=this.props,n=t.children,o=(t.in,t.mountOnEnter,t.unmountOnExit,t.appear,t.enter,t.exit,t.timeout,t.addEndListener,t.onEnter,t.onEntering,t.onEntered,t.onExit,t.onExiting,t.onExited,t.nodeRef,(0,r.Z)(t,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]));return a.createElement(u.Provider,{value:null},"function"===typeof n?n(e,o):a.cloneElement(a.Children.only(n),o))},t}(a.Component);function m(){}h.contextType=u,h.propTypes={},h.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:m,onEntering:m,onEntered:m,onExit:m,onExiting:m,onExited:m},h.UNMOUNTED=l,h.EXITED=c,h.ENTERING=d,h.ENTERED=f,h.EXITING=p;var v=h},72408:function(e,t){var n=Symbol.for("react.element"),r=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),a=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),s=Symbol.for("react.provider"),u=Symbol.for("react.context"),l=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),d=Symbol.for("react.memo"),f=Symbol.for("react.lazy"),p=Symbol.iterator;var h={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},m=Object.assign,v={};function y(e,t,n){this.props=e,this.context=t,this.refs=v,this.updater=n||h}function g(){}function _(e,t,n){this.props=e,this.context=t,this.refs=v,this.updater=n||h}y.prototype.isReactComponent={},y.prototype.setState=function(e,t){if("object"!==typeof e&&"function"!==typeof e&&null!=e)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")},y.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},g.prototype=y.prototype;var S=_.prototype=new g;S.constructor=_,m(S,y.prototype),S.isPureReactComponent=!0;var b=Array.isArray,E=Object.prototype.hasOwnProperty,T={current:null},R={key:!0,ref:!0,__self:!0,__source:!0};function w(e,t,r){var o,a={},i=null,s=null;if(null!=t)for(o in void 0!==t.ref&&(s=t.ref),void 0!==t.key&&(i=""+t.key),t)E.call(t,o)&&!R.hasOwnProperty(o)&&(a[o]=t[o]);var u=arguments.length-2;if(1===u)a.children=r;else if(1<u){for(var l=Array(u),c=0;c<u;c++)l[c]=arguments[c+2];a.children=l}if(e&&e.defaultProps)for(o in u=e.defaultProps)void 0===a[o]&&(a[o]=u[o]);return{$$typeof:n,type:e,key:i,ref:s,props:a,_owner:T.current}}function A(e){return"object"===typeof e&&null!==e&&e.$$typeof===n}var N=/\/+/g;function k(e,t){return"object"===typeof e&&null!==e&&null!=e.key?function(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,(function(e){return t[e]}))}(""+e.key):t.toString(36)}function C(e,t,o,a,i){var s=typeof e;"undefined"!==s&&"boolean"!==s||(e=null);var u=!1;if(null===e)u=!0;else switch(s){case"string":case"number":u=!0;break;case"object":switch(e.$$typeof){case n:case r:u=!0}}if(u)return i=i(u=e),e=""===a?"."+k(u,0):a,b(i)?(o="",null!=e&&(o=e.replace(N,"$&/")+"/"),C(i,t,o,"",(function(e){return e}))):null!=i&&(A(i)&&(i=function(e,t){return{$$typeof:n,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}(i,o+(!i.key||u&&u.key===i.key?"":(""+i.key).replace(N,"$&/")+"/")+e)),t.push(i)),1;if(u=0,a=""===a?".":a+":",b(e))for(var l=0;l<e.length;l++){var c=a+k(s=e[l],l);u+=C(s,t,o,c,i)}else if(c=function(e){return null===e||"object"!==typeof e?null:"function"===typeof(e=p&&e[p]||e["@@iterator"])?e:null}(e),"function"===typeof c)for(e=c.call(e),l=0;!(s=e.next()).done;)u+=C(s=s.value,t,o,c=a+k(s,l++),i);else if("object"===s)throw t=String(e),Error("Objects are not valid as a React child (found: "+("[object Object]"===t?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return u}function L(e,t,n){if(null==e)return e;var r=[],o=0;return C(e,r,"","",(function(e){return t.call(n,e,o++)})),r}function O(e){if(-1===e._status){var t=e._result;(t=t()).then((function(t){0!==e._status&&-1!==e._status||(e._status=1,e._result=t)}),(function(t){0!==e._status&&-1!==e._status||(e._status=2,e._result=t)})),-1===e._status&&(e._status=0,e._result=t)}if(1===e._status)return e._result.default;throw e._result}var x={current:null},I={transition:null},V={ReactCurrentDispatcher:x,ReactCurrentBatchConfig:I,ReactCurrentOwner:T};t.Children={map:L,forEach:function(e,t,n){L(e,(function(){t.apply(this,arguments)}),n)},count:function(e){var t=0;return L(e,(function(){t++})),t},toArray:function(e){return L(e,(function(e){return e}))||[]},only:function(e){if(!A(e))throw Error("React.Children.only expected to receive a single React element child.");return e}},t.Component=y,t.Fragment=o,t.Profiler=i,t.PureComponent=_,t.StrictMode=a,t.Suspense=c,t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=V,t.cloneElement=function(e,t,r){if(null===e||void 0===e)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var o=m({},e.props),a=e.key,i=e.ref,s=e._owner;if(null!=t){if(void 0!==t.ref&&(i=t.ref,s=T.current),void 0!==t.key&&(a=""+t.key),e.type&&e.type.defaultProps)var u=e.type.defaultProps;for(l in t)E.call(t,l)&&!R.hasOwnProperty(l)&&(o[l]=void 0===t[l]&&void 0!==u?u[l]:t[l])}var l=arguments.length-2;if(1===l)o.children=r;else if(1<l){u=Array(l);for(var c=0;c<l;c++)u[c]=arguments[c+2];o.children=u}return{$$typeof:n,type:e.type,key:a,ref:i,props:o,_owner:s}},t.createContext=function(e){return(e={$$typeof:u,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null}).Provider={$$typeof:s,_context:e},e.Consumer=e},t.createElement=w,t.createFactory=function(e){var t=w.bind(null,e);return t.type=e,t},t.createRef=function(){return{current:null}},t.forwardRef=function(e){return{$$typeof:l,render:e}},t.isValidElement=A,t.lazy=function(e){return{$$typeof:f,_payload:{_status:-1,_result:e},_init:O}},t.memo=function(e,t){return{$$typeof:d,type:e,compare:void 0===t?null:t}},t.startTransition=function(e){var t=I.transition;I.transition={};try{e()}finally{I.transition=t}},t.unstable_act=function(){throw Error("act(...) is not supported in production builds of React.")},t.useCallback=function(e,t){return x.current.useCallback(e,t)},t.useContext=function(e){return x.current.useContext(e)},t.useDebugValue=function(){},t.useDeferredValue=function(e){return x.current.useDeferredValue(e)},t.useEffect=function(e,t){return x.current.useEffect(e,t)},t.useId=function(){return x.current.useId()},t.useImperativeHandle=function(e,t,n){return x.current.useImperativeHandle(e,t,n)},t.useInsertionEffect=function(e,t){return x.current.useInsertionEffect(e,t)},t.useLayoutEffect=function(e,t){return x.current.useLayoutEffect(e,t)},t.useMemo=function(e,t){return x.current.useMemo(e,t)},t.useReducer=function(e,t,n){return x.current.useReducer(e,t,n)},t.useRef=function(e){return x.current.useRef(e)},t.useState=function(e){return x.current.useState(e)},t.useSyncExternalStore=function(e,t,n){return x.current.useSyncExternalStore(e,t,n)},t.useTransition=function(){return x.current.useTransition()},t.version="18.2.0"},67294:function(e,t,n){e.exports=n(72408)},4480:function(e,t,n){n.d(t,{$P:function(){return vs},C:function(){return Ss},CG:function(){return hs},FV:function(){return ys},Wh:function(){return cs},Zl:function(){return gs},_8:function(){return bs},cn:function(){return ds},nZ:function(){return fs},rb:function(){return _s},sJ:function(){return ms},xu:function(){return ps}});var r=n(67294),o=n(73935);var a=function(e){const t=new Error(e);if(void 0===t.stack)try{throw t}catch(n){}return t};var i=function(e){return!!e&&"function"===typeof e.then};var s=function(e,t){if(null!=e)return e;throw a(null!==t&&void 0!==t?t:"Got unexpected null or undefined")};function u(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class l{getValue(){throw a("BaseLoadable")}toPromise(){throw a("BaseLoadable")}valueMaybe(){throw a("BaseLoadable")}valueOrThrow(){throw a(`Loadable expected value, but in "${this.state}" state`)}promiseMaybe(){throw a("BaseLoadable")}promiseOrThrow(){throw a(`Loadable expected promise, but in "${this.state}" state`)}errorMaybe(){throw a("BaseLoadable")}errorOrThrow(){throw a(`Loadable expected error, but in "${this.state}" state`)}is(e){return e.state===this.state&&e.contents===this.contents}map(e){throw a("BaseLoadable")}}class c extends l{constructor(e){super(),u(this,"state","hasValue"),u(this,"contents",void 0),this.contents=e}getValue(){return this.contents}toPromise(){return Promise.resolve(this.contents)}valueMaybe(){return this.contents}valueOrThrow(){return this.contents}promiseMaybe(){}errorMaybe(){}map(e){try{const t=e(this.contents);return i(t)?m(t):g(t)?t:p(t)}catch(t){return i(t)?m(t.next((()=>this.map(e)))):h(t)}}}class d extends l{constructor(e){super(),u(this,"state","hasError"),u(this,"contents",void 0),this.contents=e}getValue(){throw this.contents}toPromise(){return Promise.reject(this.contents)}valueMaybe(){}promiseMaybe(){}errorMaybe(){return this.contents}errorOrThrow(){return this.contents}map(e){return this}}class f extends l{constructor(e){super(),u(this,"state","loading"),u(this,"contents",void 0),this.contents=e}getValue(){throw this.contents}toPromise(){return this.contents}valueMaybe(){}promiseMaybe(){return this.contents}promiseOrThrow(){return this.contents}errorMaybe(){}map(e){return m(this.contents.then((t=>{const n=e(t);if(g(n)){const e=n;switch(e.state){case"hasValue":case"loading":return e.contents;case"hasError":throw e.contents}}return n})).catch((t=>{if(i(t))return t.then((()=>this.map(e).contents));throw t})))}}function p(e){return Object.freeze(new c(e))}function h(e){return Object.freeze(new d(e))}function m(e){return Object.freeze(new f(e))}function v(){return Object.freeze(new f(new Promise((()=>{}))))}function y(e){const t=function(e){return e.every((e=>"hasValue"===e.state))?p(e.map((e=>e.contents))):e.some((e=>"hasError"===e.state))?h(s(e.find((e=>"hasError"===e.state)),"Invalid loadable passed to loadableAll").contents):m(Promise.all(e.map((e=>e.contents))))}((Array.isArray(e)?e:Object.getOwnPropertyNames(e).map((t=>e[t]))).map((e=>g(e)?e:i(e)?m(e):p(e))));return Array.isArray(e)?t:t.map((t=>Object.getOwnPropertyNames(e).reduce(((e,n,r)=>({...e,[n]:t[r]})),{})))}function g(e){return e instanceof l}const _={of:e=>i(e)?m(e):g(e)?e:p(e),error:e=>h(e),loading:()=>v(),all:y,isLoadable:g};var S={loadableWithValue:p,loadableWithError:h,loadableWithPromise:m,loadableLoading:v,loadableAll:y,isLoadable:g,RecoilLoadable:_},b=S.loadableWithValue,E=S.loadableWithError,T=S.loadableWithPromise,R=S.loadableLoading,w=S.loadableAll,A=S.isLoadable,N=S.RecoilLoadable,k=Object.freeze({__proto__:null,loadableWithValue:b,loadableWithError:E,loadableWithPromise:T,loadableLoading:R,loadableAll:w,isLoadable:A,RecoilLoadable:N});const C={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(){var e;"undefined"!==typeof process&&null!=(null===(e=process)||void 0===e?void 0:e.env)&&(function(e,t){var n,r;const o=null===(n=process.env[e])||void 0===n||null===(r=n.toLowerCase())||void 0===r?void 0:r.trim();if(null==o||""===o)return;if(!["true","false"].includes(o))throw a(`process.env.${e} value must be 'true', 'false', or empty: ${o}`);t("true"===o)}("RECOIL_DUPLICATE_ATOM_KEY_CHECKING_ENABLED",(e=>{C.RECOIL_DUPLICATE_ATOM_KEY_CHECKING_ENABLED=e})),function(e,t){var n;const r=null===(n=process.env[e])||void 0===n?void 0:n.trim();null!=r&&""!==r&&t(r.split(/\s*,\s*|\s+/))}("RECOIL_GKS_ENABLED",(e=>{e.forEach((e=>{C.RECOIL_GKS_ENABLED.add(e)}))})))}();var L=C;function O(e){return L.RECOIL_GKS_ENABLED.has(e)}O.setPass=e=>{L.RECOIL_GKS_ENABLED.add(e)},O.setFail=e=>{L.RECOIL_GKS_ENABLED.delete(e)},O.clear=()=>{L.RECOIL_GKS_ENABLED.clear()};var x=O;var I,V,M,U=function(e,t,{error:n}={}){return null};const D=null!==(I=r.createMutableSource)&&void 0!==I?I:r.unstable_createMutableSource,P=null!==(V=r.useMutableSource)&&void 0!==V?V:r.unstable_useMutableSource,B=null!==(M=r.useSyncExternalStore)&&void 0!==M?M:r.unstable_useSyncExternalStore;let F=!1;var $={createMutableSource:D,useMutableSource:P,useSyncExternalStore:B,currentRendererSupportsUseSyncExternalStore:function(){var e;const{ReactCurrentDispatcher:t,ReactCurrentOwner:n}=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,o=null!=(null!==(e=null===t||void 0===t?void 0:t.current)&&void 0!==e?e:n.currentDispatcher).useSyncExternalStore;return!B||o||F||(F=!0,U("A React renderer without React 18+ API support is being used with React 18+.")),o},reactMode:function(){return x("recoil_transition_support")?{mode:"TRANSITION_SUPPORT",early:!0,concurrent:!0}:x("recoil_sync_external_store")&&null!=B?{mode:"SYNC_EXTERNAL_STORE",early:!0,concurrent:!1}:x("recoil_mutable_source")&&null!=P&&"undefined"!==typeof window&&!window.$disableRecoilValueMutableSource_TEMP_HACK_DO_NOT_USE?x("recoil_suppress_rerender_in_callback")?{mode:"MUTABLE_SOURCE",early:!0,concurrent:!0}:{mode:"MUTABLE_SOURCE",early:!1,concurrent:!1}:x("recoil_suppress_rerender_in_callback")?{mode:"LEGACY",early:!0,concurrent:!1}:{mode:"LEGACY",early:!1,concurrent:!1}},isFastRefreshEnabled:function(){return!1}};class j{constructor(e){u(this,"key",void 0),this.key=e}toJSON(){return{key:this.key}}}class z extends j{}class W extends j{}var q={AbstractRecoilValue:j,RecoilState:z,RecoilValueReadOnly:W,isRecoilValue:function(e){return e instanceof z||e instanceof W}},H=q.AbstractRecoilValue,G=q.RecoilState,K=q.RecoilValueReadOnly,J=q.isRecoilValue,Z=Object.freeze({__proto__:null,AbstractRecoilValue:H,RecoilState:G,RecoilValueReadOnly:K,isRecoilValue:J});var Y=function(e,...t){0};var Q=function(e,t){return function*(){let n=0;for(const r of e)yield t(r,n++)}()};const{isFastRefreshEnabled:X}=$;class ee{}const te=new ee,ne=new Map,re=new Map;class oe extends Error{}const ae=new Map;function ie(e){return ae.get(e)}var se={nodes:ne,recoilValues:re,registerNode:function(e){L.RECOIL_DUPLICATE_ATOM_KEY_CHECKING_ENABLED&&function(e){if(ne.has(e)){const t=`Duplicate atom key "${e}". This is a FATAL ERROR in\n production. But it is safe to ignore this warning if it occurred because of\n hot module replacement.`;console.warn(t)}}(e.key),ne.set(e.key,e);const t=null==e.set?new Z.RecoilValueReadOnly(e.key):new Z.RecoilState(e.key);return re.set(e.key,t),t},getNode:function(e){const t=ne.get(e);if(null==t)throw new oe(`Missing definition for RecoilValue: "${e}""`);return t},getNodeMaybe:function(e){return ne.get(e)},deleteNodeConfigIfPossible:function(e){var t;if(!x("recoil_memory_managament_2020"))return;const n=ne.get(e);var r;null!==n&&void 0!==n&&null!==(t=n.shouldDeleteConfigOnRelease)&&void 0!==t&&t.call(n)&&(ne.delete(e),null===(r=ie(e))||void 0===r||r(),ae.delete(e))},setConfigDeletionHandler:function(e,t){x("recoil_memory_managament_2020")&&(void 0===t?ae.delete(e):ae.set(e,t))},getConfigDeletionHandler:ie,recoilValuesForKeys:function(e){return Q(e,(e=>s(re.get(e))))},NodeMissingError:oe,DefaultValue:ee,DEFAULT_VALUE:te};var ue={enqueueExecution:function(e,t){t()}};var le,ce,de=(le=function(e){var t="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n={},r=Math.pow(2,5),o=r-1,a=r/2,i=r/4,s={},u=function(e){return function(){return e}},l=n.hash=function(e){var n="undefined"===typeof e?"undefined":t(e);if("number"===n)return e;"string"!==n&&(e+="");for(var r=0,o=0,a=e.length;o<a;++o)r=(r<<5)-r+e.charCodeAt(o)|0;return r},c=function(e,t){return t>>>e&o},d=function(e){return 1<<e},f=function(e,t){return n=e&t-1,n=(n=(858993459&(n-=n>>1&1431655765))+(n>>2&858993459))+(n>>4)&252645135,127&(n+=n>>8)+(n>>16);var n},p=function(e,t,n,r){var o=r;if(!e){var a=r.length;o=new Array(a);for(var i=0;i<a;++i)o[i]=r[i]}return o[t]=n,o},h=function(e,t,n){var r=n.length-1,o=0,a=0,i=n;if(e)o=a=t;else for(i=new Array(r);o<t;)i[a++]=n[o++];for(++o;o<=r;)i[a++]=n[o++];return e&&(i.length=r),i},m={__hamt_isEmpty:!0},v=function(e){return e===m||e&&e.__hamt_isEmpty},y=function(e,t,n,r){return{type:1,edit:e,hash:t,key:n,value:r,_modify:T}},g=function(e,t,n){return{type:2,edit:e,hash:t,children:n,_modify:R}},_=function(e,t,n){return{type:3,edit:e,mask:t,children:n,_modify:w}},S=function(e,t,n){return{type:4,edit:e,size:t,children:n,_modify:A}},b=function e(t,n,r,o,a,i){if(r===a)return g(t,r,[i,o]);var s=c(n,r),u=c(n,a);return _(t,d(s)|d(u),s===u?[e(t,n+5,r,o,a,i)]:s<u?[o,i]:[i,o])},E=function(e,t){return e===t.edit},T=function(e,t,n,r,o,a,i){if(t(a,this.key)){var u=r(this.value);return u===this.value?this:u===s?(--i.value,m):E(e,this)?(this.value=u,this):y(e,o,a,u)}var l=r();return l===s?this:(++i.value,b(e,n,this.hash,this,o,y(e,o,a,l)))},R=function(e,t,n,r,o,a,i){if(o===this.hash){var u=function(e,t,n,r,o,a,i,u){for(var l=o.length,c=0;c<l;++c){var d=o[c];if(n(i,d.key)){var f=d.value,m=a(f);return m===f?o:m===s?(--u.value,h(e,c,o)):p(e,c,y(t,r,i,m),o)}}var v=a();return v===s?o:(++u.value,p(e,l,y(t,r,i,v),o))}(E(e,this),e,t,this.hash,this.children,r,a,i);return u===this.children?this:u.length>1?g(e,this.hash,u):u[0]}var l=r();return l===s?this:(++i.value,b(e,n,this.hash,this,o,y(e,o,a,l)))},w=function(e,t,n,r,o,i,s){var u=this.mask,l=this.children,y=c(n,o),g=d(y),b=f(u,g),T=u&g,R=T?l[b]:m,w=R._modify(e,t,n+5,r,o,i,s);if(R===w)return this;var A,N=E(e,this),k=u,C=void 0;if(T&&v(w)){if(!(k&=~g))return m;if(l.length<=2&&((A=l[1^b])===m||1===A.type||2===A.type))return l[1^b];C=h(N,b,l)}else if(T||v(w))C=p(N,b,w,l);else{if(l.length>=a)return function(e,t,n,r,o){for(var a=[],i=r,s=0,u=0;i;++u)1&i&&(a[u]=o[s++]),i>>>=1;return a[t]=n,S(e,s+1,a)}(e,y,w,u,l);k|=g,C=function(e,t,n,r){var o=r.length;if(e){for(var a=o;a>=t;)r[a--]=r[a];return r[t]=n,r}for(var i=0,s=0,u=new Array(o+1);i<t;)u[s++]=r[i++];for(u[t]=n;i<o;)u[++s]=r[i++];return u}(N,b,w,l)}return N?(this.mask=k,this.children=C,this):_(e,k,C)},A=function(e,t,n,r,o,a,s){var u=this.size,l=this.children,d=c(n,o),f=l[d],h=(f||m)._modify(e,t,n+5,r,o,a,s);if(f===h)return this;var y=E(e,this),g=void 0;if(v(f)&&!v(h))++u,g=p(y,d,h,l);else if(!v(f)&&v(h)){if(--u<=i)return function(e,t,n,r){for(var o=new Array(t-1),a=0,i=0,s=0,u=r.length;s<u;++s)if(s!==n){var l=r[s];l&&!v(l)&&(o[a++]=l,i|=1<<s)}return _(e,i,o)}(e,u,d,l);g=p(y,d,m,l)}else g=p(y,d,h,l);return y?(this.size=u,this.children=g,this):S(e,u,g)};function N(e,t,n,r,o){this._editable=e,this._edit=t,this._config=n,this._root=r,this._size=o}m._modify=function(e,t,n,r,o,a,i){var u=r();return u===s?m:(++i.value,y(e,o,a,u))},N.prototype.setTree=function(e,t){return this._editable?(this._root=e,this._size=t,this):e===this._root?this:new N(this._editable,this._edit,this._config,e,t)};var k=n.tryGetHash=function(e,t,n,r){for(var o=r._root,a=0,i=r._config.keyEq;;)switch(o.type){case 1:return i(n,o.key)?o.value:e;case 2:if(t===o.hash)for(var s=o.children,u=0,l=s.length;u<l;++u){var p=s[u];if(i(n,p.key))return p.value}return e;case 3:var h=c(a,t),m=d(h);if(o.mask&m){o=o.children[f(o.mask,m)],a+=5;break}return e;case 4:if(o=o.children[c(a,t)]){a+=5;break}return e;default:return e}};N.prototype.tryGetHash=function(e,t,n){return k(e,t,n,this)};var C=n.tryGet=function(e,t,n){return k(e,n._config.hash(t),t,n)};N.prototype.tryGet=function(e,t){return C(e,t,this)};var L=n.getHash=function(e,t,n){return k(void 0,e,t,n)};N.prototype.getHash=function(e,t){return L(e,t,this)},n.get=function(e,t){return k(void 0,t._config.hash(e),e,t)},N.prototype.get=function(e,t){return C(t,e,this)};var O=n.has=function(e,t,n){return k(s,e,t,n)!==s};N.prototype.hasHash=function(e,t){return O(e,t,this)};var x=n.has=function(e,t){return O(t._config.hash(e),e,t)};N.prototype.has=function(e){return x(e,this)};var I=function(e,t){return e===t};n.make=function(e){return new N(0,0,{keyEq:e&&e.keyEq||I,hash:e&&e.hash||l},m,0)},n.empty=n.make();var V=n.isEmpty=function(e){return e&&!!v(e._root)};N.prototype.isEmpty=function(){return V(this)};var M=n.modifyHash=function(e,t,n,r){var o={value:r._size},a=r._root._modify(r._editable?r._edit:NaN,r._config.keyEq,0,e,t,n,o);return r.setTree(a,o.value)};N.prototype.modifyHash=function(e,t,n){return M(n,e,t,this)};var U=n.modify=function(e,t,n){return M(e,n._config.hash(t),t,n)};N.prototype.modify=function(e,t){return U(t,e,this)};var D=n.setHash=function(e,t,n,r){return M(u(n),e,t,r)};N.prototype.setHash=function(e,t,n){return D(e,t,n,this)};var P=n.set=function(e,t,n){return D(n._config.hash(e),e,t,n)};N.prototype.set=function(e,t){return P(e,t,this)};var B=u(s),F=n.removeHash=function(e,t,n){return M(B,e,t,n)};N.prototype.removeHash=N.prototype.deleteHash=function(e,t){return F(e,t,this)};var $=n.remove=function(e,t){return F(t._config.hash(e),e,t)};N.prototype.remove=N.prototype.delete=function(e){return $(e,this)};var j=n.beginMutation=function(e){return new N(e._editable+1,e._edit+1,e._config,e._root,e._size)};N.prototype.beginMutation=function(){return j(this)};var z=n.endMutation=function(e){return e._editable=e._editable&&e._editable-1,e};N.prototype.endMutation=function(){return z(this)};var W=n.mutate=function(e,t){var n=j(t);return e(n),z(n)};N.prototype.mutate=function(e){return W(e,this)};var q=function(e){return e&&H(e[0],e[1],e[2],e[3],e[4])},H=function(e,t,n,r,o){for(;n<e;){var a=t[n++];if(a&&!v(a))return G(a,r,[e,t,n,r,o])}return q(o)},G=function(e,t,n){switch(e.type){case 1:return{value:t(e),rest:n};case 2:case 4:case 3:var r=e.children;return H(r.length,r,0,t,n);default:return q(n)}},K={done:!0};function J(e){this.v=e}J.prototype.next=function(){if(!this.v)return K;var e=this.v;return this.v=q(e.rest),e},J.prototype[Symbol.iterator]=function(){return this};var Z=function(e,t){return new J(G(e._root,t))},Y=function(e){return[e.key,e.value]},Q=n.entries=function(e){return Z(e,Y)};N.prototype.entries=N.prototype[Symbol.iterator]=function(){return Q(this)};var X=function(e){return e.key},ee=n.keys=function(e){return Z(e,X)};N.prototype.keys=function(){return ee(this)};var te=function(e){return e.value},ne=n.values=N.prototype.values=function(e){return Z(e,te)};N.prototype.values=function(){return ne(this)};var re=n.fold=function(e,t,n){var r=n._root;if(1===r.type)return e(t,r.value,r.key);for(var o=[r.children],a=void 0;a=o.pop();)for(var i=0,s=a.length;i<s;){var u=a[i++];u&&u.type&&(1===u.type?t=e(t,u.value,u.key):o.push(u.children))}return t};N.prototype.fold=function(e,t){return re(e,t,this)};var oe=n.forEach=function(e,t){return re((function(n,r,o){return e(r,o,t)}),null,t)};N.prototype.forEach=function(e){return oe(e,this)};var ae=n.count=function(e){return e._size};N.prototype.count=function(){return ae(this)},Object.defineProperty(N.prototype,"size",{get:N.prototype.count}),e.exports?e.exports=n:(void 0).hamt=n},le(ce={exports:{}},ce.exports),ce.exports);class fe{constructor(e){u(this,"_map",void 0),this._map=new Map(null===e||void 0===e?void 0:e.entries())}keys(){return this._map.keys()}entries(){return this._map.entries()}get(e){return this._map.get(e)}has(e){return this._map.has(e)}set(e,t){return this._map.set(e,t),this}delete(e){return this._map.delete(e),this}clone(){return he(this)}toMap(){return new Map(this._map)}}class pe{constructor(e){if(u(this,"_hamt",de.empty.beginMutation()),e instanceof pe){const t=e._hamt.endMutation();e._hamt=t.beginMutation(),this._hamt=t.beginMutation()}else if(e)for(const[t,n]of e.entries())this._hamt.set(t,n)}keys(){return this._hamt.keys()}entries(){return this._hamt.entries()}get(e){return this._hamt.get(e)}has(e){return this._hamt.has(e)}set(e,t){return this._hamt.set(e,t),this}delete(e){return this._hamt.delete(e),this}clone(){return he(this)}toMap(){return new Map(this._hamt)}}function he(e){return x("recoil_hamt_2020")?new pe(e):new fe(e)}var me=he,ve=Object.freeze({__proto__:null,persistentMap:me});var ye=function(e,...t){const n=new Set;e:for(const r of e){for(const e of t)if(e.has(r))continue e;n.add(r)}return n};var ge=function(e,t){const n=new Map;return e.forEach(((e,r)=>{n.set(r,t(e,r))})),n};function _e(e,t,n,r){const{nodeDeps:o,nodeToNodeSubscriptions:a}=n,i=o.get(e);if(i&&r&&i!==r.nodeDeps.get(e))return;o.set(e,t);const u=null==i?t:ye(t,i);for(const l of u){a.has(l)||a.set(l,new Set);s(a.get(l)).add(e)}if(i){const n=ye(i,t);for(const t of n){if(!a.has(t))return;const n=s(a.get(t));n.delete(e),0===n.size&&a.delete(t)}}}var Se={cloneGraph:function(e){return{nodeDeps:ge(e.nodeDeps,(e=>new Set(e))),nodeToNodeSubscriptions:ge(e.nodeToNodeSubscriptions,(e=>new Set(e)))}},graph:function(){return{nodeDeps:new Map,nodeToNodeSubscriptions:new Map}},saveDepsToStore:function(e,t,n,r){var o,a,i,s;const u=n.getState();r!==u.currentTree.version&&r!==(null===(o=u.nextTree)||void 0===o?void 0:o.version)&&r!==(null===(a=u.previousTree)||void 0===a?void 0:a.version)&&U("Tried to save dependencies to a discarded tree");const l=n.getGraph(r);if(_e(e,t,l),r===(null===(i=u.previousTree)||void 0===i?void 0:i.version)){_e(e,t,n.getGraph(u.currentTree.version),l)}if(r===(null===(s=u.previousTree)||void 0===s?void 0:s.version)||r===u.currentTree.version){var c;const r=null===(c=u.nextTree)||void 0===c?void 0:c.version;if(void 0!==r){_e(e,t,n.getGraph(r),l)}}}};let be=0;let Ee=0;let Te=0;var Re={getNextTreeStateVersion:()=>be++,getNextStoreID:()=>Ee++,getNextComponentID:()=>Te++};const{persistentMap:we}=ve,{graph:Ae}=Se,{getNextTreeStateVersion:Ne}=Re;function ke(){const e=Ne();return{version:e,stateID:e,transactionMetadata:{},dirtyAtoms:new Set,atomValues:we(),nonvalidatedAtoms:we()}}var Ce={makeEmptyTreeState:ke,makeEmptyStoreState:function(){const e=ke();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,Ae()),retention:{referenceCounts:new Map,nodesRetainedByZone:new Map,retainablesToCheckForRelease:new Set},nodeCleanupFunctions:new Map}},getNextTreeStateVersion:Ne};class Le{}var Oe={RetentionZone:Le,retentionZone:function(){return new Le}};var xe={setByAddingToSet:function(e,t){const n=new Set(e);return n.add(t),n},setByDeletingFromSet:function(e,t){const n=new Set(e);return n.delete(t),n},mapBySettingInMap:function(e,t,n){const r=new Map(e);return r.set(t,n),r},mapByUpdatingInMap:function(e,t,n){const r=new Map(e);return r.set(t,n(r.get(t))),r},mapByDeletingFromMap:function(e,t){const n=new Map(e);return n.delete(t),n},mapByDeletingMultipleFromMap:function(e,t){const n=new Map(e);return t.forEach((e=>n.delete(e))),n}};var Ie=function*(e,t){let n=0;for(const r of e)t(r,n++)&&(yield r)};var Ve=function(e,t){return new Proxy(e,{get:(e,n)=>(!(n in e)&&n in t&&(e[n]=t[n]()),e[n]),ownKeys:e=>Object.keys(e)})};const{getNode:Me,getNodeMaybe:Ue,recoilValuesForKeys:De}=se,{RetentionZone:Pe}=Oe,{setByAddingToSet:Be}=xe,Fe=Object.freeze(new Set);class $e extends Error{}function je(e,t,n,r){const o=e.getState();if(o.nodeCleanupFunctions.has(n))return;const a=Me(n),i=function(e,t,n){if(!x("recoil_memory_managament_2020"))return()=>{};const{nodesRetainedByZone:r}=e.getState().retention;function o(e){let n=r.get(e);n||r.set(e,n=new Set),n.add(t)}if(n instanceof Pe)o(n);else if(Array.isArray(n))for(const a of n)o(a);return()=>{if(!x("recoil_memory_managament_2020"))return;const{retention:r}=e.getState();function o(e){const n=r.nodesRetainedByZone.get(e);null===n||void 0===n||n.delete(t),n&&0===n.size&&r.nodesRetainedByZone.delete(e)}if(n instanceof Pe)o(n);else if(Array.isArray(n))for(const e of n)o(e)}}(e,n,a.retainedBy),s=a.init(e,t,r);o.nodeCleanupFunctions.set(n,(()=>{s(),i()}))}function ze(e,t,n){return Me(n).peek(e,t)}function We(e,t,n){const r=new Set,o=Array.from(n),a=e.getGraph(t.version);for(let s=o.pop();s;s=o.pop()){var i;r.add(s);const e=null!==(i=a.nodeToNodeSubscriptions.get(s))&&void 0!==i?i:Fe;for(const t of e)r.has(t)||o.push(t)}return r}var qe={getNodeLoadable:function(e,t,n){return je(e,t,n,"get"),Me(n).get(e,t)},peekNodeLoadable:ze,setNodeValue:function(e,t,n,r){const o=Me(n);if(null==o.set)throw new $e(`Attempt to set read-only RecoilValue: ${n}`);const a=o.set;return je(e,t,n,"set"),a(e,t,r)},initializeNode:function(e,t,n){je(e,e.getState().currentTree,t,n)},cleanUpNode:function(e,t){var n;const r=e.getState();null===(n=r.nodeCleanupFunctions.get(t))||void 0===n||n(),r.nodeCleanupFunctions.delete(t)},setUnvalidatedAtomValue_DEPRECATED:function(e,t,n){var r;const o=Ue(t);return null===o||void 0===o||null===(r=o.invalidate)||void 0===r||r.call(o,e),{...e,atomValues:e.atomValues.clone().delete(t),nonvalidatedAtoms:e.nonvalidatedAtoms.clone().set(t,n),dirtyAtoms:Be(e.dirtyAtoms,t)}},peekNodeInfo:function(e,t,n){const r=e.getState(),o=e.getGraph(t.version),a=Me(n).nodeType;return Ve({type:a},{loadable:()=>ze(e,t,n),isActive:()=>r.knownAtoms.has(n)||r.knownSelectors.has(n),isSet:()=>"selector"!==a&&t.atomValues.has(n),isModified:()=>t.dirtyAtoms.has(n),deps:()=>{var e;return De(null!==(e=o.nodeDeps.get(n))&&void 0!==e?e:[])},subscribers:()=>{var o,a;return{nodes:De(Ie(We(e,t,new Set([n])),(e=>e!==n))),components:Q(null!==(o=null===(a=r.nodeToComponentSubscriptions.get(n))||void 0===a?void 0:a.values())&&void 0!==o?o:[],(([e])=>({name:e})))}}})},getDownstreamNodes:We};let He=null;var Ge={setInvalidateMemoizedSnapshot:function(e){He=e},invalidateMemoizedSnapshot:function(){var e;null===(e=He)||void 0===e||e()}};const{getDownstreamNodes:Ke,getNodeLoadable:Je,setNodeValue:Ze}=qe,{getNextComponentID:Ye}=Re,{getNode:Qe,getNodeMaybe:Xe}=se,{DefaultValue:et}=se,{reactMode:tt}=$,{AbstractRecoilValue:nt,RecoilState:rt,RecoilValueReadOnly:ot,isRecoilValue:at}=Z,{invalidateMemoizedSnapshot:it}=Ge;function st(e,t,n){if("set"===n.type){const{recoilValue:r,valueOrUpdater:o}=n,i=function(e,t,{key:n},r){if("function"===typeof r){const o=Je(e,t,n);if("loading"===o.state){const e=`Tried to set atom or selector "${n}" using an updater function while the current state is pending, this is not currently supported.`;throw U(e),a(e)}if("hasError"===o.state)throw o.contents;return r(o.contents)}return r}(e,t,r,o),s=Ze(e,t,r.key,i);for(const[e,n]of s.entries())ut(t,e,n)}else if("setLoadable"===n.type){const{recoilValue:{key:e},loadable:r}=n;ut(t,e,r)}else if("markModified"===n.type){const{recoilValue:{key:e}}=n;t.dirtyAtoms.add(e)}else if("setUnvalidated"===n.type){var r;const{recoilValue:{key:e},unvalidatedValue:o}=n,a=Xe(e);null===a||void 0===a||null===(r=a.invalidate)||void 0===r||r.call(a,t),t.atomValues.delete(e),t.nonvalidatedAtoms.set(e,o),t.dirtyAtoms.add(e)}else U(`Unknown action ${n.type}`)}function ut(e,t,n){"hasValue"===n.state&&n.contents instanceof et?e.atomValues.delete(t):e.atomValues.set(t,n),e.dirtyAtoms.add(t),e.nonvalidatedAtoms.delete(t)}function lt(e,t){e.replaceState((n=>{const r=ft(n);for(const o of t)st(e,r,o);return pt(e,r),it(),r}))}function ct(e,t){if(dt.length){const n=dt[dt.length-1];let r=n.get(e);r||n.set(e,r=[]),r.push(t)}else lt(e,[t])}const dt=[];function ft(e){return{...e,atomValues:e.atomValues.clone(),nonvalidatedAtoms:e.nonvalidatedAtoms.clone(),dirtyAtoms:new Set(e.dirtyAtoms)}}function pt(e,t){const n=Ke(e,t,t.dirtyAtoms);for(const a of n){var r,o;null===(r=Xe(a))||void 0===r||null===(o=r.invalidate)||void 0===o||o.call(r,t)}}function ht(e,t,n){ct(e,{type:"set",recoilValue:t,valueOrUpdater:n})}var mt={RecoilValueReadOnly:ot,AbstractRecoilValue:nt,RecoilState:rt,getRecoilValueAsLoadable:function(e,{key:t},n=e.getState().currentTree){var r,o;const a=e.getState();n.version!==a.currentTree.version&&n.version!==(null===(r=a.nextTree)||void 0===r?void 0:r.version)&&n.version!==(null===(o=a.previousTree)||void 0===o?void 0:o.version)&&U("Tried to read from a discarded tree");const i=Je(e,n,t);return"loading"===i.state&&i.contents.catch((()=>{})),i},setRecoilValue:ht,setRecoilValueLoadable:function(e,t,n){if(n instanceof et)return ht(e,t,n);ct(e,{type:"setLoadable",recoilValue:t,loadable:n})},markRecoilValueModified:function(e,t){ct(e,{type:"markModified",recoilValue:t})},setUnvalidatedRecoilValue:function(e,t,n){ct(e,{type:"setUnvalidated",recoilValue:t,unvalidatedValue:n})},subscribeToRecoilValue:function(e,{key:t},n,r=null){const o=Ye(),a=e.getState();a.nodeToComponentSubscriptions.has(t)||a.nodeToComponentSubscriptions.set(t,new Map),s(a.nodeToComponentSubscriptions.get(t)).set(o,[null!==r&&void 0!==r?r:"<not captured>",n]);const i=tt();if(i.early&&("LEGACY"===i.mode||"MUTABLE_SOURCE"===i.mode)){const r=e.getState().nextTree;r&&r.dirtyAtoms.has(t)&&n(r)}return{release:()=>{const n=e.getState(),r=n.nodeToComponentSubscriptions.get(t);void 0!==r&&r.has(o)?(r.delete(o),0===r.size&&n.nodeToComponentSubscriptions.delete(t)):U(`Subscription missing at release time for atom ${t}. This is a bug in Recoil.`)}}},isRecoilValue:at,applyAtomValueWrites:function(e,t){const n=e.clone();return t.forEach(((e,t)=>{"hasValue"===e.state&&e.contents instanceof et?n.delete(t):n.set(t,e)})),n},batchStart:function(){const e=new Map;return dt.push(e),()=>{for(const[t,n]of e)lt(t,n);dt.pop()!==e&&U("Incorrect order of batch popping")}},writeLoadableToTreeState:ut,invalidateDownstreams:pt,copyTreeState:ft,refreshRecoilValue:function(e,t){var n;const{currentTree:r}=e.getState(),o=Qe(t.key);null===(n=o.clearCache)||void 0===n||n.call(o,e,r)}};var vt=function(e,t,n){const r=e.entries();let o=r.next();for(;!o.done;){const a=o.value;if(t.call(n,a[1],a[0],e))return!0;o=r.next()}return!1};const{cleanUpNode:yt}=qe,{deleteNodeConfigIfPossible:gt,getNode:_t}=se,{RetentionZone:St}=Oe,bt=new Set;function Et(e,t){const n=e.getState(),r=n.currentTree;if(n.nextTree)return void U("releaseNodesNowOnCurrentTree should only be called at the end of a batch");const o=new Set;for(const i of t)if(i instanceof St)for(const e of Rt(n,i))o.add(e);else o.add(i);const a=function(e,t){const n=e.getState(),r=n.currentTree,o=e.getGraph(r.version),a=new Set,i=new Set;return u(t),a;function u(t){const l=new Set,c=function(e,t,n,r,o){const a=e.getGraph(t.version),i=[],u=new Set;for(;n.size>0;)l(s(n.values().next().value));return i;function l(e){if(r.has(e)||o.has(e))return void n.delete(e);if(u.has(e))return;const t=a.nodeToNodeSubscriptions.get(e);if(t)for(const n of t)l(n);u.add(e),n.delete(e),i.push(e)}}(e,r,t,a,i);for(const e of c){var d;if("recoilRoot"===_t(e).retainedBy){i.add(e);continue}if((null!==(d=n.retention.referenceCounts.get(e))&&void 0!==d?d:0)>0){i.add(e);continue}if(wt(e).some((e=>n.retention.referenceCounts.get(e)))){i.add(e);continue}const t=o.nodeToNodeSubscriptions.get(e);t&&vt(t,(e=>i.has(e)))?i.add(e):(a.add(e),l.add(e))}const f=new Set;for(const e of l)for(const t of null!==(p=o.nodeDeps.get(e))&&void 0!==p?p:bt){var p;a.has(t)||f.add(t)}f.size&&u(f)}}(e,o);for(const i of a)Tt(e,r,i)}function Tt(e,t,n){if(!x("recoil_memory_managament_2020"))return;yt(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=wt(n);for(const u of o){var a;null===(a=r.retention.nodesRetainedByZone.get(u))||void 0===a||a.delete(n)}t.atomValues.delete(n),t.dirtyAtoms.delete(n),t.nonvalidatedAtoms.delete(n);const i=r.graphsByVersion.get(t.version);if(i){const e=i.nodeDeps.get(n);if(void 0!==e){i.nodeDeps.delete(n);for(const t of e){var s;null===(s=i.nodeToNodeSubscriptions.get(t))||void 0===s||s.delete(n)}}i.nodeToNodeSubscriptions.delete(n)}gt(n)}function Rt(e,t){var n;return null!==(n=e.retention.nodesRetainedByZone.get(t))&&void 0!==n?n:bt}function wt(e){const t=_t(e).retainedBy;return void 0===t||"components"===t||"recoilRoot"===t?[]:t instanceof St?[t]:t}function At(e,t){if(!x("recoil_memory_managament_2020"))return;e.getState().retention.referenceCounts.delete(t),function(e,t){const n=e.getState();n.nextTree?n.retention.retainablesToCheckForRelease.add(t):Et(e,new Set([t]))}(e,t)}var Nt={SUSPENSE_TIMEOUT_MS:12e4,updateRetainCount:function(e,t,n){var r;if(!x("recoil_memory_managament_2020"))return;const o=e.getState().retention.referenceCounts,a=(null!==(r=o.get(t))&&void 0!==r?r:0)+n;0===a?At(e,t):o.set(t,a)},updateRetainCountToZero:At,releaseScheduledRetainablesNow:function(e){if(!x("recoil_memory_managament_2020"))return;const t=e.getState();Et(e,t.retention.retainablesToCheckForRelease),t.retention.retainablesToCheckForRelease.clear()},retainedByOptionWithDefault:function(e){return void 0===e?"recoilRoot":e}};const{unstable_batchedUpdates:kt}=o;var Ct={unstable_batchedUpdates:kt};const{unstable_batchedUpdates:Lt}=Ct;var Ot={unstable_batchedUpdates:Lt};const{batchStart:xt}=mt,{unstable_batchedUpdates:It}=Ot;let Vt=It||(e=>e());var Mt={getBatcher:()=>Vt,setBatcher:e=>{Vt=e},batchUpdates:e=>{Vt((()=>{let t=()=>{};try{t=xt(),e()}finally{t()}}))}};var Ut=function*(e){for(const t of e)for(const e of t)yield e};const Dt="undefined"===typeof Window||"undefined"===typeof window,Pt="undefined"!==typeof navigator&&"ReactNative"===navigator.product;var Bt={isSSR:Dt,isReactNative:Pt,isWindow:e=>!Dt&&(e===window||e instanceof Window)};var Ft={memoizeWithArgsHash:function(e,t){let n;return(...r)=>{n||(n={});const o=t(...r);return Object.hasOwnProperty.call(n,o)||(n[o]=e(...r)),n[o]}},memoizeOneWithArgsHash:function(e,t){let n,r;return(...o)=>{const a=t(...o);return n===a||(n=a,r=e(...o)),r}},memoizeOneWithArgsHashAndInvalidation:function(e,t){let n,r;return[(...o)=>{const a=t(...o);return n===a||(n=a,r=e(...o)),r},()=>{n=null}]}};const{batchUpdates:$t}=Mt,{initializeNode:jt,peekNodeInfo:zt}=qe,{graph:Wt}=Se,{getNextStoreID:qt}=Re,{DEFAULT_VALUE:Ht,recoilValues:Gt,recoilValuesForKeys:Kt}=se,{AbstractRecoilValue:Jt,getRecoilValueAsLoadable:Zt,setRecoilValue:Yt,setUnvalidatedRecoilValue:Qt}=mt,{updateRetainCount:Xt}=Nt,{setInvalidateMemoizedSnapshot:en}=Ge,{getNextTreeStateVersion:tn,makeEmptyStoreState:nn}=Ce,{isSSR:rn}=Bt,{memoizeOneWithArgsHashAndInvalidation:on}=Ft;class an{constructor(e,t){u(this,"_store",void 0),u(this,"_refCount",1),u(this,"getLoadable",(e=>(this.checkRefCount_INTERNAL(),Zt(this._store,e)))),u(this,"getPromise",(e=>(this.checkRefCount_INTERNAL(),this.getLoadable(e).toPromise()))),u(this,"getNodes_UNSTABLE",(e=>{if(this.checkRefCount_INTERNAL(),!0===(null===e||void 0===e?void 0:e.isModified)){if(!1===(null===e||void 0===e?void 0:e.isInitialized))return[];const t=this._store.getState().currentTree;return Kt(t.dirtyAtoms)}const t=this._store.getState().knownAtoms,n=this._store.getState().knownSelectors;return null==(null===e||void 0===e?void 0:e.isInitialized)?Gt.values():!0===e.isInitialized?Kt(Ut([t,n])):Ie(Gt.values(),(({key:e})=>!t.has(e)&&!n.has(e)))})),u(this,"getInfo_UNSTABLE",(({key:e})=>(this.checkRefCount_INTERNAL(),zt(this._store,this._store.getState().currentTree,e)))),u(this,"map",(e=>{this.checkRefCount_INTERNAL();const t=new cn(this,$t);return e(t),t})),u(this,"asyncMap",(async e=>{this.checkRefCount_INTERNAL();const t=new cn(this,$t);return t.retain(),await e(t),t.autoRelease_INTERNAL(),t})),this._store={storeID:qt(),parentStoreID:t,getState:()=>e,replaceState:t=>{e.currentTree=t(e.currentTree)},getGraph:t=>{const n=e.graphsByVersion;if(n.has(t))return s(n.get(t));const r=Wt();return n.set(t,r),r},subscribeToTransactions:()=>({release:()=>{}}),addTransactionMetadata:()=>{throw a("Cannot subscribe to Snapshots")}};for(const n of this._store.getState().knownAtoms)jt(this._store,n,"get"),Xt(this._store,n,1);this.autoRelease_INTERNAL()}retain(){this._refCount<=0&&U("Attempt to retain() Snapshot that was already released."),this._refCount++;let e=!1;return()=>{e||(e=!0,this._release())}}autoRelease_INTERNAL(){rn||window.setTimeout((()=>this._release()),10)}_release(){if(this._refCount--,0===this._refCount){if(this._store.getState().nodeCleanupFunctions.forEach((e=>e())),this._store.getState().nodeCleanupFunctions.clear(),!x("recoil_memory_managament_2020"))return}else this._refCount}isRetained(){return this._refCount>0}checkRefCount_INTERNAL(){x("recoil_memory_managament_2020")&&this._refCount}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 sn(e,t,n=!1){const r=e.getState(),o=n?tn():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(Q(r.nodeCleanupFunctions.entries(),(([e])=>[e,()=>{}])))}}const[un,ln]=on(((e,t)=>{var n;const r=e.getState(),o="latest"===t?null!==(n=r.nextTree)&&void 0!==n?n:r.currentTree:s(r.previousTree);return new an(sn(e,o),e.storeID)}),((e,t)=>{var n,r;return String(t)+String(e.storeID)+String(null===(n=e.getState().nextTree)||void 0===n?void 0:n.version)+String(e.getState().currentTree.version)+String(null===(r=e.getState().previousTree)||void 0===r?void 0:r.version)}));en(ln);class cn extends an{constructor(e,t){super(sn(e.getStore_INTERNAL(),e.getStore_INTERNAL().getState().currentTree,!0),e.getStoreID()),u(this,"_batch",void 0),u(this,"set",((e,t)=>{this.checkRefCount_INTERNAL();const n=this.getStore_INTERNAL();this._batch((()=>{Xt(n,e.key,1),Yt(this.getStore_INTERNAL(),e,t)}))})),u(this,"reset",(e=>{this.checkRefCount_INTERNAL();const t=this.getStore_INTERNAL();this._batch((()=>{Xt(t,e.key,1),Yt(this.getStore_INTERNAL(),e,Ht)}))})),u(this,"setUnvalidatedAtomValues_DEPRECATED",(e=>{this.checkRefCount_INTERNAL();const t=this.getStore_INTERNAL();$t((()=>{for(const[n,r]of e.entries())Xt(t,n,1),Qt(t,new Jt(n),r)}))})),this._batch=t}}var dn={Snapshot:an,MutableSnapshot:cn,freshSnapshot:function(e){const t=new an(nn());return null!=e?t.map(e):t},cloneSnapshot:function(e,t="latest"){const n=un(e,t);return n.isRetained()?n:(ln(),un(e,t))}},fn=dn.Snapshot,pn=dn.MutableSnapshot,hn=dn.freshSnapshot,mn=dn.cloneSnapshot,vn=Object.freeze({__proto__:null,Snapshot:fn,MutableSnapshot:pn,freshSnapshot:hn,cloneSnapshot:mn});var yn=function(...e){const t=new Set;for(const n of e)for(const e of n)t.add(e);return t};const{useRef:gn}=r;var _n=function(e){const t=gn(e);return t.current===e&&"function"===typeof e&&(t.current=e()),t};const{getNextTreeStateVersion:Sn,makeEmptyStoreState:bn}=Ce,{cleanUpNode:En,getDownstreamNodes:Tn,initializeNode:Rn,setNodeValue:wn,setUnvalidatedAtomValue_DEPRECATED:An}=qe,{graph:Nn}=Se,{cloneGraph:kn}=Se,{getNextStoreID:Cn}=Re,{createMutableSource:Ln,reactMode:On}=$,{applyAtomValueWrites:xn}=mt,{releaseScheduledRetainablesNow:In}=Nt,{freshSnapshot:Vn}=vn,{useCallback:Mn,useContext:Un,useEffect:Dn,useMemo:Pn,useRef:Bn,useState:Fn}=r;function $n(){throw a("This component must be used inside a <RecoilRoot> component.")}const jn=Object.freeze({storeID:Cn(),getState:$n,replaceState:$n,getGraph:$n,subscribeToTransactions:$n,addTransactionMetadata:$n});let zn=!1;function Wn(e){if(zn)throw a("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(null===t.nextTree){x("recoil_memory_managament_2020")&&x("recoil_release_on_cascading_update_killswitch_2021")&&t.commitDepth>0&&In(e);const n=t.currentTree.version,r=Sn();t.nextTree={...t.currentTree,version:r,stateID:r,dirtyAtoms:new Set,transactionMetadata:{}},t.graphsByVersion.set(r,kn(s(t.graphsByVersion.get(n))))}}const qn=r.createContext({current:jn}),Hn=()=>Un(qn),Gn=r.createContext(null);function Kn(e,t,n){const r=Tn(e,n,n.dirtyAtoms);for(const o of r){const e=t.nodeToComponentSubscriptions.get(o);if(e)for(const[t,[r,o]]of e)o(n)}}function Jn(e){const t=e.getState(),n=t.currentTree,r=n.dirtyAtoms;if(r.size){for(const[n,o]of t.nodeTransactionSubscriptions)if(r.has(n))for(const[t,r]of o)r(e);for(const[n,r]of t.transactionSubscriptions)r(e);(!On().early||t.suspendedComponentResolvers.size>0)&&(Kn(e,t,n),t.suspendedComponentResolvers.forEach((e=>e())),t.suspendedComponentResolvers.clear())}t.queuedComponentCallbacks_DEPRECATED.forEach((e=>e(n))),t.queuedComponentCallbacks_DEPRECATED.splice(0,t.queuedComponentCallbacks_DEPRECATED.length)}function Zn({setNotifyBatcherOfChange:e}){const t=Hn(),[,n]=Fn([]);return e((()=>n({}))),Dn((()=>(e((()=>n({}))),()=>{e((()=>{}))})),[e]),Dn((()=>{ue.enqueueExecution("Batcher",(()=>{!function(e){const t=e.getState();t.commitDepth++;try{const{nextTree:n}=t;if(null==n)return;t.previousTree=t.currentTree,t.currentTree=n,t.nextTree=null,Jn(e),null!=t.previousTree?t.graphsByVersion.delete(t.previousTree.version):U("Ended batch with no previous state, which is unexpected","recoil"),t.previousTree=null,x("recoil_memory_managament_2020")&&null==n&&In(e)}finally{t.commitDepth--}}(t.current)}))})),null}let Yn=0;function Qn({initializeState_DEPRECATED:e,initializeState:t,store_INTERNAL:n,children:o}){let a;const i=e=>{const t=a.current.graphsByVersion;if(t.has(e))return s(t.get(e));const n=Nn();return t.set(e,n),n},u=(e,t)=>{if(null==t){const{transactionSubscriptions:t}=p.current.getState(),n=Yn++;return t.set(n,e),{release:()=>{t.delete(n)}}}{const{nodeTransactionSubscriptions:n}=p.current.getState();n.has(t)||n.set(t,new Map);const r=Yn++;return s(n.get(t)).set(r,e),{release:()=>{const e=n.get(t);e&&(e.delete(r),0===e.size&&n.delete(t))}}}},l=e=>{Wn(p.current);for(const t of Object.keys(e))s(p.current.getState().nextTree).transactionMetadata[t]=e[t]},c=e=>{Wn(p.current);const t=s(a.current.nextTree);let n;try{zn=!0,n=e(t)}finally{zn=!1}n!==t&&(a.current.nextTree=n,On().early&&Kn(p.current,a.current,n),s(d.current)())},d=Bn(null),f=Mn((e=>{d.current=e}),[d]),p=_n((()=>null!==n&&void 0!==n?n:{storeID:Cn(),getState:()=>a.current,replaceState:c,getGraph:i,subscribeToTransactions:u,addTransactionMetadata:l}));null!=n&&(p.current=n),a=_n((()=>null!=e?function(e,t){const n=bn();return t({set:(t,r)=>{const o=n.currentTree,a=wn(e,o,t.key,r),i=new Set(a.keys()),s=o.nonvalidatedAtoms.clone();for(const e of i)s.delete(e);n.currentTree={...o,dirtyAtoms:yn(o.dirtyAtoms,i),atomValues:xn(o.atomValues,a),nonvalidatedAtoms:s}},setUnvalidatedAtomValues:e=>{e.forEach(((e,t)=>{n.currentTree=An(n.currentTree,t,e)}))}}),n}(p.current,e):null!=t?function(e){const t=Vn(e),n=t.getStore_INTERNAL().getState();return t.retain(),n.nodeCleanupFunctions.forEach((e=>e())),n.nodeCleanupFunctions.clear(),n}(t):bn()));const h=Pn((()=>null===Ln||void 0===Ln?void 0:Ln(a,(()=>a.current.currentTree.version))),[a]);return Dn((()=>{const e=p.current;for(const t of new Set(e.getState().knownAtoms))Rn(e,t,"get");return()=>{for(const t of e.getState().knownAtoms)En(e,t)}}),[p]),r.createElement(qn.Provider,{value:p},r.createElement(Gn.Provider,{value:h},r.createElement(Zn,{setNotifyBatcherOfChange:f}),o))}var Xn={RecoilRoot:function(e){const{override:t,...n}=e,o=Hn();return!1===t&&o.current!==jn?e.children:r.createElement(Qn,n)},useStoreRef:Hn,useRecoilMutableSource:function(){const e=Un(Gn);return null==e&&Y("Attempted to use a Recoil hook outside of a <RecoilRoot>. <RecoilRoot> must be an ancestor of any component that uses Recoil hooks."),e},useRecoilStoreID:function(){return Hn().current.storeID},notifyComponents_FOR_TESTING:Kn,sendEndOfBatchNotifications_FOR_TESTING:Jn};var er=function(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};const{useEffect:tr,useRef:nr}=r;var rr=function(e){const t=nr();return tr((()=>{t.current=e})),t.current};const{useStoreRef:or}=Xn,{SUSPENSE_TIMEOUT_MS:ar}=Nt,{updateRetainCount:ir}=Nt,{RetentionZone:sr}=Oe,{useEffect:ur,useRef:lr}=r,{isSSR:cr}=Bt;var dr=function(e){if(x("recoil_memory_managament_2020"))return function(e){const t=Array.isArray(e)?e:[e],n=t.map((e=>e instanceof sr?e:e.key)),r=or();ur((()=>{if(!x("recoil_memory_managament_2020"))return;const e=r.current;if(o.current&&!cr)window.clearTimeout(o.current),o.current=null;else for(const t of n)ir(e,t,1);return()=>{for(const t of n)ir(e,t,-1)}}),[r,...n]);const o=lr(),a=rr(n);if(!cr&&(void 0===a||!er(a,n))){const e=r.current;for(const t of n)ir(e,t,1);if(a)for(const t of a)ir(e,t,-1);o.current&&window.clearTimeout(o.current),o.current=window.setTimeout((()=>{o.current=null;for(const t of n)ir(e,t,-1)}),ar)}}(e)};var fr=function(){return"<component name not available>"};const{batchUpdates:pr}=Mt,{DEFAULT_VALUE:hr}=se,{currentRendererSupportsUseSyncExternalStore:mr,reactMode:vr,useMutableSource:yr,useSyncExternalStore:gr}=$,{useRecoilMutableSource:_r,useStoreRef:Sr}=Xn,{isRecoilValue:br}=Z,{AbstractRecoilValue:Er,getRecoilValueAsLoadable:Tr,setRecoilValue:Rr,setUnvalidatedRecoilValue:wr,subscribeToRecoilValue:Ar}=mt,{useCallback:Nr,useEffect:kr,useMemo:Cr,useRef:Lr,useState:Or}=r,{setByAddingToSet:xr}=xe,{isSSR:Ir}=Bt;function Vr(e,t,n){if("hasValue"===e.state)return e.contents;if("loading"===e.state){throw new Promise((t=>{const r=n.current.getState().suspendedComponentResolvers;r.add(t),Ir&&i(e.contents)&&e.contents.finally((()=>{r.delete(t)}))}))}throw"hasError"===e.state?e.contents:a(`Invalid value of loadable atom "${t.key}"`)}function Mr(e){const t=Sr(),n=fr(),r=Nr((()=>{var n;const r=t.current,o=r.getState(),a=vr().early&&null!==(n=o.nextTree)&&void 0!==n?n:o.currentTree;return{loadable:Tr(r,e,a),key:e.key}}),[t,e]),o=Nr((e=>{let t;return()=>{var n,r;const o=e();return null!==(n=t)&&void 0!==n&&n.loadable.is(o.loadable)&&(null===(r=t)||void 0===r?void 0:r.key)===o.key?t:(t=o,o)}}),[]),a=Cr((()=>o(r)),[r,o]),i=Nr((r=>{const o=t.current;return Ar(o,e,r,n).release}),[t,e,n]);return gr(i,a,a).loadable}function Ur(e){const t=Sr(),n=Nr((()=>{var n;const r=t.current,o=r.getState(),a=vr().early&&null!==(n=o.nextTree)&&void 0!==n?n:o.currentTree;return Tr(r,e,a)}),[t,e]),r=Nr((()=>n()),[n]),o=fr(),i=Nr(((r,a)=>{const i=t.current;return Ar(i,e,(()=>{if(!x("recoil_suppress_rerender_in_callback"))return a();const e=n();l.current.is(e)||a(),l.current=e}),o).release}),[t,e,o,n]),s=_r();if(null==s)throw a("Recoil hooks must be used in components contained within a <RecoilRoot> component.");const u=yr(s,r,i),l=Lr(u);return kr((()=>{l.current=u})),u}function Dr(e){const t=Sr(),n=fr(),r=Nr((()=>{var n;const r=t.current,o=r.getState(),a=vr().early&&null!==(n=o.nextTree)&&void 0!==n?n:o.currentTree;return Tr(r,e,a)}),[t,e]),o=Nr((()=>({loadable:r(),key:e.key})),[r,e.key]),a=Nr((e=>{const t=o();return e.loadable.is(t.loadable)&&e.key===t.key?e:t}),[o]);kr((()=>{const r=Ar(t.current,e,(e=>{s(a)}),n);return s(a),r.release}),[n,e,t,a]);const[i,s]=Or(o);return i.key!==e.key?o().loadable:i.loadable}function Pr(e){const t=Sr(),[,n]=Or([]),r=fr(),o=Nr((()=>{var n;const r=t.current,o=r.getState(),a=vr().early&&null!==(n=o.nextTree)&&void 0!==n?n:o.currentTree;return Tr(r,e,a)}),[t,e]),a=o(),i=Lr(a);return kr((()=>{i.current=a})),kr((()=>{const a=t.current,s=a.getState(),u=Ar(a,e,(e=>{var t;if(!x("recoil_suppress_rerender_in_callback"))return n([]);const r=o();null!==(t=i.current)&&void 0!==t&&t.is(r)||n(r),i.current=r}),r);if(s.nextTree)a.getState().queuedComponentCallbacks_DEPRECATED.push((()=>{i.current=null,n([])}));else{var l;if(!x("recoil_suppress_rerender_in_callback"))return n([]);const e=o();null!==(l=i.current)&&void 0!==l&&l.is(e)||n(e),i.current=e}return u.release}),[r,o,e,t]),a}function Br(e){return x("recoil_memory_managament_2020")&&dr(e),{TRANSITION_SUPPORT:Dr,SYNC_EXTERNAL_STORE:mr()?Mr:Dr,MUTABLE_SOURCE:Ur,LEGACY:Pr}[vr().mode](e)}function Fr(e){const t=Sr();return Vr(Br(e),e,t)}function $r(e){const t=Sr();return Nr((n=>{Rr(t.current,e,n)}),[t,e])}function jr(e){return x("recoil_memory_managament_2020")&&dr(e),Dr(e)}function zr(e){const t=Sr();return Vr(jr(e),e,t)}var Wr={recoilComponentGetRecoilValueCount_FOR_TESTING:{current:0},useRecoilInterface:function(){const e=fr(),t=Sr(),[,n]=Or([]),r=Lr(new Set);r.current=new Set;const o=Lr(new Set),a=Lr(new Map),i=Nr((e=>{const t=a.current.get(e);t&&(t.release(),a.current.delete(e))}),[a]),s=Nr(((e,t)=>{a.current.has(t)&&n([])}),[]);return kr((()=>{const n=t.current;ye(r.current,o.current).forEach((t=>{if(a.current.has(t))return void Y(`Double subscription to RecoilValue "${t}"`);const r=Ar(n,new Er(t),(e=>s(e,t)),e);a.current.set(t,r);n.getState().nextTree?n.getState().queuedComponentCallbacks_DEPRECATED.push((()=>{s(n.getState(),t)})):s(n.getState(),t)})),ye(o.current,r.current).forEach((e=>{i(e)})),o.current=r.current})),kr((()=>{const n=a.current;return ye(r.current,new Set(n.keys())).forEach((r=>{const o=Ar(t.current,new Er(r),(e=>s(e,r)),e);n.set(r,o)})),()=>n.forEach(((e,t)=>i(t)))}),[e,t,i,s]),Cr((()=>{function e(e){return n=>{Rr(t.current,e,n)}}function n(e){var n;r.current.has(e.key)||(r.current=xr(r.current,e.key));const o=t.current.getState();return Tr(t.current,e,vr().early&&null!==(n=o.nextTree)&&void 0!==n?n:o.currentTree)}function o(e){return Vr(n(e),e,t)}return{getRecoilValue:o,getRecoilValueLoadable:n,getRecoilState:function(t){return[o(t),e(t)]},getRecoilStateLoadable:function(t){return[n(t),e(t)]},getSetRecoilState:e,getResetRecoilState:function(e){return()=>Rr(t.current,e,hr)}}}),[r,t])},useRecoilState:function(e){return[Fr(e),$r(e)]},useRecoilStateLoadable:function(e){return[Br(e),$r(e)]},useRecoilValue:Fr,useRecoilValueLoadable:Br,useResetRecoilState:function(e){const t=Sr();return Nr((()=>{Rr(t.current,e,hr)}),[t,e])},useSetRecoilState:$r,useSetUnvalidatedAtomValues:function(){const e=Sr();return(t,n={})=>{pr((()=>{e.current.addTransactionMetadata(n),t.forEach(((t,n)=>wr(e.current,new Er(n),t)))}))}},useRecoilValueLoadable_TRANSITION_SUPPORT_UNSTABLE:jr,useRecoilValue_TRANSITION_SUPPORT_UNSTABLE:zr,useRecoilState_TRANSITION_SUPPORT_UNSTABLE:function(e){return[zr(e),$r(e)]}};var qr=function(e,t){const n=new Map;for(const[r,o]of e)t(o,r)&&n.set(r,o);return n};var Hr=function(e,t){const n=new Set;for(const r of e)t(r)&&n.add(r);return n};var Gr=function(...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};const{batchUpdates:Kr}=Mt,{DEFAULT_VALUE:Jr,getNode:Zr,nodes:Yr}=se,{useStoreRef:Qr}=Xn,{AbstractRecoilValue:Xr,setRecoilValueLoadable:eo}=mt,{SUSPENSE_TIMEOUT_MS:to}=Nt,{cloneSnapshot:no}=vn,{useCallback:ro,useEffect:oo,useRef:ao,useState:io}=r,{isSSR:so}=Bt;function uo(e){const t=Qr();oo((()=>t.current.subscribeToTransactions(e).release),[e,t])}function lo(e){const t=e.atomValues.toMap(),n=ge(qr(t,((e,t)=>{const n=Zr(t).persistence_UNSTABLE;return null!=n&&"none"!==n.type&&"hasValue"===e.state})),(e=>e.contents));return Gr(e.nonvalidatedAtoms.toMap(),n)}function co(e,t){var n;const r=e.getState(),o=null!==(n=r.nextTree)&&void 0!==n?n:r.currentTree,a=t.getStore_INTERNAL().getState().currentTree;Kr((()=>{const n=new Set;for(const e of[o.atomValues.keys(),a.atomValues.keys()])for(const t of e){var r,i;(null===(r=o.atomValues.get(t))||void 0===r?void 0:r.contents)!==(null===(i=a.atomValues.get(t))||void 0===i?void 0:i.contents)&&Zr(t).shouldRestoreFromSnapshots&&n.add(t)}n.forEach((t=>{eo(e,new Xr(t),a.atomValues.has(t)?s(a.atomValues.get(t)):Jr)})),e.replaceState((e=>({...e,stateID:t.getID()})))}))}var fo={useRecoilSnapshot:function(){const e=Qr(),[t,n]=io((()=>no(e.current))),r=rr(t),o=ao(),a=ao();if(uo(ro((e=>n(no(e))),[])),oo((()=>{const e=t.retain();var n;o.current&&!so&&(window.clearTimeout(o.current),o.current=null,null===(n=a.current)||void 0===n||n.call(a),a.current=null);return()=>{window.setTimeout(e,10)}}),[t]),r!==t&&!so){var i;if(o.current)window.clearTimeout(o.current),o.current=null,null===(i=a.current)||void 0===i||i.call(a),a.current=null;a.current=t.retain(),o.current=window.setTimeout((()=>{var e;o.current=null,null===(e=a.current)||void 0===e||e.call(a),a.current=null}),to)}return t},gotoSnapshot:co,useGotoRecoilSnapshot:function(){const e=Qr();return ro((t=>co(e.current,t)),[e])},useRecoilTransactionObserver:function(e){uo(ro((t=>{const n=no(t,"latest"),r=no(t,"previous");e({snapshot:n,previousSnapshot:r})}),[e]))},useTransactionObservation_DEPRECATED:function(e){uo(ro((t=>{let n=t.getState().previousTree;const r=t.getState().currentTree;n||(U("Transaction subscribers notified without a previous tree being present -- this is a bug in Recoil"),n=t.getState().currentTree);const o=lo(r),a=lo(n),i=ge(Yr,(e=>{var t,n,r,o;return{persistence_UNSTABLE:{type:null!==(t=null===(n=e.persistence_UNSTABLE)||void 0===n?void 0:n.type)&&void 0!==t?t:"none",backButton:null!==(r=null===(o=e.persistence_UNSTABLE)||void 0===o?void 0:o.backButton)&&void 0!==r&&r}}})),s=Hr(r.dirtyAtoms,(e=>o.has(e)||a.has(e)));e({atomValues:o,previousAtomValues:a,atomInfo:i,modifiedAtoms:s,transactionMetadata:{...r.transactionMetadata}})}),[e]))},useTransactionSubscription_DEPRECATED:uo};const{peekNodeInfo:po}=qe,{useStoreRef:ho}=Xn;var mo=function(){const e=ho();return({key:t})=>po(e.current,e.current.getState().currentTree,t)};const{reactMode:vo}=$,{RecoilRoot:yo,useStoreRef:go}=Xn,{useMemo:_o}=r;var So=function(){"MUTABLE_SOURCE"===vo().mode&&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=go().current;return _o((()=>function({children:t}){return r.createElement(yo,{store_INTERNAL:e},t)}),[e])};const{loadableWithValue:bo}=k,{initializeNode:Eo}=qe,{DEFAULT_VALUE:To,getNode:Ro}=se,{copyTreeState:wo,getRecoilValueAsLoadable:Ao,invalidateDownstreams:No,writeLoadableToTreeState:ko}=mt;function Co(e){return"atom"===Ro(e.key).nodeType}class Lo{constructor(e,t){u(this,"_store",void 0),u(this,"_treeState",void 0),u(this,"_changes",void 0),u(this,"get",(e=>{if(this._changes.has(e.key))return this._changes.get(e.key);if(!Co(e))throw a("Reading selectors within atomicUpdate is not supported");const t=Ao(this._store,e,this._treeState);if("hasValue"===t.state)return t.contents;throw"hasError"===t.state?t.contents:a(`Expected Recoil atom ${e.key} to have a value, but it is in a loading state.`)})),u(this,"set",((e,t)=>{if(!Co(e))throw a("Setting selectors within atomicUpdate is not supported");if("function"===typeof t){const n=this.get(e);this._changes.set(e.key,t(n))}else Eo(this._store,e.key,"set"),this._changes.set(e.key,t)})),u(this,"reset",(e=>{this.set(e,To)})),this._store=e,this._treeState=t,this._changes=new Map}newTreeState_INTERNAL(){if(0===this._changes.size)return this._treeState;const e=wo(this._treeState);for(const[t,n]of this._changes)ko(e,t,bo(n));return No(this._store,e),e}}var Oo=function(e){return t=>{e.replaceState((n=>{const r=new Lo(e,n);return t(r),r.newTreeState_INTERNAL()}))}},xo=Oo,Io=Object.freeze({__proto__:null,atomicUpdater:xo});var Vo=function(e,t){if(!e)throw new Error(t)};const{atomicUpdater:Mo}=Io,{batchUpdates:Uo}=Mt,{DEFAULT_VALUE:Do}=se,{useStoreRef:Po}=Xn,{refreshRecoilValue:Bo,setRecoilValue:Fo}=mt,{cloneSnapshot:$o}=vn,{gotoSnapshot:jo}=fo,{useCallback:zo}=r;class Wo{}const qo=new Wo;function Ho(e,t,n,r){let o,s=qo;var u;(Uo((()=>{const i="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("function"!==typeof t)throw a(i);const u=Ve({...null!==r&&void 0!==r?r:{},set:(t,n)=>Fo(e,t,n),reset:t=>Fo(e,t,Do),refresh:t=>Bo(e,t),gotoSnapshot:t=>jo(e,t),transact_UNSTABLE:t=>Mo(e)(t)},{snapshot:()=>{const t=$o(e);return o=t.retain(),t}}),l=t(u);if("function"!==typeof l)throw a(i);s=l(...n)})),s instanceof Wo&&Vo(!1),i(s))?s=s.finally((()=>{var e;null===(e=o)||void 0===e||e()})):null===(u=o)||void 0===u||u();return s}var Go={recoilCallback:Ho,useRecoilCallback:function(e,t){const n=Po();return zo(((...t)=>Ho(n.current,e,t)),null!=t?[...t,n]:void 0)}};const{useStoreRef:Ko}=Xn,{refreshRecoilValue:Jo}=mt,{useCallback:Zo}=r;var Yo=function(e){const t=Ko();return Zo((()=>{const n=t.current;Jo(n,e)}),[e,t])};const{atomicUpdater:Qo}=Io,{useStoreRef:Xo}=Xn,{useMemo:ea}=r;var ta=function(e,t){const n=Xo();return ea((()=>(...t)=>{Qo(n.current)((n=>{e(n)(...t)}))}),null!=t?[...t,n]:void 0)};var na=class{constructor(e){u(this,"value",void 0),this.value=e}},ra=Object.freeze({__proto__:null,WrappedValue:na});const{isFastRefreshEnabled:oa}=$;class aa extends Error{}var ia=class{constructor(e){var t,n,r;u(this,"_name",void 0),u(this,"_numLeafs",void 0),u(this,"_root",void 0),u(this,"_onHit",void 0),u(this,"_onSet",void 0),u(this,"_mapNodeValue",void 0),this._name=null===e||void 0===e?void 0:e.name,this._numLeafs=0,this._root=null,this._onHit=null!==(t=null===e||void 0===e?void 0:e.onHit)&&void 0!==t?t:()=>{},this._onSet=null!==(n=null===e||void 0===e?void 0:e.onSet)&&void 0!==n?n:()=>{},this._mapNodeValue=null!==(r=null===e||void 0===e?void 0:e.mapNodeValue)&&void 0!==r?r:e=>e}size(){return this._numLeafs}root(){return this._root}get(e,t){var n;return null===(n=this.getLeafNode(e,t))||void 0===n?void 0:n.value}getLeafNode(e,t){if(null==this._root)return;let n=this._root;for(;n;){if(null===t||void 0===t||t.onNodeVisit(n),"leaf"===n.type)return this._onHit(n),n;const r=this._mapNodeValue(e(n.nodeKey));n=n.branches.get(r)}}set(e,t,n){const r=()=>{var r,o,a,i;let s,u;for(const[t,h]of e){var l,c,d;const e=this._root;if("leaf"===(null===e||void 0===e?void 0:e.type))throw this.invalidCacheError();const r=s;if(s=r?r.branches.get(u):e,s=null!==(l=s)&&void 0!==l?l:{type:"branch",nodeKey:t,parent:r,branches:new Map,branchKey:u},"branch"!==s.type||s.nodeKey!==t)throw this.invalidCacheError();null===r||void 0===r||r.branches.set(u,s),null===n||void 0===n||null===(c=n.onNodeVisit)||void 0===c||c.call(n,s),u=this._mapNodeValue(h),this._root=null!==(d=this._root)&&void 0!==d?d:s}const f=s?null===(r=s)||void 0===r?void 0:r.branches.get(u):this._root;if(null!=f&&("leaf"!==f.type||f.branchKey!==u))throw this.invalidCacheError();const p={type:"leaf",value:t,parent:s,branchKey:u};null===(o=s)||void 0===o||o.branches.set(u,p),this._root=null!==(a=this._root)&&void 0!==a?a:p,this._numLeafs++,this._onSet(p),null===n||void 0===n||null===(i=n.onNodeVisit)||void 0===i||i.call(n,p)};try{r()}catch(o){if(!(o instanceof aa))throw o;this.clear(),r()}}delete(e){const t=this.root();if(!t)return!1;if(e===t)return this._root=null,this._numLeafs=0,!0;let n=e.parent,r=e.branchKey;for(;n;){var o;if(n.branches.delete(r),n===t)return 0===n.branches.size?(this._root=null,this._numLeafs=0):this._numLeafs--,!0;if(n.branches.size>0)break;r=null===(o=n)||void 0===o?void 0:o.branchKey,n=n.parent}for(;n!==t;n=n.parent)if(null==n)return!1;return this._numLeafs--,!0}clear(){this._numLeafs=0,this._root=null}invalidCacheError(){const e=oa()?"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 U(e+(null!=this._name?` - ${this._name}`:"")),new aa}},sa=Object.freeze({__proto__:null,TreeCache:ia});var ua=class{constructor(e){var t;u(this,"_maxSize",void 0),u(this,"_size",void 0),u(this,"_head",void 0),u(this,"_tail",void 0),u(this,"_map",void 0),u(this,"_keyMapper",void 0),this._maxSize=e.maxSize,this._size=0,this._head=null,this._tail=null,this._map=new Map,this._keyMapper=null!==(t=e.mapKey)&&void 0!==t?t:e=>e}head(){return this._head}tail(){return this._tail}size(){return this._size}maxSize(){return this._maxSize}has(e){return this._map.has(this._keyMapper(e))}get(e){const t=this._keyMapper(e),n=this._map.get(t);if(n)return this.set(e,n.value),n.value}set(e,t){const n=this._keyMapper(e);this._map.get(n)&&this.delete(e);const r=this.head(),o={key:e,right:r,left:null,value:t};r?r.left=o:this._tail=o,this._map.set(n,o),this._head=o,this._size++,this._maybeDeleteLRU()}_maybeDeleteLRU(){this.size()>this.maxSize()&&this.deleteLru()}deleteLru(){const e=this.tail();e&&this.delete(e.key)}delete(e){const t=this._keyMapper(e);if(!this._size||!this._map.has(t))return;const n=s(this._map.get(t)),r=n.right,o=n.left;r&&(r.left=n.left),o&&(o.right=n.right),n===this.head()&&(this._head=r),n===this.tail()&&(this._tail=o),this._map.delete(t),this._size--}clear(){this._size=0,this._head=null,this._tail=null,this._map=new Map}},la=Object.freeze({__proto__:null,LRUCache:ua});const{LRUCache:ca}=la,{TreeCache:da}=sa;var fa=function({name:e,maxSize:t,mapNodeValue:n=(e=>e)}){const r=new ca({maxSize:t}),o=new da({name:e,mapNodeValue:n,onHit:e=>{r.set(e,!0)},onSet:e=>{const n=r.tail();r.set(e,!0),n&&o.size()>t&&o.delete(n.key)}});return o};function pa(e,t,n){if("string"===typeof e&&!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(!0!==(null===t||void 0===t?void 0:t.allowFunctions))throw a("Attempt to serialize function in a Recoil cache key");return`__FUNCTION(${e.name})__`}if(null===e)return"null";var r;if("object"!==typeof e)return null!==(r=JSON.stringify(e))&&void 0!==r?r:"";if(i(e))return"__PROMISE__";if(Array.isArray(e))return`[${e.map(((e,n)=>pa(e,t,n.toString())))}]`;if("function"===typeof e.toJSON)return pa(e.toJSON(n),t,n);if(e instanceof Map){const r={};for(const[n,o]of e)r["string"===typeof n?n:pa(n,t)]=o;return pa(r,t,n)}return e instanceof Set?pa(Array.from(e).sort(((e,n)=>pa(e,t).localeCompare(pa(n,t)))),t,n):void 0!==Symbol&&null!=e[Symbol.iterator]&&"function"===typeof e[Symbol.iterator]?pa(Array.from(e),t,n):`{${Object.keys(e).filter((t=>void 0!==e[t])).sort().map((n=>`${pa(n,t)}:${pa(e[n],t,n)}`)).join(",")}}`}var ha=function(e,t={allowFunctions:!1}){return pa(e,t)};const{TreeCache:ma}=sa,va={equality:"reference",eviction:"keep-all",maxSize:1/0};var ya=function({equality:e=va.equality,eviction:t=va.eviction,maxSize:n=va.maxSize}=va,r){const o=function(e){switch(e){case"reference":return e=>e;case"value":return e=>ha(e)}throw a(`Unrecognized equality policy ${e}`)}(e);return function(e,t,n,r){switch(e){case"keep-all":return new ma({name:r,mapNodeValue:n});case"lru":return fa({name:r,maxSize:s(t),mapNodeValue:n});case"most-recent":return fa({name:r,maxSize:1,mapNodeValue:n})}throw a(`Unrecognized eviction policy ${e}`)}(t,n,o,r)};const{isReactNative:ga,isWindow:_a}=Bt;var Sa={startPerfBlock:function(e){return()=>null}};const{isLoadable:ba,loadableWithError:Ea,loadableWithPromise:Ta,loadableWithValue:Ra}=k,{WrappedValue:wa}=ra,{getNodeLoadable:Aa,peekNodeLoadable:Na,setNodeValue:ka}=qe,{saveDepsToStore:Ca}=Se,{DEFAULT_VALUE:La,getConfigDeletionHandler:Oa,getNode:xa,registerNode:Ia}=se,{isRecoilValue:Va}=Z,{markRecoilValueModified:Ma}=mt,{retainedByOptionWithDefault:Ua}=Nt,{recoilCallback:Da}=Go,{startPerfBlock:Pa}=Sa;class Ba{}const Fa=new Ba,$a=[],ja=new Map,za=(()=>{let e=0;return()=>e++})();function Wa(e){let t=null;const{key:n,get:r,cachePolicy_UNSTABLE:o}=e,u=null!=e.set?e.set:void 0;const l=new Set,c=ya(null!==o&&void 0!==o?o:{equality:"reference",eviction:"keep-all"},n),d=Ua(e.retainedBy_UNSTABLE),f=new Map;let p=0;function h(){return!x("recoil_memory_managament_2020")||p>0}function m(e){return e.getState().knownSelectors.add(n),p++,()=>{p--}}function v(){return void 0!==Oa(n)&&!h()}function y(e,t,n,r,o){L(t,r,o),g(e,n)}function g(e,t){C(e,t)&&k(e),_(t,!0)}function _(e,n){const r=ja.get(e);if(null!=r){for(const e of r)Ma(e,s(t));n&&ja.delete(e)}}function S(e,t){let n=ja.get(t);null==n&&ja.set(t,n=new Set),n.add(e)}function b(e,t,n,r,o,a){return t.then((r=>{if(!h())throw k(e),Fa;null!=a.loadingDepKey&&a.loadingDepPromise===t?n.atomValues.set(a.loadingDepKey,Ra(r)):e.getState().knownSelectors.forEach((e=>{n.atomValues.delete(e)}));const i=R(e,n);if(i&&"loading"!==i.state){if((C(e,o)||null==N(e))&&g(e,o),"hasValue"===i.state)return i.contents;throw i.contents}if(!C(e,o)){const t=A(e,n);if(null!=t)return t.loadingLoadable.contents}const[s,u]=T(e,n,o);if("loading"!==s.state&&y(e,n,o,s,u),"hasError"===s.state)throw s.contents;return s.contents})).catch((t=>{if(t instanceof Ba)throw Fa;if(!h())throw k(e),Fa;const a=Ea(t);throw y(e,n,o,a,r),t}))}function E(e,t,r,o){var a,i,s,u,c,d,f;(C(e,o)||t.version===(null===(a=e.getState())||void 0===a||null===(i=a.currentTree)||void 0===i?void 0:i.version)||t.version===(null===(s=e.getState())||void 0===s||null===(u=s.nextTree)||void 0===u?void 0:u.version))&&Ca(n,r,e,null!==(c=null===(d=e.getState())||void 0===d||null===(f=d.nextTree)||void 0===f?void 0:f.version)&&void 0!==c?c:e.getState().currentTree.version);for(const n of r)l.add(n)}function T(e,o,u){const l=Pa(n);let c=!0,d=!0;const f=()=>{l(),d=!1};let p,m,v=!1;const g={loadingDepKey:null,loadingDepPromise:null},S=new Map;function T({key:t}){const n=Aa(e,o,t);switch(S.set(t,n),c||(E(e,o,new Set(S.keys()),u),function(e,t){C(e,t)&&(s(N(e)).stateVersions.clear(),_(t,!1))}(e,u)),n.state){case"hasValue":return n.contents;case"hasError":throw n.contents;case"loading":throw g.loadingDepKey=t,g.loadingDepPromise=n.contents,n.contents}throw a("Invalid Loadable state")}const R=n=>(...r)=>{if(d)throw a("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 null==t&&Vo(!1),Da(e,n,r,{node:t})};try{p=r({get:T,getCallback:R}),p=Va(p)?T(p):p,ba(p)&&("hasError"===p.state&&(v=!0),p=p.contents),i(p)?p=function(e,t,n,r,o,a){return t.then((t=>{if(!h())throw k(e),Fa;const a=Ra(t);return y(e,n,o,a,r),t})).catch((t=>{if(!h())throw k(e),Fa;if(i(t))return b(e,t,n,r,o,a);const s=Ea(t);throw y(e,n,o,s,r),t}))}(e,p,o,S,u,g).finally(f):f(),p=p instanceof wa?p.value:p}catch(w){p=w,i(p)?p=b(e,p,o,S,u,g).finally(f):(v=!0,f())}return m=v?Ea(p):i(p)?Ta(p):Ra(p),c=!1,function(e,t,n){if(C(e,t)){const t=N(e);null!=t&&(t.depValuesDiscoveredSoFarDuringAsyncWork=n)}}(e,u,S),E(e,o,new Set(S.keys()),u),[m,S]}function R(e,t){let r=t.atomValues.get(n);if(null!=r)return r;const o=new Set;try{r=c.get((n=>("string"!==typeof n&&Vo(!1),Aa(e,t,n).contents)),{onNodeVisit:e=>{"branch"===e.type&&e.nodeKey!==n&&o.add(e.nodeKey)}})}catch(s){throw a(`Problem with cache lookup for selector "${n}": ${s.message}`)}var i;r&&(t.atomValues.set(n,r),E(e,t,o,null===(i=N(e))||void 0===i?void 0:i.executionID));return r}function w(e,t){const n=R(e,t);if(null!=n)return k(e),n;const r=A(e,t);var o;if(null!=r)return"loading"===(null===(o=r.loadingLoadable)||void 0===o?void 0:o.state)&&S(e,r.executionID),r.loadingLoadable;const a=za(),[i,s]=T(e,t,a);return"loading"===i.state?(!function(e,t,n,r,o){f.set(e,{depValuesDiscoveredSoFarDuringAsyncWork:r,executionID:t,loadingLoadable:n,stateVersions:new Map([[o.version,!0]])})}(e,a,i,s,t),S(e,a)):(k(e),L(t,i,s)),i}function A(e,t){const n=Ut([f.has(e)?[s(f.get(e))]:[],Q(Ie(f,(([t])=>t!==e)),(([,e])=>e))]);function r(n){for(const[r,o]of n)if(!Aa(e,t,r).is(o))return!0;return!1}for(const o of n){if(o.stateVersions.get(t.version)||!r(o.depValuesDiscoveredSoFarDuringAsyncWork))return o.stateVersions.set(t.version,!0),o;o.stateVersions.set(t.version,!1)}}function N(e){return f.get(e)}function k(e){f.delete(e)}function C(e,t){var n;return t===(null===(n=N(e))||void 0===n?void 0:n.executionID)}function L(e,t,r){e.atomValues.set(n,t);try{c.set(function(e){return Array.from(e.entries()).map((([e,t])=>[e,t.contents]))}(r),t)}catch(o){throw a(`Problem with setting cache for selector "${n}": ${o.message}`)}}function O(e,t){const r=t.atomValues.get(n);return null!=r?r:c.get((n=>{var r;return"string"!==typeof n&&Vo(!1),null===(r=Na(e,t,n))||void 0===r?void 0:r.contents}))}function I(e,t){return function(e){if($a.includes(n)){const e=`Recoil selector has circular dependencies: ${$a.slice($a.indexOf(n)).join(" \u2192 ")}`;return Ea(a(e))}$a.push(n);try{return e()}finally{$a.pop()}}((()=>w(e,t)))}function V(e){e.atomValues.delete(n)}function M(e,n){null==t&&Vo(!1);for(const t of l){var r;const o=xa(t);null===(r=o.clearCache)||void 0===r||r.call(o,e,n)}l.clear(),V(n),c.clear(),Ma(e,t)}if(null!=u){return t=Ia({key:n,nodeType:"selector",peek:O,get:I,set:(e,t,r)=>{let o=!1;const s=new Map;function l({key:r}){if(o)throw a("Recoil: Async selector sets are not currently supported.");const i=Aa(e,t,r);if("hasValue"===i.state)return i.contents;if("loading"===i.state){const e=`Getting value of asynchronous atom or selector "${r}" in a pending state while setting selector "${n}" is not yet supported.`;throw U(e),a(e)}throw i.contents}function c(n,r){if(o){const e="Recoil: Async selector sets are not currently supported.";throw U(e),a(e)}const i="function"===typeof r?r(l(n)):r;ka(e,t,n.key,i).forEach(((e,t)=>s.set(t,e)))}const d=u({set:c,get:l,reset:function(e){c(e,La)}},r);if(void 0!==d)throw i(d)?a("Recoil: Async selector sets are not currently supported."):a("Recoil: selector set should be a void function.");return o=!0,s},init:m,invalidate:V,clearCache:M,shouldDeleteConfigOnRelease:v,dangerouslyAllowMutability:e.dangerouslyAllowMutability,shouldRestoreFromSnapshots:!1,retainedBy:d})}return t=Ia({key:n,nodeType:"selector",peek:O,get:I,init:m,invalidate:V,clearCache:M,shouldDeleteConfigOnRelease:v,dangerouslyAllowMutability:e.dangerouslyAllowMutability,shouldRestoreFromSnapshots:!1,retainedBy:d})}Wa.value=e=>new wa(e);var qa=Wa;const{isLoadable:Ha,loadableWithError:Ga,loadableWithPromise:Ka,loadableWithValue:Ja}=k,{WrappedValue:Za}=ra,{peekNodeInfo:Ya}=qe,{DEFAULT_VALUE:Qa,DefaultValue:Xa,getConfigDeletionHandler:ei,registerNode:ti,setConfigDeletionHandler:ni}=se,{isRecoilValue:ri}=Z,{getRecoilValueAsLoadable:oi,markRecoilValueModified:ai,setRecoilValue:ii,setRecoilValueLoadable:si}=mt,{retainedByOptionWithDefault:ui}=Nt,li=e=>e instanceof Za?e.value:e;function ci(e){const{key:t,persistence_UNSTABLE:n}=e,r=ui(e.retainedBy_UNSTABLE);let o=0;function u(e){return Ka(e.then((e=>(c=Ja(e),e))).catch((e=>{throw c=Ga(e),e})))}let l,c=i(e.default)?u(e.default):Ha(e.default)?"loading"===e.default.state?u(e.default.contents):e.default:Ja(li(e.default));f(c.contents);const d=new Map;function f(e){return e}function p(e,n){var r,o;return null!==(r=null!==(o=n.atomValues.get(t))&&void 0!==o?o:l)&&void 0!==r?r:c}const h=ti({key:t,nodeType:"atom",peek:p,get:function(e,r){if(r.atomValues.has(t))return s(r.atomValues.get(t));if(r.nonvalidatedAtoms.has(t)){if(null!=l)return l;if(null==n)return Y(`Tried to restore a persisted value for atom ${t} but it has no persistence settings.`),c;const e=r.nonvalidatedAtoms.get(t),o=n.validator(e,Qa),a=o instanceof Xa?c:Ja(o);return l=a,l}return c},set:function(e,n,r){if(n.atomValues.has(t)){const e=s(n.atomValues.get(t));if("hasValue"===e.state&&r===e.contents)return new Map}else if(!n.nonvalidatedAtoms.has(t)&&r instanceof Xa)return new Map;return l=void 0,(new Map).set(t,Ja(r))},init:function(n,r,s){var u;if(o++,n.getState().knownAtoms.add(t),"loading"===c.state){const S=()=>{var e;(null!==(e=n.getState().nextTree)&&void 0!==e?e:n.getState().currentTree).atomValues.has(t)||ai(n,h)};c.contents.finally(S)}const l=null!==(u=e.effects)&&void 0!==u?u:e.effects_UNSTABLE;if(null!=l){let b=Qa,E=!0,T=!1,R=null;function f(e){if(E&&e.key===t){const e=b;return e instanceof Xa?p(n,r):i(e)?Ka(e.then((e=>e instanceof Xa?c.toPromise():e))):Ja(e)}return oi(n,e)}function m(e){return f(e).toPromise()}function v(e){var r;const o=Ya(n,null!==(r=n.getState().nextTree)&&void 0!==r?r:n.getState().currentTree,e.key);return!E||e.key!==t||b instanceof Xa?o:{...o,isSet:!0,loadable:f(e)}}const w=e=>t=>{if(E){const n=f(h),r="hasValue"===n.state?n.contents:Qa;b="function"===typeof t?t(r):t,i(b)&&(b=b.then((t=>(R={effect:e,value:t},t))))}else{if(i(t))throw a("Setting atoms to async values is not implemented.");"function"!==typeof t&&(R={effect:e,value:li(t)}),ii(n,h,"function"===typeof t?n=>{const r=li(t(n));return R={effect:e,value:r},r}:li(t))}},A=e=>()=>w(e)(Qa),N=e=>r=>{var o;const{release:a}=n.subscribeToTransactions((n=>{var o;let{currentTree:a,previousTree:i}=n.getState();i||(U("Transaction subscribers notified without a next tree being present -- this is a bug in Recoil"),i=a);const s=null!==(o=a.atomValues.get(t))&&void 0!==o?o:c;if("hasValue"===s.state){var u,l,d,f;const n=s.contents,o=null!==(u=i.atomValues.get(t))&&void 0!==u?u:c,p="hasValue"===o.state?o.contents:Qa;(null===(l=R)||void 0===l?void 0:l.effect)!==e||(null===(d=R)||void 0===d?void 0:d.value)!==n?r(n,p,!a.atomValues.has(t)):(null===(f=R)||void 0===f?void 0:f.effect)===e&&(R=null)}}),t);d.set(n,[...null!==(o=d.get(n))&&void 0!==o?o:[],a])};for(const k of l)try{const C=k({node:h,storeID:n.storeID,parentStoreID_UNSTABLE:n.parentStoreID,trigger:s,setSelf:w(k),resetSelf:A(k),onSet:N(k),getPromise:m,getLoadable:f,getInfo_UNSTABLE:v});var y;if(null!=C)d.set(n,[...null!==(y=d.get(n))&&void 0!==y?y:[],C])}catch(_){b=_,T=!0}if(E=!1,!(b instanceof Xa)){var g;const L=T?Ga(b):i(b)?Ka(function(e,n){const r=n.then((n=>{var o,a;return(null===(a=(null!==(o=e.getState().nextTree)&&void 0!==o?o:e.getState().currentTree).atomValues.get(t))||void 0===a?void 0:a.contents)===r&&ii(e,h,n),n})).catch((n=>{var o,a;throw(null===(a=(null!==(o=e.getState().nextTree)&&void 0!==o?o:e.getState().currentTree).atomValues.get(t))||void 0===a?void 0:a.contents)===r&&si(e,h,Ga(n)),n}));return r}(n,b)):Ja(li(b));L.contents,r.atomValues.set(t,L),null===(g=n.getState().nextTree)||void 0===g||g.atomValues.set(t,L)}}return()=>{var e;o--,null===(e=d.get(n))||void 0===e||e.forEach((e=>e())),d.delete(n)}},invalidate:function(){l=void 0},shouldDeleteConfigOnRelease:function(){return void 0!==ei(t)&&o<=0},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 di(e){const{...t}=e,n="default"in e?e.default:new Promise((()=>{}));return ri(n)?function(e){const t=di({...e,default:Qa,persistence_UNSTABLE:void 0===e.persistence_UNSTABLE?void 0:{...e.persistence_UNSTABLE,validator:t=>t instanceof Xa?t:s(e.persistence_UNSTABLE).validator(t,Qa)},effects:e.effects,effects_UNSTABLE:e.effects_UNSTABLE}),n=qa({key:`${e.key}__withFallback`,get:({get:n})=>{const r=n(t);return r instanceof Xa?e.default:r},set:({set:e},n)=>e(t,n),cachePolicy_UNSTABLE:{eviction:"most-recent"},dangerouslyAllowMutability:e.dangerouslyAllowMutability});return ni(n.key,ei(e.key)),n}({...t,default:n}):ci({...t,default:n})}di.value=e=>new Za(e);var fi=di;var pi=class{constructor(e){var t;u(this,"_map",void 0),u(this,"_keyMapper",void 0),this._map=new Map,this._keyMapper=null!==(t=null===e||void 0===e?void 0:e.mapKey)&&void 0!==t?t:e=>e}size(){return this._map.size}has(e){return this._map.has(this._keyMapper(e))}get(e){return this._map.get(this._keyMapper(e))}set(e,t){this._map.set(this._keyMapper(e),t)}delete(e){this._map.delete(this._keyMapper(e))}clear(){this._map.clear()}},hi=Object.freeze({__proto__:null,MapCache:pi});const{LRUCache:mi}=la,{MapCache:vi}=hi,yi={equality:"reference",eviction:"none",maxSize:1/0};var gi=function({equality:e=yi.equality,eviction:t=yi.eviction,maxSize:n=yi.maxSize}=yi){const r=function(e){switch(e){case"reference":return e=>e;case"value":return e=>ha(e)}throw a(`Unrecognized equality policy ${e}`)}(e);return function(e,t,n){switch(e){case"keep-all":return new vi({mapKey:n});case"lru":return new mi({mapKey:n,maxSize:s(t)});case"most-recent":return new mi({mapKey:n,maxSize:1})}throw a(`Unrecognized eviction policy ${e}`)}(t,n,r)};const{setConfigDeletionHandler:_i}=se;var Si=function(e){var t,n;const r=gi({equality:null!==(t=null===(n=e.cachePolicyForParams_UNSTABLE)||void 0===n?void 0:n.equality)&&void 0!==t?t:"value",eviction:"keep-all"});return t=>{var n,o;const a=r.get(t);if(null!=a)return a;const{cachePolicyForParams_UNSTABLE:i,...s}=e,u="default"in e?e.default:new Promise((()=>{})),l=fi({...s,key:`${e.key}__${null!==(n=ha(t))&&void 0!==n?n:"void"}`,default:"function"===typeof u?u(t):u,retainedBy_UNSTABLE:"function"===typeof e.retainedBy_UNSTABLE?e.retainedBy_UNSTABLE(t):e.retainedBy_UNSTABLE,effects:"function"===typeof e.effects?e.effects(t):"function"===typeof e.effects_UNSTABLE?e.effects_UNSTABLE(t):null!==(o=e.effects)&&void 0!==o?o:e.effects_UNSTABLE});return r.set(t,l),_i(l.key,(()=>{r.delete(t)})),l}};const{setConfigDeletionHandler:bi}=se;let Ei=0;var Ti=function(e){var t,n;const r=gi({equality:null!==(t=null===(n=e.cachePolicyForParams_UNSTABLE)||void 0===n?void 0:n.equality)&&void 0!==t?t:"value",eviction:"keep-all"});return t=>{var n;let o;try{o=r.get(t)}catch(d){throw a(`Problem with cache lookup for selector ${e.key}: ${d.message}`)}if(null!=o)return o;const i=`${e.key}__selectorFamily/${null!==(n=ha(t,{allowFunctions:!0}))&&void 0!==n?n:"void"}/${Ei++}`,s=n=>e.get(t)(n),u=e.cachePolicy_UNSTABLE,l="function"===typeof e.retainedBy_UNSTABLE?e.retainedBy_UNSTABLE(t):e.retainedBy_UNSTABLE;let c;if(null!=e.set){const n=e.set;c=qa({key:i,get:s,set:(e,r)=>n(t)(e,r),cachePolicy_UNSTABLE:u,dangerouslyAllowMutability:e.dangerouslyAllowMutability,retainedBy_UNSTABLE:l})}else c=qa({key:i,get:s,cachePolicy_UNSTABLE:u,dangerouslyAllowMutability:e.dangerouslyAllowMutability,retainedBy_UNSTABLE:l});return r.set(t,c),bi(c.key,(()=>{r.delete(t)})),c}};const Ri=Ti({key:"__constant",get:e=>()=>e,cachePolicyForParams_UNSTABLE:{equality:"reference"}});var wi=function(e){return Ri(e)};const Ai=Ti({key:"__error",get:e=>()=>{throw a(e)},cachePolicyForParams_UNSTABLE:{equality:"reference"}});var Ni=function(e){return Ai(e)};var ki=function(e){return e};const{loadableWithError:Ci,loadableWithPromise:Li,loadableWithValue:Oi}=k;function xi(e,t){const n=Array(t.length).fill(void 0),r=Array(t.length).fill(void 0);for(const[a,i]of t.entries())try{n[a]=e(i)}catch(o){r[a]=o}return[n,r]}function Ii(e){return null!=e&&!i(e)}function Vi(e){return Array.isArray(e)?e:Object.getOwnPropertyNames(e).map((t=>e[t]))}function Mi(e,t){return Array.isArray(e)?t:Object.getOwnPropertyNames(e).reduce(((e,n,r)=>({...e,[n]:t[r]})),{})}function Ui(e,t,n){return Mi(e,n.map(((e,n)=>null==e?Oi(t[n]):i(e)?Li(e):Ci(e))))}var Di={waitForNone:Ti({key:"__waitForNone",get:e=>({get:t})=>{const n=Vi(e),[r,o]=xi(t,n);return Ui(e,r,o)},dangerouslyAllowMutability:!0}),waitForAny:Ti({key:"__waitForAny",get:e=>({get:t})=>{const n=Vi(e),[r,o]=xi(t,n);return o.some((e=>!i(e)))?Ui(e,r,o):new Promise((t=>{for(const[n,a]of o.entries())i(a)&&a.then((a=>{r[n]=a,o[n]=void 0,t(Ui(e,r,o))})).catch((a=>{o[n]=a,t(Ui(e,r,o))}))}))},dangerouslyAllowMutability:!0}),waitForAll:Ti({key:"__waitForAll",get:e=>({get:t})=>{const n=Vi(e),[r,o]=xi(t,n);if(o.every((e=>null==e)))return Mi(e,r);const a=o.find(Ii);if(null!=a)throw a;return Promise.all(o).then((t=>{return Mi(e,(n=r,t.map(((e,t)=>void 0===e?n[t]:e))));var n}))},dangerouslyAllowMutability:!0}),waitForAllSettled:Ti({key:"__waitForAllSettled",get:e=>({get:t})=>{const n=Vi(e),[r,o]=xi(t,n);return o.every((e=>!i(e)))?Ui(e,r,o):Promise.all(o.map(((e,t)=>i(e)?e.then((e=>{r[t]=e,o[t]=void 0})).catch((e=>{r[t]=void 0,o[t]=e})):null))).then((()=>Ui(e,r,o)))},dangerouslyAllowMutability:!0}),noWait:Ti({key:"__noWait",get:e=>({get:t})=>{try{return qa.value(Oi(t(e)))}catch(n){return qa.value(i(n)?Li(n):Ci(n))}},dangerouslyAllowMutability:!0})};const{RecoilLoadable:Pi}=k,{DefaultValue:Bi}=se,{RecoilRoot:Fi,useRecoilStoreID:$i}=Xn,{isRecoilValue:ji}=Z,{retentionZone:zi}=Oe,{freshSnapshot:Wi}=vn,{useRecoilState:qi,useRecoilState_TRANSITION_SUPPORT_UNSTABLE:Hi,useRecoilStateLoadable:Gi,useRecoilValue:Ki,useRecoilValue_TRANSITION_SUPPORT_UNSTABLE:Ji,useRecoilValueLoadable:Zi,useRecoilValueLoadable_TRANSITION_SUPPORT_UNSTABLE:Yi,useResetRecoilState:Qi,useSetRecoilState:Xi}=Wr,{useGotoRecoilSnapshot:es,useRecoilSnapshot:ts,useRecoilTransactionObserver:ns}=fo,{useRecoilCallback:rs}=Go,{noWait:os,waitForAll:as,waitForAllSettled:is,waitForAny:ss,waitForNone:us}=Di;var ls={DefaultValue:Bi,isRecoilValue:ji,RecoilLoadable:Pi,RecoilEnv:L,RecoilRoot:Fi,useRecoilStoreID:$i,useRecoilBridgeAcrossReactRoots_UNSTABLE:So,atom:fi,selector:qa,atomFamily:Si,selectorFamily:Ti,constSelector:wi,errorSelector:Ni,readOnlySelector:ki,noWait:os,waitForNone:us,waitForAny:ss,waitForAll:as,waitForAllSettled:is,useRecoilValue:Ki,useRecoilValueLoadable:Zi,useRecoilState:qi,useRecoilStateLoadable:Gi,useSetRecoilState:Xi,useResetRecoilState:Qi,useGetRecoilValueInfo_UNSTABLE:mo,useRecoilRefresher_UNSTABLE:Yo,useRecoilValueLoadable_TRANSITION_SUPPORT_UNSTABLE:Yi,useRecoilValue_TRANSITION_SUPPORT_UNSTABLE:Ji,useRecoilState_TRANSITION_SUPPORT_UNSTABLE:Hi,useRecoilCallback:rs,useRecoilTransaction_UNSTABLE:ta,useGotoRecoilSnapshot:es,useRecoilSnapshot:ts,useRecoilTransactionObserver_UNSTABLE:ns,snapshot_UNSTABLE:Wi,useRetain:dr,retentionZone:zi},cs=ls.RecoilRoot,ds=ls.atom,fs=ls.selector,ps=ls.atomFamily,hs=ls.selectorFamily,ms=ls.useRecoilValue,vs=ls.useRecoilValueLoadable,ys=ls.useRecoilState,gs=ls.useSetRecoilState,_s=ls.useResetRecoilState,Ss=ls.useRecoilRefresher_UNSTABLE,bs=ls.useRecoilCallback},55678:function(e,t,n){n.d(t,{Am:function(){return V},Ix:function(){return R}});var r=n(67294),o=n(86010);const a=e=>"number"==typeof e&&!isNaN(e),i=e=>"string"==typeof e,s=e=>"function"==typeof e,u=e=>i(e)||s(e)?e:null,l=e=>(0,r.isValidElement)(e)||i(e)||s(e)||a(e);function c(e){let{enter:t,exit:n,appendPosition:o=!1,collapse:a=!0,collapseDuration:i=300}=e;return function(e){let{children:s,position:u,preventExitTransition:l,done:c,nodeRef:d,isIn:f}=e;const p=o?`${t}--${u}`:t,h=o?`${n}--${u}`:n,m=(0,r.useRef)(0);return(0,r.useLayoutEffect)((()=>{const e=d.current,t=p.split(" "),n=r=>{r.target===d.current&&(e.dispatchEvent(new Event("d")),e.removeEventListener("animationend",n),e.removeEventListener("animationcancel",n),0===m.current&&"animationcancel"!==r.type&&e.classList.remove(...t))};e.classList.add(...t),e.addEventListener("animationend",n),e.addEventListener("animationcancel",n)}),[]),(0,r.useEffect)((()=>{const e=d.current,t=()=>{e.removeEventListener("animationend",t),a?function(e,t,n){void 0===n&&(n=300);const{scrollHeight:r,style:o}=e;requestAnimationFrame((()=>{o.minHeight="initial",o.height=r+"px",o.transition=`all ${n}ms`,requestAnimationFrame((()=>{o.height="0",o.padding="0",o.margin="0",setTimeout(t,n)}))}))}(e,c,i):c()};f||(l?t():(m.current=1,e.className+=` ${h}`,e.addEventListener("animationend",t)))}),[f]),r.createElement(r.Fragment,null,s)}}function d(e,t){return null!=e?{content:e.content,containerId:e.props.containerId,id:e.props.toastId,theme:e.props.theme,type:e.props.type,data:e.props.data||{},isLoading:e.props.isLoading,icon:e.props.icon,status:t}:{}}const f={list:new Map,emitQueue:new Map,on(e,t){return this.list.has(e)||this.list.set(e,[]),this.list.get(e).push(t),this},off(e,t){if(t){const n=this.list.get(e).filter((e=>e!==t));return this.list.set(e,n),this}return this.list.delete(e),this},cancelEmit(e){const t=this.emitQueue.get(e);return t&&(t.forEach(clearTimeout),this.emitQueue.delete(e)),this},emit(e){this.list.has(e)&&this.list.get(e).forEach((t=>{const n=setTimeout((()=>{t(...[].slice.call(arguments,1))}),0);this.emitQueue.has(e)||this.emitQueue.set(e,[]),this.emitQueue.get(e).push(n)}))}},p=e=>{let{theme:t,type:n,...o}=e;return r.createElement("svg",{viewBox:"0 0 24 24",width:"100%",height:"100%",fill:"colored"===t?"currentColor":`var(--toastify-icon-color-${n})`,...o})},h={info:function(e){return r.createElement(p,{...e},r.createElement("path",{d:"M12 0a12 12 0 1012 12A12.013 12.013 0 0012 0zm.25 5a1.5 1.5 0 11-1.5 1.5 1.5 1.5 0 011.5-1.5zm2.25 13.5h-4a1 1 0 010-2h.75a.25.25 0 00.25-.25v-4.5a.25.25 0 00-.25-.25h-.75a1 1 0 010-2h1a2 2 0 012 2v4.75a.25.25 0 00.25.25h.75a1 1 0 110 2z"}))},warning:function(e){return r.createElement(p,{...e},r.createElement("path",{d:"M23.32 17.191L15.438 2.184C14.728.833 13.416 0 11.996 0c-1.42 0-2.733.833-3.443 2.184L.533 17.448a4.744 4.744 0 000 4.368C1.243 23.167 2.555 24 3.975 24h16.05C22.22 24 24 22.044 24 19.632c0-.904-.251-1.746-.68-2.44zm-9.622 1.46c0 1.033-.724 1.823-1.698 1.823s-1.698-.79-1.698-1.822v-.043c0-1.028.724-1.822 1.698-1.822s1.698.79 1.698 1.822v.043zm.039-12.285l-.84 8.06c-.057.581-.408.943-.897.943-.49 0-.84-.367-.896-.942l-.84-8.065c-.057-.624.25-1.095.779-1.095h1.91c.528.005.84.476.784 1.1z"}))},success:function(e){return r.createElement(p,{...e},r.createElement("path",{d:"M12 0a12 12 0 1012 12A12.014 12.014 0 0012 0zm6.927 8.2l-6.845 9.289a1.011 1.011 0 01-1.43.188l-4.888-3.908a1 1 0 111.25-1.562l4.076 3.261 6.227-8.451a1 1 0 111.61 1.183z"}))},error:function(e){return r.createElement(p,{...e},r.createElement("path",{d:"M11.983 0a12.206 12.206 0 00-8.51 3.653A11.8 11.8 0 000 12.207 11.779 11.779 0 0011.8 24h.214A12.111 12.111 0 0024 11.791 11.766 11.766 0 0011.983 0zM10.5 16.542a1.476 1.476 0 011.449-1.53h.027a1.527 1.527 0 011.523 1.47 1.475 1.475 0 01-1.449 1.53h-.027a1.529 1.529 0 01-1.523-1.47zM11 12.5v-6a1 1 0 012 0v6a1 1 0 11-2 0z"}))},spinner:function(){return r.createElement("div",{className:"Toastify__spinner"})}};function m(e){const[,t]=(0,r.useReducer)((e=>e+1),0),[n,o]=(0,r.useState)([]),c=(0,r.useRef)(null),p=(0,r.useRef)(new Map).current,m=e=>-1!==n.indexOf(e),v=(0,r.useRef)({toastKey:1,displayedToast:0,count:0,queue:[],props:e,containerId:null,isToastActive:m,getToast:e=>p.get(e)}).current;function y(e){let{containerId:t}=e;const{limit:n}=v.props;!n||t&&v.containerId!==t||(v.count-=v.queue.length,v.queue=[])}function g(e){o((t=>null==e?[]:t.filter((t=>t!==e))))}function _(){const{toastContent:e,toastProps:t,staleId:n}=v.queue.shift();b(e,t,n)}function S(e,n){let{delay:o,staleId:m,...y}=n;if(!l(e)||function(e){return!c.current||v.props.enableMultiContainer&&e.containerId!==v.props.containerId||p.has(e.toastId)&&null==e.updateId}(y))return;const{toastId:S,updateId:E,data:T}=y,{props:R}=v,w=()=>g(S),A=null==E;A&&v.count++;const N={...R,style:R.toastStyle,key:v.toastKey++,...Object.fromEntries(Object.entries(y).filter((e=>{let[t,n]=e;return null!=n}))),toastId:S,updateId:E,data:T,closeToast:w,isIn:!1,className:u(y.className||R.toastClassName),bodyClassName:u(y.bodyClassName||R.bodyClassName),progressClassName:u(y.progressClassName||R.progressClassName),autoClose:!y.isLoading&&(k=y.autoClose,C=R.autoClose,!1===k||a(k)&&k>0?k:C),deleteToast(){const e=d(p.get(S),"removed");p.delete(S),f.emit(4,e);const n=v.queue.length;if(v.count=null==S?v.count-v.displayedToast:v.count-1,v.count<0&&(v.count=0),n>0){const e=null==S?v.props.limit:1;if(1===n||1===e)v.displayedToast++,_();else{const t=e>n?n:e;v.displayedToast=t;for(let e=0;e<t;e++)_()}}else t()}};var k,C;N.iconOut=function(e){let{theme:t,type:n,isLoading:o,icon:u}=e,l=null;const c={theme:t,type:n};return!1===u||(s(u)?l=u(c):(0,r.isValidElement)(u)?l=(0,r.cloneElement)(u,c):i(u)||a(u)?l=u:o?l=h.spinner():(e=>e in h)(n)&&(l=h[n](c))),l}(N),s(y.onOpen)&&(N.onOpen=y.onOpen),s(y.onClose)&&(N.onClose=y.onClose),N.closeButton=R.closeButton,!1===y.closeButton||l(y.closeButton)?N.closeButton=y.closeButton:!0===y.closeButton&&(N.closeButton=!l(R.closeButton)||R.closeButton);let L=e;(0,r.isValidElement)(e)&&!i(e.type)?L=(0,r.cloneElement)(e,{closeToast:w,toastProps:N,data:T}):s(e)&&(L=e({closeToast:w,toastProps:N,data:T})),R.limit&&R.limit>0&&v.count>R.limit&&A?v.queue.push({toastContent:L,toastProps:N,staleId:m}):a(o)?setTimeout((()=>{b(L,N,m)}),o):b(L,N,m)}function b(e,t,n){const{toastId:r}=t;n&&p.delete(n);const a={content:e,props:t};p.set(r,a),o((e=>[...e,r].filter((e=>e!==n)))),f.emit(4,d(a,null==a.props.updateId?"added":"updated"))}return(0,r.useEffect)((()=>(v.containerId=e.containerId,f.cancelEmit(3).on(0,S).on(1,(e=>c.current&&g(e))).on(5,y).emit(2,v),()=>{p.clear(),f.emit(3,v)})),[]),(0,r.useEffect)((()=>{v.props=e,v.isToastActive=m,v.displayedToast=n.length})),{getToastToRender:function(t){const n=new Map,r=Array.from(p.values());return e.newestOnTop&&r.reverse(),r.forEach((e=>{const{position:t}=e.props;n.has(t)||n.set(t,[]),n.get(t).push(e)})),Array.from(n,(e=>t(e[0],e[1])))},containerRef:c,isToastActive:m}}function v(e){return e.targetTouches&&e.targetTouches.length>=1?e.targetTouches[0].clientX:e.clientX}function y(e){return e.targetTouches&&e.targetTouches.length>=1?e.targetTouches[0].clientY:e.clientY}function g(e){const[t,n]=(0,r.useState)(!1),[o,a]=(0,r.useState)(!1),i=(0,r.useRef)(null),u=(0,r.useRef)({start:0,x:0,y:0,delta:0,removalDistance:0,canCloseOnClick:!0,canDrag:!1,boundingRect:null,didMove:!1}).current,l=(0,r.useRef)(e),{autoClose:c,pauseOnHover:d,closeToast:f,onClick:p,closeOnClick:h}=e;function m(t){if(e.draggable){"touchstart"===t.nativeEvent.type&&t.nativeEvent.preventDefault(),u.didMove=!1,document.addEventListener("mousemove",b),document.addEventListener("mouseup",E),document.addEventListener("touchmove",b),document.addEventListener("touchend",E);const n=i.current;u.canCloseOnClick=!0,u.canDrag=!0,u.boundingRect=n.getBoundingClientRect(),n.style.transition="",u.x=v(t.nativeEvent),u.y=y(t.nativeEvent),"x"===e.draggableDirection?(u.start=u.x,u.removalDistance=n.offsetWidth*(e.draggablePercent/100)):(u.start=u.y,u.removalDistance=n.offsetHeight*(80===e.draggablePercent?1.5*e.draggablePercent:e.draggablePercent/100))}}function g(t){if(u.boundingRect){const{top:n,bottom:r,left:o,right:a}=u.boundingRect;"touchend"!==t.nativeEvent.type&&e.pauseOnHover&&u.x>=o&&u.x<=a&&u.y>=n&&u.y<=r?S():_()}}function _(){n(!0)}function S(){n(!1)}function b(n){const r=i.current;u.canDrag&&r&&(u.didMove=!0,t&&S(),u.x=v(n),u.y=y(n),u.delta="x"===e.draggableDirection?u.x-u.start:u.y-u.start,u.start!==u.x&&(u.canCloseOnClick=!1),r.style.transform=`translate${e.draggableDirection}(${u.delta}px)`,r.style.opacity=""+(1-Math.abs(u.delta/u.removalDistance)))}function E(){document.removeEventListener("mousemove",b),document.removeEventListener("mouseup",E),document.removeEventListener("touchmove",b),document.removeEventListener("touchend",E);const t=i.current;if(u.canDrag&&u.didMove&&t){if(u.canDrag=!1,Math.abs(u.delta)>u.removalDistance)return a(!0),void e.closeToast();t.style.transition="transform 0.2s, opacity 0.2s",t.style.transform=`translate${e.draggableDirection}(0)`,t.style.opacity="1"}}(0,r.useEffect)((()=>{l.current=e})),(0,r.useEffect)((()=>(i.current&&i.current.addEventListener("d",_,{once:!0}),s(e.onOpen)&&e.onOpen((0,r.isValidElement)(e.children)&&e.children.props),()=>{const e=l.current;s(e.onClose)&&e.onClose((0,r.isValidElement)(e.children)&&e.children.props)})),[]),(0,r.useEffect)((()=>(e.pauseOnFocusLoss&&(document.hasFocus()||S(),window.addEventListener("focus",_),window.addEventListener("blur",S)),()=>{e.pauseOnFocusLoss&&(window.removeEventListener("focus",_),window.removeEventListener("blur",S))})),[e.pauseOnFocusLoss]);const T={onMouseDown:m,onTouchStart:m,onMouseUp:g,onTouchEnd:g};return c&&d&&(T.onMouseEnter=S,T.onMouseLeave=_),h&&(T.onClick=e=>{p&&p(e),u.canCloseOnClick&&f()}),{playToast:_,pauseToast:S,isRunning:t,preventExitTransition:o,toastRef:i,eventHandlers:T}}function _(e){let{closeToast:t,theme:n,ariaLabel:o="close"}=e;return r.createElement("button",{className:`Toastify__close-button Toastify__close-button--${n}`,type:"button",onClick:e=>{e.stopPropagation(),t(e)},"aria-label":o},r.createElement("svg",{"aria-hidden":"true",viewBox:"0 0 14 16"},r.createElement("path",{fillRule:"evenodd",d:"M7.71 8.23l3.75 3.75-1.48 1.48-3.75-3.75-3.75 3.75L1 11.98l3.75-3.75L1 4.48 2.48 3l3.75 3.75L9.98 3l1.48 1.48-3.75 3.75z"})))}function S(e){let{delay:t,isRunning:n,closeToast:a,type:i="default",hide:u,className:l,style:c,controlledProgress:d,progress:f,rtl:p,isIn:h,theme:m}=e;const v=u||d&&0===f,y={...c,animationDuration:`${t}ms`,animationPlayState:n?"running":"paused",opacity:v?0:1};d&&(y.transform=`scaleX(${f})`);const g=(0,o.default)("Toastify__progress-bar",d?"Toastify__progress-bar--controlled":"Toastify__progress-bar--animated",`Toastify__progress-bar-theme--${m}`,`Toastify__progress-bar--${i}`,{"Toastify__progress-bar--rtl":p}),_=s(l)?l({rtl:p,type:i,defaultClassName:g}):(0,o.default)(g,l);return r.createElement("div",{role:"progressbar","aria-hidden":v?"true":"false","aria-label":"notification timer",className:_,style:y,[d&&f>=1?"onTransitionEnd":"onAnimationEnd"]:d&&f<1?null:()=>{h&&a()}})}const b=e=>{const{isRunning:t,preventExitTransition:n,toastRef:a,eventHandlers:i}=g(e),{closeButton:u,children:l,autoClose:c,onClick:d,type:f,hideProgressBar:p,closeToast:h,transition:m,position:v,className:y,style:b,bodyClassName:E,bodyStyle:T,progressClassName:R,progressStyle:w,updateId:A,role:N,progress:k,rtl:C,toastId:L,deleteToast:O,isIn:x,isLoading:I,iconOut:V,closeOnClick:M,theme:U}=e,D=(0,o.default)("Toastify__toast",`Toastify__toast-theme--${U}`,`Toastify__toast--${f}`,{"Toastify__toast--rtl":C},{"Toastify__toast--close-on-click":M}),P=s(y)?y({rtl:C,position:v,type:f,defaultClassName:D}):(0,o.default)(D,y),B=!!k||!c,F={closeToast:h,type:f,theme:U};let $=null;return!1===u||($=s(u)?u(F):(0,r.isValidElement)(u)?(0,r.cloneElement)(u,F):_(F)),r.createElement(m,{isIn:x,done:O,position:v,preventExitTransition:n,nodeRef:a},r.createElement("div",{id:L,onClick:d,className:P,...i,style:b,ref:a},r.createElement("div",{...x&&{role:N},className:s(E)?E({type:f}):(0,o.default)("Toastify__toast-body",E),style:T},null!=V&&r.createElement("div",{className:(0,o.default)("Toastify__toast-icon",{"Toastify--animate-icon Toastify__zoom-enter":!I})},V),r.createElement("div",null,l)),$,r.createElement(S,{...A&&!B?{key:`pb-${A}`}:{},rtl:C,theme:U,delay:c,isRunning:t,isIn:x,closeToast:h,hide:p,type:f,style:w,className:R,controlledProgress:B,progress:k||0})))},E=function(e,t){return void 0===t&&(t=!1),{enter:`Toastify--animate Toastify__${e}-enter`,exit:`Toastify--animate Toastify__${e}-exit`,appendPosition:t}},T=c(E("bounce",!0)),R=(c(E("slide",!0)),c(E("zoom")),c(E("flip")),(0,r.forwardRef)(((e,t)=>{const{getToastToRender:n,containerRef:a,isToastActive:i}=m(e),{className:l,style:c,rtl:d,containerId:f}=e;function p(e){const t=(0,o.default)("Toastify__toast-container",`Toastify__toast-container--${e}`,{"Toastify__toast-container--rtl":d});return s(l)?l({position:e,rtl:d,defaultClassName:t}):(0,o.default)(t,u(l))}return(0,r.useEffect)((()=>{t&&(t.current=a.current)}),[]),r.createElement("div",{ref:a,className:"Toastify",id:f},n(((e,t)=>{const n=t.length?{...c}:{...c,pointerEvents:"none"};return r.createElement("div",{className:p(e),style:n,key:`container-${e}`},t.map(((e,n)=>{let{content:o,props:a}=e;return r.createElement(b,{...a,isIn:i(a.toastId),style:{...a.style,"--nth":n+1,"--len":t.length},key:`toast-${a.key}`},o)})))})))})));R.displayName="ToastContainer",R.defaultProps={position:"top-right",transition:T,autoClose:5e3,closeButton:_,pauseOnHover:!0,pauseOnFocusLoss:!0,closeOnClick:!0,draggable:!0,draggablePercent:80,draggableDirection:"x",role:"alert",theme:"light"};let w,A=new Map,N=[],k=1;function C(){return""+k++}function L(e){return e&&(i(e.toastId)||a(e.toastId))?e.toastId:C()}function O(e,t){return A.size>0?f.emit(0,e,t):N.push({content:e,options:t}),t.toastId}function x(e,t){return{...t,type:t&&t.type||e,toastId:L(t)}}function I(e){return(t,n)=>O(t,x(e,n))}function V(e,t){return O(e,x("default",t))}V.loading=(e,t)=>O(e,x("default",{isLoading:!0,autoClose:!1,closeOnClick:!1,closeButton:!1,draggable:!1,...t})),V.promise=function(e,t,n){let r,{pending:o,error:a,success:u}=t;o&&(r=i(o)?V.loading(o,n):V.loading(o.render,{...n,...o}));const l={isLoading:null,autoClose:null,closeOnClick:null,closeButton:null,draggable:null},c=(e,t,o)=>{if(null==t)return void V.dismiss(r);const a={type:e,...l,...n,data:o},s=i(t)?{render:t}:t;return r?V.update(r,{...a,...s}):V(s.render,{...a,...s}),o},d=s(e)?e():e;return d.then((e=>c("success",u,e))).catch((e=>c("error",a,e))),d},V.success=I("success"),V.info=I("info"),V.error=I("error"),V.warning=I("warning"),V.warn=V.warning,V.dark=(e,t)=>O(e,x("default",{theme:"dark",...t})),V.dismiss=e=>{A.size>0?f.emit(1,e):N=N.filter((t=>null!=e&&t.options.toastId!==e))},V.clearWaitingQueue=function(e){return void 0===e&&(e={}),f.emit(5,e)},V.isActive=e=>{let t=!1;return A.forEach((n=>{n.isToastActive&&n.isToastActive(e)&&(t=!0)})),t},V.update=function(e,t){void 0===t&&(t={}),setTimeout((()=>{const n=function(e,t){let{containerId:n}=t;const r=A.get(n||w);return r&&r.getToast(e)}(e,t);if(n){const{props:r,content:o}=n,a={delay:100,...r,...t,toastId:t.toastId||e,updateId:C()};a.toastId!==e&&(a.staleId=e);const i=a.render||o;delete a.render,O(i,a)}}),0)},V.done=e=>{V.update(e,{progress:1})},V.onChange=e=>(f.on(4,e),()=>{f.off(4,e)}),V.POSITION={TOP_LEFT:"top-left",TOP_RIGHT:"top-right",TOP_CENTER:"top-center",BOTTOM_LEFT:"bottom-left",BOTTOM_RIGHT:"bottom-right",BOTTOM_CENTER:"bottom-center"},V.TYPE={INFO:"info",SUCCESS:"success",WARNING:"warning",ERROR:"error",DEFAULT:"default"},f.on(2,(e=>{w=e.containerId||e,A.set(w,e),N.forEach((e=>{f.emit(0,e.content,e.options)})),N=[]})).on(3,(e=>{A.delete(e.containerId||e),0===A.size&&f.off(0).off(1).off(5)}))}}]);