diff --git a/assets/index-ac5b03ae.js b/assets/index-ac5b03ae.js new file mode 100644 index 0000000..669f9d2 --- /dev/null +++ b/assets/index-ac5b03ae.js @@ -0,0 +1,352 @@ +function TC(e,t){for(var n=0;nr[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"]'))r(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"&&r(s)}).observe(document,{childList:!0,subtree:!0});function n(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 r(o){if(o.ep)return;o.ep=!0;const i=n(o);fetch(o.href,i)}})();var qa=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function th(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var P1={exports:{}},qu={},T1={exports:{}},re={};/** + * @license React + * react.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var wa=Symbol.for("react.element"),AC=Symbol.for("react.portal"),RC=Symbol.for("react.fragment"),$C=Symbol.for("react.strict_mode"),MC=Symbol.for("react.profiler"),zC=Symbol.for("react.provider"),OC=Symbol.for("react.context"),LC=Symbol.for("react.forward_ref"),IC=Symbol.for("react.suspense"),DC=Symbol.for("react.memo"),jC=Symbol.for("react.lazy"),_0=Symbol.iterator;function FC(e){return e===null||typeof e!="object"?null:(e=_0&&e[_0]||e["@@iterator"],typeof e=="function"?e:null)}var A1={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},R1=Object.assign,$1={};function Bi(e,t,n){this.props=e,this.context=t,this.refs=$1,this.updater=n||A1}Bi.prototype.isReactComponent={};Bi.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};Bi.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function M1(){}M1.prototype=Bi.prototype;function nh(e,t,n){this.props=e,this.context=t,this.refs=$1,this.updater=n||A1}var rh=nh.prototype=new M1;rh.constructor=nh;R1(rh,Bi.prototype);rh.isPureReactComponent=!0;var P0=Array.isArray,z1=Object.prototype.hasOwnProperty,oh={current:null},O1={key:!0,ref:!0,__self:!0,__source:!0};function L1(e,t,n){var r,o={},i=null,s=null;if(t!=null)for(r in t.ref!==void 0&&(s=t.ref),t.key!==void 0&&(i=""+t.key),t)z1.call(t,r)&&!O1.hasOwnProperty(r)&&(o[r]=t[r]);var a=arguments.length-2;if(a===1)o.children=n;else if(1>>1,te=L[V];if(0>>1;Vo(ke,W))heo(We,ke)?(L[V]=We,L[he]=W,V=he):(L[V]=ke,L[G]=W,V=G);else if(heo(We,W))L[V]=We,L[he]=W,V=he;else break e}}return N}function o(L,N){var W=L.sortIndex-N.sortIndex;return W!==0?W:L.id-N.id}if(typeof performance=="object"&&typeof performance.now=="function"){var i=performance;e.unstable_now=function(){return i.now()}}else{var s=Date,a=s.now();e.unstable_now=function(){return s.now()-a}}var l=[],u=[],c=1,d=null,f=3,p=!1,m=!1,y=!1,w=typeof setTimeout=="function"?setTimeout:null,g=typeof clearTimeout=="function"?clearTimeout:null,h=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function v(L){for(var N=n(u);N!==null;){if(N.callback===null)r(u);else if(N.startTime<=L)r(u),N.sortIndex=N.expirationTime,t(l,N);else break;N=n(u)}}function S(L){if(y=!1,v(L),!m)if(n(l)!==null)m=!0,Z(P);else{var N=n(u);N!==null&&O(S,N.startTime-L)}}function P(L,N){m=!1,y&&(y=!1,g(A),A=-1),p=!0;var W=f;try{for(v(N),d=n(l);d!==null&&(!(d.expirationTime>N)||L&&!F());){var V=d.callback;if(typeof V=="function"){d.callback=null,f=d.priorityLevel;var te=V(d.expirationTime<=N);N=e.unstable_now(),typeof te=="function"?d.callback=te:d===n(l)&&r(l),v(N)}else r(l);d=n(l)}if(d!==null)var B=!0;else{var G=n(u);G!==null&&O(S,G.startTime-N),B=!1}return B}finally{d=null,f=W,p=!1}}var T=!1,_=null,A=-1,z=5,M=-1;function F(){return!(e.unstable_now()-ML||125V?(L.sortIndex=W,t(u,L),n(l)===null&&L===n(u)&&(y?(g(A),A=-1):y=!0,O(S,W-V))):(L.sortIndex=te,t(l,L),m||p||(m=!0,Z(P))),L},e.unstable_shouldYield=F,e.unstable_wrapCallback=function(L){var N=f;return function(){var W=f;f=N;try{return L.apply(this,arguments)}finally{f=W}}}})(F1);j1.exports=F1;var YC=j1.exports;/** + * @license React + * react-dom.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var N1=x,Ft=YC;function I(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),kf=Object.prototype.hasOwnProperty,QC=/^[: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]*$/,R0={},$0={};function ZC(e){return kf.call($0,e)?!0:kf.call(R0,e)?!1:QC.test(e)?$0[e]=!0:(R0[e]=!0,!1)}function JC(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function e5(e,t,n,r){if(t===null||typeof t>"u"||JC(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function yt(e,t,n,r,o,i,s){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=s}var rt={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){rt[e]=new yt(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];rt[t]=new yt(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){rt[e]=new yt(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){rt[e]=new yt(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){rt[e]=new yt(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){rt[e]=new yt(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){rt[e]=new yt(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){rt[e]=new yt(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){rt[e]=new yt(e,5,!1,e.toLowerCase(),null,!1,!1)});var sh=/[\-:]([a-z])/g;function ah(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(sh,ah);rt[t]=new yt(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(sh,ah);rt[t]=new yt(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(sh,ah);rt[t]=new yt(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){rt[e]=new yt(e,1,!1,e.toLowerCase(),null,!1,!1)});rt.xlinkHref=new yt("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){rt[e]=new yt(e,1,!1,e.toLowerCase(),null,!0,!0)});function lh(e,t,n,r){var o=rt.hasOwnProperty(t)?rt[t]:null;(o!==null?o.type!==0:r||!(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{fd=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?fs(e):""}function t5(e){switch(e.tag){case 5:return fs(e.type);case 16:return fs("Lazy");case 13:return fs("Suspense");case 19:return fs("SuspenseList");case 0:case 2:case 15:return e=pd(e.type,!1),e;case 11:return e=pd(e.type.render,!1),e;case 1:return e=pd(e.type,!0),e;default:return""}}function Pf(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 Uo:return"Fragment";case Wo:return"Portal";case Cf:return"Profiler";case uh:return"StrictMode";case Ef:return"Suspense";case _f:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case H1:return(e.displayName||"Context")+".Consumer";case V1:return(e._context.displayName||"Context")+".Provider";case ch:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case dh:return t=e.displayName||null,t!==null?t:Pf(e.type)||"Memo";case Sr:t=e._payload,e=e._init;try{return Pf(e(t))}catch{}}return null}function n5(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 Pf(t);case 8:return t===uh?"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 Br(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function U1(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function r5(e){var t=U1(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var o=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(s){r=""+s,i.call(this,s)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(s){r=""+s},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Za(e){e._valueTracker||(e._valueTracker=r5(e))}function G1(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=U1(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function su(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 Tf(e,t){var n=t.checked;return ze({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function z0(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=Br(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function K1(e,t){t=t.checked,t!=null&&lh(e,"checked",t,!1)}function Af(e,t){K1(e,t);var n=Br(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?Rf(e,t.type,n):t.hasOwnProperty("defaultValue")&&Rf(e,t.type,Br(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function O0(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function Rf(e,t,n){(t!=="number"||su(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var ps=Array.isArray;function fi(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o"+t.valueOf().toString()+"",t=Ja.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Gs(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var ks={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},o5=["Webkit","ms","Moz","O"];Object.keys(ks).forEach(function(e){o5.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),ks[t]=ks[e]})});function Q1(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||ks.hasOwnProperty(e)&&ks[e]?(""+t).trim():t+"px"}function Z1(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,o=Q1(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}var i5=ze({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 zf(e,t){if(t){if(i5[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(I(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(I(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(I(61))}if(t.style!=null&&typeof t.style!="object")throw Error(I(62))}}function Of(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 Lf=null;function fh(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var If=null,pi=null,hi=null;function D0(e){if(e=Ea(e)){if(typeof If!="function")throw Error(I(280));var t=e.stateNode;t&&(t=ec(t),If(e.stateNode,e.type,t))}}function J1(e){pi?hi?hi.push(e):hi=[e]:pi=e}function eb(){if(pi){var e=pi,t=hi;if(hi=pi=null,D0(e),t)for(e=0;e>>=0,e===0?32:31-(g5(e)/v5|0)|0}var el=64,tl=4194304;function hs(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 cu(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,o=e.suspendedLanes,i=e.pingedLanes,s=n&268435455;if(s!==0){var a=s&~o;a!==0?r=hs(a):(i&=s,i!==0&&(r=hs(i)))}else s=n&~o,s!==0?r=hs(s):i!==0&&(r=hs(i));if(r===0)return 0;if(t!==0&&t!==r&&!(t&o)&&(o=r&-r,i=t&-t,o>=i||o===16&&(i&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0n;n++)t.push(e);return t}function ka(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-xn(t),e[t]=n}function S5(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0=Es),G0=String.fromCharCode(32),K0=!1;function xb(e,t){switch(e){case"keyup":return q5.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Sb(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Go=!1;function Q5(e,t){switch(e){case"compositionend":return Sb(t);case"keypress":return t.which!==32?null:(K0=!0,G0);case"textInput":return e=t.data,e===G0&&K0?null:e;default:return null}}function Z5(e,t){if(Go)return e==="compositionend"||!xh&&xb(e,t)?(e=yb(),Rl=vh=Pr=null,Go=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=Q0(n)}}function Eb(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Eb(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function _b(){for(var e=window,t=su();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=su(e.document)}return t}function Sh(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 aE(e){var t=_b(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&Eb(n.ownerDocument.documentElement,n)){if(r!==null&&Sh(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var o=n.textContent.length,i=Math.min(r.start,o);r=r.end===void 0?i:Math.min(r.end,o),!e.extend&&i>r&&(o=r,r=i,i=o),o=Z0(n,i);var s=Z0(n,r);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>r?(e.addRange(t),e.extend(s.node,s.offset)):(t.setEnd(s.node,s.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n=document.documentMode,Ko=null,Vf=null,Ps=null,Hf=!1;function J0(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Hf||Ko==null||Ko!==su(r)||(r=Ko,"selectionStart"in r&&Sh(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),Ps&&Zs(Ps,r)||(Ps=r,r=pu(Vf,"onSelect"),0Yo||(e.current=qf[Yo],qf[Yo]=null,Yo--)}function xe(e,t){Yo++,qf[Yo]=e.current,e.current=t}var Vr={},ct=Gr(Vr),kt=Gr(!1),wo=Vr;function Ci(e,t){var n=e.type.contextTypes;if(!n)return Vr;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o={},i;for(i in n)o[i]=t[i];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function Ct(e){return e=e.childContextTypes,e!=null}function mu(){_e(kt),_e(ct)}function sg(e,t,n){if(ct.current!==Vr)throw Error(I(168));xe(ct,t),xe(kt,n)}function Lb(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var o in r)if(!(o in t))throw Error(I(108,n5(e)||"Unknown",o));return ze({},n,r)}function gu(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Vr,wo=ct.current,xe(ct,e),xe(kt,kt.current),!0}function ag(e,t,n){var r=e.stateNode;if(!r)throw Error(I(169));n?(e=Lb(e,t,wo),r.__reactInternalMemoizedMergedChildContext=e,_e(kt),_e(ct),xe(ct,e)):_e(kt),xe(kt,n)}var Un=null,tc=!1,Pd=!1;function Ib(e){Un===null?Un=[e]:Un.push(e)}function bE(e){tc=!0,Ib(e)}function Kr(){if(!Pd&&Un!==null){Pd=!0;var e=0,t=ge;try{var n=Un;for(ge=1;e>=s,o-=s,Xn=1<<32-xn(t)+o|n<A?(z=_,_=null):z=_.sibling;var M=f(g,_,v[A],S);if(M===null){_===null&&(_=z);break}e&&_&&M.alternate===null&&t(g,_),h=i(M,h,A),T===null?P=M:T.sibling=M,T=M,_=z}if(A===v.length)return n(g,_),Ae&&oo(g,A),P;if(_===null){for(;AA?(z=_,_=null):z=_.sibling;var F=f(g,_,M.value,S);if(F===null){_===null&&(_=z);break}e&&_&&F.alternate===null&&t(g,_),h=i(F,h,A),T===null?P=F:T.sibling=F,T=F,_=z}if(M.done)return n(g,_),Ae&&oo(g,A),P;if(_===null){for(;!M.done;A++,M=v.next())M=d(g,M.value,S),M!==null&&(h=i(M,h,A),T===null?P=M:T.sibling=M,T=M);return Ae&&oo(g,A),P}for(_=r(g,_);!M.done;A++,M=v.next())M=p(_,g,A,M.value,S),M!==null&&(e&&M.alternate!==null&&_.delete(M.key===null?A:M.key),h=i(M,h,A),T===null?P=M:T.sibling=M,T=M);return e&&_.forEach(function(Y){return t(g,Y)}),Ae&&oo(g,A),P}function w(g,h,v,S){if(typeof v=="object"&&v!==null&&v.type===Uo&&v.key===null&&(v=v.props.children),typeof v=="object"&&v!==null){switch(v.$$typeof){case Qa:e:{for(var P=v.key,T=h;T!==null;){if(T.key===P){if(P=v.type,P===Uo){if(T.tag===7){n(g,T.sibling),h=o(T,v.props.children),h.return=g,g=h;break e}}else if(T.elementType===P||typeof P=="object"&&P!==null&&P.$$typeof===Sr&&hg(P)===T.type){n(g,T.sibling),h=o(T,v.props),h.ref=ts(g,T,v),h.return=g,g=h;break e}n(g,T);break}else t(g,T);T=T.sibling}v.type===Uo?(h=vo(v.props.children,g.mode,S,v.key),h.return=g,g=h):(S=jl(v.type,v.key,v.props,null,g.mode,S),S.ref=ts(g,h,v),S.return=g,g=S)}return s(g);case Wo:e:{for(T=v.key;h!==null;){if(h.key===T)if(h.tag===4&&h.stateNode.containerInfo===v.containerInfo&&h.stateNode.implementation===v.implementation){n(g,h.sibling),h=o(h,v.children||[]),h.return=g,g=h;break e}else{n(g,h);break}else t(g,h);h=h.sibling}h=Ld(v,g.mode,S),h.return=g,g=h}return s(g);case Sr:return T=v._init,w(g,h,T(v._payload),S)}if(ps(v))return m(g,h,v,S);if(Yi(v))return y(g,h,v,S);ll(g,v)}return typeof v=="string"&&v!==""||typeof v=="number"?(v=""+v,h!==null&&h.tag===6?(n(g,h.sibling),h=o(h,v),h.return=g,g=h):(n(g,h),h=Od(v,g.mode,S),h.return=g,g=h),s(g)):n(g,h)}return w}var _i=Wb(!0),Ub=Wb(!1),_a={},zn=Gr(_a),na=Gr(_a),ra=Gr(_a);function po(e){if(e===_a)throw Error(I(174));return e}function Rh(e,t){switch(xe(ra,t),xe(na,e),xe(zn,_a),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Mf(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=Mf(t,e)}_e(zn),xe(zn,t)}function Pi(){_e(zn),_e(na),_e(ra)}function Gb(e){po(ra.current);var t=po(zn.current),n=Mf(t,e.type);t!==n&&(xe(na,e),xe(zn,n))}function $h(e){na.current===e&&(_e(zn),_e(na))}var Re=Gr(0);function wu(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var Td=[];function Mh(){for(var e=0;en?n:4,e(!0);var r=Ad.transition;Ad.transition={};try{e(!1),t()}finally{ge=n,Ad.transition=r}}function lx(){return un().memoizedState}function kE(e,t,n){var r=Lr(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},ux(e))cx(t,n);else if(n=Nb(e,t,n,r),n!==null){var o=mt();Sn(n,e,r,o),dx(n,t,r)}}function CE(e,t,n){var r=Lr(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(ux(e))cx(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,n);if(o.hasEagerState=!0,o.eagerState=a,wn(a,s)){var l=t.interleaved;l===null?(o.next=o,Th(t)):(o.next=l.next,l.next=o),t.interleaved=o;return}}catch{}finally{}n=Nb(e,t,o,r),n!==null&&(o=mt(),Sn(n,e,r,o),dx(n,t,r))}}function ux(e){var t=e.alternate;return e===Me||t!==null&&t===Me}function cx(e,t){Ts=ku=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function dx(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,hh(e,n)}}var Cu={readContext:ln,useCallback:it,useContext:it,useEffect:it,useImperativeHandle:it,useInsertionEffect:it,useLayoutEffect:it,useMemo:it,useReducer:it,useRef:it,useState:it,useDebugValue:it,useDeferredValue:it,useTransition:it,useMutableSource:it,useSyncExternalStore:it,useId:it,unstable_isNewReconciler:!1},EE={readContext:ln,useCallback:function(e,t){return _n().memoizedState=[e,t===void 0?null:t],e},useContext:ln,useEffect:gg,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Ol(4194308,4,rx.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Ol(4194308,4,e,t)},useInsertionEffect:function(e,t){return Ol(4,2,e,t)},useMemo:function(e,t){var n=_n();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=_n();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=kE.bind(null,Me,e),[r.memoizedState,e]},useRef:function(e){var t=_n();return e={current:e},t.memoizedState=e},useState:mg,useDebugValue:Dh,useDeferredValue:function(e){return _n().memoizedState=e},useTransition:function(){var e=mg(!1),t=e[0];return e=wE.bind(null,e[1]),_n().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=Me,o=_n();if(Ae){if(n===void 0)throw Error(I(407));n=n()}else{if(n=t(),Ye===null)throw Error(I(349));Co&30||qb(r,t,n)}o.memoizedState=n;var i={value:n,getSnapshot:t};return o.queue=i,gg(Qb.bind(null,r,i,e),[e]),r.flags|=2048,sa(9,Yb.bind(null,r,i,n,t),void 0,null),n},useId:function(){var e=_n(),t=Ye.identifierPrefix;if(Ae){var n=qn,r=Xn;n=(r&~(1<<32-xn(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=oa++,0<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=s.createElement(n,{is:r.is}):(e=s.createElement(n),n==="select"&&(s=e,r.multiple?s.multiple=!0:r.size&&(s.size=r.size))):e=s.createElementNS(e,n),e[$n]=t,e[ta]=r,xx(e,t,!1,!1),t.stateNode=e;e:{switch(s=Of(n,r),n){case"dialog":Ce("cancel",e),Ce("close",e),o=r;break;case"iframe":case"object":case"embed":Ce("load",e),o=r;break;case"video":case"audio":for(o=0;oAi&&(t.flags|=128,r=!0,ns(i,!1),t.lanes=4194304)}else{if(!r)if(e=wu(s),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),ns(i,!0),i.tail===null&&i.tailMode==="hidden"&&!s.alternate&&!Ae)return st(t),null}else 2*je()-i.renderingStartTime>Ai&&n!==1073741824&&(t.flags|=128,r=!0,ns(i,!1),t.lanes=4194304);i.isBackwards?(s.sibling=t.child,t.child=s):(n=i.last,n!==null?n.sibling=s:t.child=s,i.last=s)}return i.tail!==null?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=je(),t.sibling=null,n=Re.current,xe(Re,r?n&1|2:n&1),t):(st(t),null);case 22:case 23:return Hh(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?Mt&1073741824&&(st(t),t.subtreeFlags&6&&(t.flags|=8192)):st(t),null;case 24:return null;case 25:return null}throw Error(I(156,t.tag))}function zE(e,t){switch(kh(t),t.tag){case 1:return Ct(t.type)&&mu(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Pi(),_e(kt),_e(ct),Mh(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return $h(t),null;case 13:if(_e(Re),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(I(340));Ei()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return _e(Re),null;case 4:return Pi(),null;case 10:return Ph(t.type._context),null;case 22:case 23:return Hh(),null;case 24:return null;default:return null}}var cl=!1,ut=!1,OE=typeof WeakSet=="function"?WeakSet:Set,j=null;function ei(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){Le(e,t,r)}else n.current=null}function ap(e,t,n){try{n()}catch(r){Le(e,t,r)}}var Eg=!1;function LE(e,t){if(Wf=du,e=_b(),Sh(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var o=r.anchorOffset,i=r.focusNode;r=r.focusOffset;try{n.nodeType,i.nodeType}catch{n=null;break e}var s=0,a=-1,l=-1,u=0,c=0,d=e,f=null;t:for(;;){for(var p;d!==n||o!==0&&d.nodeType!==3||(a=s+o),d!==i||r!==0&&d.nodeType!==3||(l=s+r),d.nodeType===3&&(s+=d.nodeValue.length),(p=d.firstChild)!==null;)f=d,d=p;for(;;){if(d===e)break t;if(f===n&&++u===o&&(a=s),f===i&&++c===r&&(l=s),(p=d.nextSibling)!==null)break;d=f,f=d.parentNode}d=p}n=a===-1||l===-1?null:{start:a,end:l}}else n=null}n=n||{start:0,end:0}}else n=null;for(Uf={focusedElem:e,selectionRange:n},du=!1,j=t;j!==null;)if(t=j,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,j=e;else for(;j!==null;){t=j;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 y=m.memoizedProps,w=m.memoizedState,g=t.stateNode,h=g.getSnapshotBeforeUpdate(t.elementType===t.type?y:mn(t.type,y),w);g.__reactInternalSnapshotBeforeUpdate=h}break;case 3:var v=t.stateNode.containerInfo;v.nodeType===1?v.textContent="":v.nodeType===9&&v.documentElement&&v.removeChild(v.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(I(163))}}catch(S){Le(t,t.return,S)}if(e=t.sibling,e!==null){e.return=t.return,j=e;break}j=t.return}return m=Eg,Eg=!1,m}function As(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var o=r=r.next;do{if((o.tag&e)===e){var i=o.destroy;o.destroy=void 0,i!==void 0&&ap(t,n,i)}o=o.next}while(o!==r)}}function oc(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function lp(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function kx(e){var t=e.alternate;t!==null&&(e.alternate=null,kx(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[$n],delete t[ta],delete t[Xf],delete t[vE],delete t[yE])),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 Cx(e){return e.tag===5||e.tag===3||e.tag===4}function _g(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Cx(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 up(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=hu));else if(r!==4&&(e=e.child,e!==null))for(up(e,t,n),e=e.sibling;e!==null;)up(e,t,n),e=e.sibling}function cp(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(cp(e,t,n),e=e.sibling;e!==null;)cp(e,t,n),e=e.sibling}var et=null,gn=!1;function mr(e,t,n){for(n=n.child;n!==null;)Ex(e,t,n),n=n.sibling}function Ex(e,t,n){if(Mn&&typeof Mn.onCommitFiberUnmount=="function")try{Mn.onCommitFiberUnmount(Yu,n)}catch{}switch(n.tag){case 5:ut||ei(n,t);case 6:var r=et,o=gn;et=null,mr(e,t,n),et=r,gn=o,et!==null&&(gn?(e=et,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):et.removeChild(n.stateNode));break;case 18:et!==null&&(gn?(e=et,n=n.stateNode,e.nodeType===8?_d(e.parentNode,n):e.nodeType===1&&_d(e,n),Ys(e)):_d(et,n.stateNode));break;case 4:r=et,o=gn,et=n.stateNode.containerInfo,gn=!0,mr(e,t,n),et=r,gn=o;break;case 0:case 11:case 14:case 15:if(!ut&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){o=r=r.next;do{var i=o,s=i.destroy;i=i.tag,s!==void 0&&(i&2||i&4)&&ap(n,t,s),o=o.next}while(o!==r)}mr(e,t,n);break;case 1:if(!ut&&(ei(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(a){Le(n,t,a)}mr(e,t,n);break;case 21:mr(e,t,n);break;case 22:n.mode&1?(ut=(r=ut)||n.memoizedState!==null,mr(e,t,n),ut=r):mr(e,t,n);break;default:mr(e,t,n)}}function Pg(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new OE),t.forEach(function(r){var o=WE.bind(null,e,r);n.has(r)||(n.add(r),r.then(o,o))})}}function pn(e,t){var n=t.deletions;if(n!==null)for(var r=0;ro&&(o=s),r&=~i}if(r=o,r=je()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*DE(r/1960))-r,10e?16:e,Tr===null)var r=!1;else{if(e=Tr,Tr=null,Pu=0,ae&6)throw Error(I(331));var o=ae;for(ae|=4,j=e.current;j!==null;){var i=j,s=i.child;if(j.flags&16){var a=i.deletions;if(a!==null){for(var l=0;lje()-Bh?go(e,0):Nh|=n),Et(e,t)}function zx(e,t){t===0&&(e.mode&1?(t=tl,tl<<=1,!(tl&130023424)&&(tl=4194304)):t=1);var n=mt();e=ar(e,t),e!==null&&(ka(e,t,n),Et(e,n))}function HE(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),zx(e,n)}function WE(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,o=e.memoizedState;o!==null&&(n=o.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(I(314))}r!==null&&r.delete(t),zx(e,n)}var Ox;Ox=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||kt.current)wt=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return wt=!1,$E(e,t,n);wt=!!(e.flags&131072)}else wt=!1,Ae&&t.flags&1048576&&Db(t,yu,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Ll(e,t),e=t.pendingProps;var o=Ci(t,ct.current);gi(t,n),o=Oh(null,t,r,e,o,n);var i=Lh();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,Ct(r)?(i=!0,gu(t)):i=!1,t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,Ah(t),o.updater=nc,t.stateNode=o,o._reactInternals=t,ep(t,r,e,n),t=rp(null,t,r,!0,i,n)):(t.tag=0,Ae&&i&&wh(t),pt(null,t,o,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Ll(e,t),e=t.pendingProps,o=r._init,r=o(r._payload),t.type=r,o=t.tag=GE(r),e=mn(r,e),o){case 0:t=np(null,t,r,e,n);break e;case 1:t=wg(null,t,r,e,n);break e;case 11:t=xg(null,t,r,e,n);break e;case 14:t=Sg(null,t,r,mn(r.type,e),n);break e}throw Error(I(306,r,""))}return t;case 0:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:mn(r,o),np(e,t,r,o,n);case 1:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:mn(r,o),wg(e,t,r,o,n);case 3:e:{if(vx(t),e===null)throw Error(I(387));r=t.pendingProps,i=t.memoizedState,o=i.element,Bb(e,t),Su(t,r,null,n);var s=t.memoizedState;if(r=s.element,i.isDehydrated)if(i={element:r,isDehydrated:!1,cache:s.cache,pendingSuspenseBoundaries:s.pendingSuspenseBoundaries,transitions:s.transitions},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){o=Ti(Error(I(423)),t),t=kg(e,t,r,n,o);break e}else if(r!==o){o=Ti(Error(I(424)),t),t=kg(e,t,r,n,o);break e}else for(Ot=Mr(t.stateNode.containerInfo.firstChild),It=t,Ae=!0,vn=null,n=Ub(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Ei(),r===o){t=lr(e,t,n);break e}pt(e,t,r,n)}t=t.child}return t;case 5:return Gb(t),e===null&&Qf(t),r=t.type,o=t.pendingProps,i=e!==null?e.memoizedProps:null,s=o.children,Gf(r,o)?s=null:i!==null&&Gf(r,i)&&(t.flags|=32),gx(e,t),pt(e,t,s,n),t.child;case 6:return e===null&&Qf(t),null;case 13:return yx(e,t,n);case 4:return Rh(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=_i(t,null,r,n):pt(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:mn(r,o),xg(e,t,r,o,n);case 7:return pt(e,t,t.pendingProps,n),t.child;case 8:return pt(e,t,t.pendingProps.children,n),t.child;case 12:return pt(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,o=t.pendingProps,i=t.memoizedProps,s=o.value,xe(bu,r._currentValue),r._currentValue=s,i!==null)if(wn(i.value,s)){if(i.children===o.children&&!kt.current){t=lr(e,t,n);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===r){if(i.tag===1){l=Jn(-1,n&-n),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|=n,l=i.alternate,l!==null&&(l.lanes|=n),Zf(i.return,n,t),a.lanes|=n;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(I(341));s.lanes|=n,a=s.alternate,a!==null&&(a.lanes|=n),Zf(s,n,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}pt(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,gi(t,n),o=ln(o),r=r(o),t.flags|=1,pt(e,t,r,n),t.child;case 14:return r=t.type,o=mn(r,t.pendingProps),o=mn(r.type,o),Sg(e,t,r,o,n);case 15:return hx(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:mn(r,o),Ll(e,t),t.tag=1,Ct(r)?(e=!0,gu(t)):e=!1,gi(t,n),Hb(t,r,o),ep(t,r,o,n),rp(null,t,r,!0,e,n);case 19:return bx(e,t,n);case 22:return mx(e,t,n)}throw Error(I(156,t.tag))};function Lx(e,t){return ab(e,t)}function UE(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function nn(e,t,n,r){return new UE(e,t,n,r)}function Uh(e){return e=e.prototype,!(!e||!e.isReactComponent)}function GE(e){if(typeof e=="function")return Uh(e)?1:0;if(e!=null){if(e=e.$$typeof,e===ch)return 11;if(e===dh)return 14}return 2}function Ir(e,t){var n=e.alternate;return n===null?(n=nn(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function jl(e,t,n,r,o,i){var s=2;if(r=e,typeof e=="function")Uh(e)&&(s=1);else if(typeof e=="string")s=5;else e:switch(e){case Uo:return vo(n.children,o,i,t);case uh:s=8,o|=8;break;case Cf:return e=nn(12,n,t,o|2),e.elementType=Cf,e.lanes=i,e;case Ef:return e=nn(13,n,t,o),e.elementType=Ef,e.lanes=i,e;case _f:return e=nn(19,n,t,o),e.elementType=_f,e.lanes=i,e;case W1:return sc(n,o,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case V1:s=10;break e;case H1:s=9;break e;case ch:s=11;break e;case dh:s=14;break e;case Sr:s=16,r=null;break e}throw Error(I(130,e==null?e:typeof e,""))}return t=nn(s,n,t,o),t.elementType=e,t.type=r,t.lanes=i,t}function vo(e,t,n,r){return e=nn(7,e,r,t),e.lanes=n,e}function sc(e,t,n,r){return e=nn(22,e,r,t),e.elementType=W1,e.lanes=n,e.stateNode={isHidden:!1},e}function Od(e,t,n){return e=nn(6,e,null,t),e.lanes=n,e}function Ld(e,t,n){return t=nn(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function KE(e,t,n,r,o){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=md(0),this.expirationTimes=md(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=md(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function Gh(e,t,n,r,o,i,s,a,l){return e=new KE(e,t,n,a,l),t===1?(t=1,i===!0&&(t|=8)):t=0,i=nn(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Ah(i),e}function XE(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Fx)}catch(e){console.error(e)}}Fx(),D1.exports=Vt;var Yh=D1.exports,Lg=Yh;wf.createRoot=Lg.createRoot,wf.hydrateRoot=Lg.hydrateRoot;function JE(e){if(e.sheet)return e.sheet;for(var t=0;t0?tt(Wi,--At):0,Ri--,Be===10&&(Ri=1,fc--),Be}function Dt(){return Be=At2||ua(Be)>3?"":" "}function f_(e,t){for(;--t&&Dt()&&!(Be<48||Be>102||Be>57&&Be<65||Be>70&&Be<97););return Pa(e,Fl()+(t<6&&On()==32&&Dt()==32))}function gp(e){for(;Dt();)switch(Be){case e:return At;case 34:case 39:e!==34&&e!==39&&gp(Be);break;case 40:e===41&&gp(e);break;case 92:Dt();break}return At}function p_(e,t){for(;Dt()&&e+Be!==47+10;)if(e+Be===42+42&&On()===47)break;return"/*"+Pa(t,At-1)+"*"+dc(e===47?e:Dt())}function h_(e){for(;!ua(On());)Dt();return Pa(e,At)}function m_(e){return Ux(Bl("",null,null,null,[""],e=Wx(e),0,[0],e))}function Bl(e,t,n,r,o,i,s,a,l){for(var u=0,c=0,d=s,f=0,p=0,m=0,y=1,w=1,g=1,h=0,v="",S=o,P=i,T=r,_=v;w;)switch(m=h,h=Dt()){case 40:if(m!=108&&tt(_,d-1)==58){mp(_+=fe(Nl(h),"&","&\f"),"&\f")!=-1&&(g=-1);break}case 34:case 39:case 91:_+=Nl(h);break;case 9:case 10:case 13:case 32:_+=d_(m);break;case 92:_+=f_(Fl()-1,7);continue;case 47:switch(On()){case 42:case 47:pl(g_(p_(Dt(),Fl()),t,n),l);break;default:_+="/"}break;case 123*y:a[u++]=An(_)*g;case 125*y:case 59:case 0:switch(h){case 0:case 125:w=0;case 59+c:g==-1&&(_=fe(_,/\f/g,"")),p>0&&An(_)-d&&pl(p>32?Dg(_+";",r,n,d-1):Dg(fe(_," ","")+";",r,n,d-2),l);break;case 59:_+=";";default:if(pl(T=Ig(_,t,n,u,c,o,a,v,S=[],P=[],d),i),h===123)if(c===0)Bl(_,t,T,T,S,i,d,a,P);else switch(f===99&&tt(_,3)===110?100:f){case 100:case 108:case 109:case 115:Bl(e,T,T,r&&pl(Ig(e,T,T,0,0,o,a,v,o,S=[],d),P),o,P,d,a,r?S:P);break;default:Bl(_,T,T,T,[""],P,0,a,P)}}u=c=p=0,y=g=1,v=_="",d=s;break;case 58:d=1+An(_),p=m;default:if(y<1){if(h==123)--y;else if(h==125&&y++==0&&c_()==125)continue}switch(_+=dc(h),h*y){case 38:g=c>0?1:(_+="\f",-1);break;case 44:a[u++]=(An(_)-1)*g,g=1;break;case 64:On()===45&&(_+=Nl(Dt())),f=On(),c=d=An(v=_+=h_(Fl())),h++;break;case 45:m===45&&An(_)==2&&(y=0)}}return i}function Ig(e,t,n,r,o,i,s,a,l,u,c){for(var d=o-1,f=o===0?i:[""],p=Jh(f),m=0,y=0,w=0;m0?f[g]+" "+h:fe(h,/&\f/g,f[g])))&&(l[w++]=v);return pc(e,t,n,o===0?Qh:a,l,u,c)}function g_(e,t,n){return pc(e,t,n,Nx,dc(u_()),la(e,2,-2),0)}function Dg(e,t,n,r){return pc(e,t,n,Zh,la(e,0,r),la(e,r+1,-1),r)}function yi(e,t){for(var n="",r=Jh(e),o=0;o6)switch(tt(e,t+1)){case 109:if(tt(e,t+4)!==45)break;case 102:return fe(e,/(.+:)(.+)-([^]+)/,"$1"+de+"$2-$3$1"+Ru+(tt(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~mp(e,"stretch")?Kx(fe(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(tt(e,t+1)!==115)break;case 6444:switch(tt(e,An(e)-3-(~mp(e,"!important")&&10))){case 107:return fe(e,":",":"+de)+e;case 101:return fe(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+de+(tt(e,14)===45?"inline-":"")+"box$3$1"+de+"$2$3$1"+at+"$2box$3")+e}break;case 5936:switch(tt(e,t+11)){case 114:return de+e+at+fe(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return de+e+at+fe(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return de+e+at+fe(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return de+e+at+e+e}return e}var E_=function(t,n,r,o){if(t.length>-1&&!t.return)switch(t.type){case Zh:t.return=Kx(t.value,t.length);break;case Bx:return yi([os(t,{value:fe(t.value,"@","@"+de)})],o);case Qh:if(t.length)return l_(t.props,function(i){switch(a_(i,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return yi([os(t,{props:[fe(i,/:(read-\w+)/,":"+Ru+"$1")]})],o);case"::placeholder":return yi([os(t,{props:[fe(i,/:(plac\w+)/,":"+de+"input-$1")]}),os(t,{props:[fe(i,/:(plac\w+)/,":"+Ru+"$1")]}),os(t,{props:[fe(i,/:(plac\w+)/,at+"input-$1")]})],o)}return""})}},__=[E_],P_=function(t){var n=t.key;if(n==="css"){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,function(y){var w=y.getAttribute("data-emotion");w.indexOf(" ")!==-1&&(document.head.appendChild(y),y.setAttribute("data-s",""))})}var o=t.stylisPlugins||__,i={},s,a=[];s=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(y){for(var w=y.getAttribute("data-emotion").split(" "),g=1;g=4;++r,o-=4)n=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(o){case 3:t^=(e.charCodeAt(r+2)&255)<<16;case 2:t^=(e.charCodeAt(r+1)&255)<<8;case 1:t^=e.charCodeAt(r)&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 F_={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},N_=/[A-Z]|^ms/g,B_=/_EMO_([^_]+?)_([^]*?)_EMO_/g,eS=function(t){return t.charCodeAt(1)===45},Ng=function(t){return t!=null&&typeof t!="boolean"},Id=Gx(function(e){return eS(e)?e:e.replace(N_,"-$&").toLowerCase()}),Bg=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(B_,function(r,o,i){return Rn={name:o,styles:i,next:Rn},o})}return F_[t]!==1&&!eS(t)&&typeof n=="number"&&n!==0?n+"px":n};function ca(e,t,n){if(n==null)return"";if(n.__emotion_styles!==void 0)return n;switch(typeof n){case"boolean":return"";case"object":{if(n.anim===1)return Rn={name:n.name,styles:n.styles,next:Rn},n.name;if(n.styles!==void 0){var r=n.next;if(r!==void 0)for(;r!==void 0;)Rn={name:r.name,styles:r.styles,next:Rn},r=r.next;var o=n.styles+";";return o}return V_(e,t,n)}case"function":{if(e!==void 0){var i=Rn,s=n(e);return Rn=i,ca(e,t,s)}break}}if(t==null)return n;var a=t[n];return a!==void 0?a:n}function V_(e,t,n){var r="";if(Array.isArray(n))for(var o=0;ok.jsx(Cc,{styles:iS}),Y_=({scope:e=""})=>k.jsx(Cc,{styles:oS` + html { + line-height: 1.5; + -webkit-text-size-adjust: 100%; + font-family: system-ui, sans-serif; + -webkit-font-smoothing: antialiased; + text-rendering: optimizeLegibility; + -moz-osx-font-smoothing: grayscale; + touch-action: manipulation; + } + + body { + position: relative; + min-height: 100%; + margin: 0; + font-feature-settings: "kern"; + } + + ${e} :where(*, *::before, *::after) { + border-width: 0; + border-style: solid; + box-sizing: border-box; + word-wrap: break-word; + } + + main { + display: block; + } + + ${e} hr { + border-top-width: 1px; + box-sizing: content-box; + height: 0; + overflow: visible; + } + + ${e} :where(pre, code, kbd,samp) { + font-family: SFMono-Regular, Menlo, Monaco, Consolas, monospace; + font-size: 1em; + } + + ${e} a { + background-color: transparent; + color: inherit; + text-decoration: inherit; + } + + ${e} abbr[title] { + border-bottom: none; + text-decoration: underline; + -webkit-text-decoration: underline dotted; + text-decoration: underline dotted; + } + + ${e} :where(b, strong) { + font-weight: bold; + } + + ${e} small { + font-size: 80%; + } + + ${e} :where(sub,sup) { + font-size: 75%; + line-height: 0; + position: relative; + vertical-align: baseline; + } + + ${e} sub { + bottom: -0.25em; + } + + ${e} sup { + top: -0.5em; + } + + ${e} img { + border-style: none; + } + + ${e} :where(button, input, optgroup, select, textarea) { + font-family: inherit; + font-size: 100%; + line-height: 1.15; + margin: 0; + } + + ${e} :where(button, input) { + overflow: visible; + } + + ${e} :where(button, select) { + text-transform: none; + } + + ${e} :where( + button::-moz-focus-inner, + [type="button"]::-moz-focus-inner, + [type="reset"]::-moz-focus-inner, + [type="submit"]::-moz-focus-inner + ) { + border-style: none; + padding: 0; + } + + ${e} fieldset { + padding: 0.35em 0.75em 0.625em; + } + + ${e} legend { + box-sizing: border-box; + color: inherit; + display: table; + max-width: 100%; + padding: 0; + white-space: normal; + } + + ${e} progress { + vertical-align: baseline; + } + + ${e} textarea { + overflow: auto; + } + + ${e} :where([type="checkbox"], [type="radio"]) { + box-sizing: border-box; + padding: 0; + } + + ${e} input[type="number"]::-webkit-inner-spin-button, + ${e} input[type="number"]::-webkit-outer-spin-button { + -webkit-appearance: none !important; + } + + ${e} input[type="number"] { + -moz-appearance: textfield; + } + + ${e} input[type="search"] { + -webkit-appearance: textfield; + outline-offset: -2px; + } + + ${e} input[type="search"]::-webkit-search-decoration { + -webkit-appearance: none !important; + } + + ${e} ::-webkit-file-upload-button { + -webkit-appearance: button; + font: inherit; + } + + ${e} details { + display: block; + } + + ${e} summary { + display: list-item; + } + + template { + display: none; + } + + [hidden] { + display: none !important; + } + + ${e} :where( + blockquote, + dl, + dd, + h1, + h2, + h3, + h4, + h5, + h6, + hr, + figure, + p, + pre + ) { + margin: 0; + } + + ${e} button { + background: transparent; + padding: 0; + } + + ${e} fieldset { + margin: 0; + padding: 0; + } + + ${e} :where(ol, ul) { + margin: 0; + padding: 0; + } + + ${e} textarea { + resize: vertical; + } + + ${e} :where(button, [role="button"]) { + cursor: pointer; + } + + ${e} button::-moz-focus-inner { + border: 0 !important; + } + + ${e} table { + border-collapse: collapse; + } + + ${e} :where(h1, h2, h3, h4, h5, h6) { + font-size: inherit; + font-weight: inherit; + } + + ${e} :where(button, input, optgroup, select, textarea) { + padding: 0; + line-height: inherit; + color: inherit; + } + + ${e} :where(img, svg, video, canvas, audio, iframe, embed, object) { + display: block; + } + + ${e} :where(img, video) { + max-width: 100%; + height: auto; + } + + [data-js-focus-visible] + :focus:not([data-focus-visible-added]):not( + [data-focus-visible-disabled] + ) { + outline: none; + box-shadow: none; + } + + ${e} select::-ms-expand { + display: none; + } + + ${iS} + `});function Q_(e,t){return`${e} returned \`undefined\`. Seems you forgot to wrap component within ${t}`}function Ut(e={}){const{name:t,strict:n=!0,hookName:r="useContext",providerName:o="Provider",errorMessage:i,defaultValue:s}=e,a=x.createContext(s);a.displayName=t;function l(){var u;const c=x.useContext(a);if(!c&&n){const d=new Error(i??Q_(r,o));throw d.name="ContextError",(u=Error.captureStackTrace)==null||u.call(Error,d,l),d}return c}return[a.Provider,l,a]}var[Z_,J_]=Ut({strict:!1,name:"PortalManagerContext"});function sS(e){const{children:t,zIndex:n}=e;return k.jsx(Z_,{value:{zIndex:n},children:t})}sS.displayName="PortalManager";var er=globalThis!=null&&globalThis.document?x.useLayoutEffect:x.useEffect,[aS,eP]=Ut({strict:!1,name:"PortalContext"}),im="chakra-portal",tP=".chakra-portal",nP=e=>k.jsx("div",{className:"chakra-portal-zIndex",style:{position:"absolute",zIndex:e.zIndex,top:0,left:0,right:0},children:e.children}),rP=e=>{const{appendToParentPortal:t,children:n}=e,[r,o]=x.useState(null),i=x.useRef(null),[,s]=x.useState({});x.useEffect(()=>s({}),[]);const a=eP(),l=J_();er(()=>{if(!r)return;const c=r.ownerDocument,d=t?a??c.body:c.body;if(!d)return;i.current=c.createElement("div"),i.current.className=im,d.appendChild(i.current),s({});const f=i.current;return()=>{d.contains(f)&&d.removeChild(f)}},[r]);const u=l!=null&&l.zIndex?k.jsx(nP,{zIndex:l==null?void 0:l.zIndex,children:n}):n;return i.current?Yh.createPortal(k.jsx(aS,{value:i.current,children:u}),i.current):k.jsx("span",{ref:c=>{c&&o(c)}})},oP=e=>{const{children:t,containerRef:n,appendToParentPortal:r}=e,o=n.current,i=o??(typeof window<"u"?document.body:void 0),s=x.useMemo(()=>{const l=o==null?void 0:o.ownerDocument.createElement("div");return l&&(l.className=im),l},[o]),[,a]=x.useState({});return er(()=>a({}),[]),er(()=>{if(!(!s||!i))return i.appendChild(s),()=>{i.removeChild(s)}},[s,i]),i&&s?Yh.createPortal(k.jsx(aS,{value:r?s:null,children:t}),s):null};function Ec(e){const t={appendToParentPortal:!0,...e},{containerRef:n,...r}=t;return n?k.jsx(oP,{containerRef:n,...r}):k.jsx(rP,{...r})}Ec.className=im;Ec.selector=tP;Ec.displayName="Portal";function $o(){const e=x.useContext(da);if(!e)throw Error("useTheme: `theme` is undefined. Seems you forgot to wrap your app in `` or ``");return e}var sm=x.createContext({});sm.displayName="ColorModeContext";function _c(){const e=x.useContext(sm);if(e===void 0)throw new Error("useColorMode must be used within a ColorModeProvider");return e}var hl={light:"chakra-ui-light",dark:"chakra-ui-dark"};function iP(e={}){const{preventTransition:t=!0}=e,n={setDataset:r=>{const o=t?n.preventTransition():void 0;document.documentElement.dataset.theme=r,document.documentElement.style.colorScheme=r,o==null||o()},setClassName(r){document.body.classList.add(r?hl.dark:hl.light),document.body.classList.remove(r?hl.light:hl.dark)},query(){return window.matchMedia("(prefers-color-scheme: dark)")},getSystemTheme(r){var o;return((o=n.query().matches)!=null?o:r==="dark")?"dark":"light"},addListener(r){const o=n.query(),i=s=>{r(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 r=document.createElement("style");return r.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(r),()=>{window.getComputedStyle(document.body),requestAnimationFrame(()=>{requestAnimationFrame(()=>{document.head.removeChild(r)})})}}};return n}var sP="chakra-ui-color-mode";function aP(e){return{ssr:!1,type:"localStorage",get(t){if(!(globalThis!=null&&globalThis.document))return t;let n;try{n=localStorage.getItem(e)||t}catch{}return n||t},set(t){try{localStorage.setItem(e,t)}catch{}}}}var lP=aP(sP),Wg=()=>{};function Ug(e,t){return e.type==="cookie"&&e.ssr?e.get(t):t}function lS(e){const{value:t,children:n,options:{useSystemColorMode:r,initialColorMode:o,disableTransitionOnChange:i}={},colorModeManager:s=lP}=e,a=o==="dark"?"dark":"light",[l,u]=x.useState(()=>Ug(s,a)),[c,d]=x.useState(()=>Ug(s)),{getSystemTheme:f,setClassName:p,setDataset:m,addListener:y}=x.useMemo(()=>iP({preventTransition:i}),[i]),w=o==="system"&&!l?c:l,g=x.useCallback(S=>{const P=S==="system"?f():S;u(P),p(P==="dark"),m(P),s.set(P)},[s,f,p,m]);er(()=>{o==="system"&&d(f())},[]),x.useEffect(()=>{const S=s.get();if(S){g(S);return}if(o==="system"){g("system");return}g(a)},[s,a,o,g]);const h=x.useCallback(()=>{g(w==="dark"?"light":"dark")},[w,g]);x.useEffect(()=>{if(r)return y(g)},[r,y,g]);const v=x.useMemo(()=>({colorMode:t??w,toggleColorMode:t?Wg:h,setColorMode:t?Wg:g,forced:t!==void 0}),[w,h,g,t]);return k.jsx(sm.Provider,{value:v,children:n})}lS.displayName="ColorModeProvider";var uP=new Set(["dark","light","system"]);function cP(e){let t=e;return uP.has(t)||(t="light"),t}function dP(e={}){const{initialColorMode:t="light",type:n="localStorage",storageKey:r="chakra-ui-color-mode"}=e,o=cP(t),i=n==="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="${r}",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="${r}",t=localStorage.getItem(e);t?a(t):localStorage.setItem(e,a(m))}catch(a){}})(); + `;return`!${i?s:a}`.trim()}function fP(e={}){const{nonce:t}=e;return k.jsx("script",{id:"chakra-script",nonce:t,dangerouslySetInnerHTML:{__html:dP(e)}})}function pP(){const e=_c(),t=$o();return{...e,theme:t}}function hP(e,t,n){var r,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=(r=i(t))!=null?r:i(n))!=null?o:n}function mP(e,t,n){var r,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=(r=i(t))!=null?r:i(n))!=null?o:n}function gP(e,t,n){const r=$o();return uS(e,t,n)(r)}function uS(e,t,n){const r=Array.isArray(t)?t:[t],o=Array.isArray(n)?n:[n];return i=>{const s=o.filter(Boolean),a=r.map((l,u)=>{var c,d;if(e==="breakpoints")return hP(i,l,(c=s[u])!=null?c:l);const f=`${e}.${l}`;return mP(i,f,(d=s[u])!=null?d:l)});return Array.isArray(t)?a:a[0]}}var ve=(...e)=>e.filter(Boolean).join(" ");function _t(e){const t=typeof e;return e!=null&&(t==="object"||t==="function")&&!Array.isArray(e)}function Yn(e,...t){return vP(e)?e(...t):e}var vP=e=>typeof e=="function",le=e=>e?"":void 0,Dd=e=>e?!0:void 0;function lt(...e){return function(n){e.some(r=>(r==null||r(n),n==null?void 0:n.defaultPrevented))}}function yP(...e){return function(n){e.forEach(r=>{r==null||r(n)})}}var Mu={exports:{}};Mu.exports;(function(e,t){var n=200,r="__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]",y="[object Map]",w="[object Number]",g="[object Null]",h="[object Object]",v="[object Proxy]",S="[object RegExp]",P="[object Set]",T="[object String]",_="[object Undefined]",A="[object WeakMap]",z="[object ArrayBuffer]",M="[object DataView]",F="[object Float32Array]",Y="[object Float64Array]",q="[object Int8Array]",Q="[object Int16Array]",J="[object Int32Array]",Z="[object Uint8Array]",O="[object Uint8ClampedArray]",L="[object Uint16Array]",N="[object Uint32Array]",W=/[\\^$.*+?()[\]{}|]/g,V=/^\[object .+?Constructor\]$/,te=/^(?:0|[1-9]\d*)$/,B={};B[F]=B[Y]=B[q]=B[Q]=B[J]=B[Z]=B[O]=B[L]=B[N]=!0,B[a]=B[l]=B[z]=B[c]=B[M]=B[d]=B[f]=B[p]=B[y]=B[w]=B[h]=B[S]=B[P]=B[T]=B[A]=!1;var G=typeof qa=="object"&&qa&&qa.Object===Object&&qa,ke=typeof self=="object"&&self&&self.Object===Object&&self,he=G||ke||Function("return this")(),We=t&&!t.nodeType&&t,De=We&&!0&&e&&!e.nodeType&&e,Gt=De&&De.exports===We,Kt=Gt&&G.process,ot=function(){try{var b=De&&De.require&&De.require("util").types;return b||Kt&&Kt.binding&&Kt.binding("util")}catch{}}(),Nn=ot&&ot.isTypedArray;function Bn(b,C,R){switch(R.length){case 0:return b.call(C);case 1:return b.call(C,R[0]);case 2:return b.call(C,R[0],R[1]);case 3:return b.call(C,R[0],R[1],R[2])}return b.apply(C,R)}function Ba(b,C){for(var R=-1,D=Array(b);++R-1}function jk(b,C){var R=this.__data__,D=Ua(R,b);return D<0?(++this.size,R.push([b,C])):R[D][1]=C,this}Vn.prototype.clear=Ok,Vn.prototype.delete=Lk,Vn.prototype.get=Ik,Vn.prototype.has=Dk,Vn.prototype.set=jk;function Do(b){var C=-1,R=b==null?0:b.length;for(this.clear();++C1?R[ie-1]:void 0,Pe=ie>2?R[2]:void 0;for(be=b.length>3&&typeof be=="function"?(ie--,be):void 0,Pe&&pC(R[0],R[1],Pe)&&(be=ie<3?void 0:be,ie=1),C=Object(C);++D-1&&b%1==0&&b0){if(++C>=o)return arguments[0]}else C=0;return b.apply(void 0,arguments)}}function SC(b){if(b!=null){try{return Zr.call(b)}catch{}try{return b+""}catch{}}return""}function Xa(b,C){return b===C||b!==b&&C!==C}var od=g0(function(){return arguments}())?g0:function(b){return Xi(b)&&qt.call(b,"callee")&&!Ck.call(b,"callee")},id=Array.isArray;function sd(b){return b!=null&&S0(b.length)&&!ad(b)}function wC(b){return Xi(b)&&sd(b)}var x0=_k||PC;function ad(b){if(!no(b))return!1;var C=Ga(b);return C==p||C==m||C==u||C==v}function S0(b){return typeof b=="number"&&b>-1&&b%1==0&&b<=s}function no(b){var C=typeof b;return b!=null&&(C=="object"||C=="function")}function Xi(b){return b!=null&&typeof b=="object"}function kC(b){if(!Xi(b)||Ga(b)!=h)return!1;var C=f0(b);if(C===null)return!0;var R=qt.call(C,"constructor")&&C.constructor;return typeof R=="function"&&R instanceof R&&Zr.call(R)==Va}var w0=Nn?ne(Nn):Jk;function CC(b){return lC(b,k0(b))}function k0(b){return sd(b)?qk(b,!0):eC(b)}var EC=uC(function(b,C,R,D){v0(b,C,R,D)});function _C(b){return function(){return b}}function C0(b){return b}function PC(){return!1}e.exports=EC})(Mu,Mu.exports);var bP=Mu.exports;const rn=th(bP);var xP=e=>/!(important)?$/.test(e),Gg=e=>typeof e=="string"?e.replace(/!(important)?$/,"").trim():e,SP=(e,t)=>n=>{const r=String(t),o=xP(r),i=Gg(r),s=e?`${e}.${i}`:i;let a=_t(n.__cssMap)&&s in n.__cssMap?n.__cssMap[s].varRef:t;return a=Gg(a),o?`${a} !important`:a};function am(e){const{scale:t,transform:n,compose:r}=e;return(i,s)=>{var a;const l=SP(t,i)(s);let u=(a=n==null?void 0:n(l,s))!=null?a:l;return r&&(u=r(u,s)),u}}var ml=(...e)=>t=>e.reduce((n,r)=>r(n),t);function Qt(e,t){return n=>{const r={property:n,scale:e};return r.transform=am({scale:e,transform:t}),r}}var wP=({rtl:e,ltr:t})=>n=>n.direction==="rtl"?e:t;function kP(e){const{property:t,scale:n,transform:r}=e;return{scale:n,property:wP(t),transform:n?am({scale:n,compose:r}):r}}var cS=["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 CP(){return["translateX(var(--chakra-translate-x, 0))","translateY(var(--chakra-translate-y, 0))",...cS].join(" ")}function EP(){return["translate3d(var(--chakra-translate-x, 0), var(--chakra-translate-y, 0), 0)",...cS].join(" ")}var _P={"--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(" ")},PP={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 TP(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 AP={"row-reverse":{space:"--chakra-space-x-reverse",divide:"--chakra-divide-x-reverse"},"column-reverse":{space:"--chakra-space-y-reverse",divide:"--chakra-divide-y-reverse"}},vp={"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"},RP=new Set(Object.values(vp)),yp=new Set(["none","-moz-initial","inherit","initial","revert","unset"]),$P=e=>e.trim();function MP(e,t){if(e==null||yp.has(e))return e;if(!(bp(e)||yp.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($P).filter(Boolean);if((u==null?void 0:u.length)===0)return e;const c=l in vp?vp[l]:l;u.unshift(c);const d=u.map(f=>{if(RP.has(f))return f;const p=f.indexOf(" "),[m,y]=p!==-1?[f.substr(0,p),f.substr(p+1)]:[f],w=bp(y)?y:y&&y.split(" "),g=`colors.${m}`,h=g in t.__cssMap?t.__cssMap[g].varRef:m;return w?[h,...Array.isArray(w)?w:[w]].join(" "):h});return`${a}(${d.join(", ")})`}var bp=e=>typeof e=="string"&&e.includes("(")&&e.includes(")"),zP=(e,t)=>MP(e,t??{});function OP(e){return/^var\(--.+\)$/.test(e)}var LP=e=>{const t=parseFloat(e.toString()),n=e.toString().replace(String(t),"");return{unitless:!n,value:t,unit:n}},En=e=>t=>`${e}(${t})`,ue={filter(e){return e!=="auto"?e:_P},backdropFilter(e){return e!=="auto"?e:PP},ring(e){return TP(ue.px(e))},bgClip(e){return e==="text"?{color:"transparent",backgroundClip:"text"}:{backgroundClip:e}},transform(e){return e==="auto"?CP():e==="auto-gpu"?EP():e},vh(e){return e==="$100vh"?"var(--chakra-vh)":e},px(e){if(e==null)return e;const{unitless:t}=LP(e);return t||typeof e=="number"?`${e}px`:e},fraction(e){return typeof e!="number"||e>1?e:`${e*100}%`},float(e,t){const n={left:"right",right:"left"};return t.direction==="rtl"?n[e]:e},degree(e){if(OP(e)||e==null)return e;const t=typeof e=="string"&&!e.endsWith("deg");return typeof e=="number"||t?`${e}deg`:e},gradient:zP,blur:En("blur"),opacity:En("opacity"),brightness:En("brightness"),contrast:En("contrast"),dropShadow:En("drop-shadow"),grayscale:En("grayscale"),hueRotate:En("hue-rotate"),invert:En("invert"),saturate:En("saturate"),sepia:En("sepia"),bgImage(e){return e==null||bp(e)||yp.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:n,divide:r}=(t=AP[e])!=null?t:{},o={flexDirection:e};return n&&(o[n]=1),r&&(o[r]=1),o}},E={borderWidths:Qt("borderWidths"),borderStyles:Qt("borderStyles"),colors:Qt("colors"),borders:Qt("borders"),gradients:Qt("gradients",ue.gradient),radii:Qt("radii",ue.px),space:Qt("space",ml(ue.vh,ue.px)),spaceT:Qt("space",ml(ue.vh,ue.px)),degreeT(e){return{property:e,transform:ue.degree}},prop(e,t,n){return{property:e,scale:t,...t&&{transform:am({scale:t,transform:n})}}},propT(e,t){return{property:e,transform:t}},sizes:Qt("sizes",ml(ue.vh,ue.px)),sizesT:Qt("sizes",ml(ue.vh,ue.fraction)),shadows:Qt("shadows"),logical:kP,blur:Qt("blur",ue.blur)},Vl={background:E.colors("background"),backgroundColor:E.colors("backgroundColor"),backgroundImage:E.gradients("backgroundImage"),backgroundSize:!0,backgroundPosition:!0,backgroundRepeat:!0,backgroundAttachment:!0,backgroundClip:{transform:ue.bgClip},bgSize:E.prop("backgroundSize"),bgPosition:E.prop("backgroundPosition"),bg:E.colors("background"),bgColor:E.colors("backgroundColor"),bgPos:E.prop("backgroundPosition"),bgRepeat:E.prop("backgroundRepeat"),bgAttachment:E.prop("backgroundAttachment"),bgGradient:E.gradients("backgroundImage"),bgClip:{transform:ue.bgClip}};Object.assign(Vl,{bgImage:Vl.backgroundImage,bgImg:Vl.backgroundImage});var ce={border:E.borders("border"),borderWidth:E.borderWidths("borderWidth"),borderStyle:E.borderStyles("borderStyle"),borderColor:E.colors("borderColor"),borderRadius:E.radii("borderRadius"),borderTop:E.borders("borderTop"),borderBlockStart:E.borders("borderBlockStart"),borderTopLeftRadius:E.radii("borderTopLeftRadius"),borderStartStartRadius:E.logical({scale:"radii",property:{ltr:"borderTopLeftRadius",rtl:"borderTopRightRadius"}}),borderEndStartRadius:E.logical({scale:"radii",property:{ltr:"borderBottomLeftRadius",rtl:"borderBottomRightRadius"}}),borderTopRightRadius:E.radii("borderTopRightRadius"),borderStartEndRadius:E.logical({scale:"radii",property:{ltr:"borderTopRightRadius",rtl:"borderTopLeftRadius"}}),borderEndEndRadius:E.logical({scale:"radii",property:{ltr:"borderBottomRightRadius",rtl:"borderBottomLeftRadius"}}),borderRight:E.borders("borderRight"),borderInlineEnd:E.borders("borderInlineEnd"),borderBottom:E.borders("borderBottom"),borderBlockEnd:E.borders("borderBlockEnd"),borderBottomLeftRadius:E.radii("borderBottomLeftRadius"),borderBottomRightRadius:E.radii("borderBottomRightRadius"),borderLeft:E.borders("borderLeft"),borderInlineStart:{property:"borderInlineStart",scale:"borders"},borderInlineStartRadius:E.logical({scale:"radii",property:{ltr:["borderTopLeftRadius","borderBottomLeftRadius"],rtl:["borderTopRightRadius","borderBottomRightRadius"]}}),borderInlineEndRadius:E.logical({scale:"radii",property:{ltr:["borderTopRightRadius","borderBottomRightRadius"],rtl:["borderTopLeftRadius","borderBottomLeftRadius"]}}),borderX:E.borders(["borderLeft","borderRight"]),borderInline:E.borders("borderInline"),borderY:E.borders(["borderTop","borderBottom"]),borderBlock:E.borders("borderBlock"),borderTopWidth:E.borderWidths("borderTopWidth"),borderBlockStartWidth:E.borderWidths("borderBlockStartWidth"),borderTopColor:E.colors("borderTopColor"),borderBlockStartColor:E.colors("borderBlockStartColor"),borderTopStyle:E.borderStyles("borderTopStyle"),borderBlockStartStyle:E.borderStyles("borderBlockStartStyle"),borderBottomWidth:E.borderWidths("borderBottomWidth"),borderBlockEndWidth:E.borderWidths("borderBlockEndWidth"),borderBottomColor:E.colors("borderBottomColor"),borderBlockEndColor:E.colors("borderBlockEndColor"),borderBottomStyle:E.borderStyles("borderBottomStyle"),borderBlockEndStyle:E.borderStyles("borderBlockEndStyle"),borderLeftWidth:E.borderWidths("borderLeftWidth"),borderInlineStartWidth:E.borderWidths("borderInlineStartWidth"),borderLeftColor:E.colors("borderLeftColor"),borderInlineStartColor:E.colors("borderInlineStartColor"),borderLeftStyle:E.borderStyles("borderLeftStyle"),borderInlineStartStyle:E.borderStyles("borderInlineStartStyle"),borderRightWidth:E.borderWidths("borderRightWidth"),borderInlineEndWidth:E.borderWidths("borderInlineEndWidth"),borderRightColor:E.colors("borderRightColor"),borderInlineEndColor:E.colors("borderInlineEndColor"),borderRightStyle:E.borderStyles("borderRightStyle"),borderInlineEndStyle:E.borderStyles("borderInlineEndStyle"),borderTopRadius:E.radii(["borderTopLeftRadius","borderTopRightRadius"]),borderBottomRadius:E.radii(["borderBottomLeftRadius","borderBottomRightRadius"]),borderLeftRadius:E.radii(["borderTopLeftRadius","borderBottomLeftRadius"]),borderRightRadius:E.radii(["borderTopRightRadius","borderBottomRightRadius"])};Object.assign(ce,{rounded:ce.borderRadius,roundedTop:ce.borderTopRadius,roundedTopLeft:ce.borderTopLeftRadius,roundedTopRight:ce.borderTopRightRadius,roundedTopStart:ce.borderStartStartRadius,roundedTopEnd:ce.borderStartEndRadius,roundedBottom:ce.borderBottomRadius,roundedBottomLeft:ce.borderBottomLeftRadius,roundedBottomRight:ce.borderBottomRightRadius,roundedBottomStart:ce.borderEndStartRadius,roundedBottomEnd:ce.borderEndEndRadius,roundedLeft:ce.borderLeftRadius,roundedRight:ce.borderRightRadius,roundedStart:ce.borderInlineStartRadius,roundedEnd:ce.borderInlineEndRadius,borderStart:ce.borderInlineStart,borderEnd:ce.borderInlineEnd,borderTopStartRadius:ce.borderStartStartRadius,borderTopEndRadius:ce.borderStartEndRadius,borderBottomStartRadius:ce.borderEndStartRadius,borderBottomEndRadius:ce.borderEndEndRadius,borderStartRadius:ce.borderInlineStartRadius,borderEndRadius:ce.borderInlineEndRadius,borderStartWidth:ce.borderInlineStartWidth,borderEndWidth:ce.borderInlineEndWidth,borderStartColor:ce.borderInlineStartColor,borderEndColor:ce.borderInlineEndColor,borderStartStyle:ce.borderInlineStartStyle,borderEndStyle:ce.borderInlineEndStyle});var IP={color:E.colors("color"),textColor:E.colors("color"),fill:E.colors("fill"),stroke:E.colors("stroke")},xp={boxShadow:E.shadows("boxShadow"),mixBlendMode:!0,blendMode:E.prop("mixBlendMode"),backgroundBlendMode:!0,bgBlendMode:E.prop("backgroundBlendMode"),opacity:!0};Object.assign(xp,{shadow:xp.boxShadow});var DP={filter:{transform:ue.filter},blur:E.blur("--chakra-blur"),brightness:E.propT("--chakra-brightness",ue.brightness),contrast:E.propT("--chakra-contrast",ue.contrast),hueRotate:E.degreeT("--chakra-hue-rotate"),invert:E.propT("--chakra-invert",ue.invert),saturate:E.propT("--chakra-saturate",ue.saturate),dropShadow:E.propT("--chakra-drop-shadow",ue.dropShadow),backdropFilter:{transform:ue.backdropFilter},backdropBlur:E.blur("--chakra-backdrop-blur"),backdropBrightness:E.propT("--chakra-backdrop-brightness",ue.brightness),backdropContrast:E.propT("--chakra-backdrop-contrast",ue.contrast),backdropHueRotate:E.degreeT("--chakra-backdrop-hue-rotate"),backdropInvert:E.propT("--chakra-backdrop-invert",ue.invert),backdropSaturate:E.propT("--chakra-backdrop-saturate",ue.saturate)},zu={alignItems:!0,alignContent:!0,justifyItems:!0,justifyContent:!0,flexWrap:!0,flexDirection:{transform:ue.flexDirection},flex:!0,flexFlow:!0,flexGrow:!0,flexShrink:!0,flexBasis:E.sizes("flexBasis"),justifySelf:!0,alignSelf:!0,order:!0,placeItems:!0,placeContent:!0,placeSelf:!0,gap:E.space("gap"),rowGap:E.space("rowGap"),columnGap:E.space("columnGap")};Object.assign(zu,{flexDir:zu.flexDirection});var dS={gridGap:E.space("gridGap"),gridColumnGap:E.space("gridColumnGap"),gridRowGap:E.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},jP={appearance:!0,cursor:!0,resize:!0,userSelect:!0,pointerEvents:!0,outline:{transform:ue.outline},outlineOffset:!0,outlineColor:E.colors("outlineColor")},Jt={width:E.sizesT("width"),inlineSize:E.sizesT("inlineSize"),height:E.sizes("height"),blockSize:E.sizes("blockSize"),boxSize:E.sizes(["width","height"]),minWidth:E.sizes("minWidth"),minInlineSize:E.sizes("minInlineSize"),minHeight:E.sizes("minHeight"),minBlockSize:E.sizes("minBlockSize"),maxWidth:E.sizes("maxWidth"),maxInlineSize:E.sizes("maxInlineSize"),maxHeight:E.sizes("maxHeight"),maxBlockSize:E.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 n,r,o;return{[`@media screen and (min-width: ${(o=(r=(n=t.__breakpoints)==null?void 0:n.get(e))==null?void 0:r.minW)!=null?o:e})`]:{display:"none"}}}},hideBelow:{scale:"breakpoints",transform:(e,t)=>{var n,r,o;return{[`@media screen and (max-width: ${(o=(r=(n=t.__breakpoints)==null?void 0:n.get(e))==null?void 0:r._minW)!=null?o:e})`]:{display:"none"}}}},verticalAlign:!0,boxSizing:!0,boxDecorationBreak:!0,float:E.propT("float",ue.float),objectFit:!0,objectPosition:!0,visibility:!0,isolation:!0};Object.assign(Jt,{w:Jt.width,h:Jt.height,minW:Jt.minWidth,maxW:Jt.maxWidth,minH:Jt.minHeight,maxH:Jt.maxHeight,overscroll:Jt.overscrollBehavior,overscrollX:Jt.overscrollBehaviorX,overscrollY:Jt.overscrollBehaviorY});var FP={listStyleType:!0,listStylePosition:!0,listStylePos:E.prop("listStylePosition"),listStyleImage:!0,listStyleImg:E.prop("listStyleImage")};function NP(e,t,n,r){const o=typeof t=="string"?t.split("."):[t];for(r=0;r{const t=new WeakMap;return(r,o,i,s)=>{if(typeof r>"u")return e(r,o,i);t.has(r)||t.set(r,new Map);const a=t.get(r);if(a.has(o))return a.get(o);const l=e(r,o,i,s);return a.set(o,l),l}},VP=BP(NP),HP={border:"0px",clip:"rect(0, 0, 0, 0)",width:"1px",height:"1px",margin:"-1px",padding:"0px",overflow:"hidden",whiteSpace:"nowrap",position:"absolute"},WP={position:"static",width:"auto",height:"auto",clip:"auto",padding:"0",margin:"0",overflow:"visible",whiteSpace:"normal"},jd=(e,t,n)=>{const r={},o=VP(e,t,{});for(const i in o)i in n&&n[i]!=null||(r[i]=o[i]);return r},UP={srOnly:{transform(e){return e===!0?HP:e==="focusable"?WP:{}}},layerStyle:{processResult:!0,transform:(e,t,n)=>jd(t,`layerStyles.${e}`,n)},textStyle:{processResult:!0,transform:(e,t,n)=>jd(t,`textStyles.${e}`,n)},apply:{processResult:!0,transform:(e,t,n)=>jd(t,e,n)}},Ms={position:!0,pos:E.prop("position"),zIndex:E.prop("zIndex","zIndices"),inset:E.spaceT("inset"),insetX:E.spaceT(["left","right"]),insetInline:E.spaceT("insetInline"),insetY:E.spaceT(["top","bottom"]),insetBlock:E.spaceT("insetBlock"),top:E.spaceT("top"),insetBlockStart:E.spaceT("insetBlockStart"),bottom:E.spaceT("bottom"),insetBlockEnd:E.spaceT("insetBlockEnd"),left:E.spaceT("left"),insetInlineStart:E.logical({scale:"space",property:{ltr:"left",rtl:"right"}}),right:E.spaceT("right"),insetInlineEnd:E.logical({scale:"space",property:{ltr:"right",rtl:"left"}})};Object.assign(Ms,{insetStart:Ms.insetInlineStart,insetEnd:Ms.insetInlineEnd});var GP={ring:{transform:ue.ring},ringColor:E.colors("--chakra-ring-color"),ringOffset:E.prop("--chakra-ring-offset-width"),ringOffsetColor:E.colors("--chakra-ring-offset-color"),ringInset:E.prop("--chakra-ring-inset")},Ee={margin:E.spaceT("margin"),marginTop:E.spaceT("marginTop"),marginBlockStart:E.spaceT("marginBlockStart"),marginRight:E.spaceT("marginRight"),marginInlineEnd:E.spaceT("marginInlineEnd"),marginBottom:E.spaceT("marginBottom"),marginBlockEnd:E.spaceT("marginBlockEnd"),marginLeft:E.spaceT("marginLeft"),marginInlineStart:E.spaceT("marginInlineStart"),marginX:E.spaceT(["marginInlineStart","marginInlineEnd"]),marginInline:E.spaceT("marginInline"),marginY:E.spaceT(["marginTop","marginBottom"]),marginBlock:E.spaceT("marginBlock"),padding:E.space("padding"),paddingTop:E.space("paddingTop"),paddingBlockStart:E.space("paddingBlockStart"),paddingRight:E.space("paddingRight"),paddingBottom:E.space("paddingBottom"),paddingBlockEnd:E.space("paddingBlockEnd"),paddingLeft:E.space("paddingLeft"),paddingInlineStart:E.space("paddingInlineStart"),paddingInlineEnd:E.space("paddingInlineEnd"),paddingX:E.space(["paddingInlineStart","paddingInlineEnd"]),paddingInline:E.space("paddingInline"),paddingY:E.space(["paddingTop","paddingBottom"]),paddingBlock:E.space("paddingBlock")};Object.assign(Ee,{m:Ee.margin,mt:Ee.marginTop,mr:Ee.marginRight,me:Ee.marginInlineEnd,marginEnd:Ee.marginInlineEnd,mb:Ee.marginBottom,ml:Ee.marginLeft,ms:Ee.marginInlineStart,marginStart:Ee.marginInlineStart,mx:Ee.marginX,my:Ee.marginY,p:Ee.padding,pt:Ee.paddingTop,py:Ee.paddingY,px:Ee.paddingX,pb:Ee.paddingBottom,pl:Ee.paddingLeft,ps:Ee.paddingInlineStart,paddingStart:Ee.paddingInlineStart,pr:Ee.paddingRight,pe:Ee.paddingInlineEnd,paddingEnd:Ee.paddingInlineEnd});var KP={textDecorationColor:E.colors("textDecorationColor"),textDecoration:!0,textDecor:{property:"textDecoration"},textDecorationLine:!0,textDecorationStyle:!0,textDecorationThickness:!0,textUnderlineOffset:!0,textShadow:E.shadows("textShadow")},XP={clipPath:!0,transform:E.propT("transform",ue.transform),transformOrigin:!0,translateX:E.spaceT("--chakra-translate-x"),translateY:E.spaceT("--chakra-translate-y"),skewX:E.degreeT("--chakra-skew-x"),skewY:E.degreeT("--chakra-skew-y"),scaleX:E.prop("--chakra-scale-x"),scaleY:E.prop("--chakra-scale-y"),scale:E.prop(["--chakra-scale-x","--chakra-scale-y"]),rotate:E.degreeT("--chakra-rotate")},qP={transition:!0,transitionDelay:!0,animation:!0,willChange:!0,transitionDuration:E.prop("transitionDuration","transition.duration"),transitionProperty:E.prop("transitionProperty","transition.property"),transitionTimingFunction:E.prop("transitionTimingFunction","transition.easing")},YP={fontFamily:E.prop("fontFamily","fonts"),fontSize:E.prop("fontSize","fontSizes",ue.px),fontWeight:E.prop("fontWeight","fontWeights"),lineHeight:E.prop("lineHeight","lineHeights"),letterSpacing:E.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"}},QP={scrollBehavior:!0,scrollSnapAlign:!0,scrollSnapStop:!0,scrollSnapType:!0,scrollMargin:E.spaceT("scrollMargin"),scrollMarginTop:E.spaceT("scrollMarginTop"),scrollMarginBottom:E.spaceT("scrollMarginBottom"),scrollMarginLeft:E.spaceT("scrollMarginLeft"),scrollMarginRight:E.spaceT("scrollMarginRight"),scrollMarginX:E.spaceT(["scrollMarginLeft","scrollMarginRight"]),scrollMarginY:E.spaceT(["scrollMarginTop","scrollMarginBottom"]),scrollPadding:E.spaceT("scrollPadding"),scrollPaddingTop:E.spaceT("scrollPaddingTop"),scrollPaddingBottom:E.spaceT("scrollPaddingBottom"),scrollPaddingLeft:E.spaceT("scrollPaddingLeft"),scrollPaddingRight:E.spaceT("scrollPaddingRight"),scrollPaddingX:E.spaceT(["scrollPaddingLeft","scrollPaddingRight"]),scrollPaddingY:E.spaceT(["scrollPaddingTop","scrollPaddingBottom"])};function fS(e){return _t(e)&&e.reference?e.reference:String(e)}var Pc=(e,...t)=>t.map(fS).join(` ${e} `).replace(/calc/g,""),Kg=(...e)=>`calc(${Pc("+",...e)})`,Xg=(...e)=>`calc(${Pc("-",...e)})`,Sp=(...e)=>`calc(${Pc("*",...e)})`,qg=(...e)=>`calc(${Pc("/",...e)})`,Yg=e=>{const t=fS(e);return t!=null&&!Number.isNaN(parseFloat(t))?String(t).startsWith("-")?String(t).slice(1):`-${t}`:Sp(t,-1)},lo=Object.assign(e=>({add:(...t)=>lo(Kg(e,...t)),subtract:(...t)=>lo(Xg(e,...t)),multiply:(...t)=>lo(Sp(e,...t)),divide:(...t)=>lo(qg(e,...t)),negate:()=>lo(Yg(e)),toString:()=>e.toString()}),{add:Kg,subtract:Xg,multiply:Sp,divide:qg,negate:Yg});function ZP(e,t="-"){return e.replace(/\s+/g,t)}function JP(e){const t=ZP(e.toString());return t4(e4(t))}function e4(e){return e.includes("\\.")?e:!Number.isInteger(parseFloat(e.toString()))?e.replace(".","\\."):e}function t4(e){return e.replace(/[!-,/:-@[-^`{-~]/g,"\\$&")}function n4(e,t=""){return[t,e].filter(Boolean).join("-")}function r4(e,t){return`var(${e}${t?`, ${t}`:""})`}function o4(e,t=""){return JP(`--${n4(e,t)}`)}function H(e,t,n){const r=o4(e,n);return{variable:r,reference:r4(r,t)}}function i4(e,t){const n={};for(const r of t){if(Array.isArray(r)){const[o,i]=r;n[o]=H(`${e}-${o}`,i);continue}n[r]=H(`${e}-${r}`)}return n}function s4(e){const t=e==null?0:e.length;return t?e[t-1]:void 0}function a4(e){const t=parseFloat(e.toString()),n=e.toString().replace(String(t),"");return{unitless:!n,value:t,unit:n}}function wp(e){if(e==null)return e;const{unitless:t}=a4(e);return t||typeof e=="number"?`${e}px`:e}var pS=(e,t)=>parseInt(e[1],10)>parseInt(t[1],10)?1:-1,lm=e=>Object.fromEntries(Object.entries(e).sort(pS));function Qg(e){const t=lm(e);return Object.assign(Object.values(t),t)}function l4(e){const t=Object.keys(lm(e));return new Set(t)}function Zg(e){var t;if(!e)return e;e=(t=wp(e))!=null?t:e;const n=-.02;return typeof e=="number"?`${e+n}`:e.replace(/(\d+\.?\d*)/u,r=>`${parseFloat(r)+n}`)}function gs(e,t){const n=["@media screen"];return e&&n.push("and",`(min-width: ${wp(e)})`),t&&n.push("and",`(max-width: ${wp(t)})`),n.join(" ")}function u4(e){var t;if(!e)return null;e.base=(t=e.base)!=null?t:"0px";const n=Qg(e),r=Object.entries(e).sort(pS).map(([s,a],l,u)=>{var c;let[,d]=(c=u[l+1])!=null?c:[];return d=parseFloat(d)>0?Zg(d):void 0,{_minW:Zg(a),breakpoint:s,minW:a,maxW:d,maxWQuery:gs(null,d),minWQuery:gs(a),minMaxQuery:gs(a,d)}}),o=l4(e),i=Array.from(o.values());return{keys:o,normalized:n,isResponsive(s){const a=Object.keys(s);return a.length>0&&a.every(l=>o.has(l))},asObject:lm(e),asArray:Qg(e),details:r,get(s){return r.find(a=>a.breakpoint===s)},media:[null,...n.map(s=>gs(s)).slice(1)],toArrayValue(s){if(!_t(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(;s4(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 Je={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}`},gr=e=>hS(t=>e(t,"&"),"[role=group]","[data-group]",".group"),Hn=e=>hS(t=>e(t,"~ &"),"[data-peer]",".peer"),hS=(e,...t)=>t.map(e).join(", "),Tc={_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:gr(Je.hover),_peerHover:Hn(Je.hover),_groupFocus:gr(Je.focus),_peerFocus:Hn(Je.focus),_groupFocusVisible:gr(Je.focusVisible),_peerFocusVisible:Hn(Je.focusVisible),_groupActive:gr(Je.active),_peerActive:Hn(Je.active),_groupDisabled:gr(Je.disabled),_peerDisabled:Hn(Je.disabled),_groupInvalid:gr(Je.invalid),_peerInvalid:Hn(Je.invalid),_groupChecked:gr(Je.checked),_peerChecked:Hn(Je.checked),_groupFocusWithin:gr(Je.focusWithin),_peerFocusWithin:Hn(Je.focusWithin),_peerPlaceholderShown:Hn(Je.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]"},mS=Object.keys(Tc);function Jg(e,t){return H(String(e).replace(/\./g,"-"),void 0,t)}function c4(e,t){let n={};const r={};for(const[o,i]of Object.entries(e)){const{isSemantic:s,value:a}=i,{variable:l,reference:u}=Jg(o,t==null?void 0:t.cssVarPrefix);if(!s){if(o.startsWith("space")){const f=o.split("."),[p,...m]=f,y=`${p}.-${m.join(".")}`,w=lo.negate(a),g=lo.negate(u);r[y]={value:w,var:l,varRef:g}}n[l]=a,r[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:w}=Jg(m,t==null?void 0:t.cssVarPrefix);return w},d=_t(a)?a:{default:a};n=rn(n,Object.entries(d).reduce((f,[p,m])=>{var y,w;if(!m)return f;const g=c(`${m}`);if(p==="default")return f[l]=g,f;const h=(w=(y=Tc)==null?void 0:y[p])!=null?w:p;return f[h]={[l]:g},f},{})),r[o]={value:u,var:l,varRef:u}}return{cssVars:n,cssMap:r}}function d4(e,t=[]){const n=Object.assign({},e);for(const r of t)r in n&&delete n[r];return n}function f4(e,t){const n={};for(const r of t)r in e&&(n[r]=e[r]);return n}function p4(e){return typeof e=="object"&&e!=null&&!Array.isArray(e)}function ev(e,t,n={}){const{stop:r,getKey:o}=n;function i(s,a=[]){var l;if(p4(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(r!=null&&r(s,p))return t(s,a);u[f]=i(d,p)}return u}return t(s,a)}return i(e)}var h4=["colors","borders","borderWidths","borderStyles","fonts","fontSizes","fontWeights","gradients","letterSpacings","lineHeights","radii","space","shadows","sizes","zIndices","transition","blur","breakpoints"];function m4(e){return f4(e,h4)}function g4(e){return e.semanticTokens}function v4(e){const{__cssMap:t,__cssVars:n,__breakpoints:r,...o}=e;return o}var y4=e=>mS.includes(e)||e==="default";function b4({tokens:e,semanticTokens:t}){const n={};return ev(e,(r,o)=>{r!=null&&(n[o.join(".")]={isSemantic:!1,value:r})}),ev(t,(r,o)=>{r!=null&&(n[o.join(".")]={isSemantic:!0,value:r})},{stop:r=>Object.keys(r).every(y4)}),n}function x4(e){var t;const n=v4(e),r=m4(n),o=g4(n),i=b4({tokens:r,semanticTokens:o}),s=(t=n.config)==null?void 0:t.cssVarPrefix,{cssMap:a,cssVars:l}=c4(i,{cssVarPrefix:s});return Object.assign(n,{__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:u4(n.breakpoints)}),n}var um=rn({},Vl,ce,IP,zu,Jt,DP,GP,jP,dS,UP,Ms,xp,Ee,QP,YP,KP,XP,FP,qP);Object.assign({},Ee,Jt,zu,dS,Ms);var S4=[...Object.keys(um),...mS],w4={...um,...Tc},k4=e=>e in w4,C4=e=>t=>{if(!t.__breakpoints)return e;const{isResponsive:n,toArrayValue:r,media:o}=t.__breakpoints,i={};for(const s in e){let a=Yn(e[s],t);if(a==null)continue;if(a=_t(a)&&n(a)?r(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"&&!_4(t),T4=(e,t)=>{var n,r;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]=E4(t);return t=(r=(n=o(s))!=null?n:i(a))!=null?r:i(t),t};function A4(e){const{configs:t={},pseudos:n={},theme:r}=e,o=(i,s=!1)=>{var a,l,u;const c=Yn(i,r),d=C4(c)(r);let f={};for(let p in d){const m=d[p];let y=Yn(m,r);p in n&&(p=n[p]),P4(p,y)&&(y=T4(r,y));let w=t[p];if(w===!0&&(w={property:p}),_t(y)){f[p]=(a=f[p])!=null?a:{},f[p]=rn({},f[p],o(y,!0));continue}let g=(u=(l=w==null?void 0:w.transform)==null?void 0:l.call(w,y,r,c))!=null?u:y;g=w!=null&&w.processResult?o(g,!0):g;const h=Yn(w==null?void 0:w.property,r);if(!s&&(w!=null&&w.static)){const v=Yn(w.static,r);f=rn({},f,v)}if(h&&Array.isArray(h)){for(const v of h)f[v]=g;continue}if(h){h==="&"&&_t(g)?f=rn({},f,g):f[h]=g;continue}if(_t(g)){f=rn({},f,g);continue}f[p]=g}return f};return o}var gS=e=>t=>A4({theme:t,pseudos:Tc,configs:um})(e);function we(e){return{definePartsStyle(t){return t},defineMultiStyleConfig(t){return{parts:e,...t}}}}function R4(e,t){if(Array.isArray(e))return e;if(_t(e))return t(e);if(e!=null)return[e]}function $4(e,t){for(let n=t+1;n{rn(u,{[v]:f?h[v]:{[g]:h[v]}})});continue}if(!p){f?rn(u,h):u[g]=h;continue}u[g]=h}}return u}}function z4(e){return t=>{var n;const{variant:r,size:o,theme:i}=t,s=M4(i);return rn({},Yn((n=e.baseStyle)!=null?n:{},t),s(e,"sizes",o,t),s(e,"variants",r,t))}}function bt(e){return d4(e,["styleConfig","size","variant","colorScheme"])}var O4=["borders","breakpoints","colors","components","config","direction","fonts","fontSizes","fontWeights","letterSpacings","lineHeights","radii","shadows","sizes","space","styles","transition","zIndices"];function L4(e){return _t(e)?O4.every(t=>Object.prototype.hasOwnProperty.call(e,t)):!1}var I4={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"},D4={"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)"},j4={"ultra-fast":"50ms",faster:"100ms",fast:"150ms",normal:"200ms",slow:"300ms",slower:"400ms","ultra-slow":"500ms"},F4={property:I4,easing:D4,duration:j4},N4=F4,B4={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},V4=B4,H4={none:0,"1px":"1px solid","2px":"2px solid","4px":"4px solid","8px":"8px solid"},W4=H4,U4={base:"0em",sm:"30em",md:"48em",lg:"62em",xl:"80em","2xl":"96em"},G4=U4,K4={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"}},X4=K4,q4={none:"0",sm:"0.125rem",base:"0.25rem",md:"0.375rem",lg:"0.5rem",xl:"0.75rem","2xl":"1rem","3xl":"1.5rem",full:"9999px"},Y4=q4,Q4={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"},Z4=Q4,J4={none:0,sm:"4px",base:"8px",md:"12px",lg:"16px",xl:"24px","2xl":"40px","3xl":"64px"},e3=J4,t3={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"}},vS=t3,yS={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"},n3={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"},r3={sm:"640px",md:"768px",lg:"1024px",xl:"1280px"},o3={...yS,...n3,container:r3},bS=o3,i3={breakpoints:G4,zIndices:V4,radii:Y4,blur:e3,colors:X4,...vS,sizes:bS,shadows:Z4,space:yS,borders:W4,transition:N4},{defineMultiStyleConfig:s3,definePartsStyle:vs}=we(["stepper","step","title","description","indicator","separator","icon","number"]),Gn=H("stepper-indicator-size"),ni=H("stepper-icon-size"),ri=H("stepper-title-font-size"),ys=H("stepper-description-font-size"),is=H("stepper-accent-color"),a3=vs(({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"},[is.variable]:`colors.${e}.500`,_dark:{[is.variable]:`colors.${e}.200`}},title:{fontSize:ri.reference,fontWeight:"medium"},description:{fontSize:ys.reference,color:"chakra-subtle-text"},number:{fontSize:ri.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:ni.reference,height:ni.reference},indicator:{flexShrink:0,borderRadius:"full",width:Gn.reference,height:Gn.reference,display:"flex",justifyContent:"center",alignItems:"center","&[data-status=active]":{borderWidth:"2px",borderColor:is.reference},"&[data-status=complete]":{bg:is.reference,color:"chakra-inverse-text"},"&[data-status=incomplete]":{borderWidth:"2px"}},separator:{bg:"chakra-border-color",flex:"1","&[data-status=complete]":{bg:is.reference},"&[data-orientation=horizontal]":{width:"100%",height:"2px",marginStart:"2"},"&[data-orientation=vertical]":{width:"2px",position:"absolute",height:"100%",maxHeight:`calc(100% - ${Gn.reference} - 8px)`,top:`calc(${Gn.reference} + 4px)`,insetStart:`calc(${Gn.reference} / 2 - 1px)`}}})),l3=s3({baseStyle:a3,sizes:{xs:vs({stepper:{[Gn.variable]:"sizes.4",[ni.variable]:"sizes.3",[ri.variable]:"fontSizes.xs",[ys.variable]:"fontSizes.xs"}}),sm:vs({stepper:{[Gn.variable]:"sizes.6",[ni.variable]:"sizes.4",[ri.variable]:"fontSizes.sm",[ys.variable]:"fontSizes.xs"}}),md:vs({stepper:{[Gn.variable]:"sizes.8",[ni.variable]:"sizes.5",[ri.variable]:"fontSizes.md",[ys.variable]:"fontSizes.sm"}}),lg:vs({stepper:{[Gn.variable]:"sizes.10",[ni.variable]:"sizes.6",[ri.variable]:"fontSizes.lg",[ys.variable]:"fontSizes.md"}})},defaultProps:{size:"md",colorScheme:"blue"}});function me(e,t={}){let n=!1;function r(){if(!n){n=!0;return}throw new Error("[anatomy] .part(...) should only be called once. Did you mean to use .extend(...) ?")}function o(...c){r();for(const d of c)t[d]=l(d);return me(e,t)}function i(...c){for(const d of c)d in t||(t[d]=l(d));return me(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 u3=me("accordion").parts("root","container","button","panel").extend("icon"),c3=me("alert").parts("title","description","container").extend("icon","spinner"),d3=me("avatar").parts("label","badge","container").extend("excessLabel","group"),f3=me("breadcrumb").parts("link","item","container").extend("separator");me("button").parts();var p3=me("checkbox").parts("control","icon","container").extend("label");me("progress").parts("track","filledTrack").extend("label");var h3=me("drawer").parts("overlay","dialogContainer","dialog").extend("header","closeButton","body","footer"),m3=me("editable").parts("preview","input","textarea"),g3=me("form").parts("container","requiredIndicator","helperText"),v3=me("formError").parts("text","icon"),y3=me("input").parts("addon","field","element","group"),b3=me("list").parts("container","item","icon"),x3=me("menu").parts("button","list","item").extend("groupTitle","icon","command","divider"),S3=me("modal").parts("overlay","dialogContainer","dialog").extend("header","closeButton","body","footer"),w3=me("numberinput").parts("root","field","stepperGroup","stepper");me("pininput").parts("field");var k3=me("popover").parts("content","header","body","footer").extend("popper","arrow","closeButton"),C3=me("progress").parts("label","filledTrack","track"),E3=me("radio").parts("container","control","label"),_3=me("select").parts("field","icon"),P3=me("slider").parts("container","track","thumb","filledTrack","mark"),T3=me("stat").parts("container","label","helpText","number","icon"),A3=me("switch").parts("container","track","thumb"),R3=me("table").parts("table","thead","tbody","tr","th","td","tfoot","caption"),$3=me("tabs").parts("root","tab","tablist","tabpanel","tabpanels","indicator"),M3=me("tag").parts("container","label","closeButton"),z3=me("card").parts("container","header","body","footer");function ho(e,t,n){return Math.min(Math.max(e,n),t)}class O3 extends Error{constructor(t){super(`Failed to parse color: "${t}"`)}}var bs=O3;function cm(e){if(typeof e!="string")throw new bs(e);if(e.trim().toLowerCase()==="transparent")return[0,0,0,0];let t=e.trim();t=V3.test(e)?D3(e):e;const n=j3.exec(t);if(n){const s=Array.from(n).slice(1);return[...s.slice(0,3).map(a=>parseInt(fa(a,2),16)),parseInt(fa(s[3]||"f",2),16)/255]}const r=F3.exec(t);if(r){const s=Array.from(r).slice(1);return[...s.slice(0,3).map(a=>parseInt(a,16)),parseInt(s[3]||"ff",16)/255]}const o=N3.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=B3.exec(t);if(i){const[s,a,l,u]=Array.from(i).slice(1).map(parseFloat);if(ho(0,100,a)!==a)throw new bs(e);if(ho(0,100,l)!==l)throw new bs(e);return[...H3(s,a,l),Number.isNaN(u)?1:u]}throw new bs(e)}function L3(e){let t=5381,n=e.length;for(;n;)t=t*33^e.charCodeAt(--n);return(t>>>0)%2341}const tv=e=>parseInt(e.replace(/_/g,""),36),I3="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 n=tv(t.substring(0,3)),r=tv(t.substring(3)).toString(16);let o="";for(let i=0;i<6-r.length;i++)o+="0";return e[n]=`${o}${r}`,e},{});function D3(e){const t=e.toLowerCase().trim(),n=I3[L3(t)];if(!n)throw new bs(e);return`#${n}`}const fa=(e,t)=>Array.from(Array(t)).map(()=>e).join(""),j3=new RegExp(`^#${fa("([a-f0-9])",3)}([a-f0-9])?$`,"i"),F3=new RegExp(`^#${fa("([a-f0-9]{2})",3)}([a-f0-9]{2})?$`,"i"),N3=new RegExp(`^rgba?\\(\\s*(\\d+)\\s*${fa(",\\s*(\\d+)\\s*",2)}(?:,\\s*([\\d.]+))?\\s*\\)$`,"i"),B3=/^hsla?\(\s*([\d.]+)\s*,\s*([\d.]+)%\s*,\s*([\d.]+)%(?:\s*,\s*([\d.]+))?\s*\)$/i,V3=/^[a-z]+$/i,nv=e=>Math.round(e*255),H3=(e,t,n)=>{let r=n/100;if(t===0)return[r,r,r].map(nv);const o=(e%360+360)%360/60,i=(1-Math.abs(2*r-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=r-i/2,d=a+c,f=l+c,p=u+c;return[d,f,p].map(nv)};function W3(e,t,n,r){return`rgba(${ho(0,255,e).toFixed()}, ${ho(0,255,t).toFixed()}, ${ho(0,255,n).toFixed()}, ${parseFloat(ho(0,1,r).toFixed(3))})`}function U3(e,t){const[n,r,o,i]=cm(e);return W3(n,r,o,i-t)}function G3(e){const[t,n,r,o]=cm(e);let i=s=>{const a=ho(0,255,s).toString(16);return a.length===1?`0${a}`:a};return`#${i(t)}${i(n)}${i(r)}${o<1?i(Math.round(o*255)):""}`}function K3(e,t,n,r,o){for(t=t.split?t.split("."):t,r=0;rObject.keys(e).length===0,ht=(e,t,n)=>{const r=K3(e,`colors.${t}`,t);try{return G3(r),r}catch{return n??"#000000"}},q3=e=>{const[t,n,r]=cm(e);return(t*299+n*587+r*114)/1e3},Y3=e=>t=>{const n=ht(t,e);return q3(n)<128?"dark":"light"},Q3=e=>t=>Y3(e)(t)==="dark",$i=(e,t)=>n=>{const r=ht(n,e);return U3(r,1-t)};function rv(e="1rem",t="rgba(255, 255, 255, 0.15)"){return{backgroundImage:`linear-gradient( + 45deg, + ${t} 25%, + transparent 25%, + transparent 50%, + ${t} 50%, + ${t} 75%, + transparent 75%, + transparent + )`,backgroundSize:`${e} ${e}`}}var Z3=()=>`#${Math.floor(Math.random()*16777215).toString(16).padEnd(6,"0")}`;function J3(e){const t=Z3();return!e||X3(e)?t:e.string&&e.colors?tT(e.string,e.colors):e.string&&!e.colors?eT(e.string):e.colors&&!e.string?nT(e.colors):t}function eT(e){let t=0;if(e.length===0)return t.toString();for(let r=0;r>r*8&255;n+=`00${o.toString(16)}`.substr(-2)}return n}function tT(e,t){let n=0;if(e.length===0)return t[0];for(let r=0;rn.colorMode==="dark"?t:e}function dm(e){const{orientation:t,vertical:n,horizontal:r}=e;return t?t==="vertical"?n:r:{}}function xS(e){return _t(e)&&e.reference?e.reference:String(e)}var Ac=(e,...t)=>t.map(xS).join(` ${e} `).replace(/calc/g,""),ov=(...e)=>`calc(${Ac("+",...e)})`,iv=(...e)=>`calc(${Ac("-",...e)})`,kp=(...e)=>`calc(${Ac("*",...e)})`,sv=(...e)=>`calc(${Ac("/",...e)})`,av=e=>{const t=xS(e);return t!=null&&!Number.isNaN(parseFloat(t))?String(t).startsWith("-")?String(t).slice(1):`-${t}`:kp(t,-1)},Kn=Object.assign(e=>({add:(...t)=>Kn(ov(e,...t)),subtract:(...t)=>Kn(iv(e,...t)),multiply:(...t)=>Kn(kp(e,...t)),divide:(...t)=>Kn(sv(e,...t)),negate:()=>Kn(av(e)),toString:()=>e.toString()}),{add:ov,subtract:iv,multiply:kp,divide:sv,negate:av});function rT(e){return!Number.isInteger(parseFloat(e.toString()))}function oT(e,t="-"){return e.replace(/\s+/g,t)}function SS(e){const t=oT(e.toString());return t.includes("\\.")?e:rT(e)?t.replace(".","\\."):e}function iT(e,t=""){return[t,SS(e)].filter(Boolean).join("-")}function sT(e,t){return`var(${SS(e)}${t?`, ${t}`:""})`}function aT(e,t=""){return`--${iT(e,t)}`}function Ke(e,t){const n=aT(e,t==null?void 0:t.prefix);return{variable:n,reference:sT(n,lT(t==null?void 0:t.fallback))}}function lT(e){return typeof e=="string"?e:e==null?void 0:e.reference}var{defineMultiStyleConfig:uT,definePartsStyle:Hl}=we(A3.keys),zs=Ke("switch-track-width"),yo=Ke("switch-track-height"),Fd=Ke("switch-track-diff"),cT=Kn.subtract(zs,yo),Cp=Ke("switch-thumb-x"),ss=Ke("switch-bg"),dT=e=>{const{colorScheme:t}=e;return{borderRadius:"full",p:"0.5",width:[zs.reference],height:[yo.reference],transitionProperty:"common",transitionDuration:"fast",[ss.variable]:"colors.gray.300",_dark:{[ss.variable]:"colors.whiteAlpha.400"},_focusVisible:{boxShadow:"outline"},_disabled:{opacity:.4,cursor:"not-allowed"},_checked:{[ss.variable]:`colors.${t}.500`,_dark:{[ss.variable]:`colors.${t}.200`}},bg:ss.reference}},fT={bg:"white",transitionProperty:"transform",transitionDuration:"normal",borderRadius:"inherit",width:[yo.reference],height:[yo.reference],_checked:{transform:`translateX(${Cp.reference})`}},pT=Hl(e=>({container:{[Fd.variable]:cT,[Cp.variable]:Fd.reference,_rtl:{[Cp.variable]:Kn(Fd).negate().toString()}},track:dT(e),thumb:fT})),hT={sm:Hl({container:{[zs.variable]:"1.375rem",[yo.variable]:"sizes.3"}}),md:Hl({container:{[zs.variable]:"1.875rem",[yo.variable]:"sizes.4"}}),lg:Hl({container:{[zs.variable]:"2.875rem",[yo.variable]:"sizes.6"}})},mT=uT({baseStyle:pT,sizes:hT,defaultProps:{size:"md",colorScheme:"blue"}}),{defineMultiStyleConfig:gT,definePartsStyle:bi}=we(R3.keys),vT=bi({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"}}),Ou={"&[data-is-numeric=true]":{textAlign:"end"}},yT=bi(e=>{const{colorScheme:t}=e;return{th:{color:U("gray.600","gray.400")(e),borderBottom:"1px",borderColor:U(`${t}.100`,`${t}.700`)(e),...Ou},td:{borderBottom:"1px",borderColor:U(`${t}.100`,`${t}.700`)(e),...Ou},caption:{color:U("gray.600","gray.100")(e)},tfoot:{tr:{"&:last-of-type":{th:{borderBottomWidth:0}}}}}}),bT=bi(e=>{const{colorScheme:t}=e;return{th:{color:U("gray.600","gray.400")(e),borderBottom:"1px",borderColor:U(`${t}.100`,`${t}.700`)(e),...Ou},td:{borderBottom:"1px",borderColor:U(`${t}.100`,`${t}.700`)(e),...Ou},caption:{color:U("gray.600","gray.100")(e)},tbody:{tr:{"&:nth-of-type(odd)":{"th, td":{borderBottomWidth:"1px",borderColor:U(`${t}.100`,`${t}.700`)(e)},td:{background:U(`${t}.100`,`${t}.700`)(e)}}}},tfoot:{tr:{"&:last-of-type":{th:{borderBottomWidth:0}}}}}}),xT={simple:yT,striped:bT,unstyled:{}},ST={sm:bi({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:bi({th:{px:"6",py:"3",lineHeight:"4",fontSize:"xs"},td:{px:"6",py:"4",lineHeight:"5"},caption:{px:"6",py:"2",fontSize:"sm"}}),lg:bi({th:{px:"8",py:"4",lineHeight:"5",fontSize:"sm"},td:{px:"8",py:"5",lineHeight:"6"},caption:{px:"6",py:"2",fontSize:"md"}})},wT=gT({baseStyle:vT,variants:xT,sizes:ST,defaultProps:{variant:"simple",size:"md",colorScheme:"gray"}}),St=H("tabs-color"),yn=H("tabs-bg"),gl=H("tabs-border-color"),{defineMultiStyleConfig:kT,definePartsStyle:Ln}=we($3.keys),CT=e=>{const{orientation:t}=e;return{display:t==="vertical"?"flex":"block"}},ET=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}}},_T=e=>{const{align:t="start",orientation:n}=e;return{justifyContent:{end:"flex-end",center:"center",start:"flex-start"}[t],flexDirection:n==="vertical"?"column":"row"}},PT={p:4},TT=Ln(e=>({root:CT(e),tab:ET(e),tablist:_T(e),tabpanel:PT})),AT={sm:Ln({tab:{py:1,px:4,fontSize:"sm"}}),md:Ln({tab:{fontSize:"md",py:2,px:4}}),lg:Ln({tab:{fontSize:"lg",py:3,px:4}})},RT=Ln(e=>{const{colorScheme:t,orientation:n}=e,r=n==="vertical",o=r?"borderStart":"borderBottom",i=r?"marginStart":"marginBottom";return{tablist:{[o]:"2px solid",borderColor:"inherit"},tab:{[o]:"2px solid",borderColor:"transparent",[i]:"-2px",_selected:{[St.variable]:`colors.${t}.600`,_dark:{[St.variable]:`colors.${t}.300`},borderColor:"currentColor"},_active:{[yn.variable]:"colors.gray.200",_dark:{[yn.variable]:"colors.whiteAlpha.300"}},_disabled:{_active:{bg:"none"}},color:St.reference,bg:yn.reference}}}),$T=Ln(e=>{const{colorScheme:t}=e;return{tab:{borderTopRadius:"md",border:"1px solid",borderColor:"transparent",mb:"-1px",[gl.variable]:"transparent",_selected:{[St.variable]:`colors.${t}.600`,[gl.variable]:"colors.white",_dark:{[St.variable]:`colors.${t}.300`,[gl.variable]:"colors.gray.800"},borderColor:"inherit",borderBottomColor:gl.reference},color:St.reference},tablist:{mb:"-1px",borderBottom:"1px solid",borderColor:"inherit"}}}),MT=Ln(e=>{const{colorScheme:t}=e;return{tab:{border:"1px solid",borderColor:"inherit",[yn.variable]:"colors.gray.50",_dark:{[yn.variable]:"colors.whiteAlpha.50"},mb:"-1px",_notLast:{marginEnd:"-1px"},_selected:{[yn.variable]:"colors.white",[St.variable]:`colors.${t}.600`,_dark:{[yn.variable]:"colors.gray.800",[St.variable]:`colors.${t}.300`},borderColor:"inherit",borderTopColor:"currentColor",borderBottomColor:"transparent"},color:St.reference,bg:yn.reference},tablist:{mb:"-1px",borderBottom:"1px solid",borderColor:"inherit"}}}),zT=Ln(e=>{const{colorScheme:t,theme:n}=e;return{tab:{borderRadius:"full",fontWeight:"semibold",color:"gray.600",_selected:{color:ht(n,`${t}.700`),bg:ht(n,`${t}.100`)}}}}),OT=Ln(e=>{const{colorScheme:t}=e;return{tab:{borderRadius:"full",fontWeight:"semibold",[St.variable]:"colors.gray.600",_dark:{[St.variable]:"inherit"},_selected:{[St.variable]:"colors.white",[yn.variable]:`colors.${t}.600`,_dark:{[St.variable]:"colors.gray.800",[yn.variable]:`colors.${t}.300`}},color:St.reference,bg:yn.reference}}}),LT=Ln({}),IT={line:RT,enclosed:$T,"enclosed-colored":MT,"soft-rounded":zT,"solid-rounded":OT,unstyled:LT},DT=kT({baseStyle:TT,sizes:AT,variants:IT,defaultProps:{size:"md",variant:"line",colorScheme:"blue"}}),Fe=i4("badge",["bg","color","shadow"]),jT={px:1,textTransform:"uppercase",fontSize:"xs",borderRadius:"sm",fontWeight:"bold",bg:Fe.bg.reference,color:Fe.color.reference,boxShadow:Fe.shadow.reference},FT=e=>{const{colorScheme:t,theme:n}=e,r=$i(`${t}.500`,.6)(n);return{[Fe.bg.variable]:`colors.${t}.500`,[Fe.color.variable]:"colors.white",_dark:{[Fe.bg.variable]:r,[Fe.color.variable]:"colors.whiteAlpha.800"}}},NT=e=>{const{colorScheme:t,theme:n}=e,r=$i(`${t}.200`,.16)(n);return{[Fe.bg.variable]:`colors.${t}.100`,[Fe.color.variable]:`colors.${t}.800`,_dark:{[Fe.bg.variable]:r,[Fe.color.variable]:`colors.${t}.200`}}},BT=e=>{const{colorScheme:t,theme:n}=e,r=$i(`${t}.200`,.8)(n);return{[Fe.color.variable]:`colors.${t}.500`,_dark:{[Fe.color.variable]:r},[Fe.shadow.variable]:`inset 0 0 0px 1px ${Fe.color.reference}`}},VT={solid:FT,subtle:NT,outline:BT},Os={baseStyle:jT,variants:VT,defaultProps:{variant:"subtle",colorScheme:"gray"}},{defineMultiStyleConfig:HT,definePartsStyle:bo}=we(M3.keys),lv=H("tag-bg"),uv=H("tag-color"),Nd=H("tag-shadow"),Wl=H("tag-min-height"),Ul=H("tag-min-width"),Gl=H("tag-font-size"),Kl=H("tag-padding-inline"),WT={fontWeight:"medium",lineHeight:1.2,outline:0,[uv.variable]:Fe.color.reference,[lv.variable]:Fe.bg.reference,[Nd.variable]:Fe.shadow.reference,color:uv.reference,bg:lv.reference,boxShadow:Nd.reference,borderRadius:"md",minH:Wl.reference,minW:Ul.reference,fontSize:Gl.reference,px:Kl.reference,_focusVisible:{[Nd.variable]:"shadows.outline"}},UT={lineHeight:1.2,overflow:"visible"},GT={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}},KT=bo({container:WT,label:UT,closeButton:GT}),XT={sm:bo({container:{[Wl.variable]:"sizes.5",[Ul.variable]:"sizes.5",[Gl.variable]:"fontSizes.xs",[Kl.variable]:"space.2"},closeButton:{marginEnd:"-2px",marginStart:"0.35rem"}}),md:bo({container:{[Wl.variable]:"sizes.6",[Ul.variable]:"sizes.6",[Gl.variable]:"fontSizes.sm",[Kl.variable]:"space.2"}}),lg:bo({container:{[Wl.variable]:"sizes.8",[Ul.variable]:"sizes.8",[Gl.variable]:"fontSizes.md",[Kl.variable]:"space.3"}})},qT={subtle:bo(e=>{var t;return{container:(t=Os.variants)==null?void 0:t.subtle(e)}}),solid:bo(e=>{var t;return{container:(t=Os.variants)==null?void 0:t.solid(e)}}),outline:bo(e=>{var t;return{container:(t=Os.variants)==null?void 0:t.outline(e)}})},YT=HT({variants:qT,baseStyle:KT,sizes:XT,defaultProps:{size:"md",variant:"subtle",colorScheme:"gray"}}),{definePartsStyle:Qn,defineMultiStyleConfig:QT}=we(y3.keys),oi=H("input-height"),ii=H("input-font-size"),si=H("input-padding"),ai=H("input-border-radius"),ZT=Qn({addon:{height:oi.reference,fontSize:ii.reference,px:si.reference,borderRadius:ai.reference},field:{width:"100%",height:oi.reference,fontSize:ii.reference,px:si.reference,borderRadius:ai.reference,minWidth:0,outline:0,position:"relative",appearance:"none",transitionProperty:"common",transitionDuration:"normal",_disabled:{opacity:.4,cursor:"not-allowed"}}}),vr={lg:{[ii.variable]:"fontSizes.lg",[si.variable]:"space.4",[ai.variable]:"radii.md",[oi.variable]:"sizes.12"},md:{[ii.variable]:"fontSizes.md",[si.variable]:"space.4",[ai.variable]:"radii.md",[oi.variable]:"sizes.10"},sm:{[ii.variable]:"fontSizes.sm",[si.variable]:"space.3",[ai.variable]:"radii.sm",[oi.variable]:"sizes.8"},xs:{[ii.variable]:"fontSizes.xs",[si.variable]:"space.2",[ai.variable]:"radii.sm",[oi.variable]:"sizes.6"}},JT={lg:Qn({field:vr.lg,group:vr.lg}),md:Qn({field:vr.md,group:vr.md}),sm:Qn({field:vr.sm,group:vr.sm}),xs:Qn({field:vr.xs,group:vr.xs})};function fm(e){const{focusBorderColor:t,errorBorderColor:n}=e;return{focusBorderColor:t||U("blue.500","blue.300")(e),errorBorderColor:n||U("red.500","red.300")(e)}}var eA=Qn(e=>{const{theme:t}=e,{focusBorderColor:n,errorBorderColor:r}=fm(e);return{field:{border:"1px solid",borderColor:"inherit",bg:"inherit",_hover:{borderColor:U("gray.300","whiteAlpha.400")(e)},_readOnly:{boxShadow:"none !important",userSelect:"all"},_invalid:{borderColor:ht(t,r),boxShadow:`0 0 0 1px ${ht(t,r)}`},_focusVisible:{zIndex:1,borderColor:ht(t,n),boxShadow:`0 0 0 1px ${ht(t,n)}`}},addon:{border:"1px solid",borderColor:U("inherit","whiteAlpha.50")(e),bg:U("gray.100","whiteAlpha.300")(e)}}}),tA=Qn(e=>{const{theme:t}=e,{focusBorderColor:n,errorBorderColor:r}=fm(e);return{field:{border:"2px solid",borderColor:"transparent",bg:U("gray.100","whiteAlpha.50")(e),_hover:{bg:U("gray.200","whiteAlpha.100")(e)},_readOnly:{boxShadow:"none !important",userSelect:"all"},_invalid:{borderColor:ht(t,r)},_focusVisible:{bg:"transparent",borderColor:ht(t,n)}},addon:{border:"2px solid",borderColor:"transparent",bg:U("gray.100","whiteAlpha.50")(e)}}}),nA=Qn(e=>{const{theme:t}=e,{focusBorderColor:n,errorBorderColor:r}=fm(e);return{field:{borderBottom:"1px solid",borderColor:"inherit",borderRadius:"0",px:"0",bg:"transparent",_readOnly:{boxShadow:"none !important",userSelect:"all"},_invalid:{borderColor:ht(t,r),boxShadow:`0px 1px 0px 0px ${ht(t,r)}`},_focusVisible:{borderColor:ht(t,n),boxShadow:`0px 1px 0px 0px ${ht(t,n)}`}},addon:{borderBottom:"2px solid",borderColor:"inherit",borderRadius:"0",px:"0",bg:"transparent"}}}),rA=Qn({field:{bg:"transparent",px:"0",height:"auto"},addon:{bg:"transparent",px:"0",height:"auto"}}),oA={outline:eA,filled:tA,flushed:nA,unstyled:rA},pe=QT({baseStyle:ZT,sizes:JT,variants:oA,defaultProps:{size:"md",variant:"outline"}}),cv,iA={...(cv=pe.baseStyle)==null?void 0:cv.field,paddingY:"2",minHeight:"20",lineHeight:"short",verticalAlign:"top"},dv,fv,sA={outline:e=>{var t,n;return(n=(t=pe.variants)==null?void 0:t.outline(e).field)!=null?n:{}},flushed:e=>{var t,n;return(n=(t=pe.variants)==null?void 0:t.flushed(e).field)!=null?n:{}},filled:e=>{var t,n;return(n=(t=pe.variants)==null?void 0:t.filled(e).field)!=null?n:{}},unstyled:(fv=(dv=pe.variants)==null?void 0:dv.unstyled.field)!=null?fv:{}},pv,hv,mv,gv,vv,yv,bv,xv,aA={xs:(hv=(pv=pe.sizes)==null?void 0:pv.xs.field)!=null?hv:{},sm:(gv=(mv=pe.sizes)==null?void 0:mv.sm.field)!=null?gv:{},md:(yv=(vv=pe.sizes)==null?void 0:vv.md.field)!=null?yv:{},lg:(xv=(bv=pe.sizes)==null?void 0:bv.lg.field)!=null?xv:{}},lA={baseStyle:iA,sizes:aA,variants:sA,defaultProps:{size:"md",variant:"outline"}},vl=Ke("tooltip-bg"),Bd=Ke("tooltip-fg"),uA=Ke("popper-arrow-bg"),cA={bg:vl.reference,color:Bd.reference,[vl.variable]:"colors.gray.700",[Bd.variable]:"colors.whiteAlpha.900",_dark:{[vl.variable]:"colors.gray.300",[Bd.variable]:"colors.gray.900"},[uA.variable]:vl.reference,px:"2",py:"0.5",borderRadius:"sm",fontWeight:"medium",fontSize:"sm",boxShadow:"md",maxW:"xs",zIndex:"tooltip"},dA={baseStyle:cA},{defineMultiStyleConfig:fA,definePartsStyle:xs}=we(C3.keys),pA=e=>{const{colorScheme:t,theme:n,isIndeterminate:r,hasStripe:o}=e,i=U(rv(),rv("1rem","rgba(0,0,0,0.1)"))(e),s=U(`${t}.500`,`${t}.200`)(e),a=`linear-gradient( + to right, + transparent 0%, + ${ht(n,s)} 50%, + transparent 100% + )`;return{...!r&&o&&i,...r?{bgImage:a}:{bgColor:s}}},hA={lineHeight:"1",fontSize:"0.25em",fontWeight:"bold",color:"white"},mA=e=>({bg:U("gray.100","whiteAlpha.300")(e)}),gA=e=>({transitionProperty:"common",transitionDuration:"slow",...pA(e)}),vA=xs(e=>({label:hA,filledTrack:gA(e),track:mA(e)})),yA={xs:xs({track:{h:"1"}}),sm:xs({track:{h:"2"}}),md:xs({track:{h:"3"}}),lg:xs({track:{h:"4"}})},bA=fA({sizes:yA,baseStyle:vA,defaultProps:{size:"md",colorScheme:"blue"}}),xA=e=>typeof e=="function";function gt(e,...t){return xA(e)?e(...t):e}var{definePartsStyle:Xl,defineMultiStyleConfig:SA}=we(p3.keys),Ls=H("checkbox-size"),wA=e=>{const{colorScheme:t}=e;return{w:Ls.reference,h:Ls.reference,transitionProperty:"box-shadow",transitionDuration:"normal",border:"2px solid",borderRadius:"sm",borderColor:"inherit",color:"white",_checked:{bg:U(`${t}.500`,`${t}.200`)(e),borderColor:U(`${t}.500`,`${t}.200`)(e),color:U("white","gray.900")(e),_hover:{bg:U(`${t}.600`,`${t}.300`)(e),borderColor:U(`${t}.600`,`${t}.300`)(e)},_disabled:{borderColor:U("gray.200","transparent")(e),bg:U("gray.200","whiteAlpha.300")(e),color:U("gray.500","whiteAlpha.500")(e)}},_indeterminate:{bg:U(`${t}.500`,`${t}.200`)(e),borderColor:U(`${t}.500`,`${t}.200`)(e),color:U("white","gray.900")(e)},_disabled:{bg:U("gray.100","whiteAlpha.100")(e),borderColor:U("gray.100","transparent")(e)},_focusVisible:{boxShadow:"outline"},_invalid:{borderColor:U("red.500","red.300")(e)}}},kA={_disabled:{cursor:"not-allowed"}},CA={userSelect:"none",_disabled:{opacity:.4}},EA={transitionProperty:"transform",transitionDuration:"normal"},_A=Xl(e=>({icon:EA,container:kA,control:gt(wA,e),label:CA})),PA={sm:Xl({control:{[Ls.variable]:"sizes.3"},label:{fontSize:"sm"},icon:{fontSize:"3xs"}}),md:Xl({control:{[Ls.variable]:"sizes.4"},label:{fontSize:"md"},icon:{fontSize:"2xs"}}),lg:Xl({control:{[Ls.variable]:"sizes.5"},label:{fontSize:"lg"},icon:{fontSize:"2xs"}})},Lu=SA({baseStyle:_A,sizes:PA,defaultProps:{size:"md",colorScheme:"blue"}}),{defineMultiStyleConfig:TA,definePartsStyle:ql}=we(E3.keys),AA=e=>{var t;const n=(t=gt(Lu.baseStyle,e))==null?void 0:t.control;return{...n,borderRadius:"full",_checked:{...n==null?void 0:n._checked,_before:{content:'""',display:"inline-block",pos:"relative",w:"50%",h:"50%",borderRadius:"50%",bg:"currentColor"}}}},RA=ql(e=>{var t,n,r,o;return{label:(n=(t=Lu).baseStyle)==null?void 0:n.call(t,e).label,container:(o=(r=Lu).baseStyle)==null?void 0:o.call(r,e).container,control:AA(e)}}),$A={md:ql({control:{w:"4",h:"4"},label:{fontSize:"md"}}),lg:ql({control:{w:"5",h:"5"},label:{fontSize:"lg"}}),sm:ql({control:{width:"3",height:"3"},label:{fontSize:"sm"}})},MA=TA({baseStyle:RA,sizes:$A,defaultProps:{size:"md",colorScheme:"blue"}}),{defineMultiStyleConfig:zA,definePartsStyle:OA}=we(_3.keys),yl=H("select-bg"),Sv,LA={...(Sv=pe.baseStyle)==null?void 0:Sv.field,appearance:"none",paddingBottom:"1px",lineHeight:"normal",bg:yl.reference,[yl.variable]:"colors.white",_dark:{[yl.variable]:"colors.gray.700"},"> option, > optgroup":{bg:yl.reference}},IA={width:"6",height:"100%",insetEnd:"2",position:"relative",color:"currentColor",fontSize:"xl",_disabled:{opacity:.5}},DA=OA({field:LA,icon:IA}),bl={paddingInlineEnd:"8"},wv,kv,Cv,Ev,_v,Pv,Tv,Av,jA={lg:{...(wv=pe.sizes)==null?void 0:wv.lg,field:{...(kv=pe.sizes)==null?void 0:kv.lg.field,...bl}},md:{...(Cv=pe.sizes)==null?void 0:Cv.md,field:{...(Ev=pe.sizes)==null?void 0:Ev.md.field,...bl}},sm:{...(_v=pe.sizes)==null?void 0:_v.sm,field:{...(Pv=pe.sizes)==null?void 0:Pv.sm.field,...bl}},xs:{...(Tv=pe.sizes)==null?void 0:Tv.xs,field:{...(Av=pe.sizes)==null?void 0:Av.xs.field,...bl},icon:{insetEnd:"1"}}},FA=zA({baseStyle:DA,sizes:jA,variants:pe.variants,defaultProps:pe.defaultProps}),Vd=H("skeleton-start-color"),Hd=H("skeleton-end-color"),NA={[Vd.variable]:"colors.gray.100",[Hd.variable]:"colors.gray.400",_dark:{[Vd.variable]:"colors.gray.800",[Hd.variable]:"colors.gray.600"},background:Vd.reference,borderColor:Hd.reference,opacity:.7,borderRadius:"sm"},BA={baseStyle:NA},Wd=H("skip-link-bg"),VA={borderRadius:"md",fontWeight:"semibold",_focusVisible:{boxShadow:"outline",padding:"4",position:"fixed",top:"6",insetStart:"6",[Wd.variable]:"colors.white",_dark:{[Wd.variable]:"colors.gray.700"},bg:Wd.reference}},HA={baseStyle:VA},{defineMultiStyleConfig:WA,definePartsStyle:Rc}=we(P3.keys),pa=H("slider-thumb-size"),ha=H("slider-track-size"),_r=H("slider-bg"),UA=e=>{const{orientation:t}=e;return{display:"inline-block",position:"relative",cursor:"pointer",_disabled:{opacity:.6,cursor:"default",pointerEvents:"none"},...dm({orientation:t,vertical:{h:"100%"},horizontal:{w:"100%"}})}},GA=e=>({...dm({orientation:e.orientation,horizontal:{h:ha.reference},vertical:{w:ha.reference}}),overflow:"hidden",borderRadius:"sm",[_r.variable]:"colors.gray.200",_dark:{[_r.variable]:"colors.whiteAlpha.200"},_disabled:{[_r.variable]:"colors.gray.300",_dark:{[_r.variable]:"colors.whiteAlpha.300"}},bg:_r.reference}),KA=e=>{const{orientation:t}=e;return{...dm({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:pa.reference,h:pa.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"}}},XA=e=>{const{colorScheme:t}=e;return{width:"inherit",height:"inherit",[_r.variable]:`colors.${t}.500`,_dark:{[_r.variable]:`colors.${t}.200`},bg:_r.reference}},qA=Rc(e=>({container:UA(e),track:GA(e),thumb:KA(e),filledTrack:XA(e)})),YA=Rc({container:{[pa.variable]:"sizes.4",[ha.variable]:"sizes.1"}}),QA=Rc({container:{[pa.variable]:"sizes.3.5",[ha.variable]:"sizes.1"}}),ZA=Rc({container:{[pa.variable]:"sizes.2.5",[ha.variable]:"sizes.0.5"}}),JA={lg:YA,md:QA,sm:ZA},eR=WA({baseStyle:qA,sizes:JA,defaultProps:{size:"md",colorScheme:"blue"}}),uo=Ke("spinner-size"),tR={width:[uo.reference],height:[uo.reference]},nR={xs:{[uo.variable]:"sizes.3"},sm:{[uo.variable]:"sizes.4"},md:{[uo.variable]:"sizes.6"},lg:{[uo.variable]:"sizes.8"},xl:{[uo.variable]:"sizes.12"}},rR={baseStyle:tR,sizes:nR,defaultProps:{size:"md"}},{defineMultiStyleConfig:oR,definePartsStyle:wS}=we(T3.keys),iR={fontWeight:"medium"},sR={opacity:.8,marginBottom:"2"},aR={verticalAlign:"baseline",fontWeight:"semibold"},lR={marginEnd:1,w:"3.5",h:"3.5",verticalAlign:"middle"},uR=wS({container:{},label:iR,helpText:sR,number:aR,icon:lR}),cR={md:wS({label:{fontSize:"sm"},helpText:{fontSize:"sm"},number:{fontSize:"2xl"}})},dR=oR({baseStyle:uR,sizes:cR,defaultProps:{size:"md"}}),Ud=H("kbd-bg"),fR={[Ud.variable]:"colors.gray.100",_dark:{[Ud.variable]:"colors.whiteAlpha.100"},bg:Ud.reference,borderRadius:"md",borderWidth:"1px",borderBottomWidth:"3px",fontSize:"0.8em",fontWeight:"bold",lineHeight:"normal",px:"0.4em",whiteSpace:"nowrap"},pR={baseStyle:fR},hR={transitionProperty:"common",transitionDuration:"fast",transitionTimingFunction:"ease-out",cursor:"pointer",textDecoration:"none",outline:"none",color:"inherit",_hover:{textDecoration:"underline"},_focusVisible:{boxShadow:"outline"}},mR={baseStyle:hR},{defineMultiStyleConfig:gR,definePartsStyle:vR}=we(b3.keys),yR={marginEnd:"2",display:"inline",verticalAlign:"text-bottom"},bR=vR({icon:yR}),xR=gR({baseStyle:bR}),{defineMultiStyleConfig:SR,definePartsStyle:wR}=we(x3.keys),Tn=H("menu-bg"),Gd=H("menu-shadow"),kR={[Tn.variable]:"#fff",[Gd.variable]:"shadows.sm",_dark:{[Tn.variable]:"colors.gray.700",[Gd.variable]:"shadows.dark-lg"},color:"inherit",minW:"3xs",py:"2",zIndex:1,borderRadius:"md",borderWidth:"1px",bg:Tn.reference,boxShadow:Gd.reference},CR={py:"1.5",px:"3",transitionProperty:"background",transitionDuration:"ultra-fast",transitionTimingFunction:"ease-in",_focus:{[Tn.variable]:"colors.gray.100",_dark:{[Tn.variable]:"colors.whiteAlpha.100"}},_active:{[Tn.variable]:"colors.gray.200",_dark:{[Tn.variable]:"colors.whiteAlpha.200"}},_expanded:{[Tn.variable]:"colors.gray.100",_dark:{[Tn.variable]:"colors.whiteAlpha.100"}},_disabled:{opacity:.4,cursor:"not-allowed"},bg:Tn.reference},ER={mx:4,my:2,fontWeight:"semibold",fontSize:"sm"},_R={display:"inline-flex",alignItems:"center",justifyContent:"center",flexShrink:0},PR={opacity:.6},TR={border:0,borderBottom:"1px solid",borderColor:"inherit",my:"2",opacity:.6},AR={transitionProperty:"common",transitionDuration:"normal"},RR=wR({button:AR,list:kR,item:CR,groupTitle:ER,icon:_R,command:PR,divider:TR}),$R=SR({baseStyle:RR}),{defineMultiStyleConfig:MR,definePartsStyle:Ep}=we(S3.keys),Kd=H("modal-bg"),Xd=H("modal-shadow"),zR={bg:"blackAlpha.600",zIndex:"modal"},OR=e=>{const{isCentered:t,scrollBehavior:n}=e;return{display:"flex",zIndex:"modal",justifyContent:"center",alignItems:t?"center":"flex-start",overflow:n==="inside"?"hidden":"auto",overscrollBehaviorY:"none"}},LR=e=>{const{isCentered:t,scrollBehavior:n}=e;return{borderRadius:"md",color:"inherit",my:t?"auto":"16",mx:t?"auto":void 0,zIndex:"modal",maxH:n==="inside"?"calc(100% - 7.5rem)":void 0,[Kd.variable]:"colors.white",[Xd.variable]:"shadows.lg",_dark:{[Kd.variable]:"colors.gray.700",[Xd.variable]:"shadows.dark-lg"},bg:Kd.reference,boxShadow:Xd.reference}},IR={px:"6",py:"4",fontSize:"xl",fontWeight:"semibold"},DR={position:"absolute",top:"2",insetEnd:"3"},jR=e=>{const{scrollBehavior:t}=e;return{px:"6",py:"2",flex:"1",overflow:t==="inside"?"auto":void 0}},FR={px:"6",py:"4"},NR=Ep(e=>({overlay:zR,dialogContainer:gt(OR,e),dialog:gt(LR,e),header:IR,closeButton:DR,body:gt(jR,e),footer:FR}));function hn(e){return Ep(e==="full"?{dialog:{maxW:"100vw",minH:"$100vh",my:"0",borderRadius:"0"}}:{dialog:{maxW:e}})}var BR={xs:hn("xs"),sm:hn("sm"),md:hn("md"),lg:hn("lg"),xl:hn("xl"),"2xl":hn("2xl"),"3xl":hn("3xl"),"4xl":hn("4xl"),"5xl":hn("5xl"),"6xl":hn("6xl"),full:hn("full")},VR=MR({baseStyle:NR,sizes:BR,defaultProps:{size:"md"}}),{defineMultiStyleConfig:HR,definePartsStyle:kS}=we(w3.keys),pm=Ke("number-input-stepper-width"),CS=Ke("number-input-input-padding"),WR=Kn(pm).add("0.5rem").toString(),qd=Ke("number-input-bg"),Yd=Ke("number-input-color"),Qd=Ke("number-input-border-color"),UR={[pm.variable]:"sizes.6",[CS.variable]:WR},GR=e=>{var t,n;return(n=(t=gt(pe.baseStyle,e))==null?void 0:t.field)!=null?n:{}},KR={width:pm.reference},XR={borderStart:"1px solid",borderStartColor:Qd.reference,color:Yd.reference,bg:qd.reference,[Yd.variable]:"colors.chakra-body-text",[Qd.variable]:"colors.chakra-border-color",_dark:{[Yd.variable]:"colors.whiteAlpha.800",[Qd.variable]:"colors.whiteAlpha.300"},_active:{[qd.variable]:"colors.gray.200",_dark:{[qd.variable]:"colors.whiteAlpha.300"}},_disabled:{opacity:.4,cursor:"not-allowed"}},qR=kS(e=>{var t;return{root:UR,field:(t=gt(GR,e))!=null?t:{},stepperGroup:KR,stepper:XR}});function xl(e){var t,n,r;const o=(t=pe.sizes)==null?void 0:t[e],i={lg:"md",md:"md",sm:"sm",xs:"sm"},s=(r=(n=o.field)==null?void 0:n.fontSize)!=null?r:"md",a=vS.fontSizes[s];return kS({field:{...o.field,paddingInlineEnd:CS.reference,verticalAlign:"top"},stepper:{fontSize:Kn(a).multiply(.75).toString(),_first:{borderTopEndRadius:i[e]},_last:{borderBottomEndRadius:i[e],mt:"-1px",borderTopWidth:1}}})}var YR={xs:xl("xs"),sm:xl("sm"),md:xl("md"),lg:xl("lg")},QR=HR({baseStyle:qR,sizes:YR,variants:pe.variants,defaultProps:pe.defaultProps}),Rv,ZR={...(Rv=pe.baseStyle)==null?void 0:Rv.field,textAlign:"center"},JR={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"}},$v,Mv,e6={outline:e=>{var t,n,r;return(r=(n=gt((t=pe.variants)==null?void 0:t.outline,e))==null?void 0:n.field)!=null?r:{}},flushed:e=>{var t,n,r;return(r=(n=gt((t=pe.variants)==null?void 0:t.flushed,e))==null?void 0:n.field)!=null?r:{}},filled:e=>{var t,n,r;return(r=(n=gt((t=pe.variants)==null?void 0:t.filled,e))==null?void 0:n.field)!=null?r:{}},unstyled:(Mv=($v=pe.variants)==null?void 0:$v.unstyled.field)!=null?Mv:{}},t6={baseStyle:ZR,sizes:JR,variants:e6,defaultProps:pe.defaultProps},{defineMultiStyleConfig:n6,definePartsStyle:r6}=we(k3.keys),Sl=Ke("popper-bg"),o6=Ke("popper-arrow-bg"),zv=Ke("popper-arrow-shadow-color"),i6={zIndex:10},s6={[Sl.variable]:"colors.white",bg:Sl.reference,[o6.variable]:Sl.reference,[zv.variable]:"colors.gray.200",_dark:{[Sl.variable]:"colors.gray.700",[zv.variable]:"colors.whiteAlpha.300"},width:"xs",border:"1px solid",borderColor:"inherit",borderRadius:"md",boxShadow:"sm",zIndex:"inherit",_focusVisible:{outline:0,boxShadow:"outline"}},a6={px:3,py:2,borderBottomWidth:"1px"},l6={px:3,py:2},u6={px:3,py:2,borderTopWidth:"1px"},c6={position:"absolute",borderRadius:"md",top:1,insetEnd:2,padding:2},d6=r6({popper:i6,content:s6,header:a6,body:l6,footer:u6,closeButton:c6}),f6=n6({baseStyle:d6}),{definePartsStyle:_p,defineMultiStyleConfig:p6}=we(h3.keys),Zd=H("drawer-bg"),Jd=H("drawer-box-shadow");function No(e){return _p(e==="full"?{dialog:{maxW:"100vw",h:"100vh"}}:{dialog:{maxW:e}})}var h6={bg:"blackAlpha.600",zIndex:"modal"},m6={display:"flex",zIndex:"modal",justifyContent:"center"},g6=e=>{const{isFullHeight:t}=e;return{...t&&{height:"100vh"},zIndex:"modal",maxH:"100vh",color:"inherit",[Zd.variable]:"colors.white",[Jd.variable]:"shadows.lg",_dark:{[Zd.variable]:"colors.gray.700",[Jd.variable]:"shadows.dark-lg"},bg:Zd.reference,boxShadow:Jd.reference}},v6={px:"6",py:"4",fontSize:"xl",fontWeight:"semibold"},y6={position:"absolute",top:"2",insetEnd:"3"},b6={px:"6",py:"2",flex:"1",overflow:"auto"},x6={px:"6",py:"4"},S6=_p(e=>({overlay:h6,dialogContainer:m6,dialog:gt(g6,e),header:v6,closeButton:y6,body:b6,footer:x6})),w6={xs:No("xs"),sm:No("md"),md:No("lg"),lg:No("2xl"),xl:No("4xl"),full:No("full")},k6=p6({baseStyle:S6,sizes:w6,defaultProps:{size:"xs"}}),{definePartsStyle:C6,defineMultiStyleConfig:E6}=we(m3.keys),_6={borderRadius:"md",py:"1",transitionProperty:"common",transitionDuration:"normal"},P6={borderRadius:"md",py:"1",transitionProperty:"common",transitionDuration:"normal",width:"full",_focusVisible:{boxShadow:"outline"},_placeholder:{opacity:.6}},T6={borderRadius:"md",py:"1",transitionProperty:"common",transitionDuration:"normal",width:"full",_focusVisible:{boxShadow:"outline"},_placeholder:{opacity:.6}},A6=C6({preview:_6,input:P6,textarea:T6}),R6=E6({baseStyle:A6}),{definePartsStyle:$6,defineMultiStyleConfig:M6}=we(g3.keys),xi=H("form-control-color"),z6={marginStart:"1",[xi.variable]:"colors.red.500",_dark:{[xi.variable]:"colors.red.300"},color:xi.reference},O6={mt:"2",[xi.variable]:"colors.gray.600",_dark:{[xi.variable]:"colors.whiteAlpha.600"},color:xi.reference,lineHeight:"normal",fontSize:"sm"},L6=$6({container:{width:"100%",position:"relative"},requiredIndicator:z6,helperText:O6}),I6=M6({baseStyle:L6}),{definePartsStyle:D6,defineMultiStyleConfig:j6}=we(v3.keys),Si=H("form-error-color"),F6={[Si.variable]:"colors.red.500",_dark:{[Si.variable]:"colors.red.300"},color:Si.reference,mt:"2",fontSize:"sm",lineHeight:"normal"},N6={marginEnd:"0.5em",[Si.variable]:"colors.red.500",_dark:{[Si.variable]:"colors.red.300"},color:Si.reference},B6=D6({text:F6,icon:N6}),V6=j6({baseStyle:B6}),H6={fontSize:"md",marginEnd:"3",mb:"2",fontWeight:"medium",transitionProperty:"common",transitionDuration:"normal",opacity:1,_disabled:{opacity:.4}},W6={baseStyle:H6},U6={fontFamily:"heading",fontWeight:"bold"},G6={"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}},K6={baseStyle:U6,sizes:G6,defaultProps:{size:"xl"}},{defineMultiStyleConfig:X6,definePartsStyle:q6}=we(f3.keys),ef=H("breadcrumb-link-decor"),Y6={transitionProperty:"common",transitionDuration:"fast",transitionTimingFunction:"ease-out",outline:"none",color:"inherit",textDecoration:ef.reference,[ef.variable]:"none","&:not([aria-current=page])":{cursor:"pointer",_hover:{[ef.variable]:"underline"},_focusVisible:{boxShadow:"outline"}}},Q6=q6({link:Y6}),Z6=X6({baseStyle:Q6}),J6={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"}}},ES=e=>{const{colorScheme:t,theme:n}=e;if(t==="gray")return{color:U("gray.800","whiteAlpha.900")(e),_hover:{bg:U("gray.100","whiteAlpha.200")(e)},_active:{bg:U("gray.200","whiteAlpha.300")(e)}};const r=$i(`${t}.200`,.12)(n),o=$i(`${t}.200`,.24)(n);return{color:U(`${t}.600`,`${t}.200`)(e),bg:"transparent",_hover:{bg:U(`${t}.50`,r)(e)},_active:{bg:U(`${t}.100`,o)(e)}}},e$=e=>{const{colorScheme:t}=e,n=U("gray.200","whiteAlpha.300")(e);return{border:"1px solid",borderColor:t==="gray"?n:"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"},...gt(ES,e)}},t$={yellow:{bg:"yellow.400",color:"black",hoverBg:"yellow.500",activeBg:"yellow.600"},cyan:{bg:"cyan.400",color:"black",hoverBg:"cyan.500",activeBg:"cyan.600"}},n$=e=>{var t;const{colorScheme:n}=e;if(n==="gray"){const l=U("gray.100","whiteAlpha.200")(e);return{bg:l,color:U("gray.800","whiteAlpha.900")(e),_hover:{bg:U("gray.200","whiteAlpha.300")(e),_disabled:{bg:l}},_active:{bg:U("gray.300","whiteAlpha.400")(e)}}}const{bg:r=`${n}.500`,color:o="white",hoverBg:i=`${n}.600`,activeBg:s=`${n}.700`}=(t=t$[n])!=null?t:{},a=U(r,`${n}.200`)(e);return{bg:a,color:U(o,"gray.800")(e),_hover:{bg:U(i,`${n}.300`)(e),_disabled:{bg:a}},_active:{bg:U(s,`${n}.400`)(e)}}},r$=e=>{const{colorScheme:t}=e;return{padding:0,height:"auto",lineHeight:"normal",verticalAlign:"baseline",color:U(`${t}.500`,`${t}.200`)(e),_hover:{textDecoration:"underline",_disabled:{textDecoration:"none"}},_active:{color:U(`${t}.700`,`${t}.500`)(e)}}},o$={bg:"none",color:"inherit",display:"inline",lineHeight:"inherit",m:"0",p:"0"},i$={ghost:ES,outline:e$,solid:n$,link:r$,unstyled:o$},s$={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"}},a$={baseStyle:J6,variants:i$,sizes:s$,defaultProps:{variant:"solid",size:"md",colorScheme:"gray"}},{definePartsStyle:xo,defineMultiStyleConfig:l$}=we(z3.keys),Iu=H("card-bg"),tr=H("card-padding"),_S=H("card-shadow"),Yl=H("card-radius"),PS=H("card-border-width","0"),TS=H("card-border-color"),u$=xo({container:{[Iu.variable]:"colors.chakra-body-bg",backgroundColor:Iu.reference,boxShadow:_S.reference,borderRadius:Yl.reference,color:"chakra-body-text",borderWidth:PS.reference,borderColor:TS.reference},body:{padding:tr.reference,flex:"1 1 0%"},header:{padding:tr.reference},footer:{padding:tr.reference}}),c$={sm:xo({container:{[Yl.variable]:"radii.base",[tr.variable]:"space.3"}}),md:xo({container:{[Yl.variable]:"radii.md",[tr.variable]:"space.5"}}),lg:xo({container:{[Yl.variable]:"radii.xl",[tr.variable]:"space.7"}})},d$={elevated:xo({container:{[_S.variable]:"shadows.base",_dark:{[Iu.variable]:"colors.gray.700"}}}),outline:xo({container:{[PS.variable]:"1px",[TS.variable]:"colors.chakra-border-color"}}),filled:xo({container:{[Iu.variable]:"colors.chakra-subtle-bg"}}),unstyled:{body:{[tr.variable]:0},header:{[tr.variable]:0},footer:{[tr.variable]:0}}},f$=l$({baseStyle:u$,variants:d$,sizes:c$,defaultProps:{variant:"elevated",size:"md"}}),Is=Ke("close-button-size"),as=Ke("close-button-bg"),p$={w:[Is.reference],h:[Is.reference],borderRadius:"md",transitionProperty:"common",transitionDuration:"normal",_disabled:{opacity:.4,cursor:"not-allowed",boxShadow:"none"},_hover:{[as.variable]:"colors.blackAlpha.100",_dark:{[as.variable]:"colors.whiteAlpha.100"}},_active:{[as.variable]:"colors.blackAlpha.200",_dark:{[as.variable]:"colors.whiteAlpha.200"}},_focusVisible:{boxShadow:"outline"},bg:as.reference},h$={lg:{[Is.variable]:"sizes.10",fontSize:"md"},md:{[Is.variable]:"sizes.8",fontSize:"xs"},sm:{[Is.variable]:"sizes.6",fontSize:"2xs"}},m$={baseStyle:p$,sizes:h$,defaultProps:{size:"md"}},{variants:g$,defaultProps:v$}=Os,y$={fontFamily:"mono",fontSize:"sm",px:"0.2em",borderRadius:"sm",bg:Fe.bg.reference,color:Fe.color.reference,boxShadow:Fe.shadow.reference},b$={baseStyle:y$,variants:g$,defaultProps:v$},x$={w:"100%",mx:"auto",maxW:"prose",px:"4"},S$={baseStyle:x$},w$={opacity:.6,borderColor:"inherit"},k$={borderStyle:"solid"},C$={borderStyle:"dashed"},E$={solid:k$,dashed:C$},_$={baseStyle:w$,variants:E$,defaultProps:{variant:"solid"}},{definePartsStyle:P$,defineMultiStyleConfig:T$}=we(u3.keys),A$={borderTopWidth:"1px",borderColor:"inherit",_last:{borderBottomWidth:"1px"}},R$={transitionProperty:"common",transitionDuration:"normal",fontSize:"md",_focusVisible:{boxShadow:"outline"},_hover:{bg:"blackAlpha.50"},_disabled:{opacity:.4,cursor:"not-allowed"},px:"4",py:"2"},$$={pt:"2",px:"4",pb:"5"},M$={fontSize:"1.25em"},z$=P$({container:A$,button:R$,panel:$$,icon:M$}),O$=T$({baseStyle:z$}),{definePartsStyle:Ta,defineMultiStyleConfig:L$}=we(c3.keys),jt=H("alert-fg"),ur=H("alert-bg"),I$=Ta({container:{bg:ur.reference,px:"4",py:"3"},title:{fontWeight:"bold",lineHeight:"6",marginEnd:"2"},description:{lineHeight:"6"},icon:{color:jt.reference,flexShrink:0,marginEnd:"3",w:"5",h:"6"},spinner:{color:jt.reference,flexShrink:0,marginEnd:"3",w:"5",h:"5"}});function hm(e){const{theme:t,colorScheme:n}=e,r=$i(`${n}.200`,.16)(t);return{light:`colors.${n}.100`,dark:r}}var D$=Ta(e=>{const{colorScheme:t}=e,n=hm(e);return{container:{[jt.variable]:`colors.${t}.500`,[ur.variable]:n.light,_dark:{[jt.variable]:`colors.${t}.200`,[ur.variable]:n.dark}}}}),j$=Ta(e=>{const{colorScheme:t}=e,n=hm(e);return{container:{[jt.variable]:`colors.${t}.500`,[ur.variable]:n.light,_dark:{[jt.variable]:`colors.${t}.200`,[ur.variable]:n.dark},paddingStart:"3",borderStartWidth:"4px",borderStartColor:jt.reference}}}),F$=Ta(e=>{const{colorScheme:t}=e,n=hm(e);return{container:{[jt.variable]:`colors.${t}.500`,[ur.variable]:n.light,_dark:{[jt.variable]:`colors.${t}.200`,[ur.variable]:n.dark},pt:"2",borderTopWidth:"4px",borderTopColor:jt.reference}}}),N$=Ta(e=>{const{colorScheme:t}=e;return{container:{[jt.variable]:"colors.white",[ur.variable]:`colors.${t}.500`,_dark:{[jt.variable]:"colors.gray.900",[ur.variable]:`colors.${t}.200`},color:jt.reference}}}),B$={subtle:D$,"left-accent":j$,"top-accent":F$,solid:N$},V$=L$({baseStyle:I$,variants:B$,defaultProps:{variant:"subtle",colorScheme:"blue"}}),{definePartsStyle:AS,defineMultiStyleConfig:H$}=we(d3.keys),wi=H("avatar-border-color"),Ds=H("avatar-bg"),ma=H("avatar-font-size"),Mi=H("avatar-size"),W$={borderRadius:"full",border:"0.2em solid",borderColor:wi.reference,[wi.variable]:"white",_dark:{[wi.variable]:"colors.gray.800"}},U$={bg:Ds.reference,fontSize:ma.reference,width:Mi.reference,height:Mi.reference,lineHeight:"1",[Ds.variable]:"colors.gray.200",_dark:{[Ds.variable]:"colors.whiteAlpha.400"}},G$=e=>{const{name:t,theme:n}=e,r=t?J3({string:t}):"colors.gray.400",o=Q3(r)(n);let i="white";return o||(i="gray.800"),{bg:Ds.reference,fontSize:ma.reference,color:i,borderColor:wi.reference,verticalAlign:"top",width:Mi.reference,height:Mi.reference,"&:not([data-loaded])":{[Ds.variable]:r},[wi.variable]:"colors.white",_dark:{[wi.variable]:"colors.gray.800"}}},K$={fontSize:ma.reference,lineHeight:"1"},X$=AS(e=>({badge:gt(W$,e),excessLabel:gt(U$,e),container:gt(G$,e),label:K$}));function yr(e){const t=e!=="100%"?bS[e]:void 0;return AS({container:{[Mi.variable]:t??e,[ma.variable]:`calc(${t??e} / 2.5)`},excessLabel:{[Mi.variable]:t??e,[ma.variable]:`calc(${t??e} / 2.5)`}})}var q$={"2xs":yr(4),xs:yr(6),sm:yr(8),md:yr(12),lg:yr(16),xl:yr(24),"2xl":yr(32),full:yr("100%")},Y$=H$({baseStyle:X$,sizes:q$,defaultProps:{size:"md"}}),Q$={Accordion:O$,Alert:V$,Avatar:Y$,Badge:Os,Breadcrumb:Z6,Button:a$,Checkbox:Lu,CloseButton:m$,Code:b$,Container:S$,Divider:_$,Drawer:k6,Editable:R6,Form:I6,FormError:V6,FormLabel:W6,Heading:K6,Input:pe,Kbd:pR,Link:mR,List:xR,Menu:$R,Modal:VR,NumberInput:QR,PinInput:t6,Popover:f6,Progress:bA,Radio:MA,Select:FA,Skeleton:BA,SkipLink:HA,Slider:eR,Spinner:rR,Stat:dR,Switch:mT,Table:wT,Tabs:DT,Tag:YT,Textarea:lA,Tooltip:dA,Card:f$,Stepper:l3},Z$={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"}}},J$={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"}}},eM="ltr",tM={useSystemColorMode:!1,initialColorMode:"light",cssVarPrefix:"chakra"},RS={semanticTokens:Z$,direction:eM,...i3,components:Q$,styles:J$,config:tM};function Ss(e){return typeof e=="function"}function nM(...e){return t=>e.reduce((n,r)=>r(n),t)}var rM=e=>function(...n){let r=[...n],o=n[n.length-1];return L4(o)&&r.length>1?r=r.slice(0,r.length-1):o=e,nM(...r.map(i=>s=>Ss(i)?i(s):iM(s,i)))(o)},oM=rM(RS);function iM(...e){return rn({},...e,$S)}function $S(e,t,n,r){if((Ss(e)||Ss(t))&&Object.prototype.hasOwnProperty.call(r,n))return(...o)=>{const i=Ss(e)?e(...o):e,s=Ss(t)?t(...o):t;return rn({},i,s,$S)}}function sM(e,t){const n={};return Object.keys(e).forEach(r=>{t.includes(r)||(n[r]=e[r])}),n}function aM(e,t,n,r){const o=typeof t=="string"?t.split("."):[t];for(r=0;r{const t=new WeakMap;return(r,o,i,s)=>{if(typeof r>"u")return e(r,o,i);t.has(r)||t.set(r,new Map);const a=t.get(r);if(a.has(o))return a.get(o);const l=e(r,o,i,s);return a.set(o,l),l}},MS=lM(aM);function zS(e,t){const n={};return Object.keys(e).forEach(r=>{const o=e[r];t(o,r,e)&&(n[r]=o)}),n}var OS=e=>zS(e,t=>t!=null);function uM(e){return typeof e=="function"}function LS(e,...t){return uM(e)?e(...t):e}var cM=typeof Element<"u",dM=typeof Map=="function",fM=typeof Set=="function",pM=typeof ArrayBuffer=="function"&&!!ArrayBuffer.isView;function Ql(e,t){if(e===t)return!0;if(e&&t&&typeof e=="object"&&typeof t=="object"){if(e.constructor!==t.constructor)return!1;var n,r,o;if(Array.isArray(e)){if(n=e.length,n!=t.length)return!1;for(r=n;r--!==0;)if(!Ql(e[r],t[r]))return!1;return!0}var i;if(dM&&e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(i=e.entries();!(r=i.next()).done;)if(!t.has(r.value[0]))return!1;for(i=e.entries();!(r=i.next()).done;)if(!Ql(r.value[1],t.get(r.value[0])))return!1;return!0}if(fM&&e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(i=e.entries();!(r=i.next()).done;)if(!t.has(r.value[0]))return!1;return!0}if(pM&&ArrayBuffer.isView(e)&&ArrayBuffer.isView(t)){if(n=e.length,n!=t.length)return!1;for(r=n;r--!==0;)if(e[r]!==t[r])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),n=o.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!Object.prototype.hasOwnProperty.call(t,o[r]))return!1;if(cM&&e instanceof Element)return!1;for(r=n;r--!==0;)if(!((o[r]==="_owner"||o[r]==="__v"||o[r]==="__o")&&e.$$typeof)&&!Ql(e[o[r]],t[o[r]]))return!1;return!0}return e!==e&&t!==t}var hM=function(t,n){try{return Ql(t,n)}catch(r){if((r.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw r}};const mM=th(hM);function IS(e,t={}){var n;const{styleConfig:r,...o}=t,{theme:i,colorMode:s}=pP(),a=e?MS(i,`components.${e}`):void 0,l=r||a,u=rn({theme:i,colorMode:s},(n=l==null?void 0:l.defaultProps)!=null?n:{},OS(sM(o,["children"]))),c=x.useRef({});if(l){const f=z4(l)(u);mM(c.current,f)||(c.current=f)}return c.current}function Xr(e,t={}){return IS(e,t)}function qr(e,t={}){return IS(e,t)}var gM=new Set([...S4,"textStyle","layerStyle","apply","noOfLines","focusBorderColor","errorBorderColor","as","__css","css","sx"]),vM=new Set(["htmlWidth","htmlHeight","htmlSize","htmlTranslate"]);function yM(e){return vM.has(e)||!gM.has(e)}function bM(e,...t){if(e==null)throw new TypeError("Cannot convert undefined or null to object");const n={...e};for(const r of t)if(r!=null)for(const o in r)Object.prototype.hasOwnProperty.call(r,o)&&(o in n&&delete n[o],n[o]=r[o]);return n}function mm(e){const t=Object.assign({},e);for(let n in t)t[n]===void 0&&delete t[n];return t}var xM=/^((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)-.*))$/,SM=Gx(function(e){return xM.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),wM=SM,kM=function(t){return t!=="theme"},Ov=function(t){return typeof t=="string"&&t.charCodeAt(0)>96?wM:kM},Lv=function(t,n,r){var o;if(n){var i=n.shouldForwardProp;o=t.__emotion_forwardProp&&i?function(s){return t.__emotion_forwardProp(s)&&i(s)}:i}return typeof o!="function"&&r&&(o=t.__emotion_forwardProp),o},CM=function(t){var n=t.cache,r=t.serialized,o=t.isStringTag;return Zx(n,r,o),W_(function(){return Jx(n,r,o)}),null},EM=function e(t,n){var r=t.__emotion_real===t,o=r&&t.__emotion_base||t,i,s;n!==void 0&&(i=n.label,s=n.target);var a=Lv(t,n,r),l=a||Ov(o),u=!l("as");return function(){var c=arguments,d=r&&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:n,css:r,__css:o,sx:i,...s}=t,a=zS(s,(d,f)=>k4(f)),l=LS(e,t),u=bM({},o,l,OS(a),i),c=gS(u)(t.theme);return r?[c,r]:c};function tf(e,t){const{baseStyle:n,...r}=t??{};r.shouldForwardProp||(r.shouldForwardProp=yM);const o=TM({baseStyle:n}),i=PM(e,r)(o);return Lt.forwardRef(function(l,u){const{colorMode:c,forced:d}=_c();return Lt.createElement(i,{ref:u,"data-theme":d?c:void 0,...l})})}function AM(){const e=new Map;return new Proxy(tf,{apply(t,n,r){return tf(...r)},get(t,n){return e.has(n)||e.set(n,tf(n)),e.get(n)}})}var X=AM();function ee(e){return x.forwardRef(e)}function DS(e={}){const{strict:t=!0,errorMessage:n="useContext: `context` is undefined. Seems you forgot to wrap component within the Provider",name:r}=e,o=x.createContext(void 0);o.displayName=r;function i(){var s;const a=x.useContext(o);if(!a&&t){const l=new Error(n);throw l.name="ContextError",(s=Error.captureStackTrace)==null||s.call(Error,l,i),l}return a}return[o.Provider,i,o]}function RM(e){const{cssVarsRoot:t,theme:n,children:r}=e,o=x.useMemo(()=>x4(n),[n]);return k.jsxs(K_,{theme:o,children:[k.jsx($M,{root:t}),r]})}function $M({root:e=":host, :root"}){const t=[e,"[data-theme]"].join(",");return k.jsx(Cc,{styles:n=>({[t]:n.__cssVars})})}DS({name:"StylesContext",errorMessage:"useStyles: `styles` is undefined. Seems you forgot to wrap the components in `` "});function MM(e){return DS({name:`${e}StylesContext`,errorMessage:`useStyles: "styles" is undefined. Seems you forgot to wrap the components in "<${e} />" `})}function zM(){const{colorMode:e}=_c();return k.jsx(Cc,{styles:t=>{const n=MS(t,"styles.global"),r=LS(n,{theme:t,colorMode:e});return r?gS(r)(t):void 0}})}var gm=x.createContext({getDocument(){return document},getWindow(){return window}});gm.displayName="EnvironmentContext";function OM({defer:e}={}){const[,t]=x.useReducer(n=>n+1,0);return er(()=>{e&&t()},[e]),x.useContext(gm)}function jS(e){const{children:t,environment:n,disabled:r}=e,o=x.useRef(null),i=x.useMemo(()=>n||{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}},[n]),s=!r||!n;return k.jsxs(gm.Provider,{value:i,children:[t,s&&k.jsx("span",{id:"__chakra_env",hidden:!0,ref:o})]})}jS.displayName="EnvironmentProvider";var LM=e=>{const{children:t,colorModeManager:n,portalZIndex:r,resetScope:o,resetCSS:i=!0,theme:s={},environment:a,cssVarsRoot:l,disableEnvironment:u,disableGlobalStyle:c}=e,d=k.jsx(jS,{environment:a,disabled:u,children:t});return k.jsx(RM,{theme:s,cssVarsRoot:l,children:k.jsxs(lS,{colorModeManager:n,options:s.config,children:[i?k.jsx(Y_,{scope:o}):k.jsx(q_,{}),!c&&k.jsx(zM,{}),r?k.jsx(sS,{zIndex:r,children:d}):d]})})},IM=(e,t)=>e.find(n=>n.id===t);function Dv(e,t){const n=FS(e,t),r=n?e[n].findIndex(o=>o.id===t):-1;return{position:n,index:r}}function FS(e,t){for(const[n,r]of Object.entries(e))if(IM(r,t))return n}function DM(e){const t=e.includes("right"),n=e.includes("left");let r="center";return t&&(r="flex-end"),n&&(r="flex-start"),{display:"flex",flexDirection:"column",alignItems:r}}function jM(e){const n=e==="top"||e==="bottom"?"0 auto":void 0,r=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:n,top:r,bottom:o,right:i,left:s}}function Dr(e,t=[]){const n=x.useRef(e);return x.useEffect(()=>{n.current=e}),x.useCallback((...r)=>{var o;return(o=n.current)==null?void 0:o.call(n,...r)},t)}function FM(e,t){const n=Dr(e);x.useEffect(()=>{if(t==null)return;let r=null;return r=window.setTimeout(()=>{n()},t),()=>{r&&window.clearTimeout(r)}},[t,n])}function zi(e,t){const n=x.useRef(!1),r=x.useRef(!1);x.useEffect(()=>{if(n.current&&r.current)return e();r.current=!0},t),x.useEffect(()=>(n.current=!0,()=>{n.current=!1}),[])}const NS=x.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"}),$c=x.createContext({}),Aa=x.createContext(null),Mc=typeof document<"u",vm=Mc?x.useLayoutEffect:x.useEffect,BS=x.createContext({strict:!1});function NM(e,t,n,r){const{visualElement:o}=x.useContext($c),i=x.useContext(BS),s=x.useContext(Aa),a=x.useContext(NS).reducedMotion,l=x.useRef();r=r||i.renderer,!l.current&&r&&(l.current=r(e,{visualState:t,parent:o,props:n,presenceContext:s,blockInitialAnimation:s?s.initial===!1:!1,reducedMotionConfig:a}));const u=l.current;x.useInsertionEffect(()=>{u&&u.update(n,s)});const c=x.useRef(!!window.HandoffAppearAnimations);return vm(()=>{u&&(u.render(),c.current&&u.animationState&&u.animationState.animateChanges())}),x.useEffect(()=>{u&&(u.updateFeatures(),!c.current&&u.animationState&&u.animationState.animateChanges(),window.HandoffAppearAnimations=void 0,c.current=!1)}),u}function li(e){return typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function BM(e,t,n){return x.useCallback(r=>{r&&e.mount&&e.mount(r),t&&(r?t.mount(r):t.unmount()),n&&(typeof n=="function"?n(r):li(n)&&(n.current=r))},[t])}function ga(e){return typeof e=="string"||Array.isArray(e)}function zc(e){return typeof e=="object"&&typeof e.start=="function"}const ym=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],bm=["initial",...ym];function Oc(e){return zc(e.animate)||bm.some(t=>ga(e[t]))}function VS(e){return!!(Oc(e)||e.variants)}function VM(e,t){if(Oc(e)){const{initial:n,animate:r}=e;return{initial:n===!1||ga(n)?n:void 0,animate:ga(r)?r:void 0}}return e.inherit!==!1?t:{}}function HM(e){const{initial:t,animate:n}=VM(e,x.useContext($c));return x.useMemo(()=>({initial:t,animate:n}),[jv(t),jv(n)])}function jv(e){return Array.isArray(e)?e.join(" "):e}const Fv={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"]},va={};for(const e in Fv)va[e]={isEnabled:t=>Fv[e].some(n=>!!t[n])};function WM(e){for(const t in e)va[t]={...va[t],...e[t]}}const xm=x.createContext({}),HS=x.createContext({}),UM=Symbol.for("motionComponentSymbol");function GM({preloadedFeatures:e,createVisualElement:t,useRender:n,useVisualState:r,Component:o}){e&&WM(e);function i(a,l){let u;const c={...x.useContext(NS),...a,layoutId:KM(a)},{isStatic:d}=c,f=HM(a),p=r(a,d);if(!d&&Mc){f.visualElement=NM(o,p,c,t);const m=x.useContext(HS),y=x.useContext(BS).strict;f.visualElement&&(u=f.visualElement.loadFeatures(c,y,e,m))}return x.createElement($c.Provider,{value:f},u&&f.visualElement?x.createElement(u,{visualElement:f.visualElement,...c}):null,n(o,a,BM(p,f.visualElement,l),p,d,f.visualElement))}const s=x.forwardRef(i);return s[UM]=o,s}function KM({layoutId:e}){const t=x.useContext(xm).id;return t&&e!==void 0?t+"-"+e:e}function XM(e){function t(r,o={}){return GM(e(r,o))}if(typeof Proxy>"u")return t;const n=new Map;return new Proxy(t,{get:(r,o)=>(n.has(o)||n.set(o,t(o)),n.get(o))})}const qM=["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 Sm(e){return typeof e!="string"||e.includes("-")?!1:!!(qM.indexOf(e)>-1||/[A-Z]/.test(e))}const ju={};function YM(e){Object.assign(ju,e)}const Ra=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Mo=new Set(Ra);function WS(e,{layout:t,layoutId:n}){return Mo.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!ju[e]||e==="opacity")}const Rt=e=>!!(e&&e.getVelocity),QM={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},ZM=Ra.length;function JM(e,{enableHardwareAcceleration:t=!0,allowTransformNone:n=!0},r,o){let i="";for(let s=0;st=>typeof t=="string"&&t.startsWith(e),GS=US("--"),Pp=US("var(--"),ez=/var\s*\(\s*--[\w-]+(\s*,\s*(?:(?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)+)?\s*\)/g,tz=(e,t)=>t&&typeof e=="number"?t.transform(e):e,Hr=(e,t,n)=>Math.min(Math.max(n,e),t),zo={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},js={...zo,transform:e=>Hr(0,1,e)},wl={...zo,default:1},Fs=e=>Math.round(e*1e5)/1e5,Lc=/(-)?([\d]*\.?[\d])+/g,KS=/(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))/gi,nz=/^(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))$/i;function $a(e){return typeof e=="string"}const Ma=e=>({test:t=>$a(t)&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),xr=Ma("deg"),In=Ma("%"),K=Ma("px"),rz=Ma("vh"),oz=Ma("vw"),Nv={...In,parse:e=>In.parse(e)/100,transform:e=>In.transform(e*100)},Bv={...zo,transform:Math.round},XS={borderWidth:K,borderTopWidth:K,borderRightWidth:K,borderBottomWidth:K,borderLeftWidth:K,borderRadius:K,radius:K,borderTopLeftRadius:K,borderTopRightRadius:K,borderBottomRightRadius:K,borderBottomLeftRadius:K,width:K,maxWidth:K,height:K,maxHeight:K,size:K,top:K,right:K,bottom:K,left:K,padding:K,paddingTop:K,paddingRight:K,paddingBottom:K,paddingLeft:K,margin:K,marginTop:K,marginRight:K,marginBottom:K,marginLeft:K,rotate:xr,rotateX:xr,rotateY:xr,rotateZ:xr,scale:wl,scaleX:wl,scaleY:wl,scaleZ:wl,skew:xr,skewX:xr,skewY:xr,distance:K,translateX:K,translateY:K,translateZ:K,x:K,y:K,z:K,perspective:K,transformPerspective:K,opacity:js,originX:Nv,originY:Nv,originZ:K,zIndex:Bv,fillOpacity:js,strokeOpacity:js,numOctaves:Bv};function wm(e,t,n,r){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(GS(d)){i[d]=f;continue}const p=XS[d],m=tz(f,p);if(Mo.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||r?o.transform=JM(e.transform,n,c,r):o.transform&&(o.transform="none")),u){const{originX:d="50%",originY:f="50%",originZ:p=0}=a;o.transformOrigin=`${d} ${f} ${p}`}}const km=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function qS(e,t,n){for(const r in t)!Rt(t[r])&&!WS(r,n)&&(e[r]=t[r])}function iz({transformTemplate:e},t,n){return x.useMemo(()=>{const r=km();return wm(r,t,{enableHardwareAcceleration:!n},e),Object.assign({},r.vars,r.style)},[t])}function sz(e,t,n){const r=e.style||{},o={};return qS(o,r,e),Object.assign(o,iz(e,t,n)),e.transformValues?e.transformValues(o):o}function az(e,t,n){const r={},o=sz(e,t,n);return e.drag&&e.dragListener!==!1&&(r.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)&&(r.tabIndex=0),r.style=o,r}const lz=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 Fu(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||lz.has(e)}let YS=e=>!Fu(e);function uz(e){e&&(YS=t=>t.startsWith("on")?!Fu(t):e(t))}try{uz(require("@emotion/is-prop-valid").default)}catch{}function cz(e,t,n){const r={};for(const o in e)o==="values"&&typeof e.values=="object"||(YS(o)||n===!0&&Fu(o)||!t&&!Fu(o)||e.draggable&&o.startsWith("onDrag"))&&(r[o]=e[o]);return r}function Vv(e,t,n){return typeof e=="string"?e:K.transform(t+n*e)}function dz(e,t,n){const r=Vv(t,e.x,e.width),o=Vv(n,e.y,e.height);return`${r} ${o}`}const fz={offset:"stroke-dashoffset",array:"stroke-dasharray"},pz={offset:"strokeDashoffset",array:"strokeDasharray"};function hz(e,t,n=1,r=0,o=!0){e.pathLength=1;const i=o?fz:pz;e[i.offset]=K.transform(-r);const s=K.transform(t),a=K.transform(n);e[i.array]=`${s} ${a}`}function Cm(e,{attrX:t,attrY:n,attrScale:r,originX:o,originY:i,pathLength:s,pathSpacing:a=1,pathOffset:l=0,...u},c,d,f){if(wm(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:y}=e;p.transform&&(y&&(m.transform=p.transform),delete p.transform),y&&(o!==void 0||i!==void 0||m.transform)&&(m.transformOrigin=dz(y,o!==void 0?o:.5,i!==void 0?i:.5)),t!==void 0&&(p.x=t),n!==void 0&&(p.y=n),r!==void 0&&(p.scale=r),s!==void 0&&hz(p,s,a,l,!1)}const QS=()=>({...km(),attrs:{}}),Em=e=>typeof e=="string"&&e.toLowerCase()==="svg";function mz(e,t,n,r){const o=x.useMemo(()=>{const i=QS();return Cm(i,t,{enableHardwareAcceleration:!1},Em(r),e.transformTemplate),{...i.attrs,style:{...i.style}}},[t]);if(e.style){const i={};qS(i,e.style,e),o.style={...i,...o.style}}return o}function gz(e=!1){return(n,r,o,{latestValues:i},s)=>{const l=(Sm(n)?mz:az)(r,i,s,n),c={...cz(r,typeof n=="string",e),...l,ref:o},{children:d}=r,f=x.useMemo(()=>Rt(d)?d.get():d,[d]);return x.createElement(n,{...c,children:f})}}const _m=e=>e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase();function ZS(e,{style:t,vars:n},r,o){Object.assign(e.style,t,o&&o.getProjectionStyles(r));for(const i in n)e.style.setProperty(i,n[i])}const JS=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 ew(e,t,n,r){ZS(e,t,void 0,r);for(const o in t.attrs)e.setAttribute(JS.has(o)?o:_m(o),t.attrs[o])}function Pm(e,t){const{style:n}=e,r={};for(const o in n)(Rt(n[o])||t.style&&Rt(t.style[o])||WS(o,e))&&(r[o]=n[o]);return r}function tw(e,t){const n=Pm(e,t);for(const r in e)if(Rt(e[r])||Rt(t[r])){const o=Ra.indexOf(r)!==-1?"attr"+r.charAt(0).toUpperCase()+r.substring(1):r;n[o]=e[r]}return n}function Tm(e,t,n,r={},o={}){return typeof t=="function"&&(t=t(n!==void 0?n:e.custom,r,o)),typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"&&(t=t(n!==void 0?n:e.custom,r,o)),t}function nw(e){const t=x.useRef(null);return t.current===null&&(t.current=e()),t.current}const Nu=e=>Array.isArray(e),vz=e=>!!(e&&typeof e=="object"&&e.mix&&e.toValue),yz=e=>Nu(e)?e[e.length-1]||0:e;function Zl(e){const t=Rt(e)?e.get():e;return vz(t)?t.toValue():t}function bz({scrapeMotionValuesFromProps:e,createRenderState:t,onMount:n},r,o,i){const s={latestValues:xz(r,o,i,e),renderState:t()};return n&&(s.mount=a=>n(r,a,s)),s}const rw=e=>(t,n)=>{const r=x.useContext($c),o=x.useContext(Aa),i=()=>bz(e,t,r,o);return n?i():nw(i)};function xz(e,t,n,r){const o={},i=r(e,{});for(const f in i)o[f]=Zl(i[f]);let{initial:s,animate:a}=e;const l=Oc(e),u=VS(e);t&&u&&!l&&e.inherit!==!1&&(s===void 0&&(s=t.initial),a===void 0&&(a=t.animate));let c=n?n.initial===!1:!1;c=c||s===!1;const d=c?a:s;return d&&typeof d!="boolean"&&!zc(d)&&(Array.isArray(d)?d:[d]).forEach(p=>{const m=Tm(e,p);if(!m)return;const{transitionEnd:y,transition:w,...g}=m;for(const h in g){let v=g[h];if(Array.isArray(v)){const S=c?v.length-1:0;v=v[S]}v!==null&&(o[h]=v)}for(const h in y)o[h]=y[h]}),o}const Ie=e=>e;class Hv{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 n=this.order.indexOf(t);n!==-1&&(this.order.splice(n,1),this.scheduled.delete(t))}clear(){this.order.length=0,this.scheduled.clear()}}function Sz(e){let t=new Hv,n=new Hv,r=0,o=!1,i=!1;const s=new WeakSet,a={schedule:(l,u=!1,c=!1)=>{const d=c&&o,f=d?t:n;return u&&s.add(l),f.add(l)&&d&&o&&(r=t.order.length),l},cancel:l=>{n.remove(l),s.delete(l)},process:l=>{if(o){i=!0;return}if(o=!0,[t,n]=[n,t],n.clear(),r=t.order.length,r)for(let u=0;u(d[f]=Sz(()=>n=!0),d),{}),s=d=>i[d].process(o),a=()=>{const d=performance.now();n=!1,o.delta=r?1e3/60:Math.max(Math.min(d-o.timestamp,wz),1),o.timestamp=d,o.isProcessing=!0,kl.forEach(s),o.isProcessing=!1,n&&t&&(r=!1,e(a))},l=()=>{n=!0,r=!0,o.isProcessing||e(a)};return{schedule:kl.reduce((d,f)=>{const p=i[f];return d[f]=(m,y=!1,w=!1)=>(n||l(),p.schedule(m,y,w)),d},{}),cancel:d=>kl.forEach(f=>i[f].cancel(d)),state:o,steps:i}}const{schedule:Se,cancel:cr,state:Xe,steps:nf}=kz(typeof requestAnimationFrame<"u"?requestAnimationFrame:Ie,!0),Cz={useVisualState:rw({scrapeMotionValuesFromProps:tw,createRenderState:QS,onMount:(e,t,{renderState:n,latestValues:r})=>{Se.read(()=>{try{n.dimensions=typeof t.getBBox=="function"?t.getBBox():t.getBoundingClientRect()}catch{n.dimensions={x:0,y:0,width:0,height:0}}}),Se.render(()=>{Cm(n,r,{enableHardwareAcceleration:!1},Em(t.tagName),e.transformTemplate),ew(t,n)})}})},Ez={useVisualState:rw({scrapeMotionValuesFromProps:Pm,createRenderState:km})};function _z(e,{forwardMotionProps:t=!1},n,r){return{...Sm(e)?Cz:Ez,preloadedFeatures:n,useRender:gz(t),createVisualElement:r,Component:e}}function Zn(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}const ow=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1;function Ic(e,t="page"){return{point:{x:e[t+"X"],y:e[t+"Y"]}}}const Pz=e=>t=>ow(t)&&e(t,Ic(t));function nr(e,t,n,r){return Zn(e,t,Pz(n),r)}const Tz=(e,t)=>n=>t(e(n)),jr=(...e)=>e.reduce(Tz);function iw(e){let t=null;return()=>{const n=()=>{t=null};return t===null?(t=e,n):!1}}const Wv=iw("dragHorizontal"),Uv=iw("dragVertical");function sw(e){let t=!1;if(e==="y")t=Uv();else if(e==="x")t=Wv();else{const n=Wv(),r=Uv();n&&r?t=()=>{n(),r()}:(n&&n(),r&&r())}return t}function aw(){const e=sw(!0);return e?(e(),!1):!0}class Yr{constructor(t){this.isMounted=!1,this.node=t}update(){}}function Gv(e,t){const n="pointer"+(t?"enter":"leave"),r="onHover"+(t?"Start":"End"),o=(i,s)=>{if(i.type==="touch"||aw())return;const a=e.getProps();e.animationState&&a.whileHover&&e.animationState.setActive("whileHover",t),a[r]&&Se.update(()=>a[r](i,s))};return nr(e.current,n,o,{passive:!e.getProps()[r]})}class Az extends Yr{mount(){this.unmount=jr(Gv(this.node,!0),Gv(this.node,!1))}unmount(){}}class Rz extends Yr{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=jr(Zn(this.node.current,"focus",()=>this.onFocus()),Zn(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}const lw=(e,t)=>t?e===t?!0:lw(e,t.parentElement):!1;function rf(e,t){if(!t)return;const n=new PointerEvent("pointer"+e);t(n,Ic(n))}class $z extends Yr{constructor(){super(...arguments),this.removeStartListeners=Ie,this.removeEndListeners=Ie,this.removeAccessibleListeners=Ie,this.startPointerPress=(t,n)=>{if(this.removeEndListeners(),this.isPressing)return;const r=this.node.getProps(),i=nr(window,"pointerup",(a,l)=>{if(!this.checkPressEnd())return;const{onTap:u,onTapCancel:c}=this.node.getProps();Se.update(()=>{lw(this.node.current,a.target)?u&&u(a,l):c&&c(a,l)})},{passive:!(r.onTap||r.onPointerUp)}),s=nr(window,"pointercancel",(a,l)=>this.cancelPress(a,l),{passive:!(r.onTapCancel||r.onPointerCancel)});this.removeEndListeners=jr(i,s),this.startPress(t,n)},this.startAccessiblePress=()=>{const t=i=>{if(i.key!=="Enter"||this.isPressing)return;const s=a=>{a.key!=="Enter"||!this.checkPressEnd()||rf("up",(l,u)=>{const{onTap:c}=this.node.getProps();c&&Se.update(()=>c(l,u))})};this.removeEndListeners(),this.removeEndListeners=Zn(this.node.current,"keyup",s),rf("down",(a,l)=>{this.startPress(a,l)})},n=Zn(this.node.current,"keydown",t),r=()=>{this.isPressing&&rf("cancel",(i,s)=>this.cancelPress(i,s))},o=Zn(this.node.current,"blur",r);this.removeAccessibleListeners=jr(n,o)}}startPress(t,n){this.isPressing=!0;const{onTapStart:r,whileTap:o}=this.node.getProps();o&&this.node.animationState&&this.node.animationState.setActive("whileTap",!0),r&&Se.update(()=>r(t,n))}checkPressEnd(){return this.removeEndListeners(),this.isPressing=!1,this.node.getProps().whileTap&&this.node.animationState&&this.node.animationState.setActive("whileTap",!1),!aw()}cancelPress(t,n){if(!this.checkPressEnd())return;const{onTapCancel:r}=this.node.getProps();r&&Se.update(()=>r(t,n))}mount(){const t=this.node.getProps(),n=nr(this.node.current,"pointerdown",this.startPointerPress,{passive:!(t.onTapStart||t.onPointerStart)}),r=Zn(this.node.current,"focus",this.startAccessiblePress);this.removeStartListeners=jr(n,r)}unmount(){this.removeStartListeners(),this.removeEndListeners(),this.removeAccessibleListeners()}}const Tp=new WeakMap,of=new WeakMap,Mz=e=>{const t=Tp.get(e.target);t&&t(e)},zz=e=>{e.forEach(Mz)};function Oz({root:e,...t}){const n=e||document;of.has(n)||of.set(n,{});const r=of.get(n),o=JSON.stringify(t);return r[o]||(r[o]=new IntersectionObserver(zz,{root:e,...t})),r[o]}function Lz(e,t,n){const r=Oz(t);return Tp.set(e,n),r.observe(e),()=>{Tp.delete(e),r.unobserve(e)}}const Iz={some:0,all:1};class Dz extends Yr{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:n,margin:r,amount:o="some",once:i}=t,s={root:n?n.current:void 0,rootMargin:r,threshold:typeof o=="number"?o:Iz[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 Lz(this.node.current,s,a)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:n}=this.node;["amount","margin","root"].some(jz(t,n))&&this.startObserver()}unmount(){}}function jz({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const Fz={inView:{Feature:Dz},tap:{Feature:$z},focus:{Feature:Rz},hover:{Feature:Az}};function uw(e,t){if(!Array.isArray(t))return!1;const n=t.length;if(n!==e.length)return!1;for(let r=0;rt[r]=n.get()),t}function Bz(e){const t={};return e.values.forEach((n,r)=>t[r]=n.getVelocity()),t}function Dc(e,t,n){const r=e.getProps();return Tm(r,t,n!==void 0?n:r.custom,Nz(e),Bz(e))}const Vz="framerAppearId",Hz="data-"+_m(Vz);let Wz=Ie,Am=Ie;const Fr=e=>e*1e3,rr=e=>e/1e3,Uz={current:!1},cw=e=>Array.isArray(e)&&typeof e[0]=="number";function dw(e){return!!(!e||typeof e=="string"&&fw[e]||cw(e)||Array.isArray(e)&&e.every(dw))}const ws=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,fw={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:ws([0,.65,.55,1]),circOut:ws([.55,0,1,.45]),backIn:ws([.31,.01,.66,-.59]),backOut:ws([.33,1.53,.69,.99])};function pw(e){if(e)return cw(e)?ws(e):Array.isArray(e)?e.map(pw):fw[e]}function Gz(e,t,n,{delay:r=0,duration:o,repeat:i=0,repeatType:s="loop",ease:a,times:l}={}){const u={[t]:n};l&&(u.offset=l);const c=pw(a);return Array.isArray(c)&&(u.easing=c),e.animate(u,{delay:r,duration:o,easing:Array.isArray(c)?"linear":c,fill:"both",iterations:i+1,direction:s==="reverse"?"alternate":"normal"})}function Kz(e,{repeat:t,repeatType:n="loop"}){const r=t&&n!=="loop"&&t%2===1?0:e.length-1;return e[r]}const hw=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,Xz=1e-7,qz=12;function Yz(e,t,n,r,o){let i,s,a=0;do s=t+(n-t)/2,i=hw(s,r,o)-e,i>0?n=s:t=s;while(Math.abs(i)>Xz&&++aYz(i,0,1,e,n);return i=>i===0||i===1?i:hw(o(i),t,r)}const Qz=za(.42,0,1,1),Zz=za(0,0,.58,1),mw=za(.42,0,.58,1),Jz=e=>Array.isArray(e)&&typeof e[0]!="number",gw=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,vw=e=>t=>1-e(1-t),yw=e=>1-Math.sin(Math.acos(e)),Rm=vw(yw),eO=gw(Rm),bw=za(.33,1.53,.69,.99),$m=vw(bw),tO=gw($m),nO=e=>(e*=2)<1?.5*$m(e):.5*(2-Math.pow(2,-10*(e-1))),rO={linear:Ie,easeIn:Qz,easeInOut:mw,easeOut:Zz,circIn:yw,circInOut:eO,circOut:Rm,backIn:$m,backInOut:tO,backOut:bw,anticipate:nO},Kv=e=>{if(Array.isArray(e)){Am(e.length===4);const[t,n,r,o]=e;return za(t,n,r,o)}else if(typeof e=="string")return rO[e];return e},Mm=(e,t)=>n=>!!($a(n)&&nz.test(n)&&n.startsWith(e)||t&&Object.prototype.hasOwnProperty.call(n,t)),xw=(e,t,n)=>r=>{if(!$a(r))return r;const[o,i,s,a]=r.match(Lc);return{[e]:parseFloat(o),[t]:parseFloat(i),[n]:parseFloat(s),alpha:a!==void 0?parseFloat(a):1}},oO=e=>Hr(0,255,e),sf={...zo,transform:e=>Math.round(oO(e))},mo={test:Mm("rgb","red"),parse:xw("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+sf.transform(e)+", "+sf.transform(t)+", "+sf.transform(n)+", "+Fs(js.transform(r))+")"};function iO(e){let t="",n="",r="",o="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),o=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),o=e.substring(4,5),t+=t,n+=n,r+=r,o+=o),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:o?parseInt(o,16)/255:1}}const Ap={test:Mm("#"),parse:iO,transform:mo.transform},ui={test:Mm("hsl","hue"),parse:xw("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+In.transform(Fs(t))+", "+In.transform(Fs(n))+", "+Fs(js.transform(r))+")"},ft={test:e=>mo.test(e)||Ap.test(e)||ui.test(e),parse:e=>mo.test(e)?mo.parse(e):ui.test(e)?ui.parse(e):Ap.parse(e),transform:e=>$a(e)?e:e.hasOwnProperty("red")?mo.transform(e):ui.transform(e)},$e=(e,t,n)=>-n*e+n*t+e;function af(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function sO({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let o=0,i=0,s=0;if(!t)o=i=s=n;else{const a=n<.5?n*(1+t):n+t-n*t,l=2*n-a;o=af(l,a,e+1/3),i=af(l,a,e),s=af(l,a,e-1/3)}return{red:Math.round(o*255),green:Math.round(i*255),blue:Math.round(s*255),alpha:r}}const lf=(e,t,n)=>{const r=e*e;return Math.sqrt(Math.max(0,n*(t*t-r)+r))},aO=[Ap,mo,ui],lO=e=>aO.find(t=>t.test(e));function Xv(e){const t=lO(e);let n=t.parse(e);return t===ui&&(n=sO(n)),n}const Sw=(e,t)=>{const n=Xv(e),r=Xv(t),o={...n};return i=>(o.red=lf(n.red,r.red,i),o.green=lf(n.green,r.green,i),o.blue=lf(n.blue,r.blue,i),o.alpha=$e(n.alpha,r.alpha,i),mo.transform(o))};function uO(e){var t,n;return isNaN(e)&&$a(e)&&(((t=e.match(Lc))===null||t===void 0?void 0:t.length)||0)+(((n=e.match(KS))===null||n===void 0?void 0:n.length)||0)>0}const ww={regex:ez,countKey:"Vars",token:"${v}",parse:Ie},kw={regex:KS,countKey:"Colors",token:"${c}",parse:ft.parse},Cw={regex:Lc,countKey:"Numbers",token:"${n}",parse:zo.parse};function uf(e,{regex:t,countKey:n,token:r,parse:o}){const i=e.tokenised.match(t);i&&(e["num"+n]=i.length,e.tokenised=e.tokenised.replace(t,r),e.values.push(...i.map(o)))}function Bu(e){const t=e.toString(),n={value:t,tokenised:t,values:[],numVars:0,numColors:0,numNumbers:0};return n.value.includes("var(--")&&uf(n,ww),uf(n,kw),uf(n,Cw),n}function Ew(e){return Bu(e).values}function _w(e){const{values:t,numColors:n,numVars:r,tokenised:o}=Bu(e),i=t.length;return s=>{let a=o;for(let l=0;ltypeof e=="number"?0:e;function dO(e){const t=Ew(e);return _w(e)(t.map(cO))}const Wr={test:uO,parse:Ew,createTransformer:_w,getAnimatableNone:dO},Pw=(e,t)=>n=>`${n>0?t:e}`;function Tw(e,t){return typeof e=="number"?n=>$e(e,t,n):ft.test(e)?Sw(e,t):e.startsWith("var(")?Pw(e,t):Rw(e,t)}const Aw=(e,t)=>{const n=[...e],r=n.length,o=e.map((i,s)=>Tw(i,t[s]));return i=>{for(let s=0;s{const n={...e,...t},r={};for(const o in n)e[o]!==void 0&&t[o]!==void 0&&(r[o]=Tw(e[o],t[o]));return o=>{for(const i in r)n[i]=r[i](o);return n}},Rw=(e,t)=>{const n=Wr.createTransformer(t),r=Bu(e),o=Bu(t);return r.numVars===o.numVars&&r.numColors===o.numColors&&r.numNumbers>=o.numNumbers?jr(Aw(r.values,o.values),n):Pw(e,t)},ya=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r},qv=(e,t)=>n=>$e(e,t,n);function pO(e){return typeof e=="number"?qv:typeof e=="string"?ft.test(e)?Sw:Rw:Array.isArray(e)?Aw:typeof e=="object"?fO:qv}function hO(e,t,n){const r=[],o=n||pO(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=hO(t,r,o),a=s.length,l=u=>{let c=0;if(a>1)for(;cl(Hr(e[0],e[i-1],u)):l}function mO(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const o=ya(0,t,r);e.push($e(n,1,o))}}function gO(e){const t=[0];return mO(t,e.length-1),t}function vO(e,t){return e.map(n=>n*t)}function yO(e,t){return e.map(()=>t||mw).splice(0,e.length-1)}function Vu({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const o=Jz(r)?r.map(Kv):Kv(r),i={done:!1,value:t[0]},s=vO(n&&n.length===t.length?n:gO(t),e),a=$w(s,t,{ease:Array.isArray(o)?o:yO(t,o)});return{calculatedDuration:e,next:l=>(i.value=a(l),i.done=l>=e,i)}}function Mw(e,t){return t?e*(1e3/t):0}const bO=5;function zw(e,t,n){const r=Math.max(t-bO,0);return Mw(n-e(r),t-r)}const cf=.001,xO=.01,Yv=10,SO=.05,wO=1;function kO({duration:e=800,bounce:t=.25,velocity:n=0,mass:r=1}){let o,i;Wz(e<=Fr(Yv));let s=1-t;s=Hr(SO,wO,s),e=Hr(xO,Yv,rr(e)),s<1?(o=u=>{const c=u*s,d=c*e,f=c-n,p=Rp(u,s),m=Math.exp(-d);return cf-f/p*m},i=u=>{const d=u*s*e,f=d*n+n,p=Math.pow(s,2)*Math.pow(u,2)*e,m=Math.exp(-d),y=Rp(Math.pow(u,2),s);return(-o(u)+cf>0?-1:1)*((f-p)*m)/y}):(o=u=>{const c=Math.exp(-u*e),d=(u-n)*e+1;return-cf+c*d},i=u=>{const c=Math.exp(-u*e),d=(n-u)*(e*e);return c*d});const a=5/e,l=EO(o,i,a);if(e=Fr(e),isNaN(l))return{stiffness:100,damping:10,duration:e};{const u=Math.pow(l,2)*r;return{stiffness:u,damping:s*2*Math.sqrt(r*u),duration:e}}}const CO=12;function EO(e,t,n){let r=n;for(let o=1;oe[n]!==void 0)}function TO(e){let t={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...e};if(!Qv(e,PO)&&Qv(e,_O)){const n=kO(e);t={...t,...n,velocity:0,mass:1},t.isResolvedFromDuration=!0}return t}function Ow({keyframes:e,restDelta:t,restSpeed:n,...r}){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}=TO(r),p=c?-rr(c):0,m=l/(2*Math.sqrt(a*u)),y=i-o,w=rr(Math.sqrt(a/u)),g=Math.abs(y)<5;n||(n=g?.01:2),t||(t=g?.005:.5);let h;if(m<1){const v=Rp(w,m);h=S=>{const P=Math.exp(-m*w*S);return i-P*((p+m*w*y)/v*Math.sin(v*S)+y*Math.cos(v*S))}}else if(m===1)h=v=>i-Math.exp(-w*v)*(y+(p+w*y)*v);else{const v=w*Math.sqrt(m*m-1);h=S=>{const P=Math.exp(-m*w*S),T=Math.min(v*S,300);return i-P*((p+m*w*y)*Math.sinh(T)+v*y*Math.cosh(T))/v}}return{calculatedDuration:f&&d||null,next:v=>{const S=h(v);if(f)s.done=v>=d;else{let P=p;v!==0&&(m<1?P=zw(h,v,S):P=0);const T=Math.abs(P)<=n,_=Math.abs(i-S)<=t;s.done=T&&_}return s.value=s.done?i:S,s}}}function Zv({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=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)-y*Math.exp(-A/r),v=A=>g+h(A),S=A=>{const z=h(A),M=v(A);f.done=Math.abs(z)<=u,f.value=f.done?g:M};let P,T;const _=A=>{p(f.value)&&(P=A,T=Ow({keyframes:[f.value,m(f.value)],velocity:zw(v,A,f.value),damping:o,stiffness:i,restDelta:u,restSpeed:c}))};return _(0),{calculatedDuration:null,next:A=>{let z=!1;return!T&&P===void 0&&(z=!0,S(A),_(A)),P!==void 0&&A>P?T.next(A-P):(!z&&S(A),f)}}}const AO=e=>{const t=({timestamp:n})=>e(n);return{start:()=>Se.update(t,!0),stop:()=>cr(t),now:()=>Xe.isProcessing?Xe.timestamp:performance.now()}},Jv=2e4;function ey(e){let t=0;const n=50;let r=e.next(t);for(;!r.done&&t=Jv?1/0:t}const RO={decay:Zv,inertia:Zv,tween:Vu,keyframes:Vu,spring:Ow};function Hu({autoplay:e=!0,delay:t=0,driver:n=AO,keyframes:r,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,y,w;const g=()=>{w=new Promise(V=>{y=V})};g();let h;const v=RO[o]||Vu;let S;v!==Vu&&typeof r[0]!="number"&&(S=$w([0,100],r,{clamp:!1}),r=[0,100]);const P=v({...f,keyframes:r});let T;a==="mirror"&&(T=v({...f,keyframes:[...r].reverse(),velocity:-(f.velocity||0)}));let _="idle",A=null,z=null,M=null;P.calculatedDuration===null&&i&&(P.calculatedDuration=ey(P));const{calculatedDuration:F}=P;let Y=1/0,q=1/0;F!==null&&(Y=F+s,q=Y*(i+1)-s);let Q=0;const J=V=>{if(z===null)return;p>0&&(z=Math.min(z,V)),p<0&&(z=Math.min(V-q/p,z)),A!==null?Q=A:Q=Math.round(V-z)*p;const te=Q-t*(p>=0?1:-1),B=p>=0?te<0:te>q;Q=Math.max(te,0),_==="finished"&&A===null&&(Q=q);let G=Q,ke=P;if(i){const Gt=Q/Y;let Kt=Math.floor(Gt),ot=Gt%1;!ot&&Gt>=1&&(ot=1),ot===1&&Kt--,Kt=Math.min(Kt,i+1);const Nn=!!(Kt%2);Nn&&(a==="reverse"?(ot=1-ot,s&&(ot-=s/Y)):a==="mirror"&&(ke=T));let Bn=Hr(0,1,ot);Q>q&&(Bn=a==="reverse"&&Nn?1:0),G=Bn*Y}const he=B?{done:!1,value:r[0]}:ke.next(G);S&&(he.value=S(he.value));let{done:We}=he;!B&&F!==null&&(We=p>=0?Q>=q:Q<=0);const De=A===null&&(_==="finished"||_==="running"&&We);return d&&d(he.value),De&&L(),he},Z=()=>{h&&h.stop(),h=void 0},O=()=>{_="idle",Z(),y(),g(),z=M=null},L=()=>{_="finished",c&&c(),Z(),y()},N=()=>{if(m)return;h||(h=n(J));const V=h.now();l&&l(),A!==null?z=V-A:(!z||_==="finished")&&(z=V),_==="finished"&&g(),M=z,A=null,_="running",h.start()};e&&N();const W={then(V,te){return w.then(V,te)},get time(){return rr(Q)},set time(V){V=Fr(V),Q=V,A!==null||!h||p===0?A=V:z=h.now()-V/p},get duration(){const V=P.calculatedDuration===null?ey(P):P.calculatedDuration;return rr(V)},get speed(){return p},set speed(V){V===p||!h||(p=V,W.time=rr(Q))},get state(){return _},play:N,pause:()=>{_="paused",A=Q},stop:()=>{m=!0,_!=="idle"&&(_="idle",u&&u(),O())},cancel:()=>{M!==null&&J(M),O()},complete:()=>{_="finished"},sample:V=>(z=0,J(V))};return W}function $O(e){let t;return()=>(t===void 0&&(t=e()),t)}const MO=$O(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),zO=new Set(["opacity","clipPath","filter","transform","backgroundColor"]),Cl=10,OO=2e4,LO=(e,t)=>t.type==="spring"||e==="backgroundColor"||!dw(t.ease);function IO(e,t,{onUpdate:n,onComplete:r,...o}){if(!(MO()&&zO.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(LO(t,o)){const h=Hu({...o,repeat:0,delay:0});let v={done:!1,value:c[0]};const S=[];let P=0;for(;!v.done&&Pm.cancel(),w=()=>{Se.update(y),a(),u()};return m.onfinish=()=>{e.set(Kz(c,o)),r&&r(),w()},{then(h,v){return l.then(h,v)},attachTimeline(h){return m.timeline=h,m.onfinish=null,Ie},get time(){return rr(m.currentTime||0)},set time(h){m.currentTime=Fr(h)},get speed(){return m.playbackRate},set speed(h){m.playbackRate=h},get duration(){return rr(d)},play:()=>{s||(m.play(),cr(y))},pause:()=>m.pause(),stop:()=>{if(s=!0,m.playState==="idle")return;const{currentTime:h}=m;if(h){const v=Hu({...o,autoplay:!1});e.setWithVelocity(v.sample(h-Cl).value,v.sample(h).value,Cl)}w()},complete:()=>m.finish(),cancel:w}}function DO({keyframes:e,delay:t,onUpdate:n,onComplete:r}){const o=()=>(n&&n(e[e.length-1]),r&&r(),{time:0,speed:1,duration:0,play:Ie,pause:Ie,stop:Ie,then:i=>(i(),Promise.resolve()),cancel:Ie,complete:Ie});return t?Hu({keyframes:[0,1],duration:0,delay:t,onComplete:o}):o()}const jO={type:"spring",stiffness:500,damping:25,restSpeed:10},FO=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),NO={type:"keyframes",duration:.8},BO={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},VO=(e,{keyframes:t})=>t.length>2?NO:Mo.has(e)?e.startsWith("scale")?FO(t[1]):jO:BO,$p=(e,t)=>e==="zIndex"?!1:!!(typeof t=="number"||Array.isArray(t)||typeof t=="string"&&(Wr.test(t)||t==="0")&&!t.startsWith("url(")),HO=new Set(["brightness","contrast","saturate","opacity"]);function WO(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(Lc)||[];if(!r)return e;const o=n.replace(r,"");let i=HO.has(t)?1:0;return r!==n&&(i*=100),t+"("+i+o+")"}const UO=/([a-z-]*)\(.*?\)/g,Mp={...Wr,getAnimatableNone:e=>{const t=e.match(UO);return t?t.map(WO).join(" "):e}},GO={...XS,color:ft,backgroundColor:ft,outlineColor:ft,fill:ft,stroke:ft,borderColor:ft,borderTopColor:ft,borderRightColor:ft,borderBottomColor:ft,borderLeftColor:ft,filter:Mp,WebkitFilter:Mp},zm=e=>GO[e];function Lw(e,t){let n=zm(e);return n!==Mp&&(n=Wr),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const Iw=e=>/^0[^.\s]+$/.test(e);function KO(e){if(typeof e=="number")return e===0;if(e!==null)return e==="none"||e==="0"||Iw(e)}function XO(e,t,n,r){const o=$p(t,n);let i;Array.isArray(n)?i=[...n]:i=[null,n];const s=r.from!==void 0?r.from:e.get();let a;const l=[];for(let u=0;uo=>{const i=Dw(r,e)||{},s=i.delay||r.delay||0;let{elapsed:a=0}=r;a=a-Fr(s);const l=XO(t,e,n,i),u=l[0],c=l[l.length-1],d=$p(e,u),f=$p(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(qO(i)||(p={...p,...VO(e,p)}),p.duration&&(p.duration=Fr(p.duration)),p.repeatDelay&&(p.repeatDelay=Fr(p.repeatDelay)),!d||!f||Uz.current||i.type===!1)return DO(p);if(t.owner&&t.owner.current instanceof HTMLElement&&!t.owner.getProps().onUpdate){const m=IO(t,e,p);if(m)return m}return Hu(p)};function Wu(e){return!!(Rt(e)&&e.add)}const jw=e=>/^\-?\d*\.?\d+$/.test(e);function Lm(e,t){e.indexOf(t)===-1&&e.push(t)}function Im(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}class Dm{constructor(){this.subscriptions=[]}add(t){return Lm(this.subscriptions,t),()=>Im(this.subscriptions,t)}notify(t,n,r){const o=this.subscriptions.length;if(o)if(o===1)this.subscriptions[0](t,n,r);else for(let i=0;i!isNaN(parseFloat(e));class QO{constructor(t,n={}){this.version="10.16.4",this.timeDelta=0,this.lastUpdated=0,this.canTrackVelocity=!1,this.events={},this.updateAndNotify=(r,o=!0)=>{this.prev=this.current,this.current=r;const{delta:i,timestamp:s}=Xe;this.lastUpdated!==s&&(this.timeDelta=i,this.lastUpdated=s,Se.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=()=>Se.postRender(this.velocityCheck),this.velocityCheck=({timestamp:r})=>{r!==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=YO(this.current),this.owner=n.owner}onChange(t){return this.on("change",t)}on(t,n){this.events[t]||(this.events[t]=new Dm);const r=this.events[t].add(n);return t==="change"?()=>{r(),Se.read(()=>{this.events.change.getSize()||this.stop()})}:r}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,n){this.passiveEffect=t,this.stopPassiveEffect=n}set(t,n=!0){!n||!this.passiveEffect?this.updateAndNotify(t,n):this.passiveEffect(t,this.updateAndNotify)}setWithVelocity(t,n,r){this.set(n),this.prev=t,this.timeDelta=r}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?Mw(parseFloat(this.current)-parseFloat(this.prev),this.timeDelta):0}start(t){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=t(n),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 Oi(e,t){return new QO(e,t)}const Fw=e=>t=>t.test(e),ZO={test:e=>e==="auto",parse:e=>e},Nw=[zo,K,In,xr,oz,rz,ZO],ls=e=>Nw.find(Fw(e)),JO=[...Nw,ft,Wr],e8=e=>JO.find(Fw(e));function t8(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,Oi(n))}function n8(e,t){const n=Dc(e,t);let{transitionEnd:r={},transition:o={},...i}=n?e.makeTargetAnimatable(n,!1):{};i={...i,...r};for(const s in i){const a=yz(i[s]);t8(e,s,a)}}function r8(e,t,n){var r,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(y)}return s&&Promise.all(u).then(()=>{s&&n8(e,s)}),u}function zp(e,t,n={}){const r=Dc(e,t,n.custom);let{transition:o=e.getDefaultTransition()||{}}=r||{};n.transitionOverride&&(o=n.transitionOverride);const i=r?()=>Promise.all(Bw(e,r,n)):()=>Promise.resolve(),s=e.variantChildren&&e.variantChildren.size?(l=0)=>{const{delayChildren:u=0,staggerChildren:c,staggerDirection:d}=o;return a8(e,t,u+l,c,d,n)}:()=>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(n.delay)])}function a8(e,t,n=0,r=0,o=1,i){const s=[],a=(e.variantChildren.size-1)*r,l=o===1?(u=0)=>u*r:(u=0)=>a-u*r;return Array.from(e.variantChildren).sort(l8).forEach((u,c)=>{u.notify("AnimationStart",t),s.push(zp(u,t,{...i,delay:n+l(c)}).then(()=>u.notify("AnimationComplete",t)))}),Promise.all(s)}function l8(e,t){return e.sortNodePosition(t)}function u8(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const o=t.map(i=>zp(e,i,n));r=Promise.all(o)}else if(typeof t=="string")r=zp(e,t,n);else{const o=typeof t=="function"?Dc(e,t,n.custom):t;r=Promise.all(Bw(e,o,n))}return r.then(()=>e.notify("AnimationComplete",t))}const c8=[...ym].reverse(),d8=ym.length;function f8(e){return t=>Promise.all(t.map(({animation:n,options:r})=>u8(e,n,r)))}function p8(e){let t=f8(e);const n=m8();let r=!0;const o=(l,u)=>{const c=Dc(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={},y=1/0;for(let g=0;gy&&P;const M=Array.isArray(S)?S:[S];let F=M.reduce(o,{});T===!1&&(F={});const{prevResolvedValues:Y={}}=v,q={...Y,...F},Q=J=>{z=!0,p.delete(J),v.needsAnimating[J]=!0};for(const J in q){const Z=F[J],O=Y[J];m.hasOwnProperty(J)||(Z!==O?Nu(Z)&&Nu(O)?!uw(Z,O)||A?Q(J):v.protectedKeys[J]=!0:Z!==void 0?Q(J):p.add(J):Z!==void 0&&p.has(J)?Q(J):v.protectedKeys[J]=!0)}v.prevProp=S,v.prevResolvedValues=F,v.isActive&&(m={...m,...F}),r&&e.blockInitialAnimation&&(z=!1),z&&!_&&f.push(...M.map(J=>({animation:J,options:{type:h,...l}})))}if(p.size){const g={};p.forEach(h=>{const v=e.getBaseTarget(h);v!==void 0&&(g[h]=v)}),f.push({animation:g})}let w=!!f.length;return r&&c.initial===!1&&!e.manuallyAnimateOnMount&&(w=!1),r=!1,w?t(f):Promise.resolve()}function a(l,u,c){var d;if(n[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)}),n[l].isActive=u;const f=s(c,l);for(const p in n)n[p].protectedKeys={};return f}return{animateChanges:s,setActive:a,setAnimateFunction:i,getState:()=>n}}function h8(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!uw(t,e):!1}function ro(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function m8(){return{animate:ro(!0),whileInView:ro(),whileHover:ro(),whileTap:ro(),whileDrag:ro(),whileFocus:ro(),exit:ro()}}class g8 extends Yr{constructor(t){super(t),t.animationState||(t.animationState=p8(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();this.unmount(),zc(t)&&(this.unmount=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:n}=this.node.prevProps||{};t!==n&&this.updateAnimationControlsSubscription()}unmount(){}}let v8=0;class y8 extends Yr{constructor(){super(...arguments),this.id=v8++}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:n,custom:r}=this.node.presenceContext,{isPresent:o}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===o)return;const i=this.node.animationState.setActive("exit",!t,{custom:r??this.node.getProps().custom});n&&!t&&i.then(()=>n(this.id))}mount(){const{register:t}=this.node.presenceContext||{};t&&(this.unmount=t(this.id))}unmount(){}}const b8={animation:{Feature:g8},exit:{Feature:y8}},ty=(e,t)=>Math.abs(e-t);function x8(e,t){const n=ty(e.x,t.x),r=ty(e.y,t.y);return Math.sqrt(n**2+r**2)}class Vw{constructor(t,n,{transformPagePoint:r}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const u=ff(this.lastMoveEventInfo,this.history),c=this.startEvent!==null,d=x8(u.offset,{x:0,y:0})>=3;if(!c&&!d)return;const{point:f}=u,{timestamp:p}=Xe;this.history.push({...f,timestamp:p});const{onStart:m,onMove:y}=this.handlers;c||(m&&m(this.lastMoveEvent,u),this.startEvent=this.lastMoveEvent),y&&y(this.lastMoveEvent,u)},this.handlePointerMove=(u,c)=>{this.lastMoveEvent=u,this.lastMoveEventInfo=df(c,this.transformPagePoint),Se.update(this.updatePoint,!0)},this.handlePointerUp=(u,c)=>{if(this.end(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const{onEnd:d,onSessionEnd:f}=this.handlers,p=ff(u.type==="pointercancel"?this.lastMoveEventInfo:df(c,this.transformPagePoint),this.history);this.startEvent&&d&&d(u,p),f&&f(u,p)},!ow(t))return;this.handlers=n,this.transformPagePoint=r;const o=Ic(t),i=df(o,this.transformPagePoint),{point:s}=i,{timestamp:a}=Xe;this.history=[{...s,timestamp:a}];const{onSessionStart:l}=n;l&&l(t,ff(i,this.history)),this.removeListeners=jr(nr(window,"pointermove",this.handlePointerMove),nr(window,"pointerup",this.handlePointerUp),nr(window,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),cr(this.updatePoint)}}function df(e,t){return t?{point:t(e.point)}:e}function ny(e,t){return{x:e.x-t.x,y:e.y-t.y}}function ff({point:e},t){return{point:e,delta:ny(e,Hw(t)),offset:ny(e,S8(t)),velocity:w8(t,.1)}}function S8(e){return e[0]}function Hw(e){return e[e.length-1]}function w8(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const o=Hw(e);for(;n>=0&&(r=e[n],!(o.timestamp-r.timestamp>Fr(t)));)n--;if(!r)return{x:0,y:0};const i=rr(o.timestamp-r.timestamp);if(i===0)return{x:0,y:0};const s={x:(o.x-r.x)/i,y:(o.y-r.y)/i};return s.x===1/0&&(s.x=0),s.y===1/0&&(s.y=0),s}function Nt(e){return e.max-e.min}function Op(e,t=0,n=.01){return Math.abs(e-t)<=n}function ry(e,t,n,r=.5){e.origin=r,e.originPoint=$e(t.min,t.max,e.origin),e.scale=Nt(n)/Nt(t),(Op(e.scale,1,1e-4)||isNaN(e.scale))&&(e.scale=1),e.translate=$e(n.min,n.max,e.origin)-e.originPoint,(Op(e.translate)||isNaN(e.translate))&&(e.translate=0)}function Ns(e,t,n,r){ry(e.x,t.x,n.x,r?r.originX:void 0),ry(e.y,t.y,n.y,r?r.originY:void 0)}function oy(e,t,n){e.min=n.min+t.min,e.max=e.min+Nt(t)}function k8(e,t,n){oy(e.x,t.x,n.x),oy(e.y,t.y,n.y)}function iy(e,t,n){e.min=t.min-n.min,e.max=e.min+Nt(t)}function Bs(e,t,n){iy(e.x,t.x,n.x),iy(e.y,t.y,n.y)}function C8(e,{min:t,max:n},r){return t!==void 0&&en&&(e=r?$e(n,e,r.max):Math.min(e,n)),e}function sy(e,t,n){return{min:t!==void 0?e.min+t:void 0,max:n!==void 0?e.max+n-(e.max-e.min):void 0}}function E8(e,{top:t,left:n,bottom:r,right:o}){return{x:sy(e.x,n,o),y:sy(e.y,t,r)}}function ay(e,t){let n=t.min-e.min,r=t.max-e.max;return t.max-t.minr?n=ya(t.min,t.max-r,e.min):r>o&&(n=ya(e.min,e.max-o,t.min)),Hr(0,1,n)}function T8(e,t){const n={};return t.min!==void 0&&(n.min=t.min-e.min),t.max!==void 0&&(n.max=t.max-e.min),n}const Lp=.35;function A8(e=Lp){return e===!1?e=0:e===!0&&(e=Lp),{x:ly(e,"left","right"),y:ly(e,"top","bottom")}}function ly(e,t,n){return{min:uy(e,t),max:uy(e,n)}}function uy(e,t){return typeof e=="number"?e:e[t]||0}const cy=()=>({translate:0,scale:1,origin:0,originPoint:0}),ci=()=>({x:cy(),y:cy()}),dy=()=>({min:0,max:0}),Ne=()=>({x:dy(),y:dy()});function Pn(e){return[e("x"),e("y")]}function Ww({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function R8({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function $8(e,t){if(!t)return e;const n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}function pf(e){return e===void 0||e===1}function Ip({scale:e,scaleX:t,scaleY:n}){return!pf(e)||!pf(t)||!pf(n)}function so(e){return Ip(e)||Uw(e)||e.z||e.rotate||e.rotateX||e.rotateY}function Uw(e){return fy(e.x)||fy(e.y)}function fy(e){return e&&e!=="0%"}function Uu(e,t,n){const r=e-n,o=t*r;return n+o}function py(e,t,n,r,o){return o!==void 0&&(e=Uu(e,o,r)),Uu(e,n,r)+t}function Dp(e,t=0,n=1,r,o){e.min=py(e.min,t,n,r,o),e.max=py(e.max,t,n,r,o)}function Gw(e,{x:t,y:n}){Dp(e.x,t.translate,t.scale,t.originPoint),Dp(e.y,n.translate,n.scale,n.originPoint)}function M8(e,t,n,r=!1){const o=n.length;if(!o)return;t.x=t.y=1;let i,s;for(let a=0;a1.0000000000001||e<.999999999999?e:1}function kr(e,t){e.min=e.min+t,e.max=e.max+t}function my(e,t,[n,r,o]){const i=t[o]!==void 0?t[o]:.5,s=$e(e.min,e.max,i);Dp(e,t[n],t[r],s,t.scale)}const z8=["x","scaleX","originX"],O8=["y","scaleY","originY"];function di(e,t){my(e.x,t,z8),my(e.y,t,O8)}function Kw(e,t){return Ww($8(e.getBoundingClientRect(),t))}function L8(e,t,n){const r=Kw(e,n),{scroll:o}=t;return o&&(kr(r.x,o.offset.x),kr(r.y,o.offset.y)),r}const I8=new WeakMap;class D8{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=Ne(),this.visualElement=t}start(t,{snapToCursor:n=!1}={}){const{presenceContext:r}=this.visualElement;if(r&&r.isPresent===!1)return;const o=l=>{this.stopAnimation(),n&&this.snapToCursor(Ic(l,"page").point)},i=(l,u)=>{const{drag:c,dragPropagation:d,onDragStart:f}=this.getProps();if(c&&!d&&(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=sw(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),Pn(m=>{let y=this.getAxisMotionValue(m).get()||0;if(In.test(y)){const{projection:w}=this.visualElement;if(w&&w.layout){const g=w.layout.layoutBox[m];g&&(y=Nt(g)*(parseFloat(y)/100))}}this.originPoint[m]=y}),f&&Se.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=j8(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 Vw(t,{onSessionStart:o,onStart:i,onMove:s,onSessionEnd:a},{transformPagePoint:this.visualElement.getTransformPagePoint()})}stop(t,n){const r=this.isDragging;if(this.cancel(),!r)return;const{velocity:o}=n;this.startAnimation(o);const{onDragEnd:i}=this.getProps();i&&Se.update(()=>i(t,n))}cancel(){this.isDragging=!1;const{projection:t,animationState:n}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:r}=this.getProps();!r&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),n&&n.setActive("whileDrag",!1)}updateAxis(t,n,r){const{drag:o}=this.getProps();if(!r||!El(t,o,this.currentDirection))return;const i=this.getAxisMotionValue(t);let s=this.originPoint[t]+r[t];this.constraints&&this.constraints[t]&&(s=C8(s,this.constraints[t],this.elastic[t])),i.set(s)}resolveConstraints(){const{dragConstraints:t,dragElastic:n}=this.getProps(),{layout:r}=this.visualElement.projection||{},o=this.constraints;t&&li(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):t&&r?this.constraints=E8(r.layoutBox,t):this.constraints=!1,this.elastic=A8(n),o!==this.constraints&&r&&this.constraints&&!this.hasMutatedConstraints&&Pn(i=>{this.getAxisMotionValue(i)&&(this.constraints[i]=T8(r.layoutBox[i],this.constraints[i]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!li(t))return!1;const r=t.current,{projection:o}=this.visualElement;if(!o||!o.layout)return!1;const i=L8(r,o.root,this.visualElement.getTransformPagePoint());let s=_8(o.layout.layoutBox,i);if(n){const a=n(R8(s));this.hasMutatedConstraints=!!a,a&&(s=Ww(a))}return s}startAnimation(t){const{drag:n,dragMomentum:r,dragElastic:o,dragTransition:i,dragSnapToOrigin:s,onDragTransitionEnd:a}=this.getProps(),l=this.constraints||{},u=Pn(c=>{if(!El(c,n,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:r?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,n){const r=this.getAxisMotionValue(t);return r.start(Om(t,r,0,n))}stopAnimation(){Pn(t=>this.getAxisMotionValue(t).stop())}getAxisMotionValue(t){const n="_drag"+t.toUpperCase(),r=this.visualElement.getProps(),o=r[n];return o||this.visualElement.getValue(t,(r.initial?r.initial[t]:void 0)||0)}snapToCursor(t){Pn(n=>{const{drag:r}=this.getProps();if(!El(n,r,this.currentDirection))return;const{projection:o}=this.visualElement,i=this.getAxisMotionValue(n);if(o&&o.layout){const{min:s,max:a}=o.layout.layoutBox[n];i.set(t[n]-$e(s,a,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!li(n)||!r||!this.constraints)return;this.stopAnimation();const o={x:0,y:0};Pn(s=>{const a=this.getAxisMotionValue(s);if(a){const l=a.get();o[s]=P8({min:l,max:l},this.constraints[s])}});const{transformTemplate:i}=this.visualElement.getProps();this.visualElement.current.style.transform=i?i({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.resolveConstraints(),Pn(s=>{if(!El(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;I8.set(this.visualElement,this);const t=this.visualElement.current,n=nr(t,"pointerdown",l=>{const{drag:u,dragListener:c=!0}=this.getProps();u&&c&&this.start(l)}),r=()=>{const{dragConstraints:l}=this.getProps();li(l)&&(this.constraints=this.resolveRefConstraints())},{projection:o}=this.visualElement,i=o.addEventListener("measure",r);o&&!o.layout&&(o.root&&o.root.updateScroll(),o.updateLayout()),r();const s=Zn(window,"resize",()=>this.scalePositionWithinConstraints()),a=o.addEventListener("didUpdate",({delta:l,hasLayoutChanged:u})=>{this.isDragging&&u&&(Pn(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(),n(),i(),a&&a()}}getProps(){const t=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:r=!1,dragPropagation:o=!1,dragConstraints:i=!1,dragElastic:s=Lp,dragMomentum:a=!0}=t;return{...t,drag:n,dragDirectionLock:r,dragPropagation:o,dragConstraints:i,dragElastic:s,dragMomentum:a}}}function El(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function j8(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class F8 extends Yr{constructor(t){super(t),this.removeGroupControls=Ie,this.removeListeners=Ie,this.controls=new D8(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||Ie}unmount(){this.removeGroupControls(),this.removeListeners()}}const gy=e=>(t,n)=>{e&&Se.update(()=>e(t,n))};class N8 extends Yr{constructor(){super(...arguments),this.removePointerDownListener=Ie}onPointerDown(t){this.session=new Vw(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint()})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:r,onPanEnd:o}=this.node.getProps();return{onSessionStart:gy(t),onStart:gy(n),onMove:r,onEnd:(i,s)=>{delete this.session,o&&Se.update(()=>o(i,s))}}}mount(){this.removePointerDownListener=nr(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 B8(){const e=x.useContext(Aa);if(e===null)return[!0,null];const{isPresent:t,onExitComplete:n,register:r}=e,o=x.useId();return x.useEffect(()=>r(o),[]),!t&&n?[!1,()=>n&&n(o)]:[!0]}function V8(){return H8(x.useContext(Aa))}function H8(e){return e===null?!0:e.isPresent}const Jl={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function vy(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const us={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(K.test(e))e=parseFloat(e);else return e;const n=vy(e,t.target.x),r=vy(e,t.target.y);return`${n}% ${r}%`}},W8={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,o=Wr.parse(e);if(o.length>5)return r;const i=Wr.createTransformer(e),s=typeof o[0]!="number"?1:0,a=n.x.scale*t.x,l=n.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 U8 extends Lt.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r,layoutId:o}=this.props,{projection:i}=t;YM(G8),i&&(n.group&&n.group.add(i),r&&r.register&&o&&r.register(i),i.root.didUpdate(),i.addEventListener("animationComplete",()=>{this.safeToRemove()}),i.setOptions({...i.options,onExitComplete:()=>this.safeToRemove()})),Jl.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:n,visualElement:r,drag:o,isPresent:i}=this.props,s=r.projection;return s&&(s.isPresent=i,o||t.layoutDependency!==n||n===void 0?s.willUpdate():this.safeToRemove(),t.isPresent!==i&&(i?s.promote():s.relegate()||Se.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:n,switchLayoutGroup:r}=this.props,{projection:o}=t;o&&(o.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(o),r&&r.deregister&&r.deregister(o))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function Xw(e){const[t,n]=B8(),r=x.useContext(xm);return Lt.createElement(U8,{...e,layoutGroup:r,switchLayoutGroup:x.useContext(HS),isPresent:t,safeToRemove:n})}const G8={borderRadius:{...us,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:us,borderTopRightRadius:us,borderBottomLeftRadius:us,borderBottomRightRadius:us,boxShadow:W8},qw=["TopLeft","TopRight","BottomLeft","BottomRight"],K8=qw.length,yy=e=>typeof e=="string"?parseFloat(e):e,by=e=>typeof e=="number"||K.test(e);function X8(e,t,n,r,o,i){o?(e.opacity=$e(0,n.opacity!==void 0?n.opacity:1,q8(r)),e.opacityExit=$e(t.opacity!==void 0?t.opacity:1,0,Y8(r))):i&&(e.opacity=$e(t.opacity!==void 0?t.opacity:1,n.opacity!==void 0?n.opacity:1,r));for(let s=0;srt?1:n(ya(e,t,r))}function Sy(e,t){e.min=t.min,e.max=t.max}function Zt(e,t){Sy(e.x,t.x),Sy(e.y,t.y)}function wy(e,t,n,r,o){return e-=t,e=Uu(e,1/n,r),o!==void 0&&(e=Uu(e,1/o,r)),e}function Q8(e,t=0,n=1,r=.5,o,i=e,s=e){if(In.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,r);e===i&&(a-=t),e.min=wy(e.min,t,n,a,o),e.max=wy(e.max,t,n,a,o)}function ky(e,t,[n,r,o],i,s){Q8(e,t[n],t[r],t[o],t.scale,i,s)}const Z8=["x","scaleX","originX"],J8=["y","scaleY","originY"];function Cy(e,t,n,r){ky(e.x,t,Z8,n?n.x:void 0,r?r.x:void 0),ky(e.y,t,J8,n?n.y:void 0,r?r.y:void 0)}function Ey(e){return e.translate===0&&e.scale===1}function Qw(e){return Ey(e.x)&&Ey(e.y)}function eL(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 Zw(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 _y(e){return Nt(e.x)/Nt(e.y)}class tL{constructor(){this.members=[]}add(t){Lm(this.members,t),t.scheduleRender()}remove(t){if(Im(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){const n=this.members[this.members.length-1];n&&this.promote(n)}}relegate(t){const n=this.members.findIndex(o=>t===o);if(n===0)return!1;let r;for(let o=n;o>=0;o--){const i=this.members[o];if(i.isPresent!==!1){r=i;break}}return r?(this.promote(r),!0):!1}promote(t,n){const r=this.lead;if(t!==r&&(this.prevLead=r,this.lead=t,t.show(),r)){r.instance&&r.scheduleRender(),t.scheduleRender(),t.resumeFrom=r,n&&(t.resumeFrom.preserveOpacity=!0),r.snapshot&&(t.snapshot=r.snapshot,t.snapshot.latestValues=r.animationValues||r.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);const{crossfade:o}=t.options;o===!1&&r.hide()}}exitAnimationComplete(){this.members.forEach(t=>{const{options:n,resumingFrom:r}=t;n.onExitComplete&&n.onExitComplete(),r&&r.options.onExitComplete&&r.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function Py(e,t,n){let r="";const o=e.x.translate/t.x,i=e.y.translate/t.y;if((o||i)&&(r=`translate3d(${o}px, ${i}px, 0) `),(t.x!==1||t.y!==1)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),n){const{rotate:l,rotateX:u,rotateY:c}=n;l&&(r+=`rotate(${l}deg) `),u&&(r+=`rotateX(${u}deg) `),c&&(r+=`rotateY(${c}deg) `)}const s=e.x.scale*t.x,a=e.y.scale*t.y;return(s!==1||a!==1)&&(r+=`scale(${s}, ${a})`),r||"none"}const nL=(e,t)=>e.depth-t.depth;class rL{constructor(){this.children=[],this.isDirty=!1}add(t){Lm(this.children,t),this.isDirty=!0}remove(t){Im(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(nL),this.isDirty=!1,this.children.forEach(t)}}function oL(e,t){const n=performance.now(),r=({timestamp:o})=>{const i=o-n;i>=t&&(cr(r),e(i-t))};return Se.read(r,!0),()=>cr(r)}function iL(e){window.MotionDebug&&window.MotionDebug.record(e)}function sL(e){return e instanceof SVGElement&&e.tagName!=="svg"}function aL(e,t,n){const r=Rt(e)?e:Oi(e);return r.start(Om("",r,t,n)),r.animation}const Ty=["","X","Y","Z"],Ay=1e3;let lL=0;const ao={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0};function Jw({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:o}){return class{constructor(s={},a=t==null?void 0:t()){this.id=lL++,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=()=>{ao.totalNodes=ao.resolvedTargetDeltas=ao.recalculatedProjection=0,this.nodes.forEach(dL),this.nodes.forEach(gL),this.nodes.forEach(vL),this.nodes.forEach(fL),iL(ao)},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=oL(f,250),Jl.hasAnimatedSinceResize&&(Jl.hasAnimatedSinceResize=!1,this.nodes.forEach($y))})}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 y=this.options.transition||c.getDefaultTransition()||wL,{onLayoutAnimationStart:w,onLayoutAnimationComplete:g}=c.getProps(),h=!this.targetLayout||!Zw(this.targetLayout,m)||p,v=!f&&p;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||v||f&&(h||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(d,v);const S={...Dw(y,"layout"),onPlay:w,onComplete:g};(c.shouldReduceMotion||this.options.layoutRoot)&&(S.delay=0,S.type=!1),this.startAnimation(S)}else f||$y(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,cr(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(yL),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(pL),this.sharedNodes.forEach(bL)}scheduleUpdateProjection(){Se.preRender(this.updateProjection,!1,!0)}scheduleCheckAfterUnmount(){Se.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=S/1e3;My(d.x,s.x,P),My(d.y,s.y,P),this.setTargetDelta(d),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Bs(f,this.layout.layoutBox,this.relativeParent.layout.layoutBox),xL(this.relativeTarget,this.relativeTargetOrigin,f,P),v&&eL(this.relativeTarget,v)&&(this.isProjectionDirty=!1),v||(v=Ne()),Zt(v,this.relativeTarget)),y&&(this.animationValues=c,X8(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&&(cr(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=Se.update(()=>{Jl.hasAnimatedSinceResize=!0,this.currentAnimation=aL(0,Ay,{...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(Ay),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&&e2(this.options.animationType,this.layout.layoutBox,u.layoutBox)){l=this.target||Ne();const d=Nt(this.layout.layoutBox.x);l.x.min=s.target.x.min,l.x.max=l.x.min+d;const f=Nt(this.layout.layoutBox.y);l.y.min=s.target.y.min,l.y.max=l.y.min+f}Zt(a,l),di(a,c),Ns(this.projectionDeltaWithTransform,this.layoutCorrected,a,c)}}registerSharedNode(s,a){this.sharedNodes.has(s)||this.sharedNodes.set(s,new tL),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(Ry),this.root.sharedNodes.clear()}}}function uL(e){e.updateLayout()}function cL(e){var t;const n=((t=e.resumeFrom)===null||t===void 0?void 0:t.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&n&&e.hasListeners("didUpdate")){const{layoutBox:r,measuredBox:o}=e.layout,{animationType:i}=e.options,s=n.source!==e.layout.source;i==="size"?Pn(d=>{const f=s?n.measuredBox[d]:n.layoutBox[d],p=Nt(f);f.min=r[d].min,f.max=f.min+p}):e2(i,n.layoutBox,r)&&Pn(d=>{const f=s?n.measuredBox[d]:n.layoutBox[d],p=Nt(r[d]);f.max=f.min+p,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[d].max=e.relativeTarget[d].min+p)});const a=ci();Ns(a,r,n.layoutBox);const l=ci();s?Ns(l,e.applyTransform(o,!0),n.measuredBox):Ns(l,r,n.layoutBox);const u=!Qw(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=Ne();Bs(m,n.layoutBox,f.layoutBox);const y=Ne();Bs(y,r,p.layoutBox),Zw(m,y)||(c=!0),d.options.layoutRoot&&(e.relativeTarget=y,e.relativeTargetOrigin=m,e.relativeParent=d)}}}e.notifyListeners("didUpdate",{layout:r,snapshot:n,delta:l,layoutDelta:a,hasLayoutChanged:u,hasRelativeTargetChanged:c})}else if(e.isLead()){const{onExitComplete:r}=e.options;r&&r()}e.options.transition=void 0}function dL(e){ao.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 fL(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function pL(e){e.clearSnapshot()}function Ry(e){e.clearMeasurements()}function hL(e){e.isLayoutDirty=!1}function mL(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function $y(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function gL(e){e.resolveTargetDelta()}function vL(e){e.calcProjection()}function yL(e){e.resetRotation()}function bL(e){e.removeLeadSnapshot()}function My(e,t,n){e.translate=$e(t.translate,0,n),e.scale=$e(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function zy(e,t,n,r){e.min=$e(t.min,n.min,r),e.max=$e(t.max,n.max,r)}function xL(e,t,n,r){zy(e.x,t.x,n.x,r),zy(e.y,t.y,n.y,r)}function SL(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const wL={duration:.45,ease:[.4,0,.1,1]},Oy=e=>typeof navigator<"u"&&navigator.userAgent.toLowerCase().includes(e),Ly=Oy("applewebkit/")&&!Oy("chrome/")?Math.round:Ie;function Iy(e){e.min=Ly(e.min),e.max=Ly(e.max)}function kL(e){Iy(e.x),Iy(e.y)}function e2(e,t,n){return e==="position"||e==="preserve-aspect"&&!Op(_y(t),_y(n),.2)}const CL=Jw({attachResizeListener:(e,t)=>Zn(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),hf={current:void 0},t2=Jw({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!hf.current){const e=new CL({});e.mount(window),e.setOptions({layoutScroll:!0}),hf.current=e}return hf.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),EL={pan:{Feature:N8},drag:{Feature:F8,ProjectionNode:t2,MeasureLayout:Xw}},_L=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/;function PL(e){const t=_L.exec(e);if(!t)return[,];const[,n,r]=t;return[n,r]}function jp(e,t,n=1){const[r,o]=PL(e);if(!r)return;const i=window.getComputedStyle(t).getPropertyValue(r);if(i){const s=i.trim();return jw(s)?parseFloat(s):s}else return Pp(o)?jp(o,t,n+1):o}function TL(e,{...t},n){const r=e.current;if(!(r instanceof Element))return{target:t,transitionEnd:n};n&&(n={...n}),e.values.forEach(o=>{const i=o.get();if(!Pp(i))return;const s=jp(i,r);s&&o.set(s)});for(const o in t){const i=t[o];if(!Pp(i))continue;const s=jp(i,r);s&&(t[o]=s,n||(n={}),n[o]===void 0&&(n[o]=i))}return{target:t,transitionEnd:n}}const AL=new Set(["width","height","top","left","right","bottom","x","y","translateX","translateY"]),n2=e=>AL.has(e),RL=e=>Object.keys(e).some(n2),Dy=e=>e===zo||e===K,jy=(e,t)=>parseFloat(e.split(", ")[t]),Fy=(e,t)=>(n,{transform:r})=>{if(r==="none"||!r)return 0;const o=r.match(/^matrix3d\((.+)\)$/);if(o)return jy(o[1],t);{const i=r.match(/^matrix\((.+)\)$/);return i?jy(i[1],e):0}},$L=new Set(["x","y","z"]),ML=Ra.filter(e=>!$L.has(e));function zL(e){const t=[];return ML.forEach(n=>{const r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t.length&&e.render(),t}const Li={width:({x:e},{paddingLeft:t="0",paddingRight:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),height:({y:e},{paddingTop:t="0",paddingBottom:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),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:Fy(4,13),y:Fy(5,14)};Li.translateX=Li.x;Li.translateY=Li.y;const OL=(e,t,n)=>{const r=t.measureViewportBox(),o=t.current,i=getComputedStyle(o),{display:s}=i,a={};s==="none"&&t.setStaticValue("display",e.display||"block"),n.forEach(u=>{a[u]=Li[u](r,i)}),t.render();const l=t.measureViewportBox();return n.forEach(u=>{const c=t.getValue(u);c&&c.jump(a[u]),e[u]=Li[u](l,i)}),e},LL=(e,t,n={},r={})=>{t={...t},r={...r};const o=Object.keys(t).filter(n2);let i=[],s=!1;const a=[];if(o.forEach(l=>{const u=e.getValue(l);if(!e.hasValue(l))return;let c=n[l],d=ls(c);const f=t[l];let p;if(Nu(f)){const m=f.length,y=f[0]===null?1:0;c=f[y],d=ls(c);for(let w=y;w=0?window.pageYOffset:null,u=OL(t,e,a);return i.length&&i.forEach(([c,d])=>{e.getValue(c).set(d)}),e.render(),Mc&&l!==null&&window.scrollTo({top:l}),{target:u,transitionEnd:r}}else return{target:t,transitionEnd:r}};function IL(e,t,n,r){return RL(t)?LL(e,t,n,r):{target:t,transitionEnd:r}}const DL=(e,t,n,r)=>{const o=TL(e,t,r);return t=o.target,r=o.transitionEnd,IL(e,t,n,r)},Fp={current:null},r2={current:!1};function jL(){if(r2.current=!0,!!Mc)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>Fp.current=e.matches;e.addListener(t),t()}else Fp.current=!1}function FL(e,t,n){const{willChange:r}=t;for(const o in t){const i=t[o],s=n[o];if(Rt(i))e.addValue(o,i),Wu(r)&&r.add(o);else if(Rt(s))e.addValue(o,Oi(i,{owner:e})),Wu(r)&&r.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,Oi(a!==void 0?a:i,{owner:e}))}}for(const o in n)t[o]===void 0&&e.removeValue(o);return t}const Ny=new WeakMap,o2=Object.keys(va),NL=o2.length,By=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],BL=bm.length;class VL{constructor({parent:t,props:n,presenceContext:r,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=()=>Se.render(this.render,!1,!0);const{latestValues:a,renderState:l}=i;this.latestValues=a,this.baseTarget={...a},this.initialValues=n.initial?{...a}:{},this.renderState=l,this.parent=t,this.props=n,this.presenceContext=r,this.depth=t?t.depth+1:0,this.reducedMotionConfig=o,this.options=s,this.isControllingVariants=Oc(n),this.isVariantNode=VS(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:u,...c}=this.scrapeMotionValuesFromProps(n,{});for(const d in c){const f=c[d];a[d]!==void 0&&Rt(f)&&(f.set(a[d],!1),Wu(u)&&u.add(d))}}scrapeMotionValuesFromProps(t,n){return{}}mount(t){this.current=t,Ny.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((n,r)=>this.bindToMotionValue(r,n)),r2.current||jL(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:Fp.current,this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){Ny.delete(this.current),this.projection&&this.projection.unmount(),cr(this.notifyUpdate),cr(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,n){const r=Mo.has(t),o=n.on("change",s=>{this.latestValues[t]=s,this.props.onUpdate&&Se.update(this.notifyUpdate,!1,!0),r&&this.projection&&(this.projection.isTransformDirty=!0)}),i=n.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,...n},r,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 n=this.features[t];n.isMounted?n.update():(n.mount(),n.isMounted=!0)}}triggerBuild(){this.build(this.renderState,this.latestValues,this.options,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):Ne()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,n){this.latestValues[t]=n}makeTargetAnimatable(t,n=!0){return this.makeTargetAnimatableFromInstance(t,this.props,n)}update(t,n){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let r=0;rn.variantChildren.delete(t)}addValue(t,n){n!==this.values.get(t)&&(this.removeValue(t),this.bindToMotionValue(t,n)),this.values.set(t,n),this.latestValues[t]=n.get()}removeValue(t){this.values.delete(t);const n=this.valueSubscriptions.get(t);n&&(n(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,n){if(this.props.values&&this.props.values[t])return this.props.values[t];let r=this.values.get(t);return r===void 0&&n!==void 0&&(r=Oi(n,{owner:this}),this.addValue(t,r)),r}readValue(t){var n;return this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:(n=this.getBaseTargetFromProps(this.props,t))!==null&&n!==void 0?n:this.readValueFromInstance(this.current,t,this.options)}setBaseTarget(t,n){this.baseTarget[t]=n}getBaseTarget(t){var n;const{initial:r}=this.props,o=typeof r=="string"||typeof r=="object"?(n=Tm(this.props,r))===null||n===void 0?void 0:n[t]:void 0;if(r&&o!==void 0)return o;const i=this.getBaseTargetFromProps(this.props,t);return i!==void 0&&!Rt(i)?i:this.initialValues[t]!==void 0&&o===void 0?void 0:this.baseTarget[t]}on(t,n){return this.events[t]||(this.events[t]=new Dm),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}}class i2 extends VL{sortInstanceNodePosition(t,n){return t.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(t,n){return t.style?t.style[n]:void 0}removeValueFromRenderState(t,{vars:n,style:r}){delete n[t],delete r[t]}makeTargetAnimatableFromInstance({transition:t,transitionEnd:n,...r},{transformValues:o},i){let s=i8(r,t||{},this);if(o&&(n&&(n=o(n)),r&&(r=o(r)),s&&(s=o(s))),i){r8(this,r,s);const a=DL(this,r,s,n);n=a.transitionEnd,r=a.target}return{transition:t,transitionEnd:n,...r}}}function HL(e){return window.getComputedStyle(e)}class WL extends i2{readValueFromInstance(t,n){if(Mo.has(n)){const r=zm(n);return r&&r.default||0}else{const r=HL(t),o=(GS(n)?r.getPropertyValue(n):r[n])||0;return typeof o=="string"?o.trim():o}}measureInstanceViewportBox(t,{transformPagePoint:n}){return Kw(t,n)}build(t,n,r,o){wm(t,n,r,o.transformTemplate)}scrapeMotionValuesFromProps(t,n){return Pm(t,n)}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;Rt(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}renderInstance(t,n,r,o){ZS(t,n,r,o)}}class UL extends i2{constructor(){super(...arguments),this.isSVGTag=!1}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(Mo.has(n)){const r=zm(n);return r&&r.default||0}return n=JS.has(n)?n:_m(n),t.getAttribute(n)}measureInstanceViewportBox(){return Ne()}scrapeMotionValuesFromProps(t,n){return tw(t,n)}build(t,n,r,o){Cm(t,n,r,this.isSVGTag,o.transformTemplate)}renderInstance(t,n,r,o){ew(t,n,r,o)}mount(t){this.isSVGTag=Em(t.tagName),super.mount(t)}}const GL=(e,t)=>Sm(e)?new UL(t,{enableHardwareAcceleration:!1}):new WL(t,{enableHardwareAcceleration:!0}),KL={layout:{ProjectionNode:t2,MeasureLayout:Xw}},XL={...b8,...Fz,...EL,...KL},s2=XM((e,t)=>_z(e,t,XL,GL));function a2(){const e=x.useRef(!1);return vm(()=>(e.current=!0,()=>{e.current=!1}),[]),e}function qL(){const e=a2(),[t,n]=x.useState(0),r=x.useCallback(()=>{e.current&&n(t+1)},[t]);return[x.useCallback(()=>Se.postRender(r),[r]),t]}class YL extends x.Component{getSnapshotBeforeUpdate(t){const n=this.props.childRef.current;if(n&&t.isPresent&&!this.props.isPresent){const r=this.props.sizeRef.current;r.height=n.offsetHeight||0,r.width=n.offsetWidth||0,r.top=n.offsetTop,r.left=n.offsetLeft}return null}componentDidUpdate(){}render(){return this.props.children}}function QL({children:e,isPresent:t}){const n=x.useId(),r=x.useRef(null),o=x.useRef({width:0,height:0,top:0,left:0});return x.useInsertionEffect(()=>{const{width:i,height:s,top:a,left:l}=o.current;if(t||!r.current||!i||!s)return;r.current.dataset.motionPopId=n;const u=document.createElement("style");return document.head.appendChild(u),u.sheet&&u.sheet.insertRule(` + [data-motion-pop-id="${n}"] { + position: absolute !important; + width: ${i}px !important; + height: ${s}px !important; + top: ${a}px !important; + left: ${l}px !important; + } + `),()=>{document.head.removeChild(u)}},[t]),x.createElement(YL,{isPresent:t,childRef:r,sizeRef:o},x.cloneElement(e,{ref:r}))}const mf=({children:e,initial:t,isPresent:n,onExitComplete:r,custom:o,presenceAffectsLayout:i,mode:s})=>{const a=nw(ZL),l=x.useId(),u=x.useMemo(()=>({id:l,initial:t,isPresent:n,custom:o,onExitComplete:c=>{a.set(c,!0);for(const d of a.values())if(!d)return;r&&r()},register:c=>(a.set(c,!1),()=>a.delete(c))}),i?void 0:[n]);return x.useMemo(()=>{a.forEach((c,d)=>a.set(d,!1))},[n]),x.useEffect(()=>{!n&&!a.size&&r&&r()},[n]),s==="popLayout"&&(e=x.createElement(QL,{isPresent:n},e)),x.createElement(Aa.Provider,{value:u},e)};function ZL(){return new Map}function JL(e){return x.useEffect(()=>()=>e(),[])}const Ho=e=>e.key||"";function eI(e,t){e.forEach(n=>{const r=Ho(n);t.set(r,n)})}function tI(e){const t=[];return x.Children.forEach(e,n=>{x.isValidElement(n)&&t.push(n)}),t}const nI=({children:e,custom:t,initial:n=!0,onExitComplete:r,exitBeforeEnter:o,presenceAffectsLayout:i=!0,mode:s="sync"})=>{const a=x.useContext(xm).forceRender||qL()[0],l=a2(),u=tI(e);let c=u;const d=x.useRef(new Map).current,f=x.useRef(c),p=x.useRef(new Map).current,m=x.useRef(!0);if(vm(()=>{m.current=!1,eI(u,p),f.current=c}),JL(()=>{m.current=!0,p.clear(),d.clear()}),m.current)return x.createElement(x.Fragment,null,c.map(h=>x.createElement(mf,{key:Ho(h),isPresent:!0,initial:n?void 0:!1,presenceAffectsLayout:i,mode:s},h)));c=[...c];const y=f.current.map(Ho),w=u.map(Ho),g=y.length;for(let h=0;h{if(w.indexOf(v)!==-1)return;const S=p.get(v);if(!S)return;const P=y.indexOf(v);let T=h;if(!T){const _=()=>{p.delete(v),d.delete(v);const A=f.current.findIndex(z=>z.key===v);if(f.current.splice(A,1),!d.size){if(f.current=u,l.current===!1)return;a(),r&&r()}};T=x.createElement(mf,{key:Ho(S),isPresent:!1,onExitComplete:_,custom:t,presenceAffectsLayout:i,mode:s},S),d.set(v,T)}c.splice(P,0,T)}),c=c.map(h=>{const v=h.key;return d.has(v)?h:x.createElement(mf,{key:Ho(h),isPresent:!0,presenceAffectsLayout:i,mode:s},h)}),x.createElement(x.Fragment,null,d.size?c:c.map(h=>x.cloneElement(h)))};var rI={initial:e=>{const{position:t}=e,n=["top","bottom"].includes(t)?"y":"x";let r=["top-right","bottom-right"].includes(t)?1:-1;return t==="bottom"&&(r=1),{opacity:0,[n]:r*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]}}},l2=x.memo(e=>{const{id:t,message:n,onCloseComplete:r,onRequestRemove:o,requestClose:i=!1,position:s="bottom",duration:a=5e3,containerStyle:l,motionVariants:u=rI,toastSpacing:c="0.5rem"}=e,[d,f]=x.useState(a),p=V8();zi(()=>{p||r==null||r()},[p]),zi(()=>{f(a)},[a]);const m=()=>f(null),y=()=>f(a),w=()=>{p&&o()};x.useEffect(()=>{p&&i&&o()},[p,i,o]),FM(w,d);const g=x.useMemo(()=>({pointerEvents:"auto",maxWidth:560,minWidth:300,margin:c,...l}),[l,c]),h=x.useMemo(()=>DM(s),[s]);return k.jsx(s2.div,{layout:!0,className:"chakra-toast",variants:u,initial:"initial",animate:"animate",exit:"exit",onHoverStart:m,onHoverEnd:y,custom:{position:s},style:h,children:k.jsx(X.div,{role:"status","aria-atomic":"true",className:"chakra-toast__inner",__css:g,children:Yn(n,{id:t,onClose:w})})})});l2.displayName="ToastComponent";var Vy={path:k.jsxs("g",{stroke:"currentColor",strokeWidth:"1.5",children:[k.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"}),k.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"}),k.jsx("circle",{fill:"none",strokeMiterlimit:"10",cx:"12",cy:"12",r:"11.25"})]}),viewBox:"0 0 24 24"},Oo=ee((e,t)=>{const{as:n,viewBox:r,color:o="currentColor",focusable:i=!1,children:s,className:a,__css:l,...u}=e,c=ve("chakra-icon",a),d=Xr("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=r??Vy.viewBox;if(n&&typeof n!="string")return k.jsx(X.svg,{as:n,...p,...u});const y=s??Vy.path;return k.jsx(X.svg,{verticalAlign:"middle",viewBox:m,...p,...u,children:y})});Oo.displayName="Icon";function oI(e){return k.jsx(Oo,{viewBox:"0 0 24 24",...e,children:k.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 iI(e){return k.jsx(Oo,{viewBox:"0 0 24 24",...e,children:k.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 Hy(e){return k.jsx(Oo,{viewBox:"0 0 24 24",...e,children:k.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 sI=om({"0%":{transform:"rotate(0deg)"},"100%":{transform:"rotate(360deg)"}}),jc=ee((e,t)=>{const n=Xr("Spinner",e),{label:r="Loading...",thickness:o="2px",speed:i="0.45s",emptyColor:s="transparent",className:a,...l}=bt(e),u=ve("chakra-spinner",a),c={display:"inline-block",borderColor:"currentColor",borderStyle:"solid",borderRadius:"99999px",borderWidth:o,borderBottomColor:s,borderLeftColor:s,animation:`${sI} ${i} linear infinite`,...n};return k.jsx(X.div,{ref:t,__css:c,className:u,...l,children:r&&k.jsx(X.span,{srOnly:!0,children:r})})});jc.displayName="Spinner";var[aI,jm]=Ut({name:"AlertContext",hookName:"useAlertContext",providerName:""}),[lI,Fm]=Ut({name:"AlertStylesContext",hookName:"useAlertStyles",providerName:""}),u2={info:{icon:iI,colorScheme:"blue"},warning:{icon:Hy,colorScheme:"orange"},success:{icon:oI,colorScheme:"green"},error:{icon:Hy,colorScheme:"red"},loading:{icon:jc,colorScheme:"blue"}};function uI(e){return u2[e].colorScheme}function cI(e){return u2[e].icon}var c2=ee(function(t,n){const r=Fm(),{status:o}=jm(),i={display:"inline",...r.description};return k.jsx(X.div,{ref:n,"data-status":o,...t,className:ve("chakra-alert__desc",t.className),__css:i})});c2.displayName="AlertDescription";function d2(e){const{status:t}=jm(),n=cI(t),r=Fm(),o=t==="loading"?r.spinner:r.icon;return k.jsx(X.span,{display:"inherit","data-status":t,...e,className:ve("chakra-alert__icon",e.className),__css:o,children:e.children||k.jsx(n,{h:"100%",w:"100%"})})}d2.displayName="AlertIcon";var f2=ee(function(t,n){const r=Fm(),{status:o}=jm();return k.jsx(X.div,{ref:n,"data-status":o,...t,className:ve("chakra-alert__title",t.className),__css:r.title})});f2.displayName="AlertTitle";var p2=ee(function(t,n){var r;const{status:o="info",addRole:i=!0,...s}=bt(t),a=(r=t.colorScheme)!=null?r:uI(o),l=qr("Alert",{...t,colorScheme:a}),u={width:"100%",display:"flex",alignItems:"center",position:"relative",overflow:"hidden",...l.container};return k.jsx(aI,{value:{status:o},children:k.jsx(lI,{value:l,children:k.jsx(X.div,{"data-status":o,role:i?"alert":void 0,ref:n,...s,className:ve("chakra-alert",t.className),__css:u})})})});p2.displayName="Alert";function dI(e){return k.jsx(Oo,{focusable:"false","aria-hidden":!0,...e,children:k.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 h2=ee(function(t,n){const r=Xr("CloseButton",t),{children:o,isDisabled:i,__css:s,...a}=bt(t),l={outline:0,display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0};return k.jsx(X.button,{type:"button","aria-label":"Close",ref:n,disabled:i,__css:{...l,...r,...s},...a,children:o||k.jsx(dI,{width:"1em",height:"1em"})})});h2.displayName="CloseButton";var fI={top:[],"top-left":[],"top-right":[],"bottom-left":[],bottom:[],"bottom-right":[]},Vs=pI(fI);function pI(e){let t=e;const n=new Set,r=o=>{t=o(t),n.forEach(i=>i())};return{getState:()=>t,subscribe:o=>(n.add(o),()=>{r(()=>e),n.delete(o)}),removeToast:(o,i)=>{r(s=>({...s,[i]:s[i].filter(a=>a.id!=o)}))},notify:(o,i)=>{const s=hI(o,i),{position:a,id:l}=s;return r(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&&r(s=>{const a={...s},{position:l,index:u}=Dv(a,o);return l&&u!==-1&&(a[l][u]={...a[l][u],...i,message:gI(i)}),a})},closeAll:({positions:o}={})=>{r(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=>{r(i=>{const s=FS(i,o);return s?{...i,[s]:i[s].map(a=>a.id==o?{...a,requestClose:!0}:a)}:i})},isActive:o=>!!Dv(Vs.getState(),o).position}}var Wy=0;function hI(e,t={}){var n,r;Wy+=1;const o=(n=t.id)!=null?n:Wy,i=(r=t.position)!=null?r:"bottom";return{id:o,message:e,position:i,duration:t.duration,onCloseComplete:t.onCloseComplete,onRequestRemove:()=>Vs.removeToast(String(o),i),status:t.status,requestClose:!1,containerStyle:t.containerStyle}}var mI=e=>{const{status:t,variant:n="solid",id:r,title:o,isClosable:i,onClose:s,description:a,colorScheme:l,icon:u}=e,c=r?{root:`toast-${r}`,title:`toast-${r}-title`,description:`toast-${r}-description`}:void 0;return k.jsxs(p2,{addRole:!1,status:t,variant:n,id:c==null?void 0:c.root,alignItems:"start",borderRadius:"md",boxShadow:"lg",paddingEnd:8,textAlign:"start",width:"auto",colorScheme:l,children:[k.jsx(d2,{children:u}),k.jsxs(X.div,{flex:"1",maxWidth:"100%",children:[o&&k.jsx(f2,{id:c==null?void 0:c.title,children:o}),a&&k.jsx(c2,{id:c==null?void 0:c.description,display:"block",children:a})]}),i&&k.jsx(h2,{size:"sm",onClick:s,position:"absolute",insetEnd:1,top:1})]})};function gI(e={}){const{render:t,toastComponent:n=mI}=e;return o=>typeof t=="function"?t({...o,...e}):k.jsx(n,{...o,...e})}var[vI,P7]=Ut({name:"ToastOptionsContext",strict:!1}),yI=e=>{const t=x.useSyncExternalStore(Vs.subscribe,Vs.getState,Vs.getState),{motionVariants:n,component:r=l2,portalProps:o}=e,s=Object.keys(t).map(a=>{const l=t[a];return k.jsx("div",{role:"region","aria-live":"polite","aria-label":"Notifications",id:`chakra-toast-manager-${a}`,style:jM(a),children:k.jsx(nI,{initial:!1,children:l.map(u=>k.jsx(r,{motionVariants:n,...u},u.id))})},a)});return k.jsx(Ec,{...o,children:s})},bI=e=>function({children:n,theme:r=e,toastOptions:o,...i}){return k.jsxs(LM,{theme:r,...i,children:[k.jsx(vI,{value:o==null?void 0:o.defaultOptions,children:n}),k.jsx(yI,{...o})]})},xI=bI(RS),SI=Object.defineProperty,wI=(e,t,n)=>t in e?SI(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Oe=(e,t,n)=>(wI(e,typeof t!="symbol"?t+"":t,n),n);function Uy(e){return e.sort((t,n)=>{const r=t.compareDocumentPosition(n);if(r&Node.DOCUMENT_POSITION_FOLLOWING||r&Node.DOCUMENT_POSITION_CONTAINED_BY)return-1;if(r&Node.DOCUMENT_POSITION_PRECEDING||r&Node.DOCUMENT_POSITION_CONTAINS)return 1;if(r&Node.DOCUMENT_POSITION_DISCONNECTED||r&Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC)throw Error("Cannot sort the given nodes.");return 0})}var kI=e=>typeof e=="object"&&"nodeType"in e&&e.nodeType===Node.ELEMENT_NODE;function Gy(e,t,n){let r=e+1;return n&&r>=t&&(r=0),r}function Ky(e,t,n){let r=e-1;return n&&r<0&&(r=t),r}var Np=typeof window<"u"?x.useLayoutEffect:x.useEffect,Gu=e=>e,CI=class{constructor(){Oe(this,"descendants",new Map),Oe(this,"register",e=>{if(e!=null)return kI(e)?this.registerNode(e):t=>{this.registerNode(t,e)}}),Oe(this,"unregister",e=>{this.descendants.delete(e);const t=Uy(Array.from(this.descendants.keys()));this.assignIndex(t)}),Oe(this,"destroy",()=>{this.descendants.clear()}),Oe(this,"assignIndex",e=>{this.descendants.forEach(t=>{const n=e.indexOf(t.node);t.index=n,t.node.dataset.index=t.index.toString()})}),Oe(this,"count",()=>this.descendants.size),Oe(this,"enabledCount",()=>this.enabledValues().length),Oe(this,"values",()=>Array.from(this.descendants.values()).sort((t,n)=>t.index-n.index)),Oe(this,"enabledValues",()=>this.values().filter(e=>!e.disabled)),Oe(this,"item",e=>{if(this.count()!==0)return this.values()[e]}),Oe(this,"enabledItem",e=>{if(this.enabledCount()!==0)return this.enabledValues()[e]}),Oe(this,"first",()=>this.item(0)),Oe(this,"firstEnabled",()=>this.enabledItem(0)),Oe(this,"last",()=>this.item(this.descendants.size-1)),Oe(this,"lastEnabled",()=>{const e=this.enabledValues().length-1;return this.enabledItem(e)}),Oe(this,"indexOf",e=>{var t,n;return e&&(n=(t=this.descendants.get(e))==null?void 0:t.index)!=null?n:-1}),Oe(this,"enabledIndexOf",e=>e==null?-1:this.enabledValues().findIndex(t=>t.node.isSameNode(e))),Oe(this,"next",(e,t=!0)=>{const n=Gy(e,this.count(),t);return this.item(n)}),Oe(this,"nextEnabled",(e,t=!0)=>{const n=this.item(e);if(!n)return;const r=this.enabledIndexOf(n.node),o=Gy(r,this.enabledCount(),t);return this.enabledItem(o)}),Oe(this,"prev",(e,t=!0)=>{const n=Ky(e,this.count()-1,t);return this.item(n)}),Oe(this,"prevEnabled",(e,t=!0)=>{const n=this.item(e);if(!n)return;const r=this.enabledIndexOf(n.node),o=Ky(r,this.enabledCount()-1,t);return this.enabledItem(o)}),Oe(this,"registerNode",(e,t)=>{if(!e||this.descendants.has(e))return;const n=Array.from(this.descendants.keys()).concat(e),r=Uy(n);t!=null&&t.disabled&&(t.disabled=!!t.disabled);const o={node:e,index:-1,...t};this.descendants.set(e,o),this.assignIndex(r)})}};function EI(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 cn(...e){return t=>{e.forEach(n=>{EI(n,t)})}}function _I(...e){return x.useMemo(()=>cn(...e),e)}function PI(){const e=x.useRef(new CI);return Np(()=>()=>e.current.destroy()),e.current}var[TI,m2]=Ut({name:"DescendantsProvider",errorMessage:"useDescendantsContext must be used within DescendantsProvider"});function AI(e){const t=m2(),[n,r]=x.useState(-1),o=x.useRef(null);Np(()=>()=>{o.current&&t.unregister(o.current)},[]),Np(()=>{if(!o.current)return;const s=Number(o.current.dataset.index);n!=s&&!Number.isNaN(s)&&r(s)});const i=Gu(e?t.register(e):t.register);return{descendants:t,index:n,enabledIndex:t.enabledIndexOf(o.current),register:cn(i,o)}}function RI(){return[Gu(TI),()=>Gu(m2()),()=>PI(),o=>AI(o)]}var Bp=ee(function(t,n){const{htmlWidth:r,htmlHeight:o,alt:i,...s}=t;return k.jsx("img",{width:r,height:o,ref:n,alt:i,...s})});Bp.displayName="NativeImage";function $I(e){const{loading:t,src:n,srcSet:r,onLoad:o,onError:i,crossOrigin:s,sizes:a,ignoreFallback:l}=e,[u,c]=x.useState("pending");x.useEffect(()=>{c(n?"loading":"pending")},[n]);const d=x.useRef(),f=x.useCallback(()=>{if(!n)return;p();const m=new Image;m.src=n,s&&(m.crossOrigin=s),r&&(m.srcset=r),a&&(m.sizes=a),t&&(m.loading=t),m.onload=y=>{p(),c("loaded"),o==null||o(y)},m.onerror=y=>{p(),c("failed"),i==null||i(y)},d.current=m},[n,s,r,a,o,i,t]),p=()=>{d.current&&(d.current.onload=null,d.current.onerror=null,d.current=null)};return er(()=>{if(!l)return u==="loading"&&f(),()=>{p()}},[u,f,l]),l?"loaded":u}var MI=(e,t)=>e!=="loaded"&&t==="beforeLoadOrError"||e==="failed"&&t==="onError";function zI(e,t=[]){const n=Object.assign({},e);for(const r of t)r in n&&delete n[r];return n}var Fc=ee(function(t,n){const{fallbackSrc:r,fallback:o,src:i,srcSet:s,align:a,fit:l,loading:u,ignoreFallback:c,crossOrigin:d,fallbackStrategy:f="beforeLoadOrError",referrerPolicy:p,...m}=t,y=r!==void 0||o!==void 0,w=u!=null||c||!y,g=$I({...t,crossOrigin:d,ignoreFallback:w}),h=MI(g,f),v={ref:n,objectFit:l,objectPosition:a,...w?m:zI(m,["onError","onLoad"])};return h?o||k.jsx(X.img,{as:Bp,className:"chakra-image__placeholder",src:r,...v}):k.jsx(X.img,{as:Bp,src:i,srcSet:s,crossOrigin:d,loading:u,referrerPolicy:p,className:"chakra-image",...v})});Fc.displayName="Image";function Nm(e){return x.Children.toArray(e).filter(t=>x.isValidElement(t))}var[T7,OI]=Ut({strict:!1,name:"ButtonGroupContext"});function LI(e){const[t,n]=x.useState(!e);return{ref:x.useCallback(i=>{i&&n(i.tagName==="BUTTON")},[]),type:t?"button":void 0}}function Vp(e){const{children:t,className:n,...r}=e,o=x.isValidElement(t)?x.cloneElement(t,{"aria-hidden":!0,focusable:!1}):t,i=ve("chakra-button__icon",n);return k.jsx(X.span,{display:"inline-flex",alignSelf:"center",flexShrink:0,...r,className:i,children:o})}Vp.displayName="ButtonIcon";function Hp(e){const{label:t,placement:n,spacing:r="0.5rem",children:o=k.jsx(jc,{color:"currentColor",width:"1em",height:"1em"}),className:i,__css:s,...a}=e,l=ve("chakra-button__spinner",i),u=n==="start"?"marginEnd":"marginStart",c=x.useMemo(()=>({display:"flex",alignItems:"center",position:t?"relative":"absolute",[u]:t?r:0,fontSize:"1em",lineHeight:"normal",...s}),[s,t,u,r]);return k.jsx(X.div,{className:l,...a,__css:c,children:o})}Hp.displayName="ButtonSpinner";var Nc=ee((e,t)=>{const n=OI(),r=Xr("Button",{...n,...e}),{isDisabled:o=n==null?void 0:n.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:y,as:w,...g}=bt(e),h=x.useMemo(()=>{const T={...r==null?void 0:r._focus,zIndex:1};return{display:"inline-flex",appearance:"none",alignItems:"center",justifyContent:"center",userSelect:"none",position:"relative",whiteSpace:"nowrap",verticalAlign:"middle",outline:"none",...r,...!!n&&{_focus:T}}},[r,n]),{ref:v,type:S}=LI(w),P={rightIcon:u,leftIcon:l,iconSpacing:d,children:a};return k.jsxs(X.button,{ref:_I(t,v),as:w,type:f??S,"data-active":le(s),"data-loading":le(i),__css:h,className:ve("chakra-button",y),...g,disabled:o||i,children:[i&&m==="start"&&k.jsx(Hp,{className:"chakra-button__spinner--start",label:c,placement:"start",spacing:d,children:p}),i?c||k.jsx(X.span,{opacity:0,children:k.jsx(Xy,{...P})}):k.jsx(Xy,{...P}),i&&m==="end"&&k.jsx(Hp,{className:"chakra-button__spinner--end",label:c,placement:"end",spacing:d,children:p})]})});Nc.displayName="Button";function Xy(e){const{leftIcon:t,rightIcon:n,children:r,iconSpacing:o}=e;return k.jsxs(k.Fragment,{children:[t&&k.jsx(Vp,{marginEnd:o,children:t}),r,n&&k.jsx(Vp,{marginStart:o,children:n})]})}var[II,DI]=MM("Card"),g2=ee(function(t,n){const{className:r,...o}=t,i=DI();return k.jsx(X.div,{ref:n,className:ve("chakra-card__body",r),__css:i.body,...o})}),v2=ee(function(t,n){const{className:r,children:o,direction:i="column",justify:s,align:a,...l}=bt(t),u=qr("Card",t);return k.jsx(X.div,{ref:n,className:ve("chakra-card",r),__css:{display:"flex",flexDirection:i,justifyContent:s,alignItems:a,position:"relative",minWidth:0,wordWrap:"break-word",...u.container},...l,children:k.jsx(II,{value:u,children:o})})}),[jI,FI]=Ut({name:"FormControlStylesContext",errorMessage:`useFormControlStyles returned is 'undefined'. Seems you forgot to wrap the components in "" `}),[NI,y2]=Ut({strict:!1,name:"FormControlContext"});function BI(e){const{id:t,isRequired:n,isInvalid:r,isDisabled:o,isReadOnly:i,...s}=e,a=x.useId(),l=t||`field-${a}`,u=`${l}-label`,c=`${l}-feedback`,d=`${l}-helptext`,[f,p]=x.useState(!1),[m,y]=x.useState(!1),[w,g]=x.useState(!1),h=x.useCallback((_={},A=null)=>({id:d,..._,ref:cn(A,z=>{z&&y(!0)})}),[d]),v=x.useCallback((_={},A=null)=>({..._,ref:A,"data-focus":le(w),"data-disabled":le(o),"data-invalid":le(r),"data-readonly":le(i),id:_.id!==void 0?_.id:u,htmlFor:_.htmlFor!==void 0?_.htmlFor:l}),[l,o,w,r,i,u]),S=x.useCallback((_={},A=null)=>({id:c,..._,ref:cn(A,z=>{z&&p(!0)}),"aria-live":"polite"}),[c]),P=x.useCallback((_={},A=null)=>({..._,...s,ref:A,role:"group"}),[s]),T=x.useCallback((_={},A=null)=>({..._,ref:A,role:"presentation","aria-hidden":!0,children:_.children||"*"}),[]);return{isRequired:!!n,isInvalid:!!r,isReadOnly:!!i,isDisabled:!!o,isFocused:!!w,onFocus:()=>g(!0),onBlur:()=>g(!1),hasFeedbackText:f,setHasFeedbackText:p,hasHelpText:m,setHasHelpText:y,id:l,labelId:u,feedbackId:c,helpTextId:d,htmlProps:s,getHelpTextProps:h,getErrorMessageProps:S,getRootProps:P,getLabelProps:v,getRequiredIndicatorProps:T}}var VI=ee(function(t,n){const r=qr("Form",t),o=bt(t),{getRootProps:i,htmlProps:s,...a}=BI(o),l=ve("chakra-form-control",t.className);return k.jsx(NI,{value:a,children:k.jsx(jI,{value:r,children:k.jsx(X.div,{...i({},n),className:l,__css:r.container})})})});VI.displayName="FormControl";var HI=ee(function(t,n){const r=y2(),o=FI(),i=ve("chakra-form__helper-text",t.className);return k.jsx(X.div,{...r==null?void 0:r.getHelpTextProps(t,n),__css:o.helperText,className:i})});HI.displayName="FormHelperText";function WI(e){const{isDisabled:t,isInvalid:n,isReadOnly:r,isRequired:o,...i}=b2(e);return{...i,disabled:t,readOnly:r,required:o,"aria-invalid":Dd(n),"aria-required":Dd(o),"aria-readonly":Dd(r)}}function b2(e){var t,n,r;const o=y2(),{id:i,disabled:s,readOnly:a,required:l,isRequired:u,isInvalid:c,isReadOnly:d,isDisabled:f,onFocus:p,onBlur:m,...y}=e,w=e["aria-describedby"]?[e["aria-describedby"]]:[];return o!=null&&o.hasFeedbackText&&(o!=null&&o.isInvalid)&&w.push(o.feedbackId),o!=null&&o.hasHelpText&&w.push(o.helpTextId),{...y,"aria-describedby":w.join(" ")||void 0,id:i??(o==null?void 0:o.id),isDisabled:(t=s??f)!=null?t:o==null?void 0:o.isDisabled,isReadOnly:(n=a??d)!=null?n:o==null?void 0:o.isReadOnly,isRequired:(r=l??u)!=null?r:o==null?void 0:o.isRequired,isInvalid:c??(o==null?void 0:o.isInvalid),onFocus:lt(o==null?void 0:o.onFocus,p),onBlur:lt(o==null?void 0:o.onBlur,m)}}var UI={border:"0",clip:"rect(0, 0, 0, 0)",height:"1px",width:"1px",margin:"-1px",padding:"0",overflow:"hidden",whiteSpace:"nowrap",position:"absolute"},GI=()=>typeof document<"u",qy=!1,Oa=null,Po=!1,Wp=!1,Up=new Set;function Bm(e,t){Up.forEach(n=>n(e,t))}var KI=typeof window<"u"&&window.navigator!=null?/^Mac/.test(window.navigator.platform):!1;function XI(e){return!(e.metaKey||!KI&&e.altKey||e.ctrlKey||e.key==="Control"||e.key==="Shift"||e.key==="Meta")}function Yy(e){Po=!0,XI(e)&&(Oa="keyboard",Bm("keyboard",e))}function Bo(e){if(Oa="pointer",e.type==="mousedown"||e.type==="pointerdown"){Po=!0;const t=e.composedPath?e.composedPath()[0]:e.target;let n=!1;try{n=t.matches(":focus-visible")}catch{}if(n)return;Bm("pointer",e)}}function qI(e){return e.mozInputSource===0&&e.isTrusted?!0:e.detail===0&&!e.pointerType}function YI(e){qI(e)&&(Po=!0,Oa="virtual")}function QI(e){e.target===window||e.target===document||(!Po&&!Wp&&(Oa="virtual",Bm("virtual",e)),Po=!1,Wp=!1)}function ZI(){Po=!1,Wp=!0}function Qy(){return Oa!=="pointer"}function JI(){if(!GI()||qy)return;const{focus:e}=HTMLElement.prototype;HTMLElement.prototype.focus=function(...n){Po=!0,e.apply(this,n)},document.addEventListener("keydown",Yy,!0),document.addEventListener("keyup",Yy,!0),document.addEventListener("click",YI,!0),window.addEventListener("focus",QI,!0),window.addEventListener("blur",ZI,!1),typeof PointerEvent<"u"?(document.addEventListener("pointerdown",Bo,!0),document.addEventListener("pointermove",Bo,!0),document.addEventListener("pointerup",Bo,!0)):(document.addEventListener("mousedown",Bo,!0),document.addEventListener("mousemove",Bo,!0),document.addEventListener("mouseup",Bo,!0)),qy=!0}function eD(e){JI(),e(Qy());const t=()=>e(Qy());return Up.add(t),()=>{Up.delete(t)}}function tD(e,t=[]){const n=Object.assign({},e);for(const r of t)r in n&&delete n[r];return n}function nD(e={}){const t=b2(e),{isDisabled:n,isReadOnly:r,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:y,value:w,tabIndex:g=void 0,"aria-label":h,"aria-labelledby":v,"aria-invalid":S,...P}=e,T=tD(P,["isDisabled","isReadOnly","isRequired","isInvalid","id","onBlur","onFocus","aria-describedby"]),_=Dr(p),A=Dr(a),z=Dr(l),[M,F]=x.useState(!1),[Y,q]=x.useState(!1),[Q,J]=x.useState(!1),[Z,O]=x.useState(!1);x.useEffect(()=>eD(F),[]);const L=x.useRef(null),[N,W]=x.useState(!0),[V,te]=x.useState(!!c),B=d!==void 0,G=B?d:V,ke=x.useCallback(ne=>{if(r||n){ne.preventDefault();return}B||te(G?ne.target.checked:m?!0:ne.target.checked),_==null||_(ne)},[r,n,G,B,m,_]);er(()=>{L.current&&(L.current.indeterminate=!!m)},[m]),zi(()=>{n&&q(!1)},[n,q]),er(()=>{const ne=L.current;if(!(ne!=null&&ne.form))return;const Ze=()=>{te(!!c)};return ne.form.addEventListener("reset",Ze),()=>{var dt;return(dt=ne.form)==null?void 0:dt.removeEventListener("reset",Ze)}},[]);const he=n&&!f,We=x.useCallback(ne=>{ne.key===" "&&O(!0)},[O]),De=x.useCallback(ne=>{ne.key===" "&&O(!1)},[O]);er(()=>{if(!L.current)return;L.current.checked!==G&&te(L.current.checked)},[L.current]);const Gt=x.useCallback((ne={},Ze=null)=>{const dt=pr=>{Y&&pr.preventDefault(),O(!0)};return{...ne,ref:Ze,"data-active":le(Z),"data-hover":le(Q),"data-checked":le(G),"data-focus":le(Y),"data-focus-visible":le(Y&&M),"data-indeterminate":le(m),"data-disabled":le(n),"data-invalid":le(i),"data-readonly":le(r),"aria-hidden":!0,onMouseDown:lt(ne.onMouseDown,dt),onMouseUp:lt(ne.onMouseUp,()=>O(!1)),onMouseEnter:lt(ne.onMouseEnter,()=>J(!0)),onMouseLeave:lt(ne.onMouseLeave,()=>J(!1))}},[Z,G,n,Y,M,Q,m,i,r]),Kt=x.useCallback((ne={},Ze=null)=>({...ne,ref:Ze,"data-active":le(Z),"data-hover":le(Q),"data-checked":le(G),"data-focus":le(Y),"data-focus-visible":le(Y&&M),"data-indeterminate":le(m),"data-disabled":le(n),"data-invalid":le(i),"data-readonly":le(r)}),[Z,G,n,Y,M,Q,m,i,r]),ot=x.useCallback((ne={},Ze=null)=>({...T,...ne,ref:cn(Ze,dt=>{dt&&W(dt.tagName==="LABEL")}),onClick:lt(ne.onClick,()=>{var dt;N||((dt=L.current)==null||dt.click(),requestAnimationFrame(()=>{var pr;(pr=L.current)==null||pr.focus({preventScroll:!0})}))}),"data-disabled":le(n),"data-checked":le(G),"data-invalid":le(i)}),[T,n,G,i,N]),Nn=x.useCallback((ne={},Ze=null)=>({...ne,ref:cn(L,Ze),type:"checkbox",name:y,value:w,id:s,tabIndex:g,onChange:lt(ne.onChange,ke),onBlur:lt(ne.onBlur,A,()=>q(!1)),onFocus:lt(ne.onFocus,z,()=>q(!0)),onKeyDown:lt(ne.onKeyDown,We),onKeyUp:lt(ne.onKeyUp,De),required:o,checked:G,disabled:he,readOnly:r,"aria-label":h,"aria-labelledby":v,"aria-invalid":S?!!S:i,"aria-describedby":u,"aria-disabled":n,style:UI}),[y,w,s,ke,A,z,We,De,o,G,he,r,h,v,S,i,u,n,g]),Bn=x.useCallback((ne={},Ze=null)=>({...ne,ref:Ze,onMouseDown:lt(ne.onMouseDown,rD),"data-disabled":le(n),"data-checked":le(G),"data-invalid":le(i)}),[G,n,i]);return{state:{isInvalid:i,isFocused:Y,isChecked:G,isActive:Z,isHovered:Q,isIndeterminate:m,isDisabled:n,isReadOnly:r,isRequired:o},getRootProps:ot,getCheckboxProps:Gt,getIndicatorProps:Kt,getInputProps:Nn,getLabelProps:Bn,htmlProps:T}}function rD(e){e.preventDefault(),e.stopPropagation()}function oD(e,t,n,r){const o=Dr(n);return x.useEffect(()=>{const i=typeof e=="function"?e():e??document;if(!(!n||!i))return i.addEventListener(t,o,r),()=>{i.removeEventListener(t,o,r)}},[t,e,r,o,n]),()=>{const i=typeof e=="function"?e():e??document;i==null||i.removeEventListener(t,o,r)}}function x2(e){return e!=null&&typeof e=="object"&&"nodeType"in e&&e.nodeType===Node.ELEMENT_NODE}function S2(e){var t;if(!x2(e))return!1;const n=(t=e.ownerDocument.defaultView)!=null?t:window;return e instanceof n.HTMLElement}function iD(e){var t,n;return(n=(t=w2(e))==null?void 0:t.defaultView)!=null?n:window}function w2(e){return x2(e)?e.ownerDocument:document}function sD(e){return w2(e).activeElement}var k2=e=>e.hasAttribute("tabindex"),aD=e=>k2(e)&&e.tabIndex===-1;function lD(e){return!!e.getAttribute("disabled")||!!e.getAttribute("aria-disabled")}function C2(e){return e.parentElement&&C2(e.parentElement)?!0:e.hidden}function uD(e){const t=e.getAttribute("contenteditable");return t!=="false"&&t!=null}function cD(e){if(!S2(e)||C2(e)||lD(e))return!1;const{localName:t}=e;if(["input","select","textarea","button"].indexOf(t)>=0)return!0;const r={a:()=>e.hasAttribute("href"),audio:()=>e.hasAttribute("controls"),video:()=>e.hasAttribute("controls")};return t in r?r[t]():uD(e)?!0:k2(e)}function dD(e){return e?S2(e)&&cD(e)&&!aD(e):!1}var[fD,pD]=Ut({name:"InputGroupStylesContext",errorMessage:`useInputGroupStyles returned is 'undefined'. Seems you forgot to wrap the components in "" `}),E2=ee(function(t,n){const r=qr("Input",t),{children:o,className:i,...s}=bt(t),a=ve("chakra-input__group",i),l={},u=Nm(o),c=r.field;u.forEach(f=>{var p,m;r&&(c&&f.type.id==="InputLeftElement"&&(l.paddingStart=(p=c.height)!=null?p:c.h),c&&f.type.id==="InputRightElement"&&(l.paddingEnd=(m=c.height)!=null?m:c.h),f.type.id==="InputRightAddon"&&(l.borderEndRadius=0),f.type.id==="InputLeftAddon"&&(l.borderStartRadius=0))});const d=u.map(f=>{var p,m;const y=mm({size:((p=f.props)==null?void 0:p.size)||t.size,variant:((m=f.props)==null?void 0:m.variant)||t.variant});return f.type.id!=="Input"?x.cloneElement(f,y):x.cloneElement(f,Object.assign(y,l,f.props))});return k.jsx(X.div,{className:a,ref:n,__css:{width:"100%",display:"flex",position:"relative",isolation:"isolate",...r.group},"data-group":!0,...s,children:k.jsx(fD,{value:r,children:d})})});E2.displayName="InputGroup";var hD=X("div",{baseStyle:{display:"flex",alignItems:"center",justifyContent:"center",position:"absolute",top:"0",zIndex:2}}),Bc=ee(function(t,n){var r,o;const{placement:i="left",...s}=t,a=pD(),l=a.field,c={[i==="left"?"insetStart":"insetEnd"]:"0",width:(r=l==null?void 0:l.height)!=null?r:l==null?void 0:l.h,height:(o=l==null?void 0:l.height)!=null?o:l==null?void 0:l.h,fontSize:l==null?void 0:l.fontSize,...a.element};return k.jsx(hD,{ref:n,__css:c,...s})});Bc.id="InputElement";Bc.displayName="InputElement";var Vm=ee(function(t,n){const{className:r,...o}=t,i=ve("chakra-input__left-element",r);return k.jsx(Bc,{ref:n,placement:"left",className:i,...o})});Vm.id="InputLeftElement";Vm.displayName="InputLeftElement";var _2=ee(function(t,n){const{className:r,...o}=t,i=ve("chakra-input__right-element",r);return k.jsx(Bc,{ref:n,placement:"right",className:i,...o})});_2.id="InputRightElement";_2.displayName="InputRightElement";var Hm=ee(function(t,n){const{htmlSize:r,...o}=t,i=qr("Input",o),s=bt(o),a=WI(s),l=ve("chakra-input",t.className);return k.jsx(X.input,{size:r,...a,__css:i.field,ref:n,className:l})});Hm.displayName="Input";Hm.id="Input";var[mD,P2]=Ut({name:"ListStylesContext",errorMessage:`useListStyles returned is 'undefined'. Seems you forgot to wrap the components in "" `}),Vc=ee(function(t,n){const r=qr("List",t),{children:o,styleType:i="none",stylePosition:s,spacing:a,...l}=bt(t),u=Nm(o),d=a?{["& > *:not(style) ~ *:not(style)"]:{mt:a}}:{};return k.jsx(mD,{value:r,children:k.jsx(X.ul,{ref:n,listStyleType:i,listStylePosition:s,role:"list",__css:{...r.container,...d},...l,children:u})})});Vc.displayName="List";var gD=ee((e,t)=>{const{as:n,...r}=e;return k.jsx(Vc,{ref:t,as:"ol",styleType:"decimal",marginStart:"1em",...r})});gD.displayName="OrderedList";var vD=ee(function(t,n){const{as:r,...o}=t;return k.jsx(Vc,{ref:n,as:"ul",styleType:"initial",marginStart:"1em",...o})});vD.displayName="UnorderedList";var T2=ee(function(t,n){const r=P2();return k.jsx(X.li,{ref:n,...t,__css:r.item})});T2.displayName="ListItem";var yD=ee(function(t,n){const r=P2();return k.jsx(Oo,{ref:n,role:"presentation",...t,__css:r.icon})});yD.displayName="ListIcon";var Wm=ee(function(t,n){const{templateAreas:r,gap:o,rowGap:i,columnGap:s,column:a,row:l,autoFlow:u,autoRows:c,templateRows:d,autoColumns:f,templateColumns:p,...m}=t,y={display:"grid",gridTemplateAreas:r,gridGap:o,gridRowGap:i,gridColumnGap:s,gridAutoColumns:f,gridColumn:a,gridRow:l,gridAutoFlow:u,gridAutoRows:c,gridTemplateRows:d,gridTemplateColumns:p};return k.jsx(X.div,{ref:n,__css:y,...m})});Wm.displayName="Grid";var A2=Object.freeze(["base","sm","md","lg","xl","2xl"]);function Hc(e,t){return Array.isArray(e)?e.map(n=>n===null?null:t(n)):_t(e)?Object.keys(e).reduce((n,r)=>(n[r]=t(e[r]),n),{}):e!=null?t(e):null}function bD(e,t=A2){const n={};return e.forEach((r,o)=>{const i=t[o];r!=null&&(n[i]=r)}),n}var R2=ee(function(t,n){const{columns:r,spacingX:o,spacingY:i,spacing:s,minChildWidth:a,...l}=t,u=$o(),c=a?SD(a,u):wD(r);return k.jsx(Wm,{ref:n,gap:s,columnGap:o,rowGap:i,templateColumns:c,...l})});R2.displayName="SimpleGrid";function xD(e){return typeof e=="number"?`${e}px`:e}function SD(e,t){return Hc(e,n=>{const r=uS("sizes",n,xD(n))(t);return n===null?null:`repeat(auto-fit, minmax(${r}, 1fr))`})}function wD(e){return Hc(e,t=>t===null?null:`repeat(${t}, minmax(0, 1fr))`)}var Wc=ee(function(t,n){const r=Xr("Text",t),{className:o,align:i,decoration:s,casing:a,...l}=bt(t),u=mm({textAlign:t.align,textDecoration:t.decoration,textTransform:t.casing});return k.jsx(X.p,{ref:n,className:ve("chakra-text",t.className),...u,...l,__css:r})});Wc.displayName="Text";var $2=e=>k.jsx(X.div,{className:"chakra-stack__item",...e,__css:{display:"inline-block",flex:"0 0 auto",minWidth:0,...e.__css}});$2.displayName="StackItem";function kD(e){const{spacing:t,direction:n}=e,r={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{"&":Hc(n,o=>r[o])}}var M2=ee((e,t)=>{const{isInline:n,direction:r,align:o,justify:i,spacing:s="0.5rem",wrap:a,children:l,divider:u,className:c,shouldWrapChildren:d,...f}=e,p=n?"row":r??"column",m=x.useMemo(()=>kD({spacing:s,direction:p}),[s,p]),y=!!u,w=!d&&!y,g=x.useMemo(()=>{const v=Nm(l);return w?v:v.map((S,P)=>{const T=typeof S.key<"u"?S.key:P,_=P+1===v.length,z=d?k.jsx($2,{children:S},T):S;if(!y)return z;const M=x.cloneElement(u,{__css:m}),F=_?null:M;return k.jsxs(x.Fragment,{children:[z,F]},T)})},[u,m,y,w,d,l]),h=ve("chakra-stack",c);return k.jsx(X.div,{ref:t,display:"flex",alignItems:o,justifyContent:i,flexDirection:p,flexWrap:a,gap:y?void 0:s,className:h,...f,children:g})});M2.displayName="Stack";var Lo=ee((e,t)=>k.jsx(M2,{align:"center",...e,direction:"row",ref:t}));Lo.displayName="HStack";function Zy(e){return Hc(e,t=>t==="auto"?"auto":`span ${t}/span ${t}`)}var eu=ee(function(t,n){const{area:r,colSpan:o,colStart:i,colEnd:s,rowEnd:a,rowSpan:l,rowStart:u,...c}=t,d=mm({gridArea:r,gridColumn:Zy(o),gridRow:Zy(l),gridColumnStart:i,gridColumnEnd:s,gridRowStart:u,gridRowEnd:a});return k.jsx(X.div,{ref:n,__css:d,...c})});eu.displayName="GridItem";var Uc=ee(function(t,n){const r=Xr("Heading",t),{className:o,...i}=bt(t);return k.jsx(X.h2,{ref:n,className:ve("chakra-heading",t.className),...i,__css:r})});Uc.displayName="Heading";var Gc=X("div");Gc.displayName="Box";var z2=ee(function(t,n){const{size:r,centerContent:o=!0,...i}=t,s=o?{display:"flex",alignItems:"center",justifyContent:"center"}:{};return k.jsx(Gc,{ref:n,boxSize:r,__css:{...s,flexShrink:0,flexGrow:0},...i})});z2.displayName="Square";var CD=ee(function(t,n){const{size:r,...o}=t;return k.jsx(z2,{size:r,ref:n,borderRadius:"9999px",...o})});CD.displayName="Circle";var O2=ee(function(t,n){const r=Xr("Badge",t),{className:o,...i}=bt(t);return k.jsx(X.span,{ref:n,className:ve("chakra-badge",t.className),...i,__css:{display:"inline-block",whiteSpace:"nowrap",verticalAlign:"middle",...r}})});O2.displayName="Badge";function L2(e,t={}){const{ssr:n=!0,fallback:r}=t,{getWindow:o}=OM(),i=Array.isArray(e)?e:[e];let s=Array.isArray(r)?r:[r];s=s.filter(u=>u!=null);const[a,l]=x.useState(()=>i.map((u,c)=>({media:u,matches:n?!!s[c]:o().matchMedia(u).matches})));return x.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 ED(e){const{breakpoint:t,hide:n,children:r,ssr:o}=e,[i]=L2(t,{ssr:o});return(n?!i:i)?r:null}var Jy=(e,t)=>{var n,r;return(r=(n=e==null?void 0:e.breakpoints)==null?void 0:n[t])!=null?r:t};function _D(e){const{breakpoint:t="",below:n,above:r}=e,o=$o(),i=Jy(o,n),s=Jy(o,r);let a=t;return i?a=`(max-width: ${i})`:s&&(a=`(min-width: ${s})`),a}function I2(e){const{children:t,ssr:n}=e,r=_D(e);return k.jsx(ED,{breakpoint:r,ssr:n,children:t})}I2.displayName="Show";function PD(e,t,n=A2){let r=Object.keys(e).indexOf(t);if(r!==-1)return e[t];let o=n.indexOf(t);for(;o>=0;){const i=n[o];if(e.hasOwnProperty(i)){r=o;break}o-=1}if(r!==-1){const i=n[r];return e[i]}}function TD(e){var t,n;const r=_t(e)?e:{fallback:e??"base"},i=$o().__breakpoints.details.map(({minMaxQuery:u,breakpoint:c})=>({breakpoint:c,query:u.replace("@media screen and ","")})),s=i.map(u=>u.breakpoint===r.fallback),l=L2(i.map(u=>u.query),{fallback:s,ssr:r.ssr}).findIndex(u=>u==!0);return(n=(t=i[l])==null?void 0:t.breakpoint)!=null?n:r.fallback}function AD(e,t){var n;const r=_t(t)?t:{fallback:t??"base"},o=TD(r),i=$o();if(!o)return;const s=Array.from(((n=i.__breakpoints)==null?void 0:n.keys)||[]),a=Array.isArray(e)?Object.fromEntries(Object.entries(bD(e,s)).map(([l,u])=>[l,u])):e;return PD(a,o,s)}function RD(e){const{key:t}=e;return t.length===1||t.length>1&&/[^a-zA-Z0-9]/.test(t)}function $D(e={}){const{timeout:t=300,preventDefault:n=()=>!0}=e,[r,o]=x.useState([]),i=x.useRef(),s=()=>{i.current&&(clearTimeout(i.current),i.current=null)},a=()=>{s(),i.current=setTimeout(()=>{o([]),i.current=null},t)};x.useEffect(()=>s,[]);function l(u){return c=>{if(c.key==="Backspace"){const d=[...r];d.pop(),o(d);return}if(RD(c)){const d=r.concat(c.key);n(c)&&(c.preventDefault(),c.stopPropagation()),o(d),u(d.join("")),a()}}}return l}function MD(e,t,n,r){if(t==null)return r;if(!r)return e.find(s=>n(s).toLowerCase().startsWith(t.toLowerCase()));const o=e.filter(i=>n(i).toLowerCase().startsWith(t.toLowerCase()));if(o.length>0){let i;return o.includes(r)?(i=o.indexOf(r)+1,i===o.length&&(i=0),o[i]):(i=e.indexOf(o[0]),e[i])}return r}function zD(){const e=x.useRef(new Map),t=e.current,n=x.useCallback((o,i,s,a)=>{e.current.set(s,{type:i,el:o,options:a}),o.addEventListener(i,s,a)},[]),r=x.useCallback((o,i,s,a)=>{o.removeEventListener(i,s,a),e.current.delete(s)},[]);return x.useEffect(()=>()=>{t.forEach((o,i)=>{r(o.el,o.type,i,o.options)})},[r,t]),{add:n,remove:r}}function gf(e){const t=e.target,{tagName:n,isContentEditable:r}=t;return n!=="INPUT"&&n!=="TEXTAREA"&&r!==!0}function OD(e={}){const{ref:t,isDisabled:n,isFocusable:r,clickOnEnter:o=!0,clickOnSpace:i=!0,onMouseDown:s,onMouseUp:a,onClick:l,onKeyDown:u,onKeyUp:c,tabIndex:d,onMouseOver:f,onMouseLeave:p,...m}=e,[y,w]=x.useState(!0),[g,h]=x.useState(!1),v=zD(),S=O=>{O&&O.tagName!=="BUTTON"&&w(!1)},P=y?d:d||0,T=n&&!r,_=x.useCallback(O=>{if(n){O.stopPropagation(),O.preventDefault();return}O.currentTarget.focus(),l==null||l(O)},[n,l]),A=x.useCallback(O=>{g&&gf(O)&&(O.preventDefault(),O.stopPropagation(),h(!1),v.remove(document,"keyup",A,!1))},[g,v]),z=x.useCallback(O=>{if(u==null||u(O),n||O.defaultPrevented||O.metaKey||!gf(O.nativeEvent)||y)return;const L=o&&O.key==="Enter";i&&O.key===" "&&(O.preventDefault(),h(!0)),L&&(O.preventDefault(),O.currentTarget.click()),v.add(document,"keyup",A,!1)},[n,y,u,o,i,v,A]),M=x.useCallback(O=>{if(c==null||c(O),n||O.defaultPrevented||O.metaKey||!gf(O.nativeEvent)||y)return;i&&O.key===" "&&(O.preventDefault(),h(!1),O.currentTarget.click())},[i,y,n,c]),F=x.useCallback(O=>{O.button===0&&(h(!1),v.remove(document,"mouseup",F,!1))},[v]),Y=x.useCallback(O=>{if(O.button!==0)return;if(n){O.stopPropagation(),O.preventDefault();return}y||h(!0),O.currentTarget.focus({preventScroll:!0}),v.add(document,"mouseup",F,!1),s==null||s(O)},[n,y,s,v,F]),q=x.useCallback(O=>{O.button===0&&(y||h(!1),a==null||a(O))},[a,y]),Q=x.useCallback(O=>{if(n){O.preventDefault();return}f==null||f(O)},[n,f]),J=x.useCallback(O=>{g&&(O.preventDefault(),h(!1)),p==null||p(O)},[g,p]),Z=cn(t,S);return y?{...m,ref:Z,type:"button","aria-disabled":T?void 0:n,disabled:T,onClick:_,onMouseDown:s,onMouseUp:a,onKeyUp:c,onKeyDown:u,onMouseOver:f,onMouseLeave:p}:{...m,ref:Z,role:"button","data-active":le(g),"aria-disabled":n?"true":void 0,tabIndex:T?void 0:P,onClick:_,onMouseDown:Y,onMouseUp:q,onKeyUp:M,onKeyDown:z,onMouseOver:Q,onMouseLeave:J}}function LD(e){const t=e.current;if(!t)return!1;const n=sD(t);return!n||t.contains(n)?!1:!!dD(n)}function ID(e,t){const{shouldFocus:n,visible:r,focusRef:o}=t,i=n&&!r;zi(()=>{if(!i||LD(e))return;const s=(o==null?void 0:o.current)||e.current;let a;if(s)return a=requestAnimationFrame(()=>{s.focus({preventScroll:!0})}),()=>{cancelAnimationFrame(a)}},[i,e,o])}var Vo=(e,t)=>({var:e,varRef:t?`var(${e}, ${t})`:`var(${e})`}),zt={arrowShadowColor:Vo("--popper-arrow-shadow-color"),arrowSize:Vo("--popper-arrow-size","8px"),arrowSizeHalf:Vo("--popper-arrow-size-half"),arrowBg:Vo("--popper-arrow-bg"),transformOrigin:Vo("--popper-transform-origin"),arrowOffset:Vo("--popper-arrow-offset")};function DD(e){if(e.includes("top"))return"1px 1px 0px 0 var(--popper-arrow-shadow-color)";if(e.includes("bottom"))return"-1px -1px 0px 0 var(--popper-arrow-shadow-color)";if(e.includes("right"))return"-1px 1px 0px 0 var(--popper-arrow-shadow-color)";if(e.includes("left"))return"1px -1px 0px 0 var(--popper-arrow-shadow-color)"}var jD={top:"bottom center","top-start":"bottom left","top-end":"bottom right",bottom:"top center","bottom-start":"top left","bottom-end":"top right",left:"right center","left-start":"right top","left-end":"right bottom",right:"left center","right-start":"left top","right-end":"left bottom"},FD=e=>jD[e],e1={scroll:!0,resize:!0};function ND(e){let t;return typeof e=="object"?t={enabled:!0,options:{...e1,...e}}:t={enabled:e,options:e1},t}var BD={name:"matchWidth",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:({state:e})=>{e.styles.popper.width=`${e.rects.reference.width}px`},effect:({state:e})=>()=>{const t=e.elements.reference;e.elements.popper.style.width=`${t.offsetWidth}px`}},VD={name:"transformOrigin",enabled:!0,phase:"write",fn:({state:e})=>{t1(e)},effect:({state:e})=>()=>{t1(e)}},t1=e=>{e.elements.popper.style.setProperty(zt.transformOrigin.var,FD(e.placement))},HD={name:"positionArrow",enabled:!0,phase:"afterWrite",fn:({state:e})=>{WD(e)}},WD=e=>{var t;if(!e.placement)return;const n=UD(e.placement);if((t=e.elements)!=null&&t.arrow&&n){Object.assign(e.elements.arrow.style,{[n.property]:n.value,width:zt.arrowSize.varRef,height:zt.arrowSize.varRef,zIndex:-1});const r={[zt.arrowSizeHalf.var]:`calc(${zt.arrowSize.varRef} / 2 - 1px)`,[zt.arrowOffset.var]:`calc(${zt.arrowSizeHalf.varRef} * -1)`};for(const o in r)e.elements.arrow.style.setProperty(o,r[o])}},UD=e=>{if(e.startsWith("top"))return{property:"bottom",value:zt.arrowOffset.varRef};if(e.startsWith("bottom"))return{property:"top",value:zt.arrowOffset.varRef};if(e.startsWith("left"))return{property:"right",value:zt.arrowOffset.varRef};if(e.startsWith("right"))return{property:"left",value:zt.arrowOffset.varRef}},GD={name:"innerArrow",enabled:!0,phase:"main",requires:["arrow"],fn:({state:e})=>{n1(e)},effect:({state:e})=>()=>{n1(e)}},n1=e=>{if(!e.elements.arrow)return;const t=e.elements.arrow.querySelector("[data-popper-arrow-inner]");if(!t)return;const n=DD(e.placement);n&&t.style.setProperty("--popper-arrow-default-shadow",n),Object.assign(t.style,{transform:"rotate(45deg)",background:zt.arrowBg.varRef,top:0,left:0,width:"100%",height:"100%",position:"absolute",zIndex:"inherit",boxShadow:"var(--popper-arrow-shadow, var(--popper-arrow-default-shadow))"})},KD={"start-start":{ltr:"left-start",rtl:"right-start"},"start-end":{ltr:"left-end",rtl:"right-end"},"end-start":{ltr:"right-start",rtl:"left-start"},"end-end":{ltr:"right-end",rtl:"left-end"},start:{ltr:"left",rtl:"right"},end:{ltr:"right",rtl:"left"}},XD={"auto-start":"auto-end","auto-end":"auto-start","top-start":"top-end","top-end":"top-start","bottom-start":"bottom-end","bottom-end":"bottom-start"};function qD(e,t="ltr"){var n,r;const o=((n=KD[e])==null?void 0:n[t])||e;return t==="ltr"?o:(r=XD[e])!=null?r:o}var Pt="top",dn="bottom",fn="right",Tt="left",Um="auto",La=[Pt,dn,fn,Tt],Ii="start",ba="end",YD="clippingParents",D2="viewport",cs="popper",QD="reference",r1=La.reduce(function(e,t){return e.concat([t+"-"+Ii,t+"-"+ba])},[]),j2=[].concat(La,[Um]).reduce(function(e,t){return e.concat([t,t+"-"+Ii,t+"-"+ba])},[]),ZD="beforeRead",JD="read",e9="afterRead",t9="beforeMain",n9="main",r9="afterMain",o9="beforeWrite",i9="write",s9="afterWrite",a9=[ZD,JD,e9,t9,n9,r9,o9,i9,s9];function jn(e){return e?(e.nodeName||"").toLowerCase():null}function Bt(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function To(e){var t=Bt(e).Element;return e instanceof t||e instanceof Element}function sn(e){var t=Bt(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function Gm(e){if(typeof ShadowRoot>"u")return!1;var t=Bt(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function l9(e){var t=e.state;Object.keys(t.elements).forEach(function(n){var r=t.styles[n]||{},o=t.attributes[n]||{},i=t.elements[n];!sn(i)||!jn(i)||(Object.assign(i.style,r),Object.keys(o).forEach(function(s){var a=o[s];a===!1?i.removeAttribute(s):i.setAttribute(s,a===!0?"":a)}))})}function u9(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(r){var o=t.elements[r],i=t.attributes[r]||{},s=Object.keys(t.styles.hasOwnProperty(r)?t.styles[r]:n[r]),a=s.reduce(function(l,u){return l[u]="",l},{});!sn(o)||!jn(o)||(Object.assign(o.style,a),Object.keys(i).forEach(function(l){o.removeAttribute(l)}))})}}const c9={name:"applyStyles",enabled:!0,phase:"write",fn:l9,effect:u9,requires:["computeStyles"]};function Dn(e){return e.split("-")[0]}var So=Math.max,Ku=Math.min,Di=Math.round;function Gp(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function F2(){return!/^((?!chrome|android).)*safari/i.test(Gp())}function ji(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var r=e.getBoundingClientRect(),o=1,i=1;t&&sn(e)&&(o=e.offsetWidth>0&&Di(r.width)/e.offsetWidth||1,i=e.offsetHeight>0&&Di(r.height)/e.offsetHeight||1);var s=To(e)?Bt(e):window,a=s.visualViewport,l=!F2()&&n,u=(r.left+(l&&a?a.offsetLeft:0))/o,c=(r.top+(l&&a?a.offsetTop:0))/i,d=r.width/o,f=r.height/i;return{width:d,height:f,top:c,right:u+d,bottom:c+f,left:u,x:u,y:c}}function Km(e){var t=ji(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function N2(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&Gm(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function dr(e){return Bt(e).getComputedStyle(e)}function d9(e){return["table","td","th"].indexOf(jn(e))>=0}function Qr(e){return((To(e)?e.ownerDocument:e.document)||window.document).documentElement}function Kc(e){return jn(e)==="html"?e:e.assignedSlot||e.parentNode||(Gm(e)?e.host:null)||Qr(e)}function o1(e){return!sn(e)||dr(e).position==="fixed"?null:e.offsetParent}function f9(e){var t=/firefox/i.test(Gp()),n=/Trident/i.test(Gp());if(n&&sn(e)){var r=dr(e);if(r.position==="fixed")return null}var o=Kc(e);for(Gm(o)&&(o=o.host);sn(o)&&["html","body"].indexOf(jn(o))<0;){var i=dr(o);if(i.transform!=="none"||i.perspective!=="none"||i.contain==="paint"||["transform","perspective"].indexOf(i.willChange)!==-1||t&&i.willChange==="filter"||t&&i.filter&&i.filter!=="none")return o;o=o.parentNode}return null}function Ia(e){for(var t=Bt(e),n=o1(e);n&&d9(n)&&dr(n).position==="static";)n=o1(n);return n&&(jn(n)==="html"||jn(n)==="body"&&dr(n).position==="static")?t:n||f9(e)||t}function Xm(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Hs(e,t,n){return So(e,Ku(t,n))}function p9(e,t,n){var r=Hs(e,t,n);return r>n?n:r}function B2(){return{top:0,right:0,bottom:0,left:0}}function V2(e){return Object.assign({},B2(),e)}function H2(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}var h9=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,V2(typeof t!="number"?t:H2(t,La))};function m9(e){var t,n=e.state,r=e.name,o=e.options,i=n.elements.arrow,s=n.modifiersData.popperOffsets,a=Dn(n.placement),l=Xm(a),u=[Tt,fn].indexOf(a)>=0,c=u?"height":"width";if(!(!i||!s)){var d=h9(o.padding,n),f=Km(i),p=l==="y"?Pt:Tt,m=l==="y"?dn:fn,y=n.rects.reference[c]+n.rects.reference[l]-s[l]-n.rects.popper[c],w=s[l]-n.rects.reference[l],g=Ia(i),h=g?l==="y"?g.clientHeight||0:g.clientWidth||0:0,v=y/2-w/2,S=d[p],P=h-f[c]-d[m],T=h/2-f[c]/2+v,_=Hs(S,T,P),A=l;n.modifiersData[r]=(t={},t[A]=_,t.centerOffset=_-T,t)}}function g9(e){var t=e.state,n=e.options,r=n.element,o=r===void 0?"[data-popper-arrow]":r;o!=null&&(typeof o=="string"&&(o=t.elements.popper.querySelector(o),!o)||N2(t.elements.popper,o)&&(t.elements.arrow=o))}const v9={name:"arrow",enabled:!0,phase:"main",fn:m9,effect:g9,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Fi(e){return e.split("-")[1]}var y9={top:"auto",right:"auto",bottom:"auto",left:"auto"};function b9(e,t){var n=e.x,r=e.y,o=t.devicePixelRatio||1;return{x:Di(n*o)/o||0,y:Di(r*o)/o||0}}function i1(e){var t,n=e.popper,r=e.popperRect,o=e.placement,i=e.variation,s=e.offsets,a=e.position,l=e.gpuAcceleration,u=e.adaptive,c=e.roundOffsets,d=e.isFixed,f=s.x,p=f===void 0?0:f,m=s.y,y=m===void 0?0:m,w=typeof c=="function"?c({x:p,y}):{x:p,y};p=w.x,y=w.y;var g=s.hasOwnProperty("x"),h=s.hasOwnProperty("y"),v=Tt,S=Pt,P=window;if(u){var T=Ia(n),_="clientHeight",A="clientWidth";if(T===Bt(n)&&(T=Qr(n),dr(T).position!=="static"&&a==="absolute"&&(_="scrollHeight",A="scrollWidth")),T=T,o===Pt||(o===Tt||o===fn)&&i===ba){S=dn;var z=d&&T===P&&P.visualViewport?P.visualViewport.height:T[_];y-=z-r.height,y*=l?1:-1}if(o===Tt||(o===Pt||o===dn)&&i===ba){v=fn;var M=d&&T===P&&P.visualViewport?P.visualViewport.width:T[A];p-=M-r.width,p*=l?1:-1}}var F=Object.assign({position:a},u&&y9),Y=c===!0?b9({x:p,y},Bt(n)):{x:p,y};if(p=Y.x,y=Y.y,l){var q;return Object.assign({},F,(q={},q[S]=h?"0":"",q[v]=g?"0":"",q.transform=(P.devicePixelRatio||1)<=1?"translate("+p+"px, "+y+"px)":"translate3d("+p+"px, "+y+"px, 0)",q))}return Object.assign({},F,(t={},t[S]=h?y+"px":"",t[v]=g?p+"px":"",t.transform="",t))}function x9(e){var t=e.state,n=e.options,r=n.gpuAcceleration,o=r===void 0?!0:r,i=n.adaptive,s=i===void 0?!0:i,a=n.roundOffsets,l=a===void 0?!0:a,u={placement:Dn(t.placement),variation:Fi(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:o,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,i1(Object.assign({},u,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:s,roundOffsets:l})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,i1(Object.assign({},u,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const S9={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:x9,data:{}};var _l={passive:!0};function w9(e){var t=e.state,n=e.instance,r=e.options,o=r.scroll,i=o===void 0?!0:o,s=r.resize,a=s===void 0?!0:s,l=Bt(t.elements.popper),u=[].concat(t.scrollParents.reference,t.scrollParents.popper);return i&&u.forEach(function(c){c.addEventListener("scroll",n.update,_l)}),a&&l.addEventListener("resize",n.update,_l),function(){i&&u.forEach(function(c){c.removeEventListener("scroll",n.update,_l)}),a&&l.removeEventListener("resize",n.update,_l)}}const k9={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:w9,data:{}};var C9={left:"right",right:"left",bottom:"top",top:"bottom"};function tu(e){return e.replace(/left|right|bottom|top/g,function(t){return C9[t]})}var E9={start:"end",end:"start"};function s1(e){return e.replace(/start|end/g,function(t){return E9[t]})}function qm(e){var t=Bt(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function Ym(e){return ji(Qr(e)).left+qm(e).scrollLeft}function _9(e,t){var n=Bt(e),r=Qr(e),o=n.visualViewport,i=r.clientWidth,s=r.clientHeight,a=0,l=0;if(o){i=o.width,s=o.height;var u=F2();(u||!u&&t==="fixed")&&(a=o.offsetLeft,l=o.offsetTop)}return{width:i,height:s,x:a+Ym(e),y:l}}function P9(e){var t,n=Qr(e),r=qm(e),o=(t=e.ownerDocument)==null?void 0:t.body,i=So(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),s=So(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),a=-r.scrollLeft+Ym(e),l=-r.scrollTop;return dr(o||n).direction==="rtl"&&(a+=So(n.clientWidth,o?o.clientWidth:0)-i),{width:i,height:s,x:a,y:l}}function Qm(e){var t=dr(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+r)}function W2(e){return["html","body","#document"].indexOf(jn(e))>=0?e.ownerDocument.body:sn(e)&&Qm(e)?e:W2(Kc(e))}function Ws(e,t){var n;t===void 0&&(t=[]);var r=W2(e),o=r===((n=e.ownerDocument)==null?void 0:n.body),i=Bt(r),s=o?[i].concat(i.visualViewport||[],Qm(r)?r:[]):r,a=t.concat(s);return o?a:a.concat(Ws(Kc(s)))}function Kp(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function T9(e,t){var n=ji(e,!1,t==="fixed");return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}function a1(e,t,n){return t===D2?Kp(_9(e,n)):To(t)?T9(t,n):Kp(P9(Qr(e)))}function A9(e){var t=Ws(Kc(e)),n=["absolute","fixed"].indexOf(dr(e).position)>=0,r=n&&sn(e)?Ia(e):e;return To(r)?t.filter(function(o){return To(o)&&N2(o,r)&&jn(o)!=="body"}):[]}function R9(e,t,n,r){var o=t==="clippingParents"?A9(e):[].concat(t),i=[].concat(o,[n]),s=i[0],a=i.reduce(function(l,u){var c=a1(e,u,r);return l.top=So(c.top,l.top),l.right=Ku(c.right,l.right),l.bottom=Ku(c.bottom,l.bottom),l.left=So(c.left,l.left),l},a1(e,s,r));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}function U2(e){var t=e.reference,n=e.element,r=e.placement,o=r?Dn(r):null,i=r?Fi(r):null,s=t.x+t.width/2-n.width/2,a=t.y+t.height/2-n.height/2,l;switch(o){case Pt:l={x:s,y:t.y-n.height};break;case dn:l={x:s,y:t.y+t.height};break;case fn:l={x:t.x+t.width,y:a};break;case Tt:l={x:t.x-n.width,y:a};break;default:l={x:t.x,y:t.y}}var u=o?Xm(o):null;if(u!=null){var c=u==="y"?"height":"width";switch(i){case Ii:l[u]=l[u]-(t[c]/2-n[c]/2);break;case ba:l[u]=l[u]+(t[c]/2-n[c]/2);break}}return l}function xa(e,t){t===void 0&&(t={});var n=t,r=n.placement,o=r===void 0?e.placement:r,i=n.strategy,s=i===void 0?e.strategy:i,a=n.boundary,l=a===void 0?YD:a,u=n.rootBoundary,c=u===void 0?D2:u,d=n.elementContext,f=d===void 0?cs:d,p=n.altBoundary,m=p===void 0?!1:p,y=n.padding,w=y===void 0?0:y,g=V2(typeof w!="number"?w:H2(w,La)),h=f===cs?QD:cs,v=e.rects.popper,S=e.elements[m?h:f],P=R9(To(S)?S:S.contextElement||Qr(e.elements.popper),l,c,s),T=ji(e.elements.reference),_=U2({reference:T,element:v,strategy:"absolute",placement:o}),A=Kp(Object.assign({},v,_)),z=f===cs?A:T,M={top:P.top-z.top+g.top,bottom:z.bottom-P.bottom+g.bottom,left:P.left-z.left+g.left,right:z.right-P.right+g.right},F=e.modifiersData.offset;if(f===cs&&F){var Y=F[o];Object.keys(M).forEach(function(q){var Q=[fn,dn].indexOf(q)>=0?1:-1,J=[Pt,dn].indexOf(q)>=0?"y":"x";M[q]+=Y[J]*Q})}return M}function $9(e,t){t===void 0&&(t={});var n=t,r=n.placement,o=n.boundary,i=n.rootBoundary,s=n.padding,a=n.flipVariations,l=n.allowedAutoPlacements,u=l===void 0?j2:l,c=Fi(r),d=c?a?r1:r1.filter(function(m){return Fi(m)===c}):La,f=d.filter(function(m){return u.indexOf(m)>=0});f.length===0&&(f=d);var p=f.reduce(function(m,y){return m[y]=xa(e,{placement:y,boundary:o,rootBoundary:i,padding:s})[Dn(y)],m},{});return Object.keys(p).sort(function(m,y){return p[m]-p[y]})}function M9(e){if(Dn(e)===Um)return[];var t=tu(e);return[s1(e),t,s1(t)]}function z9(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var o=n.mainAxis,i=o===void 0?!0:o,s=n.altAxis,a=s===void 0?!0:s,l=n.fallbackPlacements,u=n.padding,c=n.boundary,d=n.rootBoundary,f=n.altBoundary,p=n.flipVariations,m=p===void 0?!0:p,y=n.allowedAutoPlacements,w=t.options.placement,g=Dn(w),h=g===w,v=l||(h||!m?[tu(w)]:M9(w)),S=[w].concat(v).reduce(function(G,ke){return G.concat(Dn(ke)===Um?$9(t,{placement:ke,boundary:c,rootBoundary:d,padding:u,flipVariations:m,allowedAutoPlacements:y}):ke)},[]),P=t.rects.reference,T=t.rects.popper,_=new Map,A=!0,z=S[0],M=0;M=0,J=Q?"width":"height",Z=xa(t,{placement:F,boundary:c,rootBoundary:d,altBoundary:f,padding:u}),O=Q?q?fn:Tt:q?dn:Pt;P[J]>T[J]&&(O=tu(O));var L=tu(O),N=[];if(i&&N.push(Z[Y]<=0),a&&N.push(Z[O]<=0,Z[L]<=0),N.every(function(G){return G})){z=F,A=!1;break}_.set(F,N)}if(A)for(var W=m?3:1,V=function(ke){var he=S.find(function(We){var De=_.get(We);if(De)return De.slice(0,ke).every(function(Gt){return Gt})});if(he)return z=he,"break"},te=W;te>0;te--){var B=V(te);if(B==="break")break}t.placement!==z&&(t.modifiersData[r]._skip=!0,t.placement=z,t.reset=!0)}}const O9={name:"flip",enabled:!0,phase:"main",fn:z9,requiresIfExists:["offset"],data:{_skip:!1}};function l1(e,t,n){return n===void 0&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function u1(e){return[Pt,fn,dn,Tt].some(function(t){return e[t]>=0})}function L9(e){var t=e.state,n=e.name,r=t.rects.reference,o=t.rects.popper,i=t.modifiersData.preventOverflow,s=xa(t,{elementContext:"reference"}),a=xa(t,{altBoundary:!0}),l=l1(s,r),u=l1(a,o,i),c=u1(l),d=u1(u);t.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:u,isReferenceHidden:c,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":c,"data-popper-escaped":d})}const I9={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:L9};function D9(e,t,n){var r=Dn(e),o=[Tt,Pt].indexOf(r)>=0?-1:1,i=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,s=i[0],a=i[1];return s=s||0,a=(a||0)*o,[Tt,fn].indexOf(r)>=0?{x:a,y:s}:{x:s,y:a}}function j9(e){var t=e.state,n=e.options,r=e.name,o=n.offset,i=o===void 0?[0,0]:o,s=j2.reduce(function(c,d){return c[d]=D9(d,t.rects,i),c},{}),a=s[t.placement],l=a.x,u=a.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=u),t.modifiersData[r]=s}const F9={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:j9};function N9(e){var t=e.state,n=e.name;t.modifiersData[n]=U2({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}const B9={name:"popperOffsets",enabled:!0,phase:"read",fn:N9,data:{}};function V9(e){return e==="x"?"y":"x"}function H9(e){var t=e.state,n=e.options,r=e.name,o=n.mainAxis,i=o===void 0?!0:o,s=n.altAxis,a=s===void 0?!1:s,l=n.boundary,u=n.rootBoundary,c=n.altBoundary,d=n.padding,f=n.tether,p=f===void 0?!0:f,m=n.tetherOffset,y=m===void 0?0:m,w=xa(t,{boundary:l,rootBoundary:u,padding:d,altBoundary:c}),g=Dn(t.placement),h=Fi(t.placement),v=!h,S=Xm(g),P=V9(S),T=t.modifiersData.popperOffsets,_=t.rects.reference,A=t.rects.popper,z=typeof y=="function"?y(Object.assign({},t.rects,{placement:t.placement})):y,M=typeof z=="number"?{mainAxis:z,altAxis:z}:Object.assign({mainAxis:0,altAxis:0},z),F=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,Y={x:0,y:0};if(T){if(i){var q,Q=S==="y"?Pt:Tt,J=S==="y"?dn:fn,Z=S==="y"?"height":"width",O=T[S],L=O+w[Q],N=O-w[J],W=p?-A[Z]/2:0,V=h===Ii?_[Z]:A[Z],te=h===Ii?-A[Z]:-_[Z],B=t.elements.arrow,G=p&&B?Km(B):{width:0,height:0},ke=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:B2(),he=ke[Q],We=ke[J],De=Hs(0,_[Z],G[Z]),Gt=v?_[Z]/2-W-De-he-M.mainAxis:V-De-he-M.mainAxis,Kt=v?-_[Z]/2+W+De+We+M.mainAxis:te+De+We+M.mainAxis,ot=t.elements.arrow&&Ia(t.elements.arrow),Nn=ot?S==="y"?ot.clientTop||0:ot.clientLeft||0:0,Bn=(q=F==null?void 0:F[S])!=null?q:0,Ba=O+Gt-Bn-Nn,ne=O+Kt-Bn,Ze=Hs(p?Ku(L,Ba):L,O,p?So(N,ne):N);T[S]=Ze,Y[S]=Ze-O}if(a){var dt,pr=S==="x"?Pt:Tt,Jc=S==="x"?dn:fn,Xt=T[P],hr=P==="y"?"height":"width",Zr=Xt+w[pr],qt=Xt-w[Jc],Io=[Pt,Tt].indexOf(g)!==-1,Gi=(dt=F==null?void 0:F[P])!=null?dt:0,Va=Io?Zr:Xt-_[hr]-A[hr]-Gi+M.altAxis,Ha=Io?Xt+_[hr]+A[hr]-Gi-M.altAxis:qt,Jr=p&&Io?p9(Va,Xt,Ha):Hs(p?Va:Zr,Xt,p?Ha:qt);T[P]=Jr,Y[P]=Jr-Xt}t.modifiersData[r]=Y}}const W9={name:"preventOverflow",enabled:!0,phase:"main",fn:H9,requiresIfExists:["offset"]};function U9(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function G9(e){return e===Bt(e)||!sn(e)?qm(e):U9(e)}function K9(e){var t=e.getBoundingClientRect(),n=Di(t.width)/e.offsetWidth||1,r=Di(t.height)/e.offsetHeight||1;return n!==1||r!==1}function X9(e,t,n){n===void 0&&(n=!1);var r=sn(t),o=sn(t)&&K9(t),i=Qr(t),s=ji(e,o,n),a={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(r||!r&&!n)&&((jn(t)!=="body"||Qm(i))&&(a=G9(t)),sn(t)?(l=ji(t,!0),l.x+=t.clientLeft,l.y+=t.clientTop):i&&(l.x=Ym(i))),{x:s.left+a.scrollLeft-l.x,y:s.top+a.scrollTop-l.y,width:s.width,height:s.height}}function q9(e){var t=new Map,n=new Set,r=[];e.forEach(function(i){t.set(i.name,i)});function o(i){n.add(i.name);var s=[].concat(i.requires||[],i.requiresIfExists||[]);s.forEach(function(a){if(!n.has(a)){var l=t.get(a);l&&o(l)}}),r.push(i)}return e.forEach(function(i){n.has(i.name)||o(i)}),r}function Y9(e){var t=q9(e);return a9.reduce(function(n,r){return n.concat(t.filter(function(o){return o.phase===r}))},[])}function Q9(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function Z9(e){var t=e.reduce(function(n,r){var o=n[r.name];return n[r.name]=o?Object.assign({},o,r,{options:Object.assign({},o.options,r.options),data:Object.assign({},o.data,r.data)}):r,n},{});return Object.keys(t).map(function(n){return t[n]})}var c1={placement:"bottom",modifiers:[],strategy:"absolute"};function d1(){for(var e=arguments.length,t=new Array(e),n=0;n{}),v=x.useCallback(()=>{var M;!t||!m.current||!y.current||((M=h.current)==null||M.call(h),w.current=tj(m.current,y.current,{placement:g,modifiers:[GD,HD,VD,{...BD,enabled:!!f},{name:"eventListeners",...ND(s)},{name:"arrow",options:{padding:i}},{name:"offset",options:{offset:a??[0,l]}},{name:"flip",enabled:!!u,options:{padding:8}},{name:"preventOverflow",enabled:!!d,options:{boundary:c}},...n??[]],strategy:o}),w.current.forceUpdate(),h.current=w.current.destroy)},[g,t,n,f,s,i,a,l,u,d,c,o]);x.useEffect(()=>()=>{var M;!m.current&&!y.current&&((M=w.current)==null||M.destroy(),w.current=null)},[]);const S=x.useCallback(M=>{m.current=M,v()},[v]),P=x.useCallback((M={},F=null)=>({...M,ref:cn(S,F)}),[S]),T=x.useCallback(M=>{y.current=M,v()},[v]),_=x.useCallback((M={},F=null)=>({...M,ref:cn(T,F),style:{...M.style,position:o,minWidth:f?void 0:"max-content",inset:"0 auto auto 0"}}),[o,T,f]),A=x.useCallback((M={},F=null)=>{const{size:Y,shadowColor:q,bg:Q,style:J,...Z}=M;return{...Z,ref:F,"data-popper-arrow":"",style:rj(M)}},[]),z=x.useCallback((M={},F=null)=>({...M,ref:F,"data-popper-arrow-inner":""}),[]);return{update(){var M;(M=w.current)==null||M.update()},forceUpdate(){var M;(M=w.current)==null||M.forceUpdate()},transformOrigin:zt.transformOrigin.varRef,referenceRef:S,popperRef:T,getPopperProps:_,getArrowProps:A,getArrowInnerProps:z,getReferenceProps:P}}function rj(e){const{size:t,shadowColor:n,bg:r,style:o}=e,i={...o,position:"absolute"};return t&&(i["--popper-arrow-size"]=t),n&&(i["--popper-arrow-shadow-color"]=n),r&&(i["--popper-arrow-bg"]=r),i}function oj(e={}){const{onClose:t,onOpen:n,isOpen:r,id:o}=e,i=Dr(n),s=Dr(t),[a,l]=x.useState(e.defaultIsOpen||!1),u=r!==void 0?r:a,c=r!==void 0,d=x.useId(),f=o??`disclosure-${d}`,p=x.useCallback(()=>{c||l(!1),s==null||s()},[c,s]),m=x.useCallback(()=>{c||l(!0),i==null||i()},[c,i]),y=x.useCallback(()=>{u?p():m()},[u,m,p]);function w(h={}){return{...h,"aria-expanded":u,"aria-controls":f,onClick(v){var S;(S=h.onClick)==null||S.call(h,v),y()}}}function g(h={}){return{...h,hidden:!u,id:f}}return{isOpen:u,onOpen:m,onClose:p,onToggle:y,isControlled:c,getButtonProps:w,getDisclosureProps:g}}function ij(e){const{ref:t,handler:n,enabled:r=!0}=e,o=Dr(n),s=x.useRef({isPointerDown:!1,ignoreEmulatedMouseEvents:!1}).current;x.useEffect(()=>{if(!r)return;const a=d=>{vf(d,t)&&(s.isPointerDown=!0)},l=d=>{if(s.ignoreEmulatedMouseEvents){s.ignoreEmulatedMouseEvents=!1;return}s.isPointerDown&&n&&vf(d,t)&&(s.isPointerDown=!1,o(d))},u=d=>{s.ignoreEmulatedMouseEvents=!0,n&&s.isPointerDown&&vf(d,t)&&(s.isPointerDown=!1,o(d))},c=G2(t.current);return c.addEventListener("mousedown",a,!0),c.addEventListener("mouseup",l,!0),c.addEventListener("touchstart",a,!0),c.addEventListener("touchend",u,!0),()=>{c.removeEventListener("mousedown",a,!0),c.removeEventListener("mouseup",l,!0),c.removeEventListener("touchstart",a,!0),c.removeEventListener("touchend",u,!0)}},[n,t,o,s,r])}function vf(e,t){var n;const r=e.target;return r&&!G2(r).contains(r)?!1:!((n=t.current)!=null&&n.contains(r))}function G2(e){var t;return(t=e==null?void 0:e.ownerDocument)!=null?t:document}function sj(e){const{isOpen:t,ref:n}=e,[r,o]=x.useState(t),[i,s]=x.useState(!1);return x.useEffect(()=>{i||(o(t),s(!0))},[t,i,r]),oD(()=>n.current,"animationend",()=>{o(t)}),{present:!(t?!1:!r),onComplete(){var l;const u=iD(n.current),c=new u.CustomEvent("animationend",{bubbles:!0});(l=n.current)==null||l.dispatchEvent(c)}}}function aj(e){const{wasSelected:t,enabled:n,isSelected:r,mode:o="unmount"}=e;return!!(!n||r||o==="keepMounted"&&t)}var[lj,uj,cj,dj]=RI(),[fj,Da]=Ut({strict:!1,name:"MenuContext"});function pj(e,...t){const n=x.useId(),r=e||n;return x.useMemo(()=>t.map(o=>`${o}-${r}`),[r,t])}function K2(e){var t;return(t=e==null?void 0:e.ownerDocument)!=null?t:document}function f1(e){return K2(e).activeElement===e}function hj(e={}){const{id:t,closeOnSelect:n=!0,closeOnBlur:r=!0,initialFocusRef:o,autoSelect:i=!0,isLazy:s,isOpen:a,defaultIsOpen:l,onClose:u,onOpen:c,placement:d="bottom-start",lazyBehavior:f="unmount",direction:p,computePositionOnMount:m=!1,...y}=e,w=x.useRef(null),g=x.useRef(null),h=cj(),v=x.useCallback(()=>{requestAnimationFrame(()=>{var B;(B=w.current)==null||B.focus({preventScroll:!1})})},[]),S=x.useCallback(()=>{const B=setTimeout(()=>{var G;if(o)(G=o.current)==null||G.focus();else{const ke=h.firstEnabled();ke&&q(ke.index)}});L.current.add(B)},[h,o]),P=x.useCallback(()=>{const B=setTimeout(()=>{const G=h.lastEnabled();G&&q(G.index)});L.current.add(B)},[h]),T=x.useCallback(()=>{c==null||c(),i?S():v()},[i,S,v,c]),{isOpen:_,onOpen:A,onClose:z,onToggle:M}=oj({isOpen:a,defaultIsOpen:l,onClose:u,onOpen:T});ij({enabled:_&&r,ref:w,handler:B=>{var G;(G=g.current)!=null&&G.contains(B.target)||z()}});const F=nj({...y,enabled:_||m,placement:d,direction:p}),[Y,q]=x.useState(-1);zi(()=>{_||q(-1)},[_]),ID(w,{focusRef:g,visible:_,shouldFocus:!0});const Q=sj({isOpen:_,ref:w}),[J,Z]=pj(t,"menu-button","menu-list"),O=x.useCallback(()=>{A(),v()},[A,v]),L=x.useRef(new Set([]));x.useEffect(()=>{const B=L.current;return()=>{B.forEach(G=>clearTimeout(G)),B.clear()}},[]);const N=x.useCallback(()=>{A(),S()},[S,A]),W=x.useCallback(()=>{A(),P()},[A,P]),V=x.useCallback(()=>{var B,G;const ke=K2(w.current),he=(B=w.current)==null?void 0:B.contains(ke.activeElement);if(!(_&&!he))return;const De=(G=h.item(Y))==null?void 0:G.node;De==null||De.focus({preventScroll:!0})},[_,Y,h]),te=x.useRef(null);return{openAndFocusMenu:O,openAndFocusFirstItem:N,openAndFocusLastItem:W,onTransitionEnd:V,unstable__animationState:Q,descendants:h,popper:F,buttonId:J,menuId:Z,forceUpdate:F.forceUpdate,orientation:"vertical",isOpen:_,onToggle:M,onOpen:A,onClose:z,menuRef:w,buttonRef:g,focusedIndex:Y,closeOnSelect:n,closeOnBlur:r,autoSelect:i,setFocusedIndex:q,isLazy:s,lazyBehavior:f,initialFocusRef:o,rafId:te}}function mj(e={},t=null){const n=Da(),{onToggle:r,popper:o,openAndFocusFirstItem:i,openAndFocusLastItem:s}=n,a=x.useCallback(l=>{const u=l.key,d={Enter:i,ArrowDown:i,ArrowUp:s}[u];d&&(l.preventDefault(),l.stopPropagation(),d(l))},[i,s]);return{...e,ref:cn(n.buttonRef,t,o.referenceRef),id:n.buttonId,"data-active":le(n.isOpen),"aria-expanded":n.isOpen,"aria-haspopup":"menu","aria-controls":n.menuId,onClick:lt(e.onClick,r),onKeyDown:lt(e.onKeyDown,a)}}function Xp(e){var t;return bj(e)&&!!((t=e==null?void 0:e.getAttribute("role"))!=null&&t.startsWith("menuitem"))}function gj(e={},t=null){const n=Da();if(!n)throw new Error("useMenuContext: context is undefined. Seems you forgot to wrap component within ");const{focusedIndex:r,setFocusedIndex:o,menuRef:i,isOpen:s,onClose:a,menuId:l,isLazy:u,lazyBehavior:c,unstable__animationState:d}=n,f=uj(),p=$D({preventDefault:g=>g.key!==" "&&Xp(g.target)}),m=x.useCallback(g=>{if(!g.currentTarget.contains(g.target))return;const h=g.key,S={Tab:T=>T.preventDefault(),Escape:a,ArrowDown:()=>{const T=f.nextEnabled(r);T&&o(T.index)},ArrowUp:()=>{const T=f.prevEnabled(r);T&&o(T.index)}}[h];if(S){g.preventDefault(),S(g);return}const P=p(T=>{const _=MD(f.values(),T,A=>{var z,M;return(M=(z=A==null?void 0:A.node)==null?void 0:z.textContent)!=null?M:""},f.item(r));if(_){const A=f.indexOf(_.node);o(A)}});Xp(g.target)&&P(g)},[f,r,p,a,o]),y=x.useRef(!1);s&&(y.current=!0);const w=aj({wasSelected:y.current,enabled:u,mode:c,isSelected:d.present});return{...e,ref:cn(i,t),children:w?e.children:null,tabIndex:-1,role:"menu",id:l,style:{...e.style,transformOrigin:"var(--popper-transform-origin)"},"aria-orientation":"vertical",onKeyDown:lt(e.onKeyDown,m)}}function vj(e={}){const{popper:t,isOpen:n}=Da();return t.getPopperProps({...e,style:{visibility:n?"visible":"hidden",...e.style}})}function yj(e={},t=null){const{onMouseEnter:n,onMouseMove:r,onMouseLeave:o,onClick:i,onFocus:s,isDisabled:a,isFocusable:l,closeOnSelect:u,type:c,...d}=e,f=Da(),{setFocusedIndex:p,focusedIndex:m,closeOnSelect:y,onClose:w,menuRef:g,isOpen:h,menuId:v,rafId:S}=f,P=x.useRef(null),T=`${v}-menuitem-${x.useId()}`,{index:_,register:A}=dj({disabled:a&&!l}),z=x.useCallback(O=>{n==null||n(O),!a&&p(_)},[p,_,a,n]),M=x.useCallback(O=>{r==null||r(O),P.current&&!f1(P.current)&&z(O)},[z,r]),F=x.useCallback(O=>{o==null||o(O),!a&&p(-1)},[p,a,o]),Y=x.useCallback(O=>{i==null||i(O),Xp(O.currentTarget)&&(u??y)&&w()},[w,i,y,u]),q=x.useCallback(O=>{s==null||s(O),p(_)},[p,s,_]),Q=_===m,J=a&&!l;zi(()=>{if(h)return Q&&!J&&P.current?(S.current&&cancelAnimationFrame(S.current),S.current=requestAnimationFrame(()=>{var O;(O=P.current)==null||O.focus({preventScroll:!0}),S.current=null})):g.current&&!f1(g.current)&&g.current.focus({preventScroll:!0}),()=>{S.current&&cancelAnimationFrame(S.current)}},[Q,J,g,h]);const Z=OD({onClick:Y,onFocus:q,onMouseEnter:z,onMouseMove:M,onMouseLeave:F,ref:cn(A,P,t),isDisabled:a,isFocusable:l});return{...d,...Z,type:c??Z.type,id:T,role:"menuitem",tabIndex:Q?0:-1}}function bj(e){var t;if(!xj(e))return!1;const n=(t=e.ownerDocument.defaultView)!=null?t:window;return e instanceof n.HTMLElement}function xj(e){return e!=null&&typeof e=="object"&&"nodeType"in e&&e.nodeType===Node.ELEMENT_NODE}var[Sj,ja]=Ut({name:"MenuStylesContext",errorMessage:`useMenuStyles returned is 'undefined'. Seems you forgot to wrap the components in "" `}),Zm=e=>{const{children:t}=e,n=qr("Menu",e),r=bt(e),{direction:o}=$o(),{descendants:i,...s}=hj({...r,direction:o}),a=x.useMemo(()=>s,[s]),{isOpen:l,onClose:u,forceUpdate:c}=a;return k.jsx(lj,{value:i,children:k.jsx(fj,{value:a,children:k.jsx(Sj,{value:n,children:Yn(t,{isOpen:l,onClose:u,forceUpdate:c})})})})};Zm.displayName="Menu";var X2=ee((e,t)=>{const n=ja();return k.jsx(X.span,{ref:t,...e,__css:n.command,className:"chakra-menu__command"})});X2.displayName="MenuCommand";var wj=ee((e,t)=>{const{type:n,...r}=e,o=ja(),i=r.as||n?n??void 0:"button",s=x.useMemo(()=>({textDecoration:"none",color:"inherit",userSelect:"none",display:"flex",width:"100%",alignItems:"center",textAlign:"start",flex:"0 0 auto",outline:0,...o.item}),[o.item]);return k.jsx(X.button,{ref:t,type:i,...r,__css:s})}),q2=e=>{const{className:t,children:n,...r}=e,o=ja(),i=x.Children.only(n),s=x.isValidElement(i)?x.cloneElement(i,{focusable:"false","aria-hidden":!0,className:ve("chakra-menu__icon",i.props.className)}):null,a=ve("chakra-menu__icon-wrapper",t);return k.jsx(X.span,{className:a,...r,__css:o.icon,children:s})};q2.displayName="MenuIcon";var Jm=ee((e,t)=>{const{icon:n,iconSpacing:r="0.75rem",command:o,commandSpacing:i="0.75rem",children:s,...a}=e,l=yj(a,t),c=n||o?k.jsx("span",{style:{pointerEvents:"none",flex:1},children:s}):s;return k.jsxs(wj,{...l,className:ve("chakra-menu__menuitem",l.className),children:[n&&k.jsx(q2,{fontSize:"0.8em",marginEnd:r,children:n}),c,o&&k.jsx(X2,{marginStart:i,children:o})]})});Jm.displayName="MenuItem";var kj={enter:{visibility:"visible",opacity:1,scale:1,transition:{duration:.2,ease:[.4,0,.2,1]}},exit:{transitionEnd:{visibility:"hidden"},opacity:0,scale:.8,transition:{duration:.1,easings:"easeOut"}}},Cj=X(s2.div),e0=ee(function(t,n){var r,o;const{rootProps:i,motionProps:s,...a}=t,{isOpen:l,onTransitionEnd:u,unstable__animationState:c}=Da(),d=gj(a,n),f=vj(i),p=ja();return k.jsx(X.div,{...f,__css:{zIndex:(o=t.zIndex)!=null?o:(r=p.list)==null?void 0:r.zIndex},children:k.jsx(Cj,{variants:kj,initial:!1,animate:l?"enter":"exit",__css:{outline:0,...p.list},...s,className:ve("chakra-menu__menu-list",d.className),...d,onUpdate:u,onAnimationComplete:yP(c.onComplete,d.onAnimationComplete)})})});e0.displayName="MenuList";var Ej=ee((e,t)=>{const n=ja();return k.jsx(X.button,{ref:t,...e,__css:{display:"inline-flex",appearance:"none",alignItems:"center",outline:0,...n.button}})}),t0=ee((e,t)=>{const{children:n,as:r,...o}=e,i=mj(o,t),s=r||Ej;return k.jsx(s,{...i,className:ve("chakra-menu__menu-button",e.className),children:k.jsx(X.span,{__css:{pointerEvents:"none",flex:"1 1 auto",minW:0},children:e.children})})});t0.displayName="MenuButton";function _j(){const e=x.useRef(!0);return x.useEffect(()=>{e.current=!1},[]),e.current}function Pj(e){const t=x.useRef();return x.useEffect(()=>{t.current=e},[e]),t.current}var Tj=X("div",{baseStyle:{boxShadow:"none",backgroundClip:"padding-box",cursor:"default",color:"transparent",pointerEvents:"none",userSelect:"none","&::before, &::after, *":{visibility:"hidden"}}}),qp=H("skeleton-start-color"),Yp=H("skeleton-end-color"),Aj=om({from:{opacity:0},to:{opacity:1}}),Rj=om({from:{borderColor:qp.reference,background:qp.reference},to:{borderColor:Yp.reference,background:Yp.reference}}),n0=ee((e,t)=>{const n={...e,fadeDuration:typeof e.fadeDuration=="number"?e.fadeDuration:.4,speed:typeof e.speed=="number"?e.speed:.8},r=Xr("Skeleton",n),o=_j(),{startColor:i="",endColor:s="",isLoaded:a,fadeDuration:l,speed:u,className:c,fitContent:d,...f}=bt(n),[p,m]=gP("colors",[i,s]),y=Pj(a),w=ve("chakra-skeleton",c),g={...p&&{[qp.variable]:p},...m&&{[Yp.variable]:m}};if(a){const h=o||y?"none":`${Aj} ${l}s`;return k.jsx(X.div,{ref:t,className:w,__css:{animation:h},...f})}return k.jsx(Tj,{ref:t,className:w,...f,__css:{width:d?"fit-content":void 0,...r,...g,_dark:{...r._dark,...g},animation:`${u}s linear infinite alternate ${Rj}`}})});n0.displayName="Skeleton";function $j(e){return Array(e).fill(1).map((t,n)=>n+1)}var p1=3,Y2=e=>{const{noOfLines:t=p1,spacing:n="0.5rem",skeletonHeight:r="0.5rem",className:o,startColor:i,endColor:s,isLoaded:a,fadeDuration:l,speed:u,variant:c,size:d,colorScheme:f,children:p,...m}=e,y=AD(typeof t=="number"?[t]:t)||p1,w=$j(y),g=v=>y>1&&v===w.length?"80%":"100%",h=ve("chakra-skeleton__group",o);return k.jsx(X.div,{className:h,...m,children:w.map((v,S)=>{if(a&&S>0)return null;const P=a?null:{mb:v===w.length?"0":n,width:g(v),height:r};return k.jsx(n0,{startColor:i,endColor:s,isLoaded:a,fadeDuration:l,speed:u,variant:c,size:d,colorScheme:f,...P,children:S===0?p:void 0},w.length.toString()+v)})})};Y2.displayName="SkeletonText";var Q2=ee(function(t,n){const r=qr("Switch",t),{spacing:o="0.5rem",children:i,...s}=bt(t),{getIndicatorProps:a,getInputProps:l,getCheckboxProps:u,getRootProps:c,getLabelProps:d}=nD(s),f=x.useMemo(()=>({display:"inline-block",position:"relative",verticalAlign:"middle",lineHeight:0,...r.container}),[r.container]),p=x.useMemo(()=>({display:"inline-flex",flexShrink:0,justifyContent:"flex-start",boxSizing:"content-box",cursor:"pointer",...r.track}),[r.track]),m=x.useMemo(()=>({userSelect:"none",marginStart:o,...r.label}),[o,r.label]);return k.jsxs(X.label,{...c(),className:ve("chakra-switch",t.className),__css:f,children:[k.jsx("input",{className:"chakra-switch__input",...l({},n)}),k.jsx(X.span,{...u(),className:"chakra-switch__track",__css:p,children:k.jsx(X.span,{__css:r.thumb,className:"chakra-switch__thumb",...a()})}),i&&k.jsx(X.span,{className:"chakra-switch__label",...d(),__css:m,children:i})]})});Q2.displayName="Switch";const Mj="/GameHub/assets/logo-ff4914e6.webp",zj=()=>{const{colorMode:e,toggleColorMode:t}=_c();return k.jsxs(Lo,{children:[k.jsx(Q2,{isChecked:e==="dark",colorScheme:"green",onChange:t}),k.jsx(Wc,{whiteSpace:"nowrap",children:"Dark Mode"})]})};var Z2={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},h1=Lt.createContext&&Lt.createContext(Z2),Nr=globalThis&&globalThis.__assign||function(){return Nr=Object.assign||function(e){for(var t,n=1,r=arguments.length;n{const t=x.useRef(null);return k.jsx("form",{style:{width:"100%"},onSubmit:n=>{n.preventDefault(),t.current&&e(t.current.value)},children:k.jsxs(E2,{children:[k.jsx(Vm,{children:k.jsx(Dj,{})}),k.jsx(Hm,{ref:t,placeholder:"Search games...",borderRadius:20,variant:"filled"})]})})};function Fj({onSearch:e}){return k.jsxs(Lo,{children:[k.jsx(Fc,{src:Mj,boxSize:"60px"}),k.jsx(jj,{onSearch:e}),k.jsx(zj,{})]})}function tk(e,t){return function(){return e.apply(t,arguments)}}const{toString:Nj}=Object.prototype,{getPrototypeOf:r0}=Object,Xc=(e=>t=>{const n=Nj.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),Fn=e=>(e=e.toLowerCase(),t=>Xc(t)===e),qc=e=>t=>typeof t===e,{isArray:Ui}=Array,Sa=qc("undefined");function Bj(e){return e!==null&&!Sa(e)&&e.constructor!==null&&!Sa(e.constructor)&&an(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const nk=Fn("ArrayBuffer");function Vj(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&nk(e.buffer),t}const Hj=qc("string"),an=qc("function"),rk=qc("number"),Yc=e=>e!==null&&typeof e=="object",Wj=e=>e===!0||e===!1,nu=e=>{if(Xc(e)!=="object")return!1;const t=r0(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},Uj=Fn("Date"),Gj=Fn("File"),Kj=Fn("Blob"),Xj=Fn("FileList"),qj=e=>Yc(e)&&an(e.pipe),Yj=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||an(e.append)&&((t=Xc(e))==="formdata"||t==="object"&&an(e.toString)&&e.toString()==="[object FormData]"))},Qj=Fn("URLSearchParams"),Zj=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Fa(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,o;if(typeof e!="object"&&(e=[e]),Ui(e))for(r=0,o=e.length;r0;)if(o=n[r],t===o.toLowerCase())return o;return null}const ik=(()=>typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global)(),sk=e=>!Sa(e)&&e!==ik;function Qp(){const{caseless:e}=sk(this)&&this||{},t={},n=(r,o)=>{const i=e&&ok(t,o)||o;nu(t[i])&&nu(r)?t[i]=Qp(t[i],r):nu(r)?t[i]=Qp({},r):Ui(r)?t[i]=r.slice():t[i]=r};for(let r=0,o=arguments.length;r(Fa(t,(o,i)=>{n&&an(o)?e[i]=tk(o,n):e[i]=o},{allOwnKeys:r}),e),eF=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),tF=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},nF=(e,t,n,r)=>{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],(!r||r(s,e,t))&&!a[s]&&(t[s]=e[s],a[s]=!0);e=n!==!1&&r0(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},rF=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return r!==-1&&r===n},oF=e=>{if(!e)return null;if(Ui(e))return e;let t=e.length;if(!rk(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},iF=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&r0(Uint8Array)),sF=(e,t)=>{const r=(e&&e[Symbol.iterator]).call(e);let o;for(;(o=r.next())&&!o.done;){const i=o.value;t.call(e,i[0],i[1])}},aF=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},lF=Fn("HTMLFormElement"),uF=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,o){return r.toUpperCase()+o}),m1=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),cF=Fn("RegExp"),ak=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};Fa(n,(o,i)=>{let s;(s=t(o,i,e))!==!1&&(r[i]=s||o)}),Object.defineProperties(e,r)},dF=e=>{ak(e,(t,n)=>{if(an(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(an(r)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},fF=(e,t)=>{const n={},r=o=>{o.forEach(i=>{n[i]=!0})};return Ui(e)?r(e):r(String(e).split(t)),n},pF=()=>{},hF=(e,t)=>(e=+e,Number.isFinite(e)?e:t),yf="abcdefghijklmnopqrstuvwxyz",g1="0123456789",lk={DIGIT:g1,ALPHA:yf,ALPHA_DIGIT:yf+yf.toUpperCase()+g1},mF=(e=16,t=lk.ALPHA_DIGIT)=>{let n="";const{length:r}=t;for(;e--;)n+=t[Math.random()*r|0];return n};function gF(e){return!!(e&&an(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const vF=e=>{const t=new Array(10),n=(r,o)=>{if(Yc(r)){if(t.indexOf(r)>=0)return;if(!("toJSON"in r)){t[o]=r;const i=Ui(r)?[]:{};return Fa(r,(s,a)=>{const l=n(s,o+1);!Sa(l)&&(i[a]=l)}),t[o]=void 0,i}}return r};return n(e,0)},yF=Fn("AsyncFunction"),bF=e=>e&&(Yc(e)||an(e))&&an(e.then)&&an(e.catch),$={isArray:Ui,isArrayBuffer:nk,isBuffer:Bj,isFormData:Yj,isArrayBufferView:Vj,isString:Hj,isNumber:rk,isBoolean:Wj,isObject:Yc,isPlainObject:nu,isUndefined:Sa,isDate:Uj,isFile:Gj,isBlob:Kj,isRegExp:cF,isFunction:an,isStream:qj,isURLSearchParams:Qj,isTypedArray:iF,isFileList:Xj,forEach:Fa,merge:Qp,extend:Jj,trim:Zj,stripBOM:eF,inherits:tF,toFlatObject:nF,kindOf:Xc,kindOfTest:Fn,endsWith:rF,toArray:oF,forEachEntry:sF,matchAll:aF,isHTMLForm:lF,hasOwnProperty:m1,hasOwnProp:m1,reduceDescriptors:ak,freezeMethods:dF,toObjectSet:fF,toCamelCase:uF,noop:pF,toFiniteNumber:hF,findKey:ok,global:ik,isContextDefined:sk,ALPHABET:lk,generateString:mF,isSpecCompliantForm:gF,toJSONObject:vF,isAsyncFn:yF,isThenable:bF};function se(e,t,n,r,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),n&&(this.config=n),r&&(this.request=r),o&&(this.response=o)}$.inherits(se,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 uk=se.prototype,ck={};["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=>{ck[e]={value:e}});Object.defineProperties(se,ck);Object.defineProperty(uk,"isAxiosError",{value:!0});se.from=(e,t,n,r,o,i)=>{const s=Object.create(uk);return $.toFlatObject(e,s,function(l){return l!==Error.prototype},a=>a!=="isAxiosError"),se.call(s,e.message,t,n,r,o),s.cause=e,s.name=e.name,i&&Object.assign(s,i),s};const xF=null;function Zp(e){return $.isPlainObject(e)||$.isArray(e)}function dk(e){return $.endsWith(e,"[]")?e.slice(0,-2):e}function v1(e,t,n){return e?e.concat(t).map(function(o,i){return o=dk(o),!n&&i?"["+o+"]":o}).join(n?".":""):t}function SF(e){return $.isArray(e)&&!e.some(Zp)}const wF=$.toFlatObject($,{},null,function(t){return/^is[A-Z]/.test(t)});function Qc(e,t,n){if(!$.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=$.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(y,w){return!$.isUndefined(w[y])});const r=n.metaTokens,o=n.visitor||c,i=n.dots,s=n.indexes,l=(n.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 se("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,y,w){let g=m;if(m&&!w&&typeof m=="object"){if($.endsWith(y,"{}"))y=r?y:y.slice(0,-2),m=JSON.stringify(m);else if($.isArray(m)&&SF(m)||($.isFileList(m)||$.endsWith(y,"[]"))&&(g=$.toArray(m)))return y=dk(y),g.forEach(function(v,S){!($.isUndefined(v)||v===null)&&t.append(s===!0?v1([y],S,i):s===null?y:y+"[]",u(v))}),!1}return Zp(m)?!0:(t.append(v1(w,y,i),u(m)),!1)}const d=[],f=Object.assign(wF,{defaultVisitor:c,convertValue:u,isVisitable:Zp});function p(m,y){if(!$.isUndefined(m)){if(d.indexOf(m)!==-1)throw Error("Circular reference detected in "+y.join("."));d.push(m),$.forEach(m,function(g,h){(!($.isUndefined(g)||g===null)&&o.call(t,g,$.isString(h)?h.trim():h,y,f))===!0&&p(g,y?y.concat(h):[h])}),d.pop()}}if(!$.isObject(e))throw new TypeError("data must be an object");return p(e),t}function y1(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function o0(e,t){this._pairs=[],e&&Qc(e,this,t)}const fk=o0.prototype;fk.append=function(t,n){this._pairs.push([t,n])};fk.toString=function(t){const n=t?function(r){return t.call(this,r,y1)}:y1;return this._pairs.map(function(o){return n(o[0])+"="+n(o[1])},"").join("&")};function kF(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function pk(e,t,n){if(!t)return e;const r=n&&n.encode||kF,o=n&&n.serialize;let i;if(o?i=o(t,n):i=$.isURLSearchParams(t)?t.toString():new o0(t,n).toString(r),i){const s=e.indexOf("#");s!==-1&&(e=e.slice(0,s)),e+=(e.indexOf("?")===-1?"?":"&")+i}return e}class CF{constructor(){this.handlers=[]}use(t,n,r){return this.handlers.push({fulfilled:t,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.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(r){r!==null&&t(r)})}}const b1=CF,hk={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},EF=typeof URLSearchParams<"u"?URLSearchParams:o0,_F=typeof FormData<"u"?FormData:null,PF=typeof Blob<"u"?Blob:null,TF=(()=>{let e;return typeof navigator<"u"&&((e=navigator.product)==="ReactNative"||e==="NativeScript"||e==="NS")?!1:typeof window<"u"&&typeof document<"u"})(),AF=(()=>typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function")(),bn={isBrowser:!0,classes:{URLSearchParams:EF,FormData:_F,Blob:PF},isStandardBrowserEnv:TF,isStandardBrowserWebWorkerEnv:AF,protocols:["http","https","file","blob","url","data"]};function RF(e,t){return Qc(e,new bn.classes.URLSearchParams,Object.assign({visitor:function(n,r,o,i){return bn.isNode&&$.isBuffer(n)?(this.append(r,n.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)}},t))}function $F(e){return $.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function MF(e){const t={},n=Object.keys(e);let r;const o=n.length;let i;for(r=0;r=n.length;return s=!s&&$.isArray(o)?o.length:s,l?($.hasOwnProp(o,s)?o[s]=[o[s],r]:o[s]=r,!a):((!o[s]||!$.isObject(o[s]))&&(o[s]=[]),t(n,r,o[s],i)&&$.isArray(o[s])&&(o[s]=MF(o[s])),!a)}if($.isFormData(e)&&$.isFunction(e.entries)){const n={};return $.forEachEntry(e,(r,o)=>{t($F(r),o,n,0)}),n}return null}function zF(e,t,n){if($.isString(e))try{return(t||JSON.parse)(e),$.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}const i0={transitional:hk,adapter:bn.isNode?"http":"xhr",transformRequest:[function(t,n){const r=n.getContentType()||"",o=r.indexOf("application/json")>-1,i=$.isObject(t);if(i&&$.isHTMLForm(t)&&(t=new FormData(t)),$.isFormData(t))return o&&o?JSON.stringify(mk(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 n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let a;if(i){if(r.indexOf("application/x-www-form-urlencoded")>-1)return RF(t,this.formSerializer).toString();if((a=$.isFileList(t))||r.indexOf("multipart/form-data")>-1){const l=this.env&&this.env.FormData;return Qc(a?{"files[]":t}:t,l&&new l,this.formSerializer)}}return i||o?(n.setContentType("application/json",!1),zF(t)):t}],transformResponse:[function(t){const n=this.transitional||i0.transitional,r=n&&n.forcedJSONParsing,o=this.responseType==="json";if(t&&$.isString(t)&&(r&&!this.responseType||o)){const s=!(n&&n.silentJSONParsing)&&o;try{return JSON.parse(t)}catch(a){if(s)throw a.name==="SyntaxError"?se.from(a,se.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:bn.classes.FormData,Blob:bn.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=>{i0.headers[e]={}});const s0=i0,OF=$.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"]),LF=e=>{const t={};let n,r,o;return e&&e.split(` +`).forEach(function(s){o=s.indexOf(":"),n=s.substring(0,o).trim().toLowerCase(),r=s.substring(o+1).trim(),!(!n||t[n]&&OF[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t},x1=Symbol("internals");function ds(e){return e&&String(e).trim().toLowerCase()}function ru(e){return e===!1||e==null?e:$.isArray(e)?e.map(ru):String(e)}function IF(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}const DF=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function bf(e,t,n,r,o){if($.isFunction(r))return r.call(this,t,n);if(o&&(t=n),!!$.isString(t)){if($.isString(r))return t.indexOf(r)!==-1;if($.isRegExp(r))return r.test(t)}}function jF(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function FF(e,t){const n=$.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(o,i,s){return this[r].call(this,t,o,i,s)},configurable:!0})})}let Zc=class{constructor(t){t&&this.set(t)}set(t,n,r){const o=this;function i(a,l,u){const c=ds(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]=ru(a))}const s=(a,l)=>$.forEach(a,(u,c)=>i(u,c,l));return $.isPlainObject(t)||t instanceof this.constructor?s(t,n):$.isString(t)&&(t=t.trim())&&!DF(t)?s(LF(t),n):t!=null&&i(n,t,r),this}get(t,n){if(t=ds(t),t){const r=$.findKey(this,t);if(r){const o=this[r];if(!n)return o;if(n===!0)return IF(o);if($.isFunction(n))return n.call(this,o,r);if($.isRegExp(n))return n.exec(o);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=ds(t),t){const r=$.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||bf(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let o=!1;function i(s){if(s=ds(s),s){const a=$.findKey(r,s);a&&(!n||bf(r,r[a],a,n))&&(delete r[a],o=!0)}}return $.isArray(t)?t.forEach(i):i(t),o}clear(t){const n=Object.keys(this);let r=n.length,o=!1;for(;r--;){const i=n[r];(!t||bf(this,this[i],i,t,!0))&&(delete this[i],o=!0)}return o}normalize(t){const n=this,r={};return $.forEach(this,(o,i)=>{const s=$.findKey(r,i);if(s){n[s]=ru(o),delete n[i];return}const a=t?jF(i):String(i).trim();a!==i&&delete n[i],n[a]=ru(o),r[a]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return $.forEach(this,(r,o)=>{r!=null&&r!==!1&&(n[o]=t&&$.isArray(r)?r.join(", "):r)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(` +`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const r=new this(t);return n.forEach(o=>r.set(o)),r}static accessor(t){const r=(this[x1]=this[x1]={accessors:{}}).accessors,o=this.prototype;function i(s){const a=ds(s);r[a]||(FF(o,s),r[a]=!0)}return $.isArray(t)?t.forEach(i):i(t),this}};Zc.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);$.reduceDescriptors(Zc.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}});$.freezeMethods(Zc);const or=Zc;function xf(e,t){const n=this||s0,r=t||n,o=or.from(r.headers);let i=r.data;return $.forEach(e,function(a){i=a.call(n,i,o.normalize(),t?t.status:void 0)}),o.normalize(),i}function gk(e){return!!(e&&e.__CANCEL__)}function Na(e,t,n){se.call(this,e??"canceled",se.ERR_CANCELED,t,n),this.name="CanceledError"}$.inherits(Na,se,{__CANCEL__:!0});function NF(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new se("Request failed with status code "+n.status,[se.ERR_BAD_REQUEST,se.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}const BF=bn.isStandardBrowserEnv?function(){return{write:function(n,r,o,i,s,a){const l=[];l.push(n+"="+encodeURIComponent(r)),$.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(n){const r=document.cookie.match(new RegExp("(^|;\\s*)("+n+")=([^;]*)"));return r?decodeURIComponent(r[3]):null},remove:function(n){this.write(n,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}();function VF(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function HF(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}function vk(e,t){return e&&!VF(t)?HF(e,t):t}const WF=bn.isStandardBrowserEnv?function(){const t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");let r;function o(i){let s=i;return t&&(n.setAttribute("href",s),s=n.href),n.setAttribute("href",s),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:n.pathname.charAt(0)==="/"?n.pathname:"/"+n.pathname}}return r=o(window.location.href),function(s){const a=$.isString(s)?o(s):s;return a.protocol===r.protocol&&a.host===r.host}}():function(){return function(){return!0}}();function UF(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function GF(e,t){e=e||10;const n=new Array(e),r=new Array(e);let o=0,i=0,s;return t=t!==void 0?t:1e3,function(l){const u=Date.now(),c=r[i];s||(s=u),n[o]=l,r[o]=u;let d=i,f=0;for(;d!==o;)f+=n[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-n,l=r(a),u=i<=s;n=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 KF=typeof XMLHttpRequest<"u",XF=KF&&function(e){return new Promise(function(n,r){let o=e.data;const i=or.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)&&(bn.isStandardBrowserEnv||bn.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=vk(e.baseURL,e.url);u.open(e.method.toUpperCase(),pk(c,e.params,e.paramsSerializer),!0),u.timeout=e.timeout;function d(){if(!u)return;const p=or.from("getAllResponseHeaders"in u&&u.getAllResponseHeaders()),y={data:!s||s==="text"||s==="json"?u.responseText:u.response,status:u.status,statusText:u.statusText,headers:p,config:e,request:u};NF(function(g){n(g),l()},function(g){r(g),l()},y),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&&(r(new se("Request aborted",se.ECONNABORTED,e,u)),u=null)},u.onerror=function(){r(new se("Network Error",se.ERR_NETWORK,e,u)),u=null},u.ontimeout=function(){let m=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded";const y=e.transitional||hk;e.timeoutErrorMessage&&(m=e.timeoutErrorMessage),r(new se(m,y.clarifyTimeoutError?se.ETIMEDOUT:se.ECONNABORTED,e,u)),u=null},bn.isStandardBrowserEnv){const p=(e.withCredentials||WF(c))&&e.xsrfCookieName&&BF.read(e.xsrfCookieName);p&&i.set(e.xsrfHeaderName,p)}o===void 0&&i.setContentType(null),"setRequestHeader"in u&&$.forEach(i.toJSON(),function(m,y){u.setRequestHeader(y,m)}),$.isUndefined(e.withCredentials)||(u.withCredentials=!!e.withCredentials),s&&s!=="json"&&(u.responseType=e.responseType),typeof e.onDownloadProgress=="function"&&u.addEventListener("progress",S1(e.onDownloadProgress,!0)),typeof e.onUploadProgress=="function"&&u.upload&&u.upload.addEventListener("progress",S1(e.onUploadProgress)),(e.cancelToken||e.signal)&&(a=p=>{u&&(r(!p||p.type?new Na(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=UF(c);if(f&&bn.protocols.indexOf(f)===-1){r(new se("Unsupported protocol "+f+":",se.ERR_BAD_REQUEST,e));return}u.send(o||null)})},ou={http:xF,xhr:XF};$.forEach(ou,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const yk={getAdapter:e=>{e=$.isArray(e)?e:[e];const{length:t}=e;let n,r;for(let o=0;oe instanceof or?e.toJSON():e;function Ni(e,t){t=t||{};const n={};function r(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 r(void 0,u,d)}else return r(u,c,d)}function i(u,c){if(!$.isUndefined(c))return r(void 0,c)}function s(u,c){if($.isUndefined(c)){if(!$.isUndefined(u))return r(void 0,u)}else return r(void 0,c)}function a(u,c,d){if(d in t)return r(u,c);if(d in e)return r(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(k1(u),k1(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||(n[c]=f)}),n}const bk="1.5.0",a0={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{a0[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const C1={};a0.transitional=function(t,n,r){function o(i,s){return"[Axios v"+bk+"] Transitional option '"+i+"'"+s+(r?". "+r:"")}return(i,s,a)=>{if(t===!1)throw new se(o(s," has been removed"+(n?" in "+n:"")),se.ERR_DEPRECATED);return n&&!C1[s]&&(C1[s]=!0,console.warn(o(s," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(i,s,a):!0}};function qF(e,t,n){if(typeof e!="object")throw new se("options must be an object",se.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let o=r.length;for(;o-- >0;){const i=r[o],s=t[i];if(s){const a=e[i],l=a===void 0||s(a,i,e);if(l!==!0)throw new se("option "+i+" must be "+l,se.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new se("Unknown option "+i,se.ERR_BAD_OPTION)}}const Jp={assertOptions:qF,validators:a0},br=Jp.validators;let Xu=class{constructor(t){this.defaults=t,this.interceptors={request:new b1,response:new b1}}request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=Ni(this.defaults,n);const{transitional:r,paramsSerializer:o,headers:i}=n;r!==void 0&&Jp.assertOptions(r,{silentJSONParsing:br.transitional(br.boolean),forcedJSONParsing:br.transitional(br.boolean),clarifyTimeoutError:br.transitional(br.boolean)},!1),o!=null&&($.isFunction(o)?n.paramsSerializer={serialize:o}:Jp.assertOptions(o,{encode:br.function,serialize:br.function},!0)),n.method=(n.method||this.defaults.method||"get").toLowerCase();let s=i&&$.merge(i.common,i[n.method]);i&&$.forEach(["delete","get","head","post","put","patch","common"],m=>{delete i[m]}),n.headers=or.concat(s,i);const a=[];let l=!0;this.interceptors.request.forEach(function(y){typeof y.runWhen=="function"&&y.runWhen(n)===!1||(l=l&&y.synchronous,a.unshift(y.fulfilled,y.rejected))});const u=[];this.interceptors.response.forEach(function(y){u.push(y.fulfilled,y.rejected)});let c,d=0,f;if(!l){const m=[w1.bind(this),void 0];for(m.unshift.apply(m,a),m.push.apply(m,u),f=m.length,c=Promise.resolve(n);d{if(!r._listeners)return;let i=r._listeners.length;for(;i-- >0;)r._listeners[i](o);r._listeners=null}),this.promise.then=o=>{let i;const s=new Promise(a=>{r.subscribe(a),i=a}).then(o);return s.cancel=function(){r.unsubscribe(i)},s},t(function(i,s,a){r.reason||(r.reason=new Na(i,s,a),n(r.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 n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}static source(){let t;return{token:new xk(function(o){t=o}),cancel:t}}};const QF=YF;function ZF(e){return function(n){return e.apply(null,n)}}function JF(e){return $.isObject(e)&&e.isAxiosError===!0}const eh={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(eh).forEach(([e,t])=>{eh[t]=e});const e7=eh;function Sk(e){const t=new iu(e),n=tk(iu.prototype.request,t);return $.extend(n,iu.prototype,t,{allOwnKeys:!0}),$.extend(n,t,null,{allOwnKeys:!0}),n.create=function(o){return Sk(Ni(e,o))},n}const He=Sk(s0);He.Axios=iu;He.CanceledError=Na;He.CancelToken=QF;He.isCancel=gk;He.VERSION=bk;He.toFormData=Qc;He.AxiosError=se;He.Cancel=He.CanceledError;He.all=function(t){return Promise.all(t)};He.spread=ZF;He.isAxiosError=JF;He.mergeConfig=Ni;He.AxiosHeaders=or;He.formToJSON=e=>mk($.isHTMLForm(e)?new FormData(e):e);He.getAdapter=yk.getAdapter;He.HttpStatusCode=e7;He.default=He;const wk=He,{Axios:$7,AxiosError:M7,CanceledError:t7,isCancel:z7,CancelToken:O7,VERSION:L7,all:I7,Cancel:D7,isAxiosError:j7,spread:F7,toFormData:N7,AxiosHeaders:B7,HttpStatusCode:V7,formToJSON:H7,getAdapter:W7,mergeConfig:U7}=wk,n7=wk.create({baseURL:"https://api.rawg.io/api",params:{key:"48105d50b8744f30a984fcfaeee838b4"}}),l0=(e,t,n)=>{const[r,o]=x.useState([]),[i,s]=x.useState(""),[a,l]=x.useState(!1);return x.useEffect(()=>{const u=new AbortController;return o([]),l(!0),n7.get(e,{signal:u.signal,...t}).then(c=>{o(c.data.results),l(!1)}).catch(c=>{c instanceof t7||(s(c.message),l(!1))}),()=>{u.abort()}},n?[...n]:[]),{data:r,error:i,isLoading:a}},r7=e=>{var o,i;const{data:t,isLoading:n,error:r}=l0("/games",{params:{genres:(o=e.genre)==null?void 0:o.id,platforms:(i=e.platform)==null?void 0:i.id,ordering:e.sortOrder,search:e.searchQuery}},[e]);return{games:t,error:r,isLoading:n}};function o7(e){return kn({tag:"svg",attr:{viewBox:"0 0 576 512"},child:[{tag:"path",attr:{d:"M420.55,301.93a24,24,0,1,1,24-24,24,24,0,0,1-24,24m-265.1,0a24,24,0,1,1,24-24,24,24,0,0,1-24,24m273.7-144.48,47.94-83a10,10,0,1,0-17.27-10h0l-48.54,84.07a301.25,301.25,0,0,0-246.56,0L116.18,64.45a10,10,0,1,0-17.27,10h0l47.94,83C64.53,202.22,8.24,285.55,0,384H576c-8.24-98.45-64.54-181.78-146.85-226.55"}}]})(e)}function i7(e){return kn({tag:"svg",attr:{viewBox:"0 0 384 512"},child:[{tag:"path",attr:{d:"M318.7 268.7c-.2-36.7 16.4-64.4 50-84.8-18.8-26.9-47.2-41.7-84.7-44.6-35.5-2.8-74.3 20.7-88.5 20.7-15 0-49.4-19.7-76.4-19.7C63.3 141.2 4 184.8 4 273.5q0 39.3 14.4 81.2c12.8 36.7 59 126.7 107.2 125.2 25.2-.6 43-17.9 75.8-17.9 31.8 0 48.3 17.9 76.4 17.9 48.6-.7 90.4-82.5 102.6-119.3-65.2-30.7-61.7-90-61.7-91.9zm-56.6-164.2c27.3-32.4 24.8-61.9 24-72.5-24.1 1.4-52 16.4-67.9 34.9-17.5 19.8-27.8 44.3-25.6 71.9 26.1 2 49.9-11.4 69.5-34.3z"}}]})(e)}function s7(e){return kn({tag:"svg",attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M220.8 123.3c1 .5 1.8 1.7 3 1.7 1.1 0 2.8-.4 2.9-1.5.2-1.4-1.9-2.3-3.2-2.9-1.7-.7-3.9-1-5.5-.1-.4.2-.8.7-.6 1.1.3 1.3 2.3 1.1 3.4 1.7zm-21.9 1.7c1.2 0 2-1.2 3-1.7 1.1-.6 3.1-.4 3.5-1.6.2-.4-.2-.9-.6-1.1-1.6-.9-3.8-.6-5.5.1-1.3.6-3.4 1.5-3.2 2.9.1 1 1.8 1.5 2.8 1.4zM420 403.8c-3.6-4-5.3-11.6-7.2-19.7-1.8-8.1-3.9-16.8-10.5-22.4-1.3-1.1-2.6-2.1-4-2.9-1.3-.8-2.7-1.5-4.1-2 9.2-27.3 5.6-54.5-3.7-79.1-11.4-30.1-31.3-56.4-46.5-74.4-17.1-21.5-33.7-41.9-33.4-72C311.1 85.4 315.7.1 234.8 0 132.4-.2 158 103.4 156.9 135.2c-1.7 23.4-6.4 41.8-22.5 64.7-18.9 22.5-45.5 58.8-58.1 96.7-6 17.9-8.8 36.1-6.2 53.3-6.5 5.8-11.4 14.7-16.6 20.2-4.2 4.3-10.3 5.9-17 8.3s-14 6-18.5 14.5c-2.1 3.9-2.8 8.1-2.8 12.4 0 3.9.6 7.9 1.2 11.8 1.2 8.1 2.5 15.7.8 20.8-5.2 14.4-5.9 24.4-2.2 31.7 3.8 7.3 11.4 10.5 20.1 12.3 17.3 3.6 40.8 2.7 59.3 12.5 19.8 10.4 39.9 14.1 55.9 10.4 11.6-2.6 21.1-9.6 25.9-20.2 12.5-.1 26.3-5.4 48.3-6.6 14.9-1.2 33.6 5.3 55.1 4.1.6 2.3 1.4 4.6 2.5 6.7v.1c8.3 16.7 23.8 24.3 40.3 23 16.6-1.3 34.1-11 48.3-27.9 13.6-16.4 36-23.2 50.9-32.2 7.4-4.5 13.4-10.1 13.9-18.3.4-8.2-4.4-17.3-15.5-29.7zM223.7 87.3c9.8-22.2 34.2-21.8 44-.4 6.5 14.2 3.6 30.9-4.3 40.4-1.6-.8-5.9-2.6-12.6-4.9 1.1-1.2 3.1-2.7 3.9-4.6 4.8-11.8-.2-27-9.1-27.3-7.3-.5-13.9 10.8-11.8 23-4.1-2-9.4-3.5-13-4.4-1-6.9-.3-14.6 2.9-21.8zM183 75.8c10.1 0 20.8 14.2 19.1 33.5-3.5 1-7.1 2.5-10.2 4.6 1.2-8.9-3.3-20.1-9.6-19.6-8.4.7-9.8 21.2-1.8 28.1 1 .8 1.9-.2-5.9 5.5-15.6-14.6-10.5-52.1 8.4-52.1zm-13.6 60.7c6.2-4.6 13.6-10 14.1-10.5 4.7-4.4 13.5-14.2 27.9-14.2 7.1 0 15.6 2.3 25.9 8.9 6.3 4.1 11.3 4.4 22.6 9.3 8.4 3.5 13.7 9.7 10.5 18.2-2.6 7.1-11 14.4-22.7 18.1-11.1 3.6-19.8 16-38.2 14.9-3.9-.2-7-1-9.6-2.1-8-3.5-12.2-10.4-20-15-8.6-4.8-13.2-10.4-14.7-15.3-1.4-4.9 0-9 4.2-12.3zm3.3 334c-2.7 35.1-43.9 34.4-75.3 18-29.9-15.8-68.6-6.5-76.5-21.9-2.4-4.7-2.4-12.7 2.6-26.4v-.2c2.4-7.6.6-16-.6-23.9-1.2-7.8-1.8-15 .9-20 3.5-6.7 8.5-9.1 14.8-11.3 10.3-3.7 11.8-3.4 19.6-9.9 5.5-5.7 9.5-12.9 14.3-18 5.1-5.5 10-8.1 17.7-6.9 8.1 1.2 15.1 6.8 21.9 16l19.6 35.6c9.5 19.9 43.1 48.4 41 68.9zm-1.4-25.9c-4.1-6.6-9.6-13.6-14.4-19.6 7.1 0 14.2-2.2 16.7-8.9 2.3-6.2 0-14.9-7.4-24.9-13.5-18.2-38.3-32.5-38.3-32.5-13.5-8.4-21.1-18.7-24.6-29.9s-3-23.3-.3-35.2c5.2-22.9 18.6-45.2 27.2-59.2 2.3-1.7.8 3.2-8.7 20.8-8.5 16.1-24.4 53.3-2.6 82.4.6-20.7 5.5-41.8 13.8-61.5 12-27.4 37.3-74.9 39.3-112.7 1.1.8 4.6 3.2 6.2 4.1 4.6 2.7 8.1 6.7 12.6 10.3 12.4 10 28.5 9.2 42.4 1.2 6.2-3.5 11.2-7.5 15.9-9 9.9-3.1 17.8-8.6 22.3-15 7.7 30.4 25.7 74.3 37.2 95.7 6.1 11.4 18.3 35.5 23.6 64.6 3.3-.1 7 .4 10.9 1.4 13.8-35.7-11.7-74.2-23.3-84.9-4.7-4.6-4.9-6.6-2.6-6.5 12.6 11.2 29.2 33.7 35.2 59 2.8 11.6 3.3 23.7.4 35.7 16.4 6.8 35.9 17.9 30.7 34.8-2.2-.1-3.2 0-4.2 0 3.2-10.1-3.9-17.6-22.8-26.1-19.6-8.6-36-8.6-38.3 12.5-12.1 4.2-18.3 14.7-21.4 27.3-2.8 11.2-3.6 24.7-4.4 39.9-.5 7.7-3.6 18-6.8 29-32.1 22.9-76.7 32.9-114.3 7.2zm257.4-11.5c-.9 16.8-41.2 19.9-63.2 46.5-13.2 15.7-29.4 24.4-43.6 25.5s-26.5-4.8-33.7-19.3c-4.7-11.1-2.4-23.1 1.1-36.3 3.7-14.2 9.2-28.8 9.9-40.6.8-15.2 1.7-28.5 4.2-38.7 2.6-10.3 6.6-17.2 13.7-21.1.3-.2.7-.3 1-.5.8 13.2 7.3 26.6 18.8 29.5 12.6 3.3 30.7-7.5 38.4-16.3 9-.3 15.7-.9 22.6 5.1 9.9 8.5 7.1 30.3 17.1 41.6 10.6 11.6 14 19.5 13.7 24.6zM173.3 148.7c2 1.9 4.7 4.5 8 7.1 6.6 5.2 15.8 10.6 27.3 10.6 11.6 0 22.5-5.9 31.8-10.8 4.9-2.6 10.9-7 14.8-10.4s5.9-6.3 3.1-6.6-2.6 2.6-6 5.1c-4.4 3.2-9.7 7.4-13.9 9.8-7.4 4.2-19.5 10.2-29.9 10.2s-18.7-4.8-24.9-9.7c-3.1-2.5-5.7-5-7.7-6.9-1.5-1.4-1.9-4.6-4.3-4.9-1.4-.1-1.8 3.7 1.7 6.5z"}}]})(e)}function a7(e){return kn({tag:"svg",attr:{viewBox:"0 0 576 512"},child:[{tag:"path",attr:{d:"M570.9 372.3c-11.3 14.2-38.8 24.3-38.8 24.3L327 470.2v-54.3l150.9-53.8c17.1-6.1 19.8-14.8 5.8-19.4-13.9-4.6-39.1-3.3-56.2 2.9L327 381.1v-56.4c23.2-7.8 47.1-13.6 75.7-16.8 40.9-4.5 90.9.6 130.2 15.5 44.2 14 49.2 34.7 38 48.9zm-224.4-92.5v-139c0-16.3-3-31.3-18.3-35.6-11.7-3.8-19 7.1-19 23.4v347.9l-93.8-29.8V32c39.9 7.4 98 24.9 129.2 35.4C424.1 94.7 451 128.7 451 205.2c0 74.5-46 102.8-104.5 74.6zM43.2 410.2c-45.4-12.8-53-39.5-32.3-54.8 19.1-14.2 51.7-24.9 51.7-24.9l134.5-47.8v54.5l-96.8 34.6c-17.1 6.1-19.7 14.8-5.8 19.4 13.9 4.6 39.1 3.3 56.2-2.9l46.4-16.9v48.8c-51.6 9.3-101.4 7.3-153.9-10z"}}]})(e)}function l7(e){return kn({tag:"svg",attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M0 93.7l183.6-25.3v177.4H0V93.7zm0 324.6l183.6 25.3V268.4H0v149.9zm203.8 28L448 480V268.4H203.8v177.9zm0-380.6v180.1H448V32L203.8 65.7z"}}]})(e)}function u7(e){return kn({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M369.9 318.2c44.3 54.3 64.7 98.8 54.4 118.7-7.9 15.1-56.7 44.6-92.6 55.9-29.6 9.3-68.4 13.3-100.4 10.2-38.2-3.7-76.9-17.4-110.1-39C93.3 445.8 87 438.3 87 423.4c0-29.9 32.9-82.3 89.2-142.1 32-33.9 76.5-73.7 81.4-72.6 9.4 2.1 84.3 75.1 112.3 109.5zM188.6 143.8c-29.7-26.9-58.1-53.9-86.4-63.4-15.2-5.1-16.3-4.8-28.7 8.1-29.2 30.4-53.5 79.7-60.3 122.4-5.4 34.2-6.1 43.8-4.2 60.5 5.6 50.5 17.3 85.4 40.5 120.9 9.5 14.6 12.1 17.3 9.3 9.9-4.2-11-.3-37.5 9.5-64 14.3-39 53.9-112.9 120.3-194.4zm311.6 63.5C483.3 127.3 432.7 77 425.6 77c-7.3 0-24.2 6.5-36 13.9-23.3 14.5-41 31.4-64.3 52.8C367.7 197 427.5 283.1 448.2 346c6.8 20.7 9.7 41.1 7.4 52.3-1.7 8.5-1.7 8.5 1.4 4.6 6.1-7.7 19.9-31.3 25.4-43.5 7.4-16.2 15-40.2 18.6-58.7 4.3-22.5 3.9-70.8-.8-93.4zM141.3 43C189 40.5 251 77.5 255.6 78.4c.7.1 10.4-4.2 21.6-9.7 63.9-31.1 94-25.8 107.4-25.2-63.9-39.3-152.7-50-233.9-11.7-23.4 11.1-24 11.9-9.4 11.2z"}}]})(e)}function c7(e){return kn({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M15.5 1h-8A2.5 2.5 0 005 3.5v17A2.5 2.5 0 007.5 23h8a2.5 2.5 0 002.5-2.5v-17A2.5 2.5 0 0015.5 1zm-4 21c-.83 0-1.5-.67-1.5-1.5s.67-1.5 1.5-1.5 1.5.67 1.5 1.5-.67 1.5-1.5 1.5zm4.5-4H7V4h9v14z"}}]})(e)}function d7(e){return kn({tag:"svg",attr:{role:"img",viewBox:"0 0 24 24"},child:[{tag:"title",attr:{},child:[]},{tag:"path",attr:{d:"M0 .6h7.1l9.85 15.9V.6H24v22.8h-7.04L7.06 7.5v15.9H0V.6"}}]})(e)}const f7=({platforms:e})=>{const t={pc:l7,playstation:a7,xbox:u7,nintendo:d7,mac:i7,linux:s7,android:o7,ios:c7,web:Ij};return k.jsx(Lo,{marginY:1,children:e.map(n=>k.jsx(Oo,{as:t[n.slug],color:"gray.500"},n.id))})},p7=({score:e})=>{const t=e>75?"green":e>60?"yellow":"";return k.jsx(O2,{fontSize:"14px",paddingX:"2",borderRadius:"4px",colorScheme:t,children:e})},h7="data:image/webp;base64,UklGRlQNAABXRUJQVlA4TEcNAAAvr8THAI9AJm3jX+/udDbIpG38y92/FDJpG/+Cdzab/9gW3iW6QwRIwANFXQiEw7htI0da99/15NkL34iYADi/GTcDSKqVcTVN3AER2RY88i29WwjACRuyGYa3ICaVHcE7LnD+L7bLt2zbdVvbtlVwvxFAxf9/7rhaBCqAOhgxIvo/AUCB+PuPIiIdSZLbNgCYM/7/Yt+ANXSI6H+M//vff//9999///3333///ffff//9999///3333///ffff//9999///3333///ffff//9999///3333///ffff//9999///3333///fdfmFKvJafovXPWGpNEJOVSW+tjzH31O0StJG81flBy7XPdLw/VHJ3G76c69vvetBwMXs25zfOVoSc5hUnmvvTrUpPBbKXO91WhEjQmLW3p56Qli8mnfj4kPRkskevSLwhli5Xm8b4dVBzWm8b7bLSgsOg07hejWCw9Tf1WUNJYf1n6mageTOR2PhHFgJNp6NehGLCz7i9DNmBpGvpRyBp8bfeDkDV4m9fHoGjwV4Z+B6oFj7m/b0D3YHS78U8RzC4n+JMCv/MK/GrA87SCngL4nlbEZwXWpxXtzYL9aUU6RWxhPmFeNXax3BCniJ2sL76rwWZ2De6I/eShgd0MtlRWWCdsaz4h3S12tr54fhQ2d2gwR+yvrEjuFltcbhgXhV3uGsMRGy0rgLvBXpcXvY/GbvOI3YwdTydwAza9a9B2g22XFbJVYeerxmvG5suK1oD9rxqp5HACecVpNziERYO0aRxDXiH6KJzEqvGZcRhlR2fEeWwamh4nUk5cksOhHFFJFscyv5Akg4PJKyC7xtlsGo1N4XTKicWqcEBHJBac0aJhWHBKZQdhwUEdIVhwVIvGX8ZhlRN9Ged1xF7GiS0aeBlnVm7YZRzbGXQZB7eFXMbRzS/eCg4v72grOL8j1gpOcNVAe3CG0wuzilPMJ8iqOkZEM8SawkluAdY1znLW6CKN0yw3tsjgPPMKLYsjPQLL41C3sAo41kVjKuJgpxdRGUebTzwVnO4ZTRXne8RS0weMWiSRxhEvGkZkccjTiyKPYy43hiIOOu8ISjjrM34KTvv4Y/QnR2eNVlDa2NLmfh5p6rhR/0+07BX+m1zGcQZpHPj6f3iCwl9y3Z6wOPJZ/wotafy99OuFgEOf9H9QPX61bBdkHHu5f4Lq8Mt52//g4PP5B3SPX8/X+K5OHvHGPym8sKvlZHD4F/jV4J2yDXc4/hP6jPcOsyMu4MSdPN6c1eaMKzhQbxrvlmNxxSXsmFeFt/O2t6tbQBXxR2GCy1oyuIcV74I55s3yuIlFwX4wy2Jqwl3MCnVT08A2tOA2ZgW6a8yTj5lNXQdKCjMZzFTUSDK4kElR9phrMdLjSsrDOGO2w8SMSykP4aamQ8fAimspF2CD+YqaR/peEF94M2Y8zHO4mXzBJTUlesZF3E252AbMudj24HbyRbZh1tuyrq4H8QXWTytbZnBB+cDaMe9jV8AV5YNqmFgxK+OS8sGUMPNrVMM15QNpnlq3icw9IT6ImqmJTR43lS+eDXPfFiXcVb5wxsk1gypuK1809eTYHtLXheRi2TH7Y47DhZULZZ7esCbhyspDMkyvGFNxaeUBqafHtpC+NSQPRsL8ryke9zYpinUBy5KMm5sUxLyAYUhXV4eyYhgX0AwxuLxZIfQLyHZEXN8CoV2AmPHgAlcEzTkhdYOoAqgXgF1wuMPtf55wizt8WCFtQcU9Hv9x0heJJnhqBWMHPa7ywk6fkYzLvKAzC1Ab0NRtooOcXYDeAIPrzAc4vwDLv4gLzRe3tIDAvgdXWh5seQGJe6TvFCVFrS6gcM/jVmcFjRbQmFdwrwtoQ09PDd53dbGogRam55jncLU7ZmV6iXcZl3tA1qdXWddwvSdiw0xODdab+0UbsTi5wLqIC84HsDa5h3MVV5wvXsNMTQ/Gk75jJIpXnlrkXMAtTwoXTa0xruCeF7hGnJgffCd90ajB1SdWGedw1QdaI0zLDb5nXPaJVpvWw7embhttsEaYlB98t7jufMAiNafOt4QLzw+rkaeUBtsbrnxSrIadkBl8N3eOMlhdzafyLeLWV6xGmU4abK+49x2rESbjBt/NxaOJFZmpaOJbxNXfUI2uJ6LaYHvF3ecL1WhqHnWwnfTlI1GoRp1GGXyPuP5JoRrPJPLg+wMBWLEaVc2gDL6TlgDUsRpNv07VwfgAGTixGt28TLfB+AdScGM1KLzK0WA8aTHAF6sx8ovSYH2AHBQFazTzElMH6wskYUZrjKzekAbvSYsCanAN8j/n+mC+hzAccI3R/E+5OrhfIA4XXmM0/zO+DvaTkgd0ABujJ/MDOrWxgR4CURSxMUaN+k90eMYWFojEDNoYo2ev/yvK5zY2kZRMoArbP1LN0TtrtNLGWB9zpbGRHlJxILe3BXJx/SdJCwa+f0kPySj6hyyQjfn/SFo4UPs7eojH+WcsEJD7r0haQvD7JwaIyKT/wwdCsv4NSUsJJCkUICeLDHogKFWTQKQlBTQJoABZ6eTPA2kZpQ9pcYEifAIEZhM9DySmJsFDWmTACZ4AoRnFToXYLEKHjNxQTeZECE5DEqdCdHqJY2QHkryJkJ6PtGkQn6oLGyM/YEjUJEhQL2kaZGjmWa8lx+Cd0VopBUAprY11Iaa5r6JihAgqr/qTo9P4c8l1zP3QSJCimrhEJTmFH09tHoWhQY46DvUcNF6b2jwQWEGCyBwqweD9qS11foIoLYyh4hWmmcdxfIMsVZ0pVBxmy3U+p1thAkMcqUFhztK2wxPEaWAHJY2Zc9vObhComRc9Kkyf2/a0lShojGgBi+S2vZwhUjVxgQJWyu16uEOoeiYkhdWmqe61UgWJA0VjxdyObzPkal0eeSw7TfVrV4JF0+KKwtLb8aqFZHVLI4/lp+XSDNmaFlYUOChT3dmVcMGzrAgucn/OdJCuqq+pW3CyXU9myFe7pEeDmWW7sSsBg7igBIam5UQHEfushhx4mpYHM2Ss6mvpBmxN231dCRnYpTQNzubtPAsxGxdSFJibt+cyBO2zjAwG5+22BkmraBERPC7XaVbUwK7Bg81NPZYgbNMKPBjNQ93VIG6f6ZEDr2V6y8gbTZMjC3an7aoEgevmRgYcz9dPDSI3zYwMmN7US0bmoM6LDNgu00cRQlfTrMiA8/k4qELs+kmRAfObusfIHeQpkQX7eTonQvK2CZHFDqbjmQrRa2g+DpvY1C2kZQ/CdBy2UZZXAqRvmYzHTtbnkgfiV/WpROwlT4eQlj8wM0nYznzd4SGB4zwKdnQ4o0AGP7N4sKfpeKIrIaRpDlVtClFXPzhIYTeFprCv6XghQw7nCZDG1nYfNEji9j6LzU3XA0YUGXpbwP4O+yNkcXhZwg6na3yFNC6vKtjkYTppcaT6iyq2OT/DPeSxfU/X+0S8zC6QyOktZLDVVW3uSiShvsRjs+WYbCGTNb0iYb+7wQlSObyhYMfzs7ZCLpffa2rLiKetpAWTol8jg12vaqmHZHa/5rDvcu3MkM35txK2flrZlHBC+6WCza9qo4F0Nj/U1O6RHAsj5HP4GTI4gMO+BxL6+RWPI1jUOFIiStNvZBxCObY5yGj/ExXncFqWIKXzD5A+CFTVrAdiWvW/8ziK6RpFWk7B/lnCYeRlk4OkTn9UcR67RQmyuv0J6QNB+ZnzQFgb+guHI8nbGNLSCvEPEk7lsMVCXu+fK85lVUMiBLbor/pgUHpmFIjs+iuOJm8jupJZtBxGNEwgA6HNz2NUaQMCxHZxGZnOvgzBPV0G9TCvQnRflwGZdaRlV3YaAucshPdwGiyxLUB8X6dBN6ZlyO/kNajCsgoJ3r0GJIZ1JcLouA2euEUGMlzUbbDELA8p3vwG3ViVIMe336AKowoEuajfgMSmClFePYfApK5kGS3PwRKHyECYs3oOujHIQZxX10E97IkQ6Mt1QGZOgkRn9R0SazJkenUePGMeSPXpPFjiSlNijdV50I0nXUOuF+9BVY6QgWSf3gMKP8hCtPNzHxI3yEK4F/8hMMNBvE//wREnPOQ7P//BdD4ESPjiQOjGhQAZPx0I9fAgQsizB4HMgYhvxbS+iK/FsLqI70VLSwv4YjR9YQHfjLotK+CrUT2L8vhwzCsii0/HuB4y+HgMq2kan4+WllIVPiBNX0hR+ITUdRkJX5GqLMLjQzKvgCw+JcP8qsbHpKPJZXxPmj4zCvii1G1ezeCbUpVZZXxXpimRx5elp/kUjW9L0ydDHp+Xuk6lKHxh5nmQx0empzlQUvjMNG0GReNTM7+uWnxt2v6q6vHBqdJ7HoePTl3eUQw+PHXsv9aTxtenLfQ7lB0+QVUo9AtUgsKHqE31b55k8T2qXMyV/jN6crT4MtXWh5BSzinG4K3C//3vv//++++///7777///vvvv//++++///7777///vvvv//++++///7777///vvvv//++++///7777///vvvv//++++///7777///vvvv///iwkA",kk=e=>{if(!e)return h7;const t="media/",n=e.indexOf(t)+t.length;return e.slice(0,n)+"crop/600/400/"+e.slice(n)},m7=({game:e})=>k.jsxs(v2,{children:[k.jsx(Fc,{src:kk(e.background_image)}),k.jsxs(g2,{children:[k.jsxs(Lo,{justifyContent:"space-between",marginBottom:3,children:[k.jsx(f7,{platforms:e.parent_platforms.map(t=>t.platform)}),k.jsx(p7,{score:e.metacritic})]}),k.jsx(Uc,{fontSize:"2xl",children:e.name})]})]}),g7=()=>k.jsxs(v2,{children:[k.jsx(n0,{height:"200px"}),k.jsx(g2,{children:k.jsx(Y2,{})})]}),E1=({children:e})=>k.jsx(Gc,{borderRadius:10,overflow:"hidden",children:e}),v7=({gameQuery:e})=>{const{games:t,error:n,isLoading:r}=r7(e);return n?k.jsx(Wc,{children:n}):k.jsxs(R2,{columns:{sm:1,md:2,lg:3,xl:4},spacing:6,padding:"10px",children:[r&&[0,1,2,3,4,5].map(o=>k.jsx(E1,{children:k.jsx(g7,{})},o)),t.map(o=>k.jsx(E1,{children:k.jsx(m7,{game:o})},o.id))]})},y7=()=>{const{data:e,isLoading:t,error:n}=l0("/genres");return{genres:e,error:n,isLoading:t}},b7=({onSelectGenre:e,selectedGenre:t})=>{const{genres:n,isLoading:r,error:o}=y7();return r?k.jsx(jc,{}):k.jsxs(k.Fragment,{children:[k.jsx(Uc,{fontSize:"2xl",marginBottom:3,children:"Genres"}),o&&k.jsx(Wc,{children:o}),k.jsx(Vc,{children:n.map(i=>k.jsx(T2,{paddingY:"5px",children:k.jsxs(Lo,{children:[k.jsx(Fc,{src:kk(i.image_background),boxSize:"32px",borderRadius:"8px",objectFit:"cover"}),k.jsx(Nc,{onClick:()=>e(i),fontSize:"lg",variant:"link",fontWeight:i.id===(t==null?void 0:t.id)?"bold":"normal",whiteSpace:"normal",textAlign:"left",children:i.name})]})},i.id))})]})},x7=()=>l0("/platforms/lists/parents"),S7=({selectedPlatform:e,onSelectPlatform:t})=>{const{data:n,error:r}=x7();return r?null:k.jsxs(Zm,{children:[k.jsx(t0,{as:Nc,rightIcon:k.jsx(ek,{}),children:(e==null?void 0:e.name)||"Platforms"}),k.jsx(e0,{children:n.map(o=>k.jsx(Jm,{onClick:()=>t(o),children:o.name},o.id))})]})},w7=({sortOrder:e,onSelectSortOrder:t})=>{const n=[{value:"",label:"Relevance"},{value:"-added",label:"Date added"},{value:"name",label:"Name"},{value:"-released",label:"Release date"},{value:"-metacritic",label:"Popularity"},{value:"-rating",label:"Average rating"}],r=n.find(o=>o.value===e);return k.jsxs(Zm,{children:[k.jsxs(t0,{as:Nc,rightIcon:k.jsx(ek,{}),children:["Order By: ",r==null?void 0:r.label]}),k.jsx(e0,{children:n.map(o=>k.jsx(Jm,{onClick:()=>t(o.value),children:o.label},o.label))})]})},k7=({gameQuery:e})=>{var n,r;const t=`${((n=e.platform)==null?void 0:n.name)||""} ${((r=e.genre)==null?void 0:r.name)||""} Games`;return k.jsx(Uc,{as:"h1",marginY:5,fontSize:"5xl",children:t})};function C7(){const[e,t]=x.useState({});return k.jsxs(Wm,{templateAreas:{base:'"nav" "main"',lg:'"nav nav" "aside main"'},templateColumns:{base:"1fr",lg:"200px 1fr"},children:[k.jsx(eu,{area:"nav",children:k.jsx(Fj,{onSearch:n=>t({...e,searchQuery:n})})}),k.jsx(I2,{above:"lg",children:k.jsx(eu,{area:"aside",paddingX:5,children:k.jsx(b7,{onSelectGenre:n=>t({...e,genre:n}),selectedGenre:e.genre})})}),k.jsxs(eu,{area:"main",children:[k.jsxs(Gc,{paddingLeft:3,children:[k.jsx(k7,{gameQuery:e}),k.jsxs(Lo,{spacing:5,marginBottom:5,children:[k.jsx(S7,{selectedPlatform:e.platform,onSelectPlatform:n=>t({...e,platform:n})}),k.jsx(w7,{sortOrder:e.sortOrder,onSelectSortOrder:n=>t({...e,sortOrder:n})})]})]}),k.jsx(v7,{gameQuery:e})]})]})}const E7={initialColorMode:"dark",useSystemColorMode:!1},_1=oM({config:E7,colors:{gray:{50:"#f9f9f9",100:"#ededed",200:"#d3d3d3",300:"#b3b3b3",400:"#a0a0a0",500:"#898989",600:"#6c6c6c",700:"#202020",800:"#121212",900:"#111"}}});wf.createRoot(document.getElementById("root")).render(k.jsx(Lt.StrictMode,{children:k.jsxs(xI,{theme:_1,children:[k.jsx(fP,{initialColorMode:_1.config.initialColorMode}),k.jsx(C7,{})]})})); diff --git a/assets/index-b8ce9ed1.js b/assets/index-b8ce9ed1.js deleted file mode 100644 index b337b13..0000000 --- a/assets/index-b8ce9ed1.js +++ /dev/null @@ -1,352 +0,0 @@ -function SC(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 Ya=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Qp(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var x1={exports:{}},Yu={},S1={exports:{}},re={};/** - * @license React - * react.production.min.js - * - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */var ka=Symbol.for("react.element"),wC=Symbol.for("react.portal"),kC=Symbol.for("react.fragment"),CC=Symbol.for("react.strict_mode"),PC=Symbol.for("react.profiler"),EC=Symbol.for("react.provider"),_C=Symbol.for("react.context"),TC=Symbol.for("react.forward_ref"),AC=Symbol.for("react.suspense"),RC=Symbol.for("react.memo"),$C=Symbol.for("react.lazy"),b0=Symbol.iterator;function MC(e){return e===null||typeof e!="object"?null:(e=b0&&e[b0]||e["@@iterator"],typeof e=="function"?e:null)}var w1={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},k1=Object.assign,C1={};function Bi(e,t,r){this.props=e,this.context=t,this.refs=C1,this.updater=r||w1}Bi.prototype.isReactComponent={};Bi.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};Bi.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function P1(){}P1.prototype=Bi.prototype;function Zp(e,t,r){this.props=e,this.context=t,this.refs=C1,this.updater=r||w1}var Jp=Zp.prototype=new P1;Jp.constructor=Zp;k1(Jp,Bi.prototype);Jp.isPureReactComponent=!0;var x0=Array.isArray,E1=Object.prototype.hasOwnProperty,eh={current:null},_1={key:!0,ref:!0,__self:!0,__source:!0};function T1(e,t,r){var n,o={},i=null,s=null;if(t!=null)for(n in t.ref!==void 0&&(s=t.ref),t.key!==void 0&&(i=""+t.key),t)E1.call(t,n)&&!_1.hasOwnProperty(n)&&(o[n]=t[n]);var a=arguments.length-2;if(a===1)o.children=r;else if(1>>1,ee=L[V];if(0>>1;Vo(we,W))heo(We,we)?(L[V]=We,L[he]=W,V=he):(L[V]=we,L[G]=W,V=G);else if(heo(We,W))L[V]=We,L[he]=W,V=he;else break e}}return B}function o(L,B){var W=L.sortIndex-B.sortIndex;return W!==0?W:L.id-B.id}if(typeof performance=="object"&&typeof performance.now=="function"){var i=performance;e.unstable_now=function(){return i.now()}}else{var s=Date,a=s.now();e.unstable_now=function(){return s.now()-a}}var l=[],u=[],c=1,d=null,f=3,p=!1,m=!1,y=!1,w=typeof setTimeout=="function"?setTimeout:null,g=typeof clearTimeout=="function"?clearTimeout:null,h=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function v(L){for(var B=r(u);B!==null;){if(B.callback===null)n(u);else if(B.startTime<=L)n(u),B.sortIndex=B.expirationTime,t(l,B);else break;B=r(u)}}function S(L){if(y=!1,v(L),!m)if(r(l)!==null)m=!0,Z(_);else{var B=r(u);B!==null&&z(S,B.startTime-L)}}function _(L,B){m=!1,y&&(y=!1,g(A),A=-1),p=!0;var W=f;try{for(v(B),d=r(l);d!==null&&(!(d.expirationTime>B)||L&&!F());){var V=d.callback;if(typeof V=="function"){d.callback=null,f=d.priorityLevel;var ee=V(d.expirationTime<=B);B=e.unstable_now(),typeof ee=="function"?d.callback=ee:d===r(l)&&n(l),v(B)}else n(l);d=r(l)}if(d!==null)var N=!0;else{var G=r(u);G!==null&&z(S,G.startTime-B),N=!1}return N}finally{d=null,f=W,p=!1}}var T=!1,E=null,A=-1,O=5,M=-1;function F(){return!(e.unstable_now()-ML||125V?(L.sortIndex=W,t(u,L),r(l)===null&&L===r(u)&&(y?(g(A),A=-1):y=!0,z(S,W-V))):(L.sortIndex=ee,t(l,L),m||p||(m=!0,Z(_))),L},e.unstable_shouldYield=F,e.unstable_wrapCallback=function(L){var B=f;return function(){var W=f;f=B;try{return L.apply(this,arguments)}finally{f=W}}}})(M1);$1.exports=M1;var HC=$1.exports;/** - * @license React - * react-dom.production.min.js - * - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */var O1=x,jt=HC;function D(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,r=1;r"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),bf=Object.prototype.hasOwnProperty,WC=/^[: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]*$/,k0={},C0={};function UC(e){return bf.call(C0,e)?!0:bf.call(k0,e)?!1:WC.test(e)?C0[e]=!0:(k0[e]=!0,!1)}function GC(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 KC(e,t,r,n){if(t===null||typeof t>"u"||GC(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 yt(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 nt={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){nt[e]=new yt(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];nt[t]=new yt(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){nt[e]=new yt(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){nt[e]=new yt(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){nt[e]=new yt(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){nt[e]=new yt(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){nt[e]=new yt(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){nt[e]=new yt(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){nt[e]=new yt(e,5,!1,e.toLowerCase(),null,!1,!1)});var rh=/[\-:]([a-z])/g;function nh(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(rh,nh);nt[t]=new yt(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(rh,nh);nt[t]=new yt(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(rh,nh);nt[t]=new yt(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){nt[e]=new yt(e,1,!1,e.toLowerCase(),null,!1,!1)});nt.xlinkHref=new yt("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){nt[e]=new yt(e,1,!1,e.toLowerCase(),null,!0,!0)});function oh(e,t,r,n){var o=nt.hasOwnProperty(t)?nt[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{ud=!1,Error.prepareStackTrace=r}return(e=e?e.displayName||e.name:"")?fs(e):""}function XC(e){switch(e.tag){case 5:return fs(e.type);case 16:return fs("Lazy");case 13:return fs("Suspense");case 19:return fs("SuspenseList");case 0:case 2:case 15:return e=cd(e.type,!1),e;case 11:return e=cd(e.type.render,!1),e;case 1:return e=cd(e.type,!0),e;default:return""}}function kf(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 Wo:return"Fragment";case Ho:return"Portal";case xf:return"Profiler";case ih:return"StrictMode";case Sf:return"Suspense";case wf:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case D1:return(e.displayName||"Context")+".Consumer";case L1:return(e._context.displayName||"Context")+".Provider";case sh:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case ah:return t=e.displayName||null,t!==null?t:kf(e.type)||"Memo";case Sn:t=e._payload,e=e._init;try{return kf(e(t))}catch{}}return null}function qC(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 kf(t);case 8:return t===ih?"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 Nn(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function j1(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function YC(e){var t=j1(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 Ja(e){e._valueTracker||(e._valueTracker=YC(e))}function F1(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var r=t.getValue(),n="";return e&&(n=j1(e)?e.checked?"true":"false":e.value),e=n,e!==r?(t.setValue(e),!0):!1}function au(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 Cf(e,t){var r=t.checked;return Oe({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:r??e._wrapperState.initialChecked})}function E0(e,t){var r=t.defaultValue==null?"":t.defaultValue,n=t.checked!=null?t.checked:t.defaultChecked;r=Nn(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 B1(e,t){t=t.checked,t!=null&&oh(e,"checked",t,!1)}function Pf(e,t){B1(e,t);var r=Nn(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")?Ef(e,t.type,r):t.hasOwnProperty("defaultValue")&&Ef(e,t.type,Nn(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function _0(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 Ef(e,t,r){(t!=="number"||au(e.ownerDocument)!==e)&&(r==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+r&&(e.defaultValue=""+r))}var ps=Array.isArray;function di(e,t,r,n){if(e=e.options,t){t={};for(var o=0;o"+t.valueOf().toString()+"",t=el.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Gs(e,t){if(t){var r=e.firstChild;if(r&&r===e.lastChild&&r.nodeType===3){r.nodeValue=t;return}}e.textContent=t}var ks={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},QC=["Webkit","ms","Moz","O"];Object.keys(ks).forEach(function(e){QC.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),ks[t]=ks[e]})});function W1(e,t,r){return t==null||typeof t=="boolean"||t===""?"":r||typeof t!="number"||t===0||ks.hasOwnProperty(e)&&ks[e]?(""+t).trim():t+"px"}function U1(e,t){e=e.style;for(var r in t)if(t.hasOwnProperty(r)){var n=r.indexOf("--")===0,o=W1(r,t[r],n);r==="float"&&(r="cssFloat"),n?e.setProperty(r,o):e[r]=o}}var ZC=Oe({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 Af(e,t){if(t){if(ZC[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(D(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(D(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(D(61))}if(t.style!=null&&typeof t.style!="object")throw Error(D(62))}}function Rf(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 $f=null;function lh(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Mf=null,fi=null,pi=null;function R0(e){if(e=Ea(e)){if(typeof Mf!="function")throw Error(D(280));var t=e.stateNode;t&&(t=tc(t),Mf(e.stateNode,e.type,t))}}function G1(e){fi?pi?pi.push(e):pi=[e]:fi=e}function K1(){if(fi){var e=fi,t=pi;if(pi=fi=null,R0(e),t)for(e=0;e>>=0,e===0?32:31-(u5(e)/c5|0)|0}var tl=64,rl=4194304;function hs(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 du(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=hs(a):(i&=s,i!==0&&(n=hs(i)))}else s=r&~o,s!==0?n=hs(s):i!==0&&(n=hs(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 Ca(e,t,r){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-br(t),e[t]=r}function h5(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=Ps),F0=String.fromCharCode(32),B0=!1;function pb(e,t){switch(e){case"keyup":return V5.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function hb(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Uo=!1;function W5(e,t){switch(e){case"compositionend":return hb(t);case"keypress":return t.which!==32?null:(B0=!0,F0);case"textInput":return e=t.data,e===F0&&B0?null:e;default:return null}}function U5(e,t){if(Uo)return e==="compositionend"||!gh&&pb(e,t)?(e=db(),$l=ph=_n=null,Uo=!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=W0(r)}}function yb(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?yb(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function bb(){for(var e=window,t=au();t instanceof e.HTMLIFrameElement;){try{var r=typeof t.contentWindow.location.href=="string"}catch{r=!1}if(r)e=t.contentWindow;else break;t=au(e.document)}return t}function vh(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 eP(e){var t=bb(),r=e.focusedElem,n=e.selectionRange;if(t!==r&&r&&r.ownerDocument&&yb(r.ownerDocument.documentElement,r)){if(n!==null&&vh(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=U0(r,i);var s=U0(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,Go=null,jf=null,_s=null,Ff=!1;function G0(e,t,r){var n=r.window===r?r.document:r.nodeType===9?r:r.ownerDocument;Ff||Go==null||Go!==au(n)||(n=Go,"selectionStart"in n&&vh(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}),_s&&Zs(_s,n)||(_s=n,n=hu(jf,"onSelect"),0qo||(e.current=Uf[qo],Uf[qo]=null,qo--)}function be(e,t){qo++,Uf[qo]=e.current,e.current=t}var Vn={},ct=Gn(Vn),wt=Gn(!1),So=Vn;function ki(e,t){var r=e.type.contextTypes;if(!r)return Vn;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 kt(e){return e=e.childContextTypes,e!=null}function gu(){Pe(wt),Pe(ct)}function J0(e,t,r){if(ct.current!==Vn)throw Error(D(168));be(ct,t),be(wt,r)}function Tb(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(D(108,qC(e)||"Unknown",o));return Oe({},r,n)}function vu(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Vn,So=ct.current,be(ct,e),be(wt,wt.current),!0}function eg(e,t,r){var n=e.stateNode;if(!n)throw Error(D(169));r?(e=Tb(e,t,So),n.__reactInternalMemoizedMergedChildContext=e,Pe(wt),Pe(ct),be(ct,e)):Pe(wt),be(wt,r)}var Wr=null,rc=!1,Cd=!1;function Ab(e){Wr===null?Wr=[e]:Wr.push(e)}function fP(e){rc=!0,Ab(e)}function Kn(){if(!Cd&&Wr!==null){Cd=!0;var e=0,t=ge;try{var r=Wr;for(ge=1;e>=s,o-=s,Kr=1<<32-br(t)+o|r<A?(O=E,E=null):O=E.sibling;var M=f(g,E,v[A],S);if(M===null){E===null&&(E=O);break}e&&E&&M.alternate===null&&t(g,E),h=i(M,h,A),T===null?_=M:T.sibling=M,T=M,E=O}if(A===v.length)return r(g,E),Ae&&no(g,A),_;if(E===null){for(;AA?(O=E,E=null):O=E.sibling;var F=f(g,E,M.value,S);if(F===null){E===null&&(E=O);break}e&&E&&F.alternate===null&&t(g,E),h=i(F,h,A),T===null?_=F:T.sibling=F,T=F,E=O}if(M.done)return r(g,E),Ae&&no(g,A),_;if(E===null){for(;!M.done;A++,M=v.next())M=d(g,M.value,S),M!==null&&(h=i(M,h,A),T===null?_=M:T.sibling=M,T=M);return Ae&&no(g,A),_}for(E=n(g,E);!M.done;A++,M=v.next())M=p(E,g,A,M.value,S),M!==null&&(e&&M.alternate!==null&&E.delete(M.key===null?A:M.key),h=i(M,h,A),T===null?_=M:T.sibling=M,T=M);return e&&E.forEach(function(q){return t(g,q)}),Ae&&no(g,A),_}function w(g,h,v,S){if(typeof v=="object"&&v!==null&&v.type===Wo&&v.key===null&&(v=v.props.children),typeof v=="object"&&v!==null){switch(v.$$typeof){case Za:e:{for(var _=v.key,T=h;T!==null;){if(T.key===_){if(_=v.type,_===Wo){if(T.tag===7){r(g,T.sibling),h=o(T,v.props.children),h.return=g,g=h;break e}}else if(T.elementType===_||typeof _=="object"&&_!==null&&_.$$typeof===Sn&&ag(_)===T.type){r(g,T.sibling),h=o(T,v.props),h.ref=ts(g,T,v),h.return=g,g=h;break e}r(g,T);break}else t(g,T);T=T.sibling}v.type===Wo?(h=go(v.props.children,g.mode,S,v.key),h.return=g,g=h):(S=Fl(v.type,v.key,v.props,null,g.mode,S),S.ref=ts(g,h,v),S.return=g,g=S)}return s(g);case Ho:e:{for(T=v.key;h!==null;){if(h.key===T)if(h.tag===4&&h.stateNode.containerInfo===v.containerInfo&&h.stateNode.implementation===v.implementation){r(g,h.sibling),h=o(h,v.children||[]),h.return=g,g=h;break e}else{r(g,h);break}else t(g,h);h=h.sibling}h=Md(v,g.mode,S),h.return=g,g=h}return s(g);case Sn:return T=v._init,w(g,h,T(v._payload),S)}if(ps(v))return m(g,h,v,S);if(Yi(v))return y(g,h,v,S);ul(g,v)}return typeof v=="string"&&v!==""||typeof v=="number"?(v=""+v,h!==null&&h.tag===6?(r(g,h.sibling),h=o(h,v),h.return=g,g=h):(r(g,h),h=$d(v,g.mode,S),h.return=g,g=h),s(g)):r(g,h)}return w}var Pi=Ib(!0),jb=Ib(!1),_a={},$r=Gn(_a),ra=Gn(_a),na=Gn(_a);function fo(e){if(e===_a)throw Error(D(174));return e}function Eh(e,t){switch(be(na,t),be(ra,e),be($r,_a),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Tf(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=Tf(t,e)}Pe($r),be($r,t)}function Ei(){Pe($r),Pe(ra),Pe(na)}function Fb(e){fo(na.current);var t=fo($r.current),r=Tf(t,e.type);t!==r&&(be(ra,e),be($r,r))}function _h(e){ra.current===e&&(Pe($r),Pe(ra))}var Re=Gn(0);function ku(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 Pd=[];function Th(){for(var e=0;er?r:4,e(!0);var n=Ed.transition;Ed.transition={};try{e(!1),t()}finally{ge=r,Ed.transition=n}}function tx(){return ar().memoizedState}function gP(e,t,r){var n=Ln(e);if(r={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null},rx(e))nx(t,r);else if(r=Ob(e,t,r,n),r!==null){var o=mt();xr(r,e,n,o),ox(r,t,n)}}function vP(e,t,r){var n=Ln(e),o={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null};if(rx(e))nx(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,Ch(t)):(o.next=l.next,l.next=o),t.interleaved=o;return}}catch{}finally{}r=Ob(e,t,o,n),r!==null&&(o=mt(),xr(r,e,n,o),ox(r,t,n))}}function rx(e){var t=e.alternate;return e===Me||t!==null&&t===Me}function nx(e,t){Ts=Cu=!0;var r=e.pending;r===null?t.next=t:(t.next=r.next,r.next=t),e.pending=t}function ox(e,t,r){if(r&4194240){var n=t.lanes;n&=e.pendingLanes,r|=n,t.lanes=r,ch(e,r)}}var Pu={readContext:sr,useCallback:it,useContext:it,useEffect:it,useImperativeHandle:it,useInsertionEffect:it,useLayoutEffect:it,useMemo:it,useReducer:it,useRef:it,useState:it,useDebugValue:it,useDeferredValue:it,useTransition:it,useMutableSource:it,useSyncExternalStore:it,useId:it,unstable_isNewReconciler:!1},yP={readContext:sr,useCallback:function(e,t){return Cr().memoizedState=[e,t===void 0?null:t],e},useContext:sr,useEffect:ug,useImperativeHandle:function(e,t,r){return r=r!=null?r.concat([e]):null,Ll(4194308,4,Yb.bind(null,t,e),r)},useLayoutEffect:function(e,t){return Ll(4194308,4,e,t)},useInsertionEffect:function(e,t){return Ll(4,2,e,t)},useMemo:function(e,t){var r=Cr();return t=t===void 0?null:t,e=e(),r.memoizedState=[e,t],e},useReducer:function(e,t,r){var n=Cr();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=gP.bind(null,Me,e),[n.memoizedState,e]},useRef:function(e){var t=Cr();return e={current:e},t.memoizedState=e},useState:lg,useDebugValue:Oh,useDeferredValue:function(e){return Cr().memoizedState=e},useTransition:function(){var e=lg(!1),t=e[0];return e=mP.bind(null,e[1]),Cr().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,r){var n=Me,o=Cr();if(Ae){if(r===void 0)throw Error(D(407));r=r()}else{if(r=t(),Ye===null)throw Error(D(349));ko&30||Vb(n,t,r)}o.memoizedState=r;var i={value:r,getSnapshot:t};return o.queue=i,ug(Wb.bind(null,n,i,e),[e]),n.flags|=2048,sa(9,Hb.bind(null,n,i,r,t),void 0,null),r},useId:function(){var e=Cr(),t=Ye.identifierPrefix;if(Ae){var r=Xr,n=Kr;r=(n&~(1<<32-br(n)-1)).toString(32)+r,t=":"+t+"R"+r,r=oa++,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[Ar]=t,e[ta]=n,px(e,t,!1,!1),t.stateNode=e;e:{switch(s=Rf(r,n),r){case"dialog":ke("cancel",e),ke("close",e),o=n;break;case"iframe":case"object":case"embed":ke("load",e),o=n;break;case"video":case"audio":for(o=0;oTi&&(t.flags|=128,n=!0,rs(i,!1),t.lanes=4194304)}else{if(!n)if(e=ku(s),e!==null){if(t.flags|=128,n=!0,r=e.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),rs(i,!0),i.tail===null&&i.tailMode==="hidden"&&!s.alternate&&!Ae)return st(t),null}else 2*je()-i.renderingStartTime>Ti&&r!==1073741824&&(t.flags|=128,n=!0,rs(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=je(),t.sibling=null,r=Re.current,be(Re,n?r&1|2:r&1),t):(st(t),null);case 22:case 23:return Fh(),n=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==n&&(t.flags|=8192),n&&t.mode&1?$t&1073741824&&(st(t),t.subtreeFlags&6&&(t.flags|=8192)):st(t),null;case 24:return null;case 25:return null}throw Error(D(156,t.tag))}function EP(e,t){switch(bh(t),t.tag){case 1:return kt(t.type)&&gu(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Ei(),Pe(wt),Pe(ct),Th(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return _h(t),null;case 13:if(Pe(Re),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(D(340));Ci()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Pe(Re),null;case 4:return Ei(),null;case 10:return kh(t.type._context),null;case 22:case 23:return Fh(),null;case 24:return null;default:return null}}var dl=!1,ut=!1,_P=typeof WeakSet=="function"?WeakSet:Set,j=null;function Jo(e,t){var r=e.ref;if(r!==null)if(typeof r=="function")try{r(null)}catch(n){Le(e,t,n)}else r.current=null}function np(e,t,r){try{r()}catch(n){Le(e,t,n)}}var yg=!1;function TP(e,t){if(Bf=fu,e=bb(),vh(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(Nf={focusedElem:e,selectionRange:r},fu=!1,j=t;j!==null;)if(t=j,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,j=e;else for(;j!==null;){t=j;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 y=m.memoizedProps,w=m.memoizedState,g=t.stateNode,h=g.getSnapshotBeforeUpdate(t.elementType===t.type?y:hr(t.type,y),w);g.__reactInternalSnapshotBeforeUpdate=h}break;case 3:var v=t.stateNode.containerInfo;v.nodeType===1?v.textContent="":v.nodeType===9&&v.documentElement&&v.removeChild(v.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(D(163))}}catch(S){Le(t,t.return,S)}if(e=t.sibling,e!==null){e.return=t.return,j=e;break}j=t.return}return m=yg,yg=!1,m}function As(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&&np(t,r,i)}o=o.next}while(o!==n)}}function ic(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 op(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 gx(e){var t=e.alternate;t!==null&&(e.alternate=null,gx(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Ar],delete t[ta],delete t[Wf],delete t[cP],delete t[dP])),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 vx(e){return e.tag===5||e.tag===3||e.tag===4}function bg(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||vx(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 ip(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=mu));else if(n!==4&&(e=e.child,e!==null))for(ip(e,t,r),e=e.sibling;e!==null;)ip(e,t,r),e=e.sibling}function sp(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(sp(e,t,r),e=e.sibling;e!==null;)sp(e,t,r),e=e.sibling}var et=null,mr=!1;function mn(e,t,r){for(r=r.child;r!==null;)yx(e,t,r),r=r.sibling}function yx(e,t,r){if(Rr&&typeof Rr.onCommitFiberUnmount=="function")try{Rr.onCommitFiberUnmount(Qu,r)}catch{}switch(r.tag){case 5:ut||Jo(r,t);case 6:var n=et,o=mr;et=null,mn(e,t,r),et=n,mr=o,et!==null&&(mr?(e=et,r=r.stateNode,e.nodeType===8?e.parentNode.removeChild(r):e.removeChild(r)):et.removeChild(r.stateNode));break;case 18:et!==null&&(mr?(e=et,r=r.stateNode,e.nodeType===8?kd(e.parentNode,r):e.nodeType===1&&kd(e,r),Ys(e)):kd(et,r.stateNode));break;case 4:n=et,o=mr,et=r.stateNode.containerInfo,mr=!0,mn(e,t,r),et=n,mr=o;break;case 0:case 11:case 14:case 15:if(!ut&&(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)&&np(r,t,s),o=o.next}while(o!==n)}mn(e,t,r);break;case 1:if(!ut&&(Jo(r,t),n=r.stateNode,typeof n.componentWillUnmount=="function"))try{n.props=r.memoizedProps,n.state=r.memoizedState,n.componentWillUnmount()}catch(a){Le(r,t,a)}mn(e,t,r);break;case 21:mn(e,t,r);break;case 22:r.mode&1?(ut=(n=ut)||r.memoizedState!==null,mn(e,t,r),ut=n):mn(e,t,r);break;default:mn(e,t,r)}}function xg(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var r=e.stateNode;r===null&&(r=e.stateNode=new _P),t.forEach(function(n){var o=IP.bind(null,e,n);r.has(n)||(r.add(n),n.then(o,o))})}}function fr(e,t){var r=t.deletions;if(r!==null)for(var n=0;no&&(o=s),n&=~i}if(n=o,n=je()-n,n=(120>n?120:480>n?480:1080>n?1080:1920>n?1920:3e3>n?3e3:4320>n?4320:1960*RP(n/1960))-n,10e?16:e,Tn===null)var n=!1;else{if(e=Tn,Tn=null,Tu=0,ae&6)throw Error(D(331));var o=ae;for(ae|=4,j=e.current;j!==null;){var i=j,s=i.child;if(j.flags&16){var a=i.deletions;if(a!==null){for(var l=0;lje()-Ih?mo(e,0):Dh|=r),Ct(e,t)}function Ex(e,t){t===0&&(e.mode&1?(t=rl,rl<<=1,!(rl&130023424)&&(rl=4194304)):t=1);var r=mt();e=an(e,t),e!==null&&(Ca(e,t,r),Ct(e,r))}function DP(e){var t=e.memoizedState,r=0;t!==null&&(r=t.retryLane),Ex(e,r)}function IP(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(D(314))}n!==null&&n.delete(t),Ex(e,r)}var _x;_x=function(e,t,r){if(e!==null)if(e.memoizedProps!==t.pendingProps||wt.current)St=!0;else{if(!(e.lanes&r)&&!(t.flags&128))return St=!1,CP(e,t,r);St=!!(e.flags&131072)}else St=!1,Ae&&t.flags&1048576&&Rb(t,bu,t.index);switch(t.lanes=0,t.tag){case 2:var n=t.type;Dl(e,t),e=t.pendingProps;var o=ki(t,ct.current);mi(t,r),o=Rh(null,t,n,e,o,r);var i=$h();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,kt(n)?(i=!0,vu(t)):i=!1,t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,Ph(t),o.updater=nc,t.stateNode=o,o._reactInternals=t,Yf(t,n,e,r),t=Jf(null,t,n,!0,i,r)):(t.tag=0,Ae&&i&&yh(t),pt(null,t,o,r),t=t.child),t;case 16:n=t.elementType;e:{switch(Dl(e,t),e=t.pendingProps,o=n._init,n=o(n._payload),t.type=n,o=t.tag=FP(n),e=hr(n,e),o){case 0:t=Zf(null,t,n,e,r);break e;case 1:t=mg(null,t,n,e,r);break e;case 11:t=pg(null,t,n,e,r);break e;case 14:t=hg(null,t,n,hr(n.type,e),r);break e}throw Error(D(306,n,""))}return t;case 0:return n=t.type,o=t.pendingProps,o=t.elementType===n?o:hr(n,o),Zf(e,t,n,o,r);case 1:return n=t.type,o=t.pendingProps,o=t.elementType===n?o:hr(n,o),mg(e,t,n,o,r);case 3:e:{if(cx(t),e===null)throw Error(D(387));n=t.pendingProps,i=t.memoizedState,o=i.element,zb(e,t),wu(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=_i(Error(D(423)),t),t=gg(e,t,n,r,o);break e}else if(n!==o){o=_i(Error(D(424)),t),t=gg(e,t,n,r,o);break e}else for(Ot=Mn(t.stateNode.containerInfo.firstChild),Lt=t,Ae=!0,gr=null,r=jb(t,null,n,r),t.child=r;r;)r.flags=r.flags&-3|4096,r=r.sibling;else{if(Ci(),n===o){t=ln(e,t,r);break e}pt(e,t,n,r)}t=t.child}return t;case 5:return Fb(t),e===null&&Kf(t),n=t.type,o=t.pendingProps,i=e!==null?e.memoizedProps:null,s=o.children,Vf(n,o)?s=null:i!==null&&Vf(n,i)&&(t.flags|=32),ux(e,t),pt(e,t,s,r),t.child;case 6:return e===null&&Kf(t),null;case 13:return dx(e,t,r);case 4:return Eh(t,t.stateNode.containerInfo),n=t.pendingProps,e===null?t.child=Pi(t,null,n,r):pt(e,t,n,r),t.child;case 11:return n=t.type,o=t.pendingProps,o=t.elementType===n?o:hr(n,o),pg(e,t,n,o,r);case 7:return pt(e,t,t.pendingProps,r),t.child;case 8:return pt(e,t,t.pendingProps.children,r),t.child;case 12:return pt(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,be(xu,n._currentValue),n._currentValue=s,i!==null)if(Sr(i.value,s)){if(i.children===o.children&&!wt.current){t=ln(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=Zr(-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),Xf(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(D(341));s.lanes|=r,a=s.alternate,a!==null&&(a.lanes|=r),Xf(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}pt(e,t,o.children,r),t=t.child}return t;case 9:return o=t.type,n=t.pendingProps.children,mi(t,r),o=sr(o),n=n(o),t.flags|=1,pt(e,t,n,r),t.child;case 14:return n=t.type,o=hr(n,t.pendingProps),o=hr(n.type,o),hg(e,t,n,o,r);case 15:return ax(e,t,t.type,t.pendingProps,r);case 17:return n=t.type,o=t.pendingProps,o=t.elementType===n?o:hr(n,o),Dl(e,t),t.tag=1,kt(n)?(e=!0,vu(t)):e=!1,mi(t,r),Db(t,n,o),Yf(t,n,o,r),Jf(null,t,n,!0,e,r);case 19:return fx(e,t,r);case 22:return lx(e,t,r)}throw Error(D(156,t.tag))};function Tx(e,t){return eb(e,t)}function jP(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 tr(e,t,r,n){return new jP(e,t,r,n)}function Nh(e){return e=e.prototype,!(!e||!e.isReactComponent)}function FP(e){if(typeof e=="function")return Nh(e)?1:0;if(e!=null){if(e=e.$$typeof,e===sh)return 11;if(e===ah)return 14}return 2}function Dn(e,t){var r=e.alternate;return r===null?(r=tr(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 Fl(e,t,r,n,o,i){var s=2;if(n=e,typeof e=="function")Nh(e)&&(s=1);else if(typeof e=="string")s=5;else e:switch(e){case Wo:return go(r.children,o,i,t);case ih:s=8,o|=8;break;case xf:return e=tr(12,r,t,o|2),e.elementType=xf,e.lanes=i,e;case Sf:return e=tr(13,r,t,o),e.elementType=Sf,e.lanes=i,e;case wf:return e=tr(19,r,t,o),e.elementType=wf,e.lanes=i,e;case I1:return ac(r,o,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case L1:s=10;break e;case D1:s=9;break e;case sh:s=11;break e;case ah:s=14;break e;case Sn:s=16,n=null;break e}throw Error(D(130,e==null?e:typeof e,""))}return t=tr(s,r,t,o),t.elementType=e,t.type=n,t.lanes=i,t}function go(e,t,r,n){return e=tr(7,e,n,t),e.lanes=r,e}function ac(e,t,r,n){return e=tr(22,e,n,t),e.elementType=I1,e.lanes=r,e.stateNode={isHidden:!1},e}function $d(e,t,r){return e=tr(6,e,null,t),e.lanes=r,e}function Md(e,t,r){return t=tr(4,e.children!==null?e.children:[],e.key,t),t.lanes=r,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function BP(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=fd(0),this.expirationTimes=fd(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=fd(0),this.identifierPrefix=n,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function Vh(e,t,r,n,o,i,s,a,l){return e=new BP(e,t,r,a,l),t===1?(t=1,i===!0&&(t|=8)):t=0,i=tr(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:n,isDehydrated:r,cache:null,transitions:null,pendingSuspenseBoundaries:null},Ph(i),e}function NP(e,t,r){var n=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Mx)}catch(e){console.error(e)}}Mx(),R1.exports=Nt;var Gh=R1.exports,Tg=Gh;yf.createRoot=Tg.createRoot,yf.hydrateRoot=Tg.hydrateRoot;function GP(e){if(e.sheet)return e.sheet;for(var t=0;t0?tt(Hi,--Tt):0,Ai--,Ne===10&&(Ai=1,pc--),Ne}function Dt(){return Ne=Tt2||ua(Ne)>3?"":" "}function iE(e,t){for(;--t&&Dt()&&!(Ne<48||Ne>102||Ne>57&&Ne<65||Ne>70&&Ne<97););return Ta(e,Bl()+(t<6&&Mr()==32&&Dt()==32))}function fp(e){for(;Dt();)switch(Ne){case e:return Tt;case 34:case 39:e!==34&&e!==39&&fp(Ne);break;case 40:e===41&&fp(e);break;case 92:Dt();break}return Tt}function sE(e,t){for(;Dt()&&e+Ne!==47+10;)if(e+Ne===42+42&&Mr()===47)break;return"/*"+Ta(t,Tt-1)+"*"+fc(e===47?e:Dt())}function aE(e){for(;!ua(Mr());)Dt();return Ta(e,Tt)}function lE(e){return jx(Vl("",null,null,null,[""],e=Ix(e),0,[0],e))}function Vl(e,t,r,n,o,i,s,a,l){for(var u=0,c=0,d=s,f=0,p=0,m=0,y=1,w=1,g=1,h=0,v="",S=o,_=i,T=n,E=v;w;)switch(m=h,h=Dt()){case 40:if(m!=108&&tt(E,d-1)==58){dp(E+=fe(Nl(h),"&","&\f"),"&\f")!=-1&&(g=-1);break}case 34:case 39:case 91:E+=Nl(h);break;case 9:case 10:case 13:case 32:E+=oE(m);break;case 92:E+=iE(Bl()-1,7);continue;case 47:switch(Mr()){case 42:case 47:hl(uE(sE(Dt(),Bl()),t,r),l);break;default:E+="/"}break;case 123*y:a[u++]=_r(E)*g;case 125*y:case 59:case 0:switch(h){case 0:case 125:w=0;case 59+c:g==-1&&(E=fe(E,/\f/g,"")),p>0&&_r(E)-d&&hl(p>32?Rg(E+";",n,r,d-1):Rg(fe(E," ","")+";",n,r,d-2),l);break;case 59:E+=";";default:if(hl(T=Ag(E,t,r,u,c,o,a,v,S=[],_=[],d),i),h===123)if(c===0)Vl(E,t,T,T,S,i,d,a,_);else switch(f===99&&tt(E,3)===110?100:f){case 100:case 108:case 109:case 115:Vl(e,T,T,n&&hl(Ag(e,T,T,0,0,o,a,v,o,S=[],d),_),o,_,d,a,n?S:_);break;default:Vl(E,T,T,T,[""],_,0,a,_)}}u=c=p=0,y=g=1,v=E="",d=s;break;case 58:d=1+_r(E),p=m;default:if(y<1){if(h==123)--y;else if(h==125&&y++==0&&nE()==125)continue}switch(E+=fc(h),h*y){case 38:g=c>0?1:(E+="\f",-1);break;case 44:a[u++]=(_r(E)-1)*g,g=1;break;case 64:Mr()===45&&(E+=Nl(Dt())),f=Mr(),c=d=_r(v=E+=aE(Bl())),h++;break;case 45:m===45&&_r(E)==2&&(y=0)}}return i}function Ag(e,t,r,n,o,i,s,a,l,u,c){for(var d=o-1,f=o===0?i:[""],p=qh(f),m=0,y=0,w=0;m0?f[g]+" "+h:fe(h,/&\f/g,f[g])))&&(l[w++]=v);return hc(e,t,r,o===0?Kh:a,l,u,c)}function uE(e,t,r){return hc(e,t,r,Ox,fc(rE()),la(e,2,-2),0)}function Rg(e,t,r,n){return hc(e,t,r,Xh,la(e,0,n),la(e,n+1,-1),n)}function vi(e,t){for(var r="",n=qh(e),o=0;o6)switch(tt(e,t+1)){case 109:if(tt(e,t+4)!==45)break;case 102:return fe(e,/(.+:)(.+)-([^]+)/,"$1"+de+"$2-$3$1"+$u+(tt(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~dp(e,"stretch")?Bx(fe(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(tt(e,t+1)!==115)break;case 6444:switch(tt(e,_r(e)-3-(~dp(e,"!important")&&10))){case 107:return fe(e,":",":"+de)+e;case 101:return fe(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+de+(tt(e,14)===45?"inline-":"")+"box$3$1"+de+"$2$3$1"+at+"$2box$3")+e}break;case 5936:switch(tt(e,t+11)){case 114:return de+e+at+fe(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return de+e+at+fe(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return de+e+at+fe(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return de+e+at+e+e}return e}var yE=function(t,r,n,o){if(t.length>-1&&!t.return)switch(t.type){case Xh:t.return=Bx(t.value,t.length);break;case zx:return vi([os(t,{value:fe(t.value,"@","@"+de)})],o);case Kh:if(t.length)return tE(t.props,function(i){switch(eE(i,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return vi([os(t,{props:[fe(i,/:(read-\w+)/,":"+$u+"$1")]})],o);case"::placeholder":return vi([os(t,{props:[fe(i,/:(plac\w+)/,":"+de+"input-$1")]}),os(t,{props:[fe(i,/:(plac\w+)/,":"+$u+"$1")]}),os(t,{props:[fe(i,/:(plac\w+)/,at+"input-$1")]})],o)}return""})}},bE=[yE],xE=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(y){var w=y.getAttribute("data-emotion");w.indexOf(" ")!==-1&&(document.head.appendChild(y),y.setAttribute("data-s",""))})}var o=t.stylisPlugins||bE,i={},s,a=[];s=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+r+' "]'),function(y){for(var w=y.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 ME={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},OE=/[A-Z]|^ms/g,zE=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Kx=function(t){return t.charCodeAt(1)===45},Og=function(t){return t!=null&&typeof t!="boolean"},Od=Fx(function(e){return Kx(e)?e:e.replace(OE,"-$&").toLowerCase()}),zg=function(t,r){switch(t){case"animation":case"animationName":if(typeof r=="string")return r.replace(zE,function(n,o,i){return Tr={name:o,styles:i,next:Tr},o})}return ME[t]!==1&&!Kx(t)&&typeof r=="number"&&r!==0?r+"px":r};function ca(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 Tr={name:r.name,styles:r.styles,next:Tr},r.name;if(r.styles!==void 0){var n=r.next;if(n!==void 0)for(;n!==void 0;)Tr={name:n.name,styles:n.styles,next:Tr},n=n.next;var o=r.styles+";";return o}return LE(e,t,r)}case"function":{if(e!==void 0){var i=Tr,s=r(e);return Tr=i,ca(e,t,s)}break}}if(t==null)return r;var a=t[r];return a!==void 0?a:r}function LE(e,t,r){var n="";if(Array.isArray(r))for(var o=0;ok.jsx(Pc,{styles:Zx}),HE=({scope:e=""})=>k.jsx(Pc,{styles:Qx` - html { - line-height: 1.5; - -webkit-text-size-adjust: 100%; - font-family: system-ui, sans-serif; - -webkit-font-smoothing: antialiased; - text-rendering: optimizeLegibility; - -moz-osx-font-smoothing: grayscale; - touch-action: manipulation; - } - - body { - position: relative; - min-height: 100%; - margin: 0; - font-feature-settings: "kern"; - } - - ${e} :where(*, *::before, *::after) { - border-width: 0; - border-style: solid; - box-sizing: border-box; - word-wrap: break-word; - } - - main { - display: block; - } - - ${e} hr { - border-top-width: 1px; - box-sizing: content-box; - height: 0; - overflow: visible; - } - - ${e} :where(pre, code, kbd,samp) { - font-family: SFMono-Regular, Menlo, Monaco, Consolas, monospace; - font-size: 1em; - } - - ${e} a { - background-color: transparent; - color: inherit; - text-decoration: inherit; - } - - ${e} abbr[title] { - border-bottom: none; - text-decoration: underline; - -webkit-text-decoration: underline dotted; - text-decoration: underline dotted; - } - - ${e} :where(b, strong) { - font-weight: bold; - } - - ${e} small { - font-size: 80%; - } - - ${e} :where(sub,sup) { - font-size: 75%; - line-height: 0; - position: relative; - vertical-align: baseline; - } - - ${e} sub { - bottom: -0.25em; - } - - ${e} sup { - top: -0.5em; - } - - ${e} img { - border-style: none; - } - - ${e} :where(button, input, optgroup, select, textarea) { - font-family: inherit; - font-size: 100%; - line-height: 1.15; - margin: 0; - } - - ${e} :where(button, input) { - overflow: visible; - } - - ${e} :where(button, select) { - text-transform: none; - } - - ${e} :where( - button::-moz-focus-inner, - [type="button"]::-moz-focus-inner, - [type="reset"]::-moz-focus-inner, - [type="submit"]::-moz-focus-inner - ) { - border-style: none; - padding: 0; - } - - ${e} fieldset { - padding: 0.35em 0.75em 0.625em; - } - - ${e} legend { - box-sizing: border-box; - color: inherit; - display: table; - max-width: 100%; - padding: 0; - white-space: normal; - } - - ${e} progress { - vertical-align: baseline; - } - - ${e} textarea { - overflow: auto; - } - - ${e} :where([type="checkbox"], [type="radio"]) { - box-sizing: border-box; - padding: 0; - } - - ${e} input[type="number"]::-webkit-inner-spin-button, - ${e} input[type="number"]::-webkit-outer-spin-button { - -webkit-appearance: none !important; - } - - ${e} input[type="number"] { - -moz-appearance: textfield; - } - - ${e} input[type="search"] { - -webkit-appearance: textfield; - outline-offset: -2px; - } - - ${e} input[type="search"]::-webkit-search-decoration { - -webkit-appearance: none !important; - } - - ${e} ::-webkit-file-upload-button { - -webkit-appearance: button; - font: inherit; - } - - ${e} details { - display: block; - } - - ${e} summary { - display: list-item; - } - - template { - display: none; - } - - [hidden] { - display: none !important; - } - - ${e} :where( - blockquote, - dl, - dd, - h1, - h2, - h3, - h4, - h5, - h6, - hr, - figure, - p, - pre - ) { - margin: 0; - } - - ${e} button { - background: transparent; - padding: 0; - } - - ${e} fieldset { - margin: 0; - padding: 0; - } - - ${e} :where(ol, ul) { - margin: 0; - padding: 0; - } - - ${e} textarea { - resize: vertical; - } - - ${e} :where(button, [role="button"]) { - cursor: pointer; - } - - ${e} button::-moz-focus-inner { - border: 0 !important; - } - - ${e} table { - border-collapse: collapse; - } - - ${e} :where(h1, h2, h3, h4, h5, h6) { - font-size: inherit; - font-weight: inherit; - } - - ${e} :where(button, input, optgroup, select, textarea) { - padding: 0; - line-height: inherit; - color: inherit; - } - - ${e} :where(img, svg, video, canvas, audio, iframe, embed, object) { - display: block; - } - - ${e} :where(img, video) { - max-width: 100%; - height: auto; - } - - [data-js-focus-visible] - :focus:not([data-focus-visible-added]):not( - [data-focus-visible-disabled] - ) { - outline: none; - box-shadow: none; - } - - ${e} select::-ms-expand { - display: none; - } - - ${Zx} - `});function WE(e,t){return`${e} returned \`undefined\`. Seems you forgot to wrap component within ${t}`}function dr(e={}){const{name:t,strict:r=!0,hookName:n="useContext",providerName:o="Provider",errorMessage:i,defaultValue:s}=e,a=x.createContext(s);a.displayName=t;function l(){var u;const c=x.useContext(a);if(!c&&r){const d=new Error(i??WE(n,o));throw d.name="ContextError",(u=Error.captureStackTrace)==null||u.call(Error,d,l),d}return c}return[a.Provider,l,a]}var[UE,GE]=dr({strict:!1,name:"PortalManagerContext"});function Jx(e){const{children:t,zIndex:r}=e;return k.jsx(UE,{value:{zIndex:r},children:t})}Jx.displayName="PortalManager";var Jr=globalThis!=null&&globalThis.document?x.useLayoutEffect:x.useEffect,[eS,KE]=dr({strict:!1,name:"PortalContext"}),tm="chakra-portal",XE=".chakra-portal",qE=e=>k.jsx("div",{className:"chakra-portal-zIndex",style:{position:"absolute",zIndex:e.zIndex,top:0,left:0,right:0},children:e.children}),YE=e=>{const{appendToParentPortal:t,children:r}=e,[n,o]=x.useState(null),i=x.useRef(null),[,s]=x.useState({});x.useEffect(()=>s({}),[]);const a=KE(),l=GE();Jr(()=>{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=tm,d.appendChild(i.current),s({});const f=i.current;return()=>{d.contains(f)&&d.removeChild(f)}},[n]);const u=l!=null&&l.zIndex?k.jsx(qE,{zIndex:l==null?void 0:l.zIndex,children:r}):r;return i.current?Gh.createPortal(k.jsx(eS,{value:i.current,children:u}),i.current):k.jsx("span",{ref:c=>{c&&o(c)}})},QE=e=>{const{children:t,containerRef:r,appendToParentPortal:n}=e,o=r.current,i=o??(typeof window<"u"?document.body:void 0),s=x.useMemo(()=>{const l=o==null?void 0:o.ownerDocument.createElement("div");return l&&(l.className=tm),l},[o]),[,a]=x.useState({});return Jr(()=>a({}),[]),Jr(()=>{if(!(!s||!i))return i.appendChild(s),()=>{i.removeChild(s)}},[s,i]),i&&s?Gh.createPortal(k.jsx(eS,{value:n?s:null,children:t}),s):null};function Ec(e){const t={appendToParentPortal:!0,...e},{containerRef:r,...n}=t;return r?k.jsx(QE,{containerRef:r,...n}):k.jsx(YE,{...n})}Ec.className=tm;Ec.selector=XE;Ec.displayName="Portal";function Ro(){const e=x.useContext(da);if(!e)throw Error("useTheme: `theme` is undefined. Seems you forgot to wrap your app in `` or ``");return e}var rm=x.createContext({});rm.displayName="ColorModeContext";function _c(){const e=x.useContext(rm);if(e===void 0)throw new Error("useColorMode must be used within a ColorModeProvider");return e}var ml={light:"chakra-ui-light",dark:"chakra-ui-dark"};function ZE(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?ml.dark:ml.light),document.body.classList.remove(n?ml.light:ml.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 JE="chakra-ui-color-mode";function e4(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 t4=e4(JE),Ig=()=>{};function jg(e,t){return e.type==="cookie"&&e.ssr?e.get(t):t}function tS(e){const{value:t,children:r,options:{useSystemColorMode:n,initialColorMode:o,disableTransitionOnChange:i}={},colorModeManager:s=t4}=e,a=o==="dark"?"dark":"light",[l,u]=x.useState(()=>jg(s,a)),[c,d]=x.useState(()=>jg(s)),{getSystemTheme:f,setClassName:p,setDataset:m,addListener:y}=x.useMemo(()=>ZE({preventTransition:i}),[i]),w=o==="system"&&!l?c:l,g=x.useCallback(S=>{const _=S==="system"?f():S;u(_),p(_==="dark"),m(_),s.set(_)},[s,f,p,m]);Jr(()=>{o==="system"&&d(f())},[]),x.useEffect(()=>{const S=s.get();if(S){g(S);return}if(o==="system"){g("system");return}g(a)},[s,a,o,g]);const h=x.useCallback(()=>{g(w==="dark"?"light":"dark")},[w,g]);x.useEffect(()=>{if(n)return y(g)},[n,y,g]);const v=x.useMemo(()=>({colorMode:t??w,toggleColorMode:t?Ig:h,setColorMode:t?Ig:g,forced:t!==void 0}),[w,h,g,t]);return k.jsx(rm.Provider,{value:v,children:r})}tS.displayName="ColorModeProvider";var r4=new Set(["dark","light","system"]);function n4(e){let t=e;return r4.has(t)||(t="light"),t}function o4(e={}){const{initialColorMode:t="light",type:r="localStorage",storageKey:n="chakra-ui-color-mode"}=e,o=n4(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 i4(e={}){const{nonce:t}=e;return k.jsx("script",{id:"chakra-script",nonce:t,dangerouslySetInnerHTML:{__html:o4(e)}})}function s4(){const e=_c(),t=Ro();return{...e,theme:t}}function a4(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 l4(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 u4(e,t,r){const n=Ro();return rS(e,t,r)(n)}function rS(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 a4(i,l,(c=s[u])!=null?c:l);const f=`${e}.${l}`;return l4(i,f,(d=s[u])!=null?d:l)});return Array.isArray(t)?a:a[0]}}var Ee=(...e)=>e.filter(Boolean).join(" ");function Pt(e){const t=typeof e;return e!=null&&(t==="object"||t==="function")&&!Array.isArray(e)}function qr(e,...t){return c4(e)?e(...t):e}var c4=e=>typeof e=="function",le=e=>e?"":void 0;function lt(...e){return function(r){e.some(n=>(n==null||n(r),r==null?void 0:r.defaultPrevented))}}function d4(...e){return function(r){e.forEach(n=>{n==null||n(r)})}}var Ou={exports:{}};Ou.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]",y="[object Map]",w="[object Number]",g="[object Null]",h="[object Object]",v="[object Proxy]",S="[object RegExp]",_="[object Set]",T="[object String]",E="[object Undefined]",A="[object WeakMap]",O="[object ArrayBuffer]",M="[object DataView]",F="[object Float32Array]",q="[object Float64Array]",X="[object Int8Array]",Y="[object Int16Array]",J="[object Int32Array]",Z="[object Uint8Array]",z="[object Uint8ClampedArray]",L="[object Uint16Array]",B="[object Uint32Array]",W=/[\\^$.*+?()[\]{}|]/g,V=/^\[object .+?Constructor\]$/,ee=/^(?:0|[1-9]\d*)$/,N={};N[F]=N[q]=N[X]=N[Y]=N[J]=N[Z]=N[z]=N[L]=N[B]=!0,N[a]=N[l]=N[O]=N[c]=N[M]=N[d]=N[f]=N[p]=N[y]=N[w]=N[h]=N[S]=N[_]=N[T]=N[A]=!1;var G=typeof Ya=="object"&&Ya&&Ya.Object===Object&&Ya,we=typeof self=="object"&&self&&self.Object===Object&&self,he=G||we||Function("return this")(),We=t&&!t.nodeType&&t,Ie=We&&!0&&e&&!e.nodeType&&e,Ut=Ie&&Ie.exports===We,Gt=Ut&&G.process,ot=function(){try{var b=Ie&&Ie.require&&Ie.require("util").types;return b||Gt&&Gt.binding&&Gt.binding("util")}catch{}}(),Fr=ot&&ot.isTypedArray;function Br(b,C,R){switch(R.length){case 0:return b.call(C);case 1:return b.call(C,R[0]);case 2:return b.call(C,R[0],R[1]);case 3:return b.call(C,R[0],R[1],R[2])}return b.apply(C,R)}function Va(b,C){for(var R=-1,I=Array(b);++R-1}function $k(b,C){var R=this.__data__,I=Ga(R,b);return I<0?(++this.size,R.push([b,C])):R[I][1]=C,this}Nr.prototype.clear=_k,Nr.prototype.delete=Tk,Nr.prototype.get=Ak,Nr.prototype.has=Rk,Nr.prototype.set=$k;function Do(b){var C=-1,R=b==null?0:b.length;for(this.clear();++C1?R[ie-1]:void 0,_e=ie>2?R[2]:void 0;for(ye=b.length>3&&typeof ye=="function"?(ie--,ye):void 0,_e&&sC(R[0],R[1],_e)&&(ye=ie<3?void 0:ye,ie=1),C=Object(C);++I-1&&b%1==0&&b0){if(++C>=o)return arguments[0]}else C=0;return b.apply(void 0,arguments)}}function hC(b){if(b!=null){try{return Qn.call(b)}catch{}try{return b+""}catch{}}return""}function qa(b,C){return b===C||b!==b&&C!==C}var td=u0(function(){return arguments}())?u0:function(b){return Xi(b)&&Xt.call(b,"callee")&&!vk.call(b,"callee")},rd=Array.isArray;function nd(b){return b!=null&&h0(b.length)&&!od(b)}function mC(b){return Xi(b)&&nd(b)}var p0=bk||xC;function od(b){if(!to(b))return!1;var C=Ka(b);return C==p||C==m||C==u||C==v}function h0(b){return typeof b=="number"&&b>-1&&b%1==0&&b<=s}function to(b){var C=typeof b;return b!=null&&(C=="object"||C=="function")}function Xi(b){return b!=null&&typeof b=="object"}function gC(b){if(!Xi(b)||Ka(b)!=h)return!1;var C=i0(b);if(C===null)return!0;var R=Xt.call(C,"constructor")&&C.constructor;return typeof R=="function"&&R instanceof R&&Qn.call(R)==Ha}var m0=Fr?te(Fr):Gk;function vC(b){return tC(b,g0(b))}function g0(b){return nd(b)?Vk(b,!0):Kk(b)}var yC=rC(function(b,C,R,I){c0(b,C,R,I)});function bC(b){return function(){return b}}function v0(b){return b}function xC(){return!1}e.exports=yC})(Ou,Ou.exports);var f4=Ou.exports;const rr=Qp(f4);var p4=e=>/!(important)?$/.test(e),Fg=e=>typeof e=="string"?e.replace(/!(important)?$/,"").trim():e,h4=(e,t)=>r=>{const n=String(t),o=p4(n),i=Fg(n),s=e?`${e}.${i}`:i;let a=Pt(r.__cssMap)&&s in r.__cssMap?r.__cssMap[s].varRef:t;return a=Fg(a),o?`${a} !important`:a};function nm(e){const{scale:t,transform:r,compose:n}=e;return(i,s)=>{var a;const l=h4(t,i)(s);let u=(a=r==null?void 0:r(l,s))!=null?a:l;return n&&(u=n(u,s)),u}}var gl=(...e)=>t=>e.reduce((r,n)=>n(r),t);function Yt(e,t){return r=>{const n={property:r,scale:e};return n.transform=nm({scale:e,transform:t}),n}}var m4=({rtl:e,ltr:t})=>r=>r.direction==="rtl"?e:t;function g4(e){const{property:t,scale:r,transform:n}=e;return{scale:r,property:m4(t),transform:r?nm({scale:r,compose:n}):n}}var nS=["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 v4(){return["translateX(var(--chakra-translate-x, 0))","translateY(var(--chakra-translate-y, 0))",...nS].join(" ")}function y4(){return["translate3d(var(--chakra-translate-x, 0), var(--chakra-translate-y, 0), 0)",...nS].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(" ")},x4={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 S4(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 w4={"row-reverse":{space:"--chakra-space-x-reverse",divide:"--chakra-divide-x-reverse"},"column-reverse":{space:"--chakra-space-y-reverse",divide:"--chakra-divide-y-reverse"}},pp={"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"},k4=new Set(Object.values(pp)),hp=new Set(["none","-moz-initial","inherit","initial","revert","unset"]),C4=e=>e.trim();function P4(e,t){if(e==null||hp.has(e))return e;if(!(mp(e)||hp.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(C4).filter(Boolean);if((u==null?void 0:u.length)===0)return e;const c=l in pp?pp[l]:l;u.unshift(c);const d=u.map(f=>{if(k4.has(f))return f;const p=f.indexOf(" "),[m,y]=p!==-1?[f.substr(0,p),f.substr(p+1)]:[f],w=mp(y)?y:y&&y.split(" "),g=`colors.${m}`,h=g in t.__cssMap?t.__cssMap[g].varRef:m;return w?[h,...Array.isArray(w)?w:[w]].join(" "):h});return`${a}(${d.join(", ")})`}var mp=e=>typeof e=="string"&&e.includes("(")&&e.includes(")"),E4=(e,t)=>P4(e,t??{});function _4(e){return/^var\(--.+\)$/.test(e)}var T4=e=>{const t=parseFloat(e.toString()),r=e.toString().replace(String(t),"");return{unitless:!r,value:t,unit:r}},kr=e=>t=>`${e}(${t})`,ue={filter(e){return e!=="auto"?e:b4},backdropFilter(e){return e!=="auto"?e:x4},ring(e){return S4(ue.px(e))},bgClip(e){return e==="text"?{color:"transparent",backgroundClip:"text"}:{backgroundClip:e}},transform(e){return e==="auto"?v4():e==="auto-gpu"?y4():e},vh(e){return e==="$100vh"?"var(--chakra-vh)":e},px(e){if(e==null)return e;const{unitless:t}=T4(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(_4(e)||e==null)return e;const t=typeof e=="string"&&!e.endsWith("deg");return typeof e=="number"||t?`${e}deg`:e},gradient:E4,blur:kr("blur"),opacity:kr("opacity"),brightness:kr("brightness"),contrast:kr("contrast"),dropShadow:kr("drop-shadow"),grayscale:kr("grayscale"),hueRotate:kr("hue-rotate"),invert:kr("invert"),saturate:kr("saturate"),sepia:kr("sepia"),bgImage(e){return e==null||mp(e)||hp.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=w4[e])!=null?t:{},o={flexDirection:e};return r&&(o[r]=1),n&&(o[n]=1),o}},P={borderWidths:Yt("borderWidths"),borderStyles:Yt("borderStyles"),colors:Yt("colors"),borders:Yt("borders"),gradients:Yt("gradients",ue.gradient),radii:Yt("radii",ue.px),space:Yt("space",gl(ue.vh,ue.px)),spaceT:Yt("space",gl(ue.vh,ue.px)),degreeT(e){return{property:e,transform:ue.degree}},prop(e,t,r){return{property:e,scale:t,...t&&{transform:nm({scale:t,transform:r})}}},propT(e,t){return{property:e,transform:t}},sizes:Yt("sizes",gl(ue.vh,ue.px)),sizesT:Yt("sizes",gl(ue.vh,ue.fraction)),shadows:Yt("shadows"),logical:g4,blur:Yt("blur",ue.blur)},Hl={background:P.colors("background"),backgroundColor:P.colors("backgroundColor"),backgroundImage:P.gradients("backgroundImage"),backgroundSize:!0,backgroundPosition:!0,backgroundRepeat:!0,backgroundAttachment:!0,backgroundClip:{transform:ue.bgClip},bgSize:P.prop("backgroundSize"),bgPosition:P.prop("backgroundPosition"),bg:P.colors("background"),bgColor:P.colors("backgroundColor"),bgPos:P.prop("backgroundPosition"),bgRepeat:P.prop("backgroundRepeat"),bgAttachment:P.prop("backgroundAttachment"),bgGradient:P.gradients("backgroundImage"),bgClip:{transform:ue.bgClip}};Object.assign(Hl,{bgImage:Hl.backgroundImage,bgImg:Hl.backgroundImage});var ce={border:P.borders("border"),borderWidth:P.borderWidths("borderWidth"),borderStyle:P.borderStyles("borderStyle"),borderColor:P.colors("borderColor"),borderRadius:P.radii("borderRadius"),borderTop:P.borders("borderTop"),borderBlockStart:P.borders("borderBlockStart"),borderTopLeftRadius:P.radii("borderTopLeftRadius"),borderStartStartRadius:P.logical({scale:"radii",property:{ltr:"borderTopLeftRadius",rtl:"borderTopRightRadius"}}),borderEndStartRadius:P.logical({scale:"radii",property:{ltr:"borderBottomLeftRadius",rtl:"borderBottomRightRadius"}}),borderTopRightRadius:P.radii("borderTopRightRadius"),borderStartEndRadius:P.logical({scale:"radii",property:{ltr:"borderTopRightRadius",rtl:"borderTopLeftRadius"}}),borderEndEndRadius:P.logical({scale:"radii",property:{ltr:"borderBottomRightRadius",rtl:"borderBottomLeftRadius"}}),borderRight:P.borders("borderRight"),borderInlineEnd:P.borders("borderInlineEnd"),borderBottom:P.borders("borderBottom"),borderBlockEnd:P.borders("borderBlockEnd"),borderBottomLeftRadius:P.radii("borderBottomLeftRadius"),borderBottomRightRadius:P.radii("borderBottomRightRadius"),borderLeft:P.borders("borderLeft"),borderInlineStart:{property:"borderInlineStart",scale:"borders"},borderInlineStartRadius:P.logical({scale:"radii",property:{ltr:["borderTopLeftRadius","borderBottomLeftRadius"],rtl:["borderTopRightRadius","borderBottomRightRadius"]}}),borderInlineEndRadius:P.logical({scale:"radii",property:{ltr:["borderTopRightRadius","borderBottomRightRadius"],rtl:["borderTopLeftRadius","borderBottomLeftRadius"]}}),borderX:P.borders(["borderLeft","borderRight"]),borderInline:P.borders("borderInline"),borderY:P.borders(["borderTop","borderBottom"]),borderBlock:P.borders("borderBlock"),borderTopWidth:P.borderWidths("borderTopWidth"),borderBlockStartWidth:P.borderWidths("borderBlockStartWidth"),borderTopColor:P.colors("borderTopColor"),borderBlockStartColor:P.colors("borderBlockStartColor"),borderTopStyle:P.borderStyles("borderTopStyle"),borderBlockStartStyle:P.borderStyles("borderBlockStartStyle"),borderBottomWidth:P.borderWidths("borderBottomWidth"),borderBlockEndWidth:P.borderWidths("borderBlockEndWidth"),borderBottomColor:P.colors("borderBottomColor"),borderBlockEndColor:P.colors("borderBlockEndColor"),borderBottomStyle:P.borderStyles("borderBottomStyle"),borderBlockEndStyle:P.borderStyles("borderBlockEndStyle"),borderLeftWidth:P.borderWidths("borderLeftWidth"),borderInlineStartWidth:P.borderWidths("borderInlineStartWidth"),borderLeftColor:P.colors("borderLeftColor"),borderInlineStartColor:P.colors("borderInlineStartColor"),borderLeftStyle:P.borderStyles("borderLeftStyle"),borderInlineStartStyle:P.borderStyles("borderInlineStartStyle"),borderRightWidth:P.borderWidths("borderRightWidth"),borderInlineEndWidth:P.borderWidths("borderInlineEndWidth"),borderRightColor:P.colors("borderRightColor"),borderInlineEndColor:P.colors("borderInlineEndColor"),borderRightStyle:P.borderStyles("borderRightStyle"),borderInlineEndStyle:P.borderStyles("borderInlineEndStyle"),borderTopRadius:P.radii(["borderTopLeftRadius","borderTopRightRadius"]),borderBottomRadius:P.radii(["borderBottomLeftRadius","borderBottomRightRadius"]),borderLeftRadius:P.radii(["borderTopLeftRadius","borderBottomLeftRadius"]),borderRightRadius:P.radii(["borderTopRightRadius","borderBottomRightRadius"])};Object.assign(ce,{rounded:ce.borderRadius,roundedTop:ce.borderTopRadius,roundedTopLeft:ce.borderTopLeftRadius,roundedTopRight:ce.borderTopRightRadius,roundedTopStart:ce.borderStartStartRadius,roundedTopEnd:ce.borderStartEndRadius,roundedBottom:ce.borderBottomRadius,roundedBottomLeft:ce.borderBottomLeftRadius,roundedBottomRight:ce.borderBottomRightRadius,roundedBottomStart:ce.borderEndStartRadius,roundedBottomEnd:ce.borderEndEndRadius,roundedLeft:ce.borderLeftRadius,roundedRight:ce.borderRightRadius,roundedStart:ce.borderInlineStartRadius,roundedEnd:ce.borderInlineEndRadius,borderStart:ce.borderInlineStart,borderEnd:ce.borderInlineEnd,borderTopStartRadius:ce.borderStartStartRadius,borderTopEndRadius:ce.borderStartEndRadius,borderBottomStartRadius:ce.borderEndStartRadius,borderBottomEndRadius:ce.borderEndEndRadius,borderStartRadius:ce.borderInlineStartRadius,borderEndRadius:ce.borderInlineEndRadius,borderStartWidth:ce.borderInlineStartWidth,borderEndWidth:ce.borderInlineEndWidth,borderStartColor:ce.borderInlineStartColor,borderEndColor:ce.borderInlineEndColor,borderStartStyle:ce.borderInlineStartStyle,borderEndStyle:ce.borderInlineEndStyle});var A4={color:P.colors("color"),textColor:P.colors("color"),fill:P.colors("fill"),stroke:P.colors("stroke")},gp={boxShadow:P.shadows("boxShadow"),mixBlendMode:!0,blendMode:P.prop("mixBlendMode"),backgroundBlendMode:!0,bgBlendMode:P.prop("backgroundBlendMode"),opacity:!0};Object.assign(gp,{shadow:gp.boxShadow});var R4={filter:{transform:ue.filter},blur:P.blur("--chakra-blur"),brightness:P.propT("--chakra-brightness",ue.brightness),contrast:P.propT("--chakra-contrast",ue.contrast),hueRotate:P.degreeT("--chakra-hue-rotate"),invert:P.propT("--chakra-invert",ue.invert),saturate:P.propT("--chakra-saturate",ue.saturate),dropShadow:P.propT("--chakra-drop-shadow",ue.dropShadow),backdropFilter:{transform:ue.backdropFilter},backdropBlur:P.blur("--chakra-backdrop-blur"),backdropBrightness:P.propT("--chakra-backdrop-brightness",ue.brightness),backdropContrast:P.propT("--chakra-backdrop-contrast",ue.contrast),backdropHueRotate:P.degreeT("--chakra-backdrop-hue-rotate"),backdropInvert:P.propT("--chakra-backdrop-invert",ue.invert),backdropSaturate:P.propT("--chakra-backdrop-saturate",ue.saturate)},zu={alignItems:!0,alignContent:!0,justifyItems:!0,justifyContent:!0,flexWrap:!0,flexDirection:{transform:ue.flexDirection},flex:!0,flexFlow:!0,flexGrow:!0,flexShrink:!0,flexBasis:P.sizes("flexBasis"),justifySelf:!0,alignSelf:!0,order:!0,placeItems:!0,placeContent:!0,placeSelf:!0,gap:P.space("gap"),rowGap:P.space("rowGap"),columnGap:P.space("columnGap")};Object.assign(zu,{flexDir:zu.flexDirection});var oS={gridGap:P.space("gridGap"),gridColumnGap:P.space("gridColumnGap"),gridRowGap:P.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},$4={appearance:!0,cursor:!0,resize:!0,userSelect:!0,pointerEvents:!0,outline:{transform:ue.outline},outlineOffset:!0,outlineColor:P.colors("outlineColor")},Zt={width:P.sizesT("width"),inlineSize:P.sizesT("inlineSize"),height:P.sizes("height"),blockSize:P.sizes("blockSize"),boxSize:P.sizes(["width","height"]),minWidth:P.sizes("minWidth"),minInlineSize:P.sizes("minInlineSize"),minHeight:P.sizes("minHeight"),minBlockSize:P.sizes("minBlockSize"),maxWidth:P.sizes("maxWidth"),maxInlineSize:P.sizes("maxInlineSize"),maxHeight:P.sizes("maxHeight"),maxBlockSize:P.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:P.propT("float",ue.float),objectFit:!0,objectPosition:!0,visibility:!0,isolation:!0};Object.assign(Zt,{w:Zt.width,h:Zt.height,minW:Zt.minWidth,maxW:Zt.maxWidth,minH:Zt.minHeight,maxH:Zt.maxHeight,overscroll:Zt.overscrollBehavior,overscrollX:Zt.overscrollBehaviorX,overscrollY:Zt.overscrollBehaviorY});var M4={listStyleType:!0,listStylePosition:!0,listStylePos:P.prop("listStylePosition"),listStyleImage:!0,listStyleImg:P.prop("listStyleImage")};function O4(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}},L4=z4(O4),D4={border:"0px",clip:"rect(0, 0, 0, 0)",width:"1px",height:"1px",margin:"-1px",padding:"0px",overflow:"hidden",whiteSpace:"nowrap",position:"absolute"},I4={position:"static",width:"auto",height:"auto",clip:"auto",padding:"0",margin:"0",overflow:"visible",whiteSpace:"normal"},zd=(e,t,r)=>{const n={},o=L4(e,t,{});for(const i in o)i in r&&r[i]!=null||(n[i]=o[i]);return n},j4={srOnly:{transform(e){return e===!0?D4:e==="focusable"?I4:{}}},layerStyle:{processResult:!0,transform:(e,t,r)=>zd(t,`layerStyles.${e}`,r)},textStyle:{processResult:!0,transform:(e,t,r)=>zd(t,`textStyles.${e}`,r)},apply:{processResult:!0,transform:(e,t,r)=>zd(t,e,r)}},Ms={position:!0,pos:P.prop("position"),zIndex:P.prop("zIndex","zIndices"),inset:P.spaceT("inset"),insetX:P.spaceT(["left","right"]),insetInline:P.spaceT("insetInline"),insetY:P.spaceT(["top","bottom"]),insetBlock:P.spaceT("insetBlock"),top:P.spaceT("top"),insetBlockStart:P.spaceT("insetBlockStart"),bottom:P.spaceT("bottom"),insetBlockEnd:P.spaceT("insetBlockEnd"),left:P.spaceT("left"),insetInlineStart:P.logical({scale:"space",property:{ltr:"left",rtl:"right"}}),right:P.spaceT("right"),insetInlineEnd:P.logical({scale:"space",property:{ltr:"right",rtl:"left"}})};Object.assign(Ms,{insetStart:Ms.insetInlineStart,insetEnd:Ms.insetInlineEnd});var F4={ring:{transform:ue.ring},ringColor:P.colors("--chakra-ring-color"),ringOffset:P.prop("--chakra-ring-offset-width"),ringOffsetColor:P.colors("--chakra-ring-offset-color"),ringInset:P.prop("--chakra-ring-inset")},Ce={margin:P.spaceT("margin"),marginTop:P.spaceT("marginTop"),marginBlockStart:P.spaceT("marginBlockStart"),marginRight:P.spaceT("marginRight"),marginInlineEnd:P.spaceT("marginInlineEnd"),marginBottom:P.spaceT("marginBottom"),marginBlockEnd:P.spaceT("marginBlockEnd"),marginLeft:P.spaceT("marginLeft"),marginInlineStart:P.spaceT("marginInlineStart"),marginX:P.spaceT(["marginInlineStart","marginInlineEnd"]),marginInline:P.spaceT("marginInline"),marginY:P.spaceT(["marginTop","marginBottom"]),marginBlock:P.spaceT("marginBlock"),padding:P.space("padding"),paddingTop:P.space("paddingTop"),paddingBlockStart:P.space("paddingBlockStart"),paddingRight:P.space("paddingRight"),paddingBottom:P.space("paddingBottom"),paddingBlockEnd:P.space("paddingBlockEnd"),paddingLeft:P.space("paddingLeft"),paddingInlineStart:P.space("paddingInlineStart"),paddingInlineEnd:P.space("paddingInlineEnd"),paddingX:P.space(["paddingInlineStart","paddingInlineEnd"]),paddingInline:P.space("paddingInline"),paddingY:P.space(["paddingTop","paddingBottom"]),paddingBlock:P.space("paddingBlock")};Object.assign(Ce,{m:Ce.margin,mt:Ce.marginTop,mr:Ce.marginRight,me:Ce.marginInlineEnd,marginEnd:Ce.marginInlineEnd,mb:Ce.marginBottom,ml:Ce.marginLeft,ms:Ce.marginInlineStart,marginStart:Ce.marginInlineStart,mx:Ce.marginX,my:Ce.marginY,p:Ce.padding,pt:Ce.paddingTop,py:Ce.paddingY,px:Ce.paddingX,pb:Ce.paddingBottom,pl:Ce.paddingLeft,ps:Ce.paddingInlineStart,paddingStart:Ce.paddingInlineStart,pr:Ce.paddingRight,pe:Ce.paddingInlineEnd,paddingEnd:Ce.paddingInlineEnd});var B4={textDecorationColor:P.colors("textDecorationColor"),textDecoration:!0,textDecor:{property:"textDecoration"},textDecorationLine:!0,textDecorationStyle:!0,textDecorationThickness:!0,textUnderlineOffset:!0,textShadow:P.shadows("textShadow")},N4={clipPath:!0,transform:P.propT("transform",ue.transform),transformOrigin:!0,translateX:P.spaceT("--chakra-translate-x"),translateY:P.spaceT("--chakra-translate-y"),skewX:P.degreeT("--chakra-skew-x"),skewY:P.degreeT("--chakra-skew-y"),scaleX:P.prop("--chakra-scale-x"),scaleY:P.prop("--chakra-scale-y"),scale:P.prop(["--chakra-scale-x","--chakra-scale-y"]),rotate:P.degreeT("--chakra-rotate")},V4={transition:!0,transitionDelay:!0,animation:!0,willChange:!0,transitionDuration:P.prop("transitionDuration","transition.duration"),transitionProperty:P.prop("transitionProperty","transition.property"),transitionTimingFunction:P.prop("transitionTimingFunction","transition.easing")},H4={fontFamily:P.prop("fontFamily","fonts"),fontSize:P.prop("fontSize","fontSizes",ue.px),fontWeight:P.prop("fontWeight","fontWeights"),lineHeight:P.prop("lineHeight","lineHeights"),letterSpacing:P.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"}},W4={scrollBehavior:!0,scrollSnapAlign:!0,scrollSnapStop:!0,scrollSnapType:!0,scrollMargin:P.spaceT("scrollMargin"),scrollMarginTop:P.spaceT("scrollMarginTop"),scrollMarginBottom:P.spaceT("scrollMarginBottom"),scrollMarginLeft:P.spaceT("scrollMarginLeft"),scrollMarginRight:P.spaceT("scrollMarginRight"),scrollMarginX:P.spaceT(["scrollMarginLeft","scrollMarginRight"]),scrollMarginY:P.spaceT(["scrollMarginTop","scrollMarginBottom"]),scrollPadding:P.spaceT("scrollPadding"),scrollPaddingTop:P.spaceT("scrollPaddingTop"),scrollPaddingBottom:P.spaceT("scrollPaddingBottom"),scrollPaddingLeft:P.spaceT("scrollPaddingLeft"),scrollPaddingRight:P.spaceT("scrollPaddingRight"),scrollPaddingX:P.spaceT(["scrollPaddingLeft","scrollPaddingRight"]),scrollPaddingY:P.spaceT(["scrollPaddingTop","scrollPaddingBottom"])};function iS(e){return Pt(e)&&e.reference?e.reference:String(e)}var Tc=(e,...t)=>t.map(iS).join(` ${e} `).replace(/calc/g,""),Bg=(...e)=>`calc(${Tc("+",...e)})`,Ng=(...e)=>`calc(${Tc("-",...e)})`,vp=(...e)=>`calc(${Tc("*",...e)})`,Vg=(...e)=>`calc(${Tc("/",...e)})`,Hg=e=>{const t=iS(e);return t!=null&&!Number.isNaN(parseFloat(t))?String(t).startsWith("-")?String(t).slice(1):`-${t}`:vp(t,-1)},ao=Object.assign(e=>({add:(...t)=>ao(Bg(e,...t)),subtract:(...t)=>ao(Ng(e,...t)),multiply:(...t)=>ao(vp(e,...t)),divide:(...t)=>ao(Vg(e,...t)),negate:()=>ao(Hg(e)),toString:()=>e.toString()}),{add:Bg,subtract:Ng,multiply:vp,divide:Vg,negate:Hg});function U4(e,t="-"){return e.replace(/\s+/g,t)}function G4(e){const t=U4(e.toString());return X4(K4(t))}function K4(e){return e.includes("\\.")?e:!Number.isInteger(parseFloat(e.toString()))?e.replace(".","\\."):e}function X4(e){return e.replace(/[!-,/:-@[-^`{-~]/g,"\\$&")}function q4(e,t=""){return[t,e].filter(Boolean).join("-")}function Y4(e,t){return`var(${e}${t?`, ${t}`:""})`}function Q4(e,t=""){return G4(`--${q4(e,t)}`)}function H(e,t,r){const n=Q4(e,r);return{variable:n,reference:Y4(n,t)}}function Z4(e,t){const r={};for(const n of t){if(Array.isArray(n)){const[o,i]=n;r[o]=H(`${e}-${o}`,i);continue}r[n]=H(`${e}-${n}`)}return r}function J4(e){const t=e==null?0:e.length;return t?e[t-1]:void 0}function e_(e){const t=parseFloat(e.toString()),r=e.toString().replace(String(t),"");return{unitless:!r,value:t,unit:r}}function yp(e){if(e==null)return e;const{unitless:t}=e_(e);return t||typeof e=="number"?`${e}px`:e}var sS=(e,t)=>parseInt(e[1],10)>parseInt(t[1],10)?1:-1,om=e=>Object.fromEntries(Object.entries(e).sort(sS));function Wg(e){const t=om(e);return Object.assign(Object.values(t),t)}function t_(e){const t=Object.keys(om(e));return new Set(t)}function Ug(e){var t;if(!e)return e;e=(t=yp(e))!=null?t:e;const r=-.02;return typeof e=="number"?`${e+r}`:e.replace(/(\d+\.?\d*)/u,n=>`${parseFloat(n)+r}`)}function gs(e,t){const r=["@media screen"];return e&&r.push("and",`(min-width: ${yp(e)})`),t&&r.push("and",`(max-width: ${yp(t)})`),r.join(" ")}function r_(e){var t;if(!e)return null;e.base=(t=e.base)!=null?t:"0px";const r=Wg(e),n=Object.entries(e).sort(sS).map(([s,a],l,u)=>{var c;let[,d]=(c=u[l+1])!=null?c:[];return d=parseFloat(d)>0?Ug(d):void 0,{_minW:Ug(a),breakpoint:s,minW:a,maxW:d,maxWQuery:gs(null,d),minWQuery:gs(a),minMaxQuery:gs(a,d)}}),o=t_(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:om(e),asArray:Wg(e),details:n,get(s){return n.find(a=>a.breakpoint===s)},media:[null,...r.map(s=>gs(s)).slice(1)],toArrayValue(s){if(!Pt(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(;J4(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 Je={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}`},gn=e=>aS(t=>e(t,"&"),"[role=group]","[data-group]",".group"),Vr=e=>aS(t=>e(t,"~ &"),"[data-peer]",".peer"),aS=(e,...t)=>t.map(e).join(", "),Ac={_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:gn(Je.hover),_peerHover:Vr(Je.hover),_groupFocus:gn(Je.focus),_peerFocus:Vr(Je.focus),_groupFocusVisible:gn(Je.focusVisible),_peerFocusVisible:Vr(Je.focusVisible),_groupActive:gn(Je.active),_peerActive:Vr(Je.active),_groupDisabled:gn(Je.disabled),_peerDisabled:Vr(Je.disabled),_groupInvalid:gn(Je.invalid),_peerInvalid:Vr(Je.invalid),_groupChecked:gn(Je.checked),_peerChecked:Vr(Je.checked),_groupFocusWithin:gn(Je.focusWithin),_peerFocusWithin:Vr(Je.focusWithin),_peerPlaceholderShown:Vr(Je.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]"},lS=Object.keys(Ac);function Gg(e,t){return H(String(e).replace(/\./g,"-"),void 0,t)}function n_(e,t){let r={};const n={};for(const[o,i]of Object.entries(e)){const{isSemantic:s,value:a}=i,{variable:l,reference:u}=Gg(o,t==null?void 0:t.cssVarPrefix);if(!s){if(o.startsWith("space")){const f=o.split("."),[p,...m]=f,y=`${p}.-${m.join(".")}`,w=ao.negate(a),g=ao.negate(u);n[y]={value:w,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:w}=Gg(m,t==null?void 0:t.cssVarPrefix);return w},d=Pt(a)?a:{default:a};r=rr(r,Object.entries(d).reduce((f,[p,m])=>{var y,w;if(!m)return f;const g=c(`${m}`);if(p==="default")return f[l]=g,f;const h=(w=(y=Ac)==null?void 0:y[p])!=null?w:p;return f[h]={[l]:g},f},{})),n[o]={value:u,var:l,varRef:u}}return{cssVars:r,cssMap:n}}function o_(e,t=[]){const r=Object.assign({},e);for(const n of t)n in r&&delete r[n];return r}function i_(e,t){const r={};for(const n of t)n in e&&(r[n]=e[n]);return r}function s_(e){return typeof e=="object"&&e!=null&&!Array.isArray(e)}function Kg(e,t,r={}){const{stop:n,getKey:o}=r;function i(s,a=[]){var l;if(s_(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 a_=["colors","borders","borderWidths","borderStyles","fonts","fontSizes","fontWeights","gradients","letterSpacings","lineHeights","radii","space","shadows","sizes","zIndices","transition","blur","breakpoints"];function l_(e){return i_(e,a_)}function u_(e){return e.semanticTokens}function c_(e){const{__cssMap:t,__cssVars:r,__breakpoints:n,...o}=e;return o}var d_=e=>lS.includes(e)||e==="default";function f_({tokens:e,semanticTokens:t}){const r={};return Kg(e,(n,o)=>{n!=null&&(r[o.join(".")]={isSemantic:!1,value:n})}),Kg(t,(n,o)=>{n!=null&&(r[o.join(".")]={isSemantic:!0,value:n})},{stop:n=>Object.keys(n).every(d_)}),r}function p_(e){var t;const r=c_(e),n=l_(r),o=u_(r),i=f_({tokens:n,semanticTokens:o}),s=(t=r.config)==null?void 0:t.cssVarPrefix,{cssMap:a,cssVars:l}=n_(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:r_(r.breakpoints)}),r}var im=rr({},Hl,ce,A4,zu,Zt,R4,F4,$4,oS,j4,Ms,gp,Ce,W4,H4,B4,N4,M4,V4);Object.assign({},Ce,Zt,zu,oS,Ms);var h_=[...Object.keys(im),...lS],m_={...im,...Ac},g_=e=>e in m_,v_=e=>t=>{if(!t.__breakpoints)return e;const{isResponsive:r,toArrayValue:n,media:o}=t.__breakpoints,i={};for(const s in e){let a=qr(e[s],t);if(a==null)continue;if(a=Pt(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),S_=(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]=y_(t);return t=(n=(r=o(s))!=null?r:i(a))!=null?n:i(t),t};function w_(e){const{configs:t={},pseudos:r={},theme:n}=e,o=(i,s=!1)=>{var a,l,u;const c=qr(i,n),d=v_(c)(n);let f={};for(let p in d){const m=d[p];let y=qr(m,n);p in r&&(p=r[p]),x_(p,y)&&(y=S_(n,y));let w=t[p];if(w===!0&&(w={property:p}),Pt(y)){f[p]=(a=f[p])!=null?a:{},f[p]=rr({},f[p],o(y,!0));continue}let g=(u=(l=w==null?void 0:w.transform)==null?void 0:l.call(w,y,n,c))!=null?u:y;g=w!=null&&w.processResult?o(g,!0):g;const h=qr(w==null?void 0:w.property,n);if(!s&&(w!=null&&w.static)){const v=qr(w.static,n);f=rr({},f,v)}if(h&&Array.isArray(h)){for(const v of h)f[v]=g;continue}if(h){h==="&"&&Pt(g)?f=rr({},f,g):f[h]=g;continue}if(Pt(g)){f=rr({},f,g);continue}f[p]=g}return f};return o}var uS=e=>t=>w_({theme:t,pseudos:Ac,configs:im})(e);function Se(e){return{definePartsStyle(t){return t},defineMultiStyleConfig(t){return{parts:e,...t}}}}function k_(e,t){if(Array.isArray(e))return e;if(Pt(e))return t(e);if(e!=null)return[e]}function C_(e,t){for(let r=t+1;r{rr(u,{[v]:f?h[v]:{[g]:h[v]}})});continue}if(!p){f?rr(u,h):u[g]=h;continue}u[g]=h}}return u}}function E_(e){return t=>{var r;const{variant:n,size:o,theme:i}=t,s=P_(i);return rr({},qr((r=e.baseStyle)!=null?r:{},t),s(e,"sizes",o,t),s(e,"variants",n,t))}}function Wt(e){return o_(e,["styleConfig","size","variant","colorScheme"])}var __=["borders","breakpoints","colors","components","config","direction","fonts","fontSizes","fontWeights","letterSpacings","lineHeights","radii","shadows","sizes","space","styles","transition","zIndices"];function T_(e){return Pt(e)?__.every(t=>Object.prototype.hasOwnProperty.call(e,t)):!1}var A_={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"},R_={"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)"},$_={"ultra-fast":"50ms",faster:"100ms",fast:"150ms",normal:"200ms",slow:"300ms",slower:"400ms","ultra-slow":"500ms"},M_={property:A_,easing:R_,duration:$_},O_=M_,z_={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},L_=z_,D_={none:0,"1px":"1px solid","2px":"2px solid","4px":"4px solid","8px":"8px solid"},I_=D_,j_={base:"0em",sm:"30em",md:"48em",lg:"62em",xl:"80em","2xl":"96em"},F_=j_,B_={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"}},N_=B_,V_={none:"0",sm:"0.125rem",base:"0.25rem",md:"0.375rem",lg:"0.5rem",xl:"0.75rem","2xl":"1rem","3xl":"1.5rem",full:"9999px"},H_=V_,W_={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"},U_=W_,G_={none:0,sm:"4px",base:"8px",md:"12px",lg:"16px",xl:"24px","2xl":"40px","3xl":"64px"},K_=G_,X_={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"}},cS=X_,dS={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"},q_={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"},Y_={sm:"640px",md:"768px",lg:"1024px",xl:"1280px"},Q_={...dS,...q_,container:Y_},fS=Q_,Z_={breakpoints:F_,zIndices:L_,radii:H_,blur:K_,colors:N_,...cS,sizes:fS,shadows:U_,space:dS,borders:I_,transition:O_},{defineMultiStyleConfig:J_,definePartsStyle:vs}=Se(["stepper","step","title","description","indicator","separator","icon","number"]),Ur=H("stepper-indicator-size"),ti=H("stepper-icon-size"),ri=H("stepper-title-font-size"),ys=H("stepper-description-font-size"),is=H("stepper-accent-color"),eT=vs(({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"},[is.variable]:`colors.${e}.500`,_dark:{[is.variable]:`colors.${e}.200`}},title:{fontSize:ri.reference,fontWeight:"medium"},description:{fontSize:ys.reference,color:"chakra-subtle-text"},number:{fontSize:ri.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:ti.reference,height:ti.reference},indicator:{flexShrink:0,borderRadius:"full",width:Ur.reference,height:Ur.reference,display:"flex",justifyContent:"center",alignItems:"center","&[data-status=active]":{borderWidth:"2px",borderColor:is.reference},"&[data-status=complete]":{bg:is.reference,color:"chakra-inverse-text"},"&[data-status=incomplete]":{borderWidth:"2px"}},separator:{bg:"chakra-border-color",flex:"1","&[data-status=complete]":{bg:is.reference},"&[data-orientation=horizontal]":{width:"100%",height:"2px",marginStart:"2"},"&[data-orientation=vertical]":{width:"2px",position:"absolute",height:"100%",maxHeight:`calc(100% - ${Ur.reference} - 8px)`,top:`calc(${Ur.reference} + 4px)`,insetStart:`calc(${Ur.reference} / 2 - 1px)`}}})),tT=J_({baseStyle:eT,sizes:{xs:vs({stepper:{[Ur.variable]:"sizes.4",[ti.variable]:"sizes.3",[ri.variable]:"fontSizes.xs",[ys.variable]:"fontSizes.xs"}}),sm:vs({stepper:{[Ur.variable]:"sizes.6",[ti.variable]:"sizes.4",[ri.variable]:"fontSizes.sm",[ys.variable]:"fontSizes.xs"}}),md:vs({stepper:{[Ur.variable]:"sizes.8",[ti.variable]:"sizes.5",[ri.variable]:"fontSizes.md",[ys.variable]:"fontSizes.sm"}}),lg:vs({stepper:{[Ur.variable]:"sizes.10",[ti.variable]:"sizes.6",[ri.variable]:"fontSizes.lg",[ys.variable]:"fontSizes.md"}})},defaultProps:{size:"md",colorScheme:"blue"}});function me(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 me(e,t)}function i(...c){for(const d of c)d in t||(t[d]=l(d));return me(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 rT=me("accordion").parts("root","container","button","panel").extend("icon"),nT=me("alert").parts("title","description","container").extend("icon","spinner"),oT=me("avatar").parts("label","badge","container").extend("excessLabel","group"),iT=me("breadcrumb").parts("link","item","container").extend("separator");me("button").parts();var sT=me("checkbox").parts("control","icon","container").extend("label");me("progress").parts("track","filledTrack").extend("label");var aT=me("drawer").parts("overlay","dialogContainer","dialog").extend("header","closeButton","body","footer"),lT=me("editable").parts("preview","input","textarea"),uT=me("form").parts("container","requiredIndicator","helperText"),cT=me("formError").parts("text","icon"),dT=me("input").parts("addon","field","element","group"),fT=me("list").parts("container","item","icon"),pT=me("menu").parts("button","list","item").extend("groupTitle","icon","command","divider"),hT=me("modal").parts("overlay","dialogContainer","dialog").extend("header","closeButton","body","footer"),mT=me("numberinput").parts("root","field","stepperGroup","stepper");me("pininput").parts("field");var gT=me("popover").parts("content","header","body","footer").extend("popper","arrow","closeButton"),vT=me("progress").parts("label","filledTrack","track"),yT=me("radio").parts("container","control","label"),bT=me("select").parts("field","icon"),xT=me("slider").parts("container","track","thumb","filledTrack","mark"),ST=me("stat").parts("container","label","helpText","number","icon"),wT=me("switch").parts("container","track","thumb"),kT=me("table").parts("table","thead","tbody","tr","th","td","tfoot","caption"),CT=me("tabs").parts("root","tab","tablist","tabpanel","tabpanels","indicator"),PT=me("tag").parts("container","label","closeButton"),ET=me("card").parts("container","header","body","footer");function po(e,t,r){return Math.min(Math.max(e,r),t)}class _T extends Error{constructor(t){super(`Failed to parse color: "${t}"`)}}var bs=_T;function sm(e){if(typeof e!="string")throw new bs(e);if(e.trim().toLowerCase()==="transparent")return[0,0,0,0];let t=e.trim();t=LT.test(e)?RT(e):e;const r=$T.exec(t);if(r){const s=Array.from(r).slice(1);return[...s.slice(0,3).map(a=>parseInt(fa(a,2),16)),parseInt(fa(s[3]||"f",2),16)/255]}const n=MT.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=OT.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=zT.exec(t);if(i){const[s,a,l,u]=Array.from(i).slice(1).map(parseFloat);if(po(0,100,a)!==a)throw new bs(e);if(po(0,100,l)!==l)throw new bs(e);return[...DT(s,a,l),Number.isNaN(u)?1:u]}throw new bs(e)}function TT(e){let t=5381,r=e.length;for(;r;)t=t*33^e.charCodeAt(--r);return(t>>>0)%2341}const Xg=e=>parseInt(e.replace(/_/g,""),36),AT="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=Xg(t.substring(0,3)),n=Xg(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 RT(e){const t=e.toLowerCase().trim(),r=AT[TT(t)];if(!r)throw new bs(e);return`#${r}`}const fa=(e,t)=>Array.from(Array(t)).map(()=>e).join(""),$T=new RegExp(`^#${fa("([a-f0-9])",3)}([a-f0-9])?$`,"i"),MT=new RegExp(`^#${fa("([a-f0-9]{2})",3)}([a-f0-9]{2})?$`,"i"),OT=new RegExp(`^rgba?\\(\\s*(\\d+)\\s*${fa(",\\s*(\\d+)\\s*",2)}(?:,\\s*([\\d.]+))?\\s*\\)$`,"i"),zT=/^hsla?\(\s*([\d.]+)\s*,\s*([\d.]+)%\s*,\s*([\d.]+)%(?:\s*,\s*([\d.]+))?\s*\)$/i,LT=/^[a-z]+$/i,qg=e=>Math.round(e*255),DT=(e,t,r)=>{let n=r/100;if(t===0)return[n,n,n].map(qg);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(qg)};function IT(e,t,r,n){return`rgba(${po(0,255,e).toFixed()}, ${po(0,255,t).toFixed()}, ${po(0,255,r).toFixed()}, ${parseFloat(po(0,1,n).toFixed(3))})`}function jT(e,t){const[r,n,o,i]=sm(e);return IT(r,n,o,i-t)}function FT(e){const[t,r,n,o]=sm(e);let i=s=>{const a=po(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 BT(e,t,r,n,o){for(t=t.split?t.split("."):t,n=0;nObject.keys(e).length===0,ht=(e,t,r)=>{const n=BT(e,`colors.${t}`,t);try{return FT(n),n}catch{return r??"#000000"}},VT=e=>{const[t,r,n]=sm(e);return(t*299+r*587+n*114)/1e3},HT=e=>t=>{const r=ht(t,e);return VT(r)<128?"dark":"light"},WT=e=>t=>HT(e)(t)==="dark",Ri=(e,t)=>r=>{const n=ht(r,e);return jT(n,1-t)};function Yg(e="1rem",t="rgba(255, 255, 255, 0.15)"){return{backgroundImage:`linear-gradient( - 45deg, - ${t} 25%, - transparent 25%, - transparent 50%, - ${t} 50%, - ${t} 75%, - transparent 75%, - transparent - )`,backgroundSize:`${e} ${e}`}}var UT=()=>`#${Math.floor(Math.random()*16777215).toString(16).padEnd(6,"0")}`;function GT(e){const t=UT();return!e||NT(e)?t:e.string&&e.colors?XT(e.string,e.colors):e.string&&!e.colors?KT(e.string):e.colors&&!e.string?qT(e.colors):t}function KT(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 XT(e,t){let r=0;if(e.length===0)return t[0];for(let n=0;nr.colorMode==="dark"?t:e}function am(e){const{orientation:t,vertical:r,horizontal:n}=e;return t?t==="vertical"?r:n:{}}function pS(e){return Pt(e)&&e.reference?e.reference:String(e)}var Rc=(e,...t)=>t.map(pS).join(` ${e} `).replace(/calc/g,""),Qg=(...e)=>`calc(${Rc("+",...e)})`,Zg=(...e)=>`calc(${Rc("-",...e)})`,bp=(...e)=>`calc(${Rc("*",...e)})`,Jg=(...e)=>`calc(${Rc("/",...e)})`,ev=e=>{const t=pS(e);return t!=null&&!Number.isNaN(parseFloat(t))?String(t).startsWith("-")?String(t).slice(1):`-${t}`:bp(t,-1)},Gr=Object.assign(e=>({add:(...t)=>Gr(Qg(e,...t)),subtract:(...t)=>Gr(Zg(e,...t)),multiply:(...t)=>Gr(bp(e,...t)),divide:(...t)=>Gr(Jg(e,...t)),negate:()=>Gr(ev(e)),toString:()=>e.toString()}),{add:Qg,subtract:Zg,multiply:bp,divide:Jg,negate:ev});function YT(e){return!Number.isInteger(parseFloat(e.toString()))}function QT(e,t="-"){return e.replace(/\s+/g,t)}function hS(e){const t=QT(e.toString());return t.includes("\\.")?e:YT(e)?t.replace(".","\\."):e}function ZT(e,t=""){return[t,hS(e)].filter(Boolean).join("-")}function JT(e,t){return`var(${hS(e)}${t?`, ${t}`:""})`}function e3(e,t=""){return`--${ZT(e,t)}`}function Ke(e,t){const r=e3(e,t==null?void 0:t.prefix);return{variable:r,reference:JT(r,t3(t==null?void 0:t.fallback))}}function t3(e){return typeof e=="string"?e:e==null?void 0:e.reference}var{defineMultiStyleConfig:r3,definePartsStyle:Wl}=Se(wT.keys),Os=Ke("switch-track-width"),vo=Ke("switch-track-height"),Ld=Ke("switch-track-diff"),n3=Gr.subtract(Os,vo),xp=Ke("switch-thumb-x"),ss=Ke("switch-bg"),o3=e=>{const{colorScheme:t}=e;return{borderRadius:"full",p:"0.5",width:[Os.reference],height:[vo.reference],transitionProperty:"common",transitionDuration:"fast",[ss.variable]:"colors.gray.300",_dark:{[ss.variable]:"colors.whiteAlpha.400"},_focusVisible:{boxShadow:"outline"},_disabled:{opacity:.4,cursor:"not-allowed"},_checked:{[ss.variable]:`colors.${t}.500`,_dark:{[ss.variable]:`colors.${t}.200`}},bg:ss.reference}},i3={bg:"white",transitionProperty:"transform",transitionDuration:"normal",borderRadius:"inherit",width:[vo.reference],height:[vo.reference],_checked:{transform:`translateX(${xp.reference})`}},s3=Wl(e=>({container:{[Ld.variable]:n3,[xp.variable]:Ld.reference,_rtl:{[xp.variable]:Gr(Ld).negate().toString()}},track:o3(e),thumb:i3})),a3={sm:Wl({container:{[Os.variable]:"1.375rem",[vo.variable]:"sizes.3"}}),md:Wl({container:{[Os.variable]:"1.875rem",[vo.variable]:"sizes.4"}}),lg:Wl({container:{[Os.variable]:"2.875rem",[vo.variable]:"sizes.6"}})},l3=r3({baseStyle:s3,sizes:a3,defaultProps:{size:"md",colorScheme:"blue"}}),{defineMultiStyleConfig:u3,definePartsStyle:yi}=Se(kT.keys),c3=yi({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"}}),Lu={"&[data-is-numeric=true]":{textAlign:"end"}},d3=yi(e=>{const{colorScheme:t}=e;return{th:{color:U("gray.600","gray.400")(e),borderBottom:"1px",borderColor:U(`${t}.100`,`${t}.700`)(e),...Lu},td:{borderBottom:"1px",borderColor:U(`${t}.100`,`${t}.700`)(e),...Lu},caption:{color:U("gray.600","gray.100")(e)},tfoot:{tr:{"&:last-of-type":{th:{borderBottomWidth:0}}}}}}),f3=yi(e=>{const{colorScheme:t}=e;return{th:{color:U("gray.600","gray.400")(e),borderBottom:"1px",borderColor:U(`${t}.100`,`${t}.700`)(e),...Lu},td:{borderBottom:"1px",borderColor:U(`${t}.100`,`${t}.700`)(e),...Lu},caption:{color:U("gray.600","gray.100")(e)},tbody:{tr:{"&:nth-of-type(odd)":{"th, td":{borderBottomWidth:"1px",borderColor:U(`${t}.100`,`${t}.700`)(e)},td:{background:U(`${t}.100`,`${t}.700`)(e)}}}},tfoot:{tr:{"&:last-of-type":{th:{borderBottomWidth:0}}}}}}),p3={simple:d3,striped:f3,unstyled:{}},h3={sm:yi({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:yi({th:{px:"6",py:"3",lineHeight:"4",fontSize:"xs"},td:{px:"6",py:"4",lineHeight:"5"},caption:{px:"6",py:"2",fontSize:"sm"}}),lg:yi({th:{px:"8",py:"4",lineHeight:"5",fontSize:"sm"},td:{px:"8",py:"5",lineHeight:"6"},caption:{px:"6",py:"2",fontSize:"md"}})},m3=u3({baseStyle:c3,variants:p3,sizes:h3,defaultProps:{variant:"simple",size:"md",colorScheme:"gray"}}),xt=H("tabs-color"),vr=H("tabs-bg"),vl=H("tabs-border-color"),{defineMultiStyleConfig:g3,definePartsStyle:Or}=Se(CT.keys),v3=e=>{const{orientation:t}=e;return{display:t==="vertical"?"flex":"block"}},y3=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}}},b3=e=>{const{align:t="start",orientation:r}=e;return{justifyContent:{end:"flex-end",center:"center",start:"flex-start"}[t],flexDirection:r==="vertical"?"column":"row"}},x3={p:4},S3=Or(e=>({root:v3(e),tab:y3(e),tablist:b3(e),tabpanel:x3})),w3={sm:Or({tab:{py:1,px:4,fontSize:"sm"}}),md:Or({tab:{fontSize:"md",py:2,px:4}}),lg:Or({tab:{fontSize:"lg",py:3,px:4}})},k3=Or(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:{[xt.variable]:`colors.${t}.600`,_dark:{[xt.variable]:`colors.${t}.300`},borderColor:"currentColor"},_active:{[vr.variable]:"colors.gray.200",_dark:{[vr.variable]:"colors.whiteAlpha.300"}},_disabled:{_active:{bg:"none"}},color:xt.reference,bg:vr.reference}}}),C3=Or(e=>{const{colorScheme:t}=e;return{tab:{borderTopRadius:"md",border:"1px solid",borderColor:"transparent",mb:"-1px",[vl.variable]:"transparent",_selected:{[xt.variable]:`colors.${t}.600`,[vl.variable]:"colors.white",_dark:{[xt.variable]:`colors.${t}.300`,[vl.variable]:"colors.gray.800"},borderColor:"inherit",borderBottomColor:vl.reference},color:xt.reference},tablist:{mb:"-1px",borderBottom:"1px solid",borderColor:"inherit"}}}),P3=Or(e=>{const{colorScheme:t}=e;return{tab:{border:"1px solid",borderColor:"inherit",[vr.variable]:"colors.gray.50",_dark:{[vr.variable]:"colors.whiteAlpha.50"},mb:"-1px",_notLast:{marginEnd:"-1px"},_selected:{[vr.variable]:"colors.white",[xt.variable]:`colors.${t}.600`,_dark:{[vr.variable]:"colors.gray.800",[xt.variable]:`colors.${t}.300`},borderColor:"inherit",borderTopColor:"currentColor",borderBottomColor:"transparent"},color:xt.reference,bg:vr.reference},tablist:{mb:"-1px",borderBottom:"1px solid",borderColor:"inherit"}}}),E3=Or(e=>{const{colorScheme:t,theme:r}=e;return{tab:{borderRadius:"full",fontWeight:"semibold",color:"gray.600",_selected:{color:ht(r,`${t}.700`),bg:ht(r,`${t}.100`)}}}}),_3=Or(e=>{const{colorScheme:t}=e;return{tab:{borderRadius:"full",fontWeight:"semibold",[xt.variable]:"colors.gray.600",_dark:{[xt.variable]:"inherit"},_selected:{[xt.variable]:"colors.white",[vr.variable]:`colors.${t}.600`,_dark:{[xt.variable]:"colors.gray.800",[vr.variable]:`colors.${t}.300`}},color:xt.reference,bg:vr.reference}}}),T3=Or({}),A3={line:k3,enclosed:C3,"enclosed-colored":P3,"soft-rounded":E3,"solid-rounded":_3,unstyled:T3},R3=g3({baseStyle:S3,sizes:w3,variants:A3,defaultProps:{size:"md",variant:"line",colorScheme:"blue"}}),Fe=Z4("badge",["bg","color","shadow"]),$3={px:1,textTransform:"uppercase",fontSize:"xs",borderRadius:"sm",fontWeight:"bold",bg:Fe.bg.reference,color:Fe.color.reference,boxShadow:Fe.shadow.reference},M3=e=>{const{colorScheme:t,theme:r}=e,n=Ri(`${t}.500`,.6)(r);return{[Fe.bg.variable]:`colors.${t}.500`,[Fe.color.variable]:"colors.white",_dark:{[Fe.bg.variable]:n,[Fe.color.variable]:"colors.whiteAlpha.800"}}},O3=e=>{const{colorScheme:t,theme:r}=e,n=Ri(`${t}.200`,.16)(r);return{[Fe.bg.variable]:`colors.${t}.100`,[Fe.color.variable]:`colors.${t}.800`,_dark:{[Fe.bg.variable]:n,[Fe.color.variable]:`colors.${t}.200`}}},z3=e=>{const{colorScheme:t,theme:r}=e,n=Ri(`${t}.200`,.8)(r);return{[Fe.color.variable]:`colors.${t}.500`,_dark:{[Fe.color.variable]:n},[Fe.shadow.variable]:`inset 0 0 0px 1px ${Fe.color.reference}`}},L3={solid:M3,subtle:O3,outline:z3},zs={baseStyle:$3,variants:L3,defaultProps:{variant:"subtle",colorScheme:"gray"}},{defineMultiStyleConfig:D3,definePartsStyle:yo}=Se(PT.keys),tv=H("tag-bg"),rv=H("tag-color"),Dd=H("tag-shadow"),Ul=H("tag-min-height"),Gl=H("tag-min-width"),Kl=H("tag-font-size"),Xl=H("tag-padding-inline"),I3={fontWeight:"medium",lineHeight:1.2,outline:0,[rv.variable]:Fe.color.reference,[tv.variable]:Fe.bg.reference,[Dd.variable]:Fe.shadow.reference,color:rv.reference,bg:tv.reference,boxShadow:Dd.reference,borderRadius:"md",minH:Ul.reference,minW:Gl.reference,fontSize:Kl.reference,px:Xl.reference,_focusVisible:{[Dd.variable]:"shadows.outline"}},j3={lineHeight:1.2,overflow:"visible"},F3={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}},B3=yo({container:I3,label:j3,closeButton:F3}),N3={sm:yo({container:{[Ul.variable]:"sizes.5",[Gl.variable]:"sizes.5",[Kl.variable]:"fontSizes.xs",[Xl.variable]:"space.2"},closeButton:{marginEnd:"-2px",marginStart:"0.35rem"}}),md:yo({container:{[Ul.variable]:"sizes.6",[Gl.variable]:"sizes.6",[Kl.variable]:"fontSizes.sm",[Xl.variable]:"space.2"}}),lg:yo({container:{[Ul.variable]:"sizes.8",[Gl.variable]:"sizes.8",[Kl.variable]:"fontSizes.md",[Xl.variable]:"space.3"}})},V3={subtle:yo(e=>{var t;return{container:(t=zs.variants)==null?void 0:t.subtle(e)}}),solid:yo(e=>{var t;return{container:(t=zs.variants)==null?void 0:t.solid(e)}}),outline:yo(e=>{var t;return{container:(t=zs.variants)==null?void 0:t.outline(e)}})},H3=D3({variants:V3,baseStyle:B3,sizes:N3,defaultProps:{size:"md",variant:"subtle",colorScheme:"gray"}}),{definePartsStyle:Yr,defineMultiStyleConfig:W3}=Se(dT.keys),ni=H("input-height"),oi=H("input-font-size"),ii=H("input-padding"),si=H("input-border-radius"),U3=Yr({addon:{height:ni.reference,fontSize:oi.reference,px:ii.reference,borderRadius:si.reference},field:{width:"100%",height:ni.reference,fontSize:oi.reference,px:ii.reference,borderRadius:si.reference,minWidth:0,outline:0,position:"relative",appearance:"none",transitionProperty:"common",transitionDuration:"normal",_disabled:{opacity:.4,cursor:"not-allowed"}}}),vn={lg:{[oi.variable]:"fontSizes.lg",[ii.variable]:"space.4",[si.variable]:"radii.md",[ni.variable]:"sizes.12"},md:{[oi.variable]:"fontSizes.md",[ii.variable]:"space.4",[si.variable]:"radii.md",[ni.variable]:"sizes.10"},sm:{[oi.variable]:"fontSizes.sm",[ii.variable]:"space.3",[si.variable]:"radii.sm",[ni.variable]:"sizes.8"},xs:{[oi.variable]:"fontSizes.xs",[ii.variable]:"space.2",[si.variable]:"radii.sm",[ni.variable]:"sizes.6"}},G3={lg:Yr({field:vn.lg,group:vn.lg}),md:Yr({field:vn.md,group:vn.md}),sm:Yr({field:vn.sm,group:vn.sm}),xs:Yr({field:vn.xs,group:vn.xs})};function lm(e){const{focusBorderColor:t,errorBorderColor:r}=e;return{focusBorderColor:t||U("blue.500","blue.300")(e),errorBorderColor:r||U("red.500","red.300")(e)}}var K3=Yr(e=>{const{theme:t}=e,{focusBorderColor:r,errorBorderColor:n}=lm(e);return{field:{border:"1px solid",borderColor:"inherit",bg:"inherit",_hover:{borderColor:U("gray.300","whiteAlpha.400")(e)},_readOnly:{boxShadow:"none !important",userSelect:"all"},_invalid:{borderColor:ht(t,n),boxShadow:`0 0 0 1px ${ht(t,n)}`},_focusVisible:{zIndex:1,borderColor:ht(t,r),boxShadow:`0 0 0 1px ${ht(t,r)}`}},addon:{border:"1px solid",borderColor:U("inherit","whiteAlpha.50")(e),bg:U("gray.100","whiteAlpha.300")(e)}}}),X3=Yr(e=>{const{theme:t}=e,{focusBorderColor:r,errorBorderColor:n}=lm(e);return{field:{border:"2px solid",borderColor:"transparent",bg:U("gray.100","whiteAlpha.50")(e),_hover:{bg:U("gray.200","whiteAlpha.100")(e)},_readOnly:{boxShadow:"none !important",userSelect:"all"},_invalid:{borderColor:ht(t,n)},_focusVisible:{bg:"transparent",borderColor:ht(t,r)}},addon:{border:"2px solid",borderColor:"transparent",bg:U("gray.100","whiteAlpha.50")(e)}}}),q3=Yr(e=>{const{theme:t}=e,{focusBorderColor:r,errorBorderColor:n}=lm(e);return{field:{borderBottom:"1px solid",borderColor:"inherit",borderRadius:"0",px:"0",bg:"transparent",_readOnly:{boxShadow:"none !important",userSelect:"all"},_invalid:{borderColor:ht(t,n),boxShadow:`0px 1px 0px 0px ${ht(t,n)}`},_focusVisible:{borderColor:ht(t,r),boxShadow:`0px 1px 0px 0px ${ht(t,r)}`}},addon:{borderBottom:"2px solid",borderColor:"inherit",borderRadius:"0",px:"0",bg:"transparent"}}}),Y3=Yr({field:{bg:"transparent",px:"0",height:"auto"},addon:{bg:"transparent",px:"0",height:"auto"}}),Q3={outline:K3,filled:X3,flushed:q3,unstyled:Y3},pe=W3({baseStyle:U3,sizes:G3,variants:Q3,defaultProps:{size:"md",variant:"outline"}}),nv,Z3={...(nv=pe.baseStyle)==null?void 0:nv.field,paddingY:"2",minHeight:"20",lineHeight:"short",verticalAlign:"top"},ov,iv,J3={outline:e=>{var t,r;return(r=(t=pe.variants)==null?void 0:t.outline(e).field)!=null?r:{}},flushed:e=>{var t,r;return(r=(t=pe.variants)==null?void 0:t.flushed(e).field)!=null?r:{}},filled:e=>{var t,r;return(r=(t=pe.variants)==null?void 0:t.filled(e).field)!=null?r:{}},unstyled:(iv=(ov=pe.variants)==null?void 0:ov.unstyled.field)!=null?iv:{}},sv,av,lv,uv,cv,dv,fv,pv,eA={xs:(av=(sv=pe.sizes)==null?void 0:sv.xs.field)!=null?av:{},sm:(uv=(lv=pe.sizes)==null?void 0:lv.sm.field)!=null?uv:{},md:(dv=(cv=pe.sizes)==null?void 0:cv.md.field)!=null?dv:{},lg:(pv=(fv=pe.sizes)==null?void 0:fv.lg.field)!=null?pv:{}},tA={baseStyle:Z3,sizes:eA,variants:J3,defaultProps:{size:"md",variant:"outline"}},yl=Ke("tooltip-bg"),Id=Ke("tooltip-fg"),rA=Ke("popper-arrow-bg"),nA={bg:yl.reference,color:Id.reference,[yl.variable]:"colors.gray.700",[Id.variable]:"colors.whiteAlpha.900",_dark:{[yl.variable]:"colors.gray.300",[Id.variable]:"colors.gray.900"},[rA.variable]:yl.reference,px:"2",py:"0.5",borderRadius:"sm",fontWeight:"medium",fontSize:"sm",boxShadow:"md",maxW:"xs",zIndex:"tooltip"},oA={baseStyle:nA},{defineMultiStyleConfig:iA,definePartsStyle:xs}=Se(vT.keys),sA=e=>{const{colorScheme:t,theme:r,isIndeterminate:n,hasStripe:o}=e,i=U(Yg(),Yg("1rem","rgba(0,0,0,0.1)"))(e),s=U(`${t}.500`,`${t}.200`)(e),a=`linear-gradient( - to right, - transparent 0%, - ${ht(r,s)} 50%, - transparent 100% - )`;return{...!n&&o&&i,...n?{bgImage:a}:{bgColor:s}}},aA={lineHeight:"1",fontSize:"0.25em",fontWeight:"bold",color:"white"},lA=e=>({bg:U("gray.100","whiteAlpha.300")(e)}),uA=e=>({transitionProperty:"common",transitionDuration:"slow",...sA(e)}),cA=xs(e=>({label:aA,filledTrack:uA(e),track:lA(e)})),dA={xs:xs({track:{h:"1"}}),sm:xs({track:{h:"2"}}),md:xs({track:{h:"3"}}),lg:xs({track:{h:"4"}})},fA=iA({sizes:dA,baseStyle:cA,defaultProps:{size:"md",colorScheme:"blue"}}),pA=e=>typeof e=="function";function gt(e,...t){return pA(e)?e(...t):e}var{definePartsStyle:ql,defineMultiStyleConfig:hA}=Se(sT.keys),Ls=H("checkbox-size"),mA=e=>{const{colorScheme:t}=e;return{w:Ls.reference,h:Ls.reference,transitionProperty:"box-shadow",transitionDuration:"normal",border:"2px solid",borderRadius:"sm",borderColor:"inherit",color:"white",_checked:{bg:U(`${t}.500`,`${t}.200`)(e),borderColor:U(`${t}.500`,`${t}.200`)(e),color:U("white","gray.900")(e),_hover:{bg:U(`${t}.600`,`${t}.300`)(e),borderColor:U(`${t}.600`,`${t}.300`)(e)},_disabled:{borderColor:U("gray.200","transparent")(e),bg:U("gray.200","whiteAlpha.300")(e),color:U("gray.500","whiteAlpha.500")(e)}},_indeterminate:{bg:U(`${t}.500`,`${t}.200`)(e),borderColor:U(`${t}.500`,`${t}.200`)(e),color:U("white","gray.900")(e)},_disabled:{bg:U("gray.100","whiteAlpha.100")(e),borderColor:U("gray.100","transparent")(e)},_focusVisible:{boxShadow:"outline"},_invalid:{borderColor:U("red.500","red.300")(e)}}},gA={_disabled:{cursor:"not-allowed"}},vA={userSelect:"none",_disabled:{opacity:.4}},yA={transitionProperty:"transform",transitionDuration:"normal"},bA=ql(e=>({icon:yA,container:gA,control:gt(mA,e),label:vA})),xA={sm:ql({control:{[Ls.variable]:"sizes.3"},label:{fontSize:"sm"},icon:{fontSize:"3xs"}}),md:ql({control:{[Ls.variable]:"sizes.4"},label:{fontSize:"md"},icon:{fontSize:"2xs"}}),lg:ql({control:{[Ls.variable]:"sizes.5"},label:{fontSize:"lg"},icon:{fontSize:"2xs"}})},Du=hA({baseStyle:bA,sizes:xA,defaultProps:{size:"md",colorScheme:"blue"}}),{defineMultiStyleConfig:SA,definePartsStyle:Yl}=Se(yT.keys),wA=e=>{var t;const r=(t=gt(Du.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"}}}},kA=Yl(e=>{var t,r,n,o;return{label:(r=(t=Du).baseStyle)==null?void 0:r.call(t,e).label,container:(o=(n=Du).baseStyle)==null?void 0:o.call(n,e).container,control:wA(e)}}),CA={md:Yl({control:{w:"4",h:"4"},label:{fontSize:"md"}}),lg:Yl({control:{w:"5",h:"5"},label:{fontSize:"lg"}}),sm:Yl({control:{width:"3",height:"3"},label:{fontSize:"sm"}})},PA=SA({baseStyle:kA,sizes:CA,defaultProps:{size:"md",colorScheme:"blue"}}),{defineMultiStyleConfig:EA,definePartsStyle:_A}=Se(bT.keys),bl=H("select-bg"),hv,TA={...(hv=pe.baseStyle)==null?void 0:hv.field,appearance:"none",paddingBottom:"1px",lineHeight:"normal",bg:bl.reference,[bl.variable]:"colors.white",_dark:{[bl.variable]:"colors.gray.700"},"> option, > optgroup":{bg:bl.reference}},AA={width:"6",height:"100%",insetEnd:"2",position:"relative",color:"currentColor",fontSize:"xl",_disabled:{opacity:.5}},RA=_A({field:TA,icon:AA}),xl={paddingInlineEnd:"8"},mv,gv,vv,yv,bv,xv,Sv,wv,$A={lg:{...(mv=pe.sizes)==null?void 0:mv.lg,field:{...(gv=pe.sizes)==null?void 0:gv.lg.field,...xl}},md:{...(vv=pe.sizes)==null?void 0:vv.md,field:{...(yv=pe.sizes)==null?void 0:yv.md.field,...xl}},sm:{...(bv=pe.sizes)==null?void 0:bv.sm,field:{...(xv=pe.sizes)==null?void 0:xv.sm.field,...xl}},xs:{...(Sv=pe.sizes)==null?void 0:Sv.xs,field:{...(wv=pe.sizes)==null?void 0:wv.xs.field,...xl},icon:{insetEnd:"1"}}},MA=EA({baseStyle:RA,sizes:$A,variants:pe.variants,defaultProps:pe.defaultProps}),jd=H("skeleton-start-color"),Fd=H("skeleton-end-color"),OA={[jd.variable]:"colors.gray.100",[Fd.variable]:"colors.gray.400",_dark:{[jd.variable]:"colors.gray.800",[Fd.variable]:"colors.gray.600"},background:jd.reference,borderColor:Fd.reference,opacity:.7,borderRadius:"sm"},zA={baseStyle:OA},Bd=H("skip-link-bg"),LA={borderRadius:"md",fontWeight:"semibold",_focusVisible:{boxShadow:"outline",padding:"4",position:"fixed",top:"6",insetStart:"6",[Bd.variable]:"colors.white",_dark:{[Bd.variable]:"colors.gray.700"},bg:Bd.reference}},DA={baseStyle:LA},{defineMultiStyleConfig:IA,definePartsStyle:$c}=Se(xT.keys),pa=H("slider-thumb-size"),ha=H("slider-track-size"),En=H("slider-bg"),jA=e=>{const{orientation:t}=e;return{display:"inline-block",position:"relative",cursor:"pointer",_disabled:{opacity:.6,cursor:"default",pointerEvents:"none"},...am({orientation:t,vertical:{h:"100%"},horizontal:{w:"100%"}})}},FA=e=>({...am({orientation:e.orientation,horizontal:{h:ha.reference},vertical:{w:ha.reference}}),overflow:"hidden",borderRadius:"sm",[En.variable]:"colors.gray.200",_dark:{[En.variable]:"colors.whiteAlpha.200"},_disabled:{[En.variable]:"colors.gray.300",_dark:{[En.variable]:"colors.whiteAlpha.300"}},bg:En.reference}),BA=e=>{const{orientation:t}=e;return{...am({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:pa.reference,h:pa.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"}}},NA=e=>{const{colorScheme:t}=e;return{width:"inherit",height:"inherit",[En.variable]:`colors.${t}.500`,_dark:{[En.variable]:`colors.${t}.200`},bg:En.reference}},VA=$c(e=>({container:jA(e),track:FA(e),thumb:BA(e),filledTrack:NA(e)})),HA=$c({container:{[pa.variable]:"sizes.4",[ha.variable]:"sizes.1"}}),WA=$c({container:{[pa.variable]:"sizes.3.5",[ha.variable]:"sizes.1"}}),UA=$c({container:{[pa.variable]:"sizes.2.5",[ha.variable]:"sizes.0.5"}}),GA={lg:HA,md:WA,sm:UA},KA=IA({baseStyle:VA,sizes:GA,defaultProps:{size:"md",colorScheme:"blue"}}),lo=Ke("spinner-size"),XA={width:[lo.reference],height:[lo.reference]},qA={xs:{[lo.variable]:"sizes.3"},sm:{[lo.variable]:"sizes.4"},md:{[lo.variable]:"sizes.6"},lg:{[lo.variable]:"sizes.8"},xl:{[lo.variable]:"sizes.12"}},YA={baseStyle:XA,sizes:qA,defaultProps:{size:"md"}},{defineMultiStyleConfig:QA,definePartsStyle:mS}=Se(ST.keys),ZA={fontWeight:"medium"},JA={opacity:.8,marginBottom:"2"},eR={verticalAlign:"baseline",fontWeight:"semibold"},tR={marginEnd:1,w:"3.5",h:"3.5",verticalAlign:"middle"},rR=mS({container:{},label:ZA,helpText:JA,number:eR,icon:tR}),nR={md:mS({label:{fontSize:"sm"},helpText:{fontSize:"sm"},number:{fontSize:"2xl"}})},oR=QA({baseStyle:rR,sizes:nR,defaultProps:{size:"md"}}),Nd=H("kbd-bg"),iR={[Nd.variable]:"colors.gray.100",_dark:{[Nd.variable]:"colors.whiteAlpha.100"},bg:Nd.reference,borderRadius:"md",borderWidth:"1px",borderBottomWidth:"3px",fontSize:"0.8em",fontWeight:"bold",lineHeight:"normal",px:"0.4em",whiteSpace:"nowrap"},sR={baseStyle:iR},aR={transitionProperty:"common",transitionDuration:"fast",transitionTimingFunction:"ease-out",cursor:"pointer",textDecoration:"none",outline:"none",color:"inherit",_hover:{textDecoration:"underline"},_focusVisible:{boxShadow:"outline"}},lR={baseStyle:aR},{defineMultiStyleConfig:uR,definePartsStyle:cR}=Se(fT.keys),dR={marginEnd:"2",display:"inline",verticalAlign:"text-bottom"},fR=cR({icon:dR}),pR=uR({baseStyle:fR}),{defineMultiStyleConfig:hR,definePartsStyle:mR}=Se(pT.keys),Er=H("menu-bg"),Vd=H("menu-shadow"),gR={[Er.variable]:"#fff",[Vd.variable]:"shadows.sm",_dark:{[Er.variable]:"colors.gray.700",[Vd.variable]:"shadows.dark-lg"},color:"inherit",minW:"3xs",py:"2",zIndex:1,borderRadius:"md",borderWidth:"1px",bg:Er.reference,boxShadow:Vd.reference},vR={py:"1.5",px:"3",transitionProperty:"background",transitionDuration:"ultra-fast",transitionTimingFunction:"ease-in",_focus:{[Er.variable]:"colors.gray.100",_dark:{[Er.variable]:"colors.whiteAlpha.100"}},_active:{[Er.variable]:"colors.gray.200",_dark:{[Er.variable]:"colors.whiteAlpha.200"}},_expanded:{[Er.variable]:"colors.gray.100",_dark:{[Er.variable]:"colors.whiteAlpha.100"}},_disabled:{opacity:.4,cursor:"not-allowed"},bg:Er.reference},yR={mx:4,my:2,fontWeight:"semibold",fontSize:"sm"},bR={display:"inline-flex",alignItems:"center",justifyContent:"center",flexShrink:0},xR={opacity:.6},SR={border:0,borderBottom:"1px solid",borderColor:"inherit",my:"2",opacity:.6},wR={transitionProperty:"common",transitionDuration:"normal"},kR=mR({button:wR,list:gR,item:vR,groupTitle:yR,icon:bR,command:xR,divider:SR}),CR=hR({baseStyle:kR}),{defineMultiStyleConfig:PR,definePartsStyle:Sp}=Se(hT.keys),Hd=H("modal-bg"),Wd=H("modal-shadow"),ER={bg:"blackAlpha.600",zIndex:"modal"},_R=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"}},TR=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,[Hd.variable]:"colors.white",[Wd.variable]:"shadows.lg",_dark:{[Hd.variable]:"colors.gray.700",[Wd.variable]:"shadows.dark-lg"},bg:Hd.reference,boxShadow:Wd.reference}},AR={px:"6",py:"4",fontSize:"xl",fontWeight:"semibold"},RR={position:"absolute",top:"2",insetEnd:"3"},$R=e=>{const{scrollBehavior:t}=e;return{px:"6",py:"2",flex:"1",overflow:t==="inside"?"auto":void 0}},MR={px:"6",py:"4"},OR=Sp(e=>({overlay:ER,dialogContainer:gt(_R,e),dialog:gt(TR,e),header:AR,closeButton:RR,body:gt($R,e),footer:MR}));function pr(e){return Sp(e==="full"?{dialog:{maxW:"100vw",minH:"$100vh",my:"0",borderRadius:"0"}}:{dialog:{maxW:e}})}var zR={xs:pr("xs"),sm:pr("sm"),md:pr("md"),lg:pr("lg"),xl:pr("xl"),"2xl":pr("2xl"),"3xl":pr("3xl"),"4xl":pr("4xl"),"5xl":pr("5xl"),"6xl":pr("6xl"),full:pr("full")},LR=PR({baseStyle:OR,sizes:zR,defaultProps:{size:"md"}}),{defineMultiStyleConfig:DR,definePartsStyle:gS}=Se(mT.keys),um=Ke("number-input-stepper-width"),vS=Ke("number-input-input-padding"),IR=Gr(um).add("0.5rem").toString(),Ud=Ke("number-input-bg"),Gd=Ke("number-input-color"),Kd=Ke("number-input-border-color"),jR={[um.variable]:"sizes.6",[vS.variable]:IR},FR=e=>{var t,r;return(r=(t=gt(pe.baseStyle,e))==null?void 0:t.field)!=null?r:{}},BR={width:um.reference},NR={borderStart:"1px solid",borderStartColor:Kd.reference,color:Gd.reference,bg:Ud.reference,[Gd.variable]:"colors.chakra-body-text",[Kd.variable]:"colors.chakra-border-color",_dark:{[Gd.variable]:"colors.whiteAlpha.800",[Kd.variable]:"colors.whiteAlpha.300"},_active:{[Ud.variable]:"colors.gray.200",_dark:{[Ud.variable]:"colors.whiteAlpha.300"}},_disabled:{opacity:.4,cursor:"not-allowed"}},VR=gS(e=>{var t;return{root:jR,field:(t=gt(FR,e))!=null?t:{},stepperGroup:BR,stepper:NR}});function Sl(e){var t,r,n;const o=(t=pe.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=cS.fontSizes[s];return gS({field:{...o.field,paddingInlineEnd:vS.reference,verticalAlign:"top"},stepper:{fontSize:Gr(a).multiply(.75).toString(),_first:{borderTopEndRadius:i[e]},_last:{borderBottomEndRadius:i[e],mt:"-1px",borderTopWidth:1}}})}var HR={xs:Sl("xs"),sm:Sl("sm"),md:Sl("md"),lg:Sl("lg")},WR=DR({baseStyle:VR,sizes:HR,variants:pe.variants,defaultProps:pe.defaultProps}),kv,UR={...(kv=pe.baseStyle)==null?void 0:kv.field,textAlign:"center"},GR={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"}},Cv,Pv,KR={outline:e=>{var t,r,n;return(n=(r=gt((t=pe.variants)==null?void 0:t.outline,e))==null?void 0:r.field)!=null?n:{}},flushed:e=>{var t,r,n;return(n=(r=gt((t=pe.variants)==null?void 0:t.flushed,e))==null?void 0:r.field)!=null?n:{}},filled:e=>{var t,r,n;return(n=(r=gt((t=pe.variants)==null?void 0:t.filled,e))==null?void 0:r.field)!=null?n:{}},unstyled:(Pv=(Cv=pe.variants)==null?void 0:Cv.unstyled.field)!=null?Pv:{}},XR={baseStyle:UR,sizes:GR,variants:KR,defaultProps:pe.defaultProps},{defineMultiStyleConfig:qR,definePartsStyle:YR}=Se(gT.keys),wl=Ke("popper-bg"),QR=Ke("popper-arrow-bg"),Ev=Ke("popper-arrow-shadow-color"),ZR={zIndex:10},JR={[wl.variable]:"colors.white",bg:wl.reference,[QR.variable]:wl.reference,[Ev.variable]:"colors.gray.200",_dark:{[wl.variable]:"colors.gray.700",[Ev.variable]:"colors.whiteAlpha.300"},width:"xs",border:"1px solid",borderColor:"inherit",borderRadius:"md",boxShadow:"sm",zIndex:"inherit",_focusVisible:{outline:0,boxShadow:"outline"}},e6={px:3,py:2,borderBottomWidth:"1px"},t6={px:3,py:2},r6={px:3,py:2,borderTopWidth:"1px"},n6={position:"absolute",borderRadius:"md",top:1,insetEnd:2,padding:2},o6=YR({popper:ZR,content:JR,header:e6,body:t6,footer:r6,closeButton:n6}),i6=qR({baseStyle:o6}),{definePartsStyle:wp,defineMultiStyleConfig:s6}=Se(aT.keys),Xd=H("drawer-bg"),qd=H("drawer-box-shadow");function Fo(e){return wp(e==="full"?{dialog:{maxW:"100vw",h:"100vh"}}:{dialog:{maxW:e}})}var a6={bg:"blackAlpha.600",zIndex:"modal"},l6={display:"flex",zIndex:"modal",justifyContent:"center"},u6=e=>{const{isFullHeight:t}=e;return{...t&&{height:"100vh"},zIndex:"modal",maxH:"100vh",color:"inherit",[Xd.variable]:"colors.white",[qd.variable]:"shadows.lg",_dark:{[Xd.variable]:"colors.gray.700",[qd.variable]:"shadows.dark-lg"},bg:Xd.reference,boxShadow:qd.reference}},c6={px:"6",py:"4",fontSize:"xl",fontWeight:"semibold"},d6={position:"absolute",top:"2",insetEnd:"3"},f6={px:"6",py:"2",flex:"1",overflow:"auto"},p6={px:"6",py:"4"},h6=wp(e=>({overlay:a6,dialogContainer:l6,dialog:gt(u6,e),header:c6,closeButton:d6,body:f6,footer:p6})),m6={xs:Fo("xs"),sm:Fo("md"),md:Fo("lg"),lg:Fo("2xl"),xl:Fo("4xl"),full:Fo("full")},g6=s6({baseStyle:h6,sizes:m6,defaultProps:{size:"xs"}}),{definePartsStyle:v6,defineMultiStyleConfig:y6}=Se(lT.keys),b6={borderRadius:"md",py:"1",transitionProperty:"common",transitionDuration:"normal"},x6={borderRadius:"md",py:"1",transitionProperty:"common",transitionDuration:"normal",width:"full",_focusVisible:{boxShadow:"outline"},_placeholder:{opacity:.6}},S6={borderRadius:"md",py:"1",transitionProperty:"common",transitionDuration:"normal",width:"full",_focusVisible:{boxShadow:"outline"},_placeholder:{opacity:.6}},w6=v6({preview:b6,input:x6,textarea:S6}),k6=y6({baseStyle:w6}),{definePartsStyle:C6,defineMultiStyleConfig:P6}=Se(uT.keys),bi=H("form-control-color"),E6={marginStart:"1",[bi.variable]:"colors.red.500",_dark:{[bi.variable]:"colors.red.300"},color:bi.reference},_6={mt:"2",[bi.variable]:"colors.gray.600",_dark:{[bi.variable]:"colors.whiteAlpha.600"},color:bi.reference,lineHeight:"normal",fontSize:"sm"},T6=C6({container:{width:"100%",position:"relative"},requiredIndicator:E6,helperText:_6}),A6=P6({baseStyle:T6}),{definePartsStyle:R6,defineMultiStyleConfig:$6}=Se(cT.keys),xi=H("form-error-color"),M6={[xi.variable]:"colors.red.500",_dark:{[xi.variable]:"colors.red.300"},color:xi.reference,mt:"2",fontSize:"sm",lineHeight:"normal"},O6={marginEnd:"0.5em",[xi.variable]:"colors.red.500",_dark:{[xi.variable]:"colors.red.300"},color:xi.reference},z6=R6({text:M6,icon:O6}),L6=$6({baseStyle:z6}),D6={fontSize:"md",marginEnd:"3",mb:"2",fontWeight:"medium",transitionProperty:"common",transitionDuration:"normal",opacity:1,_disabled:{opacity:.4}},I6={baseStyle:D6},j6={fontFamily:"heading",fontWeight:"bold"},F6={"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}},B6={baseStyle:j6,sizes:F6,defaultProps:{size:"xl"}},{defineMultiStyleConfig:N6,definePartsStyle:V6}=Se(iT.keys),Yd=H("breadcrumb-link-decor"),H6={transitionProperty:"common",transitionDuration:"fast",transitionTimingFunction:"ease-out",outline:"none",color:"inherit",textDecoration:Yd.reference,[Yd.variable]:"none","&:not([aria-current=page])":{cursor:"pointer",_hover:{[Yd.variable]:"underline"},_focusVisible:{boxShadow:"outline"}}},W6=V6({link:H6}),U6=N6({baseStyle:W6}),G6={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"}}},yS=e=>{const{colorScheme:t,theme:r}=e;if(t==="gray")return{color:U("gray.800","whiteAlpha.900")(e),_hover:{bg:U("gray.100","whiteAlpha.200")(e)},_active:{bg:U("gray.200","whiteAlpha.300")(e)}};const n=Ri(`${t}.200`,.12)(r),o=Ri(`${t}.200`,.24)(r);return{color:U(`${t}.600`,`${t}.200`)(e),bg:"transparent",_hover:{bg:U(`${t}.50`,n)(e)},_active:{bg:U(`${t}.100`,o)(e)}}},K6=e=>{const{colorScheme:t}=e,r=U("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"},...gt(yS,e)}},X6={yellow:{bg:"yellow.400",color:"black",hoverBg:"yellow.500",activeBg:"yellow.600"},cyan:{bg:"cyan.400",color:"black",hoverBg:"cyan.500",activeBg:"cyan.600"}},q6=e=>{var t;const{colorScheme:r}=e;if(r==="gray"){const l=U("gray.100","whiteAlpha.200")(e);return{bg:l,color:U("gray.800","whiteAlpha.900")(e),_hover:{bg:U("gray.200","whiteAlpha.300")(e),_disabled:{bg:l}},_active:{bg:U("gray.300","whiteAlpha.400")(e)}}}const{bg:n=`${r}.500`,color:o="white",hoverBg:i=`${r}.600`,activeBg:s=`${r}.700`}=(t=X6[r])!=null?t:{},a=U(n,`${r}.200`)(e);return{bg:a,color:U(o,"gray.800")(e),_hover:{bg:U(i,`${r}.300`)(e),_disabled:{bg:a}},_active:{bg:U(s,`${r}.400`)(e)}}},Y6=e=>{const{colorScheme:t}=e;return{padding:0,height:"auto",lineHeight:"normal",verticalAlign:"baseline",color:U(`${t}.500`,`${t}.200`)(e),_hover:{textDecoration:"underline",_disabled:{textDecoration:"none"}},_active:{color:U(`${t}.700`,`${t}.500`)(e)}}},Q6={bg:"none",color:"inherit",display:"inline",lineHeight:"inherit",m:"0",p:"0"},Z6={ghost:yS,outline:K6,solid:q6,link:Y6,unstyled:Q6},J6={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"}},e$={baseStyle:G6,variants:Z6,sizes:J6,defaultProps:{variant:"solid",size:"md",colorScheme:"gray"}},{definePartsStyle:bo,defineMultiStyleConfig:t$}=Se(ET.keys),Iu=H("card-bg"),en=H("card-padding"),bS=H("card-shadow"),Ql=H("card-radius"),xS=H("card-border-width","0"),SS=H("card-border-color"),r$=bo({container:{[Iu.variable]:"colors.chakra-body-bg",backgroundColor:Iu.reference,boxShadow:bS.reference,borderRadius:Ql.reference,color:"chakra-body-text",borderWidth:xS.reference,borderColor:SS.reference},body:{padding:en.reference,flex:"1 1 0%"},header:{padding:en.reference},footer:{padding:en.reference}}),n$={sm:bo({container:{[Ql.variable]:"radii.base",[en.variable]:"space.3"}}),md:bo({container:{[Ql.variable]:"radii.md",[en.variable]:"space.5"}}),lg:bo({container:{[Ql.variable]:"radii.xl",[en.variable]:"space.7"}})},o$={elevated:bo({container:{[bS.variable]:"shadows.base",_dark:{[Iu.variable]:"colors.gray.700"}}}),outline:bo({container:{[xS.variable]:"1px",[SS.variable]:"colors.chakra-border-color"}}),filled:bo({container:{[Iu.variable]:"colors.chakra-subtle-bg"}}),unstyled:{body:{[en.variable]:0},header:{[en.variable]:0},footer:{[en.variable]:0}}},i$=t$({baseStyle:r$,variants:o$,sizes:n$,defaultProps:{variant:"elevated",size:"md"}}),Ds=Ke("close-button-size"),as=Ke("close-button-bg"),s$={w:[Ds.reference],h:[Ds.reference],borderRadius:"md",transitionProperty:"common",transitionDuration:"normal",_disabled:{opacity:.4,cursor:"not-allowed",boxShadow:"none"},_hover:{[as.variable]:"colors.blackAlpha.100",_dark:{[as.variable]:"colors.whiteAlpha.100"}},_active:{[as.variable]:"colors.blackAlpha.200",_dark:{[as.variable]:"colors.whiteAlpha.200"}},_focusVisible:{boxShadow:"outline"},bg:as.reference},a$={lg:{[Ds.variable]:"sizes.10",fontSize:"md"},md:{[Ds.variable]:"sizes.8",fontSize:"xs"},sm:{[Ds.variable]:"sizes.6",fontSize:"2xs"}},l$={baseStyle:s$,sizes:a$,defaultProps:{size:"md"}},{variants:u$,defaultProps:c$}=zs,d$={fontFamily:"mono",fontSize:"sm",px:"0.2em",borderRadius:"sm",bg:Fe.bg.reference,color:Fe.color.reference,boxShadow:Fe.shadow.reference},f$={baseStyle:d$,variants:u$,defaultProps:c$},p$={w:"100%",mx:"auto",maxW:"prose",px:"4"},h$={baseStyle:p$},m$={opacity:.6,borderColor:"inherit"},g$={borderStyle:"solid"},v$={borderStyle:"dashed"},y$={solid:g$,dashed:v$},b$={baseStyle:m$,variants:y$,defaultProps:{variant:"solid"}},{definePartsStyle:x$,defineMultiStyleConfig:S$}=Se(rT.keys),w$={borderTopWidth:"1px",borderColor:"inherit",_last:{borderBottomWidth:"1px"}},k$={transitionProperty:"common",transitionDuration:"normal",fontSize:"md",_focusVisible:{boxShadow:"outline"},_hover:{bg:"blackAlpha.50"},_disabled:{opacity:.4,cursor:"not-allowed"},px:"4",py:"2"},C$={pt:"2",px:"4",pb:"5"},P$={fontSize:"1.25em"},E$=x$({container:w$,button:k$,panel:C$,icon:P$}),_$=S$({baseStyle:E$}),{definePartsStyle:Aa,defineMultiStyleConfig:T$}=Se(nT.keys),It=H("alert-fg"),un=H("alert-bg"),A$=Aa({container:{bg:un.reference,px:"4",py:"3"},title:{fontWeight:"bold",lineHeight:"6",marginEnd:"2"},description:{lineHeight:"6"},icon:{color:It.reference,flexShrink:0,marginEnd:"3",w:"5",h:"6"},spinner:{color:It.reference,flexShrink:0,marginEnd:"3",w:"5",h:"5"}});function cm(e){const{theme:t,colorScheme:r}=e,n=Ri(`${r}.200`,.16)(t);return{light:`colors.${r}.100`,dark:n}}var R$=Aa(e=>{const{colorScheme:t}=e,r=cm(e);return{container:{[It.variable]:`colors.${t}.500`,[un.variable]:r.light,_dark:{[It.variable]:`colors.${t}.200`,[un.variable]:r.dark}}}}),$$=Aa(e=>{const{colorScheme:t}=e,r=cm(e);return{container:{[It.variable]:`colors.${t}.500`,[un.variable]:r.light,_dark:{[It.variable]:`colors.${t}.200`,[un.variable]:r.dark},paddingStart:"3",borderStartWidth:"4px",borderStartColor:It.reference}}}),M$=Aa(e=>{const{colorScheme:t}=e,r=cm(e);return{container:{[It.variable]:`colors.${t}.500`,[un.variable]:r.light,_dark:{[It.variable]:`colors.${t}.200`,[un.variable]:r.dark},pt:"2",borderTopWidth:"4px",borderTopColor:It.reference}}}),O$=Aa(e=>{const{colorScheme:t}=e;return{container:{[It.variable]:"colors.white",[un.variable]:`colors.${t}.500`,_dark:{[It.variable]:"colors.gray.900",[un.variable]:`colors.${t}.200`},color:It.reference}}}),z$={subtle:R$,"left-accent":$$,"top-accent":M$,solid:O$},L$=T$({baseStyle:A$,variants:z$,defaultProps:{variant:"subtle",colorScheme:"blue"}}),{definePartsStyle:wS,defineMultiStyleConfig:D$}=Se(oT.keys),Si=H("avatar-border-color"),Is=H("avatar-bg"),ma=H("avatar-font-size"),$i=H("avatar-size"),I$={borderRadius:"full",border:"0.2em solid",borderColor:Si.reference,[Si.variable]:"white",_dark:{[Si.variable]:"colors.gray.800"}},j$={bg:Is.reference,fontSize:ma.reference,width:$i.reference,height:$i.reference,lineHeight:"1",[Is.variable]:"colors.gray.200",_dark:{[Is.variable]:"colors.whiteAlpha.400"}},F$=e=>{const{name:t,theme:r}=e,n=t?GT({string:t}):"colors.gray.400",o=WT(n)(r);let i="white";return o||(i="gray.800"),{bg:Is.reference,fontSize:ma.reference,color:i,borderColor:Si.reference,verticalAlign:"top",width:$i.reference,height:$i.reference,"&:not([data-loaded])":{[Is.variable]:n},[Si.variable]:"colors.white",_dark:{[Si.variable]:"colors.gray.800"}}},B$={fontSize:ma.reference,lineHeight:"1"},N$=wS(e=>({badge:gt(I$,e),excessLabel:gt(j$,e),container:gt(F$,e),label:B$}));function yn(e){const t=e!=="100%"?fS[e]:void 0;return wS({container:{[$i.variable]:t??e,[ma.variable]:`calc(${t??e} / 2.5)`},excessLabel:{[$i.variable]:t??e,[ma.variable]:`calc(${t??e} / 2.5)`}})}var V$={"2xs":yn(4),xs:yn(6),sm:yn(8),md:yn(12),lg:yn(16),xl:yn(24),"2xl":yn(32),full:yn("100%")},H$=D$({baseStyle:N$,sizes:V$,defaultProps:{size:"md"}}),W$={Accordion:_$,Alert:L$,Avatar:H$,Badge:zs,Breadcrumb:U6,Button:e$,Checkbox:Du,CloseButton:l$,Code:f$,Container:h$,Divider:b$,Drawer:g6,Editable:k6,Form:A6,FormError:L6,FormLabel:I6,Heading:B6,Input:pe,Kbd:sR,Link:lR,List:pR,Menu:CR,Modal:LR,NumberInput:WR,PinInput:XR,Popover:i6,Progress:fA,Radio:PA,Select:MA,Skeleton:zA,SkipLink:DA,Slider:KA,Spinner:YA,Stat:oR,Switch:l3,Table:m3,Tabs:R3,Tag:H3,Textarea:tA,Tooltip:oA,Card:i$,Stepper:tT},U$={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"}}},G$={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"}}},K$="ltr",X$={useSystemColorMode:!1,initialColorMode:"light",cssVarPrefix:"chakra"},kS={semanticTokens:U$,direction:K$,...Z_,components:W$,styles:G$,config:X$};function Ss(e){return typeof e=="function"}function q$(...e){return t=>e.reduce((r,n)=>n(r),t)}var Y$=e=>function(...r){let n=[...r],o=r[r.length-1];return T_(o)&&n.length>1?n=n.slice(0,n.length-1):o=e,q$(...n.map(i=>s=>Ss(i)?i(s):Z$(s,i)))(o)},Q$=Y$(kS);function Z$(...e){return rr({},...e,CS)}function CS(e,t,r,n){if((Ss(e)||Ss(t))&&Object.prototype.hasOwnProperty.call(n,r))return(...o)=>{const i=Ss(e)?e(...o):e,s=Ss(t)?t(...o):t;return rr({},i,s,CS)}}function J$(e,t){const r={};return Object.keys(e).forEach(n=>{t.includes(n)||(r[n]=e[n])}),r}function eM(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}},PS=tM(eM);function ES(e,t){const r={};return Object.keys(e).forEach(n=>{const o=e[n];t(o,n,e)&&(r[n]=o)}),r}var _S=e=>ES(e,t=>t!=null);function rM(e){return typeof e=="function"}function TS(e,...t){return rM(e)?e(...t):e}var nM=typeof Element<"u",oM=typeof Map=="function",iM=typeof Set=="function",sM=typeof ArrayBuffer=="function"&&!!ArrayBuffer.isView;function Zl(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(!Zl(e[n],t[n]))return!1;return!0}var i;if(oM&&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(!Zl(n.value[1],t.get(n.value[0])))return!1;return!0}if(iM&&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(sM&&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(nM&&e instanceof Element)return!1;for(n=r;n--!==0;)if(!((o[n]==="_owner"||o[n]==="__v"||o[n]==="__o")&&e.$$typeof)&&!Zl(e[o[n]],t[o[n]]))return!1;return!0}return e!==e&&t!==t}var aM=function(t,r){try{return Zl(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 lM=Qp(aM);function AS(e,t={}){var r;const{styleConfig:n,...o}=t,{theme:i,colorMode:s}=s4(),a=e?PS(i,`components.${e}`):void 0,l=n||a,u=rr({theme:i,colorMode:s},(r=l==null?void 0:l.defaultProps)!=null?r:{},_S(J$(o,["children"]))),c=x.useRef({});if(l){const f=E_(l)(u);lM(c.current,f)||(c.current=f)}return c.current}function Xn(e,t={}){return AS(e,t)}function Wi(e,t={}){return AS(e,t)}var uM=new Set([...h_,"textStyle","layerStyle","apply","noOfLines","focusBorderColor","errorBorderColor","as","__css","css","sx"]),cM=new Set(["htmlWidth","htmlHeight","htmlSize","htmlTranslate"]);function dM(e){return cM.has(e)||!uM.has(e)}function fM(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 RS(e){const t=Object.assign({},e);for(let r in t)t[r]===void 0&&delete t[r];return t}var pM=/^((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)-.*))$/,hM=Fx(function(e){return pM.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),mM=hM,gM=function(t){return t!=="theme"},_v=function(t){return typeof t=="string"&&t.charCodeAt(0)>96?mM:gM},Tv=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},vM=function(t){var r=t.cache,n=t.serialized,o=t.isStringTag;return Ux(r,n,o),IE(function(){return Gx(r,n,o)}),null},yM=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=Tv(t,r,n),l=a||_v(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=ES(s,(d,f)=>g_(f)),l=TS(e,t),u=fM({},o,l,_S(a),i),c=uS(u)(t.theme);return n?[c,n]:c};function Qd(e,t){const{baseStyle:r,...n}=t??{};n.shouldForwardProp||(n.shouldForwardProp=dM);const o=SM({baseStyle:r}),i=xM(e,n)(o);return zt.forwardRef(function(l,u){const{colorMode:c,forced:d}=_c();return zt.createElement(i,{ref:u,"data-theme":d?c:void 0,...l})})}function wM(){const e=new Map;return new Proxy(Qd,{apply(t,r,n){return Qd(...n)},get(t,r){return e.has(r)||e.set(r,Qd(r)),e.get(r)}})}var Q=wM();function ne(e){return x.forwardRef(e)}function $S(e={}){const{strict:t=!0,errorMessage:r="useContext: `context` is undefined. Seems you forgot to wrap component within the Provider",name:n}=e,o=x.createContext(void 0);o.displayName=n;function i(){var s;const a=x.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 kM(e){const{cssVarsRoot:t,theme:r,children:n}=e,o=x.useMemo(()=>p_(r),[r]);return k.jsxs(BE,{theme:o,children:[k.jsx(CM,{root:t}),n]})}function CM({root:e=":host, :root"}){const t=[e,"[data-theme]"].join(",");return k.jsx(Pc,{styles:r=>({[t]:r.__cssVars})})}$S({name:"StylesContext",errorMessage:"useStyles: `styles` is undefined. Seems you forgot to wrap the components in `` "});function PM(e){return $S({name:`${e}StylesContext`,errorMessage:`useStyles: "styles" is undefined. Seems you forgot to wrap the components in "<${e} />" `})}function EM(){const{colorMode:e}=_c();return k.jsx(Pc,{styles:t=>{const r=PS(t,"styles.global"),n=TS(r,{theme:t,colorMode:e});return n?uS(n)(t):void 0}})}var dm=x.createContext({getDocument(){return document},getWindow(){return window}});dm.displayName="EnvironmentContext";function _M({defer:e}={}){const[,t]=x.useReducer(r=>r+1,0);return Jr(()=>{e&&t()},[e]),x.useContext(dm)}function MS(e){const{children:t,environment:r,disabled:n}=e,o=x.useRef(null),i=x.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 k.jsxs(dm.Provider,{value:i,children:[t,s&&k.jsx("span",{id:"__chakra_env",hidden:!0,ref:o})]})}MS.displayName="EnvironmentProvider";var TM=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=k.jsx(MS,{environment:a,disabled:u,children:t});return k.jsx(kM,{theme:s,cssVarsRoot:l,children:k.jsxs(tS,{colorModeManager:r,options:s.config,children:[i?k.jsx(HE,{scope:o}):k.jsx(VE,{}),!c&&k.jsx(EM,{}),n?k.jsx(Jx,{zIndex:n,children:d}):d]})})},AM=(e,t)=>e.find(r=>r.id===t);function Rv(e,t){const r=OS(e,t),n=r?e[r].findIndex(o=>o.id===t):-1;return{position:r,index:n}}function OS(e,t){for(const[r,n]of Object.entries(e))if(AM(n,t))return r}function RM(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 $M(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 In(e,t=[]){const r=x.useRef(e);return x.useEffect(()=>{r.current=e}),x.useCallback((...n)=>{var o;return(o=r.current)==null?void 0:o.call(r,...n)},t)}function MM(e,t){const r=In(e);x.useEffect(()=>{if(t==null)return;let n=null;return n=window.setTimeout(()=>{r()},t),()=>{n&&window.clearTimeout(n)}},[t,r])}function Mi(e,t){const r=x.useRef(!1),n=x.useRef(!1);x.useEffect(()=>{if(r.current&&n.current)return e();n.current=!0},t),x.useEffect(()=>(r.current=!0,()=>{r.current=!1}),[])}const zS=x.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"}),Mc=x.createContext({}),Ra=x.createContext(null),Oc=typeof document<"u",fm=Oc?x.useLayoutEffect:x.useEffect,LS=x.createContext({strict:!1});function OM(e,t,r,n){const{visualElement:o}=x.useContext(Mc),i=x.useContext(LS),s=x.useContext(Ra),a=x.useContext(zS).reducedMotion,l=x.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;x.useInsertionEffect(()=>{u&&u.update(r,s)});const c=x.useRef(!!window.HandoffAppearAnimations);return fm(()=>{u&&(u.render(),c.current&&u.animationState&&u.animationState.animateChanges())}),x.useEffect(()=>{u&&(u.updateFeatures(),!c.current&&u.animationState&&u.animationState.animateChanges(),window.HandoffAppearAnimations=void 0,c.current=!1)}),u}function ai(e){return typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function zM(e,t,r){return x.useCallback(n=>{n&&e.mount&&e.mount(n),t&&(n?t.mount(n):t.unmount()),r&&(typeof r=="function"?r(n):ai(r)&&(r.current=n))},[t])}function ga(e){return typeof e=="string"||Array.isArray(e)}function zc(e){return typeof e=="object"&&typeof e.start=="function"}const pm=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],hm=["initial",...pm];function Lc(e){return zc(e.animate)||hm.some(t=>ga(e[t]))}function DS(e){return!!(Lc(e)||e.variants)}function LM(e,t){if(Lc(e)){const{initial:r,animate:n}=e;return{initial:r===!1||ga(r)?r:void 0,animate:ga(n)?n:void 0}}return e.inherit!==!1?t:{}}function DM(e){const{initial:t,animate:r}=LM(e,x.useContext(Mc));return x.useMemo(()=>({initial:t,animate:r}),[$v(t),$v(r)])}function $v(e){return Array.isArray(e)?e.join(" "):e}const Mv={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"]},va={};for(const e in Mv)va[e]={isEnabled:t=>Mv[e].some(r=>!!t[r])};function IM(e){for(const t in e)va[t]={...va[t],...e[t]}}const mm=x.createContext({}),IS=x.createContext({}),jM=Symbol.for("motionComponentSymbol");function FM({preloadedFeatures:e,createVisualElement:t,useRender:r,useVisualState:n,Component:o}){e&&IM(e);function i(a,l){let u;const c={...x.useContext(zS),...a,layoutId:BM(a)},{isStatic:d}=c,f=DM(a),p=n(a,d);if(!d&&Oc){f.visualElement=OM(o,p,c,t);const m=x.useContext(IS),y=x.useContext(LS).strict;f.visualElement&&(u=f.visualElement.loadFeatures(c,y,e,m))}return x.createElement(Mc.Provider,{value:f},u&&f.visualElement?x.createElement(u,{visualElement:f.visualElement,...c}):null,r(o,a,zM(p,f.visualElement,l),p,d,f.visualElement))}const s=x.forwardRef(i);return s[jM]=o,s}function BM({layoutId:e}){const t=x.useContext(mm).id;return t&&e!==void 0?t+"-"+e:e}function NM(e){function t(n,o={}){return FM(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 VM=["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 gm(e){return typeof e!="string"||e.includes("-")?!1:!!(VM.indexOf(e)>-1||/[A-Z]/.test(e))}const Fu={};function HM(e){Object.assign(Fu,e)}const $a=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],$o=new Set($a);function jS(e,{layout:t,layoutId:r}){return $o.has(e)||e.startsWith("origin")||(t||r!==void 0)&&(!!Fu[e]||e==="opacity")}const At=e=>!!(e&&e.getVelocity),WM={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},UM=$a.length;function GM(e,{enableHardwareAcceleration:t=!0,allowTransformNone:r=!0},n,o){let i="";for(let s=0;st=>typeof t=="string"&&t.startsWith(e),BS=FS("--"),kp=FS("var(--"),KM=/var\s*\(\s*--[\w-]+(\s*,\s*(?:(?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)+)?\s*\)/g,XM=(e,t)=>t&&typeof e=="number"?t.transform(e):e,Hn=(e,t,r)=>Math.min(Math.max(r,e),t),Mo={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},js={...Mo,transform:e=>Hn(0,1,e)},kl={...Mo,default:1},Fs=e=>Math.round(e*1e5)/1e5,Dc=/(-)?([\d]*\.?[\d])+/g,NS=/(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))/gi,qM=/^(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))$/i;function Ma(e){return typeof e=="string"}const Oa=e=>({test:t=>Ma(t)&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),xn=Oa("deg"),zr=Oa("%"),K=Oa("px"),YM=Oa("vh"),QM=Oa("vw"),Ov={...zr,parse:e=>zr.parse(e)/100,transform:e=>zr.transform(e*100)},zv={...Mo,transform:Math.round},VS={borderWidth:K,borderTopWidth:K,borderRightWidth:K,borderBottomWidth:K,borderLeftWidth:K,borderRadius:K,radius:K,borderTopLeftRadius:K,borderTopRightRadius:K,borderBottomRightRadius:K,borderBottomLeftRadius:K,width:K,maxWidth:K,height:K,maxHeight:K,size:K,top:K,right:K,bottom:K,left:K,padding:K,paddingTop:K,paddingRight:K,paddingBottom:K,paddingLeft:K,margin:K,marginTop:K,marginRight:K,marginBottom:K,marginLeft:K,rotate:xn,rotateX:xn,rotateY:xn,rotateZ:xn,scale:kl,scaleX:kl,scaleY:kl,scaleZ:kl,skew:xn,skewX:xn,skewY:xn,distance:K,translateX:K,translateY:K,translateZ:K,x:K,y:K,z:K,perspective:K,transformPerspective:K,opacity:js,originX:Ov,originY:Ov,originZ:K,zIndex:zv,fillOpacity:js,strokeOpacity:js,numOctaves:zv};function vm(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(BS(d)){i[d]=f;continue}const p=VS[d],m=XM(f,p);if($o.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=GM(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 ym=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function HS(e,t,r){for(const n in t)!At(t[n])&&!jS(n,r)&&(e[n]=t[n])}function ZM({transformTemplate:e},t,r){return x.useMemo(()=>{const n=ym();return vm(n,t,{enableHardwareAcceleration:!r},e),Object.assign({},n.vars,n.style)},[t])}function JM(e,t,r){const n=e.style||{},o={};return HS(o,n,e),Object.assign(o,ZM(e,t,r)),e.transformValues?e.transformValues(o):o}function eO(e,t,r){const n={},o=JM(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 tO=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 Bu(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||tO.has(e)}let WS=e=>!Bu(e);function rO(e){e&&(WS=t=>t.startsWith("on")?!Bu(t):e(t))}try{rO(require("@emotion/is-prop-valid").default)}catch{}function nO(e,t,r){const n={};for(const o in e)o==="values"&&typeof e.values=="object"||(WS(o)||r===!0&&Bu(o)||!t&&!Bu(o)||e.draggable&&o.startsWith("onDrag"))&&(n[o]=e[o]);return n}function Lv(e,t,r){return typeof e=="string"?e:K.transform(t+r*e)}function oO(e,t,r){const n=Lv(t,e.x,e.width),o=Lv(r,e.y,e.height);return`${n} ${o}`}const iO={offset:"stroke-dashoffset",array:"stroke-dasharray"},sO={offset:"strokeDashoffset",array:"strokeDasharray"};function aO(e,t,r=1,n=0,o=!0){e.pathLength=1;const i=o?iO:sO;e[i.offset]=K.transform(-n);const s=K.transform(t),a=K.transform(r);e[i.array]=`${s} ${a}`}function bm(e,{attrX:t,attrY:r,attrScale:n,originX:o,originY:i,pathLength:s,pathSpacing:a=1,pathOffset:l=0,...u},c,d,f){if(vm(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:y}=e;p.transform&&(y&&(m.transform=p.transform),delete p.transform),y&&(o!==void 0||i!==void 0||m.transform)&&(m.transformOrigin=oO(y,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&&aO(p,s,a,l,!1)}const US=()=>({...ym(),attrs:{}}),xm=e=>typeof e=="string"&&e.toLowerCase()==="svg";function lO(e,t,r,n){const o=x.useMemo(()=>{const i=US();return bm(i,t,{enableHardwareAcceleration:!1},xm(n),e.transformTemplate),{...i.attrs,style:{...i.style}}},[t]);if(e.style){const i={};HS(i,e.style,e),o.style={...i,...o.style}}return o}function uO(e=!1){return(r,n,o,{latestValues:i},s)=>{const l=(gm(r)?lO:eO)(n,i,s,r),c={...nO(n,typeof r=="string",e),...l,ref:o},{children:d}=n,f=x.useMemo(()=>At(d)?d.get():d,[d]);return x.createElement(r,{...c,children:f})}}const Sm=e=>e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase();function GS(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 KS=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 XS(e,t,r,n){GS(e,t,void 0,n);for(const o in t.attrs)e.setAttribute(KS.has(o)?o:Sm(o),t.attrs[o])}function wm(e,t){const{style:r}=e,n={};for(const o in r)(At(r[o])||t.style&&At(t.style[o])||jS(o,e))&&(n[o]=r[o]);return n}function qS(e,t){const r=wm(e,t);for(const n in e)if(At(e[n])||At(t[n])){const o=$a.indexOf(n)!==-1?"attr"+n.charAt(0).toUpperCase()+n.substring(1):n;r[o]=e[n]}return r}function km(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 YS(e){const t=x.useRef(null);return t.current===null&&(t.current=e()),t.current}const Nu=e=>Array.isArray(e),cO=e=>!!(e&&typeof e=="object"&&e.mix&&e.toValue),dO=e=>Nu(e)?e[e.length-1]||0:e;function Jl(e){const t=At(e)?e.get():e;return cO(t)?t.toValue():t}function fO({scrapeMotionValuesFromProps:e,createRenderState:t,onMount:r},n,o,i){const s={latestValues:pO(n,o,i,e),renderState:t()};return r&&(s.mount=a=>r(n,a,s)),s}const QS=e=>(t,r)=>{const n=x.useContext(Mc),o=x.useContext(Ra),i=()=>fO(e,t,n,o);return r?i():YS(i)};function pO(e,t,r,n){const o={},i=n(e,{});for(const f in i)o[f]=Jl(i[f]);let{initial:s,animate:a}=e;const l=Lc(e),u=DS(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"&&!zc(d)&&(Array.isArray(d)?d:[d]).forEach(p=>{const m=km(e,p);if(!m)return;const{transitionEnd:y,transition:w,...g}=m;for(const h in g){let v=g[h];if(Array.isArray(v)){const S=c?v.length-1:0;v=v[S]}v!==null&&(o[h]=v)}for(const h in y)o[h]=y[h]}),o}const De=e=>e;class Dv{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 hO(e){let t=new Dv,r=new Dv,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]=hO(()=>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,mO),1),o.timestamp=d,o.isProcessing=!0,Cl.forEach(s),o.isProcessing=!1,r&&t&&(n=!1,e(a))},l=()=>{r=!0,n=!0,o.isProcessing||e(a)};return{schedule:Cl.reduce((d,f)=>{const p=i[f];return d[f]=(m,y=!1,w=!1)=>(r||l(),p.schedule(m,y,w)),d},{}),cancel:d=>Cl.forEach(f=>i[f].cancel(d)),state:o,steps:i}}const{schedule:xe,cancel:cn,state:Xe,steps:Zd}=gO(typeof requestAnimationFrame<"u"?requestAnimationFrame:De,!0),vO={useVisualState:QS({scrapeMotionValuesFromProps:qS,createRenderState:US,onMount:(e,t,{renderState:r,latestValues:n})=>{xe.read(()=>{try{r.dimensions=typeof t.getBBox=="function"?t.getBBox():t.getBoundingClientRect()}catch{r.dimensions={x:0,y:0,width:0,height:0}}}),xe.render(()=>{bm(r,n,{enableHardwareAcceleration:!1},xm(t.tagName),e.transformTemplate),XS(t,r)})}})},yO={useVisualState:QS({scrapeMotionValuesFromProps:wm,createRenderState:ym})};function bO(e,{forwardMotionProps:t=!1},r,n){return{...gm(e)?vO:yO,preloadedFeatures:r,useRender:uO(t),createVisualElement:n,Component:e}}function Qr(e,t,r,n={passive:!0}){return e.addEventListener(t,r,n),()=>e.removeEventListener(t,r)}const ZS=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1;function Ic(e,t="page"){return{point:{x:e[t+"X"],y:e[t+"Y"]}}}const xO=e=>t=>ZS(t)&&e(t,Ic(t));function tn(e,t,r,n){return Qr(e,t,xO(r),n)}const SO=(e,t)=>r=>t(e(r)),jn=(...e)=>e.reduce(SO);function JS(e){let t=null;return()=>{const r=()=>{t=null};return t===null?(t=e,r):!1}}const Iv=JS("dragHorizontal"),jv=JS("dragVertical");function ew(e){let t=!1;if(e==="y")t=jv();else if(e==="x")t=Iv();else{const r=Iv(),n=jv();r&&n?t=()=>{r(),n()}:(r&&r(),n&&n())}return t}function tw(){const e=ew(!0);return e?(e(),!1):!0}class qn{constructor(t){this.isMounted=!1,this.node=t}update(){}}function Fv(e,t){const r="pointer"+(t?"enter":"leave"),n="onHover"+(t?"Start":"End"),o=(i,s)=>{if(i.type==="touch"||tw())return;const a=e.getProps();e.animationState&&a.whileHover&&e.animationState.setActive("whileHover",t),a[n]&&xe.update(()=>a[n](i,s))};return tn(e.current,r,o,{passive:!e.getProps()[n]})}class wO extends qn{mount(){this.unmount=jn(Fv(this.node,!0),Fv(this.node,!1))}unmount(){}}class kO extends qn{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=jn(Qr(this.node.current,"focus",()=>this.onFocus()),Qr(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}const rw=(e,t)=>t?e===t?!0:rw(e,t.parentElement):!1;function Jd(e,t){if(!t)return;const r=new PointerEvent("pointer"+e);t(r,Ic(r))}class CO extends qn{constructor(){super(...arguments),this.removeStartListeners=De,this.removeEndListeners=De,this.removeAccessibleListeners=De,this.startPointerPress=(t,r)=>{if(this.removeEndListeners(),this.isPressing)return;const n=this.node.getProps(),i=tn(window,"pointerup",(a,l)=>{if(!this.checkPressEnd())return;const{onTap:u,onTapCancel:c}=this.node.getProps();xe.update(()=>{rw(this.node.current,a.target)?u&&u(a,l):c&&c(a,l)})},{passive:!(n.onTap||n.onPointerUp)}),s=tn(window,"pointercancel",(a,l)=>this.cancelPress(a,l),{passive:!(n.onTapCancel||n.onPointerCancel)});this.removeEndListeners=jn(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()||Jd("up",(l,u)=>{const{onTap:c}=this.node.getProps();c&&xe.update(()=>c(l,u))})};this.removeEndListeners(),this.removeEndListeners=Qr(this.node.current,"keyup",s),Jd("down",(a,l)=>{this.startPress(a,l)})},r=Qr(this.node.current,"keydown",t),n=()=>{this.isPressing&&Jd("cancel",(i,s)=>this.cancelPress(i,s))},o=Qr(this.node.current,"blur",n);this.removeAccessibleListeners=jn(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&&xe.update(()=>n(t,r))}checkPressEnd(){return this.removeEndListeners(),this.isPressing=!1,this.node.getProps().whileTap&&this.node.animationState&&this.node.animationState.setActive("whileTap",!1),!tw()}cancelPress(t,r){if(!this.checkPressEnd())return;const{onTapCancel:n}=this.node.getProps();n&&xe.update(()=>n(t,r))}mount(){const t=this.node.getProps(),r=tn(this.node.current,"pointerdown",this.startPointerPress,{passive:!(t.onTapStart||t.onPointerStart)}),n=Qr(this.node.current,"focus",this.startAccessiblePress);this.removeStartListeners=jn(r,n)}unmount(){this.removeStartListeners(),this.removeEndListeners(),this.removeAccessibleListeners()}}const Cp=new WeakMap,ef=new WeakMap,PO=e=>{const t=Cp.get(e.target);t&&t(e)},EO=e=>{e.forEach(PO)};function _O({root:e,...t}){const r=e||document;ef.has(r)||ef.set(r,{});const n=ef.get(r),o=JSON.stringify(t);return n[o]||(n[o]=new IntersectionObserver(EO,{root:e,...t})),n[o]}function TO(e,t,r){const n=_O(t);return Cp.set(e,r),n.observe(e),()=>{Cp.delete(e),n.unobserve(e)}}const AO={some:0,all:1};class RO extends qn{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:AO[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 TO(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($O(t,r))&&this.startObserver()}unmount(){}}function $O({viewport:e={}},{viewport:t={}}={}){return r=>e[r]!==t[r]}const MO={inView:{Feature:RO},tap:{Feature:CO},focus:{Feature:kO},hover:{Feature:wO}};function nw(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 zO(e){const t={};return e.values.forEach((r,n)=>t[n]=r.getVelocity()),t}function jc(e,t,r){const n=e.getProps();return km(n,t,r!==void 0?r:n.custom,OO(e),zO(e))}const LO="framerAppearId",DO="data-"+Sm(LO);let IO=De,Cm=De;const Fn=e=>e*1e3,rn=e=>e/1e3,jO={current:!1},ow=e=>Array.isArray(e)&&typeof e[0]=="number";function iw(e){return!!(!e||typeof e=="string"&&sw[e]||ow(e)||Array.isArray(e)&&e.every(iw))}const ws=([e,t,r,n])=>`cubic-bezier(${e}, ${t}, ${r}, ${n})`,sw={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:ws([0,.65,.55,1]),circOut:ws([.55,0,1,.45]),backIn:ws([.31,.01,.66,-.59]),backOut:ws([.33,1.53,.69,.99])};function aw(e){if(e)return ow(e)?ws(e):Array.isArray(e)?e.map(aw):sw[e]}function FO(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=aw(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 BO(e,{repeat:t,repeatType:r="loop"}){const n=t&&r!=="loop"&&t%2===1?0:e.length-1;return e[n]}const lw=(e,t,r)=>(((1-3*r+3*t)*e+(3*r-6*t))*e+3*t)*e,NO=1e-7,VO=12;function HO(e,t,r,n,o){let i,s,a=0;do s=t+(r-t)/2,i=lw(s,n,o)-e,i>0?r=s:t=s;while(Math.abs(i)>NO&&++aHO(i,0,1,e,r);return i=>i===0||i===1?i:lw(o(i),t,n)}const WO=za(.42,0,1,1),UO=za(0,0,.58,1),uw=za(.42,0,.58,1),GO=e=>Array.isArray(e)&&typeof e[0]!="number",cw=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,dw=e=>t=>1-e(1-t),fw=e=>1-Math.sin(Math.acos(e)),Pm=dw(fw),KO=cw(Pm),pw=za(.33,1.53,.69,.99),Em=dw(pw),XO=cw(Em),qO=e=>(e*=2)<1?.5*Em(e):.5*(2-Math.pow(2,-10*(e-1))),YO={linear:De,easeIn:WO,easeInOut:uw,easeOut:UO,circIn:fw,circInOut:KO,circOut:Pm,backIn:Em,backInOut:XO,backOut:pw,anticipate:qO},Bv=e=>{if(Array.isArray(e)){Cm(e.length===4);const[t,r,n,o]=e;return za(t,r,n,o)}else if(typeof e=="string")return YO[e];return e},_m=(e,t)=>r=>!!(Ma(r)&&qM.test(r)&&r.startsWith(e)||t&&Object.prototype.hasOwnProperty.call(r,t)),hw=(e,t,r)=>n=>{if(!Ma(n))return n;const[o,i,s,a]=n.match(Dc);return{[e]:parseFloat(o),[t]:parseFloat(i),[r]:parseFloat(s),alpha:a!==void 0?parseFloat(a):1}},QO=e=>Hn(0,255,e),tf={...Mo,transform:e=>Math.round(QO(e))},ho={test:_m("rgb","red"),parse:hw("red","green","blue"),transform:({red:e,green:t,blue:r,alpha:n=1})=>"rgba("+tf.transform(e)+", "+tf.transform(t)+", "+tf.transform(r)+", "+Fs(js.transform(n))+")"};function ZO(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 Pp={test:_m("#"),parse:ZO,transform:ho.transform},li={test:_m("hsl","hue"),parse:hw("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:r,alpha:n=1})=>"hsla("+Math.round(e)+", "+zr.transform(Fs(t))+", "+zr.transform(Fs(r))+", "+Fs(js.transform(n))+")"},ft={test:e=>ho.test(e)||Pp.test(e)||li.test(e),parse:e=>ho.test(e)?ho.parse(e):li.test(e)?li.parse(e):Pp.parse(e),transform:e=>Ma(e)?e:e.hasOwnProperty("red")?ho.transform(e):li.transform(e)},$e=(e,t,r)=>-r*e+r*t+e;function rf(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 JO({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=rf(l,a,e+1/3),i=rf(l,a,e),s=rf(l,a,e-1/3)}return{red:Math.round(o*255),green:Math.round(i*255),blue:Math.round(s*255),alpha:n}}const nf=(e,t,r)=>{const n=e*e;return Math.sqrt(Math.max(0,r*(t*t-n)+n))},ez=[Pp,ho,li],tz=e=>ez.find(t=>t.test(e));function Nv(e){const t=tz(e);let r=t.parse(e);return t===li&&(r=JO(r)),r}const mw=(e,t)=>{const r=Nv(e),n=Nv(t),o={...r};return i=>(o.red=nf(r.red,n.red,i),o.green=nf(r.green,n.green,i),o.blue=nf(r.blue,n.blue,i),o.alpha=$e(r.alpha,n.alpha,i),ho.transform(o))};function rz(e){var t,r;return isNaN(e)&&Ma(e)&&(((t=e.match(Dc))===null||t===void 0?void 0:t.length)||0)+(((r=e.match(NS))===null||r===void 0?void 0:r.length)||0)>0}const gw={regex:KM,countKey:"Vars",token:"${v}",parse:De},vw={regex:NS,countKey:"Colors",token:"${c}",parse:ft.parse},yw={regex:Dc,countKey:"Numbers",token:"${n}",parse:Mo.parse};function of(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 Vu(e){const t=e.toString(),r={value:t,tokenised:t,values:[],numVars:0,numColors:0,numNumbers:0};return r.value.includes("var(--")&&of(r,gw),of(r,vw),of(r,yw),r}function bw(e){return Vu(e).values}function xw(e){const{values:t,numColors:r,numVars:n,tokenised:o}=Vu(e),i=t.length;return s=>{let a=o;for(let l=0;ltypeof e=="number"?0:e;function oz(e){const t=bw(e);return xw(e)(t.map(nz))}const Wn={test:rz,parse:bw,createTransformer:xw,getAnimatableNone:oz},Sw=(e,t)=>r=>`${r>0?t:e}`;function ww(e,t){return typeof e=="number"?r=>$e(e,t,r):ft.test(e)?mw(e,t):e.startsWith("var(")?Sw(e,t):Cw(e,t)}const kw=(e,t)=>{const r=[...e],n=r.length,o=e.map((i,s)=>ww(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]=ww(e[o],t[o]));return o=>{for(const i in n)r[i]=n[i](o);return r}},Cw=(e,t)=>{const r=Wn.createTransformer(t),n=Vu(e),o=Vu(t);return n.numVars===o.numVars&&n.numColors===o.numColors&&n.numNumbers>=o.numNumbers?jn(kw(n.values,o.values),r):Sw(e,t)},ya=(e,t,r)=>{const n=t-e;return n===0?1:(r-e)/n},Vv=(e,t)=>r=>$e(e,t,r);function sz(e){return typeof e=="number"?Vv:typeof e=="string"?ft.test(e)?mw:Cw:Array.isArray(e)?kw:typeof e=="object"?iz:Vv}function az(e,t,r){const n=[],o=r||sz(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=az(t,n,o),a=s.length,l=u=>{let c=0;if(a>1)for(;cl(Hn(e[0],e[i-1],u)):l}function lz(e,t){const r=e[e.length-1];for(let n=1;n<=t;n++){const o=ya(0,t,n);e.push($e(r,1,o))}}function uz(e){const t=[0];return lz(t,e.length-1),t}function cz(e,t){return e.map(r=>r*t)}function dz(e,t){return e.map(()=>t||uw).splice(0,e.length-1)}function Hu({duration:e=300,keyframes:t,times:r,ease:n="easeInOut"}){const o=GO(n)?n.map(Bv):Bv(n),i={done:!1,value:t[0]},s=cz(r&&r.length===t.length?r:uz(t),e),a=Pw(s,t,{ease:Array.isArray(o)?o:dz(t,o)});return{calculatedDuration:e,next:l=>(i.value=a(l),i.done=l>=e,i)}}function Ew(e,t){return t?e*(1e3/t):0}const fz=5;function _w(e,t,r){const n=Math.max(t-fz,0);return Ew(r-e(n),t-n)}const sf=.001,pz=.01,Hv=10,hz=.05,mz=1;function gz({duration:e=800,bounce:t=.25,velocity:r=0,mass:n=1}){let o,i;IO(e<=Fn(Hv));let s=1-t;s=Hn(hz,mz,s),e=Hn(pz,Hv,rn(e)),s<1?(o=u=>{const c=u*s,d=c*e,f=c-r,p=Ep(u,s),m=Math.exp(-d);return sf-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),y=Ep(Math.pow(u,2),s);return(-o(u)+sf>0?-1:1)*((f-p)*m)/y}):(o=u=>{const c=Math.exp(-u*e),d=(u-r)*e+1;return-sf+c*d},i=u=>{const c=Math.exp(-u*e),d=(r-u)*(e*e);return c*d});const a=5/e,l=yz(o,i,a);if(e=Fn(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 vz=12;function yz(e,t,r){let n=r;for(let o=1;oe[r]!==void 0)}function Sz(e){let t={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...e};if(!Wv(e,xz)&&Wv(e,bz)){const r=gz(e);t={...t,...r,velocity:0,mass:1},t.isResolvedFromDuration=!0}return t}function Tw({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}=Sz(n),p=c?-rn(c):0,m=l/(2*Math.sqrt(a*u)),y=i-o,w=rn(Math.sqrt(a/u)),g=Math.abs(y)<5;r||(r=g?.01:2),t||(t=g?.005:.5);let h;if(m<1){const v=Ep(w,m);h=S=>{const _=Math.exp(-m*w*S);return i-_*((p+m*w*y)/v*Math.sin(v*S)+y*Math.cos(v*S))}}else if(m===1)h=v=>i-Math.exp(-w*v)*(y+(p+w*y)*v);else{const v=w*Math.sqrt(m*m-1);h=S=>{const _=Math.exp(-m*w*S),T=Math.min(v*S,300);return i-_*((p+m*w*y)*Math.sinh(T)+v*y*Math.cosh(T))/v}}return{calculatedDuration:f&&d||null,next:v=>{const S=h(v);if(f)s.done=v>=d;else{let _=p;v!==0&&(m<1?_=_w(h,v,S):_=0);const T=Math.abs(_)<=r,E=Math.abs(i-S)<=t;s.done=T&&E}return s.value=s.done?i:S,s}}}function Uv({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)-y*Math.exp(-A/n),v=A=>g+h(A),S=A=>{const O=h(A),M=v(A);f.done=Math.abs(O)<=u,f.value=f.done?g:M};let _,T;const E=A=>{p(f.value)&&(_=A,T=Tw({keyframes:[f.value,m(f.value)],velocity:_w(v,A,f.value),damping:o,stiffness:i,restDelta:u,restSpeed:c}))};return E(0),{calculatedDuration:null,next:A=>{let O=!1;return!T&&_===void 0&&(O=!0,S(A),E(A)),_!==void 0&&A>_?T.next(A-_):(!O&&S(A),f)}}}const wz=e=>{const t=({timestamp:r})=>e(r);return{start:()=>xe.update(t,!0),stop:()=>cn(t),now:()=>Xe.isProcessing?Xe.timestamp:performance.now()}},Gv=2e4;function Kv(e){let t=0;const r=50;let n=e.next(t);for(;!n.done&&t=Gv?1/0:t}const kz={decay:Uv,inertia:Uv,tween:Hu,keyframes:Hu,spring:Tw};function Wu({autoplay:e=!0,delay:t=0,driver:r=wz,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,y,w;const g=()=>{w=new Promise(V=>{y=V})};g();let h;const v=kz[o]||Hu;let S;v!==Hu&&typeof n[0]!="number"&&(S=Pw([0,100],n,{clamp:!1}),n=[0,100]);const _=v({...f,keyframes:n});let T;a==="mirror"&&(T=v({...f,keyframes:[...n].reverse(),velocity:-(f.velocity||0)}));let E="idle",A=null,O=null,M=null;_.calculatedDuration===null&&i&&(_.calculatedDuration=Kv(_));const{calculatedDuration:F}=_;let q=1/0,X=1/0;F!==null&&(q=F+s,X=q*(i+1)-s);let Y=0;const J=V=>{if(O===null)return;p>0&&(O=Math.min(O,V)),p<0&&(O=Math.min(V-X/p,O)),A!==null?Y=A:Y=Math.round(V-O)*p;const ee=Y-t*(p>=0?1:-1),N=p>=0?ee<0:ee>X;Y=Math.max(ee,0),E==="finished"&&A===null&&(Y=X);let G=Y,we=_;if(i){const Ut=Y/q;let Gt=Math.floor(Ut),ot=Ut%1;!ot&&Ut>=1&&(ot=1),ot===1&&Gt--,Gt=Math.min(Gt,i+1);const Fr=!!(Gt%2);Fr&&(a==="reverse"?(ot=1-ot,s&&(ot-=s/q)):a==="mirror"&&(we=T));let Br=Hn(0,1,ot);Y>X&&(Br=a==="reverse"&&Fr?1:0),G=Br*q}const he=N?{done:!1,value:n[0]}:we.next(G);S&&(he.value=S(he.value));let{done:We}=he;!N&&F!==null&&(We=p>=0?Y>=X:Y<=0);const Ie=A===null&&(E==="finished"||E==="running"&&We);return d&&d(he.value),Ie&&L(),he},Z=()=>{h&&h.stop(),h=void 0},z=()=>{E="idle",Z(),y(),g(),O=M=null},L=()=>{E="finished",c&&c(),Z(),y()},B=()=>{if(m)return;h||(h=r(J));const V=h.now();l&&l(),A!==null?O=V-A:(!O||E==="finished")&&(O=V),E==="finished"&&g(),M=O,A=null,E="running",h.start()};e&&B();const W={then(V,ee){return w.then(V,ee)},get time(){return rn(Y)},set time(V){V=Fn(V),Y=V,A!==null||!h||p===0?A=V:O=h.now()-V/p},get duration(){const V=_.calculatedDuration===null?Kv(_):_.calculatedDuration;return rn(V)},get speed(){return p},set speed(V){V===p||!h||(p=V,W.time=rn(Y))},get state(){return E},play:B,pause:()=>{E="paused",A=Y},stop:()=>{m=!0,E!=="idle"&&(E="idle",u&&u(),z())},cancel:()=>{M!==null&&J(M),z()},complete:()=>{E="finished"},sample:V=>(O=0,J(V))};return W}function Cz(e){let t;return()=>(t===void 0&&(t=e()),t)}const Pz=Cz(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),Ez=new Set(["opacity","clipPath","filter","transform","backgroundColor"]),Pl=10,_z=2e4,Tz=(e,t)=>t.type==="spring"||e==="backgroundColor"||!iw(t.ease);function Az(e,t,{onUpdate:r,onComplete:n,...o}){if(!(Pz()&&Ez.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(Tz(t,o)){const h=Wu({...o,repeat:0,delay:0});let v={done:!1,value:c[0]};const S=[];let _=0;for(;!v.done&&_<_z;)v=h.sample(_),S.push(v.value),_+=Pl;p=void 0,c=S,d=_-Pl,f="linear"}const m=FO(e.owner.current,t,c,{...o,duration:d,ease:f,times:p});o.syncStart&&(m.startTime=Xe.isProcessing?Xe.timestamp:document.timeline?document.timeline.currentTime:performance.now());const y=()=>m.cancel(),w=()=>{xe.update(y),a(),u()};return m.onfinish=()=>{e.set(BO(c,o)),n&&n(),w()},{then(h,v){return l.then(h,v)},attachTimeline(h){return m.timeline=h,m.onfinish=null,De},get time(){return rn(m.currentTime||0)},set time(h){m.currentTime=Fn(h)},get speed(){return m.playbackRate},set speed(h){m.playbackRate=h},get duration(){return rn(d)},play:()=>{s||(m.play(),cn(y))},pause:()=>m.pause(),stop:()=>{if(s=!0,m.playState==="idle")return;const{currentTime:h}=m;if(h){const v=Wu({...o,autoplay:!1});e.setWithVelocity(v.sample(h-Pl).value,v.sample(h).value,Pl)}w()},complete:()=>m.finish(),cancel:w}}function Rz({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:De,pause:De,stop:De,then:i=>(i(),Promise.resolve()),cancel:De,complete:De});return t?Wu({keyframes:[0,1],duration:0,delay:t,onComplete:o}):o()}const $z={type:"spring",stiffness:500,damping:25,restSpeed:10},Mz=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),Oz={type:"keyframes",duration:.8},zz={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},Lz=(e,{keyframes:t})=>t.length>2?Oz:$o.has(e)?e.startsWith("scale")?Mz(t[1]):$z:zz,_p=(e,t)=>e==="zIndex"?!1:!!(typeof t=="number"||Array.isArray(t)||typeof t=="string"&&(Wn.test(t)||t==="0")&&!t.startsWith("url(")),Dz=new Set(["brightness","contrast","saturate","opacity"]);function Iz(e){const[t,r]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[n]=r.match(Dc)||[];if(!n)return e;const o=r.replace(n,"");let i=Dz.has(t)?1:0;return n!==r&&(i*=100),t+"("+i+o+")"}const jz=/([a-z-]*)\(.*?\)/g,Tp={...Wn,getAnimatableNone:e=>{const t=e.match(jz);return t?t.map(Iz).join(" "):e}},Fz={...VS,color:ft,backgroundColor:ft,outlineColor:ft,fill:ft,stroke:ft,borderColor:ft,borderTopColor:ft,borderRightColor:ft,borderBottomColor:ft,borderLeftColor:ft,filter:Tp,WebkitFilter:Tp},Tm=e=>Fz[e];function Aw(e,t){let r=Tm(e);return r!==Tp&&(r=Wn),r.getAnimatableNone?r.getAnimatableNone(t):void 0}const Rw=e=>/^0[^.\s]+$/.test(e);function Bz(e){if(typeof e=="number")return e===0;if(e!==null)return e==="none"||e==="0"||Rw(e)}function Nz(e,t,r,n){const o=_p(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=$w(n,e)||{},s=i.delay||n.delay||0;let{elapsed:a=0}=n;a=a-Fn(s);const l=Nz(t,e,r,i),u=l[0],c=l[l.length-1],d=_p(e,u),f=_p(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(Vz(i)||(p={...p,...Lz(e,p)}),p.duration&&(p.duration=Fn(p.duration)),p.repeatDelay&&(p.repeatDelay=Fn(p.repeatDelay)),!d||!f||jO.current||i.type===!1)return Rz(p);if(t.owner&&t.owner.current instanceof HTMLElement&&!t.owner.getProps().onUpdate){const m=Az(t,e,p);if(m)return m}return Wu(p)};function Uu(e){return!!(At(e)&&e.add)}const Mw=e=>/^\-?\d*\.?\d+$/.test(e);function Rm(e,t){e.indexOf(t)===-1&&e.push(t)}function $m(e,t){const r=e.indexOf(t);r>-1&&e.splice(r,1)}class Mm{constructor(){this.subscriptions=[]}add(t){return Rm(this.subscriptions,t),()=>$m(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 Wz{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}=Xe;this.lastUpdated!==s&&(this.timeDelta=i,this.lastUpdated=s,xe.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=()=>xe.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=Hz(this.current),this.owner=r.owner}onChange(t){return this.on("change",t)}on(t,r){this.events[t]||(this.events[t]=new Mm);const n=this.events[t].add(r);return t==="change"?()=>{n(),xe.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?Ew(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 Oi(e,t){return new Wz(e,t)}const Ow=e=>t=>t.test(e),Uz={test:e=>e==="auto",parse:e=>e},zw=[Mo,K,zr,xn,QM,YM,Uz],ls=e=>zw.find(Ow(e)),Gz=[...zw,ft,Wn],Kz=e=>Gz.find(Ow(e));function Xz(e,t,r){e.hasValue(t)?e.getValue(t).set(r):e.addValue(t,Oi(r))}function qz(e,t){const r=jc(e,t);let{transitionEnd:n={},transition:o={},...i}=r?e.makeTargetAnimatable(r,!1):{};i={...i,...n};for(const s in i){const a=dO(i[s]);Xz(e,s,a)}}function Yz(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(y)}return s&&Promise.all(u).then(()=>{s&&qz(e,s)}),u}function Ap(e,t,r={}){const n=jc(e,t,r.custom);let{transition:o=e.getDefaultTransition()||{}}=n||{};r.transitionOverride&&(o=r.transitionOverride);const i=n?()=>Promise.all(Lw(e,n,r)):()=>Promise.resolve(),s=e.variantChildren&&e.variantChildren.size?(l=0)=>{const{delayChildren:u=0,staggerChildren:c,staggerDirection:d}=o;return e8(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 e8(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(t8).forEach((u,c)=>{u.notify("AnimationStart",t),s.push(Ap(u,t,{...i,delay:r+l(c)}).then(()=>u.notify("AnimationComplete",t)))}),Promise.all(s)}function t8(e,t){return e.sortNodePosition(t)}function r8(e,t,r={}){e.notify("AnimationStart",t);let n;if(Array.isArray(t)){const o=t.map(i=>Ap(e,i,r));n=Promise.all(o)}else if(typeof t=="string")n=Ap(e,t,r);else{const o=typeof t=="function"?jc(e,t,r.custom):t;n=Promise.all(Lw(e,o,r))}return n.then(()=>e.notify("AnimationComplete",t))}const n8=[...pm].reverse(),o8=pm.length;function i8(e){return t=>Promise.all(t.map(({animation:r,options:n})=>r8(e,r,n)))}function s8(e){let t=i8(e);const r=l8();let n=!0;const o=(l,u)=>{const c=jc(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={},y=1/0;for(let g=0;gy&&_;const M=Array.isArray(S)?S:[S];let F=M.reduce(o,{});T===!1&&(F={});const{prevResolvedValues:q={}}=v,X={...q,...F},Y=J=>{O=!0,p.delete(J),v.needsAnimating[J]=!0};for(const J in X){const Z=F[J],z=q[J];m.hasOwnProperty(J)||(Z!==z?Nu(Z)&&Nu(z)?!nw(Z,z)||A?Y(J):v.protectedKeys[J]=!0:Z!==void 0?Y(J):p.add(J):Z!==void 0&&p.has(J)?Y(J):v.protectedKeys[J]=!0)}v.prevProp=S,v.prevResolvedValues=F,v.isActive&&(m={...m,...F}),n&&e.blockInitialAnimation&&(O=!1),O&&!E&&f.push(...M.map(J=>({animation:J,options:{type:h,...l}})))}if(p.size){const g={};p.forEach(h=>{const v=e.getBaseTarget(h);v!==void 0&&(g[h]=v)}),f.push({animation:g})}let w=!!f.length;return n&&c.initial===!1&&!e.manuallyAnimateOnMount&&(w=!1),n=!1,w?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 a8(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!nw(t,e):!1}function ro(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function l8(){return{animate:ro(!0),whileInView:ro(),whileHover:ro(),whileTap:ro(),whileDrag:ro(),whileFocus:ro(),exit:ro()}}class u8 extends qn{constructor(t){super(t),t.animationState||(t.animationState=s8(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();this.unmount(),zc(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 c8=0;class d8 extends qn{constructor(){super(...arguments),this.id=c8++}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 f8={animation:{Feature:u8},exit:{Feature:d8}},Xv=(e,t)=>Math.abs(e-t);function p8(e,t){const r=Xv(e.x,t.x),n=Xv(e.y,t.y);return Math.sqrt(r**2+n**2)}class Dw{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=lf(this.lastMoveEventInfo,this.history),c=this.startEvent!==null,d=p8(u.offset,{x:0,y:0})>=3;if(!c&&!d)return;const{point:f}=u,{timestamp:p}=Xe;this.history.push({...f,timestamp:p});const{onStart:m,onMove:y}=this.handlers;c||(m&&m(this.lastMoveEvent,u),this.startEvent=this.lastMoveEvent),y&&y(this.lastMoveEvent,u)},this.handlePointerMove=(u,c)=>{this.lastMoveEvent=u,this.lastMoveEventInfo=af(c,this.transformPagePoint),xe.update(this.updatePoint,!0)},this.handlePointerUp=(u,c)=>{if(this.end(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const{onEnd:d,onSessionEnd:f}=this.handlers,p=lf(u.type==="pointercancel"?this.lastMoveEventInfo:af(c,this.transformPagePoint),this.history);this.startEvent&&d&&d(u,p),f&&f(u,p)},!ZS(t))return;this.handlers=r,this.transformPagePoint=n;const o=Ic(t),i=af(o,this.transformPagePoint),{point:s}=i,{timestamp:a}=Xe;this.history=[{...s,timestamp:a}];const{onSessionStart:l}=r;l&&l(t,lf(i,this.history)),this.removeListeners=jn(tn(window,"pointermove",this.handlePointerMove),tn(window,"pointerup",this.handlePointerUp),tn(window,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),cn(this.updatePoint)}}function af(e,t){return t?{point:t(e.point)}:e}function qv(e,t){return{x:e.x-t.x,y:e.y-t.y}}function lf({point:e},t){return{point:e,delta:qv(e,Iw(t)),offset:qv(e,h8(t)),velocity:m8(t,.1)}}function h8(e){return e[0]}function Iw(e){return e[e.length-1]}function m8(e,t){if(e.length<2)return{x:0,y:0};let r=e.length-1,n=null;const o=Iw(e);for(;r>=0&&(n=e[r],!(o.timestamp-n.timestamp>Fn(t)));)r--;if(!n)return{x:0,y:0};const i=rn(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 Ft(e){return e.max-e.min}function Rp(e,t=0,r=.01){return Math.abs(e-t)<=r}function Yv(e,t,r,n=.5){e.origin=n,e.originPoint=$e(t.min,t.max,e.origin),e.scale=Ft(r)/Ft(t),(Rp(e.scale,1,1e-4)||isNaN(e.scale))&&(e.scale=1),e.translate=$e(r.min,r.max,e.origin)-e.originPoint,(Rp(e.translate)||isNaN(e.translate))&&(e.translate=0)}function Bs(e,t,r,n){Yv(e.x,t.x,r.x,n?n.originX:void 0),Yv(e.y,t.y,r.y,n?n.originY:void 0)}function Qv(e,t,r){e.min=r.min+t.min,e.max=e.min+Ft(t)}function g8(e,t,r){Qv(e.x,t.x,r.x),Qv(e.y,t.y,r.y)}function Zv(e,t,r){e.min=t.min-r.min,e.max=e.min+Ft(t)}function Ns(e,t,r){Zv(e.x,t.x,r.x),Zv(e.y,t.y,r.y)}function v8(e,{min:t,max:r},n){return t!==void 0&&er&&(e=n?$e(r,e,n.max):Math.min(e,r)),e}function Jv(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 y8(e,{top:t,left:r,bottom:n,right:o}){return{x:Jv(e.x,r,o),y:Jv(e.y,t,n)}}function ey(e,t){let r=t.min-e.min,n=t.max-e.max;return t.max-t.minn?r=ya(t.min,t.max-n,e.min):n>o&&(r=ya(e.min,e.max-o,t.min)),Hn(0,1,r)}function S8(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 $p=.35;function w8(e=$p){return e===!1?e=0:e===!0&&(e=$p),{x:ty(e,"left","right"),y:ty(e,"top","bottom")}}function ty(e,t,r){return{min:ry(e,t),max:ry(e,r)}}function ry(e,t){return typeof e=="number"?e:e[t]||0}const ny=()=>({translate:0,scale:1,origin:0,originPoint:0}),ui=()=>({x:ny(),y:ny()}),oy=()=>({min:0,max:0}),Be=()=>({x:oy(),y:oy()});function Pr(e){return[e("x"),e("y")]}function jw({top:e,left:t,right:r,bottom:n}){return{x:{min:t,max:r},y:{min:e,max:n}}}function k8({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function C8(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 uf(e){return e===void 0||e===1}function Mp({scale:e,scaleX:t,scaleY:r}){return!uf(e)||!uf(t)||!uf(r)}function io(e){return Mp(e)||Fw(e)||e.z||e.rotate||e.rotateX||e.rotateY}function Fw(e){return iy(e.x)||iy(e.y)}function iy(e){return e&&e!=="0%"}function Gu(e,t,r){const n=e-r,o=t*n;return r+o}function sy(e,t,r,n,o){return o!==void 0&&(e=Gu(e,o,n)),Gu(e,r,n)+t}function Op(e,t=0,r=1,n,o){e.min=sy(e.min,t,r,n,o),e.max=sy(e.max,t,r,n,o)}function Bw(e,{x:t,y:r}){Op(e.x,t.translate,t.scale,t.originPoint),Op(e.y,r.translate,r.scale,r.originPoint)}function P8(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 kn(e,t){e.min=e.min+t,e.max=e.max+t}function ly(e,t,[r,n,o]){const i=t[o]!==void 0?t[o]:.5,s=$e(e.min,e.max,i);Op(e,t[r],t[n],s,t.scale)}const E8=["x","scaleX","originX"],_8=["y","scaleY","originY"];function ci(e,t){ly(e.x,t,E8),ly(e.y,t,_8)}function Nw(e,t){return jw(C8(e.getBoundingClientRect(),t))}function T8(e,t,r){const n=Nw(e,r),{scroll:o}=t;return o&&(kn(n.x,o.offset.x),kn(n.y,o.offset.y)),n}const A8=new WeakMap;class R8{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=Be(),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(Ic(l,"page").point)},i=(l,u)=>{const{drag:c,dragPropagation:d,onDragStart:f}=this.getProps();if(c&&!d&&(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=ew(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),Pr(m=>{let y=this.getAxisMotionValue(m).get()||0;if(zr.test(y)){const{projection:w}=this.visualElement;if(w&&w.layout){const g=w.layout.layoutBox[m];g&&(y=Ft(g)*(parseFloat(y)/100))}}this.originPoint[m]=y}),f&&xe.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=$8(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 Dw(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&&xe.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||!El(t,o,this.currentDirection))return;const i=this.getAxisMotionValue(t);let s=this.originPoint[t]+n[t];this.constraints&&this.constraints[t]&&(s=v8(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&&ai(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):t&&n?this.constraints=y8(n.layoutBox,t):this.constraints=!1,this.elastic=w8(r),o!==this.constraints&&n&&this.constraints&&!this.hasMutatedConstraints&&Pr(i=>{this.getAxisMotionValue(i)&&(this.constraints[i]=S8(n.layoutBox[i],this.constraints[i]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:r}=this.getProps();if(!t||!ai(t))return!1;const n=t.current,{projection:o}=this.visualElement;if(!o||!o.layout)return!1;const i=T8(n,o.root,this.visualElement.getTransformPagePoint());let s=b8(o.layout.layoutBox,i);if(r){const a=r(k8(s));this.hasMutatedConstraints=!!a,a&&(s=jw(a))}return s}startAnimation(t){const{drag:r,dragMomentum:n,dragElastic:o,dragTransition:i,dragSnapToOrigin:s,onDragTransitionEnd:a}=this.getProps(),l=this.constraints||{},u=Pr(c=>{if(!El(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(Am(t,n,0,r))}stopAnimation(){Pr(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){Pr(r=>{const{drag:n}=this.getProps();if(!El(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(!ai(r)||!n||!this.constraints)return;this.stopAnimation();const o={x:0,y:0};Pr(s=>{const a=this.getAxisMotionValue(s);if(a){const l=a.get();o[s]=x8({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(),Pr(s=>{if(!El(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;A8.set(this.visualElement,this);const t=this.visualElement.current,r=tn(t,"pointerdown",l=>{const{drag:u,dragListener:c=!0}=this.getProps();u&&c&&this.start(l)}),n=()=>{const{dragConstraints:l}=this.getProps();ai(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=Qr(window,"resize",()=>this.scalePositionWithinConstraints()),a=o.addEventListener("didUpdate",({delta:l,hasLayoutChanged:u})=>{this.isDragging&&u&&(Pr(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=$p,dragMomentum:a=!0}=t;return{...t,drag:r,dragDirectionLock:n,dragPropagation:o,dragConstraints:i,dragElastic:s,dragMomentum:a}}}function El(e,t,r){return(t===!0||t===e)&&(r===null||r===e)}function $8(e,t=10){let r=null;return Math.abs(e.y)>t?r="y":Math.abs(e.x)>t&&(r="x"),r}class M8 extends qn{constructor(t){super(t),this.removeGroupControls=De,this.removeListeners=De,this.controls=new R8(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||De}unmount(){this.removeGroupControls(),this.removeListeners()}}const uy=e=>(t,r)=>{e&&xe.update(()=>e(t,r))};class O8 extends qn{constructor(){super(...arguments),this.removePointerDownListener=De}onPointerDown(t){this.session=new Dw(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint()})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:r,onPan:n,onPanEnd:o}=this.node.getProps();return{onSessionStart:uy(t),onStart:uy(r),onMove:n,onEnd:(i,s)=>{delete this.session,o&&xe.update(()=>o(i,s))}}}mount(){this.removePointerDownListener=tn(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 z8(){const e=x.useContext(Ra);if(e===null)return[!0,null];const{isPresent:t,onExitComplete:r,register:n}=e,o=x.useId();return x.useEffect(()=>n(o),[]),!t&&r?[!1,()=>r&&r(o)]:[!0]}function L8(){return D8(x.useContext(Ra))}function D8(e){return e===null?!0:e.isPresent}const eu={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function cy(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const us={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(K.test(e))e=parseFloat(e);else return e;const r=cy(e,t.target.x),n=cy(e,t.target.y);return`${r}% ${n}%`}},I8={correct:(e,{treeScale:t,projectionDelta:r})=>{const n=e,o=Wn.parse(e);if(o.length>5)return n;const i=Wn.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 j8 extends zt.Component{componentDidMount(){const{visualElement:t,layoutGroup:r,switchLayoutGroup:n,layoutId:o}=this.props,{projection:i}=t;HM(F8),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()})),eu.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()||xe.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 Vw(e){const[t,r]=z8(),n=x.useContext(mm);return zt.createElement(j8,{...e,layoutGroup:n,switchLayoutGroup:x.useContext(IS),isPresent:t,safeToRemove:r})}const F8={borderRadius:{...us,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:us,borderTopRightRadius:us,borderBottomLeftRadius:us,borderBottomRightRadius:us,boxShadow:I8},Hw=["TopLeft","TopRight","BottomLeft","BottomRight"],B8=Hw.length,dy=e=>typeof e=="string"?parseFloat(e):e,fy=e=>typeof e=="number"||K.test(e);function N8(e,t,r,n,o,i){o?(e.opacity=$e(0,r.opacity!==void 0?r.opacity:1,V8(n)),e.opacityExit=$e(t.opacity!==void 0?t.opacity:1,0,H8(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(ya(e,t,n))}function hy(e,t){e.min=t.min,e.max=t.max}function Qt(e,t){hy(e.x,t.x),hy(e.y,t.y)}function my(e,t,r,n,o){return e-=t,e=Gu(e,1/r,n),o!==void 0&&(e=Gu(e,1/o,n)),e}function W8(e,t=0,r=1,n=.5,o,i=e,s=e){if(zr.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=my(e.min,t,r,a,o),e.max=my(e.max,t,r,a,o)}function gy(e,t,[r,n,o],i,s){W8(e,t[r],t[n],t[o],t.scale,i,s)}const U8=["x","scaleX","originX"],G8=["y","scaleY","originY"];function vy(e,t,r,n){gy(e.x,t,U8,r?r.x:void 0,n?n.x:void 0),gy(e.y,t,G8,r?r.y:void 0,n?n.y:void 0)}function yy(e){return e.translate===0&&e.scale===1}function Uw(e){return yy(e.x)&&yy(e.y)}function K8(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 Gw(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 by(e){return Ft(e.x)/Ft(e.y)}class X8{constructor(){this.members=[]}add(t){Rm(this.members,t),t.scheduleRender()}remove(t){if($m(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 xy(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 q8=(e,t)=>e.depth-t.depth;class Y8{constructor(){this.children=[],this.isDirty=!1}add(t){Rm(this.children,t),this.isDirty=!0}remove(t){$m(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(q8),this.isDirty=!1,this.children.forEach(t)}}function Q8(e,t){const r=performance.now(),n=({timestamp:o})=>{const i=o-r;i>=t&&(cn(n),e(i-t))};return xe.read(n,!0),()=>cn(n)}function Z8(e){window.MotionDebug&&window.MotionDebug.record(e)}function J8(e){return e instanceof SVGElement&&e.tagName!=="svg"}function eL(e,t,r){const n=At(e)?e:Oi(e);return n.start(Am("",n,t,r)),n.animation}const Sy=["","X","Y","Z"],wy=1e3;let tL=0;const so={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0};function Kw({attachResizeListener:e,defaultParent:t,measureScroll:r,checkIsScrollRoot:n,resetTransform:o}){return class{constructor(s={},a=t==null?void 0:t()){this.id=tL++,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=()=>{so.totalNodes=so.resolvedTargetDeltas=so.recalculatedProjection=0,this.nodes.forEach(oL),this.nodes.forEach(uL),this.nodes.forEach(cL),this.nodes.forEach(iL),Z8(so)},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=Q8(f,250),eu.hasAnimatedSinceResize&&(eu.hasAnimatedSinceResize=!1,this.nodes.forEach(Cy))})}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 y=this.options.transition||c.getDefaultTransition()||mL,{onLayoutAnimationStart:w,onLayoutAnimationComplete:g}=c.getProps(),h=!this.targetLayout||!Gw(this.targetLayout,m)||p,v=!f&&p;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||v||f&&(h||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(d,v);const S={...$w(y,"layout"),onPlay:w,onComplete:g};(c.shouldReduceMotion||this.options.layoutRoot)&&(S.delay=0,S.type=!1),this.startAnimation(S)}else f||Cy(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,cn(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(dL),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(sL),this.sharedNodes.forEach(fL)}scheduleUpdateProjection(){xe.preRender(this.updateProjection,!1,!0)}scheduleCheckAfterUnmount(){xe.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 _=S/1e3;Py(d.x,s.x,_),Py(d.y,s.y,_),this.setTargetDelta(d),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Ns(f,this.layout.layoutBox,this.relativeParent.layout.layoutBox),pL(this.relativeTarget,this.relativeTargetOrigin,f,_),v&&K8(this.relativeTarget,v)&&(this.isProjectionDirty=!1),v||(v=Be()),Qt(v,this.relativeTarget)),y&&(this.animationValues=c,N8(c,u,this.latestValues,_,h,g)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=_},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&&(cn(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=xe.update(()=>{eu.hasAnimatedSinceResize=!0,this.currentAnimation=eL(0,wy,{...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(wy),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&&Xw(this.options.animationType,this.layout.layoutBox,u.layoutBox)){l=this.target||Be();const d=Ft(this.layout.layoutBox.x);l.x.min=s.target.x.min,l.x.max=l.x.min+d;const f=Ft(this.layout.layoutBox.y);l.y.min=s.target.y.min,l.y.max=l.y.min+f}Qt(a,l),ci(a,c),Bs(this.projectionDeltaWithTransform,this.layoutCorrected,a,c)}}registerSharedNode(s,a){this.sharedNodes.has(s)||this.sharedNodes.set(s,new X8),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(ky),this.root.sharedNodes.clear()}}}function rL(e){e.updateLayout()}function nL(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"?Pr(d=>{const f=s?r.measuredBox[d]:r.layoutBox[d],p=Ft(f);f.min=n[d].min,f.max=f.min+p}):Xw(i,r.layoutBox,n)&&Pr(d=>{const f=s?r.measuredBox[d]:r.layoutBox[d],p=Ft(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=ui();Bs(a,n,r.layoutBox);const l=ui();s?Bs(l,e.applyTransform(o,!0),r.measuredBox):Bs(l,n,r.layoutBox);const u=!Uw(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=Be();Ns(m,r.layoutBox,f.layoutBox);const y=Be();Ns(y,n,p.layoutBox),Gw(m,y)||(c=!0),d.options.layoutRoot&&(e.relativeTarget=y,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 oL(e){so.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 iL(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function sL(e){e.clearSnapshot()}function ky(e){e.clearMeasurements()}function aL(e){e.isLayoutDirty=!1}function lL(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function Cy(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function uL(e){e.resolveTargetDelta()}function cL(e){e.calcProjection()}function dL(e){e.resetRotation()}function fL(e){e.removeLeadSnapshot()}function Py(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 Ey(e,t,r,n){e.min=$e(t.min,r.min,n),e.max=$e(t.max,r.max,n)}function pL(e,t,r,n){Ey(e.x,t.x,r.x,n),Ey(e.y,t.y,r.y,n)}function hL(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const mL={duration:.45,ease:[.4,0,.1,1]},_y=e=>typeof navigator<"u"&&navigator.userAgent.toLowerCase().includes(e),Ty=_y("applewebkit/")&&!_y("chrome/")?Math.round:De;function Ay(e){e.min=Ty(e.min),e.max=Ty(e.max)}function gL(e){Ay(e.x),Ay(e.y)}function Xw(e,t,r){return e==="position"||e==="preserve-aspect"&&!Rp(by(t),by(r),.2)}const vL=Kw({attachResizeListener:(e,t)=>Qr(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),cf={current:void 0},qw=Kw({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!cf.current){const e=new vL({});e.mount(window),e.setOptions({layoutScroll:!0}),cf.current=e}return cf.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),yL={pan:{Feature:O8},drag:{Feature:M8,ProjectionNode:qw,MeasureLayout:Vw}},bL=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/;function xL(e){const t=bL.exec(e);if(!t)return[,];const[,r,n]=t;return[r,n]}function zp(e,t,r=1){const[n,o]=xL(e);if(!n)return;const i=window.getComputedStyle(t).getPropertyValue(n);if(i){const s=i.trim();return Mw(s)?parseFloat(s):s}else return kp(o)?zp(o,t,r+1):o}function SL(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(!kp(i))return;const s=zp(i,n);s&&o.set(s)});for(const o in t){const i=t[o];if(!kp(i))continue;const s=zp(i,n);s&&(t[o]=s,r||(r={}),r[o]===void 0&&(r[o]=i))}return{target:t,transitionEnd:r}}const wL=new Set(["width","height","top","left","right","bottom","x","y","translateX","translateY"]),Yw=e=>wL.has(e),kL=e=>Object.keys(e).some(Yw),Ry=e=>e===Mo||e===K,$y=(e,t)=>parseFloat(e.split(", ")[t]),My=(e,t)=>(r,{transform:n})=>{if(n==="none"||!n)return 0;const o=n.match(/^matrix3d\((.+)\)$/);if(o)return $y(o[1],t);{const i=n.match(/^matrix\((.+)\)$/);return i?$y(i[1],e):0}},CL=new Set(["x","y","z"]),PL=$a.filter(e=>!CL.has(e));function EL(e){const t=[];return PL.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 zi={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:My(4,13),y:My(5,14)};zi.translateX=zi.x;zi.translateY=zi.y;const _L=(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]=zi[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]=zi[u](l,i)}),e},TL=(e,t,r={},n={})=>{t={...t},n={...n};const o=Object.keys(t).filter(Yw);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=ls(c);const f=t[l];let p;if(Nu(f)){const m=f.length,y=f[0]===null?1:0;c=f[y],d=ls(c);for(let w=y;w=0?window.pageYOffset:null,u=_L(t,e,a);return i.length&&i.forEach(([c,d])=>{e.getValue(c).set(d)}),e.render(),Oc&&l!==null&&window.scrollTo({top:l}),{target:u,transitionEnd:n}}else return{target:t,transitionEnd:n}};function AL(e,t,r,n){return kL(t)?TL(e,t,r,n):{target:t,transitionEnd:n}}const RL=(e,t,r,n)=>{const o=SL(e,t,n);return t=o.target,n=o.transitionEnd,AL(e,t,r,n)},Lp={current:null},Qw={current:!1};function $L(){if(Qw.current=!0,!!Oc)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>Lp.current=e.matches;e.addListener(t),t()}else Lp.current=!1}function ML(e,t,r){const{willChange:n}=t;for(const o in t){const i=t[o],s=r[o];if(At(i))e.addValue(o,i),Uu(n)&&n.add(o);else if(At(s))e.addValue(o,Oi(i,{owner:e})),Uu(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,Oi(a!==void 0?a:i,{owner:e}))}}for(const o in r)t[o]===void 0&&e.removeValue(o);return t}const Oy=new WeakMap,Zw=Object.keys(va),OL=Zw.length,zy=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],zL=hm.length;class LL{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=()=>xe.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=Lc(r),this.isVariantNode=DS(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&&At(f)&&(f.set(a[d],!1),Uu(u)&&u.add(d))}}scrapeMotionValuesFromProps(t,r){return{}}mount(t){this.current=t,Oy.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)),Qw.current||$L(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:Lp.current,this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){Oy.delete(this.current),this.projection&&this.projection.unmount(),cn(this.notifyUpdate),cn(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=$o.has(t),o=r.on("change",s=>{this.latestValues[t]=s,this.props.onUpdate&&xe.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):Be()}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=Oi(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=km(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&&!At(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 Mm),this.events[t].add(r)}notify(t,...r){this.events[t]&&this.events[t].notify(...r)}}class Jw extends LL{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=Zz(n,t||{},this);if(o&&(r&&(r=o(r)),n&&(n=o(n)),s&&(s=o(s))),i){Yz(this,n,s);const a=RL(this,n,s,r);r=a.transitionEnd,n=a.target}return{transition:t,transitionEnd:r,...n}}}function DL(e){return window.getComputedStyle(e)}class IL extends Jw{readValueFromInstance(t,r){if($o.has(r)){const n=Tm(r);return n&&n.default||0}else{const n=DL(t),o=(BS(r)?n.getPropertyValue(r):n[r])||0;return typeof o=="string"?o.trim():o}}measureInstanceViewportBox(t,{transformPagePoint:r}){return Nw(t,r)}build(t,r,n,o){vm(t,r,n,o.transformTemplate)}scrapeMotionValuesFromProps(t,r){return wm(t,r)}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;At(t)&&(this.childSubscription=t.on("change",r=>{this.current&&(this.current.textContent=`${r}`)}))}renderInstance(t,r,n,o){GS(t,r,n,o)}}class jL extends Jw{constructor(){super(...arguments),this.isSVGTag=!1}getBaseTargetFromProps(t,r){return t[r]}readValueFromInstance(t,r){if($o.has(r)){const n=Tm(r);return n&&n.default||0}return r=KS.has(r)?r:Sm(r),t.getAttribute(r)}measureInstanceViewportBox(){return Be()}scrapeMotionValuesFromProps(t,r){return qS(t,r)}build(t,r,n,o){bm(t,r,n,this.isSVGTag,o.transformTemplate)}renderInstance(t,r,n,o){XS(t,r,n,o)}mount(t){this.isSVGTag=xm(t.tagName),super.mount(t)}}const FL=(e,t)=>gm(e)?new jL(t,{enableHardwareAcceleration:!1}):new IL(t,{enableHardwareAcceleration:!0}),BL={layout:{ProjectionNode:qw,MeasureLayout:Vw}},NL={...f8,...MO,...yL,...BL},e2=NM((e,t)=>bO(e,t,NL,FL));function t2(){const e=x.useRef(!1);return fm(()=>(e.current=!0,()=>{e.current=!1}),[]),e}function VL(){const e=t2(),[t,r]=x.useState(0),n=x.useCallback(()=>{e.current&&r(t+1)},[t]);return[x.useCallback(()=>xe.postRender(n),[n]),t]}class HL extends x.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 WL({children:e,isPresent:t}){const r=x.useId(),n=x.useRef(null),o=x.useRef({width:0,height:0,top:0,left:0});return x.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; - height: ${s}px !important; - top: ${a}px !important; - left: ${l}px !important; - } - `),()=>{document.head.removeChild(u)}},[t]),x.createElement(HL,{isPresent:t,childRef:n,sizeRef:o},x.cloneElement(e,{ref:n}))}const df=({children:e,initial:t,isPresent:r,onExitComplete:n,custom:o,presenceAffectsLayout:i,mode:s})=>{const a=YS(UL),l=x.useId(),u=x.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 x.useMemo(()=>{a.forEach((c,d)=>a.set(d,!1))},[r]),x.useEffect(()=>{!r&&!a.size&&n&&n()},[r]),s==="popLayout"&&(e=x.createElement(WL,{isPresent:r},e)),x.createElement(Ra.Provider,{value:u},e)};function UL(){return new Map}function GL(e){return x.useEffect(()=>()=>e(),[])}const Vo=e=>e.key||"";function KL(e,t){e.forEach(r=>{const n=Vo(r);t.set(n,r)})}function XL(e){const t=[];return x.Children.forEach(e,r=>{x.isValidElement(r)&&t.push(r)}),t}const qL=({children:e,custom:t,initial:r=!0,onExitComplete:n,exitBeforeEnter:o,presenceAffectsLayout:i=!0,mode:s="sync"})=>{const a=x.useContext(mm).forceRender||VL()[0],l=t2(),u=XL(e);let c=u;const d=x.useRef(new Map).current,f=x.useRef(c),p=x.useRef(new Map).current,m=x.useRef(!0);if(fm(()=>{m.current=!1,KL(u,p),f.current=c}),GL(()=>{m.current=!0,p.clear(),d.clear()}),m.current)return x.createElement(x.Fragment,null,c.map(h=>x.createElement(df,{key:Vo(h),isPresent:!0,initial:r?void 0:!1,presenceAffectsLayout:i,mode:s},h)));c=[...c];const y=f.current.map(Vo),w=u.map(Vo),g=y.length;for(let h=0;h{if(w.indexOf(v)!==-1)return;const S=p.get(v);if(!S)return;const _=y.indexOf(v);let T=h;if(!T){const E=()=>{p.delete(v),d.delete(v);const A=f.current.findIndex(O=>O.key===v);if(f.current.splice(A,1),!d.size){if(f.current=u,l.current===!1)return;a(),n&&n()}};T=x.createElement(df,{key:Vo(S),isPresent:!1,onExitComplete:E,custom:t,presenceAffectsLayout:i,mode:s},S),d.set(v,T)}c.splice(_,0,T)}),c=c.map(h=>{const v=h.key;return d.has(v)?h:x.createElement(df,{key:Vo(h),isPresent:!0,presenceAffectsLayout:i,mode:s},h)}),x.createElement(x.Fragment,null,d.size?c:c.map(h=>x.cloneElement(h)))};var YL={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]}}},r2=x.memo(e=>{const{id:t,message:r,onCloseComplete:n,onRequestRemove:o,requestClose:i=!1,position:s="bottom",duration:a=5e3,containerStyle:l,motionVariants:u=YL,toastSpacing:c="0.5rem"}=e,[d,f]=x.useState(a),p=L8();Mi(()=>{p||n==null||n()},[p]),Mi(()=>{f(a)},[a]);const m=()=>f(null),y=()=>f(a),w=()=>{p&&o()};x.useEffect(()=>{p&&i&&o()},[p,i,o]),MM(w,d);const g=x.useMemo(()=>({pointerEvents:"auto",maxWidth:560,minWidth:300,margin:c,...l}),[l,c]),h=x.useMemo(()=>RM(s),[s]);return k.jsx(e2.div,{layout:!0,className:"chakra-toast",variants:u,initial:"initial",animate:"animate",exit:"exit",onHoverStart:m,onHoverEnd:y,custom:{position:s},style:h,children:k.jsx(Q.div,{role:"status","aria-atomic":"true",className:"chakra-toast__inner",__css:g,children:qr(r,{id:t,onClose:w})})})});r2.displayName="ToastComponent";var Ly={path:k.jsxs("g",{stroke:"currentColor",strokeWidth:"1.5",children:[k.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"}),k.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"}),k.jsx("circle",{fill:"none",strokeMiterlimit:"10",cx:"12",cy:"12",r:"11.25"})]}),viewBox:"0 0 24 24"},Oo=ne((e,t)=>{const{as:r,viewBox:n,color:o="currentColor",focusable:i=!1,children:s,className:a,__css:l,...u}=e,c=Ee("chakra-icon",a),d=Xn("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 k.jsx(Q.svg,{as:r,...p,...u});const y=s??Ly.path;return k.jsx(Q.svg,{verticalAlign:"middle",viewBox:m,...p,...u,children:y})});Oo.displayName="Icon";function QL(e){return k.jsx(Oo,{viewBox:"0 0 24 24",...e,children:k.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 ZL(e){return k.jsx(Oo,{viewBox:"0 0 24 24",...e,children:k.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 Dy(e){return k.jsx(Oo,{viewBox:"0 0 24 24",...e,children:k.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 JL=em({"0%":{transform:"rotate(0deg)"},"100%":{transform:"rotate(360deg)"}}),Fc=ne((e,t)=>{const r=Xn("Spinner",e),{label:n="Loading...",thickness:o="2px",speed:i="0.45s",emptyColor:s="transparent",className:a,...l}=Wt(e),u=Ee("chakra-spinner",a),c={display:"inline-block",borderColor:"currentColor",borderStyle:"solid",borderRadius:"99999px",borderWidth:o,borderBottomColor:s,borderLeftColor:s,animation:`${JL} ${i} linear infinite`,...r};return k.jsx(Q.div,{ref:t,__css:c,className:u,...l,children:n&&k.jsx(Q.span,{srOnly:!0,children:n})})});Fc.displayName="Spinner";var[eD,Om]=dr({name:"AlertContext",hookName:"useAlertContext",providerName:""}),[tD,zm]=dr({name:"AlertStylesContext",hookName:"useAlertStyles",providerName:""}),n2={info:{icon:ZL,colorScheme:"blue"},warning:{icon:Dy,colorScheme:"orange"},success:{icon:QL,colorScheme:"green"},error:{icon:Dy,colorScheme:"red"},loading:{icon:Fc,colorScheme:"blue"}};function rD(e){return n2[e].colorScheme}function nD(e){return n2[e].icon}var o2=ne(function(t,r){const n=zm(),{status:o}=Om(),i={display:"inline",...n.description};return k.jsx(Q.div,{ref:r,"data-status":o,...t,className:Ee("chakra-alert__desc",t.className),__css:i})});o2.displayName="AlertDescription";function i2(e){const{status:t}=Om(),r=nD(t),n=zm(),o=t==="loading"?n.spinner:n.icon;return k.jsx(Q.span,{display:"inherit","data-status":t,...e,className:Ee("chakra-alert__icon",e.className),__css:o,children:e.children||k.jsx(r,{h:"100%",w:"100%"})})}i2.displayName="AlertIcon";var s2=ne(function(t,r){const n=zm(),{status:o}=Om();return k.jsx(Q.div,{ref:r,"data-status":o,...t,className:Ee("chakra-alert__title",t.className),__css:n.title})});s2.displayName="AlertTitle";var a2=ne(function(t,r){var n;const{status:o="info",addRole:i=!0,...s}=Wt(t),a=(n=t.colorScheme)!=null?n:rD(o),l=Wi("Alert",{...t,colorScheme:a}),u={width:"100%",display:"flex",alignItems:"center",position:"relative",overflow:"hidden",...l.container};return k.jsx(eD,{value:{status:o},children:k.jsx(tD,{value:l,children:k.jsx(Q.div,{"data-status":o,role:i?"alert":void 0,ref:r,...s,className:Ee("chakra-alert",t.className),__css:u})})})});a2.displayName="Alert";function oD(e){return k.jsx(Oo,{focusable:"false","aria-hidden":!0,...e,children:k.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 l2=ne(function(t,r){const n=Xn("CloseButton",t),{children:o,isDisabled:i,__css:s,...a}=Wt(t),l={outline:0,display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0};return k.jsx(Q.button,{type:"button","aria-label":"Close",ref:r,disabled:i,__css:{...l,...n,...s},...a,children:o||k.jsx(oD,{width:"1em",height:"1em"})})});l2.displayName="CloseButton";var iD={top:[],"top-left":[],"top-right":[],"bottom-left":[],bottom:[],"bottom-right":[]},Vs=sD(iD);function sD(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=aD(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}=Rv(a,o);return l&&u!==-1&&(a[l][u]={...a[l][u],...i,message:uD(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=OS(i,o);return s?{...i,[s]:i[s].map(a=>a.id==o?{...a,requestClose:!0}:a)}:i})},isActive:o=>!!Rv(Vs.getState(),o).position}}var Iy=0;function aD(e,t={}){var r,n;Iy+=1;const o=(r=t.id)!=null?r:Iy,i=(n=t.position)!=null?n:"bottom";return{id:o,message:e,position:i,duration:t.duration,onCloseComplete:t.onCloseComplete,onRequestRemove:()=>Vs.removeToast(String(o),i),status:t.status,requestClose:!1,containerStyle:t.containerStyle}}var lD=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 k.jsxs(a2,{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:[k.jsx(i2,{children:u}),k.jsxs(Q.div,{flex:"1",maxWidth:"100%",children:[o&&k.jsx(s2,{id:c==null?void 0:c.title,children:o}),a&&k.jsx(o2,{id:c==null?void 0:c.description,display:"block",children:a})]}),i&&k.jsx(l2,{size:"sm",onClick:s,position:"absolute",insetEnd:1,top:1})]})};function uD(e={}){const{render:t,toastComponent:r=lD}=e;return o=>typeof t=="function"?t({...o,...e}):k.jsx(r,{...o,...e})}var[cD,h7]=dr({name:"ToastOptionsContext",strict:!1}),dD=e=>{const t=x.useSyncExternalStore(Vs.subscribe,Vs.getState,Vs.getState),{motionVariants:r,component:n=r2,portalProps:o}=e,s=Object.keys(t).map(a=>{const l=t[a];return k.jsx("div",{role:"region","aria-live":"polite","aria-label":"Notifications",id:`chakra-toast-manager-${a}`,style:$M(a),children:k.jsx(qL,{initial:!1,children:l.map(u=>k.jsx(n,{motionVariants:r,...u},u.id))})},a)});return k.jsx(Ec,{...o,children:s})},fD=e=>function({children:r,theme:n=e,toastOptions:o,...i}){return k.jsxs(TM,{theme:n,...i,children:[k.jsx(cD,{value:o==null?void 0:o.defaultOptions,children:r}),k.jsx(dD,{...o})]})},pD=fD(kS),hD=Object.defineProperty,mD=(e,t,r)=>t in e?hD(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,ze=(e,t,r)=>(mD(e,typeof t!="symbol"?t+"":t,r),r);function jy(e){return e.sort((t,r)=>{const n=t.compareDocumentPosition(r);if(n&Node.DOCUMENT_POSITION_FOLLOWING||n&Node.DOCUMENT_POSITION_CONTAINED_BY)return-1;if(n&Node.DOCUMENT_POSITION_PRECEDING||n&Node.DOCUMENT_POSITION_CONTAINS)return 1;if(n&Node.DOCUMENT_POSITION_DISCONNECTED||n&Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC)throw Error("Cannot sort the given nodes.");return 0})}var gD=e=>typeof e=="object"&&"nodeType"in e&&e.nodeType===Node.ELEMENT_NODE;function Fy(e,t,r){let n=e+1;return r&&n>=t&&(n=0),n}function By(e,t,r){let n=e-1;return r&&n<0&&(n=t),n}var Dp=typeof window<"u"?x.useLayoutEffect:x.useEffect,Ku=e=>e,vD=class{constructor(){ze(this,"descendants",new Map),ze(this,"register",e=>{if(e!=null)return gD(e)?this.registerNode(e):t=>{this.registerNode(t,e)}}),ze(this,"unregister",e=>{this.descendants.delete(e);const t=jy(Array.from(this.descendants.keys()));this.assignIndex(t)}),ze(this,"destroy",()=>{this.descendants.clear()}),ze(this,"assignIndex",e=>{this.descendants.forEach(t=>{const r=e.indexOf(t.node);t.index=r,t.node.dataset.index=t.index.toString()})}),ze(this,"count",()=>this.descendants.size),ze(this,"enabledCount",()=>this.enabledValues().length),ze(this,"values",()=>Array.from(this.descendants.values()).sort((t,r)=>t.index-r.index)),ze(this,"enabledValues",()=>this.values().filter(e=>!e.disabled)),ze(this,"item",e=>{if(this.count()!==0)return this.values()[e]}),ze(this,"enabledItem",e=>{if(this.enabledCount()!==0)return this.enabledValues()[e]}),ze(this,"first",()=>this.item(0)),ze(this,"firstEnabled",()=>this.enabledItem(0)),ze(this,"last",()=>this.item(this.descendants.size-1)),ze(this,"lastEnabled",()=>{const e=this.enabledValues().length-1;return this.enabledItem(e)}),ze(this,"indexOf",e=>{var t,r;return e&&(r=(t=this.descendants.get(e))==null?void 0:t.index)!=null?r:-1}),ze(this,"enabledIndexOf",e=>e==null?-1:this.enabledValues().findIndex(t=>t.node.isSameNode(e))),ze(this,"next",(e,t=!0)=>{const r=Fy(e,this.count(),t);return this.item(r)}),ze(this,"nextEnabled",(e,t=!0)=>{const r=this.item(e);if(!r)return;const n=this.enabledIndexOf(r.node),o=Fy(n,this.enabledCount(),t);return this.enabledItem(o)}),ze(this,"prev",(e,t=!0)=>{const r=By(e,this.count()-1,t);return this.item(r)}),ze(this,"prevEnabled",(e,t=!0)=>{const r=this.item(e);if(!r)return;const n=this.enabledIndexOf(r.node),o=By(n,this.enabledCount()-1,t);return this.enabledItem(o)}),ze(this,"registerNode",(e,t)=>{if(!e||this.descendants.has(e))return;const r=Array.from(this.descendants.keys()).concat(e),n=jy(r);t!=null&&t.disabled&&(t.disabled=!!t.disabled);const o={node:e,index:-1,...t};this.descendants.set(e,o),this.assignIndex(n)})}};function yD(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 lr(...e){return t=>{e.forEach(r=>{yD(r,t)})}}function bD(...e){return x.useMemo(()=>lr(...e),e)}function xD(){const e=x.useRef(new vD);return Dp(()=>()=>e.current.destroy()),e.current}var[SD,u2]=dr({name:"DescendantsProvider",errorMessage:"useDescendantsContext must be used within DescendantsProvider"});function wD(e){const t=u2(),[r,n]=x.useState(-1),o=x.useRef(null);Dp(()=>()=>{o.current&&t.unregister(o.current)},[]),Dp(()=>{if(!o.current)return;const s=Number(o.current.dataset.index);r!=s&&!Number.isNaN(s)&&n(s)});const i=Ku(e?t.register(e):t.register);return{descendants:t,index:r,enabledIndex:t.enabledIndexOf(o.current),register:lr(i,o)}}function kD(){return[Ku(SD),()=>Ku(u2()),()=>xD(),o=>wD(o)]}var Ip=ne(function(t,r){const{htmlWidth:n,htmlHeight:o,alt:i,...s}=t;return k.jsx("img",{width:n,height:o,ref:r,alt:i,...s})});Ip.displayName="NativeImage";function CD(e){const{loading:t,src:r,srcSet:n,onLoad:o,onError:i,crossOrigin:s,sizes:a,ignoreFallback:l}=e,[u,c]=x.useState("pending");x.useEffect(()=>{c(r?"loading":"pending")},[r]);const d=x.useRef(),f=x.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=y=>{p(),c("loaded"),o==null||o(y)},m.onerror=y=>{p(),c("failed"),i==null||i(y)},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 Jr(()=>{if(!l)return u==="loading"&&f(),()=>{p()}},[u,f,l]),l?"loaded":u}var PD=(e,t)=>e!=="loaded"&&t==="beforeLoadOrError"||e==="failed"&&t==="onError";function ED(e,t=[]){const r=Object.assign({},e);for(const n of t)n in r&&delete r[n];return r}var Bc=ne(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,y=n!==void 0||o!==void 0,w=u!=null||c||!y,g=CD({...t,crossOrigin:d,ignoreFallback:w}),h=PD(g,f),v={ref:r,objectFit:l,objectPosition:a,...w?m:ED(m,["onError","onLoad"])};return h?o||k.jsx(Q.img,{as:Ip,className:"chakra-image__placeholder",src:n,...v}):k.jsx(Q.img,{as:Ip,src:i,srcSet:s,crossOrigin:d,loading:u,referrerPolicy:p,className:"chakra-image",...v})});Bc.displayName="Image";function c2(e){return x.Children.toArray(e).filter(t=>x.isValidElement(t))}var[m7,_D]=dr({strict:!1,name:"ButtonGroupContext"});function TD(e){const[t,r]=x.useState(!e);return{ref:x.useCallback(i=>{i&&r(i.tagName==="BUTTON")},[]),type:t?"button":void 0}}function jp(e){const{children:t,className:r,...n}=e,o=x.isValidElement(t)?x.cloneElement(t,{"aria-hidden":!0,focusable:!1}):t,i=Ee("chakra-button__icon",r);return k.jsx(Q.span,{display:"inline-flex",alignSelf:"center",flexShrink:0,...n,className:i,children:o})}jp.displayName="ButtonIcon";function Fp(e){const{label:t,placement:r,spacing:n="0.5rem",children:o=k.jsx(Fc,{color:"currentColor",width:"1em",height:"1em"}),className:i,__css:s,...a}=e,l=Ee("chakra-button__spinner",i),u=r==="start"?"marginEnd":"marginStart",c=x.useMemo(()=>({display:"flex",alignItems:"center",position:t?"relative":"absolute",[u]:t?n:0,fontSize:"1em",lineHeight:"normal",...s}),[s,t,u,n]);return k.jsx(Q.div,{className:l,...a,__css:c,children:o})}Fp.displayName="ButtonSpinner";var Nc=ne((e,t)=>{const r=_D(),n=Xn("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:y,as:w,...g}=Wt(e),h=x.useMemo(()=>{const T={...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:T}}},[n,r]),{ref:v,type:S}=TD(w),_={rightIcon:u,leftIcon:l,iconSpacing:d,children:a};return k.jsxs(Q.button,{ref:bD(t,v),as:w,type:f??S,"data-active":le(s),"data-loading":le(i),__css:h,className:Ee("chakra-button",y),...g,disabled:o||i,children:[i&&m==="start"&&k.jsx(Fp,{className:"chakra-button__spinner--start",label:c,placement:"start",spacing:d,children:p}),i?c||k.jsx(Q.span,{opacity:0,children:k.jsx(Ny,{..._})}):k.jsx(Ny,{..._}),i&&m==="end"&&k.jsx(Fp,{className:"chakra-button__spinner--end",label:c,placement:"end",spacing:d,children:p})]})});Nc.displayName="Button";function Ny(e){const{leftIcon:t,rightIcon:r,children:n,iconSpacing:o}=e;return k.jsxs(k.Fragment,{children:[t&&k.jsx(jp,{marginEnd:o,children:t}),n,r&&k.jsx(jp,{marginStart:o,children:r})]})}var[AD,RD]=PM("Card"),d2=ne(function(t,r){const{className:n,...o}=t,i=RD();return k.jsx(Q.div,{ref:r,className:Ee("chakra-card__body",n),__css:i.body,...o})}),f2=ne(function(t,r){const{className:n,children:o,direction:i="column",justify:s,align:a,...l}=Wt(t),u=Wi("Card",t);return k.jsx(Q.div,{ref:r,className:Ee("chakra-card",n),__css:{display:"flex",flexDirection:i,justifyContent:s,alignItems:a,position:"relative",minWidth:0,wordWrap:"break-word",...u.container},...l,children:k.jsx(AD,{value:u,children:o})})}),[$D,MD]=dr({name:"FormControlStylesContext",errorMessage:`useFormControlStyles returned is 'undefined'. Seems you forgot to wrap the components in "" `}),[OD,p2]=dr({strict:!1,name:"FormControlContext"});function zD(e){const{id:t,isRequired:r,isInvalid:n,isDisabled:o,isReadOnly:i,...s}=e,a=x.useId(),l=t||`field-${a}`,u=`${l}-label`,c=`${l}-feedback`,d=`${l}-helptext`,[f,p]=x.useState(!1),[m,y]=x.useState(!1),[w,g]=x.useState(!1),h=x.useCallback((E={},A=null)=>({id:d,...E,ref:lr(A,O=>{O&&y(!0)})}),[d]),v=x.useCallback((E={},A=null)=>({...E,ref:A,"data-focus":le(w),"data-disabled":le(o),"data-invalid":le(n),"data-readonly":le(i),id:E.id!==void 0?E.id:u,htmlFor:E.htmlFor!==void 0?E.htmlFor:l}),[l,o,w,n,i,u]),S=x.useCallback((E={},A=null)=>({id:c,...E,ref:lr(A,O=>{O&&p(!0)}),"aria-live":"polite"}),[c]),_=x.useCallback((E={},A=null)=>({...E,...s,ref:A,role:"group"}),[s]),T=x.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:!!w,onFocus:()=>g(!0),onBlur:()=>g(!1),hasFeedbackText:f,setHasFeedbackText:p,hasHelpText:m,setHasHelpText:y,id:l,labelId:u,feedbackId:c,helpTextId:d,htmlProps:s,getHelpTextProps:h,getErrorMessageProps:S,getRootProps:_,getLabelProps:v,getRequiredIndicatorProps:T}}var LD=ne(function(t,r){const n=Wi("Form",t),o=Wt(t),{getRootProps:i,htmlProps:s,...a}=zD(o),l=Ee("chakra-form-control",t.className);return k.jsx(OD,{value:a,children:k.jsx($D,{value:n,children:k.jsx(Q.div,{...i({},r),className:l,__css:n.container})})})});LD.displayName="FormControl";var DD=ne(function(t,r){const n=p2(),o=MD(),i=Ee("chakra-form__helper-text",t.className);return k.jsx(Q.div,{...n==null?void 0:n.getHelpTextProps(t,r),__css:o.helperText,className:i})});DD.displayName="FormHelperText";function ID(e){var t,r,n;const o=p2(),{id:i,disabled:s,readOnly:a,required:l,isRequired:u,isInvalid:c,isReadOnly:d,isDisabled:f,onFocus:p,onBlur:m,...y}=e,w=e["aria-describedby"]?[e["aria-describedby"]]:[];return o!=null&&o.hasFeedbackText&&(o!=null&&o.isInvalid)&&w.push(o.feedbackId),o!=null&&o.hasHelpText&&w.push(o.helpTextId),{...y,"aria-describedby":w.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:lt(o==null?void 0:o.onFocus,p),onBlur:lt(o==null?void 0:o.onBlur,m)}}var jD={border:"0",clip:"rect(0, 0, 0, 0)",height:"1px",width:"1px",margin:"-1px",padding:"0",overflow:"hidden",whiteSpace:"nowrap",position:"absolute"},FD=()=>typeof document<"u",Vy=!1,La=null,Eo=!1,Bp=!1,Np=new Set;function Lm(e,t){Np.forEach(r=>r(e,t))}var BD=typeof window<"u"&&window.navigator!=null?/^Mac/.test(window.navigator.platform):!1;function ND(e){return!(e.metaKey||!BD&&e.altKey||e.ctrlKey||e.key==="Control"||e.key==="Shift"||e.key==="Meta")}function Hy(e){Eo=!0,ND(e)&&(La="keyboard",Lm("keyboard",e))}function Bo(e){if(La="pointer",e.type==="mousedown"||e.type==="pointerdown"){Eo=!0;const t=e.composedPath?e.composedPath()[0]:e.target;let r=!1;try{r=t.matches(":focus-visible")}catch{}if(r)return;Lm("pointer",e)}}function VD(e){return e.mozInputSource===0&&e.isTrusted?!0:e.detail===0&&!e.pointerType}function HD(e){VD(e)&&(Eo=!0,La="virtual")}function WD(e){e.target===window||e.target===document||(!Eo&&!Bp&&(La="virtual",Lm("virtual",e)),Eo=!1,Bp=!1)}function UD(){Eo=!1,Bp=!0}function Wy(){return La!=="pointer"}function GD(){if(!FD()||Vy)return;const{focus:e}=HTMLElement.prototype;HTMLElement.prototype.focus=function(...r){Eo=!0,e.apply(this,r)},document.addEventListener("keydown",Hy,!0),document.addEventListener("keyup",Hy,!0),document.addEventListener("click",HD,!0),window.addEventListener("focus",WD,!0),window.addEventListener("blur",UD,!1),typeof PointerEvent<"u"?(document.addEventListener("pointerdown",Bo,!0),document.addEventListener("pointermove",Bo,!0),document.addEventListener("pointerup",Bo,!0)):(document.addEventListener("mousedown",Bo,!0),document.addEventListener("mousemove",Bo,!0),document.addEventListener("mouseup",Bo,!0)),Vy=!0}function KD(e){GD(),e(Wy());const t=()=>e(Wy());return Np.add(t),()=>{Np.delete(t)}}function XD(e,t=[]){const r=Object.assign({},e);for(const n of t)n in r&&delete r[n];return r}function qD(e={}){const t=ID(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:y,value:w,tabIndex:g=void 0,"aria-label":h,"aria-labelledby":v,"aria-invalid":S,..._}=e,T=XD(_,["isDisabled","isReadOnly","isRequired","isInvalid","id","onBlur","onFocus","aria-describedby"]),E=In(p),A=In(a),O=In(l),[M,F]=x.useState(!1),[q,X]=x.useState(!1),[Y,J]=x.useState(!1),[Z,z]=x.useState(!1);x.useEffect(()=>KD(F),[]);const L=x.useRef(null),[B,W]=x.useState(!0),[V,ee]=x.useState(!!c),N=d!==void 0,G=N?d:V,we=x.useCallback(te=>{if(n||r){te.preventDefault();return}N||ee(G?te.target.checked:m?!0:te.target.checked),E==null||E(te)},[n,r,G,N,m,E]);Jr(()=>{L.current&&(L.current.indeterminate=!!m)},[m]),Mi(()=>{r&&X(!1)},[r,X]),Jr(()=>{const te=L.current;if(!(te!=null&&te.form))return;const Ze=()=>{ee(!!c)};return te.form.addEventListener("reset",Ze),()=>{var dt;return(dt=te.form)==null?void 0:dt.removeEventListener("reset",Ze)}},[]);const he=r&&!f,We=x.useCallback(te=>{te.key===" "&&z(!0)},[z]),Ie=x.useCallback(te=>{te.key===" "&&z(!1)},[z]);Jr(()=>{if(!L.current)return;L.current.checked!==G&&ee(L.current.checked)},[L.current]);const Ut=x.useCallback((te={},Ze=null)=>{const dt=pn=>{q&&pn.preventDefault(),z(!0)};return{...te,ref:Ze,"data-active":le(Z),"data-hover":le(Y),"data-checked":le(G),"data-focus":le(q),"data-focus-visible":le(q&&M),"data-indeterminate":le(m),"data-disabled":le(r),"data-invalid":le(i),"data-readonly":le(n),"aria-hidden":!0,onMouseDown:lt(te.onMouseDown,dt),onMouseUp:lt(te.onMouseUp,()=>z(!1)),onMouseEnter:lt(te.onMouseEnter,()=>J(!0)),onMouseLeave:lt(te.onMouseLeave,()=>J(!1))}},[Z,G,r,q,M,Y,m,i,n]),Gt=x.useCallback((te={},Ze=null)=>({...te,ref:Ze,"data-active":le(Z),"data-hover":le(Y),"data-checked":le(G),"data-focus":le(q),"data-focus-visible":le(q&&M),"data-indeterminate":le(m),"data-disabled":le(r),"data-invalid":le(i),"data-readonly":le(n)}),[Z,G,r,q,M,Y,m,i,n]),ot=x.useCallback((te={},Ze=null)=>({...T,...te,ref:lr(Ze,dt=>{dt&&W(dt.tagName==="LABEL")}),onClick:lt(te.onClick,()=>{var dt;B||((dt=L.current)==null||dt.click(),requestAnimationFrame(()=>{var pn;(pn=L.current)==null||pn.focus({preventScroll:!0})}))}),"data-disabled":le(r),"data-checked":le(G),"data-invalid":le(i)}),[T,r,G,i,B]),Fr=x.useCallback((te={},Ze=null)=>({...te,ref:lr(L,Ze),type:"checkbox",name:y,value:w,id:s,tabIndex:g,onChange:lt(te.onChange,we),onBlur:lt(te.onBlur,A,()=>X(!1)),onFocus:lt(te.onFocus,O,()=>X(!0)),onKeyDown:lt(te.onKeyDown,We),onKeyUp:lt(te.onKeyUp,Ie),required:o,checked:G,disabled:he,readOnly:n,"aria-label":h,"aria-labelledby":v,"aria-invalid":S?!!S:i,"aria-describedby":u,"aria-disabled":r,style:jD}),[y,w,s,we,A,O,We,Ie,o,G,he,n,h,v,S,i,u,r,g]),Br=x.useCallback((te={},Ze=null)=>({...te,ref:Ze,onMouseDown:lt(te.onMouseDown,YD),"data-disabled":le(r),"data-checked":le(G),"data-invalid":le(i)}),[G,r,i]);return{state:{isInvalid:i,isFocused:q,isChecked:G,isActive:Z,isHovered:Y,isIndeterminate:m,isDisabled:r,isReadOnly:n,isRequired:o},getRootProps:ot,getCheckboxProps:Ut,getIndicatorProps:Gt,getInputProps:Fr,getLabelProps:Br,htmlProps:T}}function YD(e){e.preventDefault(),e.stopPropagation()}function QD(e,t,r,n){const o=In(r);return x.useEffect(()=>{const i=typeof e=="function"?e():e??document;if(!(!r||!i))return i.addEventListener(t,o,n),()=>{i.removeEventListener(t,o,n)}},[t,e,n,o,r]),()=>{const i=typeof e=="function"?e():e??document;i==null||i.removeEventListener(t,o,n)}}function h2(e){return e!=null&&typeof e=="object"&&"nodeType"in e&&e.nodeType===Node.ELEMENT_NODE}function m2(e){var t;if(!h2(e))return!1;const r=(t=e.ownerDocument.defaultView)!=null?t:window;return e instanceof r.HTMLElement}function ZD(e){var t,r;return(r=(t=g2(e))==null?void 0:t.defaultView)!=null?r:window}function g2(e){return h2(e)?e.ownerDocument:document}function JD(e){return g2(e).activeElement}var v2=e=>e.hasAttribute("tabindex"),e9=e=>v2(e)&&e.tabIndex===-1;function t9(e){return!!e.getAttribute("disabled")||!!e.getAttribute("aria-disabled")}function y2(e){return e.parentElement&&y2(e.parentElement)?!0:e.hidden}function r9(e){const t=e.getAttribute("contenteditable");return t!=="false"&&t!=null}function n9(e){if(!m2(e)||y2(e)||t9(e))return!1;const{localName:t}=e;if(["input","select","textarea","button"].indexOf(t)>=0)return!0;const n={a:()=>e.hasAttribute("href"),audio:()=>e.hasAttribute("controls"),video:()=>e.hasAttribute("controls")};return t in n?n[t]():r9(e)?!0:v2(e)}function o9(e){return e?m2(e)&&n9(e)&&!e9(e):!1}var[i9,b2]=dr({name:"ListStylesContext",errorMessage:`useListStyles returned is 'undefined'. Seems you forgot to wrap the components in "" `}),Vc=ne(function(t,r){const n=Wi("List",t),{children:o,styleType:i="none",stylePosition:s,spacing:a,...l}=Wt(t),u=c2(o),d=a?{["& > *:not(style) ~ *:not(style)"]:{mt:a}}:{};return k.jsx(i9,{value:n,children:k.jsx(Q.ul,{ref:r,listStyleType:i,listStylePosition:s,role:"list",__css:{...n.container,...d},...l,children:u})})});Vc.displayName="List";var s9=ne((e,t)=>{const{as:r,...n}=e;return k.jsx(Vc,{ref:t,as:"ol",styleType:"decimal",marginStart:"1em",...n})});s9.displayName="OrderedList";var a9=ne(function(t,r){const{as:n,...o}=t;return k.jsx(Vc,{ref:r,as:"ul",styleType:"initial",marginStart:"1em",...o})});a9.displayName="UnorderedList";var x2=ne(function(t,r){const n=b2();return k.jsx(Q.li,{ref:r,...t,__css:n.item})});x2.displayName="ListItem";var l9=ne(function(t,r){const n=b2();return k.jsx(Oo,{ref:r,role:"presentation",...t,__css:n.icon})});l9.displayName="ListIcon";var Dm=ne(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,y={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 k.jsx(Q.div,{ref:r,__css:y,...m})});Dm.displayName="Grid";var S2=Object.freeze(["base","sm","md","lg","xl","2xl"]);function Hc(e,t){return Array.isArray(e)?e.map(r=>r===null?null:t(r)):Pt(e)?Object.keys(e).reduce((r,n)=>(r[n]=t(e[n]),r),{}):e!=null?t(e):null}function u9(e,t=S2){const r={};return e.forEach((n,o)=>{const i=t[o];n!=null&&(r[i]=n)}),r}var w2=ne(function(t,r){const{columns:n,spacingX:o,spacingY:i,spacing:s,minChildWidth:a,...l}=t,u=Ro(),c=a?d9(a,u):f9(n);return k.jsx(Dm,{ref:r,gap:s,columnGap:o,rowGap:i,templateColumns:c,...l})});w2.displayName="SimpleGrid";function c9(e){return typeof e=="number"?`${e}px`:e}function d9(e,t){return Hc(e,r=>{const n=rS("sizes",r,c9(r))(t);return r===null?null:`repeat(auto-fit, minmax(${n}, 1fr))`})}function f9(e){return Hc(e,t=>t===null?null:`repeat(${t}, minmax(0, 1fr))`)}var ba=ne(function(t,r){const n=Xn("Text",t),{className:o,align:i,decoration:s,casing:a,...l}=Wt(t),u=RS({textAlign:t.align,textDecoration:t.decoration,textTransform:t.casing});return k.jsx(Q.p,{ref:r,className:Ee("chakra-text",t.className),...u,...l,__css:n})});ba.displayName="Text";var k2=e=>k.jsx(Q.div,{className:"chakra-stack__item",...e,__css:{display:"inline-block",flex:"0 0 auto",minWidth:0,...e.__css}});k2.displayName="StackItem";function p9(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{"&":Hc(r,o=>n[o])}}var C2=ne((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=x.useMemo(()=>p9({spacing:s,direction:p}),[s,p]),y=!!u,w=!d&&!y,g=x.useMemo(()=>{const v=c2(l);return w?v:v.map((S,_)=>{const T=typeof S.key<"u"?S.key:_,E=_+1===v.length,O=d?k.jsx(k2,{children:S},T):S;if(!y)return O;const M=x.cloneElement(u,{__css:m}),F=E?null:M;return k.jsxs(x.Fragment,{children:[O,F]},T)})},[u,m,y,w,d,l]),h=Ee("chakra-stack",c);return k.jsx(Q.div,{ref:t,display:"flex",alignItems:o,justifyContent:i,flexDirection:p,flexWrap:a,gap:y?void 0:s,className:h,...f,children:g})});C2.displayName="Stack";var zo=ne((e,t)=>k.jsx(C2,{align:"center",...e,direction:"row",ref:t}));zo.displayName="HStack";function Uy(e){return Hc(e,t=>t==="auto"?"auto":`span ${t}/span ${t}`)}var tu=ne(function(t,r){const{area:n,colSpan:o,colStart:i,colEnd:s,rowEnd:a,rowSpan:l,rowStart:u,...c}=t,d=RS({gridArea:n,gridColumn:Uy(o),gridRow:Uy(l),gridColumnStart:i,gridColumnEnd:s,gridRowStart:u,gridRowEnd:a});return k.jsx(Q.div,{ref:r,__css:d,...c})});tu.displayName="GridItem";var P2=ne(function(t,r){const n=Xn("Heading",t),{className:o,...i}=Wt(t);return k.jsx(Q.h2,{ref:r,className:Ee("chakra-heading",t.className),...i,__css:n})});P2.displayName="Heading";var Im=Q("div");Im.displayName="Box";var E2=ne(function(t,r){const{size:n,centerContent:o=!0,...i}=t,s=o?{display:"flex",alignItems:"center",justifyContent:"center"}:{};return k.jsx(Im,{ref:r,boxSize:n,__css:{...s,flexShrink:0,flexGrow:0},...i})});E2.displayName="Square";var h9=ne(function(t,r){const{size:n,...o}=t;return k.jsx(E2,{size:n,ref:r,borderRadius:"9999px",...o})});h9.displayName="Circle";var _2=ne(function(t,r){const n=Xn("Badge",t),{className:o,...i}=Wt(t);return k.jsx(Q.span,{ref:r,className:Ee("chakra-badge",t.className),...i,__css:{display:"inline-block",whiteSpace:"nowrap",verticalAlign:"middle",...n}})});_2.displayName="Badge";function T2(e,t={}){const{ssr:r=!0,fallback:n}=t,{getWindow:o}=_M(),i=Array.isArray(e)?e:[e];let s=Array.isArray(n)?n:[n];s=s.filter(u=>u!=null);const[a,l]=x.useState(()=>i.map((u,c)=>({media:u,matches:r?!!s[c]:o().matchMedia(u).matches})));return x.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 m9(e){const{breakpoint:t,hide:r,children:n,ssr:o}=e,[i]=T2(t,{ssr:o});return(r?!i:i)?n:null}var Gy=(e,t)=>{var r,n;return(n=(r=e==null?void 0:e.breakpoints)==null?void 0:r[t])!=null?n:t};function g9(e){const{breakpoint:t="",below:r,above:n}=e,o=Ro(),i=Gy(o,r),s=Gy(o,n);let a=t;return i?a=`(max-width: ${i})`:s&&(a=`(min-width: ${s})`),a}function A2(e){const{children:t,ssr:r}=e,n=g9(e);return k.jsx(m9,{breakpoint:n,ssr:r,children:t})}A2.displayName="Show";function v9(e,t,r=S2){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 y9(e){var t,r;const n=Pt(e)?e:{fallback:e??"base"},i=Ro().__breakpoints.details.map(({minMaxQuery:u,breakpoint:c})=>({breakpoint:c,query:u.replace("@media screen and ","")})),s=i.map(u=>u.breakpoint===n.fallback),l=T2(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 b9(e,t){var r;const n=Pt(t)?t:{fallback:t??"base"},o=y9(n),i=Ro();if(!o)return;const s=Array.from(((r=i.__breakpoints)==null?void 0:r.keys)||[]),a=Array.isArray(e)?Object.fromEntries(Object.entries(u9(e,s)).map(([l,u])=>[l,u])):e;return v9(a,o,s)}function x9(e){const{key:t}=e;return t.length===1||t.length>1&&/[^a-zA-Z0-9]/.test(t)}function S9(e={}){const{timeout:t=300,preventDefault:r=()=>!0}=e,[n,o]=x.useState([]),i=x.useRef(),s=()=>{i.current&&(clearTimeout(i.current),i.current=null)},a=()=>{s(),i.current=setTimeout(()=>{o([]),i.current=null},t)};x.useEffect(()=>s,[]);function l(u){return c=>{if(c.key==="Backspace"){const d=[...n];d.pop(),o(d);return}if(x9(c)){const d=n.concat(c.key);r(c)&&(c.preventDefault(),c.stopPropagation()),o(d),u(d.join("")),a()}}}return l}function w9(e,t,r,n){if(t==null)return n;if(!n)return e.find(s=>r(s).toLowerCase().startsWith(t.toLowerCase()));const o=e.filter(i=>r(i).toLowerCase().startsWith(t.toLowerCase()));if(o.length>0){let i;return o.includes(n)?(i=o.indexOf(n)+1,i===o.length&&(i=0),o[i]):(i=e.indexOf(o[0]),e[i])}return n}function k9(){const e=x.useRef(new Map),t=e.current,r=x.useCallback((o,i,s,a)=>{e.current.set(s,{type:i,el:o,options:a}),o.addEventListener(i,s,a)},[]),n=x.useCallback((o,i,s,a)=>{o.removeEventListener(i,s,a),e.current.delete(s)},[]);return x.useEffect(()=>()=>{t.forEach((o,i)=>{n(o.el,o.type,i,o.options)})},[n,t]),{add:r,remove:n}}function ff(e){const t=e.target,{tagName:r,isContentEditable:n}=t;return r!=="INPUT"&&r!=="TEXTAREA"&&n!==!0}function C9(e={}){const{ref:t,isDisabled:r,isFocusable:n,clickOnEnter:o=!0,clickOnSpace:i=!0,onMouseDown:s,onMouseUp:a,onClick:l,onKeyDown:u,onKeyUp:c,tabIndex:d,onMouseOver:f,onMouseLeave:p,...m}=e,[y,w]=x.useState(!0),[g,h]=x.useState(!1),v=k9(),S=z=>{z&&z.tagName!=="BUTTON"&&w(!1)},_=y?d:d||0,T=r&&!n,E=x.useCallback(z=>{if(r){z.stopPropagation(),z.preventDefault();return}z.currentTarget.focus(),l==null||l(z)},[r,l]),A=x.useCallback(z=>{g&&ff(z)&&(z.preventDefault(),z.stopPropagation(),h(!1),v.remove(document,"keyup",A,!1))},[g,v]),O=x.useCallback(z=>{if(u==null||u(z),r||z.defaultPrevented||z.metaKey||!ff(z.nativeEvent)||y)return;const L=o&&z.key==="Enter";i&&z.key===" "&&(z.preventDefault(),h(!0)),L&&(z.preventDefault(),z.currentTarget.click()),v.add(document,"keyup",A,!1)},[r,y,u,o,i,v,A]),M=x.useCallback(z=>{if(c==null||c(z),r||z.defaultPrevented||z.metaKey||!ff(z.nativeEvent)||y)return;i&&z.key===" "&&(z.preventDefault(),h(!1),z.currentTarget.click())},[i,y,r,c]),F=x.useCallback(z=>{z.button===0&&(h(!1),v.remove(document,"mouseup",F,!1))},[v]),q=x.useCallback(z=>{if(z.button!==0)return;if(r){z.stopPropagation(),z.preventDefault();return}y||h(!0),z.currentTarget.focus({preventScroll:!0}),v.add(document,"mouseup",F,!1),s==null||s(z)},[r,y,s,v,F]),X=x.useCallback(z=>{z.button===0&&(y||h(!1),a==null||a(z))},[a,y]),Y=x.useCallback(z=>{if(r){z.preventDefault();return}f==null||f(z)},[r,f]),J=x.useCallback(z=>{g&&(z.preventDefault(),h(!1)),p==null||p(z)},[g,p]),Z=lr(t,S);return y?{...m,ref:Z,type:"button","aria-disabled":T?void 0:r,disabled:T,onClick:E,onMouseDown:s,onMouseUp:a,onKeyUp:c,onKeyDown:u,onMouseOver:f,onMouseLeave:p}:{...m,ref:Z,role:"button","data-active":le(g),"aria-disabled":r?"true":void 0,tabIndex:T?void 0:_,onClick:E,onMouseDown:q,onMouseUp:X,onKeyUp:M,onKeyDown:O,onMouseOver:Y,onMouseLeave:J}}function P9(e){const t=e.current;if(!t)return!1;const r=JD(t);return!r||t.contains(r)?!1:!!o9(r)}function E9(e,t){const{shouldFocus:r,visible:n,focusRef:o}=t,i=r&&!n;Mi(()=>{if(!i||P9(e))return;const s=(o==null?void 0:o.current)||e.current;let a;if(s)return a=requestAnimationFrame(()=>{s.focus({preventScroll:!0})}),()=>{cancelAnimationFrame(a)}},[i,e,o])}var No=(e,t)=>({var:e,varRef:t?`var(${e}, ${t})`:`var(${e})`}),Mt={arrowShadowColor:No("--popper-arrow-shadow-color"),arrowSize:No("--popper-arrow-size","8px"),arrowSizeHalf:No("--popper-arrow-size-half"),arrowBg:No("--popper-arrow-bg"),transformOrigin:No("--popper-transform-origin"),arrowOffset:No("--popper-arrow-offset")};function _9(e){if(e.includes("top"))return"1px 1px 0px 0 var(--popper-arrow-shadow-color)";if(e.includes("bottom"))return"-1px -1px 0px 0 var(--popper-arrow-shadow-color)";if(e.includes("right"))return"-1px 1px 0px 0 var(--popper-arrow-shadow-color)";if(e.includes("left"))return"1px -1px 0px 0 var(--popper-arrow-shadow-color)"}var T9={top:"bottom center","top-start":"bottom left","top-end":"bottom right",bottom:"top center","bottom-start":"top left","bottom-end":"top right",left:"right center","left-start":"right top","left-end":"right bottom",right:"left center","right-start":"left top","right-end":"left bottom"},A9=e=>T9[e],Ky={scroll:!0,resize:!0};function R9(e){let t;return typeof e=="object"?t={enabled:!0,options:{...Ky,...e}}:t={enabled:e,options:Ky},t}var $9={name:"matchWidth",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:({state:e})=>{e.styles.popper.width=`${e.rects.reference.width}px`},effect:({state:e})=>()=>{const t=e.elements.reference;e.elements.popper.style.width=`${t.offsetWidth}px`}},M9={name:"transformOrigin",enabled:!0,phase:"write",fn:({state:e})=>{Xy(e)},effect:({state:e})=>()=>{Xy(e)}},Xy=e=>{e.elements.popper.style.setProperty(Mt.transformOrigin.var,A9(e.placement))},O9={name:"positionArrow",enabled:!0,phase:"afterWrite",fn:({state:e})=>{z9(e)}},z9=e=>{var t;if(!e.placement)return;const r=L9(e.placement);if((t=e.elements)!=null&&t.arrow&&r){Object.assign(e.elements.arrow.style,{[r.property]:r.value,width:Mt.arrowSize.varRef,height:Mt.arrowSize.varRef,zIndex:-1});const n={[Mt.arrowSizeHalf.var]:`calc(${Mt.arrowSize.varRef} / 2 - 1px)`,[Mt.arrowOffset.var]:`calc(${Mt.arrowSizeHalf.varRef} * -1)`};for(const o in n)e.elements.arrow.style.setProperty(o,n[o])}},L9=e=>{if(e.startsWith("top"))return{property:"bottom",value:Mt.arrowOffset.varRef};if(e.startsWith("bottom"))return{property:"top",value:Mt.arrowOffset.varRef};if(e.startsWith("left"))return{property:"right",value:Mt.arrowOffset.varRef};if(e.startsWith("right"))return{property:"left",value:Mt.arrowOffset.varRef}},D9={name:"innerArrow",enabled:!0,phase:"main",requires:["arrow"],fn:({state:e})=>{qy(e)},effect:({state:e})=>()=>{qy(e)}},qy=e=>{if(!e.elements.arrow)return;const t=e.elements.arrow.querySelector("[data-popper-arrow-inner]");if(!t)return;const r=_9(e.placement);r&&t.style.setProperty("--popper-arrow-default-shadow",r),Object.assign(t.style,{transform:"rotate(45deg)",background:Mt.arrowBg.varRef,top:0,left:0,width:"100%",height:"100%",position:"absolute",zIndex:"inherit",boxShadow:"var(--popper-arrow-shadow, var(--popper-arrow-default-shadow))"})},I9={"start-start":{ltr:"left-start",rtl:"right-start"},"start-end":{ltr:"left-end",rtl:"right-end"},"end-start":{ltr:"right-start",rtl:"left-start"},"end-end":{ltr:"right-end",rtl:"left-end"},start:{ltr:"left",rtl:"right"},end:{ltr:"right",rtl:"left"}},j9={"auto-start":"auto-end","auto-end":"auto-start","top-start":"top-end","top-end":"top-start","bottom-start":"bottom-end","bottom-end":"bottom-start"};function F9(e,t="ltr"){var r,n;const o=((r=I9[e])==null?void 0:r[t])||e;return t==="ltr"?o:(n=j9[e])!=null?n:o}var Et="top",ur="bottom",cr="right",_t="left",jm="auto",Da=[Et,ur,cr,_t],Li="start",xa="end",B9="clippingParents",R2="viewport",cs="popper",N9="reference",Yy=Da.reduce(function(e,t){return e.concat([t+"-"+Li,t+"-"+xa])},[]),$2=[].concat(Da,[jm]).reduce(function(e,t){return e.concat([t,t+"-"+Li,t+"-"+xa])},[]),V9="beforeRead",H9="read",W9="afterRead",U9="beforeMain",G9="main",K9="afterMain",X9="beforeWrite",q9="write",Y9="afterWrite",Q9=[V9,H9,W9,U9,G9,K9,X9,q9,Y9];function Dr(e){return e?(e.nodeName||"").toLowerCase():null}function Bt(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function _o(e){var t=Bt(e).Element;return e instanceof t||e instanceof Element}function or(e){var t=Bt(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function Fm(e){if(typeof ShadowRoot>"u")return!1;var t=Bt(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function Z9(e){var t=e.state;Object.keys(t.elements).forEach(function(r){var n=t.styles[r]||{},o=t.attributes[r]||{},i=t.elements[r];!or(i)||!Dr(i)||(Object.assign(i.style,n),Object.keys(o).forEach(function(s){var a=o[s];a===!1?i.removeAttribute(s):i.setAttribute(s,a===!0?"":a)}))})}function J9(e){var t=e.state,r={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,r.popper),t.styles=r,t.elements.arrow&&Object.assign(t.elements.arrow.style,r.arrow),function(){Object.keys(t.elements).forEach(function(n){var o=t.elements[n],i=t.attributes[n]||{},s=Object.keys(t.styles.hasOwnProperty(n)?t.styles[n]:r[n]),a=s.reduce(function(l,u){return l[u]="",l},{});!or(o)||!Dr(o)||(Object.assign(o.style,a),Object.keys(i).forEach(function(l){o.removeAttribute(l)}))})}}const eI={name:"applyStyles",enabled:!0,phase:"write",fn:Z9,effect:J9,requires:["computeStyles"]};function Lr(e){return e.split("-")[0]}var xo=Math.max,Xu=Math.min,Di=Math.round;function Vp(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function M2(){return!/^((?!chrome|android).)*safari/i.test(Vp())}function Ii(e,t,r){t===void 0&&(t=!1),r===void 0&&(r=!1);var n=e.getBoundingClientRect(),o=1,i=1;t&&or(e)&&(o=e.offsetWidth>0&&Di(n.width)/e.offsetWidth||1,i=e.offsetHeight>0&&Di(n.height)/e.offsetHeight||1);var s=_o(e)?Bt(e):window,a=s.visualViewport,l=!M2()&&r,u=(n.left+(l&&a?a.offsetLeft:0))/o,c=(n.top+(l&&a?a.offsetTop:0))/i,d=n.width/o,f=n.height/i;return{width:d,height:f,top:c,right:u+d,bottom:c+f,left:u,x:u,y:c}}function Bm(e){var t=Ii(e),r=e.offsetWidth,n=e.offsetHeight;return Math.abs(t.width-r)<=1&&(r=t.width),Math.abs(t.height-n)<=1&&(n=t.height),{x:e.offsetLeft,y:e.offsetTop,width:r,height:n}}function O2(e,t){var r=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(r&&Fm(r)){var n=t;do{if(n&&e.isSameNode(n))return!0;n=n.parentNode||n.host}while(n)}return!1}function dn(e){return Bt(e).getComputedStyle(e)}function tI(e){return["table","td","th"].indexOf(Dr(e))>=0}function Yn(e){return((_o(e)?e.ownerDocument:e.document)||window.document).documentElement}function Wc(e){return Dr(e)==="html"?e:e.assignedSlot||e.parentNode||(Fm(e)?e.host:null)||Yn(e)}function Qy(e){return!or(e)||dn(e).position==="fixed"?null:e.offsetParent}function rI(e){var t=/firefox/i.test(Vp()),r=/Trident/i.test(Vp());if(r&&or(e)){var n=dn(e);if(n.position==="fixed")return null}var o=Wc(e);for(Fm(o)&&(o=o.host);or(o)&&["html","body"].indexOf(Dr(o))<0;){var i=dn(o);if(i.transform!=="none"||i.perspective!=="none"||i.contain==="paint"||["transform","perspective"].indexOf(i.willChange)!==-1||t&&i.willChange==="filter"||t&&i.filter&&i.filter!=="none")return o;o=o.parentNode}return null}function Ia(e){for(var t=Bt(e),r=Qy(e);r&&tI(r)&&dn(r).position==="static";)r=Qy(r);return r&&(Dr(r)==="html"||Dr(r)==="body"&&dn(r).position==="static")?t:r||rI(e)||t}function Nm(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Hs(e,t,r){return xo(e,Xu(t,r))}function nI(e,t,r){var n=Hs(e,t,r);return n>r?r:n}function z2(){return{top:0,right:0,bottom:0,left:0}}function L2(e){return Object.assign({},z2(),e)}function D2(e,t){return t.reduce(function(r,n){return r[n]=e,r},{})}var oI=function(t,r){return t=typeof t=="function"?t(Object.assign({},r.rects,{placement:r.placement})):t,L2(typeof t!="number"?t:D2(t,Da))};function iI(e){var t,r=e.state,n=e.name,o=e.options,i=r.elements.arrow,s=r.modifiersData.popperOffsets,a=Lr(r.placement),l=Nm(a),u=[_t,cr].indexOf(a)>=0,c=u?"height":"width";if(!(!i||!s)){var d=oI(o.padding,r),f=Bm(i),p=l==="y"?Et:_t,m=l==="y"?ur:cr,y=r.rects.reference[c]+r.rects.reference[l]-s[l]-r.rects.popper[c],w=s[l]-r.rects.reference[l],g=Ia(i),h=g?l==="y"?g.clientHeight||0:g.clientWidth||0:0,v=y/2-w/2,S=d[p],_=h-f[c]-d[m],T=h/2-f[c]/2+v,E=Hs(S,T,_),A=l;r.modifiersData[n]=(t={},t[A]=E,t.centerOffset=E-T,t)}}function sI(e){var t=e.state,r=e.options,n=r.element,o=n===void 0?"[data-popper-arrow]":n;o!=null&&(typeof o=="string"&&(o=t.elements.popper.querySelector(o),!o)||O2(t.elements.popper,o)&&(t.elements.arrow=o))}const aI={name:"arrow",enabled:!0,phase:"main",fn:iI,effect:sI,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function ji(e){return e.split("-")[1]}var lI={top:"auto",right:"auto",bottom:"auto",left:"auto"};function uI(e,t){var r=e.x,n=e.y,o=t.devicePixelRatio||1;return{x:Di(r*o)/o||0,y:Di(n*o)/o||0}}function Zy(e){var t,r=e.popper,n=e.popperRect,o=e.placement,i=e.variation,s=e.offsets,a=e.position,l=e.gpuAcceleration,u=e.adaptive,c=e.roundOffsets,d=e.isFixed,f=s.x,p=f===void 0?0:f,m=s.y,y=m===void 0?0:m,w=typeof c=="function"?c({x:p,y}):{x:p,y};p=w.x,y=w.y;var g=s.hasOwnProperty("x"),h=s.hasOwnProperty("y"),v=_t,S=Et,_=window;if(u){var T=Ia(r),E="clientHeight",A="clientWidth";if(T===Bt(r)&&(T=Yn(r),dn(T).position!=="static"&&a==="absolute"&&(E="scrollHeight",A="scrollWidth")),T=T,o===Et||(o===_t||o===cr)&&i===xa){S=ur;var O=d&&T===_&&_.visualViewport?_.visualViewport.height:T[E];y-=O-n.height,y*=l?1:-1}if(o===_t||(o===Et||o===ur)&&i===xa){v=cr;var M=d&&T===_&&_.visualViewport?_.visualViewport.width:T[A];p-=M-n.width,p*=l?1:-1}}var F=Object.assign({position:a},u&&lI),q=c===!0?uI({x:p,y},Bt(r)):{x:p,y};if(p=q.x,y=q.y,l){var X;return Object.assign({},F,(X={},X[S]=h?"0":"",X[v]=g?"0":"",X.transform=(_.devicePixelRatio||1)<=1?"translate("+p+"px, "+y+"px)":"translate3d("+p+"px, "+y+"px, 0)",X))}return Object.assign({},F,(t={},t[S]=h?y+"px":"",t[v]=g?p+"px":"",t.transform="",t))}function cI(e){var t=e.state,r=e.options,n=r.gpuAcceleration,o=n===void 0?!0:n,i=r.adaptive,s=i===void 0?!0:i,a=r.roundOffsets,l=a===void 0?!0:a,u={placement:Lr(t.placement),variation:ji(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:o,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,Zy(Object.assign({},u,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:s,roundOffsets:l})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,Zy(Object.assign({},u,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const dI={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:cI,data:{}};var _l={passive:!0};function fI(e){var t=e.state,r=e.instance,n=e.options,o=n.scroll,i=o===void 0?!0:o,s=n.resize,a=s===void 0?!0:s,l=Bt(t.elements.popper),u=[].concat(t.scrollParents.reference,t.scrollParents.popper);return i&&u.forEach(function(c){c.addEventListener("scroll",r.update,_l)}),a&&l.addEventListener("resize",r.update,_l),function(){i&&u.forEach(function(c){c.removeEventListener("scroll",r.update,_l)}),a&&l.removeEventListener("resize",r.update,_l)}}const pI={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:fI,data:{}};var hI={left:"right",right:"left",bottom:"top",top:"bottom"};function ru(e){return e.replace(/left|right|bottom|top/g,function(t){return hI[t]})}var mI={start:"end",end:"start"};function Jy(e){return e.replace(/start|end/g,function(t){return mI[t]})}function Vm(e){var t=Bt(e),r=t.pageXOffset,n=t.pageYOffset;return{scrollLeft:r,scrollTop:n}}function Hm(e){return Ii(Yn(e)).left+Vm(e).scrollLeft}function gI(e,t){var r=Bt(e),n=Yn(e),o=r.visualViewport,i=n.clientWidth,s=n.clientHeight,a=0,l=0;if(o){i=o.width,s=o.height;var u=M2();(u||!u&&t==="fixed")&&(a=o.offsetLeft,l=o.offsetTop)}return{width:i,height:s,x:a+Hm(e),y:l}}function vI(e){var t,r=Yn(e),n=Vm(e),o=(t=e.ownerDocument)==null?void 0:t.body,i=xo(r.scrollWidth,r.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),s=xo(r.scrollHeight,r.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),a=-n.scrollLeft+Hm(e),l=-n.scrollTop;return dn(o||r).direction==="rtl"&&(a+=xo(r.clientWidth,o?o.clientWidth:0)-i),{width:i,height:s,x:a,y:l}}function Wm(e){var t=dn(e),r=t.overflow,n=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(r+o+n)}function I2(e){return["html","body","#document"].indexOf(Dr(e))>=0?e.ownerDocument.body:or(e)&&Wm(e)?e:I2(Wc(e))}function Ws(e,t){var r;t===void 0&&(t=[]);var n=I2(e),o=n===((r=e.ownerDocument)==null?void 0:r.body),i=Bt(n),s=o?[i].concat(i.visualViewport||[],Wm(n)?n:[]):n,a=t.concat(s);return o?a:a.concat(Ws(Wc(s)))}function Hp(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function yI(e,t){var r=Ii(e,!1,t==="fixed");return r.top=r.top+e.clientTop,r.left=r.left+e.clientLeft,r.bottom=r.top+e.clientHeight,r.right=r.left+e.clientWidth,r.width=e.clientWidth,r.height=e.clientHeight,r.x=r.left,r.y=r.top,r}function e1(e,t,r){return t===R2?Hp(gI(e,r)):_o(t)?yI(t,r):Hp(vI(Yn(e)))}function bI(e){var t=Ws(Wc(e)),r=["absolute","fixed"].indexOf(dn(e).position)>=0,n=r&&or(e)?Ia(e):e;return _o(n)?t.filter(function(o){return _o(o)&&O2(o,n)&&Dr(o)!=="body"}):[]}function xI(e,t,r,n){var o=t==="clippingParents"?bI(e):[].concat(t),i=[].concat(o,[r]),s=i[0],a=i.reduce(function(l,u){var c=e1(e,u,n);return l.top=xo(c.top,l.top),l.right=Xu(c.right,l.right),l.bottom=Xu(c.bottom,l.bottom),l.left=xo(c.left,l.left),l},e1(e,s,n));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}function j2(e){var t=e.reference,r=e.element,n=e.placement,o=n?Lr(n):null,i=n?ji(n):null,s=t.x+t.width/2-r.width/2,a=t.y+t.height/2-r.height/2,l;switch(o){case Et:l={x:s,y:t.y-r.height};break;case ur:l={x:s,y:t.y+t.height};break;case cr:l={x:t.x+t.width,y:a};break;case _t:l={x:t.x-r.width,y:a};break;default:l={x:t.x,y:t.y}}var u=o?Nm(o):null;if(u!=null){var c=u==="y"?"height":"width";switch(i){case Li:l[u]=l[u]-(t[c]/2-r[c]/2);break;case xa:l[u]=l[u]+(t[c]/2-r[c]/2);break}}return l}function Sa(e,t){t===void 0&&(t={});var r=t,n=r.placement,o=n===void 0?e.placement:n,i=r.strategy,s=i===void 0?e.strategy:i,a=r.boundary,l=a===void 0?B9:a,u=r.rootBoundary,c=u===void 0?R2:u,d=r.elementContext,f=d===void 0?cs:d,p=r.altBoundary,m=p===void 0?!1:p,y=r.padding,w=y===void 0?0:y,g=L2(typeof w!="number"?w:D2(w,Da)),h=f===cs?N9:cs,v=e.rects.popper,S=e.elements[m?h:f],_=xI(_o(S)?S:S.contextElement||Yn(e.elements.popper),l,c,s),T=Ii(e.elements.reference),E=j2({reference:T,element:v,strategy:"absolute",placement:o}),A=Hp(Object.assign({},v,E)),O=f===cs?A:T,M={top:_.top-O.top+g.top,bottom:O.bottom-_.bottom+g.bottom,left:_.left-O.left+g.left,right:O.right-_.right+g.right},F=e.modifiersData.offset;if(f===cs&&F){var q=F[o];Object.keys(M).forEach(function(X){var Y=[cr,ur].indexOf(X)>=0?1:-1,J=[Et,ur].indexOf(X)>=0?"y":"x";M[X]+=q[J]*Y})}return M}function SI(e,t){t===void 0&&(t={});var r=t,n=r.placement,o=r.boundary,i=r.rootBoundary,s=r.padding,a=r.flipVariations,l=r.allowedAutoPlacements,u=l===void 0?$2:l,c=ji(n),d=c?a?Yy:Yy.filter(function(m){return ji(m)===c}):Da,f=d.filter(function(m){return u.indexOf(m)>=0});f.length===0&&(f=d);var p=f.reduce(function(m,y){return m[y]=Sa(e,{placement:y,boundary:o,rootBoundary:i,padding:s})[Lr(y)],m},{});return Object.keys(p).sort(function(m,y){return p[m]-p[y]})}function wI(e){if(Lr(e)===jm)return[];var t=ru(e);return[Jy(e),t,Jy(t)]}function kI(e){var t=e.state,r=e.options,n=e.name;if(!t.modifiersData[n]._skip){for(var o=r.mainAxis,i=o===void 0?!0:o,s=r.altAxis,a=s===void 0?!0:s,l=r.fallbackPlacements,u=r.padding,c=r.boundary,d=r.rootBoundary,f=r.altBoundary,p=r.flipVariations,m=p===void 0?!0:p,y=r.allowedAutoPlacements,w=t.options.placement,g=Lr(w),h=g===w,v=l||(h||!m?[ru(w)]:wI(w)),S=[w].concat(v).reduce(function(G,we){return G.concat(Lr(we)===jm?SI(t,{placement:we,boundary:c,rootBoundary:d,padding:u,flipVariations:m,allowedAutoPlacements:y}):we)},[]),_=t.rects.reference,T=t.rects.popper,E=new Map,A=!0,O=S[0],M=0;M=0,J=Y?"width":"height",Z=Sa(t,{placement:F,boundary:c,rootBoundary:d,altBoundary:f,padding:u}),z=Y?X?cr:_t:X?ur:Et;_[J]>T[J]&&(z=ru(z));var L=ru(z),B=[];if(i&&B.push(Z[q]<=0),a&&B.push(Z[z]<=0,Z[L]<=0),B.every(function(G){return G})){O=F,A=!1;break}E.set(F,B)}if(A)for(var W=m?3:1,V=function(we){var he=S.find(function(We){var Ie=E.get(We);if(Ie)return Ie.slice(0,we).every(function(Ut){return Ut})});if(he)return O=he,"break"},ee=W;ee>0;ee--){var N=V(ee);if(N==="break")break}t.placement!==O&&(t.modifiersData[n]._skip=!0,t.placement=O,t.reset=!0)}}const CI={name:"flip",enabled:!0,phase:"main",fn:kI,requiresIfExists:["offset"],data:{_skip:!1}};function t1(e,t,r){return r===void 0&&(r={x:0,y:0}),{top:e.top-t.height-r.y,right:e.right-t.width+r.x,bottom:e.bottom-t.height+r.y,left:e.left-t.width-r.x}}function r1(e){return[Et,cr,ur,_t].some(function(t){return e[t]>=0})}function PI(e){var t=e.state,r=e.name,n=t.rects.reference,o=t.rects.popper,i=t.modifiersData.preventOverflow,s=Sa(t,{elementContext:"reference"}),a=Sa(t,{altBoundary:!0}),l=t1(s,n),u=t1(a,o,i),c=r1(l),d=r1(u);t.modifiersData[r]={referenceClippingOffsets:l,popperEscapeOffsets:u,isReferenceHidden:c,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":c,"data-popper-escaped":d})}const EI={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:PI};function _I(e,t,r){var n=Lr(e),o=[_t,Et].indexOf(n)>=0?-1:1,i=typeof r=="function"?r(Object.assign({},t,{placement:e})):r,s=i[0],a=i[1];return s=s||0,a=(a||0)*o,[_t,cr].indexOf(n)>=0?{x:a,y:s}:{x:s,y:a}}function TI(e){var t=e.state,r=e.options,n=e.name,o=r.offset,i=o===void 0?[0,0]:o,s=$2.reduce(function(c,d){return c[d]=_I(d,t.rects,i),c},{}),a=s[t.placement],l=a.x,u=a.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=u),t.modifiersData[n]=s}const AI={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:TI};function RI(e){var t=e.state,r=e.name;t.modifiersData[r]=j2({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}const $I={name:"popperOffsets",enabled:!0,phase:"read",fn:RI,data:{}};function MI(e){return e==="x"?"y":"x"}function OI(e){var t=e.state,r=e.options,n=e.name,o=r.mainAxis,i=o===void 0?!0:o,s=r.altAxis,a=s===void 0?!1:s,l=r.boundary,u=r.rootBoundary,c=r.altBoundary,d=r.padding,f=r.tether,p=f===void 0?!0:f,m=r.tetherOffset,y=m===void 0?0:m,w=Sa(t,{boundary:l,rootBoundary:u,padding:d,altBoundary:c}),g=Lr(t.placement),h=ji(t.placement),v=!h,S=Nm(g),_=MI(S),T=t.modifiersData.popperOffsets,E=t.rects.reference,A=t.rects.popper,O=typeof y=="function"?y(Object.assign({},t.rects,{placement:t.placement})):y,M=typeof O=="number"?{mainAxis:O,altAxis:O}:Object.assign({mainAxis:0,altAxis:0},O),F=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,q={x:0,y:0};if(T){if(i){var X,Y=S==="y"?Et:_t,J=S==="y"?ur:cr,Z=S==="y"?"height":"width",z=T[S],L=z+w[Y],B=z-w[J],W=p?-A[Z]/2:0,V=h===Li?E[Z]:A[Z],ee=h===Li?-A[Z]:-E[Z],N=t.elements.arrow,G=p&&N?Bm(N):{width:0,height:0},we=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:z2(),he=we[Y],We=we[J],Ie=Hs(0,E[Z],G[Z]),Ut=v?E[Z]/2-W-Ie-he-M.mainAxis:V-Ie-he-M.mainAxis,Gt=v?-E[Z]/2+W+Ie+We+M.mainAxis:ee+Ie+We+M.mainAxis,ot=t.elements.arrow&&Ia(t.elements.arrow),Fr=ot?S==="y"?ot.clientTop||0:ot.clientLeft||0:0,Br=(X=F==null?void 0:F[S])!=null?X:0,Va=z+Ut-Br-Fr,te=z+Gt-Br,Ze=Hs(p?Xu(L,Va):L,z,p?xo(B,te):B);T[S]=Ze,q[S]=Ze-z}if(a){var dt,pn=S==="x"?Et:_t,Yc=S==="x"?ur:cr,Kt=T[_],hn=_==="y"?"height":"width",Qn=Kt+w[pn],Xt=Kt-w[Yc],Lo=[Et,_t].indexOf(g)!==-1,Gi=(dt=F==null?void 0:F[_])!=null?dt:0,Ha=Lo?Qn:Kt-E[hn]-A[hn]-Gi+M.altAxis,Wa=Lo?Kt+E[hn]+A[hn]-Gi-M.altAxis:Xt,Zn=p&&Lo?nI(Ha,Kt,Wa):Hs(p?Ha:Qn,Kt,p?Wa:Xt);T[_]=Zn,q[_]=Zn-Kt}t.modifiersData[n]=q}}const zI={name:"preventOverflow",enabled:!0,phase:"main",fn:OI,requiresIfExists:["offset"]};function LI(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function DI(e){return e===Bt(e)||!or(e)?Vm(e):LI(e)}function II(e){var t=e.getBoundingClientRect(),r=Di(t.width)/e.offsetWidth||1,n=Di(t.height)/e.offsetHeight||1;return r!==1||n!==1}function jI(e,t,r){r===void 0&&(r=!1);var n=or(t),o=or(t)&&II(t),i=Yn(t),s=Ii(e,o,r),a={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(n||!n&&!r)&&((Dr(t)!=="body"||Wm(i))&&(a=DI(t)),or(t)?(l=Ii(t,!0),l.x+=t.clientLeft,l.y+=t.clientTop):i&&(l.x=Hm(i))),{x:s.left+a.scrollLeft-l.x,y:s.top+a.scrollTop-l.y,width:s.width,height:s.height}}function FI(e){var t=new Map,r=new Set,n=[];e.forEach(function(i){t.set(i.name,i)});function o(i){r.add(i.name);var s=[].concat(i.requires||[],i.requiresIfExists||[]);s.forEach(function(a){if(!r.has(a)){var l=t.get(a);l&&o(l)}}),n.push(i)}return e.forEach(function(i){r.has(i.name)||o(i)}),n}function BI(e){var t=FI(e);return Q9.reduce(function(r,n){return r.concat(t.filter(function(o){return o.phase===n}))},[])}function NI(e){var t;return function(){return t||(t=new Promise(function(r){Promise.resolve().then(function(){t=void 0,r(e())})})),t}}function VI(e){var t=e.reduce(function(r,n){var o=r[n.name];return r[n.name]=o?Object.assign({},o,n,{options:Object.assign({},o.options,n.options),data:Object.assign({},o.data,n.data)}):n,r},{});return Object.keys(t).map(function(r){return t[r]})}var n1={placement:"bottom",modifiers:[],strategy:"absolute"};function o1(){for(var e=arguments.length,t=new Array(e),r=0;r{}),v=x.useCallback(()=>{var M;!t||!m.current||!y.current||((M=h.current)==null||M.call(h),w.current=UI(m.current,y.current,{placement:g,modifiers:[D9,O9,M9,{...$9,enabled:!!f},{name:"eventListeners",...R9(s)},{name:"arrow",options:{padding:i}},{name:"offset",options:{offset:a??[0,l]}},{name:"flip",enabled:!!u,options:{padding:8}},{name:"preventOverflow",enabled:!!d,options:{boundary:c}},...r??[]],strategy:o}),w.current.forceUpdate(),h.current=w.current.destroy)},[g,t,r,f,s,i,a,l,u,d,c,o]);x.useEffect(()=>()=>{var M;!m.current&&!y.current&&((M=w.current)==null||M.destroy(),w.current=null)},[]);const S=x.useCallback(M=>{m.current=M,v()},[v]),_=x.useCallback((M={},F=null)=>({...M,ref:lr(S,F)}),[S]),T=x.useCallback(M=>{y.current=M,v()},[v]),E=x.useCallback((M={},F=null)=>({...M,ref:lr(T,F),style:{...M.style,position:o,minWidth:f?void 0:"max-content",inset:"0 auto auto 0"}}),[o,T,f]),A=x.useCallback((M={},F=null)=>{const{size:q,shadowColor:X,bg:Y,style:J,...Z}=M;return{...Z,ref:F,"data-popper-arrow":"",style:KI(M)}},[]),O=x.useCallback((M={},F=null)=>({...M,ref:F,"data-popper-arrow-inner":""}),[]);return{update(){var M;(M=w.current)==null||M.update()},forceUpdate(){var M;(M=w.current)==null||M.forceUpdate()},transformOrigin:Mt.transformOrigin.varRef,referenceRef:S,popperRef:T,getPopperProps:E,getArrowProps:A,getArrowInnerProps:O,getReferenceProps:_}}function KI(e){const{size:t,shadowColor:r,bg:n,style:o}=e,i={...o,position:"absolute"};return t&&(i["--popper-arrow-size"]=t),r&&(i["--popper-arrow-shadow-color"]=r),n&&(i["--popper-arrow-bg"]=n),i}function XI(e={}){const{onClose:t,onOpen:r,isOpen:n,id:o}=e,i=In(r),s=In(t),[a,l]=x.useState(e.defaultIsOpen||!1),u=n!==void 0?n:a,c=n!==void 0,d=x.useId(),f=o??`disclosure-${d}`,p=x.useCallback(()=>{c||l(!1),s==null||s()},[c,s]),m=x.useCallback(()=>{c||l(!0),i==null||i()},[c,i]),y=x.useCallback(()=>{u?p():m()},[u,m,p]);function w(h={}){return{...h,"aria-expanded":u,"aria-controls":f,onClick(v){var S;(S=h.onClick)==null||S.call(h,v),y()}}}function g(h={}){return{...h,hidden:!u,id:f}}return{isOpen:u,onOpen:m,onClose:p,onToggle:y,isControlled:c,getButtonProps:w,getDisclosureProps:g}}function qI(e){const{ref:t,handler:r,enabled:n=!0}=e,o=In(r),s=x.useRef({isPointerDown:!1,ignoreEmulatedMouseEvents:!1}).current;x.useEffect(()=>{if(!n)return;const a=d=>{pf(d,t)&&(s.isPointerDown=!0)},l=d=>{if(s.ignoreEmulatedMouseEvents){s.ignoreEmulatedMouseEvents=!1;return}s.isPointerDown&&r&&pf(d,t)&&(s.isPointerDown=!1,o(d))},u=d=>{s.ignoreEmulatedMouseEvents=!0,r&&s.isPointerDown&&pf(d,t)&&(s.isPointerDown=!1,o(d))},c=F2(t.current);return c.addEventListener("mousedown",a,!0),c.addEventListener("mouseup",l,!0),c.addEventListener("touchstart",a,!0),c.addEventListener("touchend",u,!0),()=>{c.removeEventListener("mousedown",a,!0),c.removeEventListener("mouseup",l,!0),c.removeEventListener("touchstart",a,!0),c.removeEventListener("touchend",u,!0)}},[r,t,o,s,n])}function pf(e,t){var r;const n=e.target;return n&&!F2(n).contains(n)?!1:!((r=t.current)!=null&&r.contains(n))}function F2(e){var t;return(t=e==null?void 0:e.ownerDocument)!=null?t:document}function YI(e){const{isOpen:t,ref:r}=e,[n,o]=x.useState(t),[i,s]=x.useState(!1);return x.useEffect(()=>{i||(o(t),s(!0))},[t,i,n]),QD(()=>r.current,"animationend",()=>{o(t)}),{present:!(t?!1:!n),onComplete(){var l;const u=ZD(r.current),c=new u.CustomEvent("animationend",{bubbles:!0});(l=r.current)==null||l.dispatchEvent(c)}}}function QI(e){const{wasSelected:t,enabled:r,isSelected:n,mode:o="unmount"}=e;return!!(!r||n||o==="keepMounted"&&t)}var[ZI,JI,ej,tj]=kD(),[rj,ja]=dr({strict:!1,name:"MenuContext"});function nj(e,...t){const r=x.useId(),n=e||r;return x.useMemo(()=>t.map(o=>`${o}-${n}`),[n,t])}function B2(e){var t;return(t=e==null?void 0:e.ownerDocument)!=null?t:document}function i1(e){return B2(e).activeElement===e}function oj(e={}){const{id:t,closeOnSelect:r=!0,closeOnBlur:n=!0,initialFocusRef:o,autoSelect:i=!0,isLazy:s,isOpen:a,defaultIsOpen:l,onClose:u,onOpen:c,placement:d="bottom-start",lazyBehavior:f="unmount",direction:p,computePositionOnMount:m=!1,...y}=e,w=x.useRef(null),g=x.useRef(null),h=ej(),v=x.useCallback(()=>{requestAnimationFrame(()=>{var N;(N=w.current)==null||N.focus({preventScroll:!1})})},[]),S=x.useCallback(()=>{const N=setTimeout(()=>{var G;if(o)(G=o.current)==null||G.focus();else{const we=h.firstEnabled();we&&X(we.index)}});L.current.add(N)},[h,o]),_=x.useCallback(()=>{const N=setTimeout(()=>{const G=h.lastEnabled();G&&X(G.index)});L.current.add(N)},[h]),T=x.useCallback(()=>{c==null||c(),i?S():v()},[i,S,v,c]),{isOpen:E,onOpen:A,onClose:O,onToggle:M}=XI({isOpen:a,defaultIsOpen:l,onClose:u,onOpen:T});qI({enabled:E&&n,ref:w,handler:N=>{var G;(G=g.current)!=null&&G.contains(N.target)||O()}});const F=GI({...y,enabled:E||m,placement:d,direction:p}),[q,X]=x.useState(-1);Mi(()=>{E||X(-1)},[E]),E9(w,{focusRef:g,visible:E,shouldFocus:!0});const Y=YI({isOpen:E,ref:w}),[J,Z]=nj(t,"menu-button","menu-list"),z=x.useCallback(()=>{A(),v()},[A,v]),L=x.useRef(new Set([]));x.useEffect(()=>{const N=L.current;return()=>{N.forEach(G=>clearTimeout(G)),N.clear()}},[]);const B=x.useCallback(()=>{A(),S()},[S,A]),W=x.useCallback(()=>{A(),_()},[A,_]),V=x.useCallback(()=>{var N,G;const we=B2(w.current),he=(N=w.current)==null?void 0:N.contains(we.activeElement);if(!(E&&!he))return;const Ie=(G=h.item(q))==null?void 0:G.node;Ie==null||Ie.focus({preventScroll:!0})},[E,q,h]),ee=x.useRef(null);return{openAndFocusMenu:z,openAndFocusFirstItem:B,openAndFocusLastItem:W,onTransitionEnd:V,unstable__animationState:Y,descendants:h,popper:F,buttonId:J,menuId:Z,forceUpdate:F.forceUpdate,orientation:"vertical",isOpen:E,onToggle:M,onOpen:A,onClose:O,menuRef:w,buttonRef:g,focusedIndex:q,closeOnSelect:r,closeOnBlur:n,autoSelect:i,setFocusedIndex:X,isLazy:s,lazyBehavior:f,initialFocusRef:o,rafId:ee}}function ij(e={},t=null){const r=ja(),{onToggle:n,popper:o,openAndFocusFirstItem:i,openAndFocusLastItem:s}=r,a=x.useCallback(l=>{const u=l.key,d={Enter:i,ArrowDown:i,ArrowUp:s}[u];d&&(l.preventDefault(),l.stopPropagation(),d(l))},[i,s]);return{...e,ref:lr(r.buttonRef,t,o.referenceRef),id:r.buttonId,"data-active":le(r.isOpen),"aria-expanded":r.isOpen,"aria-haspopup":"menu","aria-controls":r.menuId,onClick:lt(e.onClick,n),onKeyDown:lt(e.onKeyDown,a)}}function Wp(e){var t;return uj(e)&&!!((t=e==null?void 0:e.getAttribute("role"))!=null&&t.startsWith("menuitem"))}function sj(e={},t=null){const r=ja();if(!r)throw new Error("useMenuContext: context is undefined. Seems you forgot to wrap component within ");const{focusedIndex:n,setFocusedIndex:o,menuRef:i,isOpen:s,onClose:a,menuId:l,isLazy:u,lazyBehavior:c,unstable__animationState:d}=r,f=JI(),p=S9({preventDefault:g=>g.key!==" "&&Wp(g.target)}),m=x.useCallback(g=>{if(!g.currentTarget.contains(g.target))return;const h=g.key,S={Tab:T=>T.preventDefault(),Escape:a,ArrowDown:()=>{const T=f.nextEnabled(n);T&&o(T.index)},ArrowUp:()=>{const T=f.prevEnabled(n);T&&o(T.index)}}[h];if(S){g.preventDefault(),S(g);return}const _=p(T=>{const E=w9(f.values(),T,A=>{var O,M;return(M=(O=A==null?void 0:A.node)==null?void 0:O.textContent)!=null?M:""},f.item(n));if(E){const A=f.indexOf(E.node);o(A)}});Wp(g.target)&&_(g)},[f,n,p,a,o]),y=x.useRef(!1);s&&(y.current=!0);const w=QI({wasSelected:y.current,enabled:u,mode:c,isSelected:d.present});return{...e,ref:lr(i,t),children:w?e.children:null,tabIndex:-1,role:"menu",id:l,style:{...e.style,transformOrigin:"var(--popper-transform-origin)"},"aria-orientation":"vertical",onKeyDown:lt(e.onKeyDown,m)}}function aj(e={}){const{popper:t,isOpen:r}=ja();return t.getPopperProps({...e,style:{visibility:r?"visible":"hidden",...e.style}})}function lj(e={},t=null){const{onMouseEnter:r,onMouseMove:n,onMouseLeave:o,onClick:i,onFocus:s,isDisabled:a,isFocusable:l,closeOnSelect:u,type:c,...d}=e,f=ja(),{setFocusedIndex:p,focusedIndex:m,closeOnSelect:y,onClose:w,menuRef:g,isOpen:h,menuId:v,rafId:S}=f,_=x.useRef(null),T=`${v}-menuitem-${x.useId()}`,{index:E,register:A}=tj({disabled:a&&!l}),O=x.useCallback(z=>{r==null||r(z),!a&&p(E)},[p,E,a,r]),M=x.useCallback(z=>{n==null||n(z),_.current&&!i1(_.current)&&O(z)},[O,n]),F=x.useCallback(z=>{o==null||o(z),!a&&p(-1)},[p,a,o]),q=x.useCallback(z=>{i==null||i(z),Wp(z.currentTarget)&&(u??y)&&w()},[w,i,y,u]),X=x.useCallback(z=>{s==null||s(z),p(E)},[p,s,E]),Y=E===m,J=a&&!l;Mi(()=>{if(h)return Y&&!J&&_.current?(S.current&&cancelAnimationFrame(S.current),S.current=requestAnimationFrame(()=>{var z;(z=_.current)==null||z.focus({preventScroll:!0}),S.current=null})):g.current&&!i1(g.current)&&g.current.focus({preventScroll:!0}),()=>{S.current&&cancelAnimationFrame(S.current)}},[Y,J,g,h]);const Z=C9({onClick:q,onFocus:X,onMouseEnter:O,onMouseMove:M,onMouseLeave:F,ref:lr(A,_,t),isDisabled:a,isFocusable:l});return{...d,...Z,type:c??Z.type,id:T,role:"menuitem",tabIndex:Y?0:-1}}function uj(e){var t;if(!cj(e))return!1;const r=(t=e.ownerDocument.defaultView)!=null?t:window;return e instanceof r.HTMLElement}function cj(e){return e!=null&&typeof e=="object"&&"nodeType"in e&&e.nodeType===Node.ELEMENT_NODE}var[dj,Fa]=dr({name:"MenuStylesContext",errorMessage:`useMenuStyles returned is 'undefined'. Seems you forgot to wrap the components in "" `}),Um=e=>{const{children:t}=e,r=Wi("Menu",e),n=Wt(e),{direction:o}=Ro(),{descendants:i,...s}=oj({...n,direction:o}),a=x.useMemo(()=>s,[s]),{isOpen:l,onClose:u,forceUpdate:c}=a;return k.jsx(ZI,{value:i,children:k.jsx(rj,{value:a,children:k.jsx(dj,{value:r,children:qr(t,{isOpen:l,onClose:u,forceUpdate:c})})})})};Um.displayName="Menu";var N2=ne((e,t)=>{const r=Fa();return k.jsx(Q.span,{ref:t,...e,__css:r.command,className:"chakra-menu__command"})});N2.displayName="MenuCommand";var fj=ne((e,t)=>{const{type:r,...n}=e,o=Fa(),i=n.as||r?r??void 0:"button",s=x.useMemo(()=>({textDecoration:"none",color:"inherit",userSelect:"none",display:"flex",width:"100%",alignItems:"center",textAlign:"start",flex:"0 0 auto",outline:0,...o.item}),[o.item]);return k.jsx(Q.button,{ref:t,type:i,...n,__css:s})}),V2=e=>{const{className:t,children:r,...n}=e,o=Fa(),i=x.Children.only(r),s=x.isValidElement(i)?x.cloneElement(i,{focusable:"false","aria-hidden":!0,className:Ee("chakra-menu__icon",i.props.className)}):null,a=Ee("chakra-menu__icon-wrapper",t);return k.jsx(Q.span,{className:a,...n,__css:o.icon,children:s})};V2.displayName="MenuIcon";var Gm=ne((e,t)=>{const{icon:r,iconSpacing:n="0.75rem",command:o,commandSpacing:i="0.75rem",children:s,...a}=e,l=lj(a,t),c=r||o?k.jsx("span",{style:{pointerEvents:"none",flex:1},children:s}):s;return k.jsxs(fj,{...l,className:Ee("chakra-menu__menuitem",l.className),children:[r&&k.jsx(V2,{fontSize:"0.8em",marginEnd:n,children:r}),c,o&&k.jsx(N2,{marginStart:i,children:o})]})});Gm.displayName="MenuItem";var pj={enter:{visibility:"visible",opacity:1,scale:1,transition:{duration:.2,ease:[.4,0,.2,1]}},exit:{transitionEnd:{visibility:"hidden"},opacity:0,scale:.8,transition:{duration:.1,easings:"easeOut"}}},hj=Q(e2.div),Km=ne(function(t,r){var n,o;const{rootProps:i,motionProps:s,...a}=t,{isOpen:l,onTransitionEnd:u,unstable__animationState:c}=ja(),d=sj(a,r),f=aj(i),p=Fa();return k.jsx(Q.div,{...f,__css:{zIndex:(o=t.zIndex)!=null?o:(n=p.list)==null?void 0:n.zIndex},children:k.jsx(hj,{variants:pj,initial:!1,animate:l?"enter":"exit",__css:{outline:0,...p.list},...s,className:Ee("chakra-menu__menu-list",d.className),...d,onUpdate:u,onAnimationComplete:d4(c.onComplete,d.onAnimationComplete)})})});Km.displayName="MenuList";var mj=ne((e,t)=>{const r=Fa();return k.jsx(Q.button,{ref:t,...e,__css:{display:"inline-flex",appearance:"none",alignItems:"center",outline:0,...r.button}})}),Xm=ne((e,t)=>{const{children:r,as:n,...o}=e,i=ij(o,t),s=n||mj;return k.jsx(s,{...i,className:Ee("chakra-menu__menu-button",e.className),children:k.jsx(Q.span,{__css:{pointerEvents:"none",flex:"1 1 auto",minW:0},children:e.children})})});Xm.displayName="MenuButton";function gj(){const e=x.useRef(!0);return x.useEffect(()=>{e.current=!1},[]),e.current}function vj(e){const t=x.useRef();return x.useEffect(()=>{t.current=e},[e]),t.current}var yj=Q("div",{baseStyle:{boxShadow:"none",backgroundClip:"padding-box",cursor:"default",color:"transparent",pointerEvents:"none",userSelect:"none","&::before, &::after, *":{visibility:"hidden"}}}),Up=H("skeleton-start-color"),Gp=H("skeleton-end-color"),bj=em({from:{opacity:0},to:{opacity:1}}),xj=em({from:{borderColor:Up.reference,background:Up.reference},to:{borderColor:Gp.reference,background:Gp.reference}}),qm=ne((e,t)=>{const r={...e,fadeDuration:typeof e.fadeDuration=="number"?e.fadeDuration:.4,speed:typeof e.speed=="number"?e.speed:.8},n=Xn("Skeleton",r),o=gj(),{startColor:i="",endColor:s="",isLoaded:a,fadeDuration:l,speed:u,className:c,fitContent:d,...f}=Wt(r),[p,m]=u4("colors",[i,s]),y=vj(a),w=Ee("chakra-skeleton",c),g={...p&&{[Up.variable]:p},...m&&{[Gp.variable]:m}};if(a){const h=o||y?"none":`${bj} ${l}s`;return k.jsx(Q.div,{ref:t,className:w,__css:{animation:h},...f})}return k.jsx(yj,{ref:t,className:w,...f,__css:{width:d?"fit-content":void 0,...n,...g,_dark:{...n._dark,...g},animation:`${u}s linear infinite alternate ${xj}`}})});qm.displayName="Skeleton";function Sj(e){return Array(e).fill(1).map((t,r)=>r+1)}var s1=3,H2=e=>{const{noOfLines:t=s1,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,y=b9(typeof t=="number"?[t]:t)||s1,w=Sj(y),g=v=>y>1&&v===w.length?"80%":"100%",h=Ee("chakra-skeleton__group",o);return k.jsx(Q.div,{className:h,...m,children:w.map((v,S)=>{if(a&&S>0)return null;const _=a?null:{mb:v===w.length?"0":r,width:g(v),height:n};return k.jsx(qm,{startColor:i,endColor:s,isLoaded:a,fadeDuration:l,speed:u,variant:c,size:d,colorScheme:f,..._,children:S===0?p:void 0},w.length.toString()+v)})})};H2.displayName="SkeletonText";var W2=ne(function(t,r){const n=Wi("Switch",t),{spacing:o="0.5rem",children:i,...s}=Wt(t),{getIndicatorProps:a,getInputProps:l,getCheckboxProps:u,getRootProps:c,getLabelProps:d}=qD(s),f=x.useMemo(()=>({display:"inline-block",position:"relative",verticalAlign:"middle",lineHeight:0,...n.container}),[n.container]),p=x.useMemo(()=>({display:"inline-flex",flexShrink:0,justifyContent:"flex-start",boxSizing:"content-box",cursor:"pointer",...n.track}),[n.track]),m=x.useMemo(()=>({userSelect:"none",marginStart:o,...n.label}),[o,n.label]);return k.jsxs(Q.label,{...c(),className:Ee("chakra-switch",t.className),__css:f,children:[k.jsx("input",{className:"chakra-switch__input",...l({},r)}),k.jsx(Q.span,{...u(),className:"chakra-switch__track",__css:p,children:k.jsx(Q.span,{__css:n.thumb,className:"chakra-switch__thumb",...a()})}),i&&k.jsx(Q.span,{className:"chakra-switch__label",...d(),__css:m,children:i})]})});W2.displayName="Switch";const wj="/GameHub/assets/logo-ff4914e6.webp",kj=()=>{const{colorMode:e,toggleColorMode:t}=_c();return k.jsxs(zo,{children:[k.jsx(W2,{isChecked:e==="dark",colorScheme:"green",onChange:t}),k.jsx(ba,{children:"Dark Mode"})]})};function Cj(){return k.jsxs(zo,{justifyContent:"space-between",children:[k.jsx(Bc,{src:wj,boxSize:"60px"}),k.jsx(kj,{})]})}function U2(e,t){return function(){return e.apply(t,arguments)}}const{toString:Pj}=Object.prototype,{getPrototypeOf:Ym}=Object,Uc=(e=>t=>{const r=Pj.call(t);return e[r]||(e[r]=r.slice(8,-1).toLowerCase())})(Object.create(null)),Ir=e=>(e=e.toLowerCase(),t=>Uc(t)===e),Gc=e=>t=>typeof t===e,{isArray:Ui}=Array,wa=Gc("undefined");function Ej(e){return e!==null&&!wa(e)&&e.constructor!==null&&!wa(e.constructor)&&ir(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const G2=Ir("ArrayBuffer");function _j(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&G2(e.buffer),t}const Tj=Gc("string"),ir=Gc("function"),K2=Gc("number"),Kc=e=>e!==null&&typeof e=="object",Aj=e=>e===!0||e===!1,nu=e=>{if(Uc(e)!=="object")return!1;const t=Ym(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},Rj=Ir("Date"),$j=Ir("File"),Mj=Ir("Blob"),Oj=Ir("FileList"),zj=e=>Kc(e)&&ir(e.pipe),Lj=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||ir(e.append)&&((t=Uc(e))==="formdata"||t==="object"&&ir(e.toString)&&e.toString()==="[object FormData]"))},Dj=Ir("URLSearchParams"),Ij=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Ba(e,t,{allOwnKeys:r=!1}={}){if(e===null||typeof e>"u")return;let n,o;if(typeof e!="object"&&(e=[e]),Ui(e))for(n=0,o=e.length;n0;)if(o=r[n],t===o.toLowerCase())return o;return null}const q2=(()=>typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global)(),Y2=e=>!wa(e)&&e!==q2;function Kp(){const{caseless:e}=Y2(this)&&this||{},t={},r=(n,o)=>{const i=e&&X2(t,o)||o;nu(t[i])&&nu(n)?t[i]=Kp(t[i],n):nu(n)?t[i]=Kp({},n):Ui(n)?t[i]=n.slice():t[i]=n};for(let n=0,o=arguments.length;n(Ba(t,(o,i)=>{r&&ir(o)?e[i]=U2(o,r):e[i]=o},{allOwnKeys:n}),e),Fj=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),Bj=(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)},Nj=(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&&Ym(e)}while(e&&(!r||r(e,t))&&e!==Object.prototype);return t},Vj=(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},Hj=e=>{if(!e)return null;if(Ui(e))return e;let t=e.length;if(!K2(t))return null;const r=new Array(t);for(;t-- >0;)r[t]=e[t];return r},Wj=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&Ym(Uint8Array)),Uj=(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])}},Gj=(e,t)=>{let r;const n=[];for(;(r=e.exec(t))!==null;)n.push(r);return n},Kj=Ir("HTMLFormElement"),Xj=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(r,n,o){return n.toUpperCase()+o}),a1=(({hasOwnProperty:e})=>(t,r)=>e.call(t,r))(Object.prototype),qj=Ir("RegExp"),Q2=(e,t)=>{const r=Object.getOwnPropertyDescriptors(e),n={};Ba(r,(o,i)=>{let s;(s=t(o,i,e))!==!1&&(n[i]=s||o)}),Object.defineProperties(e,n)},Yj=e=>{Q2(e,(t,r)=>{if(ir(e)&&["arguments","caller","callee"].indexOf(r)!==-1)return!1;const n=e[r];if(ir(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+"'")})}})},Qj=(e,t)=>{const r={},n=o=>{o.forEach(i=>{r[i]=!0})};return Ui(e)?n(e):n(String(e).split(t)),r},Zj=()=>{},Jj=(e,t)=>(e=+e,Number.isFinite(e)?e:t),hf="abcdefghijklmnopqrstuvwxyz",l1="0123456789",Z2={DIGIT:l1,ALPHA:hf,ALPHA_DIGIT:hf+hf.toUpperCase()+l1},eF=(e=16,t=Z2.ALPHA_DIGIT)=>{let r="";const{length:n}=t;for(;e--;)r+=t[Math.random()*n|0];return r};function tF(e){return!!(e&&ir(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const rF=e=>{const t=new Array(10),r=(n,o)=>{if(Kc(n)){if(t.indexOf(n)>=0)return;if(!("toJSON"in n)){t[o]=n;const i=Ui(n)?[]:{};return Ba(n,(s,a)=>{const l=r(s,o+1);!wa(l)&&(i[a]=l)}),t[o]=void 0,i}}return n};return r(e,0)},nF=Ir("AsyncFunction"),oF=e=>e&&(Kc(e)||ir(e))&&ir(e.then)&&ir(e.catch),$={isArray:Ui,isArrayBuffer:G2,isBuffer:Ej,isFormData:Lj,isArrayBufferView:_j,isString:Tj,isNumber:K2,isBoolean:Aj,isObject:Kc,isPlainObject:nu,isUndefined:wa,isDate:Rj,isFile:$j,isBlob:Mj,isRegExp:qj,isFunction:ir,isStream:zj,isURLSearchParams:Dj,isTypedArray:Wj,isFileList:Oj,forEach:Ba,merge:Kp,extend:jj,trim:Ij,stripBOM:Fj,inherits:Bj,toFlatObject:Nj,kindOf:Uc,kindOfTest:Ir,endsWith:Vj,toArray:Hj,forEachEntry:Uj,matchAll:Gj,isHTMLForm:Kj,hasOwnProperty:a1,hasOwnProp:a1,reduceDescriptors:Q2,freezeMethods:Yj,toObjectSet:Qj,toCamelCase:Xj,noop:Zj,toFiniteNumber:Jj,findKey:X2,global:q2,isContextDefined:Y2,ALPHABET:Z2,generateString:eF,isSpecCompliantForm:tF,toJSONObject:rF,isAsyncFn:nF,isThenable:oF};function se(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(se,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 J2=se.prototype,ek={};["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=>{ek[e]={value:e}});Object.defineProperties(se,ek);Object.defineProperty(J2,"isAxiosError",{value:!0});se.from=(e,t,r,n,o,i)=>{const s=Object.create(J2);return $.toFlatObject(e,s,function(l){return l!==Error.prototype},a=>a!=="isAxiosError"),se.call(s,e.message,t,r,n,o),s.cause=e,s.name=e.name,i&&Object.assign(s,i),s};const iF=null;function Xp(e){return $.isPlainObject(e)||$.isArray(e)}function tk(e){return $.endsWith(e,"[]")?e.slice(0,-2):e}function u1(e,t,r){return e?e.concat(t).map(function(o,i){return o=tk(o),!r&&i?"["+o+"]":o}).join(r?".":""):t}function sF(e){return $.isArray(e)&&!e.some(Xp)}const aF=$.toFlatObject($,{},null,function(t){return/^is[A-Z]/.test(t)});function Xc(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(y,w){return!$.isUndefined(w[y])});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 se("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,y,w){let g=m;if(m&&!w&&typeof m=="object"){if($.endsWith(y,"{}"))y=n?y:y.slice(0,-2),m=JSON.stringify(m);else if($.isArray(m)&&sF(m)||($.isFileList(m)||$.endsWith(y,"[]"))&&(g=$.toArray(m)))return y=tk(y),g.forEach(function(v,S){!($.isUndefined(v)||v===null)&&t.append(s===!0?u1([y],S,i):s===null?y:y+"[]",u(v))}),!1}return Xp(m)?!0:(t.append(u1(w,y,i),u(m)),!1)}const d=[],f=Object.assign(aF,{defaultVisitor:c,convertValue:u,isVisitable:Xp});function p(m,y){if(!$.isUndefined(m)){if(d.indexOf(m)!==-1)throw Error("Circular reference detected in "+y.join("."));d.push(m),$.forEach(m,function(g,h){(!($.isUndefined(g)||g===null)&&o.call(t,g,$.isString(h)?h.trim():h,y,f))===!0&&p(g,y?y.concat(h):[h])}),d.pop()}}if(!$.isObject(e))throw new TypeError("data must be an object");return p(e),t}function c1(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(n){return t[n]})}function Qm(e,t){this._pairs=[],e&&Xc(e,this,t)}const rk=Qm.prototype;rk.append=function(t,r){this._pairs.push([t,r])};rk.toString=function(t){const r=t?function(n){return t.call(this,n,c1)}:c1;return this._pairs.map(function(o){return r(o[0])+"="+r(o[1])},"").join("&")};function lF(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function nk(e,t,r){if(!t)return e;const n=r&&r.encode||lF,o=r&&r.serialize;let i;if(o?i=o(t,r):i=$.isURLSearchParams(t)?t.toString():new Qm(t,r).toString(n),i){const s=e.indexOf("#");s!==-1&&(e=e.slice(0,s)),e+=(e.indexOf("?")===-1?"?":"&")+i}return e}class uF{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 d1=uF,ok={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},cF=typeof URLSearchParams<"u"?URLSearchParams:Qm,dF=typeof FormData<"u"?FormData:null,fF=typeof Blob<"u"?Blob:null,pF=(()=>{let e;return typeof navigator<"u"&&((e=navigator.product)==="ReactNative"||e==="NativeScript"||e==="NS")?!1:typeof window<"u"&&typeof document<"u"})(),hF=(()=>typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function")(),yr={isBrowser:!0,classes:{URLSearchParams:cF,FormData:dF,Blob:fF},isStandardBrowserEnv:pF,isStandardBrowserWebWorkerEnv:hF,protocols:["http","https","file","blob","url","data"]};function mF(e,t){return Xc(e,new yr.classes.URLSearchParams,Object.assign({visitor:function(r,n,o,i){return yr.isNode&&$.isBuffer(r)?(this.append(n,r.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)}},t))}function gF(e){return $.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function vF(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]=vF(o[s])),!a)}if($.isFormData(e)&&$.isFunction(e.entries)){const r={};return $.forEachEntry(e,(n,o)=>{t(gF(n),o,r,0)}),r}return null}function yF(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 Zm={transitional:ok,adapter:yr.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(ik(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 mF(t,this.formSerializer).toString();if((a=$.isFileList(t))||n.indexOf("multipart/form-data")>-1){const l=this.env&&this.env.FormData;return Xc(a?{"files[]":t}:t,l&&new l,this.formSerializer)}}return i||o?(r.setContentType("application/json",!1),yF(t)):t}],transformResponse:[function(t){const r=this.transitional||Zm.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"?se.from(a,se.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:yr.classes.FormData,Blob:yr.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=>{Zm.headers[e]={}});const Jm=Zm,bF=$.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"]),xF=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]&&bF[r])&&(r==="set-cookie"?t[r]?t[r].push(n):t[r]=[n]:t[r]=t[r]?t[r]+", "+n:n)}),t},f1=Symbol("internals");function ds(e){return e&&String(e).trim().toLowerCase()}function ou(e){return e===!1||e==null?e:$.isArray(e)?e.map(ou):String(e)}function SF(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 wF=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function mf(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 kF(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,r,n)=>r.toUpperCase()+n)}function CF(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 qc=class{constructor(t){t&&this.set(t)}set(t,r,n){const o=this;function i(a,l,u){const c=ds(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]=ou(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())&&!wF(t)?s(xF(t),r):t!=null&&i(r,t,n),this}get(t,r){if(t=ds(t),t){const n=$.findKey(this,t);if(n){const o=this[n];if(!r)return o;if(r===!0)return SF(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=ds(t),t){const n=$.findKey(this,t);return!!(n&&this[n]!==void 0&&(!r||mf(this,this[n],n,r)))}return!1}delete(t,r){const n=this;let o=!1;function i(s){if(s=ds(s),s){const a=$.findKey(n,s);a&&(!r||mf(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||mf(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]=ou(o),delete r[i];return}const a=t?kF(i):String(i).trim();a!==i&&delete r[i],r[a]=ou(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[f1]=this[f1]={accessors:{}}).accessors,o=this.prototype;function i(s){const a=ds(s);n[a]||(CF(o,s),n[a]=!0)}return $.isArray(t)?t.forEach(i):i(t),this}};qc.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);$.reduceDescriptors(qc.prototype,({value:e},t)=>{let r=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(n){this[r]=n}}});$.freezeMethods(qc);const nn=qc;function gf(e,t){const r=this||Jm,n=t||r,o=nn.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 sk(e){return!!(e&&e.__CANCEL__)}function Na(e,t,r){se.call(this,e??"canceled",se.ERR_CANCELED,t,r),this.name="CanceledError"}$.inherits(Na,se,{__CANCEL__:!0});function PF(e,t,r){const n=r.config.validateStatus;!r.status||!n||n(r.status)?e(r):t(new se("Request failed with status code "+r.status,[se.ERR_BAD_REQUEST,se.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r))}const EF=yr.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 _F(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function TF(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}function ak(e,t){return e&&!_F(t)?TF(e,t):t}const AF=yr.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 RF(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function $F(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 MF=typeof XMLHttpRequest<"u",OF=MF&&function(e){return new Promise(function(r,n){let o=e.data;const i=nn.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)&&(yr.isStandardBrowserEnv||yr.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=ak(e.baseURL,e.url);u.open(e.method.toUpperCase(),nk(c,e.params,e.paramsSerializer),!0),u.timeout=e.timeout;function d(){if(!u)return;const p=nn.from("getAllResponseHeaders"in u&&u.getAllResponseHeaders()),y={data:!s||s==="text"||s==="json"?u.responseText:u.response,status:u.status,statusText:u.statusText,headers:p,config:e,request:u};PF(function(g){r(g),l()},function(g){n(g),l()},y),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 se("Request aborted",se.ECONNABORTED,e,u)),u=null)},u.onerror=function(){n(new se("Network Error",se.ERR_NETWORK,e,u)),u=null},u.ontimeout=function(){let m=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded";const y=e.transitional||ok;e.timeoutErrorMessage&&(m=e.timeoutErrorMessage),n(new se(m,y.clarifyTimeoutError?se.ETIMEDOUT:se.ECONNABORTED,e,u)),u=null},yr.isStandardBrowserEnv){const p=(e.withCredentials||AF(c))&&e.xsrfCookieName&&EF.read(e.xsrfCookieName);p&&i.set(e.xsrfHeaderName,p)}o===void 0&&i.setContentType(null),"setRequestHeader"in u&&$.forEach(i.toJSON(),function(m,y){u.setRequestHeader(y,m)}),$.isUndefined(e.withCredentials)||(u.withCredentials=!!e.withCredentials),s&&s!=="json"&&(u.responseType=e.responseType),typeof e.onDownloadProgress=="function"&&u.addEventListener("progress",p1(e.onDownloadProgress,!0)),typeof e.onUploadProgress=="function"&&u.upload&&u.upload.addEventListener("progress",p1(e.onUploadProgress)),(e.cancelToken||e.signal)&&(a=p=>{u&&(n(!p||p.type?new Na(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=RF(c);if(f&&yr.protocols.indexOf(f)===-1){n(new se("Unsupported protocol "+f+":",se.ERR_BAD_REQUEST,e));return}u.send(o||null)})},iu={http:iF,xhr:OF};$.forEach(iu,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const lk={getAdapter:e=>{e=$.isArray(e)?e:[e];const{length:t}=e;let r,n;for(let o=0;oe instanceof nn?e.toJSON():e;function Fi(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(m1(u),m1(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 uk="1.5.0",e0={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{e0[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}});const g1={};e0.transitional=function(t,r,n){function o(i,s){return"[Axios v"+uk+"] Transitional option '"+i+"'"+s+(n?". "+n:"")}return(i,s,a)=>{if(t===!1)throw new se(o(s," has been removed"+(r?" in "+r:"")),se.ERR_DEPRECATED);return r&&!g1[s]&&(g1[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 zF(e,t,r){if(typeof e!="object")throw new se("options must be an object",se.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 se("option "+i+" must be "+l,se.ERR_BAD_OPTION_VALUE);continue}if(r!==!0)throw new se("Unknown option "+i,se.ERR_BAD_OPTION)}}const qp={assertOptions:zF,validators:e0},bn=qp.validators;let qu=class{constructor(t){this.defaults=t,this.interceptors={request:new d1,response:new d1}}request(t,r){typeof t=="string"?(r=r||{},r.url=t):r=t||{},r=Fi(this.defaults,r);const{transitional:n,paramsSerializer:o,headers:i}=r;n!==void 0&&qp.assertOptions(n,{silentJSONParsing:bn.transitional(bn.boolean),forcedJSONParsing:bn.transitional(bn.boolean),clarifyTimeoutError:bn.transitional(bn.boolean)},!1),o!=null&&($.isFunction(o)?r.paramsSerializer={serialize:o}:qp.assertOptions(o,{encode:bn.function,serialize:bn.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=nn.concat(s,i);const a=[];let l=!0;this.interceptors.request.forEach(function(y){typeof y.runWhen=="function"&&y.runWhen(r)===!1||(l=l&&y.synchronous,a.unshift(y.fulfilled,y.rejected))});const u=[];this.interceptors.response.forEach(function(y){u.push(y.fulfilled,y.rejected)});let c,d=0,f;if(!l){const m=[h1.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 Na(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 ck(function(o){t=o}),cancel:t}}};const DF=LF;function IF(e){return function(r){return e.apply(null,r)}}function jF(e){return $.isObject(e)&&e.isAxiosError===!0}const Yp={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(Yp).forEach(([e,t])=>{Yp[t]=e});const FF=Yp;function dk(e){const t=new su(e),r=U2(su.prototype.request,t);return $.extend(r,su.prototype,t,{allOwnKeys:!0}),$.extend(r,t,null,{allOwnKeys:!0}),r.create=function(o){return dk(Fi(e,o))},r}const He=dk(Jm);He.Axios=su;He.CanceledError=Na;He.CancelToken=DF;He.isCancel=sk;He.VERSION=uk;He.toFormData=Xc;He.AxiosError=se;He.Cancel=He.CanceledError;He.all=function(t){return Promise.all(t)};He.spread=IF;He.isAxiosError=jF;He.mergeConfig=Fi;He.AxiosHeaders=nn;He.formToJSON=e=>ik($.isHTMLForm(e)?new FormData(e):e);He.getAdapter=lk.getAdapter;He.HttpStatusCode=FF;He.default=He;const fk=He,{Axios:y7,AxiosError:b7,CanceledError:BF,isCancel:x7,CancelToken:S7,VERSION:w7,all:k7,Cancel:C7,isAxiosError:P7,spread:E7,toFormData:_7,AxiosHeaders:T7,HttpStatusCode:A7,formToJSON:R7,getAdapter:$7,mergeConfig:M7}=fk,NF=fk.create({baseURL:"https://api.rawg.io/api",params:{key:"48105d50b8744f30a984fcfaeee838b4"}}),t0=(e,t,r)=>{const[n,o]=x.useState([]),[i,s]=x.useState(""),[a,l]=x.useState(!1);return x.useEffect(()=>{const u=new AbortController;return o([]),l(!0),NF.get(e,{signal:u.signal,...t}).then(c=>{o(c.data.results),l(!1)}).catch(c=>{c instanceof BF||(s(c.message),l(!1))}),()=>{u.abort()}},r?[...r]:[]),{data:n,error:i,isLoading:a}},VF=e=>{var o,i;const{data:t,isLoading:r,error:n}=t0("/games",{params:{genres:(o=e.genre)==null?void 0:o.id,platforms:(i=e.platform)==null?void 0:i.id,ordering:e.sortOrder||""}},[e]);return{games:t,error:n,isLoading:r}};var pk={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},v1=zt.createContext&&zt.createContext(pk),Bn=globalThis&&globalThis.__assign||function(){return Bn=Object.assign||function(e){for(var t,r=1,n=arguments.length;r{const t={pc:qF,playstation:XF,xbox:YF,nintendo:ZF,mac:GF,linux:KF,android:UF,ios:QF,web:JF};return k.jsx(zo,{marginY:1,children:e.map(r=>k.jsx(Oo,{as:t[r.slug],color:"gray.500"},r.id))})},t7=({score:e})=>{const t=e>75?"green":e>60?"yellow":"";return k.jsx(_2,{fontSize:"14px",paddingX:"2",borderRadius:"4px",colorScheme:t,children:e})},r7="data:image/webp;base64,UklGRlQNAABXRUJQVlA4TEcNAAAvr8THAI9AJm3jX+/udDbIpG38y92/FDJpG/+Cdzab/9gW3iW6QwRIwANFXQiEw7htI0da99/15NkL34iYADi/GTcDSKqVcTVN3AER2RY88i29WwjACRuyGYa3ICaVHcE7LnD+L7bLt2zbdVvbtlVwvxFAxf9/7rhaBCqAOhgxIvo/AUCB+PuPIiIdSZLbNgCYM/7/Yt+ANXSI6H+M//vff//9999///3333///ffff//9999///3333///ffff//9999///3333///ffff//9999///3333///ffff//9999///3333///fdfmFKvJafovXPWGpNEJOVSW+tjzH31O0StJG81flBy7XPdLw/VHJ3G76c69vvetBwMXs25zfOVoSc5hUnmvvTrUpPBbKXO91WhEjQmLW3p56Qli8mnfj4kPRkskevSLwhli5Xm8b4dVBzWm8b7bLSgsOg07hejWCw9Tf1WUNJYf1n6mageTOR2PhHFgJNp6NehGLCz7i9DNmBpGvpRyBp8bfeDkDV4m9fHoGjwV4Z+B6oFj7m/b0D3YHS78U8RzC4n+JMCv/MK/GrA87SCngL4nlbEZwXWpxXtzYL9aUU6RWxhPmFeNXax3BCniJ2sL76rwWZ2De6I/eShgd0MtlRWWCdsaz4h3S12tr54fhQ2d2gwR+yvrEjuFltcbhgXhV3uGsMRGy0rgLvBXpcXvY/GbvOI3YwdTydwAza9a9B2g22XFbJVYeerxmvG5suK1oD9rxqp5HACecVpNziERYO0aRxDXiH6KJzEqvGZcRhlR2fEeWwamh4nUk5cksOhHFFJFscyv5Akg4PJKyC7xtlsGo1N4XTKicWqcEBHJBac0aJhWHBKZQdhwUEdIVhwVIvGX8ZhlRN9Ged1xF7GiS0aeBlnVm7YZRzbGXQZB7eFXMbRzS/eCg4v72grOL8j1gpOcNVAe3CG0wuzilPMJ8iqOkZEM8SawkluAdY1znLW6CKN0yw3tsjgPPMKLYsjPQLL41C3sAo41kVjKuJgpxdRGUebTzwVnO4ZTRXne8RS0weMWiSRxhEvGkZkccjTiyKPYy43hiIOOu8ISjjrM34KTvv4Y/QnR2eNVlDa2NLmfh5p6rhR/0+07BX+m1zGcQZpHPj6f3iCwl9y3Z6wOPJZ/wotafy99OuFgEOf9H9QPX61bBdkHHu5f4Lq8Mt52//g4PP5B3SPX8/X+K5OHvHGPym8sKvlZHD4F/jV4J2yDXc4/hP6jPcOsyMu4MSdPN6c1eaMKzhQbxrvlmNxxSXsmFeFt/O2t6tbQBXxR2GCy1oyuIcV74I55s3yuIlFwX4wy2Jqwl3MCnVT08A2tOA2ZgW6a8yTj5lNXQdKCjMZzFTUSDK4kElR9phrMdLjSsrDOGO2w8SMSykP4aamQ8fAimspF2CD+YqaR/peEF94M2Y8zHO4mXzBJTUlesZF3E252AbMudj24HbyRbZh1tuyrq4H8QXWTytbZnBB+cDaMe9jV8AV5YNqmFgxK+OS8sGUMPNrVMM15QNpnlq3icw9IT6ImqmJTR43lS+eDXPfFiXcVb5wxsk1gypuK1809eTYHtLXheRi2TH7Y47DhZULZZ7esCbhyspDMkyvGFNxaeUBqafHtpC+NSQPRsL8ryke9zYpinUBy5KMm5sUxLyAYUhXV4eyYhgX0AwxuLxZIfQLyHZEXN8CoV2AmPHgAlcEzTkhdYOoAqgXgF1wuMPtf55wizt8WCFtQcU9Hv9x0heJJnhqBWMHPa7ywk6fkYzLvKAzC1Ab0NRtooOcXYDeAIPrzAc4vwDLv4gLzRe3tIDAvgdXWh5seQGJe6TvFCVFrS6gcM/jVmcFjRbQmFdwrwtoQ09PDd53dbGogRam55jncLU7ZmV6iXcZl3tA1qdXWddwvSdiw0xODdab+0UbsTi5wLqIC84HsDa5h3MVV5wvXsNMTQ/Gk75jJIpXnlrkXMAtTwoXTa0xruCeF7hGnJgffCd90ajB1SdWGedw1QdaI0zLDb5nXPaJVpvWw7embhttsEaYlB98t7jufMAiNafOt4QLzw+rkaeUBtsbrnxSrIadkBl8N3eOMlhdzafyLeLWV6xGmU4abK+49x2rESbjBt/NxaOJFZmpaOJbxNXfUI2uJ6LaYHvF3ecL1WhqHnWwnfTlI1GoRp1GGXyPuP5JoRrPJPLg+wMBWLEaVc2gDL6TlgDUsRpNv07VwfgAGTixGt28TLfB+AdScGM1KLzK0WA8aTHAF6sx8ovSYH2AHBQFazTzElMH6wskYUZrjKzekAbvSYsCanAN8j/n+mC+hzAccI3R/E+5OrhfIA4XXmM0/zO+DvaTkgd0ABujJ/MDOrWxgR4CURSxMUaN+k90eMYWFojEDNoYo2ev/yvK5zY2kZRMoArbP1LN0TtrtNLGWB9zpbGRHlJxILe3BXJx/SdJCwa+f0kPySj6hyyQjfn/SFo4UPs7eojH+WcsEJD7r0haQvD7JwaIyKT/wwdCsv4NSUsJJCkUICeLDHogKFWTQKQlBTQJoABZ6eTPA2kZpQ9pcYEifAIEZhM9DySmJsFDWmTACZ4AoRnFToXYLEKHjNxQTeZECE5DEqdCdHqJY2QHkryJkJ6PtGkQn6oLGyM/YEjUJEhQL2kaZGjmWa8lx+Cd0VopBUAprY11Iaa5r6JihAgqr/qTo9P4c8l1zP3QSJCimrhEJTmFH09tHoWhQY46DvUcNF6b2jwQWEGCyBwqweD9qS11foIoLYyh4hWmmcdxfIMsVZ0pVBxmy3U+p1thAkMcqUFhztK2wxPEaWAHJY2Zc9vObhComRc9Kkyf2/a0lShojGgBi+S2vZwhUjVxgQJWyu16uEOoeiYkhdWmqe61UgWJA0VjxdyObzPkal0eeSw7TfVrV4JF0+KKwtLb8aqFZHVLI4/lp+XSDNmaFlYUOChT3dmVcMGzrAgucn/OdJCuqq+pW3CyXU9myFe7pEeDmWW7sSsBg7igBIam5UQHEfushhx4mpYHM2Ss6mvpBmxN231dCRnYpTQNzubtPAsxGxdSFJibt+cyBO2zjAwG5+22BkmraBERPC7XaVbUwK7Bg81NPZYgbNMKPBjNQ93VIG6f6ZEDr2V6y8gbTZMjC3an7aoEgevmRgYcz9dPDSI3zYwMmN7US0bmoM6LDNgu00cRQlfTrMiA8/k4qELs+kmRAfObusfIHeQpkQX7eTonQvK2CZHFDqbjmQrRa2g+DpvY1C2kZQ/CdBy2UZZXAqRvmYzHTtbnkgfiV/WpROwlT4eQlj8wM0nYznzd4SGB4zwKdnQ4o0AGP7N4sKfpeKIrIaRpDlVtClFXPzhIYTeFprCv6XghQw7nCZDG1nYfNEji9j6LzU3XA0YUGXpbwP4O+yNkcXhZwg6na3yFNC6vKtjkYTppcaT6iyq2OT/DPeSxfU/X+0S8zC6QyOktZLDVVW3uSiShvsRjs+WYbCGTNb0iYb+7wQlSObyhYMfzs7ZCLpffa2rLiKetpAWTol8jg12vaqmHZHa/5rDvcu3MkM35txK2flrZlHBC+6WCza9qo4F0Nj/U1O6RHAsj5HP4GTI4gMO+BxL6+RWPI1jUOFIiStNvZBxCObY5yGj/ExXncFqWIKXzD5A+CFTVrAdiWvW/8ziK6RpFWk7B/lnCYeRlk4OkTn9UcR67RQmyuv0J6QNB+ZnzQFgb+guHI8nbGNLSCvEPEk7lsMVCXu+fK85lVUMiBLbor/pgUHpmFIjs+iuOJm8jupJZtBxGNEwgA6HNz2NUaQMCxHZxGZnOvgzBPV0G9TCvQnRflwGZdaRlV3YaAucshPdwGiyxLUB8X6dBN6ZlyO/kNajCsgoJ3r0GJIZ1JcLouA2euEUGMlzUbbDELA8p3vwG3ViVIMe336AKowoEuajfgMSmClFePYfApK5kGS3PwRKHyECYs3oOujHIQZxX10E97IkQ6Mt1QGZOgkRn9R0SazJkenUePGMeSPXpPFjiSlNijdV50I0nXUOuF+9BVY6QgWSf3gMKP8hCtPNzHxI3yEK4F/8hMMNBvE//wREnPOQ7P//BdD4ESPjiQOjGhQAZPx0I9fAgQsizB4HMgYhvxbS+iK/FsLqI70VLSwv4YjR9YQHfjLotK+CrUT2L8vhwzCsii0/HuB4y+HgMq2kan4+WllIVPiBNX0hR+ITUdRkJX5GqLMLjQzKvgCw+JcP8qsbHpKPJZXxPmj4zCvii1G1ezeCbUpVZZXxXpimRx5elp/kUjW9L0ydDHp+Xuk6lKHxh5nmQx0empzlQUvjMNG0GReNTM7+uWnxt2v6q6vHBqdJ7HoePTl3eUQw+PHXsv9aTxtenLfQ7lB0+QVUo9AtUgsKHqE31b55k8T2qXMyV/jN6crT4MtXWh5BSzinG4K3C//3vv//++++///7777///vvvv//++++///7777///vvvv//++++///7777///vvvv//++++///7777///vvvv//++++///7777///vvvv///iwkA",gk=e=>{if(!e)return r7;const t="media/",r=e.indexOf(t)+t.length;return e.slice(0,r)+"crop/600/400/"+e.slice(r)},n7=({game:e})=>k.jsxs(f2,{children:[k.jsx(Bc,{src:gk(e.background_image)}),k.jsxs(d2,{children:[k.jsx(P2,{fontSize:"2xl",children:e.name}),k.jsxs(zo,{justifyContent:"space-between",children:[k.jsx(e7,{platforms:e.parent_platforms.map(t=>t.platform)}),k.jsx(t7,{score:e.metacritic})]})]})]}),o7=()=>k.jsxs(f2,{children:[k.jsx(qm,{height:"200px"}),k.jsx(d2,{children:k.jsx(H2,{})})]}),y1=({children:e})=>k.jsx(Im,{borderRadius:10,overflow:"hidden",children:e}),i7=({gameQuery:e})=>{const{games:t,error:r,isLoading:n}=VF(e);return k.jsxs(k.Fragment,{children:[r&&k.jsx(ba,{children:r}),k.jsxs(w2,{columns:{sm:1,md:2,lg:3,xl:5},spacing:3,padding:"10px",children:[n&&[0,1,2,3,4,5].map(o=>k.jsx(y1,{children:k.jsx(o7,{})},o)),t.map(o=>k.jsx(y1,{children:k.jsx(n7,{game:o})},o.id))]})]})},s7=()=>{const{data:e,isLoading:t,error:r}=t0("/genres");return{genres:e,error:r,isLoading:t}},a7=({onSelectGenre:e,selectedGenre:t})=>{const{genres:r,isLoading:n,error:o}=s7();return n?k.jsx(Fc,{}):k.jsxs(k.Fragment,{children:[o&&k.jsx(ba,{children:o}),k.jsx(Vc,{children:r.map(i=>k.jsx(x2,{paddingY:"5px",children:k.jsxs(zo,{children:[k.jsx(Bc,{src:gk(i.image_background),boxSize:"32px",borderRadius:"8px"}),k.jsx(Nc,{onClick:()=>e(i),fontSize:"lg",variant:"link",children:k.jsx(ba,{fontWeight:i.id===(t==null?void 0:t.id)?"bold":"normal",overflow:"hidden",children:i.name})})]})},i.id))})]})},l7=()=>t0("/platforms/lists/parents"),u7=({selectedPlatform:e,onSelectPlatform:t})=>{const{data:r,error:n}=l7();return n?null:k.jsxs(Um,{children:[k.jsx(Xm,{as:Nc,rightIcon:k.jsx(mk,{}),children:(e==null?void 0:e.name)||"Platforms"}),k.jsx(Km,{children:r.map(o=>k.jsx(Gm,{onClick:()=>t(o),children:o.name},o.id))})]})},c7=({sortOrder:e,onSelectSortOrder:t})=>{const r=[{value:"",label:"Relevance"},{value:"-added",label:"Date added"},{value:"name",label:"Name"},{value:"-released",label:"Release date"},{value:"-metacritic",label:"Popularity"},{value:"-rating",label:"Average rating"}],n=r.find(o=>o.value===e);return k.jsxs(Um,{children:[k.jsxs(Xm,{as:Nc,rightIcon:k.jsx(mk,{}),children:["Order By: ",n==null?void 0:n.label]}),k.jsx(Km,{children:r.map(o=>k.jsx(Gm,{onClick:()=>t(o.value),children:o.label},o.label))})]})};function d7(){const[e,t]=x.useState({});return k.jsxs(Dm,{templateAreas:{base:'"nav" "main"',lg:'"nav nav" "aside main"'},templateColumns:{base:"1fr",lg:"200px 1fr"},children:[k.jsx(tu,{area:"nav",children:k.jsx(Cj,{})}),k.jsx(A2,{above:"lg",children:k.jsx(tu,{area:"aside",paddingX:5,children:k.jsx(a7,{onSelectGenre:r=>t({...e,genre:r}),selectedGenre:e.genre})})}),k.jsxs(tu,{area:"main",children:[k.jsxs(zo,{spacing:5,paddingLeft:3,marginBottom:5,children:[k.jsx(u7,{selectedPlatform:e.platform,onSelectPlatform:r=>t({...e,platform:r})}),k.jsx(c7,{sortOrder:e.sortOrder,onSelectSortOrder:r=>t({...e,sortOrder:r})})]}),k.jsx(i7,{gameQuery:e})]})]})}const f7={initialColorMode:"dark",useSystemColorMode:!1},b1=Q$({config:f7});yf.createRoot(document.getElementById("root")).render(k.jsx(zt.StrictMode,{children:k.jsxs(pD,{theme:b1,children:[k.jsx(i4,{initialColorMode:b1.config.initialColorMode}),k.jsx(d7,{})]})})); diff --git a/index.html b/index.html index fb3e6cb..8388fb5 100644 --- a/index.html +++ b/index.html @@ -5,7 +5,7 @@ GameHub - +