summaryrefslogtreecommitdiffstats
path: root/web/gui/v2/6187.0b79ef0afe565349e1bc.js
diff options
context:
space:
mode:
Diffstat (limited to 'web/gui/v2/6187.0b79ef0afe565349e1bc.js')
-rw-r--r--web/gui/v2/6187.0b79ef0afe565349e1bc.js2
1 files changed, 0 insertions, 2 deletions
diff --git a/web/gui/v2/6187.0b79ef0afe565349e1bc.js b/web/gui/v2/6187.0b79ef0afe565349e1bc.js
deleted file mode 100644
index 979c066b3..000000000
--- a/web/gui/v2/6187.0b79ef0afe565349e1bc.js
+++ /dev/null
@@ -1,2 +0,0 @@
-/*! For license information please see 6187.0b79ef0afe565349e1bc.js.LICENSE.txt */
-!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]="ce8ffbfd-5ad7-440a-bdf7-7fcbcbecba1a",e._sentryDebugIdIdentifier="sentry-dbid-ce8ffbfd-5ad7-440a-bdf7-7fcbcbecba1a")}catch(e){}}();var _global="undefined"!==typeof window?window:"undefined"!==typeof global?global:"undefined"!==typeof self?self:{};_global.SENTRY_RELEASE={id:"8b7b01b6c705cf50f8050ce0fb8fc6b58fe68567"},(self.webpackChunkcloud_frontend=self.webpackChunkcloud_frontend||[]).push([[6187],{17563:function(e,t,n){const o=n(70610),r=n(44020),i=n(80500),a=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?o(e):encodeURIComponent(e):e}function c(e,t){return t.decode?r(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,o)=>{t=/\[(\d*)\]$/.exec(e),e=e.replace(/\[\d*\]$/,""),t?(void 0===o[e]&&(o[e]={}),o[e][t[1]]=n):o[e]=n};case"bracket":return(e,n,o)=>{t=/(\[\])$/.exec(e),e=e.replace(/\[\]$/,""),t?void 0!==o[e]?o[e]=[].concat(o[e],n):o[e]=[n]:o[e]=n};case"colon-list-separator":return(e,n,o)=>{t=/(:list)$/.exec(e),e=e.replace(/:list$/,""),t?void 0!==o[e]?o[e]=[].concat(o[e],n):o[e]=[n]:o[e]=n};case"comma":case"separator":return(t,n,o)=>{const r="string"===typeof n&&n.includes(e.arrayFormatSeparator),i="string"===typeof n&&!r&&c(n,e).includes(e.arrayFormatSeparator);n=i?c(n,e):n;const a=r||i?n.split(e.arrayFormatSeparator).map((t=>c(t,e))):null===n?n:c(n,e);o[t]=a};case"bracket-separator":return(t,n,o)=>{const r=/(\[\])$/.test(t);if(t=t.replace(/\[\]$/,""),!r)return void(o[t]=n?c(n,e):n);const i=null===n?[]:n.split(e.arrayFormatSeparator).map((t=>c(t,e)));void 0!==o[t]?o[t]=[].concat(o[t],i):o[t]=i};default:return(e,t,n)=>{void 0!==n[e]?n[e]=[].concat(n[e],t):n[e]=t}}}(t),o=Object.create(null);if("string"!==typeof e)return o;if(!(e=e.trim().replace(/^[?#&]/,"")))return o;for(const r of e.split("&")){if(""===r)continue;let[e,a]=i(t.decode?r.replace(/\+/g," "):r,"=");a=void 0===a?null:["comma","separator","bracket-separator"].includes(t.arrayFormat)?a:c(a,t),n(c(e,t),a,o)}for(const r of Object.keys(o)){const e=o[r];if("object"===typeof e&&null!==e)for(const n of Object.keys(e))e[n]=h(e[n],t);else o[r]=h(e,t)}return!1===t.sort?o:(!0===t.sort?Object.keys(o).sort():Object.keys(o).sort(t.sort)).reduce(((e,t)=>{const n=o[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===(o=e[n])||void 0===o)||t.skipEmptyString&&""===e[n];var o},o=function(e){switch(e.arrayFormat){case"index":return t=>(n,o)=>{const r=n.length;return void 0===o||e.skipNull&&null===o||e.skipEmptyString&&""===o?n:null===o?[...n,[l(t,e),"[",r,"]"].join("")]:[...n,[l(t,e),"[",l(r,e),"]=",l(o,e)].join("")]};case"bracket":return t=>(n,o)=>void 0===o||e.skipNull&&null===o||e.skipEmptyString&&""===o?n:null===o?[...n,[l(t,e),"[]"].join("")]:[...n,[l(t,e),"[]=",l(o,e)].join("")];case"colon-list-separator":return t=>(n,o)=>void 0===o||e.skipNull&&null===o||e.skipEmptyString&&""===o?n:null===o?[...n,[l(t,e),":list="].join("")]:[...n,[l(t,e),":list=",l(o,e)].join("")];case"comma":case"separator":case"bracket-separator":{const t="bracket-separator"===e.arrayFormat?"[]=":"=";return n=>(o,r)=>void 0===r||e.skipNull&&null===r||e.skipEmptyString&&""===r?o:(r=null===r?"":r,0===o.length?[[l(n,e),t,l(r,e)].join("")]:[[o,l(r,e)].join(e.arrayFormatSeparator)])}default:return t=>(n,o)=>void 0===o||e.skipNull&&null===o||e.skipEmptyString&&""===o?n:null===o?[...n,l(t,e)]:[...n,[l(t,e),"=",l(o,e)].join("")]}}(t),r={};for(const a of Object.keys(e))n(a)||(r[a]=e[a]);const i=Object.keys(r);return!1!==t.sort&&i.sort(t.sort),i.map((n=>{const r=e[n];return void 0===r?"":null===r?l(n,t):Array.isArray(r)?0===r.length&&"bracket-separator"===t.arrayFormat?l(n,t)+"[]":r.reduce(o(n),[]).join("&"):l(n,t)+"="+l(r,t)})).filter((e=>e.length>0)).join("&")},t.parseUrl=(e,t)=>{t=Object.assign({decode:!0},t);const[n,o]=i(e,"#");return Object.assign({url:n.split("?")[0]||"",query:m(p(e),t)},t&&t.parseFragmentIdentifier&&o?{fragmentIdentifier:c(o,t)}:{})},t.stringifyUrl=(e,n)=>{n=Object.assign({encode:!0,strict:!0,[s]:!0},n);const o=f(e.url).split("?")[0]||"",r=t.extract(e.url),i=t.parse(r,{sort:!1}),a=Object.assign(i,e.query);let u=t.stringify(a,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}`),`${o}${u}${c}`},t.pick=(e,n,o)=>{o=Object.assign({parseFragmentIdentifier:!0,[s]:!1},o);const{url:r,query:i,fragmentIdentifier:u}=t.parseUrl(e,o);return t.stringifyUrl({url:r,query:a(i,n),fragmentIdentifier:u},o)},t.exclude=(e,n,o)=>{const r=Array.isArray(n)?e=>!n.includes(e):(e,t)=>!n(e,t);return t.pick(e,r,o)}},69921:function(e,t){var n,o=Symbol.for("react.element"),r=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),a=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 g(e){if("object"===typeof e&&null!==e){var t=e.$$typeof;switch(t){case o:switch(e=e.type){case i:case s:case a: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 r:return t}}}n=Symbol.for("react.module.reference"),t.isValidElementType=function(e){return"string"===typeof e||"function"===typeof e||e===i||e===s||e===a||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=g},59864:function(e,t,n){e.exports=n(69921)},26519:function(e,t,n){n.d(t,{Z:function(){return h}});var o=n(73935),r=n(67294),i=n(45697),a=n.n(i),s=!("undefined"===typeof window||!window.document||!window.document.createElement),u=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),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)),o.createPortal(this.props.children,this.props.node||this.defaultNode)):null}}]),t}(r.Component);l.propTypes={children:a().node.isRequired,node:a().any};var c=l,d=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),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(){o.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=r.cloneElement(this.props.children)),this.portal=o.unstable_renderSubtreeIntoContainer(this,t,this.props.node||this.defaultNode)}},{key:"render",value:function(){return null}}]),t}(r.Component),p=f;f.propTypes={children:a().node.isRequired,node:a().any};var h=o.createPortal?c:p},79655:function(e,t,n){var o;n.d(t,{M:function(){return f},lr:function(){return y},rU:function(){return m}});var r=n(67294),i=n(89250),a=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 o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},s.apply(this,arguments)}function u(e,t){if(null==e)return{};var n,o,r={},i=Object.keys(e);for(o=0;o<i.length;o++)n=i[o],t.indexOf(n)>=0||(r[n]=e[n]);return r}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 o=e[n];return t.concat(Array.isArray(o)?o.map((e=>[n,e])):[[n,o]])}),[]))}new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);const c=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset"];const d=(o||(o=n.t(r,2))).startTransition;function f(e){let{basename:t,children:n,future:o,history:a}=e,[s,u]=r.useState({action:a.action,location:a.location}),{v7_startTransition:l}=o||{},c=r.useCallback((e=>{l&&d?d((()=>u(e))):u(e)}),[u,l]);return r.useLayoutEffect((()=>a.listen(c)),[a,c]),r.createElement(i.F0,{basename:t,children:n,location:s.location,navigationType:s.action,navigator:a})}const p="undefined"!==typeof window&&"undefined"!==typeof window.document&&"undefined"!==typeof window.document.createElement,h=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,m=r.forwardRef((function(e,t){let n,{onClick:o,relative:l,reloadDocument:d,replace:f,state:m,target:v,to:g,preventScrollReset:y}=e,b=u(e,c),{basename:S}=r.useContext(i.Us),_=!1;if("string"===typeof g&&h.test(g)&&(n=g,p))try{let e=new URL(window.location.href),t=g.startsWith("//")?new URL(e.protocol+g):new URL(g),n=(0,a.Zn)(t.pathname,S);t.origin===e.origin&&null!=n?g=n+t.search+t.hash:_=!0}catch(R){}let E=(0,i.oQ)(g,{relative:l}),w=function(e,t){let{target:n,replace:o,state:s,preventScrollReset:u,relative:l}=void 0===t?{}:t,c=(0,i.s0)(),d=(0,i.TH)(),f=(0,i.WU)(e,{relative:l});return r.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!==o?o:(0,a.Ep)(d)===(0,a.Ep)(f);c(e,{replace:n,state:s,preventScrollReset:u,relative:l})}}),[d,c,f,o,s,n,e,u,l])}(g,{replace:f,state:m,target:v,preventScrollReset:y,relative:l});return r.createElement("a",s({},b,{href:n||E,onClick:_||d?o:function(e){o&&o(e),e.defaultPrevented||w(e)},ref:t,target:v}))}));var v,g;function y(e){let t=r.useRef(l(e)),n=r.useRef(!1),o=(0,i.TH)(),a=r.useMemo((()=>function(e,t){let n=l(e);return t&&t.forEach(((e,o)=>{n.has(o)||t.getAll(o).forEach((e=>{n.append(o,e)}))})),n}(o.search,n.current?null:t.current)),[o.search]),s=(0,i.s0)(),u=r.useCallback(((e,t)=>{const o=l("function"===typeof e?e(a):e);n.current=!0,s("?"+o,t)}),[s,a]);return[a,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"}(g||(g={}))},89250:function(e,t,n){var o;n.d(t,{AW:function(){return V},F0:function(){return x},Fg:function(){return I},TH:function(){return m},UO:function(){return b},Us:function(){return l},WU:function(){return S},Z5:function(){return M},bS:function(){return v},oQ:function(){return p},s0:function(){return y}});var r=n(67294),i=n(12599);function a(){return a=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},a.apply(this,arguments)}const s=r.createContext(null);const u=r.createContext(null);const l=r.createContext(null);const c=r.createContext(null);const d=r.createContext({outlet:null,matches:[],isDataRoute:!1});const f=r.createContext(null);function p(e,t){let{relative:n}=void 0===t?{}:t;h()||(0,i.J0)(!1);let{basename:o,navigator:a}=r.useContext(l),{hash:s,pathname:u,search:c}=S(e,{relative:n}),d=u;return"/"!==o&&(d="/"===u?o:(0,i.RQ)([o,u])),a.createHref({pathname:d,search:c,hash:s})}function h(){return null!=r.useContext(c)}function m(){return h()||(0,i.J0)(!1),r.useContext(c).location}function v(e){h()||(0,i.J0)(!1);let{pathname:t}=m();return r.useMemo((()=>(0,i.LX)(e,t)),[t,e])}function g(e){r.useContext(l).static||r.useLayoutEffect(e)}function y(){let{isDataRoute:e}=r.useContext(d);return e?function(){let{router:e}=A(k.UseNavigateStable),t=N(O.UseNavigateStable),n=r.useRef(!1);return g((()=>{n.current=!0})),r.useCallback((function(o,r){void 0===r&&(r={}),n.current&&("number"===typeof o?e.navigate(o):e.navigate(o,a({fromRouteId:t},r)))}),[e,t])}():function(){h()||(0,i.J0)(!1);let e=r.useContext(s),{basename:t,navigator:n}=r.useContext(l),{matches:o}=r.useContext(d),{pathname:a}=m(),u=JSON.stringify((0,i.Zq)(o).map((e=>e.pathnameBase))),c=r.useRef(!1);return g((()=>{c.current=!0})),r.useCallback((function(o,r){if(void 0===r&&(r={}),!c.current)return;if("number"===typeof o)return void n.go(o);let s=(0,i.pC)(o,JSON.parse(u),a,"path"===r.relative);null==e&&"/"!==t&&(s.pathname="/"===s.pathname?t:(0,i.RQ)([t,s.pathname])),(r.replace?n.replace:n.push)(s,r.state,r)}),[t,n,u,a,e])}()}function b(){let{matches:e}=r.useContext(d),t=e[e.length-1];return t?t.params:{}}function S(e,t){let{relative:n}=void 0===t?{}:t,{matches:o}=r.useContext(d),{pathname:a}=m(),s=JSON.stringify((0,i.Zq)(o).map((e=>e.pathnameBase)));return r.useMemo((()=>(0,i.pC)(e,JSON.parse(s),a,"path"===n)),[e,s,a,n])}function _(e,t,n){h()||(0,i.J0)(!1);let{navigator:o}=r.useContext(l),{matches:s}=r.useContext(d),u=s[s.length-1],f=u?u.params:{},p=(u&&u.pathname,u?u.pathnameBase:"/");u&&u.route;let v,g=m();if(t){var y;let e="string"===typeof t?(0,i.cP)(t):t;"/"===p||(null==(y=e.pathname)?void 0:y.startsWith(p))||(0,i.J0)(!1),v=e}else v=g;let b=v.pathname||"/",S="/"===p?b:b.slice(p.length)||"/",_=(0,i.fp)(e,{pathname:S});let E=C(_&&_.map((e=>Object.assign({},e,{params:Object.assign({},f,e.params),pathname:(0,i.RQ)([p,o.encodeLocation?o.encodeLocation(e.pathname).pathname:e.pathname]),pathnameBase:"/"===e.pathnameBase?p:(0,i.RQ)([p,o.encodeLocation?o.encodeLocation(e.pathnameBase).pathname:e.pathnameBase])}))),s,n);return t&&E?r.createElement(c.Provider,{value:{location:a({pathname:"/",search:"",hash:"",state:null,key:"default"},v),navigationType:i.aU.Pop}},E):E}function E(){let e=function(){var e;let t=r.useContext(f),n=L(O.UseRouteError),o=N(O.UseRouteError);if(t)return t;return null==(e=n.errors)?void 0:e[o]}(),t=(0,i.WK)(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,o="rgba(200,200,200, 0.5)",a={padding:"0.5rem",backgroundColor:o};return r.createElement(r.Fragment,null,r.createElement("h2",null,"Unexpected Application Error!"),r.createElement("h3",{style:{fontStyle:"italic"}},t),n?r.createElement("pre",{style:a},n):null,null)}const w=r.createElement(E,null);class R extends r.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?r.createElement(d.Provider,{value:this.props.routeContext},r.createElement(f.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function T(e){let{routeContext:t,match:n,children:o}=e,i=r.useContext(s);return i&&i.static&&i.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(i.staticContext._deepestRenderedBoundaryId=n.route.id),r.createElement(d.Provider,{value:t},o)}function C(e,t,n){var o;if(void 0===t&&(t=[]),void 0===n&&(n=null),null==e){var a;if(null==(a=n)||!a.errors)return null;e=n.matches}let s=e,u=null==(o=n)?void 0:o.errors;if(null!=u){let e=s.findIndex((e=>e.route.id&&(null==u?void 0:u[e.route.id])));e>=0||(0,i.J0)(!1),s=s.slice(0,Math.min(s.length,e+1))}return s.reduceRight(((e,o,i)=>{let a=o.route.id?null==u?void 0:u[o.route.id]:null,l=null;n&&(l=o.route.errorElement||w);let c=t.concat(s.slice(0,i+1)),d=()=>{let t;return t=a?l:o.route.Component?r.createElement(o.route.Component,null):o.route.element?o.route.element:e,r.createElement(T,{match:o,routeContext:{outlet:e,matches:c,isDataRoute:null!=n},children:t})};return n&&(o.route.ErrorBoundary||o.route.errorElement||0===i)?r.createElement(R,{location:n.location,revalidation:n.revalidation,component:l,error:a,children:d(),routeContext:{outlet:null,matches:c,isDataRoute:!0}}):d()}),null)}var k=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(k||{}),O=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}(O||{});function A(e){let t=r.useContext(s);return t||(0,i.J0)(!1),t}function L(e){let t=r.useContext(u);return t||(0,i.J0)(!1),t}function N(e){let t=function(e){let t=r.useContext(d);return t||(0,i.J0)(!1),t}(),n=t.matches[t.matches.length-1];return n.route.id||(0,i.J0)(!1),n.route.id}(o||(o=n.t(r,2))).startTransition;function I(e){let{to:t,replace:n,state:o,relative:a}=e;h()||(0,i.J0)(!1);let{matches:s}=r.useContext(d),{pathname:u}=m(),l=y(),c=(0,i.pC)(t,(0,i.Zq)(s).map((e=>e.pathnameBase)),u,"path"===a),f=JSON.stringify(c);return r.useEffect((()=>l(JSON.parse(f),{replace:n,state:o,relative:a})),[l,f,a,n,o]),null}function V(e){(0,i.J0)(!1)}function x(e){let{basename:t="/",children:n=null,location:o,navigationType:a=i.aU.Pop,navigator:s,static:u=!1}=e;h()&&(0,i.J0)(!1);let d=t.replace(/^\/*/,"/"),f=r.useMemo((()=>({basename:d,navigator:s,static:u})),[d,s,u]);"string"===typeof o&&(o=(0,i.cP)(o));let{pathname:p="/",search:m="",hash:v="",state:g=null,key:y="default"}=o,b=r.useMemo((()=>{let e=(0,i.Zn)(p,d);return null==e?null:{location:{pathname:e,search:m,hash:v,state:g,key:y},navigationType:a}}),[d,p,m,v,g,y,a]);return null==b?null:r.createElement(l.Provider,{value:f},r.createElement(c.Provider,{children:n,value:b}))}function M(e){let{children:t,location:n}=e;return _(P(t),n)}new Promise((()=>{}));class D extends r.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,o=null,a=AwaitRenderStatus.pending;if(n instanceof Promise)if(this.state.error){AwaitRenderStatus.error;let e=this.state.error;Promise.reject().catch((()=>{})),Object.defineProperty(o,"_tracked",{get:()=>!0}),Object.defineProperty(o,"_error",{get:()=>e})}else n._tracked?(n,void 0!==o._error?AwaitRenderStatus.error:void 0!==o._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(o,"_tracked",{get:()=>!0}),Object.defineProperty(o,"_data",{get:()=>n});if(a===AwaitRenderStatus.error&&o._error instanceof i.X3)throw neverSettledPromise;if(a===AwaitRenderStatus.error&&!t)throw o._error;if(a===AwaitRenderStatus.error)return r.createElement(AwaitContext.Provider,{value:o,children:t});if(a===AwaitRenderStatus.success)return r.createElement(AwaitContext.Provider,{value:o,children:e});throw o}}function P(e,t){void 0===t&&(t=[]);let n=[];return r.Children.forEach(e,((e,o)=>{if(!r.isValidElement(e))return;let a=[...t,o];if(e.type===r.Fragment)return void n.push.apply(n,P(e.props.children,a));e.type!==V&&(0,i.J0)(!1),e.props.index&&e.props.children&&(0,i.J0)(!1);let s={id:e.props.id||a.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=P(e.props.children,a)),n.push(s)})),n}},877:function(e,t,n){n.d(t,{A:function(){return O},B:function(){return D},C:function(){return M},D:function(){return x},E:function(){return y},F:function(){return xe},G:function(){return E},H:function(){return b},I:function(){return C},J:function(){return v},K:function(){return V},M:function(){return $},a:function(){return le},b:function(){return X},c:function(){return Ve},d:function(){return he},e:function(){return ue},f:function(){return ye},g:function(){return ge},h:function(){return ce},i:function(){return ee},j:function(){return _e},k:function(){return J},l:function(){return fe},m:function(){return H},n:function(){return G},o:function(){return Y},p:function(){return Te},q:function(){return Ce},r:function(){return P},s:function(){return I},t:function(){return ke},u:function(){return K},v:function(){return Le},w:function(){return Ne},x:function(){return Ie},y:function(){return Q},z:function(){return k}});var o=n(1413),r=n(87462),i=n(42849),a=n(29439),s=n(45987),u=n(71002),l=n(30168),c=n(4942),d=n(67294),f=n(73935),p=n(7991),h=n(73469),m=["className","clearValue","cx","getStyles","getClassNames","getValue","hasValue","isMulti","isRtl","options","selectOption","selectProps","setValue","theme"],v=function(){};function g(e,t){return t?"-"===t[0]?e+t:e+"__"+t:e}function y(e,t){for(var n=arguments.length,o=new Array(n>2?n-2:0),r=2;r<n;r++)o[r-2]=arguments[r];var i=[].concat(o);if(t&&e)for(var a in t)t.hasOwnProperty(a)&&t[a]&&i.push("".concat(g(e,a)));return i.filter((function(e){return e})).map((function(e){return String(e).trim()})).join(" ")}var b=function(e){return t=e,Array.isArray(t)?e.filter(Boolean):"object"===(0,u.Z)(e)&&null!==e?[e]:[];var t},S=function(e){e.className,e.clearValue,e.cx,e.getStyles,e.getClassNames,e.getValue,e.hasValue,e.isMulti,e.isRtl,e.options,e.selectOption,e.selectProps,e.setValue,e.theme;var t=(0,s.Z)(e,m);return(0,o.Z)({},t)},_=function(e,t,n){var o=e.cx,r=e.getStyles,i=e.getClassNames,a=e.className;return{css:r(t,e),className:o(null!==n&&void 0!==n?n:{},i(t,e),a)}};function E(e){return[document.documentElement,document.body,window].indexOf(e)>-1}function w(e){return E(e)?window.pageYOffset:e.scrollTop}function R(e,t){E(e)?window.scrollTo(0,t):e.scrollTop=t}function T(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:200,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:v,r=w(e),i=t-r,a=0;!function t(){var s,u=i*((s=(s=a+=10)/n-1)*s*s+1)+r;R(e,u),a<n?window.requestAnimationFrame(t):o(e)}()}function C(e,t){var n=e.getBoundingClientRect(),o=t.getBoundingClientRect(),r=t.offsetHeight/3;o.bottom+r>n.bottom?R(e,Math.min(t.offsetTop+t.clientHeight-e.offsetHeight+r,e.scrollHeight)):o.top-r<n.top&&R(e,Math.max(t.offsetTop-r,0))}function k(){try{return document.createEvent("TouchEvent"),!0}catch(e){return!1}}function O(){try{return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)}catch(e){return!1}}var A=!1,L={get passive(){return A=!0}},N="undefined"!==typeof window?window:{};N.addEventListener&&N.removeEventListener&&(N.addEventListener("p",v,L),N.removeEventListener("p",v,!1));var I=A;function V(e){return null!=e}function x(e,t,n){return e?t:n}function M(e){return e}function D(e){return e}var P=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),o=1;o<t;o++)n[o-1]=arguments[o];return Object.entries(e).filter((function(e){var t=(0,a.Z)(e,1)[0];return!n.includes(t)})).reduce((function(e,t){var n=(0,a.Z)(t,2),o=n[0],r=n[1];return e[o]=r,e}),{})},U=["children","innerProps"],F=["children","innerProps"];function B(e){var t=e.maxHeight,n=e.menuEl,o=e.minHeight,r=e.placement,i=e.shouldScroll,a=e.isFixedPosition,s=e.controlHeight,u=function(e){var t=getComputedStyle(e),n="absolute"===t.position,o=/(auto|scroll)/;if("fixed"===t.position)return document.documentElement;for(var r=e;r=r.parentElement;)if(t=getComputedStyle(r),(!n||"static"!==t.position)&&o.test(t.overflow+t.overflowY+t.overflowX))return r;return document.documentElement}(n),l={placement:"bottom",maxHeight:t};if(!n||!n.offsetParent)return l;var c,d=u.getBoundingClientRect().height,f=n.getBoundingClientRect(),p=f.bottom,h=f.height,m=f.top,v=n.offsetParent.getBoundingClientRect().top,g=a?window.innerHeight:E(c=u)?window.innerHeight:c.clientHeight,y=w(u),b=parseInt(getComputedStyle(n).marginBottom,10),S=parseInt(getComputedStyle(n).marginTop,10),_=v-S,C=g-m,k=_+y,O=d-y-m,A=p-g+y+b,L=y+m-S,N=160;switch(r){case"auto":case"bottom":if(C>=h)return{placement:"bottom",maxHeight:t};if(O>=h&&!a)return i&&T(u,A,N),{placement:"bottom",maxHeight:t};if(!a&&O>=o||a&&C>=o)return i&&T(u,A,N),{placement:"bottom",maxHeight:a?C-b:O-b};if("auto"===r||a){var I=t,V=a?_:k;return V>=o&&(I=Math.min(V-b-s,t)),{placement:"top",maxHeight:I}}if("bottom"===r)return i&&R(u,A),{placement:"bottom",maxHeight:t};break;case"top":if(_>=h)return{placement:"top",maxHeight:t};if(k>=h&&!a)return i&&T(u,L,N),{placement:"top",maxHeight:t};if(!a&&k>=o||a&&_>=o){var x=t;return(!a&&k>=o||a&&_>=o)&&(x=a?_-S:k-S),i&&T(u,L,N),{placement:"top",maxHeight:x}}return{placement:"bottom",maxHeight:t};default:throw new Error('Invalid placement provided "'.concat(r,'".'))}return l}var Z,z=function(e){return"auto"===e?"bottom":e},H=function(e,t){var n,r=e.placement,i=e.theme,a=i.borderRadius,s=i.spacing,u=i.colors;return(0,o.Z)((n={label:"menu"},(0,c.Z)(n,function(e){return e?{bottom:"top",top:"bottom"}[e]:"bottom"}(r),"100%"),(0,c.Z)(n,"position","absolute"),(0,c.Z)(n,"width","100%"),(0,c.Z)(n,"zIndex",1),n),t?{}:{backgroundColor:u.neutral0,borderRadius:a,boxShadow:"0 0 0 1px hsla(0, 0%, 0%, 0.1), 0 4px 11px hsla(0, 0%, 0%, 0.1)",marginBottom:s.menuGutter,marginTop:s.menuGutter})},j=(0,d.createContext)(null),$=function(e){var t=e.children,n=e.minMenuHeight,r=e.maxMenuHeight,i=e.menuPlacement,s=e.menuPosition,u=e.menuShouldScrollIntoView,l=e.theme,c=((0,d.useContext)(j)||{}).setPortalPlacement,f=(0,d.useRef)(null),p=(0,d.useState)(r),m=(0,a.Z)(p,2),v=m[0],g=m[1],y=(0,d.useState)(null),b=(0,a.Z)(y,2),S=b[0],_=b[1],E=l.spacing.controlHeight;return(0,h.Z)((function(){var e=f.current;if(e){var t="fixed"===s,o=B({maxHeight:r,menuEl:e,minHeight:n,placement:i,shouldScroll:u&&!t,isFixedPosition:t,controlHeight:E});g(o.maxHeight),_(o.placement),null===c||void 0===c||c(o.placement)}}),[r,i,s,u,n,c,E]),t({ref:f,placerProps:(0,o.Z)((0,o.Z)({},e),{},{placement:S||z(i),maxHeight:v})})},W=function(e){var t=e.children,n=e.innerRef,o=e.innerProps;return(0,i.tZ)("div",(0,r.Z)({},_(e,"menu",{menu:!0}),{ref:n},o),t)},G=function(e,t){var n=e.maxHeight,r=e.theme.spacing.baseUnit;return(0,o.Z)({maxHeight:n,overflowY:"auto",position:"relative",WebkitOverflowScrolling:"touch"},t?{}:{paddingBottom:r,paddingTop:r})},q=function(e,t){var n=e.theme,r=n.spacing.baseUnit,i=n.colors;return(0,o.Z)({textAlign:"center"},t?{}:{color:i.neutral40,padding:"".concat(2*r,"px ").concat(3*r,"px")})},K=q,J=q,Y=function(e){var t=e.rect,n=e.offset,o=e.position;return{left:t.left,position:o,top:n,width:t.width,zIndex:1}},X=function(e){var t=e.isDisabled;return{label:"container",direction:e.isRtl?"rtl":void 0,pointerEvents:t?"none":void 0,position:"relative"}},Q=function(e,t){var n=e.theme.spacing,r=e.isMulti,i=e.hasValue,a=e.selectProps.controlShouldRenderValue;return(0,o.Z)({alignItems:"center",display:r&&i&&a?"flex":"grid",flex:1,flexWrap:"wrap",WebkitOverflowScrolling:"touch",position:"relative",overflow:"hidden"},t?{}:{padding:"".concat(n.baseUnit/2,"px ").concat(2*n.baseUnit,"px")})},ee=function(){return{alignItems:"center",alignSelf:"stretch",display:"flex",flexShrink:0}},te=["size"],ne=["innerProps","isRtl","size"];var oe={name:"8mmkcg",styles:"display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0"},re=function(e){var t=e.size,n=(0,s.Z)(e,te);return(0,i.tZ)("svg",(0,r.Z)({height:t,width:t,viewBox:"0 0 20 20","aria-hidden":"true",focusable:"false",css:oe},n))},ie=function(e){return(0,i.tZ)(re,(0,r.Z)({size:20},e),(0,i.tZ)("path",{d:"M14.348 14.849c-0.469 0.469-1.229 0.469-1.697 0l-2.651-3.030-2.651 3.029c-0.469 0.469-1.229 0.469-1.697 0-0.469-0.469-0.469-1.229 0-1.697l2.758-3.15-2.759-3.152c-0.469-0.469-0.469-1.228 0-1.697s1.228-0.469 1.697 0l2.652 3.031 2.651-3.031c0.469-0.469 1.228-0.469 1.697 0s0.469 1.229 0 1.697l-2.758 3.152 2.758 3.15c0.469 0.469 0.469 1.229 0 1.698z"}))},ae=function(e){return(0,i.tZ)(re,(0,r.Z)({size:20},e),(0,i.tZ)("path",{d:"M4.516 7.548c0.436-0.446 1.043-0.481 1.576 0l3.908 3.747 3.908-3.747c0.533-0.481 1.141-0.446 1.574 0 0.436 0.445 0.408 1.197 0 1.615-0.406 0.418-4.695 4.502-4.695 4.502-0.217 0.223-0.502 0.335-0.787 0.335s-0.57-0.112-0.789-0.335c0 0-4.287-4.084-4.695-4.502s-0.436-1.17 0-1.615z"}))},se=function(e,t){var n=e.isFocused,r=e.theme,i=r.spacing.baseUnit,a=r.colors;return(0,o.Z)({label:"indicatorContainer",display:"flex",transition:"color 150ms"},t?{}:{color:n?a.neutral60:a.neutral20,padding:2*i,":hover":{color:n?a.neutral80:a.neutral40}})},ue=se,le=se,ce=function(e,t){var n=e.isDisabled,r=e.theme,i=r.spacing.baseUnit,a=r.colors;return(0,o.Z)({label:"indicatorSeparator",alignSelf:"stretch",width:1},t?{}:{backgroundColor:n?a.neutral10:a.neutral20,marginBottom:2*i,marginTop:2*i})},de=(0,i.F4)(Z||(Z=(0,l.Z)(["\n 0%, 80%, 100% { opacity: 0; }\n 40% { opacity: 1; }\n"]))),fe=function(e,t){var n=e.isFocused,r=e.size,i=e.theme,a=i.colors,s=i.spacing.baseUnit;return(0,o.Z)({label:"loadingIndicator",display:"flex",transition:"color 150ms",alignSelf:"center",fontSize:r,lineHeight:1,marginRight:r,textAlign:"center",verticalAlign:"middle"},t?{}:{color:n?a.neutral60:a.neutral20,padding:2*s})},pe=function(e){var t=e.delay,n=e.offset;return(0,i.tZ)("span",{css:(0,i.iv)({animation:"".concat(de," 1s ease-in-out ").concat(t,"ms infinite;"),backgroundColor:"currentColor",borderRadius:"1em",display:"inline-block",marginLeft:n?"1em":void 0,height:"1em",verticalAlign:"top",width:"1em"},"","")})},he=function(e,t){var n=e.isDisabled,r=e.isFocused,i=e.theme,a=i.colors,s=i.borderRadius,u=i.spacing;return(0,o.Z)({label:"control",alignItems:"center",cursor:"default",display:"flex",flexWrap:"wrap",justifyContent:"space-between",minHeight:u.controlHeight,outline:"0 !important",position:"relative",transition:"all 100ms"},t?{}:{backgroundColor:n?a.neutral5:a.neutral0,borderColor:n?a.neutral10:r?a.primary:a.neutral20,borderRadius:s,borderStyle:"solid",borderWidth:1,boxShadow:r?"0 0 0 1px ".concat(a.primary):void 0,"&:hover":{borderColor:r?a.primary:a.neutral30}})},me=function(e){var t=e.children,n=e.isDisabled,o=e.isFocused,a=e.innerRef,s=e.innerProps,u=e.menuIsOpen;return(0,i.tZ)("div",(0,r.Z)({ref:a},_(e,"control",{control:!0,"control--is-disabled":n,"control--is-focused":o,"control--menu-is-open":u}),s,{"aria-disabled":n||void 0}),t)},ve=["data"],ge=function(e,t){var n=e.theme.spacing;return t?{}:{paddingBottom:2*n.baseUnit,paddingTop:2*n.baseUnit}},ye=function(e,t){var n=e.theme,r=n.colors,i=n.spacing;return(0,o.Z)({label:"group",cursor:"default",display:"block"},t?{}:{color:r.neutral40,fontSize:"75%",fontWeight:500,marginBottom:"0.25em",paddingLeft:3*i.baseUnit,paddingRight:3*i.baseUnit,textTransform:"uppercase"})},be=function(e){var t=e.children,n=e.cx,o=e.getStyles,a=e.getClassNames,s=e.Heading,u=e.headingProps,l=e.innerProps,c=e.label,d=e.theme,f=e.selectProps;return(0,i.tZ)("div",(0,r.Z)({},_(e,"group",{group:!0}),l),(0,i.tZ)(s,(0,r.Z)({},u,{selectProps:f,theme:d,getStyles:o,getClassNames:a,cx:n}),c),(0,i.tZ)("div",null,t))},Se=["innerRef","isDisabled","isHidden","inputClassName"],_e=function(e,t){var n=e.isDisabled,r=e.value,i=e.theme,a=i.spacing,s=i.colors;return(0,o.Z)((0,o.Z)({visibility:n?"hidden":"visible",transform:r?"translateZ(0)":""},we),t?{}:{margin:a.baseUnit/2,paddingBottom:a.baseUnit/2,paddingTop:a.baseUnit/2,color:s.neutral80})},Ee={gridArea:"1 / 2",font:"inherit",minWidth:"2px",border:0,margin:0,outline:0,padding:0},we={flex:"1 1 auto",display:"inline-grid",gridArea:"1 / 1 / 2 / 3",gridTemplateColumns:"0 min-content","&:after":(0,o.Z)({content:'attr(data-value) " "',visibility:"hidden",whiteSpace:"pre"},Ee)},Re=function(e){return(0,o.Z)({label:"input",color:"inherit",background:0,opacity:e?0:1,width:"100%"},Ee)},Te=function(e,t){var n=e.theme,r=n.spacing,i=n.borderRadius,a=n.colors;return(0,o.Z)({label:"multiValue",display:"flex",minWidth:0},t?{}:{backgroundColor:a.neutral10,borderRadius:i/2,margin:r.baseUnit/2})},Ce=function(e,t){var n=e.theme,r=n.borderRadius,i=n.colors,a=e.cropWithEllipsis;return(0,o.Z)({overflow:"hidden",textOverflow:a||void 0===a?"ellipsis":void 0,whiteSpace:"nowrap"},t?{}:{borderRadius:r/2,color:i.neutral80,fontSize:"85%",padding:3,paddingLeft:6})},ke=function(e,t){var n=e.theme,r=n.spacing,i=n.borderRadius,a=n.colors,s=e.isFocused;return(0,o.Z)({alignItems:"center",display:"flex"},t?{}:{borderRadius:i/2,backgroundColor:s?a.dangerLight:void 0,paddingLeft:r.baseUnit,paddingRight:r.baseUnit,":hover":{backgroundColor:a.dangerLight,color:a.danger}})},Oe=function(e){var t=e.children,n=e.innerProps;return(0,i.tZ)("div",n,t)};var Ae=function(e){var t=e.children,n=e.components,r=e.data,a=e.innerProps,s=e.isDisabled,u=e.removeProps,l=e.selectProps,c=n.Container,d=n.Label,f=n.Remove;return(0,i.tZ)(c,{data:r,innerProps:(0,o.Z)((0,o.Z)({},_(e,"multiValue",{"multi-value":!0,"multi-value--is-disabled":s})),a),selectProps:l},(0,i.tZ)(d,{data:r,innerProps:(0,o.Z)({},_(e,"multiValueLabel",{"multi-value__label":!0})),selectProps:l},t),(0,i.tZ)(f,{data:r,innerProps:(0,o.Z)((0,o.Z)({},_(e,"multiValueRemove",{"multi-value__remove":!0})),{},{"aria-label":"Remove ".concat(t||"option")},u),selectProps:l}))},Le=function(e,t){var n=e.isDisabled,r=e.isFocused,i=e.isSelected,a=e.theme,s=a.spacing,u=a.colors;return(0,o.Z)({label:"option",cursor:"default",display:"block",fontSize:"inherit",width:"100%",userSelect:"none",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)"},t?{}:{backgroundColor:i?u.primary:r?u.primary25:"transparent",color:n?u.neutral20:i?u.neutral0:"inherit",padding:"".concat(2*s.baseUnit,"px ").concat(3*s.baseUnit,"px"),":active":{backgroundColor:n?void 0:i?u.primary:u.primary50}})},Ne=function(e,t){var n=e.theme,r=n.spacing,i=n.colors;return(0,o.Z)({label:"placeholder",gridArea:"1 / 1 / 2 / 3"},t?{}:{color:i.neutral50,marginLeft:r.baseUnit/2,marginRight:r.baseUnit/2})},Ie=function(e,t){var n=e.isDisabled,r=e.theme,i=r.spacing,a=r.colors;return(0,o.Z)({label:"singleValue",gridArea:"1 / 1 / 2 / 3",maxWidth:"100%",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},t?{}:{color:n?a.neutral40:a.neutral80,marginLeft:i.baseUnit/2,marginRight:i.baseUnit/2})},Ve={ClearIndicator:function(e){var t=e.children,n=e.innerProps;return(0,i.tZ)("div",(0,r.Z)({},_(e,"clearIndicator",{indicator:!0,"clear-indicator":!0}),n),t||(0,i.tZ)(ie,null))},Control:me,DropdownIndicator:function(e){var t=e.children,n=e.innerProps;return(0,i.tZ)("div",(0,r.Z)({},_(e,"dropdownIndicator",{indicator:!0,"dropdown-indicator":!0}),n),t||(0,i.tZ)(ae,null))},DownChevron:ae,CrossIcon:ie,Group:be,GroupHeading:function(e){var t=S(e);t.data;var n=(0,s.Z)(t,ve);return(0,i.tZ)("div",(0,r.Z)({},_(e,"groupHeading",{"group-heading":!0}),n))},IndicatorsContainer:function(e){var t=e.children,n=e.innerProps;return(0,i.tZ)("div",(0,r.Z)({},_(e,"indicatorsContainer",{indicators:!0}),n),t)},IndicatorSeparator:function(e){var t=e.innerProps;return(0,i.tZ)("span",(0,r.Z)({},t,_(e,"indicatorSeparator",{"indicator-separator":!0})))},Input:function(e){var t=e.cx,n=e.value,o=S(e),a=o.innerRef,u=o.isDisabled,l=o.isHidden,c=o.inputClassName,d=(0,s.Z)(o,Se);return(0,i.tZ)("div",(0,r.Z)({},_(e,"input",{"input-container":!0}),{"data-value":n||""}),(0,i.tZ)("input",(0,r.Z)({className:t({input:!0},c),ref:a,style:Re(l),disabled:u},d)))},LoadingIndicator:function(e){var t=e.innerProps,n=e.isRtl,a=e.size,u=void 0===a?4:a,l=(0,s.Z)(e,ne);return(0,i.tZ)("div",(0,r.Z)({},_((0,o.Z)((0,o.Z)({},l),{},{innerProps:t,isRtl:n,size:u}),"loadingIndicator",{indicator:!0,"loading-indicator":!0}),t),(0,i.tZ)(pe,{delay:0,offset:n}),(0,i.tZ)(pe,{delay:160,offset:!0}),(0,i.tZ)(pe,{delay:320,offset:!n}))},Menu:W,MenuList:function(e){var t=e.children,n=e.innerProps,o=e.innerRef,a=e.isMulti;return(0,i.tZ)("div",(0,r.Z)({},_(e,"menuList",{"menu-list":!0,"menu-list--is-multi":a}),{ref:o},n),t)},MenuPortal:function(e){var t=e.appendTo,n=e.children,s=e.controlElement,u=e.innerProps,l=e.menuPlacement,c=e.menuPosition,m=(0,d.useRef)(null),v=(0,d.useRef)(null),g=(0,d.useState)(z(l)),y=(0,a.Z)(g,2),b=y[0],S=y[1],E=(0,d.useMemo)((function(){return{setPortalPlacement:S}}),[]),w=(0,d.useState)(null),R=(0,a.Z)(w,2),T=R[0],C=R[1],k=(0,d.useCallback)((function(){if(s){var e=function(e){var t=e.getBoundingClientRect();return{bottom:t.bottom,height:t.height,left:t.left,right:t.right,top:t.top,width:t.width}}(s),t="fixed"===c?0:window.pageYOffset,n=e[b]+t;n===(null===T||void 0===T?void 0:T.offset)&&e.left===(null===T||void 0===T?void 0:T.rect.left)&&e.width===(null===T||void 0===T?void 0:T.rect.width)||C({offset:n,rect:e})}}),[s,c,b,null===T||void 0===T?void 0:T.offset,null===T||void 0===T?void 0:T.rect.left,null===T||void 0===T?void 0:T.rect.width]);(0,h.Z)((function(){k()}),[k]);var O=(0,d.useCallback)((function(){"function"===typeof v.current&&(v.current(),v.current=null),s&&m.current&&(v.current=(0,p.Me)(s,m.current,k,{elementResize:"ResizeObserver"in window}))}),[s,k]);(0,h.Z)((function(){O()}),[O]);var A=(0,d.useCallback)((function(e){m.current=e,O()}),[O]);if(!t&&"fixed"!==c||!T)return null;var L=(0,i.tZ)("div",(0,r.Z)({ref:A},_((0,o.Z)((0,o.Z)({},e),{},{offset:T.offset,position:c,rect:T.rect}),"menuPortal",{"menu-portal":!0}),u),n);return(0,i.tZ)(j.Provider,{value:E},t?(0,f.createPortal)(L,t):L)},LoadingMessage:function(e){var t=e.children,n=void 0===t?"Loading...":t,a=e.innerProps,u=(0,s.Z)(e,F);return(0,i.tZ)("div",(0,r.Z)({},_((0,o.Z)((0,o.Z)({},u),{},{children:n,innerProps:a}),"loadingMessage",{"menu-notice":!0,"menu-notice--loading":!0}),a),n)},NoOptionsMessage:function(e){var t=e.children,n=void 0===t?"No options":t,a=e.innerProps,u=(0,s.Z)(e,U);return(0,i.tZ)("div",(0,r.Z)({},_((0,o.Z)((0,o.Z)({},u),{},{children:n,innerProps:a}),"noOptionsMessage",{"menu-notice":!0,"menu-notice--no-options":!0}),a),n)},MultiValue:Ae,MultiValueContainer:Oe,MultiValueLabel:Oe,MultiValueRemove:function(e){var t=e.children,n=e.innerProps;return(0,i.tZ)("div",(0,r.Z)({role:"button"},n),t||(0,i.tZ)(ie,{size:14}))},Option:function(e){var t=e.children,n=e.isDisabled,o=e.isFocused,a=e.isSelected,s=e.innerRef,u=e.innerProps;return(0,i.tZ)("div",(0,r.Z)({},_(e,"option",{option:!0,"option--is-disabled":n,"option--is-focused":o,"option--is-selected":a}),{ref:s,"aria-disabled":n},u),t)},Placeholder:function(e){var t=e.children,n=e.innerProps;return(0,i.tZ)("div",(0,r.Z)({},_(e,"placeholder",{placeholder:!0}),n),t)},SelectContainer:function(e){var t=e.children,n=e.innerProps,o=e.isDisabled,a=e.isRtl;return(0,i.tZ)("div",(0,r.Z)({},_(e,"container",{"--is-disabled":o,"--is-rtl":a}),n),t)},SingleValue:function(e){var t=e.children,n=e.isDisabled,o=e.innerProps;return(0,i.tZ)("div",(0,r.Z)({},_(e,"singleValue",{"single-value":!0,"single-value--is-disabled":n}),o),t)},ValueContainer:function(e){var t=e.children,n=e.innerProps,o=e.isMulti,a=e.hasValue;return(0,i.tZ)("div",(0,r.Z)({},_(e,"valueContainer",{"value-container":!0,"value-container--is-multi":o,"value-container--has-value":a}),n),t)}},xe=function(e){return(0,o.Z)((0,o.Z)({},Ve),e.components)}},2926:function(e,t,n){n.d(t,{ZP:function(){return de}});var o=n(1413),r=n(29439),i=n(45987),a=n(67294),s=["defaultInputValue","defaultMenuIsOpen","defaultValue","inputValue","menuIsOpen","onChange","onInputChange","onMenuClose","onMenuOpen","value"];var u=n(87462),l=n(15671),c=n(43144),d=n(60136),f=n(29388),p=n(93433),h=n(877),m=n(42849),v=n(30845);for(var g={name:"7pg0cj-a11yText",styles:"label:a11yText;z-index:9999;border:0;clip:rect(1px, 1px, 1px, 1px);height:1px;width:1px;position:absolute;overflow:hidden;padding:0;white-space:nowrap"},y=function(e){return(0,m.tZ)("span",(0,u.Z)({css:g},e))},b={guidance:function(e){var t=e.isSearchable,n=e.isMulti,o=e.isDisabled,r=e.tabSelectsValue;switch(e.context){case"menu":return"Use Up and Down to choose options".concat(o?"":", press Enter to select the currently focused option",", press Escape to exit the menu").concat(r?", press Tab to select the option and exit the menu":"",".");case"input":return"".concat(e["aria-label"]||"Select"," is focused ").concat(t?",type to refine list":"",", press Down to open the menu, ").concat(n?" press left to focus selected values":"");case"value":return"Use left and right to toggle between focused values, press Backspace to remove the currently focused value";default:return""}},onChange:function(e){var t=e.action,n=e.label,o=void 0===n?"":n,r=e.labels,i=e.isDisabled;switch(t){case"deselect-option":case"pop-value":case"remove-value":return"option ".concat(o,", deselected.");case"clear":return"All selected options have been cleared.";case"initial-input-focus":return"option".concat(r.length>1?"s":""," ").concat(r.join(","),", selected.");case"select-option":return"option ".concat(o,i?" is disabled. Select another option.":", selected.");default:return""}},onFocus:function(e){var t=e.context,n=e.focused,o=e.options,r=e.label,i=void 0===r?"":r,a=e.selectValue,s=e.isDisabled,u=e.isSelected,l=function(e,t){return e&&e.length?"".concat(e.indexOf(t)+1," of ").concat(e.length):""};if("value"===t&&a)return"value ".concat(i," focused, ").concat(l(a,n),".");if("menu"===t){var c=s?" disabled":"",d="".concat(u?"selected":"focused").concat(c);return"option ".concat(i," ").concat(d,", ").concat(l(o,n),".")}return""},onFilter:function(e){var t=e.inputValue,n=e.resultsMessage;return"".concat(n).concat(t?" for search term "+t:"",".")}},S=function(e){var t=e.ariaSelection,n=e.focusedOption,r=e.focusedValue,i=e.focusableOptions,s=e.isFocused,u=e.selectValue,l=e.selectProps,c=e.id,d=l.ariaLiveMessages,f=l.getOptionLabel,p=l.inputValue,h=l.isMulti,v=l.isOptionDisabled,g=l.isSearchable,S=l.menuIsOpen,_=l.options,E=l.screenReaderStatus,w=l.tabSelectsValue,R=l["aria-label"],T=l["aria-live"],C=(0,a.useMemo)((function(){return(0,o.Z)((0,o.Z)({},b),d||{})}),[d]),k=(0,a.useMemo)((function(){var e,n="";if(t&&C.onChange){var r=t.option,i=t.options,a=t.removedValue,s=t.removedValues,l=t.value,c=a||r||(e=l,Array.isArray(e)?null:e),d=c?f(c):"",p=i||s||void 0,h=p?p.map(f):[],m=(0,o.Z)({isDisabled:c&&v(c,u),label:d,labels:h},t);n=C.onChange(m)}return n}),[t,C,v,u,f]),O=(0,a.useMemo)((function(){var e="",t=n||r,o=!!(n&&u&&u.includes(n));if(t&&C.onFocus){var a={focused:t,label:f(t),isDisabled:v(t,u),isSelected:o,options:i,context:t===n?"menu":"value",selectValue:u};e=C.onFocus(a)}return e}),[n,r,f,v,C,i,u]),A=(0,a.useMemo)((function(){var e="";if(S&&_.length&&C.onFilter){var t=E({count:i.length});e=C.onFilter({inputValue:p,resultsMessage:t})}return e}),[i,p,S,C,_,E]),L=(0,a.useMemo)((function(){var e="";if(C.guidance){var t=r?"value":S?"menu":"input";e=C.guidance({"aria-label":R,context:t,isDisabled:n&&v(n,u),isMulti:h,isSearchable:g,tabSelectsValue:w})}return e}),[R,n,r,h,v,g,S,C,u,w]),N="".concat(O," ").concat(A," ").concat(L),I=(0,m.tZ)(a.Fragment,null,(0,m.tZ)("span",{id:"aria-selection"},k),(0,m.tZ)("span",{id:"aria-context"},N)),V="initial-input-focus"===(null===t||void 0===t?void 0:t.action);return(0,m.tZ)(a.Fragment,null,(0,m.tZ)(y,{id:c},V&&I),(0,m.tZ)(y,{"aria-live":T,"aria-atomic":"false","aria-relevant":"additions text"},s&&!V&&I))},_=[{base:"A",letters:"A\u24b6\uff21\xc0\xc1\xc2\u1ea6\u1ea4\u1eaa\u1ea8\xc3\u0100\u0102\u1eb0\u1eae\u1eb4\u1eb2\u0226\u01e0\xc4\u01de\u1ea2\xc5\u01fa\u01cd\u0200\u0202\u1ea0\u1eac\u1eb6\u1e00\u0104\u023a\u2c6f"},{base:"AA",letters:"\ua732"},{base:"AE",letters:"\xc6\u01fc\u01e2"},{base:"AO",letters:"\ua734"},{base:"AU",letters:"\ua736"},{base:"AV",letters:"\ua738\ua73a"},{base:"AY",letters:"\ua73c"},{base:"B",letters:"B\u24b7\uff22\u1e02\u1e04\u1e06\u0243\u0182\u0181"},{base:"C",letters:"C\u24b8\uff23\u0106\u0108\u010a\u010c\xc7\u1e08\u0187\u023b\ua73e"},{base:"D",letters:"D\u24b9\uff24\u1e0a\u010e\u1e0c\u1e10\u1e12\u1e0e\u0110\u018b\u018a\u0189\ua779"},{base:"DZ",letters:"\u01f1\u01c4"},{base:"Dz",letters:"\u01f2\u01c5"},{base:"E",letters:"E\u24ba\uff25\xc8\xc9\xca\u1ec0\u1ebe\u1ec4\u1ec2\u1ebc\u0112\u1e14\u1e16\u0114\u0116\xcb\u1eba\u011a\u0204\u0206\u1eb8\u1ec6\u0228\u1e1c\u0118\u1e18\u1e1a\u0190\u018e"},{base:"F",letters:"F\u24bb\uff26\u1e1e\u0191\ua77b"},{base:"G",letters:"G\u24bc\uff27\u01f4\u011c\u1e20\u011e\u0120\u01e6\u0122\u01e4\u0193\ua7a0\ua77d\ua77e"},{base:"H",letters:"H\u24bd\uff28\u0124\u1e22\u1e26\u021e\u1e24\u1e28\u1e2a\u0126\u2c67\u2c75\ua78d"},{base:"I",letters:"I\u24be\uff29\xcc\xcd\xce\u0128\u012a\u012c\u0130\xcf\u1e2e\u1ec8\u01cf\u0208\u020a\u1eca\u012e\u1e2c\u0197"},{base:"J",letters:"J\u24bf\uff2a\u0134\u0248"},{base:"K",letters:"K\u24c0\uff2b\u1e30\u01e8\u1e32\u0136\u1e34\u0198\u2c69\ua740\ua742\ua744\ua7a2"},{base:"L",letters:"L\u24c1\uff2c\u013f\u0139\u013d\u1e36\u1e38\u013b\u1e3c\u1e3a\u0141\u023d\u2c62\u2c60\ua748\ua746\ua780"},{base:"LJ",letters:"\u01c7"},{base:"Lj",letters:"\u01c8"},{base:"M",letters:"M\u24c2\uff2d\u1e3e\u1e40\u1e42\u2c6e\u019c"},{base:"N",letters:"N\u24c3\uff2e\u01f8\u0143\xd1\u1e44\u0147\u1e46\u0145\u1e4a\u1e48\u0220\u019d\ua790\ua7a4"},{base:"NJ",letters:"\u01ca"},{base:"Nj",letters:"\u01cb"},{base:"O",letters:"O\u24c4\uff2f\xd2\xd3\xd4\u1ed2\u1ed0\u1ed6\u1ed4\xd5\u1e4c\u022c\u1e4e\u014c\u1e50\u1e52\u014e\u022e\u0230\xd6\u022a\u1ece\u0150\u01d1\u020c\u020e\u01a0\u1edc\u1eda\u1ee0\u1ede\u1ee2\u1ecc\u1ed8\u01ea\u01ec\xd8\u01fe\u0186\u019f\ua74a\ua74c"},{base:"OI",letters:"\u01a2"},{base:"OO",letters:"\ua74e"},{base:"OU",letters:"\u0222"},{base:"P",letters:"P\u24c5\uff30\u1e54\u1e56\u01a4\u2c63\ua750\ua752\ua754"},{base:"Q",letters:"Q\u24c6\uff31\ua756\ua758\u024a"},{base:"R",letters:"R\u24c7\uff32\u0154\u1e58\u0158\u0210\u0212\u1e5a\u1e5c\u0156\u1e5e\u024c\u2c64\ua75a\ua7a6\ua782"},{base:"S",letters:"S\u24c8\uff33\u1e9e\u015a\u1e64\u015c\u1e60\u0160\u1e66\u1e62\u1e68\u0218\u015e\u2c7e\ua7a8\ua784"},{base:"T",letters:"T\u24c9\uff34\u1e6a\u0164\u1e6c\u021a\u0162\u1e70\u1e6e\u0166\u01ac\u01ae\u023e\ua786"},{base:"TZ",letters:"\ua728"},{base:"U",letters:"U\u24ca\uff35\xd9\xda\xdb\u0168\u1e78\u016a\u1e7a\u016c\xdc\u01db\u01d7\u01d5\u01d9\u1ee6\u016e\u0170\u01d3\u0214\u0216\u01af\u1eea\u1ee8\u1eee\u1eec\u1ef0\u1ee4\u1e72\u0172\u1e76\u1e74\u0244"},{base:"V",letters:"V\u24cb\uff36\u1e7c\u1e7e\u01b2\ua75e\u0245"},{base:"VY",letters:"\ua760"},{base:"W",letters:"W\u24cc\uff37\u1e80\u1e82\u0174\u1e86\u1e84\u1e88\u2c72"},{base:"X",letters:"X\u24cd\uff38\u1e8a\u1e8c"},{base:"Y",letters:"Y\u24ce\uff39\u1ef2\xdd\u0176\u1ef8\u0232\u1e8e\u0178\u1ef6\u1ef4\u01b3\u024e\u1efe"},{base:"Z",letters:"Z\u24cf\uff3a\u0179\u1e90\u017b\u017d\u1e92\u1e94\u01b5\u0224\u2c7f\u2c6b\ua762"},{base:"a",letters:"a\u24d0\uff41\u1e9a\xe0\xe1\xe2\u1ea7\u1ea5\u1eab\u1ea9\xe3\u0101\u0103\u1eb1\u1eaf\u1eb5\u1eb3\u0227\u01e1\xe4\u01df\u1ea3\xe5\u01fb\u01ce\u0201\u0203\u1ea1\u1ead\u1eb7\u1e01\u0105\u2c65\u0250"},{base:"aa",letters:"\ua733"},{base:"ae",letters:"\xe6\u01fd\u01e3"},{base:"ao",letters:"\ua735"},{base:"au",letters:"\ua737"},{base:"av",letters:"\ua739\ua73b"},{base:"ay",letters:"\ua73d"},{base:"b",letters:"b\u24d1\uff42\u1e03\u1e05\u1e07\u0180\u0183\u0253"},{base:"c",letters:"c\u24d2\uff43\u0107\u0109\u010b\u010d\xe7\u1e09\u0188\u023c\ua73f\u2184"},{base:"d",letters:"d\u24d3\uff44\u1e0b\u010f\u1e0d\u1e11\u1e13\u1e0f\u0111\u018c\u0256\u0257\ua77a"},{base:"dz",letters:"\u01f3\u01c6"},{base:"e",letters:"e\u24d4\uff45\xe8\xe9\xea\u1ec1\u1ebf\u1ec5\u1ec3\u1ebd\u0113\u1e15\u1e17\u0115\u0117\xeb\u1ebb\u011b\u0205\u0207\u1eb9\u1ec7\u0229\u1e1d\u0119\u1e19\u1e1b\u0247\u025b\u01dd"},{base:"f",letters:"f\u24d5\uff46\u1e1f\u0192\ua77c"},{base:"g",letters:"g\u24d6\uff47\u01f5\u011d\u1e21\u011f\u0121\u01e7\u0123\u01e5\u0260\ua7a1\u1d79\ua77f"},{base:"h",letters:"h\u24d7\uff48\u0125\u1e23\u1e27\u021f\u1e25\u1e29\u1e2b\u1e96\u0127\u2c68\u2c76\u0265"},{base:"hv",letters:"\u0195"},{base:"i",letters:"i\u24d8\uff49\xec\xed\xee\u0129\u012b\u012d\xef\u1e2f\u1ec9\u01d0\u0209\u020b\u1ecb\u012f\u1e2d\u0268\u0131"},{base:"j",letters:"j\u24d9\uff4a\u0135\u01f0\u0249"},{base:"k",letters:"k\u24da\uff4b\u1e31\u01e9\u1e33\u0137\u1e35\u0199\u2c6a\ua741\ua743\ua745\ua7a3"},{base:"l",letters:"l\u24db\uff4c\u0140\u013a\u013e\u1e37\u1e39\u013c\u1e3d\u1e3b\u017f\u0142\u019a\u026b\u2c61\ua749\ua781\ua747"},{base:"lj",letters:"\u01c9"},{base:"m",letters:"m\u24dc\uff4d\u1e3f\u1e41\u1e43\u0271\u026f"},{base:"n",letters:"n\u24dd\uff4e\u01f9\u0144\xf1\u1e45\u0148\u1e47\u0146\u1e4b\u1e49\u019e\u0272\u0149\ua791\ua7a5"},{base:"nj",letters:"\u01cc"},{base:"o",letters:"o\u24de\uff4f\xf2\xf3\xf4\u1ed3\u1ed1\u1ed7\u1ed5\xf5\u1e4d\u022d\u1e4f\u014d\u1e51\u1e53\u014f\u022f\u0231\xf6\u022b\u1ecf\u0151\u01d2\u020d\u020f\u01a1\u1edd\u1edb\u1ee1\u1edf\u1ee3\u1ecd\u1ed9\u01eb\u01ed\xf8\u01ff\u0254\ua74b\ua74d\u0275"},{base:"oi",letters:"\u01a3"},{base:"ou",letters:"\u0223"},{base:"oo",letters:"\ua74f"},{base:"p",letters:"p\u24df\uff50\u1e55\u1e57\u01a5\u1d7d\ua751\ua753\ua755"},{base:"q",letters:"q\u24e0\uff51\u024b\ua757\ua759"},{base:"r",letters:"r\u24e1\uff52\u0155\u1e59\u0159\u0211\u0213\u1e5b\u1e5d\u0157\u1e5f\u024d\u027d\ua75b\ua7a7\ua783"},{base:"s",letters:"s\u24e2\uff53\xdf\u015b\u1e65\u015d\u1e61\u0161\u1e67\u1e63\u1e69\u0219\u015f\u023f\ua7a9\ua785\u1e9b"},{base:"t",letters:"t\u24e3\uff54\u1e6b\u1e97\u0165\u1e6d\u021b\u0163\u1e71\u1e6f\u0167\u01ad\u0288\u2c66\ua787"},{base:"tz",letters:"\ua729"},{base:"u",letters:"u\u24e4\uff55\xf9\xfa\xfb\u0169\u1e79\u016b\u1e7b\u016d\xfc\u01dc\u01d8\u01d6\u01da\u1ee7\u016f\u0171\u01d4\u0215\u0217\u01b0\u1eeb\u1ee9\u1eef\u1eed\u1ef1\u1ee5\u1e73\u0173\u1e77\u1e75\u0289"},{base:"v",letters:"v\u24e5\uff56\u1e7d\u1e7f\u028b\ua75f\u028c"},{base:"vy",letters:"\ua761"},{base:"w",letters:"w\u24e6\uff57\u1e81\u1e83\u0175\u1e87\u1e85\u1e98\u1e89\u2c73"},{base:"x",letters:"x\u24e7\uff58\u1e8b\u1e8d"},{base:"y",letters:"y\u24e8\uff59\u1ef3\xfd\u0177\u1ef9\u0233\u1e8f\xff\u1ef7\u1e99\u1ef5\u01b4\u024f\u1eff"},{base:"z",letters:"z\u24e9\uff5a\u017a\u1e91\u017c\u017e\u1e93\u1e95\u01b6\u0225\u0240\u2c6c\ua763"}],E=new RegExp("["+_.map((function(e){return e.letters})).join("")+"]","g"),w={},R=0;R<_.length;R++)for(var T=_[R],C=0;C<T.letters.length;C++)w[T.letters[C]]=T.base;var k=function(e){return e.replace(E,(function(e){return w[e]}))},O=(0,v.Z)(k),A=function(e){return e.replace(/^\s+|\s+$/g,"")},L=function(e){return"".concat(e.label," ").concat(e.value)},N=["innerRef"];function I(e){var t=e.innerRef,n=(0,i.Z)(e,N),o=(0,h.r)(n,"onExited","in","enter","exit","appear");return(0,m.tZ)("input",(0,u.Z)({ref:t},o,{css:(0,m.iv)({label:"dummyInput",background:0,border:0,caretColor:"transparent",fontSize:"inherit",gridArea:"1 / 1 / 2 / 3",outline:0,padding:0,width:1,color:"transparent",left:-100,opacity:0,position:"relative",transform:"scale(.01)"},"","")}))}var V=function(e){e.cancelable&&e.preventDefault(),e.stopPropagation()};var x=["boxSizing","height","overflow","paddingRight","position"],M={boxSizing:"border-box",overflow:"hidden",position:"relative",height:"100%"};function D(e){e.preventDefault()}function P(e){e.stopPropagation()}function U(){var e=this.scrollTop,t=this.scrollHeight,n=e+this.offsetHeight;0===e?this.scrollTop=1:n===t&&(this.scrollTop=e-1)}function F(){return"ontouchstart"in window||navigator.maxTouchPoints}var B=!("undefined"===typeof window||!window.document||!window.document.createElement),Z=0,z={capture:!1,passive:!1};var H=function(e){var t=e.target;return t.ownerDocument.activeElement&&t.ownerDocument.activeElement.blur()},j={name:"1kfdb0e",styles:"position:fixed;left:0;bottom:0;right:0;top:0"};function $(e){var t=e.children,n=e.lockEnabled,o=e.captureEnabled,r=function(e){var t=e.isEnabled,n=e.onBottomArrive,o=e.onBottomLeave,r=e.onTopArrive,i=e.onTopLeave,s=(0,a.useRef)(!1),u=(0,a.useRef)(!1),l=(0,a.useRef)(0),c=(0,a.useRef)(null),d=(0,a.useCallback)((function(e,t){if(null!==c.current){var a=c.current,l=a.scrollTop,d=a.scrollHeight,f=a.clientHeight,p=c.current,h=t>0,m=d-f-l,v=!1;m>t&&s.current&&(o&&o(e),s.current=!1),h&&u.current&&(i&&i(e),u.current=!1),h&&t>m?(n&&!s.current&&n(e),p.scrollTop=d,v=!0,s.current=!0):!h&&-t>l&&(r&&!u.current&&r(e),p.scrollTop=0,v=!0,u.current=!0),v&&V(e)}}),[n,o,r,i]),f=(0,a.useCallback)((function(e){d(e,e.deltaY)}),[d]),p=(0,a.useCallback)((function(e){l.current=e.changedTouches[0].clientY}),[]),m=(0,a.useCallback)((function(e){var t=l.current-e.changedTouches[0].clientY;d(e,t)}),[d]),v=(0,a.useCallback)((function(e){if(e){var t=!!h.s&&{passive:!1};e.addEventListener("wheel",f,t),e.addEventListener("touchstart",p,t),e.addEventListener("touchmove",m,t)}}),[m,p,f]),g=(0,a.useCallback)((function(e){e&&(e.removeEventListener("wheel",f,!1),e.removeEventListener("touchstart",p,!1),e.removeEventListener("touchmove",m,!1))}),[m,p,f]);return(0,a.useEffect)((function(){if(t){var e=c.current;return v(e),function(){g(e)}}}),[t,v,g]),function(e){c.current=e}}({isEnabled:void 0===o||o,onBottomArrive:e.onBottomArrive,onBottomLeave:e.onBottomLeave,onTopArrive:e.onTopArrive,onTopLeave:e.onTopLeave}),i=function(e){var t=e.isEnabled,n=e.accountForScrollbars,o=void 0===n||n,r=(0,a.useRef)({}),i=(0,a.useRef)(null),s=(0,a.useCallback)((function(e){if(B){var t=document.body,n=t&&t.style;if(o&&x.forEach((function(e){var t=n&&n[e];r.current[e]=t})),o&&Z<1){var i=parseInt(r.current.paddingRight,10)||0,a=document.body?document.body.clientWidth:0,s=window.innerWidth-a+i||0;Object.keys(M).forEach((function(e){var t=M[e];n&&(n[e]=t)})),n&&(n.paddingRight="".concat(s,"px"))}t&&F()&&(t.addEventListener("touchmove",D,z),e&&(e.addEventListener("touchstart",U,z),e.addEventListener("touchmove",P,z))),Z+=1}}),[o]),u=(0,a.useCallback)((function(e){if(B){var t=document.body,n=t&&t.style;Z=Math.max(Z-1,0),o&&Z<1&&x.forEach((function(e){var t=r.current[e];n&&(n[e]=t)})),t&&F()&&(t.removeEventListener("touchmove",D,z),e&&(e.removeEventListener("touchstart",U,z),e.removeEventListener("touchmove",P,z)))}}),[o]);return(0,a.useEffect)((function(){if(t){var e=i.current;return s(e),function(){u(e)}}}),[t,s,u]),function(e){i.current=e}}({isEnabled:n});return(0,m.tZ)(a.Fragment,null,n&&(0,m.tZ)("div",{onClick:H,css:j}),t((function(e){r(e),i(e)})))}var W={name:"1a0ro4n-requiredInput",styles:"label:requiredInput;opacity:0;pointer-events:none;position:absolute;bottom:0;left:0;right:0;width:100%"},G=function(e){var t=e.name,n=e.onFocus;return(0,m.tZ)("input",{required:!0,name:t,tabIndex:-1,"aria-hidden":"true",onFocus:n,css:W,value:"",onChange:function(){}})},q={clearIndicator:h.a,container:h.b,control:h.d,dropdownIndicator:h.e,group:h.g,groupHeading:h.f,indicatorsContainer:h.i,indicatorSeparator:h.h,input:h.j,loadingIndicator:h.l,loadingMessage:h.k,menu:h.m,menuList:h.n,menuPortal:h.o,multiValue:h.p,multiValueLabel:h.q,multiValueRemove:h.t,noOptionsMessage:h.u,option:h.v,placeholder:h.w,singleValue:h.x,valueContainer:h.y};var K,J={borderRadius:4,colors:{primary:"#2684FF",primary75:"#4C9AFF",primary50:"#B2D4FF",primary25:"#DEEBFF",danger:"#DE350B",dangerLight:"#FFBDAD",neutral0:"hsl(0, 0%, 100%)",neutral5:"hsl(0, 0%, 95%)",neutral10:"hsl(0, 0%, 90%)",neutral20:"hsl(0, 0%, 80%)",neutral30:"hsl(0, 0%, 70%)",neutral40:"hsl(0, 0%, 60%)",neutral50:"hsl(0, 0%, 50%)",neutral60:"hsl(0, 0%, 40%)",neutral70:"hsl(0, 0%, 30%)",neutral80:"hsl(0, 0%, 20%)",neutral90:"hsl(0, 0%, 10%)"},spacing:{baseUnit:4,controlHeight:38,menuGutter:8}},Y={"aria-live":"polite",backspaceRemovesValue:!0,blurInputOnSelect:(0,h.z)(),captureMenuScroll:!(0,h.z)(),classNames:{},closeMenuOnSelect:!0,closeMenuOnScroll:!1,components:{},controlShouldRenderValue:!0,escapeClearsValue:!1,filterOption:function(e,t){if(e.data.__isNew__)return!0;var n=(0,o.Z)({ignoreCase:!0,ignoreAccents:!0,stringify:L,trim:!0,matchFrom:"any"},K),r=n.ignoreCase,i=n.ignoreAccents,a=n.stringify,s=n.trim,u=n.matchFrom,l=s?A(t):t,c=s?A(a(e)):a(e);return r&&(l=l.toLowerCase(),c=c.toLowerCase()),i&&(l=O(l),c=k(c)),"start"===u?c.substr(0,l.length)===l:c.indexOf(l)>-1},formatGroupLabel:function(e){return e.label},getOptionLabel:function(e){return e.label},getOptionValue:function(e){return e.value},isDisabled:!1,isLoading:!1,isMulti:!1,isRtl:!1,isSearchable:!0,isOptionDisabled:function(e){return!!e.isDisabled},loadingMessage:function(){return"Loading..."},maxMenuHeight:300,minMenuHeight:140,menuIsOpen:!1,menuPlacement:"bottom",menuPosition:"absolute",menuShouldBlockScroll:!1,menuShouldScrollIntoView:!(0,h.A)(),noOptionsMessage:function(){return"No options"},openMenuOnFocus:!1,openMenuOnClick:!0,options:[],pageSize:5,placeholder:"Select...",screenReaderStatus:function(e){var t=e.count;return"".concat(t," result").concat(1!==t?"s":""," available")},styles:{},tabIndex:0,tabSelectsValue:!0,unstyled:!1};function X(e,t,n,o){return{type:"option",data:t,isDisabled:re(e,t,n),isSelected:ie(e,t,n),label:ne(e,t),value:oe(e,t),index:o}}function Q(e,t){return e.options.map((function(n,o){if("options"in n){var r=n.options.map((function(n,o){return X(e,n,t,o)})).filter((function(t){return te(e,t)}));return r.length>0?{type:"group",data:n,options:r,index:o}:void 0}var i=X(e,n,t,o);return te(e,i)?i:void 0})).filter(h.K)}function ee(e){return e.reduce((function(e,t){return"group"===t.type?e.push.apply(e,(0,p.Z)(t.options.map((function(e){return e.data})))):e.push(t.data),e}),[])}function te(e,t){var n=e.inputValue,o=void 0===n?"":n,r=t.data,i=t.isSelected,a=t.label,s=t.value;return(!se(e)||!i)&&ae(e,{label:a,value:s,data:r},o)}var ne=function(e,t){return e.getOptionLabel(t)},oe=function(e,t){return e.getOptionValue(t)};function re(e,t,n){return"function"===typeof e.isOptionDisabled&&e.isOptionDisabled(t,n)}function ie(e,t,n){if(n.indexOf(t)>-1)return!0;if("function"===typeof e.isOptionSelected)return e.isOptionSelected(t,n);var o=oe(e,t);return n.some((function(t){return oe(e,t)===o}))}function ae(e,t,n){return!e.filterOption||e.filterOption(t,n)}var se=function(e){var t=e.hideSelectedOptions,n=e.isMulti;return void 0===t?n:t},ue=1,le=function(e){(0,d.Z)(n,e);var t=(0,f.Z)(n);function n(e){var r;if((0,l.Z)(this,n),(r=t.call(this,e)).state={ariaSelection:null,focusedOption:null,focusedValue:null,inputIsHidden:!1,isFocused:!1,selectValue:[],clearFocusValueOnUpdate:!1,prevWasFocused:!1,inputIsHiddenAfterUpdate:void 0,prevProps:void 0},r.blockOptionHover=!1,r.isComposing=!1,r.commonProps=void 0,r.initialTouchX=0,r.initialTouchY=0,r.instancePrefix="",r.openAfterFocus=!1,r.scrollToFocusedOptionOnUpdate=!1,r.userIsDragging=void 0,r.controlRef=null,r.getControlRef=function(e){r.controlRef=e},r.focusedOptionRef=null,r.getFocusedOptionRef=function(e){r.focusedOptionRef=e},r.menuListRef=null,r.getMenuListRef=function(e){r.menuListRef=e},r.inputRef=null,r.getInputRef=function(e){r.inputRef=e},r.focus=r.focusInput,r.blur=r.blurInput,r.onChange=function(e,t){var n=r.props,o=n.onChange,i=n.name;t.name=i,r.ariaOnChange(e,t),o(e,t)},r.setValue=function(e,t,n){var o=r.props,i=o.closeMenuOnSelect,a=o.isMulti,s=o.inputValue;r.onInputChange("",{action:"set-value",prevInputValue:s}),i&&(r.setState({inputIsHiddenAfterUpdate:!a}),r.onMenuClose()),r.setState({clearFocusValueOnUpdate:!0}),r.onChange(e,{action:t,option:n})},r.selectOption=function(e){var t=r.props,n=t.blurInputOnSelect,o=t.isMulti,i=t.name,a=r.state.selectValue,s=o&&r.isOptionSelected(e,a),u=r.isOptionDisabled(e,a);if(s){var l=r.getOptionValue(e);r.setValue((0,h.B)(a.filter((function(e){return r.getOptionValue(e)!==l}))),"deselect-option",e)}else{if(u)return void r.ariaOnChange((0,h.C)(e),{action:"select-option",option:e,name:i});o?r.setValue((0,h.B)([].concat((0,p.Z)(a),[e])),"select-option",e):r.setValue((0,h.C)(e),"select-option")}n&&r.blurInput()},r.removeValue=function(e){var t=r.props.isMulti,n=r.state.selectValue,o=r.getOptionValue(e),i=n.filter((function(e){return r.getOptionValue(e)!==o})),a=(0,h.D)(t,i,i[0]||null);r.onChange(a,{action:"remove-value",removedValue:e}),r.focusInput()},r.clearValue=function(){var e=r.state.selectValue;r.onChange((0,h.D)(r.props.isMulti,[],null),{action:"clear",removedValues:e})},r.popValue=function(){var e=r.props.isMulti,t=r.state.selectValue,n=t[t.length-1],o=t.slice(0,t.length-1),i=(0,h.D)(e,o,o[0]||null);r.onChange(i,{action:"pop-value",removedValue:n})},r.getValue=function(){return r.state.selectValue},r.cx=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return h.E.apply(void 0,[r.props.classNamePrefix].concat(t))},r.getOptionLabel=function(e){return ne(r.props,e)},r.getOptionValue=function(e){return oe(r.props,e)},r.getStyles=function(e,t){var n=r.props.unstyled,o=q[e](t,n);o.boxSizing="border-box";var i=r.props.styles[e];return i?i(o,t):o},r.getClassNames=function(e,t){var n,o;return null===(n=(o=r.props.classNames)[e])||void 0===n?void 0:n.call(o,t)},r.getElementId=function(e){return"".concat(r.instancePrefix,"-").concat(e)},r.getComponents=function(){return(0,h.F)(r.props)},r.buildCategorizedOptions=function(){return Q(r.props,r.state.selectValue)},r.getCategorizedOptions=function(){return r.props.menuIsOpen?r.buildCategorizedOptions():[]},r.buildFocusableOptions=function(){return ee(r.buildCategorizedOptions())},r.getFocusableOptions=function(){return r.props.menuIsOpen?r.buildFocusableOptions():[]},r.ariaOnChange=function(e,t){r.setState({ariaSelection:(0,o.Z)({value:e},t)})},r.onMenuMouseDown=function(e){0===e.button&&(e.stopPropagation(),e.preventDefault(),r.focusInput())},r.onMenuMouseMove=function(e){r.blockOptionHover=!1},r.onControlMouseDown=function(e){if(!e.defaultPrevented){var t=r.props.openMenuOnClick;r.state.isFocused?r.props.menuIsOpen?"INPUT"!==e.target.tagName&&"TEXTAREA"!==e.target.tagName&&r.onMenuClose():t&&r.openMenu("first"):(t&&(r.openAfterFocus=!0),r.focusInput()),"INPUT"!==e.target.tagName&&"TEXTAREA"!==e.target.tagName&&e.preventDefault()}},r.onDropdownIndicatorMouseDown=function(e){if((!e||"mousedown"!==e.type||0===e.button)&&!r.props.isDisabled){var t=r.props,n=t.isMulti,o=t.menuIsOpen;r.focusInput(),o?(r.setState({inputIsHiddenAfterUpdate:!n}),r.onMenuClose()):r.openMenu("first"),e.preventDefault()}},r.onClearIndicatorMouseDown=function(e){e&&"mousedown"===e.type&&0!==e.button||(r.clearValue(),e.preventDefault(),r.openAfterFocus=!1,"touchend"===e.type?r.focusInput():setTimeout((function(){return r.focusInput()})))},r.onScroll=function(e){"boolean"===typeof r.props.closeMenuOnScroll?e.target instanceof HTMLElement&&(0,h.G)(e.target)&&r.props.onMenuClose():"function"===typeof r.props.closeMenuOnScroll&&r.props.closeMenuOnScroll(e)&&r.props.onMenuClose()},r.onCompositionStart=function(){r.isComposing=!0},r.onCompositionEnd=function(){r.isComposing=!1},r.onTouchStart=function(e){var t=e.touches,n=t&&t.item(0);n&&(r.initialTouchX=n.clientX,r.initialTouchY=n.clientY,r.userIsDragging=!1)},r.onTouchMove=function(e){var t=e.touches,n=t&&t.item(0);if(n){var o=Math.abs(n.clientX-r.initialTouchX),i=Math.abs(n.clientY-r.initialTouchY);r.userIsDragging=o>5||i>5}},r.onTouchEnd=function(e){r.userIsDragging||(r.controlRef&&!r.controlRef.contains(e.target)&&r.menuListRef&&!r.menuListRef.contains(e.target)&&r.blurInput(),r.initialTouchX=0,r.initialTouchY=0)},r.onControlTouchEnd=function(e){r.userIsDragging||r.onControlMouseDown(e)},r.onClearIndicatorTouchEnd=function(e){r.userIsDragging||r.onClearIndicatorMouseDown(e)},r.onDropdownIndicatorTouchEnd=function(e){r.userIsDragging||r.onDropdownIndicatorMouseDown(e)},r.handleInputChange=function(e){var t=r.props.inputValue,n=e.currentTarget.value;r.setState({inputIsHiddenAfterUpdate:!1}),r.onInputChange(n,{action:"input-change",prevInputValue:t}),r.props.menuIsOpen||r.onMenuOpen()},r.onInputFocus=function(e){r.props.onFocus&&r.props.onFocus(e),r.setState({inputIsHiddenAfterUpdate:!1,isFocused:!0}),(r.openAfterFocus||r.props.openMenuOnFocus)&&r.openMenu("first"),r.openAfterFocus=!1},r.onInputBlur=function(e){var t=r.props.inputValue;r.menuListRef&&r.menuListRef.contains(document.activeElement)?r.inputRef.focus():(r.props.onBlur&&r.props.onBlur(e),r.onInputChange("",{action:"input-blur",prevInputValue:t}),r.onMenuClose(),r.setState({focusedValue:null,isFocused:!1}))},r.onOptionHover=function(e){r.blockOptionHover||r.state.focusedOption===e||r.setState({focusedOption:e})},r.shouldHideSelectedOptions=function(){return se(r.props)},r.onValueInputFocus=function(e){e.preventDefault(),e.stopPropagation(),r.focus()},r.onKeyDown=function(e){var t=r.props,n=t.isMulti,o=t.backspaceRemovesValue,i=t.escapeClearsValue,a=t.inputValue,s=t.isClearable,u=t.isDisabled,l=t.menuIsOpen,c=t.onKeyDown,d=t.tabSelectsValue,f=t.openMenuOnFocus,p=r.state,h=p.focusedOption,m=p.focusedValue,v=p.selectValue;if(!u&&("function"!==typeof c||(c(e),!e.defaultPrevented))){switch(r.blockOptionHover=!0,e.key){case"ArrowLeft":if(!n||a)return;r.focusValue("previous");break;case"ArrowRight":if(!n||a)return;r.focusValue("next");break;case"Delete":case"Backspace":if(a)return;if(m)r.removeValue(m);else{if(!o)return;n?r.popValue():s&&r.clearValue()}break;case"Tab":if(r.isComposing)return;if(e.shiftKey||!l||!d||!h||f&&r.isOptionSelected(h,v))return;r.selectOption(h);break;case"Enter":if(229===e.keyCode)break;if(l){if(!h)return;if(r.isComposing)return;r.selectOption(h);break}return;case"Escape":l?(r.setState({inputIsHiddenAfterUpdate:!1}),r.onInputChange("",{action:"menu-close",prevInputValue:a}),r.onMenuClose()):s&&i&&r.clearValue();break;case" ":if(a)return;if(!l){r.openMenu("first");break}if(!h)return;r.selectOption(h);break;case"ArrowUp":l?r.focusOption("up"):r.openMenu("last");break;case"ArrowDown":l?r.focusOption("down"):r.openMenu("first");break;case"PageUp":if(!l)return;r.focusOption("pageup");break;case"PageDown":if(!l)return;r.focusOption("pagedown");break;case"Home":if(!l)return;r.focusOption("first");break;case"End":if(!l)return;r.focusOption("last");break;default:return}e.preventDefault()}},r.instancePrefix="react-select-"+(r.props.instanceId||++ue),r.state.selectValue=(0,h.H)(e.value),e.menuIsOpen&&r.state.selectValue.length){var i=r.buildFocusableOptions(),a=i.indexOf(r.state.selectValue[0]);r.state.focusedOption=i[a]}return r}return(0,c.Z)(n,[{key:"componentDidMount",value:function(){this.startListeningComposition(),this.startListeningToTouch(),this.props.closeMenuOnScroll&&document&&document.addEventListener&&document.addEventListener("scroll",this.onScroll,!0),this.props.autoFocus&&this.focusInput(),this.props.menuIsOpen&&this.state.focusedOption&&this.menuListRef&&this.focusedOptionRef&&(0,h.I)(this.menuListRef,this.focusedOptionRef)}},{key:"componentDidUpdate",value:function(e){var t=this.props,n=t.isDisabled,o=t.menuIsOpen,r=this.state.isFocused;(r&&!n&&e.isDisabled||r&&o&&!e.menuIsOpen)&&this.focusInput(),r&&n&&!e.isDisabled?this.setState({isFocused:!1},this.onMenuClose):r||n||!e.isDisabled||this.inputRef!==document.activeElement||this.setState({isFocused:!0}),this.menuListRef&&this.focusedOptionRef&&this.scrollToFocusedOptionOnUpdate&&((0,h.I)(this.menuListRef,this.focusedOptionRef),this.scrollToFocusedOptionOnUpdate=!1)}},{key:"componentWillUnmount",value:function(){this.stopListeningComposition(),this.stopListeningToTouch(),document.removeEventListener("scroll",this.onScroll,!0)}},{key:"onMenuOpen",value:function(){this.props.onMenuOpen()}},{key:"onMenuClose",value:function(){this.onInputChange("",{action:"menu-close",prevInputValue:this.props.inputValue}),this.props.onMenuClose()}},{key:"onInputChange",value:function(e,t){this.props.onInputChange(e,t)}},{key:"focusInput",value:function(){this.inputRef&&this.inputRef.focus()}},{key:"blurInput",value:function(){this.inputRef&&this.inputRef.blur()}},{key:"openMenu",value:function(e){var t=this,n=this.state,o=n.selectValue,r=n.isFocused,i=this.buildFocusableOptions(),a="first"===e?0:i.length-1;if(!this.props.isMulti){var s=i.indexOf(o[0]);s>-1&&(a=s)}this.scrollToFocusedOptionOnUpdate=!(r&&this.menuListRef),this.setState({inputIsHiddenAfterUpdate:!1,focusedValue:null,focusedOption:i[a]},(function(){return t.onMenuOpen()}))}},{key:"focusValue",value:function(e){var t=this.state,n=t.selectValue,o=t.focusedValue;if(this.props.isMulti){this.setState({focusedOption:null});var r=n.indexOf(o);o||(r=-1);var i=n.length-1,a=-1;if(n.length){switch(e){case"previous":a=0===r?0:-1===r?i:r-1;break;case"next":r>-1&&r<i&&(a=r+1)}this.setState({inputIsHidden:-1!==a,focusedValue:n[a]})}}}},{key:"focusOption",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"first",t=this.props.pageSize,n=this.state.focusedOption,o=this.getFocusableOptions();if(o.length){var r=0,i=o.indexOf(n);n||(i=-1),"up"===e?r=i>0?i-1:o.length-1:"down"===e?r=(i+1)%o.length:"pageup"===e?(r=i-t)<0&&(r=0):"pagedown"===e?(r=i+t)>o.length-1&&(r=o.length-1):"last"===e&&(r=o.length-1),this.scrollToFocusedOptionOnUpdate=!0,this.setState({focusedOption:o[r],focusedValue:null})}}},{key:"getTheme",value:function(){return this.props.theme?"function"===typeof this.props.theme?this.props.theme(J):(0,o.Z)((0,o.Z)({},J),this.props.theme):J}},{key:"getCommonProps",value:function(){var e=this.clearValue,t=this.cx,n=this.getStyles,o=this.getClassNames,r=this.getValue,i=this.selectOption,a=this.setValue,s=this.props,u=s.isMulti,l=s.isRtl,c=s.options;return{clearValue:e,cx:t,getStyles:n,getClassNames:o,getValue:r,hasValue:this.hasValue(),isMulti:u,isRtl:l,options:c,selectOption:i,selectProps:s,setValue:a,theme:this.getTheme()}}},{key:"hasValue",value:function(){return this.state.selectValue.length>0}},{key:"hasOptions",value:function(){return!!this.getFocusableOptions().length}},{key:"isClearable",value:function(){var e=this.props,t=e.isClearable,n=e.isMulti;return void 0===t?n:t}},{key:"isOptionDisabled",value:function(e,t){return re(this.props,e,t)}},{key:"isOptionSelected",value:function(e,t){return ie(this.props,e,t)}},{key:"filterOption",value:function(e,t){return ae(this.props,e,t)}},{key:"formatOptionLabel",value:function(e,t){if("function"===typeof this.props.formatOptionLabel){var n=this.props.inputValue,o=this.state.selectValue;return this.props.formatOptionLabel(e,{context:t,inputValue:n,selectValue:o})}return this.getOptionLabel(e)}},{key:"formatGroupLabel",value:function(e){return this.props.formatGroupLabel(e)}},{key:"startListeningComposition",value:function(){document&&document.addEventListener&&(document.addEventListener("compositionstart",this.onCompositionStart,!1),document.addEventListener("compositionend",this.onCompositionEnd,!1))}},{key:"stopListeningComposition",value:function(){document&&document.removeEventListener&&(document.removeEventListener("compositionstart",this.onCompositionStart),document.removeEventListener("compositionend",this.onCompositionEnd))}},{key:"startListeningToTouch",value:function(){document&&document.addEventListener&&(document.addEventListener("touchstart",this.onTouchStart,!1),document.addEventListener("touchmove",this.onTouchMove,!1),document.addEventListener("touchend",this.onTouchEnd,!1))}},{key:"stopListeningToTouch",value:function(){document&&document.removeEventListener&&(document.removeEventListener("touchstart",this.onTouchStart),document.removeEventListener("touchmove",this.onTouchMove),document.removeEventListener("touchend",this.onTouchEnd))}},{key:"renderInput",value:function(){var e=this.props,t=e.isDisabled,n=e.isSearchable,r=e.inputId,i=e.inputValue,s=e.tabIndex,l=e.form,c=e.menuIsOpen,d=e.required,f=this.getComponents().Input,p=this.state,m=p.inputIsHidden,v=p.ariaSelection,g=this.commonProps,y=r||this.getElementId("input"),b=(0,o.Z)((0,o.Z)((0,o.Z)({"aria-autocomplete":"list","aria-expanded":c,"aria-haspopup":!0,"aria-errormessage":this.props["aria-errormessage"],"aria-invalid":this.props["aria-invalid"],"aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"],"aria-required":d,role:"combobox"},c&&{"aria-controls":this.getElementId("listbox"),"aria-owns":this.getElementId("listbox")}),!n&&{"aria-readonly":!0}),this.hasValue()?"initial-input-focus"===(null===v||void 0===v?void 0:v.action)&&{"aria-describedby":this.getElementId("live-region")}:{"aria-describedby":this.getElementId("placeholder")});return n?a.createElement(f,(0,u.Z)({},g,{autoCapitalize:"none",autoComplete:"off",autoCorrect:"off",id:y,innerRef:this.getInputRef,isDisabled:t,isHidden:m,onBlur:this.onInputBlur,onChange:this.handleInputChange,onFocus:this.onInputFocus,spellCheck:"false",tabIndex:s,form:l,type:"text",value:i},b)):a.createElement(I,(0,u.Z)({id:y,innerRef:this.getInputRef,onBlur:this.onInputBlur,onChange:h.J,onFocus:this.onInputFocus,disabled:t,tabIndex:s,inputMode:"none",form:l,value:""},b))}},{key:"renderPlaceholderOrValue",value:function(){var e=this,t=this.getComponents(),n=t.MultiValue,o=t.MultiValueContainer,r=t.MultiValueLabel,i=t.MultiValueRemove,s=t.SingleValue,l=t.Placeholder,c=this.commonProps,d=this.props,f=d.controlShouldRenderValue,p=d.isDisabled,h=d.isMulti,m=d.inputValue,v=d.placeholder,g=this.state,y=g.selectValue,b=g.focusedValue,S=g.isFocused;if(!this.hasValue()||!f)return m?null:a.createElement(l,(0,u.Z)({},c,{key:"placeholder",isDisabled:p,isFocused:S,innerProps:{id:this.getElementId("placeholder")}}),v);if(h)return y.map((function(t,s){var l=t===b,d="".concat(e.getOptionLabel(t),"-").concat(e.getOptionValue(t));return a.createElement(n,(0,u.Z)({},c,{components:{Container:o,Label:r,Remove:i},isFocused:l,isDisabled:p,key:d,index:s,removeProps:{onClick:function(){return e.removeValue(t)},onTouchEnd:function(){return e.removeValue(t)},onMouseDown:function(e){e.preventDefault()}},data:t}),e.formatOptionLabel(t,"value"))}));if(m)return null;var _=y[0];return a.createElement(s,(0,u.Z)({},c,{data:_,isDisabled:p}),this.formatOptionLabel(_,"value"))}},{key:"renderClearIndicator",value:function(){var e=this.getComponents().ClearIndicator,t=this.commonProps,n=this.props,o=n.isDisabled,r=n.isLoading,i=this.state.isFocused;if(!this.isClearable()||!e||o||!this.hasValue()||r)return null;var s={onMouseDown:this.onClearIndicatorMouseDown,onTouchEnd:this.onClearIndicatorTouchEnd,"aria-hidden":"true"};return a.createElement(e,(0,u.Z)({},t,{innerProps:s,isFocused:i}))}},{key:"renderLoadingIndicator",value:function(){var e=this.getComponents().LoadingIndicator,t=this.commonProps,n=this.props,o=n.isDisabled,r=n.isLoading,i=this.state.isFocused;if(!e||!r)return null;return a.createElement(e,(0,u.Z)({},t,{innerProps:{"aria-hidden":"true"},isDisabled:o,isFocused:i}))}},{key:"renderIndicatorSeparator",value:function(){var e=this.getComponents(),t=e.DropdownIndicator,n=e.IndicatorSeparator;if(!t||!n)return null;var o=this.commonProps,r=this.props.isDisabled,i=this.state.isFocused;return a.createElement(n,(0,u.Z)({},o,{isDisabled:r,isFocused:i}))}},{key:"renderDropdownIndicator",value:function(){var e=this.getComponents().DropdownIndicator;if(!e)return null;var t=this.commonProps,n=this.props.isDisabled,o=this.state.isFocused,r={onMouseDown:this.onDropdownIndicatorMouseDown,onTouchEnd:this.onDropdownIndicatorTouchEnd,"aria-hidden":"true"};return a.createElement(e,(0,u.Z)({},t,{innerProps:r,isDisabled:n,isFocused:o}))}},{key:"renderMenu",value:function(){var e=this,t=this.getComponents(),n=t.Group,o=t.GroupHeading,r=t.Menu,i=t.MenuList,s=t.MenuPortal,l=t.LoadingMessage,c=t.NoOptionsMessage,d=t.Option,f=this.commonProps,p=this.state.focusedOption,m=this.props,v=m.captureMenuScroll,g=m.inputValue,y=m.isLoading,b=m.loadingMessage,S=m.minMenuHeight,_=m.maxMenuHeight,E=m.menuIsOpen,w=m.menuPlacement,R=m.menuPosition,T=m.menuPortalTarget,C=m.menuShouldBlockScroll,k=m.menuShouldScrollIntoView,O=m.noOptionsMessage,A=m.onMenuScrollToTop,L=m.onMenuScrollToBottom;if(!E)return null;var N,I=function(t,n){var o=t.type,r=t.data,i=t.isDisabled,s=t.isSelected,l=t.label,c=t.value,h=p===r,m=i?void 0:function(){return e.onOptionHover(r)},v=i?void 0:function(){return e.selectOption(r)},g="".concat(e.getElementId("option"),"-").concat(n),y={id:g,onClick:v,onMouseMove:m,onMouseOver:m,tabIndex:-1};return a.createElement(d,(0,u.Z)({},f,{innerProps:y,data:r,isDisabled:i,isSelected:s,key:g,label:l,type:o,value:c,isFocused:h,innerRef:h?e.getFocusedOptionRef:void 0}),e.formatOptionLabel(t.data,"menu"))};if(this.hasOptions())N=this.getCategorizedOptions().map((function(t){if("group"===t.type){var r=t.data,i=t.options,s=t.index,l="".concat(e.getElementId("group"),"-").concat(s),c="".concat(l,"-heading");return a.createElement(n,(0,u.Z)({},f,{key:l,data:r,options:i,Heading:o,headingProps:{id:c,data:t.data},label:e.formatGroupLabel(t.data)}),t.options.map((function(e){return I(e,"".concat(s,"-").concat(e.index))})))}if("option"===t.type)return I(t,"".concat(t.index))}));else if(y){var V=b({inputValue:g});if(null===V)return null;N=a.createElement(l,f,V)}else{var x=O({inputValue:g});if(null===x)return null;N=a.createElement(c,f,x)}var M={minMenuHeight:S,maxMenuHeight:_,menuPlacement:w,menuPosition:R,menuShouldScrollIntoView:k},D=a.createElement(h.M,(0,u.Z)({},f,M),(function(t){var n=t.ref,o=t.placerProps,s=o.placement,l=o.maxHeight;return a.createElement(r,(0,u.Z)({},f,M,{innerRef:n,innerProps:{onMouseDown:e.onMenuMouseDown,onMouseMove:e.onMenuMouseMove,id:e.getElementId("listbox")},isLoading:y,placement:s}),a.createElement($,{captureEnabled:v,onTopArrive:A,onBottomArrive:L,lockEnabled:C},(function(t){return a.createElement(i,(0,u.Z)({},f,{innerRef:function(n){e.getMenuListRef(n),t(n)},isLoading:y,maxHeight:l,focusedOption:p}),N)})))}));return T||"fixed"===R?a.createElement(s,(0,u.Z)({},f,{appendTo:T,controlElement:this.controlRef,menuPlacement:w,menuPosition:R}),D):D}},{key:"renderFormField",value:function(){var e=this,t=this.props,n=t.delimiter,o=t.isDisabled,r=t.isMulti,i=t.name,s=t.required,u=this.state.selectValue;if(s&&!this.hasValue()&&!o)return a.createElement(G,{name:i,onFocus:this.onValueInputFocus});if(i&&!o){if(r){if(n){var l=u.map((function(t){return e.getOptionValue(t)})).join(n);return a.createElement("input",{name:i,type:"hidden",value:l})}var c=u.length>0?u.map((function(t,n){return a.createElement("input",{key:"i-".concat(n),name:i,type:"hidden",value:e.getOptionValue(t)})})):a.createElement("input",{name:i,type:"hidden",value:""});return a.createElement("div",null,c)}var d=u[0]?this.getOptionValue(u[0]):"";return a.createElement("input",{name:i,type:"hidden",value:d})}}},{key:"renderLiveRegion",value:function(){var e=this.commonProps,t=this.state,n=t.ariaSelection,o=t.focusedOption,r=t.focusedValue,i=t.isFocused,s=t.selectValue,l=this.getFocusableOptions();return a.createElement(S,(0,u.Z)({},e,{id:this.getElementId("live-region"),ariaSelection:n,focusedOption:o,focusedValue:r,isFocused:i,selectValue:s,focusableOptions:l}))}},{key:"render",value:function(){var e=this.getComponents(),t=e.Control,n=e.IndicatorsContainer,o=e.SelectContainer,r=e.ValueContainer,i=this.props,s=i.className,l=i.id,c=i.isDisabled,d=i.menuIsOpen,f=this.state.isFocused,p=this.commonProps=this.getCommonProps();return a.createElement(o,(0,u.Z)({},p,{className:s,innerProps:{id:l,onKeyDown:this.onKeyDown},isDisabled:c,isFocused:f}),this.renderLiveRegion(),a.createElement(t,(0,u.Z)({},p,{innerRef:this.getControlRef,innerProps:{onMouseDown:this.onControlMouseDown,onTouchEnd:this.onControlTouchEnd},isDisabled:c,isFocused:f,menuIsOpen:d}),a.createElement(r,(0,u.Z)({},p,{isDisabled:c}),this.renderPlaceholderOrValue(),this.renderInput()),a.createElement(n,(0,u.Z)({},p,{isDisabled:c}),this.renderClearIndicator(),this.renderLoadingIndicator(),this.renderIndicatorSeparator(),this.renderDropdownIndicator())),this.renderMenu(),this.renderFormField())}}],[{key:"getDerivedStateFromProps",value:function(e,t){var n=t.prevProps,r=t.clearFocusValueOnUpdate,i=t.inputIsHiddenAfterUpdate,a=t.ariaSelection,s=t.isFocused,u=t.prevWasFocused,l=e.options,c=e.value,d=e.menuIsOpen,f=e.inputValue,p=e.isMulti,m=(0,h.H)(c),v={};if(n&&(c!==n.value||l!==n.options||d!==n.menuIsOpen||f!==n.inputValue)){var g=d?function(e,t){return ee(Q(e,t))}(e,m):[],y=r?function(e,t){var n=e.focusedValue,o=e.selectValue.indexOf(n);if(o>-1){if(t.indexOf(n)>-1)return n;if(o<t.length)return t[o]}return null}(t,m):null,b=function(e,t){var n=e.focusedOption;return n&&t.indexOf(n)>-1?n:t[0]}(t,g);v={selectValue:m,focusedOption:b,focusedValue:y,clearFocusValueOnUpdate:!1}}var S=null!=i&&e!==n?{inputIsHidden:i,inputIsHiddenAfterUpdate:void 0}:{},_=a,E=s&&u;return s&&!E&&(_={value:(0,h.D)(p,m,m[0]||null),options:m,action:"initial-input-focus"},E=!u),"initial-input-focus"===(null===a||void 0===a?void 0:a.action)&&(_=null),(0,o.Z)((0,o.Z)((0,o.Z)({},v),S),{},{prevProps:e,ariaSelection:_,prevWasFocused:E})}}]),n}(a.Component);le.defaultProps=Y;n(63394),n(73935),n(73469);var ce=(0,a.forwardRef)((function(e,t){var n=function(e){var t=e.defaultInputValue,n=void 0===t?"":t,u=e.defaultMenuIsOpen,l=void 0!==u&&u,c=e.defaultValue,d=void 0===c?null:c,f=e.inputValue,p=e.menuIsOpen,h=e.onChange,m=e.onInputChange,v=e.onMenuClose,g=e.onMenuOpen,y=e.value,b=(0,i.Z)(e,s),S=(0,a.useState)(void 0!==f?f:n),_=(0,r.Z)(S,2),E=_[0],w=_[1],R=(0,a.useState)(void 0!==p?p:l),T=(0,r.Z)(R,2),C=T[0],k=T[1],O=(0,a.useState)(void 0!==y?y:d),A=(0,r.Z)(O,2),L=A[0],N=A[1],I=(0,a.useCallback)((function(e,t){"function"===typeof h&&h(e,t),N(e)}),[h]),V=(0,a.useCallback)((function(e,t){var n;"function"===typeof m&&(n=m(e,t)),w(void 0!==n?n:e)}),[m]),x=(0,a.useCallback)((function(){"function"===typeof g&&g(),k(!0)}),[g]),M=(0,a.useCallback)((function(){"function"===typeof v&&v(),k(!1)}),[v]),D=void 0!==f?f:E,P=void 0!==p?p:C,U=void 0!==y?y:L;return(0,o.Z)((0,o.Z)({},b),{},{inputValue:D,menuIsOpen:P,onChange:I,onInputChange:V,onMenuClose:M,onMenuOpen:x,value:U})}(e);return a.createElement(le,(0,u.Z)({ref:t},n))})),de=ce},57762:function(e,t,n){n.d(t,{ZP:function(){return v}});var o=n(63366),r=n(94578),i=n(67294),a=n(73935),s=!1,u=i.createContext(null),l="unmounted",c="exited",d="entering",f="entered",p="exiting",h=function(e){function t(t,n){var o;o=e.call(this,t,n)||this;var r,i=n&&!n.isMounting?t.enter:t.appear;return o.appearStatus=null,t.in?i?(r=c,o.appearStatus=d):r=f:r=t.unmountOnExit||t.mountOnEnter?l:c,o.state={status:r},o.nextCallback=null,o}(0,r.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,o=this.props.timeout;return e=t=n=o,null!=o&&"number"!==typeof o&&(e=o.exit,t=o.enter,n=void 0!==o.appear?o.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:a.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,o=this.context?this.context.isMounting:e,r=this.props.nodeRef?[o]:[a.findDOMNode(this),o],i=r[0],u=r[1],l=this.getTimeouts(),c=o?l.appear:l.enter;!e&&!n||s?this.safeSetState({status:f},(function(){t.props.onEntered(i)})):(this.props.onEnter(i,u),this.safeSetState({status:d},(function(){t.props.onEntering(i,u),t.onTransitionEnd(c,(function(){t.safeSetState({status:f},(function(){t.props.onEntered(i,u)}))}))})))},n.performExit=function(){var e=this,t=this.props.exit,n=this.getTimeouts(),o=this.props.nodeRef?void 0:a.findDOMNode(this);t&&!s?(this.props.onExit(o),this.safeSetState({status:p},(function(){e.props.onExiting(o),e.onTransitionEnd(n.exit,(function(){e.safeSetState({status:c},(function(){e.props.onExited(o)}))}))}))):this.safeSetState({status:c},(function(){e.props.onExited(o)}))},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(o){n&&(n=!1,t.nextCallback=null,e(o))},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:a.findDOMNode(this),o=null==e&&!this.props.addEndListener;if(n&&!o){if(this.props.addEndListener){var r=this.props.nodeRef?[this.nextCallback]:[n,this.nextCallback],i=r[0],s=r[1];this.props.addEndListener(i,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,r=(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,o.Z)(t,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]));return i.createElement(u.Provider,{value:null},"function"===typeof n?n(e,r):i.cloneElement(i.Children.only(n),r))},t}(i.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"),o=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),a=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 g(e,t,n){this.props=e,this.context=t,this.refs=v,this.updater=n||h}function y(){}function b(e,t,n){this.props=e,this.context=t,this.refs=v,this.updater=n||h}g.prototype.isReactComponent={},g.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")},g.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},y.prototype=g.prototype;var S=b.prototype=new y;S.constructor=b,m(S,g.prototype),S.isPureReactComponent=!0;var _=Array.isArray,E=Object.prototype.hasOwnProperty,w={current:null},R={key:!0,ref:!0,__self:!0,__source:!0};function T(e,t,o){var r,i={},a=null,s=null;if(null!=t)for(r in void 0!==t.ref&&(s=t.ref),void 0!==t.key&&(a=""+t.key),t)E.call(t,r)&&!R.hasOwnProperty(r)&&(i[r]=t[r]);var u=arguments.length-2;if(1===u)i.children=o;else if(1<u){for(var l=Array(u),c=0;c<u;c++)l[c]=arguments[c+2];i.children=l}if(e&&e.defaultProps)for(r in u=e.defaultProps)void 0===i[r]&&(i[r]=u[r]);return{$$typeof:n,type:e,key:a,ref:s,props:i,_owner:w.current}}function C(e){return"object"===typeof e&&null!==e&&e.$$typeof===n}var k=/\/+/g;function O(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 A(e,t,r,i,a){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 o:u=!0}}if(u)return a=a(u=e),e=""===i?"."+O(u,0):i,_(a)?(r="",null!=e&&(r=e.replace(k,"$&/")+"/"),A(a,t,r,"",(function(e){return e}))):null!=a&&(C(a)&&(a=function(e,t){return{$$typeof:n,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}(a,r+(!a.key||u&&u.key===a.key?"":(""+a.key).replace(k,"$&/")+"/")+e)),t.push(a)),1;if(u=0,i=""===i?".":i+":",_(e))for(var l=0;l<e.length;l++){var c=i+O(s=e[l],l);u+=A(s,t,r,c,a)}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+=A(s=s.value,t,r,c=i+O(s,l++),a);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 o=[],r=0;return A(e,o,"","",(function(e){return t.call(n,e,r++)})),o}function N(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 I={current:null},V={transition:null},x={ReactCurrentDispatcher:I,ReactCurrentBatchConfig:V,ReactCurrentOwner:w};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(!C(e))throw Error("React.Children.only expected to receive a single React element child.");return e}},t.Component=g,t.Fragment=r,t.Profiler=a,t.PureComponent=b,t.StrictMode=i,t.Suspense=c,t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=x,t.cloneElement=function(e,t,o){if(null===e||void 0===e)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var r=m({},e.props),i=e.key,a=e.ref,s=e._owner;if(null!=t){if(void 0!==t.ref&&(a=t.ref,s=w.current),void 0!==t.key&&(i=""+t.key),e.type&&e.type.defaultProps)var u=e.type.defaultProps;for(l in t)E.call(t,l)&&!R.hasOwnProperty(l)&&(r[l]=void 0===t[l]&&void 0!==u?u[l]:t[l])}var l=arguments.length-2;if(1===l)r.children=o;else if(1<l){u=Array(l);for(var c=0;c<l;c++)u[c]=arguments[c+2];r.children=u}return{$$typeof:n,type:e.type,key:i,ref:a,props:r,_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=T,t.createFactory=function(e){var t=T.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=C,t.lazy=function(e){return{$$typeof:f,_payload:{_status:-1,_result:e},_init:N}},t.memo=function(e,t){return{$$typeof:d,type:e,compare:void 0===t?null:t}},t.startTransition=function(e){var t=V.transition;V.transition={};try{e()}finally{V.transition=t}},t.unstable_act=function(){throw Error("act(...) is not supported in production builds of React.")},t.useCallback=function(e,t){return I.current.useCallback(e,t)},t.useContext=function(e){return I.current.useContext(e)},t.useDebugValue=function(){},t.useDeferredValue=function(e){return I.current.useDeferredValue(e)},t.useEffect=function(e,t){return I.current.useEffect(e,t)},t.useId=function(){return I.current.useId()},t.useImperativeHandle=function(e,t,n){return I.current.useImperativeHandle(e,t,n)},t.useInsertionEffect=function(e,t){return I.current.useInsertionEffect(e,t)},t.useLayoutEffect=function(e,t){return I.current.useLayoutEffect(e,t)},t.useMemo=function(e,t){return I.current.useMemo(e,t)},t.useReducer=function(e,t,n){return I.current.useReducer(e,t,n)},t.useRef=function(e){return I.current.useRef(e)},t.useState=function(e){return I.current.useState(e)},t.useSyncExternalStore=function(e,t,n){return I.current.useSyncExternalStore(e,t,n)},t.useTransition=function(){return I.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 gs},Wh:function(){return cs},Zl:function(){return ys},_8:function(){return _s},cn:function(){return ds},nZ:function(){return fs},rb:function(){return bs},sJ:function(){return ms},xu:function(){return ps}});var o=n(67294),r=n(73935);var i=function(e){const t=new Error(e);if(void 0===t.stack)try{throw t}catch(n){}return t};var a=function(e){return!!e&&"function"===typeof e.then};var s=function(e,t){if(null!=e)return e;throw i(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 i("BaseLoadable")}toPromise(){throw i("BaseLoadable")}valueMaybe(){throw i("BaseLoadable")}valueOrThrow(){throw i(`Loadable expected value, but in "${this.state}" state`)}promiseMaybe(){throw i("BaseLoadable")}promiseOrThrow(){throw i(`Loadable expected promise, but in "${this.state}" state`)}errorMaybe(){throw i("BaseLoadable")}errorOrThrow(){throw i(`Loadable expected error, but in "${this.state}" state`)}is(e){return e.state===this.state&&e.contents===this.contents}map(e){throw i("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 a(t)?m(t):y(t)?t:p(t)}catch(t){return a(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(y(n)){const e=n;switch(e.state){case"hasValue":case"loading":return e.contents;case"hasError":throw e.contents}}return n})).catch((t=>{if(a(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 g(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=>y(e)?e:a(e)?m(e):p(e))));return Array.isArray(e)?t:t.map((t=>Object.getOwnPropertyNames(e).reduce(((e,n,o)=>({...e,[n]:t[o]})),{})))}function y(e){return e instanceof l}const b={of:e=>a(e)?m(e):y(e)?e:p(e),error:e=>h(e),loading:()=>v(),all:g,isLoadable:y};var S={loadableWithValue:p,loadableWithError:h,loadableWithPromise:m,loadableLoading:v,loadableAll:g,isLoadable:y,RecoilLoadable:b},_=S.loadableWithValue,E=S.loadableWithError,w=S.loadableWithPromise,R=S.loadableLoading,T=S.loadableAll,C=S.isLoadable,k=S.RecoilLoadable,O=Object.freeze({__proto__:null,loadableWithValue:_,loadableWithError:E,loadableWithPromise:w,loadableLoading:R,loadableAll:T,isLoadable:C,RecoilLoadable:k});const A={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,o;const r=null===(n=process.env[e])||void 0===n||null===(o=n.toLowerCase())||void 0===o?void 0:o.trim();if(null==r||""===r)return;if(!["true","false"].includes(r))throw i(`process.env.${e} value must be 'true', 'false', or empty: ${r}`);t("true"===r)}("RECOIL_DUPLICATE_ATOM_KEY_CHECKING_ENABLED",(e=>{A.RECOIL_DUPLICATE_ATOM_KEY_CHECKING_ENABLED=e})),function(e,t){var n;const o=null===(n=process.env[e])||void 0===n?void 0:n.trim();null!=o&&""!==o&&t(o.split(/\s*,\s*|\s+/))}("RECOIL_GKS_ENABLED",(e=>{e.forEach((e=>{A.RECOIL_GKS_ENABLED.add(e)}))})))}();var L=A;function N(e){return L.RECOIL_GKS_ENABLED.has(e)}N.setPass=e=>{L.RECOIL_GKS_ENABLED.add(e)},N.setFail=e=>{L.RECOIL_GKS_ENABLED.delete(e)},N.clear=()=>{L.RECOIL_GKS_ENABLED.clear()};var I=N;var V,x,M,D=function(e,t,{error:n}={}){return null};const P=null!==(V=o.createMutableSource)&&void 0!==V?V:o.unstable_createMutableSource,U=null!==(x=o.useMutableSource)&&void 0!==x?x:o.unstable_useMutableSource,F=null!==(M=o.useSyncExternalStore)&&void 0!==M?M:o.unstable_useSyncExternalStore;let B=!1;var Z={createMutableSource:P,useMutableSource:U,useSyncExternalStore:F,currentRendererSupportsUseSyncExternalStore:function(){var e;const{ReactCurrentDispatcher:t,ReactCurrentOwner:n}=o.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,r=null!=(null!==(e=null===t||void 0===t?void 0:t.current)&&void 0!==e?e:n.currentDispatcher).useSyncExternalStore;return!F||r||B||(B=!0,D("A React renderer without React 18+ API support is being used with React 18+.")),r},reactMode:function(){return I("recoil_transition_support")?{mode:"TRANSITION_SUPPORT",early:!0,concurrent:!0}:I("recoil_sync_external_store")&&null!=F?{mode:"SYNC_EXTERNAL_STORE",early:!0,concurrent:!1}:I("recoil_mutable_source")&&null!=U&&"undefined"!==typeof window&&!window.$disableRecoilValueMutableSource_TEMP_HACK_DO_NOT_USE?I("recoil_suppress_rerender_in_callback")?{mode:"MUTABLE_SOURCE",early:!0,concurrent:!0}:{mode:"MUTABLE_SOURCE",early:!1,concurrent:!1}:I("recoil_suppress_rerender_in_callback")?{mode:"LEGACY",early:!0,concurrent:!1}:{mode:"LEGACY",early:!1,concurrent:!1}},isFastRefreshEnabled:function(){return!1}};class z{constructor(e){u(this,"key",void 0),this.key=e}toJSON(){return{key:this.key}}}class H extends z{}class j extends z{}var $={AbstractRecoilValue:z,RecoilState:H,RecoilValueReadOnly:j,isRecoilValue:function(e){return e instanceof H||e instanceof j}},W=$.AbstractRecoilValue,G=$.RecoilState,q=$.RecoilValueReadOnly,K=$.isRecoilValue,J=Object.freeze({__proto__:null,AbstractRecoilValue:W,RecoilState:G,RecoilValueReadOnly:q,isRecoilValue:K});var Y=function(e,...t){0};var X=function(e,t){return function*(){let n=0;for(const o of e)yield t(o,n++)}()};const{isFastRefreshEnabled:Q}=Z;class ee{}const te=new ee,ne=new Map,oe=new Map;class re extends Error{}const ie=new Map;function ae(e){return ie.get(e)}var se={nodes:ne,recoilValues:oe,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 J.RecoilValueReadOnly(e.key):new J.RecoilState(e.key);return oe.set(e.key,t),t},getNode:function(e){const t=ne.get(e);if(null==t)throw new re(`Missing definition for RecoilValue: "${e}""`);return t},getNodeMaybe:function(e){return ne.get(e)},deleteNodeConfigIfPossible:function(e){var t;if(!I("recoil_memory_managament_2020"))return;const n=ne.get(e);var o;null!==n&&void 0!==n&&null!==(t=n.shouldDeleteConfigOnRelease)&&void 0!==t&&t.call(n)&&(ne.delete(e),null===(o=ae(e))||void 0===o||o(),ie.delete(e))},setConfigDeletionHandler:function(e,t){I("recoil_memory_managament_2020")&&(void 0===t?ie.delete(e):ie.set(e,t))},getConfigDeletionHandler:ae,recoilValuesForKeys:function(e){return X(e,(e=>s(oe.get(e))))},NodeMissingError:re,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={},o=Math.pow(2,5),r=o-1,i=o/2,a=o/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 o=0,r=0,i=e.length;r<i;++r)o=(o<<5)-o+e.charCodeAt(r)|0;return o},c=function(e,t){return t>>>e&r},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,o){var r=o;if(!e){var i=o.length;r=new Array(i);for(var a=0;a<i;++a)r[a]=o[a]}return r[t]=n,r},h=function(e,t,n){var o=n.length-1,r=0,i=0,a=n;if(e)r=i=t;else for(a=new Array(o);r<t;)a[i++]=n[r++];for(++r;r<=o;)a[i++]=n[r++];return e&&(a.length=o),a},m={__hamt_isEmpty:!0},v=function(e){return e===m||e&&e.__hamt_isEmpty},g=function(e,t,n,o){return{type:1,edit:e,hash:t,key:n,value:o,_modify:w}},y=function(e,t,n){return{type:2,edit:e,hash:t,children:n,_modify:R}},b=function(e,t,n){return{type:3,edit:e,mask:t,children:n,_modify:T}},S=function(e,t,n){return{type:4,edit:e,size:t,children:n,_modify:C}},_=function e(t,n,o,r,i,a){if(o===i)return y(t,o,[a,r]);var s=c(n,o),u=c(n,i);return b(t,d(s)|d(u),s===u?[e(t,n+5,o,r,i,a)]:s<u?[r,a]:[a,r])},E=function(e,t){return e===t.edit},w=function(e,t,n,o,r,i,a){if(t(i,this.key)){var u=o(this.value);return u===this.value?this:u===s?(--a.value,m):E(e,this)?(this.value=u,this):g(e,r,i,u)}var l=o();return l===s?this:(++a.value,_(e,n,this.hash,this,r,g(e,r,i,l)))},R=function(e,t,n,o,r,i,a){if(r===this.hash){var u=function(e,t,n,o,r,i,a,u){for(var l=r.length,c=0;c<l;++c){var d=r[c];if(n(a,d.key)){var f=d.value,m=i(f);return m===f?r:m===s?(--u.value,h(e,c,r)):p(e,c,g(t,o,a,m),r)}}var v=i();return v===s?r:(++u.value,p(e,l,g(t,o,a,v),r))}(E(e,this),e,t,this.hash,this.children,o,i,a);return u===this.children?this:u.length>1?y(e,this.hash,u):u[0]}var l=o();return l===s?this:(++a.value,_(e,n,this.hash,this,r,g(e,r,i,l)))},T=function(e,t,n,o,r,a,s){var u=this.mask,l=this.children,g=c(n,r),y=d(g),_=f(u,y),w=u&y,R=w?l[_]:m,T=R._modify(e,t,n+5,o,r,a,s);if(R===T)return this;var C,k=E(e,this),O=u,A=void 0;if(w&&v(T)){if(!(O&=~y))return m;if(l.length<=2&&((C=l[1^_])===m||1===C.type||2===C.type))return l[1^_];A=h(k,_,l)}else if(w||v(T))A=p(k,_,T,l);else{if(l.length>=i)return function(e,t,n,o,r){for(var i=[],a=o,s=0,u=0;a;++u)1&a&&(i[u]=r[s++]),a>>>=1;return i[t]=n,S(e,s+1,i)}(e,g,T,u,l);O|=y,A=function(e,t,n,o){var r=o.length;if(e){for(var i=r;i>=t;)o[i--]=o[i];return o[t]=n,o}for(var a=0,s=0,u=new Array(r+1);a<t;)u[s++]=o[a++];for(u[t]=n;a<r;)u[++s]=o[a++];return u}(k,_,T,l)}return k?(this.mask=O,this.children=A,this):b(e,O,A)},C=function(e,t,n,o,r,i,s){var u=this.size,l=this.children,d=c(n,r),f=l[d],h=(f||m)._modify(e,t,n+5,o,r,i,s);if(f===h)return this;var g=E(e,this),y=void 0;if(v(f)&&!v(h))++u,y=p(g,d,h,l);else if(!v(f)&&v(h)){if(--u<=a)return function(e,t,n,o){for(var r=new Array(t-1),i=0,a=0,s=0,u=o.length;s<u;++s)if(s!==n){var l=o[s];l&&!v(l)&&(r[i++]=l,a|=1<<s)}return b(e,a,r)}(e,u,d,l);y=p(g,d,m,l)}else y=p(g,d,h,l);return g?(this.size=u,this.children=y,this):S(e,u,y)};function k(e,t,n,o,r){this._editable=e,this._edit=t,this._config=n,this._root=o,this._size=r}m._modify=function(e,t,n,o,r,i,a){var u=o();return u===s?m:(++a.value,g(e,r,i,u))},k.prototype.setTree=function(e,t){return this._editable?(this._root=e,this._size=t,this):e===this._root?this:new k(this._editable,this._edit,this._config,e,t)};var O=n.tryGetHash=function(e,t,n,o){for(var r=o._root,i=0,a=o._config.keyEq;;)switch(r.type){case 1:return a(n,r.key)?r.value:e;case 2:if(t===r.hash)for(var s=r.children,u=0,l=s.length;u<l;++u){var p=s[u];if(a(n,p.key))return p.value}return e;case 3:var h=c(i,t),m=d(h);if(r.mask&m){r=r.children[f(r.mask,m)],i+=5;break}return e;case 4:if(r=r.children[c(i,t)]){i+=5;break}return e;default:return e}};k.prototype.tryGetHash=function(e,t,n){return O(e,t,n,this)};var A=n.tryGet=function(e,t,n){return O(e,n._config.hash(t),t,n)};k.prototype.tryGet=function(e,t){return A(e,t,this)};var L=n.getHash=function(e,t,n){return O(void 0,e,t,n)};k.prototype.getHash=function(e,t){return L(e,t,this)},n.get=function(e,t){return O(void 0,t._config.hash(e),e,t)},k.prototype.get=function(e,t){return A(t,e,this)};var N=n.has=function(e,t,n){return O(s,e,t,n)!==s};k.prototype.hasHash=function(e,t){return N(e,t,this)};var I=n.has=function(e,t){return N(t._config.hash(e),e,t)};k.prototype.has=function(e){return I(e,this)};var V=function(e,t){return e===t};n.make=function(e){return new k(0,0,{keyEq:e&&e.keyEq||V,hash:e&&e.hash||l},m,0)},n.empty=n.make();var x=n.isEmpty=function(e){return e&&!!v(e._root)};k.prototype.isEmpty=function(){return x(this)};var M=n.modifyHash=function(e,t,n,o){var r={value:o._size},i=o._root._modify(o._editable?o._edit:NaN,o._config.keyEq,0,e,t,n,r);return o.setTree(i,r.value)};k.prototype.modifyHash=function(e,t,n){return M(n,e,t,this)};var D=n.modify=function(e,t,n){return M(e,n._config.hash(t),t,n)};k.prototype.modify=function(e,t){return D(t,e,this)};var P=n.setHash=function(e,t,n,o){return M(u(n),e,t,o)};k.prototype.setHash=function(e,t,n){return P(e,t,n,this)};var U=n.set=function(e,t,n){return P(n._config.hash(e),e,t,n)};k.prototype.set=function(e,t){return U(e,t,this)};var F=u(s),B=n.removeHash=function(e,t,n){return M(F,e,t,n)};k.prototype.removeHash=k.prototype.deleteHash=function(e,t){return B(e,t,this)};var Z=n.remove=function(e,t){return B(t._config.hash(e),e,t)};k.prototype.remove=k.prototype.delete=function(e){return Z(e,this)};var z=n.beginMutation=function(e){return new k(e._editable+1,e._edit+1,e._config,e._root,e._size)};k.prototype.beginMutation=function(){return z(this)};var H=n.endMutation=function(e){return e._editable=e._editable&&e._editable-1,e};k.prototype.endMutation=function(){return H(this)};var j=n.mutate=function(e,t){var n=z(t);return e(n),H(n)};k.prototype.mutate=function(e){return j(e,this)};var $=function(e){return e&&W(e[0],e[1],e[2],e[3],e[4])},W=function(e,t,n,o,r){for(;n<e;){var i=t[n++];if(i&&!v(i))return G(i,o,[e,t,n,o,r])}return $(r)},G=function(e,t,n){switch(e.type){case 1:return{value:t(e),rest:n};case 2:case 4:case 3:var o=e.children;return W(o.length,o,0,t,n);default:return $(n)}},q={done:!0};function K(e){this.v=e}K.prototype.next=function(){if(!this.v)return q;var e=this.v;return this.v=$(e.rest),e},K.prototype[Symbol.iterator]=function(){return this};var J=function(e,t){return new K(G(e._root,t))},Y=function(e){return[e.key,e.value]},X=n.entries=function(e){return J(e,Y)};k.prototype.entries=k.prototype[Symbol.iterator]=function(){return X(this)};var Q=function(e){return e.key},ee=n.keys=function(e){return J(e,Q)};k.prototype.keys=function(){return ee(this)};var te=function(e){return e.value},ne=n.values=k.prototype.values=function(e){return J(e,te)};k.prototype.values=function(){return ne(this)};var oe=n.fold=function(e,t,n){var o=n._root;if(1===o.type)return e(t,o.value,o.key);for(var r=[o.children],i=void 0;i=r.pop();)for(var a=0,s=i.length;a<s;){var u=i[a++];u&&u.type&&(1===u.type?t=e(t,u.value,u.key):r.push(u.children))}return t};k.prototype.fold=function(e,t){return oe(e,t,this)};var re=n.forEach=function(e,t){return oe((function(n,o,r){return e(o,r,t)}),null,t)};k.prototype.forEach=function(e){return re(e,this)};var ie=n.count=function(e){return e._size};k.prototype.count=function(){return ie(this)},Object.defineProperty(k.prototype,"size",{get:k.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 I("recoil_hamt_2020")?new pe(e):new fe(e)}var me=he,ve=Object.freeze({__proto__:null,persistentMap:me});var ge=function(e,...t){const n=new Set;e:for(const o of e){for(const e of t)if(e.has(o))continue e;n.add(o)}return n};var ye=function(e,t){const n=new Map;return e.forEach(((e,o)=>{n.set(o,t(e,o))})),n};function be(e,t,n,o){const{nodeDeps:r,nodeToNodeSubscriptions:i}=n,a=r.get(e);if(a&&o&&a!==o.nodeDeps.get(e))return;r.set(e,t);const u=null==a?t:ge(t,a);for(const l of u){i.has(l)||i.set(l,new Set);s(i.get(l)).add(e)}if(a){const n=ge(a,t);for(const t of n){if(!i.has(t))return;const n=s(i.get(t));n.delete(e),0===n.size&&i.delete(t)}}}var Se={cloneGraph:function(e){return{nodeDeps:ye(e.nodeDeps,(e=>new Set(e))),nodeToNodeSubscriptions:ye(e.nodeToNodeSubscriptions,(e=>new Set(e)))}},graph:function(){return{nodeDeps:new Map,nodeToNodeSubscriptions:new Map}},saveDepsToStore:function(e,t,n,o){var r,i,a,s;const u=n.getState();o!==u.currentTree.version&&o!==(null===(r=u.nextTree)||void 0===r?void 0:r.version)&&o!==(null===(i=u.previousTree)||void 0===i?void 0:i.version)&&D("Tried to save dependencies to a discarded tree");const l=n.getGraph(o);if(be(e,t,l),o===(null===(a=u.previousTree)||void 0===a?void 0:a.version)){be(e,t,n.getGraph(u.currentTree.version),l)}if(o===(null===(s=u.previousTree)||void 0===s?void 0:s.version)||o===u.currentTree.version){var c;const o=null===(c=u.nextTree)||void 0===c?void 0:c.version;if(void 0!==o){be(e,t,n.getGraph(o),l)}}}};let _e=0;let Ee=0;let we=0;var Re={getNextTreeStateVersion:()=>_e++,getNextStoreID:()=>Ee++,getNextComponentID:()=>we++};const{persistentMap:Te}=ve,{graph:Ce}=Se,{getNextTreeStateVersion:ke}=Re;function Oe(){const e=ke();return{version:e,stateID:e,transactionMetadata:{},dirtyAtoms:new Set,atomValues:Te(),nonvalidatedAtoms:Te()}}var Ae={makeEmptyTreeState:Oe,makeEmptyStoreState:function(){const e=Oe();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,Ce()),retention:{referenceCounts:new Map,nodesRetainedByZone:new Map,retainablesToCheckForRelease:new Set},nodeCleanupFunctions:new Map}},getNextTreeStateVersion:ke};class Le{}var Ne={RetentionZone:Le,retentionZone:function(){return new Le}};var Ie={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 o=new Map(e);return o.set(t,n),o},mapByUpdatingInMap:function(e,t,n){const o=new Map(e);return o.set(t,n(o.get(t))),o},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 Ve=function*(e,t){let n=0;for(const o of e)t(o,n++)&&(yield o)};var xe=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:De,recoilValuesForKeys:Pe}=se,{RetentionZone:Ue}=Ne,{setByAddingToSet:Fe}=Ie,Be=Object.freeze(new Set);class Ze extends Error{}function ze(e,t,n,o){const r=e.getState();if(r.nodeCleanupFunctions.has(n))return;const i=Me(n),a=function(e,t,n){if(!I("recoil_memory_managament_2020"))return()=>{};const{nodesRetainedByZone:o}=e.getState().retention;function r(e){let n=o.get(e);n||o.set(e,n=new Set),n.add(t)}if(n instanceof Ue)r(n);else if(Array.isArray(n))for(const i of n)r(i);return()=>{if(!I("recoil_memory_managament_2020"))return;const{retention:o}=e.getState();function r(e){const n=o.nodesRetainedByZone.get(e);null===n||void 0===n||n.delete(t),n&&0===n.size&&o.nodesRetainedByZone.delete(e)}if(n instanceof Ue)r(n);else if(Array.isArray(n))for(const e of n)r(e)}}(e,n,i.retainedBy),s=i.init(e,t,o);r.nodeCleanupFunctions.set(n,(()=>{s(),a()}))}function He(e,t,n){return Me(n).peek(e,t)}function je(e,t,n){const o=new Set,r=Array.from(n),i=e.getGraph(t.version);for(let s=r.pop();s;s=r.pop()){var a;o.add(s);const e=null!==(a=i.nodeToNodeSubscriptions.get(s))&&void 0!==a?a:Be;for(const t of e)o.has(t)||r.push(t)}return o}var $e={getNodeLoadable:function(e,t,n){return ze(e,t,n,"get"),Me(n).get(e,t)},peekNodeLoadable:He,setNodeValue:function(e,t,n,o){const r=Me(n);if(null==r.set)throw new Ze(`Attempt to set read-only RecoilValue: ${n}`);const i=r.set;return ze(e,t,n,"set"),i(e,t,o)},initializeNode:function(e,t,n){ze(e,e.getState().currentTree,t,n)},cleanUpNode:function(e,t){var n;const o=e.getState();null===(n=o.nodeCleanupFunctions.get(t))||void 0===n||n(),o.nodeCleanupFunctions.delete(t)},setUnvalidatedAtomValue_DEPRECATED:function(e,t,n){var o;const r=De(t);return null===r||void 0===r||null===(o=r.invalidate)||void 0===o||o.call(r,e),{...e,atomValues:e.atomValues.clone().delete(t),nonvalidatedAtoms:e.nonvalidatedAtoms.clone().set(t,n),dirtyAtoms:Fe(e.dirtyAtoms,t)}},peekNodeInfo:function(e,t,n){const o=e.getState(),r=e.getGraph(t.version),i=Me(n).nodeType;return xe({type:i},{loadable:()=>He(e,t,n),isActive:()=>o.knownAtoms.has(n)||o.knownSelectors.has(n),isSet:()=>"selector"!==i&&t.atomValues.has(n),isModified:()=>t.dirtyAtoms.has(n),deps:()=>{var e;return Pe(null!==(e=r.nodeDeps.get(n))&&void 0!==e?e:[])},subscribers:()=>{var r,i;return{nodes:Pe(Ve(je(e,t,new Set([n])),(e=>e!==n))),components:X(null!==(r=null===(i=o.nodeToComponentSubscriptions.get(n))||void 0===i?void 0:i.values())&&void 0!==r?r:[],(([e])=>({name:e})))}}})},getDownstreamNodes:je};let We=null;var Ge={setInvalidateMemoizedSnapshot:function(e){We=e},invalidateMemoizedSnapshot:function(){var e;null===(e=We)||void 0===e||e()}};const{getDownstreamNodes:qe,getNodeLoadable:Ke,setNodeValue:Je}=$e,{getNextComponentID:Ye}=Re,{getNode:Xe,getNodeMaybe:Qe}=se,{DefaultValue:et}=se,{reactMode:tt}=Z,{AbstractRecoilValue:nt,RecoilState:ot,RecoilValueReadOnly:rt,isRecoilValue:it}=J,{invalidateMemoizedSnapshot:at}=Ge;function st(e,t,n){if("set"===n.type){const{recoilValue:o,valueOrUpdater:r}=n,a=function(e,t,{key:n},o){if("function"===typeof o){const r=Ke(e,t,n);if("loading"===r.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 D(e),i(e)}if("hasError"===r.state)throw r.contents;return o(r.contents)}return o}(e,t,o,r),s=Je(e,t,o.key,a);for(const[e,n]of s.entries())ut(t,e,n)}else if("setLoadable"===n.type){const{recoilValue:{key:e},loadable:o}=n;ut(t,e,o)}else if("markModified"===n.type){const{recoilValue:{key:e}}=n;t.dirtyAtoms.add(e)}else if("setUnvalidated"===n.type){var o;const{recoilValue:{key:e},unvalidatedValue:r}=n,i=Qe(e);null===i||void 0===i||null===(o=i.invalidate)||void 0===o||o.call(i,t),t.atomValues.delete(e),t.nonvalidatedAtoms.set(e,r),t.dirtyAtoms.add(e)}else D(`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 o=ft(n);for(const r of t)st(e,o,r);return pt(e,o),at(),o}))}function ct(e,t){if(dt.length){const n=dt[dt.length-1];let o=n.get(e);o||n.set(e,o=[]),o.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=qe(e,t,t.dirtyAtoms);for(const i of n){var o,r;null===(o=Qe(i))||void 0===o||null===(r=o.invalidate)||void 0===r||r.call(o,t)}}function ht(e,t,n){ct(e,{type:"set",recoilValue:t,valueOrUpdater:n})}var mt={RecoilValueReadOnly:rt,AbstractRecoilValue:nt,RecoilState:ot,getRecoilValueAsLoadable:function(e,{key:t},n=e.getState().currentTree){var o,r;const i=e.getState();n.version!==i.currentTree.version&&n.version!==(null===(o=i.nextTree)||void 0===o?void 0:o.version)&&n.version!==(null===(r=i.previousTree)||void 0===r?void 0:r.version)&&D("Tried to read from a discarded tree");const a=Ke(e,n,t);return"loading"===a.state&&a.contents.catch((()=>{})),a},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,o=null){const r=Ye(),i=e.getState();i.nodeToComponentSubscriptions.has(t)||i.nodeToComponentSubscriptions.set(t,new Map),s(i.nodeToComponentSubscriptions.get(t)).set(r,[null!==o&&void 0!==o?o:"<not captured>",n]);const a=tt();if(a.early&&("LEGACY"===a.mode||"MUTABLE_SOURCE"===a.mode)){const o=e.getState().nextTree;o&&o.dirtyAtoms.has(t)&&n(o)}return{release:()=>{const n=e.getState(),o=n.nodeToComponentSubscriptions.get(t);void 0!==o&&o.has(r)?(o.delete(r),0===o.size&&n.nodeToComponentSubscriptions.delete(t)):D(`Subscription missing at release time for atom ${t}. This is a bug in Recoil.`)}}},isRecoilValue:it,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&&D("Incorrect order of batch popping")}},writeLoadableToTreeState:ut,invalidateDownstreams:pt,copyTreeState:ft,refreshRecoilValue:function(e,t){var n;const{currentTree:o}=e.getState(),r=Xe(t.key);null===(n=r.clearCache)||void 0===n||n.call(r,e,o)}};var vt=function(e,t,n){const o=e.entries();let r=o.next();for(;!r.done;){const i=r.value;if(t.call(n,i[1],i[0],e))return!0;r=o.next()}return!1};const{cleanUpNode:gt}=$e,{deleteNodeConfigIfPossible:yt,getNode:bt}=se,{RetentionZone:St}=Ne,_t=new Set;function Et(e,t){const n=e.getState(),o=n.currentTree;if(n.nextTree)return void D("releaseNodesNowOnCurrentTree should only be called at the end of a batch");const r=new Set;for(const a of t)if(a instanceof St)for(const e of Rt(n,a))r.add(e);else r.add(a);const i=function(e,t){const n=e.getState(),o=n.currentTree,r=e.getGraph(o.version),i=new Set,a=new Set;return u(t),i;function u(t){const l=new Set,c=function(e,t,n,o,r){const i=e.getGraph(t.version),a=[],u=new Set;for(;n.size>0;)l(s(n.values().next().value));return a;function l(e){if(o.has(e)||r.has(e))return void n.delete(e);if(u.has(e))return;const t=i.nodeToNodeSubscriptions.get(e);if(t)for(const n of t)l(n);u.add(e),n.delete(e),a.push(e)}}(e,o,t,i,a);for(const e of c){var d;if("recoilRoot"===bt(e).retainedBy){a.add(e);continue}if((null!==(d=n.retention.referenceCounts.get(e))&&void 0!==d?d:0)>0){a.add(e);continue}if(Tt(e).some((e=>n.retention.referenceCounts.get(e)))){a.add(e);continue}const t=r.nodeToNodeSubscriptions.get(e);t&&vt(t,(e=>a.has(e)))?a.add(e):(i.add(e),l.add(e))}const f=new Set;for(const e of l)for(const t of null!==(p=r.nodeDeps.get(e))&&void 0!==p?p:_t){var p;i.has(t)||f.add(t)}f.size&&u(f)}}(e,r);for(const a of i)wt(e,o,a)}function wt(e,t,n){if(!I("recoil_memory_managament_2020"))return;gt(e,n);const o=e.getState();o.knownAtoms.delete(n),o.knownSelectors.delete(n),o.nodeTransactionSubscriptions.delete(n),o.retention.referenceCounts.delete(n);const r=Tt(n);for(const u of r){var i;null===(i=o.retention.nodesRetainedByZone.get(u))||void 0===i||i.delete(n)}t.atomValues.delete(n),t.dirtyAtoms.delete(n),t.nonvalidatedAtoms.delete(n);const a=o.graphsByVersion.get(t.version);if(a){const e=a.nodeDeps.get(n);if(void 0!==e){a.nodeDeps.delete(n);for(const t of e){var s;null===(s=a.nodeToNodeSubscriptions.get(t))||void 0===s||s.delete(n)}}a.nodeToNodeSubscriptions.delete(n)}yt(n)}function Rt(e,t){var n;return null!==(n=e.retention.nodesRetainedByZone.get(t))&&void 0!==n?n:_t}function Tt(e){const t=bt(e).retainedBy;return void 0===t||"components"===t||"recoilRoot"===t?[]:t instanceof St?[t]:t}function Ct(e,t){if(!I("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 kt={SUSPENSE_TIMEOUT_MS:12e4,updateRetainCount:function(e,t,n){var o;if(!I("recoil_memory_managament_2020"))return;const r=e.getState().retention.referenceCounts,i=(null!==(o=r.get(t))&&void 0!==o?o:0)+n;0===i?Ct(e,t):r.set(t,i)},updateRetainCountToZero:Ct,releaseScheduledRetainablesNow:function(e){if(!I("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:Ot}=r;var At={unstable_batchedUpdates:Ot};const{unstable_batchedUpdates:Lt}=At;var Nt={unstable_batchedUpdates:Lt};const{batchStart:It}=mt,{unstable_batchedUpdates:Vt}=Nt;let xt=Vt||(e=>e());var Mt={getBatcher:()=>xt,setBatcher:e=>{xt=e},batchUpdates:e=>{xt((()=>{let t=()=>{};try{t=It(),e()}finally{t()}}))}};var Dt=function*(e){for(const t of e)for(const e of t)yield e};const Pt="undefined"===typeof Window||"undefined"===typeof window,Ut="undefined"!==typeof navigator&&"ReactNative"===navigator.product;var Ft={isSSR:Pt,isReactNative:Ut,isWindow:e=>!Pt&&(e===window||e instanceof Window)};var Bt={memoizeWithArgsHash:function(e,t){let n;return(...o)=>{n||(n={});const r=t(...o);return Object.hasOwnProperty.call(n,r)||(n[r]=e(...o)),n[r]}},memoizeOneWithArgsHash:function(e,t){let n,o;return(...r)=>{const i=t(...r);return n===i||(n=i,o=e(...r)),o}},memoizeOneWithArgsHashAndInvalidation:function(e,t){let n,o;return[(...r)=>{const i=t(...r);return n===i||(n=i,o=e(...r)),o},()=>{n=null}]}};const{batchUpdates:Zt}=Mt,{initializeNode:zt,peekNodeInfo:Ht}=$e,{graph:jt}=Se,{getNextStoreID:$t}=Re,{DEFAULT_VALUE:Wt,recoilValues:Gt,recoilValuesForKeys:qt}=se,{AbstractRecoilValue:Kt,getRecoilValueAsLoadable:Jt,setRecoilValue:Yt,setUnvalidatedRecoilValue:Xt}=mt,{updateRetainCount:Qt}=kt,{setInvalidateMemoizedSnapshot:en}=Ge,{getNextTreeStateVersion:tn,makeEmptyStoreState:nn}=Ae,{isSSR:on}=Ft,{memoizeOneWithArgsHashAndInvalidation:rn}=Bt;class an{constructor(e,t){u(this,"_store",void 0),u(this,"_refCount",1),u(this,"getLoadable",(e=>(this.checkRefCount_INTERNAL(),Jt(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 qt(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?qt(Dt([t,n])):Ve(Gt.values(),(({key:e})=>!t.has(e)&&!n.has(e)))})),u(this,"getInfo_UNSTABLE",(({key:e})=>(this.checkRefCount_INTERNAL(),Ht(this._store,this._store.getState().currentTree,e)))),u(this,"map",(e=>{this.checkRefCount_INTERNAL();const t=new cn(this,Zt);return e(t),t})),u(this,"asyncMap",(async e=>{this.checkRefCount_INTERNAL();const t=new cn(this,Zt);return t.retain(),await e(t),t.autoRelease_INTERNAL(),t})),this._store={storeID:$t(),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 o=jt();return n.set(t,o),o},subscribeToTransactions:()=>({release:()=>{}}),addTransactionMetadata:()=>{throw i("Cannot subscribe to Snapshots")}};for(const n of this._store.getState().knownAtoms)zt(this._store,n,"get"),Qt(this._store,n,1);this.autoRelease_INTERNAL()}retain(){this._refCount<=0&&D("Attempt to retain() Snapshot that was already released."),this._refCount++;let e=!1;return()=>{e||(e=!0,this._release())}}autoRelease_INTERNAL(){on||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(),!I("recoil_memory_managament_2020"))return}else this._refCount}isRetained(){return this._refCount>0}checkRefCount_INTERNAL(){I("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 o=e.getState(),r=n?tn():t.version;return{currentTree:{version:n?r:t.version,stateID:n?r: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(o.knownAtoms),knownSelectors:new Set(o.knownSelectors),transactionSubscriptions:new Map,nodeTransactionSubscriptions:new Map,nodeToComponentSubscriptions:new Map,queuedComponentCallbacks_DEPRECATED:[],suspendedComponentResolvers:new Set,graphsByVersion:(new Map).set(r,e.getGraph(t.version)),retention:{referenceCounts:new Map,nodesRetainedByZone:new Map,retainablesToCheckForRelease:new Set},nodeCleanupFunctions:new Map(X(o.nodeCleanupFunctions.entries(),(([e])=>[e,()=>{}])))}}const[un,ln]=rn(((e,t)=>{var n;const o=e.getState(),r="latest"===t?null!==(n=o.nextTree)&&void 0!==n?n:o.currentTree:s(o.previousTree);return new an(sn(e,r),e.storeID)}),((e,t)=>{var n,o;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===(o=e.getState().previousTree)||void 0===o?void 0:o.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((()=>{Qt(n,e.key,1),Yt(this.getStore_INTERNAL(),e,t)}))})),u(this,"reset",(e=>{this.checkRefCount_INTERNAL();const t=this.getStore_INTERNAL();this._batch((()=>{Qt(t,e.key,1),Yt(this.getStore_INTERNAL(),e,Wt)}))})),u(this,"setUnvalidatedAtomValues_DEPRECATED",(e=>{this.checkRefCount_INTERNAL();const t=this.getStore_INTERNAL();Zt((()=>{for(const[n,o]of e.entries())Qt(t,n,1),Xt(t,new Kt(n),o)}))})),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 gn=function(...e){const t=new Set;for(const n of e)for(const e of n)t.add(e);return t};const{useRef:yn}=o;var bn=function(e){const t=yn(e);return t.current===e&&"function"===typeof e&&(t.current=e()),t};const{getNextTreeStateVersion:Sn,makeEmptyStoreState:_n}=Ae,{cleanUpNode:En,getDownstreamNodes:wn,initializeNode:Rn,setNodeValue:Tn,setUnvalidatedAtomValue_DEPRECATED:Cn}=$e,{graph:kn}=Se,{cloneGraph:On}=Se,{getNextStoreID:An}=Re,{createMutableSource:Ln,reactMode:Nn}=Z,{applyAtomValueWrites:In}=mt,{releaseScheduledRetainablesNow:Vn}=kt,{freshSnapshot:xn}=vn,{useCallback:Mn,useContext:Dn,useEffect:Pn,useMemo:Un,useRef:Fn,useState:Bn}=o;function Zn(){throw i("This component must be used inside a <RecoilRoot> component.")}const zn=Object.freeze({storeID:An(),getState:Zn,replaceState:Zn,getGraph:Zn,subscribeToTransactions:Zn,addTransactionMetadata:Zn});let Hn=!1;function jn(e){if(Hn)throw i("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){I("recoil_memory_managament_2020")&&I("recoil_release_on_cascading_update_killswitch_2021")&&t.commitDepth>0&&Vn(e);const n=t.currentTree.version,o=Sn();t.nextTree={...t.currentTree,version:o,stateID:o,dirtyAtoms:new Set,transactionMetadata:{}},t.graphsByVersion.set(o,On(s(t.graphsByVersion.get(n))))}}const $n=o.createContext({current:zn}),Wn=()=>Dn($n),Gn=o.createContext(null);function qn(e,t,n){const o=wn(e,n,n.dirtyAtoms);for(const r of o){const e=t.nodeToComponentSubscriptions.get(r);if(e)for(const[t,[o,r]]of e)r(n)}}function Kn(e){const t=e.getState(),n=t.currentTree,o=n.dirtyAtoms;if(o.size){for(const[n,r]of t.nodeTransactionSubscriptions)if(o.has(n))for(const[t,o]of r)o(e);for(const[n,o]of t.transactionSubscriptions)o(e);(!Nn().early||t.suspendedComponentResolvers.size>0)&&(qn(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 Jn({setNotifyBatcherOfChange:e}){const t=Wn(),[,n]=Bn([]);return e((()=>n({}))),Pn((()=>(e((()=>n({}))),()=>{e((()=>{}))})),[e]),Pn((()=>{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,Kn(e),null!=t.previousTree?t.graphsByVersion.delete(t.previousTree.version):D("Ended batch with no previous state, which is unexpected","recoil"),t.previousTree=null,I("recoil_memory_managament_2020")&&null==n&&Vn(e)}finally{t.commitDepth--}}(t.current)}))})),null}let Yn=0;function Xn({initializeState_DEPRECATED:e,initializeState:t,store_INTERNAL:n,children:r}){let i;const a=e=>{const t=i.current.graphsByVersion;if(t.has(e))return s(t.get(e));const n=kn();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 o=Yn++;return s(n.get(t)).set(o,e),{release:()=>{const e=n.get(t);e&&(e.delete(o),0===e.size&&n.delete(t))}}}},l=e=>{jn(p.current);for(const t of Object.keys(e))s(p.current.getState().nextTree).transactionMetadata[t]=e[t]},c=e=>{jn(p.current);const t=s(i.current.nextTree);let n;try{Hn=!0,n=e(t)}finally{Hn=!1}n!==t&&(i.current.nextTree=n,Nn().early&&qn(p.current,i.current,n),s(d.current)())},d=Fn(null),f=Mn((e=>{d.current=e}),[d]),p=bn((()=>null!==n&&void 0!==n?n:{storeID:An(),getState:()=>i.current,replaceState:c,getGraph:a,subscribeToTransactions:u,addTransactionMetadata:l}));null!=n&&(p.current=n),i=bn((()=>null!=e?function(e,t){const n=_n();return t({set:(t,o)=>{const r=n.currentTree,i=Tn(e,r,t.key,o),a=new Set(i.keys()),s=r.nonvalidatedAtoms.clone();for(const e of a)s.delete(e);n.currentTree={...r,dirtyAtoms:gn(r.dirtyAtoms,a),atomValues:In(r.atomValues,i),nonvalidatedAtoms:s}},setUnvalidatedAtomValues:e=>{e.forEach(((e,t)=>{n.currentTree=Cn(n.currentTree,t,e)}))}}),n}(p.current,e):null!=t?function(e){const t=xn(e),n=t.getStore_INTERNAL().getState();return t.retain(),n.nodeCleanupFunctions.forEach((e=>e())),n.nodeCleanupFunctions.clear(),n}(t):_n()));const h=Un((()=>null===Ln||void 0===Ln?void 0:Ln(i,(()=>i.current.currentTree.version))),[i]);return Pn((()=>{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]),o.createElement($n.Provider,{value:p},o.createElement(Gn.Provider,{value:h},o.createElement(Jn,{setNotifyBatcherOfChange:f}),r))}var Qn={RecoilRoot:function(e){const{override:t,...n}=e,r=Wn();return!1===t&&r.current!==zn?e.children:o.createElement(Xn,n)},useStoreRef:Wn,useRecoilMutableSource:function(){const e=Dn(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 Wn().current.storeID},notifyComponents_FOR_TESTING:qn,sendEndOfBatchNotifications_FOR_TESTING:Kn};var eo=function(e,t){if(e===t)return!0;if(e.length!==t.length)return!1;for(let n=0,o=e.length;n<o;n++)if(e[n]!==t[n])return!1;return!0};const{useEffect:to,useRef:no}=o;var oo=function(e){const t=no();return to((()=>{t.current=e})),t.current};const{useStoreRef:ro}=Qn,{SUSPENSE_TIMEOUT_MS:io}=kt,{updateRetainCount:ao}=kt,{RetentionZone:so}=Ne,{useEffect:uo,useRef:lo}=o,{isSSR:co}=Ft;var fo=function(e){if(I("recoil_memory_managament_2020"))return function(e){const t=Array.isArray(e)?e:[e],n=t.map((e=>e instanceof so?e:e.key)),o=ro();uo((()=>{if(!I("recoil_memory_managament_2020"))return;const e=o.current;if(r.current&&!co)window.clearTimeout(r.current),r.current=null;else for(const t of n)ao(e,t,1);return()=>{for(const t of n)ao(e,t,-1)}}),[o,...n]);const r=lo(),i=oo(n);if(!co&&(void 0===i||!eo(i,n))){const e=o.current;for(const t of n)ao(e,t,1);if(i)for(const t of i)ao(e,t,-1);r.current&&window.clearTimeout(r.current),r.current=window.setTimeout((()=>{r.current=null;for(const t of n)ao(e,t,-1)}),io)}}(e)};var po=function(){return"<component name not available>"};const{batchUpdates:ho}=Mt,{DEFAULT_VALUE:mo}=se,{currentRendererSupportsUseSyncExternalStore:vo,reactMode:go,useMutableSource:yo,useSyncExternalStore:bo}=Z,{useRecoilMutableSource:So,useStoreRef:_o}=Qn,{isRecoilValue:Eo}=J,{AbstractRecoilValue:wo,getRecoilValueAsLoadable:Ro,setRecoilValue:To,setUnvalidatedRecoilValue:Co,subscribeToRecoilValue:ko}=mt,{useCallback:Oo,useEffect:Ao,useMemo:Lo,useRef:No,useState:Io}=o,{setByAddingToSet:Vo}=Ie,{isSSR:xo}=Ft;function Mo(e,t,n){if("hasValue"===e.state)return e.contents;if("loading"===e.state){throw new Promise((t=>{const o=n.current.getState().suspendedComponentResolvers;o.add(t),xo&&a(e.contents)&&e.contents.finally((()=>{o.delete(t)}))}))}throw"hasError"===e.state?e.contents:i(`Invalid value of loadable atom "${t.key}"`)}function Do(e){const t=_o(),n=po(),o=Oo((()=>{var n;const o=t.current,r=o.getState(),i=go().early&&null!==(n=r.nextTree)&&void 0!==n?n:r.currentTree;return{loadable:Ro(o,e,i),key:e.key}}),[t,e]),r=Oo((e=>{let t;return()=>{var n,o;const r=e();return null!==(n=t)&&void 0!==n&&n.loadable.is(r.loadable)&&(null===(o=t)||void 0===o?void 0:o.key)===r.key?t:(t=r,r)}}),[]),i=Lo((()=>r(o)),[o,r]),a=Oo((o=>{const r=t.current;return ko(r,e,o,n).release}),[t,e,n]);return bo(a,i,i).loadable}function Po(e){const t=_o(),n=Oo((()=>{var n;const o=t.current,r=o.getState(),i=go().early&&null!==(n=r.nextTree)&&void 0!==n?n:r.currentTree;return Ro(o,e,i)}),[t,e]),o=Oo((()=>n()),[n]),r=po(),a=Oo(((o,i)=>{const a=t.current;return ko(a,e,(()=>{if(!I("recoil_suppress_rerender_in_callback"))return i();const e=n();l.current.is(e)||i(),l.current=e}),r).release}),[t,e,r,n]),s=So();if(null==s)throw i("Recoil hooks must be used in components contained within a <RecoilRoot> component.");const u=yo(s,o,a),l=No(u);return Ao((()=>{l.current=u})),u}function Uo(e){const t=_o(),n=po(),o=Oo((()=>{var n;const o=t.current,r=o.getState(),i=go().early&&null!==(n=r.nextTree)&&void 0!==n?n:r.currentTree;return Ro(o,e,i)}),[t,e]),r=Oo((()=>({loadable:o(),key:e.key})),[o,e.key]),i=Oo((e=>{const t=r();return e.loadable.is(t.loadable)&&e.key===t.key?e:t}),[r]);Ao((()=>{const o=ko(t.current,e,(e=>{s(i)}),n);return s(i),o.release}),[n,e,t,i]);const[a,s]=Io(r);return a.key!==e.key?r().loadable:a.loadable}function Fo(e){const t=_o(),[,n]=Io([]),o=po(),r=Oo((()=>{var n;const o=t.current,r=o.getState(),i=go().early&&null!==(n=r.nextTree)&&void 0!==n?n:r.currentTree;return Ro(o,e,i)}),[t,e]),i=r(),a=No(i);return Ao((()=>{a.current=i})),Ao((()=>{const i=t.current,s=i.getState(),u=ko(i,e,(e=>{var t;if(!I("recoil_suppress_rerender_in_callback"))return n([]);const o=r();null!==(t=a.current)&&void 0!==t&&t.is(o)||n(o),a.current=o}),o);if(s.nextTree)i.getState().queuedComponentCallbacks_DEPRECATED.push((()=>{a.current=null,n([])}));else{var l;if(!I("recoil_suppress_rerender_in_callback"))return n([]);const e=r();null!==(l=a.current)&&void 0!==l&&l.is(e)||n(e),a.current=e}return u.release}),[o,r,e,t]),i}function Bo(e){return I("recoil_memory_managament_2020")&&fo(e),{TRANSITION_SUPPORT:Uo,SYNC_EXTERNAL_STORE:vo()?Do:Uo,MUTABLE_SOURCE:Po,LEGACY:Fo}[go().mode](e)}function Zo(e){const t=_o();return Mo(Bo(e),e,t)}function zo(e){const t=_o();return Oo((n=>{To(t.current,e,n)}),[t,e])}function Ho(e){return I("recoil_memory_managament_2020")&&fo(e),Uo(e)}function jo(e){const t=_o();return Mo(Ho(e),e,t)}var $o={recoilComponentGetRecoilValueCount_FOR_TESTING:{current:0},useRecoilInterface:function(){const e=po(),t=_o(),[,n]=Io([]),o=No(new Set);o.current=new Set;const r=No(new Set),i=No(new Map),a=Oo((e=>{const t=i.current.get(e);t&&(t.release(),i.current.delete(e))}),[i]),s=Oo(((e,t)=>{i.current.has(t)&&n([])}),[]);return Ao((()=>{const n=t.current;ge(o.current,r.current).forEach((t=>{if(i.current.has(t))return void Y(`Double subscription to RecoilValue "${t}"`);const o=ko(n,new wo(t),(e=>s(e,t)),e);i.current.set(t,o);n.getState().nextTree?n.getState().queuedComponentCallbacks_DEPRECATED.push((()=>{s(n.getState(),t)})):s(n.getState(),t)})),ge(r.current,o.current).forEach((e=>{a(e)})),r.current=o.current})),Ao((()=>{const n=i.current;return ge(o.current,new Set(n.keys())).forEach((o=>{const r=ko(t.current,new wo(o),(e=>s(e,o)),e);n.set(o,r)})),()=>n.forEach(((e,t)=>a(t)))}),[e,t,a,s]),Lo((()=>{function e(e){return n=>{To(t.current,e,n)}}function n(e){var n;o.current.has(e.key)||(o.current=Vo(o.current,e.key));const r=t.current.getState();return Ro(t.current,e,go().early&&null!==(n=r.nextTree)&&void 0!==n?n:r.currentTree)}function r(e){return Mo(n(e),e,t)}return{getRecoilValue:r,getRecoilValueLoadable:n,getRecoilState:function(t){return[r(t),e(t)]},getRecoilStateLoadable:function(t){return[n(t),e(t)]},getSetRecoilState:e,getResetRecoilState:function(e){return()=>To(t.current,e,mo)}}}),[o,t])},useRecoilState:function(e){return[Zo(e),zo(e)]},useRecoilStateLoadable:function(e){return[Bo(e),zo(e)]},useRecoilValue:Zo,useRecoilValueLoadable:Bo,useResetRecoilState:function(e){const t=_o();return Oo((()=>{To(t.current,e,mo)}),[t,e])},useSetRecoilState:zo,useSetUnvalidatedAtomValues:function(){const e=_o();return(t,n={})=>{ho((()=>{e.current.addTransactionMetadata(n),t.forEach(((t,n)=>Co(e.current,new wo(n),t)))}))}},useRecoilValueLoadable_TRANSITION_SUPPORT_UNSTABLE:Ho,useRecoilValue_TRANSITION_SUPPORT_UNSTABLE:jo,useRecoilState_TRANSITION_SUPPORT_UNSTABLE:function(e){return[jo(e),zo(e)]}};var Wo=function(e,t){const n=new Map;for(const[o,r]of e)t(r,o)&&n.set(o,r);return n};var Go=function(e,t){const n=new Set;for(const o of e)t(o)&&n.add(o);return n};var qo=function(...e){const t=new Map;for(let n=0;n<e.length;n++){const o=e[n].keys();let r;for(;!(r=o.next()).done;)t.set(r.value,e[n].get(r.value))}return t};const{batchUpdates:Ko}=Mt,{DEFAULT_VALUE:Jo,getNode:Yo,nodes:Xo}=se,{useStoreRef:Qo}=Qn,{AbstractRecoilValue:er,setRecoilValueLoadable:tr}=mt,{SUSPENSE_TIMEOUT_MS:nr}=kt,{cloneSnapshot:or}=vn,{useCallback:rr,useEffect:ir,useRef:ar,useState:sr}=o,{isSSR:ur}=Ft;function lr(e){const t=Qo();ir((()=>t.current.subscribeToTransactions(e).release),[e,t])}function cr(e){const t=e.atomValues.toMap(),n=ye(Wo(t,((e,t)=>{const n=Yo(t).persistence_UNSTABLE;return null!=n&&"none"!==n.type&&"hasValue"===e.state})),(e=>e.contents));return qo(e.nonvalidatedAtoms.toMap(),n)}function dr(e,t){var n;const o=e.getState(),r=null!==(n=o.nextTree)&&void 0!==n?n:o.currentTree,i=t.getStore_INTERNAL().getState().currentTree;Ko((()=>{const n=new Set;for(const e of[r.atomValues.keys(),i.atomValues.keys()])for(const t of e){var o,a;(null===(o=r.atomValues.get(t))||void 0===o?void 0:o.contents)!==(null===(a=i.atomValues.get(t))||void 0===a?void 0:a.contents)&&Yo(t).shouldRestoreFromSnapshots&&n.add(t)}n.forEach((t=>{tr(e,new er(t),i.atomValues.has(t)?s(i.atomValues.get(t)):Jo)})),e.replaceState((e=>({...e,stateID:t.getID()})))}))}var fr={useRecoilSnapshot:function(){const e=Qo(),[t,n]=sr((()=>or(e.current))),o=oo(t),r=ar(),i=ar();if(lr(rr((e=>n(or(e))),[])),ir((()=>{const e=t.retain();var n;r.current&&!ur&&(window.clearTimeout(r.current),r.current=null,null===(n=i.current)||void 0===n||n.call(i),i.current=null);return()=>{window.setTimeout(e,10)}}),[t]),o!==t&&!ur){var a;if(r.current)window.clearTimeout(r.current),r.current=null,null===(a=i.current)||void 0===a||a.call(i),i.current=null;i.current=t.retain(),r.current=window.setTimeout((()=>{var e;r.current=null,null===(e=i.current)||void 0===e||e.call(i),i.current=null}),nr)}return t},gotoSnapshot:dr,useGotoRecoilSnapshot:function(){const e=Qo();return rr((t=>dr(e.current,t)),[e])},useRecoilTransactionObserver:function(e){lr(rr((t=>{const n=or(t,"latest"),o=or(t,"previous");e({snapshot:n,previousSnapshot:o})}),[e]))},useTransactionObservation_DEPRECATED:function(e){lr(rr((t=>{let n=t.getState().previousTree;const o=t.getState().currentTree;n||(D("Transaction subscribers notified without a previous tree being present -- this is a bug in Recoil"),n=t.getState().currentTree);const r=cr(o),i=cr(n),a=ye(Xo,(e=>{var t,n,o,r;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!==(o=null===(r=e.persistence_UNSTABLE)||void 0===r?void 0:r.backButton)&&void 0!==o&&o}}})),s=Go(o.dirtyAtoms,(e=>r.has(e)||i.has(e)));e({atomValues:r,previousAtomValues:i,atomInfo:a,modifiedAtoms:s,transactionMetadata:{...o.transactionMetadata}})}),[e]))},useTransactionSubscription_DEPRECATED:lr};const{peekNodeInfo:pr}=$e,{useStoreRef:hr}=Qn;var mr=function(){const e=hr();return({key:t})=>pr(e.current,e.current.getState().currentTree,t)};const{reactMode:vr}=Z,{RecoilRoot:gr,useStoreRef:yr}=Qn,{useMemo:br}=o;var Sr=function(){"MUTABLE_SOURCE"===vr().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=yr().current;return br((()=>function({children:t}){return o.createElement(gr,{store_INTERNAL:e},t)}),[e])};const{loadableWithValue:_r}=O,{initializeNode:Er}=$e,{DEFAULT_VALUE:wr,getNode:Rr}=se,{copyTreeState:Tr,getRecoilValueAsLoadable:Cr,invalidateDownstreams:kr,writeLoadableToTreeState:Or}=mt;function Ar(e){return"atom"===Rr(e.key).nodeType}class Lr{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(!Ar(e))throw i("Reading selectors within atomicUpdate is not supported");const t=Cr(this._store,e,this._treeState);if("hasValue"===t.state)return t.contents;throw"hasError"===t.state?t.contents:i(`Expected Recoil atom ${e.key} to have a value, but it is in a loading state.`)})),u(this,"set",((e,t)=>{if(!Ar(e))throw i("Setting selectors within atomicUpdate is not supported");if("function"===typeof t){const n=this.get(e);this._changes.set(e.key,t(n))}else Er(this._store,e.key,"set"),this._changes.set(e.key,t)})),u(this,"reset",(e=>{this.set(e,wr)})),this._store=e,this._treeState=t,this._changes=new Map}newTreeState_INTERNAL(){if(0===this._changes.size)return this._treeState;const e=Tr(this._treeState);for(const[t,n]of this._changes)Or(e,t,_r(n));return kr(this._store,e),e}}var Nr=function(e){return t=>{e.replaceState((n=>{const o=new Lr(e,n);return t(o),o.newTreeState_INTERNAL()}))}},Ir=Nr,Vr=Object.freeze({__proto__:null,atomicUpdater:Ir});var xr=function(e,t){if(!e)throw new Error(t)};const{atomicUpdater:Mr}=Vr,{batchUpdates:Dr}=Mt,{DEFAULT_VALUE:Pr}=se,{useStoreRef:Ur}=Qn,{refreshRecoilValue:Fr,setRecoilValue:Br}=mt,{cloneSnapshot:Zr}=vn,{gotoSnapshot:zr}=fr,{useCallback:Hr}=o;class jr{}const $r=new jr;function Wr(e,t,n,o){let r,s=$r;var u;(Dr((()=>{const a="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 i(a);const u=xe({...null!==o&&void 0!==o?o:{},set:(t,n)=>Br(e,t,n),reset:t=>Br(e,t,Pr),refresh:t=>Fr(e,t),gotoSnapshot:t=>zr(e,t),transact_UNSTABLE:t=>Mr(e)(t)},{snapshot:()=>{const t=Zr(e);return r=t.retain(),t}}),l=t(u);if("function"!==typeof l)throw i(a);s=l(...n)})),s instanceof jr&&xr(!1),a(s))?s=s.finally((()=>{var e;null===(e=r)||void 0===e||e()})):null===(u=r)||void 0===u||u();return s}var Gr={recoilCallback:Wr,useRecoilCallback:function(e,t){const n=Ur();return Hr(((...t)=>Wr(n.current,e,t)),null!=t?[...t,n]:void 0)}};const{useStoreRef:qr}=Qn,{refreshRecoilValue:Kr}=mt,{useCallback:Jr}=o;var Yr=function(e){const t=qr();return Jr((()=>{const n=t.current;Kr(n,e)}),[e,t])};const{atomicUpdater:Xr}=Vr,{useStoreRef:Qr}=Qn,{useMemo:ei}=o;var ti=function(e,t){const n=Qr();return ei((()=>(...t)=>{Xr(n.current)((n=>{e(n)(...t)}))}),null!=t?[...t,n]:void 0)};var ni=class{constructor(e){u(this,"value",void 0),this.value=e}},oi=Object.freeze({__proto__:null,WrappedValue:ni});const{isFastRefreshEnabled:ri}=Z;class ii extends Error{}var ai=class{constructor(e){var t,n,o;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!==(o=null===e||void 0===e?void 0:e.mapNodeValue)&&void 0!==o?o: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 o=this._mapNodeValue(e(n.nodeKey));n=n.branches.get(o)}}set(e,t,n){const o=()=>{var o,r,i,a;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 o=s;if(s=o?o.branches.get(u):e,s=null!==(l=s)&&void 0!==l?l:{type:"branch",nodeKey:t,parent:o,branches:new Map,branchKey:u},"branch"!==s.type||s.nodeKey!==t)throw this.invalidCacheError();null===o||void 0===o||o.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===(o=s)||void 0===o?void 0:o.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===(r=s)||void 0===r||r.branches.set(u,p),this._root=null!==(i=this._root)&&void 0!==i?i:p,this._numLeafs++,this._onSet(p),null===n||void 0===n||null===(a=n.onNodeVisit)||void 0===a||a.call(n,p)};try{o()}catch(r){if(!(r instanceof ii))throw r;this.clear(),o()}}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,o=e.branchKey;for(;n;){var r;if(n.branches.delete(o),n===t)return 0===n.branches.size?(this._root=null,this._numLeafs=0):this._numLeafs--,!0;if(n.branches.size>0)break;o=null===(r=n)||void 0===r?void 0:r.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=ri()?"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 D(e+(null!=this._name?` - ${this._name}`:"")),new ii}},si=Object.freeze({__proto__:null,TreeCache:ai});var ui=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 o=this.head(),r={key:e,right:o,left:null,value:t};o?o.left=r:this._tail=r,this._map.set(n,r),this._head=r,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)),o=n.right,r=n.left;o&&(o.left=n.left),r&&(r.right=n.right),n===this.head()&&(this._head=o),n===this.tail()&&(this._tail=r),this._map.delete(t),this._size--}clear(){this._size=0,this._head=null,this._tail=null,this._map=new Map}},li=Object.freeze({__proto__:null,LRUCache:ui});const{LRUCache:ci}=li,{TreeCache:di}=si;var fi=function({name:e,maxSize:t,mapNodeValue:n=(e=>e)}){const o=new ci({maxSize:t}),r=new di({name:e,mapNodeValue:n,onHit:e=>{o.set(e,!0)},onSet:e=>{const n=o.tail();o.set(e,!0),n&&r.size()>t&&r.delete(n.key)}});return r};function pi(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 i("Attempt to serialize function in a Recoil cache key");return`__FUNCTION(${e.name})__`}if(null===e)return"null";var o;if("object"!==typeof e)return null!==(o=JSON.stringify(e))&&void 0!==o?o:"";if(a(e))return"__PROMISE__";if(Array.isArray(e))return`[${e.map(((e,n)=>pi(e,t,n.toString())))}]`;if("function"===typeof e.toJSON)return pi(e.toJSON(n),t,n);if(e instanceof Map){const o={};for(const[n,r]of e)o["string"===typeof n?n:pi(n,t)]=r;return pi(o,t,n)}return e instanceof Set?pi(Array.from(e).sort(((e,n)=>pi(e,t).localeCompare(pi(n,t)))),t,n):void 0!==Symbol&&null!=e[Symbol.iterator]&&"function"===typeof e[Symbol.iterator]?pi(Array.from(e),t,n):`{${Object.keys(e).filter((t=>void 0!==e[t])).sort().map((n=>`${pi(n,t)}:${pi(e[n],t,n)}`)).join(",")}}`}var hi=function(e,t={allowFunctions:!1}){return pi(e,t)};const{TreeCache:mi}=si,vi={equality:"reference",eviction:"keep-all",maxSize:1/0};var gi=function({equality:e=vi.equality,eviction:t=vi.eviction,maxSize:n=vi.maxSize}=vi,o){const r=function(e){switch(e){case"reference":return e=>e;case"value":return e=>hi(e)}throw i(`Unrecognized equality policy ${e}`)}(e);return function(e,t,n,o){switch(e){case"keep-all":return new mi({name:o,mapNodeValue:n});case"lru":return fi({name:o,maxSize:s(t),mapNodeValue:n});case"most-recent":return fi({name:o,maxSize:1,mapNodeValue:n})}throw i(`Unrecognized eviction policy ${e}`)}(t,n,r,o)};const{isReactNative:yi,isWindow:bi}=Ft;var Si={startPerfBlock:function(e){return()=>null}};const{isLoadable:_i,loadableWithError:Ei,loadableWithPromise:wi,loadableWithValue:Ri}=O,{WrappedValue:Ti}=oi,{getNodeLoadable:Ci,peekNodeLoadable:ki,setNodeValue:Oi}=$e,{saveDepsToStore:Ai}=Se,{DEFAULT_VALUE:Li,getConfigDeletionHandler:Ni,getNode:Ii,registerNode:Vi}=se,{isRecoilValue:xi}=J,{markRecoilValueModified:Mi}=mt,{retainedByOptionWithDefault:Di}=kt,{recoilCallback:Pi}=Gr,{startPerfBlock:Ui}=Si;class Fi{}const Bi=new Fi,Zi=[],zi=new Map,Hi=(()=>{let e=0;return()=>e++})();function ji(e){let t=null;const{key:n,get:o,cachePolicy_UNSTABLE:r}=e,u=null!=e.set?e.set:void 0;const l=new Set,c=gi(null!==r&&void 0!==r?r:{equality:"reference",eviction:"keep-all"},n),d=Di(e.retainedBy_UNSTABLE),f=new Map;let p=0;function h(){return!I("recoil_memory_managament_2020")||p>0}function m(e){return e.getState().knownSelectors.add(n),p++,()=>{p--}}function v(){return void 0!==Ni(n)&&!h()}function g(e,t,n,o,r){L(t,o,r),y(e,n)}function y(e,t){A(e,t)&&O(e),b(t,!0)}function b(e,n){const o=zi.get(e);if(null!=o){for(const e of o)Mi(e,s(t));n&&zi.delete(e)}}function S(e,t){let n=zi.get(t);null==n&&zi.set(t,n=new Set),n.add(e)}function _(e,t,n,o,r,i){return t.then((o=>{if(!h())throw O(e),Bi;null!=i.loadingDepKey&&i.loadingDepPromise===t?n.atomValues.set(i.loadingDepKey,Ri(o)):e.getState().knownSelectors.forEach((e=>{n.atomValues.delete(e)}));const a=R(e,n);if(a&&"loading"!==a.state){if((A(e,r)||null==k(e))&&y(e,r),"hasValue"===a.state)return a.contents;throw a.contents}if(!A(e,r)){const t=C(e,n);if(null!=t)return t.loadingLoadable.contents}const[s,u]=w(e,n,r);if("loading"!==s.state&&g(e,n,r,s,u),"hasError"===s.state)throw s.contents;return s.contents})).catch((t=>{if(t instanceof Fi)throw Bi;if(!h())throw O(e),Bi;const i=Ei(t);throw g(e,n,r,i,o),t}))}function E(e,t,o,r){var i,a,s,u,c,d,f;(A(e,r)||t.version===(null===(i=e.getState())||void 0===i||null===(a=i.currentTree)||void 0===a?void 0:a.version)||t.version===(null===(s=e.getState())||void 0===s||null===(u=s.nextTree)||void 0===u?void 0:u.version))&&Ai(n,o,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 o)l.add(n)}function w(e,r,u){const l=Ui(n);let c=!0,d=!0;const f=()=>{l(),d=!1};let p,m,v=!1;const y={loadingDepKey:null,loadingDepPromise:null},S=new Map;function w({key:t}){const n=Ci(e,r,t);switch(S.set(t,n),c||(E(e,r,new Set(S.keys()),u),function(e,t){A(e,t)&&(s(k(e)).stateVersions.clear(),b(t,!1))}(e,u)),n.state){case"hasValue":return n.contents;case"hasError":throw n.contents;case"loading":throw y.loadingDepKey=t,y.loadingDepPromise=n.contents,n.contents}throw i("Invalid Loadable state")}const R=n=>(...o)=>{if(d)throw i("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&&xr(!1),Pi(e,n,o,{node:t})};try{p=o({get:w,getCallback:R}),p=xi(p)?w(p):p,_i(p)&&("hasError"===p.state&&(v=!0),p=p.contents),a(p)?p=function(e,t,n,o,r,i){return t.then((t=>{if(!h())throw O(e),Bi;const i=Ri(t);return g(e,n,r,i,o),t})).catch((t=>{if(!h())throw O(e),Bi;if(a(t))return _(e,t,n,o,r,i);const s=Ei(t);throw g(e,n,r,s,o),t}))}(e,p,r,S,u,y).finally(f):f(),p=p instanceof Ti?p.value:p}catch(T){p=T,a(p)?p=_(e,p,r,S,u,y).finally(f):(v=!0,f())}return m=v?Ei(p):a(p)?wi(p):Ri(p),c=!1,function(e,t,n){if(A(e,t)){const t=k(e);null!=t&&(t.depValuesDiscoveredSoFarDuringAsyncWork=n)}}(e,u,S),E(e,r,new Set(S.keys()),u),[m,S]}function R(e,t){let o=t.atomValues.get(n);if(null!=o)return o;const r=new Set;try{o=c.get((n=>("string"!==typeof n&&xr(!1),Ci(e,t,n).contents)),{onNodeVisit:e=>{"branch"===e.type&&e.nodeKey!==n&&r.add(e.nodeKey)}})}catch(s){throw i(`Problem with cache lookup for selector "${n}": ${s.message}`)}var a;o&&(t.atomValues.set(n,o),E(e,t,r,null===(a=k(e))||void 0===a?void 0:a.executionID));return o}function T(e,t){const n=R(e,t);if(null!=n)return O(e),n;const o=C(e,t);var r;if(null!=o)return"loading"===(null===(r=o.loadingLoadable)||void 0===r?void 0:r.state)&&S(e,o.executionID),o.loadingLoadable;const i=Hi(),[a,s]=w(e,t,i);return"loading"===a.state?(!function(e,t,n,o,r){f.set(e,{depValuesDiscoveredSoFarDuringAsyncWork:o,executionID:t,loadingLoadable:n,stateVersions:new Map([[r.version,!0]])})}(e,i,a,s,t),S(e,i)):(O(e),L(t,a,s)),a}function C(e,t){const n=Dt([f.has(e)?[s(f.get(e))]:[],X(Ve(f,(([t])=>t!==e)),(([,e])=>e))]);function o(n){for(const[o,r]of n)if(!Ci(e,t,o).is(r))return!0;return!1}for(const r of n){if(r.stateVersions.get(t.version)||!o(r.depValuesDiscoveredSoFarDuringAsyncWork))return r.stateVersions.set(t.version,!0),r;r.stateVersions.set(t.version,!1)}}function k(e){return f.get(e)}function O(e){f.delete(e)}function A(e,t){var n;return t===(null===(n=k(e))||void 0===n?void 0:n.executionID)}function L(e,t,o){e.atomValues.set(n,t);try{c.set(function(e){return Array.from(e.entries()).map((([e,t])=>[e,t.contents]))}(o),t)}catch(r){throw i(`Problem with setting cache for selector "${n}": ${r.message}`)}}function N(e,t){const o=t.atomValues.get(n);return null!=o?o:c.get((n=>{var o;return"string"!==typeof n&&xr(!1),null===(o=ki(e,t,n))||void 0===o?void 0:o.contents}))}function V(e,t){return function(e){if(Zi.includes(n)){const e=`Recoil selector has circular dependencies: ${Zi.slice(Zi.indexOf(n)).join(" \u2192 ")}`;return Ei(i(e))}Zi.push(n);try{return e()}finally{Zi.pop()}}((()=>T(e,t)))}function x(e){e.atomValues.delete(n)}function M(e,n){null==t&&xr(!1);for(const t of l){var o;const r=Ii(t);null===(o=r.clearCache)||void 0===o||o.call(r,e,n)}l.clear(),x(n),c.clear(),Mi(e,t)}if(null!=u){return t=Vi({key:n,nodeType:"selector",peek:N,get:V,set:(e,t,o)=>{let r=!1;const s=new Map;function l({key:o}){if(r)throw i("Recoil: Async selector sets are not currently supported.");const a=Ci(e,t,o);if("hasValue"===a.state)return a.contents;if("loading"===a.state){const e=`Getting value of asynchronous atom or selector "${o}" in a pending state while setting selector "${n}" is not yet supported.`;throw D(e),i(e)}throw a.contents}function c(n,o){if(r){const e="Recoil: Async selector sets are not currently supported.";throw D(e),i(e)}const a="function"===typeof o?o(l(n)):o;Oi(e,t,n.key,a).forEach(((e,t)=>s.set(t,e)))}const d=u({set:c,get:l,reset:function(e){c(e,Li)}},o);if(void 0!==d)throw a(d)?i("Recoil: Async selector sets are not currently supported."):i("Recoil: selector set should be a void function.");return r=!0,s},init:m,invalidate:x,clearCache:M,shouldDeleteConfigOnRelease:v,dangerouslyAllowMutability:e.dangerouslyAllowMutability,shouldRestoreFromSnapshots:!1,retainedBy:d})}return t=Vi({key:n,nodeType:"selector",peek:N,get:V,init:m,invalidate:x,clearCache:M,shouldDeleteConfigOnRelease:v,dangerouslyAllowMutability:e.dangerouslyAllowMutability,shouldRestoreFromSnapshots:!1,retainedBy:d})}ji.value=e=>new Ti(e);var $i=ji;const{isLoadable:Wi,loadableWithError:Gi,loadableWithPromise:qi,loadableWithValue:Ki}=O,{WrappedValue:Ji}=oi,{peekNodeInfo:Yi}=$e,{DEFAULT_VALUE:Xi,DefaultValue:Qi,getConfigDeletionHandler:ea,registerNode:ta,setConfigDeletionHandler:na}=se,{isRecoilValue:oa}=J,{getRecoilValueAsLoadable:ra,markRecoilValueModified:ia,setRecoilValue:aa,setRecoilValueLoadable:sa}=mt,{retainedByOptionWithDefault:ua}=kt,la=e=>e instanceof Ji?e.value:e;function ca(e){const{key:t,persistence_UNSTABLE:n}=e,o=ua(e.retainedBy_UNSTABLE);let r=0;function u(e){return qi(e.then((e=>(c=Ki(e),e))).catch((e=>{throw c=Gi(e),e})))}let l,c=a(e.default)?u(e.default):Wi(e.default)?"loading"===e.default.state?u(e.default.contents):e.default:Ki(la(e.default));f(c.contents);const d=new Map;function f(e){return e}function p(e,n){var o,r;return null!==(o=null!==(r=n.atomValues.get(t))&&void 0!==r?r:l)&&void 0!==o?o:c}const h=ta({key:t,nodeType:"atom",peek:p,get:function(e,o){if(o.atomValues.has(t))return s(o.atomValues.get(t));if(o.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=o.nonvalidatedAtoms.get(t),r=n.validator(e,Xi),i=r instanceof Qi?c:Ki(r);return l=i,l}return c},set:function(e,n,o){if(n.atomValues.has(t)){const e=s(n.atomValues.get(t));if("hasValue"===e.state&&o===e.contents)return new Map}else if(!n.nonvalidatedAtoms.has(t)&&o instanceof Qi)return new Map;return l=void 0,(new Map).set(t,Ki(o))},init:function(n,o,s){var u;if(r++,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)||ia(n,h)};c.contents.finally(S)}const l=null!==(u=e.effects)&&void 0!==u?u:e.effects_UNSTABLE;if(null!=l){let _=Xi,E=!0,w=!1,R=null;function f(e){if(E&&e.key===t){const e=_;return e instanceof Qi?p(n,o):a(e)?qi(e.then((e=>e instanceof Qi?c.toPromise():e))):Ki(e)}return ra(n,e)}function m(e){return f(e).toPromise()}function v(e){var o;const r=Yi(n,null!==(o=n.getState().nextTree)&&void 0!==o?o:n.getState().currentTree,e.key);return!E||e.key!==t||_ instanceof Qi?r:{...r,isSet:!0,loadable:f(e)}}const T=e=>t=>{if(E){const n=f(h),o="hasValue"===n.state?n.contents:Xi;_="function"===typeof t?t(o):t,a(_)&&(_=_.then((t=>(R={effect:e,value:t},t))))}else{if(a(t))throw i("Setting atoms to async values is not implemented.");"function"!==typeof t&&(R={effect:e,value:la(t)}),aa(n,h,"function"===typeof t?n=>{const o=la(t(n));return R={effect:e,value:o},o}:la(t))}},C=e=>()=>T(e)(Xi),k=e=>o=>{var r;const{release:i}=n.subscribeToTransactions((n=>{var r;let{currentTree:i,previousTree:a}=n.getState();a||(D("Transaction subscribers notified without a next tree being present -- this is a bug in Recoil"),a=i);const s=null!==(r=i.atomValues.get(t))&&void 0!==r?r:c;if("hasValue"===s.state){var u,l,d,f;const n=s.contents,r=null!==(u=a.atomValues.get(t))&&void 0!==u?u:c,p="hasValue"===r.state?r.contents:Xi;(null===(l=R)||void 0===l?void 0:l.effect)!==e||(null===(d=R)||void 0===d?void 0:d.value)!==n?o(n,p,!i.atomValues.has(t)):(null===(f=R)||void 0===f?void 0:f.effect)===e&&(R=null)}}),t);d.set(n,[...null!==(r=d.get(n))&&void 0!==r?r:[],i])};for(const O of l)try{const A=O({node:h,storeID:n.storeID,parentStoreID_UNSTABLE:n.parentStoreID,trigger:s,setSelf:T(O),resetSelf:C(O),onSet:k(O),getPromise:m,getLoadable:f,getInfo_UNSTABLE:v});var g;if(null!=A)d.set(n,[...null!==(g=d.get(n))&&void 0!==g?g:[],A])}catch(b){_=b,w=!0}if(E=!1,!(_ instanceof Qi)){var y;const L=w?Gi(_):a(_)?qi(function(e,n){const o=n.then((n=>{var r,i;return(null===(i=(null!==(r=e.getState().nextTree)&&void 0!==r?r:e.getState().currentTree).atomValues.get(t))||void 0===i?void 0:i.contents)===o&&aa(e,h,n),n})).catch((n=>{var r,i;throw(null===(i=(null!==(r=e.getState().nextTree)&&void 0!==r?r:e.getState().currentTree).atomValues.get(t))||void 0===i?void 0:i.contents)===o&&sa(e,h,Gi(n)),n}));return o}(n,_)):Ki(la(_));L.contents,o.atomValues.set(t,L),null===(y=n.getState().nextTree)||void 0===y||y.atomValues.set(t,L)}}return()=>{var e;r--,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!==ea(t)&&r<=0},dangerouslyAllowMutability:e.dangerouslyAllowMutability,persistence_UNSTABLE:e.persistence_UNSTABLE?{type:e.persistence_UNSTABLE.type,backButton:e.persistence_UNSTABLE.backButton}:void 0,shouldRestoreFromSnapshots:!0,retainedBy:o});return h}function da(e){const{...t}=e,n="default"in e?e.default:new Promise((()=>{}));return oa(n)?function(e){const t=da({...e,default:Xi,persistence_UNSTABLE:void 0===e.persistence_UNSTABLE?void 0:{...e.persistence_UNSTABLE,validator:t=>t instanceof Qi?t:s(e.persistence_UNSTABLE).validator(t,Xi)},effects:e.effects,effects_UNSTABLE:e.effects_UNSTABLE}),n=$i({key:`${e.key}__withFallback`,get:({get:n})=>{const o=n(t);return o instanceof Qi?e.default:o},set:({set:e},n)=>e(t,n),cachePolicy_UNSTABLE:{eviction:"most-recent"},dangerouslyAllowMutability:e.dangerouslyAllowMutability});return na(n.key,ea(e.key)),n}({...t,default:n}):ca({...t,default:n})}da.value=e=>new Ji(e);var fa=da;var pa=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()}},ha=Object.freeze({__proto__:null,MapCache:pa});const{LRUCache:ma}=li,{MapCache:va}=ha,ga={equality:"reference",eviction:"none",maxSize:1/0};var ya=function({equality:e=ga.equality,eviction:t=ga.eviction,maxSize:n=ga.maxSize}=ga){const o=function(e){switch(e){case"reference":return e=>e;case"value":return e=>hi(e)}throw i(`Unrecognized equality policy ${e}`)}(e);return function(e,t,n){switch(e){case"keep-all":return new va({mapKey:n});case"lru":return new ma({mapKey:n,maxSize:s(t)});case"most-recent":return new ma({mapKey:n,maxSize:1})}throw i(`Unrecognized eviction policy ${e}`)}(t,n,o)};const{setConfigDeletionHandler:ba}=se;var Sa=function(e){var t,n;const o=ya({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,r;const i=o.get(t);if(null!=i)return i;const{cachePolicyForParams_UNSTABLE:a,...s}=e,u="default"in e?e.default:new Promise((()=>{})),l=fa({...s,key:`${e.key}__${null!==(n=hi(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!==(r=e.effects)&&void 0!==r?r:e.effects_UNSTABLE});return o.set(t,l),ba(l.key,(()=>{o.delete(t)})),l}};const{setConfigDeletionHandler:_a}=se;let Ea=0;var wa=function(e){var t,n;const o=ya({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 r;try{r=o.get(t)}catch(d){throw i(`Problem with cache lookup for selector ${e.key}: ${d.message}`)}if(null!=r)return r;const a=`${e.key}__selectorFamily/${null!==(n=hi(t,{allowFunctions:!0}))&&void 0!==n?n:"void"}/${Ea++}`,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=$i({key:a,get:s,set:(e,o)=>n(t)(e,o),cachePolicy_UNSTABLE:u,dangerouslyAllowMutability:e.dangerouslyAllowMutability,retainedBy_UNSTABLE:l})}else c=$i({key:a,get:s,cachePolicy_UNSTABLE:u,dangerouslyAllowMutability:e.dangerouslyAllowMutability,retainedBy_UNSTABLE:l});return o.set(t,c),_a(c.key,(()=>{o.delete(t)})),c}};const Ra=wa({key:"__constant",get:e=>()=>e,cachePolicyForParams_UNSTABLE:{equality:"reference"}});var Ta=function(e){return Ra(e)};const Ca=wa({key:"__error",get:e=>()=>{throw i(e)},cachePolicyForParams_UNSTABLE:{equality:"reference"}});var ka=function(e){return Ca(e)};var Oa=function(e){return e};const{loadableWithError:Aa,loadableWithPromise:La,loadableWithValue:Na}=O;function Ia(e,t){const n=Array(t.length).fill(void 0),o=Array(t.length).fill(void 0);for(const[i,a]of t.entries())try{n[i]=e(a)}catch(r){o[i]=r}return[n,o]}function Va(e){return null!=e&&!a(e)}function xa(e){return Array.isArray(e)?e:Object.getOwnPropertyNames(e).map((t=>e[t]))}function Ma(e,t){return Array.isArray(e)?t:Object.getOwnPropertyNames(e).reduce(((e,n,o)=>({...e,[n]:t[o]})),{})}function Da(e,t,n){return Ma(e,n.map(((e,n)=>null==e?Na(t[n]):a(e)?La(e):Aa(e))))}var Pa={waitForNone:wa({key:"__waitForNone",get:e=>({get:t})=>{const n=xa(e),[o,r]=Ia(t,n);return Da(e,o,r)},dangerouslyAllowMutability:!0}),waitForAny:wa({key:"__waitForAny",get:e=>({get:t})=>{const n=xa(e),[o,r]=Ia(t,n);return r.some((e=>!a(e)))?Da(e,o,r):new Promise((t=>{for(const[n,i]of r.entries())a(i)&&i.then((i=>{o[n]=i,r[n]=void 0,t(Da(e,o,r))})).catch((i=>{r[n]=i,t(Da(e,o,r))}))}))},dangerouslyAllowMutability:!0}),waitForAll:wa({key:"__waitForAll",get:e=>({get:t})=>{const n=xa(e),[o,r]=Ia(t,n);if(r.every((e=>null==e)))return Ma(e,o);const i=r.find(Va);if(null!=i)throw i;return Promise.all(r).then((t=>{return Ma(e,(n=o,t.map(((e,t)=>void 0===e?n[t]:e))));var n}))},dangerouslyAllowMutability:!0}),waitForAllSettled:wa({key:"__waitForAllSettled",get:e=>({get:t})=>{const n=xa(e),[o,r]=Ia(t,n);return r.every((e=>!a(e)))?Da(e,o,r):Promise.all(r.map(((e,t)=>a(e)?e.then((e=>{o[t]=e,r[t]=void 0})).catch((e=>{o[t]=void 0,r[t]=e})):null))).then((()=>Da(e,o,r)))},dangerouslyAllowMutability:!0}),noWait:wa({key:"__noWait",get:e=>({get:t})=>{try{return $i.value(Na(t(e)))}catch(n){return $i.value(a(n)?La(n):Aa(n))}},dangerouslyAllowMutability:!0})};const{RecoilLoadable:Ua}=O,{DefaultValue:Fa}=se,{RecoilRoot:Ba,useRecoilStoreID:Za}=Qn,{isRecoilValue:za}=J,{retentionZone:Ha}=Ne,{freshSnapshot:ja}=vn,{useRecoilState:$a,useRecoilState_TRANSITION_SUPPORT_UNSTABLE:Wa,useRecoilStateLoadable:Ga,useRecoilValue:qa,useRecoilValue_TRANSITION_SUPPORT_UNSTABLE:Ka,useRecoilValueLoadable:Ja,useRecoilValueLoadable_TRANSITION_SUPPORT_UNSTABLE:Ya,useResetRecoilState:Xa,useSetRecoilState:Qa}=$o,{useGotoRecoilSnapshot:es,useRecoilSnapshot:ts,useRecoilTransactionObserver:ns}=fr,{useRecoilCallback:os}=Gr,{noWait:rs,waitForAll:is,waitForAllSettled:as,waitForAny:ss,waitForNone:us}=Pa;var ls={DefaultValue:Fa,isRecoilValue:za,RecoilLoadable:Ua,RecoilEnv:L,RecoilRoot:Ba,useRecoilStoreID:Za,useRecoilBridgeAcrossReactRoots_UNSTABLE:Sr,atom:fa,selector:$i,atomFamily:Sa,selectorFamily:wa,constSelector:Ta,errorSelector:ka,readOnlySelector:Oa,noWait:rs,waitForNone:us,waitForAny:ss,waitForAll:is,waitForAllSettled:as,useRecoilValue:qa,useRecoilValueLoadable:Ja,useRecoilState:$a,useRecoilStateLoadable:Ga,useSetRecoilState:Qa,useResetRecoilState:Xa,useGetRecoilValueInfo_UNSTABLE:mr,useRecoilRefresher_UNSTABLE:Yr,useRecoilValueLoadable_TRANSITION_SUPPORT_UNSTABLE:Ya,useRecoilValue_TRANSITION_SUPPORT_UNSTABLE:Ka,useRecoilState_TRANSITION_SUPPORT_UNSTABLE:Wa,useRecoilCallback:os,useRecoilTransaction_UNSTABLE:ti,useGotoRecoilSnapshot:es,useRecoilSnapshot:ts,useRecoilTransactionObserver_UNSTABLE:ns,snapshot_UNSTABLE:ja,useRetain:fo,retentionZone:Ha},cs=ls.RecoilRoot,ds=ls.atom,fs=ls.selector,ps=ls.atomFamily,hs=ls.selectorFamily,ms=ls.useRecoilValue,vs=ls.useRecoilValueLoadable,gs=ls.useRecoilState,ys=ls.useSetRecoilState,bs=ls.useResetRecoilState,Ss=ls.useRecoilRefresher_UNSTABLE,_s=ls.useRecoilCallback},55678:function(e,t,n){n.d(t,{Am:function(){return x},Ix:function(){return R}});var o=n(67294),r=n(86010);const i=e=>"number"==typeof e&&!isNaN(e),a=e=>"string"==typeof e,s=e=>"function"==typeof e,u=e=>a(e)||s(e)?e:null,l=e=>(0,o.isValidElement)(e)||a(e)||s(e)||i(e);function c(e){let{enter:t,exit:n,appendPosition:r=!1,collapse:i=!0,collapseDuration:a=300}=e;return function(e){let{children:s,position:u,preventExitTransition:l,done:c,nodeRef:d,isIn:f}=e;const p=r?`${t}--${u}`:t,h=r?`${n}--${u}`:n,m=(0,o.useRef)(0);return(0,o.useLayoutEffect)((()=>{const e=d.current,t=p.split(" "),n=o=>{o.target===d.current&&(e.dispatchEvent(new Event("d")),e.removeEventListener("animationend",n),e.removeEventListener("animationcancel",n),0===m.current&&"animationcancel"!==o.type&&e.classList.remove(...t))};e.classList.add(...t),e.addEventListener("animationend",n),e.addEventListener("animationcancel",n)}),[]),(0,o.useEffect)((()=>{const e=d.current,t=()=>{e.removeEventListener("animationend",t),i?function(e,t,n){void 0===n&&(n=300);const{scrollHeight:o,style:r}=e;requestAnimationFrame((()=>{r.minHeight="initial",r.height=o+"px",r.transition=`all ${n}ms`,requestAnimationFrame((()=>{r.height="0",r.padding="0",r.margin="0",setTimeout(t,n)}))}))}(e,c,a):c()};f||(l?t():(m.current=1,e.className+=` ${h}`,e.addEventListener("animationend",t)))}),[f]),o.createElement(o.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,...r}=e;return o.createElement("svg",{viewBox:"0 0 24 24",width:"100%",height:"100%",fill:"colored"===t?"currentColor":`var(--toastify-icon-color-${n})`,...r})},h={info:function(e){return o.createElement(p,{...e},o.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 o.createElement(p,{...e},o.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 o.createElement(p,{...e},o.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 o.createElement(p,{...e},o.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 o.createElement("div",{className:"Toastify__spinner"})}};function m(e){const[,t]=(0,o.useReducer)((e=>e+1),0),[n,r]=(0,o.useState)([]),c=(0,o.useRef)(null),p=(0,o.useRef)(new Map).current,m=e=>-1!==n.indexOf(e),v=(0,o.useRef)({toastKey:1,displayedToast:0,count:0,queue:[],props:e,containerId:null,isToastActive:m,getToast:e=>p.get(e)}).current;function g(e){let{containerId:t}=e;const{limit:n}=v.props;!n||t&&v.containerId!==t||(v.count-=v.queue.length,v.queue=[])}function y(e){r((t=>null==e?[]:t.filter((t=>t!==e))))}function b(){const{toastContent:e,toastProps:t,staleId:n}=v.queue.shift();_(e,t,n)}function S(e,n){let{delay:r,staleId:m,...g}=n;if(!l(e)||function(e){return!c.current||v.props.enableMultiContainer&&e.containerId!==v.props.containerId||p.has(e.toastId)&&null==e.updateId}(g))return;const{toastId:S,updateId:E,data:w}=g,{props:R}=v,T=()=>y(S),C=null==E;C&&v.count++;const k={...R,style:R.toastStyle,key:v.toastKey++,...Object.fromEntries(Object.entries(g).filter((e=>{let[t,n]=e;return null!=n}))),toastId:S,updateId:E,data:w,closeToast:T,isIn:!1,className:u(g.className||R.toastClassName),bodyClassName:u(g.bodyClassName||R.bodyClassName),progressClassName:u(g.progressClassName||R.progressClassName),autoClose:!g.isLoading&&(O=g.autoClose,A=R.autoClose,!1===O||i(O)&&O>0?O:A),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++,b();else{const t=e>n?n:e;v.displayedToast=t;for(let e=0;e<t;e++)b()}}else t()}};var O,A;k.iconOut=function(e){let{theme:t,type:n,isLoading:r,icon:u}=e,l=null;const c={theme:t,type:n};return!1===u||(s(u)?l=u(c):(0,o.isValidElement)(u)?l=(0,o.cloneElement)(u,c):a(u)||i(u)?l=u:r?l=h.spinner():(e=>e in h)(n)&&(l=h[n](c))),l}(k),s(g.onOpen)&&(k.onOpen=g.onOpen),s(g.onClose)&&(k.onClose=g.onClose),k.closeButton=R.closeButton,!1===g.closeButton||l(g.closeButton)?k.closeButton=g.closeButton:!0===g.closeButton&&(k.closeButton=!l(R.closeButton)||R.closeButton);let L=e;(0,o.isValidElement)(e)&&!a(e.type)?L=(0,o.cloneElement)(e,{closeToast:T,toastProps:k,data:w}):s(e)&&(L=e({closeToast:T,toastProps:k,data:w})),R.limit&&R.limit>0&&v.count>R.limit&&C?v.queue.push({toastContent:L,toastProps:k,staleId:m}):i(r)?setTimeout((()=>{_(L,k,m)}),r):_(L,k,m)}function _(e,t,n){const{toastId:o}=t;n&&p.delete(n);const i={content:e,props:t};p.set(o,i),r((e=>[...e,o].filter((e=>e!==n)))),f.emit(4,d(i,null==i.props.updateId?"added":"updated"))}return(0,o.useEffect)((()=>(v.containerId=e.containerId,f.cancelEmit(3).on(0,S).on(1,(e=>c.current&&y(e))).on(5,g).emit(2,v),()=>{p.clear(),f.emit(3,v)})),[]),(0,o.useEffect)((()=>{v.props=e,v.isToastActive=m,v.displayedToast=n.length})),{getToastToRender:function(t){const n=new Map,o=Array.from(p.values());return e.newestOnTop&&o.reverse(),o.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 g(e){return e.targetTouches&&e.targetTouches.length>=1?e.targetTouches[0].clientY:e.clientY}function y(e){const[t,n]=(0,o.useState)(!1),[r,i]=(0,o.useState)(!1),a=(0,o.useRef)(null),u=(0,o.useRef)({start:0,x:0,y:0,delta:0,removalDistance:0,canCloseOnClick:!0,canDrag:!1,boundingRect:null,didMove:!1}).current,l=(0,o.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",_),document.addEventListener("mouseup",E),document.addEventListener("touchmove",_),document.addEventListener("touchend",E);const n=a.current;u.canCloseOnClick=!0,u.canDrag=!0,u.boundingRect=n.getBoundingClientRect(),n.style.transition="",u.x=v(t.nativeEvent),u.y=g(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 y(t){if(u.boundingRect){const{top:n,bottom:o,left:r,right:i}=u.boundingRect;"touchend"!==t.nativeEvent.type&&e.pauseOnHover&&u.x>=r&&u.x<=i&&u.y>=n&&u.y<=o?S():b()}}function b(){n(!0)}function S(){n(!1)}function _(n){const o=a.current;u.canDrag&&o&&(u.didMove=!0,t&&S(),u.x=v(n),u.y=g(n),u.delta="x"===e.draggableDirection?u.x-u.start:u.y-u.start,u.start!==u.x&&(u.canCloseOnClick=!1),o.style.transform=`translate${e.draggableDirection}(${u.delta}px)`,o.style.opacity=""+(1-Math.abs(u.delta/u.removalDistance)))}function E(){document.removeEventListener("mousemove",_),document.removeEventListener("mouseup",E),document.removeEventListener("touchmove",_),document.removeEventListener("touchend",E);const t=a.current;if(u.canDrag&&u.didMove&&t){if(u.canDrag=!1,Math.abs(u.delta)>u.removalDistance)return i(!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,o.useEffect)((()=>{l.current=e})),(0,o.useEffect)((()=>(a.current&&a.current.addEventListener("d",b,{once:!0}),s(e.onOpen)&&e.onOpen((0,o.isValidElement)(e.children)&&e.children.props),()=>{const e=l.current;s(e.onClose)&&e.onClose((0,o.isValidElement)(e.children)&&e.children.props)})),[]),(0,o.useEffect)((()=>(e.pauseOnFocusLoss&&(document.hasFocus()||S(),window.addEventListener("focus",b),window.addEventListener("blur",S)),()=>{e.pauseOnFocusLoss&&(window.removeEventListener("focus",b),window.removeEventListener("blur",S))})),[e.pauseOnFocusLoss]);const w={onMouseDown:m,onTouchStart:m,onMouseUp:y,onTouchEnd:y};return c&&d&&(w.onMouseEnter=S,w.onMouseLeave=b),h&&(w.onClick=e=>{p&&p(e),u.canCloseOnClick&&f()}),{playToast:b,pauseToast:S,isRunning:t,preventExitTransition:r,toastRef:a,eventHandlers:w}}function b(e){let{closeToast:t,theme:n,ariaLabel:r="close"}=e;return o.createElement("button",{className:`Toastify__close-button Toastify__close-button--${n}`,type:"button",onClick:e=>{e.stopPropagation(),t(e)},"aria-label":r},o.createElement("svg",{"aria-hidden":"true",viewBox:"0 0 14 16"},o.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:i,type:a="default",hide:u,className:l,style:c,controlledProgress:d,progress:f,rtl:p,isIn:h,theme:m}=e;const v=u||d&&0===f,g={...c,animationDuration:`${t}ms`,animationPlayState:n?"running":"paused",opacity:v?0:1};d&&(g.transform=`scaleX(${f})`);const y=(0,r.default)("Toastify__progress-bar",d?"Toastify__progress-bar--controlled":"Toastify__progress-bar--animated",`Toastify__progress-bar-theme--${m}`,`Toastify__progress-bar--${a}`,{"Toastify__progress-bar--rtl":p}),b=s(l)?l({rtl:p,type:a,defaultClassName:y}):(0,r.default)(y,l);return o.createElement("div",{role:"progressbar","aria-hidden":v?"true":"false","aria-label":"notification timer",className:b,style:g,[d&&f>=1?"onTransitionEnd":"onAnimationEnd"]:d&&f<1?null:()=>{h&&i()}})}const _=e=>{const{isRunning:t,preventExitTransition:n,toastRef:i,eventHandlers:a}=y(e),{closeButton:u,children:l,autoClose:c,onClick:d,type:f,hideProgressBar:p,closeToast:h,transition:m,position:v,className:g,style:_,bodyClassName:E,bodyStyle:w,progressClassName:R,progressStyle:T,updateId:C,role:k,progress:O,rtl:A,toastId:L,deleteToast:N,isIn:I,isLoading:V,iconOut:x,closeOnClick:M,theme:D}=e,P=(0,r.default)("Toastify__toast",`Toastify__toast-theme--${D}`,`Toastify__toast--${f}`,{"Toastify__toast--rtl":A},{"Toastify__toast--close-on-click":M}),U=s(g)?g({rtl:A,position:v,type:f,defaultClassName:P}):(0,r.default)(P,g),F=!!O||!c,B={closeToast:h,type:f,theme:D};let Z=null;return!1===u||(Z=s(u)?u(B):(0,o.isValidElement)(u)?(0,o.cloneElement)(u,B):b(B)),o.createElement(m,{isIn:I,done:N,position:v,preventExitTransition:n,nodeRef:i},o.createElement("div",{id:L,onClick:d,className:U,...a,style:_,ref:i},o.createElement("div",{...I&&{role:k},className:s(E)?E({type:f}):(0,r.default)("Toastify__toast-body",E),style:w},null!=x&&o.createElement("div",{className:(0,r.default)("Toastify__toast-icon",{"Toastify--animate-icon Toastify__zoom-enter":!V})},x),o.createElement("div",null,l)),Z,o.createElement(S,{...C&&!F?{key:`pb-${C}`}:{},rtl:A,theme:D,delay:c,isRunning:t,isIn:I,closeToast:h,hide:p,type:f,style:T,className:R,controlledProgress:F,progress:O||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}},w=c(E("bounce",!0)),R=(c(E("slide",!0)),c(E("zoom")),c(E("flip")),(0,o.forwardRef)(((e,t)=>{const{getToastToRender:n,containerRef:i,isToastActive:a}=m(e),{className:l,style:c,rtl:d,containerId:f}=e;function p(e){const t=(0,r.default)("Toastify__toast-container",`Toastify__toast-container--${e}`,{"Toastify__toast-container--rtl":d});return s(l)?l({position:e,rtl:d,defaultClassName:t}):(0,r.default)(t,u(l))}return(0,o.useEffect)((()=>{t&&(t.current=i.current)}),[]),o.createElement("div",{ref:i,className:"Toastify",id:f},n(((e,t)=>{const n=t.length?{...c}:{...c,pointerEvents:"none"};return o.createElement("div",{className:p(e),style:n,key:`container-${e}`},t.map(((e,n)=>{let{content:r,props:i}=e;return o.createElement(_,{...i,isIn:a(i.toastId),style:{...i.style,"--nth":n+1,"--len":t.length},key:`toast-${i.key}`},r)})))})))})));R.displayName="ToastContainer",R.defaultProps={position:"top-right",transition:w,autoClose:5e3,closeButton:b,pauseOnHover:!0,pauseOnFocusLoss:!0,closeOnClick:!0,draggable:!0,draggablePercent:80,draggableDirection:"x",role:"alert",theme:"light"};let T,C=new Map,k=[],O=1;function A(){return""+O++}function L(e){return e&&(a(e.toastId)||i(e.toastId))?e.toastId:A()}function N(e,t){return C.size>0?f.emit(0,e,t):k.push({content:e,options:t}),t.toastId}function I(e,t){return{...t,type:t&&t.type||e,toastId:L(t)}}function V(e){return(t,n)=>N(t,I(e,n))}function x(e,t){return N(e,I("default",t))}x.loading=(e,t)=>N(e,I("default",{isLoading:!0,autoClose:!1,closeOnClick:!1,closeButton:!1,draggable:!1,...t})),x.promise=function(e,t,n){let o,{pending:r,error:i,success:u}=t;r&&(o=a(r)?x.loading(r,n):x.loading(r.render,{...n,...r}));const l={isLoading:null,autoClose:null,closeOnClick:null,closeButton:null,draggable:null},c=(e,t,r)=>{if(null==t)return void x.dismiss(o);const i={type:e,...l,...n,data:r},s=a(t)?{render:t}:t;return o?x.update(o,{...i,...s}):x(s.render,{...i,...s}),r},d=s(e)?e():e;return d.then((e=>c("success",u,e))).catch((e=>c("error",i,e))),d},x.success=V("success"),x.info=V("info"),x.error=V("error"),x.warning=V("warning"),x.warn=x.warning,x.dark=(e,t)=>N(e,I("default",{theme:"dark",...t})),x.dismiss=e=>{C.size>0?f.emit(1,e):k=k.filter((t=>null!=e&&t.options.toastId!==e))},x.clearWaitingQueue=function(e){return void 0===e&&(e={}),f.emit(5,e)},x.isActive=e=>{let t=!1;return C.forEach((n=>{n.isToastActive&&n.isToastActive(e)&&(t=!0)})),t},x.update=function(e,t){void 0===t&&(t={}),setTimeout((()=>{const n=function(e,t){let{containerId:n}=t;const o=C.get(n||T);return o&&o.getToast(e)}(e,t);if(n){const{props:o,content:r}=n,i={delay:100,...o,...t,toastId:t.toastId||e,updateId:A()};i.toastId!==e&&(i.staleId=e);const a=i.render||r;delete i.render,N(a,i)}}),0)},x.done=e=>{x.update(e,{progress:1})},x.onChange=e=>(f.on(4,e),()=>{f.off(4,e)}),x.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"},x.TYPE={INFO:"info",SUCCESS:"success",WARNING:"warning",ERROR:"error",DEFAULT:"default"},f.on(2,(e=>{T=e.containerId||e,C.set(T,e),k.forEach((e=>{f.emit(0,e.content,e.options)})),k=[]})).on(3,(e=>{C.delete(e.containerId||e),0===C.size&&f.off(0).off(1).off(5)}))}}]); \ No newline at end of file