From d78c0d4a8198b866a7b61b4064f6af6b83128f7f Mon Sep 17 00:00:00 2001 From: Aaron Bushnell Date: Wed, 27 Mar 2024 15:37:46 -0400 Subject: [PATCH] 4.0.6 (#43) - Palette icon displays again on front-end when active - Palette now closes when clicking outside the modal boundary --- CHANGELOG.md | 6 ++++++ composer.json | 2 +- scripts/Modal.jsx | 22 ++++++++++++++++++++++ scripts/hooks/useClickOutside.js | 21 +++++++++++++++++++++ src/assetbundles/resources/Init.js | 20 ++++++++++---------- src/assetbundles/resources/palette.css | 2 +- 6 files changed, 61 insertions(+), 12 deletions(-) create mode 100644 scripts/hooks/useClickOutside.js diff --git a/CHANGELOG.md b/CHANGELOG.md index 43aeb9c..b8745d4 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,11 @@ # Release Notes for Palette +## 4.0.6 - 2024-03-27 + +### Added +- Palette icon displays again on front-end when active +- Palette now closes when clicking outside the modal boundary + ## 4.0.5 - 2024-03-18 ### Fixed diff --git a/composer.json b/composer.json index 2204d59..a6e2fc6 100644 --- a/composer.json +++ b/composer.json @@ -2,7 +2,7 @@ "name": "trendyminds/craft-palette", "description": "A command palette to easily jump to specific areas within Craft", "type": "craft-plugin", - "version": "4.0.5", + "version": "4.0.6", "keywords": ["palette", "craft", "craft cms", "cmdk", "spotlight", "craft plugin"], "license": "MIT", "authors": [ diff --git a/scripts/Modal.jsx b/scripts/Modal.jsx index 4e105b0..2ccdf1a 100644 --- a/scripts/Modal.jsx +++ b/scripts/Modal.jsx @@ -2,13 +2,16 @@ import clsx from 'clsx' import { useHotkeys } from 'react-hotkeys-hook' import useOpen from './hooks/useOpen' import useContext from './hooks/useContext' +import useOutsideClick from './hooks/useClickOutside' import Actions from './contexts/Actions' import Entries from './contexts/Entries' import SearchBar from './SearchBar' +import { CommandLineIcon } from '@heroicons/react/24/outline' export default function Modal() { const [open, setOpen] = useOpen() const [context, setContext] = useContext() + const modal = useOutsideClick(() => setOpen(false)) // prettier-ignore useHotkeys(['ctrl+k, meta+k'], () => { @@ -28,6 +31,7 @@ export default function Modal() {
)} + + ) } diff --git a/scripts/hooks/useClickOutside.js b/scripts/hooks/useClickOutside.js new file mode 100644 index 0000000..75b9f99 --- /dev/null +++ b/scripts/hooks/useClickOutside.js @@ -0,0 +1,21 @@ +import { useRef, useEffect } from 'react' + +export default function useOutsideClick(callback) { + const ref = useRef() + + useEffect(() => { + const handleClick = (event) => { + if (ref.current && !ref.current.contains(event.target)) { + callback() + } + } + + document.addEventListener('click', handleClick, true) + + return () => { + document.removeEventListener('click', handleClick, true) + } + }, [ref]) + + return ref +} diff --git a/src/assetbundles/resources/Init.js b/src/assetbundles/resources/Init.js index 194a3c8..2187821 100644 --- a/src/assetbundles/resources/Init.js +++ b/src/assetbundles/resources/Init.js @@ -1,5 +1,5 @@ (function(){ -function sf(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var af={exports:{}},jl={},cf={exports:{}},ee={};/** +function sf(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var af={exports:{}},Wl={},cf={exports:{}},ee={};/** * @license React * react.production.min.js * @@ -7,7 +7,7 @@ function sf(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"d * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var yo=Symbol.for("react.element"),fv=Symbol.for("react.portal"),dv=Symbol.for("react.fragment"),pv=Symbol.for("react.strict_mode"),hv=Symbol.for("react.profiler"),vv=Symbol.for("react.provider"),mv=Symbol.for("react.context"),yv=Symbol.for("react.forward_ref"),gv=Symbol.for("react.suspense"),Sv=Symbol.for("react.memo"),wv=Symbol.for("react.lazy"),Aa=Symbol.iterator;function _v(e){return e===null||typeof e!="object"?null:(e=Aa&&e[Aa]||e["@@iterator"],typeof e=="function"?e:null)}var ff={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},df=Object.assign,pf={};function mr(e,t,n){this.props=e,this.context=t,this.refs=pf,this.updater=n||ff}mr.prototype.isReactComponent={};mr.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};mr.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function hf(){}hf.prototype=mr.prototype;function fs(e,t,n){this.props=e,this.context=t,this.refs=pf,this.updater=n||ff}var ds=fs.prototype=new hf;ds.constructor=fs;df(ds,mr.prototype);ds.isPureReactComponent=!0;var xa=Array.isArray,vf=Object.prototype.hasOwnProperty,ps={current:null},mf={key:!0,ref:!0,__self:!0,__source:!0};function yf(e,t,n){var r,o={},l=null,i=null;if(t!=null)for(r in t.ref!==void 0&&(i=t.ref),t.key!==void 0&&(l=""+t.key),t)vf.call(t,r)&&!mf.hasOwnProperty(r)&&(o[r]=t[r]);var u=arguments.length-2;if(u===1)o.children=n;else if(1>>1,y=$[j];if(0>>1;jo(G,I))zo(Y,G)?($[j]=Y,$[z]=I,j=z):($[j]=G,$[x]=I,j=x);else if(zo(Y,I))$[j]=Y,$[z]=I,j=z;else break e}}return H}function o($,H){var I=$.sortIndex-H.sortIndex;return I!==0?I:$.id-H.id}if(typeof performance=="object"&&typeof performance.now=="function"){var l=performance;e.unstable_now=function(){return l.now()}}else{var i=Date,u=i.now();e.unstable_now=function(){return i.now()-u}}var s=[],a=[],d=1,f=null,m=3,_=!1,S=!1,R=!1,F=typeof setTimeout=="function"?setTimeout:null,h=typeof clearTimeout=="function"?clearTimeout:null,c=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function p($){for(var H=n(a);H!==null;){if(H.callback===null)r(a);else if(H.startTime<=$)r(a),H.sortIndex=H.expirationTime,t(s,H);else break;H=n(a)}}function w($){if(R=!1,p($),!S)if(n(s)!==null)S=!0,Ie(E);else{var H=n(a);H!==null&&Xe(w,H.startTime-$)}}function E($,H){S=!1,R&&(R=!1,h(V),V=-1),_=!0;var I=m;try{for(p(H),f=n(s);f!==null&&(!(f.expirationTime>H)||$&&!fe());){var j=f.callback;if(typeof j=="function"){f.callback=null,m=f.priorityLevel;var y=j(f.expirationTime<=H);H=e.unstable_now(),typeof y=="function"?f.callback=y:f===n(s)&&r(s),p(H)}else r(s);f=n(s)}if(f!==null)var A=!0;else{var x=n(a);x!==null&&Xe(w,x.startTime-H),A=!1}return A}finally{f=null,m=I,_=!1}}var L=!1,C=null,V=-1,te=5,U=-1;function fe(){return!(e.unstable_now()-U$||125<$?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):te=0<$?Math.floor(1e3/$):5},e.unstable_getCurrentPriorityLevel=function(){return m},e.unstable_getFirstCallbackNode=function(){return n(s)},e.unstable_next=function($){switch(m){case 1:case 2:case 3:var H=3;break;default:H=m}var I=m;m=H;try{return $()}finally{m=I}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function($,H){switch($){case 1:case 2:case 3:case 4:case 5:break;default:$=3}var I=m;m=$;try{return H()}finally{m=I}},e.unstable_scheduleCallback=function($,H,I){var j=e.unstable_now();switch(typeof I=="object"&&I!==null?(I=I.delay,I=typeof I=="number"&&0j?($.sortIndex=I,t(a,$),n(s)===null&&$===n(a)&&(R?(h(V),V=-1):R=!0,Xe(w,I-j))):($.sortIndex=y,t(s,$),S||_||(S=!0,Ie(E))),$},e.unstable_shouldYield=fe,e.unstable_wrapCallback=function($){var H=m;return function(){var I=m;m=H;try{return $.apply(this,arguments)}finally{m=I}}}})(_f);wf.exports=_f;var Pv=wf.exports;/** + */(function(e){function t($,H){var I=$.length;$.push(H);e:for(;0>>1,y=$[j];if(0>>1;jo(G,I))zo(Y,G)?($[j]=Y,$[z]=I,j=z):($[j]=G,$[x]=I,j=x);else if(zo(Y,I))$[j]=Y,$[z]=I,j=z;else break e}}return H}function o($,H){var I=$.sortIndex-H.sortIndex;return I!==0?I:$.id-H.id}if(typeof performance=="object"&&typeof performance.now=="function"){var l=performance;e.unstable_now=function(){return l.now()}}else{var i=Date,u=i.now();e.unstable_now=function(){return i.now()-u}}var s=[],a=[],d=1,f=null,m=3,_=!1,S=!1,R=!1,F=typeof setTimeout=="function"?setTimeout:null,h=typeof clearTimeout=="function"?clearTimeout:null,c=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function p($){for(var H=n(a);H!==null;){if(H.callback===null)r(a);else if(H.startTime<=$)r(a),H.sortIndex=H.expirationTime,t(s,H);else break;H=n(a)}}function w($){if(R=!1,p($),!S)if(n(s)!==null)S=!0,Ie(E);else{var H=n(a);H!==null&&Xe(w,H.startTime-$)}}function E($,H){S=!1,R&&(R=!1,h(V),V=-1),_=!0;var I=m;try{for(p(H),f=n(s);f!==null&&(!(f.expirationTime>H)||$&&!fe());){var j=f.callback;if(typeof j=="function"){f.callback=null,m=f.priorityLevel;var y=j(f.expirationTime<=H);H=e.unstable_now(),typeof y=="function"?f.callback=y:f===n(s)&&r(s),p(H)}else r(s);f=n(s)}if(f!==null)var A=!0;else{var x=n(a);x!==null&&Xe(w,x.startTime-H),A=!1}return A}finally{f=null,m=I,_=!1}}var L=!1,N=null,V=-1,te=5,U=-1;function fe(){return!(e.unstable_now()-U$||125<$?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):te=0<$?Math.floor(1e3/$):5},e.unstable_getCurrentPriorityLevel=function(){return m},e.unstable_getFirstCallbackNode=function(){return n(s)},e.unstable_next=function($){switch(m){case 1:case 2:case 3:var H=3;break;default:H=m}var I=m;m=H;try{return $()}finally{m=I}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function($,H){switch($){case 1:case 2:case 3:case 4:case 5:break;default:$=3}var I=m;m=$;try{return H()}finally{m=I}},e.unstable_scheduleCallback=function($,H,I){var j=e.unstable_now();switch(typeof I=="object"&&I!==null?(I=I.delay,I=typeof I=="number"&&0j?($.sortIndex=I,t(a,$),n(s)===null&&$===n(a)&&(R?(h(V),V=-1):R=!0,Xe(w,I-j))):($.sortIndex=y,t(s,$),S||_||(S=!0,Ie(E))),$},e.unstable_shouldYield=fe,e.unstable_wrapCallback=function($){var H=m;return function(){var I=m;m=H;try{return $.apply(this,arguments)}finally{m=I}}}})(_f);wf.exports=_f;var Pv=wf.exports;/** * @license React * react-dom.production.min.js * @@ -31,15 +31,15 @@ function sf(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"d * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var Rf=N,nt=Pv;function T(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),au=Object.prototype.hasOwnProperty,$v=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,Pa={},$a={};function Iv(e){return au.call($a,e)?!0:au.call(Pa,e)?!1:$v.test(e)?$a[e]=!0:(Pa[e]=!0,!1)}function Vv(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function zv(e,t,n,r){if(t===null||typeof t>"u"||Vv(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function je(e,t,n,r,o,l,i){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=l,this.removeEmptyString=i}var Pe={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Pe[e]=new je(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Pe[t]=new je(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Pe[e]=new je(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Pe[e]=new je(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){Pe[e]=new je(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Pe[e]=new je(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Pe[e]=new je(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Pe[e]=new je(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Pe[e]=new je(e,5,!1,e.toLowerCase(),null,!1,!1)});var vs=/[\-:]([a-z])/g;function ms(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(vs,ms);Pe[t]=new je(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(vs,ms);Pe[t]=new je(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(vs,ms);Pe[t]=new je(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Pe[e]=new je(e,1,!1,e.toLowerCase(),null,!1,!1)});Pe.xlinkHref=new je("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Pe[e]=new je(e,1,!1,e.toLowerCase(),null,!0,!0)});function ys(e,t,n,r){var o=Pe.hasOwnProperty(t)?Pe[t]:null;(o!==null?o.type!==0:r||!(2"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),cu=Object.prototype.hasOwnProperty,$v=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,Pa={},$a={};function Iv(e){return cu.call($a,e)?!0:cu.call(Pa,e)?!1:$v.test(e)?$a[e]=!0:(Pa[e]=!0,!1)}function Vv(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function zv(e,t,n,r){if(t===null||typeof t>"u"||Vv(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function je(e,t,n,r,o,l,i){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=l,this.removeEmptyString=i}var Pe={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Pe[e]=new je(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Pe[t]=new je(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Pe[e]=new je(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Pe[e]=new je(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){Pe[e]=new je(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Pe[e]=new je(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Pe[e]=new je(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Pe[e]=new je(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Pe[e]=new je(e,5,!1,e.toLowerCase(),null,!1,!1)});var ms=/[\-:]([a-z])/g;function ys(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(ms,ys);Pe[t]=new je(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(ms,ys);Pe[t]=new je(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(ms,ys);Pe[t]=new je(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Pe[e]=new je(e,1,!1,e.toLowerCase(),null,!1,!1)});Pe.xlinkHref=new je("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Pe[e]=new je(e,1,!1,e.toLowerCase(),null,!0,!0)});function gs(e,t,n,r){var o=Pe.hasOwnProperty(t)?Pe[t]:null;(o!==null?o.type!==0:r||!(2u||o[i]!==l[u]){var s=` -`+o[i].replace(" at new "," at ");return e.displayName&&s.includes("")&&(s=s.replace("",e.displayName)),s}while(1<=i&&0<=u);break}}}finally{Ai=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?zr(e):""}function Dv(e){switch(e.tag){case 5:return zr(e.type);case 16:return zr("Lazy");case 13:return zr("Suspense");case 19:return zr("SuspenseList");case 0:case 2:case 15:return e=xi(e.type,!1),e;case 11:return e=xi(e.type.render,!1),e;case 1:return e=xi(e.type,!0),e;default:return""}}function pu(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case Fn:return"Fragment";case Un:return"Portal";case cu:return"Profiler";case gs:return"StrictMode";case fu:return"Suspense";case du:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Tf:return(e.displayName||"Context")+".Consumer";case kf:return(e._context.displayName||"Context")+".Provider";case Ss:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case ws:return t=e.displayName||null,t!==null?t:pu(e.type)||"Memo";case Ht:t=e._payload,e=e._init;try{return pu(e(t))}catch{}}return null}function Ov(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return pu(t);case 8:return t===gs?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function sn(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Nf(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Uv(e){var t=Nf(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var o=n.get,l=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(i){r=""+i,l.call(this,i)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(i){r=""+i},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Vo(e){e._valueTracker||(e._valueTracker=Uv(e))}function Lf(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=Nf(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function hl(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function hu(e,t){var n=t.checked;return we({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Va(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=sn(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function Af(e,t){t=t.checked,t!=null&&ys(e,"checked",t,!1)}function vu(e,t){Af(e,t);var n=sn(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?mu(e,t.type,n):t.hasOwnProperty("defaultValue")&&mu(e,t.type,sn(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function za(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function mu(e,t,n){(t!=="number"||hl(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Dr=Array.isArray;function Xn(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o"+t.valueOf().toString()+"",t=zo.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function eo(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Br={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},Fv=["Webkit","ms","Moz","O"];Object.keys(Br).forEach(function(e){Fv.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Br[t]=Br[e]})});function $f(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Br.hasOwnProperty(e)&&Br[e]?(""+t).trim():t+"px"}function If(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,o=$f(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}var Bv=we({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function Su(e,t){if(t){if(Bv[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(T(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(T(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(T(61))}if(t.style!=null&&typeof t.style!="object")throw Error(T(62))}}function wu(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var _u=null;function _s(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Ru=null,qn=null,Jn=null;function Ua(e){if(e=wo(e)){if(typeof Ru!="function")throw Error(T(280));var t=e.stateNode;t&&(t=Gl(t),Ru(e.stateNode,e.type,t))}}function Vf(e){qn?Jn?Jn.push(e):Jn=[e]:qn=e}function zf(){if(qn){var e=qn,t=Jn;if(Jn=qn=null,Ua(e),t)for(e=0;e>>=0,e===0?32:31-(qv(e)/Jv|0)|0}var Do=64,Oo=4194304;function Or(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function gl(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,o=e.suspendedLanes,l=e.pingedLanes,i=n&268435455;if(i!==0){var u=i&~o;u!==0?r=Or(u):(l&=i,l!==0&&(r=Or(l)))}else i=n&~o,i!==0?r=Or(i):l!==0&&(r=Or(l));if(r===0)return 0;if(t!==0&&t!==r&&!(t&o)&&(o=r&-r,l=t&-t,o>=l||o===16&&(l&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0n;n++)t.push(e);return t}function go(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-_t(t),e[t]=n}function r0(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0=Wr),Qa=" ",Za=!1;function nd(e,t){switch(e){case"keyup":return M0.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function rd(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Bn=!1;function $0(e,t){switch(e){case"compositionend":return rd(t);case"keypress":return t.which!==32?null:(Za=!0,Qa);case"textInput":return e=t.data,e===Qa&&Za?null:e;default:return null}}function I0(e,t){if(Bn)return e==="compositionend"||!As&&nd(e,t)?(e=ed(),ol=Cs=Zt=null,Bn=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=Ja(n)}}function ud(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?ud(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function sd(){for(var e=window,t=hl();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=hl(e.document)}return t}function xs(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function W0(e){var t=sd(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&ud(n.ownerDocument.documentElement,n)){if(r!==null&&xs(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var o=n.textContent.length,l=Math.min(r.start,o);r=r.end===void 0?l:Math.min(r.end,o),!e.extend&&l>r&&(o=r,r=l,l=o),o=ec(n,l);var i=ec(n,r);o&&i&&(e.rangeCount!==1||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==i.node||e.focusOffset!==i.offset)&&(t=t.createRange(),t.setStart(o.node,o.offset),e.removeAllRanges(),l>r?(e.addRange(t),e.extend(i.node,i.offset)):(t.setEnd(i.node,i.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n=document.documentMode,jn=null,Lu=null,br=null,Au=!1;function tc(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Au||jn==null||jn!==hl(r)||(r=jn,"selectionStart"in r&&xs(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),br&&io(br,r)||(br=r,r=_l(Lu,"onSelect"),0bn||(e.current=Vu[bn],Vu[bn]=null,bn--)}function ue(e,t){bn++,Vu[bn]=e.current,e.current=t}var an={},Oe=dn(an),Ke=dn(!1),Tn=an;function lr(e,t){var n=e.type.contextTypes;if(!n)return an;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o={},l;for(l in n)o[l]=t[l];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function Ge(e){return e=e.childContextTypes,e!=null}function El(){ce(Ke),ce(Oe)}function sc(e,t,n){if(Oe.current!==an)throw Error(T(168));ue(Oe,t),ue(Ke,n)}function yd(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var o in r)if(!(o in t))throw Error(T(108,Ov(e)||"Unknown",o));return we({},n,r)}function kl(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||an,Tn=Oe.current,ue(Oe,e),ue(Ke,Ke.current),!0}function ac(e,t,n){var r=e.stateNode;if(!r)throw Error(T(169));n?(e=yd(e,t,Tn),r.__reactInternalMemoizedMergedChildContext=e,ce(Ke),ce(Oe),ue(Oe,e)):ce(Ke),ue(Ke,n)}var $t=null,Ql=!1,Hi=!1;function gd(e){$t===null?$t=[e]:$t.push(e)}function tm(e){Ql=!0,gd(e)}function pn(){if(!Hi&&$t!==null){Hi=!0;var e=0,t=re;try{var n=$t;for(re=1;e>=i,o-=i,It=1<<32-_t(t)+o|n<V?(te=C,C=null):te=C.sibling;var U=m(h,C,p[V],w);if(U===null){C===null&&(C=te);break}e&&C&&U.alternate===null&&t(h,C),c=l(U,c,V),L===null?E=U:L.sibling=U,L=U,C=te}if(V===p.length)return n(h,C),he&&yn(h,V),E;if(C===null){for(;VV?(te=C,C=null):te=C.sibling;var fe=m(h,C,U.value,w);if(fe===null){C===null&&(C=te);break}e&&C&&fe.alternate===null&&t(h,C),c=l(fe,c,V),L===null?E=fe:L.sibling=fe,L=fe,C=te}if(U.done)return n(h,C),he&&yn(h,V),E;if(C===null){for(;!U.done;V++,U=p.next())U=f(h,U.value,w),U!==null&&(c=l(U,c,V),L===null?E=U:L.sibling=U,L=U);return he&&yn(h,V),E}for(C=r(h,C);!U.done;V++,U=p.next())U=_(C,h,V,U.value,w),U!==null&&(e&&U.alternate!==null&&C.delete(U.key===null?V:U.key),c=l(U,c,V),L===null?E=U:L.sibling=U,L=U);return e&&C.forEach(function(lt){return t(h,lt)}),he&&yn(h,V),E}function F(h,c,p,w){if(typeof p=="object"&&p!==null&&p.type===Fn&&p.key===null&&(p=p.props.children),typeof p=="object"&&p!==null){switch(p.$$typeof){case Io:e:{for(var E=p.key,L=c;L!==null;){if(L.key===E){if(E=p.type,E===Fn){if(L.tag===7){n(h,L.sibling),c=o(L,p.props.children),c.return=h,h=c;break e}}else if(L.elementType===E||typeof E=="object"&&E!==null&&E.$$typeof===Ht&&mc(E)===L.type){n(h,L.sibling),c=o(L,p.props),c.ref=Lr(h,L,p),c.return=h,h=c;break e}n(h,L);break}else t(h,L);L=L.sibling}p.type===Fn?(c=kn(p.props.children,h.mode,w,p.key),c.return=h,h=c):(w=dl(p.type,p.key,p.props,null,h.mode,w),w.ref=Lr(h,c,p),w.return=h,h=w)}return i(h);case Un:e:{for(L=p.key;c!==null;){if(c.key===L)if(c.tag===4&&c.stateNode.containerInfo===p.containerInfo&&c.stateNode.implementation===p.implementation){n(h,c.sibling),c=o(c,p.children||[]),c.return=h,h=c;break e}else{n(h,c);break}else t(h,c);c=c.sibling}c=qi(p,h.mode,w),c.return=h,h=c}return i(h);case Ht:return L=p._init,F(h,c,L(p._payload),w)}if(Dr(p))return S(h,c,p,w);if(Er(p))return R(h,c,p,w);bo(h,p)}return typeof p=="string"&&p!==""||typeof p=="number"?(p=""+p,c!==null&&c.tag===6?(n(h,c.sibling),c=o(c,p),c.return=h,h=c):(n(h,c),c=Xi(p,h.mode,w),c.return=h,h=c),i(h)):n(h,c)}return F}var ur=Cd(!0),Nd=Cd(!1),_o={},Lt=dn(_o),co=dn(_o),fo=dn(_o);function Rn(e){if(e===_o)throw Error(T(174));return e}function Us(e,t){switch(ue(fo,t),ue(co,e),ue(Lt,_o),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:gu(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=gu(t,e)}ce(Lt),ue(Lt,t)}function sr(){ce(Lt),ce(co),ce(fo)}function Ld(e){Rn(fo.current);var t=Rn(Lt.current),n=gu(t,e.type);t!==n&&(ue(co,e),ue(Lt,n))}function Fs(e){co.current===e&&(ce(Lt),ce(co))}var ge=dn(0);function xl(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var bi=[];function Bs(){for(var e=0;en?n:4,e(!0);var r=Ki.transition;Ki.transition={};try{e(!1),t()}finally{re=n,Ki.transition=r}}function Hd(){return pt().memoizedState}function lm(e,t,n){var r=ln(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},bd(e))Kd(t,n);else if(n=Rd(e,t,n,r),n!==null){var o=Fe();Rt(n,e,r,o),Gd(n,t,r)}}function im(e,t,n){var r=ln(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(bd(e))Kd(t,o);else{var l=e.alternate;if(e.lanes===0&&(l===null||l.lanes===0)&&(l=t.lastRenderedReducer,l!==null))try{var i=t.lastRenderedState,u=l(i,n);if(o.hasEagerState=!0,o.eagerState=u,Et(u,i)){var s=t.interleaved;s===null?(o.next=o,Ds(t)):(o.next=s.next,s.next=o),t.interleaved=o;return}}catch{}finally{}n=Rd(e,t,o,r),n!==null&&(o=Fe(),Rt(n,e,r,o),Gd(n,t,r))}}function bd(e){var t=e.alternate;return e===Se||t!==null&&t===Se}function Kd(e,t){Kr=Ml=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Gd(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Es(e,n)}}var Pl={readContext:dt,useCallback:Ve,useContext:Ve,useEffect:Ve,useImperativeHandle:Ve,useInsertionEffect:Ve,useLayoutEffect:Ve,useMemo:Ve,useReducer:Ve,useRef:Ve,useState:Ve,useDebugValue:Ve,useDeferredValue:Ve,useTransition:Ve,useMutableSource:Ve,useSyncExternalStore:Ve,useId:Ve,unstable_isNewReconciler:!1},um={readContext:dt,useCallback:function(e,t){return Tt().memoizedState=[e,t===void 0?null:t],e},useContext:dt,useEffect:gc,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,sl(4194308,4,Ud.bind(null,t,e),n)},useLayoutEffect:function(e,t){return sl(4194308,4,e,t)},useInsertionEffect:function(e,t){return sl(4,2,e,t)},useMemo:function(e,t){var n=Tt();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Tt();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=lm.bind(null,Se,e),[r.memoizedState,e]},useRef:function(e){var t=Tt();return e={current:e},t.memoizedState=e},useState:yc,useDebugValue:Ks,useDeferredValue:function(e){return Tt().memoizedState=e},useTransition:function(){var e=yc(!1),t=e[0];return e=om.bind(null,e[1]),Tt().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=Se,o=Tt();if(he){if(n===void 0)throw Error(T(407));n=n()}else{if(n=t(),Ae===null)throw Error(T(349));Nn&30||Md(r,t,n)}o.memoizedState=n;var l={value:n,getSnapshot:t};return o.queue=l,gc($d.bind(null,r,l,e),[e]),r.flags|=2048,vo(9,Pd.bind(null,r,l,n,t),void 0,null),n},useId:function(){var e=Tt(),t=Ae.identifierPrefix;if(he){var n=Vt,r=It;n=(r&~(1<<32-_t(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=po++,0")&&(s=s.replace("",e.displayName)),s}while(1<=i&&0<=u);break}}}finally{xi=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?zr(e):""}function Dv(e){switch(e.tag){case 5:return zr(e.type);case 16:return zr("Lazy");case 13:return zr("Suspense");case 19:return zr("SuspenseList");case 0:case 2:case 15:return e=Mi(e.type,!1),e;case 11:return e=Mi(e.type.render,!1),e;case 1:return e=Mi(e.type,!0),e;default:return""}}function hu(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case Fn:return"Fragment";case Un:return"Portal";case fu:return"Profiler";case Ss:return"StrictMode";case du:return"Suspense";case pu:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Tf:return(e.displayName||"Context")+".Consumer";case kf:return(e._context.displayName||"Context")+".Provider";case ws:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case _s:return t=e.displayName||null,t!==null?t:hu(e.type)||"Memo";case Ht:t=e._payload,e=e._init;try{return hu(e(t))}catch{}}return null}function Ov(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return hu(t);case 8:return t===Ss?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function sn(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Nf(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Uv(e){var t=Nf(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var o=n.get,l=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(i){r=""+i,l.call(this,i)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(i){r=""+i},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Vo(e){e._valueTracker||(e._valueTracker=Uv(e))}function Lf(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=Nf(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function hl(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function vu(e,t){var n=t.checked;return we({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Va(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=sn(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function Af(e,t){t=t.checked,t!=null&&gs(e,"checked",t,!1)}function mu(e,t){Af(e,t);var n=sn(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?yu(e,t.type,n):t.hasOwnProperty("defaultValue")&&yu(e,t.type,sn(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function za(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function yu(e,t,n){(t!=="number"||hl(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Dr=Array.isArray;function Xn(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o"+t.valueOf().toString()+"",t=zo.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function eo(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Br={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},Fv=["Webkit","ms","Moz","O"];Object.keys(Br).forEach(function(e){Fv.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Br[t]=Br[e]})});function $f(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Br.hasOwnProperty(e)&&Br[e]?(""+t).trim():t+"px"}function If(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,o=$f(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}var Bv=we({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function wu(e,t){if(t){if(Bv[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(T(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(T(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(T(61))}if(t.style!=null&&typeof t.style!="object")throw Error(T(62))}}function _u(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Ru=null;function Rs(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Eu=null,qn=null,Jn=null;function Ua(e){if(e=wo(e)){if(typeof Eu!="function")throw Error(T(280));var t=e.stateNode;t&&(t=Ql(t),Eu(e.stateNode,e.type,t))}}function Vf(e){qn?Jn?Jn.push(e):Jn=[e]:qn=e}function zf(){if(qn){var e=qn,t=Jn;if(Jn=qn=null,Ua(e),t)for(e=0;e>>=0,e===0?32:31-(qv(e)/Jv|0)|0}var Do=64,Oo=4194304;function Or(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function gl(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,o=e.suspendedLanes,l=e.pingedLanes,i=n&268435455;if(i!==0){var u=i&~o;u!==0?r=Or(u):(l&=i,l!==0&&(r=Or(l)))}else i=n&~o,i!==0?r=Or(i):l!==0&&(r=Or(l));if(r===0)return 0;if(t!==0&&t!==r&&!(t&o)&&(o=r&-r,l=t&-t,o>=l||o===16&&(l&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0n;n++)t.push(e);return t}function go(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-_t(t),e[t]=n}function r0(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0=Wr),Qa=" ",Za=!1;function nd(e,t){switch(e){case"keyup":return M0.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function rd(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Bn=!1;function $0(e,t){switch(e){case"compositionend":return rd(t);case"keypress":return t.which!==32?null:(Za=!0,Qa);case"textInput":return e=t.data,e===Qa&&Za?null:e;default:return null}}function I0(e,t){if(Bn)return e==="compositionend"||!xs&&nd(e,t)?(e=ed(),ol=Ns=Zt=null,Bn=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=Ja(n)}}function ud(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?ud(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function sd(){for(var e=window,t=hl();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=hl(e.document)}return t}function Ms(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function W0(e){var t=sd(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&ud(n.ownerDocument.documentElement,n)){if(r!==null&&Ms(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var o=n.textContent.length,l=Math.min(r.start,o);r=r.end===void 0?l:Math.min(r.end,o),!e.extend&&l>r&&(o=r,r=l,l=o),o=ec(n,l);var i=ec(n,r);o&&i&&(e.rangeCount!==1||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==i.node||e.focusOffset!==i.offset)&&(t=t.createRange(),t.setStart(o.node,o.offset),e.removeAllRanges(),l>r?(e.addRange(t),e.extend(i.node,i.offset)):(t.setEnd(i.node,i.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n=document.documentMode,jn=null,Au=null,br=null,xu=!1;function tc(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;xu||jn==null||jn!==hl(r)||(r=jn,"selectionStart"in r&&Ms(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),br&&io(br,r)||(br=r,r=_l(Au,"onSelect"),0bn||(e.current=zu[bn],zu[bn]=null,bn--)}function ue(e,t){bn++,zu[bn]=e.current,e.current=t}var an={},Oe=dn(an),Ke=dn(!1),Tn=an;function lr(e,t){var n=e.type.contextTypes;if(!n)return an;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o={},l;for(l in n)o[l]=t[l];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function Ge(e){return e=e.childContextTypes,e!=null}function El(){ce(Ke),ce(Oe)}function sc(e,t,n){if(Oe.current!==an)throw Error(T(168));ue(Oe,t),ue(Ke,n)}function yd(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var o in r)if(!(o in t))throw Error(T(108,Ov(e)||"Unknown",o));return we({},n,r)}function kl(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||an,Tn=Oe.current,ue(Oe,e),ue(Ke,Ke.current),!0}function ac(e,t,n){var r=e.stateNode;if(!r)throw Error(T(169));n?(e=yd(e,t,Tn),r.__reactInternalMemoizedMergedChildContext=e,ce(Ke),ce(Oe),ue(Oe,e)):ce(Ke),ue(Ke,n)}var $t=null,Zl=!1,bi=!1;function gd(e){$t===null?$t=[e]:$t.push(e)}function tm(e){Zl=!0,gd(e)}function pn(){if(!bi&&$t!==null){bi=!0;var e=0,t=re;try{var n=$t;for(re=1;e>=i,o-=i,It=1<<32-_t(t)+o|n<V?(te=N,N=null):te=N.sibling;var U=m(h,N,p[V],w);if(U===null){N===null&&(N=te);break}e&&N&&U.alternate===null&&t(h,N),c=l(U,c,V),L===null?E=U:L.sibling=U,L=U,N=te}if(V===p.length)return n(h,N),he&&yn(h,V),E;if(N===null){for(;VV?(te=N,N=null):te=N.sibling;var fe=m(h,N,U.value,w);if(fe===null){N===null&&(N=te);break}e&&N&&fe.alternate===null&&t(h,N),c=l(fe,c,V),L===null?E=fe:L.sibling=fe,L=fe,N=te}if(U.done)return n(h,N),he&&yn(h,V),E;if(N===null){for(;!U.done;V++,U=p.next())U=f(h,U.value,w),U!==null&&(c=l(U,c,V),L===null?E=U:L.sibling=U,L=U);return he&&yn(h,V),E}for(N=r(h,N);!U.done;V++,U=p.next())U=_(N,h,V,U.value,w),U!==null&&(e&&U.alternate!==null&&N.delete(U.key===null?V:U.key),c=l(U,c,V),L===null?E=U:L.sibling=U,L=U);return e&&N.forEach(function(lt){return t(h,lt)}),he&&yn(h,V),E}function F(h,c,p,w){if(typeof p=="object"&&p!==null&&p.type===Fn&&p.key===null&&(p=p.props.children),typeof p=="object"&&p!==null){switch(p.$$typeof){case Io:e:{for(var E=p.key,L=c;L!==null;){if(L.key===E){if(E=p.type,E===Fn){if(L.tag===7){n(h,L.sibling),c=o(L,p.props.children),c.return=h,h=c;break e}}else if(L.elementType===E||typeof E=="object"&&E!==null&&E.$$typeof===Ht&&mc(E)===L.type){n(h,L.sibling),c=o(L,p.props),c.ref=Lr(h,L,p),c.return=h,h=c;break e}n(h,L);break}else t(h,L);L=L.sibling}p.type===Fn?(c=kn(p.props.children,h.mode,w,p.key),c.return=h,h=c):(w=dl(p.type,p.key,p.props,null,h.mode,w),w.ref=Lr(h,c,p),w.return=h,h=w)}return i(h);case Un:e:{for(L=p.key;c!==null;){if(c.key===L)if(c.tag===4&&c.stateNode.containerInfo===p.containerInfo&&c.stateNode.implementation===p.implementation){n(h,c.sibling),c=o(c,p.children||[]),c.return=h,h=c;break e}else{n(h,c);break}else t(h,c);c=c.sibling}c=Ji(p,h.mode,w),c.return=h,h=c}return i(h);case Ht:return L=p._init,F(h,c,L(p._payload),w)}if(Dr(p))return S(h,c,p,w);if(Er(p))return R(h,c,p,w);bo(h,p)}return typeof p=="string"&&p!==""||typeof p=="number"?(p=""+p,c!==null&&c.tag===6?(n(h,c.sibling),c=o(c,p),c.return=h,h=c):(n(h,c),c=qi(p,h.mode,w),c.return=h,h=c),i(h)):n(h,c)}return F}var ur=Cd(!0),Nd=Cd(!1),_o={},Lt=dn(_o),co=dn(_o),fo=dn(_o);function Rn(e){if(e===_o)throw Error(T(174));return e}function Fs(e,t){switch(ue(fo,t),ue(co,e),ue(Lt,_o),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Su(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=Su(t,e)}ce(Lt),ue(Lt,t)}function sr(){ce(Lt),ce(co),ce(fo)}function Ld(e){Rn(fo.current);var t=Rn(Lt.current),n=Su(t,e.type);t!==n&&(ue(co,e),ue(Lt,n))}function Bs(e){co.current===e&&(ce(Lt),ce(co))}var ge=dn(0);function xl(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var Ki=[];function js(){for(var e=0;en?n:4,e(!0);var r=Gi.transition;Gi.transition={};try{e(!1),t()}finally{re=n,Gi.transition=r}}function Hd(){return pt().memoizedState}function lm(e,t,n){var r=ln(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},bd(e))Kd(t,n);else if(n=Rd(e,t,n,r),n!==null){var o=Fe();Rt(n,e,r,o),Gd(n,t,r)}}function im(e,t,n){var r=ln(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(bd(e))Kd(t,o);else{var l=e.alternate;if(e.lanes===0&&(l===null||l.lanes===0)&&(l=t.lastRenderedReducer,l!==null))try{var i=t.lastRenderedState,u=l(i,n);if(o.hasEagerState=!0,o.eagerState=u,Et(u,i)){var s=t.interleaved;s===null?(o.next=o,Os(t)):(o.next=s.next,s.next=o),t.interleaved=o;return}}catch{}finally{}n=Rd(e,t,o,r),n!==null&&(o=Fe(),Rt(n,e,r,o),Gd(n,t,r))}}function bd(e){var t=e.alternate;return e===Se||t!==null&&t===Se}function Kd(e,t){Kr=Ml=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Gd(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,ks(e,n)}}var Pl={readContext:dt,useCallback:Ve,useContext:Ve,useEffect:Ve,useImperativeHandle:Ve,useInsertionEffect:Ve,useLayoutEffect:Ve,useMemo:Ve,useReducer:Ve,useRef:Ve,useState:Ve,useDebugValue:Ve,useDeferredValue:Ve,useTransition:Ve,useMutableSource:Ve,useSyncExternalStore:Ve,useId:Ve,unstable_isNewReconciler:!1},um={readContext:dt,useCallback:function(e,t){return Tt().memoizedState=[e,t===void 0?null:t],e},useContext:dt,useEffect:gc,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,sl(4194308,4,Ud.bind(null,t,e),n)},useLayoutEffect:function(e,t){return sl(4194308,4,e,t)},useInsertionEffect:function(e,t){return sl(4,2,e,t)},useMemo:function(e,t){var n=Tt();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Tt();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=lm.bind(null,Se,e),[r.memoizedState,e]},useRef:function(e){var t=Tt();return e={current:e},t.memoizedState=e},useState:yc,useDebugValue:Gs,useDeferredValue:function(e){return Tt().memoizedState=e},useTransition:function(){var e=yc(!1),t=e[0];return e=om.bind(null,e[1]),Tt().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=Se,o=Tt();if(he){if(n===void 0)throw Error(T(407));n=n()}else{if(n=t(),Ae===null)throw Error(T(349));Nn&30||Md(r,t,n)}o.memoizedState=n;var l={value:n,getSnapshot:t};return o.queue=l,gc($d.bind(null,r,l,e),[e]),r.flags|=2048,vo(9,Pd.bind(null,r,l,n,t),void 0,null),n},useId:function(){var e=Tt(),t=Ae.identifierPrefix;if(he){var n=Vt,r=It;n=(r&~(1<<32-_t(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=po++,0<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=i.createElement(n,{is:r.is}):(e=i.createElement(n),n==="select"&&(i=e,r.multiple?i.multiple=!0:r.size&&(i.size=r.size))):e=i.createElementNS(e,n),e[Ct]=t,e[ao]=r,np(e,t,!1,!1),t.stateNode=e;e:{switch(i=wu(n,r),n){case"dialog":se("cancel",e),se("close",e),o=r;break;case"iframe":case"object":case"embed":se("load",e),o=r;break;case"video":case"audio":for(o=0;ocr&&(t.flags|=128,r=!0,Ar(l,!1),t.lanes=4194304)}else{if(!r)if(e=xl(i),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),Ar(l,!0),l.tail===null&&l.tailMode==="hidden"&&!i.alternate&&!he)return ze(t),null}else 2*Re()-l.renderingStartTime>cr&&n!==1073741824&&(t.flags|=128,r=!0,Ar(l,!1),t.lanes=4194304);l.isBackwards?(i.sibling=t.child,t.child=i):(n=l.last,n!==null?n.sibling=i:t.child=i,l.last=i)}return l.tail!==null?(t=l.tail,l.rendering=t,l.tail=t.sibling,l.renderingStartTime=Re(),t.sibling=null,n=ge.current,ue(ge,r?n&1|2:n&1),t):(ze(t),null);case 22:case 23:return qs(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?Je&1073741824&&(ze(t),t.subtreeFlags&6&&(t.flags|=8192)):ze(t),null;case 24:return null;case 25:return null}throw Error(T(156,t.tag))}function vm(e,t){switch(Ps(t),t.tag){case 1:return Ge(t.type)&&El(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return sr(),ce(Ke),ce(Oe),Bs(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return Fs(t),null;case 13:if(ce(ge),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(T(340));ir()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return ce(ge),null;case 4:return sr(),null;case 10:return zs(t.type._context),null;case 22:case 23:return qs(),null;case 24:return null;default:return null}}var Go=!1,De=!1,mm=typeof WeakSet=="function"?WeakSet:Set,D=null;function Zn(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){_e(e,t,r)}else n.current=null}function Gu(e,t,n){try{n()}catch(r){_e(e,t,r)}}var Nc=!1;function ym(e,t){if(xu=Sl,e=sd(),xs(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var o=r.anchorOffset,l=r.focusNode;r=r.focusOffset;try{n.nodeType,l.nodeType}catch{n=null;break e}var i=0,u=-1,s=-1,a=0,d=0,f=e,m=null;t:for(;;){for(var _;f!==n||o!==0&&f.nodeType!==3||(u=i+o),f!==l||r!==0&&f.nodeType!==3||(s=i+r),f.nodeType===3&&(i+=f.nodeValue.length),(_=f.firstChild)!==null;)m=f,f=_;for(;;){if(f===e)break t;if(m===n&&++a===o&&(u=i),m===l&&++d===r&&(s=i),(_=f.nextSibling)!==null)break;f=m,m=f.parentNode}f=_}n=u===-1||s===-1?null:{start:u,end:s}}else n=null}n=n||{start:0,end:0}}else n=null;for(Mu={focusedElem:e,selectionRange:n},Sl=!1,D=t;D!==null;)if(t=D,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,D=e;else for(;D!==null;){t=D;try{var S=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(S!==null){var R=S.memoizedProps,F=S.memoizedState,h=t.stateNode,c=h.getSnapshotBeforeUpdate(t.elementType===t.type?R:gt(t.type,R),F);h.__reactInternalSnapshotBeforeUpdate=c}break;case 3:var p=t.stateNode.containerInfo;p.nodeType===1?p.textContent="":p.nodeType===9&&p.documentElement&&p.removeChild(p.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(T(163))}}catch(w){_e(t,t.return,w)}if(e=t.sibling,e!==null){e.return=t.return,D=e;break}D=t.return}return S=Nc,Nc=!1,S}function Gr(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var o=r=r.next;do{if((o.tag&e)===e){var l=o.destroy;o.destroy=void 0,l!==void 0&&Gu(t,n,l)}o=o.next}while(o!==r)}}function Xl(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function Qu(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function lp(e){var t=e.alternate;t!==null&&(e.alternate=null,lp(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Ct],delete t[ao],delete t[Iu],delete t[J0],delete t[em])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function ip(e){return e.tag===5||e.tag===3||e.tag===4}function Lc(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||ip(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Zu(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=Rl));else if(r!==4&&(e=e.child,e!==null))for(Zu(e,t,n),e=e.sibling;e!==null;)Zu(e,t,n),e=e.sibling}function Yu(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(Yu(e,t,n),e=e.sibling;e!==null;)Yu(e,t,n),e=e.sibling}var xe=null,St=!1;function Wt(e,t,n){for(n=n.child;n!==null;)up(e,t,n),n=n.sibling}function up(e,t,n){if(Nt&&typeof Nt.onCommitFiberUnmount=="function")try{Nt.onCommitFiberUnmount(Wl,n)}catch{}switch(n.tag){case 5:De||Zn(n,t);case 6:var r=xe,o=St;xe=null,Wt(e,t,n),xe=r,St=o,xe!==null&&(St?(e=xe,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):xe.removeChild(n.stateNode));break;case 18:xe!==null&&(St?(e=xe,n=n.stateNode,e.nodeType===8?Wi(e.parentNode,n):e.nodeType===1&&Wi(e,n),oo(e)):Wi(xe,n.stateNode));break;case 4:r=xe,o=St,xe=n.stateNode.containerInfo,St=!0,Wt(e,t,n),xe=r,St=o;break;case 0:case 11:case 14:case 15:if(!De&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){o=r=r.next;do{var l=o,i=l.destroy;l=l.tag,i!==void 0&&(l&2||l&4)&&Gu(n,t,i),o=o.next}while(o!==r)}Wt(e,t,n);break;case 1:if(!De&&(Zn(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(u){_e(n,t,u)}Wt(e,t,n);break;case 21:Wt(e,t,n);break;case 22:n.mode&1?(De=(r=De)||n.memoizedState!==null,Wt(e,t,n),De=r):Wt(e,t,n);break;default:Wt(e,t,n)}}function Ac(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new mm),t.forEach(function(r){var o=Cm.bind(null,e,r);n.has(r)||(n.add(r),r.then(o,o))})}}function mt(e,t){var n=t.deletions;if(n!==null)for(var r=0;ro&&(o=i),r&=~l}if(r=o,r=Re()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*Sm(r/1960))-r,10e?16:e,Yt===null)var r=!1;else{if(e=Yt,Yt=null,Vl=0,ne&6)throw Error(T(331));var o=ne;for(ne|=4,D=e.current;D!==null;){var l=D,i=l.child;if(D.flags&16){var u=l.deletions;if(u!==null){for(var s=0;sRe()-Ys?En(e,0):Zs|=n),Qe(e,t)}function vp(e,t){t===0&&(e.mode&1?(t=Oo,Oo<<=1,!(Oo&130023424)&&(Oo=4194304)):t=1);var n=Fe();e=Ut(e,t),e!==null&&(go(e,t,n),Qe(e,n))}function Tm(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),vp(e,n)}function Cm(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,o=e.memoizedState;o!==null&&(n=o.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(T(314))}r!==null&&r.delete(t),vp(e,n)}var mp;mp=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||Ke.current)be=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return be=!1,pm(e,t,n);be=!!(e.flags&131072)}else be=!1,he&&t.flags&1048576&&Sd(t,Cl,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;al(e,t),e=t.pendingProps;var o=lr(t,Oe.current);tr(t,n),o=Ws(null,t,r,e,o,n);var l=Hs();return t.flags|=1,typeof o=="object"&&o!==null&&typeof o.render=="function"&&o.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Ge(r)?(l=!0,kl(t)):l=!1,t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,Os(t),o.updater=Zl,t.stateNode=o,o._reactInternals=t,Fu(t,r,e,n),t=Wu(null,t,r,!0,l,n)):(t.tag=0,he&&l&&Ms(t),Ue(null,t,o,n),t=t.child),t;case 16:r=t.elementType;e:{switch(al(e,t),e=t.pendingProps,o=r._init,r=o(r._payload),t.type=r,o=t.tag=Lm(r),e=gt(r,e),o){case 0:t=ju(null,t,r,e,n);break e;case 1:t=kc(null,t,r,e,n);break e;case 11:t=Rc(null,t,r,e,n);break e;case 14:t=Ec(null,t,r,gt(r.type,e),n);break e}throw Error(T(306,r,""))}return t;case 0:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:gt(r,o),ju(e,t,r,o,n);case 1:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:gt(r,o),kc(e,t,r,o,n);case 3:e:{if(Jd(t),e===null)throw Error(T(387));r=t.pendingProps,l=t.memoizedState,o=l.element,Ed(e,t),Al(t,r,null,n);var i=t.memoizedState;if(r=i.element,l.isDehydrated)if(l={element:r,isDehydrated:!1,cache:i.cache,pendingSuspenseBoundaries:i.pendingSuspenseBoundaries,transitions:i.transitions},t.updateQueue.baseState=l,t.memoizedState=l,t.flags&256){o=ar(Error(T(423)),t),t=Tc(e,t,r,n,o);break e}else if(r!==o){o=ar(Error(T(424)),t),t=Tc(e,t,r,n,o);break e}else for(et=nn(t.stateNode.containerInfo.firstChild),tt=t,he=!0,wt=null,n=Nd(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(ir(),r===o){t=Ft(e,t,n);break e}Ue(e,t,r,n)}t=t.child}return t;case 5:return Ld(t),e===null&&Du(t),r=t.type,o=t.pendingProps,l=e!==null?e.memoizedProps:null,i=o.children,Pu(r,o)?i=null:l!==null&&Pu(r,l)&&(t.flags|=32),qd(e,t),Ue(e,t,i,n),t.child;case 6:return e===null&&Du(t),null;case 13:return ep(e,t,n);case 4:return Us(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=ur(t,null,r,n):Ue(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:gt(r,o),Rc(e,t,r,o,n);case 7:return Ue(e,t,t.pendingProps,n),t.child;case 8:return Ue(e,t,t.pendingProps.children,n),t.child;case 12:return Ue(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,o=t.pendingProps,l=t.memoizedProps,i=o.value,ue(Nl,r._currentValue),r._currentValue=i,l!==null)if(Et(l.value,i)){if(l.children===o.children&&!Ke.current){t=Ft(e,t,n);break e}}else for(l=t.child,l!==null&&(l.return=t);l!==null;){var u=l.dependencies;if(u!==null){i=l.child;for(var s=u.firstContext;s!==null;){if(s.context===r){if(l.tag===1){s=zt(-1,n&-n),s.tag=2;var a=l.updateQueue;if(a!==null){a=a.shared;var d=a.pending;d===null?s.next=s:(s.next=d.next,d.next=s),a.pending=s}}l.lanes|=n,s=l.alternate,s!==null&&(s.lanes|=n),Ou(l.return,n,t),u.lanes|=n;break}s=s.next}}else if(l.tag===10)i=l.type===t.type?null:l.child;else if(l.tag===18){if(i=l.return,i===null)throw Error(T(341));i.lanes|=n,u=i.alternate,u!==null&&(u.lanes|=n),Ou(i,n,t),i=l.sibling}else i=l.child;if(i!==null)i.return=l;else for(i=l;i!==null;){if(i===t){i=null;break}if(l=i.sibling,l!==null){l.return=i.return,i=l;break}i=i.return}l=i}Ue(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,tr(t,n),o=dt(o),r=r(o),t.flags|=1,Ue(e,t,r,n),t.child;case 14:return r=t.type,o=gt(r,t.pendingProps),o=gt(r.type,o),Ec(e,t,r,o,n);case 15:return Yd(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:gt(r,o),al(e,t),t.tag=1,Ge(r)?(e=!0,kl(t)):e=!1,tr(t,n),Td(t,r,o),Fu(t,r,o,n),Wu(null,t,r,!0,e,n);case 19:return tp(e,t,n);case 22:return Xd(e,t,n)}throw Error(T(156,t.tag))};function yp(e,t){return Wf(e,t)}function Nm(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function ct(e,t,n,r){return new Nm(e,t,n,r)}function ea(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Lm(e){if(typeof e=="function")return ea(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Ss)return 11;if(e===ws)return 14}return 2}function un(e,t){var n=e.alternate;return n===null?(n=ct(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function dl(e,t,n,r,o,l){var i=2;if(r=e,typeof e=="function")ea(e)&&(i=1);else if(typeof e=="string")i=5;else e:switch(e){case Fn:return kn(n.children,o,l,t);case gs:i=8,o|=8;break;case cu:return e=ct(12,n,t,o|2),e.elementType=cu,e.lanes=l,e;case fu:return e=ct(13,n,t,o),e.elementType=fu,e.lanes=l,e;case du:return e=ct(19,n,t,o),e.elementType=du,e.lanes=l,e;case Cf:return Jl(n,o,l,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case kf:i=10;break e;case Tf:i=9;break e;case Ss:i=11;break e;case ws:i=14;break e;case Ht:i=16,r=null;break e}throw Error(T(130,e==null?e:typeof e,""))}return t=ct(i,n,t,o),t.elementType=e,t.type=r,t.lanes=l,t}function kn(e,t,n,r){return e=ct(7,e,r,t),e.lanes=n,e}function Jl(e,t,n,r){return e=ct(22,e,r,t),e.elementType=Cf,e.lanes=n,e.stateNode={isHidden:!1},e}function Xi(e,t,n){return e=ct(6,e,null,t),e.lanes=n,e}function qi(e,t,n){return t=ct(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Am(e,t,n,r,o){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Pi(0),this.expirationTimes=Pi(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Pi(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function ta(e,t,n,r,o,l,i,u,s){return e=new Am(e,t,n,u,s),t===1?(t=1,l===!0&&(t|=8)):t=0,l=ct(3,null,null,t),e.current=l,l.stateNode=e,l.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Os(l),e}function xm(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(_p)}catch(e){console.error(e)}}_p(),Sf.exports=rt;var Rp=Sf.exports;const Vm=sf(Rp);var Ep={};function zm(e){const t=new Error(e);if(t.stack===void 0)try{throw t}catch{}return t}var Dm=zm,X=Dm;function Om(e){return!!e&&typeof e.then=="function"}var ae=Om;function Um(e,t){if(e!=null)return e;throw X(t??"Got unexpected null or undefined")}var ve=Um;function Z(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class oi{getValue(){throw X("BaseLoadable")}toPromise(){throw X("BaseLoadable")}valueMaybe(){throw X("BaseLoadable")}valueOrThrow(){throw X(`Loadable expected value, but in "${this.state}" state`)}promiseMaybe(){throw X("BaseLoadable")}promiseOrThrow(){throw X(`Loadable expected promise, but in "${this.state}" state`)}errorMaybe(){throw X("BaseLoadable")}errorOrThrow(){throw X(`Loadable expected error, but in "${this.state}" state`)}is(t){return t.state===this.state&&t.contents===this.contents}map(t){throw X("BaseLoadable")}}class Fm extends oi{constructor(t){super(),Z(this,"state","hasValue"),Z(this,"contents",void 0),this.contents=t}getValue(){return this.contents}toPromise(){return Promise.resolve(this.contents)}valueMaybe(){return this.contents}valueOrThrow(){return this.contents}promiseMaybe(){}errorMaybe(){}map(t){try{const n=t(this.contents);return ae(n)?xn(n):fr(n)?n:Ro(n)}catch(n){return ae(n)?xn(n.next(()=>this.map(t))):li(n)}}}class Bm extends oi{constructor(t){super(),Z(this,"state","hasError"),Z(this,"contents",void 0),this.contents=t}getValue(){throw this.contents}toPromise(){return Promise.reject(this.contents)}valueMaybe(){}promiseMaybe(){}errorMaybe(){return this.contents}errorOrThrow(){return this.contents}map(t){return this}}class kp extends oi{constructor(t){super(),Z(this,"state","loading"),Z(this,"contents",void 0),this.contents=t}getValue(){throw this.contents}toPromise(){return this.contents}valueMaybe(){}promiseMaybe(){return this.contents}promiseOrThrow(){return this.contents}errorMaybe(){}map(t){return xn(this.contents.then(n=>{const r=t(n);if(fr(r)){const o=r;switch(o.state){case"hasValue":return o.contents;case"hasError":throw o.contents;case"loading":return o.contents}}return r}).catch(n=>{if(ae(n))return n.then(()=>this.map(t).contents);throw n}))}}function Ro(e){return Object.freeze(new Fm(e))}function li(e){return Object.freeze(new Bm(e))}function xn(e){return Object.freeze(new kp(e))}function Tp(){return Object.freeze(new kp(new Promise(()=>{})))}function jm(e){return e.every(t=>t.state==="hasValue")?Ro(e.map(t=>t.contents)):e.some(t=>t.state==="hasError")?li(ve(e.find(t=>t.state==="hasError"),"Invalid loadable passed to loadableAll").contents):xn(Promise.all(e.map(t=>t.contents)))}function Cp(e){const n=(Array.isArray(e)?e:Object.getOwnPropertyNames(e).map(o=>e[o])).map(o=>fr(o)?o:ae(o)?xn(o):Ro(o)),r=jm(n);return Array.isArray(e)?r:r.map(o=>Object.getOwnPropertyNames(e).reduce((l,i,u)=>({...l,[i]:o[u]}),{}))}function fr(e){return e instanceof oi}const Wm={of:e=>ae(e)?xn(e):fr(e)?e:Ro(e),error:e=>li(e),loading:()=>Tp(),all:Cp,isLoadable:fr};var In={loadableWithValue:Ro,loadableWithError:li,loadableWithPromise:xn,loadableLoading:Tp,loadableAll:Cp,isLoadable:fr,RecoilLoadable:Wm},Hm=In.loadableWithValue,bm=In.loadableWithError,Km=In.loadableWithPromise,Gm=In.loadableLoading,Qm=In.loadableAll,Zm=In.isLoadable,Ym=In.RecoilLoadable,Eo=Object.freeze({__proto__:null,loadableWithValue:Hm,loadableWithError:bm,loadableWithPromise:Km,loadableLoading:Gm,loadableAll:Qm,isLoadable:Zm,RecoilLoadable:Ym});const ts={RECOIL_DUPLICATE_ATOM_KEY_CHECKING_ENABLED:!0,RECOIL_GKS_ENABLED:new Set(["recoil_hamt_2020","recoil_sync_external_store","recoil_suppress_rerender_in_callback","recoil_memory_managament_2020"])};function Xm(e,t){var n,r;const o=(n=Ep[e])===null||n===void 0||(r=n.toLowerCase())===null||r===void 0?void 0:r.trim();if(o==null||o==="")return;if(!["true","false"].includes(o))throw X(`process.env.${e} value must be 'true', 'false', or empty: ${o}`);t(o==="true")}function qm(e,t){var n;const r=(n=Ep[e])===null||n===void 0?void 0:n.trim();r==null||r===""||t(r.split(/\s*,\s*|\s+/))}function Jm(){var e;typeof process>"u"||((e=process)===null||e===void 0?void 0:e.env)!=null&&(Xm("RECOIL_DUPLICATE_ATOM_KEY_CHECKING_ENABLED",t=>{ts.RECOIL_DUPLICATE_ATOM_KEY_CHECKING_ENABLED=t}),qm("RECOIL_GKS_ENABLED",t=>{t.forEach(n=>{ts.RECOIL_GKS_ENABLED.add(n)})}))}Jm();var Sr=ts;function ii(e){return Sr.RECOIL_GKS_ENABLED.has(e)}ii.setPass=e=>{Sr.RECOIL_GKS_ENABLED.add(e)};ii.setFail=e=>{Sr.RECOIL_GKS_ENABLED.delete(e)};ii.clear=()=>{Sr.RECOIL_GKS_ENABLED.clear()};var ie=ii;function e1(e,t,{error:n}={}){return null}var t1=e1,la=t1,Ji,eu,tu;const n1=(Ji=me.createMutableSource)!==null&&Ji!==void 0?Ji:me.unstable_createMutableSource,Np=(eu=me.useMutableSource)!==null&&eu!==void 0?eu:me.unstable_useMutableSource,Lp=(tu=me.useSyncExternalStore)!==null&&tu!==void 0?tu:me.unstable_useSyncExternalStore;function r1(){var e;const{ReactCurrentDispatcher:t,ReactCurrentOwner:n}=me.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;return((e=t==null?void 0:t.current)!==null&&e!==void 0?e:n.currentDispatcher).useSyncExternalStore!=null}function o1(){return ie("recoil_transition_support")?{mode:"TRANSITION_SUPPORT",early:!0,concurrent:!0}:ie("recoil_sync_external_store")&&Lp!=null?{mode:"SYNC_EXTERNAL_STORE",early:!0,concurrent:!1}:ie("recoil_mutable_source")&&Np!=null&&typeof window<"u"&&!window.$disableRecoilValueMutableSource_TEMP_HACK_DO_NOT_USE?ie("recoil_suppress_rerender_in_callback")?{mode:"MUTABLE_SOURCE",early:!0,concurrent:!0}:{mode:"MUTABLE_SOURCE",early:!1,concurrent:!1}:ie("recoil_suppress_rerender_in_callback")?{mode:"LEGACY",early:!0,concurrent:!1}:{mode:"LEGACY",early:!1,concurrent:!1}}function l1(){return!1}var ko={createMutableSource:n1,useMutableSource:Np,useSyncExternalStore:Lp,currentRendererSupportsUseSyncExternalStore:r1,reactMode:o1,isFastRefreshEnabled:l1};class ia{constructor(t){Z(this,"key",void 0),this.key=t}toJSON(){return{key:this.key}}}class Ap extends ia{}class xp extends ia{}function i1(e){return e instanceof Ap||e instanceof xp}var ui={AbstractRecoilValue:ia,RecoilState:Ap,RecoilValueReadOnly:xp,isRecoilValue:i1},u1=ui.AbstractRecoilValue,s1=ui.RecoilState,a1=ui.RecoilValueReadOnly,c1=ui.isRecoilValue,dr=Object.freeze({__proto__:null,AbstractRecoilValue:u1,RecoilState:s1,RecoilValueReadOnly:a1,isRecoilValue:c1});function f1(e,t){return function*(){let n=0;for(const r of e)yield t(r,n++)}()}var si=f1;class Mp{}const d1=new Mp,Mn=new Map,ua=new Map;function p1(e){return si(e,t=>ve(ua.get(t)))}function h1(e){if(Mn.has(e)){const t=`Duplicate atom key "${e}". This is a FATAL ERROR in +`+l.stack}return{value:e,source:t,stack:o,digest:null}}function Yi(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function ju(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var cm=typeof WeakMap=="function"?WeakMap:Map;function Qd(e,t,n){n=zt(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Il||(Il=!0,qu=r),ju(e,t)},n}function Zd(e,t,n){n=zt(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var o=t.value;n.payload=function(){return r(o)},n.callback=function(){ju(e,t)}}var l=e.stateNode;return l!==null&&typeof l.componentDidCatch=="function"&&(n.callback=function(){ju(e,t),typeof r!="function"&&(on===null?on=new Set([this]):on.add(this));var i=t.stack;this.componentDidCatch(t.value,{componentStack:i!==null?i:""})}),n}function Sc(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new cm;var o=new Set;r.set(t,o)}else o=r.get(t),o===void 0&&(o=new Set,r.set(t,o));o.has(n)||(o.add(n),e=km.bind(null,e,t,n),t.then(e,e))}function wc(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t!==null?t.dehydrated!==null:!0),t)return e;e=e.return}while(e!==null);return null}function _c(e,t,n,r,o){return e.mode&1?(e.flags|=65536,e.lanes=o,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(t=zt(-1,1),t.tag=2,rn(n,t,1))),n.lanes|=1),e)}var fm=Bt.ReactCurrentOwner,be=!1;function Ue(e,t,n,r){t.child=e===null?Nd(t,null,n,r):ur(t,e.child,n,r)}function Rc(e,t,n,r,o){n=n.render;var l=t.ref;return tr(t,o),r=Hs(e,t,n,r,l,o),n=bs(),e!==null&&!be?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,Ft(e,t,o)):(he&&n&&Ps(t),t.flags|=1,Ue(e,t,r,o),t.child)}function Ec(e,t,n,r,o){if(e===null){var l=n.type;return typeof l=="function"&&!ta(l)&&l.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=l,Yd(e,t,l,r,o)):(e=dl(n.type,null,r,t,t.mode,o),e.ref=t.ref,e.return=t,t.child=e)}if(l=e.child,!(e.lanes&o)){var i=l.memoizedProps;if(n=n.compare,n=n!==null?n:io,n(i,r)&&e.ref===t.ref)return Ft(e,t,o)}return t.flags|=1,e=un(l,r),e.ref=t.ref,e.return=t,t.child=e}function Yd(e,t,n,r,o){if(e!==null){var l=e.memoizedProps;if(io(l,r)&&e.ref===t.ref)if(be=!1,t.pendingProps=r=l,(e.lanes&o)!==0)e.flags&131072&&(be=!0);else return t.lanes=e.lanes,Ft(e,t,o)}return Wu(e,t,n,r,o)}function Xd(e,t,n){var r=t.pendingProps,o=r.children,l=e!==null?e.memoizedState:null;if(r.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},ue(Yn,Je),Je|=n;else{if(!(n&1073741824))return e=l!==null?l.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,ue(Yn,Je),Je|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=l!==null?l.baseLanes:n,ue(Yn,Je),Je|=r}else l!==null?(r=l.baseLanes|n,t.memoizedState=null):r=n,ue(Yn,Je),Je|=r;return Ue(e,t,o,n),t.child}function qd(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Wu(e,t,n,r,o){var l=Ge(n)?Tn:Oe.current;return l=lr(t,l),tr(t,o),n=Hs(e,t,n,r,l,o),r=bs(),e!==null&&!be?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,Ft(e,t,o)):(he&&r&&Ps(t),t.flags|=1,Ue(e,t,n,o),t.child)}function kc(e,t,n,r,o){if(Ge(n)){var l=!0;kl(t)}else l=!1;if(tr(t,o),t.stateNode===null)al(e,t),Td(t,n,r),Bu(t,n,r,o),r=!0;else if(e===null){var i=t.stateNode,u=t.memoizedProps;i.props=u;var s=i.context,a=n.contextType;typeof a=="object"&&a!==null?a=dt(a):(a=Ge(n)?Tn:Oe.current,a=lr(t,a));var d=n.getDerivedStateFromProps,f=typeof d=="function"||typeof i.getSnapshotBeforeUpdate=="function";f||typeof i.UNSAFE_componentWillReceiveProps!="function"&&typeof i.componentWillReceiveProps!="function"||(u!==r||s!==a)&&vc(t,i,r,a),bt=!1;var m=t.memoizedState;i.state=m,Al(t,r,i,o),s=t.memoizedState,u!==r||m!==s||Ke.current||bt?(typeof d=="function"&&(Fu(t,n,d,r),s=t.memoizedState),(u=bt||hc(t,n,u,r,m,s,a))?(f||typeof i.UNSAFE_componentWillMount!="function"&&typeof i.componentWillMount!="function"||(typeof i.componentWillMount=="function"&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount=="function"&&i.UNSAFE_componentWillMount()),typeof i.componentDidMount=="function"&&(t.flags|=4194308)):(typeof i.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=s),i.props=r,i.state=s,i.context=a,r=u):(typeof i.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{i=t.stateNode,Ed(e,t),u=t.memoizedProps,a=t.type===t.elementType?u:gt(t.type,u),i.props=a,f=t.pendingProps,m=i.context,s=n.contextType,typeof s=="object"&&s!==null?s=dt(s):(s=Ge(n)?Tn:Oe.current,s=lr(t,s));var _=n.getDerivedStateFromProps;(d=typeof _=="function"||typeof i.getSnapshotBeforeUpdate=="function")||typeof i.UNSAFE_componentWillReceiveProps!="function"&&typeof i.componentWillReceiveProps!="function"||(u!==f||m!==s)&&vc(t,i,r,s),bt=!1,m=t.memoizedState,i.state=m,Al(t,r,i,o);var S=t.memoizedState;u!==f||m!==S||Ke.current||bt?(typeof _=="function"&&(Fu(t,n,_,r),S=t.memoizedState),(a=bt||hc(t,n,a,r,m,S,s)||!1)?(d||typeof i.UNSAFE_componentWillUpdate!="function"&&typeof i.componentWillUpdate!="function"||(typeof i.componentWillUpdate=="function"&&i.componentWillUpdate(r,S,s),typeof i.UNSAFE_componentWillUpdate=="function"&&i.UNSAFE_componentWillUpdate(r,S,s)),typeof i.componentDidUpdate=="function"&&(t.flags|=4),typeof i.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof i.componentDidUpdate!="function"||u===e.memoizedProps&&m===e.memoizedState||(t.flags|=4),typeof i.getSnapshotBeforeUpdate!="function"||u===e.memoizedProps&&m===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=S),i.props=r,i.state=S,i.context=s,r=a):(typeof i.componentDidUpdate!="function"||u===e.memoizedProps&&m===e.memoizedState||(t.flags|=4),typeof i.getSnapshotBeforeUpdate!="function"||u===e.memoizedProps&&m===e.memoizedState||(t.flags|=1024),r=!1)}return Hu(e,t,n,r,l,o)}function Hu(e,t,n,r,o,l){qd(e,t);var i=(t.flags&128)!==0;if(!r&&!i)return o&&ac(t,n,!1),Ft(e,t,l);r=t.stateNode,fm.current=t;var u=i&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&i?(t.child=ur(t,e.child,null,l),t.child=ur(t,null,u,l)):Ue(e,t,u,l),t.memoizedState=r.state,o&&ac(t,n,!0),t.child}function Jd(e){var t=e.stateNode;t.pendingContext?sc(e,t.pendingContext,t.pendingContext!==t.context):t.context&&sc(e,t.context,!1),Fs(e,t.containerInfo)}function Tc(e,t,n,r,o){return ir(),Is(o),t.flags|=256,Ue(e,t,n,r),t.child}var bu={dehydrated:null,treeContext:null,retryLane:0};function Ku(e){return{baseLanes:e,cachePool:null,transitions:null}}function ep(e,t,n){var r=t.pendingProps,o=ge.current,l=!1,i=(t.flags&128)!==0,u;if((u=i)||(u=e!==null&&e.memoizedState===null?!1:(o&2)!==0),u?(l=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(o|=1),ue(ge,o&1),e===null)return Ou(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?(t.mode&1?e.data==="$!"?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(i=r.children,e=r.fallback,l?(r=t.mode,l=t.child,i={mode:"hidden",children:i},!(r&1)&&l!==null?(l.childLanes=0,l.pendingProps=i):l=ei(i,r,0,null),e=kn(e,r,n,null),l.return=t,e.return=t,l.sibling=e,t.child=l,t.child.memoizedState=Ku(n),t.memoizedState=bu,e):Qs(t,i));if(o=e.memoizedState,o!==null&&(u=o.dehydrated,u!==null))return dm(e,t,i,r,u,o,n);if(l){l=r.fallback,i=t.mode,o=e.child,u=o.sibling;var s={mode:"hidden",children:r.children};return!(i&1)&&t.child!==o?(r=t.child,r.childLanes=0,r.pendingProps=s,t.deletions=null):(r=un(o,s),r.subtreeFlags=o.subtreeFlags&14680064),u!==null?l=un(u,l):(l=kn(l,i,n,null),l.flags|=2),l.return=t,r.return=t,r.sibling=l,t.child=r,r=l,l=t.child,i=e.child.memoizedState,i=i===null?Ku(n):{baseLanes:i.baseLanes|n,cachePool:null,transitions:i.transitions},l.memoizedState=i,l.childLanes=e.childLanes&~n,t.memoizedState=bu,r}return l=e.child,e=l.sibling,r=un(l,{mode:"visible",children:r.children}),!(t.mode&1)&&(r.lanes=n),r.return=t,r.sibling=null,e!==null&&(n=t.deletions,n===null?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=r,t.memoizedState=null,r}function Qs(e,t){return t=ei({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function Ko(e,t,n,r){return r!==null&&Is(r),ur(t,e.child,null,n),e=Qs(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function dm(e,t,n,r,o,l,i){if(n)return t.flags&256?(t.flags&=-257,r=Yi(Error(T(422))),Ko(e,t,i,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(l=r.fallback,o=t.mode,r=ei({mode:"visible",children:r.children},o,0,null),l=kn(l,o,i,null),l.flags|=2,r.return=t,l.return=t,r.sibling=l,t.child=r,t.mode&1&&ur(t,e.child,null,i),t.child.memoizedState=Ku(i),t.memoizedState=bu,l);if(!(t.mode&1))return Ko(e,t,i,null);if(o.data==="$!"){if(r=o.nextSibling&&o.nextSibling.dataset,r)var u=r.dgst;return r=u,l=Error(T(419)),r=Yi(l,r,void 0),Ko(e,t,i,r)}if(u=(i&e.childLanes)!==0,be||u){if(r=Ae,r!==null){switch(i&-i){case 4:o=2;break;case 16:o=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:o=32;break;case 536870912:o=268435456;break;default:o=0}o=o&(r.suspendedLanes|i)?0:o,o!==0&&o!==l.retryLane&&(l.retryLane=o,Ut(e,o),Rt(r,e,o,-1))}return ea(),r=Yi(Error(T(421))),Ko(e,t,i,r)}return o.data==="$?"?(t.flags|=128,t.child=e.child,t=Tm.bind(null,e),o._reactRetry=t,null):(e=l.treeContext,et=nn(o.nextSibling),tt=t,he=!0,wt=null,e!==null&&(st[at++]=It,st[at++]=Vt,st[at++]=Cn,It=e.id,Vt=e.overflow,Cn=t),t=Qs(t,r.children),t.flags|=4096,t)}function Cc(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),Uu(e.return,t,n)}function Xi(e,t,n,r,o){var l=e.memoizedState;l===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:o}:(l.isBackwards=t,l.rendering=null,l.renderingStartTime=0,l.last=r,l.tail=n,l.tailMode=o)}function tp(e,t,n){var r=t.pendingProps,o=r.revealOrder,l=r.tail;if(Ue(e,t,r.children,n),r=ge.current,r&2)r=r&1|2,t.flags|=128;else{if(e!==null&&e.flags&128)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Cc(e,n,t);else if(e.tag===19)Cc(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(ue(ge,r),!(t.mode&1))t.memoizedState=null;else switch(o){case"forwards":for(n=t.child,o=null;n!==null;)e=n.alternate,e!==null&&xl(e)===null&&(o=n),n=n.sibling;n=o,n===null?(o=t.child,t.child=null):(o=n.sibling,n.sibling=null),Xi(t,!1,o,n,l);break;case"backwards":for(n=null,o=t.child,t.child=null;o!==null;){if(e=o.alternate,e!==null&&xl(e)===null){t.child=o;break}e=o.sibling,o.sibling=n,n=o,o=e}Xi(t,!0,n,null,l);break;case"together":Xi(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function al(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Ft(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),Ln|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(T(153));if(t.child!==null){for(e=t.child,n=un(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=un(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function pm(e,t,n){switch(t.tag){case 3:Jd(t),ir();break;case 5:Ld(t);break;case 1:Ge(t.type)&&kl(t);break;case 4:Fs(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,o=t.memoizedProps.value;ue(Nl,r._currentValue),r._currentValue=o;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(ue(ge,ge.current&1),t.flags|=128,null):n&t.child.childLanes?ep(e,t,n):(ue(ge,ge.current&1),e=Ft(e,t,n),e!==null?e.sibling:null);ue(ge,ge.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return tp(e,t,n);t.flags|=128}if(o=t.memoizedState,o!==null&&(o.rendering=null,o.tail=null,o.lastEffect=null),ue(ge,ge.current),r)break;return null;case 22:case 23:return t.lanes=0,Xd(e,t,n)}return Ft(e,t,n)}var np,Gu,rp,op;np=function(e,t){for(var n=t.child;n!==null;){if(n.tag===5||n.tag===6)e.appendChild(n.stateNode);else if(n.tag!==4&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}};Gu=function(){};rp=function(e,t,n,r){var o=e.memoizedProps;if(o!==r){e=t.stateNode,Rn(Lt.current);var l=null;switch(n){case"input":o=vu(e,o),r=vu(e,r),l=[];break;case"select":o=we({},o,{value:void 0}),r=we({},r,{value:void 0}),l=[];break;case"textarea":o=gu(e,o),r=gu(e,r),l=[];break;default:typeof o.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=Rl)}wu(n,r);var i;n=null;for(a in o)if(!r.hasOwnProperty(a)&&o.hasOwnProperty(a)&&o[a]!=null)if(a==="style"){var u=o[a];for(i in u)u.hasOwnProperty(i)&&(n||(n={}),n[i]="")}else a!=="dangerouslySetInnerHTML"&&a!=="children"&&a!=="suppressContentEditableWarning"&&a!=="suppressHydrationWarning"&&a!=="autoFocus"&&(Jr.hasOwnProperty(a)?l||(l=[]):(l=l||[]).push(a,null));for(a in r){var s=r[a];if(u=o!=null?o[a]:void 0,r.hasOwnProperty(a)&&s!==u&&(s!=null||u!=null))if(a==="style")if(u){for(i in u)!u.hasOwnProperty(i)||s&&s.hasOwnProperty(i)||(n||(n={}),n[i]="");for(i in s)s.hasOwnProperty(i)&&u[i]!==s[i]&&(n||(n={}),n[i]=s[i])}else n||(l||(l=[]),l.push(a,n)),n=s;else a==="dangerouslySetInnerHTML"?(s=s?s.__html:void 0,u=u?u.__html:void 0,s!=null&&u!==s&&(l=l||[]).push(a,s)):a==="children"?typeof s!="string"&&typeof s!="number"||(l=l||[]).push(a,""+s):a!=="suppressContentEditableWarning"&&a!=="suppressHydrationWarning"&&(Jr.hasOwnProperty(a)?(s!=null&&a==="onScroll"&&se("scroll",e),l||u===s||(l=[])):(l=l||[]).push(a,s))}n&&(l=l||[]).push("style",n);var a=l;(t.updateQueue=a)&&(t.flags|=4)}};op=function(e,t,n,r){n!==r&&(t.flags|=4)};function Ar(e,t){if(!he)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function ze(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var o=e.child;o!==null;)n|=o.lanes|o.childLanes,r|=o.subtreeFlags&14680064,r|=o.flags&14680064,o.return=e,o=o.sibling;else for(o=e.child;o!==null;)n|=o.lanes|o.childLanes,r|=o.subtreeFlags,r|=o.flags,o.return=e,o=o.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function hm(e,t,n){var r=t.pendingProps;switch($s(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return ze(t),null;case 1:return Ge(t.type)&&El(),ze(t),null;case 3:return r=t.stateNode,sr(),ce(Ke),ce(Oe),js(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(Ho(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,wt!==null&&(ts(wt),wt=null))),Gu(e,t),ze(t),null;case 5:Bs(t);var o=Rn(fo.current);if(n=t.type,e!==null&&t.stateNode!=null)rp(e,t,n,r,o),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(T(166));return ze(t),null}if(e=Rn(Lt.current),Ho(t)){r=t.stateNode,n=t.type;var l=t.memoizedProps;switch(r[Ct]=t,r[ao]=l,e=(t.mode&1)!==0,n){case"dialog":se("cancel",r),se("close",r);break;case"iframe":case"object":case"embed":se("load",r);break;case"video":case"audio":for(o=0;o<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=i.createElement(n,{is:r.is}):(e=i.createElement(n),n==="select"&&(i=e,r.multiple?i.multiple=!0:r.size&&(i.size=r.size))):e=i.createElementNS(e,n),e[Ct]=t,e[ao]=r,np(e,t,!1,!1),t.stateNode=e;e:{switch(i=_u(n,r),n){case"dialog":se("cancel",e),se("close",e),o=r;break;case"iframe":case"object":case"embed":se("load",e),o=r;break;case"video":case"audio":for(o=0;ocr&&(t.flags|=128,r=!0,Ar(l,!1),t.lanes=4194304)}else{if(!r)if(e=xl(i),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),Ar(l,!0),l.tail===null&&l.tailMode==="hidden"&&!i.alternate&&!he)return ze(t),null}else 2*Re()-l.renderingStartTime>cr&&n!==1073741824&&(t.flags|=128,r=!0,Ar(l,!1),t.lanes=4194304);l.isBackwards?(i.sibling=t.child,t.child=i):(n=l.last,n!==null?n.sibling=i:t.child=i,l.last=i)}return l.tail!==null?(t=l.tail,l.rendering=t,l.tail=t.sibling,l.renderingStartTime=Re(),t.sibling=null,n=ge.current,ue(ge,r?n&1|2:n&1),t):(ze(t),null);case 22:case 23:return Js(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?Je&1073741824&&(ze(t),t.subtreeFlags&6&&(t.flags|=8192)):ze(t),null;case 24:return null;case 25:return null}throw Error(T(156,t.tag))}function vm(e,t){switch($s(t),t.tag){case 1:return Ge(t.type)&&El(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return sr(),ce(Ke),ce(Oe),js(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return Bs(t),null;case 13:if(ce(ge),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(T(340));ir()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return ce(ge),null;case 4:return sr(),null;case 10:return Ds(t.type._context),null;case 22:case 23:return Js(),null;case 24:return null;default:return null}}var Go=!1,De=!1,mm=typeof WeakSet=="function"?WeakSet:Set,D=null;function Zn(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){_e(e,t,r)}else n.current=null}function Qu(e,t,n){try{n()}catch(r){_e(e,t,r)}}var Nc=!1;function ym(e,t){if(Mu=Sl,e=sd(),Ms(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var o=r.anchorOffset,l=r.focusNode;r=r.focusOffset;try{n.nodeType,l.nodeType}catch{n=null;break e}var i=0,u=-1,s=-1,a=0,d=0,f=e,m=null;t:for(;;){for(var _;f!==n||o!==0&&f.nodeType!==3||(u=i+o),f!==l||r!==0&&f.nodeType!==3||(s=i+r),f.nodeType===3&&(i+=f.nodeValue.length),(_=f.firstChild)!==null;)m=f,f=_;for(;;){if(f===e)break t;if(m===n&&++a===o&&(u=i),m===l&&++d===r&&(s=i),(_=f.nextSibling)!==null)break;f=m,m=f.parentNode}f=_}n=u===-1||s===-1?null:{start:u,end:s}}else n=null}n=n||{start:0,end:0}}else n=null;for(Pu={focusedElem:e,selectionRange:n},Sl=!1,D=t;D!==null;)if(t=D,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,D=e;else for(;D!==null;){t=D;try{var S=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(S!==null){var R=S.memoizedProps,F=S.memoizedState,h=t.stateNode,c=h.getSnapshotBeforeUpdate(t.elementType===t.type?R:gt(t.type,R),F);h.__reactInternalSnapshotBeforeUpdate=c}break;case 3:var p=t.stateNode.containerInfo;p.nodeType===1?p.textContent="":p.nodeType===9&&p.documentElement&&p.removeChild(p.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(T(163))}}catch(w){_e(t,t.return,w)}if(e=t.sibling,e!==null){e.return=t.return,D=e;break}D=t.return}return S=Nc,Nc=!1,S}function Gr(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var o=r=r.next;do{if((o.tag&e)===e){var l=o.destroy;o.destroy=void 0,l!==void 0&&Qu(t,n,l)}o=o.next}while(o!==r)}}function ql(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function Zu(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function lp(e){var t=e.alternate;t!==null&&(e.alternate=null,lp(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Ct],delete t[ao],delete t[Vu],delete t[J0],delete t[em])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function ip(e){return e.tag===5||e.tag===3||e.tag===4}function Lc(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||ip(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Yu(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=Rl));else if(r!==4&&(e=e.child,e!==null))for(Yu(e,t,n),e=e.sibling;e!==null;)Yu(e,t,n),e=e.sibling}function Xu(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(Xu(e,t,n),e=e.sibling;e!==null;)Xu(e,t,n),e=e.sibling}var xe=null,St=!1;function Wt(e,t,n){for(n=n.child;n!==null;)up(e,t,n),n=n.sibling}function up(e,t,n){if(Nt&&typeof Nt.onCommitFiberUnmount=="function")try{Nt.onCommitFiberUnmount(Hl,n)}catch{}switch(n.tag){case 5:De||Zn(n,t);case 6:var r=xe,o=St;xe=null,Wt(e,t,n),xe=r,St=o,xe!==null&&(St?(e=xe,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):xe.removeChild(n.stateNode));break;case 18:xe!==null&&(St?(e=xe,n=n.stateNode,e.nodeType===8?Hi(e.parentNode,n):e.nodeType===1&&Hi(e,n),oo(e)):Hi(xe,n.stateNode));break;case 4:r=xe,o=St,xe=n.stateNode.containerInfo,St=!0,Wt(e,t,n),xe=r,St=o;break;case 0:case 11:case 14:case 15:if(!De&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){o=r=r.next;do{var l=o,i=l.destroy;l=l.tag,i!==void 0&&(l&2||l&4)&&Qu(n,t,i),o=o.next}while(o!==r)}Wt(e,t,n);break;case 1:if(!De&&(Zn(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(u){_e(n,t,u)}Wt(e,t,n);break;case 21:Wt(e,t,n);break;case 22:n.mode&1?(De=(r=De)||n.memoizedState!==null,Wt(e,t,n),De=r):Wt(e,t,n);break;default:Wt(e,t,n)}}function Ac(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new mm),t.forEach(function(r){var o=Cm.bind(null,e,r);n.has(r)||(n.add(r),r.then(o,o))})}}function mt(e,t){var n=t.deletions;if(n!==null)for(var r=0;ro&&(o=i),r&=~l}if(r=o,r=Re()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*Sm(r/1960))-r,10e?16:e,Yt===null)var r=!1;else{if(e=Yt,Yt=null,Vl=0,ne&6)throw Error(T(331));var o=ne;for(ne|=4,D=e.current;D!==null;){var l=D,i=l.child;if(D.flags&16){var u=l.deletions;if(u!==null){for(var s=0;sRe()-Xs?En(e,0):Ys|=n),Qe(e,t)}function vp(e,t){t===0&&(e.mode&1?(t=Oo,Oo<<=1,!(Oo&130023424)&&(Oo=4194304)):t=1);var n=Fe();e=Ut(e,t),e!==null&&(go(e,t,n),Qe(e,n))}function Tm(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),vp(e,n)}function Cm(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,o=e.memoizedState;o!==null&&(n=o.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(T(314))}r!==null&&r.delete(t),vp(e,n)}var mp;mp=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||Ke.current)be=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return be=!1,pm(e,t,n);be=!!(e.flags&131072)}else be=!1,he&&t.flags&1048576&&Sd(t,Cl,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;al(e,t),e=t.pendingProps;var o=lr(t,Oe.current);tr(t,n),o=Hs(null,t,r,e,o,n);var l=bs();return t.flags|=1,typeof o=="object"&&o!==null&&typeof o.render=="function"&&o.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Ge(r)?(l=!0,kl(t)):l=!1,t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,Us(t),o.updater=Yl,t.stateNode=o,o._reactInternals=t,Bu(t,r,e,n),t=Hu(null,t,r,!0,l,n)):(t.tag=0,he&&l&&Ps(t),Ue(null,t,o,n),t=t.child),t;case 16:r=t.elementType;e:{switch(al(e,t),e=t.pendingProps,o=r._init,r=o(r._payload),t.type=r,o=t.tag=Lm(r),e=gt(r,e),o){case 0:t=Wu(null,t,r,e,n);break e;case 1:t=kc(null,t,r,e,n);break e;case 11:t=Rc(null,t,r,e,n);break e;case 14:t=Ec(null,t,r,gt(r.type,e),n);break e}throw Error(T(306,r,""))}return t;case 0:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:gt(r,o),Wu(e,t,r,o,n);case 1:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:gt(r,o),kc(e,t,r,o,n);case 3:e:{if(Jd(t),e===null)throw Error(T(387));r=t.pendingProps,l=t.memoizedState,o=l.element,Ed(e,t),Al(t,r,null,n);var i=t.memoizedState;if(r=i.element,l.isDehydrated)if(l={element:r,isDehydrated:!1,cache:i.cache,pendingSuspenseBoundaries:i.pendingSuspenseBoundaries,transitions:i.transitions},t.updateQueue.baseState=l,t.memoizedState=l,t.flags&256){o=ar(Error(T(423)),t),t=Tc(e,t,r,n,o);break e}else if(r!==o){o=ar(Error(T(424)),t),t=Tc(e,t,r,n,o);break e}else for(et=nn(t.stateNode.containerInfo.firstChild),tt=t,he=!0,wt=null,n=Nd(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(ir(),r===o){t=Ft(e,t,n);break e}Ue(e,t,r,n)}t=t.child}return t;case 5:return Ld(t),e===null&&Ou(t),r=t.type,o=t.pendingProps,l=e!==null?e.memoizedProps:null,i=o.children,$u(r,o)?i=null:l!==null&&$u(r,l)&&(t.flags|=32),qd(e,t),Ue(e,t,i,n),t.child;case 6:return e===null&&Ou(t),null;case 13:return ep(e,t,n);case 4:return Fs(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=ur(t,null,r,n):Ue(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:gt(r,o),Rc(e,t,r,o,n);case 7:return Ue(e,t,t.pendingProps,n),t.child;case 8:return Ue(e,t,t.pendingProps.children,n),t.child;case 12:return Ue(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,o=t.pendingProps,l=t.memoizedProps,i=o.value,ue(Nl,r._currentValue),r._currentValue=i,l!==null)if(Et(l.value,i)){if(l.children===o.children&&!Ke.current){t=Ft(e,t,n);break e}}else for(l=t.child,l!==null&&(l.return=t);l!==null;){var u=l.dependencies;if(u!==null){i=l.child;for(var s=u.firstContext;s!==null;){if(s.context===r){if(l.tag===1){s=zt(-1,n&-n),s.tag=2;var a=l.updateQueue;if(a!==null){a=a.shared;var d=a.pending;d===null?s.next=s:(s.next=d.next,d.next=s),a.pending=s}}l.lanes|=n,s=l.alternate,s!==null&&(s.lanes|=n),Uu(l.return,n,t),u.lanes|=n;break}s=s.next}}else if(l.tag===10)i=l.type===t.type?null:l.child;else if(l.tag===18){if(i=l.return,i===null)throw Error(T(341));i.lanes|=n,u=i.alternate,u!==null&&(u.lanes|=n),Uu(i,n,t),i=l.sibling}else i=l.child;if(i!==null)i.return=l;else for(i=l;i!==null;){if(i===t){i=null;break}if(l=i.sibling,l!==null){l.return=i.return,i=l;break}i=i.return}l=i}Ue(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,tr(t,n),o=dt(o),r=r(o),t.flags|=1,Ue(e,t,r,n),t.child;case 14:return r=t.type,o=gt(r,t.pendingProps),o=gt(r.type,o),Ec(e,t,r,o,n);case 15:return Yd(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:gt(r,o),al(e,t),t.tag=1,Ge(r)?(e=!0,kl(t)):e=!1,tr(t,n),Td(t,r,o),Bu(t,r,o,n),Hu(null,t,r,!0,e,n);case 19:return tp(e,t,n);case 22:return Xd(e,t,n)}throw Error(T(156,t.tag))};function yp(e,t){return Wf(e,t)}function Nm(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function ct(e,t,n,r){return new Nm(e,t,n,r)}function ta(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Lm(e){if(typeof e=="function")return ta(e)?1:0;if(e!=null){if(e=e.$$typeof,e===ws)return 11;if(e===_s)return 14}return 2}function un(e,t){var n=e.alternate;return n===null?(n=ct(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function dl(e,t,n,r,o,l){var i=2;if(r=e,typeof e=="function")ta(e)&&(i=1);else if(typeof e=="string")i=5;else e:switch(e){case Fn:return kn(n.children,o,l,t);case Ss:i=8,o|=8;break;case fu:return e=ct(12,n,t,o|2),e.elementType=fu,e.lanes=l,e;case du:return e=ct(13,n,t,o),e.elementType=du,e.lanes=l,e;case pu:return e=ct(19,n,t,o),e.elementType=pu,e.lanes=l,e;case Cf:return ei(n,o,l,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case kf:i=10;break e;case Tf:i=9;break e;case ws:i=11;break e;case _s:i=14;break e;case Ht:i=16,r=null;break e}throw Error(T(130,e==null?e:typeof e,""))}return t=ct(i,n,t,o),t.elementType=e,t.type=r,t.lanes=l,t}function kn(e,t,n,r){return e=ct(7,e,r,t),e.lanes=n,e}function ei(e,t,n,r){return e=ct(22,e,r,t),e.elementType=Cf,e.lanes=n,e.stateNode={isHidden:!1},e}function qi(e,t,n){return e=ct(6,e,null,t),e.lanes=n,e}function Ji(e,t,n){return t=ct(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Am(e,t,n,r,o){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=$i(0),this.expirationTimes=$i(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=$i(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function na(e,t,n,r,o,l,i,u,s){return e=new Am(e,t,n,u,s),t===1?(t=1,l===!0&&(t|=8)):t=0,l=ct(3,null,null,t),e.current=l,l.stateNode=e,l.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Us(l),e}function xm(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(_p)}catch(e){console.error(e)}}_p(),Sf.exports=rt;var Rp=Sf.exports;const Vm=sf(Rp);var Ep={};function zm(e){const t=new Error(e);if(t.stack===void 0)try{throw t}catch{}return t}var Dm=zm,X=Dm;function Om(e){return!!e&&typeof e.then=="function"}var ae=Om;function Um(e,t){if(e!=null)return e;throw X(t??"Got unexpected null or undefined")}var ve=Um;function Z(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class li{getValue(){throw X("BaseLoadable")}toPromise(){throw X("BaseLoadable")}valueMaybe(){throw X("BaseLoadable")}valueOrThrow(){throw X(`Loadable expected value, but in "${this.state}" state`)}promiseMaybe(){throw X("BaseLoadable")}promiseOrThrow(){throw X(`Loadable expected promise, but in "${this.state}" state`)}errorMaybe(){throw X("BaseLoadable")}errorOrThrow(){throw X(`Loadable expected error, but in "${this.state}" state`)}is(t){return t.state===this.state&&t.contents===this.contents}map(t){throw X("BaseLoadable")}}class Fm extends li{constructor(t){super(),Z(this,"state","hasValue"),Z(this,"contents",void 0),this.contents=t}getValue(){return this.contents}toPromise(){return Promise.resolve(this.contents)}valueMaybe(){return this.contents}valueOrThrow(){return this.contents}promiseMaybe(){}errorMaybe(){}map(t){try{const n=t(this.contents);return ae(n)?xn(n):fr(n)?n:Ro(n)}catch(n){return ae(n)?xn(n.next(()=>this.map(t))):ii(n)}}}class Bm extends li{constructor(t){super(),Z(this,"state","hasError"),Z(this,"contents",void 0),this.contents=t}getValue(){throw this.contents}toPromise(){return Promise.reject(this.contents)}valueMaybe(){}promiseMaybe(){}errorMaybe(){return this.contents}errorOrThrow(){return this.contents}map(t){return this}}class kp extends li{constructor(t){super(),Z(this,"state","loading"),Z(this,"contents",void 0),this.contents=t}getValue(){throw this.contents}toPromise(){return this.contents}valueMaybe(){}promiseMaybe(){return this.contents}promiseOrThrow(){return this.contents}errorMaybe(){}map(t){return xn(this.contents.then(n=>{const r=t(n);if(fr(r)){const o=r;switch(o.state){case"hasValue":return o.contents;case"hasError":throw o.contents;case"loading":return o.contents}}return r}).catch(n=>{if(ae(n))return n.then(()=>this.map(t).contents);throw n}))}}function Ro(e){return Object.freeze(new Fm(e))}function ii(e){return Object.freeze(new Bm(e))}function xn(e){return Object.freeze(new kp(e))}function Tp(){return Object.freeze(new kp(new Promise(()=>{})))}function jm(e){return e.every(t=>t.state==="hasValue")?Ro(e.map(t=>t.contents)):e.some(t=>t.state==="hasError")?ii(ve(e.find(t=>t.state==="hasError"),"Invalid loadable passed to loadableAll").contents):xn(Promise.all(e.map(t=>t.contents)))}function Cp(e){const n=(Array.isArray(e)?e:Object.getOwnPropertyNames(e).map(o=>e[o])).map(o=>fr(o)?o:ae(o)?xn(o):Ro(o)),r=jm(n);return Array.isArray(e)?r:r.map(o=>Object.getOwnPropertyNames(e).reduce((l,i,u)=>({...l,[i]:o[u]}),{}))}function fr(e){return e instanceof li}const Wm={of:e=>ae(e)?xn(e):fr(e)?e:Ro(e),error:e=>ii(e),loading:()=>Tp(),all:Cp,isLoadable:fr};var In={loadableWithValue:Ro,loadableWithError:ii,loadableWithPromise:xn,loadableLoading:Tp,loadableAll:Cp,isLoadable:fr,RecoilLoadable:Wm},Hm=In.loadableWithValue,bm=In.loadableWithError,Km=In.loadableWithPromise,Gm=In.loadableLoading,Qm=In.loadableAll,Zm=In.isLoadable,Ym=In.RecoilLoadable,Eo=Object.freeze({__proto__:null,loadableWithValue:Hm,loadableWithError:bm,loadableWithPromise:Km,loadableLoading:Gm,loadableAll:Qm,isLoadable:Zm,RecoilLoadable:Ym});const ns={RECOIL_DUPLICATE_ATOM_KEY_CHECKING_ENABLED:!0,RECOIL_GKS_ENABLED:new Set(["recoil_hamt_2020","recoil_sync_external_store","recoil_suppress_rerender_in_callback","recoil_memory_managament_2020"])};function Xm(e,t){var n,r;const o=(n=Ep[e])===null||n===void 0||(r=n.toLowerCase())===null||r===void 0?void 0:r.trim();if(o==null||o==="")return;if(!["true","false"].includes(o))throw X(`process.env.${e} value must be 'true', 'false', or empty: ${o}`);t(o==="true")}function qm(e,t){var n;const r=(n=Ep[e])===null||n===void 0?void 0:n.trim();r==null||r===""||t(r.split(/\s*,\s*|\s+/))}function Jm(){var e;typeof process>"u"||((e=process)===null||e===void 0?void 0:e.env)!=null&&(Xm("RECOIL_DUPLICATE_ATOM_KEY_CHECKING_ENABLED",t=>{ns.RECOIL_DUPLICATE_ATOM_KEY_CHECKING_ENABLED=t}),qm("RECOIL_GKS_ENABLED",t=>{t.forEach(n=>{ns.RECOIL_GKS_ENABLED.add(n)})}))}Jm();var Sr=ns;function ui(e){return Sr.RECOIL_GKS_ENABLED.has(e)}ui.setPass=e=>{Sr.RECOIL_GKS_ENABLED.add(e)};ui.setFail=e=>{Sr.RECOIL_GKS_ENABLED.delete(e)};ui.clear=()=>{Sr.RECOIL_GKS_ENABLED.clear()};var ie=ui;function e1(e,t,{error:n}={}){return null}var t1=e1,ia=t1,eu,tu,nu;const n1=(eu=me.createMutableSource)!==null&&eu!==void 0?eu:me.unstable_createMutableSource,Np=(tu=me.useMutableSource)!==null&&tu!==void 0?tu:me.unstable_useMutableSource,Lp=(nu=me.useSyncExternalStore)!==null&&nu!==void 0?nu:me.unstable_useSyncExternalStore;function r1(){var e;const{ReactCurrentDispatcher:t,ReactCurrentOwner:n}=me.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;return((e=t==null?void 0:t.current)!==null&&e!==void 0?e:n.currentDispatcher).useSyncExternalStore!=null}function o1(){return ie("recoil_transition_support")?{mode:"TRANSITION_SUPPORT",early:!0,concurrent:!0}:ie("recoil_sync_external_store")&&Lp!=null?{mode:"SYNC_EXTERNAL_STORE",early:!0,concurrent:!1}:ie("recoil_mutable_source")&&Np!=null&&typeof window<"u"&&!window.$disableRecoilValueMutableSource_TEMP_HACK_DO_NOT_USE?ie("recoil_suppress_rerender_in_callback")?{mode:"MUTABLE_SOURCE",early:!0,concurrent:!0}:{mode:"MUTABLE_SOURCE",early:!1,concurrent:!1}:ie("recoil_suppress_rerender_in_callback")?{mode:"LEGACY",early:!0,concurrent:!1}:{mode:"LEGACY",early:!1,concurrent:!1}}function l1(){return!1}var ko={createMutableSource:n1,useMutableSource:Np,useSyncExternalStore:Lp,currentRendererSupportsUseSyncExternalStore:r1,reactMode:o1,isFastRefreshEnabled:l1};class ua{constructor(t){Z(this,"key",void 0),this.key=t}toJSON(){return{key:this.key}}}class Ap extends ua{}class xp extends ua{}function i1(e){return e instanceof Ap||e instanceof xp}var si={AbstractRecoilValue:ua,RecoilState:Ap,RecoilValueReadOnly:xp,isRecoilValue:i1},u1=si.AbstractRecoilValue,s1=si.RecoilState,a1=si.RecoilValueReadOnly,c1=si.isRecoilValue,dr=Object.freeze({__proto__:null,AbstractRecoilValue:u1,RecoilState:s1,RecoilValueReadOnly:a1,isRecoilValue:c1});function f1(e,t){return function*(){let n=0;for(const r of e)yield t(r,n++)}()}var ai=f1;class Mp{}const d1=new Mp,Mn=new Map,sa=new Map;function p1(e){return ai(e,t=>ve(sa.get(t)))}function h1(e){if(Mn.has(e)){const t=`Duplicate atom key "${e}". This is a FATAL ERROR in production. But it is safe to ignore this warning if it occurred because of - hot module replacement.`;console.warn(t)}}function v1(e){Sr.RECOIL_DUPLICATE_ATOM_KEY_CHECKING_ENABLED&&h1(e.key),Mn.set(e.key,e);const t=e.set==null?new dr.RecoilValueReadOnly(e.key):new dr.RecoilState(e.key);return ua.set(e.key,t),t}class Pp extends Error{}function m1(e){const t=Mn.get(e);if(t==null)throw new Pp(`Missing definition for RecoilValue: "${e}""`);return t}function y1(e){return Mn.get(e)}const Ol=new Map;function g1(e){var t;if(!ie("recoil_memory_managament_2020"))return;const n=Mn.get(e);if(n!=null&&(t=n.shouldDeleteConfigOnRelease)!==null&&t!==void 0&&t.call(n)){var r;Mn.delete(e),(r=$p(e))===null||r===void 0||r(),Ol.delete(e)}}function S1(e,t){ie("recoil_memory_managament_2020")&&(t===void 0?Ol.delete(e):Ol.set(e,t))}function $p(e){return Ol.get(e)}var Ye={nodes:Mn,recoilValues:ua,registerNode:v1,getNode:m1,getNodeMaybe:y1,deleteNodeConfigIfPossible:g1,setConfigDeletionHandler:S1,getConfigDeletionHandler:$p,recoilValuesForKeys:p1,NodeMissingError:Pp,DefaultValue:Mp,DEFAULT_VALUE:d1};function w1(e,t){t()}var _1={enqueueExecution:w1};function R1(e,t){return t={exports:{}},e(t,t.exports),t.exports}var E1=R1(function(e){var t=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(g){return typeof g}:function(g){return g&&typeof Symbol=="function"&&g.constructor===Symbol&&g!==Symbol.prototype?"symbol":typeof g},n={},r=5,o=Math.pow(2,r),l=o-1,i=o/2,u=o/4,s={},a=function(v){return function(){return v}},d=n.hash=function(g){var v=typeof g>"u"?"undefined":t(g);if(v==="number")return g;v!=="string"&&(g+="");for(var k=0,M=0,P=g.length;M>1&1431655765,v=(v&858993459)+(v>>2&858993459),v=v+(v>>4)&252645135,v+=v>>8,v+=v>>16,v&127},m=function(v,k){return k>>>v&l},_=function(v){return 1<=k;)P[Q--]=P[Q];return P[k]=M,P}for(var b=0,K=0,q=new Array(O+1);b>>=1;return Q[k]=M,fe(v,K+1,Q)},$e=function(v,k,M,P){for(var O=new Array(k-1),Q=0,b=0,K=0,q=P.length;K1?te(v,this.hash,q):q[0]}var pe=P();return pe===s?this:(++b.value,Mt(v,M,this.hash,this,O,V(v,O,Q,pe)))},I=function(v,k,M,P,O,Q,b){var K=this.mask,q=this.children,pe=m(M,O),We=_(pe),Ne=S(K,We),ut=K&We,vt=ut?q[Ne]:L,zn=vt._modify(v,k,M+r,P,O,Q,b);if(vt===zn)return this;var Po=Xe(v,this),_r=K,Rr=void 0;if(ut&&C(zn)){if(_r&=~We,!_r)return L;if(q.length<=2&<(q[Ne^1]))return q[Ne^1];Rr=F(Po,Ne,q)}else if(!ut&&!C(zn)){if(q.length>=i)return oe(v,pe,zn,K,q);_r|=We,Rr=h(Po,Ne,zn,q)}else Rr=R(Po,Ne,zn,q);return Po?(this.mask=_r,this.children=Rr,this):U(v,_r,Rr)},j=function(v,k,M,P,O,Q,b){var K=this.size,q=this.children,pe=m(M,O),We=q[pe],Ne=(We||L)._modify(v,k,M+r,P,O,Q,b);if(We===Ne)return this;var ut=Xe(v,this),vt=void 0;if(C(We)&&!C(Ne))++K,vt=R(ut,pe,Ne,q);else if(!C(We)&&C(Ne)){if(--K,K<=u)return $e(v,K,pe,q);vt=R(ut,pe,L,q)}else vt=R(ut,pe,Ne,q);return ut?(this.size=K,this.children=vt,this):fe(v,K,vt)};L._modify=function(g,v,k,M,P,O,Q){var b=M();return b===s?L:(++Q.value,V(g,P,O,b))};function y(g,v,k,M,P){this._editable=g,this._edit=v,this._config=k,this._root=M,this._size=P}y.prototype.setTree=function(g,v){return this._editable?(this._root=g,this._size=v,this):g===this._root?this:new y(this._editable,this._edit,this._config,g,v)};var A=n.tryGetHash=function(g,v,k,M){for(var P=M._root,O=0,Q=M._config.keyEq;;)switch(P.type){case c:return Q(k,P.key)?P.value:g;case p:{if(v===P.hash)for(var b=P.children,K=0,q=b.length;K{n.set(o,t(r,o))}),n}var Ul=A1;function x1(){return{nodeDeps:new Map,nodeToNodeSubscriptions:new Map}}function M1(e){return{nodeDeps:Ul(e.nodeDeps,t=>new Set(t)),nodeToNodeSubscriptions:Ul(e.nodeToNodeSubscriptions,t=>new Set(t))}}function nu(e,t,n,r){const{nodeDeps:o,nodeToNodeSubscriptions:l}=n,i=o.get(e);if(i&&r&&i!==r.nodeDeps.get(e))return;o.set(e,t);const u=i==null?t:Yr(t,i);for(const s of u)l.has(s)||l.set(s,new Set),ve(l.get(s)).add(e);if(i){const s=Yr(i,t);for(const a of s){if(!l.has(a))return;const d=ve(l.get(a));d.delete(e),d.size===0&&l.delete(a)}}}function P1(e,t,n,r){var o,l,i,u;const s=n.getState();r===s.currentTree.version||r===((o=s.nextTree)===null||o===void 0?void 0:o.version)||((l=s.previousTree)===null||l===void 0||l.version);const a=n.getGraph(r);if(nu(e,t,a),r===((i=s.previousTree)===null||i===void 0?void 0:i.version)){const f=n.getGraph(s.currentTree.version);nu(e,t,f,a)}if(r===((u=s.previousTree)===null||u===void 0?void 0:u.version)||r===s.currentTree.version){var d;const f=(d=s.nextTree)===null||d===void 0?void 0:d.version;if(f!==void 0){const m=n.getGraph(f);nu(e,t,m,a)}}}var To={cloneGraph:M1,graph:x1,saveDepsToStore:P1};let $1=0;const I1=()=>$1++;let V1=0;const z1=()=>V1++;let D1=0;const O1=()=>D1++;var ai={getNextTreeStateVersion:I1,getNextStoreID:z1,getNextComponentID:O1};const{persistentMap:Dc}=N1,{graph:U1}=To,{getNextTreeStateVersion:Ip}=ai;function Vp(){const e=Ip();return{version:e,stateID:e,transactionMetadata:{},dirtyAtoms:new Set,atomValues:Dc(),nonvalidatedAtoms:Dc()}}function F1(){const e=Vp();return{currentTree:e,nextTree:null,previousTree:null,commitDepth:0,knownAtoms:new Set,knownSelectors:new Set,transactionSubscriptions:new Map,nodeTransactionSubscriptions:new Map,nodeToComponentSubscriptions:new Map,queuedComponentCallbacks_DEPRECATED:[],suspendedComponentResolvers:new Set,graphsByVersion:new Map().set(e.version,U1()),retention:{referenceCounts:new Map,nodesRetainedByZone:new Map,retainablesToCheckForRelease:new Set},nodeCleanupFunctions:new Map}}var zp={makeEmptyTreeState:Vp,makeEmptyStoreState:F1,getNextTreeStateVersion:Ip};class Dp{}function B1(){return new Dp}var ci={RetentionZone:Dp,retentionZone:B1};function j1(e,t){const n=new Set(e);return n.add(t),n}function W1(e,t){const n=new Set(e);return n.delete(t),n}function H1(e,t,n){const r=new Map(e);return r.set(t,n),r}function b1(e,t,n){const r=new Map(e);return r.set(t,n(r.get(t))),r}function K1(e,t){const n=new Map(e);return n.delete(t),n}function G1(e,t){const n=new Map(e);return t.forEach(r=>n.delete(r)),n}var Op={setByAddingToSet:j1,setByDeletingFromSet:W1,mapBySettingInMap:H1,mapByUpdatingInMap:b1,mapByDeletingFromMap:K1,mapByDeletingMultipleFromMap:G1};function*Q1(e,t){let n=0;for(const r of e)t(r,n++)&&(yield r)}var ca=Q1;function Z1(e,t){return new Proxy(e,{get:(r,o)=>(!(o in r)&&o in t&&(r[o]=t[o]()),r[o]),ownKeys:r=>Object.keys(r)})}var Up=Z1;const{getNode:Co,getNodeMaybe:Y1,recoilValuesForKeys:Oc}=Ye,{RetentionZone:Uc}=ci,{setByAddingToSet:X1}=Op,q1=Object.freeze(new Set);class J1 extends Error{}function ey(e,t,n){if(!ie("recoil_memory_managament_2020"))return()=>{};const{nodesRetainedByZone:r}=e.getState().retention;function o(l){let i=r.get(l);i||r.set(l,i=new Set),i.add(t)}if(n instanceof Uc)o(n);else if(Array.isArray(n))for(const l of n)o(l);return()=>{if(!ie("recoil_memory_managament_2020"))return;const{retention:l}=e.getState();function i(u){const s=l.nodesRetainedByZone.get(u);s==null||s.delete(t),s&&s.size===0&&l.nodesRetainedByZone.delete(u)}if(n instanceof Uc)i(n);else if(Array.isArray(n))for(const u of n)i(u)}}function fa(e,t,n,r){const o=e.getState();if(o.nodeCleanupFunctions.has(n))return;const l=Co(n),i=ey(e,n,l.retainedBy),u=l.init(e,t,r);o.nodeCleanupFunctions.set(n,()=>{u(),i()})}function ty(e,t,n){fa(e,e.getState().currentTree,t,n)}function ny(e,t){var n;const r=e.getState();(n=r.nodeCleanupFunctions.get(t))===null||n===void 0||n(),r.nodeCleanupFunctions.delete(t)}function ry(e,t,n){return fa(e,t,n,"get"),Co(n).get(e,t)}function Fp(e,t,n){return Co(n).peek(e,t)}function oy(e,t,n){var r;const o=Y1(t);return o==null||(r=o.invalidate)===null||r===void 0||r.call(o,e),{...e,atomValues:e.atomValues.clone().delete(t),nonvalidatedAtoms:e.nonvalidatedAtoms.clone().set(t,n),dirtyAtoms:X1(e.dirtyAtoms,t)}}function ly(e,t,n,r){const o=Co(n);if(o.set==null)throw new J1(`Attempt to set read-only RecoilValue: ${n}`);const l=o.set;return fa(e,t,n,"set"),l(e,t,r)}function iy(e,t,n){const r=e.getState(),o=e.getGraph(t.version),l=Co(n).nodeType;return Up({type:l},{loadable:()=>Fp(e,t,n),isActive:()=>r.knownAtoms.has(n)||r.knownSelectors.has(n),isSet:()=>l==="selector"?!1:t.atomValues.has(n),isModified:()=>t.dirtyAtoms.has(n),deps:()=>{var i;return Oc((i=o.nodeDeps.get(n))!==null&&i!==void 0?i:[])},subscribers:()=>{var i,u;return{nodes:Oc(ca(Bp(e,t,new Set([n])),s=>s!==n)),components:si((i=(u=r.nodeToComponentSubscriptions.get(n))===null||u===void 0?void 0:u.values())!==null&&i!==void 0?i:[],([s])=>({name:s}))}}})}function Bp(e,t,n){const r=new Set,o=Array.from(n),l=e.getGraph(t.version);for(let u=o.pop();u;u=o.pop()){var i;r.add(u);const s=(i=l.nodeToNodeSubscriptions.get(u))!==null&&i!==void 0?i:q1;for(const a of s)r.has(a)||o.push(a)}return r}var hn={getNodeLoadable:ry,peekNodeLoadable:Fp,setNodeValue:ly,initializeNode:ty,cleanUpNode:ny,setUnvalidatedAtomValue_DEPRECATED:oy,peekNodeInfo:iy,getDownstreamNodes:Bp};let jp=null;function uy(e){jp=e}function sy(){var e;(e=jp)===null||e===void 0||e()}var Wp={setInvalidateMemoizedSnapshot:uy,invalidateMemoizedSnapshot:sy};const{getDownstreamNodes:ay,getNodeLoadable:Hp,setNodeValue:cy}=hn,{getNextComponentID:fy}=ai,{getNode:dy,getNodeMaybe:bp}=Ye,{DefaultValue:da}=Ye,{reactMode:py}=ko,{AbstractRecoilValue:hy,RecoilState:vy,RecoilValueReadOnly:my,isRecoilValue:yy}=dr,{invalidateMemoizedSnapshot:gy}=Wp;function Sy(e,{key:t},n=e.getState().currentTree){var r,o;const l=e.getState();n.version===l.currentTree.version||n.version===((r=l.nextTree)===null||r===void 0?void 0:r.version)||(n.version,(o=l.previousTree)===null||o===void 0||o.version);const i=Hp(e,n,t);return i.state==="loading"&&i.contents.catch(()=>{}),i}function wy(e,t){const n=e.clone();return t.forEach((r,o)=>{r.state==="hasValue"&&r.contents instanceof da?n.delete(o):n.set(o,r)}),n}function _y(e,t,{key:n},r){if(typeof r=="function"){const o=Hp(e,t,n);if(o.state==="loading"){const l=`Tried to set atom or selector "${n}" using an updater function while the current state is pending, this is not currently supported.`;throw X(l)}else if(o.state==="hasError")throw o.contents;return r(o.contents)}else return r}function Ry(e,t,n){if(n.type==="set"){const{recoilValue:o,valueOrUpdater:l}=n,i=_y(e,t,o,l),u=cy(e,t,o.key,i);for(const[s,a]of u.entries())ns(t,s,a)}else if(n.type==="setLoadable"){const{recoilValue:{key:o},loadable:l}=n;ns(t,o,l)}else if(n.type==="markModified"){const{recoilValue:{key:o}}=n;t.dirtyAtoms.add(o)}else if(n.type==="setUnvalidated"){var r;const{recoilValue:{key:o},unvalidatedValue:l}=n,i=bp(o);i==null||(r=i.invalidate)===null||r===void 0||r.call(i,t),t.atomValues.delete(o),t.nonvalidatedAtoms.set(o,l),t.dirtyAtoms.add(o)}else la(`Unknown action ${n.type}`)}function ns(e,t,n){n.state==="hasValue"&&n.contents instanceof da?e.atomValues.delete(t):e.atomValues.set(t,n),e.dirtyAtoms.add(t),e.nonvalidatedAtoms.delete(t)}function Kp(e,t){e.replaceState(n=>{const r=Gp(n);for(const o of t)Ry(e,r,o);return Qp(e,r),gy(),r})}function fi(e,t){if(Xr.length){const n=Xr[Xr.length-1];let r=n.get(e);r||n.set(e,r=[]),r.push(t)}else Kp(e,[t])}const Xr=[];function Ey(){const e=new Map;return Xr.push(e),()=>{for(const[t,n]of e)Kp(t,n);Xr.pop()}}function Gp(e){return{...e,atomValues:e.atomValues.clone(),nonvalidatedAtoms:e.nonvalidatedAtoms.clone(),dirtyAtoms:new Set(e.dirtyAtoms)}}function Qp(e,t){const n=ay(e,t,t.dirtyAtoms);for(const l of n){var r,o;(r=bp(l))===null||r===void 0||(o=r.invalidate)===null||o===void 0||o.call(r,t)}}function Zp(e,t,n){fi(e,{type:"set",recoilValue:t,valueOrUpdater:n})}function ky(e,t,n){if(n instanceof da)return Zp(e,t,n);fi(e,{type:"setLoadable",recoilValue:t,loadable:n})}function Ty(e,t){fi(e,{type:"markModified",recoilValue:t})}function Cy(e,t,n){fi(e,{type:"setUnvalidated",recoilValue:t,unvalidatedValue:n})}function Ny(e,{key:t},n,r=null){const o=fy(),l=e.getState();l.nodeToComponentSubscriptions.has(t)||l.nodeToComponentSubscriptions.set(t,new Map),ve(l.nodeToComponentSubscriptions.get(t)).set(o,[r??"",n]);const i=py();if(i.early&&(i.mode==="LEGACY"||i.mode==="MUTABLE_SOURCE")){const u=e.getState().nextTree;u&&u.dirtyAtoms.has(t)&&n(u)}return{release:()=>{const u=e.getState(),s=u.nodeToComponentSubscriptions.get(t);s===void 0||!s.has(o)||(s.delete(o),s.size===0&&u.nodeToComponentSubscriptions.delete(t))}}}function Ly(e,t){var n;const{currentTree:r}=e.getState(),o=dy(t.key);(n=o.clearCache)===null||n===void 0||n.call(o,e,r)}var At={RecoilValueReadOnly:my,AbstractRecoilValue:hy,RecoilState:vy,getRecoilValueAsLoadable:Sy,setRecoilValue:Zp,setRecoilValueLoadable:ky,markRecoilValueModified:Ty,setUnvalidatedRecoilValue:Cy,subscribeToRecoilValue:Ny,isRecoilValue:yy,applyAtomValueWrites:wy,batchStart:Ey,writeLoadableToTreeState:ns,invalidateDownstreams:Qp,copyTreeState:Gp,refreshRecoilValue:Ly};function Ay(e,t,n){const r=e.entries();let o=r.next();for(;!o.done;){const l=o.value;if(t.call(n,l[1],l[0],e))return!0;o=r.next()}return!1}var xy=Ay;const{cleanUpNode:My}=hn,{deleteNodeConfigIfPossible:Py,getNode:Yp}=Ye,{RetentionZone:Xp}=ci,$y=12e4,qp=new Set;function Jp(e,t){const n=e.getState(),r=n.currentTree;if(n.nextTree)return;const o=new Set;for(const i of t)if(i instanceof Xp)for(const u of Dy(n,i))o.add(u);else o.add(i);const l=Iy(e,o);for(const i of l)zy(e,r,i)}function Iy(e,t){const n=e.getState(),r=n.currentTree,o=e.getGraph(r.version),l=new Set,i=new Set;return u(t),l;function u(s){const a=new Set,d=Vy(e,r,s,l,i);for(const S of d){var f;if(Yp(S).retainedBy==="recoilRoot"){i.add(S);continue}if(((f=n.retention.referenceCounts.get(S))!==null&&f!==void 0?f:0)>0){i.add(S);continue}if(eh(S).some(F=>n.retention.referenceCounts.get(F))){i.add(S);continue}const R=o.nodeToNodeSubscriptions.get(S);if(R&&xy(R,F=>i.has(F))){i.add(S);continue}l.add(S),a.add(S)}const m=new Set;for(const S of a)for(const R of(_=o.nodeDeps.get(S))!==null&&_!==void 0?_:qp){var _;l.has(R)||m.add(R)}m.size&&u(m)}}function Vy(e,t,n,r,o){const l=e.getGraph(t.version),i=[],u=new Set;for(;n.size>0;)s(ve(n.values().next().value));return i;function s(a){if(r.has(a)||o.has(a)){n.delete(a);return}if(u.has(a))return;const d=l.nodeToNodeSubscriptions.get(a);if(d)for(const f of d)s(f);u.add(a),n.delete(a),i.push(a)}}function zy(e,t,n){if(!ie("recoil_memory_managament_2020"))return;My(e,n);const r=e.getState();r.knownAtoms.delete(n),r.knownSelectors.delete(n),r.nodeTransactionSubscriptions.delete(n),r.retention.referenceCounts.delete(n);const o=eh(n);for(const s of o){var l;(l=r.retention.nodesRetainedByZone.get(s))===null||l===void 0||l.delete(n)}t.atomValues.delete(n),t.dirtyAtoms.delete(n),t.nonvalidatedAtoms.delete(n);const i=r.graphsByVersion.get(t.version);if(i){const s=i.nodeDeps.get(n);if(s!==void 0){i.nodeDeps.delete(n);for(const a of s){var u;(u=i.nodeToNodeSubscriptions.get(a))===null||u===void 0||u.delete(n)}}i.nodeToNodeSubscriptions.delete(n)}Py(n)}function Dy(e,t){var n;return(n=e.retention.nodesRetainedByZone.get(t))!==null&&n!==void 0?n:qp}function eh(e){const t=Yp(e).retainedBy;return t===void 0||t==="components"||t==="recoilRoot"?[]:t instanceof Xp?[t]:t}function Oy(e,t){const n=e.getState();n.nextTree?n.retention.retainablesToCheckForRelease.add(t):Jp(e,new Set([t]))}function Uy(e,t,n){var r;if(!ie("recoil_memory_managament_2020"))return;const o=e.getState().retention.referenceCounts,l=((r=o.get(t))!==null&&r!==void 0?r:0)+n;l===0?th(e,t):o.set(t,l)}function th(e,t){if(!ie("recoil_memory_managament_2020"))return;e.getState().retention.referenceCounts.delete(t),Oy(e,t)}function Fy(e){if(!ie("recoil_memory_managament_2020"))return;const t=e.getState();Jp(e,t.retention.retainablesToCheckForRelease),t.retention.retainablesToCheckForRelease.clear()}function By(e){return e===void 0?"recoilRoot":e}var Vn={SUSPENSE_TIMEOUT_MS:$y,updateRetainCount:Uy,updateRetainCountToZero:th,releaseScheduledRetainablesNow:Fy,retainedByOptionWithDefault:By};const{unstable_batchedUpdates:jy}=Vm;var Wy={unstable_batchedUpdates:jy};const{unstable_batchedUpdates:Hy}=Wy;var by={unstable_batchedUpdates:Hy};const{batchStart:Ky}=At,{unstable_batchedUpdates:Gy}=by;let pa=Gy||(e=>e());const Qy=e=>{pa=e},Zy=()=>pa,Yy=e=>{pa(()=>{let t=()=>{};try{t=Ky(),e()}finally{t()}})};var di={getBatcher:Zy,setBatcher:Qy,batchUpdates:Yy};function*Xy(e){for(const t of e)for(const n of t)yield n}var nh=Xy;const rh=typeof Window>"u"||typeof window>"u",qy=e=>!rh&&(e===window||e instanceof Window),Jy=typeof navigator<"u"&&navigator.product==="ReactNative";var pi={isSSR:rh,isReactNative:Jy,isWindow:qy};function eg(e,t){let n;return(...r)=>{n||(n={});const o=t(...r);return Object.hasOwnProperty.call(n,o)||(n[o]=e(...r)),n[o]}}function tg(e,t){let n,r;return(...o)=>{const l=t(...o);return n===l||(n=l,r=e(...o)),r}}function ng(e,t){let n,r;return[(...i)=>{const u=t(...i);return n===u||(n=u,r=e(...i)),r},()=>{n=null}]}var rg={memoizeWithArgsHash:eg,memoizeOneWithArgsHash:tg,memoizeOneWithArgsHashAndInvalidation:ng};const{batchUpdates:rs}=di,{initializeNode:og,peekNodeInfo:lg}=hn,{graph:ig}=To,{getNextStoreID:ug}=ai,{DEFAULT_VALUE:sg,recoilValues:Fc,recoilValuesForKeys:Bc}=Ye,{AbstractRecoilValue:ag,getRecoilValueAsLoadable:cg,setRecoilValue:jc,setUnvalidatedRecoilValue:fg}=At,{updateRetainCount:pl}=Vn,{setInvalidateMemoizedSnapshot:dg}=Wp,{getNextTreeStateVersion:pg,makeEmptyStoreState:hg}=zp,{isSSR:vg}=pi,{memoizeOneWithArgsHashAndInvalidation:mg}=rg;class hi{constructor(t,n){Z(this,"_store",void 0),Z(this,"_refCount",1),Z(this,"getLoadable",r=>(this.checkRefCount_INTERNAL(),cg(this._store,r))),Z(this,"getPromise",r=>(this.checkRefCount_INTERNAL(),this.getLoadable(r).toPromise())),Z(this,"getNodes_UNSTABLE",r=>{if(this.checkRefCount_INTERNAL(),(r==null?void 0:r.isModified)===!0){if((r==null?void 0:r.isInitialized)===!1)return[];const i=this._store.getState().currentTree;return Bc(i.dirtyAtoms)}const o=this._store.getState().knownAtoms,l=this._store.getState().knownSelectors;return(r==null?void 0:r.isInitialized)==null?Fc.values():r.isInitialized===!0?Bc(nh([o,l])):ca(Fc.values(),({key:i})=>!o.has(i)&&!l.has(i))}),Z(this,"getInfo_UNSTABLE",({key:r})=>(this.checkRefCount_INTERNAL(),lg(this._store,this._store.getState().currentTree,r))),Z(this,"map",r=>{this.checkRefCount_INTERNAL();const o=new os(this,rs);return r(o),o}),Z(this,"asyncMap",async r=>{this.checkRefCount_INTERNAL();const o=new os(this,rs);return o.retain(),await r(o),o.autoRelease_INTERNAL(),o}),this._store={storeID:ug(),parentStoreID:n,getState:()=>t,replaceState:r=>{t.currentTree=r(t.currentTree)},getGraph:r=>{const o=t.graphsByVersion;if(o.has(r))return ve(o.get(r));const l=ig();return o.set(r,l),l},subscribeToTransactions:()=>({release:()=>{}}),addTransactionMetadata:()=>{throw X("Cannot subscribe to Snapshots")}};for(const r of this._store.getState().knownAtoms)og(this._store,r,"get"),pl(this._store,r,1);this.autoRelease_INTERNAL()}retain(){this._refCount<=0,this._refCount++;let t=!1;return()=>{t||(t=!0,this._release())}}autoRelease_INTERNAL(){vg||window.setTimeout(()=>this._release(),10)}_release(){if(this._refCount--,this._refCount===0){if(this._store.getState().nodeCleanupFunctions.forEach(t=>t()),this._store.getState().nodeCleanupFunctions.clear(),!ie("recoil_memory_managament_2020"))return}else this._refCount<0}isRetained(){return this._refCount>0}checkRefCount_INTERNAL(){ie("recoil_memory_managament_2020")&&this._refCount<=0}getStore_INTERNAL(){return this.checkRefCount_INTERNAL(),this._store}getID(){return this.checkRefCount_INTERNAL(),this._store.getState().currentTree.stateID}getStoreID(){return this.checkRefCount_INTERNAL(),this._store.storeID}}function oh(e,t,n=!1){const r=e.getState(),o=n?pg():t.version;return{currentTree:{version:n?o:t.version,stateID:n?o:t.stateID,transactionMetadata:{...t.transactionMetadata},dirtyAtoms:new Set(t.dirtyAtoms),atomValues:t.atomValues.clone(),nonvalidatedAtoms:t.nonvalidatedAtoms.clone()},commitDepth:0,nextTree:null,previousTree:null,knownAtoms:new Set(r.knownAtoms),knownSelectors:new Set(r.knownSelectors),transactionSubscriptions:new Map,nodeTransactionSubscriptions:new Map,nodeToComponentSubscriptions:new Map,queuedComponentCallbacks_DEPRECATED:[],suspendedComponentResolvers:new Set,graphsByVersion:new Map().set(o,e.getGraph(t.version)),retention:{referenceCounts:new Map,nodesRetainedByZone:new Map,retainablesToCheckForRelease:new Set},nodeCleanupFunctions:new Map(si(r.nodeCleanupFunctions.entries(),([l])=>[l,()=>{}]))}}function yg(e){const t=new hi(hg());return e!=null?t.map(e):t}const[Wc,lh]=mg((e,t)=>{var n;const r=e.getState(),o=t==="latest"?(n=r.nextTree)!==null&&n!==void 0?n:r.currentTree:ve(r.previousTree);return new hi(oh(e,o),e.storeID)},(e,t)=>{var n,r;return String(t)+String(e.storeID)+String((n=e.getState().nextTree)===null||n===void 0?void 0:n.version)+String(e.getState().currentTree.version)+String((r=e.getState().previousTree)===null||r===void 0?void 0:r.version)});dg(lh);function gg(e,t="latest"){const n=Wc(e,t);return n.isRetained()?n:(lh(),Wc(e,t))}class os extends hi{constructor(t,n){super(oh(t.getStore_INTERNAL(),t.getStore_INTERNAL().getState().currentTree,!0),t.getStoreID()),Z(this,"_batch",void 0),Z(this,"set",(r,o)=>{this.checkRefCount_INTERNAL();const l=this.getStore_INTERNAL();this._batch(()=>{pl(l,r.key,1),jc(this.getStore_INTERNAL(),r,o)})}),Z(this,"reset",r=>{this.checkRefCount_INTERNAL();const o=this.getStore_INTERNAL();this._batch(()=>{pl(o,r.key,1),jc(this.getStore_INTERNAL(),r,sg)})}),Z(this,"setUnvalidatedAtomValues_DEPRECATED",r=>{this.checkRefCount_INTERNAL();const o=this.getStore_INTERNAL();rs(()=>{for(const[l,i]of r.entries())pl(o,l,1),fg(o,new ag(l),i)})}),this._batch=n}}var vi={Snapshot:hi,MutableSnapshot:os,freshSnapshot:yg,cloneSnapshot:gg},Sg=vi.Snapshot,wg=vi.MutableSnapshot,_g=vi.freshSnapshot,Rg=vi.cloneSnapshot,mi=Object.freeze({__proto__:null,Snapshot:Sg,MutableSnapshot:wg,freshSnapshot:_g,cloneSnapshot:Rg});function Eg(...e){const t=new Set;for(const n of e)for(const r of n)t.add(r);return t}var kg=Eg;const{useRef:Tg}=me;function Cg(e){const t=Tg(e);return t.current===e&&typeof e=="function"&&(t.current=e()),t}var Hc=Cg;const{getNextTreeStateVersion:Ng,makeEmptyStoreState:ih}=zp,{cleanUpNode:Lg,getDownstreamNodes:Ag,initializeNode:xg,setNodeValue:Mg,setUnvalidatedAtomValue_DEPRECATED:Pg}=hn,{graph:$g}=To,{cloneGraph:Ig}=To,{getNextStoreID:uh}=ai,{createMutableSource:ru,reactMode:sh}=ko,{applyAtomValueWrites:Vg}=At,{releaseScheduledRetainablesNow:ah}=Vn,{freshSnapshot:zg}=mi,{useCallback:Dg,useContext:ch,useEffect:ls,useMemo:Og,useRef:Ug,useState:Fg}=me;function Mr(){throw X("This component must be used inside a component.")}const fh=Object.freeze({storeID:uh(),getState:Mr,replaceState:Mr,getGraph:Mr,subscribeToTransactions:Mr,addTransactionMetadata:Mr});let is=!1;function bc(e){if(is)throw X("An atom update was triggered within the execution of a state updater function. State updater functions provided to Recoil must be pure functions.");const t=e.getState();if(t.nextTree===null){ie("recoil_memory_managament_2020")&&ie("recoil_release_on_cascading_update_killswitch_2021")&&t.commitDepth>0&&ah(e);const n=t.currentTree.version,r=Ng();t.nextTree={...t.currentTree,version:r,stateID:r,dirtyAtoms:new Set,transactionMetadata:{}},t.graphsByVersion.set(r,Ig(ve(t.graphsByVersion.get(n))))}}const dh=me.createContext({current:fh}),yi=()=>ch(dh),ph=me.createContext(null);function Bg(){return ch(ph)}function ha(e,t,n){const r=Ag(e,n,n.dirtyAtoms);for(const o of r){const l=t.nodeToComponentSubscriptions.get(o);if(l)for(const[i,[u,s]]of l)s(n)}}function hh(e){const t=e.getState(),n=t.currentTree,r=n.dirtyAtoms;if(r.size){for(const[o,l]of t.nodeTransactionSubscriptions)if(r.has(o))for(const[i,u]of l)u(e);for(const[o,l]of t.transactionSubscriptions)l(e);(!sh().early||t.suspendedComponentResolvers.size>0)&&(ha(e,t,n),t.suspendedComponentResolvers.forEach(o=>o()),t.suspendedComponentResolvers.clear())}t.queuedComponentCallbacks_DEPRECATED.forEach(o=>o(n)),t.queuedComponentCallbacks_DEPRECATED.splice(0,t.queuedComponentCallbacks_DEPRECATED.length)}function jg(e){const t=e.getState();t.commitDepth++;try{const{nextTree:n}=t;if(n==null)return;t.previousTree=t.currentTree,t.currentTree=n,t.nextTree=null,hh(e),t.previousTree!=null?t.graphsByVersion.delete(t.previousTree.version):la("Ended batch with no previous state, which is unexpected","recoil"),t.previousTree=null,ie("recoil_memory_managament_2020")&&n==null&&ah(e)}finally{t.commitDepth--}}function Wg({setNotifyBatcherOfChange:e}){const t=yi(),[,n]=Fg([]);return e(()=>n({})),ls(()=>(e(()=>n({})),()=>{e(()=>{})}),[e]),ls(()=>{_1.enqueueExecution("Batcher",()=>{jg(t.current)})}),null}function Hg(e,t){const n=ih();return t({set:(r,o)=>{const l=n.currentTree,i=Mg(e,l,r.key,o),u=new Set(i.keys()),s=l.nonvalidatedAtoms.clone();for(const a of u)s.delete(a);n.currentTree={...l,dirtyAtoms:kg(l.dirtyAtoms,u),atomValues:Vg(l.atomValues,i),nonvalidatedAtoms:s}},setUnvalidatedAtomValues:r=>{r.forEach((o,l)=>{n.currentTree=Pg(n.currentTree,l,o)})}}),n}function bg(e){const t=zg(e),n=t.getStore_INTERNAL().getState();return t.retain(),n.nodeCleanupFunctions.forEach(r=>r()),n.nodeCleanupFunctions.clear(),n}let Kc=0;function Kg({initializeState_DEPRECATED:e,initializeState:t,store_INTERNAL:n,children:r}){let o;const l=_=>{const S=o.current.graphsByVersion;if(S.has(_))return ve(S.get(_));const R=$g();return S.set(_,R),R},i=(_,S)=>{if(S==null){const{transactionSubscriptions:R}=f.current.getState(),F=Kc++;return R.set(F,_),{release:()=>{R.delete(F)}}}else{const{nodeTransactionSubscriptions:R}=f.current.getState();R.has(S)||R.set(S,new Map);const F=Kc++;return ve(R.get(S)).set(F,_),{release:()=>{const h=R.get(S);h&&(h.delete(F),h.size===0&&R.delete(S))}}}},u=_=>{bc(f.current);for(const S of Object.keys(_))ve(f.current.getState().nextTree).transactionMetadata[S]=_[S]},s=_=>{bc(f.current);const S=ve(o.current.nextTree);let R;try{is=!0,R=_(S)}finally{is=!1}R!==S&&(o.current.nextTree=R,sh().early&&ha(f.current,o.current,R),ve(a.current)())},a=Ug(null),d=Dg(_=>{a.current=_},[a]),f=Hc(()=>n??{storeID:uh(),getState:()=>o.current,replaceState:s,getGraph:l,subscribeToTransactions:i,addTransactionMetadata:u});n!=null&&(f.current=n),o=Hc(()=>e!=null?Hg(f.current,e):t!=null?bg(t):ih());const m=Og(()=>ru==null?void 0:ru(o,()=>o.current.currentTree.version),[o]);return ls(()=>{const _=f.current;for(const S of new Set(_.getState().knownAtoms))xg(_,S,"get");return()=>{for(const S of _.getState().knownAtoms)Lg(_,S)}},[f]),me.createElement(dh.Provider,{value:f},me.createElement(ph.Provider,{value:m},me.createElement(Wg,{setNotifyBatcherOfChange:d}),r))}function Gg(e){const{override:t,...n}=e,r=yi();return t===!1&&r.current!==fh?e.children:me.createElement(Kg,n)}function Qg(){return yi().current.storeID}var jt={RecoilRoot:Gg,useStoreRef:yi,useRecoilMutableSource:Bg,useRecoilStoreID:Qg,notifyComponents_FOR_TESTING:ha,sendEndOfBatchNotifications_FOR_TESTING:hh};function Zg(e,t){if(e===t)return!0;if(e.length!==t.length)return!1;for(let n=0,r=e.length;n{t.current=e}),t.current}var vh=Jg;const{useStoreRef:eS}=jt,{SUSPENSE_TIMEOUT_MS:tS}=Vn,{updateRetainCount:Pr}=Vn,{RetentionZone:nS}=ci,{useEffect:rS,useRef:oS}=me,{isSSR:Gc}=pi;function lS(e){if(ie("recoil_memory_managament_2020"))return iS(e)}function iS(e){const n=(Array.isArray(e)?e:[e]).map(i=>i instanceof nS?i:i.key),r=eS();rS(()=>{if(!ie("recoil_memory_managament_2020"))return;const i=r.current;if(o.current&&!Gc)window.clearTimeout(o.current),o.current=null;else for(const u of n)Pr(i,u,1);return()=>{for(const u of n)Pr(i,u,-1)}},[r,...n]);const o=oS(),l=vh(n);if(!Gc&&(l===void 0||!Yg(l,n))){const i=r.current;for(const u of n)Pr(i,u,1);if(l)for(const u of l)Pr(i,u,-1);o.current&&window.clearTimeout(o.current),o.current=window.setTimeout(()=>{o.current=null;for(const u of n)Pr(i,u,-1)},tS)}}var va=lS;function uS(){return""}var No=uS;const{batchUpdates:sS}=di,{DEFAULT_VALUE:mh}=Ye,{currentRendererSupportsUseSyncExternalStore:aS,reactMode:wr,useMutableSource:cS,useSyncExternalStore:fS}=ko,{useRecoilMutableSource:dS,useStoreRef:xt}=jt,{AbstractRecoilValue:us,getRecoilValueAsLoadable:Lo,setRecoilValue:Fl,setUnvalidatedRecoilValue:pS,subscribeToRecoilValue:pr}=At,{useCallback:Ze,useEffect:hr,useMemo:yh,useRef:qr,useState:ma}=me,{setByAddingToSet:hS}=Op,{isSSR:vS}=pi;function ya(e,t,n){if(e.state==="hasValue")return e.contents;throw e.state==="loading"?new Promise(o=>{const l=n.current.getState().suspendedComponentResolvers;l.add(o),vS&&ae(e.contents)&&e.contents.finally(()=>{l.delete(o)})}):e.state==="hasError"?e.contents:X(`Invalid value of loadable atom "${t.key}"`)}function mS(){const e=No(),t=xt(),[,n]=ma([]),r=qr(new Set);r.current=new Set;const o=qr(new Set),l=qr(new Map),i=Ze(s=>{const a=l.current.get(s);a&&(a.release(),l.current.delete(s))},[l]),u=Ze((s,a)=>{l.current.has(a)&&n([])},[]);return hr(()=>{const s=t.current;Yr(r.current,o.current).forEach(a=>{if(l.current.has(a))return;const d=pr(s,new us(a),m=>u(m,a),e);l.current.set(a,d),s.getState().nextTree?s.getState().queuedComponentCallbacks_DEPRECATED.push(()=>{u(s.getState(),a)}):u(s.getState(),a)}),Yr(o.current,r.current).forEach(a=>{i(a)}),o.current=r.current}),hr(()=>{const s=l.current;return Yr(r.current,new Set(s.keys())).forEach(a=>{const d=pr(t.current,new us(a),f=>u(f,a),e);s.set(a,d)}),()=>s.forEach((a,d)=>i(d))},[e,t,i,u]),yh(()=>{function s(S){return R=>{Fl(t.current,S,R)}}function a(S){return()=>Fl(t.current,S,mh)}function d(S){var R;r.current.has(S.key)||(r.current=hS(r.current,S.key));const F=t.current.getState();return Lo(t.current,S,wr().early&&(R=F.nextTree)!==null&&R!==void 0?R:F.currentTree)}function f(S){const R=d(S);return ya(R,S,t)}function m(S){return[f(S),s(S)]}function _(S){return[d(S),s(S)]}return{getRecoilValue:f,getRecoilValueLoadable:d,getRecoilState:m,getRecoilStateLoadable:_,getSetRecoilState:s,getResetRecoilState:a}},[r,t])}const yS={current:0};function gS(e){const t=xt(),n=No(),r=Ze(()=>{var u;const s=t.current,a=s.getState(),d=wr().early&&(u=a.nextTree)!==null&&u!==void 0?u:a.currentTree;return{loadable:Lo(s,e,d),key:e.key}},[t,e]),o=Ze(u=>{let s;return()=>{var a,d;const f=u();return(a=s)!==null&&a!==void 0&&a.loadable.is(f.loadable)&&((d=s)===null||d===void 0?void 0:d.key)===f.key?s:(s=f,f)}},[]),l=yh(()=>o(r),[r,o]),i=Ze(u=>{const s=t.current;return pr(s,e,u,n).release},[t,e,n]);return fS(i,l,l).loadable}function SS(e){const t=xt(),n=Ze(()=>{var a;const d=t.current,f=d.getState(),m=wr().early&&(a=f.nextTree)!==null&&a!==void 0?a:f.currentTree;return Lo(d,e,m)},[t,e]),r=Ze(()=>n(),[n]),o=No(),l=Ze((a,d)=>{const f=t.current;return pr(f,e,()=>{if(!ie("recoil_suppress_rerender_in_callback"))return d();const _=n();s.current.is(_)||d(),s.current=_},o).release},[t,e,o,n]),i=dS();if(i==null)throw X("Recoil hooks must be used in components contained within a component.");const u=cS(i,r,l),s=qr(u);return hr(()=>{s.current=u}),u}function ss(e){const t=xt(),n=No(),r=Ze(()=>{var s;const a=t.current,d=a.getState(),f=wr().early&&(s=d.nextTree)!==null&&s!==void 0?s:d.currentTree;return Lo(a,e,f)},[t,e]),o=Ze(()=>({loadable:r(),key:e.key}),[r,e.key]),l=Ze(s=>{const a=o();return s.loadable.is(a.loadable)&&s.key===a.key?s:a},[o]);hr(()=>{const s=pr(t.current,e,a=>{u(l)},n);return u(l),s.release},[n,e,t,l]);const[i,u]=ma(o);return i.key!==e.key?o().loadable:i.loadable}function wS(e){const t=xt(),[,n]=ma([]),r=No(),o=Ze(()=>{var u;const s=t.current,a=s.getState(),d=wr().early&&(u=a.nextTree)!==null&&u!==void 0?u:a.currentTree;return Lo(s,e,d)},[t,e]),l=o(),i=qr(l);return hr(()=>{i.current=l}),hr(()=>{const u=t.current,s=u.getState(),a=pr(u,e,f=>{var m;if(!ie("recoil_suppress_rerender_in_callback"))return n([]);const _=o();(m=i.current)!==null&&m!==void 0&&m.is(_)||n(_),i.current=_},r);if(s.nextTree)u.getState().queuedComponentCallbacks_DEPRECATED.push(()=>{i.current=null,n([])});else{var d;if(!ie("recoil_suppress_rerender_in_callback"))return n([]);const f=o();(d=i.current)!==null&&d!==void 0&&d.is(f)||n(f),i.current=f}return a.release},[r,o,e,t]),l}function ga(e){return ie("recoil_memory_managament_2020")&&va(e),{TRANSITION_SUPPORT:ss,SYNC_EXTERNAL_STORE:aS()?gS:ss,MUTABLE_SOURCE:SS,LEGACY:wS}[wr().mode](e)}function gh(e){const t=xt(),n=ga(e);return ya(n,e,t)}function gi(e){const t=xt();return Ze(n=>{Fl(t.current,e,n)},[t,e])}function _S(e){const t=xt();return Ze(()=>{Fl(t.current,e,mh)},[t,e])}function RS(e){return[gh(e),gi(e)]}function ES(e){return[ga(e),gi(e)]}function kS(){const e=xt();return(t,n={})=>{sS(()=>{e.current.addTransactionMetadata(n),t.forEach((r,o)=>pS(e.current,new us(o),r))})}}function Sh(e){return ie("recoil_memory_managament_2020")&&va(e),ss(e)}function wh(e){const t=xt(),n=Sh(e);return ya(n,e,t)}function TS(e){return[wh(e),gi(e)]}var CS={recoilComponentGetRecoilValueCount_FOR_TESTING:yS,useRecoilInterface:mS,useRecoilState:RS,useRecoilStateLoadable:ES,useRecoilValue:gh,useRecoilValueLoadable:ga,useResetRecoilState:_S,useSetRecoilState:gi,useSetUnvalidatedAtomValues:kS,useRecoilValueLoadable_TRANSITION_SUPPORT_UNSTABLE:Sh,useRecoilValue_TRANSITION_SUPPORT_UNSTABLE:wh,useRecoilState_TRANSITION_SUPPORT_UNSTABLE:TS};function NS(e,t){const n=new Map;for(const[r,o]of e)t(o,r)&&n.set(r,o);return n}var LS=NS;function AS(e,t){const n=new Set;for(const r of e)t(r)&&n.add(r);return n}var xS=AS;function MS(...e){const t=new Map;for(let n=0;nt.current.subscribeToTransactions(e).release,[e,t])}function Yc(e){const t=e.atomValues.toMap(),n=Ul(LS(t,(r,o)=>{const i=_h(o).persistence_UNSTABLE;return i!=null&&i.type!=="none"&&r.state==="hasValue"}),r=>r.contents);return PS(e.nonvalidatedAtoms.toMap(),n)}function FS(e){wi(Si(t=>{let n=t.getState().previousTree;const r=t.getState().currentTree;n||(n=t.getState().currentTree);const o=Yc(r),l=Yc(n),i=Ul(VS,s=>{var a,d,f,m;return{persistence_UNSTABLE:{type:(a=(d=s.persistence_UNSTABLE)===null||d===void 0?void 0:d.type)!==null&&a!==void 0?a:"none",backButton:(f=(m=s.persistence_UNSTABLE)===null||m===void 0?void 0:m.backButton)!==null&&f!==void 0?f:!1}}}),u=xS(r.dirtyAtoms,s=>o.has(s)||l.has(s));e({atomValues:o,previousAtomValues:l,atomInfo:i,modifiedAtoms:u,transactionMetadata:{...r.transactionMetadata}})},[e]))}function BS(e){wi(Si(t=>{const n=Bl(t,"latest"),r=Bl(t,"previous");e({snapshot:n,previousSnapshot:r})},[e]))}function jS(){const e=Sa(),[t,n]=US(()=>Bl(e.current)),r=vh(t),o=Qc(),l=Qc();if(wi(Si(u=>n(Bl(u)),[])),Rh(()=>{const u=t.retain();if(o.current&&!Zc){var s;window.clearTimeout(o.current),o.current=null,(s=l.current)===null||s===void 0||s.call(l),l.current=null}return()=>{window.setTimeout(u,10)}},[t]),r!==t&&!Zc){if(o.current){var i;window.clearTimeout(o.current),o.current=null,(i=l.current)===null||i===void 0||i.call(l),l.current=null}l.current=t.retain(),o.current=window.setTimeout(()=>{var u;o.current=null,(u=l.current)===null||u===void 0||u.call(l),l.current=null},OS)}return t}function Eh(e,t){var n;const r=e.getState(),o=(n=r.nextTree)!==null&&n!==void 0?n:r.currentTree,l=t.getStore_INTERNAL().getState().currentTree;$S(()=>{const i=new Set;for(const a of[o.atomValues.keys(),l.atomValues.keys()])for(const d of a){var u,s;((u=o.atomValues.get(d))===null||u===void 0?void 0:u.contents)!==((s=l.atomValues.get(d))===null||s===void 0?void 0:s.contents)&&_h(d).shouldRestoreFromSnapshots&&i.add(d)}i.forEach(a=>{DS(e,new zS(a),l.atomValues.has(a)?ve(l.atomValues.get(a)):IS)}),e.replaceState(a=>({...a,stateID:t.getID()}))})}function WS(){const e=Sa();return Si(t=>Eh(e.current,t),[e])}var kh={useRecoilSnapshot:jS,gotoSnapshot:Eh,useGotoRecoilSnapshot:WS,useRecoilTransactionObserver:BS,useTransactionObservation_DEPRECATED:FS,useTransactionSubscription_DEPRECATED:wi};const{peekNodeInfo:HS}=hn,{useStoreRef:bS}=jt;function KS(){const e=bS();return({key:t})=>HS(e.current,e.current.getState().currentTree,t)}var GS=KS;const{reactMode:QS}=ko,{RecoilRoot:ZS,useStoreRef:YS}=jt,{useMemo:XS}=me;function qS(){QS().mode==="MUTABLE_SOURCE"&&console.warn("Warning: There are known issues using useRecoilBridgeAcrossReactRoots() in recoil_mutable_source rendering mode. Please consider upgrading to recoil_sync_external_store mode.");const e=YS().current;return XS(()=>{function t({children:n}){return me.createElement(ZS,{store_INTERNAL:e},n)}return t},[e])}var JS=qS;const{loadableWithValue:e2}=Eo,{initializeNode:t2}=hn,{DEFAULT_VALUE:n2,getNode:r2}=Ye,{copyTreeState:o2,getRecoilValueAsLoadable:l2,invalidateDownstreams:i2,writeLoadableToTreeState:u2}=At;function Xc(e){return r2(e.key).nodeType==="atom"}class s2{constructor(t,n){Z(this,"_store",void 0),Z(this,"_treeState",void 0),Z(this,"_changes",void 0),Z(this,"get",r=>{if(this._changes.has(r.key))return this._changes.get(r.key);if(!Xc(r))throw X("Reading selectors within atomicUpdate is not supported");const o=l2(this._store,r,this._treeState);if(o.state==="hasValue")return o.contents;throw o.state==="hasError"?o.contents:X(`Expected Recoil atom ${r.key} to have a value, but it is in a loading state.`)}),Z(this,"set",(r,o)=>{if(!Xc(r))throw X("Setting selectors within atomicUpdate is not supported");if(typeof o=="function"){const l=this.get(r);this._changes.set(r.key,o(l))}else t2(this._store,r.key,"set"),this._changes.set(r.key,o)}),Z(this,"reset",r=>{this.set(r,n2)}),this._store=t,this._treeState=n,this._changes=new Map}newTreeState_INTERNAL(){if(this._changes.size===0)return this._treeState;const t=o2(this._treeState);for(const[n,r]of this._changes)u2(t,n,e2(r));return i2(this._store,t),t}}function a2(e){return t=>{e.replaceState(n=>{const r=new s2(e,n);return t(r),r.newTreeState_INTERNAL()})}}var c2={atomicUpdater:a2},f2=c2.atomicUpdater,Th=Object.freeze({__proto__:null,atomicUpdater:f2});function d2(e,t){if(!e)throw new Error(t)}var p2=d2,Fr=p2;const{atomicUpdater:h2}=Th,{batchUpdates:v2}=di,{DEFAULT_VALUE:m2}=Ye,{useStoreRef:y2}=jt,{refreshRecoilValue:g2,setRecoilValue:qc}=At,{cloneSnapshot:S2}=mi,{gotoSnapshot:w2}=kh,{useCallback:_2}=me;class Ch{}const R2=new Ch;function Nh(e,t,n,r){let o=R2,l;if(v2(()=>{const u="useRecoilCallback() expects a function that returns a function: it accepts a function of the type (RecoilInterface) => (Args) => ReturnType and returns a callback function (Args) => ReturnType, where RecoilInterface is an object {snapshot, set, ...} and Args and ReturnType are the argument and return types of the callback you want to create. Please see the docs at recoiljs.org for details.";if(typeof t!="function")throw X(u);const s=Up({...r??{},set:(d,f)=>qc(e,d,f),reset:d=>qc(e,d,m2),refresh:d=>g2(e,d),gotoSnapshot:d=>w2(e,d),transact_UNSTABLE:d=>h2(e)(d)},{snapshot:()=>{const d=S2(e);return l=d.retain(),d}}),a=t(s);if(typeof a!="function")throw X(u);o=a(...n)}),o instanceof Ch&&Fr(!1),ae(o))o=o.finally(()=>{var u;(u=l)===null||u===void 0||u()});else{var i;(i=l)===null||i===void 0||i()}return o}function E2(e,t){const n=y2();return _2((...r)=>Nh(n.current,e,r),t!=null?[...t,n]:void 0)}var Lh={recoilCallback:Nh,useRecoilCallback:E2};const{useStoreRef:k2}=jt,{refreshRecoilValue:T2}=At,{useCallback:C2}=me;function N2(e){const t=k2();return C2(()=>{const n=t.current;T2(n,e)},[e,t])}var L2=N2;const{atomicUpdater:A2}=Th,{useStoreRef:x2}=jt,{useMemo:M2}=me;function P2(e,t){const n=x2();return M2(()=>(...r)=>{A2(n.current)(l=>{e(l)(...r)})},t!=null?[...t,n]:void 0)}var $2=P2;class I2{constructor(t){Z(this,"value",void 0),this.value=t}}var V2={WrappedValue:I2},z2=V2.WrappedValue,Ah=Object.freeze({__proto__:null,WrappedValue:z2});const{isFastRefreshEnabled:D2}=ko;class Jc extends Error{}class O2{constructor(t){var n,r,o;Z(this,"_name",void 0),Z(this,"_numLeafs",void 0),Z(this,"_root",void 0),Z(this,"_onHit",void 0),Z(this,"_onSet",void 0),Z(this,"_mapNodeValue",void 0),this._name=t==null?void 0:t.name,this._numLeafs=0,this._root=null,this._onHit=(n=t==null?void 0:t.onHit)!==null&&n!==void 0?n:()=>{},this._onSet=(r=t==null?void 0:t.onSet)!==null&&r!==void 0?r:()=>{},this._mapNodeValue=(o=t==null?void 0:t.mapNodeValue)!==null&&o!==void 0?o:l=>l}size(){return this._numLeafs}root(){return this._root}get(t,n){var r;return(r=this.getLeafNode(t,n))===null||r===void 0?void 0:r.value}getLeafNode(t,n){if(this._root==null)return;let r=this._root;for(;r;){if(n==null||n.onNodeVisit(r),r.type==="leaf")return this._onHit(r),r;const o=this._mapNodeValue(t(r.nodeKey));r=r.branches.get(o)}}set(t,n,r){const o=()=>{var l,i,u,s;let a,d;for(const[F,h]of t){var f,m,_;const c=this._root;if((c==null?void 0:c.type)==="leaf")throw this.invalidCacheError();const p=a;if(a=p?p.branches.get(d):c,a=(f=a)!==null&&f!==void 0?f:{type:"branch",nodeKey:F,parent:p,branches:new Map,branchKey:d},a.type!=="branch"||a.nodeKey!==F)throw this.invalidCacheError();p==null||p.branches.set(d,a),r==null||(m=r.onNodeVisit)===null||m===void 0||m.call(r,a),d=this._mapNodeValue(h),this._root=(_=this._root)!==null&&_!==void 0?_:a}const S=a?(l=a)===null||l===void 0?void 0:l.branches.get(d):this._root;if(S!=null&&(S.type!=="leaf"||S.branchKey!==d))throw this.invalidCacheError();const R={type:"leaf",value:n,parent:a,branchKey:d};(i=a)===null||i===void 0||i.branches.set(d,R),this._root=(u=this._root)!==null&&u!==void 0?u:R,this._numLeafs++,this._onSet(R),r==null||(s=r.onNodeVisit)===null||s===void 0||s.call(r,R)};try{o()}catch(l){if(l instanceof Jc)this.clear(),o();else throw l}}delete(t){const n=this.root();if(!n)return!1;if(t===n)return this._root=null,this._numLeafs=0,!0;let r=t.parent,o=t.branchKey;for(;r;){var l;if(r.branches.delete(o),r===n)return r.branches.size===0?(this._root=null,this._numLeafs=0):this._numLeafs--,!0;if(r.branches.size>0)break;o=(l=r)===null||l===void 0?void 0:l.branchKey,r=r.parent}for(;r!==n;r=r.parent)if(r==null)return!1;return this._numLeafs--,!0}clear(){this._numLeafs=0,this._root=null}invalidCacheError(){const t=D2()?"Possible Fast Refresh module reload detected. This may also be caused by an selector returning inconsistent values. Resetting cache.":"Invalid cache values. This happens when selectors do not return consistent values for the same input dependency values. That may also be caused when using Fast Refresh to change a selector implementation. Resetting cache.";throw la(t+(this._name!=null?` - ${this._name}`:"")),new Jc}}var U2={TreeCache:O2},F2=U2.TreeCache,xh=Object.freeze({__proto__:null,TreeCache:F2});class B2{constructor(t){var n;Z(this,"_maxSize",void 0),Z(this,"_size",void 0),Z(this,"_head",void 0),Z(this,"_tail",void 0),Z(this,"_map",void 0),Z(this,"_keyMapper",void 0),this._maxSize=t.maxSize,this._size=0,this._head=null,this._tail=null,this._map=new Map,this._keyMapper=(n=t.mapKey)!==null&&n!==void 0?n:r=>r}head(){return this._head}tail(){return this._tail}size(){return this._size}maxSize(){return this._maxSize}has(t){return this._map.has(this._keyMapper(t))}get(t){const n=this._keyMapper(t),r=this._map.get(n);if(r)return this.set(t,r.value),r.value}set(t,n){const r=this._keyMapper(t);this._map.get(r)&&this.delete(t);const l=this.head(),i={key:t,right:l,left:null,value:n};l?l.left=i:this._tail=i,this._map.set(r,i),this._head=i,this._size++,this._maybeDeleteLRU()}_maybeDeleteLRU(){this.size()>this.maxSize()&&this.deleteLru()}deleteLru(){const t=this.tail();t&&this.delete(t.key)}delete(t){const n=this._keyMapper(t);if(!this._size||!this._map.has(n))return;const r=ve(this._map.get(n)),o=r.right,l=r.left;o&&(o.left=r.left),l&&(l.right=r.right),r===this.head()&&(this._head=o),r===this.tail()&&(this._tail=l),this._map.delete(n),this._size--}clear(){this._size=0,this._head=null,this._tail=null,this._map=new Map}}var j2={LRUCache:B2},W2=j2.LRUCache,Mh=Object.freeze({__proto__:null,LRUCache:W2});const{LRUCache:H2}=Mh,{TreeCache:b2}=xh;function K2({name:e,maxSize:t,mapNodeValue:n=r=>r}){const r=new H2({maxSize:t}),o=new b2({name:e,mapNodeValue:n,onHit:l=>{r.set(l,!0)},onSet:l=>{const i=r.tail();r.set(l,!0),i&&o.size()>t&&o.delete(i.key)}});return o}var ef=K2;function yt(e,t,n){if(typeof e=="string"&&!e.includes('"')&&!e.includes("\\"))return`"${e}"`;switch(typeof e){case"undefined":return"";case"boolean":return e?"true":"false";case"number":case"symbol":return String(e);case"string":return JSON.stringify(e);case"function":if((t==null?void 0:t.allowFunctions)!==!0)throw X("Attempt to serialize function in a Recoil cache key");return`__FUNCTION(${e.name})__`}if(e===null)return"null";if(typeof e!="object"){var r;return(r=JSON.stringify(e))!==null&&r!==void 0?r:""}if(ae(e))return"__PROMISE__";if(Array.isArray(e))return`[${e.map((o,l)=>yt(o,t,l.toString()))}]`;if(typeof e.toJSON=="function")return yt(e.toJSON(n),t,n);if(e instanceof Map){const o={};for(const[l,i]of e)o[typeof l=="string"?l:yt(l,t)]=i;return yt(o,t,n)}return e instanceof Set?yt(Array.from(e).sort((o,l)=>yt(o,t).localeCompare(yt(l,t))),t,n):Symbol!==void 0&&e[Symbol.iterator]!=null&&typeof e[Symbol.iterator]=="function"?yt(Array.from(e),t,n):`{${Object.keys(e).filter(o=>e[o]!==void 0).sort().map(o=>`${yt(o,t)}:${yt(e[o],t,o)}`).join(",")}}`}function G2(e,t={allowFunctions:!1}){return yt(e,t)}var _i=G2;const{TreeCache:Q2}=xh,Yo={equality:"reference",eviction:"keep-all",maxSize:1/0};function Z2({equality:e=Yo.equality,eviction:t=Yo.eviction,maxSize:n=Yo.maxSize}=Yo,r){const o=Y2(e);return X2(t,n,o,r)}function Y2(e){switch(e){case"reference":return t=>t;case"value":return t=>_i(t)}throw X(`Unrecognized equality policy ${e}`)}function X2(e,t,n,r){switch(e){case"keep-all":return new Q2({name:r,mapNodeValue:n});case"lru":return ef({name:r,maxSize:ve(t),mapNodeValue:n});case"most-recent":return ef({name:r,maxSize:1,mapNodeValue:n})}throw X(`Unrecognized eviction policy ${e}`)}var q2=Z2;function J2(e){return()=>null}var ew={startPerfBlock:J2};const{isLoadable:tw,loadableWithError:Xo,loadableWithPromise:nw,loadableWithValue:ou}=Eo,{WrappedValue:Ph}=Ah,{getNodeLoadable:qo,peekNodeLoadable:rw,setNodeValue:ow}=hn,{saveDepsToStore:lw}=To,{DEFAULT_VALUE:iw,getConfigDeletionHandler:uw,getNode:sw,registerNode:tf}=Ye,{isRecoilValue:aw}=dr,{markRecoilValueModified:nf}=At,{retainedByOptionWithDefault:cw}=Vn,{recoilCallback:fw}=Lh,{startPerfBlock:dw}=ew;class $h{}const $r=new $h,Ir=[],Jo=new Map,pw=(()=>{let e=0;return()=>e++})();function Ih(e){let t=null;const{key:n,get:r,cachePolicy_UNSTABLE:o}=e,l=e.set!=null?e.set:void 0,i=new Set,u=q2(o??{equality:"reference",eviction:"keep-all"},n),s=cw(e.retainedBy_UNSTABLE),a=new Map;let d=0;function f(){return!ie("recoil_memory_managament_2020")||d>0}function m(y){return y.getState().knownSelectors.add(n),d++,()=>{d--}}function _(){return uw(n)!==void 0&&!f()}function S(y,A,x,G,z){Ie(A,G,z),R(y,x)}function R(y,A){$e(y,A)&&oe(y),h(A,!0)}function F(y,A){$e(y,A)&&(ve(U(y)).stateVersions.clear(),h(A,!1))}function h(y,A){const x=Jo.get(y);if(x!=null){for(const G of x)nf(G,ve(t));A&&Jo.delete(y)}}function c(y,A){let x=Jo.get(A);x==null&&Jo.set(A,x=new Set),x.add(y)}function p(y,A,x,G,z,Y){return A.then(J=>{if(!f())throw oe(y),$r;const W=ou(J);return S(y,x,z,W,G),J}).catch(J=>{if(!f())throw oe(y),$r;if(ae(J))return w(y,J,x,G,z,Y);const W=Xo(J);throw S(y,x,z,W,G),J})}function w(y,A,x,G,z,Y){return A.then(J=>{if(!f())throw oe(y),$r;Y.loadingDepKey!=null&&Y.loadingDepPromise===A?x.atomValues.set(Y.loadingDepKey,ou(J)):y.getState().knownSelectors.forEach(le=>{x.atomValues.delete(le)});const W=C(y,x);if(W&&W.state!=="loading"){if(($e(y,z)||U(y)==null)&&R(y,z),W.state==="hasValue")return W.contents;throw W.contents}if(!$e(y,z)){const le=te(y,x);if(le!=null)return le.loadingLoadable.contents}const[de,ke]=L(y,x,z);if(de.state!=="loading"&&S(y,x,z,de,ke),de.state==="hasError")throw de.contents;return de.contents}).catch(J=>{if(J instanceof $h)throw $r;if(!f())throw oe(y),$r;const W=Xo(J);throw S(y,x,z,W,G),J})}function E(y,A,x,G){var z,Y,J,W;if($e(y,G)||A.version===((z=y.getState())===null||z===void 0||(Y=z.currentTree)===null||Y===void 0?void 0:Y.version)||A.version===((J=y.getState())===null||J===void 0||(W=J.nextTree)===null||W===void 0?void 0:W.version)){var de,ke,le;lw(n,x,y,(de=(ke=y.getState())===null||ke===void 0||(le=ke.nextTree)===null||le===void 0?void 0:le.version)!==null&&de!==void 0?de:y.getState().currentTree.version)}for(const ye of x)i.add(ye)}function L(y,A,x){const G=dw(n);let z=!0,Y=!0;const J=()=>{G(),Y=!1};let W,de=!1,ke;const le={loadingDepKey:null,loadingDepPromise:null},ye=new Map;function ht({key:it}){const qe=qo(y,A,it);switch(ye.set(it,qe),z||(E(y,A,new Set(ye.keys()),x),F(y,x)),qe.state){case"hasValue":return qe.contents;case"hasError":throw qe.contents;case"loading":throw le.loadingDepKey=it,le.loadingDepPromise=qe.contents,qe.contents}throw X("Invalid Loadable state")}const mn=it=>(...qe)=>{if(Y)throw X("Callbacks from getCallback() should only be called asynchronously after the selector is evalutated. It can be used for selectors to return objects with callbacks that can work with Recoil state without a subscription.");return t==null&&Fr(!1),fw(y,it,qe,{node:t})};try{W=r({get:ht,getCallback:mn}),W=aw(W)?ht(W):W,tw(W)&&(W.state==="hasError"&&(de=!0),W=W.contents),ae(W)?W=p(y,W,A,ye,x,le).finally(J):J(),W=W instanceof Ph?W.value:W}catch(it){W=it,ae(W)?W=w(y,W,A,ye,x,le).finally(J):(de=!0,J())}return de?ke=Xo(W):ae(W)?ke=nw(W):ke=ou(W),z=!1,lt(y,x,ye),E(y,A,new Set(ye.keys()),x),[ke,ye]}function C(y,A){let x=A.atomValues.get(n);if(x!=null)return x;const G=new Set;try{x=u.get(Y=>(typeof Y!="string"&&Fr(!1),qo(y,A,Y).contents),{onNodeVisit:Y=>{Y.type==="branch"&&Y.nodeKey!==n&&G.add(Y.nodeKey)}})}catch(Y){throw X(`Problem with cache lookup for selector "${n}": ${Y.message}`)}if(x){var z;A.atomValues.set(n,x),E(y,A,G,(z=U(y))===null||z===void 0?void 0:z.executionID)}return x}function V(y,A){const x=C(y,A);if(x!=null)return oe(y),x;const G=te(y,A);if(G!=null){var z;return((z=G.loadingLoadable)===null||z===void 0?void 0:z.state)==="loading"&&c(y,G.executionID),G.loadingLoadable}const Y=pw(),[J,W]=L(y,A,Y);return J.state==="loading"?(fe(y,Y,J,W,A),c(y,Y)):(oe(y),Ie(A,J,W)),J}function te(y,A){const x=nh([a.has(y)?[ve(a.get(y))]:[],si(ca(a,([z])=>z!==y),([,z])=>z)]);function G(z){for(const[Y,J]of z)if(!qo(y,A,Y).is(J))return!0;return!1}for(const z of x){if(z.stateVersions.get(A.version)||!G(z.depValuesDiscoveredSoFarDuringAsyncWork))return z.stateVersions.set(A.version,!0),z;z.stateVersions.set(A.version,!1)}}function U(y){return a.get(y)}function fe(y,A,x,G,z){a.set(y,{depValuesDiscoveredSoFarDuringAsyncWork:G,executionID:A,loadingLoadable:x,stateVersions:new Map([[z.version,!0]])})}function lt(y,A,x){if($e(y,A)){const G=U(y);G!=null&&(G.depValuesDiscoveredSoFarDuringAsyncWork=x)}}function oe(y){a.delete(y)}function $e(y,A){var x;return A===((x=U(y))===null||x===void 0?void 0:x.executionID)}function Mt(y){return Array.from(y.entries()).map(([A,x])=>[A,x.contents])}function Ie(y,A,x){y.atomValues.set(n,A);try{u.set(Mt(x),A)}catch(G){throw X(`Problem with setting cache for selector "${n}": ${G.message}`)}}function Xe(y){if(Ir.includes(n)){const A=`Recoil selector has circular dependencies: ${Ir.slice(Ir.indexOf(n)).join(" → ")}`;return Xo(X(A))}Ir.push(n);try{return y()}finally{Ir.pop()}}function $(y,A){const x=A.atomValues.get(n);return x??u.get(G=>{var z;return typeof G!="string"&&Fr(!1),(z=rw(y,A,G))===null||z===void 0?void 0:z.contents})}function H(y,A){return Xe(()=>V(y,A))}function I(y){y.atomValues.delete(n)}function j(y,A){t==null&&Fr(!1);for(const G of i){var x;const z=sw(G);(x=z.clearCache)===null||x===void 0||x.call(z,y,A)}i.clear(),I(A),u.clear(),nf(y,t)}return l!=null?t=tf({key:n,nodeType:"selector",peek:$,get:H,set:(A,x,G)=>{let z=!1;const Y=new Map;function J({key:le}){if(z)throw X("Recoil: Async selector sets are not currently supported.");const ye=qo(A,x,le);if(ye.state==="hasValue")return ye.contents;if(ye.state==="loading"){const ht=`Getting value of asynchronous atom or selector "${le}" in a pending state while setting selector "${n}" is not yet supported.`;throw X(ht)}else throw ye.contents}function W(le,ye){if(z)throw X("Recoil: Async selector sets are not currently supported.");const ht=typeof ye=="function"?ye(J(le)):ye;ow(A,x,le.key,ht).forEach((it,qe)=>Y.set(qe,it))}function de(le){W(le,iw)}const ke=l({set:W,get:J,reset:de},G);if(ke!==void 0)throw ae(ke)?X("Recoil: Async selector sets are not currently supported."):X("Recoil: selector set should be a void function.");return z=!0,Y},init:m,invalidate:I,clearCache:j,shouldDeleteConfigOnRelease:_,dangerouslyAllowMutability:e.dangerouslyAllowMutability,shouldRestoreFromSnapshots:!1,retainedBy:s}):t=tf({key:n,nodeType:"selector",peek:$,get:H,init:m,invalidate:I,clearCache:j,shouldDeleteConfigOnRelease:_,dangerouslyAllowMutability:e.dangerouslyAllowMutability,shouldRestoreFromSnapshots:!1,retainedBy:s})}Ih.value=e=>new Ph(e);var vr=Ih;const{isLoadable:hw,loadableWithError:lu,loadableWithPromise:iu,loadableWithValue:On}=Eo,{WrappedValue:Vh}=Ah,{peekNodeInfo:vw}=hn,{DEFAULT_VALUE:Sn,DefaultValue:Kt,getConfigDeletionHandler:zh,registerNode:mw,setConfigDeletionHandler:yw}=Ye,{isRecoilValue:gw}=dr,{getRecoilValueAsLoadable:Sw,markRecoilValueModified:ww,setRecoilValue:rf,setRecoilValueLoadable:_w}=At,{retainedByOptionWithDefault:Rw}=Vn,Vr=e=>e instanceof Vh?e.value:e;function Ew(e){const{key:t,persistence_UNSTABLE:n}=e,r=Rw(e.retainedBy_UNSTABLE);let o=0;function l(c){return iu(c.then(p=>(i=On(p),p)).catch(p=>{throw i=lu(p),p}))}let i=ae(e.default)?l(e.default):hw(e.default)?e.default.state==="loading"?l(e.default.contents):e.default:On(Vr(e.default));i.contents;let u;const s=new Map;function a(c){return c}function d(c,p){const w=p.then(E=>{var L,C;return((C=((L=c.getState().nextTree)!==null&&L!==void 0?L:c.getState().currentTree).atomValues.get(t))===null||C===void 0?void 0:C.contents)===w&&rf(c,h,E),E}).catch(E=>{var L,C;throw((C=((L=c.getState().nextTree)!==null&&L!==void 0?L:c.getState().currentTree).atomValues.get(t))===null||C===void 0?void 0:C.contents)===w&&_w(c,h,lu(E)),E});return w}function f(c,p,w){var E;o++;const L=()=>{var U;o--,(U=s.get(c))===null||U===void 0||U.forEach(fe=>fe()),s.delete(c)};if(c.getState().knownAtoms.add(t),i.state==="loading"){const U=()=>{var fe;((fe=c.getState().nextTree)!==null&&fe!==void 0?fe:c.getState().currentTree).atomValues.has(t)||ww(c,h)};i.contents.finally(U)}const C=(E=e.effects)!==null&&E!==void 0?E:e.effects_UNSTABLE;if(C!=null){let U=function(I){if($e&&I.key===t){const j=oe;return j instanceof Kt?m(c,p):ae(j)?iu(j.then(y=>y instanceof Kt?i.toPromise():y)):On(j)}return Sw(c,I)},fe=function(I){return U(I).toPromise()},lt=function(I){var j;const y=vw(c,(j=c.getState().nextTree)!==null&&j!==void 0?j:c.getState().currentTree,I.key);return $e&&I.key===t&&!(oe instanceof Kt)?{...y,isSet:!0,loadable:U(I)}:y},oe=Sn,$e=!0,Mt=!1,Ie=null;const Xe=I=>j=>{if($e){const y=U(h),A=y.state==="hasValue"?y.contents:Sn;oe=typeof j=="function"?j(A):j,ae(oe)&&(oe=oe.then(x=>(Ie={effect:I,value:x},x)))}else{if(ae(j))throw X("Setting atoms to async values is not implemented.");typeof j!="function"&&(Ie={effect:I,value:Vr(j)}),rf(c,h,typeof j=="function"?y=>{const A=Vr(j(y));return Ie={effect:I,value:A},A}:Vr(j))}},$=I=>()=>Xe(I)(Sn),H=I=>j=>{var y;const{release:A}=c.subscribeToTransactions(x=>{var G;let{currentTree:z,previousTree:Y}=x.getState();Y||(Y=z);const J=(G=z.atomValues.get(t))!==null&&G!==void 0?G:i;if(J.state==="hasValue"){var W,de,ke,le;const ye=J.contents,ht=(W=Y.atomValues.get(t))!==null&&W!==void 0?W:i,mn=ht.state==="hasValue"?ht.contents:Sn;((de=Ie)===null||de===void 0?void 0:de.effect)!==I||((ke=Ie)===null||ke===void 0?void 0:ke.value)!==ye?j(ye,mn,!z.atomValues.has(t)):((le=Ie)===null||le===void 0?void 0:le.effect)===I&&(Ie=null)}},t);s.set(c,[...(y=s.get(c))!==null&&y!==void 0?y:[],A])};for(const I of C)try{const j=I({node:h,storeID:c.storeID,parentStoreID_UNSTABLE:c.parentStoreID,trigger:w,setSelf:Xe(I),resetSelf:$(I),onSet:H(I),getPromise:fe,getLoadable:U,getInfo_UNSTABLE:lt});if(j!=null){var V;s.set(c,[...(V=s.get(c))!==null&&V!==void 0?V:[],j])}}catch(j){oe=j,Mt=!0}if($e=!1,!(oe instanceof Kt)){var te;const I=Mt?lu(oe):ae(oe)?iu(d(c,oe)):On(Vr(oe));I.contents,p.atomValues.set(t,I),(te=c.getState().nextTree)===null||te===void 0||te.atomValues.set(t,I)}}return L}function m(c,p){var w,E;return(w=(E=p.atomValues.get(t))!==null&&E!==void 0?E:u)!==null&&w!==void 0?w:i}function _(c,p){if(p.atomValues.has(t))return ve(p.atomValues.get(t));if(p.nonvalidatedAtoms.has(t)){if(u!=null)return u;if(n==null)return i;const w=p.nonvalidatedAtoms.get(t),E=n.validator(w,Sn);return u=E instanceof Kt?i:On(E),u}else return i}function S(){u=void 0}function R(c,p,w){if(p.atomValues.has(t)){const E=ve(p.atomValues.get(t));if(E.state==="hasValue"&&w===E.contents)return new Map}else if(!p.nonvalidatedAtoms.has(t)&&w instanceof Kt)return new Map;return u=void 0,new Map().set(t,On(w))}function F(){return zh(t)!==void 0&&o<=0}const h=mw({key:t,nodeType:"atom",peek:m,get:_,set:R,init:f,invalidate:S,shouldDeleteConfigOnRelease:F,dangerouslyAllowMutability:e.dangerouslyAllowMutability,persistence_UNSTABLE:e.persistence_UNSTABLE?{type:e.persistence_UNSTABLE.type,backButton:e.persistence_UNSTABLE.backButton}:void 0,shouldRestoreFromSnapshots:!0,retainedBy:r});return h}function wa(e){const{...t}=e,n="default"in e?e.default:new Promise(()=>{});return gw(n)?kw({...t,default:n}):Ew({...t,default:n})}function kw(e){const t=wa({...e,default:Sn,persistence_UNSTABLE:e.persistence_UNSTABLE===void 0?void 0:{...e.persistence_UNSTABLE,validator:r=>r instanceof Kt?r:ve(e.persistence_UNSTABLE).validator(r,Sn)},effects:e.effects,effects_UNSTABLE:e.effects_UNSTABLE}),n=vr({key:`${e.key}__withFallback`,get:({get:r})=>{const o=r(t);return o instanceof Kt?e.default:o},set:({set:r},o)=>r(t,o),cachePolicy_UNSTABLE:{eviction:"most-recent"},dangerouslyAllowMutability:e.dangerouslyAllowMutability});return yw(n.key,zh(e.key)),n}wa.value=e=>new Vh(e);var Dh=wa;class Tw{constructor(t){var n;Z(this,"_map",void 0),Z(this,"_keyMapper",void 0),this._map=new Map,this._keyMapper=(n=t==null?void 0:t.mapKey)!==null&&n!==void 0?n:r=>r}size(){return this._map.size}has(t){return this._map.has(this._keyMapper(t))}get(t){return this._map.get(this._keyMapper(t))}set(t,n){this._map.set(this._keyMapper(t),n)}delete(t){this._map.delete(this._keyMapper(t))}clear(){this._map.clear()}}var Cw={MapCache:Tw},Nw=Cw.MapCache,Lw=Object.freeze({__proto__:null,MapCache:Nw});const{LRUCache:of}=Mh,{MapCache:Aw}=Lw,el={equality:"reference",eviction:"none",maxSize:1/0};function xw({equality:e=el.equality,eviction:t=el.eviction,maxSize:n=el.maxSize}=el){const r=Mw(e);return Pw(t,n,r)}function Mw(e){switch(e){case"reference":return t=>t;case"value":return t=>_i(t)}throw X(`Unrecognized equality policy ${e}`)}function Pw(e,t,n){switch(e){case"keep-all":return new Aw({mapKey:n});case"lru":return new of({mapKey:n,maxSize:ve(t)});case"most-recent":return new of({mapKey:n,maxSize:1})}throw X(`Unrecognized eviction policy ${e}`)}var Oh=xw;const{setConfigDeletionHandler:$w}=Ye;function Iw(e){var t,n;const r=Oh({equality:(t=(n=e.cachePolicyForParams_UNSTABLE)===null||n===void 0?void 0:n.equality)!==null&&t!==void 0?t:"value",eviction:"keep-all"});return o=>{var l,i;const u=r.get(o);if(u!=null)return u;const{cachePolicyForParams_UNSTABLE:s,...a}=e,d="default"in e?e.default:new Promise(()=>{}),f=Dh({...a,key:`${e.key}__${(l=_i(o))!==null&&l!==void 0?l:"void"}`,default:typeof d=="function"?d(o):d,retainedBy_UNSTABLE:typeof e.retainedBy_UNSTABLE=="function"?e.retainedBy_UNSTABLE(o):e.retainedBy_UNSTABLE,effects:typeof e.effects=="function"?e.effects(o):typeof e.effects_UNSTABLE=="function"?e.effects_UNSTABLE(o):(i=e.effects)!==null&&i!==void 0?i:e.effects_UNSTABLE});return r.set(o,f),$w(f.key,()=>{r.delete(o)}),f}}var Vw=Iw;const{setConfigDeletionHandler:zw}=Ye;let Dw=0;function Ow(e){var t,n;const r=Oh({equality:(t=(n=e.cachePolicyForParams_UNSTABLE)===null||n===void 0?void 0:n.equality)!==null&&t!==void 0?t:"value",eviction:"keep-all"});return o=>{var l;let i;try{i=r.get(o)}catch(m){throw X(`Problem with cache lookup for selector ${e.key}: ${m.message}`)}if(i!=null)return i;const u=`${e.key}__selectorFamily/${(l=_i(o,{allowFunctions:!0}))!==null&&l!==void 0?l:"void"}/${Dw++}`,s=m=>e.get(o)(m),a=e.cachePolicy_UNSTABLE,d=typeof e.retainedBy_UNSTABLE=="function"?e.retainedBy_UNSTABLE(o):e.retainedBy_UNSTABLE;let f;if(e.set!=null){const m=e.set;f=vr({key:u,get:s,set:(S,R)=>m(o)(S,R),cachePolicy_UNSTABLE:a,dangerouslyAllowMutability:e.dangerouslyAllowMutability,retainedBy_UNSTABLE:d})}else f=vr({key:u,get:s,cachePolicy_UNSTABLE:a,dangerouslyAllowMutability:e.dangerouslyAllowMutability,retainedBy_UNSTABLE:d});return r.set(o,f),zw(f.key,()=>{r.delete(o)}),f}}var vn=Ow;const Uw=vn({key:"__constant",get:e=>()=>e,cachePolicyForParams_UNSTABLE:{equality:"reference"}});function Fw(e){return Uw(e)}var Bw=Fw;const jw=vn({key:"__error",get:e=>()=>{throw X(e)},cachePolicyForParams_UNSTABLE:{equality:"reference"}});function Ww(e){return jw(e)}var Hw=Ww;function bw(e){return e}var Kw=bw;const{loadableWithError:Uh,loadableWithPromise:Fh,loadableWithValue:Bh}=Eo;function Ri(e,t){const n=Array(t.length).fill(void 0),r=Array(t.length).fill(void 0);for(const[o,l]of t.entries())try{n[o]=e(l)}catch(i){r[o]=i}return[n,r]}function Gw(e){return e!=null&&!ae(e)}function Ei(e){return Array.isArray(e)?e:Object.getOwnPropertyNames(e).map(t=>e[t])}function as(e,t){return Array.isArray(e)?t:Object.getOwnPropertyNames(e).reduce((n,r,o)=>({...n,[r]:t[o]}),{})}function rr(e,t,n){const r=n.map((o,l)=>o==null?Bh(t[l]):ae(o)?Fh(o):Uh(o));return as(e,r)}function Qw(e,t){return t.map((n,r)=>n===void 0?e[r]:n)}const Zw=vn({key:"__waitForNone",get:e=>({get:t})=>{const n=Ei(e),[r,o]=Ri(t,n);return rr(e,r,o)},dangerouslyAllowMutability:!0}),Yw=vn({key:"__waitForAny",get:e=>({get:t})=>{const n=Ei(e),[r,o]=Ri(t,n);return o.some(l=>!ae(l))?rr(e,r,o):new Promise(l=>{for(const[i,u]of o.entries())ae(u)&&u.then(s=>{r[i]=s,o[i]=void 0,l(rr(e,r,o))}).catch(s=>{o[i]=s,l(rr(e,r,o))})})},dangerouslyAllowMutability:!0}),Xw=vn({key:"__waitForAll",get:e=>({get:t})=>{const n=Ei(e),[r,o]=Ri(t,n);if(o.every(i=>i==null))return as(e,r);const l=o.find(Gw);if(l!=null)throw l;return Promise.all(o).then(i=>as(e,Qw(r,i)))},dangerouslyAllowMutability:!0}),qw=vn({key:"__waitForAllSettled",get:e=>({get:t})=>{const n=Ei(e),[r,o]=Ri(t,n);return o.every(l=>!ae(l))?rr(e,r,o):Promise.all(o.map((l,i)=>ae(l)?l.then(u=>{r[i]=u,o[i]=void 0}).catch(u=>{r[i]=void 0,o[i]=u}):null)).then(()=>rr(e,r,o))},dangerouslyAllowMutability:!0}),Jw=vn({key:"__noWait",get:e=>({get:t})=>{try{return vr.value(Bh(t(e)))}catch(n){return vr.value(ae(n)?Fh(n):Uh(n))}},dangerouslyAllowMutability:!0});var e_={waitForNone:Zw,waitForAny:Yw,waitForAll:Xw,waitForAllSettled:qw,noWait:Jw};const{RecoilLoadable:t_}=Eo,{DefaultValue:n_}=Ye,{RecoilRoot:r_,useRecoilStoreID:o_}=jt,{isRecoilValue:l_}=dr,{retentionZone:i_}=ci,{freshSnapshot:u_}=mi,{useRecoilState:s_,useRecoilState_TRANSITION_SUPPORT_UNSTABLE:a_,useRecoilStateLoadable:c_,useRecoilValue:f_,useRecoilValue_TRANSITION_SUPPORT_UNSTABLE:d_,useRecoilValueLoadable:p_,useRecoilValueLoadable_TRANSITION_SUPPORT_UNSTABLE:h_,useResetRecoilState:v_,useSetRecoilState:m_}=CS,{useGotoRecoilSnapshot:y_,useRecoilSnapshot:g_,useRecoilTransactionObserver:S_}=kh,{useRecoilCallback:w_}=Lh,{noWait:__,waitForAll:R_,waitForAllSettled:E_,waitForAny:k_,waitForNone:T_}=e_;var Ao={DefaultValue:n_,isRecoilValue:l_,RecoilLoadable:t_,RecoilEnv:Sr,RecoilRoot:r_,useRecoilStoreID:o_,useRecoilBridgeAcrossReactRoots_UNSTABLE:JS,atom:Dh,selector:vr,atomFamily:Vw,selectorFamily:vn,constSelector:Bw,errorSelector:Hw,readOnlySelector:Kw,noWait:__,waitForNone:T_,waitForAny:k_,waitForAll:R_,waitForAllSettled:E_,useRecoilValue:f_,useRecoilValueLoadable:p_,useRecoilState:s_,useRecoilStateLoadable:c_,useSetRecoilState:m_,useResetRecoilState:v_,useGetRecoilValueInfo_UNSTABLE:GS,useRecoilRefresher_UNSTABLE:L2,useRecoilValueLoadable_TRANSITION_SUPPORT_UNSTABLE:h_,useRecoilValue_TRANSITION_SUPPORT_UNSTABLE:d_,useRecoilState_TRANSITION_SUPPORT_UNSTABLE:a_,useRecoilCallback:w_,useRecoilTransaction_UNSTABLE:$2,useGotoRecoilSnapshot:y_,useRecoilSnapshot:g_,useRecoilTransactionObserver_UNSTABLE:S_,snapshot_UNSTABLE:u_,useRetain:va,retentionZone:i_},C_=Ao.RecoilRoot,xo=Ao.atom,N_=Ao.selector,L_=Ao.useRecoilValue,Mo=Ao.useRecoilState;function jh(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t'),!0):t?e.some(function(n){return t.includes(n)})||e.includes("*"):!0}var z_=function(t,n,r){r===void 0&&(r=!1);var o=n.alt,l=n.meta,i=n.mod,u=n.shift,s=n.ctrl,a=n.keys,d=t.key,f=t.code,m=t.ctrlKey,_=t.metaKey,S=t.shiftKey,R=t.altKey,F=Xt(f),h=d.toLowerCase();if(!(a!=null&&a.includes(F))&&!(a!=null&&a.includes(h))&&!["ctrl","control","unknown","meta","alt","shift","os"].includes(F))return!1;if(!r){if(o===!R&&h!=="alt"||u===!S&&h!=="shift")return!1;if(i){if(!_&&!m)return!1}else if(l===!_&&h!=="meta"&&h!=="os"||s===!m&&h!=="ctrl"&&h!=="control")return!1}return a&&a.length===1&&(a.includes(h)||a.includes(F))?!0:a?M_(a):!a},D_=N.createContext(void 0),O_=function(){return N.useContext(D_)};function Gh(e,t){return e&&t&&typeof e=="object"&&typeof t=="object"?Object.keys(e).length===Object.keys(t).length&&Object.keys(e).reduce(function(n,r){return n&&Gh(e[r],t[r])},!0):e===t}var U_=N.createContext({hotkeys:[],enabledScopes:[],toggleScope:function(){},enableScope:function(){},disableScope:function(){}}),F_=function(){return N.useContext(U_)};function B_(e){var t=N.useRef(void 0);return Gh(t.current,e)||(t.current=e),t.current}var lf=function(t){t.stopPropagation(),t.preventDefault(),t.stopImmediatePropagation()},j_=typeof window<"u"?N.useLayoutEffect:N.useEffect;function cn(e,t,n,r){var o=N.useRef(null),l=N.useRef(!1),i=n instanceof Array?r instanceof Array?void 0:r:n,u=Ra(e)?e.join(i==null?void 0:i.splitKey):e,s=n instanceof Array?n:r instanceof Array?r:void 0,a=N.useCallback(t,s??[]),d=N.useRef(a);s?d.current=a:d.current=t;var f=B_(i),m=F_(),_=m.enabledScopes,S=O_();return j_(function(){if(!((f==null?void 0:f.enabled)===!1||!V_(_,f==null?void 0:f.scopes))){var R=function(w,E){var L;if(E===void 0&&(E=!1),!(I_(w)&&!Kh(w,f==null?void 0:f.enableOnFormTags))){if(o.current!==null){var C=o.current.getRootNode();if((C instanceof Document||C instanceof ShadowRoot)&&C.activeElement!==o.current&&!o.current.contains(C.activeElement)){lf(w);return}}(L=w.target)!=null&&L.isContentEditable&&!(f!=null&&f.enableOnContentEditable)||uu(u,f==null?void 0:f.splitKey).forEach(function(V){var te,U=su(V,f==null?void 0:f.combinationKey);if(z_(w,U,f==null?void 0:f.ignoreModifiers)||(te=U.keys)!=null&&te.includes("*")){if(f!=null&&f.ignoreEventWhen!=null&&f.ignoreEventWhen(w)||E&&l.current)return;if(P_(w,U,f==null?void 0:f.preventDefault),!$_(w,U,f==null?void 0:f.enabled)){lf(w);return}d.current(w,U),E||(l.current=!0)}})}},F=function(w){w.key!==void 0&&(Hh(Xt(w.code)),((f==null?void 0:f.keydown)===void 0&&(f==null?void 0:f.keyup)!==!0||f!=null&&f.keydown)&&R(w))},h=function(w){w.key!==void 0&&(bh(Xt(w.code)),l.current=!1,f!=null&&f.keyup&&R(w,!0))},c=o.current||(i==null?void 0:i.document)||document;return c.addEventListener("keyup",h),c.addEventListener("keydown",F),S&&uu(u,f==null?void 0:f.splitKey).forEach(function(p){return S.addHotkey(su(p,f==null?void 0:f.combinationKey,f==null?void 0:f.description))}),function(){c.removeEventListener("keyup",h),c.removeEventListener("keydown",F),S&&uu(u,f==null?void 0:f.splitKey).forEach(function(p){return S.removeHotkey(su(p,f==null?void 0:f.combinationKey,f==null?void 0:f.description))})}}},[u,f,_]),o}const W_=xo({key:"open",default:!1}),H_=()=>Mo(W_),b_=xo({key:"context",default:"ACTIONS"}),Ea=()=>Mo(b_),Qh=xo({key:"query",default:""}),Zh=()=>Mo(Qh);function Yh(){let e="/";return window.palette&&window.palette.baseUrl&&(e=`${window.palette.baseUrl}/`,e=e.replace(/\/+$/,"/")),e}const Xh=xo({key:"unfilteredActionsState",default:[]}),K_=N_({key:"actionsState",get:({get:e})=>{const t=e(Qh);return e(Xh).filter(r=>r.name.toLowerCase().includes(t.toLowerCase())||r.subtitle.toLowerCase().includes(t.toLowerCase()))}});function G_(){const[e,t]=Mo(Xh),n=L_(K_);async function r(){const o=Yh(),i=await(await fetch(`${o}actions/palette/actions`)).json();t(i)}return{getActions:r,actions:n}}const Q_=xo({key:"focus",default:0});function ka(e){const[t,n]=Mo(Q_);N.useEffect(()=>{n(0)},[e]);async function r(o,l){l.length!==0&&(o==="up"&&t===0||o==="down"&&t===l.length-1||(o==="up"&&n(i=>i-1),o==="down"&&n(i=>i+1)))}return{setFocus:n,moveFocus:r,focus:t}}function Z_({title:e,titleId:t,...n},r){return N.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":t},n),e?N.createElement("title",{id:t},e):null,N.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M6 13.5V3.75m0 9.75a1.5 1.5 0 0 1 0 3m0-3a1.5 1.5 0 0 0 0 3m0 3.75V16.5m12-3V3.75m0 9.75a1.5 1.5 0 0 1 0 3m0-3a1.5 1.5 0 0 0 0 3m0 3.75V16.5m-6-9V3.75m0 3.75a1.5 1.5 0 0 1 0 3m0-3a1.5 1.5 0 0 0 0 3m0 9.75V10.5"}))}const Y_=N.forwardRef(Z_),X_=Y_;function q_({title:e,titleId:t,...n},r){return N.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":t},n),e?N.createElement("title",{id:t},e):null,N.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M15.75 9V5.25A2.25 2.25 0 0 0 13.5 3h-6a2.25 2.25 0 0 0-2.25 2.25v13.5A2.25 2.25 0 0 0 7.5 21h6a2.25 2.25 0 0 0 2.25-2.25V15M12 9l-3 3m0 0 3 3m-3-3h12.75"}))}const J_=N.forwardRef(q_),eR=J_;function tR({title:e,titleId:t,...n},r){return N.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":t},n),e?N.createElement("title",{id:t},e):null,N.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M9 15 3 9m0 0 6-6M3 9h12a6 6 0 0 1 0 12h-3"}))}const nR=N.forwardRef(tR),rR=nR;function oR({title:e,titleId:t,...n},r){return N.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":t},n),e?N.createElement("title",{id:t},e):null,N.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M3.75 6.75h16.5M3.75 12h16.5m-16.5 5.25h16.5"}))}const lR=N.forwardRef(oR),iR=lR;function uR({title:e,titleId:t,...n},r){return N.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":t},n),e?N.createElement("title",{id:t},e):null,N.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m3.75 13.5 10.5-11.25L12 10.5h8.25L9.75 21.75 12 13.5H3.75Z"}))}const sR=N.forwardRef(uR),aR=sR;function cR({title:e,titleId:t,...n},r){return N.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":t},n),e?N.createElement("title",{id:t},e):null,N.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M20.25 6.375c0 2.278-3.694 4.125-8.25 4.125S3.75 8.653 3.75 6.375m16.5 0c0-2.278-3.694-4.125-8.25-4.125S3.75 4.097 3.75 6.375m16.5 0v11.25c0 2.278-3.694 4.125-8.25 4.125s-8.25-1.847-8.25-4.125V6.375m16.5 0v3.75m-16.5-3.75v3.75m16.5 0v3.75C20.25 16.153 16.556 18 12 18s-8.25-1.847-8.25-4.125v-3.75m16.5 0c0 2.278-3.694 4.125-8.25 4.125s-8.25-1.847-8.25-4.125"}))}const fR=N.forwardRef(cR),dR=fR;function pR({title:e,titleId:t,...n},r){return N.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":t},n),e?N.createElement("title",{id:t},e):null,N.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M14.25 9.75 16.5 12l-2.25 2.25m-4.5 0L7.5 12l2.25-2.25M6 20.25h12A2.25 2.25 0 0 0 20.25 18V6A2.25 2.25 0 0 0 18 3.75H6A2.25 2.25 0 0 0 3.75 6v12A2.25 2.25 0 0 0 6 20.25Z"}))}const hR=N.forwardRef(pR),vR=hR;function mR({title:e,titleId:t,...n},r){return N.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":t},n),e?N.createElement("title",{id:t},e):null,N.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M10.343 3.94c.09-.542.56-.94 1.11-.94h1.093c.55 0 1.02.398 1.11.94l.149.894c.07.424.384.764.78.93.398.164.855.142 1.205-.108l.737-.527a1.125 1.125 0 0 1 1.45.12l.773.774c.39.389.44 1.002.12 1.45l-.527.737c-.25.35-.272.806-.107 1.204.165.397.505.71.93.78l.893.15c.543.09.94.559.94 1.109v1.094c0 .55-.397 1.02-.94 1.11l-.894.149c-.424.07-.764.383-.929.78-.165.398-.143.854.107 1.204l.527.738c.32.447.269 1.06-.12 1.45l-.774.773a1.125 1.125 0 0 1-1.449.12l-.738-.527c-.35-.25-.806-.272-1.203-.107-.398.165-.71.505-.781.929l-.149.894c-.09.542-.56.94-1.11.94h-1.094c-.55 0-1.019-.398-1.11-.94l-.148-.894c-.071-.424-.384-.764-.781-.93-.398-.164-.854-.142-1.204.108l-.738.527c-.447.32-1.06.269-1.45-.12l-.773-.774a1.125 1.125 0 0 1-.12-1.45l.527-.737c.25-.35.272-.806.108-1.204-.165-.397-.506-.71-.93-.78l-.894-.15c-.542-.09-.94-.56-.94-1.109v-1.094c0-.55.398-1.02.94-1.11l.894-.149c.424-.07.765-.383.93-.78.165-.398.143-.854-.108-1.204l-.526-.738a1.125 1.125 0 0 1 .12-1.45l.773-.773a1.125 1.125 0 0 1 1.45-.12l.737.527c.35.25.807.272 1.204.107.397-.165.71-.505.78-.929l.15-.894Z"}),N.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M15 12a3 3 0 1 1-6 0 3 3 0 0 1 6 0Z"}))}const yR=N.forwardRef(mR),gR=yR;function SR({title:e,titleId:t,...n},r){return N.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":t},n),e?N.createElement("title",{id:t},e):null,N.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M19.5 14.25v-2.625a3.375 3.375 0 0 0-3.375-3.375h-1.5A1.125 1.125 0 0 1 13.5 7.125v-1.5a3.375 3.375 0 0 0-3.375-3.375H8.25m2.25 0H5.625c-.621 0-1.125.504-1.125 1.125v17.25c0 .621.504 1.125 1.125 1.125h12.75c.621 0 1.125-.504 1.125-1.125V11.25a9 9 0 0 0-9-9Z"}))}const wR=N.forwardRef(SR),uf=wR;function _R({title:e,titleId:t,...n},r){return N.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":t},n),e?N.createElement("title",{id:t},e):null,N.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 21a9.004 9.004 0 0 0 8.716-6.747M12 21a9.004 9.004 0 0 1-8.716-6.747M12 21c2.485 0 4.5-4.03 4.5-9S14.485 3 12 3m0 18c-2.485 0-4.5-4.03-4.5-9S9.515 3 12 3m0 0a8.997 8.997 0 0 1 7.843 4.582M12 3a8.997 8.997 0 0 0-7.843 4.582m15.686 0A11.953 11.953 0 0 1 12 10.5c-2.998 0-5.74-1.1-7.843-2.918m15.686 0A8.959 8.959 0 0 1 21 12c0 .778-.099 1.533-.284 2.253m0 0A17.919 17.919 0 0 1 12 16.5c-3.162 0-6.133-.815-8.716-2.247m0 0A9.015 9.015 0 0 1 3 12c0-1.605.42-3.113 1.157-4.418"}))}const RR=N.forwardRef(_R),ER=RR;function kR({title:e,titleId:t,...n},r){return N.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":t},n),e?N.createElement("title",{id:t},e):null,N.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m21 21-5.197-5.197m0 0A7.5 7.5 0 1 0 5.196 5.196a7.5 7.5 0 0 0 10.607 10.607Z"}))}const TR=N.forwardRef(kR),CR=TR;function NR({title:e,titleId:t,...n},r){return N.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":t},n),e?N.createElement("title",{id:t},e):null,N.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m18.375 12.739-7.693 7.693a4.5 4.5 0 0 1-6.364-6.364l10.94-10.94A3 3 0 1 1 19.5 7.372L8.552 18.32m.009-.01-.01.01m5.699-9.941-7.81 7.81a1.5 1.5 0 0 0 2.112 2.13"}))}const LR=N.forwardRef(NR),AR=LR;function xR({title:e,titleId:t,...n},r){return N.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":t},n),e?N.createElement("title",{id:t},e):null,N.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m16.862 4.487 1.687-1.688a1.875 1.875 0 1 1 2.652 2.652L10.582 16.07a4.5 4.5 0 0 1-1.897 1.13L6 18l.8-2.685a4.5 4.5 0 0 1 1.13-1.897l8.932-8.931Zm0 0L19.5 7.125M18 14v4.75A2.25 2.25 0 0 1 15.75 21H5.25A2.25 2.25 0 0 1 3 18.75V8.25A2.25 2.25 0 0 1 5.25 6H10"}))}const MR=N.forwardRef(xR),PR=MR;function $R({title:e,titleId:t,...n},r){return N.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":t},n),e?N.createElement("title",{id:t},e):null,N.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M3.75 6A2.25 2.25 0 0 1 6 3.75h2.25A2.25 2.25 0 0 1 10.5 6v2.25a2.25 2.25 0 0 1-2.25 2.25H6a2.25 2.25 0 0 1-2.25-2.25V6ZM3.75 15.75A2.25 2.25 0 0 1 6 13.5h2.25a2.25 2.25 0 0 1 2.25 2.25V18a2.25 2.25 0 0 1-2.25 2.25H6A2.25 2.25 0 0 1 3.75 18v-2.25ZM13.5 6a2.25 2.25 0 0 1 2.25-2.25H18A2.25 2.25 0 0 1 20.25 6v2.25A2.25 2.25 0 0 1 18 10.5h-2.25a2.25 2.25 0 0 1-2.25-2.25V6ZM13.5 15.75a2.25 2.25 0 0 1 2.25-2.25H18a2.25 2.25 0 0 1 2.25 2.25V18A2.25 2.25 0 0 1 18 20.25h-2.25A2.25 2.25 0 0 1 13.5 18v-2.25Z"}))}const IR=N.forwardRef($R),VR=IR;function zR({title:e,titleId:t,...n},r){return N.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":t},n),e?N.createElement("title",{id:t},e):null,N.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M3.375 19.5h17.25m-17.25 0a1.125 1.125 0 0 1-1.125-1.125M3.375 19.5h7.5c.621 0 1.125-.504 1.125-1.125m-9.75 0V5.625m0 12.75v-1.5c0-.621.504-1.125 1.125-1.125m18.375 2.625V5.625m0 12.75c0 .621-.504 1.125-1.125 1.125m1.125-1.125v-1.5c0-.621-.504-1.125-1.125-1.125m0 3.75h-7.5A1.125 1.125 0 0 1 12 18.375m9.75-12.75c0-.621-.504-1.125-1.125-1.125H3.375c-.621 0-1.125.504-1.125 1.125m19.5 0v1.5c0 .621-.504 1.125-1.125 1.125M2.25 5.625v1.5c0 .621.504 1.125 1.125 1.125m0 0h17.25m-17.25 0h7.5c.621 0 1.125.504 1.125 1.125M3.375 8.25c-.621 0-1.125.504-1.125 1.125v1.5c0 .621.504 1.125 1.125 1.125m17.25-3.75h-7.5c-.621 0-1.125.504-1.125 1.125m8.625-1.125c.621 0 1.125.504 1.125 1.125v1.5c0 .621-.504 1.125-1.125 1.125m-17.25 0h7.5m-7.5 0c-.621 0-1.125.504-1.125 1.125v1.5c0 .621.504 1.125 1.125 1.125M12 10.875v-1.5m0 1.5c0 .621-.504 1.125-1.125 1.125M12 10.875c0 .621.504 1.125 1.125 1.125m-2.25 0c.621 0 1.125.504 1.125 1.125M13.125 12h7.5m-7.5 0c-.621 0-1.125.504-1.125 1.125M20.625 12c.621 0 1.125.504 1.125 1.125v1.5c0 .621-.504 1.125-1.125 1.125m-17.25 0h7.5M12 14.625v-1.5m0 1.5c0 .621-.504 1.125-1.125 1.125M12 14.625c0 .621.504 1.125 1.125 1.125m-2.25 0c.621 0 1.125.504 1.125 1.125m0 1.5v-1.5m0 0c0-.621.504-1.125 1.125-1.125m0 0h7.5"}))}const DR=N.forwardRef(zR),OR=DR;function UR({title:e,titleId:t,...n},r){return N.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":t},n),e?N.createElement("title",{id:t},e):null,N.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M17.982 18.725A7.488 7.488 0 0 0 12 15.75a7.488 7.488 0 0 0-5.982 2.975m11.963 0a9 9 0 1 0-11.963 0m11.963 0A8.966 8.966 0 0 1 12 21a8.966 8.966 0 0 1-5.982-2.275M15 9.75a3 3 0 1 1-6 0 3 3 0 0 1 6 0Z"}))}const FR=N.forwardRef(UR),BR=FR;function jR({name:e,...t}){return e==="document"?B.jsx(uf,{...t}):e==="table"?B.jsx(OR,{...t}):e==="section"?B.jsx(VR,{...t}):e==="code"?B.jsx(vR,{...t}):e==="bolt"?B.jsx(aR,{...t}):e==="settings"?B.jsx(gR,{...t}):e==="search"?B.jsx(CR,{...t}):e==="globe"?B.jsx(ER,{...t}):e==="edit"?B.jsx(PR,{...t}):e==="menu"?B.jsx(iR,{...t}):e==="attachment"?B.jsx(AR,{...t}):e==="database"?B.jsx(dR,{...t}):e==="utility"?B.jsx(X_,{...t}):e==="user"?B.jsx(BR,{...t}):e==="logout"?B.jsx(eR,{...t}):B.jsx(uf,{...t})}function qh({url:e,title:t,subtitle:n,icon:r,type:o,focused:l}){const i=N.useRef(null),[u,s]=Ea(),{focus:a,setFocus:d}=ka();return cn("enter",()=>{l&&(o==="link"?window.location=e:s(e))},{enableOnFormTags:!0}),cn("meta+enter",()=>{l&&(o==="link"?window.open(e,"_blank"):s(e))},{enableOnFormTags:!0}),N.useEffect(()=>{l&&i.current.scrollIntoView({block:"center"})},[a]),B.jsx("a",{className:_a("p-flex p-items-center p-gap-2","p-font-sans p-text-sm p-text-zinc-700 dark:p-text-zinc-300 p-no-underline","p-px-3 p-py-2.5 p-mx-2 p-rounded-lg",l&&"p-bg-zinc-200/75 dark:p-bg-zinc-700/50","hover:p-bg-zinc-200/75 dark:hover:p-bg-zinc-700/50"),onMouseEnter:()=>d(null),href:o==="link"?e:null,onClick:()=>o==="context"?s(e):null,ref:i,children:B.jsx("div",{className:"p-flex p-items-center p-justify-between p-gap-2 p-flex-1",children:B.jsxs("div",{className:"p-flex p-items-center p-gap-3 p-flex-1",children:[B.jsx(jR,{name:r,className:"p-size-5 p-opacity-75"}),B.jsxs("div",{className:"p-flex-1 p-flex p-justify-between p-items-center p-gap-1",children:[B.jsx("p",{className:"p-block p-leading-none p-m-0 p-font-sans p-font-medium",children:t}),n&&B.jsx("p",{className:"p-block p-leading-none p-text-xs p-m-0 p-font-sans p-opacity-75",children:n})]})]})})})}function Jh({text:e="No matching results found"}){return B.jsxs("div",{className:"p-flex p-flex-col p-justify-center p-items-center p-py-6 p-text-zinc-400 dark:p-text-zinc-500",children:[B.jsx("div",{children:B.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor",className:"p-size-12",children:B.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m21 21-5.197-5.197m0 0A7.5 7.5 0 1 0 5.196 5.196a7.5 7.5 0 0 0 10.607 10.607Z"})})}),B.jsx("p",{className:"p-text-lg p-mt-1",children:e})]})}function WR(){const{actions:e,getActions:t}=G_(),{focus:n,moveFocus:r}=ka(e);return cn("up",()=>r("up",e),{enableOnFormTags:!0,preventDefault:!0}),cn("down",()=>r("down",e),{enableOnFormTags:!0,preventDefault:!0}),N.useEffect(()=>{t()},[]),B.jsxs(B.Fragment,{children:[e.length===0&&B.jsx(Jh,{}),e.map((o,l)=>B.jsx(qh,{url:o.url,title:o.name,subtitle:o.subtitle,icon:o.icon,focused:l===n,type:o.type},o.url))]})}function HR(e,t,n){N.useEffect(()=>{const r=setTimeout(()=>e(),n);return()=>clearTimeout(r)},[...t||[],n])}function bR(){const[e]=Zh(),[t,n]=N.useState([]),{focus:r,moveFocus:o}=ka(t);return HR(()=>{const l=Yh();fetch(`${l}actions/palette/search?query=${e}`).then(i=>i.json()).then(i=>n(i))},[e],200),cn("up",()=>o("up",t),{enableOnFormTags:!0,preventDefault:!0}),cn("down",()=>o("down",t),{enableOnFormTags:!0,preventDefault:!0}),B.jsxs(B.Fragment,{children:[t.length===0&&B.jsx(Jh,{text:"No matching entries found"}),t.map((l,i)=>B.jsx(qh,{url:l.url,title:l.name,subtitle:l.subtitle,icon:l.icon,focused:i===r,type:l.type},l.url))]})}function KR({placeholder:e="Search"}){const[t,n]=Zh(),[r,o]=Ea();return N.useEffect(()=>{n("")},[r]),B.jsxs("div",{className:"p-flex p-px-2 p-items-center p-gap-1 p-border-b p-border-zinc-200 dark:p-border-zinc-700",children:[r!=="ACTIONS"&&B.jsx("div",{children:B.jsx("button",{className:"p-size-8 p-flex p-items-center p-justify-center p-border p-border-zinc-300 dark:p-border-zinc-700 p-rounded-lg dark:p-bg-zinc-900",onClick:()=>o("ACTIONS"),children:B.jsx(rR,{className:"p-size-4 p-text-zinc-500"})})}),B.jsx("input",{type:"text",className:_a(["p-bg-transparent","p-w-full p-px-2 p-py-3","p-outline-none p-ring-0 p-shadow-none p-border-0","p-text-base placeholder:p-text-zinc-400 placeholder:dark:p-text-zinc-500 p-text-zinc-700 dark:p-text-zinc-200"]),placeholder:e,onInput:({target:l})=>n(l.value),value:t,autoFocus:!0,spellCheck:!1})]})}function GR(){const[e,t]=H_(),[n,r]=Ea();return cn(["ctrl+k, meta+k"],()=>{t(o=>!o),r("ACTIONS")},{enableOnFormTags:!0,preventDefault:!0}),cn("esc",()=>{n==="ACTIONS"&&t(!1),r("ACTIONS")},{enableOnFormTags:!0}),B.jsx(B.Fragment,{children:e&&B.jsx("div",{className:"p-fixed p-inset-0 p-z-[9999] p-size-full p-flex p-justify-center p-antialiased",children:B.jsx("div",{className:"p-w-full p-max-w-2xl",children:B.jsxs("div",{className:_a(["p-bg-white/70 dark:p-bg-zinc-950/90","p-outline-zinc-300 dark:p-outline-zinc-900 p-outline p-outline-1","p-border p-border-white dark:p-border-zinc-500","p-rounded-lg p-translate-y-24 p-overflow-hidden p-backdrop-blur-xl p-shadow-2xl"]),children:[B.jsx(KR,{}),B.jsxs("div",{className:"dark:p-bg-zinc-950/10 p-max-h-96 p-overflow-scroll p-py-2",children:[n==="ACTIONS"&&B.jsx(WR,{}),n==="SEARCH_ENTRIES"&&B.jsx(bR,{})]})]})})})})}function QR(){return B.jsx(C_,{children:B.jsx(GR,{})})}const ev=document.createElement("div");ev.setAttribute("data-palette","");document.body.appendChild(ev);document.querySelectorAll("[data-palette]").forEach(e=>Rp.render(B.jsx(QR,{}),e)); + hot module replacement.`;console.warn(t)}}function v1(e){Sr.RECOIL_DUPLICATE_ATOM_KEY_CHECKING_ENABLED&&h1(e.key),Mn.set(e.key,e);const t=e.set==null?new dr.RecoilValueReadOnly(e.key):new dr.RecoilState(e.key);return sa.set(e.key,t),t}class Pp extends Error{}function m1(e){const t=Mn.get(e);if(t==null)throw new Pp(`Missing definition for RecoilValue: "${e}""`);return t}function y1(e){return Mn.get(e)}const Ol=new Map;function g1(e){var t;if(!ie("recoil_memory_managament_2020"))return;const n=Mn.get(e);if(n!=null&&(t=n.shouldDeleteConfigOnRelease)!==null&&t!==void 0&&t.call(n)){var r;Mn.delete(e),(r=$p(e))===null||r===void 0||r(),Ol.delete(e)}}function S1(e,t){ie("recoil_memory_managament_2020")&&(t===void 0?Ol.delete(e):Ol.set(e,t))}function $p(e){return Ol.get(e)}var Ye={nodes:Mn,recoilValues:sa,registerNode:v1,getNode:m1,getNodeMaybe:y1,deleteNodeConfigIfPossible:g1,setConfigDeletionHandler:S1,getConfigDeletionHandler:$p,recoilValuesForKeys:p1,NodeMissingError:Pp,DefaultValue:Mp,DEFAULT_VALUE:d1};function w1(e,t){t()}var _1={enqueueExecution:w1};function R1(e,t){return t={exports:{}},e(t,t.exports),t.exports}var E1=R1(function(e){var t=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(g){return typeof g}:function(g){return g&&typeof Symbol=="function"&&g.constructor===Symbol&&g!==Symbol.prototype?"symbol":typeof g},n={},r=5,o=Math.pow(2,r),l=o-1,i=o/2,u=o/4,s={},a=function(v){return function(){return v}},d=n.hash=function(g){var v=typeof g>"u"?"undefined":t(g);if(v==="number")return g;v!=="string"&&(g+="");for(var k=0,M=0,P=g.length;M>1&1431655765,v=(v&858993459)+(v>>2&858993459),v=v+(v>>4)&252645135,v+=v>>8,v+=v>>16,v&127},m=function(v,k){return k>>>v&l},_=function(v){return 1<=k;)P[Q--]=P[Q];return P[k]=M,P}for(var b=0,K=0,q=new Array(O+1);b>>=1;return Q[k]=M,fe(v,K+1,Q)},$e=function(v,k,M,P){for(var O=new Array(k-1),Q=0,b=0,K=0,q=P.length;K1?te(v,this.hash,q):q[0]}var pe=P();return pe===s?this:(++b.value,Mt(v,M,this.hash,this,O,V(v,O,Q,pe)))},I=function(v,k,M,P,O,Q,b){var K=this.mask,q=this.children,pe=m(M,O),We=_(pe),Ne=S(K,We),ut=K&We,vt=ut?q[Ne]:L,zn=vt._modify(v,k,M+r,P,O,Q,b);if(vt===zn)return this;var Po=Xe(v,this),_r=K,Rr=void 0;if(ut&&N(zn)){if(_r&=~We,!_r)return L;if(q.length<=2&<(q[Ne^1]))return q[Ne^1];Rr=F(Po,Ne,q)}else if(!ut&&!N(zn)){if(q.length>=i)return oe(v,pe,zn,K,q);_r|=We,Rr=h(Po,Ne,zn,q)}else Rr=R(Po,Ne,zn,q);return Po?(this.mask=_r,this.children=Rr,this):U(v,_r,Rr)},j=function(v,k,M,P,O,Q,b){var K=this.size,q=this.children,pe=m(M,O),We=q[pe],Ne=(We||L)._modify(v,k,M+r,P,O,Q,b);if(We===Ne)return this;var ut=Xe(v,this),vt=void 0;if(N(We)&&!N(Ne))++K,vt=R(ut,pe,Ne,q);else if(!N(We)&&N(Ne)){if(--K,K<=u)return $e(v,K,pe,q);vt=R(ut,pe,L,q)}else vt=R(ut,pe,Ne,q);return ut?(this.size=K,this.children=vt,this):fe(v,K,vt)};L._modify=function(g,v,k,M,P,O,Q){var b=M();return b===s?L:(++Q.value,V(g,P,O,b))};function y(g,v,k,M,P){this._editable=g,this._edit=v,this._config=k,this._root=M,this._size=P}y.prototype.setTree=function(g,v){return this._editable?(this._root=g,this._size=v,this):g===this._root?this:new y(this._editable,this._edit,this._config,g,v)};var A=n.tryGetHash=function(g,v,k,M){for(var P=M._root,O=0,Q=M._config.keyEq;;)switch(P.type){case c:return Q(k,P.key)?P.value:g;case p:{if(v===P.hash)for(var b=P.children,K=0,q=b.length;K{n.set(o,t(r,o))}),n}var Ul=A1;function x1(){return{nodeDeps:new Map,nodeToNodeSubscriptions:new Map}}function M1(e){return{nodeDeps:Ul(e.nodeDeps,t=>new Set(t)),nodeToNodeSubscriptions:Ul(e.nodeToNodeSubscriptions,t=>new Set(t))}}function ru(e,t,n,r){const{nodeDeps:o,nodeToNodeSubscriptions:l}=n,i=o.get(e);if(i&&r&&i!==r.nodeDeps.get(e))return;o.set(e,t);const u=i==null?t:Yr(t,i);for(const s of u)l.has(s)||l.set(s,new Set),ve(l.get(s)).add(e);if(i){const s=Yr(i,t);for(const a of s){if(!l.has(a))return;const d=ve(l.get(a));d.delete(e),d.size===0&&l.delete(a)}}}function P1(e,t,n,r){var o,l,i,u;const s=n.getState();r===s.currentTree.version||r===((o=s.nextTree)===null||o===void 0?void 0:o.version)||((l=s.previousTree)===null||l===void 0||l.version);const a=n.getGraph(r);if(ru(e,t,a),r===((i=s.previousTree)===null||i===void 0?void 0:i.version)){const f=n.getGraph(s.currentTree.version);ru(e,t,f,a)}if(r===((u=s.previousTree)===null||u===void 0?void 0:u.version)||r===s.currentTree.version){var d;const f=(d=s.nextTree)===null||d===void 0?void 0:d.version;if(f!==void 0){const m=n.getGraph(f);ru(e,t,m,a)}}}var To={cloneGraph:M1,graph:x1,saveDepsToStore:P1};let $1=0;const I1=()=>$1++;let V1=0;const z1=()=>V1++;let D1=0;const O1=()=>D1++;var ci={getNextTreeStateVersion:I1,getNextStoreID:z1,getNextComponentID:O1};const{persistentMap:Dc}=N1,{graph:U1}=To,{getNextTreeStateVersion:Ip}=ci;function Vp(){const e=Ip();return{version:e,stateID:e,transactionMetadata:{},dirtyAtoms:new Set,atomValues:Dc(),nonvalidatedAtoms:Dc()}}function F1(){const e=Vp();return{currentTree:e,nextTree:null,previousTree:null,commitDepth:0,knownAtoms:new Set,knownSelectors:new Set,transactionSubscriptions:new Map,nodeTransactionSubscriptions:new Map,nodeToComponentSubscriptions:new Map,queuedComponentCallbacks_DEPRECATED:[],suspendedComponentResolvers:new Set,graphsByVersion:new Map().set(e.version,U1()),retention:{referenceCounts:new Map,nodesRetainedByZone:new Map,retainablesToCheckForRelease:new Set},nodeCleanupFunctions:new Map}}var zp={makeEmptyTreeState:Vp,makeEmptyStoreState:F1,getNextTreeStateVersion:Ip};class Dp{}function B1(){return new Dp}var fi={RetentionZone:Dp,retentionZone:B1};function j1(e,t){const n=new Set(e);return n.add(t),n}function W1(e,t){const n=new Set(e);return n.delete(t),n}function H1(e,t,n){const r=new Map(e);return r.set(t,n),r}function b1(e,t,n){const r=new Map(e);return r.set(t,n(r.get(t))),r}function K1(e,t){const n=new Map(e);return n.delete(t),n}function G1(e,t){const n=new Map(e);return t.forEach(r=>n.delete(r)),n}var Op={setByAddingToSet:j1,setByDeletingFromSet:W1,mapBySettingInMap:H1,mapByUpdatingInMap:b1,mapByDeletingFromMap:K1,mapByDeletingMultipleFromMap:G1};function*Q1(e,t){let n=0;for(const r of e)t(r,n++)&&(yield r)}var fa=Q1;function Z1(e,t){return new Proxy(e,{get:(r,o)=>(!(o in r)&&o in t&&(r[o]=t[o]()),r[o]),ownKeys:r=>Object.keys(r)})}var Up=Z1;const{getNode:Co,getNodeMaybe:Y1,recoilValuesForKeys:Oc}=Ye,{RetentionZone:Uc}=fi,{setByAddingToSet:X1}=Op,q1=Object.freeze(new Set);class J1 extends Error{}function ey(e,t,n){if(!ie("recoil_memory_managament_2020"))return()=>{};const{nodesRetainedByZone:r}=e.getState().retention;function o(l){let i=r.get(l);i||r.set(l,i=new Set),i.add(t)}if(n instanceof Uc)o(n);else if(Array.isArray(n))for(const l of n)o(l);return()=>{if(!ie("recoil_memory_managament_2020"))return;const{retention:l}=e.getState();function i(u){const s=l.nodesRetainedByZone.get(u);s==null||s.delete(t),s&&s.size===0&&l.nodesRetainedByZone.delete(u)}if(n instanceof Uc)i(n);else if(Array.isArray(n))for(const u of n)i(u)}}function da(e,t,n,r){const o=e.getState();if(o.nodeCleanupFunctions.has(n))return;const l=Co(n),i=ey(e,n,l.retainedBy),u=l.init(e,t,r);o.nodeCleanupFunctions.set(n,()=>{u(),i()})}function ty(e,t,n){da(e,e.getState().currentTree,t,n)}function ny(e,t){var n;const r=e.getState();(n=r.nodeCleanupFunctions.get(t))===null||n===void 0||n(),r.nodeCleanupFunctions.delete(t)}function ry(e,t,n){return da(e,t,n,"get"),Co(n).get(e,t)}function Fp(e,t,n){return Co(n).peek(e,t)}function oy(e,t,n){var r;const o=Y1(t);return o==null||(r=o.invalidate)===null||r===void 0||r.call(o,e),{...e,atomValues:e.atomValues.clone().delete(t),nonvalidatedAtoms:e.nonvalidatedAtoms.clone().set(t,n),dirtyAtoms:X1(e.dirtyAtoms,t)}}function ly(e,t,n,r){const o=Co(n);if(o.set==null)throw new J1(`Attempt to set read-only RecoilValue: ${n}`);const l=o.set;return da(e,t,n,"set"),l(e,t,r)}function iy(e,t,n){const r=e.getState(),o=e.getGraph(t.version),l=Co(n).nodeType;return Up({type:l},{loadable:()=>Fp(e,t,n),isActive:()=>r.knownAtoms.has(n)||r.knownSelectors.has(n),isSet:()=>l==="selector"?!1:t.atomValues.has(n),isModified:()=>t.dirtyAtoms.has(n),deps:()=>{var i;return Oc((i=o.nodeDeps.get(n))!==null&&i!==void 0?i:[])},subscribers:()=>{var i,u;return{nodes:Oc(fa(Bp(e,t,new Set([n])),s=>s!==n)),components:ai((i=(u=r.nodeToComponentSubscriptions.get(n))===null||u===void 0?void 0:u.values())!==null&&i!==void 0?i:[],([s])=>({name:s}))}}})}function Bp(e,t,n){const r=new Set,o=Array.from(n),l=e.getGraph(t.version);for(let u=o.pop();u;u=o.pop()){var i;r.add(u);const s=(i=l.nodeToNodeSubscriptions.get(u))!==null&&i!==void 0?i:q1;for(const a of s)r.has(a)||o.push(a)}return r}var hn={getNodeLoadable:ry,peekNodeLoadable:Fp,setNodeValue:ly,initializeNode:ty,cleanUpNode:ny,setUnvalidatedAtomValue_DEPRECATED:oy,peekNodeInfo:iy,getDownstreamNodes:Bp};let jp=null;function uy(e){jp=e}function sy(){var e;(e=jp)===null||e===void 0||e()}var Wp={setInvalidateMemoizedSnapshot:uy,invalidateMemoizedSnapshot:sy};const{getDownstreamNodes:ay,getNodeLoadable:Hp,setNodeValue:cy}=hn,{getNextComponentID:fy}=ci,{getNode:dy,getNodeMaybe:bp}=Ye,{DefaultValue:pa}=Ye,{reactMode:py}=ko,{AbstractRecoilValue:hy,RecoilState:vy,RecoilValueReadOnly:my,isRecoilValue:yy}=dr,{invalidateMemoizedSnapshot:gy}=Wp;function Sy(e,{key:t},n=e.getState().currentTree){var r,o;const l=e.getState();n.version===l.currentTree.version||n.version===((r=l.nextTree)===null||r===void 0?void 0:r.version)||(n.version,(o=l.previousTree)===null||o===void 0||o.version);const i=Hp(e,n,t);return i.state==="loading"&&i.contents.catch(()=>{}),i}function wy(e,t){const n=e.clone();return t.forEach((r,o)=>{r.state==="hasValue"&&r.contents instanceof pa?n.delete(o):n.set(o,r)}),n}function _y(e,t,{key:n},r){if(typeof r=="function"){const o=Hp(e,t,n);if(o.state==="loading"){const l=`Tried to set atom or selector "${n}" using an updater function while the current state is pending, this is not currently supported.`;throw X(l)}else if(o.state==="hasError")throw o.contents;return r(o.contents)}else return r}function Ry(e,t,n){if(n.type==="set"){const{recoilValue:o,valueOrUpdater:l}=n,i=_y(e,t,o,l),u=cy(e,t,o.key,i);for(const[s,a]of u.entries())rs(t,s,a)}else if(n.type==="setLoadable"){const{recoilValue:{key:o},loadable:l}=n;rs(t,o,l)}else if(n.type==="markModified"){const{recoilValue:{key:o}}=n;t.dirtyAtoms.add(o)}else if(n.type==="setUnvalidated"){var r;const{recoilValue:{key:o},unvalidatedValue:l}=n,i=bp(o);i==null||(r=i.invalidate)===null||r===void 0||r.call(i,t),t.atomValues.delete(o),t.nonvalidatedAtoms.set(o,l),t.dirtyAtoms.add(o)}else ia(`Unknown action ${n.type}`)}function rs(e,t,n){n.state==="hasValue"&&n.contents instanceof pa?e.atomValues.delete(t):e.atomValues.set(t,n),e.dirtyAtoms.add(t),e.nonvalidatedAtoms.delete(t)}function Kp(e,t){e.replaceState(n=>{const r=Gp(n);for(const o of t)Ry(e,r,o);return Qp(e,r),gy(),r})}function di(e,t){if(Xr.length){const n=Xr[Xr.length-1];let r=n.get(e);r||n.set(e,r=[]),r.push(t)}else Kp(e,[t])}const Xr=[];function Ey(){const e=new Map;return Xr.push(e),()=>{for(const[t,n]of e)Kp(t,n);Xr.pop()}}function Gp(e){return{...e,atomValues:e.atomValues.clone(),nonvalidatedAtoms:e.nonvalidatedAtoms.clone(),dirtyAtoms:new Set(e.dirtyAtoms)}}function Qp(e,t){const n=ay(e,t,t.dirtyAtoms);for(const l of n){var r,o;(r=bp(l))===null||r===void 0||(o=r.invalidate)===null||o===void 0||o.call(r,t)}}function Zp(e,t,n){di(e,{type:"set",recoilValue:t,valueOrUpdater:n})}function ky(e,t,n){if(n instanceof pa)return Zp(e,t,n);di(e,{type:"setLoadable",recoilValue:t,loadable:n})}function Ty(e,t){di(e,{type:"markModified",recoilValue:t})}function Cy(e,t,n){di(e,{type:"setUnvalidated",recoilValue:t,unvalidatedValue:n})}function Ny(e,{key:t},n,r=null){const o=fy(),l=e.getState();l.nodeToComponentSubscriptions.has(t)||l.nodeToComponentSubscriptions.set(t,new Map),ve(l.nodeToComponentSubscriptions.get(t)).set(o,[r??"",n]);const i=py();if(i.early&&(i.mode==="LEGACY"||i.mode==="MUTABLE_SOURCE")){const u=e.getState().nextTree;u&&u.dirtyAtoms.has(t)&&n(u)}return{release:()=>{const u=e.getState(),s=u.nodeToComponentSubscriptions.get(t);s===void 0||!s.has(o)||(s.delete(o),s.size===0&&u.nodeToComponentSubscriptions.delete(t))}}}function Ly(e,t){var n;const{currentTree:r}=e.getState(),o=dy(t.key);(n=o.clearCache)===null||n===void 0||n.call(o,e,r)}var At={RecoilValueReadOnly:my,AbstractRecoilValue:hy,RecoilState:vy,getRecoilValueAsLoadable:Sy,setRecoilValue:Zp,setRecoilValueLoadable:ky,markRecoilValueModified:Ty,setUnvalidatedRecoilValue:Cy,subscribeToRecoilValue:Ny,isRecoilValue:yy,applyAtomValueWrites:wy,batchStart:Ey,writeLoadableToTreeState:rs,invalidateDownstreams:Qp,copyTreeState:Gp,refreshRecoilValue:Ly};function Ay(e,t,n){const r=e.entries();let o=r.next();for(;!o.done;){const l=o.value;if(t.call(n,l[1],l[0],e))return!0;o=r.next()}return!1}var xy=Ay;const{cleanUpNode:My}=hn,{deleteNodeConfigIfPossible:Py,getNode:Yp}=Ye,{RetentionZone:Xp}=fi,$y=12e4,qp=new Set;function Jp(e,t){const n=e.getState(),r=n.currentTree;if(n.nextTree)return;const o=new Set;for(const i of t)if(i instanceof Xp)for(const u of Dy(n,i))o.add(u);else o.add(i);const l=Iy(e,o);for(const i of l)zy(e,r,i)}function Iy(e,t){const n=e.getState(),r=n.currentTree,o=e.getGraph(r.version),l=new Set,i=new Set;return u(t),l;function u(s){const a=new Set,d=Vy(e,r,s,l,i);for(const S of d){var f;if(Yp(S).retainedBy==="recoilRoot"){i.add(S);continue}if(((f=n.retention.referenceCounts.get(S))!==null&&f!==void 0?f:0)>0){i.add(S);continue}if(eh(S).some(F=>n.retention.referenceCounts.get(F))){i.add(S);continue}const R=o.nodeToNodeSubscriptions.get(S);if(R&&xy(R,F=>i.has(F))){i.add(S);continue}l.add(S),a.add(S)}const m=new Set;for(const S of a)for(const R of(_=o.nodeDeps.get(S))!==null&&_!==void 0?_:qp){var _;l.has(R)||m.add(R)}m.size&&u(m)}}function Vy(e,t,n,r,o){const l=e.getGraph(t.version),i=[],u=new Set;for(;n.size>0;)s(ve(n.values().next().value));return i;function s(a){if(r.has(a)||o.has(a)){n.delete(a);return}if(u.has(a))return;const d=l.nodeToNodeSubscriptions.get(a);if(d)for(const f of d)s(f);u.add(a),n.delete(a),i.push(a)}}function zy(e,t,n){if(!ie("recoil_memory_managament_2020"))return;My(e,n);const r=e.getState();r.knownAtoms.delete(n),r.knownSelectors.delete(n),r.nodeTransactionSubscriptions.delete(n),r.retention.referenceCounts.delete(n);const o=eh(n);for(const s of o){var l;(l=r.retention.nodesRetainedByZone.get(s))===null||l===void 0||l.delete(n)}t.atomValues.delete(n),t.dirtyAtoms.delete(n),t.nonvalidatedAtoms.delete(n);const i=r.graphsByVersion.get(t.version);if(i){const s=i.nodeDeps.get(n);if(s!==void 0){i.nodeDeps.delete(n);for(const a of s){var u;(u=i.nodeToNodeSubscriptions.get(a))===null||u===void 0||u.delete(n)}}i.nodeToNodeSubscriptions.delete(n)}Py(n)}function Dy(e,t){var n;return(n=e.retention.nodesRetainedByZone.get(t))!==null&&n!==void 0?n:qp}function eh(e){const t=Yp(e).retainedBy;return t===void 0||t==="components"||t==="recoilRoot"?[]:t instanceof Xp?[t]:t}function Oy(e,t){const n=e.getState();n.nextTree?n.retention.retainablesToCheckForRelease.add(t):Jp(e,new Set([t]))}function Uy(e,t,n){var r;if(!ie("recoil_memory_managament_2020"))return;const o=e.getState().retention.referenceCounts,l=((r=o.get(t))!==null&&r!==void 0?r:0)+n;l===0?th(e,t):o.set(t,l)}function th(e,t){if(!ie("recoil_memory_managament_2020"))return;e.getState().retention.referenceCounts.delete(t),Oy(e,t)}function Fy(e){if(!ie("recoil_memory_managament_2020"))return;const t=e.getState();Jp(e,t.retention.retainablesToCheckForRelease),t.retention.retainablesToCheckForRelease.clear()}function By(e){return e===void 0?"recoilRoot":e}var Vn={SUSPENSE_TIMEOUT_MS:$y,updateRetainCount:Uy,updateRetainCountToZero:th,releaseScheduledRetainablesNow:Fy,retainedByOptionWithDefault:By};const{unstable_batchedUpdates:jy}=Vm;var Wy={unstable_batchedUpdates:jy};const{unstable_batchedUpdates:Hy}=Wy;var by={unstable_batchedUpdates:Hy};const{batchStart:Ky}=At,{unstable_batchedUpdates:Gy}=by;let ha=Gy||(e=>e());const Qy=e=>{ha=e},Zy=()=>ha,Yy=e=>{ha(()=>{let t=()=>{};try{t=Ky(),e()}finally{t()}})};var pi={getBatcher:Zy,setBatcher:Qy,batchUpdates:Yy};function*Xy(e){for(const t of e)for(const n of t)yield n}var nh=Xy;const rh=typeof Window>"u"||typeof window>"u",qy=e=>!rh&&(e===window||e instanceof Window),Jy=typeof navigator<"u"&&navigator.product==="ReactNative";var hi={isSSR:rh,isReactNative:Jy,isWindow:qy};function eg(e,t){let n;return(...r)=>{n||(n={});const o=t(...r);return Object.hasOwnProperty.call(n,o)||(n[o]=e(...r)),n[o]}}function tg(e,t){let n,r;return(...o)=>{const l=t(...o);return n===l||(n=l,r=e(...o)),r}}function ng(e,t){let n,r;return[(...i)=>{const u=t(...i);return n===u||(n=u,r=e(...i)),r},()=>{n=null}]}var rg={memoizeWithArgsHash:eg,memoizeOneWithArgsHash:tg,memoizeOneWithArgsHashAndInvalidation:ng};const{batchUpdates:os}=pi,{initializeNode:og,peekNodeInfo:lg}=hn,{graph:ig}=To,{getNextStoreID:ug}=ci,{DEFAULT_VALUE:sg,recoilValues:Fc,recoilValuesForKeys:Bc}=Ye,{AbstractRecoilValue:ag,getRecoilValueAsLoadable:cg,setRecoilValue:jc,setUnvalidatedRecoilValue:fg}=At,{updateRetainCount:pl}=Vn,{setInvalidateMemoizedSnapshot:dg}=Wp,{getNextTreeStateVersion:pg,makeEmptyStoreState:hg}=zp,{isSSR:vg}=hi,{memoizeOneWithArgsHashAndInvalidation:mg}=rg;class vi{constructor(t,n){Z(this,"_store",void 0),Z(this,"_refCount",1),Z(this,"getLoadable",r=>(this.checkRefCount_INTERNAL(),cg(this._store,r))),Z(this,"getPromise",r=>(this.checkRefCount_INTERNAL(),this.getLoadable(r).toPromise())),Z(this,"getNodes_UNSTABLE",r=>{if(this.checkRefCount_INTERNAL(),(r==null?void 0:r.isModified)===!0){if((r==null?void 0:r.isInitialized)===!1)return[];const i=this._store.getState().currentTree;return Bc(i.dirtyAtoms)}const o=this._store.getState().knownAtoms,l=this._store.getState().knownSelectors;return(r==null?void 0:r.isInitialized)==null?Fc.values():r.isInitialized===!0?Bc(nh([o,l])):fa(Fc.values(),({key:i})=>!o.has(i)&&!l.has(i))}),Z(this,"getInfo_UNSTABLE",({key:r})=>(this.checkRefCount_INTERNAL(),lg(this._store,this._store.getState().currentTree,r))),Z(this,"map",r=>{this.checkRefCount_INTERNAL();const o=new ls(this,os);return r(o),o}),Z(this,"asyncMap",async r=>{this.checkRefCount_INTERNAL();const o=new ls(this,os);return o.retain(),await r(o),o.autoRelease_INTERNAL(),o}),this._store={storeID:ug(),parentStoreID:n,getState:()=>t,replaceState:r=>{t.currentTree=r(t.currentTree)},getGraph:r=>{const o=t.graphsByVersion;if(o.has(r))return ve(o.get(r));const l=ig();return o.set(r,l),l},subscribeToTransactions:()=>({release:()=>{}}),addTransactionMetadata:()=>{throw X("Cannot subscribe to Snapshots")}};for(const r of this._store.getState().knownAtoms)og(this._store,r,"get"),pl(this._store,r,1);this.autoRelease_INTERNAL()}retain(){this._refCount<=0,this._refCount++;let t=!1;return()=>{t||(t=!0,this._release())}}autoRelease_INTERNAL(){vg||window.setTimeout(()=>this._release(),10)}_release(){if(this._refCount--,this._refCount===0){if(this._store.getState().nodeCleanupFunctions.forEach(t=>t()),this._store.getState().nodeCleanupFunctions.clear(),!ie("recoil_memory_managament_2020"))return}else this._refCount<0}isRetained(){return this._refCount>0}checkRefCount_INTERNAL(){ie("recoil_memory_managament_2020")&&this._refCount<=0}getStore_INTERNAL(){return this.checkRefCount_INTERNAL(),this._store}getID(){return this.checkRefCount_INTERNAL(),this._store.getState().currentTree.stateID}getStoreID(){return this.checkRefCount_INTERNAL(),this._store.storeID}}function oh(e,t,n=!1){const r=e.getState(),o=n?pg():t.version;return{currentTree:{version:n?o:t.version,stateID:n?o:t.stateID,transactionMetadata:{...t.transactionMetadata},dirtyAtoms:new Set(t.dirtyAtoms),atomValues:t.atomValues.clone(),nonvalidatedAtoms:t.nonvalidatedAtoms.clone()},commitDepth:0,nextTree:null,previousTree:null,knownAtoms:new Set(r.knownAtoms),knownSelectors:new Set(r.knownSelectors),transactionSubscriptions:new Map,nodeTransactionSubscriptions:new Map,nodeToComponentSubscriptions:new Map,queuedComponentCallbacks_DEPRECATED:[],suspendedComponentResolvers:new Set,graphsByVersion:new Map().set(o,e.getGraph(t.version)),retention:{referenceCounts:new Map,nodesRetainedByZone:new Map,retainablesToCheckForRelease:new Set},nodeCleanupFunctions:new Map(ai(r.nodeCleanupFunctions.entries(),([l])=>[l,()=>{}]))}}function yg(e){const t=new vi(hg());return e!=null?t.map(e):t}const[Wc,lh]=mg((e,t)=>{var n;const r=e.getState(),o=t==="latest"?(n=r.nextTree)!==null&&n!==void 0?n:r.currentTree:ve(r.previousTree);return new vi(oh(e,o),e.storeID)},(e,t)=>{var n,r;return String(t)+String(e.storeID)+String((n=e.getState().nextTree)===null||n===void 0?void 0:n.version)+String(e.getState().currentTree.version)+String((r=e.getState().previousTree)===null||r===void 0?void 0:r.version)});dg(lh);function gg(e,t="latest"){const n=Wc(e,t);return n.isRetained()?n:(lh(),Wc(e,t))}class ls extends vi{constructor(t,n){super(oh(t.getStore_INTERNAL(),t.getStore_INTERNAL().getState().currentTree,!0),t.getStoreID()),Z(this,"_batch",void 0),Z(this,"set",(r,o)=>{this.checkRefCount_INTERNAL();const l=this.getStore_INTERNAL();this._batch(()=>{pl(l,r.key,1),jc(this.getStore_INTERNAL(),r,o)})}),Z(this,"reset",r=>{this.checkRefCount_INTERNAL();const o=this.getStore_INTERNAL();this._batch(()=>{pl(o,r.key,1),jc(this.getStore_INTERNAL(),r,sg)})}),Z(this,"setUnvalidatedAtomValues_DEPRECATED",r=>{this.checkRefCount_INTERNAL();const o=this.getStore_INTERNAL();os(()=>{for(const[l,i]of r.entries())pl(o,l,1),fg(o,new ag(l),i)})}),this._batch=n}}var mi={Snapshot:vi,MutableSnapshot:ls,freshSnapshot:yg,cloneSnapshot:gg},Sg=mi.Snapshot,wg=mi.MutableSnapshot,_g=mi.freshSnapshot,Rg=mi.cloneSnapshot,yi=Object.freeze({__proto__:null,Snapshot:Sg,MutableSnapshot:wg,freshSnapshot:_g,cloneSnapshot:Rg});function Eg(...e){const t=new Set;for(const n of e)for(const r of n)t.add(r);return t}var kg=Eg;const{useRef:Tg}=me;function Cg(e){const t=Tg(e);return t.current===e&&typeof e=="function"&&(t.current=e()),t}var Hc=Cg;const{getNextTreeStateVersion:Ng,makeEmptyStoreState:ih}=zp,{cleanUpNode:Lg,getDownstreamNodes:Ag,initializeNode:xg,setNodeValue:Mg,setUnvalidatedAtomValue_DEPRECATED:Pg}=hn,{graph:$g}=To,{cloneGraph:Ig}=To,{getNextStoreID:uh}=ci,{createMutableSource:ou,reactMode:sh}=ko,{applyAtomValueWrites:Vg}=At,{releaseScheduledRetainablesNow:ah}=Vn,{freshSnapshot:zg}=yi,{useCallback:Dg,useContext:ch,useEffect:is,useMemo:Og,useRef:Ug,useState:Fg}=me;function Mr(){throw X("This component must be used inside a component.")}const fh=Object.freeze({storeID:uh(),getState:Mr,replaceState:Mr,getGraph:Mr,subscribeToTransactions:Mr,addTransactionMetadata:Mr});let us=!1;function bc(e){if(us)throw X("An atom update was triggered within the execution of a state updater function. State updater functions provided to Recoil must be pure functions.");const t=e.getState();if(t.nextTree===null){ie("recoil_memory_managament_2020")&&ie("recoil_release_on_cascading_update_killswitch_2021")&&t.commitDepth>0&&ah(e);const n=t.currentTree.version,r=Ng();t.nextTree={...t.currentTree,version:r,stateID:r,dirtyAtoms:new Set,transactionMetadata:{}},t.graphsByVersion.set(r,Ig(ve(t.graphsByVersion.get(n))))}}const dh=me.createContext({current:fh}),gi=()=>ch(dh),ph=me.createContext(null);function Bg(){return ch(ph)}function va(e,t,n){const r=Ag(e,n,n.dirtyAtoms);for(const o of r){const l=t.nodeToComponentSubscriptions.get(o);if(l)for(const[i,[u,s]]of l)s(n)}}function hh(e){const t=e.getState(),n=t.currentTree,r=n.dirtyAtoms;if(r.size){for(const[o,l]of t.nodeTransactionSubscriptions)if(r.has(o))for(const[i,u]of l)u(e);for(const[o,l]of t.transactionSubscriptions)l(e);(!sh().early||t.suspendedComponentResolvers.size>0)&&(va(e,t,n),t.suspendedComponentResolvers.forEach(o=>o()),t.suspendedComponentResolvers.clear())}t.queuedComponentCallbacks_DEPRECATED.forEach(o=>o(n)),t.queuedComponentCallbacks_DEPRECATED.splice(0,t.queuedComponentCallbacks_DEPRECATED.length)}function jg(e){const t=e.getState();t.commitDepth++;try{const{nextTree:n}=t;if(n==null)return;t.previousTree=t.currentTree,t.currentTree=n,t.nextTree=null,hh(e),t.previousTree!=null?t.graphsByVersion.delete(t.previousTree.version):ia("Ended batch with no previous state, which is unexpected","recoil"),t.previousTree=null,ie("recoil_memory_managament_2020")&&n==null&&ah(e)}finally{t.commitDepth--}}function Wg({setNotifyBatcherOfChange:e}){const t=gi(),[,n]=Fg([]);return e(()=>n({})),is(()=>(e(()=>n({})),()=>{e(()=>{})}),[e]),is(()=>{_1.enqueueExecution("Batcher",()=>{jg(t.current)})}),null}function Hg(e,t){const n=ih();return t({set:(r,o)=>{const l=n.currentTree,i=Mg(e,l,r.key,o),u=new Set(i.keys()),s=l.nonvalidatedAtoms.clone();for(const a of u)s.delete(a);n.currentTree={...l,dirtyAtoms:kg(l.dirtyAtoms,u),atomValues:Vg(l.atomValues,i),nonvalidatedAtoms:s}},setUnvalidatedAtomValues:r=>{r.forEach((o,l)=>{n.currentTree=Pg(n.currentTree,l,o)})}}),n}function bg(e){const t=zg(e),n=t.getStore_INTERNAL().getState();return t.retain(),n.nodeCleanupFunctions.forEach(r=>r()),n.nodeCleanupFunctions.clear(),n}let Kc=0;function Kg({initializeState_DEPRECATED:e,initializeState:t,store_INTERNAL:n,children:r}){let o;const l=_=>{const S=o.current.graphsByVersion;if(S.has(_))return ve(S.get(_));const R=$g();return S.set(_,R),R},i=(_,S)=>{if(S==null){const{transactionSubscriptions:R}=f.current.getState(),F=Kc++;return R.set(F,_),{release:()=>{R.delete(F)}}}else{const{nodeTransactionSubscriptions:R}=f.current.getState();R.has(S)||R.set(S,new Map);const F=Kc++;return ve(R.get(S)).set(F,_),{release:()=>{const h=R.get(S);h&&(h.delete(F),h.size===0&&R.delete(S))}}}},u=_=>{bc(f.current);for(const S of Object.keys(_))ve(f.current.getState().nextTree).transactionMetadata[S]=_[S]},s=_=>{bc(f.current);const S=ve(o.current.nextTree);let R;try{us=!0,R=_(S)}finally{us=!1}R!==S&&(o.current.nextTree=R,sh().early&&va(f.current,o.current,R),ve(a.current)())},a=Ug(null),d=Dg(_=>{a.current=_},[a]),f=Hc(()=>n??{storeID:uh(),getState:()=>o.current,replaceState:s,getGraph:l,subscribeToTransactions:i,addTransactionMetadata:u});n!=null&&(f.current=n),o=Hc(()=>e!=null?Hg(f.current,e):t!=null?bg(t):ih());const m=Og(()=>ou==null?void 0:ou(o,()=>o.current.currentTree.version),[o]);return is(()=>{const _=f.current;for(const S of new Set(_.getState().knownAtoms))xg(_,S,"get");return()=>{for(const S of _.getState().knownAtoms)Lg(_,S)}},[f]),me.createElement(dh.Provider,{value:f},me.createElement(ph.Provider,{value:m},me.createElement(Wg,{setNotifyBatcherOfChange:d}),r))}function Gg(e){const{override:t,...n}=e,r=gi();return t===!1&&r.current!==fh?e.children:me.createElement(Kg,n)}function Qg(){return gi().current.storeID}var jt={RecoilRoot:Gg,useStoreRef:gi,useRecoilMutableSource:Bg,useRecoilStoreID:Qg,notifyComponents_FOR_TESTING:va,sendEndOfBatchNotifications_FOR_TESTING:hh};function Zg(e,t){if(e===t)return!0;if(e.length!==t.length)return!1;for(let n=0,r=e.length;n{t.current=e}),t.current}var vh=Jg;const{useStoreRef:eS}=jt,{SUSPENSE_TIMEOUT_MS:tS}=Vn,{updateRetainCount:Pr}=Vn,{RetentionZone:nS}=fi,{useEffect:rS,useRef:oS}=me,{isSSR:Gc}=hi;function lS(e){if(ie("recoil_memory_managament_2020"))return iS(e)}function iS(e){const n=(Array.isArray(e)?e:[e]).map(i=>i instanceof nS?i:i.key),r=eS();rS(()=>{if(!ie("recoil_memory_managament_2020"))return;const i=r.current;if(o.current&&!Gc)window.clearTimeout(o.current),o.current=null;else for(const u of n)Pr(i,u,1);return()=>{for(const u of n)Pr(i,u,-1)}},[r,...n]);const o=oS(),l=vh(n);if(!Gc&&(l===void 0||!Yg(l,n))){const i=r.current;for(const u of n)Pr(i,u,1);if(l)for(const u of l)Pr(i,u,-1);o.current&&window.clearTimeout(o.current),o.current=window.setTimeout(()=>{o.current=null;for(const u of n)Pr(i,u,-1)},tS)}}var ma=lS;function uS(){return""}var No=uS;const{batchUpdates:sS}=pi,{DEFAULT_VALUE:mh}=Ye,{currentRendererSupportsUseSyncExternalStore:aS,reactMode:wr,useMutableSource:cS,useSyncExternalStore:fS}=ko,{useRecoilMutableSource:dS,useStoreRef:xt}=jt,{AbstractRecoilValue:ss,getRecoilValueAsLoadable:Lo,setRecoilValue:Fl,setUnvalidatedRecoilValue:pS,subscribeToRecoilValue:pr}=At,{useCallback:Ze,useEffect:hr,useMemo:yh,useRef:qr,useState:ya}=me,{setByAddingToSet:hS}=Op,{isSSR:vS}=hi;function ga(e,t,n){if(e.state==="hasValue")return e.contents;throw e.state==="loading"?new Promise(o=>{const l=n.current.getState().suspendedComponentResolvers;l.add(o),vS&&ae(e.contents)&&e.contents.finally(()=>{l.delete(o)})}):e.state==="hasError"?e.contents:X(`Invalid value of loadable atom "${t.key}"`)}function mS(){const e=No(),t=xt(),[,n]=ya([]),r=qr(new Set);r.current=new Set;const o=qr(new Set),l=qr(new Map),i=Ze(s=>{const a=l.current.get(s);a&&(a.release(),l.current.delete(s))},[l]),u=Ze((s,a)=>{l.current.has(a)&&n([])},[]);return hr(()=>{const s=t.current;Yr(r.current,o.current).forEach(a=>{if(l.current.has(a))return;const d=pr(s,new ss(a),m=>u(m,a),e);l.current.set(a,d),s.getState().nextTree?s.getState().queuedComponentCallbacks_DEPRECATED.push(()=>{u(s.getState(),a)}):u(s.getState(),a)}),Yr(o.current,r.current).forEach(a=>{i(a)}),o.current=r.current}),hr(()=>{const s=l.current;return Yr(r.current,new Set(s.keys())).forEach(a=>{const d=pr(t.current,new ss(a),f=>u(f,a),e);s.set(a,d)}),()=>s.forEach((a,d)=>i(d))},[e,t,i,u]),yh(()=>{function s(S){return R=>{Fl(t.current,S,R)}}function a(S){return()=>Fl(t.current,S,mh)}function d(S){var R;r.current.has(S.key)||(r.current=hS(r.current,S.key));const F=t.current.getState();return Lo(t.current,S,wr().early&&(R=F.nextTree)!==null&&R!==void 0?R:F.currentTree)}function f(S){const R=d(S);return ga(R,S,t)}function m(S){return[f(S),s(S)]}function _(S){return[d(S),s(S)]}return{getRecoilValue:f,getRecoilValueLoadable:d,getRecoilState:m,getRecoilStateLoadable:_,getSetRecoilState:s,getResetRecoilState:a}},[r,t])}const yS={current:0};function gS(e){const t=xt(),n=No(),r=Ze(()=>{var u;const s=t.current,a=s.getState(),d=wr().early&&(u=a.nextTree)!==null&&u!==void 0?u:a.currentTree;return{loadable:Lo(s,e,d),key:e.key}},[t,e]),o=Ze(u=>{let s;return()=>{var a,d;const f=u();return(a=s)!==null&&a!==void 0&&a.loadable.is(f.loadable)&&((d=s)===null||d===void 0?void 0:d.key)===f.key?s:(s=f,f)}},[]),l=yh(()=>o(r),[r,o]),i=Ze(u=>{const s=t.current;return pr(s,e,u,n).release},[t,e,n]);return fS(i,l,l).loadable}function SS(e){const t=xt(),n=Ze(()=>{var a;const d=t.current,f=d.getState(),m=wr().early&&(a=f.nextTree)!==null&&a!==void 0?a:f.currentTree;return Lo(d,e,m)},[t,e]),r=Ze(()=>n(),[n]),o=No(),l=Ze((a,d)=>{const f=t.current;return pr(f,e,()=>{if(!ie("recoil_suppress_rerender_in_callback"))return d();const _=n();s.current.is(_)||d(),s.current=_},o).release},[t,e,o,n]),i=dS();if(i==null)throw X("Recoil hooks must be used in components contained within a component.");const u=cS(i,r,l),s=qr(u);return hr(()=>{s.current=u}),u}function as(e){const t=xt(),n=No(),r=Ze(()=>{var s;const a=t.current,d=a.getState(),f=wr().early&&(s=d.nextTree)!==null&&s!==void 0?s:d.currentTree;return Lo(a,e,f)},[t,e]),o=Ze(()=>({loadable:r(),key:e.key}),[r,e.key]),l=Ze(s=>{const a=o();return s.loadable.is(a.loadable)&&s.key===a.key?s:a},[o]);hr(()=>{const s=pr(t.current,e,a=>{u(l)},n);return u(l),s.release},[n,e,t,l]);const[i,u]=ya(o);return i.key!==e.key?o().loadable:i.loadable}function wS(e){const t=xt(),[,n]=ya([]),r=No(),o=Ze(()=>{var u;const s=t.current,a=s.getState(),d=wr().early&&(u=a.nextTree)!==null&&u!==void 0?u:a.currentTree;return Lo(s,e,d)},[t,e]),l=o(),i=qr(l);return hr(()=>{i.current=l}),hr(()=>{const u=t.current,s=u.getState(),a=pr(u,e,f=>{var m;if(!ie("recoil_suppress_rerender_in_callback"))return n([]);const _=o();(m=i.current)!==null&&m!==void 0&&m.is(_)||n(_),i.current=_},r);if(s.nextTree)u.getState().queuedComponentCallbacks_DEPRECATED.push(()=>{i.current=null,n([])});else{var d;if(!ie("recoil_suppress_rerender_in_callback"))return n([]);const f=o();(d=i.current)!==null&&d!==void 0&&d.is(f)||n(f),i.current=f}return a.release},[r,o,e,t]),l}function Sa(e){return ie("recoil_memory_managament_2020")&&ma(e),{TRANSITION_SUPPORT:as,SYNC_EXTERNAL_STORE:aS()?gS:as,MUTABLE_SOURCE:SS,LEGACY:wS}[wr().mode](e)}function gh(e){const t=xt(),n=Sa(e);return ga(n,e,t)}function Si(e){const t=xt();return Ze(n=>{Fl(t.current,e,n)},[t,e])}function _S(e){const t=xt();return Ze(()=>{Fl(t.current,e,mh)},[t,e])}function RS(e){return[gh(e),Si(e)]}function ES(e){return[Sa(e),Si(e)]}function kS(){const e=xt();return(t,n={})=>{sS(()=>{e.current.addTransactionMetadata(n),t.forEach((r,o)=>pS(e.current,new ss(o),r))})}}function Sh(e){return ie("recoil_memory_managament_2020")&&ma(e),as(e)}function wh(e){const t=xt(),n=Sh(e);return ga(n,e,t)}function TS(e){return[wh(e),Si(e)]}var CS={recoilComponentGetRecoilValueCount_FOR_TESTING:yS,useRecoilInterface:mS,useRecoilState:RS,useRecoilStateLoadable:ES,useRecoilValue:gh,useRecoilValueLoadable:Sa,useResetRecoilState:_S,useSetRecoilState:Si,useSetUnvalidatedAtomValues:kS,useRecoilValueLoadable_TRANSITION_SUPPORT_UNSTABLE:Sh,useRecoilValue_TRANSITION_SUPPORT_UNSTABLE:wh,useRecoilState_TRANSITION_SUPPORT_UNSTABLE:TS};function NS(e,t){const n=new Map;for(const[r,o]of e)t(o,r)&&n.set(r,o);return n}var LS=NS;function AS(e,t){const n=new Set;for(const r of e)t(r)&&n.add(r);return n}var xS=AS;function MS(...e){const t=new Map;for(let n=0;nt.current.subscribeToTransactions(e).release,[e,t])}function Yc(e){const t=e.atomValues.toMap(),n=Ul(LS(t,(r,o)=>{const i=_h(o).persistence_UNSTABLE;return i!=null&&i.type!=="none"&&r.state==="hasValue"}),r=>r.contents);return PS(e.nonvalidatedAtoms.toMap(),n)}function FS(e){_i(wi(t=>{let n=t.getState().previousTree;const r=t.getState().currentTree;n||(n=t.getState().currentTree);const o=Yc(r),l=Yc(n),i=Ul(VS,s=>{var a,d,f,m;return{persistence_UNSTABLE:{type:(a=(d=s.persistence_UNSTABLE)===null||d===void 0?void 0:d.type)!==null&&a!==void 0?a:"none",backButton:(f=(m=s.persistence_UNSTABLE)===null||m===void 0?void 0:m.backButton)!==null&&f!==void 0?f:!1}}}),u=xS(r.dirtyAtoms,s=>o.has(s)||l.has(s));e({atomValues:o,previousAtomValues:l,atomInfo:i,modifiedAtoms:u,transactionMetadata:{...r.transactionMetadata}})},[e]))}function BS(e){_i(wi(t=>{const n=Bl(t,"latest"),r=Bl(t,"previous");e({snapshot:n,previousSnapshot:r})},[e]))}function jS(){const e=wa(),[t,n]=US(()=>Bl(e.current)),r=vh(t),o=Qc(),l=Qc();if(_i(wi(u=>n(Bl(u)),[])),Rh(()=>{const u=t.retain();if(o.current&&!Zc){var s;window.clearTimeout(o.current),o.current=null,(s=l.current)===null||s===void 0||s.call(l),l.current=null}return()=>{window.setTimeout(u,10)}},[t]),r!==t&&!Zc){if(o.current){var i;window.clearTimeout(o.current),o.current=null,(i=l.current)===null||i===void 0||i.call(l),l.current=null}l.current=t.retain(),o.current=window.setTimeout(()=>{var u;o.current=null,(u=l.current)===null||u===void 0||u.call(l),l.current=null},OS)}return t}function Eh(e,t){var n;const r=e.getState(),o=(n=r.nextTree)!==null&&n!==void 0?n:r.currentTree,l=t.getStore_INTERNAL().getState().currentTree;$S(()=>{const i=new Set;for(const a of[o.atomValues.keys(),l.atomValues.keys()])for(const d of a){var u,s;((u=o.atomValues.get(d))===null||u===void 0?void 0:u.contents)!==((s=l.atomValues.get(d))===null||s===void 0?void 0:s.contents)&&_h(d).shouldRestoreFromSnapshots&&i.add(d)}i.forEach(a=>{DS(e,new zS(a),l.atomValues.has(a)?ve(l.atomValues.get(a)):IS)}),e.replaceState(a=>({...a,stateID:t.getID()}))})}function WS(){const e=wa();return wi(t=>Eh(e.current,t),[e])}var kh={useRecoilSnapshot:jS,gotoSnapshot:Eh,useGotoRecoilSnapshot:WS,useRecoilTransactionObserver:BS,useTransactionObservation_DEPRECATED:FS,useTransactionSubscription_DEPRECATED:_i};const{peekNodeInfo:HS}=hn,{useStoreRef:bS}=jt;function KS(){const e=bS();return({key:t})=>HS(e.current,e.current.getState().currentTree,t)}var GS=KS;const{reactMode:QS}=ko,{RecoilRoot:ZS,useStoreRef:YS}=jt,{useMemo:XS}=me;function qS(){QS().mode==="MUTABLE_SOURCE"&&console.warn("Warning: There are known issues using useRecoilBridgeAcrossReactRoots() in recoil_mutable_source rendering mode. Please consider upgrading to recoil_sync_external_store mode.");const e=YS().current;return XS(()=>{function t({children:n}){return me.createElement(ZS,{store_INTERNAL:e},n)}return t},[e])}var JS=qS;const{loadableWithValue:e2}=Eo,{initializeNode:t2}=hn,{DEFAULT_VALUE:n2,getNode:r2}=Ye,{copyTreeState:o2,getRecoilValueAsLoadable:l2,invalidateDownstreams:i2,writeLoadableToTreeState:u2}=At;function Xc(e){return r2(e.key).nodeType==="atom"}class s2{constructor(t,n){Z(this,"_store",void 0),Z(this,"_treeState",void 0),Z(this,"_changes",void 0),Z(this,"get",r=>{if(this._changes.has(r.key))return this._changes.get(r.key);if(!Xc(r))throw X("Reading selectors within atomicUpdate is not supported");const o=l2(this._store,r,this._treeState);if(o.state==="hasValue")return o.contents;throw o.state==="hasError"?o.contents:X(`Expected Recoil atom ${r.key} to have a value, but it is in a loading state.`)}),Z(this,"set",(r,o)=>{if(!Xc(r))throw X("Setting selectors within atomicUpdate is not supported");if(typeof o=="function"){const l=this.get(r);this._changes.set(r.key,o(l))}else t2(this._store,r.key,"set"),this._changes.set(r.key,o)}),Z(this,"reset",r=>{this.set(r,n2)}),this._store=t,this._treeState=n,this._changes=new Map}newTreeState_INTERNAL(){if(this._changes.size===0)return this._treeState;const t=o2(this._treeState);for(const[n,r]of this._changes)u2(t,n,e2(r));return i2(this._store,t),t}}function a2(e){return t=>{e.replaceState(n=>{const r=new s2(e,n);return t(r),r.newTreeState_INTERNAL()})}}var c2={atomicUpdater:a2},f2=c2.atomicUpdater,Th=Object.freeze({__proto__:null,atomicUpdater:f2});function d2(e,t){if(!e)throw new Error(t)}var p2=d2,Fr=p2;const{atomicUpdater:h2}=Th,{batchUpdates:v2}=pi,{DEFAULT_VALUE:m2}=Ye,{useStoreRef:y2}=jt,{refreshRecoilValue:g2,setRecoilValue:qc}=At,{cloneSnapshot:S2}=yi,{gotoSnapshot:w2}=kh,{useCallback:_2}=me;class Ch{}const R2=new Ch;function Nh(e,t,n,r){let o=R2,l;if(v2(()=>{const u="useRecoilCallback() expects a function that returns a function: it accepts a function of the type (RecoilInterface) => (Args) => ReturnType and returns a callback function (Args) => ReturnType, where RecoilInterface is an object {snapshot, set, ...} and Args and ReturnType are the argument and return types of the callback you want to create. Please see the docs at recoiljs.org for details.";if(typeof t!="function")throw X(u);const s=Up({...r??{},set:(d,f)=>qc(e,d,f),reset:d=>qc(e,d,m2),refresh:d=>g2(e,d),gotoSnapshot:d=>w2(e,d),transact_UNSTABLE:d=>h2(e)(d)},{snapshot:()=>{const d=S2(e);return l=d.retain(),d}}),a=t(s);if(typeof a!="function")throw X(u);o=a(...n)}),o instanceof Ch&&Fr(!1),ae(o))o=o.finally(()=>{var u;(u=l)===null||u===void 0||u()});else{var i;(i=l)===null||i===void 0||i()}return o}function E2(e,t){const n=y2();return _2((...r)=>Nh(n.current,e,r),t!=null?[...t,n]:void 0)}var Lh={recoilCallback:Nh,useRecoilCallback:E2};const{useStoreRef:k2}=jt,{refreshRecoilValue:T2}=At,{useCallback:C2}=me;function N2(e){const t=k2();return C2(()=>{const n=t.current;T2(n,e)},[e,t])}var L2=N2;const{atomicUpdater:A2}=Th,{useStoreRef:x2}=jt,{useMemo:M2}=me;function P2(e,t){const n=x2();return M2(()=>(...r)=>{A2(n.current)(l=>{e(l)(...r)})},t!=null?[...t,n]:void 0)}var $2=P2;class I2{constructor(t){Z(this,"value",void 0),this.value=t}}var V2={WrappedValue:I2},z2=V2.WrappedValue,Ah=Object.freeze({__proto__:null,WrappedValue:z2});const{isFastRefreshEnabled:D2}=ko;class Jc extends Error{}class O2{constructor(t){var n,r,o;Z(this,"_name",void 0),Z(this,"_numLeafs",void 0),Z(this,"_root",void 0),Z(this,"_onHit",void 0),Z(this,"_onSet",void 0),Z(this,"_mapNodeValue",void 0),this._name=t==null?void 0:t.name,this._numLeafs=0,this._root=null,this._onHit=(n=t==null?void 0:t.onHit)!==null&&n!==void 0?n:()=>{},this._onSet=(r=t==null?void 0:t.onSet)!==null&&r!==void 0?r:()=>{},this._mapNodeValue=(o=t==null?void 0:t.mapNodeValue)!==null&&o!==void 0?o:l=>l}size(){return this._numLeafs}root(){return this._root}get(t,n){var r;return(r=this.getLeafNode(t,n))===null||r===void 0?void 0:r.value}getLeafNode(t,n){if(this._root==null)return;let r=this._root;for(;r;){if(n==null||n.onNodeVisit(r),r.type==="leaf")return this._onHit(r),r;const o=this._mapNodeValue(t(r.nodeKey));r=r.branches.get(o)}}set(t,n,r){const o=()=>{var l,i,u,s;let a,d;for(const[F,h]of t){var f,m,_;const c=this._root;if((c==null?void 0:c.type)==="leaf")throw this.invalidCacheError();const p=a;if(a=p?p.branches.get(d):c,a=(f=a)!==null&&f!==void 0?f:{type:"branch",nodeKey:F,parent:p,branches:new Map,branchKey:d},a.type!=="branch"||a.nodeKey!==F)throw this.invalidCacheError();p==null||p.branches.set(d,a),r==null||(m=r.onNodeVisit)===null||m===void 0||m.call(r,a),d=this._mapNodeValue(h),this._root=(_=this._root)!==null&&_!==void 0?_:a}const S=a?(l=a)===null||l===void 0?void 0:l.branches.get(d):this._root;if(S!=null&&(S.type!=="leaf"||S.branchKey!==d))throw this.invalidCacheError();const R={type:"leaf",value:n,parent:a,branchKey:d};(i=a)===null||i===void 0||i.branches.set(d,R),this._root=(u=this._root)!==null&&u!==void 0?u:R,this._numLeafs++,this._onSet(R),r==null||(s=r.onNodeVisit)===null||s===void 0||s.call(r,R)};try{o()}catch(l){if(l instanceof Jc)this.clear(),o();else throw l}}delete(t){const n=this.root();if(!n)return!1;if(t===n)return this._root=null,this._numLeafs=0,!0;let r=t.parent,o=t.branchKey;for(;r;){var l;if(r.branches.delete(o),r===n)return r.branches.size===0?(this._root=null,this._numLeafs=0):this._numLeafs--,!0;if(r.branches.size>0)break;o=(l=r)===null||l===void 0?void 0:l.branchKey,r=r.parent}for(;r!==n;r=r.parent)if(r==null)return!1;return this._numLeafs--,!0}clear(){this._numLeafs=0,this._root=null}invalidCacheError(){const t=D2()?"Possible Fast Refresh module reload detected. This may also be caused by an selector returning inconsistent values. Resetting cache.":"Invalid cache values. This happens when selectors do not return consistent values for the same input dependency values. That may also be caused when using Fast Refresh to change a selector implementation. Resetting cache.";throw ia(t+(this._name!=null?` - ${this._name}`:"")),new Jc}}var U2={TreeCache:O2},F2=U2.TreeCache,xh=Object.freeze({__proto__:null,TreeCache:F2});class B2{constructor(t){var n;Z(this,"_maxSize",void 0),Z(this,"_size",void 0),Z(this,"_head",void 0),Z(this,"_tail",void 0),Z(this,"_map",void 0),Z(this,"_keyMapper",void 0),this._maxSize=t.maxSize,this._size=0,this._head=null,this._tail=null,this._map=new Map,this._keyMapper=(n=t.mapKey)!==null&&n!==void 0?n:r=>r}head(){return this._head}tail(){return this._tail}size(){return this._size}maxSize(){return this._maxSize}has(t){return this._map.has(this._keyMapper(t))}get(t){const n=this._keyMapper(t),r=this._map.get(n);if(r)return this.set(t,r.value),r.value}set(t,n){const r=this._keyMapper(t);this._map.get(r)&&this.delete(t);const l=this.head(),i={key:t,right:l,left:null,value:n};l?l.left=i:this._tail=i,this._map.set(r,i),this._head=i,this._size++,this._maybeDeleteLRU()}_maybeDeleteLRU(){this.size()>this.maxSize()&&this.deleteLru()}deleteLru(){const t=this.tail();t&&this.delete(t.key)}delete(t){const n=this._keyMapper(t);if(!this._size||!this._map.has(n))return;const r=ve(this._map.get(n)),o=r.right,l=r.left;o&&(o.left=r.left),l&&(l.right=r.right),r===this.head()&&(this._head=o),r===this.tail()&&(this._tail=l),this._map.delete(n),this._size--}clear(){this._size=0,this._head=null,this._tail=null,this._map=new Map}}var j2={LRUCache:B2},W2=j2.LRUCache,Mh=Object.freeze({__proto__:null,LRUCache:W2});const{LRUCache:H2}=Mh,{TreeCache:b2}=xh;function K2({name:e,maxSize:t,mapNodeValue:n=r=>r}){const r=new H2({maxSize:t}),o=new b2({name:e,mapNodeValue:n,onHit:l=>{r.set(l,!0)},onSet:l=>{const i=r.tail();r.set(l,!0),i&&o.size()>t&&o.delete(i.key)}});return o}var ef=K2;function yt(e,t,n){if(typeof e=="string"&&!e.includes('"')&&!e.includes("\\"))return`"${e}"`;switch(typeof e){case"undefined":return"";case"boolean":return e?"true":"false";case"number":case"symbol":return String(e);case"string":return JSON.stringify(e);case"function":if((t==null?void 0:t.allowFunctions)!==!0)throw X("Attempt to serialize function in a Recoil cache key");return`__FUNCTION(${e.name})__`}if(e===null)return"null";if(typeof e!="object"){var r;return(r=JSON.stringify(e))!==null&&r!==void 0?r:""}if(ae(e))return"__PROMISE__";if(Array.isArray(e))return`[${e.map((o,l)=>yt(o,t,l.toString()))}]`;if(typeof e.toJSON=="function")return yt(e.toJSON(n),t,n);if(e instanceof Map){const o={};for(const[l,i]of e)o[typeof l=="string"?l:yt(l,t)]=i;return yt(o,t,n)}return e instanceof Set?yt(Array.from(e).sort((o,l)=>yt(o,t).localeCompare(yt(l,t))),t,n):Symbol!==void 0&&e[Symbol.iterator]!=null&&typeof e[Symbol.iterator]=="function"?yt(Array.from(e),t,n):`{${Object.keys(e).filter(o=>e[o]!==void 0).sort().map(o=>`${yt(o,t)}:${yt(e[o],t,o)}`).join(",")}}`}function G2(e,t={allowFunctions:!1}){return yt(e,t)}var Ri=G2;const{TreeCache:Q2}=xh,Yo={equality:"reference",eviction:"keep-all",maxSize:1/0};function Z2({equality:e=Yo.equality,eviction:t=Yo.eviction,maxSize:n=Yo.maxSize}=Yo,r){const o=Y2(e);return X2(t,n,o,r)}function Y2(e){switch(e){case"reference":return t=>t;case"value":return t=>Ri(t)}throw X(`Unrecognized equality policy ${e}`)}function X2(e,t,n,r){switch(e){case"keep-all":return new Q2({name:r,mapNodeValue:n});case"lru":return ef({name:r,maxSize:ve(t),mapNodeValue:n});case"most-recent":return ef({name:r,maxSize:1,mapNodeValue:n})}throw X(`Unrecognized eviction policy ${e}`)}var q2=Z2;function J2(e){return()=>null}var ew={startPerfBlock:J2};const{isLoadable:tw,loadableWithError:Xo,loadableWithPromise:nw,loadableWithValue:lu}=Eo,{WrappedValue:Ph}=Ah,{getNodeLoadable:qo,peekNodeLoadable:rw,setNodeValue:ow}=hn,{saveDepsToStore:lw}=To,{DEFAULT_VALUE:iw,getConfigDeletionHandler:uw,getNode:sw,registerNode:tf}=Ye,{isRecoilValue:aw}=dr,{markRecoilValueModified:nf}=At,{retainedByOptionWithDefault:cw}=Vn,{recoilCallback:fw}=Lh,{startPerfBlock:dw}=ew;class $h{}const $r=new $h,Ir=[],Jo=new Map,pw=(()=>{let e=0;return()=>e++})();function Ih(e){let t=null;const{key:n,get:r,cachePolicy_UNSTABLE:o}=e,l=e.set!=null?e.set:void 0,i=new Set,u=q2(o??{equality:"reference",eviction:"keep-all"},n),s=cw(e.retainedBy_UNSTABLE),a=new Map;let d=0;function f(){return!ie("recoil_memory_managament_2020")||d>0}function m(y){return y.getState().knownSelectors.add(n),d++,()=>{d--}}function _(){return uw(n)!==void 0&&!f()}function S(y,A,x,G,z){Ie(A,G,z),R(y,x)}function R(y,A){$e(y,A)&&oe(y),h(A,!0)}function F(y,A){$e(y,A)&&(ve(U(y)).stateVersions.clear(),h(A,!1))}function h(y,A){const x=Jo.get(y);if(x!=null){for(const G of x)nf(G,ve(t));A&&Jo.delete(y)}}function c(y,A){let x=Jo.get(A);x==null&&Jo.set(A,x=new Set),x.add(y)}function p(y,A,x,G,z,Y){return A.then(J=>{if(!f())throw oe(y),$r;const W=lu(J);return S(y,x,z,W,G),J}).catch(J=>{if(!f())throw oe(y),$r;if(ae(J))return w(y,J,x,G,z,Y);const W=Xo(J);throw S(y,x,z,W,G),J})}function w(y,A,x,G,z,Y){return A.then(J=>{if(!f())throw oe(y),$r;Y.loadingDepKey!=null&&Y.loadingDepPromise===A?x.atomValues.set(Y.loadingDepKey,lu(J)):y.getState().knownSelectors.forEach(le=>{x.atomValues.delete(le)});const W=N(y,x);if(W&&W.state!=="loading"){if(($e(y,z)||U(y)==null)&&R(y,z),W.state==="hasValue")return W.contents;throw W.contents}if(!$e(y,z)){const le=te(y,x);if(le!=null)return le.loadingLoadable.contents}const[de,ke]=L(y,x,z);if(de.state!=="loading"&&S(y,x,z,de,ke),de.state==="hasError")throw de.contents;return de.contents}).catch(J=>{if(J instanceof $h)throw $r;if(!f())throw oe(y),$r;const W=Xo(J);throw S(y,x,z,W,G),J})}function E(y,A,x,G){var z,Y,J,W;if($e(y,G)||A.version===((z=y.getState())===null||z===void 0||(Y=z.currentTree)===null||Y===void 0?void 0:Y.version)||A.version===((J=y.getState())===null||J===void 0||(W=J.nextTree)===null||W===void 0?void 0:W.version)){var de,ke,le;lw(n,x,y,(de=(ke=y.getState())===null||ke===void 0||(le=ke.nextTree)===null||le===void 0?void 0:le.version)!==null&&de!==void 0?de:y.getState().currentTree.version)}for(const ye of x)i.add(ye)}function L(y,A,x){const G=dw(n);let z=!0,Y=!0;const J=()=>{G(),Y=!1};let W,de=!1,ke;const le={loadingDepKey:null,loadingDepPromise:null},ye=new Map;function ht({key:it}){const qe=qo(y,A,it);switch(ye.set(it,qe),z||(E(y,A,new Set(ye.keys()),x),F(y,x)),qe.state){case"hasValue":return qe.contents;case"hasError":throw qe.contents;case"loading":throw le.loadingDepKey=it,le.loadingDepPromise=qe.contents,qe.contents}throw X("Invalid Loadable state")}const mn=it=>(...qe)=>{if(Y)throw X("Callbacks from getCallback() should only be called asynchronously after the selector is evalutated. It can be used for selectors to return objects with callbacks that can work with Recoil state without a subscription.");return t==null&&Fr(!1),fw(y,it,qe,{node:t})};try{W=r({get:ht,getCallback:mn}),W=aw(W)?ht(W):W,tw(W)&&(W.state==="hasError"&&(de=!0),W=W.contents),ae(W)?W=p(y,W,A,ye,x,le).finally(J):J(),W=W instanceof Ph?W.value:W}catch(it){W=it,ae(W)?W=w(y,W,A,ye,x,le).finally(J):(de=!0,J())}return de?ke=Xo(W):ae(W)?ke=nw(W):ke=lu(W),z=!1,lt(y,x,ye),E(y,A,new Set(ye.keys()),x),[ke,ye]}function N(y,A){let x=A.atomValues.get(n);if(x!=null)return x;const G=new Set;try{x=u.get(Y=>(typeof Y!="string"&&Fr(!1),qo(y,A,Y).contents),{onNodeVisit:Y=>{Y.type==="branch"&&Y.nodeKey!==n&&G.add(Y.nodeKey)}})}catch(Y){throw X(`Problem with cache lookup for selector "${n}": ${Y.message}`)}if(x){var z;A.atomValues.set(n,x),E(y,A,G,(z=U(y))===null||z===void 0?void 0:z.executionID)}return x}function V(y,A){const x=N(y,A);if(x!=null)return oe(y),x;const G=te(y,A);if(G!=null){var z;return((z=G.loadingLoadable)===null||z===void 0?void 0:z.state)==="loading"&&c(y,G.executionID),G.loadingLoadable}const Y=pw(),[J,W]=L(y,A,Y);return J.state==="loading"?(fe(y,Y,J,W,A),c(y,Y)):(oe(y),Ie(A,J,W)),J}function te(y,A){const x=nh([a.has(y)?[ve(a.get(y))]:[],ai(fa(a,([z])=>z!==y),([,z])=>z)]);function G(z){for(const[Y,J]of z)if(!qo(y,A,Y).is(J))return!0;return!1}for(const z of x){if(z.stateVersions.get(A.version)||!G(z.depValuesDiscoveredSoFarDuringAsyncWork))return z.stateVersions.set(A.version,!0),z;z.stateVersions.set(A.version,!1)}}function U(y){return a.get(y)}function fe(y,A,x,G,z){a.set(y,{depValuesDiscoveredSoFarDuringAsyncWork:G,executionID:A,loadingLoadable:x,stateVersions:new Map([[z.version,!0]])})}function lt(y,A,x){if($e(y,A)){const G=U(y);G!=null&&(G.depValuesDiscoveredSoFarDuringAsyncWork=x)}}function oe(y){a.delete(y)}function $e(y,A){var x;return A===((x=U(y))===null||x===void 0?void 0:x.executionID)}function Mt(y){return Array.from(y.entries()).map(([A,x])=>[A,x.contents])}function Ie(y,A,x){y.atomValues.set(n,A);try{u.set(Mt(x),A)}catch(G){throw X(`Problem with setting cache for selector "${n}": ${G.message}`)}}function Xe(y){if(Ir.includes(n)){const A=`Recoil selector has circular dependencies: ${Ir.slice(Ir.indexOf(n)).join(" → ")}`;return Xo(X(A))}Ir.push(n);try{return y()}finally{Ir.pop()}}function $(y,A){const x=A.atomValues.get(n);return x??u.get(G=>{var z;return typeof G!="string"&&Fr(!1),(z=rw(y,A,G))===null||z===void 0?void 0:z.contents})}function H(y,A){return Xe(()=>V(y,A))}function I(y){y.atomValues.delete(n)}function j(y,A){t==null&&Fr(!1);for(const G of i){var x;const z=sw(G);(x=z.clearCache)===null||x===void 0||x.call(z,y,A)}i.clear(),I(A),u.clear(),nf(y,t)}return l!=null?t=tf({key:n,nodeType:"selector",peek:$,get:H,set:(A,x,G)=>{let z=!1;const Y=new Map;function J({key:le}){if(z)throw X("Recoil: Async selector sets are not currently supported.");const ye=qo(A,x,le);if(ye.state==="hasValue")return ye.contents;if(ye.state==="loading"){const ht=`Getting value of asynchronous atom or selector "${le}" in a pending state while setting selector "${n}" is not yet supported.`;throw X(ht)}else throw ye.contents}function W(le,ye){if(z)throw X("Recoil: Async selector sets are not currently supported.");const ht=typeof ye=="function"?ye(J(le)):ye;ow(A,x,le.key,ht).forEach((it,qe)=>Y.set(qe,it))}function de(le){W(le,iw)}const ke=l({set:W,get:J,reset:de},G);if(ke!==void 0)throw ae(ke)?X("Recoil: Async selector sets are not currently supported."):X("Recoil: selector set should be a void function.");return z=!0,Y},init:m,invalidate:I,clearCache:j,shouldDeleteConfigOnRelease:_,dangerouslyAllowMutability:e.dangerouslyAllowMutability,shouldRestoreFromSnapshots:!1,retainedBy:s}):t=tf({key:n,nodeType:"selector",peek:$,get:H,init:m,invalidate:I,clearCache:j,shouldDeleteConfigOnRelease:_,dangerouslyAllowMutability:e.dangerouslyAllowMutability,shouldRestoreFromSnapshots:!1,retainedBy:s})}Ih.value=e=>new Ph(e);var vr=Ih;const{isLoadable:hw,loadableWithError:iu,loadableWithPromise:uu,loadableWithValue:On}=Eo,{WrappedValue:Vh}=Ah,{peekNodeInfo:vw}=hn,{DEFAULT_VALUE:Sn,DefaultValue:Kt,getConfigDeletionHandler:zh,registerNode:mw,setConfigDeletionHandler:yw}=Ye,{isRecoilValue:gw}=dr,{getRecoilValueAsLoadable:Sw,markRecoilValueModified:ww,setRecoilValue:rf,setRecoilValueLoadable:_w}=At,{retainedByOptionWithDefault:Rw}=Vn,Vr=e=>e instanceof Vh?e.value:e;function Ew(e){const{key:t,persistence_UNSTABLE:n}=e,r=Rw(e.retainedBy_UNSTABLE);let o=0;function l(c){return uu(c.then(p=>(i=On(p),p)).catch(p=>{throw i=iu(p),p}))}let i=ae(e.default)?l(e.default):hw(e.default)?e.default.state==="loading"?l(e.default.contents):e.default:On(Vr(e.default));i.contents;let u;const s=new Map;function a(c){return c}function d(c,p){const w=p.then(E=>{var L,N;return((N=((L=c.getState().nextTree)!==null&&L!==void 0?L:c.getState().currentTree).atomValues.get(t))===null||N===void 0?void 0:N.contents)===w&&rf(c,h,E),E}).catch(E=>{var L,N;throw((N=((L=c.getState().nextTree)!==null&&L!==void 0?L:c.getState().currentTree).atomValues.get(t))===null||N===void 0?void 0:N.contents)===w&&_w(c,h,iu(E)),E});return w}function f(c,p,w){var E;o++;const L=()=>{var U;o--,(U=s.get(c))===null||U===void 0||U.forEach(fe=>fe()),s.delete(c)};if(c.getState().knownAtoms.add(t),i.state==="loading"){const U=()=>{var fe;((fe=c.getState().nextTree)!==null&&fe!==void 0?fe:c.getState().currentTree).atomValues.has(t)||ww(c,h)};i.contents.finally(U)}const N=(E=e.effects)!==null&&E!==void 0?E:e.effects_UNSTABLE;if(N!=null){let U=function(I){if($e&&I.key===t){const j=oe;return j instanceof Kt?m(c,p):ae(j)?uu(j.then(y=>y instanceof Kt?i.toPromise():y)):On(j)}return Sw(c,I)},fe=function(I){return U(I).toPromise()},lt=function(I){var j;const y=vw(c,(j=c.getState().nextTree)!==null&&j!==void 0?j:c.getState().currentTree,I.key);return $e&&I.key===t&&!(oe instanceof Kt)?{...y,isSet:!0,loadable:U(I)}:y},oe=Sn,$e=!0,Mt=!1,Ie=null;const Xe=I=>j=>{if($e){const y=U(h),A=y.state==="hasValue"?y.contents:Sn;oe=typeof j=="function"?j(A):j,ae(oe)&&(oe=oe.then(x=>(Ie={effect:I,value:x},x)))}else{if(ae(j))throw X("Setting atoms to async values is not implemented.");typeof j!="function"&&(Ie={effect:I,value:Vr(j)}),rf(c,h,typeof j=="function"?y=>{const A=Vr(j(y));return Ie={effect:I,value:A},A}:Vr(j))}},$=I=>()=>Xe(I)(Sn),H=I=>j=>{var y;const{release:A}=c.subscribeToTransactions(x=>{var G;let{currentTree:z,previousTree:Y}=x.getState();Y||(Y=z);const J=(G=z.atomValues.get(t))!==null&&G!==void 0?G:i;if(J.state==="hasValue"){var W,de,ke,le;const ye=J.contents,ht=(W=Y.atomValues.get(t))!==null&&W!==void 0?W:i,mn=ht.state==="hasValue"?ht.contents:Sn;((de=Ie)===null||de===void 0?void 0:de.effect)!==I||((ke=Ie)===null||ke===void 0?void 0:ke.value)!==ye?j(ye,mn,!z.atomValues.has(t)):((le=Ie)===null||le===void 0?void 0:le.effect)===I&&(Ie=null)}},t);s.set(c,[...(y=s.get(c))!==null&&y!==void 0?y:[],A])};for(const I of N)try{const j=I({node:h,storeID:c.storeID,parentStoreID_UNSTABLE:c.parentStoreID,trigger:w,setSelf:Xe(I),resetSelf:$(I),onSet:H(I),getPromise:fe,getLoadable:U,getInfo_UNSTABLE:lt});if(j!=null){var V;s.set(c,[...(V=s.get(c))!==null&&V!==void 0?V:[],j])}}catch(j){oe=j,Mt=!0}if($e=!1,!(oe instanceof Kt)){var te;const I=Mt?iu(oe):ae(oe)?uu(d(c,oe)):On(Vr(oe));I.contents,p.atomValues.set(t,I),(te=c.getState().nextTree)===null||te===void 0||te.atomValues.set(t,I)}}return L}function m(c,p){var w,E;return(w=(E=p.atomValues.get(t))!==null&&E!==void 0?E:u)!==null&&w!==void 0?w:i}function _(c,p){if(p.atomValues.has(t))return ve(p.atomValues.get(t));if(p.nonvalidatedAtoms.has(t)){if(u!=null)return u;if(n==null)return i;const w=p.nonvalidatedAtoms.get(t),E=n.validator(w,Sn);return u=E instanceof Kt?i:On(E),u}else return i}function S(){u=void 0}function R(c,p,w){if(p.atomValues.has(t)){const E=ve(p.atomValues.get(t));if(E.state==="hasValue"&&w===E.contents)return new Map}else if(!p.nonvalidatedAtoms.has(t)&&w instanceof Kt)return new Map;return u=void 0,new Map().set(t,On(w))}function F(){return zh(t)!==void 0&&o<=0}const h=mw({key:t,nodeType:"atom",peek:m,get:_,set:R,init:f,invalidate:S,shouldDeleteConfigOnRelease:F,dangerouslyAllowMutability:e.dangerouslyAllowMutability,persistence_UNSTABLE:e.persistence_UNSTABLE?{type:e.persistence_UNSTABLE.type,backButton:e.persistence_UNSTABLE.backButton}:void 0,shouldRestoreFromSnapshots:!0,retainedBy:r});return h}function _a(e){const{...t}=e,n="default"in e?e.default:new Promise(()=>{});return gw(n)?kw({...t,default:n}):Ew({...t,default:n})}function kw(e){const t=_a({...e,default:Sn,persistence_UNSTABLE:e.persistence_UNSTABLE===void 0?void 0:{...e.persistence_UNSTABLE,validator:r=>r instanceof Kt?r:ve(e.persistence_UNSTABLE).validator(r,Sn)},effects:e.effects,effects_UNSTABLE:e.effects_UNSTABLE}),n=vr({key:`${e.key}__withFallback`,get:({get:r})=>{const o=r(t);return o instanceof Kt?e.default:o},set:({set:r},o)=>r(t,o),cachePolicy_UNSTABLE:{eviction:"most-recent"},dangerouslyAllowMutability:e.dangerouslyAllowMutability});return yw(n.key,zh(e.key)),n}_a.value=e=>new Vh(e);var Dh=_a;class Tw{constructor(t){var n;Z(this,"_map",void 0),Z(this,"_keyMapper",void 0),this._map=new Map,this._keyMapper=(n=t==null?void 0:t.mapKey)!==null&&n!==void 0?n:r=>r}size(){return this._map.size}has(t){return this._map.has(this._keyMapper(t))}get(t){return this._map.get(this._keyMapper(t))}set(t,n){this._map.set(this._keyMapper(t),n)}delete(t){this._map.delete(this._keyMapper(t))}clear(){this._map.clear()}}var Cw={MapCache:Tw},Nw=Cw.MapCache,Lw=Object.freeze({__proto__:null,MapCache:Nw});const{LRUCache:of}=Mh,{MapCache:Aw}=Lw,el={equality:"reference",eviction:"none",maxSize:1/0};function xw({equality:e=el.equality,eviction:t=el.eviction,maxSize:n=el.maxSize}=el){const r=Mw(e);return Pw(t,n,r)}function Mw(e){switch(e){case"reference":return t=>t;case"value":return t=>Ri(t)}throw X(`Unrecognized equality policy ${e}`)}function Pw(e,t,n){switch(e){case"keep-all":return new Aw({mapKey:n});case"lru":return new of({mapKey:n,maxSize:ve(t)});case"most-recent":return new of({mapKey:n,maxSize:1})}throw X(`Unrecognized eviction policy ${e}`)}var Oh=xw;const{setConfigDeletionHandler:$w}=Ye;function Iw(e){var t,n;const r=Oh({equality:(t=(n=e.cachePolicyForParams_UNSTABLE)===null||n===void 0?void 0:n.equality)!==null&&t!==void 0?t:"value",eviction:"keep-all"});return o=>{var l,i;const u=r.get(o);if(u!=null)return u;const{cachePolicyForParams_UNSTABLE:s,...a}=e,d="default"in e?e.default:new Promise(()=>{}),f=Dh({...a,key:`${e.key}__${(l=Ri(o))!==null&&l!==void 0?l:"void"}`,default:typeof d=="function"?d(o):d,retainedBy_UNSTABLE:typeof e.retainedBy_UNSTABLE=="function"?e.retainedBy_UNSTABLE(o):e.retainedBy_UNSTABLE,effects:typeof e.effects=="function"?e.effects(o):typeof e.effects_UNSTABLE=="function"?e.effects_UNSTABLE(o):(i=e.effects)!==null&&i!==void 0?i:e.effects_UNSTABLE});return r.set(o,f),$w(f.key,()=>{r.delete(o)}),f}}var Vw=Iw;const{setConfigDeletionHandler:zw}=Ye;let Dw=0;function Ow(e){var t,n;const r=Oh({equality:(t=(n=e.cachePolicyForParams_UNSTABLE)===null||n===void 0?void 0:n.equality)!==null&&t!==void 0?t:"value",eviction:"keep-all"});return o=>{var l;let i;try{i=r.get(o)}catch(m){throw X(`Problem with cache lookup for selector ${e.key}: ${m.message}`)}if(i!=null)return i;const u=`${e.key}__selectorFamily/${(l=Ri(o,{allowFunctions:!0}))!==null&&l!==void 0?l:"void"}/${Dw++}`,s=m=>e.get(o)(m),a=e.cachePolicy_UNSTABLE,d=typeof e.retainedBy_UNSTABLE=="function"?e.retainedBy_UNSTABLE(o):e.retainedBy_UNSTABLE;let f;if(e.set!=null){const m=e.set;f=vr({key:u,get:s,set:(S,R)=>m(o)(S,R),cachePolicy_UNSTABLE:a,dangerouslyAllowMutability:e.dangerouslyAllowMutability,retainedBy_UNSTABLE:d})}else f=vr({key:u,get:s,cachePolicy_UNSTABLE:a,dangerouslyAllowMutability:e.dangerouslyAllowMutability,retainedBy_UNSTABLE:d});return r.set(o,f),zw(f.key,()=>{r.delete(o)}),f}}var vn=Ow;const Uw=vn({key:"__constant",get:e=>()=>e,cachePolicyForParams_UNSTABLE:{equality:"reference"}});function Fw(e){return Uw(e)}var Bw=Fw;const jw=vn({key:"__error",get:e=>()=>{throw X(e)},cachePolicyForParams_UNSTABLE:{equality:"reference"}});function Ww(e){return jw(e)}var Hw=Ww;function bw(e){return e}var Kw=bw;const{loadableWithError:Uh,loadableWithPromise:Fh,loadableWithValue:Bh}=Eo;function Ei(e,t){const n=Array(t.length).fill(void 0),r=Array(t.length).fill(void 0);for(const[o,l]of t.entries())try{n[o]=e(l)}catch(i){r[o]=i}return[n,r]}function Gw(e){return e!=null&&!ae(e)}function ki(e){return Array.isArray(e)?e:Object.getOwnPropertyNames(e).map(t=>e[t])}function cs(e,t){return Array.isArray(e)?t:Object.getOwnPropertyNames(e).reduce((n,r,o)=>({...n,[r]:t[o]}),{})}function rr(e,t,n){const r=n.map((o,l)=>o==null?Bh(t[l]):ae(o)?Fh(o):Uh(o));return cs(e,r)}function Qw(e,t){return t.map((n,r)=>n===void 0?e[r]:n)}const Zw=vn({key:"__waitForNone",get:e=>({get:t})=>{const n=ki(e),[r,o]=Ei(t,n);return rr(e,r,o)},dangerouslyAllowMutability:!0}),Yw=vn({key:"__waitForAny",get:e=>({get:t})=>{const n=ki(e),[r,o]=Ei(t,n);return o.some(l=>!ae(l))?rr(e,r,o):new Promise(l=>{for(const[i,u]of o.entries())ae(u)&&u.then(s=>{r[i]=s,o[i]=void 0,l(rr(e,r,o))}).catch(s=>{o[i]=s,l(rr(e,r,o))})})},dangerouslyAllowMutability:!0}),Xw=vn({key:"__waitForAll",get:e=>({get:t})=>{const n=ki(e),[r,o]=Ei(t,n);if(o.every(i=>i==null))return cs(e,r);const l=o.find(Gw);if(l!=null)throw l;return Promise.all(o).then(i=>cs(e,Qw(r,i)))},dangerouslyAllowMutability:!0}),qw=vn({key:"__waitForAllSettled",get:e=>({get:t})=>{const n=ki(e),[r,o]=Ei(t,n);return o.every(l=>!ae(l))?rr(e,r,o):Promise.all(o.map((l,i)=>ae(l)?l.then(u=>{r[i]=u,o[i]=void 0}).catch(u=>{r[i]=void 0,o[i]=u}):null)).then(()=>rr(e,r,o))},dangerouslyAllowMutability:!0}),Jw=vn({key:"__noWait",get:e=>({get:t})=>{try{return vr.value(Bh(t(e)))}catch(n){return vr.value(ae(n)?Fh(n):Uh(n))}},dangerouslyAllowMutability:!0});var e_={waitForNone:Zw,waitForAny:Yw,waitForAll:Xw,waitForAllSettled:qw,noWait:Jw};const{RecoilLoadable:t_}=Eo,{DefaultValue:n_}=Ye,{RecoilRoot:r_,useRecoilStoreID:o_}=jt,{isRecoilValue:l_}=dr,{retentionZone:i_}=fi,{freshSnapshot:u_}=yi,{useRecoilState:s_,useRecoilState_TRANSITION_SUPPORT_UNSTABLE:a_,useRecoilStateLoadable:c_,useRecoilValue:f_,useRecoilValue_TRANSITION_SUPPORT_UNSTABLE:d_,useRecoilValueLoadable:p_,useRecoilValueLoadable_TRANSITION_SUPPORT_UNSTABLE:h_,useResetRecoilState:v_,useSetRecoilState:m_}=CS,{useGotoRecoilSnapshot:y_,useRecoilSnapshot:g_,useRecoilTransactionObserver:S_}=kh,{useRecoilCallback:w_}=Lh,{noWait:__,waitForAll:R_,waitForAllSettled:E_,waitForAny:k_,waitForNone:T_}=e_;var Ao={DefaultValue:n_,isRecoilValue:l_,RecoilLoadable:t_,RecoilEnv:Sr,RecoilRoot:r_,useRecoilStoreID:o_,useRecoilBridgeAcrossReactRoots_UNSTABLE:JS,atom:Dh,selector:vr,atomFamily:Vw,selectorFamily:vn,constSelector:Bw,errorSelector:Hw,readOnlySelector:Kw,noWait:__,waitForNone:T_,waitForAny:k_,waitForAll:R_,waitForAllSettled:E_,useRecoilValue:f_,useRecoilValueLoadable:p_,useRecoilState:s_,useRecoilStateLoadable:c_,useSetRecoilState:m_,useResetRecoilState:v_,useGetRecoilValueInfo_UNSTABLE:GS,useRecoilRefresher_UNSTABLE:L2,useRecoilValueLoadable_TRANSITION_SUPPORT_UNSTABLE:h_,useRecoilValue_TRANSITION_SUPPORT_UNSTABLE:d_,useRecoilState_TRANSITION_SUPPORT_UNSTABLE:a_,useRecoilCallback:w_,useRecoilTransaction_UNSTABLE:$2,useGotoRecoilSnapshot:y_,useRecoilSnapshot:g_,useRecoilTransactionObserver_UNSTABLE:S_,snapshot_UNSTABLE:u_,useRetain:ma,retentionZone:i_},C_=Ao.RecoilRoot,xo=Ao.atom,N_=Ao.selector,L_=Ao.useRecoilValue,Mo=Ao.useRecoilState;function jh(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t'),!0):t?e.some(function(n){return t.includes(n)})||e.includes("*"):!0}var z_=function(t,n,r){r===void 0&&(r=!1);var o=n.alt,l=n.meta,i=n.mod,u=n.shift,s=n.ctrl,a=n.keys,d=t.key,f=t.code,m=t.ctrlKey,_=t.metaKey,S=t.shiftKey,R=t.altKey,F=Xt(f),h=d.toLowerCase();if(!(a!=null&&a.includes(F))&&!(a!=null&&a.includes(h))&&!["ctrl","control","unknown","meta","alt","shift","os"].includes(F))return!1;if(!r){if(o===!R&&h!=="alt"||u===!S&&h!=="shift")return!1;if(i){if(!_&&!m)return!1}else if(l===!_&&h!=="meta"&&h!=="os"||s===!m&&h!=="ctrl"&&h!=="control")return!1}return a&&a.length===1&&(a.includes(h)||a.includes(F))?!0:a?M_(a):!a},D_=C.createContext(void 0),O_=function(){return C.useContext(D_)};function Gh(e,t){return e&&t&&typeof e=="object"&&typeof t=="object"?Object.keys(e).length===Object.keys(t).length&&Object.keys(e).reduce(function(n,r){return n&&Gh(e[r],t[r])},!0):e===t}var U_=C.createContext({hotkeys:[],enabledScopes:[],toggleScope:function(){},enableScope:function(){},disableScope:function(){}}),F_=function(){return C.useContext(U_)};function B_(e){var t=C.useRef(void 0);return Gh(t.current,e)||(t.current=e),t.current}var lf=function(t){t.stopPropagation(),t.preventDefault(),t.stopImmediatePropagation()},j_=typeof window<"u"?C.useLayoutEffect:C.useEffect;function cn(e,t,n,r){var o=C.useRef(null),l=C.useRef(!1),i=n instanceof Array?r instanceof Array?void 0:r:n,u=Ra(e)?e.join(i==null?void 0:i.splitKey):e,s=n instanceof Array?n:r instanceof Array?r:void 0,a=C.useCallback(t,s??[]),d=C.useRef(a);s?d.current=a:d.current=t;var f=B_(i),m=F_(),_=m.enabledScopes,S=O_();return j_(function(){if(!((f==null?void 0:f.enabled)===!1||!V_(_,f==null?void 0:f.scopes))){var R=function(w,E){var L;if(E===void 0&&(E=!1),!(I_(w)&&!Kh(w,f==null?void 0:f.enableOnFormTags))){if(o.current!==null){var N=o.current.getRootNode();if((N instanceof Document||N instanceof ShadowRoot)&&N.activeElement!==o.current&&!o.current.contains(N.activeElement)){lf(w);return}}(L=w.target)!=null&&L.isContentEditable&&!(f!=null&&f.enableOnContentEditable)||su(u,f==null?void 0:f.splitKey).forEach(function(V){var te,U=au(V,f==null?void 0:f.combinationKey);if(z_(w,U,f==null?void 0:f.ignoreModifiers)||(te=U.keys)!=null&&te.includes("*")){if(f!=null&&f.ignoreEventWhen!=null&&f.ignoreEventWhen(w)||E&&l.current)return;if(P_(w,U,f==null?void 0:f.preventDefault),!$_(w,U,f==null?void 0:f.enabled)){lf(w);return}d.current(w,U),E||(l.current=!0)}})}},F=function(w){w.key!==void 0&&(Hh(Xt(w.code)),((f==null?void 0:f.keydown)===void 0&&(f==null?void 0:f.keyup)!==!0||f!=null&&f.keydown)&&R(w))},h=function(w){w.key!==void 0&&(bh(Xt(w.code)),l.current=!1,f!=null&&f.keyup&&R(w,!0))},c=o.current||(i==null?void 0:i.document)||document;return c.addEventListener("keyup",h),c.addEventListener("keydown",F),S&&su(u,f==null?void 0:f.splitKey).forEach(function(p){return S.addHotkey(au(p,f==null?void 0:f.combinationKey,f==null?void 0:f.description))}),function(){c.removeEventListener("keyup",h),c.removeEventListener("keydown",F),S&&su(u,f==null?void 0:f.splitKey).forEach(function(p){return S.removeHotkey(au(p,f==null?void 0:f.combinationKey,f==null?void 0:f.description))})}}},[u,f,_]),o}const W_=xo({key:"open",default:!1}),H_=()=>Mo(W_),b_=xo({key:"context",default:"ACTIONS"}),Ea=()=>Mo(b_);function K_(e){const t=C.useRef();return C.useEffect(()=>{const n=r=>{t.current&&!t.current.contains(r.target)&&e()};return document.addEventListener("click",n,!0),()=>{document.removeEventListener("click",n,!0)}},[t]),t}const Qh=xo({key:"query",default:""}),Zh=()=>Mo(Qh);function Yh(){let e="/";return window.palette&&window.palette.baseUrl&&(e=`${window.palette.baseUrl}/`,e=e.replace(/\/+$/,"/")),e}const Xh=xo({key:"unfilteredActionsState",default:[]}),G_=N_({key:"actionsState",get:({get:e})=>{const t=e(Qh);return e(Xh).filter(r=>r.name.toLowerCase().includes(t.toLowerCase())||r.subtitle.toLowerCase().includes(t.toLowerCase()))}});function Q_(){const[e,t]=Mo(Xh),n=L_(G_);async function r(){const o=Yh(),i=await(await fetch(`${o}actions/palette/actions`)).json();t(i)}return{getActions:r,actions:n}}const Z_=xo({key:"focus",default:0});function ka(e){const[t,n]=Mo(Z_);C.useEffect(()=>{n(0)},[e]);async function r(o,l){l.length!==0&&(o==="up"&&t===0||o==="down"&&t===l.length-1||(o==="up"&&n(i=>i-1),o==="down"&&n(i=>i+1)))}return{setFocus:n,moveFocus:r,focus:t}}function Y_({title:e,titleId:t,...n},r){return C.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":t},n),e?C.createElement("title",{id:t},e):null,C.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M6 13.5V3.75m0 9.75a1.5 1.5 0 0 1 0 3m0-3a1.5 1.5 0 0 0 0 3m0 3.75V16.5m12-3V3.75m0 9.75a1.5 1.5 0 0 1 0 3m0-3a1.5 1.5 0 0 0 0 3m0 3.75V16.5m-6-9V3.75m0 3.75a1.5 1.5 0 0 1 0 3m0-3a1.5 1.5 0 0 0 0 3m0 9.75V10.5"}))}const X_=C.forwardRef(Y_),q_=X_;function J_({title:e,titleId:t,...n},r){return C.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":t},n),e?C.createElement("title",{id:t},e):null,C.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M15.75 9V5.25A2.25 2.25 0 0 0 13.5 3h-6a2.25 2.25 0 0 0-2.25 2.25v13.5A2.25 2.25 0 0 0 7.5 21h6a2.25 2.25 0 0 0 2.25-2.25V15M12 9l-3 3m0 0 3 3m-3-3h12.75"}))}const eR=C.forwardRef(J_),tR=eR;function nR({title:e,titleId:t,...n},r){return C.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":t},n),e?C.createElement("title",{id:t},e):null,C.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M9 15 3 9m0 0 6-6M3 9h12a6 6 0 0 1 0 12h-3"}))}const rR=C.forwardRef(nR),oR=rR;function lR({title:e,titleId:t,...n},r){return C.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":t},n),e?C.createElement("title",{id:t},e):null,C.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M3.75 6.75h16.5M3.75 12h16.5m-16.5 5.25h16.5"}))}const iR=C.forwardRef(lR),uR=iR;function sR({title:e,titleId:t,...n},r){return C.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":t},n),e?C.createElement("title",{id:t},e):null,C.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m3.75 13.5 10.5-11.25L12 10.5h8.25L9.75 21.75 12 13.5H3.75Z"}))}const aR=C.forwardRef(sR),cR=aR;function fR({title:e,titleId:t,...n},r){return C.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":t},n),e?C.createElement("title",{id:t},e):null,C.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M20.25 6.375c0 2.278-3.694 4.125-8.25 4.125S3.75 8.653 3.75 6.375m16.5 0c0-2.278-3.694-4.125-8.25-4.125S3.75 4.097 3.75 6.375m16.5 0v11.25c0 2.278-3.694 4.125-8.25 4.125s-8.25-1.847-8.25-4.125V6.375m16.5 0v3.75m-16.5-3.75v3.75m16.5 0v3.75C20.25 16.153 16.556 18 12 18s-8.25-1.847-8.25-4.125v-3.75m16.5 0c0 2.278-3.694 4.125-8.25 4.125s-8.25-1.847-8.25-4.125"}))}const dR=C.forwardRef(fR),pR=dR;function hR({title:e,titleId:t,...n},r){return C.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":t},n),e?C.createElement("title",{id:t},e):null,C.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M14.25 9.75 16.5 12l-2.25 2.25m-4.5 0L7.5 12l2.25-2.25M6 20.25h12A2.25 2.25 0 0 0 20.25 18V6A2.25 2.25 0 0 0 18 3.75H6A2.25 2.25 0 0 0 3.75 6v12A2.25 2.25 0 0 0 6 20.25Z"}))}const vR=C.forwardRef(hR),mR=vR;function yR({title:e,titleId:t,...n},r){return C.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":t},n),e?C.createElement("title",{id:t},e):null,C.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M10.343 3.94c.09-.542.56-.94 1.11-.94h1.093c.55 0 1.02.398 1.11.94l.149.894c.07.424.384.764.78.93.398.164.855.142 1.205-.108l.737-.527a1.125 1.125 0 0 1 1.45.12l.773.774c.39.389.44 1.002.12 1.45l-.527.737c-.25.35-.272.806-.107 1.204.165.397.505.71.93.78l.893.15c.543.09.94.559.94 1.109v1.094c0 .55-.397 1.02-.94 1.11l-.894.149c-.424.07-.764.383-.929.78-.165.398-.143.854.107 1.204l.527.738c.32.447.269 1.06-.12 1.45l-.774.773a1.125 1.125 0 0 1-1.449.12l-.738-.527c-.35-.25-.806-.272-1.203-.107-.398.165-.71.505-.781.929l-.149.894c-.09.542-.56.94-1.11.94h-1.094c-.55 0-1.019-.398-1.11-.94l-.148-.894c-.071-.424-.384-.764-.781-.93-.398-.164-.854-.142-1.204.108l-.738.527c-.447.32-1.06.269-1.45-.12l-.773-.774a1.125 1.125 0 0 1-.12-1.45l.527-.737c.25-.35.272-.806.108-1.204-.165-.397-.506-.71-.93-.78l-.894-.15c-.542-.09-.94-.56-.94-1.109v-1.094c0-.55.398-1.02.94-1.11l.894-.149c.424-.07.765-.383.93-.78.165-.398.143-.854-.108-1.204l-.526-.738a1.125 1.125 0 0 1 .12-1.45l.773-.773a1.125 1.125 0 0 1 1.45-.12l.737.527c.35.25.807.272 1.204.107.397-.165.71-.505.78-.929l.15-.894Z"}),C.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M15 12a3 3 0 1 1-6 0 3 3 0 0 1 6 0Z"}))}const gR=C.forwardRef(yR),SR=gR;function wR({title:e,titleId:t,...n},r){return C.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":t},n),e?C.createElement("title",{id:t},e):null,C.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m6.75 7.5 3 2.25-3 2.25m4.5 0h3m-9 8.25h13.5A2.25 2.25 0 0 0 21 18V6a2.25 2.25 0 0 0-2.25-2.25H5.25A2.25 2.25 0 0 0 3 6v12a2.25 2.25 0 0 0 2.25 2.25Z"}))}const _R=C.forwardRef(wR),RR=_R;function ER({title:e,titleId:t,...n},r){return C.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":t},n),e?C.createElement("title",{id:t},e):null,C.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M19.5 14.25v-2.625a3.375 3.375 0 0 0-3.375-3.375h-1.5A1.125 1.125 0 0 1 13.5 7.125v-1.5a3.375 3.375 0 0 0-3.375-3.375H8.25m2.25 0H5.625c-.621 0-1.125.504-1.125 1.125v17.25c0 .621.504 1.125 1.125 1.125h12.75c.621 0 1.125-.504 1.125-1.125V11.25a9 9 0 0 0-9-9Z"}))}const kR=C.forwardRef(ER),uf=kR;function TR({title:e,titleId:t,...n},r){return C.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":t},n),e?C.createElement("title",{id:t},e):null,C.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 21a9.004 9.004 0 0 0 8.716-6.747M12 21a9.004 9.004 0 0 1-8.716-6.747M12 21c2.485 0 4.5-4.03 4.5-9S14.485 3 12 3m0 18c-2.485 0-4.5-4.03-4.5-9S9.515 3 12 3m0 0a8.997 8.997 0 0 1 7.843 4.582M12 3a8.997 8.997 0 0 0-7.843 4.582m15.686 0A11.953 11.953 0 0 1 12 10.5c-2.998 0-5.74-1.1-7.843-2.918m15.686 0A8.959 8.959 0 0 1 21 12c0 .778-.099 1.533-.284 2.253m0 0A17.919 17.919 0 0 1 12 16.5c-3.162 0-6.133-.815-8.716-2.247m0 0A9.015 9.015 0 0 1 3 12c0-1.605.42-3.113 1.157-4.418"}))}const CR=C.forwardRef(TR),NR=CR;function LR({title:e,titleId:t,...n},r){return C.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":t},n),e?C.createElement("title",{id:t},e):null,C.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m21 21-5.197-5.197m0 0A7.5 7.5 0 1 0 5.196 5.196a7.5 7.5 0 0 0 10.607 10.607Z"}))}const AR=C.forwardRef(LR),xR=AR;function MR({title:e,titleId:t,...n},r){return C.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":t},n),e?C.createElement("title",{id:t},e):null,C.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m18.375 12.739-7.693 7.693a4.5 4.5 0 0 1-6.364-6.364l10.94-10.94A3 3 0 1 1 19.5 7.372L8.552 18.32m.009-.01-.01.01m5.699-9.941-7.81 7.81a1.5 1.5 0 0 0 2.112 2.13"}))}const PR=C.forwardRef(MR),$R=PR;function IR({title:e,titleId:t,...n},r){return C.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":t},n),e?C.createElement("title",{id:t},e):null,C.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m16.862 4.487 1.687-1.688a1.875 1.875 0 1 1 2.652 2.652L10.582 16.07a4.5 4.5 0 0 1-1.897 1.13L6 18l.8-2.685a4.5 4.5 0 0 1 1.13-1.897l8.932-8.931Zm0 0L19.5 7.125M18 14v4.75A2.25 2.25 0 0 1 15.75 21H5.25A2.25 2.25 0 0 1 3 18.75V8.25A2.25 2.25 0 0 1 5.25 6H10"}))}const VR=C.forwardRef(IR),zR=VR;function DR({title:e,titleId:t,...n},r){return C.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":t},n),e?C.createElement("title",{id:t},e):null,C.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M3.75 6A2.25 2.25 0 0 1 6 3.75h2.25A2.25 2.25 0 0 1 10.5 6v2.25a2.25 2.25 0 0 1-2.25 2.25H6a2.25 2.25 0 0 1-2.25-2.25V6ZM3.75 15.75A2.25 2.25 0 0 1 6 13.5h2.25a2.25 2.25 0 0 1 2.25 2.25V18a2.25 2.25 0 0 1-2.25 2.25H6A2.25 2.25 0 0 1 3.75 18v-2.25ZM13.5 6a2.25 2.25 0 0 1 2.25-2.25H18A2.25 2.25 0 0 1 20.25 6v2.25A2.25 2.25 0 0 1 18 10.5h-2.25a2.25 2.25 0 0 1-2.25-2.25V6ZM13.5 15.75a2.25 2.25 0 0 1 2.25-2.25H18a2.25 2.25 0 0 1 2.25 2.25V18A2.25 2.25 0 0 1 18 20.25h-2.25A2.25 2.25 0 0 1 13.5 18v-2.25Z"}))}const OR=C.forwardRef(DR),UR=OR;function FR({title:e,titleId:t,...n},r){return C.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":t},n),e?C.createElement("title",{id:t},e):null,C.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M3.375 19.5h17.25m-17.25 0a1.125 1.125 0 0 1-1.125-1.125M3.375 19.5h7.5c.621 0 1.125-.504 1.125-1.125m-9.75 0V5.625m0 12.75v-1.5c0-.621.504-1.125 1.125-1.125m18.375 2.625V5.625m0 12.75c0 .621-.504 1.125-1.125 1.125m1.125-1.125v-1.5c0-.621-.504-1.125-1.125-1.125m0 3.75h-7.5A1.125 1.125 0 0 1 12 18.375m9.75-12.75c0-.621-.504-1.125-1.125-1.125H3.375c-.621 0-1.125.504-1.125 1.125m19.5 0v1.5c0 .621-.504 1.125-1.125 1.125M2.25 5.625v1.5c0 .621.504 1.125 1.125 1.125m0 0h17.25m-17.25 0h7.5c.621 0 1.125.504 1.125 1.125M3.375 8.25c-.621 0-1.125.504-1.125 1.125v1.5c0 .621.504 1.125 1.125 1.125m17.25-3.75h-7.5c-.621 0-1.125.504-1.125 1.125m8.625-1.125c.621 0 1.125.504 1.125 1.125v1.5c0 .621-.504 1.125-1.125 1.125m-17.25 0h7.5m-7.5 0c-.621 0-1.125.504-1.125 1.125v1.5c0 .621.504 1.125 1.125 1.125M12 10.875v-1.5m0 1.5c0 .621-.504 1.125-1.125 1.125M12 10.875c0 .621.504 1.125 1.125 1.125m-2.25 0c.621 0 1.125.504 1.125 1.125M13.125 12h7.5m-7.5 0c-.621 0-1.125.504-1.125 1.125M20.625 12c.621 0 1.125.504 1.125 1.125v1.5c0 .621-.504 1.125-1.125 1.125m-17.25 0h7.5M12 14.625v-1.5m0 1.5c0 .621-.504 1.125-1.125 1.125M12 14.625c0 .621.504 1.125 1.125 1.125m-2.25 0c.621 0 1.125.504 1.125 1.125m0 1.5v-1.5m0 0c0-.621.504-1.125 1.125-1.125m0 0h7.5"}))}const BR=C.forwardRef(FR),jR=BR;function WR({title:e,titleId:t,...n},r){return C.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":t},n),e?C.createElement("title",{id:t},e):null,C.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M17.982 18.725A7.488 7.488 0 0 0 12 15.75a7.488 7.488 0 0 0-5.982 2.975m11.963 0a9 9 0 1 0-11.963 0m11.963 0A8.966 8.966 0 0 1 12 21a8.966 8.966 0 0 1-5.982-2.275M15 9.75a3 3 0 1 1-6 0 3 3 0 0 1 6 0Z"}))}const HR=C.forwardRef(WR),bR=HR;function KR({name:e,...t}){return e==="document"?B.jsx(uf,{...t}):e==="table"?B.jsx(jR,{...t}):e==="section"?B.jsx(UR,{...t}):e==="code"?B.jsx(mR,{...t}):e==="bolt"?B.jsx(cR,{...t}):e==="settings"?B.jsx(SR,{...t}):e==="search"?B.jsx(xR,{...t}):e==="globe"?B.jsx(NR,{...t}):e==="edit"?B.jsx(zR,{...t}):e==="menu"?B.jsx(uR,{...t}):e==="attachment"?B.jsx($R,{...t}):e==="database"?B.jsx(pR,{...t}):e==="utility"?B.jsx(q_,{...t}):e==="user"?B.jsx(bR,{...t}):e==="logout"?B.jsx(tR,{...t}):B.jsx(uf,{...t})}function qh({url:e,title:t,subtitle:n,icon:r,type:o,focused:l}){const i=C.useRef(null),[u,s]=Ea(),{focus:a,setFocus:d}=ka();return cn("enter",()=>{l&&(o==="link"?window.location=e:s(e))},{enableOnFormTags:!0}),cn("meta+enter",()=>{l&&(o==="link"?window.open(e,"_blank"):s(e))},{enableOnFormTags:!0}),C.useEffect(()=>{l&&i.current.scrollIntoView({block:"center"})},[a]),B.jsx("a",{className:jl("p-flex p-items-center p-gap-2","p-font-sans p-text-sm p-text-zinc-700 dark:p-text-zinc-300 p-no-underline","p-px-3 p-py-2.5 p-mx-2 p-rounded-lg",l&&"p-bg-zinc-200/75 dark:p-bg-zinc-700/50","hover:p-bg-zinc-200/75 dark:hover:p-bg-zinc-700/50"),onMouseEnter:()=>d(null),href:o==="link"?e:null,onClick:()=>o==="context"?s(e):null,ref:i,children:B.jsx("div",{className:"p-flex p-items-center p-justify-between p-gap-2 p-flex-1",children:B.jsxs("div",{className:"p-flex p-items-center p-gap-3 p-flex-1",children:[B.jsx(KR,{name:r,className:"p-size-5 p-opacity-75"}),B.jsxs("div",{className:"p-flex-1 p-flex p-justify-between p-items-center p-gap-1",children:[B.jsx("p",{className:"p-block p-leading-none p-m-0 p-font-sans p-font-medium",children:t}),n&&B.jsx("p",{className:"p-block p-leading-none p-text-xs p-m-0 p-font-sans p-opacity-75",children:n})]})]})})})}function Jh({text:e="No matching results found"}){return B.jsxs("div",{className:"p-flex p-flex-col p-justify-center p-items-center p-py-6 p-text-zinc-400 dark:p-text-zinc-500",children:[B.jsx("div",{children:B.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor",className:"p-size-12",children:B.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m21 21-5.197-5.197m0 0A7.5 7.5 0 1 0 5.196 5.196a7.5 7.5 0 0 0 10.607 10.607Z"})})}),B.jsx("p",{className:"p-text-lg p-mt-1",children:e})]})}function GR(){const{actions:e,getActions:t}=Q_(),{focus:n,moveFocus:r}=ka(e);return cn("up",()=>r("up",e),{enableOnFormTags:!0,preventDefault:!0}),cn("down",()=>r("down",e),{enableOnFormTags:!0,preventDefault:!0}),C.useEffect(()=>{t()},[]),B.jsxs(B.Fragment,{children:[e.length===0&&B.jsx(Jh,{}),e.map((o,l)=>B.jsx(qh,{url:o.url,title:o.name,subtitle:o.subtitle,icon:o.icon,focused:l===n,type:o.type},o.url))]})}function QR(e,t,n){C.useEffect(()=>{const r=setTimeout(()=>e(),n);return()=>clearTimeout(r)},[...t||[],n])}function ZR(){const[e]=Zh(),[t,n]=C.useState([]),{focus:r,moveFocus:o}=ka(t);return QR(()=>{const l=Yh();fetch(`${l}actions/palette/search?query=${e}`).then(i=>i.json()).then(i=>n(i))},[e],200),cn("up",()=>o("up",t),{enableOnFormTags:!0,preventDefault:!0}),cn("down",()=>o("down",t),{enableOnFormTags:!0,preventDefault:!0}),B.jsxs(B.Fragment,{children:[t.length===0&&B.jsx(Jh,{text:"No matching entries found"}),t.map((l,i)=>B.jsx(qh,{url:l.url,title:l.name,subtitle:l.subtitle,icon:l.icon,focused:i===r,type:l.type},l.url))]})}function YR({placeholder:e="Search"}){const[t,n]=Zh(),[r,o]=Ea();return C.useEffect(()=>{n("")},[r]),B.jsxs("div",{className:"p-flex p-px-2 p-items-center p-gap-1 p-border-b p-border-zinc-200 dark:p-border-zinc-700",children:[r!=="ACTIONS"&&B.jsx("div",{children:B.jsx("button",{className:"p-size-8 p-flex p-items-center p-justify-center p-border p-border-zinc-300 dark:p-border-zinc-700 p-rounded-lg dark:p-bg-zinc-900",onClick:()=>o("ACTIONS"),children:B.jsx(oR,{className:"p-size-4 p-text-zinc-500"})})}),B.jsx("input",{type:"text",className:jl(["p-bg-transparent","p-w-full p-px-2 p-py-3","p-outline-none p-ring-0 p-shadow-none p-border-0","p-text-base placeholder:p-text-zinc-400 placeholder:dark:p-text-zinc-500 p-text-zinc-700 dark:p-text-zinc-200"]),placeholder:e,onInput:({target:l})=>n(l.value),value:t,autoFocus:!0,spellCheck:!1})]})}function XR(){const[e,t]=H_(),[n,r]=Ea(),o=K_(()=>t(!1));return cn(["ctrl+k, meta+k"],()=>{t(l=>!l),r("ACTIONS")},{enableOnFormTags:!0,preventDefault:!0}),cn("esc",()=>{n==="ACTIONS"&&t(!1),r("ACTIONS")},{enableOnFormTags:!0}),B.jsxs(B.Fragment,{children:[e&&B.jsx("div",{className:"p-fixed p-inset-0 p-z-[9999] p-size-full p-flex p-justify-center p-antialiased",children:B.jsx("div",{className:"p-w-full p-max-w-2xl",children:B.jsxs("div",{ref:o,className:jl(["p-bg-white/70 dark:p-bg-zinc-950/90","p-outline-zinc-300 dark:p-outline-zinc-900 p-outline p-outline-1","p-border p-border-white dark:p-border-zinc-500","p-rounded-lg p-translate-y-24 p-overflow-hidden p-backdrop-blur-xl p-shadow-2xl"]),children:[B.jsx(YR,{}),B.jsxs("div",{className:"dark:p-bg-zinc-950/10 p-max-h-96 p-overflow-scroll p-py-2",children:[n==="ACTIONS"&&B.jsx(GR,{}),n==="SEARCH_ENTRIES"&&B.jsx(ZR,{})]})]})})}),B.jsx("button",{className:jl(["p-fixed p-bottom-5 p-left-5 p-z-[100]","p-flex p-items-center p-justify-center","p-backdrop-blur-md p-shadow p-rounded-full","p-bg-zinc-50/70 dark:p-bg-neutral-800/90","dark:p-text-neutral-300","p-size-8","p-cursor-pointer","p-border-0","p-transition-transform hover:p-scale-110 active:p-scale-90"]),onClick:()=>t(!0),"aria-label":"Open Palette",children:B.jsx(RR,{className:"p-size-5"})})]})}function qR(){return B.jsx(C_,{children:B.jsx(XR,{})})}const ev=document.createElement("div");ev.setAttribute("data-palette","");document.body.appendChild(ev);document.querySelectorAll("[data-palette]").forEach(e=>Rp.render(B.jsx(qR,{}),e)); })() \ No newline at end of file diff --git a/src/assetbundles/resources/palette.css b/src/assetbundles/resources/palette.css index f2ad1f1..28a0b74 100644 --- a/src/assetbundles/resources/palette.css +++ b/src/assetbundles/resources/palette.css @@ -1 +1 @@ -*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }.p-fixed{position:fixed!important}.p-inset-0{top:0!important;right:0!important;bottom:0!important;left:0!important}.p-z-\[9999\]{z-index:9999!important}.p-m-0{margin:0!important}.p-mx-2{margin-left:.5rem!important;margin-right:.5rem!important}.p-mt-1{margin-top:.25rem!important}.p-block{display:block!important}.p-flex{display:flex!important}.p-size-12{width:3rem!important;height:3rem!important}.p-size-4{width:1rem!important;height:1rem!important}.p-size-5{width:1.25rem!important;height:1.25rem!important}.p-size-8{width:2rem!important;height:2rem!important}.p-size-full{width:100%!important;height:100%!important}.p-max-h-96{max-height:24rem!important}.p-w-full{width:100%!important}.p-max-w-2xl{max-width:42rem!important}.p-flex-1{flex:1 1 0%!important}.p-translate-y-24{--tw-translate-y: 6rem !important;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))!important}.p-flex-col{flex-direction:column!important}.p-items-center{align-items:center!important}.p-justify-center{justify-content:center!important}.p-justify-between{justify-content:space-between!important}.p-gap-1{gap:.25rem!important}.p-gap-2{gap:.5rem!important}.p-gap-3{gap:.75rem!important}.p-overflow-hidden{overflow:hidden!important}.p-overflow-scroll{overflow:scroll!important}.p-rounded-lg{border-radius:.5rem!important}.p-border{border-width:1px!important}.p-border-0{border-width:0px!important}.p-border-b{border-bottom-width:1px!important}.p-border-white{--tw-border-opacity: 1 !important;border-color:rgb(255 255 255 / var(--tw-border-opacity))!important}.p-border-zinc-200{--tw-border-opacity: 1 !important;border-color:rgb(228 228 231 / var(--tw-border-opacity))!important}.p-border-zinc-300{--tw-border-opacity: 1 !important;border-color:rgb(212 212 216 / var(--tw-border-opacity))!important}.p-bg-transparent{background-color:transparent!important}.p-bg-white\/70{background-color:#ffffffb3!important}.p-bg-zinc-200\/75{background-color:#e4e4e7bf!important}.p-px-2{padding-left:.5rem!important;padding-right:.5rem!important}.p-px-3{padding-left:.75rem!important;padding-right:.75rem!important}.p-py-2{padding-top:.5rem!important;padding-bottom:.5rem!important}.p-py-2\.5{padding-top:.625rem!important;padding-bottom:.625rem!important}.p-py-3{padding-top:.75rem!important;padding-bottom:.75rem!important}.p-py-6{padding-top:1.5rem!important;padding-bottom:1.5rem!important}.p-font-sans{font-family:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji"!important}.p-text-base{font-size:1rem!important;line-height:1.5rem!important}.p-text-lg{font-size:1.125rem!important;line-height:1.75rem!important}.p-text-sm{font-size:.875rem!important;line-height:1.25rem!important}.p-text-xs{font-size:.75rem!important;line-height:1rem!important}.p-font-medium{font-weight:500!important}.p-leading-none{line-height:1!important}.p-text-zinc-400{--tw-text-opacity: 1 !important;color:rgb(161 161 170 / var(--tw-text-opacity))!important}.p-text-zinc-500{--tw-text-opacity: 1 !important;color:rgb(113 113 122 / var(--tw-text-opacity))!important}.p-text-zinc-700{--tw-text-opacity: 1 !important;color:rgb(63 63 70 / var(--tw-text-opacity))!important}.p-no-underline{text-decoration-line:none!important}.p-antialiased{-webkit-font-smoothing:antialiased!important;-moz-osx-font-smoothing:grayscale!important}.p-opacity-75{opacity:.75!important}.p-shadow-2xl{--tw-shadow: 0 25px 50px -12px rgb(0 0 0 / .25) !important;--tw-shadow-colored: 0 25px 50px -12px var(--tw-shadow-color) !important;box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)!important}.p-shadow-none{--tw-shadow: 0 0 #0000 !important;--tw-shadow-colored: 0 0 #0000 !important;box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)!important}.p-outline-none{outline:2px solid transparent!important;outline-offset:2px!important}.p-outline{outline-style:solid!important}.p-outline-1{outline-width:1px!important}.p-outline-zinc-300{outline-color:#d4d4d8!important}.p-ring-0{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color) !important;--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(0px + var(--tw-ring-offset-width)) var(--tw-ring-color) !important;box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)!important}.p-backdrop-blur-xl{--tw-backdrop-blur: blur(24px) !important;-webkit-backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)!important;backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)!important}.placeholder\:p-text-zinc-400::-moz-placeholder{--tw-text-opacity: 1 !important;color:rgb(161 161 170 / var(--tw-text-opacity))!important}.placeholder\:p-text-zinc-400::placeholder{--tw-text-opacity: 1 !important;color:rgb(161 161 170 / var(--tw-text-opacity))!important}.hover\:p-bg-zinc-200\/75:hover{background-color:#e4e4e7bf!important}@media (prefers-color-scheme: dark){.dark\:p-border-zinc-500{--tw-border-opacity: 1 !important;border-color:rgb(113 113 122 / var(--tw-border-opacity))!important}.dark\:p-border-zinc-700{--tw-border-opacity: 1 !important;border-color:rgb(63 63 70 / var(--tw-border-opacity))!important}.dark\:p-bg-zinc-700\/50{background-color:#3f3f4680!important}.dark\:p-bg-zinc-900{--tw-bg-opacity: 1 !important;background-color:rgb(24 24 27 / var(--tw-bg-opacity))!important}.dark\:p-bg-zinc-950\/10{background-color:#09090b1a!important}.dark\:p-bg-zinc-950\/90{background-color:#09090be6!important}.dark\:p-text-zinc-200{--tw-text-opacity: 1 !important;color:rgb(228 228 231 / var(--tw-text-opacity))!important}.dark\:p-text-zinc-300{--tw-text-opacity: 1 !important;color:rgb(212 212 216 / var(--tw-text-opacity))!important}.dark\:p-text-zinc-500{--tw-text-opacity: 1 !important;color:rgb(113 113 122 / var(--tw-text-opacity))!important}.dark\:p-outline-zinc-900{outline-color:#18181b!important}.placeholder\:dark\:p-text-zinc-500::-moz-placeholder{--tw-text-opacity: 1 !important;color:rgb(113 113 122 / var(--tw-text-opacity))!important}.placeholder\:dark\:p-text-zinc-500::placeholder{--tw-text-opacity: 1 !important;color:rgb(113 113 122 / var(--tw-text-opacity))!important}.dark\:hover\:p-bg-zinc-700\/50:hover{background-color:#3f3f4680!important}} +*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }.p-fixed{position:fixed!important}.p-inset-0{top:0!important;right:0!important;bottom:0!important;left:0!important}.p-bottom-5{bottom:1.25rem!important}.p-left-5{left:1.25rem!important}.p-z-\[100\]{z-index:100!important}.p-z-\[9999\]{z-index:9999!important}.p-m-0{margin:0!important}.p-mx-2{margin-left:.5rem!important;margin-right:.5rem!important}.p-mt-1{margin-top:.25rem!important}.p-block{display:block!important}.p-flex{display:flex!important}.p-size-12{width:3rem!important;height:3rem!important}.p-size-4{width:1rem!important;height:1rem!important}.p-size-5{width:1.25rem!important;height:1.25rem!important}.p-size-8{width:2rem!important;height:2rem!important}.p-size-full{width:100%!important;height:100%!important}.p-max-h-96{max-height:24rem!important}.p-w-full{width:100%!important}.p-max-w-2xl{max-width:42rem!important}.p-flex-1{flex:1 1 0%!important}.p-translate-y-24{--tw-translate-y: 6rem !important;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))!important}.p-cursor-pointer{cursor:pointer!important}.p-flex-col{flex-direction:column!important}.p-items-center{align-items:center!important}.p-justify-center{justify-content:center!important}.p-justify-between{justify-content:space-between!important}.p-gap-1{gap:.25rem!important}.p-gap-2{gap:.5rem!important}.p-gap-3{gap:.75rem!important}.p-overflow-hidden{overflow:hidden!important}.p-overflow-scroll{overflow:scroll!important}.p-rounded-full{border-radius:9999px!important}.p-rounded-lg{border-radius:.5rem!important}.p-border{border-width:1px!important}.p-border-0{border-width:0px!important}.p-border-b{border-bottom-width:1px!important}.p-border-white{--tw-border-opacity: 1 !important;border-color:rgb(255 255 255 / var(--tw-border-opacity))!important}.p-border-zinc-200{--tw-border-opacity: 1 !important;border-color:rgb(228 228 231 / var(--tw-border-opacity))!important}.p-border-zinc-300{--tw-border-opacity: 1 !important;border-color:rgb(212 212 216 / var(--tw-border-opacity))!important}.p-bg-transparent{background-color:transparent!important}.p-bg-white\/70{background-color:#ffffffb3!important}.p-bg-zinc-200\/75{background-color:#e4e4e7bf!important}.p-bg-zinc-50\/70{background-color:#fafafab3!important}.p-px-2{padding-left:.5rem!important;padding-right:.5rem!important}.p-px-3{padding-left:.75rem!important;padding-right:.75rem!important}.p-py-2{padding-top:.5rem!important;padding-bottom:.5rem!important}.p-py-2\.5{padding-top:.625rem!important;padding-bottom:.625rem!important}.p-py-3{padding-top:.75rem!important;padding-bottom:.75rem!important}.p-py-6{padding-top:1.5rem!important;padding-bottom:1.5rem!important}.p-font-sans{font-family:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji"!important}.p-text-base{font-size:1rem!important;line-height:1.5rem!important}.p-text-lg{font-size:1.125rem!important;line-height:1.75rem!important}.p-text-sm{font-size:.875rem!important;line-height:1.25rem!important}.p-text-xs{font-size:.75rem!important;line-height:1rem!important}.p-font-medium{font-weight:500!important}.p-leading-none{line-height:1!important}.p-text-zinc-400{--tw-text-opacity: 1 !important;color:rgb(161 161 170 / var(--tw-text-opacity))!important}.p-text-zinc-500{--tw-text-opacity: 1 !important;color:rgb(113 113 122 / var(--tw-text-opacity))!important}.p-text-zinc-700{--tw-text-opacity: 1 !important;color:rgb(63 63 70 / var(--tw-text-opacity))!important}.p-no-underline{text-decoration-line:none!important}.p-antialiased{-webkit-font-smoothing:antialiased!important;-moz-osx-font-smoothing:grayscale!important}.p-opacity-75{opacity:.75!important}.p-shadow{--tw-shadow: 0 1px 3px 0 rgb(0 0 0 / .1), 0 1px 2px -1px rgb(0 0 0 / .1) !important;--tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color) !important;box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)!important}.p-shadow-2xl{--tw-shadow: 0 25px 50px -12px rgb(0 0 0 / .25) !important;--tw-shadow-colored: 0 25px 50px -12px var(--tw-shadow-color) !important;box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)!important}.p-shadow-none{--tw-shadow: 0 0 #0000 !important;--tw-shadow-colored: 0 0 #0000 !important;box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)!important}.p-outline-none{outline:2px solid transparent!important;outline-offset:2px!important}.p-outline{outline-style:solid!important}.p-outline-1{outline-width:1px!important}.p-outline-zinc-300{outline-color:#d4d4d8!important}.p-ring-0{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color) !important;--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(0px + var(--tw-ring-offset-width)) var(--tw-ring-color) !important;box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)!important}.p-backdrop-blur-md{--tw-backdrop-blur: blur(12px) !important;-webkit-backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)!important;backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)!important}.p-backdrop-blur-xl{--tw-backdrop-blur: blur(24px) !important;-webkit-backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)!important;backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)!important}.p-transition-transform{transition-property:transform!important;transition-timing-function:cubic-bezier(.4,0,.2,1)!important;transition-duration:.15s!important}.placeholder\:p-text-zinc-400::-moz-placeholder{--tw-text-opacity: 1 !important;color:rgb(161 161 170 / var(--tw-text-opacity))!important}.placeholder\:p-text-zinc-400::placeholder{--tw-text-opacity: 1 !important;color:rgb(161 161 170 / var(--tw-text-opacity))!important}.hover\:p-scale-110:hover{--tw-scale-x: 1.1 !important;--tw-scale-y: 1.1 !important;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))!important}.hover\:p-bg-zinc-200\/75:hover{background-color:#e4e4e7bf!important}.active\:p-scale-90:active{--tw-scale-x: .9 !important;--tw-scale-y: .9 !important;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))!important}@media (prefers-color-scheme: dark){.dark\:p-border-zinc-500{--tw-border-opacity: 1 !important;border-color:rgb(113 113 122 / var(--tw-border-opacity))!important}.dark\:p-border-zinc-700{--tw-border-opacity: 1 !important;border-color:rgb(63 63 70 / var(--tw-border-opacity))!important}.dark\:p-bg-neutral-800\/90{background-color:#262626e6!important}.dark\:p-bg-zinc-700\/50{background-color:#3f3f4680!important}.dark\:p-bg-zinc-900{--tw-bg-opacity: 1 !important;background-color:rgb(24 24 27 / var(--tw-bg-opacity))!important}.dark\:p-bg-zinc-950\/10{background-color:#09090b1a!important}.dark\:p-bg-zinc-950\/90{background-color:#09090be6!important}.dark\:p-text-neutral-300{--tw-text-opacity: 1 !important;color:rgb(212 212 212 / var(--tw-text-opacity))!important}.dark\:p-text-zinc-200{--tw-text-opacity: 1 !important;color:rgb(228 228 231 / var(--tw-text-opacity))!important}.dark\:p-text-zinc-300{--tw-text-opacity: 1 !important;color:rgb(212 212 216 / var(--tw-text-opacity))!important}.dark\:p-text-zinc-500{--tw-text-opacity: 1 !important;color:rgb(113 113 122 / var(--tw-text-opacity))!important}.dark\:p-outline-zinc-900{outline-color:#18181b!important}.placeholder\:dark\:p-text-zinc-500::-moz-placeholder{--tw-text-opacity: 1 !important;color:rgb(113 113 122 / var(--tw-text-opacity))!important}.placeholder\:dark\:p-text-zinc-500::placeholder{--tw-text-opacity: 1 !important;color:rgb(113 113 122 / var(--tw-text-opacity))!important}.dark\:hover\:p-bg-zinc-700\/50:hover{background-color:#3f3f4680!important}}