From 2f1ee49e67153099e324369df4d0c33be2690819 Mon Sep 17 00:00:00 2001 From: Kin Fei Lee Date: Sat, 14 Sep 2024 19:14:25 +0800 Subject: [PATCH] Updates --- .../{index-C68Jhxc9.js => index-DBTAe03X.js} | 32 +++++++++---------- index.html | 2 +- 2 files changed, 17 insertions(+), 17 deletions(-) rename assets/{index-C68Jhxc9.js => index-DBTAe03X.js} (75%) diff --git a/assets/index-C68Jhxc9.js b/assets/index-DBTAe03X.js similarity index 75% rename from assets/index-C68Jhxc9.js rename to assets/index-DBTAe03X.js index 473bd7e..59025aa 100644 --- a/assets/index-C68Jhxc9.js +++ b/assets/index-DBTAe03X.js @@ -1,4 +1,4 @@ -function Fw(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 Vs=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function gf(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Sv={exports:{}},Dl={},xv={exports:{}},N={};/** +function Dw(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 Vs=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function gf(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Sv={exports:{}},Dl={},xv={exports:{}},N={};/** * @license React * react.production.min.js * @@ -6,7 +6,7 @@ function Fw(e,t){for(var n=0;n>>1,we=M[he];if(0>>1;heo(Yo,O))uto(fr,Yo)?(M[he]=fr,M[ut]=O,he=ut):(M[he]=Yo,M[Wt]=O,he=Wt);else if(uto(fr,O))M[he]=fr,M[ut]=O,he=ut;else break e}}return V}function o(M,V){var O=M.sortIndex-V.sortIndex;return O!==0?O:M.id-V.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,p=3,v=!1,b=!1,y=!1,S=typeof setTimeout=="function"?setTimeout:null,f=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 m(M){for(var V=n(u);V!==null;){if(V.callback===null)r(u);else if(V.startTime<=M)r(u),V.sortIndex=V.expirationTime,t(l,V);else break;V=n(u)}}function x(M){if(y=!1,m(M),!b)if(n(l)!==null)b=!0,Xe(C);else{var V=n(u);V!==null&&ln(x,V.startTime-M)}}function C(M,V){b=!1,y&&(y=!1,f(P),P=-1),v=!0;var O=p;try{for(m(V),d=n(l);d!==null&&(!(d.expirationTime>V)||M&&!ne());){var he=d.callback;if(typeof he=="function"){d.callback=null,p=d.priorityLevel;var we=he(d.expirationTime<=V);V=e.unstable_now(),typeof we=="function"?d.callback=we:d===n(l)&&r(l),m(V)}else r(l);d=n(l)}if(d!==null)var Z=!0;else{var Wt=n(u);Wt!==null&&ln(x,Wt.startTime-V),Z=!1}return Z}finally{d=null,p=O,v=!1}}var A=!1,$=null,P=-1,D=5,z=-1;function ne(){return!(e.unstable_now()-zM||125he?(M.sortIndex=O,t(u,M),n(l)===null&&M===n(u)&&(y?(f(P),P=-1):y=!0,ln(x,O-he))):(M.sortIndex=we,t(l,M),b||v||(b=!0,Xe(C))),M},e.unstable_shouldYield=ne,e.unstable_wrapCallback=function(M){var V=p;return function(){var O=p;p=V;try{return M.apply(this,arguments)}finally{p=O}}}})(Mv);zv.exports=Mv;var ok=zv.exports;/** + */(function(e){function t(M,V){var O=M.length;M.push(V);e:for(;0>>1,we=M[he];if(0>>1;heo(Yo,O))uto(fr,Yo)?(M[he]=fr,M[ut]=O,he=ut):(M[he]=Yo,M[Wt]=O,he=Wt);else if(uto(fr,O))M[he]=fr,M[ut]=O,he=ut;else break e}}return V}function o(M,V){var O=M.sortIndex-V.sortIndex;return O!==0?O:M.id-V.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,p=3,v=!1,b=!1,y=!1,S=typeof setTimeout=="function"?setTimeout:null,f=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 m(M){for(var V=n(u);V!==null;){if(V.callback===null)r(u);else if(V.startTime<=M)r(u),V.sortIndex=V.expirationTime,t(l,V);else break;V=n(u)}}function x(M){if(y=!1,m(M),!b)if(n(l)!==null)b=!0,Xe(C);else{var V=n(u);V!==null&&ln(x,V.startTime-M)}}function C(M,V){b=!1,y&&(y=!1,f(P),P=-1),v=!0;var O=p;try{for(m(V),d=n(l);d!==null&&(!(d.expirationTime>V)||M&&!ne());){var he=d.callback;if(typeof he=="function"){d.callback=null,p=d.priorityLevel;var we=he(d.expirationTime<=V);V=e.unstable_now(),typeof we=="function"?d.callback=we:d===n(l)&&r(l),m(V)}else r(l);d=n(l)}if(d!==null)var Z=!0;else{var Wt=n(u);Wt!==null&&ln(x,Wt.startTime-V),Z=!1}return Z}finally{d=null,p=O,v=!1}}var A=!1,$=null,P=-1,D=5,z=-1;function ne(){return!(e.unstable_now()-zM||125he?(M.sortIndex=O,t(u,M),n(l)===null&&M===n(u)&&(y?(f(P),P=-1):y=!0,ln(x,O-he))):(M.sortIndex=we,t(l,M),b||v||(b=!0,Xe(C))),M},e.unstable_shouldYield=ne,e.unstable_wrapCallback=function(M){var V=p;return function(){var O=p;p=V;try{return M.apply(this,arguments)}finally{p=O}}}})(Mv);zv.exports=Mv;var nk=zv.exports;/** * @license React * react-dom.production.min.js * @@ -30,21 +30,21 @@ function Fw(e,t){for(var n=0;n"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Hc=Object.prototype.hasOwnProperty,sk=/^[: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]*$/,Op={},Np={};function ak(e){return Hc.call(Np,e)?!0:Hc.call(Op,e)?!1:sk.test(e)?Np[e]=!0:(Op[e]=!0,!1)}function lk(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 uk(e,t,n,r){if(t===null||typeof t>"u"||lk(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 tt(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 Le={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Le[e]=new tt(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Le[t]=new tt(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Le[e]=new tt(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Le[e]=new tt(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){Le[e]=new tt(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Le[e]=new tt(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Le[e]=new tt(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Le[e]=new tt(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Le[e]=new tt(e,5,!1,e.toLowerCase(),null,!1,!1)});var xf=/[\-:]([a-z])/g;function wf(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(xf,wf);Le[t]=new tt(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(xf,wf);Le[t]=new tt(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(xf,wf);Le[t]=new tt(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Le[e]=new tt(e,1,!1,e.toLowerCase(),null,!1,!1)});Le.xlinkHref=new tt("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Le[e]=new tt(e,1,!1,e.toLowerCase(),null,!0,!0)});function kf(e,t,n,r){var o=Le.hasOwnProperty(t)?Le[t]:null;(o!==null?o.type!==0:r||!(2"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Hc=Object.prototype.hasOwnProperty,ok=/^[: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]*$/,Op={},Np={};function ik(e){return Hc.call(Np,e)?!0:Hc.call(Op,e)?!1:ok.test(e)?Np[e]=!0:(Op[e]=!0,!1)}function sk(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 ak(e,t,n,r){if(t===null||typeof t>"u"||sk(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 tt(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 Le={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Le[e]=new tt(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Le[t]=new tt(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Le[e]=new tt(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Le[e]=new tt(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){Le[e]=new tt(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Le[e]=new tt(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Le[e]=new tt(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Le[e]=new tt(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Le[e]=new tt(e,5,!1,e.toLowerCase(),null,!1,!1)});var xf=/[\-:]([a-z])/g;function wf(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(xf,wf);Le[t]=new tt(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(xf,wf);Le[t]=new tt(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(xf,wf);Le[t]=new tt(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Le[e]=new tt(e,1,!1,e.toLowerCase(),null,!1,!1)});Le.xlinkHref=new tt("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Le[e]=new tt(e,1,!1,e.toLowerCase(),null,!0,!0)});function kf(e,t,n,r){var o=Le.hasOwnProperty(t)?Le[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{Bu=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?hi(e):""}function ck(e){switch(e.tag){case 5:return hi(e.type);case 16:return hi("Lazy");case 13:return hi("Suspense");case 19:return hi("SuspenseList");case 0:case 2:case 15:return e=Vu(e.type,!1),e;case 11:return e=Vu(e.type.render,!1),e;case 1:return e=Vu(e.type,!0),e;default:return""}}function Xc(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 Xr:return"Fragment";case Yr:return"Portal";case Kc:return"Profiler";case Cf:return"StrictMode";case Gc:return"Suspense";case Yc:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Fv:return(e.displayName||"Context")+".Consumer";case Iv:return(e._context.displayName||"Context")+".Provider";case _f:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Tf:return t=e.displayName||null,t!==null?t:Xc(e.type)||"Memo";case Vn:t=e._payload,e=e._init;try{return Xc(e(t))}catch{}}return null}function dk(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 Xc(t);case 8:return t===Cf?"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 tr(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Lv(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function fk(e){var t=Lv(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 Ws(e){e._valueTracker||(e._valueTracker=fk(e))}function Bv(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=Lv(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function Xa(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 qc(e,t){var n=t.checked;return ve({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Up(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=tr(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 Vv(e,t){t=t.checked,t!=null&&kf(e,"checked",t,!1)}function Qc(e,t){Vv(e,t);var n=tr(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")?Zc(e,t.type,n):t.hasOwnProperty("defaultValue")&&Zc(e,t.type,tr(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Hp(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 Zc(e,t,n){(t!=="number"||Xa(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var pi=Array.isArray;function yo(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o"+t.valueOf().toString()+"",t=Us.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Hi(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Ci={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},hk=["Webkit","ms","Moz","O"];Object.keys(Ci).forEach(function(e){hk.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Ci[t]=Ci[e]})});function Uv(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Ci.hasOwnProperty(e)&&Ci[e]?(""+t).trim():t+"px"}function Hv(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,o=Uv(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}var pk=ve({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 td(e,t){if(t){if(pk[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(R(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(R(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(R(61))}if(t.style!=null&&typeof t.style!="object")throw Error(R(62))}}function nd(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 rd=null;function Pf(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var od=null,bo=null,So=null;function Yp(e){if(e=ks(e)){if(typeof od!="function")throw Error(R(280));var t=e.stateNode;t&&(t=Bl(t),od(e.stateNode,e.type,t))}}function Kv(e){bo?So?So.push(e):So=[e]:bo=e}function Gv(){if(bo){var e=bo,t=So;if(So=bo=null,Yp(e),t)for(e=0;e>>=0,e===0?32:31-(_k(e)/Tk|0)|0}var Hs=64,Ks=4194304;function mi(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 Ja(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=mi(a):(i&=s,i!==0&&(r=mi(i)))}else s=n&~o,s!==0?r=mi(s):i!==0&&(r=mi(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 xs(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Bt(t),e[t]=n}function Ak(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=Ti),rm=" ",om=!1;function hy(e,t){switch(e){case"keyup":return oC.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function py(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var qr=!1;function sC(e,t){switch(e){case"compositionend":return py(t);case"keypress":return t.which!==32?null:(om=!0,rm);case"textInput":return e=t.data,e===rm&&om?null:e;default:return null}}function aC(e,t){if(qr)return e==="compositionend"||!If&&hy(e,t)?(e=dy(),wa=zf=Hn=null,qr=!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=lm(n)}}function yy(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?yy(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function by(){for(var e=window,t=Xa();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Xa(e.document)}return t}function Ff(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 gC(e){var t=by(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&yy(n.ownerDocument.documentElement,n)){if(r!==null&&Ff(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=um(n,i);var s=um(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,Qr=null,cd=null,Ei=null,dd=!1;function cm(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;dd||Qr==null||Qr!==Xa(r)||(r=Qr,"selectionStart"in r&&Ff(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}),Ei&&Qi(Ei,r)||(Ei=r,r=nl(cd,"onSelect"),0eo||(e.current=vd[eo],vd[eo]=null,eo--)}function oe(e,t){eo++,vd[eo]=e.current,e.current=t}var nr={},Ke=sr(nr),it=sr(!1),Ir=nr;function Ao(e,t){var n=e.type.contextTypes;if(!n)return nr;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 st(e){return e=e.childContextTypes,e!=null}function ol(){le(it),le(Ke)}function vm(e,t,n){if(Ke.current!==nr)throw Error(R(168));oe(Ke,t),oe(it,n)}function Ey(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(R(108,dk(e)||"Unknown",o));return ve({},n,r)}function il(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||nr,Ir=Ke.current,oe(Ke,e),oe(it,it.current),!0}function ym(e,t,n){var r=e.stateNode;if(!r)throw Error(R(169));n?(e=Ey(e,t,Ir),r.__reactInternalMemoizedMergedChildContext=e,le(it),le(Ke),oe(Ke,e)):le(it),oe(it,n)}var fn=null,Vl=!1,ec=!1;function $y(e){fn===null?fn=[e]:fn.push(e)}function EC(e){Vl=!0,$y(e)}function ar(){if(!ec&&fn!==null){ec=!0;var e=0,t=ee;try{var n=fn;for(ee=1;e>=s,o-=s,mn=1<<32-Bt(t)+o|n<P?(D=$,$=null):D=$.sibling;var z=p(f,$,m[P],x);if(z===null){$===null&&($=D);break}e&&$&&z.alternate===null&&t(f,$),h=i(z,h,P),A===null?C=z:A.sibling=z,A=z,$=D}if(P===m.length)return n(f,$),fe&&yr(f,P),C;if($===null){for(;PP?(D=$,$=null):D=$.sibling;var ne=p(f,$,z.value,x);if(ne===null){$===null&&($=D);break}e&&$&&ne.alternate===null&&t(f,$),h=i(ne,h,P),A===null?C=ne:A.sibling=ne,A=ne,$=D}if(z.done)return n(f,$),fe&&yr(f,P),C;if($===null){for(;!z.done;P++,z=m.next())z=d(f,z.value,x),z!==null&&(h=i(z,h,P),A===null?C=z:A.sibling=z,A=z);return fe&&yr(f,P),C}for($=r(f,$);!z.done;P++,z=m.next())z=v($,f,P,z.value,x),z!==null&&(e&&z.alternate!==null&&$.delete(z.key===null?P:z.key),h=i(z,h,P),A===null?C=z:A.sibling=z,A=z);return e&&$.forEach(function(Ye){return t(f,Ye)}),fe&&yr(f,P),C}function S(f,h,m,x){if(typeof m=="object"&&m!==null&&m.type===Xr&&m.key===null&&(m=m.props.children),typeof m=="object"&&m!==null){switch(m.$$typeof){case Ns:e:{for(var C=m.key,A=h;A!==null;){if(A.key===C){if(C=m.type,C===Xr){if(A.tag===7){n(f,A.sibling),h=o(A,m.props.children),h.return=f,f=h;break e}}else if(A.elementType===C||typeof C=="object"&&C!==null&&C.$$typeof===Vn&&xm(C)===A.type){n(f,A.sibling),h=o(A,m.props),h.ref=oi(f,A,m),h.return=f,f=h;break e}n(f,A);break}else t(f,A);A=A.sibling}m.type===Xr?(h=Ar(m.props.children,f.mode,x,m.key),h.return=f,f=h):(x=Aa(m.type,m.key,m.props,null,f.mode,x),x.ref=oi(f,h,m),x.return=f,f=x)}return s(f);case Yr:e:{for(A=m.key;h!==null;){if(h.key===A)if(h.tag===4&&h.stateNode.containerInfo===m.containerInfo&&h.stateNode.implementation===m.implementation){n(f,h.sibling),h=o(h,m.children||[]),h.return=f,f=h;break e}else{n(f,h);break}else t(f,h);h=h.sibling}h=lc(m,f.mode,x),h.return=f,f=h}return s(f);case Vn:return A=m._init,S(f,h,A(m._payload),x)}if(pi(m))return b(f,h,m,x);if(Jo(m))return y(f,h,m,x);Js(f,m)}return typeof m=="string"&&m!==""||typeof m=="number"?(m=""+m,h!==null&&h.tag===6?(n(f,h.sibling),h=o(h,m),h.return=f,f=h):(n(f,h),h=ac(m,f.mode,x),h.return=f,f=h),s(f)):n(f,h)}return S}var zo=My(!0),Dy=My(!1),ll=sr(null),ul=null,ro=null,Vf=null;function Of(){Vf=ro=ul=null}function Nf(e){var t=ll.current;le(ll),e._currentValue=t}function Sd(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function wo(e,t){ul=e,Vf=ro=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(ot=!0),e.firstContext=null)}function $t(e){var t=e._currentValue;if(Vf!==e)if(e={context:e,memoizedValue:t,next:null},ro===null){if(ul===null)throw Error(R(308));ro=e,ul.dependencies={lanes:0,firstContext:e}}else ro=ro.next=e;return t}var _r=null;function Wf(e){_r===null?_r=[e]:_r.push(e)}function Iy(e,t,n,r){var o=t.interleaved;return o===null?(n.next=n,Wf(t)):(n.next=o.next,o.next=n),t.interleaved=n,En(e,r)}function En(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var On=!1;function Uf(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Fy(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function bn(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Qn(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,H&2){var o=r.pending;return o===null?t.next=t:(t.next=o.next,o.next=t),r.pending=t,En(e,n)}return o=r.interleaved,o===null?(t.next=t,Wf(r)):(t.next=o.next,o.next=t),r.interleaved=t,En(e,n)}function Ca(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,$f(e,n)}}function wm(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var o=null,i=null;if(n=n.firstBaseUpdate,n!==null){do{var s={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};i===null?o=i=s:i=i.next=s,n=n.next}while(n!==null);i===null?o=i=t:i=i.next=t}else o=i=t;n={baseState:r.baseState,firstBaseUpdate:o,lastBaseUpdate:i,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function cl(e,t,n,r){var o=e.updateQueue;On=!1;var i=o.firstBaseUpdate,s=o.lastBaseUpdate,a=o.shared.pending;if(a!==null){o.shared.pending=null;var l=a,u=l.next;l.next=null,s===null?i=u:s.next=u,s=l;var c=e.alternate;c!==null&&(c=c.updateQueue,a=c.lastBaseUpdate,a!==s&&(a===null?c.firstBaseUpdate=u:a.next=u,c.lastBaseUpdate=l))}if(i!==null){var d=o.baseState;s=0,c=u=l=null,a=i;do{var p=a.lane,v=a.eventTime;if((r&p)===p){c!==null&&(c=c.next={eventTime:v,lane:0,tag:a.tag,payload:a.payload,callback:a.callback,next:null});e:{var b=e,y=a;switch(p=t,v=n,y.tag){case 1:if(b=y.payload,typeof b=="function"){d=b.call(v,d,p);break e}d=b;break e;case 3:b.flags=b.flags&-65537|128;case 0:if(b=y.payload,p=typeof b=="function"?b.call(v,d,p):b,p==null)break e;d=ve({},d,p);break e;case 2:On=!0}}a.callback!==null&&a.lane!==0&&(e.flags|=64,p=o.effects,p===null?o.effects=[a]:p.push(a))}else v={eventTime:v,lane:p,tag:a.tag,payload:a.payload,callback:a.callback,next:null},c===null?(u=c=v,l=d):c=c.next=v,s|=p;if(a=a.next,a===null){if(a=o.shared.pending,a===null)break;p=a,a=p.next,p.next=null,o.lastBaseUpdate=p,o.shared.pending=null}}while(!0);if(c===null&&(l=d),o.baseState=l,o.firstBaseUpdate=u,o.lastBaseUpdate=c,t=o.shared.interleaved,t!==null){o=t;do s|=o.lane,o=o.next;while(o!==t)}else i===null&&(o.shared.lanes=0);Lr|=s,e.lanes=s,e.memoizedState=d}}function km(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;tn?n:4,e(!0);var r=nc.transition;nc.transition={};try{e(!1),t()}finally{ee=n,nc.transition=r}}function Jy(){return At().memoizedState}function zC(e,t,n){var r=Jn(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},e1(e))t1(t,n);else if(n=Iy(e,t,n,r),n!==null){var o=Ze();Vt(n,e,r,o),n1(n,t,r)}}function MC(e,t,n){var r=Jn(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(e1(e))t1(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,Nt(a,s)){var l=t.interleaved;l===null?(o.next=o,Wf(t)):(o.next=l.next,l.next=o),t.interleaved=o;return}}catch{}finally{}n=Iy(e,t,o,r),n!==null&&(o=Ze(),Vt(n,e,r,o),n1(n,t,r))}}function e1(e){var t=e.alternate;return e===ge||t!==null&&t===ge}function t1(e,t){$i=fl=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function n1(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,$f(e,n)}}var hl={readContext:$t,useCallback:Be,useContext:Be,useEffect:Be,useImperativeHandle:Be,useInsertionEffect:Be,useLayoutEffect:Be,useMemo:Be,useReducer:Be,useRef:Be,useState:Be,useDebugValue:Be,useDeferredValue:Be,useTransition:Be,useMutableSource:Be,useSyncExternalStore:Be,useId:Be,unstable_isNewReconciler:!1},DC={readContext:$t,useCallback:function(e,t){return Kt().memoizedState=[e,t===void 0?null:t],e},useContext:$t,useEffect:_m,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Ta(4194308,4,Yy.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Ta(4194308,4,e,t)},useInsertionEffect:function(e,t){return Ta(4,2,e,t)},useMemo:function(e,t){var n=Kt();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Kt();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=zC.bind(null,ge,e),[r.memoizedState,e]},useRef:function(e){var t=Kt();return e={current:e},t.memoizedState=e},useState:Cm,useDebugValue:Zf,useDeferredValue:function(e){return Kt().memoizedState=e},useTransition:function(){var e=Cm(!1),t=e[0];return e=RC.bind(null,e[1]),Kt().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=ge,o=Kt();if(fe){if(n===void 0)throw Error(R(407));n=n()}else{if(n=t(),Ae===null)throw Error(R(349));jr&30||Vy(r,t,n)}o.memoizedState=n;var i={value:n,getSnapshot:t};return o.queue=i,_m(Ny.bind(null,r,i,e),[e]),r.flags|=2048,is(9,Oy.bind(null,r,i,n,t),void 0,null),n},useId:function(){var e=Kt(),t=Ae.identifierPrefix;if(fe){var n=gn,r=mn;n=(r&~(1<<32-Bt(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=rs++,0")&&(l=l.replace("",e.displayName)),l}while(1<=s&&0<=a);break}}}finally{Bu=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?hi(e):""}function lk(e){switch(e.tag){case 5:return hi(e.type);case 16:return hi("Lazy");case 13:return hi("Suspense");case 19:return hi("SuspenseList");case 0:case 2:case 15:return e=Vu(e.type,!1),e;case 11:return e=Vu(e.type.render,!1),e;case 1:return e=Vu(e.type,!0),e;default:return""}}function Xc(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 Xr:return"Fragment";case Yr:return"Portal";case Kc:return"Profiler";case Cf:return"StrictMode";case Gc:return"Suspense";case Yc:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Fv:return(e.displayName||"Context")+".Consumer";case Iv:return(e._context.displayName||"Context")+".Provider";case _f:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Tf:return t=e.displayName||null,t!==null?t:Xc(e.type)||"Memo";case Vn:t=e._payload,e=e._init;try{return Xc(e(t))}catch{}}return null}function uk(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 Xc(t);case 8:return t===Cf?"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 tr(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Lv(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function ck(e){var t=Lv(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 Ws(e){e._valueTracker||(e._valueTracker=ck(e))}function Bv(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=Lv(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function Xa(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 qc(e,t){var n=t.checked;return ve({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Up(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=tr(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 Vv(e,t){t=t.checked,t!=null&&kf(e,"checked",t,!1)}function Qc(e,t){Vv(e,t);var n=tr(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")?Zc(e,t.type,n):t.hasOwnProperty("defaultValue")&&Zc(e,t.type,tr(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Hp(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 Zc(e,t,n){(t!=="number"||Xa(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var pi=Array.isArray;function yo(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o"+t.valueOf().toString()+"",t=Us.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Hi(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Ci={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},dk=["Webkit","ms","Moz","O"];Object.keys(Ci).forEach(function(e){dk.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Ci[t]=Ci[e]})});function Uv(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Ci.hasOwnProperty(e)&&Ci[e]?(""+t).trim():t+"px"}function Hv(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,o=Uv(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}var fk=ve({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 td(e,t){if(t){if(fk[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(R(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(R(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(R(61))}if(t.style!=null&&typeof t.style!="object")throw Error(R(62))}}function nd(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 rd=null;function Pf(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var od=null,bo=null,So=null;function Yp(e){if(e=ks(e)){if(typeof od!="function")throw Error(R(280));var t=e.stateNode;t&&(t=Bl(t),od(e.stateNode,e.type,t))}}function Kv(e){bo?So?So.push(e):So=[e]:bo=e}function Gv(){if(bo){var e=bo,t=So;if(So=bo=null,Yp(e),t)for(e=0;e>>=0,e===0?32:31-(kk(e)/Ck|0)|0}var Hs=64,Ks=4194304;function mi(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 Ja(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=mi(a):(i&=s,i!==0&&(r=mi(i)))}else s=n&~o,s!==0?r=mi(s):i!==0&&(r=mi(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 xs(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Bt(t),e[t]=n}function Ek(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=Ti),rm=" ",om=!1;function hy(e,t){switch(e){case"keyup":return nC.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function py(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var qr=!1;function oC(e,t){switch(e){case"compositionend":return py(t);case"keypress":return t.which!==32?null:(om=!0,rm);case"textInput":return e=t.data,e===rm&&om?null:e;default:return null}}function iC(e,t){if(qr)return e==="compositionend"||!If&&hy(e,t)?(e=dy(),wa=zf=Hn=null,qr=!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=lm(n)}}function yy(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?yy(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function by(){for(var e=window,t=Xa();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Xa(e.document)}return t}function Ff(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 pC(e){var t=by(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&yy(n.ownerDocument.documentElement,n)){if(r!==null&&Ff(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=um(n,i);var s=um(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,Qr=null,cd=null,Ei=null,dd=!1;function cm(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;dd||Qr==null||Qr!==Xa(r)||(r=Qr,"selectionStart"in r&&Ff(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}),Ei&&Qi(Ei,r)||(Ei=r,r=nl(cd,"onSelect"),0eo||(e.current=vd[eo],vd[eo]=null,eo--)}function oe(e,t){eo++,vd[eo]=e.current,e.current=t}var nr={},Ke=sr(nr),it=sr(!1),Ir=nr;function Ao(e,t){var n=e.type.contextTypes;if(!n)return nr;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 st(e){return e=e.childContextTypes,e!=null}function ol(){le(it),le(Ke)}function vm(e,t,n){if(Ke.current!==nr)throw Error(R(168));oe(Ke,t),oe(it,n)}function Ey(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(R(108,uk(e)||"Unknown",o));return ve({},n,r)}function il(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||nr,Ir=Ke.current,oe(Ke,e),oe(it,it.current),!0}function ym(e,t,n){var r=e.stateNode;if(!r)throw Error(R(169));n?(e=Ey(e,t,Ir),r.__reactInternalMemoizedMergedChildContext=e,le(it),le(Ke),oe(Ke,e)):le(it),oe(it,n)}var fn=null,Vl=!1,ec=!1;function $y(e){fn===null?fn=[e]:fn.push(e)}function TC(e){Vl=!0,$y(e)}function ar(){if(!ec&&fn!==null){ec=!0;var e=0,t=ee;try{var n=fn;for(ee=1;e>=s,o-=s,mn=1<<32-Bt(t)+o|n<P?(D=$,$=null):D=$.sibling;var z=p(f,$,m[P],x);if(z===null){$===null&&($=D);break}e&&$&&z.alternate===null&&t(f,$),h=i(z,h,P),A===null?C=z:A.sibling=z,A=z,$=D}if(P===m.length)return n(f,$),fe&&yr(f,P),C;if($===null){for(;PP?(D=$,$=null):D=$.sibling;var ne=p(f,$,z.value,x);if(ne===null){$===null&&($=D);break}e&&$&&ne.alternate===null&&t(f,$),h=i(ne,h,P),A===null?C=ne:A.sibling=ne,A=ne,$=D}if(z.done)return n(f,$),fe&&yr(f,P),C;if($===null){for(;!z.done;P++,z=m.next())z=d(f,z.value,x),z!==null&&(h=i(z,h,P),A===null?C=z:A.sibling=z,A=z);return fe&&yr(f,P),C}for($=r(f,$);!z.done;P++,z=m.next())z=v($,f,P,z.value,x),z!==null&&(e&&z.alternate!==null&&$.delete(z.key===null?P:z.key),h=i(z,h,P),A===null?C=z:A.sibling=z,A=z);return e&&$.forEach(function(Ye){return t(f,Ye)}),fe&&yr(f,P),C}function S(f,h,m,x){if(typeof m=="object"&&m!==null&&m.type===Xr&&m.key===null&&(m=m.props.children),typeof m=="object"&&m!==null){switch(m.$$typeof){case Ns:e:{for(var C=m.key,A=h;A!==null;){if(A.key===C){if(C=m.type,C===Xr){if(A.tag===7){n(f,A.sibling),h=o(A,m.props.children),h.return=f,f=h;break e}}else if(A.elementType===C||typeof C=="object"&&C!==null&&C.$$typeof===Vn&&xm(C)===A.type){n(f,A.sibling),h=o(A,m.props),h.ref=oi(f,A,m),h.return=f,f=h;break e}n(f,A);break}else t(f,A);A=A.sibling}m.type===Xr?(h=Ar(m.props.children,f.mode,x,m.key),h.return=f,f=h):(x=Aa(m.type,m.key,m.props,null,f.mode,x),x.ref=oi(f,h,m),x.return=f,f=x)}return s(f);case Yr:e:{for(A=m.key;h!==null;){if(h.key===A)if(h.tag===4&&h.stateNode.containerInfo===m.containerInfo&&h.stateNode.implementation===m.implementation){n(f,h.sibling),h=o(h,m.children||[]),h.return=f,f=h;break e}else{n(f,h);break}else t(f,h);h=h.sibling}h=lc(m,f.mode,x),h.return=f,f=h}return s(f);case Vn:return A=m._init,S(f,h,A(m._payload),x)}if(pi(m))return b(f,h,m,x);if(Jo(m))return y(f,h,m,x);Js(f,m)}return typeof m=="string"&&m!==""||typeof m=="number"?(m=""+m,h!==null&&h.tag===6?(n(f,h.sibling),h=o(h,m),h.return=f,f=h):(n(f,h),h=ac(m,f.mode,x),h.return=f,f=h),s(f)):n(f,h)}return S}var zo=My(!0),Dy=My(!1),ll=sr(null),ul=null,ro=null,Vf=null;function Of(){Vf=ro=ul=null}function Nf(e){var t=ll.current;le(ll),e._currentValue=t}function Sd(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function wo(e,t){ul=e,Vf=ro=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(ot=!0),e.firstContext=null)}function $t(e){var t=e._currentValue;if(Vf!==e)if(e={context:e,memoizedValue:t,next:null},ro===null){if(ul===null)throw Error(R(308));ro=e,ul.dependencies={lanes:0,firstContext:e}}else ro=ro.next=e;return t}var _r=null;function Wf(e){_r===null?_r=[e]:_r.push(e)}function Iy(e,t,n,r){var o=t.interleaved;return o===null?(n.next=n,Wf(t)):(n.next=o.next,o.next=n),t.interleaved=n,En(e,r)}function En(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var On=!1;function Uf(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Fy(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function bn(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Qn(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,H&2){var o=r.pending;return o===null?t.next=t:(t.next=o.next,o.next=t),r.pending=t,En(e,n)}return o=r.interleaved,o===null?(t.next=t,Wf(r)):(t.next=o.next,o.next=t),r.interleaved=t,En(e,n)}function Ca(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,$f(e,n)}}function wm(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var o=null,i=null;if(n=n.firstBaseUpdate,n!==null){do{var s={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};i===null?o=i=s:i=i.next=s,n=n.next}while(n!==null);i===null?o=i=t:i=i.next=t}else o=i=t;n={baseState:r.baseState,firstBaseUpdate:o,lastBaseUpdate:i,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function cl(e,t,n,r){var o=e.updateQueue;On=!1;var i=o.firstBaseUpdate,s=o.lastBaseUpdate,a=o.shared.pending;if(a!==null){o.shared.pending=null;var l=a,u=l.next;l.next=null,s===null?i=u:s.next=u,s=l;var c=e.alternate;c!==null&&(c=c.updateQueue,a=c.lastBaseUpdate,a!==s&&(a===null?c.firstBaseUpdate=u:a.next=u,c.lastBaseUpdate=l))}if(i!==null){var d=o.baseState;s=0,c=u=l=null,a=i;do{var p=a.lane,v=a.eventTime;if((r&p)===p){c!==null&&(c=c.next={eventTime:v,lane:0,tag:a.tag,payload:a.payload,callback:a.callback,next:null});e:{var b=e,y=a;switch(p=t,v=n,y.tag){case 1:if(b=y.payload,typeof b=="function"){d=b.call(v,d,p);break e}d=b;break e;case 3:b.flags=b.flags&-65537|128;case 0:if(b=y.payload,p=typeof b=="function"?b.call(v,d,p):b,p==null)break e;d=ve({},d,p);break e;case 2:On=!0}}a.callback!==null&&a.lane!==0&&(e.flags|=64,p=o.effects,p===null?o.effects=[a]:p.push(a))}else v={eventTime:v,lane:p,tag:a.tag,payload:a.payload,callback:a.callback,next:null},c===null?(u=c=v,l=d):c=c.next=v,s|=p;if(a=a.next,a===null){if(a=o.shared.pending,a===null)break;p=a,a=p.next,p.next=null,o.lastBaseUpdate=p,o.shared.pending=null}}while(!0);if(c===null&&(l=d),o.baseState=l,o.firstBaseUpdate=u,o.lastBaseUpdate=c,t=o.shared.interleaved,t!==null){o=t;do s|=o.lane,o=o.next;while(o!==t)}else i===null&&(o.shared.lanes=0);Lr|=s,e.lanes=s,e.memoizedState=d}}function km(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;tn?n:4,e(!0);var r=nc.transition;nc.transition={};try{e(!1),t()}finally{ee=n,nc.transition=r}}function Jy(){return At().memoizedState}function AC(e,t,n){var r=Jn(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},e1(e))t1(t,n);else if(n=Iy(e,t,n,r),n!==null){var o=Ze();Vt(n,e,r,o),n1(n,t,r)}}function RC(e,t,n){var r=Jn(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(e1(e))t1(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,Nt(a,s)){var l=t.interleaved;l===null?(o.next=o,Wf(t)):(o.next=l.next,l.next=o),t.interleaved=o;return}}catch{}finally{}n=Iy(e,t,o,r),n!==null&&(o=Ze(),Vt(n,e,r,o),n1(n,t,r))}}function e1(e){var t=e.alternate;return e===ge||t!==null&&t===ge}function t1(e,t){$i=fl=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function n1(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,$f(e,n)}}var hl={readContext:$t,useCallback:Be,useContext:Be,useEffect:Be,useImperativeHandle:Be,useInsertionEffect:Be,useLayoutEffect:Be,useMemo:Be,useReducer:Be,useRef:Be,useState:Be,useDebugValue:Be,useDeferredValue:Be,useTransition:Be,useMutableSource:Be,useSyncExternalStore:Be,useId:Be,unstable_isNewReconciler:!1},zC={readContext:$t,useCallback:function(e,t){return Kt().memoizedState=[e,t===void 0?null:t],e},useContext:$t,useEffect:_m,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Ta(4194308,4,Yy.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Ta(4194308,4,e,t)},useInsertionEffect:function(e,t){return Ta(4,2,e,t)},useMemo:function(e,t){var n=Kt();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Kt();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=AC.bind(null,ge,e),[r.memoizedState,e]},useRef:function(e){var t=Kt();return e={current:e},t.memoizedState=e},useState:Cm,useDebugValue:Zf,useDeferredValue:function(e){return Kt().memoizedState=e},useTransition:function(){var e=Cm(!1),t=e[0];return e=$C.bind(null,e[1]),Kt().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=ge,o=Kt();if(fe){if(n===void 0)throw Error(R(407));n=n()}else{if(n=t(),Ae===null)throw Error(R(349));jr&30||Vy(r,t,n)}o.memoizedState=n;var i={value:n,getSnapshot:t};return o.queue=i,_m(Ny.bind(null,r,i,e),[e]),r.flags|=2048,is(9,Oy.bind(null,r,i,n,t),void 0,null),n},useId:function(){var e=Kt(),t=Ae.identifierPrefix;if(fe){var n=gn,r=mn;n=(r&~(1<<32-Bt(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=rs++,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[Qt]=t,e[es]=r,f1(e,t,!1,!1),t.stateNode=e;e:{switch(s=nd(n,r),n){case"dialog":se("cancel",e),se("close",e),o=r;break;case"iframe":case"object":case"embed":se("load",e),o=r;break;case"video":case"audio":for(o=0;oIo&&(t.flags|=128,r=!0,ii(i,!1),t.lanes=4194304)}else{if(!r)if(e=dl(s),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),ii(i,!0),i.tail===null&&i.tailMode==="hidden"&&!s.alternate&&!fe)return Ve(t),null}else 2*Se()-i.renderingStartTime>Io&&n!==1073741824&&(t.flags|=128,r=!0,ii(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=Se(),t.sibling=null,n=pe.current,oe(pe,r?n&1|2:n&1),t):(Ve(t),null);case 22:case 23:return oh(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?dt&1073741824&&(Ve(t),t.subtreeFlags&6&&(t.flags|=8192)):Ve(t),null;case 24:return null;case 25:return null}throw Error(R(156,t.tag))}function NC(e,t){switch(Lf(t),t.tag){case 1:return st(t.type)&&ol(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Mo(),le(it),le(Ke),Gf(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return Kf(t),null;case 13:if(le(pe),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(R(340));Ro()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return le(pe),null;case 4:return Mo(),null;case 10:return Nf(t.type._context),null;case 22:case 23:return oh(),null;case 24:return null;default:return null}}var ta=!1,We=!1,WC=typeof WeakSet=="function"?WeakSet:Set,I=null;function oo(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){ye(e,t,r)}else n.current=null}function $d(e,t,n){try{n()}catch(r){ye(e,t,r)}}var Fm=!1;function UC(e,t){if(fd=el,e=by(),Ff(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,p=null;t:for(;;){for(var v;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),(v=d.firstChild)!==null;)p=d,d=v;for(;;){if(d===e)break t;if(p===n&&++u===o&&(a=s),p===i&&++c===r&&(l=s),(v=d.nextSibling)!==null)break;d=p,p=d.parentNode}d=v}n=a===-1||l===-1?null:{start:a,end:l}}else n=null}n=n||{start:0,end:0}}else n=null;for(hd={focusedElem:e,selectionRange:n},el=!1,I=t;I!==null;)if(t=I,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,I=e;else for(;I!==null;){t=I;try{var b=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(b!==null){var y=b.memoizedProps,S=b.memoizedState,f=t.stateNode,h=f.getSnapshotBeforeUpdate(t.elementType===t.type?y:Dt(t.type,y),S);f.__reactInternalSnapshotBeforeUpdate=h}break;case 3:var m=t.stateNode.containerInfo;m.nodeType===1?m.textContent="":m.nodeType===9&&m.documentElement&&m.removeChild(m.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(R(163))}}catch(x){ye(t,t.return,x)}if(e=t.sibling,e!==null){e.return=t.return,I=e;break}I=t.return}return b=Fm,Fm=!1,b}function Ai(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&&$d(t,n,i)}o=o.next}while(o!==r)}}function Wl(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 Ad(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 m1(e){var t=e.alternate;t!==null&&(e.alternate=null,m1(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Qt],delete t[es],delete t[gd],delete t[TC],delete t[PC])),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 g1(e){return e.tag===5||e.tag===3||e.tag===4}function jm(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||g1(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 Rd(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=rl));else if(r!==4&&(e=e.child,e!==null))for(Rd(e,t,n),e=e.sibling;e!==null;)Rd(e,t,n),e=e.sibling}function zd(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(zd(e,t,n),e=e.sibling;e!==null;)zd(e,t,n),e=e.sibling}var De=null,It=!1;function In(e,t,n){for(n=n.child;n!==null;)v1(e,t,n),n=n.sibling}function v1(e,t,n){if(tn&&typeof tn.onCommitFiberUnmount=="function")try{tn.onCommitFiberUnmount(Il,n)}catch{}switch(n.tag){case 5:We||oo(n,t);case 6:var r=De,o=It;De=null,In(e,t,n),De=r,It=o,De!==null&&(It?(e=De,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):De.removeChild(n.stateNode));break;case 18:De!==null&&(It?(e=De,n=n.stateNode,e.nodeType===8?Ju(e.parentNode,n):e.nodeType===1&&Ju(e,n),Xi(e)):Ju(De,n.stateNode));break;case 4:r=De,o=It,De=n.stateNode.containerInfo,It=!0,In(e,t,n),De=r,It=o;break;case 0:case 11:case 14:case 15:if(!We&&(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)&&$d(n,t,s),o=o.next}while(o!==r)}In(e,t,n);break;case 1:if(!We&&(oo(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(a){ye(n,t,a)}In(e,t,n);break;case 21:In(e,t,n);break;case 22:n.mode&1?(We=(r=We)||n.memoizedState!==null,In(e,t,n),We=r):In(e,t,n);break;default:In(e,t,n)}}function Lm(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new WC),t.forEach(function(r){var o=JC.bind(null,e,r);n.has(r)||(n.add(r),r.then(o,o))})}}function zt(e,t){var n=t.deletions;if(n!==null)for(var r=0;ro&&(o=s),r&=~i}if(r=o,r=Se()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*KC(r/1960))-r,10e?16:e,Kn===null)var r=!1;else{if(e=Kn,Kn=null,gl=0,H&6)throw Error(R(331));var o=H;for(H|=4,I=e.current;I!==null;){var i=I,s=i.child;if(I.flags&16){var a=i.deletions;if(a!==null){for(var l=0;lSe()-nh?$r(e,0):th|=n),at(e,t)}function _1(e,t){t===0&&(e.mode&1?(t=Ks,Ks<<=1,!(Ks&130023424)&&(Ks=4194304)):t=1);var n=Ze();e=En(e,t),e!==null&&(xs(e,t,n),at(e,n))}function ZC(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),_1(e,n)}function JC(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(R(314))}r!==null&&r.delete(t),_1(e,n)}var T1;T1=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||it.current)ot=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return ot=!1,VC(e,t,n);ot=!!(e.flags&131072)}else ot=!1,fe&&t.flags&1048576&&Ay(t,al,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Pa(e,t),e=t.pendingProps;var o=Ao(t,Ke.current);wo(t,n),o=Xf(null,t,r,e,o,n);var i=qf();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,st(r)?(i=!0,il(t)):i=!1,t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,Uf(t),o.updater=Nl,t.stateNode=o,o._reactInternals=t,wd(t,r,e,n),t=_d(null,t,r,!0,i,n)):(t.tag=0,fe&&i&&jf(t),qe(null,t,o,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Pa(e,t),e=t.pendingProps,o=r._init,r=o(r._payload),t.type=r,o=t.tag=t_(r),e=Dt(r,e),o){case 0:t=Cd(null,t,r,e,n);break e;case 1:t=Mm(null,t,r,e,n);break e;case 11:t=Rm(null,t,r,e,n);break e;case 14:t=zm(null,t,r,Dt(r.type,e),n);break e}throw Error(R(306,r,""))}return t;case 0:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Dt(r,o),Cd(e,t,r,o,n);case 1:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Dt(r,o),Mm(e,t,r,o,n);case 3:e:{if(u1(t),e===null)throw Error(R(387));r=t.pendingProps,i=t.memoizedState,o=i.element,Fy(e,t),cl(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=Do(Error(R(423)),t),t=Dm(e,t,r,n,o);break e}else if(r!==o){o=Do(Error(R(424)),t),t=Dm(e,t,r,n,o);break e}else for(ft=qn(t.stateNode.containerInfo.firstChild),ht=t,fe=!0,Ft=null,n=Dy(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Ro(),r===o){t=$n(e,t,n);break e}qe(e,t,r,n)}t=t.child}return t;case 5:return jy(t),e===null&&bd(t),r=t.type,o=t.pendingProps,i=e!==null?e.memoizedProps:null,s=o.children,pd(r,o)?s=null:i!==null&&pd(r,i)&&(t.flags|=32),l1(e,t),qe(e,t,s,n),t.child;case 6:return e===null&&bd(t),null;case 13:return c1(e,t,n);case 4:return Hf(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=zo(t,null,r,n):qe(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Dt(r,o),Rm(e,t,r,o,n);case 7:return qe(e,t,t.pendingProps,n),t.child;case 8:return qe(e,t,t.pendingProps.children,n),t.child;case 12:return qe(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,oe(ll,r._currentValue),r._currentValue=s,i!==null)if(Nt(i.value,s)){if(i.children===o.children&&!it.current){t=$n(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=bn(-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),Sd(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(R(341));s.lanes|=n,a=s.alternate,a!==null&&(a.lanes|=n),Sd(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}qe(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,wo(t,n),o=$t(o),r=r(o),t.flags|=1,qe(e,t,r,n),t.child;case 14:return r=t.type,o=Dt(r,t.pendingProps),o=Dt(r.type,o),zm(e,t,r,o,n);case 15:return s1(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Dt(r,o),Pa(e,t),t.tag=1,st(r)?(e=!0,il(t)):e=!1,wo(t,n),r1(t,r,o),wd(t,r,o,n),_d(null,t,r,!0,e,n);case 19:return d1(e,t,n);case 22:return a1(e,t,n)}throw Error(R(156,t.tag))};function P1(e,t){return ey(e,t)}function e_(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 Pt(e,t,n,r){return new e_(e,t,n,r)}function sh(e){return e=e.prototype,!(!e||!e.isReactComponent)}function t_(e){if(typeof e=="function")return sh(e)?1:0;if(e!=null){if(e=e.$$typeof,e===_f)return 11;if(e===Tf)return 14}return 2}function er(e,t){var n=e.alternate;return n===null?(n=Pt(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 Aa(e,t,n,r,o,i){var s=2;if(r=e,typeof e=="function")sh(e)&&(s=1);else if(typeof e=="string")s=5;else e:switch(e){case Xr:return Ar(n.children,o,i,t);case Cf:s=8,o|=8;break;case Kc:return e=Pt(12,n,t,o|2),e.elementType=Kc,e.lanes=i,e;case Gc:return e=Pt(13,n,t,o),e.elementType=Gc,e.lanes=i,e;case Yc:return e=Pt(19,n,t,o),e.elementType=Yc,e.lanes=i,e;case jv:return Hl(n,o,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Iv:s=10;break e;case Fv:s=9;break e;case _f:s=11;break e;case Tf:s=14;break e;case Vn:s=16,r=null;break e}throw Error(R(130,e==null?e:typeof e,""))}return t=Pt(s,n,t,o),t.elementType=e,t.type=r,t.lanes=i,t}function Ar(e,t,n,r){return e=Pt(7,e,r,t),e.lanes=n,e}function Hl(e,t,n,r){return e=Pt(22,e,r,t),e.elementType=jv,e.lanes=n,e.stateNode={isHidden:!1},e}function ac(e,t,n){return e=Pt(6,e,null,t),e.lanes=n,e}function lc(e,t,n){return t=Pt(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function n_(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=Nu(0),this.expirationTimes=Nu(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Nu(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function ah(e,t,n,r,o,i,s,a,l){return e=new n_(e,t,n,a,l),t===1?(t=1,i===!0&&(t|=8)):t=0,i=Pt(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Uf(i),e}function r_(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(R1)}catch(e){console.error(e)}}R1(),Rv.exports=yt;var dh=Rv.exports,z1,Km=dh;z1=Km.createRoot,Km.hydrateRoot;const jt={BASE_URL:"/jotai-todo/",DEV:!1,MODE:"production",PROD:!0,SSR:!1};let l_=0;function ql(e,t){const n=`atom${++l_}`,r={toString(){return(jt?"production":void 0)!=="production"&&this.debugLabel?n+":"+this.debugLabel:n}};return typeof e=="function"?r.read=e:(r.init=e,r.read=u_,r.write=c_),t&&(r.write=t),r}function u_(e){return e(this)}function c_(e,t,n){return t(this,typeof n=="function"?n(e(this)):n)}const Gm=(e,t)=>e.unstable_is?e.unstable_is(t):t===e,uc=e=>"init"in e,cc=e=>!!e.write,Mi=Symbol((jt?"production":void 0)!=="production"?"CONTINUE_PROMISE":""),fh="pending",d_="fulfilled",f_="rejected",h_=e=>typeof e=="object"&&e!==null&&Mi in e,oa=new WeakMap,p_=(e,t,n)=>{if(!oa.has(e)){let r;const o=new Promise((i,s)=>{let a=e;const l=c=>d=>{a===c&&(o.status=d_,o.value=d,i(d),n())},u=c=>d=>{a===c&&(o.status=f_,o.reason=d,s(d),n())};e.then(l(e),u(e)),r=(c,d)=>{c&&(oa.set(c,o),a=c,c.then(l(c),u(c)),t(),t=d)}});o.status=fh,o[Mi]=r,oa.set(e,o)}return oa.get(e)},m_=e=>typeof(e==null?void 0:e.then)=="function",Ym=e=>"v"in e||"e"in e,ia=e=>{if("e"in e)throw e.e;if((jt?"production":void 0)!=="production"&&!("v"in e))throw new Error("[Bug] atom state is not initialized");return e.v},Ra=e=>{const t=e.v;return h_(t)&&t.status===fh?t:null},M1=(e,t,n)=>{n.p.has(e)||(n.p.add(e),t.then(()=>{n.p.delete(e)},()=>{n.p.delete(e)}))},Xm=(e,t,n,r,o)=>{var i;if((jt?"production":void 0)!=="production"&&r===t)throw new Error("[Bug] atom cannot depend on itself");n.d.set(r,o.n);const s=Ra(n);s&&M1(t,s,o),(i=o.m)==null||i.t.add(t),e&&g_(e,r,t)},Kr=()=>[new Map,new Map,new Set],dc=(e,t,n)=>{e[0].has(t)||e[0].set(t,new Set),e[1].set(t,n)},g_=(e,t,n)=>{const r=e[0].get(t);r&&r.add(n)},v_=(e,t)=>e[0].get(t),qm=(e,t)=>{e[2].add(t)},gr=e=>{for(;e[1].size||e[2].size;){e[0].clear();const t=new Set(e[1].values());e[1].clear();const n=new Set(e[2]);e[2].clear(),t.forEach(r=>{var o;return(o=r.m)==null?void 0:o.l.forEach(i=>i())}),n.forEach(r=>r())}},D1=e=>{let t;(jt?"production":void 0)!=="production"&&(t=new Set);const n=(y,S,f,h=()=>{},m=()=>{})=>{const x="v"in S,C=S.v,A=Ra(S);if(m_(f))if(A)A!==f&&(A[Mi](f,h),++S.n);else{const $=p_(f,h,m);if($.status===fh)for(const P of S.d.keys())M1(y,$,e(P,S));S.v=$,delete S.e}else A&&A[Mi](Promise.resolve(f),h),S.v=f,delete S.e;(!x||!Object.is(C,S.v))&&++S.n},r=(y,S,f,h)=>{if(!(h!=null&&h(S))&&Ym(f)&&(f.m||Array.from(f.d).every(([P,D])=>r(y,P,e(P,f),h).n===D)))return f;f.d.clear();let m=!0;const x=P=>{if(Gm(S,P)){const z=e(P,f);if(!Ym(z))if(uc(P))n(P,z,P.init);else throw new Error("no atom init");return ia(z)}const D=r(y,P,e(P,f),h);if(m)Xm(y,S,f,P,D);else{const z=Kr();Xm(z,S,f,P,D),u(z,S,f),gr(z)}return ia(D)};let C,A;const $={get signal(){return C||(C=new AbortController),C.signal},get setSelf(){return(jt?"production":void 0)!=="production"&&!cc(S)&&console.warn("setSelf function cannot be used with read-only atom"),!A&&cc(S)&&(A=(...P)=>{if((jt?"production":void 0)!=="production"&&m&&console.warn("setSelf function cannot be called in sync"),!m)return l(S,...P)}),A}};try{const P=S.read(x,$);return n(S,f,P,()=>C==null?void 0:C.abort(),()=>{if(f.m){const D=Kr();u(D,S,f),gr(D)}}),f}catch(P){return delete f.v,f.e=P,++f.n,f}finally{m=!1}},o=y=>ia(r(void 0,y,e(y))),i=(y,S,f)=>{var h,m;const x=new Map;for(const C of((h=f.m)==null?void 0:h.t)||[])x.set(C,e(C,f));for(const C of f.p)x.set(C,e(C,f));return(m=v_(y,S))==null||m.forEach(C=>{x.set(C,e(C,f))}),x},s=(y,S,f)=>{const h=[],m=new Set,x=($,P)=>{if(!m.has($)){m.add($);for(const[D,z]of i(y,$,P))$!==D&&x(D,z);h.push([$,P,P.n])}};x(S,f);const C=new Set([S]),A=$=>m.has($);for(let $=h.length-1;$>=0;--$){const[P,D,z]=h[$];let ne=!1;for(const Ye of D.d.keys())if(Ye!==P&&C.has(Ye)){ne=!0;break}ne&&(r(y,P,D,A),u(y,P,D),z!==D.n&&(dc(y,P,D),C.add(P))),m.delete(P)}},a=(y,S,f,...h)=>{const m=A=>ia(r(y,A,e(A,f))),x=(A,...$)=>{const P=e(A,f);let D;if(Gm(S,A)){if(!uc(A))throw new Error("atom not writable");const z="v"in P,ne=P.v,Ye=$[0];n(A,P,Ye),u(y,A,P),(!z||!Object.is(ne,P.v))&&(dc(y,A,P),s(y,A,P))}else D=a(y,A,P,...$);return gr(y),D};return S.write(m,x,...h)},l=(y,...S)=>{const f=Kr(),h=a(f,y,e(y),...S);return gr(f),h},u=(y,S,f)=>{if(f.m&&!Ra(f)){for(const h of f.d.keys())f.m.d.has(h)||(c(y,h,e(h,f)).t.add(S),f.m.d.add(h));for(const h of f.m.d||[])if(!f.d.has(h)){f.m.d.delete(h);const m=d(y,h,e(h,f));m==null||m.t.delete(S)}}},c=(y,S,f)=>{if(!f.m){r(y,S,f);for(const h of f.d.keys())c(y,h,e(h,f)).t.add(S);if(f.m={l:new Set,d:new Set(f.d.keys()),t:new Set},(jt?"production":void 0)!=="production"&&t.add(S),cc(S)&&S.onMount){const h=f.m,{onMount:m}=S;qm(y,()=>{const x=m((...C)=>a(y,S,f,...C));x&&(h.u=x)})}}return f.m},d=(y,S,f)=>{if(f.m&&!f.m.l.size&&!Array.from(f.m.t).some(h=>{var m;return(m=e(h,f).m)==null?void 0:m.d.has(S)})){const h=f.m.u;h&&qm(y,h),delete f.m,(jt?"production":void 0)!=="production"&&t.delete(S);for(const x of f.d.keys()){const C=d(y,x,e(x,f));C==null||C.t.delete(S)}const m=Ra(f);m&&m[Mi](void 0,()=>{});return}return f.m},b={get:o,set:l,sub:(y,S)=>{const f=Kr(),h=e(y),m=c(f,y,h);gr(f);const x=m.l;return x.add(S),()=>{x.delete(S);const C=Kr();d(C,y,h),gr(C)}},unstable_derive:y=>D1(...y(e))};return(jt?"production":void 0)!=="production"&&Object.assign(b,{dev4_get_internal_weak_map:()=>({get:S=>{const f=e(S);if(f.n!==0)return f}}),dev4_get_mounted_atoms:()=>t,dev4_restore_atoms:S=>{const f=Kr();for(const[h,m]of S)if(uc(h)){const x=e(h),C="v"in x,A=x.v;n(h,x,m),u(f,h,x),(!C||!Object.is(A,x.v))&&(dc(f,h,x),s(f,h,x))}gr(f)}}),b},I1=()=>{const e=new WeakMap;return D1(n=>{let r=e.get(n);return r||(r={d:new Map,p:new Set,n:0},e.set(n,r)),r})};let ai;const y_=()=>(ai||(ai=I1(),(jt?"production":void 0)!=="production"&&(globalThis.__JOTAI_DEFAULT_STORE__||(globalThis.__JOTAI_DEFAULT_STORE__=ai),globalThis.__JOTAI_DEFAULT_STORE__!==ai&&console.warn("Detected multiple Jotai instances. It may cause unexpected behavior with the default store. https://github.com/pmndrs/jotai/discussions/2044"))),ai),b_={BASE_URL:"/jotai-todo/",DEV:!1,MODE:"production",PROD:!0,SSR:!1},F1=_.createContext(void 0),j1=e=>_.useContext(F1)||y_(),S_=({children:e,store:t})=>{const n=_.useRef();return!t&&!n.current&&(n.current=I1()),_.createElement(F1.Provider,{value:t||n.current},e)},x_=e=>typeof(e==null?void 0:e.then)=="function",w_=Ya.use||(e=>{if(e.status==="pending")throw e;if(e.status==="fulfilled")return e.value;throw e.status==="rejected"?e.reason:(e.status="pending",e.then(t=>{e.status="fulfilled",e.value=t},t=>{e.status="rejected",e.reason=t}),e)});function k_(e,t){const n=j1(),[[r,o,i],s]=_.useReducer(u=>{const c=n.get(e);return Object.is(u[0],c)&&u[1]===n&&u[2]===e?u:[c,n,e]},void 0,()=>[n.get(e),n,e]);let a=r;return(o!==n||i!==e)&&(s(),a=n.get(e)),_.useEffect(()=>{const u=n.sub(e,()=>{s()});return s(),u},[n,e,void 0]),_.useDebugValue(a),x_(a)?w_(a):a}function jd(e,t){const n=j1();return _.useCallback((...o)=>{if((b_?"production":void 0)!=="production"&&!("write"in e))throw new Error("not writable atom");return n.set(e,...o)},[n,e])}function Ld(e,t){return[k_(e),jd(e)]}function bl(){return bl=Object.assign?Object.assign.bind():function(e){for(var t=1;tnull,__=!1;function T_(e){if(e.sheet)return e.sheet;for(var t=0;t0?Fe(Ho,--lt):0,Fo--,ke===10&&(Fo=1,Zl--),ke}function pt(){return ke=lt2||ls(ke)>3?"":" "}function B_(e,t){for(;--t&&pt()&&!(ke<48||ke>102||ke>57&&ke<65||ke>70&&ke<97););return _s(e,za()+(t<6&&rn()==32&&pt()==32))}function Vd(e){for(;pt();)switch(ke){case e:return lt;case 34:case 39:e!==34&&e!==39&&Vd(ke);break;case 40:e===41&&Vd(e);break;case 92:pt();break}return lt}function V_(e,t){for(;pt()&&e+ke!==57;)if(e+ke===84&&rn()===47)break;return"/*"+_s(t,lt-1)+"*"+Ql(e===47?e:pt())}function O_(e){for(;!ls(rn());)pt();return _s(e,lt)}function N_(e){return W1(Da("",null,null,null,[""],e=N1(e),0,[0],e))}function Da(e,t,n,r,o,i,s,a,l){for(var u=0,c=0,d=s,p=0,v=0,b=0,y=1,S=1,f=1,h=0,m="",x=o,C=i,A=r,$=m;S;)switch(b=h,h=pt()){case 40:if(b!=108&&Fe($,d-1)==58){Bd($+=X(Ma(h),"&","&\f"),"&\f")!=-1&&(f=-1);break}case 34:case 39:case 91:$+=Ma(h);break;case 9:case 10:case 13:case 32:$+=L_(b);break;case 92:$+=B_(za()-1,7);continue;case 47:switch(rn()){case 42:case 47:sa(W_(V_(pt(),za()),t,n),l);break;default:$+="/"}break;case 123*y:a[u++]=Xt($)*f;case 125*y:case 59:case 0:switch(h){case 0:case 125:S=0;case 59+c:f==-1&&($=X($,/\f/g,"")),v>0&&Xt($)-d&&sa(v>32?Zm($+";",r,n,d-1):Zm(X($," ","")+";",r,n,d-2),l);break;case 59:$+=";";default:if(sa(A=Qm($,t,n,u,c,o,a,m,x=[],C=[],d),i),h===123)if(c===0)Da($,t,A,A,x,i,d,a,C);else switch(p===99&&Fe($,3)===110?100:p){case 100:case 108:case 109:case 115:Da(e,A,A,r&&sa(Qm(e,A,A,0,0,o,a,m,o,x=[],d),C),o,C,d,a,r?x:C);break;default:Da($,A,A,A,[""],C,0,a,C)}}u=c=v=0,y=f=1,m=$="",d=s;break;case 58:d=1+Xt($),v=b;default:if(y<1){if(h==123)--y;else if(h==125&&y++==0&&j_()==125)continue}switch($+=Ql(h),h*y){case 38:f=c>0?1:($+="\f",-1);break;case 44:a[u++]=(Xt($)-1)*f,f=1;break;case 64:rn()===45&&($+=Ma(pt())),p=rn(),c=d=Xt(m=$+=O_(za())),h++;break;case 45:b===45&&Xt($)==2&&(y=0)}}return i}function Qm(e,t,n,r,o,i,s,a,l,u,c){for(var d=o-1,p=o===0?i:[""],v=mh(p),b=0,y=0,S=0;b0?p[f]+" "+h:X(h,/&\f/g,p[f])))&&(l[S++]=m);return Jl(e,t,n,o===0?hh:a,l,u,c)}function W_(e,t,n){return Jl(e,t,n,L1,Ql(F_()),as(e,2,-2),0)}function Zm(e,t,n,r){return Jl(e,t,n,ph,as(e,0,r),as(e,r+1,-1),r)}function Co(e,t){for(var n="",r=mh(e),o=0;o6)switch(Fe(e,t+1)){case 109:if(Fe(e,t+4)!==45)break;case 102:return X(e,/(.+:)(.+)-([^]+)/,"$1"+Y+"$2-$3$1"+Sl+(Fe(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~Bd(e,"stretch")?H1(X(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(Fe(e,t+1)!==115)break;case 6444:switch(Fe(e,Xt(e)-3-(~Bd(e,"!important")&&10))){case 107:return X(e,":",":"+Y)+e;case 101:return X(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Y+(Fe(e,14)===45?"inline-":"")+"box$3$1"+Y+"$2$3$1"+Oe+"$2box$3")+e}break;case 5936:switch(Fe(e,t+11)){case 114:return Y+e+Oe+X(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Y+e+Oe+X(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Y+e+Oe+X(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return Y+e+Oe+e+e}return e}var Z_=function(t,n,r,o){if(t.length>-1&&!t.return)switch(t.type){case ph:t.return=H1(t.value,t.length);break;case B1:return Co([li(t,{value:X(t.value,"@","@"+Y)})],o);case hh:if(t.length)return I_(t.props,function(i){switch(D_(i,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Co([li(t,{props:[X(i,/:(read-\w+)/,":"+Sl+"$1")]})],o);case"::placeholder":return Co([li(t,{props:[X(i,/:(plac\w+)/,":"+Y+"input-$1")]}),li(t,{props:[X(i,/:(plac\w+)/,":"+Sl+"$1")]}),li(t,{props:[X(i,/:(plac\w+)/,Oe+"input-$1")]})],o)}return""})}},J_=[Z_],e2=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 S=y.getAttribute("data-emotion");S.indexOf(" ")!==-1&&(document.head.appendChild(y),y.setAttribute("data-s",""))})}var o=t.stylisPlugins||J_,i={},s,a=[];s=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(y){for(var S=y.getAttribute("data-emotion").split(" "),f=1;f<\/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[Qt]=t,e[es]=r,f1(e,t,!1,!1),t.stateNode=e;e:{switch(s=nd(n,r),n){case"dialog":se("cancel",e),se("close",e),o=r;break;case"iframe":case"object":case"embed":se("load",e),o=r;break;case"video":case"audio":for(o=0;oIo&&(t.flags|=128,r=!0,ii(i,!1),t.lanes=4194304)}else{if(!r)if(e=dl(s),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),ii(i,!0),i.tail===null&&i.tailMode==="hidden"&&!s.alternate&&!fe)return Ve(t),null}else 2*Se()-i.renderingStartTime>Io&&n!==1073741824&&(t.flags|=128,r=!0,ii(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=Se(),t.sibling=null,n=pe.current,oe(pe,r?n&1|2:n&1),t):(Ve(t),null);case 22:case 23:return oh(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?dt&1073741824&&(Ve(t),t.subtreeFlags&6&&(t.flags|=8192)):Ve(t),null;case 24:return null;case 25:return null}throw Error(R(156,t.tag))}function VC(e,t){switch(Lf(t),t.tag){case 1:return st(t.type)&&ol(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Mo(),le(it),le(Ke),Gf(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return Kf(t),null;case 13:if(le(pe),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(R(340));Ro()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return le(pe),null;case 4:return Mo(),null;case 10:return Nf(t.type._context),null;case 22:case 23:return oh(),null;case 24:return null;default:return null}}var ta=!1,We=!1,OC=typeof WeakSet=="function"?WeakSet:Set,I=null;function oo(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){ye(e,t,r)}else n.current=null}function $d(e,t,n){try{n()}catch(r){ye(e,t,r)}}var Fm=!1;function NC(e,t){if(fd=el,e=by(),Ff(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,p=null;t:for(;;){for(var v;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),(v=d.firstChild)!==null;)p=d,d=v;for(;;){if(d===e)break t;if(p===n&&++u===o&&(a=s),p===i&&++c===r&&(l=s),(v=d.nextSibling)!==null)break;d=p,p=d.parentNode}d=v}n=a===-1||l===-1?null:{start:a,end:l}}else n=null}n=n||{start:0,end:0}}else n=null;for(hd={focusedElem:e,selectionRange:n},el=!1,I=t;I!==null;)if(t=I,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,I=e;else for(;I!==null;){t=I;try{var b=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(b!==null){var y=b.memoizedProps,S=b.memoizedState,f=t.stateNode,h=f.getSnapshotBeforeUpdate(t.elementType===t.type?y:Dt(t.type,y),S);f.__reactInternalSnapshotBeforeUpdate=h}break;case 3:var m=t.stateNode.containerInfo;m.nodeType===1?m.textContent="":m.nodeType===9&&m.documentElement&&m.removeChild(m.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(R(163))}}catch(x){ye(t,t.return,x)}if(e=t.sibling,e!==null){e.return=t.return,I=e;break}I=t.return}return b=Fm,Fm=!1,b}function Ai(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&&$d(t,n,i)}o=o.next}while(o!==r)}}function Wl(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 Ad(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 m1(e){var t=e.alternate;t!==null&&(e.alternate=null,m1(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Qt],delete t[es],delete t[gd],delete t[CC],delete t[_C])),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 g1(e){return e.tag===5||e.tag===3||e.tag===4}function jm(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||g1(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 Rd(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=rl));else if(r!==4&&(e=e.child,e!==null))for(Rd(e,t,n),e=e.sibling;e!==null;)Rd(e,t,n),e=e.sibling}function zd(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(zd(e,t,n),e=e.sibling;e!==null;)zd(e,t,n),e=e.sibling}var De=null,It=!1;function In(e,t,n){for(n=n.child;n!==null;)v1(e,t,n),n=n.sibling}function v1(e,t,n){if(tn&&typeof tn.onCommitFiberUnmount=="function")try{tn.onCommitFiberUnmount(Il,n)}catch{}switch(n.tag){case 5:We||oo(n,t);case 6:var r=De,o=It;De=null,In(e,t,n),De=r,It=o,De!==null&&(It?(e=De,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):De.removeChild(n.stateNode));break;case 18:De!==null&&(It?(e=De,n=n.stateNode,e.nodeType===8?Ju(e.parentNode,n):e.nodeType===1&&Ju(e,n),Xi(e)):Ju(De,n.stateNode));break;case 4:r=De,o=It,De=n.stateNode.containerInfo,It=!0,In(e,t,n),De=r,It=o;break;case 0:case 11:case 14:case 15:if(!We&&(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)&&$d(n,t,s),o=o.next}while(o!==r)}In(e,t,n);break;case 1:if(!We&&(oo(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(a){ye(n,t,a)}In(e,t,n);break;case 21:In(e,t,n);break;case 22:n.mode&1?(We=(r=We)||n.memoizedState!==null,In(e,t,n),We=r):In(e,t,n);break;default:In(e,t,n)}}function Lm(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new OC),t.forEach(function(r){var o=QC.bind(null,e,r);n.has(r)||(n.add(r),r.then(o,o))})}}function zt(e,t){var n=t.deletions;if(n!==null)for(var r=0;ro&&(o=s),r&=~i}if(r=o,r=Se()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*UC(r/1960))-r,10e?16:e,Kn===null)var r=!1;else{if(e=Kn,Kn=null,gl=0,H&6)throw Error(R(331));var o=H;for(H|=4,I=e.current;I!==null;){var i=I,s=i.child;if(I.flags&16){var a=i.deletions;if(a!==null){for(var l=0;lSe()-nh?$r(e,0):th|=n),at(e,t)}function _1(e,t){t===0&&(e.mode&1?(t=Ks,Ks<<=1,!(Ks&130023424)&&(Ks=4194304)):t=1);var n=Ze();e=En(e,t),e!==null&&(xs(e,t,n),at(e,n))}function qC(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),_1(e,n)}function QC(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(R(314))}r!==null&&r.delete(t),_1(e,n)}var T1;T1=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||it.current)ot=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return ot=!1,LC(e,t,n);ot=!!(e.flags&131072)}else ot=!1,fe&&t.flags&1048576&&Ay(t,al,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Pa(e,t),e=t.pendingProps;var o=Ao(t,Ke.current);wo(t,n),o=Xf(null,t,r,e,o,n);var i=qf();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,st(r)?(i=!0,il(t)):i=!1,t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,Uf(t),o.updater=Nl,t.stateNode=o,o._reactInternals=t,wd(t,r,e,n),t=_d(null,t,r,!0,i,n)):(t.tag=0,fe&&i&&jf(t),qe(null,t,o,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Pa(e,t),e=t.pendingProps,o=r._init,r=o(r._payload),t.type=r,o=t.tag=JC(r),e=Dt(r,e),o){case 0:t=Cd(null,t,r,e,n);break e;case 1:t=Mm(null,t,r,e,n);break e;case 11:t=Rm(null,t,r,e,n);break e;case 14:t=zm(null,t,r,Dt(r.type,e),n);break e}throw Error(R(306,r,""))}return t;case 0:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Dt(r,o),Cd(e,t,r,o,n);case 1:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Dt(r,o),Mm(e,t,r,o,n);case 3:e:{if(u1(t),e===null)throw Error(R(387));r=t.pendingProps,i=t.memoizedState,o=i.element,Fy(e,t),cl(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=Do(Error(R(423)),t),t=Dm(e,t,r,n,o);break e}else if(r!==o){o=Do(Error(R(424)),t),t=Dm(e,t,r,n,o);break e}else for(ft=qn(t.stateNode.containerInfo.firstChild),ht=t,fe=!0,Ft=null,n=Dy(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Ro(),r===o){t=$n(e,t,n);break e}qe(e,t,r,n)}t=t.child}return t;case 5:return jy(t),e===null&&bd(t),r=t.type,o=t.pendingProps,i=e!==null?e.memoizedProps:null,s=o.children,pd(r,o)?s=null:i!==null&&pd(r,i)&&(t.flags|=32),l1(e,t),qe(e,t,s,n),t.child;case 6:return e===null&&bd(t),null;case 13:return c1(e,t,n);case 4:return Hf(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=zo(t,null,r,n):qe(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Dt(r,o),Rm(e,t,r,o,n);case 7:return qe(e,t,t.pendingProps,n),t.child;case 8:return qe(e,t,t.pendingProps.children,n),t.child;case 12:return qe(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,oe(ll,r._currentValue),r._currentValue=s,i!==null)if(Nt(i.value,s)){if(i.children===o.children&&!it.current){t=$n(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=bn(-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),Sd(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(R(341));s.lanes|=n,a=s.alternate,a!==null&&(a.lanes|=n),Sd(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}qe(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,wo(t,n),o=$t(o),r=r(o),t.flags|=1,qe(e,t,r,n),t.child;case 14:return r=t.type,o=Dt(r,t.pendingProps),o=Dt(r.type,o),zm(e,t,r,o,n);case 15:return s1(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Dt(r,o),Pa(e,t),t.tag=1,st(r)?(e=!0,il(t)):e=!1,wo(t,n),r1(t,r,o),wd(t,r,o,n),_d(null,t,r,!0,e,n);case 19:return d1(e,t,n);case 22:return a1(e,t,n)}throw Error(R(156,t.tag))};function P1(e,t){return ey(e,t)}function ZC(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 Pt(e,t,n,r){return new ZC(e,t,n,r)}function sh(e){return e=e.prototype,!(!e||!e.isReactComponent)}function JC(e){if(typeof e=="function")return sh(e)?1:0;if(e!=null){if(e=e.$$typeof,e===_f)return 11;if(e===Tf)return 14}return 2}function er(e,t){var n=e.alternate;return n===null?(n=Pt(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 Aa(e,t,n,r,o,i){var s=2;if(r=e,typeof e=="function")sh(e)&&(s=1);else if(typeof e=="string")s=5;else e:switch(e){case Xr:return Ar(n.children,o,i,t);case Cf:s=8,o|=8;break;case Kc:return e=Pt(12,n,t,o|2),e.elementType=Kc,e.lanes=i,e;case Gc:return e=Pt(13,n,t,o),e.elementType=Gc,e.lanes=i,e;case Yc:return e=Pt(19,n,t,o),e.elementType=Yc,e.lanes=i,e;case jv:return Hl(n,o,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Iv:s=10;break e;case Fv:s=9;break e;case _f:s=11;break e;case Tf:s=14;break e;case Vn:s=16,r=null;break e}throw Error(R(130,e==null?e:typeof e,""))}return t=Pt(s,n,t,o),t.elementType=e,t.type=r,t.lanes=i,t}function Ar(e,t,n,r){return e=Pt(7,e,r,t),e.lanes=n,e}function Hl(e,t,n,r){return e=Pt(22,e,r,t),e.elementType=jv,e.lanes=n,e.stateNode={isHidden:!1},e}function ac(e,t,n){return e=Pt(6,e,null,t),e.lanes=n,e}function lc(e,t,n){return t=Pt(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function e_(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=Nu(0),this.expirationTimes=Nu(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Nu(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function ah(e,t,n,r,o,i,s,a,l){return e=new e_(e,t,n,a,l),t===1?(t=1,i===!0&&(t|=8)):t=0,i=Pt(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Uf(i),e}function t_(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(R1)}catch(e){console.error(e)}}R1(),Rv.exports=yt;var dh=Rv.exports,z1,Km=dh;z1=Km.createRoot,Km.hydrateRoot;const jt={BASE_URL:"/jotai-todo/",DEV:!1,MODE:"production",PROD:!0,SSR:!1};let s_=0;function ql(e,t){const n=`atom${++s_}`,r={toString(){return(jt?"production":void 0)!=="production"&&this.debugLabel?n+":"+this.debugLabel:n}};return typeof e=="function"?r.read=e:(r.init=e,r.read=a_,r.write=l_),t&&(r.write=t),r}function a_(e){return e(this)}function l_(e,t,n){return t(this,typeof n=="function"?n(e(this)):n)}const Gm=(e,t)=>e.unstable_is?e.unstable_is(t):t===e,uc=e=>"init"in e,cc=e=>!!e.write,Mi=Symbol((jt?"production":void 0)!=="production"?"CONTINUE_PROMISE":""),fh="pending",u_="fulfilled",c_="rejected",d_=e=>typeof e=="object"&&e!==null&&Mi in e,oa=new WeakMap,f_=(e,t,n)=>{if(!oa.has(e)){let r;const o=new Promise((i,s)=>{let a=e;const l=c=>d=>{a===c&&(o.status=u_,o.value=d,i(d),n())},u=c=>d=>{a===c&&(o.status=c_,o.reason=d,s(d),n())};e.then(l(e),u(e)),r=(c,d)=>{c&&(oa.set(c,o),a=c,c.then(l(c),u(c)),t(),t=d)}});o.status=fh,o[Mi]=r,oa.set(e,o)}return oa.get(e)},h_=e=>typeof(e==null?void 0:e.then)=="function",Ym=e=>"v"in e||"e"in e,ia=e=>{if("e"in e)throw e.e;if((jt?"production":void 0)!=="production"&&!("v"in e))throw new Error("[Bug] atom state is not initialized");return e.v},Ra=e=>{const t=e.v;return d_(t)&&t.status===fh?t:null},M1=(e,t,n)=>{n.p.has(e)||(n.p.add(e),t.then(()=>{n.p.delete(e)},()=>{n.p.delete(e)}))},Xm=(e,t,n,r,o)=>{var i;if((jt?"production":void 0)!=="production"&&r===t)throw new Error("[Bug] atom cannot depend on itself");n.d.set(r,o.n);const s=Ra(n);s&&M1(t,s,o),(i=o.m)==null||i.t.add(t),e&&p_(e,r,t)},Kr=()=>[new Map,new Map,new Set],dc=(e,t,n)=>{e[0].has(t)||e[0].set(t,new Set),e[1].set(t,n)},p_=(e,t,n)=>{const r=e[0].get(t);r&&r.add(n)},m_=(e,t)=>e[0].get(t),qm=(e,t)=>{e[2].add(t)},gr=e=>{for(;e[1].size||e[2].size;){e[0].clear();const t=new Set(e[1].values());e[1].clear();const n=new Set(e[2]);e[2].clear(),t.forEach(r=>{var o;return(o=r.m)==null?void 0:o.l.forEach(i=>i())}),n.forEach(r=>r())}},D1=e=>{let t;(jt?"production":void 0)!=="production"&&(t=new Set);const n=(y,S,f,h=()=>{},m=()=>{})=>{const x="v"in S,C=S.v,A=Ra(S);if(h_(f))if(A)A!==f&&(A[Mi](f,h),++S.n);else{const $=f_(f,h,m);if($.status===fh)for(const P of S.d.keys())M1(y,$,e(P,S));S.v=$,delete S.e}else A&&A[Mi](Promise.resolve(f),h),S.v=f,delete S.e;(!x||!Object.is(C,S.v))&&++S.n},r=(y,S,f,h)=>{if(!(h!=null&&h(S))&&Ym(f)&&(f.m||Array.from(f.d).every(([P,D])=>r(y,P,e(P,f),h).n===D)))return f;f.d.clear();let m=!0;const x=P=>{if(Gm(S,P)){const z=e(P,f);if(!Ym(z))if(uc(P))n(P,z,P.init);else throw new Error("no atom init");return ia(z)}const D=r(y,P,e(P,f),h);if(m)Xm(y,S,f,P,D);else{const z=Kr();Xm(z,S,f,P,D),u(z,S,f),gr(z)}return ia(D)};let C,A;const $={get signal(){return C||(C=new AbortController),C.signal},get setSelf(){return(jt?"production":void 0)!=="production"&&!cc(S)&&console.warn("setSelf function cannot be used with read-only atom"),!A&&cc(S)&&(A=(...P)=>{if((jt?"production":void 0)!=="production"&&m&&console.warn("setSelf function cannot be called in sync"),!m)return l(S,...P)}),A}};try{const P=S.read(x,$);return n(S,f,P,()=>C==null?void 0:C.abort(),()=>{if(f.m){const D=Kr();u(D,S,f),gr(D)}}),f}catch(P){return delete f.v,f.e=P,++f.n,f}finally{m=!1}},o=y=>ia(r(void 0,y,e(y))),i=(y,S,f)=>{var h,m;const x=new Map;for(const C of((h=f.m)==null?void 0:h.t)||[])x.set(C,e(C,f));for(const C of f.p)x.set(C,e(C,f));return(m=m_(y,S))==null||m.forEach(C=>{x.set(C,e(C,f))}),x},s=(y,S,f)=>{const h=[],m=new Set,x=($,P)=>{if(!m.has($)){m.add($);for(const[D,z]of i(y,$,P))$!==D&&x(D,z);h.push([$,P,P.n])}};x(S,f);const C=new Set([S]),A=$=>m.has($);for(let $=h.length-1;$>=0;--$){const[P,D,z]=h[$];let ne=!1;for(const Ye of D.d.keys())if(Ye!==P&&C.has(Ye)){ne=!0;break}ne&&(r(y,P,D,A),u(y,P,D),z!==D.n&&(dc(y,P,D),C.add(P))),m.delete(P)}},a=(y,S,f,...h)=>{const m=A=>ia(r(y,A,e(A,f))),x=(A,...$)=>{const P=e(A,f);let D;if(Gm(S,A)){if(!uc(A))throw new Error("atom not writable");const z="v"in P,ne=P.v,Ye=$[0];n(A,P,Ye),u(y,A,P),(!z||!Object.is(ne,P.v))&&(dc(y,A,P),s(y,A,P))}else D=a(y,A,P,...$);return gr(y),D};return S.write(m,x,...h)},l=(y,...S)=>{const f=Kr(),h=a(f,y,e(y),...S);return gr(f),h},u=(y,S,f)=>{if(f.m&&!Ra(f)){for(const h of f.d.keys())f.m.d.has(h)||(c(y,h,e(h,f)).t.add(S),f.m.d.add(h));for(const h of f.m.d||[])if(!f.d.has(h)){f.m.d.delete(h);const m=d(y,h,e(h,f));m==null||m.t.delete(S)}}},c=(y,S,f)=>{if(!f.m){r(y,S,f);for(const h of f.d.keys())c(y,h,e(h,f)).t.add(S);if(f.m={l:new Set,d:new Set(f.d.keys()),t:new Set},(jt?"production":void 0)!=="production"&&t.add(S),cc(S)&&S.onMount){const h=f.m,{onMount:m}=S;qm(y,()=>{const x=m((...C)=>a(y,S,f,...C));x&&(h.u=x)})}}return f.m},d=(y,S,f)=>{if(f.m&&!f.m.l.size&&!Array.from(f.m.t).some(h=>{var m;return(m=e(h,f).m)==null?void 0:m.d.has(S)})){const h=f.m.u;h&&qm(y,h),delete f.m,(jt?"production":void 0)!=="production"&&t.delete(S);for(const x of f.d.keys()){const C=d(y,x,e(x,f));C==null||C.t.delete(S)}const m=Ra(f);m&&m[Mi](void 0,()=>{});return}return f.m},b={get:o,set:l,sub:(y,S)=>{const f=Kr(),h=e(y),m=c(f,y,h);gr(f);const x=m.l;return x.add(S),()=>{x.delete(S);const C=Kr();d(C,y,h),gr(C)}},unstable_derive:y=>D1(...y(e))};return(jt?"production":void 0)!=="production"&&Object.assign(b,{dev4_get_internal_weak_map:()=>({get:S=>{const f=e(S);if(f.n!==0)return f}}),dev4_get_mounted_atoms:()=>t,dev4_restore_atoms:S=>{const f=Kr();for(const[h,m]of S)if(uc(h)){const x=e(h),C="v"in x,A=x.v;n(h,x,m),u(f,h,x),(!C||!Object.is(A,x.v))&&(dc(f,h,x),s(f,h,x))}gr(f)}}),b},g_=()=>{const e=new WeakMap;return D1(n=>{let r=e.get(n);return r||(r={d:new Map,p:new Set,n:0},e.set(n,r)),r})};let ai;const v_=()=>(ai||(ai=g_(),(jt?"production":void 0)!=="production"&&(globalThis.__JOTAI_DEFAULT_STORE__||(globalThis.__JOTAI_DEFAULT_STORE__=ai),globalThis.__JOTAI_DEFAULT_STORE__!==ai&&console.warn("Detected multiple Jotai instances. It may cause unexpected behavior with the default store. https://github.com/pmndrs/jotai/discussions/2044"))),ai),y_={BASE_URL:"/jotai-todo/",DEV:!1,MODE:"production",PROD:!0,SSR:!1},b_=_.createContext(void 0),I1=e=>_.useContext(b_)||v_(),S_=e=>typeof(e==null?void 0:e.then)=="function",x_=Ya.use||(e=>{if(e.status==="pending")throw e;if(e.status==="fulfilled")return e.value;throw e.status==="rejected"?e.reason:(e.status="pending",e.then(t=>{e.status="fulfilled",e.value=t},t=>{e.status="rejected",e.reason=t}),e)});function w_(e,t){const n=I1(),[[r,o,i],s]=_.useReducer(u=>{const c=n.get(e);return Object.is(u[0],c)&&u[1]===n&&u[2]===e?u:[c,n,e]},void 0,()=>[n.get(e),n,e]);let a=r;return(o!==n||i!==e)&&(s(),a=n.get(e)),_.useEffect(()=>{const u=n.sub(e,()=>{s()});return s(),u},[n,e,void 0]),_.useDebugValue(a),S_(a)?x_(a):a}function jd(e,t){const n=I1();return _.useCallback((...o)=>{if((y_?"production":void 0)!=="production"&&!("write"in e))throw new Error("not writable atom");return n.set(e,...o)},[n,e])}function Ld(e,t){return[w_(e),jd(e)]}function bl(){return bl=Object.assign?Object.assign.bind():function(e){for(var t=1;tnull,C_=!1;function __(e){if(e.sheet)return e.sheet;for(var t=0;t0?Fe(Ho,--lt):0,Fo--,ke===10&&(Fo=1,Zl--),ke}function pt(){return ke=lt2||ls(ke)>3?"":" "}function L_(e,t){for(;--t&&pt()&&!(ke<48||ke>102||ke>57&&ke<65||ke>70&&ke<97););return _s(e,za()+(t<6&&rn()==32&&pt()==32))}function Vd(e){for(;pt();)switch(ke){case e:return lt;case 34:case 39:e!==34&&e!==39&&Vd(ke);break;case 40:e===41&&Vd(e);break;case 92:pt();break}return lt}function B_(e,t){for(;pt()&&e+ke!==57;)if(e+ke===84&&rn()===47)break;return"/*"+_s(t,lt-1)+"*"+Ql(e===47?e:pt())}function V_(e){for(;!ls(rn());)pt();return _s(e,lt)}function O_(e){return O1(Da("",null,null,null,[""],e=V1(e),0,[0],e))}function Da(e,t,n,r,o,i,s,a,l){for(var u=0,c=0,d=s,p=0,v=0,b=0,y=1,S=1,f=1,h=0,m="",x=o,C=i,A=r,$=m;S;)switch(b=h,h=pt()){case 40:if(b!=108&&Fe($,d-1)==58){Bd($+=X(Ma(h),"&","&\f"),"&\f")!=-1&&(f=-1);break}case 34:case 39:case 91:$+=Ma(h);break;case 9:case 10:case 13:case 32:$+=j_(b);break;case 92:$+=L_(za()-1,7);continue;case 47:switch(rn()){case 42:case 47:sa(N_(B_(pt(),za()),t,n),l);break;default:$+="/"}break;case 123*y:a[u++]=Xt($)*f;case 125*y:case 59:case 0:switch(h){case 0:case 125:S=0;case 59+c:f==-1&&($=X($,/\f/g,"")),v>0&&Xt($)-d&&sa(v>32?Zm($+";",r,n,d-1):Zm(X($," ","")+";",r,n,d-2),l);break;case 59:$+=";";default:if(sa(A=Qm($,t,n,u,c,o,a,m,x=[],C=[],d),i),h===123)if(c===0)Da($,t,A,A,x,i,d,a,C);else switch(p===99&&Fe($,3)===110?100:p){case 100:case 108:case 109:case 115:Da(e,A,A,r&&sa(Qm(e,A,A,0,0,o,a,m,o,x=[],d),C),o,C,d,a,r?x:C);break;default:Da($,A,A,A,[""],C,0,a,C)}}u=c=v=0,y=f=1,m=$="",d=s;break;case 58:d=1+Xt($),v=b;default:if(y<1){if(h==123)--y;else if(h==125&&y++==0&&F_()==125)continue}switch($+=Ql(h),h*y){case 38:f=c>0?1:($+="\f",-1);break;case 44:a[u++]=(Xt($)-1)*f,f=1;break;case 64:rn()===45&&($+=Ma(pt())),p=rn(),c=d=Xt(m=$+=V_(za())),h++;break;case 45:b===45&&Xt($)==2&&(y=0)}}return i}function Qm(e,t,n,r,o,i,s,a,l,u,c){for(var d=o-1,p=o===0?i:[""],v=mh(p),b=0,y=0,S=0;b0?p[f]+" "+h:X(h,/&\f/g,p[f])))&&(l[S++]=m);return Jl(e,t,n,o===0?hh:a,l,u,c)}function N_(e,t,n){return Jl(e,t,n,F1,Ql(I_()),as(e,2,-2),0)}function Zm(e,t,n,r){return Jl(e,t,n,ph,as(e,0,r),as(e,r+1,-1),r)}function Co(e,t){for(var n="",r=mh(e),o=0;o6)switch(Fe(e,t+1)){case 109:if(Fe(e,t+4)!==45)break;case 102:return X(e,/(.+:)(.+)-([^]+)/,"$1"+Y+"$2-$3$1"+Sl+(Fe(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~Bd(e,"stretch")?W1(X(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(Fe(e,t+1)!==115)break;case 6444:switch(Fe(e,Xt(e)-3-(~Bd(e,"!important")&&10))){case 107:return X(e,":",":"+Y)+e;case 101:return X(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Y+(Fe(e,14)===45?"inline-":"")+"box$3$1"+Y+"$2$3$1"+Oe+"$2box$3")+e}break;case 5936:switch(Fe(e,t+11)){case 114:return Y+e+Oe+X(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Y+e+Oe+X(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Y+e+Oe+X(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return Y+e+Oe+e+e}return e}var Q_=function(t,n,r,o){if(t.length>-1&&!t.return)switch(t.type){case ph:t.return=W1(t.value,t.length);break;case j1:return Co([li(t,{value:X(t.value,"@","@"+Y)})],o);case hh:if(t.length)return D_(t.props,function(i){switch(M_(i,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Co([li(t,{props:[X(i,/:(read-\w+)/,":"+Sl+"$1")]})],o);case"::placeholder":return Co([li(t,{props:[X(i,/:(plac\w+)/,":"+Y+"input-$1")]}),li(t,{props:[X(i,/:(plac\w+)/,":"+Sl+"$1")]}),li(t,{props:[X(i,/:(plac\w+)/,Oe+"input-$1")]})],o)}return""})}},Z_=[Q_],J_=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 S=y.getAttribute("data-emotion");S.indexOf(" ")!==-1&&(document.head.appendChild(y),y.setAttribute("data-s",""))})}var o=t.stylisPlugins||Z_,i={},s,a=[];s=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(y){for(var S=y.getAttribute("data-emotion").split(" "),f=1;f=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 f2={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,scale: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},h2=!1,p2=/[A-Z]|^ms/g,m2=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Z1=function(t){return t.charCodeAt(1)===45},t0=function(t){return t!=null&&typeof t!="boolean"},fc=U1(function(e){return Z1(e)?e:e.replace(p2,"-$&").toLowerCase()}),n0=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(m2,function(r,o,i){return qt={name:o,styles:i,next:qt},o})}return f2[t]!==1&&!Z1(t)&&typeof n=="number"&&n!==0?n+"px":n},g2="Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.";function us(e,t,n){if(n==null)return"";var r=n;if(r.__emotion_styles!==void 0)return r;switch(typeof n){case"boolean":return"";case"object":{var o=n;if(o.anim===1)return qt={name:o.name,styles:o.styles,next:qt},o.name;var i=n;if(i.styles!==void 0){var s=i.next;if(s!==void 0)for(;s!==void 0;)qt={name:s.name,styles:s.styles,next:qt},s=s.next;var a=i.styles+";";return a}return v2(e,t,n)}case"function":{if(e!==void 0){var l=qt,u=n(e);return qt=l,us(e,t,u)}break}}var c=n;if(t==null)return c;var d=t[c];return d!==void 0?d:c}function v2(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o=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 d2={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,scale: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},f2=!1,h2=/[A-Z]|^ms/g,p2=/_EMO_([^_]+?)_([^]*?)_EMO_/g,q1=function(t){return t.charCodeAt(1)===45},t0=function(t){return t!=null&&typeof t!="boolean"},fc=N1(function(e){return q1(e)?e:e.replace(h2,"-$&").toLowerCase()}),n0=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(p2,function(r,o,i){return qt={name:o,styles:i,next:qt},o})}return d2[t]!==1&&!q1(t)&&typeof n=="number"&&n!==0?n+"px":n},m2="Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.";function us(e,t,n){if(n==null)return"";var r=n;if(r.__emotion_styles!==void 0)return r;switch(typeof n){case"boolean":return"";case"object":{var o=n;if(o.anim===1)return qt={name:o.name,styles:o.styles,next:qt},o.name;var i=n;if(i.styles!==void 0){var s=i.next;if(s!==void 0)for(;s!==void 0;)qt={name:s.name,styles:s.styles,next:qt},s=s.next;var a=i.styles+";";return a}return g2(e,t,n)}case"function":{if(e!==void 0){var l=qt,u=n(e);return qt=l,us(e,t,u)}break}}var c=n;if(t==null)return c;var d=t[c];return d!==void 0?d:c}function g2(e,t,n){var r="";if(Array.isArray(n))for(var o=0;oT.jsx(cu,{styles:rb}),T2=({scope:e=""})=>T.jsx(cu,{styles:nb` +`,C2=()=>T.jsx(cu,{styles:tb}),_2=({scope:e=""})=>T.jsx(cu,{styles:eb` html { line-height: 1.5; -webkit-text-size-adjust: 100%; @@ -322,10 +322,10 @@ Error generating stack: `+i.message+` display: none; } - ${rb} - `});function P2(e,t){return`${e} returned \`undefined\`. Seems you forgot to wrap component within ${t}`}function lr(e={}){const{name:t,strict:n=!0,hookName:r="useContext",providerName:o="Provider",errorMessage:i,defaultValue:s}=e,a=_.createContext(s);a.displayName=t;function l(){var u;const c=_.useContext(a);if(!c&&n){const d=new Error(i??P2(r,o));throw d.name="ContextError",(u=Error.captureStackTrace)==null||u.call(Error,d,l),d}return c}return[a.Provider,l,a]}var[E2,$2]=lr({strict:!1,name:"PortalManagerContext"});function ob(e){const{children:t,zIndex:n}=e;return T.jsx(E2,{value:{zIndex:n},children:t})}ob.displayName="PortalManager";var xl=globalThis!=null&&globalThis.document?_.useLayoutEffect:_.useEffect,[ib,A2]=lr({strict:!1,name:"PortalContext"}),Sh="chakra-portal",R2=".chakra-portal",z2=e=>T.jsx("div",{className:"chakra-portal-zIndex",style:{position:"absolute",zIndex:e.zIndex,top:0,left:0,right:0},children:e.children}),M2=e=>{const{appendToParentPortal:t,children:n}=e,[r,o]=_.useState(null),i=_.useRef(null),[,s]=_.useState({});_.useEffect(()=>s({}),[]);const a=A2(),l=$2();xl(()=>{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=Sh,d.appendChild(i.current),s({});const p=i.current;return()=>{d.contains(p)&&d.removeChild(p)}},[r]);const u=l!=null&&l.zIndex?T.jsx(z2,{zIndex:l==null?void 0:l.zIndex,children:n}):n;return i.current?dh.createPortal(T.jsx(ib,{value:i.current,children:u}),i.current):T.jsx("span",{ref:c=>{c&&o(c)}})},D2=e=>{const{children:t,containerRef:n,appendToParentPortal:r}=e,o=n.current,i=o??(typeof window<"u"?document.body:void 0),s=_.useMemo(()=>{const l=o==null?void 0:o.ownerDocument.createElement("div");return l&&(l.className=Sh),l},[o]),[,a]=_.useState({});return xl(()=>a({}),[]),xl(()=>{if(!(!s||!i))return i.appendChild(s),()=>{i.removeChild(s)}},[s,i]),i&&s?dh.createPortal(T.jsx(ib,{value:r?s:null,children:t}),s):null};function du(e){const t={appendToParentPortal:!0,...e},{containerRef:n,...r}=t;return n?T.jsx(D2,{containerRef:n,...r}):T.jsx(M2,{...r})}du.className=Sh;du.selector=R2;du.displayName="Portal";function I2(){const e=_.useContext(cs);if(!e)throw Error("useTheme: `theme` is undefined. Seems you forgot to wrap your app in `` or ``");return e}var xh=_.createContext({});xh.displayName="ColorModeContext";function fu(){const e=_.useContext(xh);if(e===void 0)throw new Error("useColorMode must be used within a ColorModeProvider");return e}var aa={light:"chakra-ui-light",dark:"chakra-ui-dark"};function F2(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?aa.dark:aa.light),document.body.classList.remove(r?aa.light:aa.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 j2="chakra-ui-color-mode";function L2(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 B2=L2(j2),i0=()=>{};function s0(e,t){return e.type==="cookie"&&e.ssr?e.get(t):t}function sb(e){const{value:t,children:n,options:{useSystemColorMode:r,initialColorMode:o,disableTransitionOnChange:i}={},colorModeManager:s=B2}=e,a=o==="dark"?"dark":"light",[l,u]=_.useState(()=>s0(s,a)),[c,d]=_.useState(()=>s0(s)),{getSystemTheme:p,setClassName:v,setDataset:b,addListener:y}=_.useMemo(()=>F2({preventTransition:i}),[i]),S=o==="system"&&!l?c:l,f=_.useCallback(x=>{const C=x==="system"?p():x;u(C),v(C==="dark"),b(C),s.set(C)},[s,p,v,b]);xl(()=>{o==="system"&&d(p())},[]),_.useEffect(()=>{const x=s.get();if(x){f(x);return}if(o==="system"){f("system");return}f(a)},[s,a,o,f]);const h=_.useCallback(()=>{f(S==="dark"?"light":"dark")},[S,f]);_.useEffect(()=>{if(r)return y(f)},[r,y,f]);const m=_.useMemo(()=>({colorMode:t??S,toggleColorMode:t?i0:h,setColorMode:t?i0:f,forced:t!==void 0}),[S,h,f,t]);return T.jsx(xh.Provider,{value:m,children:n})}sb.displayName="ColorModeProvider";var V2=new Set(["dark","light","system"]);function O2(e){let t=e;return V2.has(t)||(t="light"),t}function N2(e={}){const{initialColorMode:t="light",type:n="localStorage",storageKey:r="chakra-ui-color-mode"}=e,o=O2(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){}})(); + ${tb} + `});function T2(e,t){return`${e} returned \`undefined\`. Seems you forgot to wrap component within ${t}`}function lr(e={}){const{name:t,strict:n=!0,hookName:r="useContext",providerName:o="Provider",errorMessage:i,defaultValue:s}=e,a=_.createContext(s);a.displayName=t;function l(){var u;const c=_.useContext(a);if(!c&&n){const d=new Error(i??T2(r,o));throw d.name="ContextError",(u=Error.captureStackTrace)==null||u.call(Error,d,l),d}return c}return[a.Provider,l,a]}var[P2,E2]=lr({strict:!1,name:"PortalManagerContext"});function nb(e){const{children:t,zIndex:n}=e;return T.jsx(P2,{value:{zIndex:n},children:t})}nb.displayName="PortalManager";var xl=globalThis!=null&&globalThis.document?_.useLayoutEffect:_.useEffect,[rb,$2]=lr({strict:!1,name:"PortalContext"}),Sh="chakra-portal",A2=".chakra-portal",R2=e=>T.jsx("div",{className:"chakra-portal-zIndex",style:{position:"absolute",zIndex:e.zIndex,top:0,left:0,right:0},children:e.children}),z2=e=>{const{appendToParentPortal:t,children:n}=e,[r,o]=_.useState(null),i=_.useRef(null),[,s]=_.useState({});_.useEffect(()=>s({}),[]);const a=$2(),l=E2();xl(()=>{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=Sh,d.appendChild(i.current),s({});const p=i.current;return()=>{d.contains(p)&&d.removeChild(p)}},[r]);const u=l!=null&&l.zIndex?T.jsx(R2,{zIndex:l==null?void 0:l.zIndex,children:n}):n;return i.current?dh.createPortal(T.jsx(rb,{value:i.current,children:u}),i.current):T.jsx("span",{ref:c=>{c&&o(c)}})},M2=e=>{const{children:t,containerRef:n,appendToParentPortal:r}=e,o=n.current,i=o??(typeof window<"u"?document.body:void 0),s=_.useMemo(()=>{const l=o==null?void 0:o.ownerDocument.createElement("div");return l&&(l.className=Sh),l},[o]),[,a]=_.useState({});return xl(()=>a({}),[]),xl(()=>{if(!(!s||!i))return i.appendChild(s),()=>{i.removeChild(s)}},[s,i]),i&&s?dh.createPortal(T.jsx(rb,{value:r?s:null,children:t}),s):null};function du(e){const t={appendToParentPortal:!0,...e},{containerRef:n,...r}=t;return n?T.jsx(M2,{containerRef:n,...r}):T.jsx(z2,{...r})}du.className=Sh;du.selector=A2;du.displayName="Portal";function D2(){const e=_.useContext(cs);if(!e)throw Error("useTheme: `theme` is undefined. Seems you forgot to wrap your app in `` or ``");return e}var xh=_.createContext({});xh.displayName="ColorModeContext";function fu(){const e=_.useContext(xh);if(e===void 0)throw new Error("useColorMode must be used within a ColorModeProvider");return e}var aa={light:"chakra-ui-light",dark:"chakra-ui-dark"};function I2(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?aa.dark:aa.light),document.body.classList.remove(r?aa.light:aa.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 F2="chakra-ui-color-mode";function j2(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 L2=j2(F2),i0=()=>{};function s0(e,t){return e.type==="cookie"&&e.ssr?e.get(t):t}function ob(e){const{value:t,children:n,options:{useSystemColorMode:r,initialColorMode:o,disableTransitionOnChange:i}={},colorModeManager:s=L2}=e,a=o==="dark"?"dark":"light",[l,u]=_.useState(()=>s0(s,a)),[c,d]=_.useState(()=>s0(s)),{getSystemTheme:p,setClassName:v,setDataset:b,addListener:y}=_.useMemo(()=>I2({preventTransition:i}),[i]),S=o==="system"&&!l?c:l,f=_.useCallback(x=>{const C=x==="system"?p():x;u(C),v(C==="dark"),b(C),s.set(C)},[s,p,v,b]);xl(()=>{o==="system"&&d(p())},[]),_.useEffect(()=>{const x=s.get();if(x){f(x);return}if(o==="system"){f("system");return}f(a)},[s,a,o,f]);const h=_.useCallback(()=>{f(S==="dark"?"light":"dark")},[S,f]);_.useEffect(()=>{if(r)return y(f)},[r,y,f]);const m=_.useMemo(()=>({colorMode:t??S,toggleColorMode:t?i0:h,setColorMode:t?i0:f,forced:t!==void 0}),[S,h,f,t]);return T.jsx(xh.Provider,{value:m,children:n})}ob.displayName="ColorModeProvider";var B2=new Set(["dark","light","system"]);function V2(e){let t=e;return B2.has(t)||(t="light"),t}function O2(e={}){const{initialColorMode:t="light",type:n="localStorage",storageKey:r="chakra-ui-color-mode"}=e,o=V2(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 W2(e={}){const{nonce:t}=e;return T.jsx("script",{id:"chakra-script",nonce:t,dangerouslySetInnerHTML:{__html:N2(e)}})}function ab(){const e=fu(),t=I2();return{...e,theme:t}}var Ge=(...e)=>e.filter(Boolean).join(" ");function Ot(e){const t=typeof e;return e!=null&&(t==="object"||t==="function")&&!Array.isArray(e)}function Jt(e,...t){return U2(e)?e(...t):e}var U2=e=>typeof e=="function",Gt=e=>e?"":void 0,hc=e=>e?!0:void 0;function a0(...e){return function(n){e.some(r=>(r==null||r(n),n==null?void 0:n.defaultPrevented))}}var wl={exports:{}};wl.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]",p="[object Error]",v="[object Function]",b="[object GeneratorFunction]",y="[object Map]",S="[object Number]",f="[object Null]",h="[object Object]",m="[object Proxy]",x="[object RegExp]",C="[object Set]",A="[object String]",$="[object Undefined]",P="[object WeakMap]",D="[object ArrayBuffer]",z="[object DataView]",ne="[object Float32Array]",Ye="[object Float64Array]",an="[object Int8Array]",dr="[object Int16Array]",_e="[object Int32Array]",Xe="[object Uint8Array]",ln="[object Uint8ClampedArray]",M="[object Uint16Array]",V="[object Uint32Array]",O=/[\\^$.*+?()[\]{}|]/g,he=/^\[object .+?Constructor\]$/,we=/^(?:0|[1-9]\d*)$/,Z={};Z[ne]=Z[Ye]=Z[an]=Z[dr]=Z[_e]=Z[Xe]=Z[ln]=Z[M]=Z[V]=!0,Z[a]=Z[l]=Z[D]=Z[c]=Z[z]=Z[d]=Z[p]=Z[v]=Z[y]=Z[S]=Z[h]=Z[x]=Z[C]=Z[A]=Z[P]=!1;var Wt=typeof Vs=="object"&&Vs&&Vs.Object===Object&&Vs,Yo=typeof self=="object"&&self&&self.Object===Object&&self,ut=Wt||Yo||Function("return this")(),fr=t&&!t.nodeType&&t,Xo=fr&&!0&&e&&!e.nodeType&&e,gp=Xo&&Xo.exports===fr,_u=gp&&Wt.process,vp=function(){try{var g=Xo&&Xo.require&&Xo.require("util").types;return g||_u&&_u.binding&&_u.binding("util")}catch{}}(),yp=vp&&vp.isTypedArray;function kx(g,k,E){switch(E.length){case 0:return g.call(k);case 1:return g.call(k,E[0]);case 2:return g.call(k,E[0],E[1]);case 3:return g.call(k,E[0],E[1],E[2])}return g.apply(k,E)}function Cx(g,k){for(var E=-1,F=Array(g);++E-1}function Kx(g,k){var E=this.__data__,F=Fs(E,g);return F<0?(++this.size,E.push([g,k])):E[F][1]=k,this}un.prototype.clear=Nx,un.prototype.delete=Wx,un.prototype.get=Ux,un.prototype.has=Hx,un.prototype.set=Kx;function Wr(g){var k=-1,E=g==null?0:g.length;for(this.clear();++k1?E[U-1]:void 0,ce=U>2?E[2]:void 0;for(re=g.length>3&&typeof re=="function"?(U--,re):void 0,ce&&xw(E[0],E[1],ce)&&(re=U<3?void 0:re,U=1),k=Object(k);++F-1&&g%1==0&&g0){if(++k>=o)return arguments[0]}else k=0;return g.apply(void 0,arguments)}}function $w(g){if(g!=null){try{return Ms.call(g)}catch{}try{return g+""}catch{}}return""}function Bs(g,k){return g===k||g!==g&&k!==k}var Ru=Pp(function(){return arguments}())?Pp:function(g){return Qo(g)&&Dn.call(g,"callee")&&!zx.call(g,"callee")},zu=Array.isArray;function Mu(g){return g!=null&&zp(g.length)&&!Du(g)}function Aw(g){return Qo(g)&&Mu(g)}var Rp=Dx||Iw;function Du(g){if(!mr(g))return!1;var k=js(g);return k==v||k==b||k==u||k==m}function zp(g){return typeof g=="number"&&g>-1&&g%1==0&&g<=s}function mr(g){var k=typeof g;return g!=null&&(k=="object"||k=="function")}function Qo(g){return g!=null&&typeof g=="object"}function Rw(g){if(!Qo(g)||js(g)!=h)return!1;var k=kp(g);if(k===null)return!0;var E=Dn.call(k,"constructor")&&k.constructor;return typeof E=="function"&&E instanceof E&&Ms.call(E)==Ax}var Mp=yp?_x(yp):aw;function zw(g){return gw(g,Dp(g))}function Dp(g){return Mu(g)?rw(g):lw(g)}var Mw=vw(function(g,k,E,F){Ep(g,k,E,F)});function Dw(g){return function(){return g}}function Ip(g){return g}function Iw(){return!1}e.exports=Mw})(wl,wl.exports);var H2=wl.exports;const en=gf(H2);var K2=e=>/!(important)?$/.test(e),l0=e=>typeof e=="string"?e.replace(/!(important)?$/,"").trim():e,G2=(e,t)=>n=>{const r=String(t),o=K2(r),i=l0(r),s=e?`${e}.${i}`:i;let a=Ot(n.__cssMap)&&s in n.__cssMap?n.__cssMap[s].varRef:t;return a=l0(a),o?`${a} !important`:a};function wh(e){const{scale:t,transform:n,compose:r}=e;return(i,s)=>{var a;const l=G2(t,i)(s);let u=(a=n==null?void 0:n(l,s))!=null?a:l;return r&&(u=r(u,s)),u}}var la=(...e)=>t=>e.reduce((n,r)=>r(n),t);function xt(e,t){return n=>{const r={property:n,scale:e};return r.transform=wh({scale:e,transform:t}),r}}var Y2=({rtl:e,ltr:t})=>n=>n.direction==="rtl"?e:t;function X2(e){const{property:t,scale:n,transform:r}=e;return{scale:n,property:Y2(t),transform:n?wh({scale:n,compose:r}):r}}var lb=["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 q2(){return["translateX(var(--chakra-translate-x, 0))","translateY(var(--chakra-translate-y, 0))",...lb].join(" ")}function Q2(){return["translate3d(var(--chakra-translate-x, 0), var(--chakra-translate-y, 0), 0)",...lb].join(" ")}var Z2={"--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(" ")},J2={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 eT(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 tT={"row-reverse":{space:"--chakra-space-x-reverse",divide:"--chakra-divide-x-reverse"},"column-reverse":{space:"--chakra-space-y-reverse",divide:"--chakra-divide-y-reverse"}},Od={"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"},nT=new Set(Object.values(Od)),Nd=new Set(["none","-moz-initial","inherit","initial","revert","unset"]),rT=e=>e.trim();function oT(e,t){if(e==null||Nd.has(e))return e;if(!(Wd(e)||Nd.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(rT).filter(Boolean);if((u==null?void 0:u.length)===0)return e;const c=l in Od?Od[l]:l;u.unshift(c);const d=u.map(p=>{if(nT.has(p))return p;const v=p.indexOf(" "),[b,y]=v!==-1?[p.substr(0,v),p.substr(v+1)]:[p],S=Wd(y)?y:y&&y.split(" "),f=`colors.${b}`,h=f in t.__cssMap?t.__cssMap[f].varRef:b;return S?[h,...Array.isArray(S)?S:[S]].join(" "):h});return`${a}(${d.join(", ")})`}var Wd=e=>typeof e=="string"&&e.includes("(")&&e.includes(")"),iT=(e,t)=>oT(e,t??{});function sT(e){return/^var\(--.+\)$/.test(e)}var aT=e=>{const t=parseFloat(e.toString()),n=e.toString().replace(String(t),"");return{unitless:!n,value:t,unit:n}},Ht=e=>t=>`${e}(${t})`,W={filter(e){return e!=="auto"?e:Z2},backdropFilter(e){return e!=="auto"?e:J2},ring(e){return eT(W.px(e))},bgClip(e){return e==="text"?{color:"transparent",backgroundClip:"text"}:{backgroundClip:e}},transform(e){return e==="auto"?q2():e==="auto-gpu"?Q2():e},vh(e){return e==="$100vh"?"var(--chakra-vh)":e},px(e){if(e==null)return e;const{unitless:t}=aT(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(sT(e)||e==null)return e;const t=typeof e=="string"&&!e.endsWith("deg");return typeof e=="number"||t?`${e}deg`:e},gradient:iT,blur:Ht("blur"),opacity:Ht("opacity"),brightness:Ht("brightness"),contrast:Ht("contrast"),dropShadow:Ht("drop-shadow"),grayscale:Ht("grayscale"),hueRotate:e=>Ht("hue-rotate")(W.degree(e)),invert:Ht("invert"),saturate:Ht("saturate"),sepia:Ht("sepia"),bgImage(e){return e==null||Wd(e)||Nd.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=tT[e])!=null?t:{},o={flexDirection:e};return n&&(o[n]=1),r&&(o[r]=1),o}},w={borderWidths:xt("borderWidths"),borderStyles:xt("borderStyles"),colors:xt("colors"),borders:xt("borders"),gradients:xt("gradients",W.gradient),radii:xt("radii",W.px),space:xt("space",la(W.vh,W.px)),spaceT:xt("space",la(W.vh,W.px)),degreeT(e){return{property:e,transform:W.degree}},prop(e,t,n){return{property:e,scale:t,...t&&{transform:wh({scale:t,transform:n})}}},propT(e,t){return{property:e,transform:t}},sizes:xt("sizes",la(W.vh,W.px)),sizesT:xt("sizes",la(W.vh,W.fraction)),shadows:xt("shadows"),logical:X2,blur:xt("blur",W.blur)},Ia={background:w.colors("background"),backgroundColor:w.colors("backgroundColor"),backgroundImage:w.gradients("backgroundImage"),backgroundSize:!0,backgroundPosition:!0,backgroundRepeat:!0,backgroundAttachment:!0,backgroundClip:{transform:W.bgClip},bgSize:w.prop("backgroundSize"),bgPosition:w.prop("backgroundPosition"),bg:w.colors("background"),bgColor:w.colors("backgroundColor"),bgPos:w.prop("backgroundPosition"),bgRepeat:w.prop("backgroundRepeat"),bgAttachment:w.prop("backgroundAttachment"),bgGradient:w.gradients("backgroundImage"),bgClip:{transform:W.bgClip}};Object.assign(Ia,{bgImage:Ia.backgroundImage,bgImg:Ia.backgroundImage});var G={border:w.borders("border"),borderWidth:w.borderWidths("borderWidth"),borderStyle:w.borderStyles("borderStyle"),borderColor:w.colors("borderColor"),borderRadius:w.radii("borderRadius"),borderTop:w.borders("borderTop"),borderBlockStart:w.borders("borderBlockStart"),borderTopLeftRadius:w.radii("borderTopLeftRadius"),borderStartStartRadius:w.logical({scale:"radii",property:{ltr:"borderTopLeftRadius",rtl:"borderTopRightRadius"}}),borderEndStartRadius:w.logical({scale:"radii",property:{ltr:"borderBottomLeftRadius",rtl:"borderBottomRightRadius"}}),borderTopRightRadius:w.radii("borderTopRightRadius"),borderStartEndRadius:w.logical({scale:"radii",property:{ltr:"borderTopRightRadius",rtl:"borderTopLeftRadius"}}),borderEndEndRadius:w.logical({scale:"radii",property:{ltr:"borderBottomRightRadius",rtl:"borderBottomLeftRadius"}}),borderRight:w.borders("borderRight"),borderInlineEnd:w.borders("borderInlineEnd"),borderBottom:w.borders("borderBottom"),borderBlockEnd:w.borders("borderBlockEnd"),borderBottomLeftRadius:w.radii("borderBottomLeftRadius"),borderBottomRightRadius:w.radii("borderBottomRightRadius"),borderLeft:w.borders("borderLeft"),borderInlineStart:{property:"borderInlineStart",scale:"borders"},borderInlineStartRadius:w.logical({scale:"radii",property:{ltr:["borderTopLeftRadius","borderBottomLeftRadius"],rtl:["borderTopRightRadius","borderBottomRightRadius"]}}),borderInlineEndRadius:w.logical({scale:"radii",property:{ltr:["borderTopRightRadius","borderBottomRightRadius"],rtl:["borderTopLeftRadius","borderBottomLeftRadius"]}}),borderX:w.borders(["borderLeft","borderRight"]),borderInline:w.borders("borderInline"),borderY:w.borders(["borderTop","borderBottom"]),borderBlock:w.borders("borderBlock"),borderTopWidth:w.borderWidths("borderTopWidth"),borderBlockStartWidth:w.borderWidths("borderBlockStartWidth"),borderTopColor:w.colors("borderTopColor"),borderBlockStartColor:w.colors("borderBlockStartColor"),borderTopStyle:w.borderStyles("borderTopStyle"),borderBlockStartStyle:w.borderStyles("borderBlockStartStyle"),borderBottomWidth:w.borderWidths("borderBottomWidth"),borderBlockEndWidth:w.borderWidths("borderBlockEndWidth"),borderBottomColor:w.colors("borderBottomColor"),borderBlockEndColor:w.colors("borderBlockEndColor"),borderBottomStyle:w.borderStyles("borderBottomStyle"),borderBlockEndStyle:w.borderStyles("borderBlockEndStyle"),borderLeftWidth:w.borderWidths("borderLeftWidth"),borderInlineStartWidth:w.borderWidths("borderInlineStartWidth"),borderLeftColor:w.colors("borderLeftColor"),borderInlineStartColor:w.colors("borderInlineStartColor"),borderLeftStyle:w.borderStyles("borderLeftStyle"),borderInlineStartStyle:w.borderStyles("borderInlineStartStyle"),borderRightWidth:w.borderWidths("borderRightWidth"),borderInlineEndWidth:w.borderWidths("borderInlineEndWidth"),borderRightColor:w.colors("borderRightColor"),borderInlineEndColor:w.colors("borderInlineEndColor"),borderRightStyle:w.borderStyles("borderRightStyle"),borderInlineEndStyle:w.borderStyles("borderInlineEndStyle"),borderTopRadius:w.radii(["borderTopLeftRadius","borderTopRightRadius"]),borderBottomRadius:w.radii(["borderBottomLeftRadius","borderBottomRightRadius"]),borderLeftRadius:w.radii(["borderTopLeftRadius","borderBottomLeftRadius"]),borderRightRadius:w.radii(["borderTopRightRadius","borderBottomRightRadius"])};Object.assign(G,{rounded:G.borderRadius,roundedTop:G.borderTopRadius,roundedTopLeft:G.borderTopLeftRadius,roundedTopRight:G.borderTopRightRadius,roundedTopStart:G.borderStartStartRadius,roundedTopEnd:G.borderStartEndRadius,roundedBottom:G.borderBottomRadius,roundedBottomLeft:G.borderBottomLeftRadius,roundedBottomRight:G.borderBottomRightRadius,roundedBottomStart:G.borderEndStartRadius,roundedBottomEnd:G.borderEndEndRadius,roundedLeft:G.borderLeftRadius,roundedRight:G.borderRightRadius,roundedStart:G.borderInlineStartRadius,roundedEnd:G.borderInlineEndRadius,borderStart:G.borderInlineStart,borderEnd:G.borderInlineEnd,borderTopStartRadius:G.borderStartStartRadius,borderTopEndRadius:G.borderStartEndRadius,borderBottomStartRadius:G.borderEndStartRadius,borderBottomEndRadius:G.borderEndEndRadius,borderStartRadius:G.borderInlineStartRadius,borderEndRadius:G.borderInlineEndRadius,borderStartWidth:G.borderInlineStartWidth,borderEndWidth:G.borderInlineEndWidth,borderStartColor:G.borderInlineStartColor,borderEndColor:G.borderInlineEndColor,borderStartStyle:G.borderInlineStartStyle,borderEndStyle:G.borderInlineEndStyle});var lT={color:w.colors("color"),textColor:w.colors("color"),fill:w.colors("fill"),stroke:w.colors("stroke")},Ud={boxShadow:w.shadows("boxShadow"),mixBlendMode:!0,blendMode:w.prop("mixBlendMode"),backgroundBlendMode:!0,bgBlendMode:w.prop("backgroundBlendMode"),opacity:!0};Object.assign(Ud,{shadow:Ud.boxShadow});var uT={filter:{transform:W.filter},blur:w.blur("--chakra-blur"),brightness:w.propT("--chakra-brightness",W.brightness),contrast:w.propT("--chakra-contrast",W.contrast),hueRotate:w.propT("--chakra-hue-rotate",W.hueRotate),invert:w.propT("--chakra-invert",W.invert),saturate:w.propT("--chakra-saturate",W.saturate),dropShadow:w.propT("--chakra-drop-shadow",W.dropShadow),backdropFilter:{transform:W.backdropFilter},backdropBlur:w.blur("--chakra-backdrop-blur"),backdropBrightness:w.propT("--chakra-backdrop-brightness",W.brightness),backdropContrast:w.propT("--chakra-backdrop-contrast",W.contrast),backdropHueRotate:w.propT("--chakra-backdrop-hue-rotate",W.hueRotate),backdropInvert:w.propT("--chakra-backdrop-invert",W.invert),backdropSaturate:w.propT("--chakra-backdrop-saturate",W.saturate)},kl={alignItems:!0,alignContent:!0,justifyItems:!0,justifyContent:!0,flexWrap:!0,flexDirection:{transform:W.flexDirection},flex:!0,flexFlow:!0,flexGrow:!0,flexShrink:!0,flexBasis:w.sizes("flexBasis"),justifySelf:!0,alignSelf:!0,order:!0,placeItems:!0,placeContent:!0,placeSelf:!0,gap:w.space("gap"),rowGap:w.space("rowGap"),columnGap:w.space("columnGap")};Object.assign(kl,{flexDir:kl.flexDirection});var ub={gridGap:w.space("gridGap"),gridColumnGap:w.space("gridColumnGap"),gridRowGap:w.space("gridRowGap"),gridColumn:!0,gridRow:!0,gridAutoFlow:!0,gridAutoColumns:!0,gridColumnStart:!0,gridColumnEnd:!0,gridRowStart:!0,gridRowEnd:!0,gridAutoRows:!0,gridTemplate:!0,gridTemplateColumns:!0,gridTemplateRows:!0,gridTemplateAreas:!0,gridArea:!0},cT={appearance:!0,cursor:!0,resize:!0,userSelect:!0,pointerEvents:!0,outline:{transform:W.outline},outlineOffset:!0,outlineColor:w.colors("outlineColor")},kt={width:w.sizesT("width"),inlineSize:w.sizesT("inlineSize"),height:w.sizes("height"),blockSize:w.sizes("blockSize"),boxSize:w.sizes(["width","height"]),minWidth:w.sizes("minWidth"),minInlineSize:w.sizes("minInlineSize"),minHeight:w.sizes("minHeight"),minBlockSize:w.sizes("minBlockSize"),maxWidth:w.sizes("maxWidth"),maxInlineSize:w.sizes("maxInlineSize"),maxHeight:w.sizes("maxHeight"),maxBlockSize:w.sizes("maxBlockSize"),overflow:!0,overflowX:!0,overflowY:!0,overscrollBehavior:!0,overscrollBehaviorX:!0,overscrollBehaviorY:!0,display:!0,aspectRatio:!0,hideFrom:{scale:"breakpoints",transform:(e,t)=>{var 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:w.propT("float",W.float),objectFit:!0,objectPosition:!0,visibility:!0,isolation:!0};Object.assign(kt,{w:kt.width,h:kt.height,minW:kt.minWidth,maxW:kt.maxWidth,minH:kt.minHeight,maxH:kt.maxHeight,overscroll:kt.overscrollBehavior,overscrollX:kt.overscrollBehaviorX,overscrollY:kt.overscrollBehaviorY});var dT={listStyleType:!0,listStylePosition:!0,listStylePos:w.prop("listStylePosition"),listStyleImage:!0,listStyleImg:w.prop("listStyleImage")};function fT(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}},pT=hT(fT),mT={border:"0px",clip:"rect(0, 0, 0, 0)",width:"1px",height:"1px",margin:"-1px",padding:"0px",overflow:"hidden",whiteSpace:"nowrap",position:"absolute"},gT={position:"static",width:"auto",height:"auto",clip:"auto",padding:"0",margin:"0",overflow:"visible",whiteSpace:"normal"},pc=(e,t,n)=>{const r={},o=pT(e,t,{});for(const i in o)i in n&&n[i]!=null||(r[i]=o[i]);return r},vT={srOnly:{transform(e){return e===!0?mT:e==="focusable"?gT:{}}},layerStyle:{processResult:!0,transform:(e,t,n)=>pc(t,`layerStyles.${e}`,n)},textStyle:{processResult:!0,transform:(e,t,n)=>pc(t,`textStyles.${e}`,n)},apply:{processResult:!0,transform:(e,t,n)=>pc(t,e,n)}},Di={position:!0,pos:w.prop("position"),zIndex:w.prop("zIndex","zIndices"),inset:w.spaceT("inset"),insetX:w.spaceT(["left","right"]),insetInline:w.spaceT("insetInline"),insetY:w.spaceT(["top","bottom"]),insetBlock:w.spaceT("insetBlock"),top:w.spaceT("top"),insetBlockStart:w.spaceT("insetBlockStart"),bottom:w.spaceT("bottom"),insetBlockEnd:w.spaceT("insetBlockEnd"),left:w.spaceT("left"),insetInlineStart:w.logical({scale:"space",property:{ltr:"left",rtl:"right"}}),right:w.spaceT("right"),insetInlineEnd:w.logical({scale:"space",property:{ltr:"right",rtl:"left"}})};Object.assign(Di,{insetStart:Di.insetInlineStart,insetEnd:Di.insetInlineEnd});var yT={ring:{transform:W.ring},ringColor:w.colors("--chakra-ring-color"),ringOffset:w.prop("--chakra-ring-offset-width"),ringOffsetColor:w.colors("--chakra-ring-offset-color"),ringInset:w.prop("--chakra-ring-inset")},ae={margin:w.spaceT("margin"),marginTop:w.spaceT("marginTop"),marginBlockStart:w.spaceT("marginBlockStart"),marginRight:w.spaceT("marginRight"),marginInlineEnd:w.spaceT("marginInlineEnd"),marginBottom:w.spaceT("marginBottom"),marginBlockEnd:w.spaceT("marginBlockEnd"),marginLeft:w.spaceT("marginLeft"),marginInlineStart:w.spaceT("marginInlineStart"),marginX:w.spaceT(["marginInlineStart","marginInlineEnd"]),marginInline:w.spaceT("marginInline"),marginY:w.spaceT(["marginTop","marginBottom"]),marginBlock:w.spaceT("marginBlock"),padding:w.space("padding"),paddingTop:w.space("paddingTop"),paddingBlockStart:w.space("paddingBlockStart"),paddingRight:w.space("paddingRight"),paddingBottom:w.space("paddingBottom"),paddingBlockEnd:w.space("paddingBlockEnd"),paddingLeft:w.space("paddingLeft"),paddingInlineStart:w.space("paddingInlineStart"),paddingInlineEnd:w.space("paddingInlineEnd"),paddingX:w.space(["paddingInlineStart","paddingInlineEnd"]),paddingInline:w.space("paddingInline"),paddingY:w.space(["paddingTop","paddingBottom"]),paddingBlock:w.space("paddingBlock")};Object.assign(ae,{m:ae.margin,mt:ae.marginTop,mr:ae.marginRight,me:ae.marginInlineEnd,marginEnd:ae.marginInlineEnd,mb:ae.marginBottom,ml:ae.marginLeft,ms:ae.marginInlineStart,marginStart:ae.marginInlineStart,mx:ae.marginX,my:ae.marginY,p:ae.padding,pt:ae.paddingTop,py:ae.paddingY,px:ae.paddingX,pb:ae.paddingBottom,pl:ae.paddingLeft,ps:ae.paddingInlineStart,paddingStart:ae.paddingInlineStart,pr:ae.paddingRight,pe:ae.paddingInlineEnd,paddingEnd:ae.paddingInlineEnd});var bT={textDecorationColor:w.colors("textDecorationColor"),textDecoration:!0,textDecor:{property:"textDecoration"},textDecorationLine:!0,textDecorationStyle:!0,textDecorationThickness:!0,textUnderlineOffset:!0,textShadow:w.shadows("textShadow")},ST={clipPath:!0,transform:w.propT("transform",W.transform),transformOrigin:!0,translateX:w.spaceT("--chakra-translate-x"),translateY:w.spaceT("--chakra-translate-y"),skewX:w.degreeT("--chakra-skew-x"),skewY:w.degreeT("--chakra-skew-y"),scaleX:w.prop("--chakra-scale-x"),scaleY:w.prop("--chakra-scale-y"),scale:w.prop(["--chakra-scale-x","--chakra-scale-y"]),rotate:w.degreeT("--chakra-rotate")},xT={transition:!0,transitionDelay:!0,animation:!0,willChange:!0,transitionDuration:w.prop("transitionDuration","transition.duration"),transitionProperty:w.prop("transitionProperty","transition.property"),transitionTimingFunction:w.prop("transitionTimingFunction","transition.easing")},wT={fontFamily:w.prop("fontFamily","fonts"),fontSize:w.prop("fontSize","fontSizes",W.px),fontWeight:w.prop("fontWeight","fontWeights"),lineHeight:w.prop("lineHeight","lineHeights"),letterSpacing:w.prop("letterSpacing","letterSpacings"),textAlign:!0,fontStyle:!0,textIndent:!0,wordBreak:!0,overflowWrap:!0,textOverflow:!0,textTransform:!0,whiteSpace:!0,isTruncated:{transform(e){if(e===!0)return{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}}},noOfLines:{static:{overflow:"hidden",textOverflow:"ellipsis",display:"-webkit-box",WebkitBoxOrient:"vertical",WebkitLineClamp:"var(--chakra-line-clamp)"},property:"--chakra-line-clamp"}},kT={scrollBehavior:!0,scrollSnapAlign:!0,scrollSnapStop:!0,scrollSnapType:!0,scrollMargin:w.spaceT("scrollMargin"),scrollMarginTop:w.spaceT("scrollMarginTop"),scrollMarginBottom:w.spaceT("scrollMarginBottom"),scrollMarginLeft:w.spaceT("scrollMarginLeft"),scrollMarginRight:w.spaceT("scrollMarginRight"),scrollMarginX:w.spaceT(["scrollMarginLeft","scrollMarginRight"]),scrollMarginY:w.spaceT(["scrollMarginTop","scrollMarginBottom"]),scrollPadding:w.spaceT("scrollPadding"),scrollPaddingTop:w.spaceT("scrollPaddingTop"),scrollPaddingBottom:w.spaceT("scrollPaddingBottom"),scrollPaddingLeft:w.spaceT("scrollPaddingLeft"),scrollPaddingRight:w.spaceT("scrollPaddingRight"),scrollPaddingX:w.spaceT(["scrollPaddingLeft","scrollPaddingRight"]),scrollPaddingY:w.spaceT(["scrollPaddingTop","scrollPaddingBottom"])};function cb(e){return Ot(e)&&e.reference?e.reference:String(e)}var hu=(e,...t)=>t.map(cb).join(` ${e} `).replace(/calc/g,""),u0=(...e)=>`calc(${hu("+",...e)})`,c0=(...e)=>`calc(${hu("-",...e)})`,Hd=(...e)=>`calc(${hu("*",...e)})`,d0=(...e)=>`calc(${hu("/",...e)})`,f0=e=>{const t=cb(e);return t!=null&&!Number.isNaN(parseFloat(t))?String(t).startsWith("-")?String(t).slice(1):`-${t}`:Hd(t,-1)},wr=Object.assign(e=>({add:(...t)=>wr(u0(e,...t)),subtract:(...t)=>wr(c0(e,...t)),multiply:(...t)=>wr(Hd(e,...t)),divide:(...t)=>wr(d0(e,...t)),negate:()=>wr(f0(e)),toString:()=>e.toString()}),{add:u0,subtract:c0,multiply:Hd,divide:d0,negate:f0});function CT(e,t="-"){return e.replace(/\s+/g,t)}function _T(e){const t=CT(e.toString());return PT(TT(t))}function TT(e){return e.includes("\\.")?e:!Number.isInteger(parseFloat(e.toString()))?e.replace(".","\\."):e}function PT(e){return e.replace(/[!-,/:-@[-^`{-~]/g,"\\$&")}function ET(e,t=""){return[t,e].filter(Boolean).join("-")}function $T(e,t){return`var(${e}${t?`, ${t}`:""})`}function AT(e,t=""){return _T(`--${ET(e,t)}`)}function L(e,t,n){const r=AT(e,n);return{variable:r,reference:$T(r,t)}}function RT(e,t){const n={};for(const r of t){if(Array.isArray(r)){const[o,i]=r;n[o]=L(`${e}-${o}`,i);continue}n[r]=L(`${e}-${r}`)}return n}function zT(e){const t=e==null?0:e.length;return t?e[t-1]:void 0}function MT(e){const t=parseFloat(e.toString()),n=e.toString().replace(String(t),"");return{unitless:!n,value:t,unit:n}}function Kd(e){if(e==null)return e;const{unitless:t}=MT(e);return t||typeof e=="number"?`${e}px`:e}var db=(e,t)=>parseInt(e[1],10)>parseInt(t[1],10)?1:-1,kh=e=>Object.fromEntries(Object.entries(e).sort(db));function h0(e){const t=kh(e);return Object.assign(Object.values(t),t)}function DT(e){const t=Object.keys(kh(e));return new Set(t)}function p0(e){var t;if(!e)return e;e=(t=Kd(e))!=null?t:e;const n=-.02;return typeof e=="number"?`${e+n}`:e.replace(/(\d+\.?\d*)/u,r=>`${parseFloat(r)+n}`)}function vi(e,t){const n=["@media screen"];return e&&n.push("and",`(min-width: ${Kd(e)})`),t&&n.push("and",`(max-width: ${Kd(t)})`),n.join(" ")}function IT(e){var t;if(!e)return null;e.base=(t=e.base)!=null?t:"0px";const n=h0(e),r=Object.entries(e).sort(db).map(([s,a],l,u)=>{var c;let[,d]=(c=u[l+1])!=null?c:[];return d=parseFloat(d)>0?p0(d):void 0,{_minW:p0(a),breakpoint:s,minW:a,maxW:d,maxWQuery:vi(null,d),minWQuery:vi(a),minMaxQuery:vi(a,d)}}),o=DT(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:kh(e),asArray:h0(e),details:r,get(s){return r.find(a=>a.breakpoint===s)},media:[null,...n.map(s=>vi(s)).slice(1)],toArrayValue(s){if(!Ot(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(;zT(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 Me={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}`},Fn=e=>fb(t=>e(t,"&"),"[role=group]","[data-group]",".group"),cn=e=>fb(t=>e(t,"~ &"),"[data-peer]",".peer"),fb=(e,...t)=>t.map(e).join(", "),pu={_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:Fn(Me.hover),_peerHover:cn(Me.hover),_groupFocus:Fn(Me.focus),_peerFocus:cn(Me.focus),_groupFocusVisible:Fn(Me.focusVisible),_peerFocusVisible:cn(Me.focusVisible),_groupActive:Fn(Me.active),_peerActive:cn(Me.active),_groupDisabled:Fn(Me.disabled),_peerDisabled:cn(Me.disabled),_groupInvalid:Fn(Me.invalid),_peerInvalid:cn(Me.invalid),_groupChecked:Fn(Me.checked),_peerChecked:cn(Me.checked),_groupFocusWithin:Fn(Me.focusWithin),_peerFocusWithin:cn(Me.focusWithin),_peerPlaceholderShown:cn(Me.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]"},hb=Object.keys(pu);function m0(e,t){return L(String(e).replace(/\./g,"-"),void 0,t)}function FT(e,t){let n={};const r={};for(const[o,i]of Object.entries(e)){const{isSemantic:s,value:a}=i,{variable:l,reference:u}=m0(o,t==null?void 0:t.cssVarPrefix);if(!s){if(o.startsWith("space")){const p=o.split("."),[v,...b]=p,y=`${v}.-${b.join(".")}`,S=wr.negate(a),f=wr.negate(u);r[y]={value:S,var:l,varRef:f}}n[l]=a,r[o]={value:a,var:l,varRef:u};continue}const c=p=>{const b=[String(o).split(".")[0],p].join(".");if(!e[b])return p;const{reference:S}=m0(b,t==null?void 0:t.cssVarPrefix);return S},d=Ot(a)?a:{default:a};n=en(n,Object.entries(d).reduce((p,[v,b])=>{var y,S;if(!b)return p;const f=c(`${b}`);if(v==="default")return p[l]=f,p;const h=(S=(y=pu)==null?void 0:y[v])!=null?S:v;return p[h]={[l]:f},p},{})),r[o]={value:u,var:l,varRef:u}}return{cssVars:n,cssMap:r}}function jT(e,t=[]){const n=Object.assign({},e);for(const r of t)r in n&&delete n[r];return n}function LT(e,t){const n={};for(const r of t)r in e&&(n[r]=e[r]);return n}function BT(e){return typeof e=="object"&&e!=null&&!Array.isArray(e)}function g0(e,t,n={}){const{stop:r,getKey:o}=n;function i(s,a=[]){var l;if(BT(s)||Array.isArray(s)){const u={};for(const[c,d]of Object.entries(s)){const p=(l=o==null?void 0:o(c))!=null?l:c,v=[...a,p];if(r!=null&&r(s,v))return t(s,a);u[p]=i(d,v)}return u}return t(s,a)}return i(e)}var VT=["colors","borders","borderWidths","borderStyles","fonts","fontSizes","fontWeights","gradients","letterSpacings","lineHeights","radii","space","shadows","sizes","zIndices","transition","blur","breakpoints"];function OT(e){return LT(e,VT)}function NT(e){return e.semanticTokens}function WT(e){const{__cssMap:t,__cssVars:n,__breakpoints:r,...o}=e;return o}var UT=e=>hb.includes(e)||e==="default";function HT({tokens:e,semanticTokens:t}){const n={};return g0(e,(r,o)=>{r!=null&&(n[o.join(".")]={isSemantic:!1,value:r})}),g0(t,(r,o)=>{r!=null&&(n[o.join(".")]={isSemantic:!0,value:r})},{stop:r=>Object.keys(r).every(UT)}),n}function KT(e){var t;const n=WT(e),r=OT(n),o=NT(n),i=HT({tokens:r,semanticTokens:o}),s=(t=n.config)==null?void 0:t.cssVarPrefix,{cssMap:a,cssVars:l}=FT(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:IT(n.breakpoints)}),n}var Ch=en({},Ia,G,lT,kl,kt,uT,yT,cT,ub,vT,Di,Ud,ae,kT,wT,bT,ST,dT,xT);Object.assign({},ae,kt,kl,ub,Di);var GT=[...Object.keys(Ch),...hb],YT={...Ch,...pu},XT=e=>e in YT,qT=e=>t=>{if(!t.__breakpoints)return e;const{isResponsive:n,toArrayValue:r,media:o}=t.__breakpoints,i={};for(const s in e){let a=Jt(e[s],t);if(a==null)continue;if(a=Ot(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"&&!ZT(t),eP=(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]=QT(t);return t=(r=(n=o(s))!=null?n:i(a))!=null?r:i(t),t};function tP(e){const{configs:t={},pseudos:n={},theme:r}=e,o=(i,s=!1)=>{var a,l,u;const c=Jt(i,r),d=qT(c)(r);let p={};for(let v in d){const b=d[v];let y=Jt(b,r);v in n&&(v=n[v]),JT(v,y)&&(y=eP(r,y));let S=t[v];if(S===!0&&(S={property:v}),Ot(y)){p[v]=(a=p[v])!=null?a:{},p[v]=en({},p[v],o(y,!0));continue}let f=(u=(l=S==null?void 0:S.transform)==null?void 0:l.call(S,y,r,c))!=null?u:y;f=S!=null&&S.processResult?o(f,!0):f;const h=Jt(S==null?void 0:S.property,r);if(!s&&(S!=null&&S.static)){const m=Jt(S.static,r);p=en({},p,m)}if(h&&Array.isArray(h)){for(const m of h)p[m]=f;continue}if(h){h==="&"&&Ot(f)?p=en({},p,f):p[h]=f;continue}if(Ot(f)){p=en({},p,f);continue}p[v]=f}return p};return o}var pb=e=>t=>tP({theme:t,pseudos:pu,configs:Ch})(e);function ie(e){return{definePartsStyle(t){return t},defineMultiStyleConfig(t){return{parts:e,...t}}}}function nP(e,t){if(Array.isArray(e))return e;if(Ot(e))return t(e);if(e!=null)return[e]}function rP(e,t){for(let n=t+1;n{en(u,{[m]:p?h[m]:{[f]:h[m]}})});continue}if(!v){p?en(u,h):u[f]=h;continue}u[f]=h}}return u}}function iP(e){return t=>{var n;const{variant:r,size:o,theme:i}=t,s=oP(i);return en({},Jt((n=e.baseStyle)!=null?n:{},t),s(e,"sizes",o,t),s(e,"variants",r,t))}}function Mn(e){return jT(e,["styleConfig","size","variant","colorScheme"])}var sP={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"},aP={"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)"},lP={"ultra-fast":"50ms",faster:"100ms",fast:"150ms",normal:"200ms",slow:"300ms",slower:"400ms","ultra-slow":"500ms"},uP={property:sP,easing:aP,duration:lP},cP=uP,dP={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},fP=dP,hP={none:0,"1px":"1px solid","2px":"2px solid","4px":"4px solid","8px":"8px solid"},pP=hP,mP={base:"0em",sm:"30em",md:"48em",lg:"62em",xl:"80em","2xl":"96em"},gP=mP,vP={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"}},yP=vP,bP={none:"0",sm:"0.125rem",base:"0.25rem",md:"0.375rem",lg:"0.5rem",xl:"0.75rem","2xl":"1rem","3xl":"1.5rem",full:"9999px"},SP=bP,xP={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"},wP=xP,kP={none:0,sm:"4px",base:"8px",md:"12px",lg:"16px",xl:"24px","2xl":"40px","3xl":"64px"},CP=kP,_P={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"}},mb=_P,gb={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"},TP={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"},PP={sm:"640px",md:"768px",lg:"1024px",xl:"1280px"},EP={...gb,...TP,container:PP},vb=EP,$P={breakpoints:gP,zIndices:fP,radii:SP,blur:CP,colors:yP,...mb,sizes:vb,shadows:wP,space:gb,borders:pP,transition:cP},{defineMultiStyleConfig:AP,definePartsStyle:yi}=ie(["stepper","step","title","description","indicator","separator","icon","number"]),hn=L("stepper-indicator-size"),so=L("stepper-icon-size"),ao=L("stepper-title-font-size"),bi=L("stepper-description-font-size"),ui=L("stepper-accent-color"),RP=yi(({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"},[ui.variable]:`colors.${e}.500`,_dark:{[ui.variable]:`colors.${e}.200`}},title:{fontSize:ao.reference,fontWeight:"medium"},description:{fontSize:bi.reference,color:"chakra-subtle-text"},number:{fontSize:ao.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:so.reference,height:so.reference},indicator:{flexShrink:0,borderRadius:"full",width:hn.reference,height:hn.reference,display:"flex",justifyContent:"center",alignItems:"center","&[data-status=active]":{borderWidth:"2px",borderColor:ui.reference},"&[data-status=complete]":{bg:ui.reference,color:"chakra-inverse-text"},"&[data-status=incomplete]":{borderWidth:"2px"}},separator:{bg:"chakra-border-color",flex:"1","&[data-status=complete]":{bg:ui.reference},"&[data-orientation=horizontal]":{width:"100%",height:"2px",marginStart:"2"},"&[data-orientation=vertical]":{width:"2px",position:"absolute",height:"100%",maxHeight:`calc(100% - ${hn.reference} - 8px)`,top:`calc(${hn.reference} + 4px)`,insetStart:`calc(${hn.reference} / 2 - 1px)`}}})),zP=AP({baseStyle:RP,sizes:{xs:yi({stepper:{[hn.variable]:"sizes.4",[so.variable]:"sizes.3",[ao.variable]:"fontSizes.xs",[bi.variable]:"fontSizes.xs"}}),sm:yi({stepper:{[hn.variable]:"sizes.6",[so.variable]:"sizes.4",[ao.variable]:"fontSizes.sm",[bi.variable]:"fontSizes.xs"}}),md:yi({stepper:{[hn.variable]:"sizes.8",[so.variable]:"sizes.5",[ao.variable]:"fontSizes.md",[bi.variable]:"fontSizes.sm"}}),lg:yi({stepper:{[hn.variable]:"sizes.10",[so.variable]:"sizes.6",[ao.variable]:"fontSizes.lg",[bi.variable]:"fontSizes.md"}})},defaultProps:{size:"md",colorScheme:"blue"}});function Q(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 Q(e,t)}function i(...c){for(const d of c)d in t||(t[d]=l(d));return Q(e,t)}function s(){return Object.fromEntries(Object.entries(t).map(([d,p])=>[d,p.selector]))}function a(){return Object.fromEntries(Object.entries(t).map(([d,p])=>[d,p.className]))}function l(c){const v=`chakra-${(["container","root"].includes(c??"")?[e]:[e,c]).filter(Boolean).join("__")}`;return{className:v,selector:`.${v}`,toString:()=>c}}return{parts:o,toPart:l,extend:i,selectors:s,classnames:a,get keys(){return Object.keys(t)},__type:{}}}var MP=Q("accordion").parts("root","container","button","panel").extend("icon"),DP=Q("alert").parts("title","description","container").extend("icon","spinner"),IP=Q("avatar").parts("label","badge","container").extend("excessLabel","group"),FP=Q("breadcrumb").parts("link","item","container").extend("separator");Q("button").parts();var jP=Q("checkbox").parts("control","icon","container").extend("label");Q("progress").parts("track","filledTrack").extend("label");var LP=Q("drawer").parts("overlay","dialogContainer","dialog").extend("header","closeButton","body","footer"),BP=Q("editable").parts("preview","input","textarea"),VP=Q("form").parts("container","requiredIndicator","helperText"),OP=Q("formError").parts("text","icon"),NP=Q("input").parts("addon","field","element","group"),WP=Q("list").parts("container","item","icon"),UP=Q("menu").parts("button","list","item").extend("groupTitle","icon","command","divider"),HP=Q("modal").parts("overlay","dialogContainer","dialog").extend("header","closeButton","body","footer"),KP=Q("numberinput").parts("root","field","stepperGroup","stepper");Q("pininput").parts("field");var GP=Q("popover").parts("content","header","body","footer").extend("popper","arrow","closeButton"),YP=Q("progress").parts("label","filledTrack","track"),XP=Q("radio").parts("container","control","label"),qP=Q("select").parts("field","icon"),QP=Q("slider").parts("container","track","thumb","filledTrack","mark"),ZP=Q("stat").parts("container","label","helpText","number","icon"),JP=Q("switch").parts("container","track","thumb","label"),eE=Q("table").parts("table","thead","tbody","tr","th","td","tfoot","caption"),tE=Q("tabs").parts("root","tab","tablist","tabpanel","tabpanels","indicator"),nE=Q("tag").parts("container","label","closeButton"),rE=Q("card").parts("container","header","body","footer");Q("stepper").parts("stepper","step","title","description","indicator","separator","icon","number");function Pr(e,t,n){return Math.min(Math.max(e,n),t)}class oE extends Error{constructor(t){super(`Failed to parse color: "${t}"`)}}var Si=oE;function _h(e){if(typeof e!="string")throw new Si(e);if(e.trim().toLowerCase()==="transparent")return[0,0,0,0];let t=e.trim();t=fE.test(e)?aE(e):e;const n=lE.exec(t);if(n){const s=Array.from(n).slice(1);return[...s.slice(0,3).map(a=>parseInt(ds(a,2),16)),parseInt(ds(s[3]||"f",2),16)/255]}const r=uE.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=cE.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=dE.exec(t);if(i){const[s,a,l,u]=Array.from(i).slice(1).map(parseFloat);if(Pr(0,100,a)!==a)throw new Si(e);if(Pr(0,100,l)!==l)throw new Si(e);return[...hE(s,a,l),Number.isNaN(u)?1:u]}throw new Si(e)}function iE(e){let t=5381,n=e.length;for(;n;)t=t*33^e.charCodeAt(--n);return(t>>>0)%2341}const v0=e=>parseInt(e.replace(/_/g,""),36),sE="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=v0(t.substring(0,3)),r=v0(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 aE(e){const t=e.toLowerCase().trim(),n=sE[iE(t)];if(!n)throw new Si(e);return`#${n}`}const ds=(e,t)=>Array.from(Array(t)).map(()=>e).join(""),lE=new RegExp(`^#${ds("([a-f0-9])",3)}([a-f0-9])?$`,"i"),uE=new RegExp(`^#${ds("([a-f0-9]{2})",3)}([a-f0-9]{2})?$`,"i"),cE=new RegExp(`^rgba?\\(\\s*(\\d+)\\s*${ds(",\\s*(\\d+)\\s*",2)}(?:,\\s*([\\d.]+))?\\s*\\)$`,"i"),dE=/^hsla?\(\s*([\d.]+)\s*,\s*([\d.]+)%\s*,\s*([\d.]+)%(?:\s*,\s*([\d.]+))?\s*\)$/i,fE=/^[a-z]+$/i,y0=e=>Math.round(e*255),hE=(e,t,n)=>{let r=n/100;if(t===0)return[r,r,r].map(y0);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,p=l+c,v=u+c;return[d,p,v].map(y0)};function pE(e,t,n,r){return`rgba(${Pr(0,255,e).toFixed()}, ${Pr(0,255,t).toFixed()}, ${Pr(0,255,n).toFixed()}, ${parseFloat(Pr(0,1,r).toFixed(3))})`}function mE(e,t){const[n,r,o,i]=_h(e);return pE(n,r,o,i-t)}function gE(e){const[t,n,r,o]=_h(e);let i=s=>{const a=Pr(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 vE(e,t,n,r,o){for(t=t.split?t.split("."):t,r=0;rObject.keys(e).length===0,Qe=(e,t,n)=>{const r=vE(e,`colors.${t}`,t);try{return gE(r),r}catch{return n??"#000000"}},bE=e=>{const[t,n,r]=_h(e);return(t*299+n*587+r*114)/1e3},SE=e=>t=>{const n=Qe(t,e);return bE(n)<128?"dark":"light"},xE=e=>t=>SE(e)(t)==="dark",jo=(e,t)=>n=>{const r=Qe(n,e);return mE(r,1-t)};function b0(e="1rem",t="rgba(255, 255, 255, 0.15)"){return{backgroundImage:`linear-gradient( + `;return`!${i?s:a}`.trim()}function N2(e={}){const{nonce:t}=e;return T.jsx("script",{id:"chakra-script",nonce:t,dangerouslySetInnerHTML:{__html:O2(e)}})}function ib(){const e=fu(),t=D2();return{...e,theme:t}}var Ge=(...e)=>e.filter(Boolean).join(" ");function Ot(e){const t=typeof e;return e!=null&&(t==="object"||t==="function")&&!Array.isArray(e)}function Jt(e,...t){return W2(e)?e(...t):e}var W2=e=>typeof e=="function",Gt=e=>e?"":void 0,hc=e=>e?!0:void 0;function a0(...e){return function(n){e.some(r=>(r==null||r(n),n==null?void 0:n.defaultPrevented))}}var wl={exports:{}};wl.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]",p="[object Error]",v="[object Function]",b="[object GeneratorFunction]",y="[object Map]",S="[object Number]",f="[object Null]",h="[object Object]",m="[object Proxy]",x="[object RegExp]",C="[object Set]",A="[object String]",$="[object Undefined]",P="[object WeakMap]",D="[object ArrayBuffer]",z="[object DataView]",ne="[object Float32Array]",Ye="[object Float64Array]",an="[object Int8Array]",dr="[object Int16Array]",_e="[object Int32Array]",Xe="[object Uint8Array]",ln="[object Uint8ClampedArray]",M="[object Uint16Array]",V="[object Uint32Array]",O=/[\\^$.*+?()[\]{}|]/g,he=/^\[object .+?Constructor\]$/,we=/^(?:0|[1-9]\d*)$/,Z={};Z[ne]=Z[Ye]=Z[an]=Z[dr]=Z[_e]=Z[Xe]=Z[ln]=Z[M]=Z[V]=!0,Z[a]=Z[l]=Z[D]=Z[c]=Z[z]=Z[d]=Z[p]=Z[v]=Z[y]=Z[S]=Z[h]=Z[x]=Z[C]=Z[A]=Z[P]=!1;var Wt=typeof Vs=="object"&&Vs&&Vs.Object===Object&&Vs,Yo=typeof self=="object"&&self&&self.Object===Object&&self,ut=Wt||Yo||Function("return this")(),fr=t&&!t.nodeType&&t,Xo=fr&&!0&&e&&!e.nodeType&&e,gp=Xo&&Xo.exports===fr,_u=gp&&Wt.process,vp=function(){try{var g=Xo&&Xo.require&&Xo.require("util").types;return g||_u&&_u.binding&&_u.binding("util")}catch{}}(),yp=vp&&vp.isTypedArray;function xx(g,k,E){switch(E.length){case 0:return g.call(k);case 1:return g.call(k,E[0]);case 2:return g.call(k,E[0],E[1]);case 3:return g.call(k,E[0],E[1],E[2])}return g.apply(k,E)}function wx(g,k){for(var E=-1,F=Array(g);++E-1}function Ux(g,k){var E=this.__data__,F=Fs(E,g);return F<0?(++this.size,E.push([g,k])):E[F][1]=k,this}un.prototype.clear=Vx,un.prototype.delete=Ox,un.prototype.get=Nx,un.prototype.has=Wx,un.prototype.set=Ux;function Wr(g){var k=-1,E=g==null?0:g.length;for(this.clear();++k1?E[U-1]:void 0,ce=U>2?E[2]:void 0;for(re=g.length>3&&typeof re=="function"?(U--,re):void 0,ce&&bw(E[0],E[1],ce)&&(re=U<3?void 0:re,U=1),k=Object(k);++F-1&&g%1==0&&g0){if(++k>=o)return arguments[0]}else k=0;return g.apply(void 0,arguments)}}function Pw(g){if(g!=null){try{return Ms.call(g)}catch{}try{return g+""}catch{}}return""}function Bs(g,k){return g===k||g!==g&&k!==k}var Ru=Pp(function(){return arguments}())?Pp:function(g){return Qo(g)&&Dn.call(g,"callee")&&!Ax.call(g,"callee")},zu=Array.isArray;function Mu(g){return g!=null&&zp(g.length)&&!Du(g)}function Ew(g){return Qo(g)&&Mu(g)}var Rp=zx||Mw;function Du(g){if(!mr(g))return!1;var k=js(g);return k==v||k==b||k==u||k==m}function zp(g){return typeof g=="number"&&g>-1&&g%1==0&&g<=s}function mr(g){var k=typeof g;return g!=null&&(k=="object"||k=="function")}function Qo(g){return g!=null&&typeof g=="object"}function $w(g){if(!Qo(g)||js(g)!=h)return!1;var k=kp(g);if(k===null)return!0;var E=Dn.call(k,"constructor")&&k.constructor;return typeof E=="function"&&E instanceof E&&Ms.call(E)==Ex}var Mp=yp?kx(yp):iw;function Aw(g){return pw(g,Dp(g))}function Dp(g){return Mu(g)?tw(g):sw(g)}var Rw=mw(function(g,k,E,F){Ep(g,k,E,F)});function zw(g){return function(){return g}}function Ip(g){return g}function Mw(){return!1}e.exports=Rw})(wl,wl.exports);var U2=wl.exports;const en=gf(U2);var H2=e=>/!(important)?$/.test(e),l0=e=>typeof e=="string"?e.replace(/!(important)?$/,"").trim():e,K2=(e,t)=>n=>{const r=String(t),o=H2(r),i=l0(r),s=e?`${e}.${i}`:i;let a=Ot(n.__cssMap)&&s in n.__cssMap?n.__cssMap[s].varRef:t;return a=l0(a),o?`${a} !important`:a};function wh(e){const{scale:t,transform:n,compose:r}=e;return(i,s)=>{var a;const l=K2(t,i)(s);let u=(a=n==null?void 0:n(l,s))!=null?a:l;return r&&(u=r(u,s)),u}}var la=(...e)=>t=>e.reduce((n,r)=>r(n),t);function xt(e,t){return n=>{const r={property:n,scale:e};return r.transform=wh({scale:e,transform:t}),r}}var G2=({rtl:e,ltr:t})=>n=>n.direction==="rtl"?e:t;function Y2(e){const{property:t,scale:n,transform:r}=e;return{scale:n,property:G2(t),transform:n?wh({scale:n,compose:r}):r}}var sb=["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 X2(){return["translateX(var(--chakra-translate-x, 0))","translateY(var(--chakra-translate-y, 0))",...sb].join(" ")}function q2(){return["translate3d(var(--chakra-translate-x, 0), var(--chakra-translate-y, 0), 0)",...sb].join(" ")}var Q2={"--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(" ")},Z2={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 J2(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 eT={"row-reverse":{space:"--chakra-space-x-reverse",divide:"--chakra-divide-x-reverse"},"column-reverse":{space:"--chakra-space-y-reverse",divide:"--chakra-divide-y-reverse"}},Od={"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"},tT=new Set(Object.values(Od)),Nd=new Set(["none","-moz-initial","inherit","initial","revert","unset"]),nT=e=>e.trim();function rT(e,t){if(e==null||Nd.has(e))return e;if(!(Wd(e)||Nd.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(nT).filter(Boolean);if((u==null?void 0:u.length)===0)return e;const c=l in Od?Od[l]:l;u.unshift(c);const d=u.map(p=>{if(tT.has(p))return p;const v=p.indexOf(" "),[b,y]=v!==-1?[p.substr(0,v),p.substr(v+1)]:[p],S=Wd(y)?y:y&&y.split(" "),f=`colors.${b}`,h=f in t.__cssMap?t.__cssMap[f].varRef:b;return S?[h,...Array.isArray(S)?S:[S]].join(" "):h});return`${a}(${d.join(", ")})`}var Wd=e=>typeof e=="string"&&e.includes("(")&&e.includes(")"),oT=(e,t)=>rT(e,t??{});function iT(e){return/^var\(--.+\)$/.test(e)}var sT=e=>{const t=parseFloat(e.toString()),n=e.toString().replace(String(t),"");return{unitless:!n,value:t,unit:n}},Ht=e=>t=>`${e}(${t})`,W={filter(e){return e!=="auto"?e:Q2},backdropFilter(e){return e!=="auto"?e:Z2},ring(e){return J2(W.px(e))},bgClip(e){return e==="text"?{color:"transparent",backgroundClip:"text"}:{backgroundClip:e}},transform(e){return e==="auto"?X2():e==="auto-gpu"?q2():e},vh(e){return e==="$100vh"?"var(--chakra-vh)":e},px(e){if(e==null)return e;const{unitless:t}=sT(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(iT(e)||e==null)return e;const t=typeof e=="string"&&!e.endsWith("deg");return typeof e=="number"||t?`${e}deg`:e},gradient:oT,blur:Ht("blur"),opacity:Ht("opacity"),brightness:Ht("brightness"),contrast:Ht("contrast"),dropShadow:Ht("drop-shadow"),grayscale:Ht("grayscale"),hueRotate:e=>Ht("hue-rotate")(W.degree(e)),invert:Ht("invert"),saturate:Ht("saturate"),sepia:Ht("sepia"),bgImage(e){return e==null||Wd(e)||Nd.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=eT[e])!=null?t:{},o={flexDirection:e};return n&&(o[n]=1),r&&(o[r]=1),o}},w={borderWidths:xt("borderWidths"),borderStyles:xt("borderStyles"),colors:xt("colors"),borders:xt("borders"),gradients:xt("gradients",W.gradient),radii:xt("radii",W.px),space:xt("space",la(W.vh,W.px)),spaceT:xt("space",la(W.vh,W.px)),degreeT(e){return{property:e,transform:W.degree}},prop(e,t,n){return{property:e,scale:t,...t&&{transform:wh({scale:t,transform:n})}}},propT(e,t){return{property:e,transform:t}},sizes:xt("sizes",la(W.vh,W.px)),sizesT:xt("sizes",la(W.vh,W.fraction)),shadows:xt("shadows"),logical:Y2,blur:xt("blur",W.blur)},Ia={background:w.colors("background"),backgroundColor:w.colors("backgroundColor"),backgroundImage:w.gradients("backgroundImage"),backgroundSize:!0,backgroundPosition:!0,backgroundRepeat:!0,backgroundAttachment:!0,backgroundClip:{transform:W.bgClip},bgSize:w.prop("backgroundSize"),bgPosition:w.prop("backgroundPosition"),bg:w.colors("background"),bgColor:w.colors("backgroundColor"),bgPos:w.prop("backgroundPosition"),bgRepeat:w.prop("backgroundRepeat"),bgAttachment:w.prop("backgroundAttachment"),bgGradient:w.gradients("backgroundImage"),bgClip:{transform:W.bgClip}};Object.assign(Ia,{bgImage:Ia.backgroundImage,bgImg:Ia.backgroundImage});var G={border:w.borders("border"),borderWidth:w.borderWidths("borderWidth"),borderStyle:w.borderStyles("borderStyle"),borderColor:w.colors("borderColor"),borderRadius:w.radii("borderRadius"),borderTop:w.borders("borderTop"),borderBlockStart:w.borders("borderBlockStart"),borderTopLeftRadius:w.radii("borderTopLeftRadius"),borderStartStartRadius:w.logical({scale:"radii",property:{ltr:"borderTopLeftRadius",rtl:"borderTopRightRadius"}}),borderEndStartRadius:w.logical({scale:"radii",property:{ltr:"borderBottomLeftRadius",rtl:"borderBottomRightRadius"}}),borderTopRightRadius:w.radii("borderTopRightRadius"),borderStartEndRadius:w.logical({scale:"radii",property:{ltr:"borderTopRightRadius",rtl:"borderTopLeftRadius"}}),borderEndEndRadius:w.logical({scale:"radii",property:{ltr:"borderBottomRightRadius",rtl:"borderBottomLeftRadius"}}),borderRight:w.borders("borderRight"),borderInlineEnd:w.borders("borderInlineEnd"),borderBottom:w.borders("borderBottom"),borderBlockEnd:w.borders("borderBlockEnd"),borderBottomLeftRadius:w.radii("borderBottomLeftRadius"),borderBottomRightRadius:w.radii("borderBottomRightRadius"),borderLeft:w.borders("borderLeft"),borderInlineStart:{property:"borderInlineStart",scale:"borders"},borderInlineStartRadius:w.logical({scale:"radii",property:{ltr:["borderTopLeftRadius","borderBottomLeftRadius"],rtl:["borderTopRightRadius","borderBottomRightRadius"]}}),borderInlineEndRadius:w.logical({scale:"radii",property:{ltr:["borderTopRightRadius","borderBottomRightRadius"],rtl:["borderTopLeftRadius","borderBottomLeftRadius"]}}),borderX:w.borders(["borderLeft","borderRight"]),borderInline:w.borders("borderInline"),borderY:w.borders(["borderTop","borderBottom"]),borderBlock:w.borders("borderBlock"),borderTopWidth:w.borderWidths("borderTopWidth"),borderBlockStartWidth:w.borderWidths("borderBlockStartWidth"),borderTopColor:w.colors("borderTopColor"),borderBlockStartColor:w.colors("borderBlockStartColor"),borderTopStyle:w.borderStyles("borderTopStyle"),borderBlockStartStyle:w.borderStyles("borderBlockStartStyle"),borderBottomWidth:w.borderWidths("borderBottomWidth"),borderBlockEndWidth:w.borderWidths("borderBlockEndWidth"),borderBottomColor:w.colors("borderBottomColor"),borderBlockEndColor:w.colors("borderBlockEndColor"),borderBottomStyle:w.borderStyles("borderBottomStyle"),borderBlockEndStyle:w.borderStyles("borderBlockEndStyle"),borderLeftWidth:w.borderWidths("borderLeftWidth"),borderInlineStartWidth:w.borderWidths("borderInlineStartWidth"),borderLeftColor:w.colors("borderLeftColor"),borderInlineStartColor:w.colors("borderInlineStartColor"),borderLeftStyle:w.borderStyles("borderLeftStyle"),borderInlineStartStyle:w.borderStyles("borderInlineStartStyle"),borderRightWidth:w.borderWidths("borderRightWidth"),borderInlineEndWidth:w.borderWidths("borderInlineEndWidth"),borderRightColor:w.colors("borderRightColor"),borderInlineEndColor:w.colors("borderInlineEndColor"),borderRightStyle:w.borderStyles("borderRightStyle"),borderInlineEndStyle:w.borderStyles("borderInlineEndStyle"),borderTopRadius:w.radii(["borderTopLeftRadius","borderTopRightRadius"]),borderBottomRadius:w.radii(["borderBottomLeftRadius","borderBottomRightRadius"]),borderLeftRadius:w.radii(["borderTopLeftRadius","borderBottomLeftRadius"]),borderRightRadius:w.radii(["borderTopRightRadius","borderBottomRightRadius"])};Object.assign(G,{rounded:G.borderRadius,roundedTop:G.borderTopRadius,roundedTopLeft:G.borderTopLeftRadius,roundedTopRight:G.borderTopRightRadius,roundedTopStart:G.borderStartStartRadius,roundedTopEnd:G.borderStartEndRadius,roundedBottom:G.borderBottomRadius,roundedBottomLeft:G.borderBottomLeftRadius,roundedBottomRight:G.borderBottomRightRadius,roundedBottomStart:G.borderEndStartRadius,roundedBottomEnd:G.borderEndEndRadius,roundedLeft:G.borderLeftRadius,roundedRight:G.borderRightRadius,roundedStart:G.borderInlineStartRadius,roundedEnd:G.borderInlineEndRadius,borderStart:G.borderInlineStart,borderEnd:G.borderInlineEnd,borderTopStartRadius:G.borderStartStartRadius,borderTopEndRadius:G.borderStartEndRadius,borderBottomStartRadius:G.borderEndStartRadius,borderBottomEndRadius:G.borderEndEndRadius,borderStartRadius:G.borderInlineStartRadius,borderEndRadius:G.borderInlineEndRadius,borderStartWidth:G.borderInlineStartWidth,borderEndWidth:G.borderInlineEndWidth,borderStartColor:G.borderInlineStartColor,borderEndColor:G.borderInlineEndColor,borderStartStyle:G.borderInlineStartStyle,borderEndStyle:G.borderInlineEndStyle});var aT={color:w.colors("color"),textColor:w.colors("color"),fill:w.colors("fill"),stroke:w.colors("stroke")},Ud={boxShadow:w.shadows("boxShadow"),mixBlendMode:!0,blendMode:w.prop("mixBlendMode"),backgroundBlendMode:!0,bgBlendMode:w.prop("backgroundBlendMode"),opacity:!0};Object.assign(Ud,{shadow:Ud.boxShadow});var lT={filter:{transform:W.filter},blur:w.blur("--chakra-blur"),brightness:w.propT("--chakra-brightness",W.brightness),contrast:w.propT("--chakra-contrast",W.contrast),hueRotate:w.propT("--chakra-hue-rotate",W.hueRotate),invert:w.propT("--chakra-invert",W.invert),saturate:w.propT("--chakra-saturate",W.saturate),dropShadow:w.propT("--chakra-drop-shadow",W.dropShadow),backdropFilter:{transform:W.backdropFilter},backdropBlur:w.blur("--chakra-backdrop-blur"),backdropBrightness:w.propT("--chakra-backdrop-brightness",W.brightness),backdropContrast:w.propT("--chakra-backdrop-contrast",W.contrast),backdropHueRotate:w.propT("--chakra-backdrop-hue-rotate",W.hueRotate),backdropInvert:w.propT("--chakra-backdrop-invert",W.invert),backdropSaturate:w.propT("--chakra-backdrop-saturate",W.saturate)},kl={alignItems:!0,alignContent:!0,justifyItems:!0,justifyContent:!0,flexWrap:!0,flexDirection:{transform:W.flexDirection},flex:!0,flexFlow:!0,flexGrow:!0,flexShrink:!0,flexBasis:w.sizes("flexBasis"),justifySelf:!0,alignSelf:!0,order:!0,placeItems:!0,placeContent:!0,placeSelf:!0,gap:w.space("gap"),rowGap:w.space("rowGap"),columnGap:w.space("columnGap")};Object.assign(kl,{flexDir:kl.flexDirection});var ab={gridGap:w.space("gridGap"),gridColumnGap:w.space("gridColumnGap"),gridRowGap:w.space("gridRowGap"),gridColumn:!0,gridRow:!0,gridAutoFlow:!0,gridAutoColumns:!0,gridColumnStart:!0,gridColumnEnd:!0,gridRowStart:!0,gridRowEnd:!0,gridAutoRows:!0,gridTemplate:!0,gridTemplateColumns:!0,gridTemplateRows:!0,gridTemplateAreas:!0,gridArea:!0},uT={appearance:!0,cursor:!0,resize:!0,userSelect:!0,pointerEvents:!0,outline:{transform:W.outline},outlineOffset:!0,outlineColor:w.colors("outlineColor")},kt={width:w.sizesT("width"),inlineSize:w.sizesT("inlineSize"),height:w.sizes("height"),blockSize:w.sizes("blockSize"),boxSize:w.sizes(["width","height"]),minWidth:w.sizes("minWidth"),minInlineSize:w.sizes("minInlineSize"),minHeight:w.sizes("minHeight"),minBlockSize:w.sizes("minBlockSize"),maxWidth:w.sizes("maxWidth"),maxInlineSize:w.sizes("maxInlineSize"),maxHeight:w.sizes("maxHeight"),maxBlockSize:w.sizes("maxBlockSize"),overflow:!0,overflowX:!0,overflowY:!0,overscrollBehavior:!0,overscrollBehaviorX:!0,overscrollBehaviorY:!0,display:!0,aspectRatio:!0,hideFrom:{scale:"breakpoints",transform:(e,t)=>{var 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:w.propT("float",W.float),objectFit:!0,objectPosition:!0,visibility:!0,isolation:!0};Object.assign(kt,{w:kt.width,h:kt.height,minW:kt.minWidth,maxW:kt.maxWidth,minH:kt.minHeight,maxH:kt.maxHeight,overscroll:kt.overscrollBehavior,overscrollX:kt.overscrollBehaviorX,overscrollY:kt.overscrollBehaviorY});var cT={listStyleType:!0,listStylePosition:!0,listStylePos:w.prop("listStylePosition"),listStyleImage:!0,listStyleImg:w.prop("listStyleImage")};function dT(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}},hT=fT(dT),pT={border:"0px",clip:"rect(0, 0, 0, 0)",width:"1px",height:"1px",margin:"-1px",padding:"0px",overflow:"hidden",whiteSpace:"nowrap",position:"absolute"},mT={position:"static",width:"auto",height:"auto",clip:"auto",padding:"0",margin:"0",overflow:"visible",whiteSpace:"normal"},pc=(e,t,n)=>{const r={},o=hT(e,t,{});for(const i in o)i in n&&n[i]!=null||(r[i]=o[i]);return r},gT={srOnly:{transform(e){return e===!0?pT:e==="focusable"?mT:{}}},layerStyle:{processResult:!0,transform:(e,t,n)=>pc(t,`layerStyles.${e}`,n)},textStyle:{processResult:!0,transform:(e,t,n)=>pc(t,`textStyles.${e}`,n)},apply:{processResult:!0,transform:(e,t,n)=>pc(t,e,n)}},Di={position:!0,pos:w.prop("position"),zIndex:w.prop("zIndex","zIndices"),inset:w.spaceT("inset"),insetX:w.spaceT(["left","right"]),insetInline:w.spaceT("insetInline"),insetY:w.spaceT(["top","bottom"]),insetBlock:w.spaceT("insetBlock"),top:w.spaceT("top"),insetBlockStart:w.spaceT("insetBlockStart"),bottom:w.spaceT("bottom"),insetBlockEnd:w.spaceT("insetBlockEnd"),left:w.spaceT("left"),insetInlineStart:w.logical({scale:"space",property:{ltr:"left",rtl:"right"}}),right:w.spaceT("right"),insetInlineEnd:w.logical({scale:"space",property:{ltr:"right",rtl:"left"}})};Object.assign(Di,{insetStart:Di.insetInlineStart,insetEnd:Di.insetInlineEnd});var vT={ring:{transform:W.ring},ringColor:w.colors("--chakra-ring-color"),ringOffset:w.prop("--chakra-ring-offset-width"),ringOffsetColor:w.colors("--chakra-ring-offset-color"),ringInset:w.prop("--chakra-ring-inset")},ae={margin:w.spaceT("margin"),marginTop:w.spaceT("marginTop"),marginBlockStart:w.spaceT("marginBlockStart"),marginRight:w.spaceT("marginRight"),marginInlineEnd:w.spaceT("marginInlineEnd"),marginBottom:w.spaceT("marginBottom"),marginBlockEnd:w.spaceT("marginBlockEnd"),marginLeft:w.spaceT("marginLeft"),marginInlineStart:w.spaceT("marginInlineStart"),marginX:w.spaceT(["marginInlineStart","marginInlineEnd"]),marginInline:w.spaceT("marginInline"),marginY:w.spaceT(["marginTop","marginBottom"]),marginBlock:w.spaceT("marginBlock"),padding:w.space("padding"),paddingTop:w.space("paddingTop"),paddingBlockStart:w.space("paddingBlockStart"),paddingRight:w.space("paddingRight"),paddingBottom:w.space("paddingBottom"),paddingBlockEnd:w.space("paddingBlockEnd"),paddingLeft:w.space("paddingLeft"),paddingInlineStart:w.space("paddingInlineStart"),paddingInlineEnd:w.space("paddingInlineEnd"),paddingX:w.space(["paddingInlineStart","paddingInlineEnd"]),paddingInline:w.space("paddingInline"),paddingY:w.space(["paddingTop","paddingBottom"]),paddingBlock:w.space("paddingBlock")};Object.assign(ae,{m:ae.margin,mt:ae.marginTop,mr:ae.marginRight,me:ae.marginInlineEnd,marginEnd:ae.marginInlineEnd,mb:ae.marginBottom,ml:ae.marginLeft,ms:ae.marginInlineStart,marginStart:ae.marginInlineStart,mx:ae.marginX,my:ae.marginY,p:ae.padding,pt:ae.paddingTop,py:ae.paddingY,px:ae.paddingX,pb:ae.paddingBottom,pl:ae.paddingLeft,ps:ae.paddingInlineStart,paddingStart:ae.paddingInlineStart,pr:ae.paddingRight,pe:ae.paddingInlineEnd,paddingEnd:ae.paddingInlineEnd});var yT={textDecorationColor:w.colors("textDecorationColor"),textDecoration:!0,textDecor:{property:"textDecoration"},textDecorationLine:!0,textDecorationStyle:!0,textDecorationThickness:!0,textUnderlineOffset:!0,textShadow:w.shadows("textShadow")},bT={clipPath:!0,transform:w.propT("transform",W.transform),transformOrigin:!0,translateX:w.spaceT("--chakra-translate-x"),translateY:w.spaceT("--chakra-translate-y"),skewX:w.degreeT("--chakra-skew-x"),skewY:w.degreeT("--chakra-skew-y"),scaleX:w.prop("--chakra-scale-x"),scaleY:w.prop("--chakra-scale-y"),scale:w.prop(["--chakra-scale-x","--chakra-scale-y"]),rotate:w.degreeT("--chakra-rotate")},ST={transition:!0,transitionDelay:!0,animation:!0,willChange:!0,transitionDuration:w.prop("transitionDuration","transition.duration"),transitionProperty:w.prop("transitionProperty","transition.property"),transitionTimingFunction:w.prop("transitionTimingFunction","transition.easing")},xT={fontFamily:w.prop("fontFamily","fonts"),fontSize:w.prop("fontSize","fontSizes",W.px),fontWeight:w.prop("fontWeight","fontWeights"),lineHeight:w.prop("lineHeight","lineHeights"),letterSpacing:w.prop("letterSpacing","letterSpacings"),textAlign:!0,fontStyle:!0,textIndent:!0,wordBreak:!0,overflowWrap:!0,textOverflow:!0,textTransform:!0,whiteSpace:!0,isTruncated:{transform(e){if(e===!0)return{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}}},noOfLines:{static:{overflow:"hidden",textOverflow:"ellipsis",display:"-webkit-box",WebkitBoxOrient:"vertical",WebkitLineClamp:"var(--chakra-line-clamp)"},property:"--chakra-line-clamp"}},wT={scrollBehavior:!0,scrollSnapAlign:!0,scrollSnapStop:!0,scrollSnapType:!0,scrollMargin:w.spaceT("scrollMargin"),scrollMarginTop:w.spaceT("scrollMarginTop"),scrollMarginBottom:w.spaceT("scrollMarginBottom"),scrollMarginLeft:w.spaceT("scrollMarginLeft"),scrollMarginRight:w.spaceT("scrollMarginRight"),scrollMarginX:w.spaceT(["scrollMarginLeft","scrollMarginRight"]),scrollMarginY:w.spaceT(["scrollMarginTop","scrollMarginBottom"]),scrollPadding:w.spaceT("scrollPadding"),scrollPaddingTop:w.spaceT("scrollPaddingTop"),scrollPaddingBottom:w.spaceT("scrollPaddingBottom"),scrollPaddingLeft:w.spaceT("scrollPaddingLeft"),scrollPaddingRight:w.spaceT("scrollPaddingRight"),scrollPaddingX:w.spaceT(["scrollPaddingLeft","scrollPaddingRight"]),scrollPaddingY:w.spaceT(["scrollPaddingTop","scrollPaddingBottom"])};function lb(e){return Ot(e)&&e.reference?e.reference:String(e)}var hu=(e,...t)=>t.map(lb).join(` ${e} `).replace(/calc/g,""),u0=(...e)=>`calc(${hu("+",...e)})`,c0=(...e)=>`calc(${hu("-",...e)})`,Hd=(...e)=>`calc(${hu("*",...e)})`,d0=(...e)=>`calc(${hu("/",...e)})`,f0=e=>{const t=lb(e);return t!=null&&!Number.isNaN(parseFloat(t))?String(t).startsWith("-")?String(t).slice(1):`-${t}`:Hd(t,-1)},wr=Object.assign(e=>({add:(...t)=>wr(u0(e,...t)),subtract:(...t)=>wr(c0(e,...t)),multiply:(...t)=>wr(Hd(e,...t)),divide:(...t)=>wr(d0(e,...t)),negate:()=>wr(f0(e)),toString:()=>e.toString()}),{add:u0,subtract:c0,multiply:Hd,divide:d0,negate:f0});function kT(e,t="-"){return e.replace(/\s+/g,t)}function CT(e){const t=kT(e.toString());return TT(_T(t))}function _T(e){return e.includes("\\.")?e:!Number.isInteger(parseFloat(e.toString()))?e.replace(".","\\."):e}function TT(e){return e.replace(/[!-,/:-@[-^`{-~]/g,"\\$&")}function PT(e,t=""){return[t,e].filter(Boolean).join("-")}function ET(e,t){return`var(${e}${t?`, ${t}`:""})`}function $T(e,t=""){return CT(`--${PT(e,t)}`)}function L(e,t,n){const r=$T(e,n);return{variable:r,reference:ET(r,t)}}function AT(e,t){const n={};for(const r of t){if(Array.isArray(r)){const[o,i]=r;n[o]=L(`${e}-${o}`,i);continue}n[r]=L(`${e}-${r}`)}return n}function RT(e){const t=e==null?0:e.length;return t?e[t-1]:void 0}function zT(e){const t=parseFloat(e.toString()),n=e.toString().replace(String(t),"");return{unitless:!n,value:t,unit:n}}function Kd(e){if(e==null)return e;const{unitless:t}=zT(e);return t||typeof e=="number"?`${e}px`:e}var ub=(e,t)=>parseInt(e[1],10)>parseInt(t[1],10)?1:-1,kh=e=>Object.fromEntries(Object.entries(e).sort(ub));function h0(e){const t=kh(e);return Object.assign(Object.values(t),t)}function MT(e){const t=Object.keys(kh(e));return new Set(t)}function p0(e){var t;if(!e)return e;e=(t=Kd(e))!=null?t:e;const n=-.02;return typeof e=="number"?`${e+n}`:e.replace(/(\d+\.?\d*)/u,r=>`${parseFloat(r)+n}`)}function vi(e,t){const n=["@media screen"];return e&&n.push("and",`(min-width: ${Kd(e)})`),t&&n.push("and",`(max-width: ${Kd(t)})`),n.join(" ")}function DT(e){var t;if(!e)return null;e.base=(t=e.base)!=null?t:"0px";const n=h0(e),r=Object.entries(e).sort(ub).map(([s,a],l,u)=>{var c;let[,d]=(c=u[l+1])!=null?c:[];return d=parseFloat(d)>0?p0(d):void 0,{_minW:p0(a),breakpoint:s,minW:a,maxW:d,maxWQuery:vi(null,d),minWQuery:vi(a),minMaxQuery:vi(a,d)}}),o=MT(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:kh(e),asArray:h0(e),details:r,get(s){return r.find(a=>a.breakpoint===s)},media:[null,...n.map(s=>vi(s)).slice(1)],toArrayValue(s){if(!Ot(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(;RT(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 Me={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}`},Fn=e=>cb(t=>e(t,"&"),"[role=group]","[data-group]",".group"),cn=e=>cb(t=>e(t,"~ &"),"[data-peer]",".peer"),cb=(e,...t)=>t.map(e).join(", "),pu={_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:Fn(Me.hover),_peerHover:cn(Me.hover),_groupFocus:Fn(Me.focus),_peerFocus:cn(Me.focus),_groupFocusVisible:Fn(Me.focusVisible),_peerFocusVisible:cn(Me.focusVisible),_groupActive:Fn(Me.active),_peerActive:cn(Me.active),_groupDisabled:Fn(Me.disabled),_peerDisabled:cn(Me.disabled),_groupInvalid:Fn(Me.invalid),_peerInvalid:cn(Me.invalid),_groupChecked:Fn(Me.checked),_peerChecked:cn(Me.checked),_groupFocusWithin:Fn(Me.focusWithin),_peerFocusWithin:cn(Me.focusWithin),_peerPlaceholderShown:cn(Me.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]"},db=Object.keys(pu);function m0(e,t){return L(String(e).replace(/\./g,"-"),void 0,t)}function IT(e,t){let n={};const r={};for(const[o,i]of Object.entries(e)){const{isSemantic:s,value:a}=i,{variable:l,reference:u}=m0(o,t==null?void 0:t.cssVarPrefix);if(!s){if(o.startsWith("space")){const p=o.split("."),[v,...b]=p,y=`${v}.-${b.join(".")}`,S=wr.negate(a),f=wr.negate(u);r[y]={value:S,var:l,varRef:f}}n[l]=a,r[o]={value:a,var:l,varRef:u};continue}const c=p=>{const b=[String(o).split(".")[0],p].join(".");if(!e[b])return p;const{reference:S}=m0(b,t==null?void 0:t.cssVarPrefix);return S},d=Ot(a)?a:{default:a};n=en(n,Object.entries(d).reduce((p,[v,b])=>{var y,S;if(!b)return p;const f=c(`${b}`);if(v==="default")return p[l]=f,p;const h=(S=(y=pu)==null?void 0:y[v])!=null?S:v;return p[h]={[l]:f},p},{})),r[o]={value:u,var:l,varRef:u}}return{cssVars:n,cssMap:r}}function FT(e,t=[]){const n=Object.assign({},e);for(const r of t)r in n&&delete n[r];return n}function jT(e,t){const n={};for(const r of t)r in e&&(n[r]=e[r]);return n}function LT(e){return typeof e=="object"&&e!=null&&!Array.isArray(e)}function g0(e,t,n={}){const{stop:r,getKey:o}=n;function i(s,a=[]){var l;if(LT(s)||Array.isArray(s)){const u={};for(const[c,d]of Object.entries(s)){const p=(l=o==null?void 0:o(c))!=null?l:c,v=[...a,p];if(r!=null&&r(s,v))return t(s,a);u[p]=i(d,v)}return u}return t(s,a)}return i(e)}var BT=["colors","borders","borderWidths","borderStyles","fonts","fontSizes","fontWeights","gradients","letterSpacings","lineHeights","radii","space","shadows","sizes","zIndices","transition","blur","breakpoints"];function VT(e){return jT(e,BT)}function OT(e){return e.semanticTokens}function NT(e){const{__cssMap:t,__cssVars:n,__breakpoints:r,...o}=e;return o}var WT=e=>db.includes(e)||e==="default";function UT({tokens:e,semanticTokens:t}){const n={};return g0(e,(r,o)=>{r!=null&&(n[o.join(".")]={isSemantic:!1,value:r})}),g0(t,(r,o)=>{r!=null&&(n[o.join(".")]={isSemantic:!0,value:r})},{stop:r=>Object.keys(r).every(WT)}),n}function HT(e){var t;const n=NT(e),r=VT(n),o=OT(n),i=UT({tokens:r,semanticTokens:o}),s=(t=n.config)==null?void 0:t.cssVarPrefix,{cssMap:a,cssVars:l}=IT(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:DT(n.breakpoints)}),n}var Ch=en({},Ia,G,aT,kl,kt,lT,vT,uT,ab,gT,Di,Ud,ae,wT,xT,yT,bT,cT,ST);Object.assign({},ae,kt,kl,ab,Di);var KT=[...Object.keys(Ch),...db],GT={...Ch,...pu},YT=e=>e in GT,XT=e=>t=>{if(!t.__breakpoints)return e;const{isResponsive:n,toArrayValue:r,media:o}=t.__breakpoints,i={};for(const s in e){let a=Jt(e[s],t);if(a==null)continue;if(a=Ot(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"&&!QT(t),JT=(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]=qT(t);return t=(r=(n=o(s))!=null?n:i(a))!=null?r:i(t),t};function eP(e){const{configs:t={},pseudos:n={},theme:r}=e,o=(i,s=!1)=>{var a,l,u;const c=Jt(i,r),d=XT(c)(r);let p={};for(let v in d){const b=d[v];let y=Jt(b,r);v in n&&(v=n[v]),ZT(v,y)&&(y=JT(r,y));let S=t[v];if(S===!0&&(S={property:v}),Ot(y)){p[v]=(a=p[v])!=null?a:{},p[v]=en({},p[v],o(y,!0));continue}let f=(u=(l=S==null?void 0:S.transform)==null?void 0:l.call(S,y,r,c))!=null?u:y;f=S!=null&&S.processResult?o(f,!0):f;const h=Jt(S==null?void 0:S.property,r);if(!s&&(S!=null&&S.static)){const m=Jt(S.static,r);p=en({},p,m)}if(h&&Array.isArray(h)){for(const m of h)p[m]=f;continue}if(h){h==="&"&&Ot(f)?p=en({},p,f):p[h]=f;continue}if(Ot(f)){p=en({},p,f);continue}p[v]=f}return p};return o}var fb=e=>t=>eP({theme:t,pseudos:pu,configs:Ch})(e);function ie(e){return{definePartsStyle(t){return t},defineMultiStyleConfig(t){return{parts:e,...t}}}}function tP(e,t){if(Array.isArray(e))return e;if(Ot(e))return t(e);if(e!=null)return[e]}function nP(e,t){for(let n=t+1;n{en(u,{[m]:p?h[m]:{[f]:h[m]}})});continue}if(!v){p?en(u,h):u[f]=h;continue}u[f]=h}}return u}}function oP(e){return t=>{var n;const{variant:r,size:o,theme:i}=t,s=rP(i);return en({},Jt((n=e.baseStyle)!=null?n:{},t),s(e,"sizes",o,t),s(e,"variants",r,t))}}function Mn(e){return FT(e,["styleConfig","size","variant","colorScheme"])}var iP={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"},sP={"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)"},aP={"ultra-fast":"50ms",faster:"100ms",fast:"150ms",normal:"200ms",slow:"300ms",slower:"400ms","ultra-slow":"500ms"},lP={property:iP,easing:sP,duration:aP},uP=lP,cP={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},dP=cP,fP={none:0,"1px":"1px solid","2px":"2px solid","4px":"4px solid","8px":"8px solid"},hP=fP,pP={base:"0em",sm:"30em",md:"48em",lg:"62em",xl:"80em","2xl":"96em"},mP=pP,gP={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"}},vP=gP,yP={none:"0",sm:"0.125rem",base:"0.25rem",md:"0.375rem",lg:"0.5rem",xl:"0.75rem","2xl":"1rem","3xl":"1.5rem",full:"9999px"},bP=yP,SP={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"},xP=SP,wP={none:0,sm:"4px",base:"8px",md:"12px",lg:"16px",xl:"24px","2xl":"40px","3xl":"64px"},kP=wP,CP={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"}},hb=CP,pb={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"},_P={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"},TP={sm:"640px",md:"768px",lg:"1024px",xl:"1280px"},PP={...pb,..._P,container:TP},mb=PP,EP={breakpoints:mP,zIndices:dP,radii:bP,blur:kP,colors:vP,...hb,sizes:mb,shadows:xP,space:pb,borders:hP,transition:uP},{defineMultiStyleConfig:$P,definePartsStyle:yi}=ie(["stepper","step","title","description","indicator","separator","icon","number"]),hn=L("stepper-indicator-size"),so=L("stepper-icon-size"),ao=L("stepper-title-font-size"),bi=L("stepper-description-font-size"),ui=L("stepper-accent-color"),AP=yi(({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"},[ui.variable]:`colors.${e}.500`,_dark:{[ui.variable]:`colors.${e}.200`}},title:{fontSize:ao.reference,fontWeight:"medium"},description:{fontSize:bi.reference,color:"chakra-subtle-text"},number:{fontSize:ao.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:so.reference,height:so.reference},indicator:{flexShrink:0,borderRadius:"full",width:hn.reference,height:hn.reference,display:"flex",justifyContent:"center",alignItems:"center","&[data-status=active]":{borderWidth:"2px",borderColor:ui.reference},"&[data-status=complete]":{bg:ui.reference,color:"chakra-inverse-text"},"&[data-status=incomplete]":{borderWidth:"2px"}},separator:{bg:"chakra-border-color",flex:"1","&[data-status=complete]":{bg:ui.reference},"&[data-orientation=horizontal]":{width:"100%",height:"2px",marginStart:"2"},"&[data-orientation=vertical]":{width:"2px",position:"absolute",height:"100%",maxHeight:`calc(100% - ${hn.reference} - 8px)`,top:`calc(${hn.reference} + 4px)`,insetStart:`calc(${hn.reference} / 2 - 1px)`}}})),RP=$P({baseStyle:AP,sizes:{xs:yi({stepper:{[hn.variable]:"sizes.4",[so.variable]:"sizes.3",[ao.variable]:"fontSizes.xs",[bi.variable]:"fontSizes.xs"}}),sm:yi({stepper:{[hn.variable]:"sizes.6",[so.variable]:"sizes.4",[ao.variable]:"fontSizes.sm",[bi.variable]:"fontSizes.xs"}}),md:yi({stepper:{[hn.variable]:"sizes.8",[so.variable]:"sizes.5",[ao.variable]:"fontSizes.md",[bi.variable]:"fontSizes.sm"}}),lg:yi({stepper:{[hn.variable]:"sizes.10",[so.variable]:"sizes.6",[ao.variable]:"fontSizes.lg",[bi.variable]:"fontSizes.md"}})},defaultProps:{size:"md",colorScheme:"blue"}});function Q(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 Q(e,t)}function i(...c){for(const d of c)d in t||(t[d]=l(d));return Q(e,t)}function s(){return Object.fromEntries(Object.entries(t).map(([d,p])=>[d,p.selector]))}function a(){return Object.fromEntries(Object.entries(t).map(([d,p])=>[d,p.className]))}function l(c){const v=`chakra-${(["container","root"].includes(c??"")?[e]:[e,c]).filter(Boolean).join("__")}`;return{className:v,selector:`.${v}`,toString:()=>c}}return{parts:o,toPart:l,extend:i,selectors:s,classnames:a,get keys(){return Object.keys(t)},__type:{}}}var zP=Q("accordion").parts("root","container","button","panel").extend("icon"),MP=Q("alert").parts("title","description","container").extend("icon","spinner"),DP=Q("avatar").parts("label","badge","container").extend("excessLabel","group"),IP=Q("breadcrumb").parts("link","item","container").extend("separator");Q("button").parts();var FP=Q("checkbox").parts("control","icon","container").extend("label");Q("progress").parts("track","filledTrack").extend("label");var jP=Q("drawer").parts("overlay","dialogContainer","dialog").extend("header","closeButton","body","footer"),LP=Q("editable").parts("preview","input","textarea"),BP=Q("form").parts("container","requiredIndicator","helperText"),VP=Q("formError").parts("text","icon"),OP=Q("input").parts("addon","field","element","group"),NP=Q("list").parts("container","item","icon"),WP=Q("menu").parts("button","list","item").extend("groupTitle","icon","command","divider"),UP=Q("modal").parts("overlay","dialogContainer","dialog").extend("header","closeButton","body","footer"),HP=Q("numberinput").parts("root","field","stepperGroup","stepper");Q("pininput").parts("field");var KP=Q("popover").parts("content","header","body","footer").extend("popper","arrow","closeButton"),GP=Q("progress").parts("label","filledTrack","track"),YP=Q("radio").parts("container","control","label"),XP=Q("select").parts("field","icon"),qP=Q("slider").parts("container","track","thumb","filledTrack","mark"),QP=Q("stat").parts("container","label","helpText","number","icon"),ZP=Q("switch").parts("container","track","thumb","label"),JP=Q("table").parts("table","thead","tbody","tr","th","td","tfoot","caption"),eE=Q("tabs").parts("root","tab","tablist","tabpanel","tabpanels","indicator"),tE=Q("tag").parts("container","label","closeButton"),nE=Q("card").parts("container","header","body","footer");Q("stepper").parts("stepper","step","title","description","indicator","separator","icon","number");function Pr(e,t,n){return Math.min(Math.max(e,n),t)}class rE extends Error{constructor(t){super(`Failed to parse color: "${t}"`)}}var Si=rE;function _h(e){if(typeof e!="string")throw new Si(e);if(e.trim().toLowerCase()==="transparent")return[0,0,0,0];let t=e.trim();t=dE.test(e)?sE(e):e;const n=aE.exec(t);if(n){const s=Array.from(n).slice(1);return[...s.slice(0,3).map(a=>parseInt(ds(a,2),16)),parseInt(ds(s[3]||"f",2),16)/255]}const r=lE.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=uE.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=cE.exec(t);if(i){const[s,a,l,u]=Array.from(i).slice(1).map(parseFloat);if(Pr(0,100,a)!==a)throw new Si(e);if(Pr(0,100,l)!==l)throw new Si(e);return[...fE(s,a,l),Number.isNaN(u)?1:u]}throw new Si(e)}function oE(e){let t=5381,n=e.length;for(;n;)t=t*33^e.charCodeAt(--n);return(t>>>0)%2341}const v0=e=>parseInt(e.replace(/_/g,""),36),iE="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=v0(t.substring(0,3)),r=v0(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 sE(e){const t=e.toLowerCase().trim(),n=iE[oE(t)];if(!n)throw new Si(e);return`#${n}`}const ds=(e,t)=>Array.from(Array(t)).map(()=>e).join(""),aE=new RegExp(`^#${ds("([a-f0-9])",3)}([a-f0-9])?$`,"i"),lE=new RegExp(`^#${ds("([a-f0-9]{2})",3)}([a-f0-9]{2})?$`,"i"),uE=new RegExp(`^rgba?\\(\\s*(\\d+)\\s*${ds(",\\s*(\\d+)\\s*",2)}(?:,\\s*([\\d.]+))?\\s*\\)$`,"i"),cE=/^hsla?\(\s*([\d.]+)\s*,\s*([\d.]+)%\s*,\s*([\d.]+)%(?:\s*,\s*([\d.]+))?\s*\)$/i,dE=/^[a-z]+$/i,y0=e=>Math.round(e*255),fE=(e,t,n)=>{let r=n/100;if(t===0)return[r,r,r].map(y0);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,p=l+c,v=u+c;return[d,p,v].map(y0)};function hE(e,t,n,r){return`rgba(${Pr(0,255,e).toFixed()}, ${Pr(0,255,t).toFixed()}, ${Pr(0,255,n).toFixed()}, ${parseFloat(Pr(0,1,r).toFixed(3))})`}function pE(e,t){const[n,r,o,i]=_h(e);return hE(n,r,o,i-t)}function mE(e){const[t,n,r,o]=_h(e);let i=s=>{const a=Pr(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 gE(e,t,n,r,o){for(t=t.split?t.split("."):t,r=0;rObject.keys(e).length===0,Qe=(e,t,n)=>{const r=gE(e,`colors.${t}`,t);try{return mE(r),r}catch{return n??"#000000"}},yE=e=>{const[t,n,r]=_h(e);return(t*299+n*587+r*114)/1e3},bE=e=>t=>{const n=Qe(t,e);return yE(n)<128?"dark":"light"},SE=e=>t=>bE(e)(t)==="dark",jo=(e,t)=>n=>{const r=Qe(n,e);return pE(r,1-t)};function b0(e="1rem",t="rgba(255, 255, 255, 0.15)"){return{backgroundImage:`linear-gradient( 45deg, ${t} 25%, transparent 25%, @@ -334,12 +334,12 @@ Error generating stack: `+i.message+` ${t} 75%, transparent 75%, transparent - )`,backgroundSize:`${e} ${e}`}}var wE=()=>`#${Math.floor(Math.random()*16777215).toString(16).padEnd(6,"0")}`;function kE(e){const t=wE();return!e||yE(e)?t:e.string&&e.colors?_E(e.string,e.colors):e.string&&!e.colors?CE(e.string):e.colors&&!e.string?TE(e.colors):t}function CE(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 _E(e,t){let n=0;if(e.length===0)return t[0];for(let r=0;rn.colorMode==="dark"?t:e}function Th(e){const{orientation:t,vertical:n,horizontal:r}=e;return t?t==="vertical"?n:r:{}}function yb(e){return Ot(e)&&e.reference?e.reference:String(e)}var mu=(e,...t)=>t.map(yb).join(` ${e} `).replace(/calc/g,""),S0=(...e)=>`calc(${mu("+",...e)})`,x0=(...e)=>`calc(${mu("-",...e)})`,Gd=(...e)=>`calc(${mu("*",...e)})`,w0=(...e)=>`calc(${mu("/",...e)})`,k0=e=>{const t=yb(e);return t!=null&&!Number.isNaN(parseFloat(t))?String(t).startsWith("-")?String(t).slice(1):`-${t}`:Gd(t,-1)},pn=Object.assign(e=>({add:(...t)=>pn(S0(e,...t)),subtract:(...t)=>pn(x0(e,...t)),multiply:(...t)=>pn(Gd(e,...t)),divide:(...t)=>pn(w0(e,...t)),negate:()=>pn(k0(e)),toString:()=>e.toString()}),{add:S0,subtract:x0,multiply:Gd,divide:w0,negate:k0});function PE(e){return!Number.isInteger(parseFloat(e.toString()))}function EE(e,t="-"){return e.replace(/\s+/g,t)}function bb(e){const t=EE(e.toString());return t.includes("\\.")?e:PE(e)?t.replace(".","\\."):e}function $E(e,t=""){return[t,bb(e)].filter(Boolean).join("-")}function AE(e,t){return`var(${bb(e)}${t?`, ${t}`:""})`}function RE(e,t=""){return`--${$E(e,t)}`}function Ee(e,t){const n=RE(e,void 0);return{variable:n,reference:AE(n,zE(void 0))}}function zE(e){return typeof e=="string"?e:e==null?void 0:e.reference}var{defineMultiStyleConfig:ME,definePartsStyle:Fa}=ie(JP.keys),Ii=Ee("switch-track-width"),Rr=Ee("switch-track-height"),mc=Ee("switch-track-diff"),DE=pn.subtract(Ii,Rr),Yd=Ee("switch-thumb-x"),ci=Ee("switch-bg"),IE=e=>{const{colorScheme:t}=e;return{borderRadius:"full",p:"0.5",width:[Ii.reference],height:[Rr.reference],transitionProperty:"common",transitionDuration:"fast",[ci.variable]:"colors.gray.300",_dark:{[ci.variable]:"colors.whiteAlpha.400"},_focusVisible:{boxShadow:"outline"},_disabled:{opacity:.4,cursor:"not-allowed"},_checked:{[ci.variable]:`colors.${t}.500`,_dark:{[ci.variable]:`colors.${t}.200`}},bg:ci.reference}},FE={bg:"white",transitionProperty:"transform",transitionDuration:"normal",borderRadius:"inherit",width:[Rr.reference],height:[Rr.reference],_checked:{transform:`translateX(${Yd.reference})`}},jE=Fa(e=>({container:{[mc.variable]:DE,[Yd.variable]:mc.reference,_rtl:{[Yd.variable]:pn(mc).negate().toString()}},track:IE(e),thumb:FE})),LE={sm:Fa({container:{[Ii.variable]:"1.375rem",[Rr.variable]:"sizes.3"}}),md:Fa({container:{[Ii.variable]:"1.875rem",[Rr.variable]:"sizes.4"}}),lg:Fa({container:{[Ii.variable]:"2.875rem",[Rr.variable]:"sizes.6"}})},BE=ME({baseStyle:jE,sizes:LE,defaultProps:{size:"md",colorScheme:"blue"}}),{defineMultiStyleConfig:VE,definePartsStyle:_o}=ie(eE.keys),OE=_o({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"}}),Cl={"&[data-is-numeric=true]":{textAlign:"end"}},NE=_o(e=>{const{colorScheme:t}=e;return{th:{color:j("gray.600","gray.400")(e),borderBottom:"1px",borderColor:j(`${t}.100`,`${t}.700`)(e),...Cl},td:{borderBottom:"1px",borderColor:j(`${t}.100`,`${t}.700`)(e),...Cl},caption:{color:j("gray.600","gray.100")(e)},tfoot:{tr:{"&:last-of-type":{th:{borderBottomWidth:0}}}}}}),WE=_o(e=>{const{colorScheme:t}=e;return{th:{color:j("gray.600","gray.400")(e),borderBottom:"1px",borderColor:j(`${t}.100`,`${t}.700`)(e),...Cl},td:{borderBottom:"1px",borderColor:j(`${t}.100`,`${t}.700`)(e),...Cl},caption:{color:j("gray.600","gray.100")(e)},tbody:{tr:{"&:nth-of-type(odd)":{"th, td":{borderBottomWidth:"1px",borderColor:j(`${t}.100`,`${t}.700`)(e)},td:{background:j(`${t}.100`,`${t}.700`)(e)}}}},tfoot:{tr:{"&:last-of-type":{th:{borderBottomWidth:0}}}}}}),UE={simple:NE,striped:WE,unstyled:{}},HE={sm:_o({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:_o({th:{px:"6",py:"3",lineHeight:"4",fontSize:"xs"},td:{px:"6",py:"4",lineHeight:"5"},caption:{px:"6",py:"2",fontSize:"sm"}}),lg:_o({th:{px:"8",py:"4",lineHeight:"5",fontSize:"sm"},td:{px:"8",py:"5",lineHeight:"6"},caption:{px:"6",py:"2",fontSize:"md"}})},KE=VE({baseStyle:OE,variants:UE,sizes:HE,defaultProps:{variant:"simple",size:"md",colorScheme:"gray"}}),rt=L("tabs-color"),Lt=L("tabs-bg"),ua=L("tabs-border-color"),{defineMultiStyleConfig:GE,definePartsStyle:on}=ie(tE.keys),YE=e=>{const{orientation:t}=e;return{display:t==="vertical"?"flex":"block"}},XE=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}}},qE=e=>{const{align:t="start",orientation:n}=e;return{justifyContent:{end:"flex-end",center:"center",start:"flex-start"}[t],flexDirection:n==="vertical"?"column":"row"}},QE={p:4},ZE=on(e=>({root:YE(e),tab:XE(e),tablist:qE(e),tabpanel:QE})),JE={sm:on({tab:{py:1,px:4,fontSize:"sm"}}),md:on({tab:{fontSize:"md",py:2,px:4}}),lg:on({tab:{fontSize:"lg",py:3,px:4}})},e5=on(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:{[rt.variable]:`colors.${t}.600`,_dark:{[rt.variable]:`colors.${t}.300`},borderColor:"currentColor"},_active:{[Lt.variable]:"colors.gray.200",_dark:{[Lt.variable]:"colors.whiteAlpha.300"}},_disabled:{_active:{bg:"none"}},color:rt.reference,bg:Lt.reference}}}),t5=on(e=>{const{colorScheme:t}=e;return{tab:{borderTopRadius:"md",border:"1px solid",borderColor:"transparent",mb:"-1px",[ua.variable]:"transparent",_selected:{[rt.variable]:`colors.${t}.600`,[ua.variable]:"colors.white",_dark:{[rt.variable]:`colors.${t}.300`,[ua.variable]:"colors.gray.800"},borderColor:"inherit",borderBottomColor:ua.reference},color:rt.reference},tablist:{mb:"-1px",borderBottom:"1px solid",borderColor:"inherit"}}}),n5=on(e=>{const{colorScheme:t}=e;return{tab:{border:"1px solid",borderColor:"inherit",[Lt.variable]:"colors.gray.50",_dark:{[Lt.variable]:"colors.whiteAlpha.50"},mb:"-1px",_notLast:{marginEnd:"-1px"},_selected:{[Lt.variable]:"colors.white",[rt.variable]:`colors.${t}.600`,_dark:{[Lt.variable]:"colors.gray.800",[rt.variable]:`colors.${t}.300`},borderColor:"inherit",borderTopColor:"currentColor",borderBottomColor:"transparent"},color:rt.reference,bg:Lt.reference},tablist:{mb:"-1px",borderBottom:"1px solid",borderColor:"inherit"}}}),r5=on(e=>{const{colorScheme:t,theme:n}=e;return{tab:{borderRadius:"full",fontWeight:"semibold",color:"gray.600",_selected:{color:Qe(n,`${t}.700`),bg:Qe(n,`${t}.100`)}}}}),o5=on(e=>{const{colorScheme:t}=e;return{tab:{borderRadius:"full",fontWeight:"semibold",[rt.variable]:"colors.gray.600",_dark:{[rt.variable]:"inherit"},_selected:{[rt.variable]:"colors.white",[Lt.variable]:`colors.${t}.600`,_dark:{[rt.variable]:"colors.gray.800",[Lt.variable]:`colors.${t}.300`}},color:rt.reference,bg:Lt.reference}}}),i5=on({}),s5={line:e5,enclosed:t5,"enclosed-colored":n5,"soft-rounded":r5,"solid-rounded":o5,unstyled:i5},a5=GE({baseStyle:ZE,sizes:JE,variants:s5,defaultProps:{size:"md",variant:"line",colorScheme:"blue"}}),xe=RT("badge",["bg","color","shadow"]),l5={px:1,textTransform:"uppercase",fontSize:"xs",borderRadius:"sm",fontWeight:"bold",bg:xe.bg.reference,color:xe.color.reference,boxShadow:xe.shadow.reference},u5=e=>{const{colorScheme:t,theme:n}=e,r=jo(`${t}.500`,.6)(n);return{[xe.bg.variable]:`colors.${t}.500`,[xe.color.variable]:"colors.white",_dark:{[xe.bg.variable]:r,[xe.color.variable]:"colors.whiteAlpha.800"}}},c5=e=>{const{colorScheme:t,theme:n}=e,r=jo(`${t}.200`,.16)(n);return{[xe.bg.variable]:`colors.${t}.100`,[xe.color.variable]:`colors.${t}.800`,_dark:{[xe.bg.variable]:r,[xe.color.variable]:`colors.${t}.200`}}},d5=e=>{const{colorScheme:t,theme:n}=e,r=jo(`${t}.200`,.8)(n);return{[xe.color.variable]:`colors.${t}.500`,_dark:{[xe.color.variable]:r},[xe.shadow.variable]:`inset 0 0 0px 1px ${xe.color.reference}`}},f5={solid:u5,subtle:c5,outline:d5},Fi={baseStyle:l5,variants:f5,defaultProps:{variant:"subtle",colorScheme:"gray"}},{defineMultiStyleConfig:h5,definePartsStyle:zr}=ie(nE.keys),C0=L("tag-bg"),_0=L("tag-color"),gc=L("tag-shadow"),ja=L("tag-min-height"),La=L("tag-min-width"),Ba=L("tag-font-size"),Va=L("tag-padding-inline"),p5={fontWeight:"medium",lineHeight:1.2,outline:0,[_0.variable]:xe.color.reference,[C0.variable]:xe.bg.reference,[gc.variable]:xe.shadow.reference,color:_0.reference,bg:C0.reference,boxShadow:gc.reference,borderRadius:"md",minH:ja.reference,minW:La.reference,fontSize:Ba.reference,px:Va.reference,_focusVisible:{[gc.variable]:"shadows.outline"}},m5={lineHeight:1.2,overflow:"visible"},g5={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}},v5=zr({container:p5,label:m5,closeButton:g5}),y5={sm:zr({container:{[ja.variable]:"sizes.5",[La.variable]:"sizes.5",[Ba.variable]:"fontSizes.xs",[Va.variable]:"space.2"},closeButton:{marginEnd:"-2px",marginStart:"0.35rem"}}),md:zr({container:{[ja.variable]:"sizes.6",[La.variable]:"sizes.6",[Ba.variable]:"fontSizes.sm",[Va.variable]:"space.2"}}),lg:zr({container:{[ja.variable]:"sizes.8",[La.variable]:"sizes.8",[Ba.variable]:"fontSizes.md",[Va.variable]:"space.3"}})},b5={subtle:zr(e=>{var t;return{container:(t=Fi.variants)==null?void 0:t.subtle(e)}}),solid:zr(e=>{var t;return{container:(t=Fi.variants)==null?void 0:t.solid(e)}}),outline:zr(e=>{var t;return{container:(t=Fi.variants)==null?void 0:t.outline(e)}})},S5=h5({variants:b5,baseStyle:v5,sizes:y5,defaultProps:{size:"md",variant:"subtle",colorScheme:"gray"}}),{definePartsStyle:vn,defineMultiStyleConfig:x5}=ie(NP.keys),lo=L("input-height"),uo=L("input-font-size"),co=L("input-padding"),fo=L("input-border-radius"),w5=vn({addon:{height:lo.reference,fontSize:uo.reference,px:co.reference,borderRadius:fo.reference},field:{width:"100%",height:lo.reference,fontSize:uo.reference,px:co.reference,borderRadius:fo.reference,minWidth:0,outline:0,position:"relative",appearance:"none",transitionProperty:"common",transitionDuration:"normal",_disabled:{opacity:.4,cursor:"not-allowed"}}}),jn={lg:{[uo.variable]:"fontSizes.lg",[co.variable]:"space.4",[fo.variable]:"radii.md",[lo.variable]:"sizes.12"},md:{[uo.variable]:"fontSizes.md",[co.variable]:"space.4",[fo.variable]:"radii.md",[lo.variable]:"sizes.10"},sm:{[uo.variable]:"fontSizes.sm",[co.variable]:"space.3",[fo.variable]:"radii.sm",[lo.variable]:"sizes.8"},xs:{[uo.variable]:"fontSizes.xs",[co.variable]:"space.2",[fo.variable]:"radii.sm",[lo.variable]:"sizes.6"}},k5={lg:vn({field:jn.lg,group:jn.lg}),md:vn({field:jn.md,group:jn.md}),sm:vn({field:jn.sm,group:jn.sm}),xs:vn({field:jn.xs,group:jn.xs})};function Ph(e){const{focusBorderColor:t,errorBorderColor:n}=e;return{focusBorderColor:t||j("blue.500","blue.300")(e),errorBorderColor:n||j("red.500","red.300")(e)}}var C5=vn(e=>{const{theme:t}=e,{focusBorderColor:n,errorBorderColor:r}=Ph(e);return{field:{border:"1px solid",borderColor:"inherit",bg:"inherit",_hover:{borderColor:j("gray.300","whiteAlpha.400")(e)},_readOnly:{boxShadow:"none !important",userSelect:"all"},_invalid:{borderColor:Qe(t,r),boxShadow:`0 0 0 1px ${Qe(t,r)}`},_focusVisible:{zIndex:1,borderColor:Qe(t,n),boxShadow:`0 0 0 1px ${Qe(t,n)}`}},addon:{border:"1px solid",borderColor:j("inherit","whiteAlpha.50")(e),bg:j("gray.100","whiteAlpha.300")(e)}}}),_5=vn(e=>{const{theme:t}=e,{focusBorderColor:n,errorBorderColor:r}=Ph(e);return{field:{border:"2px solid",borderColor:"transparent",bg:j("gray.100","whiteAlpha.50")(e),_hover:{bg:j("gray.200","whiteAlpha.100")(e)},_readOnly:{boxShadow:"none !important",userSelect:"all"},_invalid:{borderColor:Qe(t,r)},_focusVisible:{bg:"transparent",borderColor:Qe(t,n)}},addon:{border:"2px solid",borderColor:"transparent",bg:j("gray.100","whiteAlpha.50")(e)}}}),T5=vn(e=>{const{theme:t}=e,{focusBorderColor:n,errorBorderColor:r}=Ph(e);return{field:{borderBottom:"1px solid",borderColor:"inherit",borderRadius:"0",px:"0",bg:"transparent",_readOnly:{boxShadow:"none !important",userSelect:"all"},_invalid:{borderColor:Qe(t,r),boxShadow:`0px 1px 0px 0px ${Qe(t,r)}`},_focusVisible:{borderColor:Qe(t,n),boxShadow:`0px 1px 0px 0px ${Qe(t,n)}`}},addon:{borderBottom:"2px solid",borderColor:"inherit",borderRadius:"0",px:"0",bg:"transparent"}}}),P5=vn({field:{bg:"transparent",px:"0",height:"auto"},addon:{bg:"transparent",px:"0",height:"auto"}}),E5={outline:C5,filled:_5,flushed:T5,unstyled:P5},q=x5({baseStyle:w5,sizes:k5,variants:E5,defaultProps:{size:"md",variant:"outline"}}),T0,$5={...(T0=q.baseStyle)==null?void 0:T0.field,paddingY:"2",minHeight:"20",lineHeight:"short",verticalAlign:"top"},P0,E0,A5={outline:e=>{var t,n;return(n=(t=q.variants)==null?void 0:t.outline(e).field)!=null?n:{}},flushed:e=>{var t,n;return(n=(t=q.variants)==null?void 0:t.flushed(e).field)!=null?n:{}},filled:e=>{var t,n;return(n=(t=q.variants)==null?void 0:t.filled(e).field)!=null?n:{}},unstyled:(E0=(P0=q.variants)==null?void 0:P0.unstyled.field)!=null?E0:{}},$0,A0,R0,z0,M0,D0,I0,F0,R5={xs:(A0=($0=q.sizes)==null?void 0:$0.xs.field)!=null?A0:{},sm:(z0=(R0=q.sizes)==null?void 0:R0.sm.field)!=null?z0:{},md:(D0=(M0=q.sizes)==null?void 0:M0.md.field)!=null?D0:{},lg:(F0=(I0=q.sizes)==null?void 0:I0.lg.field)!=null?F0:{}},z5={baseStyle:$5,sizes:R5,variants:A5,defaultProps:{size:"md",variant:"outline"}},ca=Ee("tooltip-bg"),vc=Ee("tooltip-fg"),M5=Ee("popper-arrow-bg"),D5={bg:ca.reference,color:vc.reference,[ca.variable]:"colors.gray.700",[vc.variable]:"colors.whiteAlpha.900",_dark:{[ca.variable]:"colors.gray.300",[vc.variable]:"colors.gray.900"},[M5.variable]:ca.reference,px:"2",py:"0.5",borderRadius:"sm",fontWeight:"medium",fontSize:"sm",boxShadow:"md",maxW:"xs",zIndex:"tooltip"},I5={baseStyle:D5},{defineMultiStyleConfig:F5,definePartsStyle:xi}=ie(YP.keys),j5=e=>{const{colorScheme:t,theme:n,isIndeterminate:r,hasStripe:o}=e,i=j(b0(),b0("1rem","rgba(0,0,0,0.1)"))(e),s=j(`${t}.500`,`${t}.200`)(e),a=`linear-gradient( + )`,backgroundSize:`${e} ${e}`}}var xE=()=>`#${Math.floor(Math.random()*16777215).toString(16).padEnd(6,"0")}`;function wE(e){const t=xE();return!e||vE(e)?t:e.string&&e.colors?CE(e.string,e.colors):e.string&&!e.colors?kE(e.string):e.colors&&!e.string?_E(e.colors):t}function kE(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 CE(e,t){let n=0;if(e.length===0)return t[0];for(let r=0;rn.colorMode==="dark"?t:e}function Th(e){const{orientation:t,vertical:n,horizontal:r}=e;return t?t==="vertical"?n:r:{}}function gb(e){return Ot(e)&&e.reference?e.reference:String(e)}var mu=(e,...t)=>t.map(gb).join(` ${e} `).replace(/calc/g,""),S0=(...e)=>`calc(${mu("+",...e)})`,x0=(...e)=>`calc(${mu("-",...e)})`,Gd=(...e)=>`calc(${mu("*",...e)})`,w0=(...e)=>`calc(${mu("/",...e)})`,k0=e=>{const t=gb(e);return t!=null&&!Number.isNaN(parseFloat(t))?String(t).startsWith("-")?String(t).slice(1):`-${t}`:Gd(t,-1)},pn=Object.assign(e=>({add:(...t)=>pn(S0(e,...t)),subtract:(...t)=>pn(x0(e,...t)),multiply:(...t)=>pn(Gd(e,...t)),divide:(...t)=>pn(w0(e,...t)),negate:()=>pn(k0(e)),toString:()=>e.toString()}),{add:S0,subtract:x0,multiply:Gd,divide:w0,negate:k0});function TE(e){return!Number.isInteger(parseFloat(e.toString()))}function PE(e,t="-"){return e.replace(/\s+/g,t)}function vb(e){const t=PE(e.toString());return t.includes("\\.")?e:TE(e)?t.replace(".","\\."):e}function EE(e,t=""){return[t,vb(e)].filter(Boolean).join("-")}function $E(e,t){return`var(${vb(e)}${t?`, ${t}`:""})`}function AE(e,t=""){return`--${EE(e,t)}`}function Ee(e,t){const n=AE(e,void 0);return{variable:n,reference:$E(n,RE(void 0))}}function RE(e){return typeof e=="string"?e:e==null?void 0:e.reference}var{defineMultiStyleConfig:zE,definePartsStyle:Fa}=ie(ZP.keys),Ii=Ee("switch-track-width"),Rr=Ee("switch-track-height"),mc=Ee("switch-track-diff"),ME=pn.subtract(Ii,Rr),Yd=Ee("switch-thumb-x"),ci=Ee("switch-bg"),DE=e=>{const{colorScheme:t}=e;return{borderRadius:"full",p:"0.5",width:[Ii.reference],height:[Rr.reference],transitionProperty:"common",transitionDuration:"fast",[ci.variable]:"colors.gray.300",_dark:{[ci.variable]:"colors.whiteAlpha.400"},_focusVisible:{boxShadow:"outline"},_disabled:{opacity:.4,cursor:"not-allowed"},_checked:{[ci.variable]:`colors.${t}.500`,_dark:{[ci.variable]:`colors.${t}.200`}},bg:ci.reference}},IE={bg:"white",transitionProperty:"transform",transitionDuration:"normal",borderRadius:"inherit",width:[Rr.reference],height:[Rr.reference],_checked:{transform:`translateX(${Yd.reference})`}},FE=Fa(e=>({container:{[mc.variable]:ME,[Yd.variable]:mc.reference,_rtl:{[Yd.variable]:pn(mc).negate().toString()}},track:DE(e),thumb:IE})),jE={sm:Fa({container:{[Ii.variable]:"1.375rem",[Rr.variable]:"sizes.3"}}),md:Fa({container:{[Ii.variable]:"1.875rem",[Rr.variable]:"sizes.4"}}),lg:Fa({container:{[Ii.variable]:"2.875rem",[Rr.variable]:"sizes.6"}})},LE=zE({baseStyle:FE,sizes:jE,defaultProps:{size:"md",colorScheme:"blue"}}),{defineMultiStyleConfig:BE,definePartsStyle:_o}=ie(JP.keys),VE=_o({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"}}),Cl={"&[data-is-numeric=true]":{textAlign:"end"}},OE=_o(e=>{const{colorScheme:t}=e;return{th:{color:j("gray.600","gray.400")(e),borderBottom:"1px",borderColor:j(`${t}.100`,`${t}.700`)(e),...Cl},td:{borderBottom:"1px",borderColor:j(`${t}.100`,`${t}.700`)(e),...Cl},caption:{color:j("gray.600","gray.100")(e)},tfoot:{tr:{"&:last-of-type":{th:{borderBottomWidth:0}}}}}}),NE=_o(e=>{const{colorScheme:t}=e;return{th:{color:j("gray.600","gray.400")(e),borderBottom:"1px",borderColor:j(`${t}.100`,`${t}.700`)(e),...Cl},td:{borderBottom:"1px",borderColor:j(`${t}.100`,`${t}.700`)(e),...Cl},caption:{color:j("gray.600","gray.100")(e)},tbody:{tr:{"&:nth-of-type(odd)":{"th, td":{borderBottomWidth:"1px",borderColor:j(`${t}.100`,`${t}.700`)(e)},td:{background:j(`${t}.100`,`${t}.700`)(e)}}}},tfoot:{tr:{"&:last-of-type":{th:{borderBottomWidth:0}}}}}}),WE={simple:OE,striped:NE,unstyled:{}},UE={sm:_o({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:_o({th:{px:"6",py:"3",lineHeight:"4",fontSize:"xs"},td:{px:"6",py:"4",lineHeight:"5"},caption:{px:"6",py:"2",fontSize:"sm"}}),lg:_o({th:{px:"8",py:"4",lineHeight:"5",fontSize:"sm"},td:{px:"8",py:"5",lineHeight:"6"},caption:{px:"6",py:"2",fontSize:"md"}})},HE=BE({baseStyle:VE,variants:WE,sizes:UE,defaultProps:{variant:"simple",size:"md",colorScheme:"gray"}}),rt=L("tabs-color"),Lt=L("tabs-bg"),ua=L("tabs-border-color"),{defineMultiStyleConfig:KE,definePartsStyle:on}=ie(eE.keys),GE=e=>{const{orientation:t}=e;return{display:t==="vertical"?"flex":"block"}},YE=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}}},XE=e=>{const{align:t="start",orientation:n}=e;return{justifyContent:{end:"flex-end",center:"center",start:"flex-start"}[t],flexDirection:n==="vertical"?"column":"row"}},qE={p:4},QE=on(e=>({root:GE(e),tab:YE(e),tablist:XE(e),tabpanel:qE})),ZE={sm:on({tab:{py:1,px:4,fontSize:"sm"}}),md:on({tab:{fontSize:"md",py:2,px:4}}),lg:on({tab:{fontSize:"lg",py:3,px:4}})},JE=on(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:{[rt.variable]:`colors.${t}.600`,_dark:{[rt.variable]:`colors.${t}.300`},borderColor:"currentColor"},_active:{[Lt.variable]:"colors.gray.200",_dark:{[Lt.variable]:"colors.whiteAlpha.300"}},_disabled:{_active:{bg:"none"}},color:rt.reference,bg:Lt.reference}}}),e5=on(e=>{const{colorScheme:t}=e;return{tab:{borderTopRadius:"md",border:"1px solid",borderColor:"transparent",mb:"-1px",[ua.variable]:"transparent",_selected:{[rt.variable]:`colors.${t}.600`,[ua.variable]:"colors.white",_dark:{[rt.variable]:`colors.${t}.300`,[ua.variable]:"colors.gray.800"},borderColor:"inherit",borderBottomColor:ua.reference},color:rt.reference},tablist:{mb:"-1px",borderBottom:"1px solid",borderColor:"inherit"}}}),t5=on(e=>{const{colorScheme:t}=e;return{tab:{border:"1px solid",borderColor:"inherit",[Lt.variable]:"colors.gray.50",_dark:{[Lt.variable]:"colors.whiteAlpha.50"},mb:"-1px",_notLast:{marginEnd:"-1px"},_selected:{[Lt.variable]:"colors.white",[rt.variable]:`colors.${t}.600`,_dark:{[Lt.variable]:"colors.gray.800",[rt.variable]:`colors.${t}.300`},borderColor:"inherit",borderTopColor:"currentColor",borderBottomColor:"transparent"},color:rt.reference,bg:Lt.reference},tablist:{mb:"-1px",borderBottom:"1px solid",borderColor:"inherit"}}}),n5=on(e=>{const{colorScheme:t,theme:n}=e;return{tab:{borderRadius:"full",fontWeight:"semibold",color:"gray.600",_selected:{color:Qe(n,`${t}.700`),bg:Qe(n,`${t}.100`)}}}}),r5=on(e=>{const{colorScheme:t}=e;return{tab:{borderRadius:"full",fontWeight:"semibold",[rt.variable]:"colors.gray.600",_dark:{[rt.variable]:"inherit"},_selected:{[rt.variable]:"colors.white",[Lt.variable]:`colors.${t}.600`,_dark:{[rt.variable]:"colors.gray.800",[Lt.variable]:`colors.${t}.300`}},color:rt.reference,bg:Lt.reference}}}),o5=on({}),i5={line:JE,enclosed:e5,"enclosed-colored":t5,"soft-rounded":n5,"solid-rounded":r5,unstyled:o5},s5=KE({baseStyle:QE,sizes:ZE,variants:i5,defaultProps:{size:"md",variant:"line",colorScheme:"blue"}}),xe=AT("badge",["bg","color","shadow"]),a5={px:1,textTransform:"uppercase",fontSize:"xs",borderRadius:"sm",fontWeight:"bold",bg:xe.bg.reference,color:xe.color.reference,boxShadow:xe.shadow.reference},l5=e=>{const{colorScheme:t,theme:n}=e,r=jo(`${t}.500`,.6)(n);return{[xe.bg.variable]:`colors.${t}.500`,[xe.color.variable]:"colors.white",_dark:{[xe.bg.variable]:r,[xe.color.variable]:"colors.whiteAlpha.800"}}},u5=e=>{const{colorScheme:t,theme:n}=e,r=jo(`${t}.200`,.16)(n);return{[xe.bg.variable]:`colors.${t}.100`,[xe.color.variable]:`colors.${t}.800`,_dark:{[xe.bg.variable]:r,[xe.color.variable]:`colors.${t}.200`}}},c5=e=>{const{colorScheme:t,theme:n}=e,r=jo(`${t}.200`,.8)(n);return{[xe.color.variable]:`colors.${t}.500`,_dark:{[xe.color.variable]:r},[xe.shadow.variable]:`inset 0 0 0px 1px ${xe.color.reference}`}},d5={solid:l5,subtle:u5,outline:c5},Fi={baseStyle:a5,variants:d5,defaultProps:{variant:"subtle",colorScheme:"gray"}},{defineMultiStyleConfig:f5,definePartsStyle:zr}=ie(tE.keys),C0=L("tag-bg"),_0=L("tag-color"),gc=L("tag-shadow"),ja=L("tag-min-height"),La=L("tag-min-width"),Ba=L("tag-font-size"),Va=L("tag-padding-inline"),h5={fontWeight:"medium",lineHeight:1.2,outline:0,[_0.variable]:xe.color.reference,[C0.variable]:xe.bg.reference,[gc.variable]:xe.shadow.reference,color:_0.reference,bg:C0.reference,boxShadow:gc.reference,borderRadius:"md",minH:ja.reference,minW:La.reference,fontSize:Ba.reference,px:Va.reference,_focusVisible:{[gc.variable]:"shadows.outline"}},p5={lineHeight:1.2,overflow:"visible"},m5={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}},g5=zr({container:h5,label:p5,closeButton:m5}),v5={sm:zr({container:{[ja.variable]:"sizes.5",[La.variable]:"sizes.5",[Ba.variable]:"fontSizes.xs",[Va.variable]:"space.2"},closeButton:{marginEnd:"-2px",marginStart:"0.35rem"}}),md:zr({container:{[ja.variable]:"sizes.6",[La.variable]:"sizes.6",[Ba.variable]:"fontSizes.sm",[Va.variable]:"space.2"}}),lg:zr({container:{[ja.variable]:"sizes.8",[La.variable]:"sizes.8",[Ba.variable]:"fontSizes.md",[Va.variable]:"space.3"}})},y5={subtle:zr(e=>{var t;return{container:(t=Fi.variants)==null?void 0:t.subtle(e)}}),solid:zr(e=>{var t;return{container:(t=Fi.variants)==null?void 0:t.solid(e)}}),outline:zr(e=>{var t;return{container:(t=Fi.variants)==null?void 0:t.outline(e)}})},b5=f5({variants:y5,baseStyle:g5,sizes:v5,defaultProps:{size:"md",variant:"subtle",colorScheme:"gray"}}),{definePartsStyle:vn,defineMultiStyleConfig:S5}=ie(OP.keys),lo=L("input-height"),uo=L("input-font-size"),co=L("input-padding"),fo=L("input-border-radius"),x5=vn({addon:{height:lo.reference,fontSize:uo.reference,px:co.reference,borderRadius:fo.reference},field:{width:"100%",height:lo.reference,fontSize:uo.reference,px:co.reference,borderRadius:fo.reference,minWidth:0,outline:0,position:"relative",appearance:"none",transitionProperty:"common",transitionDuration:"normal",_disabled:{opacity:.4,cursor:"not-allowed"}}}),jn={lg:{[uo.variable]:"fontSizes.lg",[co.variable]:"space.4",[fo.variable]:"radii.md",[lo.variable]:"sizes.12"},md:{[uo.variable]:"fontSizes.md",[co.variable]:"space.4",[fo.variable]:"radii.md",[lo.variable]:"sizes.10"},sm:{[uo.variable]:"fontSizes.sm",[co.variable]:"space.3",[fo.variable]:"radii.sm",[lo.variable]:"sizes.8"},xs:{[uo.variable]:"fontSizes.xs",[co.variable]:"space.2",[fo.variable]:"radii.sm",[lo.variable]:"sizes.6"}},w5={lg:vn({field:jn.lg,group:jn.lg}),md:vn({field:jn.md,group:jn.md}),sm:vn({field:jn.sm,group:jn.sm}),xs:vn({field:jn.xs,group:jn.xs})};function Ph(e){const{focusBorderColor:t,errorBorderColor:n}=e;return{focusBorderColor:t||j("blue.500","blue.300")(e),errorBorderColor:n||j("red.500","red.300")(e)}}var k5=vn(e=>{const{theme:t}=e,{focusBorderColor:n,errorBorderColor:r}=Ph(e);return{field:{border:"1px solid",borderColor:"inherit",bg:"inherit",_hover:{borderColor:j("gray.300","whiteAlpha.400")(e)},_readOnly:{boxShadow:"none !important",userSelect:"all"},_invalid:{borderColor:Qe(t,r),boxShadow:`0 0 0 1px ${Qe(t,r)}`},_focusVisible:{zIndex:1,borderColor:Qe(t,n),boxShadow:`0 0 0 1px ${Qe(t,n)}`}},addon:{border:"1px solid",borderColor:j("inherit","whiteAlpha.50")(e),bg:j("gray.100","whiteAlpha.300")(e)}}}),C5=vn(e=>{const{theme:t}=e,{focusBorderColor:n,errorBorderColor:r}=Ph(e);return{field:{border:"2px solid",borderColor:"transparent",bg:j("gray.100","whiteAlpha.50")(e),_hover:{bg:j("gray.200","whiteAlpha.100")(e)},_readOnly:{boxShadow:"none !important",userSelect:"all"},_invalid:{borderColor:Qe(t,r)},_focusVisible:{bg:"transparent",borderColor:Qe(t,n)}},addon:{border:"2px solid",borderColor:"transparent",bg:j("gray.100","whiteAlpha.50")(e)}}}),_5=vn(e=>{const{theme:t}=e,{focusBorderColor:n,errorBorderColor:r}=Ph(e);return{field:{borderBottom:"1px solid",borderColor:"inherit",borderRadius:"0",px:"0",bg:"transparent",_readOnly:{boxShadow:"none !important",userSelect:"all"},_invalid:{borderColor:Qe(t,r),boxShadow:`0px 1px 0px 0px ${Qe(t,r)}`},_focusVisible:{borderColor:Qe(t,n),boxShadow:`0px 1px 0px 0px ${Qe(t,n)}`}},addon:{borderBottom:"2px solid",borderColor:"inherit",borderRadius:"0",px:"0",bg:"transparent"}}}),T5=vn({field:{bg:"transparent",px:"0",height:"auto"},addon:{bg:"transparent",px:"0",height:"auto"}}),P5={outline:k5,filled:C5,flushed:_5,unstyled:T5},q=S5({baseStyle:x5,sizes:w5,variants:P5,defaultProps:{size:"md",variant:"outline"}}),T0,E5={...(T0=q.baseStyle)==null?void 0:T0.field,paddingY:"2",minHeight:"20",lineHeight:"short",verticalAlign:"top"},P0,E0,$5={outline:e=>{var t,n;return(n=(t=q.variants)==null?void 0:t.outline(e).field)!=null?n:{}},flushed:e=>{var t,n;return(n=(t=q.variants)==null?void 0:t.flushed(e).field)!=null?n:{}},filled:e=>{var t,n;return(n=(t=q.variants)==null?void 0:t.filled(e).field)!=null?n:{}},unstyled:(E0=(P0=q.variants)==null?void 0:P0.unstyled.field)!=null?E0:{}},$0,A0,R0,z0,M0,D0,I0,F0,A5={xs:(A0=($0=q.sizes)==null?void 0:$0.xs.field)!=null?A0:{},sm:(z0=(R0=q.sizes)==null?void 0:R0.sm.field)!=null?z0:{},md:(D0=(M0=q.sizes)==null?void 0:M0.md.field)!=null?D0:{},lg:(F0=(I0=q.sizes)==null?void 0:I0.lg.field)!=null?F0:{}},R5={baseStyle:E5,sizes:A5,variants:$5,defaultProps:{size:"md",variant:"outline"}},ca=Ee("tooltip-bg"),vc=Ee("tooltip-fg"),z5=Ee("popper-arrow-bg"),M5={bg:ca.reference,color:vc.reference,[ca.variable]:"colors.gray.700",[vc.variable]:"colors.whiteAlpha.900",_dark:{[ca.variable]:"colors.gray.300",[vc.variable]:"colors.gray.900"},[z5.variable]:ca.reference,px:"2",py:"0.5",borderRadius:"sm",fontWeight:"medium",fontSize:"sm",boxShadow:"md",maxW:"xs",zIndex:"tooltip"},D5={baseStyle:M5},{defineMultiStyleConfig:I5,definePartsStyle:xi}=ie(GP.keys),F5=e=>{const{colorScheme:t,theme:n,isIndeterminate:r,hasStripe:o}=e,i=j(b0(),b0("1rem","rgba(0,0,0,0.1)"))(e),s=j(`${t}.500`,`${t}.200`)(e),a=`linear-gradient( to right, transparent 0%, ${Qe(n,s)} 50%, transparent 100% - )`;return{...!r&&o&&i,...r?{bgImage:a}:{bgColor:s}}},L5={lineHeight:"1",fontSize:"0.25em",fontWeight:"bold",color:"white"},B5=e=>({bg:j("gray.100","whiteAlpha.300")(e)}),V5=e=>({transitionProperty:"common",transitionDuration:"slow",...j5(e)}),O5=xi(e=>({label:L5,filledTrack:V5(e),track:B5(e)})),N5={xs:xi({track:{h:"1"}}),sm:xi({track:{h:"2"}}),md:xi({track:{h:"3"}}),lg:xi({track:{h:"4"}})},W5=F5({sizes:N5,baseStyle:O5,defaultProps:{size:"md",colorScheme:"blue"}}),U5=e=>typeof e=="function";function Je(e,...t){return U5(e)?e(...t):e}var{definePartsStyle:Oa,defineMultiStyleConfig:H5}=ie(jP.keys),ji=L("checkbox-size"),K5=e=>{const{colorScheme:t}=e;return{w:ji.reference,h:ji.reference,transitionProperty:"box-shadow",transitionDuration:"normal",border:"2px solid",borderRadius:"sm",borderColor:"inherit",color:"white",_checked:{bg:j(`${t}.500`,`${t}.200`)(e),borderColor:j(`${t}.500`,`${t}.200`)(e),color:j("white","gray.900")(e),_hover:{bg:j(`${t}.600`,`${t}.300`)(e),borderColor:j(`${t}.600`,`${t}.300`)(e)},_disabled:{borderColor:j("gray.200","transparent")(e),bg:j("gray.200","whiteAlpha.300")(e),color:j("gray.500","whiteAlpha.500")(e)}},_indeterminate:{bg:j(`${t}.500`,`${t}.200`)(e),borderColor:j(`${t}.500`,`${t}.200`)(e),color:j("white","gray.900")(e)},_disabled:{bg:j("gray.100","whiteAlpha.100")(e),borderColor:j("gray.100","transparent")(e)},_focusVisible:{boxShadow:"outline"},_invalid:{borderColor:j("red.500","red.300")(e)}}},G5={_disabled:{cursor:"not-allowed"}},Y5={userSelect:"none",_disabled:{opacity:.4}},X5={transitionProperty:"transform",transitionDuration:"normal"},q5=Oa(e=>({icon:X5,container:G5,control:Je(K5,e),label:Y5})),Q5={sm:Oa({control:{[ji.variable]:"sizes.3"},label:{fontSize:"sm"},icon:{fontSize:"3xs"}}),md:Oa({control:{[ji.variable]:"sizes.4"},label:{fontSize:"md"},icon:{fontSize:"2xs"}}),lg:Oa({control:{[ji.variable]:"sizes.5"},label:{fontSize:"lg"},icon:{fontSize:"2xs"}})},_l=H5({baseStyle:q5,sizes:Q5,defaultProps:{size:"md",colorScheme:"blue"}}),{defineMultiStyleConfig:Z5,definePartsStyle:Na}=ie(XP.keys),J5=e=>{var t;const n=(t=Je(_l.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"}}}},e$=Na(e=>{var t,n,r,o;return{label:(n=(t=_l).baseStyle)==null?void 0:n.call(t,e).label,container:(o=(r=_l).baseStyle)==null?void 0:o.call(r,e).container,control:J5(e)}}),t$={md:Na({control:{w:"4",h:"4"},label:{fontSize:"md"}}),lg:Na({control:{w:"5",h:"5"},label:{fontSize:"lg"}}),sm:Na({control:{width:"3",height:"3"},label:{fontSize:"sm"}})},n$=Z5({baseStyle:e$,sizes:t$,defaultProps:{size:"md",colorScheme:"blue"}}),{defineMultiStyleConfig:r$,definePartsStyle:o$}=ie(qP.keys),da=L("select-bg"),j0,i$={...(j0=q.baseStyle)==null?void 0:j0.field,appearance:"none",paddingBottom:"1px",lineHeight:"normal",bg:da.reference,[da.variable]:"colors.white",_dark:{[da.variable]:"colors.gray.700"},"> option, > optgroup":{bg:da.reference}},s$={width:"6",height:"100%",insetEnd:"2",position:"relative",color:"currentColor",fontSize:"xl",_disabled:{opacity:.5}},a$=o$({field:i$,icon:s$}),fa={paddingInlineEnd:"8"},L0,B0,V0,O0,N0,W0,U0,H0,l$={lg:{...(L0=q.sizes)==null?void 0:L0.lg,field:{...(B0=q.sizes)==null?void 0:B0.lg.field,...fa}},md:{...(V0=q.sizes)==null?void 0:V0.md,field:{...(O0=q.sizes)==null?void 0:O0.md.field,...fa}},sm:{...(N0=q.sizes)==null?void 0:N0.sm,field:{...(W0=q.sizes)==null?void 0:W0.sm.field,...fa}},xs:{...(U0=q.sizes)==null?void 0:U0.xs,field:{...(H0=q.sizes)==null?void 0:H0.xs.field,...fa},icon:{insetEnd:"1"}}},u$=r$({baseStyle:a$,sizes:l$,variants:q.variants,defaultProps:q.defaultProps}),yc=L("skeleton-start-color"),bc=L("skeleton-end-color"),c$={[yc.variable]:"colors.gray.100",[bc.variable]:"colors.gray.400",_dark:{[yc.variable]:"colors.gray.800",[bc.variable]:"colors.gray.600"},background:yc.reference,borderColor:bc.reference,opacity:.7,borderRadius:"sm"},d$={baseStyle:c$},Sc=L("skip-link-bg"),f$={borderRadius:"md",fontWeight:"semibold",_focusVisible:{boxShadow:"outline",padding:"4",position:"fixed",top:"6",insetStart:"6",[Sc.variable]:"colors.white",_dark:{[Sc.variable]:"colors.gray.700"},bg:Sc.reference}},h$={baseStyle:f$},{defineMultiStyleConfig:p$,definePartsStyle:gu}=ie(QP.keys),fs=L("slider-thumb-size"),hs=L("slider-track-size"),Un=L("slider-bg"),m$=e=>{const{orientation:t}=e;return{display:"inline-block",position:"relative",cursor:"pointer",_disabled:{opacity:.6,cursor:"default",pointerEvents:"none"},...Th({orientation:t,vertical:{h:"100%"},horizontal:{w:"100%"}})}},g$=e=>({...Th({orientation:e.orientation,horizontal:{h:hs.reference},vertical:{w:hs.reference}}),overflow:"hidden",borderRadius:"sm",[Un.variable]:"colors.gray.200",_dark:{[Un.variable]:"colors.whiteAlpha.200"},_disabled:{[Un.variable]:"colors.gray.300",_dark:{[Un.variable]:"colors.whiteAlpha.300"}},bg:Un.reference}),v$=e=>{const{orientation:t}=e;return{...Th({orientation:t,vertical:{left:"50%",transform:"translateX(-50%)",_active:{transform:"translateX(-50%) scale(1.15)"}},horizontal:{top:"50%",transform:"translateY(-50%)",_active:{transform:"translateY(-50%) scale(1.15)"}}}),w:fs.reference,h:fs.reference,display:"flex",alignItems:"center",justifyContent:"center",position:"absolute",outline:0,zIndex:1,borderRadius:"full",bg:"white",boxShadow:"base",border:"1px solid",borderColor:"transparent",transitionProperty:"transform",transitionDuration:"normal",_focusVisible:{boxShadow:"outline"},_disabled:{bg:"gray.300"}}},y$=e=>{const{colorScheme:t}=e;return{width:"inherit",height:"inherit",[Un.variable]:`colors.${t}.500`,_dark:{[Un.variable]:`colors.${t}.200`},bg:Un.reference}},b$=gu(e=>({container:m$(e),track:g$(e),thumb:v$(e),filledTrack:y$(e)})),S$=gu({container:{[fs.variable]:"sizes.4",[hs.variable]:"sizes.1"}}),x$=gu({container:{[fs.variable]:"sizes.3.5",[hs.variable]:"sizes.1"}}),w$=gu({container:{[fs.variable]:"sizes.2.5",[hs.variable]:"sizes.0.5"}}),k$={lg:S$,md:x$,sm:w$},C$=p$({baseStyle:b$,sizes:k$,defaultProps:{size:"md",colorScheme:"blue"}}),kr=Ee("spinner-size"),_$={width:[kr.reference],height:[kr.reference]},T$={xs:{[kr.variable]:"sizes.3"},sm:{[kr.variable]:"sizes.4"},md:{[kr.variable]:"sizes.6"},lg:{[kr.variable]:"sizes.8"},xl:{[kr.variable]:"sizes.12"}},P$={baseStyle:_$,sizes:T$,defaultProps:{size:"md"}},{defineMultiStyleConfig:E$,definePartsStyle:Sb}=ie(ZP.keys),$$={fontWeight:"medium"},A$={opacity:.8,marginBottom:"2"},R$={verticalAlign:"baseline",fontWeight:"semibold"},z$={marginEnd:1,w:"3.5",h:"3.5",verticalAlign:"middle"},M$=Sb({container:{},label:$$,helpText:A$,number:R$,icon:z$}),D$={md:Sb({label:{fontSize:"sm"},helpText:{fontSize:"sm"},number:{fontSize:"2xl"}})},I$=E$({baseStyle:M$,sizes:D$,defaultProps:{size:"md"}}),xc=L("kbd-bg"),F$={[xc.variable]:"colors.gray.100",_dark:{[xc.variable]:"colors.whiteAlpha.100"},bg:xc.reference,borderRadius:"md",borderWidth:"1px",borderBottomWidth:"3px",fontSize:"0.8em",fontWeight:"bold",lineHeight:"normal",px:"0.4em",whiteSpace:"nowrap"},j$={baseStyle:F$},L$={transitionProperty:"common",transitionDuration:"fast",transitionTimingFunction:"ease-out",cursor:"pointer",textDecoration:"none",outline:"none",color:"inherit",_hover:{textDecoration:"underline"},_focusVisible:{boxShadow:"outline"}},B$={baseStyle:L$},{defineMultiStyleConfig:V$,definePartsStyle:O$}=ie(WP.keys),N$={marginEnd:"2",display:"inline",verticalAlign:"text-bottom"},W$=O$({icon:N$}),U$=V$({baseStyle:W$}),{defineMultiStyleConfig:H$,definePartsStyle:K$}=ie(UP.keys),Yt=L("menu-bg"),wc=L("menu-shadow"),G$={[Yt.variable]:"#fff",[wc.variable]:"shadows.sm",_dark:{[Yt.variable]:"colors.gray.700",[wc.variable]:"shadows.dark-lg"},color:"inherit",minW:"3xs",py:"2",zIndex:1,borderRadius:"md",borderWidth:"1px",bg:Yt.reference,boxShadow:wc.reference},Y$={py:"1.5",px:"3",transitionProperty:"background",transitionDuration:"ultra-fast",transitionTimingFunction:"ease-in",_focus:{[Yt.variable]:"colors.gray.100",_dark:{[Yt.variable]:"colors.whiteAlpha.100"}},_active:{[Yt.variable]:"colors.gray.200",_dark:{[Yt.variable]:"colors.whiteAlpha.200"}},_expanded:{[Yt.variable]:"colors.gray.100",_dark:{[Yt.variable]:"colors.whiteAlpha.100"}},_disabled:{opacity:.4,cursor:"not-allowed"},bg:Yt.reference},X$={mx:4,my:2,fontWeight:"semibold",fontSize:"sm"},q$={display:"inline-flex",alignItems:"center",justifyContent:"center",flexShrink:0},Q$={opacity:.6},Z$={border:0,borderBottom:"1px solid",borderColor:"inherit",my:"2",opacity:.6},J$={transitionProperty:"common",transitionDuration:"normal"},eA=K$({button:J$,list:G$,item:Y$,groupTitle:X$,icon:q$,command:Q$,divider:Z$}),tA=H$({baseStyle:eA}),{defineMultiStyleConfig:nA,definePartsStyle:Xd}=ie(HP.keys),kc=L("modal-bg"),Cc=L("modal-shadow"),rA={bg:"blackAlpha.600",zIndex:"modal"},oA=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"}},iA=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,[kc.variable]:"colors.white",[Cc.variable]:"shadows.lg",_dark:{[kc.variable]:"colors.gray.700",[Cc.variable]:"shadows.dark-lg"},bg:kc.reference,boxShadow:Cc.reference}},sA={px:"6",py:"4",fontSize:"xl",fontWeight:"semibold"},aA={position:"absolute",top:"2",insetEnd:"3"},lA=e=>{const{scrollBehavior:t}=e;return{px:"6",py:"2",flex:"1",overflow:t==="inside"?"auto":void 0}},uA={px:"6",py:"4"},cA=Xd(e=>({overlay:rA,dialogContainer:Je(oA,e),dialog:Je(iA,e),header:sA,closeButton:aA,body:Je(lA,e),footer:uA}));function Mt(e){return Xd(e==="full"?{dialog:{maxW:"100vw",minH:"$100vh",my:"0",borderRadius:"0"}}:{dialog:{maxW:e}})}var dA={xs:Mt("xs"),sm:Mt("sm"),md:Mt("md"),lg:Mt("lg"),xl:Mt("xl"),"2xl":Mt("2xl"),"3xl":Mt("3xl"),"4xl":Mt("4xl"),"5xl":Mt("5xl"),"6xl":Mt("6xl"),full:Mt("full")},fA=nA({baseStyle:cA,sizes:dA,defaultProps:{size:"md"}}),{defineMultiStyleConfig:hA,definePartsStyle:xb}=ie(KP.keys),Eh=Ee("number-input-stepper-width"),wb=Ee("number-input-input-padding"),pA=pn(Eh).add("0.5rem").toString(),_c=Ee("number-input-bg"),Tc=Ee("number-input-color"),Pc=Ee("number-input-border-color"),mA={[Eh.variable]:"sizes.6",[wb.variable]:pA},gA=e=>{var t,n;return(n=(t=Je(q.baseStyle,e))==null?void 0:t.field)!=null?n:{}},vA={width:Eh.reference},yA={borderStart:"1px solid",borderStartColor:Pc.reference,color:Tc.reference,bg:_c.reference,[Tc.variable]:"colors.chakra-body-text",[Pc.variable]:"colors.chakra-border-color",_dark:{[Tc.variable]:"colors.whiteAlpha.800",[Pc.variable]:"colors.whiteAlpha.300"},_active:{[_c.variable]:"colors.gray.200",_dark:{[_c.variable]:"colors.whiteAlpha.300"}},_disabled:{opacity:.4,cursor:"not-allowed"}},bA=xb(e=>{var t;return{root:mA,field:(t=Je(gA,e))!=null?t:{},stepperGroup:vA,stepper:yA}});function ha(e){var t,n,r;const o=(t=q.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=mb.fontSizes[s];return xb({field:{...o.field,paddingInlineEnd:wb.reference,verticalAlign:"top"},stepper:{fontSize:pn(a).multiply(.75).toString(),_first:{borderTopEndRadius:i[e]},_last:{borderBottomEndRadius:i[e],mt:"-1px",borderTopWidth:1}}})}var SA={xs:ha("xs"),sm:ha("sm"),md:ha("md"),lg:ha("lg")},xA=hA({baseStyle:bA,sizes:SA,variants:q.variants,defaultProps:q.defaultProps}),K0,wA={...(K0=q.baseStyle)==null?void 0:K0.field,textAlign:"center"},kA={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"}},G0,Y0,CA={outline:e=>{var t,n,r;return(r=(n=Je((t=q.variants)==null?void 0:t.outline,e))==null?void 0:n.field)!=null?r:{}},flushed:e=>{var t,n,r;return(r=(n=Je((t=q.variants)==null?void 0:t.flushed,e))==null?void 0:n.field)!=null?r:{}},filled:e=>{var t,n,r;return(r=(n=Je((t=q.variants)==null?void 0:t.filled,e))==null?void 0:n.field)!=null?r:{}},unstyled:(Y0=(G0=q.variants)==null?void 0:G0.unstyled.field)!=null?Y0:{}},_A={baseStyle:wA,sizes:kA,variants:CA,defaultProps:q.defaultProps},{defineMultiStyleConfig:TA,definePartsStyle:PA}=ie(GP.keys),pa=Ee("popper-bg"),EA=Ee("popper-arrow-bg"),X0=Ee("popper-arrow-shadow-color"),$A={zIndex:10},AA={[pa.variable]:"colors.white",bg:pa.reference,[EA.variable]:pa.reference,[X0.variable]:"colors.gray.200",_dark:{[pa.variable]:"colors.gray.700",[X0.variable]:"colors.whiteAlpha.300"},width:"xs",border:"1px solid",borderColor:"inherit",borderRadius:"md",boxShadow:"sm",zIndex:"inherit",_focusVisible:{outline:0,boxShadow:"outline"}},RA={px:3,py:2,borderBottomWidth:"1px"},zA={px:3,py:2},MA={px:3,py:2,borderTopWidth:"1px"},DA={position:"absolute",borderRadius:"md",top:1,insetEnd:2,padding:2},IA=PA({popper:$A,content:AA,header:RA,body:zA,footer:MA,closeButton:DA}),FA=TA({baseStyle:IA}),{definePartsStyle:qd,defineMultiStyleConfig:jA}=ie(LP.keys),Ec=L("drawer-bg"),$c=L("drawer-box-shadow");function Gr(e){return qd(e==="full"?{dialog:{maxW:"100vw",h:"100vh"}}:{dialog:{maxW:e}})}var LA={bg:"blackAlpha.600",zIndex:"modal"},BA={display:"flex",zIndex:"modal",justifyContent:"center"},VA=e=>{const{isFullHeight:t}=e;return{...t&&{height:"100vh"},zIndex:"modal",maxH:"100vh",color:"inherit",[Ec.variable]:"colors.white",[$c.variable]:"shadows.lg",_dark:{[Ec.variable]:"colors.gray.700",[$c.variable]:"shadows.dark-lg"},bg:Ec.reference,boxShadow:$c.reference}},OA={px:"6",py:"4",fontSize:"xl",fontWeight:"semibold"},NA={position:"absolute",top:"2",insetEnd:"3"},WA={px:"6",py:"2",flex:"1",overflow:"auto"},UA={px:"6",py:"4"},HA=qd(e=>({overlay:LA,dialogContainer:BA,dialog:Je(VA,e),header:OA,closeButton:NA,body:WA,footer:UA})),KA={xs:Gr("xs"),sm:Gr("md"),md:Gr("lg"),lg:Gr("2xl"),xl:Gr("4xl"),full:Gr("full")},GA=jA({baseStyle:HA,sizes:KA,defaultProps:{size:"xs"}}),{definePartsStyle:YA,defineMultiStyleConfig:XA}=ie(BP.keys),qA={borderRadius:"md",py:"1",transitionProperty:"common",transitionDuration:"normal"},QA={borderRadius:"md",py:"1",transitionProperty:"common",transitionDuration:"normal",width:"full",_focusVisible:{boxShadow:"outline"},_placeholder:{opacity:.6}},ZA={borderRadius:"md",py:"1",transitionProperty:"common",transitionDuration:"normal",width:"full",_focusVisible:{boxShadow:"outline"},_placeholder:{opacity:.6}},JA=YA({preview:qA,input:QA,textarea:ZA}),eR=XA({baseStyle:JA}),{definePartsStyle:tR,defineMultiStyleConfig:nR}=ie(VP.keys),To=L("form-control-color"),rR={marginStart:"1",[To.variable]:"colors.red.500",_dark:{[To.variable]:"colors.red.300"},color:To.reference},oR={mt:"2",[To.variable]:"colors.gray.600",_dark:{[To.variable]:"colors.whiteAlpha.600"},color:To.reference,lineHeight:"normal",fontSize:"sm"},iR=tR({container:{width:"100%",position:"relative"},requiredIndicator:rR,helperText:oR}),sR=nR({baseStyle:iR}),{definePartsStyle:aR,defineMultiStyleConfig:lR}=ie(OP.keys),Po=L("form-error-color"),uR={[Po.variable]:"colors.red.500",_dark:{[Po.variable]:"colors.red.300"},color:Po.reference,mt:"2",fontSize:"sm",lineHeight:"normal"},cR={marginEnd:"0.5em",[Po.variable]:"colors.red.500",_dark:{[Po.variable]:"colors.red.300"},color:Po.reference},dR=aR({text:uR,icon:cR}),fR=lR({baseStyle:dR}),hR={fontSize:"md",marginEnd:"3",mb:"2",fontWeight:"medium",transitionProperty:"common",transitionDuration:"normal",opacity:1,_disabled:{opacity:.4}},pR={baseStyle:hR},mR={fontFamily:"heading",fontWeight:"bold"},gR={"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}},vR={baseStyle:mR,sizes:gR,defaultProps:{size:"xl"}},{defineMultiStyleConfig:yR,definePartsStyle:bR}=ie(FP.keys),Ac=L("breadcrumb-link-decor"),SR={transitionProperty:"common",transitionDuration:"fast",transitionTimingFunction:"ease-out",outline:"none",color:"inherit",textDecoration:Ac.reference,[Ac.variable]:"none","&:not([aria-current=page])":{cursor:"pointer",_hover:{[Ac.variable]:"underline"},_focusVisible:{boxShadow:"outline"}}},xR=bR({link:SR}),wR=yR({baseStyle:xR}),kR={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"}}},kb=e=>{const{colorScheme:t,theme:n}=e;if(t==="gray")return{color:j("gray.800","whiteAlpha.900")(e),_hover:{bg:j("gray.100","whiteAlpha.200")(e)},_active:{bg:j("gray.200","whiteAlpha.300")(e)}};const r=jo(`${t}.200`,.12)(n),o=jo(`${t}.200`,.24)(n);return{color:j(`${t}.600`,`${t}.200`)(e),bg:"transparent",_hover:{bg:j(`${t}.50`,r)(e)},_active:{bg:j(`${t}.100`,o)(e)}}},CR=e=>{const{colorScheme:t}=e,n=j("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"},...Je(kb,e)}},_R={yellow:{bg:"yellow.400",color:"black",hoverBg:"yellow.500",activeBg:"yellow.600"},cyan:{bg:"cyan.400",color:"black",hoverBg:"cyan.500",activeBg:"cyan.600"}},TR=e=>{var t;const{colorScheme:n}=e;if(n==="gray"){const l=j("gray.100","whiteAlpha.200")(e);return{bg:l,color:j("gray.800","whiteAlpha.900")(e),_hover:{bg:j("gray.200","whiteAlpha.300")(e),_disabled:{bg:l}},_active:{bg:j("gray.300","whiteAlpha.400")(e)}}}const{bg:r=`${n}.500`,color:o="white",hoverBg:i=`${n}.600`,activeBg:s=`${n}.700`}=(t=_R[n])!=null?t:{},a=j(r,`${n}.200`)(e);return{bg:a,color:j(o,"gray.800")(e),_hover:{bg:j(i,`${n}.300`)(e),_disabled:{bg:a}},_active:{bg:j(s,`${n}.400`)(e)}}},PR=e=>{const{colorScheme:t}=e;return{padding:0,height:"auto",lineHeight:"normal",verticalAlign:"baseline",color:j(`${t}.500`,`${t}.200`)(e),_hover:{textDecoration:"underline",_disabled:{textDecoration:"none"}},_active:{color:j(`${t}.700`,`${t}.500`)(e)}}},ER={bg:"none",color:"inherit",display:"inline",lineHeight:"inherit",m:"0",p:"0"},$R={ghost:kb,outline:CR,solid:TR,link:PR,unstyled:ER},AR={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"}},RR={baseStyle:kR,variants:$R,sizes:AR,defaultProps:{variant:"solid",size:"md",colorScheme:"gray"}},{definePartsStyle:Mr,defineMultiStyleConfig:zR}=ie(rE.keys),Tl=L("card-bg"),Sn=L("card-padding"),Cb=L("card-shadow"),Wa=L("card-radius"),_b=L("card-border-width","0"),Tb=L("card-border-color"),MR=Mr({container:{[Tl.variable]:"colors.chakra-body-bg",backgroundColor:Tl.reference,boxShadow:Cb.reference,borderRadius:Wa.reference,color:"chakra-body-text",borderWidth:_b.reference,borderColor:Tb.reference},body:{padding:Sn.reference,flex:"1 1 0%"},header:{padding:Sn.reference},footer:{padding:Sn.reference}}),DR={sm:Mr({container:{[Wa.variable]:"radii.base",[Sn.variable]:"space.3"}}),md:Mr({container:{[Wa.variable]:"radii.md",[Sn.variable]:"space.5"}}),lg:Mr({container:{[Wa.variable]:"radii.xl",[Sn.variable]:"space.7"}})},IR={elevated:Mr({container:{[Cb.variable]:"shadows.base",_dark:{[Tl.variable]:"colors.gray.700"}}}),outline:Mr({container:{[_b.variable]:"1px",[Tb.variable]:"colors.chakra-border-color"}}),filled:Mr({container:{[Tl.variable]:"colors.chakra-subtle-bg"}}),unstyled:{body:{[Sn.variable]:0},header:{[Sn.variable]:0},footer:{[Sn.variable]:0}}},FR=zR({baseStyle:MR,variants:IR,sizes:DR,defaultProps:{variant:"elevated",size:"md"}}),Li=Ee("close-button-size"),di=Ee("close-button-bg"),jR={w:[Li.reference],h:[Li.reference],borderRadius:"md",transitionProperty:"common",transitionDuration:"normal",_disabled:{opacity:.4,cursor:"not-allowed",boxShadow:"none"},_hover:{[di.variable]:"colors.blackAlpha.100",_dark:{[di.variable]:"colors.whiteAlpha.100"}},_active:{[di.variable]:"colors.blackAlpha.200",_dark:{[di.variable]:"colors.whiteAlpha.200"}},_focusVisible:{boxShadow:"outline"},bg:di.reference},LR={lg:{[Li.variable]:"sizes.10",fontSize:"md"},md:{[Li.variable]:"sizes.8",fontSize:"xs"},sm:{[Li.variable]:"sizes.6",fontSize:"2xs"}},BR={baseStyle:jR,sizes:LR,defaultProps:{size:"md"}},{variants:VR,defaultProps:OR}=Fi,NR={fontFamily:"mono",fontSize:"sm",px:"0.2em",borderRadius:"sm",bg:xe.bg.reference,color:xe.color.reference,boxShadow:xe.shadow.reference},WR={baseStyle:NR,variants:VR,defaultProps:OR},UR={w:"100%",mx:"auto",maxW:"prose",px:"4"},HR={baseStyle:UR},KR={opacity:.6,borderColor:"inherit"},GR={borderStyle:"solid"},YR={borderStyle:"dashed"},XR={solid:GR,dashed:YR},qR={baseStyle:KR,variants:XR,defaultProps:{variant:"solid"}},{definePartsStyle:QR,defineMultiStyleConfig:ZR}=ie(MP.keys),JR={borderTopWidth:"1px",borderColor:"inherit",_last:{borderBottomWidth:"1px"}},e3={transitionProperty:"common",transitionDuration:"normal",fontSize:"md",_focusVisible:{boxShadow:"outline"},_hover:{bg:"blackAlpha.50"},_disabled:{opacity:.4,cursor:"not-allowed"},px:"4",py:"2"},t3={pt:"2",px:"4",pb:"5"},n3={fontSize:"1.25em"},r3=QR({container:JR,button:e3,panel:t3,icon:n3}),o3=ZR({baseStyle:r3}),{definePartsStyle:Ts,defineMultiStyleConfig:i3}=ie(DP.keys),mt=L("alert-fg"),An=L("alert-bg"),s3=Ts({container:{bg:An.reference,px:"4",py:"3"},title:{fontWeight:"bold",lineHeight:"6",marginEnd:"2"},description:{lineHeight:"6"},icon:{color:mt.reference,flexShrink:0,marginEnd:"3",w:"5",h:"6"},spinner:{color:mt.reference,flexShrink:0,marginEnd:"3",w:"5",h:"5"}});function $h(e){const{theme:t,colorScheme:n}=e,r=jo(`${n}.200`,.16)(t);return{light:`colors.${n}.100`,dark:r}}var a3=Ts(e=>{const{colorScheme:t}=e,n=$h(e);return{container:{[mt.variable]:`colors.${t}.600`,[An.variable]:n.light,_dark:{[mt.variable]:`colors.${t}.200`,[An.variable]:n.dark}}}}),l3=Ts(e=>{const{colorScheme:t}=e,n=$h(e);return{container:{[mt.variable]:`colors.${t}.600`,[An.variable]:n.light,_dark:{[mt.variable]:`colors.${t}.200`,[An.variable]:n.dark},paddingStart:"3",borderStartWidth:"4px",borderStartColor:mt.reference}}}),u3=Ts(e=>{const{colorScheme:t}=e,n=$h(e);return{container:{[mt.variable]:`colors.${t}.600`,[An.variable]:n.light,_dark:{[mt.variable]:`colors.${t}.200`,[An.variable]:n.dark},pt:"2",borderTopWidth:"4px",borderTopColor:mt.reference}}}),c3=Ts(e=>{const{colorScheme:t}=e;return{container:{[mt.variable]:"colors.white",[An.variable]:`colors.${t}.600`,_dark:{[mt.variable]:"colors.gray.900",[An.variable]:`colors.${t}.200`},color:mt.reference}}}),d3={subtle:a3,"left-accent":l3,"top-accent":u3,solid:c3},f3=i3({baseStyle:s3,variants:d3,defaultProps:{variant:"subtle",colorScheme:"blue"}}),{definePartsStyle:Pb,defineMultiStyleConfig:h3}=ie(IP.keys),Eo=L("avatar-border-color"),Bi=L("avatar-bg"),ps=L("avatar-font-size"),Lo=L("avatar-size"),p3={borderRadius:"full",border:"0.2em solid",borderColor:Eo.reference,[Eo.variable]:"white",_dark:{[Eo.variable]:"colors.gray.800"}},m3={bg:Bi.reference,fontSize:ps.reference,width:Lo.reference,height:Lo.reference,lineHeight:"1",[Bi.variable]:"colors.gray.200",_dark:{[Bi.variable]:"colors.whiteAlpha.400"}},g3=e=>{const{name:t,theme:n}=e,r=t?kE({string:t}):"colors.gray.400",o=xE(r)(n);let i="white";return o||(i="gray.800"),{bg:Bi.reference,fontSize:ps.reference,color:i,borderColor:Eo.reference,verticalAlign:"top",width:Lo.reference,height:Lo.reference,"&:not([data-loaded])":{[Bi.variable]:r},[Eo.variable]:"colors.white",_dark:{[Eo.variable]:"colors.gray.800"}}},v3={fontSize:ps.reference,lineHeight:"1"},y3=Pb(e=>({badge:Je(p3,e),excessLabel:Je(m3,e),container:Je(g3,e),label:v3}));function Ln(e){const t=e!=="100%"?vb[e]:void 0;return Pb({container:{[Lo.variable]:t??e,[ps.variable]:`calc(${t??e} / 2.5)`},excessLabel:{[Lo.variable]:t??e,[ps.variable]:`calc(${t??e} / 2.5)`}})}var b3={"2xs":Ln(4),xs:Ln(6),sm:Ln(8),md:Ln(12),lg:Ln(16),xl:Ln(24),"2xl":Ln(32),full:Ln("100%")},S3=h3({baseStyle:y3,sizes:b3,defaultProps:{size:"md"}}),x3={Accordion:o3,Alert:f3,Avatar:S3,Badge:Fi,Breadcrumb:wR,Button:RR,Checkbox:_l,CloseButton:BR,Code:WR,Container:HR,Divider:qR,Drawer:GA,Editable:eR,Form:sR,FormError:fR,FormLabel:pR,Heading:vR,Input:q,Kbd:j$,Link:B$,List:U$,Menu:tA,Modal:fA,NumberInput:xA,PinInput:_A,Popover:FA,Progress:W5,Radio:n$,Select:u$,Skeleton:d$,SkipLink:h$,Slider:C$,Spinner:P$,Stat:I$,Switch:BE,Table:KE,Tabs:a5,Tag:S5,Textarea:z5,Tooltip:I5,Card:FR,Stepper:zP},w3={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"}}},k3={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"}}},C3="ltr",_3={useSystemColorMode:!1,initialColorMode:"light",cssVarPrefix:"chakra"},T3={semanticTokens:w3,direction:C3,...$P,components:x3,styles:k3,config:_3};function P3(e,t){const n={};return Object.keys(e).forEach(r=>{t.includes(r)||(n[r]=e[r])}),n}function E3(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}},Eb=$3(E3);function $b(e,t){const n={};return Object.keys(e).forEach(r=>{const o=e[r];t(o,r,e)&&(n[r]=o)}),n}var Ab=e=>$b(e,t=>t!=null);function A3(e){return typeof e=="function"}function Rb(e,...t){return A3(e)?e(...t):e}var R3=typeof Element<"u",z3=typeof Map=="function",M3=typeof Set=="function",D3=typeof ArrayBuffer=="function"&&!!ArrayBuffer.isView;function Ua(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(!Ua(e[r],t[r]))return!1;return!0}var i;if(z3&&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(!Ua(r.value[1],t.get(r.value[0])))return!1;return!0}if(M3&&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(D3&&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(R3&&e instanceof Element)return!1;for(r=n;r--!==0;)if(!((o[r]==="_owner"||o[r]==="__v"||o[r]==="__o")&&e.$$typeof)&&!Ua(e[o[r]],t[o[r]]))return!1;return!0}return e!==e&&t!==t}var I3=function(t,n){try{return Ua(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 F3=gf(I3);function zb(e,t={}){var n;const{styleConfig:r,...o}=t,{theme:i,colorMode:s}=ab(),a=e?Eb(i,`components.${e}`):void 0,l=r||a,u=en({theme:i,colorMode:s},(n=l==null?void 0:l.defaultProps)!=null?n:{},Ab(P3(o,["children"]))),c=_.useRef({});if(l){const p=iP(l)(u);F3(c.current,p)||(c.current=p)}return c.current}function Nr(e,t={}){return zb(e,t)}function Ah(e,t={}){return zb(e,t)}var j3=new Set([...GT,"textStyle","layerStyle","apply","noOfLines","focusBorderColor","errorBorderColor","as","__css","css","sx"]),L3=new Set(["htmlWidth","htmlHeight","htmlSize","htmlTranslate"]);function B3(e){return L3.has(e)||!j3.has(e)}function V3(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 O3(e){const t=Object.assign({},e);for(let n in t)t[n]===void 0&&delete t[n];return t}var N3=/^((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|disableRemotePlayback|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)-.*))$/,W3=U1(function(e){return N3.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),U3=W3,H3=function(t){return t!=="theme"},q0=function(t){return typeof t=="string"&&t.charCodeAt(0)>96?U3:H3},Q0=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},K3=!1,G3=function(t){var n=t.cache,r=t.serialized,o=t.isStringTag;return q1(n,r,o),b2(function(){return Q1(n,r,o)}),null},Y3=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=Q0(t,n,r),l=a||q0(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 p=c.length,v=1;vt=>{const{theme:n,css:r,__css:o,sx:i,...s}=t,a=$b(s,(d,p)=>XT(p)),l=Rb(e,t),u=V3({},o,l,Ab(a),i),c=pb(u)(t.theme);return r?[c,r]:c};function Rc(e,t){const{baseStyle:n,...r}=t??{};r.shouldForwardProp||(r.shouldForwardProp=B3);const o=Q3({baseStyle:n}),i=q3(e,r)(o);return Ya.forwardRef(function(l,u){const{colorMode:c,forced:d}=fu();return Ya.createElement(i,{ref:u,"data-theme":d?c:void 0,...l})})}function Z3(){const e=new Map;return new Proxy(Rc,{apply(t,n,r){return Rc(...r)},get(t,n){return e.has(n)||e.set(n,Rc(n)),e.get(n)}})}var ue=Z3();function ze(e){return _.forwardRef(e)}function J3(e={}){const{strict:t=!0,errorMessage:n="useContext: `context` is undefined. Seems you forgot to wrap component within the Provider",name:r}=e,o=_.createContext(void 0);o.displayName=r;function i(){var s;const a=_.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 e4(e){const{cssVarsRoot:t,theme:n,children:r}=e,o=_.useMemo(()=>KT(n),[n]);return T.jsxs(w2,{theme:o,children:[T.jsx(t4,{root:t}),r]})}function t4({root:e=":host, :root"}){const t=[e,"[data-theme]"].join(",");return T.jsx(cu,{styles:n=>({[t]:n.__cssVars})})}J3({name:"StylesContext",errorMessage:"useStyles: `styles` is undefined. Seems you forgot to wrap the components in `` "});function n4(){const{colorMode:e}=fu();return T.jsx(cu,{styles:t=>{const n=Eb(t,"styles.global"),r=Rb(n,{theme:t,colorMode:e});return r?pb(r)(t):void 0}})}var Mb=_.createContext({getDocument(){return document},getWindow(){return window}});Mb.displayName="EnvironmentContext";function Db(e){const{children:t,environment:n,disabled:r}=e,o=_.useRef(null),i=_.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 T.jsxs(Mb.Provider,{value:i,children:[t,s&&T.jsx("span",{id:"__chakra_env",hidden:!0,ref:o})]})}Db.displayName="EnvironmentProvider";var r4=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=T.jsx(Db,{environment:a,disabled:u,children:t});return T.jsx(e4,{theme:s,cssVarsRoot:l,children:T.jsxs(sb,{colorModeManager:n,options:s.config,children:[i?T.jsx(T2,{scope:o}):T.jsx(_2,{}),!c&&T.jsx(n4,{}),r?T.jsx(ob,{zIndex:r,children:d}):d]})})},o4=(e,t)=>e.find(n=>n.id===t);function J0(e,t){const n=Ib(e,t),r=n?e[n].findIndex(o=>o.id===t):-1;return{position:n,index:r}}function Ib(e,t){for(const[n,r]of Object.entries(e))if(o4(r,t))return n}function i4(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 s4(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 a4(e,t=[]){const n=_.useRef(e);return _.useEffect(()=>{n.current=e}),_.useCallback((...r)=>{var o;return(o=n.current)==null?void 0:o.call(n,...r)},t)}function l4(e,t){const n=a4(e);_.useEffect(()=>{if(t==null)return;let r=null;return r=window.setTimeout(()=>{n()},t),()=>{r&&window.clearTimeout(r)}},[t,n])}function eg(e,t){const n=_.useRef(!1),r=_.useRef(!1);_.useEffect(()=>{if(n.current&&r.current)return e();r.current=!0},t),_.useEffect(()=>(n.current=!0,()=>{n.current=!1}),[])}function u4(e){if(typeof Proxy>"u")return e;const t=new Map,n=(...r)=>e(...r);return new Proxy(n,{get:(r,o)=>o==="create"?e:(t.has(o)||t.set(o,e(o)),t.get(o))})}function ms(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}const Qd=e=>Array.isArray(e);function Fb(e,t){if(!Array.isArray(t))return!1;const n=t.length;if(n!==e.length)return!1;for(let r=0;r{t[0][r]=n.get(),t[1][r]=n.getVelocity()}),t}function Rh(e,t,n,r){if(typeof t=="function"){const[o,i]=tg(r);t=t(n!==void 0?n:e.custom,o,i)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){const[o,i]=tg(r);t=t(n!==void 0?n:e.custom,o,i)}return t}function vu(e,t,n){const r=e.getProps();return Rh(r,t,n!==void 0?n:r.custom,e)}const zh=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],Mh=["initial",...zh],Ps=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],ur=new Set(Ps),xn=e=>e*1e3,wn=e=>e/1e3,c4={type:"spring",stiffness:500,damping:25,restSpeed:10},d4=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),f4={type:"keyframes",duration:.8},h4={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},p4=(e,{keyframes:t})=>t.length>2?f4:ur.has(e)?e.startsWith("scale")?d4(t[1]):c4:h4;function m4({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:o,repeat:i,repeatType:s,repeatDelay:a,from:l,elapsed:u,...c}){return!!Object.keys(c).length}function Dh(e,t){return e[t]||e.default||e}const g4={skipAnimations:!1,useManualTiming:!1},v4=e=>e!==null;function yu(e,{repeat:t,repeatType:n="loop"},r){const o=e.filter(v4),i=t&&n!=="loop"&&t%2===1?0:o.length-1;return!i||r===void 0?o[i]:r}const He=e=>e;function y4(e){let t=new Set,n=new Set,r=!1,o=!1;const i=new WeakSet;let s={delta:0,timestamp:0,isProcessing:!1};function a(u){i.has(u)&&(l.schedule(u),e()),u(s)}const l={schedule:(u,c=!1,d=!1)=>{const v=d&&r?t:n;return c&&i.add(u),v.has(u)||v.add(u),u},cancel:u=>{n.delete(u),i.delete(u)},process:u=>{if(s=u,r){o=!0;return}r=!0,[t,n]=[n,t],n.clear(),t.forEach(a),r=!1,o&&(o=!1,l.process(u))}};return l}const ma=["read","resolveKeyframes","update","preRender","render","postRender"],b4=40;function jb(e,t){let n=!1,r=!0;const o={delta:0,timestamp:0,isProcessing:!1},i=()=>n=!0,s=ma.reduce((f,h)=>(f[h]=y4(i),f),{}),{read:a,resolveKeyframes:l,update:u,preRender:c,render:d,postRender:p}=s,v=()=>{const f=performance.now();n=!1,o.delta=r?1e3/60:Math.max(Math.min(f-o.timestamp,b4),1),o.timestamp=f,o.isProcessing=!0,a.process(o),l.process(o),u.process(o),c.process(o),d.process(o),p.process(o),o.isProcessing=!1,n&&t&&(r=!1,e(v))},b=()=>{n=!0,r=!0,o.isProcessing||e(v)};return{schedule:ma.reduce((f,h)=>{const m=s[h];return f[h]=(x,C=!1,A=!1)=>(n||b(),m.schedule(x,C,A)),f},{}),cancel:f=>{for(let h=0;h/^0[^.\s]+$/u.test(e);function S4(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||Lb(e):!0}let Zd=He;const Bb=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),Vb=e=>t=>typeof t=="string"&&t.startsWith(e),Ob=Vb("--"),x4=Vb("var(--"),Ih=e=>x4(e)?w4.test(e.split("/*")[0].trim()):!1,w4=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,k4=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function C4(e){const t=k4.exec(e);if(!t)return[,];const[,n,r,o]=t;return[`--${n??r}`,o]}function Nb(e,t,n=1){const[r,o]=C4(e);if(!r)return;const i=window.getComputedStyle(t).getPropertyValue(r);if(i){const s=i.trim();return Bb(s)?parseFloat(s):s}return Ih(o)?Nb(o,t,n+1):o}const rr=(e,t,n)=>n>t?t:ntypeof e=="number",parse:parseFloat,transform:e=>e},Vi={...Ko,transform:e=>rr(0,1,e)},ga={...Ko,default:1},Oi=e=>Math.round(e*1e5)/1e5,Fh=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu,_4=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu,T4=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu;function Es(e){return typeof e=="string"}function P4(e){return e==null}const $s=e=>({test:t=>Es(t)&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),Bn=$s("deg"),sn=$s("%"),B=$s("px"),E4=$s("vh"),$4=$s("vw"),ng={...sn,parse:e=>sn.parse(e)/100,transform:e=>sn.transform(e*100)},A4=new Set(["width","height","top","left","right","bottom","x","y","translateX","translateY"]),rg=e=>e===Ko||e===B,og=(e,t)=>parseFloat(e.split(", ")[t]),ig=(e,t)=>(n,{transform:r})=>{if(r==="none"||!r)return 0;const o=r.match(/^matrix3d\((.+)\)$/u);if(o)return og(o[1],t);{const i=r.match(/^matrix\((.+)\)$/u);return i?og(i[1],e):0}},R4=new Set(["x","y","z"]),z4=Ps.filter(e=>!R4.has(e));function M4(e){const t=[];return z4.forEach(n=>{const r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t}const Bo={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:ig(4,13),y:ig(5,14)};Bo.translateX=Bo.x;Bo.translateY=Bo.y;const Wb=e=>t=>t.test(e),D4={test:e=>e==="auto",parse:e=>e},Ub=[Ko,B,sn,Bn,$4,E4,D4],sg=e=>Ub.find(Wb(e)),Dr=new Set;let Jd=!1,ef=!1;function Hb(){if(ef){const e=Array.from(Dr).filter(r=>r.needsMeasurement),t=new Set(e.map(r=>r.element)),n=new Map;t.forEach(r=>{const o=M4(r);o.length&&(n.set(r,o),r.render())}),e.forEach(r=>r.measureInitialState()),t.forEach(r=>{r.render();const o=n.get(r);o&&o.forEach(([i,s])=>{var a;(a=r.getValue(i))===null||a===void 0||a.set(s)})}),e.forEach(r=>r.measureEndState()),e.forEach(r=>{r.suspendedScrollY!==void 0&&window.scrollTo(0,r.suspendedScrollY)})}ef=!1,Jd=!1,Dr.forEach(e=>e.complete()),Dr.clear()}function Kb(){Dr.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(ef=!0)})}function I4(){Kb(),Hb()}class jh{constructor(t,n,r,o,i,s=!1){this.isComplete=!1,this.isAsync=!1,this.needsMeasurement=!1,this.isScheduled=!1,this.unresolvedKeyframes=[...t],this.onComplete=n,this.name=r,this.motionValue=o,this.element=i,this.isAsync=s}scheduleResolve(){this.isScheduled=!0,this.isAsync?(Dr.add(this),Jd||(Jd=!0,J.read(Kb),J.resolveKeyframes(Hb))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:n,element:r,motionValue:o}=this;for(let i=0;in=>!!(Es(n)&&T4.test(n)&&n.startsWith(e)||t&&!P4(n)&&Object.prototype.hasOwnProperty.call(n,t)),Gb=(e,t,n)=>r=>{if(!Es(r))return r;const[o,i,s,a]=r.match(Fh);return{[e]:parseFloat(o),[t]:parseFloat(i),[n]:parseFloat(s),alpha:a!==void 0?parseFloat(a):1}},F4=e=>rr(0,255,e),Mc={...Ko,transform:e=>Math.round(F4(e))},Er={test:Lh("rgb","red"),parse:Gb("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+Mc.transform(e)+", "+Mc.transform(t)+", "+Mc.transform(n)+", "+Oi(Vi.transform(r))+")"};function j4(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 tf={test:Lh("#"),parse:j4,transform:Er.transform},ho={test:Lh("hsl","hue"),parse:Gb("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+sn.transform(Oi(t))+", "+sn.transform(Oi(n))+", "+Oi(Vi.transform(r))+")"},Ne={test:e=>Er.test(e)||tf.test(e)||ho.test(e),parse:e=>Er.test(e)?Er.parse(e):ho.test(e)?ho.parse(e):tf.parse(e),transform:e=>Es(e)?e:e.hasOwnProperty("red")?Er.transform(e):ho.transform(e)};function L4(e){var t,n;return isNaN(e)&&Es(e)&&(((t=e.match(Fh))===null||t===void 0?void 0:t.length)||0)+(((n=e.match(_4))===null||n===void 0?void 0:n.length)||0)>0}const Yb="number",Xb="color",B4="var",V4="var(",ag="${}",O4=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function vs(e){const t=e.toString(),n=[],r={color:[],number:[],var:[]},o=[];let i=0;const a=t.replace(O4,l=>(Ne.test(l)?(r.color.push(i),o.push(Xb),n.push(Ne.parse(l))):l.startsWith(V4)?(r.var.push(i),o.push(B4),n.push(l)):(r.number.push(i),o.push(Yb),n.push(parseFloat(l))),++i,ag)).split(ag);return{values:n,split:a,indexes:r,types:o}}function qb(e){return vs(e).values}function Qb(e){const{split:t,types:n}=vs(e),r=t.length;return o=>{let i="";for(let s=0;stypeof e=="number"?0:e;function W4(e){const t=qb(e);return Qb(e)(t.map(N4))}const or={test:L4,parse:qb,createTransformer:Qb,getAnimatableNone:W4},U4=new Set(["brightness","contrast","saturate","opacity"]);function H4(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(Fh)||[];if(!r)return e;const o=n.replace(r,"");let i=U4.has(t)?1:0;return r!==n&&(i*=100),t+"("+i+o+")"}const K4=/\b([a-z-]*)\(.*?\)/gu,nf={...or,getAnimatableNone:e=>{const t=e.match(K4);return t?t.map(H4).join(" "):e}},lg={...Ko,transform:Math.round},Bh={borderWidth:B,borderTopWidth:B,borderRightWidth:B,borderBottomWidth:B,borderLeftWidth:B,borderRadius:B,radius:B,borderTopLeftRadius:B,borderTopRightRadius:B,borderBottomRightRadius:B,borderBottomLeftRadius:B,width:B,maxWidth:B,height:B,maxHeight:B,size:B,top:B,right:B,bottom:B,left:B,padding:B,paddingTop:B,paddingRight:B,paddingBottom:B,paddingLeft:B,margin:B,marginTop:B,marginRight:B,marginBottom:B,marginLeft:B,rotate:Bn,rotateX:Bn,rotateY:Bn,rotateZ:Bn,scale:ga,scaleX:ga,scaleY:ga,scaleZ:ga,skew:Bn,skewX:Bn,skewY:Bn,distance:B,translateX:B,translateY:B,translateZ:B,x:B,y:B,z:B,perspective:B,transformPerspective:B,opacity:Vi,originX:ng,originY:ng,originZ:B,zIndex:lg,backgroundPositionX:B,backgroundPositionY:B,fillOpacity:Vi,strokeOpacity:Vi,numOctaves:lg},G4={...Bh,color:Ne,backgroundColor:Ne,outlineColor:Ne,fill:Ne,stroke:Ne,borderColor:Ne,borderTopColor:Ne,borderRightColor:Ne,borderBottomColor:Ne,borderLeftColor:Ne,filter:nf,WebkitFilter:nf},Vh=e=>G4[e];function Zb(e,t){let n=Vh(e);return n!==nf&&(n=or),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const Y4=new Set(["auto","none","0"]);function X4(e,t,n){let r=0,o;for(;r{n.getValue(l).set(u)}),this.resolveNoneKeyframes()}}function eS(e){let t;return()=>(t===void 0&&(t=e()),t)}let Ha;function q4(){Ha=void 0}const kn={now:()=>(Ha===void 0&&kn.set(Ie.isProcessing||g4.useManualTiming?Ie.timestamp:performance.now()),Ha),set:e=>{Ha=e,queueMicrotask(q4)}},ug=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(or.test(e)||e==="0")&&!e.startsWith("url("));function Q4(e){const t=e[0];if(e.length===1)return!0;for(let n=0;nJ4?this.resolvedAt:this.createdAt:this.createdAt}get resolved(){return!this._resolved&&!this.hasAttemptedResolve&&I4(),this._resolved}onKeyframesResolved(t,n){this.resolvedAt=kn.now(),this.hasAttemptedResolve=!0;const{name:r,type:o,velocity:i,delay:s,onComplete:a,onUpdate:l,isGenerator:u}=this.options;if(!u&&!Z4(t,r,o,i))if(s)this.options.duration=0;else{l==null||l(yu(t,this.options,n)),a==null||a(),this.resolveFinishedPromise();return}const c=this.initPlayback(t,n);c!==!1&&(this._resolved={keyframes:t,finalKeyframe:n,...c},this.onPostResolved())}onPostResolved(){}then(t,n){return this.currentFinishedPromise.then(t,n)}updateFinishedPromise(){this.currentFinishedPromise=new Promise(t=>{this.resolveFinishedPromise=t})}}function nS(e,t){return t?e*(1e3/t):0}const ez=5;function rS(e,t,n){const r=Math.max(t-ez,0);return nS(n-e(r),t-r)}const Dc=.001,tz=.01,nz=10,rz=.05,oz=1;function iz({duration:e=800,bounce:t=.25,velocity:n=0,mass:r=1}){let o,i,s=1-t;s=rr(rz,oz,s),e=rr(tz,nz,wn(e)),s<1?(o=u=>{const c=u*s,d=c*e,p=c-n,v=rf(u,s),b=Math.exp(-d);return Dc-p/v*b},i=u=>{const d=u*s*e,p=d*n+n,v=Math.pow(s,2)*Math.pow(u,2)*e,b=Math.exp(-d),y=rf(Math.pow(u,2),s);return(-o(u)+Dc>0?-1:1)*((p-v)*b)/y}):(o=u=>{const c=Math.exp(-u*e),d=(u-n)*e+1;return-Dc+c*d},i=u=>{const c=Math.exp(-u*e),d=(n-u)*(e*e);return c*d});const a=5/e,l=az(o,i,a);if(e=xn(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 sz=12;function az(e,t,n){let r=n;for(let o=1;oe[n]!==void 0)}function cz(e){let t={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...e};if(!cg(e,uz)&&cg(e,lz)){const n=iz(e);t={...t,...n,mass:1},t.isResolvedFromDuration=!0}return t}function oS({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,duration:c,velocity:d,isResolvedFromDuration:p}=cz({...r,velocity:-wn(r.velocity||0)}),v=d||0,b=l/(2*Math.sqrt(a*u)),y=i-o,S=wn(Math.sqrt(a/u)),f=Math.abs(y)<5;n||(n=f?.01:2),t||(t=f?.005:.5);let h;if(b<1){const m=rf(S,b);h=x=>{const C=Math.exp(-b*S*x);return i-C*((v+b*S*y)/m*Math.sin(m*x)+y*Math.cos(m*x))}}else if(b===1)h=m=>i-Math.exp(-S*m)*(y+(v+S*y)*m);else{const m=S*Math.sqrt(b*b-1);h=x=>{const C=Math.exp(-b*S*x),A=Math.min(m*x,300);return i-C*((v+b*S*y)*Math.sinh(A)+m*y*Math.cosh(A))/m}}return{calculatedDuration:p&&c||null,next:m=>{const x=h(m);if(p)s.done=m>=c;else{let C=0;b<1&&(C=m===0?xn(v):rS(h,m,x));const A=Math.abs(C)<=n,$=Math.abs(i-x)<=t;s.done=A&&$}return s.value=s.done?i:x,s}}}function dg({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],p={done:!1,value:d},v=P=>a!==void 0&&Pl,b=P=>a===void 0?l:l===void 0||Math.abs(a-P)-y*Math.exp(-P/r),m=P=>f+h(P),x=P=>{const D=h(P),z=m(P);p.done=Math.abs(D)<=u,p.value=p.done?f:z};let C,A;const $=P=>{v(p.value)&&(C=P,A=oS({keyframes:[p.value,b(p.value)],velocity:rS(m,P,p.value),damping:o,stiffness:i,restDelta:u,restSpeed:c}))};return $(0),{calculatedDuration:null,next:P=>{let D=!1;return!A&&C===void 0&&(D=!0,x(P),$(P)),C!==void 0&&P>=C?A.next(P-C):(!D&&x(P),p)}}}const iS=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,dz=1e-7,fz=12;function hz(e,t,n,r,o){let i,s,a=0;do s=t+(n-t)/2,i=iS(s,r,o)-e,i>0?n=s:t=s;while(Math.abs(i)>dz&&++ahz(i,0,1,e,n);return i=>i===0||i===1?i:iS(o(i),t,r)}const pz=As(.42,0,1,1),mz=As(0,0,.58,1),sS=As(.42,0,.58,1),gz=e=>Array.isArray(e)&&typeof e[0]!="number",aS=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,lS=e=>t=>1-e(1-t),Oh=e=>1-Math.sin(Math.acos(e)),uS=lS(Oh),vz=aS(Oh),cS=As(.33,1.53,.69,.99),Nh=lS(cS),yz=aS(Nh),bz=e=>(e*=2)<1?.5*Nh(e):.5*(2-Math.pow(2,-10*(e-1))),fg={linear:He,easeIn:pz,easeInOut:sS,easeOut:mz,circIn:Oh,circInOut:vz,circOut:uS,backIn:Nh,backInOut:yz,backOut:cS,anticipate:bz},hg=e=>{if(Array.isArray(e)){Zd(e.length===4);const[t,n,r,o]=e;return As(t,n,r,o)}else if(typeof e=="string")return Zd(fg[e]!==void 0),fg[e];return e},Sz=(e,t)=>n=>t(e(n)),Cn=(...e)=>e.reduce(Sz),ys=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r},me=(e,t,n)=>e+(t-e)*n;function Ic(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 xz({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=Ic(l,a,e+1/3),i=Ic(l,a,e),s=Ic(l,a,e-1/3)}return{red:Math.round(o*255),green:Math.round(i*255),blue:Math.round(s*255),alpha:r}}function El(e,t){return n=>n>0?t:e}const Fc=(e,t,n)=>{const r=e*e,o=n*(t*t-r)+r;return o<0?0:Math.sqrt(o)},wz=[tf,Er,ho],kz=e=>wz.find(t=>t.test(e));function pg(e){const t=kz(e);if(!t)return!1;let n=t.parse(e);return t===ho&&(n=xz(n)),n}const mg=(e,t)=>{const n=pg(e),r=pg(t);if(!n||!r)return El(e,t);const o={...n};return i=>(o.red=Fc(n.red,r.red,i),o.green=Fc(n.green,r.green,i),o.blue=Fc(n.blue,r.blue,i),o.alpha=me(n.alpha,r.alpha,i),Er.transform(o))},of=new Set(["none","hidden"]);function Cz(e,t){return of.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function _z(e,t){return n=>me(e,t,n)}function Wh(e){return typeof e=="number"?_z:typeof e=="string"?Ih(e)?El:Ne.test(e)?mg:Ez:Array.isArray(e)?dS:typeof e=="object"?Ne.test(e)?mg:Tz:El}function dS(e,t){const n=[...e],r=n.length,o=e.map((i,s)=>Wh(i)(i,t[s]));return i=>{for(let s=0;s{for(const i in r)n[i]=r[i](o);return n}}function Pz(e,t){var n;const r=[],o={color:0,var:0,number:0};for(let i=0;i{const n=or.createTransformer(t),r=vs(e),o=vs(t);return r.indexes.var.length===o.indexes.var.length&&r.indexes.color.length===o.indexes.color.length&&r.indexes.number.length>=o.indexes.number.length?of.has(e)&&!o.values.length||of.has(t)&&!r.values.length?Cz(e,t):Cn(dS(Pz(r,o),o.values),n):El(e,t)};function fS(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?me(e,t,n):Wh(e)(e,t)}function $z(e,t,n){const r=[],o=n||fS,i=e.length-1;for(let s=0;st[0];if(i===2&&e[0]===e[1])return()=>t[1];e[0]>e[i-1]&&(e=[...e].reverse(),t=[...t].reverse());const s=$z(t,r,o),a=s.length,l=u=>{let c=0;if(a>1)for(;cl(rr(e[0],e[i-1],u)):l}function Rz(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const o=ys(0,t,r);e.push(me(n,1,o))}}function zz(e){const t=[0];return Rz(t,e.length-1),t}function Mz(e,t){return e.map(n=>n*t)}function Dz(e,t){return e.map(()=>t||sS).splice(0,e.length-1)}function $l({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const o=gz(r)?r.map(hg):hg(r),i={done:!1,value:t[0]},s=Mz(n&&n.length===t.length?n:zz(t),e),a=Az(s,t,{ease:Array.isArray(o)?o:Dz(t,o)});return{calculatedDuration:e,next:l=>(i.value=a(l),i.done=l>=e,i)}}const gg=2e4;function Iz(e){let t=0;const n=50;let r=e.next(t);for(;!r.done&&t=gg?1/0:t}const Fz=e=>{const t=({timestamp:n})=>e(n);return{start:()=>J.update(t,!0),stop:()=>Rn(t),now:()=>Ie.isProcessing?Ie.timestamp:kn.now()}},jz={decay:dg,inertia:dg,tween:$l,keyframes:$l,spring:oS},Lz=e=>e/100;class Uh extends tS{constructor(t){super(t),this.holdTime=null,this.cancelTime=null,this.currentTime=0,this.playbackSpeed=1,this.pendingPlayState="running",this.startTime=null,this.state="idle",this.stop=()=>{if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.teardown();const{onStop:l}=this.options;l&&l()};const{name:n,motionValue:r,element:o,keyframes:i}=this.options,s=(o==null?void 0:o.KeyframeResolver)||jh,a=(l,u)=>this.onKeyframesResolved(l,u);this.resolver=new s(i,a,n,r,o),this.resolver.scheduleResolve()}initPlayback(t){const{type:n="keyframes",repeat:r=0,repeatDelay:o=0,repeatType:i,velocity:s=0}=this.options,a=jz[n]||$l;let l,u;a!==$l&&typeof t[0]!="number"&&(l=Cn(Lz,fS(t[0],t[1])),t=[0,100]);const c=a({...this.options,keyframes:t});i==="mirror"&&(u=a({...this.options,keyframes:[...t].reverse(),velocity:-s})),c.calculatedDuration===null&&(c.calculatedDuration=Iz(c));const{calculatedDuration:d}=c,p=d+o,v=p*(r+1)-o;return{generator:c,mirroredGenerator:u,mapPercentToKeyframes:l,calculatedDuration:d,resolvedDuration:p,totalDuration:v}}onPostResolved(){const{autoplay:t=!0}=this.options;this.play(),this.pendingPlayState==="paused"||!t?this.pause():this.state=this.pendingPlayState}tick(t,n=!1){const{resolved:r}=this;if(!r){const{keyframes:P}=this.options;return{done:!0,value:P[P.length-1]}}const{finalKeyframe:o,generator:i,mirroredGenerator:s,mapPercentToKeyframes:a,keyframes:l,calculatedDuration:u,totalDuration:c,resolvedDuration:d}=r;if(this.startTime===null)return i.next(0);const{delay:p,repeat:v,repeatType:b,repeatDelay:y,onUpdate:S}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-c/this.speed,this.startTime)),n?this.currentTime=t:this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=Math.round(t-this.startTime)*this.speed;const f=this.currentTime-p*(this.speed>=0?1:-1),h=this.speed>=0?f<0:f>c;this.currentTime=Math.max(f,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=c);let m=this.currentTime,x=i;if(v){const P=Math.min(this.currentTime,c)/d;let D=Math.floor(P),z=P%1;!z&&P>=1&&(z=1),z===1&&D--,D=Math.min(D,v+1),!!(D%2)&&(b==="reverse"?(z=1-z,y&&(z-=y/d)):b==="mirror"&&(x=s)),m=rr(0,1,z)*d}const C=h?{done:!1,value:l[0]}:x.next(m);a&&(C.value=a(C.value));let{done:A}=C;!h&&u!==null&&(A=this.speed>=0?this.currentTime>=c:this.currentTime<=0);const $=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&A);return $&&o!==void 0&&(C.value=yu(l,this.options,o)),S&&S(C.value),$&&this.finish(),C}get duration(){const{resolved:t}=this;return t?wn(t.calculatedDuration):0}get time(){return wn(this.currentTime)}set time(t){t=xn(t),this.currentTime=t,this.holdTime!==null||this.speed===0?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.speed)}get speed(){return this.playbackSpeed}set speed(t){const n=this.playbackSpeed!==t;this.playbackSpeed=t,n&&(this.time=wn(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved){this.pendingPlayState="running";return}if(this.isStopped)return;const{driver:t=Fz,onPlay:n,startTime:r}=this.options;this.driver||(this.driver=t(i=>this.tick(i))),n&&n();const o=this.driver.now();this.holdTime!==null?this.startTime=o-this.holdTime:this.startTime?this.state==="finished"&&(this.startTime=o):this.startTime=r??this.calcStartTime(),this.state==="finished"&&this.updateFinishedPromise(),this.cancelTime=this.startTime,this.holdTime=null,this.state="running",this.driver.start()}pause(){var t;if(!this._resolved){this.pendingPlayState="paused";return}this.state="paused",this.holdTime=(t=this.currentTime)!==null&&t!==void 0?t:0}complete(){this.state!=="running"&&this.play(),this.pendingPlayState=this.state="finished",this.holdTime=null}finish(){this.teardown(),this.state="finished";const{onComplete:t}=this.options;t&&t()}cancel(){this.cancelTime!==null&&this.tick(this.cancelTime),this.teardown(),this.updateFinishedPromise()}teardown(){this.state="idle",this.stopDriver(),this.resolveFinishedPromise(),this.updateFinishedPromise(),this.startTime=this.cancelTime=null,this.resolver.cancel()}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}}const hS=new Set(["opacity","clipPath","filter","transform"]),pS=e=>Array.isArray(e)&&typeof e[0]=="number";function mS(e){return!!(!e||typeof e=="string"&&e in Hh||pS(e)||Array.isArray(e)&&e.every(mS))}const wi=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,Hh={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:wi([0,.65,.55,1]),circOut:wi([.55,0,1,.45]),backIn:wi([.31,.01,.66,-.59]),backOut:wi([.33,1.53,.69,.99])};function Bz(e){return gS(e)||Hh.easeOut}function gS(e){if(e)return pS(e)?wi(e):Array.isArray(e)?e.map(Bz):Hh[e]}function Vz(e,t,n,{delay:r=0,duration:o=300,repeat:i=0,repeatType:s="loop",ease:a,times:l}={}){const u={[t]:n};l&&(u.offset=l);const c=gS(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"})}const Oz=eS(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),Al=10,Nz=2e4;function Wz(e){return e.type==="spring"||!mS(e.ease)}function Uz(e,t){const n=new Uh({...t,keyframes:e,repeat:0,delay:0,isGenerator:!0});let r={done:!1,value:e[0]};const o=[];let i=0;for(;!r.done&&ithis.onKeyframesResolved(s,a),n,r,o),this.resolver.scheduleResolve()}initPlayback(t,n){var r;let{duration:o=300,times:i,ease:s,type:a,motionValue:l,name:u,startTime:c}=this.options;if(!(!((r=l.owner)===null||r===void 0)&&r.current))return!1;if(Wz(this.options)){const{onComplete:p,onUpdate:v,motionValue:b,element:y,...S}=this.options,f=Uz(t,S);t=f.keyframes,t.length===1&&(t[1]=t[0]),o=f.duration,i=f.times,s=f.ease,a="keyframes"}const d=Vz(l.owner.current,u,t,{...this.options,duration:o,times:i,ease:s});return d.startTime=c??this.calcStartTime(),this.pendingTimeline?(d.timeline=this.pendingTimeline,this.pendingTimeline=void 0):d.onfinish=()=>{const{onComplete:p}=this.options;l.set(yu(t,this.options,n)),p&&p(),this.cancel(),this.resolveFinishedPromise()},{animation:d,duration:o,times:i,type:a,ease:s,keyframes:t}}get duration(){const{resolved:t}=this;if(!t)return 0;const{duration:n}=t;return wn(n)}get time(){const{resolved:t}=this;if(!t)return 0;const{animation:n}=t;return wn(n.currentTime||0)}set time(t){const{resolved:n}=this;if(!n)return;const{animation:r}=n;r.currentTime=xn(t)}get speed(){const{resolved:t}=this;if(!t)return 1;const{animation:n}=t;return n.playbackRate}set speed(t){const{resolved:n}=this;if(!n)return;const{animation:r}=n;r.playbackRate=t}get state(){const{resolved:t}=this;if(!t)return"idle";const{animation:n}=t;return n.playState}get startTime(){const{resolved:t}=this;if(!t)return null;const{animation:n}=t;return n.startTime}attachTimeline(t){if(!this._resolved)this.pendingTimeline=t;else{const{resolved:n}=this;if(!n)return He;const{animation:r}=n;r.timeline=t,r.onfinish=null}return He}play(){if(this.isStopped)return;const{resolved:t}=this;if(!t)return;const{animation:n}=t;n.playState==="finished"&&this.updateFinishedPromise(),n.play()}pause(){const{resolved:t}=this;if(!t)return;const{animation:n}=t;n.pause()}stop(){if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.resolveFinishedPromise(),this.updateFinishedPromise();const{resolved:t}=this;if(!t)return;const{animation:n,keyframes:r,duration:o,type:i,ease:s,times:a}=t;if(n.playState==="idle"||n.playState==="finished")return;if(this.time){const{motionValue:u,onUpdate:c,onComplete:d,element:p,...v}=this.options,b=new Uh({...v,keyframes:r,duration:o,type:i,ease:s,times:a,isGenerator:!0}),y=xn(this.time);u.setWithVelocity(b.sample(y-Al).value,b.sample(y).value,Al)}const{onStop:l}=this.options;l&&l(),this.cancel()}complete(){const{resolved:t}=this;t&&t.animation.finish()}cancel(){const{resolved:t}=this;t&&t.animation.cancel()}static supports(t){const{motionValue:n,name:r,repeatDelay:o,repeatType:i,damping:s,type:a}=t;return Oz()&&r&&hS.has(r)&&n&&n.owner&&n.owner.current instanceof HTMLElement&&!n.owner.getProps().onUpdate&&!o&&i!=="mirror"&&s!==0&&a!=="inertia"}}function Hz(e,t){let n;const r=()=>{const{currentTime:o}=t,s=(o===null?0:o.value)/100;n!==s&&e(s),n=s};return J.update(r,!0),()=>Rn(r)}const Kz=eS(()=>window.ScrollTimeline!==void 0);class Gz{constructor(t){this.stop=()=>this.runAll("stop"),this.animations=t.filter(Boolean)}then(t,n){return Promise.all(this.animations).then(t).catch(n)}getAll(t){return this.animations[0][t]}setAll(t,n){for(let r=0;r{if(Kz()&&r.attachTimeline)r.attachTimeline(t);else return r.pause(),Hz(o=>{r.time=r.duration*o},t)});return()=>{n.forEach((r,o)=>{r&&r(),this.animations[o].stop()})}}get time(){return this.getAll("time")}set time(t){this.setAll("time",t)}get speed(){return this.getAll("speed")}set speed(t){this.setAll("speed",t)}get startTime(){return this.getAll("startTime")}get duration(){let t=0;for(let n=0;nn[t]())}play(){this.runAll("play")}pause(){this.runAll("pause")}cancel(){this.runAll("cancel")}complete(){this.runAll("complete")}}const Kh=(e,t,n,r={},o,i,s)=>a=>{const l=Dh(r,e)||{},u=l.delay||r.delay||0;let{elapsed:c=0}=r;c=c-xn(u);let d={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...l,delay:-c,onUpdate:v=>{t.set(v),l.onUpdate&&l.onUpdate(v)},onComplete:()=>{a(),l.onComplete&&l.onComplete(),s&&s()},onStop:s,name:e,motionValue:t,element:i?void 0:o};m4(l)||(d={...d,...p4(e,d)}),d.duration&&(d.duration=xn(d.duration)),d.repeatDelay&&(d.repeatDelay=xn(d.repeatDelay)),d.from!==void 0&&(d.keyframes[0]=d.from);let p=!1;if((d.type===!1||d.duration===0&&!d.repeatDelay)&&(d.duration=0,d.delay===0&&(p=!0)),p&&!i&&t.get()!==void 0){const v=yu(d.keyframes,l);if(v!==void 0)return J.update(()=>{d.onUpdate(v),d.onComplete()}),new Gz([])}return!i&&vg.supports(d)?new vg(d):new Uh(d)},Yz=e=>!!(e&&typeof e=="object"&&e.mix&&e.toValue),Xz=e=>Qd(e)?e[e.length-1]||0:e;function bu(e,t){e.indexOf(t)===-1&&e.push(t)}function Su(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}class Gh{constructor(){this.subscriptions=[]}add(t){return bu(this.subscriptions,t),()=>Su(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 vS{constructor(t,n={}){this.version="11.5.4",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(r,o=!0)=>{const i=kn.now();this.updatedAt!==i&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(r),this.current!==this.prev&&this.events.change&&this.events.change.notify(this.current),o&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.hasAnimated=!1,this.setCurrent(t),this.owner=n.owner}setCurrent(t){this.current=t,this.updatedAt=kn.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=qz(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return this.on("change",t)}on(t,n){this.events[t]||(this.events[t]=new Gh);const r=this.events[t].add(n);return t==="change"?()=>{r(),J.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=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-r}jump(t,n=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,n&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const t=kn.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>yg)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,yg);return nS(parseFloat(this.current)-parseFloat(this.prevFrameValue),n)}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 bs(e,t){return new vS(e,t)}function Qz(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,bs(n))}function Zz(e,t){const n=vu(e,t);let{transitionEnd:r={},transition:o={},...i}=n||{};i={...i,...r};for(const s in i){const a=Xz(i[s]);Qz(e,s,a)}}const xu=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),Jz="framerAppearId",yS="data-"+xu(Jz);function bS(e){return e.props[yS]}function SS(e){if(ur.has(e))return"transform";if(hS.has(e))return xu(e)}class eM extends vS{constructor(){super(...arguments),this.output=[],this.counts=new Map}add(t){const n=SS(t);if(!n)return;const r=this.counts.get(n)||0;this.counts.set(n,r+1),r===0&&(this.output.push(n),this.update());let o=!1;return()=>{if(o)return;o=!0;const i=this.counts.get(n)-1;this.counts.set(n,i),i===0&&(Su(this.output,n),this.update())}}update(){this.set(this.output.length?this.output.join(", "):"auto")}}const Ue=e=>!!(e&&e.getVelocity);function tM(e){return!!(Ue(e)&&e.add)}function sf(e,t){var n;if(!e.applyWillChange)return;let r=e.getValue("willChange");if(!r&&!(!((n=e.props.style)===null||n===void 0)&&n.willChange)&&(r=new eM("auto"),e.addValue("willChange",r)),tM(r))return r.add(t)}function nM({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function xS(e,t,{delay:n=0,transitionOverride:r,type:o}={}){var i;let{transition:s=e.getDefaultTransition(),transitionEnd:a,...l}=t;r&&(s=r);const u=[],c=o&&e.animationState&&e.animationState.getState()[o];for(const d in l){const p=e.getValue(d,(i=e.latestValues[d])!==null&&i!==void 0?i:null),v=l[d];if(v===void 0||c&&nM(c,d))continue;const b={delay:n,...Dh(s||{},d)};let y=!1;if(window.MotionHandoffAnimation){const f=bS(e);if(f){const h=window.MotionHandoffAnimation(f,d,J);h!==null&&(b.startTime=h,y=!0)}}p.start(Kh(d,p,v,e.shouldReduceMotion&&ur.has(d)?{type:!1}:b,e,y,sf(e,d)));const S=p.animation;S&&u.push(S)}return a&&Promise.all(u).then(()=>{J.update(()=>{a&&Zz(e,a)})}),u}function af(e,t,n={}){var r;const o=vu(e,t,n.type==="exit"?(r=e.presenceContext)===null||r===void 0?void 0:r.custom:void 0);let{transition:i=e.getDefaultTransition()||{}}=o||{};n.transitionOverride&&(i=n.transitionOverride);const s=o?()=>Promise.all(xS(e,o,n)):()=>Promise.resolve(),a=e.variantChildren&&e.variantChildren.size?(u=0)=>{const{delayChildren:c=0,staggerChildren:d,staggerDirection:p}=i;return rM(e,t,c+u,d,p,n)}:()=>Promise.resolve(),{when:l}=i;if(l){const[u,c]=l==="beforeChildren"?[s,a]:[a,s];return u().then(()=>c())}else return Promise.all([s(),a(n.delay)])}function rM(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(oM).forEach((u,c)=>{u.notify("AnimationStart",t),s.push(af(u,t,{...i,delay:n+l(c)}).then(()=>u.notify("AnimationComplete",t)))}),Promise.all(s)}function oM(e,t){return e.sortNodePosition(t)}function iM(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const o=t.map(i=>af(e,i,n));r=Promise.all(o)}else if(typeof t=="string")r=af(e,t,n);else{const o=typeof t=="function"?vu(e,t,n.custom):t;r=Promise.all(xS(e,o,n))}return r.then(()=>{e.notify("AnimationComplete",t)})}const sM=[...zh].reverse(),aM=zh.length;function lM(e){return t=>Promise.all(t.map(({animation:n,options:r})=>iM(e,n,r)))}function uM(e){let t=lM(e),n=bg(),r=!0;const o=l=>(u,c)=>{var d;const p=vu(e,c,l==="exit"?(d=e.presenceContext)===null||d===void 0?void 0:d.custom:void 0);if(p){const{transition:v,transitionEnd:b,...y}=p;u={...u,...y,...b}}return u};function i(l){t=l(e)}function s(l){const u=e.getProps(),c=e.getVariantContext(!0)||{},d=[],p=new Set;let v={},b=1/0;for(let S=0;Sb&&x,D=!1;const z=Array.isArray(m)?m:[m];let ne=z.reduce(o(f),{});C===!1&&(ne={});const{prevResolvedValues:Ye={}}=h,an={...Ye,...ne},dr=_e=>{P=!0,p.has(_e)&&(D=!0,p.delete(_e)),h.needsAnimating[_e]=!0;const Xe=e.getValue(_e);Xe&&(Xe.liveStyle=!1)};for(const _e in an){const Xe=ne[_e],ln=Ye[_e];if(v.hasOwnProperty(_e))continue;let M=!1;Qd(Xe)&&Qd(ln)?M=!Fb(Xe,ln):M=Xe!==ln,M?Xe!=null?dr(_e):p.add(_e):Xe!==void 0&&p.has(_e)?dr(_e):h.protectedKeys[_e]=!0}h.prevProp=m,h.prevResolvedValues=ne,h.isActive&&(v={...v,...ne}),r&&e.blockInitialAnimation&&(P=!1),P&&(!A||D)&&d.push(...z.map(_e=>({animation:_e,options:{type:f}})))}if(p.size){const S={};p.forEach(f=>{const h=e.getBaseTarget(f),m=e.getValue(f);m&&(m.liveStyle=!0),S[f]=h??null}),d.push({animation:S})}let y=!!d.length;return r&&(u.initial===!1||u.initial===u.animate)&&!e.manuallyAnimateOnMount&&(y=!1),r=!1,y?t(d):Promise.resolve()}function a(l,u){var c;if(n[l].isActive===u)return Promise.resolve();(c=e.variantChildren)===null||c===void 0||c.forEach(p=>{var v;return(v=p.animationState)===null||v===void 0?void 0:v.setActive(l,u)}),n[l].isActive=u;const d=s(l);for(const p in n)n[p].protectedKeys={};return d}return{animateChanges:s,setActive:a,setAnimateFunction:i,getState:()=>n,reset:()=>{n=bg(),r=!0}}}function cM(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!Fb(t,e):!1}function vr(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function bg(){return{animate:vr(!0),whileInView:vr(),whileHover:vr(),whileTap:vr(),whileDrag:vr(),whileFocus:vr(),exit:vr()}}class cr{constructor(t){this.isMounted=!1,this.node=t}update(){}}class dM extends cr{constructor(t){super(t),t.animationState||(t.animationState=uM(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();ms(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:n}=this.node.prevProps||{};t!==n&&this.updateAnimationControlsSubscription()}unmount(){var t;this.node.animationState.reset(),(t=this.unmountControls)===null||t===void 0||t.call(this)}}let fM=0;class hM extends cr{constructor(){super(...arguments),this.id=fM++}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:n}=this.node.presenceContext,{isPresent:r}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===r)return;const o=this.node.animationState.setActive("exit",!t);n&&!t&&o.then(()=>n(this.id))}mount(){const{register:t}=this.node.presenceContext||{};t&&(this.unmount=t(this.id))}unmount(){}}const pM={animation:{Feature:dM},exit:{Feature:hM}},wS=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1;function wu(e,t="page"){return{point:{x:e[`${t}X`],y:e[`${t}Y`]}}}const mM=e=>t=>wS(t)&&e(t,wu(t));function yn(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}function _n(e,t,n,r){return yn(e,t,mM(n),r)}const Sg=(e,t)=>Math.abs(e-t);function gM(e,t){const n=Sg(e.x,t.x),r=Sg(e.y,t.y);return Math.sqrt(n**2+r**2)}class kS{constructor(t,n,{transformPagePoint:r,contextWindow:o,dragSnapToOrigin:i=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const d=Lc(this.lastMoveEventInfo,this.history),p=this.startEvent!==null,v=gM(d.offset,{x:0,y:0})>=3;if(!p&&!v)return;const{point:b}=d,{timestamp:y}=Ie;this.history.push({...b,timestamp:y});const{onStart:S,onMove:f}=this.handlers;p||(S&&S(this.lastMoveEvent,d),this.startEvent=this.lastMoveEvent),f&&f(this.lastMoveEvent,d)},this.handlePointerMove=(d,p)=>{this.lastMoveEvent=d,this.lastMoveEventInfo=jc(p,this.transformPagePoint),J.update(this.updatePoint,!0)},this.handlePointerUp=(d,p)=>{this.end();const{onEnd:v,onSessionEnd:b,resumeAnimation:y}=this.handlers;if(this.dragSnapToOrigin&&y&&y(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const S=Lc(d.type==="pointercancel"?this.lastMoveEventInfo:jc(p,this.transformPagePoint),this.history);this.startEvent&&v&&v(d,S),b&&b(d,S)},!wS(t))return;this.dragSnapToOrigin=i,this.handlers=n,this.transformPagePoint=r,this.contextWindow=o||window;const s=wu(t),a=jc(s,this.transformPagePoint),{point:l}=a,{timestamp:u}=Ie;this.history=[{...l,timestamp:u}];const{onSessionStart:c}=n;c&&c(t,Lc(a,this.history)),this.removeListeners=Cn(_n(this.contextWindow,"pointermove",this.handlePointerMove),_n(this.contextWindow,"pointerup",this.handlePointerUp),_n(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),Rn(this.updatePoint)}}function jc(e,t){return t?{point:t(e.point)}:e}function xg(e,t){return{x:e.x-t.x,y:e.y-t.y}}function Lc({point:e},t){return{point:e,delta:xg(e,CS(t)),offset:xg(e,vM(t)),velocity:yM(t,.1)}}function vM(e){return e[0]}function CS(e){return e[e.length-1]}function yM(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const o=CS(e);for(;n>=0&&(r=e[n],!(o.timestamp-r.timestamp>xn(t)));)n--;if(!r)return{x:0,y:0};const i=wn(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 _S(e){let t=null;return()=>{const n=()=>{t=null};return t===null?(t=e,n):!1}}const wg=_S("dragHorizontal"),kg=_S("dragVertical");function TS(e){let t=!1;if(e==="y")t=kg();else if(e==="x")t=wg();else{const n=wg(),r=kg();n&&r?t=()=>{n(),r()}:(n&&n(),r&&r())}return t}function PS(){const e=TS(!0);return e?(e(),!1):!0}function po(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}const ES=1e-4,bM=1-ES,SM=1+ES,$S=.01,xM=0-$S,wM=0+$S;function vt(e){return e.max-e.min}function kM(e,t,n){return Math.abs(e-t)<=n}function Cg(e,t,n,r=.5){e.origin=r,e.originPoint=me(t.min,t.max,e.origin),e.scale=vt(n)/vt(t),e.translate=me(n.min,n.max,e.origin)-e.originPoint,(e.scale>=bM&&e.scale<=SM||isNaN(e.scale))&&(e.scale=1),(e.translate>=xM&&e.translate<=wM||isNaN(e.translate))&&(e.translate=0)}function Ni(e,t,n,r){Cg(e.x,t.x,n.x,r?r.originX:void 0),Cg(e.y,t.y,n.y,r?r.originY:void 0)}function _g(e,t,n){e.min=n.min+t.min,e.max=e.min+vt(t)}function CM(e,t,n){_g(e.x,t.x,n.x),_g(e.y,t.y,n.y)}function Tg(e,t,n){e.min=t.min-n.min,e.max=e.min+vt(t)}function Wi(e,t,n){Tg(e.x,t.x,n.x),Tg(e.y,t.y,n.y)}function _M(e,{min:t,max:n},r){return t!==void 0&&en&&(e=r?me(n,e,r.max):Math.min(e,n)),e}function Pg(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 TM(e,{top:t,left:n,bottom:r,right:o}){return{x:Pg(e.x,n,o),y:Pg(e.y,t,r)}}function Eg(e,t){let n=t.min-e.min,r=t.max-e.max;return t.max-t.minr?n=ys(t.min,t.max-r,e.min):r>o&&(n=ys(e.min,e.max-o,t.min)),rr(0,1,n)}function $M(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 lf=.35;function AM(e=lf){return e===!1?e=0:e===!0&&(e=lf),{x:$g(e,"left","right"),y:$g(e,"top","bottom")}}function $g(e,t,n){return{min:Ag(e,t),max:Ag(e,n)}}function Ag(e,t){return typeof e=="number"?e:e[t]||0}const Rg=()=>({translate:0,scale:1,origin:0,originPoint:0}),mo=()=>({x:Rg(),y:Rg()}),zg=()=>({min:0,max:0}),be=()=>({x:zg(),y:zg()});function Ct(e){return[e("x"),e("y")]}function AS({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function RM({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function zM(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 Bc(e){return e===void 0||e===1}function uf({scale:e,scaleX:t,scaleY:n}){return!Bc(e)||!Bc(t)||!Bc(n)}function Sr(e){return uf(e)||RS(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function RS(e){return Mg(e.x)||Mg(e.y)}function Mg(e){return e&&e!=="0%"}function Rl(e,t,n){const r=e-n,o=t*r;return n+o}function Dg(e,t,n,r,o){return o!==void 0&&(e=Rl(e,o,r)),Rl(e,n,r)+t}function cf(e,t=0,n=1,r,o){e.min=Dg(e.min,t,n,r,o),e.max=Dg(e.max,t,n,r,o)}function zS(e,{x:t,y:n}){cf(e.x,t.translate,t.scale,t.originPoint),cf(e.y,n.translate,n.scale,n.originPoint)}const Ig=.999999999999,Fg=1.0000000000001;function MM(e,t,n,r=!1){const o=n.length;if(!o)return;t.x=t.y=1;let i,s;for(let a=0;aIg&&(t.x=1),t.yIg&&(t.y=1)}function go(e,t){e.min=e.min+t,e.max=e.max+t}function jg(e,t,n,r,o=.5){const i=me(e.min,e.max,o);cf(e,t,n,i,r)}function vo(e,t){jg(e.x,t.x,t.scaleX,t.scale,t.originX),jg(e.y,t.y,t.scaleY,t.scale,t.originY)}function MS(e,t){return AS(zM(e.getBoundingClientRect(),t))}function DM(e,t,n){const r=MS(e,n),{scroll:o}=t;return o&&(go(r.x,o.offset.x),go(r.y,o.offset.y)),r}const DS=({current:e})=>e?e.ownerDocument.defaultView:null,IM=new WeakMap;class FM{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:n=!1}={}){const{presenceContext:r}=this.visualElement;if(r&&r.isPresent===!1)return;const o=c=>{const{dragSnapToOrigin:d}=this.getProps();d?this.pauseAnimation():this.stopAnimation(),n&&this.snapToCursor(wu(c,"page").point)},i=(c,d)=>{var p;const{drag:v,dragPropagation:b,onDragStart:y}=this.getProps();if(v&&!b&&(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=TS(v),!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),Ct(f=>{let h=this.getAxisMotionValue(f).get()||0;if(sn.test(h)){const{projection:m}=this.visualElement;if(m&&m.layout){const x=m.layout.layoutBox[f];x&&(h=vt(x)*(parseFloat(h)/100))}}this.originPoint[f]=h}),y&&J.postRender(()=>y(c,d)),(p=this.removeWillChange)===null||p===void 0||p.call(this),this.removeWillChange=sf(this.visualElement,"transform");const{animationState:S}=this.visualElement;S&&S.setActive("whileDrag",!0)},s=(c,d)=>{const{dragPropagation:p,dragDirectionLock:v,onDirectionLock:b,onDrag:y}=this.getProps();if(!p&&!this.openGlobalLock)return;const{offset:S}=d;if(v&&this.currentDirection===null){this.currentDirection=jM(S),this.currentDirection!==null&&b&&b(this.currentDirection);return}this.updateAxis("x",d.point,S),this.updateAxis("y",d.point,S),this.visualElement.render(),y&&y(c,d)},a=(c,d)=>this.stop(c,d),l=()=>Ct(c=>{var d;return this.getAnimationState(c)==="paused"&&((d=this.getAxisMotionValue(c).animation)===null||d===void 0?void 0:d.play())}),{dragSnapToOrigin:u}=this.getProps();this.panSession=new kS(t,{onSessionStart:o,onStart:i,onMove:s,onSessionEnd:a,resumeAnimation:l},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:u,contextWindow:DS(this.visualElement)})}stop(t,n){var r;(r=this.removeWillChange)===null||r===void 0||r.call(this);const o=this.isDragging;if(this.cancel(),!o)return;const{velocity:i}=n;this.startAnimation(i);const{onDragEnd:s}=this.getProps();s&&J.postRender(()=>s(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||!va(t,o,this.currentDirection))return;const i=this.getAxisMotionValue(t);let s=this.originPoint[t]+r[t];this.constraints&&this.constraints[t]&&(s=_M(s,this.constraints[t],this.elastic[t])),i.set(s)}resolveConstraints(){var t;const{dragConstraints:n,dragElastic:r}=this.getProps(),o=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(t=this.visualElement.projection)===null||t===void 0?void 0:t.layout,i=this.constraints;n&&po(n)?this.constraints||(this.constraints=this.resolveRefConstraints()):n&&o?this.constraints=TM(o.layoutBox,n):this.constraints=!1,this.elastic=AM(r),i!==this.constraints&&o&&this.constraints&&!this.hasMutatedConstraints&&Ct(s=>{this.constraints!==!1&&this.getAxisMotionValue(s)&&(this.constraints[s]=$M(o.layoutBox[s],this.constraints[s]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!po(t))return!1;const r=t.current,{projection:o}=this.visualElement;if(!o||!o.layout)return!1;const i=DM(r,o.root,this.visualElement.getTransformPagePoint());let s=PM(o.layout.layoutBox,i);if(n){const a=n(RM(s));this.hasMutatedConstraints=!!a,a&&(s=AS(a))}return s}startAnimation(t){const{drag:n,dragMomentum:r,dragElastic:o,dragTransition:i,dragSnapToOrigin:s,onDragTransitionEnd:a}=this.getProps(),l=this.constraints||{},u=Ct(c=>{if(!va(c,n,this.currentDirection))return;let d=l&&l[c]||{};s&&(d={min:0,max:0});const p=o?200:1e6,v=o?40:1e7,b={type:"inertia",velocity:r?t[c]:0,bounceStiffness:p,bounceDamping:v,timeConstant:750,restDelta:1,restSpeed:10,...i,...d};return this.startAxisValueAnimation(c,b)});return Promise.all(u).then(a)}startAxisValueAnimation(t,n){const r=this.getAxisMotionValue(t);return r.start(Kh(t,r,0,n,this.visualElement,!1,sf(this.visualElement,t)))}stopAnimation(){Ct(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){Ct(t=>{var n;return(n=this.getAxisMotionValue(t).animation)===null||n===void 0?void 0:n.pause()})}getAnimationState(t){var n;return(n=this.getAxisMotionValue(t).animation)===null||n===void 0?void 0:n.state}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){Ct(n=>{const{drag:r}=this.getProps();if(!va(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]-me(s,a,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!po(n)||!r||!this.constraints)return;this.stopAnimation();const o={x:0,y:0};Ct(s=>{const a=this.getAxisMotionValue(s);if(a&&this.constraints!==!1){const l=a.get();o[s]=EM({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(),Ct(s=>{if(!va(s,t,null))return;const a=this.getAxisMotionValue(s),{min:l,max:u}=this.constraints[s];a.set(me(l,u,o[s]))})}addListeners(){if(!this.visualElement.current)return;IM.set(this.visualElement,this);const t=this.visualElement.current,n=_n(t,"pointerdown",l=>{const{drag:u,dragListener:c=!0}=this.getProps();u&&c&&this.start(l)}),r=()=>{const{dragConstraints:l}=this.getProps();po(l)&&l.current&&(this.constraints=this.resolveRefConstraints())},{projection:o}=this.visualElement,i=o.addEventListener("measure",r);o&&!o.layout&&(o.root&&o.root.updateScroll(),o.updateLayout()),J.read(r);const s=yn(window,"resize",()=>this.scalePositionWithinConstraints()),a=o.addEventListener("didUpdate",({delta:l,hasLayoutChanged:u})=>{this.isDragging&&u&&(Ct(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=lf,dragMomentum:a=!0}=t;return{...t,drag:n,dragDirectionLock:r,dragPropagation:o,dragConstraints:i,dragElastic:s,dragMomentum:a}}}function va(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function jM(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class LM extends cr{constructor(t){super(t),this.removeGroupControls=He,this.removeListeners=He,this.controls=new FM(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||He}unmount(){this.removeGroupControls(),this.removeListeners()}}const Lg=e=>(t,n)=>{e&&J.postRender(()=>e(t,n))};class BM extends cr{constructor(){super(...arguments),this.removePointerDownListener=He}onPointerDown(t){this.session=new kS(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:DS(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:r,onPanEnd:o}=this.node.getProps();return{onSessionStart:Lg(t),onStart:Lg(n),onMove:r,onEnd:(i,s)=>{delete this.session,o&&J.postRender(()=>o(i,s))}}}mount(){this.removePointerDownListener=_n(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}const Rs=_.createContext(null);function VM(){const e=_.useContext(Rs);if(e===null)return[!0,null];const{isPresent:t,onExitComplete:n,register:r}=e,o=_.useId();_.useEffect(()=>r(o),[]);const i=_.useCallback(()=>n&&n(o),[o,n]);return!t&&n?[!1,i]:[!0]}function OM(){return NM(_.useContext(Rs))}function NM(e){return e===null?!0:e.isPresent}const Yh=_.createContext({}),IS=_.createContext({}),Ka={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function Bg(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const fi={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(B.test(e))e=parseFloat(e);else return e;const n=Bg(e,t.target.x),r=Bg(e,t.target.y);return`${n}% ${r}%`}},WM={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,o=or.parse(e);if(o.length>5)return r;const i=or.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=me(a,l,.5);return typeof o[2+s]=="number"&&(o[2+s]/=u),typeof o[3+s]=="number"&&(o[3+s]/=u),i(o)}},zl={};function UM(e){Object.assign(zl,e)}const{schedule:Xh,cancel:RF}=jb(queueMicrotask,!1);class HM extends _.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r,layoutId:o}=this.props,{projection:i}=t;UM(KM),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()})),Ka.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()||J.postRender(()=>{const a=s.getStack();(!a||!a.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),Xh.postRender(()=>{!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 FS(e){const[t,n]=VM(),r=_.useContext(Yh);return T.jsx(HM,{...e,layoutGroup:r,switchLayoutGroup:_.useContext(IS),isPresent:t,safeToRemove:n})}const KM={borderRadius:{...fi,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:fi,borderTopRightRadius:fi,borderBottomLeftRadius:fi,borderBottomRightRadius:fi,boxShadow:WM},jS=["TopLeft","TopRight","BottomLeft","BottomRight"],GM=jS.length,Vg=e=>typeof e=="string"?parseFloat(e):e,Og=e=>typeof e=="number"||B.test(e);function YM(e,t,n,r,o,i){o?(e.opacity=me(0,n.opacity!==void 0?n.opacity:1,XM(r)),e.opacityExit=me(t.opacity!==void 0?t.opacity:1,0,qM(r))):i&&(e.opacity=me(t.opacity!==void 0?t.opacity:1,n.opacity!==void 0?n.opacity:1,r));for(let s=0;srt?1:n(ys(e,t,r))}function Wg(e,t){e.min=t.min,e.max=t.max}function wt(e,t){Wg(e.x,t.x),Wg(e.y,t.y)}function Ug(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function Hg(e,t,n,r,o){return e-=t,e=Rl(e,1/n,r),o!==void 0&&(e=Rl(e,1/o,r)),e}function QM(e,t=0,n=1,r=.5,o,i=e,s=e){if(sn.test(t)&&(t=parseFloat(t),t=me(s.min,s.max,t/100)-s.min),typeof t!="number")return;let a=me(i.min,i.max,r);e===i&&(a-=t),e.min=Hg(e.min,t,n,a,o),e.max=Hg(e.max,t,n,a,o)}function Kg(e,t,[n,r,o],i,s){QM(e,t[n],t[r],t[o],t.scale,i,s)}const ZM=["x","scaleX","originX"],JM=["y","scaleY","originY"];function Gg(e,t,n,r){Kg(e.x,t,ZM,n?n.x:void 0,r?r.x:void 0),Kg(e.y,t,JM,n?n.y:void 0,r?r.y:void 0)}function Yg(e){return e.translate===0&&e.scale===1}function BS(e){return Yg(e.x)&&Yg(e.y)}function Xg(e,t){return e.min===t.min&&e.max===t.max}function eD(e,t){return Xg(e.x,t.x)&&Xg(e.y,t.y)}function qg(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function VS(e,t){return qg(e.x,t.x)&&qg(e.y,t.y)}function Qg(e){return vt(e.x)/vt(e.y)}function Zg(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}class tD{constructor(){this.members=[]}add(t){bu(this.members,t),t.scheduleRender()}remove(t){if(Su(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 nD(e,t,n){let r="";const o=e.x.translate/t.x,i=e.y.translate/t.y,s=(n==null?void 0:n.z)||0;if((o||i||s)&&(r=`translate3d(${o}px, ${i}px, ${s}px) `),(t.x!==1||t.y!==1)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),n){const{transformPerspective:u,rotate:c,rotateX:d,rotateY:p,skewX:v,skewY:b}=n;u&&(r=`perspective(${u}px) ${r}`),c&&(r+=`rotate(${c}deg) `),d&&(r+=`rotateX(${d}deg) `),p&&(r+=`rotateY(${p}deg) `),v&&(r+=`skewX(${v}deg) `),b&&(r+=`skewY(${b}deg) `)}const a=e.x.scale*t.x,l=e.y.scale*t.y;return(a!==1||l!==1)&&(r+=`scale(${a}, ${l})`),r||"none"}const rD=(e,t)=>e.depth-t.depth;class oD{constructor(){this.children=[],this.isDirty=!1}add(t){bu(this.children,t),this.isDirty=!0}remove(t){Su(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(rD),this.isDirty=!1,this.children.forEach(t)}}function Ga(e){const t=Ue(e)?e.get():e;return Yz(t)?t.toValue():t}function iD(e,t){const n=kn.now(),r=({timestamp:o})=>{const i=o-n;i>=t&&(Rn(r),e(i-t))};return J.read(r,!0),()=>Rn(r)}function sD(e){return e instanceof SVGElement&&e.tagName!=="svg"}function aD(e,t,n){const r=Ue(e)?e:bs(e);return r.start(Kh("",r,t,n)),r.animation}const xr={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0},ki=typeof window<"u"&&window.MotionDebug!==void 0,Vc=["","X","Y","Z"],lD={visibility:"hidden"},Jg=1e3;let uD=0;function Oc(e,t,n,r){const{latestValues:o}=t;o[e]&&(n[e]=o[e],t.setStaticValue(e,0),r&&(r[e]=0))}function OS(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const n=bS(t);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:o,layoutId:i}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",J,!(o||i))}const{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&OS(r)}function NS({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:o}){return class{constructor(s={},a=t==null?void 0:t()){this.id=uD++,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.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,ki&&(xr.totalNodes=xr.resolvedTargetDeltas=xr.recalculatedProjection=0),this.nodes.forEach(fD),this.nodes.forEach(vD),this.nodes.forEach(yD),this.nodes.forEach(hD),ki&&window.MotionDebug.record(xr)},this.resolvedRelativeTargetAt=0,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=iD(p,250),Ka.hasAnimatedSinceResize&&(Ka.hasAnimatedSinceResize=!1,this.nodes.forEach(tv))})}l&&this.root.registerSharedNode(l,this),this.options.animate!==!1&&c&&(l||u)&&this.addEventListener("didUpdate",({delta:d,hasLayoutChanged:p,hasRelativeTargetChanged:v,layout:b})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const y=this.options.transition||c.getDefaultTransition()||kD,{onLayoutAnimationStart:S,onLayoutAnimationComplete:f}=c.getProps(),h=!this.targetLayout||!VS(this.targetLayout,b)||v,m=!p&&v;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||m||p&&(h||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(d,m);const x={...Dh(y,"layout"),onPlay:S,onComplete:f};(c.shouldReduceMotion||this.options.layoutRoot)&&(x.delay=0,x.type=!1),this.startAnimation(x)}else p||tv(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=b})}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,Rn(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(bD),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(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&OS(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let c=0;c{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 C=x/1e3;nv(d.x,s.x,C),nv(d.y,s.y,C),this.setTargetDelta(d),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Wi(p,this.layout.layoutBox,this.relativeParent.layout.layoutBox),xD(this.relativeTarget,this.relativeTargetOrigin,p,C),m&&eD(this.relativeTarget,m)&&(this.isProjectionDirty=!1),m||(m=be()),wt(m,this.relativeTarget)),y&&(this.animationValues=c,YM(c,u,this.latestValues,C,h,f)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=C},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&&(Rn(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=J.update(()=>{Ka.hasAnimatedSinceResize=!0,this.currentAnimation=aD(0,Jg,{...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(Jg),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&&WS(this.options.animationType,this.layout.layoutBox,u.layoutBox)){l=this.target||be();const d=vt(this.layout.layoutBox.x);l.x.min=s.target.x.min,l.x.max=l.x.min+d;const p=vt(this.layout.layoutBox.y);l.y.min=s.target.y.min,l.y.max=l.y.min+p}wt(a,l),vo(a,c),Ni(this.projectionDeltaWithTransform,this.layoutCorrected,a,c)}}registerSharedNode(s,a){this.sharedNodes.has(s)||this.sharedNodes.set(s,new tD),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}resetSkewAndRotation(){const{visualElement:s}=this.options;if(!s)return;let a=!1;const{latestValues:l}=s;if((l.z||l.rotate||l.rotateX||l.rotateY||l.rotateZ||l.skewX||l.skewY)&&(a=!0),!a)return;const u={};l.z&&Oc("z",s,u,this.animationValues);for(let c=0;c{var a;return(a=s.currentAnimation)===null||a===void 0?void 0:a.stop()}),this.root.nodes.forEach(ev),this.root.sharedNodes.clear()}}}function cD(e){e.updateLayout()}function dD(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"?Ct(d=>{const p=s?n.measuredBox[d]:n.layoutBox[d],v=vt(p);p.min=r[d].min,p.max=p.min+v}):WS(i,n.layoutBox,r)&&Ct(d=>{const p=s?n.measuredBox[d]:n.layoutBox[d],v=vt(r[d]);p.max=p.min+v,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[d].max=e.relativeTarget[d].min+v)});const a=mo();Ni(a,r,n.layoutBox);const l=mo();s?Ni(l,e.applyTransform(o,!0),n.measuredBox):Ni(l,r,n.layoutBox);const u=!BS(a);let c=!1;if(!e.resumeFrom){const d=e.getClosestProjectingParent();if(d&&!d.resumeFrom){const{snapshot:p,layout:v}=d;if(p&&v){const b=be();Wi(b,n.layoutBox,p.layoutBox);const y=be();Wi(y,r,v.layoutBox),VS(b,y)||(c=!0),d.options.layoutRoot&&(e.relativeTarget=y,e.relativeTargetOrigin=b,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 fD(e){ki&&xr.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 hD(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function pD(e){e.clearSnapshot()}function ev(e){e.clearMeasurements()}function mD(e){e.isLayoutDirty=!1}function gD(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function tv(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function vD(e){e.resolveTargetDelta()}function yD(e){e.calcProjection()}function bD(e){e.resetSkewAndRotation()}function SD(e){e.removeLeadSnapshot()}function nv(e,t,n){e.translate=me(t.translate,0,n),e.scale=me(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function rv(e,t,n,r){e.min=me(t.min,n.min,r),e.max=me(t.max,n.max,r)}function xD(e,t,n,r){rv(e.x,t.x,n.x,r),rv(e.y,t.y,n.y,r)}function wD(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const kD={duration:.45,ease:[.4,0,.1,1]},ov=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),iv=ov("applewebkit/")&&!ov("chrome/")?Math.round:He;function sv(e){e.min=iv(e.min),e.max=iv(e.max)}function CD(e){sv(e.x),sv(e.y)}function WS(e,t,n){return e==="position"||e==="preserve-aspect"&&!kM(Qg(t),Qg(n),.2)}function _D(e){var t;return e!==e.root&&((t=e.scroll)===null||t===void 0?void 0:t.wasRoot)}const TD=NS({attachResizeListener:(e,t)=>yn(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),Nc={current:void 0},US=NS({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!Nc.current){const e=new TD({});e.mount(window),e.setOptions({layoutScroll:!0}),Nc.current=e}return Nc.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),PD={pan:{Feature:BM},drag:{Feature:LM,ProjectionNode:US,MeasureLayout:FS}};function av(e,t){const n=t?"pointerenter":"pointerleave",r=t?"onHoverStart":"onHoverEnd",o=(i,s)=>{if(i.pointerType==="touch"||PS())return;const a=e.getProps();e.animationState&&a.whileHover&&e.animationState.setActive("whileHover",t);const l=a[r];l&&J.postRender(()=>l(i,s))};return _n(e.current,n,o,{passive:!e.getProps()[r]})}class ED extends cr{mount(){this.unmount=Cn(av(this.node,!0),av(this.node,!1))}unmount(){}}class $D extends cr{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=Cn(yn(this.node.current,"focus",()=>this.onFocus()),yn(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}const HS=(e,t)=>t?e===t?!0:HS(e,t.parentElement):!1;function Wc(e,t){if(!t)return;const n=new PointerEvent("pointer"+e);t(n,wu(n))}class AD extends cr{constructor(){super(...arguments),this.removeStartListeners=He,this.removeEndListeners=He,this.removeAccessibleListeners=He,this.startPointerPress=(t,n)=>{if(this.isPressing)return;this.removeEndListeners();const r=this.node.getProps(),i=_n(window,"pointerup",(a,l)=>{if(!this.checkPressEnd())return;const{onTap:u,onTapCancel:c,globalTapTarget:d}=this.node.getProps(),p=!d&&!HS(this.node.current,a.target)?c:u;p&&J.update(()=>p(a,l))},{passive:!(r.onTap||r.onPointerUp)}),s=_n(window,"pointercancel",(a,l)=>this.cancelPress(a,l),{passive:!(r.onTapCancel||r.onPointerCancel)});this.removeEndListeners=Cn(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()||Wc("up",(l,u)=>{const{onTap:c}=this.node.getProps();c&&J.postRender(()=>c(l,u))})};this.removeEndListeners(),this.removeEndListeners=yn(this.node.current,"keyup",s),Wc("down",(a,l)=>{this.startPress(a,l)})},n=yn(this.node.current,"keydown",t),r=()=>{this.isPressing&&Wc("cancel",(i,s)=>this.cancelPress(i,s))},o=yn(this.node.current,"blur",r);this.removeAccessibleListeners=Cn(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&&J.postRender(()=>r(t,n))}checkPressEnd(){return this.removeEndListeners(),this.isPressing=!1,this.node.getProps().whileTap&&this.node.animationState&&this.node.animationState.setActive("whileTap",!1),!PS()}cancelPress(t,n){if(!this.checkPressEnd())return;const{onTapCancel:r}=this.node.getProps();r&&J.postRender(()=>r(t,n))}mount(){const t=this.node.getProps(),n=_n(t.globalTapTarget?window:this.node.current,"pointerdown",this.startPointerPress,{passive:!(t.onTapStart||t.onPointerStart)}),r=yn(this.node.current,"focus",this.startAccessiblePress);this.removeStartListeners=Cn(n,r)}unmount(){this.removeStartListeners(),this.removeEndListeners(),this.removeAccessibleListeners()}}const df=new WeakMap,Uc=new WeakMap,RD=e=>{const t=df.get(e.target);t&&t(e)},zD=e=>{e.forEach(RD)};function MD({root:e,...t}){const n=e||document;Uc.has(n)||Uc.set(n,{});const r=Uc.get(n),o=JSON.stringify(t);return r[o]||(r[o]=new IntersectionObserver(zD,{root:e,...t})),r[o]}function DD(e,t,n){const r=MD(t);return df.set(e,n),r.observe(e),()=>{df.delete(e),r.unobserve(e)}}const ID={some:0,all:1};class FD extends cr{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:ID[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(),p=u?c:d;p&&p(l)};return DD(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(jD(t,n))&&this.startObserver()}unmount(){}}function jD({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const LD={inView:{Feature:FD},tap:{Feature:AD},focus:{Feature:$D},hover:{Feature:ED}},BD={layout:{ProjectionNode:US,MeasureLayout:FS}},qh=_.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"}),ku=_.createContext({}),Qh=typeof window<"u",KS=Qh?_.useLayoutEffect:_.useEffect,GS=_.createContext({strict:!1});let lv=!1;function VD(e,t,n,r,o){var i;const{visualElement:s}=_.useContext(ku),a=_.useContext(GS),l=_.useContext(Rs),u=_.useContext(qh).reducedMotion,c=_.useRef();r=r||a.renderer,!c.current&&r&&(c.current=r(e,{visualState:t,parent:s,props:n,presenceContext:l,blockInitialAnimation:l?l.initial===!1:!1,reducedMotionConfig:u}));const d=c.current,p=_.useContext(IS);d&&!d.projection&&o&&(d.type==="html"||d.type==="svg")&&ND(c.current,n,o,p),_.useInsertionEffect(()=>{d&&d.update(n,l)});const v=n[yS],b=_.useRef(!!v&&!window.MotionHandoffIsComplete&&((i=window.MotionHasOptimisedAnimation)===null||i===void 0?void 0:i.call(window,v)));return KS(()=>{d&&(d.updateFeatures(),Xh.render(d.render),b.current&&d.animationState&&d.animationState.animateChanges())}),_.useEffect(()=>{d&&(!b.current&&d.animationState&&d.animationState.animateChanges(),b.current=!1,lv||(lv=!0,queueMicrotask(OD)))}),d}function OD(){window.MotionHandoffIsComplete=!0}function ND(e,t,n,r){const{layoutId:o,layout:i,drag:s,dragConstraints:a,layoutScroll:l,layoutRoot:u}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:YS(e.parent)),e.projection.setOptions({layoutId:o,layout:i,alwaysMeasureLayout:!!s||a&&po(a),visualElement:e,animationType:typeof i=="string"?i:"both",initialPromotionConfig:r,layoutScroll:l,layoutRoot:u})}function YS(e){if(e)return e.options.allowProjection!==!1?e.projection:YS(e.parent)}function WD(e,t,n){return _.useCallback(r=>{r&&e.mount&&e.mount(r),t&&(r?t.mount(r):t.unmount()),n&&(typeof n=="function"?n(r):po(n)&&(n.current=r))},[t])}function Cu(e){return ms(e.animate)||Mh.some(t=>gs(e[t]))}function XS(e){return!!(Cu(e)||e.variants)}function UD(e,t){if(Cu(e)){const{initial:n,animate:r}=e;return{initial:n===!1||gs(n)?n:void 0,animate:gs(r)?r:void 0}}return e.inherit!==!1?t:{}}function HD(e){const{initial:t,animate:n}=UD(e,_.useContext(ku));return _.useMemo(()=>({initial:t,animate:n}),[uv(t),uv(n)])}function uv(e){return Array.isArray(e)?e.join(" "):e}const cv={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"]},Vo={};for(const e in cv)Vo[e]={isEnabled:t=>cv[e].some(n=>!!t[n])};function KD(e){for(const t in e)Vo[t]={...Vo[t],...e[t]}}const GD=Symbol.for("motionComponentSymbol");function YD({preloadedFeatures:e,createVisualElement:t,useRender:n,useVisualState:r,Component:o}){e&&KD(e);function i(a,l){let u;const c={..._.useContext(qh),...a,layoutId:XD(a)},{isStatic:d}=c,p=HD(a),v=r(a,d);if(!d&&Qh){qD();const b=QD(c);u=b.MeasureLayout,p.visualElement=VD(o,v,c,t,b.ProjectionNode)}return T.jsxs(ku.Provider,{value:p,children:[u&&p.visualElement?T.jsx(u,{visualElement:p.visualElement,...c}):null,n(o,a,WD(v,p.visualElement,l),v,d,p.visualElement)]})}const s=_.forwardRef(i);return s[GD]=o,s}function XD({layoutId:e}){const t=_.useContext(Yh).id;return t&&e!==void 0?t+"-"+e:e}function qD(e,t){_.useContext(GS).strict}function QD(e){const{drag:t,layout:n}=Vo;if(!t&&!n)return{};const r={...t,...n};return{MeasureLayout:t!=null&&t.isEnabled(e)||n!=null&&n.isEnabled(e)?r.MeasureLayout:void 0,ProjectionNode:r.ProjectionNode}}const ZD=["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 Zh(e){return typeof e!="string"||e.includes("-")?!1:!!(ZD.indexOf(e)>-1||/[A-Z]/u.test(e))}function qS(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 QS=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 ZS(e,t,n,r){qS(e,t,void 0,r);for(const o in t.attrs)e.setAttribute(QS.has(o)?o:xu(o),t.attrs[o])}function JS(e,{layout:t,layoutId:n}){return ur.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!zl[e]||e==="opacity")}function Jh(e,t,n){var r;const{style:o}=e,i={};for(const s in o)(Ue(o[s])||t.style&&Ue(t.style[s])||JS(s,e)||((r=n==null?void 0:n.getValue(s))===null||r===void 0?void 0:r.liveStyle)!==void 0)&&(i[s]=o[s]);return n&&o&&typeof o.willChange=="string"&&(n.applyWillChange=!1),i}function ex(e,t,n){const r=Jh(e,t,n);for(const o in e)if(Ue(e[o])||Ue(t[o])){const i=Ps.indexOf(o)!==-1?"attr"+o.charAt(0).toUpperCase()+o.substring(1):o;r[i]=e[o]}return r}function ep(e){const t=_.useRef(null);return t.current===null&&(t.current=e()),t.current}function JD({applyWillChange:e=!1,scrapeMotionValuesFromProps:t,createRenderState:n,onMount:r},o,i,s,a){const l={latestValues:tI(o,i,s,a?!1:e,t),renderState:n()};return r&&(l.mount=u=>r(o,u,l)),l}const tx=e=>(t,n)=>{const r=_.useContext(ku),o=_.useContext(Rs),i=()=>JD(e,t,r,o,n);return n?i():ep(i)};function eI(e,t){const n=SS(t);n&&bu(e,n)}function dv(e,t,n){const r=Array.isArray(t)?t:[t];for(let o=0;o{for(const h in S){let m=S[h];if(Array.isArray(m)){const x=b?m.length-1:0;m=m[x]}m!==null&&(s[h]=m)}for(const h in f)s[h]=f[h]}),l&&(d&&c!==!1&&!ms(d)&&dv(e,d,S=>{for(const f in S)eI(a,f)}),a.length&&(s.willChange=a.join(","))),s}const tp=()=>({style:{},transform:{},transformOrigin:{},vars:{}}),nx=()=>({...tp(),attrs:{}}),rx=(e,t)=>t&&typeof e=="number"?t.transform(e):e,nI={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},rI=Ps.length;function oI(e,t,n){let r="",o=!0;for(let i=0;itypeof e=="string"&&e.toLowerCase()==="svg",uI={useVisualState:tx({scrapeMotionValuesFromProps:ex,createRenderState:nx,onMount:(e,t,{renderState:n,latestValues:r})=>{J.read(()=>{try{n.dimensions=typeof t.getBBox=="function"?t.getBBox():t.getBoundingClientRect()}catch{n.dimensions={x:0,y:0,width:0,height:0}}}),J.render(()=>{rp(n,r,op(t.tagName),e.transformTemplate),ZS(t,n)})}})},cI={useVisualState:tx({applyWillChange:!0,scrapeMotionValuesFromProps:Jh,createRenderState:tp})};function ox(e,t,n){for(const r in t)!Ue(t[r])&&!JS(r,n)&&(e[r]=t[r])}function dI({transformTemplate:e},t){return _.useMemo(()=>{const n=tp();return np(n,t,e),Object.assign({},n.vars,n.style)},[t])}function fI(e,t){const n=e.style||{},r={};return ox(r,n,e),Object.assign(r,dI(e,t)),r}function hI(e,t){const n={},r=fI(e,t);return e.drag&&e.dragListener!==!1&&(n.draggable=!1,r.userSelect=r.WebkitUserSelect=r.WebkitTouchCallout="none",r.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=r,n}const pI=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function Ml(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||pI.has(e)}let ix=e=>!Ml(e);function mI(e){e&&(ix=t=>t.startsWith("on")?!Ml(t):e(t))}try{mI(require("@emotion/is-prop-valid").default)}catch{}function gI(e,t,n){const r={};for(const o in e)o==="values"&&typeof e.values=="object"||(ix(o)||n===!0&&Ml(o)||!t&&!Ml(o)||e.draggable&&o.startsWith("onDrag"))&&(r[o]=e[o]);return r}function vI(e,t,n,r){const o=_.useMemo(()=>{const i=nx();return rp(i,t,op(r),e.transformTemplate),{...i.attrs,style:{...i.style}}},[t]);if(e.style){const i={};ox(i,e.style,e),o.style={...i,...o.style}}return o}function yI(e=!1){return(n,r,o,{latestValues:i},s)=>{const l=(Zh(n)?vI:hI)(r,i,s,n),u=gI(r,typeof n=="string",e),c=n!==_.Fragment?{...u,...l,ref:o}:{},{children:d}=r,p=_.useMemo(()=>Ue(d)?d.get():d,[d]);return _.createElement(n,{...c,children:p})}}function bI(e,t){return function(r,{forwardMotionProps:o}={forwardMotionProps:!1}){const s={...Zh(r)?uI:cI,preloadedFeatures:e,useRender:yI(o),createVisualElement:t,Component:r};return YD(s)}}const ff={current:null},sx={current:!1};function SI(){if(sx.current=!0,!!Qh)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>ff.current=e.matches;e.addListener(t),t()}else ff.current=!1}function xI(e,t,n){for(const r in t){const o=t[r],i=n[r];if(Ue(o))e.addValue(r,o);else if(Ue(i))e.addValue(r,bs(o,{owner:e}));else if(i!==o)if(e.hasValue(r)){const s=e.getValue(r);s.liveStyle===!0?s.jump(o):s.hasAnimated||s.set(o)}else{const s=e.getStaticValue(r);e.addValue(r,bs(s!==void 0?s:o,{owner:e}))}}for(const r in n)t[r]===void 0&&e.removeValue(r);return t}const hv=new WeakMap,wI=[...Ub,Ne,or],kI=e=>wI.find(Wb(e)),pv=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],CI=Mh.length;class _I{scrapeMotionValuesFromProps(t,n,r){return{}}constructor({parent:t,props:n,presenceContext:r,reducedMotionConfig:o,blockInitialAnimation:i,visualState:s},a={}){this.applyWillChange=!1,this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=jh,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.isRenderScheduled=!1,this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.isRenderScheduled=!1,this.scheduleRender=()=>{this.isRenderScheduled||(this.isRenderScheduled=!0,J.render(this.render,!1,!0))};const{latestValues:l,renderState:u}=s;this.latestValues=l,this.baseTarget={...l},this.initialValues=n.initial?{...l}:{},this.renderState=u,this.parent=t,this.props=n,this.presenceContext=r,this.depth=t?t.depth+1:0,this.reducedMotionConfig=o,this.options=a,this.blockInitialAnimation=!!i,this.isControllingVariants=Cu(n),this.isVariantNode=XS(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:c,...d}=this.scrapeMotionValuesFromProps(n,{},this);for(const p in d){const v=d[p];l[p]!==void 0&&Ue(v)&&v.set(l[p],!1)}}mount(t){this.current=t,hv.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)),sx.current||SI(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:ff.current,this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){hv.delete(this.current),this.projection&&this.projection.unmount(),Rn(this.notifyUpdate),Rn(this.render),this.valueSubscriptions.forEach(t=>t()),this.valueSubscriptions.clear(),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){const n=this.features[t];n&&(n.unmount(),n.isMounted=!1)}this.current=null}bindToMotionValue(t,n){this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)();const r=ur.has(t),o=n.on("change",a=>{this.latestValues[t]=a,this.props.onUpdate&&J.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0)}),i=n.on("renderRequest",this.scheduleRender);let s;window.MotionCheckAppearSync&&(s=window.MotionCheckAppearSync(this,t,n)),this.valueSubscriptions.set(t,()=>{o(),i(),s&&s(),n.owner&&n.stop()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}updateFeatures(){let t="animation";for(t in Vo){const n=Vo[t];if(!n)continue;const{isEnabled:r,Feature:o}=n;if(!this.features[t]&&o&&r(this.props)&&(this.features[t]=new o(this)),this.features[t]){const i=this.features[t];i.isMounted?i.update():(i.mount(),i.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):be()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,n){this.latestValues[t]=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){const r=this.values.get(t);n!==r&&(r&&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=bs(n===null?void 0:n,{owner:this}),this.addValue(t,r)),r}readValue(t,n){var r;let o=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);return o!=null&&(typeof o=="string"&&(Bb(o)||Lb(o))?o=parseFloat(o):!kI(o)&&or.test(n)&&(o=Zb(t,n)),this.setBaseTarget(t,Ue(o)?o.get():o)),Ue(o)?o.get():o}setBaseTarget(t,n){this.baseTarget[t]=n}getBaseTarget(t){var n;const{initial:r}=this.props;let o;if(typeof r=="string"||typeof r=="object"){const s=Rh(this.props,r,(n=this.presenceContext)===null||n===void 0?void 0:n.custom);s&&(o=s[t])}if(r&&o!==void 0)return o;const i=this.getBaseTargetFromProps(this.props,t);return i!==void 0&&!Ue(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 Gh),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}}class ax extends _I{constructor(){super(...arguments),this.KeyframeResolver=Jb}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]}}function TI(e){return window.getComputedStyle(e)}class PI extends ax{constructor(){super(...arguments),this.type="html",this.applyWillChange=!0,this.renderInstance=qS}readValueFromInstance(t,n){if(ur.has(n)){const r=Vh(n);return r&&r.default||0}else{const r=TI(t),o=(Ob(n)?r.getPropertyValue(n):r[n])||0;return typeof o=="string"?o.trim():o}}measureInstanceViewportBox(t,{transformPagePoint:n}){return MS(t,n)}build(t,n,r){np(t,n,r.transformTemplate)}scrapeMotionValuesFromProps(t,n,r){return Jh(t,n,r)}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;Ue(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}class EI extends ax{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=be}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(ur.has(n)){const r=Vh(n);return r&&r.default||0}return n=QS.has(n)?n:xu(n),t.getAttribute(n)}scrapeMotionValuesFromProps(t,n,r){return ex(t,n,r)}build(t,n,r){rp(t,n,this.isSVGTag,r.transformTemplate)}renderInstance(t,n,r,o){ZS(t,n,r,o)}mount(t){this.isSVGTag=op(t.tagName),super.mount(t)}}const $I=(e,t)=>Zh(e)?new EI(t):new PI(t,{allowProjection:e!==_.Fragment}),AI=bI({...pM,...LD,...PD,...BD},$I),RI=u4(AI);class zI extends _.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 MI({children:e,isPresent:t}){const n=_.useId(),r=_.useRef(null),o=_.useRef({width:0,height:0,top:0,left:0}),{nonce:i}=_.useContext(qh);return _.useInsertionEffect(()=>{const{width:s,height:a,top:l,left:u}=o.current;if(t||!r.current||!s||!a)return;r.current.dataset.motionPopId=n;const c=document.createElement("style");return i&&(c.nonce=i),document.head.appendChild(c),c.sheet&&c.sheet.insertRule(` + )`;return{...!r&&o&&i,...r?{bgImage:a}:{bgColor:s}}},j5={lineHeight:"1",fontSize:"0.25em",fontWeight:"bold",color:"white"},L5=e=>({bg:j("gray.100","whiteAlpha.300")(e)}),B5=e=>({transitionProperty:"common",transitionDuration:"slow",...F5(e)}),V5=xi(e=>({label:j5,filledTrack:B5(e),track:L5(e)})),O5={xs:xi({track:{h:"1"}}),sm:xi({track:{h:"2"}}),md:xi({track:{h:"3"}}),lg:xi({track:{h:"4"}})},N5=I5({sizes:O5,baseStyle:V5,defaultProps:{size:"md",colorScheme:"blue"}}),W5=e=>typeof e=="function";function Je(e,...t){return W5(e)?e(...t):e}var{definePartsStyle:Oa,defineMultiStyleConfig:U5}=ie(FP.keys),ji=L("checkbox-size"),H5=e=>{const{colorScheme:t}=e;return{w:ji.reference,h:ji.reference,transitionProperty:"box-shadow",transitionDuration:"normal",border:"2px solid",borderRadius:"sm",borderColor:"inherit",color:"white",_checked:{bg:j(`${t}.500`,`${t}.200`)(e),borderColor:j(`${t}.500`,`${t}.200`)(e),color:j("white","gray.900")(e),_hover:{bg:j(`${t}.600`,`${t}.300`)(e),borderColor:j(`${t}.600`,`${t}.300`)(e)},_disabled:{borderColor:j("gray.200","transparent")(e),bg:j("gray.200","whiteAlpha.300")(e),color:j("gray.500","whiteAlpha.500")(e)}},_indeterminate:{bg:j(`${t}.500`,`${t}.200`)(e),borderColor:j(`${t}.500`,`${t}.200`)(e),color:j("white","gray.900")(e)},_disabled:{bg:j("gray.100","whiteAlpha.100")(e),borderColor:j("gray.100","transparent")(e)},_focusVisible:{boxShadow:"outline"},_invalid:{borderColor:j("red.500","red.300")(e)}}},K5={_disabled:{cursor:"not-allowed"}},G5={userSelect:"none",_disabled:{opacity:.4}},Y5={transitionProperty:"transform",transitionDuration:"normal"},X5=Oa(e=>({icon:Y5,container:K5,control:Je(H5,e),label:G5})),q5={sm:Oa({control:{[ji.variable]:"sizes.3"},label:{fontSize:"sm"},icon:{fontSize:"3xs"}}),md:Oa({control:{[ji.variable]:"sizes.4"},label:{fontSize:"md"},icon:{fontSize:"2xs"}}),lg:Oa({control:{[ji.variable]:"sizes.5"},label:{fontSize:"lg"},icon:{fontSize:"2xs"}})},_l=U5({baseStyle:X5,sizes:q5,defaultProps:{size:"md",colorScheme:"blue"}}),{defineMultiStyleConfig:Q5,definePartsStyle:Na}=ie(YP.keys),Z5=e=>{var t;const n=(t=Je(_l.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"}}}},J5=Na(e=>{var t,n,r,o;return{label:(n=(t=_l).baseStyle)==null?void 0:n.call(t,e).label,container:(o=(r=_l).baseStyle)==null?void 0:o.call(r,e).container,control:Z5(e)}}),e$={md:Na({control:{w:"4",h:"4"},label:{fontSize:"md"}}),lg:Na({control:{w:"5",h:"5"},label:{fontSize:"lg"}}),sm:Na({control:{width:"3",height:"3"},label:{fontSize:"sm"}})},t$=Q5({baseStyle:J5,sizes:e$,defaultProps:{size:"md",colorScheme:"blue"}}),{defineMultiStyleConfig:n$,definePartsStyle:r$}=ie(XP.keys),da=L("select-bg"),j0,o$={...(j0=q.baseStyle)==null?void 0:j0.field,appearance:"none",paddingBottom:"1px",lineHeight:"normal",bg:da.reference,[da.variable]:"colors.white",_dark:{[da.variable]:"colors.gray.700"},"> option, > optgroup":{bg:da.reference}},i$={width:"6",height:"100%",insetEnd:"2",position:"relative",color:"currentColor",fontSize:"xl",_disabled:{opacity:.5}},s$=r$({field:o$,icon:i$}),fa={paddingInlineEnd:"8"},L0,B0,V0,O0,N0,W0,U0,H0,a$={lg:{...(L0=q.sizes)==null?void 0:L0.lg,field:{...(B0=q.sizes)==null?void 0:B0.lg.field,...fa}},md:{...(V0=q.sizes)==null?void 0:V0.md,field:{...(O0=q.sizes)==null?void 0:O0.md.field,...fa}},sm:{...(N0=q.sizes)==null?void 0:N0.sm,field:{...(W0=q.sizes)==null?void 0:W0.sm.field,...fa}},xs:{...(U0=q.sizes)==null?void 0:U0.xs,field:{...(H0=q.sizes)==null?void 0:H0.xs.field,...fa},icon:{insetEnd:"1"}}},l$=n$({baseStyle:s$,sizes:a$,variants:q.variants,defaultProps:q.defaultProps}),yc=L("skeleton-start-color"),bc=L("skeleton-end-color"),u$={[yc.variable]:"colors.gray.100",[bc.variable]:"colors.gray.400",_dark:{[yc.variable]:"colors.gray.800",[bc.variable]:"colors.gray.600"},background:yc.reference,borderColor:bc.reference,opacity:.7,borderRadius:"sm"},c$={baseStyle:u$},Sc=L("skip-link-bg"),d$={borderRadius:"md",fontWeight:"semibold",_focusVisible:{boxShadow:"outline",padding:"4",position:"fixed",top:"6",insetStart:"6",[Sc.variable]:"colors.white",_dark:{[Sc.variable]:"colors.gray.700"},bg:Sc.reference}},f$={baseStyle:d$},{defineMultiStyleConfig:h$,definePartsStyle:gu}=ie(qP.keys),fs=L("slider-thumb-size"),hs=L("slider-track-size"),Un=L("slider-bg"),p$=e=>{const{orientation:t}=e;return{display:"inline-block",position:"relative",cursor:"pointer",_disabled:{opacity:.6,cursor:"default",pointerEvents:"none"},...Th({orientation:t,vertical:{h:"100%"},horizontal:{w:"100%"}})}},m$=e=>({...Th({orientation:e.orientation,horizontal:{h:hs.reference},vertical:{w:hs.reference}}),overflow:"hidden",borderRadius:"sm",[Un.variable]:"colors.gray.200",_dark:{[Un.variable]:"colors.whiteAlpha.200"},_disabled:{[Un.variable]:"colors.gray.300",_dark:{[Un.variable]:"colors.whiteAlpha.300"}},bg:Un.reference}),g$=e=>{const{orientation:t}=e;return{...Th({orientation:t,vertical:{left:"50%",transform:"translateX(-50%)",_active:{transform:"translateX(-50%) scale(1.15)"}},horizontal:{top:"50%",transform:"translateY(-50%)",_active:{transform:"translateY(-50%) scale(1.15)"}}}),w:fs.reference,h:fs.reference,display:"flex",alignItems:"center",justifyContent:"center",position:"absolute",outline:0,zIndex:1,borderRadius:"full",bg:"white",boxShadow:"base",border:"1px solid",borderColor:"transparent",transitionProperty:"transform",transitionDuration:"normal",_focusVisible:{boxShadow:"outline"},_disabled:{bg:"gray.300"}}},v$=e=>{const{colorScheme:t}=e;return{width:"inherit",height:"inherit",[Un.variable]:`colors.${t}.500`,_dark:{[Un.variable]:`colors.${t}.200`},bg:Un.reference}},y$=gu(e=>({container:p$(e),track:m$(e),thumb:g$(e),filledTrack:v$(e)})),b$=gu({container:{[fs.variable]:"sizes.4",[hs.variable]:"sizes.1"}}),S$=gu({container:{[fs.variable]:"sizes.3.5",[hs.variable]:"sizes.1"}}),x$=gu({container:{[fs.variable]:"sizes.2.5",[hs.variable]:"sizes.0.5"}}),w$={lg:b$,md:S$,sm:x$},k$=h$({baseStyle:y$,sizes:w$,defaultProps:{size:"md",colorScheme:"blue"}}),kr=Ee("spinner-size"),C$={width:[kr.reference],height:[kr.reference]},_$={xs:{[kr.variable]:"sizes.3"},sm:{[kr.variable]:"sizes.4"},md:{[kr.variable]:"sizes.6"},lg:{[kr.variable]:"sizes.8"},xl:{[kr.variable]:"sizes.12"}},T$={baseStyle:C$,sizes:_$,defaultProps:{size:"md"}},{defineMultiStyleConfig:P$,definePartsStyle:yb}=ie(QP.keys),E$={fontWeight:"medium"},$$={opacity:.8,marginBottom:"2"},A$={verticalAlign:"baseline",fontWeight:"semibold"},R$={marginEnd:1,w:"3.5",h:"3.5",verticalAlign:"middle"},z$=yb({container:{},label:E$,helpText:$$,number:A$,icon:R$}),M$={md:yb({label:{fontSize:"sm"},helpText:{fontSize:"sm"},number:{fontSize:"2xl"}})},D$=P$({baseStyle:z$,sizes:M$,defaultProps:{size:"md"}}),xc=L("kbd-bg"),I$={[xc.variable]:"colors.gray.100",_dark:{[xc.variable]:"colors.whiteAlpha.100"},bg:xc.reference,borderRadius:"md",borderWidth:"1px",borderBottomWidth:"3px",fontSize:"0.8em",fontWeight:"bold",lineHeight:"normal",px:"0.4em",whiteSpace:"nowrap"},F$={baseStyle:I$},j$={transitionProperty:"common",transitionDuration:"fast",transitionTimingFunction:"ease-out",cursor:"pointer",textDecoration:"none",outline:"none",color:"inherit",_hover:{textDecoration:"underline"},_focusVisible:{boxShadow:"outline"}},L$={baseStyle:j$},{defineMultiStyleConfig:B$,definePartsStyle:V$}=ie(NP.keys),O$={marginEnd:"2",display:"inline",verticalAlign:"text-bottom"},N$=V$({icon:O$}),W$=B$({baseStyle:N$}),{defineMultiStyleConfig:U$,definePartsStyle:H$}=ie(WP.keys),Yt=L("menu-bg"),wc=L("menu-shadow"),K$={[Yt.variable]:"#fff",[wc.variable]:"shadows.sm",_dark:{[Yt.variable]:"colors.gray.700",[wc.variable]:"shadows.dark-lg"},color:"inherit",minW:"3xs",py:"2",zIndex:1,borderRadius:"md",borderWidth:"1px",bg:Yt.reference,boxShadow:wc.reference},G$={py:"1.5",px:"3",transitionProperty:"background",transitionDuration:"ultra-fast",transitionTimingFunction:"ease-in",_focus:{[Yt.variable]:"colors.gray.100",_dark:{[Yt.variable]:"colors.whiteAlpha.100"}},_active:{[Yt.variable]:"colors.gray.200",_dark:{[Yt.variable]:"colors.whiteAlpha.200"}},_expanded:{[Yt.variable]:"colors.gray.100",_dark:{[Yt.variable]:"colors.whiteAlpha.100"}},_disabled:{opacity:.4,cursor:"not-allowed"},bg:Yt.reference},Y$={mx:4,my:2,fontWeight:"semibold",fontSize:"sm"},X$={display:"inline-flex",alignItems:"center",justifyContent:"center",flexShrink:0},q$={opacity:.6},Q$={border:0,borderBottom:"1px solid",borderColor:"inherit",my:"2",opacity:.6},Z$={transitionProperty:"common",transitionDuration:"normal"},J$=H$({button:Z$,list:K$,item:G$,groupTitle:Y$,icon:X$,command:q$,divider:Q$}),eA=U$({baseStyle:J$}),{defineMultiStyleConfig:tA,definePartsStyle:Xd}=ie(UP.keys),kc=L("modal-bg"),Cc=L("modal-shadow"),nA={bg:"blackAlpha.600",zIndex:"modal"},rA=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"}},oA=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,[kc.variable]:"colors.white",[Cc.variable]:"shadows.lg",_dark:{[kc.variable]:"colors.gray.700",[Cc.variable]:"shadows.dark-lg"},bg:kc.reference,boxShadow:Cc.reference}},iA={px:"6",py:"4",fontSize:"xl",fontWeight:"semibold"},sA={position:"absolute",top:"2",insetEnd:"3"},aA=e=>{const{scrollBehavior:t}=e;return{px:"6",py:"2",flex:"1",overflow:t==="inside"?"auto":void 0}},lA={px:"6",py:"4"},uA=Xd(e=>({overlay:nA,dialogContainer:Je(rA,e),dialog:Je(oA,e),header:iA,closeButton:sA,body:Je(aA,e),footer:lA}));function Mt(e){return Xd(e==="full"?{dialog:{maxW:"100vw",minH:"$100vh",my:"0",borderRadius:"0"}}:{dialog:{maxW:e}})}var cA={xs:Mt("xs"),sm:Mt("sm"),md:Mt("md"),lg:Mt("lg"),xl:Mt("xl"),"2xl":Mt("2xl"),"3xl":Mt("3xl"),"4xl":Mt("4xl"),"5xl":Mt("5xl"),"6xl":Mt("6xl"),full:Mt("full")},dA=tA({baseStyle:uA,sizes:cA,defaultProps:{size:"md"}}),{defineMultiStyleConfig:fA,definePartsStyle:bb}=ie(HP.keys),Eh=Ee("number-input-stepper-width"),Sb=Ee("number-input-input-padding"),hA=pn(Eh).add("0.5rem").toString(),_c=Ee("number-input-bg"),Tc=Ee("number-input-color"),Pc=Ee("number-input-border-color"),pA={[Eh.variable]:"sizes.6",[Sb.variable]:hA},mA=e=>{var t,n;return(n=(t=Je(q.baseStyle,e))==null?void 0:t.field)!=null?n:{}},gA={width:Eh.reference},vA={borderStart:"1px solid",borderStartColor:Pc.reference,color:Tc.reference,bg:_c.reference,[Tc.variable]:"colors.chakra-body-text",[Pc.variable]:"colors.chakra-border-color",_dark:{[Tc.variable]:"colors.whiteAlpha.800",[Pc.variable]:"colors.whiteAlpha.300"},_active:{[_c.variable]:"colors.gray.200",_dark:{[_c.variable]:"colors.whiteAlpha.300"}},_disabled:{opacity:.4,cursor:"not-allowed"}},yA=bb(e=>{var t;return{root:pA,field:(t=Je(mA,e))!=null?t:{},stepperGroup:gA,stepper:vA}});function ha(e){var t,n,r;const o=(t=q.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=hb.fontSizes[s];return bb({field:{...o.field,paddingInlineEnd:Sb.reference,verticalAlign:"top"},stepper:{fontSize:pn(a).multiply(.75).toString(),_first:{borderTopEndRadius:i[e]},_last:{borderBottomEndRadius:i[e],mt:"-1px",borderTopWidth:1}}})}var bA={xs:ha("xs"),sm:ha("sm"),md:ha("md"),lg:ha("lg")},SA=fA({baseStyle:yA,sizes:bA,variants:q.variants,defaultProps:q.defaultProps}),K0,xA={...(K0=q.baseStyle)==null?void 0:K0.field,textAlign:"center"},wA={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"}},G0,Y0,kA={outline:e=>{var t,n,r;return(r=(n=Je((t=q.variants)==null?void 0:t.outline,e))==null?void 0:n.field)!=null?r:{}},flushed:e=>{var t,n,r;return(r=(n=Je((t=q.variants)==null?void 0:t.flushed,e))==null?void 0:n.field)!=null?r:{}},filled:e=>{var t,n,r;return(r=(n=Je((t=q.variants)==null?void 0:t.filled,e))==null?void 0:n.field)!=null?r:{}},unstyled:(Y0=(G0=q.variants)==null?void 0:G0.unstyled.field)!=null?Y0:{}},CA={baseStyle:xA,sizes:wA,variants:kA,defaultProps:q.defaultProps},{defineMultiStyleConfig:_A,definePartsStyle:TA}=ie(KP.keys),pa=Ee("popper-bg"),PA=Ee("popper-arrow-bg"),X0=Ee("popper-arrow-shadow-color"),EA={zIndex:10},$A={[pa.variable]:"colors.white",bg:pa.reference,[PA.variable]:pa.reference,[X0.variable]:"colors.gray.200",_dark:{[pa.variable]:"colors.gray.700",[X0.variable]:"colors.whiteAlpha.300"},width:"xs",border:"1px solid",borderColor:"inherit",borderRadius:"md",boxShadow:"sm",zIndex:"inherit",_focusVisible:{outline:0,boxShadow:"outline"}},AA={px:3,py:2,borderBottomWidth:"1px"},RA={px:3,py:2},zA={px:3,py:2,borderTopWidth:"1px"},MA={position:"absolute",borderRadius:"md",top:1,insetEnd:2,padding:2},DA=TA({popper:EA,content:$A,header:AA,body:RA,footer:zA,closeButton:MA}),IA=_A({baseStyle:DA}),{definePartsStyle:qd,defineMultiStyleConfig:FA}=ie(jP.keys),Ec=L("drawer-bg"),$c=L("drawer-box-shadow");function Gr(e){return qd(e==="full"?{dialog:{maxW:"100vw",h:"100vh"}}:{dialog:{maxW:e}})}var jA={bg:"blackAlpha.600",zIndex:"modal"},LA={display:"flex",zIndex:"modal",justifyContent:"center"},BA=e=>{const{isFullHeight:t}=e;return{...t&&{height:"100vh"},zIndex:"modal",maxH:"100vh",color:"inherit",[Ec.variable]:"colors.white",[$c.variable]:"shadows.lg",_dark:{[Ec.variable]:"colors.gray.700",[$c.variable]:"shadows.dark-lg"},bg:Ec.reference,boxShadow:$c.reference}},VA={px:"6",py:"4",fontSize:"xl",fontWeight:"semibold"},OA={position:"absolute",top:"2",insetEnd:"3"},NA={px:"6",py:"2",flex:"1",overflow:"auto"},WA={px:"6",py:"4"},UA=qd(e=>({overlay:jA,dialogContainer:LA,dialog:Je(BA,e),header:VA,closeButton:OA,body:NA,footer:WA})),HA={xs:Gr("xs"),sm:Gr("md"),md:Gr("lg"),lg:Gr("2xl"),xl:Gr("4xl"),full:Gr("full")},KA=FA({baseStyle:UA,sizes:HA,defaultProps:{size:"xs"}}),{definePartsStyle:GA,defineMultiStyleConfig:YA}=ie(LP.keys),XA={borderRadius:"md",py:"1",transitionProperty:"common",transitionDuration:"normal"},qA={borderRadius:"md",py:"1",transitionProperty:"common",transitionDuration:"normal",width:"full",_focusVisible:{boxShadow:"outline"},_placeholder:{opacity:.6}},QA={borderRadius:"md",py:"1",transitionProperty:"common",transitionDuration:"normal",width:"full",_focusVisible:{boxShadow:"outline"},_placeholder:{opacity:.6}},ZA=GA({preview:XA,input:qA,textarea:QA}),JA=YA({baseStyle:ZA}),{definePartsStyle:eR,defineMultiStyleConfig:tR}=ie(BP.keys),To=L("form-control-color"),nR={marginStart:"1",[To.variable]:"colors.red.500",_dark:{[To.variable]:"colors.red.300"},color:To.reference},rR={mt:"2",[To.variable]:"colors.gray.600",_dark:{[To.variable]:"colors.whiteAlpha.600"},color:To.reference,lineHeight:"normal",fontSize:"sm"},oR=eR({container:{width:"100%",position:"relative"},requiredIndicator:nR,helperText:rR}),iR=tR({baseStyle:oR}),{definePartsStyle:sR,defineMultiStyleConfig:aR}=ie(VP.keys),Po=L("form-error-color"),lR={[Po.variable]:"colors.red.500",_dark:{[Po.variable]:"colors.red.300"},color:Po.reference,mt:"2",fontSize:"sm",lineHeight:"normal"},uR={marginEnd:"0.5em",[Po.variable]:"colors.red.500",_dark:{[Po.variable]:"colors.red.300"},color:Po.reference},cR=sR({text:lR,icon:uR}),dR=aR({baseStyle:cR}),fR={fontSize:"md",marginEnd:"3",mb:"2",fontWeight:"medium",transitionProperty:"common",transitionDuration:"normal",opacity:1,_disabled:{opacity:.4}},hR={baseStyle:fR},pR={fontFamily:"heading",fontWeight:"bold"},mR={"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}},gR={baseStyle:pR,sizes:mR,defaultProps:{size:"xl"}},{defineMultiStyleConfig:vR,definePartsStyle:yR}=ie(IP.keys),Ac=L("breadcrumb-link-decor"),bR={transitionProperty:"common",transitionDuration:"fast",transitionTimingFunction:"ease-out",outline:"none",color:"inherit",textDecoration:Ac.reference,[Ac.variable]:"none","&:not([aria-current=page])":{cursor:"pointer",_hover:{[Ac.variable]:"underline"},_focusVisible:{boxShadow:"outline"}}},SR=yR({link:bR}),xR=vR({baseStyle:SR}),wR={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"}}},xb=e=>{const{colorScheme:t,theme:n}=e;if(t==="gray")return{color:j("gray.800","whiteAlpha.900")(e),_hover:{bg:j("gray.100","whiteAlpha.200")(e)},_active:{bg:j("gray.200","whiteAlpha.300")(e)}};const r=jo(`${t}.200`,.12)(n),o=jo(`${t}.200`,.24)(n);return{color:j(`${t}.600`,`${t}.200`)(e),bg:"transparent",_hover:{bg:j(`${t}.50`,r)(e)},_active:{bg:j(`${t}.100`,o)(e)}}},kR=e=>{const{colorScheme:t}=e,n=j("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"},...Je(xb,e)}},CR={yellow:{bg:"yellow.400",color:"black",hoverBg:"yellow.500",activeBg:"yellow.600"},cyan:{bg:"cyan.400",color:"black",hoverBg:"cyan.500",activeBg:"cyan.600"}},_R=e=>{var t;const{colorScheme:n}=e;if(n==="gray"){const l=j("gray.100","whiteAlpha.200")(e);return{bg:l,color:j("gray.800","whiteAlpha.900")(e),_hover:{bg:j("gray.200","whiteAlpha.300")(e),_disabled:{bg:l}},_active:{bg:j("gray.300","whiteAlpha.400")(e)}}}const{bg:r=`${n}.500`,color:o="white",hoverBg:i=`${n}.600`,activeBg:s=`${n}.700`}=(t=CR[n])!=null?t:{},a=j(r,`${n}.200`)(e);return{bg:a,color:j(o,"gray.800")(e),_hover:{bg:j(i,`${n}.300`)(e),_disabled:{bg:a}},_active:{bg:j(s,`${n}.400`)(e)}}},TR=e=>{const{colorScheme:t}=e;return{padding:0,height:"auto",lineHeight:"normal",verticalAlign:"baseline",color:j(`${t}.500`,`${t}.200`)(e),_hover:{textDecoration:"underline",_disabled:{textDecoration:"none"}},_active:{color:j(`${t}.700`,`${t}.500`)(e)}}},PR={bg:"none",color:"inherit",display:"inline",lineHeight:"inherit",m:"0",p:"0"},ER={ghost:xb,outline:kR,solid:_R,link:TR,unstyled:PR},$R={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"}},AR={baseStyle:wR,variants:ER,sizes:$R,defaultProps:{variant:"solid",size:"md",colorScheme:"gray"}},{definePartsStyle:Mr,defineMultiStyleConfig:RR}=ie(nE.keys),Tl=L("card-bg"),Sn=L("card-padding"),wb=L("card-shadow"),Wa=L("card-radius"),kb=L("card-border-width","0"),Cb=L("card-border-color"),zR=Mr({container:{[Tl.variable]:"colors.chakra-body-bg",backgroundColor:Tl.reference,boxShadow:wb.reference,borderRadius:Wa.reference,color:"chakra-body-text",borderWidth:kb.reference,borderColor:Cb.reference},body:{padding:Sn.reference,flex:"1 1 0%"},header:{padding:Sn.reference},footer:{padding:Sn.reference}}),MR={sm:Mr({container:{[Wa.variable]:"radii.base",[Sn.variable]:"space.3"}}),md:Mr({container:{[Wa.variable]:"radii.md",[Sn.variable]:"space.5"}}),lg:Mr({container:{[Wa.variable]:"radii.xl",[Sn.variable]:"space.7"}})},DR={elevated:Mr({container:{[wb.variable]:"shadows.base",_dark:{[Tl.variable]:"colors.gray.700"}}}),outline:Mr({container:{[kb.variable]:"1px",[Cb.variable]:"colors.chakra-border-color"}}),filled:Mr({container:{[Tl.variable]:"colors.chakra-subtle-bg"}}),unstyled:{body:{[Sn.variable]:0},header:{[Sn.variable]:0},footer:{[Sn.variable]:0}}},IR=RR({baseStyle:zR,variants:DR,sizes:MR,defaultProps:{variant:"elevated",size:"md"}}),Li=Ee("close-button-size"),di=Ee("close-button-bg"),FR={w:[Li.reference],h:[Li.reference],borderRadius:"md",transitionProperty:"common",transitionDuration:"normal",_disabled:{opacity:.4,cursor:"not-allowed",boxShadow:"none"},_hover:{[di.variable]:"colors.blackAlpha.100",_dark:{[di.variable]:"colors.whiteAlpha.100"}},_active:{[di.variable]:"colors.blackAlpha.200",_dark:{[di.variable]:"colors.whiteAlpha.200"}},_focusVisible:{boxShadow:"outline"},bg:di.reference},jR={lg:{[Li.variable]:"sizes.10",fontSize:"md"},md:{[Li.variable]:"sizes.8",fontSize:"xs"},sm:{[Li.variable]:"sizes.6",fontSize:"2xs"}},LR={baseStyle:FR,sizes:jR,defaultProps:{size:"md"}},{variants:BR,defaultProps:VR}=Fi,OR={fontFamily:"mono",fontSize:"sm",px:"0.2em",borderRadius:"sm",bg:xe.bg.reference,color:xe.color.reference,boxShadow:xe.shadow.reference},NR={baseStyle:OR,variants:BR,defaultProps:VR},WR={w:"100%",mx:"auto",maxW:"prose",px:"4"},UR={baseStyle:WR},HR={opacity:.6,borderColor:"inherit"},KR={borderStyle:"solid"},GR={borderStyle:"dashed"},YR={solid:KR,dashed:GR},XR={baseStyle:HR,variants:YR,defaultProps:{variant:"solid"}},{definePartsStyle:qR,defineMultiStyleConfig:QR}=ie(zP.keys),ZR={borderTopWidth:"1px",borderColor:"inherit",_last:{borderBottomWidth:"1px"}},JR={transitionProperty:"common",transitionDuration:"normal",fontSize:"md",_focusVisible:{boxShadow:"outline"},_hover:{bg:"blackAlpha.50"},_disabled:{opacity:.4,cursor:"not-allowed"},px:"4",py:"2"},e3={pt:"2",px:"4",pb:"5"},t3={fontSize:"1.25em"},n3=qR({container:ZR,button:JR,panel:e3,icon:t3}),r3=QR({baseStyle:n3}),{definePartsStyle:Ts,defineMultiStyleConfig:o3}=ie(MP.keys),mt=L("alert-fg"),An=L("alert-bg"),i3=Ts({container:{bg:An.reference,px:"4",py:"3"},title:{fontWeight:"bold",lineHeight:"6",marginEnd:"2"},description:{lineHeight:"6"},icon:{color:mt.reference,flexShrink:0,marginEnd:"3",w:"5",h:"6"},spinner:{color:mt.reference,flexShrink:0,marginEnd:"3",w:"5",h:"5"}});function $h(e){const{theme:t,colorScheme:n}=e,r=jo(`${n}.200`,.16)(t);return{light:`colors.${n}.100`,dark:r}}var s3=Ts(e=>{const{colorScheme:t}=e,n=$h(e);return{container:{[mt.variable]:`colors.${t}.600`,[An.variable]:n.light,_dark:{[mt.variable]:`colors.${t}.200`,[An.variable]:n.dark}}}}),a3=Ts(e=>{const{colorScheme:t}=e,n=$h(e);return{container:{[mt.variable]:`colors.${t}.600`,[An.variable]:n.light,_dark:{[mt.variable]:`colors.${t}.200`,[An.variable]:n.dark},paddingStart:"3",borderStartWidth:"4px",borderStartColor:mt.reference}}}),l3=Ts(e=>{const{colorScheme:t}=e,n=$h(e);return{container:{[mt.variable]:`colors.${t}.600`,[An.variable]:n.light,_dark:{[mt.variable]:`colors.${t}.200`,[An.variable]:n.dark},pt:"2",borderTopWidth:"4px",borderTopColor:mt.reference}}}),u3=Ts(e=>{const{colorScheme:t}=e;return{container:{[mt.variable]:"colors.white",[An.variable]:`colors.${t}.600`,_dark:{[mt.variable]:"colors.gray.900",[An.variable]:`colors.${t}.200`},color:mt.reference}}}),c3={subtle:s3,"left-accent":a3,"top-accent":l3,solid:u3},d3=o3({baseStyle:i3,variants:c3,defaultProps:{variant:"subtle",colorScheme:"blue"}}),{definePartsStyle:_b,defineMultiStyleConfig:f3}=ie(DP.keys),Eo=L("avatar-border-color"),Bi=L("avatar-bg"),ps=L("avatar-font-size"),Lo=L("avatar-size"),h3={borderRadius:"full",border:"0.2em solid",borderColor:Eo.reference,[Eo.variable]:"white",_dark:{[Eo.variable]:"colors.gray.800"}},p3={bg:Bi.reference,fontSize:ps.reference,width:Lo.reference,height:Lo.reference,lineHeight:"1",[Bi.variable]:"colors.gray.200",_dark:{[Bi.variable]:"colors.whiteAlpha.400"}},m3=e=>{const{name:t,theme:n}=e,r=t?wE({string:t}):"colors.gray.400",o=SE(r)(n);let i="white";return o||(i="gray.800"),{bg:Bi.reference,fontSize:ps.reference,color:i,borderColor:Eo.reference,verticalAlign:"top",width:Lo.reference,height:Lo.reference,"&:not([data-loaded])":{[Bi.variable]:r},[Eo.variable]:"colors.white",_dark:{[Eo.variable]:"colors.gray.800"}}},g3={fontSize:ps.reference,lineHeight:"1"},v3=_b(e=>({badge:Je(h3,e),excessLabel:Je(p3,e),container:Je(m3,e),label:g3}));function Ln(e){const t=e!=="100%"?mb[e]:void 0;return _b({container:{[Lo.variable]:t??e,[ps.variable]:`calc(${t??e} / 2.5)`},excessLabel:{[Lo.variable]:t??e,[ps.variable]:`calc(${t??e} / 2.5)`}})}var y3={"2xs":Ln(4),xs:Ln(6),sm:Ln(8),md:Ln(12),lg:Ln(16),xl:Ln(24),"2xl":Ln(32),full:Ln("100%")},b3=f3({baseStyle:v3,sizes:y3,defaultProps:{size:"md"}}),S3={Accordion:r3,Alert:d3,Avatar:b3,Badge:Fi,Breadcrumb:xR,Button:AR,Checkbox:_l,CloseButton:LR,Code:NR,Container:UR,Divider:XR,Drawer:KA,Editable:JA,Form:iR,FormError:dR,FormLabel:hR,Heading:gR,Input:q,Kbd:F$,Link:L$,List:W$,Menu:eA,Modal:dA,NumberInput:SA,PinInput:CA,Popover:IA,Progress:N5,Radio:t$,Select:l$,Skeleton:c$,SkipLink:f$,Slider:k$,Spinner:T$,Stat:D$,Switch:LE,Table:HE,Tabs:s5,Tag:b5,Textarea:R5,Tooltip:D5,Card:IR,Stepper:RP},x3={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"}}},w3={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"}}},k3="ltr",C3={useSystemColorMode:!1,initialColorMode:"light",cssVarPrefix:"chakra"},_3={semanticTokens:x3,direction:k3,...EP,components:S3,styles:w3,config:C3};function T3(e,t){const n={};return Object.keys(e).forEach(r=>{t.includes(r)||(n[r]=e[r])}),n}function P3(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}},Tb=E3(P3);function Pb(e,t){const n={};return Object.keys(e).forEach(r=>{const o=e[r];t(o,r,e)&&(n[r]=o)}),n}var Eb=e=>Pb(e,t=>t!=null);function $3(e){return typeof e=="function"}function $b(e,...t){return $3(e)?e(...t):e}var A3=typeof Element<"u",R3=typeof Map=="function",z3=typeof Set=="function",M3=typeof ArrayBuffer=="function"&&!!ArrayBuffer.isView;function Ua(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(!Ua(e[r],t[r]))return!1;return!0}var i;if(R3&&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(!Ua(r.value[1],t.get(r.value[0])))return!1;return!0}if(z3&&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(M3&&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(A3&&e instanceof Element)return!1;for(r=n;r--!==0;)if(!((o[r]==="_owner"||o[r]==="__v"||o[r]==="__o")&&e.$$typeof)&&!Ua(e[o[r]],t[o[r]]))return!1;return!0}return e!==e&&t!==t}var D3=function(t,n){try{return Ua(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 I3=gf(D3);function Ab(e,t={}){var n;const{styleConfig:r,...o}=t,{theme:i,colorMode:s}=ib(),a=e?Tb(i,`components.${e}`):void 0,l=r||a,u=en({theme:i,colorMode:s},(n=l==null?void 0:l.defaultProps)!=null?n:{},Eb(T3(o,["children"]))),c=_.useRef({});if(l){const p=oP(l)(u);I3(c.current,p)||(c.current=p)}return c.current}function Nr(e,t={}){return Ab(e,t)}function Ah(e,t={}){return Ab(e,t)}var F3=new Set([...KT,"textStyle","layerStyle","apply","noOfLines","focusBorderColor","errorBorderColor","as","__css","css","sx"]),j3=new Set(["htmlWidth","htmlHeight","htmlSize","htmlTranslate"]);function L3(e){return j3.has(e)||!F3.has(e)}function B3(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 V3(e){const t=Object.assign({},e);for(let n in t)t[n]===void 0&&delete t[n];return t}var O3=/^((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|disableRemotePlayback|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)-.*))$/,N3=N1(function(e){return O3.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),W3=N3,U3=function(t){return t!=="theme"},q0=function(t){return typeof t=="string"&&t.charCodeAt(0)>96?W3:U3},Q0=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},H3=!1,K3=function(t){var n=t.cache,r=t.serialized,o=t.isStringTag;return Y1(n,r,o),y2(function(){return X1(n,r,o)}),null},G3=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=Q0(t,n,r),l=a||q0(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 p=c.length,v=1;vt=>{const{theme:n,css:r,__css:o,sx:i,...s}=t,a=Pb(s,(d,p)=>YT(p)),l=$b(e,t),u=B3({},o,l,Eb(a),i),c=fb(u)(t.theme);return r?[c,r]:c};function Rc(e,t){const{baseStyle:n,...r}=t??{};r.shouldForwardProp||(r.shouldForwardProp=L3);const o=q3({baseStyle:n}),i=X3(e,r)(o);return Ya.forwardRef(function(l,u){const{colorMode:c,forced:d}=fu();return Ya.createElement(i,{ref:u,"data-theme":d?c:void 0,...l})})}function Q3(){const e=new Map;return new Proxy(Rc,{apply(t,n,r){return Rc(...r)},get(t,n){return e.has(n)||e.set(n,Rc(n)),e.get(n)}})}var ue=Q3();function ze(e){return _.forwardRef(e)}function Z3(e={}){const{strict:t=!0,errorMessage:n="useContext: `context` is undefined. Seems you forgot to wrap component within the Provider",name:r}=e,o=_.createContext(void 0);o.displayName=r;function i(){var s;const a=_.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 J3(e){const{cssVarsRoot:t,theme:n,children:r}=e,o=_.useMemo(()=>HT(n),[n]);return T.jsxs(x2,{theme:o,children:[T.jsx(e4,{root:t}),r]})}function e4({root:e=":host, :root"}){const t=[e,"[data-theme]"].join(",");return T.jsx(cu,{styles:n=>({[t]:n.__cssVars})})}Z3({name:"StylesContext",errorMessage:"useStyles: `styles` is undefined. Seems you forgot to wrap the components in `` "});function t4(){const{colorMode:e}=fu();return T.jsx(cu,{styles:t=>{const n=Tb(t,"styles.global"),r=$b(n,{theme:t,colorMode:e});return r?fb(r)(t):void 0}})}var Rb=_.createContext({getDocument(){return document},getWindow(){return window}});Rb.displayName="EnvironmentContext";function zb(e){const{children:t,environment:n,disabled:r}=e,o=_.useRef(null),i=_.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 T.jsxs(Rb.Provider,{value:i,children:[t,s&&T.jsx("span",{id:"__chakra_env",hidden:!0,ref:o})]})}zb.displayName="EnvironmentProvider";var n4=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=T.jsx(zb,{environment:a,disabled:u,children:t});return T.jsx(J3,{theme:s,cssVarsRoot:l,children:T.jsxs(ob,{colorModeManager:n,options:s.config,children:[i?T.jsx(_2,{scope:o}):T.jsx(C2,{}),!c&&T.jsx(t4,{}),r?T.jsx(nb,{zIndex:r,children:d}):d]})})},r4=(e,t)=>e.find(n=>n.id===t);function J0(e,t){const n=Mb(e,t),r=n?e[n].findIndex(o=>o.id===t):-1;return{position:n,index:r}}function Mb(e,t){for(const[n,r]of Object.entries(e))if(r4(r,t))return n}function o4(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 i4(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 s4(e,t=[]){const n=_.useRef(e);return _.useEffect(()=>{n.current=e}),_.useCallback((...r)=>{var o;return(o=n.current)==null?void 0:o.call(n,...r)},t)}function a4(e,t){const n=s4(e);_.useEffect(()=>{if(t==null)return;let r=null;return r=window.setTimeout(()=>{n()},t),()=>{r&&window.clearTimeout(r)}},[t,n])}function eg(e,t){const n=_.useRef(!1),r=_.useRef(!1);_.useEffect(()=>{if(n.current&&r.current)return e();r.current=!0},t),_.useEffect(()=>(n.current=!0,()=>{n.current=!1}),[])}function l4(e){if(typeof Proxy>"u")return e;const t=new Map,n=(...r)=>e(...r);return new Proxy(n,{get:(r,o)=>o==="create"?e:(t.has(o)||t.set(o,e(o)),t.get(o))})}function ms(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}const Qd=e=>Array.isArray(e);function Db(e,t){if(!Array.isArray(t))return!1;const n=t.length;if(n!==e.length)return!1;for(let r=0;r{t[0][r]=n.get(),t[1][r]=n.getVelocity()}),t}function Rh(e,t,n,r){if(typeof t=="function"){const[o,i]=tg(r);t=t(n!==void 0?n:e.custom,o,i)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){const[o,i]=tg(r);t=t(n!==void 0?n:e.custom,o,i)}return t}function vu(e,t,n){const r=e.getProps();return Rh(r,t,n!==void 0?n:r.custom,e)}const zh=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],Mh=["initial",...zh],Ps=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],ur=new Set(Ps),xn=e=>e*1e3,wn=e=>e/1e3,u4={type:"spring",stiffness:500,damping:25,restSpeed:10},c4=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),d4={type:"keyframes",duration:.8},f4={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},h4=(e,{keyframes:t})=>t.length>2?d4:ur.has(e)?e.startsWith("scale")?c4(t[1]):u4:f4;function p4({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:o,repeat:i,repeatType:s,repeatDelay:a,from:l,elapsed:u,...c}){return!!Object.keys(c).length}function Dh(e,t){return e[t]||e.default||e}const m4={skipAnimations:!1,useManualTiming:!1},g4=e=>e!==null;function yu(e,{repeat:t,repeatType:n="loop"},r){const o=e.filter(g4),i=t&&n!=="loop"&&t%2===1?0:o.length-1;return!i||r===void 0?o[i]:r}const He=e=>e;function v4(e){let t=new Set,n=new Set,r=!1,o=!1;const i=new WeakSet;let s={delta:0,timestamp:0,isProcessing:!1};function a(u){i.has(u)&&(l.schedule(u),e()),u(s)}const l={schedule:(u,c=!1,d=!1)=>{const v=d&&r?t:n;return c&&i.add(u),v.has(u)||v.add(u),u},cancel:u=>{n.delete(u),i.delete(u)},process:u=>{if(s=u,r){o=!0;return}r=!0,[t,n]=[n,t],n.clear(),t.forEach(a),r=!1,o&&(o=!1,l.process(u))}};return l}const ma=["read","resolveKeyframes","update","preRender","render","postRender"],y4=40;function Ib(e,t){let n=!1,r=!0;const o={delta:0,timestamp:0,isProcessing:!1},i=()=>n=!0,s=ma.reduce((f,h)=>(f[h]=v4(i),f),{}),{read:a,resolveKeyframes:l,update:u,preRender:c,render:d,postRender:p}=s,v=()=>{const f=performance.now();n=!1,o.delta=r?1e3/60:Math.max(Math.min(f-o.timestamp,y4),1),o.timestamp=f,o.isProcessing=!0,a.process(o),l.process(o),u.process(o),c.process(o),d.process(o),p.process(o),o.isProcessing=!1,n&&t&&(r=!1,e(v))},b=()=>{n=!0,r=!0,o.isProcessing||e(v)};return{schedule:ma.reduce((f,h)=>{const m=s[h];return f[h]=(x,C=!1,A=!1)=>(n||b(),m.schedule(x,C,A)),f},{}),cancel:f=>{for(let h=0;h/^0[^.\s]+$/u.test(e);function b4(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||Fb(e):!0}let Zd=He;const jb=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),Lb=e=>t=>typeof t=="string"&&t.startsWith(e),Bb=Lb("--"),S4=Lb("var(--"),Ih=e=>S4(e)?x4.test(e.split("/*")[0].trim()):!1,x4=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,w4=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function k4(e){const t=w4.exec(e);if(!t)return[,];const[,n,r,o]=t;return[`--${n??r}`,o]}function Vb(e,t,n=1){const[r,o]=k4(e);if(!r)return;const i=window.getComputedStyle(t).getPropertyValue(r);if(i){const s=i.trim();return jb(s)?parseFloat(s):s}return Ih(o)?Vb(o,t,n+1):o}const rr=(e,t,n)=>n>t?t:ntypeof e=="number",parse:parseFloat,transform:e=>e},Vi={...Ko,transform:e=>rr(0,1,e)},ga={...Ko,default:1},Oi=e=>Math.round(e*1e5)/1e5,Fh=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu,C4=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu,_4=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu;function Es(e){return typeof e=="string"}function T4(e){return e==null}const $s=e=>({test:t=>Es(t)&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),Bn=$s("deg"),sn=$s("%"),B=$s("px"),P4=$s("vh"),E4=$s("vw"),ng={...sn,parse:e=>sn.parse(e)/100,transform:e=>sn.transform(e*100)},$4=new Set(["width","height","top","left","right","bottom","x","y","translateX","translateY"]),rg=e=>e===Ko||e===B,og=(e,t)=>parseFloat(e.split(", ")[t]),ig=(e,t)=>(n,{transform:r})=>{if(r==="none"||!r)return 0;const o=r.match(/^matrix3d\((.+)\)$/u);if(o)return og(o[1],t);{const i=r.match(/^matrix\((.+)\)$/u);return i?og(i[1],e):0}},A4=new Set(["x","y","z"]),R4=Ps.filter(e=>!A4.has(e));function z4(e){const t=[];return R4.forEach(n=>{const r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t}const Bo={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:ig(4,13),y:ig(5,14)};Bo.translateX=Bo.x;Bo.translateY=Bo.y;const Ob=e=>t=>t.test(e),M4={test:e=>e==="auto",parse:e=>e},Nb=[Ko,B,sn,Bn,E4,P4,M4],sg=e=>Nb.find(Ob(e)),Dr=new Set;let Jd=!1,ef=!1;function Wb(){if(ef){const e=Array.from(Dr).filter(r=>r.needsMeasurement),t=new Set(e.map(r=>r.element)),n=new Map;t.forEach(r=>{const o=z4(r);o.length&&(n.set(r,o),r.render())}),e.forEach(r=>r.measureInitialState()),t.forEach(r=>{r.render();const o=n.get(r);o&&o.forEach(([i,s])=>{var a;(a=r.getValue(i))===null||a===void 0||a.set(s)})}),e.forEach(r=>r.measureEndState()),e.forEach(r=>{r.suspendedScrollY!==void 0&&window.scrollTo(0,r.suspendedScrollY)})}ef=!1,Jd=!1,Dr.forEach(e=>e.complete()),Dr.clear()}function Ub(){Dr.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(ef=!0)})}function D4(){Ub(),Wb()}class jh{constructor(t,n,r,o,i,s=!1){this.isComplete=!1,this.isAsync=!1,this.needsMeasurement=!1,this.isScheduled=!1,this.unresolvedKeyframes=[...t],this.onComplete=n,this.name=r,this.motionValue=o,this.element=i,this.isAsync=s}scheduleResolve(){this.isScheduled=!0,this.isAsync?(Dr.add(this),Jd||(Jd=!0,J.read(Ub),J.resolveKeyframes(Wb))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:n,element:r,motionValue:o}=this;for(let i=0;in=>!!(Es(n)&&_4.test(n)&&n.startsWith(e)||t&&!T4(n)&&Object.prototype.hasOwnProperty.call(n,t)),Hb=(e,t,n)=>r=>{if(!Es(r))return r;const[o,i,s,a]=r.match(Fh);return{[e]:parseFloat(o),[t]:parseFloat(i),[n]:parseFloat(s),alpha:a!==void 0?parseFloat(a):1}},I4=e=>rr(0,255,e),Mc={...Ko,transform:e=>Math.round(I4(e))},Er={test:Lh("rgb","red"),parse:Hb("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+Mc.transform(e)+", "+Mc.transform(t)+", "+Mc.transform(n)+", "+Oi(Vi.transform(r))+")"};function F4(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 tf={test:Lh("#"),parse:F4,transform:Er.transform},ho={test:Lh("hsl","hue"),parse:Hb("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+sn.transform(Oi(t))+", "+sn.transform(Oi(n))+", "+Oi(Vi.transform(r))+")"},Ne={test:e=>Er.test(e)||tf.test(e)||ho.test(e),parse:e=>Er.test(e)?Er.parse(e):ho.test(e)?ho.parse(e):tf.parse(e),transform:e=>Es(e)?e:e.hasOwnProperty("red")?Er.transform(e):ho.transform(e)};function j4(e){var t,n;return isNaN(e)&&Es(e)&&(((t=e.match(Fh))===null||t===void 0?void 0:t.length)||0)+(((n=e.match(C4))===null||n===void 0?void 0:n.length)||0)>0}const Kb="number",Gb="color",L4="var",B4="var(",ag="${}",V4=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function vs(e){const t=e.toString(),n=[],r={color:[],number:[],var:[]},o=[];let i=0;const a=t.replace(V4,l=>(Ne.test(l)?(r.color.push(i),o.push(Gb),n.push(Ne.parse(l))):l.startsWith(B4)?(r.var.push(i),o.push(L4),n.push(l)):(r.number.push(i),o.push(Kb),n.push(parseFloat(l))),++i,ag)).split(ag);return{values:n,split:a,indexes:r,types:o}}function Yb(e){return vs(e).values}function Xb(e){const{split:t,types:n}=vs(e),r=t.length;return o=>{let i="";for(let s=0;stypeof e=="number"?0:e;function N4(e){const t=Yb(e);return Xb(e)(t.map(O4))}const or={test:j4,parse:Yb,createTransformer:Xb,getAnimatableNone:N4},W4=new Set(["brightness","contrast","saturate","opacity"]);function U4(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(Fh)||[];if(!r)return e;const o=n.replace(r,"");let i=W4.has(t)?1:0;return r!==n&&(i*=100),t+"("+i+o+")"}const H4=/\b([a-z-]*)\(.*?\)/gu,nf={...or,getAnimatableNone:e=>{const t=e.match(H4);return t?t.map(U4).join(" "):e}},lg={...Ko,transform:Math.round},Bh={borderWidth:B,borderTopWidth:B,borderRightWidth:B,borderBottomWidth:B,borderLeftWidth:B,borderRadius:B,radius:B,borderTopLeftRadius:B,borderTopRightRadius:B,borderBottomRightRadius:B,borderBottomLeftRadius:B,width:B,maxWidth:B,height:B,maxHeight:B,size:B,top:B,right:B,bottom:B,left:B,padding:B,paddingTop:B,paddingRight:B,paddingBottom:B,paddingLeft:B,margin:B,marginTop:B,marginRight:B,marginBottom:B,marginLeft:B,rotate:Bn,rotateX:Bn,rotateY:Bn,rotateZ:Bn,scale:ga,scaleX:ga,scaleY:ga,scaleZ:ga,skew:Bn,skewX:Bn,skewY:Bn,distance:B,translateX:B,translateY:B,translateZ:B,x:B,y:B,z:B,perspective:B,transformPerspective:B,opacity:Vi,originX:ng,originY:ng,originZ:B,zIndex:lg,backgroundPositionX:B,backgroundPositionY:B,fillOpacity:Vi,strokeOpacity:Vi,numOctaves:lg},K4={...Bh,color:Ne,backgroundColor:Ne,outlineColor:Ne,fill:Ne,stroke:Ne,borderColor:Ne,borderTopColor:Ne,borderRightColor:Ne,borderBottomColor:Ne,borderLeftColor:Ne,filter:nf,WebkitFilter:nf},Vh=e=>K4[e];function qb(e,t){let n=Vh(e);return n!==nf&&(n=or),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const G4=new Set(["auto","none","0"]);function Y4(e,t,n){let r=0,o;for(;r{n.getValue(l).set(u)}),this.resolveNoneKeyframes()}}function Zb(e){let t;return()=>(t===void 0&&(t=e()),t)}let Ha;function X4(){Ha=void 0}const kn={now:()=>(Ha===void 0&&kn.set(Ie.isProcessing||m4.useManualTiming?Ie.timestamp:performance.now()),Ha),set:e=>{Ha=e,queueMicrotask(X4)}},ug=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(or.test(e)||e==="0")&&!e.startsWith("url("));function q4(e){const t=e[0];if(e.length===1)return!0;for(let n=0;nZ4?this.resolvedAt:this.createdAt:this.createdAt}get resolved(){return!this._resolved&&!this.hasAttemptedResolve&&D4(),this._resolved}onKeyframesResolved(t,n){this.resolvedAt=kn.now(),this.hasAttemptedResolve=!0;const{name:r,type:o,velocity:i,delay:s,onComplete:a,onUpdate:l,isGenerator:u}=this.options;if(!u&&!Q4(t,r,o,i))if(s)this.options.duration=0;else{l==null||l(yu(t,this.options,n)),a==null||a(),this.resolveFinishedPromise();return}const c=this.initPlayback(t,n);c!==!1&&(this._resolved={keyframes:t,finalKeyframe:n,...c},this.onPostResolved())}onPostResolved(){}then(t,n){return this.currentFinishedPromise.then(t,n)}updateFinishedPromise(){this.currentFinishedPromise=new Promise(t=>{this.resolveFinishedPromise=t})}}function eS(e,t){return t?e*(1e3/t):0}const J4=5;function tS(e,t,n){const r=Math.max(t-J4,0);return eS(n-e(r),t-r)}const Dc=.001,ez=.01,tz=10,nz=.05,rz=1;function oz({duration:e=800,bounce:t=.25,velocity:n=0,mass:r=1}){let o,i,s=1-t;s=rr(nz,rz,s),e=rr(ez,tz,wn(e)),s<1?(o=u=>{const c=u*s,d=c*e,p=c-n,v=rf(u,s),b=Math.exp(-d);return Dc-p/v*b},i=u=>{const d=u*s*e,p=d*n+n,v=Math.pow(s,2)*Math.pow(u,2)*e,b=Math.exp(-d),y=rf(Math.pow(u,2),s);return(-o(u)+Dc>0?-1:1)*((p-v)*b)/y}):(o=u=>{const c=Math.exp(-u*e),d=(u-n)*e+1;return-Dc+c*d},i=u=>{const c=Math.exp(-u*e),d=(n-u)*(e*e);return c*d});const a=5/e,l=sz(o,i,a);if(e=xn(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 iz=12;function sz(e,t,n){let r=n;for(let o=1;oe[n]!==void 0)}function uz(e){let t={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...e};if(!cg(e,lz)&&cg(e,az)){const n=oz(e);t={...t,...n,mass:1},t.isResolvedFromDuration=!0}return t}function nS({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,duration:c,velocity:d,isResolvedFromDuration:p}=uz({...r,velocity:-wn(r.velocity||0)}),v=d||0,b=l/(2*Math.sqrt(a*u)),y=i-o,S=wn(Math.sqrt(a/u)),f=Math.abs(y)<5;n||(n=f?.01:2),t||(t=f?.005:.5);let h;if(b<1){const m=rf(S,b);h=x=>{const C=Math.exp(-b*S*x);return i-C*((v+b*S*y)/m*Math.sin(m*x)+y*Math.cos(m*x))}}else if(b===1)h=m=>i-Math.exp(-S*m)*(y+(v+S*y)*m);else{const m=S*Math.sqrt(b*b-1);h=x=>{const C=Math.exp(-b*S*x),A=Math.min(m*x,300);return i-C*((v+b*S*y)*Math.sinh(A)+m*y*Math.cosh(A))/m}}return{calculatedDuration:p&&c||null,next:m=>{const x=h(m);if(p)s.done=m>=c;else{let C=0;b<1&&(C=m===0?xn(v):tS(h,m,x));const A=Math.abs(C)<=n,$=Math.abs(i-x)<=t;s.done=A&&$}return s.value=s.done?i:x,s}}}function dg({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],p={done:!1,value:d},v=P=>a!==void 0&&Pl,b=P=>a===void 0?l:l===void 0||Math.abs(a-P)-y*Math.exp(-P/r),m=P=>f+h(P),x=P=>{const D=h(P),z=m(P);p.done=Math.abs(D)<=u,p.value=p.done?f:z};let C,A;const $=P=>{v(p.value)&&(C=P,A=nS({keyframes:[p.value,b(p.value)],velocity:tS(m,P,p.value),damping:o,stiffness:i,restDelta:u,restSpeed:c}))};return $(0),{calculatedDuration:null,next:P=>{let D=!1;return!A&&C===void 0&&(D=!0,x(P),$(P)),C!==void 0&&P>=C?A.next(P-C):(!D&&x(P),p)}}}const rS=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,cz=1e-7,dz=12;function fz(e,t,n,r,o){let i,s,a=0;do s=t+(n-t)/2,i=rS(s,r,o)-e,i>0?n=s:t=s;while(Math.abs(i)>cz&&++afz(i,0,1,e,n);return i=>i===0||i===1?i:rS(o(i),t,r)}const hz=As(.42,0,1,1),pz=As(0,0,.58,1),oS=As(.42,0,.58,1),mz=e=>Array.isArray(e)&&typeof e[0]!="number",iS=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,sS=e=>t=>1-e(1-t),Oh=e=>1-Math.sin(Math.acos(e)),aS=sS(Oh),gz=iS(Oh),lS=As(.33,1.53,.69,.99),Nh=sS(lS),vz=iS(Nh),yz=e=>(e*=2)<1?.5*Nh(e):.5*(2-Math.pow(2,-10*(e-1))),fg={linear:He,easeIn:hz,easeInOut:oS,easeOut:pz,circIn:Oh,circInOut:gz,circOut:aS,backIn:Nh,backInOut:vz,backOut:lS,anticipate:yz},hg=e=>{if(Array.isArray(e)){Zd(e.length===4);const[t,n,r,o]=e;return As(t,n,r,o)}else if(typeof e=="string")return Zd(fg[e]!==void 0),fg[e];return e},bz=(e,t)=>n=>t(e(n)),Cn=(...e)=>e.reduce(bz),ys=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r},me=(e,t,n)=>e+(t-e)*n;function Ic(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 Sz({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=Ic(l,a,e+1/3),i=Ic(l,a,e),s=Ic(l,a,e-1/3)}return{red:Math.round(o*255),green:Math.round(i*255),blue:Math.round(s*255),alpha:r}}function El(e,t){return n=>n>0?t:e}const Fc=(e,t,n)=>{const r=e*e,o=n*(t*t-r)+r;return o<0?0:Math.sqrt(o)},xz=[tf,Er,ho],wz=e=>xz.find(t=>t.test(e));function pg(e){const t=wz(e);if(!t)return!1;let n=t.parse(e);return t===ho&&(n=Sz(n)),n}const mg=(e,t)=>{const n=pg(e),r=pg(t);if(!n||!r)return El(e,t);const o={...n};return i=>(o.red=Fc(n.red,r.red,i),o.green=Fc(n.green,r.green,i),o.blue=Fc(n.blue,r.blue,i),o.alpha=me(n.alpha,r.alpha,i),Er.transform(o))},of=new Set(["none","hidden"]);function kz(e,t){return of.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function Cz(e,t){return n=>me(e,t,n)}function Wh(e){return typeof e=="number"?Cz:typeof e=="string"?Ih(e)?El:Ne.test(e)?mg:Pz:Array.isArray(e)?uS:typeof e=="object"?Ne.test(e)?mg:_z:El}function uS(e,t){const n=[...e],r=n.length,o=e.map((i,s)=>Wh(i)(i,t[s]));return i=>{for(let s=0;s{for(const i in r)n[i]=r[i](o);return n}}function Tz(e,t){var n;const r=[],o={color:0,var:0,number:0};for(let i=0;i{const n=or.createTransformer(t),r=vs(e),o=vs(t);return r.indexes.var.length===o.indexes.var.length&&r.indexes.color.length===o.indexes.color.length&&r.indexes.number.length>=o.indexes.number.length?of.has(e)&&!o.values.length||of.has(t)&&!r.values.length?kz(e,t):Cn(uS(Tz(r,o),o.values),n):El(e,t)};function cS(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?me(e,t,n):Wh(e)(e,t)}function Ez(e,t,n){const r=[],o=n||cS,i=e.length-1;for(let s=0;st[0];if(i===2&&e[0]===e[1])return()=>t[1];e[0]>e[i-1]&&(e=[...e].reverse(),t=[...t].reverse());const s=Ez(t,r,o),a=s.length,l=u=>{let c=0;if(a>1)for(;cl(rr(e[0],e[i-1],u)):l}function Az(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const o=ys(0,t,r);e.push(me(n,1,o))}}function Rz(e){const t=[0];return Az(t,e.length-1),t}function zz(e,t){return e.map(n=>n*t)}function Mz(e,t){return e.map(()=>t||oS).splice(0,e.length-1)}function $l({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const o=mz(r)?r.map(hg):hg(r),i={done:!1,value:t[0]},s=zz(n&&n.length===t.length?n:Rz(t),e),a=$z(s,t,{ease:Array.isArray(o)?o:Mz(t,o)});return{calculatedDuration:e,next:l=>(i.value=a(l),i.done=l>=e,i)}}const gg=2e4;function Dz(e){let t=0;const n=50;let r=e.next(t);for(;!r.done&&t=gg?1/0:t}const Iz=e=>{const t=({timestamp:n})=>e(n);return{start:()=>J.update(t,!0),stop:()=>Rn(t),now:()=>Ie.isProcessing?Ie.timestamp:kn.now()}},Fz={decay:dg,inertia:dg,tween:$l,keyframes:$l,spring:nS},jz=e=>e/100;class Uh extends Jb{constructor(t){super(t),this.holdTime=null,this.cancelTime=null,this.currentTime=0,this.playbackSpeed=1,this.pendingPlayState="running",this.startTime=null,this.state="idle",this.stop=()=>{if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.teardown();const{onStop:l}=this.options;l&&l()};const{name:n,motionValue:r,element:o,keyframes:i}=this.options,s=(o==null?void 0:o.KeyframeResolver)||jh,a=(l,u)=>this.onKeyframesResolved(l,u);this.resolver=new s(i,a,n,r,o),this.resolver.scheduleResolve()}initPlayback(t){const{type:n="keyframes",repeat:r=0,repeatDelay:o=0,repeatType:i,velocity:s=0}=this.options,a=Fz[n]||$l;let l,u;a!==$l&&typeof t[0]!="number"&&(l=Cn(jz,cS(t[0],t[1])),t=[0,100]);const c=a({...this.options,keyframes:t});i==="mirror"&&(u=a({...this.options,keyframes:[...t].reverse(),velocity:-s})),c.calculatedDuration===null&&(c.calculatedDuration=Dz(c));const{calculatedDuration:d}=c,p=d+o,v=p*(r+1)-o;return{generator:c,mirroredGenerator:u,mapPercentToKeyframes:l,calculatedDuration:d,resolvedDuration:p,totalDuration:v}}onPostResolved(){const{autoplay:t=!0}=this.options;this.play(),this.pendingPlayState==="paused"||!t?this.pause():this.state=this.pendingPlayState}tick(t,n=!1){const{resolved:r}=this;if(!r){const{keyframes:P}=this.options;return{done:!0,value:P[P.length-1]}}const{finalKeyframe:o,generator:i,mirroredGenerator:s,mapPercentToKeyframes:a,keyframes:l,calculatedDuration:u,totalDuration:c,resolvedDuration:d}=r;if(this.startTime===null)return i.next(0);const{delay:p,repeat:v,repeatType:b,repeatDelay:y,onUpdate:S}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-c/this.speed,this.startTime)),n?this.currentTime=t:this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=Math.round(t-this.startTime)*this.speed;const f=this.currentTime-p*(this.speed>=0?1:-1),h=this.speed>=0?f<0:f>c;this.currentTime=Math.max(f,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=c);let m=this.currentTime,x=i;if(v){const P=Math.min(this.currentTime,c)/d;let D=Math.floor(P),z=P%1;!z&&P>=1&&(z=1),z===1&&D--,D=Math.min(D,v+1),!!(D%2)&&(b==="reverse"?(z=1-z,y&&(z-=y/d)):b==="mirror"&&(x=s)),m=rr(0,1,z)*d}const C=h?{done:!1,value:l[0]}:x.next(m);a&&(C.value=a(C.value));let{done:A}=C;!h&&u!==null&&(A=this.speed>=0?this.currentTime>=c:this.currentTime<=0);const $=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&A);return $&&o!==void 0&&(C.value=yu(l,this.options,o)),S&&S(C.value),$&&this.finish(),C}get duration(){const{resolved:t}=this;return t?wn(t.calculatedDuration):0}get time(){return wn(this.currentTime)}set time(t){t=xn(t),this.currentTime=t,this.holdTime!==null||this.speed===0?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.speed)}get speed(){return this.playbackSpeed}set speed(t){const n=this.playbackSpeed!==t;this.playbackSpeed=t,n&&(this.time=wn(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved){this.pendingPlayState="running";return}if(this.isStopped)return;const{driver:t=Iz,onPlay:n,startTime:r}=this.options;this.driver||(this.driver=t(i=>this.tick(i))),n&&n();const o=this.driver.now();this.holdTime!==null?this.startTime=o-this.holdTime:this.startTime?this.state==="finished"&&(this.startTime=o):this.startTime=r??this.calcStartTime(),this.state==="finished"&&this.updateFinishedPromise(),this.cancelTime=this.startTime,this.holdTime=null,this.state="running",this.driver.start()}pause(){var t;if(!this._resolved){this.pendingPlayState="paused";return}this.state="paused",this.holdTime=(t=this.currentTime)!==null&&t!==void 0?t:0}complete(){this.state!=="running"&&this.play(),this.pendingPlayState=this.state="finished",this.holdTime=null}finish(){this.teardown(),this.state="finished";const{onComplete:t}=this.options;t&&t()}cancel(){this.cancelTime!==null&&this.tick(this.cancelTime),this.teardown(),this.updateFinishedPromise()}teardown(){this.state="idle",this.stopDriver(),this.resolveFinishedPromise(),this.updateFinishedPromise(),this.startTime=this.cancelTime=null,this.resolver.cancel()}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}}const dS=new Set(["opacity","clipPath","filter","transform"]),fS=e=>Array.isArray(e)&&typeof e[0]=="number";function hS(e){return!!(!e||typeof e=="string"&&e in Hh||fS(e)||Array.isArray(e)&&e.every(hS))}const wi=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,Hh={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:wi([0,.65,.55,1]),circOut:wi([.55,0,1,.45]),backIn:wi([.31,.01,.66,-.59]),backOut:wi([.33,1.53,.69,.99])};function Lz(e){return pS(e)||Hh.easeOut}function pS(e){if(e)return fS(e)?wi(e):Array.isArray(e)?e.map(Lz):Hh[e]}function Bz(e,t,n,{delay:r=0,duration:o=300,repeat:i=0,repeatType:s="loop",ease:a,times:l}={}){const u={[t]:n};l&&(u.offset=l);const c=pS(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"})}const Vz=Zb(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),Al=10,Oz=2e4;function Nz(e){return e.type==="spring"||!hS(e.ease)}function Wz(e,t){const n=new Uh({...t,keyframes:e,repeat:0,delay:0,isGenerator:!0});let r={done:!1,value:e[0]};const o=[];let i=0;for(;!r.done&&ithis.onKeyframesResolved(s,a),n,r,o),this.resolver.scheduleResolve()}initPlayback(t,n){var r;let{duration:o=300,times:i,ease:s,type:a,motionValue:l,name:u,startTime:c}=this.options;if(!(!((r=l.owner)===null||r===void 0)&&r.current))return!1;if(Nz(this.options)){const{onComplete:p,onUpdate:v,motionValue:b,element:y,...S}=this.options,f=Wz(t,S);t=f.keyframes,t.length===1&&(t[1]=t[0]),o=f.duration,i=f.times,s=f.ease,a="keyframes"}const d=Bz(l.owner.current,u,t,{...this.options,duration:o,times:i,ease:s});return d.startTime=c??this.calcStartTime(),this.pendingTimeline?(d.timeline=this.pendingTimeline,this.pendingTimeline=void 0):d.onfinish=()=>{const{onComplete:p}=this.options;l.set(yu(t,this.options,n)),p&&p(),this.cancel(),this.resolveFinishedPromise()},{animation:d,duration:o,times:i,type:a,ease:s,keyframes:t}}get duration(){const{resolved:t}=this;if(!t)return 0;const{duration:n}=t;return wn(n)}get time(){const{resolved:t}=this;if(!t)return 0;const{animation:n}=t;return wn(n.currentTime||0)}set time(t){const{resolved:n}=this;if(!n)return;const{animation:r}=n;r.currentTime=xn(t)}get speed(){const{resolved:t}=this;if(!t)return 1;const{animation:n}=t;return n.playbackRate}set speed(t){const{resolved:n}=this;if(!n)return;const{animation:r}=n;r.playbackRate=t}get state(){const{resolved:t}=this;if(!t)return"idle";const{animation:n}=t;return n.playState}get startTime(){const{resolved:t}=this;if(!t)return null;const{animation:n}=t;return n.startTime}attachTimeline(t){if(!this._resolved)this.pendingTimeline=t;else{const{resolved:n}=this;if(!n)return He;const{animation:r}=n;r.timeline=t,r.onfinish=null}return He}play(){if(this.isStopped)return;const{resolved:t}=this;if(!t)return;const{animation:n}=t;n.playState==="finished"&&this.updateFinishedPromise(),n.play()}pause(){const{resolved:t}=this;if(!t)return;const{animation:n}=t;n.pause()}stop(){if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.resolveFinishedPromise(),this.updateFinishedPromise();const{resolved:t}=this;if(!t)return;const{animation:n,keyframes:r,duration:o,type:i,ease:s,times:a}=t;if(n.playState==="idle"||n.playState==="finished")return;if(this.time){const{motionValue:u,onUpdate:c,onComplete:d,element:p,...v}=this.options,b=new Uh({...v,keyframes:r,duration:o,type:i,ease:s,times:a,isGenerator:!0}),y=xn(this.time);u.setWithVelocity(b.sample(y-Al).value,b.sample(y).value,Al)}const{onStop:l}=this.options;l&&l(),this.cancel()}complete(){const{resolved:t}=this;t&&t.animation.finish()}cancel(){const{resolved:t}=this;t&&t.animation.cancel()}static supports(t){const{motionValue:n,name:r,repeatDelay:o,repeatType:i,damping:s,type:a}=t;return Vz()&&r&&dS.has(r)&&n&&n.owner&&n.owner.current instanceof HTMLElement&&!n.owner.getProps().onUpdate&&!o&&i!=="mirror"&&s!==0&&a!=="inertia"}}function Uz(e,t){let n;const r=()=>{const{currentTime:o}=t,s=(o===null?0:o.value)/100;n!==s&&e(s),n=s};return J.update(r,!0),()=>Rn(r)}const Hz=Zb(()=>window.ScrollTimeline!==void 0);class Kz{constructor(t){this.stop=()=>this.runAll("stop"),this.animations=t.filter(Boolean)}then(t,n){return Promise.all(this.animations).then(t).catch(n)}getAll(t){return this.animations[0][t]}setAll(t,n){for(let r=0;r{if(Hz()&&r.attachTimeline)r.attachTimeline(t);else return r.pause(),Uz(o=>{r.time=r.duration*o},t)});return()=>{n.forEach((r,o)=>{r&&r(),this.animations[o].stop()})}}get time(){return this.getAll("time")}set time(t){this.setAll("time",t)}get speed(){return this.getAll("speed")}set speed(t){this.setAll("speed",t)}get startTime(){return this.getAll("startTime")}get duration(){let t=0;for(let n=0;nn[t]())}play(){this.runAll("play")}pause(){this.runAll("pause")}cancel(){this.runAll("cancel")}complete(){this.runAll("complete")}}const Kh=(e,t,n,r={},o,i,s)=>a=>{const l=Dh(r,e)||{},u=l.delay||r.delay||0;let{elapsed:c=0}=r;c=c-xn(u);let d={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...l,delay:-c,onUpdate:v=>{t.set(v),l.onUpdate&&l.onUpdate(v)},onComplete:()=>{a(),l.onComplete&&l.onComplete(),s&&s()},onStop:s,name:e,motionValue:t,element:i?void 0:o};p4(l)||(d={...d,...h4(e,d)}),d.duration&&(d.duration=xn(d.duration)),d.repeatDelay&&(d.repeatDelay=xn(d.repeatDelay)),d.from!==void 0&&(d.keyframes[0]=d.from);let p=!1;if((d.type===!1||d.duration===0&&!d.repeatDelay)&&(d.duration=0,d.delay===0&&(p=!0)),p&&!i&&t.get()!==void 0){const v=yu(d.keyframes,l);if(v!==void 0)return J.update(()=>{d.onUpdate(v),d.onComplete()}),new Kz([])}return!i&&vg.supports(d)?new vg(d):new Uh(d)},Gz=e=>!!(e&&typeof e=="object"&&e.mix&&e.toValue),Yz=e=>Qd(e)?e[e.length-1]||0:e;function bu(e,t){e.indexOf(t)===-1&&e.push(t)}function Su(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}class Gh{constructor(){this.subscriptions=[]}add(t){return bu(this.subscriptions,t),()=>Su(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 mS{constructor(t,n={}){this.version="11.5.4",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(r,o=!0)=>{const i=kn.now();this.updatedAt!==i&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(r),this.current!==this.prev&&this.events.change&&this.events.change.notify(this.current),o&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.hasAnimated=!1,this.setCurrent(t),this.owner=n.owner}setCurrent(t){this.current=t,this.updatedAt=kn.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=Xz(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return this.on("change",t)}on(t,n){this.events[t]||(this.events[t]=new Gh);const r=this.events[t].add(n);return t==="change"?()=>{r(),J.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=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-r}jump(t,n=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,n&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const t=kn.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>yg)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,yg);return eS(parseFloat(this.current)-parseFloat(this.prevFrameValue),n)}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 bs(e,t){return new mS(e,t)}function qz(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,bs(n))}function Qz(e,t){const n=vu(e,t);let{transitionEnd:r={},transition:o={},...i}=n||{};i={...i,...r};for(const s in i){const a=Yz(i[s]);qz(e,s,a)}}const xu=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),Zz="framerAppearId",gS="data-"+xu(Zz);function vS(e){return e.props[gS]}function yS(e){if(ur.has(e))return"transform";if(dS.has(e))return xu(e)}class Jz extends mS{constructor(){super(...arguments),this.output=[],this.counts=new Map}add(t){const n=yS(t);if(!n)return;const r=this.counts.get(n)||0;this.counts.set(n,r+1),r===0&&(this.output.push(n),this.update());let o=!1;return()=>{if(o)return;o=!0;const i=this.counts.get(n)-1;this.counts.set(n,i),i===0&&(Su(this.output,n),this.update())}}update(){this.set(this.output.length?this.output.join(", "):"auto")}}const Ue=e=>!!(e&&e.getVelocity);function eM(e){return!!(Ue(e)&&e.add)}function sf(e,t){var n;if(!e.applyWillChange)return;let r=e.getValue("willChange");if(!r&&!(!((n=e.props.style)===null||n===void 0)&&n.willChange)&&(r=new Jz("auto"),e.addValue("willChange",r)),eM(r))return r.add(t)}function tM({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function bS(e,t,{delay:n=0,transitionOverride:r,type:o}={}){var i;let{transition:s=e.getDefaultTransition(),transitionEnd:a,...l}=t;r&&(s=r);const u=[],c=o&&e.animationState&&e.animationState.getState()[o];for(const d in l){const p=e.getValue(d,(i=e.latestValues[d])!==null&&i!==void 0?i:null),v=l[d];if(v===void 0||c&&tM(c,d))continue;const b={delay:n,...Dh(s||{},d)};let y=!1;if(window.MotionHandoffAnimation){const f=vS(e);if(f){const h=window.MotionHandoffAnimation(f,d,J);h!==null&&(b.startTime=h,y=!0)}}p.start(Kh(d,p,v,e.shouldReduceMotion&&ur.has(d)?{type:!1}:b,e,y,sf(e,d)));const S=p.animation;S&&u.push(S)}return a&&Promise.all(u).then(()=>{J.update(()=>{a&&Qz(e,a)})}),u}function af(e,t,n={}){var r;const o=vu(e,t,n.type==="exit"?(r=e.presenceContext)===null||r===void 0?void 0:r.custom:void 0);let{transition:i=e.getDefaultTransition()||{}}=o||{};n.transitionOverride&&(i=n.transitionOverride);const s=o?()=>Promise.all(bS(e,o,n)):()=>Promise.resolve(),a=e.variantChildren&&e.variantChildren.size?(u=0)=>{const{delayChildren:c=0,staggerChildren:d,staggerDirection:p}=i;return nM(e,t,c+u,d,p,n)}:()=>Promise.resolve(),{when:l}=i;if(l){const[u,c]=l==="beforeChildren"?[s,a]:[a,s];return u().then(()=>c())}else return Promise.all([s(),a(n.delay)])}function nM(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(rM).forEach((u,c)=>{u.notify("AnimationStart",t),s.push(af(u,t,{...i,delay:n+l(c)}).then(()=>u.notify("AnimationComplete",t)))}),Promise.all(s)}function rM(e,t){return e.sortNodePosition(t)}function oM(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const o=t.map(i=>af(e,i,n));r=Promise.all(o)}else if(typeof t=="string")r=af(e,t,n);else{const o=typeof t=="function"?vu(e,t,n.custom):t;r=Promise.all(bS(e,o,n))}return r.then(()=>{e.notify("AnimationComplete",t)})}const iM=[...zh].reverse(),sM=zh.length;function aM(e){return t=>Promise.all(t.map(({animation:n,options:r})=>oM(e,n,r)))}function lM(e){let t=aM(e),n=bg(),r=!0;const o=l=>(u,c)=>{var d;const p=vu(e,c,l==="exit"?(d=e.presenceContext)===null||d===void 0?void 0:d.custom:void 0);if(p){const{transition:v,transitionEnd:b,...y}=p;u={...u,...y,...b}}return u};function i(l){t=l(e)}function s(l){const u=e.getProps(),c=e.getVariantContext(!0)||{},d=[],p=new Set;let v={},b=1/0;for(let S=0;Sb&&x,D=!1;const z=Array.isArray(m)?m:[m];let ne=z.reduce(o(f),{});C===!1&&(ne={});const{prevResolvedValues:Ye={}}=h,an={...Ye,...ne},dr=_e=>{P=!0,p.has(_e)&&(D=!0,p.delete(_e)),h.needsAnimating[_e]=!0;const Xe=e.getValue(_e);Xe&&(Xe.liveStyle=!1)};for(const _e in an){const Xe=ne[_e],ln=Ye[_e];if(v.hasOwnProperty(_e))continue;let M=!1;Qd(Xe)&&Qd(ln)?M=!Db(Xe,ln):M=Xe!==ln,M?Xe!=null?dr(_e):p.add(_e):Xe!==void 0&&p.has(_e)?dr(_e):h.protectedKeys[_e]=!0}h.prevProp=m,h.prevResolvedValues=ne,h.isActive&&(v={...v,...ne}),r&&e.blockInitialAnimation&&(P=!1),P&&(!A||D)&&d.push(...z.map(_e=>({animation:_e,options:{type:f}})))}if(p.size){const S={};p.forEach(f=>{const h=e.getBaseTarget(f),m=e.getValue(f);m&&(m.liveStyle=!0),S[f]=h??null}),d.push({animation:S})}let y=!!d.length;return r&&(u.initial===!1||u.initial===u.animate)&&!e.manuallyAnimateOnMount&&(y=!1),r=!1,y?t(d):Promise.resolve()}function a(l,u){var c;if(n[l].isActive===u)return Promise.resolve();(c=e.variantChildren)===null||c===void 0||c.forEach(p=>{var v;return(v=p.animationState)===null||v===void 0?void 0:v.setActive(l,u)}),n[l].isActive=u;const d=s(l);for(const p in n)n[p].protectedKeys={};return d}return{animateChanges:s,setActive:a,setAnimateFunction:i,getState:()=>n,reset:()=>{n=bg(),r=!0}}}function uM(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!Db(t,e):!1}function vr(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function bg(){return{animate:vr(!0),whileInView:vr(),whileHover:vr(),whileTap:vr(),whileDrag:vr(),whileFocus:vr(),exit:vr()}}class cr{constructor(t){this.isMounted=!1,this.node=t}update(){}}class cM extends cr{constructor(t){super(t),t.animationState||(t.animationState=lM(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();ms(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:n}=this.node.prevProps||{};t!==n&&this.updateAnimationControlsSubscription()}unmount(){var t;this.node.animationState.reset(),(t=this.unmountControls)===null||t===void 0||t.call(this)}}let dM=0;class fM extends cr{constructor(){super(...arguments),this.id=dM++}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:n}=this.node.presenceContext,{isPresent:r}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===r)return;const o=this.node.animationState.setActive("exit",!t);n&&!t&&o.then(()=>n(this.id))}mount(){const{register:t}=this.node.presenceContext||{};t&&(this.unmount=t(this.id))}unmount(){}}const hM={animation:{Feature:cM},exit:{Feature:fM}},SS=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1;function wu(e,t="page"){return{point:{x:e[`${t}X`],y:e[`${t}Y`]}}}const pM=e=>t=>SS(t)&&e(t,wu(t));function yn(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}function _n(e,t,n,r){return yn(e,t,pM(n),r)}const Sg=(e,t)=>Math.abs(e-t);function mM(e,t){const n=Sg(e.x,t.x),r=Sg(e.y,t.y);return Math.sqrt(n**2+r**2)}class xS{constructor(t,n,{transformPagePoint:r,contextWindow:o,dragSnapToOrigin:i=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const d=Lc(this.lastMoveEventInfo,this.history),p=this.startEvent!==null,v=mM(d.offset,{x:0,y:0})>=3;if(!p&&!v)return;const{point:b}=d,{timestamp:y}=Ie;this.history.push({...b,timestamp:y});const{onStart:S,onMove:f}=this.handlers;p||(S&&S(this.lastMoveEvent,d),this.startEvent=this.lastMoveEvent),f&&f(this.lastMoveEvent,d)},this.handlePointerMove=(d,p)=>{this.lastMoveEvent=d,this.lastMoveEventInfo=jc(p,this.transformPagePoint),J.update(this.updatePoint,!0)},this.handlePointerUp=(d,p)=>{this.end();const{onEnd:v,onSessionEnd:b,resumeAnimation:y}=this.handlers;if(this.dragSnapToOrigin&&y&&y(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const S=Lc(d.type==="pointercancel"?this.lastMoveEventInfo:jc(p,this.transformPagePoint),this.history);this.startEvent&&v&&v(d,S),b&&b(d,S)},!SS(t))return;this.dragSnapToOrigin=i,this.handlers=n,this.transformPagePoint=r,this.contextWindow=o||window;const s=wu(t),a=jc(s,this.transformPagePoint),{point:l}=a,{timestamp:u}=Ie;this.history=[{...l,timestamp:u}];const{onSessionStart:c}=n;c&&c(t,Lc(a,this.history)),this.removeListeners=Cn(_n(this.contextWindow,"pointermove",this.handlePointerMove),_n(this.contextWindow,"pointerup",this.handlePointerUp),_n(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),Rn(this.updatePoint)}}function jc(e,t){return t?{point:t(e.point)}:e}function xg(e,t){return{x:e.x-t.x,y:e.y-t.y}}function Lc({point:e},t){return{point:e,delta:xg(e,wS(t)),offset:xg(e,gM(t)),velocity:vM(t,.1)}}function gM(e){return e[0]}function wS(e){return e[e.length-1]}function vM(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const o=wS(e);for(;n>=0&&(r=e[n],!(o.timestamp-r.timestamp>xn(t)));)n--;if(!r)return{x:0,y:0};const i=wn(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 kS(e){let t=null;return()=>{const n=()=>{t=null};return t===null?(t=e,n):!1}}const wg=kS("dragHorizontal"),kg=kS("dragVertical");function CS(e){let t=!1;if(e==="y")t=kg();else if(e==="x")t=wg();else{const n=wg(),r=kg();n&&r?t=()=>{n(),r()}:(n&&n(),r&&r())}return t}function _S(){const e=CS(!0);return e?(e(),!1):!0}function po(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}const TS=1e-4,yM=1-TS,bM=1+TS,PS=.01,SM=0-PS,xM=0+PS;function vt(e){return e.max-e.min}function wM(e,t,n){return Math.abs(e-t)<=n}function Cg(e,t,n,r=.5){e.origin=r,e.originPoint=me(t.min,t.max,e.origin),e.scale=vt(n)/vt(t),e.translate=me(n.min,n.max,e.origin)-e.originPoint,(e.scale>=yM&&e.scale<=bM||isNaN(e.scale))&&(e.scale=1),(e.translate>=SM&&e.translate<=xM||isNaN(e.translate))&&(e.translate=0)}function Ni(e,t,n,r){Cg(e.x,t.x,n.x,r?r.originX:void 0),Cg(e.y,t.y,n.y,r?r.originY:void 0)}function _g(e,t,n){e.min=n.min+t.min,e.max=e.min+vt(t)}function kM(e,t,n){_g(e.x,t.x,n.x),_g(e.y,t.y,n.y)}function Tg(e,t,n){e.min=t.min-n.min,e.max=e.min+vt(t)}function Wi(e,t,n){Tg(e.x,t.x,n.x),Tg(e.y,t.y,n.y)}function CM(e,{min:t,max:n},r){return t!==void 0&&en&&(e=r?me(n,e,r.max):Math.min(e,n)),e}function Pg(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 _M(e,{top:t,left:n,bottom:r,right:o}){return{x:Pg(e.x,n,o),y:Pg(e.y,t,r)}}function Eg(e,t){let n=t.min-e.min,r=t.max-e.max;return t.max-t.minr?n=ys(t.min,t.max-r,e.min):r>o&&(n=ys(e.min,e.max-o,t.min)),rr(0,1,n)}function EM(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 lf=.35;function $M(e=lf){return e===!1?e=0:e===!0&&(e=lf),{x:$g(e,"left","right"),y:$g(e,"top","bottom")}}function $g(e,t,n){return{min:Ag(e,t),max:Ag(e,n)}}function Ag(e,t){return typeof e=="number"?e:e[t]||0}const Rg=()=>({translate:0,scale:1,origin:0,originPoint:0}),mo=()=>({x:Rg(),y:Rg()}),zg=()=>({min:0,max:0}),be=()=>({x:zg(),y:zg()});function Ct(e){return[e("x"),e("y")]}function ES({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function AM({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function RM(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 Bc(e){return e===void 0||e===1}function uf({scale:e,scaleX:t,scaleY:n}){return!Bc(e)||!Bc(t)||!Bc(n)}function Sr(e){return uf(e)||$S(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function $S(e){return Mg(e.x)||Mg(e.y)}function Mg(e){return e&&e!=="0%"}function Rl(e,t,n){const r=e-n,o=t*r;return n+o}function Dg(e,t,n,r,o){return o!==void 0&&(e=Rl(e,o,r)),Rl(e,n,r)+t}function cf(e,t=0,n=1,r,o){e.min=Dg(e.min,t,n,r,o),e.max=Dg(e.max,t,n,r,o)}function AS(e,{x:t,y:n}){cf(e.x,t.translate,t.scale,t.originPoint),cf(e.y,n.translate,n.scale,n.originPoint)}const Ig=.999999999999,Fg=1.0000000000001;function zM(e,t,n,r=!1){const o=n.length;if(!o)return;t.x=t.y=1;let i,s;for(let a=0;aIg&&(t.x=1),t.yIg&&(t.y=1)}function go(e,t){e.min=e.min+t,e.max=e.max+t}function jg(e,t,n,r,o=.5){const i=me(e.min,e.max,o);cf(e,t,n,i,r)}function vo(e,t){jg(e.x,t.x,t.scaleX,t.scale,t.originX),jg(e.y,t.y,t.scaleY,t.scale,t.originY)}function RS(e,t){return ES(RM(e.getBoundingClientRect(),t))}function MM(e,t,n){const r=RS(e,n),{scroll:o}=t;return o&&(go(r.x,o.offset.x),go(r.y,o.offset.y)),r}const zS=({current:e})=>e?e.ownerDocument.defaultView:null,DM=new WeakMap;class IM{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:n=!1}={}){const{presenceContext:r}=this.visualElement;if(r&&r.isPresent===!1)return;const o=c=>{const{dragSnapToOrigin:d}=this.getProps();d?this.pauseAnimation():this.stopAnimation(),n&&this.snapToCursor(wu(c,"page").point)},i=(c,d)=>{var p;const{drag:v,dragPropagation:b,onDragStart:y}=this.getProps();if(v&&!b&&(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=CS(v),!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),Ct(f=>{let h=this.getAxisMotionValue(f).get()||0;if(sn.test(h)){const{projection:m}=this.visualElement;if(m&&m.layout){const x=m.layout.layoutBox[f];x&&(h=vt(x)*(parseFloat(h)/100))}}this.originPoint[f]=h}),y&&J.postRender(()=>y(c,d)),(p=this.removeWillChange)===null||p===void 0||p.call(this),this.removeWillChange=sf(this.visualElement,"transform");const{animationState:S}=this.visualElement;S&&S.setActive("whileDrag",!0)},s=(c,d)=>{const{dragPropagation:p,dragDirectionLock:v,onDirectionLock:b,onDrag:y}=this.getProps();if(!p&&!this.openGlobalLock)return;const{offset:S}=d;if(v&&this.currentDirection===null){this.currentDirection=FM(S),this.currentDirection!==null&&b&&b(this.currentDirection);return}this.updateAxis("x",d.point,S),this.updateAxis("y",d.point,S),this.visualElement.render(),y&&y(c,d)},a=(c,d)=>this.stop(c,d),l=()=>Ct(c=>{var d;return this.getAnimationState(c)==="paused"&&((d=this.getAxisMotionValue(c).animation)===null||d===void 0?void 0:d.play())}),{dragSnapToOrigin:u}=this.getProps();this.panSession=new xS(t,{onSessionStart:o,onStart:i,onMove:s,onSessionEnd:a,resumeAnimation:l},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:u,contextWindow:zS(this.visualElement)})}stop(t,n){var r;(r=this.removeWillChange)===null||r===void 0||r.call(this);const o=this.isDragging;if(this.cancel(),!o)return;const{velocity:i}=n;this.startAnimation(i);const{onDragEnd:s}=this.getProps();s&&J.postRender(()=>s(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||!va(t,o,this.currentDirection))return;const i=this.getAxisMotionValue(t);let s=this.originPoint[t]+r[t];this.constraints&&this.constraints[t]&&(s=CM(s,this.constraints[t],this.elastic[t])),i.set(s)}resolveConstraints(){var t;const{dragConstraints:n,dragElastic:r}=this.getProps(),o=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(t=this.visualElement.projection)===null||t===void 0?void 0:t.layout,i=this.constraints;n&&po(n)?this.constraints||(this.constraints=this.resolveRefConstraints()):n&&o?this.constraints=_M(o.layoutBox,n):this.constraints=!1,this.elastic=$M(r),i!==this.constraints&&o&&this.constraints&&!this.hasMutatedConstraints&&Ct(s=>{this.constraints!==!1&&this.getAxisMotionValue(s)&&(this.constraints[s]=EM(o.layoutBox[s],this.constraints[s]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!po(t))return!1;const r=t.current,{projection:o}=this.visualElement;if(!o||!o.layout)return!1;const i=MM(r,o.root,this.visualElement.getTransformPagePoint());let s=TM(o.layout.layoutBox,i);if(n){const a=n(AM(s));this.hasMutatedConstraints=!!a,a&&(s=ES(a))}return s}startAnimation(t){const{drag:n,dragMomentum:r,dragElastic:o,dragTransition:i,dragSnapToOrigin:s,onDragTransitionEnd:a}=this.getProps(),l=this.constraints||{},u=Ct(c=>{if(!va(c,n,this.currentDirection))return;let d=l&&l[c]||{};s&&(d={min:0,max:0});const p=o?200:1e6,v=o?40:1e7,b={type:"inertia",velocity:r?t[c]:0,bounceStiffness:p,bounceDamping:v,timeConstant:750,restDelta:1,restSpeed:10,...i,...d};return this.startAxisValueAnimation(c,b)});return Promise.all(u).then(a)}startAxisValueAnimation(t,n){const r=this.getAxisMotionValue(t);return r.start(Kh(t,r,0,n,this.visualElement,!1,sf(this.visualElement,t)))}stopAnimation(){Ct(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){Ct(t=>{var n;return(n=this.getAxisMotionValue(t).animation)===null||n===void 0?void 0:n.pause()})}getAnimationState(t){var n;return(n=this.getAxisMotionValue(t).animation)===null||n===void 0?void 0:n.state}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){Ct(n=>{const{drag:r}=this.getProps();if(!va(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]-me(s,a,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!po(n)||!r||!this.constraints)return;this.stopAnimation();const o={x:0,y:0};Ct(s=>{const a=this.getAxisMotionValue(s);if(a&&this.constraints!==!1){const l=a.get();o[s]=PM({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(),Ct(s=>{if(!va(s,t,null))return;const a=this.getAxisMotionValue(s),{min:l,max:u}=this.constraints[s];a.set(me(l,u,o[s]))})}addListeners(){if(!this.visualElement.current)return;DM.set(this.visualElement,this);const t=this.visualElement.current,n=_n(t,"pointerdown",l=>{const{drag:u,dragListener:c=!0}=this.getProps();u&&c&&this.start(l)}),r=()=>{const{dragConstraints:l}=this.getProps();po(l)&&l.current&&(this.constraints=this.resolveRefConstraints())},{projection:o}=this.visualElement,i=o.addEventListener("measure",r);o&&!o.layout&&(o.root&&o.root.updateScroll(),o.updateLayout()),J.read(r);const s=yn(window,"resize",()=>this.scalePositionWithinConstraints()),a=o.addEventListener("didUpdate",({delta:l,hasLayoutChanged:u})=>{this.isDragging&&u&&(Ct(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=lf,dragMomentum:a=!0}=t;return{...t,drag:n,dragDirectionLock:r,dragPropagation:o,dragConstraints:i,dragElastic:s,dragMomentum:a}}}function va(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function FM(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class jM extends cr{constructor(t){super(t),this.removeGroupControls=He,this.removeListeners=He,this.controls=new IM(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||He}unmount(){this.removeGroupControls(),this.removeListeners()}}const Lg=e=>(t,n)=>{e&&J.postRender(()=>e(t,n))};class LM extends cr{constructor(){super(...arguments),this.removePointerDownListener=He}onPointerDown(t){this.session=new xS(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:zS(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:r,onPanEnd:o}=this.node.getProps();return{onSessionStart:Lg(t),onStart:Lg(n),onMove:r,onEnd:(i,s)=>{delete this.session,o&&J.postRender(()=>o(i,s))}}}mount(){this.removePointerDownListener=_n(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}const Rs=_.createContext(null);function BM(){const e=_.useContext(Rs);if(e===null)return[!0,null];const{isPresent:t,onExitComplete:n,register:r}=e,o=_.useId();_.useEffect(()=>r(o),[]);const i=_.useCallback(()=>n&&n(o),[o,n]);return!t&&n?[!1,i]:[!0]}function VM(){return OM(_.useContext(Rs))}function OM(e){return e===null?!0:e.isPresent}const Yh=_.createContext({}),MS=_.createContext({}),Ka={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function Bg(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const fi={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(B.test(e))e=parseFloat(e);else return e;const n=Bg(e,t.target.x),r=Bg(e,t.target.y);return`${n}% ${r}%`}},NM={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,o=or.parse(e);if(o.length>5)return r;const i=or.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=me(a,l,.5);return typeof o[2+s]=="number"&&(o[2+s]/=u),typeof o[3+s]=="number"&&(o[3+s]/=u),i(o)}},zl={};function WM(e){Object.assign(zl,e)}const{schedule:Xh,cancel:AF}=Ib(queueMicrotask,!1);class UM extends _.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r,layoutId:o}=this.props,{projection:i}=t;WM(HM),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()})),Ka.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()||J.postRender(()=>{const a=s.getStack();(!a||!a.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),Xh.postRender(()=>{!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 DS(e){const[t,n]=BM(),r=_.useContext(Yh);return T.jsx(UM,{...e,layoutGroup:r,switchLayoutGroup:_.useContext(MS),isPresent:t,safeToRemove:n})}const HM={borderRadius:{...fi,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:fi,borderTopRightRadius:fi,borderBottomLeftRadius:fi,borderBottomRightRadius:fi,boxShadow:NM},IS=["TopLeft","TopRight","BottomLeft","BottomRight"],KM=IS.length,Vg=e=>typeof e=="string"?parseFloat(e):e,Og=e=>typeof e=="number"||B.test(e);function GM(e,t,n,r,o,i){o?(e.opacity=me(0,n.opacity!==void 0?n.opacity:1,YM(r)),e.opacityExit=me(t.opacity!==void 0?t.opacity:1,0,XM(r))):i&&(e.opacity=me(t.opacity!==void 0?t.opacity:1,n.opacity!==void 0?n.opacity:1,r));for(let s=0;srt?1:n(ys(e,t,r))}function Wg(e,t){e.min=t.min,e.max=t.max}function wt(e,t){Wg(e.x,t.x),Wg(e.y,t.y)}function Ug(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function Hg(e,t,n,r,o){return e-=t,e=Rl(e,1/n,r),o!==void 0&&(e=Rl(e,1/o,r)),e}function qM(e,t=0,n=1,r=.5,o,i=e,s=e){if(sn.test(t)&&(t=parseFloat(t),t=me(s.min,s.max,t/100)-s.min),typeof t!="number")return;let a=me(i.min,i.max,r);e===i&&(a-=t),e.min=Hg(e.min,t,n,a,o),e.max=Hg(e.max,t,n,a,o)}function Kg(e,t,[n,r,o],i,s){qM(e,t[n],t[r],t[o],t.scale,i,s)}const QM=["x","scaleX","originX"],ZM=["y","scaleY","originY"];function Gg(e,t,n,r){Kg(e.x,t,QM,n?n.x:void 0,r?r.x:void 0),Kg(e.y,t,ZM,n?n.y:void 0,r?r.y:void 0)}function Yg(e){return e.translate===0&&e.scale===1}function jS(e){return Yg(e.x)&&Yg(e.y)}function Xg(e,t){return e.min===t.min&&e.max===t.max}function JM(e,t){return Xg(e.x,t.x)&&Xg(e.y,t.y)}function qg(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function LS(e,t){return qg(e.x,t.x)&&qg(e.y,t.y)}function Qg(e){return vt(e.x)/vt(e.y)}function Zg(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}class eD{constructor(){this.members=[]}add(t){bu(this.members,t),t.scheduleRender()}remove(t){if(Su(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 tD(e,t,n){let r="";const o=e.x.translate/t.x,i=e.y.translate/t.y,s=(n==null?void 0:n.z)||0;if((o||i||s)&&(r=`translate3d(${o}px, ${i}px, ${s}px) `),(t.x!==1||t.y!==1)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),n){const{transformPerspective:u,rotate:c,rotateX:d,rotateY:p,skewX:v,skewY:b}=n;u&&(r=`perspective(${u}px) ${r}`),c&&(r+=`rotate(${c}deg) `),d&&(r+=`rotateX(${d}deg) `),p&&(r+=`rotateY(${p}deg) `),v&&(r+=`skewX(${v}deg) `),b&&(r+=`skewY(${b}deg) `)}const a=e.x.scale*t.x,l=e.y.scale*t.y;return(a!==1||l!==1)&&(r+=`scale(${a}, ${l})`),r||"none"}const nD=(e,t)=>e.depth-t.depth;class rD{constructor(){this.children=[],this.isDirty=!1}add(t){bu(this.children,t),this.isDirty=!0}remove(t){Su(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(nD),this.isDirty=!1,this.children.forEach(t)}}function Ga(e){const t=Ue(e)?e.get():e;return Gz(t)?t.toValue():t}function oD(e,t){const n=kn.now(),r=({timestamp:o})=>{const i=o-n;i>=t&&(Rn(r),e(i-t))};return J.read(r,!0),()=>Rn(r)}function iD(e){return e instanceof SVGElement&&e.tagName!=="svg"}function sD(e,t,n){const r=Ue(e)?e:bs(e);return r.start(Kh("",r,t,n)),r.animation}const xr={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0},ki=typeof window<"u"&&window.MotionDebug!==void 0,Vc=["","X","Y","Z"],aD={visibility:"hidden"},Jg=1e3;let lD=0;function Oc(e,t,n,r){const{latestValues:o}=t;o[e]&&(n[e]=o[e],t.setStaticValue(e,0),r&&(r[e]=0))}function BS(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const n=vS(t);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:o,layoutId:i}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",J,!(o||i))}const{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&BS(r)}function VS({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:o}){return class{constructor(s={},a=t==null?void 0:t()){this.id=lD++,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.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,ki&&(xr.totalNodes=xr.resolvedTargetDeltas=xr.recalculatedProjection=0),this.nodes.forEach(dD),this.nodes.forEach(gD),this.nodes.forEach(vD),this.nodes.forEach(fD),ki&&window.MotionDebug.record(xr)},this.resolvedRelativeTargetAt=0,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=oD(p,250),Ka.hasAnimatedSinceResize&&(Ka.hasAnimatedSinceResize=!1,this.nodes.forEach(tv))})}l&&this.root.registerSharedNode(l,this),this.options.animate!==!1&&c&&(l||u)&&this.addEventListener("didUpdate",({delta:d,hasLayoutChanged:p,hasRelativeTargetChanged:v,layout:b})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const y=this.options.transition||c.getDefaultTransition()||wD,{onLayoutAnimationStart:S,onLayoutAnimationComplete:f}=c.getProps(),h=!this.targetLayout||!LS(this.targetLayout,b)||v,m=!p&&v;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||m||p&&(h||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(d,m);const x={...Dh(y,"layout"),onPlay:S,onComplete:f};(c.shouldReduceMotion||this.options.layoutRoot)&&(x.delay=0,x.type=!1),this.startAnimation(x)}else p||tv(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=b})}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,Rn(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(yD),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(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&BS(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let c=0;c{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 C=x/1e3;nv(d.x,s.x,C),nv(d.y,s.y,C),this.setTargetDelta(d),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Wi(p,this.layout.layoutBox,this.relativeParent.layout.layoutBox),SD(this.relativeTarget,this.relativeTargetOrigin,p,C),m&&JM(this.relativeTarget,m)&&(this.isProjectionDirty=!1),m||(m=be()),wt(m,this.relativeTarget)),y&&(this.animationValues=c,GM(c,u,this.latestValues,C,h,f)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=C},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&&(Rn(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=J.update(()=>{Ka.hasAnimatedSinceResize=!0,this.currentAnimation=sD(0,Jg,{...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(Jg),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&&OS(this.options.animationType,this.layout.layoutBox,u.layoutBox)){l=this.target||be();const d=vt(this.layout.layoutBox.x);l.x.min=s.target.x.min,l.x.max=l.x.min+d;const p=vt(this.layout.layoutBox.y);l.y.min=s.target.y.min,l.y.max=l.y.min+p}wt(a,l),vo(a,c),Ni(this.projectionDeltaWithTransform,this.layoutCorrected,a,c)}}registerSharedNode(s,a){this.sharedNodes.has(s)||this.sharedNodes.set(s,new eD),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}resetSkewAndRotation(){const{visualElement:s}=this.options;if(!s)return;let a=!1;const{latestValues:l}=s;if((l.z||l.rotate||l.rotateX||l.rotateY||l.rotateZ||l.skewX||l.skewY)&&(a=!0),!a)return;const u={};l.z&&Oc("z",s,u,this.animationValues);for(let c=0;c{var a;return(a=s.currentAnimation)===null||a===void 0?void 0:a.stop()}),this.root.nodes.forEach(ev),this.root.sharedNodes.clear()}}}function uD(e){e.updateLayout()}function cD(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"?Ct(d=>{const p=s?n.measuredBox[d]:n.layoutBox[d],v=vt(p);p.min=r[d].min,p.max=p.min+v}):OS(i,n.layoutBox,r)&&Ct(d=>{const p=s?n.measuredBox[d]:n.layoutBox[d],v=vt(r[d]);p.max=p.min+v,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[d].max=e.relativeTarget[d].min+v)});const a=mo();Ni(a,r,n.layoutBox);const l=mo();s?Ni(l,e.applyTransform(o,!0),n.measuredBox):Ni(l,r,n.layoutBox);const u=!jS(a);let c=!1;if(!e.resumeFrom){const d=e.getClosestProjectingParent();if(d&&!d.resumeFrom){const{snapshot:p,layout:v}=d;if(p&&v){const b=be();Wi(b,n.layoutBox,p.layoutBox);const y=be();Wi(y,r,v.layoutBox),LS(b,y)||(c=!0),d.options.layoutRoot&&(e.relativeTarget=y,e.relativeTargetOrigin=b,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 dD(e){ki&&xr.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 fD(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function hD(e){e.clearSnapshot()}function ev(e){e.clearMeasurements()}function pD(e){e.isLayoutDirty=!1}function mD(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function tv(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function gD(e){e.resolveTargetDelta()}function vD(e){e.calcProjection()}function yD(e){e.resetSkewAndRotation()}function bD(e){e.removeLeadSnapshot()}function nv(e,t,n){e.translate=me(t.translate,0,n),e.scale=me(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function rv(e,t,n,r){e.min=me(t.min,n.min,r),e.max=me(t.max,n.max,r)}function SD(e,t,n,r){rv(e.x,t.x,n.x,r),rv(e.y,t.y,n.y,r)}function xD(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const wD={duration:.45,ease:[.4,0,.1,1]},ov=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),iv=ov("applewebkit/")&&!ov("chrome/")?Math.round:He;function sv(e){e.min=iv(e.min),e.max=iv(e.max)}function kD(e){sv(e.x),sv(e.y)}function OS(e,t,n){return e==="position"||e==="preserve-aspect"&&!wM(Qg(t),Qg(n),.2)}function CD(e){var t;return e!==e.root&&((t=e.scroll)===null||t===void 0?void 0:t.wasRoot)}const _D=VS({attachResizeListener:(e,t)=>yn(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),Nc={current:void 0},NS=VS({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!Nc.current){const e=new _D({});e.mount(window),e.setOptions({layoutScroll:!0}),Nc.current=e}return Nc.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),TD={pan:{Feature:LM},drag:{Feature:jM,ProjectionNode:NS,MeasureLayout:DS}};function av(e,t){const n=t?"pointerenter":"pointerleave",r=t?"onHoverStart":"onHoverEnd",o=(i,s)=>{if(i.pointerType==="touch"||_S())return;const a=e.getProps();e.animationState&&a.whileHover&&e.animationState.setActive("whileHover",t);const l=a[r];l&&J.postRender(()=>l(i,s))};return _n(e.current,n,o,{passive:!e.getProps()[r]})}class PD extends cr{mount(){this.unmount=Cn(av(this.node,!0),av(this.node,!1))}unmount(){}}class ED extends cr{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=Cn(yn(this.node.current,"focus",()=>this.onFocus()),yn(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}const WS=(e,t)=>t?e===t?!0:WS(e,t.parentElement):!1;function Wc(e,t){if(!t)return;const n=new PointerEvent("pointer"+e);t(n,wu(n))}class $D extends cr{constructor(){super(...arguments),this.removeStartListeners=He,this.removeEndListeners=He,this.removeAccessibleListeners=He,this.startPointerPress=(t,n)=>{if(this.isPressing)return;this.removeEndListeners();const r=this.node.getProps(),i=_n(window,"pointerup",(a,l)=>{if(!this.checkPressEnd())return;const{onTap:u,onTapCancel:c,globalTapTarget:d}=this.node.getProps(),p=!d&&!WS(this.node.current,a.target)?c:u;p&&J.update(()=>p(a,l))},{passive:!(r.onTap||r.onPointerUp)}),s=_n(window,"pointercancel",(a,l)=>this.cancelPress(a,l),{passive:!(r.onTapCancel||r.onPointerCancel)});this.removeEndListeners=Cn(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()||Wc("up",(l,u)=>{const{onTap:c}=this.node.getProps();c&&J.postRender(()=>c(l,u))})};this.removeEndListeners(),this.removeEndListeners=yn(this.node.current,"keyup",s),Wc("down",(a,l)=>{this.startPress(a,l)})},n=yn(this.node.current,"keydown",t),r=()=>{this.isPressing&&Wc("cancel",(i,s)=>this.cancelPress(i,s))},o=yn(this.node.current,"blur",r);this.removeAccessibleListeners=Cn(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&&J.postRender(()=>r(t,n))}checkPressEnd(){return this.removeEndListeners(),this.isPressing=!1,this.node.getProps().whileTap&&this.node.animationState&&this.node.animationState.setActive("whileTap",!1),!_S()}cancelPress(t,n){if(!this.checkPressEnd())return;const{onTapCancel:r}=this.node.getProps();r&&J.postRender(()=>r(t,n))}mount(){const t=this.node.getProps(),n=_n(t.globalTapTarget?window:this.node.current,"pointerdown",this.startPointerPress,{passive:!(t.onTapStart||t.onPointerStart)}),r=yn(this.node.current,"focus",this.startAccessiblePress);this.removeStartListeners=Cn(n,r)}unmount(){this.removeStartListeners(),this.removeEndListeners(),this.removeAccessibleListeners()}}const df=new WeakMap,Uc=new WeakMap,AD=e=>{const t=df.get(e.target);t&&t(e)},RD=e=>{e.forEach(AD)};function zD({root:e,...t}){const n=e||document;Uc.has(n)||Uc.set(n,{});const r=Uc.get(n),o=JSON.stringify(t);return r[o]||(r[o]=new IntersectionObserver(RD,{root:e,...t})),r[o]}function MD(e,t,n){const r=zD(t);return df.set(e,n),r.observe(e),()=>{df.delete(e),r.unobserve(e)}}const DD={some:0,all:1};class ID extends cr{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:DD[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(),p=u?c:d;p&&p(l)};return MD(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(FD(t,n))&&this.startObserver()}unmount(){}}function FD({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const jD={inView:{Feature:ID},tap:{Feature:$D},focus:{Feature:ED},hover:{Feature:PD}},LD={layout:{ProjectionNode:NS,MeasureLayout:DS}},qh=_.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"}),ku=_.createContext({}),Qh=typeof window<"u",US=Qh?_.useLayoutEffect:_.useEffect,HS=_.createContext({strict:!1});let lv=!1;function BD(e,t,n,r,o){var i;const{visualElement:s}=_.useContext(ku),a=_.useContext(HS),l=_.useContext(Rs),u=_.useContext(qh).reducedMotion,c=_.useRef();r=r||a.renderer,!c.current&&r&&(c.current=r(e,{visualState:t,parent:s,props:n,presenceContext:l,blockInitialAnimation:l?l.initial===!1:!1,reducedMotionConfig:u}));const d=c.current,p=_.useContext(MS);d&&!d.projection&&o&&(d.type==="html"||d.type==="svg")&&OD(c.current,n,o,p),_.useInsertionEffect(()=>{d&&d.update(n,l)});const v=n[gS],b=_.useRef(!!v&&!window.MotionHandoffIsComplete&&((i=window.MotionHasOptimisedAnimation)===null||i===void 0?void 0:i.call(window,v)));return US(()=>{d&&(d.updateFeatures(),Xh.render(d.render),b.current&&d.animationState&&d.animationState.animateChanges())}),_.useEffect(()=>{d&&(!b.current&&d.animationState&&d.animationState.animateChanges(),b.current=!1,lv||(lv=!0,queueMicrotask(VD)))}),d}function VD(){window.MotionHandoffIsComplete=!0}function OD(e,t,n,r){const{layoutId:o,layout:i,drag:s,dragConstraints:a,layoutScroll:l,layoutRoot:u}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:KS(e.parent)),e.projection.setOptions({layoutId:o,layout:i,alwaysMeasureLayout:!!s||a&&po(a),visualElement:e,animationType:typeof i=="string"?i:"both",initialPromotionConfig:r,layoutScroll:l,layoutRoot:u})}function KS(e){if(e)return e.options.allowProjection!==!1?e.projection:KS(e.parent)}function ND(e,t,n){return _.useCallback(r=>{r&&e.mount&&e.mount(r),t&&(r?t.mount(r):t.unmount()),n&&(typeof n=="function"?n(r):po(n)&&(n.current=r))},[t])}function Cu(e){return ms(e.animate)||Mh.some(t=>gs(e[t]))}function GS(e){return!!(Cu(e)||e.variants)}function WD(e,t){if(Cu(e)){const{initial:n,animate:r}=e;return{initial:n===!1||gs(n)?n:void 0,animate:gs(r)?r:void 0}}return e.inherit!==!1?t:{}}function UD(e){const{initial:t,animate:n}=WD(e,_.useContext(ku));return _.useMemo(()=>({initial:t,animate:n}),[uv(t),uv(n)])}function uv(e){return Array.isArray(e)?e.join(" "):e}const cv={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"]},Vo={};for(const e in cv)Vo[e]={isEnabled:t=>cv[e].some(n=>!!t[n])};function HD(e){for(const t in e)Vo[t]={...Vo[t],...e[t]}}const KD=Symbol.for("motionComponentSymbol");function GD({preloadedFeatures:e,createVisualElement:t,useRender:n,useVisualState:r,Component:o}){e&&HD(e);function i(a,l){let u;const c={..._.useContext(qh),...a,layoutId:YD(a)},{isStatic:d}=c,p=UD(a),v=r(a,d);if(!d&&Qh){XD();const b=qD(c);u=b.MeasureLayout,p.visualElement=BD(o,v,c,t,b.ProjectionNode)}return T.jsxs(ku.Provider,{value:p,children:[u&&p.visualElement?T.jsx(u,{visualElement:p.visualElement,...c}):null,n(o,a,ND(v,p.visualElement,l),v,d,p.visualElement)]})}const s=_.forwardRef(i);return s[KD]=o,s}function YD({layoutId:e}){const t=_.useContext(Yh).id;return t&&e!==void 0?t+"-"+e:e}function XD(e,t){_.useContext(HS).strict}function qD(e){const{drag:t,layout:n}=Vo;if(!t&&!n)return{};const r={...t,...n};return{MeasureLayout:t!=null&&t.isEnabled(e)||n!=null&&n.isEnabled(e)?r.MeasureLayout:void 0,ProjectionNode:r.ProjectionNode}}const QD=["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 Zh(e){return typeof e!="string"||e.includes("-")?!1:!!(QD.indexOf(e)>-1||/[A-Z]/u.test(e))}function YS(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 XS=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 qS(e,t,n,r){YS(e,t,void 0,r);for(const o in t.attrs)e.setAttribute(XS.has(o)?o:xu(o),t.attrs[o])}function QS(e,{layout:t,layoutId:n}){return ur.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!zl[e]||e==="opacity")}function Jh(e,t,n){var r;const{style:o}=e,i={};for(const s in o)(Ue(o[s])||t.style&&Ue(t.style[s])||QS(s,e)||((r=n==null?void 0:n.getValue(s))===null||r===void 0?void 0:r.liveStyle)!==void 0)&&(i[s]=o[s]);return n&&o&&typeof o.willChange=="string"&&(n.applyWillChange=!1),i}function ZS(e,t,n){const r=Jh(e,t,n);for(const o in e)if(Ue(e[o])||Ue(t[o])){const i=Ps.indexOf(o)!==-1?"attr"+o.charAt(0).toUpperCase()+o.substring(1):o;r[i]=e[o]}return r}function ep(e){const t=_.useRef(null);return t.current===null&&(t.current=e()),t.current}function ZD({applyWillChange:e=!1,scrapeMotionValuesFromProps:t,createRenderState:n,onMount:r},o,i,s,a){const l={latestValues:eI(o,i,s,a?!1:e,t),renderState:n()};return r&&(l.mount=u=>r(o,u,l)),l}const JS=e=>(t,n)=>{const r=_.useContext(ku),o=_.useContext(Rs),i=()=>ZD(e,t,r,o,n);return n?i():ep(i)};function JD(e,t){const n=yS(t);n&&bu(e,n)}function dv(e,t,n){const r=Array.isArray(t)?t:[t];for(let o=0;o{for(const h in S){let m=S[h];if(Array.isArray(m)){const x=b?m.length-1:0;m=m[x]}m!==null&&(s[h]=m)}for(const h in f)s[h]=f[h]}),l&&(d&&c!==!1&&!ms(d)&&dv(e,d,S=>{for(const f in S)JD(a,f)}),a.length&&(s.willChange=a.join(","))),s}const tp=()=>({style:{},transform:{},transformOrigin:{},vars:{}}),ex=()=>({...tp(),attrs:{}}),tx=(e,t)=>t&&typeof e=="number"?t.transform(e):e,tI={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},nI=Ps.length;function rI(e,t,n){let r="",o=!0;for(let i=0;itypeof e=="string"&&e.toLowerCase()==="svg",lI={useVisualState:JS({scrapeMotionValuesFromProps:ZS,createRenderState:ex,onMount:(e,t,{renderState:n,latestValues:r})=>{J.read(()=>{try{n.dimensions=typeof t.getBBox=="function"?t.getBBox():t.getBoundingClientRect()}catch{n.dimensions={x:0,y:0,width:0,height:0}}}),J.render(()=>{rp(n,r,op(t.tagName),e.transformTemplate),qS(t,n)})}})},uI={useVisualState:JS({applyWillChange:!0,scrapeMotionValuesFromProps:Jh,createRenderState:tp})};function nx(e,t,n){for(const r in t)!Ue(t[r])&&!QS(r,n)&&(e[r]=t[r])}function cI({transformTemplate:e},t){return _.useMemo(()=>{const n=tp();return np(n,t,e),Object.assign({},n.vars,n.style)},[t])}function dI(e,t){const n=e.style||{},r={};return nx(r,n,e),Object.assign(r,cI(e,t)),r}function fI(e,t){const n={},r=dI(e,t);return e.drag&&e.dragListener!==!1&&(n.draggable=!1,r.userSelect=r.WebkitUserSelect=r.WebkitTouchCallout="none",r.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=r,n}const hI=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function Ml(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||hI.has(e)}let rx=e=>!Ml(e);function pI(e){e&&(rx=t=>t.startsWith("on")?!Ml(t):e(t))}try{pI(require("@emotion/is-prop-valid").default)}catch{}function mI(e,t,n){const r={};for(const o in e)o==="values"&&typeof e.values=="object"||(rx(o)||n===!0&&Ml(o)||!t&&!Ml(o)||e.draggable&&o.startsWith("onDrag"))&&(r[o]=e[o]);return r}function gI(e,t,n,r){const o=_.useMemo(()=>{const i=ex();return rp(i,t,op(r),e.transformTemplate),{...i.attrs,style:{...i.style}}},[t]);if(e.style){const i={};nx(i,e.style,e),o.style={...i,...o.style}}return o}function vI(e=!1){return(n,r,o,{latestValues:i},s)=>{const l=(Zh(n)?gI:fI)(r,i,s,n),u=mI(r,typeof n=="string",e),c=n!==_.Fragment?{...u,...l,ref:o}:{},{children:d}=r,p=_.useMemo(()=>Ue(d)?d.get():d,[d]);return _.createElement(n,{...c,children:p})}}function yI(e,t){return function(r,{forwardMotionProps:o}={forwardMotionProps:!1}){const s={...Zh(r)?lI:uI,preloadedFeatures:e,useRender:vI(o),createVisualElement:t,Component:r};return GD(s)}}const ff={current:null},ox={current:!1};function bI(){if(ox.current=!0,!!Qh)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>ff.current=e.matches;e.addListener(t),t()}else ff.current=!1}function SI(e,t,n){for(const r in t){const o=t[r],i=n[r];if(Ue(o))e.addValue(r,o);else if(Ue(i))e.addValue(r,bs(o,{owner:e}));else if(i!==o)if(e.hasValue(r)){const s=e.getValue(r);s.liveStyle===!0?s.jump(o):s.hasAnimated||s.set(o)}else{const s=e.getStaticValue(r);e.addValue(r,bs(s!==void 0?s:o,{owner:e}))}}for(const r in n)t[r]===void 0&&e.removeValue(r);return t}const hv=new WeakMap,xI=[...Nb,Ne,or],wI=e=>xI.find(Ob(e)),pv=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],kI=Mh.length;class CI{scrapeMotionValuesFromProps(t,n,r){return{}}constructor({parent:t,props:n,presenceContext:r,reducedMotionConfig:o,blockInitialAnimation:i,visualState:s},a={}){this.applyWillChange=!1,this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=jh,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.isRenderScheduled=!1,this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.isRenderScheduled=!1,this.scheduleRender=()=>{this.isRenderScheduled||(this.isRenderScheduled=!0,J.render(this.render,!1,!0))};const{latestValues:l,renderState:u}=s;this.latestValues=l,this.baseTarget={...l},this.initialValues=n.initial?{...l}:{},this.renderState=u,this.parent=t,this.props=n,this.presenceContext=r,this.depth=t?t.depth+1:0,this.reducedMotionConfig=o,this.options=a,this.blockInitialAnimation=!!i,this.isControllingVariants=Cu(n),this.isVariantNode=GS(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:c,...d}=this.scrapeMotionValuesFromProps(n,{},this);for(const p in d){const v=d[p];l[p]!==void 0&&Ue(v)&&v.set(l[p],!1)}}mount(t){this.current=t,hv.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)),ox.current||bI(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:ff.current,this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){hv.delete(this.current),this.projection&&this.projection.unmount(),Rn(this.notifyUpdate),Rn(this.render),this.valueSubscriptions.forEach(t=>t()),this.valueSubscriptions.clear(),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){const n=this.features[t];n&&(n.unmount(),n.isMounted=!1)}this.current=null}bindToMotionValue(t,n){this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)();const r=ur.has(t),o=n.on("change",a=>{this.latestValues[t]=a,this.props.onUpdate&&J.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0)}),i=n.on("renderRequest",this.scheduleRender);let s;window.MotionCheckAppearSync&&(s=window.MotionCheckAppearSync(this,t,n)),this.valueSubscriptions.set(t,()=>{o(),i(),s&&s(),n.owner&&n.stop()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}updateFeatures(){let t="animation";for(t in Vo){const n=Vo[t];if(!n)continue;const{isEnabled:r,Feature:o}=n;if(!this.features[t]&&o&&r(this.props)&&(this.features[t]=new o(this)),this.features[t]){const i=this.features[t];i.isMounted?i.update():(i.mount(),i.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):be()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,n){this.latestValues[t]=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){const r=this.values.get(t);n!==r&&(r&&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=bs(n===null?void 0:n,{owner:this}),this.addValue(t,r)),r}readValue(t,n){var r;let o=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);return o!=null&&(typeof o=="string"&&(jb(o)||Fb(o))?o=parseFloat(o):!wI(o)&&or.test(n)&&(o=qb(t,n)),this.setBaseTarget(t,Ue(o)?o.get():o)),Ue(o)?o.get():o}setBaseTarget(t,n){this.baseTarget[t]=n}getBaseTarget(t){var n;const{initial:r}=this.props;let o;if(typeof r=="string"||typeof r=="object"){const s=Rh(this.props,r,(n=this.presenceContext)===null||n===void 0?void 0:n.custom);s&&(o=s[t])}if(r&&o!==void 0)return o;const i=this.getBaseTargetFromProps(this.props,t);return i!==void 0&&!Ue(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 Gh),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}}class ix extends CI{constructor(){super(...arguments),this.KeyframeResolver=Qb}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]}}function _I(e){return window.getComputedStyle(e)}class TI extends ix{constructor(){super(...arguments),this.type="html",this.applyWillChange=!0,this.renderInstance=YS}readValueFromInstance(t,n){if(ur.has(n)){const r=Vh(n);return r&&r.default||0}else{const r=_I(t),o=(Bb(n)?r.getPropertyValue(n):r[n])||0;return typeof o=="string"?o.trim():o}}measureInstanceViewportBox(t,{transformPagePoint:n}){return RS(t,n)}build(t,n,r){np(t,n,r.transformTemplate)}scrapeMotionValuesFromProps(t,n,r){return Jh(t,n,r)}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;Ue(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}class PI extends ix{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=be}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(ur.has(n)){const r=Vh(n);return r&&r.default||0}return n=XS.has(n)?n:xu(n),t.getAttribute(n)}scrapeMotionValuesFromProps(t,n,r){return ZS(t,n,r)}build(t,n,r){rp(t,n,this.isSVGTag,r.transformTemplate)}renderInstance(t,n,r,o){qS(t,n,r,o)}mount(t){this.isSVGTag=op(t.tagName),super.mount(t)}}const EI=(e,t)=>Zh(e)?new PI(t):new TI(t,{allowProjection:e!==_.Fragment}),$I=yI({...hM,...jD,...TD,...LD},EI),AI=l4($I);class RI extends _.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 zI({children:e,isPresent:t}){const n=_.useId(),r=_.useRef(null),o=_.useRef({width:0,height:0,top:0,left:0}),{nonce:i}=_.useContext(qh);return _.useInsertionEffect(()=>{const{width:s,height:a,top:l,left:u}=o.current;if(t||!r.current||!s||!a)return;r.current.dataset.motionPopId=n;const c=document.createElement("style");return i&&(c.nonce=i),document.head.appendChild(c),c.sheet&&c.sheet.insertRule(` [data-motion-pop-id="${n}"] { position: absolute !important; width: ${s}px !important; @@ -347,4 +347,4 @@ Error generating stack: `+i.message+` top: ${l}px !important; left: ${u}px !important; } - `),()=>{document.head.removeChild(c)}},[t]),T.jsx(zI,{isPresent:t,childRef:r,sizeRef:o,children:_.cloneElement(e,{ref:r})})}const DI=({children:e,initial:t,isPresent:n,onExitComplete:r,custom:o,presenceAffectsLayout:i,mode:s})=>{const a=ep(II),l=_.useId(),u=_.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?[Math.random()]:[n]);return _.useMemo(()=>{a.forEach((c,d)=>a.set(d,!1))},[n]),_.useEffect(()=>{!n&&!a.size&&r&&r()},[n]),s==="popLayout"&&(e=T.jsx(MI,{isPresent:n,children:e})),T.jsx(Rs.Provider,{value:u,children:e})};function II(){return new Map}const ya=e=>e.key||"";function mv(e){const t=[];return _.Children.forEach(e,n=>{_.isValidElement(n)&&t.push(n)}),t}const FI=({children:e,exitBeforeEnter:t,custom:n,initial:r=!0,onExitComplete:o,presenceAffectsLayout:i=!0,mode:s="sync"})=>{const a=_.useMemo(()=>mv(e),[e]),l=a.map(ya),u=_.useRef(!0),c=_.useRef(a),d=ep(()=>new Map),[p,v]=_.useState(a),[b,y]=_.useState(a);KS(()=>{u.current=!1,c.current=a;for(let h=0;h{const m=ya(h),x=a===b||l.includes(m),C=()=>{if(d.has(m))d.set(m,!0);else return;let A=!0;d.forEach($=>{$||(A=!1)}),A&&(f==null||f(),y(c.current),o&&o())};return T.jsx(DI,{isPresent:x,initial:!u.current||r?void 0:!1,custom:x?void 0:n,presenceAffectsLayout:i,mode:s,onExitComplete:x?void 0:C,children:h},m)})})};var jI={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]}}},lx=_.memo(e=>{const{id:t,message:n,onCloseComplete:r,onRequestRemove:o,requestClose:i=!1,position:s="bottom",duration:a=5e3,containerStyle:l,motionVariants:u=jI,toastSpacing:c="0.5rem"}=e,[d,p]=_.useState(a),v=OM();eg(()=>{v||r==null||r()},[v]),eg(()=>{p(a)},[a]);const b=()=>p(null),y=()=>p(a),S=()=>{v&&o()};_.useEffect(()=>{v&&i&&o()},[v,i,o]),l4(S,d);const f=_.useMemo(()=>({pointerEvents:"auto",maxWidth:560,minWidth:300,margin:c,...l}),[l,c]),h=_.useMemo(()=>i4(s),[s]);return T.jsx(RI.div,{layout:!0,className:"chakra-toast",variants:u,initial:"initial",animate:"animate",exit:"exit",onHoverStart:b,onHoverEnd:y,custom:{position:s},style:h,children:T.jsx(ue.div,{role:"status","aria-atomic":"true",className:"chakra-toast__inner",__css:f,children:Jt(n,{id:t,onClose:S})})})});lx.displayName="ToastComponent";function LI(e,t){var n;const r=e??"bottom",i={"top-start":{ltr:"top-left",rtl:"top-right"},"top-end":{ltr:"top-right",rtl:"top-left"},"bottom-start":{ltr:"bottom-left",rtl:"bottom-right"},"bottom-end":{ltr:"bottom-right",rtl:"bottom-left"}}[r];return(n=i==null?void 0:i[t])!=null?n:r}var gv={path:T.jsxs("g",{stroke:"currentColor",strokeWidth:"1.5",children:[T.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"}),T.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"}),T.jsx("circle",{fill:"none",strokeMiterlimit:"10",cx:"12",cy:"12",r:"11.25"})]}),viewBox:"0 0 24 24"},Go=ze((e,t)=>{const{as:n,viewBox:r,color:o="currentColor",focusable:i=!1,children:s,className:a,__css:l,...u}=e,c=Ge("chakra-icon",a),d=Nr("Icon",e),p={w:"1em",h:"1em",display:"inline-block",lineHeight:"1em",flexShrink:0,color:o,...l,...d},v={ref:t,focusable:i,className:c,__css:p},b=r??gv.viewBox;if(n&&typeof n!="string")return T.jsx(ue.svg,{as:n,...v,...u});const y=s??gv.path;return T.jsx(ue.svg,{verticalAlign:"middle",viewBox:b,...v,...u,children:y})});Go.displayName="Icon";function ip(e){const{viewBox:t="0 0 24 24",d:n,displayName:r,defaultProps:o={}}=e,i=_.Children.toArray(e.path),s=ze((a,l)=>T.jsx(Go,{ref:l,viewBox:t,...o,...a,children:i.length?i:T.jsx("path",{fill:"currentColor",d:n})}));return s.displayName=r,s}function BI(e){return T.jsx(Go,{viewBox:"0 0 24 24",...e,children:T.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 VI(e){return T.jsx(Go,{viewBox:"0 0 24 24",...e,children:T.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 vv(e){return T.jsx(Go,{viewBox:"0 0 24 24",...e,children:T.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 OI=C2({"0%":{transform:"rotate(0deg)"},"100%":{transform:"rotate(360deg)"}}),sp=ze((e,t)=>{const n=Nr("Spinner",e),{label:r="Loading...",thickness:o="2px",speed:i="0.45s",emptyColor:s="transparent",className:a,...l}=Mn(e),u=Ge("chakra-spinner",a),c={display:"inline-block",borderColor:"currentColor",borderStyle:"solid",borderRadius:"99999px",borderWidth:o,borderBottomColor:s,borderLeftColor:s,animation:`${OI} ${i} linear infinite`,...n};return T.jsx(ue.div,{ref:t,__css:c,className:u,...l,children:r&&T.jsx(ue.span,{srOnly:!0,children:r})})});sp.displayName="Spinner";var[NI,ap]=lr({name:"AlertContext",hookName:"useAlertContext",providerName:""}),[WI,lp]=lr({name:"AlertStylesContext",hookName:"useAlertStyles",providerName:""}),ux={info:{icon:VI,colorScheme:"blue"},warning:{icon:vv,colorScheme:"orange"},success:{icon:BI,colorScheme:"green"},error:{icon:vv,colorScheme:"red"},loading:{icon:sp,colorScheme:"blue"}};function UI(e){return ux[e].colorScheme}function HI(e){return ux[e].icon}var cx=ze(function(t,n){const r=lp(),{status:o}=ap(),i={display:"inline",...r.description};return T.jsx(ue.div,{ref:n,"data-status":o,...t,className:Ge("chakra-alert__desc",t.className),__css:i})});cx.displayName="AlertDescription";function dx(e){const{status:t}=ap(),n=HI(t),r=lp(),o=t==="loading"?r.spinner:r.icon;return T.jsx(ue.span,{display:"inherit","data-status":t,...e,className:Ge("chakra-alert__icon",e.className),__css:o,children:e.children||T.jsx(n,{h:"100%",w:"100%"})})}dx.displayName="AlertIcon";var fx=ze(function(t,n){const r=lp(),{status:o}=ap();return T.jsx(ue.div,{ref:n,"data-status":o,...t,className:Ge("chakra-alert__title",t.className),__css:r.title})});fx.displayName="AlertTitle";var hx=ze(function(t,n){var r;const{status:o="info",addRole:i=!0,...s}=Mn(t),a=(r=t.colorScheme)!=null?r:UI(o),l=Ah("Alert",{...t,colorScheme:a}),u={width:"100%",display:"flex",alignItems:"center",position:"relative",overflow:"hidden",...l.container};return T.jsx(NI,{value:{status:o},children:T.jsx(WI,{value:l,children:T.jsx(ue.div,{"data-status":o,role:i?"alert":void 0,ref:n,...s,className:Ge("chakra-alert",t.className),__css:u})})})});hx.displayName="Alert";function KI(e){return T.jsx(Go,{focusable:"false","aria-hidden":!0,...e,children:T.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 px=ze(function(t,n){const r=Nr("CloseButton",t),{children:o,isDisabled:i,__css:s,...a}=Mn(t),l={outline:0,display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0};return T.jsx(ue.button,{type:"button","aria-label":"Close",ref:n,disabled:i,__css:{...l,...r,...s},...a,children:o||T.jsx(KI,{width:"1em",height:"1em"})})});px.displayName="CloseButton";var GI={top:[],"top-left":[],"top-right":[],"bottom-left":[],bottom:[],"bottom-right":[]},Zt=YI(GI);function YI(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=XI(o,i),{position:a,id:l}=s;return r(u=>{var c,d;const v=a.includes("top")?[s,...(c=u[a])!=null?c:[]]:[...(d=u[a])!=null?d:[],s];return{...u,[a]:v}}),l},update:(o,i)=>{o&&r(s=>{const a={...s},{position:l,index:u}=J0(a,o);return l&&u!==-1&&(a[l][u]={...a[l][u],...i,message:mx(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=Ib(i,o);return s?{...i,[s]:i[s].map(a=>a.id==o?{...a,requestClose:!0}:a)}:i})},isActive:o=>!!J0(Zt.getState(),o).position}}var yv=0;function XI(e,t={}){var n,r;yv+=1;const o=(n=t.id)!=null?n:yv,i=(r=t.position)!=null?r:"bottom";return{id:o,message:e,position:i,duration:t.duration,onCloseComplete:t.onCloseComplete,onRequestRemove:()=>Zt.removeToast(String(o),i),status:t.status,requestClose:!1,containerStyle:t.containerStyle}}var qI=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 T.jsxs(hx,{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:[T.jsx(dx,{children:u}),T.jsxs(ue.div,{flex:"1",maxWidth:"100%",children:[o&&T.jsx(fx,{id:c==null?void 0:c.title,children:o}),a&&T.jsx(cx,{id:c==null?void 0:c.description,display:"block",children:a})]}),i&&T.jsx(px,{size:"sm",onClick:s,position:"absolute",insetEnd:1,top:1})]})};function mx(e={}){const{render:t,toastComponent:n=qI}=e;return o=>typeof t=="function"?t({...o,...e}):T.jsx(n,{...o,...e})}function QI(e,t){const n=o=>{var i;return{...t,...o,position:LI((i=o==null?void 0:o.position)!=null?i:t==null?void 0:t.position,e)}},r=o=>{const i=n(o),s=mx(i);return Zt.notify(s,i)};return r.update=(o,i)=>{Zt.update(o,n(i))},r.promise=(o,i)=>{const s=r({...i.loading,status:"loading",duration:null});o.then(a=>r.update(s,{status:"success",duration:5e3,...Jt(i.success,a)})).catch(a=>r.update(s,{status:"error",duration:5e3,...Jt(i.error,a)}))},r.closeAll=Zt.closeAll,r.close=Zt.close,r.isActive=Zt.isActive,r}var[ZI,JI]=lr({name:"ToastOptionsContext",strict:!1}),eF=e=>{const t=_.useSyncExternalStore(Zt.subscribe,Zt.getState,Zt.getState),{motionVariants:n,component:r=lx,portalProps:o}=e,s=Object.keys(t).map(a=>{const l=t[a];return T.jsx("div",{role:"region","aria-live":"polite","aria-label":`Notifications-${a}`,id:`chakra-toast-manager-${a}`,style:s4(a),children:T.jsx(FI,{initial:!1,children:l.map(u=>T.jsx(r,{motionVariants:n,...u},u.id))})},a)});return T.jsx(du,{...o,children:s})};function tF(e){const{theme:t}=ab(),n=JI();return _.useMemo(()=>QI(t.direction,{...n,...e}),[e,t.direction,n])}var nF=e=>function({children:n,theme:r=e,toastOptions:o,...i}){return T.jsxs(r4,{theme:r,...i,children:[T.jsx(ZI,{value:o==null?void 0:o.defaultOptions,children:n}),T.jsx(eF,{...o})]})},rF=nF(T3);function oF(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 hf(...e){return t=>{e.forEach(n=>{oF(n,t)})}}function iF(...e){return _.useMemo(()=>hf(...e),e)}function sF(e){return _.Children.toArray(e).filter(t=>_.isValidElement(t))}var[MF,aF]=lr({strict:!1,name:"ButtonGroupContext"});function lF(e){const[t,n]=_.useState(!e);return{ref:_.useCallback(i=>{i&&n(i.tagName==="BUTTON")},[]),type:t?"button":void 0}}function pf(e){const{children:t,className:n,...r}=e,o=_.isValidElement(t)?_.cloneElement(t,{"aria-hidden":!0,focusable:!1}):t,i=Ge("chakra-button__icon",n);return T.jsx(ue.span,{display:"inline-flex",alignSelf:"center",flexShrink:0,...r,className:i,children:o})}pf.displayName="ButtonIcon";function mf(e){const{label:t,placement:n,spacing:r="0.5rem",children:o=T.jsx(sp,{color:"currentColor",width:"1em",height:"1em"}),className:i,__css:s,...a}=e,l=Ge("chakra-button__spinner",i),u=n==="start"?"marginEnd":"marginStart",c=_.useMemo(()=>({display:"flex",alignItems:"center",position:t?"relative":"absolute",[u]:t?r:0,fontSize:"1em",lineHeight:"normal",...s}),[s,t,u,r]);return T.jsx(ue.div,{className:l,...a,__css:c,children:o})}mf.displayName="ButtonSpinner";var up=ze((e,t)=>{const n=aF(),r=Nr("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:p,spinner:v,spinnerPlacement:b="start",className:y,as:S,...f}=Mn(e),h=_.useMemo(()=>{const A={...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:A}}},[r,n]),{ref:m,type:x}=lF(S),C={rightIcon:u,leftIcon:l,iconSpacing:d,children:a};return T.jsxs(ue.button,{ref:iF(t,m),as:S,type:p??x,"data-active":Gt(s),"data-loading":Gt(i),__css:h,className:Ge("chakra-button",y),...f,disabled:o||i,children:[i&&b==="start"&&T.jsx(mf,{className:"chakra-button__spinner--start",label:c,placement:"start",spacing:d,children:v}),i?c||T.jsx(ue.span,{opacity:0,children:T.jsx(bv,{...C})}):T.jsx(bv,{...C}),i&&b==="end"&&T.jsx(mf,{className:"chakra-button__spinner--end",label:c,placement:"end",spacing:d,children:v})]})});up.displayName="Button";function bv(e){const{leftIcon:t,rightIcon:n,children:r,iconSpacing:o}=e;return T.jsxs(T.Fragment,{children:[t&&T.jsx(pf,{marginEnd:o,children:t}),r,n&&T.jsx(pf,{marginStart:o,children:n})]})}var cp=ze((e,t)=>{const{icon:n,children:r,isRound:o,"aria-label":i,...s}=e,a=n||r,l=_.isValidElement(a)?_.cloneElement(a,{"aria-hidden":!0,focusable:!1}):null;return T.jsx(up,{padding:"0",borderRadius:o?"full":void 0,ref:t,"aria-label":i,...s,children:l})});cp.displayName="IconButton";var[uF,cF]=lr({name:"FormControlStylesContext",errorMessage:`useFormControlStyles returned is 'undefined'. Seems you forgot to wrap the components in "" `}),[dF,gx]=lr({strict:!1,name:"FormControlContext"});function fF(e){const{id:t,isRequired:n,isInvalid:r,isDisabled:o,isReadOnly:i,...s}=e,a=_.useId(),l=t||`field-${a}`,u=`${l}-label`,c=`${l}-feedback`,d=`${l}-helptext`,[p,v]=_.useState(!1),[b,y]=_.useState(!1),[S,f]=_.useState(!1),h=_.useCallback(($={},P=null)=>({id:d,...$,ref:hf(P,D=>{D&&y(!0)})}),[d]),m=_.useCallback(($={},P=null)=>({...$,ref:P,"data-focus":Gt(S),"data-disabled":Gt(o),"data-invalid":Gt(r),"data-readonly":Gt(i),id:$.id!==void 0?$.id:u,htmlFor:$.htmlFor!==void 0?$.htmlFor:l}),[l,o,S,r,i,u]),x=_.useCallback(($={},P=null)=>({id:c,...$,ref:hf(P,D=>{D&&v(!0)}),"aria-live":"polite"}),[c]),C=_.useCallback(($={},P=null)=>({...$,...s,ref:P,role:"group","data-focus":Gt(S),"data-disabled":Gt(o),"data-invalid":Gt(r),"data-readonly":Gt(i)}),[s,o,S,r,i]),A=_.useCallback(($={},P=null)=>({...$,ref:P,role:"presentation","aria-hidden":!0,children:$.children||"*"}),[]);return{isRequired:!!n,isInvalid:!!r,isReadOnly:!!i,isDisabled:!!o,isFocused:!!S,onFocus:()=>f(!0),onBlur:()=>f(!1),hasFeedbackText:p,setHasFeedbackText:v,hasHelpText:b,setHasHelpText:y,id:l,labelId:u,feedbackId:c,helpTextId:d,htmlProps:s,getHelpTextProps:h,getErrorMessageProps:x,getRootProps:C,getLabelProps:m,getRequiredIndicatorProps:A}}var hF=ze(function(t,n){const r=Ah("Form",t),o=Mn(t),{getRootProps:i,htmlProps:s,...a}=fF(o),l=Ge("chakra-form-control",t.className);return T.jsx(dF,{value:a,children:T.jsx(uF,{value:r,children:T.jsx(ue.div,{...i({},n),className:l,__css:r.container})})})});hF.displayName="FormControl";var pF=ze(function(t,n){const r=gx(),o=cF(),i=Ge("chakra-form__helper-text",t.className);return T.jsx(ue.div,{...r==null?void 0:r.getHelpTextProps(t,n),__css:o.helperText,className:i})});pF.displayName="FormHelperText";function mF(e){const{isDisabled:t,isInvalid:n,isReadOnly:r,isRequired:o,...i}=gF(e);return{...i,disabled:t,readOnly:r,required:o,"aria-invalid":hc(n),"aria-required":hc(o),"aria-readonly":hc(r)}}function gF(e){var t,n,r;const o=gx(),{id:i,disabled:s,readOnly:a,required:l,isRequired:u,isInvalid:c,isReadOnly:d,isDisabled:p,onFocus:v,onBlur:b,...y}=e,S=e["aria-describedby"]?[e["aria-describedby"]]:[];return o!=null&&o.hasFeedbackText&&(o!=null&&o.isInvalid)&&S.push(o.feedbackId),o!=null&&o.hasHelpText&&S.push(o.helpTextId),{...y,"aria-describedby":S.join(" ")||void 0,id:i??(o==null?void 0:o.id),isDisabled:(t=s??p)!=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:a0(o==null?void 0:o.onFocus,v),onBlur:a0(o==null?void 0:o.onBlur,b)}}var dp=ze(function(t,n){const{htmlSize:r,...o}=t,i=Ah("Input",o),s=Mn(o),a=mF(s),l=Ge("chakra-input",t.className);return T.jsx(ue.input,{size:r,...a,__css:i.field,ref:n,className:l})});dp.displayName="Input";dp.id="Input";function vF(e,t){return Array.isArray(e)?e.map(n=>n===null?null:t(n)):Ot(e)?Object.keys(e).reduce((n,r)=>(n[r]=t(e[r]),n),{}):e!=null?t(e):null}var vx=ue("div",{baseStyle:{flex:1,justifySelf:"stretch",alignSelf:"stretch"}});vx.displayName="Spacer";var yx=ze(function(t,n){const r=Nr("Text",t),{className:o,align:i,decoration:s,casing:a,...l}=Mn(t),u=O3({textAlign:t.align,textDecoration:t.decoration,textTransform:t.casing});return T.jsx(ue.p,{ref:n,className:Ge("chakra-text",t.className),...u,...l,__css:r})});yx.displayName="Text";var bx=e=>T.jsx(ue.div,{className:"chakra-stack__divider",...e,__css:{...e.__css,borderWidth:0,alignSelf:"stretch",borderColor:"inherit",width:"auto",height:"auto"}});bx.displayName="StackDivider";var Sx=e=>T.jsx(ue.div,{className:"chakra-stack__item",...e,__css:{display:"inline-block",flex:"0 0 auto",minWidth:0,...e.__css}});Sx.displayName="StackItem";function yF(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{"&":vF(n,o=>r[o])}}var fp=ze((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,...p}=e,v=n?"row":r??"column",b=_.useMemo(()=>yF({spacing:s,direction:v}),[s,v]),y=!!u,S=!d&&!y,f=_.useMemo(()=>{const m=sF(l);return S?m:m.map((x,C)=>{const A=typeof x.key<"u"?x.key:C,$=C+1===m.length,D=d?T.jsx(Sx,{children:x},A):x;if(!y)return D;const z=_.cloneElement(u,{__css:b}),ne=$?null:z;return T.jsxs(_.Fragment,{children:[D,ne]},A)})},[u,b,y,S,d,l]),h=Ge("chakra-stack",c);return T.jsx(ue.div,{ref:t,display:"flex",alignItems:o,justifyContent:i,flexDirection:v,flexWrap:a,gap:y?void 0:s,className:h,...p,children:f})});fp.displayName="Stack";var hp=ze((e,t)=>T.jsx(fp,{align:"center",...e,direction:"column",ref:t}));hp.displayName="VStack";var pp=ze((e,t)=>T.jsx(fp,{align:"center",...e,direction:"row",ref:t}));pp.displayName="HStack";var xx=ze(function(t,n){const r=Nr("Heading",t),{className:o,...i}=Mn(t);return T.jsx(ue.h2,{ref:n,className:Ge("chakra-heading",t.className),...i,__css:r})});xx.displayName="Heading";var wx=ze(function(t,n){const r=Nr("Badge",t),{className:o,...i}=Mn(t);return T.jsx(ue.span,{ref:n,className:Ge("chakra-badge",t.className),...i,__css:{display:"inline-block",whiteSpace:"nowrap",verticalAlign:"middle",...r}})});wx.displayName="Badge";const bF=({addTodo:e})=>{const t=_.useRef(null),n=tF(),r=i=>n({title:i,status:"error",duration:2e3,isClosable:!0}),o=i=>{if(i.preventDefault(),t.current===null)return;if(!t.current.value){r("This field is required.");return}const s=t.current.value;e(s),t.current.value=""};return T.jsx("form",{onSubmit:o,children:T.jsxs(pp,{m:"8",children:[T.jsx(dp,{variant:"filled",placeholder:"Add new todo",ref:t}),T.jsx(up,{type:"submit",colorScheme:"green",px:"8",children:"Add"})]})})};var SF=ip({displayName:"SunIcon",path:T.jsxs("g",{strokeLinejoin:"round",strokeLinecap:"round",strokeWidth:"2",fill:"none",stroke:"currentColor",children:[T.jsx("circle",{cx:"12",cy:"12",r:"5"}),T.jsx("path",{d:"M12 1v2"}),T.jsx("path",{d:"M12 21v2"}),T.jsx("path",{d:"M4.22 4.22l1.42 1.42"}),T.jsx("path",{d:"M18.36 18.36l1.42 1.42"}),T.jsx("path",{d:"M1 12h2"}),T.jsx("path",{d:"M21 12h2"}),T.jsx("path",{d:"M4.22 19.78l1.42-1.42"}),T.jsx("path",{d:"M18.36 5.64l1.42-1.42"})]})}),xF=ip({d:"M21.4,13.7C20.6,13.9,19.8,14,19,14c-5,0-9-4-9-9c0-0.8,0.1-1.6,0.3-2.4c0.1-0.3,0-0.7-0.3-1 c-0.3-0.3-0.6-0.4-1-0.3C4.3,2.7,1,7.1,1,12c0,6.1,4.9,11,11,11c4.9,0,9.3-3.3,10.6-8.1c0.1-0.3,0-0.7-0.3-1 C22.1,13.7,21.7,13.6,21.4,13.7z",displayName:"MoonIcon"}),wF=ip({displayName:"DeleteIcon",path:T.jsx("g",{fill:"currentColor",children:T.jsx("path",{d:"M19.452 7.5H4.547a.5.5 0 00-.5.545l1.287 14.136A2 2 0 007.326 24h9.347a2 2 0 001.992-1.819L19.95 8.045a.5.5 0 00-.129-.382.5.5 0 00-.369-.163zm-9.2 13a.75.75 0 01-1.5 0v-9a.75.75 0 011.5 0zm5 0a.75.75 0 01-1.5 0v-9a.75.75 0 011.5 0zM22 4h-4.75a.25.25 0 01-.25-.25V2.5A2.5 2.5 0 0014.5 0h-5A2.5 2.5 0 007 2.5v1.25a.25.25 0 01-.25.25H2a1 1 0 000 2h20a1 1 0 000-2zM9 3.75V2.5a.5.5 0 01.5-.5h5a.5.5 0 01.5.5v1.25a.25.25 0 01-.25.25h-5.5A.25.25 0 019 3.75z"})})});const kF=({todos:e,deleteTodo:t})=>{if(e.length===0)return T.jsx(wx,{colorScheme:"green",p:"4",m:"4",borderRadius:"lg",children:"No Todos, yay~"});const n={p:"4",w:"100%",maxW:{base:"90vw",sm:"80vw",lg:"50vw",xl:"40vw"},borderColor:"gray.100",borderWidth:"2px",borderRadius:"lg",alignItems:"stretch",divider:T.jsx(bx,{})};return T.jsx(hp,{...n,children:e.map(r=>T.jsxs(pp,{children:[T.jsx(yx,{children:r.body}),T.jsx(vx,{}),T.jsx(cp,{"aria-label":"Delete todo",icon:T.jsx(wF,{}),onClick:()=>t(r.id)})]},r.id))})},CF=({toggleTheme:e,theme:t})=>{const n={size:"lg",isRound:!0,alignSelf:"flex-end",icon:t==="light"?T.jsx(xF,{}):T.jsx(SF,{}),"aria-label":"Switch DarkMode"};return T.jsx(cp,{onClick:e,...n})},mp=ql("light");mp.debugLabel="themeAtom";const _F="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";let TF=(e=21)=>{let t="",n=crypto.getRandomValues(new Uint8Array(e));for(;e--;)t+=_F[n[e]&63];return t};const Oo=ql([]);Oo.debugLabel="todosAtom";const PF=ql(null,(e,t,n)=>{const r={id:TF(),body:n};t(Oo,[...e(Oo),r])}),EF=ql(null,(e,t,n)=>{const o=e(Oo).filter(i=>i.id!==n);t(Oo,o)});function $F(){const{colorMode:e,toggleColorMode:t}=fu(),[n,r]=Ld(mp),[o]=Ld(Oo),i=jd(PF),s=jd(EF);_.useEffect(()=>{r(e)},[e,r]);const a=()=>{r(l=>l==="light"?"dark":"light"),t()};return T.jsxs(hp,{p:4,children:[T.jsx(CF,{toggleTheme:a,theme:n}),T.jsx(xx,{size:"2xl",children:"Jotai-Todo App"}),T.jsx(bF,{addTodo:i}),T.jsx(kF,{todos:o,deleteTodo:s})]})}const AF=()=>{const[e]=Ld(mp);return T.jsxs(rF,{children:[T.jsx(W2,{initialColorMode:e}),T.jsx($F,{})]})};z1(document.getElementById("root")).render(T.jsx(_.StrictMode,{children:T.jsxs(S_,{children:[T.jsx(C_,{}),T.jsx(AF,{})]})})); + `),()=>{document.head.removeChild(c)}},[t]),T.jsx(RI,{isPresent:t,childRef:r,sizeRef:o,children:_.cloneElement(e,{ref:r})})}const MI=({children:e,initial:t,isPresent:n,onExitComplete:r,custom:o,presenceAffectsLayout:i,mode:s})=>{const a=ep(DI),l=_.useId(),u=_.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?[Math.random()]:[n]);return _.useMemo(()=>{a.forEach((c,d)=>a.set(d,!1))},[n]),_.useEffect(()=>{!n&&!a.size&&r&&r()},[n]),s==="popLayout"&&(e=T.jsx(zI,{isPresent:n,children:e})),T.jsx(Rs.Provider,{value:u,children:e})};function DI(){return new Map}const ya=e=>e.key||"";function mv(e){const t=[];return _.Children.forEach(e,n=>{_.isValidElement(n)&&t.push(n)}),t}const II=({children:e,exitBeforeEnter:t,custom:n,initial:r=!0,onExitComplete:o,presenceAffectsLayout:i=!0,mode:s="sync"})=>{const a=_.useMemo(()=>mv(e),[e]),l=a.map(ya),u=_.useRef(!0),c=_.useRef(a),d=ep(()=>new Map),[p,v]=_.useState(a),[b,y]=_.useState(a);US(()=>{u.current=!1,c.current=a;for(let h=0;h{const m=ya(h),x=a===b||l.includes(m),C=()=>{if(d.has(m))d.set(m,!0);else return;let A=!0;d.forEach($=>{$||(A=!1)}),A&&(f==null||f(),y(c.current),o&&o())};return T.jsx(MI,{isPresent:x,initial:!u.current||r?void 0:!1,custom:x?void 0:n,presenceAffectsLayout:i,mode:s,onExitComplete:x?void 0:C,children:h},m)})})};var FI={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]}}},sx=_.memo(e=>{const{id:t,message:n,onCloseComplete:r,onRequestRemove:o,requestClose:i=!1,position:s="bottom",duration:a=5e3,containerStyle:l,motionVariants:u=FI,toastSpacing:c="0.5rem"}=e,[d,p]=_.useState(a),v=VM();eg(()=>{v||r==null||r()},[v]),eg(()=>{p(a)},[a]);const b=()=>p(null),y=()=>p(a),S=()=>{v&&o()};_.useEffect(()=>{v&&i&&o()},[v,i,o]),a4(S,d);const f=_.useMemo(()=>({pointerEvents:"auto",maxWidth:560,minWidth:300,margin:c,...l}),[l,c]),h=_.useMemo(()=>o4(s),[s]);return T.jsx(AI.div,{layout:!0,className:"chakra-toast",variants:u,initial:"initial",animate:"animate",exit:"exit",onHoverStart:b,onHoverEnd:y,custom:{position:s},style:h,children:T.jsx(ue.div,{role:"status","aria-atomic":"true",className:"chakra-toast__inner",__css:f,children:Jt(n,{id:t,onClose:S})})})});sx.displayName="ToastComponent";function jI(e,t){var n;const r=e??"bottom",i={"top-start":{ltr:"top-left",rtl:"top-right"},"top-end":{ltr:"top-right",rtl:"top-left"},"bottom-start":{ltr:"bottom-left",rtl:"bottom-right"},"bottom-end":{ltr:"bottom-right",rtl:"bottom-left"}}[r];return(n=i==null?void 0:i[t])!=null?n:r}var gv={path:T.jsxs("g",{stroke:"currentColor",strokeWidth:"1.5",children:[T.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"}),T.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"}),T.jsx("circle",{fill:"none",strokeMiterlimit:"10",cx:"12",cy:"12",r:"11.25"})]}),viewBox:"0 0 24 24"},Go=ze((e,t)=>{const{as:n,viewBox:r,color:o="currentColor",focusable:i=!1,children:s,className:a,__css:l,...u}=e,c=Ge("chakra-icon",a),d=Nr("Icon",e),p={w:"1em",h:"1em",display:"inline-block",lineHeight:"1em",flexShrink:0,color:o,...l,...d},v={ref:t,focusable:i,className:c,__css:p},b=r??gv.viewBox;if(n&&typeof n!="string")return T.jsx(ue.svg,{as:n,...v,...u});const y=s??gv.path;return T.jsx(ue.svg,{verticalAlign:"middle",viewBox:b,...v,...u,children:y})});Go.displayName="Icon";function ip(e){const{viewBox:t="0 0 24 24",d:n,displayName:r,defaultProps:o={}}=e,i=_.Children.toArray(e.path),s=ze((a,l)=>T.jsx(Go,{ref:l,viewBox:t,...o,...a,children:i.length?i:T.jsx("path",{fill:"currentColor",d:n})}));return s.displayName=r,s}function LI(e){return T.jsx(Go,{viewBox:"0 0 24 24",...e,children:T.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 BI(e){return T.jsx(Go,{viewBox:"0 0 24 24",...e,children:T.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 vv(e){return T.jsx(Go,{viewBox:"0 0 24 24",...e,children:T.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 VI=k2({"0%":{transform:"rotate(0deg)"},"100%":{transform:"rotate(360deg)"}}),sp=ze((e,t)=>{const n=Nr("Spinner",e),{label:r="Loading...",thickness:o="2px",speed:i="0.45s",emptyColor:s="transparent",className:a,...l}=Mn(e),u=Ge("chakra-spinner",a),c={display:"inline-block",borderColor:"currentColor",borderStyle:"solid",borderRadius:"99999px",borderWidth:o,borderBottomColor:s,borderLeftColor:s,animation:`${VI} ${i} linear infinite`,...n};return T.jsx(ue.div,{ref:t,__css:c,className:u,...l,children:r&&T.jsx(ue.span,{srOnly:!0,children:r})})});sp.displayName="Spinner";var[OI,ap]=lr({name:"AlertContext",hookName:"useAlertContext",providerName:""}),[NI,lp]=lr({name:"AlertStylesContext",hookName:"useAlertStyles",providerName:""}),ax={info:{icon:BI,colorScheme:"blue"},warning:{icon:vv,colorScheme:"orange"},success:{icon:LI,colorScheme:"green"},error:{icon:vv,colorScheme:"red"},loading:{icon:sp,colorScheme:"blue"}};function WI(e){return ax[e].colorScheme}function UI(e){return ax[e].icon}var lx=ze(function(t,n){const r=lp(),{status:o}=ap(),i={display:"inline",...r.description};return T.jsx(ue.div,{ref:n,"data-status":o,...t,className:Ge("chakra-alert__desc",t.className),__css:i})});lx.displayName="AlertDescription";function ux(e){const{status:t}=ap(),n=UI(t),r=lp(),o=t==="loading"?r.spinner:r.icon;return T.jsx(ue.span,{display:"inherit","data-status":t,...e,className:Ge("chakra-alert__icon",e.className),__css:o,children:e.children||T.jsx(n,{h:"100%",w:"100%"})})}ux.displayName="AlertIcon";var cx=ze(function(t,n){const r=lp(),{status:o}=ap();return T.jsx(ue.div,{ref:n,"data-status":o,...t,className:Ge("chakra-alert__title",t.className),__css:r.title})});cx.displayName="AlertTitle";var dx=ze(function(t,n){var r;const{status:o="info",addRole:i=!0,...s}=Mn(t),a=(r=t.colorScheme)!=null?r:WI(o),l=Ah("Alert",{...t,colorScheme:a}),u={width:"100%",display:"flex",alignItems:"center",position:"relative",overflow:"hidden",...l.container};return T.jsx(OI,{value:{status:o},children:T.jsx(NI,{value:l,children:T.jsx(ue.div,{"data-status":o,role:i?"alert":void 0,ref:n,...s,className:Ge("chakra-alert",t.className),__css:u})})})});dx.displayName="Alert";function HI(e){return T.jsx(Go,{focusable:"false","aria-hidden":!0,...e,children:T.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 fx=ze(function(t,n){const r=Nr("CloseButton",t),{children:o,isDisabled:i,__css:s,...a}=Mn(t),l={outline:0,display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0};return T.jsx(ue.button,{type:"button","aria-label":"Close",ref:n,disabled:i,__css:{...l,...r,...s},...a,children:o||T.jsx(HI,{width:"1em",height:"1em"})})});fx.displayName="CloseButton";var KI={top:[],"top-left":[],"top-right":[],"bottom-left":[],bottom:[],"bottom-right":[]},Zt=GI(KI);function GI(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=YI(o,i),{position:a,id:l}=s;return r(u=>{var c,d;const v=a.includes("top")?[s,...(c=u[a])!=null?c:[]]:[...(d=u[a])!=null?d:[],s];return{...u,[a]:v}}),l},update:(o,i)=>{o&&r(s=>{const a={...s},{position:l,index:u}=J0(a,o);return l&&u!==-1&&(a[l][u]={...a[l][u],...i,message:hx(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=Mb(i,o);return s?{...i,[s]:i[s].map(a=>a.id==o?{...a,requestClose:!0}:a)}:i})},isActive:o=>!!J0(Zt.getState(),o).position}}var yv=0;function YI(e,t={}){var n,r;yv+=1;const o=(n=t.id)!=null?n:yv,i=(r=t.position)!=null?r:"bottom";return{id:o,message:e,position:i,duration:t.duration,onCloseComplete:t.onCloseComplete,onRequestRemove:()=>Zt.removeToast(String(o),i),status:t.status,requestClose:!1,containerStyle:t.containerStyle}}var XI=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 T.jsxs(dx,{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:[T.jsx(ux,{children:u}),T.jsxs(ue.div,{flex:"1",maxWidth:"100%",children:[o&&T.jsx(cx,{id:c==null?void 0:c.title,children:o}),a&&T.jsx(lx,{id:c==null?void 0:c.description,display:"block",children:a})]}),i&&T.jsx(fx,{size:"sm",onClick:s,position:"absolute",insetEnd:1,top:1})]})};function hx(e={}){const{render:t,toastComponent:n=XI}=e;return o=>typeof t=="function"?t({...o,...e}):T.jsx(n,{...o,...e})}function qI(e,t){const n=o=>{var i;return{...t,...o,position:jI((i=o==null?void 0:o.position)!=null?i:t==null?void 0:t.position,e)}},r=o=>{const i=n(o),s=hx(i);return Zt.notify(s,i)};return r.update=(o,i)=>{Zt.update(o,n(i))},r.promise=(o,i)=>{const s=r({...i.loading,status:"loading",duration:null});o.then(a=>r.update(s,{status:"success",duration:5e3,...Jt(i.success,a)})).catch(a=>r.update(s,{status:"error",duration:5e3,...Jt(i.error,a)}))},r.closeAll=Zt.closeAll,r.close=Zt.close,r.isActive=Zt.isActive,r}var[QI,ZI]=lr({name:"ToastOptionsContext",strict:!1}),JI=e=>{const t=_.useSyncExternalStore(Zt.subscribe,Zt.getState,Zt.getState),{motionVariants:n,component:r=sx,portalProps:o}=e,s=Object.keys(t).map(a=>{const l=t[a];return T.jsx("div",{role:"region","aria-live":"polite","aria-label":`Notifications-${a}`,id:`chakra-toast-manager-${a}`,style:i4(a),children:T.jsx(II,{initial:!1,children:l.map(u=>T.jsx(r,{motionVariants:n,...u},u.id))})},a)});return T.jsx(du,{...o,children:s})};function eF(e){const{theme:t}=ib(),n=ZI();return _.useMemo(()=>qI(t.direction,{...n,...e}),[e,t.direction,n])}var tF=e=>function({children:n,theme:r=e,toastOptions:o,...i}){return T.jsxs(n4,{theme:r,...i,children:[T.jsx(QI,{value:o==null?void 0:o.defaultOptions,children:n}),T.jsx(JI,{...o})]})},nF=tF(_3);function rF(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 hf(...e){return t=>{e.forEach(n=>{rF(n,t)})}}function oF(...e){return _.useMemo(()=>hf(...e),e)}function iF(e){return _.Children.toArray(e).filter(t=>_.isValidElement(t))}var[zF,sF]=lr({strict:!1,name:"ButtonGroupContext"});function aF(e){const[t,n]=_.useState(!e);return{ref:_.useCallback(i=>{i&&n(i.tagName==="BUTTON")},[]),type:t?"button":void 0}}function pf(e){const{children:t,className:n,...r}=e,o=_.isValidElement(t)?_.cloneElement(t,{"aria-hidden":!0,focusable:!1}):t,i=Ge("chakra-button__icon",n);return T.jsx(ue.span,{display:"inline-flex",alignSelf:"center",flexShrink:0,...r,className:i,children:o})}pf.displayName="ButtonIcon";function mf(e){const{label:t,placement:n,spacing:r="0.5rem",children:o=T.jsx(sp,{color:"currentColor",width:"1em",height:"1em"}),className:i,__css:s,...a}=e,l=Ge("chakra-button__spinner",i),u=n==="start"?"marginEnd":"marginStart",c=_.useMemo(()=>({display:"flex",alignItems:"center",position:t?"relative":"absolute",[u]:t?r:0,fontSize:"1em",lineHeight:"normal",...s}),[s,t,u,r]);return T.jsx(ue.div,{className:l,...a,__css:c,children:o})}mf.displayName="ButtonSpinner";var up=ze((e,t)=>{const n=sF(),r=Nr("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:p,spinner:v,spinnerPlacement:b="start",className:y,as:S,...f}=Mn(e),h=_.useMemo(()=>{const A={...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:A}}},[r,n]),{ref:m,type:x}=aF(S),C={rightIcon:u,leftIcon:l,iconSpacing:d,children:a};return T.jsxs(ue.button,{ref:oF(t,m),as:S,type:p??x,"data-active":Gt(s),"data-loading":Gt(i),__css:h,className:Ge("chakra-button",y),...f,disabled:o||i,children:[i&&b==="start"&&T.jsx(mf,{className:"chakra-button__spinner--start",label:c,placement:"start",spacing:d,children:v}),i?c||T.jsx(ue.span,{opacity:0,children:T.jsx(bv,{...C})}):T.jsx(bv,{...C}),i&&b==="end"&&T.jsx(mf,{className:"chakra-button__spinner--end",label:c,placement:"end",spacing:d,children:v})]})});up.displayName="Button";function bv(e){const{leftIcon:t,rightIcon:n,children:r,iconSpacing:o}=e;return T.jsxs(T.Fragment,{children:[t&&T.jsx(pf,{marginEnd:o,children:t}),r,n&&T.jsx(pf,{marginStart:o,children:n})]})}var cp=ze((e,t)=>{const{icon:n,children:r,isRound:o,"aria-label":i,...s}=e,a=n||r,l=_.isValidElement(a)?_.cloneElement(a,{"aria-hidden":!0,focusable:!1}):null;return T.jsx(up,{padding:"0",borderRadius:o?"full":void 0,ref:t,"aria-label":i,...s,children:l})});cp.displayName="IconButton";var[lF,uF]=lr({name:"FormControlStylesContext",errorMessage:`useFormControlStyles returned is 'undefined'. Seems you forgot to wrap the components in "" `}),[cF,px]=lr({strict:!1,name:"FormControlContext"});function dF(e){const{id:t,isRequired:n,isInvalid:r,isDisabled:o,isReadOnly:i,...s}=e,a=_.useId(),l=t||`field-${a}`,u=`${l}-label`,c=`${l}-feedback`,d=`${l}-helptext`,[p,v]=_.useState(!1),[b,y]=_.useState(!1),[S,f]=_.useState(!1),h=_.useCallback(($={},P=null)=>({id:d,...$,ref:hf(P,D=>{D&&y(!0)})}),[d]),m=_.useCallback(($={},P=null)=>({...$,ref:P,"data-focus":Gt(S),"data-disabled":Gt(o),"data-invalid":Gt(r),"data-readonly":Gt(i),id:$.id!==void 0?$.id:u,htmlFor:$.htmlFor!==void 0?$.htmlFor:l}),[l,o,S,r,i,u]),x=_.useCallback(($={},P=null)=>({id:c,...$,ref:hf(P,D=>{D&&v(!0)}),"aria-live":"polite"}),[c]),C=_.useCallback(($={},P=null)=>({...$,...s,ref:P,role:"group","data-focus":Gt(S),"data-disabled":Gt(o),"data-invalid":Gt(r),"data-readonly":Gt(i)}),[s,o,S,r,i]),A=_.useCallback(($={},P=null)=>({...$,ref:P,role:"presentation","aria-hidden":!0,children:$.children||"*"}),[]);return{isRequired:!!n,isInvalid:!!r,isReadOnly:!!i,isDisabled:!!o,isFocused:!!S,onFocus:()=>f(!0),onBlur:()=>f(!1),hasFeedbackText:p,setHasFeedbackText:v,hasHelpText:b,setHasHelpText:y,id:l,labelId:u,feedbackId:c,helpTextId:d,htmlProps:s,getHelpTextProps:h,getErrorMessageProps:x,getRootProps:C,getLabelProps:m,getRequiredIndicatorProps:A}}var fF=ze(function(t,n){const r=Ah("Form",t),o=Mn(t),{getRootProps:i,htmlProps:s,...a}=dF(o),l=Ge("chakra-form-control",t.className);return T.jsx(cF,{value:a,children:T.jsx(lF,{value:r,children:T.jsx(ue.div,{...i({},n),className:l,__css:r.container})})})});fF.displayName="FormControl";var hF=ze(function(t,n){const r=px(),o=uF(),i=Ge("chakra-form__helper-text",t.className);return T.jsx(ue.div,{...r==null?void 0:r.getHelpTextProps(t,n),__css:o.helperText,className:i})});hF.displayName="FormHelperText";function pF(e){const{isDisabled:t,isInvalid:n,isReadOnly:r,isRequired:o,...i}=mF(e);return{...i,disabled:t,readOnly:r,required:o,"aria-invalid":hc(n),"aria-required":hc(o),"aria-readonly":hc(r)}}function mF(e){var t,n,r;const o=px(),{id:i,disabled:s,readOnly:a,required:l,isRequired:u,isInvalid:c,isReadOnly:d,isDisabled:p,onFocus:v,onBlur:b,...y}=e,S=e["aria-describedby"]?[e["aria-describedby"]]:[];return o!=null&&o.hasFeedbackText&&(o!=null&&o.isInvalid)&&S.push(o.feedbackId),o!=null&&o.hasHelpText&&S.push(o.helpTextId),{...y,"aria-describedby":S.join(" ")||void 0,id:i??(o==null?void 0:o.id),isDisabled:(t=s??p)!=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:a0(o==null?void 0:o.onFocus,v),onBlur:a0(o==null?void 0:o.onBlur,b)}}var dp=ze(function(t,n){const{htmlSize:r,...o}=t,i=Ah("Input",o),s=Mn(o),a=pF(s),l=Ge("chakra-input",t.className);return T.jsx(ue.input,{size:r,...a,__css:i.field,ref:n,className:l})});dp.displayName="Input";dp.id="Input";function gF(e,t){return Array.isArray(e)?e.map(n=>n===null?null:t(n)):Ot(e)?Object.keys(e).reduce((n,r)=>(n[r]=t(e[r]),n),{}):e!=null?t(e):null}var mx=ue("div",{baseStyle:{flex:1,justifySelf:"stretch",alignSelf:"stretch"}});mx.displayName="Spacer";var gx=ze(function(t,n){const r=Nr("Text",t),{className:o,align:i,decoration:s,casing:a,...l}=Mn(t),u=V3({textAlign:t.align,textDecoration:t.decoration,textTransform:t.casing});return T.jsx(ue.p,{ref:n,className:Ge("chakra-text",t.className),...u,...l,__css:r})});gx.displayName="Text";var vx=e=>T.jsx(ue.div,{className:"chakra-stack__divider",...e,__css:{...e.__css,borderWidth:0,alignSelf:"stretch",borderColor:"inherit",width:"auto",height:"auto"}});vx.displayName="StackDivider";var yx=e=>T.jsx(ue.div,{className:"chakra-stack__item",...e,__css:{display:"inline-block",flex:"0 0 auto",minWidth:0,...e.__css}});yx.displayName="StackItem";function vF(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{"&":gF(n,o=>r[o])}}var fp=ze((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,...p}=e,v=n?"row":r??"column",b=_.useMemo(()=>vF({spacing:s,direction:v}),[s,v]),y=!!u,S=!d&&!y,f=_.useMemo(()=>{const m=iF(l);return S?m:m.map((x,C)=>{const A=typeof x.key<"u"?x.key:C,$=C+1===m.length,D=d?T.jsx(yx,{children:x},A):x;if(!y)return D;const z=_.cloneElement(u,{__css:b}),ne=$?null:z;return T.jsxs(_.Fragment,{children:[D,ne]},A)})},[u,b,y,S,d,l]),h=Ge("chakra-stack",c);return T.jsx(ue.div,{ref:t,display:"flex",alignItems:o,justifyContent:i,flexDirection:v,flexWrap:a,gap:y?void 0:s,className:h,...p,children:f})});fp.displayName="Stack";var hp=ze((e,t)=>T.jsx(fp,{align:"center",...e,direction:"column",ref:t}));hp.displayName="VStack";var pp=ze((e,t)=>T.jsx(fp,{align:"center",...e,direction:"row",ref:t}));pp.displayName="HStack";var bx=ze(function(t,n){const r=Nr("Heading",t),{className:o,...i}=Mn(t);return T.jsx(ue.h2,{ref:n,className:Ge("chakra-heading",t.className),...i,__css:r})});bx.displayName="Heading";var Sx=ze(function(t,n){const r=Nr("Badge",t),{className:o,...i}=Mn(t);return T.jsx(ue.span,{ref:n,className:Ge("chakra-badge",t.className),...i,__css:{display:"inline-block",whiteSpace:"nowrap",verticalAlign:"middle",...r}})});Sx.displayName="Badge";const yF=({addTodo:e})=>{const t=_.useRef(null),n=eF(),r=i=>n({title:i,status:"error",duration:2e3,isClosable:!0}),o=i=>{if(i.preventDefault(),t.current===null)return;if(!t.current.value){r("This field is required.");return}const s=t.current.value;e(s),t.current.value=""};return T.jsx("form",{onSubmit:o,children:T.jsxs(pp,{m:"8",children:[T.jsx(dp,{variant:"filled",placeholder:"Add new todo",ref:t}),T.jsx(up,{type:"submit",colorScheme:"green",px:"8",children:"Add"})]})})};var bF=ip({displayName:"SunIcon",path:T.jsxs("g",{strokeLinejoin:"round",strokeLinecap:"round",strokeWidth:"2",fill:"none",stroke:"currentColor",children:[T.jsx("circle",{cx:"12",cy:"12",r:"5"}),T.jsx("path",{d:"M12 1v2"}),T.jsx("path",{d:"M12 21v2"}),T.jsx("path",{d:"M4.22 4.22l1.42 1.42"}),T.jsx("path",{d:"M18.36 18.36l1.42 1.42"}),T.jsx("path",{d:"M1 12h2"}),T.jsx("path",{d:"M21 12h2"}),T.jsx("path",{d:"M4.22 19.78l1.42-1.42"}),T.jsx("path",{d:"M18.36 5.64l1.42-1.42"})]})}),SF=ip({d:"M21.4,13.7C20.6,13.9,19.8,14,19,14c-5,0-9-4-9-9c0-0.8,0.1-1.6,0.3-2.4c0.1-0.3,0-0.7-0.3-1 c-0.3-0.3-0.6-0.4-1-0.3C4.3,2.7,1,7.1,1,12c0,6.1,4.9,11,11,11c4.9,0,9.3-3.3,10.6-8.1c0.1-0.3,0-0.7-0.3-1 C22.1,13.7,21.7,13.6,21.4,13.7z",displayName:"MoonIcon"}),xF=ip({displayName:"DeleteIcon",path:T.jsx("g",{fill:"currentColor",children:T.jsx("path",{d:"M19.452 7.5H4.547a.5.5 0 00-.5.545l1.287 14.136A2 2 0 007.326 24h9.347a2 2 0 001.992-1.819L19.95 8.045a.5.5 0 00-.129-.382.5.5 0 00-.369-.163zm-9.2 13a.75.75 0 01-1.5 0v-9a.75.75 0 011.5 0zm5 0a.75.75 0 01-1.5 0v-9a.75.75 0 011.5 0zM22 4h-4.75a.25.25 0 01-.25-.25V2.5A2.5 2.5 0 0014.5 0h-5A2.5 2.5 0 007 2.5v1.25a.25.25 0 01-.25.25H2a1 1 0 000 2h20a1 1 0 000-2zM9 3.75V2.5a.5.5 0 01.5-.5h5a.5.5 0 01.5.5v1.25a.25.25 0 01-.25.25h-5.5A.25.25 0 019 3.75z"})})});const wF=({todos:e,deleteTodo:t})=>{if(e.length===0)return T.jsx(Sx,{colorScheme:"green",p:"4",m:"4",borderRadius:"lg",children:"No Todos, yay~"});const n={p:"4",w:"100%",maxW:{base:"90vw",sm:"80vw",lg:"50vw",xl:"40vw"},borderColor:"gray.100",borderWidth:"2px",borderRadius:"lg",alignItems:"stretch",divider:T.jsx(vx,{})};return T.jsx(hp,{...n,children:e.map(r=>T.jsxs(pp,{children:[T.jsx(gx,{children:r.body}),T.jsx(mx,{}),T.jsx(cp,{"aria-label":"Delete todo",icon:T.jsx(xF,{}),onClick:()=>t(r.id)})]},r.id))})},kF=({toggleTheme:e,theme:t})=>{const n={size:"lg",isRound:!0,alignSelf:"flex-end",icon:t==="light"?T.jsx(SF,{}):T.jsx(bF,{}),"aria-label":"Switch DarkMode"};return T.jsx(cp,{onClick:e,...n})},mp=ql("light");mp.debugLabel="themeAtom";const CF="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";let _F=(e=21)=>{let t="",n=crypto.getRandomValues(new Uint8Array(e));for(;e--;)t+=CF[n[e]&63];return t};const Oo=ql([]);Oo.debugLabel="todosAtom";const TF=ql(null,(e,t,n)=>{const r={id:_F(),body:n};t(Oo,[...e(Oo),r])}),PF=ql(null,(e,t,n)=>{const o=e(Oo).filter(i=>i.id!==n);t(Oo,o)});function EF(){const{colorMode:e,toggleColorMode:t}=fu(),[n,r]=Ld(mp),[o]=Ld(Oo),i=jd(TF),s=jd(PF);_.useEffect(()=>{r(e)},[e,r]);const a=()=>{r(l=>l==="light"?"dark":"light"),t()};return T.jsxs(hp,{p:4,children:[T.jsx(kF,{toggleTheme:a,theme:n}),T.jsx(bx,{size:"2xl",children:"Jotai-Todo App"}),T.jsx(yF,{addTodo:i}),T.jsx(wF,{todos:o,deleteTodo:s})]})}const $F=()=>{const[e]=Ld(mp);return T.jsxs(nF,{children:[T.jsx(N2,{initialColorMode:e}),T.jsx(EF,{})]})};z1(document.getElementById("root")).render(T.jsxs(_.StrictMode,{children:[T.jsx(k_,{}),T.jsx($F,{})]})); diff --git a/index.html b/index.html index 36773f0..5c4c5df 100644 --- a/index.html +++ b/index.html @@ -5,7 +5,7 @@ Vite + React + TS - +