diff --git a/assets/index-f8ee1a87.js b/assets/index-508368a6.js similarity index 88% rename from assets/index-f8ee1a87.js rename to assets/index-508368a6.js index 8ae7dc4..49748b4 100644 --- a/assets/index-f8ee1a87.js +++ b/assets/index-508368a6.js @@ -1,4 +1,4 @@ -function Vw(e,t){for(var r=0;rn[o]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))n(o);new MutationObserver(o=>{for(const i of o)if(i.type==="childList")for(const s of i.addedNodes)s.tagName==="LINK"&&s.rel==="modulepreload"&&n(s)}).observe(document,{childList:!0,subtree:!0});function r(o){const i={};return o.integrity&&(i.integrity=o.integrity),o.referrerPolicy&&(i.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?i.credentials="include":o.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function n(o){if(o.ep)return;o.ep=!0;const i=r(o);fetch(o.href,i)}})();var pa=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function oh(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var nv={exports:{}},du={},ov={exports:{}},K={};/** +function Vw(e,t){for(var r=0;rn[o]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))n(o);new MutationObserver(o=>{for(const i of o)if(i.type==="childList")for(const s of i.addedNodes)s.tagName==="LINK"&&s.rel==="modulepreload"&&n(s)}).observe(document,{childList:!0,subtree:!0});function r(o){const i={};return o.integrity&&(i.integrity=o.integrity),o.referrerPolicy&&(i.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?i.credentials="include":o.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function n(o){if(o.ep)return;o.ep=!0;const i=r(o);fetch(o.href,i)}})();var pa=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function ih(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var nv={exports:{}},du={},ov={exports:{}},K={};/** * @license React * react.production.min.js * @@ -6,7 +6,7 @@ function Vw(e,t){for(var r=0;r"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Ed=Object.prototype.hasOwnProperty,dk=/^[: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]*$/,wm={},km={};function fk(e){return Ed.call(km,e)?!0:Ed.call(wm,e)?!1:dk.test(e)?km[e]=!0:(wm[e]=!0,!1)}function hk(e,t,r,n){if(r!==null&&r.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return n?!1:r!==null?!r.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function pk(e,t,r,n){if(t===null||typeof t>"u"||hk(e,t,r,n))return!0;if(n)return!1;if(r!==null)switch(r.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 ct(e,t,r,n,o,i,s){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=n,this.attributeNamespace=o,this.mustUseProperty=r,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=s}var Ze={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Ze[e]=new ct(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Ze[t]=new ct(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Ze[e]=new ct(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Ze[e]=new ct(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){Ze[e]=new ct(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Ze[e]=new ct(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Ze[e]=new ct(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Ze[e]=new ct(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Ze[e]=new ct(e,5,!1,e.toLowerCase(),null,!1,!1)});var uh=/[\-:]([a-z])/g;function ch(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(uh,ch);Ze[t]=new ct(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(uh,ch);Ze[t]=new ct(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(uh,ch);Ze[t]=new ct(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Ze[e]=new ct(e,1,!1,e.toLowerCase(),null,!1,!1)});Ze.xlinkHref=new ct("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Ze[e]=new ct(e,1,!1,e.toLowerCase(),null,!0,!0)});function dh(e,t,r,n){var o=Ze.hasOwnProperty(t)?Ze[t]:null;(o!==null?o.type!==0:n||!(2"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),$d=Object.prototype.hasOwnProperty,dk=/^[: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]*$/,wm={},km={};function fk(e){return $d.call(km,e)?!0:$d.call(wm,e)?!1:dk.test(e)?km[e]=!0:(wm[e]=!0,!1)}function hk(e,t,r,n){if(r!==null&&r.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return n?!1:r!==null?!r.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function pk(e,t,r,n){if(t===null||typeof t>"u"||hk(e,t,r,n))return!0;if(n)return!1;if(r!==null)switch(r.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 ct(e,t,r,n,o,i,s){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=n,this.attributeNamespace=o,this.mustUseProperty=r,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=s}var Ze={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Ze[e]=new ct(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Ze[t]=new ct(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Ze[e]=new ct(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Ze[e]=new ct(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){Ze[e]=new ct(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Ze[e]=new ct(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Ze[e]=new ct(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Ze[e]=new ct(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Ze[e]=new ct(e,5,!1,e.toLowerCase(),null,!1,!1)});var ch=/[\-:]([a-z])/g;function dh(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(ch,dh);Ze[t]=new ct(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(ch,dh);Ze[t]=new ct(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(ch,dh);Ze[t]=new ct(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Ze[e]=new ct(e,1,!1,e.toLowerCase(),null,!1,!1)});Ze.xlinkHref=new ct("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Ze[e]=new ct(e,1,!1,e.toLowerCase(),null,!0,!0)});function fh(e,t,r,n){var o=Ze.hasOwnProperty(t)?Ze[t]:null;(o!==null?o.type!==0:n||!(2a||o[s]!==i[a]){var l=` -`+o[s].replace(" at new "," at ");return e.displayName&&l.includes("")&&(l=l.replace("",e.displayName)),l}while(1<=s&&0<=a);break}}}finally{xc=!1,Error.prepareStackTrace=r}return(e=e?e.displayName||e.name:"")?Oi(e):""}function mk(e){switch(e.tag){case 5:return Oi(e.type);case 16:return Oi("Lazy");case 13:return Oi("Suspense");case 19:return Oi("SuspenseList");case 0:case 2:case 15:return e=wc(e.type,!1),e;case 11:return e=wc(e.type.render,!1),e;case 1:return e=wc(e.type,!0),e;default:return""}}function zd(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 So:return"Fragment";case bo:return"Portal";case $d:return"Profiler";case fh:return"StrictMode";case Ad:return"Suspense";case Rd:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case bv:return(e.displayName||"Context")+".Consumer";case vv:return(e._context.displayName||"Context")+".Provider";case hh:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case ph:return t=e.displayName||null,t!==null?t:zd(e.type)||"Memo";case rn:t=e._payload,e=e._init;try{return zd(e(t))}catch{}}return null}function gk(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 zd(t);case 8:return t===fh?"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 kn(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function xv(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function yk(e){var t=xv(e)?"checked":"value",r=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),n=""+e[t];if(!e.hasOwnProperty(t)&&typeof r<"u"&&typeof r.get=="function"&&typeof r.set=="function"){var o=r.get,i=r.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(s){n=""+s,i.call(this,s)}}),Object.defineProperty(e,t,{enumerable:r.enumerable}),{getValue:function(){return n},setValue:function(s){n=""+s},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function ya(e){e._valueTracker||(e._valueTracker=yk(e))}function wv(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var r=t.getValue(),n="";return e&&(n=xv(e)?e.checked?"true":"false":e.value),e=n,e!==r?(t.setValue(e),!0):!1}function Cl(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 Md(e,t){var r=t.checked;return Pe({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:r??e._wrapperState.initialChecked})}function _m(e,t){var r=t.defaultValue==null?"":t.defaultValue,n=t.checked!=null?t.checked:t.defaultChecked;r=kn(t.value!=null?t.value:r),e._wrapperState={initialChecked:n,initialValue:r,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function kv(e,t){t=t.checked,t!=null&&dh(e,"checked",t,!1)}function Ld(e,t){kv(e,t);var r=kn(t.value),n=t.type;if(r!=null)n==="number"?(r===0&&e.value===""||e.value!=r)&&(e.value=""+r):e.value!==""+r&&(e.value=""+r);else if(n==="submit"||n==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?Fd(e,t.type,r):t.hasOwnProperty("defaultValue")&&Fd(e,t.type,kn(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Tm(e,t,r){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var n=t.type;if(!(n!=="submit"&&n!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,r||t===e.value||(e.value=t),e.defaultValue=t}r=e.name,r!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,r!==""&&(e.name=r)}function Fd(e,t,r){(t!=="number"||Cl(e.ownerDocument)!==e)&&(r==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+r&&(e.defaultValue=""+r))}var ji=Array.isArray;function No(e,t,r,n){if(e=e.options,t){t={};for(var o=0;o"+t.valueOf().toString()+"",t=va.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function ps(e,t){if(t){var r=e.firstChild;if(r&&r===e.lastChild&&r.nodeType===3){r.nodeValue=t;return}}e.textContent=t}var Ki={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},vk=["Webkit","ms","Moz","O"];Object.keys(Ki).forEach(function(e){vk.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Ki[t]=Ki[e]})});function Pv(e,t,r){return t==null||typeof t=="boolean"||t===""?"":r||typeof t!="number"||t===0||Ki.hasOwnProperty(e)&&Ki[e]?(""+t).trim():t+"px"}function Ev(e,t){e=e.style;for(var r in t)if(t.hasOwnProperty(r)){var n=r.indexOf("--")===0,o=Pv(r,t[r],n);r==="float"&&(r="cssFloat"),n?e.setProperty(r,o):e[r]=o}}var bk=Pe({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 Dd(e,t){if(t){if(bk[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(z(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(z(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(z(61))}if(t.style!=null&&typeof t.style!="object")throw Error(z(62))}}function Bd(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 Id=null;function mh(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Nd=null,Vo=null,Uo=null;function $m(e){if(e=Ks(e)){if(typeof Nd!="function")throw Error(z(280));var t=e.stateNode;t&&(t=gu(t),Nd(e.stateNode,e.type,t))}}function $v(e){Vo?Uo?Uo.push(e):Uo=[e]:Vo=e}function Av(){if(Vo){var e=Vo,t=Uo;if(Uo=Vo=null,$m(e),t)for(e=0;e>>=0,e===0?32:31-(Ak(e)/Rk|0)|0}var ba=64,Sa=4194304;function Di(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 El(e,t){var r=e.pendingLanes;if(r===0)return 0;var n=0,o=e.suspendedLanes,i=e.pingedLanes,s=r&268435455;if(s!==0){var a=s&~o;a!==0?n=Di(a):(i&=s,i!==0&&(n=Di(i)))}else s=r&~o,s!==0?n=Di(s):i!==0&&(n=Di(i));if(n===0)return 0;if(t!==0&&t!==n&&!(t&o)&&(o=n&-n,i=t&-t,o>=i||o===16&&(i&4194240)!==0))return t;if(n&4&&(n|=r&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=n;0r;r++)t.push(e);return t}function Ws(e,t,r){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-or(t),e[t]=r}function Fk(e,t){var r=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 n=e.eventTimes;for(e=e.expirationTimes;0=Xi),Dm=String.fromCharCode(32),Bm=!1;function Yv(e,t){switch(e){case"keyup":return uC.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Qv(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var xo=!1;function dC(e,t){switch(e){case"compositionend":return Qv(t);case"keypress":return t.which!==32?null:(Bm=!0,Dm);case"textInput":return e=t.data,e===Dm&&Bm?null:e;default:return null}}function fC(e,t){if(xo)return e==="compositionend"||!kh&&Yv(e,t)?(e=qv(),qa=Sh=un=null,xo=!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:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=Um(r)}}function t1(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?t1(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function r1(){for(var e=window,t=Cl();t instanceof e.HTMLIFrameElement;){try{var r=typeof t.contentWindow.location.href=="string"}catch{r=!1}if(r)e=t.contentWindow;else break;t=Cl(e.document)}return t}function Ch(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 xC(e){var t=r1(),r=e.focusedElem,n=e.selectionRange;if(t!==r&&r&&r.ownerDocument&&t1(r.ownerDocument.documentElement,r)){if(n!==null&&Ch(r)){if(t=n.start,e=n.end,e===void 0&&(e=t),"selectionStart"in r)r.selectionStart=t,r.selectionEnd=Math.min(e,r.value.length);else if(e=(t=r.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var o=r.textContent.length,i=Math.min(n.start,o);n=n.end===void 0?i:Math.min(n.end,o),!e.extend&&i>n&&(o=n,n=i,i=o),o=Hm(r,i);var s=Hm(r,n);o&&s&&(e.rangeCount!==1||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==s.node||e.focusOffset!==s.offset)&&(t=t.createRange(),t.setStart(o.node,o.offset),e.removeAllRanges(),i>n?(e.addRange(t),e.extend(s.node,s.offset)):(t.setEnd(s.node,s.offset),e.addRange(t)))}}for(t=[],e=r;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof r.focus=="function"&&r.focus(),r=0;r=document.documentMode,wo=null,Kd=null,Qi=null,qd=!1;function Wm(e,t,r){var n=r.window===r?r.document:r.nodeType===9?r:r.ownerDocument;qd||wo==null||wo!==Cl(n)||(n=wo,"selectionStart"in n&&Ch(n)?n={start:n.selectionStart,end:n.selectionEnd}:(n=(n.ownerDocument&&n.ownerDocument.defaultView||window).getSelection(),n={anchorNode:n.anchorNode,anchorOffset:n.anchorOffset,focusNode:n.focusNode,focusOffset:n.focusOffset}),Qi&&Ss(Qi,n)||(Qi=n,n=Rl(Kd,"onSelect"),0_o||(e.current=ef[_o],ef[_o]=null,_o--)}function pe(e,t){_o++,ef[_o]=e.current,e.current=t}var Cn={},nt=En(Cn),mt=En(!1),Jn=Cn;function Jo(e,t){var r=e.type.contextTypes;if(!r)return Cn;var n=e.stateNode;if(n&&n.__reactInternalMemoizedUnmaskedChildContext===t)return n.__reactInternalMemoizedMaskedChildContext;var o={},i;for(i in r)o[i]=t[i];return n&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function gt(e){return e=e.childContextTypes,e!=null}function Ml(){Se(mt),Se(nt)}function Zm(e,t,r){if(nt.current!==Cn)throw Error(z(168));pe(nt,t),pe(mt,r)}function d1(e,t,r){var n=e.stateNode;if(t=t.childContextTypes,typeof n.getChildContext!="function")return r;n=n.getChildContext();for(var o in n)if(!(o in t))throw Error(z(108,gk(e)||"Unknown",o));return Pe({},r,n)}function Ll(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Cn,Jn=nt.current,pe(nt,e),pe(mt,mt.current),!0}function Jm(e,t,r){var n=e.stateNode;if(!n)throw Error(z(169));r?(e=d1(e,t,Jn),n.__reactInternalMemoizedMergedChildContext=e,Se(mt),Se(nt),pe(nt,e)):Se(mt),pe(mt,r)}var Pr=null,yu=!1,Oc=!1;function f1(e){Pr===null?Pr=[e]:Pr.push(e)}function MC(e){yu=!0,f1(e)}function $n(){if(!Oc&&Pr!==null){Oc=!0;var e=0,t=le;try{var r=Pr;for(le=1;e>=s,o-=s,Ar=1<<32-or(t)+o|r<A?(O=E,E=null):O=E.sibling;var j=f(g,E,y[A],k);if(j===null){E===null&&(E=O);break}e&&E&&j.alternate===null&&t(g,E),h=i(j,h,A),R===null?P=j:R.sibling=j,R=j,E=O}if(A===y.length)return r(g,E),ke&&jn(g,A),P;if(E===null){for(;AA?(O=E,E=null):O=E.sibling;var de=f(g,E,j.value,k);if(de===null){E===null&&(E=O);break}e&&E&&de.alternate===null&&t(g,E),h=i(de,h,A),R===null?P=de:R.sibling=de,R=de,E=O}if(j.done)return r(g,E),ke&&jn(g,A),P;if(E===null){for(;!j.done;A++,j=y.next())j=d(g,j.value,k),j!==null&&(h=i(j,h,A),R===null?P=j:R.sibling=j,R=j);return ke&&jn(g,A),P}for(E=n(g,E);!j.done;A++,j=y.next())j=p(E,g,A,j.value,k),j!==null&&(e&&j.alternate!==null&&E.delete(j.key===null?A:j.key),h=i(j,h,A),R===null?P=j:R.sibling=j,R=j);return e&&E.forEach(function(ye){return t(g,ye)}),ke&&jn(g,A),P}function C(g,h,y,k){if(typeof y=="object"&&y!==null&&y.type===So&&y.key===null&&(y=y.props.children),typeof y=="object"&&y!==null){switch(y.$$typeof){case ga:e:{for(var P=y.key,R=h;R!==null;){if(R.key===P){if(P=y.type,P===So){if(R.tag===7){r(g,R.sibling),h=o(R,y.props.children),h.return=g,g=h;break e}}else if(R.elementType===P||typeof P=="object"&&P!==null&&P.$$typeof===rn&&s0(P)===R.type){r(g,R.sibling),h=o(R,y.props),h.ref=Ti(g,R,y),h.return=g,g=h;break e}r(g,R);break}else t(g,R);R=R.sibling}y.type===So?(h=Xn(y.props.children,g.mode,k,y.key),h.return=g,g=h):(k=rl(y.type,y.key,y.props,null,g.mode,k),k.ref=Ti(g,h,y),k.return=g,g=k)}return s(g);case bo:e:{for(R=y.key;h!==null;){if(h.key===R)if(h.tag===4&&h.stateNode.containerInfo===y.containerInfo&&h.stateNode.implementation===y.implementation){r(g,h.sibling),h=o(h,y.children||[]),h.return=g,g=h;break e}else{r(g,h);break}else t(g,h);h=h.sibling}h=Hc(y,g.mode,k),h.return=g,g=h}return s(g);case rn:return R=y._init,C(g,h,R(y._payload),k)}if(ji(y))return m(g,h,y,k);if(xi(y))return v(g,h,y,k);Pa(g,y)}return typeof y=="string"&&y!==""||typeof y=="number"?(y=""+y,h!==null&&h.tag===6?(r(g,h.sibling),h=o(h,y),h.return=g,g=h):(r(g,h),h=Uc(y,g.mode,k),h.return=g,g=h),s(g)):r(g,h)}return C}var ti=S1(!0),x1=S1(!1),qs={},vr=En(qs),Cs=En(qs),_s=En(qs);function Wn(e){if(e===qs)throw Error(z(174));return e}function Mh(e,t){switch(pe(_s,t),pe(Cs,e),pe(vr,qs),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:jd(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=jd(t,e)}Se(vr),pe(vr,t)}function ri(){Se(vr),Se(Cs),Se(_s)}function w1(e){Wn(_s.current);var t=Wn(vr.current),r=jd(t,e.type);t!==r&&(pe(Cs,e),pe(vr,r))}function Lh(e){Cs.current===e&&(Se(vr),Se(Cs))}var Ce=En(0);function Il(e){for(var t=e;t!==null;){if(t.tag===13){var r=t.memoizedState;if(r!==null&&(r=r.dehydrated,r===null||r.data==="$?"||r.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 jc=[];function Fh(){for(var e=0;er?r:4,e(!0);var n=Dc.transition;Dc.transition={};try{e(!1),t()}finally{le=r,Dc.transition=n}}function D1(){return qt().memoizedState}function jC(e,t,r){var n=vn(e);if(r={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null},B1(e))I1(t,r);else if(r=g1(e,t,r,n),r!==null){var o=at();ir(r,e,n,o),N1(r,t,n)}}function DC(e,t,r){var n=vn(e),o={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null};if(B1(e))I1(t,o);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var s=t.lastRenderedState,a=i(s,r);if(o.hasEagerState=!0,o.eagerState=a,sr(a,s)){var l=t.interleaved;l===null?(o.next=o,Rh(t)):(o.next=l.next,l.next=o),t.interleaved=o;return}}catch{}finally{}r=g1(e,t,o,n),r!==null&&(o=at(),ir(r,e,n,o),N1(r,t,n))}}function B1(e){var t=e.alternate;return e===Te||t!==null&&t===Te}function I1(e,t){Zi=Nl=!0;var r=e.pending;r===null?t.next=t:(t.next=r.next,r.next=t),e.pending=t}function N1(e,t,r){if(r&4194240){var n=t.lanes;n&=e.pendingLanes,r|=n,t.lanes=r,yh(e,r)}}var Vl={readContext:Kt,useCallback:Je,useContext:Je,useEffect:Je,useImperativeHandle:Je,useInsertionEffect:Je,useLayoutEffect:Je,useMemo:Je,useReducer:Je,useRef:Je,useState:Je,useDebugValue:Je,useDeferredValue:Je,useTransition:Je,useMutableSource:Je,useSyncExternalStore:Je,useId:Je,unstable_isNewReconciler:!1},BC={readContext:Kt,useCallback:function(e,t){return dr().memoizedState=[e,t===void 0?null:t],e},useContext:Kt,useEffect:l0,useImperativeHandle:function(e,t,r){return r=r!=null?r.concat([e]):null,Za(4194308,4,M1.bind(null,t,e),r)},useLayoutEffect:function(e,t){return Za(4194308,4,e,t)},useInsertionEffect:function(e,t){return Za(4,2,e,t)},useMemo:function(e,t){var r=dr();return t=t===void 0?null:t,e=e(),r.memoizedState=[e,t],e},useReducer:function(e,t,r){var n=dr();return t=r!==void 0?r(t):t,n.memoizedState=n.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},n.queue=e,e=e.dispatch=jC.bind(null,Te,e),[n.memoizedState,e]},useRef:function(e){var t=dr();return e={current:e},t.memoizedState=e},useState:a0,useDebugValue:Ih,useDeferredValue:function(e){return dr().memoizedState=e},useTransition:function(){var e=a0(!1),t=e[0];return e=OC.bind(null,e[1]),dr().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,r){var n=Te,o=dr();if(ke){if(r===void 0)throw Error(z(407));r=r()}else{if(r=t(),Ge===null)throw Error(z(349));to&30||_1(n,t,r)}o.memoizedState=r;var i={value:r,getSnapshot:t};return o.queue=i,l0(P1.bind(null,n,i,e),[e]),n.flags|=2048,Es(9,T1.bind(null,n,i,r,t),void 0,null),r},useId:function(){var e=dr(),t=Ge.identifierPrefix;if(ke){var r=Rr,n=Ar;r=(n&~(1<<32-or(n)-1)).toString(32)+r,t=":"+t+"R"+r,r=Ts++,0")&&(l=l.replace("",e.displayName)),l}while(1<=s&&0<=a);break}}}finally{wc=!1,Error.prepareStackTrace=r}return(e=e?e.displayName||e.name:"")?Oi(e):""}function mk(e){switch(e.tag){case 5:return Oi(e.type);case 16:return Oi("Lazy");case 13:return Oi("Suspense");case 19:return Oi("SuspenseList");case 0:case 2:case 15:return e=kc(e.type,!1),e;case 11:return e=kc(e.type.render,!1),e;case 1:return e=kc(e.type,!0),e;default:return""}}function Md(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 So:return"Fragment";case bo:return"Portal";case Ad:return"Profiler";case hh:return"StrictMode";case Rd:return"Suspense";case zd:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case bv:return(e.displayName||"Context")+".Consumer";case vv:return(e._context.displayName||"Context")+".Provider";case ph:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case mh:return t=e.displayName||null,t!==null?t:Md(e.type)||"Memo";case rn:t=e._payload,e=e._init;try{return Md(e(t))}catch{}}return null}function gk(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 Md(t);case 8:return t===hh?"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 kn(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function xv(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function yk(e){var t=xv(e)?"checked":"value",r=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),n=""+e[t];if(!e.hasOwnProperty(t)&&typeof r<"u"&&typeof r.get=="function"&&typeof r.set=="function"){var o=r.get,i=r.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(s){n=""+s,i.call(this,s)}}),Object.defineProperty(e,t,{enumerable:r.enumerable}),{getValue:function(){return n},setValue:function(s){n=""+s},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function ya(e){e._valueTracker||(e._valueTracker=yk(e))}function wv(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var r=t.getValue(),n="";return e&&(n=xv(e)?e.checked?"true":"false":e.value),e=n,e!==r?(t.setValue(e),!0):!1}function Cl(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 Ld(e,t){var r=t.checked;return Pe({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:r??e._wrapperState.initialChecked})}function _m(e,t){var r=t.defaultValue==null?"":t.defaultValue,n=t.checked!=null?t.checked:t.defaultChecked;r=kn(t.value!=null?t.value:r),e._wrapperState={initialChecked:n,initialValue:r,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function kv(e,t){t=t.checked,t!=null&&fh(e,"checked",t,!1)}function Fd(e,t){kv(e,t);var r=kn(t.value),n=t.type;if(r!=null)n==="number"?(r===0&&e.value===""||e.value!=r)&&(e.value=""+r):e.value!==""+r&&(e.value=""+r);else if(n==="submit"||n==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?Od(e,t.type,r):t.hasOwnProperty("defaultValue")&&Od(e,t.type,kn(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Tm(e,t,r){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var n=t.type;if(!(n!=="submit"&&n!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,r||t===e.value||(e.value=t),e.defaultValue=t}r=e.name,r!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,r!==""&&(e.name=r)}function Od(e,t,r){(t!=="number"||Cl(e.ownerDocument)!==e)&&(r==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+r&&(e.defaultValue=""+r))}var ji=Array.isArray;function No(e,t,r,n){if(e=e.options,t){t={};for(var o=0;o"+t.valueOf().toString()+"",t=va.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function ps(e,t){if(t){var r=e.firstChild;if(r&&r===e.lastChild&&r.nodeType===3){r.nodeValue=t;return}}e.textContent=t}var Ki={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},vk=["Webkit","ms","Moz","O"];Object.keys(Ki).forEach(function(e){vk.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Ki[t]=Ki[e]})});function Pv(e,t,r){return t==null||typeof t=="boolean"||t===""?"":r||typeof t!="number"||t===0||Ki.hasOwnProperty(e)&&Ki[e]?(""+t).trim():t+"px"}function Ev(e,t){e=e.style;for(var r in t)if(t.hasOwnProperty(r)){var n=r.indexOf("--")===0,o=Pv(r,t[r],n);r==="float"&&(r="cssFloat"),n?e.setProperty(r,o):e[r]=o}}var bk=Pe({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 Bd(e,t){if(t){if(bk[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(z(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(z(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(z(61))}if(t.style!=null&&typeof t.style!="object")throw Error(z(62))}}function Id(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 Nd=null;function gh(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Vd=null,Vo=null,Uo=null;function $m(e){if(e=Ks(e)){if(typeof Vd!="function")throw Error(z(280));var t=e.stateNode;t&&(t=gu(t),Vd(e.stateNode,e.type,t))}}function $v(e){Vo?Uo?Uo.push(e):Uo=[e]:Vo=e}function Av(){if(Vo){var e=Vo,t=Uo;if(Uo=Vo=null,$m(e),t)for(e=0;e>>=0,e===0?32:31-(Ak(e)/Rk|0)|0}var ba=64,Sa=4194304;function Di(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 El(e,t){var r=e.pendingLanes;if(r===0)return 0;var n=0,o=e.suspendedLanes,i=e.pingedLanes,s=r&268435455;if(s!==0){var a=s&~o;a!==0?n=Di(a):(i&=s,i!==0&&(n=Di(i)))}else s=r&~o,s!==0?n=Di(s):i!==0&&(n=Di(i));if(n===0)return 0;if(t!==0&&t!==n&&!(t&o)&&(o=n&-n,i=t&-t,o>=i||o===16&&(i&4194240)!==0))return t;if(n&4&&(n|=r&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=n;0r;r++)t.push(e);return t}function Ws(e,t,r){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-or(t),e[t]=r}function Fk(e,t){var r=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 n=e.eventTimes;for(e=e.expirationTimes;0=Xi),Dm=String.fromCharCode(32),Bm=!1;function Yv(e,t){switch(e){case"keyup":return uC.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Qv(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var xo=!1;function dC(e,t){switch(e){case"compositionend":return Qv(t);case"keypress":return t.which!==32?null:(Bm=!0,Dm);case"textInput":return e=t.data,e===Dm&&Bm?null:e;default:return null}}function fC(e,t){if(xo)return e==="compositionend"||!Ch&&Yv(e,t)?(e=qv(),qa=xh=un=null,xo=!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:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=Um(r)}}function t1(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?t1(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function r1(){for(var e=window,t=Cl();t instanceof e.HTMLIFrameElement;){try{var r=typeof t.contentWindow.location.href=="string"}catch{r=!1}if(r)e=t.contentWindow;else break;t=Cl(e.document)}return t}function _h(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 xC(e){var t=r1(),r=e.focusedElem,n=e.selectionRange;if(t!==r&&r&&r.ownerDocument&&t1(r.ownerDocument.documentElement,r)){if(n!==null&&_h(r)){if(t=n.start,e=n.end,e===void 0&&(e=t),"selectionStart"in r)r.selectionStart=t,r.selectionEnd=Math.min(e,r.value.length);else if(e=(t=r.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var o=r.textContent.length,i=Math.min(n.start,o);n=n.end===void 0?i:Math.min(n.end,o),!e.extend&&i>n&&(o=n,n=i,i=o),o=Hm(r,i);var s=Hm(r,n);o&&s&&(e.rangeCount!==1||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==s.node||e.focusOffset!==s.offset)&&(t=t.createRange(),t.setStart(o.node,o.offset),e.removeAllRanges(),i>n?(e.addRange(t),e.extend(s.node,s.offset)):(t.setEnd(s.node,s.offset),e.addRange(t)))}}for(t=[],e=r;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof r.focus=="function"&&r.focus(),r=0;r=document.documentMode,wo=null,qd=null,Qi=null,Xd=!1;function Wm(e,t,r){var n=r.window===r?r.document:r.nodeType===9?r:r.ownerDocument;Xd||wo==null||wo!==Cl(n)||(n=wo,"selectionStart"in n&&_h(n)?n={start:n.selectionStart,end:n.selectionEnd}:(n=(n.ownerDocument&&n.ownerDocument.defaultView||window).getSelection(),n={anchorNode:n.anchorNode,anchorOffset:n.anchorOffset,focusNode:n.focusNode,focusOffset:n.focusOffset}),Qi&&Ss(Qi,n)||(Qi=n,n=Rl(qd,"onSelect"),0_o||(e.current=tf[_o],tf[_o]=null,_o--)}function pe(e,t){_o++,tf[_o]=e.current,e.current=t}var Cn={},nt=En(Cn),mt=En(!1),Jn=Cn;function Jo(e,t){var r=e.type.contextTypes;if(!r)return Cn;var n=e.stateNode;if(n&&n.__reactInternalMemoizedUnmaskedChildContext===t)return n.__reactInternalMemoizedMaskedChildContext;var o={},i;for(i in r)o[i]=t[i];return n&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function gt(e){return e=e.childContextTypes,e!=null}function Ml(){Se(mt),Se(nt)}function Zm(e,t,r){if(nt.current!==Cn)throw Error(z(168));pe(nt,t),pe(mt,r)}function d1(e,t,r){var n=e.stateNode;if(t=t.childContextTypes,typeof n.getChildContext!="function")return r;n=n.getChildContext();for(var o in n)if(!(o in t))throw Error(z(108,gk(e)||"Unknown",o));return Pe({},r,n)}function Ll(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Cn,Jn=nt.current,pe(nt,e),pe(mt,mt.current),!0}function Jm(e,t,r){var n=e.stateNode;if(!n)throw Error(z(169));r?(e=d1(e,t,Jn),n.__reactInternalMemoizedMergedChildContext=e,Se(mt),Se(nt),pe(nt,e)):Se(mt),pe(mt,r)}var Pr=null,yu=!1,jc=!1;function f1(e){Pr===null?Pr=[e]:Pr.push(e)}function MC(e){yu=!0,f1(e)}function $n(){if(!jc&&Pr!==null){jc=!0;var e=0,t=le;try{var r=Pr;for(le=1;e>=s,o-=s,Ar=1<<32-or(t)+o|r<A?(O=E,E=null):O=E.sibling;var j=f(g,E,y[A],k);if(j===null){E===null&&(E=O);break}e&&E&&j.alternate===null&&t(g,E),h=i(j,h,A),R===null?P=j:R.sibling=j,R=j,E=O}if(A===y.length)return r(g,E),ke&&jn(g,A),P;if(E===null){for(;AA?(O=E,E=null):O=E.sibling;var de=f(g,E,j.value,k);if(de===null){E===null&&(E=O);break}e&&E&&de.alternate===null&&t(g,E),h=i(de,h,A),R===null?P=de:R.sibling=de,R=de,E=O}if(j.done)return r(g,E),ke&&jn(g,A),P;if(E===null){for(;!j.done;A++,j=y.next())j=d(g,j.value,k),j!==null&&(h=i(j,h,A),R===null?P=j:R.sibling=j,R=j);return ke&&jn(g,A),P}for(E=n(g,E);!j.done;A++,j=y.next())j=p(E,g,A,j.value,k),j!==null&&(e&&j.alternate!==null&&E.delete(j.key===null?A:j.key),h=i(j,h,A),R===null?P=j:R.sibling=j,R=j);return e&&E.forEach(function(ye){return t(g,ye)}),ke&&jn(g,A),P}function C(g,h,y,k){if(typeof y=="object"&&y!==null&&y.type===So&&y.key===null&&(y=y.props.children),typeof y=="object"&&y!==null){switch(y.$$typeof){case ga:e:{for(var P=y.key,R=h;R!==null;){if(R.key===P){if(P=y.type,P===So){if(R.tag===7){r(g,R.sibling),h=o(R,y.props.children),h.return=g,g=h;break e}}else if(R.elementType===P||typeof P=="object"&&P!==null&&P.$$typeof===rn&&s0(P)===R.type){r(g,R.sibling),h=o(R,y.props),h.ref=Ti(g,R,y),h.return=g,g=h;break e}r(g,R);break}else t(g,R);R=R.sibling}y.type===So?(h=Xn(y.props.children,g.mode,k,y.key),h.return=g,g=h):(k=rl(y.type,y.key,y.props,null,g.mode,k),k.ref=Ti(g,h,y),k.return=g,g=k)}return s(g);case bo:e:{for(R=y.key;h!==null;){if(h.key===R)if(h.tag===4&&h.stateNode.containerInfo===y.containerInfo&&h.stateNode.implementation===y.implementation){r(g,h.sibling),h=o(h,y.children||[]),h.return=g,g=h;break e}else{r(g,h);break}else t(g,h);h=h.sibling}h=Wc(y,g.mode,k),h.return=g,g=h}return s(g);case rn:return R=y._init,C(g,h,R(y._payload),k)}if(ji(y))return m(g,h,y,k);if(xi(y))return v(g,h,y,k);Pa(g,y)}return typeof y=="string"&&y!==""||typeof y=="number"?(y=""+y,h!==null&&h.tag===6?(r(g,h.sibling),h=o(h,y),h.return=g,g=h):(r(g,h),h=Hc(y,g.mode,k),h.return=g,g=h),s(g)):r(g,h)}return C}var ti=S1(!0),x1=S1(!1),qs={},vr=En(qs),Cs=En(qs),_s=En(qs);function Wn(e){if(e===qs)throw Error(z(174));return e}function Lh(e,t){switch(pe(_s,t),pe(Cs,e),pe(vr,qs),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Dd(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=Dd(t,e)}Se(vr),pe(vr,t)}function ri(){Se(vr),Se(Cs),Se(_s)}function w1(e){Wn(_s.current);var t=Wn(vr.current),r=Dd(t,e.type);t!==r&&(pe(Cs,e),pe(vr,r))}function Fh(e){Cs.current===e&&(Se(vr),Se(Cs))}var Ce=En(0);function Il(e){for(var t=e;t!==null;){if(t.tag===13){var r=t.memoizedState;if(r!==null&&(r=r.dehydrated,r===null||r.data==="$?"||r.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 Dc=[];function Oh(){for(var e=0;er?r:4,e(!0);var n=Bc.transition;Bc.transition={};try{e(!1),t()}finally{le=r,Bc.transition=n}}function D1(){return qt().memoizedState}function jC(e,t,r){var n=vn(e);if(r={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null},B1(e))I1(t,r);else if(r=g1(e,t,r,n),r!==null){var o=at();ir(r,e,n,o),N1(r,t,n)}}function DC(e,t,r){var n=vn(e),o={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null};if(B1(e))I1(t,o);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var s=t.lastRenderedState,a=i(s,r);if(o.hasEagerState=!0,o.eagerState=a,sr(a,s)){var l=t.interleaved;l===null?(o.next=o,zh(t)):(o.next=l.next,l.next=o),t.interleaved=o;return}}catch{}finally{}r=g1(e,t,o,n),r!==null&&(o=at(),ir(r,e,n,o),N1(r,t,n))}}function B1(e){var t=e.alternate;return e===Te||t!==null&&t===Te}function I1(e,t){Zi=Nl=!0;var r=e.pending;r===null?t.next=t:(t.next=r.next,r.next=t),e.pending=t}function N1(e,t,r){if(r&4194240){var n=t.lanes;n&=e.pendingLanes,r|=n,t.lanes=r,vh(e,r)}}var Vl={readContext:Kt,useCallback:Je,useContext:Je,useEffect:Je,useImperativeHandle:Je,useInsertionEffect:Je,useLayoutEffect:Je,useMemo:Je,useReducer:Je,useRef:Je,useState:Je,useDebugValue:Je,useDeferredValue:Je,useTransition:Je,useMutableSource:Je,useSyncExternalStore:Je,useId:Je,unstable_isNewReconciler:!1},BC={readContext:Kt,useCallback:function(e,t){return dr().memoizedState=[e,t===void 0?null:t],e},useContext:Kt,useEffect:l0,useImperativeHandle:function(e,t,r){return r=r!=null?r.concat([e]):null,Za(4194308,4,M1.bind(null,t,e),r)},useLayoutEffect:function(e,t){return Za(4194308,4,e,t)},useInsertionEffect:function(e,t){return Za(4,2,e,t)},useMemo:function(e,t){var r=dr();return t=t===void 0?null:t,e=e(),r.memoizedState=[e,t],e},useReducer:function(e,t,r){var n=dr();return t=r!==void 0?r(t):t,n.memoizedState=n.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},n.queue=e,e=e.dispatch=jC.bind(null,Te,e),[n.memoizedState,e]},useRef:function(e){var t=dr();return e={current:e},t.memoizedState=e},useState:a0,useDebugValue:Nh,useDeferredValue:function(e){return dr().memoizedState=e},useTransition:function(){var e=a0(!1),t=e[0];return e=OC.bind(null,e[1]),dr().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,r){var n=Te,o=dr();if(ke){if(r===void 0)throw Error(z(407));r=r()}else{if(r=t(),Ge===null)throw Error(z(349));to&30||_1(n,t,r)}o.memoizedState=r;var i={value:r,getSnapshot:t};return o.queue=i,l0(P1.bind(null,n,i,e),[e]),n.flags|=2048,Es(9,T1.bind(null,n,i,r,t),void 0,null),r},useId:function(){var e=dr(),t=Ge.identifierPrefix;if(ke){var r=Rr,n=Ar;r=(n&~(1<<32-or(n)-1)).toString(32)+r,t=":"+t+"R"+r,r=Ts++,0<\/script>",e=e.removeChild(e.firstChild)):typeof n.is=="string"?e=s.createElement(r,{is:n.is}):(e=s.createElement(r),r==="select"&&(s=e,n.multiple?s.multiple=!0:n.size&&(s.size=n.size))):e=s.createElementNS(e,r),e[gr]=t,e[ks]=n,Y1(e,t,!1,!1),t.stateNode=e;e:{switch(s=Bd(r,n),r){case"dialog":ve("cancel",e),ve("close",e),o=n;break;case"iframe":case"object":case"embed":ve("load",e),o=n;break;case"video":case"audio":for(o=0;ooi&&(t.flags|=128,n=!0,Pi(i,!1),t.lanes=4194304)}else{if(!n)if(e=Il(s),e!==null){if(t.flags|=128,n=!0,r=e.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),Pi(i,!0),i.tail===null&&i.tailMode==="hidden"&&!s.alternate&&!ke)return et(t),null}else 2*ze()-i.renderingStartTime>oi&&r!==1073741824&&(t.flags|=128,n=!0,Pi(i,!1),t.lanes=4194304);i.isBackwards?(s.sibling=t.child,t.child=s):(r=i.last,r!==null?r.sibling=s:t.child=s,i.last=s)}return i.tail!==null?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=ze(),t.sibling=null,r=Ce.current,pe(Ce,n?r&1|2:r&1),t):(et(t),null);case 22:case 23:return Gh(),n=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==n&&(t.flags|=8192),n&&t.mode&1?Ct&1073741824&&(et(t),t.subtreeFlags&6&&(t.flags|=8192)):et(t),null;case 24:return null;case 25:return null}throw Error(z(156,t.tag))}function KC(e,t){switch(Th(t),t.tag){case 1:return gt(t.type)&&Ml(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return ri(),Se(mt),Se(nt),Fh(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return Lh(t),null;case 13:if(Se(Ce),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(z(340));ei()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Se(Ce),null;case 4:return ri(),null;case 10:return Ah(t.type._context),null;case 22:case 23:return Gh(),null;case 24:return null;default:return null}}var $a=!1,rt=!1,qC=typeof WeakSet=="function"?WeakSet:Set,F=null;function $o(e,t){var r=e.ref;if(r!==null)if(typeof r=="function")try{r(null)}catch(n){$e(e,t,n)}else r.current=null}function hf(e,t,r){try{r()}catch(n){$e(e,t,n)}}var y0=!1;function XC(e,t){if(Xd=$l,e=r1(),Ch(e)){if("selectionStart"in e)var r={start:e.selectionStart,end:e.selectionEnd};else e:{r=(r=e.ownerDocument)&&r.defaultView||window;var n=r.getSelection&&r.getSelection();if(n&&n.rangeCount!==0){r=n.anchorNode;var o=n.anchorOffset,i=n.focusNode;n=n.focusOffset;try{r.nodeType,i.nodeType}catch{r=null;break e}var s=0,a=-1,l=-1,u=0,c=0,d=e,f=null;t:for(;;){for(var p;d!==r||o!==0&&d.nodeType!==3||(a=s+o),d!==i||n!==0&&d.nodeType!==3||(l=s+n),d.nodeType===3&&(s+=d.nodeValue.length),(p=d.firstChild)!==null;)f=d,d=p;for(;;){if(d===e)break t;if(f===r&&++u===o&&(a=s),f===i&&++c===n&&(l=s),(p=d.nextSibling)!==null)break;d=f,f=d.parentNode}d=p}r=a===-1||l===-1?null:{start:a,end:l}}else r=null}r=r||{start:0,end:0}}else r=null;for(Yd={focusedElem:e,selectionRange:r},$l=!1,F=t;F!==null;)if(t=F,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,F=e;else for(;F!==null;){t=F;try{var m=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(m!==null){var v=m.memoizedProps,C=m.memoizedState,g=t.stateNode,h=g.getSnapshotBeforeUpdate(t.elementType===t.type?v:Jt(t.type,v),C);g.__reactInternalSnapshotBeforeUpdate=h}break;case 3:var y=t.stateNode.containerInfo;y.nodeType===1?y.textContent="":y.nodeType===9&&y.documentElement&&y.removeChild(y.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(z(163))}}catch(k){$e(t,t.return,k)}if(e=t.sibling,e!==null){e.return=t.return,F=e;break}F=t.return}return m=y0,y0=!1,m}function Ji(e,t,r){var n=t.updateQueue;if(n=n!==null?n.lastEffect:null,n!==null){var o=n=n.next;do{if((o.tag&e)===e){var i=o.destroy;o.destroy=void 0,i!==void 0&&hf(t,r,i)}o=o.next}while(o!==n)}}function Su(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var r=t=t.next;do{if((r.tag&e)===e){var n=r.create;r.destroy=n()}r=r.next}while(r!==t)}}function pf(e){var t=e.ref;if(t!==null){var r=e.stateNode;switch(e.tag){case 5:e=r;break;default:e=r}typeof t=="function"?t(e):t.current=e}}function J1(e){var t=e.alternate;t!==null&&(e.alternate=null,J1(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[gr],delete t[ks],delete t[Jd],delete t[RC],delete t[zC])),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 eb(e){return e.tag===5||e.tag===3||e.tag===4}function v0(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||eb(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 mf(e,t,r){var n=e.tag;if(n===5||n===6)e=e.stateNode,t?r.nodeType===8?r.parentNode.insertBefore(e,t):r.insertBefore(e,t):(r.nodeType===8?(t=r.parentNode,t.insertBefore(e,r)):(t=r,t.appendChild(e)),r=r._reactRootContainer,r!=null||t.onclick!==null||(t.onclick=zl));else if(n!==4&&(e=e.child,e!==null))for(mf(e,t,r),e=e.sibling;e!==null;)mf(e,t,r),e=e.sibling}function gf(e,t,r){var n=e.tag;if(n===5||n===6)e=e.stateNode,t?r.insertBefore(e,t):r.appendChild(e);else if(n!==4&&(e=e.child,e!==null))for(gf(e,t,r),e=e.sibling;e!==null;)gf(e,t,r),e=e.sibling}var Xe=null,er=!1;function Yr(e,t,r){for(r=r.child;r!==null;)tb(e,t,r),r=r.sibling}function tb(e,t,r){if(yr&&typeof yr.onCommitFiberUnmount=="function")try{yr.onCommitFiberUnmount(fu,r)}catch{}switch(r.tag){case 5:rt||$o(r,t);case 6:var n=Xe,o=er;Xe=null,Yr(e,t,r),Xe=n,er=o,Xe!==null&&(er?(e=Xe,r=r.stateNode,e.nodeType===8?e.parentNode.removeChild(r):e.removeChild(r)):Xe.removeChild(r.stateNode));break;case 18:Xe!==null&&(er?(e=Xe,r=r.stateNode,e.nodeType===8?Fc(e.parentNode,r):e.nodeType===1&&Fc(e,r),vs(e)):Fc(Xe,r.stateNode));break;case 4:n=Xe,o=er,Xe=r.stateNode.containerInfo,er=!0,Yr(e,t,r),Xe=n,er=o;break;case 0:case 11:case 14:case 15:if(!rt&&(n=r.updateQueue,n!==null&&(n=n.lastEffect,n!==null))){o=n=n.next;do{var i=o,s=i.destroy;i=i.tag,s!==void 0&&(i&2||i&4)&&hf(r,t,s),o=o.next}while(o!==n)}Yr(e,t,r);break;case 1:if(!rt&&($o(r,t),n=r.stateNode,typeof n.componentWillUnmount=="function"))try{n.props=r.memoizedProps,n.state=r.memoizedState,n.componentWillUnmount()}catch(a){$e(r,t,a)}Yr(e,t,r);break;case 21:Yr(e,t,r);break;case 22:r.mode&1?(rt=(n=rt)||r.memoizedState!==null,Yr(e,t,r),rt=n):Yr(e,t,r);break;default:Yr(e,t,r)}}function b0(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var r=e.stateNode;r===null&&(r=e.stateNode=new qC),t.forEach(function(n){var o=o5.bind(null,e,n);r.has(n)||(r.add(n),n.then(o,o))})}}function Qt(e,t){var r=t.deletions;if(r!==null)for(var n=0;no&&(o=s),n&=~i}if(n=o,n=ze()-n,n=(120>n?120:480>n?480:1080>n?1080:1920>n?1920:3e3>n?3e3:4320>n?4320:1960*QC(n/1960))-n,10e?16:e,cn===null)var n=!1;else{if(e=cn,cn=null,Wl=0,Q&6)throw Error(z(331));var o=Q;for(Q|=4,F=e.current;F!==null;){var i=F,s=i.child;if(F.flags&16){var a=i.deletions;if(a!==null){for(var l=0;lze()-Hh?qn(e,0):Uh|=r),yt(e,t)}function ub(e,t){t===0&&(e.mode&1?(t=Sa,Sa<<=1,!(Sa&130023424)&&(Sa=4194304)):t=1);var r=at();e=Vr(e,t),e!==null&&(Ws(e,t,r),yt(e,r))}function n5(e){var t=e.memoizedState,r=0;t!==null&&(r=t.retryLane),ub(e,r)}function o5(e,t){var r=0;switch(e.tag){case 13:var n=e.stateNode,o=e.memoizedState;o!==null&&(r=o.retryLane);break;case 19:n=e.stateNode;break;default:throw Error(z(314))}n!==null&&n.delete(t),ub(e,r)}var cb;cb=function(e,t,r){if(e!==null)if(e.memoizedProps!==t.pendingProps||mt.current)pt=!0;else{if(!(e.lanes&r)&&!(t.flags&128))return pt=!1,WC(e,t,r);pt=!!(e.flags&131072)}else pt=!1,ke&&t.flags&1048576&&h1(t,Ol,t.index);switch(t.lanes=0,t.tag){case 2:var n=t.type;Ja(e,t),e=t.pendingProps;var o=Jo(t,nt.current);Wo(t,r),o=jh(null,t,n,e,o,r);var i=Dh();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,gt(n)?(i=!0,Ll(t)):i=!1,t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,zh(t),o.updater=vu,t.stateNode=o,o._reactInternals=t,sf(t,n,e,r),t=uf(null,t,n,!0,i,r)):(t.tag=0,ke&&i&&_h(t),it(null,t,o,r),t=t.child),t;case 16:n=t.elementType;e:{switch(Ja(e,t),e=t.pendingProps,o=n._init,n=o(n._payload),t.type=n,o=t.tag=s5(n),e=Jt(n,e),o){case 0:t=lf(null,t,n,e,r);break e;case 1:t=p0(null,t,n,e,r);break e;case 11:t=f0(null,t,n,e,r);break e;case 14:t=h0(null,t,n,Jt(n.type,e),r);break e}throw Error(z(306,n,""))}return t;case 0:return n=t.type,o=t.pendingProps,o=t.elementType===n?o:Jt(n,o),lf(e,t,n,o,r);case 1:return n=t.type,o=t.pendingProps,o=t.elementType===n?o:Jt(n,o),p0(e,t,n,o,r);case 3:e:{if(K1(t),e===null)throw Error(z(387));n=t.pendingProps,i=t.memoizedState,o=i.element,y1(e,t),Bl(t,n,null,r);var s=t.memoizedState;if(n=s.element,i.isDehydrated)if(i={element:n,isDehydrated:!1,cache:s.cache,pendingSuspenseBoundaries:s.pendingSuspenseBoundaries,transitions:s.transitions},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){o=ni(Error(z(423)),t),t=m0(e,t,n,r,o);break e}else if(n!==o){o=ni(Error(z(424)),t),t=m0(e,t,n,r,o);break e}else for(_t=mn(t.stateNode.containerInfo.firstChild),Pt=t,ke=!0,tr=null,r=x1(t,null,n,r),t.child=r;r;)r.flags=r.flags&-3|4096,r=r.sibling;else{if(ei(),n===o){t=Ur(e,t,r);break e}it(e,t,n,r)}t=t.child}return t;case 5:return w1(t),e===null&&rf(t),n=t.type,o=t.pendingProps,i=e!==null?e.memoizedProps:null,s=o.children,Qd(n,o)?s=null:i!==null&&Qd(n,i)&&(t.flags|=32),G1(e,t),it(e,t,s,r),t.child;case 6:return e===null&&rf(t),null;case 13:return q1(e,t,r);case 4:return Mh(t,t.stateNode.containerInfo),n=t.pendingProps,e===null?t.child=ti(t,null,n,r):it(e,t,n,r),t.child;case 11:return n=t.type,o=t.pendingProps,o=t.elementType===n?o:Jt(n,o),f0(e,t,n,o,r);case 7:return it(e,t,t.pendingProps,r),t.child;case 8:return it(e,t,t.pendingProps.children,r),t.child;case 12:return it(e,t,t.pendingProps.children,r),t.child;case 10:e:{if(n=t.type._context,o=t.pendingProps,i=t.memoizedProps,s=o.value,pe(jl,n._currentValue),n._currentValue=s,i!==null)if(sr(i.value,s)){if(i.children===o.children&&!mt.current){t=Ur(e,t,r);break e}}else for(i=t.child,i!==null&&(i.return=t);i!==null;){var a=i.dependencies;if(a!==null){s=i.child;for(var l=a.firstContext;l!==null;){if(l.context===n){if(i.tag===1){l=Lr(-1,r&-r),l.tag=2;var u=i.updateQueue;if(u!==null){u=u.shared;var c=u.pending;c===null?l.next=l:(l.next=c.next,c.next=l),u.pending=l}}i.lanes|=r,l=i.alternate,l!==null&&(l.lanes|=r),nf(i.return,r,t),a.lanes|=r;break}l=l.next}}else if(i.tag===10)s=i.type===t.type?null:i.child;else if(i.tag===18){if(s=i.return,s===null)throw Error(z(341));s.lanes|=r,a=s.alternate,a!==null&&(a.lanes|=r),nf(s,r,t),s=i.sibling}else s=i.child;if(s!==null)s.return=i;else for(s=i;s!==null;){if(s===t){s=null;break}if(i=s.sibling,i!==null){i.return=s.return,s=i;break}s=s.return}i=s}it(e,t,o.children,r),t=t.child}return t;case 9:return o=t.type,n=t.pendingProps.children,Wo(t,r),o=Kt(o),n=n(o),t.flags|=1,it(e,t,n,r),t.child;case 14:return n=t.type,o=Jt(n,t.pendingProps),o=Jt(n.type,o),h0(e,t,n,o,r);case 15:return H1(e,t,t.type,t.pendingProps,r);case 17:return n=t.type,o=t.pendingProps,o=t.elementType===n?o:Jt(n,o),Ja(e,t),t.tag=1,gt(n)?(e=!0,Ll(t)):e=!1,Wo(t,r),b1(t,n,o),sf(t,n,o,r),uf(null,t,n,!0,e,r);case 19:return X1(e,t,r);case 22:return W1(e,t,r)}throw Error(z(156,t.tag))};function db(e,t){return jv(e,t)}function i5(e,t,r,n){this.tag=e,this.key=r,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=n,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Ut(e,t,r,n){return new i5(e,t,r,n)}function qh(e){return e=e.prototype,!(!e||!e.isReactComponent)}function s5(e){if(typeof e=="function")return qh(e)?1:0;if(e!=null){if(e=e.$$typeof,e===hh)return 11;if(e===ph)return 14}return 2}function bn(e,t){var r=e.alternate;return r===null?(r=Ut(e.tag,t,e.key,e.mode),r.elementType=e.elementType,r.type=e.type,r.stateNode=e.stateNode,r.alternate=e,e.alternate=r):(r.pendingProps=t,r.type=e.type,r.flags=0,r.subtreeFlags=0,r.deletions=null),r.flags=e.flags&14680064,r.childLanes=e.childLanes,r.lanes=e.lanes,r.child=e.child,r.memoizedProps=e.memoizedProps,r.memoizedState=e.memoizedState,r.updateQueue=e.updateQueue,t=e.dependencies,r.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},r.sibling=e.sibling,r.index=e.index,r.ref=e.ref,r}function rl(e,t,r,n,o,i){var s=2;if(n=e,typeof e=="function")qh(e)&&(s=1);else if(typeof e=="string")s=5;else e:switch(e){case So:return Xn(r.children,o,i,t);case fh:s=8,o|=8;break;case $d:return e=Ut(12,r,t,o|2),e.elementType=$d,e.lanes=i,e;case Ad:return e=Ut(13,r,t,o),e.elementType=Ad,e.lanes=i,e;case Rd:return e=Ut(19,r,t,o),e.elementType=Rd,e.lanes=i,e;case Sv:return wu(r,o,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case vv:s=10;break e;case bv:s=9;break e;case hh:s=11;break e;case ph:s=14;break e;case rn:s=16,n=null;break e}throw Error(z(130,e==null?e:typeof e,""))}return t=Ut(s,r,t,o),t.elementType=e,t.type=n,t.lanes=i,t}function Xn(e,t,r,n){return e=Ut(7,e,n,t),e.lanes=r,e}function wu(e,t,r,n){return e=Ut(22,e,n,t),e.elementType=Sv,e.lanes=r,e.stateNode={isHidden:!1},e}function Uc(e,t,r){return e=Ut(6,e,null,t),e.lanes=r,e}function Hc(e,t,r){return t=Ut(4,e.children!==null?e.children:[],e.key,t),t.lanes=r,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function a5(e,t,r,n,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=Cc(0),this.expirationTimes=Cc(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Cc(0),this.identifierPrefix=n,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function Xh(e,t,r,n,o,i,s,a,l){return e=new a5(e,t,r,a,l),t===1?(t=1,i===!0&&(t|=8)):t=0,i=Ut(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:n,isDehydrated:r,cache:null,transitions:null,pendingSuspenseBoundaries:null},zh(i),e}function l5(e,t,r){var n=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(mb)}catch(e){console.error(e)}}mb(),hv.exports=zt;var Jh=hv.exports,P0=Jh;Pd.createRoot=P0.createRoot,Pd.hydrateRoot=P0.hydrateRoot;function h5(e){if(e.sheet)return e.sheet;for(var t=0;t0?Ye(pi,--bt):0,ii--,Oe===10&&(ii=1,Eu--),Oe}function Et(){return Oe=bt2||Rs(Oe)>3?"":" "}function T5(e,t){for(;--t&&Et()&&!(Oe<48||Oe>102||Oe>57&&Oe<65||Oe>70&&Oe<97););return Xs(e,nl()+(t<6&&br()==32&&Et()==32))}function wf(e){for(;Et();)switch(Oe){case e:return bt;case 34:case 39:e!==34&&e!==39&&wf(Oe);break;case 40:e===41&&wf(e);break;case 92:Et();break}return bt}function P5(e,t){for(;Et()&&e+Oe!==47+10;)if(e+Oe===42+42&&br()===47)break;return"/*"+Xs(t,bt-1)+"*"+Pu(e===47?e:Et())}function E5(e){for(;!Rs(br());)Et();return Xs(e,bt)}function $5(e){return xb(il("",null,null,null,[""],e=Sb(e),0,[0],e))}function il(e,t,r,n,o,i,s,a,l){for(var u=0,c=0,d=s,f=0,p=0,m=0,v=1,C=1,g=1,h=0,y="",k=o,P=i,R=n,E=y;C;)switch(m=h,h=Et()){case 40:if(m!=108&&Ye(E,d-1)==58){xf(E+=re(ol(h),"&","&\f"),"&\f")!=-1&&(g=-1);break}case 34:case 39:case 91:E+=ol(h);break;case 9:case 10:case 13:case 32:E+=_5(m);break;case 92:E+=T5(nl()-1,7);continue;case 47:switch(br()){case 42:case 47:za(A5(P5(Et(),nl()),t,r),l);break;default:E+="/"}break;case 123*v:a[u++]=pr(E)*g;case 125*v:case 59:case 0:switch(h){case 0:case 125:C=0;case 59+c:g==-1&&(E=re(E,/\f/g,"")),p>0&&pr(E)-d&&za(p>32?$0(E+";",n,r,d-1):$0(re(E," ","")+";",n,r,d-2),l);break;case 59:E+=";";default:if(za(R=E0(E,t,r,u,c,o,a,y,k=[],P=[],d),i),h===123)if(c===0)il(E,t,R,R,k,i,d,a,P);else switch(f===99&&Ye(E,3)===110?100:f){case 100:case 108:case 109:case 115:il(e,R,R,n&&za(E0(e,R,R,0,0,o,a,y,o,k=[],d),P),o,P,d,a,n?k:P);break;default:il(E,R,R,R,[""],P,0,a,P)}}u=c=p=0,v=g=1,y=E="",d=s;break;case 58:d=1+pr(E),p=m;default:if(v<1){if(h==123)--v;else if(h==125&&v++==0&&C5()==125)continue}switch(E+=Pu(h),h*v){case 38:g=c>0?1:(E+="\f",-1);break;case 44:a[u++]=(pr(E)-1)*g,g=1;break;case 64:br()===45&&(E+=ol(Et())),f=br(),c=d=pr(y=E+=E5(nl())),h++;break;case 45:m===45&&pr(E)==2&&(v=0)}}return i}function E0(e,t,r,n,o,i,s,a,l,u,c){for(var d=o-1,f=o===0?i:[""],p=rp(f),m=0,v=0,C=0;m0?f[g]+" "+h:re(h,/&\f/g,f[g])))&&(l[C++]=y);return $u(e,t,r,o===0?ep:a,l,u,c)}function A5(e,t,r){return $u(e,t,r,gb,Pu(k5()),As(e,2,-2),0)}function $0(e,t,r,n){return $u(e,t,r,tp,As(e,0,n),As(e,n+1,-1),n)}function Ko(e,t){for(var r="",n=rp(e),o=0;o6)switch(Ye(e,t+1)){case 109:if(Ye(e,t+4)!==45)break;case 102:return re(e,/(.+:)(.+)-([^]+)/,"$1"+te+"$2-$3$1"+ql+(Ye(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~xf(e,"stretch")?kb(re(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(Ye(e,t+1)!==115)break;case 6444:switch(Ye(e,pr(e)-3-(~xf(e,"!important")&&10))){case 107:return re(e,":",":"+te)+e;case 101:return re(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+te+(Ye(e,14)===45?"inline-":"")+"box$3$1"+te+"$2$3$1"+tt+"$2box$3")+e}break;case 5936:switch(Ye(e,t+11)){case 114:return te+e+tt+re(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return te+e+tt+re(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return te+e+tt+re(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return te+e+tt+e+e}return e}var B5=function(t,r,n,o){if(t.length>-1&&!t.return)switch(t.type){case tp:t.return=kb(t.value,t.length);break;case yb:return Ko([$i(t,{value:re(t.value,"@","@"+te)})],o);case ep:if(t.length)return w5(t.props,function(i){switch(x5(i,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Ko([$i(t,{props:[re(i,/:(read-\w+)/,":"+ql+"$1")]})],o);case"::placeholder":return Ko([$i(t,{props:[re(i,/:(plac\w+)/,":"+te+"input-$1")]}),$i(t,{props:[re(i,/:(plac\w+)/,":"+ql+"$1")]}),$i(t,{props:[re(i,/:(plac\w+)/,tt+"input-$1")]})],o)}return""})}},I5=[B5],N5=function(t){var r=t.key;if(r==="css"){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,function(v){var C=v.getAttribute("data-emotion");C.indexOf(" ")!==-1&&(document.head.appendChild(v),v.setAttribute("data-s",""))})}var o=t.stylisPlugins||I5,i={},s,a=[];s=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+r+' "]'),function(v){for(var C=v.getAttribute("data-emotion").split(" "),g=1;g<\/script>",e=e.removeChild(e.firstChild)):typeof n.is=="string"?e=s.createElement(r,{is:n.is}):(e=s.createElement(r),r==="select"&&(s=e,n.multiple?s.multiple=!0:n.size&&(s.size=n.size))):e=s.createElementNS(e,r),e[gr]=t,e[ks]=n,Y1(e,t,!1,!1),t.stateNode=e;e:{switch(s=Id(r,n),r){case"dialog":ve("cancel",e),ve("close",e),o=n;break;case"iframe":case"object":case"embed":ve("load",e),o=n;break;case"video":case"audio":for(o=0;ooi&&(t.flags|=128,n=!0,Pi(i,!1),t.lanes=4194304)}else{if(!n)if(e=Il(s),e!==null){if(t.flags|=128,n=!0,r=e.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),Pi(i,!0),i.tail===null&&i.tailMode==="hidden"&&!s.alternate&&!ke)return et(t),null}else 2*ze()-i.renderingStartTime>oi&&r!==1073741824&&(t.flags|=128,n=!0,Pi(i,!1),t.lanes=4194304);i.isBackwards?(s.sibling=t.child,t.child=s):(r=i.last,r!==null?r.sibling=s:t.child=s,i.last=s)}return i.tail!==null?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=ze(),t.sibling=null,r=Ce.current,pe(Ce,n?r&1|2:r&1),t):(et(t),null);case 22:case 23:return Kh(),n=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==n&&(t.flags|=8192),n&&t.mode&1?Ct&1073741824&&(et(t),t.subtreeFlags&6&&(t.flags|=8192)):et(t),null;case 24:return null;case 25:return null}throw Error(z(156,t.tag))}function KC(e,t){switch(Ph(t),t.tag){case 1:return gt(t.type)&&Ml(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return ri(),Se(mt),Se(nt),Oh(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return Fh(t),null;case 13:if(Se(Ce),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(z(340));ei()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Se(Ce),null;case 4:return ri(),null;case 10:return Rh(t.type._context),null;case 22:case 23:return Kh(),null;case 24:return null;default:return null}}var $a=!1,rt=!1,qC=typeof WeakSet=="function"?WeakSet:Set,F=null;function $o(e,t){var r=e.ref;if(r!==null)if(typeof r=="function")try{r(null)}catch(n){$e(e,t,n)}else r.current=null}function pf(e,t,r){try{r()}catch(n){$e(e,t,n)}}var y0=!1;function XC(e,t){if(Yd=$l,e=r1(),_h(e)){if("selectionStart"in e)var r={start:e.selectionStart,end:e.selectionEnd};else e:{r=(r=e.ownerDocument)&&r.defaultView||window;var n=r.getSelection&&r.getSelection();if(n&&n.rangeCount!==0){r=n.anchorNode;var o=n.anchorOffset,i=n.focusNode;n=n.focusOffset;try{r.nodeType,i.nodeType}catch{r=null;break e}var s=0,a=-1,l=-1,u=0,c=0,d=e,f=null;t:for(;;){for(var p;d!==r||o!==0&&d.nodeType!==3||(a=s+o),d!==i||n!==0&&d.nodeType!==3||(l=s+n),d.nodeType===3&&(s+=d.nodeValue.length),(p=d.firstChild)!==null;)f=d,d=p;for(;;){if(d===e)break t;if(f===r&&++u===o&&(a=s),f===i&&++c===n&&(l=s),(p=d.nextSibling)!==null)break;d=f,f=d.parentNode}d=p}r=a===-1||l===-1?null:{start:a,end:l}}else r=null}r=r||{start:0,end:0}}else r=null;for(Qd={focusedElem:e,selectionRange:r},$l=!1,F=t;F!==null;)if(t=F,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,F=e;else for(;F!==null;){t=F;try{var m=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(m!==null){var v=m.memoizedProps,C=m.memoizedState,g=t.stateNode,h=g.getSnapshotBeforeUpdate(t.elementType===t.type?v:Jt(t.type,v),C);g.__reactInternalSnapshotBeforeUpdate=h}break;case 3:var y=t.stateNode.containerInfo;y.nodeType===1?y.textContent="":y.nodeType===9&&y.documentElement&&y.removeChild(y.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(z(163))}}catch(k){$e(t,t.return,k)}if(e=t.sibling,e!==null){e.return=t.return,F=e;break}F=t.return}return m=y0,y0=!1,m}function Ji(e,t,r){var n=t.updateQueue;if(n=n!==null?n.lastEffect:null,n!==null){var o=n=n.next;do{if((o.tag&e)===e){var i=o.destroy;o.destroy=void 0,i!==void 0&&pf(t,r,i)}o=o.next}while(o!==n)}}function Su(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var r=t=t.next;do{if((r.tag&e)===e){var n=r.create;r.destroy=n()}r=r.next}while(r!==t)}}function mf(e){var t=e.ref;if(t!==null){var r=e.stateNode;switch(e.tag){case 5:e=r;break;default:e=r}typeof t=="function"?t(e):t.current=e}}function J1(e){var t=e.alternate;t!==null&&(e.alternate=null,J1(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[gr],delete t[ks],delete t[ef],delete t[RC],delete t[zC])),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 eb(e){return e.tag===5||e.tag===3||e.tag===4}function v0(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||eb(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 gf(e,t,r){var n=e.tag;if(n===5||n===6)e=e.stateNode,t?r.nodeType===8?r.parentNode.insertBefore(e,t):r.insertBefore(e,t):(r.nodeType===8?(t=r.parentNode,t.insertBefore(e,r)):(t=r,t.appendChild(e)),r=r._reactRootContainer,r!=null||t.onclick!==null||(t.onclick=zl));else if(n!==4&&(e=e.child,e!==null))for(gf(e,t,r),e=e.sibling;e!==null;)gf(e,t,r),e=e.sibling}function yf(e,t,r){var n=e.tag;if(n===5||n===6)e=e.stateNode,t?r.insertBefore(e,t):r.appendChild(e);else if(n!==4&&(e=e.child,e!==null))for(yf(e,t,r),e=e.sibling;e!==null;)yf(e,t,r),e=e.sibling}var Xe=null,er=!1;function Yr(e,t,r){for(r=r.child;r!==null;)tb(e,t,r),r=r.sibling}function tb(e,t,r){if(yr&&typeof yr.onCommitFiberUnmount=="function")try{yr.onCommitFiberUnmount(fu,r)}catch{}switch(r.tag){case 5:rt||$o(r,t);case 6:var n=Xe,o=er;Xe=null,Yr(e,t,r),Xe=n,er=o,Xe!==null&&(er?(e=Xe,r=r.stateNode,e.nodeType===8?e.parentNode.removeChild(r):e.removeChild(r)):Xe.removeChild(r.stateNode));break;case 18:Xe!==null&&(er?(e=Xe,r=r.stateNode,e.nodeType===8?Oc(e.parentNode,r):e.nodeType===1&&Oc(e,r),vs(e)):Oc(Xe,r.stateNode));break;case 4:n=Xe,o=er,Xe=r.stateNode.containerInfo,er=!0,Yr(e,t,r),Xe=n,er=o;break;case 0:case 11:case 14:case 15:if(!rt&&(n=r.updateQueue,n!==null&&(n=n.lastEffect,n!==null))){o=n=n.next;do{var i=o,s=i.destroy;i=i.tag,s!==void 0&&(i&2||i&4)&&pf(r,t,s),o=o.next}while(o!==n)}Yr(e,t,r);break;case 1:if(!rt&&($o(r,t),n=r.stateNode,typeof n.componentWillUnmount=="function"))try{n.props=r.memoizedProps,n.state=r.memoizedState,n.componentWillUnmount()}catch(a){$e(r,t,a)}Yr(e,t,r);break;case 21:Yr(e,t,r);break;case 22:r.mode&1?(rt=(n=rt)||r.memoizedState!==null,Yr(e,t,r),rt=n):Yr(e,t,r);break;default:Yr(e,t,r)}}function b0(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var r=e.stateNode;r===null&&(r=e.stateNode=new qC),t.forEach(function(n){var o=o5.bind(null,e,n);r.has(n)||(r.add(n),n.then(o,o))})}}function Qt(e,t){var r=t.deletions;if(r!==null)for(var n=0;no&&(o=s),n&=~i}if(n=o,n=ze()-n,n=(120>n?120:480>n?480:1080>n?1080:1920>n?1920:3e3>n?3e3:4320>n?4320:1960*QC(n/1960))-n,10e?16:e,cn===null)var n=!1;else{if(e=cn,cn=null,Wl=0,Q&6)throw Error(z(331));var o=Q;for(Q|=4,F=e.current;F!==null;){var i=F,s=i.child;if(F.flags&16){var a=i.deletions;if(a!==null){for(var l=0;lze()-Wh?qn(e,0):Hh|=r),yt(e,t)}function ub(e,t){t===0&&(e.mode&1?(t=Sa,Sa<<=1,!(Sa&130023424)&&(Sa=4194304)):t=1);var r=at();e=Vr(e,t),e!==null&&(Ws(e,t,r),yt(e,r))}function n5(e){var t=e.memoizedState,r=0;t!==null&&(r=t.retryLane),ub(e,r)}function o5(e,t){var r=0;switch(e.tag){case 13:var n=e.stateNode,o=e.memoizedState;o!==null&&(r=o.retryLane);break;case 19:n=e.stateNode;break;default:throw Error(z(314))}n!==null&&n.delete(t),ub(e,r)}var cb;cb=function(e,t,r){if(e!==null)if(e.memoizedProps!==t.pendingProps||mt.current)pt=!0;else{if(!(e.lanes&r)&&!(t.flags&128))return pt=!1,WC(e,t,r);pt=!!(e.flags&131072)}else pt=!1,ke&&t.flags&1048576&&h1(t,Ol,t.index);switch(t.lanes=0,t.tag){case 2:var n=t.type;Ja(e,t),e=t.pendingProps;var o=Jo(t,nt.current);Wo(t,r),o=Dh(null,t,n,e,o,r);var i=Bh();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,gt(n)?(i=!0,Ll(t)):i=!1,t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,Mh(t),o.updater=vu,t.stateNode=o,o._reactInternals=t,af(t,n,e,r),t=cf(null,t,n,!0,i,r)):(t.tag=0,ke&&i&&Th(t),it(null,t,o,r),t=t.child),t;case 16:n=t.elementType;e:{switch(Ja(e,t),e=t.pendingProps,o=n._init,n=o(n._payload),t.type=n,o=t.tag=s5(n),e=Jt(n,e),o){case 0:t=uf(null,t,n,e,r);break e;case 1:t=p0(null,t,n,e,r);break e;case 11:t=f0(null,t,n,e,r);break e;case 14:t=h0(null,t,n,Jt(n.type,e),r);break e}throw Error(z(306,n,""))}return t;case 0:return n=t.type,o=t.pendingProps,o=t.elementType===n?o:Jt(n,o),uf(e,t,n,o,r);case 1:return n=t.type,o=t.pendingProps,o=t.elementType===n?o:Jt(n,o),p0(e,t,n,o,r);case 3:e:{if(K1(t),e===null)throw Error(z(387));n=t.pendingProps,i=t.memoizedState,o=i.element,y1(e,t),Bl(t,n,null,r);var s=t.memoizedState;if(n=s.element,i.isDehydrated)if(i={element:n,isDehydrated:!1,cache:s.cache,pendingSuspenseBoundaries:s.pendingSuspenseBoundaries,transitions:s.transitions},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){o=ni(Error(z(423)),t),t=m0(e,t,n,r,o);break e}else if(n!==o){o=ni(Error(z(424)),t),t=m0(e,t,n,r,o);break e}else for(_t=mn(t.stateNode.containerInfo.firstChild),Pt=t,ke=!0,tr=null,r=x1(t,null,n,r),t.child=r;r;)r.flags=r.flags&-3|4096,r=r.sibling;else{if(ei(),n===o){t=Ur(e,t,r);break e}it(e,t,n,r)}t=t.child}return t;case 5:return w1(t),e===null&&nf(t),n=t.type,o=t.pendingProps,i=e!==null?e.memoizedProps:null,s=o.children,Zd(n,o)?s=null:i!==null&&Zd(n,i)&&(t.flags|=32),G1(e,t),it(e,t,s,r),t.child;case 6:return e===null&&nf(t),null;case 13:return q1(e,t,r);case 4:return Lh(t,t.stateNode.containerInfo),n=t.pendingProps,e===null?t.child=ti(t,null,n,r):it(e,t,n,r),t.child;case 11:return n=t.type,o=t.pendingProps,o=t.elementType===n?o:Jt(n,o),f0(e,t,n,o,r);case 7:return it(e,t,t.pendingProps,r),t.child;case 8:return it(e,t,t.pendingProps.children,r),t.child;case 12:return it(e,t,t.pendingProps.children,r),t.child;case 10:e:{if(n=t.type._context,o=t.pendingProps,i=t.memoizedProps,s=o.value,pe(jl,n._currentValue),n._currentValue=s,i!==null)if(sr(i.value,s)){if(i.children===o.children&&!mt.current){t=Ur(e,t,r);break e}}else for(i=t.child,i!==null&&(i.return=t);i!==null;){var a=i.dependencies;if(a!==null){s=i.child;for(var l=a.firstContext;l!==null;){if(l.context===n){if(i.tag===1){l=Lr(-1,r&-r),l.tag=2;var u=i.updateQueue;if(u!==null){u=u.shared;var c=u.pending;c===null?l.next=l:(l.next=c.next,c.next=l),u.pending=l}}i.lanes|=r,l=i.alternate,l!==null&&(l.lanes|=r),of(i.return,r,t),a.lanes|=r;break}l=l.next}}else if(i.tag===10)s=i.type===t.type?null:i.child;else if(i.tag===18){if(s=i.return,s===null)throw Error(z(341));s.lanes|=r,a=s.alternate,a!==null&&(a.lanes|=r),of(s,r,t),s=i.sibling}else s=i.child;if(s!==null)s.return=i;else for(s=i;s!==null;){if(s===t){s=null;break}if(i=s.sibling,i!==null){i.return=s.return,s=i;break}s=s.return}i=s}it(e,t,o.children,r),t=t.child}return t;case 9:return o=t.type,n=t.pendingProps.children,Wo(t,r),o=Kt(o),n=n(o),t.flags|=1,it(e,t,n,r),t.child;case 14:return n=t.type,o=Jt(n,t.pendingProps),o=Jt(n.type,o),h0(e,t,n,o,r);case 15:return H1(e,t,t.type,t.pendingProps,r);case 17:return n=t.type,o=t.pendingProps,o=t.elementType===n?o:Jt(n,o),Ja(e,t),t.tag=1,gt(n)?(e=!0,Ll(t)):e=!1,Wo(t,r),b1(t,n,o),af(t,n,o,r),cf(null,t,n,!0,e,r);case 19:return X1(e,t,r);case 22:return W1(e,t,r)}throw Error(z(156,t.tag))};function db(e,t){return jv(e,t)}function i5(e,t,r,n){this.tag=e,this.key=r,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=n,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Ut(e,t,r,n){return new i5(e,t,r,n)}function Xh(e){return e=e.prototype,!(!e||!e.isReactComponent)}function s5(e){if(typeof e=="function")return Xh(e)?1:0;if(e!=null){if(e=e.$$typeof,e===ph)return 11;if(e===mh)return 14}return 2}function bn(e,t){var r=e.alternate;return r===null?(r=Ut(e.tag,t,e.key,e.mode),r.elementType=e.elementType,r.type=e.type,r.stateNode=e.stateNode,r.alternate=e,e.alternate=r):(r.pendingProps=t,r.type=e.type,r.flags=0,r.subtreeFlags=0,r.deletions=null),r.flags=e.flags&14680064,r.childLanes=e.childLanes,r.lanes=e.lanes,r.child=e.child,r.memoizedProps=e.memoizedProps,r.memoizedState=e.memoizedState,r.updateQueue=e.updateQueue,t=e.dependencies,r.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},r.sibling=e.sibling,r.index=e.index,r.ref=e.ref,r}function rl(e,t,r,n,o,i){var s=2;if(n=e,typeof e=="function")Xh(e)&&(s=1);else if(typeof e=="string")s=5;else e:switch(e){case So:return Xn(r.children,o,i,t);case hh:s=8,o|=8;break;case Ad:return e=Ut(12,r,t,o|2),e.elementType=Ad,e.lanes=i,e;case Rd:return e=Ut(13,r,t,o),e.elementType=Rd,e.lanes=i,e;case zd:return e=Ut(19,r,t,o),e.elementType=zd,e.lanes=i,e;case Sv:return wu(r,o,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case vv:s=10;break e;case bv:s=9;break e;case ph:s=11;break e;case mh:s=14;break e;case rn:s=16,n=null;break e}throw Error(z(130,e==null?e:typeof e,""))}return t=Ut(s,r,t,o),t.elementType=e,t.type=n,t.lanes=i,t}function Xn(e,t,r,n){return e=Ut(7,e,n,t),e.lanes=r,e}function wu(e,t,r,n){return e=Ut(22,e,n,t),e.elementType=Sv,e.lanes=r,e.stateNode={isHidden:!1},e}function Hc(e,t,r){return e=Ut(6,e,null,t),e.lanes=r,e}function Wc(e,t,r){return t=Ut(4,e.children!==null?e.children:[],e.key,t),t.lanes=r,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function a5(e,t,r,n,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=_c(0),this.expirationTimes=_c(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=_c(0),this.identifierPrefix=n,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function Yh(e,t,r,n,o,i,s,a,l){return e=new a5(e,t,r,a,l),t===1?(t=1,i===!0&&(t|=8)):t=0,i=Ut(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:n,isDehydrated:r,cache:null,transitions:null,pendingSuspenseBoundaries:null},Mh(i),e}function l5(e,t,r){var n=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(mb)}catch(e){console.error(e)}}mb(),hv.exports=zt;var ep=hv.exports,P0=ep;Ed.createRoot=P0.createRoot,Ed.hydrateRoot=P0.hydrateRoot;function h5(e){if(e.sheet)return e.sheet;for(var t=0;t0?Ye(pi,--bt):0,ii--,Oe===10&&(ii=1,Eu--),Oe}function Et(){return Oe=bt2||Rs(Oe)>3?"":" "}function T5(e,t){for(;--t&&Et()&&!(Oe<48||Oe>102||Oe>57&&Oe<65||Oe>70&&Oe<97););return Xs(e,nl()+(t<6&&br()==32&&Et()==32))}function kf(e){for(;Et();)switch(Oe){case e:return bt;case 34:case 39:e!==34&&e!==39&&kf(Oe);break;case 40:e===41&&kf(e);break;case 92:Et();break}return bt}function P5(e,t){for(;Et()&&e+Oe!==47+10;)if(e+Oe===42+42&&br()===47)break;return"/*"+Xs(t,bt-1)+"*"+Pu(e===47?e:Et())}function E5(e){for(;!Rs(br());)Et();return Xs(e,bt)}function $5(e){return xb(il("",null,null,null,[""],e=Sb(e),0,[0],e))}function il(e,t,r,n,o,i,s,a,l){for(var u=0,c=0,d=s,f=0,p=0,m=0,v=1,C=1,g=1,h=0,y="",k=o,P=i,R=n,E=y;C;)switch(m=h,h=Et()){case 40:if(m!=108&&Ye(E,d-1)==58){wf(E+=re(ol(h),"&","&\f"),"&\f")!=-1&&(g=-1);break}case 34:case 39:case 91:E+=ol(h);break;case 9:case 10:case 13:case 32:E+=_5(m);break;case 92:E+=T5(nl()-1,7);continue;case 47:switch(br()){case 42:case 47:za(A5(P5(Et(),nl()),t,r),l);break;default:E+="/"}break;case 123*v:a[u++]=pr(E)*g;case 125*v:case 59:case 0:switch(h){case 0:case 125:C=0;case 59+c:g==-1&&(E=re(E,/\f/g,"")),p>0&&pr(E)-d&&za(p>32?$0(E+";",n,r,d-1):$0(re(E," ","")+";",n,r,d-2),l);break;case 59:E+=";";default:if(za(R=E0(E,t,r,u,c,o,a,y,k=[],P=[],d),i),h===123)if(c===0)il(E,t,R,R,k,i,d,a,P);else switch(f===99&&Ye(E,3)===110?100:f){case 100:case 108:case 109:case 115:il(e,R,R,n&&za(E0(e,R,R,0,0,o,a,y,o,k=[],d),P),o,P,d,a,n?k:P);break;default:il(E,R,R,R,[""],P,0,a,P)}}u=c=p=0,v=g=1,y=E="",d=s;break;case 58:d=1+pr(E),p=m;default:if(v<1){if(h==123)--v;else if(h==125&&v++==0&&C5()==125)continue}switch(E+=Pu(h),h*v){case 38:g=c>0?1:(E+="\f",-1);break;case 44:a[u++]=(pr(E)-1)*g,g=1;break;case 64:br()===45&&(E+=ol(Et())),f=br(),c=d=pr(y=E+=E5(nl())),h++;break;case 45:m===45&&pr(E)==2&&(v=0)}}return i}function E0(e,t,r,n,o,i,s,a,l,u,c){for(var d=o-1,f=o===0?i:[""],p=np(f),m=0,v=0,C=0;m0?f[g]+" "+h:re(h,/&\f/g,f[g])))&&(l[C++]=y);return $u(e,t,r,o===0?tp:a,l,u,c)}function A5(e,t,r){return $u(e,t,r,gb,Pu(k5()),As(e,2,-2),0)}function $0(e,t,r,n){return $u(e,t,r,rp,As(e,0,n),As(e,n+1,-1),n)}function Ko(e,t){for(var r="",n=np(e),o=0;o6)switch(Ye(e,t+1)){case 109:if(Ye(e,t+4)!==45)break;case 102:return re(e,/(.+:)(.+)-([^]+)/,"$1"+te+"$2-$3$1"+ql+(Ye(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~wf(e,"stretch")?kb(re(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(Ye(e,t+1)!==115)break;case 6444:switch(Ye(e,pr(e)-3-(~wf(e,"!important")&&10))){case 107:return re(e,":",":"+te)+e;case 101:return re(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+te+(Ye(e,14)===45?"inline-":"")+"box$3$1"+te+"$2$3$1"+tt+"$2box$3")+e}break;case 5936:switch(Ye(e,t+11)){case 114:return te+e+tt+re(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return te+e+tt+re(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return te+e+tt+re(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return te+e+tt+e+e}return e}var B5=function(t,r,n,o){if(t.length>-1&&!t.return)switch(t.type){case rp:t.return=kb(t.value,t.length);break;case yb:return Ko([$i(t,{value:re(t.value,"@","@"+te)})],o);case tp:if(t.length)return w5(t.props,function(i){switch(x5(i,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Ko([$i(t,{props:[re(i,/:(read-\w+)/,":"+ql+"$1")]})],o);case"::placeholder":return Ko([$i(t,{props:[re(i,/:(plac\w+)/,":"+te+"input-$1")]}),$i(t,{props:[re(i,/:(plac\w+)/,":"+ql+"$1")]}),$i(t,{props:[re(i,/:(plac\w+)/,tt+"input-$1")]})],o)}return""})}},I5=[B5],N5=function(t){var r=t.key;if(r==="css"){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,function(v){var C=v.getAttribute("data-emotion");C.indexOf(" ")!==-1&&(document.head.appendChild(v),v.setAttribute("data-s",""))})}var o=t.stylisPlugins||I5,i={},s,a=[];s=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+r+' "]'),function(v){for(var C=v.getAttribute("data-emotion").split(" "),g=1;g=4;++n,o-=4)r=e.charCodeAt(n)&255|(e.charCodeAt(++n)&255)<<8|(e.charCodeAt(++n)&255)<<16|(e.charCodeAt(++n)&255)<<24,r=(r&65535)*1540483477+((r>>>16)*59797<<16),r^=r>>>24,t=(r&65535)*1540483477+((r>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(o){case 3:t^=(e.charCodeAt(n+2)&255)<<16;case 2:t^=(e.charCodeAt(n+1)&255)<<8;case 1:t^=e.charCodeAt(n)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var J5={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},e4=/[A-Z]|^ms/g,t4=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Ab=function(t){return t.charCodeAt(1)===45},z0=function(t){return t!=null&&typeof t!="boolean"},Wc=wb(function(e){return Ab(e)?e:e.replace(e4,"-$&").toLowerCase()}),M0=function(t,r){switch(t){case"animation":case"animationName":if(typeof r=="string")return r.replace(t4,function(n,o,i){return mr={name:o,styles:i,next:mr},o})}return J5[t]!==1&&!Ab(t)&&typeof r=="number"&&r!==0?r+"px":r};function zs(e,t,r){if(r==null)return"";if(r.__emotion_styles!==void 0)return r;switch(typeof r){case"boolean":return"";case"object":{if(r.anim===1)return mr={name:r.name,styles:r.styles,next:mr},r.name;if(r.styles!==void 0){var n=r.next;if(n!==void 0)for(;n!==void 0;)mr={name:n.name,styles:n.styles,next:mr},n=n.next;var o=r.styles+";";return o}return r4(e,t,r)}case"function":{if(e!==void 0){var i=mr,s=r(e);return mr=i,zs(e,t,s)}break}}if(t==null)return r;var a=t[r];return a!==void 0?a:r}function r4(e,t,r){var n="";if(Array.isArray(r))for(var o=0;o=4;++n,o-=4)r=e.charCodeAt(n)&255|(e.charCodeAt(++n)&255)<<8|(e.charCodeAt(++n)&255)<<16|(e.charCodeAt(++n)&255)<<24,r=(r&65535)*1540483477+((r>>>16)*59797<<16),r^=r>>>24,t=(r&65535)*1540483477+((r>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(o){case 3:t^=(e.charCodeAt(n+2)&255)<<16;case 2:t^=(e.charCodeAt(n+1)&255)<<8;case 1:t^=e.charCodeAt(n)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var J5={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},e4=/[A-Z]|^ms/g,t4=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Ab=function(t){return t.charCodeAt(1)===45},z0=function(t){return t!=null&&typeof t!="boolean"},Gc=wb(function(e){return Ab(e)?e:e.replace(e4,"-$&").toLowerCase()}),M0=function(t,r){switch(t){case"animation":case"animationName":if(typeof r=="string")return r.replace(t4,function(n,o,i){return mr={name:o,styles:i,next:mr},o})}return J5[t]!==1&&!Ab(t)&&typeof r=="number"&&r!==0?r+"px":r};function zs(e,t,r){if(r==null)return"";if(r.__emotion_styles!==void 0)return r;switch(typeof r){case"boolean":return"";case"object":{if(r.anim===1)return mr={name:r.name,styles:r.styles,next:mr},r.name;if(r.styles!==void 0){var n=r.next;if(n!==void 0)for(;n!==void 0;)mr={name:n.name,styles:n.styles,next:mr},n=n.next;var o=r.styles+";";return o}return r4(e,t,r)}case"function":{if(e!==void 0){var i=mr,s=r(e);return mr=i,zs(e,t,s)}break}}if(t==null)return r;var a=t[r];return a!==void 0?a:r}function r4(e,t,r){var n="";if(Array.isArray(r))for(var o=0;o_.jsx("div",{className:"chakra-portal-zIndex",style:{position:"absolute",zIndex:e.zIndex,top:0,left:0,right:0},children:e.children}),y4=e=>{const{appendToParentPortal:t,children:r}=e,[n,o]=S.useState(null),i=S.useRef(null),[,s]=S.useState({});S.useEffect(()=>s({}),[]);const a=p4(),l=h4();Fr(()=>{if(!n)return;const c=n.ownerDocument,d=t?a??c.body:c.body;if(!d)return;i.current=c.createElement("div"),i.current.className=lp,d.appendChild(i.current),s({});const f=i.current;return()=>{d.contains(f)&&d.removeChild(f)}},[n]);const u=l!=null&&l.zIndex?_.jsx(g4,{zIndex:l==null?void 0:l.zIndex,children:r}):r;return i.current?Jh.createPortal(_.jsx(jb,{value:i.current,children:u}),i.current):_.jsx("span",{ref:c=>{c&&o(c)}})},v4=e=>{const{children:t,containerRef:r,appendToParentPortal:n}=e,o=r.current,i=o??(typeof window<"u"?document.body:void 0),s=S.useMemo(()=>{const l=o==null?void 0:o.ownerDocument.createElement("div");return l&&(l.className=lp),l},[o]),[,a]=S.useState({});return Fr(()=>a({}),[]),Fr(()=>{if(!(!s||!i))return i.appendChild(s),()=>{i.removeChild(s)}},[s,i]),i&&s?Jh.createPortal(_.jsx(jb,{value:n?s:null,children:t}),s):null};function Nu(e){const t={appendToParentPortal:!0,...e},{containerRef:r,...n}=t;return r?_.jsx(v4,{containerRef:r,...n}):_.jsx(y4,{...n})}Nu.className=lp;Nu.selector=m4;Nu.displayName="Portal";function mi(){const e=S.useContext(Ms);if(!e)throw Error("useTheme: `theme` is undefined. Seems you forgot to wrap your app in `` or ``");return e}var up=S.createContext({});up.displayName="ColorModeContext";function Vu(){const e=S.useContext(up);if(e===void 0)throw new Error("useColorMode must be used within a ColorModeProvider");return e}var Ma={light:"chakra-ui-light",dark:"chakra-ui-dark"};function b4(e={}){const{preventTransition:t=!0}=e,r={setDataset:n=>{const o=t?r.preventTransition():void 0;document.documentElement.dataset.theme=n,document.documentElement.style.colorScheme=n,o==null||o()},setClassName(n){document.body.classList.add(n?Ma.dark:Ma.light),document.body.classList.remove(n?Ma.light:Ma.dark)},query(){return window.matchMedia("(prefers-color-scheme: dark)")},getSystemTheme(n){var o;return((o=r.query().matches)!=null?o:n==="dark")?"dark":"light"},addListener(n){const o=r.query(),i=s=>{n(s.matches?"dark":"light")};return typeof o.addListener=="function"?o.addListener(i):o.addEventListener("change",i),()=>{typeof o.removeListener=="function"?o.removeListener(i):o.removeEventListener("change",i)}},preventTransition(){const n=document.createElement("style");return n.appendChild(document.createTextNode("*{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}")),document.head.appendChild(n),()=>{window.getComputedStyle(document.body),requestAnimationFrame(()=>{requestAnimationFrame(()=>{document.head.removeChild(n)})})}}};return r}var S4="chakra-ui-color-mode";function x4(e){return{ssr:!1,type:"localStorage",get(t){if(!(globalThis!=null&&globalThis.document))return t;let r;try{r=localStorage.getItem(e)||t}catch{}return r||t},set(t){try{localStorage.setItem(e,t)}catch{}}}}var w4=x4(S4),O0=()=>{};function j0(e,t){return e.type==="cookie"&&e.ssr?e.get(t):t}function Db(e){const{value:t,children:r,options:{useSystemColorMode:n,initialColorMode:o,disableTransitionOnChange:i}={},colorModeManager:s=w4}=e,a=o==="dark"?"dark":"light",[l,u]=S.useState(()=>j0(s,a)),[c,d]=S.useState(()=>j0(s)),{getSystemTheme:f,setClassName:p,setDataset:m,addListener:v}=S.useMemo(()=>b4({preventTransition:i}),[i]),C=o==="system"&&!l?c:l,g=S.useCallback(k=>{const P=k==="system"?f():k;u(P),p(P==="dark"),m(P),s.set(P)},[s,f,p,m]);Fr(()=>{o==="system"&&d(f())},[]),S.useEffect(()=>{const k=s.get();if(k){g(k);return}if(o==="system"){g("system");return}g(a)},[s,a,o,g]);const h=S.useCallback(()=>{g(C==="dark"?"light":"dark")},[C,g]);S.useEffect(()=>{if(n)return v(g)},[n,v,g]);const y=S.useMemo(()=>({colorMode:t??C,toggleColorMode:t?O0:h,setColorMode:t?O0:g,forced:t!==void 0}),[C,h,g,t]);return _.jsx(up.Provider,{value:y,children:r})}Db.displayName="ColorModeProvider";var k4=new Set(["dark","light","system"]);function C4(e){let t=e;return k4.has(t)||(t="light"),t}function _4(e={}){const{initialColorMode:t="light",type:r="localStorage",storageKey:n="chakra-ui-color-mode"}=e,o=C4(t),i=r==="cookie",s=`(function(){try{var a=function(o){var l="(prefers-color-scheme: dark)",v=window.matchMedia(l).matches?"dark":"light",e=o==="system"?v:o,d=document.documentElement,m=document.body,i="chakra-ui-light",n="chakra-ui-dark",s=e==="dark";return m.classList.add(s?n:i),m.classList.remove(s?i:n),d.style.colorScheme=e,d.dataset.theme=e,e},u=a,h="${o}",r="${n}",t=document.cookie.match(new RegExp("(^| )".concat(r,"=([^;]+)"))),c=t?t[2]:null;c?a(c):document.cookie="".concat(r,"=").concat(a(h),"; max-age=31536000; path=/")}catch(a){}})(); + `});function d4(e,t){return`${e} returned \`undefined\`. Seems you forgot to wrap component within ${t}`}function Kr(e={}){const{name:t,strict:r=!0,hookName:n="useContext",providerName:o="Provider",errorMessage:i,defaultValue:s}=e,a=S.createContext(s);a.displayName=t;function l(){var u;const c=S.useContext(a);if(!c&&r){const d=new Error(i??d4(n,o));throw d.name="ContextError",(u=Error.captureStackTrace)==null||u.call(Error,d,l),d}return c}return[a.Provider,l,a]}var[f4,h4]=Kr({strict:!1,name:"PortalManagerContext"});function Ob(e){const{children:t,zIndex:r}=e;return _.jsx(f4,{value:{zIndex:r},children:t})}Ob.displayName="PortalManager";var Fr=globalThis!=null&&globalThis.document?S.useLayoutEffect:S.useEffect,[jb,p4]=Kr({strict:!1,name:"PortalContext"}),up="chakra-portal",m4=".chakra-portal",g4=e=>_.jsx("div",{className:"chakra-portal-zIndex",style:{position:"absolute",zIndex:e.zIndex,top:0,left:0,right:0},children:e.children}),y4=e=>{const{appendToParentPortal:t,children:r}=e,[n,o]=S.useState(null),i=S.useRef(null),[,s]=S.useState({});S.useEffect(()=>s({}),[]);const a=p4(),l=h4();Fr(()=>{if(!n)return;const c=n.ownerDocument,d=t?a??c.body:c.body;if(!d)return;i.current=c.createElement("div"),i.current.className=up,d.appendChild(i.current),s({});const f=i.current;return()=>{d.contains(f)&&d.removeChild(f)}},[n]);const u=l!=null&&l.zIndex?_.jsx(g4,{zIndex:l==null?void 0:l.zIndex,children:r}):r;return i.current?ep.createPortal(_.jsx(jb,{value:i.current,children:u}),i.current):_.jsx("span",{ref:c=>{c&&o(c)}})},v4=e=>{const{children:t,containerRef:r,appendToParentPortal:n}=e,o=r.current,i=o??(typeof window<"u"?document.body:void 0),s=S.useMemo(()=>{const l=o==null?void 0:o.ownerDocument.createElement("div");return l&&(l.className=up),l},[o]),[,a]=S.useState({});return Fr(()=>a({}),[]),Fr(()=>{if(!(!s||!i))return i.appendChild(s),()=>{i.removeChild(s)}},[s,i]),i&&s?ep.createPortal(_.jsx(jb,{value:n?s:null,children:t}),s):null};function Nu(e){const t={appendToParentPortal:!0,...e},{containerRef:r,...n}=t;return r?_.jsx(v4,{containerRef:r,...n}):_.jsx(y4,{...n})}Nu.className=up;Nu.selector=m4;Nu.displayName="Portal";function mi(){const e=S.useContext(Ms);if(!e)throw Error("useTheme: `theme` is undefined. Seems you forgot to wrap your app in `` or ``");return e}var cp=S.createContext({});cp.displayName="ColorModeContext";function Vu(){const e=S.useContext(cp);if(e===void 0)throw new Error("useColorMode must be used within a ColorModeProvider");return e}var Ma={light:"chakra-ui-light",dark:"chakra-ui-dark"};function b4(e={}){const{preventTransition:t=!0}=e,r={setDataset:n=>{const o=t?r.preventTransition():void 0;document.documentElement.dataset.theme=n,document.documentElement.style.colorScheme=n,o==null||o()},setClassName(n){document.body.classList.add(n?Ma.dark:Ma.light),document.body.classList.remove(n?Ma.light:Ma.dark)},query(){return window.matchMedia("(prefers-color-scheme: dark)")},getSystemTheme(n){var o;return((o=r.query().matches)!=null?o:n==="dark")?"dark":"light"},addListener(n){const o=r.query(),i=s=>{n(s.matches?"dark":"light")};return typeof o.addListener=="function"?o.addListener(i):o.addEventListener("change",i),()=>{typeof o.removeListener=="function"?o.removeListener(i):o.removeEventListener("change",i)}},preventTransition(){const n=document.createElement("style");return n.appendChild(document.createTextNode("*{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}")),document.head.appendChild(n),()=>{window.getComputedStyle(document.body),requestAnimationFrame(()=>{requestAnimationFrame(()=>{document.head.removeChild(n)})})}}};return r}var S4="chakra-ui-color-mode";function x4(e){return{ssr:!1,type:"localStorage",get(t){if(!(globalThis!=null&&globalThis.document))return t;let r;try{r=localStorage.getItem(e)||t}catch{}return r||t},set(t){try{localStorage.setItem(e,t)}catch{}}}}var w4=x4(S4),O0=()=>{};function j0(e,t){return e.type==="cookie"&&e.ssr?e.get(t):t}function Db(e){const{value:t,children:r,options:{useSystemColorMode:n,initialColorMode:o,disableTransitionOnChange:i}={},colorModeManager:s=w4}=e,a=o==="dark"?"dark":"light",[l,u]=S.useState(()=>j0(s,a)),[c,d]=S.useState(()=>j0(s)),{getSystemTheme:f,setClassName:p,setDataset:m,addListener:v}=S.useMemo(()=>b4({preventTransition:i}),[i]),C=o==="system"&&!l?c:l,g=S.useCallback(k=>{const P=k==="system"?f():k;u(P),p(P==="dark"),m(P),s.set(P)},[s,f,p,m]);Fr(()=>{o==="system"&&d(f())},[]),S.useEffect(()=>{const k=s.get();if(k){g(k);return}if(o==="system"){g("system");return}g(a)},[s,a,o,g]);const h=S.useCallback(()=>{g(C==="dark"?"light":"dark")},[C,g]);S.useEffect(()=>{if(n)return v(g)},[n,v,g]);const y=S.useMemo(()=>({colorMode:t??C,toggleColorMode:t?O0:h,setColorMode:t?O0:g,forced:t!==void 0}),[C,h,g,t]);return _.jsx(cp.Provider,{value:y,children:r})}Db.displayName="ColorModeProvider";var k4=new Set(["dark","light","system"]);function C4(e){let t=e;return k4.has(t)||(t="light"),t}function _4(e={}){const{initialColorMode:t="light",type:r="localStorage",storageKey:n="chakra-ui-color-mode"}=e,o=C4(t),i=r==="cookie",s=`(function(){try{var a=function(o){var l="(prefers-color-scheme: dark)",v=window.matchMedia(l).matches?"dark":"light",e=o==="system"?v:o,d=document.documentElement,m=document.body,i="chakra-ui-light",n="chakra-ui-dark",s=e==="dark";return m.classList.add(s?n:i),m.classList.remove(s?i:n),d.style.colorScheme=e,d.dataset.theme=e,e},u=a,h="${o}",r="${n}",t=document.cookie.match(new RegExp("(^| )".concat(r,"=([^;]+)"))),c=t?t[2]:null;c?a(c):document.cookie="".concat(r,"=").concat(a(h),"; max-age=31536000; path=/")}catch(a){}})(); `,a=`(function(){try{var a=function(c){var v="(prefers-color-scheme: dark)",h=window.matchMedia(v).matches?"dark":"light",r=c==="system"?h:c,o=document.documentElement,s=document.body,l="chakra-ui-light",d="chakra-ui-dark",i=r==="dark";return s.classList.add(i?d:l),s.classList.remove(i?l:d),o.style.colorScheme=r,o.dataset.theme=r,r},n=a,m="${o}",e="${n}",t=localStorage.getItem(e);t?a(t):localStorage.setItem(e,a(m))}catch(a){}})(); - `;return`!${i?s:a}`.trim()}function T4(e={}){const{nonce:t}=e;return _.jsx("script",{id:"chakra-script",nonce:t,dangerouslySetInnerHTML:{__html:_4(e)}})}function P4(){const e=Vu(),t=mi();return{...e,theme:t}}function E4(e,t,r){var n,o;if(t==null)return t;const i=s=>{var a,l;return(l=(a=e.__breakpoints)==null?void 0:a.asArray)==null?void 0:l[s]};return(o=(n=i(t))!=null?n:i(r))!=null?o:r}function $4(e,t,r){var n,o;if(t==null)return t;const i=s=>{var a,l;return(l=(a=e.__cssMap)==null?void 0:a[s])==null?void 0:l.value};return(o=(n=i(t))!=null?n:i(r))!=null?o:r}function A4(e,t,r){const n=mi();return Bb(e,t,r)(n)}function Bb(e,t,r){const n=Array.isArray(t)?t:[t],o=Array.isArray(r)?r:[r];return i=>{const s=o.filter(Boolean),a=n.map((l,u)=>{var c,d;if(e==="breakpoints")return E4(i,l,(c=s[u])!=null?c:l);const f=`${e}.${l}`;return $4(i,f,(d=s[u])!=null?d:l)});return Array.isArray(t)?a:a[0]}}var Be=(...e)=>e.filter(Boolean).join(" ");function vt(e){const t=typeof e;return e!=null&&(t==="object"||t==="function")&&!Array.isArray(e)}function dn(e,...t){return R4(e)?e(...t):e}var R4=e=>typeof e=="function",oe=e=>e?"":void 0;function kt(...e){return function(r){e.some(n=>(n==null||n(r),r==null?void 0:r.defaultPrevented))}}var Yl={exports:{}};Yl.exports;(function(e,t){var r=200,n="__lodash_hash_undefined__",o=800,i=16,s=9007199254740991,a="[object Arguments]",l="[object Array]",u="[object AsyncFunction]",c="[object Boolean]",d="[object Date]",f="[object Error]",p="[object Function]",m="[object GeneratorFunction]",v="[object Map]",C="[object Number]",g="[object Null]",h="[object Object]",y="[object Proxy]",k="[object RegExp]",P="[object Set]",R="[object String]",E="[object Undefined]",A="[object WeakMap]",O="[object ArrayBuffer]",j="[object DataView]",de="[object Float32Array]",ye="[object Float64Array]",Re="[object Int8Array]",ae="[object Int16Array]",he="[object Int32Array]",Le="[object Uint8Array]",Ie="[object Uint8ClampedArray]",M="[object Uint16Array]",I="[object Uint32Array]",U=/[\\^$.*+?()[\]{}|]/g,N=/^\[object .+?Constructor\]$/,J=/^(?:0|[1-9]\d*)$/,W={};W[de]=W[ye]=W[Re]=W[ae]=W[he]=W[Le]=W[Ie]=W[M]=W[I]=!0,W[a]=W[l]=W[O]=W[c]=W[j]=W[d]=W[f]=W[p]=W[v]=W[C]=W[h]=W[k]=W[P]=W[R]=W[A]=!1;var ce=typeof pa=="object"&&pa&&pa.Object===Object&&pa,Yt=typeof self=="object"&&self&&self.Object===Object&&self,Ee=ce||Yt||Function("return this")(),xt=t&&!t.nodeType&&t,ar=xt&&!0&&e&&!e.nodeType&&e,Xr=ar&&ar.exports===xt,lr=Xr&&ce.process,Ft=function(){try{var b=ar&&ar.require&&ar.require("util").types;return b||lr&&lr.binding&&lr.binding("util")}catch{}}(),zn=Ft&&Ft.isTypedArray;function co(b,x,T){switch(T.length){case 0:return b.call(x);case 1:return b.call(x,T[0]);case 2:return b.call(x,T[0],T[1]);case 3:return b.call(x,T[0],T[1],T[2])}return b.apply(x,T)}function Zp(b,x){for(var T=-1,L=Array(b);++T-1}function Z2(b,x){var T=this.__data__,L=ca(T,b);return L<0?(++this.size,T.push([b,x])):T[L][1]=x,this}Cr.prototype.clear=q2,Cr.prototype.delete=X2,Cr.prototype.get=Y2,Cr.prototype.has=Q2,Cr.prototype.set=Z2;function ho(b){var x=-1,T=b==null?0:b.length;for(this.clear();++x1?T[X-1]:void 0,xe=X>2?T[2]:void 0;for(fe=b.length>3&&typeof fe=="function"?(X--,fe):void 0,xe&&Pw(T[0],T[1],xe)&&(fe=X<3?void 0:fe,X=1),x=Object(x);++L-1&&b%1==0&&b0){if(++x>=o)return arguments[0]}else x=0;return b.apply(void 0,arguments)}}function Fw(b){if(b!=null){try{return aa.call(b)}catch{}try{return b+""}catch{}}return""}function ha(b,x){return b===x||b!==b&&x!==x}var hc=lm(function(){return arguments}())?lm:function(b){return bi(b)&&kr.call(b,"callee")&&!D2.call(b,"callee")},pc=Array.isArray;function mc(b){return b!=null&&hm(b.length)&&!gc(b)}function Ow(b){return bi(b)&&mc(b)}var fm=I2||Nw;function gc(b){if(!Fn(b))return!1;var x=da(b);return x==p||x==m||x==u||x==y}function hm(b){return typeof b=="number"&&b>-1&&b%1==0&&b<=s}function Fn(b){var x=typeof b;return b!=null&&(x=="object"||x=="function")}function bi(b){return b!=null&&typeof b=="object"}function jw(b){if(!bi(b)||da(b)!=h)return!1;var x=om(b);if(x===null)return!0;var T=kr.call(x,"constructor")&&x.constructor;return typeof T=="function"&&T instanceof T&&aa.call(T)==O2}var pm=zn?G(zn):hw;function Dw(b){return ww(b,mm(b))}function mm(b){return mc(b)?uw(b,!0):pw(b)}var Bw=kw(function(b,x,T,L){um(b,x,T,L)});function Iw(b){return function(){return b}}function gm(b){return b}function Nw(){return!1}e.exports=Bw})(Yl,Yl.exports);var z4=Yl.exports;const Ht=oh(z4);var M4=e=>/!(important)?$/.test(e),D0=e=>typeof e=="string"?e.replace(/!(important)?$/,"").trim():e,L4=(e,t)=>r=>{const n=String(t),o=M4(n),i=D0(n),s=e?`${e}.${i}`:i;let a=vt(r.__cssMap)&&s in r.__cssMap?r.__cssMap[s].varRef:t;return a=D0(a),o?`${a} !important`:a};function cp(e){const{scale:t,transform:r,compose:n}=e;return(i,s)=>{var a;const l=L4(t,i)(s);let u=(a=r==null?void 0:r(l,s))!=null?a:l;return n&&(u=n(u,s)),u}}var La=(...e)=>t=>e.reduce((r,n)=>n(r),t);function Dt(e,t){return r=>{const n={property:r,scale:e};return n.transform=cp({scale:e,transform:t}),n}}var F4=({rtl:e,ltr:t})=>r=>r.direction==="rtl"?e:t;function O4(e){const{property:t,scale:r,transform:n}=e;return{scale:r,property:F4(t),transform:r?cp({scale:r,compose:n}):n}}var Ib=["rotate(var(--chakra-rotate, 0))","scaleX(var(--chakra-scale-x, 1))","scaleY(var(--chakra-scale-y, 1))","skewX(var(--chakra-skew-x, 0))","skewY(var(--chakra-skew-y, 0))"];function j4(){return["translateX(var(--chakra-translate-x, 0))","translateY(var(--chakra-translate-y, 0))",...Ib].join(" ")}function D4(){return["translate3d(var(--chakra-translate-x, 0), var(--chakra-translate-y, 0), 0)",...Ib].join(" ")}var B4={"--chakra-blur":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-brightness":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-contrast":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-grayscale":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-hue-rotate":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-invert":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-saturate":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-sepia":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-drop-shadow":"var(--chakra-empty,/*!*/ /*!*/)",filter:["var(--chakra-blur)","var(--chakra-brightness)","var(--chakra-contrast)","var(--chakra-grayscale)","var(--chakra-hue-rotate)","var(--chakra-invert)","var(--chakra-saturate)","var(--chakra-sepia)","var(--chakra-drop-shadow)"].join(" ")},I4={backdropFilter:["var(--chakra-backdrop-blur)","var(--chakra-backdrop-brightness)","var(--chakra-backdrop-contrast)","var(--chakra-backdrop-grayscale)","var(--chakra-backdrop-hue-rotate)","var(--chakra-backdrop-invert)","var(--chakra-backdrop-opacity)","var(--chakra-backdrop-saturate)","var(--chakra-backdrop-sepia)"].join(" "),"--chakra-backdrop-blur":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-brightness":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-contrast":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-grayscale":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-hue-rotate":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-invert":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-opacity":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-saturate":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-sepia":"var(--chakra-empty,/*!*/ /*!*/)"};function N4(e){return{"--chakra-ring-offset-shadow":"var(--chakra-ring-inset) 0 0 0 var(--chakra-ring-offset-width) var(--chakra-ring-offset-color)","--chakra-ring-shadow":"var(--chakra-ring-inset) 0 0 0 calc(var(--chakra-ring-width) + var(--chakra-ring-offset-width)) var(--chakra-ring-color)","--chakra-ring-width":e,boxShadow:["var(--chakra-ring-offset-shadow)","var(--chakra-ring-shadow)","var(--chakra-shadow, 0 0 #0000)"].join(", ")}}var V4={"row-reverse":{space:"--chakra-space-x-reverse",divide:"--chakra-divide-x-reverse"},"column-reverse":{space:"--chakra-space-y-reverse",divide:"--chakra-divide-y-reverse"}},kf={"to-t":"to top","to-tr":"to top right","to-r":"to right","to-br":"to bottom right","to-b":"to bottom","to-bl":"to bottom left","to-l":"to left","to-tl":"to top left"},U4=new Set(Object.values(kf)),Cf=new Set(["none","-moz-initial","inherit","initial","revert","unset"]),H4=e=>e.trim();function W4(e,t){if(e==null||Cf.has(e))return e;if(!(_f(e)||Cf.has(e)))return`url('${e}')`;const o=/(^[a-z-A-Z]+)\((.*)\)/g.exec(e),i=o==null?void 0:o[1],s=o==null?void 0:o[2];if(!i||!s)return e;const a=i.includes("-gradient")?i:`${i}-gradient`,[l,...u]=s.split(",").map(H4).filter(Boolean);if((u==null?void 0:u.length)===0)return e;const c=l in kf?kf[l]:l;u.unshift(c);const d=u.map(f=>{if(U4.has(f))return f;const p=f.indexOf(" "),[m,v]=p!==-1?[f.substr(0,p),f.substr(p+1)]:[f],C=_f(v)?v:v&&v.split(" "),g=`colors.${m}`,h=g in t.__cssMap?t.__cssMap[g].varRef:m;return C?[h,...Array.isArray(C)?C:[C]].join(" "):h});return`${a}(${d.join(", ")})`}var _f=e=>typeof e=="string"&&e.includes("(")&&e.includes(")"),G4=(e,t)=>W4(e,t??{});function K4(e){return/^var\(--.+\)$/.test(e)}var q4=e=>{const t=parseFloat(e.toString()),r=e.toString().replace(String(t),"");return{unitless:!r,value:t,unit:r}},cr=e=>t=>`${e}(${t})`,Z={filter(e){return e!=="auto"?e:B4},backdropFilter(e){return e!=="auto"?e:I4},ring(e){return N4(Z.px(e))},bgClip(e){return e==="text"?{color:"transparent",backgroundClip:"text"}:{backgroundClip:e}},transform(e){return e==="auto"?j4():e==="auto-gpu"?D4():e},vh(e){return e==="$100vh"?"var(--chakra-vh)":e},px(e){if(e==null)return e;const{unitless:t}=q4(e);return t||typeof e=="number"?`${e}px`:e},fraction(e){return typeof e!="number"||e>1?e:`${e*100}%`},float(e,t){const r={left:"right",right:"left"};return t.direction==="rtl"?r[e]:e},degree(e){if(K4(e)||e==null)return e;const t=typeof e=="string"&&!e.endsWith("deg");return typeof e=="number"||t?`${e}deg`:e},gradient:G4,blur:cr("blur"),opacity:cr("opacity"),brightness:cr("brightness"),contrast:cr("contrast"),dropShadow:cr("drop-shadow"),grayscale:cr("grayscale"),hueRotate:cr("hue-rotate"),invert:cr("invert"),saturate:cr("saturate"),sepia:cr("sepia"),bgImage(e){return e==null||_f(e)||Cf.has(e)?e:`url(${e})`},outline(e){const t=String(e)==="0"||String(e)==="none";return e!==null&&t?{outline:"2px solid transparent",outlineOffset:"2px"}:{outline:e}},flexDirection(e){var t;const{space:r,divide:n}=(t=V4[e])!=null?t:{},o={flexDirection:e};return r&&(o[r]=1),n&&(o[n]=1),o}},w={borderWidths:Dt("borderWidths"),borderStyles:Dt("borderStyles"),colors:Dt("colors"),borders:Dt("borders"),gradients:Dt("gradients",Z.gradient),radii:Dt("radii",Z.px),space:Dt("space",La(Z.vh,Z.px)),spaceT:Dt("space",La(Z.vh,Z.px)),degreeT(e){return{property:e,transform:Z.degree}},prop(e,t,r){return{property:e,scale:t,...t&&{transform:cp({scale:t,transform:r})}}},propT(e,t){return{property:e,transform:t}},sizes:Dt("sizes",La(Z.vh,Z.px)),sizesT:Dt("sizes",La(Z.vh,Z.fraction)),shadows:Dt("shadows"),logical:O4,blur:Dt("blur",Z.blur)},sl={background:w.colors("background"),backgroundColor:w.colors("backgroundColor"),backgroundImage:w.gradients("backgroundImage"),backgroundSize:!0,backgroundPosition:!0,backgroundRepeat:!0,backgroundAttachment:!0,backgroundClip:{transform:Z.bgClip},bgSize:w.prop("backgroundSize"),bgPosition:w.prop("backgroundPosition"),bg:w.colors("background"),bgColor:w.colors("backgroundColor"),bgPos:w.prop("backgroundPosition"),bgRepeat:w.prop("backgroundRepeat"),bgAttachment:w.prop("backgroundAttachment"),bgGradient:w.gradients("backgroundImage"),bgClip:{transform:Z.bgClip}};Object.assign(sl,{bgImage:sl.backgroundImage,bgImg:sl.backgroundImage});var ee={border:w.borders("border"),borderWidth:w.borderWidths("borderWidth"),borderStyle:w.borderStyles("borderStyle"),borderColor:w.colors("borderColor"),borderRadius:w.radii("borderRadius"),borderTop:w.borders("borderTop"),borderBlockStart:w.borders("borderBlockStart"),borderTopLeftRadius:w.radii("borderTopLeftRadius"),borderStartStartRadius:w.logical({scale:"radii",property:{ltr:"borderTopLeftRadius",rtl:"borderTopRightRadius"}}),borderEndStartRadius:w.logical({scale:"radii",property:{ltr:"borderBottomLeftRadius",rtl:"borderBottomRightRadius"}}),borderTopRightRadius:w.radii("borderTopRightRadius"),borderStartEndRadius:w.logical({scale:"radii",property:{ltr:"borderTopRightRadius",rtl:"borderTopLeftRadius"}}),borderEndEndRadius:w.logical({scale:"radii",property:{ltr:"borderBottomRightRadius",rtl:"borderBottomLeftRadius"}}),borderRight:w.borders("borderRight"),borderInlineEnd:w.borders("borderInlineEnd"),borderBottom:w.borders("borderBottom"),borderBlockEnd:w.borders("borderBlockEnd"),borderBottomLeftRadius:w.radii("borderBottomLeftRadius"),borderBottomRightRadius:w.radii("borderBottomRightRadius"),borderLeft:w.borders("borderLeft"),borderInlineStart:{property:"borderInlineStart",scale:"borders"},borderInlineStartRadius:w.logical({scale:"radii",property:{ltr:["borderTopLeftRadius","borderBottomLeftRadius"],rtl:["borderTopRightRadius","borderBottomRightRadius"]}}),borderInlineEndRadius:w.logical({scale:"radii",property:{ltr:["borderTopRightRadius","borderBottomRightRadius"],rtl:["borderTopLeftRadius","borderBottomLeftRadius"]}}),borderX:w.borders(["borderLeft","borderRight"]),borderInline:w.borders("borderInline"),borderY:w.borders(["borderTop","borderBottom"]),borderBlock:w.borders("borderBlock"),borderTopWidth:w.borderWidths("borderTopWidth"),borderBlockStartWidth:w.borderWidths("borderBlockStartWidth"),borderTopColor:w.colors("borderTopColor"),borderBlockStartColor:w.colors("borderBlockStartColor"),borderTopStyle:w.borderStyles("borderTopStyle"),borderBlockStartStyle:w.borderStyles("borderBlockStartStyle"),borderBottomWidth:w.borderWidths("borderBottomWidth"),borderBlockEndWidth:w.borderWidths("borderBlockEndWidth"),borderBottomColor:w.colors("borderBottomColor"),borderBlockEndColor:w.colors("borderBlockEndColor"),borderBottomStyle:w.borderStyles("borderBottomStyle"),borderBlockEndStyle:w.borderStyles("borderBlockEndStyle"),borderLeftWidth:w.borderWidths("borderLeftWidth"),borderInlineStartWidth:w.borderWidths("borderInlineStartWidth"),borderLeftColor:w.colors("borderLeftColor"),borderInlineStartColor:w.colors("borderInlineStartColor"),borderLeftStyle:w.borderStyles("borderLeftStyle"),borderInlineStartStyle:w.borderStyles("borderInlineStartStyle"),borderRightWidth:w.borderWidths("borderRightWidth"),borderInlineEndWidth:w.borderWidths("borderInlineEndWidth"),borderRightColor:w.colors("borderRightColor"),borderInlineEndColor:w.colors("borderInlineEndColor"),borderRightStyle:w.borderStyles("borderRightStyle"),borderInlineEndStyle:w.borderStyles("borderInlineEndStyle"),borderTopRadius:w.radii(["borderTopLeftRadius","borderTopRightRadius"]),borderBottomRadius:w.radii(["borderBottomLeftRadius","borderBottomRightRadius"]),borderLeftRadius:w.radii(["borderTopLeftRadius","borderBottomLeftRadius"]),borderRightRadius:w.radii(["borderTopRightRadius","borderBottomRightRadius"])};Object.assign(ee,{rounded:ee.borderRadius,roundedTop:ee.borderTopRadius,roundedTopLeft:ee.borderTopLeftRadius,roundedTopRight:ee.borderTopRightRadius,roundedTopStart:ee.borderStartStartRadius,roundedTopEnd:ee.borderStartEndRadius,roundedBottom:ee.borderBottomRadius,roundedBottomLeft:ee.borderBottomLeftRadius,roundedBottomRight:ee.borderBottomRightRadius,roundedBottomStart:ee.borderEndStartRadius,roundedBottomEnd:ee.borderEndEndRadius,roundedLeft:ee.borderLeftRadius,roundedRight:ee.borderRightRadius,roundedStart:ee.borderInlineStartRadius,roundedEnd:ee.borderInlineEndRadius,borderStart:ee.borderInlineStart,borderEnd:ee.borderInlineEnd,borderTopStartRadius:ee.borderStartStartRadius,borderTopEndRadius:ee.borderStartEndRadius,borderBottomStartRadius:ee.borderEndStartRadius,borderBottomEndRadius:ee.borderEndEndRadius,borderStartRadius:ee.borderInlineStartRadius,borderEndRadius:ee.borderInlineEndRadius,borderStartWidth:ee.borderInlineStartWidth,borderEndWidth:ee.borderInlineEndWidth,borderStartColor:ee.borderInlineStartColor,borderEndColor:ee.borderInlineEndColor,borderStartStyle:ee.borderInlineStartStyle,borderEndStyle:ee.borderInlineEndStyle});var X4={color:w.colors("color"),textColor:w.colors("color"),fill:w.colors("fill"),stroke:w.colors("stroke")},Tf={boxShadow:w.shadows("boxShadow"),mixBlendMode:!0,blendMode:w.prop("mixBlendMode"),backgroundBlendMode:!0,bgBlendMode:w.prop("backgroundBlendMode"),opacity:!0};Object.assign(Tf,{shadow:Tf.boxShadow});var Y4={filter:{transform:Z.filter},blur:w.blur("--chakra-blur"),brightness:w.propT("--chakra-brightness",Z.brightness),contrast:w.propT("--chakra-contrast",Z.contrast),hueRotate:w.degreeT("--chakra-hue-rotate"),invert:w.propT("--chakra-invert",Z.invert),saturate:w.propT("--chakra-saturate",Z.saturate),dropShadow:w.propT("--chakra-drop-shadow",Z.dropShadow),backdropFilter:{transform:Z.backdropFilter},backdropBlur:w.blur("--chakra-backdrop-blur"),backdropBrightness:w.propT("--chakra-backdrop-brightness",Z.brightness),backdropContrast:w.propT("--chakra-backdrop-contrast",Z.contrast),backdropHueRotate:w.degreeT("--chakra-backdrop-hue-rotate"),backdropInvert:w.propT("--chakra-backdrop-invert",Z.invert),backdropSaturate:w.propT("--chakra-backdrop-saturate",Z.saturate)},Ql={alignItems:!0,alignContent:!0,justifyItems:!0,justifyContent:!0,flexWrap:!0,flexDirection:{transform:Z.flexDirection},flex:!0,flexFlow:!0,flexGrow:!0,flexShrink:!0,flexBasis:w.sizes("flexBasis"),justifySelf:!0,alignSelf:!0,order:!0,placeItems:!0,placeContent:!0,placeSelf:!0,gap:w.space("gap"),rowGap:w.space("rowGap"),columnGap:w.space("columnGap")};Object.assign(Ql,{flexDir:Ql.flexDirection});var Nb={gridGap:w.space("gridGap"),gridColumnGap:w.space("gridColumnGap"),gridRowGap:w.space("gridRowGap"),gridColumn:!0,gridRow:!0,gridAutoFlow:!0,gridAutoColumns:!0,gridColumnStart:!0,gridColumnEnd:!0,gridRowStart:!0,gridRowEnd:!0,gridAutoRows:!0,gridTemplate:!0,gridTemplateColumns:!0,gridTemplateRows:!0,gridTemplateAreas:!0,gridArea:!0},Q4={appearance:!0,cursor:!0,resize:!0,userSelect:!0,pointerEvents:!0,outline:{transform:Z.outline},outlineOffset:!0,outlineColor:w.colors("outlineColor")},It={width:w.sizesT("width"),inlineSize:w.sizesT("inlineSize"),height:w.sizes("height"),blockSize:w.sizes("blockSize"),boxSize:w.sizes(["width","height"]),minWidth:w.sizes("minWidth"),minInlineSize:w.sizes("minInlineSize"),minHeight:w.sizes("minHeight"),minBlockSize:w.sizes("minBlockSize"),maxWidth:w.sizes("maxWidth"),maxInlineSize:w.sizes("maxInlineSize"),maxHeight:w.sizes("maxHeight"),maxBlockSize:w.sizes("maxBlockSize"),overflow:!0,overflowX:!0,overflowY:!0,overscrollBehavior:!0,overscrollBehaviorX:!0,overscrollBehaviorY:!0,display:!0,aspectRatio:!0,hideFrom:{scale:"breakpoints",transform:(e,t)=>{var r,n,o;return{[`@media screen and (min-width: ${(o=(n=(r=t.__breakpoints)==null?void 0:r.get(e))==null?void 0:n.minW)!=null?o:e})`]:{display:"none"}}}},hideBelow:{scale:"breakpoints",transform:(e,t)=>{var r,n,o;return{[`@media screen and (max-width: ${(o=(n=(r=t.__breakpoints)==null?void 0:r.get(e))==null?void 0:n._minW)!=null?o:e})`]:{display:"none"}}}},verticalAlign:!0,boxSizing:!0,boxDecorationBreak:!0,float:w.propT("float",Z.float),objectFit:!0,objectPosition:!0,visibility:!0,isolation:!0};Object.assign(It,{w:It.width,h:It.height,minW:It.minWidth,maxW:It.maxWidth,minH:It.minHeight,maxH:It.maxHeight,overscroll:It.overscrollBehavior,overscrollX:It.overscrollBehaviorX,overscrollY:It.overscrollBehaviorY});var Z4={listStyleType:!0,listStylePosition:!0,listStylePos:w.prop("listStylePosition"),listStyleImage:!0,listStyleImg:w.prop("listStyleImage")};function J4(e,t,r,n){const o=typeof t=="string"?t.split("."):[t];for(n=0;n{const t=new WeakMap;return(n,o,i,s)=>{if(typeof n>"u")return e(n,o,i);t.has(n)||t.set(n,new Map);const a=t.get(n);if(a.has(o))return a.get(o);const l=e(n,o,i,s);return a.set(o,l),l}},t_=e_(J4),r_={border:"0px",clip:"rect(0, 0, 0, 0)",width:"1px",height:"1px",margin:"-1px",padding:"0px",overflow:"hidden",whiteSpace:"nowrap",position:"absolute"},n_={position:"static",width:"auto",height:"auto",clip:"auto",padding:"0",margin:"0",overflow:"visible",whiteSpace:"normal"},Gc=(e,t,r)=>{const n={},o=t_(e,t,{});for(const i in o)i in r&&r[i]!=null||(n[i]=o[i]);return n},o_={srOnly:{transform(e){return e===!0?r_:e==="focusable"?n_:{}}},layerStyle:{processResult:!0,transform:(e,t,r)=>Gc(t,`layerStyles.${e}`,r)},textStyle:{processResult:!0,transform:(e,t,r)=>Gc(t,`textStyles.${e}`,r)},apply:{processResult:!0,transform:(e,t,r)=>Gc(t,e,r)}},rs={position:!0,pos:w.prop("position"),zIndex:w.prop("zIndex","zIndices"),inset:w.spaceT("inset"),insetX:w.spaceT(["left","right"]),insetInline:w.spaceT("insetInline"),insetY:w.spaceT(["top","bottom"]),insetBlock:w.spaceT("insetBlock"),top:w.spaceT("top"),insetBlockStart:w.spaceT("insetBlockStart"),bottom:w.spaceT("bottom"),insetBlockEnd:w.spaceT("insetBlockEnd"),left:w.spaceT("left"),insetInlineStart:w.logical({scale:"space",property:{ltr:"left",rtl:"right"}}),right:w.spaceT("right"),insetInlineEnd:w.logical({scale:"space",property:{ltr:"right",rtl:"left"}})};Object.assign(rs,{insetStart:rs.insetInlineStart,insetEnd:rs.insetInlineEnd});var i_={ring:{transform:Z.ring},ringColor:w.colors("--chakra-ring-color"),ringOffset:w.prop("--chakra-ring-offset-width"),ringOffsetColor:w.colors("--chakra-ring-offset-color"),ringInset:w.prop("--chakra-ring-inset")},be={margin:w.spaceT("margin"),marginTop:w.spaceT("marginTop"),marginBlockStart:w.spaceT("marginBlockStart"),marginRight:w.spaceT("marginRight"),marginInlineEnd:w.spaceT("marginInlineEnd"),marginBottom:w.spaceT("marginBottom"),marginBlockEnd:w.spaceT("marginBlockEnd"),marginLeft:w.spaceT("marginLeft"),marginInlineStart:w.spaceT("marginInlineStart"),marginX:w.spaceT(["marginInlineStart","marginInlineEnd"]),marginInline:w.spaceT("marginInline"),marginY:w.spaceT(["marginTop","marginBottom"]),marginBlock:w.spaceT("marginBlock"),padding:w.space("padding"),paddingTop:w.space("paddingTop"),paddingBlockStart:w.space("paddingBlockStart"),paddingRight:w.space("paddingRight"),paddingBottom:w.space("paddingBottom"),paddingBlockEnd:w.space("paddingBlockEnd"),paddingLeft:w.space("paddingLeft"),paddingInlineStart:w.space("paddingInlineStart"),paddingInlineEnd:w.space("paddingInlineEnd"),paddingX:w.space(["paddingInlineStart","paddingInlineEnd"]),paddingInline:w.space("paddingInline"),paddingY:w.space(["paddingTop","paddingBottom"]),paddingBlock:w.space("paddingBlock")};Object.assign(be,{m:be.margin,mt:be.marginTop,mr:be.marginRight,me:be.marginInlineEnd,marginEnd:be.marginInlineEnd,mb:be.marginBottom,ml:be.marginLeft,ms:be.marginInlineStart,marginStart:be.marginInlineStart,mx:be.marginX,my:be.marginY,p:be.padding,pt:be.paddingTop,py:be.paddingY,px:be.paddingX,pb:be.paddingBottom,pl:be.paddingLeft,ps:be.paddingInlineStart,paddingStart:be.paddingInlineStart,pr:be.paddingRight,pe:be.paddingInlineEnd,paddingEnd:be.paddingInlineEnd});var s_={textDecorationColor:w.colors("textDecorationColor"),textDecoration:!0,textDecor:{property:"textDecoration"},textDecorationLine:!0,textDecorationStyle:!0,textDecorationThickness:!0,textUnderlineOffset:!0,textShadow:w.shadows("textShadow")},a_={clipPath:!0,transform:w.propT("transform",Z.transform),transformOrigin:!0,translateX:w.spaceT("--chakra-translate-x"),translateY:w.spaceT("--chakra-translate-y"),skewX:w.degreeT("--chakra-skew-x"),skewY:w.degreeT("--chakra-skew-y"),scaleX:w.prop("--chakra-scale-x"),scaleY:w.prop("--chakra-scale-y"),scale:w.prop(["--chakra-scale-x","--chakra-scale-y"]),rotate:w.degreeT("--chakra-rotate")},l_={transition:!0,transitionDelay:!0,animation:!0,willChange:!0,transitionDuration:w.prop("transitionDuration","transition.duration"),transitionProperty:w.prop("transitionProperty","transition.property"),transitionTimingFunction:w.prop("transitionTimingFunction","transition.easing")},u_={fontFamily:w.prop("fontFamily","fonts"),fontSize:w.prop("fontSize","fontSizes",Z.px),fontWeight:w.prop("fontWeight","fontWeights"),lineHeight:w.prop("lineHeight","lineHeights"),letterSpacing:w.prop("letterSpacing","letterSpacings"),textAlign:!0,fontStyle:!0,textIndent:!0,wordBreak:!0,overflowWrap:!0,textOverflow:!0,textTransform:!0,whiteSpace:!0,isTruncated:{transform(e){if(e===!0)return{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}}},noOfLines:{static:{overflow:"hidden",textOverflow:"ellipsis",display:"-webkit-box",WebkitBoxOrient:"vertical",WebkitLineClamp:"var(--chakra-line-clamp)"},property:"--chakra-line-clamp"}},c_={scrollBehavior:!0,scrollSnapAlign:!0,scrollSnapStop:!0,scrollSnapType:!0,scrollMargin:w.spaceT("scrollMargin"),scrollMarginTop:w.spaceT("scrollMarginTop"),scrollMarginBottom:w.spaceT("scrollMarginBottom"),scrollMarginLeft:w.spaceT("scrollMarginLeft"),scrollMarginRight:w.spaceT("scrollMarginRight"),scrollMarginX:w.spaceT(["scrollMarginLeft","scrollMarginRight"]),scrollMarginY:w.spaceT(["scrollMarginTop","scrollMarginBottom"]),scrollPadding:w.spaceT("scrollPadding"),scrollPaddingTop:w.spaceT("scrollPaddingTop"),scrollPaddingBottom:w.spaceT("scrollPaddingBottom"),scrollPaddingLeft:w.spaceT("scrollPaddingLeft"),scrollPaddingRight:w.spaceT("scrollPaddingRight"),scrollPaddingX:w.spaceT(["scrollPaddingLeft","scrollPaddingRight"]),scrollPaddingY:w.spaceT(["scrollPaddingTop","scrollPaddingBottom"])};function Vb(e){return vt(e)&&e.reference?e.reference:String(e)}var Uu=(e,...t)=>t.map(Vb).join(` ${e} `).replace(/calc/g,""),B0=(...e)=>`calc(${Uu("+",...e)})`,I0=(...e)=>`calc(${Uu("-",...e)})`,Pf=(...e)=>`calc(${Uu("*",...e)})`,N0=(...e)=>`calc(${Uu("/",...e)})`,V0=e=>{const t=Vb(e);return t!=null&&!Number.isNaN(parseFloat(t))?String(t).startsWith("-")?String(t).slice(1):`-${t}`:Pf(t,-1)},Nn=Object.assign(e=>({add:(...t)=>Nn(B0(e,...t)),subtract:(...t)=>Nn(I0(e,...t)),multiply:(...t)=>Nn(Pf(e,...t)),divide:(...t)=>Nn(N0(e,...t)),negate:()=>Nn(V0(e)),toString:()=>e.toString()}),{add:B0,subtract:I0,multiply:Pf,divide:N0,negate:V0});function d_(e,t="-"){return e.replace(/\s+/g,t)}function f_(e){const t=d_(e.toString());return p_(h_(t))}function h_(e){return e.includes("\\.")?e:!Number.isInteger(parseFloat(e.toString()))?e.replace(".","\\."):e}function p_(e){return e.replace(/[!-,/:-@[-^`{-~]/g,"\\$&")}function m_(e,t=""){return[t,e].filter(Boolean).join("-")}function g_(e,t){return`var(${e}${t?`, ${t}`:""})`}function y_(e,t=""){return f_(`--${m_(e,t)}`)}function D(e,t,r){const n=y_(e,r);return{variable:n,reference:g_(n,t)}}function v_(e,t){const r={};for(const n of t){if(Array.isArray(n)){const[o,i]=n;r[o]=D(`${e}-${o}`,i);continue}r[n]=D(`${e}-${n}`)}return r}function b_(e){const t=e==null?0:e.length;return t?e[t-1]:void 0}function S_(e){const t=parseFloat(e.toString()),r=e.toString().replace(String(t),"");return{unitless:!r,value:t,unit:r}}function Ef(e){if(e==null)return e;const{unitless:t}=S_(e);return t||typeof e=="number"?`${e}px`:e}var Ub=(e,t)=>parseInt(e[1],10)>parseInt(t[1],10)?1:-1,dp=e=>Object.fromEntries(Object.entries(e).sort(Ub));function U0(e){const t=dp(e);return Object.assign(Object.values(t),t)}function x_(e){const t=Object.keys(dp(e));return new Set(t)}function H0(e){var t;if(!e)return e;e=(t=Ef(e))!=null?t:e;const r=-.02;return typeof e=="number"?`${e+r}`:e.replace(/(\d+\.?\d*)/u,n=>`${parseFloat(n)+r}`)}function Ii(e,t){const r=["@media screen"];return e&&r.push("and",`(min-width: ${Ef(e)})`),t&&r.push("and",`(max-width: ${Ef(t)})`),r.join(" ")}function w_(e){var t;if(!e)return null;e.base=(t=e.base)!=null?t:"0px";const r=U0(e),n=Object.entries(e).sort(Ub).map(([s,a],l,u)=>{var c;let[,d]=(c=u[l+1])!=null?c:[];return d=parseFloat(d)>0?H0(d):void 0,{_minW:H0(a),breakpoint:s,minW:a,maxW:d,maxWQuery:Ii(null,d),minWQuery:Ii(a),minMaxQuery:Ii(a,d)}}),o=x_(e),i=Array.from(o.values());return{keys:o,normalized:r,isResponsive(s){const a=Object.keys(s);return a.length>0&&a.every(l=>o.has(l))},asObject:dp(e),asArray:U0(e),details:n,get(s){return n.find(a=>a.breakpoint===s)},media:[null,...r.map(s=>Ii(s)).slice(1)],toArrayValue(s){if(!vt(s))throw new Error("toArrayValue: value must be an object");const a=i.map(l=>{var u;return(u=s[l])!=null?u:null});for(;b_(a)===null;)a.pop();return a},toObjectValue(s){if(!Array.isArray(s))throw new Error("toObjectValue: value must be an array");return s.reduce((a,l,u)=>{const c=i[u];return c!=null&&l!=null&&(a[c]=l),a},{})}}}var qe={hover:(e,t)=>`${e}:hover ${t}, ${e}[data-hover] ${t}`,focus:(e,t)=>`${e}:focus ${t}, ${e}[data-focus] ${t}`,focusVisible:(e,t)=>`${e}:focus-visible ${t}`,focusWithin:(e,t)=>`${e}:focus-within ${t}`,active:(e,t)=>`${e}:active ${t}, ${e}[data-active] ${t}`,disabled:(e,t)=>`${e}:disabled ${t}, ${e}[data-disabled] ${t}`,invalid:(e,t)=>`${e}:invalid ${t}, ${e}[data-invalid] ${t}`,checked:(e,t)=>`${e}:checked ${t}, ${e}[data-checked] ${t}`,indeterminate:(e,t)=>`${e}:indeterminate ${t}, ${e}[aria-checked=mixed] ${t}, ${e}[data-indeterminate] ${t}`,readOnly:(e,t)=>`${e}:read-only ${t}, ${e}[readonly] ${t}, ${e}[data-read-only] ${t}`,expanded:(e,t)=>`${e}:read-only ${t}, ${e}[aria-expanded=true] ${t}, ${e}[data-expanded] ${t}`,placeholderShown:(e,t)=>`${e}:placeholder-shown ${t}`},Qr=e=>Hb(t=>e(t,"&"),"[role=group]","[data-group]",".group"),_r=e=>Hb(t=>e(t,"~ &"),"[data-peer]",".peer"),Hb=(e,...t)=>t.map(e).join(", "),Hu={_hover:"&:hover, &[data-hover]",_active:"&:active, &[data-active]",_focus:"&:focus, &[data-focus]",_highlighted:"&[data-highlighted]",_focusWithin:"&:focus-within",_focusVisible:"&:focus-visible, &[data-focus-visible]",_disabled:"&:disabled, &[disabled], &[aria-disabled=true], &[data-disabled]",_readOnly:"&[aria-readonly=true], &[readonly], &[data-readonly]",_before:"&::before",_after:"&::after",_empty:"&:empty",_expanded:"&[aria-expanded=true], &[data-expanded]",_checked:"&[aria-checked=true], &[data-checked]",_grabbed:"&[aria-grabbed=true], &[data-grabbed]",_pressed:"&[aria-pressed=true], &[data-pressed]",_invalid:"&[aria-invalid=true], &[data-invalid]",_valid:"&[data-valid], &[data-state=valid]",_loading:"&[data-loading], &[aria-busy=true]",_selected:"&[aria-selected=true], &[data-selected]",_hidden:"&[hidden], &[data-hidden]",_autofill:"&:-webkit-autofill",_even:"&:nth-of-type(even)",_odd:"&:nth-of-type(odd)",_first:"&:first-of-type",_firstLetter:"&::first-letter",_last:"&:last-of-type",_notFirst:"&:not(:first-of-type)",_notLast:"&:not(:last-of-type)",_visited:"&:visited",_activeLink:"&[aria-current=page]",_activeStep:"&[aria-current=step]",_indeterminate:"&:indeterminate, &[aria-checked=mixed], &[data-indeterminate]",_groupHover:Qr(qe.hover),_peerHover:_r(qe.hover),_groupFocus:Qr(qe.focus),_peerFocus:_r(qe.focus),_groupFocusVisible:Qr(qe.focusVisible),_peerFocusVisible:_r(qe.focusVisible),_groupActive:Qr(qe.active),_peerActive:_r(qe.active),_groupDisabled:Qr(qe.disabled),_peerDisabled:_r(qe.disabled),_groupInvalid:Qr(qe.invalid),_peerInvalid:_r(qe.invalid),_groupChecked:Qr(qe.checked),_peerChecked:_r(qe.checked),_groupFocusWithin:Qr(qe.focusWithin),_peerFocusWithin:_r(qe.focusWithin),_peerPlaceholderShown:_r(qe.placeholderShown),_placeholder:"&::placeholder",_placeholderShown:"&:placeholder-shown",_fullScreen:"&:fullscreen",_selection:"&::selection",_rtl:"[dir=rtl] &, &[dir=rtl]",_ltr:"[dir=ltr] &, &[dir=ltr]",_mediaDark:"@media (prefers-color-scheme: dark)",_mediaReduceMotion:"@media (prefers-reduced-motion: reduce)",_dark:".chakra-ui-dark &:not([data-theme]),[data-theme=dark] &:not([data-theme]),&[data-theme=dark]",_light:".chakra-ui-light &:not([data-theme]),[data-theme=light] &:not([data-theme]),&[data-theme=light]",_horizontal:"&[data-orientation=horizontal]",_vertical:"&[data-orientation=vertical]"},Wb=Object.keys(Hu);function W0(e,t){return D(String(e).replace(/\./g,"-"),void 0,t)}function k_(e,t){let r={};const n={};for(const[o,i]of Object.entries(e)){const{isSemantic:s,value:a}=i,{variable:l,reference:u}=W0(o,t==null?void 0:t.cssVarPrefix);if(!s){if(o.startsWith("space")){const f=o.split("."),[p,...m]=f,v=`${p}.-${m.join(".")}`,C=Nn.negate(a),g=Nn.negate(u);n[v]={value:C,var:l,varRef:g}}r[l]=a,n[o]={value:a,var:l,varRef:u};continue}const c=f=>{const m=[String(o).split(".")[0],f].join(".");if(!e[m])return f;const{reference:C}=W0(m,t==null?void 0:t.cssVarPrefix);return C},d=vt(a)?a:{default:a};r=Ht(r,Object.entries(d).reduce((f,[p,m])=>{var v,C;if(!m)return f;const g=c(`${m}`);if(p==="default")return f[l]=g,f;const h=(C=(v=Hu)==null?void 0:v[p])!=null?C:p;return f[h]={[l]:g},f},{})),n[o]={value:u,var:l,varRef:u}}return{cssVars:r,cssMap:n}}function C_(e,t=[]){const r=Object.assign({},e);for(const n of t)n in r&&delete r[n];return r}function __(e,t){const r={};for(const n of t)n in e&&(r[n]=e[n]);return r}function T_(e){return typeof e=="object"&&e!=null&&!Array.isArray(e)}function G0(e,t,r={}){const{stop:n,getKey:o}=r;function i(s,a=[]){var l;if(T_(s)||Array.isArray(s)){const u={};for(const[c,d]of Object.entries(s)){const f=(l=o==null?void 0:o(c))!=null?l:c,p=[...a,f];if(n!=null&&n(s,p))return t(s,a);u[f]=i(d,p)}return u}return t(s,a)}return i(e)}var P_=["colors","borders","borderWidths","borderStyles","fonts","fontSizes","fontWeights","gradients","letterSpacings","lineHeights","radii","space","shadows","sizes","zIndices","transition","blur","breakpoints"];function E_(e){return __(e,P_)}function $_(e){return e.semanticTokens}function A_(e){const{__cssMap:t,__cssVars:r,__breakpoints:n,...o}=e;return o}var R_=e=>Wb.includes(e)||e==="default";function z_({tokens:e,semanticTokens:t}){const r={};return G0(e,(n,o)=>{n!=null&&(r[o.join(".")]={isSemantic:!1,value:n})}),G0(t,(n,o)=>{n!=null&&(r[o.join(".")]={isSemantic:!0,value:n})},{stop:n=>Object.keys(n).every(R_)}),r}function M_(e){var t;const r=A_(e),n=E_(r),o=$_(r),i=z_({tokens:n,semanticTokens:o}),s=(t=r.config)==null?void 0:t.cssVarPrefix,{cssMap:a,cssVars:l}=k_(i,{cssVarPrefix:s});return Object.assign(r,{__cssVars:{...{"--chakra-ring-inset":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-ring-offset-width":"0px","--chakra-ring-offset-color":"#fff","--chakra-ring-color":"rgba(66, 153, 225, 0.6)","--chakra-ring-offset-shadow":"0 0 #0000","--chakra-ring-shadow":"0 0 #0000","--chakra-space-x-reverse":"0","--chakra-space-y-reverse":"0"},...l},__cssMap:a,__breakpoints:w_(r.breakpoints)}),r}var fp=Ht({},sl,ee,X4,Ql,It,Y4,i_,Q4,Nb,o_,rs,Tf,be,c_,u_,s_,a_,Z4,l_);Object.assign({},be,It,Ql,Nb,rs);var L_=[...Object.keys(fp),...Wb],F_={...fp,...Hu},O_=e=>e in F_,j_=e=>t=>{if(!t.__breakpoints)return e;const{isResponsive:r,toArrayValue:n,media:o}=t.__breakpoints,i={};for(const s in e){let a=dn(e[s],t);if(a==null)continue;if(a=vt(a)&&r(a)?n(a):a,!Array.isArray(a)){i[s]=a;continue}const l=a.slice(0,o.length).length;for(let u=0;ue.startsWith("--")&&typeof t=="string"&&!B_(t),N_=(e,t)=>{var r,n;if(t==null)return t;const o=l=>{var u,c;return(c=(u=e.__cssMap)==null?void 0:u[l])==null?void 0:c.varRef},i=l=>{var u;return(u=o(l))!=null?u:l},[s,a]=D_(t);return t=(n=(r=o(s))!=null?r:i(a))!=null?n:i(t),t};function V_(e){const{configs:t={},pseudos:r={},theme:n}=e,o=(i,s=!1)=>{var a,l,u;const c=dn(i,n),d=j_(c)(n);let f={};for(let p in d){const m=d[p];let v=dn(m,n);p in r&&(p=r[p]),I_(p,v)&&(v=N_(n,v));let C=t[p];if(C===!0&&(C={property:p}),vt(v)){f[p]=(a=f[p])!=null?a:{},f[p]=Ht({},f[p],o(v,!0));continue}let g=(u=(l=C==null?void 0:C.transform)==null?void 0:l.call(C,v,n,c))!=null?u:v;g=C!=null&&C.processResult?o(g,!0):g;const h=dn(C==null?void 0:C.property,n);if(!s&&(C!=null&&C.static)){const y=dn(C.static,n);f=Ht({},f,y)}if(h&&Array.isArray(h)){for(const y of h)f[y]=g;continue}if(h){h==="&"&&vt(g)?f=Ht({},f,g):f[h]=g;continue}if(vt(g)){f=Ht({},f,g);continue}f[p]=g}return f};return o}var Gb=e=>t=>V_({theme:t,pseudos:Hu,configs:fp})(e);function ge(e){return{definePartsStyle(t){return t},defineMultiStyleConfig(t){return{parts:e,...t}}}}function U_(e,t){if(Array.isArray(e))return e;if(vt(e))return t(e);if(e!=null)return[e]}function H_(e,t){for(let r=t+1;r{Ht(u,{[y]:f?h[y]:{[g]:h[y]}})});continue}if(!p){f?Ht(u,h):u[g]=h;continue}u[g]=h}}return u}}function G_(e){return t=>{var r;const{variant:n,size:o,theme:i}=t,s=W_(i);return Ht({},dn((r=e.baseStyle)!=null?r:{},t),s(e,"sizes",o,t),s(e,"variants",n,t))}}function Xt(e){return C_(e,["styleConfig","size","variant","colorScheme"])}var K_=["borders","breakpoints","colors","components","config","direction","fonts","fontSizes","fontWeights","letterSpacings","lineHeights","radii","shadows","sizes","space","styles","transition","zIndices"];function q_(e){return vt(e)?K_.every(t=>Object.prototype.hasOwnProperty.call(e,t)):!1}var X_={common:"background-color, border-color, color, fill, stroke, opacity, box-shadow, transform",colors:"background-color, border-color, color, fill, stroke",dimensions:"width, height",position:"left, right, top, bottom",background:"background-color, background-image, background-position"},Y_={"ease-in":"cubic-bezier(0.4, 0, 1, 1)","ease-out":"cubic-bezier(0, 0, 0.2, 1)","ease-in-out":"cubic-bezier(0.4, 0, 0.2, 1)"},Q_={"ultra-fast":"50ms",faster:"100ms",fast:"150ms",normal:"200ms",slow:"300ms",slower:"400ms","ultra-slow":"500ms"},Z_={property:X_,easing:Y_,duration:Q_},J_=Z_,e3={hide:-1,auto:"auto",base:0,docked:10,dropdown:1e3,sticky:1100,banner:1200,overlay:1300,modal:1400,popover:1500,skipLink:1600,toast:1700,tooltip:1800},t3=e3,r3={none:0,"1px":"1px solid","2px":"2px solid","4px":"4px solid","8px":"8px solid"},n3=r3,o3={base:"0em",sm:"30em",md:"48em",lg:"62em",xl:"80em","2xl":"96em"},i3=o3,s3={transparent:"transparent",current:"currentColor",black:"#000000",white:"#FFFFFF",whiteAlpha:{50:"rgba(255, 255, 255, 0.04)",100:"rgba(255, 255, 255, 0.06)",200:"rgba(255, 255, 255, 0.08)",300:"rgba(255, 255, 255, 0.16)",400:"rgba(255, 255, 255, 0.24)",500:"rgba(255, 255, 255, 0.36)",600:"rgba(255, 255, 255, 0.48)",700:"rgba(255, 255, 255, 0.64)",800:"rgba(255, 255, 255, 0.80)",900:"rgba(255, 255, 255, 0.92)"},blackAlpha:{50:"rgba(0, 0, 0, 0.04)",100:"rgba(0, 0, 0, 0.06)",200:"rgba(0, 0, 0, 0.08)",300:"rgba(0, 0, 0, 0.16)",400:"rgba(0, 0, 0, 0.24)",500:"rgba(0, 0, 0, 0.36)",600:"rgba(0, 0, 0, 0.48)",700:"rgba(0, 0, 0, 0.64)",800:"rgba(0, 0, 0, 0.80)",900:"rgba(0, 0, 0, 0.92)"},gray:{50:"#F7FAFC",100:"#EDF2F7",200:"#E2E8F0",300:"#CBD5E0",400:"#A0AEC0",500:"#718096",600:"#4A5568",700:"#2D3748",800:"#1A202C",900:"#171923"},red:{50:"#FFF5F5",100:"#FED7D7",200:"#FEB2B2",300:"#FC8181",400:"#F56565",500:"#E53E3E",600:"#C53030",700:"#9B2C2C",800:"#822727",900:"#63171B"},orange:{50:"#FFFAF0",100:"#FEEBC8",200:"#FBD38D",300:"#F6AD55",400:"#ED8936",500:"#DD6B20",600:"#C05621",700:"#9C4221",800:"#7B341E",900:"#652B19"},yellow:{50:"#FFFFF0",100:"#FEFCBF",200:"#FAF089",300:"#F6E05E",400:"#ECC94B",500:"#D69E2E",600:"#B7791F",700:"#975A16",800:"#744210",900:"#5F370E"},green:{50:"#F0FFF4",100:"#C6F6D5",200:"#9AE6B4",300:"#68D391",400:"#48BB78",500:"#38A169",600:"#2F855A",700:"#276749",800:"#22543D",900:"#1C4532"},teal:{50:"#E6FFFA",100:"#B2F5EA",200:"#81E6D9",300:"#4FD1C5",400:"#38B2AC",500:"#319795",600:"#2C7A7B",700:"#285E61",800:"#234E52",900:"#1D4044"},blue:{50:"#ebf8ff",100:"#bee3f8",200:"#90cdf4",300:"#63b3ed",400:"#4299e1",500:"#3182ce",600:"#2b6cb0",700:"#2c5282",800:"#2a4365",900:"#1A365D"},cyan:{50:"#EDFDFD",100:"#C4F1F9",200:"#9DECF9",300:"#76E4F7",400:"#0BC5EA",500:"#00B5D8",600:"#00A3C4",700:"#0987A0",800:"#086F83",900:"#065666"},purple:{50:"#FAF5FF",100:"#E9D8FD",200:"#D6BCFA",300:"#B794F4",400:"#9F7AEA",500:"#805AD5",600:"#6B46C1",700:"#553C9A",800:"#44337A",900:"#322659"},pink:{50:"#FFF5F7",100:"#FED7E2",200:"#FBB6CE",300:"#F687B3",400:"#ED64A6",500:"#D53F8C",600:"#B83280",700:"#97266D",800:"#702459",900:"#521B41"},linkedin:{50:"#E8F4F9",100:"#CFEDFB",200:"#9BDAF3",300:"#68C7EC",400:"#34B3E4",500:"#00A0DC",600:"#008CC9",700:"#0077B5",800:"#005E93",900:"#004471"},facebook:{50:"#E8F4F9",100:"#D9DEE9",200:"#B7C2DA",300:"#6482C0",400:"#4267B2",500:"#385898",600:"#314E89",700:"#29487D",800:"#223B67",900:"#1E355B"},messenger:{50:"#D0E6FF",100:"#B9DAFF",200:"#A2CDFF",300:"#7AB8FF",400:"#2E90FF",500:"#0078FF",600:"#0063D1",700:"#0052AC",800:"#003C7E",900:"#002C5C"},whatsapp:{50:"#dffeec",100:"#b9f5d0",200:"#90edb3",300:"#65e495",400:"#3cdd78",500:"#22c35e",600:"#179848",700:"#0c6c33",800:"#01421c",900:"#001803"},twitter:{50:"#E5F4FD",100:"#C8E9FB",200:"#A8DCFA",300:"#83CDF7",400:"#57BBF5",500:"#1DA1F2",600:"#1A94DA",700:"#1681BF",800:"#136B9E",900:"#0D4D71"},telegram:{50:"#E3F2F9",100:"#C5E4F3",200:"#A2D4EC",300:"#7AC1E4",400:"#47A9DA",500:"#0088CC",600:"#007AB8",700:"#006BA1",800:"#005885",900:"#003F5E"}},a3=s3,l3={none:"0",sm:"0.125rem",base:"0.25rem",md:"0.375rem",lg:"0.5rem",xl:"0.75rem","2xl":"1rem","3xl":"1.5rem",full:"9999px"},u3=l3,c3={xs:"0 0 0 1px rgba(0, 0, 0, 0.05)",sm:"0 1px 2px 0 rgba(0, 0, 0, 0.05)",base:"0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06)",md:"0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06)",lg:"0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05)",xl:"0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04)","2xl":"0 25px 50px -12px rgba(0, 0, 0, 0.25)",outline:"0 0 0 3px rgba(66, 153, 225, 0.6)",inner:"inset 0 2px 4px 0 rgba(0,0,0,0.06)",none:"none","dark-lg":"rgba(0, 0, 0, 0.1) 0px 0px 0px 1px, rgba(0, 0, 0, 0.2) 0px 5px 10px, rgba(0, 0, 0, 0.4) 0px 15px 40px"},d3=c3,f3={none:0,sm:"4px",base:"8px",md:"12px",lg:"16px",xl:"24px","2xl":"40px","3xl":"64px"},h3=f3,p3={letterSpacings:{tighter:"-0.05em",tight:"-0.025em",normal:"0",wide:"0.025em",wider:"0.05em",widest:"0.1em"},lineHeights:{normal:"normal",none:1,shorter:1.25,short:1.375,base:1.5,tall:1.625,taller:"2",3:".75rem",4:"1rem",5:"1.25rem",6:"1.5rem",7:"1.75rem",8:"2rem",9:"2.25rem",10:"2.5rem"},fontWeights:{hairline:100,thin:200,light:300,normal:400,medium:500,semibold:600,bold:700,extrabold:800,black:900},fonts:{heading:'-apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"',body:'-apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"',mono:'SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace'},fontSizes:{"3xs":"0.45rem","2xs":"0.625rem",xs:"0.75rem",sm:"0.875rem",md:"1rem",lg:"1.125rem",xl:"1.25rem","2xl":"1.5rem","3xl":"1.875rem","4xl":"2.25rem","5xl":"3rem","6xl":"3.75rem","7xl":"4.5rem","8xl":"6rem","9xl":"8rem"}},Kb=p3,qb={px:"1px",.5:"0.125rem",1:"0.25rem",1.5:"0.375rem",2:"0.5rem",2.5:"0.625rem",3:"0.75rem",3.5:"0.875rem",4:"1rem",5:"1.25rem",6:"1.5rem",7:"1.75rem",8:"2rem",9:"2.25rem",10:"2.5rem",12:"3rem",14:"3.5rem",16:"4rem",20:"5rem",24:"6rem",28:"7rem",32:"8rem",36:"9rem",40:"10rem",44:"11rem",48:"12rem",52:"13rem",56:"14rem",60:"15rem",64:"16rem",72:"18rem",80:"20rem",96:"24rem"},m3={max:"max-content",min:"min-content",full:"100%","3xs":"14rem","2xs":"16rem",xs:"20rem",sm:"24rem",md:"28rem",lg:"32rem",xl:"36rem","2xl":"42rem","3xl":"48rem","4xl":"56rem","5xl":"64rem","6xl":"72rem","7xl":"80rem","8xl":"90rem",prose:"60ch"},g3={sm:"640px",md:"768px",lg:"1024px",xl:"1280px"},y3={...qb,...m3,container:g3},Xb=y3,v3={breakpoints:i3,zIndices:t3,radii:u3,blur:h3,colors:a3,...Kb,sizes:Xb,shadows:d3,space:qb,borders:n3,transition:J_},{defineMultiStyleConfig:b3,definePartsStyle:Ni}=ge(["stepper","step","title","description","indicator","separator","icon","number"]),Er=D("stepper-indicator-size"),Ro=D("stepper-icon-size"),zo=D("stepper-title-font-size"),Vi=D("stepper-description-font-size"),Ai=D("stepper-accent-color"),S3=Ni(({colorScheme:e})=>({stepper:{display:"flex",justifyContent:"space-between",gap:"4","&[data-orientation=vertical]":{flexDirection:"column",alignItems:"flex-start"},"&[data-orientation=horizontal]":{flexDirection:"row",alignItems:"center"},[Ai.variable]:`colors.${e}.500`,_dark:{[Ai.variable]:`colors.${e}.200`}},title:{fontSize:zo.reference,fontWeight:"medium"},description:{fontSize:Vi.reference,color:"chakra-subtle-text"},number:{fontSize:zo.reference},step:{flexShrink:0,position:"relative",display:"flex",gap:"2","&[data-orientation=horizontal]":{alignItems:"center"},flex:"1","&:last-of-type:not([data-stretch])":{flex:"initial"}},icon:{flexShrink:0,width:Ro.reference,height:Ro.reference},indicator:{flexShrink:0,borderRadius:"full",width:Er.reference,height:Er.reference,display:"flex",justifyContent:"center",alignItems:"center","&[data-status=active]":{borderWidth:"2px",borderColor:Ai.reference},"&[data-status=complete]":{bg:Ai.reference,color:"chakra-inverse-text"},"&[data-status=incomplete]":{borderWidth:"2px"}},separator:{bg:"chakra-border-color",flex:"1","&[data-status=complete]":{bg:Ai.reference},"&[data-orientation=horizontal]":{width:"100%",height:"2px",marginStart:"2"},"&[data-orientation=vertical]":{width:"2px",position:"absolute",height:"100%",maxHeight:`calc(100% - ${Er.reference} - 8px)`,top:`calc(${Er.reference} + 4px)`,insetStart:`calc(${Er.reference} / 2 - 1px)`}}})),x3=b3({baseStyle:S3,sizes:{xs:Ni({stepper:{[Er.variable]:"sizes.4",[Ro.variable]:"sizes.3",[zo.variable]:"fontSizes.xs",[Vi.variable]:"fontSizes.xs"}}),sm:Ni({stepper:{[Er.variable]:"sizes.6",[Ro.variable]:"sizes.4",[zo.variable]:"fontSizes.sm",[Vi.variable]:"fontSizes.xs"}}),md:Ni({stepper:{[Er.variable]:"sizes.8",[Ro.variable]:"sizes.5",[zo.variable]:"fontSizes.md",[Vi.variable]:"fontSizes.sm"}}),lg:Ni({stepper:{[Er.variable]:"sizes.10",[Ro.variable]:"sizes.6",[zo.variable]:"fontSizes.lg",[Vi.variable]:"fontSizes.md"}})},defaultProps:{size:"md",colorScheme:"blue"}});function ie(e,t={}){let r=!1;function n(){if(!r){r=!0;return}throw new Error("[anatomy] .part(...) should only be called once. Did you mean to use .extend(...) ?")}function o(...c){n();for(const d of c)t[d]=l(d);return ie(e,t)}function i(...c){for(const d of c)d in t||(t[d]=l(d));return ie(e,t)}function s(){return Object.fromEntries(Object.entries(t).map(([d,f])=>[d,f.selector]))}function a(){return Object.fromEntries(Object.entries(t).map(([d,f])=>[d,f.className]))}function l(c){const p=`chakra-${(["container","root"].includes(c??"")?[e]:[e,c]).filter(Boolean).join("__")}`;return{className:p,selector:`.${p}`,toString:()=>c}}return{parts:o,toPart:l,extend:i,selectors:s,classnames:a,get keys(){return Object.keys(t)},__type:{}}}var w3=ie("accordion").parts("root","container","button","panel").extend("icon"),k3=ie("alert").parts("title","description","container").extend("icon","spinner"),C3=ie("avatar").parts("label","badge","container").extend("excessLabel","group"),_3=ie("breadcrumb").parts("link","item","container").extend("separator");ie("button").parts();var T3=ie("checkbox").parts("control","icon","container").extend("label");ie("progress").parts("track","filledTrack").extend("label");var P3=ie("drawer").parts("overlay","dialogContainer","dialog").extend("header","closeButton","body","footer"),E3=ie("editable").parts("preview","input","textarea"),$3=ie("form").parts("container","requiredIndicator","helperText"),A3=ie("formError").parts("text","icon"),R3=ie("input").parts("addon","field","element","group"),z3=ie("list").parts("container","item","icon"),M3=ie("menu").parts("button","list","item").extend("groupTitle","icon","command","divider"),L3=ie("modal").parts("overlay","dialogContainer","dialog").extend("header","closeButton","body","footer"),F3=ie("numberinput").parts("root","field","stepperGroup","stepper");ie("pininput").parts("field");var O3=ie("popover").parts("content","header","body","footer").extend("popper","arrow","closeButton"),j3=ie("progress").parts("label","filledTrack","track"),D3=ie("radio").parts("container","control","label"),B3=ie("select").parts("field","icon"),I3=ie("slider").parts("container","track","thumb","filledTrack","mark"),N3=ie("stat").parts("container","label","helpText","number","icon"),V3=ie("switch").parts("container","track","thumb"),U3=ie("table").parts("table","thead","tbody","tr","th","td","tfoot","caption"),H3=ie("tabs").parts("root","tab","tablist","tabpanel","tabpanels","indicator"),W3=ie("tag").parts("container","label","closeButton"),G3=ie("card").parts("container","header","body","footer");function Gn(e,t,r){return Math.min(Math.max(e,r),t)}class K3 extends Error{constructor(t){super(`Failed to parse color: "${t}"`)}}var Ui=K3;function hp(e){if(typeof e!="string")throw new Ui(e);if(e.trim().toLowerCase()==="transparent")return[0,0,0,0];let t=e.trim();t=tT.test(e)?Y3(e):e;const r=Q3.exec(t);if(r){const s=Array.from(r).slice(1);return[...s.slice(0,3).map(a=>parseInt(Ls(a,2),16)),parseInt(Ls(s[3]||"f",2),16)/255]}const n=Z3.exec(t);if(n){const s=Array.from(n).slice(1);return[...s.slice(0,3).map(a=>parseInt(a,16)),parseInt(s[3]||"ff",16)/255]}const o=J3.exec(t);if(o){const s=Array.from(o).slice(1);return[...s.slice(0,3).map(a=>parseInt(a,10)),parseFloat(s[3]||"1")]}const i=eT.exec(t);if(i){const[s,a,l,u]=Array.from(i).slice(1).map(parseFloat);if(Gn(0,100,a)!==a)throw new Ui(e);if(Gn(0,100,l)!==l)throw new Ui(e);return[...rT(s,a,l),Number.isNaN(u)?1:u]}throw new Ui(e)}function q3(e){let t=5381,r=e.length;for(;r;)t=t*33^e.charCodeAt(--r);return(t>>>0)%2341}const K0=e=>parseInt(e.replace(/_/g,""),36),X3="1q29ehhb 1n09sgk7 1kl1ekf_ _yl4zsno 16z9eiv3 1p29lhp8 _bd9zg04 17u0____ _iw9zhe5 _to73___ _r45e31e _7l6g016 _jh8ouiv _zn3qba8 1jy4zshs 11u87k0u 1ro9yvyo 1aj3xael 1gz9zjz0 _3w8l4xo 1bf1ekf_ _ke3v___ _4rrkb__ 13j776yz _646mbhl _nrjr4__ _le6mbhl 1n37ehkb _m75f91n _qj3bzfz 1939yygw 11i5z6x8 _1k5f8xs 1509441m 15t5lwgf _ae2th1n _tg1ugcv 1lp1ugcv 16e14up_ _h55rw7n _ny9yavn _7a11xb_ 1ih442g9 _pv442g9 1mv16xof 14e6y7tu 1oo9zkds 17d1cisi _4v9y70f _y98m8kc 1019pq0v 12o9zda8 _348j4f4 1et50i2o _8epa8__ _ts6senj 1o350i2o 1mi9eiuo 1259yrp0 1ln80gnw _632xcoy 1cn9zldc _f29edu4 1n490c8q _9f9ziet 1b94vk74 _m49zkct 1kz6s73a 1eu9dtog _q58s1rz 1dy9sjiq __u89jo3 _aj5nkwg _ld89jo3 13h9z6wx _qa9z2ii _l119xgq _bs5arju 1hj4nwk9 1qt4nwk9 1ge6wau6 14j9zlcw 11p1edc_ _ms1zcxe _439shk6 _jt9y70f _754zsow 1la40eju _oq5p___ _x279qkz 1fa5r3rv _yd2d9ip _424tcku _8y1di2_ _zi2uabw _yy7rn9h 12yz980_ __39ljp6 1b59zg0x _n39zfzp 1fy9zest _b33k___ _hp9wq92 1il50hz4 _io472ub _lj9z3eo 19z9ykg0 _8t8iu3a 12b9bl4a 1ak5yw0o _896v4ku _tb8k8lv _s59zi6t _c09ze0p 1lg80oqn 1id9z8wb _238nba5 1kq6wgdi _154zssg _tn3zk49 _da9y6tc 1sg7cv4f _r12jvtt 1gq5fmkz 1cs9rvci _lp9jn1c _xw1tdnb 13f9zje6 16f6973h _vo7ir40 _bt5arjf _rc45e4t _hr4e100 10v4e100 _hc9zke2 _w91egv_ _sj2r1kk 13c87yx8 _vqpds__ _ni8ggk8 _tj9yqfb 1ia2j4r4 _7x9b10u 1fc9ld4j 1eq9zldr _5j9lhpx _ez9zl6o _md61fzm".split(" ").reduce((e,t)=>{const r=K0(t.substring(0,3)),n=K0(t.substring(3)).toString(16);let o="";for(let i=0;i<6-n.length;i++)o+="0";return e[r]=`${o}${n}`,e},{});function Y3(e){const t=e.toLowerCase().trim(),r=X3[q3(t)];if(!r)throw new Ui(e);return`#${r}`}const Ls=(e,t)=>Array.from(Array(t)).map(()=>e).join(""),Q3=new RegExp(`^#${Ls("([a-f0-9])",3)}([a-f0-9])?$`,"i"),Z3=new RegExp(`^#${Ls("([a-f0-9]{2})",3)}([a-f0-9]{2})?$`,"i"),J3=new RegExp(`^rgba?\\(\\s*(\\d+)\\s*${Ls(",\\s*(\\d+)\\s*",2)}(?:,\\s*([\\d.]+))?\\s*\\)$`,"i"),eT=/^hsla?\(\s*([\d.]+)\s*,\s*([\d.]+)%\s*,\s*([\d.]+)%(?:\s*,\s*([\d.]+))?\s*\)$/i,tT=/^[a-z]+$/i,q0=e=>Math.round(e*255),rT=(e,t,r)=>{let n=r/100;if(t===0)return[n,n,n].map(q0);const o=(e%360+360)%360/60,i=(1-Math.abs(2*n-1))*(t/100),s=i*(1-Math.abs(o%2-1));let a=0,l=0,u=0;o>=0&&o<1?(a=i,l=s):o>=1&&o<2?(a=s,l=i):o>=2&&o<3?(l=i,u=s):o>=3&&o<4?(l=s,u=i):o>=4&&o<5?(a=s,u=i):o>=5&&o<6&&(a=i,u=s);const c=n-i/2,d=a+c,f=l+c,p=u+c;return[d,f,p].map(q0)};function nT(e,t,r,n){return`rgba(${Gn(0,255,e).toFixed()}, ${Gn(0,255,t).toFixed()}, ${Gn(0,255,r).toFixed()}, ${parseFloat(Gn(0,1,n).toFixed(3))})`}function oT(e,t){const[r,n,o,i]=hp(e);return nT(r,n,o,i-t)}function iT(e){const[t,r,n,o]=hp(e);let i=s=>{const a=Gn(0,255,s).toString(16);return a.length===1?`0${a}`:a};return`#${i(t)}${i(r)}${i(n)}${o<1?i(Math.round(o*255)):""}`}function sT(e,t,r,n,o){for(t=t.split?t.split("."):t,n=0;nObject.keys(e).length===0,st=(e,t,r)=>{const n=sT(e,`colors.${t}`,t);try{return iT(n),n}catch{return r??"#000000"}},lT=e=>{const[t,r,n]=hp(e);return(t*299+r*587+n*114)/1e3},uT=e=>t=>{const r=st(t,e);return lT(r)<128?"dark":"light"},cT=e=>t=>uT(e)(t)==="dark",si=(e,t)=>r=>{const n=st(r,e);return oT(n,1-t)};function X0(e="1rem",t="rgba(255, 255, 255, 0.15)"){return{backgroundImage:`linear-gradient( + `;return`!${i?s:a}`.trim()}function T4(e={}){const{nonce:t}=e;return _.jsx("script",{id:"chakra-script",nonce:t,dangerouslySetInnerHTML:{__html:_4(e)}})}function P4(){const e=Vu(),t=mi();return{...e,theme:t}}function E4(e,t,r){var n,o;if(t==null)return t;const i=s=>{var a,l;return(l=(a=e.__breakpoints)==null?void 0:a.asArray)==null?void 0:l[s]};return(o=(n=i(t))!=null?n:i(r))!=null?o:r}function $4(e,t,r){var n,o;if(t==null)return t;const i=s=>{var a,l;return(l=(a=e.__cssMap)==null?void 0:a[s])==null?void 0:l.value};return(o=(n=i(t))!=null?n:i(r))!=null?o:r}function A4(e,t,r){const n=mi();return Bb(e,t,r)(n)}function Bb(e,t,r){const n=Array.isArray(t)?t:[t],o=Array.isArray(r)?r:[r];return i=>{const s=o.filter(Boolean),a=n.map((l,u)=>{var c,d;if(e==="breakpoints")return E4(i,l,(c=s[u])!=null?c:l);const f=`${e}.${l}`;return $4(i,f,(d=s[u])!=null?d:l)});return Array.isArray(t)?a:a[0]}}var Be=(...e)=>e.filter(Boolean).join(" ");function vt(e){const t=typeof e;return e!=null&&(t==="object"||t==="function")&&!Array.isArray(e)}function dn(e,...t){return R4(e)?e(...t):e}var R4=e=>typeof e=="function",oe=e=>e?"":void 0;function kt(...e){return function(r){e.some(n=>(n==null||n(r),r==null?void 0:r.defaultPrevented))}}var Yl={exports:{}};Yl.exports;(function(e,t){var r=200,n="__lodash_hash_undefined__",o=800,i=16,s=9007199254740991,a="[object Arguments]",l="[object Array]",u="[object AsyncFunction]",c="[object Boolean]",d="[object Date]",f="[object Error]",p="[object Function]",m="[object GeneratorFunction]",v="[object Map]",C="[object Number]",g="[object Null]",h="[object Object]",y="[object Proxy]",k="[object RegExp]",P="[object Set]",R="[object String]",E="[object Undefined]",A="[object WeakMap]",O="[object ArrayBuffer]",j="[object DataView]",de="[object Float32Array]",ye="[object Float64Array]",Re="[object Int8Array]",ae="[object Int16Array]",he="[object Int32Array]",Le="[object Uint8Array]",Ie="[object Uint8ClampedArray]",M="[object Uint16Array]",I="[object Uint32Array]",U=/[\\^$.*+?()[\]{}|]/g,N=/^\[object .+?Constructor\]$/,J=/^(?:0|[1-9]\d*)$/,W={};W[de]=W[ye]=W[Re]=W[ae]=W[he]=W[Le]=W[Ie]=W[M]=W[I]=!0,W[a]=W[l]=W[O]=W[c]=W[j]=W[d]=W[f]=W[p]=W[v]=W[C]=W[h]=W[k]=W[P]=W[R]=W[A]=!1;var ce=typeof pa=="object"&&pa&&pa.Object===Object&&pa,Yt=typeof self=="object"&&self&&self.Object===Object&&self,Ee=ce||Yt||Function("return this")(),xt=t&&!t.nodeType&&t,ar=xt&&!0&&e&&!e.nodeType&&e,Xr=ar&&ar.exports===xt,lr=Xr&&ce.process,Ft=function(){try{var b=ar&&ar.require&&ar.require("util").types;return b||lr&&lr.binding&&lr.binding("util")}catch{}}(),zn=Ft&&Ft.isTypedArray;function co(b,x,T){switch(T.length){case 0:return b.call(x);case 1:return b.call(x,T[0]);case 2:return b.call(x,T[0],T[1]);case 3:return b.call(x,T[0],T[1],T[2])}return b.apply(x,T)}function Zp(b,x){for(var T=-1,L=Array(b);++T-1}function Z2(b,x){var T=this.__data__,L=ca(T,b);return L<0?(++this.size,T.push([b,x])):T[L][1]=x,this}Cr.prototype.clear=q2,Cr.prototype.delete=X2,Cr.prototype.get=Y2,Cr.prototype.has=Q2,Cr.prototype.set=Z2;function ho(b){var x=-1,T=b==null?0:b.length;for(this.clear();++x1?T[X-1]:void 0,xe=X>2?T[2]:void 0;for(fe=b.length>3&&typeof fe=="function"?(X--,fe):void 0,xe&&Pw(T[0],T[1],xe)&&(fe=X<3?void 0:fe,X=1),x=Object(x);++L-1&&b%1==0&&b0){if(++x>=o)return arguments[0]}else x=0;return b.apply(void 0,arguments)}}function Fw(b){if(b!=null){try{return aa.call(b)}catch{}try{return b+""}catch{}}return""}function ha(b,x){return b===x||b!==b&&x!==x}var pc=lm(function(){return arguments}())?lm:function(b){return bi(b)&&kr.call(b,"callee")&&!D2.call(b,"callee")},mc=Array.isArray;function gc(b){return b!=null&&hm(b.length)&&!yc(b)}function Ow(b){return bi(b)&&gc(b)}var fm=I2||Nw;function yc(b){if(!Fn(b))return!1;var x=da(b);return x==p||x==m||x==u||x==y}function hm(b){return typeof b=="number"&&b>-1&&b%1==0&&b<=s}function Fn(b){var x=typeof b;return b!=null&&(x=="object"||x=="function")}function bi(b){return b!=null&&typeof b=="object"}function jw(b){if(!bi(b)||da(b)!=h)return!1;var x=om(b);if(x===null)return!0;var T=kr.call(x,"constructor")&&x.constructor;return typeof T=="function"&&T instanceof T&&aa.call(T)==O2}var pm=zn?G(zn):hw;function Dw(b){return ww(b,mm(b))}function mm(b){return gc(b)?uw(b,!0):pw(b)}var Bw=kw(function(b,x,T,L){um(b,x,T,L)});function Iw(b){return function(){return b}}function gm(b){return b}function Nw(){return!1}e.exports=Bw})(Yl,Yl.exports);var z4=Yl.exports;const Ht=ih(z4);var M4=e=>/!(important)?$/.test(e),D0=e=>typeof e=="string"?e.replace(/!(important)?$/,"").trim():e,L4=(e,t)=>r=>{const n=String(t),o=M4(n),i=D0(n),s=e?`${e}.${i}`:i;let a=vt(r.__cssMap)&&s in r.__cssMap?r.__cssMap[s].varRef:t;return a=D0(a),o?`${a} !important`:a};function dp(e){const{scale:t,transform:r,compose:n}=e;return(i,s)=>{var a;const l=L4(t,i)(s);let u=(a=r==null?void 0:r(l,s))!=null?a:l;return n&&(u=n(u,s)),u}}var La=(...e)=>t=>e.reduce((r,n)=>n(r),t);function Dt(e,t){return r=>{const n={property:r,scale:e};return n.transform=dp({scale:e,transform:t}),n}}var F4=({rtl:e,ltr:t})=>r=>r.direction==="rtl"?e:t;function O4(e){const{property:t,scale:r,transform:n}=e;return{scale:r,property:F4(t),transform:r?dp({scale:r,compose:n}):n}}var Ib=["rotate(var(--chakra-rotate, 0))","scaleX(var(--chakra-scale-x, 1))","scaleY(var(--chakra-scale-y, 1))","skewX(var(--chakra-skew-x, 0))","skewY(var(--chakra-skew-y, 0))"];function j4(){return["translateX(var(--chakra-translate-x, 0))","translateY(var(--chakra-translate-y, 0))",...Ib].join(" ")}function D4(){return["translate3d(var(--chakra-translate-x, 0), var(--chakra-translate-y, 0), 0)",...Ib].join(" ")}var B4={"--chakra-blur":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-brightness":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-contrast":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-grayscale":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-hue-rotate":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-invert":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-saturate":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-sepia":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-drop-shadow":"var(--chakra-empty,/*!*/ /*!*/)",filter:["var(--chakra-blur)","var(--chakra-brightness)","var(--chakra-contrast)","var(--chakra-grayscale)","var(--chakra-hue-rotate)","var(--chakra-invert)","var(--chakra-saturate)","var(--chakra-sepia)","var(--chakra-drop-shadow)"].join(" ")},I4={backdropFilter:["var(--chakra-backdrop-blur)","var(--chakra-backdrop-brightness)","var(--chakra-backdrop-contrast)","var(--chakra-backdrop-grayscale)","var(--chakra-backdrop-hue-rotate)","var(--chakra-backdrop-invert)","var(--chakra-backdrop-opacity)","var(--chakra-backdrop-saturate)","var(--chakra-backdrop-sepia)"].join(" "),"--chakra-backdrop-blur":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-brightness":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-contrast":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-grayscale":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-hue-rotate":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-invert":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-opacity":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-saturate":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-sepia":"var(--chakra-empty,/*!*/ /*!*/)"};function N4(e){return{"--chakra-ring-offset-shadow":"var(--chakra-ring-inset) 0 0 0 var(--chakra-ring-offset-width) var(--chakra-ring-offset-color)","--chakra-ring-shadow":"var(--chakra-ring-inset) 0 0 0 calc(var(--chakra-ring-width) + var(--chakra-ring-offset-width)) var(--chakra-ring-color)","--chakra-ring-width":e,boxShadow:["var(--chakra-ring-offset-shadow)","var(--chakra-ring-shadow)","var(--chakra-shadow, 0 0 #0000)"].join(", ")}}var V4={"row-reverse":{space:"--chakra-space-x-reverse",divide:"--chakra-divide-x-reverse"},"column-reverse":{space:"--chakra-space-y-reverse",divide:"--chakra-divide-y-reverse"}},Cf={"to-t":"to top","to-tr":"to top right","to-r":"to right","to-br":"to bottom right","to-b":"to bottom","to-bl":"to bottom left","to-l":"to left","to-tl":"to top left"},U4=new Set(Object.values(Cf)),_f=new Set(["none","-moz-initial","inherit","initial","revert","unset"]),H4=e=>e.trim();function W4(e,t){if(e==null||_f.has(e))return e;if(!(Tf(e)||_f.has(e)))return`url('${e}')`;const o=/(^[a-z-A-Z]+)\((.*)\)/g.exec(e),i=o==null?void 0:o[1],s=o==null?void 0:o[2];if(!i||!s)return e;const a=i.includes("-gradient")?i:`${i}-gradient`,[l,...u]=s.split(",").map(H4).filter(Boolean);if((u==null?void 0:u.length)===0)return e;const c=l in Cf?Cf[l]:l;u.unshift(c);const d=u.map(f=>{if(U4.has(f))return f;const p=f.indexOf(" "),[m,v]=p!==-1?[f.substr(0,p),f.substr(p+1)]:[f],C=Tf(v)?v:v&&v.split(" "),g=`colors.${m}`,h=g in t.__cssMap?t.__cssMap[g].varRef:m;return C?[h,...Array.isArray(C)?C:[C]].join(" "):h});return`${a}(${d.join(", ")})`}var Tf=e=>typeof e=="string"&&e.includes("(")&&e.includes(")"),G4=(e,t)=>W4(e,t??{});function K4(e){return/^var\(--.+\)$/.test(e)}var q4=e=>{const t=parseFloat(e.toString()),r=e.toString().replace(String(t),"");return{unitless:!r,value:t,unit:r}},cr=e=>t=>`${e}(${t})`,Z={filter(e){return e!=="auto"?e:B4},backdropFilter(e){return e!=="auto"?e:I4},ring(e){return N4(Z.px(e))},bgClip(e){return e==="text"?{color:"transparent",backgroundClip:"text"}:{backgroundClip:e}},transform(e){return e==="auto"?j4():e==="auto-gpu"?D4():e},vh(e){return e==="$100vh"?"var(--chakra-vh)":e},px(e){if(e==null)return e;const{unitless:t}=q4(e);return t||typeof e=="number"?`${e}px`:e},fraction(e){return typeof e!="number"||e>1?e:`${e*100}%`},float(e,t){const r={left:"right",right:"left"};return t.direction==="rtl"?r[e]:e},degree(e){if(K4(e)||e==null)return e;const t=typeof e=="string"&&!e.endsWith("deg");return typeof e=="number"||t?`${e}deg`:e},gradient:G4,blur:cr("blur"),opacity:cr("opacity"),brightness:cr("brightness"),contrast:cr("contrast"),dropShadow:cr("drop-shadow"),grayscale:cr("grayscale"),hueRotate:cr("hue-rotate"),invert:cr("invert"),saturate:cr("saturate"),sepia:cr("sepia"),bgImage(e){return e==null||Tf(e)||_f.has(e)?e:`url(${e})`},outline(e){const t=String(e)==="0"||String(e)==="none";return e!==null&&t?{outline:"2px solid transparent",outlineOffset:"2px"}:{outline:e}},flexDirection(e){var t;const{space:r,divide:n}=(t=V4[e])!=null?t:{},o={flexDirection:e};return r&&(o[r]=1),n&&(o[n]=1),o}},w={borderWidths:Dt("borderWidths"),borderStyles:Dt("borderStyles"),colors:Dt("colors"),borders:Dt("borders"),gradients:Dt("gradients",Z.gradient),radii:Dt("radii",Z.px),space:Dt("space",La(Z.vh,Z.px)),spaceT:Dt("space",La(Z.vh,Z.px)),degreeT(e){return{property:e,transform:Z.degree}},prop(e,t,r){return{property:e,scale:t,...t&&{transform:dp({scale:t,transform:r})}}},propT(e,t){return{property:e,transform:t}},sizes:Dt("sizes",La(Z.vh,Z.px)),sizesT:Dt("sizes",La(Z.vh,Z.fraction)),shadows:Dt("shadows"),logical:O4,blur:Dt("blur",Z.blur)},sl={background:w.colors("background"),backgroundColor:w.colors("backgroundColor"),backgroundImage:w.gradients("backgroundImage"),backgroundSize:!0,backgroundPosition:!0,backgroundRepeat:!0,backgroundAttachment:!0,backgroundClip:{transform:Z.bgClip},bgSize:w.prop("backgroundSize"),bgPosition:w.prop("backgroundPosition"),bg:w.colors("background"),bgColor:w.colors("backgroundColor"),bgPos:w.prop("backgroundPosition"),bgRepeat:w.prop("backgroundRepeat"),bgAttachment:w.prop("backgroundAttachment"),bgGradient:w.gradients("backgroundImage"),bgClip:{transform:Z.bgClip}};Object.assign(sl,{bgImage:sl.backgroundImage,bgImg:sl.backgroundImage});var ee={border:w.borders("border"),borderWidth:w.borderWidths("borderWidth"),borderStyle:w.borderStyles("borderStyle"),borderColor:w.colors("borderColor"),borderRadius:w.radii("borderRadius"),borderTop:w.borders("borderTop"),borderBlockStart:w.borders("borderBlockStart"),borderTopLeftRadius:w.radii("borderTopLeftRadius"),borderStartStartRadius:w.logical({scale:"radii",property:{ltr:"borderTopLeftRadius",rtl:"borderTopRightRadius"}}),borderEndStartRadius:w.logical({scale:"radii",property:{ltr:"borderBottomLeftRadius",rtl:"borderBottomRightRadius"}}),borderTopRightRadius:w.radii("borderTopRightRadius"),borderStartEndRadius:w.logical({scale:"radii",property:{ltr:"borderTopRightRadius",rtl:"borderTopLeftRadius"}}),borderEndEndRadius:w.logical({scale:"radii",property:{ltr:"borderBottomRightRadius",rtl:"borderBottomLeftRadius"}}),borderRight:w.borders("borderRight"),borderInlineEnd:w.borders("borderInlineEnd"),borderBottom:w.borders("borderBottom"),borderBlockEnd:w.borders("borderBlockEnd"),borderBottomLeftRadius:w.radii("borderBottomLeftRadius"),borderBottomRightRadius:w.radii("borderBottomRightRadius"),borderLeft:w.borders("borderLeft"),borderInlineStart:{property:"borderInlineStart",scale:"borders"},borderInlineStartRadius:w.logical({scale:"radii",property:{ltr:["borderTopLeftRadius","borderBottomLeftRadius"],rtl:["borderTopRightRadius","borderBottomRightRadius"]}}),borderInlineEndRadius:w.logical({scale:"radii",property:{ltr:["borderTopRightRadius","borderBottomRightRadius"],rtl:["borderTopLeftRadius","borderBottomLeftRadius"]}}),borderX:w.borders(["borderLeft","borderRight"]),borderInline:w.borders("borderInline"),borderY:w.borders(["borderTop","borderBottom"]),borderBlock:w.borders("borderBlock"),borderTopWidth:w.borderWidths("borderTopWidth"),borderBlockStartWidth:w.borderWidths("borderBlockStartWidth"),borderTopColor:w.colors("borderTopColor"),borderBlockStartColor:w.colors("borderBlockStartColor"),borderTopStyle:w.borderStyles("borderTopStyle"),borderBlockStartStyle:w.borderStyles("borderBlockStartStyle"),borderBottomWidth:w.borderWidths("borderBottomWidth"),borderBlockEndWidth:w.borderWidths("borderBlockEndWidth"),borderBottomColor:w.colors("borderBottomColor"),borderBlockEndColor:w.colors("borderBlockEndColor"),borderBottomStyle:w.borderStyles("borderBottomStyle"),borderBlockEndStyle:w.borderStyles("borderBlockEndStyle"),borderLeftWidth:w.borderWidths("borderLeftWidth"),borderInlineStartWidth:w.borderWidths("borderInlineStartWidth"),borderLeftColor:w.colors("borderLeftColor"),borderInlineStartColor:w.colors("borderInlineStartColor"),borderLeftStyle:w.borderStyles("borderLeftStyle"),borderInlineStartStyle:w.borderStyles("borderInlineStartStyle"),borderRightWidth:w.borderWidths("borderRightWidth"),borderInlineEndWidth:w.borderWidths("borderInlineEndWidth"),borderRightColor:w.colors("borderRightColor"),borderInlineEndColor:w.colors("borderInlineEndColor"),borderRightStyle:w.borderStyles("borderRightStyle"),borderInlineEndStyle:w.borderStyles("borderInlineEndStyle"),borderTopRadius:w.radii(["borderTopLeftRadius","borderTopRightRadius"]),borderBottomRadius:w.radii(["borderBottomLeftRadius","borderBottomRightRadius"]),borderLeftRadius:w.radii(["borderTopLeftRadius","borderBottomLeftRadius"]),borderRightRadius:w.radii(["borderTopRightRadius","borderBottomRightRadius"])};Object.assign(ee,{rounded:ee.borderRadius,roundedTop:ee.borderTopRadius,roundedTopLeft:ee.borderTopLeftRadius,roundedTopRight:ee.borderTopRightRadius,roundedTopStart:ee.borderStartStartRadius,roundedTopEnd:ee.borderStartEndRadius,roundedBottom:ee.borderBottomRadius,roundedBottomLeft:ee.borderBottomLeftRadius,roundedBottomRight:ee.borderBottomRightRadius,roundedBottomStart:ee.borderEndStartRadius,roundedBottomEnd:ee.borderEndEndRadius,roundedLeft:ee.borderLeftRadius,roundedRight:ee.borderRightRadius,roundedStart:ee.borderInlineStartRadius,roundedEnd:ee.borderInlineEndRadius,borderStart:ee.borderInlineStart,borderEnd:ee.borderInlineEnd,borderTopStartRadius:ee.borderStartStartRadius,borderTopEndRadius:ee.borderStartEndRadius,borderBottomStartRadius:ee.borderEndStartRadius,borderBottomEndRadius:ee.borderEndEndRadius,borderStartRadius:ee.borderInlineStartRadius,borderEndRadius:ee.borderInlineEndRadius,borderStartWidth:ee.borderInlineStartWidth,borderEndWidth:ee.borderInlineEndWidth,borderStartColor:ee.borderInlineStartColor,borderEndColor:ee.borderInlineEndColor,borderStartStyle:ee.borderInlineStartStyle,borderEndStyle:ee.borderInlineEndStyle});var X4={color:w.colors("color"),textColor:w.colors("color"),fill:w.colors("fill"),stroke:w.colors("stroke")},Pf={boxShadow:w.shadows("boxShadow"),mixBlendMode:!0,blendMode:w.prop("mixBlendMode"),backgroundBlendMode:!0,bgBlendMode:w.prop("backgroundBlendMode"),opacity:!0};Object.assign(Pf,{shadow:Pf.boxShadow});var Y4={filter:{transform:Z.filter},blur:w.blur("--chakra-blur"),brightness:w.propT("--chakra-brightness",Z.brightness),contrast:w.propT("--chakra-contrast",Z.contrast),hueRotate:w.degreeT("--chakra-hue-rotate"),invert:w.propT("--chakra-invert",Z.invert),saturate:w.propT("--chakra-saturate",Z.saturate),dropShadow:w.propT("--chakra-drop-shadow",Z.dropShadow),backdropFilter:{transform:Z.backdropFilter},backdropBlur:w.blur("--chakra-backdrop-blur"),backdropBrightness:w.propT("--chakra-backdrop-brightness",Z.brightness),backdropContrast:w.propT("--chakra-backdrop-contrast",Z.contrast),backdropHueRotate:w.degreeT("--chakra-backdrop-hue-rotate"),backdropInvert:w.propT("--chakra-backdrop-invert",Z.invert),backdropSaturate:w.propT("--chakra-backdrop-saturate",Z.saturate)},Ql={alignItems:!0,alignContent:!0,justifyItems:!0,justifyContent:!0,flexWrap:!0,flexDirection:{transform:Z.flexDirection},flex:!0,flexFlow:!0,flexGrow:!0,flexShrink:!0,flexBasis:w.sizes("flexBasis"),justifySelf:!0,alignSelf:!0,order:!0,placeItems:!0,placeContent:!0,placeSelf:!0,gap:w.space("gap"),rowGap:w.space("rowGap"),columnGap:w.space("columnGap")};Object.assign(Ql,{flexDir:Ql.flexDirection});var Nb={gridGap:w.space("gridGap"),gridColumnGap:w.space("gridColumnGap"),gridRowGap:w.space("gridRowGap"),gridColumn:!0,gridRow:!0,gridAutoFlow:!0,gridAutoColumns:!0,gridColumnStart:!0,gridColumnEnd:!0,gridRowStart:!0,gridRowEnd:!0,gridAutoRows:!0,gridTemplate:!0,gridTemplateColumns:!0,gridTemplateRows:!0,gridTemplateAreas:!0,gridArea:!0},Q4={appearance:!0,cursor:!0,resize:!0,userSelect:!0,pointerEvents:!0,outline:{transform:Z.outline},outlineOffset:!0,outlineColor:w.colors("outlineColor")},It={width:w.sizesT("width"),inlineSize:w.sizesT("inlineSize"),height:w.sizes("height"),blockSize:w.sizes("blockSize"),boxSize:w.sizes(["width","height"]),minWidth:w.sizes("minWidth"),minInlineSize:w.sizes("minInlineSize"),minHeight:w.sizes("minHeight"),minBlockSize:w.sizes("minBlockSize"),maxWidth:w.sizes("maxWidth"),maxInlineSize:w.sizes("maxInlineSize"),maxHeight:w.sizes("maxHeight"),maxBlockSize:w.sizes("maxBlockSize"),overflow:!0,overflowX:!0,overflowY:!0,overscrollBehavior:!0,overscrollBehaviorX:!0,overscrollBehaviorY:!0,display:!0,aspectRatio:!0,hideFrom:{scale:"breakpoints",transform:(e,t)=>{var r,n,o;return{[`@media screen and (min-width: ${(o=(n=(r=t.__breakpoints)==null?void 0:r.get(e))==null?void 0:n.minW)!=null?o:e})`]:{display:"none"}}}},hideBelow:{scale:"breakpoints",transform:(e,t)=>{var r,n,o;return{[`@media screen and (max-width: ${(o=(n=(r=t.__breakpoints)==null?void 0:r.get(e))==null?void 0:n._minW)!=null?o:e})`]:{display:"none"}}}},verticalAlign:!0,boxSizing:!0,boxDecorationBreak:!0,float:w.propT("float",Z.float),objectFit:!0,objectPosition:!0,visibility:!0,isolation:!0};Object.assign(It,{w:It.width,h:It.height,minW:It.minWidth,maxW:It.maxWidth,minH:It.minHeight,maxH:It.maxHeight,overscroll:It.overscrollBehavior,overscrollX:It.overscrollBehaviorX,overscrollY:It.overscrollBehaviorY});var Z4={listStyleType:!0,listStylePosition:!0,listStylePos:w.prop("listStylePosition"),listStyleImage:!0,listStyleImg:w.prop("listStyleImage")};function J4(e,t,r,n){const o=typeof t=="string"?t.split("."):[t];for(n=0;n{const t=new WeakMap;return(n,o,i,s)=>{if(typeof n>"u")return e(n,o,i);t.has(n)||t.set(n,new Map);const a=t.get(n);if(a.has(o))return a.get(o);const l=e(n,o,i,s);return a.set(o,l),l}},t_=e_(J4),r_={border:"0px",clip:"rect(0, 0, 0, 0)",width:"1px",height:"1px",margin:"-1px",padding:"0px",overflow:"hidden",whiteSpace:"nowrap",position:"absolute"},n_={position:"static",width:"auto",height:"auto",clip:"auto",padding:"0",margin:"0",overflow:"visible",whiteSpace:"normal"},Kc=(e,t,r)=>{const n={},o=t_(e,t,{});for(const i in o)i in r&&r[i]!=null||(n[i]=o[i]);return n},o_={srOnly:{transform(e){return e===!0?r_:e==="focusable"?n_:{}}},layerStyle:{processResult:!0,transform:(e,t,r)=>Kc(t,`layerStyles.${e}`,r)},textStyle:{processResult:!0,transform:(e,t,r)=>Kc(t,`textStyles.${e}`,r)},apply:{processResult:!0,transform:(e,t,r)=>Kc(t,e,r)}},rs={position:!0,pos:w.prop("position"),zIndex:w.prop("zIndex","zIndices"),inset:w.spaceT("inset"),insetX:w.spaceT(["left","right"]),insetInline:w.spaceT("insetInline"),insetY:w.spaceT(["top","bottom"]),insetBlock:w.spaceT("insetBlock"),top:w.spaceT("top"),insetBlockStart:w.spaceT("insetBlockStart"),bottom:w.spaceT("bottom"),insetBlockEnd:w.spaceT("insetBlockEnd"),left:w.spaceT("left"),insetInlineStart:w.logical({scale:"space",property:{ltr:"left",rtl:"right"}}),right:w.spaceT("right"),insetInlineEnd:w.logical({scale:"space",property:{ltr:"right",rtl:"left"}})};Object.assign(rs,{insetStart:rs.insetInlineStart,insetEnd:rs.insetInlineEnd});var i_={ring:{transform:Z.ring},ringColor:w.colors("--chakra-ring-color"),ringOffset:w.prop("--chakra-ring-offset-width"),ringOffsetColor:w.colors("--chakra-ring-offset-color"),ringInset:w.prop("--chakra-ring-inset")},be={margin:w.spaceT("margin"),marginTop:w.spaceT("marginTop"),marginBlockStart:w.spaceT("marginBlockStart"),marginRight:w.spaceT("marginRight"),marginInlineEnd:w.spaceT("marginInlineEnd"),marginBottom:w.spaceT("marginBottom"),marginBlockEnd:w.spaceT("marginBlockEnd"),marginLeft:w.spaceT("marginLeft"),marginInlineStart:w.spaceT("marginInlineStart"),marginX:w.spaceT(["marginInlineStart","marginInlineEnd"]),marginInline:w.spaceT("marginInline"),marginY:w.spaceT(["marginTop","marginBottom"]),marginBlock:w.spaceT("marginBlock"),padding:w.space("padding"),paddingTop:w.space("paddingTop"),paddingBlockStart:w.space("paddingBlockStart"),paddingRight:w.space("paddingRight"),paddingBottom:w.space("paddingBottom"),paddingBlockEnd:w.space("paddingBlockEnd"),paddingLeft:w.space("paddingLeft"),paddingInlineStart:w.space("paddingInlineStart"),paddingInlineEnd:w.space("paddingInlineEnd"),paddingX:w.space(["paddingInlineStart","paddingInlineEnd"]),paddingInline:w.space("paddingInline"),paddingY:w.space(["paddingTop","paddingBottom"]),paddingBlock:w.space("paddingBlock")};Object.assign(be,{m:be.margin,mt:be.marginTop,mr:be.marginRight,me:be.marginInlineEnd,marginEnd:be.marginInlineEnd,mb:be.marginBottom,ml:be.marginLeft,ms:be.marginInlineStart,marginStart:be.marginInlineStart,mx:be.marginX,my:be.marginY,p:be.padding,pt:be.paddingTop,py:be.paddingY,px:be.paddingX,pb:be.paddingBottom,pl:be.paddingLeft,ps:be.paddingInlineStart,paddingStart:be.paddingInlineStart,pr:be.paddingRight,pe:be.paddingInlineEnd,paddingEnd:be.paddingInlineEnd});var s_={textDecorationColor:w.colors("textDecorationColor"),textDecoration:!0,textDecor:{property:"textDecoration"},textDecorationLine:!0,textDecorationStyle:!0,textDecorationThickness:!0,textUnderlineOffset:!0,textShadow:w.shadows("textShadow")},a_={clipPath:!0,transform:w.propT("transform",Z.transform),transformOrigin:!0,translateX:w.spaceT("--chakra-translate-x"),translateY:w.spaceT("--chakra-translate-y"),skewX:w.degreeT("--chakra-skew-x"),skewY:w.degreeT("--chakra-skew-y"),scaleX:w.prop("--chakra-scale-x"),scaleY:w.prop("--chakra-scale-y"),scale:w.prop(["--chakra-scale-x","--chakra-scale-y"]),rotate:w.degreeT("--chakra-rotate")},l_={transition:!0,transitionDelay:!0,animation:!0,willChange:!0,transitionDuration:w.prop("transitionDuration","transition.duration"),transitionProperty:w.prop("transitionProperty","transition.property"),transitionTimingFunction:w.prop("transitionTimingFunction","transition.easing")},u_={fontFamily:w.prop("fontFamily","fonts"),fontSize:w.prop("fontSize","fontSizes",Z.px),fontWeight:w.prop("fontWeight","fontWeights"),lineHeight:w.prop("lineHeight","lineHeights"),letterSpacing:w.prop("letterSpacing","letterSpacings"),textAlign:!0,fontStyle:!0,textIndent:!0,wordBreak:!0,overflowWrap:!0,textOverflow:!0,textTransform:!0,whiteSpace:!0,isTruncated:{transform(e){if(e===!0)return{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}}},noOfLines:{static:{overflow:"hidden",textOverflow:"ellipsis",display:"-webkit-box",WebkitBoxOrient:"vertical",WebkitLineClamp:"var(--chakra-line-clamp)"},property:"--chakra-line-clamp"}},c_={scrollBehavior:!0,scrollSnapAlign:!0,scrollSnapStop:!0,scrollSnapType:!0,scrollMargin:w.spaceT("scrollMargin"),scrollMarginTop:w.spaceT("scrollMarginTop"),scrollMarginBottom:w.spaceT("scrollMarginBottom"),scrollMarginLeft:w.spaceT("scrollMarginLeft"),scrollMarginRight:w.spaceT("scrollMarginRight"),scrollMarginX:w.spaceT(["scrollMarginLeft","scrollMarginRight"]),scrollMarginY:w.spaceT(["scrollMarginTop","scrollMarginBottom"]),scrollPadding:w.spaceT("scrollPadding"),scrollPaddingTop:w.spaceT("scrollPaddingTop"),scrollPaddingBottom:w.spaceT("scrollPaddingBottom"),scrollPaddingLeft:w.spaceT("scrollPaddingLeft"),scrollPaddingRight:w.spaceT("scrollPaddingRight"),scrollPaddingX:w.spaceT(["scrollPaddingLeft","scrollPaddingRight"]),scrollPaddingY:w.spaceT(["scrollPaddingTop","scrollPaddingBottom"])};function Vb(e){return vt(e)&&e.reference?e.reference:String(e)}var Uu=(e,...t)=>t.map(Vb).join(` ${e} `).replace(/calc/g,""),B0=(...e)=>`calc(${Uu("+",...e)})`,I0=(...e)=>`calc(${Uu("-",...e)})`,Ef=(...e)=>`calc(${Uu("*",...e)})`,N0=(...e)=>`calc(${Uu("/",...e)})`,V0=e=>{const t=Vb(e);return t!=null&&!Number.isNaN(parseFloat(t))?String(t).startsWith("-")?String(t).slice(1):`-${t}`:Ef(t,-1)},Nn=Object.assign(e=>({add:(...t)=>Nn(B0(e,...t)),subtract:(...t)=>Nn(I0(e,...t)),multiply:(...t)=>Nn(Ef(e,...t)),divide:(...t)=>Nn(N0(e,...t)),negate:()=>Nn(V0(e)),toString:()=>e.toString()}),{add:B0,subtract:I0,multiply:Ef,divide:N0,negate:V0});function d_(e,t="-"){return e.replace(/\s+/g,t)}function f_(e){const t=d_(e.toString());return p_(h_(t))}function h_(e){return e.includes("\\.")?e:!Number.isInteger(parseFloat(e.toString()))?e.replace(".","\\."):e}function p_(e){return e.replace(/[!-,/:-@[-^`{-~]/g,"\\$&")}function m_(e,t=""){return[t,e].filter(Boolean).join("-")}function g_(e,t){return`var(${e}${t?`, ${t}`:""})`}function y_(e,t=""){return f_(`--${m_(e,t)}`)}function D(e,t,r){const n=y_(e,r);return{variable:n,reference:g_(n,t)}}function v_(e,t){const r={};for(const n of t){if(Array.isArray(n)){const[o,i]=n;r[o]=D(`${e}-${o}`,i);continue}r[n]=D(`${e}-${n}`)}return r}function b_(e){const t=e==null?0:e.length;return t?e[t-1]:void 0}function S_(e){const t=parseFloat(e.toString()),r=e.toString().replace(String(t),"");return{unitless:!r,value:t,unit:r}}function $f(e){if(e==null)return e;const{unitless:t}=S_(e);return t||typeof e=="number"?`${e}px`:e}var Ub=(e,t)=>parseInt(e[1],10)>parseInt(t[1],10)?1:-1,fp=e=>Object.fromEntries(Object.entries(e).sort(Ub));function U0(e){const t=fp(e);return Object.assign(Object.values(t),t)}function x_(e){const t=Object.keys(fp(e));return new Set(t)}function H0(e){var t;if(!e)return e;e=(t=$f(e))!=null?t:e;const r=-.02;return typeof e=="number"?`${e+r}`:e.replace(/(\d+\.?\d*)/u,n=>`${parseFloat(n)+r}`)}function Ii(e,t){const r=["@media screen"];return e&&r.push("and",`(min-width: ${$f(e)})`),t&&r.push("and",`(max-width: ${$f(t)})`),r.join(" ")}function w_(e){var t;if(!e)return null;e.base=(t=e.base)!=null?t:"0px";const r=U0(e),n=Object.entries(e).sort(Ub).map(([s,a],l,u)=>{var c;let[,d]=(c=u[l+1])!=null?c:[];return d=parseFloat(d)>0?H0(d):void 0,{_minW:H0(a),breakpoint:s,minW:a,maxW:d,maxWQuery:Ii(null,d),minWQuery:Ii(a),minMaxQuery:Ii(a,d)}}),o=x_(e),i=Array.from(o.values());return{keys:o,normalized:r,isResponsive(s){const a=Object.keys(s);return a.length>0&&a.every(l=>o.has(l))},asObject:fp(e),asArray:U0(e),details:n,get(s){return n.find(a=>a.breakpoint===s)},media:[null,...r.map(s=>Ii(s)).slice(1)],toArrayValue(s){if(!vt(s))throw new Error("toArrayValue: value must be an object");const a=i.map(l=>{var u;return(u=s[l])!=null?u:null});for(;b_(a)===null;)a.pop();return a},toObjectValue(s){if(!Array.isArray(s))throw new Error("toObjectValue: value must be an array");return s.reduce((a,l,u)=>{const c=i[u];return c!=null&&l!=null&&(a[c]=l),a},{})}}}var qe={hover:(e,t)=>`${e}:hover ${t}, ${e}[data-hover] ${t}`,focus:(e,t)=>`${e}:focus ${t}, ${e}[data-focus] ${t}`,focusVisible:(e,t)=>`${e}:focus-visible ${t}`,focusWithin:(e,t)=>`${e}:focus-within ${t}`,active:(e,t)=>`${e}:active ${t}, ${e}[data-active] ${t}`,disabled:(e,t)=>`${e}:disabled ${t}, ${e}[data-disabled] ${t}`,invalid:(e,t)=>`${e}:invalid ${t}, ${e}[data-invalid] ${t}`,checked:(e,t)=>`${e}:checked ${t}, ${e}[data-checked] ${t}`,indeterminate:(e,t)=>`${e}:indeterminate ${t}, ${e}[aria-checked=mixed] ${t}, ${e}[data-indeterminate] ${t}`,readOnly:(e,t)=>`${e}:read-only ${t}, ${e}[readonly] ${t}, ${e}[data-read-only] ${t}`,expanded:(e,t)=>`${e}:read-only ${t}, ${e}[aria-expanded=true] ${t}, ${e}[data-expanded] ${t}`,placeholderShown:(e,t)=>`${e}:placeholder-shown ${t}`},Qr=e=>Hb(t=>e(t,"&"),"[role=group]","[data-group]",".group"),_r=e=>Hb(t=>e(t,"~ &"),"[data-peer]",".peer"),Hb=(e,...t)=>t.map(e).join(", "),Hu={_hover:"&:hover, &[data-hover]",_active:"&:active, &[data-active]",_focus:"&:focus, &[data-focus]",_highlighted:"&[data-highlighted]",_focusWithin:"&:focus-within",_focusVisible:"&:focus-visible, &[data-focus-visible]",_disabled:"&:disabled, &[disabled], &[aria-disabled=true], &[data-disabled]",_readOnly:"&[aria-readonly=true], &[readonly], &[data-readonly]",_before:"&::before",_after:"&::after",_empty:"&:empty",_expanded:"&[aria-expanded=true], &[data-expanded]",_checked:"&[aria-checked=true], &[data-checked]",_grabbed:"&[aria-grabbed=true], &[data-grabbed]",_pressed:"&[aria-pressed=true], &[data-pressed]",_invalid:"&[aria-invalid=true], &[data-invalid]",_valid:"&[data-valid], &[data-state=valid]",_loading:"&[data-loading], &[aria-busy=true]",_selected:"&[aria-selected=true], &[data-selected]",_hidden:"&[hidden], &[data-hidden]",_autofill:"&:-webkit-autofill",_even:"&:nth-of-type(even)",_odd:"&:nth-of-type(odd)",_first:"&:first-of-type",_firstLetter:"&::first-letter",_last:"&:last-of-type",_notFirst:"&:not(:first-of-type)",_notLast:"&:not(:last-of-type)",_visited:"&:visited",_activeLink:"&[aria-current=page]",_activeStep:"&[aria-current=step]",_indeterminate:"&:indeterminate, &[aria-checked=mixed], &[data-indeterminate]",_groupHover:Qr(qe.hover),_peerHover:_r(qe.hover),_groupFocus:Qr(qe.focus),_peerFocus:_r(qe.focus),_groupFocusVisible:Qr(qe.focusVisible),_peerFocusVisible:_r(qe.focusVisible),_groupActive:Qr(qe.active),_peerActive:_r(qe.active),_groupDisabled:Qr(qe.disabled),_peerDisabled:_r(qe.disabled),_groupInvalid:Qr(qe.invalid),_peerInvalid:_r(qe.invalid),_groupChecked:Qr(qe.checked),_peerChecked:_r(qe.checked),_groupFocusWithin:Qr(qe.focusWithin),_peerFocusWithin:_r(qe.focusWithin),_peerPlaceholderShown:_r(qe.placeholderShown),_placeholder:"&::placeholder",_placeholderShown:"&:placeholder-shown",_fullScreen:"&:fullscreen",_selection:"&::selection",_rtl:"[dir=rtl] &, &[dir=rtl]",_ltr:"[dir=ltr] &, &[dir=ltr]",_mediaDark:"@media (prefers-color-scheme: dark)",_mediaReduceMotion:"@media (prefers-reduced-motion: reduce)",_dark:".chakra-ui-dark &:not([data-theme]),[data-theme=dark] &:not([data-theme]),&[data-theme=dark]",_light:".chakra-ui-light &:not([data-theme]),[data-theme=light] &:not([data-theme]),&[data-theme=light]",_horizontal:"&[data-orientation=horizontal]",_vertical:"&[data-orientation=vertical]"},Wb=Object.keys(Hu);function W0(e,t){return D(String(e).replace(/\./g,"-"),void 0,t)}function k_(e,t){let r={};const n={};for(const[o,i]of Object.entries(e)){const{isSemantic:s,value:a}=i,{variable:l,reference:u}=W0(o,t==null?void 0:t.cssVarPrefix);if(!s){if(o.startsWith("space")){const f=o.split("."),[p,...m]=f,v=`${p}.-${m.join(".")}`,C=Nn.negate(a),g=Nn.negate(u);n[v]={value:C,var:l,varRef:g}}r[l]=a,n[o]={value:a,var:l,varRef:u};continue}const c=f=>{const m=[String(o).split(".")[0],f].join(".");if(!e[m])return f;const{reference:C}=W0(m,t==null?void 0:t.cssVarPrefix);return C},d=vt(a)?a:{default:a};r=Ht(r,Object.entries(d).reduce((f,[p,m])=>{var v,C;if(!m)return f;const g=c(`${m}`);if(p==="default")return f[l]=g,f;const h=(C=(v=Hu)==null?void 0:v[p])!=null?C:p;return f[h]={[l]:g},f},{})),n[o]={value:u,var:l,varRef:u}}return{cssVars:r,cssMap:n}}function C_(e,t=[]){const r=Object.assign({},e);for(const n of t)n in r&&delete r[n];return r}function __(e,t){const r={};for(const n of t)n in e&&(r[n]=e[n]);return r}function T_(e){return typeof e=="object"&&e!=null&&!Array.isArray(e)}function G0(e,t,r={}){const{stop:n,getKey:o}=r;function i(s,a=[]){var l;if(T_(s)||Array.isArray(s)){const u={};for(const[c,d]of Object.entries(s)){const f=(l=o==null?void 0:o(c))!=null?l:c,p=[...a,f];if(n!=null&&n(s,p))return t(s,a);u[f]=i(d,p)}return u}return t(s,a)}return i(e)}var P_=["colors","borders","borderWidths","borderStyles","fonts","fontSizes","fontWeights","gradients","letterSpacings","lineHeights","radii","space","shadows","sizes","zIndices","transition","blur","breakpoints"];function E_(e){return __(e,P_)}function $_(e){return e.semanticTokens}function A_(e){const{__cssMap:t,__cssVars:r,__breakpoints:n,...o}=e;return o}var R_=e=>Wb.includes(e)||e==="default";function z_({tokens:e,semanticTokens:t}){const r={};return G0(e,(n,o)=>{n!=null&&(r[o.join(".")]={isSemantic:!1,value:n})}),G0(t,(n,o)=>{n!=null&&(r[o.join(".")]={isSemantic:!0,value:n})},{stop:n=>Object.keys(n).every(R_)}),r}function M_(e){var t;const r=A_(e),n=E_(r),o=$_(r),i=z_({tokens:n,semanticTokens:o}),s=(t=r.config)==null?void 0:t.cssVarPrefix,{cssMap:a,cssVars:l}=k_(i,{cssVarPrefix:s});return Object.assign(r,{__cssVars:{...{"--chakra-ring-inset":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-ring-offset-width":"0px","--chakra-ring-offset-color":"#fff","--chakra-ring-color":"rgba(66, 153, 225, 0.6)","--chakra-ring-offset-shadow":"0 0 #0000","--chakra-ring-shadow":"0 0 #0000","--chakra-space-x-reverse":"0","--chakra-space-y-reverse":"0"},...l},__cssMap:a,__breakpoints:w_(r.breakpoints)}),r}var hp=Ht({},sl,ee,X4,Ql,It,Y4,i_,Q4,Nb,o_,rs,Pf,be,c_,u_,s_,a_,Z4,l_);Object.assign({},be,It,Ql,Nb,rs);var L_=[...Object.keys(hp),...Wb],F_={...hp,...Hu},O_=e=>e in F_,j_=e=>t=>{if(!t.__breakpoints)return e;const{isResponsive:r,toArrayValue:n,media:o}=t.__breakpoints,i={};for(const s in e){let a=dn(e[s],t);if(a==null)continue;if(a=vt(a)&&r(a)?n(a):a,!Array.isArray(a)){i[s]=a;continue}const l=a.slice(0,o.length).length;for(let u=0;ue.startsWith("--")&&typeof t=="string"&&!B_(t),N_=(e,t)=>{var r,n;if(t==null)return t;const o=l=>{var u,c;return(c=(u=e.__cssMap)==null?void 0:u[l])==null?void 0:c.varRef},i=l=>{var u;return(u=o(l))!=null?u:l},[s,a]=D_(t);return t=(n=(r=o(s))!=null?r:i(a))!=null?n:i(t),t};function V_(e){const{configs:t={},pseudos:r={},theme:n}=e,o=(i,s=!1)=>{var a,l,u;const c=dn(i,n),d=j_(c)(n);let f={};for(let p in d){const m=d[p];let v=dn(m,n);p in r&&(p=r[p]),I_(p,v)&&(v=N_(n,v));let C=t[p];if(C===!0&&(C={property:p}),vt(v)){f[p]=(a=f[p])!=null?a:{},f[p]=Ht({},f[p],o(v,!0));continue}let g=(u=(l=C==null?void 0:C.transform)==null?void 0:l.call(C,v,n,c))!=null?u:v;g=C!=null&&C.processResult?o(g,!0):g;const h=dn(C==null?void 0:C.property,n);if(!s&&(C!=null&&C.static)){const y=dn(C.static,n);f=Ht({},f,y)}if(h&&Array.isArray(h)){for(const y of h)f[y]=g;continue}if(h){h==="&"&&vt(g)?f=Ht({},f,g):f[h]=g;continue}if(vt(g)){f=Ht({},f,g);continue}f[p]=g}return f};return o}var Gb=e=>t=>V_({theme:t,pseudos:Hu,configs:hp})(e);function ge(e){return{definePartsStyle(t){return t},defineMultiStyleConfig(t){return{parts:e,...t}}}}function U_(e,t){if(Array.isArray(e))return e;if(vt(e))return t(e);if(e!=null)return[e]}function H_(e,t){for(let r=t+1;r{Ht(u,{[y]:f?h[y]:{[g]:h[y]}})});continue}if(!p){f?Ht(u,h):u[g]=h;continue}u[g]=h}}return u}}function G_(e){return t=>{var r;const{variant:n,size:o,theme:i}=t,s=W_(i);return Ht({},dn((r=e.baseStyle)!=null?r:{},t),s(e,"sizes",o,t),s(e,"variants",n,t))}}function Xt(e){return C_(e,["styleConfig","size","variant","colorScheme"])}var K_=["borders","breakpoints","colors","components","config","direction","fonts","fontSizes","fontWeights","letterSpacings","lineHeights","radii","shadows","sizes","space","styles","transition","zIndices"];function q_(e){return vt(e)?K_.every(t=>Object.prototype.hasOwnProperty.call(e,t)):!1}var X_={common:"background-color, border-color, color, fill, stroke, opacity, box-shadow, transform",colors:"background-color, border-color, color, fill, stroke",dimensions:"width, height",position:"left, right, top, bottom",background:"background-color, background-image, background-position"},Y_={"ease-in":"cubic-bezier(0.4, 0, 1, 1)","ease-out":"cubic-bezier(0, 0, 0.2, 1)","ease-in-out":"cubic-bezier(0.4, 0, 0.2, 1)"},Q_={"ultra-fast":"50ms",faster:"100ms",fast:"150ms",normal:"200ms",slow:"300ms",slower:"400ms","ultra-slow":"500ms"},Z_={property:X_,easing:Y_,duration:Q_},J_=Z_,e3={hide:-1,auto:"auto",base:0,docked:10,dropdown:1e3,sticky:1100,banner:1200,overlay:1300,modal:1400,popover:1500,skipLink:1600,toast:1700,tooltip:1800},t3=e3,r3={none:0,"1px":"1px solid","2px":"2px solid","4px":"4px solid","8px":"8px solid"},n3=r3,o3={base:"0em",sm:"30em",md:"48em",lg:"62em",xl:"80em","2xl":"96em"},i3=o3,s3={transparent:"transparent",current:"currentColor",black:"#000000",white:"#FFFFFF",whiteAlpha:{50:"rgba(255, 255, 255, 0.04)",100:"rgba(255, 255, 255, 0.06)",200:"rgba(255, 255, 255, 0.08)",300:"rgba(255, 255, 255, 0.16)",400:"rgba(255, 255, 255, 0.24)",500:"rgba(255, 255, 255, 0.36)",600:"rgba(255, 255, 255, 0.48)",700:"rgba(255, 255, 255, 0.64)",800:"rgba(255, 255, 255, 0.80)",900:"rgba(255, 255, 255, 0.92)"},blackAlpha:{50:"rgba(0, 0, 0, 0.04)",100:"rgba(0, 0, 0, 0.06)",200:"rgba(0, 0, 0, 0.08)",300:"rgba(0, 0, 0, 0.16)",400:"rgba(0, 0, 0, 0.24)",500:"rgba(0, 0, 0, 0.36)",600:"rgba(0, 0, 0, 0.48)",700:"rgba(0, 0, 0, 0.64)",800:"rgba(0, 0, 0, 0.80)",900:"rgba(0, 0, 0, 0.92)"},gray:{50:"#F7FAFC",100:"#EDF2F7",200:"#E2E8F0",300:"#CBD5E0",400:"#A0AEC0",500:"#718096",600:"#4A5568",700:"#2D3748",800:"#1A202C",900:"#171923"},red:{50:"#FFF5F5",100:"#FED7D7",200:"#FEB2B2",300:"#FC8181",400:"#F56565",500:"#E53E3E",600:"#C53030",700:"#9B2C2C",800:"#822727",900:"#63171B"},orange:{50:"#FFFAF0",100:"#FEEBC8",200:"#FBD38D",300:"#F6AD55",400:"#ED8936",500:"#DD6B20",600:"#C05621",700:"#9C4221",800:"#7B341E",900:"#652B19"},yellow:{50:"#FFFFF0",100:"#FEFCBF",200:"#FAF089",300:"#F6E05E",400:"#ECC94B",500:"#D69E2E",600:"#B7791F",700:"#975A16",800:"#744210",900:"#5F370E"},green:{50:"#F0FFF4",100:"#C6F6D5",200:"#9AE6B4",300:"#68D391",400:"#48BB78",500:"#38A169",600:"#2F855A",700:"#276749",800:"#22543D",900:"#1C4532"},teal:{50:"#E6FFFA",100:"#B2F5EA",200:"#81E6D9",300:"#4FD1C5",400:"#38B2AC",500:"#319795",600:"#2C7A7B",700:"#285E61",800:"#234E52",900:"#1D4044"},blue:{50:"#ebf8ff",100:"#bee3f8",200:"#90cdf4",300:"#63b3ed",400:"#4299e1",500:"#3182ce",600:"#2b6cb0",700:"#2c5282",800:"#2a4365",900:"#1A365D"},cyan:{50:"#EDFDFD",100:"#C4F1F9",200:"#9DECF9",300:"#76E4F7",400:"#0BC5EA",500:"#00B5D8",600:"#00A3C4",700:"#0987A0",800:"#086F83",900:"#065666"},purple:{50:"#FAF5FF",100:"#E9D8FD",200:"#D6BCFA",300:"#B794F4",400:"#9F7AEA",500:"#805AD5",600:"#6B46C1",700:"#553C9A",800:"#44337A",900:"#322659"},pink:{50:"#FFF5F7",100:"#FED7E2",200:"#FBB6CE",300:"#F687B3",400:"#ED64A6",500:"#D53F8C",600:"#B83280",700:"#97266D",800:"#702459",900:"#521B41"},linkedin:{50:"#E8F4F9",100:"#CFEDFB",200:"#9BDAF3",300:"#68C7EC",400:"#34B3E4",500:"#00A0DC",600:"#008CC9",700:"#0077B5",800:"#005E93",900:"#004471"},facebook:{50:"#E8F4F9",100:"#D9DEE9",200:"#B7C2DA",300:"#6482C0",400:"#4267B2",500:"#385898",600:"#314E89",700:"#29487D",800:"#223B67",900:"#1E355B"},messenger:{50:"#D0E6FF",100:"#B9DAFF",200:"#A2CDFF",300:"#7AB8FF",400:"#2E90FF",500:"#0078FF",600:"#0063D1",700:"#0052AC",800:"#003C7E",900:"#002C5C"},whatsapp:{50:"#dffeec",100:"#b9f5d0",200:"#90edb3",300:"#65e495",400:"#3cdd78",500:"#22c35e",600:"#179848",700:"#0c6c33",800:"#01421c",900:"#001803"},twitter:{50:"#E5F4FD",100:"#C8E9FB",200:"#A8DCFA",300:"#83CDF7",400:"#57BBF5",500:"#1DA1F2",600:"#1A94DA",700:"#1681BF",800:"#136B9E",900:"#0D4D71"},telegram:{50:"#E3F2F9",100:"#C5E4F3",200:"#A2D4EC",300:"#7AC1E4",400:"#47A9DA",500:"#0088CC",600:"#007AB8",700:"#006BA1",800:"#005885",900:"#003F5E"}},a3=s3,l3={none:"0",sm:"0.125rem",base:"0.25rem",md:"0.375rem",lg:"0.5rem",xl:"0.75rem","2xl":"1rem","3xl":"1.5rem",full:"9999px"},u3=l3,c3={xs:"0 0 0 1px rgba(0, 0, 0, 0.05)",sm:"0 1px 2px 0 rgba(0, 0, 0, 0.05)",base:"0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06)",md:"0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06)",lg:"0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05)",xl:"0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04)","2xl":"0 25px 50px -12px rgba(0, 0, 0, 0.25)",outline:"0 0 0 3px rgba(66, 153, 225, 0.6)",inner:"inset 0 2px 4px 0 rgba(0,0,0,0.06)",none:"none","dark-lg":"rgba(0, 0, 0, 0.1) 0px 0px 0px 1px, rgba(0, 0, 0, 0.2) 0px 5px 10px, rgba(0, 0, 0, 0.4) 0px 15px 40px"},d3=c3,f3={none:0,sm:"4px",base:"8px",md:"12px",lg:"16px",xl:"24px","2xl":"40px","3xl":"64px"},h3=f3,p3={letterSpacings:{tighter:"-0.05em",tight:"-0.025em",normal:"0",wide:"0.025em",wider:"0.05em",widest:"0.1em"},lineHeights:{normal:"normal",none:1,shorter:1.25,short:1.375,base:1.5,tall:1.625,taller:"2",3:".75rem",4:"1rem",5:"1.25rem",6:"1.5rem",7:"1.75rem",8:"2rem",9:"2.25rem",10:"2.5rem"},fontWeights:{hairline:100,thin:200,light:300,normal:400,medium:500,semibold:600,bold:700,extrabold:800,black:900},fonts:{heading:'-apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"',body:'-apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"',mono:'SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace'},fontSizes:{"3xs":"0.45rem","2xs":"0.625rem",xs:"0.75rem",sm:"0.875rem",md:"1rem",lg:"1.125rem",xl:"1.25rem","2xl":"1.5rem","3xl":"1.875rem","4xl":"2.25rem","5xl":"3rem","6xl":"3.75rem","7xl":"4.5rem","8xl":"6rem","9xl":"8rem"}},Kb=p3,qb={px:"1px",.5:"0.125rem",1:"0.25rem",1.5:"0.375rem",2:"0.5rem",2.5:"0.625rem",3:"0.75rem",3.5:"0.875rem",4:"1rem",5:"1.25rem",6:"1.5rem",7:"1.75rem",8:"2rem",9:"2.25rem",10:"2.5rem",12:"3rem",14:"3.5rem",16:"4rem",20:"5rem",24:"6rem",28:"7rem",32:"8rem",36:"9rem",40:"10rem",44:"11rem",48:"12rem",52:"13rem",56:"14rem",60:"15rem",64:"16rem",72:"18rem",80:"20rem",96:"24rem"},m3={max:"max-content",min:"min-content",full:"100%","3xs":"14rem","2xs":"16rem",xs:"20rem",sm:"24rem",md:"28rem",lg:"32rem",xl:"36rem","2xl":"42rem","3xl":"48rem","4xl":"56rem","5xl":"64rem","6xl":"72rem","7xl":"80rem","8xl":"90rem",prose:"60ch"},g3={sm:"640px",md:"768px",lg:"1024px",xl:"1280px"},y3={...qb,...m3,container:g3},Xb=y3,v3={breakpoints:i3,zIndices:t3,radii:u3,blur:h3,colors:a3,...Kb,sizes:Xb,shadows:d3,space:qb,borders:n3,transition:J_},{defineMultiStyleConfig:b3,definePartsStyle:Ni}=ge(["stepper","step","title","description","indicator","separator","icon","number"]),Er=D("stepper-indicator-size"),Ro=D("stepper-icon-size"),zo=D("stepper-title-font-size"),Vi=D("stepper-description-font-size"),Ai=D("stepper-accent-color"),S3=Ni(({colorScheme:e})=>({stepper:{display:"flex",justifyContent:"space-between",gap:"4","&[data-orientation=vertical]":{flexDirection:"column",alignItems:"flex-start"},"&[data-orientation=horizontal]":{flexDirection:"row",alignItems:"center"},[Ai.variable]:`colors.${e}.500`,_dark:{[Ai.variable]:`colors.${e}.200`}},title:{fontSize:zo.reference,fontWeight:"medium"},description:{fontSize:Vi.reference,color:"chakra-subtle-text"},number:{fontSize:zo.reference},step:{flexShrink:0,position:"relative",display:"flex",gap:"2","&[data-orientation=horizontal]":{alignItems:"center"},flex:"1","&:last-of-type:not([data-stretch])":{flex:"initial"}},icon:{flexShrink:0,width:Ro.reference,height:Ro.reference},indicator:{flexShrink:0,borderRadius:"full",width:Er.reference,height:Er.reference,display:"flex",justifyContent:"center",alignItems:"center","&[data-status=active]":{borderWidth:"2px",borderColor:Ai.reference},"&[data-status=complete]":{bg:Ai.reference,color:"chakra-inverse-text"},"&[data-status=incomplete]":{borderWidth:"2px"}},separator:{bg:"chakra-border-color",flex:"1","&[data-status=complete]":{bg:Ai.reference},"&[data-orientation=horizontal]":{width:"100%",height:"2px",marginStart:"2"},"&[data-orientation=vertical]":{width:"2px",position:"absolute",height:"100%",maxHeight:`calc(100% - ${Er.reference} - 8px)`,top:`calc(${Er.reference} + 4px)`,insetStart:`calc(${Er.reference} / 2 - 1px)`}}})),x3=b3({baseStyle:S3,sizes:{xs:Ni({stepper:{[Er.variable]:"sizes.4",[Ro.variable]:"sizes.3",[zo.variable]:"fontSizes.xs",[Vi.variable]:"fontSizes.xs"}}),sm:Ni({stepper:{[Er.variable]:"sizes.6",[Ro.variable]:"sizes.4",[zo.variable]:"fontSizes.sm",[Vi.variable]:"fontSizes.xs"}}),md:Ni({stepper:{[Er.variable]:"sizes.8",[Ro.variable]:"sizes.5",[zo.variable]:"fontSizes.md",[Vi.variable]:"fontSizes.sm"}}),lg:Ni({stepper:{[Er.variable]:"sizes.10",[Ro.variable]:"sizes.6",[zo.variable]:"fontSizes.lg",[Vi.variable]:"fontSizes.md"}})},defaultProps:{size:"md",colorScheme:"blue"}});function ie(e,t={}){let r=!1;function n(){if(!r){r=!0;return}throw new Error("[anatomy] .part(...) should only be called once. Did you mean to use .extend(...) ?")}function o(...c){n();for(const d of c)t[d]=l(d);return ie(e,t)}function i(...c){for(const d of c)d in t||(t[d]=l(d));return ie(e,t)}function s(){return Object.fromEntries(Object.entries(t).map(([d,f])=>[d,f.selector]))}function a(){return Object.fromEntries(Object.entries(t).map(([d,f])=>[d,f.className]))}function l(c){const p=`chakra-${(["container","root"].includes(c??"")?[e]:[e,c]).filter(Boolean).join("__")}`;return{className:p,selector:`.${p}`,toString:()=>c}}return{parts:o,toPart:l,extend:i,selectors:s,classnames:a,get keys(){return Object.keys(t)},__type:{}}}var w3=ie("accordion").parts("root","container","button","panel").extend("icon"),k3=ie("alert").parts("title","description","container").extend("icon","spinner"),C3=ie("avatar").parts("label","badge","container").extend("excessLabel","group"),_3=ie("breadcrumb").parts("link","item","container").extend("separator");ie("button").parts();var T3=ie("checkbox").parts("control","icon","container").extend("label");ie("progress").parts("track","filledTrack").extend("label");var P3=ie("drawer").parts("overlay","dialogContainer","dialog").extend("header","closeButton","body","footer"),E3=ie("editable").parts("preview","input","textarea"),$3=ie("form").parts("container","requiredIndicator","helperText"),A3=ie("formError").parts("text","icon"),R3=ie("input").parts("addon","field","element","group"),z3=ie("list").parts("container","item","icon"),M3=ie("menu").parts("button","list","item").extend("groupTitle","icon","command","divider"),L3=ie("modal").parts("overlay","dialogContainer","dialog").extend("header","closeButton","body","footer"),F3=ie("numberinput").parts("root","field","stepperGroup","stepper");ie("pininput").parts("field");var O3=ie("popover").parts("content","header","body","footer").extend("popper","arrow","closeButton"),j3=ie("progress").parts("label","filledTrack","track"),D3=ie("radio").parts("container","control","label"),B3=ie("select").parts("field","icon"),I3=ie("slider").parts("container","track","thumb","filledTrack","mark"),N3=ie("stat").parts("container","label","helpText","number","icon"),V3=ie("switch").parts("container","track","thumb"),U3=ie("table").parts("table","thead","tbody","tr","th","td","tfoot","caption"),H3=ie("tabs").parts("root","tab","tablist","tabpanel","tabpanels","indicator"),W3=ie("tag").parts("container","label","closeButton"),G3=ie("card").parts("container","header","body","footer");function Gn(e,t,r){return Math.min(Math.max(e,r),t)}class K3 extends Error{constructor(t){super(`Failed to parse color: "${t}"`)}}var Ui=K3;function pp(e){if(typeof e!="string")throw new Ui(e);if(e.trim().toLowerCase()==="transparent")return[0,0,0,0];let t=e.trim();t=tT.test(e)?Y3(e):e;const r=Q3.exec(t);if(r){const s=Array.from(r).slice(1);return[...s.slice(0,3).map(a=>parseInt(Ls(a,2),16)),parseInt(Ls(s[3]||"f",2),16)/255]}const n=Z3.exec(t);if(n){const s=Array.from(n).slice(1);return[...s.slice(0,3).map(a=>parseInt(a,16)),parseInt(s[3]||"ff",16)/255]}const o=J3.exec(t);if(o){const s=Array.from(o).slice(1);return[...s.slice(0,3).map(a=>parseInt(a,10)),parseFloat(s[3]||"1")]}const i=eT.exec(t);if(i){const[s,a,l,u]=Array.from(i).slice(1).map(parseFloat);if(Gn(0,100,a)!==a)throw new Ui(e);if(Gn(0,100,l)!==l)throw new Ui(e);return[...rT(s,a,l),Number.isNaN(u)?1:u]}throw new Ui(e)}function q3(e){let t=5381,r=e.length;for(;r;)t=t*33^e.charCodeAt(--r);return(t>>>0)%2341}const K0=e=>parseInt(e.replace(/_/g,""),36),X3="1q29ehhb 1n09sgk7 1kl1ekf_ _yl4zsno 16z9eiv3 1p29lhp8 _bd9zg04 17u0____ _iw9zhe5 _to73___ _r45e31e _7l6g016 _jh8ouiv _zn3qba8 1jy4zshs 11u87k0u 1ro9yvyo 1aj3xael 1gz9zjz0 _3w8l4xo 1bf1ekf_ _ke3v___ _4rrkb__ 13j776yz _646mbhl _nrjr4__ _le6mbhl 1n37ehkb _m75f91n _qj3bzfz 1939yygw 11i5z6x8 _1k5f8xs 1509441m 15t5lwgf _ae2th1n _tg1ugcv 1lp1ugcv 16e14up_ _h55rw7n _ny9yavn _7a11xb_ 1ih442g9 _pv442g9 1mv16xof 14e6y7tu 1oo9zkds 17d1cisi _4v9y70f _y98m8kc 1019pq0v 12o9zda8 _348j4f4 1et50i2o _8epa8__ _ts6senj 1o350i2o 1mi9eiuo 1259yrp0 1ln80gnw _632xcoy 1cn9zldc _f29edu4 1n490c8q _9f9ziet 1b94vk74 _m49zkct 1kz6s73a 1eu9dtog _q58s1rz 1dy9sjiq __u89jo3 _aj5nkwg _ld89jo3 13h9z6wx _qa9z2ii _l119xgq _bs5arju 1hj4nwk9 1qt4nwk9 1ge6wau6 14j9zlcw 11p1edc_ _ms1zcxe _439shk6 _jt9y70f _754zsow 1la40eju _oq5p___ _x279qkz 1fa5r3rv _yd2d9ip _424tcku _8y1di2_ _zi2uabw _yy7rn9h 12yz980_ __39ljp6 1b59zg0x _n39zfzp 1fy9zest _b33k___ _hp9wq92 1il50hz4 _io472ub _lj9z3eo 19z9ykg0 _8t8iu3a 12b9bl4a 1ak5yw0o _896v4ku _tb8k8lv _s59zi6t _c09ze0p 1lg80oqn 1id9z8wb _238nba5 1kq6wgdi _154zssg _tn3zk49 _da9y6tc 1sg7cv4f _r12jvtt 1gq5fmkz 1cs9rvci _lp9jn1c _xw1tdnb 13f9zje6 16f6973h _vo7ir40 _bt5arjf _rc45e4t _hr4e100 10v4e100 _hc9zke2 _w91egv_ _sj2r1kk 13c87yx8 _vqpds__ _ni8ggk8 _tj9yqfb 1ia2j4r4 _7x9b10u 1fc9ld4j 1eq9zldr _5j9lhpx _ez9zl6o _md61fzm".split(" ").reduce((e,t)=>{const r=K0(t.substring(0,3)),n=K0(t.substring(3)).toString(16);let o="";for(let i=0;i<6-n.length;i++)o+="0";return e[r]=`${o}${n}`,e},{});function Y3(e){const t=e.toLowerCase().trim(),r=X3[q3(t)];if(!r)throw new Ui(e);return`#${r}`}const Ls=(e,t)=>Array.from(Array(t)).map(()=>e).join(""),Q3=new RegExp(`^#${Ls("([a-f0-9])",3)}([a-f0-9])?$`,"i"),Z3=new RegExp(`^#${Ls("([a-f0-9]{2})",3)}([a-f0-9]{2})?$`,"i"),J3=new RegExp(`^rgba?\\(\\s*(\\d+)\\s*${Ls(",\\s*(\\d+)\\s*",2)}(?:,\\s*([\\d.]+))?\\s*\\)$`,"i"),eT=/^hsla?\(\s*([\d.]+)\s*,\s*([\d.]+)%\s*,\s*([\d.]+)%(?:\s*,\s*([\d.]+))?\s*\)$/i,tT=/^[a-z]+$/i,q0=e=>Math.round(e*255),rT=(e,t,r)=>{let n=r/100;if(t===0)return[n,n,n].map(q0);const o=(e%360+360)%360/60,i=(1-Math.abs(2*n-1))*(t/100),s=i*(1-Math.abs(o%2-1));let a=0,l=0,u=0;o>=0&&o<1?(a=i,l=s):o>=1&&o<2?(a=s,l=i):o>=2&&o<3?(l=i,u=s):o>=3&&o<4?(l=s,u=i):o>=4&&o<5?(a=s,u=i):o>=5&&o<6&&(a=i,u=s);const c=n-i/2,d=a+c,f=l+c,p=u+c;return[d,f,p].map(q0)};function nT(e,t,r,n){return`rgba(${Gn(0,255,e).toFixed()}, ${Gn(0,255,t).toFixed()}, ${Gn(0,255,r).toFixed()}, ${parseFloat(Gn(0,1,n).toFixed(3))})`}function oT(e,t){const[r,n,o,i]=pp(e);return nT(r,n,o,i-t)}function iT(e){const[t,r,n,o]=pp(e);let i=s=>{const a=Gn(0,255,s).toString(16);return a.length===1?`0${a}`:a};return`#${i(t)}${i(r)}${i(n)}${o<1?i(Math.round(o*255)):""}`}function sT(e,t,r,n,o){for(t=t.split?t.split("."):t,n=0;nObject.keys(e).length===0,st=(e,t,r)=>{const n=sT(e,`colors.${t}`,t);try{return iT(n),n}catch{return r??"#000000"}},lT=e=>{const[t,r,n]=pp(e);return(t*299+r*587+n*114)/1e3},uT=e=>t=>{const r=st(t,e);return lT(r)<128?"dark":"light"},cT=e=>t=>uT(e)(t)==="dark",si=(e,t)=>r=>{const n=st(r,e);return oT(n,1-t)};function X0(e="1rem",t="rgba(255, 255, 255, 0.15)"){return{backgroundImage:`linear-gradient( 45deg, ${t} 25%, transparent 25%, @@ -334,12 +334,12 @@ Error generating stack: `+i.message+` ${t} 75%, transparent 75%, transparent - )`,backgroundSize:`${e} ${e}`}}var dT=()=>`#${Math.floor(Math.random()*16777215).toString(16).padEnd(6,"0")}`;function fT(e){const t=dT();return!e||aT(e)?t:e.string&&e.colors?pT(e.string,e.colors):e.string&&!e.colors?hT(e.string):e.colors&&!e.string?mT(e.colors):t}function hT(e){let t=0;if(e.length===0)return t.toString();for(let n=0;n>n*8&255;r+=`00${o.toString(16)}`.substr(-2)}return r}function pT(e,t){let r=0;if(e.length===0)return t[0];for(let n=0;nr.colorMode==="dark"?t:e}function pp(e){const{orientation:t,vertical:r,horizontal:n}=e;return t?t==="vertical"?r:n:{}}function Yb(e){return vt(e)&&e.reference?e.reference:String(e)}var Wu=(e,...t)=>t.map(Yb).join(` ${e} `).replace(/calc/g,""),Y0=(...e)=>`calc(${Wu("+",...e)})`,Q0=(...e)=>`calc(${Wu("-",...e)})`,$f=(...e)=>`calc(${Wu("*",...e)})`,Z0=(...e)=>`calc(${Wu("/",...e)})`,J0=e=>{const t=Yb(e);return t!=null&&!Number.isNaN(parseFloat(t))?String(t).startsWith("-")?String(t).slice(1):`-${t}`:$f(t,-1)},$r=Object.assign(e=>({add:(...t)=>$r(Y0(e,...t)),subtract:(...t)=>$r(Q0(e,...t)),multiply:(...t)=>$r($f(e,...t)),divide:(...t)=>$r(Z0(e,...t)),negate:()=>$r(J0(e)),toString:()=>e.toString()}),{add:Y0,subtract:Q0,multiply:$f,divide:Z0,negate:J0});function gT(e){return!Number.isInteger(parseFloat(e.toString()))}function yT(e,t="-"){return e.replace(/\s+/g,t)}function Qb(e){const t=yT(e.toString());return t.includes("\\.")?e:gT(e)?t.replace(".","\\."):e}function vT(e,t=""){return[t,Qb(e)].filter(Boolean).join("-")}function bT(e,t){return`var(${Qb(e)}${t?`, ${t}`:""})`}function ST(e,t=""){return`--${vT(e,t)}`}function Ue(e,t){const r=ST(e,t==null?void 0:t.prefix);return{variable:r,reference:bT(r,xT(t==null?void 0:t.fallback))}}function xT(e){return typeof e=="string"?e:e==null?void 0:e.reference}var{defineMultiStyleConfig:wT,definePartsStyle:al}=ge(V3.keys),ns=Ue("switch-track-width"),Yn=Ue("switch-track-height"),Kc=Ue("switch-track-diff"),kT=$r.subtract(ns,Yn),Af=Ue("switch-thumb-x"),Ri=Ue("switch-bg"),CT=e=>{const{colorScheme:t}=e;return{borderRadius:"full",p:"0.5",width:[ns.reference],height:[Yn.reference],transitionProperty:"common",transitionDuration:"fast",[Ri.variable]:"colors.gray.300",_dark:{[Ri.variable]:"colors.whiteAlpha.400"},_focusVisible:{boxShadow:"outline"},_disabled:{opacity:.4,cursor:"not-allowed"},_checked:{[Ri.variable]:`colors.${t}.500`,_dark:{[Ri.variable]:`colors.${t}.200`}},bg:Ri.reference}},_T={bg:"white",transitionProperty:"transform",transitionDuration:"normal",borderRadius:"inherit",width:[Yn.reference],height:[Yn.reference],_checked:{transform:`translateX(${Af.reference})`}},TT=al(e=>({container:{[Kc.variable]:kT,[Af.variable]:Kc.reference,_rtl:{[Af.variable]:$r(Kc).negate().toString()}},track:CT(e),thumb:_T})),PT={sm:al({container:{[ns.variable]:"1.375rem",[Yn.variable]:"sizes.3"}}),md:al({container:{[ns.variable]:"1.875rem",[Yn.variable]:"sizes.4"}}),lg:al({container:{[ns.variable]:"2.875rem",[Yn.variable]:"sizes.6"}})},ET=wT({baseStyle:TT,sizes:PT,defaultProps:{size:"md",colorScheme:"blue"}}),{defineMultiStyleConfig:$T,definePartsStyle:qo}=ge(U3.keys),AT=qo({table:{fontVariantNumeric:"lining-nums tabular-nums",borderCollapse:"collapse",width:"full"},th:{fontFamily:"heading",fontWeight:"bold",textTransform:"uppercase",letterSpacing:"wider",textAlign:"start"},td:{textAlign:"start"},caption:{mt:4,fontFamily:"heading",textAlign:"center",fontWeight:"medium"}}),Zl={"&[data-is-numeric=true]":{textAlign:"end"}},RT=qo(e=>{const{colorScheme:t}=e;return{th:{color:B("gray.600","gray.400")(e),borderBottom:"1px",borderColor:B(`${t}.100`,`${t}.700`)(e),...Zl},td:{borderBottom:"1px",borderColor:B(`${t}.100`,`${t}.700`)(e),...Zl},caption:{color:B("gray.600","gray.100")(e)},tfoot:{tr:{"&:last-of-type":{th:{borderBottomWidth:0}}}}}}),zT=qo(e=>{const{colorScheme:t}=e;return{th:{color:B("gray.600","gray.400")(e),borderBottom:"1px",borderColor:B(`${t}.100`,`${t}.700`)(e),...Zl},td:{borderBottom:"1px",borderColor:B(`${t}.100`,`${t}.700`)(e),...Zl},caption:{color:B("gray.600","gray.100")(e)},tbody:{tr:{"&:nth-of-type(odd)":{"th, td":{borderBottomWidth:"1px",borderColor:B(`${t}.100`,`${t}.700`)(e)},td:{background:B(`${t}.100`,`${t}.700`)(e)}}}},tfoot:{tr:{"&:last-of-type":{th:{borderBottomWidth:0}}}}}}),MT={simple:RT,striped:zT,unstyled:{}},LT={sm:qo({th:{px:"4",py:"1",lineHeight:"4",fontSize:"xs"},td:{px:"4",py:"2",fontSize:"sm",lineHeight:"4"},caption:{px:"4",py:"2",fontSize:"xs"}}),md:qo({th:{px:"6",py:"3",lineHeight:"4",fontSize:"xs"},td:{px:"6",py:"4",lineHeight:"5"},caption:{px:"6",py:"2",fontSize:"sm"}}),lg:qo({th:{px:"8",py:"4",lineHeight:"5",fontSize:"sm"},td:{px:"8",py:"5",lineHeight:"6"},caption:{px:"6",py:"2",fontSize:"md"}})},FT=$T({baseStyle:AT,variants:MT,sizes:LT,defaultProps:{variant:"simple",size:"md",colorScheme:"gray"}}),ht=D("tabs-color"),rr=D("tabs-bg"),Fa=D("tabs-border-color"),{defineMultiStyleConfig:OT,definePartsStyle:Sr}=ge(H3.keys),jT=e=>{const{orientation:t}=e;return{display:t==="vertical"?"flex":"block"}},DT=e=>{const{isFitted:t}=e;return{flex:t?1:void 0,transitionProperty:"common",transitionDuration:"normal",_focusVisible:{zIndex:1,boxShadow:"outline"},_disabled:{cursor:"not-allowed",opacity:.4}}},BT=e=>{const{align:t="start",orientation:r}=e;return{justifyContent:{end:"flex-end",center:"center",start:"flex-start"}[t],flexDirection:r==="vertical"?"column":"row"}},IT={p:4},NT=Sr(e=>({root:jT(e),tab:DT(e),tablist:BT(e),tabpanel:IT})),VT={sm:Sr({tab:{py:1,px:4,fontSize:"sm"}}),md:Sr({tab:{fontSize:"md",py:2,px:4}}),lg:Sr({tab:{fontSize:"lg",py:3,px:4}})},UT=Sr(e=>{const{colorScheme:t,orientation:r}=e,n=r==="vertical",o=n?"borderStart":"borderBottom",i=n?"marginStart":"marginBottom";return{tablist:{[o]:"2px solid",borderColor:"inherit"},tab:{[o]:"2px solid",borderColor:"transparent",[i]:"-2px",_selected:{[ht.variable]:`colors.${t}.600`,_dark:{[ht.variable]:`colors.${t}.300`},borderColor:"currentColor"},_active:{[rr.variable]:"colors.gray.200",_dark:{[rr.variable]:"colors.whiteAlpha.300"}},_disabled:{_active:{bg:"none"}},color:ht.reference,bg:rr.reference}}}),HT=Sr(e=>{const{colorScheme:t}=e;return{tab:{borderTopRadius:"md",border:"1px solid",borderColor:"transparent",mb:"-1px",[Fa.variable]:"transparent",_selected:{[ht.variable]:`colors.${t}.600`,[Fa.variable]:"colors.white",_dark:{[ht.variable]:`colors.${t}.300`,[Fa.variable]:"colors.gray.800"},borderColor:"inherit",borderBottomColor:Fa.reference},color:ht.reference},tablist:{mb:"-1px",borderBottom:"1px solid",borderColor:"inherit"}}}),WT=Sr(e=>{const{colorScheme:t}=e;return{tab:{border:"1px solid",borderColor:"inherit",[rr.variable]:"colors.gray.50",_dark:{[rr.variable]:"colors.whiteAlpha.50"},mb:"-1px",_notLast:{marginEnd:"-1px"},_selected:{[rr.variable]:"colors.white",[ht.variable]:`colors.${t}.600`,_dark:{[rr.variable]:"colors.gray.800",[ht.variable]:`colors.${t}.300`},borderColor:"inherit",borderTopColor:"currentColor",borderBottomColor:"transparent"},color:ht.reference,bg:rr.reference},tablist:{mb:"-1px",borderBottom:"1px solid",borderColor:"inherit"}}}),GT=Sr(e=>{const{colorScheme:t,theme:r}=e;return{tab:{borderRadius:"full",fontWeight:"semibold",color:"gray.600",_selected:{color:st(r,`${t}.700`),bg:st(r,`${t}.100`)}}}}),KT=Sr(e=>{const{colorScheme:t}=e;return{tab:{borderRadius:"full",fontWeight:"semibold",[ht.variable]:"colors.gray.600",_dark:{[ht.variable]:"inherit"},_selected:{[ht.variable]:"colors.white",[rr.variable]:`colors.${t}.600`,_dark:{[ht.variable]:"colors.gray.800",[rr.variable]:`colors.${t}.300`}},color:ht.reference,bg:rr.reference}}}),qT=Sr({}),XT={line:UT,enclosed:HT,"enclosed-colored":WT,"soft-rounded":GT,"solid-rounded":KT,unstyled:qT},YT=OT({baseStyle:NT,sizes:VT,variants:XT,defaultProps:{size:"md",variant:"line",colorScheme:"blue"}}),Me=v_("badge",["bg","color","shadow"]),QT={px:1,textTransform:"uppercase",fontSize:"xs",borderRadius:"sm",fontWeight:"bold",bg:Me.bg.reference,color:Me.color.reference,boxShadow:Me.shadow.reference},ZT=e=>{const{colorScheme:t,theme:r}=e,n=si(`${t}.500`,.6)(r);return{[Me.bg.variable]:`colors.${t}.500`,[Me.color.variable]:"colors.white",_dark:{[Me.bg.variable]:n,[Me.color.variable]:"colors.whiteAlpha.800"}}},JT=e=>{const{colorScheme:t,theme:r}=e,n=si(`${t}.200`,.16)(r);return{[Me.bg.variable]:`colors.${t}.100`,[Me.color.variable]:`colors.${t}.800`,_dark:{[Me.bg.variable]:n,[Me.color.variable]:`colors.${t}.200`}}},eP=e=>{const{colorScheme:t,theme:r}=e,n=si(`${t}.200`,.8)(r);return{[Me.color.variable]:`colors.${t}.500`,_dark:{[Me.color.variable]:n},[Me.shadow.variable]:`inset 0 0 0px 1px ${Me.color.reference}`}},tP={solid:ZT,subtle:JT,outline:eP},os={baseStyle:QT,variants:tP,defaultProps:{variant:"subtle",colorScheme:"gray"}},{defineMultiStyleConfig:rP,definePartsStyle:Qn}=ge(W3.keys),eg=D("tag-bg"),tg=D("tag-color"),qc=D("tag-shadow"),ll=D("tag-min-height"),ul=D("tag-min-width"),cl=D("tag-font-size"),dl=D("tag-padding-inline"),nP={fontWeight:"medium",lineHeight:1.2,outline:0,[tg.variable]:Me.color.reference,[eg.variable]:Me.bg.reference,[qc.variable]:Me.shadow.reference,color:tg.reference,bg:eg.reference,boxShadow:qc.reference,borderRadius:"md",minH:ll.reference,minW:ul.reference,fontSize:cl.reference,px:dl.reference,_focusVisible:{[qc.variable]:"shadows.outline"}},oP={lineHeight:1.2,overflow:"visible"},iP={fontSize:"lg",w:"5",h:"5",transitionProperty:"common",transitionDuration:"normal",borderRadius:"full",marginStart:"1.5",marginEnd:"-1",opacity:.5,_disabled:{opacity:.4},_focusVisible:{boxShadow:"outline",bg:"rgba(0, 0, 0, 0.14)"},_hover:{opacity:.8},_active:{opacity:1}},sP=Qn({container:nP,label:oP,closeButton:iP}),aP={sm:Qn({container:{[ll.variable]:"sizes.5",[ul.variable]:"sizes.5",[cl.variable]:"fontSizes.xs",[dl.variable]:"space.2"},closeButton:{marginEnd:"-2px",marginStart:"0.35rem"}}),md:Qn({container:{[ll.variable]:"sizes.6",[ul.variable]:"sizes.6",[cl.variable]:"fontSizes.sm",[dl.variable]:"space.2"}}),lg:Qn({container:{[ll.variable]:"sizes.8",[ul.variable]:"sizes.8",[cl.variable]:"fontSizes.md",[dl.variable]:"space.3"}})},lP={subtle:Qn(e=>{var t;return{container:(t=os.variants)==null?void 0:t.subtle(e)}}),solid:Qn(e=>{var t;return{container:(t=os.variants)==null?void 0:t.solid(e)}}),outline:Qn(e=>{var t;return{container:(t=os.variants)==null?void 0:t.outline(e)}})},uP=rP({variants:lP,baseStyle:sP,sizes:aP,defaultProps:{size:"md",variant:"subtle",colorScheme:"gray"}}),{definePartsStyle:zr,defineMultiStyleConfig:cP}=ge(R3.keys),Mo=D("input-height"),Lo=D("input-font-size"),Fo=D("input-padding"),Oo=D("input-border-radius"),dP=zr({addon:{height:Mo.reference,fontSize:Lo.reference,px:Fo.reference,borderRadius:Oo.reference},field:{width:"100%",height:Mo.reference,fontSize:Lo.reference,px:Fo.reference,borderRadius:Oo.reference,minWidth:0,outline:0,position:"relative",appearance:"none",transitionProperty:"common",transitionDuration:"normal",_disabled:{opacity:.4,cursor:"not-allowed"}}}),Zr={lg:{[Lo.variable]:"fontSizes.lg",[Fo.variable]:"space.4",[Oo.variable]:"radii.md",[Mo.variable]:"sizes.12"},md:{[Lo.variable]:"fontSizes.md",[Fo.variable]:"space.4",[Oo.variable]:"radii.md",[Mo.variable]:"sizes.10"},sm:{[Lo.variable]:"fontSizes.sm",[Fo.variable]:"space.3",[Oo.variable]:"radii.sm",[Mo.variable]:"sizes.8"},xs:{[Lo.variable]:"fontSizes.xs",[Fo.variable]:"space.2",[Oo.variable]:"radii.sm",[Mo.variable]:"sizes.6"}},fP={lg:zr({field:Zr.lg,group:Zr.lg}),md:zr({field:Zr.md,group:Zr.md}),sm:zr({field:Zr.sm,group:Zr.sm}),xs:zr({field:Zr.xs,group:Zr.xs})};function mp(e){const{focusBorderColor:t,errorBorderColor:r}=e;return{focusBorderColor:t||B("blue.500","blue.300")(e),errorBorderColor:r||B("red.500","red.300")(e)}}var hP=zr(e=>{const{theme:t}=e,{focusBorderColor:r,errorBorderColor:n}=mp(e);return{field:{border:"1px solid",borderColor:"inherit",bg:"inherit",_hover:{borderColor:B("gray.300","whiteAlpha.400")(e)},_readOnly:{boxShadow:"none !important",userSelect:"all"},_invalid:{borderColor:st(t,n),boxShadow:`0 0 0 1px ${st(t,n)}`},_focusVisible:{zIndex:1,borderColor:st(t,r),boxShadow:`0 0 0 1px ${st(t,r)}`}},addon:{border:"1px solid",borderColor:B("inherit","whiteAlpha.50")(e),bg:B("gray.100","whiteAlpha.300")(e)}}}),pP=zr(e=>{const{theme:t}=e,{focusBorderColor:r,errorBorderColor:n}=mp(e);return{field:{border:"2px solid",borderColor:"transparent",bg:B("gray.100","whiteAlpha.50")(e),_hover:{bg:B("gray.200","whiteAlpha.100")(e)},_readOnly:{boxShadow:"none !important",userSelect:"all"},_invalid:{borderColor:st(t,n)},_focusVisible:{bg:"transparent",borderColor:st(t,r)}},addon:{border:"2px solid",borderColor:"transparent",bg:B("gray.100","whiteAlpha.50")(e)}}}),mP=zr(e=>{const{theme:t}=e,{focusBorderColor:r,errorBorderColor:n}=mp(e);return{field:{borderBottom:"1px solid",borderColor:"inherit",borderRadius:"0",px:"0",bg:"transparent",_readOnly:{boxShadow:"none !important",userSelect:"all"},_invalid:{borderColor:st(t,n),boxShadow:`0px 1px 0px 0px ${st(t,n)}`},_focusVisible:{borderColor:st(t,r),boxShadow:`0px 1px 0px 0px ${st(t,r)}`}},addon:{borderBottom:"2px solid",borderColor:"inherit",borderRadius:"0",px:"0",bg:"transparent"}}}),gP=zr({field:{bg:"transparent",px:"0",height:"auto"},addon:{bg:"transparent",px:"0",height:"auto"}}),yP={outline:hP,filled:pP,flushed:mP,unstyled:gP},ne=cP({baseStyle:dP,sizes:fP,variants:yP,defaultProps:{size:"md",variant:"outline"}}),rg,vP={...(rg=ne.baseStyle)==null?void 0:rg.field,paddingY:"2",minHeight:"20",lineHeight:"short",verticalAlign:"top"},ng,og,bP={outline:e=>{var t,r;return(r=(t=ne.variants)==null?void 0:t.outline(e).field)!=null?r:{}},flushed:e=>{var t,r;return(r=(t=ne.variants)==null?void 0:t.flushed(e).field)!=null?r:{}},filled:e=>{var t,r;return(r=(t=ne.variants)==null?void 0:t.filled(e).field)!=null?r:{}},unstyled:(og=(ng=ne.variants)==null?void 0:ng.unstyled.field)!=null?og:{}},ig,sg,ag,lg,ug,cg,dg,fg,SP={xs:(sg=(ig=ne.sizes)==null?void 0:ig.xs.field)!=null?sg:{},sm:(lg=(ag=ne.sizes)==null?void 0:ag.sm.field)!=null?lg:{},md:(cg=(ug=ne.sizes)==null?void 0:ug.md.field)!=null?cg:{},lg:(fg=(dg=ne.sizes)==null?void 0:dg.lg.field)!=null?fg:{}},xP={baseStyle:vP,sizes:SP,variants:bP,defaultProps:{size:"md",variant:"outline"}},Oa=Ue("tooltip-bg"),Xc=Ue("tooltip-fg"),wP=Ue("popper-arrow-bg"),kP={bg:Oa.reference,color:Xc.reference,[Oa.variable]:"colors.gray.700",[Xc.variable]:"colors.whiteAlpha.900",_dark:{[Oa.variable]:"colors.gray.300",[Xc.variable]:"colors.gray.900"},[wP.variable]:Oa.reference,px:"2",py:"0.5",borderRadius:"sm",fontWeight:"medium",fontSize:"sm",boxShadow:"md",maxW:"xs",zIndex:"tooltip"},CP={baseStyle:kP},{defineMultiStyleConfig:_P,definePartsStyle:Hi}=ge(j3.keys),TP=e=>{const{colorScheme:t,theme:r,isIndeterminate:n,hasStripe:o}=e,i=B(X0(),X0("1rem","rgba(0,0,0,0.1)"))(e),s=B(`${t}.500`,`${t}.200`)(e),a=`linear-gradient( + )`,backgroundSize:`${e} ${e}`}}var dT=()=>`#${Math.floor(Math.random()*16777215).toString(16).padEnd(6,"0")}`;function fT(e){const t=dT();return!e||aT(e)?t:e.string&&e.colors?pT(e.string,e.colors):e.string&&!e.colors?hT(e.string):e.colors&&!e.string?mT(e.colors):t}function hT(e){let t=0;if(e.length===0)return t.toString();for(let n=0;n>n*8&255;r+=`00${o.toString(16)}`.substr(-2)}return r}function pT(e,t){let r=0;if(e.length===0)return t[0];for(let n=0;nr.colorMode==="dark"?t:e}function mp(e){const{orientation:t,vertical:r,horizontal:n}=e;return t?t==="vertical"?r:n:{}}function Yb(e){return vt(e)&&e.reference?e.reference:String(e)}var Wu=(e,...t)=>t.map(Yb).join(` ${e} `).replace(/calc/g,""),Y0=(...e)=>`calc(${Wu("+",...e)})`,Q0=(...e)=>`calc(${Wu("-",...e)})`,Af=(...e)=>`calc(${Wu("*",...e)})`,Z0=(...e)=>`calc(${Wu("/",...e)})`,J0=e=>{const t=Yb(e);return t!=null&&!Number.isNaN(parseFloat(t))?String(t).startsWith("-")?String(t).slice(1):`-${t}`:Af(t,-1)},$r=Object.assign(e=>({add:(...t)=>$r(Y0(e,...t)),subtract:(...t)=>$r(Q0(e,...t)),multiply:(...t)=>$r(Af(e,...t)),divide:(...t)=>$r(Z0(e,...t)),negate:()=>$r(J0(e)),toString:()=>e.toString()}),{add:Y0,subtract:Q0,multiply:Af,divide:Z0,negate:J0});function gT(e){return!Number.isInteger(parseFloat(e.toString()))}function yT(e,t="-"){return e.replace(/\s+/g,t)}function Qb(e){const t=yT(e.toString());return t.includes("\\.")?e:gT(e)?t.replace(".","\\."):e}function vT(e,t=""){return[t,Qb(e)].filter(Boolean).join("-")}function bT(e,t){return`var(${Qb(e)}${t?`, ${t}`:""})`}function ST(e,t=""){return`--${vT(e,t)}`}function Ue(e,t){const r=ST(e,t==null?void 0:t.prefix);return{variable:r,reference:bT(r,xT(t==null?void 0:t.fallback))}}function xT(e){return typeof e=="string"?e:e==null?void 0:e.reference}var{defineMultiStyleConfig:wT,definePartsStyle:al}=ge(V3.keys),ns=Ue("switch-track-width"),Yn=Ue("switch-track-height"),qc=Ue("switch-track-diff"),kT=$r.subtract(ns,Yn),Rf=Ue("switch-thumb-x"),Ri=Ue("switch-bg"),CT=e=>{const{colorScheme:t}=e;return{borderRadius:"full",p:"0.5",width:[ns.reference],height:[Yn.reference],transitionProperty:"common",transitionDuration:"fast",[Ri.variable]:"colors.gray.300",_dark:{[Ri.variable]:"colors.whiteAlpha.400"},_focusVisible:{boxShadow:"outline"},_disabled:{opacity:.4,cursor:"not-allowed"},_checked:{[Ri.variable]:`colors.${t}.500`,_dark:{[Ri.variable]:`colors.${t}.200`}},bg:Ri.reference}},_T={bg:"white",transitionProperty:"transform",transitionDuration:"normal",borderRadius:"inherit",width:[Yn.reference],height:[Yn.reference],_checked:{transform:`translateX(${Rf.reference})`}},TT=al(e=>({container:{[qc.variable]:kT,[Rf.variable]:qc.reference,_rtl:{[Rf.variable]:$r(qc).negate().toString()}},track:CT(e),thumb:_T})),PT={sm:al({container:{[ns.variable]:"1.375rem",[Yn.variable]:"sizes.3"}}),md:al({container:{[ns.variable]:"1.875rem",[Yn.variable]:"sizes.4"}}),lg:al({container:{[ns.variable]:"2.875rem",[Yn.variable]:"sizes.6"}})},ET=wT({baseStyle:TT,sizes:PT,defaultProps:{size:"md",colorScheme:"blue"}}),{defineMultiStyleConfig:$T,definePartsStyle:qo}=ge(U3.keys),AT=qo({table:{fontVariantNumeric:"lining-nums tabular-nums",borderCollapse:"collapse",width:"full"},th:{fontFamily:"heading",fontWeight:"bold",textTransform:"uppercase",letterSpacing:"wider",textAlign:"start"},td:{textAlign:"start"},caption:{mt:4,fontFamily:"heading",textAlign:"center",fontWeight:"medium"}}),Zl={"&[data-is-numeric=true]":{textAlign:"end"}},RT=qo(e=>{const{colorScheme:t}=e;return{th:{color:B("gray.600","gray.400")(e),borderBottom:"1px",borderColor:B(`${t}.100`,`${t}.700`)(e),...Zl},td:{borderBottom:"1px",borderColor:B(`${t}.100`,`${t}.700`)(e),...Zl},caption:{color:B("gray.600","gray.100")(e)},tfoot:{tr:{"&:last-of-type":{th:{borderBottomWidth:0}}}}}}),zT=qo(e=>{const{colorScheme:t}=e;return{th:{color:B("gray.600","gray.400")(e),borderBottom:"1px",borderColor:B(`${t}.100`,`${t}.700`)(e),...Zl},td:{borderBottom:"1px",borderColor:B(`${t}.100`,`${t}.700`)(e),...Zl},caption:{color:B("gray.600","gray.100")(e)},tbody:{tr:{"&:nth-of-type(odd)":{"th, td":{borderBottomWidth:"1px",borderColor:B(`${t}.100`,`${t}.700`)(e)},td:{background:B(`${t}.100`,`${t}.700`)(e)}}}},tfoot:{tr:{"&:last-of-type":{th:{borderBottomWidth:0}}}}}}),MT={simple:RT,striped:zT,unstyled:{}},LT={sm:qo({th:{px:"4",py:"1",lineHeight:"4",fontSize:"xs"},td:{px:"4",py:"2",fontSize:"sm",lineHeight:"4"},caption:{px:"4",py:"2",fontSize:"xs"}}),md:qo({th:{px:"6",py:"3",lineHeight:"4",fontSize:"xs"},td:{px:"6",py:"4",lineHeight:"5"},caption:{px:"6",py:"2",fontSize:"sm"}}),lg:qo({th:{px:"8",py:"4",lineHeight:"5",fontSize:"sm"},td:{px:"8",py:"5",lineHeight:"6"},caption:{px:"6",py:"2",fontSize:"md"}})},FT=$T({baseStyle:AT,variants:MT,sizes:LT,defaultProps:{variant:"simple",size:"md",colorScheme:"gray"}}),ht=D("tabs-color"),rr=D("tabs-bg"),Fa=D("tabs-border-color"),{defineMultiStyleConfig:OT,definePartsStyle:Sr}=ge(H3.keys),jT=e=>{const{orientation:t}=e;return{display:t==="vertical"?"flex":"block"}},DT=e=>{const{isFitted:t}=e;return{flex:t?1:void 0,transitionProperty:"common",transitionDuration:"normal",_focusVisible:{zIndex:1,boxShadow:"outline"},_disabled:{cursor:"not-allowed",opacity:.4}}},BT=e=>{const{align:t="start",orientation:r}=e;return{justifyContent:{end:"flex-end",center:"center",start:"flex-start"}[t],flexDirection:r==="vertical"?"column":"row"}},IT={p:4},NT=Sr(e=>({root:jT(e),tab:DT(e),tablist:BT(e),tabpanel:IT})),VT={sm:Sr({tab:{py:1,px:4,fontSize:"sm"}}),md:Sr({tab:{fontSize:"md",py:2,px:4}}),lg:Sr({tab:{fontSize:"lg",py:3,px:4}})},UT=Sr(e=>{const{colorScheme:t,orientation:r}=e,n=r==="vertical",o=n?"borderStart":"borderBottom",i=n?"marginStart":"marginBottom";return{tablist:{[o]:"2px solid",borderColor:"inherit"},tab:{[o]:"2px solid",borderColor:"transparent",[i]:"-2px",_selected:{[ht.variable]:`colors.${t}.600`,_dark:{[ht.variable]:`colors.${t}.300`},borderColor:"currentColor"},_active:{[rr.variable]:"colors.gray.200",_dark:{[rr.variable]:"colors.whiteAlpha.300"}},_disabled:{_active:{bg:"none"}},color:ht.reference,bg:rr.reference}}}),HT=Sr(e=>{const{colorScheme:t}=e;return{tab:{borderTopRadius:"md",border:"1px solid",borderColor:"transparent",mb:"-1px",[Fa.variable]:"transparent",_selected:{[ht.variable]:`colors.${t}.600`,[Fa.variable]:"colors.white",_dark:{[ht.variable]:`colors.${t}.300`,[Fa.variable]:"colors.gray.800"},borderColor:"inherit",borderBottomColor:Fa.reference},color:ht.reference},tablist:{mb:"-1px",borderBottom:"1px solid",borderColor:"inherit"}}}),WT=Sr(e=>{const{colorScheme:t}=e;return{tab:{border:"1px solid",borderColor:"inherit",[rr.variable]:"colors.gray.50",_dark:{[rr.variable]:"colors.whiteAlpha.50"},mb:"-1px",_notLast:{marginEnd:"-1px"},_selected:{[rr.variable]:"colors.white",[ht.variable]:`colors.${t}.600`,_dark:{[rr.variable]:"colors.gray.800",[ht.variable]:`colors.${t}.300`},borderColor:"inherit",borderTopColor:"currentColor",borderBottomColor:"transparent"},color:ht.reference,bg:rr.reference},tablist:{mb:"-1px",borderBottom:"1px solid",borderColor:"inherit"}}}),GT=Sr(e=>{const{colorScheme:t,theme:r}=e;return{tab:{borderRadius:"full",fontWeight:"semibold",color:"gray.600",_selected:{color:st(r,`${t}.700`),bg:st(r,`${t}.100`)}}}}),KT=Sr(e=>{const{colorScheme:t}=e;return{tab:{borderRadius:"full",fontWeight:"semibold",[ht.variable]:"colors.gray.600",_dark:{[ht.variable]:"inherit"},_selected:{[ht.variable]:"colors.white",[rr.variable]:`colors.${t}.600`,_dark:{[ht.variable]:"colors.gray.800",[rr.variable]:`colors.${t}.300`}},color:ht.reference,bg:rr.reference}}}),qT=Sr({}),XT={line:UT,enclosed:HT,"enclosed-colored":WT,"soft-rounded":GT,"solid-rounded":KT,unstyled:qT},YT=OT({baseStyle:NT,sizes:VT,variants:XT,defaultProps:{size:"md",variant:"line",colorScheme:"blue"}}),Me=v_("badge",["bg","color","shadow"]),QT={px:1,textTransform:"uppercase",fontSize:"xs",borderRadius:"sm",fontWeight:"bold",bg:Me.bg.reference,color:Me.color.reference,boxShadow:Me.shadow.reference},ZT=e=>{const{colorScheme:t,theme:r}=e,n=si(`${t}.500`,.6)(r);return{[Me.bg.variable]:`colors.${t}.500`,[Me.color.variable]:"colors.white",_dark:{[Me.bg.variable]:n,[Me.color.variable]:"colors.whiteAlpha.800"}}},JT=e=>{const{colorScheme:t,theme:r}=e,n=si(`${t}.200`,.16)(r);return{[Me.bg.variable]:`colors.${t}.100`,[Me.color.variable]:`colors.${t}.800`,_dark:{[Me.bg.variable]:n,[Me.color.variable]:`colors.${t}.200`}}},eP=e=>{const{colorScheme:t,theme:r}=e,n=si(`${t}.200`,.8)(r);return{[Me.color.variable]:`colors.${t}.500`,_dark:{[Me.color.variable]:n},[Me.shadow.variable]:`inset 0 0 0px 1px ${Me.color.reference}`}},tP={solid:ZT,subtle:JT,outline:eP},os={baseStyle:QT,variants:tP,defaultProps:{variant:"subtle",colorScheme:"gray"}},{defineMultiStyleConfig:rP,definePartsStyle:Qn}=ge(W3.keys),eg=D("tag-bg"),tg=D("tag-color"),Xc=D("tag-shadow"),ll=D("tag-min-height"),ul=D("tag-min-width"),cl=D("tag-font-size"),dl=D("tag-padding-inline"),nP={fontWeight:"medium",lineHeight:1.2,outline:0,[tg.variable]:Me.color.reference,[eg.variable]:Me.bg.reference,[Xc.variable]:Me.shadow.reference,color:tg.reference,bg:eg.reference,boxShadow:Xc.reference,borderRadius:"md",minH:ll.reference,minW:ul.reference,fontSize:cl.reference,px:dl.reference,_focusVisible:{[Xc.variable]:"shadows.outline"}},oP={lineHeight:1.2,overflow:"visible"},iP={fontSize:"lg",w:"5",h:"5",transitionProperty:"common",transitionDuration:"normal",borderRadius:"full",marginStart:"1.5",marginEnd:"-1",opacity:.5,_disabled:{opacity:.4},_focusVisible:{boxShadow:"outline",bg:"rgba(0, 0, 0, 0.14)"},_hover:{opacity:.8},_active:{opacity:1}},sP=Qn({container:nP,label:oP,closeButton:iP}),aP={sm:Qn({container:{[ll.variable]:"sizes.5",[ul.variable]:"sizes.5",[cl.variable]:"fontSizes.xs",[dl.variable]:"space.2"},closeButton:{marginEnd:"-2px",marginStart:"0.35rem"}}),md:Qn({container:{[ll.variable]:"sizes.6",[ul.variable]:"sizes.6",[cl.variable]:"fontSizes.sm",[dl.variable]:"space.2"}}),lg:Qn({container:{[ll.variable]:"sizes.8",[ul.variable]:"sizes.8",[cl.variable]:"fontSizes.md",[dl.variable]:"space.3"}})},lP={subtle:Qn(e=>{var t;return{container:(t=os.variants)==null?void 0:t.subtle(e)}}),solid:Qn(e=>{var t;return{container:(t=os.variants)==null?void 0:t.solid(e)}}),outline:Qn(e=>{var t;return{container:(t=os.variants)==null?void 0:t.outline(e)}})},uP=rP({variants:lP,baseStyle:sP,sizes:aP,defaultProps:{size:"md",variant:"subtle",colorScheme:"gray"}}),{definePartsStyle:zr,defineMultiStyleConfig:cP}=ge(R3.keys),Mo=D("input-height"),Lo=D("input-font-size"),Fo=D("input-padding"),Oo=D("input-border-radius"),dP=zr({addon:{height:Mo.reference,fontSize:Lo.reference,px:Fo.reference,borderRadius:Oo.reference},field:{width:"100%",height:Mo.reference,fontSize:Lo.reference,px:Fo.reference,borderRadius:Oo.reference,minWidth:0,outline:0,position:"relative",appearance:"none",transitionProperty:"common",transitionDuration:"normal",_disabled:{opacity:.4,cursor:"not-allowed"}}}),Zr={lg:{[Lo.variable]:"fontSizes.lg",[Fo.variable]:"space.4",[Oo.variable]:"radii.md",[Mo.variable]:"sizes.12"},md:{[Lo.variable]:"fontSizes.md",[Fo.variable]:"space.4",[Oo.variable]:"radii.md",[Mo.variable]:"sizes.10"},sm:{[Lo.variable]:"fontSizes.sm",[Fo.variable]:"space.3",[Oo.variable]:"radii.sm",[Mo.variable]:"sizes.8"},xs:{[Lo.variable]:"fontSizes.xs",[Fo.variable]:"space.2",[Oo.variable]:"radii.sm",[Mo.variable]:"sizes.6"}},fP={lg:zr({field:Zr.lg,group:Zr.lg}),md:zr({field:Zr.md,group:Zr.md}),sm:zr({field:Zr.sm,group:Zr.sm}),xs:zr({field:Zr.xs,group:Zr.xs})};function gp(e){const{focusBorderColor:t,errorBorderColor:r}=e;return{focusBorderColor:t||B("blue.500","blue.300")(e),errorBorderColor:r||B("red.500","red.300")(e)}}var hP=zr(e=>{const{theme:t}=e,{focusBorderColor:r,errorBorderColor:n}=gp(e);return{field:{border:"1px solid",borderColor:"inherit",bg:"inherit",_hover:{borderColor:B("gray.300","whiteAlpha.400")(e)},_readOnly:{boxShadow:"none !important",userSelect:"all"},_invalid:{borderColor:st(t,n),boxShadow:`0 0 0 1px ${st(t,n)}`},_focusVisible:{zIndex:1,borderColor:st(t,r),boxShadow:`0 0 0 1px ${st(t,r)}`}},addon:{border:"1px solid",borderColor:B("inherit","whiteAlpha.50")(e),bg:B("gray.100","whiteAlpha.300")(e)}}}),pP=zr(e=>{const{theme:t}=e,{focusBorderColor:r,errorBorderColor:n}=gp(e);return{field:{border:"2px solid",borderColor:"transparent",bg:B("gray.100","whiteAlpha.50")(e),_hover:{bg:B("gray.200","whiteAlpha.100")(e)},_readOnly:{boxShadow:"none !important",userSelect:"all"},_invalid:{borderColor:st(t,n)},_focusVisible:{bg:"transparent",borderColor:st(t,r)}},addon:{border:"2px solid",borderColor:"transparent",bg:B("gray.100","whiteAlpha.50")(e)}}}),mP=zr(e=>{const{theme:t}=e,{focusBorderColor:r,errorBorderColor:n}=gp(e);return{field:{borderBottom:"1px solid",borderColor:"inherit",borderRadius:"0",px:"0",bg:"transparent",_readOnly:{boxShadow:"none !important",userSelect:"all"},_invalid:{borderColor:st(t,n),boxShadow:`0px 1px 0px 0px ${st(t,n)}`},_focusVisible:{borderColor:st(t,r),boxShadow:`0px 1px 0px 0px ${st(t,r)}`}},addon:{borderBottom:"2px solid",borderColor:"inherit",borderRadius:"0",px:"0",bg:"transparent"}}}),gP=zr({field:{bg:"transparent",px:"0",height:"auto"},addon:{bg:"transparent",px:"0",height:"auto"}}),yP={outline:hP,filled:pP,flushed:mP,unstyled:gP},ne=cP({baseStyle:dP,sizes:fP,variants:yP,defaultProps:{size:"md",variant:"outline"}}),rg,vP={...(rg=ne.baseStyle)==null?void 0:rg.field,paddingY:"2",minHeight:"20",lineHeight:"short",verticalAlign:"top"},ng,og,bP={outline:e=>{var t,r;return(r=(t=ne.variants)==null?void 0:t.outline(e).field)!=null?r:{}},flushed:e=>{var t,r;return(r=(t=ne.variants)==null?void 0:t.flushed(e).field)!=null?r:{}},filled:e=>{var t,r;return(r=(t=ne.variants)==null?void 0:t.filled(e).field)!=null?r:{}},unstyled:(og=(ng=ne.variants)==null?void 0:ng.unstyled.field)!=null?og:{}},ig,sg,ag,lg,ug,cg,dg,fg,SP={xs:(sg=(ig=ne.sizes)==null?void 0:ig.xs.field)!=null?sg:{},sm:(lg=(ag=ne.sizes)==null?void 0:ag.sm.field)!=null?lg:{},md:(cg=(ug=ne.sizes)==null?void 0:ug.md.field)!=null?cg:{},lg:(fg=(dg=ne.sizes)==null?void 0:dg.lg.field)!=null?fg:{}},xP={baseStyle:vP,sizes:SP,variants:bP,defaultProps:{size:"md",variant:"outline"}},Oa=Ue("tooltip-bg"),Yc=Ue("tooltip-fg"),wP=Ue("popper-arrow-bg"),kP={bg:Oa.reference,color:Yc.reference,[Oa.variable]:"colors.gray.700",[Yc.variable]:"colors.whiteAlpha.900",_dark:{[Oa.variable]:"colors.gray.300",[Yc.variable]:"colors.gray.900"},[wP.variable]:Oa.reference,px:"2",py:"0.5",borderRadius:"sm",fontWeight:"medium",fontSize:"sm",boxShadow:"md",maxW:"xs",zIndex:"tooltip"},CP={baseStyle:kP},{defineMultiStyleConfig:_P,definePartsStyle:Hi}=ge(j3.keys),TP=e=>{const{colorScheme:t,theme:r,isIndeterminate:n,hasStripe:o}=e,i=B(X0(),X0("1rem","rgba(0,0,0,0.1)"))(e),s=B(`${t}.500`,`${t}.200`)(e),a=`linear-gradient( to right, transparent 0%, ${st(r,s)} 50%, transparent 100% - )`;return{...!n&&o&&i,...n?{bgImage:a}:{bgColor:s}}},PP={lineHeight:"1",fontSize:"0.25em",fontWeight:"bold",color:"white"},EP=e=>({bg:B("gray.100","whiteAlpha.300")(e)}),$P=e=>({transitionProperty:"common",transitionDuration:"slow",...TP(e)}),AP=Hi(e=>({label:PP,filledTrack:$P(e),track:EP(e)})),RP={xs:Hi({track:{h:"1"}}),sm:Hi({track:{h:"2"}}),md:Hi({track:{h:"3"}}),lg:Hi({track:{h:"4"}})},zP=_P({sizes:RP,baseStyle:AP,defaultProps:{size:"md",colorScheme:"blue"}}),MP=e=>typeof e=="function";function lt(e,...t){return MP(e)?e(...t):e}var{definePartsStyle:fl,defineMultiStyleConfig:LP}=ge(T3.keys),is=D("checkbox-size"),FP=e=>{const{colorScheme:t}=e;return{w:is.reference,h:is.reference,transitionProperty:"box-shadow",transitionDuration:"normal",border:"2px solid",borderRadius:"sm",borderColor:"inherit",color:"white",_checked:{bg:B(`${t}.500`,`${t}.200`)(e),borderColor:B(`${t}.500`,`${t}.200`)(e),color:B("white","gray.900")(e),_hover:{bg:B(`${t}.600`,`${t}.300`)(e),borderColor:B(`${t}.600`,`${t}.300`)(e)},_disabled:{borderColor:B("gray.200","transparent")(e),bg:B("gray.200","whiteAlpha.300")(e),color:B("gray.500","whiteAlpha.500")(e)}},_indeterminate:{bg:B(`${t}.500`,`${t}.200`)(e),borderColor:B(`${t}.500`,`${t}.200`)(e),color:B("white","gray.900")(e)},_disabled:{bg:B("gray.100","whiteAlpha.100")(e),borderColor:B("gray.100","transparent")(e)},_focusVisible:{boxShadow:"outline"},_invalid:{borderColor:B("red.500","red.300")(e)}}},OP={_disabled:{cursor:"not-allowed"}},jP={userSelect:"none",_disabled:{opacity:.4}},DP={transitionProperty:"transform",transitionDuration:"normal"},BP=fl(e=>({icon:DP,container:OP,control:lt(FP,e),label:jP})),IP={sm:fl({control:{[is.variable]:"sizes.3"},label:{fontSize:"sm"},icon:{fontSize:"3xs"}}),md:fl({control:{[is.variable]:"sizes.4"},label:{fontSize:"md"},icon:{fontSize:"2xs"}}),lg:fl({control:{[is.variable]:"sizes.5"},label:{fontSize:"lg"},icon:{fontSize:"2xs"}})},Jl=LP({baseStyle:BP,sizes:IP,defaultProps:{size:"md",colorScheme:"blue"}}),{defineMultiStyleConfig:NP,definePartsStyle:hl}=ge(D3.keys),VP=e=>{var t;const r=(t=lt(Jl.baseStyle,e))==null?void 0:t.control;return{...r,borderRadius:"full",_checked:{...r==null?void 0:r._checked,_before:{content:'""',display:"inline-block",pos:"relative",w:"50%",h:"50%",borderRadius:"50%",bg:"currentColor"}}}},UP=hl(e=>{var t,r,n,o;return{label:(r=(t=Jl).baseStyle)==null?void 0:r.call(t,e).label,container:(o=(n=Jl).baseStyle)==null?void 0:o.call(n,e).container,control:VP(e)}}),HP={md:hl({control:{w:"4",h:"4"},label:{fontSize:"md"}}),lg:hl({control:{w:"5",h:"5"},label:{fontSize:"lg"}}),sm:hl({control:{width:"3",height:"3"},label:{fontSize:"sm"}})},WP=NP({baseStyle:UP,sizes:HP,defaultProps:{size:"md",colorScheme:"blue"}}),{defineMultiStyleConfig:GP,definePartsStyle:KP}=ge(B3.keys),ja=D("select-bg"),hg,qP={...(hg=ne.baseStyle)==null?void 0:hg.field,appearance:"none",paddingBottom:"1px",lineHeight:"normal",bg:ja.reference,[ja.variable]:"colors.white",_dark:{[ja.variable]:"colors.gray.700"},"> option, > optgroup":{bg:ja.reference}},XP={width:"6",height:"100%",insetEnd:"2",position:"relative",color:"currentColor",fontSize:"xl",_disabled:{opacity:.5}},YP=KP({field:qP,icon:XP}),Da={paddingInlineEnd:"8"},pg,mg,gg,yg,vg,bg,Sg,xg,QP={lg:{...(pg=ne.sizes)==null?void 0:pg.lg,field:{...(mg=ne.sizes)==null?void 0:mg.lg.field,...Da}},md:{...(gg=ne.sizes)==null?void 0:gg.md,field:{...(yg=ne.sizes)==null?void 0:yg.md.field,...Da}},sm:{...(vg=ne.sizes)==null?void 0:vg.sm,field:{...(bg=ne.sizes)==null?void 0:bg.sm.field,...Da}},xs:{...(Sg=ne.sizes)==null?void 0:Sg.xs,field:{...(xg=ne.sizes)==null?void 0:xg.xs.field,...Da},icon:{insetEnd:"1"}}},ZP=GP({baseStyle:YP,sizes:QP,variants:ne.variants,defaultProps:ne.defaultProps}),Yc=D("skeleton-start-color"),Qc=D("skeleton-end-color"),JP={[Yc.variable]:"colors.gray.100",[Qc.variable]:"colors.gray.400",_dark:{[Yc.variable]:"colors.gray.800",[Qc.variable]:"colors.gray.600"},background:Yc.reference,borderColor:Qc.reference,opacity:.7,borderRadius:"sm"},eE={baseStyle:JP},Zc=D("skip-link-bg"),tE={borderRadius:"md",fontWeight:"semibold",_focusVisible:{boxShadow:"outline",padding:"4",position:"fixed",top:"6",insetStart:"6",[Zc.variable]:"colors.white",_dark:{[Zc.variable]:"colors.gray.700"},bg:Zc.reference}},rE={baseStyle:tE},{defineMultiStyleConfig:nE,definePartsStyle:Gu}=ge(I3.keys),Fs=D("slider-thumb-size"),Os=D("slider-track-size"),ln=D("slider-bg"),oE=e=>{const{orientation:t}=e;return{display:"inline-block",position:"relative",cursor:"pointer",_disabled:{opacity:.6,cursor:"default",pointerEvents:"none"},...pp({orientation:t,vertical:{h:"100%"},horizontal:{w:"100%"}})}},iE=e=>({...pp({orientation:e.orientation,horizontal:{h:Os.reference},vertical:{w:Os.reference}}),overflow:"hidden",borderRadius:"sm",[ln.variable]:"colors.gray.200",_dark:{[ln.variable]:"colors.whiteAlpha.200"},_disabled:{[ln.variable]:"colors.gray.300",_dark:{[ln.variable]:"colors.whiteAlpha.300"}},bg:ln.reference}),sE=e=>{const{orientation:t}=e;return{...pp({orientation:t,vertical:{left:"50%",transform:"translateX(-50%)",_active:{transform:"translateX(-50%) scale(1.15)"}},horizontal:{top:"50%",transform:"translateY(-50%)",_active:{transform:"translateY(-50%) scale(1.15)"}}}),w:Fs.reference,h:Fs.reference,display:"flex",alignItems:"center",justifyContent:"center",position:"absolute",outline:0,zIndex:1,borderRadius:"full",bg:"white",boxShadow:"base",border:"1px solid",borderColor:"transparent",transitionProperty:"transform",transitionDuration:"normal",_focusVisible:{boxShadow:"outline"},_disabled:{bg:"gray.300"}}},aE=e=>{const{colorScheme:t}=e;return{width:"inherit",height:"inherit",[ln.variable]:`colors.${t}.500`,_dark:{[ln.variable]:`colors.${t}.200`},bg:ln.reference}},lE=Gu(e=>({container:oE(e),track:iE(e),thumb:sE(e),filledTrack:aE(e)})),uE=Gu({container:{[Fs.variable]:"sizes.4",[Os.variable]:"sizes.1"}}),cE=Gu({container:{[Fs.variable]:"sizes.3.5",[Os.variable]:"sizes.1"}}),dE=Gu({container:{[Fs.variable]:"sizes.2.5",[Os.variable]:"sizes.0.5"}}),fE={lg:uE,md:cE,sm:dE},hE=nE({baseStyle:lE,sizes:fE,defaultProps:{size:"md",colorScheme:"blue"}}),Vn=Ue("spinner-size"),pE={width:[Vn.reference],height:[Vn.reference]},mE={xs:{[Vn.variable]:"sizes.3"},sm:{[Vn.variable]:"sizes.4"},md:{[Vn.variable]:"sizes.6"},lg:{[Vn.variable]:"sizes.8"},xl:{[Vn.variable]:"sizes.12"}},gE={baseStyle:pE,sizes:mE,defaultProps:{size:"md"}},{defineMultiStyleConfig:yE,definePartsStyle:Zb}=ge(N3.keys),vE={fontWeight:"medium"},bE={opacity:.8,marginBottom:"2"},SE={verticalAlign:"baseline",fontWeight:"semibold"},xE={marginEnd:1,w:"3.5",h:"3.5",verticalAlign:"middle"},wE=Zb({container:{},label:vE,helpText:bE,number:SE,icon:xE}),kE={md:Zb({label:{fontSize:"sm"},helpText:{fontSize:"sm"},number:{fontSize:"2xl"}})},CE=yE({baseStyle:wE,sizes:kE,defaultProps:{size:"md"}}),Jc=D("kbd-bg"),_E={[Jc.variable]:"colors.gray.100",_dark:{[Jc.variable]:"colors.whiteAlpha.100"},bg:Jc.reference,borderRadius:"md",borderWidth:"1px",borderBottomWidth:"3px",fontSize:"0.8em",fontWeight:"bold",lineHeight:"normal",px:"0.4em",whiteSpace:"nowrap"},TE={baseStyle:_E},PE={transitionProperty:"common",transitionDuration:"fast",transitionTimingFunction:"ease-out",cursor:"pointer",textDecoration:"none",outline:"none",color:"inherit",_hover:{textDecoration:"underline"},_focusVisible:{boxShadow:"outline"}},EE={baseStyle:PE},{defineMultiStyleConfig:$E,definePartsStyle:AE}=ge(z3.keys),RE={marginEnd:"2",display:"inline",verticalAlign:"text-bottom"},zE=AE({icon:RE}),ME=$E({baseStyle:zE}),{defineMultiStyleConfig:LE,definePartsStyle:FE}=ge(M3.keys),hr=D("menu-bg"),ed=D("menu-shadow"),OE={[hr.variable]:"#fff",[ed.variable]:"shadows.sm",_dark:{[hr.variable]:"colors.gray.700",[ed.variable]:"shadows.dark-lg"},color:"inherit",minW:"3xs",py:"2",zIndex:1,borderRadius:"md",borderWidth:"1px",bg:hr.reference,boxShadow:ed.reference},jE={py:"1.5",px:"3",transitionProperty:"background",transitionDuration:"ultra-fast",transitionTimingFunction:"ease-in",_focus:{[hr.variable]:"colors.gray.100",_dark:{[hr.variable]:"colors.whiteAlpha.100"}},_active:{[hr.variable]:"colors.gray.200",_dark:{[hr.variable]:"colors.whiteAlpha.200"}},_expanded:{[hr.variable]:"colors.gray.100",_dark:{[hr.variable]:"colors.whiteAlpha.100"}},_disabled:{opacity:.4,cursor:"not-allowed"},bg:hr.reference},DE={mx:4,my:2,fontWeight:"semibold",fontSize:"sm"},BE={display:"inline-flex",alignItems:"center",justifyContent:"center",flexShrink:0},IE={opacity:.6},NE={border:0,borderBottom:"1px solid",borderColor:"inherit",my:"2",opacity:.6},VE={transitionProperty:"common",transitionDuration:"normal"},UE=FE({button:VE,list:OE,item:jE,groupTitle:DE,icon:BE,command:IE,divider:NE}),HE=LE({baseStyle:UE}),{defineMultiStyleConfig:WE,definePartsStyle:Rf}=ge(L3.keys),td=D("modal-bg"),rd=D("modal-shadow"),GE={bg:"blackAlpha.600",zIndex:"modal"},KE=e=>{const{isCentered:t,scrollBehavior:r}=e;return{display:"flex",zIndex:"modal",justifyContent:"center",alignItems:t?"center":"flex-start",overflow:r==="inside"?"hidden":"auto",overscrollBehaviorY:"none"}},qE=e=>{const{isCentered:t,scrollBehavior:r}=e;return{borderRadius:"md",color:"inherit",my:t?"auto":"16",mx:t?"auto":void 0,zIndex:"modal",maxH:r==="inside"?"calc(100% - 7.5rem)":void 0,[td.variable]:"colors.white",[rd.variable]:"shadows.lg",_dark:{[td.variable]:"colors.gray.700",[rd.variable]:"shadows.dark-lg"},bg:td.reference,boxShadow:rd.reference}},XE={px:"6",py:"4",fontSize:"xl",fontWeight:"semibold"},YE={position:"absolute",top:"2",insetEnd:"3"},QE=e=>{const{scrollBehavior:t}=e;return{px:"6",py:"2",flex:"1",overflow:t==="inside"?"auto":void 0}},ZE={px:"6",py:"4"},JE=Rf(e=>({overlay:GE,dialogContainer:lt(KE,e),dialog:lt(qE,e),header:XE,closeButton:YE,body:lt(QE,e),footer:ZE}));function Zt(e){return Rf(e==="full"?{dialog:{maxW:"100vw",minH:"$100vh",my:"0",borderRadius:"0"}}:{dialog:{maxW:e}})}var e6={xs:Zt("xs"),sm:Zt("sm"),md:Zt("md"),lg:Zt("lg"),xl:Zt("xl"),"2xl":Zt("2xl"),"3xl":Zt("3xl"),"4xl":Zt("4xl"),"5xl":Zt("5xl"),"6xl":Zt("6xl"),full:Zt("full")},t6=WE({baseStyle:JE,sizes:e6,defaultProps:{size:"md"}}),{defineMultiStyleConfig:r6,definePartsStyle:Jb}=ge(F3.keys),gp=Ue("number-input-stepper-width"),eS=Ue("number-input-input-padding"),n6=$r(gp).add("0.5rem").toString(),nd=Ue("number-input-bg"),od=Ue("number-input-color"),id=Ue("number-input-border-color"),o6={[gp.variable]:"sizes.6",[eS.variable]:n6},i6=e=>{var t,r;return(r=(t=lt(ne.baseStyle,e))==null?void 0:t.field)!=null?r:{}},s6={width:gp.reference},a6={borderStart:"1px solid",borderStartColor:id.reference,color:od.reference,bg:nd.reference,[od.variable]:"colors.chakra-body-text",[id.variable]:"colors.chakra-border-color",_dark:{[od.variable]:"colors.whiteAlpha.800",[id.variable]:"colors.whiteAlpha.300"},_active:{[nd.variable]:"colors.gray.200",_dark:{[nd.variable]:"colors.whiteAlpha.300"}},_disabled:{opacity:.4,cursor:"not-allowed"}},l6=Jb(e=>{var t;return{root:o6,field:(t=lt(i6,e))!=null?t:{},stepperGroup:s6,stepper:a6}});function Ba(e){var t,r,n;const o=(t=ne.sizes)==null?void 0:t[e],i={lg:"md",md:"md",sm:"sm",xs:"sm"},s=(n=(r=o.field)==null?void 0:r.fontSize)!=null?n:"md",a=Kb.fontSizes[s];return Jb({field:{...o.field,paddingInlineEnd:eS.reference,verticalAlign:"top"},stepper:{fontSize:$r(a).multiply(.75).toString(),_first:{borderTopEndRadius:i[e]},_last:{borderBottomEndRadius:i[e],mt:"-1px",borderTopWidth:1}}})}var u6={xs:Ba("xs"),sm:Ba("sm"),md:Ba("md"),lg:Ba("lg")},c6=r6({baseStyle:l6,sizes:u6,variants:ne.variants,defaultProps:ne.defaultProps}),wg,d6={...(wg=ne.baseStyle)==null?void 0:wg.field,textAlign:"center"},f6={lg:{fontSize:"lg",w:12,h:12,borderRadius:"md"},md:{fontSize:"md",w:10,h:10,borderRadius:"md"},sm:{fontSize:"sm",w:8,h:8,borderRadius:"sm"},xs:{fontSize:"xs",w:6,h:6,borderRadius:"sm"}},kg,Cg,h6={outline:e=>{var t,r,n;return(n=(r=lt((t=ne.variants)==null?void 0:t.outline,e))==null?void 0:r.field)!=null?n:{}},flushed:e=>{var t,r,n;return(n=(r=lt((t=ne.variants)==null?void 0:t.flushed,e))==null?void 0:r.field)!=null?n:{}},filled:e=>{var t,r,n;return(n=(r=lt((t=ne.variants)==null?void 0:t.filled,e))==null?void 0:r.field)!=null?n:{}},unstyled:(Cg=(kg=ne.variants)==null?void 0:kg.unstyled.field)!=null?Cg:{}},p6={baseStyle:d6,sizes:f6,variants:h6,defaultProps:ne.defaultProps},{defineMultiStyleConfig:m6,definePartsStyle:g6}=ge(O3.keys),Ia=Ue("popper-bg"),y6=Ue("popper-arrow-bg"),_g=Ue("popper-arrow-shadow-color"),v6={zIndex:10},b6={[Ia.variable]:"colors.white",bg:Ia.reference,[y6.variable]:Ia.reference,[_g.variable]:"colors.gray.200",_dark:{[Ia.variable]:"colors.gray.700",[_g.variable]:"colors.whiteAlpha.300"},width:"xs",border:"1px solid",borderColor:"inherit",borderRadius:"md",boxShadow:"sm",zIndex:"inherit",_focusVisible:{outline:0,boxShadow:"outline"}},S6={px:3,py:2,borderBottomWidth:"1px"},x6={px:3,py:2},w6={px:3,py:2,borderTopWidth:"1px"},k6={position:"absolute",borderRadius:"md",top:1,insetEnd:2,padding:2},C6=g6({popper:v6,content:b6,header:S6,body:x6,footer:w6,closeButton:k6}),_6=m6({baseStyle:C6}),{definePartsStyle:zf,defineMultiStyleConfig:T6}=ge(P3.keys),sd=D("drawer-bg"),ad=D("drawer-box-shadow");function go(e){return zf(e==="full"?{dialog:{maxW:"100vw",h:"100vh"}}:{dialog:{maxW:e}})}var P6={bg:"blackAlpha.600",zIndex:"modal"},E6={display:"flex",zIndex:"modal",justifyContent:"center"},$6=e=>{const{isFullHeight:t}=e;return{...t&&{height:"100vh"},zIndex:"modal",maxH:"100vh",color:"inherit",[sd.variable]:"colors.white",[ad.variable]:"shadows.lg",_dark:{[sd.variable]:"colors.gray.700",[ad.variable]:"shadows.dark-lg"},bg:sd.reference,boxShadow:ad.reference}},A6={px:"6",py:"4",fontSize:"xl",fontWeight:"semibold"},R6={position:"absolute",top:"2",insetEnd:"3"},z6={px:"6",py:"2",flex:"1",overflow:"auto"},M6={px:"6",py:"4"},L6=zf(e=>({overlay:P6,dialogContainer:E6,dialog:lt($6,e),header:A6,closeButton:R6,body:z6,footer:M6})),F6={xs:go("xs"),sm:go("md"),md:go("lg"),lg:go("2xl"),xl:go("4xl"),full:go("full")},O6=T6({baseStyle:L6,sizes:F6,defaultProps:{size:"xs"}}),{definePartsStyle:j6,defineMultiStyleConfig:D6}=ge(E3.keys),B6={borderRadius:"md",py:"1",transitionProperty:"common",transitionDuration:"normal"},I6={borderRadius:"md",py:"1",transitionProperty:"common",transitionDuration:"normal",width:"full",_focusVisible:{boxShadow:"outline"},_placeholder:{opacity:.6}},N6={borderRadius:"md",py:"1",transitionProperty:"common",transitionDuration:"normal",width:"full",_focusVisible:{boxShadow:"outline"},_placeholder:{opacity:.6}},V6=j6({preview:B6,input:I6,textarea:N6}),U6=D6({baseStyle:V6}),{definePartsStyle:H6,defineMultiStyleConfig:W6}=ge($3.keys),Xo=D("form-control-color"),G6={marginStart:"1",[Xo.variable]:"colors.red.500",_dark:{[Xo.variable]:"colors.red.300"},color:Xo.reference},K6={mt:"2",[Xo.variable]:"colors.gray.600",_dark:{[Xo.variable]:"colors.whiteAlpha.600"},color:Xo.reference,lineHeight:"normal",fontSize:"sm"},q6=H6({container:{width:"100%",position:"relative"},requiredIndicator:G6,helperText:K6}),X6=W6({baseStyle:q6}),{definePartsStyle:Y6,defineMultiStyleConfig:Q6}=ge(A3.keys),Yo=D("form-error-color"),Z6={[Yo.variable]:"colors.red.500",_dark:{[Yo.variable]:"colors.red.300"},color:Yo.reference,mt:"2",fontSize:"sm",lineHeight:"normal"},J6={marginEnd:"0.5em",[Yo.variable]:"colors.red.500",_dark:{[Yo.variable]:"colors.red.300"},color:Yo.reference},e$=Y6({text:Z6,icon:J6}),t$=Q6({baseStyle:e$}),r$={fontSize:"md",marginEnd:"3",mb:"2",fontWeight:"medium",transitionProperty:"common",transitionDuration:"normal",opacity:1,_disabled:{opacity:.4}},n$={baseStyle:r$},o$={fontFamily:"heading",fontWeight:"bold"},i$={"4xl":{fontSize:["6xl",null,"7xl"],lineHeight:1},"3xl":{fontSize:["5xl",null,"6xl"],lineHeight:1},"2xl":{fontSize:["4xl",null,"5xl"],lineHeight:[1.2,null,1]},xl:{fontSize:["3xl",null,"4xl"],lineHeight:[1.33,null,1.2]},lg:{fontSize:["2xl",null,"3xl"],lineHeight:[1.33,null,1.2]},md:{fontSize:"xl",lineHeight:1.2},sm:{fontSize:"md",lineHeight:1.2},xs:{fontSize:"sm",lineHeight:1.2}},s$={baseStyle:o$,sizes:i$,defaultProps:{size:"xl"}},{defineMultiStyleConfig:a$,definePartsStyle:l$}=ge(_3.keys),ld=D("breadcrumb-link-decor"),u$={transitionProperty:"common",transitionDuration:"fast",transitionTimingFunction:"ease-out",outline:"none",color:"inherit",textDecoration:ld.reference,[ld.variable]:"none","&:not([aria-current=page])":{cursor:"pointer",_hover:{[ld.variable]:"underline"},_focusVisible:{boxShadow:"outline"}}},c$=l$({link:u$}),d$=a$({baseStyle:c$}),f$={lineHeight:"1.2",borderRadius:"md",fontWeight:"semibold",transitionProperty:"common",transitionDuration:"normal",_focusVisible:{boxShadow:"outline"},_disabled:{opacity:.4,cursor:"not-allowed",boxShadow:"none"},_hover:{_disabled:{bg:"initial"}}},tS=e=>{const{colorScheme:t,theme:r}=e;if(t==="gray")return{color:B("gray.800","whiteAlpha.900")(e),_hover:{bg:B("gray.100","whiteAlpha.200")(e)},_active:{bg:B("gray.200","whiteAlpha.300")(e)}};const n=si(`${t}.200`,.12)(r),o=si(`${t}.200`,.24)(r);return{color:B(`${t}.600`,`${t}.200`)(e),bg:"transparent",_hover:{bg:B(`${t}.50`,n)(e)},_active:{bg:B(`${t}.100`,o)(e)}}},h$=e=>{const{colorScheme:t}=e,r=B("gray.200","whiteAlpha.300")(e);return{border:"1px solid",borderColor:t==="gray"?r:"currentColor",".chakra-button__group[data-attached][data-orientation=horizontal] > &:not(:last-of-type)":{marginEnd:"-1px"},".chakra-button__group[data-attached][data-orientation=vertical] > &:not(:last-of-type)":{marginBottom:"-1px"},...lt(tS,e)}},p$={yellow:{bg:"yellow.400",color:"black",hoverBg:"yellow.500",activeBg:"yellow.600"},cyan:{bg:"cyan.400",color:"black",hoverBg:"cyan.500",activeBg:"cyan.600"}},m$=e=>{var t;const{colorScheme:r}=e;if(r==="gray"){const l=B("gray.100","whiteAlpha.200")(e);return{bg:l,color:B("gray.800","whiteAlpha.900")(e),_hover:{bg:B("gray.200","whiteAlpha.300")(e),_disabled:{bg:l}},_active:{bg:B("gray.300","whiteAlpha.400")(e)}}}const{bg:n=`${r}.500`,color:o="white",hoverBg:i=`${r}.600`,activeBg:s=`${r}.700`}=(t=p$[r])!=null?t:{},a=B(n,`${r}.200`)(e);return{bg:a,color:B(o,"gray.800")(e),_hover:{bg:B(i,`${r}.300`)(e),_disabled:{bg:a}},_active:{bg:B(s,`${r}.400`)(e)}}},g$=e=>{const{colorScheme:t}=e;return{padding:0,height:"auto",lineHeight:"normal",verticalAlign:"baseline",color:B(`${t}.500`,`${t}.200`)(e),_hover:{textDecoration:"underline",_disabled:{textDecoration:"none"}},_active:{color:B(`${t}.700`,`${t}.500`)(e)}}},y$={bg:"none",color:"inherit",display:"inline",lineHeight:"inherit",m:"0",p:"0"},v$={ghost:tS,outline:h$,solid:m$,link:g$,unstyled:y$},b$={lg:{h:"12",minW:"12",fontSize:"lg",px:"6"},md:{h:"10",minW:"10",fontSize:"md",px:"4"},sm:{h:"8",minW:"8",fontSize:"sm",px:"3"},xs:{h:"6",minW:"6",fontSize:"xs",px:"2"}},S$={baseStyle:f$,variants:v$,sizes:b$,defaultProps:{variant:"solid",size:"md",colorScheme:"gray"}},{definePartsStyle:Zn,defineMultiStyleConfig:x$}=ge(G3.keys),eu=D("card-bg"),Or=D("card-padding"),rS=D("card-shadow"),pl=D("card-radius"),nS=D("card-border-width","0"),oS=D("card-border-color"),w$=Zn({container:{[eu.variable]:"colors.chakra-body-bg",backgroundColor:eu.reference,boxShadow:rS.reference,borderRadius:pl.reference,color:"chakra-body-text",borderWidth:nS.reference,borderColor:oS.reference},body:{padding:Or.reference,flex:"1 1 0%"},header:{padding:Or.reference},footer:{padding:Or.reference}}),k$={sm:Zn({container:{[pl.variable]:"radii.base",[Or.variable]:"space.3"}}),md:Zn({container:{[pl.variable]:"radii.md",[Or.variable]:"space.5"}}),lg:Zn({container:{[pl.variable]:"radii.xl",[Or.variable]:"space.7"}})},C$={elevated:Zn({container:{[rS.variable]:"shadows.base",_dark:{[eu.variable]:"colors.gray.700"}}}),outline:Zn({container:{[nS.variable]:"1px",[oS.variable]:"colors.chakra-border-color"}}),filled:Zn({container:{[eu.variable]:"colors.chakra-subtle-bg"}}),unstyled:{body:{[Or.variable]:0},header:{[Or.variable]:0},footer:{[Or.variable]:0}}},_$=x$({baseStyle:w$,variants:C$,sizes:k$,defaultProps:{variant:"elevated",size:"md"}}),ss=Ue("close-button-size"),zi=Ue("close-button-bg"),T$={w:[ss.reference],h:[ss.reference],borderRadius:"md",transitionProperty:"common",transitionDuration:"normal",_disabled:{opacity:.4,cursor:"not-allowed",boxShadow:"none"},_hover:{[zi.variable]:"colors.blackAlpha.100",_dark:{[zi.variable]:"colors.whiteAlpha.100"}},_active:{[zi.variable]:"colors.blackAlpha.200",_dark:{[zi.variable]:"colors.whiteAlpha.200"}},_focusVisible:{boxShadow:"outline"},bg:zi.reference},P$={lg:{[ss.variable]:"sizes.10",fontSize:"md"},md:{[ss.variable]:"sizes.8",fontSize:"xs"},sm:{[ss.variable]:"sizes.6",fontSize:"2xs"}},E$={baseStyle:T$,sizes:P$,defaultProps:{size:"md"}},{variants:$$,defaultProps:A$}=os,R$={fontFamily:"mono",fontSize:"sm",px:"0.2em",borderRadius:"sm",bg:Me.bg.reference,color:Me.color.reference,boxShadow:Me.shadow.reference},z$={baseStyle:R$,variants:$$,defaultProps:A$},M$={w:"100%",mx:"auto",maxW:"prose",px:"4"},L$={baseStyle:M$},F$={opacity:.6,borderColor:"inherit"},O$={borderStyle:"solid"},j$={borderStyle:"dashed"},D$={solid:O$,dashed:j$},B$={baseStyle:F$,variants:D$,defaultProps:{variant:"solid"}},{definePartsStyle:I$,defineMultiStyleConfig:N$}=ge(w3.keys),V$={borderTopWidth:"1px",borderColor:"inherit",_last:{borderBottomWidth:"1px"}},U$={transitionProperty:"common",transitionDuration:"normal",fontSize:"md",_focusVisible:{boxShadow:"outline"},_hover:{bg:"blackAlpha.50"},_disabled:{opacity:.4,cursor:"not-allowed"},px:"4",py:"2"},H$={pt:"2",px:"4",pb:"5"},W$={fontSize:"1.25em"},G$=I$({container:V$,button:U$,panel:H$,icon:W$}),K$=N$({baseStyle:G$}),{definePartsStyle:Ys,defineMultiStyleConfig:q$}=ge(k3.keys),$t=D("alert-fg"),Hr=D("alert-bg"),X$=Ys({container:{bg:Hr.reference,px:"4",py:"3"},title:{fontWeight:"bold",lineHeight:"6",marginEnd:"2"},description:{lineHeight:"6"},icon:{color:$t.reference,flexShrink:0,marginEnd:"3",w:"5",h:"6"},spinner:{color:$t.reference,flexShrink:0,marginEnd:"3",w:"5",h:"5"}});function yp(e){const{theme:t,colorScheme:r}=e,n=si(`${r}.200`,.16)(t);return{light:`colors.${r}.100`,dark:n}}var Y$=Ys(e=>{const{colorScheme:t}=e,r=yp(e);return{container:{[$t.variable]:`colors.${t}.500`,[Hr.variable]:r.light,_dark:{[$t.variable]:`colors.${t}.200`,[Hr.variable]:r.dark}}}}),Q$=Ys(e=>{const{colorScheme:t}=e,r=yp(e);return{container:{[$t.variable]:`colors.${t}.500`,[Hr.variable]:r.light,_dark:{[$t.variable]:`colors.${t}.200`,[Hr.variable]:r.dark},paddingStart:"3",borderStartWidth:"4px",borderStartColor:$t.reference}}}),Z$=Ys(e=>{const{colorScheme:t}=e,r=yp(e);return{container:{[$t.variable]:`colors.${t}.500`,[Hr.variable]:r.light,_dark:{[$t.variable]:`colors.${t}.200`,[Hr.variable]:r.dark},pt:"2",borderTopWidth:"4px",borderTopColor:$t.reference}}}),J$=Ys(e=>{const{colorScheme:t}=e;return{container:{[$t.variable]:"colors.white",[Hr.variable]:`colors.${t}.500`,_dark:{[$t.variable]:"colors.gray.900",[Hr.variable]:`colors.${t}.200`},color:$t.reference}}}),eA={subtle:Y$,"left-accent":Q$,"top-accent":Z$,solid:J$},tA=q$({baseStyle:X$,variants:eA,defaultProps:{variant:"subtle",colorScheme:"blue"}}),{definePartsStyle:iS,defineMultiStyleConfig:rA}=ge(C3.keys),Qo=D("avatar-border-color"),as=D("avatar-bg"),js=D("avatar-font-size"),ai=D("avatar-size"),nA={borderRadius:"full",border:"0.2em solid",borderColor:Qo.reference,[Qo.variable]:"white",_dark:{[Qo.variable]:"colors.gray.800"}},oA={bg:as.reference,fontSize:js.reference,width:ai.reference,height:ai.reference,lineHeight:"1",[as.variable]:"colors.gray.200",_dark:{[as.variable]:"colors.whiteAlpha.400"}},iA=e=>{const{name:t,theme:r}=e,n=t?fT({string:t}):"colors.gray.400",o=cT(n)(r);let i="white";return o||(i="gray.800"),{bg:as.reference,fontSize:js.reference,color:i,borderColor:Qo.reference,verticalAlign:"top",width:ai.reference,height:ai.reference,"&:not([data-loaded])":{[as.variable]:n},[Qo.variable]:"colors.white",_dark:{[Qo.variable]:"colors.gray.800"}}},sA={fontSize:js.reference,lineHeight:"1"},aA=iS(e=>({badge:lt(nA,e),excessLabel:lt(oA,e),container:lt(iA,e),label:sA}));function Jr(e){const t=e!=="100%"?Xb[e]:void 0;return iS({container:{[ai.variable]:t??e,[js.variable]:`calc(${t??e} / 2.5)`},excessLabel:{[ai.variable]:t??e,[js.variable]:`calc(${t??e} / 2.5)`}})}var lA={"2xs":Jr(4),xs:Jr(6),sm:Jr(8),md:Jr(12),lg:Jr(16),xl:Jr(24),"2xl":Jr(32),full:Jr("100%")},uA=rA({baseStyle:aA,sizes:lA,defaultProps:{size:"md"}}),cA={Accordion:K$,Alert:tA,Avatar:uA,Badge:os,Breadcrumb:d$,Button:S$,Checkbox:Jl,CloseButton:E$,Code:z$,Container:L$,Divider:B$,Drawer:O6,Editable:U6,Form:X6,FormError:t$,FormLabel:n$,Heading:s$,Input:ne,Kbd:TE,Link:EE,List:ME,Menu:HE,Modal:t6,NumberInput:c6,PinInput:p6,Popover:_6,Progress:zP,Radio:WP,Select:ZP,Skeleton:eE,SkipLink:rE,Slider:hE,Spinner:gE,Stat:CE,Switch:ET,Table:FT,Tabs:YT,Tag:uP,Textarea:xP,Tooltip:CP,Card:_$,Stepper:x3},dA={colors:{"chakra-body-text":{_light:"gray.800",_dark:"whiteAlpha.900"},"chakra-body-bg":{_light:"white",_dark:"gray.800"},"chakra-border-color":{_light:"gray.200",_dark:"whiteAlpha.300"},"chakra-inverse-text":{_light:"white",_dark:"gray.800"},"chakra-subtle-bg":{_light:"gray.100",_dark:"gray.700"},"chakra-subtle-text":{_light:"gray.600",_dark:"gray.400"},"chakra-placeholder-color":{_light:"gray.500",_dark:"whiteAlpha.400"}}},fA={global:{body:{fontFamily:"body",color:"chakra-body-text",bg:"chakra-body-bg",transitionProperty:"background-color",transitionDuration:"normal",lineHeight:"base"},"*::placeholder":{color:"chakra-placeholder-color"},"*, *::before, &::after":{borderColor:"chakra-border-color"}}},hA="ltr",pA={useSystemColorMode:!1,initialColorMode:"light",cssVarPrefix:"chakra"},sS={semanticTokens:dA,direction:hA,...v3,components:cA,styles:fA,config:pA};function Wi(e){return typeof e=="function"}function mA(...e){return t=>e.reduce((r,n)=>n(r),t)}var gA=e=>function(...r){let n=[...r],o=r[r.length-1];return q_(o)&&n.length>1?n=n.slice(0,n.length-1):o=e,mA(...n.map(i=>s=>Wi(i)?i(s):vA(s,i)))(o)},yA=gA(sS);function vA(...e){return Ht({},...e,aS)}function aS(e,t,r,n){if((Wi(e)||Wi(t))&&Object.prototype.hasOwnProperty.call(n,r))return(...o)=>{const i=Wi(e)?e(...o):e,s=Wi(t)?t(...o):t;return Ht({},i,s,aS)}}function bA(e,t){const r={};return Object.keys(e).forEach(n=>{t.includes(n)||(r[n]=e[n])}),r}function SA(e,t,r,n){const o=typeof t=="string"?t.split("."):[t];for(n=0;n{const t=new WeakMap;return(n,o,i,s)=>{if(typeof n>"u")return e(n,o,i);t.has(n)||t.set(n,new Map);const a=t.get(n);if(a.has(o))return a.get(o);const l=e(n,o,i,s);return a.set(o,l),l}},lS=xA(SA);function uS(e,t){const r={};return Object.keys(e).forEach(n=>{const o=e[n];t(o,n,e)&&(r[n]=o)}),r}var cS=e=>uS(e,t=>t!=null);function wA(e){return typeof e=="function"}function dS(e,...t){return wA(e)?e(...t):e}var kA=typeof Element<"u",CA=typeof Map=="function",_A=typeof Set=="function",TA=typeof ArrayBuffer=="function"&&!!ArrayBuffer.isView;function ml(e,t){if(e===t)return!0;if(e&&t&&typeof e=="object"&&typeof t=="object"){if(e.constructor!==t.constructor)return!1;var r,n,o;if(Array.isArray(e)){if(r=e.length,r!=t.length)return!1;for(n=r;n--!==0;)if(!ml(e[n],t[n]))return!1;return!0}var i;if(CA&&e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(i=e.entries();!(n=i.next()).done;)if(!t.has(n.value[0]))return!1;for(i=e.entries();!(n=i.next()).done;)if(!ml(n.value[1],t.get(n.value[0])))return!1;return!0}if(_A&&e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(i=e.entries();!(n=i.next()).done;)if(!t.has(n.value[0]))return!1;return!0}if(TA&&ArrayBuffer.isView(e)&&ArrayBuffer.isView(t)){if(r=e.length,r!=t.length)return!1;for(n=r;n--!==0;)if(e[n]!==t[n])return!1;return!0}if(e.constructor===RegExp)return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf&&typeof e.valueOf=="function"&&typeof t.valueOf=="function")return e.valueOf()===t.valueOf();if(e.toString!==Object.prototype.toString&&typeof e.toString=="function"&&typeof t.toString=="function")return e.toString()===t.toString();if(o=Object.keys(e),r=o.length,r!==Object.keys(t).length)return!1;for(n=r;n--!==0;)if(!Object.prototype.hasOwnProperty.call(t,o[n]))return!1;if(kA&&e instanceof Element)return!1;for(n=r;n--!==0;)if(!((o[n]==="_owner"||o[n]==="__v"||o[n]==="__o")&&e.$$typeof)&&!ml(e[o[n]],t[o[n]]))return!1;return!0}return e!==e&&t!==t}var PA=function(t,r){try{return ml(t,r)}catch(n){if((n.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw n}};const EA=oh(PA);function fS(e,t={}){var r;const{styleConfig:n,...o}=t,{theme:i,colorMode:s}=P4(),a=e?lS(i,`components.${e}`):void 0,l=n||a,u=Ht({theme:i,colorMode:s},(r=l==null?void 0:l.defaultProps)!=null?r:{},cS(bA(o,["children"]))),c=S.useRef({});if(l){const f=G_(l)(u);EA(c.current,f)||(c.current=f)}return c.current}function An(e,t={}){return fS(e,t)}function Qs(e,t={}){return fS(e,t)}var $A=new Set([...L_,"textStyle","layerStyle","apply","noOfLines","focusBorderColor","errorBorderColor","as","__css","css","sx"]),AA=new Set(["htmlWidth","htmlHeight","htmlSize","htmlTranslate"]);function RA(e){return AA.has(e)||!$A.has(e)}function zA(e,...t){if(e==null)throw new TypeError("Cannot convert undefined or null to object");const r={...e};for(const n of t)if(n!=null)for(const o in n)Object.prototype.hasOwnProperty.call(n,o)&&(o in r&&delete r[o],r[o]=n[o]);return r}function hS(e){const t=Object.assign({},e);for(let r in t)t[r]===void 0&&delete t[r];return t}var MA=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,LA=wb(function(e){return MA.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),FA=LA,OA=function(t){return t!=="theme"},Tg=function(t){return typeof t=="string"&&t.charCodeAt(0)>96?FA:OA},Pg=function(t,r,n){var o;if(r){var i=r.shouldForwardProp;o=t.__emotion_forwardProp&&i?function(s){return t.__emotion_forwardProp(s)&&i(s)}:i}return typeof o!="function"&&n&&(o=t.__emotion_forwardProp),o},jA=function(t){var r=t.cache,n=t.serialized,o=t.isStringTag;return Eb(r,n,o),o4(function(){return $b(r,n,o)}),null},DA=function e(t,r){var n=t.__emotion_real===t,o=n&&t.__emotion_base||t,i,s;r!==void 0&&(i=r.label,s=r.target);var a=Pg(t,r,n),l=a||Tg(o),u=!l("as");return function(){var c=arguments,d=n&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(i!==void 0&&d.push("label:"+i+";"),c[0]==null||c[0].raw===void 0)d.push.apply(d,c);else{d.push(c[0][0]);for(var f=c.length,p=1;pt=>{const{theme:r,css:n,__css:o,sx:i,...s}=t,a=uS(s,(d,f)=>O_(f)),l=dS(e,t),u=zA({},o,l,cS(a),i),c=Gb(u)(t.theme);return n?[c,n]:c};function ud(e,t){const{baseStyle:r,...n}=t??{};n.shouldForwardProp||(n.shouldForwardProp=RA);const o=NA({baseStyle:r}),i=IA(e,n)(o);return Tt.forwardRef(function(l,u){const{colorMode:c,forced:d}=Vu();return Tt.createElement(i,{ref:u,"data-theme":d?c:void 0,...l})})}function VA(){const e=new Map;return new Proxy(ud,{apply(t,r,n){return ud(...n)},get(t,r){return e.has(r)||e.set(r,ud(r)),e.get(r)}})}var H=VA();function se(e){return S.forwardRef(e)}function pS(e={}){const{strict:t=!0,errorMessage:r="useContext: `context` is undefined. Seems you forgot to wrap component within the Provider",name:n}=e,o=S.createContext(void 0);o.displayName=n;function i(){var s;const a=S.useContext(o);if(!a&&t){const l=new Error(r);throw l.name="ContextError",(s=Error.captureStackTrace)==null||s.call(Error,l,i),l}return a}return[o.Provider,i,o]}function UA(e){const{cssVarsRoot:t,theme:r,children:n}=e,o=S.useMemo(()=>M_(r),[r]);return _.jsxs(a4,{theme:o,children:[_.jsx(HA,{root:t}),n]})}function HA({root:e=":host, :root"}){const t=[e,"[data-theme]"].join(",");return _.jsx(Iu,{styles:r=>({[t]:r.__cssVars})})}pS({name:"StylesContext",errorMessage:"useStyles: `styles` is undefined. Seems you forgot to wrap the components in `` "});function WA(e){return pS({name:`${e}StylesContext`,errorMessage:`useStyles: "styles" is undefined. Seems you forgot to wrap the components in "<${e} />" `})}function GA(){const{colorMode:e}=Vu();return _.jsx(Iu,{styles:t=>{const r=lS(t,"styles.global"),n=dS(r,{theme:t,colorMode:e});return n?Gb(n)(t):void 0}})}var vp=S.createContext({getDocument(){return document},getWindow(){return window}});vp.displayName="EnvironmentContext";function KA({defer:e}={}){const[,t]=S.useReducer(r=>r+1,0);return Fr(()=>{e&&t()},[e]),S.useContext(vp)}function mS(e){const{children:t,environment:r,disabled:n}=e,o=S.useRef(null),i=S.useMemo(()=>r||{getDocument:()=>{var a,l;return(l=(a=o.current)==null?void 0:a.ownerDocument)!=null?l:document},getWindow:()=>{var a,l;return(l=(a=o.current)==null?void 0:a.ownerDocument.defaultView)!=null?l:window}},[r]),s=!n||!r;return _.jsxs(vp.Provider,{value:i,children:[t,s&&_.jsx("span",{id:"__chakra_env",hidden:!0,ref:o})]})}mS.displayName="EnvironmentProvider";var qA=e=>{const{children:t,colorModeManager:r,portalZIndex:n,resetScope:o,resetCSS:i=!0,theme:s={},environment:a,cssVarsRoot:l,disableEnvironment:u,disableGlobalStyle:c}=e,d=_.jsx(mS,{environment:a,disabled:u,children:t});return _.jsx(UA,{theme:s,cssVarsRoot:l,children:_.jsxs(Db,{colorModeManager:r,options:s.config,children:[i?_.jsx(c4,{scope:o}):_.jsx(u4,{}),!c&&_.jsx(GA,{}),n?_.jsx(Ob,{zIndex:n,children:d}):d]})})},XA=(e,t)=>e.find(r=>r.id===t);function $g(e,t){const r=gS(e,t),n=r?e[r].findIndex(o=>o.id===t):-1;return{position:r,index:n}}function gS(e,t){for(const[r,n]of Object.entries(e))if(XA(n,t))return r}function YA(e){const t=e.includes("right"),r=e.includes("left");let n="center";return t&&(n="flex-end"),r&&(n="flex-start"),{display:"flex",flexDirection:"column",alignItems:n}}function QA(e){const r=e==="top"||e==="bottom"?"0 auto":void 0,n=e.includes("top")?"env(safe-area-inset-top, 0px)":void 0,o=e.includes("bottom")?"env(safe-area-inset-bottom, 0px)":void 0,i=e.includes("left")?void 0:"env(safe-area-inset-right, 0px)",s=e.includes("right")?void 0:"env(safe-area-inset-left, 0px)";return{position:"fixed",zIndex:"var(--toast-z-index, 5500)",pointerEvents:"none",display:"flex",flexDirection:"column",margin:r,top:n,bottom:o,right:i,left:s}}function gl(e,t=[]){const r=S.useRef(e);return S.useEffect(()=>{r.current=e}),S.useCallback((...n)=>{var o;return(o=r.current)==null?void 0:o.call(r,...n)},t)}function ZA(e,t){const r=gl(e);S.useEffect(()=>{if(t==null)return;let n=null;return n=window.setTimeout(()=>{r()},t),()=>{n&&window.clearTimeout(n)}},[t,r])}function Mf(e,t){const r=S.useRef(!1),n=S.useRef(!1);S.useEffect(()=>{if(r.current&&n.current)return e();n.current=!0},t),S.useEffect(()=>(r.current=!0,()=>{r.current=!1}),[])}const yS=S.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"}),Ku=S.createContext({}),Zs=S.createContext(null),qu=typeof document<"u",bp=qu?S.useLayoutEffect:S.useEffect,vS=S.createContext({strict:!1});function JA(e,t,r,n){const{visualElement:o}=S.useContext(Ku),i=S.useContext(vS),s=S.useContext(Zs),a=S.useContext(yS).reducedMotion,l=S.useRef();n=n||i.renderer,!l.current&&n&&(l.current=n(e,{visualState:t,parent:o,props:r,presenceContext:s,blockInitialAnimation:s?s.initial===!1:!1,reducedMotionConfig:a}));const u=l.current;S.useInsertionEffect(()=>{u&&u.update(r,s)});const c=S.useRef(!!window.HandoffAppearAnimations);return bp(()=>{u&&(u.render(),c.current&&u.animationState&&u.animationState.animateChanges())}),S.useEffect(()=>{u&&(u.updateFeatures(),!c.current&&u.animationState&&u.animationState.animateChanges(),window.HandoffAppearAnimations=void 0,c.current=!1)}),u}function jo(e){return typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function eR(e,t,r){return S.useCallback(n=>{n&&e.mount&&e.mount(n),t&&(n?t.mount(n):t.unmount()),r&&(typeof r=="function"?r(n):jo(r)&&(r.current=n))},[t])}function Ds(e){return typeof e=="string"||Array.isArray(e)}function Xu(e){return typeof e=="object"&&typeof e.start=="function"}const Sp=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],xp=["initial",...Sp];function Yu(e){return Xu(e.animate)||xp.some(t=>Ds(e[t]))}function bS(e){return!!(Yu(e)||e.variants)}function tR(e,t){if(Yu(e)){const{initial:r,animate:n}=e;return{initial:r===!1||Ds(r)?r:void 0,animate:Ds(n)?n:void 0}}return e.inherit!==!1?t:{}}function rR(e){const{initial:t,animate:r}=tR(e,S.useContext(Ku));return S.useMemo(()=>({initial:t,animate:r}),[Ag(t),Ag(r)])}function Ag(e){return Array.isArray(e)?e.join(" "):e}const Rg={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},Bs={};for(const e in Rg)Bs[e]={isEnabled:t=>Rg[e].some(r=>!!t[r])};function nR(e){for(const t in e)Bs[t]={...Bs[t],...e[t]}}const wp=S.createContext({}),SS=S.createContext({}),oR=Symbol.for("motionComponentSymbol");function iR({preloadedFeatures:e,createVisualElement:t,useRender:r,useVisualState:n,Component:o}){e&&nR(e);function i(a,l){let u;const c={...S.useContext(yS),...a,layoutId:sR(a)},{isStatic:d}=c,f=rR(a),p=n(a,d);if(!d&&qu){f.visualElement=JA(o,p,c,t);const m=S.useContext(SS),v=S.useContext(vS).strict;f.visualElement&&(u=f.visualElement.loadFeatures(c,v,e,m))}return S.createElement(Ku.Provider,{value:f},u&&f.visualElement?S.createElement(u,{visualElement:f.visualElement,...c}):null,r(o,a,eR(p,f.visualElement,l),p,d,f.visualElement))}const s=S.forwardRef(i);return s[oR]=o,s}function sR({layoutId:e}){const t=S.useContext(wp).id;return t&&e!==void 0?t+"-"+e:e}function aR(e){function t(n,o={}){return iR(e(n,o))}if(typeof Proxy>"u")return t;const r=new Map;return new Proxy(t,{get:(n,o)=>(r.has(o)||r.set(o,t(o)),r.get(o))})}const lR=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function kp(e){return typeof e!="string"||e.includes("-")?!1:!!(lR.indexOf(e)>-1||/[A-Z]/.test(e))}const ru={};function uR(e){Object.assign(ru,e)}const Js=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],ao=new Set(Js);function xS(e,{layout:t,layoutId:r}){return ao.has(e)||e.startsWith("origin")||(t||r!==void 0)&&(!!ru[e]||e==="opacity")}const St=e=>!!(e&&e.getVelocity),cR={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},dR=Js.length;function fR(e,{enableHardwareAcceleration:t=!0,allowTransformNone:r=!0},n,o){let i="";for(let s=0;st=>typeof t=="string"&&t.startsWith(e),kS=wS("--"),Lf=wS("var(--"),hR=/var\s*\(\s*--[\w-]+(\s*,\s*(?:(?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)+)?\s*\)/g,pR=(e,t)=>t&&typeof e=="number"?t.transform(e):e,_n=(e,t,r)=>Math.min(Math.max(r,e),t),lo={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},ls={...lo,transform:e=>_n(0,1,e)},Na={...lo,default:1},us=e=>Math.round(e*1e5)/1e5,Qu=/(-)?([\d]*\.?[\d])+/g,CS=/(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))/gi,mR=/^(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))$/i;function ea(e){return typeof e=="string"}const ta=e=>({test:t=>ea(t)&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),tn=ta("deg"),xr=ta("%"),V=ta("px"),gR=ta("vh"),yR=ta("vw"),zg={...xr,parse:e=>xr.parse(e)/100,transform:e=>xr.transform(e*100)},Mg={...lo,transform:Math.round},_S={borderWidth:V,borderTopWidth:V,borderRightWidth:V,borderBottomWidth:V,borderLeftWidth:V,borderRadius:V,radius:V,borderTopLeftRadius:V,borderTopRightRadius:V,borderBottomRightRadius:V,borderBottomLeftRadius:V,width:V,maxWidth:V,height:V,maxHeight:V,size:V,top:V,right:V,bottom:V,left:V,padding:V,paddingTop:V,paddingRight:V,paddingBottom:V,paddingLeft:V,margin:V,marginTop:V,marginRight:V,marginBottom:V,marginLeft:V,rotate:tn,rotateX:tn,rotateY:tn,rotateZ:tn,scale:Na,scaleX:Na,scaleY:Na,scaleZ:Na,skew:tn,skewX:tn,skewY:tn,distance:V,translateX:V,translateY:V,translateZ:V,x:V,y:V,z:V,perspective:V,transformPerspective:V,opacity:ls,originX:zg,originY:zg,originZ:V,zIndex:Mg,fillOpacity:ls,strokeOpacity:ls,numOctaves:Mg};function Cp(e,t,r,n){const{style:o,vars:i,transform:s,transformOrigin:a}=e;let l=!1,u=!1,c=!0;for(const d in t){const f=t[d];if(kS(d)){i[d]=f;continue}const p=_S[d],m=pR(f,p);if(ao.has(d)){if(l=!0,s[d]=m,!c)continue;f!==(p.default||0)&&(c=!1)}else d.startsWith("origin")?(u=!0,a[d]=m):o[d]=m}if(t.transform||(l||n?o.transform=fR(e.transform,r,c,n):o.transform&&(o.transform="none")),u){const{originX:d="50%",originY:f="50%",originZ:p=0}=a;o.transformOrigin=`${d} ${f} ${p}`}}const _p=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function TS(e,t,r){for(const n in t)!St(t[n])&&!xS(n,r)&&(e[n]=t[n])}function vR({transformTemplate:e},t,r){return S.useMemo(()=>{const n=_p();return Cp(n,t,{enableHardwareAcceleration:!r},e),Object.assign({},n.vars,n.style)},[t])}function bR(e,t,r){const n=e.style||{},o={};return TS(o,n,e),Object.assign(o,vR(e,t,r)),e.transformValues?e.transformValues(o):o}function SR(e,t,r){const n={},o=bR(e,t,r);return e.drag&&e.dragListener!==!1&&(n.draggable=!1,o.userSelect=o.WebkitUserSelect=o.WebkitTouchCallout="none",o.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(n.tabIndex=0),n.style=o,n}const xR=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","transformValues","custom","inherit","onLayoutAnimationStart","onLayoutAnimationComplete","onLayoutMeasure","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","ignoreStrict","viewport"]);function nu(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||xR.has(e)}let PS=e=>!nu(e);function wR(e){e&&(PS=t=>t.startsWith("on")?!nu(t):e(t))}try{wR(require("@emotion/is-prop-valid").default)}catch{}function kR(e,t,r){const n={};for(const o in e)o==="values"&&typeof e.values=="object"||(PS(o)||r===!0&&nu(o)||!t&&!nu(o)||e.draggable&&o.startsWith("onDrag"))&&(n[o]=e[o]);return n}function Lg(e,t,r){return typeof e=="string"?e:V.transform(t+r*e)}function CR(e,t,r){const n=Lg(t,e.x,e.width),o=Lg(r,e.y,e.height);return`${n} ${o}`}const _R={offset:"stroke-dashoffset",array:"stroke-dasharray"},TR={offset:"strokeDashoffset",array:"strokeDasharray"};function PR(e,t,r=1,n=0,o=!0){e.pathLength=1;const i=o?_R:TR;e[i.offset]=V.transform(-n);const s=V.transform(t),a=V.transform(r);e[i.array]=`${s} ${a}`}function Tp(e,{attrX:t,attrY:r,attrScale:n,originX:o,originY:i,pathLength:s,pathSpacing:a=1,pathOffset:l=0,...u},c,d,f){if(Cp(e,u,c,f),d){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:p,style:m,dimensions:v}=e;p.transform&&(v&&(m.transform=p.transform),delete p.transform),v&&(o!==void 0||i!==void 0||m.transform)&&(m.transformOrigin=CR(v,o!==void 0?o:.5,i!==void 0?i:.5)),t!==void 0&&(p.x=t),r!==void 0&&(p.y=r),n!==void 0&&(p.scale=n),s!==void 0&&PR(p,s,a,l,!1)}const ES=()=>({..._p(),attrs:{}}),Pp=e=>typeof e=="string"&&e.toLowerCase()==="svg";function ER(e,t,r,n){const o=S.useMemo(()=>{const i=ES();return Tp(i,t,{enableHardwareAcceleration:!1},Pp(n),e.transformTemplate),{...i.attrs,style:{...i.style}}},[t]);if(e.style){const i={};TS(i,e.style,e),o.style={...i,...o.style}}return o}function $R(e=!1){return(r,n,o,{latestValues:i},s)=>{const l=(kp(r)?ER:SR)(n,i,s,r),c={...kR(n,typeof r=="string",e),...l,ref:o},{children:d}=n,f=S.useMemo(()=>St(d)?d.get():d,[d]);return S.createElement(r,{...c,children:f})}}const Ep=e=>e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase();function $S(e,{style:t,vars:r},n,o){Object.assign(e.style,t,o&&o.getProjectionStyles(n));for(const i in r)e.style.setProperty(i,r[i])}const AS=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function RS(e,t,r,n){$S(e,t,void 0,n);for(const o in t.attrs)e.setAttribute(AS.has(o)?o:Ep(o),t.attrs[o])}function $p(e,t){const{style:r}=e,n={};for(const o in r)(St(r[o])||t.style&&St(t.style[o])||xS(o,e))&&(n[o]=r[o]);return n}function zS(e,t){const r=$p(e,t);for(const n in e)if(St(e[n])||St(t[n])){const o=Js.indexOf(n)!==-1?"attr"+n.charAt(0).toUpperCase()+n.substring(1):n;r[o]=e[n]}return r}function Ap(e,t,r,n={},o={}){return typeof t=="function"&&(t=t(r!==void 0?r:e.custom,n,o)),typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"&&(t=t(r!==void 0?r:e.custom,n,o)),t}function MS(e){const t=S.useRef(null);return t.current===null&&(t.current=e()),t.current}const ou=e=>Array.isArray(e),AR=e=>!!(e&&typeof e=="object"&&e.mix&&e.toValue),RR=e=>ou(e)?e[e.length-1]||0:e;function yl(e){const t=St(e)?e.get():e;return AR(t)?t.toValue():t}function zR({scrapeMotionValuesFromProps:e,createRenderState:t,onMount:r},n,o,i){const s={latestValues:MR(n,o,i,e),renderState:t()};return r&&(s.mount=a=>r(n,a,s)),s}const LS=e=>(t,r)=>{const n=S.useContext(Ku),o=S.useContext(Zs),i=()=>zR(e,t,n,o);return r?i():MS(i)};function MR(e,t,r,n){const o={},i=n(e,{});for(const f in i)o[f]=yl(i[f]);let{initial:s,animate:a}=e;const l=Yu(e),u=bS(e);t&&u&&!l&&e.inherit!==!1&&(s===void 0&&(s=t.initial),a===void 0&&(a=t.animate));let c=r?r.initial===!1:!1;c=c||s===!1;const d=c?a:s;return d&&typeof d!="boolean"&&!Xu(d)&&(Array.isArray(d)?d:[d]).forEach(p=>{const m=Ap(e,p);if(!m)return;const{transitionEnd:v,transition:C,...g}=m;for(const h in g){let y=g[h];if(Array.isArray(y)){const k=c?y.length-1:0;y=y[k]}y!==null&&(o[h]=y)}for(const h in v)o[h]=v[h]}),o}const Ae=e=>e;class Fg{constructor(){this.order=[],this.scheduled=new Set}add(t){if(!this.scheduled.has(t))return this.scheduled.add(t),this.order.push(t),!0}remove(t){const r=this.order.indexOf(t);r!==-1&&(this.order.splice(r,1),this.scheduled.delete(t))}clear(){this.order.length=0,this.scheduled.clear()}}function LR(e){let t=new Fg,r=new Fg,n=0,o=!1,i=!1;const s=new WeakSet,a={schedule:(l,u=!1,c=!1)=>{const d=c&&o,f=d?t:r;return u&&s.add(l),f.add(l)&&d&&o&&(n=t.order.length),l},cancel:l=>{r.remove(l),s.delete(l)},process:l=>{if(o){i=!0;return}if(o=!0,[t,r]=[r,t],r.clear(),n=t.order.length,n)for(let u=0;u(d[f]=LR(()=>r=!0),d),{}),s=d=>i[d].process(o),a=()=>{const d=performance.now();r=!1,o.delta=n?1e3/60:Math.max(Math.min(d-o.timestamp,FR),1),o.timestamp=d,o.isProcessing=!0,Va.forEach(s),o.isProcessing=!1,r&&t&&(n=!1,e(a))},l=()=>{r=!0,n=!0,o.isProcessing||e(a)};return{schedule:Va.reduce((d,f)=>{const p=i[f];return d[f]=(m,v=!1,C=!1)=>(r||l(),p.schedule(m,v,C)),d},{}),cancel:d=>Va.forEach(f=>i[f].cancel(d)),state:o,steps:i}}const{schedule:me,cancel:Wr,state:He,steps:cd}=OR(typeof requestAnimationFrame<"u"?requestAnimationFrame:Ae,!0),jR={useVisualState:LS({scrapeMotionValuesFromProps:zS,createRenderState:ES,onMount:(e,t,{renderState:r,latestValues:n})=>{me.read(()=>{try{r.dimensions=typeof t.getBBox=="function"?t.getBBox():t.getBoundingClientRect()}catch{r.dimensions={x:0,y:0,width:0,height:0}}}),me.render(()=>{Tp(r,n,{enableHardwareAcceleration:!1},Pp(t.tagName),e.transformTemplate),RS(t,r)})}})},DR={useVisualState:LS({scrapeMotionValuesFromProps:$p,createRenderState:_p})};function BR(e,{forwardMotionProps:t=!1},r,n){return{...kp(e)?jR:DR,preloadedFeatures:r,useRender:$R(t),createVisualElement:n,Component:e}}function Mr(e,t,r,n={passive:!0}){return e.addEventListener(t,r,n),()=>e.removeEventListener(t,r)}const FS=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1;function Zu(e,t="page"){return{point:{x:e[t+"X"],y:e[t+"Y"]}}}const IR=e=>t=>FS(t)&&e(t,Zu(t));function jr(e,t,r,n){return Mr(e,t,IR(r),n)}const NR=(e,t)=>r=>t(e(r)),Sn=(...e)=>e.reduce(NR);function OS(e){let t=null;return()=>{const r=()=>{t=null};return t===null?(t=e,r):!1}}const Og=OS("dragHorizontal"),jg=OS("dragVertical");function jS(e){let t=!1;if(e==="y")t=jg();else if(e==="x")t=Og();else{const r=Og(),n=jg();r&&n?t=()=>{r(),n()}:(r&&r(),n&&n())}return t}function DS(){const e=jS(!0);return e?(e(),!1):!0}class Rn{constructor(t){this.isMounted=!1,this.node=t}update(){}}function Dg(e,t){const r="pointer"+(t?"enter":"leave"),n="onHover"+(t?"Start":"End"),o=(i,s)=>{if(i.type==="touch"||DS())return;const a=e.getProps();e.animationState&&a.whileHover&&e.animationState.setActive("whileHover",t),a[n]&&me.update(()=>a[n](i,s))};return jr(e.current,r,o,{passive:!e.getProps()[n]})}class VR extends Rn{mount(){this.unmount=Sn(Dg(this.node,!0),Dg(this.node,!1))}unmount(){}}class UR extends Rn{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch{t=!0}!t||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=Sn(Mr(this.node.current,"focus",()=>this.onFocus()),Mr(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}const BS=(e,t)=>t?e===t?!0:BS(e,t.parentElement):!1;function dd(e,t){if(!t)return;const r=new PointerEvent("pointer"+e);t(r,Zu(r))}class HR extends Rn{constructor(){super(...arguments),this.removeStartListeners=Ae,this.removeEndListeners=Ae,this.removeAccessibleListeners=Ae,this.startPointerPress=(t,r)=>{if(this.removeEndListeners(),this.isPressing)return;const n=this.node.getProps(),i=jr(window,"pointerup",(a,l)=>{if(!this.checkPressEnd())return;const{onTap:u,onTapCancel:c}=this.node.getProps();me.update(()=>{BS(this.node.current,a.target)?u&&u(a,l):c&&c(a,l)})},{passive:!(n.onTap||n.onPointerUp)}),s=jr(window,"pointercancel",(a,l)=>this.cancelPress(a,l),{passive:!(n.onTapCancel||n.onPointerCancel)});this.removeEndListeners=Sn(i,s),this.startPress(t,r)},this.startAccessiblePress=()=>{const t=i=>{if(i.key!=="Enter"||this.isPressing)return;const s=a=>{a.key!=="Enter"||!this.checkPressEnd()||dd("up",(l,u)=>{const{onTap:c}=this.node.getProps();c&&me.update(()=>c(l,u))})};this.removeEndListeners(),this.removeEndListeners=Mr(this.node.current,"keyup",s),dd("down",(a,l)=>{this.startPress(a,l)})},r=Mr(this.node.current,"keydown",t),n=()=>{this.isPressing&&dd("cancel",(i,s)=>this.cancelPress(i,s))},o=Mr(this.node.current,"blur",n);this.removeAccessibleListeners=Sn(r,o)}}startPress(t,r){this.isPressing=!0;const{onTapStart:n,whileTap:o}=this.node.getProps();o&&this.node.animationState&&this.node.animationState.setActive("whileTap",!0),n&&me.update(()=>n(t,r))}checkPressEnd(){return this.removeEndListeners(),this.isPressing=!1,this.node.getProps().whileTap&&this.node.animationState&&this.node.animationState.setActive("whileTap",!1),!DS()}cancelPress(t,r){if(!this.checkPressEnd())return;const{onTapCancel:n}=this.node.getProps();n&&me.update(()=>n(t,r))}mount(){const t=this.node.getProps(),r=jr(this.node.current,"pointerdown",this.startPointerPress,{passive:!(t.onTapStart||t.onPointerStart)}),n=Mr(this.node.current,"focus",this.startAccessiblePress);this.removeStartListeners=Sn(r,n)}unmount(){this.removeStartListeners(),this.removeEndListeners(),this.removeAccessibleListeners()}}const Ff=new WeakMap,fd=new WeakMap,WR=e=>{const t=Ff.get(e.target);t&&t(e)},GR=e=>{e.forEach(WR)};function KR({root:e,...t}){const r=e||document;fd.has(r)||fd.set(r,{});const n=fd.get(r),o=JSON.stringify(t);return n[o]||(n[o]=new IntersectionObserver(GR,{root:e,...t})),n[o]}function qR(e,t,r){const n=KR(t);return Ff.set(e,r),n.observe(e),()=>{Ff.delete(e),n.unobserve(e)}}const XR={some:0,all:1};class YR extends Rn{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:r,margin:n,amount:o="some",once:i}=t,s={root:r?r.current:void 0,rootMargin:n,threshold:typeof o=="number"?o:XR[o]},a=l=>{const{isIntersecting:u}=l;if(this.isInView===u||(this.isInView=u,i&&!u&&this.hasEnteredView))return;u&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",u);const{onViewportEnter:c,onViewportLeave:d}=this.node.getProps(),f=u?c:d;f&&f(l)};return qR(this.node.current,s,a)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:r}=this.node;["amount","margin","root"].some(QR(t,r))&&this.startObserver()}unmount(){}}function QR({viewport:e={}},{viewport:t={}}={}){return r=>e[r]!==t[r]}const ZR={inView:{Feature:YR},tap:{Feature:HR},focus:{Feature:UR},hover:{Feature:VR}};function IS(e,t){if(!Array.isArray(t))return!1;const r=t.length;if(r!==e.length)return!1;for(let n=0;nt[n]=r.get()),t}function ez(e){const t={};return e.values.forEach((r,n)=>t[n]=r.getVelocity()),t}function Ju(e,t,r){const n=e.getProps();return Ap(n,t,r!==void 0?r:n.custom,JR(e),ez(e))}const tz="framerAppearId",rz="data-"+Ep(tz);let nz=Ae,Rp=Ae;const xn=e=>e*1e3,Dr=e=>e/1e3,oz={current:!1},NS=e=>Array.isArray(e)&&typeof e[0]=="number";function VS(e){return!!(!e||typeof e=="string"&&US[e]||NS(e)||Array.isArray(e)&&e.every(VS))}const Gi=([e,t,r,n])=>`cubic-bezier(${e}, ${t}, ${r}, ${n})`,US={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Gi([0,.65,.55,1]),circOut:Gi([.55,0,1,.45]),backIn:Gi([.31,.01,.66,-.59]),backOut:Gi([.33,1.53,.69,.99])};function HS(e){if(e)return NS(e)?Gi(e):Array.isArray(e)?e.map(HS):US[e]}function iz(e,t,r,{delay:n=0,duration:o,repeat:i=0,repeatType:s="loop",ease:a,times:l}={}){const u={[t]:r};l&&(u.offset=l);const c=HS(a);return Array.isArray(c)&&(u.easing=c),e.animate(u,{delay:n,duration:o,easing:Array.isArray(c)?"linear":c,fill:"both",iterations:i+1,direction:s==="reverse"?"alternate":"normal"})}function sz(e,{repeat:t,repeatType:r="loop"}){const n=t&&r!=="loop"&&t%2===1?0:e.length-1;return e[n]}const WS=(e,t,r)=>(((1-3*r+3*t)*e+(3*r-6*t))*e+3*t)*e,az=1e-7,lz=12;function uz(e,t,r,n,o){let i,s,a=0;do s=t+(r-t)/2,i=WS(s,n,o)-e,i>0?r=s:t=s;while(Math.abs(i)>az&&++auz(i,0,1,e,r);return i=>i===0||i===1?i:WS(o(i),t,n)}const cz=ra(.42,0,1,1),dz=ra(0,0,.58,1),GS=ra(.42,0,.58,1),fz=e=>Array.isArray(e)&&typeof e[0]!="number",KS=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,qS=e=>t=>1-e(1-t),XS=e=>1-Math.sin(Math.acos(e)),zp=qS(XS),hz=KS(zp),YS=ra(.33,1.53,.69,.99),Mp=qS(YS),pz=KS(Mp),mz=e=>(e*=2)<1?.5*Mp(e):.5*(2-Math.pow(2,-10*(e-1))),gz={linear:Ae,easeIn:cz,easeInOut:GS,easeOut:dz,circIn:XS,circInOut:hz,circOut:zp,backIn:Mp,backInOut:pz,backOut:YS,anticipate:mz},Bg=e=>{if(Array.isArray(e)){Rp(e.length===4);const[t,r,n,o]=e;return ra(t,r,n,o)}else if(typeof e=="string")return gz[e];return e},Lp=(e,t)=>r=>!!(ea(r)&&mR.test(r)&&r.startsWith(e)||t&&Object.prototype.hasOwnProperty.call(r,t)),QS=(e,t,r)=>n=>{if(!ea(n))return n;const[o,i,s,a]=n.match(Qu);return{[e]:parseFloat(o),[t]:parseFloat(i),[r]:parseFloat(s),alpha:a!==void 0?parseFloat(a):1}},yz=e=>_n(0,255,e),hd={...lo,transform:e=>Math.round(yz(e))},Kn={test:Lp("rgb","red"),parse:QS("red","green","blue"),transform:({red:e,green:t,blue:r,alpha:n=1})=>"rgba("+hd.transform(e)+", "+hd.transform(t)+", "+hd.transform(r)+", "+us(ls.transform(n))+")"};function vz(e){let t="",r="",n="",o="";return e.length>5?(t=e.substring(1,3),r=e.substring(3,5),n=e.substring(5,7),o=e.substring(7,9)):(t=e.substring(1,2),r=e.substring(2,3),n=e.substring(3,4),o=e.substring(4,5),t+=t,r+=r,n+=n,o+=o),{red:parseInt(t,16),green:parseInt(r,16),blue:parseInt(n,16),alpha:o?parseInt(o,16)/255:1}}const Of={test:Lp("#"),parse:vz,transform:Kn.transform},Do={test:Lp("hsl","hue"),parse:QS("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:r,alpha:n=1})=>"hsla("+Math.round(e)+", "+xr.transform(us(t))+", "+xr.transform(us(r))+", "+us(ls.transform(n))+")"},ot={test:e=>Kn.test(e)||Of.test(e)||Do.test(e),parse:e=>Kn.test(e)?Kn.parse(e):Do.test(e)?Do.parse(e):Of.parse(e),transform:e=>ea(e)?e:e.hasOwnProperty("red")?Kn.transform(e):Do.transform(e)},_e=(e,t,r)=>-r*e+r*t+e;function pd(e,t,r){return r<0&&(r+=1),r>1&&(r-=1),r<1/6?e+(t-e)*6*r:r<1/2?t:r<2/3?e+(t-e)*(2/3-r)*6:e}function bz({hue:e,saturation:t,lightness:r,alpha:n}){e/=360,t/=100,r/=100;let o=0,i=0,s=0;if(!t)o=i=s=r;else{const a=r<.5?r*(1+t):r+t-r*t,l=2*r-a;o=pd(l,a,e+1/3),i=pd(l,a,e),s=pd(l,a,e-1/3)}return{red:Math.round(o*255),green:Math.round(i*255),blue:Math.round(s*255),alpha:n}}const md=(e,t,r)=>{const n=e*e;return Math.sqrt(Math.max(0,r*(t*t-n)+n))},Sz=[Of,Kn,Do],xz=e=>Sz.find(t=>t.test(e));function Ig(e){const t=xz(e);let r=t.parse(e);return t===Do&&(r=bz(r)),r}const ZS=(e,t)=>{const r=Ig(e),n=Ig(t),o={...r};return i=>(o.red=md(r.red,n.red,i),o.green=md(r.green,n.green,i),o.blue=md(r.blue,n.blue,i),o.alpha=_e(r.alpha,n.alpha,i),Kn.transform(o))};function wz(e){var t,r;return isNaN(e)&&ea(e)&&(((t=e.match(Qu))===null||t===void 0?void 0:t.length)||0)+(((r=e.match(CS))===null||r===void 0?void 0:r.length)||0)>0}const JS={regex:hR,countKey:"Vars",token:"${v}",parse:Ae},ex={regex:CS,countKey:"Colors",token:"${c}",parse:ot.parse},tx={regex:Qu,countKey:"Numbers",token:"${n}",parse:lo.parse};function gd(e,{regex:t,countKey:r,token:n,parse:o}){const i=e.tokenised.match(t);i&&(e["num"+r]=i.length,e.tokenised=e.tokenised.replace(t,n),e.values.push(...i.map(o)))}function iu(e){const t=e.toString(),r={value:t,tokenised:t,values:[],numVars:0,numColors:0,numNumbers:0};return r.value.includes("var(--")&&gd(r,JS),gd(r,ex),gd(r,tx),r}function rx(e){return iu(e).values}function nx(e){const{values:t,numColors:r,numVars:n,tokenised:o}=iu(e),i=t.length;return s=>{let a=o;for(let l=0;ltypeof e=="number"?0:e;function Cz(e){const t=rx(e);return nx(e)(t.map(kz))}const Tn={test:wz,parse:rx,createTransformer:nx,getAnimatableNone:Cz},ox=(e,t)=>r=>`${r>0?t:e}`;function ix(e,t){return typeof e=="number"?r=>_e(e,t,r):ot.test(e)?ZS(e,t):e.startsWith("var(")?ox(e,t):ax(e,t)}const sx=(e,t)=>{const r=[...e],n=r.length,o=e.map((i,s)=>ix(i,t[s]));return i=>{for(let s=0;s{const r={...e,...t},n={};for(const o in r)e[o]!==void 0&&t[o]!==void 0&&(n[o]=ix(e[o],t[o]));return o=>{for(const i in n)r[i]=n[i](o);return r}},ax=(e,t)=>{const r=Tn.createTransformer(t),n=iu(e),o=iu(t);return n.numVars===o.numVars&&n.numColors===o.numColors&&n.numNumbers>=o.numNumbers?Sn(sx(n.values,o.values),r):ox(e,t)},Is=(e,t,r)=>{const n=t-e;return n===0?1:(r-e)/n},Ng=(e,t)=>r=>_e(e,t,r);function Tz(e){return typeof e=="number"?Ng:typeof e=="string"?ot.test(e)?ZS:ax:Array.isArray(e)?sx:typeof e=="object"?_z:Ng}function Pz(e,t,r){const n=[],o=r||Tz(e[0]),i=e.length-1;for(let s=0;st[0];e[0]>e[i-1]&&(e=[...e].reverse(),t=[...t].reverse());const s=Pz(t,n,o),a=s.length,l=u=>{let c=0;if(a>1)for(;cl(_n(e[0],e[i-1],u)):l}function Ez(e,t){const r=e[e.length-1];for(let n=1;n<=t;n++){const o=Is(0,t,n);e.push(_e(r,1,o))}}function $z(e){const t=[0];return Ez(t,e.length-1),t}function Az(e,t){return e.map(r=>r*t)}function Rz(e,t){return e.map(()=>t||GS).splice(0,e.length-1)}function su({duration:e=300,keyframes:t,times:r,ease:n="easeInOut"}){const o=fz(n)?n.map(Bg):Bg(n),i={done:!1,value:t[0]},s=Az(r&&r.length===t.length?r:$z(t),e),a=lx(s,t,{ease:Array.isArray(o)?o:Rz(t,o)});return{calculatedDuration:e,next:l=>(i.value=a(l),i.done=l>=e,i)}}function ux(e,t){return t?e*(1e3/t):0}const zz=5;function cx(e,t,r){const n=Math.max(t-zz,0);return ux(r-e(n),t-n)}const yd=.001,Mz=.01,Vg=10,Lz=.05,Fz=1;function Oz({duration:e=800,bounce:t=.25,velocity:r=0,mass:n=1}){let o,i;nz(e<=xn(Vg));let s=1-t;s=_n(Lz,Fz,s),e=_n(Mz,Vg,Dr(e)),s<1?(o=u=>{const c=u*s,d=c*e,f=c-r,p=jf(u,s),m=Math.exp(-d);return yd-f/p*m},i=u=>{const d=u*s*e,f=d*r+r,p=Math.pow(s,2)*Math.pow(u,2)*e,m=Math.exp(-d),v=jf(Math.pow(u,2),s);return(-o(u)+yd>0?-1:1)*((f-p)*m)/v}):(o=u=>{const c=Math.exp(-u*e),d=(u-r)*e+1;return-yd+c*d},i=u=>{const c=Math.exp(-u*e),d=(r-u)*(e*e);return c*d});const a=5/e,l=Dz(o,i,a);if(e=xn(e),isNaN(l))return{stiffness:100,damping:10,duration:e};{const u=Math.pow(l,2)*n;return{stiffness:u,damping:s*2*Math.sqrt(n*u),duration:e}}}const jz=12;function Dz(e,t,r){let n=r;for(let o=1;oe[r]!==void 0)}function Nz(e){let t={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...e};if(!Ug(e,Iz)&&Ug(e,Bz)){const r=Oz(e);t={...t,...r,velocity:0,mass:1},t.isResolvedFromDuration=!0}return t}function dx({keyframes:e,restDelta:t,restSpeed:r,...n}){const o=e[0],i=e[e.length-1],s={done:!1,value:o},{stiffness:a,damping:l,mass:u,velocity:c,duration:d,isResolvedFromDuration:f}=Nz(n),p=c?-Dr(c):0,m=l/(2*Math.sqrt(a*u)),v=i-o,C=Dr(Math.sqrt(a/u)),g=Math.abs(v)<5;r||(r=g?.01:2),t||(t=g?.005:.5);let h;if(m<1){const y=jf(C,m);h=k=>{const P=Math.exp(-m*C*k);return i-P*((p+m*C*v)/y*Math.sin(y*k)+v*Math.cos(y*k))}}else if(m===1)h=y=>i-Math.exp(-C*y)*(v+(p+C*v)*y);else{const y=C*Math.sqrt(m*m-1);h=k=>{const P=Math.exp(-m*C*k),R=Math.min(y*k,300);return i-P*((p+m*C*v)*Math.sinh(R)+y*v*Math.cosh(R))/y}}return{calculatedDuration:f&&d||null,next:y=>{const k=h(y);if(f)s.done=y>=d;else{let P=p;y!==0&&(m<1?P=cx(h,y,k):P=0);const R=Math.abs(P)<=r,E=Math.abs(i-k)<=t;s.done=R&&E}return s.value=s.done?i:k,s}}}function Hg({keyframes:e,velocity:t=0,power:r=.8,timeConstant:n=325,bounceDamping:o=10,bounceStiffness:i=500,modifyTarget:s,min:a,max:l,restDelta:u=.5,restSpeed:c}){const d=e[0],f={done:!1,value:d},p=A=>a!==void 0&&Al,m=A=>a===void 0?l:l===void 0||Math.abs(a-A)-v*Math.exp(-A/n),y=A=>g+h(A),k=A=>{const O=h(A),j=y(A);f.done=Math.abs(O)<=u,f.value=f.done?g:j};let P,R;const E=A=>{p(f.value)&&(P=A,R=dx({keyframes:[f.value,m(f.value)],velocity:cx(y,A,f.value),damping:o,stiffness:i,restDelta:u,restSpeed:c}))};return E(0),{calculatedDuration:null,next:A=>{let O=!1;return!R&&P===void 0&&(O=!0,k(A),E(A)),P!==void 0&&A>P?R.next(A-P):(!O&&k(A),f)}}}const Vz=e=>{const t=({timestamp:r})=>e(r);return{start:()=>me.update(t,!0),stop:()=>Wr(t),now:()=>He.isProcessing?He.timestamp:performance.now()}},Wg=2e4;function Gg(e){let t=0;const r=50;let n=e.next(t);for(;!n.done&&t=Wg?1/0:t}const Uz={decay:Hg,inertia:Hg,tween:su,keyframes:su,spring:dx};function au({autoplay:e=!0,delay:t=0,driver:r=Vz,keyframes:n,type:o="keyframes",repeat:i=0,repeatDelay:s=0,repeatType:a="loop",onPlay:l,onStop:u,onComplete:c,onUpdate:d,...f}){let p=1,m=!1,v,C;const g=()=>{C=new Promise(N=>{v=N})};g();let h;const y=Uz[o]||su;let k;y!==su&&typeof n[0]!="number"&&(k=lx([0,100],n,{clamp:!1}),n=[0,100]);const P=y({...f,keyframes:n});let R;a==="mirror"&&(R=y({...f,keyframes:[...n].reverse(),velocity:-(f.velocity||0)}));let E="idle",A=null,O=null,j=null;P.calculatedDuration===null&&i&&(P.calculatedDuration=Gg(P));const{calculatedDuration:de}=P;let ye=1/0,Re=1/0;de!==null&&(ye=de+s,Re=ye*(i+1)-s);let ae=0;const he=N=>{if(O===null)return;p>0&&(O=Math.min(O,N)),p<0&&(O=Math.min(N-Re/p,O)),A!==null?ae=A:ae=Math.round(N-O)*p;const J=ae-t*(p>=0?1:-1),W=p>=0?J<0:J>Re;ae=Math.max(J,0),E==="finished"&&A===null&&(ae=Re);let ce=ae,Yt=P;if(i){const Xr=ae/ye;let lr=Math.floor(Xr),Ft=Xr%1;!Ft&&Xr>=1&&(Ft=1),Ft===1&&lr--,lr=Math.min(lr,i+1);const zn=!!(lr%2);zn&&(a==="reverse"?(Ft=1-Ft,s&&(Ft-=s/ye)):a==="mirror"&&(Yt=R));let co=_n(0,1,Ft);ae>Re&&(co=a==="reverse"&&zn?1:0),ce=co*ye}const Ee=W?{done:!1,value:n[0]}:Yt.next(ce);k&&(Ee.value=k(Ee.value));let{done:xt}=Ee;!W&&de!==null&&(xt=p>=0?ae>=Re:ae<=0);const ar=A===null&&(E==="finished"||E==="running"&&xt);return d&&d(Ee.value),ar&&M(),Ee},Le=()=>{h&&h.stop(),h=void 0},Ie=()=>{E="idle",Le(),v(),g(),O=j=null},M=()=>{E="finished",c&&c(),Le(),v()},I=()=>{if(m)return;h||(h=r(he));const N=h.now();l&&l(),A!==null?O=N-A:(!O||E==="finished")&&(O=N),E==="finished"&&g(),j=O,A=null,E="running",h.start()};e&&I();const U={then(N,J){return C.then(N,J)},get time(){return Dr(ae)},set time(N){N=xn(N),ae=N,A!==null||!h||p===0?A=N:O=h.now()-N/p},get duration(){const N=P.calculatedDuration===null?Gg(P):P.calculatedDuration;return Dr(N)},get speed(){return p},set speed(N){N===p||!h||(p=N,U.time=Dr(ae))},get state(){return E},play:I,pause:()=>{E="paused",A=ae},stop:()=>{m=!0,E!=="idle"&&(E="idle",u&&u(),Ie())},cancel:()=>{j!==null&&he(j),Ie()},complete:()=>{E="finished"},sample:N=>(O=0,he(N))};return U}function Hz(e){let t;return()=>(t===void 0&&(t=e()),t)}const Wz=Hz(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),Gz=new Set(["opacity","clipPath","filter","transform","backgroundColor"]),Ua=10,Kz=2e4,qz=(e,t)=>t.type==="spring"||e==="backgroundColor"||!VS(t.ease);function Xz(e,t,{onUpdate:r,onComplete:n,...o}){if(!(Wz()&&Gz.has(t)&&!o.repeatDelay&&o.repeatType!=="mirror"&&o.damping!==0&&o.type!=="inertia"))return!1;let s=!1,a,l;const u=()=>{l=new Promise(h=>{a=h})};u();let{keyframes:c,duration:d=300,ease:f,times:p}=o;if(qz(t,o)){const h=au({...o,repeat:0,delay:0});let y={done:!1,value:c[0]};const k=[];let P=0;for(;!y.done&&Pm.cancel(),C=()=>{me.update(v),a(),u()};return m.onfinish=()=>{e.set(sz(c,o)),n&&n(),C()},{then(h,y){return l.then(h,y)},attachTimeline(h){return m.timeline=h,m.onfinish=null,Ae},get time(){return Dr(m.currentTime||0)},set time(h){m.currentTime=xn(h)},get speed(){return m.playbackRate},set speed(h){m.playbackRate=h},get duration(){return Dr(d)},play:()=>{s||(m.play(),Wr(v))},pause:()=>m.pause(),stop:()=>{if(s=!0,m.playState==="idle")return;const{currentTime:h}=m;if(h){const y=au({...o,autoplay:!1});e.setWithVelocity(y.sample(h-Ua).value,y.sample(h).value,Ua)}C()},complete:()=>m.finish(),cancel:C}}function Yz({keyframes:e,delay:t,onUpdate:r,onComplete:n}){const o=()=>(r&&r(e[e.length-1]),n&&n(),{time:0,speed:1,duration:0,play:Ae,pause:Ae,stop:Ae,then:i=>(i(),Promise.resolve()),cancel:Ae,complete:Ae});return t?au({keyframes:[0,1],duration:0,delay:t,onComplete:o}):o()}const Qz={type:"spring",stiffness:500,damping:25,restSpeed:10},Zz=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),Jz={type:"keyframes",duration:.8},e8={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},t8=(e,{keyframes:t})=>t.length>2?Jz:ao.has(e)?e.startsWith("scale")?Zz(t[1]):Qz:e8,Df=(e,t)=>e==="zIndex"?!1:!!(typeof t=="number"||Array.isArray(t)||typeof t=="string"&&(Tn.test(t)||t==="0")&&!t.startsWith("url(")),r8=new Set(["brightness","contrast","saturate","opacity"]);function n8(e){const[t,r]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[n]=r.match(Qu)||[];if(!n)return e;const o=r.replace(n,"");let i=r8.has(t)?1:0;return n!==r&&(i*=100),t+"("+i+o+")"}const o8=/([a-z-]*)\(.*?\)/g,Bf={...Tn,getAnimatableNone:e=>{const t=e.match(o8);return t?t.map(n8).join(" "):e}},i8={..._S,color:ot,backgroundColor:ot,outlineColor:ot,fill:ot,stroke:ot,borderColor:ot,borderTopColor:ot,borderRightColor:ot,borderBottomColor:ot,borderLeftColor:ot,filter:Bf,WebkitFilter:Bf},Fp=e=>i8[e];function fx(e,t){let r=Fp(e);return r!==Bf&&(r=Tn),r.getAnimatableNone?r.getAnimatableNone(t):void 0}const hx=e=>/^0[^.\s]+$/.test(e);function s8(e){if(typeof e=="number")return e===0;if(e!==null)return e==="none"||e==="0"||hx(e)}function a8(e,t,r,n){const o=Df(t,r);let i;Array.isArray(r)?i=[...r]:i=[null,r];const s=n.from!==void 0?n.from:e.get();let a;const l=[];for(let u=0;uo=>{const i=px(n,e)||{},s=i.delay||n.delay||0;let{elapsed:a=0}=n;a=a-xn(s);const l=a8(t,e,r,i),u=l[0],c=l[l.length-1],d=Df(e,u),f=Df(e,c);let p={keyframes:l,velocity:t.getVelocity(),ease:"easeOut",...i,delay:-a,onUpdate:m=>{t.set(m),i.onUpdate&&i.onUpdate(m)},onComplete:()=>{o(),i.onComplete&&i.onComplete()}};if(l8(i)||(p={...p,...t8(e,p)}),p.duration&&(p.duration=xn(p.duration)),p.repeatDelay&&(p.repeatDelay=xn(p.repeatDelay)),!d||!f||oz.current||i.type===!1)return Yz(p);if(t.owner&&t.owner.current instanceof HTMLElement&&!t.owner.getProps().onUpdate){const m=Xz(t,e,p);if(m)return m}return au(p)};function lu(e){return!!(St(e)&&e.add)}const mx=e=>/^\-?\d*\.?\d+$/.test(e);function jp(e,t){e.indexOf(t)===-1&&e.push(t)}function Dp(e,t){const r=e.indexOf(t);r>-1&&e.splice(r,1)}class Bp{constructor(){this.subscriptions=[]}add(t){return jp(this.subscriptions,t),()=>Dp(this.subscriptions,t)}notify(t,r,n){const o=this.subscriptions.length;if(o)if(o===1)this.subscriptions[0](t,r,n);else for(let i=0;i!isNaN(parseFloat(e));class c8{constructor(t,r={}){this.version="10.16.4",this.timeDelta=0,this.lastUpdated=0,this.canTrackVelocity=!1,this.events={},this.updateAndNotify=(n,o=!0)=>{this.prev=this.current,this.current=n;const{delta:i,timestamp:s}=He;this.lastUpdated!==s&&(this.timeDelta=i,this.lastUpdated=s,me.postRender(this.scheduleVelocityCheck)),this.prev!==this.current&&this.events.change&&this.events.change.notify(this.current),this.events.velocityChange&&this.events.velocityChange.notify(this.getVelocity()),o&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.scheduleVelocityCheck=()=>me.postRender(this.velocityCheck),this.velocityCheck=({timestamp:n})=>{n!==this.lastUpdated&&(this.prev=this.current,this.events.velocityChange&&this.events.velocityChange.notify(this.getVelocity()))},this.hasAnimated=!1,this.prev=this.current=t,this.canTrackVelocity=u8(this.current),this.owner=r.owner}onChange(t){return this.on("change",t)}on(t,r){this.events[t]||(this.events[t]=new Bp);const n=this.events[t].add(r);return t==="change"?()=>{n(),me.read(()=>{this.events.change.getSize()||this.stop()})}:n}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,r){this.passiveEffect=t,this.stopPassiveEffect=r}set(t,r=!0){!r||!this.passiveEffect?this.updateAndNotify(t,r):this.passiveEffect(t,this.updateAndNotify)}setWithVelocity(t,r,n){this.set(r),this.prev=t,this.timeDelta=n}jump(t){this.updateAndNotify(t),this.prev=t,this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return this.current}getPrevious(){return this.prev}getVelocity(){return this.canTrackVelocity?ux(parseFloat(this.current)-parseFloat(this.prev),this.timeDelta):0}start(t){return this.stop(),new Promise(r=>{this.hasAnimated=!0,this.animation=t(r),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function li(e,t){return new c8(e,t)}const gx=e=>t=>t.test(e),d8={test:e=>e==="auto",parse:e=>e},yx=[lo,V,xr,tn,yR,gR,d8],Mi=e=>yx.find(gx(e)),f8=[...yx,ot,Tn],h8=e=>f8.find(gx(e));function p8(e,t,r){e.hasValue(t)?e.getValue(t).set(r):e.addValue(t,li(r))}function m8(e,t){const r=Ju(e,t);let{transitionEnd:n={},transition:o={},...i}=r?e.makeTargetAnimatable(r,!1):{};i={...i,...n};for(const s in i){const a=RR(i[s]);p8(e,s,a)}}function g8(e,t,r){var n,o;const i=Object.keys(t).filter(a=>!e.hasValue(a)),s=i.length;if(s)for(let a=0;al.remove(d))),u.push(v)}return s&&Promise.all(u).then(()=>{s&&m8(e,s)}),u}function If(e,t,r={}){const n=Ju(e,t,r.custom);let{transition:o=e.getDefaultTransition()||{}}=n||{};r.transitionOverride&&(o=r.transitionOverride);const i=n?()=>Promise.all(vx(e,n,r)):()=>Promise.resolve(),s=e.variantChildren&&e.variantChildren.size?(l=0)=>{const{delayChildren:u=0,staggerChildren:c,staggerDirection:d}=o;return S8(e,t,u+l,c,d,r)}:()=>Promise.resolve(),{when:a}=o;if(a){const[l,u]=a==="beforeChildren"?[i,s]:[s,i];return l().then(()=>u())}else return Promise.all([i(),s(r.delay)])}function S8(e,t,r=0,n=0,o=1,i){const s=[],a=(e.variantChildren.size-1)*n,l=o===1?(u=0)=>u*n:(u=0)=>a-u*n;return Array.from(e.variantChildren).sort(x8).forEach((u,c)=>{u.notify("AnimationStart",t),s.push(If(u,t,{...i,delay:r+l(c)}).then(()=>u.notify("AnimationComplete",t)))}),Promise.all(s)}function x8(e,t){return e.sortNodePosition(t)}function w8(e,t,r={}){e.notify("AnimationStart",t);let n;if(Array.isArray(t)){const o=t.map(i=>If(e,i,r));n=Promise.all(o)}else if(typeof t=="string")n=If(e,t,r);else{const o=typeof t=="function"?Ju(e,t,r.custom):t;n=Promise.all(vx(e,o,r))}return n.then(()=>e.notify("AnimationComplete",t))}const k8=[...Sp].reverse(),C8=Sp.length;function _8(e){return t=>Promise.all(t.map(({animation:r,options:n})=>w8(e,r,n)))}function T8(e){let t=_8(e);const r=E8();let n=!0;const o=(l,u)=>{const c=Ju(e,u);if(c){const{transition:d,transitionEnd:f,...p}=c;l={...l,...p,...f}}return l};function i(l){t=l(e)}function s(l,u){const c=e.getProps(),d=e.getVariantContext(!0)||{},f=[],p=new Set;let m={},v=1/0;for(let g=0;gv&&P;const j=Array.isArray(k)?k:[k];let de=j.reduce(o,{});R===!1&&(de={});const{prevResolvedValues:ye={}}=y,Re={...ye,...de},ae=he=>{O=!0,p.delete(he),y.needsAnimating[he]=!0};for(const he in Re){const Le=de[he],Ie=ye[he];m.hasOwnProperty(he)||(Le!==Ie?ou(Le)&&ou(Ie)?!IS(Le,Ie)||A?ae(he):y.protectedKeys[he]=!0:Le!==void 0?ae(he):p.add(he):Le!==void 0&&p.has(he)?ae(he):y.protectedKeys[he]=!0)}y.prevProp=k,y.prevResolvedValues=de,y.isActive&&(m={...m,...de}),n&&e.blockInitialAnimation&&(O=!1),O&&!E&&f.push(...j.map(he=>({animation:he,options:{type:h,...l}})))}if(p.size){const g={};p.forEach(h=>{const y=e.getBaseTarget(h);y!==void 0&&(g[h]=y)}),f.push({animation:g})}let C=!!f.length;return n&&c.initial===!1&&!e.manuallyAnimateOnMount&&(C=!1),n=!1,C?t(f):Promise.resolve()}function a(l,u,c){var d;if(r[l].isActive===u)return Promise.resolve();(d=e.variantChildren)===null||d===void 0||d.forEach(p=>{var m;return(m=p.animationState)===null||m===void 0?void 0:m.setActive(l,u)}),r[l].isActive=u;const f=s(c,l);for(const p in r)r[p].protectedKeys={};return f}return{animateChanges:s,setActive:a,setAnimateFunction:i,getState:()=>r}}function P8(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!IS(t,e):!1}function On(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function E8(){return{animate:On(!0),whileInView:On(),whileHover:On(),whileTap:On(),whileDrag:On(),whileFocus:On(),exit:On()}}class $8 extends Rn{constructor(t){super(t),t.animationState||(t.animationState=T8(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();this.unmount(),Xu(t)&&(this.unmount=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:r}=this.node.prevProps||{};t!==r&&this.updateAnimationControlsSubscription()}unmount(){}}let A8=0;class R8 extends Rn{constructor(){super(...arguments),this.id=A8++}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:r,custom:n}=this.node.presenceContext,{isPresent:o}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===o)return;const i=this.node.animationState.setActive("exit",!t,{custom:n??this.node.getProps().custom});r&&!t&&i.then(()=>r(this.id))}mount(){const{register:t}=this.node.presenceContext||{};t&&(this.unmount=t(this.id))}unmount(){}}const z8={animation:{Feature:$8},exit:{Feature:R8}},Kg=(e,t)=>Math.abs(e-t);function M8(e,t){const r=Kg(e.x,t.x),n=Kg(e.y,t.y);return Math.sqrt(r**2+n**2)}class bx{constructor(t,r,{transformPagePoint:n}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const u=bd(this.lastMoveEventInfo,this.history),c=this.startEvent!==null,d=M8(u.offset,{x:0,y:0})>=3;if(!c&&!d)return;const{point:f}=u,{timestamp:p}=He;this.history.push({...f,timestamp:p});const{onStart:m,onMove:v}=this.handlers;c||(m&&m(this.lastMoveEvent,u),this.startEvent=this.lastMoveEvent),v&&v(this.lastMoveEvent,u)},this.handlePointerMove=(u,c)=>{this.lastMoveEvent=u,this.lastMoveEventInfo=vd(c,this.transformPagePoint),me.update(this.updatePoint,!0)},this.handlePointerUp=(u,c)=>{if(this.end(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const{onEnd:d,onSessionEnd:f}=this.handlers,p=bd(u.type==="pointercancel"?this.lastMoveEventInfo:vd(c,this.transformPagePoint),this.history);this.startEvent&&d&&d(u,p),f&&f(u,p)},!FS(t))return;this.handlers=r,this.transformPagePoint=n;const o=Zu(t),i=vd(o,this.transformPagePoint),{point:s}=i,{timestamp:a}=He;this.history=[{...s,timestamp:a}];const{onSessionStart:l}=r;l&&l(t,bd(i,this.history)),this.removeListeners=Sn(jr(window,"pointermove",this.handlePointerMove),jr(window,"pointerup",this.handlePointerUp),jr(window,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),Wr(this.updatePoint)}}function vd(e,t){return t?{point:t(e.point)}:e}function qg(e,t){return{x:e.x-t.x,y:e.y-t.y}}function bd({point:e},t){return{point:e,delta:qg(e,Sx(t)),offset:qg(e,L8(t)),velocity:F8(t,.1)}}function L8(e){return e[0]}function Sx(e){return e[e.length-1]}function F8(e,t){if(e.length<2)return{x:0,y:0};let r=e.length-1,n=null;const o=Sx(e);for(;r>=0&&(n=e[r],!(o.timestamp-n.timestamp>xn(t)));)r--;if(!n)return{x:0,y:0};const i=Dr(o.timestamp-n.timestamp);if(i===0)return{x:0,y:0};const s={x:(o.x-n.x)/i,y:(o.y-n.y)/i};return s.x===1/0&&(s.x=0),s.y===1/0&&(s.y=0),s}function Rt(e){return e.max-e.min}function Nf(e,t=0,r=.01){return Math.abs(e-t)<=r}function Xg(e,t,r,n=.5){e.origin=n,e.originPoint=_e(t.min,t.max,e.origin),e.scale=Rt(r)/Rt(t),(Nf(e.scale,1,1e-4)||isNaN(e.scale))&&(e.scale=1),e.translate=_e(r.min,r.max,e.origin)-e.originPoint,(Nf(e.translate)||isNaN(e.translate))&&(e.translate=0)}function cs(e,t,r,n){Xg(e.x,t.x,r.x,n?n.originX:void 0),Xg(e.y,t.y,r.y,n?n.originY:void 0)}function Yg(e,t,r){e.min=r.min+t.min,e.max=e.min+Rt(t)}function O8(e,t,r){Yg(e.x,t.x,r.x),Yg(e.y,t.y,r.y)}function Qg(e,t,r){e.min=t.min-r.min,e.max=e.min+Rt(t)}function ds(e,t,r){Qg(e.x,t.x,r.x),Qg(e.y,t.y,r.y)}function j8(e,{min:t,max:r},n){return t!==void 0&&er&&(e=n?_e(r,e,n.max):Math.min(e,r)),e}function Zg(e,t,r){return{min:t!==void 0?e.min+t:void 0,max:r!==void 0?e.max+r-(e.max-e.min):void 0}}function D8(e,{top:t,left:r,bottom:n,right:o}){return{x:Zg(e.x,r,o),y:Zg(e.y,t,n)}}function Jg(e,t){let r=t.min-e.min,n=t.max-e.max;return t.max-t.minn?r=Is(t.min,t.max-n,e.min):n>o&&(r=Is(e.min,e.max-o,t.min)),_n(0,1,r)}function N8(e,t){const r={};return t.min!==void 0&&(r.min=t.min-e.min),t.max!==void 0&&(r.max=t.max-e.min),r}const Vf=.35;function V8(e=Vf){return e===!1?e=0:e===!0&&(e=Vf),{x:ey(e,"left","right"),y:ey(e,"top","bottom")}}function ey(e,t,r){return{min:ty(e,t),max:ty(e,r)}}function ty(e,t){return typeof e=="number"?e:e[t]||0}const ry=()=>({translate:0,scale:1,origin:0,originPoint:0}),Bo=()=>({x:ry(),y:ry()}),ny=()=>({min:0,max:0}),Fe=()=>({x:ny(),y:ny()});function fr(e){return[e("x"),e("y")]}function xx({top:e,left:t,right:r,bottom:n}){return{x:{min:t,max:r},y:{min:e,max:n}}}function U8({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function H8(e,t){if(!t)return e;const r=t({x:e.left,y:e.top}),n=t({x:e.right,y:e.bottom});return{top:r.y,left:r.x,bottom:n.y,right:n.x}}function Sd(e){return e===void 0||e===1}function Uf({scale:e,scaleX:t,scaleY:r}){return!Sd(e)||!Sd(t)||!Sd(r)}function Bn(e){return Uf(e)||wx(e)||e.z||e.rotate||e.rotateX||e.rotateY}function wx(e){return oy(e.x)||oy(e.y)}function oy(e){return e&&e!=="0%"}function uu(e,t,r){const n=e-r,o=t*n;return r+o}function iy(e,t,r,n,o){return o!==void 0&&(e=uu(e,o,n)),uu(e,r,n)+t}function Hf(e,t=0,r=1,n,o){e.min=iy(e.min,t,r,n,o),e.max=iy(e.max,t,r,n,o)}function kx(e,{x:t,y:r}){Hf(e.x,t.translate,t.scale,t.originPoint),Hf(e.y,r.translate,r.scale,r.originPoint)}function W8(e,t,r,n=!1){const o=r.length;if(!o)return;t.x=t.y=1;let i,s;for(let a=0;a1.0000000000001||e<.999999999999?e:1}function on(e,t){e.min=e.min+t,e.max=e.max+t}function ay(e,t,[r,n,o]){const i=t[o]!==void 0?t[o]:.5,s=_e(e.min,e.max,i);Hf(e,t[r],t[n],s,t.scale)}const G8=["x","scaleX","originX"],K8=["y","scaleY","originY"];function Io(e,t){ay(e.x,t,G8),ay(e.y,t,K8)}function Cx(e,t){return xx(H8(e.getBoundingClientRect(),t))}function q8(e,t,r){const n=Cx(e,r),{scroll:o}=t;return o&&(on(n.x,o.offset.x),on(n.y,o.offset.y)),n}const X8=new WeakMap;class Y8{constructor(t){this.openGlobalLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=Fe(),this.visualElement=t}start(t,{snapToCursor:r=!1}={}){const{presenceContext:n}=this.visualElement;if(n&&n.isPresent===!1)return;const o=l=>{this.stopAnimation(),r&&this.snapToCursor(Zu(l,"page").point)},i=(l,u)=>{const{drag:c,dragPropagation:d,onDragStart:f}=this.getProps();if(c&&!d&&(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=jS(c),!this.openGlobalLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),fr(m=>{let v=this.getAxisMotionValue(m).get()||0;if(xr.test(v)){const{projection:C}=this.visualElement;if(C&&C.layout){const g=C.layout.layoutBox[m];g&&(v=Rt(g)*(parseFloat(v)/100))}}this.originPoint[m]=v}),f&&me.update(()=>f(l,u),!1,!0);const{animationState:p}=this.visualElement;p&&p.setActive("whileDrag",!0)},s=(l,u)=>{const{dragPropagation:c,dragDirectionLock:d,onDirectionLock:f,onDrag:p}=this.getProps();if(!c&&!this.openGlobalLock)return;const{offset:m}=u;if(d&&this.currentDirection===null){this.currentDirection=Q8(m),this.currentDirection!==null&&f&&f(this.currentDirection);return}this.updateAxis("x",u.point,m),this.updateAxis("y",u.point,m),this.visualElement.render(),p&&p(l,u)},a=(l,u)=>this.stop(l,u);this.panSession=new bx(t,{onSessionStart:o,onStart:i,onMove:s,onSessionEnd:a},{transformPagePoint:this.visualElement.getTransformPagePoint()})}stop(t,r){const n=this.isDragging;if(this.cancel(),!n)return;const{velocity:o}=r;this.startAnimation(o);const{onDragEnd:i}=this.getProps();i&&me.update(()=>i(t,r))}cancel(){this.isDragging=!1;const{projection:t,animationState:r}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:n}=this.getProps();!n&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),r&&r.setActive("whileDrag",!1)}updateAxis(t,r,n){const{drag:o}=this.getProps();if(!n||!Ha(t,o,this.currentDirection))return;const i=this.getAxisMotionValue(t);let s=this.originPoint[t]+n[t];this.constraints&&this.constraints[t]&&(s=j8(s,this.constraints[t],this.elastic[t])),i.set(s)}resolveConstraints(){const{dragConstraints:t,dragElastic:r}=this.getProps(),{layout:n}=this.visualElement.projection||{},o=this.constraints;t&&jo(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):t&&n?this.constraints=D8(n.layoutBox,t):this.constraints=!1,this.elastic=V8(r),o!==this.constraints&&n&&this.constraints&&!this.hasMutatedConstraints&&fr(i=>{this.getAxisMotionValue(i)&&(this.constraints[i]=N8(n.layoutBox[i],this.constraints[i]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:r}=this.getProps();if(!t||!jo(t))return!1;const n=t.current,{projection:o}=this.visualElement;if(!o||!o.layout)return!1;const i=q8(n,o.root,this.visualElement.getTransformPagePoint());let s=B8(o.layout.layoutBox,i);if(r){const a=r(U8(s));this.hasMutatedConstraints=!!a,a&&(s=xx(a))}return s}startAnimation(t){const{drag:r,dragMomentum:n,dragElastic:o,dragTransition:i,dragSnapToOrigin:s,onDragTransitionEnd:a}=this.getProps(),l=this.constraints||{},u=fr(c=>{if(!Ha(c,r,this.currentDirection))return;let d=l&&l[c]||{};s&&(d={min:0,max:0});const f=o?200:1e6,p=o?40:1e7,m={type:"inertia",velocity:n?t[c]:0,bounceStiffness:f,bounceDamping:p,timeConstant:750,restDelta:1,restSpeed:10,...i,...d};return this.startAxisValueAnimation(c,m)});return Promise.all(u).then(a)}startAxisValueAnimation(t,r){const n=this.getAxisMotionValue(t);return n.start(Op(t,n,0,r))}stopAnimation(){fr(t=>this.getAxisMotionValue(t).stop())}getAxisMotionValue(t){const r="_drag"+t.toUpperCase(),n=this.visualElement.getProps(),o=n[r];return o||this.visualElement.getValue(t,(n.initial?n.initial[t]:void 0)||0)}snapToCursor(t){fr(r=>{const{drag:n}=this.getProps();if(!Ha(r,n,this.currentDirection))return;const{projection:o}=this.visualElement,i=this.getAxisMotionValue(r);if(o&&o.layout){const{min:s,max:a}=o.layout.layoutBox[r];i.set(t[r]-_e(s,a,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:r}=this.getProps(),{projection:n}=this.visualElement;if(!jo(r)||!n||!this.constraints)return;this.stopAnimation();const o={x:0,y:0};fr(s=>{const a=this.getAxisMotionValue(s);if(a){const l=a.get();o[s]=I8({min:l,max:l},this.constraints[s])}});const{transformTemplate:i}=this.visualElement.getProps();this.visualElement.current.style.transform=i?i({},""):"none",n.root&&n.root.updateScroll(),n.updateLayout(),this.resolveConstraints(),fr(s=>{if(!Ha(s,t,null))return;const a=this.getAxisMotionValue(s),{min:l,max:u}=this.constraints[s];a.set(_e(l,u,o[s]))})}addListeners(){if(!this.visualElement.current)return;X8.set(this.visualElement,this);const t=this.visualElement.current,r=jr(t,"pointerdown",l=>{const{drag:u,dragListener:c=!0}=this.getProps();u&&c&&this.start(l)}),n=()=>{const{dragConstraints:l}=this.getProps();jo(l)&&(this.constraints=this.resolveRefConstraints())},{projection:o}=this.visualElement,i=o.addEventListener("measure",n);o&&!o.layout&&(o.root&&o.root.updateScroll(),o.updateLayout()),n();const s=Mr(window,"resize",()=>this.scalePositionWithinConstraints()),a=o.addEventListener("didUpdate",({delta:l,hasLayoutChanged:u})=>{this.isDragging&&u&&(fr(c=>{const d=this.getAxisMotionValue(c);d&&(this.originPoint[c]+=l[c].translate,d.set(d.get()+l[c].translate))}),this.visualElement.render())});return()=>{s(),r(),i(),a&&a()}}getProps(){const t=this.visualElement.getProps(),{drag:r=!1,dragDirectionLock:n=!1,dragPropagation:o=!1,dragConstraints:i=!1,dragElastic:s=Vf,dragMomentum:a=!0}=t;return{...t,drag:r,dragDirectionLock:n,dragPropagation:o,dragConstraints:i,dragElastic:s,dragMomentum:a}}}function Ha(e,t,r){return(t===!0||t===e)&&(r===null||r===e)}function Q8(e,t=10){let r=null;return Math.abs(e.y)>t?r="y":Math.abs(e.x)>t&&(r="x"),r}class Z8 extends Rn{constructor(t){super(t),this.removeGroupControls=Ae,this.removeListeners=Ae,this.controls=new Y8(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||Ae}unmount(){this.removeGroupControls(),this.removeListeners()}}const ly=e=>(t,r)=>{e&&me.update(()=>e(t,r))};class J8 extends Rn{constructor(){super(...arguments),this.removePointerDownListener=Ae}onPointerDown(t){this.session=new bx(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint()})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:r,onPan:n,onPanEnd:o}=this.node.getProps();return{onSessionStart:ly(t),onStart:ly(r),onMove:n,onEnd:(i,s)=>{delete this.session,o&&me.update(()=>o(i,s))}}}mount(){this.removePointerDownListener=jr(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}function e9(){const e=S.useContext(Zs);if(e===null)return[!0,null];const{isPresent:t,onExitComplete:r,register:n}=e,o=S.useId();return S.useEffect(()=>n(o),[]),!t&&r?[!1,()=>r&&r(o)]:[!0]}function t9(){return r9(S.useContext(Zs))}function r9(e){return e===null?!0:e.isPresent}const vl={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function uy(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const Li={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(V.test(e))e=parseFloat(e);else return e;const r=uy(e,t.target.x),n=uy(e,t.target.y);return`${r}% ${n}%`}},n9={correct:(e,{treeScale:t,projectionDelta:r})=>{const n=e,o=Tn.parse(e);if(o.length>5)return n;const i=Tn.createTransformer(e),s=typeof o[0]!="number"?1:0,a=r.x.scale*t.x,l=r.y.scale*t.y;o[0+s]/=a,o[1+s]/=l;const u=_e(a,l,.5);return typeof o[2+s]=="number"&&(o[2+s]/=u),typeof o[3+s]=="number"&&(o[3+s]/=u),i(o)}};class o9 extends Tt.Component{componentDidMount(){const{visualElement:t,layoutGroup:r,switchLayoutGroup:n,layoutId:o}=this.props,{projection:i}=t;uR(i9),i&&(r.group&&r.group.add(i),n&&n.register&&o&&n.register(i),i.root.didUpdate(),i.addEventListener("animationComplete",()=>{this.safeToRemove()}),i.setOptions({...i.options,onExitComplete:()=>this.safeToRemove()})),vl.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:r,visualElement:n,drag:o,isPresent:i}=this.props,s=n.projection;return s&&(s.isPresent=i,o||t.layoutDependency!==r||r===void 0?s.willUpdate():this.safeToRemove(),t.isPresent!==i&&(i?s.promote():s.relegate()||me.postRender(()=>{const a=s.getStack();(!a||!a.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),queueMicrotask(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:r,switchLayoutGroup:n}=this.props,{projection:o}=t;o&&(o.scheduleCheckAfterUnmount(),r&&r.group&&r.group.remove(o),n&&n.deregister&&n.deregister(o))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function _x(e){const[t,r]=e9(),n=S.useContext(wp);return Tt.createElement(o9,{...e,layoutGroup:n,switchLayoutGroup:S.useContext(SS),isPresent:t,safeToRemove:r})}const i9={borderRadius:{...Li,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:Li,borderTopRightRadius:Li,borderBottomLeftRadius:Li,borderBottomRightRadius:Li,boxShadow:n9},Tx=["TopLeft","TopRight","BottomLeft","BottomRight"],s9=Tx.length,cy=e=>typeof e=="string"?parseFloat(e):e,dy=e=>typeof e=="number"||V.test(e);function a9(e,t,r,n,o,i){o?(e.opacity=_e(0,r.opacity!==void 0?r.opacity:1,l9(n)),e.opacityExit=_e(t.opacity!==void 0?t.opacity:1,0,u9(n))):i&&(e.opacity=_e(t.opacity!==void 0?t.opacity:1,r.opacity!==void 0?r.opacity:1,n));for(let s=0;snt?1:r(Is(e,t,n))}function hy(e,t){e.min=t.min,e.max=t.max}function Bt(e,t){hy(e.x,t.x),hy(e.y,t.y)}function py(e,t,r,n,o){return e-=t,e=uu(e,1/r,n),o!==void 0&&(e=uu(e,1/o,n)),e}function c9(e,t=0,r=1,n=.5,o,i=e,s=e){if(xr.test(t)&&(t=parseFloat(t),t=_e(s.min,s.max,t/100)-s.min),typeof t!="number")return;let a=_e(i.min,i.max,n);e===i&&(a-=t),e.min=py(e.min,t,r,a,o),e.max=py(e.max,t,r,a,o)}function my(e,t,[r,n,o],i,s){c9(e,t[r],t[n],t[o],t.scale,i,s)}const d9=["x","scaleX","originX"],f9=["y","scaleY","originY"];function gy(e,t,r,n){my(e.x,t,d9,r?r.x:void 0,n?n.x:void 0),my(e.y,t,f9,r?r.y:void 0,n?n.y:void 0)}function yy(e){return e.translate===0&&e.scale===1}function Ex(e){return yy(e.x)&&yy(e.y)}function h9(e,t){return e.x.min===t.x.min&&e.x.max===t.x.max&&e.y.min===t.y.min&&e.y.max===t.y.max}function $x(e,t){return Math.round(e.x.min)===Math.round(t.x.min)&&Math.round(e.x.max)===Math.round(t.x.max)&&Math.round(e.y.min)===Math.round(t.y.min)&&Math.round(e.y.max)===Math.round(t.y.max)}function vy(e){return Rt(e.x)/Rt(e.y)}class p9{constructor(){this.members=[]}add(t){jp(this.members,t),t.scheduleRender()}remove(t){if(Dp(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){const r=this.members[this.members.length-1];r&&this.promote(r)}}relegate(t){const r=this.members.findIndex(o=>t===o);if(r===0)return!1;let n;for(let o=r;o>=0;o--){const i=this.members[o];if(i.isPresent!==!1){n=i;break}}return n?(this.promote(n),!0):!1}promote(t,r){const n=this.lead;if(t!==n&&(this.prevLead=n,this.lead=t,t.show(),n)){n.instance&&n.scheduleRender(),t.scheduleRender(),t.resumeFrom=n,r&&(t.resumeFrom.preserveOpacity=!0),n.snapshot&&(t.snapshot=n.snapshot,t.snapshot.latestValues=n.animationValues||n.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);const{crossfade:o}=t.options;o===!1&&n.hide()}}exitAnimationComplete(){this.members.forEach(t=>{const{options:r,resumingFrom:n}=t;r.onExitComplete&&r.onExitComplete(),n&&n.options.onExitComplete&&n.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function by(e,t,r){let n="";const o=e.x.translate/t.x,i=e.y.translate/t.y;if((o||i)&&(n=`translate3d(${o}px, ${i}px, 0) `),(t.x!==1||t.y!==1)&&(n+=`scale(${1/t.x}, ${1/t.y}) `),r){const{rotate:l,rotateX:u,rotateY:c}=r;l&&(n+=`rotate(${l}deg) `),u&&(n+=`rotateX(${u}deg) `),c&&(n+=`rotateY(${c}deg) `)}const s=e.x.scale*t.x,a=e.y.scale*t.y;return(s!==1||a!==1)&&(n+=`scale(${s}, ${a})`),n||"none"}const m9=(e,t)=>e.depth-t.depth;class g9{constructor(){this.children=[],this.isDirty=!1}add(t){jp(this.children,t),this.isDirty=!0}remove(t){Dp(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(m9),this.isDirty=!1,this.children.forEach(t)}}function y9(e,t){const r=performance.now(),n=({timestamp:o})=>{const i=o-r;i>=t&&(Wr(n),e(i-t))};return me.read(n,!0),()=>Wr(n)}function v9(e){window.MotionDebug&&window.MotionDebug.record(e)}function b9(e){return e instanceof SVGElement&&e.tagName!=="svg"}function S9(e,t,r){const n=St(e)?e:li(e);return n.start(Op("",n,t,r)),n.animation}const Sy=["","X","Y","Z"],xy=1e3;let x9=0;const In={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0};function Ax({attachResizeListener:e,defaultParent:t,measureScroll:r,checkIsScrollRoot:n,resetTransform:o}){return class{constructor(s={},a=t==null?void 0:t()){this.id=x9++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{In.totalNodes=In.resolvedTargetDeltas=In.recalculatedProjection=0,this.nodes.forEach(C9),this.nodes.forEach($9),this.nodes.forEach(A9),this.nodes.forEach(_9),v9(In)},this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=s,this.root=a?a.root||a:this,this.path=a?[...a.path,a]:[],this.parent=a,this.depth=a?a.depth+1:0;for(let l=0;lthis.root.updateBlockedByResize=!1;e(s,()=>{this.root.updateBlockedByResize=!0,d&&d(),d=y9(f,250),vl.hasAnimatedSinceResize&&(vl.hasAnimatedSinceResize=!1,this.nodes.forEach(ky))})}l&&this.root.registerSharedNode(l,this),this.options.animate!==!1&&c&&(l||u)&&this.addEventListener("didUpdate",({delta:d,hasLayoutChanged:f,hasRelativeTargetChanged:p,layout:m})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const v=this.options.transition||c.getDefaultTransition()||F9,{onLayoutAnimationStart:C,onLayoutAnimationComplete:g}=c.getProps(),h=!this.targetLayout||!$x(this.targetLayout,m)||p,y=!f&&p;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||y||f&&(h||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(d,y);const k={...px(v,"layout"),onPlay:C,onComplete:g};(c.shouldReduceMotion||this.options.layoutRoot)&&(k.delay=0,k.type=!1),this.startAnimation(k)}else f||ky(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=m})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const s=this.getStack();s&&s.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,Wr(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(R9),this.animationId++)}getTransformTemplate(){const{visualElement:s}=this.options;return s&&s.getProps().transformTemplate}willUpdate(s=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let c=0;cthis.update()))}clearAllSnapshots(){this.nodes.forEach(T9),this.sharedNodes.forEach(z9)}scheduleUpdateProjection(){me.preRender(this.updateProjection,!1,!0)}scheduleCheckAfterUnmount(){me.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure())}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let l=0;l{const P=k/1e3;Cy(d.x,s.x,P),Cy(d.y,s.y,P),this.setTargetDelta(d),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(ds(f,this.layout.layoutBox,this.relativeParent.layout.layoutBox),M9(this.relativeTarget,this.relativeTargetOrigin,f,P),y&&h9(this.relativeTarget,y)&&(this.isProjectionDirty=!1),y||(y=Fe()),Bt(y,this.relativeTarget)),v&&(this.animationValues=c,a9(c,u,this.latestValues,P,h,g)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=P},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(s){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(Wr(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=me.update(()=>{vl.hasAnimatedSinceResize=!0,this.currentAnimation=S9(0,xy,{...s,onUpdate:a=>{this.mixTargetDelta(a),s.onUpdate&&s.onUpdate(a)},onComplete:()=>{s.onComplete&&s.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const s=this.getStack();s&&s.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(xy),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const s=this.getLead();let{targetWithTransforms:a,target:l,layout:u,latestValues:c}=s;if(!(!a||!l||!u)){if(this!==s&&this.layout&&u&&Rx(this.options.animationType,this.layout.layoutBox,u.layoutBox)){l=this.target||Fe();const d=Rt(this.layout.layoutBox.x);l.x.min=s.target.x.min,l.x.max=l.x.min+d;const f=Rt(this.layout.layoutBox.y);l.y.min=s.target.y.min,l.y.max=l.y.min+f}Bt(a,l),Io(a,c),cs(this.projectionDeltaWithTransform,this.layoutCorrected,a,c)}}registerSharedNode(s,a){this.sharedNodes.has(s)||this.sharedNodes.set(s,new p9),this.sharedNodes.get(s).add(a);const u=a.options.initialPromotionConfig;a.promote({transition:u?u.transition:void 0,preserveFollowOpacity:u&&u.shouldPreserveFollowOpacity?u.shouldPreserveFollowOpacity(a):void 0})}isLead(){const s=this.getStack();return s?s.lead===this:!0}getLead(){var s;const{layoutId:a}=this.options;return a?((s=this.getStack())===null||s===void 0?void 0:s.lead)||this:this}getPrevLead(){var s;const{layoutId:a}=this.options;return a?(s=this.getStack())===null||s===void 0?void 0:s.prevLead:void 0}getStack(){const{layoutId:s}=this.options;if(s)return this.root.sharedNodes.get(s)}promote({needsReset:s,transition:a,preserveFollowOpacity:l}={}){const u=this.getStack();u&&u.promote(this,l),s&&(this.projectionDelta=void 0,this.needsReset=!0),a&&this.setOptions({transition:a})}relegate(){const s=this.getStack();return s?s.relegate(this):!1}resetRotation(){const{visualElement:s}=this.options;if(!s)return;let a=!1;const{latestValues:l}=s;if((l.rotate||l.rotateX||l.rotateY||l.rotateZ)&&(a=!0),!a)return;const u={};for(let c=0;c{var a;return(a=s.currentAnimation)===null||a===void 0?void 0:a.stop()}),this.root.nodes.forEach(wy),this.root.sharedNodes.clear()}}}function w9(e){e.updateLayout()}function k9(e){var t;const r=((t=e.resumeFrom)===null||t===void 0?void 0:t.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&r&&e.hasListeners("didUpdate")){const{layoutBox:n,measuredBox:o}=e.layout,{animationType:i}=e.options,s=r.source!==e.layout.source;i==="size"?fr(d=>{const f=s?r.measuredBox[d]:r.layoutBox[d],p=Rt(f);f.min=n[d].min,f.max=f.min+p}):Rx(i,r.layoutBox,n)&&fr(d=>{const f=s?r.measuredBox[d]:r.layoutBox[d],p=Rt(n[d]);f.max=f.min+p,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[d].max=e.relativeTarget[d].min+p)});const a=Bo();cs(a,n,r.layoutBox);const l=Bo();s?cs(l,e.applyTransform(o,!0),r.measuredBox):cs(l,n,r.layoutBox);const u=!Ex(a);let c=!1;if(!e.resumeFrom){const d=e.getClosestProjectingParent();if(d&&!d.resumeFrom){const{snapshot:f,layout:p}=d;if(f&&p){const m=Fe();ds(m,r.layoutBox,f.layoutBox);const v=Fe();ds(v,n,p.layoutBox),$x(m,v)||(c=!0),d.options.layoutRoot&&(e.relativeTarget=v,e.relativeTargetOrigin=m,e.relativeParent=d)}}}e.notifyListeners("didUpdate",{layout:n,snapshot:r,delta:l,layoutDelta:a,hasLayoutChanged:u,hasRelativeTargetChanged:c})}else if(e.isLead()){const{onExitComplete:n}=e.options;n&&n()}e.options.transition=void 0}function C9(e){In.totalNodes++,e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function _9(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function T9(e){e.clearSnapshot()}function wy(e){e.clearMeasurements()}function P9(e){e.isLayoutDirty=!1}function E9(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function ky(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function $9(e){e.resolveTargetDelta()}function A9(e){e.calcProjection()}function R9(e){e.resetRotation()}function z9(e){e.removeLeadSnapshot()}function Cy(e,t,r){e.translate=_e(t.translate,0,r),e.scale=_e(t.scale,1,r),e.origin=t.origin,e.originPoint=t.originPoint}function _y(e,t,r,n){e.min=_e(t.min,r.min,n),e.max=_e(t.max,r.max,n)}function M9(e,t,r,n){_y(e.x,t.x,r.x,n),_y(e.y,t.y,r.y,n)}function L9(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const F9={duration:.45,ease:[.4,0,.1,1]},Ty=e=>typeof navigator<"u"&&navigator.userAgent.toLowerCase().includes(e),Py=Ty("applewebkit/")&&!Ty("chrome/")?Math.round:Ae;function Ey(e){e.min=Py(e.min),e.max=Py(e.max)}function O9(e){Ey(e.x),Ey(e.y)}function Rx(e,t,r){return e==="position"||e==="preserve-aspect"&&!Nf(vy(t),vy(r),.2)}const j9=Ax({attachResizeListener:(e,t)=>Mr(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),xd={current:void 0},zx=Ax({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!xd.current){const e=new j9({});e.mount(window),e.setOptions({layoutScroll:!0}),xd.current=e}return xd.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),D9={pan:{Feature:J8},drag:{Feature:Z8,ProjectionNode:zx,MeasureLayout:_x}},B9=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/;function I9(e){const t=B9.exec(e);if(!t)return[,];const[,r,n]=t;return[r,n]}function Wf(e,t,r=1){const[n,o]=I9(e);if(!n)return;const i=window.getComputedStyle(t).getPropertyValue(n);if(i){const s=i.trim();return mx(s)?parseFloat(s):s}else return Lf(o)?Wf(o,t,r+1):o}function N9(e,{...t},r){const n=e.current;if(!(n instanceof Element))return{target:t,transitionEnd:r};r&&(r={...r}),e.values.forEach(o=>{const i=o.get();if(!Lf(i))return;const s=Wf(i,n);s&&o.set(s)});for(const o in t){const i=t[o];if(!Lf(i))continue;const s=Wf(i,n);s&&(t[o]=s,r||(r={}),r[o]===void 0&&(r[o]=i))}return{target:t,transitionEnd:r}}const V9=new Set(["width","height","top","left","right","bottom","x","y","translateX","translateY"]),Mx=e=>V9.has(e),U9=e=>Object.keys(e).some(Mx),$y=e=>e===lo||e===V,Ay=(e,t)=>parseFloat(e.split(", ")[t]),Ry=(e,t)=>(r,{transform:n})=>{if(n==="none"||!n)return 0;const o=n.match(/^matrix3d\((.+)\)$/);if(o)return Ay(o[1],t);{const i=n.match(/^matrix\((.+)\)$/);return i?Ay(i[1],e):0}},H9=new Set(["x","y","z"]),W9=Js.filter(e=>!H9.has(e));function G9(e){const t=[];return W9.forEach(r=>{const n=e.getValue(r);n!==void 0&&(t.push([r,n.get()]),n.set(r.startsWith("scale")?1:0))}),t.length&&e.render(),t}const ui={width:({x:e},{paddingLeft:t="0",paddingRight:r="0"})=>e.max-e.min-parseFloat(t)-parseFloat(r),height:({y:e},{paddingTop:t="0",paddingBottom:r="0"})=>e.max-e.min-parseFloat(t)-parseFloat(r),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:Ry(4,13),y:Ry(5,14)};ui.translateX=ui.x;ui.translateY=ui.y;const K9=(e,t,r)=>{const n=t.measureViewportBox(),o=t.current,i=getComputedStyle(o),{display:s}=i,a={};s==="none"&&t.setStaticValue("display",e.display||"block"),r.forEach(u=>{a[u]=ui[u](n,i)}),t.render();const l=t.measureViewportBox();return r.forEach(u=>{const c=t.getValue(u);c&&c.jump(a[u]),e[u]=ui[u](l,i)}),e},q9=(e,t,r={},n={})=>{t={...t},n={...n};const o=Object.keys(t).filter(Mx);let i=[],s=!1;const a=[];if(o.forEach(l=>{const u=e.getValue(l);if(!e.hasValue(l))return;let c=r[l],d=Mi(c);const f=t[l];let p;if(ou(f)){const m=f.length,v=f[0]===null?1:0;c=f[v],d=Mi(c);for(let C=v;C=0?window.pageYOffset:null,u=K9(t,e,a);return i.length&&i.forEach(([c,d])=>{e.getValue(c).set(d)}),e.render(),qu&&l!==null&&window.scrollTo({top:l}),{target:u,transitionEnd:n}}else return{target:t,transitionEnd:n}};function X9(e,t,r,n){return U9(t)?q9(e,t,r,n):{target:t,transitionEnd:n}}const Y9=(e,t,r,n)=>{const o=N9(e,t,n);return t=o.target,n=o.transitionEnd,X9(e,t,r,n)},Gf={current:null},Lx={current:!1};function Q9(){if(Lx.current=!0,!!qu)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>Gf.current=e.matches;e.addListener(t),t()}else Gf.current=!1}function Z9(e,t,r){const{willChange:n}=t;for(const o in t){const i=t[o],s=r[o];if(St(i))e.addValue(o,i),lu(n)&&n.add(o);else if(St(s))e.addValue(o,li(i,{owner:e})),lu(n)&&n.remove(o);else if(s!==i)if(e.hasValue(o)){const a=e.getValue(o);!a.hasAnimated&&a.set(i)}else{const a=e.getStaticValue(o);e.addValue(o,li(a!==void 0?a:i,{owner:e}))}}for(const o in r)t[o]===void 0&&e.removeValue(o);return t}const zy=new WeakMap,Fx=Object.keys(Bs),J9=Fx.length,My=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],eM=xp.length;class tM{constructor({parent:t,props:r,presenceContext:n,reducedMotionConfig:o,visualState:i},s={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.scheduleRender=()=>me.render(this.render,!1,!0);const{latestValues:a,renderState:l}=i;this.latestValues=a,this.baseTarget={...a},this.initialValues=r.initial?{...a}:{},this.renderState=l,this.parent=t,this.props=r,this.presenceContext=n,this.depth=t?t.depth+1:0,this.reducedMotionConfig=o,this.options=s,this.isControllingVariants=Yu(r),this.isVariantNode=bS(r),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:u,...c}=this.scrapeMotionValuesFromProps(r,{});for(const d in c){const f=c[d];a[d]!==void 0&&St(f)&&(f.set(a[d],!1),lu(u)&&u.add(d))}}scrapeMotionValuesFromProps(t,r){return{}}mount(t){this.current=t,zy.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((r,n)=>this.bindToMotionValue(n,r)),Lx.current||Q9(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:Gf.current,this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){zy.delete(this.current),this.projection&&this.projection.unmount(),Wr(this.notifyUpdate),Wr(this.render),this.valueSubscriptions.forEach(t=>t()),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const t in this.events)this.events[t].clear();for(const t in this.features)this.features[t].unmount();this.current=null}bindToMotionValue(t,r){const n=ao.has(t),o=r.on("change",s=>{this.latestValues[t]=s,this.props.onUpdate&&me.update(this.notifyUpdate,!1,!0),n&&this.projection&&(this.projection.isTransformDirty=!0)}),i=r.on("renderRequest",this.scheduleRender);this.valueSubscriptions.set(t,()=>{o(),i()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}loadFeatures({children:t,...r},n,o,i){let s,a;for(let l=0;lthis.scheduleRender(),animationType:typeof u=="string"?u:"both",initialPromotionConfig:i,layoutScroll:f,layoutRoot:p})}return a}updateFeatures(){for(const t in this.features){const r=this.features[t];r.isMounted?r.update():(r.mount(),r.isMounted=!0)}}triggerBuild(){this.build(this.renderState,this.latestValues,this.options,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):Fe()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,r){this.latestValues[t]=r}makeTargetAnimatable(t,r=!0){return this.makeTargetAnimatableFromInstance(t,this.props,r)}update(t,r){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=r;for(let n=0;nr.variantChildren.delete(t)}addValue(t,r){r!==this.values.get(t)&&(this.removeValue(t),this.bindToMotionValue(t,r)),this.values.set(t,r),this.latestValues[t]=r.get()}removeValue(t){this.values.delete(t);const r=this.valueSubscriptions.get(t);r&&(r(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,r){if(this.props.values&&this.props.values[t])return this.props.values[t];let n=this.values.get(t);return n===void 0&&r!==void 0&&(n=li(r,{owner:this}),this.addValue(t,n)),n}readValue(t){var r;return this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:(r=this.getBaseTargetFromProps(this.props,t))!==null&&r!==void 0?r:this.readValueFromInstance(this.current,t,this.options)}setBaseTarget(t,r){this.baseTarget[t]=r}getBaseTarget(t){var r;const{initial:n}=this.props,o=typeof n=="string"||typeof n=="object"?(r=Ap(this.props,n))===null||r===void 0?void 0:r[t]:void 0;if(n&&o!==void 0)return o;const i=this.getBaseTargetFromProps(this.props,t);return i!==void 0&&!St(i)?i:this.initialValues[t]!==void 0&&o===void 0?void 0:this.baseTarget[t]}on(t,r){return this.events[t]||(this.events[t]=new Bp),this.events[t].add(r)}notify(t,...r){this.events[t]&&this.events[t].notify(...r)}}class Ox extends tM{sortInstanceNodePosition(t,r){return t.compareDocumentPosition(r)&2?1:-1}getBaseTargetFromProps(t,r){return t.style?t.style[r]:void 0}removeValueFromRenderState(t,{vars:r,style:n}){delete r[t],delete n[t]}makeTargetAnimatableFromInstance({transition:t,transitionEnd:r,...n},{transformValues:o},i){let s=v8(n,t||{},this);if(o&&(r&&(r=o(r)),n&&(n=o(n)),s&&(s=o(s))),i){g8(this,n,s);const a=Y9(this,n,s,r);r=a.transitionEnd,n=a.target}return{transition:t,transitionEnd:r,...n}}}function rM(e){return window.getComputedStyle(e)}class nM extends Ox{readValueFromInstance(t,r){if(ao.has(r)){const n=Fp(r);return n&&n.default||0}else{const n=rM(t),o=(kS(r)?n.getPropertyValue(r):n[r])||0;return typeof o=="string"?o.trim():o}}measureInstanceViewportBox(t,{transformPagePoint:r}){return Cx(t,r)}build(t,r,n,o){Cp(t,r,n,o.transformTemplate)}scrapeMotionValuesFromProps(t,r){return $p(t,r)}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;St(t)&&(this.childSubscription=t.on("change",r=>{this.current&&(this.current.textContent=`${r}`)}))}renderInstance(t,r,n,o){$S(t,r,n,o)}}class oM extends Ox{constructor(){super(...arguments),this.isSVGTag=!1}getBaseTargetFromProps(t,r){return t[r]}readValueFromInstance(t,r){if(ao.has(r)){const n=Fp(r);return n&&n.default||0}return r=AS.has(r)?r:Ep(r),t.getAttribute(r)}measureInstanceViewportBox(){return Fe()}scrapeMotionValuesFromProps(t,r){return zS(t,r)}build(t,r,n,o){Tp(t,r,n,this.isSVGTag,o.transformTemplate)}renderInstance(t,r,n,o){RS(t,r,n,o)}mount(t){this.isSVGTag=Pp(t.tagName),super.mount(t)}}const iM=(e,t)=>kp(e)?new oM(t,{enableHardwareAcceleration:!1}):new nM(t,{enableHardwareAcceleration:!0}),sM={layout:{ProjectionNode:zx,MeasureLayout:_x}},aM={...z8,...ZR,...D9,...sM},lM=aR((e,t)=>BR(e,t,aM,iM));function jx(){const e=S.useRef(!1);return bp(()=>(e.current=!0,()=>{e.current=!1}),[]),e}function uM(){const e=jx(),[t,r]=S.useState(0),n=S.useCallback(()=>{e.current&&r(t+1)},[t]);return[S.useCallback(()=>me.postRender(n),[n]),t]}class cM extends S.Component{getSnapshotBeforeUpdate(t){const r=this.props.childRef.current;if(r&&t.isPresent&&!this.props.isPresent){const n=this.props.sizeRef.current;n.height=r.offsetHeight||0,n.width=r.offsetWidth||0,n.top=r.offsetTop,n.left=r.offsetLeft}return null}componentDidUpdate(){}render(){return this.props.children}}function dM({children:e,isPresent:t}){const r=S.useId(),n=S.useRef(null),o=S.useRef({width:0,height:0,top:0,left:0});return S.useInsertionEffect(()=>{const{width:i,height:s,top:a,left:l}=o.current;if(t||!n.current||!i||!s)return;n.current.dataset.motionPopId=r;const u=document.createElement("style");return document.head.appendChild(u),u.sheet&&u.sheet.insertRule(` + )`;return{...!n&&o&&i,...n?{bgImage:a}:{bgColor:s}}},PP={lineHeight:"1",fontSize:"0.25em",fontWeight:"bold",color:"white"},EP=e=>({bg:B("gray.100","whiteAlpha.300")(e)}),$P=e=>({transitionProperty:"common",transitionDuration:"slow",...TP(e)}),AP=Hi(e=>({label:PP,filledTrack:$P(e),track:EP(e)})),RP={xs:Hi({track:{h:"1"}}),sm:Hi({track:{h:"2"}}),md:Hi({track:{h:"3"}}),lg:Hi({track:{h:"4"}})},zP=_P({sizes:RP,baseStyle:AP,defaultProps:{size:"md",colorScheme:"blue"}}),MP=e=>typeof e=="function";function lt(e,...t){return MP(e)?e(...t):e}var{definePartsStyle:fl,defineMultiStyleConfig:LP}=ge(T3.keys),is=D("checkbox-size"),FP=e=>{const{colorScheme:t}=e;return{w:is.reference,h:is.reference,transitionProperty:"box-shadow",transitionDuration:"normal",border:"2px solid",borderRadius:"sm",borderColor:"inherit",color:"white",_checked:{bg:B(`${t}.500`,`${t}.200`)(e),borderColor:B(`${t}.500`,`${t}.200`)(e),color:B("white","gray.900")(e),_hover:{bg:B(`${t}.600`,`${t}.300`)(e),borderColor:B(`${t}.600`,`${t}.300`)(e)},_disabled:{borderColor:B("gray.200","transparent")(e),bg:B("gray.200","whiteAlpha.300")(e),color:B("gray.500","whiteAlpha.500")(e)}},_indeterminate:{bg:B(`${t}.500`,`${t}.200`)(e),borderColor:B(`${t}.500`,`${t}.200`)(e),color:B("white","gray.900")(e)},_disabled:{bg:B("gray.100","whiteAlpha.100")(e),borderColor:B("gray.100","transparent")(e)},_focusVisible:{boxShadow:"outline"},_invalid:{borderColor:B("red.500","red.300")(e)}}},OP={_disabled:{cursor:"not-allowed"}},jP={userSelect:"none",_disabled:{opacity:.4}},DP={transitionProperty:"transform",transitionDuration:"normal"},BP=fl(e=>({icon:DP,container:OP,control:lt(FP,e),label:jP})),IP={sm:fl({control:{[is.variable]:"sizes.3"},label:{fontSize:"sm"},icon:{fontSize:"3xs"}}),md:fl({control:{[is.variable]:"sizes.4"},label:{fontSize:"md"},icon:{fontSize:"2xs"}}),lg:fl({control:{[is.variable]:"sizes.5"},label:{fontSize:"lg"},icon:{fontSize:"2xs"}})},Jl=LP({baseStyle:BP,sizes:IP,defaultProps:{size:"md",colorScheme:"blue"}}),{defineMultiStyleConfig:NP,definePartsStyle:hl}=ge(D3.keys),VP=e=>{var t;const r=(t=lt(Jl.baseStyle,e))==null?void 0:t.control;return{...r,borderRadius:"full",_checked:{...r==null?void 0:r._checked,_before:{content:'""',display:"inline-block",pos:"relative",w:"50%",h:"50%",borderRadius:"50%",bg:"currentColor"}}}},UP=hl(e=>{var t,r,n,o;return{label:(r=(t=Jl).baseStyle)==null?void 0:r.call(t,e).label,container:(o=(n=Jl).baseStyle)==null?void 0:o.call(n,e).container,control:VP(e)}}),HP={md:hl({control:{w:"4",h:"4"},label:{fontSize:"md"}}),lg:hl({control:{w:"5",h:"5"},label:{fontSize:"lg"}}),sm:hl({control:{width:"3",height:"3"},label:{fontSize:"sm"}})},WP=NP({baseStyle:UP,sizes:HP,defaultProps:{size:"md",colorScheme:"blue"}}),{defineMultiStyleConfig:GP,definePartsStyle:KP}=ge(B3.keys),ja=D("select-bg"),hg,qP={...(hg=ne.baseStyle)==null?void 0:hg.field,appearance:"none",paddingBottom:"1px",lineHeight:"normal",bg:ja.reference,[ja.variable]:"colors.white",_dark:{[ja.variable]:"colors.gray.700"},"> option, > optgroup":{bg:ja.reference}},XP={width:"6",height:"100%",insetEnd:"2",position:"relative",color:"currentColor",fontSize:"xl",_disabled:{opacity:.5}},YP=KP({field:qP,icon:XP}),Da={paddingInlineEnd:"8"},pg,mg,gg,yg,vg,bg,Sg,xg,QP={lg:{...(pg=ne.sizes)==null?void 0:pg.lg,field:{...(mg=ne.sizes)==null?void 0:mg.lg.field,...Da}},md:{...(gg=ne.sizes)==null?void 0:gg.md,field:{...(yg=ne.sizes)==null?void 0:yg.md.field,...Da}},sm:{...(vg=ne.sizes)==null?void 0:vg.sm,field:{...(bg=ne.sizes)==null?void 0:bg.sm.field,...Da}},xs:{...(Sg=ne.sizes)==null?void 0:Sg.xs,field:{...(xg=ne.sizes)==null?void 0:xg.xs.field,...Da},icon:{insetEnd:"1"}}},ZP=GP({baseStyle:YP,sizes:QP,variants:ne.variants,defaultProps:ne.defaultProps}),Qc=D("skeleton-start-color"),Zc=D("skeleton-end-color"),JP={[Qc.variable]:"colors.gray.100",[Zc.variable]:"colors.gray.400",_dark:{[Qc.variable]:"colors.gray.800",[Zc.variable]:"colors.gray.600"},background:Qc.reference,borderColor:Zc.reference,opacity:.7,borderRadius:"sm"},eE={baseStyle:JP},Jc=D("skip-link-bg"),tE={borderRadius:"md",fontWeight:"semibold",_focusVisible:{boxShadow:"outline",padding:"4",position:"fixed",top:"6",insetStart:"6",[Jc.variable]:"colors.white",_dark:{[Jc.variable]:"colors.gray.700"},bg:Jc.reference}},rE={baseStyle:tE},{defineMultiStyleConfig:nE,definePartsStyle:Gu}=ge(I3.keys),Fs=D("slider-thumb-size"),Os=D("slider-track-size"),ln=D("slider-bg"),oE=e=>{const{orientation:t}=e;return{display:"inline-block",position:"relative",cursor:"pointer",_disabled:{opacity:.6,cursor:"default",pointerEvents:"none"},...mp({orientation:t,vertical:{h:"100%"},horizontal:{w:"100%"}})}},iE=e=>({...mp({orientation:e.orientation,horizontal:{h:Os.reference},vertical:{w:Os.reference}}),overflow:"hidden",borderRadius:"sm",[ln.variable]:"colors.gray.200",_dark:{[ln.variable]:"colors.whiteAlpha.200"},_disabled:{[ln.variable]:"colors.gray.300",_dark:{[ln.variable]:"colors.whiteAlpha.300"}},bg:ln.reference}),sE=e=>{const{orientation:t}=e;return{...mp({orientation:t,vertical:{left:"50%",transform:"translateX(-50%)",_active:{transform:"translateX(-50%) scale(1.15)"}},horizontal:{top:"50%",transform:"translateY(-50%)",_active:{transform:"translateY(-50%) scale(1.15)"}}}),w:Fs.reference,h:Fs.reference,display:"flex",alignItems:"center",justifyContent:"center",position:"absolute",outline:0,zIndex:1,borderRadius:"full",bg:"white",boxShadow:"base",border:"1px solid",borderColor:"transparent",transitionProperty:"transform",transitionDuration:"normal",_focusVisible:{boxShadow:"outline"},_disabled:{bg:"gray.300"}}},aE=e=>{const{colorScheme:t}=e;return{width:"inherit",height:"inherit",[ln.variable]:`colors.${t}.500`,_dark:{[ln.variable]:`colors.${t}.200`},bg:ln.reference}},lE=Gu(e=>({container:oE(e),track:iE(e),thumb:sE(e),filledTrack:aE(e)})),uE=Gu({container:{[Fs.variable]:"sizes.4",[Os.variable]:"sizes.1"}}),cE=Gu({container:{[Fs.variable]:"sizes.3.5",[Os.variable]:"sizes.1"}}),dE=Gu({container:{[Fs.variable]:"sizes.2.5",[Os.variable]:"sizes.0.5"}}),fE={lg:uE,md:cE,sm:dE},hE=nE({baseStyle:lE,sizes:fE,defaultProps:{size:"md",colorScheme:"blue"}}),Vn=Ue("spinner-size"),pE={width:[Vn.reference],height:[Vn.reference]},mE={xs:{[Vn.variable]:"sizes.3"},sm:{[Vn.variable]:"sizes.4"},md:{[Vn.variable]:"sizes.6"},lg:{[Vn.variable]:"sizes.8"},xl:{[Vn.variable]:"sizes.12"}},gE={baseStyle:pE,sizes:mE,defaultProps:{size:"md"}},{defineMultiStyleConfig:yE,definePartsStyle:Zb}=ge(N3.keys),vE={fontWeight:"medium"},bE={opacity:.8,marginBottom:"2"},SE={verticalAlign:"baseline",fontWeight:"semibold"},xE={marginEnd:1,w:"3.5",h:"3.5",verticalAlign:"middle"},wE=Zb({container:{},label:vE,helpText:bE,number:SE,icon:xE}),kE={md:Zb({label:{fontSize:"sm"},helpText:{fontSize:"sm"},number:{fontSize:"2xl"}})},CE=yE({baseStyle:wE,sizes:kE,defaultProps:{size:"md"}}),ed=D("kbd-bg"),_E={[ed.variable]:"colors.gray.100",_dark:{[ed.variable]:"colors.whiteAlpha.100"},bg:ed.reference,borderRadius:"md",borderWidth:"1px",borderBottomWidth:"3px",fontSize:"0.8em",fontWeight:"bold",lineHeight:"normal",px:"0.4em",whiteSpace:"nowrap"},TE={baseStyle:_E},PE={transitionProperty:"common",transitionDuration:"fast",transitionTimingFunction:"ease-out",cursor:"pointer",textDecoration:"none",outline:"none",color:"inherit",_hover:{textDecoration:"underline"},_focusVisible:{boxShadow:"outline"}},EE={baseStyle:PE},{defineMultiStyleConfig:$E,definePartsStyle:AE}=ge(z3.keys),RE={marginEnd:"2",display:"inline",verticalAlign:"text-bottom"},zE=AE({icon:RE}),ME=$E({baseStyle:zE}),{defineMultiStyleConfig:LE,definePartsStyle:FE}=ge(M3.keys),hr=D("menu-bg"),td=D("menu-shadow"),OE={[hr.variable]:"#fff",[td.variable]:"shadows.sm",_dark:{[hr.variable]:"colors.gray.700",[td.variable]:"shadows.dark-lg"},color:"inherit",minW:"3xs",py:"2",zIndex:1,borderRadius:"md",borderWidth:"1px",bg:hr.reference,boxShadow:td.reference},jE={py:"1.5",px:"3",transitionProperty:"background",transitionDuration:"ultra-fast",transitionTimingFunction:"ease-in",_focus:{[hr.variable]:"colors.gray.100",_dark:{[hr.variable]:"colors.whiteAlpha.100"}},_active:{[hr.variable]:"colors.gray.200",_dark:{[hr.variable]:"colors.whiteAlpha.200"}},_expanded:{[hr.variable]:"colors.gray.100",_dark:{[hr.variable]:"colors.whiteAlpha.100"}},_disabled:{opacity:.4,cursor:"not-allowed"},bg:hr.reference},DE={mx:4,my:2,fontWeight:"semibold",fontSize:"sm"},BE={display:"inline-flex",alignItems:"center",justifyContent:"center",flexShrink:0},IE={opacity:.6},NE={border:0,borderBottom:"1px solid",borderColor:"inherit",my:"2",opacity:.6},VE={transitionProperty:"common",transitionDuration:"normal"},UE=FE({button:VE,list:OE,item:jE,groupTitle:DE,icon:BE,command:IE,divider:NE}),HE=LE({baseStyle:UE}),{defineMultiStyleConfig:WE,definePartsStyle:zf}=ge(L3.keys),rd=D("modal-bg"),nd=D("modal-shadow"),GE={bg:"blackAlpha.600",zIndex:"modal"},KE=e=>{const{isCentered:t,scrollBehavior:r}=e;return{display:"flex",zIndex:"modal",justifyContent:"center",alignItems:t?"center":"flex-start",overflow:r==="inside"?"hidden":"auto",overscrollBehaviorY:"none"}},qE=e=>{const{isCentered:t,scrollBehavior:r}=e;return{borderRadius:"md",color:"inherit",my:t?"auto":"16",mx:t?"auto":void 0,zIndex:"modal",maxH:r==="inside"?"calc(100% - 7.5rem)":void 0,[rd.variable]:"colors.white",[nd.variable]:"shadows.lg",_dark:{[rd.variable]:"colors.gray.700",[nd.variable]:"shadows.dark-lg"},bg:rd.reference,boxShadow:nd.reference}},XE={px:"6",py:"4",fontSize:"xl",fontWeight:"semibold"},YE={position:"absolute",top:"2",insetEnd:"3"},QE=e=>{const{scrollBehavior:t}=e;return{px:"6",py:"2",flex:"1",overflow:t==="inside"?"auto":void 0}},ZE={px:"6",py:"4"},JE=zf(e=>({overlay:GE,dialogContainer:lt(KE,e),dialog:lt(qE,e),header:XE,closeButton:YE,body:lt(QE,e),footer:ZE}));function Zt(e){return zf(e==="full"?{dialog:{maxW:"100vw",minH:"$100vh",my:"0",borderRadius:"0"}}:{dialog:{maxW:e}})}var e6={xs:Zt("xs"),sm:Zt("sm"),md:Zt("md"),lg:Zt("lg"),xl:Zt("xl"),"2xl":Zt("2xl"),"3xl":Zt("3xl"),"4xl":Zt("4xl"),"5xl":Zt("5xl"),"6xl":Zt("6xl"),full:Zt("full")},t6=WE({baseStyle:JE,sizes:e6,defaultProps:{size:"md"}}),{defineMultiStyleConfig:r6,definePartsStyle:Jb}=ge(F3.keys),yp=Ue("number-input-stepper-width"),eS=Ue("number-input-input-padding"),n6=$r(yp).add("0.5rem").toString(),od=Ue("number-input-bg"),id=Ue("number-input-color"),sd=Ue("number-input-border-color"),o6={[yp.variable]:"sizes.6",[eS.variable]:n6},i6=e=>{var t,r;return(r=(t=lt(ne.baseStyle,e))==null?void 0:t.field)!=null?r:{}},s6={width:yp.reference},a6={borderStart:"1px solid",borderStartColor:sd.reference,color:id.reference,bg:od.reference,[id.variable]:"colors.chakra-body-text",[sd.variable]:"colors.chakra-border-color",_dark:{[id.variable]:"colors.whiteAlpha.800",[sd.variable]:"colors.whiteAlpha.300"},_active:{[od.variable]:"colors.gray.200",_dark:{[od.variable]:"colors.whiteAlpha.300"}},_disabled:{opacity:.4,cursor:"not-allowed"}},l6=Jb(e=>{var t;return{root:o6,field:(t=lt(i6,e))!=null?t:{},stepperGroup:s6,stepper:a6}});function Ba(e){var t,r,n;const o=(t=ne.sizes)==null?void 0:t[e],i={lg:"md",md:"md",sm:"sm",xs:"sm"},s=(n=(r=o.field)==null?void 0:r.fontSize)!=null?n:"md",a=Kb.fontSizes[s];return Jb({field:{...o.field,paddingInlineEnd:eS.reference,verticalAlign:"top"},stepper:{fontSize:$r(a).multiply(.75).toString(),_first:{borderTopEndRadius:i[e]},_last:{borderBottomEndRadius:i[e],mt:"-1px",borderTopWidth:1}}})}var u6={xs:Ba("xs"),sm:Ba("sm"),md:Ba("md"),lg:Ba("lg")},c6=r6({baseStyle:l6,sizes:u6,variants:ne.variants,defaultProps:ne.defaultProps}),wg,d6={...(wg=ne.baseStyle)==null?void 0:wg.field,textAlign:"center"},f6={lg:{fontSize:"lg",w:12,h:12,borderRadius:"md"},md:{fontSize:"md",w:10,h:10,borderRadius:"md"},sm:{fontSize:"sm",w:8,h:8,borderRadius:"sm"},xs:{fontSize:"xs",w:6,h:6,borderRadius:"sm"}},kg,Cg,h6={outline:e=>{var t,r,n;return(n=(r=lt((t=ne.variants)==null?void 0:t.outline,e))==null?void 0:r.field)!=null?n:{}},flushed:e=>{var t,r,n;return(n=(r=lt((t=ne.variants)==null?void 0:t.flushed,e))==null?void 0:r.field)!=null?n:{}},filled:e=>{var t,r,n;return(n=(r=lt((t=ne.variants)==null?void 0:t.filled,e))==null?void 0:r.field)!=null?n:{}},unstyled:(Cg=(kg=ne.variants)==null?void 0:kg.unstyled.field)!=null?Cg:{}},p6={baseStyle:d6,sizes:f6,variants:h6,defaultProps:ne.defaultProps},{defineMultiStyleConfig:m6,definePartsStyle:g6}=ge(O3.keys),Ia=Ue("popper-bg"),y6=Ue("popper-arrow-bg"),_g=Ue("popper-arrow-shadow-color"),v6={zIndex:10},b6={[Ia.variable]:"colors.white",bg:Ia.reference,[y6.variable]:Ia.reference,[_g.variable]:"colors.gray.200",_dark:{[Ia.variable]:"colors.gray.700",[_g.variable]:"colors.whiteAlpha.300"},width:"xs",border:"1px solid",borderColor:"inherit",borderRadius:"md",boxShadow:"sm",zIndex:"inherit",_focusVisible:{outline:0,boxShadow:"outline"}},S6={px:3,py:2,borderBottomWidth:"1px"},x6={px:3,py:2},w6={px:3,py:2,borderTopWidth:"1px"},k6={position:"absolute",borderRadius:"md",top:1,insetEnd:2,padding:2},C6=g6({popper:v6,content:b6,header:S6,body:x6,footer:w6,closeButton:k6}),_6=m6({baseStyle:C6}),{definePartsStyle:Mf,defineMultiStyleConfig:T6}=ge(P3.keys),ad=D("drawer-bg"),ld=D("drawer-box-shadow");function go(e){return Mf(e==="full"?{dialog:{maxW:"100vw",h:"100vh"}}:{dialog:{maxW:e}})}var P6={bg:"blackAlpha.600",zIndex:"modal"},E6={display:"flex",zIndex:"modal",justifyContent:"center"},$6=e=>{const{isFullHeight:t}=e;return{...t&&{height:"100vh"},zIndex:"modal",maxH:"100vh",color:"inherit",[ad.variable]:"colors.white",[ld.variable]:"shadows.lg",_dark:{[ad.variable]:"colors.gray.700",[ld.variable]:"shadows.dark-lg"},bg:ad.reference,boxShadow:ld.reference}},A6={px:"6",py:"4",fontSize:"xl",fontWeight:"semibold"},R6={position:"absolute",top:"2",insetEnd:"3"},z6={px:"6",py:"2",flex:"1",overflow:"auto"},M6={px:"6",py:"4"},L6=Mf(e=>({overlay:P6,dialogContainer:E6,dialog:lt($6,e),header:A6,closeButton:R6,body:z6,footer:M6})),F6={xs:go("xs"),sm:go("md"),md:go("lg"),lg:go("2xl"),xl:go("4xl"),full:go("full")},O6=T6({baseStyle:L6,sizes:F6,defaultProps:{size:"xs"}}),{definePartsStyle:j6,defineMultiStyleConfig:D6}=ge(E3.keys),B6={borderRadius:"md",py:"1",transitionProperty:"common",transitionDuration:"normal"},I6={borderRadius:"md",py:"1",transitionProperty:"common",transitionDuration:"normal",width:"full",_focusVisible:{boxShadow:"outline"},_placeholder:{opacity:.6}},N6={borderRadius:"md",py:"1",transitionProperty:"common",transitionDuration:"normal",width:"full",_focusVisible:{boxShadow:"outline"},_placeholder:{opacity:.6}},V6=j6({preview:B6,input:I6,textarea:N6}),U6=D6({baseStyle:V6}),{definePartsStyle:H6,defineMultiStyleConfig:W6}=ge($3.keys),Xo=D("form-control-color"),G6={marginStart:"1",[Xo.variable]:"colors.red.500",_dark:{[Xo.variable]:"colors.red.300"},color:Xo.reference},K6={mt:"2",[Xo.variable]:"colors.gray.600",_dark:{[Xo.variable]:"colors.whiteAlpha.600"},color:Xo.reference,lineHeight:"normal",fontSize:"sm"},q6=H6({container:{width:"100%",position:"relative"},requiredIndicator:G6,helperText:K6}),X6=W6({baseStyle:q6}),{definePartsStyle:Y6,defineMultiStyleConfig:Q6}=ge(A3.keys),Yo=D("form-error-color"),Z6={[Yo.variable]:"colors.red.500",_dark:{[Yo.variable]:"colors.red.300"},color:Yo.reference,mt:"2",fontSize:"sm",lineHeight:"normal"},J6={marginEnd:"0.5em",[Yo.variable]:"colors.red.500",_dark:{[Yo.variable]:"colors.red.300"},color:Yo.reference},e$=Y6({text:Z6,icon:J6}),t$=Q6({baseStyle:e$}),r$={fontSize:"md",marginEnd:"3",mb:"2",fontWeight:"medium",transitionProperty:"common",transitionDuration:"normal",opacity:1,_disabled:{opacity:.4}},n$={baseStyle:r$},o$={fontFamily:"heading",fontWeight:"bold"},i$={"4xl":{fontSize:["6xl",null,"7xl"],lineHeight:1},"3xl":{fontSize:["5xl",null,"6xl"],lineHeight:1},"2xl":{fontSize:["4xl",null,"5xl"],lineHeight:[1.2,null,1]},xl:{fontSize:["3xl",null,"4xl"],lineHeight:[1.33,null,1.2]},lg:{fontSize:["2xl",null,"3xl"],lineHeight:[1.33,null,1.2]},md:{fontSize:"xl",lineHeight:1.2},sm:{fontSize:"md",lineHeight:1.2},xs:{fontSize:"sm",lineHeight:1.2}},s$={baseStyle:o$,sizes:i$,defaultProps:{size:"xl"}},{defineMultiStyleConfig:a$,definePartsStyle:l$}=ge(_3.keys),ud=D("breadcrumb-link-decor"),u$={transitionProperty:"common",transitionDuration:"fast",transitionTimingFunction:"ease-out",outline:"none",color:"inherit",textDecoration:ud.reference,[ud.variable]:"none","&:not([aria-current=page])":{cursor:"pointer",_hover:{[ud.variable]:"underline"},_focusVisible:{boxShadow:"outline"}}},c$=l$({link:u$}),d$=a$({baseStyle:c$}),f$={lineHeight:"1.2",borderRadius:"md",fontWeight:"semibold",transitionProperty:"common",transitionDuration:"normal",_focusVisible:{boxShadow:"outline"},_disabled:{opacity:.4,cursor:"not-allowed",boxShadow:"none"},_hover:{_disabled:{bg:"initial"}}},tS=e=>{const{colorScheme:t,theme:r}=e;if(t==="gray")return{color:B("gray.800","whiteAlpha.900")(e),_hover:{bg:B("gray.100","whiteAlpha.200")(e)},_active:{bg:B("gray.200","whiteAlpha.300")(e)}};const n=si(`${t}.200`,.12)(r),o=si(`${t}.200`,.24)(r);return{color:B(`${t}.600`,`${t}.200`)(e),bg:"transparent",_hover:{bg:B(`${t}.50`,n)(e)},_active:{bg:B(`${t}.100`,o)(e)}}},h$=e=>{const{colorScheme:t}=e,r=B("gray.200","whiteAlpha.300")(e);return{border:"1px solid",borderColor:t==="gray"?r:"currentColor",".chakra-button__group[data-attached][data-orientation=horizontal] > &:not(:last-of-type)":{marginEnd:"-1px"},".chakra-button__group[data-attached][data-orientation=vertical] > &:not(:last-of-type)":{marginBottom:"-1px"},...lt(tS,e)}},p$={yellow:{bg:"yellow.400",color:"black",hoverBg:"yellow.500",activeBg:"yellow.600"},cyan:{bg:"cyan.400",color:"black",hoverBg:"cyan.500",activeBg:"cyan.600"}},m$=e=>{var t;const{colorScheme:r}=e;if(r==="gray"){const l=B("gray.100","whiteAlpha.200")(e);return{bg:l,color:B("gray.800","whiteAlpha.900")(e),_hover:{bg:B("gray.200","whiteAlpha.300")(e),_disabled:{bg:l}},_active:{bg:B("gray.300","whiteAlpha.400")(e)}}}const{bg:n=`${r}.500`,color:o="white",hoverBg:i=`${r}.600`,activeBg:s=`${r}.700`}=(t=p$[r])!=null?t:{},a=B(n,`${r}.200`)(e);return{bg:a,color:B(o,"gray.800")(e),_hover:{bg:B(i,`${r}.300`)(e),_disabled:{bg:a}},_active:{bg:B(s,`${r}.400`)(e)}}},g$=e=>{const{colorScheme:t}=e;return{padding:0,height:"auto",lineHeight:"normal",verticalAlign:"baseline",color:B(`${t}.500`,`${t}.200`)(e),_hover:{textDecoration:"underline",_disabled:{textDecoration:"none"}},_active:{color:B(`${t}.700`,`${t}.500`)(e)}}},y$={bg:"none",color:"inherit",display:"inline",lineHeight:"inherit",m:"0",p:"0"},v$={ghost:tS,outline:h$,solid:m$,link:g$,unstyled:y$},b$={lg:{h:"12",minW:"12",fontSize:"lg",px:"6"},md:{h:"10",minW:"10",fontSize:"md",px:"4"},sm:{h:"8",minW:"8",fontSize:"sm",px:"3"},xs:{h:"6",minW:"6",fontSize:"xs",px:"2"}},S$={baseStyle:f$,variants:v$,sizes:b$,defaultProps:{variant:"solid",size:"md",colorScheme:"gray"}},{definePartsStyle:Zn,defineMultiStyleConfig:x$}=ge(G3.keys),eu=D("card-bg"),Or=D("card-padding"),rS=D("card-shadow"),pl=D("card-radius"),nS=D("card-border-width","0"),oS=D("card-border-color"),w$=Zn({container:{[eu.variable]:"colors.chakra-body-bg",backgroundColor:eu.reference,boxShadow:rS.reference,borderRadius:pl.reference,color:"chakra-body-text",borderWidth:nS.reference,borderColor:oS.reference},body:{padding:Or.reference,flex:"1 1 0%"},header:{padding:Or.reference},footer:{padding:Or.reference}}),k$={sm:Zn({container:{[pl.variable]:"radii.base",[Or.variable]:"space.3"}}),md:Zn({container:{[pl.variable]:"radii.md",[Or.variable]:"space.5"}}),lg:Zn({container:{[pl.variable]:"radii.xl",[Or.variable]:"space.7"}})},C$={elevated:Zn({container:{[rS.variable]:"shadows.base",_dark:{[eu.variable]:"colors.gray.700"}}}),outline:Zn({container:{[nS.variable]:"1px",[oS.variable]:"colors.chakra-border-color"}}),filled:Zn({container:{[eu.variable]:"colors.chakra-subtle-bg"}}),unstyled:{body:{[Or.variable]:0},header:{[Or.variable]:0},footer:{[Or.variable]:0}}},_$=x$({baseStyle:w$,variants:C$,sizes:k$,defaultProps:{variant:"elevated",size:"md"}}),ss=Ue("close-button-size"),zi=Ue("close-button-bg"),T$={w:[ss.reference],h:[ss.reference],borderRadius:"md",transitionProperty:"common",transitionDuration:"normal",_disabled:{opacity:.4,cursor:"not-allowed",boxShadow:"none"},_hover:{[zi.variable]:"colors.blackAlpha.100",_dark:{[zi.variable]:"colors.whiteAlpha.100"}},_active:{[zi.variable]:"colors.blackAlpha.200",_dark:{[zi.variable]:"colors.whiteAlpha.200"}},_focusVisible:{boxShadow:"outline"},bg:zi.reference},P$={lg:{[ss.variable]:"sizes.10",fontSize:"md"},md:{[ss.variable]:"sizes.8",fontSize:"xs"},sm:{[ss.variable]:"sizes.6",fontSize:"2xs"}},E$={baseStyle:T$,sizes:P$,defaultProps:{size:"md"}},{variants:$$,defaultProps:A$}=os,R$={fontFamily:"mono",fontSize:"sm",px:"0.2em",borderRadius:"sm",bg:Me.bg.reference,color:Me.color.reference,boxShadow:Me.shadow.reference},z$={baseStyle:R$,variants:$$,defaultProps:A$},M$={w:"100%",mx:"auto",maxW:"prose",px:"4"},L$={baseStyle:M$},F$={opacity:.6,borderColor:"inherit"},O$={borderStyle:"solid"},j$={borderStyle:"dashed"},D$={solid:O$,dashed:j$},B$={baseStyle:F$,variants:D$,defaultProps:{variant:"solid"}},{definePartsStyle:I$,defineMultiStyleConfig:N$}=ge(w3.keys),V$={borderTopWidth:"1px",borderColor:"inherit",_last:{borderBottomWidth:"1px"}},U$={transitionProperty:"common",transitionDuration:"normal",fontSize:"md",_focusVisible:{boxShadow:"outline"},_hover:{bg:"blackAlpha.50"},_disabled:{opacity:.4,cursor:"not-allowed"},px:"4",py:"2"},H$={pt:"2",px:"4",pb:"5"},W$={fontSize:"1.25em"},G$=I$({container:V$,button:U$,panel:H$,icon:W$}),K$=N$({baseStyle:G$}),{definePartsStyle:Ys,defineMultiStyleConfig:q$}=ge(k3.keys),$t=D("alert-fg"),Hr=D("alert-bg"),X$=Ys({container:{bg:Hr.reference,px:"4",py:"3"},title:{fontWeight:"bold",lineHeight:"6",marginEnd:"2"},description:{lineHeight:"6"},icon:{color:$t.reference,flexShrink:0,marginEnd:"3",w:"5",h:"6"},spinner:{color:$t.reference,flexShrink:0,marginEnd:"3",w:"5",h:"5"}});function vp(e){const{theme:t,colorScheme:r}=e,n=si(`${r}.200`,.16)(t);return{light:`colors.${r}.100`,dark:n}}var Y$=Ys(e=>{const{colorScheme:t}=e,r=vp(e);return{container:{[$t.variable]:`colors.${t}.500`,[Hr.variable]:r.light,_dark:{[$t.variable]:`colors.${t}.200`,[Hr.variable]:r.dark}}}}),Q$=Ys(e=>{const{colorScheme:t}=e,r=vp(e);return{container:{[$t.variable]:`colors.${t}.500`,[Hr.variable]:r.light,_dark:{[$t.variable]:`colors.${t}.200`,[Hr.variable]:r.dark},paddingStart:"3",borderStartWidth:"4px",borderStartColor:$t.reference}}}),Z$=Ys(e=>{const{colorScheme:t}=e,r=vp(e);return{container:{[$t.variable]:`colors.${t}.500`,[Hr.variable]:r.light,_dark:{[$t.variable]:`colors.${t}.200`,[Hr.variable]:r.dark},pt:"2",borderTopWidth:"4px",borderTopColor:$t.reference}}}),J$=Ys(e=>{const{colorScheme:t}=e;return{container:{[$t.variable]:"colors.white",[Hr.variable]:`colors.${t}.500`,_dark:{[$t.variable]:"colors.gray.900",[Hr.variable]:`colors.${t}.200`},color:$t.reference}}}),eA={subtle:Y$,"left-accent":Q$,"top-accent":Z$,solid:J$},tA=q$({baseStyle:X$,variants:eA,defaultProps:{variant:"subtle",colorScheme:"blue"}}),{definePartsStyle:iS,defineMultiStyleConfig:rA}=ge(C3.keys),Qo=D("avatar-border-color"),as=D("avatar-bg"),js=D("avatar-font-size"),ai=D("avatar-size"),nA={borderRadius:"full",border:"0.2em solid",borderColor:Qo.reference,[Qo.variable]:"white",_dark:{[Qo.variable]:"colors.gray.800"}},oA={bg:as.reference,fontSize:js.reference,width:ai.reference,height:ai.reference,lineHeight:"1",[as.variable]:"colors.gray.200",_dark:{[as.variable]:"colors.whiteAlpha.400"}},iA=e=>{const{name:t,theme:r}=e,n=t?fT({string:t}):"colors.gray.400",o=cT(n)(r);let i="white";return o||(i="gray.800"),{bg:as.reference,fontSize:js.reference,color:i,borderColor:Qo.reference,verticalAlign:"top",width:ai.reference,height:ai.reference,"&:not([data-loaded])":{[as.variable]:n},[Qo.variable]:"colors.white",_dark:{[Qo.variable]:"colors.gray.800"}}},sA={fontSize:js.reference,lineHeight:"1"},aA=iS(e=>({badge:lt(nA,e),excessLabel:lt(oA,e),container:lt(iA,e),label:sA}));function Jr(e){const t=e!=="100%"?Xb[e]:void 0;return iS({container:{[ai.variable]:t??e,[js.variable]:`calc(${t??e} / 2.5)`},excessLabel:{[ai.variable]:t??e,[js.variable]:`calc(${t??e} / 2.5)`}})}var lA={"2xs":Jr(4),xs:Jr(6),sm:Jr(8),md:Jr(12),lg:Jr(16),xl:Jr(24),"2xl":Jr(32),full:Jr("100%")},uA=rA({baseStyle:aA,sizes:lA,defaultProps:{size:"md"}}),cA={Accordion:K$,Alert:tA,Avatar:uA,Badge:os,Breadcrumb:d$,Button:S$,Checkbox:Jl,CloseButton:E$,Code:z$,Container:L$,Divider:B$,Drawer:O6,Editable:U6,Form:X6,FormError:t$,FormLabel:n$,Heading:s$,Input:ne,Kbd:TE,Link:EE,List:ME,Menu:HE,Modal:t6,NumberInput:c6,PinInput:p6,Popover:_6,Progress:zP,Radio:WP,Select:ZP,Skeleton:eE,SkipLink:rE,Slider:hE,Spinner:gE,Stat:CE,Switch:ET,Table:FT,Tabs:YT,Tag:uP,Textarea:xP,Tooltip:CP,Card:_$,Stepper:x3},dA={colors:{"chakra-body-text":{_light:"gray.800",_dark:"whiteAlpha.900"},"chakra-body-bg":{_light:"white",_dark:"gray.800"},"chakra-border-color":{_light:"gray.200",_dark:"whiteAlpha.300"},"chakra-inverse-text":{_light:"white",_dark:"gray.800"},"chakra-subtle-bg":{_light:"gray.100",_dark:"gray.700"},"chakra-subtle-text":{_light:"gray.600",_dark:"gray.400"},"chakra-placeholder-color":{_light:"gray.500",_dark:"whiteAlpha.400"}}},fA={global:{body:{fontFamily:"body",color:"chakra-body-text",bg:"chakra-body-bg",transitionProperty:"background-color",transitionDuration:"normal",lineHeight:"base"},"*::placeholder":{color:"chakra-placeholder-color"},"*, *::before, &::after":{borderColor:"chakra-border-color"}}},hA="ltr",pA={useSystemColorMode:!1,initialColorMode:"light",cssVarPrefix:"chakra"},sS={semanticTokens:dA,direction:hA,...v3,components:cA,styles:fA,config:pA};function Wi(e){return typeof e=="function"}function mA(...e){return t=>e.reduce((r,n)=>n(r),t)}var gA=e=>function(...r){let n=[...r],o=r[r.length-1];return q_(o)&&n.length>1?n=n.slice(0,n.length-1):o=e,mA(...n.map(i=>s=>Wi(i)?i(s):vA(s,i)))(o)},yA=gA(sS);function vA(...e){return Ht({},...e,aS)}function aS(e,t,r,n){if((Wi(e)||Wi(t))&&Object.prototype.hasOwnProperty.call(n,r))return(...o)=>{const i=Wi(e)?e(...o):e,s=Wi(t)?t(...o):t;return Ht({},i,s,aS)}}function bA(e,t){const r={};return Object.keys(e).forEach(n=>{t.includes(n)||(r[n]=e[n])}),r}function SA(e,t,r,n){const o=typeof t=="string"?t.split("."):[t];for(n=0;n{const t=new WeakMap;return(n,o,i,s)=>{if(typeof n>"u")return e(n,o,i);t.has(n)||t.set(n,new Map);const a=t.get(n);if(a.has(o))return a.get(o);const l=e(n,o,i,s);return a.set(o,l),l}},lS=xA(SA);function uS(e,t){const r={};return Object.keys(e).forEach(n=>{const o=e[n];t(o,n,e)&&(r[n]=o)}),r}var cS=e=>uS(e,t=>t!=null);function wA(e){return typeof e=="function"}function dS(e,...t){return wA(e)?e(...t):e}var kA=typeof Element<"u",CA=typeof Map=="function",_A=typeof Set=="function",TA=typeof ArrayBuffer=="function"&&!!ArrayBuffer.isView;function ml(e,t){if(e===t)return!0;if(e&&t&&typeof e=="object"&&typeof t=="object"){if(e.constructor!==t.constructor)return!1;var r,n,o;if(Array.isArray(e)){if(r=e.length,r!=t.length)return!1;for(n=r;n--!==0;)if(!ml(e[n],t[n]))return!1;return!0}var i;if(CA&&e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(i=e.entries();!(n=i.next()).done;)if(!t.has(n.value[0]))return!1;for(i=e.entries();!(n=i.next()).done;)if(!ml(n.value[1],t.get(n.value[0])))return!1;return!0}if(_A&&e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(i=e.entries();!(n=i.next()).done;)if(!t.has(n.value[0]))return!1;return!0}if(TA&&ArrayBuffer.isView(e)&&ArrayBuffer.isView(t)){if(r=e.length,r!=t.length)return!1;for(n=r;n--!==0;)if(e[n]!==t[n])return!1;return!0}if(e.constructor===RegExp)return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf&&typeof e.valueOf=="function"&&typeof t.valueOf=="function")return e.valueOf()===t.valueOf();if(e.toString!==Object.prototype.toString&&typeof e.toString=="function"&&typeof t.toString=="function")return e.toString()===t.toString();if(o=Object.keys(e),r=o.length,r!==Object.keys(t).length)return!1;for(n=r;n--!==0;)if(!Object.prototype.hasOwnProperty.call(t,o[n]))return!1;if(kA&&e instanceof Element)return!1;for(n=r;n--!==0;)if(!((o[n]==="_owner"||o[n]==="__v"||o[n]==="__o")&&e.$$typeof)&&!ml(e[o[n]],t[o[n]]))return!1;return!0}return e!==e&&t!==t}var PA=function(t,r){try{return ml(t,r)}catch(n){if((n.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw n}};const EA=ih(PA);function fS(e,t={}){var r;const{styleConfig:n,...o}=t,{theme:i,colorMode:s}=P4(),a=e?lS(i,`components.${e}`):void 0,l=n||a,u=Ht({theme:i,colorMode:s},(r=l==null?void 0:l.defaultProps)!=null?r:{},cS(bA(o,["children"]))),c=S.useRef({});if(l){const f=G_(l)(u);EA(c.current,f)||(c.current=f)}return c.current}function An(e,t={}){return fS(e,t)}function Qs(e,t={}){return fS(e,t)}var $A=new Set([...L_,"textStyle","layerStyle","apply","noOfLines","focusBorderColor","errorBorderColor","as","__css","css","sx"]),AA=new Set(["htmlWidth","htmlHeight","htmlSize","htmlTranslate"]);function RA(e){return AA.has(e)||!$A.has(e)}function zA(e,...t){if(e==null)throw new TypeError("Cannot convert undefined or null to object");const r={...e};for(const n of t)if(n!=null)for(const o in n)Object.prototype.hasOwnProperty.call(n,o)&&(o in r&&delete r[o],r[o]=n[o]);return r}function hS(e){const t=Object.assign({},e);for(let r in t)t[r]===void 0&&delete t[r];return t}var MA=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,LA=wb(function(e){return MA.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),FA=LA,OA=function(t){return t!=="theme"},Tg=function(t){return typeof t=="string"&&t.charCodeAt(0)>96?FA:OA},Pg=function(t,r,n){var o;if(r){var i=r.shouldForwardProp;o=t.__emotion_forwardProp&&i?function(s){return t.__emotion_forwardProp(s)&&i(s)}:i}return typeof o!="function"&&n&&(o=t.__emotion_forwardProp),o},jA=function(t){var r=t.cache,n=t.serialized,o=t.isStringTag;return Eb(r,n,o),o4(function(){return $b(r,n,o)}),null},DA=function e(t,r){var n=t.__emotion_real===t,o=n&&t.__emotion_base||t,i,s;r!==void 0&&(i=r.label,s=r.target);var a=Pg(t,r,n),l=a||Tg(o),u=!l("as");return function(){var c=arguments,d=n&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(i!==void 0&&d.push("label:"+i+";"),c[0]==null||c[0].raw===void 0)d.push.apply(d,c);else{d.push(c[0][0]);for(var f=c.length,p=1;pt=>{const{theme:r,css:n,__css:o,sx:i,...s}=t,a=uS(s,(d,f)=>O_(f)),l=dS(e,t),u=zA({},o,l,cS(a),i),c=Gb(u)(t.theme);return n?[c,n]:c};function cd(e,t){const{baseStyle:r,...n}=t??{};n.shouldForwardProp||(n.shouldForwardProp=RA);const o=NA({baseStyle:r}),i=IA(e,n)(o);return Tt.forwardRef(function(l,u){const{colorMode:c,forced:d}=Vu();return Tt.createElement(i,{ref:u,"data-theme":d?c:void 0,...l})})}function VA(){const e=new Map;return new Proxy(cd,{apply(t,r,n){return cd(...n)},get(t,r){return e.has(r)||e.set(r,cd(r)),e.get(r)}})}var H=VA();function se(e){return S.forwardRef(e)}function pS(e={}){const{strict:t=!0,errorMessage:r="useContext: `context` is undefined. Seems you forgot to wrap component within the Provider",name:n}=e,o=S.createContext(void 0);o.displayName=n;function i(){var s;const a=S.useContext(o);if(!a&&t){const l=new Error(r);throw l.name="ContextError",(s=Error.captureStackTrace)==null||s.call(Error,l,i),l}return a}return[o.Provider,i,o]}function UA(e){const{cssVarsRoot:t,theme:r,children:n}=e,o=S.useMemo(()=>M_(r),[r]);return _.jsxs(a4,{theme:o,children:[_.jsx(HA,{root:t}),n]})}function HA({root:e=":host, :root"}){const t=[e,"[data-theme]"].join(",");return _.jsx(Iu,{styles:r=>({[t]:r.__cssVars})})}pS({name:"StylesContext",errorMessage:"useStyles: `styles` is undefined. Seems you forgot to wrap the components in `` "});function WA(e){return pS({name:`${e}StylesContext`,errorMessage:`useStyles: "styles" is undefined. Seems you forgot to wrap the components in "<${e} />" `})}function GA(){const{colorMode:e}=Vu();return _.jsx(Iu,{styles:t=>{const r=lS(t,"styles.global"),n=dS(r,{theme:t,colorMode:e});return n?Gb(n)(t):void 0}})}var bp=S.createContext({getDocument(){return document},getWindow(){return window}});bp.displayName="EnvironmentContext";function KA({defer:e}={}){const[,t]=S.useReducer(r=>r+1,0);return Fr(()=>{e&&t()},[e]),S.useContext(bp)}function mS(e){const{children:t,environment:r,disabled:n}=e,o=S.useRef(null),i=S.useMemo(()=>r||{getDocument:()=>{var a,l;return(l=(a=o.current)==null?void 0:a.ownerDocument)!=null?l:document},getWindow:()=>{var a,l;return(l=(a=o.current)==null?void 0:a.ownerDocument.defaultView)!=null?l:window}},[r]),s=!n||!r;return _.jsxs(bp.Provider,{value:i,children:[t,s&&_.jsx("span",{id:"__chakra_env",hidden:!0,ref:o})]})}mS.displayName="EnvironmentProvider";var qA=e=>{const{children:t,colorModeManager:r,portalZIndex:n,resetScope:o,resetCSS:i=!0,theme:s={},environment:a,cssVarsRoot:l,disableEnvironment:u,disableGlobalStyle:c}=e,d=_.jsx(mS,{environment:a,disabled:u,children:t});return _.jsx(UA,{theme:s,cssVarsRoot:l,children:_.jsxs(Db,{colorModeManager:r,options:s.config,children:[i?_.jsx(c4,{scope:o}):_.jsx(u4,{}),!c&&_.jsx(GA,{}),n?_.jsx(Ob,{zIndex:n,children:d}):d]})})},XA=(e,t)=>e.find(r=>r.id===t);function $g(e,t){const r=gS(e,t),n=r?e[r].findIndex(o=>o.id===t):-1;return{position:r,index:n}}function gS(e,t){for(const[r,n]of Object.entries(e))if(XA(n,t))return r}function YA(e){const t=e.includes("right"),r=e.includes("left");let n="center";return t&&(n="flex-end"),r&&(n="flex-start"),{display:"flex",flexDirection:"column",alignItems:n}}function QA(e){const r=e==="top"||e==="bottom"?"0 auto":void 0,n=e.includes("top")?"env(safe-area-inset-top, 0px)":void 0,o=e.includes("bottom")?"env(safe-area-inset-bottom, 0px)":void 0,i=e.includes("left")?void 0:"env(safe-area-inset-right, 0px)",s=e.includes("right")?void 0:"env(safe-area-inset-left, 0px)";return{position:"fixed",zIndex:"var(--toast-z-index, 5500)",pointerEvents:"none",display:"flex",flexDirection:"column",margin:r,top:n,bottom:o,right:i,left:s}}function gl(e,t=[]){const r=S.useRef(e);return S.useEffect(()=>{r.current=e}),S.useCallback((...n)=>{var o;return(o=r.current)==null?void 0:o.call(r,...n)},t)}function ZA(e,t){const r=gl(e);S.useEffect(()=>{if(t==null)return;let n=null;return n=window.setTimeout(()=>{r()},t),()=>{n&&window.clearTimeout(n)}},[t,r])}function Lf(e,t){const r=S.useRef(!1),n=S.useRef(!1);S.useEffect(()=>{if(r.current&&n.current)return e();n.current=!0},t),S.useEffect(()=>(r.current=!0,()=>{r.current=!1}),[])}const yS=S.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"}),Ku=S.createContext({}),Zs=S.createContext(null),qu=typeof document<"u",Sp=qu?S.useLayoutEffect:S.useEffect,vS=S.createContext({strict:!1});function JA(e,t,r,n){const{visualElement:o}=S.useContext(Ku),i=S.useContext(vS),s=S.useContext(Zs),a=S.useContext(yS).reducedMotion,l=S.useRef();n=n||i.renderer,!l.current&&n&&(l.current=n(e,{visualState:t,parent:o,props:r,presenceContext:s,blockInitialAnimation:s?s.initial===!1:!1,reducedMotionConfig:a}));const u=l.current;S.useInsertionEffect(()=>{u&&u.update(r,s)});const c=S.useRef(!!window.HandoffAppearAnimations);return Sp(()=>{u&&(u.render(),c.current&&u.animationState&&u.animationState.animateChanges())}),S.useEffect(()=>{u&&(u.updateFeatures(),!c.current&&u.animationState&&u.animationState.animateChanges(),window.HandoffAppearAnimations=void 0,c.current=!1)}),u}function jo(e){return typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function eR(e,t,r){return S.useCallback(n=>{n&&e.mount&&e.mount(n),t&&(n?t.mount(n):t.unmount()),r&&(typeof r=="function"?r(n):jo(r)&&(r.current=n))},[t])}function Ds(e){return typeof e=="string"||Array.isArray(e)}function Xu(e){return typeof e=="object"&&typeof e.start=="function"}const xp=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],wp=["initial",...xp];function Yu(e){return Xu(e.animate)||wp.some(t=>Ds(e[t]))}function bS(e){return!!(Yu(e)||e.variants)}function tR(e,t){if(Yu(e)){const{initial:r,animate:n}=e;return{initial:r===!1||Ds(r)?r:void 0,animate:Ds(n)?n:void 0}}return e.inherit!==!1?t:{}}function rR(e){const{initial:t,animate:r}=tR(e,S.useContext(Ku));return S.useMemo(()=>({initial:t,animate:r}),[Ag(t),Ag(r)])}function Ag(e){return Array.isArray(e)?e.join(" "):e}const Rg={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},Bs={};for(const e in Rg)Bs[e]={isEnabled:t=>Rg[e].some(r=>!!t[r])};function nR(e){for(const t in e)Bs[t]={...Bs[t],...e[t]}}const kp=S.createContext({}),SS=S.createContext({}),oR=Symbol.for("motionComponentSymbol");function iR({preloadedFeatures:e,createVisualElement:t,useRender:r,useVisualState:n,Component:o}){e&&nR(e);function i(a,l){let u;const c={...S.useContext(yS),...a,layoutId:sR(a)},{isStatic:d}=c,f=rR(a),p=n(a,d);if(!d&&qu){f.visualElement=JA(o,p,c,t);const m=S.useContext(SS),v=S.useContext(vS).strict;f.visualElement&&(u=f.visualElement.loadFeatures(c,v,e,m))}return S.createElement(Ku.Provider,{value:f},u&&f.visualElement?S.createElement(u,{visualElement:f.visualElement,...c}):null,r(o,a,eR(p,f.visualElement,l),p,d,f.visualElement))}const s=S.forwardRef(i);return s[oR]=o,s}function sR({layoutId:e}){const t=S.useContext(kp).id;return t&&e!==void 0?t+"-"+e:e}function aR(e){function t(n,o={}){return iR(e(n,o))}if(typeof Proxy>"u")return t;const r=new Map;return new Proxy(t,{get:(n,o)=>(r.has(o)||r.set(o,t(o)),r.get(o))})}const lR=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function Cp(e){return typeof e!="string"||e.includes("-")?!1:!!(lR.indexOf(e)>-1||/[A-Z]/.test(e))}const ru={};function uR(e){Object.assign(ru,e)}const Js=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],ao=new Set(Js);function xS(e,{layout:t,layoutId:r}){return ao.has(e)||e.startsWith("origin")||(t||r!==void 0)&&(!!ru[e]||e==="opacity")}const St=e=>!!(e&&e.getVelocity),cR={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},dR=Js.length;function fR(e,{enableHardwareAcceleration:t=!0,allowTransformNone:r=!0},n,o){let i="";for(let s=0;st=>typeof t=="string"&&t.startsWith(e),kS=wS("--"),Ff=wS("var(--"),hR=/var\s*\(\s*--[\w-]+(\s*,\s*(?:(?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)+)?\s*\)/g,pR=(e,t)=>t&&typeof e=="number"?t.transform(e):e,_n=(e,t,r)=>Math.min(Math.max(r,e),t),lo={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},ls={...lo,transform:e=>_n(0,1,e)},Na={...lo,default:1},us=e=>Math.round(e*1e5)/1e5,Qu=/(-)?([\d]*\.?[\d])+/g,CS=/(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))/gi,mR=/^(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))$/i;function ea(e){return typeof e=="string"}const ta=e=>({test:t=>ea(t)&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),tn=ta("deg"),xr=ta("%"),V=ta("px"),gR=ta("vh"),yR=ta("vw"),zg={...xr,parse:e=>xr.parse(e)/100,transform:e=>xr.transform(e*100)},Mg={...lo,transform:Math.round},_S={borderWidth:V,borderTopWidth:V,borderRightWidth:V,borderBottomWidth:V,borderLeftWidth:V,borderRadius:V,radius:V,borderTopLeftRadius:V,borderTopRightRadius:V,borderBottomRightRadius:V,borderBottomLeftRadius:V,width:V,maxWidth:V,height:V,maxHeight:V,size:V,top:V,right:V,bottom:V,left:V,padding:V,paddingTop:V,paddingRight:V,paddingBottom:V,paddingLeft:V,margin:V,marginTop:V,marginRight:V,marginBottom:V,marginLeft:V,rotate:tn,rotateX:tn,rotateY:tn,rotateZ:tn,scale:Na,scaleX:Na,scaleY:Na,scaleZ:Na,skew:tn,skewX:tn,skewY:tn,distance:V,translateX:V,translateY:V,translateZ:V,x:V,y:V,z:V,perspective:V,transformPerspective:V,opacity:ls,originX:zg,originY:zg,originZ:V,zIndex:Mg,fillOpacity:ls,strokeOpacity:ls,numOctaves:Mg};function _p(e,t,r,n){const{style:o,vars:i,transform:s,transformOrigin:a}=e;let l=!1,u=!1,c=!0;for(const d in t){const f=t[d];if(kS(d)){i[d]=f;continue}const p=_S[d],m=pR(f,p);if(ao.has(d)){if(l=!0,s[d]=m,!c)continue;f!==(p.default||0)&&(c=!1)}else d.startsWith("origin")?(u=!0,a[d]=m):o[d]=m}if(t.transform||(l||n?o.transform=fR(e.transform,r,c,n):o.transform&&(o.transform="none")),u){const{originX:d="50%",originY:f="50%",originZ:p=0}=a;o.transformOrigin=`${d} ${f} ${p}`}}const Tp=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function TS(e,t,r){for(const n in t)!St(t[n])&&!xS(n,r)&&(e[n]=t[n])}function vR({transformTemplate:e},t,r){return S.useMemo(()=>{const n=Tp();return _p(n,t,{enableHardwareAcceleration:!r},e),Object.assign({},n.vars,n.style)},[t])}function bR(e,t,r){const n=e.style||{},o={};return TS(o,n,e),Object.assign(o,vR(e,t,r)),e.transformValues?e.transformValues(o):o}function SR(e,t,r){const n={},o=bR(e,t,r);return e.drag&&e.dragListener!==!1&&(n.draggable=!1,o.userSelect=o.WebkitUserSelect=o.WebkitTouchCallout="none",o.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(n.tabIndex=0),n.style=o,n}const xR=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","transformValues","custom","inherit","onLayoutAnimationStart","onLayoutAnimationComplete","onLayoutMeasure","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","ignoreStrict","viewport"]);function nu(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||xR.has(e)}let PS=e=>!nu(e);function wR(e){e&&(PS=t=>t.startsWith("on")?!nu(t):e(t))}try{wR(require("@emotion/is-prop-valid").default)}catch{}function kR(e,t,r){const n={};for(const o in e)o==="values"&&typeof e.values=="object"||(PS(o)||r===!0&&nu(o)||!t&&!nu(o)||e.draggable&&o.startsWith("onDrag"))&&(n[o]=e[o]);return n}function Lg(e,t,r){return typeof e=="string"?e:V.transform(t+r*e)}function CR(e,t,r){const n=Lg(t,e.x,e.width),o=Lg(r,e.y,e.height);return`${n} ${o}`}const _R={offset:"stroke-dashoffset",array:"stroke-dasharray"},TR={offset:"strokeDashoffset",array:"strokeDasharray"};function PR(e,t,r=1,n=0,o=!0){e.pathLength=1;const i=o?_R:TR;e[i.offset]=V.transform(-n);const s=V.transform(t),a=V.transform(r);e[i.array]=`${s} ${a}`}function Pp(e,{attrX:t,attrY:r,attrScale:n,originX:o,originY:i,pathLength:s,pathSpacing:a=1,pathOffset:l=0,...u},c,d,f){if(_p(e,u,c,f),d){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:p,style:m,dimensions:v}=e;p.transform&&(v&&(m.transform=p.transform),delete p.transform),v&&(o!==void 0||i!==void 0||m.transform)&&(m.transformOrigin=CR(v,o!==void 0?o:.5,i!==void 0?i:.5)),t!==void 0&&(p.x=t),r!==void 0&&(p.y=r),n!==void 0&&(p.scale=n),s!==void 0&&PR(p,s,a,l,!1)}const ES=()=>({...Tp(),attrs:{}}),Ep=e=>typeof e=="string"&&e.toLowerCase()==="svg";function ER(e,t,r,n){const o=S.useMemo(()=>{const i=ES();return Pp(i,t,{enableHardwareAcceleration:!1},Ep(n),e.transformTemplate),{...i.attrs,style:{...i.style}}},[t]);if(e.style){const i={};TS(i,e.style,e),o.style={...i,...o.style}}return o}function $R(e=!1){return(r,n,o,{latestValues:i},s)=>{const l=(Cp(r)?ER:SR)(n,i,s,r),c={...kR(n,typeof r=="string",e),...l,ref:o},{children:d}=n,f=S.useMemo(()=>St(d)?d.get():d,[d]);return S.createElement(r,{...c,children:f})}}const $p=e=>e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase();function $S(e,{style:t,vars:r},n,o){Object.assign(e.style,t,o&&o.getProjectionStyles(n));for(const i in r)e.style.setProperty(i,r[i])}const AS=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function RS(e,t,r,n){$S(e,t,void 0,n);for(const o in t.attrs)e.setAttribute(AS.has(o)?o:$p(o),t.attrs[o])}function Ap(e,t){const{style:r}=e,n={};for(const o in r)(St(r[o])||t.style&&St(t.style[o])||xS(o,e))&&(n[o]=r[o]);return n}function zS(e,t){const r=Ap(e,t);for(const n in e)if(St(e[n])||St(t[n])){const o=Js.indexOf(n)!==-1?"attr"+n.charAt(0).toUpperCase()+n.substring(1):n;r[o]=e[n]}return r}function Rp(e,t,r,n={},o={}){return typeof t=="function"&&(t=t(r!==void 0?r:e.custom,n,o)),typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"&&(t=t(r!==void 0?r:e.custom,n,o)),t}function MS(e){const t=S.useRef(null);return t.current===null&&(t.current=e()),t.current}const ou=e=>Array.isArray(e),AR=e=>!!(e&&typeof e=="object"&&e.mix&&e.toValue),RR=e=>ou(e)?e[e.length-1]||0:e;function yl(e){const t=St(e)?e.get():e;return AR(t)?t.toValue():t}function zR({scrapeMotionValuesFromProps:e,createRenderState:t,onMount:r},n,o,i){const s={latestValues:MR(n,o,i,e),renderState:t()};return r&&(s.mount=a=>r(n,a,s)),s}const LS=e=>(t,r)=>{const n=S.useContext(Ku),o=S.useContext(Zs),i=()=>zR(e,t,n,o);return r?i():MS(i)};function MR(e,t,r,n){const o={},i=n(e,{});for(const f in i)o[f]=yl(i[f]);let{initial:s,animate:a}=e;const l=Yu(e),u=bS(e);t&&u&&!l&&e.inherit!==!1&&(s===void 0&&(s=t.initial),a===void 0&&(a=t.animate));let c=r?r.initial===!1:!1;c=c||s===!1;const d=c?a:s;return d&&typeof d!="boolean"&&!Xu(d)&&(Array.isArray(d)?d:[d]).forEach(p=>{const m=Rp(e,p);if(!m)return;const{transitionEnd:v,transition:C,...g}=m;for(const h in g){let y=g[h];if(Array.isArray(y)){const k=c?y.length-1:0;y=y[k]}y!==null&&(o[h]=y)}for(const h in v)o[h]=v[h]}),o}const Ae=e=>e;class Fg{constructor(){this.order=[],this.scheduled=new Set}add(t){if(!this.scheduled.has(t))return this.scheduled.add(t),this.order.push(t),!0}remove(t){const r=this.order.indexOf(t);r!==-1&&(this.order.splice(r,1),this.scheduled.delete(t))}clear(){this.order.length=0,this.scheduled.clear()}}function LR(e){let t=new Fg,r=new Fg,n=0,o=!1,i=!1;const s=new WeakSet,a={schedule:(l,u=!1,c=!1)=>{const d=c&&o,f=d?t:r;return u&&s.add(l),f.add(l)&&d&&o&&(n=t.order.length),l},cancel:l=>{r.remove(l),s.delete(l)},process:l=>{if(o){i=!0;return}if(o=!0,[t,r]=[r,t],r.clear(),n=t.order.length,n)for(let u=0;u(d[f]=LR(()=>r=!0),d),{}),s=d=>i[d].process(o),a=()=>{const d=performance.now();r=!1,o.delta=n?1e3/60:Math.max(Math.min(d-o.timestamp,FR),1),o.timestamp=d,o.isProcessing=!0,Va.forEach(s),o.isProcessing=!1,r&&t&&(n=!1,e(a))},l=()=>{r=!0,n=!0,o.isProcessing||e(a)};return{schedule:Va.reduce((d,f)=>{const p=i[f];return d[f]=(m,v=!1,C=!1)=>(r||l(),p.schedule(m,v,C)),d},{}),cancel:d=>Va.forEach(f=>i[f].cancel(d)),state:o,steps:i}}const{schedule:me,cancel:Wr,state:He,steps:dd}=OR(typeof requestAnimationFrame<"u"?requestAnimationFrame:Ae,!0),jR={useVisualState:LS({scrapeMotionValuesFromProps:zS,createRenderState:ES,onMount:(e,t,{renderState:r,latestValues:n})=>{me.read(()=>{try{r.dimensions=typeof t.getBBox=="function"?t.getBBox():t.getBoundingClientRect()}catch{r.dimensions={x:0,y:0,width:0,height:0}}}),me.render(()=>{Pp(r,n,{enableHardwareAcceleration:!1},Ep(t.tagName),e.transformTemplate),RS(t,r)})}})},DR={useVisualState:LS({scrapeMotionValuesFromProps:Ap,createRenderState:Tp})};function BR(e,{forwardMotionProps:t=!1},r,n){return{...Cp(e)?jR:DR,preloadedFeatures:r,useRender:$R(t),createVisualElement:n,Component:e}}function Mr(e,t,r,n={passive:!0}){return e.addEventListener(t,r,n),()=>e.removeEventListener(t,r)}const FS=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1;function Zu(e,t="page"){return{point:{x:e[t+"X"],y:e[t+"Y"]}}}const IR=e=>t=>FS(t)&&e(t,Zu(t));function jr(e,t,r,n){return Mr(e,t,IR(r),n)}const NR=(e,t)=>r=>t(e(r)),Sn=(...e)=>e.reduce(NR);function OS(e){let t=null;return()=>{const r=()=>{t=null};return t===null?(t=e,r):!1}}const Og=OS("dragHorizontal"),jg=OS("dragVertical");function jS(e){let t=!1;if(e==="y")t=jg();else if(e==="x")t=Og();else{const r=Og(),n=jg();r&&n?t=()=>{r(),n()}:(r&&r(),n&&n())}return t}function DS(){const e=jS(!0);return e?(e(),!1):!0}class Rn{constructor(t){this.isMounted=!1,this.node=t}update(){}}function Dg(e,t){const r="pointer"+(t?"enter":"leave"),n="onHover"+(t?"Start":"End"),o=(i,s)=>{if(i.type==="touch"||DS())return;const a=e.getProps();e.animationState&&a.whileHover&&e.animationState.setActive("whileHover",t),a[n]&&me.update(()=>a[n](i,s))};return jr(e.current,r,o,{passive:!e.getProps()[n]})}class VR extends Rn{mount(){this.unmount=Sn(Dg(this.node,!0),Dg(this.node,!1))}unmount(){}}class UR extends Rn{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch{t=!0}!t||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=Sn(Mr(this.node.current,"focus",()=>this.onFocus()),Mr(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}const BS=(e,t)=>t?e===t?!0:BS(e,t.parentElement):!1;function fd(e,t){if(!t)return;const r=new PointerEvent("pointer"+e);t(r,Zu(r))}class HR extends Rn{constructor(){super(...arguments),this.removeStartListeners=Ae,this.removeEndListeners=Ae,this.removeAccessibleListeners=Ae,this.startPointerPress=(t,r)=>{if(this.removeEndListeners(),this.isPressing)return;const n=this.node.getProps(),i=jr(window,"pointerup",(a,l)=>{if(!this.checkPressEnd())return;const{onTap:u,onTapCancel:c}=this.node.getProps();me.update(()=>{BS(this.node.current,a.target)?u&&u(a,l):c&&c(a,l)})},{passive:!(n.onTap||n.onPointerUp)}),s=jr(window,"pointercancel",(a,l)=>this.cancelPress(a,l),{passive:!(n.onTapCancel||n.onPointerCancel)});this.removeEndListeners=Sn(i,s),this.startPress(t,r)},this.startAccessiblePress=()=>{const t=i=>{if(i.key!=="Enter"||this.isPressing)return;const s=a=>{a.key!=="Enter"||!this.checkPressEnd()||fd("up",(l,u)=>{const{onTap:c}=this.node.getProps();c&&me.update(()=>c(l,u))})};this.removeEndListeners(),this.removeEndListeners=Mr(this.node.current,"keyup",s),fd("down",(a,l)=>{this.startPress(a,l)})},r=Mr(this.node.current,"keydown",t),n=()=>{this.isPressing&&fd("cancel",(i,s)=>this.cancelPress(i,s))},o=Mr(this.node.current,"blur",n);this.removeAccessibleListeners=Sn(r,o)}}startPress(t,r){this.isPressing=!0;const{onTapStart:n,whileTap:o}=this.node.getProps();o&&this.node.animationState&&this.node.animationState.setActive("whileTap",!0),n&&me.update(()=>n(t,r))}checkPressEnd(){return this.removeEndListeners(),this.isPressing=!1,this.node.getProps().whileTap&&this.node.animationState&&this.node.animationState.setActive("whileTap",!1),!DS()}cancelPress(t,r){if(!this.checkPressEnd())return;const{onTapCancel:n}=this.node.getProps();n&&me.update(()=>n(t,r))}mount(){const t=this.node.getProps(),r=jr(this.node.current,"pointerdown",this.startPointerPress,{passive:!(t.onTapStart||t.onPointerStart)}),n=Mr(this.node.current,"focus",this.startAccessiblePress);this.removeStartListeners=Sn(r,n)}unmount(){this.removeStartListeners(),this.removeEndListeners(),this.removeAccessibleListeners()}}const Of=new WeakMap,hd=new WeakMap,WR=e=>{const t=Of.get(e.target);t&&t(e)},GR=e=>{e.forEach(WR)};function KR({root:e,...t}){const r=e||document;hd.has(r)||hd.set(r,{});const n=hd.get(r),o=JSON.stringify(t);return n[o]||(n[o]=new IntersectionObserver(GR,{root:e,...t})),n[o]}function qR(e,t,r){const n=KR(t);return Of.set(e,r),n.observe(e),()=>{Of.delete(e),n.unobserve(e)}}const XR={some:0,all:1};class YR extends Rn{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:r,margin:n,amount:o="some",once:i}=t,s={root:r?r.current:void 0,rootMargin:n,threshold:typeof o=="number"?o:XR[o]},a=l=>{const{isIntersecting:u}=l;if(this.isInView===u||(this.isInView=u,i&&!u&&this.hasEnteredView))return;u&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",u);const{onViewportEnter:c,onViewportLeave:d}=this.node.getProps(),f=u?c:d;f&&f(l)};return qR(this.node.current,s,a)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:r}=this.node;["amount","margin","root"].some(QR(t,r))&&this.startObserver()}unmount(){}}function QR({viewport:e={}},{viewport:t={}}={}){return r=>e[r]!==t[r]}const ZR={inView:{Feature:YR},tap:{Feature:HR},focus:{Feature:UR},hover:{Feature:VR}};function IS(e,t){if(!Array.isArray(t))return!1;const r=t.length;if(r!==e.length)return!1;for(let n=0;nt[n]=r.get()),t}function ez(e){const t={};return e.values.forEach((r,n)=>t[n]=r.getVelocity()),t}function Ju(e,t,r){const n=e.getProps();return Rp(n,t,r!==void 0?r:n.custom,JR(e),ez(e))}const tz="framerAppearId",rz="data-"+$p(tz);let nz=Ae,zp=Ae;const xn=e=>e*1e3,Dr=e=>e/1e3,oz={current:!1},NS=e=>Array.isArray(e)&&typeof e[0]=="number";function VS(e){return!!(!e||typeof e=="string"&&US[e]||NS(e)||Array.isArray(e)&&e.every(VS))}const Gi=([e,t,r,n])=>`cubic-bezier(${e}, ${t}, ${r}, ${n})`,US={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Gi([0,.65,.55,1]),circOut:Gi([.55,0,1,.45]),backIn:Gi([.31,.01,.66,-.59]),backOut:Gi([.33,1.53,.69,.99])};function HS(e){if(e)return NS(e)?Gi(e):Array.isArray(e)?e.map(HS):US[e]}function iz(e,t,r,{delay:n=0,duration:o,repeat:i=0,repeatType:s="loop",ease:a,times:l}={}){const u={[t]:r};l&&(u.offset=l);const c=HS(a);return Array.isArray(c)&&(u.easing=c),e.animate(u,{delay:n,duration:o,easing:Array.isArray(c)?"linear":c,fill:"both",iterations:i+1,direction:s==="reverse"?"alternate":"normal"})}function sz(e,{repeat:t,repeatType:r="loop"}){const n=t&&r!=="loop"&&t%2===1?0:e.length-1;return e[n]}const WS=(e,t,r)=>(((1-3*r+3*t)*e+(3*r-6*t))*e+3*t)*e,az=1e-7,lz=12;function uz(e,t,r,n,o){let i,s,a=0;do s=t+(r-t)/2,i=WS(s,n,o)-e,i>0?r=s:t=s;while(Math.abs(i)>az&&++auz(i,0,1,e,r);return i=>i===0||i===1?i:WS(o(i),t,n)}const cz=ra(.42,0,1,1),dz=ra(0,0,.58,1),GS=ra(.42,0,.58,1),fz=e=>Array.isArray(e)&&typeof e[0]!="number",KS=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,qS=e=>t=>1-e(1-t),XS=e=>1-Math.sin(Math.acos(e)),Mp=qS(XS),hz=KS(Mp),YS=ra(.33,1.53,.69,.99),Lp=qS(YS),pz=KS(Lp),mz=e=>(e*=2)<1?.5*Lp(e):.5*(2-Math.pow(2,-10*(e-1))),gz={linear:Ae,easeIn:cz,easeInOut:GS,easeOut:dz,circIn:XS,circInOut:hz,circOut:Mp,backIn:Lp,backInOut:pz,backOut:YS,anticipate:mz},Bg=e=>{if(Array.isArray(e)){zp(e.length===4);const[t,r,n,o]=e;return ra(t,r,n,o)}else if(typeof e=="string")return gz[e];return e},Fp=(e,t)=>r=>!!(ea(r)&&mR.test(r)&&r.startsWith(e)||t&&Object.prototype.hasOwnProperty.call(r,t)),QS=(e,t,r)=>n=>{if(!ea(n))return n;const[o,i,s,a]=n.match(Qu);return{[e]:parseFloat(o),[t]:parseFloat(i),[r]:parseFloat(s),alpha:a!==void 0?parseFloat(a):1}},yz=e=>_n(0,255,e),pd={...lo,transform:e=>Math.round(yz(e))},Kn={test:Fp("rgb","red"),parse:QS("red","green","blue"),transform:({red:e,green:t,blue:r,alpha:n=1})=>"rgba("+pd.transform(e)+", "+pd.transform(t)+", "+pd.transform(r)+", "+us(ls.transform(n))+")"};function vz(e){let t="",r="",n="",o="";return e.length>5?(t=e.substring(1,3),r=e.substring(3,5),n=e.substring(5,7),o=e.substring(7,9)):(t=e.substring(1,2),r=e.substring(2,3),n=e.substring(3,4),o=e.substring(4,5),t+=t,r+=r,n+=n,o+=o),{red:parseInt(t,16),green:parseInt(r,16),blue:parseInt(n,16),alpha:o?parseInt(o,16)/255:1}}const jf={test:Fp("#"),parse:vz,transform:Kn.transform},Do={test:Fp("hsl","hue"),parse:QS("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:r,alpha:n=1})=>"hsla("+Math.round(e)+", "+xr.transform(us(t))+", "+xr.transform(us(r))+", "+us(ls.transform(n))+")"},ot={test:e=>Kn.test(e)||jf.test(e)||Do.test(e),parse:e=>Kn.test(e)?Kn.parse(e):Do.test(e)?Do.parse(e):jf.parse(e),transform:e=>ea(e)?e:e.hasOwnProperty("red")?Kn.transform(e):Do.transform(e)},_e=(e,t,r)=>-r*e+r*t+e;function md(e,t,r){return r<0&&(r+=1),r>1&&(r-=1),r<1/6?e+(t-e)*6*r:r<1/2?t:r<2/3?e+(t-e)*(2/3-r)*6:e}function bz({hue:e,saturation:t,lightness:r,alpha:n}){e/=360,t/=100,r/=100;let o=0,i=0,s=0;if(!t)o=i=s=r;else{const a=r<.5?r*(1+t):r+t-r*t,l=2*r-a;o=md(l,a,e+1/3),i=md(l,a,e),s=md(l,a,e-1/3)}return{red:Math.round(o*255),green:Math.round(i*255),blue:Math.round(s*255),alpha:n}}const gd=(e,t,r)=>{const n=e*e;return Math.sqrt(Math.max(0,r*(t*t-n)+n))},Sz=[jf,Kn,Do],xz=e=>Sz.find(t=>t.test(e));function Ig(e){const t=xz(e);let r=t.parse(e);return t===Do&&(r=bz(r)),r}const ZS=(e,t)=>{const r=Ig(e),n=Ig(t),o={...r};return i=>(o.red=gd(r.red,n.red,i),o.green=gd(r.green,n.green,i),o.blue=gd(r.blue,n.blue,i),o.alpha=_e(r.alpha,n.alpha,i),Kn.transform(o))};function wz(e){var t,r;return isNaN(e)&&ea(e)&&(((t=e.match(Qu))===null||t===void 0?void 0:t.length)||0)+(((r=e.match(CS))===null||r===void 0?void 0:r.length)||0)>0}const JS={regex:hR,countKey:"Vars",token:"${v}",parse:Ae},ex={regex:CS,countKey:"Colors",token:"${c}",parse:ot.parse},tx={regex:Qu,countKey:"Numbers",token:"${n}",parse:lo.parse};function yd(e,{regex:t,countKey:r,token:n,parse:o}){const i=e.tokenised.match(t);i&&(e["num"+r]=i.length,e.tokenised=e.tokenised.replace(t,n),e.values.push(...i.map(o)))}function iu(e){const t=e.toString(),r={value:t,tokenised:t,values:[],numVars:0,numColors:0,numNumbers:0};return r.value.includes("var(--")&&yd(r,JS),yd(r,ex),yd(r,tx),r}function rx(e){return iu(e).values}function nx(e){const{values:t,numColors:r,numVars:n,tokenised:o}=iu(e),i=t.length;return s=>{let a=o;for(let l=0;ltypeof e=="number"?0:e;function Cz(e){const t=rx(e);return nx(e)(t.map(kz))}const Tn={test:wz,parse:rx,createTransformer:nx,getAnimatableNone:Cz},ox=(e,t)=>r=>`${r>0?t:e}`;function ix(e,t){return typeof e=="number"?r=>_e(e,t,r):ot.test(e)?ZS(e,t):e.startsWith("var(")?ox(e,t):ax(e,t)}const sx=(e,t)=>{const r=[...e],n=r.length,o=e.map((i,s)=>ix(i,t[s]));return i=>{for(let s=0;s{const r={...e,...t},n={};for(const o in r)e[o]!==void 0&&t[o]!==void 0&&(n[o]=ix(e[o],t[o]));return o=>{for(const i in n)r[i]=n[i](o);return r}},ax=(e,t)=>{const r=Tn.createTransformer(t),n=iu(e),o=iu(t);return n.numVars===o.numVars&&n.numColors===o.numColors&&n.numNumbers>=o.numNumbers?Sn(sx(n.values,o.values),r):ox(e,t)},Is=(e,t,r)=>{const n=t-e;return n===0?1:(r-e)/n},Ng=(e,t)=>r=>_e(e,t,r);function Tz(e){return typeof e=="number"?Ng:typeof e=="string"?ot.test(e)?ZS:ax:Array.isArray(e)?sx:typeof e=="object"?_z:Ng}function Pz(e,t,r){const n=[],o=r||Tz(e[0]),i=e.length-1;for(let s=0;st[0];e[0]>e[i-1]&&(e=[...e].reverse(),t=[...t].reverse());const s=Pz(t,n,o),a=s.length,l=u=>{let c=0;if(a>1)for(;cl(_n(e[0],e[i-1],u)):l}function Ez(e,t){const r=e[e.length-1];for(let n=1;n<=t;n++){const o=Is(0,t,n);e.push(_e(r,1,o))}}function $z(e){const t=[0];return Ez(t,e.length-1),t}function Az(e,t){return e.map(r=>r*t)}function Rz(e,t){return e.map(()=>t||GS).splice(0,e.length-1)}function su({duration:e=300,keyframes:t,times:r,ease:n="easeInOut"}){const o=fz(n)?n.map(Bg):Bg(n),i={done:!1,value:t[0]},s=Az(r&&r.length===t.length?r:$z(t),e),a=lx(s,t,{ease:Array.isArray(o)?o:Rz(t,o)});return{calculatedDuration:e,next:l=>(i.value=a(l),i.done=l>=e,i)}}function ux(e,t){return t?e*(1e3/t):0}const zz=5;function cx(e,t,r){const n=Math.max(t-zz,0);return ux(r-e(n),t-n)}const vd=.001,Mz=.01,Vg=10,Lz=.05,Fz=1;function Oz({duration:e=800,bounce:t=.25,velocity:r=0,mass:n=1}){let o,i;nz(e<=xn(Vg));let s=1-t;s=_n(Lz,Fz,s),e=_n(Mz,Vg,Dr(e)),s<1?(o=u=>{const c=u*s,d=c*e,f=c-r,p=Df(u,s),m=Math.exp(-d);return vd-f/p*m},i=u=>{const d=u*s*e,f=d*r+r,p=Math.pow(s,2)*Math.pow(u,2)*e,m=Math.exp(-d),v=Df(Math.pow(u,2),s);return(-o(u)+vd>0?-1:1)*((f-p)*m)/v}):(o=u=>{const c=Math.exp(-u*e),d=(u-r)*e+1;return-vd+c*d},i=u=>{const c=Math.exp(-u*e),d=(r-u)*(e*e);return c*d});const a=5/e,l=Dz(o,i,a);if(e=xn(e),isNaN(l))return{stiffness:100,damping:10,duration:e};{const u=Math.pow(l,2)*n;return{stiffness:u,damping:s*2*Math.sqrt(n*u),duration:e}}}const jz=12;function Dz(e,t,r){let n=r;for(let o=1;oe[r]!==void 0)}function Nz(e){let t={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...e};if(!Ug(e,Iz)&&Ug(e,Bz)){const r=Oz(e);t={...t,...r,velocity:0,mass:1},t.isResolvedFromDuration=!0}return t}function dx({keyframes:e,restDelta:t,restSpeed:r,...n}){const o=e[0],i=e[e.length-1],s={done:!1,value:o},{stiffness:a,damping:l,mass:u,velocity:c,duration:d,isResolvedFromDuration:f}=Nz(n),p=c?-Dr(c):0,m=l/(2*Math.sqrt(a*u)),v=i-o,C=Dr(Math.sqrt(a/u)),g=Math.abs(v)<5;r||(r=g?.01:2),t||(t=g?.005:.5);let h;if(m<1){const y=Df(C,m);h=k=>{const P=Math.exp(-m*C*k);return i-P*((p+m*C*v)/y*Math.sin(y*k)+v*Math.cos(y*k))}}else if(m===1)h=y=>i-Math.exp(-C*y)*(v+(p+C*v)*y);else{const y=C*Math.sqrt(m*m-1);h=k=>{const P=Math.exp(-m*C*k),R=Math.min(y*k,300);return i-P*((p+m*C*v)*Math.sinh(R)+y*v*Math.cosh(R))/y}}return{calculatedDuration:f&&d||null,next:y=>{const k=h(y);if(f)s.done=y>=d;else{let P=p;y!==0&&(m<1?P=cx(h,y,k):P=0);const R=Math.abs(P)<=r,E=Math.abs(i-k)<=t;s.done=R&&E}return s.value=s.done?i:k,s}}}function Hg({keyframes:e,velocity:t=0,power:r=.8,timeConstant:n=325,bounceDamping:o=10,bounceStiffness:i=500,modifyTarget:s,min:a,max:l,restDelta:u=.5,restSpeed:c}){const d=e[0],f={done:!1,value:d},p=A=>a!==void 0&&Al,m=A=>a===void 0?l:l===void 0||Math.abs(a-A)-v*Math.exp(-A/n),y=A=>g+h(A),k=A=>{const O=h(A),j=y(A);f.done=Math.abs(O)<=u,f.value=f.done?g:j};let P,R;const E=A=>{p(f.value)&&(P=A,R=dx({keyframes:[f.value,m(f.value)],velocity:cx(y,A,f.value),damping:o,stiffness:i,restDelta:u,restSpeed:c}))};return E(0),{calculatedDuration:null,next:A=>{let O=!1;return!R&&P===void 0&&(O=!0,k(A),E(A)),P!==void 0&&A>P?R.next(A-P):(!O&&k(A),f)}}}const Vz=e=>{const t=({timestamp:r})=>e(r);return{start:()=>me.update(t,!0),stop:()=>Wr(t),now:()=>He.isProcessing?He.timestamp:performance.now()}},Wg=2e4;function Gg(e){let t=0;const r=50;let n=e.next(t);for(;!n.done&&t=Wg?1/0:t}const Uz={decay:Hg,inertia:Hg,tween:su,keyframes:su,spring:dx};function au({autoplay:e=!0,delay:t=0,driver:r=Vz,keyframes:n,type:o="keyframes",repeat:i=0,repeatDelay:s=0,repeatType:a="loop",onPlay:l,onStop:u,onComplete:c,onUpdate:d,...f}){let p=1,m=!1,v,C;const g=()=>{C=new Promise(N=>{v=N})};g();let h;const y=Uz[o]||su;let k;y!==su&&typeof n[0]!="number"&&(k=lx([0,100],n,{clamp:!1}),n=[0,100]);const P=y({...f,keyframes:n});let R;a==="mirror"&&(R=y({...f,keyframes:[...n].reverse(),velocity:-(f.velocity||0)}));let E="idle",A=null,O=null,j=null;P.calculatedDuration===null&&i&&(P.calculatedDuration=Gg(P));const{calculatedDuration:de}=P;let ye=1/0,Re=1/0;de!==null&&(ye=de+s,Re=ye*(i+1)-s);let ae=0;const he=N=>{if(O===null)return;p>0&&(O=Math.min(O,N)),p<0&&(O=Math.min(N-Re/p,O)),A!==null?ae=A:ae=Math.round(N-O)*p;const J=ae-t*(p>=0?1:-1),W=p>=0?J<0:J>Re;ae=Math.max(J,0),E==="finished"&&A===null&&(ae=Re);let ce=ae,Yt=P;if(i){const Xr=ae/ye;let lr=Math.floor(Xr),Ft=Xr%1;!Ft&&Xr>=1&&(Ft=1),Ft===1&&lr--,lr=Math.min(lr,i+1);const zn=!!(lr%2);zn&&(a==="reverse"?(Ft=1-Ft,s&&(Ft-=s/ye)):a==="mirror"&&(Yt=R));let co=_n(0,1,Ft);ae>Re&&(co=a==="reverse"&&zn?1:0),ce=co*ye}const Ee=W?{done:!1,value:n[0]}:Yt.next(ce);k&&(Ee.value=k(Ee.value));let{done:xt}=Ee;!W&&de!==null&&(xt=p>=0?ae>=Re:ae<=0);const ar=A===null&&(E==="finished"||E==="running"&&xt);return d&&d(Ee.value),ar&&M(),Ee},Le=()=>{h&&h.stop(),h=void 0},Ie=()=>{E="idle",Le(),v(),g(),O=j=null},M=()=>{E="finished",c&&c(),Le(),v()},I=()=>{if(m)return;h||(h=r(he));const N=h.now();l&&l(),A!==null?O=N-A:(!O||E==="finished")&&(O=N),E==="finished"&&g(),j=O,A=null,E="running",h.start()};e&&I();const U={then(N,J){return C.then(N,J)},get time(){return Dr(ae)},set time(N){N=xn(N),ae=N,A!==null||!h||p===0?A=N:O=h.now()-N/p},get duration(){const N=P.calculatedDuration===null?Gg(P):P.calculatedDuration;return Dr(N)},get speed(){return p},set speed(N){N===p||!h||(p=N,U.time=Dr(ae))},get state(){return E},play:I,pause:()=>{E="paused",A=ae},stop:()=>{m=!0,E!=="idle"&&(E="idle",u&&u(),Ie())},cancel:()=>{j!==null&&he(j),Ie()},complete:()=>{E="finished"},sample:N=>(O=0,he(N))};return U}function Hz(e){let t;return()=>(t===void 0&&(t=e()),t)}const Wz=Hz(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),Gz=new Set(["opacity","clipPath","filter","transform","backgroundColor"]),Ua=10,Kz=2e4,qz=(e,t)=>t.type==="spring"||e==="backgroundColor"||!VS(t.ease);function Xz(e,t,{onUpdate:r,onComplete:n,...o}){if(!(Wz()&&Gz.has(t)&&!o.repeatDelay&&o.repeatType!=="mirror"&&o.damping!==0&&o.type!=="inertia"))return!1;let s=!1,a,l;const u=()=>{l=new Promise(h=>{a=h})};u();let{keyframes:c,duration:d=300,ease:f,times:p}=o;if(qz(t,o)){const h=au({...o,repeat:0,delay:0});let y={done:!1,value:c[0]};const k=[];let P=0;for(;!y.done&&Pm.cancel(),C=()=>{me.update(v),a(),u()};return m.onfinish=()=>{e.set(sz(c,o)),n&&n(),C()},{then(h,y){return l.then(h,y)},attachTimeline(h){return m.timeline=h,m.onfinish=null,Ae},get time(){return Dr(m.currentTime||0)},set time(h){m.currentTime=xn(h)},get speed(){return m.playbackRate},set speed(h){m.playbackRate=h},get duration(){return Dr(d)},play:()=>{s||(m.play(),Wr(v))},pause:()=>m.pause(),stop:()=>{if(s=!0,m.playState==="idle")return;const{currentTime:h}=m;if(h){const y=au({...o,autoplay:!1});e.setWithVelocity(y.sample(h-Ua).value,y.sample(h).value,Ua)}C()},complete:()=>m.finish(),cancel:C}}function Yz({keyframes:e,delay:t,onUpdate:r,onComplete:n}){const o=()=>(r&&r(e[e.length-1]),n&&n(),{time:0,speed:1,duration:0,play:Ae,pause:Ae,stop:Ae,then:i=>(i(),Promise.resolve()),cancel:Ae,complete:Ae});return t?au({keyframes:[0,1],duration:0,delay:t,onComplete:o}):o()}const Qz={type:"spring",stiffness:500,damping:25,restSpeed:10},Zz=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),Jz={type:"keyframes",duration:.8},e8={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},t8=(e,{keyframes:t})=>t.length>2?Jz:ao.has(e)?e.startsWith("scale")?Zz(t[1]):Qz:e8,Bf=(e,t)=>e==="zIndex"?!1:!!(typeof t=="number"||Array.isArray(t)||typeof t=="string"&&(Tn.test(t)||t==="0")&&!t.startsWith("url(")),r8=new Set(["brightness","contrast","saturate","opacity"]);function n8(e){const[t,r]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[n]=r.match(Qu)||[];if(!n)return e;const o=r.replace(n,"");let i=r8.has(t)?1:0;return n!==r&&(i*=100),t+"("+i+o+")"}const o8=/([a-z-]*)\(.*?\)/g,If={...Tn,getAnimatableNone:e=>{const t=e.match(o8);return t?t.map(n8).join(" "):e}},i8={..._S,color:ot,backgroundColor:ot,outlineColor:ot,fill:ot,stroke:ot,borderColor:ot,borderTopColor:ot,borderRightColor:ot,borderBottomColor:ot,borderLeftColor:ot,filter:If,WebkitFilter:If},Op=e=>i8[e];function fx(e,t){let r=Op(e);return r!==If&&(r=Tn),r.getAnimatableNone?r.getAnimatableNone(t):void 0}const hx=e=>/^0[^.\s]+$/.test(e);function s8(e){if(typeof e=="number")return e===0;if(e!==null)return e==="none"||e==="0"||hx(e)}function a8(e,t,r,n){const o=Bf(t,r);let i;Array.isArray(r)?i=[...r]:i=[null,r];const s=n.from!==void 0?n.from:e.get();let a;const l=[];for(let u=0;uo=>{const i=px(n,e)||{},s=i.delay||n.delay||0;let{elapsed:a=0}=n;a=a-xn(s);const l=a8(t,e,r,i),u=l[0],c=l[l.length-1],d=Bf(e,u),f=Bf(e,c);let p={keyframes:l,velocity:t.getVelocity(),ease:"easeOut",...i,delay:-a,onUpdate:m=>{t.set(m),i.onUpdate&&i.onUpdate(m)},onComplete:()=>{o(),i.onComplete&&i.onComplete()}};if(l8(i)||(p={...p,...t8(e,p)}),p.duration&&(p.duration=xn(p.duration)),p.repeatDelay&&(p.repeatDelay=xn(p.repeatDelay)),!d||!f||oz.current||i.type===!1)return Yz(p);if(t.owner&&t.owner.current instanceof HTMLElement&&!t.owner.getProps().onUpdate){const m=Xz(t,e,p);if(m)return m}return au(p)};function lu(e){return!!(St(e)&&e.add)}const mx=e=>/^\-?\d*\.?\d+$/.test(e);function Dp(e,t){e.indexOf(t)===-1&&e.push(t)}function Bp(e,t){const r=e.indexOf(t);r>-1&&e.splice(r,1)}class Ip{constructor(){this.subscriptions=[]}add(t){return Dp(this.subscriptions,t),()=>Bp(this.subscriptions,t)}notify(t,r,n){const o=this.subscriptions.length;if(o)if(o===1)this.subscriptions[0](t,r,n);else for(let i=0;i!isNaN(parseFloat(e));class c8{constructor(t,r={}){this.version="10.16.4",this.timeDelta=0,this.lastUpdated=0,this.canTrackVelocity=!1,this.events={},this.updateAndNotify=(n,o=!0)=>{this.prev=this.current,this.current=n;const{delta:i,timestamp:s}=He;this.lastUpdated!==s&&(this.timeDelta=i,this.lastUpdated=s,me.postRender(this.scheduleVelocityCheck)),this.prev!==this.current&&this.events.change&&this.events.change.notify(this.current),this.events.velocityChange&&this.events.velocityChange.notify(this.getVelocity()),o&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.scheduleVelocityCheck=()=>me.postRender(this.velocityCheck),this.velocityCheck=({timestamp:n})=>{n!==this.lastUpdated&&(this.prev=this.current,this.events.velocityChange&&this.events.velocityChange.notify(this.getVelocity()))},this.hasAnimated=!1,this.prev=this.current=t,this.canTrackVelocity=u8(this.current),this.owner=r.owner}onChange(t){return this.on("change",t)}on(t,r){this.events[t]||(this.events[t]=new Ip);const n=this.events[t].add(r);return t==="change"?()=>{n(),me.read(()=>{this.events.change.getSize()||this.stop()})}:n}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,r){this.passiveEffect=t,this.stopPassiveEffect=r}set(t,r=!0){!r||!this.passiveEffect?this.updateAndNotify(t,r):this.passiveEffect(t,this.updateAndNotify)}setWithVelocity(t,r,n){this.set(r),this.prev=t,this.timeDelta=n}jump(t){this.updateAndNotify(t),this.prev=t,this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return this.current}getPrevious(){return this.prev}getVelocity(){return this.canTrackVelocity?ux(parseFloat(this.current)-parseFloat(this.prev),this.timeDelta):0}start(t){return this.stop(),new Promise(r=>{this.hasAnimated=!0,this.animation=t(r),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function li(e,t){return new c8(e,t)}const gx=e=>t=>t.test(e),d8={test:e=>e==="auto",parse:e=>e},yx=[lo,V,xr,tn,yR,gR,d8],Mi=e=>yx.find(gx(e)),f8=[...yx,ot,Tn],h8=e=>f8.find(gx(e));function p8(e,t,r){e.hasValue(t)?e.getValue(t).set(r):e.addValue(t,li(r))}function m8(e,t){const r=Ju(e,t);let{transitionEnd:n={},transition:o={},...i}=r?e.makeTargetAnimatable(r,!1):{};i={...i,...n};for(const s in i){const a=RR(i[s]);p8(e,s,a)}}function g8(e,t,r){var n,o;const i=Object.keys(t).filter(a=>!e.hasValue(a)),s=i.length;if(s)for(let a=0;al.remove(d))),u.push(v)}return s&&Promise.all(u).then(()=>{s&&m8(e,s)}),u}function Nf(e,t,r={}){const n=Ju(e,t,r.custom);let{transition:o=e.getDefaultTransition()||{}}=n||{};r.transitionOverride&&(o=r.transitionOverride);const i=n?()=>Promise.all(vx(e,n,r)):()=>Promise.resolve(),s=e.variantChildren&&e.variantChildren.size?(l=0)=>{const{delayChildren:u=0,staggerChildren:c,staggerDirection:d}=o;return S8(e,t,u+l,c,d,r)}:()=>Promise.resolve(),{when:a}=o;if(a){const[l,u]=a==="beforeChildren"?[i,s]:[s,i];return l().then(()=>u())}else return Promise.all([i(),s(r.delay)])}function S8(e,t,r=0,n=0,o=1,i){const s=[],a=(e.variantChildren.size-1)*n,l=o===1?(u=0)=>u*n:(u=0)=>a-u*n;return Array.from(e.variantChildren).sort(x8).forEach((u,c)=>{u.notify("AnimationStart",t),s.push(Nf(u,t,{...i,delay:r+l(c)}).then(()=>u.notify("AnimationComplete",t)))}),Promise.all(s)}function x8(e,t){return e.sortNodePosition(t)}function w8(e,t,r={}){e.notify("AnimationStart",t);let n;if(Array.isArray(t)){const o=t.map(i=>Nf(e,i,r));n=Promise.all(o)}else if(typeof t=="string")n=Nf(e,t,r);else{const o=typeof t=="function"?Ju(e,t,r.custom):t;n=Promise.all(vx(e,o,r))}return n.then(()=>e.notify("AnimationComplete",t))}const k8=[...xp].reverse(),C8=xp.length;function _8(e){return t=>Promise.all(t.map(({animation:r,options:n})=>w8(e,r,n)))}function T8(e){let t=_8(e);const r=E8();let n=!0;const o=(l,u)=>{const c=Ju(e,u);if(c){const{transition:d,transitionEnd:f,...p}=c;l={...l,...p,...f}}return l};function i(l){t=l(e)}function s(l,u){const c=e.getProps(),d=e.getVariantContext(!0)||{},f=[],p=new Set;let m={},v=1/0;for(let g=0;gv&&P;const j=Array.isArray(k)?k:[k];let de=j.reduce(o,{});R===!1&&(de={});const{prevResolvedValues:ye={}}=y,Re={...ye,...de},ae=he=>{O=!0,p.delete(he),y.needsAnimating[he]=!0};for(const he in Re){const Le=de[he],Ie=ye[he];m.hasOwnProperty(he)||(Le!==Ie?ou(Le)&&ou(Ie)?!IS(Le,Ie)||A?ae(he):y.protectedKeys[he]=!0:Le!==void 0?ae(he):p.add(he):Le!==void 0&&p.has(he)?ae(he):y.protectedKeys[he]=!0)}y.prevProp=k,y.prevResolvedValues=de,y.isActive&&(m={...m,...de}),n&&e.blockInitialAnimation&&(O=!1),O&&!E&&f.push(...j.map(he=>({animation:he,options:{type:h,...l}})))}if(p.size){const g={};p.forEach(h=>{const y=e.getBaseTarget(h);y!==void 0&&(g[h]=y)}),f.push({animation:g})}let C=!!f.length;return n&&c.initial===!1&&!e.manuallyAnimateOnMount&&(C=!1),n=!1,C?t(f):Promise.resolve()}function a(l,u,c){var d;if(r[l].isActive===u)return Promise.resolve();(d=e.variantChildren)===null||d===void 0||d.forEach(p=>{var m;return(m=p.animationState)===null||m===void 0?void 0:m.setActive(l,u)}),r[l].isActive=u;const f=s(c,l);for(const p in r)r[p].protectedKeys={};return f}return{animateChanges:s,setActive:a,setAnimateFunction:i,getState:()=>r}}function P8(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!IS(t,e):!1}function On(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function E8(){return{animate:On(!0),whileInView:On(),whileHover:On(),whileTap:On(),whileDrag:On(),whileFocus:On(),exit:On()}}class $8 extends Rn{constructor(t){super(t),t.animationState||(t.animationState=T8(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();this.unmount(),Xu(t)&&(this.unmount=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:r}=this.node.prevProps||{};t!==r&&this.updateAnimationControlsSubscription()}unmount(){}}let A8=0;class R8 extends Rn{constructor(){super(...arguments),this.id=A8++}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:r,custom:n}=this.node.presenceContext,{isPresent:o}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===o)return;const i=this.node.animationState.setActive("exit",!t,{custom:n??this.node.getProps().custom});r&&!t&&i.then(()=>r(this.id))}mount(){const{register:t}=this.node.presenceContext||{};t&&(this.unmount=t(this.id))}unmount(){}}const z8={animation:{Feature:$8},exit:{Feature:R8}},Kg=(e,t)=>Math.abs(e-t);function M8(e,t){const r=Kg(e.x,t.x),n=Kg(e.y,t.y);return Math.sqrt(r**2+n**2)}class bx{constructor(t,r,{transformPagePoint:n}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const u=Sd(this.lastMoveEventInfo,this.history),c=this.startEvent!==null,d=M8(u.offset,{x:0,y:0})>=3;if(!c&&!d)return;const{point:f}=u,{timestamp:p}=He;this.history.push({...f,timestamp:p});const{onStart:m,onMove:v}=this.handlers;c||(m&&m(this.lastMoveEvent,u),this.startEvent=this.lastMoveEvent),v&&v(this.lastMoveEvent,u)},this.handlePointerMove=(u,c)=>{this.lastMoveEvent=u,this.lastMoveEventInfo=bd(c,this.transformPagePoint),me.update(this.updatePoint,!0)},this.handlePointerUp=(u,c)=>{if(this.end(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const{onEnd:d,onSessionEnd:f}=this.handlers,p=Sd(u.type==="pointercancel"?this.lastMoveEventInfo:bd(c,this.transformPagePoint),this.history);this.startEvent&&d&&d(u,p),f&&f(u,p)},!FS(t))return;this.handlers=r,this.transformPagePoint=n;const o=Zu(t),i=bd(o,this.transformPagePoint),{point:s}=i,{timestamp:a}=He;this.history=[{...s,timestamp:a}];const{onSessionStart:l}=r;l&&l(t,Sd(i,this.history)),this.removeListeners=Sn(jr(window,"pointermove",this.handlePointerMove),jr(window,"pointerup",this.handlePointerUp),jr(window,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),Wr(this.updatePoint)}}function bd(e,t){return t?{point:t(e.point)}:e}function qg(e,t){return{x:e.x-t.x,y:e.y-t.y}}function Sd({point:e},t){return{point:e,delta:qg(e,Sx(t)),offset:qg(e,L8(t)),velocity:F8(t,.1)}}function L8(e){return e[0]}function Sx(e){return e[e.length-1]}function F8(e,t){if(e.length<2)return{x:0,y:0};let r=e.length-1,n=null;const o=Sx(e);for(;r>=0&&(n=e[r],!(o.timestamp-n.timestamp>xn(t)));)r--;if(!n)return{x:0,y:0};const i=Dr(o.timestamp-n.timestamp);if(i===0)return{x:0,y:0};const s={x:(o.x-n.x)/i,y:(o.y-n.y)/i};return s.x===1/0&&(s.x=0),s.y===1/0&&(s.y=0),s}function Rt(e){return e.max-e.min}function Vf(e,t=0,r=.01){return Math.abs(e-t)<=r}function Xg(e,t,r,n=.5){e.origin=n,e.originPoint=_e(t.min,t.max,e.origin),e.scale=Rt(r)/Rt(t),(Vf(e.scale,1,1e-4)||isNaN(e.scale))&&(e.scale=1),e.translate=_e(r.min,r.max,e.origin)-e.originPoint,(Vf(e.translate)||isNaN(e.translate))&&(e.translate=0)}function cs(e,t,r,n){Xg(e.x,t.x,r.x,n?n.originX:void 0),Xg(e.y,t.y,r.y,n?n.originY:void 0)}function Yg(e,t,r){e.min=r.min+t.min,e.max=e.min+Rt(t)}function O8(e,t,r){Yg(e.x,t.x,r.x),Yg(e.y,t.y,r.y)}function Qg(e,t,r){e.min=t.min-r.min,e.max=e.min+Rt(t)}function ds(e,t,r){Qg(e.x,t.x,r.x),Qg(e.y,t.y,r.y)}function j8(e,{min:t,max:r},n){return t!==void 0&&er&&(e=n?_e(r,e,n.max):Math.min(e,r)),e}function Zg(e,t,r){return{min:t!==void 0?e.min+t:void 0,max:r!==void 0?e.max+r-(e.max-e.min):void 0}}function D8(e,{top:t,left:r,bottom:n,right:o}){return{x:Zg(e.x,r,o),y:Zg(e.y,t,n)}}function Jg(e,t){let r=t.min-e.min,n=t.max-e.max;return t.max-t.minn?r=Is(t.min,t.max-n,e.min):n>o&&(r=Is(e.min,e.max-o,t.min)),_n(0,1,r)}function N8(e,t){const r={};return t.min!==void 0&&(r.min=t.min-e.min),t.max!==void 0&&(r.max=t.max-e.min),r}const Uf=.35;function V8(e=Uf){return e===!1?e=0:e===!0&&(e=Uf),{x:ey(e,"left","right"),y:ey(e,"top","bottom")}}function ey(e,t,r){return{min:ty(e,t),max:ty(e,r)}}function ty(e,t){return typeof e=="number"?e:e[t]||0}const ry=()=>({translate:0,scale:1,origin:0,originPoint:0}),Bo=()=>({x:ry(),y:ry()}),ny=()=>({min:0,max:0}),Fe=()=>({x:ny(),y:ny()});function fr(e){return[e("x"),e("y")]}function xx({top:e,left:t,right:r,bottom:n}){return{x:{min:t,max:r},y:{min:e,max:n}}}function U8({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function H8(e,t){if(!t)return e;const r=t({x:e.left,y:e.top}),n=t({x:e.right,y:e.bottom});return{top:r.y,left:r.x,bottom:n.y,right:n.x}}function xd(e){return e===void 0||e===1}function Hf({scale:e,scaleX:t,scaleY:r}){return!xd(e)||!xd(t)||!xd(r)}function Bn(e){return Hf(e)||wx(e)||e.z||e.rotate||e.rotateX||e.rotateY}function wx(e){return oy(e.x)||oy(e.y)}function oy(e){return e&&e!=="0%"}function uu(e,t,r){const n=e-r,o=t*n;return r+o}function iy(e,t,r,n,o){return o!==void 0&&(e=uu(e,o,n)),uu(e,r,n)+t}function Wf(e,t=0,r=1,n,o){e.min=iy(e.min,t,r,n,o),e.max=iy(e.max,t,r,n,o)}function kx(e,{x:t,y:r}){Wf(e.x,t.translate,t.scale,t.originPoint),Wf(e.y,r.translate,r.scale,r.originPoint)}function W8(e,t,r,n=!1){const o=r.length;if(!o)return;t.x=t.y=1;let i,s;for(let a=0;a1.0000000000001||e<.999999999999?e:1}function on(e,t){e.min=e.min+t,e.max=e.max+t}function ay(e,t,[r,n,o]){const i=t[o]!==void 0?t[o]:.5,s=_e(e.min,e.max,i);Wf(e,t[r],t[n],s,t.scale)}const G8=["x","scaleX","originX"],K8=["y","scaleY","originY"];function Io(e,t){ay(e.x,t,G8),ay(e.y,t,K8)}function Cx(e,t){return xx(H8(e.getBoundingClientRect(),t))}function q8(e,t,r){const n=Cx(e,r),{scroll:o}=t;return o&&(on(n.x,o.offset.x),on(n.y,o.offset.y)),n}const X8=new WeakMap;class Y8{constructor(t){this.openGlobalLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=Fe(),this.visualElement=t}start(t,{snapToCursor:r=!1}={}){const{presenceContext:n}=this.visualElement;if(n&&n.isPresent===!1)return;const o=l=>{this.stopAnimation(),r&&this.snapToCursor(Zu(l,"page").point)},i=(l,u)=>{const{drag:c,dragPropagation:d,onDragStart:f}=this.getProps();if(c&&!d&&(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=jS(c),!this.openGlobalLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),fr(m=>{let v=this.getAxisMotionValue(m).get()||0;if(xr.test(v)){const{projection:C}=this.visualElement;if(C&&C.layout){const g=C.layout.layoutBox[m];g&&(v=Rt(g)*(parseFloat(v)/100))}}this.originPoint[m]=v}),f&&me.update(()=>f(l,u),!1,!0);const{animationState:p}=this.visualElement;p&&p.setActive("whileDrag",!0)},s=(l,u)=>{const{dragPropagation:c,dragDirectionLock:d,onDirectionLock:f,onDrag:p}=this.getProps();if(!c&&!this.openGlobalLock)return;const{offset:m}=u;if(d&&this.currentDirection===null){this.currentDirection=Q8(m),this.currentDirection!==null&&f&&f(this.currentDirection);return}this.updateAxis("x",u.point,m),this.updateAxis("y",u.point,m),this.visualElement.render(),p&&p(l,u)},a=(l,u)=>this.stop(l,u);this.panSession=new bx(t,{onSessionStart:o,onStart:i,onMove:s,onSessionEnd:a},{transformPagePoint:this.visualElement.getTransformPagePoint()})}stop(t,r){const n=this.isDragging;if(this.cancel(),!n)return;const{velocity:o}=r;this.startAnimation(o);const{onDragEnd:i}=this.getProps();i&&me.update(()=>i(t,r))}cancel(){this.isDragging=!1;const{projection:t,animationState:r}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:n}=this.getProps();!n&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),r&&r.setActive("whileDrag",!1)}updateAxis(t,r,n){const{drag:o}=this.getProps();if(!n||!Ha(t,o,this.currentDirection))return;const i=this.getAxisMotionValue(t);let s=this.originPoint[t]+n[t];this.constraints&&this.constraints[t]&&(s=j8(s,this.constraints[t],this.elastic[t])),i.set(s)}resolveConstraints(){const{dragConstraints:t,dragElastic:r}=this.getProps(),{layout:n}=this.visualElement.projection||{},o=this.constraints;t&&jo(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):t&&n?this.constraints=D8(n.layoutBox,t):this.constraints=!1,this.elastic=V8(r),o!==this.constraints&&n&&this.constraints&&!this.hasMutatedConstraints&&fr(i=>{this.getAxisMotionValue(i)&&(this.constraints[i]=N8(n.layoutBox[i],this.constraints[i]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:r}=this.getProps();if(!t||!jo(t))return!1;const n=t.current,{projection:o}=this.visualElement;if(!o||!o.layout)return!1;const i=q8(n,o.root,this.visualElement.getTransformPagePoint());let s=B8(o.layout.layoutBox,i);if(r){const a=r(U8(s));this.hasMutatedConstraints=!!a,a&&(s=xx(a))}return s}startAnimation(t){const{drag:r,dragMomentum:n,dragElastic:o,dragTransition:i,dragSnapToOrigin:s,onDragTransitionEnd:a}=this.getProps(),l=this.constraints||{},u=fr(c=>{if(!Ha(c,r,this.currentDirection))return;let d=l&&l[c]||{};s&&(d={min:0,max:0});const f=o?200:1e6,p=o?40:1e7,m={type:"inertia",velocity:n?t[c]:0,bounceStiffness:f,bounceDamping:p,timeConstant:750,restDelta:1,restSpeed:10,...i,...d};return this.startAxisValueAnimation(c,m)});return Promise.all(u).then(a)}startAxisValueAnimation(t,r){const n=this.getAxisMotionValue(t);return n.start(jp(t,n,0,r))}stopAnimation(){fr(t=>this.getAxisMotionValue(t).stop())}getAxisMotionValue(t){const r="_drag"+t.toUpperCase(),n=this.visualElement.getProps(),o=n[r];return o||this.visualElement.getValue(t,(n.initial?n.initial[t]:void 0)||0)}snapToCursor(t){fr(r=>{const{drag:n}=this.getProps();if(!Ha(r,n,this.currentDirection))return;const{projection:o}=this.visualElement,i=this.getAxisMotionValue(r);if(o&&o.layout){const{min:s,max:a}=o.layout.layoutBox[r];i.set(t[r]-_e(s,a,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:r}=this.getProps(),{projection:n}=this.visualElement;if(!jo(r)||!n||!this.constraints)return;this.stopAnimation();const o={x:0,y:0};fr(s=>{const a=this.getAxisMotionValue(s);if(a){const l=a.get();o[s]=I8({min:l,max:l},this.constraints[s])}});const{transformTemplate:i}=this.visualElement.getProps();this.visualElement.current.style.transform=i?i({},""):"none",n.root&&n.root.updateScroll(),n.updateLayout(),this.resolveConstraints(),fr(s=>{if(!Ha(s,t,null))return;const a=this.getAxisMotionValue(s),{min:l,max:u}=this.constraints[s];a.set(_e(l,u,o[s]))})}addListeners(){if(!this.visualElement.current)return;X8.set(this.visualElement,this);const t=this.visualElement.current,r=jr(t,"pointerdown",l=>{const{drag:u,dragListener:c=!0}=this.getProps();u&&c&&this.start(l)}),n=()=>{const{dragConstraints:l}=this.getProps();jo(l)&&(this.constraints=this.resolveRefConstraints())},{projection:o}=this.visualElement,i=o.addEventListener("measure",n);o&&!o.layout&&(o.root&&o.root.updateScroll(),o.updateLayout()),n();const s=Mr(window,"resize",()=>this.scalePositionWithinConstraints()),a=o.addEventListener("didUpdate",({delta:l,hasLayoutChanged:u})=>{this.isDragging&&u&&(fr(c=>{const d=this.getAxisMotionValue(c);d&&(this.originPoint[c]+=l[c].translate,d.set(d.get()+l[c].translate))}),this.visualElement.render())});return()=>{s(),r(),i(),a&&a()}}getProps(){const t=this.visualElement.getProps(),{drag:r=!1,dragDirectionLock:n=!1,dragPropagation:o=!1,dragConstraints:i=!1,dragElastic:s=Uf,dragMomentum:a=!0}=t;return{...t,drag:r,dragDirectionLock:n,dragPropagation:o,dragConstraints:i,dragElastic:s,dragMomentum:a}}}function Ha(e,t,r){return(t===!0||t===e)&&(r===null||r===e)}function Q8(e,t=10){let r=null;return Math.abs(e.y)>t?r="y":Math.abs(e.x)>t&&(r="x"),r}class Z8 extends Rn{constructor(t){super(t),this.removeGroupControls=Ae,this.removeListeners=Ae,this.controls=new Y8(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||Ae}unmount(){this.removeGroupControls(),this.removeListeners()}}const ly=e=>(t,r)=>{e&&me.update(()=>e(t,r))};class J8 extends Rn{constructor(){super(...arguments),this.removePointerDownListener=Ae}onPointerDown(t){this.session=new bx(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint()})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:r,onPan:n,onPanEnd:o}=this.node.getProps();return{onSessionStart:ly(t),onStart:ly(r),onMove:n,onEnd:(i,s)=>{delete this.session,o&&me.update(()=>o(i,s))}}}mount(){this.removePointerDownListener=jr(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}function e9(){const e=S.useContext(Zs);if(e===null)return[!0,null];const{isPresent:t,onExitComplete:r,register:n}=e,o=S.useId();return S.useEffect(()=>n(o),[]),!t&&r?[!1,()=>r&&r(o)]:[!0]}function t9(){return r9(S.useContext(Zs))}function r9(e){return e===null?!0:e.isPresent}const vl={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function uy(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const Li={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(V.test(e))e=parseFloat(e);else return e;const r=uy(e,t.target.x),n=uy(e,t.target.y);return`${r}% ${n}%`}},n9={correct:(e,{treeScale:t,projectionDelta:r})=>{const n=e,o=Tn.parse(e);if(o.length>5)return n;const i=Tn.createTransformer(e),s=typeof o[0]!="number"?1:0,a=r.x.scale*t.x,l=r.y.scale*t.y;o[0+s]/=a,o[1+s]/=l;const u=_e(a,l,.5);return typeof o[2+s]=="number"&&(o[2+s]/=u),typeof o[3+s]=="number"&&(o[3+s]/=u),i(o)}};class o9 extends Tt.Component{componentDidMount(){const{visualElement:t,layoutGroup:r,switchLayoutGroup:n,layoutId:o}=this.props,{projection:i}=t;uR(i9),i&&(r.group&&r.group.add(i),n&&n.register&&o&&n.register(i),i.root.didUpdate(),i.addEventListener("animationComplete",()=>{this.safeToRemove()}),i.setOptions({...i.options,onExitComplete:()=>this.safeToRemove()})),vl.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:r,visualElement:n,drag:o,isPresent:i}=this.props,s=n.projection;return s&&(s.isPresent=i,o||t.layoutDependency!==r||r===void 0?s.willUpdate():this.safeToRemove(),t.isPresent!==i&&(i?s.promote():s.relegate()||me.postRender(()=>{const a=s.getStack();(!a||!a.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),queueMicrotask(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:r,switchLayoutGroup:n}=this.props,{projection:o}=t;o&&(o.scheduleCheckAfterUnmount(),r&&r.group&&r.group.remove(o),n&&n.deregister&&n.deregister(o))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function _x(e){const[t,r]=e9(),n=S.useContext(kp);return Tt.createElement(o9,{...e,layoutGroup:n,switchLayoutGroup:S.useContext(SS),isPresent:t,safeToRemove:r})}const i9={borderRadius:{...Li,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:Li,borderTopRightRadius:Li,borderBottomLeftRadius:Li,borderBottomRightRadius:Li,boxShadow:n9},Tx=["TopLeft","TopRight","BottomLeft","BottomRight"],s9=Tx.length,cy=e=>typeof e=="string"?parseFloat(e):e,dy=e=>typeof e=="number"||V.test(e);function a9(e,t,r,n,o,i){o?(e.opacity=_e(0,r.opacity!==void 0?r.opacity:1,l9(n)),e.opacityExit=_e(t.opacity!==void 0?t.opacity:1,0,u9(n))):i&&(e.opacity=_e(t.opacity!==void 0?t.opacity:1,r.opacity!==void 0?r.opacity:1,n));for(let s=0;snt?1:r(Is(e,t,n))}function hy(e,t){e.min=t.min,e.max=t.max}function Bt(e,t){hy(e.x,t.x),hy(e.y,t.y)}function py(e,t,r,n,o){return e-=t,e=uu(e,1/r,n),o!==void 0&&(e=uu(e,1/o,n)),e}function c9(e,t=0,r=1,n=.5,o,i=e,s=e){if(xr.test(t)&&(t=parseFloat(t),t=_e(s.min,s.max,t/100)-s.min),typeof t!="number")return;let a=_e(i.min,i.max,n);e===i&&(a-=t),e.min=py(e.min,t,r,a,o),e.max=py(e.max,t,r,a,o)}function my(e,t,[r,n,o],i,s){c9(e,t[r],t[n],t[o],t.scale,i,s)}const d9=["x","scaleX","originX"],f9=["y","scaleY","originY"];function gy(e,t,r,n){my(e.x,t,d9,r?r.x:void 0,n?n.x:void 0),my(e.y,t,f9,r?r.y:void 0,n?n.y:void 0)}function yy(e){return e.translate===0&&e.scale===1}function Ex(e){return yy(e.x)&&yy(e.y)}function h9(e,t){return e.x.min===t.x.min&&e.x.max===t.x.max&&e.y.min===t.y.min&&e.y.max===t.y.max}function $x(e,t){return Math.round(e.x.min)===Math.round(t.x.min)&&Math.round(e.x.max)===Math.round(t.x.max)&&Math.round(e.y.min)===Math.round(t.y.min)&&Math.round(e.y.max)===Math.round(t.y.max)}function vy(e){return Rt(e.x)/Rt(e.y)}class p9{constructor(){this.members=[]}add(t){Dp(this.members,t),t.scheduleRender()}remove(t){if(Bp(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){const r=this.members[this.members.length-1];r&&this.promote(r)}}relegate(t){const r=this.members.findIndex(o=>t===o);if(r===0)return!1;let n;for(let o=r;o>=0;o--){const i=this.members[o];if(i.isPresent!==!1){n=i;break}}return n?(this.promote(n),!0):!1}promote(t,r){const n=this.lead;if(t!==n&&(this.prevLead=n,this.lead=t,t.show(),n)){n.instance&&n.scheduleRender(),t.scheduleRender(),t.resumeFrom=n,r&&(t.resumeFrom.preserveOpacity=!0),n.snapshot&&(t.snapshot=n.snapshot,t.snapshot.latestValues=n.animationValues||n.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);const{crossfade:o}=t.options;o===!1&&n.hide()}}exitAnimationComplete(){this.members.forEach(t=>{const{options:r,resumingFrom:n}=t;r.onExitComplete&&r.onExitComplete(),n&&n.options.onExitComplete&&n.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function by(e,t,r){let n="";const o=e.x.translate/t.x,i=e.y.translate/t.y;if((o||i)&&(n=`translate3d(${o}px, ${i}px, 0) `),(t.x!==1||t.y!==1)&&(n+=`scale(${1/t.x}, ${1/t.y}) `),r){const{rotate:l,rotateX:u,rotateY:c}=r;l&&(n+=`rotate(${l}deg) `),u&&(n+=`rotateX(${u}deg) `),c&&(n+=`rotateY(${c}deg) `)}const s=e.x.scale*t.x,a=e.y.scale*t.y;return(s!==1||a!==1)&&(n+=`scale(${s}, ${a})`),n||"none"}const m9=(e,t)=>e.depth-t.depth;class g9{constructor(){this.children=[],this.isDirty=!1}add(t){Dp(this.children,t),this.isDirty=!0}remove(t){Bp(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(m9),this.isDirty=!1,this.children.forEach(t)}}function y9(e,t){const r=performance.now(),n=({timestamp:o})=>{const i=o-r;i>=t&&(Wr(n),e(i-t))};return me.read(n,!0),()=>Wr(n)}function v9(e){window.MotionDebug&&window.MotionDebug.record(e)}function b9(e){return e instanceof SVGElement&&e.tagName!=="svg"}function S9(e,t,r){const n=St(e)?e:li(e);return n.start(jp("",n,t,r)),n.animation}const Sy=["","X","Y","Z"],xy=1e3;let x9=0;const In={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0};function Ax({attachResizeListener:e,defaultParent:t,measureScroll:r,checkIsScrollRoot:n,resetTransform:o}){return class{constructor(s={},a=t==null?void 0:t()){this.id=x9++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{In.totalNodes=In.resolvedTargetDeltas=In.recalculatedProjection=0,this.nodes.forEach(C9),this.nodes.forEach($9),this.nodes.forEach(A9),this.nodes.forEach(_9),v9(In)},this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=s,this.root=a?a.root||a:this,this.path=a?[...a.path,a]:[],this.parent=a,this.depth=a?a.depth+1:0;for(let l=0;lthis.root.updateBlockedByResize=!1;e(s,()=>{this.root.updateBlockedByResize=!0,d&&d(),d=y9(f,250),vl.hasAnimatedSinceResize&&(vl.hasAnimatedSinceResize=!1,this.nodes.forEach(ky))})}l&&this.root.registerSharedNode(l,this),this.options.animate!==!1&&c&&(l||u)&&this.addEventListener("didUpdate",({delta:d,hasLayoutChanged:f,hasRelativeTargetChanged:p,layout:m})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const v=this.options.transition||c.getDefaultTransition()||F9,{onLayoutAnimationStart:C,onLayoutAnimationComplete:g}=c.getProps(),h=!this.targetLayout||!$x(this.targetLayout,m)||p,y=!f&&p;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||y||f&&(h||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(d,y);const k={...px(v,"layout"),onPlay:C,onComplete:g};(c.shouldReduceMotion||this.options.layoutRoot)&&(k.delay=0,k.type=!1),this.startAnimation(k)}else f||ky(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=m})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const s=this.getStack();s&&s.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,Wr(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(R9),this.animationId++)}getTransformTemplate(){const{visualElement:s}=this.options;return s&&s.getProps().transformTemplate}willUpdate(s=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let c=0;cthis.update()))}clearAllSnapshots(){this.nodes.forEach(T9),this.sharedNodes.forEach(z9)}scheduleUpdateProjection(){me.preRender(this.updateProjection,!1,!0)}scheduleCheckAfterUnmount(){me.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure())}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let l=0;l{const P=k/1e3;Cy(d.x,s.x,P),Cy(d.y,s.y,P),this.setTargetDelta(d),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(ds(f,this.layout.layoutBox,this.relativeParent.layout.layoutBox),M9(this.relativeTarget,this.relativeTargetOrigin,f,P),y&&h9(this.relativeTarget,y)&&(this.isProjectionDirty=!1),y||(y=Fe()),Bt(y,this.relativeTarget)),v&&(this.animationValues=c,a9(c,u,this.latestValues,P,h,g)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=P},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(s){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(Wr(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=me.update(()=>{vl.hasAnimatedSinceResize=!0,this.currentAnimation=S9(0,xy,{...s,onUpdate:a=>{this.mixTargetDelta(a),s.onUpdate&&s.onUpdate(a)},onComplete:()=>{s.onComplete&&s.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const s=this.getStack();s&&s.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(xy),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const s=this.getLead();let{targetWithTransforms:a,target:l,layout:u,latestValues:c}=s;if(!(!a||!l||!u)){if(this!==s&&this.layout&&u&&Rx(this.options.animationType,this.layout.layoutBox,u.layoutBox)){l=this.target||Fe();const d=Rt(this.layout.layoutBox.x);l.x.min=s.target.x.min,l.x.max=l.x.min+d;const f=Rt(this.layout.layoutBox.y);l.y.min=s.target.y.min,l.y.max=l.y.min+f}Bt(a,l),Io(a,c),cs(this.projectionDeltaWithTransform,this.layoutCorrected,a,c)}}registerSharedNode(s,a){this.sharedNodes.has(s)||this.sharedNodes.set(s,new p9),this.sharedNodes.get(s).add(a);const u=a.options.initialPromotionConfig;a.promote({transition:u?u.transition:void 0,preserveFollowOpacity:u&&u.shouldPreserveFollowOpacity?u.shouldPreserveFollowOpacity(a):void 0})}isLead(){const s=this.getStack();return s?s.lead===this:!0}getLead(){var s;const{layoutId:a}=this.options;return a?((s=this.getStack())===null||s===void 0?void 0:s.lead)||this:this}getPrevLead(){var s;const{layoutId:a}=this.options;return a?(s=this.getStack())===null||s===void 0?void 0:s.prevLead:void 0}getStack(){const{layoutId:s}=this.options;if(s)return this.root.sharedNodes.get(s)}promote({needsReset:s,transition:a,preserveFollowOpacity:l}={}){const u=this.getStack();u&&u.promote(this,l),s&&(this.projectionDelta=void 0,this.needsReset=!0),a&&this.setOptions({transition:a})}relegate(){const s=this.getStack();return s?s.relegate(this):!1}resetRotation(){const{visualElement:s}=this.options;if(!s)return;let a=!1;const{latestValues:l}=s;if((l.rotate||l.rotateX||l.rotateY||l.rotateZ)&&(a=!0),!a)return;const u={};for(let c=0;c{var a;return(a=s.currentAnimation)===null||a===void 0?void 0:a.stop()}),this.root.nodes.forEach(wy),this.root.sharedNodes.clear()}}}function w9(e){e.updateLayout()}function k9(e){var t;const r=((t=e.resumeFrom)===null||t===void 0?void 0:t.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&r&&e.hasListeners("didUpdate")){const{layoutBox:n,measuredBox:o}=e.layout,{animationType:i}=e.options,s=r.source!==e.layout.source;i==="size"?fr(d=>{const f=s?r.measuredBox[d]:r.layoutBox[d],p=Rt(f);f.min=n[d].min,f.max=f.min+p}):Rx(i,r.layoutBox,n)&&fr(d=>{const f=s?r.measuredBox[d]:r.layoutBox[d],p=Rt(n[d]);f.max=f.min+p,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[d].max=e.relativeTarget[d].min+p)});const a=Bo();cs(a,n,r.layoutBox);const l=Bo();s?cs(l,e.applyTransform(o,!0),r.measuredBox):cs(l,n,r.layoutBox);const u=!Ex(a);let c=!1;if(!e.resumeFrom){const d=e.getClosestProjectingParent();if(d&&!d.resumeFrom){const{snapshot:f,layout:p}=d;if(f&&p){const m=Fe();ds(m,r.layoutBox,f.layoutBox);const v=Fe();ds(v,n,p.layoutBox),$x(m,v)||(c=!0),d.options.layoutRoot&&(e.relativeTarget=v,e.relativeTargetOrigin=m,e.relativeParent=d)}}}e.notifyListeners("didUpdate",{layout:n,snapshot:r,delta:l,layoutDelta:a,hasLayoutChanged:u,hasRelativeTargetChanged:c})}else if(e.isLead()){const{onExitComplete:n}=e.options;n&&n()}e.options.transition=void 0}function C9(e){In.totalNodes++,e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function _9(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function T9(e){e.clearSnapshot()}function wy(e){e.clearMeasurements()}function P9(e){e.isLayoutDirty=!1}function E9(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function ky(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function $9(e){e.resolveTargetDelta()}function A9(e){e.calcProjection()}function R9(e){e.resetRotation()}function z9(e){e.removeLeadSnapshot()}function Cy(e,t,r){e.translate=_e(t.translate,0,r),e.scale=_e(t.scale,1,r),e.origin=t.origin,e.originPoint=t.originPoint}function _y(e,t,r,n){e.min=_e(t.min,r.min,n),e.max=_e(t.max,r.max,n)}function M9(e,t,r,n){_y(e.x,t.x,r.x,n),_y(e.y,t.y,r.y,n)}function L9(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const F9={duration:.45,ease:[.4,0,.1,1]},Ty=e=>typeof navigator<"u"&&navigator.userAgent.toLowerCase().includes(e),Py=Ty("applewebkit/")&&!Ty("chrome/")?Math.round:Ae;function Ey(e){e.min=Py(e.min),e.max=Py(e.max)}function O9(e){Ey(e.x),Ey(e.y)}function Rx(e,t,r){return e==="position"||e==="preserve-aspect"&&!Vf(vy(t),vy(r),.2)}const j9=Ax({attachResizeListener:(e,t)=>Mr(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),wd={current:void 0},zx=Ax({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!wd.current){const e=new j9({});e.mount(window),e.setOptions({layoutScroll:!0}),wd.current=e}return wd.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),D9={pan:{Feature:J8},drag:{Feature:Z8,ProjectionNode:zx,MeasureLayout:_x}},B9=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/;function I9(e){const t=B9.exec(e);if(!t)return[,];const[,r,n]=t;return[r,n]}function Gf(e,t,r=1){const[n,o]=I9(e);if(!n)return;const i=window.getComputedStyle(t).getPropertyValue(n);if(i){const s=i.trim();return mx(s)?parseFloat(s):s}else return Ff(o)?Gf(o,t,r+1):o}function N9(e,{...t},r){const n=e.current;if(!(n instanceof Element))return{target:t,transitionEnd:r};r&&(r={...r}),e.values.forEach(o=>{const i=o.get();if(!Ff(i))return;const s=Gf(i,n);s&&o.set(s)});for(const o in t){const i=t[o];if(!Ff(i))continue;const s=Gf(i,n);s&&(t[o]=s,r||(r={}),r[o]===void 0&&(r[o]=i))}return{target:t,transitionEnd:r}}const V9=new Set(["width","height","top","left","right","bottom","x","y","translateX","translateY"]),Mx=e=>V9.has(e),U9=e=>Object.keys(e).some(Mx),$y=e=>e===lo||e===V,Ay=(e,t)=>parseFloat(e.split(", ")[t]),Ry=(e,t)=>(r,{transform:n})=>{if(n==="none"||!n)return 0;const o=n.match(/^matrix3d\((.+)\)$/);if(o)return Ay(o[1],t);{const i=n.match(/^matrix\((.+)\)$/);return i?Ay(i[1],e):0}},H9=new Set(["x","y","z"]),W9=Js.filter(e=>!H9.has(e));function G9(e){const t=[];return W9.forEach(r=>{const n=e.getValue(r);n!==void 0&&(t.push([r,n.get()]),n.set(r.startsWith("scale")?1:0))}),t.length&&e.render(),t}const ui={width:({x:e},{paddingLeft:t="0",paddingRight:r="0"})=>e.max-e.min-parseFloat(t)-parseFloat(r),height:({y:e},{paddingTop:t="0",paddingBottom:r="0"})=>e.max-e.min-parseFloat(t)-parseFloat(r),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:Ry(4,13),y:Ry(5,14)};ui.translateX=ui.x;ui.translateY=ui.y;const K9=(e,t,r)=>{const n=t.measureViewportBox(),o=t.current,i=getComputedStyle(o),{display:s}=i,a={};s==="none"&&t.setStaticValue("display",e.display||"block"),r.forEach(u=>{a[u]=ui[u](n,i)}),t.render();const l=t.measureViewportBox();return r.forEach(u=>{const c=t.getValue(u);c&&c.jump(a[u]),e[u]=ui[u](l,i)}),e},q9=(e,t,r={},n={})=>{t={...t},n={...n};const o=Object.keys(t).filter(Mx);let i=[],s=!1;const a=[];if(o.forEach(l=>{const u=e.getValue(l);if(!e.hasValue(l))return;let c=r[l],d=Mi(c);const f=t[l];let p;if(ou(f)){const m=f.length,v=f[0]===null?1:0;c=f[v],d=Mi(c);for(let C=v;C=0?window.pageYOffset:null,u=K9(t,e,a);return i.length&&i.forEach(([c,d])=>{e.getValue(c).set(d)}),e.render(),qu&&l!==null&&window.scrollTo({top:l}),{target:u,transitionEnd:n}}else return{target:t,transitionEnd:n}};function X9(e,t,r,n){return U9(t)?q9(e,t,r,n):{target:t,transitionEnd:n}}const Y9=(e,t,r,n)=>{const o=N9(e,t,n);return t=o.target,n=o.transitionEnd,X9(e,t,r,n)},Kf={current:null},Lx={current:!1};function Q9(){if(Lx.current=!0,!!qu)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>Kf.current=e.matches;e.addListener(t),t()}else Kf.current=!1}function Z9(e,t,r){const{willChange:n}=t;for(const o in t){const i=t[o],s=r[o];if(St(i))e.addValue(o,i),lu(n)&&n.add(o);else if(St(s))e.addValue(o,li(i,{owner:e})),lu(n)&&n.remove(o);else if(s!==i)if(e.hasValue(o)){const a=e.getValue(o);!a.hasAnimated&&a.set(i)}else{const a=e.getStaticValue(o);e.addValue(o,li(a!==void 0?a:i,{owner:e}))}}for(const o in r)t[o]===void 0&&e.removeValue(o);return t}const zy=new WeakMap,Fx=Object.keys(Bs),J9=Fx.length,My=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],eM=wp.length;class tM{constructor({parent:t,props:r,presenceContext:n,reducedMotionConfig:o,visualState:i},s={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.scheduleRender=()=>me.render(this.render,!1,!0);const{latestValues:a,renderState:l}=i;this.latestValues=a,this.baseTarget={...a},this.initialValues=r.initial?{...a}:{},this.renderState=l,this.parent=t,this.props=r,this.presenceContext=n,this.depth=t?t.depth+1:0,this.reducedMotionConfig=o,this.options=s,this.isControllingVariants=Yu(r),this.isVariantNode=bS(r),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:u,...c}=this.scrapeMotionValuesFromProps(r,{});for(const d in c){const f=c[d];a[d]!==void 0&&St(f)&&(f.set(a[d],!1),lu(u)&&u.add(d))}}scrapeMotionValuesFromProps(t,r){return{}}mount(t){this.current=t,zy.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((r,n)=>this.bindToMotionValue(n,r)),Lx.current||Q9(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:Kf.current,this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){zy.delete(this.current),this.projection&&this.projection.unmount(),Wr(this.notifyUpdate),Wr(this.render),this.valueSubscriptions.forEach(t=>t()),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const t in this.events)this.events[t].clear();for(const t in this.features)this.features[t].unmount();this.current=null}bindToMotionValue(t,r){const n=ao.has(t),o=r.on("change",s=>{this.latestValues[t]=s,this.props.onUpdate&&me.update(this.notifyUpdate,!1,!0),n&&this.projection&&(this.projection.isTransformDirty=!0)}),i=r.on("renderRequest",this.scheduleRender);this.valueSubscriptions.set(t,()=>{o(),i()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}loadFeatures({children:t,...r},n,o,i){let s,a;for(let l=0;lthis.scheduleRender(),animationType:typeof u=="string"?u:"both",initialPromotionConfig:i,layoutScroll:f,layoutRoot:p})}return a}updateFeatures(){for(const t in this.features){const r=this.features[t];r.isMounted?r.update():(r.mount(),r.isMounted=!0)}}triggerBuild(){this.build(this.renderState,this.latestValues,this.options,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):Fe()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,r){this.latestValues[t]=r}makeTargetAnimatable(t,r=!0){return this.makeTargetAnimatableFromInstance(t,this.props,r)}update(t,r){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=r;for(let n=0;nr.variantChildren.delete(t)}addValue(t,r){r!==this.values.get(t)&&(this.removeValue(t),this.bindToMotionValue(t,r)),this.values.set(t,r),this.latestValues[t]=r.get()}removeValue(t){this.values.delete(t);const r=this.valueSubscriptions.get(t);r&&(r(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,r){if(this.props.values&&this.props.values[t])return this.props.values[t];let n=this.values.get(t);return n===void 0&&r!==void 0&&(n=li(r,{owner:this}),this.addValue(t,n)),n}readValue(t){var r;return this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:(r=this.getBaseTargetFromProps(this.props,t))!==null&&r!==void 0?r:this.readValueFromInstance(this.current,t,this.options)}setBaseTarget(t,r){this.baseTarget[t]=r}getBaseTarget(t){var r;const{initial:n}=this.props,o=typeof n=="string"||typeof n=="object"?(r=Rp(this.props,n))===null||r===void 0?void 0:r[t]:void 0;if(n&&o!==void 0)return o;const i=this.getBaseTargetFromProps(this.props,t);return i!==void 0&&!St(i)?i:this.initialValues[t]!==void 0&&o===void 0?void 0:this.baseTarget[t]}on(t,r){return this.events[t]||(this.events[t]=new Ip),this.events[t].add(r)}notify(t,...r){this.events[t]&&this.events[t].notify(...r)}}class Ox extends tM{sortInstanceNodePosition(t,r){return t.compareDocumentPosition(r)&2?1:-1}getBaseTargetFromProps(t,r){return t.style?t.style[r]:void 0}removeValueFromRenderState(t,{vars:r,style:n}){delete r[t],delete n[t]}makeTargetAnimatableFromInstance({transition:t,transitionEnd:r,...n},{transformValues:o},i){let s=v8(n,t||{},this);if(o&&(r&&(r=o(r)),n&&(n=o(n)),s&&(s=o(s))),i){g8(this,n,s);const a=Y9(this,n,s,r);r=a.transitionEnd,n=a.target}return{transition:t,transitionEnd:r,...n}}}function rM(e){return window.getComputedStyle(e)}class nM extends Ox{readValueFromInstance(t,r){if(ao.has(r)){const n=Op(r);return n&&n.default||0}else{const n=rM(t),o=(kS(r)?n.getPropertyValue(r):n[r])||0;return typeof o=="string"?o.trim():o}}measureInstanceViewportBox(t,{transformPagePoint:r}){return Cx(t,r)}build(t,r,n,o){_p(t,r,n,o.transformTemplate)}scrapeMotionValuesFromProps(t,r){return Ap(t,r)}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;St(t)&&(this.childSubscription=t.on("change",r=>{this.current&&(this.current.textContent=`${r}`)}))}renderInstance(t,r,n,o){$S(t,r,n,o)}}class oM extends Ox{constructor(){super(...arguments),this.isSVGTag=!1}getBaseTargetFromProps(t,r){return t[r]}readValueFromInstance(t,r){if(ao.has(r)){const n=Op(r);return n&&n.default||0}return r=AS.has(r)?r:$p(r),t.getAttribute(r)}measureInstanceViewportBox(){return Fe()}scrapeMotionValuesFromProps(t,r){return zS(t,r)}build(t,r,n,o){Pp(t,r,n,this.isSVGTag,o.transformTemplate)}renderInstance(t,r,n,o){RS(t,r,n,o)}mount(t){this.isSVGTag=Ep(t.tagName),super.mount(t)}}const iM=(e,t)=>Cp(e)?new oM(t,{enableHardwareAcceleration:!1}):new nM(t,{enableHardwareAcceleration:!0}),sM={layout:{ProjectionNode:zx,MeasureLayout:_x}},aM={...z8,...ZR,...D9,...sM},lM=aR((e,t)=>BR(e,t,aM,iM));function jx(){const e=S.useRef(!1);return Sp(()=>(e.current=!0,()=>{e.current=!1}),[]),e}function uM(){const e=jx(),[t,r]=S.useState(0),n=S.useCallback(()=>{e.current&&r(t+1)},[t]);return[S.useCallback(()=>me.postRender(n),[n]),t]}class cM extends S.Component{getSnapshotBeforeUpdate(t){const r=this.props.childRef.current;if(r&&t.isPresent&&!this.props.isPresent){const n=this.props.sizeRef.current;n.height=r.offsetHeight||0,n.width=r.offsetWidth||0,n.top=r.offsetTop,n.left=r.offsetLeft}return null}componentDidUpdate(){}render(){return this.props.children}}function dM({children:e,isPresent:t}){const r=S.useId(),n=S.useRef(null),o=S.useRef({width:0,height:0,top:0,left:0});return S.useInsertionEffect(()=>{const{width:i,height:s,top:a,left:l}=o.current;if(t||!n.current||!i||!s)return;n.current.dataset.motionPopId=r;const u=document.createElement("style");return document.head.appendChild(u),u.sheet&&u.sheet.insertRule(` [data-motion-pop-id="${r}"] { position: absolute !important; width: ${i}px !important; @@ -347,6 +347,6 @@ Error generating stack: `+i.message+` top: ${a}px !important; left: ${l}px !important; } - `),()=>{document.head.removeChild(u)}},[t]),S.createElement(cM,{isPresent:t,childRef:n,sizeRef:o},S.cloneElement(e,{ref:n}))}const wd=({children:e,initial:t,isPresent:r,onExitComplete:n,custom:o,presenceAffectsLayout:i,mode:s})=>{const a=MS(fM),l=S.useId(),u=S.useMemo(()=>({id:l,initial:t,isPresent:r,custom:o,onExitComplete:c=>{a.set(c,!0);for(const d of a.values())if(!d)return;n&&n()},register:c=>(a.set(c,!1),()=>a.delete(c))}),i?void 0:[r]);return S.useMemo(()=>{a.forEach((c,d)=>a.set(d,!1))},[r]),S.useEffect(()=>{!r&&!a.size&&n&&n()},[r]),s==="popLayout"&&(e=S.createElement(dM,{isPresent:r},e)),S.createElement(Zs.Provider,{value:u},e)};function fM(){return new Map}function hM(e){return S.useEffect(()=>()=>e(),[])}const vo=e=>e.key||"";function pM(e,t){e.forEach(r=>{const n=vo(r);t.set(n,r)})}function mM(e){const t=[];return S.Children.forEach(e,r=>{S.isValidElement(r)&&t.push(r)}),t}const gM=({children:e,custom:t,initial:r=!0,onExitComplete:n,exitBeforeEnter:o,presenceAffectsLayout:i=!0,mode:s="sync"})=>{const a=S.useContext(wp).forceRender||uM()[0],l=jx(),u=mM(e);let c=u;const d=S.useRef(new Map).current,f=S.useRef(c),p=S.useRef(new Map).current,m=S.useRef(!0);if(bp(()=>{m.current=!1,pM(u,p),f.current=c}),hM(()=>{m.current=!0,p.clear(),d.clear()}),m.current)return S.createElement(S.Fragment,null,c.map(h=>S.createElement(wd,{key:vo(h),isPresent:!0,initial:r?void 0:!1,presenceAffectsLayout:i,mode:s},h)));c=[...c];const v=f.current.map(vo),C=u.map(vo),g=v.length;for(let h=0;h{if(C.indexOf(y)!==-1)return;const k=p.get(y);if(!k)return;const P=v.indexOf(y);let R=h;if(!R){const E=()=>{p.delete(y),d.delete(y);const A=f.current.findIndex(O=>O.key===y);if(f.current.splice(A,1),!d.size){if(f.current=u,l.current===!1)return;a(),n&&n()}};R=S.createElement(wd,{key:vo(k),isPresent:!1,onExitComplete:E,custom:t,presenceAffectsLayout:i,mode:s},k),d.set(y,R)}c.splice(P,0,R)}),c=c.map(h=>{const y=h.key;return d.has(y)?h:S.createElement(wd,{key:vo(h),isPresent:!0,presenceAffectsLayout:i,mode:s},h)}),S.createElement(S.Fragment,null,d.size?c:c.map(h=>S.cloneElement(h)))};var yM={initial:e=>{const{position:t}=e,r=["top","bottom"].includes(t)?"y":"x";let n=["top-right","bottom-right"].includes(t)?1:-1;return t==="bottom"&&(n=1),{opacity:0,[r]:n*24}},animate:{opacity:1,y:0,x:0,scale:1,transition:{duration:.4,ease:[.4,0,.2,1]}},exit:{opacity:0,scale:.85,transition:{duration:.2,ease:[.4,0,1,1]}}},Dx=S.memo(e=>{const{id:t,message:r,onCloseComplete:n,onRequestRemove:o,requestClose:i=!1,position:s="bottom",duration:a=5e3,containerStyle:l,motionVariants:u=yM,toastSpacing:c="0.5rem"}=e,[d,f]=S.useState(a),p=t9();Mf(()=>{p||n==null||n()},[p]),Mf(()=>{f(a)},[a]);const m=()=>f(null),v=()=>f(a),C=()=>{p&&o()};S.useEffect(()=>{p&&i&&o()},[p,i,o]),ZA(C,d);const g=S.useMemo(()=>({pointerEvents:"auto",maxWidth:560,minWidth:300,margin:c,...l}),[l,c]),h=S.useMemo(()=>YA(s),[s]);return _.jsx(lM.div,{layout:!0,className:"chakra-toast",variants:u,initial:"initial",animate:"animate",exit:"exit",onHoverStart:m,onHoverEnd:v,custom:{position:s},style:h,children:_.jsx(H.div,{role:"status","aria-atomic":"true",className:"chakra-toast__inner",__css:g,children:dn(r,{id:t,onClose:C})})})});Dx.displayName="ToastComponent";var Ly={path:_.jsxs("g",{stroke:"currentColor",strokeWidth:"1.5",children:[_.jsx("path",{strokeLinecap:"round",fill:"none",d:"M9,9a3,3,0,1,1,4,2.829,1.5,1.5,0,0,0-1,1.415V14.25"}),_.jsx("path",{fill:"currentColor",strokeLinecap:"round",d:"M12,17.25a.375.375,0,1,0,.375.375A.375.375,0,0,0,12,17.25h0"}),_.jsx("circle",{fill:"none",strokeMiterlimit:"10",cx:"12",cy:"12",r:"11.25"})]}),viewBox:"0 0 24 24"},uo=se((e,t)=>{const{as:r,viewBox:n,color:o="currentColor",focusable:i=!1,children:s,className:a,__css:l,...u}=e,c=Be("chakra-icon",a),d=An("Icon",e),f={w:"1em",h:"1em",display:"inline-block",lineHeight:"1em",flexShrink:0,color:o,...l,...d},p={ref:t,focusable:i,className:c,__css:f},m=n??Ly.viewBox;if(r&&typeof r!="string")return _.jsx(H.svg,{as:r,...p,...u});const v=s??Ly.path;return _.jsx(H.svg,{verticalAlign:"middle",viewBox:m,...p,...u,children:v})});uo.displayName="Icon";function vM(e){return _.jsx(uo,{viewBox:"0 0 24 24",...e,children:_.jsx("path",{fill:"currentColor",d:"M12,0A12,12,0,1,0,24,12,12.014,12.014,0,0,0,12,0Zm6.927,8.2-6.845,9.289a1.011,1.011,0,0,1-1.43.188L5.764,13.769a1,1,0,1,1,1.25-1.562l4.076,3.261,6.227-8.451A1,1,0,1,1,18.927,8.2Z"})})}function bM(e){return _.jsx(uo,{viewBox:"0 0 24 24",...e,children:_.jsx("path",{fill:"currentColor",d:"M12,0A12,12,0,1,0,24,12,12.013,12.013,0,0,0,12,0Zm.25,5a1.5,1.5,0,1,1-1.5,1.5A1.5,1.5,0,0,1,12.25,5ZM14.5,18.5h-4a1,1,0,0,1,0-2h.75a.25.25,0,0,0,.25-.25v-4.5a.25.25,0,0,0-.25-.25H10.5a1,1,0,0,1,0-2h1a2,2,0,0,1,2,2v4.75a.25.25,0,0,0,.25.25h.75a1,1,0,1,1,0,2Z"})})}function Fy(e){return _.jsx(uo,{viewBox:"0 0 24 24",...e,children:_.jsx("path",{fill:"currentColor",d:"M11.983,0a12.206,12.206,0,0,0-8.51,3.653A11.8,11.8,0,0,0,0,12.207,11.779,11.779,0,0,0,11.8,24h.214A12.111,12.111,0,0,0,24,11.791h0A11.766,11.766,0,0,0,11.983,0ZM10.5,16.542a1.476,1.476,0,0,1,1.449-1.53h.027a1.527,1.527,0,0,1,1.523,1.47,1.475,1.475,0,0,1-1.449,1.53h-.027A1.529,1.529,0,0,1,10.5,16.542ZM11,12.5v-6a1,1,0,0,1,2,0v6a1,1,0,1,1-2,0Z"})})}var SM=ap({"0%":{transform:"rotate(0deg)"},"100%":{transform:"rotate(360deg)"}}),Ip=se((e,t)=>{const r=An("Spinner",e),{label:n="Loading...",thickness:o="2px",speed:i="0.45s",emptyColor:s="transparent",className:a,...l}=Xt(e),u=Be("chakra-spinner",a),c={display:"inline-block",borderColor:"currentColor",borderStyle:"solid",borderRadius:"99999px",borderWidth:o,borderBottomColor:s,borderLeftColor:s,animation:`${SM} ${i} linear infinite`,...r};return _.jsx(H.div,{ref:t,__css:c,className:u,...l,children:n&&_.jsx(H.span,{srOnly:!0,children:n})})});Ip.displayName="Spinner";var[xM,Np]=Kr({name:"AlertContext",hookName:"useAlertContext",providerName:""}),[wM,Vp]=Kr({name:"AlertStylesContext",hookName:"useAlertStyles",providerName:""}),Bx={info:{icon:bM,colorScheme:"blue"},warning:{icon:Fy,colorScheme:"orange"},success:{icon:vM,colorScheme:"green"},error:{icon:Fy,colorScheme:"red"},loading:{icon:Ip,colorScheme:"blue"}};function kM(e){return Bx[e].colorScheme}function CM(e){return Bx[e].icon}var Ix=se(function(t,r){const n=Vp(),{status:o}=Np(),i={display:"inline",...n.description};return _.jsx(H.div,{ref:r,"data-status":o,...t,className:Be("chakra-alert__desc",t.className),__css:i})});Ix.displayName="AlertDescription";function Nx(e){const{status:t}=Np(),r=CM(t),n=Vp(),o=t==="loading"?n.spinner:n.icon;return _.jsx(H.span,{display:"inherit","data-status":t,...e,className:Be("chakra-alert__icon",e.className),__css:o,children:e.children||_.jsx(r,{h:"100%",w:"100%"})})}Nx.displayName="AlertIcon";var Vx=se(function(t,r){const n=Vp(),{status:o}=Np();return _.jsx(H.div,{ref:r,"data-status":o,...t,className:Be("chakra-alert__title",t.className),__css:n.title})});Vx.displayName="AlertTitle";var Ux=se(function(t,r){var n;const{status:o="info",addRole:i=!0,...s}=Xt(t),a=(n=t.colorScheme)!=null?n:kM(o),l=Qs("Alert",{...t,colorScheme:a}),u={width:"100%",display:"flex",alignItems:"center",position:"relative",overflow:"hidden",...l.container};return _.jsx(xM,{value:{status:o},children:_.jsx(wM,{value:l,children:_.jsx(H.div,{"data-status":o,role:i?"alert":void 0,ref:r,...s,className:Be("chakra-alert",t.className),__css:u})})})});Ux.displayName="Alert";function _M(e){return _.jsx(uo,{focusable:"false","aria-hidden":!0,...e,children:_.jsx("path",{fill:"currentColor",d:"M.439,21.44a1.5,1.5,0,0,0,2.122,2.121L11.823,14.3a.25.25,0,0,1,.354,0l9.262,9.263a1.5,1.5,0,1,0,2.122-2.121L14.3,12.177a.25.25,0,0,1,0-.354l9.263-9.262A1.5,1.5,0,0,0,21.439.44L12.177,9.7a.25.25,0,0,1-.354,0L2.561.44A1.5,1.5,0,0,0,.439,2.561L9.7,11.823a.25.25,0,0,1,0,.354Z"})})}var Hx=se(function(t,r){const n=An("CloseButton",t),{children:o,isDisabled:i,__css:s,...a}=Xt(t),l={outline:0,display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0};return _.jsx(H.button,{type:"button","aria-label":"Close",ref:r,disabled:i,__css:{...l,...n,...s},...a,children:o||_.jsx(_M,{width:"1em",height:"1em"})})});Hx.displayName="CloseButton";var TM={top:[],"top-left":[],"top-right":[],"bottom-left":[],bottom:[],"bottom-right":[]},fs=PM(TM);function PM(e){let t=e;const r=new Set,n=o=>{t=o(t),r.forEach(i=>i())};return{getState:()=>t,subscribe:o=>(r.add(o),()=>{n(()=>e),r.delete(o)}),removeToast:(o,i)=>{n(s=>({...s,[i]:s[i].filter(a=>a.id!=o)}))},notify:(o,i)=>{const s=EM(o,i),{position:a,id:l}=s;return n(u=>{var c,d;const p=a.includes("top")?[s,...(c=u[a])!=null?c:[]]:[...(d=u[a])!=null?d:[],s];return{...u,[a]:p}}),l},update:(o,i)=>{o&&n(s=>{const a={...s},{position:l,index:u}=$g(a,o);return l&&u!==-1&&(a[l][u]={...a[l][u],...i,message:AM(i)}),a})},closeAll:({positions:o}={})=>{n(i=>(o??["bottom","bottom-right","bottom-left","top","top-left","top-right"]).reduce((l,u)=>(l[u]=i[u].map(c=>({...c,requestClose:!0})),l),{...i}))},close:o=>{n(i=>{const s=gS(i,o);return s?{...i,[s]:i[s].map(a=>a.id==o?{...a,requestClose:!0}:a)}:i})},isActive:o=>!!$g(fs.getState(),o).position}}var Oy=0;function EM(e,t={}){var r,n;Oy+=1;const o=(r=t.id)!=null?r:Oy,i=(n=t.position)!=null?n:"bottom";return{id:o,message:e,position:i,duration:t.duration,onCloseComplete:t.onCloseComplete,onRequestRemove:()=>fs.removeToast(String(o),i),status:t.status,requestClose:!1,containerStyle:t.containerStyle}}var $M=e=>{const{status:t,variant:r="solid",id:n,title:o,isClosable:i,onClose:s,description:a,colorScheme:l,icon:u}=e,c=n?{root:`toast-${n}`,title:`toast-${n}-title`,description:`toast-${n}-description`}:void 0;return _.jsxs(Ux,{addRole:!1,status:t,variant:r,id:c==null?void 0:c.root,alignItems:"start",borderRadius:"md",boxShadow:"lg",paddingEnd:8,textAlign:"start",width:"auto",colorScheme:l,children:[_.jsx(Nx,{children:u}),_.jsxs(H.div,{flex:"1",maxWidth:"100%",children:[o&&_.jsx(Vx,{id:c==null?void 0:c.title,children:o}),a&&_.jsx(Ix,{id:c==null?void 0:c.description,display:"block",children:a})]}),i&&_.jsx(Hx,{size:"sm",onClick:s,position:"absolute",insetEnd:1,top:1})]})};function AM(e={}){const{render:t,toastComponent:r=$M}=e;return o=>typeof t=="function"?t({...o,...e}):_.jsx(r,{...o,...e})}var[RM,bF]=Kr({name:"ToastOptionsContext",strict:!1}),zM=e=>{const t=S.useSyncExternalStore(fs.subscribe,fs.getState,fs.getState),{motionVariants:r,component:n=Dx,portalProps:o}=e,s=Object.keys(t).map(a=>{const l=t[a];return _.jsx("div",{role:"region","aria-live":"polite","aria-label":"Notifications",id:`chakra-toast-manager-${a}`,style:QA(a),children:_.jsx(gM,{initial:!1,children:l.map(u=>_.jsx(n,{motionVariants:r,...u},u.id))})},a)});return _.jsx(Nu,{...o,children:s})},MM=e=>function({children:r,theme:n=e,toastOptions:o,...i}){return _.jsxs(qA,{theme:n,...i,children:[_.jsx(RM,{value:o==null?void 0:o.defaultOptions,children:r}),_.jsx(zM,{...o})]})},LM=MM(sS);function FM(e,t){if(e!=null){if(typeof e=="function"){e(t);return}try{e.current=t}catch{throw new Error(`Cannot assign value '${t}' to ref '${e}'`)}}}function Ns(...e){return t=>{e.forEach(r=>{FM(r,t)})}}function OM(...e){return S.useMemo(()=>Ns(...e),e)}var Kf=se(function(t,r){const{htmlWidth:n,htmlHeight:o,alt:i,...s}=t;return _.jsx("img",{width:n,height:o,ref:r,alt:i,...s})});Kf.displayName="NativeImage";function jM(e){const{loading:t,src:r,srcSet:n,onLoad:o,onError:i,crossOrigin:s,sizes:a,ignoreFallback:l}=e,[u,c]=S.useState("pending");S.useEffect(()=>{c(r?"loading":"pending")},[r]);const d=S.useRef(),f=S.useCallback(()=>{if(!r)return;p();const m=new Image;m.src=r,s&&(m.crossOrigin=s),n&&(m.srcset=n),a&&(m.sizes=a),t&&(m.loading=t),m.onload=v=>{p(),c("loaded"),o==null||o(v)},m.onerror=v=>{p(),c("failed"),i==null||i(v)},d.current=m},[r,s,n,a,o,i,t]),p=()=>{d.current&&(d.current.onload=null,d.current.onerror=null,d.current=null)};return Fr(()=>{if(!l)return u==="loading"&&f(),()=>{p()}},[u,f,l]),l?"loaded":u}var DM=(e,t)=>e!=="loaded"&&t==="beforeLoadOrError"||e==="failed"&&t==="onError";function BM(e,t=[]){const r=Object.assign({},e);for(const n of t)n in r&&delete r[n];return r}var ec=se(function(t,r){const{fallbackSrc:n,fallback:o,src:i,srcSet:s,align:a,fit:l,loading:u,ignoreFallback:c,crossOrigin:d,fallbackStrategy:f="beforeLoadOrError",referrerPolicy:p,...m}=t,v=n!==void 0||o!==void 0,C=u!=null||c||!v,g=jM({...t,crossOrigin:d,ignoreFallback:C}),h=DM(g,f),y={ref:r,objectFit:l,objectPosition:a,...C?m:BM(m,["onError","onLoad"])};return h?o||_.jsx(H.img,{as:Kf,className:"chakra-image__placeholder",src:n,...y}):_.jsx(H.img,{as:Kf,src:i,srcSet:s,crossOrigin:d,loading:u,referrerPolicy:p,className:"chakra-image",...y})});ec.displayName="Image";function Wx(e){return S.Children.toArray(e).filter(t=>S.isValidElement(t))}var[SF,IM]=Kr({strict:!1,name:"ButtonGroupContext"});function NM(e){const[t,r]=S.useState(!e);return{ref:S.useCallback(i=>{i&&r(i.tagName==="BUTTON")},[]),type:t?"button":void 0}}function qf(e){const{children:t,className:r,...n}=e,o=S.isValidElement(t)?S.cloneElement(t,{"aria-hidden":!0,focusable:!1}):t,i=Be("chakra-button__icon",r);return _.jsx(H.span,{display:"inline-flex",alignSelf:"center",flexShrink:0,...n,className:i,children:o})}qf.displayName="ButtonIcon";function Xf(e){const{label:t,placement:r,spacing:n="0.5rem",children:o=_.jsx(Ip,{color:"currentColor",width:"1em",height:"1em"}),className:i,__css:s,...a}=e,l=Be("chakra-button__spinner",i),u=r==="start"?"marginEnd":"marginStart",c=S.useMemo(()=>({display:"flex",alignItems:"center",position:t?"relative":"absolute",[u]:t?n:0,fontSize:"1em",lineHeight:"normal",...s}),[s,t,u,n]);return _.jsx(H.div,{className:l,...a,__css:c,children:o})}Xf.displayName="ButtonSpinner";var Gx=se((e,t)=>{const r=IM(),n=An("Button",{...r,...e}),{isDisabled:o=r==null?void 0:r.isDisabled,isLoading:i,isActive:s,children:a,leftIcon:l,rightIcon:u,loadingText:c,iconSpacing:d="0.5rem",type:f,spinner:p,spinnerPlacement:m="start",className:v,as:C,...g}=Xt(e),h=S.useMemo(()=>{const R={...n==null?void 0:n._focus,zIndex:1};return{display:"inline-flex",appearance:"none",alignItems:"center",justifyContent:"center",userSelect:"none",position:"relative",whiteSpace:"nowrap",verticalAlign:"middle",outline:"none",...n,...!!r&&{_focus:R}}},[n,r]),{ref:y,type:k}=NM(C),P={rightIcon:u,leftIcon:l,iconSpacing:d,children:a};return _.jsxs(H.button,{ref:OM(t,y),as:C,type:f??k,"data-active":oe(s),"data-loading":oe(i),__css:h,className:Be("chakra-button",v),...g,disabled:o||i,children:[i&&m==="start"&&_.jsx(Xf,{className:"chakra-button__spinner--start",label:c,placement:"start",spacing:d,children:p}),i?c||_.jsx(H.span,{opacity:0,children:_.jsx(jy,{...P})}):_.jsx(jy,{...P}),i&&m==="end"&&_.jsx(Xf,{className:"chakra-button__spinner--end",label:c,placement:"end",spacing:d,children:p})]})});Gx.displayName="Button";function jy(e){const{leftIcon:t,rightIcon:r,children:n,iconSpacing:o}=e;return _.jsxs(_.Fragment,{children:[t&&_.jsx(qf,{marginEnd:o,children:t}),n,r&&_.jsx(qf,{marginStart:o,children:r})]})}var[VM,UM]=WA("Card"),Kx=se(function(t,r){const{className:n,...o}=t,i=UM();return _.jsx(H.div,{ref:r,className:Be("chakra-card__body",n),__css:i.body,...o})}),qx=se(function(t,r){const{className:n,children:o,direction:i="column",justify:s,align:a,...l}=Xt(t),u=Qs("Card",t);return _.jsx(H.div,{ref:r,className:Be("chakra-card",n),__css:{display:"flex",flexDirection:i,justifyContent:s,alignItems:a,position:"relative",minWidth:0,wordWrap:"break-word",...u.container},...l,children:_.jsx(VM,{value:u,children:o})})}),[HM,WM]=Kr({name:"FormControlStylesContext",errorMessage:`useFormControlStyles returned is 'undefined'. Seems you forgot to wrap the components in "" `}),[GM,Xx]=Kr({strict:!1,name:"FormControlContext"});function KM(e){const{id:t,isRequired:r,isInvalid:n,isDisabled:o,isReadOnly:i,...s}=e,a=S.useId(),l=t||`field-${a}`,u=`${l}-label`,c=`${l}-feedback`,d=`${l}-helptext`,[f,p]=S.useState(!1),[m,v]=S.useState(!1),[C,g]=S.useState(!1),h=S.useCallback((E={},A=null)=>({id:d,...E,ref:Ns(A,O=>{O&&v(!0)})}),[d]),y=S.useCallback((E={},A=null)=>({...E,ref:A,"data-focus":oe(C),"data-disabled":oe(o),"data-invalid":oe(n),"data-readonly":oe(i),id:E.id!==void 0?E.id:u,htmlFor:E.htmlFor!==void 0?E.htmlFor:l}),[l,o,C,n,i,u]),k=S.useCallback((E={},A=null)=>({id:c,...E,ref:Ns(A,O=>{O&&p(!0)}),"aria-live":"polite"}),[c]),P=S.useCallback((E={},A=null)=>({...E,...s,ref:A,role:"group"}),[s]),R=S.useCallback((E={},A=null)=>({...E,ref:A,role:"presentation","aria-hidden":!0,children:E.children||"*"}),[]);return{isRequired:!!r,isInvalid:!!n,isReadOnly:!!i,isDisabled:!!o,isFocused:!!C,onFocus:()=>g(!0),onBlur:()=>g(!1),hasFeedbackText:f,setHasFeedbackText:p,hasHelpText:m,setHasHelpText:v,id:l,labelId:u,feedbackId:c,helpTextId:d,htmlProps:s,getHelpTextProps:h,getErrorMessageProps:k,getRootProps:P,getLabelProps:y,getRequiredIndicatorProps:R}}var qM=se(function(t,r){const n=Qs("Form",t),o=Xt(t),{getRootProps:i,htmlProps:s,...a}=KM(o),l=Be("chakra-form-control",t.className);return _.jsx(GM,{value:a,children:_.jsx(HM,{value:n,children:_.jsx(H.div,{...i({},r),className:l,__css:n.container})})})});qM.displayName="FormControl";var XM=se(function(t,r){const n=Xx(),o=WM(),i=Be("chakra-form__helper-text",t.className);return _.jsx(H.div,{...n==null?void 0:n.getHelpTextProps(t,r),__css:o.helperText,className:i})});XM.displayName="FormHelperText";function YM(e){var t,r,n;const o=Xx(),{id:i,disabled:s,readOnly:a,required:l,isRequired:u,isInvalid:c,isReadOnly:d,isDisabled:f,onFocus:p,onBlur:m,...v}=e,C=e["aria-describedby"]?[e["aria-describedby"]]:[];return o!=null&&o.hasFeedbackText&&(o!=null&&o.isInvalid)&&C.push(o.feedbackId),o!=null&&o.hasHelpText&&C.push(o.helpTextId),{...v,"aria-describedby":C.join(" ")||void 0,id:i??(o==null?void 0:o.id),isDisabled:(t=s??f)!=null?t:o==null?void 0:o.isDisabled,isReadOnly:(r=a??d)!=null?r:o==null?void 0:o.isReadOnly,isRequired:(n=l??u)!=null?n:o==null?void 0:o.isRequired,isInvalid:c??(o==null?void 0:o.isInvalid),onFocus:kt(o==null?void 0:o.onFocus,p),onBlur:kt(o==null?void 0:o.onBlur,m)}}var QM={border:"0",clip:"rect(0, 0, 0, 0)",height:"1px",width:"1px",margin:"-1px",padding:"0",overflow:"hidden",whiteSpace:"nowrap",position:"absolute"},ZM=()=>typeof document<"u",Dy=!1,na=null,oo=!1,Yf=!1,Qf=new Set;function Up(e,t){Qf.forEach(r=>r(e,t))}var JM=typeof window<"u"&&window.navigator!=null?/^Mac/.test(window.navigator.platform):!1;function eL(e){return!(e.metaKey||!JM&&e.altKey||e.ctrlKey||e.key==="Control"||e.key==="Shift"||e.key==="Meta")}function By(e){oo=!0,eL(e)&&(na="keyboard",Up("keyboard",e))}function yo(e){if(na="pointer",e.type==="mousedown"||e.type==="pointerdown"){oo=!0;const t=e.composedPath?e.composedPath()[0]:e.target;let r=!1;try{r=t.matches(":focus-visible")}catch{}if(r)return;Up("pointer",e)}}function tL(e){return e.mozInputSource===0&&e.isTrusted?!0:e.detail===0&&!e.pointerType}function rL(e){tL(e)&&(oo=!0,na="virtual")}function nL(e){e.target===window||e.target===document||(!oo&&!Yf&&(na="virtual",Up("virtual",e)),oo=!1,Yf=!1)}function oL(){oo=!1,Yf=!0}function Iy(){return na!=="pointer"}function iL(){if(!ZM()||Dy)return;const{focus:e}=HTMLElement.prototype;HTMLElement.prototype.focus=function(...r){oo=!0,e.apply(this,r)},document.addEventListener("keydown",By,!0),document.addEventListener("keyup",By,!0),document.addEventListener("click",rL,!0),window.addEventListener("focus",nL,!0),window.addEventListener("blur",oL,!1),typeof PointerEvent<"u"?(document.addEventListener("pointerdown",yo,!0),document.addEventListener("pointermove",yo,!0),document.addEventListener("pointerup",yo,!0)):(document.addEventListener("mousedown",yo,!0),document.addEventListener("mousemove",yo,!0),document.addEventListener("mouseup",yo,!0)),Dy=!0}function sL(e){iL(),e(Iy());const t=()=>e(Iy());return Qf.add(t),()=>{Qf.delete(t)}}function aL(e,t=[]){const r=Object.assign({},e);for(const n of t)n in r&&delete r[n];return r}function lL(e={}){const t=YM(e),{isDisabled:r,isReadOnly:n,isRequired:o,isInvalid:i,id:s,onBlur:a,onFocus:l,"aria-describedby":u}=t,{defaultChecked:c,isChecked:d,isFocusable:f,onChange:p,isIndeterminate:m,name:v,value:C,tabIndex:g=void 0,"aria-label":h,"aria-labelledby":y,"aria-invalid":k,...P}=e,R=aL(P,["isDisabled","isReadOnly","isRequired","isInvalid","id","onBlur","onFocus","aria-describedby"]),E=gl(p),A=gl(a),O=gl(l),[j,de]=S.useState(!1),[ye,Re]=S.useState(!1),[ae,he]=S.useState(!1),[Le,Ie]=S.useState(!1);S.useEffect(()=>sL(de),[]);const M=S.useRef(null),[I,U]=S.useState(!0),[N,J]=S.useState(!!c),W=d!==void 0,ce=W?d:N,Yt=S.useCallback(G=>{if(n||r){G.preventDefault();return}W||J(ce?G.target.checked:m?!0:G.target.checked),E==null||E(G)},[n,r,ce,W,m,E]);Fr(()=>{M.current&&(M.current.indeterminate=!!m)},[m]),Mf(()=>{r&&Re(!1)},[r,Re]),Fr(()=>{const G=M.current;if(!(G!=null&&G.form))return;const dt=()=>{J(!!c)};return G.form.addEventListener("reset",dt),()=>{var Ot;return(Ot=G.form)==null?void 0:Ot.removeEventListener("reset",dt)}},[]);const Ee=r&&!f,xt=S.useCallback(G=>{G.key===" "&&Ie(!0)},[Ie]),ar=S.useCallback(G=>{G.key===" "&&Ie(!1)},[Ie]);Fr(()=>{if(!M.current)return;M.current.checked!==ce&&J(M.current.checked)},[M.current]);const Xr=S.useCallback((G={},dt=null)=>{const Ot=fo=>{ye&&fo.preventDefault(),Ie(!0)};return{...G,ref:dt,"data-active":oe(Le),"data-hover":oe(ae),"data-checked":oe(ce),"data-focus":oe(ye),"data-focus-visible":oe(ye&&j),"data-indeterminate":oe(m),"data-disabled":oe(r),"data-invalid":oe(i),"data-readonly":oe(n),"aria-hidden":!0,onMouseDown:kt(G.onMouseDown,Ot),onMouseUp:kt(G.onMouseUp,()=>Ie(!1)),onMouseEnter:kt(G.onMouseEnter,()=>he(!0)),onMouseLeave:kt(G.onMouseLeave,()=>he(!1))}},[Le,ce,r,ye,j,ae,m,i,n]),lr=S.useCallback((G={},dt=null)=>({...G,ref:dt,"data-active":oe(Le),"data-hover":oe(ae),"data-checked":oe(ce),"data-focus":oe(ye),"data-focus-visible":oe(ye&&j),"data-indeterminate":oe(m),"data-disabled":oe(r),"data-invalid":oe(i),"data-readonly":oe(n)}),[Le,ce,r,ye,j,ae,m,i,n]),Ft=S.useCallback((G={},dt=null)=>({...R,...G,ref:Ns(dt,Ot=>{Ot&&U(Ot.tagName==="LABEL")}),onClick:kt(G.onClick,()=>{var Ot;I||((Ot=M.current)==null||Ot.click(),requestAnimationFrame(()=>{var fo;(fo=M.current)==null||fo.focus({preventScroll:!0})}))}),"data-disabled":oe(r),"data-checked":oe(ce),"data-invalid":oe(i)}),[R,r,ce,i,I]),zn=S.useCallback((G={},dt=null)=>({...G,ref:Ns(M,dt),type:"checkbox",name:v,value:C,id:s,tabIndex:g,onChange:kt(G.onChange,Yt),onBlur:kt(G.onBlur,A,()=>Re(!1)),onFocus:kt(G.onFocus,O,()=>Re(!0)),onKeyDown:kt(G.onKeyDown,xt),onKeyUp:kt(G.onKeyUp,ar),required:o,checked:ce,disabled:Ee,readOnly:n,"aria-label":h,"aria-labelledby":y,"aria-invalid":k?!!k:i,"aria-describedby":u,"aria-disabled":r,style:QM}),[v,C,s,Yt,A,O,xt,ar,o,ce,Ee,n,h,y,k,i,u,r,g]),co=S.useCallback((G={},dt=null)=>({...G,ref:dt,onMouseDown:kt(G.onMouseDown,uL),"data-disabled":oe(r),"data-checked":oe(ce),"data-invalid":oe(i)}),[ce,r,i]);return{state:{isInvalid:i,isFocused:ye,isChecked:ce,isActive:Le,isHovered:ae,isIndeterminate:m,isDisabled:r,isReadOnly:n,isRequired:o},getRootProps:Ft,getCheckboxProps:Xr,getIndicatorProps:lr,getInputProps:zn,getLabelProps:co,htmlProps:R}}function uL(e){e.preventDefault(),e.stopPropagation()}var[cL,Yx]=Kr({name:"ListStylesContext",errorMessage:`useListStyles returned is 'undefined'. Seems you forgot to wrap the components in "" `}),tc=se(function(t,r){const n=Qs("List",t),{children:o,styleType:i="none",stylePosition:s,spacing:a,...l}=Xt(t),u=Wx(o),d=a?{["& > *:not(style) ~ *:not(style)"]:{mt:a}}:{};return _.jsx(cL,{value:n,children:_.jsx(H.ul,{ref:r,listStyleType:i,listStylePosition:s,role:"list",__css:{...n.container,...d},...l,children:u})})});tc.displayName="List";var dL=se((e,t)=>{const{as:r,...n}=e;return _.jsx(tc,{ref:t,as:"ol",styleType:"decimal",marginStart:"1em",...n})});dL.displayName="OrderedList";var fL=se(function(t,r){const{as:n,...o}=t;return _.jsx(tc,{ref:r,as:"ul",styleType:"initial",marginStart:"1em",...o})});fL.displayName="UnorderedList";var Qx=se(function(t,r){const n=Yx();return _.jsx(H.li,{ref:r,...t,__css:n.item})});Qx.displayName="ListItem";var hL=se(function(t,r){const n=Yx();return _.jsx(uo,{ref:r,role:"presentation",...t,__css:n.icon})});hL.displayName="ListIcon";var Hp=se(function(t,r){const{templateAreas:n,gap:o,rowGap:i,columnGap:s,column:a,row:l,autoFlow:u,autoRows:c,templateRows:d,autoColumns:f,templateColumns:p,...m}=t,v={display:"grid",gridTemplateAreas:n,gridGap:o,gridRowGap:i,gridColumnGap:s,gridAutoColumns:f,gridColumn:a,gridRow:l,gridAutoFlow:u,gridAutoRows:c,gridTemplateRows:d,gridTemplateColumns:p};return _.jsx(H.div,{ref:r,__css:v,...m})});Hp.displayName="Grid";var Zx=Object.freeze(["base","sm","md","lg","xl","2xl"]);function rc(e,t){return Array.isArray(e)?e.map(r=>r===null?null:t(r)):vt(e)?Object.keys(e).reduce((r,n)=>(r[n]=t(e[n]),r),{}):e!=null?t(e):null}function pL(e,t=Zx){const r={};return e.forEach((n,o)=>{const i=t[o];n!=null&&(r[i]=n)}),r}var Jx=se(function(t,r){const{columns:n,spacingX:o,spacingY:i,spacing:s,minChildWidth:a,...l}=t,u=mi(),c=a?gL(a,u):yL(n);return _.jsx(Hp,{ref:r,gap:s,columnGap:o,rowGap:i,templateColumns:c,...l})});Jx.displayName="SimpleGrid";function mL(e){return typeof e=="number"?`${e}px`:e}function gL(e,t){return rc(e,r=>{const n=Bb("sizes",r,mL(r))(t);return r===null?null:`repeat(auto-fit, minmax(${n}, 1fr))`})}function yL(e){return rc(e,t=>t===null?null:`repeat(${t}, minmax(0, 1fr))`)}var Vs=se(function(t,r){const n=An("Text",t),{className:o,align:i,decoration:s,casing:a,...l}=Xt(t),u=hS({textAlign:t.align,textDecoration:t.decoration,textTransform:t.casing});return _.jsx(H.p,{ref:r,className:Be("chakra-text",t.className),...u,...l,__css:n})});Vs.displayName="Text";var e2=e=>_.jsx(H.div,{className:"chakra-stack__item",...e,__css:{display:"inline-block",flex:"0 0 auto",minWidth:0,...e.__css}});e2.displayName="StackItem";function vL(e){const{spacing:t,direction:r}=e,n={column:{my:t,mx:0,borderLeftWidth:0,borderBottomWidth:"1px"},"column-reverse":{my:t,mx:0,borderLeftWidth:0,borderBottomWidth:"1px"},row:{mx:t,my:0,borderLeftWidth:"1px",borderBottomWidth:0},"row-reverse":{mx:t,my:0,borderLeftWidth:"1px",borderBottomWidth:0}};return{"&":rc(r,o=>n[o])}}var t2=se((e,t)=>{const{isInline:r,direction:n,align:o,justify:i,spacing:s="0.5rem",wrap:a,children:l,divider:u,className:c,shouldWrapChildren:d,...f}=e,p=r?"row":n??"column",m=S.useMemo(()=>vL({spacing:s,direction:p}),[s,p]),v=!!u,C=!d&&!v,g=S.useMemo(()=>{const y=Wx(l);return C?y:y.map((k,P)=>{const R=typeof k.key<"u"?k.key:P,E=P+1===y.length,O=d?_.jsx(e2,{children:k},R):k;if(!v)return O;const j=S.cloneElement(u,{__css:m}),de=E?null:j;return _.jsxs(S.Fragment,{children:[O,de]},R)})},[u,m,v,C,d,l]),h=Be("chakra-stack",c);return _.jsx(H.div,{ref:t,display:"flex",alignItems:o,justifyContent:i,flexDirection:p,flexWrap:a,gap:v?void 0:s,className:h,...f,children:g})});t2.displayName="Stack";var gi=se((e,t)=>_.jsx(t2,{align:"center",...e,direction:"row",ref:t}));gi.displayName="HStack";function Ny(e){return rc(e,t=>t==="auto"?"auto":`span ${t}/span ${t}`)}var bl=se(function(t,r){const{area:n,colSpan:o,colStart:i,colEnd:s,rowEnd:a,rowSpan:l,rowStart:u,...c}=t,d=hS({gridArea:n,gridColumn:Ny(o),gridRow:Ny(l),gridColumnStart:i,gridColumnEnd:s,gridRowStart:u,gridRowEnd:a});return _.jsx(H.div,{ref:r,__css:d,...c})});bl.displayName="GridItem";var r2=se(function(t,r){const n=An("Heading",t),{className:o,...i}=Xt(t);return _.jsx(H.h2,{ref:r,className:Be("chakra-heading",t.className),...i,__css:n})});r2.displayName="Heading";var Wp=H("div");Wp.displayName="Box";var n2=se(function(t,r){const{size:n,centerContent:o=!0,...i}=t,s=o?{display:"flex",alignItems:"center",justifyContent:"center"}:{};return _.jsx(Wp,{ref:r,boxSize:n,__css:{...s,flexShrink:0,flexGrow:0},...i})});n2.displayName="Square";var bL=se(function(t,r){const{size:n,...o}=t;return _.jsx(n2,{size:n,ref:r,borderRadius:"9999px",...o})});bL.displayName="Circle";var o2=se(function(t,r){const n=An("Badge",t),{className:o,...i}=Xt(t);return _.jsx(H.span,{ref:r,className:Be("chakra-badge",t.className),...i,__css:{display:"inline-block",whiteSpace:"nowrap",verticalAlign:"middle",...n}})});o2.displayName="Badge";function i2(e,t={}){const{ssr:r=!0,fallback:n}=t,{getWindow:o}=KA(),i=Array.isArray(e)?e:[e];let s=Array.isArray(n)?n:[n];s=s.filter(u=>u!=null);const[a,l]=S.useState(()=>i.map((u,c)=>({media:u,matches:r?!!s[c]:o().matchMedia(u).matches})));return S.useEffect(()=>{const u=o();l(i.map(f=>({media:f,matches:u.matchMedia(f).matches})));const c=i.map(f=>u.matchMedia(f)),d=f=>{l(p=>p.slice().map(m=>m.media===f.media?{...m,matches:f.matches}:m))};return c.forEach(f=>{typeof f.addListener=="function"?f.addListener(d):f.addEventListener("change",d)}),()=>{c.forEach(f=>{typeof f.removeListener=="function"?f.removeListener(d):f.removeEventListener("change",d)})}},[o]),a.map(u=>u.matches)}function SL(e){const{breakpoint:t,hide:r,children:n,ssr:o}=e,[i]=i2(t,{ssr:o});return(r?!i:i)?n:null}var Vy=(e,t)=>{var r,n;return(n=(r=e==null?void 0:e.breakpoints)==null?void 0:r[t])!=null?n:t};function xL(e){const{breakpoint:t="",below:r,above:n}=e,o=mi(),i=Vy(o,r),s=Vy(o,n);let a=t;return i?a=`(max-width: ${i})`:s&&(a=`(min-width: ${s})`),a}function s2(e){const{children:t,ssr:r}=e,n=xL(e);return _.jsx(SL,{breakpoint:n,ssr:r,children:t})}s2.displayName="Show";function wL(e,t,r=Zx){let n=Object.keys(e).indexOf(t);if(n!==-1)return e[t];let o=r.indexOf(t);for(;o>=0;){const i=r[o];if(e.hasOwnProperty(i)){n=o;break}o-=1}if(n!==-1){const i=r[n];return e[i]}}function kL(e){var t,r;const n=vt(e)?e:{fallback:e??"base"},i=mi().__breakpoints.details.map(({minMaxQuery:u,breakpoint:c})=>({breakpoint:c,query:u.replace("@media screen and ","")})),s=i.map(u=>u.breakpoint===n.fallback),l=i2(i.map(u=>u.query),{fallback:s,ssr:n.ssr}).findIndex(u=>u==!0);return(r=(t=i[l])==null?void 0:t.breakpoint)!=null?r:n.fallback}function CL(e,t){var r;const n=vt(t)?t:{fallback:t??"base"},o=kL(n),i=mi();if(!o)return;const s=Array.from(((r=i.__breakpoints)==null?void 0:r.keys)||[]),a=Array.isArray(e)?Object.fromEntries(Object.entries(pL(e,s)).map(([l,u])=>[l,u])):e;return wL(a,o,s)}function _L(){const e=S.useRef(!0);return S.useEffect(()=>{e.current=!1},[]),e.current}function TL(e){const t=S.useRef();return S.useEffect(()=>{t.current=e},[e]),t.current}var PL=H("div",{baseStyle:{boxShadow:"none",backgroundClip:"padding-box",cursor:"default",color:"transparent",pointerEvents:"none",userSelect:"none","&::before, &::after, *":{visibility:"hidden"}}}),Zf=D("skeleton-start-color"),Jf=D("skeleton-end-color"),EL=ap({from:{opacity:0},to:{opacity:1}}),$L=ap({from:{borderColor:Zf.reference,background:Zf.reference},to:{borderColor:Jf.reference,background:Jf.reference}}),Gp=se((e,t)=>{const r={...e,fadeDuration:typeof e.fadeDuration=="number"?e.fadeDuration:.4,speed:typeof e.speed=="number"?e.speed:.8},n=An("Skeleton",r),o=_L(),{startColor:i="",endColor:s="",isLoaded:a,fadeDuration:l,speed:u,className:c,fitContent:d,...f}=Xt(r),[p,m]=A4("colors",[i,s]),v=TL(a),C=Be("chakra-skeleton",c),g={...p&&{[Zf.variable]:p},...m&&{[Jf.variable]:m}};if(a){const h=o||v?"none":`${EL} ${l}s`;return _.jsx(H.div,{ref:t,className:C,__css:{animation:h},...f})}return _.jsx(PL,{ref:t,className:C,...f,__css:{width:d?"fit-content":void 0,...n,...g,_dark:{...n._dark,...g},animation:`${u}s linear infinite alternate ${$L}`}})});Gp.displayName="Skeleton";function AL(e){return Array(e).fill(1).map((t,r)=>r+1)}var Uy=3,a2=e=>{const{noOfLines:t=Uy,spacing:r="0.5rem",skeletonHeight:n="0.5rem",className:o,startColor:i,endColor:s,isLoaded:a,fadeDuration:l,speed:u,variant:c,size:d,colorScheme:f,children:p,...m}=e,v=CL(typeof t=="number"?[t]:t)||Uy,C=AL(v),g=y=>v>1&&y===C.length?"80%":"100%",h=Be("chakra-skeleton__group",o);return _.jsx(H.div,{className:h,...m,children:C.map((y,k)=>{if(a&&k>0)return null;const P=a?null:{mb:y===C.length?"0":r,width:g(y),height:n};return _.jsx(Gp,{startColor:i,endColor:s,isLoaded:a,fadeDuration:l,speed:u,variant:c,size:d,colorScheme:f,...P,children:k===0?p:void 0},C.length.toString()+y)})})};a2.displayName="SkeletonText";var l2=se(function(t,r){const n=Qs("Switch",t),{spacing:o="0.5rem",children:i,...s}=Xt(t),{getIndicatorProps:a,getInputProps:l,getCheckboxProps:u,getRootProps:c,getLabelProps:d}=lL(s),f=S.useMemo(()=>({display:"inline-block",position:"relative",verticalAlign:"middle",lineHeight:0,...n.container}),[n.container]),p=S.useMemo(()=>({display:"inline-flex",flexShrink:0,justifyContent:"flex-start",boxSizing:"content-box",cursor:"pointer",...n.track}),[n.track]),m=S.useMemo(()=>({userSelect:"none",marginStart:o,...n.label}),[o,n.label]);return _.jsxs(H.label,{...c(),className:Be("chakra-switch",t.className),__css:f,children:[_.jsx("input",{className:"chakra-switch__input",...l({},r)}),_.jsx(H.span,{...u(),className:"chakra-switch__track",__css:p,children:_.jsx(H.span,{__css:n.thumb,className:"chakra-switch__thumb",...a()})}),i&&_.jsx(H.span,{className:"chakra-switch__label",...d(),__css:m,children:i})]})});l2.displayName="Switch";const RL="/GameHub/assets/logo-ff4914e6.webp",zL=()=>{const{colorMode:e,toggleColorMode:t}=Vu();return _.jsxs(gi,{children:[_.jsx(l2,{isChecked:e==="dark",colorScheme:"green",onChange:t}),_.jsx(Vs,{children:"Dark Mode"})]})};function ML(){return _.jsxs(gi,{justifyContent:"space-between",children:[_.jsx(ec,{src:RL,boxSize:"60px"}),_.jsx(zL,{})]})}function u2(e,t){return function(){return e.apply(t,arguments)}}const{toString:LL}=Object.prototype,{getPrototypeOf:Kp}=Object,nc=(e=>t=>{const r=LL.call(t);return e[r]||(e[r]=r.slice(8,-1).toLowerCase())})(Object.create(null)),wr=e=>(e=e.toLowerCase(),t=>nc(t)===e),oc=e=>t=>typeof t===e,{isArray:yi}=Array,Us=oc("undefined");function FL(e){return e!==null&&!Us(e)&&e.constructor!==null&&!Us(e.constructor)&&Gt(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const c2=wr("ArrayBuffer");function OL(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&c2(e.buffer),t}const jL=oc("string"),Gt=oc("function"),d2=oc("number"),ic=e=>e!==null&&typeof e=="object",DL=e=>e===!0||e===!1,Sl=e=>{if(nc(e)!=="object")return!1;const t=Kp(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},BL=wr("Date"),IL=wr("File"),NL=wr("Blob"),VL=wr("FileList"),UL=e=>ic(e)&&Gt(e.pipe),HL=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||Gt(e.append)&&((t=nc(e))==="formdata"||t==="object"&&Gt(e.toString)&&e.toString()==="[object FormData]"))},WL=wr("URLSearchParams"),GL=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function oa(e,t,{allOwnKeys:r=!1}={}){if(e===null||typeof e>"u")return;let n,o;if(typeof e!="object"&&(e=[e]),yi(e))for(n=0,o=e.length;n0;)if(o=r[n],t===o.toLowerCase())return o;return null}const h2=(()=>typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global)(),p2=e=>!Us(e)&&e!==h2;function eh(){const{caseless:e}=p2(this)&&this||{},t={},r=(n,o)=>{const i=e&&f2(t,o)||o;Sl(t[i])&&Sl(n)?t[i]=eh(t[i],n):Sl(n)?t[i]=eh({},n):yi(n)?t[i]=n.slice():t[i]=n};for(let n=0,o=arguments.length;n(oa(t,(o,i)=>{r&&Gt(o)?e[i]=u2(o,r):e[i]=o},{allOwnKeys:n}),e),qL=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),XL=(e,t,r,n)=>{e.prototype=Object.create(t.prototype,n),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),r&&Object.assign(e.prototype,r)},YL=(e,t,r,n)=>{let o,i,s;const a={};if(t=t||{},e==null)return t;do{for(o=Object.getOwnPropertyNames(e),i=o.length;i-- >0;)s=o[i],(!n||n(s,e,t))&&!a[s]&&(t[s]=e[s],a[s]=!0);e=r!==!1&&Kp(e)}while(e&&(!r||r(e,t))&&e!==Object.prototype);return t},QL=(e,t,r)=>{e=String(e),(r===void 0||r>e.length)&&(r=e.length),r-=t.length;const n=e.indexOf(t,r);return n!==-1&&n===r},ZL=e=>{if(!e)return null;if(yi(e))return e;let t=e.length;if(!d2(t))return null;const r=new Array(t);for(;t-- >0;)r[t]=e[t];return r},JL=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&Kp(Uint8Array)),e7=(e,t)=>{const n=(e&&e[Symbol.iterator]).call(e);let o;for(;(o=n.next())&&!o.done;){const i=o.value;t.call(e,i[0],i[1])}},t7=(e,t)=>{let r;const n=[];for(;(r=e.exec(t))!==null;)n.push(r);return n},r7=wr("HTMLFormElement"),n7=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(r,n,o){return n.toUpperCase()+o}),Hy=(({hasOwnProperty:e})=>(t,r)=>e.call(t,r))(Object.prototype),o7=wr("RegExp"),m2=(e,t)=>{const r=Object.getOwnPropertyDescriptors(e),n={};oa(r,(o,i)=>{let s;(s=t(o,i,e))!==!1&&(n[i]=s||o)}),Object.defineProperties(e,n)},i7=e=>{m2(e,(t,r)=>{if(Gt(e)&&["arguments","caller","callee"].indexOf(r)!==-1)return!1;const n=e[r];if(Gt(n)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+r+"'")})}})},s7=(e,t)=>{const r={},n=o=>{o.forEach(i=>{r[i]=!0})};return yi(e)?n(e):n(String(e).split(t)),r},a7=()=>{},l7=(e,t)=>(e=+e,Number.isFinite(e)?e:t),kd="abcdefghijklmnopqrstuvwxyz",Wy="0123456789",g2={DIGIT:Wy,ALPHA:kd,ALPHA_DIGIT:kd+kd.toUpperCase()+Wy},u7=(e=16,t=g2.ALPHA_DIGIT)=>{let r="";const{length:n}=t;for(;e--;)r+=t[Math.random()*n|0];return r};function c7(e){return!!(e&&Gt(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const d7=e=>{const t=new Array(10),r=(n,o)=>{if(ic(n)){if(t.indexOf(n)>=0)return;if(!("toJSON"in n)){t[o]=n;const i=yi(n)?[]:{};return oa(n,(s,a)=>{const l=r(s,o+1);!Us(l)&&(i[a]=l)}),t[o]=void 0,i}}return n};return r(e,0)},f7=wr("AsyncFunction"),h7=e=>e&&(ic(e)||Gt(e))&&Gt(e.then)&&Gt(e.catch),$={isArray:yi,isArrayBuffer:c2,isBuffer:FL,isFormData:HL,isArrayBufferView:OL,isString:jL,isNumber:d2,isBoolean:DL,isObject:ic,isPlainObject:Sl,isUndefined:Us,isDate:BL,isFile:IL,isBlob:NL,isRegExp:o7,isFunction:Gt,isStream:UL,isURLSearchParams:WL,isTypedArray:JL,isFileList:VL,forEach:oa,merge:eh,extend:KL,trim:GL,stripBOM:qL,inherits:XL,toFlatObject:YL,kindOf:nc,kindOfTest:wr,endsWith:QL,toArray:ZL,forEachEntry:e7,matchAll:t7,isHTMLForm:r7,hasOwnProperty:Hy,hasOwnProp:Hy,reduceDescriptors:m2,freezeMethods:i7,toObjectSet:s7,toCamelCase:n7,noop:a7,toFiniteNumber:l7,findKey:f2,global:h2,isContextDefined:p2,ALPHABET:g2,generateString:u7,isSpecCompliantForm:c7,toJSONObject:d7,isAsyncFn:f7,isThenable:h7};function Y(e,t,r,n,o){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),r&&(this.config=r),n&&(this.request=n),o&&(this.response=o)}$.inherits(Y,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:$.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const y2=Y.prototype,v2={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{v2[e]={value:e}});Object.defineProperties(Y,v2);Object.defineProperty(y2,"isAxiosError",{value:!0});Y.from=(e,t,r,n,o,i)=>{const s=Object.create(y2);return $.toFlatObject(e,s,function(l){return l!==Error.prototype},a=>a!=="isAxiosError"),Y.call(s,e.message,t,r,n,o),s.cause=e,s.name=e.name,i&&Object.assign(s,i),s};const p7=null;function th(e){return $.isPlainObject(e)||$.isArray(e)}function b2(e){return $.endsWith(e,"[]")?e.slice(0,-2):e}function Gy(e,t,r){return e?e.concat(t).map(function(o,i){return o=b2(o),!r&&i?"["+o+"]":o}).join(r?".":""):t}function m7(e){return $.isArray(e)&&!e.some(th)}const g7=$.toFlatObject($,{},null,function(t){return/^is[A-Z]/.test(t)});function sc(e,t,r){if(!$.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,r=$.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,function(v,C){return!$.isUndefined(C[v])});const n=r.metaTokens,o=r.visitor||c,i=r.dots,s=r.indexes,l=(r.Blob||typeof Blob<"u"&&Blob)&&$.isSpecCompliantForm(t);if(!$.isFunction(o))throw new TypeError("visitor must be a function");function u(m){if(m===null)return"";if($.isDate(m))return m.toISOString();if(!l&&$.isBlob(m))throw new Y("Blob is not supported. Use a Buffer instead.");return $.isArrayBuffer(m)||$.isTypedArray(m)?l&&typeof Blob=="function"?new Blob([m]):Buffer.from(m):m}function c(m,v,C){let g=m;if(m&&!C&&typeof m=="object"){if($.endsWith(v,"{}"))v=n?v:v.slice(0,-2),m=JSON.stringify(m);else if($.isArray(m)&&m7(m)||($.isFileList(m)||$.endsWith(v,"[]"))&&(g=$.toArray(m)))return v=b2(v),g.forEach(function(y,k){!($.isUndefined(y)||y===null)&&t.append(s===!0?Gy([v],k,i):s===null?v:v+"[]",u(y))}),!1}return th(m)?!0:(t.append(Gy(C,v,i),u(m)),!1)}const d=[],f=Object.assign(g7,{defaultVisitor:c,convertValue:u,isVisitable:th});function p(m,v){if(!$.isUndefined(m)){if(d.indexOf(m)!==-1)throw Error("Circular reference detected in "+v.join("."));d.push(m),$.forEach(m,function(g,h){(!($.isUndefined(g)||g===null)&&o.call(t,g,$.isString(h)?h.trim():h,v,f))===!0&&p(g,v?v.concat(h):[h])}),d.pop()}}if(!$.isObject(e))throw new TypeError("data must be an object");return p(e),t}function Ky(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(n){return t[n]})}function qp(e,t){this._pairs=[],e&&sc(e,this,t)}const S2=qp.prototype;S2.append=function(t,r){this._pairs.push([t,r])};S2.toString=function(t){const r=t?function(n){return t.call(this,n,Ky)}:Ky;return this._pairs.map(function(o){return r(o[0])+"="+r(o[1])},"").join("&")};function y7(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function x2(e,t,r){if(!t)return e;const n=r&&r.encode||y7,o=r&&r.serialize;let i;if(o?i=o(t,r):i=$.isURLSearchParams(t)?t.toString():new qp(t,r).toString(n),i){const s=e.indexOf("#");s!==-1&&(e=e.slice(0,s)),e+=(e.indexOf("?")===-1?"?":"&")+i}return e}class v7{constructor(){this.handlers=[]}use(t,r,n){return this.handlers.push({fulfilled:t,rejected:r,synchronous:n?n.synchronous:!1,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){$.forEach(this.handlers,function(n){n!==null&&t(n)})}}const qy=v7,w2={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},b7=typeof URLSearchParams<"u"?URLSearchParams:qp,S7=typeof FormData<"u"?FormData:null,x7=typeof Blob<"u"?Blob:null,w7=(()=>{let e;return typeof navigator<"u"&&((e=navigator.product)==="ReactNative"||e==="NativeScript"||e==="NS")?!1:typeof window<"u"&&typeof document<"u"})(),k7=(()=>typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function")(),nr={isBrowser:!0,classes:{URLSearchParams:b7,FormData:S7,Blob:x7},isStandardBrowserEnv:w7,isStandardBrowserWebWorkerEnv:k7,protocols:["http","https","file","blob","url","data"]};function C7(e,t){return sc(e,new nr.classes.URLSearchParams,Object.assign({visitor:function(r,n,o,i){return nr.isNode&&$.isBuffer(r)?(this.append(n,r.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)}},t))}function _7(e){return $.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function T7(e){const t={},r=Object.keys(e);let n;const o=r.length;let i;for(n=0;n=r.length;return s=!s&&$.isArray(o)?o.length:s,l?($.hasOwnProp(o,s)?o[s]=[o[s],n]:o[s]=n,!a):((!o[s]||!$.isObject(o[s]))&&(o[s]=[]),t(r,n,o[s],i)&&$.isArray(o[s])&&(o[s]=T7(o[s])),!a)}if($.isFormData(e)&&$.isFunction(e.entries)){const r={};return $.forEachEntry(e,(n,o)=>{t(_7(n),o,r,0)}),r}return null}function P7(e,t,r){if($.isString(e))try{return(t||JSON.parse)(e),$.trim(e)}catch(n){if(n.name!=="SyntaxError")throw n}return(r||JSON.stringify)(e)}const Xp={transitional:w2,adapter:nr.isNode?"http":"xhr",transformRequest:[function(t,r){const n=r.getContentType()||"",o=n.indexOf("application/json")>-1,i=$.isObject(t);if(i&&$.isHTMLForm(t)&&(t=new FormData(t)),$.isFormData(t))return o&&o?JSON.stringify(k2(t)):t;if($.isArrayBuffer(t)||$.isBuffer(t)||$.isStream(t)||$.isFile(t)||$.isBlob(t))return t;if($.isArrayBufferView(t))return t.buffer;if($.isURLSearchParams(t))return r.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let a;if(i){if(n.indexOf("application/x-www-form-urlencoded")>-1)return C7(t,this.formSerializer).toString();if((a=$.isFileList(t))||n.indexOf("multipart/form-data")>-1){const l=this.env&&this.env.FormData;return sc(a?{"files[]":t}:t,l&&new l,this.formSerializer)}}return i||o?(r.setContentType("application/json",!1),P7(t)):t}],transformResponse:[function(t){const r=this.transitional||Xp.transitional,n=r&&r.forcedJSONParsing,o=this.responseType==="json";if(t&&$.isString(t)&&(n&&!this.responseType||o)){const s=!(r&&r.silentJSONParsing)&&o;try{return JSON.parse(t)}catch(a){if(s)throw a.name==="SyntaxError"?Y.from(a,Y.ERR_BAD_RESPONSE,this,null,this.response):a}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:nr.classes.FormData,Blob:nr.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};$.forEach(["delete","get","head","post","put","patch"],e=>{Xp.headers[e]={}});const Yp=Xp,E7=$.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),$7=e=>{const t={};let r,n,o;return e&&e.split(` -`).forEach(function(s){o=s.indexOf(":"),r=s.substring(0,o).trim().toLowerCase(),n=s.substring(o+1).trim(),!(!r||t[r]&&E7[r])&&(r==="set-cookie"?t[r]?t[r].push(n):t[r]=[n]:t[r]=t[r]?t[r]+", "+n:n)}),t},Xy=Symbol("internals");function Fi(e){return e&&String(e).trim().toLowerCase()}function xl(e){return e===!1||e==null?e:$.isArray(e)?e.map(xl):String(e)}function A7(e){const t=Object.create(null),r=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let n;for(;n=r.exec(e);)t[n[1]]=n[2];return t}const R7=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function Cd(e,t,r,n,o){if($.isFunction(n))return n.call(this,t,r);if(o&&(t=r),!!$.isString(t)){if($.isString(n))return t.indexOf(n)!==-1;if($.isRegExp(n))return n.test(t)}}function z7(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,r,n)=>r.toUpperCase()+n)}function M7(e,t){const r=$.toCamelCase(" "+t);["get","set","has"].forEach(n=>{Object.defineProperty(e,n+r,{value:function(o,i,s){return this[n].call(this,t,o,i,s)},configurable:!0})})}let ac=class{constructor(t){t&&this.set(t)}set(t,r,n){const o=this;function i(a,l,u){const c=Fi(l);if(!c)throw new Error("header name must be a non-empty string");const d=$.findKey(o,c);(!d||o[d]===void 0||u===!0||u===void 0&&o[d]!==!1)&&(o[d||l]=xl(a))}const s=(a,l)=>$.forEach(a,(u,c)=>i(u,c,l));return $.isPlainObject(t)||t instanceof this.constructor?s(t,r):$.isString(t)&&(t=t.trim())&&!R7(t)?s($7(t),r):t!=null&&i(r,t,n),this}get(t,r){if(t=Fi(t),t){const n=$.findKey(this,t);if(n){const o=this[n];if(!r)return o;if(r===!0)return A7(o);if($.isFunction(r))return r.call(this,o,n);if($.isRegExp(r))return r.exec(o);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,r){if(t=Fi(t),t){const n=$.findKey(this,t);return!!(n&&this[n]!==void 0&&(!r||Cd(this,this[n],n,r)))}return!1}delete(t,r){const n=this;let o=!1;function i(s){if(s=Fi(s),s){const a=$.findKey(n,s);a&&(!r||Cd(n,n[a],a,r))&&(delete n[a],o=!0)}}return $.isArray(t)?t.forEach(i):i(t),o}clear(t){const r=Object.keys(this);let n=r.length,o=!1;for(;n--;){const i=r[n];(!t||Cd(this,this[i],i,t,!0))&&(delete this[i],o=!0)}return o}normalize(t){const r=this,n={};return $.forEach(this,(o,i)=>{const s=$.findKey(n,i);if(s){r[s]=xl(o),delete r[i];return}const a=t?z7(i):String(i).trim();a!==i&&delete r[i],r[a]=xl(o),n[a]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const r=Object.create(null);return $.forEach(this,(n,o)=>{n!=null&&n!==!1&&(r[o]=t&&$.isArray(n)?n.join(", "):n)}),r}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,r])=>t+": "+r).join(` -`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...r){const n=new this(t);return r.forEach(o=>n.set(o)),n}static accessor(t){const n=(this[Xy]=this[Xy]={accessors:{}}).accessors,o=this.prototype;function i(s){const a=Fi(s);n[a]||(M7(o,s),n[a]=!0)}return $.isArray(t)?t.forEach(i):i(t),this}};ac.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);$.reduceDescriptors(ac.prototype,({value:e},t)=>{let r=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(n){this[r]=n}}});$.freezeMethods(ac);const Br=ac;function _d(e,t){const r=this||Yp,n=t||r,o=Br.from(n.headers);let i=n.data;return $.forEach(e,function(a){i=a.call(r,i,o.normalize(),t?t.status:void 0)}),o.normalize(),i}function C2(e){return!!(e&&e.__CANCEL__)}function ia(e,t,r){Y.call(this,e??"canceled",Y.ERR_CANCELED,t,r),this.name="CanceledError"}$.inherits(ia,Y,{__CANCEL__:!0});function L7(e,t,r){const n=r.config.validateStatus;!r.status||!n||n(r.status)?e(r):t(new Y("Request failed with status code "+r.status,[Y.ERR_BAD_REQUEST,Y.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r))}const F7=nr.isStandardBrowserEnv?function(){return{write:function(r,n,o,i,s,a){const l=[];l.push(r+"="+encodeURIComponent(n)),$.isNumber(o)&&l.push("expires="+new Date(o).toGMTString()),$.isString(i)&&l.push("path="+i),$.isString(s)&&l.push("domain="+s),a===!0&&l.push("secure"),document.cookie=l.join("; ")},read:function(r){const n=document.cookie.match(new RegExp("(^|;\\s*)("+r+")=([^;]*)"));return n?decodeURIComponent(n[3]):null},remove:function(r){this.write(r,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}();function O7(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function j7(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}function _2(e,t){return e&&!O7(t)?j7(e,t):t}const D7=nr.isStandardBrowserEnv?function(){const t=/(msie|trident)/i.test(navigator.userAgent),r=document.createElement("a");let n;function o(i){let s=i;return t&&(r.setAttribute("href",s),s=r.href),r.setAttribute("href",s),{href:r.href,protocol:r.protocol?r.protocol.replace(/:$/,""):"",host:r.host,search:r.search?r.search.replace(/^\?/,""):"",hash:r.hash?r.hash.replace(/^#/,""):"",hostname:r.hostname,port:r.port,pathname:r.pathname.charAt(0)==="/"?r.pathname:"/"+r.pathname}}return n=o(window.location.href),function(s){const a=$.isString(s)?o(s):s;return a.protocol===n.protocol&&a.host===n.host}}():function(){return function(){return!0}}();function B7(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function I7(e,t){e=e||10;const r=new Array(e),n=new Array(e);let o=0,i=0,s;return t=t!==void 0?t:1e3,function(l){const u=Date.now(),c=n[i];s||(s=u),r[o]=l,n[o]=u;let d=i,f=0;for(;d!==o;)f+=r[d++],d=d%e;if(o=(o+1)%e,o===i&&(i=(i+1)%e),u-s{const i=o.loaded,s=o.lengthComputable?o.total:void 0,a=i-r,l=n(a),u=i<=s;r=i;const c={loaded:i,total:s,progress:s?i/s:void 0,bytes:a,rate:l||void 0,estimated:l&&s&&u?(s-i)/l:void 0,event:o};c[t?"download":"upload"]=!0,e(c)}}const N7=typeof XMLHttpRequest<"u",V7=N7&&function(e){return new Promise(function(r,n){let o=e.data;const i=Br.from(e.headers).normalize(),s=e.responseType;let a;function l(){e.cancelToken&&e.cancelToken.unsubscribe(a),e.signal&&e.signal.removeEventListener("abort",a)}$.isFormData(o)&&(nr.isStandardBrowserEnv||nr.isStandardBrowserWebWorkerEnv?i.setContentType(!1):i.setContentType("multipart/form-data;",!1));let u=new XMLHttpRequest;if(e.auth){const p=e.auth.username||"",m=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";i.set("Authorization","Basic "+btoa(p+":"+m))}const c=_2(e.baseURL,e.url);u.open(e.method.toUpperCase(),x2(c,e.params,e.paramsSerializer),!0),u.timeout=e.timeout;function d(){if(!u)return;const p=Br.from("getAllResponseHeaders"in u&&u.getAllResponseHeaders()),v={data:!s||s==="text"||s==="json"?u.responseText:u.response,status:u.status,statusText:u.statusText,headers:p,config:e,request:u};L7(function(g){r(g),l()},function(g){n(g),l()},v),u=null}if("onloadend"in u?u.onloadend=d:u.onreadystatechange=function(){!u||u.readyState!==4||u.status===0&&!(u.responseURL&&u.responseURL.indexOf("file:")===0)||setTimeout(d)},u.onabort=function(){u&&(n(new Y("Request aborted",Y.ECONNABORTED,e,u)),u=null)},u.onerror=function(){n(new Y("Network Error",Y.ERR_NETWORK,e,u)),u=null},u.ontimeout=function(){let m=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded";const v=e.transitional||w2;e.timeoutErrorMessage&&(m=e.timeoutErrorMessage),n(new Y(m,v.clarifyTimeoutError?Y.ETIMEDOUT:Y.ECONNABORTED,e,u)),u=null},nr.isStandardBrowserEnv){const p=(e.withCredentials||D7(c))&&e.xsrfCookieName&&F7.read(e.xsrfCookieName);p&&i.set(e.xsrfHeaderName,p)}o===void 0&&i.setContentType(null),"setRequestHeader"in u&&$.forEach(i.toJSON(),function(m,v){u.setRequestHeader(v,m)}),$.isUndefined(e.withCredentials)||(u.withCredentials=!!e.withCredentials),s&&s!=="json"&&(u.responseType=e.responseType),typeof e.onDownloadProgress=="function"&&u.addEventListener("progress",Yy(e.onDownloadProgress,!0)),typeof e.onUploadProgress=="function"&&u.upload&&u.upload.addEventListener("progress",Yy(e.onUploadProgress)),(e.cancelToken||e.signal)&&(a=p=>{u&&(n(!p||p.type?new ia(null,e,u):p),u.abort(),u=null)},e.cancelToken&&e.cancelToken.subscribe(a),e.signal&&(e.signal.aborted?a():e.signal.addEventListener("abort",a)));const f=B7(c);if(f&&nr.protocols.indexOf(f)===-1){n(new Y("Unsupported protocol "+f+":",Y.ERR_BAD_REQUEST,e));return}u.send(o||null)})},wl={http:p7,xhr:V7};$.forEach(wl,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const T2={getAdapter:e=>{e=$.isArray(e)?e:[e];const{length:t}=e;let r,n;for(let o=0;oe instanceof Br?e.toJSON():e;function ci(e,t){t=t||{};const r={};function n(u,c,d){return $.isPlainObject(u)&&$.isPlainObject(c)?$.merge.call({caseless:d},u,c):$.isPlainObject(c)?$.merge({},c):$.isArray(c)?c.slice():c}function o(u,c,d){if($.isUndefined(c)){if(!$.isUndefined(u))return n(void 0,u,d)}else return n(u,c,d)}function i(u,c){if(!$.isUndefined(c))return n(void 0,c)}function s(u,c){if($.isUndefined(c)){if(!$.isUndefined(u))return n(void 0,u)}else return n(void 0,c)}function a(u,c,d){if(d in t)return n(u,c);if(d in e)return n(void 0,u)}const l={url:i,method:i,data:i,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,beforeRedirect:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,responseEncoding:s,validateStatus:a,headers:(u,c)=>o(Zy(u),Zy(c),!0)};return $.forEach(Object.keys(Object.assign({},e,t)),function(c){const d=l[c]||o,f=d(e[c],t[c],c);$.isUndefined(f)&&d!==a||(r[c]=f)}),r}const P2="1.5.0",Qp={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{Qp[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}});const Jy={};Qp.transitional=function(t,r,n){function o(i,s){return"[Axios v"+P2+"] Transitional option '"+i+"'"+s+(n?". "+n:"")}return(i,s,a)=>{if(t===!1)throw new Y(o(s," has been removed"+(r?" in "+r:"")),Y.ERR_DEPRECATED);return r&&!Jy[s]&&(Jy[s]=!0,console.warn(o(s," has been deprecated since v"+r+" and will be removed in the near future"))),t?t(i,s,a):!0}};function U7(e,t,r){if(typeof e!="object")throw new Y("options must be an object",Y.ERR_BAD_OPTION_VALUE);const n=Object.keys(e);let o=n.length;for(;o-- >0;){const i=n[o],s=t[i];if(s){const a=e[i],l=a===void 0||s(a,i,e);if(l!==!0)throw new Y("option "+i+" must be "+l,Y.ERR_BAD_OPTION_VALUE);continue}if(r!==!0)throw new Y("Unknown option "+i,Y.ERR_BAD_OPTION)}}const rh={assertOptions:U7,validators:Qp},en=rh.validators;let cu=class{constructor(t){this.defaults=t,this.interceptors={request:new qy,response:new qy}}request(t,r){typeof t=="string"?(r=r||{},r.url=t):r=t||{},r=ci(this.defaults,r);const{transitional:n,paramsSerializer:o,headers:i}=r;n!==void 0&&rh.assertOptions(n,{silentJSONParsing:en.transitional(en.boolean),forcedJSONParsing:en.transitional(en.boolean),clarifyTimeoutError:en.transitional(en.boolean)},!1),o!=null&&($.isFunction(o)?r.paramsSerializer={serialize:o}:rh.assertOptions(o,{encode:en.function,serialize:en.function},!0)),r.method=(r.method||this.defaults.method||"get").toLowerCase();let s=i&&$.merge(i.common,i[r.method]);i&&$.forEach(["delete","get","head","post","put","patch","common"],m=>{delete i[m]}),r.headers=Br.concat(s,i);const a=[];let l=!0;this.interceptors.request.forEach(function(v){typeof v.runWhen=="function"&&v.runWhen(r)===!1||(l=l&&v.synchronous,a.unshift(v.fulfilled,v.rejected))});const u=[];this.interceptors.response.forEach(function(v){u.push(v.fulfilled,v.rejected)});let c,d=0,f;if(!l){const m=[Qy.bind(this),void 0];for(m.unshift.apply(m,a),m.push.apply(m,u),f=m.length,c=Promise.resolve(r);d{if(!n._listeners)return;let i=n._listeners.length;for(;i-- >0;)n._listeners[i](o);n._listeners=null}),this.promise.then=o=>{let i;const s=new Promise(a=>{n.subscribe(a),i=a}).then(o);return s.cancel=function(){n.unsubscribe(i)},s},t(function(i,s,a){n.reason||(n.reason=new ia(i,s,a),r(n.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const r=this._listeners.indexOf(t);r!==-1&&this._listeners.splice(r,1)}static source(){let t;return{token:new E2(function(o){t=o}),cancel:t}}};const W7=H7;function G7(e){return function(r){return e.apply(null,r)}}function K7(e){return $.isObject(e)&&e.isAxiosError===!0}const nh={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(nh).forEach(([e,t])=>{nh[t]=e});const q7=nh;function $2(e){const t=new kl(e),r=u2(kl.prototype.request,t);return $.extend(r,kl.prototype,t,{allOwnKeys:!0}),$.extend(r,t,null,{allOwnKeys:!0}),r.create=function(o){return $2(ci(e,o))},r}const De=$2(Yp);De.Axios=kl;De.CanceledError=ia;De.CancelToken=W7;De.isCancel=C2;De.VERSION=P2;De.toFormData=sc;De.AxiosError=Y;De.Cancel=De.CanceledError;De.all=function(t){return Promise.all(t)};De.spread=G7;De.isAxiosError=K7;De.mergeConfig=ci;De.AxiosHeaders=Br;De.formToJSON=e=>k2($.isHTMLForm(e)?new FormData(e):e);De.getAdapter=T2.getAdapter;De.HttpStatusCode=q7;De.default=De;const A2=De,{Axios:kF,AxiosError:CF,CanceledError:X7,isCancel:_F,CancelToken:TF,VERSION:PF,all:EF,Cancel:$F,isAxiosError:AF,spread:RF,toFormData:zF,AxiosHeaders:MF,HttpStatusCode:LF,formToJSON:FF,getAdapter:OF,mergeConfig:jF}=A2,Y7=A2.create({baseURL:"https://api.rawg.io/api",params:{key:"48105d50b8744f30a984fcfaeee838b4"}}),R2=(e,t,r)=>{const[n,o]=S.useState([]),[i,s]=S.useState(""),[a,l]=S.useState(!1);return S.useEffect(()=>{const u=new AbortController;return o([]),l(!0),Y7.get(e,{signal:u.signal,...t}).then(c=>{o(c.data.results),l(!1)}).catch(c=>{c instanceof X7||(s(c.message),l(!1))}),()=>{u.abort()}},r?[...r]:[]),{data:n,error:i,isLoading:a}},Q7=e=>{const{data:t,isLoading:r,error:n}=R2("/games",{params:{genres:e==null?void 0:e.id}},[e==null?void 0:e.id]);return{games:t,error:n,isLoading:r}};var z2={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},ev=Tt.createContext&&Tt.createContext(z2),wn=globalThis&&globalThis.__assign||function(){return wn=Object.assign||function(e){for(var t,r=1,n=arguments.length;r{const t={pc:oF,playstation:nF,xbox:iF,nintendo:aF,mac:tF,linux:rF,android:eF,ios:sF,web:lF};return _.jsx(gi,{marginY:1,children:e.map(r=>_.jsx(uo,{as:t[r.slug],color:"gray.500"},r.id))})},cF=({score:e})=>{const t=e>75?"green":e>60?"yellow":"";return _.jsx(o2,{fontSize:"14px",paddingX:"2",borderRadius:"4px",colorScheme:t,children:e})},L2=e=>{const t="media/",r=e.indexOf(t)+t.length;return e.slice(0,r)+"crop/600/400/"+e.slice(r)},dF=({game:e})=>_.jsxs(qx,{children:[_.jsx(ec,{src:L2(e.background_image)}),_.jsxs(Kx,{children:[_.jsx(r2,{fontSize:"2xl",children:e.name}),_.jsxs(gi,{justifyContent:"space-between",children:[_.jsx(uF,{platforms:e.parent_platforms.map(t=>t.platform)}),_.jsx(cF,{score:e.metacritic})]})]})]}),fF=()=>_.jsxs(qx,{children:[_.jsx(Gp,{height:"200px"}),_.jsx(Kx,{children:_.jsx(a2,{})})]}),tv=({children:e})=>_.jsx(Wp,{borderRadius:10,overflow:"hidden",children:e}),hF=({selectedGenre:e})=>{const{games:t,error:r,isLoading:n}=Q7(e);return _.jsxs(_.Fragment,{children:[r&&_.jsx(Vs,{children:r}),_.jsxs(Jx,{columns:{sm:1,md:2,lg:3,xl:5},spacing:3,padding:"10px",children:[n&&[0,1,2,3,4,5].map(o=>_.jsx(tv,{children:_.jsx(fF,{})},o)),t.map(o=>_.jsx(tv,{children:_.jsx(dF,{game:o})},o.id))]})]})},pF=()=>{const{data:e,isLoading:t,error:r}=R2("/genres");return{genres:e,error:r,isLoading:t}},mF=({onSelectGenre:e})=>{const{genres:t,error:r}=pF();return _.jsxs(_.Fragment,{children:[r&&_.jsx(Vs,{children:r}),_.jsx(tc,{children:t.map(n=>_.jsx(Qx,{paddingY:"5px",children:_.jsxs(gi,{children:[_.jsx(ec,{src:L2(n.image_background),boxSize:"32px",borderRadius:"8px"}),_.jsx(Gx,{onClick:()=>e(n),fontSize:"lg",variant:"link",children:_.jsx(Vs,{overflow:"hidden",children:n.name})})]})},n.id))})]})};function gF(){const[e,t]=S.useState(null);return _.jsxs(Hp,{templateAreas:{base:'"nav" "main"',lg:'"nav nav" "aside main"'},templateColumns:{base:"1fr",lg:"200px 1fr"},children:[_.jsx(bl,{area:"nav",children:_.jsx(ML,{})}),_.jsx(s2,{above:"lg",children:_.jsx(bl,{area:"aside",paddingX:5,children:_.jsx(mF,{onSelectGenre:r=>t(r)})})}),_.jsx(bl,{area:"main",children:_.jsx(hF,{selectedGenre:e})})]})}const yF={initialColorMode:"dark",useSystemColorMode:!1},rv=yA({config:yF});Pd.createRoot(document.getElementById("root")).render(_.jsx(Tt.StrictMode,{children:_.jsxs(LM,{theme:rv,children:[_.jsx(T4,{initialColorMode:rv.config.initialColorMode}),_.jsx(gF,{})]})})); + `),()=>{document.head.removeChild(u)}},[t]),S.createElement(cM,{isPresent:t,childRef:n,sizeRef:o},S.cloneElement(e,{ref:n}))}const kd=({children:e,initial:t,isPresent:r,onExitComplete:n,custom:o,presenceAffectsLayout:i,mode:s})=>{const a=MS(fM),l=S.useId(),u=S.useMemo(()=>({id:l,initial:t,isPresent:r,custom:o,onExitComplete:c=>{a.set(c,!0);for(const d of a.values())if(!d)return;n&&n()},register:c=>(a.set(c,!1),()=>a.delete(c))}),i?void 0:[r]);return S.useMemo(()=>{a.forEach((c,d)=>a.set(d,!1))},[r]),S.useEffect(()=>{!r&&!a.size&&n&&n()},[r]),s==="popLayout"&&(e=S.createElement(dM,{isPresent:r},e)),S.createElement(Zs.Provider,{value:u},e)};function fM(){return new Map}function hM(e){return S.useEffect(()=>()=>e(),[])}const vo=e=>e.key||"";function pM(e,t){e.forEach(r=>{const n=vo(r);t.set(n,r)})}function mM(e){const t=[];return S.Children.forEach(e,r=>{S.isValidElement(r)&&t.push(r)}),t}const gM=({children:e,custom:t,initial:r=!0,onExitComplete:n,exitBeforeEnter:o,presenceAffectsLayout:i=!0,mode:s="sync"})=>{const a=S.useContext(kp).forceRender||uM()[0],l=jx(),u=mM(e);let c=u;const d=S.useRef(new Map).current,f=S.useRef(c),p=S.useRef(new Map).current,m=S.useRef(!0);if(Sp(()=>{m.current=!1,pM(u,p),f.current=c}),hM(()=>{m.current=!0,p.clear(),d.clear()}),m.current)return S.createElement(S.Fragment,null,c.map(h=>S.createElement(kd,{key:vo(h),isPresent:!0,initial:r?void 0:!1,presenceAffectsLayout:i,mode:s},h)));c=[...c];const v=f.current.map(vo),C=u.map(vo),g=v.length;for(let h=0;h{if(C.indexOf(y)!==-1)return;const k=p.get(y);if(!k)return;const P=v.indexOf(y);let R=h;if(!R){const E=()=>{p.delete(y),d.delete(y);const A=f.current.findIndex(O=>O.key===y);if(f.current.splice(A,1),!d.size){if(f.current=u,l.current===!1)return;a(),n&&n()}};R=S.createElement(kd,{key:vo(k),isPresent:!1,onExitComplete:E,custom:t,presenceAffectsLayout:i,mode:s},k),d.set(y,R)}c.splice(P,0,R)}),c=c.map(h=>{const y=h.key;return d.has(y)?h:S.createElement(kd,{key:vo(h),isPresent:!0,presenceAffectsLayout:i,mode:s},h)}),S.createElement(S.Fragment,null,d.size?c:c.map(h=>S.cloneElement(h)))};var yM={initial:e=>{const{position:t}=e,r=["top","bottom"].includes(t)?"y":"x";let n=["top-right","bottom-right"].includes(t)?1:-1;return t==="bottom"&&(n=1),{opacity:0,[r]:n*24}},animate:{opacity:1,y:0,x:0,scale:1,transition:{duration:.4,ease:[.4,0,.2,1]}},exit:{opacity:0,scale:.85,transition:{duration:.2,ease:[.4,0,1,1]}}},Dx=S.memo(e=>{const{id:t,message:r,onCloseComplete:n,onRequestRemove:o,requestClose:i=!1,position:s="bottom",duration:a=5e3,containerStyle:l,motionVariants:u=yM,toastSpacing:c="0.5rem"}=e,[d,f]=S.useState(a),p=t9();Lf(()=>{p||n==null||n()},[p]),Lf(()=>{f(a)},[a]);const m=()=>f(null),v=()=>f(a),C=()=>{p&&o()};S.useEffect(()=>{p&&i&&o()},[p,i,o]),ZA(C,d);const g=S.useMemo(()=>({pointerEvents:"auto",maxWidth:560,minWidth:300,margin:c,...l}),[l,c]),h=S.useMemo(()=>YA(s),[s]);return _.jsx(lM.div,{layout:!0,className:"chakra-toast",variants:u,initial:"initial",animate:"animate",exit:"exit",onHoverStart:m,onHoverEnd:v,custom:{position:s},style:h,children:_.jsx(H.div,{role:"status","aria-atomic":"true",className:"chakra-toast__inner",__css:g,children:dn(r,{id:t,onClose:C})})})});Dx.displayName="ToastComponent";var Ly={path:_.jsxs("g",{stroke:"currentColor",strokeWidth:"1.5",children:[_.jsx("path",{strokeLinecap:"round",fill:"none",d:"M9,9a3,3,0,1,1,4,2.829,1.5,1.5,0,0,0-1,1.415V14.25"}),_.jsx("path",{fill:"currentColor",strokeLinecap:"round",d:"M12,17.25a.375.375,0,1,0,.375.375A.375.375,0,0,0,12,17.25h0"}),_.jsx("circle",{fill:"none",strokeMiterlimit:"10",cx:"12",cy:"12",r:"11.25"})]}),viewBox:"0 0 24 24"},uo=se((e,t)=>{const{as:r,viewBox:n,color:o="currentColor",focusable:i=!1,children:s,className:a,__css:l,...u}=e,c=Be("chakra-icon",a),d=An("Icon",e),f={w:"1em",h:"1em",display:"inline-block",lineHeight:"1em",flexShrink:0,color:o,...l,...d},p={ref:t,focusable:i,className:c,__css:f},m=n??Ly.viewBox;if(r&&typeof r!="string")return _.jsx(H.svg,{as:r,...p,...u});const v=s??Ly.path;return _.jsx(H.svg,{verticalAlign:"middle",viewBox:m,...p,...u,children:v})});uo.displayName="Icon";function vM(e){return _.jsx(uo,{viewBox:"0 0 24 24",...e,children:_.jsx("path",{fill:"currentColor",d:"M12,0A12,12,0,1,0,24,12,12.014,12.014,0,0,0,12,0Zm6.927,8.2-6.845,9.289a1.011,1.011,0,0,1-1.43.188L5.764,13.769a1,1,0,1,1,1.25-1.562l4.076,3.261,6.227-8.451A1,1,0,1,1,18.927,8.2Z"})})}function bM(e){return _.jsx(uo,{viewBox:"0 0 24 24",...e,children:_.jsx("path",{fill:"currentColor",d:"M12,0A12,12,0,1,0,24,12,12.013,12.013,0,0,0,12,0Zm.25,5a1.5,1.5,0,1,1-1.5,1.5A1.5,1.5,0,0,1,12.25,5ZM14.5,18.5h-4a1,1,0,0,1,0-2h.75a.25.25,0,0,0,.25-.25v-4.5a.25.25,0,0,0-.25-.25H10.5a1,1,0,0,1,0-2h1a2,2,0,0,1,2,2v4.75a.25.25,0,0,0,.25.25h.75a1,1,0,1,1,0,2Z"})})}function Fy(e){return _.jsx(uo,{viewBox:"0 0 24 24",...e,children:_.jsx("path",{fill:"currentColor",d:"M11.983,0a12.206,12.206,0,0,0-8.51,3.653A11.8,11.8,0,0,0,0,12.207,11.779,11.779,0,0,0,11.8,24h.214A12.111,12.111,0,0,0,24,11.791h0A11.766,11.766,0,0,0,11.983,0ZM10.5,16.542a1.476,1.476,0,0,1,1.449-1.53h.027a1.527,1.527,0,0,1,1.523,1.47,1.475,1.475,0,0,1-1.449,1.53h-.027A1.529,1.529,0,0,1,10.5,16.542ZM11,12.5v-6a1,1,0,0,1,2,0v6a1,1,0,1,1-2,0Z"})})}var SM=lp({"0%":{transform:"rotate(0deg)"},"100%":{transform:"rotate(360deg)"}}),ec=se((e,t)=>{const r=An("Spinner",e),{label:n="Loading...",thickness:o="2px",speed:i="0.45s",emptyColor:s="transparent",className:a,...l}=Xt(e),u=Be("chakra-spinner",a),c={display:"inline-block",borderColor:"currentColor",borderStyle:"solid",borderRadius:"99999px",borderWidth:o,borderBottomColor:s,borderLeftColor:s,animation:`${SM} ${i} linear infinite`,...r};return _.jsx(H.div,{ref:t,__css:c,className:u,...l,children:n&&_.jsx(H.span,{srOnly:!0,children:n})})});ec.displayName="Spinner";var[xM,Np]=Kr({name:"AlertContext",hookName:"useAlertContext",providerName:""}),[wM,Vp]=Kr({name:"AlertStylesContext",hookName:"useAlertStyles",providerName:""}),Bx={info:{icon:bM,colorScheme:"blue"},warning:{icon:Fy,colorScheme:"orange"},success:{icon:vM,colorScheme:"green"},error:{icon:Fy,colorScheme:"red"},loading:{icon:ec,colorScheme:"blue"}};function kM(e){return Bx[e].colorScheme}function CM(e){return Bx[e].icon}var Ix=se(function(t,r){const n=Vp(),{status:o}=Np(),i={display:"inline",...n.description};return _.jsx(H.div,{ref:r,"data-status":o,...t,className:Be("chakra-alert__desc",t.className),__css:i})});Ix.displayName="AlertDescription";function Nx(e){const{status:t}=Np(),r=CM(t),n=Vp(),o=t==="loading"?n.spinner:n.icon;return _.jsx(H.span,{display:"inherit","data-status":t,...e,className:Be("chakra-alert__icon",e.className),__css:o,children:e.children||_.jsx(r,{h:"100%",w:"100%"})})}Nx.displayName="AlertIcon";var Vx=se(function(t,r){const n=Vp(),{status:o}=Np();return _.jsx(H.div,{ref:r,"data-status":o,...t,className:Be("chakra-alert__title",t.className),__css:n.title})});Vx.displayName="AlertTitle";var Ux=se(function(t,r){var n;const{status:o="info",addRole:i=!0,...s}=Xt(t),a=(n=t.colorScheme)!=null?n:kM(o),l=Qs("Alert",{...t,colorScheme:a}),u={width:"100%",display:"flex",alignItems:"center",position:"relative",overflow:"hidden",...l.container};return _.jsx(xM,{value:{status:o},children:_.jsx(wM,{value:l,children:_.jsx(H.div,{"data-status":o,role:i?"alert":void 0,ref:r,...s,className:Be("chakra-alert",t.className),__css:u})})})});Ux.displayName="Alert";function _M(e){return _.jsx(uo,{focusable:"false","aria-hidden":!0,...e,children:_.jsx("path",{fill:"currentColor",d:"M.439,21.44a1.5,1.5,0,0,0,2.122,2.121L11.823,14.3a.25.25,0,0,1,.354,0l9.262,9.263a1.5,1.5,0,1,0,2.122-2.121L14.3,12.177a.25.25,0,0,1,0-.354l9.263-9.262A1.5,1.5,0,0,0,21.439.44L12.177,9.7a.25.25,0,0,1-.354,0L2.561.44A1.5,1.5,0,0,0,.439,2.561L9.7,11.823a.25.25,0,0,1,0,.354Z"})})}var Hx=se(function(t,r){const n=An("CloseButton",t),{children:o,isDisabled:i,__css:s,...a}=Xt(t),l={outline:0,display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0};return _.jsx(H.button,{type:"button","aria-label":"Close",ref:r,disabled:i,__css:{...l,...n,...s},...a,children:o||_.jsx(_M,{width:"1em",height:"1em"})})});Hx.displayName="CloseButton";var TM={top:[],"top-left":[],"top-right":[],"bottom-left":[],bottom:[],"bottom-right":[]},fs=PM(TM);function PM(e){let t=e;const r=new Set,n=o=>{t=o(t),r.forEach(i=>i())};return{getState:()=>t,subscribe:o=>(r.add(o),()=>{n(()=>e),r.delete(o)}),removeToast:(o,i)=>{n(s=>({...s,[i]:s[i].filter(a=>a.id!=o)}))},notify:(o,i)=>{const s=EM(o,i),{position:a,id:l}=s;return n(u=>{var c,d;const p=a.includes("top")?[s,...(c=u[a])!=null?c:[]]:[...(d=u[a])!=null?d:[],s];return{...u,[a]:p}}),l},update:(o,i)=>{o&&n(s=>{const a={...s},{position:l,index:u}=$g(a,o);return l&&u!==-1&&(a[l][u]={...a[l][u],...i,message:AM(i)}),a})},closeAll:({positions:o}={})=>{n(i=>(o??["bottom","bottom-right","bottom-left","top","top-left","top-right"]).reduce((l,u)=>(l[u]=i[u].map(c=>({...c,requestClose:!0})),l),{...i}))},close:o=>{n(i=>{const s=gS(i,o);return s?{...i,[s]:i[s].map(a=>a.id==o?{...a,requestClose:!0}:a)}:i})},isActive:o=>!!$g(fs.getState(),o).position}}var Oy=0;function EM(e,t={}){var r,n;Oy+=1;const o=(r=t.id)!=null?r:Oy,i=(n=t.position)!=null?n:"bottom";return{id:o,message:e,position:i,duration:t.duration,onCloseComplete:t.onCloseComplete,onRequestRemove:()=>fs.removeToast(String(o),i),status:t.status,requestClose:!1,containerStyle:t.containerStyle}}var $M=e=>{const{status:t,variant:r="solid",id:n,title:o,isClosable:i,onClose:s,description:a,colorScheme:l,icon:u}=e,c=n?{root:`toast-${n}`,title:`toast-${n}-title`,description:`toast-${n}-description`}:void 0;return _.jsxs(Ux,{addRole:!1,status:t,variant:r,id:c==null?void 0:c.root,alignItems:"start",borderRadius:"md",boxShadow:"lg",paddingEnd:8,textAlign:"start",width:"auto",colorScheme:l,children:[_.jsx(Nx,{children:u}),_.jsxs(H.div,{flex:"1",maxWidth:"100%",children:[o&&_.jsx(Vx,{id:c==null?void 0:c.title,children:o}),a&&_.jsx(Ix,{id:c==null?void 0:c.description,display:"block",children:a})]}),i&&_.jsx(Hx,{size:"sm",onClick:s,position:"absolute",insetEnd:1,top:1})]})};function AM(e={}){const{render:t,toastComponent:r=$M}=e;return o=>typeof t=="function"?t({...o,...e}):_.jsx(r,{...o,...e})}var[RM,bF]=Kr({name:"ToastOptionsContext",strict:!1}),zM=e=>{const t=S.useSyncExternalStore(fs.subscribe,fs.getState,fs.getState),{motionVariants:r,component:n=Dx,portalProps:o}=e,s=Object.keys(t).map(a=>{const l=t[a];return _.jsx("div",{role:"region","aria-live":"polite","aria-label":"Notifications",id:`chakra-toast-manager-${a}`,style:QA(a),children:_.jsx(gM,{initial:!1,children:l.map(u=>_.jsx(n,{motionVariants:r,...u},u.id))})},a)});return _.jsx(Nu,{...o,children:s})},MM=e=>function({children:r,theme:n=e,toastOptions:o,...i}){return _.jsxs(qA,{theme:n,...i,children:[_.jsx(RM,{value:o==null?void 0:o.defaultOptions,children:r}),_.jsx(zM,{...o})]})},LM=MM(sS);function FM(e,t){if(e!=null){if(typeof e=="function"){e(t);return}try{e.current=t}catch{throw new Error(`Cannot assign value '${t}' to ref '${e}'`)}}}function Ns(...e){return t=>{e.forEach(r=>{FM(r,t)})}}function OM(...e){return S.useMemo(()=>Ns(...e),e)}var qf=se(function(t,r){const{htmlWidth:n,htmlHeight:o,alt:i,...s}=t;return _.jsx("img",{width:n,height:o,ref:r,alt:i,...s})});qf.displayName="NativeImage";function jM(e){const{loading:t,src:r,srcSet:n,onLoad:o,onError:i,crossOrigin:s,sizes:a,ignoreFallback:l}=e,[u,c]=S.useState("pending");S.useEffect(()=>{c(r?"loading":"pending")},[r]);const d=S.useRef(),f=S.useCallback(()=>{if(!r)return;p();const m=new Image;m.src=r,s&&(m.crossOrigin=s),n&&(m.srcset=n),a&&(m.sizes=a),t&&(m.loading=t),m.onload=v=>{p(),c("loaded"),o==null||o(v)},m.onerror=v=>{p(),c("failed"),i==null||i(v)},d.current=m},[r,s,n,a,o,i,t]),p=()=>{d.current&&(d.current.onload=null,d.current.onerror=null,d.current=null)};return Fr(()=>{if(!l)return u==="loading"&&f(),()=>{p()}},[u,f,l]),l?"loaded":u}var DM=(e,t)=>e!=="loaded"&&t==="beforeLoadOrError"||e==="failed"&&t==="onError";function BM(e,t=[]){const r=Object.assign({},e);for(const n of t)n in r&&delete r[n];return r}var tc=se(function(t,r){const{fallbackSrc:n,fallback:o,src:i,srcSet:s,align:a,fit:l,loading:u,ignoreFallback:c,crossOrigin:d,fallbackStrategy:f="beforeLoadOrError",referrerPolicy:p,...m}=t,v=n!==void 0||o!==void 0,C=u!=null||c||!v,g=jM({...t,crossOrigin:d,ignoreFallback:C}),h=DM(g,f),y={ref:r,objectFit:l,objectPosition:a,...C?m:BM(m,["onError","onLoad"])};return h?o||_.jsx(H.img,{as:qf,className:"chakra-image__placeholder",src:n,...y}):_.jsx(H.img,{as:qf,src:i,srcSet:s,crossOrigin:d,loading:u,referrerPolicy:p,className:"chakra-image",...y})});tc.displayName="Image";function Wx(e){return S.Children.toArray(e).filter(t=>S.isValidElement(t))}var[SF,IM]=Kr({strict:!1,name:"ButtonGroupContext"});function NM(e){const[t,r]=S.useState(!e);return{ref:S.useCallback(i=>{i&&r(i.tagName==="BUTTON")},[]),type:t?"button":void 0}}function Xf(e){const{children:t,className:r,...n}=e,o=S.isValidElement(t)?S.cloneElement(t,{"aria-hidden":!0,focusable:!1}):t,i=Be("chakra-button__icon",r);return _.jsx(H.span,{display:"inline-flex",alignSelf:"center",flexShrink:0,...n,className:i,children:o})}Xf.displayName="ButtonIcon";function Yf(e){const{label:t,placement:r,spacing:n="0.5rem",children:o=_.jsx(ec,{color:"currentColor",width:"1em",height:"1em"}),className:i,__css:s,...a}=e,l=Be("chakra-button__spinner",i),u=r==="start"?"marginEnd":"marginStart",c=S.useMemo(()=>({display:"flex",alignItems:"center",position:t?"relative":"absolute",[u]:t?n:0,fontSize:"1em",lineHeight:"normal",...s}),[s,t,u,n]);return _.jsx(H.div,{className:l,...a,__css:c,children:o})}Yf.displayName="ButtonSpinner";var Gx=se((e,t)=>{const r=IM(),n=An("Button",{...r,...e}),{isDisabled:o=r==null?void 0:r.isDisabled,isLoading:i,isActive:s,children:a,leftIcon:l,rightIcon:u,loadingText:c,iconSpacing:d="0.5rem",type:f,spinner:p,spinnerPlacement:m="start",className:v,as:C,...g}=Xt(e),h=S.useMemo(()=>{const R={...n==null?void 0:n._focus,zIndex:1};return{display:"inline-flex",appearance:"none",alignItems:"center",justifyContent:"center",userSelect:"none",position:"relative",whiteSpace:"nowrap",verticalAlign:"middle",outline:"none",...n,...!!r&&{_focus:R}}},[n,r]),{ref:y,type:k}=NM(C),P={rightIcon:u,leftIcon:l,iconSpacing:d,children:a};return _.jsxs(H.button,{ref:OM(t,y),as:C,type:f??k,"data-active":oe(s),"data-loading":oe(i),__css:h,className:Be("chakra-button",v),...g,disabled:o||i,children:[i&&m==="start"&&_.jsx(Yf,{className:"chakra-button__spinner--start",label:c,placement:"start",spacing:d,children:p}),i?c||_.jsx(H.span,{opacity:0,children:_.jsx(jy,{...P})}):_.jsx(jy,{...P}),i&&m==="end"&&_.jsx(Yf,{className:"chakra-button__spinner--end",label:c,placement:"end",spacing:d,children:p})]})});Gx.displayName="Button";function jy(e){const{leftIcon:t,rightIcon:r,children:n,iconSpacing:o}=e;return _.jsxs(_.Fragment,{children:[t&&_.jsx(Xf,{marginEnd:o,children:t}),n,r&&_.jsx(Xf,{marginStart:o,children:r})]})}var[VM,UM]=WA("Card"),Kx=se(function(t,r){const{className:n,...o}=t,i=UM();return _.jsx(H.div,{ref:r,className:Be("chakra-card__body",n),__css:i.body,...o})}),qx=se(function(t,r){const{className:n,children:o,direction:i="column",justify:s,align:a,...l}=Xt(t),u=Qs("Card",t);return _.jsx(H.div,{ref:r,className:Be("chakra-card",n),__css:{display:"flex",flexDirection:i,justifyContent:s,alignItems:a,position:"relative",minWidth:0,wordWrap:"break-word",...u.container},...l,children:_.jsx(VM,{value:u,children:o})})}),[HM,WM]=Kr({name:"FormControlStylesContext",errorMessage:`useFormControlStyles returned is 'undefined'. Seems you forgot to wrap the components in "" `}),[GM,Xx]=Kr({strict:!1,name:"FormControlContext"});function KM(e){const{id:t,isRequired:r,isInvalid:n,isDisabled:o,isReadOnly:i,...s}=e,a=S.useId(),l=t||`field-${a}`,u=`${l}-label`,c=`${l}-feedback`,d=`${l}-helptext`,[f,p]=S.useState(!1),[m,v]=S.useState(!1),[C,g]=S.useState(!1),h=S.useCallback((E={},A=null)=>({id:d,...E,ref:Ns(A,O=>{O&&v(!0)})}),[d]),y=S.useCallback((E={},A=null)=>({...E,ref:A,"data-focus":oe(C),"data-disabled":oe(o),"data-invalid":oe(n),"data-readonly":oe(i),id:E.id!==void 0?E.id:u,htmlFor:E.htmlFor!==void 0?E.htmlFor:l}),[l,o,C,n,i,u]),k=S.useCallback((E={},A=null)=>({id:c,...E,ref:Ns(A,O=>{O&&p(!0)}),"aria-live":"polite"}),[c]),P=S.useCallback((E={},A=null)=>({...E,...s,ref:A,role:"group"}),[s]),R=S.useCallback((E={},A=null)=>({...E,ref:A,role:"presentation","aria-hidden":!0,children:E.children||"*"}),[]);return{isRequired:!!r,isInvalid:!!n,isReadOnly:!!i,isDisabled:!!o,isFocused:!!C,onFocus:()=>g(!0),onBlur:()=>g(!1),hasFeedbackText:f,setHasFeedbackText:p,hasHelpText:m,setHasHelpText:v,id:l,labelId:u,feedbackId:c,helpTextId:d,htmlProps:s,getHelpTextProps:h,getErrorMessageProps:k,getRootProps:P,getLabelProps:y,getRequiredIndicatorProps:R}}var qM=se(function(t,r){const n=Qs("Form",t),o=Xt(t),{getRootProps:i,htmlProps:s,...a}=KM(o),l=Be("chakra-form-control",t.className);return _.jsx(GM,{value:a,children:_.jsx(HM,{value:n,children:_.jsx(H.div,{...i({},r),className:l,__css:n.container})})})});qM.displayName="FormControl";var XM=se(function(t,r){const n=Xx(),o=WM(),i=Be("chakra-form__helper-text",t.className);return _.jsx(H.div,{...n==null?void 0:n.getHelpTextProps(t,r),__css:o.helperText,className:i})});XM.displayName="FormHelperText";function YM(e){var t,r,n;const o=Xx(),{id:i,disabled:s,readOnly:a,required:l,isRequired:u,isInvalid:c,isReadOnly:d,isDisabled:f,onFocus:p,onBlur:m,...v}=e,C=e["aria-describedby"]?[e["aria-describedby"]]:[];return o!=null&&o.hasFeedbackText&&(o!=null&&o.isInvalid)&&C.push(o.feedbackId),o!=null&&o.hasHelpText&&C.push(o.helpTextId),{...v,"aria-describedby":C.join(" ")||void 0,id:i??(o==null?void 0:o.id),isDisabled:(t=s??f)!=null?t:o==null?void 0:o.isDisabled,isReadOnly:(r=a??d)!=null?r:o==null?void 0:o.isReadOnly,isRequired:(n=l??u)!=null?n:o==null?void 0:o.isRequired,isInvalid:c??(o==null?void 0:o.isInvalid),onFocus:kt(o==null?void 0:o.onFocus,p),onBlur:kt(o==null?void 0:o.onBlur,m)}}var QM={border:"0",clip:"rect(0, 0, 0, 0)",height:"1px",width:"1px",margin:"-1px",padding:"0",overflow:"hidden",whiteSpace:"nowrap",position:"absolute"},ZM=()=>typeof document<"u",Dy=!1,na=null,oo=!1,Qf=!1,Zf=new Set;function Up(e,t){Zf.forEach(r=>r(e,t))}var JM=typeof window<"u"&&window.navigator!=null?/^Mac/.test(window.navigator.platform):!1;function eL(e){return!(e.metaKey||!JM&&e.altKey||e.ctrlKey||e.key==="Control"||e.key==="Shift"||e.key==="Meta")}function By(e){oo=!0,eL(e)&&(na="keyboard",Up("keyboard",e))}function yo(e){if(na="pointer",e.type==="mousedown"||e.type==="pointerdown"){oo=!0;const t=e.composedPath?e.composedPath()[0]:e.target;let r=!1;try{r=t.matches(":focus-visible")}catch{}if(r)return;Up("pointer",e)}}function tL(e){return e.mozInputSource===0&&e.isTrusted?!0:e.detail===0&&!e.pointerType}function rL(e){tL(e)&&(oo=!0,na="virtual")}function nL(e){e.target===window||e.target===document||(!oo&&!Qf&&(na="virtual",Up("virtual",e)),oo=!1,Qf=!1)}function oL(){oo=!1,Qf=!0}function Iy(){return na!=="pointer"}function iL(){if(!ZM()||Dy)return;const{focus:e}=HTMLElement.prototype;HTMLElement.prototype.focus=function(...r){oo=!0,e.apply(this,r)},document.addEventListener("keydown",By,!0),document.addEventListener("keyup",By,!0),document.addEventListener("click",rL,!0),window.addEventListener("focus",nL,!0),window.addEventListener("blur",oL,!1),typeof PointerEvent<"u"?(document.addEventListener("pointerdown",yo,!0),document.addEventListener("pointermove",yo,!0),document.addEventListener("pointerup",yo,!0)):(document.addEventListener("mousedown",yo,!0),document.addEventListener("mousemove",yo,!0),document.addEventListener("mouseup",yo,!0)),Dy=!0}function sL(e){iL(),e(Iy());const t=()=>e(Iy());return Zf.add(t),()=>{Zf.delete(t)}}function aL(e,t=[]){const r=Object.assign({},e);for(const n of t)n in r&&delete r[n];return r}function lL(e={}){const t=YM(e),{isDisabled:r,isReadOnly:n,isRequired:o,isInvalid:i,id:s,onBlur:a,onFocus:l,"aria-describedby":u}=t,{defaultChecked:c,isChecked:d,isFocusable:f,onChange:p,isIndeterminate:m,name:v,value:C,tabIndex:g=void 0,"aria-label":h,"aria-labelledby":y,"aria-invalid":k,...P}=e,R=aL(P,["isDisabled","isReadOnly","isRequired","isInvalid","id","onBlur","onFocus","aria-describedby"]),E=gl(p),A=gl(a),O=gl(l),[j,de]=S.useState(!1),[ye,Re]=S.useState(!1),[ae,he]=S.useState(!1),[Le,Ie]=S.useState(!1);S.useEffect(()=>sL(de),[]);const M=S.useRef(null),[I,U]=S.useState(!0),[N,J]=S.useState(!!c),W=d!==void 0,ce=W?d:N,Yt=S.useCallback(G=>{if(n||r){G.preventDefault();return}W||J(ce?G.target.checked:m?!0:G.target.checked),E==null||E(G)},[n,r,ce,W,m,E]);Fr(()=>{M.current&&(M.current.indeterminate=!!m)},[m]),Lf(()=>{r&&Re(!1)},[r,Re]),Fr(()=>{const G=M.current;if(!(G!=null&&G.form))return;const dt=()=>{J(!!c)};return G.form.addEventListener("reset",dt),()=>{var Ot;return(Ot=G.form)==null?void 0:Ot.removeEventListener("reset",dt)}},[]);const Ee=r&&!f,xt=S.useCallback(G=>{G.key===" "&&Ie(!0)},[Ie]),ar=S.useCallback(G=>{G.key===" "&&Ie(!1)},[Ie]);Fr(()=>{if(!M.current)return;M.current.checked!==ce&&J(M.current.checked)},[M.current]);const Xr=S.useCallback((G={},dt=null)=>{const Ot=fo=>{ye&&fo.preventDefault(),Ie(!0)};return{...G,ref:dt,"data-active":oe(Le),"data-hover":oe(ae),"data-checked":oe(ce),"data-focus":oe(ye),"data-focus-visible":oe(ye&&j),"data-indeterminate":oe(m),"data-disabled":oe(r),"data-invalid":oe(i),"data-readonly":oe(n),"aria-hidden":!0,onMouseDown:kt(G.onMouseDown,Ot),onMouseUp:kt(G.onMouseUp,()=>Ie(!1)),onMouseEnter:kt(G.onMouseEnter,()=>he(!0)),onMouseLeave:kt(G.onMouseLeave,()=>he(!1))}},[Le,ce,r,ye,j,ae,m,i,n]),lr=S.useCallback((G={},dt=null)=>({...G,ref:dt,"data-active":oe(Le),"data-hover":oe(ae),"data-checked":oe(ce),"data-focus":oe(ye),"data-focus-visible":oe(ye&&j),"data-indeterminate":oe(m),"data-disabled":oe(r),"data-invalid":oe(i),"data-readonly":oe(n)}),[Le,ce,r,ye,j,ae,m,i,n]),Ft=S.useCallback((G={},dt=null)=>({...R,...G,ref:Ns(dt,Ot=>{Ot&&U(Ot.tagName==="LABEL")}),onClick:kt(G.onClick,()=>{var Ot;I||((Ot=M.current)==null||Ot.click(),requestAnimationFrame(()=>{var fo;(fo=M.current)==null||fo.focus({preventScroll:!0})}))}),"data-disabled":oe(r),"data-checked":oe(ce),"data-invalid":oe(i)}),[R,r,ce,i,I]),zn=S.useCallback((G={},dt=null)=>({...G,ref:Ns(M,dt),type:"checkbox",name:v,value:C,id:s,tabIndex:g,onChange:kt(G.onChange,Yt),onBlur:kt(G.onBlur,A,()=>Re(!1)),onFocus:kt(G.onFocus,O,()=>Re(!0)),onKeyDown:kt(G.onKeyDown,xt),onKeyUp:kt(G.onKeyUp,ar),required:o,checked:ce,disabled:Ee,readOnly:n,"aria-label":h,"aria-labelledby":y,"aria-invalid":k?!!k:i,"aria-describedby":u,"aria-disabled":r,style:QM}),[v,C,s,Yt,A,O,xt,ar,o,ce,Ee,n,h,y,k,i,u,r,g]),co=S.useCallback((G={},dt=null)=>({...G,ref:dt,onMouseDown:kt(G.onMouseDown,uL),"data-disabled":oe(r),"data-checked":oe(ce),"data-invalid":oe(i)}),[ce,r,i]);return{state:{isInvalid:i,isFocused:ye,isChecked:ce,isActive:Le,isHovered:ae,isIndeterminate:m,isDisabled:r,isReadOnly:n,isRequired:o},getRootProps:Ft,getCheckboxProps:Xr,getIndicatorProps:lr,getInputProps:zn,getLabelProps:co,htmlProps:R}}function uL(e){e.preventDefault(),e.stopPropagation()}var[cL,Yx]=Kr({name:"ListStylesContext",errorMessage:`useListStyles returned is 'undefined'. Seems you forgot to wrap the components in "" `}),rc=se(function(t,r){const n=Qs("List",t),{children:o,styleType:i="none",stylePosition:s,spacing:a,...l}=Xt(t),u=Wx(o),d=a?{["& > *:not(style) ~ *:not(style)"]:{mt:a}}:{};return _.jsx(cL,{value:n,children:_.jsx(H.ul,{ref:r,listStyleType:i,listStylePosition:s,role:"list",__css:{...n.container,...d},...l,children:u})})});rc.displayName="List";var dL=se((e,t)=>{const{as:r,...n}=e;return _.jsx(rc,{ref:t,as:"ol",styleType:"decimal",marginStart:"1em",...n})});dL.displayName="OrderedList";var fL=se(function(t,r){const{as:n,...o}=t;return _.jsx(rc,{ref:r,as:"ul",styleType:"initial",marginStart:"1em",...o})});fL.displayName="UnorderedList";var Qx=se(function(t,r){const n=Yx();return _.jsx(H.li,{ref:r,...t,__css:n.item})});Qx.displayName="ListItem";var hL=se(function(t,r){const n=Yx();return _.jsx(uo,{ref:r,role:"presentation",...t,__css:n.icon})});hL.displayName="ListIcon";var Hp=se(function(t,r){const{templateAreas:n,gap:o,rowGap:i,columnGap:s,column:a,row:l,autoFlow:u,autoRows:c,templateRows:d,autoColumns:f,templateColumns:p,...m}=t,v={display:"grid",gridTemplateAreas:n,gridGap:o,gridRowGap:i,gridColumnGap:s,gridAutoColumns:f,gridColumn:a,gridRow:l,gridAutoFlow:u,gridAutoRows:c,gridTemplateRows:d,gridTemplateColumns:p};return _.jsx(H.div,{ref:r,__css:v,...m})});Hp.displayName="Grid";var Zx=Object.freeze(["base","sm","md","lg","xl","2xl"]);function nc(e,t){return Array.isArray(e)?e.map(r=>r===null?null:t(r)):vt(e)?Object.keys(e).reduce((r,n)=>(r[n]=t(e[n]),r),{}):e!=null?t(e):null}function pL(e,t=Zx){const r={};return e.forEach((n,o)=>{const i=t[o];n!=null&&(r[i]=n)}),r}var Jx=se(function(t,r){const{columns:n,spacingX:o,spacingY:i,spacing:s,minChildWidth:a,...l}=t,u=mi(),c=a?gL(a,u):yL(n);return _.jsx(Hp,{ref:r,gap:s,columnGap:o,rowGap:i,templateColumns:c,...l})});Jx.displayName="SimpleGrid";function mL(e){return typeof e=="number"?`${e}px`:e}function gL(e,t){return nc(e,r=>{const n=Bb("sizes",r,mL(r))(t);return r===null?null:`repeat(auto-fit, minmax(${n}, 1fr))`})}function yL(e){return nc(e,t=>t===null?null:`repeat(${t}, minmax(0, 1fr))`)}var Vs=se(function(t,r){const n=An("Text",t),{className:o,align:i,decoration:s,casing:a,...l}=Xt(t),u=hS({textAlign:t.align,textDecoration:t.decoration,textTransform:t.casing});return _.jsx(H.p,{ref:r,className:Be("chakra-text",t.className),...u,...l,__css:n})});Vs.displayName="Text";var e2=e=>_.jsx(H.div,{className:"chakra-stack__item",...e,__css:{display:"inline-block",flex:"0 0 auto",minWidth:0,...e.__css}});e2.displayName="StackItem";function vL(e){const{spacing:t,direction:r}=e,n={column:{my:t,mx:0,borderLeftWidth:0,borderBottomWidth:"1px"},"column-reverse":{my:t,mx:0,borderLeftWidth:0,borderBottomWidth:"1px"},row:{mx:t,my:0,borderLeftWidth:"1px",borderBottomWidth:0},"row-reverse":{mx:t,my:0,borderLeftWidth:"1px",borderBottomWidth:0}};return{"&":nc(r,o=>n[o])}}var t2=se((e,t)=>{const{isInline:r,direction:n,align:o,justify:i,spacing:s="0.5rem",wrap:a,children:l,divider:u,className:c,shouldWrapChildren:d,...f}=e,p=r?"row":n??"column",m=S.useMemo(()=>vL({spacing:s,direction:p}),[s,p]),v=!!u,C=!d&&!v,g=S.useMemo(()=>{const y=Wx(l);return C?y:y.map((k,P)=>{const R=typeof k.key<"u"?k.key:P,E=P+1===y.length,O=d?_.jsx(e2,{children:k},R):k;if(!v)return O;const j=S.cloneElement(u,{__css:m}),de=E?null:j;return _.jsxs(S.Fragment,{children:[O,de]},R)})},[u,m,v,C,d,l]),h=Be("chakra-stack",c);return _.jsx(H.div,{ref:t,display:"flex",alignItems:o,justifyContent:i,flexDirection:p,flexWrap:a,gap:v?void 0:s,className:h,...f,children:g})});t2.displayName="Stack";var gi=se((e,t)=>_.jsx(t2,{align:"center",...e,direction:"row",ref:t}));gi.displayName="HStack";function Ny(e){return nc(e,t=>t==="auto"?"auto":`span ${t}/span ${t}`)}var bl=se(function(t,r){const{area:n,colSpan:o,colStart:i,colEnd:s,rowEnd:a,rowSpan:l,rowStart:u,...c}=t,d=hS({gridArea:n,gridColumn:Ny(o),gridRow:Ny(l),gridColumnStart:i,gridColumnEnd:s,gridRowStart:u,gridRowEnd:a});return _.jsx(H.div,{ref:r,__css:d,...c})});bl.displayName="GridItem";var r2=se(function(t,r){const n=An("Heading",t),{className:o,...i}=Xt(t);return _.jsx(H.h2,{ref:r,className:Be("chakra-heading",t.className),...i,__css:n})});r2.displayName="Heading";var Wp=H("div");Wp.displayName="Box";var n2=se(function(t,r){const{size:n,centerContent:o=!0,...i}=t,s=o?{display:"flex",alignItems:"center",justifyContent:"center"}:{};return _.jsx(Wp,{ref:r,boxSize:n,__css:{...s,flexShrink:0,flexGrow:0},...i})});n2.displayName="Square";var bL=se(function(t,r){const{size:n,...o}=t;return _.jsx(n2,{size:n,ref:r,borderRadius:"9999px",...o})});bL.displayName="Circle";var o2=se(function(t,r){const n=An("Badge",t),{className:o,...i}=Xt(t);return _.jsx(H.span,{ref:r,className:Be("chakra-badge",t.className),...i,__css:{display:"inline-block",whiteSpace:"nowrap",verticalAlign:"middle",...n}})});o2.displayName="Badge";function i2(e,t={}){const{ssr:r=!0,fallback:n}=t,{getWindow:o}=KA(),i=Array.isArray(e)?e:[e];let s=Array.isArray(n)?n:[n];s=s.filter(u=>u!=null);const[a,l]=S.useState(()=>i.map((u,c)=>({media:u,matches:r?!!s[c]:o().matchMedia(u).matches})));return S.useEffect(()=>{const u=o();l(i.map(f=>({media:f,matches:u.matchMedia(f).matches})));const c=i.map(f=>u.matchMedia(f)),d=f=>{l(p=>p.slice().map(m=>m.media===f.media?{...m,matches:f.matches}:m))};return c.forEach(f=>{typeof f.addListener=="function"?f.addListener(d):f.addEventListener("change",d)}),()=>{c.forEach(f=>{typeof f.removeListener=="function"?f.removeListener(d):f.removeEventListener("change",d)})}},[o]),a.map(u=>u.matches)}function SL(e){const{breakpoint:t,hide:r,children:n,ssr:o}=e,[i]=i2(t,{ssr:o});return(r?!i:i)?n:null}var Vy=(e,t)=>{var r,n;return(n=(r=e==null?void 0:e.breakpoints)==null?void 0:r[t])!=null?n:t};function xL(e){const{breakpoint:t="",below:r,above:n}=e,o=mi(),i=Vy(o,r),s=Vy(o,n);let a=t;return i?a=`(max-width: ${i})`:s&&(a=`(min-width: ${s})`),a}function s2(e){const{children:t,ssr:r}=e,n=xL(e);return _.jsx(SL,{breakpoint:n,ssr:r,children:t})}s2.displayName="Show";function wL(e,t,r=Zx){let n=Object.keys(e).indexOf(t);if(n!==-1)return e[t];let o=r.indexOf(t);for(;o>=0;){const i=r[o];if(e.hasOwnProperty(i)){n=o;break}o-=1}if(n!==-1){const i=r[n];return e[i]}}function kL(e){var t,r;const n=vt(e)?e:{fallback:e??"base"},i=mi().__breakpoints.details.map(({minMaxQuery:u,breakpoint:c})=>({breakpoint:c,query:u.replace("@media screen and ","")})),s=i.map(u=>u.breakpoint===n.fallback),l=i2(i.map(u=>u.query),{fallback:s,ssr:n.ssr}).findIndex(u=>u==!0);return(r=(t=i[l])==null?void 0:t.breakpoint)!=null?r:n.fallback}function CL(e,t){var r;const n=vt(t)?t:{fallback:t??"base"},o=kL(n),i=mi();if(!o)return;const s=Array.from(((r=i.__breakpoints)==null?void 0:r.keys)||[]),a=Array.isArray(e)?Object.fromEntries(Object.entries(pL(e,s)).map(([l,u])=>[l,u])):e;return wL(a,o,s)}function _L(){const e=S.useRef(!0);return S.useEffect(()=>{e.current=!1},[]),e.current}function TL(e){const t=S.useRef();return S.useEffect(()=>{t.current=e},[e]),t.current}var PL=H("div",{baseStyle:{boxShadow:"none",backgroundClip:"padding-box",cursor:"default",color:"transparent",pointerEvents:"none",userSelect:"none","&::before, &::after, *":{visibility:"hidden"}}}),Jf=D("skeleton-start-color"),eh=D("skeleton-end-color"),EL=lp({from:{opacity:0},to:{opacity:1}}),$L=lp({from:{borderColor:Jf.reference,background:Jf.reference},to:{borderColor:eh.reference,background:eh.reference}}),Gp=se((e,t)=>{const r={...e,fadeDuration:typeof e.fadeDuration=="number"?e.fadeDuration:.4,speed:typeof e.speed=="number"?e.speed:.8},n=An("Skeleton",r),o=_L(),{startColor:i="",endColor:s="",isLoaded:a,fadeDuration:l,speed:u,className:c,fitContent:d,...f}=Xt(r),[p,m]=A4("colors",[i,s]),v=TL(a),C=Be("chakra-skeleton",c),g={...p&&{[Jf.variable]:p},...m&&{[eh.variable]:m}};if(a){const h=o||v?"none":`${EL} ${l}s`;return _.jsx(H.div,{ref:t,className:C,__css:{animation:h},...f})}return _.jsx(PL,{ref:t,className:C,...f,__css:{width:d?"fit-content":void 0,...n,...g,_dark:{...n._dark,...g},animation:`${u}s linear infinite alternate ${$L}`}})});Gp.displayName="Skeleton";function AL(e){return Array(e).fill(1).map((t,r)=>r+1)}var Uy=3,a2=e=>{const{noOfLines:t=Uy,spacing:r="0.5rem",skeletonHeight:n="0.5rem",className:o,startColor:i,endColor:s,isLoaded:a,fadeDuration:l,speed:u,variant:c,size:d,colorScheme:f,children:p,...m}=e,v=CL(typeof t=="number"?[t]:t)||Uy,C=AL(v),g=y=>v>1&&y===C.length?"80%":"100%",h=Be("chakra-skeleton__group",o);return _.jsx(H.div,{className:h,...m,children:C.map((y,k)=>{if(a&&k>0)return null;const P=a?null:{mb:y===C.length?"0":r,width:g(y),height:n};return _.jsx(Gp,{startColor:i,endColor:s,isLoaded:a,fadeDuration:l,speed:u,variant:c,size:d,colorScheme:f,...P,children:k===0?p:void 0},C.length.toString()+y)})})};a2.displayName="SkeletonText";var l2=se(function(t,r){const n=Qs("Switch",t),{spacing:o="0.5rem",children:i,...s}=Xt(t),{getIndicatorProps:a,getInputProps:l,getCheckboxProps:u,getRootProps:c,getLabelProps:d}=lL(s),f=S.useMemo(()=>({display:"inline-block",position:"relative",verticalAlign:"middle",lineHeight:0,...n.container}),[n.container]),p=S.useMemo(()=>({display:"inline-flex",flexShrink:0,justifyContent:"flex-start",boxSizing:"content-box",cursor:"pointer",...n.track}),[n.track]),m=S.useMemo(()=>({userSelect:"none",marginStart:o,...n.label}),[o,n.label]);return _.jsxs(H.label,{...c(),className:Be("chakra-switch",t.className),__css:f,children:[_.jsx("input",{className:"chakra-switch__input",...l({},r)}),_.jsx(H.span,{...u(),className:"chakra-switch__track",__css:p,children:_.jsx(H.span,{__css:n.thumb,className:"chakra-switch__thumb",...a()})}),i&&_.jsx(H.span,{className:"chakra-switch__label",...d(),__css:m,children:i})]})});l2.displayName="Switch";const RL="/GameHub/assets/logo-ff4914e6.webp",zL=()=>{const{colorMode:e,toggleColorMode:t}=Vu();return _.jsxs(gi,{children:[_.jsx(l2,{isChecked:e==="dark",colorScheme:"green",onChange:t}),_.jsx(Vs,{children:"Dark Mode"})]})};function ML(){return _.jsxs(gi,{justifyContent:"space-between",children:[_.jsx(tc,{src:RL,boxSize:"60px"}),_.jsx(zL,{})]})}function u2(e,t){return function(){return e.apply(t,arguments)}}const{toString:LL}=Object.prototype,{getPrototypeOf:Kp}=Object,oc=(e=>t=>{const r=LL.call(t);return e[r]||(e[r]=r.slice(8,-1).toLowerCase())})(Object.create(null)),wr=e=>(e=e.toLowerCase(),t=>oc(t)===e),ic=e=>t=>typeof t===e,{isArray:yi}=Array,Us=ic("undefined");function FL(e){return e!==null&&!Us(e)&&e.constructor!==null&&!Us(e.constructor)&&Gt(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const c2=wr("ArrayBuffer");function OL(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&c2(e.buffer),t}const jL=ic("string"),Gt=ic("function"),d2=ic("number"),sc=e=>e!==null&&typeof e=="object",DL=e=>e===!0||e===!1,Sl=e=>{if(oc(e)!=="object")return!1;const t=Kp(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},BL=wr("Date"),IL=wr("File"),NL=wr("Blob"),VL=wr("FileList"),UL=e=>sc(e)&&Gt(e.pipe),HL=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||Gt(e.append)&&((t=oc(e))==="formdata"||t==="object"&&Gt(e.toString)&&e.toString()==="[object FormData]"))},WL=wr("URLSearchParams"),GL=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function oa(e,t,{allOwnKeys:r=!1}={}){if(e===null||typeof e>"u")return;let n,o;if(typeof e!="object"&&(e=[e]),yi(e))for(n=0,o=e.length;n0;)if(o=r[n],t===o.toLowerCase())return o;return null}const h2=(()=>typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global)(),p2=e=>!Us(e)&&e!==h2;function th(){const{caseless:e}=p2(this)&&this||{},t={},r=(n,o)=>{const i=e&&f2(t,o)||o;Sl(t[i])&&Sl(n)?t[i]=th(t[i],n):Sl(n)?t[i]=th({},n):yi(n)?t[i]=n.slice():t[i]=n};for(let n=0,o=arguments.length;n(oa(t,(o,i)=>{r&&Gt(o)?e[i]=u2(o,r):e[i]=o},{allOwnKeys:n}),e),qL=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),XL=(e,t,r,n)=>{e.prototype=Object.create(t.prototype,n),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),r&&Object.assign(e.prototype,r)},YL=(e,t,r,n)=>{let o,i,s;const a={};if(t=t||{},e==null)return t;do{for(o=Object.getOwnPropertyNames(e),i=o.length;i-- >0;)s=o[i],(!n||n(s,e,t))&&!a[s]&&(t[s]=e[s],a[s]=!0);e=r!==!1&&Kp(e)}while(e&&(!r||r(e,t))&&e!==Object.prototype);return t},QL=(e,t,r)=>{e=String(e),(r===void 0||r>e.length)&&(r=e.length),r-=t.length;const n=e.indexOf(t,r);return n!==-1&&n===r},ZL=e=>{if(!e)return null;if(yi(e))return e;let t=e.length;if(!d2(t))return null;const r=new Array(t);for(;t-- >0;)r[t]=e[t];return r},JL=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&Kp(Uint8Array)),e7=(e,t)=>{const n=(e&&e[Symbol.iterator]).call(e);let o;for(;(o=n.next())&&!o.done;){const i=o.value;t.call(e,i[0],i[1])}},t7=(e,t)=>{let r;const n=[];for(;(r=e.exec(t))!==null;)n.push(r);return n},r7=wr("HTMLFormElement"),n7=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(r,n,o){return n.toUpperCase()+o}),Hy=(({hasOwnProperty:e})=>(t,r)=>e.call(t,r))(Object.prototype),o7=wr("RegExp"),m2=(e,t)=>{const r=Object.getOwnPropertyDescriptors(e),n={};oa(r,(o,i)=>{let s;(s=t(o,i,e))!==!1&&(n[i]=s||o)}),Object.defineProperties(e,n)},i7=e=>{m2(e,(t,r)=>{if(Gt(e)&&["arguments","caller","callee"].indexOf(r)!==-1)return!1;const n=e[r];if(Gt(n)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+r+"'")})}})},s7=(e,t)=>{const r={},n=o=>{o.forEach(i=>{r[i]=!0})};return yi(e)?n(e):n(String(e).split(t)),r},a7=()=>{},l7=(e,t)=>(e=+e,Number.isFinite(e)?e:t),Cd="abcdefghijklmnopqrstuvwxyz",Wy="0123456789",g2={DIGIT:Wy,ALPHA:Cd,ALPHA_DIGIT:Cd+Cd.toUpperCase()+Wy},u7=(e=16,t=g2.ALPHA_DIGIT)=>{let r="";const{length:n}=t;for(;e--;)r+=t[Math.random()*n|0];return r};function c7(e){return!!(e&&Gt(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const d7=e=>{const t=new Array(10),r=(n,o)=>{if(sc(n)){if(t.indexOf(n)>=0)return;if(!("toJSON"in n)){t[o]=n;const i=yi(n)?[]:{};return oa(n,(s,a)=>{const l=r(s,o+1);!Us(l)&&(i[a]=l)}),t[o]=void 0,i}}return n};return r(e,0)},f7=wr("AsyncFunction"),h7=e=>e&&(sc(e)||Gt(e))&&Gt(e.then)&&Gt(e.catch),$={isArray:yi,isArrayBuffer:c2,isBuffer:FL,isFormData:HL,isArrayBufferView:OL,isString:jL,isNumber:d2,isBoolean:DL,isObject:sc,isPlainObject:Sl,isUndefined:Us,isDate:BL,isFile:IL,isBlob:NL,isRegExp:o7,isFunction:Gt,isStream:UL,isURLSearchParams:WL,isTypedArray:JL,isFileList:VL,forEach:oa,merge:th,extend:KL,trim:GL,stripBOM:qL,inherits:XL,toFlatObject:YL,kindOf:oc,kindOfTest:wr,endsWith:QL,toArray:ZL,forEachEntry:e7,matchAll:t7,isHTMLForm:r7,hasOwnProperty:Hy,hasOwnProp:Hy,reduceDescriptors:m2,freezeMethods:i7,toObjectSet:s7,toCamelCase:n7,noop:a7,toFiniteNumber:l7,findKey:f2,global:h2,isContextDefined:p2,ALPHABET:g2,generateString:u7,isSpecCompliantForm:c7,toJSONObject:d7,isAsyncFn:f7,isThenable:h7};function Y(e,t,r,n,o){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),r&&(this.config=r),n&&(this.request=n),o&&(this.response=o)}$.inherits(Y,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:$.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const y2=Y.prototype,v2={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{v2[e]={value:e}});Object.defineProperties(Y,v2);Object.defineProperty(y2,"isAxiosError",{value:!0});Y.from=(e,t,r,n,o,i)=>{const s=Object.create(y2);return $.toFlatObject(e,s,function(l){return l!==Error.prototype},a=>a!=="isAxiosError"),Y.call(s,e.message,t,r,n,o),s.cause=e,s.name=e.name,i&&Object.assign(s,i),s};const p7=null;function rh(e){return $.isPlainObject(e)||$.isArray(e)}function b2(e){return $.endsWith(e,"[]")?e.slice(0,-2):e}function Gy(e,t,r){return e?e.concat(t).map(function(o,i){return o=b2(o),!r&&i?"["+o+"]":o}).join(r?".":""):t}function m7(e){return $.isArray(e)&&!e.some(rh)}const g7=$.toFlatObject($,{},null,function(t){return/^is[A-Z]/.test(t)});function ac(e,t,r){if(!$.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,r=$.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,function(v,C){return!$.isUndefined(C[v])});const n=r.metaTokens,o=r.visitor||c,i=r.dots,s=r.indexes,l=(r.Blob||typeof Blob<"u"&&Blob)&&$.isSpecCompliantForm(t);if(!$.isFunction(o))throw new TypeError("visitor must be a function");function u(m){if(m===null)return"";if($.isDate(m))return m.toISOString();if(!l&&$.isBlob(m))throw new Y("Blob is not supported. Use a Buffer instead.");return $.isArrayBuffer(m)||$.isTypedArray(m)?l&&typeof Blob=="function"?new Blob([m]):Buffer.from(m):m}function c(m,v,C){let g=m;if(m&&!C&&typeof m=="object"){if($.endsWith(v,"{}"))v=n?v:v.slice(0,-2),m=JSON.stringify(m);else if($.isArray(m)&&m7(m)||($.isFileList(m)||$.endsWith(v,"[]"))&&(g=$.toArray(m)))return v=b2(v),g.forEach(function(y,k){!($.isUndefined(y)||y===null)&&t.append(s===!0?Gy([v],k,i):s===null?v:v+"[]",u(y))}),!1}return rh(m)?!0:(t.append(Gy(C,v,i),u(m)),!1)}const d=[],f=Object.assign(g7,{defaultVisitor:c,convertValue:u,isVisitable:rh});function p(m,v){if(!$.isUndefined(m)){if(d.indexOf(m)!==-1)throw Error("Circular reference detected in "+v.join("."));d.push(m),$.forEach(m,function(g,h){(!($.isUndefined(g)||g===null)&&o.call(t,g,$.isString(h)?h.trim():h,v,f))===!0&&p(g,v?v.concat(h):[h])}),d.pop()}}if(!$.isObject(e))throw new TypeError("data must be an object");return p(e),t}function Ky(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(n){return t[n]})}function qp(e,t){this._pairs=[],e&&ac(e,this,t)}const S2=qp.prototype;S2.append=function(t,r){this._pairs.push([t,r])};S2.toString=function(t){const r=t?function(n){return t.call(this,n,Ky)}:Ky;return this._pairs.map(function(o){return r(o[0])+"="+r(o[1])},"").join("&")};function y7(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function x2(e,t,r){if(!t)return e;const n=r&&r.encode||y7,o=r&&r.serialize;let i;if(o?i=o(t,r):i=$.isURLSearchParams(t)?t.toString():new qp(t,r).toString(n),i){const s=e.indexOf("#");s!==-1&&(e=e.slice(0,s)),e+=(e.indexOf("?")===-1?"?":"&")+i}return e}class v7{constructor(){this.handlers=[]}use(t,r,n){return this.handlers.push({fulfilled:t,rejected:r,synchronous:n?n.synchronous:!1,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){$.forEach(this.handlers,function(n){n!==null&&t(n)})}}const qy=v7,w2={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},b7=typeof URLSearchParams<"u"?URLSearchParams:qp,S7=typeof FormData<"u"?FormData:null,x7=typeof Blob<"u"?Blob:null,w7=(()=>{let e;return typeof navigator<"u"&&((e=navigator.product)==="ReactNative"||e==="NativeScript"||e==="NS")?!1:typeof window<"u"&&typeof document<"u"})(),k7=(()=>typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function")(),nr={isBrowser:!0,classes:{URLSearchParams:b7,FormData:S7,Blob:x7},isStandardBrowserEnv:w7,isStandardBrowserWebWorkerEnv:k7,protocols:["http","https","file","blob","url","data"]};function C7(e,t){return ac(e,new nr.classes.URLSearchParams,Object.assign({visitor:function(r,n,o,i){return nr.isNode&&$.isBuffer(r)?(this.append(n,r.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)}},t))}function _7(e){return $.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function T7(e){const t={},r=Object.keys(e);let n;const o=r.length;let i;for(n=0;n=r.length;return s=!s&&$.isArray(o)?o.length:s,l?($.hasOwnProp(o,s)?o[s]=[o[s],n]:o[s]=n,!a):((!o[s]||!$.isObject(o[s]))&&(o[s]=[]),t(r,n,o[s],i)&&$.isArray(o[s])&&(o[s]=T7(o[s])),!a)}if($.isFormData(e)&&$.isFunction(e.entries)){const r={};return $.forEachEntry(e,(n,o)=>{t(_7(n),o,r,0)}),r}return null}function P7(e,t,r){if($.isString(e))try{return(t||JSON.parse)(e),$.trim(e)}catch(n){if(n.name!=="SyntaxError")throw n}return(r||JSON.stringify)(e)}const Xp={transitional:w2,adapter:nr.isNode?"http":"xhr",transformRequest:[function(t,r){const n=r.getContentType()||"",o=n.indexOf("application/json")>-1,i=$.isObject(t);if(i&&$.isHTMLForm(t)&&(t=new FormData(t)),$.isFormData(t))return o&&o?JSON.stringify(k2(t)):t;if($.isArrayBuffer(t)||$.isBuffer(t)||$.isStream(t)||$.isFile(t)||$.isBlob(t))return t;if($.isArrayBufferView(t))return t.buffer;if($.isURLSearchParams(t))return r.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let a;if(i){if(n.indexOf("application/x-www-form-urlencoded")>-1)return C7(t,this.formSerializer).toString();if((a=$.isFileList(t))||n.indexOf("multipart/form-data")>-1){const l=this.env&&this.env.FormData;return ac(a?{"files[]":t}:t,l&&new l,this.formSerializer)}}return i||o?(r.setContentType("application/json",!1),P7(t)):t}],transformResponse:[function(t){const r=this.transitional||Xp.transitional,n=r&&r.forcedJSONParsing,o=this.responseType==="json";if(t&&$.isString(t)&&(n&&!this.responseType||o)){const s=!(r&&r.silentJSONParsing)&&o;try{return JSON.parse(t)}catch(a){if(s)throw a.name==="SyntaxError"?Y.from(a,Y.ERR_BAD_RESPONSE,this,null,this.response):a}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:nr.classes.FormData,Blob:nr.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};$.forEach(["delete","get","head","post","put","patch"],e=>{Xp.headers[e]={}});const Yp=Xp,E7=$.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),$7=e=>{const t={};let r,n,o;return e&&e.split(` +`).forEach(function(s){o=s.indexOf(":"),r=s.substring(0,o).trim().toLowerCase(),n=s.substring(o+1).trim(),!(!r||t[r]&&E7[r])&&(r==="set-cookie"?t[r]?t[r].push(n):t[r]=[n]:t[r]=t[r]?t[r]+", "+n:n)}),t},Xy=Symbol("internals");function Fi(e){return e&&String(e).trim().toLowerCase()}function xl(e){return e===!1||e==null?e:$.isArray(e)?e.map(xl):String(e)}function A7(e){const t=Object.create(null),r=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let n;for(;n=r.exec(e);)t[n[1]]=n[2];return t}const R7=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function _d(e,t,r,n,o){if($.isFunction(n))return n.call(this,t,r);if(o&&(t=r),!!$.isString(t)){if($.isString(n))return t.indexOf(n)!==-1;if($.isRegExp(n))return n.test(t)}}function z7(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,r,n)=>r.toUpperCase()+n)}function M7(e,t){const r=$.toCamelCase(" "+t);["get","set","has"].forEach(n=>{Object.defineProperty(e,n+r,{value:function(o,i,s){return this[n].call(this,t,o,i,s)},configurable:!0})})}let lc=class{constructor(t){t&&this.set(t)}set(t,r,n){const o=this;function i(a,l,u){const c=Fi(l);if(!c)throw new Error("header name must be a non-empty string");const d=$.findKey(o,c);(!d||o[d]===void 0||u===!0||u===void 0&&o[d]!==!1)&&(o[d||l]=xl(a))}const s=(a,l)=>$.forEach(a,(u,c)=>i(u,c,l));return $.isPlainObject(t)||t instanceof this.constructor?s(t,r):$.isString(t)&&(t=t.trim())&&!R7(t)?s($7(t),r):t!=null&&i(r,t,n),this}get(t,r){if(t=Fi(t),t){const n=$.findKey(this,t);if(n){const o=this[n];if(!r)return o;if(r===!0)return A7(o);if($.isFunction(r))return r.call(this,o,n);if($.isRegExp(r))return r.exec(o);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,r){if(t=Fi(t),t){const n=$.findKey(this,t);return!!(n&&this[n]!==void 0&&(!r||_d(this,this[n],n,r)))}return!1}delete(t,r){const n=this;let o=!1;function i(s){if(s=Fi(s),s){const a=$.findKey(n,s);a&&(!r||_d(n,n[a],a,r))&&(delete n[a],o=!0)}}return $.isArray(t)?t.forEach(i):i(t),o}clear(t){const r=Object.keys(this);let n=r.length,o=!1;for(;n--;){const i=r[n];(!t||_d(this,this[i],i,t,!0))&&(delete this[i],o=!0)}return o}normalize(t){const r=this,n={};return $.forEach(this,(o,i)=>{const s=$.findKey(n,i);if(s){r[s]=xl(o),delete r[i];return}const a=t?z7(i):String(i).trim();a!==i&&delete r[i],r[a]=xl(o),n[a]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const r=Object.create(null);return $.forEach(this,(n,o)=>{n!=null&&n!==!1&&(r[o]=t&&$.isArray(n)?n.join(", "):n)}),r}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,r])=>t+": "+r).join(` +`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...r){const n=new this(t);return r.forEach(o=>n.set(o)),n}static accessor(t){const n=(this[Xy]=this[Xy]={accessors:{}}).accessors,o=this.prototype;function i(s){const a=Fi(s);n[a]||(M7(o,s),n[a]=!0)}return $.isArray(t)?t.forEach(i):i(t),this}};lc.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);$.reduceDescriptors(lc.prototype,({value:e},t)=>{let r=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(n){this[r]=n}}});$.freezeMethods(lc);const Br=lc;function Td(e,t){const r=this||Yp,n=t||r,o=Br.from(n.headers);let i=n.data;return $.forEach(e,function(a){i=a.call(r,i,o.normalize(),t?t.status:void 0)}),o.normalize(),i}function C2(e){return!!(e&&e.__CANCEL__)}function ia(e,t,r){Y.call(this,e??"canceled",Y.ERR_CANCELED,t,r),this.name="CanceledError"}$.inherits(ia,Y,{__CANCEL__:!0});function L7(e,t,r){const n=r.config.validateStatus;!r.status||!n||n(r.status)?e(r):t(new Y("Request failed with status code "+r.status,[Y.ERR_BAD_REQUEST,Y.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r))}const F7=nr.isStandardBrowserEnv?function(){return{write:function(r,n,o,i,s,a){const l=[];l.push(r+"="+encodeURIComponent(n)),$.isNumber(o)&&l.push("expires="+new Date(o).toGMTString()),$.isString(i)&&l.push("path="+i),$.isString(s)&&l.push("domain="+s),a===!0&&l.push("secure"),document.cookie=l.join("; ")},read:function(r){const n=document.cookie.match(new RegExp("(^|;\\s*)("+r+")=([^;]*)"));return n?decodeURIComponent(n[3]):null},remove:function(r){this.write(r,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}();function O7(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function j7(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}function _2(e,t){return e&&!O7(t)?j7(e,t):t}const D7=nr.isStandardBrowserEnv?function(){const t=/(msie|trident)/i.test(navigator.userAgent),r=document.createElement("a");let n;function o(i){let s=i;return t&&(r.setAttribute("href",s),s=r.href),r.setAttribute("href",s),{href:r.href,protocol:r.protocol?r.protocol.replace(/:$/,""):"",host:r.host,search:r.search?r.search.replace(/^\?/,""):"",hash:r.hash?r.hash.replace(/^#/,""):"",hostname:r.hostname,port:r.port,pathname:r.pathname.charAt(0)==="/"?r.pathname:"/"+r.pathname}}return n=o(window.location.href),function(s){const a=$.isString(s)?o(s):s;return a.protocol===n.protocol&&a.host===n.host}}():function(){return function(){return!0}}();function B7(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function I7(e,t){e=e||10;const r=new Array(e),n=new Array(e);let o=0,i=0,s;return t=t!==void 0?t:1e3,function(l){const u=Date.now(),c=n[i];s||(s=u),r[o]=l,n[o]=u;let d=i,f=0;for(;d!==o;)f+=r[d++],d=d%e;if(o=(o+1)%e,o===i&&(i=(i+1)%e),u-s{const i=o.loaded,s=o.lengthComputable?o.total:void 0,a=i-r,l=n(a),u=i<=s;r=i;const c={loaded:i,total:s,progress:s?i/s:void 0,bytes:a,rate:l||void 0,estimated:l&&s&&u?(s-i)/l:void 0,event:o};c[t?"download":"upload"]=!0,e(c)}}const N7=typeof XMLHttpRequest<"u",V7=N7&&function(e){return new Promise(function(r,n){let o=e.data;const i=Br.from(e.headers).normalize(),s=e.responseType;let a;function l(){e.cancelToken&&e.cancelToken.unsubscribe(a),e.signal&&e.signal.removeEventListener("abort",a)}$.isFormData(o)&&(nr.isStandardBrowserEnv||nr.isStandardBrowserWebWorkerEnv?i.setContentType(!1):i.setContentType("multipart/form-data;",!1));let u=new XMLHttpRequest;if(e.auth){const p=e.auth.username||"",m=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";i.set("Authorization","Basic "+btoa(p+":"+m))}const c=_2(e.baseURL,e.url);u.open(e.method.toUpperCase(),x2(c,e.params,e.paramsSerializer),!0),u.timeout=e.timeout;function d(){if(!u)return;const p=Br.from("getAllResponseHeaders"in u&&u.getAllResponseHeaders()),v={data:!s||s==="text"||s==="json"?u.responseText:u.response,status:u.status,statusText:u.statusText,headers:p,config:e,request:u};L7(function(g){r(g),l()},function(g){n(g),l()},v),u=null}if("onloadend"in u?u.onloadend=d:u.onreadystatechange=function(){!u||u.readyState!==4||u.status===0&&!(u.responseURL&&u.responseURL.indexOf("file:")===0)||setTimeout(d)},u.onabort=function(){u&&(n(new Y("Request aborted",Y.ECONNABORTED,e,u)),u=null)},u.onerror=function(){n(new Y("Network Error",Y.ERR_NETWORK,e,u)),u=null},u.ontimeout=function(){let m=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded";const v=e.transitional||w2;e.timeoutErrorMessage&&(m=e.timeoutErrorMessage),n(new Y(m,v.clarifyTimeoutError?Y.ETIMEDOUT:Y.ECONNABORTED,e,u)),u=null},nr.isStandardBrowserEnv){const p=(e.withCredentials||D7(c))&&e.xsrfCookieName&&F7.read(e.xsrfCookieName);p&&i.set(e.xsrfHeaderName,p)}o===void 0&&i.setContentType(null),"setRequestHeader"in u&&$.forEach(i.toJSON(),function(m,v){u.setRequestHeader(v,m)}),$.isUndefined(e.withCredentials)||(u.withCredentials=!!e.withCredentials),s&&s!=="json"&&(u.responseType=e.responseType),typeof e.onDownloadProgress=="function"&&u.addEventListener("progress",Yy(e.onDownloadProgress,!0)),typeof e.onUploadProgress=="function"&&u.upload&&u.upload.addEventListener("progress",Yy(e.onUploadProgress)),(e.cancelToken||e.signal)&&(a=p=>{u&&(n(!p||p.type?new ia(null,e,u):p),u.abort(),u=null)},e.cancelToken&&e.cancelToken.subscribe(a),e.signal&&(e.signal.aborted?a():e.signal.addEventListener("abort",a)));const f=B7(c);if(f&&nr.protocols.indexOf(f)===-1){n(new Y("Unsupported protocol "+f+":",Y.ERR_BAD_REQUEST,e));return}u.send(o||null)})},wl={http:p7,xhr:V7};$.forEach(wl,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const T2={getAdapter:e=>{e=$.isArray(e)?e:[e];const{length:t}=e;let r,n;for(let o=0;oe instanceof Br?e.toJSON():e;function ci(e,t){t=t||{};const r={};function n(u,c,d){return $.isPlainObject(u)&&$.isPlainObject(c)?$.merge.call({caseless:d},u,c):$.isPlainObject(c)?$.merge({},c):$.isArray(c)?c.slice():c}function o(u,c,d){if($.isUndefined(c)){if(!$.isUndefined(u))return n(void 0,u,d)}else return n(u,c,d)}function i(u,c){if(!$.isUndefined(c))return n(void 0,c)}function s(u,c){if($.isUndefined(c)){if(!$.isUndefined(u))return n(void 0,u)}else return n(void 0,c)}function a(u,c,d){if(d in t)return n(u,c);if(d in e)return n(void 0,u)}const l={url:i,method:i,data:i,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,beforeRedirect:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,responseEncoding:s,validateStatus:a,headers:(u,c)=>o(Zy(u),Zy(c),!0)};return $.forEach(Object.keys(Object.assign({},e,t)),function(c){const d=l[c]||o,f=d(e[c],t[c],c);$.isUndefined(f)&&d!==a||(r[c]=f)}),r}const P2="1.5.0",Qp={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{Qp[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}});const Jy={};Qp.transitional=function(t,r,n){function o(i,s){return"[Axios v"+P2+"] Transitional option '"+i+"'"+s+(n?". "+n:"")}return(i,s,a)=>{if(t===!1)throw new Y(o(s," has been removed"+(r?" in "+r:"")),Y.ERR_DEPRECATED);return r&&!Jy[s]&&(Jy[s]=!0,console.warn(o(s," has been deprecated since v"+r+" and will be removed in the near future"))),t?t(i,s,a):!0}};function U7(e,t,r){if(typeof e!="object")throw new Y("options must be an object",Y.ERR_BAD_OPTION_VALUE);const n=Object.keys(e);let o=n.length;for(;o-- >0;){const i=n[o],s=t[i];if(s){const a=e[i],l=a===void 0||s(a,i,e);if(l!==!0)throw new Y("option "+i+" must be "+l,Y.ERR_BAD_OPTION_VALUE);continue}if(r!==!0)throw new Y("Unknown option "+i,Y.ERR_BAD_OPTION)}}const nh={assertOptions:U7,validators:Qp},en=nh.validators;let cu=class{constructor(t){this.defaults=t,this.interceptors={request:new qy,response:new qy}}request(t,r){typeof t=="string"?(r=r||{},r.url=t):r=t||{},r=ci(this.defaults,r);const{transitional:n,paramsSerializer:o,headers:i}=r;n!==void 0&&nh.assertOptions(n,{silentJSONParsing:en.transitional(en.boolean),forcedJSONParsing:en.transitional(en.boolean),clarifyTimeoutError:en.transitional(en.boolean)},!1),o!=null&&($.isFunction(o)?r.paramsSerializer={serialize:o}:nh.assertOptions(o,{encode:en.function,serialize:en.function},!0)),r.method=(r.method||this.defaults.method||"get").toLowerCase();let s=i&&$.merge(i.common,i[r.method]);i&&$.forEach(["delete","get","head","post","put","patch","common"],m=>{delete i[m]}),r.headers=Br.concat(s,i);const a=[];let l=!0;this.interceptors.request.forEach(function(v){typeof v.runWhen=="function"&&v.runWhen(r)===!1||(l=l&&v.synchronous,a.unshift(v.fulfilled,v.rejected))});const u=[];this.interceptors.response.forEach(function(v){u.push(v.fulfilled,v.rejected)});let c,d=0,f;if(!l){const m=[Qy.bind(this),void 0];for(m.unshift.apply(m,a),m.push.apply(m,u),f=m.length,c=Promise.resolve(r);d{if(!n._listeners)return;let i=n._listeners.length;for(;i-- >0;)n._listeners[i](o);n._listeners=null}),this.promise.then=o=>{let i;const s=new Promise(a=>{n.subscribe(a),i=a}).then(o);return s.cancel=function(){n.unsubscribe(i)},s},t(function(i,s,a){n.reason||(n.reason=new ia(i,s,a),r(n.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const r=this._listeners.indexOf(t);r!==-1&&this._listeners.splice(r,1)}static source(){let t;return{token:new E2(function(o){t=o}),cancel:t}}};const W7=H7;function G7(e){return function(r){return e.apply(null,r)}}function K7(e){return $.isObject(e)&&e.isAxiosError===!0}const oh={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(oh).forEach(([e,t])=>{oh[t]=e});const q7=oh;function $2(e){const t=new kl(e),r=u2(kl.prototype.request,t);return $.extend(r,kl.prototype,t,{allOwnKeys:!0}),$.extend(r,t,null,{allOwnKeys:!0}),r.create=function(o){return $2(ci(e,o))},r}const De=$2(Yp);De.Axios=kl;De.CanceledError=ia;De.CancelToken=W7;De.isCancel=C2;De.VERSION=P2;De.toFormData=ac;De.AxiosError=Y;De.Cancel=De.CanceledError;De.all=function(t){return Promise.all(t)};De.spread=G7;De.isAxiosError=K7;De.mergeConfig=ci;De.AxiosHeaders=Br;De.formToJSON=e=>k2($.isHTMLForm(e)?new FormData(e):e);De.getAdapter=T2.getAdapter;De.HttpStatusCode=q7;De.default=De;const A2=De,{Axios:kF,AxiosError:CF,CanceledError:X7,isCancel:_F,CancelToken:TF,VERSION:PF,all:EF,Cancel:$F,isAxiosError:AF,spread:RF,toFormData:zF,AxiosHeaders:MF,HttpStatusCode:LF,formToJSON:FF,getAdapter:OF,mergeConfig:jF}=A2,Y7=A2.create({baseURL:"https://api.rawg.io/api",params:{key:"48105d50b8744f30a984fcfaeee838b4"}}),R2=(e,t,r)=>{const[n,o]=S.useState([]),[i,s]=S.useState(""),[a,l]=S.useState(!1);return S.useEffect(()=>{const u=new AbortController;return o([]),l(!0),Y7.get(e,{signal:u.signal,...t}).then(c=>{o(c.data.results),l(!1)}).catch(c=>{c instanceof X7||(s(c.message),l(!1))}),()=>{u.abort()}},r?[...r]:[]),{data:n,error:i,isLoading:a}},Q7=e=>{const{data:t,isLoading:r,error:n}=R2("/games",{params:{genres:e==null?void 0:e.id}},[e==null?void 0:e.id]);return{games:t,error:n,isLoading:r}};var z2={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},ev=Tt.createContext&&Tt.createContext(z2),wn=globalThis&&globalThis.__assign||function(){return wn=Object.assign||function(e){for(var t,r=1,n=arguments.length;r{const t={pc:oF,playstation:nF,xbox:iF,nintendo:aF,mac:tF,linux:rF,android:eF,ios:sF,web:lF};return _.jsx(gi,{marginY:1,children:e.map(r=>_.jsx(uo,{as:t[r.slug],color:"gray.500"},r.id))})},cF=({score:e})=>{const t=e>75?"green":e>60?"yellow":"";return _.jsx(o2,{fontSize:"14px",paddingX:"2",borderRadius:"4px",colorScheme:t,children:e})},L2=e=>{const t="media/",r=e.indexOf(t)+t.length;return e.slice(0,r)+"crop/600/400/"+e.slice(r)},dF=({game:e})=>_.jsxs(qx,{children:[_.jsx(tc,{src:L2(e.background_image)}),_.jsxs(Kx,{children:[_.jsx(r2,{fontSize:"2xl",children:e.name}),_.jsxs(gi,{justifyContent:"space-between",children:[_.jsx(uF,{platforms:e.parent_platforms.map(t=>t.platform)}),_.jsx(cF,{score:e.metacritic})]})]})]}),fF=()=>_.jsxs(qx,{children:[_.jsx(Gp,{height:"200px"}),_.jsx(Kx,{children:_.jsx(a2,{})})]}),tv=({children:e})=>_.jsx(Wp,{borderRadius:10,overflow:"hidden",children:e}),hF=({selectedGenre:e})=>{const{games:t,error:r,isLoading:n}=Q7(e);return _.jsxs(_.Fragment,{children:[r&&_.jsx(Vs,{children:r}),_.jsxs(Jx,{columns:{sm:1,md:2,lg:3,xl:5},spacing:3,padding:"10px",children:[n&&[0,1,2,3,4,5].map(o=>_.jsx(tv,{children:_.jsx(fF,{})},o)),t.map(o=>_.jsx(tv,{children:_.jsx(dF,{game:o})},o.id))]})]})},pF=()=>{const{data:e,isLoading:t,error:r}=R2("/genres");return{genres:e,error:r,isLoading:t}},mF=({onSelectGenre:e})=>{const{genres:t,isLoading:r,error:n}=pF();return r?_.jsx(ec,{}):_.jsxs(_.Fragment,{children:[n&&_.jsx(Vs,{children:n}),_.jsx(rc,{children:t.map(o=>_.jsx(Qx,{paddingY:"5px",children:_.jsxs(gi,{children:[_.jsx(tc,{src:L2(o.image_background),boxSize:"32px",borderRadius:"8px"}),_.jsx(Gx,{onClick:()=>e(o),fontSize:"lg",variant:"link",children:_.jsx(Vs,{overflow:"hidden",children:o.name})})]})},o.id))})]})};function gF(){const[e,t]=S.useState(null);return _.jsxs(Hp,{templateAreas:{base:'"nav" "main"',lg:'"nav nav" "aside main"'},templateColumns:{base:"1fr",lg:"200px 1fr"},children:[_.jsx(bl,{area:"nav",children:_.jsx(ML,{})}),_.jsx(s2,{above:"lg",children:_.jsx(bl,{area:"aside",paddingX:5,children:_.jsx(mF,{onSelectGenre:r=>t(r)})})}),_.jsx(bl,{area:"main",children:_.jsx(hF,{selectedGenre:e})})]})}const yF={initialColorMode:"dark",useSystemColorMode:!1},rv=yA({config:yF});Ed.createRoot(document.getElementById("root")).render(_.jsx(Tt.StrictMode,{children:_.jsxs(LM,{theme:rv,children:[_.jsx(T4,{initialColorMode:rv.config.initialColorMode}),_.jsx(gF,{})]})})); diff --git a/index.html b/index.html index e5f7216..471d327 100644 --- a/index.html +++ b/index.html @@ -5,7 +5,7 @@ GameHub - +