From 6745697ba4f0efcbb9f24df7d3e5a8d50c872c2c Mon Sep 17 00:00:00 2001 From: kilee1230 Date: Fri, 27 Dec 2024 06:43:35 +0000 Subject: [PATCH] deploy: e02f6e7721923dff8c1128b4b9298cc8b30eaf49 --- .../{index-DPbQ1ZlT.js => index-BhxFwYh7.js} | 34 +++++++++---------- index.html | 2 +- 2 files changed, 18 insertions(+), 18 deletions(-) rename assets/{index-DPbQ1ZlT.js => index-BhxFwYh7.js} (51%) diff --git a/assets/index-DPbQ1ZlT.js b/assets/index-BhxFwYh7.js similarity index 51% rename from assets/index-DPbQ1ZlT.js rename to assets/index-BhxFwYh7.js index 7777d20..9b6780a 100644 --- a/assets/index-DPbQ1ZlT.js +++ b/assets/index-BhxFwYh7.js @@ -1,4 +1,4 @@ -function jw(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 Hs=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function vf(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var wy={exports:{}},Il={},ky={exports:{}},W={};/** +function Nw(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 Hs=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function xf(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Py={exports:{}},Il={},Ey={exports:{}},W={};/** * @license React * react.production.min.js * @@ -6,7 +6,7 @@ function jw(e,t){for(var n=0;n>>1,Te=z[pe];if(0>>1;peo(Xo,O))lto(cr,Xo)?(z[pe]=cr,z[lt]=O,pe=lt):(z[pe]=Xo,z[Kt]=O,pe=Kt);else if(lto(cr,O))z[pe]=cr,z[lt]=O,pe=lt;else break e}}return V}function o(z,V){var O=z.sortIndex-V.sortIndex;return O!==0?O:z.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,f=3,y=!1,v=!1,S=!1,_=typeof setTimeout=="function"?setTimeout:null,p=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(z){for(var V=n(u);V!==null;){if(V.callback===null)r(u);else if(V.startTime<=z)r(u),V.sortIndex=V.expirationTime,t(l,V);else break;V=n(u)}}function b(z){if(S=!1,m(z),!v)if(n(l)!==null)v=!0,Nr(C);else{var V=n(u);V!==null&&xe(b,V.startTime-z)}}function C(z,V){v=!1,S&&(S=!1,p(A),A=-1),y=!0;var O=f;try{for(m(V),d=n(l);d!==null&&(!(d.expirationTime>V)||z&&!N());){var pe=d.callback;if(typeof pe=="function"){d.callback=null,f=d.priorityLevel;var Te=pe(d.expirationTime<=V);V=e.unstable_now(),typeof Te=="function"?d.callback=Te:d===n(l)&&r(l),m(V)}else r(l);d=n(l)}if(d!==null)var J=!0;else{var Kt=n(u);Kt!==null&&xe(b,Kt.startTime-V),J=!1}return J}finally{d=null,f=O,y=!1}}var E=!1,k=null,A=-1,D=5,M=-1;function N(){return!(e.unstable_now()-Mz||125pe?(z.sortIndex=O,t(u,z),n(l)===null&&z===n(u)&&(S?(p(A),A=-1):S=!0,xe(b,O-pe))):(z.sortIndex=Te,t(l,z),v||y||(v=!0,Nr(C))),z},e.unstable_shouldYield=N,e.unstable_wrapCallback=function(z){var V=f;return function(){var O=f;f=V;try{return z.apply(this,arguments)}finally{f=O}}}})(Ly);Iy.exports=Ly;var ik=Iy.exports;/** + */(function(e){function t(z,V){var N=z.length;z.push(V);e:for(;0>>1,Te=z[pe];if(0>>1;peo(qo,N))lto(cr,qo)?(z[pe]=cr,z[lt]=N,pe=lt):(z[pe]=qo,z[Kt]=N,pe=Kt);else if(lto(cr,N))z[pe]=cr,z[lt]=N,pe=lt;else break e}}return V}function o(z,V){var N=z.sortIndex-V.sortIndex;return N!==0?N:z.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,f=3,y=!1,v=!1,S=!1,_=typeof setTimeout=="function"?setTimeout:null,p=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(z){for(var V=n(u);V!==null;){if(V.callback===null)r(u);else if(V.startTime<=z)r(u),V.sortIndex=V.expirationTime,t(l,V);else break;V=n(u)}}function b(z){if(S=!1,m(z),!v)if(n(l)!==null)v=!0,Nr(T);else{var V=n(u);V!==null&&xe(b,V.startTime-z)}}function T(z,V){v=!1,S&&(S=!1,p(A),A=-1),y=!0;var N=f;try{for(m(V),d=n(l);d!==null&&(!(d.expirationTime>V)||z&&!O());){var pe=d.callback;if(typeof pe=="function"){d.callback=null,f=d.priorityLevel;var Te=pe(d.expirationTime<=V);V=e.unstable_now(),typeof Te=="function"?d.callback=Te:d===n(l)&&r(l),m(V)}else r(l);d=n(l)}if(d!==null)var J=!0;else{var Kt=n(u);Kt!==null&&xe(b,Kt.startTime-V),J=!1}return J}finally{d=null,f=N,y=!1}}var E=!1,k=null,A=-1,D=5,M=-1;function O(){return!(e.unstable_now()-Mz||125pe?(z.sortIndex=N,t(u,z),n(l)===null&&z===n(u)&&(S?(p(A),A=-1):S=!0,xe(b,N-pe))):(z.sortIndex=Te,t(l,z),v||y||(v=!0,Nr(T))),z},e.unstable_shouldYield=O,e.unstable_wrapCallback=function(z){var V=f;return function(){var N=f;f=V;try{return z.apply(this,arguments)}finally{f=N}}}})(Oy);Vy.exports=Oy;var ck=Vy.exports;/** * @license React * react-dom.production.min.js * @@ -30,14 +30,14 @@ function jw(e,t){for(var n=0;n"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Oc=Object.prototype.hasOwnProperty,ak=/^[: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]*$/,qp={},Qp={};function lk(e){return Oc.call(Qp,e)?!0:Oc.call(qp,e)?!1:ak.test(e)?Qp[e]=!0:(qp[e]=!0,!1)}function uk(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 ck(e,t,n,r){if(t===null||typeof t>"u"||uk(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 et(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 Ve={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Ve[e]=new et(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Ve[t]=new et(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Ve[e]=new et(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Ve[e]=new et(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){Ve[e]=new et(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Ve[e]=new et(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Ve[e]=new et(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Ve[e]=new et(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Ve[e]=new et(e,5,!1,e.toLowerCase(),null,!1,!1)});var kf=/[\-:]([a-z])/g;function Cf(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(kf,Cf);Ve[t]=new et(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(kf,Cf);Ve[t]=new et(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(kf,Cf);Ve[t]=new et(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Ve[e]=new et(e,1,!1,e.toLowerCase(),null,!1,!1)});Ve.xlinkHref=new et("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Ve[e]=new et(e,1,!1,e.toLowerCase(),null,!0,!0)});function Tf(e,t,n,r){var o=Ve.hasOwnProperty(t)?Ve[t]:null;(o!==null?o.type!==0:r||!(2"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Wc=Object.prototype.hasOwnProperty,fk=/^[: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]*$/,em={},tm={};function hk(e){return Wc.call(tm,e)?!0:Wc.call(em,e)?!1:fk.test(e)?tm[e]=!0:(em[e]=!0,!1)}function pk(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 mk(e,t,n,r){if(t===null||typeof t>"u"||pk(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 et(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 Ve={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Ve[e]=new et(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Ve[t]=new et(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Ve[e]=new et(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Ve[e]=new et(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){Ve[e]=new et(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Ve[e]=new et(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Ve[e]=new et(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Ve[e]=new et(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Ve[e]=new et(e,5,!1,e.toLowerCase(),null,!1,!1)});var _f=/[\-:]([a-z])/g;function Pf(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(_f,Pf);Ve[t]=new et(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(_f,Pf);Ve[t]=new et(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(_f,Pf);Ve[t]=new et(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Ve[e]=new et(e,1,!1,e.toLowerCase(),null,!1,!1)});Ve.xlinkHref=new et("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Ve[e]=new et(e,1,!1,e.toLowerCase(),null,!0,!0)});function Ef(e,t,n,r){var o=Ve.hasOwnProperty(t)?Ve[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{Lu=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?mi(e):""}function dk(e){switch(e.tag){case 5:return mi(e.type);case 16:return mi("Lazy");case 13:return mi("Suspense");case 19:return mi("SuspenseList");case 0:case 2:case 15:return e=ju(e.type,!1),e;case 11:return e=ju(e.type.render,!1),e;case 1:return e=ju(e.type,!0),e;default:return""}}function Hc(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 Yr:return"Fragment";case Gr:return"Portal";case Nc:return"Profiler";case _f:return"StrictMode";case Wc:return"Suspense";case Uc:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case By:return(e.displayName||"Context")+".Consumer";case Fy:return(e._context.displayName||"Context")+".Provider";case Pf:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Ef:return t=e.displayName||null,t!==null?t:Hc(e.type)||"Memo";case Vn:t=e._payload,e=e._init;try{return Hc(e(t))}catch{}}return null}function fk(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 Hc(t);case 8:return t===_f?"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 nr(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Oy(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function hk(e){var t=Oy(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 Ys(e){e._valueTracker||(e._valueTracker=hk(e))}function Ny(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=Oy(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function Qa(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 Kc(e,t){var n=t.checked;return ve({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Jp(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=nr(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 Wy(e,t){t=t.checked,t!=null&&Tf(e,"checked",t,!1)}function Gc(e,t){Wy(e,t);var n=nr(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")?Yc(e,t.type,n):t.hasOwnProperty("defaultValue")&&Yc(e,t.type,nr(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function em(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 Yc(e,t,n){(t!=="number"||Qa(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var gi=Array.isArray;function yo(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o"+t.valueOf().toString()+"",t=Xs.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Xi(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Ei={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},pk=["Webkit","ms","Moz","O"];Object.keys(Ei).forEach(function(e){pk.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Ei[t]=Ei[e]})});function Gy(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Ei.hasOwnProperty(e)&&Ei[e]?(""+t).trim():t+"px"}function Yy(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,o=Gy(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}var mk=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 Qc(e,t){if(t){if(mk[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 Zc(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 Jc=null;function $f(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var ed=null,vo=null,So=null;function rm(e){if(e=_s(e)){if(typeof ed!="function")throw Error(R(280));var t=e.stateNode;t&&(t=Vl(t),ed(e.stateNode,e.type,t))}}function Xy(e){vo?So?So.push(e):So=[e]:vo=e}function qy(){if(vo){var e=vo,t=So;if(So=vo=null,rm(e),t)for(e=0;e>>=0,e===0?32:31-(_k(e)/Pk|0)|0}var qs=64,Qs=4194304;function yi(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 tl(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=yi(a):(i&=s,i!==0&&(r=yi(i)))}else s=n&~o,s!==0?r=yi(s):i!==0&&(r=yi(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 Cs(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Nt(t),e[t]=n}function Rk(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=Ai),fm=" ",hm=!1;function gv(e,t){switch(e){case"keyup":return iC.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function yv(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Xr=!1;function aC(e,t){switch(e){case"compositionend":return yv(t);case"keypress":return t.which!==32?null:(hm=!0,fm);case"textInput":return e=t.data,e===fm&&hm?null:e;default:return null}}function lC(e,t){if(Xr)return e==="compositionend"||!jf&&gv(e,t)?(e=pv(),_a=Df=Kn=null,Xr=!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=ym(n)}}function xv(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?xv(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function wv(){for(var e=window,t=Qa();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Qa(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 yC(e){var t=wv(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&xv(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=vm(n,i);var s=vm(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,sd=null,Mi=null,ad=!1;function Sm(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;ad||qr==null||qr!==Qa(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}),Mi&&ts(Mi,r)||(Mi=r,r=ol(sd,"onSelect"),0Jr||(e.current=hd[Jr],hd[Jr]=null,Jr--)}function re(e,t){Jr++,hd[Jr]=e.current,e.current=t}var rr={},Ge=ar(rr),ot=ar(!1),Mr=rr;function Ao(e,t){var n=e.type.contextTypes;if(!n)return rr;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 it(e){return e=e.childContextTypes,e!=null}function sl(){ae(ot),ae(Ge)}function _m(e,t,n){if(Ge.current!==rr)throw Error(R(168));re(Ge,t),re(ot,n)}function Rv(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,fk(e)||"Unknown",o));return ve({},n,r)}function al(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||rr,Mr=Ge.current,re(Ge,e),re(ot,ot.current),!0}function Pm(e,t,n){var r=e.stateNode;if(!r)throw Error(R(169));n?(e=Rv(e,t,Mr),r.__reactInternalMemoizedMergedChildContext=e,ae(ot),ae(Ge),re(Ge,e)):ae(ot),re(ot,n)}var pn=null,Ol=!1,Qu=!1;function Mv(e){pn===null?pn=[e]:pn.push(e)}function $C(e){Ol=!0,Mv(e)}function lr(){if(!Qu&&pn!==null){Qu=!0;var e=0,t=ee;try{var n=pn;for(ee=1;e>=s,o-=s,vn=1<<32-Nt(t)+o|n<A?(D=k,k=null):D=k.sibling;var M=f(p,k,m[A],b);if(M===null){k===null&&(k=D);break}e&&k&&M.alternate===null&&t(p,k),h=i(M,h,A),E===null?C=M:E.sibling=M,E=M,k=D}if(A===m.length)return n(p,k),fe&&gr(p,A),C;if(k===null){for(;AA?(D=k,k=null):D=k.sibling;var N=f(p,k,M.value,b);if(N===null){k===null&&(k=D);break}e&&k&&N.alternate===null&&t(p,k),h=i(N,h,A),E===null?C=N:E.sibling=N,E=N,k=D}if(M.done)return n(p,k),fe&&gr(p,A),C;if(k===null){for(;!M.done;A++,M=m.next())M=d(p,M.value,b),M!==null&&(h=i(M,h,A),E===null?C=M:E.sibling=M,E=M);return fe&&gr(p,A),C}for(k=r(p,k);!M.done;A++,M=m.next())M=y(k,p,A,M.value,b),M!==null&&(e&&M.alternate!==null&&k.delete(M.key===null?A:M.key),h=i(M,h,A),E===null?C=M:E.sibling=M,E=M);return e&&k.forEach(function(he){return t(p,he)}),fe&&gr(p,A),C}function _(p,h,m,b){if(typeof m=="object"&&m!==null&&m.type===Yr&&m.key===null&&(m=m.props.children),typeof m=="object"&&m!==null){switch(m.$$typeof){case Gs:e:{for(var C=m.key,E=h;E!==null;){if(E.key===C){if(C=m.type,C===Yr){if(E.tag===7){n(p,E.sibling),h=o(E,m.props.children),h.return=p,p=h;break e}}else if(E.elementType===C||typeof C=="object"&&C!==null&&C.$$typeof===Vn&&Am(C)===E.type){n(p,E.sibling),h=o(E,m.props),h.ref=ii(p,E,m),h.return=p,p=h;break e}n(p,E);break}else t(p,E);E=E.sibling}m.type===Yr?(h=Pr(m.props.children,p.mode,b,m.key),h.return=p,p=h):(b=Da(m.type,m.key,m.props,null,p.mode,b),b.ref=ii(p,h,m),b.return=p,p=b)}return s(p);case Gr:e:{for(E=m.key;h!==null;){if(h.key===E)if(h.tag===4&&h.stateNode.containerInfo===m.containerInfo&&h.stateNode.implementation===m.implementation){n(p,h.sibling),h=o(h,m.children||[]),h.return=p,p=h;break e}else{n(p,h);break}else t(p,h);h=h.sibling}h=ic(m,p.mode,b),h.return=p,p=h}return s(p);case Vn:return E=m._init,_(p,h,E(m._payload),b)}if(gi(m))return v(p,h,m,b);if(ei(m))return S(p,h,m,b);oa(p,m)}return typeof m=="string"&&m!==""||typeof m=="number"?(m=""+m,h!==null&&h.tag===6?(n(p,h.sibling),h=o(h,m),h.return=p,p=h):(n(p,h),h=oc(m,p.mode,b),h.return=p,p=h),s(p)):n(p,h)}return _}var Mo=Lv(!0),jv=Lv(!1),cl=ar(null),dl=null,no=null,Nf=null;function Wf(){Nf=no=dl=null}function Uf(e){var t=cl.current;ae(cl),e._currentValue=t}function gd(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 xo(e,t){dl=e,Nf=no=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(rt=!0),e.firstContext=null)}function Mt(e){var t=e._currentValue;if(Nf!==e)if(e={context:e,memoizedValue:t,next:null},no===null){if(dl===null)throw Error(R(308));no=e,dl.dependencies={lanes:0,firstContext:e}}else no=no.next=e;return t}var wr=null;function Hf(e){wr===null?wr=[e]:wr.push(e)}function Fv(e,t,n,r){var o=t.interleaved;return o===null?(n.next=n,Hf(t)):(n.next=o.next,o.next=n),t.interleaved=n,Pn(e,r)}function Pn(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 Kf(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Bv(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 xn(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Zn(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,K&2){var o=r.pending;return o===null?t.next=t:(t.next=o.next,o.next=t),r.pending=t,Pn(e,n)}return o=r.interleaved,o===null?(t.next=t,Hf(r)):(t.next=o.next,o.next=t),r.interleaved=t,Pn(e,n)}function Ea(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,Rf(e,n)}}function Rm(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 fl(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 f=a.lane,y=a.eventTime;if((r&f)===f){c!==null&&(c=c.next={eventTime:y,lane:0,tag:a.tag,payload:a.payload,callback:a.callback,next:null});e:{var v=e,S=a;switch(f=t,y=n,S.tag){case 1:if(v=S.payload,typeof v=="function"){d=v.call(y,d,f);break e}d=v;break e;case 3:v.flags=v.flags&-65537|128;case 0:if(v=S.payload,f=typeof v=="function"?v.call(y,d,f):v,f==null)break e;d=ve({},d,f);break e;case 2:On=!0}}a.callback!==null&&a.lane!==0&&(e.flags|=64,f=o.effects,f===null?o.effects=[a]:f.push(a))}else y={eventTime:y,lane:f,tag:a.tag,payload:a.payload,callback:a.callback,next:null},c===null?(u=c=y,l=d):c=c.next=y,s|=f;if(a=a.next,a===null){if(a=o.shared.pending,a===null)break;f=a,a=f.next,f.next=null,o.lastBaseUpdate=f,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);Ir|=s,e.lanes=s,e.memoizedState=d}}function Mm(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;tn?n:4,e(!0);var r=Ju.transition;Ju.transition={};try{e(!1),t()}finally{ee=n,Ju.transition=r}}function n1(){return zt().memoizedState}function zC(e,t,n){var r=er(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},r1(e))o1(t,n);else if(n=Fv(e,t,n,r),n!==null){var o=Qe();Wt(n,e,r,o),i1(n,t,r)}}function DC(e,t,n){var r=er(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(r1(e))o1(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,Ut(a,s)){var l=t.interleaved;l===null?(o.next=o,Hf(t)):(o.next=l.next,l.next=o),t.interleaved=o;return}}catch{}finally{}n=Fv(e,t,o,r),n!==null&&(o=Qe(),Wt(n,e,r,o),i1(n,t,r))}}function r1(e){var t=e.alternate;return e===ye||t!==null&&t===ye}function o1(e,t){zi=pl=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function i1(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Rf(e,n)}}var ml={readContext:Mt,useCallback:Oe,useContext:Oe,useEffect:Oe,useImperativeHandle:Oe,useInsertionEffect:Oe,useLayoutEffect:Oe,useMemo:Oe,useReducer:Oe,useRef:Oe,useState:Oe,useDebugValue:Oe,useDeferredValue:Oe,useTransition:Oe,useMutableSource:Oe,useSyncExternalStore:Oe,useId:Oe,unstable_isNewReconciler:!1},IC={readContext:Mt,useCallback:function(e,t){return qt().memoizedState=[e,t===void 0?null:t],e},useContext:Mt,useEffect:Dm,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Aa(4194308,4,Qv.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Aa(4194308,4,e,t)},useInsertionEffect:function(e,t){return Aa(4,2,e,t)},useMemo:function(e,t){var n=qt();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=qt();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,ye,e),[r.memoizedState,e]},useRef:function(e){var t=qt();return e={current:e},t.memoizedState=e},useState:zm,useDebugValue:eh,useDeferredValue:function(e){return qt().memoizedState=e},useTransition:function(){var e=zm(!1),t=e[0];return e=MC.bind(null,e[1]),qt().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=ye,o=qt();if(fe){if(n===void 0)throw Error(R(407));n=n()}else{if(n=t(),ze===null)throw Error(R(349));Dr&30||Wv(r,t,n)}o.memoizedState=n;var i={value:n,getSnapshot:t};return o.queue=i,Dm(Hv.bind(null,r,i,e),[e]),r.flags|=2048,us(9,Uv.bind(null,r,i,n,t),void 0,null),n},useId:function(){var e=qt(),t=ze.identifierPrefix;if(fe){var n=Sn,r=vn;n=(r&~(1<<32-Nt(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=as++,0")&&(l=l.replace("",e.displayName)),l}while(1<=s&&0<=a);break}}}finally{Fu=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?gi(e):""}function gk(e){switch(e.tag){case 5:return gi(e.type);case 16:return gi("Lazy");case 13:return gi("Suspense");case 19:return gi("SuspenseList");case 0:case 2:case 15:return e=Bu(e.type,!1),e;case 11:return e=Bu(e.type.render,!1),e;case 1:return e=Bu(e.type,!0),e;default:return""}}function Gc(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 Gr:return"Portal";case Uc:return"Profiler";case $f:return"StrictMode";case Hc:return"Suspense";case Kc:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Uy:return(e.displayName||"Context")+".Consumer";case Wy:return(e._context.displayName||"Context")+".Provider";case Af:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Rf:return t=e.displayName||null,t!==null?t:Gc(e.type)||"Memo";case Vn:t=e._payload,e=e._init;try{return Gc(e(t))}catch{}}return null}function yk(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 Gc(t);case 8:return t===$f?"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 nr(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Ky(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function vk(e){var t=Ky(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 Xs(e){e._valueTracker||(e._valueTracker=vk(e))}function Gy(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=Ky(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function Qa(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 Xc(e,t){var n=t.checked;return ve({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function rm(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=nr(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 Xy(e,t){t=t.checked,t!=null&&Ef(e,"checked",t,!1)}function Yc(e,t){Xy(e,t);var n=nr(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")?qc(e,t.type,n):t.hasOwnProperty("defaultValue")&&qc(e,t.type,nr(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function om(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 qc(e,t,n){(t!=="number"||Qa(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var yi=Array.isArray;function yo(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o"+t.valueOf().toString()+"",t=Ys.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function qi(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var $i={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},Sk=["Webkit","ms","Moz","O"];Object.keys($i).forEach(function(e){Sk.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),$i[t]=$i[e]})});function Zy(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||$i.hasOwnProperty(e)&&$i[e]?(""+t).trim():t+"px"}function Jy(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,o=Zy(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}var bk=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 Jc(e,t){if(t){if(bk[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 ed(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 td=null;function Mf(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var nd=null,vo=null,So=null;function am(e){if(e=_s(e)){if(typeof nd!="function")throw Error(R(280));var t=e.stateNode;t&&(t=Vl(t),nd(e.stateNode,e.type,t))}}function ev(e){vo?So?So.push(e):So=[e]:vo=e}function tv(){if(vo){var e=vo,t=So;if(So=vo=null,am(e),t)for(e=0;e>>=0,e===0?32:31-(Rk(e)/Mk|0)|0}var qs=64,Qs=4194304;function vi(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 tl(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=vi(a):(i&=s,i!==0&&(r=vi(i)))}else s=n&~o,s!==0?r=vi(s):i!==0&&(r=vi(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 Cs(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Nt(t),e[t]=n}function Lk(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=Ri),gm=" ",ym=!1;function xv(e,t){switch(e){case"keyup":return cC.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function wv(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Yr=!1;function fC(e,t){switch(e){case"compositionend":return wv(t);case"keypress":return t.which!==32?null:(ym=!0,gm);case"textInput":return e=t.data,e===gm&&ym?null:e;default:return null}}function hC(e,t){if(Yr)return e==="compositionend"||!Vf&&xv(e,t)?(e=Sv(),_a=jf=Kn=null,Yr=!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=xm(n)}}function _v(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?_v(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Pv(){for(var e=window,t=Qa();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Qa(e.document)}return t}function Of(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 wC(e){var t=Pv(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&_v(n.ownerDocument.documentElement,n)){if(r!==null&&Of(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=wm(n,i);var s=wm(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,ld=null,zi=null,ud=!1;function km(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;ud||qr==null||qr!==Qa(r)||(r=qr,"selectionStart"in r&&Of(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}),zi&&ns(zi,r)||(zi=r,r=ol(ld,"onSelect"),0Jr||(e.current=md[Jr],md[Jr]=null,Jr--)}function re(e,t){Jr++,md[Jr]=e.current,e.current=t}var rr={},Ge=ar(rr),ot=ar(!1),Mr=rr;function Ao(e,t){var n=e.type.contextTypes;if(!n)return rr;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 it(e){return e=e.childContextTypes,e!=null}function sl(){ae(ot),ae(Ge)}function Am(e,t,n){if(Ge.current!==rr)throw Error(R(168));re(Ge,t),re(ot,n)}function Lv(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,yk(e)||"Unknown",o));return ve({},n,r)}function al(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||rr,Mr=Ge.current,re(Ge,e),re(ot,ot.current),!0}function Rm(e,t,n){var r=e.stateNode;if(!r)throw Error(R(169));n?(e=Lv(e,t,Mr),r.__reactInternalMemoizedMergedChildContext=e,ae(ot),ae(Ge),re(Ge,e)):ae(ot),re(ot,n)}var pn=null,Ol=!1,Ju=!1;function jv(e){pn===null?pn=[e]:pn.push(e)}function DC(e){Ol=!0,jv(e)}function lr(){if(!Ju&&pn!==null){Ju=!0;var e=0,t=ee;try{var n=pn;for(ee=1;e>=s,o-=s,vn=1<<32-Nt(t)+o|n<A?(D=k,k=null):D=k.sibling;var M=f(p,k,m[A],b);if(M===null){k===null&&(k=D);break}e&&k&&M.alternate===null&&t(p,k),h=i(M,h,A),E===null?T=M:E.sibling=M,E=M,k=D}if(A===m.length)return n(p,k),fe&&gr(p,A),T;if(k===null){for(;AA?(D=k,k=null):D=k.sibling;var O=f(p,k,M.value,b);if(O===null){k===null&&(k=D);break}e&&k&&O.alternate===null&&t(p,k),h=i(O,h,A),E===null?T=O:E.sibling=O,E=O,k=D}if(M.done)return n(p,k),fe&&gr(p,A),T;if(k===null){for(;!M.done;A++,M=m.next())M=d(p,M.value,b),M!==null&&(h=i(M,h,A),E===null?T=M:E.sibling=M,E=M);return fe&&gr(p,A),T}for(k=r(p,k);!M.done;A++,M=m.next())M=y(k,p,A,M.value,b),M!==null&&(e&&M.alternate!==null&&k.delete(M.key===null?A:M.key),h=i(M,h,A),E===null?T=M:E.sibling=M,E=M);return e&&k.forEach(function(he){return t(p,he)}),fe&&gr(p,A),T}function _(p,h,m,b){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 Gs:e:{for(var T=m.key,E=h;E!==null;){if(E.key===T){if(T=m.type,T===Xr){if(E.tag===7){n(p,E.sibling),h=o(E,m.props.children),h.return=p,p=h;break e}}else if(E.elementType===T||typeof T=="object"&&T!==null&&T.$$typeof===Vn&&Dm(T)===E.type){n(p,E.sibling),h=o(E,m.props),h.ref=si(p,E,m),h.return=p,p=h;break e}n(p,E);break}else t(p,E);E=E.sibling}m.type===Xr?(h=Pr(m.props.children,p.mode,b,m.key),h.return=p,p=h):(b=Da(m.type,m.key,m.props,null,p.mode,b),b.ref=si(p,h,m),b.return=p,p=b)}return s(p);case Gr:e:{for(E=m.key;h!==null;){if(h.key===E)if(h.tag===4&&h.stateNode.containerInfo===m.containerInfo&&h.stateNode.implementation===m.implementation){n(p,h.sibling),h=o(h,m.children||[]),h.return=p,p=h;break e}else{n(p,h);break}else t(p,h);h=h.sibling}h=ac(m,p.mode,b),h.return=p,p=h}return s(p);case Vn:return E=m._init,_(p,h,E(m._payload),b)}if(yi(m))return v(p,h,m,b);if(ti(m))return S(p,h,m,b);oa(p,m)}return typeof m=="string"&&m!==""||typeof m=="number"?(m=""+m,h!==null&&h.tag===6?(n(p,h.sibling),h=o(h,m),h.return=p,p=h):(n(p,h),h=sc(m,p.mode,b),h.return=p,p=h),s(p)):n(p,h)}return _}var Mo=Ov(!0),Nv=Ov(!1),cl=ar(null),dl=null,no=null,Hf=null;function Kf(){Hf=no=dl=null}function Gf(e){var t=cl.current;ae(cl),e._currentValue=t}function vd(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 xo(e,t){dl=e,Hf=no=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(rt=!0),e.firstContext=null)}function Mt(e){var t=e._currentValue;if(Hf!==e)if(e={context:e,memoizedValue:t,next:null},no===null){if(dl===null)throw Error(R(308));no=e,dl.dependencies={lanes:0,firstContext:e}}else no=no.next=e;return t}var wr=null;function Xf(e){wr===null?wr=[e]:wr.push(e)}function Wv(e,t,n,r){var o=t.interleaved;return o===null?(n.next=n,Xf(t)):(n.next=o.next,o.next=n),t.interleaved=n,Pn(e,r)}function Pn(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 Yf(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Uv(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 xn(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Zn(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,K&2){var o=r.pending;return o===null?t.next=t:(t.next=o.next,o.next=t),r.pending=t,Pn(e,n)}return o=r.interleaved,o===null?(t.next=t,Xf(r)):(t.next=o.next,o.next=t),r.interleaved=t,Pn(e,n)}function Ea(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,Df(e,n)}}function Im(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 fl(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 f=a.lane,y=a.eventTime;if((r&f)===f){c!==null&&(c=c.next={eventTime:y,lane:0,tag:a.tag,payload:a.payload,callback:a.callback,next:null});e:{var v=e,S=a;switch(f=t,y=n,S.tag){case 1:if(v=S.payload,typeof v=="function"){d=v.call(y,d,f);break e}d=v;break e;case 3:v.flags=v.flags&-65537|128;case 0:if(v=S.payload,f=typeof v=="function"?v.call(y,d,f):v,f==null)break e;d=ve({},d,f);break e;case 2:On=!0}}a.callback!==null&&a.lane!==0&&(e.flags|=64,f=o.effects,f===null?o.effects=[a]:f.push(a))}else y={eventTime:y,lane:f,tag:a.tag,payload:a.payload,callback:a.callback,next:null},c===null?(u=c=y,l=d):c=c.next=y,s|=f;if(a=a.next,a===null){if(a=o.shared.pending,a===null)break;f=a,a=f.next,f.next=null,o.lastBaseUpdate=f,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);Ir|=s,e.lanes=s,e.memoizedState=d}}function Lm(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;tn?n:4,e(!0);var r=tc.transition;tc.transition={};try{e(!1),t()}finally{ee=n,tc.transition=r}}function a1(){return zt().memoizedState}function FC(e,t,n){var r=er(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},l1(e))u1(t,n);else if(n=Wv(e,t,n,r),n!==null){var o=Qe();Wt(n,e,r,o),c1(n,t,r)}}function BC(e,t,n){var r=er(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(l1(e))u1(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,Ut(a,s)){var l=t.interleaved;l===null?(o.next=o,Xf(t)):(o.next=l.next,l.next=o),t.interleaved=o;return}}catch{}finally{}n=Wv(e,t,o,r),n!==null&&(o=Qe(),Wt(n,e,r,o),c1(n,t,r))}}function l1(e){var t=e.alternate;return e===ye||t!==null&&t===ye}function u1(e,t){Di=pl=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function c1(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Df(e,n)}}var ml={readContext:Mt,useCallback:Oe,useContext:Oe,useEffect:Oe,useImperativeHandle:Oe,useInsertionEffect:Oe,useLayoutEffect:Oe,useMemo:Oe,useReducer:Oe,useRef:Oe,useState:Oe,useDebugValue:Oe,useDeferredValue:Oe,useTransition:Oe,useMutableSource:Oe,useSyncExternalStore:Oe,useId:Oe,unstable_isNewReconciler:!1},VC={readContext:Mt,useCallback:function(e,t){return qt().memoizedState=[e,t===void 0?null:t],e},useContext:Mt,useEffect:Fm,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Aa(4194308,4,n1.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Aa(4194308,4,e,t)},useInsertionEffect:function(e,t){return Aa(4,2,e,t)},useMemo:function(e,t){var n=qt();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=qt();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=FC.bind(null,ye,e),[r.memoizedState,e]},useRef:function(e){var t=qt();return e={current:e},t.memoizedState=e},useState:jm,useDebugValue:rh,useDeferredValue:function(e){return qt().memoizedState=e},useTransition:function(){var e=jm(!1),t=e[0];return e=jC.bind(null,e[1]),qt().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=ye,o=qt();if(fe){if(n===void 0)throw Error(R(407));n=n()}else{if(n=t(),ze===null)throw Error(R(349));Dr&30||Xv(r,t,n)}o.memoizedState=n;var i={value:n,getSnapshot:t};return o.queue=i,Fm(qv.bind(null,r,i,e),[e]),r.flags|=2048,cs(9,Yv.bind(null,r,i,n,t),void 0,null),n},useId:function(){var e=qt(),t=ze.identifierPrefix;if(fe){var n=Sn,r=vn;n=(r&~(1<<32-Nt(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=ls++,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[tn]=t,e[os]=r,m1(e,t,!1,!1),t.stateNode=e;e:{switch(s=Zc(n,r),n){case"dialog":ie("cancel",e),ie("close",e),o=r;break;case"iframe":case"object":case"embed":ie("load",e),o=r;break;case"video":case"audio":for(o=0;oIo&&(t.flags|=128,r=!0,si(i,!1),t.lanes=4194304)}else{if(!r)if(e=hl(s),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),si(i,!0),i.tail===null&&i.tailMode==="hidden"&&!s.alternate&&!fe)return Ne(t),null}else 2*ke()-i.renderingStartTime>Io&&n!==1073741824&&(t.flags|=128,r=!0,si(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=ke(),t.sibling=null,n=me.current,re(me,r?n&1|2:n&1),t):(Ne(t),null);case 22:case 23:return sh(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?ct&1073741824&&(Ne(t),t.subtreeFlags&6&&(t.flags|=8192)):Ne(t),null;case 24:return null;case 25:return null}throw Error(R(156,t.tag))}function WC(e,t){switch(Vf(t),t.tag){case 1:return it(t.type)&&sl(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return zo(),ae(ot),ae(Ge),Xf(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return Yf(t),null;case 13:if(ae(me),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 ae(me),null;case 4:return zo(),null;case 10:return Uf(t.type._context),null;case 22:case 23:return sh(),null;case 24:return null;default:return null}}var sa=!1,He=!1,UC=typeof WeakSet=="function"?WeakSet:Set,I=null;function ro(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){be(e,t,r)}else n.current=null}function Td(e,t,n){try{n()}catch(r){be(e,t,r)}}var Hm=!1;function HC(e,t){if(ld=nl,e=wv(),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,f=null;t:for(;;){for(var y;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),(y=d.firstChild)!==null;)f=d,d=y;for(;;){if(d===e)break t;if(f===n&&++u===o&&(a=s),f===i&&++c===r&&(l=s),(y=d.nextSibling)!==null)break;d=f,f=d.parentNode}d=y}n=a===-1||l===-1?null:{start:a,end:l}}else n=null}n=n||{start:0,end:0}}else n=null;for(ud={focusedElem:e,selectionRange:n},nl=!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 v=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(v!==null){var S=v.memoizedProps,_=v.memoizedState,p=t.stateNode,h=p.getSnapshotBeforeUpdate(t.elementType===t.type?S:Ft(t.type,S),_);p.__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(b){be(t,t.return,b)}if(e=t.sibling,e!==null){e.return=t.return,I=e;break}I=t.return}return v=Hm,Hm=!1,v}function Di(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&&Td(t,n,i)}o=o.next}while(o!==r)}}function Ul(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 _d(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 v1(e){var t=e.alternate;t!==null&&(e.alternate=null,v1(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[tn],delete t[os],delete t[fd],delete t[PC],delete t[EC])),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 S1(e){return e.tag===5||e.tag===3||e.tag===4}function Km(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||S1(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 Pd(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=il));else if(r!==4&&(e=e.child,e!==null))for(Pd(e,t,n),e=e.sibling;e!==null;)Pd(e,t,n),e=e.sibling}function Ed(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(Ed(e,t,n),e=e.sibling;e!==null;)Ed(e,t,n),e=e.sibling}var Le=null,Bt=!1;function Ln(e,t,n){for(n=n.child;n!==null;)b1(e,t,n),n=n.sibling}function b1(e,t,n){if(on&&typeof on.onCommitFiberUnmount=="function")try{on.onCommitFiberUnmount(Ll,n)}catch{}switch(n.tag){case 5:He||ro(n,t);case 6:var r=Le,o=Bt;Le=null,Ln(e,t,n),Le=r,Bt=o,Le!==null&&(Bt?(e=Le,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):Le.removeChild(n.stateNode));break;case 18:Le!==null&&(Bt?(e=Le,n=n.stateNode,e.nodeType===8?qu(e.parentNode,n):e.nodeType===1&&qu(e,n),Ji(e)):qu(Le,n.stateNode));break;case 4:r=Le,o=Bt,Le=n.stateNode.containerInfo,Bt=!0,Ln(e,t,n),Le=r,Bt=o;break;case 0:case 11:case 14:case 15:if(!He&&(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)&&Td(n,t,s),o=o.next}while(o!==r)}Ln(e,t,n);break;case 1:if(!He&&(ro(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(a){be(n,t,a)}Ln(e,t,n);break;case 21:Ln(e,t,n);break;case 22:n.mode&1?(He=(r=He)||n.memoizedState!==null,Ln(e,t,n),He=r):Ln(e,t,n);break;default:Ln(e,t,n)}}function Gm(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new UC),t.forEach(function(r){var o=e2.bind(null,e,r);n.has(r)||(n.add(r),r.then(o,o))})}}function It(e,t){var n=t.deletions;if(n!==null)for(var r=0;ro&&(o=s),r&=~i}if(r=o,r=ke()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*GC(r/1960))-r,10e?16:e,Gn===null)var r=!1;else{if(e=Gn,Gn=null,vl=0,K&6)throw Error(R(331));var o=K;for(K|=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;lke()-oh?_r(e,0):rh|=n),st(e,t)}function E1(e,t){t===0&&(e.mode&1?(t=Qs,Qs<<=1,!(Qs&130023424)&&(Qs=4194304)):t=1);var n=Qe();e=Pn(e,t),e!==null&&(Cs(e,t,n),st(e,n))}function JC(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),E1(e,n)}function e2(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),E1(e,n)}var $1;$1=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||ot.current)rt=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return rt=!1,OC(e,t,n);rt=!!(e.flags&131072)}else rt=!1,fe&&t.flags&1048576&&zv(t,ul,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Ra(e,t),e=t.pendingProps;var o=Ao(t,Ge.current);xo(t,n),o=Qf(null,t,r,e,o,n);var i=Zf();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,it(r)?(i=!0,al(t)):i=!1,t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,Kf(t),o.updater=Wl,t.stateNode=o,o._reactInternals=t,vd(t,r,e,n),t=xd(null,t,r,!0,i,n)):(t.tag=0,fe&&i&&Bf(t),Xe(null,t,o,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Ra(e,t),e=t.pendingProps,o=r._init,r=o(r._payload),t.type=r,o=t.tag=n2(r),e=Ft(r,e),o){case 0:t=bd(null,t,r,e,n);break e;case 1:t=Nm(null,t,r,e,n);break e;case 11:t=Vm(null,t,r,e,n);break e;case 14:t=Om(null,t,r,Ft(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:Ft(r,o),bd(e,t,r,o,n);case 1:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Ft(r,o),Nm(e,t,r,o,n);case 3:e:{if(f1(t),e===null)throw Error(R(387));r=t.pendingProps,i=t.memoizedState,o=i.element,Bv(e,t),fl(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=Wm(e,t,r,n,o);break e}else if(r!==o){o=Do(Error(R(424)),t),t=Wm(e,t,r,n,o);break e}else for(dt=Qn(t.stateNode.containerInfo.firstChild),ft=t,fe=!0,Vt=null,n=jv(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Ro(),r===o){t=En(e,t,n);break e}Xe(e,t,r,n)}t=t.child}return t;case 5:return Vv(t),e===null&&md(t),r=t.type,o=t.pendingProps,i=e!==null?e.memoizedProps:null,s=o.children,cd(r,o)?s=null:i!==null&&cd(r,i)&&(t.flags|=32),d1(e,t),Xe(e,t,s,n),t.child;case 6:return e===null&&md(t),null;case 13:return h1(e,t,n);case 4:return Gf(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Mo(t,null,r,n):Xe(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Ft(r,o),Vm(e,t,r,o,n);case 7:return Xe(e,t,t.pendingProps,n),t.child;case 8:return Xe(e,t,t.pendingProps.children,n),t.child;case 12:return Xe(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,re(cl,r._currentValue),r._currentValue=s,i!==null)if(Ut(i.value,s)){if(i.children===o.children&&!ot.current){t=En(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=xn(-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),gd(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),gd(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}Xe(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,xo(t,n),o=Mt(o),r=r(o),t.flags|=1,Xe(e,t,r,n),t.child;case 14:return r=t.type,o=Ft(r,t.pendingProps),o=Ft(r.type,o),Om(e,t,r,o,n);case 15:return u1(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Ft(r,o),Ra(e,t),t.tag=1,it(r)?(e=!0,al(t)):e=!1,xo(t,n),s1(t,r,o),vd(t,r,o,n),xd(null,t,r,!0,e,n);case 19:return p1(e,t,n);case 22:return c1(e,t,n)}throw Error(R(156,t.tag))};function A1(e,t){return rv(e,t)}function t2(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 Et(e,t,n,r){return new t2(e,t,n,r)}function lh(e){return e=e.prototype,!(!e||!e.isReactComponent)}function n2(e){if(typeof e=="function")return lh(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Pf)return 11;if(e===Ef)return 14}return 2}function tr(e,t){var n=e.alternate;return n===null?(n=Et(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 Da(e,t,n,r,o,i){var s=2;if(r=e,typeof e=="function")lh(e)&&(s=1);else if(typeof e=="string")s=5;else e:switch(e){case Yr:return Pr(n.children,o,i,t);case _f:s=8,o|=8;break;case Nc:return e=Et(12,n,t,o|2),e.elementType=Nc,e.lanes=i,e;case Wc:return e=Et(13,n,t,o),e.elementType=Wc,e.lanes=i,e;case Uc:return e=Et(19,n,t,o),e.elementType=Uc,e.lanes=i,e;case Vy:return Kl(n,o,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Fy:s=10;break e;case By:s=9;break e;case Pf:s=11;break e;case Ef:s=14;break e;case Vn:s=16,r=null;break e}throw Error(R(130,e==null?e:typeof e,""))}return t=Et(s,n,t,o),t.elementType=e,t.type=r,t.lanes=i,t}function Pr(e,t,n,r){return e=Et(7,e,r,t),e.lanes=n,e}function Kl(e,t,n,r){return e=Et(22,e,r,t),e.elementType=Vy,e.lanes=n,e.stateNode={isHidden:!1},e}function oc(e,t,n){return e=Et(6,e,null,t),e.lanes=n,e}function ic(e,t,n){return t=Et(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function r2(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=Bu(0),this.expirationTimes=Bu(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Bu(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function uh(e,t,n,r,o,i,s,a,l){return e=new r2(e,t,n,a,l),t===1?(t=1,i===!0&&(t|=8)):t=0,i=Et(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Kf(i),e}function o2(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(D1)}catch(e){console.error(e)}}D1(),Dy.exports=vt;var hh=Dy.exports,I1,tg=hh;I1=tg.createRoot,tg.hydrateRoot;const $n={BASE_URL:"/jotai-todo/",DEV:!1,MODE:"production",PROD:!0,SSR:!1};let u2=0;function Ql(e,t){const n=`atom${++u2}`,r={toString(){return($n?"production":void 0)!=="production"&&this.debugLabel?n+":"+this.debugLabel:n}};return typeof e=="function"?r.read=e:(r.init=e,r.read=c2,r.write=d2),t&&(r.write=t),r}function c2(e){return e(this)}function d2(e,t,n){return t(this,typeof n=="function"?n(e(this)):n)}const ng=(e,t)=>e.unstable_is?e.unstable_is(t):t===e,zd=e=>"init"in e,sc=e=>!!e.write,xl=new WeakMap,Dd=e=>{var t;return Id(e)&&!((t=xl.get(e))!=null&&t[1])},f2=(e,t)=>{const n=xl.get(e);if(n)n[1]=!0,n[0].forEach(r=>r(t));else if(($n?"production":void 0)!=="production")throw new Error("[Bug] cancelable promise not found")},h2=e=>{if(xl.has(e))return;const t=[new Set,!1];xl.set(e,t);const n=()=>{t[1]=!0};e.then(n,n),e.onCancel=r=>{t[0].add(r)}},Id=e=>typeof(e==null?void 0:e.then)=="function",rg=e=>"v"in e||"e"in e,ua=e=>{if("e"in e)throw e.e;if(($n?"production":void 0)!=="production"&&!("v"in e))throw new Error("[Bug] atom state is not initialized");return e.v},L1=(e,t,n)=>{n.p.has(e)||(n.p.add(e),t.then(()=>{n.p.delete(e)},()=>{n.p.delete(e)}))},og=(e,t,n,r,o)=>{var i;if(($n?"production":void 0)!=="production"&&r===t)throw new Error("[Bug] atom cannot depend on itself");n.d.set(r,o.n),Dd(n.v)&&L1(t,n.v,o),(i=o.m)==null||i.t.add(t),e&&p2(e,r,t)},li=()=>({D:new Map,H:new Set,M:new Set,L:new Set}),ji=(e,t,n)=>{e[t].add(n)},ig=(e,t,n)=>{e.D.has(t)||(e.D.set(t,new Set),ji(e,"M",()=>{var r;(r=n.m)==null||r.l.forEach(o=>ji(e,"M",o))}))},p2=(e,t,n)=>{const r=e.D.get(t);r&&r.add(n)},m2=(e,t)=>e.D.get(t),pr=e=>{let t,n=!1;const r=o=>{try{o()}catch(i){n||(t=i,n=!0)}};for(;e.H.size||e.M.size||e.L.size;)e.D.clear(),e.H.forEach(r),e.H.clear(),e.M.forEach(r),e.M.clear(),e.L.forEach(r),e.L.clear();if(n)throw t},j1=(...[e,t,n,r])=>{const o=(p,h,m)=>{const b="v"in h,C=h.v,E=Dd(h.v)?h.v:null;if(Id(m)){h2(m);for(const k of h.d.keys())L1(p,m,e(k));h.v=m}else h.v=m;delete h.e,delete h.x,(!b||!Object.is(C,h.v))&&(++h.n,E&&f2(E,m))},i=(p,h)=>{var m;const b=e(h);if(rg(b)&&(b.m&&!b.x||Array.from(b.d).every(([M,N])=>i(p,M).n===N)))return b;b.d.clear();let C=!0;const E=M=>{if(ng(h,M)){const he=e(M);if(!rg(he))if(zd(M))o(M,he,M.init);else throw new Error("no atom init");return ua(he)}const N=i(p,M);try{return ua(N)}finally{if(C)og(p,h,b,M,N);else{const he=li();og(he,h,b,M,N),d(he,h,b),pr(he)}}};let k,A;const D={get signal(){return k||(k=new AbortController),k.signal},get setSelf(){return($n?"production":void 0)!=="production"&&!sc(h)&&console.warn("setSelf function cannot be used with read-only atom"),!A&&sc(h)&&(A=(...M)=>{if(($n?"production":void 0)!=="production"&&C&&console.warn("setSelf function cannot be called in sync"),!C)return c(h,...M)}),A}};try{const M=t(h,E,D);if(o(h,b,M),Id(M)){(m=M.onCancel)==null||m.call(M,()=>k==null?void 0:k.abort());const N=()=>{if(b.m){const he=li();d(he,h,b),pr(he)}};M.then(N,N)}return b}catch(M){return delete b.v,b.e=M,delete b.x,++b.n,b}finally{C=!1}},s=p=>ua(i(void 0,p)),a=(p,h,m)=>{var b,C;const E=new Map;for(const k of((b=m.m)==null?void 0:b.t)||[]){const A=e(k);A.m&&E.set(k,A)}for(const k of m.p)E.set(k,e(k));return(C=m2(p,h))==null||C.forEach(k=>{E.set(k,e(k))}),E},l=(p,h,m)=>{const b=[],C=new Set,E=new Set,k=[[h,m]];for(;k.length>0;){const[A,D]=k[k.length-1];if(E.has(A)){k.pop();continue}if(C.has(A)){b.push([A,D,D.n]),E.add(A),D.x=!0,k.pop();continue}C.add(A);for(const[M,N]of a(p,A,D))A!==M&&!C.has(M)&&k.push([M,N])}ji(p,"H",()=>{const A=new Set([h]);for(let D=b.length-1;D>=0;--D){const[M,N,he]=b[D];let xt=!1;for(const Ht of N.d.keys())if(Ht!==M&&A.has(Ht)){xt=!0;break}xt&&(i(p,M),d(p,M,N),he!==N.n&&(ig(p,M,N),A.add(M))),delete N.x}})},u=(p,h,...m)=>{let b=!0;const C=k=>ua(i(p,k)),E=(k,...A)=>{const D=e(k);try{if(ng(h,k)){if(!zd(k))throw new Error("atom not writable");const M=D.n,N=A[0];o(k,D,N),d(p,k,D),M!==D.n&&(ig(p,k,D),l(p,k,D));return}else return u(p,k,...A)}finally{b||pr(p)}};try{return n(h,C,E,...m)}finally{b=!1}},c=(p,...h)=>{const m=li();try{return u(m,p,...h)}finally{pr(m)}},d=(p,h,m)=>{if(m.m&&!Dd(m.v)){for(const b of m.d.keys())m.m.d.has(b)||(f(p,b,e(b)).t.add(h),m.m.d.add(b));for(const b of m.m.d||[])if(!m.d.has(b)){m.m.d.delete(b);const C=y(p,b,e(b));C==null||C.t.delete(h)}}},f=(p,h,m)=>{if(!m.m){i(p,h);for(const b of m.d.keys())f(p,b,e(b)).t.add(h);if(m.m={l:new Set,d:new Set(m.d.keys()),t:new Set},sc(h)){const b=m.m;let C;const E=(k,A)=>{let D=!0;C=(...M)=>{try{return u(k,h,...M)}finally{D||pr(k)}};try{return A()}finally{D=!1}};ji(p,"L",()=>{const k=E(p,()=>r(h,(...A)=>C(...A)));k&&(b.u=A=>E(A,k))})}}return m.m},y=(p,h,m)=>{if(m.m&&!m.m.l.size&&!Array.from(m.m.t).some(b=>{var C;return(C=e(b).m)==null?void 0:C.d.has(h)})){const b=m.m.u;b&&ji(p,"L",()=>b(p)),delete m.m;for(const C of m.d.keys()){const E=y(p,C,e(C));E==null||E.t.delete(h)}return}return m.m};return{get:s,set:c,sub:(p,h)=>{const m=li(),b=e(p),E=f(m,p,b).l;return E.add(h),pr(m),()=>{E.delete(h);const k=li();y(k,p,b),pr(k)}},unstable_derive:p=>j1(...p(e,t,n,r))}},g2=e=>{const t=new WeakMap,n=new Set;let r,o=0;const i=e.unstable_derive((l,u,c,d)=>(r=l,[f=>{let y=t.get(f);if(!y){const v=l(f);y=new Proxy(v,{set(S,_,p){return _==="m"&&n.add(f),Reflect.set(S,_,p)},deleteProperty(S,_){return _==="m"&&n.delete(f),Reflect.deleteProperty(S,_)}}),t.set(f,y)}return y},u,(f,y,v,...S)=>o?v(f,...S):c(f,y,v,...S),d])),s=i.set;return Object.assign(i,{dev4_get_internal_weak_map:()=>({get:l=>{const u=r(l);if(u.n!==0)return u}}),dev4_get_mounted_atoms:()=>n,dev4_restore_atoms:l=>{s({read:()=>null,write:(c,d)=>{++o;try{for(const[f,y]of l)zd(f)&&d(f,y)}finally{--o}}})}})},y2=()=>{const e=new WeakMap,n=j1(r=>{if(($n?"production":void 0)!=="production"&&!r)throw new Error("Atom is undefined or null");let o=e.get(r);return o||(o={d:new Map,p:new Set,n:0},e.set(r,o)),o},(r,...o)=>r.read(...o),(r,...o)=>r.write(...o),(r,...o)=>{var i;return(i=r.onMount)==null?void 0:i.call(r,...o)});return($n?"production":void 0)!=="production"?g2(n):n};let ui;const v2=()=>(ui||(ui=y2(),($n?"production":void 0)!=="production"&&(globalThis.__JOTAI_DEFAULT_STORE__||(globalThis.__JOTAI_DEFAULT_STORE__=ui),globalThis.__JOTAI_DEFAULT_STORE__!==ui&&console.warn("Detected multiple Jotai instances. It may cause unexpected behavior with the default store. https://github.com/pmndrs/jotai/discussions/2044"))),ui),F1={BASE_URL:"/jotai-todo/",DEV:!1,MODE:"production",PROD:!0,SSR:!1},S2=T.createContext(void 0),B1=e=>T.useContext(S2)||v2(),V1=e=>typeof(e==null?void 0:e.then)=="function",b2=e=>{e.status="pending",e.then(t=>{e.status="fulfilled",e.value=t},t=>{e.status="rejected",e.reason=t})},x2=My.use||(e=>{if(e.status==="pending")throw e;if(e.status==="fulfilled")return e.value;throw e.status==="rejected"?e.reason:(b2(e),e)}),ac=new WeakMap,w2=e=>{let t=ac.get(e);return t||(t=new Promise((n,r)=>{let o=e;const i=l=>u=>{o===l&&n(u)},s=l=>u=>{o===l&&r(u)},a=l=>{"onCancel"in l&&typeof l.onCancel=="function"&&l.onCancel(u=>{if((F1?"production":void 0)!=="production"&&u===l)throw new Error("[Bug] p is not updated even after cancelation");V1(u)?(ac.set(u,t),o=u,u.then(i(u),s(u)),a(u)):n(u)})};e.then(i(e),s(e)),a(e)}),ac.set(e,t)),t};function k2(e,t){const n=B1(),[[r,o,i],s]=T.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;if((o!==n||i!==e)&&(s(),a=n.get(e)),T.useEffect(()=>{const u=n.sub(e,()=>{s()});return s(),u},[n,e,void 0]),T.useDebugValue(a),V1(a)){const u=w2(a);return x2(u)}return a}function Ld(e,t){const n=B1();return T.useCallback((...o)=>{if((F1?"production":void 0)!=="production"&&!("write"in e))throw new Error("not writable atom");return n.set(e,...o)},[n,e])}function jd(e,t){return[k2(e),Ld(e)]}function wl(){return wl=Object.assign?Object.assign.bind():function(e){for(var t=1;tnull;function T2(){return!!(globalThis!=null&&globalThis.document)}function _2(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}const Qt=e=>e?"":void 0,lc=e=>e?!0:void 0;function P2(e){return Array.isArray(e)}function Rt(e){const t=typeof e;return e!=null&&(t==="object"||t==="function")&&!P2(e)}function E2(e){const t=e==null?0:e.length;return t?e[t-1]:void 0}function $2(e){const t=parseFloat(e.toString()),n=e.toString().replace(String(t),"");return{unitless:!n,value:t,unit:n}}function Fd(e){if(e==null)return e;const{unitless:t}=$2(e);return t||typeof e=="number"?`${e}px`:e}const O1=(e,t)=>parseInt(e[1],10)>parseInt(t[1],10)?1:-1,ph=e=>Object.fromEntries(Object.entries(e).sort(O1));function sg(e){const t=ph(e);return Object.assign(Object.values(t),t)}function A2(e){const t=Object.keys(ph(e));return new Set(t)}function ag(e){if(!e)return e;e=Fd(e)??e;const t=-.02;return typeof e=="number"?`${e+t}`:e.replace(/(\d+\.?\d*)/u,n=>`${parseFloat(n)+t}`)}function Si(e,t){const n=["@media screen"];return e&&n.push("and",`(min-width: ${Fd(e)})`),t&&n.push("and",`(max-width: ${Fd(t)})`),n.join(" ")}function R2(e){if(!e)return null;e.base=e.base??"0px";const t=sg(e),n=Object.entries(e).sort(O1).map(([i,s],a,l)=>{let[,u]=l[a+1]??[];return u=parseFloat(u)>0?ag(u):void 0,{_minW:ag(s),breakpoint:i,minW:s,maxW:u,maxWQuery:Si(null,u),minWQuery:Si(s),minMaxQuery:Si(s,u)}}),r=A2(e),o=Array.from(r.values());return{keys:r,normalized:t,isResponsive(i){const s=Object.keys(i);return s.length>0&&s.every(a=>r.has(a))},asObject:ph(e),asArray:sg(e),details:n,get(i){return n.find(s=>s.breakpoint===i)},media:[null,...t.map(i=>Si(i)).slice(1)],toArrayValue(i){if(!Rt(i))throw new Error("toArrayValue: value must be an object");const s=o.map(a=>i[a]??null);for(;E2(s)===null;)s.pop();return s},toObjectValue(i){if(!Array.isArray(i))throw new Error("toObjectValue: value must be an array");return i.reduce((s,a,l)=>{const u=o[l];return u!=null&&a!=null&&(s[u]=a),s},{})}}}function lg(...e){return function(n){e.some(r=>(r==null||r(n),n==null?void 0:n.defaultPrevented))}}function M2(e){return T.Children.toArray(e).filter(t=>T.isValidElement(t))}function mh(e){const t=Object.assign({},e);for(let n in t)t[n]===void 0&&delete t[n];return t}function z2(e,t){return`${e} returned \`undefined\`. Seems you forgot to wrap component within ${t}`}function zn(e={}){const{name:t,strict:n=!0,hookName:r="useContext",providerName:o="Provider",errorMessage:i,defaultValue:s}=e,a=T.createContext(s);a.displayName=t;function l(){var c;const u=T.useContext(a);if(!u&&n){const d=new Error(i??z2(r,o));throw d.name="ContextError",(c=Error.captureStackTrace)==null||c.call(Error,d,l),d}return u}return[a.Provider,l,a]}const Ye=(...e)=>e.filter(Boolean).join(" ");function D2(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}},N1=I2(D2),L2=e=>e.default||e;function W1(e,t=[]){const n=Object.assign({},e);for(const r of t)r in n&&delete n[r];return n}function j2(e,t){const n={};for(const r of t)r in e&&(n[r]=e[r]);return n}function F2(e,t){return Array.isArray(e)?e.map(n=>n===null?null:t(n)):Rt(e)?Object.keys(e).reduce((n,r)=>(n[r]=t(e[r]),n),{}):e!=null?t(e):null}const B2=e=>typeof e=="function";function $t(e,...t){return B2(e)?e(...t):e}function V2(e,...t){const n=Object.getOwnPropertyDescriptors(e),r=Object.keys(n),o=s=>{const a={};for(let l=0;lo(Array.isArray(s)?s:r.filter(s));return t.map(i).concat(o(r))}function ug(e,t,n={}){const{stop:r,getKey:o}=n;function i(s,a=[]){if(Rt(s)||Array.isArray(s)){const l={};for(const[u,c]of Object.entries(s)){const d=(o==null?void 0:o(u))??u,f=[...a,d];if(r!=null&&r(s,f))return t(s,a);l[d]=i(c,f)}return l}return t(s,a)}return i(e)}var kl={exports:{}};kl.exports;(function(e,t){var n=200,r="__lodash_hash_undefined__",o=800,i=16,s=9007199254740991,a="[object Arguments]",l="[object Array]",u="[object AsyncFunction]",c="[object Boolean]",d="[object Date]",f="[object Error]",y="[object Function]",v="[object GeneratorFunction]",S="[object Map]",_="[object Number]",p="[object Null]",h="[object Object]",m="[object Proxy]",b="[object RegExp]",C="[object Set]",E="[object String]",k="[object Undefined]",A="[object WeakMap]",D="[object ArrayBuffer]",M="[object DataView]",N="[object Float32Array]",he="[object Float64Array]",xt="[object Int8Array]",Ht="[object Int16Array]",Ls="[object Int32Array]",Nr="[object Uint8Array]",xe="[object Uint8ClampedArray]",z="[object Uint16Array]",V="[object Uint32Array]",O=/[\\^$.*+?()[\]{}|]/g,pe=/^\[object .+?Constructor\]$/,Te=/^(?:0|[1-9]\d*)$/,J={};J[N]=J[he]=J[xt]=J[Ht]=J[Ls]=J[Nr]=J[xe]=J[z]=J[V]=!0,J[a]=J[l]=J[D]=J[c]=J[M]=J[d]=J[f]=J[y]=J[S]=J[_]=J[h]=J[b]=J[C]=J[E]=J[A]=!1;var Kt=typeof Hs=="object"&&Hs&&Hs.Object===Object&&Hs,Xo=typeof self=="object"&&self&&self.Object===Object&&self,lt=Kt||Xo||Function("return this")(),cr=t&&!t.nodeType&&t,qo=cr&&!0&&e&&!e.nodeType&&e,Tp=qo&&qo.exports===cr,wu=Tp&&Kt.process,_p=function(){try{var g=qo&&qo.require&&qo.require("util").types;return g||wu&&wu.binding&&wu.binding("util")}catch{}}(),Pp=_p&&_p.isTypedArray;function Cx(g,w,$){switch($.length){case 0:return g.call(w);case 1:return g.call(w,$[0]);case 2:return g.call(w,$[0],$[1]);case 3:return g.call(w,$[0],$[1],$[2])}return g.apply(w,$)}function Tx(g,w){for(var $=-1,L=Array(g);++$-1}function Gx(g,w){var $=this.__data__,L=Os($,g);return L<0?(++this.size,$.push([g,w])):$[L][1]=w,this}dn.prototype.clear=Wx,dn.prototype.delete=Ux,dn.prototype.get=Hx,dn.prototype.has=Kx,dn.prototype.set=Gx;function Wr(g){var w=-1,$=g==null?0:g.length;for(this.clear();++w<$;){var L=g[w];this.set(L[0],L[1])}}function Yx(){this.size=0,this.__data__={hash:new fr,map:new(Ip||dn),string:new fr}}function Xx(g){var w=Ws(this,g).delete(g);return this.size-=w?1:0,w}function qx(g){return Ws(this,g).get(g)}function Qx(g){return Ws(this,g).has(g)}function Zx(g,w){var $=Ws(this,g),L=$.size;return $.set(g,w),this.size+=$.size==L?0:1,this}Wr.prototype.clear=Yx,Wr.prototype.delete=Xx,Wr.prototype.get=qx,Wr.prototype.has=Qx,Wr.prototype.set=Zx;function Ur(g){var w=this.__data__=new dn(g);this.size=w.size}function Jx(){this.__data__=new dn,this.size=0}function ew(g){var w=this.__data__,$=w.delete(g);return this.size=w.size,$}function tw(g){return this.__data__.get(g)}function nw(g){return this.__data__.has(g)}function rw(g,w){var $=this.__data__;if($ instanceof dn){var L=$.__data__;if(!Ip||L.length1?$[H-1]:void 0,ce=H>2?$[2]:void 0;for(ne=g.length>3&&typeof ne=="function"?(H--,ne):void 0,ce&&ww($[0],$[1],ce)&&(ne=H<3?void 0:ne,H=1),w=Object(w);++L-1&&g%1==0&&g0){if(++w>=o)return arguments[0]}else w=0;return g.apply(void 0,arguments)}}function Aw(g){if(g!=null){try{return Fs.call(g)}catch{}try{return g+""}catch{}}return""}function Us(g,w){return g===w||g!==g&&w!==w}var Eu=Lp(function(){return arguments}())?Lp:function(g){return Zo(g)&&In.call(g,"callee")&&!zx.call(g,"callee")},$u=Array.isArray;function Au(g){return g!=null&&Op(g.length)&&!Ru(g)}function Rw(g){return Zo(g)&&Au(g)}var Vp=Ix||Lw;function Ru(g){if(!hr(g))return!1;var w=Ns(g);return w==y||w==v||w==u||w==m}function Op(g){return typeof g=="number"&&g>-1&&g%1==0&&g<=s}function hr(g){var w=typeof g;return g!=null&&(w=="object"||w=="function")}function Zo(g){return g!=null&&typeof g=="object"}function Mw(g){if(!Zo(g)||Ns(g)!=h)return!1;var w=Mp(g);if(w===null)return!0;var $=In.call(w,"constructor")&&w.constructor;return typeof $=="function"&&$ instanceof $&&Fs.call($)==Rx}var Np=Pp?_x(Pp):lw;function zw(g){return yw(g,Wp(g))}function Wp(g){return Au(g)?ow(g):uw(g)}var Dw=vw(function(g,w,$,L){jp(g,w,$,L)});function Iw(g){return function(){return g}}function Up(g){return g}function Lw(){return!1}e.exports=Dw})(kl,kl.exports);var O2=kl.exports;const rn=vf(O2);function N2(e,t=[]){const n=T.useRef(e);return T.useEffect(()=>{n.current=e}),T.useCallback((...r)=>{var o;return(o=n.current)==null?void 0:o.call(n,...r)},t)}const Bd=globalThis!=null&&globalThis.document?T.useLayoutEffect:T.useEffect,cg=(e,t)=>{const n=T.useRef(!1),r=T.useRef(!1);T.useEffect(()=>{if(n.current&&r.current)return e();r.current=!0},t),T.useEffect(()=>(n.current=!0,()=>{n.current=!1}),[])};function W2(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 Vd(...e){return t=>{e.forEach(n=>{W2(n,t)})}}function U2(...e){return T.useMemo(()=>Vd(...e),e)}function H2(e,t){const n=N2(e);T.useEffect(()=>{if(t==null)return;let r=null;return r=window.setTimeout(()=>{n()},t),()=>{r&&window.clearTimeout(r)}},[t,n])}const Ee={open:(e,t)=>`${e}[data-open], ${e}[open], ${e}[data-state=open] ${t}`,closed:(e,t)=>`${e}[data-closed], ${e}[data-state=closed] ${t}`,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}`},Yt=e=>U1(t=>e(t,"&"),"[role=group]","[data-group]",".group"),fn=e=>U1(t=>e(t,"~ &"),"[data-peer]",".peer"),U1=(e,...t)=>t.map(e).join(", "),ko={_hover:"&:hover, &[data-hover]",_active:"&:active, &[data-active]",_focus:"&:focus, &[data-focus]",_highlighted:"&[data-highlighted]",_focusWithin:"&:focus-within, &[data-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, &[data-empty]",_expanded:"&[aria-expanded=true], &[data-expanded], &[data-state=expanded]",_checked:"&[aria-checked=true], &[data-checked], &[data-state=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], &[data-state=indeterminate]",_groupOpen:Yt(Ee.open),_groupClosed:Yt(Ee.closed),_groupHover:Yt(Ee.hover),_peerHover:fn(Ee.hover),_groupFocus:Yt(Ee.focus),_peerFocus:fn(Ee.focus),_groupFocusVisible:Yt(Ee.focusVisible),_peerFocusVisible:fn(Ee.focusVisible),_groupActive:Yt(Ee.active),_peerActive:fn(Ee.active),_groupDisabled:Yt(Ee.disabled),_peerDisabled:fn(Ee.disabled),_groupInvalid:Yt(Ee.invalid),_peerInvalid:fn(Ee.invalid),_groupChecked:Yt(Ee.checked),_peerChecked:fn(Ee.checked),_groupFocusWithin:Yt(Ee.focusWithin),_peerFocusWithin:fn(Ee.focusWithin),_peerPlaceholderShown:fn(Ee.placeholderShown),_placeholder:"&::placeholder, &[data-placeholder]",_placeholderShown:"&:placeholder-shown, &[data-placeholder-shown]",_fullScreen:"&:fullscreen, &[data-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]",_open:"&[data-open], &[open], &[data-state=open]",_closed:"&[data-closed], &[data-state=closed]",_complete:"&[data-complete]",_incomplete:"&[data-incomplete]",_current:"&[data-current]"},H1=Object.keys(ko),K2=e=>/!(important)?$/.test(e),dg=e=>typeof e=="string"?e.replace(/!(important)?$/,"").trim():e,G2=(e,t)=>n=>{const r=String(t),o=K2(r),i=dg(r),s=e?`${e}.${i}`:i;let a=Rt(n.__cssMap)&&s in n.__cssMap?n.__cssMap[s].varRef:t;return a=dg(a),o?`${a} !important`:a};function gh(e){const{scale:t,transform:n,compose:r}=e;return(i,s)=>{const a=G2(t,i)(s);let l=(n==null?void 0:n(a,s))??a;return r&&(l=r(l,s)),l}}const ca=(...e)=>t=>e.reduce((n,r)=>r(n),t);function wt(e,t){return n=>{const r={property:n,scale:e};return r.transform=gh({scale:e,transform:t}),r}}const 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?gh({scale:n,compose:r}):r}}const K1=["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))",...K1].join(" ")}function Q2(){return["translate3d(var(--chakra-translate-x, 0), var(--chakra-translate-y, 0), 0)",...K1].join(" ")}const 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(", ")}}const 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(f=>{if(nT.has(f))return f;const y=f.indexOf(" "),[v,S]=y!==-1?[f.substr(0,y),f.substr(y+1)]:[f],_=Wd(S)?S:S&&S.split(" "),p=`colors.${v}`,h=p in t.__cssMap?t.__cssMap[p].varRef:v;return _?[h,...Array.isArray(_)?_:[_]].join(" "):h});return`${a}(${d.join(", ")})`}const Wd=e=>typeof e=="string"&&e.includes("(")&&e.includes(")"),iT=(e,t)=>oT(e,t??{});function sT(e){return/^var\(--.+\)$/.test(e)}const aT=e=>{const t=parseFloat(e.toString()),n=e.toString().replace(String(t),"");return{unitless:!n,value:t,unit:n}},Xt=e=>t=>`${e}(${t})`,U={filter(e){return e!=="auto"?e:Z2},backdropFilter(e){return e!=="auto"?e:J2},ring(e){return eT(U.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:Xt("blur"),opacity:Xt("opacity"),brightness:Xt("brightness"),contrast:Xt("contrast"),dropShadow:Xt("drop-shadow"),grayscale:Xt("grayscale"),hueRotate:e=>Xt("hue-rotate")(U.degree(e)),invert:Xt("invert"),saturate:Xt("saturate"),sepia:Xt("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){const{space:t,divide:n}=tT[e]??{},r={flexDirection:e};return t&&(r[t]=1),n&&(r[n]=1),r}},x={borderWidths:wt("borderWidths"),borderStyles:wt("borderStyles"),colors:wt("colors"),borders:wt("borders"),gradients:wt("gradients",U.gradient),radii:wt("radii",U.px),space:wt("space",ca(U.vh,U.px)),spaceT:wt("space",ca(U.vh,U.px)),degreeT(e){return{property:e,transform:U.degree}},prop(e,t,n){return{property:e,scale:t,...t&&{transform:gh({scale:t,transform:n})}}},propT(e,t){return{property:e,transform:t}},sizes:wt("sizes",ca(U.vh,U.px)),sizesT:wt("sizes",ca(U.vh,U.fraction)),shadows:wt("shadows"),logical:X2,blur:wt("blur",U.blur)},Ia={background:x.colors("background"),backgroundColor:x.colors("backgroundColor"),backgroundImage:x.gradients("backgroundImage"),backgroundSize:!0,backgroundPosition:!0,backgroundRepeat:!0,backgroundAttachment:!0,backgroundClip:{transform:U.bgClip},bgSize:x.prop("backgroundSize"),bgPosition:x.prop("backgroundPosition"),bg:x.colors("background"),bgColor:x.colors("backgroundColor"),bgPos:x.prop("backgroundPosition"),bgRepeat:x.prop("backgroundRepeat"),bgAttachment:x.prop("backgroundAttachment"),bgGradient:x.gradients("backgroundImage"),bgClip:{transform:U.bgClip}};Object.assign(Ia,{bgImage:Ia.backgroundImage,bgImg:Ia.backgroundImage});const Y={border:x.borders("border"),borderWidth:x.borderWidths("borderWidth"),borderStyle:x.borderStyles("borderStyle"),borderColor:x.colors("borderColor"),borderRadius:x.radii("borderRadius"),borderTop:x.borders("borderTop"),borderBlockStart:x.borders("borderBlockStart"),borderTopLeftRadius:x.radii("borderTopLeftRadius"),borderStartStartRadius:x.logical({scale:"radii",property:{ltr:"borderTopLeftRadius",rtl:"borderTopRightRadius"}}),borderEndStartRadius:x.logical({scale:"radii",property:{ltr:"borderBottomLeftRadius",rtl:"borderBottomRightRadius"}}),borderTopRightRadius:x.radii("borderTopRightRadius"),borderStartEndRadius:x.logical({scale:"radii",property:{ltr:"borderTopRightRadius",rtl:"borderTopLeftRadius"}}),borderEndEndRadius:x.logical({scale:"radii",property:{ltr:"borderBottomRightRadius",rtl:"borderBottomLeftRadius"}}),borderRight:x.borders("borderRight"),borderInlineEnd:x.borders("borderInlineEnd"),borderBottom:x.borders("borderBottom"),borderBlockEnd:x.borders("borderBlockEnd"),borderBottomLeftRadius:x.radii("borderBottomLeftRadius"),borderBottomRightRadius:x.radii("borderBottomRightRadius"),borderLeft:x.borders("borderLeft"),borderInlineStart:{property:"borderInlineStart",scale:"borders"},borderInlineStartRadius:x.logical({scale:"radii",property:{ltr:["borderTopLeftRadius","borderBottomLeftRadius"],rtl:["borderTopRightRadius","borderBottomRightRadius"]}}),borderInlineEndRadius:x.logical({scale:"radii",property:{ltr:["borderTopRightRadius","borderBottomRightRadius"],rtl:["borderTopLeftRadius","borderBottomLeftRadius"]}}),borderX:x.borders(["borderLeft","borderRight"]),borderInline:x.borders("borderInline"),borderY:x.borders(["borderTop","borderBottom"]),borderBlock:x.borders("borderBlock"),borderTopWidth:x.borderWidths("borderTopWidth"),borderBlockStartWidth:x.borderWidths("borderBlockStartWidth"),borderTopColor:x.colors("borderTopColor"),borderBlockStartColor:x.colors("borderBlockStartColor"),borderTopStyle:x.borderStyles("borderTopStyle"),borderBlockStartStyle:x.borderStyles("borderBlockStartStyle"),borderBottomWidth:x.borderWidths("borderBottomWidth"),borderBlockEndWidth:x.borderWidths("borderBlockEndWidth"),borderBottomColor:x.colors("borderBottomColor"),borderBlockEndColor:x.colors("borderBlockEndColor"),borderBottomStyle:x.borderStyles("borderBottomStyle"),borderBlockEndStyle:x.borderStyles("borderBlockEndStyle"),borderLeftWidth:x.borderWidths("borderLeftWidth"),borderInlineStartWidth:x.borderWidths("borderInlineStartWidth"),borderLeftColor:x.colors("borderLeftColor"),borderInlineStartColor:x.colors("borderInlineStartColor"),borderLeftStyle:x.borderStyles("borderLeftStyle"),borderInlineStartStyle:x.borderStyles("borderInlineStartStyle"),borderRightWidth:x.borderWidths("borderRightWidth"),borderInlineEndWidth:x.borderWidths("borderInlineEndWidth"),borderRightColor:x.colors("borderRightColor"),borderInlineEndColor:x.colors("borderInlineEndColor"),borderRightStyle:x.borderStyles("borderRightStyle"),borderInlineEndStyle:x.borderStyles("borderInlineEndStyle"),borderTopRadius:x.radii(["borderTopLeftRadius","borderTopRightRadius"]),borderBottomRadius:x.radii(["borderBottomLeftRadius","borderBottomRightRadius"]),borderLeftRadius:x.radii(["borderTopLeftRadius","borderBottomLeftRadius"]),borderRightRadius:x.radii(["borderTopRightRadius","borderBottomRightRadius"])};Object.assign(Y,{rounded:Y.borderRadius,roundedTop:Y.borderTopRadius,roundedTopLeft:Y.borderTopLeftRadius,roundedTopRight:Y.borderTopRightRadius,roundedTopStart:Y.borderStartStartRadius,roundedTopEnd:Y.borderStartEndRadius,roundedBottom:Y.borderBottomRadius,roundedBottomLeft:Y.borderBottomLeftRadius,roundedBottomRight:Y.borderBottomRightRadius,roundedBottomStart:Y.borderEndStartRadius,roundedBottomEnd:Y.borderEndEndRadius,roundedLeft:Y.borderLeftRadius,roundedRight:Y.borderRightRadius,roundedStart:Y.borderInlineStartRadius,roundedEnd:Y.borderInlineEndRadius,borderStart:Y.borderInlineStart,borderEnd:Y.borderInlineEnd,borderTopStartRadius:Y.borderStartStartRadius,borderTopEndRadius:Y.borderStartEndRadius,borderBottomStartRadius:Y.borderEndStartRadius,borderBottomEndRadius:Y.borderEndEndRadius,borderStartRadius:Y.borderInlineStartRadius,borderEndRadius:Y.borderInlineEndRadius,borderStartWidth:Y.borderInlineStartWidth,borderEndWidth:Y.borderInlineEndWidth,borderStartColor:Y.borderInlineStartColor,borderEndColor:Y.borderInlineEndColor,borderStartStyle:Y.borderInlineStartStyle,borderEndStyle:Y.borderInlineEndStyle});const lT={color:x.colors("color"),textColor:x.colors("color"),fill:x.colors("fill"),stroke:x.colors("stroke"),accentColor:x.colors("accentColor"),textFillColor:x.colors("textFillColor")},Cl={alignItems:!0,alignContent:!0,justifyItems:!0,justifyContent:!0,flexWrap:!0,flexDirection:{transform:U.flexDirection},flex:!0,flexFlow:!0,flexGrow:!0,flexShrink:!0,flexBasis:x.sizes("flexBasis"),justifySelf:!0,alignSelf:!0,order:!0,placeItems:!0,placeContent:!0,placeSelf:!0,gap:x.space("gap"),rowGap:x.space("rowGap"),columnGap:x.space("columnGap")};Object.assign(Cl,{flexDir:Cl.flexDirection});const Ct={width:x.sizesT("width"),inlineSize:x.sizesT("inlineSize"),height:x.sizes("height"),blockSize:x.sizes("blockSize"),boxSize:x.sizes(["width","height"]),minWidth:x.sizes("minWidth"),minInlineSize:x.sizes("minInlineSize"),minHeight:x.sizes("minHeight"),minBlockSize:x.sizes("minBlockSize"),maxWidth:x.sizes("maxWidth"),maxInlineSize:x.sizes("maxInlineSize"),maxHeight:x.sizes("maxHeight"),maxBlockSize:x.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 o,i;return{[`@media screen and (min-width: ${((i=(o=t.__breakpoints)==null?void 0:o.get(e))==null?void 0:i.minW)??e})`]:{display:"none"}}}},hideBelow:{scale:"breakpoints",transform:(e,t)=>{var o,i;return{[`@media screen and (max-width: ${((i=(o=t.__breakpoints)==null?void 0:o.get(e))==null?void 0:i._minW)??e})`]:{display:"none"}}}},verticalAlign:!0,boxSizing:!0,boxDecorationBreak:!0,float:x.propT("float",U.float),objectFit:!0,objectPosition:!0,visibility:!0,isolation:!0};Object.assign(Ct,{w:Ct.width,h:Ct.height,minW:Ct.minWidth,maxW:Ct.maxWidth,minH:Ct.minHeight,maxH:Ct.maxHeight,overscroll:Ct.overscrollBehavior,overscrollX:Ct.overscrollBehaviorX,overscrollY:Ct.overscrollBehaviorY});const uT={filter:{transform:U.filter},blur:x.blur("--chakra-blur"),brightness:x.propT("--chakra-brightness",U.brightness),contrast:x.propT("--chakra-contrast",U.contrast),hueRotate:x.propT("--chakra-hue-rotate",U.hueRotate),invert:x.propT("--chakra-invert",U.invert),saturate:x.propT("--chakra-saturate",U.saturate),dropShadow:x.propT("--chakra-drop-shadow",U.dropShadow),backdropFilter:{transform:U.backdropFilter},backdropBlur:x.blur("--chakra-backdrop-blur"),backdropBrightness:x.propT("--chakra-backdrop-brightness",U.brightness),backdropContrast:x.propT("--chakra-backdrop-contrast",U.contrast),backdropHueRotate:x.propT("--chakra-backdrop-hue-rotate",U.hueRotate),backdropInvert:x.propT("--chakra-backdrop-invert",U.invert),backdropSaturate:x.propT("--chakra-backdrop-saturate",U.saturate)},cT={ring:{transform:U.ring},ringColor:x.colors("--chakra-ring-color"),ringOffset:x.prop("--chakra-ring-offset-width"),ringOffsetColor:x.colors("--chakra-ring-offset-color"),ringInset:x.prop("--chakra-ring-inset")},dT={appearance:!0,cursor:!0,resize:!0,userSelect:!0,pointerEvents:!0,outline:{transform:U.outline},outlineOffset:!0,outlineColor:x.colors("outlineColor")},G1={gridGap:x.space("gridGap"),gridColumnGap:x.space("gridColumnGap"),gridRowGap:x.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};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"},uc=(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},yT={srOnly:{transform(e){return e===!0?mT:e==="focusable"?gT:{}}},layerStyle:{processResult:!0,transform:(e,t,n)=>uc(t,`layerStyles.${e}`,n)},textStyle:{processResult:!0,transform:(e,t,n)=>uc(t,`textStyles.${e}`,n)},apply:{processResult:!0,transform:(e,t,n)=>uc(t,e,n)}},Fi={position:!0,pos:x.prop("position"),zIndex:x.prop("zIndex","zIndices"),inset:x.spaceT("inset"),insetX:x.spaceT(["left","right"]),insetInline:x.spaceT("insetInline"),insetY:x.spaceT(["top","bottom"]),insetBlock:x.spaceT("insetBlock"),top:x.spaceT("top"),insetBlockStart:x.spaceT("insetBlockStart"),bottom:x.spaceT("bottom"),insetBlockEnd:x.spaceT("insetBlockEnd"),left:x.spaceT("left"),insetInlineStart:x.logical({scale:"space",property:{ltr:"left",rtl:"right"}}),right:x.spaceT("right"),insetInlineEnd:x.logical({scale:"space",property:{ltr:"right",rtl:"left"}})};Object.assign(Fi,{insetStart:Fi.insetInlineStart,insetEnd:Fi.insetInlineEnd});const Ud={boxShadow:x.shadows("boxShadow"),mixBlendMode:!0,blendMode:x.prop("mixBlendMode"),backgroundBlendMode:!0,bgBlendMode:x.prop("backgroundBlendMode"),opacity:!0};Object.assign(Ud,{shadow:Ud.boxShadow});const se={margin:x.spaceT("margin"),marginTop:x.spaceT("marginTop"),marginBlockStart:x.spaceT("marginBlockStart"),marginRight:x.spaceT("marginRight"),marginInlineEnd:x.spaceT("marginInlineEnd"),marginBottom:x.spaceT("marginBottom"),marginBlockEnd:x.spaceT("marginBlockEnd"),marginLeft:x.spaceT("marginLeft"),marginInlineStart:x.spaceT("marginInlineStart"),marginX:x.spaceT(["marginInlineStart","marginInlineEnd"]),marginInline:x.spaceT("marginInline"),marginY:x.spaceT(["marginTop","marginBottom"]),marginBlock:x.spaceT("marginBlock"),padding:x.space("padding"),paddingTop:x.space("paddingTop"),paddingBlockStart:x.space("paddingBlockStart"),paddingRight:x.space("paddingRight"),paddingBottom:x.space("paddingBottom"),paddingBlockEnd:x.space("paddingBlockEnd"),paddingLeft:x.space("paddingLeft"),paddingInlineStart:x.space("paddingInlineStart"),paddingInlineEnd:x.space("paddingInlineEnd"),paddingX:x.space(["paddingInlineStart","paddingInlineEnd"]),paddingInline:x.space("paddingInline"),paddingY:x.space(["paddingTop","paddingBottom"]),paddingBlock:x.space("paddingBlock")};Object.assign(se,{m:se.margin,mt:se.marginTop,mr:se.marginRight,me:se.marginInlineEnd,marginEnd:se.marginInlineEnd,mb:se.marginBottom,ml:se.marginLeft,ms:se.marginInlineStart,marginStart:se.marginInlineStart,mx:se.marginX,my:se.marginY,p:se.padding,pt:se.paddingTop,py:se.paddingY,px:se.paddingX,pb:se.paddingBottom,pl:se.paddingLeft,ps:se.paddingInlineStart,paddingStart:se.paddingInlineStart,pr:se.paddingRight,pe:se.paddingInlineEnd,paddingEnd:se.paddingInlineEnd});const vT={scrollBehavior:!0,scrollSnapAlign:!0,scrollSnapStop:!0,scrollSnapType:!0,scrollMargin:x.spaceT("scrollMargin"),scrollMarginTop:x.spaceT("scrollMarginTop"),scrollMarginBottom:x.spaceT("scrollMarginBottom"),scrollMarginLeft:x.spaceT("scrollMarginLeft"),scrollMarginRight:x.spaceT("scrollMarginRight"),scrollMarginX:x.spaceT(["scrollMarginLeft","scrollMarginRight"]),scrollMarginY:x.spaceT(["scrollMarginTop","scrollMarginBottom"]),scrollPadding:x.spaceT("scrollPadding"),scrollPaddingTop:x.spaceT("scrollPaddingTop"),scrollPaddingBottom:x.spaceT("scrollPaddingBottom"),scrollPaddingLeft:x.spaceT("scrollPaddingLeft"),scrollPaddingRight:x.spaceT("scrollPaddingRight"),scrollPaddingX:x.spaceT(["scrollPaddingLeft","scrollPaddingRight"]),scrollPaddingY:x.spaceT(["scrollPaddingTop","scrollPaddingBottom"])},ST={fontFamily:x.prop("fontFamily","fonts"),fontSize:x.prop("fontSize","fontSizes",U.px),fontWeight:x.prop("fontWeight","fontWeights"),lineHeight:x.prop("lineHeight","lineHeights"),letterSpacing:x.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"}},bT={textDecorationColor:x.colors("textDecorationColor"),textDecoration:!0,textDecor:{property:"textDecoration"},textDecorationLine:!0,textDecorationStyle:!0,textDecorationThickness:!0,textUnderlineOffset:!0,textShadow:x.shadows("textShadow")},xT={clipPath:!0,transform:x.propT("transform",U.transform),transformOrigin:!0,translateX:x.spaceT("--chakra-translate-x"),translateY:x.spaceT("--chakra-translate-y"),skewX:x.degreeT("--chakra-skew-x"),skewY:x.degreeT("--chakra-skew-y"),scaleX:x.prop("--chakra-scale-x"),scaleY:x.prop("--chakra-scale-y"),scale:x.prop(["--chakra-scale-x","--chakra-scale-y"]),rotate:x.degreeT("--chakra-rotate")},wT={listStyleType:!0,listStylePosition:!0,listStylePos:x.prop("listStylePosition"),listStyleImage:!0,listStyleImg:x.prop("listStyleImage")},kT={transition:!0,transitionDelay:!0,animation:!0,willChange:!0,transitionDuration:x.prop("transitionDuration","transition.duration"),transitionProperty:x.prop("transitionProperty","transition.property"),transitionTimingFunction:x.prop("transitionTimingFunction","transition.easing")},yh=rn({},Ia,Y,lT,Cl,Ct,uT,cT,dT,G1,yT,Fi,Ud,se,vT,ST,bT,xT,wT,kT);Object.assign({},se,Ct,Cl,G1,Fi);const CT=[...Object.keys(yh),...H1],TT={...yh,...ko},_T=e=>e in TT,PT=e=>t=>{if(!t.__breakpoints)return e;const{isResponsive:n,toArrayValue:r,media:o}=t.__breakpoints,i={};for(const s in e){let a=$t(e[s],t);if(a==null)continue;if(a=Rt(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"&&!$T(t),RT=(e,t)=>{if(t==null)return t;const n=s=>{var a,l;return(l=(a=e.__cssMap)==null?void 0:a[s])==null?void 0:l.varRef},r=s=>n(s)??s,[o,i]=ET(t);return t=n(o)??r(i)??r(t),t};function MT(e){const{configs:t={},pseudos:n={},theme:r}=e,o=(i,s=!1)=>{var c;const a=$t(i,r),l=PT(a)(r);let u={};for(let d in l){const f=l[d];let y=$t(f,r);d in n&&(d=n[d]),AT(d,y)&&(y=RT(r,y));let v=t[d];if(v===!0&&(v={property:d}),Rt(y)){u[d]=u[d]??{},u[d]=rn({},u[d],o(y,!0));continue}let S=((c=v==null?void 0:v.transform)==null?void 0:c.call(v,y,r,a))??y;S=v!=null&&v.processResult?o(S,!0):S;const _=$t(v==null?void 0:v.property,r);if(!s&&(v!=null&&v.static)){const p=$t(v.static,r);u=rn({},u,p)}if(_&&Array.isArray(_)){for(const p of _)u[p]=S;continue}if(_){_==="&"&&Rt(S)?u=rn({},u,S):u[_]=S;continue}if(Rt(S)){u=rn({},u,S);continue}u[d]=S}return u};return o}const Y1=e=>t=>MT({theme:t,pseudos:ko,configs:yh})(e);function oe(e){return{definePartsStyle(t){return t},defineMultiStyleConfig(t){return{parts:e,...t}}}}function zT(e,t){if(Array.isArray(e))return e;if(Rt(e))return t(e);if(e!=null)return[e]}function DT(e,t){for(let n=t+1;n{rn(a,{[m]:c?h[m]:{[p]:h[m]}})});continue}if(!d){c?rn(a,h):a[p]=h;continue}a[p]=h}}return a}}function LT(e){return t=>{const{variant:n,size:r,theme:o}=t,i=IT(o);return rn({},$t(e.baseStyle??{},t),i(e,"sizes",r,t),i(e,"variants",n,t))}}function Dn(e){return W1(e,["styleConfig","size","variant","colorScheme"])}function X1(e){return Rt(e)&&e.reference?e.reference:String(e)}const Zl=(e,...t)=>t.map(X1).join(` ${e} `).replace(/calc/g,""),fg=(...e)=>`calc(${Zl("+",...e)})`,hg=(...e)=>`calc(${Zl("-",...e)})`,Hd=(...e)=>`calc(${Zl("*",...e)})`,pg=(...e)=>`calc(${Zl("/",...e)})`,mg=e=>{const t=X1(e);return t!=null&&!Number.isNaN(parseFloat(t))?String(t).startsWith("-")?String(t).slice(1):`-${t}`:Hd(t,-1)},mn=Object.assign(e=>({add:(...t)=>mn(fg(e,...t)),subtract:(...t)=>mn(hg(e,...t)),multiply:(...t)=>mn(Hd(e,...t)),divide:(...t)=>mn(pg(e,...t)),negate:()=>mn(mg(e)),toString:()=>e.toString()}),{add:fg,subtract:hg,multiply:Hd,divide:pg,negate:mg});function jT(e,t="-"){return e.replace(/\s+/g,t)}function FT(e){const t=jT(e.toString());return VT(BT(t))}function BT(e){return e.includes("\\.")?e:!Number.isInteger(parseFloat(e.toString()))?e.replace(".","\\."):e}function VT(e){return e.replace(/[!-,/:-@[-^`{-~]/g,"\\$&")}function OT(e,t=""){return[t,e].filter(Boolean).join("-")}function NT(e,t){return`var(${e}${t?`, ${t}`:""})`}function WT(e,t=""){return FT(`--${OT(e,t)}`)}function F(e,t,n){const r=WT(e,n);return{variable:r,reference:NT(r,t)}}function UT(e,t){const n={};for(const r of t){if(Array.isArray(r)){const[o,i]=r;n[o]=F(`${e}-${o}`,i);continue}n[r]=F(`${e}-${r}`)}return n}const HT=["colors","borders","borderWidths","borderStyles","fonts","fontSizes","fontWeights","gradients","letterSpacings","lineHeights","radii","space","shadows","sizes","zIndices","transition","blur","breakpoints"];function KT(e){return j2(e,HT)}function GT(e){return e.semanticTokens}function YT(e){const{__cssMap:t,__cssVars:n,__breakpoints:r,...o}=e;return o}function XT(e){const t=KT(e),n=GT(e),r=i=>H1.includes(i)||i==="default",o={};return ug(t,(i,s)=>{i!=null&&(o[s.join(".")]={isSemantic:!1,value:i})}),ug(n,(i,s)=>{i!=null&&(o[s.join(".")]={isSemantic:!0,value:i})},{stop:i=>Object.keys(i).every(r)}),o}function gg(e,t){return F(String(e).replace(/\./g,"-"),void 0,t)}function qT(e){var s;const t=XT(e),n=(s=e.config)==null?void 0:s.cssVarPrefix;let r={};const o={};function i(a,l){const c=[String(a).split(".")[0],l].join(".");if(!t[c])return l;const{reference:f}=gg(c,n);return f}for(const[a,l]of Object.entries(t)){const{isSemantic:u,value:c}=l,{variable:d,reference:f}=gg(a,n);if(!u){if(a.startsWith("space")){const v=a.split("."),[S,..._]=v,p=`${S}.-${_.join(".")}`,h=mn.negate(c),m=mn.negate(f);o[p]={value:h,var:d,varRef:m}}r[d]=c,o[a]={value:c,var:d,varRef:f};continue}const y=Rt(c)?c:{default:c};r=rn(r,Object.entries(y).reduce((v,[S,_])=>{if(!_)return v;const p=i(a,`${_}`);if(S==="default")return v[d]=p,v;const h=(ko==null?void 0:ko[S])??S;return v[h]={[d]:p},v},{})),o[a]={value:f,var:d,varRef:f}}return{cssVars:r,cssMap:o}}function QT(e){const t=YT(e),{cssMap:n,cssVars:r}=qT(t);return Object.assign(t,{__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"},...r},__cssMap:n,__breakpoints:R2(t.breakpoints)}),t}function Z(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 Z(e,t)}function i(...c){for(const d of c)d in t||(t[d]=l(d));return Z(e,t)}function s(){return Object.fromEntries(Object.entries(t).map(([d,f])=>[d,f.selector]))}function a(){return Object.fromEntries(Object.entries(t).map(([d,f])=>[d,f.className]))}function l(c){const y=`chakra-${(["container","root"].includes(c??"")?[e]:[e,c]).filter(Boolean).join("__")}`;return{className:y,selector:`.${y}`,toString:()=>c}}return{parts:o,toPart:l,extend:i,selectors:s,classnames:a,get keys(){return Object.keys(t)},__type:{}}}const ZT=Z("accordion").parts("root","container","button","panel","icon"),JT=Z("alert").parts("title","description","container","icon","spinner"),e_=Z("avatar").parts("label","badge","container","excessLabel","group"),t_=Z("breadcrumb").parts("link","item","container","separator");Z("button").parts();const n_=Z("checkbox").parts("control","icon","container","label");Z("progress").parts("track","filledTrack","label");const r_=Z("drawer").parts("overlay","dialogContainer","dialog","header","closeButton","body","footer"),o_=Z("editable").parts("preview","input","textarea"),i_=Z("form").parts("container","requiredIndicator","helperText"),s_=Z("formError").parts("text","icon"),a_=Z("input").parts("addon","field","element","group"),l_=Z("list").parts("container","item","icon"),u_=Z("menu").parts("button","list","item","groupTitle","icon","command","divider"),c_=Z("modal").parts("overlay","dialogContainer","dialog","header","closeButton","body","footer"),d_=Z("numberinput").parts("root","field","stepperGroup","stepper");Z("pininput").parts("field");const f_=Z("popover").parts("content","header","body","footer","popper","arrow","closeButton"),h_=Z("progress").parts("label","filledTrack","track"),p_=Z("radio").parts("container","control","label"),m_=Z("select").parts("field","icon"),g_=Z("slider").parts("container","track","thumb","filledTrack","mark"),y_=Z("stat").parts("container","label","helpText","number","icon"),v_=Z("switch").parts("container","track","thumb","label"),S_=Z("table").parts("table","thead","tbody","tr","th","td","tfoot","caption"),b_=Z("tabs").parts("root","tab","tablist","tabpanel","tabpanels","indicator"),x_=Z("tag").parts("container","label","closeButton"),w_=Z("card").parts("container","header","body","footer");Z("stepper").parts("stepper","step","title","description","indicator","separator","icon","number");const{definePartsStyle:k_,defineMultiStyleConfig:C_}=oe(ZT.keys),T_={borderTopWidth:"1px",borderColor:"inherit",_last:{borderBottomWidth:"1px"}},__={transitionProperty:"common",transitionDuration:"normal",fontSize:"md",_focusVisible:{boxShadow:"outline"},_hover:{bg:"blackAlpha.50"},_disabled:{opacity:.4,cursor:"not-allowed"},px:"4",py:"2"},P_={pt:"2",px:"4",pb:"5"},E_={fontSize:"1.25em"},$_=k_({container:T_,button:__,panel:P_,icon:E_}),A_=C_({baseStyle:$_});function Cr(e,t,n){return Math.min(Math.max(e,n),t)}class R_ extends Error{constructor(t){super(`Failed to parse color: "${t}"`)}}var bi=R_;function vh(e){if(typeof e!="string")throw new bi(e);if(e.trim().toLowerCase()==="transparent")return[0,0,0,0];let t=e.trim();t=B_.test(e)?D_(e):e;const n=I_.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=L_.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=j_.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=F_.exec(t);if(i){const[s,a,l,u]=Array.from(i).slice(1).map(parseFloat);if(Cr(0,100,a)!==a)throw new bi(e);if(Cr(0,100,l)!==l)throw new bi(e);return[...V_(s,a,l),Number.isNaN(u)?1:u]}throw new bi(e)}function M_(e){let t=5381,n=e.length;for(;n;)t=t*33^e.charCodeAt(--n);return(t>>>0)%2341}const yg=e=>parseInt(e.replace(/_/g,""),36),z_="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=yg(t.substring(0,3)),r=yg(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 D_(e){const t=e.toLowerCase().trim(),n=z_[M_(t)];if(!n)throw new bi(e);return`#${n}`}const ds=(e,t)=>Array.from(Array(t)).map(()=>e).join(""),I_=new RegExp(`^#${ds("([a-f0-9])",3)}([a-f0-9])?$`,"i"),L_=new RegExp(`^#${ds("([a-f0-9]{2})",3)}([a-f0-9]{2})?$`,"i"),j_=new RegExp(`^rgba?\\(\\s*(\\d+)\\s*${ds(",\\s*(\\d+)\\s*",2)}(?:,\\s*([\\d.]+))?\\s*\\)$`,"i"),F_=/^hsla?\(\s*([\d.]+)\s*,\s*([\d.]+)%\s*,\s*([\d.]+)%(?:\s*,\s*([\d.]+))?\s*\)$/i,B_=/^[a-z]+$/i,vg=e=>Math.round(e*255),V_=(e,t,n)=>{let r=n/100;if(t===0)return[r,r,r].map(vg);const o=(e%360+360)%360/60,i=(1-Math.abs(2*r-1))*(t/100),s=i*(1-Math.abs(o%2-1));let a=0,l=0,u=0;o>=0&&o<1?(a=i,l=s):o>=1&&o<2?(a=s,l=i):o>=2&&o<3?(l=i,u=s):o>=3&&o<4?(l=s,u=i):o>=4&&o<5?(a=s,u=i):o>=5&&o<6&&(a=i,u=s);const c=r-i/2,d=a+c,f=l+c,y=u+c;return[d,f,y].map(vg)};function O_(e,t,n,r){return`rgba(${Cr(0,255,e).toFixed()}, ${Cr(0,255,t).toFixed()}, ${Cr(0,255,n).toFixed()}, ${parseFloat(Cr(0,1,r).toFixed(3))})`}function N_(e,t){const[n,r,o,i]=vh(e);return O_(n,r,o,i-t)}function W_(e){const[t,n,r,o]=vh(e);let i=s=>{const a=Cr(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)):""}`}const U_=e=>Object.keys(e).length===0;function H_(e,t,n,r,o){for(t=t.split?t.split("."):t,r=0;r{const r=H_(e,`colors.${t}`,t);try{return W_(r),r}catch{return"#000000"}},K_=e=>{const[t,n,r]=vh(e);return(t*299+n*587+r*114)/1e3},G_=e=>t=>{const n=qe(t,e);return K_(n)<128?"dark":"light"},Y_=e=>t=>G_(e)(t)==="dark",Lo=(e,t)=>n=>{const r=qe(n,e);return N_(r,1-t)};function Sg(e="1rem",t="rgba(255, 255, 255, 0.15)"){return{backgroundImage:`linear-gradient( +`+i.stack}return{value:e,source:t,stack:o,digest:null}}function oc(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function xd(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var WC=typeof WeakMap=="function"?WeakMap:Map;function f1(e,t,n){n=xn(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){yl||(yl=!0,Rd=r),xd(e,t)},n}function h1(e,t,n){n=xn(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var o=t.value;n.payload=function(){return r(o)},n.callback=function(){xd(e,t)}}var i=e.stateNode;return i!==null&&typeof i.componentDidCatch=="function"&&(n.callback=function(){xd(e,t),typeof r!="function"&&(Jn===null?Jn=new Set([this]):Jn.add(this));var s=t.stack;this.componentDidCatch(t.value,{componentStack:s!==null?s:""})}),n}function Om(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new WC;var o=new Set;r.set(t,o)}else o=r.get(t),o===void 0&&(o=new Set,r.set(t,o));o.has(n)||(o.add(n),e=r2.bind(null,e,t,n),t.then(e,e))}function Nm(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t!==null?t.dehydrated!==null:!0),t)return e;e=e.return}while(e!==null);return null}function Wm(e,t,n,r,o){return e.mode&1?(e.flags|=65536,e.lanes=o,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(t=xn(-1,1),t.tag=2,Zn(n,t,1))),n.lanes|=1),e)}var UC=Mn.ReactCurrentOwner,rt=!1;function Ye(e,t,n,r){t.child=e===null?Nv(t,null,n,r):Mo(t,e.child,n,r)}function Um(e,t,n,r,o){n=n.render;var i=t.ref;return xo(t,o),r=eh(e,t,n,r,i,o),n=th(),e!==null&&!rt?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,En(e,t,o)):(fe&&n&&Nf(t),t.flags|=1,Ye(e,t,r,o),t.child)}function Hm(e,t,n,r,o){if(e===null){var i=n.type;return typeof i=="function"&&!dh(i)&&i.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=i,p1(e,t,i,r,o)):(e=Da(n.type,null,r,t,t.mode,o),e.ref=t.ref,e.return=t,t.child=e)}if(i=e.child,!(e.lanes&o)){var s=i.memoizedProps;if(n=n.compare,n=n!==null?n:ns,n(s,r)&&e.ref===t.ref)return En(e,t,o)}return t.flags|=1,e=tr(i,r),e.ref=t.ref,e.return=t,t.child=e}function p1(e,t,n,r,o){if(e!==null){var i=e.memoizedProps;if(ns(i,r)&&e.ref===t.ref)if(rt=!1,t.pendingProps=r=i,(e.lanes&o)!==0)e.flags&131072&&(rt=!0);else return t.lanes=e.lanes,En(e,t,o)}return wd(e,t,n,r,o)}function m1(e,t,n){var r=t.pendingProps,o=r.children,i=e!==null?e.memoizedState:null;if(r.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},re(oo,ct),ct|=n;else{if(!(n&1073741824))return e=i!==null?i.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,re(oo,ct),ct|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=i!==null?i.baseLanes:n,re(oo,ct),ct|=r}else i!==null?(r=i.baseLanes|n,t.memoizedState=null):r=n,re(oo,ct),ct|=r;return Ye(e,t,o,n),t.child}function g1(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function wd(e,t,n,r,o){var i=it(n)?Mr:Ge.current;return i=Ao(t,i),xo(t,o),n=eh(e,t,n,r,i,o),r=th(),e!==null&&!rt?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,En(e,t,o)):(fe&&r&&Nf(t),t.flags|=1,Ye(e,t,n,o),t.child)}function Km(e,t,n,r,o){if(it(n)){var i=!0;al(t)}else i=!1;if(xo(t,o),t.stateNode===null)Ra(e,t),d1(t,n,r),bd(t,n,r,o),r=!0;else if(e===null){var s=t.stateNode,a=t.memoizedProps;s.props=a;var l=s.context,u=n.contextType;typeof u=="object"&&u!==null?u=Mt(u):(u=it(n)?Mr:Ge.current,u=Ao(t,u));var c=n.getDerivedStateFromProps,d=typeof c=="function"||typeof s.getSnapshotBeforeUpdate=="function";d||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(a!==r||l!==u)&&Vm(t,s,r,u),On=!1;var f=t.memoizedState;s.state=f,fl(t,r,s,o),l=t.memoizedState,a!==r||f!==l||ot.current||On?(typeof c=="function"&&(Sd(t,n,c,r),l=t.memoizedState),(a=On||Bm(t,n,a,r,f,l,u))?(d||typeof s.UNSAFE_componentWillMount!="function"&&typeof s.componentWillMount!="function"||(typeof s.componentWillMount=="function"&&s.componentWillMount(),typeof s.UNSAFE_componentWillMount=="function"&&s.UNSAFE_componentWillMount()),typeof s.componentDidMount=="function"&&(t.flags|=4194308)):(typeof s.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=l),s.props=r,s.state=l,s.context=u,r=a):(typeof s.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{s=t.stateNode,Uv(e,t),a=t.memoizedProps,u=t.type===t.elementType?a:Ft(t.type,a),s.props=u,d=t.pendingProps,f=s.context,l=n.contextType,typeof l=="object"&&l!==null?l=Mt(l):(l=it(n)?Mr:Ge.current,l=Ao(t,l));var y=n.getDerivedStateFromProps;(c=typeof y=="function"||typeof s.getSnapshotBeforeUpdate=="function")||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(a!==d||f!==l)&&Vm(t,s,r,l),On=!1,f=t.memoizedState,s.state=f,fl(t,r,s,o);var v=t.memoizedState;a!==d||f!==v||ot.current||On?(typeof y=="function"&&(Sd(t,n,y,r),v=t.memoizedState),(u=On||Bm(t,n,u,r,f,v,l)||!1)?(c||typeof s.UNSAFE_componentWillUpdate!="function"&&typeof s.componentWillUpdate!="function"||(typeof s.componentWillUpdate=="function"&&s.componentWillUpdate(r,v,l),typeof s.UNSAFE_componentWillUpdate=="function"&&s.UNSAFE_componentWillUpdate(r,v,l)),typeof s.componentDidUpdate=="function"&&(t.flags|=4),typeof s.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof s.componentDidUpdate!="function"||a===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof s.getSnapshotBeforeUpdate!="function"||a===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=v),s.props=r,s.state=v,s.context=l,r=u):(typeof s.componentDidUpdate!="function"||a===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof s.getSnapshotBeforeUpdate!="function"||a===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),r=!1)}return kd(e,t,n,r,i,o)}function kd(e,t,n,r,o,i){g1(e,t);var s=(t.flags&128)!==0;if(!r&&!s)return o&&Rm(t,n,!1),En(e,t,i);r=t.stateNode,UC.current=t;var a=s&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&s?(t.child=Mo(t,e.child,null,i),t.child=Mo(t,null,a,i)):Ye(e,t,a,i),t.memoizedState=r.state,o&&Rm(t,n,!0),t.child}function y1(e){var t=e.stateNode;t.pendingContext?Am(e,t.pendingContext,t.pendingContext!==t.context):t.context&&Am(e,t.context,!1),qf(e,t.containerInfo)}function Gm(e,t,n,r,o){return Ro(),Uf(o),t.flags|=256,Ye(e,t,n,r),t.child}var Cd={dehydrated:null,treeContext:null,retryLane:0};function Td(e){return{baseLanes:e,cachePool:null,transitions:null}}function v1(e,t,n){var r=t.pendingProps,o=me.current,i=!1,s=(t.flags&128)!==0,a;if((a=s)||(a=e!==null&&e.memoizedState===null?!1:(o&2)!==0),a?(i=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(o|=1),re(me,o&1),e===null)return yd(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?(t.mode&1?e.data==="$!"?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(s=r.children,e=r.fallback,i?(r=t.mode,i=t.child,s={mode:"hidden",children:s},!(r&1)&&i!==null?(i.childLanes=0,i.pendingProps=s):i=Kl(s,r,0,null),e=Pr(e,r,n,null),i.return=t,e.return=t,i.sibling=e,t.child=i,t.child.memoizedState=Td(n),t.memoizedState=Cd,e):oh(t,s));if(o=e.memoizedState,o!==null&&(a=o.dehydrated,a!==null))return HC(e,t,s,r,a,o,n);if(i){i=r.fallback,s=t.mode,o=e.child,a=o.sibling;var l={mode:"hidden",children:r.children};return!(s&1)&&t.child!==o?(r=t.child,r.childLanes=0,r.pendingProps=l,t.deletions=null):(r=tr(o,l),r.subtreeFlags=o.subtreeFlags&14680064),a!==null?i=tr(a,i):(i=Pr(i,s,n,null),i.flags|=2),i.return=t,r.return=t,r.sibling=i,t.child=r,r=i,i=t.child,s=e.child.memoizedState,s=s===null?Td(n):{baseLanes:s.baseLanes|n,cachePool:null,transitions:s.transitions},i.memoizedState=s,i.childLanes=e.childLanes&~n,t.memoizedState=Cd,r}return i=e.child,e=i.sibling,r=tr(i,{mode:"visible",children:r.children}),!(t.mode&1)&&(r.lanes=n),r.return=t,r.sibling=null,e!==null&&(n=t.deletions,n===null?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=r,t.memoizedState=null,r}function oh(e,t){return t=Kl({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function ia(e,t,n,r){return r!==null&&Uf(r),Mo(t,e.child,null,n),e=oh(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function HC(e,t,n,r,o,i,s){if(n)return t.flags&256?(t.flags&=-257,r=oc(Error(R(422))),ia(e,t,s,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(i=r.fallback,o=t.mode,r=Kl({mode:"visible",children:r.children},o,0,null),i=Pr(i,o,s,null),i.flags|=2,r.return=t,i.return=t,r.sibling=i,t.child=r,t.mode&1&&Mo(t,e.child,null,s),t.child.memoizedState=Td(s),t.memoizedState=Cd,i);if(!(t.mode&1))return ia(e,t,s,null);if(o.data==="$!"){if(r=o.nextSibling&&o.nextSibling.dataset,r)var a=r.dgst;return r=a,i=Error(R(419)),r=oc(i,r,void 0),ia(e,t,s,r)}if(a=(s&e.childLanes)!==0,rt||a){if(r=ze,r!==null){switch(s&-s){case 4:o=2;break;case 16:o=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:o=32;break;case 536870912:o=268435456;break;default:o=0}o=o&(r.suspendedLanes|s)?0:o,o!==0&&o!==i.retryLane&&(i.retryLane=o,Pn(e,o),Wt(r,e,o,-1))}return ch(),r=oc(Error(R(421))),ia(e,t,s,r)}return o.data==="$?"?(t.flags|=128,t.child=e.child,t=o2.bind(null,e),o._reactRetry=t,null):(e=i.treeContext,dt=Qn(o.nextSibling),ft=t,fe=!0,Vt=null,e!==null&&(_t[Pt++]=vn,_t[Pt++]=Sn,_t[Pt++]=zr,vn=e.id,Sn=e.overflow,zr=t),t=oh(t,r.children),t.flags|=4096,t)}function Xm(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),vd(e.return,t,n)}function ic(e,t,n,r,o){var i=e.memoizedState;i===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:o}:(i.isBackwards=t,i.rendering=null,i.renderingStartTime=0,i.last=r,i.tail=n,i.tailMode=o)}function S1(e,t,n){var r=t.pendingProps,o=r.revealOrder,i=r.tail;if(Ye(e,t,r.children,n),r=me.current,r&2)r=r&1|2,t.flags|=128;else{if(e!==null&&e.flags&128)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Xm(e,n,t);else if(e.tag===19)Xm(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(re(me,r),!(t.mode&1))t.memoizedState=null;else switch(o){case"forwards":for(n=t.child,o=null;n!==null;)e=n.alternate,e!==null&&hl(e)===null&&(o=n),n=n.sibling;n=o,n===null?(o=t.child,t.child=null):(o=n.sibling,n.sibling=null),ic(t,!1,o,n,i);break;case"backwards":for(n=null,o=t.child,t.child=null;o!==null;){if(e=o.alternate,e!==null&&hl(e)===null){t.child=o;break}e=o.sibling,o.sibling=n,n=o,o=e}ic(t,!0,n,null,i);break;case"together":ic(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Ra(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function En(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),Ir|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(R(153));if(t.child!==null){for(e=t.child,n=tr(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=tr(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function KC(e,t,n){switch(t.tag){case 3:y1(t),Ro();break;case 5:Hv(t);break;case 1:it(t.type)&&al(t);break;case 4:qf(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,o=t.memoizedProps.value;re(cl,r._currentValue),r._currentValue=o;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(re(me,me.current&1),t.flags|=128,null):n&t.child.childLanes?v1(e,t,n):(re(me,me.current&1),e=En(e,t,n),e!==null?e.sibling:null);re(me,me.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return S1(e,t,n);t.flags|=128}if(o=t.memoizedState,o!==null&&(o.rendering=null,o.tail=null,o.lastEffect=null),re(me,me.current),r)break;return null;case 22:case 23:return t.lanes=0,m1(e,t,n)}return En(e,t,n)}var b1,_d,x1,w1;b1=function(e,t){for(var n=t.child;n!==null;){if(n.tag===5||n.tag===6)e.appendChild(n.stateNode);else if(n.tag!==4&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}};_d=function(){};x1=function(e,t,n,r){var o=e.memoizedProps;if(o!==r){e=t.stateNode,kr(sn.current);var i=null;switch(n){case"input":o=Xc(e,o),r=Xc(e,r),i=[];break;case"select":o=ve({},o,{value:void 0}),r=ve({},r,{value:void 0}),i=[];break;case"textarea":o=Qc(e,o),r=Qc(e,r),i=[];break;default:typeof o.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=il)}Jc(n,r);var s;n=null;for(u in o)if(!r.hasOwnProperty(u)&&o.hasOwnProperty(u)&&o[u]!=null)if(u==="style"){var a=o[u];for(s in a)a.hasOwnProperty(s)&&(n||(n={}),n[s]="")}else u!=="dangerouslySetInnerHTML"&&u!=="children"&&u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&u!=="autoFocus"&&(Yi.hasOwnProperty(u)?i||(i=[]):(i=i||[]).push(u,null));for(u in r){var l=r[u];if(a=o!=null?o[u]:void 0,r.hasOwnProperty(u)&&l!==a&&(l!=null||a!=null))if(u==="style")if(a){for(s in a)!a.hasOwnProperty(s)||l&&l.hasOwnProperty(s)||(n||(n={}),n[s]="");for(s in l)l.hasOwnProperty(s)&&a[s]!==l[s]&&(n||(n={}),n[s]=l[s])}else n||(i||(i=[]),i.push(u,n)),n=l;else u==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,a=a?a.__html:void 0,l!=null&&a!==l&&(i=i||[]).push(u,l)):u==="children"?typeof l!="string"&&typeof l!="number"||(i=i||[]).push(u,""+l):u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&(Yi.hasOwnProperty(u)?(l!=null&&u==="onScroll"&&ie("scroll",e),i||a===l||(i=[])):(i=i||[]).push(u,l))}n&&(i=i||[]).push("style",n);var u=i;(t.updateQueue=u)&&(t.flags|=4)}};w1=function(e,t,n,r){n!==r&&(t.flags|=4)};function ai(e,t){if(!fe)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function Ne(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var o=e.child;o!==null;)n|=o.lanes|o.childLanes,r|=o.subtreeFlags&14680064,r|=o.flags&14680064,o.return=e,o=o.sibling;else for(o=e.child;o!==null;)n|=o.lanes|o.childLanes,r|=o.subtreeFlags,r|=o.flags,o.return=e,o=o.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function GC(e,t,n){var r=t.pendingProps;switch(Wf(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Ne(t),null;case 1:return it(t.type)&&sl(),Ne(t),null;case 3:return r=t.stateNode,zo(),ae(ot),ae(Ge),Zf(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(ra(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,Vt!==null&&(Dd(Vt),Vt=null))),_d(e,t),Ne(t),null;case 5:Qf(t);var o=kr(as.current);if(n=t.type,e!==null&&t.stateNode!=null)x1(e,t,n,r,o),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(R(166));return Ne(t),null}if(e=kr(sn.current),ra(t)){r=t.stateNode,n=t.type;var i=t.memoizedProps;switch(r[tn]=t,r[is]=i,e=(t.mode&1)!==0,n){case"dialog":ie("cancel",r),ie("close",r);break;case"iframe":case"object":case"embed":ie("load",r);break;case"video":case"audio":for(o=0;o<\/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[tn]=t,e[is]=r,b1(e,t,!1,!1),t.stateNode=e;e:{switch(s=ed(n,r),n){case"dialog":ie("cancel",e),ie("close",e),o=r;break;case"iframe":case"object":case"embed":ie("load",e),o=r;break;case"video":case"audio":for(o=0;oIo&&(t.flags|=128,r=!0,ai(i,!1),t.lanes=4194304)}else{if(!r)if(e=hl(s),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),ai(i,!0),i.tail===null&&i.tailMode==="hidden"&&!s.alternate&&!fe)return Ne(t),null}else 2*ke()-i.renderingStartTime>Io&&n!==1073741824&&(t.flags|=128,r=!0,ai(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=ke(),t.sibling=null,n=me.current,re(me,r?n&1|2:n&1),t):(Ne(t),null);case 22:case 23:return uh(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?ct&1073741824&&(Ne(t),t.subtreeFlags&6&&(t.flags|=8192)):Ne(t),null;case 24:return null;case 25:return null}throw Error(R(156,t.tag))}function XC(e,t){switch(Wf(t),t.tag){case 1:return it(t.type)&&sl(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return zo(),ae(ot),ae(Ge),Zf(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return Qf(t),null;case 13:if(ae(me),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 ae(me),null;case 4:return zo(),null;case 10:return Gf(t.type._context),null;case 22:case 23:return uh(),null;case 24:return null;default:return null}}var sa=!1,He=!1,YC=typeof WeakSet=="function"?WeakSet:Set,I=null;function ro(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){be(e,t,r)}else n.current=null}function Pd(e,t,n){try{n()}catch(r){be(e,t,r)}}var Ym=!1;function qC(e,t){if(cd=nl,e=Pv(),Of(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var o=r.anchorOffset,i=r.focusNode;r=r.focusOffset;try{n.nodeType,i.nodeType}catch{n=null;break e}var s=0,a=-1,l=-1,u=0,c=0,d=e,f=null;t:for(;;){for(var y;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),(y=d.firstChild)!==null;)f=d,d=y;for(;;){if(d===e)break t;if(f===n&&++u===o&&(a=s),f===i&&++c===r&&(l=s),(y=d.nextSibling)!==null)break;d=f,f=d.parentNode}d=y}n=a===-1||l===-1?null:{start:a,end:l}}else n=null}n=n||{start:0,end:0}}else n=null;for(dd={focusedElem:e,selectionRange:n},nl=!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 v=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(v!==null){var S=v.memoizedProps,_=v.memoizedState,p=t.stateNode,h=p.getSnapshotBeforeUpdate(t.elementType===t.type?S:Ft(t.type,S),_);p.__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(b){be(t,t.return,b)}if(e=t.sibling,e!==null){e.return=t.return,I=e;break}I=t.return}return v=Ym,Ym=!1,v}function Ii(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&&Pd(t,n,i)}o=o.next}while(o!==r)}}function Ul(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 Ed(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 k1(e){var t=e.alternate;t!==null&&(e.alternate=null,k1(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[tn],delete t[is],delete t[pd],delete t[MC],delete t[zC])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function C1(e){return e.tag===5||e.tag===3||e.tag===4}function qm(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||C1(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 $d(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=il));else if(r!==4&&(e=e.child,e!==null))for($d(e,t,n),e=e.sibling;e!==null;)$d(e,t,n),e=e.sibling}function Ad(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(Ad(e,t,n),e=e.sibling;e!==null;)Ad(e,t,n),e=e.sibling}var Le=null,Bt=!1;function Ln(e,t,n){for(n=n.child;n!==null;)T1(e,t,n),n=n.sibling}function T1(e,t,n){if(on&&typeof on.onCommitFiberUnmount=="function")try{on.onCommitFiberUnmount(Ll,n)}catch{}switch(n.tag){case 5:He||ro(n,t);case 6:var r=Le,o=Bt;Le=null,Ln(e,t,n),Le=r,Bt=o,Le!==null&&(Bt?(e=Le,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):Le.removeChild(n.stateNode));break;case 18:Le!==null&&(Bt?(e=Le,n=n.stateNode,e.nodeType===8?Zu(e.parentNode,n):e.nodeType===1&&Zu(e,n),es(e)):Zu(Le,n.stateNode));break;case 4:r=Le,o=Bt,Le=n.stateNode.containerInfo,Bt=!0,Ln(e,t,n),Le=r,Bt=o;break;case 0:case 11:case 14:case 15:if(!He&&(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)&&Pd(n,t,s),o=o.next}while(o!==r)}Ln(e,t,n);break;case 1:if(!He&&(ro(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(a){be(n,t,a)}Ln(e,t,n);break;case 21:Ln(e,t,n);break;case 22:n.mode&1?(He=(r=He)||n.memoizedState!==null,Ln(e,t,n),He=r):Ln(e,t,n);break;default:Ln(e,t,n)}}function Qm(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new YC),t.forEach(function(r){var o=i2.bind(null,e,r);n.has(r)||(n.add(r),r.then(o,o))})}}function It(e,t){var n=t.deletions;if(n!==null)for(var r=0;ro&&(o=s),r&=~i}if(r=o,r=ke()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*ZC(r/1960))-r,10e?16:e,Gn===null)var r=!1;else{if(e=Gn,Gn=null,vl=0,K&6)throw Error(R(331));var o=K;for(K|=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;lke()-ah?_r(e,0):sh|=n),st(e,t)}function z1(e,t){t===0&&(e.mode&1?(t=Qs,Qs<<=1,!(Qs&130023424)&&(Qs=4194304)):t=1);var n=Qe();e=Pn(e,t),e!==null&&(Cs(e,t,n),st(e,n))}function o2(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),z1(e,n)}function i2(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),z1(e,n)}var D1;D1=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||ot.current)rt=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return rt=!1,KC(e,t,n);rt=!!(e.flags&131072)}else rt=!1,fe&&t.flags&1048576&&Fv(t,ul,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Ra(e,t),e=t.pendingProps;var o=Ao(t,Ge.current);xo(t,n),o=eh(null,t,r,e,o,n);var i=th();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,it(r)?(i=!0,al(t)):i=!1,t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,Yf(t),o.updater=Wl,t.stateNode=o,o._reactInternals=t,bd(t,r,e,n),t=kd(null,t,r,!0,i,n)):(t.tag=0,fe&&i&&Nf(t),Ye(null,t,o,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Ra(e,t),e=t.pendingProps,o=r._init,r=o(r._payload),t.type=r,o=t.tag=a2(r),e=Ft(r,e),o){case 0:t=wd(null,t,r,e,n);break e;case 1:t=Km(null,t,r,e,n);break e;case 11:t=Um(null,t,r,e,n);break e;case 14:t=Hm(null,t,r,Ft(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:Ft(r,o),wd(e,t,r,o,n);case 1:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Ft(r,o),Km(e,t,r,o,n);case 3:e:{if(y1(t),e===null)throw Error(R(387));r=t.pendingProps,i=t.memoizedState,o=i.element,Uv(e,t),fl(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=Gm(e,t,r,n,o);break e}else if(r!==o){o=Do(Error(R(424)),t),t=Gm(e,t,r,n,o);break e}else for(dt=Qn(t.stateNode.containerInfo.firstChild),ft=t,fe=!0,Vt=null,n=Nv(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Ro(),r===o){t=En(e,t,n);break e}Ye(e,t,r,n)}t=t.child}return t;case 5:return Hv(t),e===null&&yd(t),r=t.type,o=t.pendingProps,i=e!==null?e.memoizedProps:null,s=o.children,fd(r,o)?s=null:i!==null&&fd(r,i)&&(t.flags|=32),g1(e,t),Ye(e,t,s,n),t.child;case 6:return e===null&&yd(t),null;case 13:return v1(e,t,n);case 4:return qf(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Mo(t,null,r,n):Ye(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Ft(r,o),Um(e,t,r,o,n);case 7:return Ye(e,t,t.pendingProps,n),t.child;case 8:return Ye(e,t,t.pendingProps.children,n),t.child;case 12:return Ye(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,re(cl,r._currentValue),r._currentValue=s,i!==null)if(Ut(i.value,s)){if(i.children===o.children&&!ot.current){t=En(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=xn(-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),vd(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),vd(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}Ye(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,xo(t,n),o=Mt(o),r=r(o),t.flags|=1,Ye(e,t,r,n),t.child;case 14:return r=t.type,o=Ft(r,t.pendingProps),o=Ft(r.type,o),Hm(e,t,r,o,n);case 15:return p1(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Ft(r,o),Ra(e,t),t.tag=1,it(r)?(e=!0,al(t)):e=!1,xo(t,n),d1(t,r,o),bd(t,r,o,n),kd(null,t,r,!0,e,n);case 19:return S1(e,t,n);case 22:return m1(e,t,n)}throw Error(R(156,t.tag))};function I1(e,t){return lv(e,t)}function s2(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 Et(e,t,n,r){return new s2(e,t,n,r)}function dh(e){return e=e.prototype,!(!e||!e.isReactComponent)}function a2(e){if(typeof e=="function")return dh(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Af)return 11;if(e===Rf)return 14}return 2}function tr(e,t){var n=e.alternate;return n===null?(n=Et(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 Da(e,t,n,r,o,i){var s=2;if(r=e,typeof e=="function")dh(e)&&(s=1);else if(typeof e=="string")s=5;else e:switch(e){case Xr:return Pr(n.children,o,i,t);case $f:s=8,o|=8;break;case Uc:return e=Et(12,n,t,o|2),e.elementType=Uc,e.lanes=i,e;case Hc:return e=Et(13,n,t,o),e.elementType=Hc,e.lanes=i,e;case Kc:return e=Et(19,n,t,o),e.elementType=Kc,e.lanes=i,e;case Hy:return Kl(n,o,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Wy:s=10;break e;case Uy:s=9;break e;case Af:s=11;break e;case Rf:s=14;break e;case Vn:s=16,r=null;break e}throw Error(R(130,e==null?e:typeof e,""))}return t=Et(s,n,t,o),t.elementType=e,t.type=r,t.lanes=i,t}function Pr(e,t,n,r){return e=Et(7,e,r,t),e.lanes=n,e}function Kl(e,t,n,r){return e=Et(22,e,r,t),e.elementType=Hy,e.lanes=n,e.stateNode={isHidden:!1},e}function sc(e,t,n){return e=Et(6,e,null,t),e.lanes=n,e}function ac(e,t,n){return t=Et(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function l2(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=Ou(0),this.expirationTimes=Ou(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Ou(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function fh(e,t,n,r,o,i,s,a,l){return e=new l2(e,t,n,a,l),t===1?(t=1,i===!0&&(t|=8)):t=0,i=Et(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Yf(i),e}function u2(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(B1)}catch(e){console.error(e)}}B1(),By.exports=vt;var gh=By.exports,V1,ig=gh;V1=ig.createRoot,ig.hydrateRoot;const $n={BASE_URL:"/jotai-todo/",DEV:!1,MODE:"production",PROD:!0,SSR:!1};let p2=0;function Ql(e,t){const n=`atom${++p2}`,r={toString(){return($n?"production":void 0)!=="production"&&this.debugLabel?n+":"+this.debugLabel:n}};return typeof e=="function"?r.read=e:(r.init=e,r.read=m2,r.write=g2),t&&(r.write=t),r}function m2(e){return e(this)}function g2(e,t,n){return t(this,typeof n=="function"?n(e(this)):n)}const sg=(e,t)=>e.unstable_is?e.unstable_is(t):t===e,Id=e=>"init"in e,lc=e=>!!e.write,xl=new WeakMap,Ld=e=>{var t;return jd(e)&&!((t=xl.get(e))!=null&&t[1])},y2=(e,t)=>{const n=xl.get(e);if(n)n[1]=!0,n[0].forEach(r=>r(t));else if(($n?"production":void 0)!=="production")throw new Error("[Bug] cancelable promise not found")},v2=e=>{if(xl.has(e))return;const t=[new Set,!1];xl.set(e,t);const n=()=>{t[1]=!0};e.then(n,n),e.onCancel=r=>{t[0].add(r)}},jd=e=>typeof(e==null?void 0:e.then)=="function",ag=e=>"v"in e||"e"in e,ua=e=>{if("e"in e)throw e.e;if(($n?"production":void 0)!=="production"&&!("v"in e))throw new Error("[Bug] atom state is not initialized");return e.v},O1=(e,t,n)=>{n.p.has(e)||(n.p.add(e),t.then(()=>{n.p.delete(e)},()=>{n.p.delete(e)}))},lg=(e,t,n,r,o)=>{var i;if(($n?"production":void 0)!=="production"&&r===t)throw new Error("[Bug] atom cannot depend on itself");n.d.set(r,o.n),Ld(n.v)&&O1(t,n.v,o),(i=o.m)==null||i.t.add(t),e&&S2(e,r,t)},ui=()=>({D:new Map,H:new Set,M:new Set,L:new Set}),Fi=(e,t,n)=>{e[t].add(n)},ug=(e,t,n)=>{e.D.has(t)||(e.D.set(t,new Set),Fi(e,"M",()=>{var r;(r=n.m)==null||r.l.forEach(o=>Fi(e,"M",o))}))},S2=(e,t,n)=>{const r=e.D.get(t);r&&r.add(n)},b2=(e,t)=>e.D.get(t),pr=e=>{let t,n=!1;const r=o=>{try{o()}catch(i){n||(t=i,n=!0)}};for(;e.H.size||e.M.size||e.L.size;)e.D.clear(),e.H.forEach(r),e.H.clear(),e.M.forEach(r),e.M.clear(),e.L.forEach(r),e.L.clear();if(n)throw t},N1=(...[e,t,n,r])=>{const o=(p,h,m)=>{const b="v"in h,T=h.v,E=Ld(h.v)?h.v:null;if(jd(m)){v2(m);for(const k of h.d.keys())O1(p,m,e(k));h.v=m}else h.v=m;delete h.e,delete h.x,(!b||!Object.is(T,h.v))&&(++h.n,E&&y2(E,m))},i=(p,h)=>{var m;const b=e(h);if(ag(b)&&(b.m&&!b.x||Array.from(b.d).every(([M,O])=>i(p,M).n===O)))return b;b.d.clear();let T=!0;const E=M=>{if(sg(h,M)){const he=e(M);if(!ag(he))if(Id(M))o(M,he,M.init);else throw new Error("no atom init");return ua(he)}const O=i(p,M);try{return ua(O)}finally{if(T)lg(p,h,b,M,O);else{const he=ui();lg(he,h,b,M,O),d(he,h,b),pr(he)}}};let k,A;const D={get signal(){return k||(k=new AbortController),k.signal},get setSelf(){return($n?"production":void 0)!=="production"&&!lc(h)&&console.warn("setSelf function cannot be used with read-only atom"),!A&&lc(h)&&(A=(...M)=>{if(($n?"production":void 0)!=="production"&&T&&console.warn("setSelf function cannot be called in sync"),!T)return c(h,...M)}),A}};try{const M=t(h,E,D);if(o(h,b,M),jd(M)){(m=M.onCancel)==null||m.call(M,()=>k==null?void 0:k.abort());const O=()=>{if(b.m){const he=ui();d(he,h,b),pr(he)}};M.then(O,O)}return b}catch(M){return delete b.v,b.e=M,delete b.x,++b.n,b}finally{T=!1}},s=p=>ua(i(void 0,p)),a=(p,h,m)=>{var b,T;const E=new Map;for(const k of((b=m.m)==null?void 0:b.t)||[]){const A=e(k);A.m&&E.set(k,A)}for(const k of m.p)E.set(k,e(k));return(T=b2(p,h))==null||T.forEach(k=>{E.set(k,e(k))}),E},l=(p,h,m)=>{const b=[],T=new Set,E=new Set,k=[[h,m]];for(;k.length>0;){const[A,D]=k[k.length-1];if(E.has(A)){k.pop();continue}if(T.has(A)){b.push([A,D,D.n]),E.add(A),D.x=!0,k.pop();continue}T.add(A);for(const[M,O]of a(p,A,D))A!==M&&!T.has(M)&&k.push([M,O])}Fi(p,"H",()=>{const A=new Set([h]);for(let D=b.length-1;D>=0;--D){const[M,O,he]=b[D];let xt=!1;for(const Ht of O.d.keys())if(Ht!==M&&A.has(Ht)){xt=!0;break}xt&&(i(p,M),d(p,M,O),he!==O.n&&(ug(p,M,O),A.add(M))),delete O.x}})},u=(p,h,...m)=>{let b=!0;const T=k=>ua(i(p,k)),E=(k,...A)=>{const D=e(k);try{if(sg(h,k)){if(!Id(k))throw new Error("atom not writable");const M=D.n,O=A[0];o(k,D,O),d(p,k,D),M!==D.n&&(ug(p,k,D),l(p,k,D));return}else return u(p,k,...A)}finally{b||pr(p)}};try{return n(h,T,E,...m)}finally{b=!1}},c=(p,...h)=>{const m=ui();try{return u(m,p,...h)}finally{pr(m)}},d=(p,h,m)=>{if(m.m&&!Ld(m.v)){for(const b of m.d.keys())m.m.d.has(b)||(f(p,b,e(b)).t.add(h),m.m.d.add(b));for(const b of m.m.d||[])if(!m.d.has(b)){m.m.d.delete(b);const T=y(p,b,e(b));T==null||T.t.delete(h)}}},f=(p,h,m)=>{if(!m.m){i(p,h);for(const b of m.d.keys())f(p,b,e(b)).t.add(h);if(m.m={l:new Set,d:new Set(m.d.keys()),t:new Set},lc(h)){const b=m.m;let T;const E=(k,A)=>{let D=!0;T=(...M)=>{try{return u(k,h,...M)}finally{D||pr(k)}};try{return A()}finally{D=!1}};Fi(p,"L",()=>{const k=E(p,()=>r(h,(...A)=>T(...A)));k&&(b.u=A=>E(A,k))})}}return m.m},y=(p,h,m)=>{if(m.m&&!m.m.l.size&&!Array.from(m.m.t).some(b=>{var T;return(T=e(b).m)==null?void 0:T.d.has(h)})){const b=m.m.u;b&&Fi(p,"L",()=>b(p)),delete m.m;for(const T of m.d.keys()){const E=y(p,T,e(T));E==null||E.t.delete(h)}return}return m.m};return{get:s,set:c,sub:(p,h)=>{const m=ui(),b=e(p),E=f(m,p,b).l;return E.add(h),pr(m),()=>{E.delete(h);const k=ui();y(k,p,b),pr(k)}},unstable_derive:p=>N1(...p(e,t,n,r))}},x2=e=>{const t=new WeakMap,n=new Set;let r,o=0;const i=e.unstable_derive((l,u,c,d)=>(r=l,[f=>{let y=t.get(f);if(!y){const v=l(f);y=new Proxy(v,{set(S,_,p){return _==="m"&&n.add(f),Reflect.set(S,_,p)},deleteProperty(S,_){return _==="m"&&n.delete(f),Reflect.deleteProperty(S,_)}}),t.set(f,y)}return y},u,(f,y,v,...S)=>o?v(f,...S):c(f,y,v,...S),d])),s=i.set;return Object.assign(i,{dev4_get_internal_weak_map:()=>({get:l=>{const u=r(l);if(u.n!==0)return u}}),dev4_get_mounted_atoms:()=>n,dev4_restore_atoms:l=>{s({read:()=>null,write:(c,d)=>{++o;try{for(const[f,y]of l)Id(f)&&d(f,y)}finally{--o}}})}})},w2=()=>{const e=new WeakMap,n=N1(r=>{if(($n?"production":void 0)!=="production"&&!r)throw new Error("Atom is undefined or null");let o=e.get(r);return o||(o={d:new Map,p:new Set,n:0},e.set(r,o)),o},(r,...o)=>r.read(...o),(r,...o)=>r.write(...o),(r,...o)=>{var i;return(i=r.onMount)==null?void 0:i.call(r,...o)});return($n?"production":void 0)!=="production"?x2(n):n};let ci;const k2=()=>(ci||(ci=w2(),($n?"production":void 0)!=="production"&&(globalThis.__JOTAI_DEFAULT_STORE__||(globalThis.__JOTAI_DEFAULT_STORE__=ci),globalThis.__JOTAI_DEFAULT_STORE__!==ci&&console.warn("Detected multiple Jotai instances. It may cause unexpected behavior with the default store. https://github.com/pmndrs/jotai/discussions/2044"))),ci),W1={BASE_URL:"/jotai-todo/",DEV:!1,MODE:"production",PROD:!0,SSR:!1},C2=C.createContext(void 0),U1=e=>C.useContext(C2)||k2(),H1=e=>typeof(e==null?void 0:e.then)=="function",T2=e=>{e.status="pending",e.then(t=>{e.status="fulfilled",e.value=t},t=>{e.status="rejected",e.reason=t})},_2=jy.use||(e=>{if(e.status==="pending")throw e;if(e.status==="fulfilled")return e.value;throw e.status==="rejected"?e.reason:(T2(e),e)}),uc=new WeakMap,P2=e=>{let t=uc.get(e);return t||(t=new Promise((n,r)=>{let o=e;const i=l=>u=>{o===l&&n(u)},s=l=>u=>{o===l&&r(u)},a=l=>{"onCancel"in l&&typeof l.onCancel=="function"&&l.onCancel(u=>{if((W1?"production":void 0)!=="production"&&u===l)throw new Error("[Bug] p is not updated even after cancelation");H1(u)?(uc.set(u,t),o=u,u.then(i(u),s(u)),a(u)):n(u)})};e.then(i(e),s(e)),a(e)}),uc.set(e,t)),t};function E2(e,t){const n=U1(),[[r,o,i],s]=C.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;if((o!==n||i!==e)&&(s(),a=n.get(e)),C.useEffect(()=>{const u=n.sub(e,()=>{s()});return s(),u},[n,e,void 0]),C.useDebugValue(a),H1(a)){const u=P2(a);return _2(u)}return a}function Fd(e,t){const n=U1();return C.useCallback((...o)=>{if((W1?"production":void 0)!=="production"&&!("write"in e))throw new Error("not writable atom");return n.set(e,...o)},[n,e])}function Bd(e,t){return[E2(e),Fd(e)]}function wl(){return wl=Object.assign?Object.assign.bind():function(e){for(var t=1;tnull;function A2(){return!!(globalThis!=null&&globalThis.document)}function R2(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}const Qt=e=>e?"":void 0,cc=e=>e?!0:void 0;function M2(e){return Array.isArray(e)}function Rt(e){const t=typeof e;return e!=null&&(t==="object"||t==="function")&&!M2(e)}function z2(e){const t=e==null?0:e.length;return t?e[t-1]:void 0}function D2(e){const t=parseFloat(e.toString()),n=e.toString().replace(String(t),"");return{unitless:!n,value:t,unit:n}}function Vd(e){if(e==null)return e;const{unitless:t}=D2(e);return t||typeof e=="number"?`${e}px`:e}const K1=(e,t)=>parseInt(e[1],10)>parseInt(t[1],10)?1:-1,yh=e=>Object.fromEntries(Object.entries(e).sort(K1));function cg(e){const t=yh(e);return Object.assign(Object.values(t),t)}function I2(e){const t=Object.keys(yh(e));return new Set(t)}function dg(e){if(!e)return e;e=Vd(e)??e;const t=-.02;return typeof e=="number"?`${e+t}`:e.replace(/(\d+\.?\d*)/u,n=>`${parseFloat(n)+t}`)}function bi(e,t){const n=["@media screen"];return e&&n.push("and",`(min-width: ${Vd(e)})`),t&&n.push("and",`(max-width: ${Vd(t)})`),n.join(" ")}function L2(e){if(!e)return null;e.base=e.base??"0px";const t=cg(e),n=Object.entries(e).sort(K1).map(([i,s],a,l)=>{let[,u]=l[a+1]??[];return u=parseFloat(u)>0?dg(u):void 0,{_minW:dg(s),breakpoint:i,minW:s,maxW:u,maxWQuery:bi(null,u),minWQuery:bi(s),minMaxQuery:bi(s,u)}}),r=I2(e),o=Array.from(r.values());return{keys:r,normalized:t,isResponsive(i){const s=Object.keys(i);return s.length>0&&s.every(a=>r.has(a))},asObject:yh(e),asArray:cg(e),details:n,get(i){return n.find(s=>s.breakpoint===i)},media:[null,...t.map(i=>bi(i)).slice(1)],toArrayValue(i){if(!Rt(i))throw new Error("toArrayValue: value must be an object");const s=o.map(a=>i[a]??null);for(;z2(s)===null;)s.pop();return s},toObjectValue(i){if(!Array.isArray(i))throw new Error("toObjectValue: value must be an array");return i.reduce((s,a,l)=>{const u=o[l];return u!=null&&a!=null&&(s[u]=a),s},{})}}}function fg(...e){return function(n){e.some(r=>(r==null||r(n),n==null?void 0:n.defaultPrevented))}}function j2(e){return C.Children.toArray(e).filter(t=>C.isValidElement(t))}function vh(e){const t=Object.assign({},e);for(let n in t)t[n]===void 0&&delete t[n];return t}function F2(e,t){return`${e} returned \`undefined\`. Seems you forgot to wrap component within ${t}`}function zn(e={}){const{name:t,strict:n=!0,hookName:r="useContext",providerName:o="Provider",errorMessage:i,defaultValue:s}=e,a=C.createContext(s);a.displayName=t;function l(){var c;const u=C.useContext(a);if(!u&&n){const d=new Error(i??F2(r,o));throw d.name="ContextError",(c=Error.captureStackTrace)==null||c.call(Error,d,l),d}return u}return[a.Provider,l,a]}const Xe=(...e)=>e.filter(Boolean).join(" ");function B2(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}},G1=V2(B2),O2=e=>e.default||e;function X1(e,t=[]){const n=Object.assign({},e);for(const r of t)r in n&&delete n[r];return n}function N2(e,t){const n={};for(const r of t)r in e&&(n[r]=e[r]);return n}function W2(e,t){return Array.isArray(e)?e.map(n=>n===null?null:t(n)):Rt(e)?Object.keys(e).reduce((n,r)=>(n[r]=t(e[r]),n),{}):e!=null?t(e):null}const U2=e=>typeof e=="function";function $t(e,...t){return U2(e)?e(...t):e}function H2(e,...t){const n=Object.getOwnPropertyDescriptors(e),r=Object.keys(n),o=s=>{const a={};for(let l=0;lo(Array.isArray(s)?s:r.filter(s));return t.map(i).concat(o(r))}function hg(e,t,n={}){const{stop:r,getKey:o}=n;function i(s,a=[]){if(Rt(s)||Array.isArray(s)){const l={};for(const[u,c]of Object.entries(s)){const d=(o==null?void 0:o(u))??u,f=[...a,d];if(r!=null&&r(s,f))return t(s,a);l[d]=i(c,f)}return l}return t(s,a)}return i(e)}var kl={exports:{}};kl.exports;(function(e,t){var n=200,r="__lodash_hash_undefined__",o=800,i=16,s=9007199254740991,a="[object Arguments]",l="[object Array]",u="[object AsyncFunction]",c="[object Boolean]",d="[object Date]",f="[object Error]",y="[object Function]",v="[object GeneratorFunction]",S="[object Map]",_="[object Number]",p="[object Null]",h="[object Object]",m="[object Proxy]",b="[object RegExp]",T="[object Set]",E="[object String]",k="[object Undefined]",A="[object WeakMap]",D="[object ArrayBuffer]",M="[object DataView]",O="[object Float32Array]",he="[object Float64Array]",xt="[object Int8Array]",Ht="[object Int16Array]",Ls="[object Int32Array]",Nr="[object Uint8Array]",xe="[object Uint8ClampedArray]",z="[object Uint16Array]",V="[object Uint32Array]",N=/[\\^$.*+?()[\]{}|]/g,pe=/^\[object .+?Constructor\]$/,Te=/^(?:0|[1-9]\d*)$/,J={};J[O]=J[he]=J[xt]=J[Ht]=J[Ls]=J[Nr]=J[xe]=J[z]=J[V]=!0,J[a]=J[l]=J[D]=J[c]=J[M]=J[d]=J[f]=J[y]=J[S]=J[_]=J[h]=J[b]=J[T]=J[E]=J[A]=!1;var Kt=typeof Hs=="object"&&Hs&&Hs.Object===Object&&Hs,qo=typeof self=="object"&&self&&self.Object===Object&&self,lt=Kt||qo||Function("return this")(),cr=t&&!t.nodeType&&t,Qo=cr&&!0&&e&&!e.nodeType&&e,$p=Qo&&Qo.exports===cr,Cu=$p&&Kt.process,Ap=function(){try{var g=Qo&&Qo.require&&Qo.require("util").types;return g||Cu&&Cu.binding&&Cu.binding("util")}catch{}}(),Rp=Ap&&Ap.isTypedArray;function $x(g,w,$){switch($.length){case 0:return g.call(w);case 1:return g.call(w,$[0]);case 2:return g.call(w,$[0],$[1]);case 3:return g.call(w,$[0],$[1],$[2])}return g.apply(w,$)}function Ax(g,w){for(var $=-1,L=Array(g);++$-1}function Zx(g,w){var $=this.__data__,L=Os($,g);return L<0?(++this.size,$.push([g,w])):$[L][1]=w,this}dn.prototype.clear=Xx,dn.prototype.delete=Yx,dn.prototype.get=qx,dn.prototype.has=Qx,dn.prototype.set=Zx;function Wr(g){var w=-1,$=g==null?0:g.length;for(this.clear();++w<$;){var L=g[w];this.set(L[0],L[1])}}function Jx(){this.size=0,this.__data__={hash:new fr,map:new(Bp||dn),string:new fr}}function ew(g){var w=Ws(this,g).delete(g);return this.size-=w?1:0,w}function tw(g){return Ws(this,g).get(g)}function nw(g){return Ws(this,g).has(g)}function rw(g,w){var $=Ws(this,g),L=$.size;return $.set(g,w),this.size+=$.size==L?0:1,this}Wr.prototype.clear=Jx,Wr.prototype.delete=ew,Wr.prototype.get=tw,Wr.prototype.has=nw,Wr.prototype.set=rw;function Ur(g){var w=this.__data__=new dn(g);this.size=w.size}function ow(){this.__data__=new dn,this.size=0}function iw(g){var w=this.__data__,$=w.delete(g);return this.size=w.size,$}function sw(g){return this.__data__.get(g)}function aw(g){return this.__data__.has(g)}function lw(g,w){var $=this.__data__;if($ instanceof dn){var L=$.__data__;if(!Bp||L.length1?$[H-1]:void 0,ce=H>2?$[2]:void 0;for(ne=g.length>3&&typeof ne=="function"?(H--,ne):void 0,ce&&Pw($[0],$[1],ce)&&(ne=H<3?void 0:ne,H=1),w=Object(w);++L-1&&g%1==0&&g0){if(++w>=o)return arguments[0]}else w=0;return g.apply(void 0,arguments)}}function Iw(g){if(g!=null){try{return Fs.call(g)}catch{}try{return g+""}catch{}}return""}function Us(g,w){return g===w||g!==g&&w!==w}var Au=Vp(function(){return arguments}())?Vp:function(g){return Jo(g)&&In.call(g,"callee")&&!Fx.call(g,"callee")},Ru=Array.isArray;function Mu(g){return g!=null&&Hp(g.length)&&!zu(g)}function Lw(g){return Jo(g)&&Mu(g)}var Up=Vx||Ow;function zu(g){if(!hr(g))return!1;var w=Ns(g);return w==y||w==v||w==u||w==m}function Hp(g){return typeof g=="number"&&g>-1&&g%1==0&&g<=s}function hr(g){var w=typeof g;return g!=null&&(w=="object"||w=="function")}function Jo(g){return g!=null&&typeof g=="object"}function jw(g){if(!Jo(g)||Ns(g)!=h)return!1;var w=Lp(g);if(w===null)return!0;var $=In.call(w,"constructor")&&w.constructor;return typeof $=="function"&&$ instanceof $&&Fs.call($)==Lx}var Kp=Rp?Rx(Rp):hw;function Fw(g){return ww(g,Gp(g))}function Gp(g){return Mu(g)?uw(g):pw(g)}var Bw=kw(function(g,w,$,L){Op(g,w,$,L)});function Vw(g){return function(){return g}}function Xp(g){return g}function Ow(){return!1}e.exports=Bw})(kl,kl.exports);var K2=kl.exports;const rn=xf(K2);function G2(e,t=[]){const n=C.useRef(e);return C.useEffect(()=>{n.current=e}),C.useCallback((...r)=>{var o;return(o=n.current)==null?void 0:o.call(n,...r)},t)}const Od=globalThis!=null&&globalThis.document?C.useLayoutEffect:C.useEffect,pg=(e,t)=>{const n=C.useRef(!1),r=C.useRef(!1);C.useEffect(()=>{if(n.current&&r.current)return e();r.current=!0},t),C.useEffect(()=>(n.current=!0,()=>{n.current=!1}),[])};function X2(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 Nd(...e){return t=>{e.forEach(n=>{X2(n,t)})}}function Y2(...e){return C.useMemo(()=>Nd(...e),e)}function q2(e,t){const n=G2(e);C.useEffect(()=>{if(t==null)return;let r=null;return r=window.setTimeout(()=>{n()},t),()=>{r&&window.clearTimeout(r)}},[t,n])}const Ee={open:(e,t)=>`${e}[data-open], ${e}[open], ${e}[data-state=open] ${t}`,closed:(e,t)=>`${e}[data-closed], ${e}[data-state=closed] ${t}`,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}`},Xt=e=>Y1(t=>e(t,"&"),"[role=group]","[data-group]",".group"),fn=e=>Y1(t=>e(t,"~ &"),"[data-peer]",".peer"),Y1=(e,...t)=>t.map(e).join(", "),ko={_hover:"&:hover, &[data-hover]",_active:"&:active, &[data-active]",_focus:"&:focus, &[data-focus]",_highlighted:"&[data-highlighted]",_focusWithin:"&:focus-within, &[data-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, &[data-empty]",_expanded:"&[aria-expanded=true], &[data-expanded], &[data-state=expanded]",_checked:"&[aria-checked=true], &[data-checked], &[data-state=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], &[data-state=indeterminate]",_groupOpen:Xt(Ee.open),_groupClosed:Xt(Ee.closed),_groupHover:Xt(Ee.hover),_peerHover:fn(Ee.hover),_groupFocus:Xt(Ee.focus),_peerFocus:fn(Ee.focus),_groupFocusVisible:Xt(Ee.focusVisible),_peerFocusVisible:fn(Ee.focusVisible),_groupActive:Xt(Ee.active),_peerActive:fn(Ee.active),_groupDisabled:Xt(Ee.disabled),_peerDisabled:fn(Ee.disabled),_groupInvalid:Xt(Ee.invalid),_peerInvalid:fn(Ee.invalid),_groupChecked:Xt(Ee.checked),_peerChecked:fn(Ee.checked),_groupFocusWithin:Xt(Ee.focusWithin),_peerFocusWithin:fn(Ee.focusWithin),_peerPlaceholderShown:fn(Ee.placeholderShown),_placeholder:"&::placeholder, &[data-placeholder]",_placeholderShown:"&:placeholder-shown, &[data-placeholder-shown]",_fullScreen:"&:fullscreen, &[data-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]",_open:"&[data-open], &[open], &[data-state=open]",_closed:"&[data-closed], &[data-state=closed]",_complete:"&[data-complete]",_incomplete:"&[data-incomplete]",_current:"&[data-current]"},q1=Object.keys(ko),Q2=e=>/!(important)?$/.test(e),mg=e=>typeof e=="string"?e.replace(/!(important)?$/,"").trim():e,Z2=(e,t)=>n=>{const r=String(t),o=Q2(r),i=mg(r),s=e?`${e}.${i}`:i;let a=Rt(n.__cssMap)&&s in n.__cssMap?n.__cssMap[s].varRef:t;return a=mg(a),o?`${a} !important`:a};function Sh(e){const{scale:t,transform:n,compose:r}=e;return(i,s)=>{const a=Z2(t,i)(s);let l=(n==null?void 0:n(a,s))??a;return r&&(l=r(l,s)),l}}const ca=(...e)=>t=>e.reduce((n,r)=>r(n),t);function wt(e,t){return n=>{const r={property:n,scale:e};return r.transform=Sh({scale:e,transform:t}),r}}const J2=({rtl:e,ltr:t})=>n=>n.direction==="rtl"?e:t;function eT(e){const{property:t,scale:n,transform:r}=e;return{scale:n,property:J2(t),transform:n?Sh({scale:n,compose:r}):r}}const Q1=["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 tT(){return["translateX(var(--chakra-translate-x, 0))","translateY(var(--chakra-translate-y, 0))",...Q1].join(" ")}function nT(){return["translate3d(var(--chakra-translate-x, 0), var(--chakra-translate-y, 0), 0)",...Q1].join(" ")}const rT={"--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(" ")},oT={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 iT(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(", ")}}const sT={"row-reverse":{space:"--chakra-space-x-reverse",divide:"--chakra-divide-x-reverse"},"column-reverse":{space:"--chakra-space-y-reverse",divide:"--chakra-divide-y-reverse"}},Wd={"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"},aT=new Set(Object.values(Wd)),Ud=new Set(["none","-moz-initial","inherit","initial","revert","unset"]),lT=e=>e.trim();function uT(e,t){if(e==null||Ud.has(e))return e;if(!(Hd(e)||Ud.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(lT).filter(Boolean);if((u==null?void 0:u.length)===0)return e;const c=l in Wd?Wd[l]:l;u.unshift(c);const d=u.map(f=>{if(aT.has(f))return f;const y=f.indexOf(" "),[v,S]=y!==-1?[f.substr(0,y),f.substr(y+1)]:[f],_=Hd(S)?S:S&&S.split(" "),p=`colors.${v}`,h=p in t.__cssMap?t.__cssMap[p].varRef:v;return _?[h,...Array.isArray(_)?_:[_]].join(" "):h});return`${a}(${d.join(", ")})`}const Hd=e=>typeof e=="string"&&e.includes("(")&&e.includes(")"),cT=(e,t)=>uT(e,t??{});function dT(e){return/^var\(--.+\)$/.test(e)}const fT=e=>{const t=parseFloat(e.toString()),n=e.toString().replace(String(t),"");return{unitless:!n,value:t,unit:n}},Yt=e=>t=>`${e}(${t})`,U={filter(e){return e!=="auto"?e:rT},backdropFilter(e){return e!=="auto"?e:oT},ring(e){return iT(U.px(e))},bgClip(e){return e==="text"?{color:"transparent",backgroundClip:"text"}:{backgroundClip:e}},transform(e){return e==="auto"?tT():e==="auto-gpu"?nT():e},vh(e){return e==="$100vh"?"var(--chakra-vh)":e},px(e){if(e==null)return e;const{unitless:t}=fT(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(dT(e)||e==null)return e;const t=typeof e=="string"&&!e.endsWith("deg");return typeof e=="number"||t?`${e}deg`:e},gradient:cT,blur:Yt("blur"),opacity:Yt("opacity"),brightness:Yt("brightness"),contrast:Yt("contrast"),dropShadow:Yt("drop-shadow"),grayscale:Yt("grayscale"),hueRotate:e=>Yt("hue-rotate")(U.degree(e)),invert:Yt("invert"),saturate:Yt("saturate"),sepia:Yt("sepia"),bgImage(e){return e==null||Hd(e)||Ud.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){const{space:t,divide:n}=sT[e]??{},r={flexDirection:e};return t&&(r[t]=1),n&&(r[n]=1),r}},x={borderWidths:wt("borderWidths"),borderStyles:wt("borderStyles"),colors:wt("colors"),borders:wt("borders"),gradients:wt("gradients",U.gradient),radii:wt("radii",U.px),space:wt("space",ca(U.vh,U.px)),spaceT:wt("space",ca(U.vh,U.px)),degreeT(e){return{property:e,transform:U.degree}},prop(e,t,n){return{property:e,scale:t,...t&&{transform:Sh({scale:t,transform:n})}}},propT(e,t){return{property:e,transform:t}},sizes:wt("sizes",ca(U.vh,U.px)),sizesT:wt("sizes",ca(U.vh,U.fraction)),shadows:wt("shadows"),logical:eT,blur:wt("blur",U.blur)},Ia={background:x.colors("background"),backgroundColor:x.colors("backgroundColor"),backgroundImage:x.gradients("backgroundImage"),backgroundSize:!0,backgroundPosition:!0,backgroundRepeat:!0,backgroundAttachment:!0,backgroundClip:{transform:U.bgClip},bgSize:x.prop("backgroundSize"),bgPosition:x.prop("backgroundPosition"),bg:x.colors("background"),bgColor:x.colors("backgroundColor"),bgPos:x.prop("backgroundPosition"),bgRepeat:x.prop("backgroundRepeat"),bgAttachment:x.prop("backgroundAttachment"),bgGradient:x.gradients("backgroundImage"),bgClip:{transform:U.bgClip}};Object.assign(Ia,{bgImage:Ia.backgroundImage,bgImg:Ia.backgroundImage});const X={border:x.borders("border"),borderWidth:x.borderWidths("borderWidth"),borderStyle:x.borderStyles("borderStyle"),borderColor:x.colors("borderColor"),borderRadius:x.radii("borderRadius"),borderTop:x.borders("borderTop"),borderBlockStart:x.borders("borderBlockStart"),borderTopLeftRadius:x.radii("borderTopLeftRadius"),borderStartStartRadius:x.logical({scale:"radii",property:{ltr:"borderTopLeftRadius",rtl:"borderTopRightRadius"}}),borderEndStartRadius:x.logical({scale:"radii",property:{ltr:"borderBottomLeftRadius",rtl:"borderBottomRightRadius"}}),borderTopRightRadius:x.radii("borderTopRightRadius"),borderStartEndRadius:x.logical({scale:"radii",property:{ltr:"borderTopRightRadius",rtl:"borderTopLeftRadius"}}),borderEndEndRadius:x.logical({scale:"radii",property:{ltr:"borderBottomRightRadius",rtl:"borderBottomLeftRadius"}}),borderRight:x.borders("borderRight"),borderInlineEnd:x.borders("borderInlineEnd"),borderBottom:x.borders("borderBottom"),borderBlockEnd:x.borders("borderBlockEnd"),borderBottomLeftRadius:x.radii("borderBottomLeftRadius"),borderBottomRightRadius:x.radii("borderBottomRightRadius"),borderLeft:x.borders("borderLeft"),borderInlineStart:{property:"borderInlineStart",scale:"borders"},borderInlineStartRadius:x.logical({scale:"radii",property:{ltr:["borderTopLeftRadius","borderBottomLeftRadius"],rtl:["borderTopRightRadius","borderBottomRightRadius"]}}),borderInlineEndRadius:x.logical({scale:"radii",property:{ltr:["borderTopRightRadius","borderBottomRightRadius"],rtl:["borderTopLeftRadius","borderBottomLeftRadius"]}}),borderX:x.borders(["borderLeft","borderRight"]),borderInline:x.borders("borderInline"),borderY:x.borders(["borderTop","borderBottom"]),borderBlock:x.borders("borderBlock"),borderTopWidth:x.borderWidths("borderTopWidth"),borderBlockStartWidth:x.borderWidths("borderBlockStartWidth"),borderTopColor:x.colors("borderTopColor"),borderBlockStartColor:x.colors("borderBlockStartColor"),borderTopStyle:x.borderStyles("borderTopStyle"),borderBlockStartStyle:x.borderStyles("borderBlockStartStyle"),borderBottomWidth:x.borderWidths("borderBottomWidth"),borderBlockEndWidth:x.borderWidths("borderBlockEndWidth"),borderBottomColor:x.colors("borderBottomColor"),borderBlockEndColor:x.colors("borderBlockEndColor"),borderBottomStyle:x.borderStyles("borderBottomStyle"),borderBlockEndStyle:x.borderStyles("borderBlockEndStyle"),borderLeftWidth:x.borderWidths("borderLeftWidth"),borderInlineStartWidth:x.borderWidths("borderInlineStartWidth"),borderLeftColor:x.colors("borderLeftColor"),borderInlineStartColor:x.colors("borderInlineStartColor"),borderLeftStyle:x.borderStyles("borderLeftStyle"),borderInlineStartStyle:x.borderStyles("borderInlineStartStyle"),borderRightWidth:x.borderWidths("borderRightWidth"),borderInlineEndWidth:x.borderWidths("borderInlineEndWidth"),borderRightColor:x.colors("borderRightColor"),borderInlineEndColor:x.colors("borderInlineEndColor"),borderRightStyle:x.borderStyles("borderRightStyle"),borderInlineEndStyle:x.borderStyles("borderInlineEndStyle"),borderTopRadius:x.radii(["borderTopLeftRadius","borderTopRightRadius"]),borderBottomRadius:x.radii(["borderBottomLeftRadius","borderBottomRightRadius"]),borderLeftRadius:x.radii(["borderTopLeftRadius","borderBottomLeftRadius"]),borderRightRadius:x.radii(["borderTopRightRadius","borderBottomRightRadius"])};Object.assign(X,{rounded:X.borderRadius,roundedTop:X.borderTopRadius,roundedTopLeft:X.borderTopLeftRadius,roundedTopRight:X.borderTopRightRadius,roundedTopStart:X.borderStartStartRadius,roundedTopEnd:X.borderStartEndRadius,roundedBottom:X.borderBottomRadius,roundedBottomLeft:X.borderBottomLeftRadius,roundedBottomRight:X.borderBottomRightRadius,roundedBottomStart:X.borderEndStartRadius,roundedBottomEnd:X.borderEndEndRadius,roundedLeft:X.borderLeftRadius,roundedRight:X.borderRightRadius,roundedStart:X.borderInlineStartRadius,roundedEnd:X.borderInlineEndRadius,borderStart:X.borderInlineStart,borderEnd:X.borderInlineEnd,borderTopStartRadius:X.borderStartStartRadius,borderTopEndRadius:X.borderStartEndRadius,borderBottomStartRadius:X.borderEndStartRadius,borderBottomEndRadius:X.borderEndEndRadius,borderStartRadius:X.borderInlineStartRadius,borderEndRadius:X.borderInlineEndRadius,borderStartWidth:X.borderInlineStartWidth,borderEndWidth:X.borderInlineEndWidth,borderStartColor:X.borderInlineStartColor,borderEndColor:X.borderInlineEndColor,borderStartStyle:X.borderInlineStartStyle,borderEndStyle:X.borderInlineEndStyle});const hT={color:x.colors("color"),textColor:x.colors("color"),fill:x.colors("fill"),stroke:x.colors("stroke"),accentColor:x.colors("accentColor"),textFillColor:x.colors("textFillColor")},Cl={alignItems:!0,alignContent:!0,justifyItems:!0,justifyContent:!0,flexWrap:!0,flexDirection:{transform:U.flexDirection},flex:!0,flexFlow:!0,flexGrow:!0,flexShrink:!0,flexBasis:x.sizes("flexBasis"),justifySelf:!0,alignSelf:!0,order:!0,placeItems:!0,placeContent:!0,placeSelf:!0,gap:x.space("gap"),rowGap:x.space("rowGap"),columnGap:x.space("columnGap")};Object.assign(Cl,{flexDir:Cl.flexDirection});const Ct={width:x.sizesT("width"),inlineSize:x.sizesT("inlineSize"),height:x.sizes("height"),blockSize:x.sizes("blockSize"),boxSize:x.sizes(["width","height"]),minWidth:x.sizes("minWidth"),minInlineSize:x.sizes("minInlineSize"),minHeight:x.sizes("minHeight"),minBlockSize:x.sizes("minBlockSize"),maxWidth:x.sizes("maxWidth"),maxInlineSize:x.sizes("maxInlineSize"),maxHeight:x.sizes("maxHeight"),maxBlockSize:x.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 o,i;return{[`@media screen and (min-width: ${((i=(o=t.__breakpoints)==null?void 0:o.get(e))==null?void 0:i.minW)??e})`]:{display:"none"}}}},hideBelow:{scale:"breakpoints",transform:(e,t)=>{var o,i;return{[`@media screen and (max-width: ${((i=(o=t.__breakpoints)==null?void 0:o.get(e))==null?void 0:i._minW)??e})`]:{display:"none"}}}},verticalAlign:!0,boxSizing:!0,boxDecorationBreak:!0,float:x.propT("float",U.float),objectFit:!0,objectPosition:!0,visibility:!0,isolation:!0};Object.assign(Ct,{w:Ct.width,h:Ct.height,minW:Ct.minWidth,maxW:Ct.maxWidth,minH:Ct.minHeight,maxH:Ct.maxHeight,overscroll:Ct.overscrollBehavior,overscrollX:Ct.overscrollBehaviorX,overscrollY:Ct.overscrollBehaviorY});const pT={filter:{transform:U.filter},blur:x.blur("--chakra-blur"),brightness:x.propT("--chakra-brightness",U.brightness),contrast:x.propT("--chakra-contrast",U.contrast),hueRotate:x.propT("--chakra-hue-rotate",U.hueRotate),invert:x.propT("--chakra-invert",U.invert),saturate:x.propT("--chakra-saturate",U.saturate),dropShadow:x.propT("--chakra-drop-shadow",U.dropShadow),backdropFilter:{transform:U.backdropFilter},backdropBlur:x.blur("--chakra-backdrop-blur"),backdropBrightness:x.propT("--chakra-backdrop-brightness",U.brightness),backdropContrast:x.propT("--chakra-backdrop-contrast",U.contrast),backdropHueRotate:x.propT("--chakra-backdrop-hue-rotate",U.hueRotate),backdropInvert:x.propT("--chakra-backdrop-invert",U.invert),backdropSaturate:x.propT("--chakra-backdrop-saturate",U.saturate)},mT={ring:{transform:U.ring},ringColor:x.colors("--chakra-ring-color"),ringOffset:x.prop("--chakra-ring-offset-width"),ringOffsetColor:x.colors("--chakra-ring-offset-color"),ringInset:x.prop("--chakra-ring-inset")},gT={appearance:!0,cursor:!0,resize:!0,userSelect:!0,pointerEvents:!0,outline:{transform:U.outline},outlineOffset:!0,outlineColor:x.colors("outlineColor")},Z1={gridGap:x.space("gridGap"),gridColumnGap:x.space("gridColumnGap"),gridRowGap:x.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};function yT(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}},ST=vT(yT),bT={border:"0px",clip:"rect(0, 0, 0, 0)",width:"1px",height:"1px",margin:"-1px",padding:"0px",overflow:"hidden",whiteSpace:"nowrap",position:"absolute"},xT={position:"static",width:"auto",height:"auto",clip:"auto",padding:"0",margin:"0",overflow:"visible",whiteSpace:"normal"},dc=(e,t,n)=>{const r={},o=ST(e,t,{});for(const i in o)i in n&&n[i]!=null||(r[i]=o[i]);return r},wT={srOnly:{transform(e){return e===!0?bT:e==="focusable"?xT:{}}},layerStyle:{processResult:!0,transform:(e,t,n)=>dc(t,`layerStyles.${e}`,n)},textStyle:{processResult:!0,transform:(e,t,n)=>dc(t,`textStyles.${e}`,n)},apply:{processResult:!0,transform:(e,t,n)=>dc(t,e,n)}},Bi={position:!0,pos:x.prop("position"),zIndex:x.prop("zIndex","zIndices"),inset:x.spaceT("inset"),insetX:x.spaceT(["left","right"]),insetInline:x.spaceT("insetInline"),insetY:x.spaceT(["top","bottom"]),insetBlock:x.spaceT("insetBlock"),top:x.spaceT("top"),insetBlockStart:x.spaceT("insetBlockStart"),bottom:x.spaceT("bottom"),insetBlockEnd:x.spaceT("insetBlockEnd"),left:x.spaceT("left"),insetInlineStart:x.logical({scale:"space",property:{ltr:"left",rtl:"right"}}),right:x.spaceT("right"),insetInlineEnd:x.logical({scale:"space",property:{ltr:"right",rtl:"left"}})};Object.assign(Bi,{insetStart:Bi.insetInlineStart,insetEnd:Bi.insetInlineEnd});const Kd={boxShadow:x.shadows("boxShadow"),mixBlendMode:!0,blendMode:x.prop("mixBlendMode"),backgroundBlendMode:!0,bgBlendMode:x.prop("backgroundBlendMode"),opacity:!0};Object.assign(Kd,{shadow:Kd.boxShadow});const se={margin:x.spaceT("margin"),marginTop:x.spaceT("marginTop"),marginBlockStart:x.spaceT("marginBlockStart"),marginRight:x.spaceT("marginRight"),marginInlineEnd:x.spaceT("marginInlineEnd"),marginBottom:x.spaceT("marginBottom"),marginBlockEnd:x.spaceT("marginBlockEnd"),marginLeft:x.spaceT("marginLeft"),marginInlineStart:x.spaceT("marginInlineStart"),marginX:x.spaceT(["marginInlineStart","marginInlineEnd"]),marginInline:x.spaceT("marginInline"),marginY:x.spaceT(["marginTop","marginBottom"]),marginBlock:x.spaceT("marginBlock"),padding:x.space("padding"),paddingTop:x.space("paddingTop"),paddingBlockStart:x.space("paddingBlockStart"),paddingRight:x.space("paddingRight"),paddingBottom:x.space("paddingBottom"),paddingBlockEnd:x.space("paddingBlockEnd"),paddingLeft:x.space("paddingLeft"),paddingInlineStart:x.space("paddingInlineStart"),paddingInlineEnd:x.space("paddingInlineEnd"),paddingX:x.space(["paddingInlineStart","paddingInlineEnd"]),paddingInline:x.space("paddingInline"),paddingY:x.space(["paddingTop","paddingBottom"]),paddingBlock:x.space("paddingBlock")};Object.assign(se,{m:se.margin,mt:se.marginTop,mr:se.marginRight,me:se.marginInlineEnd,marginEnd:se.marginInlineEnd,mb:se.marginBottom,ml:se.marginLeft,ms:se.marginInlineStart,marginStart:se.marginInlineStart,mx:se.marginX,my:se.marginY,p:se.padding,pt:se.paddingTop,py:se.paddingY,px:se.paddingX,pb:se.paddingBottom,pl:se.paddingLeft,ps:se.paddingInlineStart,paddingStart:se.paddingInlineStart,pr:se.paddingRight,pe:se.paddingInlineEnd,paddingEnd:se.paddingInlineEnd});const kT={scrollBehavior:!0,scrollSnapAlign:!0,scrollSnapStop:!0,scrollSnapType:!0,scrollMargin:x.spaceT("scrollMargin"),scrollMarginTop:x.spaceT("scrollMarginTop"),scrollMarginBottom:x.spaceT("scrollMarginBottom"),scrollMarginLeft:x.spaceT("scrollMarginLeft"),scrollMarginRight:x.spaceT("scrollMarginRight"),scrollMarginX:x.spaceT(["scrollMarginLeft","scrollMarginRight"]),scrollMarginY:x.spaceT(["scrollMarginTop","scrollMarginBottom"]),scrollPadding:x.spaceT("scrollPadding"),scrollPaddingTop:x.spaceT("scrollPaddingTop"),scrollPaddingBottom:x.spaceT("scrollPaddingBottom"),scrollPaddingLeft:x.spaceT("scrollPaddingLeft"),scrollPaddingRight:x.spaceT("scrollPaddingRight"),scrollPaddingX:x.spaceT(["scrollPaddingLeft","scrollPaddingRight"]),scrollPaddingY:x.spaceT(["scrollPaddingTop","scrollPaddingBottom"])},CT={fontFamily:x.prop("fontFamily","fonts"),fontSize:x.prop("fontSize","fontSizes",U.px),fontWeight:x.prop("fontWeight","fontWeights"),lineHeight:x.prop("lineHeight","lineHeights"),letterSpacing:x.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"}},TT={textDecorationColor:x.colors("textDecorationColor"),textDecoration:!0,textDecor:{property:"textDecoration"},textDecorationLine:!0,textDecorationStyle:!0,textDecorationThickness:!0,textUnderlineOffset:!0,textShadow:x.shadows("textShadow")},_T={clipPath:!0,transform:x.propT("transform",U.transform),transformOrigin:!0,translateX:x.spaceT("--chakra-translate-x"),translateY:x.spaceT("--chakra-translate-y"),skewX:x.degreeT("--chakra-skew-x"),skewY:x.degreeT("--chakra-skew-y"),scaleX:x.prop("--chakra-scale-x"),scaleY:x.prop("--chakra-scale-y"),scale:x.prop(["--chakra-scale-x","--chakra-scale-y"]),rotate:x.degreeT("--chakra-rotate")},PT={listStyleType:!0,listStylePosition:!0,listStylePos:x.prop("listStylePosition"),listStyleImage:!0,listStyleImg:x.prop("listStyleImage")},ET={transition:!0,transitionDelay:!0,animation:!0,willChange:!0,transitionDuration:x.prop("transitionDuration","transition.duration"),transitionProperty:x.prop("transitionProperty","transition.property"),transitionTimingFunction:x.prop("transitionTimingFunction","transition.easing")},bh=rn({},Ia,X,hT,Cl,Ct,pT,mT,gT,Z1,wT,Bi,Kd,se,kT,CT,TT,_T,PT,ET);Object.assign({},se,Ct,Cl,Z1,Bi);const $T=[...Object.keys(bh),...q1],AT={...bh,...ko},RT=e=>e in AT,MT=e=>t=>{if(!t.__breakpoints)return e;const{isResponsive:n,toArrayValue:r,media:o}=t.__breakpoints,i={};for(const s in e){let a=$t(e[s],t);if(a==null)continue;if(a=Rt(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"&&!DT(t),LT=(e,t)=>{if(t==null)return t;const n=s=>{var a,l;return(l=(a=e.__cssMap)==null?void 0:a[s])==null?void 0:l.varRef},r=s=>n(s)??s,[o,i]=zT(t);return t=n(o)??r(i)??r(t),t};function jT(e){const{configs:t={},pseudos:n={},theme:r}=e,o=(i,s=!1)=>{var c;const a=$t(i,r),l=MT(a)(r);let u={};for(let d in l){const f=l[d];let y=$t(f,r);d in n&&(d=n[d]),IT(d,y)&&(y=LT(r,y));let v=t[d];if(v===!0&&(v={property:d}),Rt(y)){u[d]=u[d]??{},u[d]=rn({},u[d],o(y,!0));continue}let S=((c=v==null?void 0:v.transform)==null?void 0:c.call(v,y,r,a))??y;S=v!=null&&v.processResult?o(S,!0):S;const _=$t(v==null?void 0:v.property,r);if(!s&&(v!=null&&v.static)){const p=$t(v.static,r);u=rn({},u,p)}if(_&&Array.isArray(_)){for(const p of _)u[p]=S;continue}if(_){_==="&"&&Rt(S)?u=rn({},u,S):u[_]=S;continue}if(Rt(S)){u=rn({},u,S);continue}u[d]=S}return u};return o}const J1=e=>t=>jT({theme:t,pseudos:ko,configs:bh})(e);function oe(e){return{definePartsStyle(t){return t},defineMultiStyleConfig(t){return{parts:e,...t}}}}function FT(e,t){if(Array.isArray(e))return e;if(Rt(e))return t(e);if(e!=null)return[e]}function BT(e,t){for(let n=t+1;n{rn(a,{[m]:c?h[m]:{[p]:h[m]}})});continue}if(!d){c?rn(a,h):a[p]=h;continue}a[p]=h}}return a}}function OT(e){return t=>{const{variant:n,size:r,theme:o}=t,i=VT(o);return rn({},$t(e.baseStyle??{},t),i(e,"sizes",r,t),i(e,"variants",n,t))}}function Dn(e){return X1(e,["styleConfig","size","variant","colorScheme"])}function eS(e){return Rt(e)&&e.reference?e.reference:String(e)}const Zl=(e,...t)=>t.map(eS).join(` ${e} `).replace(/calc/g,""),gg=(...e)=>`calc(${Zl("+",...e)})`,yg=(...e)=>`calc(${Zl("-",...e)})`,Gd=(...e)=>`calc(${Zl("*",...e)})`,vg=(...e)=>`calc(${Zl("/",...e)})`,Sg=e=>{const t=eS(e);return t!=null&&!Number.isNaN(parseFloat(t))?String(t).startsWith("-")?String(t).slice(1):`-${t}`:Gd(t,-1)},mn=Object.assign(e=>({add:(...t)=>mn(gg(e,...t)),subtract:(...t)=>mn(yg(e,...t)),multiply:(...t)=>mn(Gd(e,...t)),divide:(...t)=>mn(vg(e,...t)),negate:()=>mn(Sg(e)),toString:()=>e.toString()}),{add:gg,subtract:yg,multiply:Gd,divide:vg,negate:Sg});function NT(e,t="-"){return e.replace(/\s+/g,t)}function WT(e){const t=NT(e.toString());return HT(UT(t))}function UT(e){return e.includes("\\.")?e:!Number.isInteger(parseFloat(e.toString()))?e.replace(".","\\."):e}function HT(e){return e.replace(/[!-,/:-@[-^`{-~]/g,"\\$&")}function KT(e,t=""){return[t,e].filter(Boolean).join("-")}function GT(e,t){return`var(${e}${t?`, ${t}`:""})`}function XT(e,t=""){return WT(`--${KT(e,t)}`)}function F(e,t,n){const r=XT(e,n);return{variable:r,reference:GT(r,t)}}function YT(e,t){const n={};for(const r of t){if(Array.isArray(r)){const[o,i]=r;n[o]=F(`${e}-${o}`,i);continue}n[r]=F(`${e}-${r}`)}return n}const qT=["colors","borders","borderWidths","borderStyles","fonts","fontSizes","fontWeights","gradients","letterSpacings","lineHeights","radii","space","shadows","sizes","zIndices","transition","blur","breakpoints"];function QT(e){return N2(e,qT)}function ZT(e){return e.semanticTokens}function JT(e){const{__cssMap:t,__cssVars:n,__breakpoints:r,...o}=e;return o}function e_(e){const t=QT(e),n=ZT(e),r=i=>q1.includes(i)||i==="default",o={};return hg(t,(i,s)=>{i!=null&&(o[s.join(".")]={isSemantic:!1,value:i})}),hg(n,(i,s)=>{i!=null&&(o[s.join(".")]={isSemantic:!0,value:i})},{stop:i=>Object.keys(i).every(r)}),o}function bg(e,t){return F(String(e).replace(/\./g,"-"),void 0,t)}function t_(e){var s;const t=e_(e),n=(s=e.config)==null?void 0:s.cssVarPrefix;let r={};const o={};function i(a,l){const c=[String(a).split(".")[0],l].join(".");if(!t[c])return l;const{reference:f}=bg(c,n);return f}for(const[a,l]of Object.entries(t)){const{isSemantic:u,value:c}=l,{variable:d,reference:f}=bg(a,n);if(!u){if(a.startsWith("space")){const v=a.split("."),[S,..._]=v,p=`${S}.-${_.join(".")}`,h=mn.negate(c),m=mn.negate(f);o[p]={value:h,var:d,varRef:m}}r[d]=c,o[a]={value:c,var:d,varRef:f};continue}const y=Rt(c)?c:{default:c};r=rn(r,Object.entries(y).reduce((v,[S,_])=>{if(!_)return v;const p=i(a,`${_}`);if(S==="default")return v[d]=p,v;const h=(ko==null?void 0:ko[S])??S;return v[h]={[d]:p},v},{})),o[a]={value:f,var:d,varRef:f}}return{cssVars:r,cssMap:o}}function n_(e){const t=JT(e),{cssMap:n,cssVars:r}=t_(t);return Object.assign(t,{__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"},...r},__cssMap:n,__breakpoints:L2(t.breakpoints)}),t}function Z(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 Z(e,t)}function i(...c){for(const d of c)d in t||(t[d]=l(d));return Z(e,t)}function s(){return Object.fromEntries(Object.entries(t).map(([d,f])=>[d,f.selector]))}function a(){return Object.fromEntries(Object.entries(t).map(([d,f])=>[d,f.className]))}function l(c){const y=`chakra-${(["container","root"].includes(c??"")?[e]:[e,c]).filter(Boolean).join("__")}`;return{className:y,selector:`.${y}`,toString:()=>c}}return{parts:o,toPart:l,extend:i,selectors:s,classnames:a,get keys(){return Object.keys(t)},__type:{}}}const r_=Z("accordion").parts("root","container","button","panel","icon"),o_=Z("alert").parts("title","description","container","icon","spinner"),i_=Z("avatar").parts("label","badge","container","excessLabel","group"),s_=Z("breadcrumb").parts("link","item","container","separator");Z("button").parts();const a_=Z("checkbox").parts("control","icon","container","label");Z("progress").parts("track","filledTrack","label");const l_=Z("drawer").parts("overlay","dialogContainer","dialog","header","closeButton","body","footer"),u_=Z("editable").parts("preview","input","textarea"),c_=Z("form").parts("container","requiredIndicator","helperText"),d_=Z("formError").parts("text","icon"),f_=Z("input").parts("addon","field","element","group"),h_=Z("list").parts("container","item","icon"),p_=Z("menu").parts("button","list","item","groupTitle","icon","command","divider"),m_=Z("modal").parts("overlay","dialogContainer","dialog","header","closeButton","body","footer"),g_=Z("numberinput").parts("root","field","stepperGroup","stepper");Z("pininput").parts("field");const y_=Z("popover").parts("content","header","body","footer","popper","arrow","closeButton"),v_=Z("progress").parts("label","filledTrack","track"),S_=Z("radio").parts("container","control","label"),b_=Z("select").parts("field","icon"),x_=Z("slider").parts("container","track","thumb","filledTrack","mark"),w_=Z("stat").parts("container","label","helpText","number","icon"),k_=Z("switch").parts("container","track","thumb","label"),C_=Z("table").parts("table","thead","tbody","tr","th","td","tfoot","caption"),T_=Z("tabs").parts("root","tab","tablist","tabpanel","tabpanels","indicator"),__=Z("tag").parts("container","label","closeButton"),P_=Z("card").parts("container","header","body","footer");Z("stepper").parts("stepper","step","title","description","indicator","separator","icon","number");const{definePartsStyle:E_,defineMultiStyleConfig:$_}=oe(r_.keys),A_={borderTopWidth:"1px",borderColor:"inherit",_last:{borderBottomWidth:"1px"}},R_={transitionProperty:"common",transitionDuration:"normal",fontSize:"md",_focusVisible:{boxShadow:"outline"},_hover:{bg:"blackAlpha.50"},_disabled:{opacity:.4,cursor:"not-allowed"},px:"4",py:"2"},M_={pt:"2",px:"4",pb:"5"},z_={fontSize:"1.25em"},D_=E_({container:A_,button:R_,panel:M_,icon:z_}),I_=$_({baseStyle:D_});function Cr(e,t,n){return Math.min(Math.max(e,n),t)}class L_ extends Error{constructor(t){super(`Failed to parse color: "${t}"`)}}var xi=L_;function xh(e){if(typeof e!="string")throw new xi(e);if(e.trim().toLowerCase()==="transparent")return[0,0,0,0];let t=e.trim();t=U_.test(e)?B_(e):e;const n=V_.exec(t);if(n){const s=Array.from(n).slice(1);return[...s.slice(0,3).map(a=>parseInt(fs(a,2),16)),parseInt(fs(s[3]||"f",2),16)/255]}const r=O_.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=N_.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=W_.exec(t);if(i){const[s,a,l,u]=Array.from(i).slice(1).map(parseFloat);if(Cr(0,100,a)!==a)throw new xi(e);if(Cr(0,100,l)!==l)throw new xi(e);return[...H_(s,a,l),Number.isNaN(u)?1:u]}throw new xi(e)}function j_(e){let t=5381,n=e.length;for(;n;)t=t*33^e.charCodeAt(--n);return(t>>>0)%2341}const xg=e=>parseInt(e.replace(/_/g,""),36),F_="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=xg(t.substring(0,3)),r=xg(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 B_(e){const t=e.toLowerCase().trim(),n=F_[j_(t)];if(!n)throw new xi(e);return`#${n}`}const fs=(e,t)=>Array.from(Array(t)).map(()=>e).join(""),V_=new RegExp(`^#${fs("([a-f0-9])",3)}([a-f0-9])?$`,"i"),O_=new RegExp(`^#${fs("([a-f0-9]{2})",3)}([a-f0-9]{2})?$`,"i"),N_=new RegExp(`^rgba?\\(\\s*(\\d+)\\s*${fs(",\\s*(\\d+)\\s*",2)}(?:,\\s*([\\d.]+))?\\s*\\)$`,"i"),W_=/^hsla?\(\s*([\d.]+)\s*,\s*([\d.]+)%\s*,\s*([\d.]+)%(?:\s*,\s*([\d.]+))?\s*\)$/i,U_=/^[a-z]+$/i,wg=e=>Math.round(e*255),H_=(e,t,n)=>{let r=n/100;if(t===0)return[r,r,r].map(wg);const o=(e%360+360)%360/60,i=(1-Math.abs(2*r-1))*(t/100),s=i*(1-Math.abs(o%2-1));let a=0,l=0,u=0;o>=0&&o<1?(a=i,l=s):o>=1&&o<2?(a=s,l=i):o>=2&&o<3?(l=i,u=s):o>=3&&o<4?(l=s,u=i):o>=4&&o<5?(a=s,u=i):o>=5&&o<6&&(a=i,u=s);const c=r-i/2,d=a+c,f=l+c,y=u+c;return[d,f,y].map(wg)};function K_(e,t,n,r){return`rgba(${Cr(0,255,e).toFixed()}, ${Cr(0,255,t).toFixed()}, ${Cr(0,255,n).toFixed()}, ${parseFloat(Cr(0,1,r).toFixed(3))})`}function G_(e,t){const[n,r,o,i]=xh(e);return K_(n,r,o,i-t)}function X_(e){const[t,n,r,o]=xh(e);let i=s=>{const a=Cr(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)):""}`}const Y_=e=>Object.keys(e).length===0;function q_(e,t,n,r,o){for(t=t.split?t.split("."):t,r=0;r{const r=q_(e,`colors.${t}`,t);try{return X_(r),r}catch{return"#000000"}},Q_=e=>{const[t,n,r]=xh(e);return(t*299+n*587+r*114)/1e3},Z_=e=>t=>{const n=qe(t,e);return Q_(n)<128?"dark":"light"},J_=e=>t=>Z_(e)(t)==="dark",Lo=(e,t)=>n=>{const r=qe(n,e);return G_(r,1-t)};function kg(e="1rem",t="rgba(255, 255, 255, 0.15)"){return{backgroundImage:`linear-gradient( 45deg, ${t} 25%, transparent 25%, @@ -46,19 +46,19 @@ Error generating stack: `+i.message+` ${t} 75%, transparent 75%, transparent - )`,backgroundSize:`${e} ${e}`}}const X_=()=>`#${Math.floor(Math.random()*16777215).toString(16).padEnd(6,"0")}`;function q_(e){const t=X_();return!e||U_(e)?t:e.string&&e.colors?Z_(e.string,e.colors):e.string&&!e.colors?Q_(e.string):e.colors&&!e.string?J_(e.colors):t}function Q_(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 Z_(e,t){let n=0;if(e.length===0)return t[0];for(let r=0;rn.colorMode==="dark"?t:e}function Sh(e){const{orientation:t,vertical:n,horizontal:r}=e;return t?t==="vertical"?n:r:{}}function q1(e){return Rt(e)&&e.reference?e.reference:String(e)}const Jl=(e,...t)=>t.map(q1).join(` ${e} `).replace(/calc/g,""),bg=(...e)=>`calc(${Jl("+",...e)})`,xg=(...e)=>`calc(${Jl("-",...e)})`,Kd=(...e)=>`calc(${Jl("*",...e)})`,wg=(...e)=>`calc(${Jl("/",...e)})`,kg=e=>{const t=q1(e);return t!=null&&!Number.isNaN(parseFloat(t))?String(t).startsWith("-")?String(t).slice(1):`-${t}`:Kd(t,-1)},gn=Object.assign(e=>({add:(...t)=>gn(bg(e,...t)),subtract:(...t)=>gn(xg(e,...t)),multiply:(...t)=>gn(Kd(e,...t)),divide:(...t)=>gn(wg(e,...t)),negate:()=>gn(kg(e)),toString:()=>e.toString()}),{add:bg,subtract:xg,multiply:Kd,divide:wg,negate:kg});function eP(e){return!Number.isInteger(parseFloat(e.toString()))}function tP(e,t="-"){return e.replace(/\s+/g,t)}function Q1(e){const t=tP(e.toString());return t.includes("\\.")?e:eP(e)?t.replace(".","\\."):e}function nP(e,t=""){return[t,Q1(e)].filter(Boolean).join("-")}function rP(e,t){return`var(${Q1(e)}${t?`, ${t}`:""})`}function oP(e,t=""){return`--${nP(e,t)}`}function Re(e,t){const n=oP(e,t==null?void 0:t.prefix);return{variable:n,reference:rP(n,iP(t==null?void 0:t.fallback))}}function iP(e){return e==null?void 0:e.reference}const{definePartsStyle:Es,defineMultiStyleConfig:sP}=oe(JT.keys),ht=F("alert-fg"),An=F("alert-bg"),aP=Es({container:{bg:An.reference,px:"4",py:"3"},title:{fontWeight:"bold",lineHeight:"6",marginEnd:"2"},description:{lineHeight:"6"},icon:{color:ht.reference,flexShrink:0,marginEnd:"3",w:"5",h:"6"},spinner:{color:ht.reference,flexShrink:0,marginEnd:"3",w:"5",h:"5"}});function bh(e){const{theme:t,colorScheme:n}=e,r=Lo(`${n}.200`,.16)(t);return{light:`colors.${n}.100`,dark:r}}const lP=Es(e=>{const{colorScheme:t}=e,n=bh(e);return{container:{[ht.variable]:`colors.${t}.600`,[An.variable]:n.light,_dark:{[ht.variable]:`colors.${t}.200`,[An.variable]:n.dark}}}}),uP=Es(e=>{const{colorScheme:t}=e,n=bh(e);return{container:{[ht.variable]:`colors.${t}.600`,[An.variable]:n.light,_dark:{[ht.variable]:`colors.${t}.200`,[An.variable]:n.dark},paddingStart:"3",borderStartWidth:"4px",borderStartColor:ht.reference}}}),cP=Es(e=>{const{colorScheme:t}=e,n=bh(e);return{container:{[ht.variable]:`colors.${t}.600`,[An.variable]:n.light,_dark:{[ht.variable]:`colors.${t}.200`,[An.variable]:n.dark},pt:"2",borderTopWidth:"4px",borderTopColor:ht.reference}}}),dP=Es(e=>{const{colorScheme:t}=e;return{container:{[ht.variable]:"colors.white",[An.variable]:`colors.${t}.600`,_dark:{[ht.variable]:"colors.gray.900",[An.variable]:`colors.${t}.200`},color:ht.reference}}}),fP={subtle:lP,"left-accent":uP,"top-accent":cP,solid:dP},hP=sP({baseStyle:aP,variants:fP,defaultProps:{variant:"subtle",colorScheme:"blue"}}),Z1={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"},pP={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"},mP={sm:"640px",md:"768px",lg:"1024px",xl:"1280px"},J1={...Z1,...pP,container:mP},gP=e=>typeof e=="function";function Ze(e,...t){return gP(e)?e(...t):e}const{definePartsStyle:eS,defineMultiStyleConfig:yP}=oe(e_.keys),Co=F("avatar-border-color"),Bi=F("avatar-bg"),fs=F("avatar-font-size"),jo=F("avatar-size"),vP={borderRadius:"full",border:"0.2em solid",borderColor:Co.reference,[Co.variable]:"white",_dark:{[Co.variable]:"colors.gray.800"}},SP={bg:Bi.reference,fontSize:fs.reference,width:jo.reference,height:jo.reference,lineHeight:"1",[Bi.variable]:"colors.gray.200",_dark:{[Bi.variable]:"colors.whiteAlpha.400"}},bP=e=>{const{name:t,theme:n}=e,r=t?q_({string:t}):"colors.gray.400",o=Y_(r)(n);let i="white";return o||(i="gray.800"),{bg:Bi.reference,fontSize:fs.reference,color:i,borderColor:Co.reference,verticalAlign:"top",width:jo.reference,height:jo.reference,"&:not([data-loaded])":{[Bi.variable]:r},[Co.variable]:"colors.white",_dark:{[Co.variable]:"colors.gray.800"}}},xP={fontSize:fs.reference,lineHeight:"1"},wP=eS(e=>({badge:Ze(vP,e),excessLabel:Ze(SP,e),container:Ze(bP,e),label:xP}));function jn(e){const t=e!=="100%"?J1[e]:void 0;return eS({container:{[jo.variable]:t??e,[fs.variable]:`calc(${t??e} / 2.5)`},excessLabel:{[jo.variable]:t??e,[fs.variable]:`calc(${t??e} / 2.5)`}})}const kP={"2xs":jn(4),xs:jn(6),sm:jn(8),md:jn(12),lg:jn(16),xl:jn(24),"2xl":jn(32),full:jn("100%")},CP=yP({baseStyle:wP,sizes:kP,defaultProps:{size:"md"}}),Ce=UT("badge",["bg","color","shadow"]),TP={px:1,textTransform:"uppercase",fontSize:"xs",borderRadius:"sm",fontWeight:"bold",bg:Ce.bg.reference,color:Ce.color.reference,boxShadow:Ce.shadow.reference},_P=e=>{const{colorScheme:t,theme:n}=e,r=Lo(`${t}.500`,.6)(n);return{[Ce.bg.variable]:`colors.${t}.500`,[Ce.color.variable]:"colors.white",_dark:{[Ce.bg.variable]:r,[Ce.color.variable]:"colors.whiteAlpha.800"}}},PP=e=>{const{colorScheme:t,theme:n}=e,r=Lo(`${t}.200`,.16)(n);return{[Ce.bg.variable]:`colors.${t}.100`,[Ce.color.variable]:`colors.${t}.800`,_dark:{[Ce.bg.variable]:r,[Ce.color.variable]:`colors.${t}.200`}}},EP=e=>{const{colorScheme:t,theme:n}=e,r=Lo(`${t}.200`,.8)(n);return{[Ce.color.variable]:`colors.${t}.500`,_dark:{[Ce.color.variable]:r},[Ce.shadow.variable]:`inset 0 0 0px 1px ${Ce.color.reference}`}},$P={solid:_P,subtle:PP,outline:EP},Vi={baseStyle:TP,variants:$P,defaultProps:{variant:"subtle",colorScheme:"gray"}},{defineMultiStyleConfig:AP,definePartsStyle:RP}=oe(t_.keys),cc=F("breadcrumb-link-decor"),MP={transitionProperty:"common",transitionDuration:"fast",transitionTimingFunction:"ease-out",outline:"none",color:"inherit",textDecoration:cc.reference,[cc.variable]:"none","&:not([aria-current=page])":{cursor:"pointer",_hover:{[cc.variable]:"underline"},_focusVisible:{boxShadow:"outline"}}},zP=RP({link:MP}),DP=AP({baseStyle:zP}),IP={lineHeight:"1.2",borderRadius:"md",fontWeight:"semibold",transitionProperty:"common",transitionDuration:"normal",_focusVisible:{boxShadow:"outline"},_disabled:{opacity:.4,cursor:"not-allowed",boxShadow:"none"},_hover:{_disabled:{bg:"initial"}}},tS=e=>{const{colorScheme:t,theme: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=Lo(`${t}.200`,.12)(n),o=Lo(`${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)}}},LP=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"},...Ze(tS,e)}},jP={yellow:{bg:"yellow.400",color:"black",hoverBg:"yellow.500",activeBg:"yellow.600"},cyan:{bg:"cyan.400",color:"black",hoverBg:"cyan.500",activeBg:"cyan.600"}},FP=e=>{const{colorScheme:t}=e;if(t==="gray"){const a=j("gray.100","whiteAlpha.200")(e);return{bg:a,color:j("gray.800","whiteAlpha.900")(e),_hover:{bg:j("gray.200","whiteAlpha.300")(e),_disabled:{bg:a}},_active:{bg:j("gray.300","whiteAlpha.400")(e)}}}const{bg:n=`${t}.500`,color:r="white",hoverBg:o=`${t}.600`,activeBg:i=`${t}.700`}=jP[t]??{},s=j(n,`${t}.200`)(e);return{bg:s,color:j(r,"gray.800")(e),_hover:{bg:j(o,`${t}.300`)(e),_disabled:{bg:s}},_active:{bg:j(i,`${t}.400`)(e)}}},BP=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)}}},VP={bg:"none",color:"inherit",display:"inline",lineHeight:"inherit",m:"0",p:"0"},OP={ghost:tS,outline:LP,solid:FP,link:BP,unstyled:VP},NP={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"}},WP={baseStyle:IP,variants:OP,sizes:NP,defaultProps:{variant:"solid",size:"md",colorScheme:"gray"}},{definePartsStyle:Er,defineMultiStyleConfig:UP}=oe(w_.keys),Tl=F("card-bg"),wn=F("card-padding"),nS=F("card-shadow"),La=F("card-radius"),rS=F("card-border-width","0"),oS=F("card-border-color"),HP=Er({container:{[Tl.variable]:"colors.chakra-body-bg",backgroundColor:Tl.reference,boxShadow:nS.reference,borderRadius:La.reference,color:"chakra-body-text",borderWidth:rS.reference,borderColor:oS.reference},body:{padding:wn.reference,flex:"1 1 0%"},header:{padding:wn.reference},footer:{padding:wn.reference}}),KP={sm:Er({container:{[La.variable]:"radii.base",[wn.variable]:"space.3"}}),md:Er({container:{[La.variable]:"radii.md",[wn.variable]:"space.5"}}),lg:Er({container:{[La.variable]:"radii.xl",[wn.variable]:"space.7"}})},GP={elevated:Er({container:{[nS.variable]:"shadows.base",_dark:{[Tl.variable]:"colors.gray.700"}}}),outline:Er({container:{[rS.variable]:"1px",[oS.variable]:"colors.chakra-border-color"}}),filled:Er({container:{[Tl.variable]:"colors.chakra-subtle-bg"}}),unstyled:{body:{[wn.variable]:0},header:{[wn.variable]:0},footer:{[wn.variable]:0}}},YP=UP({baseStyle:HP,variants:GP,sizes:KP,defaultProps:{variant:"elevated",size:"md"}}),{definePartsStyle:ja,defineMultiStyleConfig:XP}=oe(n_.keys),Oi=F("checkbox-size"),qP=e=>{const{colorScheme:t}=e;return{w:Oi.reference,h:Oi.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)}}},QP={_disabled:{cursor:"not-allowed"}},ZP={userSelect:"none",_disabled:{opacity:.4}},JP={transitionProperty:"transform",transitionDuration:"normal"},eE=ja(e=>({icon:JP,container:QP,control:Ze(qP,e),label:ZP})),tE={sm:ja({control:{[Oi.variable]:"sizes.3"},label:{fontSize:"sm"},icon:{fontSize:"3xs"}}),md:ja({control:{[Oi.variable]:"sizes.4"},label:{fontSize:"md"},icon:{fontSize:"2xs"}}),lg:ja({control:{[Oi.variable]:"sizes.5"},label:{fontSize:"lg"},icon:{fontSize:"2xs"}})},Nn=XP({baseStyle:eE,sizes:tE,defaultProps:{size:"md",colorScheme:"blue"}}),Ni=Re("close-button-size"),ci=Re("close-button-bg"),nE={w:[Ni.reference],h:[Ni.reference],borderRadius:"md",transitionProperty:"common",transitionDuration:"normal",_disabled:{opacity:.4,cursor:"not-allowed",boxShadow:"none"},_hover:{[ci.variable]:"colors.blackAlpha.100",_dark:{[ci.variable]:"colors.whiteAlpha.100"}},_active:{[ci.variable]:"colors.blackAlpha.200",_dark:{[ci.variable]:"colors.whiteAlpha.200"}},_focusVisible:{boxShadow:"outline"},bg:ci.reference},rE={lg:{[Ni.variable]:"sizes.10",fontSize:"md"},md:{[Ni.variable]:"sizes.8",fontSize:"xs"},sm:{[Ni.variable]:"sizes.6",fontSize:"2xs"}},oE={baseStyle:nE,sizes:rE,defaultProps:{size:"md"}},{variants:iE,defaultProps:sE}=Vi,aE={fontFamily:"mono",fontSize:"sm",px:"0.2em",borderRadius:"sm",bg:Ce.bg.reference,color:Ce.color.reference,boxShadow:Ce.shadow.reference},lE={baseStyle:aE,variants:iE,defaultProps:sE},uE={w:"100%",mx:"auto",maxW:"prose",px:"4"},cE={baseStyle:uE},dE={opacity:.6,borderColor:"inherit"},fE={borderStyle:"solid"},hE={borderStyle:"dashed"},pE={solid:fE,dashed:hE},mE={baseStyle:dE,variants:pE,defaultProps:{variant:"solid"}},{definePartsStyle:Gd,defineMultiStyleConfig:gE}=oe(r_.keys),dc=F("drawer-bg"),fc=F("drawer-box-shadow");function Kr(e){return Gd(e==="full"?{dialog:{maxW:"100vw",h:"100vh"}}:{dialog:{maxW:e}})}const yE={bg:"blackAlpha.600",zIndex:"modal"},vE={display:"flex",zIndex:"modal",justifyContent:"center"},SE=e=>{const{isFullHeight:t}=e;return{...t&&{height:"100vh"},zIndex:"modal",maxH:"100vh",color:"inherit",[dc.variable]:"colors.white",[fc.variable]:"shadows.lg",_dark:{[dc.variable]:"colors.gray.700",[fc.variable]:"shadows.dark-lg"},bg:dc.reference,boxShadow:fc.reference}},bE={px:"6",py:"4",fontSize:"xl",fontWeight:"semibold"},xE={position:"absolute",top:"2",insetEnd:"3"},wE={px:"6",py:"2",flex:"1",overflow:"auto"},kE={px:"6",py:"4"},CE=Gd(e=>({overlay:yE,dialogContainer:vE,dialog:Ze(SE,e),header:bE,closeButton:xE,body:wE,footer:kE})),TE={xs:Kr("xs"),sm:Kr("md"),md:Kr("lg"),lg:Kr("2xl"),xl:Kr("4xl"),full:Kr("full")},_E=gE({baseStyle:CE,sizes:TE,defaultProps:{size:"xs"}}),{definePartsStyle:PE,defineMultiStyleConfig:EE}=oe(o_.keys),$E={borderRadius:"md",py:"1",transitionProperty:"common",transitionDuration:"normal"},AE={borderRadius:"md",py:"1",transitionProperty:"common",transitionDuration:"normal",width:"full",_focusVisible:{boxShadow:"outline"},_placeholder:{opacity:.6}},RE={borderRadius:"md",py:"1",transitionProperty:"common",transitionDuration:"normal",width:"full",_focusVisible:{boxShadow:"outline"},_placeholder:{opacity:.6}},ME=PE({preview:$E,input:AE,textarea:RE}),zE=EE({baseStyle:ME}),{definePartsStyle:DE,defineMultiStyleConfig:IE}=oe(i_.keys),To=F("form-control-color"),LE={marginStart:"1",[To.variable]:"colors.red.500",_dark:{[To.variable]:"colors.red.300"},color:To.reference},jE={mt:"2",[To.variable]:"colors.gray.600",_dark:{[To.variable]:"colors.whiteAlpha.600"},color:To.reference,lineHeight:"normal",fontSize:"sm"},FE=DE({container:{width:"100%",position:"relative"},requiredIndicator:LE,helperText:jE}),BE=IE({baseStyle:FE}),{definePartsStyle:VE,defineMultiStyleConfig:OE}=oe(s_.keys),_o=F("form-error-color"),NE={[_o.variable]:"colors.red.500",_dark:{[_o.variable]:"colors.red.300"},color:_o.reference,mt:"2",fontSize:"sm",lineHeight:"normal"},WE={marginEnd:"0.5em",[_o.variable]:"colors.red.500",_dark:{[_o.variable]:"colors.red.300"},color:_o.reference},UE=VE({text:NE,icon:WE}),HE=OE({baseStyle:UE}),KE={fontSize:"md",marginEnd:"3",mb:"2",fontWeight:"medium",transitionProperty:"common",transitionDuration:"normal",opacity:1,_disabled:{opacity:.4}},GE={baseStyle:KE},YE={fontFamily:"heading",fontWeight:"bold"},XE={"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}},qE={baseStyle:YE,sizes:XE,defaultProps:{size:"xl"}},{definePartsStyle:bn,defineMultiStyleConfig:QE}=oe(a_.keys),io=F("input-height"),so=F("input-font-size"),ao=F("input-padding"),lo=F("input-border-radius"),ZE=bn({addon:{height:io.reference,fontSize:so.reference,px:ao.reference,borderRadius:lo.reference},field:{width:"100%",height:io.reference,fontSize:so.reference,px:ao.reference,borderRadius:lo.reference,minWidth:0,outline:0,position:"relative",appearance:"none",transitionProperty:"common",transitionDuration:"normal",_disabled:{opacity:.4,cursor:"not-allowed"}}}),Fn={lg:{[so.variable]:"fontSizes.lg",[ao.variable]:"space.4",[lo.variable]:"radii.md",[io.variable]:"sizes.12"},md:{[so.variable]:"fontSizes.md",[ao.variable]:"space.4",[lo.variable]:"radii.md",[io.variable]:"sizes.10"},sm:{[so.variable]:"fontSizes.sm",[ao.variable]:"space.3",[lo.variable]:"radii.sm",[io.variable]:"sizes.8"},xs:{[so.variable]:"fontSizes.xs",[ao.variable]:"space.2",[lo.variable]:"radii.sm",[io.variable]:"sizes.6"}},JE={lg:bn({field:Fn.lg,group:Fn.lg}),md:bn({field:Fn.md,group:Fn.md}),sm:bn({field:Fn.sm,group:Fn.sm}),xs:bn({field:Fn.xs,group:Fn.xs})};function xh(e){const{focusBorderColor:t,errorBorderColor:n}=e;return{focusBorderColor:t||j("blue.500","blue.300")(e),errorBorderColor:n||j("red.500","red.300")(e)}}const e5=bn(e=>{const{theme:t}=e,{focusBorderColor:n,errorBorderColor:r}=xh(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)}}}),t5=bn(e=>{const{theme:t}=e,{focusBorderColor:n,errorBorderColor:r}=xh(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)}}}),n5=bn(e=>{const{theme:t}=e,{focusBorderColor:n,errorBorderColor:r}=xh(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"}}}),r5=bn({field:{bg:"transparent",px:"0",height:"auto"},addon:{bg:"transparent",px:"0",height:"auto"}}),o5={outline:e5,filled:t5,flushed:n5,unstyled:r5},Q=QE({baseStyle:ZE,sizes:JE,variants:o5,defaultProps:{size:"md",variant:"outline"}}),hc=F("kbd-bg"),i5={[hc.variable]:"colors.gray.100",_dark:{[hc.variable]:"colors.whiteAlpha.100"},bg:hc.reference,borderRadius:"md",borderWidth:"1px",borderBottomWidth:"3px",fontSize:"0.8em",fontWeight:"bold",lineHeight:"normal",px:"0.4em",whiteSpace:"nowrap"},s5={baseStyle:i5},a5={transitionProperty:"common",transitionDuration:"fast",transitionTimingFunction:"ease-out",cursor:"pointer",textDecoration:"none",outline:"none",color:"inherit",_hover:{textDecoration:"underline"},_focusVisible:{boxShadow:"outline"}},l5={baseStyle:a5},{defineMultiStyleConfig:u5,definePartsStyle:c5}=oe(l_.keys),d5={marginEnd:"2",display:"inline",verticalAlign:"text-bottom"},f5=c5({icon:d5}),h5=u5({baseStyle:f5}),{defineMultiStyleConfig:p5,definePartsStyle:m5}=oe(u_.keys),Zt=F("menu-bg"),pc=F("menu-shadow"),g5={[Zt.variable]:"#fff",[pc.variable]:"shadows.sm",_dark:{[Zt.variable]:"colors.gray.700",[pc.variable]:"shadows.dark-lg"},color:"inherit",minW:"3xs",py:"2",zIndex:"dropdown",borderRadius:"md",borderWidth:"1px",bg:Zt.reference,boxShadow:pc.reference},y5={py:"1.5",px:"3",transitionProperty:"background",transitionDuration:"ultra-fast",transitionTimingFunction:"ease-in",_focus:{[Zt.variable]:"colors.gray.100",_dark:{[Zt.variable]:"colors.whiteAlpha.100"}},_active:{[Zt.variable]:"colors.gray.200",_dark:{[Zt.variable]:"colors.whiteAlpha.200"}},_expanded:{[Zt.variable]:"colors.gray.100",_dark:{[Zt.variable]:"colors.whiteAlpha.100"}},_disabled:{opacity:.4,cursor:"not-allowed"},bg:Zt.reference},v5={mx:4,my:2,fontWeight:"semibold",fontSize:"sm"},S5={display:"inline-flex",alignItems:"center",justifyContent:"center",flexShrink:0},b5={opacity:.6},x5={border:0,borderBottom:"1px solid",borderColor:"inherit",my:"2",opacity:.6},w5={transitionProperty:"common",transitionDuration:"normal"},k5=m5({button:w5,list:g5,item:y5,groupTitle:v5,icon:S5,command:b5,divider:x5}),C5=p5({baseStyle:k5}),{defineMultiStyleConfig:T5,definePartsStyle:Yd}=oe(c_.keys),mc=F("modal-bg"),gc=F("modal-shadow"),_5={bg:"blackAlpha.600",zIndex:"modal"},P5=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"}},E5=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,[mc.variable]:"colors.white",[gc.variable]:"shadows.lg",_dark:{[mc.variable]:"colors.gray.700",[gc.variable]:"shadows.dark-lg"},bg:mc.reference,boxShadow:gc.reference}},$5={px:"6",py:"4",fontSize:"xl",fontWeight:"semibold"},A5={position:"absolute",top:"2",insetEnd:"3"},R5=e=>{const{scrollBehavior:t}=e;return{px:"6",py:"2",flex:"1",overflow:t==="inside"?"auto":void 0}},M5={px:"6",py:"4"},z5=Yd(e=>({overlay:_5,dialogContainer:Ze(P5,e),dialog:Ze(E5,e),header:$5,closeButton:A5,body:Ze(R5,e),footer:M5}));function Lt(e){return Yd(e==="full"?{dialog:{maxW:"100vw",minH:"$100vh",my:"0",borderRadius:"0"}}:{dialog:{maxW:e}})}const D5={xs:Lt("xs"),sm:Lt("sm"),md:Lt("md"),lg:Lt("lg"),xl:Lt("xl"),"2xl":Lt("2xl"),"3xl":Lt("3xl"),"4xl":Lt("4xl"),"5xl":Lt("5xl"),"6xl":Lt("6xl"),full:Lt("full")},I5=T5({baseStyle:z5,sizes:D5,defaultProps:{size:"md"}}),iS={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"}},{defineMultiStyleConfig:L5,definePartsStyle:sS}=oe(d_.keys),wh=Re("number-input-stepper-width"),aS=Re("number-input-input-padding"),j5=gn(wh).add("0.5rem").toString(),yc=Re("number-input-bg"),vc=Re("number-input-color"),Sc=Re("number-input-border-color"),F5={[wh.variable]:"sizes.6",[aS.variable]:j5},B5=e=>{var t;return((t=Ze(Q.baseStyle,e))==null?void 0:t.field)??{}},V5={width:wh.reference},O5={borderStart:"1px solid",borderStartColor:Sc.reference,color:vc.reference,bg:yc.reference,[vc.variable]:"colors.chakra-body-text",[Sc.variable]:"colors.chakra-border-color",_dark:{[vc.variable]:"colors.whiteAlpha.800",[Sc.variable]:"colors.whiteAlpha.300"},_active:{[yc.variable]:"colors.gray.200",_dark:{[yc.variable]:"colors.whiteAlpha.300"}},_disabled:{opacity:.4,cursor:"not-allowed"}},N5=sS(e=>({root:F5,field:Ze(B5,e)??{},stepperGroup:V5,stepper:O5}));function da(e){var i,s;const t=(i=Q.sizes)==null?void 0:i[e],n={lg:"md",md:"md",sm:"sm",xs:"sm"},r=((s=t.field)==null?void 0:s.fontSize)??"md",o=iS.fontSizes[r];return sS({field:{...t.field,paddingInlineEnd:aS.reference,verticalAlign:"top"},stepper:{fontSize:gn(o).multiply(.75).toString(),_first:{borderTopEndRadius:n[e]},_last:{borderBottomEndRadius:n[e],mt:"-1px",borderTopWidth:1}}})}const W5={xs:da("xs"),sm:da("sm"),md:da("md"),lg:da("lg")},U5=L5({baseStyle:N5,sizes:W5,variants:Q.variants,defaultProps:Q.defaultProps});var iy;const H5={...(iy=Q.baseStyle)==null?void 0:iy.field,textAlign:"center"},K5={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"}};var sy;const G5={outline:e=>{var t,n;return((n=Ze((t=Q.variants)==null?void 0:t.outline,e))==null?void 0:n.field)??{}},flushed:e=>{var t,n;return((n=Ze((t=Q.variants)==null?void 0:t.flushed,e))==null?void 0:n.field)??{}},filled:e=>{var t,n;return((n=Ze((t=Q.variants)==null?void 0:t.filled,e))==null?void 0:n.field)??{}},unstyled:((sy=Q.variants)==null?void 0:sy.unstyled.field)??{}},Y5={baseStyle:H5,sizes:K5,variants:G5,defaultProps:Q.defaultProps},{defineMultiStyleConfig:X5,definePartsStyle:q5}=oe(f_.keys),fa=Re("popper-bg"),Q5=Re("popper-arrow-bg"),Cg=Re("popper-arrow-shadow-color"),Z5={zIndex:"popover"},J5={[fa.variable]:"colors.white",bg:fa.reference,[Q5.variable]:fa.reference,[Cg.variable]:"colors.gray.200",_dark:{[fa.variable]:"colors.gray.700",[Cg.variable]:"colors.whiteAlpha.300"},width:"xs",border:"1px solid",borderColor:"inherit",borderRadius:"md",boxShadow:"sm",zIndex:"inherit",_focusVisible:{outline:0,boxShadow:"outline"}},e$={px:3,py:2,borderBottomWidth:"1px"},t$={px:3,py:2},n$={px:3,py:2,borderTopWidth:"1px"},r$={position:"absolute",borderRadius:"md",top:1,insetEnd:2,padding:2},o$=q5({popper:Z5,content:J5,header:e$,body:t$,footer:n$,closeButton:r$}),i$=X5({baseStyle:o$}),{defineMultiStyleConfig:s$,definePartsStyle:xi}=oe(h_.keys),a$=e=>{const{colorScheme:t,theme:n,isIndeterminate:r,hasStripe:o}=e,i=j(Sg(),Sg("1rem","rgba(0,0,0,0.1)"))(e),s=j(`${t}.500`,`${t}.200`)(e),a=`linear-gradient( + )`,backgroundSize:`${e} ${e}`}}const eP=()=>`#${Math.floor(Math.random()*16777215).toString(16).padEnd(6,"0")}`;function tP(e){const t=eP();return!e||Y_(e)?t:e.string&&e.colors?rP(e.string,e.colors):e.string&&!e.colors?nP(e.string):e.colors&&!e.string?oP(e.colors):t}function nP(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 rP(e,t){let n=0;if(e.length===0)return t[0];for(let r=0;rn.colorMode==="dark"?t:e}function wh(e){const{orientation:t,vertical:n,horizontal:r}=e;return t?t==="vertical"?n:r:{}}function tS(e){return Rt(e)&&e.reference?e.reference:String(e)}const Jl=(e,...t)=>t.map(tS).join(` ${e} `).replace(/calc/g,""),Cg=(...e)=>`calc(${Jl("+",...e)})`,Tg=(...e)=>`calc(${Jl("-",...e)})`,Xd=(...e)=>`calc(${Jl("*",...e)})`,_g=(...e)=>`calc(${Jl("/",...e)})`,Pg=e=>{const t=tS(e);return t!=null&&!Number.isNaN(parseFloat(t))?String(t).startsWith("-")?String(t).slice(1):`-${t}`:Xd(t,-1)},gn=Object.assign(e=>({add:(...t)=>gn(Cg(e,...t)),subtract:(...t)=>gn(Tg(e,...t)),multiply:(...t)=>gn(Xd(e,...t)),divide:(...t)=>gn(_g(e,...t)),negate:()=>gn(Pg(e)),toString:()=>e.toString()}),{add:Cg,subtract:Tg,multiply:Xd,divide:_g,negate:Pg});function iP(e){return!Number.isInteger(parseFloat(e.toString()))}function sP(e,t="-"){return e.replace(/\s+/g,t)}function nS(e){const t=sP(e.toString());return t.includes("\\.")?e:iP(e)?t.replace(".","\\."):e}function aP(e,t=""){return[t,nS(e)].filter(Boolean).join("-")}function lP(e,t){return`var(${nS(e)}${t?`, ${t}`:""})`}function uP(e,t=""){return`--${aP(e,t)}`}function Re(e,t){const n=uP(e,t==null?void 0:t.prefix);return{variable:n,reference:lP(n,cP(t==null?void 0:t.fallback))}}function cP(e){return e==null?void 0:e.reference}const{definePartsStyle:Es,defineMultiStyleConfig:dP}=oe(o_.keys),ht=F("alert-fg"),An=F("alert-bg"),fP=Es({container:{bg:An.reference,px:"4",py:"3"},title:{fontWeight:"bold",lineHeight:"6",marginEnd:"2"},description:{lineHeight:"6"},icon:{color:ht.reference,flexShrink:0,marginEnd:"3",w:"5",h:"6"},spinner:{color:ht.reference,flexShrink:0,marginEnd:"3",w:"5",h:"5"}});function kh(e){const{theme:t,colorScheme:n}=e,r=Lo(`${n}.200`,.16)(t);return{light:`colors.${n}.100`,dark:r}}const hP=Es(e=>{const{colorScheme:t}=e,n=kh(e);return{container:{[ht.variable]:`colors.${t}.600`,[An.variable]:n.light,_dark:{[ht.variable]:`colors.${t}.200`,[An.variable]:n.dark}}}}),pP=Es(e=>{const{colorScheme:t}=e,n=kh(e);return{container:{[ht.variable]:`colors.${t}.600`,[An.variable]:n.light,_dark:{[ht.variable]:`colors.${t}.200`,[An.variable]:n.dark},paddingStart:"3",borderStartWidth:"4px",borderStartColor:ht.reference}}}),mP=Es(e=>{const{colorScheme:t}=e,n=kh(e);return{container:{[ht.variable]:`colors.${t}.600`,[An.variable]:n.light,_dark:{[ht.variable]:`colors.${t}.200`,[An.variable]:n.dark},pt:"2",borderTopWidth:"4px",borderTopColor:ht.reference}}}),gP=Es(e=>{const{colorScheme:t}=e;return{container:{[ht.variable]:"colors.white",[An.variable]:`colors.${t}.600`,_dark:{[ht.variable]:"colors.gray.900",[An.variable]:`colors.${t}.200`},color:ht.reference}}}),yP={subtle:hP,"left-accent":pP,"top-accent":mP,solid:gP},vP=dP({baseStyle:fP,variants:yP,defaultProps:{variant:"subtle",colorScheme:"blue"}}),rS={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"},SP={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"},bP={sm:"640px",md:"768px",lg:"1024px",xl:"1280px"},oS={...rS,...SP,container:bP},xP=e=>typeof e=="function";function Ze(e,...t){return xP(e)?e(...t):e}const{definePartsStyle:iS,defineMultiStyleConfig:wP}=oe(i_.keys),Co=F("avatar-border-color"),Vi=F("avatar-bg"),hs=F("avatar-font-size"),jo=F("avatar-size"),kP={borderRadius:"full",border:"0.2em solid",borderColor:Co.reference,[Co.variable]:"white",_dark:{[Co.variable]:"colors.gray.800"}},CP={bg:Vi.reference,fontSize:hs.reference,width:jo.reference,height:jo.reference,lineHeight:"1",[Vi.variable]:"colors.gray.200",_dark:{[Vi.variable]:"colors.whiteAlpha.400"}},TP=e=>{const{name:t,theme:n}=e,r=t?tP({string:t}):"colors.gray.400",o=J_(r)(n);let i="white";return o||(i="gray.800"),{bg:Vi.reference,fontSize:hs.reference,color:i,borderColor:Co.reference,verticalAlign:"top",width:jo.reference,height:jo.reference,"&:not([data-loaded])":{[Vi.variable]:r},[Co.variable]:"colors.white",_dark:{[Co.variable]:"colors.gray.800"}}},_P={fontSize:hs.reference,lineHeight:"1"},PP=iS(e=>({badge:Ze(kP,e),excessLabel:Ze(CP,e),container:Ze(TP,e),label:_P}));function jn(e){const t=e!=="100%"?oS[e]:void 0;return iS({container:{[jo.variable]:t??e,[hs.variable]:`calc(${t??e} / 2.5)`},excessLabel:{[jo.variable]:t??e,[hs.variable]:`calc(${t??e} / 2.5)`}})}const EP={"2xs":jn(4),xs:jn(6),sm:jn(8),md:jn(12),lg:jn(16),xl:jn(24),"2xl":jn(32),full:jn("100%")},$P=wP({baseStyle:PP,sizes:EP,defaultProps:{size:"md"}}),Ce=YT("badge",["bg","color","shadow"]),AP={px:1,textTransform:"uppercase",fontSize:"xs",borderRadius:"sm",fontWeight:"bold",bg:Ce.bg.reference,color:Ce.color.reference,boxShadow:Ce.shadow.reference},RP=e=>{const{colorScheme:t,theme:n}=e,r=Lo(`${t}.500`,.6)(n);return{[Ce.bg.variable]:`colors.${t}.500`,[Ce.color.variable]:"colors.white",_dark:{[Ce.bg.variable]:r,[Ce.color.variable]:"colors.whiteAlpha.800"}}},MP=e=>{const{colorScheme:t,theme:n}=e,r=Lo(`${t}.200`,.16)(n);return{[Ce.bg.variable]:`colors.${t}.100`,[Ce.color.variable]:`colors.${t}.800`,_dark:{[Ce.bg.variable]:r,[Ce.color.variable]:`colors.${t}.200`}}},zP=e=>{const{colorScheme:t,theme:n}=e,r=Lo(`${t}.200`,.8)(n);return{[Ce.color.variable]:`colors.${t}.500`,_dark:{[Ce.color.variable]:r},[Ce.shadow.variable]:`inset 0 0 0px 1px ${Ce.color.reference}`}},DP={solid:RP,subtle:MP,outline:zP},Oi={baseStyle:AP,variants:DP,defaultProps:{variant:"subtle",colorScheme:"gray"}},{defineMultiStyleConfig:IP,definePartsStyle:LP}=oe(s_.keys),fc=F("breadcrumb-link-decor"),jP={transitionProperty:"common",transitionDuration:"fast",transitionTimingFunction:"ease-out",outline:"none",color:"inherit",textDecoration:fc.reference,[fc.variable]:"none","&:not([aria-current=page])":{cursor:"pointer",_hover:{[fc.variable]:"underline"},_focusVisible:{boxShadow:"outline"}}},FP=LP({link:jP}),BP=IP({baseStyle:FP}),VP={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"}}},sS=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=Lo(`${t}.200`,.12)(n),o=Lo(`${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)}}},OP=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"},...Ze(sS,e)}},NP={yellow:{bg:"yellow.400",color:"black",hoverBg:"yellow.500",activeBg:"yellow.600"},cyan:{bg:"cyan.400",color:"black",hoverBg:"cyan.500",activeBg:"cyan.600"}},WP=e=>{const{colorScheme:t}=e;if(t==="gray"){const a=j("gray.100","whiteAlpha.200")(e);return{bg:a,color:j("gray.800","whiteAlpha.900")(e),_hover:{bg:j("gray.200","whiteAlpha.300")(e),_disabled:{bg:a}},_active:{bg:j("gray.300","whiteAlpha.400")(e)}}}const{bg:n=`${t}.500`,color:r="white",hoverBg:o=`${t}.600`,activeBg:i=`${t}.700`}=NP[t]??{},s=j(n,`${t}.200`)(e);return{bg:s,color:j(r,"gray.800")(e),_hover:{bg:j(o,`${t}.300`)(e),_disabled:{bg:s}},_active:{bg:j(i,`${t}.400`)(e)}}},UP=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)}}},HP={bg:"none",color:"inherit",display:"inline",lineHeight:"inherit",m:"0",p:"0"},KP={ghost:sS,outline:OP,solid:WP,link:UP,unstyled:HP},GP={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"}},XP={baseStyle:VP,variants:KP,sizes:GP,defaultProps:{variant:"solid",size:"md",colorScheme:"gray"}},{definePartsStyle:Er,defineMultiStyleConfig:YP}=oe(P_.keys),Tl=F("card-bg"),wn=F("card-padding"),aS=F("card-shadow"),La=F("card-radius"),lS=F("card-border-width","0"),uS=F("card-border-color"),qP=Er({container:{[Tl.variable]:"colors.chakra-body-bg",backgroundColor:Tl.reference,boxShadow:aS.reference,borderRadius:La.reference,color:"chakra-body-text",borderWidth:lS.reference,borderColor:uS.reference},body:{padding:wn.reference,flex:"1 1 0%"},header:{padding:wn.reference},footer:{padding:wn.reference}}),QP={sm:Er({container:{[La.variable]:"radii.base",[wn.variable]:"space.3"}}),md:Er({container:{[La.variable]:"radii.md",[wn.variable]:"space.5"}}),lg:Er({container:{[La.variable]:"radii.xl",[wn.variable]:"space.7"}})},ZP={elevated:Er({container:{[aS.variable]:"shadows.base",_dark:{[Tl.variable]:"colors.gray.700"}}}),outline:Er({container:{[lS.variable]:"1px",[uS.variable]:"colors.chakra-border-color"}}),filled:Er({container:{[Tl.variable]:"colors.chakra-subtle-bg"}}),unstyled:{body:{[wn.variable]:0},header:{[wn.variable]:0},footer:{[wn.variable]:0}}},JP=YP({baseStyle:qP,variants:ZP,sizes:QP,defaultProps:{variant:"elevated",size:"md"}}),{definePartsStyle:ja,defineMultiStyleConfig:eE}=oe(a_.keys),Ni=F("checkbox-size"),tE=e=>{const{colorScheme:t}=e;return{w:Ni.reference,h:Ni.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)}}},nE={_disabled:{cursor:"not-allowed"}},rE={userSelect:"none",_disabled:{opacity:.4}},oE={transitionProperty:"transform",transitionDuration:"normal"},iE=ja(e=>({icon:oE,container:nE,control:Ze(tE,e),label:rE})),sE={sm:ja({control:{[Ni.variable]:"sizes.3"},label:{fontSize:"sm"},icon:{fontSize:"3xs"}}),md:ja({control:{[Ni.variable]:"sizes.4"},label:{fontSize:"md"},icon:{fontSize:"2xs"}}),lg:ja({control:{[Ni.variable]:"sizes.5"},label:{fontSize:"lg"},icon:{fontSize:"2xs"}})},Nn=eE({baseStyle:iE,sizes:sE,defaultProps:{size:"md",colorScheme:"blue"}}),Wi=Re("close-button-size"),di=Re("close-button-bg"),aE={w:[Wi.reference],h:[Wi.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},lE={lg:{[Wi.variable]:"sizes.10",fontSize:"md"},md:{[Wi.variable]:"sizes.8",fontSize:"xs"},sm:{[Wi.variable]:"sizes.6",fontSize:"2xs"}},uE={baseStyle:aE,sizes:lE,defaultProps:{size:"md"}},{variants:cE,defaultProps:dE}=Oi,fE={fontFamily:"mono",fontSize:"sm",px:"0.2em",borderRadius:"sm",bg:Ce.bg.reference,color:Ce.color.reference,boxShadow:Ce.shadow.reference},hE={baseStyle:fE,variants:cE,defaultProps:dE},pE={w:"100%",mx:"auto",maxW:"prose",px:"4"},mE={baseStyle:pE},gE={opacity:.6,borderColor:"inherit"},yE={borderStyle:"solid"},vE={borderStyle:"dashed"},SE={solid:yE,dashed:vE},bE={baseStyle:gE,variants:SE,defaultProps:{variant:"solid"}},{definePartsStyle:Yd,defineMultiStyleConfig:xE}=oe(l_.keys),hc=F("drawer-bg"),pc=F("drawer-box-shadow");function Kr(e){return Yd(e==="full"?{dialog:{maxW:"100vw",h:"100vh"}}:{dialog:{maxW:e}})}const wE={bg:"blackAlpha.600",zIndex:"modal"},kE={display:"flex",zIndex:"modal",justifyContent:"center"},CE=e=>{const{isFullHeight:t}=e;return{...t&&{height:"100vh"},zIndex:"modal",maxH:"100vh",color:"inherit",[hc.variable]:"colors.white",[pc.variable]:"shadows.lg",_dark:{[hc.variable]:"colors.gray.700",[pc.variable]:"shadows.dark-lg"},bg:hc.reference,boxShadow:pc.reference}},TE={px:"6",py:"4",fontSize:"xl",fontWeight:"semibold"},_E={position:"absolute",top:"2",insetEnd:"3"},PE={px:"6",py:"2",flex:"1",overflow:"auto"},EE={px:"6",py:"4"},$E=Yd(e=>({overlay:wE,dialogContainer:kE,dialog:Ze(CE,e),header:TE,closeButton:_E,body:PE,footer:EE})),AE={xs:Kr("xs"),sm:Kr("md"),md:Kr("lg"),lg:Kr("2xl"),xl:Kr("4xl"),full:Kr("full")},RE=xE({baseStyle:$E,sizes:AE,defaultProps:{size:"xs"}}),{definePartsStyle:ME,defineMultiStyleConfig:zE}=oe(u_.keys),DE={borderRadius:"md",py:"1",transitionProperty:"common",transitionDuration:"normal"},IE={borderRadius:"md",py:"1",transitionProperty:"common",transitionDuration:"normal",width:"full",_focusVisible:{boxShadow:"outline"},_placeholder:{opacity:.6}},LE={borderRadius:"md",py:"1",transitionProperty:"common",transitionDuration:"normal",width:"full",_focusVisible:{boxShadow:"outline"},_placeholder:{opacity:.6}},jE=ME({preview:DE,input:IE,textarea:LE}),FE=zE({baseStyle:jE}),{definePartsStyle:BE,defineMultiStyleConfig:VE}=oe(c_.keys),To=F("form-control-color"),OE={marginStart:"1",[To.variable]:"colors.red.500",_dark:{[To.variable]:"colors.red.300"},color:To.reference},NE={mt:"2",[To.variable]:"colors.gray.600",_dark:{[To.variable]:"colors.whiteAlpha.600"},color:To.reference,lineHeight:"normal",fontSize:"sm"},WE=BE({container:{width:"100%",position:"relative"},requiredIndicator:OE,helperText:NE}),UE=VE({baseStyle:WE}),{definePartsStyle:HE,defineMultiStyleConfig:KE}=oe(d_.keys),_o=F("form-error-color"),GE={[_o.variable]:"colors.red.500",_dark:{[_o.variable]:"colors.red.300"},color:_o.reference,mt:"2",fontSize:"sm",lineHeight:"normal"},XE={marginEnd:"0.5em",[_o.variable]:"colors.red.500",_dark:{[_o.variable]:"colors.red.300"},color:_o.reference},YE=HE({text:GE,icon:XE}),qE=KE({baseStyle:YE}),QE={fontSize:"md",marginEnd:"3",mb:"2",fontWeight:"medium",transitionProperty:"common",transitionDuration:"normal",opacity:1,_disabled:{opacity:.4}},ZE={baseStyle:QE},JE={fontFamily:"heading",fontWeight:"bold"},e5={"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}},t5={baseStyle:JE,sizes:e5,defaultProps:{size:"xl"}},{definePartsStyle:bn,defineMultiStyleConfig:n5}=oe(f_.keys),io=F("input-height"),so=F("input-font-size"),ao=F("input-padding"),lo=F("input-border-radius"),r5=bn({addon:{height:io.reference,fontSize:so.reference,px:ao.reference,borderRadius:lo.reference},field:{width:"100%",height:io.reference,fontSize:so.reference,px:ao.reference,borderRadius:lo.reference,minWidth:0,outline:0,position:"relative",appearance:"none",transitionProperty:"common",transitionDuration:"normal",_disabled:{opacity:.4,cursor:"not-allowed"}}}),Fn={lg:{[so.variable]:"fontSizes.lg",[ao.variable]:"space.4",[lo.variable]:"radii.md",[io.variable]:"sizes.12"},md:{[so.variable]:"fontSizes.md",[ao.variable]:"space.4",[lo.variable]:"radii.md",[io.variable]:"sizes.10"},sm:{[so.variable]:"fontSizes.sm",[ao.variable]:"space.3",[lo.variable]:"radii.sm",[io.variable]:"sizes.8"},xs:{[so.variable]:"fontSizes.xs",[ao.variable]:"space.2",[lo.variable]:"radii.sm",[io.variable]:"sizes.6"}},o5={lg:bn({field:Fn.lg,group:Fn.lg}),md:bn({field:Fn.md,group:Fn.md}),sm:bn({field:Fn.sm,group:Fn.sm}),xs:bn({field:Fn.xs,group:Fn.xs})};function Ch(e){const{focusBorderColor:t,errorBorderColor:n}=e;return{focusBorderColor:t||j("blue.500","blue.300")(e),errorBorderColor:n||j("red.500","red.300")(e)}}const i5=bn(e=>{const{theme:t}=e,{focusBorderColor:n,errorBorderColor:r}=Ch(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)}}}),s5=bn(e=>{const{theme:t}=e,{focusBorderColor:n,errorBorderColor:r}=Ch(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)}}}),a5=bn(e=>{const{theme:t}=e,{focusBorderColor:n,errorBorderColor:r}=Ch(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"}}}),l5=bn({field:{bg:"transparent",px:"0",height:"auto"},addon:{bg:"transparent",px:"0",height:"auto"}}),u5={outline:i5,filled:s5,flushed:a5,unstyled:l5},Q=n5({baseStyle:r5,sizes:o5,variants:u5,defaultProps:{size:"md",variant:"outline"}}),mc=F("kbd-bg"),c5={[mc.variable]:"colors.gray.100",_dark:{[mc.variable]:"colors.whiteAlpha.100"},bg:mc.reference,borderRadius:"md",borderWidth:"1px",borderBottomWidth:"3px",fontSize:"0.8em",fontWeight:"bold",lineHeight:"normal",px:"0.4em",whiteSpace:"nowrap"},d5={baseStyle:c5},f5={transitionProperty:"common",transitionDuration:"fast",transitionTimingFunction:"ease-out",cursor:"pointer",textDecoration:"none",outline:"none",color:"inherit",_hover:{textDecoration:"underline"},_focusVisible:{boxShadow:"outline"}},h5={baseStyle:f5},{defineMultiStyleConfig:p5,definePartsStyle:m5}=oe(h_.keys),g5={marginEnd:"2",display:"inline",verticalAlign:"text-bottom"},y5=m5({icon:g5}),v5=p5({baseStyle:y5}),{defineMultiStyleConfig:S5,definePartsStyle:b5}=oe(p_.keys),Zt=F("menu-bg"),gc=F("menu-shadow"),x5={[Zt.variable]:"#fff",[gc.variable]:"shadows.sm",_dark:{[Zt.variable]:"colors.gray.700",[gc.variable]:"shadows.dark-lg"},color:"inherit",minW:"3xs",py:"2",zIndex:"dropdown",borderRadius:"md",borderWidth:"1px",bg:Zt.reference,boxShadow:gc.reference},w5={py:"1.5",px:"3",transitionProperty:"background",transitionDuration:"ultra-fast",transitionTimingFunction:"ease-in",_focus:{[Zt.variable]:"colors.gray.100",_dark:{[Zt.variable]:"colors.whiteAlpha.100"}},_active:{[Zt.variable]:"colors.gray.200",_dark:{[Zt.variable]:"colors.whiteAlpha.200"}},_expanded:{[Zt.variable]:"colors.gray.100",_dark:{[Zt.variable]:"colors.whiteAlpha.100"}},_disabled:{opacity:.4,cursor:"not-allowed"},bg:Zt.reference},k5={mx:4,my:2,fontWeight:"semibold",fontSize:"sm"},C5={display:"inline-flex",alignItems:"center",justifyContent:"center",flexShrink:0},T5={opacity:.6},_5={border:0,borderBottom:"1px solid",borderColor:"inherit",my:"2",opacity:.6},P5={transitionProperty:"common",transitionDuration:"normal"},E5=b5({button:P5,list:x5,item:w5,groupTitle:k5,icon:C5,command:T5,divider:_5}),$5=S5({baseStyle:E5}),{defineMultiStyleConfig:A5,definePartsStyle:qd}=oe(m_.keys),yc=F("modal-bg"),vc=F("modal-shadow"),R5={bg:"blackAlpha.600",zIndex:"modal"},M5=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"}},z5=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,[yc.variable]:"colors.white",[vc.variable]:"shadows.lg",_dark:{[yc.variable]:"colors.gray.700",[vc.variable]:"shadows.dark-lg"},bg:yc.reference,boxShadow:vc.reference}},D5={px:"6",py:"4",fontSize:"xl",fontWeight:"semibold"},I5={position:"absolute",top:"2",insetEnd:"3"},L5=e=>{const{scrollBehavior:t}=e;return{px:"6",py:"2",flex:"1",overflow:t==="inside"?"auto":void 0}},j5={px:"6",py:"4"},F5=qd(e=>({overlay:R5,dialogContainer:Ze(M5,e),dialog:Ze(z5,e),header:D5,closeButton:I5,body:Ze(L5,e),footer:j5}));function Lt(e){return qd(e==="full"?{dialog:{maxW:"100vw",minH:"$100vh",my:"0",borderRadius:"0"}}:{dialog:{maxW:e}})}const B5={xs:Lt("xs"),sm:Lt("sm"),md:Lt("md"),lg:Lt("lg"),xl:Lt("xl"),"2xl":Lt("2xl"),"3xl":Lt("3xl"),"4xl":Lt("4xl"),"5xl":Lt("5xl"),"6xl":Lt("6xl"),full:Lt("full")},V5=A5({baseStyle:F5,sizes:B5,defaultProps:{size:"md"}}),cS={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"}},{defineMultiStyleConfig:O5,definePartsStyle:dS}=oe(g_.keys),Th=Re("number-input-stepper-width"),fS=Re("number-input-input-padding"),N5=gn(Th).add("0.5rem").toString(),Sc=Re("number-input-bg"),bc=Re("number-input-color"),xc=Re("number-input-border-color"),W5={[Th.variable]:"sizes.6",[fS.variable]:N5},U5=e=>{var t;return((t=Ze(Q.baseStyle,e))==null?void 0:t.field)??{}},H5={width:Th.reference},K5={borderStart:"1px solid",borderStartColor:xc.reference,color:bc.reference,bg:Sc.reference,[bc.variable]:"colors.chakra-body-text",[xc.variable]:"colors.chakra-border-color",_dark:{[bc.variable]:"colors.whiteAlpha.800",[xc.variable]:"colors.whiteAlpha.300"},_active:{[Sc.variable]:"colors.gray.200",_dark:{[Sc.variable]:"colors.whiteAlpha.300"}},_disabled:{opacity:.4,cursor:"not-allowed"}},G5=dS(e=>({root:W5,field:Ze(U5,e)??{},stepperGroup:H5,stepper:K5}));function da(e){var i,s;const t=(i=Q.sizes)==null?void 0:i[e],n={lg:"md",md:"md",sm:"sm",xs:"sm"},r=((s=t.field)==null?void 0:s.fontSize)??"md",o=cS.fontSizes[r];return dS({field:{...t.field,paddingInlineEnd:fS.reference,verticalAlign:"top"},stepper:{fontSize:gn(o).multiply(.75).toString(),_first:{borderTopEndRadius:n[e]},_last:{borderBottomEndRadius:n[e],mt:"-1px",borderTopWidth:1}}})}const X5={xs:da("xs"),sm:da("sm"),md:da("md"),lg:da("lg")},Y5=O5({baseStyle:G5,sizes:X5,variants:Q.variants,defaultProps:Q.defaultProps});var cy;const q5={...(cy=Q.baseStyle)==null?void 0:cy.field,textAlign:"center"},Q5={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"}};var dy;const Z5={outline:e=>{var t,n;return((n=Ze((t=Q.variants)==null?void 0:t.outline,e))==null?void 0:n.field)??{}},flushed:e=>{var t,n;return((n=Ze((t=Q.variants)==null?void 0:t.flushed,e))==null?void 0:n.field)??{}},filled:e=>{var t,n;return((n=Ze((t=Q.variants)==null?void 0:t.filled,e))==null?void 0:n.field)??{}},unstyled:((dy=Q.variants)==null?void 0:dy.unstyled.field)??{}},J5={baseStyle:q5,sizes:Q5,variants:Z5,defaultProps:Q.defaultProps},{defineMultiStyleConfig:e$,definePartsStyle:t$}=oe(y_.keys),fa=Re("popper-bg"),n$=Re("popper-arrow-bg"),Eg=Re("popper-arrow-shadow-color"),r$={zIndex:"popover"},o$={[fa.variable]:"colors.white",bg:fa.reference,[n$.variable]:fa.reference,[Eg.variable]:"colors.gray.200",_dark:{[fa.variable]:"colors.gray.700",[Eg.variable]:"colors.whiteAlpha.300"},width:"xs",border:"1px solid",borderColor:"inherit",borderRadius:"md",boxShadow:"sm",zIndex:"inherit",_focusVisible:{outline:0,boxShadow:"outline"}},i$={px:3,py:2,borderBottomWidth:"1px"},s$={px:3,py:2},a$={px:3,py:2,borderTopWidth:"1px"},l$={position:"absolute",borderRadius:"md",top:1,insetEnd:2,padding:2},u$=t$({popper:r$,content:o$,header:i$,body:s$,footer:a$,closeButton:l$}),c$=e$({baseStyle:u$}),{defineMultiStyleConfig:d$,definePartsStyle:wi}=oe(v_.keys),f$=e=>{const{colorScheme:t,theme:n,isIndeterminate:r,hasStripe:o}=e,i=j(kg(),kg("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}}},l$={lineHeight:"1",fontSize:"0.25em",fontWeight:"bold",color:"white"},u$=e=>({bg:j("gray.100","whiteAlpha.300")(e)}),c$=e=>({transitionProperty:"common",transitionDuration:"slow",...a$(e)}),d$=xi(e=>({label:l$,filledTrack:c$(e),track:u$(e)})),f$={xs:xi({track:{h:"1"}}),sm:xi({track:{h:"2"}}),md:xi({track:{h:"3"}}),lg:xi({track:{h:"4"}})},h$=s$({sizes:f$,baseStyle:d$,defaultProps:{size:"md",colorScheme:"blue"}}),{defineMultiStyleConfig:p$,definePartsStyle:Fa}=oe(p_.keys),m$=e=>{var n;const t=(n=Ze(Nn.baseStyle,e))==null?void 0:n.control;return{...t,borderRadius:"full",_checked:{...t==null?void 0:t._checked,_before:{content:'""',display:"inline-block",pos:"relative",w:"50%",h:"50%",borderRadius:"50%",bg:"currentColor"}}}},g$=Fa(e=>{var t,n;return{label:(t=Nn.baseStyle)==null?void 0:t.call(Nn,e).label,container:(n=Nn.baseStyle)==null?void 0:n.call(Nn,e).container,control:m$(e)}}),y$={md:Fa({control:{w:"4",h:"4"},label:{fontSize:"md"}}),lg:Fa({control:{w:"5",h:"5"},label:{fontSize:"lg"}}),sm:Fa({control:{width:"3",height:"3"},label:{fontSize:"sm"}})},v$=p$({baseStyle:g$,sizes:y$,defaultProps:{size:"md",colorScheme:"blue"}}),{defineMultiStyleConfig:S$,definePartsStyle:b$}=oe(m_.keys),ha=F("select-bg");var ay;const x$={...(ay=Q.baseStyle)==null?void 0:ay.field,appearance:"none",paddingBottom:"1px",lineHeight:"normal",bg:ha.reference,[ha.variable]:"colors.white",_dark:{[ha.variable]:"colors.gray.700"},"> option, > optgroup":{bg:ha.reference}},w$={width:"6",height:"100%",insetEnd:"2",position:"relative",color:"currentColor",fontSize:"xl",_disabled:{opacity:.5}},k$=b$({field:x$,icon:w$}),pa={paddingInlineEnd:"8"};var ly,uy,cy,dy,fy,hy,py,my;const C$={lg:{...(ly=Q.sizes)==null?void 0:ly.lg,field:{...(uy=Q.sizes)==null?void 0:uy.lg.field,...pa}},md:{...(cy=Q.sizes)==null?void 0:cy.md,field:{...(dy=Q.sizes)==null?void 0:dy.md.field,...pa}},sm:{...(fy=Q.sizes)==null?void 0:fy.sm,field:{...(hy=Q.sizes)==null?void 0:hy.sm.field,...pa}},xs:{...(py=Q.sizes)==null?void 0:py.xs,field:{...(my=Q.sizes)==null?void 0:my.xs.field,...pa},icon:{insetEnd:"1"}}},T$=S$({baseStyle:k$,sizes:C$,variants:Q.variants,defaultProps:Q.defaultProps}),bc=F("skeleton-start-color"),xc=F("skeleton-end-color"),_$={[bc.variable]:"colors.gray.100",[xc.variable]:"colors.gray.400",_dark:{[bc.variable]:"colors.gray.800",[xc.variable]:"colors.gray.600"},background:bc.reference,borderColor:xc.reference,opacity:.7,borderRadius:"sm"},P$={baseStyle:_$},wc=F("skip-link-bg"),E$={borderRadius:"md",fontWeight:"semibold",_focusVisible:{boxShadow:"outline",padding:"4",position:"fixed",top:"6",insetStart:"6",[wc.variable]:"colors.white",_dark:{[wc.variable]:"colors.gray.700"},bg:wc.reference}},$$={baseStyle:E$},{defineMultiStyleConfig:A$,definePartsStyle:eu}=oe(g_.keys),jr=F("slider-thumb-size"),hs=F("slider-track-size"),Hn=F("slider-bg"),R$=e=>{const{orientation:t}=e;return{display:"inline-block",position:"relative",cursor:"pointer",_disabled:{opacity:.6,cursor:"default",pointerEvents:"none"},...Sh({orientation:t,vertical:{h:"100%",px:mn(jr.reference).divide(2).toString()},horizontal:{w:"100%",py:mn(jr.reference).divide(2).toString()}})}},M$=e=>({...Sh({orientation:e.orientation,horizontal:{h:hs.reference},vertical:{w:hs.reference}}),overflow:"hidden",borderRadius:"sm",[Hn.variable]:"colors.gray.200",_dark:{[Hn.variable]:"colors.whiteAlpha.200"},_disabled:{[Hn.variable]:"colors.gray.300",_dark:{[Hn.variable]:"colors.whiteAlpha.300"}},bg:Hn.reference}),z$=e=>{const{orientation:t}=e;return{...Sh({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:jr.reference,h:jr.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"}}},D$=e=>{const{colorScheme:t}=e;return{width:"inherit",height:"inherit",[Hn.variable]:`colors.${t}.500`,_dark:{[Hn.variable]:`colors.${t}.200`},bg:Hn.reference}},I$=eu(e=>({container:R$(e),track:M$(e),thumb:z$(e),filledTrack:D$(e)})),L$=eu({container:{[jr.variable]:"sizes.4",[hs.variable]:"sizes.1"}}),j$=eu({container:{[jr.variable]:"sizes.3.5",[hs.variable]:"sizes.1"}}),F$=eu({container:{[jr.variable]:"sizes.2.5",[hs.variable]:"sizes.0.5"}}),B$={lg:L$,md:j$,sm:F$},V$=A$({baseStyle:I$,sizes:B$,defaultProps:{size:"md",colorScheme:"blue"}}),br=Re("spinner-size"),O$={width:[br.reference],height:[br.reference]},N$={xs:{[br.variable]:"sizes.3"},sm:{[br.variable]:"sizes.4"},md:{[br.variable]:"sizes.6"},lg:{[br.variable]:"sizes.8"},xl:{[br.variable]:"sizes.12"}},W$={baseStyle:O$,sizes:N$,defaultProps:{size:"md"}},{defineMultiStyleConfig:U$,definePartsStyle:lS}=oe(y_.keys),H$={fontWeight:"medium"},K$={opacity:.8,marginBottom:"2"},G$={verticalAlign:"baseline",fontWeight:"semibold"},Y$={marginEnd:1,w:"3.5",h:"3.5",verticalAlign:"middle"},X$=lS({container:{},label:H$,helpText:K$,number:G$,icon:Y$}),q$={md:lS({label:{fontSize:"sm"},helpText:{fontSize:"sm"},number:{fontSize:"2xl"}})},Q$=U$({baseStyle:X$,sizes:q$,defaultProps:{size:"md"}}),{defineMultiStyleConfig:Z$,definePartsStyle:wi}=oe(["stepper","step","title","description","indicator","separator","icon","number"]),yn=F("stepper-indicator-size"),uo=F("stepper-icon-size"),co=F("stepper-title-font-size"),ki=F("stepper-description-font-size"),di=F("stepper-accent-color"),J$=wi(({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"},[di.variable]:`colors.${e}.500`,_dark:{[di.variable]:`colors.${e}.200`}},title:{fontSize:co.reference,fontWeight:"medium"},description:{fontSize:ki.reference,color:"chakra-subtle-text"},number:{fontSize:co.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:uo.reference,height:uo.reference},indicator:{flexShrink:0,borderRadius:"full",width:yn.reference,height:yn.reference,display:"flex",justifyContent:"center",alignItems:"center","&[data-status=active]":{borderWidth:"2px",borderColor:di.reference},"&[data-status=complete]":{bg:di.reference,color:"chakra-inverse-text"},"&[data-status=incomplete]":{borderWidth:"2px"}},separator:{bg:"chakra-border-color",flex:"1","&[data-status=complete]":{bg:di.reference},"&[data-orientation=horizontal]":{width:"100%",height:"2px",marginStart:"2"},"&[data-orientation=vertical]":{width:"2px",position:"absolute",height:"100%",maxHeight:`calc(100% - ${yn.reference} - 8px)`,top:`calc(${yn.reference} + 4px)`,insetStart:`calc(${yn.reference} / 2 - 1px)`}}})),eA=Z$({baseStyle:J$,sizes:{xs:wi({stepper:{[yn.variable]:"sizes.4",[uo.variable]:"sizes.3",[co.variable]:"fontSizes.xs",[ki.variable]:"fontSizes.xs"}}),sm:wi({stepper:{[yn.variable]:"sizes.6",[uo.variable]:"sizes.4",[co.variable]:"fontSizes.sm",[ki.variable]:"fontSizes.xs"}}),md:wi({stepper:{[yn.variable]:"sizes.8",[uo.variable]:"sizes.5",[co.variable]:"fontSizes.md",[ki.variable]:"fontSizes.sm"}}),lg:wi({stepper:{[yn.variable]:"sizes.10",[uo.variable]:"sizes.6",[co.variable]:"fontSizes.lg",[ki.variable]:"fontSizes.md"}})},defaultProps:{size:"md",colorScheme:"blue"}}),{defineMultiStyleConfig:tA,definePartsStyle:Ba}=oe(v_.keys),Wi=Re("switch-track-width"),$r=Re("switch-track-height"),kc=Re("switch-track-diff"),nA=gn.subtract(Wi,$r),Xd=Re("switch-thumb-x"),fi=Re("switch-bg"),rA=e=>{const{colorScheme:t}=e;return{borderRadius:"full",p:"0.5",width:[Wi.reference],height:[$r.reference],transitionProperty:"common",transitionDuration:"fast",[fi.variable]:"colors.gray.300",_dark:{[fi.variable]:"colors.whiteAlpha.400"},_focusVisible:{boxShadow:"outline"},_disabled:{opacity:.4,cursor:"not-allowed"},_checked:{[fi.variable]:`colors.${t}.500`,_dark:{[fi.variable]:`colors.${t}.200`}},bg:fi.reference}},oA={bg:"white",transitionProperty:"transform",transitionDuration:"normal",borderRadius:"inherit",width:[$r.reference],height:[$r.reference],_checked:{transform:`translateX(${Xd.reference})`}},iA=Ba(e=>({container:{[kc.variable]:nA,[Xd.variable]:kc.reference,_rtl:{[Xd.variable]:gn(kc).negate().toString()}},track:rA(e),thumb:oA})),sA={sm:Ba({container:{[Wi.variable]:"1.375rem",[$r.variable]:"sizes.3"}}),md:Ba({container:{[Wi.variable]:"1.875rem",[$r.variable]:"sizes.4"}}),lg:Ba({container:{[Wi.variable]:"2.875rem",[$r.variable]:"sizes.6"}})},aA=tA({baseStyle:iA,sizes:sA,defaultProps:{size:"md",colorScheme:"blue"}}),{defineMultiStyleConfig:lA,definePartsStyle:Po}=oe(S_.keys),uA=Po({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"}}),_l={"&[data-is-numeric=true]":{textAlign:"end"}},cA=Po(e=>{const{colorScheme:t}=e;return{th:{color:j("gray.600","gray.400")(e),borderBottom:"1px",borderColor:j(`${t}.100`,`${t}.700`)(e),..._l},td:{borderBottom:"1px",borderColor:j(`${t}.100`,`${t}.700`)(e),..._l},caption:{color:j("gray.600","gray.100")(e)},tfoot:{tr:{"&:last-of-type":{th:{borderBottomWidth:0}}}}}}),dA=Po(e=>{const{colorScheme:t}=e;return{th:{color:j("gray.600","gray.400")(e),borderBottom:"1px",borderColor:j(`${t}.100`,`${t}.700`)(e),..._l},td:{borderBottom:"1px",borderColor:j(`${t}.100`,`${t}.700`)(e),..._l},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}}}}}}),fA={simple:cA,striped:dA,unstyled:{}},hA={sm:Po({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:Po({th:{px:"6",py:"3",lineHeight:"4",fontSize:"xs"},td:{px:"6",py:"4",lineHeight:"5"},caption:{px:"6",py:"2",fontSize:"sm"}}),lg:Po({th:{px:"8",py:"4",lineHeight:"5",fontSize:"sm"},td:{px:"8",py:"5",lineHeight:"6"},caption:{px:"6",py:"2",fontSize:"md"}})},pA=lA({baseStyle:uA,variants:fA,sizes:hA,defaultProps:{variant:"simple",size:"md",colorScheme:"gray"}}),nt=F("tabs-color"),Ot=F("tabs-bg"),ma=F("tabs-border-color"),{defineMultiStyleConfig:mA,definePartsStyle:an}=oe(b_.keys),gA=e=>{const{orientation:t}=e;return{display:t==="vertical"?"flex":"block"}},yA=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}}},vA=e=>{const{align:t="start",orientation:n}=e;return{justifyContent:{end:"flex-end",center:"center",start:"flex-start"}[t],flexDirection:n==="vertical"?"column":"row"}},SA={p:4},bA=an(e=>({root:gA(e),tab:yA(e),tablist:vA(e),tabpanel:SA})),xA={sm:an({tab:{py:1,px:4,fontSize:"sm"}}),md:an({tab:{fontSize:"md",py:2,px:4}}),lg:an({tab:{fontSize:"lg",py:3,px:4}})},wA=an(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:{[nt.variable]:`colors.${t}.600`,_dark:{[nt.variable]:`colors.${t}.300`},borderColor:"currentColor"},_active:{[Ot.variable]:"colors.gray.200",_dark:{[Ot.variable]:"colors.whiteAlpha.300"}},_disabled:{_active:{bg:"none"}},color:nt.reference,bg:Ot.reference}}}),kA=an(e=>{const{colorScheme:t}=e;return{tab:{borderTopRadius:"md",border:"1px solid",borderColor:"transparent",mb:"-1px",[ma.variable]:"transparent",_selected:{[nt.variable]:`colors.${t}.600`,[ma.variable]:"colors.white",_dark:{[nt.variable]:`colors.${t}.300`,[ma.variable]:"colors.gray.800"},borderColor:"inherit",borderBottomColor:ma.reference},color:nt.reference},tablist:{mb:"-1px",borderBottom:"1px solid",borderColor:"inherit"}}}),CA=an(e=>{const{colorScheme:t}=e;return{tab:{border:"1px solid",borderColor:"inherit",[Ot.variable]:"colors.gray.50",_dark:{[Ot.variable]:"colors.whiteAlpha.50"},mb:"-1px",_notLast:{marginEnd:"-1px"},_selected:{[Ot.variable]:"colors.white",[nt.variable]:`colors.${t}.600`,_dark:{[Ot.variable]:"colors.gray.800",[nt.variable]:`colors.${t}.300`},borderColor:"inherit",borderTopColor:"currentColor",borderBottomColor:"transparent"},color:nt.reference,bg:Ot.reference},tablist:{mb:"-1px",borderBottom:"1px solid",borderColor:"inherit"}}}),TA=an(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`)}}}}),_A=an(e=>{const{colorScheme:t}=e;return{tab:{borderRadius:"full",fontWeight:"semibold",[nt.variable]:"colors.gray.600",_dark:{[nt.variable]:"inherit"},_selected:{[nt.variable]:"colors.white",[Ot.variable]:`colors.${t}.600`,_dark:{[nt.variable]:"colors.gray.800",[Ot.variable]:`colors.${t}.300`}},color:nt.reference,bg:Ot.reference}}}),PA=an({}),EA={line:wA,enclosed:kA,"enclosed-colored":CA,"soft-rounded":TA,"solid-rounded":_A,unstyled:PA},$A=mA({baseStyle:bA,sizes:xA,variants:EA,defaultProps:{size:"md",variant:"line",colorScheme:"blue"}}),{defineMultiStyleConfig:AA,definePartsStyle:Ar}=oe(x_.keys),Tg=F("tag-bg"),_g=F("tag-color"),Cc=F("tag-shadow"),Va=F("tag-min-height"),Oa=F("tag-min-width"),Na=F("tag-font-size"),Wa=F("tag-padding-inline"),RA={fontWeight:"medium",lineHeight:1.2,outline:0,[_g.variable]:Ce.color.reference,[Tg.variable]:Ce.bg.reference,[Cc.variable]:Ce.shadow.reference,color:_g.reference,bg:Tg.reference,boxShadow:Cc.reference,borderRadius:"md",minH:Va.reference,minW:Oa.reference,fontSize:Na.reference,px:Wa.reference,_focusVisible:{[Cc.variable]:"shadows.outline"}},MA={lineHeight:1.2,overflow:"visible"},zA={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}},DA=Ar({container:RA,label:MA,closeButton:zA}),IA={sm:Ar({container:{[Va.variable]:"sizes.5",[Oa.variable]:"sizes.5",[Na.variable]:"fontSizes.xs",[Wa.variable]:"space.2"},closeButton:{marginEnd:"-2px",marginStart:"0.35rem"}}),md:Ar({container:{[Va.variable]:"sizes.6",[Oa.variable]:"sizes.6",[Na.variable]:"fontSizes.sm",[Wa.variable]:"space.2"}}),lg:Ar({container:{[Va.variable]:"sizes.8",[Oa.variable]:"sizes.8",[Na.variable]:"fontSizes.md",[Wa.variable]:"space.3"}})},LA={subtle:Ar(e=>{var t;return{container:(t=Vi.variants)==null?void 0:t.subtle(e)}}),solid:Ar(e=>{var t;return{container:(t=Vi.variants)==null?void 0:t.solid(e)}}),outline:Ar(e=>{var t;return{container:(t=Vi.variants)==null?void 0:t.outline(e)}})},jA=AA({variants:LA,baseStyle:DA,sizes:IA,defaultProps:{size:"md",variant:"subtle",colorScheme:"gray"}});var gy;const FA={...(gy=Q.baseStyle)==null?void 0:gy.field,paddingY:"2",minHeight:"20",lineHeight:"short",verticalAlign:"top"};var yy;const BA={outline:e=>{var t;return((t=Q.variants)==null?void 0:t.outline(e).field)??{}},flushed:e=>{var t;return((t=Q.variants)==null?void 0:t.flushed(e).field)??{}},filled:e=>{var t;return((t=Q.variants)==null?void 0:t.filled(e).field)??{}},unstyled:((yy=Q.variants)==null?void 0:yy.unstyled.field)??{}};var vy,Sy,by,xy;const VA={xs:((vy=Q.sizes)==null?void 0:vy.xs.field)??{},sm:((Sy=Q.sizes)==null?void 0:Sy.sm.field)??{},md:((by=Q.sizes)==null?void 0:by.md.field)??{},lg:((xy=Q.sizes)==null?void 0:xy.lg.field)??{}},OA={baseStyle:FA,sizes:VA,variants:BA,defaultProps:{size:"md",variant:"outline"}},ga=Re("tooltip-bg"),Tc=Re("tooltip-fg"),NA=Re("popper-arrow-bg"),WA={bg:ga.reference,color:Tc.reference,[ga.variable]:"colors.gray.700",[Tc.variable]:"colors.whiteAlpha.900",_dark:{[ga.variable]:"colors.gray.300",[Tc.variable]:"colors.gray.900"},[NA.variable]:ga.reference,px:"2",py:"0.5",borderRadius:"sm",fontWeight:"medium",fontSize:"sm",boxShadow:"md",maxW:"xs",zIndex:"tooltip"},UA={baseStyle:WA},HA={Accordion:A_,Alert:hP,Avatar:CP,Badge:Vi,Breadcrumb:DP,Button:WP,Checkbox:Nn,CloseButton:oE,Code:lE,Container:cE,Divider:mE,Drawer:_E,Editable:zE,Form:BE,FormError:HE,FormLabel:GE,Heading:qE,Input:Q,Kbd:s5,Link:l5,List:h5,Menu:C5,Modal:I5,NumberInput:U5,PinInput:Y5,Popover:i$,Progress:h$,Radio:v$,Select:T$,Skeleton:P$,SkipLink:$$,Slider:V$,Spinner:W$,Stat:Q$,Switch:aA,Table:pA,Tabs:$A,Tag:jA,Textarea:OA,Tooltip:UA,Card:YP,Stepper:eA},KA={none:0,"1px":"1px solid","2px":"2px solid","4px":"4px solid","8px":"8px solid"},GA={base:"0em",sm:"30em",md:"48em",lg:"62em",xl:"80em","2xl":"96em"},YA={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"}},XA={none:"0",sm:"0.125rem",base:"0.25rem",md:"0.375rem",lg:"0.5rem",xl:"0.75rem","2xl":"1rem","3xl":"1.5rem",full:"9999px"},qA={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"},QA={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"},ZA={"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)"},JA={"ultra-fast":"50ms",faster:"100ms",fast:"150ms",normal:"200ms",slow:"300ms",slower:"400ms","ultra-slow":"500ms"},eR={property:QA,easing:ZA,duration:JA},tR={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},nR={none:0,sm:"4px",base:"8px",md:"12px",lg:"16px",xl:"24px","2xl":"40px","3xl":"64px"},rR={breakpoints:GA,zIndices:tR,radii:XA,blur:nR,colors:YA,...iS,sizes:J1,shadows:qA,space:Z1,borders:KA,transition:eR},oR={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"}}},iR={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"}}},sR="ltr",aR={useSystemColorMode:!1,initialColorMode:"light",cssVarPrefix:"chakra"},lR={semanticTokens:oR,direction:sR,...rR,components:HA,styles:iR,config:aR};var uR=!1;function cR(e){if(e.sheet)return e.sheet;for(var t=0;t0?Fe(Ko,--at):0,Fo--,_e===10&&(Fo=1,nu--),_e}function pt(){return _e=at2||ms(_e)>3?"":" "}function kR(e,t){for(;--t&&pt()&&!(_e<48||_e>102||_e>57&&_e<65||_e>70&&_e<97););return $s(e,Ua()+(t<6&&ln()==32&&pt()==32))}function Qd(e){for(;pt();)switch(_e){case e:return at;case 34:case 39:e!==34&&e!==39&&Qd(_e);break;case 40:e===41&&Qd(e);break;case 92:pt();break}return at}function CR(e,t){for(;pt()&&e+_e!==57;)if(e+_e===84&&ln()===47)break;return"/*"+$s(t,at-1)+"*"+tu(e===47?e:pt())}function TR(e){for(;!ms(ln());)pt();return $s(e,at)}function _R(e){return pS(Ka("",null,null,null,[""],e=hS(e),0,[0],e))}function Ka(e,t,n,r,o,i,s,a,l){for(var u=0,c=0,d=s,f=0,y=0,v=0,S=1,_=1,p=1,h=0,m="",b=o,C=i,E=r,k=m;_;)switch(v=h,h=pt()){case 40:if(v!=108&&Fe(k,d-1)==58){qd(k+=q(Ha(h),"&","&\f"),"&\f")!=-1&&(p=-1);break}case 34:case 39:case 91:k+=Ha(h);break;case 9:case 10:case 13:case 32:k+=wR(v);break;case 92:k+=kR(Ua()-1,7);continue;case 47:switch(ln()){case 42:case 47:ya(PR(CR(pt(),Ua()),t,n),l);break;default:k+="/"}break;case 123*S:a[u++]=Jt(k)*p;case 125*S:case 59:case 0:switch(h){case 0:case 125:_=0;case 59+c:p==-1&&(k=q(k,/\f/g,"")),y>0&&Jt(k)-d&&ya(y>32?Eg(k+";",r,n,d-1):Eg(q(k," ","")+";",r,n,d-2),l);break;case 59:k+=";";default:if(ya(E=Pg(k,t,n,u,c,o,a,m,b=[],C=[],d),i),h===123)if(c===0)Ka(k,t,E,E,b,i,d,a,C);else switch(f===99&&Fe(k,3)===110?100:f){case 100:case 108:case 109:case 115:Ka(e,E,E,r&&ya(Pg(e,E,E,0,0,o,a,m,o,b=[],d),C),o,C,d,a,r?b:C);break;default:Ka(k,E,E,E,[""],C,0,a,C)}}u=c=y=0,S=p=1,m=k="",d=s;break;case 58:d=1+Jt(k),y=v;default:if(S<1){if(h==123)--S;else if(h==125&&S++==0&&xR()==125)continue}switch(k+=tu(h),h*S){case 38:p=c>0?1:(k+="\f",-1);break;case 44:a[u++]=(Jt(k)-1)*p,p=1;break;case 64:ln()===45&&(k+=Ha(pt())),f=ln(),c=d=Jt(m=k+=TR(Ua())),h++;break;case 45:v===45&&Jt(k)==2&&(S=0)}}return i}function Pg(e,t,n,r,o,i,s,a,l,u,c){for(var d=o-1,f=o===0?i:[""],y=Th(f),v=0,S=0,_=0;v0?f[p]+" "+h:q(h,/&\f/g,f[p])))&&(l[_++]=m);return ru(e,t,n,o===0?kh:a,l,u,c)}function PR(e,t,n){return ru(e,t,n,uS,tu(bR()),ps(e,2,-2),0)}function Eg(e,t,n,r){return ru(e,t,n,Ch,ps(e,0,r),ps(e,r+1,-1),r)}function Eo(e,t){for(var n="",r=Th(e),o=0;o6)switch(Fe(e,t+1)){case 109:if(Fe(e,t+4)!==45)break;case 102:return q(e,/(.+:)(.+)-([^]+)/,"$1"+X+"$2-$3$1"+Pl+(Fe(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~qd(e,"stretch")?gS(q(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(Fe(e,t+1)!==115)break;case 6444:switch(Fe(e,Jt(e)-3-(~qd(e,"!important")&&10))){case 107:return q(e,":",":"+X)+e;case 101:return q(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+X+(Fe(e,14)===45?"inline-":"")+"box$3$1"+X+"$2$3$1"+We+"$2box$3")+e}break;case 5936:switch(Fe(e,t+11)){case 114:return X+e+We+q(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return X+e+We+q(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return X+e+We+q(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return X+e+We+e+e}return e}var LR=function(t,n,r,o){if(t.length>-1&&!t.return)switch(t.type){case Ch:t.return=gS(t.value,t.length);break;case cS:return Eo([hi(t,{value:q(t.value,"@","@"+X)})],o);case kh:if(t.length)return SR(t.props,function(i){switch(vR(i,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Eo([hi(t,{props:[q(i,/:(read-\w+)/,":"+Pl+"$1")]})],o);case"::placeholder":return Eo([hi(t,{props:[q(i,/:(plac\w+)/,":"+X+"input-$1")]}),hi(t,{props:[q(i,/:(plac\w+)/,":"+Pl+"$1")]}),hi(t,{props:[q(i,/:(plac\w+)/,We+"input-$1")]})],o)}return""})}},jR=[LR],FR=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(S){var _=S.getAttribute("data-emotion");_.indexOf(" ")!==-1&&(document.head.appendChild(S),S.setAttribute("data-s",""))})}var o=t.stylisPlugins||jR,i={},s,a=[];s=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(S){for(var _=S.getAttribute("data-emotion").split(" "),p=1;p<_.length;p++)i[_[p]]=!0;a.push(S)});var l,u=[DR,IR];{var c,d=[ER,AR(function(S){c.insert(S)})],f=$R(u.concat(o,d)),y=function(_){return Eo(_R(_),f)};l=function(_,p,h,m){c=h,y(_?_+"{"+p.styles+"}":p.styles),m&&(v.inserted[p.name]=!0)}}var v={key:n,sheet:new fR({key:n,container:s,nonce:t.nonce,speedy:t.speedy,prepend:t.prepend,insertionPoint:t.insertionPoint}),nonce:t.nonce,inserted:i,registered:{},insert:l};return v.sheet.hydrate(a),v},yS={exports:{}},te={};/** @license React v16.13.1 + )`;return{...!r&&o&&i,...r?{bgImage:a}:{bgColor:s}}},h$={lineHeight:"1",fontSize:"0.25em",fontWeight:"bold",color:"white"},p$=e=>({bg:j("gray.100","whiteAlpha.300")(e)}),m$=e=>({transitionProperty:"common",transitionDuration:"slow",...f$(e)}),g$=wi(e=>({label:h$,filledTrack:m$(e),track:p$(e)})),y$={xs:wi({track:{h:"1"}}),sm:wi({track:{h:"2"}}),md:wi({track:{h:"3"}}),lg:wi({track:{h:"4"}})},v$=d$({sizes:y$,baseStyle:g$,defaultProps:{size:"md",colorScheme:"blue"}}),{defineMultiStyleConfig:S$,definePartsStyle:Fa}=oe(S_.keys),b$=e=>{var n;const t=(n=Ze(Nn.baseStyle,e))==null?void 0:n.control;return{...t,borderRadius:"full",_checked:{...t==null?void 0:t._checked,_before:{content:'""',display:"inline-block",pos:"relative",w:"50%",h:"50%",borderRadius:"50%",bg:"currentColor"}}}},x$=Fa(e=>{var t,n;return{label:(t=Nn.baseStyle)==null?void 0:t.call(Nn,e).label,container:(n=Nn.baseStyle)==null?void 0:n.call(Nn,e).container,control:b$(e)}}),w$={md:Fa({control:{w:"4",h:"4"},label:{fontSize:"md"}}),lg:Fa({control:{w:"5",h:"5"},label:{fontSize:"lg"}}),sm:Fa({control:{width:"3",height:"3"},label:{fontSize:"sm"}})},k$=S$({baseStyle:x$,sizes:w$,defaultProps:{size:"md",colorScheme:"blue"}}),{defineMultiStyleConfig:C$,definePartsStyle:T$}=oe(b_.keys),ha=F("select-bg");var fy;const _$={...(fy=Q.baseStyle)==null?void 0:fy.field,appearance:"none",paddingBottom:"1px",lineHeight:"normal",bg:ha.reference,[ha.variable]:"colors.white",_dark:{[ha.variable]:"colors.gray.700"},"> option, > optgroup":{bg:ha.reference}},P$={width:"6",height:"100%",insetEnd:"2",position:"relative",color:"currentColor",fontSize:"xl",_disabled:{opacity:.5}},E$=T$({field:_$,icon:P$}),pa={paddingInlineEnd:"8"};var hy,py,my,gy,yy,vy,Sy,by;const $$={lg:{...(hy=Q.sizes)==null?void 0:hy.lg,field:{...(py=Q.sizes)==null?void 0:py.lg.field,...pa}},md:{...(my=Q.sizes)==null?void 0:my.md,field:{...(gy=Q.sizes)==null?void 0:gy.md.field,...pa}},sm:{...(yy=Q.sizes)==null?void 0:yy.sm,field:{...(vy=Q.sizes)==null?void 0:vy.sm.field,...pa}},xs:{...(Sy=Q.sizes)==null?void 0:Sy.xs,field:{...(by=Q.sizes)==null?void 0:by.xs.field,...pa},icon:{insetEnd:"1"}}},A$=C$({baseStyle:E$,sizes:$$,variants:Q.variants,defaultProps:Q.defaultProps}),wc=F("skeleton-start-color"),kc=F("skeleton-end-color"),R$={[wc.variable]:"colors.gray.100",[kc.variable]:"colors.gray.400",_dark:{[wc.variable]:"colors.gray.800",[kc.variable]:"colors.gray.600"},background:wc.reference,borderColor:kc.reference,opacity:.7,borderRadius:"sm"},M$={baseStyle:R$},Cc=F("skip-link-bg"),z$={borderRadius:"md",fontWeight:"semibold",_focusVisible:{boxShadow:"outline",padding:"4",position:"fixed",top:"6",insetStart:"6",[Cc.variable]:"colors.white",_dark:{[Cc.variable]:"colors.gray.700"},bg:Cc.reference}},D$={baseStyle:z$},{defineMultiStyleConfig:I$,definePartsStyle:eu}=oe(x_.keys),jr=F("slider-thumb-size"),ps=F("slider-track-size"),Hn=F("slider-bg"),L$=e=>{const{orientation:t}=e;return{display:"inline-block",position:"relative",cursor:"pointer",_disabled:{opacity:.6,cursor:"default",pointerEvents:"none"},...wh({orientation:t,vertical:{h:"100%",px:mn(jr.reference).divide(2).toString()},horizontal:{w:"100%",py:mn(jr.reference).divide(2).toString()}})}},j$=e=>({...wh({orientation:e.orientation,horizontal:{h:ps.reference},vertical:{w:ps.reference}}),overflow:"hidden",borderRadius:"sm",[Hn.variable]:"colors.gray.200",_dark:{[Hn.variable]:"colors.whiteAlpha.200"},_disabled:{[Hn.variable]:"colors.gray.300",_dark:{[Hn.variable]:"colors.whiteAlpha.300"}},bg:Hn.reference}),F$=e=>{const{orientation:t}=e;return{...wh({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:jr.reference,h:jr.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"}}},B$=e=>{const{colorScheme:t}=e;return{width:"inherit",height:"inherit",[Hn.variable]:`colors.${t}.500`,_dark:{[Hn.variable]:`colors.${t}.200`},bg:Hn.reference}},V$=eu(e=>({container:L$(e),track:j$(e),thumb:F$(e),filledTrack:B$(e)})),O$=eu({container:{[jr.variable]:"sizes.4",[ps.variable]:"sizes.1"}}),N$=eu({container:{[jr.variable]:"sizes.3.5",[ps.variable]:"sizes.1"}}),W$=eu({container:{[jr.variable]:"sizes.2.5",[ps.variable]:"sizes.0.5"}}),U$={lg:O$,md:N$,sm:W$},H$=I$({baseStyle:V$,sizes:U$,defaultProps:{size:"md",colorScheme:"blue"}}),br=Re("spinner-size"),K$={width:[br.reference],height:[br.reference]},G$={xs:{[br.variable]:"sizes.3"},sm:{[br.variable]:"sizes.4"},md:{[br.variable]:"sizes.6"},lg:{[br.variable]:"sizes.8"},xl:{[br.variable]:"sizes.12"}},X$={baseStyle:K$,sizes:G$,defaultProps:{size:"md"}},{defineMultiStyleConfig:Y$,definePartsStyle:hS}=oe(w_.keys),q$={fontWeight:"medium"},Q$={opacity:.8,marginBottom:"2"},Z$={verticalAlign:"baseline",fontWeight:"semibold"},J$={marginEnd:1,w:"3.5",h:"3.5",verticalAlign:"middle"},eA=hS({container:{},label:q$,helpText:Q$,number:Z$,icon:J$}),tA={md:hS({label:{fontSize:"sm"},helpText:{fontSize:"sm"},number:{fontSize:"2xl"}})},nA=Y$({baseStyle:eA,sizes:tA,defaultProps:{size:"md"}}),{defineMultiStyleConfig:rA,definePartsStyle:ki}=oe(["stepper","step","title","description","indicator","separator","icon","number"]),yn=F("stepper-indicator-size"),uo=F("stepper-icon-size"),co=F("stepper-title-font-size"),Ci=F("stepper-description-font-size"),fi=F("stepper-accent-color"),oA=ki(({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"},[fi.variable]:`colors.${e}.500`,_dark:{[fi.variable]:`colors.${e}.200`}},title:{fontSize:co.reference,fontWeight:"medium"},description:{fontSize:Ci.reference,color:"chakra-subtle-text"},number:{fontSize:co.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:uo.reference,height:uo.reference},indicator:{flexShrink:0,borderRadius:"full",width:yn.reference,height:yn.reference,display:"flex",justifyContent:"center",alignItems:"center","&[data-status=active]":{borderWidth:"2px",borderColor:fi.reference},"&[data-status=complete]":{bg:fi.reference,color:"chakra-inverse-text"},"&[data-status=incomplete]":{borderWidth:"2px"}},separator:{bg:"chakra-border-color",flex:"1","&[data-status=complete]":{bg:fi.reference},"&[data-orientation=horizontal]":{width:"100%",height:"2px",marginStart:"2"},"&[data-orientation=vertical]":{width:"2px",position:"absolute",height:"100%",maxHeight:`calc(100% - ${yn.reference} - 8px)`,top:`calc(${yn.reference} + 4px)`,insetStart:`calc(${yn.reference} / 2 - 1px)`}}})),iA=rA({baseStyle:oA,sizes:{xs:ki({stepper:{[yn.variable]:"sizes.4",[uo.variable]:"sizes.3",[co.variable]:"fontSizes.xs",[Ci.variable]:"fontSizes.xs"}}),sm:ki({stepper:{[yn.variable]:"sizes.6",[uo.variable]:"sizes.4",[co.variable]:"fontSizes.sm",[Ci.variable]:"fontSizes.xs"}}),md:ki({stepper:{[yn.variable]:"sizes.8",[uo.variable]:"sizes.5",[co.variable]:"fontSizes.md",[Ci.variable]:"fontSizes.sm"}}),lg:ki({stepper:{[yn.variable]:"sizes.10",[uo.variable]:"sizes.6",[co.variable]:"fontSizes.lg",[Ci.variable]:"fontSizes.md"}})},defaultProps:{size:"md",colorScheme:"blue"}}),{defineMultiStyleConfig:sA,definePartsStyle:Ba}=oe(k_.keys),Ui=Re("switch-track-width"),$r=Re("switch-track-height"),Tc=Re("switch-track-diff"),aA=gn.subtract(Ui,$r),Qd=Re("switch-thumb-x"),hi=Re("switch-bg"),lA=e=>{const{colorScheme:t}=e;return{borderRadius:"full",p:"0.5",width:[Ui.reference],height:[$r.reference],transitionProperty:"common",transitionDuration:"fast",[hi.variable]:"colors.gray.300",_dark:{[hi.variable]:"colors.whiteAlpha.400"},_focusVisible:{boxShadow:"outline"},_disabled:{opacity:.4,cursor:"not-allowed"},_checked:{[hi.variable]:`colors.${t}.500`,_dark:{[hi.variable]:`colors.${t}.200`}},bg:hi.reference}},uA={bg:"white",transitionProperty:"transform",transitionDuration:"normal",borderRadius:"inherit",width:[$r.reference],height:[$r.reference],_checked:{transform:`translateX(${Qd.reference})`}},cA=Ba(e=>({container:{[Tc.variable]:aA,[Qd.variable]:Tc.reference,_rtl:{[Qd.variable]:gn(Tc).negate().toString()}},track:lA(e),thumb:uA})),dA={sm:Ba({container:{[Ui.variable]:"1.375rem",[$r.variable]:"sizes.3"}}),md:Ba({container:{[Ui.variable]:"1.875rem",[$r.variable]:"sizes.4"}}),lg:Ba({container:{[Ui.variable]:"2.875rem",[$r.variable]:"sizes.6"}})},fA=sA({baseStyle:cA,sizes:dA,defaultProps:{size:"md",colorScheme:"blue"}}),{defineMultiStyleConfig:hA,definePartsStyle:Po}=oe(C_.keys),pA=Po({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"}}),_l={"&[data-is-numeric=true]":{textAlign:"end"}},mA=Po(e=>{const{colorScheme:t}=e;return{th:{color:j("gray.600","gray.400")(e),borderBottom:"1px",borderColor:j(`${t}.100`,`${t}.700`)(e),..._l},td:{borderBottom:"1px",borderColor:j(`${t}.100`,`${t}.700`)(e),..._l},caption:{color:j("gray.600","gray.100")(e)},tfoot:{tr:{"&:last-of-type":{th:{borderBottomWidth:0}}}}}}),gA=Po(e=>{const{colorScheme:t}=e;return{th:{color:j("gray.600","gray.400")(e),borderBottom:"1px",borderColor:j(`${t}.100`,`${t}.700`)(e),..._l},td:{borderBottom:"1px",borderColor:j(`${t}.100`,`${t}.700`)(e),..._l},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}}}}}}),yA={simple:mA,striped:gA,unstyled:{}},vA={sm:Po({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:Po({th:{px:"6",py:"3",lineHeight:"4",fontSize:"xs"},td:{px:"6",py:"4",lineHeight:"5"},caption:{px:"6",py:"2",fontSize:"sm"}}),lg:Po({th:{px:"8",py:"4",lineHeight:"5",fontSize:"sm"},td:{px:"8",py:"5",lineHeight:"6"},caption:{px:"6",py:"2",fontSize:"md"}})},SA=hA({baseStyle:pA,variants:yA,sizes:vA,defaultProps:{variant:"simple",size:"md",colorScheme:"gray"}}),nt=F("tabs-color"),Ot=F("tabs-bg"),ma=F("tabs-border-color"),{defineMultiStyleConfig:bA,definePartsStyle:an}=oe(T_.keys),xA=e=>{const{orientation:t}=e;return{display:t==="vertical"?"flex":"block"}},wA=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}}},kA=e=>{const{align:t="start",orientation:n}=e;return{justifyContent:{end:"flex-end",center:"center",start:"flex-start"}[t],flexDirection:n==="vertical"?"column":"row"}},CA={p:4},TA=an(e=>({root:xA(e),tab:wA(e),tablist:kA(e),tabpanel:CA})),_A={sm:an({tab:{py:1,px:4,fontSize:"sm"}}),md:an({tab:{fontSize:"md",py:2,px:4}}),lg:an({tab:{fontSize:"lg",py:3,px:4}})},PA=an(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:{[nt.variable]:`colors.${t}.600`,_dark:{[nt.variable]:`colors.${t}.300`},borderColor:"currentColor"},_active:{[Ot.variable]:"colors.gray.200",_dark:{[Ot.variable]:"colors.whiteAlpha.300"}},_disabled:{_active:{bg:"none"}},color:nt.reference,bg:Ot.reference}}}),EA=an(e=>{const{colorScheme:t}=e;return{tab:{borderTopRadius:"md",border:"1px solid",borderColor:"transparent",mb:"-1px",[ma.variable]:"transparent",_selected:{[nt.variable]:`colors.${t}.600`,[ma.variable]:"colors.white",_dark:{[nt.variable]:`colors.${t}.300`,[ma.variable]:"colors.gray.800"},borderColor:"inherit",borderBottomColor:ma.reference},color:nt.reference},tablist:{mb:"-1px",borderBottom:"1px solid",borderColor:"inherit"}}}),$A=an(e=>{const{colorScheme:t}=e;return{tab:{border:"1px solid",borderColor:"inherit",[Ot.variable]:"colors.gray.50",_dark:{[Ot.variable]:"colors.whiteAlpha.50"},mb:"-1px",_notLast:{marginEnd:"-1px"},_selected:{[Ot.variable]:"colors.white",[nt.variable]:`colors.${t}.600`,_dark:{[Ot.variable]:"colors.gray.800",[nt.variable]:`colors.${t}.300`},borderColor:"inherit",borderTopColor:"currentColor",borderBottomColor:"transparent"},color:nt.reference,bg:Ot.reference},tablist:{mb:"-1px",borderBottom:"1px solid",borderColor:"inherit"}}}),AA=an(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`)}}}}),RA=an(e=>{const{colorScheme:t}=e;return{tab:{borderRadius:"full",fontWeight:"semibold",[nt.variable]:"colors.gray.600",_dark:{[nt.variable]:"inherit"},_selected:{[nt.variable]:"colors.white",[Ot.variable]:`colors.${t}.600`,_dark:{[nt.variable]:"colors.gray.800",[Ot.variable]:`colors.${t}.300`}},color:nt.reference,bg:Ot.reference}}}),MA=an({}),zA={line:PA,enclosed:EA,"enclosed-colored":$A,"soft-rounded":AA,"solid-rounded":RA,unstyled:MA},DA=bA({baseStyle:TA,sizes:_A,variants:zA,defaultProps:{size:"md",variant:"line",colorScheme:"blue"}}),{defineMultiStyleConfig:IA,definePartsStyle:Ar}=oe(__.keys),$g=F("tag-bg"),Ag=F("tag-color"),_c=F("tag-shadow"),Va=F("tag-min-height"),Oa=F("tag-min-width"),Na=F("tag-font-size"),Wa=F("tag-padding-inline"),LA={fontWeight:"medium",lineHeight:1.2,outline:0,[Ag.variable]:Ce.color.reference,[$g.variable]:Ce.bg.reference,[_c.variable]:Ce.shadow.reference,color:Ag.reference,bg:$g.reference,boxShadow:_c.reference,borderRadius:"md",minH:Va.reference,minW:Oa.reference,fontSize:Na.reference,px:Wa.reference,_focusVisible:{[_c.variable]:"shadows.outline"}},jA={lineHeight:1.2,overflow:"visible"},FA={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}},BA=Ar({container:LA,label:jA,closeButton:FA}),VA={sm:Ar({container:{[Va.variable]:"sizes.5",[Oa.variable]:"sizes.5",[Na.variable]:"fontSizes.xs",[Wa.variable]:"space.2"},closeButton:{marginEnd:"-2px",marginStart:"0.35rem"}}),md:Ar({container:{[Va.variable]:"sizes.6",[Oa.variable]:"sizes.6",[Na.variable]:"fontSizes.sm",[Wa.variable]:"space.2"}}),lg:Ar({container:{[Va.variable]:"sizes.8",[Oa.variable]:"sizes.8",[Na.variable]:"fontSizes.md",[Wa.variable]:"space.3"}})},OA={subtle:Ar(e=>{var t;return{container:(t=Oi.variants)==null?void 0:t.subtle(e)}}),solid:Ar(e=>{var t;return{container:(t=Oi.variants)==null?void 0:t.solid(e)}}),outline:Ar(e=>{var t;return{container:(t=Oi.variants)==null?void 0:t.outline(e)}})},NA=IA({variants:OA,baseStyle:BA,sizes:VA,defaultProps:{size:"md",variant:"subtle",colorScheme:"gray"}});var xy;const WA={...(xy=Q.baseStyle)==null?void 0:xy.field,paddingY:"2",minHeight:"20",lineHeight:"short",verticalAlign:"top"};var wy;const UA={outline:e=>{var t;return((t=Q.variants)==null?void 0:t.outline(e).field)??{}},flushed:e=>{var t;return((t=Q.variants)==null?void 0:t.flushed(e).field)??{}},filled:e=>{var t;return((t=Q.variants)==null?void 0:t.filled(e).field)??{}},unstyled:((wy=Q.variants)==null?void 0:wy.unstyled.field)??{}};var ky,Cy,Ty,_y;const HA={xs:((ky=Q.sizes)==null?void 0:ky.xs.field)??{},sm:((Cy=Q.sizes)==null?void 0:Cy.sm.field)??{},md:((Ty=Q.sizes)==null?void 0:Ty.md.field)??{},lg:((_y=Q.sizes)==null?void 0:_y.lg.field)??{}},KA={baseStyle:WA,sizes:HA,variants:UA,defaultProps:{size:"md",variant:"outline"}},ga=Re("tooltip-bg"),Pc=Re("tooltip-fg"),GA=Re("popper-arrow-bg"),XA={bg:ga.reference,color:Pc.reference,[ga.variable]:"colors.gray.700",[Pc.variable]:"colors.whiteAlpha.900",_dark:{[ga.variable]:"colors.gray.300",[Pc.variable]:"colors.gray.900"},[GA.variable]:ga.reference,px:"2",py:"0.5",borderRadius:"sm",fontWeight:"medium",fontSize:"sm",boxShadow:"md",maxW:"xs",zIndex:"tooltip"},YA={baseStyle:XA},qA={Accordion:I_,Alert:vP,Avatar:$P,Badge:Oi,Breadcrumb:BP,Button:XP,Checkbox:Nn,CloseButton:uE,Code:hE,Container:mE,Divider:bE,Drawer:RE,Editable:FE,Form:UE,FormError:qE,FormLabel:ZE,Heading:t5,Input:Q,Kbd:d5,Link:h5,List:v5,Menu:$5,Modal:V5,NumberInput:Y5,PinInput:J5,Popover:c$,Progress:v$,Radio:k$,Select:A$,Skeleton:M$,SkipLink:D$,Slider:H$,Spinner:X$,Stat:nA,Switch:fA,Table:SA,Tabs:DA,Tag:NA,Textarea:KA,Tooltip:YA,Card:JP,Stepper:iA},QA={none:0,"1px":"1px solid","2px":"2px solid","4px":"4px solid","8px":"8px solid"},ZA={base:"0em",sm:"30em",md:"48em",lg:"62em",xl:"80em","2xl":"96em"},JA={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"}},eR={none:"0",sm:"0.125rem",base:"0.25rem",md:"0.375rem",lg:"0.5rem",xl:"0.75rem","2xl":"1rem","3xl":"1.5rem",full:"9999px"},tR={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"},nR={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"},rR={"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)"},oR={"ultra-fast":"50ms",faster:"100ms",fast:"150ms",normal:"200ms",slow:"300ms",slower:"400ms","ultra-slow":"500ms"},iR={property:nR,easing:rR,duration:oR},sR={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},aR={none:0,sm:"4px",base:"8px",md:"12px",lg:"16px",xl:"24px","2xl":"40px","3xl":"64px"},lR={breakpoints:ZA,zIndices:sR,radii:eR,blur:aR,colors:JA,...cS,sizes:oS,shadows:tR,space:rS,borders:QA,transition:iR},uR={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"}}},cR={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"}}},dR="ltr",fR={useSystemColorMode:!1,initialColorMode:"light",cssVarPrefix:"chakra"},hR={semanticTokens:uR,direction:dR,...lR,components:qA,styles:cR,config:fR};var pR=!1;function mR(e){if(e.sheet)return e.sheet;for(var t=0;t0?Fe(Go,--at):0,Fo--,_e===10&&(Fo=1,nu--),_e}function pt(){return _e=at2||gs(_e)>3?"":" "}function ER(e,t){for(;--t&&pt()&&!(_e<48||_e>102||_e>57&&_e<65||_e>70&&_e<97););return $s(e,Ua()+(t<6&&ln()==32&&pt()==32))}function Jd(e){for(;pt();)switch(_e){case e:return at;case 34:case 39:e!==34&&e!==39&&Jd(_e);break;case 40:e===41&&Jd(e);break;case 92:pt();break}return at}function $R(e,t){for(;pt()&&e+_e!==57;)if(e+_e===84&&ln()===47)break;return"/*"+$s(t,at-1)+"*"+tu(e===47?e:pt())}function AR(e){for(;!gs(ln());)pt();return $s(e,at)}function RR(e){return SS(Ka("",null,null,null,[""],e=vS(e),0,[0],e))}function Ka(e,t,n,r,o,i,s,a,l){for(var u=0,c=0,d=s,f=0,y=0,v=0,S=1,_=1,p=1,h=0,m="",b=o,T=i,E=r,k=m;_;)switch(v=h,h=pt()){case 40:if(v!=108&&Fe(k,d-1)==58){Zd(k+=q(Ha(h),"&","&\f"),"&\f")!=-1&&(p=-1);break}case 34:case 39:case 91:k+=Ha(h);break;case 9:case 10:case 13:case 32:k+=PR(v);break;case 92:k+=ER(Ua()-1,7);continue;case 47:switch(ln()){case 42:case 47:ya(MR($R(pt(),Ua()),t,n),l);break;default:k+="/"}break;case 123*S:a[u++]=Jt(k)*p;case 125*S:case 59:case 0:switch(h){case 0:case 125:_=0;case 59+c:p==-1&&(k=q(k,/\f/g,"")),y>0&&Jt(k)-d&&ya(y>32?Mg(k+";",r,n,d-1):Mg(q(k," ","")+";",r,n,d-2),l);break;case 59:k+=";";default:if(ya(E=Rg(k,t,n,u,c,o,a,m,b=[],T=[],d),i),h===123)if(c===0)Ka(k,t,E,E,b,i,d,a,T);else switch(f===99&&Fe(k,3)===110?100:f){case 100:case 108:case 109:case 115:Ka(e,E,E,r&&ya(Rg(e,E,E,0,0,o,a,m,o,b=[],d),T),o,T,d,a,r?b:T);break;default:Ka(k,E,E,E,[""],T,0,a,T)}}u=c=y=0,S=p=1,m=k="",d=s;break;case 58:d=1+Jt(k),y=v;default:if(S<1){if(h==123)--S;else if(h==125&&S++==0&&_R()==125)continue}switch(k+=tu(h),h*S){case 38:p=c>0?1:(k+="\f",-1);break;case 44:a[u++]=(Jt(k)-1)*p,p=1;break;case 64:ln()===45&&(k+=Ha(pt())),f=ln(),c=d=Jt(m=k+=AR(Ua())),h++;break;case 45:v===45&&Jt(k)==2&&(S=0)}}return i}function Rg(e,t,n,r,o,i,s,a,l,u,c){for(var d=o-1,f=o===0?i:[""],y=Eh(f),v=0,S=0,_=0;v0?f[p]+" "+h:q(h,/&\f/g,f[p])))&&(l[_++]=m);return ru(e,t,n,o===0?_h:a,l,u,c)}function MR(e,t,n){return ru(e,t,n,pS,tu(TR()),ms(e,2,-2),0)}function Mg(e,t,n,r){return ru(e,t,n,Ph,ms(e,0,r),ms(e,r+1,-1),r)}function Eo(e,t){for(var n="",r=Eh(e),o=0;o6)switch(Fe(e,t+1)){case 109:if(Fe(e,t+4)!==45)break;case 102:return q(e,/(.+:)(.+)-([^]+)/,"$1"+Y+"$2-$3$1"+Pl+(Fe(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~Zd(e,"stretch")?xS(q(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(Fe(e,t+1)!==115)break;case 6444:switch(Fe(e,Jt(e)-3-(~Zd(e,"!important")&&10))){case 107:return q(e,":",":"+Y)+e;case 101:return q(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Y+(Fe(e,14)===45?"inline-":"")+"box$3$1"+Y+"$2$3$1"+We+"$2box$3")+e}break;case 5936:switch(Fe(e,t+11)){case 114:return Y+e+We+q(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Y+e+We+q(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Y+e+We+q(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return Y+e+We+e+e}return e}var OR=function(t,n,r,o){if(t.length>-1&&!t.return)switch(t.type){case Ph:t.return=xS(t.value,t.length);break;case mS:return Eo([pi(t,{value:q(t.value,"@","@"+Y)})],o);case _h:if(t.length)return CR(t.props,function(i){switch(kR(i,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Eo([pi(t,{props:[q(i,/:(read-\w+)/,":"+Pl+"$1")]})],o);case"::placeholder":return Eo([pi(t,{props:[q(i,/:(plac\w+)/,":"+Y+"input-$1")]}),pi(t,{props:[q(i,/:(plac\w+)/,":"+Pl+"$1")]}),pi(t,{props:[q(i,/:(plac\w+)/,We+"input-$1")]})],o)}return""})}},NR=[OR],WR=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(S){var _=S.getAttribute("data-emotion");_.indexOf(" ")!==-1&&(document.head.appendChild(S),S.setAttribute("data-s",""))})}var o=t.stylisPlugins||NR,i={},s,a=[];s=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(S){for(var _=S.getAttribute("data-emotion").split(" "),p=1;p<_.length;p++)i[_[p]]=!0;a.push(S)});var l,u=[BR,VR];{var c,d=[zR,IR(function(S){c.insert(S)})],f=DR(u.concat(o,d)),y=function(_){return Eo(RR(_),f)};l=function(_,p,h,m){c=h,y(_?_+"{"+p.styles+"}":p.styles),m&&(v.inserted[p.name]=!0)}}var v={key:n,sheet:new yR({key:n,container:s,nonce:t.nonce,speedy:t.speedy,prepend:t.prepend,insertionPoint:t.insertionPoint}),nonce:t.nonce,inserted:i,registered:{},insert:l};return v.sheet.hydrate(a),v},wS={exports:{}},te={};/** @license React v16.13.1 * react-is.production.min.js * * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var De=typeof Symbol=="function"&&Symbol.for,_h=De?Symbol.for("react.element"):60103,Ph=De?Symbol.for("react.portal"):60106,ou=De?Symbol.for("react.fragment"):60107,iu=De?Symbol.for("react.strict_mode"):60108,su=De?Symbol.for("react.profiler"):60114,au=De?Symbol.for("react.provider"):60109,lu=De?Symbol.for("react.context"):60110,Eh=De?Symbol.for("react.async_mode"):60111,uu=De?Symbol.for("react.concurrent_mode"):60111,cu=De?Symbol.for("react.forward_ref"):60112,du=De?Symbol.for("react.suspense"):60113,BR=De?Symbol.for("react.suspense_list"):60120,fu=De?Symbol.for("react.memo"):60115,hu=De?Symbol.for("react.lazy"):60116,VR=De?Symbol.for("react.block"):60121,OR=De?Symbol.for("react.fundamental"):60117,NR=De?Symbol.for("react.responder"):60118,WR=De?Symbol.for("react.scope"):60119;function bt(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case _h:switch(e=e.type,e){case Eh:case uu:case ou:case su:case iu:case du:return e;default:switch(e=e&&e.$$typeof,e){case lu:case cu:case hu:case fu:case au:return e;default:return t}}case Ph:return t}}}function vS(e){return bt(e)===uu}te.AsyncMode=Eh;te.ConcurrentMode=uu;te.ContextConsumer=lu;te.ContextProvider=au;te.Element=_h;te.ForwardRef=cu;te.Fragment=ou;te.Lazy=hu;te.Memo=fu;te.Portal=Ph;te.Profiler=su;te.StrictMode=iu;te.Suspense=du;te.isAsyncMode=function(e){return vS(e)||bt(e)===Eh};te.isConcurrentMode=vS;te.isContextConsumer=function(e){return bt(e)===lu};te.isContextProvider=function(e){return bt(e)===au};te.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===_h};te.isForwardRef=function(e){return bt(e)===cu};te.isFragment=function(e){return bt(e)===ou};te.isLazy=function(e){return bt(e)===hu};te.isMemo=function(e){return bt(e)===fu};te.isPortal=function(e){return bt(e)===Ph};te.isProfiler=function(e){return bt(e)===su};te.isStrictMode=function(e){return bt(e)===iu};te.isSuspense=function(e){return bt(e)===du};te.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===ou||e===uu||e===su||e===iu||e===du||e===BR||typeof e=="object"&&e!==null&&(e.$$typeof===hu||e.$$typeof===fu||e.$$typeof===au||e.$$typeof===lu||e.$$typeof===cu||e.$$typeof===OR||e.$$typeof===NR||e.$$typeof===WR||e.$$typeof===VR)};te.typeOf=bt;yS.exports=te;var UR=yS.exports,SS=UR,HR={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},KR={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},bS={};bS[SS.ForwardRef]=HR;bS[SS.Memo]=KR;var GR=!0;function YR(e,t,n){var r="";return n.split(" ").forEach(function(o){e[o]!==void 0?t.push(e[o]+";"):o&&(r+=o+" ")}),r}var xS=function(t,n,r){var o=t.key+"-"+n.name;(r===!1||GR===!1)&&t.registered[o]===void 0&&(t.registered[o]=n.styles)},wS=function(t,n,r){xS(t,n,r);var o=t.key+"-"+n.name;if(t.inserted[n.name]===void 0){var i=n;do t.insert(n===i?"."+o:"",i,t.sheet,!0),i=i.next;while(i!==void 0)}};function XR(e){for(var t=0,n,r=0,o=e.length;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 qR={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},QR=!1,ZR=/[A-Z]|^ms/g,JR=/_EMO_([^_]+?)_([^]*?)_EMO_/g,kS=function(t){return t.charCodeAt(1)===45},Rg=function(t){return t!=null&&typeof t!="boolean"},_c=mS(function(e){return kS(e)?e:e.replace(ZR,"-$&").toLowerCase()}),Mg=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(JR,function(r,o,i){return en={name:o,styles:i,next:en},o})}return qR[t]!==1&&!kS(t)&&typeof n=="number"&&n!==0?n+"px":n},eM="Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.";function gs(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 en={name:o.name,styles:o.styles,next:en},o.name;var i=n;if(i.styles!==void 0){var s=i.next;if(s!==void 0)for(;s!==void 0;)en={name:s.name,styles:s.styles,next:en},s=s.next;var a=i.styles+";";return a}return tM(e,t,n)}case"function":{if(e!==void 0){var l=en,u=n(e);return en=l,gs(e,t,u)}break}}var c=n;if(t==null)return c;var d=t[c];return d!==void 0?d:c}function tM(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o{const i=t?r.preventTransition():void 0;document.documentElement.dataset.theme=o,document.documentElement.style.colorScheme=o,i==null||i()},setClassName(o){document.body.classList.add(o?va.dark:va.light),document.body.classList.remove(o?va.light:va.dark)},query(){return window.matchMedia("(prefers-color-scheme: dark)")},getSystemTheme(o){return r.query().matches??o==="dark"?"dark":"light"},addListener(o){const i=r.query(),s=a=>{o(a.matches?"dark":"light")};return typeof i.addListener=="function"?i.addListener(s):i.addEventListener("change",s),()=>{typeof i.removeListener=="function"?i.removeListener(s):i.removeEventListener("change",s)}},preventTransition(){const o=document.createElement("style");return o.appendChild(document.createTextNode("*{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}")),n!==void 0&&(o.nonce=n),document.head.appendChild(o),()=>{window.getComputedStyle(document.body),requestAnimationFrame(()=>{requestAnimationFrame(()=>{document.head.removeChild(o)})})}}};return r}const cM="chakra-ui-color-mode";function dM(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{}}}}const fM=dM(cM),Ig=()=>{},hM=T2()?T.useLayoutEffect:T.useEffect;function Lg(e,t){return e.type==="cookie"&&e.ssr?e.get(t):t}const _S=Ah(function(t,n){const{value:r,children:o,options:{useSystemColorMode:i,initialColorMode:s,disableTransitionOnChange:a}={},colorModeManager:l=fM}=t,u=s==="dark"?"dark":"light",[c,d]=T.useState(()=>Lg(l,u)),[f,y]=T.useState(()=>Lg(l)),{getSystemTheme:v,setClassName:S,setDataset:_,addListener:p}=T.useMemo(()=>uM({preventTransition:a,nonce:n==null?void 0:n.nonce}),[a,n==null?void 0:n.nonce]),h=s==="system"&&!c?f:c,m=T.useCallback(E=>{const k=E==="system"?v():E;d(k),S(k==="dark"),_(k),l.set(k)},[l,v,S,_]);hM(()=>{s==="system"&&y(v())},[]),T.useEffect(()=>{const E=l.get();if(E){m(E);return}if(s==="system"){m("system");return}m(u)},[l,u,s,m]);const b=T.useCallback(()=>{m(h==="dark"?"light":"dark")},[h,m]);T.useEffect(()=>{if(i)return p(m)},[i,p,m]);const C=T.useMemo(()=>({colorMode:r??h,toggleColorMode:r?Ig:b,setColorMode:r?Ig:m,forced:r!==void 0}),[h,b,m,r]);return P.jsx(Rh.Provider,{value:C,children:o})});_S.displayName="ColorModeProvider";const PS=String.raw,ES=PS` + */var De=typeof Symbol=="function"&&Symbol.for,$h=De?Symbol.for("react.element"):60103,Ah=De?Symbol.for("react.portal"):60106,ou=De?Symbol.for("react.fragment"):60107,iu=De?Symbol.for("react.strict_mode"):60108,su=De?Symbol.for("react.profiler"):60114,au=De?Symbol.for("react.provider"):60109,lu=De?Symbol.for("react.context"):60110,Rh=De?Symbol.for("react.async_mode"):60111,uu=De?Symbol.for("react.concurrent_mode"):60111,cu=De?Symbol.for("react.forward_ref"):60112,du=De?Symbol.for("react.suspense"):60113,UR=De?Symbol.for("react.suspense_list"):60120,fu=De?Symbol.for("react.memo"):60115,hu=De?Symbol.for("react.lazy"):60116,HR=De?Symbol.for("react.block"):60121,KR=De?Symbol.for("react.fundamental"):60117,GR=De?Symbol.for("react.responder"):60118,XR=De?Symbol.for("react.scope"):60119;function bt(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case $h:switch(e=e.type,e){case Rh:case uu:case ou:case su:case iu:case du:return e;default:switch(e=e&&e.$$typeof,e){case lu:case cu:case hu:case fu:case au:return e;default:return t}}case Ah:return t}}}function kS(e){return bt(e)===uu}te.AsyncMode=Rh;te.ConcurrentMode=uu;te.ContextConsumer=lu;te.ContextProvider=au;te.Element=$h;te.ForwardRef=cu;te.Fragment=ou;te.Lazy=hu;te.Memo=fu;te.Portal=Ah;te.Profiler=su;te.StrictMode=iu;te.Suspense=du;te.isAsyncMode=function(e){return kS(e)||bt(e)===Rh};te.isConcurrentMode=kS;te.isContextConsumer=function(e){return bt(e)===lu};te.isContextProvider=function(e){return bt(e)===au};te.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===$h};te.isForwardRef=function(e){return bt(e)===cu};te.isFragment=function(e){return bt(e)===ou};te.isLazy=function(e){return bt(e)===hu};te.isMemo=function(e){return bt(e)===fu};te.isPortal=function(e){return bt(e)===Ah};te.isProfiler=function(e){return bt(e)===su};te.isStrictMode=function(e){return bt(e)===iu};te.isSuspense=function(e){return bt(e)===du};te.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===ou||e===uu||e===su||e===iu||e===du||e===UR||typeof e=="object"&&e!==null&&(e.$$typeof===hu||e.$$typeof===fu||e.$$typeof===au||e.$$typeof===lu||e.$$typeof===cu||e.$$typeof===KR||e.$$typeof===GR||e.$$typeof===XR||e.$$typeof===HR)};te.typeOf=bt;wS.exports=te;var YR=wS.exports,CS=YR,qR={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},QR={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},TS={};TS[CS.ForwardRef]=qR;TS[CS.Memo]=QR;var ZR=!0;function _S(e,t,n){var r="";return n.split(" ").forEach(function(o){e[o]!==void 0?t.push(e[o]+";"):o&&(r+=o+" ")}),r}var Mh=function(t,n,r){var o=t.key+"-"+n.name;(r===!1||ZR===!1)&&t.registered[o]===void 0&&(t.registered[o]=n.styles)},zh=function(t,n,r){Mh(t,n,r);var o=t.key+"-"+n.name;if(t.inserted[n.name]===void 0){var i=n;do t.insert(n===i?"."+o:"",i,t.sheet,!0),i=i.next;while(i!==void 0)}};function JR(e){for(var t=0,n,r=0,o=e.length;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 eM={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},tM=!1,nM=/[A-Z]|^ms/g,rM=/_EMO_([^_]+?)_([^]*?)_EMO_/g,PS=function(t){return t.charCodeAt(1)===45},Ig=function(t){return t!=null&&typeof t!="boolean"},Ec=bS(function(e){return PS(e)?e:e.replace(nM,"-$&").toLowerCase()}),Lg=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(rM,function(r,o,i){return en={name:o,styles:i,next:en},o})}return eM[t]!==1&&!PS(t)&&typeof n=="number"&&n!==0?n+"px":n},oM="Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.";function ys(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 en={name:o.name,styles:o.styles,next:en},o.name;var i=n;if(i.styles!==void 0){var s=i.next;if(s!==void 0)for(;s!==void 0;)en={name:s.name,styles:s.styles,next:en},s=s.next;var a=i.styles+";";return a}return iM(e,t,n)}case"function":{if(e!==void 0){var l=en,u=n(e);return en=l,ys(e,t,u)}break}}var c=n;if(t==null)return c;var d=t[c];return d!==void 0?d:c}function iM(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o{const i=t?r.preventTransition():void 0;document.documentElement.dataset.theme=o,document.documentElement.style.colorScheme=o,i==null||i()},setClassName(o){document.body.classList.add(o?va.dark:va.light),document.body.classList.remove(o?va.light:va.dark)},query(){return window.matchMedia("(prefers-color-scheme: dark)")},getSystemTheme(o){return r.query().matches??o==="dark"?"dark":"light"},addListener(o){const i=r.query(),s=a=>{o(a.matches?"dark":"light")};return typeof i.addListener=="function"?i.addListener(s):i.addEventListener("change",s),()=>{typeof i.removeListener=="function"?i.removeListener(s):i.removeEventListener("change",s)}},preventTransition(){const o=document.createElement("style");return o.appendChild(document.createTextNode("*{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}")),n!==void 0&&(o.nonce=n),document.head.appendChild(o),()=>{window.getComputedStyle(document.body),requestAnimationFrame(()=>{requestAnimationFrame(()=>{document.head.removeChild(o)})})}}};return r}const vM="chakra-ui-color-mode";function SM(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{}}}}const bM=SM(vM),Vg=()=>{},xM=A2()?C.useLayoutEffect:C.useEffect;function Og(e,t){return e.type==="cookie"&&e.ssr?e.get(t):t}const RS=mu(function(t,n){const{value:r,children:o,options:{useSystemColorMode:i,initialColorMode:s,disableTransitionOnChange:a}={},colorModeManager:l=bM}=t,u=s==="dark"?"dark":"light",[c,d]=C.useState(()=>Og(l,u)),[f,y]=C.useState(()=>Og(l)),{getSystemTheme:v,setClassName:S,setDataset:_,addListener:p}=C.useMemo(()=>yM({preventTransition:a,nonce:n==null?void 0:n.nonce}),[a,n==null?void 0:n.nonce]),h=s==="system"&&!c?f:c,m=C.useCallback(E=>{const k=E==="system"?v():E;d(k),S(k==="dark"),_(k),l.set(k)},[l,v,S,_]);xM(()=>{s==="system"&&y(v())},[]),C.useEffect(()=>{const E=l.get();if(E){m(E);return}if(s==="system"){m("system");return}m(u)},[l,u,s,m]);const b=C.useCallback(()=>{m(h==="dark"?"light":"dark")},[h,m]);C.useEffect(()=>{if(i)return p(m)},[i,p,m]);const T=C.useMemo(()=>({colorMode:r??h,toggleColorMode:r?Vg:b,setColorMode:r?Vg:m,forced:r!==void 0}),[h,b,m,r]);return P.jsx(Ih.Provider,{value:T,children:o})});RS.displayName="ColorModeProvider";const MS=String.raw,zS=MS` :root, :host { --chakra-vh: 100vh; @@ -84,7 +84,7 @@ Error generating stack: `+i.message+` --chakra-vh: 100dvh; } } -`,pM=()=>P.jsx(pu,{styles:ES}),mM=({scope:e=""})=>P.jsx(pu,{styles:PS` +`,wM=()=>P.jsx(gu,{styles:zS}),kM=({scope:e=""})=>P.jsx(gu,{styles:MS` html { line-height: 1.5; -webkit-text-size-adjust: 100%; @@ -336,8 +336,8 @@ Error generating stack: `+i.message+` display: none; } - ${ES} - `});function gM(e){const{cssVarsRoot:t,theme:n,children:r}=e,o=T.useMemo(()=>QT(n),[n]);return P.jsxs(sM,{theme:o,children:[P.jsx(yM,{root:t}),r]})}function yM({root:e=":host, :root"}){const t=[e,"[data-theme]"].join(",");return P.jsx(pu,{styles:n=>({[t]:n.__cssVars})})}zn({name:"StylesContext",errorMessage:"useStyles: `styles` is undefined. Seems you forgot to wrap the components in `` "});function vM(){const{colorMode:e}=mu();return P.jsx(pu,{styles:t=>{const n=N1(t,"styles.global"),r=$t(n,{theme:t,colorMode:e});return r?Y1(r)(t):void 0}})}const[SM,bM]=zn({strict:!1,name:"PortalManagerContext"});function $S(e){const{children:t,zIndex:n}=e;return P.jsx(SM,{value:{zIndex:n},children:t})}$S.displayName="PortalManager";const AS=T.createContext({getDocument(){return document},getWindow(){return window}});AS.displayName="EnvironmentContext";function RS(e){const{children:t,environment:n,disabled:r}=e,o=T.useRef(null),i=T.useMemo(()=>n||{getDocument:()=>{var a;return((a=o.current)==null?void 0:a.ownerDocument)??document},getWindow:()=>{var a;return((a=o.current)==null?void 0:a.ownerDocument.defaultView)??window}},[n]),s=!r||!n;return P.jsxs(AS.Provider,{value:i,children:[t,s&&P.jsx("span",{id:"__chakra_env",hidden:!0,ref:o})]})}RS.displayName="EnvironmentProvider";const xM=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=P.jsx(RS,{environment:a,disabled:u,children:t});return P.jsx(gM,{theme:s,cssVarsRoot:l,children:P.jsxs(_S,{colorModeManager:n,options:s.config,children:[i?P.jsx(mM,{scope:o}):P.jsx(pM,{}),!c&&P.jsx(vM,{}),r?P.jsx($S,{zIndex:r,children:d}):d]})})};function wM(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 gu(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}const Zd=e=>Array.isArray(e);function MS(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 Mh(e,t,n,r){if(typeof t=="function"){const[o,i]=jg(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]=jg(r);t=t(n!==void 0?n:e.custom,o,i)}return t}function yu(e,t,n){const r=e.getProps();return Mh(r,t,n!==void 0?n:r.custom,e)}const zh=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],Dh=["initial",...zh],As=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Vr=new Set(As),kn=e=>e*1e3,Cn=e=>e/1e3,kM={type:"spring",stiffness:500,damping:25,restSpeed:10},CM=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),TM={type:"keyframes",duration:.8},_M={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},PM=(e,{keyframes:t})=>t.length>2?TM:Vr.has(e)?e.startsWith("scale")?CM(t[1]):kM:_M;function Ih(e,t){return e?e[t]||e.default||e:void 0}const EM={skipAnimations:!1,useManualTiming:!1},$M=e=>e!==null;function vu(e,{repeat:t,repeatType:n="loop"},r){const o=e.filter($M),i=t&&n!=="loop"&&t%2===1?0:o.length-1;return!i||r===void 0?o[i]:r}const mt=e=>e;let Jd=mt;function AM(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 y=d&&r?t:n;return c&&i.add(u),y.has(u)||y.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],t.forEach(a),t.clear(),r=!1,o&&(o=!1,l.process(u))}};return l}const Sa=["read","resolveKeyframes","update","preRender","render","postRender"],RM=40;function zS(e,t){let n=!1,r=!0;const o={delta:0,timestamp:0,isProcessing:!1},i=()=>n=!0,s=Sa.reduce((p,h)=>(p[h]=AM(i),p),{}),{read:a,resolveKeyframes:l,update:u,preRender:c,render:d,postRender:f}=s,y=()=>{const p=performance.now();n=!1,o.delta=r?1e3/60:Math.max(Math.min(p-o.timestamp,RM),1),o.timestamp=p,o.isProcessing=!0,a.process(o),l.process(o),u.process(o),c.process(o),d.process(o),f.process(o),o.isProcessing=!1,n&&t&&(r=!1,e(y))},v=()=>{n=!0,r=!0,o.isProcessing||e(y)};return{schedule:Sa.reduce((p,h)=>{const m=s[h];return p[h]=(b,C=!1,E=!1)=>(n||v(),m.schedule(b,C,E)),p},{}),cancel:p=>{for(let h=0;h(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,MM=1e-7,zM=12;function DM(e,t,n,r,o){let i,s,a=0;do s=t+(n-t)/2,i=DS(s,r,o)-e,i>0?n=s:t=s;while(Math.abs(i)>MM&&++aDM(i,0,1,e,n);return i=>i===0||i===1?i:DS(o(i),t,r)}const IS=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,LS=e=>t=>1-e(1-t),jS=Rs(.33,1.53,.69,.99),Lh=LS(jS),FS=IS(Lh),BS=e=>(e*=2)<1?.5*Lh(e):.5*(2-Math.pow(2,-10*(e-1))),jh=e=>1-Math.sin(Math.acos(e)),VS=LS(jh),OS=IS(jh),NS=e=>/^0[^.\s]+$/u.test(e);function IM(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||NS(e):!0}const WS=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),US=e=>t=>typeof t=="string"&&t.startsWith(e),HS=US("--"),LM=US("var(--"),Fh=e=>LM(e)?jM.test(e.split("/*")[0].trim()):!1,jM=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,FM=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function BM(e){const t=FM.exec(e);if(!t)return[,];const[,n,r,o]=t;return[`--${n??r}`,o]}function KS(e,t,n=1){const[r,o]=BM(e);if(!r)return;const i=window.getComputedStyle(t).getPropertyValue(r);if(i){const s=i.trim();return WS(s)?parseFloat(s):s}return Fh(o)?KS(o,t,n+1):o}const Rn=(e,t,n)=>n>t?t:ntypeof e=="number",parse:parseFloat,transform:e=>e},Ss={...Go,transform:e=>Rn(0,1,e)},ba={...Go,default:1},Ms=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),Bn=Ms("deg"),un=Ms("%"),B=Ms("px"),VM=Ms("vh"),OM=Ms("vw"),Fg={...un,parse:e=>un.parse(e)/100,transform:e=>un.transform(e*100)},NM=new Set(["width","height","top","left","right","bottom","x","y","translateX","translateY"]),Bg=e=>e===Go||e===B,Vg=(e,t)=>parseFloat(e.split(", ")[t]),Og=(e,t)=>(n,{transform:r})=>{if(r==="none"||!r)return 0;const o=r.match(/^matrix3d\((.+)\)$/u);if(o)return Vg(o[1],t);{const i=r.match(/^matrix\((.+)\)$/u);return i?Vg(i[1],e):0}},WM=new Set(["x","y","z"]),UM=As.filter(e=>!WM.has(e));function HM(e){const t=[];return UM.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:Og(4,13),y:Og(5,14)};Bo.translateX=Bo.x;Bo.translateY=Bo.y;const GS=e=>t=>t.test(e),KM={test:e=>e==="auto",parse:e=>e},YS=[Go,B,un,Bn,OM,VM,KM],Ng=e=>YS.find(GS(e)),Rr=new Set;let ef=!1,tf=!1;function XS(){if(tf){const e=Array.from(Rr).filter(r=>r.needsMeasurement),t=new Set(e.map(r=>r.element)),n=new Map;t.forEach(r=>{const o=HM(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)})}tf=!1,ef=!1,Rr.forEach(e=>e.complete()),Rr.clear()}function qS(){Rr.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(tf=!0)})}function GM(){qS(),XS()}class Bh{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?(Rr.add(this),ef||(ef=!0,le.read(qS),le.resolveKeyframes(XS))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:n,element:r,motionValue:o}=this;for(let i=0;iMath.round(e*1e5)/1e5,Vh=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function YM(e){return e==null}const XM=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,Oh=(e,t)=>n=>!!(typeof n=="string"&&XM.test(n)&&n.startsWith(e)||t&&!YM(n)&&Object.prototype.hasOwnProperty.call(n,t)),QS=(e,t,n)=>r=>{if(typeof r!="string")return r;const[o,i,s,a]=r.match(Vh);return{[e]:parseFloat(o),[t]:parseFloat(i),[n]:parseFloat(s),alpha:a!==void 0?parseFloat(a):1}},qM=e=>Rn(0,255,e),Ec={...Go,transform:e=>Math.round(qM(e))},Tr={test:Oh("rgb","red"),parse:QS("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+Ec.transform(e)+", "+Ec.transform(t)+", "+Ec.transform(n)+", "+Ui(Ss.transform(r))+")"};function QM(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 nf={test:Oh("#"),parse:QM,transform:Tr.transform},fo={test:Oh("hsl","hue"),parse:QS("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+un.transform(Ui(t))+", "+un.transform(Ui(n))+", "+Ui(Ss.transform(r))+")"},Ue={test:e=>Tr.test(e)||nf.test(e)||fo.test(e),parse:e=>Tr.test(e)?Tr.parse(e):fo.test(e)?fo.parse(e):nf.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?Tr.transform(e):fo.transform(e)},ZM=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function JM(e){var t,n;return isNaN(e)&&typeof e=="string"&&(((t=e.match(Vh))===null||t===void 0?void 0:t.length)||0)+(((n=e.match(ZM))===null||n===void 0?void 0:n.length)||0)>0}const ZS="number",JS="color",ez="var",tz="var(",Wg="${}",nz=/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 bs(e){const t=e.toString(),n=[],r={color:[],number:[],var:[]},o=[];let i=0;const a=t.replace(nz,l=>(Ue.test(l)?(r.color.push(i),o.push(JS),n.push(Ue.parse(l))):l.startsWith(tz)?(r.var.push(i),o.push(ez),n.push(l)):(r.number.push(i),o.push(ZS),n.push(parseFloat(l))),++i,Wg)).split(Wg);return{values:n,split:a,indexes:r,types:o}}function eb(e){return bs(e).values}function tb(e){const{split:t,types:n}=bs(e),r=t.length;return o=>{let i="";for(let s=0;stypeof e=="number"?0:e;function oz(e){const t=eb(e);return tb(e)(t.map(rz))}const ir={test:JM,parse:eb,createTransformer:tb,getAnimatableNone:oz},iz=new Set(["brightness","contrast","saturate","opacity"]);function sz(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(Vh)||[];if(!r)return e;const o=n.replace(r,"");let i=iz.has(t)?1:0;return r!==n&&(i*=100),t+"("+i+o+")"}const az=/\b([a-z-]*)\(.*?\)/gu,rf={...ir,getAnimatableNone:e=>{const t=e.match(az);return t?t.map(sz).join(" "):e}},lz={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,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,backgroundPositionX:B,backgroundPositionY:B},uz={rotate:Bn,rotateX:Bn,rotateY:Bn,rotateZ:Bn,scale:ba,scaleX:ba,scaleY:ba,scaleZ:ba,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:Ss,originX:Fg,originY:Fg,originZ:B},Ug={...Go,transform:Math.round},Nh={...lz,...uz,zIndex:Ug,size:B,fillOpacity:Ss,strokeOpacity:Ss,numOctaves:Ug},cz={...Nh,color:Ue,backgroundColor:Ue,outlineColor:Ue,fill:Ue,stroke:Ue,borderColor:Ue,borderTopColor:Ue,borderRightColor:Ue,borderBottomColor:Ue,borderLeftColor:Ue,filter:rf,WebkitFilter:rf},Wh=e=>cz[e];function nb(e,t){let n=Wh(e);return n!==rf&&(n=ir),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const dz=new Set(["auto","none","0"]);function fz(e,t,n){let r=0,o;for(;r{n.getValue(l).set(u)}),this.resolveNoneKeyframes()}}function Uh(e){return typeof e=="function"}let Ga;function hz(){Ga=void 0}const cn={now:()=>(Ga===void 0&&cn.set(je.isProcessing||EM.useManualTiming?je.timestamp:performance.now()),Ga),set:e=>{Ga=e,queueMicrotask(hz)}},Hg=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(ir.test(e)||e==="0")&&!e.startsWith("url("));function pz(e){const t=e[0];if(e.length===1)return!0;for(let n=0;ngz?this.resolvedAt:this.createdAt:this.createdAt}get resolved(){return!this._resolved&&!this.hasAttemptedResolve&&GM(),this._resolved}onKeyframesResolved(t,n){this.resolvedAt=cn.now(),this.hasAttemptedResolve=!0;const{name:r,type:o,velocity:i,delay:s,onComplete:a,onUpdate:l,isGenerator:u}=this.options;if(!u&&!mz(t,r,o,i))if(s)this.options.duration=0;else{l==null||l(vu(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)}flatten(){this.options.type="keyframes",this.options.ease="linear"}updateFinishedPromise(){this.currentFinishedPromise=new Promise(t=>{this.resolveFinishedPromise=t})}}const Vo=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r},ib=(e,t,n=10)=>{let r="";const o=Math.max(Math.round(t/n),2);for(let i=0;i{const c=u*s,d=c*e,f=c-n,y=of(u,s),v=Math.exp(-d);return $c-f/y*v},i=u=>{const d=u*s*e,f=d*n+n,y=Math.pow(s,2)*Math.pow(u,2)*e,v=Math.exp(-d),S=of(Math.pow(u,2),s);return(-o(u)+$c>0?-1:1)*((f-y)*v)/S}):(o=u=>{const c=Math.exp(-u*e),d=(u-n)*e+1;return-$c+c*d},i=u=>{const c=Math.exp(-u*e),d=(n-u)*(e*e);return c*d});const a=5/e,l=bz(o,i,a);if(e=kn(e),isNaN(l))return{stiffness:Se.stiffness,damping:Se.damping,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 bz(e,t,n){let r=n;for(let o=1;o=sf?1/0:t}const xz=["duration","bounce"],wz=["stiffness","damping","mass"];function Kg(e,t){return t.some(n=>e[n]!==void 0)}function kz(e){let t={velocity:Se.velocity,stiffness:Se.stiffness,damping:Se.damping,mass:Se.mass,isResolvedFromDuration:!1,...e};if(!Kg(e,wz)&&Kg(e,xz))if(e.visualDuration){const n=e.visualDuration,r=2*Math.PI/(n*1.2),o=r*r,i=2*Rn(.05,1,1-e.bounce)*Math.sqrt(o);t={...t,mass:Se.mass,stiffness:o,damping:i}}else{const n=vz(e);t={...t,...n,mass:Se.mass},t.isResolvedFromDuration=!0}return t}function ub(e=Se.visualDuration,t=Se.bounce){const n=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:t}:e;let{restSpeed:r,restDelta:o}=n;const i=n.keyframes[0],s=n.keyframes[n.keyframes.length-1],a={done:!1,value:i},{stiffness:l,damping:u,mass:c,duration:d,velocity:f,isResolvedFromDuration:y}=kz({...n,velocity:-Cn(n.velocity||0)}),v=f||0,S=u/(2*Math.sqrt(l*c)),_=s-i,p=Cn(Math.sqrt(l/c)),h=Math.abs(_)<5;r||(r=h?Se.restSpeed.granular:Se.restSpeed.default),o||(o=h?Se.restDelta.granular:Se.restDelta.default);let m;if(S<1){const C=of(p,S);m=E=>{const k=Math.exp(-S*p*E);return s-k*((v+S*p*_)/C*Math.sin(C*E)+_*Math.cos(C*E))}}else if(S===1)m=C=>s-Math.exp(-p*C)*(_+(v+p*_)*C);else{const C=p*Math.sqrt(S*S-1);m=E=>{const k=Math.exp(-S*p*E),A=Math.min(C*E,300);return s-k*((v+S*p*_)*Math.sinh(A)+C*_*Math.cosh(A))/C}}const b={calculatedDuration:y&&d||null,next:C=>{const E=m(C);if(y)a.done=C>=d;else{let k=0;S<1&&(k=C===0?kn(v):ab(m,C,E));const A=Math.abs(k)<=r,D=Math.abs(s-E)<=o;a.done=A&&D}return a.value=a.done?s:E,a},toString:()=>{const C=Math.min(lb(b),sf),E=ib(k=>b.next(C*k).value,C,30);return C+"ms "+E}};return b}function Gg({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:o=10,bounceStiffness:i=500,modifyTarget:s,min:a,max:l,restDelta:u=.5,restSpeed:c}){const d=e[0],f={done:!1,value:d},y=A=>a!==void 0&&Al,v=A=>a===void 0?l:l===void 0||Math.abs(a-A)-S*Math.exp(-A/r),m=A=>p+h(A),b=A=>{const D=h(A),M=m(A);f.done=Math.abs(D)<=u,f.value=f.done?p:M};let C,E;const k=A=>{y(f.value)&&(C=A,E=ub({keyframes:[f.value,v(f.value)],velocity:ab(m,A,f.value),damping:o,stiffness:i,restDelta:u,restSpeed:c}))};return k(0),{calculatedDuration:null,next:A=>{let D=!1;return!E&&C===void 0&&(D=!0,b(A),k(A)),C!==void 0&&A>=C?E.next(A-C):(!D&&b(A),f)}}}const Cz=Rs(.42,0,1,1),Tz=Rs(0,0,.58,1),cb=Rs(.42,0,.58,1),_z=e=>Array.isArray(e)&&typeof e[0]!="number",Hh=e=>Array.isArray(e)&&typeof e[0]=="number",Yg={linear:mt,easeIn:Cz,easeInOut:cb,easeOut:Tz,circIn:jh,circInOut:OS,circOut:VS,backIn:Lh,backInOut:FS,backOut:jS,anticipate:BS},Xg=e=>{if(Hh(e)){Jd(e.length===4);const[t,n,r,o]=e;return Rs(t,n,r,o)}else if(typeof e=="string")return Jd(Yg[e]!==void 0),Yg[e];return e},Pz=(e,t)=>n=>t(e(n)),zs=(...e)=>e.reduce(Pz),ge=(e,t,n)=>e+(t-e)*n;function Ac(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 Ez({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=Ac(l,a,e+1/3),i=Ac(l,a,e),s=Ac(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 Rc=(e,t,n)=>{const r=e*e,o=n*(t*t-r)+r;return o<0?0:Math.sqrt(o)},$z=[nf,Tr,fo],Az=e=>$z.find(t=>t.test(e));function qg(e){const t=Az(e);if(!t)return!1;let n=t.parse(e);return t===fo&&(n=Ez(n)),n}const Qg=(e,t)=>{const n=qg(e),r=qg(t);if(!n||!r)return El(e,t);const o={...n};return i=>(o.red=Rc(n.red,r.red,i),o.green=Rc(n.green,r.green,i),o.blue=Rc(n.blue,r.blue,i),o.alpha=ge(n.alpha,r.alpha,i),Tr.transform(o))},af=new Set(["none","hidden"]);function Rz(e,t){return af.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function Mz(e,t){return n=>ge(e,t,n)}function Kh(e){return typeof e=="number"?Mz:typeof e=="string"?Fh(e)?El:Ue.test(e)?Qg:Iz:Array.isArray(e)?db:typeof e=="object"?Ue.test(e)?Qg:zz:El}function db(e,t){const n=[...e],r=n.length,o=e.map((i,s)=>Kh(i)(i,t[s]));return i=>{for(let s=0;s{for(const i in r)n[i]=r[i](o);return n}}function Dz(e,t){var n;const r=[],o={color:0,var:0,number:0};for(let i=0;i{const n=ir.createTransformer(t),r=bs(e),o=bs(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?af.has(e)&&!o.values.length||af.has(t)&&!r.values.length?Rz(e,t):zs(db(Dz(r,o),o.values),n):El(e,t)};function fb(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?ge(e,t,n):Kh(e)(e,t)}function Lz(e,t,n){const r=[],o=n||fb,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=Lz(t,r,o),a=s.length,l=u=>{let c=0;if(a>1)for(;cl(Rn(e[0],e[i-1],u)):l}function Fz(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const o=Vo(0,t,r);e.push(ge(n,1,o))}}function Bz(e){const t=[0];return Fz(t,e.length-1),t}function Vz(e,t){return e.map(n=>n*t)}function Oz(e,t){return e.map(()=>t||cb).splice(0,e.length-1)}function $l({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const o=_z(r)?r.map(Xg):Xg(r),i={done:!1,value:t[0]},s=Vz(n&&n.length===t.length?n:Bz(t),e),a=jz(s,t,{ease:Array.isArray(o)?o:Oz(t,o)});return{calculatedDuration:e,next:l=>(i.value=a(l),i.done=l>=e,i)}}const Nz=e=>{const t=({timestamp:n})=>e(n);return{start:()=>le.update(t,!0),stop:()=>or(t),now:()=>je.isProcessing?je.timestamp:cn.now()}},Wz={decay:Gg,inertia:Gg,tween:$l,keyframes:$l,spring:ub},Uz=e=>e/100;class Gh extends ob{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)||Bh,a=(l,u)=>this.onKeyframesResolved(l,u);this.resolver=new s(i,a,n,r,o),this.resolver.scheduleResolve()}flatten(){super.flatten(),this._resolved&&Object.assign(this._resolved,this.initPlayback(this._resolved.keyframes))}initPlayback(t){const{type:n="keyframes",repeat:r=0,repeatDelay:o=0,repeatType:i,velocity:s=0}=this.options,a=Uh(n)?n:Wz[n]||$l;let l,u;a!==$l&&typeof t[0]!="number"&&(l=zs(Uz,fb(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=lb(c));const{calculatedDuration:d}=c,f=d+o,y=f*(r+1)-o;return{generator:c,mirroredGenerator:u,mapPercentToKeyframes:l,calculatedDuration:d,resolvedDuration:f,totalDuration:y}}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:A}=this.options;return{done:!0,value:A[A.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:f,repeat:y,repeatType:v,repeatDelay:S,onUpdate:_}=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 p=this.currentTime-f*(this.speed>=0?1:-1),h=this.speed>=0?p<0:p>c;this.currentTime=Math.max(p,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=c);let m=this.currentTime,b=i;if(y){const A=Math.min(this.currentTime,c)/d;let D=Math.floor(A),M=A%1;!M&&A>=1&&(M=1),M===1&&D--,D=Math.min(D,y+1),!!(D%2)&&(v==="reverse"?(M=1-M,S&&(M-=S/d)):v==="mirror"&&(b=s)),m=Rn(0,1,M)*d}const C=h?{done:!1,value:l[0]}:b.next(m);a&&(C.value=a(C.value));let{done:E}=C;!h&&u!==null&&(E=this.speed>=0?this.currentTime>=c:this.currentTime<=0);const k=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&E);return k&&o!==void 0&&(C.value=vu(l,this.options,o)),_&&_(C.value),k&&this.finish(),C}get duration(){const{resolved:t}=this;return t?Cn(t.calculatedDuration):0}get time(){return Cn(this.currentTime)}set time(t){t=kn(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=Cn(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved){this.pendingPlayState="running";return}if(this.isStopped)return;const{driver:t=Nz,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 Hz=new Set(["opacity","clipPath","filter","transform"]);function Yh(e){let t;return()=>(t===void 0&&(t=e()),t)}const Kz={linearEasing:void 0};function Gz(e,t){const n=Yh(e);return()=>{var r;return(r=Kz[t])!==null&&r!==void 0?r:n()}}const Al=Gz(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing");function hb(e){return!!(typeof e=="function"&&Al()||!e||typeof e=="string"&&(e in lf||Al())||Hh(e)||Array.isArray(e)&&e.every(hb))}const Ci=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,lf={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Ci([0,.65,.55,1]),circOut:Ci([.55,0,1,.45]),backIn:Ci([.31,.01,.66,-.59]),backOut:Ci([.33,1.53,.69,.99])};function pb(e,t){if(e)return typeof e=="function"&&Al()?ib(e,t):Hh(e)?Ci(e):Array.isArray(e)?e.map(n=>pb(n,t)||lf.easeOut):lf[e]}function Yz(e,t,n,{delay:r=0,duration:o=300,repeat:i=0,repeatType:s="loop",ease:a="easeInOut",times:l}={}){const u={[t]:n};l&&(u.offset=l);const c=pb(a,o);return Array.isArray(c)&&(u.easing=c),e.animate(u,{delay:r,duration:o,easing:Array.isArray(c)?"linear":c,fill:"both",iterations:i+1,direction:s==="reverse"?"alternate":"normal"})}function Zg(e,t){e.timeline=t,e.onfinish=null}const Xz=Yh(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),Rl=10,qz=2e4;function Qz(e){return Uh(e.type)||e.type==="spring"||!hb(e.ease)}function Zz(e,t){const n=new Gh({...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(typeof s=="string"&&Al()&&Jz(s)&&(s=mb[s]),Qz(this.options)){const{onComplete:f,onUpdate:y,motionValue:v,element:S,..._}=this.options,p=Zz(t,_);t=p.keyframes,t.length===1&&(t[1]=t[0]),o=p.duration,i=p.times,s=p.ease,a="keyframes"}const d=Yz(l.owner.current,u,t,{...this.options,duration:o,times:i,ease:s});return d.startTime=c??this.calcStartTime(),this.pendingTimeline?(Zg(d,this.pendingTimeline),this.pendingTimeline=void 0):d.onfinish=()=>{const{onComplete:f}=this.options;l.set(vu(t,this.options,n)),f&&f(),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 Cn(n)}get time(){const{resolved:t}=this;if(!t)return 0;const{animation:n}=t;return Cn(n.currentTime||0)}set time(t){const{resolved:n}=this;if(!n)return;const{animation:r}=n;r.currentTime=kn(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 mt;const{animation:r}=n;Zg(r,t)}return mt}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:f,...y}=this.options,v=new Gh({...y,keyframes:r,duration:o,type:i,ease:s,times:a,isGenerator:!0}),S=kn(this.time);u.setWithVelocity(v.sample(S-Rl).value,v.sample(S).value,Rl)}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 Xz()&&r&&Hz.has(r)&&n&&n.owner&&n.owner.current instanceof HTMLElement&&!n.owner.getProps().onUpdate&&!o&&i!=="mirror"&&s!==0&&a!=="inertia"}}const e3=Yh(()=>window.ScrollTimeline!==void 0);class t3{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;re3()&&o.attachTimeline?o.attachTimeline(t):n(o));return()=>{r.forEach((o,i)=>{o&&o(),this.animations[i].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]())}flatten(){this.runAll("flatten")}play(){this.runAll("play")}pause(){this.runAll("pause")}cancel(){this.runAll("cancel")}complete(){this.runAll("complete")}}function n3({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}const Xh=(e,t,n,r={},o,i)=>s=>{const a=Ih(r,e)||{},l=a.delay||r.delay||0;let{elapsed:u=0}=r;u=u-kn(l);let c={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...a,delay:-u,onUpdate:f=>{t.set(f),a.onUpdate&&a.onUpdate(f)},onComplete:()=>{s(),a.onComplete&&a.onComplete()},name:e,motionValue:t,element:i?void 0:o};n3(a)||(c={...c,...PM(e,c)}),c.duration&&(c.duration=kn(c.duration)),c.repeatDelay&&(c.repeatDelay=kn(c.repeatDelay)),c.from!==void 0&&(c.keyframes[0]=c.from);let d=!1;if((c.type===!1||c.duration===0&&!c.repeatDelay)&&(c.duration=0,c.delay===0&&(d=!0)),d&&!i&&t.get()!==void 0){const f=vu(c.keyframes,a);if(f!==void 0)return le.update(()=>{c.onUpdate(f),c.onComplete()}),new t3([])}return!i&&Jg.supports(c)?new Jg(c):new Gh(c)},r3=e=>!!(e&&typeof e=="object"&&e.mix&&e.toValue),o3=e=>Zd(e)?e[e.length-1]||0:e;function qh(e,t){e.indexOf(t)===-1&&e.push(t)}function Qh(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}class Zh{constructor(){this.subscriptions=[]}add(t){return qh(this.subscriptions,t),()=>Qh(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 s3{constructor(t,n={}){this.version="11.15.0",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(r,o=!0)=>{const i=cn.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=cn.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=i3(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 Zh);const r=this.events[t].add(n);return t==="change"?()=>{r(),le.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=cn.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>e0)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,e0);return sb(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 xs(e,t){return new s3(e,t)}function a3(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,xs(n))}function l3(e,t){const n=yu(e,t);let{transitionEnd:r={},transition:o={},...i}=n||{};i={...i,...r};for(const s in i){const a=o3(i[s]);a3(e,s,a)}}const Jh=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),u3="framerAppearId",gb="data-"+Jh(u3);function yb(e){return e.props[gb]}const Ke=e=>!!(e&&e.getVelocity);function c3(e){return!!(Ke(e)&&e.add)}function uf(e,t){const n=e.getValue("willChange");if(c3(n))return n.add(t)}function d3({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function vb(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 f=e.getValue(d,(i=e.latestValues[d])!==null&&i!==void 0?i:null),y=l[d];if(y===void 0||c&&d3(c,d))continue;const v={delay:n,...Ih(s||{},d)};let S=!1;if(window.MotionHandoffAnimation){const p=yb(e);if(p){const h=window.MotionHandoffAnimation(p,d,le);h!==null&&(v.startTime=h,S=!0)}}uf(e,d),f.start(Xh(d,f,y,e.shouldReduceMotion&&Vr.has(d)?{type:!1}:v,e,S));const _=f.animation;_&&u.push(_)}return a&&Promise.all(u).then(()=>{le.update(()=>{a&&l3(e,a)})}),u}function cf(e,t,n={}){var r;const o=yu(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(vb(e,o,n)):()=>Promise.resolve(),a=e.variantChildren&&e.variantChildren.size?(u=0)=>{const{delayChildren:c=0,staggerChildren:d,staggerDirection:f}=i;return f3(e,t,c+u,d,f,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 f3(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(h3).forEach((u,c)=>{u.notify("AnimationStart",t),s.push(cf(u,t,{...i,delay:n+l(c)}).then(()=>u.notify("AnimationComplete",t)))}),Promise.all(s)}function h3(e,t){return e.sortNodePosition(t)}function p3(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const o=t.map(i=>cf(e,i,n));r=Promise.all(o)}else if(typeof t=="string")r=cf(e,t,n);else{const o=typeof t=="function"?yu(e,t,n.custom):t;r=Promise.all(vb(e,o,n))}return r.then(()=>{e.notify("AnimationComplete",t)})}const m3=Dh.length;function Sb(e){if(!e)return;if(!e.isControllingVariants){const n=e.parent?Sb(e.parent)||{}:{};return e.props.initial!==void 0&&(n.initial=e.props.initial),n}const t={};for(let n=0;nPromise.all(t.map(({animation:n,options:r})=>p3(e,n,r)))}function S3(e){let t=v3(e),n=t0(),r=!0;const o=l=>(u,c)=>{var d;const f=yu(e,c,l==="exit"?(d=e.presenceContext)===null||d===void 0?void 0:d.custom:void 0);if(f){const{transition:y,transitionEnd:v,...S}=f;u={...u,...S,...v}}return u};function i(l){t=l(e)}function s(l){const{props:u}=e,c=Sb(e.parent)||{},d=[],f=new Set;let y={},v=1/0;for(let _=0;_v&&b,D=!1;const M=Array.isArray(m)?m:[m];let N=M.reduce(o(p),{});C===!1&&(N={});const{prevResolvedValues:he={}}=h,xt={...he,...N},Ht=xe=>{A=!0,f.has(xe)&&(D=!0,f.delete(xe)),h.needsAnimating[xe]=!0;const z=e.getValue(xe);z&&(z.liveStyle=!1)};for(const xe in xt){const z=N[xe],V=he[xe];if(y.hasOwnProperty(xe))continue;let O=!1;Zd(z)&&Zd(V)?O=!MS(z,V):O=z!==V,O?z!=null?Ht(xe):f.add(xe):z!==void 0&&f.has(xe)?Ht(xe):h.protectedKeys[xe]=!0}h.prevProp=m,h.prevResolvedValues=N,h.isActive&&(y={...y,...N}),r&&e.blockInitialAnimation&&(A=!1),A&&(!(E&&k)||D)&&d.push(...M.map(xe=>({animation:xe,options:{type:p}})))}if(f.size){const _={};f.forEach(p=>{const h=e.getBaseTarget(p),m=e.getValue(p);m&&(m.liveStyle=!0),_[p]=h??null}),d.push({animation:_})}let S=!!d.length;return r&&(u.initial===!1||u.initial===u.animate)&&!e.manuallyAnimateOnMount&&(S=!1),r=!1,S?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(f=>{var y;return(y=f.animationState)===null||y===void 0?void 0:y.setActive(l,u)}),n[l].isActive=u;const d=s(l);for(const f in n)n[f].protectedKeys={};return d}return{animateChanges:s,setActive:a,setAnimateFunction:i,getState:()=>n,reset:()=>{n=t0(),r=!0}}}function b3(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!MS(t,e):!1}function mr(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function t0(){return{animate:mr(!0),whileInView:mr(),whileHover:mr(),whileTap:mr(),whileDrag:mr(),whileFocus:mr(),exit:mr()}}class ur{constructor(t){this.isMounted=!1,this.node=t}update(){}}class x3 extends ur{constructor(t){super(t),t.animationState||(t.animationState=S3(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();gu(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 w3=0;class k3 extends ur{constructor(){super(...arguments),this.id=w3++}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 C3={animation:{Feature:x3},exit:{Feature:k3}},jt={x:!1,y:!1};function bb(){return jt.x||jt.y}function T3(e,t,n){var r;if(e instanceof Element)return[e];if(typeof e=="string"){let o=document;const i=(r=void 0)!==null&&r!==void 0?r:o.querySelectorAll(e);return i?Array.from(i):[]}return Array.from(e)}function xb(e,t){const n=T3(e),r=new AbortController,o={passive:!0,...t,signal:r.signal};return[n,o,()=>r.abort()]}function n0(e){return t=>{t.pointerType==="touch"||bb()||e(t)}}function _3(e,t,n={}){const[r,o,i]=xb(e,n),s=n0(a=>{const{target:l}=a,u=t(a);if(!u||!l)return;const c=n0(d=>{u(d),l.removeEventListener("pointerleave",c)});l.addEventListener("pointerleave",c,o)});return r.forEach(a=>{a.addEventListener("pointerenter",s,o)}),i}const ep=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1,Ti=new WeakSet;function r0(e){return t=>{t.key==="Enter"&&e(t)}}function Mc(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}const P3=(e,t)=>{const n=e.currentTarget;if(!n)return;const r=r0(()=>{if(Ti.has(n))return;Mc(n,"down");const o=r0(()=>{Mc(n,"up")}),i=()=>Mc(n,"cancel");n.addEventListener("keyup",o,t),n.addEventListener("blur",i,t)});n.addEventListener("keydown",r,t),n.addEventListener("blur",()=>n.removeEventListener("keydown",r),t)},E3=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function $3(e){return E3.has(e.tagName)||e.tabIndex!==-1}const wb=(e,t)=>t?e===t?!0:wb(e,t.parentElement):!1;function o0(e){return ep(e)&&!bb()}function A3(e,t,n={}){const[r,o,i]=xb(e,n),s=a=>{const l=a.currentTarget;if(!o0(a)||Ti.has(l))return;Ti.add(l);const u=t(a),c=(y,v)=>{window.removeEventListener("pointerup",d),window.removeEventListener("pointercancel",f),!(!o0(y)||!Ti.has(l))&&(Ti.delete(l),u&&u(y,{success:v}))},d=y=>{c(y,n.useGlobalTarget||wb(l,y.target))},f=y=>{c(y,!1)};window.addEventListener("pointerup",d,o),window.addEventListener("pointercancel",f,o)};return r.forEach(a=>{$3(a)||(a.tabIndex=0),(n.useGlobalTarget?window:a).addEventListener("pointerdown",s,o),a.addEventListener("focus",u=>P3(u,o),o)}),i}function R3(e){return e==="x"||e==="y"?jt[e]?null:(jt[e]=!0,()=>{jt[e]=!1}):jt.x||jt.y?null:(jt.x=jt.y=!0,()=>{jt.x=jt.y=!1})}function Ds(e){return{point:{x:e.pageX,y:e.pageY}}}const M3=e=>t=>ep(t)&&e(t,Ds(t));function ws(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}function Hi(e,t,n,r){return ws(e,t,M3(n),r)}const i0=(e,t)=>Math.abs(e-t);function z3(e,t){const n=i0(e.x,t.x),r=i0(e.y,t.y);return Math.sqrt(n**2+r**2)}class kb{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=Dc(this.lastMoveEventInfo,this.history),f=this.startEvent!==null,y=z3(d.offset,{x:0,y:0})>=3;if(!f&&!y)return;const{point:v}=d,{timestamp:S}=je;this.history.push({...v,timestamp:S});const{onStart:_,onMove:p}=this.handlers;f||(_&&_(this.lastMoveEvent,d),this.startEvent=this.lastMoveEvent),p&&p(this.lastMoveEvent,d)},this.handlePointerMove=(d,f)=>{this.lastMoveEvent=d,this.lastMoveEventInfo=zc(f,this.transformPagePoint),le.update(this.updatePoint,!0)},this.handlePointerUp=(d,f)=>{this.end();const{onEnd:y,onSessionEnd:v,resumeAnimation:S}=this.handlers;if(this.dragSnapToOrigin&&S&&S(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const _=Dc(d.type==="pointercancel"?this.lastMoveEventInfo:zc(f,this.transformPagePoint),this.history);this.startEvent&&y&&y(d,_),v&&v(d,_)},!ep(t))return;this.dragSnapToOrigin=i,this.handlers=n,this.transformPagePoint=r,this.contextWindow=o||window;const s=Ds(t),a=zc(s,this.transformPagePoint),{point:l}=a,{timestamp:u}=je;this.history=[{...l,timestamp:u}];const{onSessionStart:c}=n;c&&c(t,Dc(a,this.history)),this.removeListeners=zs(Hi(this.contextWindow,"pointermove",this.handlePointerMove),Hi(this.contextWindow,"pointerup",this.handlePointerUp),Hi(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),or(this.updatePoint)}}function zc(e,t){return t?{point:t(e.point)}:e}function s0(e,t){return{x:e.x-t.x,y:e.y-t.y}}function Dc({point:e},t){return{point:e,delta:s0(e,Cb(t)),offset:s0(e,D3(t)),velocity:I3(t,.1)}}function D3(e){return e[0]}function Cb(e){return e[e.length-1]}function I3(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const o=Cb(e);for(;n>=0&&(r=e[n],!(o.timestamp-r.timestamp>kn(t)));)n--;if(!r)return{x:0,y:0};const i=Cn(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 ho(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}const Tb=1e-4,L3=1-Tb,j3=1+Tb,_b=.01,F3=0-_b,B3=0+_b;function yt(e){return e.max-e.min}function V3(e,t,n){return Math.abs(e-t)<=n}function a0(e,t,n,r=.5){e.origin=r,e.originPoint=ge(t.min,t.max,e.origin),e.scale=yt(n)/yt(t),e.translate=ge(n.min,n.max,e.origin)-e.originPoint,(e.scale>=L3&&e.scale<=j3||isNaN(e.scale))&&(e.scale=1),(e.translate>=F3&&e.translate<=B3||isNaN(e.translate))&&(e.translate=0)}function Ki(e,t,n,r){a0(e.x,t.x,n.x,r?r.originX:void 0),a0(e.y,t.y,n.y,r?r.originY:void 0)}function l0(e,t,n){e.min=n.min+t.min,e.max=e.min+yt(t)}function O3(e,t,n){l0(e.x,t.x,n.x),l0(e.y,t.y,n.y)}function u0(e,t,n){e.min=t.min-n.min,e.max=e.min+yt(t)}function Gi(e,t,n){u0(e.x,t.x,n.x),u0(e.y,t.y,n.y)}function N3(e,{min:t,max:n},r){return t!==void 0&&en&&(e=r?ge(n,e,r.max):Math.min(e,n)),e}function c0(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 W3(e,{top:t,left:n,bottom:r,right:o}){return{x:c0(e.x,n,o),y:c0(e.y,t,r)}}function d0(e,t){let n=t.min-e.min,r=t.max-e.max;return t.max-t.minr?n=Vo(t.min,t.max-r,e.min):r>o&&(n=Vo(e.min,e.max-o,t.min)),Rn(0,1,n)}function K3(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 df=.35;function G3(e=df){return e===!1?e=0:e===!0&&(e=df),{x:f0(e,"left","right"),y:f0(e,"top","bottom")}}function f0(e,t,n){return{min:h0(e,t),max:h0(e,n)}}function h0(e,t){return typeof e=="number"?e:e[t]||0}const p0=()=>({translate:0,scale:1,origin:0,originPoint:0}),po=()=>({x:p0(),y:p0()}),m0=()=>({min:0,max:0}),we=()=>({x:m0(),y:m0()});function Tt(e){return[e("x"),e("y")]}function Pb({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function Y3({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function X3(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 Ic(e){return e===void 0||e===1}function ff({scale:e,scaleX:t,scaleY:n}){return!Ic(e)||!Ic(t)||!Ic(n)}function vr(e){return ff(e)||Eb(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function Eb(e){return g0(e.x)||g0(e.y)}function g0(e){return e&&e!=="0%"}function Ml(e,t,n){const r=e-n,o=t*r;return n+o}function y0(e,t,n,r,o){return o!==void 0&&(e=Ml(e,o,r)),Ml(e,n,r)+t}function hf(e,t=0,n=1,r,o){e.min=y0(e.min,t,n,r,o),e.max=y0(e.max,t,n,r,o)}function $b(e,{x:t,y:n}){hf(e.x,t.translate,t.scale,t.originPoint),hf(e.y,n.translate,n.scale,n.originPoint)}const v0=.999999999999,S0=1.0000000000001;function q3(e,t,n,r=!1){const o=n.length;if(!o)return;t.x=t.y=1;let i,s;for(let a=0;av0&&(t.x=1),t.yv0&&(t.y=1)}function mo(e,t){e.min=e.min+t,e.max=e.max+t}function b0(e,t,n,r,o=.5){const i=ge(e.min,e.max,o);hf(e,t,n,i,r)}function go(e,t){b0(e.x,t.x,t.scaleX,t.scale,t.originX),b0(e.y,t.y,t.scaleY,t.scale,t.originY)}function Ab(e,t){return Pb(X3(e.getBoundingClientRect(),t))}function Q3(e,t,n){const r=Ab(e,n),{scroll:o}=t;return o&&(mo(r.x,o.offset.x),mo(r.y,o.offset.y)),r}const Rb=({current:e})=>e?e.ownerDocument.defaultView:null,Z3=new WeakMap;class J3{constructor(t){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=we(),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(Ds(c).point)},i=(c,d)=>{const{drag:f,dragPropagation:y,onDragStart:v}=this.getProps();if(f&&!y&&(this.openDragLock&&this.openDragLock(),this.openDragLock=R3(f),!this.openDragLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),Tt(_=>{let p=this.getAxisMotionValue(_).get()||0;if(un.test(p)){const{projection:h}=this.visualElement;if(h&&h.layout){const m=h.layout.layoutBox[_];m&&(p=yt(m)*(parseFloat(p)/100))}}this.originPoint[_]=p}),v&&le.postRender(()=>v(c,d)),uf(this.visualElement,"transform");const{animationState:S}=this.visualElement;S&&S.setActive("whileDrag",!0)},s=(c,d)=>{const{dragPropagation:f,dragDirectionLock:y,onDirectionLock:v,onDrag:S}=this.getProps();if(!f&&!this.openDragLock)return;const{offset:_}=d;if(y&&this.currentDirection===null){this.currentDirection=e4(_),this.currentDirection!==null&&v&&v(this.currentDirection);return}this.updateAxis("x",d.point,_),this.updateAxis("y",d.point,_),this.visualElement.render(),S&&S(c,d)},a=(c,d)=>this.stop(c,d),l=()=>Tt(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 kb(t,{onSessionStart:o,onStart:i,onMove:s,onSessionEnd:a,resumeAnimation:l},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:u,contextWindow:Rb(this.visualElement)})}stop(t,n){const r=this.isDragging;if(this.cancel(),!r)return;const{velocity:o}=n;this.startAnimation(o);const{onDragEnd:i}=this.getProps();i&&le.postRender(()=>i(t,n))}cancel(){this.isDragging=!1;const{projection:t,animationState:n}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:r}=this.getProps();!r&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),n&&n.setActive("whileDrag",!1)}updateAxis(t,n,r){const{drag:o}=this.getProps();if(!r||!xa(t,o,this.currentDirection))return;const i=this.getAxisMotionValue(t);let s=this.originPoint[t]+r[t];this.constraints&&this.constraints[t]&&(s=N3(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&&ho(n)?this.constraints||(this.constraints=this.resolveRefConstraints()):n&&o?this.constraints=W3(o.layoutBox,n):this.constraints=!1,this.elastic=G3(r),i!==this.constraints&&o&&this.constraints&&!this.hasMutatedConstraints&&Tt(s=>{this.constraints!==!1&&this.getAxisMotionValue(s)&&(this.constraints[s]=K3(o.layoutBox[s],this.constraints[s]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!ho(t))return!1;const r=t.current,{projection:o}=this.visualElement;if(!o||!o.layout)return!1;const i=Q3(r,o.root,this.visualElement.getTransformPagePoint());let s=U3(o.layout.layoutBox,i);if(n){const a=n(Y3(s));this.hasMutatedConstraints=!!a,a&&(s=Pb(a))}return s}startAnimation(t){const{drag:n,dragMomentum:r,dragElastic:o,dragTransition:i,dragSnapToOrigin:s,onDragTransitionEnd:a}=this.getProps(),l=this.constraints||{},u=Tt(c=>{if(!xa(c,n,this.currentDirection))return;let d=l&&l[c]||{};s&&(d={min:0,max:0});const f=o?200:1e6,y=o?40:1e7,v={type:"inertia",velocity:r?t[c]:0,bounceStiffness:f,bounceDamping:y,timeConstant:750,restDelta:1,restSpeed:10,...i,...d};return this.startAxisValueAnimation(c,v)});return Promise.all(u).then(a)}startAxisValueAnimation(t,n){const r=this.getAxisMotionValue(t);return uf(this.visualElement,t),r.start(Xh(t,r,0,n,this.visualElement,!1))}stopAnimation(){Tt(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){Tt(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){Tt(n=>{const{drag:r}=this.getProps();if(!xa(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]-ge(s,a,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!ho(n)||!r||!this.constraints)return;this.stopAnimation();const o={x:0,y:0};Tt(s=>{const a=this.getAxisMotionValue(s);if(a&&this.constraints!==!1){const l=a.get();o[s]=H3({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(),Tt(s=>{if(!xa(s,t,null))return;const a=this.getAxisMotionValue(s),{min:l,max:u}=this.constraints[s];a.set(ge(l,u,o[s]))})}addListeners(){if(!this.visualElement.current)return;Z3.set(this.visualElement,this);const t=this.visualElement.current,n=Hi(t,"pointerdown",l=>{const{drag:u,dragListener:c=!0}=this.getProps();u&&c&&this.start(l)}),r=()=>{const{dragConstraints:l}=this.getProps();ho(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()),le.read(r);const s=ws(window,"resize",()=>this.scalePositionWithinConstraints()),a=o.addEventListener("didUpdate",({delta:l,hasLayoutChanged:u})=>{this.isDragging&&u&&(Tt(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=df,dragMomentum:a=!0}=t;return{...t,drag:n,dragDirectionLock:r,dragPropagation:o,dragConstraints:i,dragElastic:s,dragMomentum:a}}}function xa(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function e4(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class t4 extends ur{constructor(t){super(t),this.removeGroupControls=mt,this.removeListeners=mt,this.controls=new J3(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||mt}unmount(){this.removeGroupControls(),this.removeListeners()}}const x0=e=>(t,n)=>{e&&le.postRender(()=>e(t,n))};class n4 extends ur{constructor(){super(...arguments),this.removePointerDownListener=mt}onPointerDown(t){this.session=new kb(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:Rb(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:r,onPanEnd:o}=this.node.getProps();return{onSessionStart:x0(t),onStart:x0(n),onMove:r,onEnd:(i,s)=>{delete this.session,o&&le.postRender(()=>o(i,s))}}}mount(){this.removePointerDownListener=Hi(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 Is=T.createContext(null);function r4(){const e=T.useContext(Is);if(e===null)return[!0,null];const{isPresent:t,onExitComplete:n,register:r}=e,o=T.useId();T.useEffect(()=>r(o),[]);const i=T.useCallback(()=>n&&n(o),[o,n]);return!t&&n?[!1,i]:[!0]}function o4(){return i4(T.useContext(Is))}function i4(e){return e===null?!0:e.isPresent}const tp=T.createContext({}),Mb=T.createContext({}),Ya={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function w0(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const pi={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(B.test(e))e=parseFloat(e);else return e;const n=w0(e,t.target.x),r=w0(e,t.target.y);return`${n}% ${r}%`}},s4={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,o=ir.parse(e);if(o.length>5)return r;const i=ir.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=ge(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 a4(e){Object.assign(zl,e)}const{schedule:np,cancel:SL}=zS(queueMicrotask,!1);class l4 extends T.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r,layoutId:o}=this.props,{projection:i}=t;a4(u4),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()})),Ya.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()||le.postRender(()=>{const a=s.getStack();(!a||!a.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),np.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 zb(e){const[t,n]=r4(),r=T.useContext(tp);return P.jsx(l4,{...e,layoutGroup:r,switchLayoutGroup:T.useContext(Mb),isPresent:t,safeToRemove:n})}const u4={borderRadius:{...pi,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:pi,borderTopRightRadius:pi,borderBottomLeftRadius:pi,borderBottomRightRadius:pi,boxShadow:s4},Db=["TopLeft","TopRight","BottomLeft","BottomRight"],c4=Db.length,k0=e=>typeof e=="string"?parseFloat(e):e,C0=e=>typeof e=="number"||B.test(e);function d4(e,t,n,r,o,i){o?(e.opacity=ge(0,n.opacity!==void 0?n.opacity:1,f4(r)),e.opacityExit=ge(t.opacity!==void 0?t.opacity:1,0,h4(r))):i&&(e.opacity=ge(t.opacity!==void 0?t.opacity:1,n.opacity!==void 0?n.opacity:1,r));for(let s=0;srt?1:n(Vo(e,t,r))}function _0(e,t){e.min=t.min,e.max=t.max}function kt(e,t){_0(e.x,t.x),_0(e.y,t.y)}function P0(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function E0(e,t,n,r,o){return e-=t,e=Ml(e,1/n,r),o!==void 0&&(e=Ml(e,1/o,r)),e}function p4(e,t=0,n=1,r=.5,o,i=e,s=e){if(un.test(t)&&(t=parseFloat(t),t=ge(s.min,s.max,t/100)-s.min),typeof t!="number")return;let a=ge(i.min,i.max,r);e===i&&(a-=t),e.min=E0(e.min,t,n,a,o),e.max=E0(e.max,t,n,a,o)}function $0(e,t,[n,r,o],i,s){p4(e,t[n],t[r],t[o],t.scale,i,s)}const m4=["x","scaleX","originX"],g4=["y","scaleY","originY"];function A0(e,t,n,r){$0(e.x,t,m4,n?n.x:void 0,r?r.x:void 0),$0(e.y,t,g4,n?n.y:void 0,r?r.y:void 0)}function R0(e){return e.translate===0&&e.scale===1}function Lb(e){return R0(e.x)&&R0(e.y)}function M0(e,t){return e.min===t.min&&e.max===t.max}function y4(e,t){return M0(e.x,t.x)&&M0(e.y,t.y)}function z0(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function jb(e,t){return z0(e.x,t.x)&&z0(e.y,t.y)}function D0(e){return yt(e.x)/yt(e.y)}function I0(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}class v4{constructor(){this.members=[]}add(t){qh(this.members,t),t.scheduleRender()}remove(t){if(Qh(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 S4(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:f,skewX:y,skewY:v}=n;u&&(r=`perspective(${u}px) ${r}`),c&&(r+=`rotate(${c}deg) `),d&&(r+=`rotateX(${d}deg) `),f&&(r+=`rotateY(${f}deg) `),y&&(r+=`skewX(${y}deg) `),v&&(r+=`skewY(${v}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 b4=(e,t)=>e.depth-t.depth;class x4{constructor(){this.children=[],this.isDirty=!1}add(t){qh(this.children,t),this.isDirty=!0}remove(t){Qh(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(b4),this.isDirty=!1,this.children.forEach(t)}}function Xa(e){const t=Ke(e)?e.get():e;return r3(t)?t.toValue():t}function w4(e,t){const n=cn.now(),r=({timestamp:o})=>{const i=o-n;i>=t&&(or(r),e(i-t))};return le.read(r,!0),()=>or(r)}function k4(e){return e instanceof SVGElement&&e.tagName!=="svg"}function C4(e,t,n){const r=Ke(e)?e:xs(e);return r.start(Xh("",r,t,n)),r.animation}const Sr={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0},_i=typeof window<"u"&&window.MotionDebug!==void 0,Lc=["","X","Y","Z"],T4={visibility:"hidden"},L0=1e3;let _4=0;function jc(e,t,n,r){const{latestValues:o}=t;o[e]&&(n[e]=o[e],t.setStaticValue(e,0),r&&(r[e]=0))}function Fb(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const n=yb(t);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:o,layoutId:i}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",le,!(o||i))}const{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&Fb(r)}function Bb({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:o}){return class{constructor(s={},a=t==null?void 0:t()){this.id=_4++,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,_i&&(Sr.totalNodes=Sr.resolvedTargetDeltas=Sr.recalculatedProjection=0),this.nodes.forEach($4),this.nodes.forEach(D4),this.nodes.forEach(I4),this.nodes.forEach(A4),_i&&window.MotionDebug.record(Sr)},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=w4(f,250),Ya.hasAnimatedSinceResize&&(Ya.hasAnimatedSinceResize=!1,this.nodes.forEach(F0))})}l&&this.root.registerSharedNode(l,this),this.options.animate!==!1&&c&&(l||u)&&this.addEventListener("didUpdate",({delta:d,hasLayoutChanged:f,hasRelativeTargetChanged:y,layout:v})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const S=this.options.transition||c.getDefaultTransition()||V4,{onLayoutAnimationStart:_,onLayoutAnimationComplete:p}=c.getProps(),h=!this.targetLayout||!jb(this.targetLayout,v)||y,m=!f&&y;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||m||f&&(h||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(d,m);const b={...Ih(S,"layout"),onPlay:_,onComplete:p};(c.shouldReduceMotion||this.options.layoutRoot)&&(b.delay=0,b.type=!1),this.startAnimation(b)}else f||F0(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=v})}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,or(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(L4),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&&Fb(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=b/1e3;B0(d.x,s.x,C),B0(d.y,s.y,C),this.setTargetDelta(d),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Gi(f,this.layout.layoutBox,this.relativeParent.layout.layoutBox),F4(this.relativeTarget,this.relativeTargetOrigin,f,C),m&&y4(this.relativeTarget,m)&&(this.isProjectionDirty=!1),m||(m=we()),kt(m,this.relativeTarget)),S&&(this.animationValues=c,d4(c,u,this.latestValues,C,h,p)),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&&(or(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=le.update(()=>{Ya.hasAnimatedSinceResize=!0,this.currentAnimation=C4(0,L0,{...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(L0),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&&Vb(this.options.animationType,this.layout.layoutBox,u.layoutBox)){l=this.target||we();const d=yt(this.layout.layoutBox.x);l.x.min=s.target.x.min,l.x.max=l.x.min+d;const f=yt(this.layout.layoutBox.y);l.y.min=s.target.y.min,l.y.max=l.y.min+f}kt(a,l),go(a,c),Ki(this.projectionDeltaWithTransform,this.layoutCorrected,a,c)}}registerSharedNode(s,a){this.sharedNodes.has(s)||this.sharedNodes.set(s,new v4),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&&jc("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(j0),this.root.sharedNodes.clear()}}}function P4(e){e.updateLayout()}function E4(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"?Tt(d=>{const f=s?n.measuredBox[d]:n.layoutBox[d],y=yt(f);f.min=r[d].min,f.max=f.min+y}):Vb(i,n.layoutBox,r)&&Tt(d=>{const f=s?n.measuredBox[d]:n.layoutBox[d],y=yt(r[d]);f.max=f.min+y,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[d].max=e.relativeTarget[d].min+y)});const a=po();Ki(a,r,n.layoutBox);const l=po();s?Ki(l,e.applyTransform(o,!0),n.measuredBox):Ki(l,r,n.layoutBox);const u=!Lb(a);let c=!1;if(!e.resumeFrom){const d=e.getClosestProjectingParent();if(d&&!d.resumeFrom){const{snapshot:f,layout:y}=d;if(f&&y){const v=we();Gi(v,n.layoutBox,f.layoutBox);const S=we();Gi(S,r,y.layoutBox),jb(v,S)||(c=!0),d.options.layoutRoot&&(e.relativeTarget=S,e.relativeTargetOrigin=v,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 $4(e){_i&&Sr.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 A4(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function R4(e){e.clearSnapshot()}function j0(e){e.clearMeasurements()}function M4(e){e.isLayoutDirty=!1}function z4(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function F0(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function D4(e){e.resolveTargetDelta()}function I4(e){e.calcProjection()}function L4(e){e.resetSkewAndRotation()}function j4(e){e.removeLeadSnapshot()}function B0(e,t,n){e.translate=ge(t.translate,0,n),e.scale=ge(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function V0(e,t,n,r){e.min=ge(t.min,n.min,r),e.max=ge(t.max,n.max,r)}function F4(e,t,n,r){V0(e.x,t.x,n.x,r),V0(e.y,t.y,n.y,r)}function B4(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const V4={duration:.45,ease:[.4,0,.1,1]},O0=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),N0=O0("applewebkit/")&&!O0("chrome/")?Math.round:mt;function W0(e){e.min=N0(e.min),e.max=N0(e.max)}function O4(e){W0(e.x),W0(e.y)}function Vb(e,t,n){return e==="position"||e==="preserve-aspect"&&!V3(D0(t),D0(n),.2)}function N4(e){var t;return e!==e.root&&((t=e.scroll)===null||t===void 0?void 0:t.wasRoot)}const W4=Bb({attachResizeListener:(e,t)=>ws(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),Fc={current:void 0},Ob=Bb({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!Fc.current){const e=new W4({});e.mount(window),e.setOptions({layoutScroll:!0}),Fc.current=e}return Fc.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),U4={pan:{Feature:n4},drag:{Feature:t4,ProjectionNode:Ob,MeasureLayout:zb}};function U0(e,t,n){const{props:r}=e;e.animationState&&r.whileHover&&e.animationState.setActive("whileHover",n==="Start");const o="onHover"+n,i=r[o];i&&le.postRender(()=>i(t,Ds(t)))}class H4 extends ur{mount(){const{current:t}=this.node;t&&(this.unmount=_3(t,n=>(U0(this.node,n,"Start"),r=>U0(this.node,r,"End"))))}unmount(){}}class K4 extends ur{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=zs(ws(this.node.current,"focus",()=>this.onFocus()),ws(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function H0(e,t,n){const{props:r}=e;e.animationState&&r.whileTap&&e.animationState.setActive("whileTap",n==="Start");const o="onTap"+(n==="End"?"":n),i=r[o];i&&le.postRender(()=>i(t,Ds(t)))}class G4 extends ur{mount(){const{current:t}=this.node;t&&(this.unmount=A3(t,n=>(H0(this.node,n,"Start"),(r,{success:o})=>H0(this.node,r,o?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const pf=new WeakMap,Bc=new WeakMap,Y4=e=>{const t=pf.get(e.target);t&&t(e)},X4=e=>{e.forEach(Y4)};function q4({root:e,...t}){const n=e||document;Bc.has(n)||Bc.set(n,{});const r=Bc.get(n),o=JSON.stringify(t);return r[o]||(r[o]=new IntersectionObserver(X4,{root:e,...t})),r[o]}function Q4(e,t,n){const r=q4(t);return pf.set(e,n),r.observe(e),()=>{pf.delete(e),r.unobserve(e)}}const Z4={some:0,all:1};class J4 extends ur{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:Z4[o]},a=l=>{const{isIntersecting:u}=l;if(this.isInView===u||(this.isInView=u,i&&!u&&this.hasEnteredView))return;u&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",u);const{onViewportEnter:c,onViewportLeave:d}=this.node.getProps(),f=u?c:d;f&&f(l)};return Q4(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(eD(t,n))&&this.startObserver()}unmount(){}}function eD({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const tD={inView:{Feature:J4},tap:{Feature:G4},focus:{Feature:K4},hover:{Feature:H4}},nD={layout:{ProjectionNode:Ob,MeasureLayout:zb}},rp=T.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"}),Su=T.createContext({}),op=typeof window<"u",Nb=op?T.useLayoutEffect:T.useEffect,Wb=T.createContext({strict:!1});function rD(e,t,n,r,o){var i,s;const{visualElement:a}=T.useContext(Su),l=T.useContext(Wb),u=T.useContext(Is),c=T.useContext(rp).reducedMotion,d=T.useRef(null);r=r||l.renderer,!d.current&&r&&(d.current=r(e,{visualState:t,parent:a,props:n,presenceContext:u,blockInitialAnimation:u?u.initial===!1:!1,reducedMotionConfig:c}));const f=d.current,y=T.useContext(Mb);f&&!f.projection&&o&&(f.type==="html"||f.type==="svg")&&oD(d.current,n,o,y);const v=T.useRef(!1);T.useInsertionEffect(()=>{f&&v.current&&f.update(n,u)});const S=n[gb],_=T.useRef(!!S&&!(!((i=window.MotionHandoffIsComplete)===null||i===void 0)&&i.call(window,S))&&((s=window.MotionHasOptimisedAnimation)===null||s===void 0?void 0:s.call(window,S)));return Nb(()=>{f&&(v.current=!0,window.MotionIsMounted=!0,f.updateFeatures(),np.render(f.render),_.current&&f.animationState&&f.animationState.animateChanges())}),T.useEffect(()=>{f&&(!_.current&&f.animationState&&f.animationState.animateChanges(),_.current&&(queueMicrotask(()=>{var p;(p=window.MotionHandoffMarkAsComplete)===null||p===void 0||p.call(window,S)}),_.current=!1))}),f}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:Ub(e.parent)),e.projection.setOptions({layoutId:o,layout:i,alwaysMeasureLayout:!!s||a&&ho(a),visualElement:e,animationType:typeof i=="string"?i:"both",initialPromotionConfig:r,layoutScroll:l,layoutRoot:u})}function Ub(e){if(e)return e.options.allowProjection!==!1?e.projection:Ub(e.parent)}function iD(e,t,n){return T.useCallback(r=>{r&&e.mount&&e.mount(r),t&&(r?t.mount(r):t.unmount()),n&&(typeof n=="function"?n(r):ho(n)&&(n.current=r))},[t])}function bu(e){return gu(e.animate)||Dh.some(t=>vs(e[t]))}function Hb(e){return!!(bu(e)||e.variants)}function sD(e,t){if(bu(e)){const{initial:n,animate:r}=e;return{initial:n===!1||vs(n)?n:void 0,animate:vs(r)?r:void 0}}return e.inherit!==!1?t:{}}function aD(e){const{initial:t,animate:n}=sD(e,T.useContext(Su));return T.useMemo(()=>({initial:t,animate:n}),[K0(t),K0(n)])}function K0(e){return Array.isArray(e)?e.join(" "):e}const G0={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"]},Oo={};for(const e in G0)Oo[e]={isEnabled:t=>G0[e].some(n=>!!t[n])};function lD(e){for(const t in e)Oo[t]={...Oo[t],...e[t]}}const uD=Symbol.for("motionComponentSymbol");function cD({preloadedFeatures:e,createVisualElement:t,useRender:n,useVisualState:r,Component:o}){e&&lD(e);function i(a,l){let u;const c={...T.useContext(rp),...a,layoutId:dD(a)},{isStatic:d}=c,f=aD(a),y=r(a,d);if(!d&&op){fD();const v=hD(c);u=v.MeasureLayout,f.visualElement=rD(o,y,c,t,v.ProjectionNode)}return P.jsxs(Su.Provider,{value:f,children:[u&&f.visualElement?P.jsx(u,{visualElement:f.visualElement,...c}):null,n(o,a,iD(y,f.visualElement,l),y,d,f.visualElement)]})}const s=T.forwardRef(i);return s[uD]=o,s}function dD({layoutId:e}){const t=T.useContext(tp).id;return t&&e!==void 0?t+"-"+e:e}function fD(e,t){T.useContext(Wb).strict}function hD(e){const{drag:t,layout:n}=Oo;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 pD=["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 ip(e){return typeof e!="string"||e.includes("-")?!1:!!(pD.indexOf(e)>-1||/[A-Z]/u.test(e))}function Kb(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 Gb=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 Yb(e,t,n,r){Kb(e,t,void 0,r);for(const o in t.attrs)e.setAttribute(Gb.has(o)?o:Jh(o),t.attrs[o])}function Xb(e,{layout:t,layoutId:n}){return Vr.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!zl[e]||e==="opacity")}function sp(e,t,n){var r;const{style:o}=e,i={};for(const s in o)(Ke(o[s])||t.style&&Ke(t.style[s])||Xb(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 i}function qb(e,t,n){const r=sp(e,t,n);for(const o in e)if(Ke(e[o])||Ke(t[o])){const i=As.indexOf(o)!==-1?"attr"+o.charAt(0).toUpperCase()+o.substring(1):o;r[i]=e[o]}return r}function ap(e){const t=T.useRef(null);return t.current===null&&(t.current=e()),t.current}function mD({scrapeMotionValuesFromProps:e,createRenderState:t,onMount:n},r,o,i){const s={latestValues:gD(r,o,i,e),renderState:t()};return n&&(s.mount=a=>n(r,a,s)),s}const Qb=e=>(t,n)=>{const r=T.useContext(Su),o=T.useContext(Is),i=()=>mD(e,t,r,o);return n?i():ap(i)};function gD(e,t,n,r){const o={},i=r(e,{});for(const f in i)o[f]=Xa(i[f]);let{initial:s,animate:a}=e;const l=bu(e),u=Hb(e);t&&u&&!l&&e.inherit!==!1&&(s===void 0&&(s=t.initial),a===void 0&&(a=t.animate));let c=n?n.initial===!1:!1;c=c||s===!1;const d=c?a:s;if(d&&typeof d!="boolean"&&!gu(d)){const f=Array.isArray(d)?d:[d];for(let y=0;y({style:{},transform:{},transformOrigin:{},vars:{}}),Zb=()=>({...lp(),attrs:{}}),Jb=(e,t)=>t&&typeof e=="number"?t.transform(e):e,yD={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},vD=As.length;function SD(e,t,n){let r="",o=!0;for(let i=0;itypeof e=="string"&&e.toLowerCase()==="svg",CD={useVisualState:Qb({scrapeMotionValuesFromProps:qb,createRenderState:Zb,onMount:(e,t,{renderState:n,latestValues:r})=>{le.read(()=>{try{n.dimensions=typeof t.getBBox=="function"?t.getBBox():t.getBoundingClientRect()}catch{n.dimensions={x:0,y:0,width:0,height:0}}}),le.render(()=>{cp(n,r,dp(t.tagName),e.transformTemplate),Yb(t,n)})}})},TD={useVisualState:Qb({scrapeMotionValuesFromProps:sp,createRenderState:lp})};function ex(e,t,n){for(const r in t)!Ke(t[r])&&!Xb(r,n)&&(e[r]=t[r])}function _D({transformTemplate:e},t){return T.useMemo(()=>{const n=lp();return up(n,t,e),Object.assign({},n.vars,n.style)},[t])}function PD(e,t){const n=e.style||{},r={};return ex(r,n,e),Object.assign(r,_D(e,t)),r}function ED(e,t){const n={},r=PD(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 $D=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 Dl(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||$D.has(e)}let tx=e=>!Dl(e);function AD(e){e&&(tx=t=>t.startsWith("on")?!Dl(t):e(t))}try{AD(require("@emotion/is-prop-valid").default)}catch{}function RD(e,t,n){const r={};for(const o in e)o==="values"&&typeof e.values=="object"||(tx(o)||n===!0&&Dl(o)||!t&&!Dl(o)||e.draggable&&o.startsWith("onDrag"))&&(r[o]=e[o]);return r}function MD(e,t,n,r){const o=T.useMemo(()=>{const i=Zb();return cp(i,t,dp(r),e.transformTemplate),{...i.attrs,style:{...i.style}}},[t]);if(e.style){const i={};ex(i,e.style,e),o.style={...i,...o.style}}return o}function zD(e=!1){return(n,r,o,{latestValues:i},s)=>{const l=(ip(n)?MD:ED)(r,i,s,n),u=RD(r,typeof n=="string",e),c=n!==T.Fragment?{...u,...l,ref:o}:{},{children:d}=r,f=T.useMemo(()=>Ke(d)?d.get():d,[d]);return T.createElement(n,{...c,children:f})}}function DD(e,t){return function(r,{forwardMotionProps:o}={forwardMotionProps:!1}){const s={...ip(r)?CD:TD,preloadedFeatures:e,useRender:zD(o),createVisualElement:t,Component:r};return cD(s)}}const mf={current:null},nx={current:!1};function ID(){if(nx.current=!0,!!op)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>mf.current=e.matches;e.addListener(t),t()}else mf.current=!1}function LD(e,t,n){for(const r in t){const o=t[r],i=n[r];if(Ke(o))e.addValue(r,o);else if(Ke(i))e.addValue(r,xs(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,xs(s!==void 0?s:o,{owner:e}))}}for(const r in n)t[r]===void 0&&e.removeValue(r);return t}const X0=new WeakMap,jD=[...YS,Ue,ir],FD=e=>jD.find(GS(e)),q0=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class BD{scrapeMotionValuesFromProps(t,n,r){return{}}constructor({parent:t,props:n,presenceContext:r,reducedMotionConfig:o,blockInitialAnimation:i,visualState:s},a={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=Bh,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const f=cn.now();this.renderScheduledAtthis.bindToMotionValue(r,n)),nx.current||ID(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:mf.current,this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){X0.delete(this.current),this.projection&&this.projection.unmount(),or(this.notifyUpdate),or(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=Vr.has(t),o=n.on("change",a=>{this.latestValues[t]=a,this.props.onUpdate&&le.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 Oo){const n=Oo[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):we()}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=xs(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"&&(WS(o)||NS(o))?o=parseFloat(o):!FD(o)&&ir.test(n)&&(o=nb(t,n)),this.setBaseTarget(t,Ke(o)?o.get():o)),Ke(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=Mh(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&&!Ke(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 Zh),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}}class rx extends BD{constructor(){super(...arguments),this.KeyframeResolver=rb}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]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;Ke(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}function VD(e){return window.getComputedStyle(e)}class OD extends rx{constructor(){super(...arguments),this.type="html",this.renderInstance=Kb}readValueFromInstance(t,n){if(Vr.has(n)){const r=Wh(n);return r&&r.default||0}else{const r=VD(t),o=(HS(n)?r.getPropertyValue(n):r[n])||0;return typeof o=="string"?o.trim():o}}measureInstanceViewportBox(t,{transformPagePoint:n}){return Ab(t,n)}build(t,n,r){up(t,n,r.transformTemplate)}scrapeMotionValuesFromProps(t,n,r){return sp(t,n,r)}}class ND extends rx{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=we}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(Vr.has(n)){const r=Wh(n);return r&&r.default||0}return n=Gb.has(n)?n:Jh(n),t.getAttribute(n)}scrapeMotionValuesFromProps(t,n,r){return qb(t,n,r)}build(t,n,r){cp(t,n,this.isSVGTag,r.transformTemplate)}renderInstance(t,n,r,o){Yb(t,n,r,o)}mount(t){this.isSVGTag=dp(t.tagName),super.mount(t)}}const WD=(e,t)=>ip(e)?new ND(t):new OD(t,{allowProjection:e!==T.Fragment}),UD=DD({...C3,...tD,...U4,...nD},WD),ox=wM(UD);class HD extends T.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 KD({children:e,isPresent:t}){const n=T.useId(),r=T.useRef(null),o=T.useRef({width:0,height:0,top:0,left:0}),{nonce:i}=T.useContext(rp);return T.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(` + ${zS} + `});function CM(e){const{cssVarsRoot:t,theme:n,children:r}=e,o=C.useMemo(()=>n_(n),[n]);return P.jsxs(cM,{theme:o,children:[P.jsx(TM,{root:t}),r]})}function TM({root:e=":host, :root"}){const t=[e,"[data-theme]"].join(",");return P.jsx(gu,{styles:n=>({[t]:n.__cssVars})})}zn({name:"StylesContext",errorMessage:"useStyles: `styles` is undefined. Seems you forgot to wrap the components in `` "});function _M(){const{colorMode:e}=yu();return P.jsx(gu,{styles:t=>{const n=G1(t,"styles.global"),r=$t(n,{theme:t,colorMode:e});return r?J1(r)(t):void 0}})}const[PM,EM]=zn({strict:!1,name:"PortalManagerContext"});function DS(e){const{children:t,zIndex:n}=e;return P.jsx(PM,{value:{zIndex:n},children:t})}DS.displayName="PortalManager";const IS=C.createContext({getDocument(){return document},getWindow(){return window}});IS.displayName="EnvironmentContext";function LS(e){const{children:t,environment:n,disabled:r}=e,o=C.useRef(null),i=C.useMemo(()=>n||{getDocument:()=>{var a;return((a=o.current)==null?void 0:a.ownerDocument)??document},getWindow:()=>{var a;return((a=o.current)==null?void 0:a.ownerDocument.defaultView)??window}},[n]),s=!r||!n;return P.jsxs(IS.Provider,{value:i,children:[t,s&&P.jsx("span",{id:"__chakra_env",hidden:!0,ref:o})]})}LS.displayName="EnvironmentProvider";const $M=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=P.jsx(LS,{environment:a,disabled:u,children:t});return P.jsx(CM,{theme:s,cssVarsRoot:l,children:P.jsxs(RS,{colorModeManager:n,options:s.config,children:[i?P.jsx(kM,{scope:o}):P.jsx(wM,{}),!c&&P.jsx(_M,{}),r?P.jsx(DS,{zIndex:r,children:d}):d]})})};function AM(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 vu(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}const tf=e=>Array.isArray(e);function jS(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 Lh(e,t,n,r){if(typeof t=="function"){const[o,i]=Ng(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]=Ng(r);t=t(n!==void 0?n:e.custom,o,i)}return t}function Su(e,t,n){const r=e.getProps();return Lh(r,t,n!==void 0?n:r.custom,e)}const jh=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],Fh=["initial",...jh],As=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Vr=new Set(As),kn=e=>e*1e3,Cn=e=>e/1e3,RM={type:"spring",stiffness:500,damping:25,restSpeed:10},MM=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),zM={type:"keyframes",duration:.8},DM={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},IM=(e,{keyframes:t})=>t.length>2?zM:Vr.has(e)?e.startsWith("scale")?MM(t[1]):RM:DM;function Bh(e,t){return e?e[t]||e.default||e:void 0}const LM={skipAnimations:!1,useManualTiming:!1},jM=e=>e!==null;function bu(e,{repeat:t,repeatType:n="loop"},r){const o=e.filter(jM),i=t&&n!=="loop"&&t%2===1?0:o.length-1;return!i||r===void 0?o[i]:r}const mt=e=>e;let nf=mt;function FM(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 y=d&&r?t:n;return c&&i.add(u),y.has(u)||y.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],t.forEach(a),t.clear(),r=!1,o&&(o=!1,l.process(u))}};return l}const Sa=["read","resolveKeyframes","update","preRender","render","postRender"],BM=40;function FS(e,t){let n=!1,r=!0;const o={delta:0,timestamp:0,isProcessing:!1},i=()=>n=!0,s=Sa.reduce((p,h)=>(p[h]=FM(i),p),{}),{read:a,resolveKeyframes:l,update:u,preRender:c,render:d,postRender:f}=s,y=()=>{const p=performance.now();n=!1,o.delta=r?1e3/60:Math.max(Math.min(p-o.timestamp,BM),1),o.timestamp=p,o.isProcessing=!0,a.process(o),l.process(o),u.process(o),c.process(o),d.process(o),f.process(o),o.isProcessing=!1,n&&t&&(r=!1,e(y))},v=()=>{n=!0,r=!0,o.isProcessing||e(y)};return{schedule:Sa.reduce((p,h)=>{const m=s[h];return p[h]=(b,T=!1,E=!1)=>(n||v(),m.schedule(b,T,E)),p},{}),cancel:p=>{for(let h=0;h(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,VM=1e-7,OM=12;function NM(e,t,n,r,o){let i,s,a=0;do s=t+(n-t)/2,i=BS(s,r,o)-e,i>0?n=s:t=s;while(Math.abs(i)>VM&&++aNM(i,0,1,e,n);return i=>i===0||i===1?i:BS(o(i),t,r)}const VS=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,OS=e=>t=>1-e(1-t),NS=Rs(.33,1.53,.69,.99),Vh=OS(NS),WS=VS(Vh),US=e=>(e*=2)<1?.5*Vh(e):.5*(2-Math.pow(2,-10*(e-1))),Oh=e=>1-Math.sin(Math.acos(e)),HS=OS(Oh),KS=VS(Oh),GS=e=>/^0[^.\s]+$/u.test(e);function WM(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||GS(e):!0}const XS=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),YS=e=>t=>typeof t=="string"&&t.startsWith(e),qS=YS("--"),UM=YS("var(--"),Nh=e=>UM(e)?HM.test(e.split("/*")[0].trim()):!1,HM=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,KM=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function GM(e){const t=KM.exec(e);if(!t)return[,];const[,n,r,o]=t;return[`--${n??r}`,o]}function QS(e,t,n=1){const[r,o]=GM(e);if(!r)return;const i=window.getComputedStyle(t).getPropertyValue(r);if(i){const s=i.trim();return XS(s)?parseFloat(s):s}return Nh(o)?QS(o,t,n+1):o}const Rn=(e,t,n)=>n>t?t:ntypeof e=="number",parse:parseFloat,transform:e=>e},Ss={...Xo,transform:e=>Rn(0,1,e)},ba={...Xo,default:1},Ms=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),Bn=Ms("deg"),un=Ms("%"),B=Ms("px"),XM=Ms("vh"),YM=Ms("vw"),Wg={...un,parse:e=>un.parse(e)/100,transform:e=>un.transform(e*100)},qM=new Set(["width","height","top","left","right","bottom","x","y","translateX","translateY"]),Ug=e=>e===Xo||e===B,Hg=(e,t)=>parseFloat(e.split(", ")[t]),Kg=(e,t)=>(n,{transform:r})=>{if(r==="none"||!r)return 0;const o=r.match(/^matrix3d\((.+)\)$/u);if(o)return Hg(o[1],t);{const i=r.match(/^matrix\((.+)\)$/u);return i?Hg(i[1],e):0}},QM=new Set(["x","y","z"]),ZM=As.filter(e=>!QM.has(e));function JM(e){const t=[];return ZM.forEach(n=>{const r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t}const Vo={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:Kg(4,13),y:Kg(5,14)};Vo.translateX=Vo.x;Vo.translateY=Vo.y;const ZS=e=>t=>t.test(e),ez={test:e=>e==="auto",parse:e=>e},JS=[Xo,B,un,Bn,YM,XM,ez],Gg=e=>JS.find(ZS(e)),Rr=new Set;let rf=!1,of=!1;function eb(){if(of){const e=Array.from(Rr).filter(r=>r.needsMeasurement),t=new Set(e.map(r=>r.element)),n=new Map;t.forEach(r=>{const o=JM(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)})}of=!1,rf=!1,Rr.forEach(e=>e.complete()),Rr.clear()}function tb(){Rr.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(of=!0)})}function tz(){tb(),eb()}class Wh{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?(Rr.add(this),rf||(rf=!0,le.read(tb),le.resolveKeyframes(eb))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:n,element:r,motionValue:o}=this;for(let i=0;iMath.round(e*1e5)/1e5,Uh=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function nz(e){return e==null}const rz=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,Hh=(e,t)=>n=>!!(typeof n=="string"&&rz.test(n)&&n.startsWith(e)||t&&!nz(n)&&Object.prototype.hasOwnProperty.call(n,t)),nb=(e,t,n)=>r=>{if(typeof r!="string")return r;const[o,i,s,a]=r.match(Uh);return{[e]:parseFloat(o),[t]:parseFloat(i),[n]:parseFloat(s),alpha:a!==void 0?parseFloat(a):1}},oz=e=>Rn(0,255,e),Ac={...Xo,transform:e=>Math.round(oz(e))},Tr={test:Hh("rgb","red"),parse:nb("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+Ac.transform(e)+", "+Ac.transform(t)+", "+Ac.transform(n)+", "+Hi(Ss.transform(r))+")"};function iz(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 sf={test:Hh("#"),parse:iz,transform:Tr.transform},fo={test:Hh("hsl","hue"),parse:nb("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+un.transform(Hi(t))+", "+un.transform(Hi(n))+", "+Hi(Ss.transform(r))+")"},Ue={test:e=>Tr.test(e)||sf.test(e)||fo.test(e),parse:e=>Tr.test(e)?Tr.parse(e):fo.test(e)?fo.parse(e):sf.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?Tr.transform(e):fo.transform(e)},sz=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function az(e){var t,n;return isNaN(e)&&typeof e=="string"&&(((t=e.match(Uh))===null||t===void 0?void 0:t.length)||0)+(((n=e.match(sz))===null||n===void 0?void 0:n.length)||0)>0}const rb="number",ob="color",lz="var",uz="var(",Xg="${}",cz=/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 bs(e){const t=e.toString(),n=[],r={color:[],number:[],var:[]},o=[];let i=0;const a=t.replace(cz,l=>(Ue.test(l)?(r.color.push(i),o.push(ob),n.push(Ue.parse(l))):l.startsWith(uz)?(r.var.push(i),o.push(lz),n.push(l)):(r.number.push(i),o.push(rb),n.push(parseFloat(l))),++i,Xg)).split(Xg);return{values:n,split:a,indexes:r,types:o}}function ib(e){return bs(e).values}function sb(e){const{split:t,types:n}=bs(e),r=t.length;return o=>{let i="";for(let s=0;stypeof e=="number"?0:e;function fz(e){const t=ib(e);return sb(e)(t.map(dz))}const ir={test:az,parse:ib,createTransformer:sb,getAnimatableNone:fz},hz=new Set(["brightness","contrast","saturate","opacity"]);function pz(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(Uh)||[];if(!r)return e;const o=n.replace(r,"");let i=hz.has(t)?1:0;return r!==n&&(i*=100),t+"("+i+o+")"}const mz=/\b([a-z-]*)\(.*?\)/gu,af={...ir,getAnimatableNone:e=>{const t=e.match(mz);return t?t.map(pz).join(" "):e}},gz={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,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,backgroundPositionX:B,backgroundPositionY:B},yz={rotate:Bn,rotateX:Bn,rotateY:Bn,rotateZ:Bn,scale:ba,scaleX:ba,scaleY:ba,scaleZ:ba,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:Ss,originX:Wg,originY:Wg,originZ:B},Yg={...Xo,transform:Math.round},Kh={...gz,...yz,zIndex:Yg,size:B,fillOpacity:Ss,strokeOpacity:Ss,numOctaves:Yg},vz={...Kh,color:Ue,backgroundColor:Ue,outlineColor:Ue,fill:Ue,stroke:Ue,borderColor:Ue,borderTopColor:Ue,borderRightColor:Ue,borderBottomColor:Ue,borderLeftColor:Ue,filter:af,WebkitFilter:af},Gh=e=>vz[e];function ab(e,t){let n=Gh(e);return n!==af&&(n=ir),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const Sz=new Set(["auto","none","0"]);function bz(e,t,n){let r=0,o;for(;r{n.getValue(l).set(u)}),this.resolveNoneKeyframes()}}function Xh(e){return typeof e=="function"}let Ga;function xz(){Ga=void 0}const cn={now:()=>(Ga===void 0&&cn.set(je.isProcessing||LM.useManualTiming?je.timestamp:performance.now()),Ga),set:e=>{Ga=e,queueMicrotask(xz)}},qg=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(ir.test(e)||e==="0")&&!e.startsWith("url("));function wz(e){const t=e[0];if(e.length===1)return!0;for(let n=0;nCz?this.resolvedAt:this.createdAt:this.createdAt}get resolved(){return!this._resolved&&!this.hasAttemptedResolve&&tz(),this._resolved}onKeyframesResolved(t,n){this.resolvedAt=cn.now(),this.hasAttemptedResolve=!0;const{name:r,type:o,velocity:i,delay:s,onComplete:a,onUpdate:l,isGenerator:u}=this.options;if(!u&&!kz(t,r,o,i))if(s)this.options.duration=0;else{l==null||l(bu(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)}flatten(){this.options.type="keyframes",this.options.ease="linear"}updateFinishedPromise(){this.currentFinishedPromise=new Promise(t=>{this.resolveFinishedPromise=t})}}const Oo=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r},cb=(e,t,n=10)=>{let r="";const o=Math.max(Math.round(t/n),2);for(let i=0;i{const c=u*s,d=c*e,f=c-n,y=lf(u,s),v=Math.exp(-d);return Rc-f/y*v},i=u=>{const d=u*s*e,f=d*n+n,y=Math.pow(s,2)*Math.pow(u,2)*e,v=Math.exp(-d),S=lf(Math.pow(u,2),s);return(-o(u)+Rc>0?-1:1)*((f-y)*v)/S}):(o=u=>{const c=Math.exp(-u*e),d=(u-n)*e+1;return-Rc+c*d},i=u=>{const c=Math.exp(-u*e),d=(n-u)*(e*e);return c*d});const a=5/e,l=Ez(o,i,a);if(e=kn(e),isNaN(l))return{stiffness:Se.stiffness,damping:Se.damping,duration:e};{const u=Math.pow(l,2)*r;return{stiffness:u,damping:s*2*Math.sqrt(r*u),duration:e}}}const Pz=12;function Ez(e,t,n){let r=n;for(let o=1;o=uf?1/0:t}const $z=["duration","bounce"],Az=["stiffness","damping","mass"];function Qg(e,t){return t.some(n=>e[n]!==void 0)}function Rz(e){let t={velocity:Se.velocity,stiffness:Se.stiffness,damping:Se.damping,mass:Se.mass,isResolvedFromDuration:!1,...e};if(!Qg(e,Az)&&Qg(e,$z))if(e.visualDuration){const n=e.visualDuration,r=2*Math.PI/(n*1.2),o=r*r,i=2*Rn(.05,1,1-e.bounce)*Math.sqrt(o);t={...t,mass:Se.mass,stiffness:o,damping:i}}else{const n=_z(e);t={...t,...n,mass:Se.mass},t.isResolvedFromDuration=!0}return t}function pb(e=Se.visualDuration,t=Se.bounce){const n=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:t}:e;let{restSpeed:r,restDelta:o}=n;const i=n.keyframes[0],s=n.keyframes[n.keyframes.length-1],a={done:!1,value:i},{stiffness:l,damping:u,mass:c,duration:d,velocity:f,isResolvedFromDuration:y}=Rz({...n,velocity:-Cn(n.velocity||0)}),v=f||0,S=u/(2*Math.sqrt(l*c)),_=s-i,p=Cn(Math.sqrt(l/c)),h=Math.abs(_)<5;r||(r=h?Se.restSpeed.granular:Se.restSpeed.default),o||(o=h?Se.restDelta.granular:Se.restDelta.default);let m;if(S<1){const T=lf(p,S);m=E=>{const k=Math.exp(-S*p*E);return s-k*((v+S*p*_)/T*Math.sin(T*E)+_*Math.cos(T*E))}}else if(S===1)m=T=>s-Math.exp(-p*T)*(_+(v+p*_)*T);else{const T=p*Math.sqrt(S*S-1);m=E=>{const k=Math.exp(-S*p*E),A=Math.min(T*E,300);return s-k*((v+S*p*_)*Math.sinh(A)+T*_*Math.cosh(A))/T}}const b={calculatedDuration:y&&d||null,next:T=>{const E=m(T);if(y)a.done=T>=d;else{let k=0;S<1&&(k=T===0?kn(v):fb(m,T,E));const A=Math.abs(k)<=r,D=Math.abs(s-E)<=o;a.done=A&&D}return a.value=a.done?s:E,a},toString:()=>{const T=Math.min(hb(b),uf),E=cb(k=>b.next(T*k).value,T,30);return T+"ms "+E}};return b}function Zg({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:o=10,bounceStiffness:i=500,modifyTarget:s,min:a,max:l,restDelta:u=.5,restSpeed:c}){const d=e[0],f={done:!1,value:d},y=A=>a!==void 0&&Al,v=A=>a===void 0?l:l===void 0||Math.abs(a-A)-S*Math.exp(-A/r),m=A=>p+h(A),b=A=>{const D=h(A),M=m(A);f.done=Math.abs(D)<=u,f.value=f.done?p:M};let T,E;const k=A=>{y(f.value)&&(T=A,E=pb({keyframes:[f.value,v(f.value)],velocity:fb(m,A,f.value),damping:o,stiffness:i,restDelta:u,restSpeed:c}))};return k(0),{calculatedDuration:null,next:A=>{let D=!1;return!E&&T===void 0&&(D=!0,b(A),k(A)),T!==void 0&&A>=T?E.next(A-T):(!D&&b(A),f)}}}const Mz=Rs(.42,0,1,1),zz=Rs(0,0,.58,1),mb=Rs(.42,0,.58,1),Dz=e=>Array.isArray(e)&&typeof e[0]!="number",Yh=e=>Array.isArray(e)&&typeof e[0]=="number",Jg={linear:mt,easeIn:Mz,easeInOut:mb,easeOut:zz,circIn:Oh,circInOut:KS,circOut:HS,backIn:Vh,backInOut:WS,backOut:NS,anticipate:US},e0=e=>{if(Yh(e)){nf(e.length===4);const[t,n,r,o]=e;return Rs(t,n,r,o)}else if(typeof e=="string")return nf(Jg[e]!==void 0),Jg[e];return e},Iz=(e,t)=>n=>t(e(n)),zs=(...e)=>e.reduce(Iz),ge=(e,t,n)=>e+(t-e)*n;function Mc(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 Lz({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=Mc(l,a,e+1/3),i=Mc(l,a,e),s=Mc(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 zc=(e,t,n)=>{const r=e*e,o=n*(t*t-r)+r;return o<0?0:Math.sqrt(o)},jz=[sf,Tr,fo],Fz=e=>jz.find(t=>t.test(e));function t0(e){const t=Fz(e);if(!t)return!1;let n=t.parse(e);return t===fo&&(n=Lz(n)),n}const n0=(e,t)=>{const n=t0(e),r=t0(t);if(!n||!r)return El(e,t);const o={...n};return i=>(o.red=zc(n.red,r.red,i),o.green=zc(n.green,r.green,i),o.blue=zc(n.blue,r.blue,i),o.alpha=ge(n.alpha,r.alpha,i),Tr.transform(o))},cf=new Set(["none","hidden"]);function Bz(e,t){return cf.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function Vz(e,t){return n=>ge(e,t,n)}function qh(e){return typeof e=="number"?Vz:typeof e=="string"?Nh(e)?El:Ue.test(e)?n0:Wz:Array.isArray(e)?gb:typeof e=="object"?Ue.test(e)?n0:Oz:El}function gb(e,t){const n=[...e],r=n.length,o=e.map((i,s)=>qh(i)(i,t[s]));return i=>{for(let s=0;s{for(const i in r)n[i]=r[i](o);return n}}function Nz(e,t){var n;const r=[],o={color:0,var:0,number:0};for(let i=0;i{const n=ir.createTransformer(t),r=bs(e),o=bs(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?cf.has(e)&&!o.values.length||cf.has(t)&&!r.values.length?Bz(e,t):zs(gb(Nz(r,o),o.values),n):El(e,t)};function yb(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?ge(e,t,n):qh(e)(e,t)}function Uz(e,t,n){const r=[],o=n||yb,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=Uz(t,r,o),a=s.length,l=u=>{let c=0;if(a>1)for(;cl(Rn(e[0],e[i-1],u)):l}function Kz(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const o=Oo(0,t,r);e.push(ge(n,1,o))}}function Gz(e){const t=[0];return Kz(t,e.length-1),t}function Xz(e,t){return e.map(n=>n*t)}function Yz(e,t){return e.map(()=>t||mb).splice(0,e.length-1)}function $l({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const o=Dz(r)?r.map(e0):e0(r),i={done:!1,value:t[0]},s=Xz(n&&n.length===t.length?n:Gz(t),e),a=Hz(s,t,{ease:Array.isArray(o)?o:Yz(t,o)});return{calculatedDuration:e,next:l=>(i.value=a(l),i.done=l>=e,i)}}const qz=e=>{const t=({timestamp:n})=>e(n);return{start:()=>le.update(t,!0),stop:()=>or(t),now:()=>je.isProcessing?je.timestamp:cn.now()}},Qz={decay:Zg,inertia:Zg,tween:$l,keyframes:$l,spring:pb},Zz=e=>e/100;class Qh extends ub{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)||Wh,a=(l,u)=>this.onKeyframesResolved(l,u);this.resolver=new s(i,a,n,r,o),this.resolver.scheduleResolve()}flatten(){super.flatten(),this._resolved&&Object.assign(this._resolved,this.initPlayback(this._resolved.keyframes))}initPlayback(t){const{type:n="keyframes",repeat:r=0,repeatDelay:o=0,repeatType:i,velocity:s=0}=this.options,a=Xh(n)?n:Qz[n]||$l;let l,u;a!==$l&&typeof t[0]!="number"&&(l=zs(Zz,yb(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=hb(c));const{calculatedDuration:d}=c,f=d+o,y=f*(r+1)-o;return{generator:c,mirroredGenerator:u,mapPercentToKeyframes:l,calculatedDuration:d,resolvedDuration:f,totalDuration:y}}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:A}=this.options;return{done:!0,value:A[A.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:f,repeat:y,repeatType:v,repeatDelay:S,onUpdate:_}=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 p=this.currentTime-f*(this.speed>=0?1:-1),h=this.speed>=0?p<0:p>c;this.currentTime=Math.max(p,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=c);let m=this.currentTime,b=i;if(y){const A=Math.min(this.currentTime,c)/d;let D=Math.floor(A),M=A%1;!M&&A>=1&&(M=1),M===1&&D--,D=Math.min(D,y+1),!!(D%2)&&(v==="reverse"?(M=1-M,S&&(M-=S/d)):v==="mirror"&&(b=s)),m=Rn(0,1,M)*d}const T=h?{done:!1,value:l[0]}:b.next(m);a&&(T.value=a(T.value));let{done:E}=T;!h&&u!==null&&(E=this.speed>=0?this.currentTime>=c:this.currentTime<=0);const k=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&E);return k&&o!==void 0&&(T.value=bu(l,this.options,o)),_&&_(T.value),k&&this.finish(),T}get duration(){const{resolved:t}=this;return t?Cn(t.calculatedDuration):0}get time(){return Cn(this.currentTime)}set time(t){t=kn(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=Cn(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved){this.pendingPlayState="running";return}if(this.isStopped)return;const{driver:t=qz,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 Jz=new Set(["opacity","clipPath","filter","transform"]);function Zh(e){let t;return()=>(t===void 0&&(t=e()),t)}const e3={linearEasing:void 0};function t3(e,t){const n=Zh(e);return()=>{var r;return(r=e3[t])!==null&&r!==void 0?r:n()}}const Al=t3(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing");function vb(e){return!!(typeof e=="function"&&Al()||!e||typeof e=="string"&&(e in df||Al())||Yh(e)||Array.isArray(e)&&e.every(vb))}const Ti=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,df={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Ti([0,.65,.55,1]),circOut:Ti([.55,0,1,.45]),backIn:Ti([.31,.01,.66,-.59]),backOut:Ti([.33,1.53,.69,.99])};function Sb(e,t){if(e)return typeof e=="function"&&Al()?cb(e,t):Yh(e)?Ti(e):Array.isArray(e)?e.map(n=>Sb(n,t)||df.easeOut):df[e]}function n3(e,t,n,{delay:r=0,duration:o=300,repeat:i=0,repeatType:s="loop",ease:a="easeInOut",times:l}={}){const u={[t]:n};l&&(u.offset=l);const c=Sb(a,o);return Array.isArray(c)&&(u.easing=c),e.animate(u,{delay:r,duration:o,easing:Array.isArray(c)?"linear":c,fill:"both",iterations:i+1,direction:s==="reverse"?"alternate":"normal"})}function r0(e,t){e.timeline=t,e.onfinish=null}const r3=Zh(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),Rl=10,o3=2e4;function i3(e){return Xh(e.type)||e.type==="spring"||!vb(e.ease)}function s3(e,t){const n=new Qh({...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(typeof s=="string"&&Al()&&a3(s)&&(s=bb[s]),i3(this.options)){const{onComplete:f,onUpdate:y,motionValue:v,element:S,..._}=this.options,p=s3(t,_);t=p.keyframes,t.length===1&&(t[1]=t[0]),o=p.duration,i=p.times,s=p.ease,a="keyframes"}const d=n3(l.owner.current,u,t,{...this.options,duration:o,times:i,ease:s});return d.startTime=c??this.calcStartTime(),this.pendingTimeline?(r0(d,this.pendingTimeline),this.pendingTimeline=void 0):d.onfinish=()=>{const{onComplete:f}=this.options;l.set(bu(t,this.options,n)),f&&f(),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 Cn(n)}get time(){const{resolved:t}=this;if(!t)return 0;const{animation:n}=t;return Cn(n.currentTime||0)}set time(t){const{resolved:n}=this;if(!n)return;const{animation:r}=n;r.currentTime=kn(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 mt;const{animation:r}=n;r0(r,t)}return mt}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:f,...y}=this.options,v=new Qh({...y,keyframes:r,duration:o,type:i,ease:s,times:a,isGenerator:!0}),S=kn(this.time);u.setWithVelocity(v.sample(S-Rl).value,v.sample(S).value,Rl)}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 r3()&&r&&Jz.has(r)&&n&&n.owner&&n.owner.current instanceof HTMLElement&&!n.owner.getProps().onUpdate&&!o&&i!=="mirror"&&s!==0&&a!=="inertia"}}const l3=Zh(()=>window.ScrollTimeline!==void 0);class u3{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;rl3()&&o.attachTimeline?o.attachTimeline(t):n(o));return()=>{r.forEach((o,i)=>{o&&o(),this.animations[i].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]())}flatten(){this.runAll("flatten")}play(){this.runAll("play")}pause(){this.runAll("pause")}cancel(){this.runAll("cancel")}complete(){this.runAll("complete")}}function c3({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}const Jh=(e,t,n,r={},o,i)=>s=>{const a=Bh(r,e)||{},l=a.delay||r.delay||0;let{elapsed:u=0}=r;u=u-kn(l);let c={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...a,delay:-u,onUpdate:f=>{t.set(f),a.onUpdate&&a.onUpdate(f)},onComplete:()=>{s(),a.onComplete&&a.onComplete()},name:e,motionValue:t,element:i?void 0:o};c3(a)||(c={...c,...IM(e,c)}),c.duration&&(c.duration=kn(c.duration)),c.repeatDelay&&(c.repeatDelay=kn(c.repeatDelay)),c.from!==void 0&&(c.keyframes[0]=c.from);let d=!1;if((c.type===!1||c.duration===0&&!c.repeatDelay)&&(c.duration=0,c.delay===0&&(d=!0)),d&&!i&&t.get()!==void 0){const f=bu(c.keyframes,a);if(f!==void 0)return le.update(()=>{c.onUpdate(f),c.onComplete()}),new u3([])}return!i&&o0.supports(c)?new o0(c):new Qh(c)},d3=e=>!!(e&&typeof e=="object"&&e.mix&&e.toValue),f3=e=>tf(e)?e[e.length-1]||0:e;function ep(e,t){e.indexOf(t)===-1&&e.push(t)}function tp(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}class np{constructor(){this.subscriptions=[]}add(t){return ep(this.subscriptions,t),()=>tp(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 p3{constructor(t,n={}){this.version="11.15.0",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(r,o=!0)=>{const i=cn.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=cn.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=h3(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 np);const r=this.events[t].add(n);return t==="change"?()=>{r(),le.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=cn.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>i0)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,i0);return db(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 xs(e,t){return new p3(e,t)}function m3(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,xs(n))}function g3(e,t){const n=Su(e,t);let{transitionEnd:r={},transition:o={},...i}=n||{};i={...i,...r};for(const s in i){const a=f3(i[s]);m3(e,s,a)}}const rp=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),y3="framerAppearId",xb="data-"+rp(y3);function wb(e){return e.props[xb]}const Ke=e=>!!(e&&e.getVelocity);function v3(e){return!!(Ke(e)&&e.add)}function ff(e,t){const n=e.getValue("willChange");if(v3(n))return n.add(t)}function S3({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function kb(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 f=e.getValue(d,(i=e.latestValues[d])!==null&&i!==void 0?i:null),y=l[d];if(y===void 0||c&&S3(c,d))continue;const v={delay:n,...Bh(s||{},d)};let S=!1;if(window.MotionHandoffAnimation){const p=wb(e);if(p){const h=window.MotionHandoffAnimation(p,d,le);h!==null&&(v.startTime=h,S=!0)}}ff(e,d),f.start(Jh(d,f,y,e.shouldReduceMotion&&Vr.has(d)?{type:!1}:v,e,S));const _=f.animation;_&&u.push(_)}return a&&Promise.all(u).then(()=>{le.update(()=>{a&&g3(e,a)})}),u}function hf(e,t,n={}){var r;const o=Su(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(kb(e,o,n)):()=>Promise.resolve(),a=e.variantChildren&&e.variantChildren.size?(u=0)=>{const{delayChildren:c=0,staggerChildren:d,staggerDirection:f}=i;return b3(e,t,c+u,d,f,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 b3(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(x3).forEach((u,c)=>{u.notify("AnimationStart",t),s.push(hf(u,t,{...i,delay:n+l(c)}).then(()=>u.notify("AnimationComplete",t)))}),Promise.all(s)}function x3(e,t){return e.sortNodePosition(t)}function w3(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const o=t.map(i=>hf(e,i,n));r=Promise.all(o)}else if(typeof t=="string")r=hf(e,t,n);else{const o=typeof t=="function"?Su(e,t,n.custom):t;r=Promise.all(kb(e,o,n))}return r.then(()=>{e.notify("AnimationComplete",t)})}const k3=Fh.length;function Cb(e){if(!e)return;if(!e.isControllingVariants){const n=e.parent?Cb(e.parent)||{}:{};return e.props.initial!==void 0&&(n.initial=e.props.initial),n}const t={};for(let n=0;nPromise.all(t.map(({animation:n,options:r})=>w3(e,n,r)))}function P3(e){let t=_3(e),n=s0(),r=!0;const o=l=>(u,c)=>{var d;const f=Su(e,c,l==="exit"?(d=e.presenceContext)===null||d===void 0?void 0:d.custom:void 0);if(f){const{transition:y,transitionEnd:v,...S}=f;u={...u,...S,...v}}return u};function i(l){t=l(e)}function s(l){const{props:u}=e,c=Cb(e.parent)||{},d=[],f=new Set;let y={},v=1/0;for(let _=0;_v&&b,D=!1;const M=Array.isArray(m)?m:[m];let O=M.reduce(o(p),{});T===!1&&(O={});const{prevResolvedValues:he={}}=h,xt={...he,...O},Ht=xe=>{A=!0,f.has(xe)&&(D=!0,f.delete(xe)),h.needsAnimating[xe]=!0;const z=e.getValue(xe);z&&(z.liveStyle=!1)};for(const xe in xt){const z=O[xe],V=he[xe];if(y.hasOwnProperty(xe))continue;let N=!1;tf(z)&&tf(V)?N=!jS(z,V):N=z!==V,N?z!=null?Ht(xe):f.add(xe):z!==void 0&&f.has(xe)?Ht(xe):h.protectedKeys[xe]=!0}h.prevProp=m,h.prevResolvedValues=O,h.isActive&&(y={...y,...O}),r&&e.blockInitialAnimation&&(A=!1),A&&(!(E&&k)||D)&&d.push(...M.map(xe=>({animation:xe,options:{type:p}})))}if(f.size){const _={};f.forEach(p=>{const h=e.getBaseTarget(p),m=e.getValue(p);m&&(m.liveStyle=!0),_[p]=h??null}),d.push({animation:_})}let S=!!d.length;return r&&(u.initial===!1||u.initial===u.animate)&&!e.manuallyAnimateOnMount&&(S=!1),r=!1,S?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(f=>{var y;return(y=f.animationState)===null||y===void 0?void 0:y.setActive(l,u)}),n[l].isActive=u;const d=s(l);for(const f in n)n[f].protectedKeys={};return d}return{animateChanges:s,setActive:a,setAnimateFunction:i,getState:()=>n,reset:()=>{n=s0(),r=!0}}}function E3(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!jS(t,e):!1}function mr(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function s0(){return{animate:mr(!0),whileInView:mr(),whileHover:mr(),whileTap:mr(),whileDrag:mr(),whileFocus:mr(),exit:mr()}}class ur{constructor(t){this.isMounted=!1,this.node=t}update(){}}class $3 extends ur{constructor(t){super(t),t.animationState||(t.animationState=P3(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();vu(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 A3=0;class R3 extends ur{constructor(){super(...arguments),this.id=A3++}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 M3={animation:{Feature:$3},exit:{Feature:R3}},jt={x:!1,y:!1};function Tb(){return jt.x||jt.y}function z3(e,t,n){var r;if(e instanceof Element)return[e];if(typeof e=="string"){let o=document;const i=(r=void 0)!==null&&r!==void 0?r:o.querySelectorAll(e);return i?Array.from(i):[]}return Array.from(e)}function _b(e,t){const n=z3(e),r=new AbortController,o={passive:!0,...t,signal:r.signal};return[n,o,()=>r.abort()]}function a0(e){return t=>{t.pointerType==="touch"||Tb()||e(t)}}function D3(e,t,n={}){const[r,o,i]=_b(e,n),s=a0(a=>{const{target:l}=a,u=t(a);if(!u||!l)return;const c=a0(d=>{u(d),l.removeEventListener("pointerleave",c)});l.addEventListener("pointerleave",c,o)});return r.forEach(a=>{a.addEventListener("pointerenter",s,o)}),i}const op=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1,_i=new WeakSet;function l0(e){return t=>{t.key==="Enter"&&e(t)}}function Dc(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}const I3=(e,t)=>{const n=e.currentTarget;if(!n)return;const r=l0(()=>{if(_i.has(n))return;Dc(n,"down");const o=l0(()=>{Dc(n,"up")}),i=()=>Dc(n,"cancel");n.addEventListener("keyup",o,t),n.addEventListener("blur",i,t)});n.addEventListener("keydown",r,t),n.addEventListener("blur",()=>n.removeEventListener("keydown",r),t)},L3=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function j3(e){return L3.has(e.tagName)||e.tabIndex!==-1}const Pb=(e,t)=>t?e===t?!0:Pb(e,t.parentElement):!1;function u0(e){return op(e)&&!Tb()}function F3(e,t,n={}){const[r,o,i]=_b(e,n),s=a=>{const l=a.currentTarget;if(!u0(a)||_i.has(l))return;_i.add(l);const u=t(a),c=(y,v)=>{window.removeEventListener("pointerup",d),window.removeEventListener("pointercancel",f),!(!u0(y)||!_i.has(l))&&(_i.delete(l),u&&u(y,{success:v}))},d=y=>{c(y,n.useGlobalTarget||Pb(l,y.target))},f=y=>{c(y,!1)};window.addEventListener("pointerup",d,o),window.addEventListener("pointercancel",f,o)};return r.forEach(a=>{j3(a)||(a.tabIndex=0),(n.useGlobalTarget?window:a).addEventListener("pointerdown",s,o),a.addEventListener("focus",u=>I3(u,o),o)}),i}function B3(e){return e==="x"||e==="y"?jt[e]?null:(jt[e]=!0,()=>{jt[e]=!1}):jt.x||jt.y?null:(jt.x=jt.y=!0,()=>{jt.x=jt.y=!1})}function Ds(e){return{point:{x:e.pageX,y:e.pageY}}}const V3=e=>t=>op(t)&&e(t,Ds(t));function ws(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}function Ki(e,t,n,r){return ws(e,t,V3(n),r)}const c0=(e,t)=>Math.abs(e-t);function O3(e,t){const n=c0(e.x,t.x),r=c0(e.y,t.y);return Math.sqrt(n**2+r**2)}class Eb{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),f=this.startEvent!==null,y=O3(d.offset,{x:0,y:0})>=3;if(!f&&!y)return;const{point:v}=d,{timestamp:S}=je;this.history.push({...v,timestamp:S});const{onStart:_,onMove:p}=this.handlers;f||(_&&_(this.lastMoveEvent,d),this.startEvent=this.lastMoveEvent),p&&p(this.lastMoveEvent,d)},this.handlePointerMove=(d,f)=>{this.lastMoveEvent=d,this.lastMoveEventInfo=Ic(f,this.transformPagePoint),le.update(this.updatePoint,!0)},this.handlePointerUp=(d,f)=>{this.end();const{onEnd:y,onSessionEnd:v,resumeAnimation:S}=this.handlers;if(this.dragSnapToOrigin&&S&&S(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const _=Lc(d.type==="pointercancel"?this.lastMoveEventInfo:Ic(f,this.transformPagePoint),this.history);this.startEvent&&y&&y(d,_),v&&v(d,_)},!op(t))return;this.dragSnapToOrigin=i,this.handlers=n,this.transformPagePoint=r,this.contextWindow=o||window;const s=Ds(t),a=Ic(s,this.transformPagePoint),{point:l}=a,{timestamp:u}=je;this.history=[{...l,timestamp:u}];const{onSessionStart:c}=n;c&&c(t,Lc(a,this.history)),this.removeListeners=zs(Ki(this.contextWindow,"pointermove",this.handlePointerMove),Ki(this.contextWindow,"pointerup",this.handlePointerUp),Ki(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),or(this.updatePoint)}}function Ic(e,t){return t?{point:t(e.point)}:e}function d0(e,t){return{x:e.x-t.x,y:e.y-t.y}}function Lc({point:e},t){return{point:e,delta:d0(e,$b(t)),offset:d0(e,N3(t)),velocity:W3(t,.1)}}function N3(e){return e[0]}function $b(e){return e[e.length-1]}function W3(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const o=$b(e);for(;n>=0&&(r=e[n],!(o.timestamp-r.timestamp>kn(t)));)n--;if(!r)return{x:0,y:0};const i=Cn(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 ho(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}const Ab=1e-4,U3=1-Ab,H3=1+Ab,Rb=.01,K3=0-Rb,G3=0+Rb;function yt(e){return e.max-e.min}function X3(e,t,n){return Math.abs(e-t)<=n}function f0(e,t,n,r=.5){e.origin=r,e.originPoint=ge(t.min,t.max,e.origin),e.scale=yt(n)/yt(t),e.translate=ge(n.min,n.max,e.origin)-e.originPoint,(e.scale>=U3&&e.scale<=H3||isNaN(e.scale))&&(e.scale=1),(e.translate>=K3&&e.translate<=G3||isNaN(e.translate))&&(e.translate=0)}function Gi(e,t,n,r){f0(e.x,t.x,n.x,r?r.originX:void 0),f0(e.y,t.y,n.y,r?r.originY:void 0)}function h0(e,t,n){e.min=n.min+t.min,e.max=e.min+yt(t)}function Y3(e,t,n){h0(e.x,t.x,n.x),h0(e.y,t.y,n.y)}function p0(e,t,n){e.min=t.min-n.min,e.max=e.min+yt(t)}function Xi(e,t,n){p0(e.x,t.x,n.x),p0(e.y,t.y,n.y)}function q3(e,{min:t,max:n},r){return t!==void 0&&en&&(e=r?ge(n,e,r.max):Math.min(e,n)),e}function m0(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 Q3(e,{top:t,left:n,bottom:r,right:o}){return{x:m0(e.x,n,o),y:m0(e.y,t,r)}}function g0(e,t){let n=t.min-e.min,r=t.max-e.max;return t.max-t.minr?n=Oo(t.min,t.max-r,e.min):r>o&&(n=Oo(e.min,e.max-o,t.min)),Rn(0,1,n)}function e4(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 pf=.35;function t4(e=pf){return e===!1?e=0:e===!0&&(e=pf),{x:y0(e,"left","right"),y:y0(e,"top","bottom")}}function y0(e,t,n){return{min:v0(e,t),max:v0(e,n)}}function v0(e,t){return typeof e=="number"?e:e[t]||0}const S0=()=>({translate:0,scale:1,origin:0,originPoint:0}),po=()=>({x:S0(),y:S0()}),b0=()=>({min:0,max:0}),we=()=>({x:b0(),y:b0()});function Tt(e){return[e("x"),e("y")]}function Mb({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function n4({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function r4(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 jc(e){return e===void 0||e===1}function mf({scale:e,scaleX:t,scaleY:n}){return!jc(e)||!jc(t)||!jc(n)}function vr(e){return mf(e)||zb(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function zb(e){return x0(e.x)||x0(e.y)}function x0(e){return e&&e!=="0%"}function Ml(e,t,n){const r=e-n,o=t*r;return n+o}function w0(e,t,n,r,o){return o!==void 0&&(e=Ml(e,o,r)),Ml(e,n,r)+t}function gf(e,t=0,n=1,r,o){e.min=w0(e.min,t,n,r,o),e.max=w0(e.max,t,n,r,o)}function Db(e,{x:t,y:n}){gf(e.x,t.translate,t.scale,t.originPoint),gf(e.y,n.translate,n.scale,n.originPoint)}const k0=.999999999999,C0=1.0000000000001;function o4(e,t,n,r=!1){const o=n.length;if(!o)return;t.x=t.y=1;let i,s;for(let a=0;ak0&&(t.x=1),t.yk0&&(t.y=1)}function mo(e,t){e.min=e.min+t,e.max=e.max+t}function T0(e,t,n,r,o=.5){const i=ge(e.min,e.max,o);gf(e,t,n,i,r)}function go(e,t){T0(e.x,t.x,t.scaleX,t.scale,t.originX),T0(e.y,t.y,t.scaleY,t.scale,t.originY)}function Ib(e,t){return Mb(r4(e.getBoundingClientRect(),t))}function i4(e,t,n){const r=Ib(e,n),{scroll:o}=t;return o&&(mo(r.x,o.offset.x),mo(r.y,o.offset.y)),r}const Lb=({current:e})=>e?e.ownerDocument.defaultView:null,s4=new WeakMap;class a4{constructor(t){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=we(),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(Ds(c).point)},i=(c,d)=>{const{drag:f,dragPropagation:y,onDragStart:v}=this.getProps();if(f&&!y&&(this.openDragLock&&this.openDragLock(),this.openDragLock=B3(f),!this.openDragLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),Tt(_=>{let p=this.getAxisMotionValue(_).get()||0;if(un.test(p)){const{projection:h}=this.visualElement;if(h&&h.layout){const m=h.layout.layoutBox[_];m&&(p=yt(m)*(parseFloat(p)/100))}}this.originPoint[_]=p}),v&&le.postRender(()=>v(c,d)),ff(this.visualElement,"transform");const{animationState:S}=this.visualElement;S&&S.setActive("whileDrag",!0)},s=(c,d)=>{const{dragPropagation:f,dragDirectionLock:y,onDirectionLock:v,onDrag:S}=this.getProps();if(!f&&!this.openDragLock)return;const{offset:_}=d;if(y&&this.currentDirection===null){this.currentDirection=l4(_),this.currentDirection!==null&&v&&v(this.currentDirection);return}this.updateAxis("x",d.point,_),this.updateAxis("y",d.point,_),this.visualElement.render(),S&&S(c,d)},a=(c,d)=>this.stop(c,d),l=()=>Tt(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 Eb(t,{onSessionStart:o,onStart:i,onMove:s,onSessionEnd:a,resumeAnimation:l},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:u,contextWindow:Lb(this.visualElement)})}stop(t,n){const r=this.isDragging;if(this.cancel(),!r)return;const{velocity:o}=n;this.startAnimation(o);const{onDragEnd:i}=this.getProps();i&&le.postRender(()=>i(t,n))}cancel(){this.isDragging=!1;const{projection:t,animationState:n}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:r}=this.getProps();!r&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),n&&n.setActive("whileDrag",!1)}updateAxis(t,n,r){const{drag:o}=this.getProps();if(!r||!xa(t,o,this.currentDirection))return;const i=this.getAxisMotionValue(t);let s=this.originPoint[t]+r[t];this.constraints&&this.constraints[t]&&(s=q3(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&&ho(n)?this.constraints||(this.constraints=this.resolveRefConstraints()):n&&o?this.constraints=Q3(o.layoutBox,n):this.constraints=!1,this.elastic=t4(r),i!==this.constraints&&o&&this.constraints&&!this.hasMutatedConstraints&&Tt(s=>{this.constraints!==!1&&this.getAxisMotionValue(s)&&(this.constraints[s]=e4(o.layoutBox[s],this.constraints[s]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!ho(t))return!1;const r=t.current,{projection:o}=this.visualElement;if(!o||!o.layout)return!1;const i=i4(r,o.root,this.visualElement.getTransformPagePoint());let s=Z3(o.layout.layoutBox,i);if(n){const a=n(n4(s));this.hasMutatedConstraints=!!a,a&&(s=Mb(a))}return s}startAnimation(t){const{drag:n,dragMomentum:r,dragElastic:o,dragTransition:i,dragSnapToOrigin:s,onDragTransitionEnd:a}=this.getProps(),l=this.constraints||{},u=Tt(c=>{if(!xa(c,n,this.currentDirection))return;let d=l&&l[c]||{};s&&(d={min:0,max:0});const f=o?200:1e6,y=o?40:1e7,v={type:"inertia",velocity:r?t[c]:0,bounceStiffness:f,bounceDamping:y,timeConstant:750,restDelta:1,restSpeed:10,...i,...d};return this.startAxisValueAnimation(c,v)});return Promise.all(u).then(a)}startAxisValueAnimation(t,n){const r=this.getAxisMotionValue(t);return ff(this.visualElement,t),r.start(Jh(t,r,0,n,this.visualElement,!1))}stopAnimation(){Tt(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){Tt(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){Tt(n=>{const{drag:r}=this.getProps();if(!xa(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]-ge(s,a,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!ho(n)||!r||!this.constraints)return;this.stopAnimation();const o={x:0,y:0};Tt(s=>{const a=this.getAxisMotionValue(s);if(a&&this.constraints!==!1){const l=a.get();o[s]=J3({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(),Tt(s=>{if(!xa(s,t,null))return;const a=this.getAxisMotionValue(s),{min:l,max:u}=this.constraints[s];a.set(ge(l,u,o[s]))})}addListeners(){if(!this.visualElement.current)return;s4.set(this.visualElement,this);const t=this.visualElement.current,n=Ki(t,"pointerdown",l=>{const{drag:u,dragListener:c=!0}=this.getProps();u&&c&&this.start(l)}),r=()=>{const{dragConstraints:l}=this.getProps();ho(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()),le.read(r);const s=ws(window,"resize",()=>this.scalePositionWithinConstraints()),a=o.addEventListener("didUpdate",({delta:l,hasLayoutChanged:u})=>{this.isDragging&&u&&(Tt(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=pf,dragMomentum:a=!0}=t;return{...t,drag:n,dragDirectionLock:r,dragPropagation:o,dragConstraints:i,dragElastic:s,dragMomentum:a}}}function xa(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function l4(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class u4 extends ur{constructor(t){super(t),this.removeGroupControls=mt,this.removeListeners=mt,this.controls=new a4(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||mt}unmount(){this.removeGroupControls(),this.removeListeners()}}const _0=e=>(t,n)=>{e&&le.postRender(()=>e(t,n))};class c4 extends ur{constructor(){super(...arguments),this.removePointerDownListener=mt}onPointerDown(t){this.session=new Eb(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:Lb(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:r,onPanEnd:o}=this.node.getProps();return{onSessionStart:_0(t),onStart:_0(n),onMove:r,onEnd:(i,s)=>{delete this.session,o&&le.postRender(()=>o(i,s))}}}mount(){this.removePointerDownListener=Ki(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 Is=C.createContext(null);function d4(){const e=C.useContext(Is);if(e===null)return[!0,null];const{isPresent:t,onExitComplete:n,register:r}=e,o=C.useId();C.useEffect(()=>r(o),[]);const i=C.useCallback(()=>n&&n(o),[o,n]);return!t&&n?[!1,i]:[!0]}function f4(){return h4(C.useContext(Is))}function h4(e){return e===null?!0:e.isPresent}const ip=C.createContext({}),jb=C.createContext({}),Xa={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function P0(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const mi={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(B.test(e))e=parseFloat(e);else return e;const n=P0(e,t.target.x),r=P0(e,t.target.y);return`${n}% ${r}%`}},p4={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,o=ir.parse(e);if(o.length>5)return r;const i=ir.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=ge(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 m4(e){Object.assign(zl,e)}const{schedule:sp,cancel:PL}=FS(queueMicrotask,!1);class g4 extends C.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r,layoutId:o}=this.props,{projection:i}=t;m4(y4),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()})),Xa.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()||le.postRender(()=>{const a=s.getStack();(!a||!a.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),sp.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 Fb(e){const[t,n]=d4(),r=C.useContext(ip);return P.jsx(g4,{...e,layoutGroup:r,switchLayoutGroup:C.useContext(jb),isPresent:t,safeToRemove:n})}const y4={borderRadius:{...mi,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:mi,borderTopRightRadius:mi,borderBottomLeftRadius:mi,borderBottomRightRadius:mi,boxShadow:p4},Bb=["TopLeft","TopRight","BottomLeft","BottomRight"],v4=Bb.length,E0=e=>typeof e=="string"?parseFloat(e):e,$0=e=>typeof e=="number"||B.test(e);function S4(e,t,n,r,o,i){o?(e.opacity=ge(0,n.opacity!==void 0?n.opacity:1,b4(r)),e.opacityExit=ge(t.opacity!==void 0?t.opacity:1,0,x4(r))):i&&(e.opacity=ge(t.opacity!==void 0?t.opacity:1,n.opacity!==void 0?n.opacity:1,r));for(let s=0;srt?1:n(Oo(e,t,r))}function R0(e,t){e.min=t.min,e.max=t.max}function kt(e,t){R0(e.x,t.x),R0(e.y,t.y)}function M0(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function z0(e,t,n,r,o){return e-=t,e=Ml(e,1/n,r),o!==void 0&&(e=Ml(e,1/o,r)),e}function w4(e,t=0,n=1,r=.5,o,i=e,s=e){if(un.test(t)&&(t=parseFloat(t),t=ge(s.min,s.max,t/100)-s.min),typeof t!="number")return;let a=ge(i.min,i.max,r);e===i&&(a-=t),e.min=z0(e.min,t,n,a,o),e.max=z0(e.max,t,n,a,o)}function D0(e,t,[n,r,o],i,s){w4(e,t[n],t[r],t[o],t.scale,i,s)}const k4=["x","scaleX","originX"],C4=["y","scaleY","originY"];function I0(e,t,n,r){D0(e.x,t,k4,n?n.x:void 0,r?r.x:void 0),D0(e.y,t,C4,n?n.y:void 0,r?r.y:void 0)}function L0(e){return e.translate===0&&e.scale===1}function Ob(e){return L0(e.x)&&L0(e.y)}function j0(e,t){return e.min===t.min&&e.max===t.max}function T4(e,t){return j0(e.x,t.x)&&j0(e.y,t.y)}function F0(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function Nb(e,t){return F0(e.x,t.x)&&F0(e.y,t.y)}function B0(e){return yt(e.x)/yt(e.y)}function V0(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}class _4{constructor(){this.members=[]}add(t){ep(this.members,t),t.scheduleRender()}remove(t){if(tp(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 P4(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:f,skewX:y,skewY:v}=n;u&&(r=`perspective(${u}px) ${r}`),c&&(r+=`rotate(${c}deg) `),d&&(r+=`rotateX(${d}deg) `),f&&(r+=`rotateY(${f}deg) `),y&&(r+=`skewX(${y}deg) `),v&&(r+=`skewY(${v}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 E4=(e,t)=>e.depth-t.depth;class $4{constructor(){this.children=[],this.isDirty=!1}add(t){ep(this.children,t),this.isDirty=!0}remove(t){tp(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(E4),this.isDirty=!1,this.children.forEach(t)}}function Ya(e){const t=Ke(e)?e.get():e;return d3(t)?t.toValue():t}function A4(e,t){const n=cn.now(),r=({timestamp:o})=>{const i=o-n;i>=t&&(or(r),e(i-t))};return le.read(r,!0),()=>or(r)}function R4(e){return e instanceof SVGElement&&e.tagName!=="svg"}function M4(e,t,n){const r=Ke(e)?e:xs(e);return r.start(Jh("",r,t,n)),r.animation}const Sr={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0},Pi=typeof window<"u"&&window.MotionDebug!==void 0,Fc=["","X","Y","Z"],z4={visibility:"hidden"},O0=1e3;let D4=0;function Bc(e,t,n,r){const{latestValues:o}=t;o[e]&&(n[e]=o[e],t.setStaticValue(e,0),r&&(r[e]=0))}function Wb(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const n=wb(t);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:o,layoutId:i}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",le,!(o||i))}const{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&Wb(r)}function Ub({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:o}){return class{constructor(s={},a=t==null?void 0:t()){this.id=D4++,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,Pi&&(Sr.totalNodes=Sr.resolvedTargetDeltas=Sr.recalculatedProjection=0),this.nodes.forEach(j4),this.nodes.forEach(N4),this.nodes.forEach(W4),this.nodes.forEach(F4),Pi&&window.MotionDebug.record(Sr)},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=A4(f,250),Xa.hasAnimatedSinceResize&&(Xa.hasAnimatedSinceResize=!1,this.nodes.forEach(W0))})}l&&this.root.registerSharedNode(l,this),this.options.animate!==!1&&c&&(l||u)&&this.addEventListener("didUpdate",({delta:d,hasLayoutChanged:f,hasRelativeTargetChanged:y,layout:v})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const S=this.options.transition||c.getDefaultTransition()||X4,{onLayoutAnimationStart:_,onLayoutAnimationComplete:p}=c.getProps(),h=!this.targetLayout||!Nb(this.targetLayout,v)||y,m=!f&&y;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||m||f&&(h||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(d,m);const b={...Bh(S,"layout"),onPlay:_,onComplete:p};(c.shouldReduceMotion||this.options.layoutRoot)&&(b.delay=0,b.type=!1),this.startAnimation(b)}else f||W0(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=v})}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,or(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(U4),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&&Wb(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 T=b/1e3;U0(d.x,s.x,T),U0(d.y,s.y,T),this.setTargetDelta(d),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Xi(f,this.layout.layoutBox,this.relativeParent.layout.layoutBox),K4(this.relativeTarget,this.relativeTargetOrigin,f,T),m&&T4(this.relativeTarget,m)&&(this.isProjectionDirty=!1),m||(m=we()),kt(m,this.relativeTarget)),S&&(this.animationValues=c,S4(c,u,this.latestValues,T,h,p)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=T},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&&(or(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=le.update(()=>{Xa.hasAnimatedSinceResize=!0,this.currentAnimation=M4(0,O0,{...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(O0),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&&Hb(this.options.animationType,this.layout.layoutBox,u.layoutBox)){l=this.target||we();const d=yt(this.layout.layoutBox.x);l.x.min=s.target.x.min,l.x.max=l.x.min+d;const f=yt(this.layout.layoutBox.y);l.y.min=s.target.y.min,l.y.max=l.y.min+f}kt(a,l),go(a,c),Gi(this.projectionDeltaWithTransform,this.layoutCorrected,a,c)}}registerSharedNode(s,a){this.sharedNodes.has(s)||this.sharedNodes.set(s,new _4),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&&Bc("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(N0),this.root.sharedNodes.clear()}}}function I4(e){e.updateLayout()}function L4(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"?Tt(d=>{const f=s?n.measuredBox[d]:n.layoutBox[d],y=yt(f);f.min=r[d].min,f.max=f.min+y}):Hb(i,n.layoutBox,r)&&Tt(d=>{const f=s?n.measuredBox[d]:n.layoutBox[d],y=yt(r[d]);f.max=f.min+y,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[d].max=e.relativeTarget[d].min+y)});const a=po();Gi(a,r,n.layoutBox);const l=po();s?Gi(l,e.applyTransform(o,!0),n.measuredBox):Gi(l,r,n.layoutBox);const u=!Ob(a);let c=!1;if(!e.resumeFrom){const d=e.getClosestProjectingParent();if(d&&!d.resumeFrom){const{snapshot:f,layout:y}=d;if(f&&y){const v=we();Xi(v,n.layoutBox,f.layoutBox);const S=we();Xi(S,r,y.layoutBox),Nb(v,S)||(c=!0),d.options.layoutRoot&&(e.relativeTarget=S,e.relativeTargetOrigin=v,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 j4(e){Pi&&Sr.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 F4(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function B4(e){e.clearSnapshot()}function N0(e){e.clearMeasurements()}function V4(e){e.isLayoutDirty=!1}function O4(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function W0(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function N4(e){e.resolveTargetDelta()}function W4(e){e.calcProjection()}function U4(e){e.resetSkewAndRotation()}function H4(e){e.removeLeadSnapshot()}function U0(e,t,n){e.translate=ge(t.translate,0,n),e.scale=ge(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function H0(e,t,n,r){e.min=ge(t.min,n.min,r),e.max=ge(t.max,n.max,r)}function K4(e,t,n,r){H0(e.x,t.x,n.x,r),H0(e.y,t.y,n.y,r)}function G4(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const X4={duration:.45,ease:[.4,0,.1,1]},K0=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),G0=K0("applewebkit/")&&!K0("chrome/")?Math.round:mt;function X0(e){e.min=G0(e.min),e.max=G0(e.max)}function Y4(e){X0(e.x),X0(e.y)}function Hb(e,t,n){return e==="position"||e==="preserve-aspect"&&!X3(B0(t),B0(n),.2)}function q4(e){var t;return e!==e.root&&((t=e.scroll)===null||t===void 0?void 0:t.wasRoot)}const Q4=Ub({attachResizeListener:(e,t)=>ws(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),Vc={current:void 0},Kb=Ub({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!Vc.current){const e=new Q4({});e.mount(window),e.setOptions({layoutScroll:!0}),Vc.current=e}return Vc.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),Z4={pan:{Feature:c4},drag:{Feature:u4,ProjectionNode:Kb,MeasureLayout:Fb}};function Y0(e,t,n){const{props:r}=e;e.animationState&&r.whileHover&&e.animationState.setActive("whileHover",n==="Start");const o="onHover"+n,i=r[o];i&&le.postRender(()=>i(t,Ds(t)))}class J4 extends ur{mount(){const{current:t}=this.node;t&&(this.unmount=D3(t,n=>(Y0(this.node,n,"Start"),r=>Y0(this.node,r,"End"))))}unmount(){}}class eD extends ur{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=zs(ws(this.node.current,"focus",()=>this.onFocus()),ws(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function q0(e,t,n){const{props:r}=e;e.animationState&&r.whileTap&&e.animationState.setActive("whileTap",n==="Start");const o="onTap"+(n==="End"?"":n),i=r[o];i&&le.postRender(()=>i(t,Ds(t)))}class tD extends ur{mount(){const{current:t}=this.node;t&&(this.unmount=F3(t,n=>(q0(this.node,n,"Start"),(r,{success:o})=>q0(this.node,r,o?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const yf=new WeakMap,Oc=new WeakMap,nD=e=>{const t=yf.get(e.target);t&&t(e)},rD=e=>{e.forEach(nD)};function oD({root:e,...t}){const n=e||document;Oc.has(n)||Oc.set(n,{});const r=Oc.get(n),o=JSON.stringify(t);return r[o]||(r[o]=new IntersectionObserver(rD,{root:e,...t})),r[o]}function iD(e,t,n){const r=oD(t);return yf.set(e,n),r.observe(e),()=>{yf.delete(e),r.unobserve(e)}}const sD={some:0,all:1};class aD extends ur{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:sD[o]},a=l=>{const{isIntersecting:u}=l;if(this.isInView===u||(this.isInView=u,i&&!u&&this.hasEnteredView))return;u&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",u);const{onViewportEnter:c,onViewportLeave:d}=this.node.getProps(),f=u?c:d;f&&f(l)};return iD(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(lD(t,n))&&this.startObserver()}unmount(){}}function lD({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const uD={inView:{Feature:aD},tap:{Feature:tD},focus:{Feature:eD},hover:{Feature:J4}},cD={layout:{ProjectionNode:Kb,MeasureLayout:Fb}},ap=C.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"}),xu=C.createContext({}),lp=typeof window<"u",Gb=lp?C.useLayoutEffect:C.useEffect,Xb=C.createContext({strict:!1});function dD(e,t,n,r,o){var i,s;const{visualElement:a}=C.useContext(xu),l=C.useContext(Xb),u=C.useContext(Is),c=C.useContext(ap).reducedMotion,d=C.useRef(null);r=r||l.renderer,!d.current&&r&&(d.current=r(e,{visualState:t,parent:a,props:n,presenceContext:u,blockInitialAnimation:u?u.initial===!1:!1,reducedMotionConfig:c}));const f=d.current,y=C.useContext(jb);f&&!f.projection&&o&&(f.type==="html"||f.type==="svg")&&fD(d.current,n,o,y);const v=C.useRef(!1);C.useInsertionEffect(()=>{f&&v.current&&f.update(n,u)});const S=n[xb],_=C.useRef(!!S&&!(!((i=window.MotionHandoffIsComplete)===null||i===void 0)&&i.call(window,S))&&((s=window.MotionHasOptimisedAnimation)===null||s===void 0?void 0:s.call(window,S)));return Gb(()=>{f&&(v.current=!0,window.MotionIsMounted=!0,f.updateFeatures(),sp.render(f.render),_.current&&f.animationState&&f.animationState.animateChanges())}),C.useEffect(()=>{f&&(!_.current&&f.animationState&&f.animationState.animateChanges(),_.current&&(queueMicrotask(()=>{var p;(p=window.MotionHandoffMarkAsComplete)===null||p===void 0||p.call(window,S)}),_.current=!1))}),f}function fD(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:Yb(e.parent)),e.projection.setOptions({layoutId:o,layout:i,alwaysMeasureLayout:!!s||a&&ho(a),visualElement:e,animationType:typeof i=="string"?i:"both",initialPromotionConfig:r,layoutScroll:l,layoutRoot:u})}function Yb(e){if(e)return e.options.allowProjection!==!1?e.projection:Yb(e.parent)}function hD(e,t,n){return C.useCallback(r=>{r&&e.mount&&e.mount(r),t&&(r?t.mount(r):t.unmount()),n&&(typeof n=="function"?n(r):ho(n)&&(n.current=r))},[t])}function wu(e){return vu(e.animate)||Fh.some(t=>vs(e[t]))}function qb(e){return!!(wu(e)||e.variants)}function pD(e,t){if(wu(e)){const{initial:n,animate:r}=e;return{initial:n===!1||vs(n)?n:void 0,animate:vs(r)?r:void 0}}return e.inherit!==!1?t:{}}function mD(e){const{initial:t,animate:n}=pD(e,C.useContext(xu));return C.useMemo(()=>({initial:t,animate:n}),[Q0(t),Q0(n)])}function Q0(e){return Array.isArray(e)?e.join(" "):e}const Z0={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"]},No={};for(const e in Z0)No[e]={isEnabled:t=>Z0[e].some(n=>!!t[n])};function gD(e){for(const t in e)No[t]={...No[t],...e[t]}}const yD=Symbol.for("motionComponentSymbol");function vD({preloadedFeatures:e,createVisualElement:t,useRender:n,useVisualState:r,Component:o}){e&&gD(e);function i(a,l){let u;const c={...C.useContext(ap),...a,layoutId:SD(a)},{isStatic:d}=c,f=mD(a),y=r(a,d);if(!d&&lp){bD();const v=xD(c);u=v.MeasureLayout,f.visualElement=dD(o,y,c,t,v.ProjectionNode)}return P.jsxs(xu.Provider,{value:f,children:[u&&f.visualElement?P.jsx(u,{visualElement:f.visualElement,...c}):null,n(o,a,hD(y,f.visualElement,l),y,d,f.visualElement)]})}const s=C.forwardRef(i);return s[yD]=o,s}function SD({layoutId:e}){const t=C.useContext(ip).id;return t&&e!==void 0?t+"-"+e:e}function bD(e,t){C.useContext(Xb).strict}function xD(e){const{drag:t,layout:n}=No;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 wD=["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 up(e){return typeof e!="string"||e.includes("-")?!1:!!(wD.indexOf(e)>-1||/[A-Z]/u.test(e))}function Qb(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 Zb=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 Jb(e,t,n,r){Qb(e,t,void 0,r);for(const o in t.attrs)e.setAttribute(Zb.has(o)?o:rp(o),t.attrs[o])}function ex(e,{layout:t,layoutId:n}){return Vr.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!zl[e]||e==="opacity")}function cp(e,t,n){var r;const{style:o}=e,i={};for(const s in o)(Ke(o[s])||t.style&&Ke(t.style[s])||ex(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 i}function tx(e,t,n){const r=cp(e,t,n);for(const o in e)if(Ke(e[o])||Ke(t[o])){const i=As.indexOf(o)!==-1?"attr"+o.charAt(0).toUpperCase()+o.substring(1):o;r[i]=e[o]}return r}function dp(e){const t=C.useRef(null);return t.current===null&&(t.current=e()),t.current}function kD({scrapeMotionValuesFromProps:e,createRenderState:t,onMount:n},r,o,i){const s={latestValues:CD(r,o,i,e),renderState:t()};return n&&(s.mount=a=>n(r,a,s)),s}const nx=e=>(t,n)=>{const r=C.useContext(xu),o=C.useContext(Is),i=()=>kD(e,t,r,o);return n?i():dp(i)};function CD(e,t,n,r){const o={},i=r(e,{});for(const f in i)o[f]=Ya(i[f]);let{initial:s,animate:a}=e;const l=wu(e),u=qb(e);t&&u&&!l&&e.inherit!==!1&&(s===void 0&&(s=t.initial),a===void 0&&(a=t.animate));let c=n?n.initial===!1:!1;c=c||s===!1;const d=c?a:s;if(d&&typeof d!="boolean"&&!vu(d)){const f=Array.isArray(d)?d:[d];for(let y=0;y({style:{},transform:{},transformOrigin:{},vars:{}}),rx=()=>({...fp(),attrs:{}}),ox=(e,t)=>t&&typeof e=="number"?t.transform(e):e,TD={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},_D=As.length;function PD(e,t,n){let r="",o=!0;for(let i=0;i<_D;i++){const s=As[i],a=e[s];if(a===void 0)continue;let l=!0;if(typeof a=="number"?l=a===(s.startsWith("scale")?1:0):l=parseFloat(a)===0,!l||n){const u=ox(a,Kh[s]);if(!l){o=!1;const c=TD[s]||s;r+=`${c}(${u}) `}n&&(t[s]=u)}}return r=r.trim(),n?r=n(t,o?"":r):o&&(r="none"),r}function hp(e,t,n){const{style:r,vars:o,transformOrigin:i}=e;let s=!1,a=!1;for(const l in t){const u=t[l];if(Vr.has(l)){s=!0;continue}else if(qS(l)){o[l]=u;continue}else{const c=ox(u,Kh[l]);l.startsWith("origin")?(a=!0,i[l]=c):r[l]=c}}if(t.transform||(s||n?r.transform=PD(t,e.transform,n):r.transform&&(r.transform="none")),a){const{originX:l="50%",originY:u="50%",originZ:c=0}=i;r.transformOrigin=`${l} ${u} ${c}`}}function J0(e,t,n){return typeof e=="string"?e:B.transform(t+n*e)}function ED(e,t,n){const r=J0(t,e.x,e.width),o=J0(n,e.y,e.height);return`${r} ${o}`}const $D={offset:"stroke-dashoffset",array:"stroke-dasharray"},AD={offset:"strokeDashoffset",array:"strokeDasharray"};function RD(e,t,n=1,r=0,o=!0){e.pathLength=1;const i=o?$D:AD;e[i.offset]=B.transform(-r);const s=B.transform(t),a=B.transform(n);e[i.array]=`${s} ${a}`}function pp(e,{attrX:t,attrY:n,attrScale:r,originX:o,originY:i,pathLength:s,pathSpacing:a=1,pathOffset:l=0,...u},c,d){if(hp(e,u,d),c){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:f,style:y,dimensions:v}=e;f.transform&&(v&&(y.transform=f.transform),delete f.transform),v&&(o!==void 0||i!==void 0||y.transform)&&(y.transformOrigin=ED(v,o!==void 0?o:.5,i!==void 0?i:.5)),t!==void 0&&(f.x=t),n!==void 0&&(f.y=n),r!==void 0&&(f.scale=r),s!==void 0&&RD(f,s,a,l,!1)}const mp=e=>typeof e=="string"&&e.toLowerCase()==="svg",MD={useVisualState:nx({scrapeMotionValuesFromProps:tx,createRenderState:rx,onMount:(e,t,{renderState:n,latestValues:r})=>{le.read(()=>{try{n.dimensions=typeof t.getBBox=="function"?t.getBBox():t.getBoundingClientRect()}catch{n.dimensions={x:0,y:0,width:0,height:0}}}),le.render(()=>{pp(n,r,mp(t.tagName),e.transformTemplate),Jb(t,n)})}})},zD={useVisualState:nx({scrapeMotionValuesFromProps:cp,createRenderState:fp})};function ix(e,t,n){for(const r in t)!Ke(t[r])&&!ex(r,n)&&(e[r]=t[r])}function DD({transformTemplate:e},t){return C.useMemo(()=>{const n=fp();return hp(n,t,e),Object.assign({},n.vars,n.style)},[t])}function ID(e,t){const n=e.style||{},r={};return ix(r,n,e),Object.assign(r,DD(e,t)),r}function LD(e,t){const n={},r=ID(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 jD=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 Dl(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||jD.has(e)}let sx=e=>!Dl(e);function FD(e){e&&(sx=t=>t.startsWith("on")?!Dl(t):e(t))}try{FD(require("@emotion/is-prop-valid").default)}catch{}function BD(e,t,n){const r={};for(const o in e)o==="values"&&typeof e.values=="object"||(sx(o)||n===!0&&Dl(o)||!t&&!Dl(o)||e.draggable&&o.startsWith("onDrag"))&&(r[o]=e[o]);return r}function VD(e,t,n,r){const o=C.useMemo(()=>{const i=rx();return pp(i,t,mp(r),e.transformTemplate),{...i.attrs,style:{...i.style}}},[t]);if(e.style){const i={};ix(i,e.style,e),o.style={...i,...o.style}}return o}function OD(e=!1){return(n,r,o,{latestValues:i},s)=>{const l=(up(n)?VD:LD)(r,i,s,n),u=BD(r,typeof n=="string",e),c=n!==C.Fragment?{...u,...l,ref:o}:{},{children:d}=r,f=C.useMemo(()=>Ke(d)?d.get():d,[d]);return C.createElement(n,{...c,children:f})}}function ND(e,t){return function(r,{forwardMotionProps:o}={forwardMotionProps:!1}){const s={...up(r)?MD:zD,preloadedFeatures:e,useRender:OD(o),createVisualElement:t,Component:r};return vD(s)}}const vf={current:null},ax={current:!1};function WD(){if(ax.current=!0,!!lp)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>vf.current=e.matches;e.addListener(t),t()}else vf.current=!1}function UD(e,t,n){for(const r in t){const o=t[r],i=n[r];if(Ke(o))e.addValue(r,o);else if(Ke(i))e.addValue(r,xs(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,xs(s!==void 0?s:o,{owner:e}))}}for(const r in n)t[r]===void 0&&e.removeValue(r);return t}const ey=new WeakMap,HD=[...JS,Ue,ir],KD=e=>HD.find(ZS(e)),ty=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class GD{scrapeMotionValuesFromProps(t,n,r){return{}}constructor({parent:t,props:n,presenceContext:r,reducedMotionConfig:o,blockInitialAnimation:i,visualState:s},a={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=Wh,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const f=cn.now();this.renderScheduledAtthis.bindToMotionValue(r,n)),ax.current||WD(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:vf.current,this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){ey.delete(this.current),this.projection&&this.projection.unmount(),or(this.notifyUpdate),or(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=Vr.has(t),o=n.on("change",a=>{this.latestValues[t]=a,this.props.onUpdate&&le.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 No){const n=No[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):we()}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=xs(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"&&(XS(o)||GS(o))?o=parseFloat(o):!KD(o)&&ir.test(n)&&(o=ab(t,n)),this.setBaseTarget(t,Ke(o)?o.get():o)),Ke(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=Lh(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&&!Ke(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 np),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}}class lx extends GD{constructor(){super(...arguments),this.KeyframeResolver=lb}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]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;Ke(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}function XD(e){return window.getComputedStyle(e)}class YD extends lx{constructor(){super(...arguments),this.type="html",this.renderInstance=Qb}readValueFromInstance(t,n){if(Vr.has(n)){const r=Gh(n);return r&&r.default||0}else{const r=XD(t),o=(qS(n)?r.getPropertyValue(n):r[n])||0;return typeof o=="string"?o.trim():o}}measureInstanceViewportBox(t,{transformPagePoint:n}){return Ib(t,n)}build(t,n,r){hp(t,n,r.transformTemplate)}scrapeMotionValuesFromProps(t,n,r){return cp(t,n,r)}}class qD extends lx{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=we}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(Vr.has(n)){const r=Gh(n);return r&&r.default||0}return n=Zb.has(n)?n:rp(n),t.getAttribute(n)}scrapeMotionValuesFromProps(t,n,r){return tx(t,n,r)}build(t,n,r){pp(t,n,this.isSVGTag,r.transformTemplate)}renderInstance(t,n,r,o){Jb(t,n,r,o)}mount(t){this.isSVGTag=mp(t.tagName),super.mount(t)}}const QD=(e,t)=>up(e)?new qD(t):new YD(t,{allowProjection:e!==C.Fragment}),ZD=ND({...M3,...uD,...Z4,...cD},QD),ux=AM(ZD);class JD extends C.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 eI({children:e,isPresent:t}){const n=C.useId(),r=C.useRef(null),o=C.useRef({width:0,height:0,top:0,left:0}),{nonce:i}=C.useContext(ap);return C.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; @@ -345,6 +345,6 @@ Error generating stack: `+i.message+` top: ${l}px !important; left: ${u}px !important; } - `),()=>{document.head.removeChild(c)}},[t]),P.jsx(HD,{isPresent:t,childRef:r,sizeRef:o,children:T.cloneElement(e,{ref:r})})}const GD=({children:e,initial:t,isPresent:n,onExitComplete:r,custom:o,presenceAffectsLayout:i,mode:s})=>{const a=ap(YD),l=T.useId(),u=T.useCallback(d=>{a.set(d,!0);for(const f of a.values())if(!f)return;r&&r()},[a,r]),c=T.useMemo(()=>({id:l,initial:t,isPresent:n,custom:o,onExitComplete:u,register:d=>(a.set(d,!1),()=>a.delete(d))}),i?[Math.random(),u]:[n,u]);return T.useMemo(()=>{a.forEach((d,f)=>a.set(f,!1))},[n]),T.useEffect(()=>{!n&&!a.size&&r&&r()},[n]),s==="popLayout"&&(e=P.jsx(KD,{isPresent:n,children:e})),P.jsx(Is.Provider,{value:c,children:e})};function YD(){return new Map}const wa=e=>e.key||"";function Q0(e){const t=[];return T.Children.forEach(e,n=>{T.isValidElement(n)&&t.push(n)}),t}const XD=({children:e,exitBeforeEnter:t,custom:n,initial:r=!0,onExitComplete:o,presenceAffectsLayout:i=!0,mode:s="sync"})=>{const a=T.useMemo(()=>Q0(e),[e]),l=a.map(wa),u=T.useRef(!0),c=T.useRef(a),d=ap(()=>new Map),[f,y]=T.useState(a),[v,S]=T.useState(a);Nb(()=>{u.current=!1,c.current=a;for(let h=0;h{const m=wa(h),b=a===v||l.includes(m),C=()=>{if(d.has(m))d.set(m,!0);else return;let E=!0;d.forEach(k=>{k||(E=!1)}),E&&(p==null||p(),S(c.current),o&&o())};return P.jsx(GD,{isPresent:b,initial:!u.current||r?void 0:!1,custom:b?void 0:n,presenceAffectsLayout:i,mode:s,onExitComplete:b?void 0:C,children:h},m)})})},qD=(e,t)=>e.find(n=>n.id===t);function Z0(e,t){const n=ix(e,t),r=n?e[n].findIndex(o=>o.id===t):-1;return{position:n,index:r}}function ix(e,t){for(const[n,r]of Object.entries(e))if(qD(r,t))return n}function QD(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 ZD(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}}var JD=/^((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)-.*))$/,eI=mS(function(e){return JD.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),tI=eI,nI=function(t){return t!=="theme"},J0=function(t){return typeof t=="string"&&t.charCodeAt(0)>96?tI:nI},ey=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},rI=!1,oI=function(t){var n=t.cache,r=t.serialized,o=t.isStringTag;return xS(n,r,o),rM(function(){return wS(n,r,o)}),null},iI=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=ey(t,n,r),l=a||J0(o),u=!l("as");return function(){var c=arguments,d=r&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(i!==void 0&&d.push("label:"+i+";"),c[0]==null||c[0].raw===void 0)d.push.apply(d,c);else{d.push(c[0][0]);for(var f=c.length,y=1;yt=>{const{theme:n,css:r,__css:o,sx:i,...s}=t,[a]=V2(s,_T),l=$t(e,t),u=_2({},o,l,mh(a),i),c=Y1(u)(t.theme);return r?[c,r]:c};function Vc(e,t){const{baseStyle:n,...r}=t??{};r.shouldForwardProp||(r.shouldForwardProp=uI);const o=dI({baseStyle:n}),i=cI(e,r)(o);return T.forwardRef(function(l,u){const{children:c,...d}=l,{colorMode:f,forced:y}=mu(),v=y?f:void 0;return T.createElement(i,{ref:u,"data-theme":v,...d},c)})}function fI(){const e=new Map;return new Proxy(Vc,{apply(t,n,r){return Vc(...r)},get(t,n){return e.has(n)||e.set(n,Vc(n)),e.get(n)}})}const ue=fI(),hI={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=T.memo(e=>{const{id:t,message:n,onCloseComplete:r,onRequestRemove:o,requestClose:i=!1,position:s="bottom",duration:a=5e3,containerStyle:l,motionVariants:u=hI,toastSpacing:c="0.5rem"}=e,[d,f]=T.useState(a),y=o4();cg(()=>{y||r==null||r()},[y]),cg(()=>{f(a)},[a]);const v=()=>f(null),S=()=>f(a),_=()=>{y&&o()};T.useEffect(()=>{y&&i&&o()},[y,i,o]),H2(_,d);const p=T.useMemo(()=>({pointerEvents:"auto",maxWidth:560,minWidth:300,margin:c,...l}),[l,c]),h=T.useMemo(()=>QD(s),[s]);return P.jsx(ox.div,{layout:!0,className:"chakra-toast",variants:u,initial:"initial",animate:"animate",exit:"exit",onHoverStart:v,onHoverEnd:S,custom:{position:s},style:h,children:P.jsx(ue.div,{role:"status","aria-atomic":"true",className:"chakra-toast__inner",__css:p,children:$t(n,{id:t,onClose:_})})})});sx.displayName="ToastComponent";function Ie(e){return T.forwardRef(e)}var pI=typeof Element<"u",mI=typeof Map=="function",gI=typeof Set=="function",yI=typeof ArrayBuffer=="function"&&!!ArrayBuffer.isView;function qa(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(!qa(e[r],t[r]))return!1;return!0}var i;if(mI&&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(!qa(r.value[1],t.get(r.value[0])))return!1;return!0}if(gI&&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(yI&&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(pI&&e instanceof Element)return!1;for(r=n;r--!==0;)if(!((o[r]==="_owner"||o[r]==="__v"||o[r]==="__o")&&e.$$typeof)&&!qa(e[o[r]],t[o[r]]))return!1;return!0}return e!==e&&t!==t}var vI=function(t,n){try{return qa(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 SI=vf(vI);function bI(){const e=T.useContext(ys);if(!e)throw Error("useTheme: `theme` is undefined. Seems you forgot to wrap your app in `` or ``");return e}function ax(){const e=mu(),t=bI();return{...e,theme:t}}function lx(e,t={}){const{styleConfig:n,...r}=t,{theme:o,colorMode:i}=ax(),s=e?N1(o,`components.${e}`):void 0,a=n||s,l=rn({theme:o,colorMode:i},(a==null?void 0:a.defaultProps)??{},mh(W1(r,["children"])),(c,d)=>c?void 0:d),u=T.useRef({});if(a){const d=LT(a)(l);SI(u.current,d)||(u.current=d)}return u.current}function Or(e,t={}){return lx(e,t)}function fp(e,t={}){return lx(e,t)}const ty={path:P.jsxs("g",{stroke:"currentColor",strokeWidth:"1.5",children:[P.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"}),P.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"}),P.jsx("circle",{fill:"none",strokeMiterlimit:"10",cx:"12",cy:"12",r:"11.25"})]}),viewBox:"0 0 24 24"},Yo=Ie((e,t)=>{const{as:n,viewBox:r,color:o="currentColor",focusable:i=!1,children:s,className:a,__css:l,...u}=e,c=Ye("chakra-icon",a),d=Or("Icon",e),f={w:"1em",h:"1em",display:"inline-block",lineHeight:"1em",flexShrink:0,color:o,...l,...d},y={ref:t,focusable:i,className:c,__css:f},v=r??ty.viewBox;if(n&&typeof n!="string")return P.jsx(ue.svg,{as:n,...y,...u});const S=s??ty.path;return P.jsx(ue.svg,{verticalAlign:"middle",viewBox:v,...y,...u,children:S})});Yo.displayName="Icon";function xI(e){return P.jsx(Yo,{viewBox:"0 0 24 24",...e,children:P.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 wI(e){return P.jsx(Yo,{viewBox:"0 0 24 24",...e,children:P.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 ny(e){return P.jsx(Yo,{viewBox:"0 0 24 24",...e,children:P.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"})})}const kI=lM({"0%":{transform:"rotate(0deg)"},"100%":{transform:"rotate(360deg)"}}),hp=Ie((e,t)=>{const n=Or("Spinner",e),{label:r="Loading...",thickness:o="2px",speed:i="0.45s",emptyColor:s="transparent",className:a,...l}=Dn(e),u=Ye("chakra-spinner",a),c={display:"inline-block",borderColor:"currentColor",borderStyle:"solid",borderRadius:"99999px",borderWidth:o,borderBottomColor:s,borderLeftColor:s,animation:`${kI} ${i} linear infinite`,...n};return P.jsx(ue.div,{ref:t,__css:c,className:u,...l,children:r&&P.jsx(ue.span,{srOnly:!0,children:r})})});hp.displayName="Spinner";const[CI,pp]=zn({name:"AlertContext",hookName:"useAlertContext",providerName:""}),[TI,mp]=zn({name:"AlertStylesContext",hookName:"useAlertStyles",providerName:""}),ux={info:{icon:wI,colorScheme:"blue"},warning:{icon:ny,colorScheme:"orange"},success:{icon:xI,colorScheme:"green"},error:{icon:ny,colorScheme:"red"},loading:{icon:hp,colorScheme:"blue"}};function _I(e){return ux[e].colorScheme}function PI(e){return ux[e].icon}const cx=Ie(function(t,n){const{status:r="info",addRole:o=!0,...i}=Dn(t),s=t.colorScheme??_I(r),a=fp("Alert",{...t,colorScheme:s}),l={width:"100%",display:"flex",alignItems:"center",position:"relative",overflow:"hidden",...a.container};return P.jsx(CI,{value:{status:r},children:P.jsx(TI,{value:a,children:P.jsx(ue.div,{"data-status":r,role:o?"alert":void 0,ref:n,...i,className:Ye("chakra-alert",t.className),__css:l})})})});cx.displayName="Alert";function dx(e){const{status:t}=pp(),n=PI(t),r=mp(),o=t==="loading"?r.spinner:r.icon;return P.jsx(ue.span,{display:"inherit","data-status":t,...e,className:Ye("chakra-alert__icon",e.className),__css:o,children:e.children||P.jsx(n,{h:"100%",w:"100%"})})}dx.displayName="AlertIcon";const fx=Ie(function(t,n){const r=mp(),{status:o}=pp();return P.jsx(ue.div,{ref:n,"data-status":o,...t,className:Ye("chakra-alert__title",t.className),__css:r.title})});fx.displayName="AlertTitle";const hx=Ie(function(t,n){const{status:r}=pp(),o=mp(),i={display:"inline",...o.description};return P.jsx(ue.div,{ref:n,"data-status":r,...t,className:Ye("chakra-alert__desc",t.className),__css:i})});hx.displayName="AlertDescription";function EI(e){return P.jsx(Yo,{focusable:"false","aria-hidden":!0,...e,children:P.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"})})}const px=Ie(function(t,n){const r=Or("CloseButton",t),{children:o,isDisabled:i,__css:s,...a}=Dn(t),l={outline:0,display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0};return P.jsx(ue.button,{type:"button","aria-label":"Close",ref:n,disabled:i,__css:{...l,...r,...s},...a,children:o||P.jsx(EI,{width:"1em",height:"1em"})})});px.displayName="CloseButton";const $I=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 P.jsxs(cx,{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:[P.jsx(dx,{children:u}),P.jsxs(ue.div,{flex:"1",maxWidth:"100%",children:[o&&P.jsx(fx,{id:c==null?void 0:c.title,children:o}),a&&P.jsx(hx,{id:c==null?void 0:c.description,display:"block",children:a})]}),i&&P.jsx(px,{size:"sm",onClick:s,position:"absolute",insetEnd:1,top:1})]})};function mx(e={}){const{render:t,toastComponent:n=$I}=e;return o=>typeof t=="function"?t({...o,...e}):P.jsx(n,{...o,...e})}const AI={top:[],"top-left":[],"top-right":[],"bottom-left":[],bottom:[],"bottom-right":[]},nn=RI(AI);function RI(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=MI(o,i),{position:a,id:l}=s;return r(u=>{const d=a.includes("top")?[s,...u[a]??[]]:[...u[a]??[],s];return{...u,[a]:d}}),l},update:(o,i)=>{o&&r(s=>{const a={...s},{position:l,index:u}=Z0(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=ix(i,o);return s?{...i,[s]:i[s].map(a=>a.id==o?{...a,requestClose:!0}:a)}:i})},isActive:o=>!!Z0(nn.getState(),o).position}}let ry=0;function MI(e,t={}){ry+=1;const n=t.id??ry,r=t.position??"bottom";return{id:n,message:e,position:r,duration:t.duration,onCloseComplete:t.onCloseComplete,onRequestRemove:()=>nn.removeToast(String(n),r),status:t.status,requestClose:!1,containerStyle:t.containerStyle}}const[gx,zI]=zn({strict:!1,name:"PortalContext"}),gp="chakra-portal",DI=".chakra-portal",II=e=>P.jsx("div",{className:"chakra-portal-zIndex",style:{position:"absolute",zIndex:e.zIndex,top:0,left:0,right:0},children:e.children}),LI=e=>{const{appendToParentPortal:t,children:n}=e,[r,o]=T.useState(null),i=T.useRef(null),[,s]=T.useState({});T.useEffect(()=>s({}),[]);const a=zI(),l=bM();Bd(()=>{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=gp,d.appendChild(i.current),s({});const f=i.current;return()=>{d.contains(f)&&d.removeChild(f)}},[r]);const u=l!=null&&l.zIndex?P.jsx(II,{zIndex:l==null?void 0:l.zIndex,children:n}):n;return i.current?hh.createPortal(P.jsx(gx,{value:i.current,children:u}),i.current):P.jsx("span",{ref:c=>{c&&o(c)}})},jI=e=>{const{children:t,containerRef:n,appendToParentPortal:r}=e,o=n.current,i=o??(typeof window<"u"?document.body:void 0),s=T.useMemo(()=>{const l=o==null?void 0:o.ownerDocument.createElement("div");return l&&(l.className=gp),l},[o]),[,a]=T.useState({});return Bd(()=>a({}),[]),Bd(()=>{if(!(!s||!i))return i.appendChild(s),()=>{i.removeChild(s)}},[s,i]),i&&s?hh.createPortal(P.jsx(gx,{value:r?s:null,children:t}),s):null};function xu(e){const t={appendToParentPortal:!0,...e},{containerRef:n,...r}=t;return n?P.jsx(jI,{containerRef:n,...r}):P.jsx(LI,{...r})}xu.className=gp;xu.selector=DI;xu.displayName="Portal";const[FI,BI]=zn({name:"ToastOptionsContext",strict:!1}),VI=e=>{const t=T.useSyncExternalStore(nn.subscribe,nn.getState,nn.getState),{motionVariants:n,component:r=sx,portalProps:o,animatePresenceProps:i}=e,a=Object.keys(t).map(l=>{const u=t[l];return P.jsx("div",{role:"region","aria-live":"polite","aria-label":`Notifications-${l}`,id:`chakra-toast-manager-${l}`,style:ZD(l),children:P.jsx(XD,{...i,initial:!1,children:u.map(c=>P.jsx(r,{motionVariants:n,...c},c.id))})},l)});return P.jsx(xu,{...o,children:a})},OI=e=>function({children:n,theme:r=e,toastOptions:o,...i}){return P.jsxs(xM,{theme:r,...i,children:[P.jsx(FI,{value:o==null?void 0:o.defaultOptions,children:n}),P.jsx(VI,{...o})]})},NI=OI(lR),yx=Ie(function(t,n){const r=Or("Badge",t),{className:o,...i}=Dn(t);return P.jsx(ue.span,{ref:n,className:Ye("chakra-badge",t.className),...i,__css:{display:"inline-block",whiteSpace:"nowrap",verticalAlign:"middle",...r}})});yx.displayName="Badge";const[xL,WI]=zn({strict:!1,name:"ButtonGroupContext"});function Pi(e){const{children:t,className:n,...r}=e,o=T.isValidElement(t)?T.cloneElement(t,{"aria-hidden":!0,focusable:!1}):t,i=Ye("chakra-button__icon",n);return P.jsx(ue.span,{display:"inline-flex",alignSelf:"center",flexShrink:0,...r,className:i,children:o})}Pi.displayName="ButtonIcon";function yf(e){const{label:t,placement:n,spacing:r="0.5rem",children:o=P.jsx(hp,{color:"currentColor",width:"1em",height:"1em"}),className:i,__css:s,...a}=e,l=Ye("chakra-button__spinner",i),u=n==="start"?"marginEnd":"marginStart",c=T.useMemo(()=>({display:"flex",alignItems:"center",position:t?"relative":"absolute",[u]:t?r:0,fontSize:"1em",lineHeight:"normal",...s}),[s,t,u,r]);return P.jsx(ue.div,{className:l,...a,__css:c,children:o})}yf.displayName="ButtonSpinner";function UI(e){const[t,n]=T.useState(!e);return{ref:T.useCallback(i=>{i&&n(i.tagName==="BUTTON")},[]),type:t?"button":void 0}}const yp=Ie((e,t)=>{const n=WI(),r=Or("Button",{...n,...e}),{isDisabled:o=n==null?void 0:n.isDisabled,isLoading:i,isActive:s,children:a,leftIcon:l,rightIcon:u,loadingText:c,iconSpacing:d="0.5rem",type:f,spinner:y,spinnerPlacement:v="start",className:S,as:_,shouldWrapChildren:p,...h}=Dn(e),m=T.useMemo(()=>{const k={...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:k}}},[r,n]),{ref:b,type:C}=UI(_),E={rightIcon:u,leftIcon:l,iconSpacing:d,children:a,shouldWrapChildren:p};return P.jsxs(ue.button,{disabled:o||i,ref:U2(t,b),as:_,type:f??C,"data-active":Qt(s),"data-loading":Qt(i),__css:m,className:Ye("chakra-button",S),...h,children:[i&&v==="start"&&P.jsx(yf,{className:"chakra-button__spinner--start",label:c,placement:"start",spacing:d,children:y}),i?c||P.jsx(ue.span,{opacity:0,children:P.jsx(oy,{...E})}):P.jsx(oy,{...E}),i&&v==="end"&&P.jsx(yf,{className:"chakra-button__spinner--end",label:c,placement:"end",spacing:d,children:y})]})});yp.displayName="Button";function oy(e){const{leftIcon:t,rightIcon:n,children:r,iconSpacing:o,shouldWrapChildren:i}=e;return i?P.jsxs("span",{style:{display:"contents"},children:[t&&P.jsx(Pi,{marginEnd:o,children:t}),r,n&&P.jsx(Pi,{marginStart:o,children:n})]}):P.jsxs(P.Fragment,{children:[t&&P.jsx(Pi,{marginEnd:o,children:t}),r,n&&P.jsx(Pi,{marginStart:o,children:n})]})}const vp=Ie((e,t)=>{const{icon:n,children:r,isRound:o,"aria-label":i,...s}=e,a=n||r,l=T.isValidElement(a)?T.cloneElement(a,{"aria-hidden":!0,focusable:!1}):null;return P.jsx(yp,{px:"0",py:"0",borderRadius:o?"full":void 0,ref:t,"aria-label":i,...s,children:l})});vp.displayName="IconButton";const[HI,KI]=zn({name:"FormControlStylesContext",errorMessage:`useFormControlStyles returned is 'undefined'. Seems you forgot to wrap the components in "" `}),[GI,vx]=zn({strict:!1,name:"FormControlContext"});function YI(e){const{id:t,isRequired:n,isInvalid:r,isDisabled:o,isReadOnly:i,...s}=e,a=T.useId(),l=t||`field-${a}`,u=`${l}-label`,c=`${l}-feedback`,d=`${l}-helptext`,[f,y]=T.useState(!1),[v,S]=T.useState(!1),[_,p]=T.useState(!1),h=T.useCallback((k={},A=null)=>({id:d,...k,ref:Vd(A,D=>{D&&S(!0)})}),[d]),m=T.useCallback((k={},A=null)=>({...k,ref:A,"data-focus":Qt(_),"data-disabled":Qt(o),"data-invalid":Qt(r),"data-readonly":Qt(i),id:k.id!==void 0?k.id:u,htmlFor:k.htmlFor!==void 0?k.htmlFor:l}),[l,o,_,r,i,u]),b=T.useCallback((k={},A=null)=>({id:c,...k,ref:Vd(A,D=>{D&&y(!0)}),"aria-live":"polite"}),[c]),C=T.useCallback((k={},A=null)=>({...k,...s,ref:A,role:"group","data-focus":Qt(_),"data-disabled":Qt(o),"data-invalid":Qt(r),"data-readonly":Qt(i)}),[s,o,_,r,i]),E=T.useCallback((k={},A=null)=>({...k,ref:A,role:"presentation","aria-hidden":!0,children:k.children||"*"}),[]);return{isRequired:!!n,isInvalid:!!r,isReadOnly:!!i,isDisabled:!!o,isFocused:!!_,onFocus:()=>p(!0),onBlur:()=>p(!1),hasFeedbackText:f,setHasFeedbackText:y,hasHelpText:v,setHasHelpText:S,id:l,labelId:u,feedbackId:c,helpTextId:d,htmlProps:s,getHelpTextProps:h,getErrorMessageProps:b,getRootProps:C,getLabelProps:m,getRequiredIndicatorProps:E}}const XI=Ie(function(t,n){const r=fp("Form",t),o=Dn(t),{getRootProps:i,htmlProps:s,...a}=YI(o),l=Ye("chakra-form-control",t.className);return P.jsx(GI,{value:a,children:P.jsx(HI,{value:r,children:P.jsx(ue.div,{...i({},n),className:l,__css:r.container})})})});XI.displayName="FormControl";const qI=Ie(function(t,n){const r=vx(),o=KI(),i=Ye("chakra-form__helper-text",t.className);return P.jsx(ue.div,{...r==null?void 0:r.getHelpTextProps(t,n),__css:o.helperText,className:i})});qI.displayName="FormHelperText";function QI(e){const{isDisabled:t,isInvalid:n,isReadOnly:r,isRequired:o,...i}=ZI(e);return{...i,disabled:t,readOnly:r,required:o,"aria-invalid":lc(n),"aria-required":lc(o),"aria-readonly":lc(r)}}function ZI(e){const t=vx(),{id:n,disabled:r,readOnly:o,required:i,isRequired:s,isInvalid:a,isReadOnly:l,isDisabled:u,onFocus:c,onBlur:d,...f}=e,y=e["aria-describedby"]?[e["aria-describedby"]]:[];return t!=null&&t.hasFeedbackText&&(t!=null&&t.isInvalid)&&y.push(t.feedbackId),t!=null&&t.hasHelpText&&y.push(t.helpTextId),{...f,"aria-describedby":y.join(" ")||void 0,id:n??(t==null?void 0:t.id),isDisabled:r??u??(t==null?void 0:t.isDisabled),isReadOnly:o??l??(t==null?void 0:t.isReadOnly),isRequired:i??s??(t==null?void 0:t.isRequired),isInvalid:a??(t==null?void 0:t.isInvalid),onFocus:lg(t==null?void 0:t.onFocus,c),onBlur:lg(t==null?void 0:t.onBlur,d)}}const JI=new Set(["dark","light","system"]);function eL(e){let t=e;return JI.has(t)||(t="light"),t}function tL(e={}){const{initialColorMode:t="light",type:n="localStorage",storageKey:r="chakra-ui-color-mode"}=e,o=eL(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){}})(); + `),()=>{document.head.removeChild(c)}},[t]),P.jsx(JD,{isPresent:t,childRef:r,sizeRef:o,children:C.cloneElement(e,{ref:r})})}const tI=({children:e,initial:t,isPresent:n,onExitComplete:r,custom:o,presenceAffectsLayout:i,mode:s})=>{const a=dp(nI),l=C.useId(),u=C.useCallback(d=>{a.set(d,!0);for(const f of a.values())if(!f)return;r&&r()},[a,r]),c=C.useMemo(()=>({id:l,initial:t,isPresent:n,custom:o,onExitComplete:u,register:d=>(a.set(d,!1),()=>a.delete(d))}),i?[Math.random(),u]:[n,u]);return C.useMemo(()=>{a.forEach((d,f)=>a.set(f,!1))},[n]),C.useEffect(()=>{!n&&!a.size&&r&&r()},[n]),s==="popLayout"&&(e=P.jsx(eI,{isPresent:n,children:e})),P.jsx(Is.Provider,{value:c,children:e})};function nI(){return new Map}const wa=e=>e.key||"";function ny(e){const t=[];return C.Children.forEach(e,n=>{C.isValidElement(n)&&t.push(n)}),t}const rI=({children:e,exitBeforeEnter:t,custom:n,initial:r=!0,onExitComplete:o,presenceAffectsLayout:i=!0,mode:s="sync"})=>{const a=C.useMemo(()=>ny(e),[e]),l=a.map(wa),u=C.useRef(!0),c=C.useRef(a),d=dp(()=>new Map),[f,y]=C.useState(a),[v,S]=C.useState(a);Gb(()=>{u.current=!1,c.current=a;for(let h=0;h{const m=wa(h),b=a===v||l.includes(m),T=()=>{if(d.has(m))d.set(m,!0);else return;let E=!0;d.forEach(k=>{k||(E=!1)}),E&&(p==null||p(),S(c.current),o&&o())};return P.jsx(tI,{isPresent:b,initial:!u.current||r?void 0:!1,custom:b?void 0:n,presenceAffectsLayout:i,mode:s,onExitComplete:b?void 0:T,children:h},m)})})},oI=(e,t)=>e.find(n=>n.id===t);function ry(e,t){const n=cx(e,t),r=n?e[n].findIndex(o=>o.id===t):-1;return{position:n,index:r}}function cx(e,t){for(const[n,r]of Object.entries(e))if(oI(r,t))return n}function iI(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 sI(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}}var aI=/^((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|fetchpriority|fetchPriority|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)-.*))$/,lI=bS(function(e){return aI.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),uI=!1,cI=lI,dI=function(t){return t!=="theme"},oy=function(t){return typeof t=="string"&&t.charCodeAt(0)>96?cI:dI},iy=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},fI=function(t){var n=t.cache,r=t.serialized,o=t.isStringTag;return Mh(n,r,o),$S(function(){return zh(n,r,o)}),null},hI=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=iy(t,n,r),l=a||oy(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{var f=c[0];d.push(f[0]);for(var y=c.length,v=1;vt=>{const{theme:n,css:r,__css:o,sx:i,...s}=t,[a]=H2(s,RT),l=$t(e,t),u=R2({},o,l,vh(a),i),c=J1(u)(t.theme);return r?[c,r]:c};function Nc(e,t){const{baseStyle:n,...r}=t??{};r.shouldForwardProp||(r.shouldForwardProp=yI);const o=SI({baseStyle:n}),i=vI(e,r)(o);return C.forwardRef(function(l,u){const{children:c,...d}=l,{colorMode:f,forced:y}=yu(),v=y?f:void 0;return C.createElement(i,{ref:u,"data-theme":v,...d},c)})}function bI(){const e=new Map;return new Proxy(Nc,{apply(t,n,r){return Nc(...r)},get(t,n){return e.has(n)||e.set(n,Nc(n)),e.get(n)}})}const ue=bI(),xI={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]}}},dx=C.memo(e=>{const{id:t,message:n,onCloseComplete:r,onRequestRemove:o,requestClose:i=!1,position:s="bottom",duration:a=5e3,containerStyle:l,motionVariants:u=xI,toastSpacing:c="0.5rem"}=e,[d,f]=C.useState(a),y=f4();pg(()=>{y||r==null||r()},[y]),pg(()=>{f(a)},[a]);const v=()=>f(null),S=()=>f(a),_=()=>{y&&o()};C.useEffect(()=>{y&&i&&o()},[y,i,o]),q2(_,d);const p=C.useMemo(()=>({pointerEvents:"auto",maxWidth:560,minWidth:300,margin:c,...l}),[l,c]),h=C.useMemo(()=>iI(s),[s]);return P.jsx(ux.div,{layout:!0,className:"chakra-toast",variants:u,initial:"initial",animate:"animate",exit:"exit",onHoverStart:v,onHoverEnd:S,custom:{position:s},style:h,children:P.jsx(ue.div,{role:"status","aria-atomic":"true",className:"chakra-toast__inner",__css:p,children:$t(n,{id:t,onClose:_})})})});dx.displayName="ToastComponent";function Ie(e){return C.forwardRef(e)}var wI=typeof Element<"u",kI=typeof Map=="function",CI=typeof Set=="function",TI=typeof ArrayBuffer=="function"&&!!ArrayBuffer.isView;function qa(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(!qa(e[r],t[r]))return!1;return!0}var i;if(kI&&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(!qa(r.value[1],t.get(r.value[0])))return!1;return!0}if(CI&&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(TI&&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(wI&&e instanceof Element)return!1;for(r=n;r--!==0;)if(!((o[r]==="_owner"||o[r]==="__v"||o[r]==="__o")&&e.$$typeof)&&!qa(e[o[r]],t[o[r]]))return!1;return!0}return e!==e&&t!==t}var _I=function(t,n){try{return qa(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 PI=xf(_I);function EI(){const e=C.useContext(Bo);if(!e)throw Error("useTheme: `theme` is undefined. Seems you forgot to wrap your app in `` or ``");return e}function fx(){const e=yu(),t=EI();return{...e,theme:t}}function hx(e,t={}){const{styleConfig:n,...r}=t,{theme:o,colorMode:i}=fx(),s=e?G1(o,`components.${e}`):void 0,a=n||s,l=rn({theme:o,colorMode:i},(a==null?void 0:a.defaultProps)??{},vh(X1(r,["children"])),(c,d)=>c?void 0:d),u=C.useRef({});if(a){const d=OT(a)(l);PI(u.current,d)||(u.current=d)}return u.current}function Or(e,t={}){return hx(e,t)}function gp(e,t={}){return hx(e,t)}const sy={path:P.jsxs("g",{stroke:"currentColor",strokeWidth:"1.5",children:[P.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"}),P.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"}),P.jsx("circle",{fill:"none",strokeMiterlimit:"10",cx:"12",cy:"12",r:"11.25"})]}),viewBox:"0 0 24 24"},Yo=Ie((e,t)=>{const{as:n,viewBox:r,color:o="currentColor",focusable:i=!1,children:s,className:a,__css:l,...u}=e,c=Xe("chakra-icon",a),d=Or("Icon",e),f={w:"1em",h:"1em",display:"inline-block",lineHeight:"1em",flexShrink:0,color:o,...l,...d},y={ref:t,focusable:i,className:c,__css:f},v=r??sy.viewBox;if(n&&typeof n!="string")return P.jsx(ue.svg,{as:n,...y,...u});const S=s??sy.path;return P.jsx(ue.svg,{verticalAlign:"middle",viewBox:v,...y,...u,children:S})});Yo.displayName="Icon";function $I(e){return P.jsx(Yo,{viewBox:"0 0 24 24",...e,children:P.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 AI(e){return P.jsx(Yo,{viewBox:"0 0 24 24",...e,children:P.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 ay(e){return P.jsx(Yo,{viewBox:"0 0 24 24",...e,children:P.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"})})}const RI=gM({"0%":{transform:"rotate(0deg)"},"100%":{transform:"rotate(360deg)"}}),yp=Ie((e,t)=>{const n=Or("Spinner",e),{label:r="Loading...",thickness:o="2px",speed:i="0.45s",emptyColor:s="transparent",className:a,...l}=Dn(e),u=Xe("chakra-spinner",a),c={display:"inline-block",borderColor:"currentColor",borderStyle:"solid",borderRadius:"99999px",borderWidth:o,borderBottomColor:s,borderLeftColor:s,animation:`${RI} ${i} linear infinite`,...n};return P.jsx(ue.div,{ref:t,__css:c,className:u,...l,children:r&&P.jsx(ue.span,{srOnly:!0,children:r})})});yp.displayName="Spinner";const[MI,vp]=zn({name:"AlertContext",hookName:"useAlertContext",providerName:""}),[zI,Sp]=zn({name:"AlertStylesContext",hookName:"useAlertStyles",providerName:""}),px={info:{icon:AI,colorScheme:"blue"},warning:{icon:ay,colorScheme:"orange"},success:{icon:$I,colorScheme:"green"},error:{icon:ay,colorScheme:"red"},loading:{icon:yp,colorScheme:"blue"}};function DI(e){return px[e].colorScheme}function II(e){return px[e].icon}const mx=Ie(function(t,n){const{status:r="info",addRole:o=!0,...i}=Dn(t),s=t.colorScheme??DI(r),a=gp("Alert",{...t,colorScheme:s}),l={width:"100%",display:"flex",alignItems:"center",position:"relative",overflow:"hidden",...a.container};return P.jsx(MI,{value:{status:r},children:P.jsx(zI,{value:a,children:P.jsx(ue.div,{"data-status":r,role:o?"alert":void 0,ref:n,...i,className:Xe("chakra-alert",t.className),__css:l})})})});mx.displayName="Alert";function gx(e){const{status:t}=vp(),n=II(t),r=Sp(),o=t==="loading"?r.spinner:r.icon;return P.jsx(ue.span,{display:"inherit","data-status":t,...e,className:Xe("chakra-alert__icon",e.className),__css:o,children:e.children||P.jsx(n,{h:"100%",w:"100%"})})}gx.displayName="AlertIcon";const yx=Ie(function(t,n){const r=Sp(),{status:o}=vp();return P.jsx(ue.div,{ref:n,"data-status":o,...t,className:Xe("chakra-alert__title",t.className),__css:r.title})});yx.displayName="AlertTitle";const vx=Ie(function(t,n){const{status:r}=vp(),o=Sp(),i={display:"inline",...o.description};return P.jsx(ue.div,{ref:n,"data-status":r,...t,className:Xe("chakra-alert__desc",t.className),__css:i})});vx.displayName="AlertDescription";function LI(e){return P.jsx(Yo,{focusable:"false","aria-hidden":!0,...e,children:P.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"})})}const Sx=Ie(function(t,n){const r=Or("CloseButton",t),{children:o,isDisabled:i,__css:s,...a}=Dn(t),l={outline:0,display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0};return P.jsx(ue.button,{type:"button","aria-label":"Close",ref:n,disabled:i,__css:{...l,...r,...s},...a,children:o||P.jsx(LI,{width:"1em",height:"1em"})})});Sx.displayName="CloseButton";const jI=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 P.jsxs(mx,{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:[P.jsx(gx,{children:u}),P.jsxs(ue.div,{flex:"1",maxWidth:"100%",children:[o&&P.jsx(yx,{id:c==null?void 0:c.title,children:o}),a&&P.jsx(vx,{id:c==null?void 0:c.description,display:"block",children:a})]}),i&&P.jsx(Sx,{size:"sm",onClick:s,position:"absolute",insetEnd:1,top:1})]})};function bx(e={}){const{render:t,toastComponent:n=jI}=e;return o=>typeof t=="function"?t({...o,...e}):P.jsx(n,{...o,...e})}const FI={top:[],"top-left":[],"top-right":[],"bottom-left":[],bottom:[],"bottom-right":[]},nn=BI(FI);function BI(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=VI(o,i),{position:a,id:l}=s;return r(u=>{const d=a.includes("top")?[s,...u[a]??[]]:[...u[a]??[],s];return{...u,[a]:d}}),l},update:(o,i)=>{o&&r(s=>{const a={...s},{position:l,index:u}=ry(a,o);return l&&u!==-1&&(a[l][u]={...a[l][u],...i,message:bx(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=cx(i,o);return s?{...i,[s]:i[s].map(a=>a.id==o?{...a,requestClose:!0}:a)}:i})},isActive:o=>!!ry(nn.getState(),o).position}}let ly=0;function VI(e,t={}){ly+=1;const n=t.id??ly,r=t.position??"bottom";return{id:n,message:e,position:r,duration:t.duration,onCloseComplete:t.onCloseComplete,onRequestRemove:()=>nn.removeToast(String(n),r),status:t.status,requestClose:!1,containerStyle:t.containerStyle}}const[xx,OI]=zn({strict:!1,name:"PortalContext"}),bp="chakra-portal",NI=".chakra-portal",WI=e=>P.jsx("div",{className:"chakra-portal-zIndex",style:{position:"absolute",zIndex:e.zIndex,top:0,left:0,right:0},children:e.children}),UI=e=>{const{appendToParentPortal:t,children:n}=e,[r,o]=C.useState(null),i=C.useRef(null),[,s]=C.useState({});C.useEffect(()=>s({}),[]);const a=OI(),l=EM();Od(()=>{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=bp,d.appendChild(i.current),s({});const f=i.current;return()=>{d.contains(f)&&d.removeChild(f)}},[r]);const u=l!=null&&l.zIndex?P.jsx(WI,{zIndex:l==null?void 0:l.zIndex,children:n}):n;return i.current?gh.createPortal(P.jsx(xx,{value:i.current,children:u}),i.current):P.jsx("span",{ref:c=>{c&&o(c)}})},HI=e=>{const{children:t,containerRef:n,appendToParentPortal:r}=e,o=n.current,i=o??(typeof window<"u"?document.body:void 0),s=C.useMemo(()=>{const l=o==null?void 0:o.ownerDocument.createElement("div");return l&&(l.className=bp),l},[o]),[,a]=C.useState({});return Od(()=>a({}),[]),Od(()=>{if(!(!s||!i))return i.appendChild(s),()=>{i.removeChild(s)}},[s,i]),i&&s?gh.createPortal(P.jsx(xx,{value:r?s:null,children:t}),s):null};function ku(e){const t={appendToParentPortal:!0,...e},{containerRef:n,...r}=t;return n?P.jsx(HI,{containerRef:n,...r}):P.jsx(UI,{...r})}ku.className=bp;ku.selector=NI;ku.displayName="Portal";const[KI,GI]=zn({name:"ToastOptionsContext",strict:!1}),XI=e=>{const t=C.useSyncExternalStore(nn.subscribe,nn.getState,nn.getState),{motionVariants:n,component:r=dx,portalProps:o,animatePresenceProps:i}=e,a=Object.keys(t).map(l=>{const u=t[l];return P.jsx("div",{role:"region","aria-live":"polite","aria-label":`Notifications-${l}`,id:`chakra-toast-manager-${l}`,style:sI(l),children:P.jsx(rI,{...i,initial:!1,children:u.map(c=>P.jsx(r,{motionVariants:n,...c},c.id))})},l)});return P.jsx(ku,{...o,children:a})},YI=e=>function({children:n,theme:r=e,toastOptions:o,...i}){return P.jsxs($M,{theme:r,...i,children:[P.jsx(KI,{value:o==null?void 0:o.defaultOptions,children:n}),P.jsx(XI,{...o})]})},qI=YI(hR),wx=Ie(function(t,n){const r=Or("Badge",t),{className:o,...i}=Dn(t);return P.jsx(ue.span,{ref:n,className:Xe("chakra-badge",t.className),...i,__css:{display:"inline-block",whiteSpace:"nowrap",verticalAlign:"middle",...r}})});wx.displayName="Badge";const[$L,QI]=zn({strict:!1,name:"ButtonGroupContext"});function Ei(e){const{children:t,className:n,...r}=e,o=C.isValidElement(t)?C.cloneElement(t,{"aria-hidden":!0,focusable:!1}):t,i=Xe("chakra-button__icon",n);return P.jsx(ue.span,{display:"inline-flex",alignSelf:"center",flexShrink:0,...r,className:i,children:o})}Ei.displayName="ButtonIcon";function bf(e){const{label:t,placement:n,spacing:r="0.5rem",children:o=P.jsx(yp,{color:"currentColor",width:"1em",height:"1em"}),className:i,__css:s,...a}=e,l=Xe("chakra-button__spinner",i),u=n==="start"?"marginEnd":"marginStart",c=C.useMemo(()=>({display:"flex",alignItems:"center",position:t?"relative":"absolute",[u]:t?r:0,fontSize:"1em",lineHeight:"normal",...s}),[s,t,u,r]);return P.jsx(ue.div,{className:l,...a,__css:c,children:o})}bf.displayName="ButtonSpinner";function ZI(e){const[t,n]=C.useState(!e);return{ref:C.useCallback(i=>{i&&n(i.tagName==="BUTTON")},[]),type:t?"button":void 0}}const xp=Ie((e,t)=>{const n=QI(),r=Or("Button",{...n,...e}),{isDisabled:o=n==null?void 0:n.isDisabled,isLoading:i,isActive:s,children:a,leftIcon:l,rightIcon:u,loadingText:c,iconSpacing:d="0.5rem",type:f,spinner:y,spinnerPlacement:v="start",className:S,as:_,shouldWrapChildren:p,...h}=Dn(e),m=C.useMemo(()=>{const k={...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:k}}},[r,n]),{ref:b,type:T}=ZI(_),E={rightIcon:u,leftIcon:l,iconSpacing:d,children:a,shouldWrapChildren:p};return P.jsxs(ue.button,{disabled:o||i,ref:Y2(t,b),as:_,type:f??T,"data-active":Qt(s),"data-loading":Qt(i),__css:m,className:Xe("chakra-button",S),...h,children:[i&&v==="start"&&P.jsx(bf,{className:"chakra-button__spinner--start",label:c,placement:"start",spacing:d,children:y}),i?c||P.jsx(ue.span,{opacity:0,children:P.jsx(uy,{...E})}):P.jsx(uy,{...E}),i&&v==="end"&&P.jsx(bf,{className:"chakra-button__spinner--end",label:c,placement:"end",spacing:d,children:y})]})});xp.displayName="Button";function uy(e){const{leftIcon:t,rightIcon:n,children:r,iconSpacing:o,shouldWrapChildren:i}=e;return i?P.jsxs("span",{style:{display:"contents"},children:[t&&P.jsx(Ei,{marginEnd:o,children:t}),r,n&&P.jsx(Ei,{marginStart:o,children:n})]}):P.jsxs(P.Fragment,{children:[t&&P.jsx(Ei,{marginEnd:o,children:t}),r,n&&P.jsx(Ei,{marginStart:o,children:n})]})}const wp=Ie((e,t)=>{const{icon:n,children:r,isRound:o,"aria-label":i,...s}=e,a=n||r,l=C.isValidElement(a)?C.cloneElement(a,{"aria-hidden":!0,focusable:!1}):null;return P.jsx(xp,{px:"0",py:"0",borderRadius:o?"full":void 0,ref:t,"aria-label":i,...s,children:l})});wp.displayName="IconButton";const[JI,eL]=zn({name:"FormControlStylesContext",errorMessage:`useFormControlStyles returned is 'undefined'. Seems you forgot to wrap the components in "" `}),[tL,kx]=zn({strict:!1,name:"FormControlContext"});function nL(e){const{id:t,isRequired:n,isInvalid:r,isDisabled:o,isReadOnly:i,...s}=e,a=C.useId(),l=t||`field-${a}`,u=`${l}-label`,c=`${l}-feedback`,d=`${l}-helptext`,[f,y]=C.useState(!1),[v,S]=C.useState(!1),[_,p]=C.useState(!1),h=C.useCallback((k={},A=null)=>({id:d,...k,ref:Nd(A,D=>{D&&S(!0)})}),[d]),m=C.useCallback((k={},A=null)=>({...k,ref:A,"data-focus":Qt(_),"data-disabled":Qt(o),"data-invalid":Qt(r),"data-readonly":Qt(i),id:k.id!==void 0?k.id:u,htmlFor:k.htmlFor!==void 0?k.htmlFor:l}),[l,o,_,r,i,u]),b=C.useCallback((k={},A=null)=>({id:c,...k,ref:Nd(A,D=>{D&&y(!0)}),"aria-live":"polite"}),[c]),T=C.useCallback((k={},A=null)=>({...k,...s,ref:A,role:"group","data-focus":Qt(_),"data-disabled":Qt(o),"data-invalid":Qt(r),"data-readonly":Qt(i)}),[s,o,_,r,i]),E=C.useCallback((k={},A=null)=>({...k,ref:A,role:"presentation","aria-hidden":!0,children:k.children||"*"}),[]);return{isRequired:!!n,isInvalid:!!r,isReadOnly:!!i,isDisabled:!!o,isFocused:!!_,onFocus:()=>p(!0),onBlur:()=>p(!1),hasFeedbackText:f,setHasFeedbackText:y,hasHelpText:v,setHasHelpText:S,id:l,labelId:u,feedbackId:c,helpTextId:d,htmlProps:s,getHelpTextProps:h,getErrorMessageProps:b,getRootProps:T,getLabelProps:m,getRequiredIndicatorProps:E}}const rL=Ie(function(t,n){const r=gp("Form",t),o=Dn(t),{getRootProps:i,htmlProps:s,...a}=nL(o),l=Xe("chakra-form-control",t.className);return P.jsx(tL,{value:a,children:P.jsx(JI,{value:r,children:P.jsx(ue.div,{...i({},n),className:l,__css:r.container})})})});rL.displayName="FormControl";const oL=Ie(function(t,n){const r=kx(),o=eL(),i=Xe("chakra-form__helper-text",t.className);return P.jsx(ue.div,{...r==null?void 0:r.getHelpTextProps(t,n),__css:o.helperText,className:i})});oL.displayName="FormHelperText";function iL(e){const{isDisabled:t,isInvalid:n,isReadOnly:r,isRequired:o,...i}=sL(e);return{...i,disabled:t,readOnly:r,required:o,"aria-invalid":cc(n),"aria-required":cc(o),"aria-readonly":cc(r)}}function sL(e){const t=kx(),{id:n,disabled:r,readOnly:o,required:i,isRequired:s,isInvalid:a,isReadOnly:l,isDisabled:u,onFocus:c,onBlur:d,...f}=e,y=e["aria-describedby"]?[e["aria-describedby"]]:[];return t!=null&&t.hasFeedbackText&&(t!=null&&t.isInvalid)&&y.push(t.feedbackId),t!=null&&t.hasHelpText&&y.push(t.helpTextId),{...f,"aria-describedby":y.join(" ")||void 0,id:n??(t==null?void 0:t.id),isDisabled:r??u??(t==null?void 0:t.isDisabled),isReadOnly:o??l??(t==null?void 0:t.isReadOnly),isRequired:i??s??(t==null?void 0:t.isRequired),isInvalid:a??(t==null?void 0:t.isInvalid),onFocus:fg(t==null?void 0:t.onFocus,c),onBlur:fg(t==null?void 0:t.onBlur,d)}}const aL=new Set(["dark","light","system"]);function lL(e){let t=e;return aL.has(t)||(t="light"),t}function uL(e={}){const{initialColorMode:t="light",type:n="localStorage",storageKey:r="chakra-ui-color-mode"}=e,o=lL(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 nL(e={}){const{nonce:t}=e;return P.jsx("script",{id:"chakra-script",nonce:t,dangerouslySetInnerHTML:{__html:tL(e)}})}function Sp(e){const{viewBox:t="0 0 24 24",d:n,displayName:r,defaultProps:o={}}=e,i=T.Children.toArray(e.path),s=Ie((a,l)=>P.jsx(Yo,{ref:l,viewBox:t,...o,...a,children:i.length?i:P.jsx("path",{fill:"currentColor",d:n})}));return s.displayName=r,s}const bp=Ie(function(t,n){const{htmlSize:r,...o}=t,i=fp("Input",o),s=Dn(o),a=QI(s),l=Ye("chakra-input",t.className);return P.jsx(ue.input,{size:r,...a,__css:i.field,ref:n,className:l})});bp.displayName="Input";bp.id="Input";const Sx=ue("div",{baseStyle:{flex:1,justifySelf:"stretch",alignSelf:"stretch"}});Sx.displayName="Spacer";const bx=e=>P.jsx(ue.div,{className:"chakra-stack__item",...e,__css:{display:"inline-block",flex:"0 0 auto",minWidth:0,...e.__css}});bx.displayName="StackItem";function rL(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{"&":F2(n,o=>r[o])}}const xp=Ie((e,t)=>{const{isInline:n,direction:r,align:o,justify:i,spacing:s="0.5rem",wrap:a,children:l,divider:u,className:c,shouldWrapChildren:d,...f}=e,y=n?"row":r??"column",v=T.useMemo(()=>rL({spacing:s,direction:y}),[s,y]),S=!!u,_=!d&&!S,p=T.useMemo(()=>{const m=M2(l);return _?m:m.map((b,C)=>{const E=typeof b.key<"u"?b.key:C,k=C+1===m.length,D=d?P.jsx(bx,{children:b},E):b;if(!S)return D;const M=T.cloneElement(u,{__css:v}),N=k?null:M;return P.jsxs(T.Fragment,{children:[D,N]},E)})},[u,v,S,_,d,l]),h=Ye("chakra-stack",c);return P.jsx(ue.div,{ref:t,display:"flex",alignItems:o,justifyContent:i,flexDirection:y,flexWrap:a,gap:S?void 0:s,className:h,...f,children:p})});xp.displayName="Stack";const wp=Ie((e,t)=>P.jsx(xp,{align:"center",...e,direction:"row",ref:t}));wp.displayName="HStack";const xx=e=>P.jsx(ue.div,{className:"chakra-stack__divider",...e,__css:{...e.__css,borderWidth:0,alignSelf:"stretch",borderColor:"inherit",width:"auto",height:"auto"}});xx.displayName="StackDivider";const kp=Ie((e,t)=>P.jsx(xp,{align:"center",...e,direction:"column",ref:t}));kp.displayName="VStack";function oL(e,t){const n=e??"bottom",o={"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"}}[n];return(o==null?void 0:o[t])??n}function iL(e,t){const n=o=>({...t,...o,position:oL((o==null?void 0:o.position)??(t==null?void 0:t.position),e)}),r=o=>{const i=n(o),s=mx(i);return nn.notify(s,i)};return r.update=(o,i)=>{nn.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,...$t(i.success,a)})).catch(a=>r.update(s,{status:"error",duration:5e3,...$t(i.error,a)}))},r.closeAll=nn.closeAll,r.close=nn.close,r.isActive=nn.isActive,r}function sL(e){const{theme:t}=ax(),n=BI();return T.useMemo(()=>iL(t.direction,{...n,...e}),[e,t.direction,n])}const wx=Ie(function(t,n){const r=Or("Heading",t),{className:o,...i}=Dn(t);return P.jsx(ue.h2,{ref:n,className:Ye("chakra-heading",t.className),...i,__css:r})});wx.displayName="Heading";const kx=Ie(function(t,n){const r=Or("Text",t),{className:o,align:i,decoration:s,casing:a,...l}=Dn(t),u=mh({textAlign:t.align,textDecoration:t.decoration,textTransform:t.casing});return P.jsx(ue.p,{ref:n,className:Ye("chakra-text",t.className),...u,...l,__css:r})});kx.displayName="Text";const aL=({addTodo:e})=>{const t=T.useRef(null),n=sL(),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 P.jsx("form",{onSubmit:o,children:P.jsxs(wp,{m:"8",children:[P.jsx(bp,{variant:"filled",placeholder:"Add new todo",ref:t}),P.jsx(yp,{type:"submit",colorScheme:"green",px:"8",children:"Add"})]})})},lL=Sp({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"}),uL=Sp({displayName:"SunIcon",path:P.jsxs("g",{strokeLinejoin:"round",strokeLinecap:"round",strokeWidth:"2",fill:"none",stroke:"currentColor",children:[P.jsx("circle",{cx:"12",cy:"12",r:"5"}),P.jsx("path",{d:"M12 1v2"}),P.jsx("path",{d:"M12 21v2"}),P.jsx("path",{d:"M4.22 4.22l1.42 1.42"}),P.jsx("path",{d:"M18.36 18.36l1.42 1.42"}),P.jsx("path",{d:"M1 12h2"}),P.jsx("path",{d:"M21 12h2"}),P.jsx("path",{d:"M4.22 19.78l1.42-1.42"}),P.jsx("path",{d:"M18.36 5.64l1.42-1.42"})]})}),cL=Sp({displayName:"DeleteIcon",path:P.jsx("g",{fill:"currentColor",children:P.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"})})}),dL=({todos:e,deleteTodo:t})=>{if(e.length===0)return P.jsx(yx,{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:P.jsx(xx,{})};return P.jsx(kp,{...n,children:e.map(r=>P.jsxs(wp,{children:[P.jsx(kx,{children:r.body}),P.jsx(Sx,{}),P.jsx(vp,{"aria-label":"Delete todo",icon:P.jsx(cL,{}),onClick:()=>t(r.id)})]},r.id))})},fL=({toggleTheme:e,theme:t})=>{const n={size:"lg",isRound:!0,variant:"ghost",icon:t==="light"?P.jsx(lL,{}):P.jsx(uL,{}),"aria-label":"Switch DarkMode"};return P.jsx(ox.div,{whileTap:{rotate:180},style:{display:"flex",alignSelf:"flex-end"},children:P.jsx(vp,{onClick:e,...n})})},Cp=Ql("light");Cp.debugLabel="themeAtom";const hL="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";let pL=(e=21)=>{let t="",n=crypto.getRandomValues(new Uint8Array(e|=0));for(;e--;)t+=hL[n[e]&63];return t};const No=Ql([]);No.debugLabel="todosAtom";const mL=Ql(null,(e,t,n)=>{const r={id:pL(),body:n};t(No,[...e(No),r])}),gL=Ql(null,(e,t,n)=>{const o=e(No).filter(i=>i.id!==n);t(No,o)});function yL(){const{colorMode:e,toggleColorMode:t}=mu(),[n,r]=jd(Cp),[o]=jd(No),i=Ld(mL),s=Ld(gL);T.useEffect(()=>{r(e)},[e,r]);const a=()=>{r(l=>l==="light"?"dark":"light"),t()};return P.jsxs(kp,{p:4,children:[P.jsx(fL,{toggleTheme:a,theme:n}),P.jsx(wx,{size:"2xl",children:"Jotai-Todos App"}),P.jsx(aL,{addTodo:i}),P.jsx(dL,{todos:o,deleteTodo:s})]})}const vL=()=>{const[e]=jd(Cp);return P.jsxs(NI,{children:[P.jsx(nL,{initialColorMode:e}),P.jsx(yL,{})]})};I1(document.getElementById("root")).render(P.jsxs(T.StrictMode,{children:[P.jsx(C2,{}),P.jsx(vL,{})]})); + `;return`!${i?s:a}`.trim()}function cL(e={}){const{nonce:t}=e;return P.jsx("script",{id:"chakra-script",nonce:t,dangerouslySetInnerHTML:{__html:uL(e)}})}function kp(e){const{viewBox:t="0 0 24 24",d:n,displayName:r,defaultProps:o={}}=e,i=C.Children.toArray(e.path),s=Ie((a,l)=>P.jsx(Yo,{ref:l,viewBox:t,...o,...a,children:i.length?i:P.jsx("path",{fill:"currentColor",d:n})}));return s.displayName=r,s}const Cp=Ie(function(t,n){const{htmlSize:r,...o}=t,i=gp("Input",o),s=Dn(o),a=iL(s),l=Xe("chakra-input",t.className);return P.jsx(ue.input,{size:r,...a,__css:i.field,ref:n,className:l})});Cp.displayName="Input";Cp.id="Input";const Cx=ue("div",{baseStyle:{flex:1,justifySelf:"stretch",alignSelf:"stretch"}});Cx.displayName="Spacer";const Tx=e=>P.jsx(ue.div,{className:"chakra-stack__item",...e,__css:{display:"inline-block",flex:"0 0 auto",minWidth:0,...e.__css}});Tx.displayName="StackItem";function dL(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{"&":W2(n,o=>r[o])}}const Tp=Ie((e,t)=>{const{isInline:n,direction:r,align:o,justify:i,spacing:s="0.5rem",wrap:a,children:l,divider:u,className:c,shouldWrapChildren:d,...f}=e,y=n?"row":r??"column",v=C.useMemo(()=>dL({spacing:s,direction:y}),[s,y]),S=!!u,_=!d&&!S,p=C.useMemo(()=>{const m=j2(l);return _?m:m.map((b,T)=>{const E=typeof b.key<"u"?b.key:T,k=T+1===m.length,D=d?P.jsx(Tx,{children:b},E):b;if(!S)return D;const M=C.cloneElement(u,{__css:v}),O=k?null:M;return P.jsxs(C.Fragment,{children:[D,O]},E)})},[u,v,S,_,d,l]),h=Xe("chakra-stack",c);return P.jsx(ue.div,{ref:t,display:"flex",alignItems:o,justifyContent:i,flexDirection:y,flexWrap:a,gap:S?void 0:s,className:h,...f,children:p})});Tp.displayName="Stack";const _p=Ie((e,t)=>P.jsx(Tp,{align:"center",...e,direction:"row",ref:t}));_p.displayName="HStack";const _x=e=>P.jsx(ue.div,{className:"chakra-stack__divider",...e,__css:{...e.__css,borderWidth:0,alignSelf:"stretch",borderColor:"inherit",width:"auto",height:"auto"}});_x.displayName="StackDivider";const Pp=Ie((e,t)=>P.jsx(Tp,{align:"center",...e,direction:"column",ref:t}));Pp.displayName="VStack";function fL(e,t){const n=e??"bottom",o={"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"}}[n];return(o==null?void 0:o[t])??n}function hL(e,t){const n=o=>({...t,...o,position:fL((o==null?void 0:o.position)??(t==null?void 0:t.position),e)}),r=o=>{const i=n(o),s=bx(i);return nn.notify(s,i)};return r.update=(o,i)=>{nn.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,...$t(i.success,a)})).catch(a=>r.update(s,{status:"error",duration:5e3,...$t(i.error,a)}))},r.closeAll=nn.closeAll,r.close=nn.close,r.isActive=nn.isActive,r}function pL(e){const{theme:t}=fx(),n=GI();return C.useMemo(()=>hL(t.direction,{...n,...e}),[e,t.direction,n])}const Px=Ie(function(t,n){const r=Or("Heading",t),{className:o,...i}=Dn(t);return P.jsx(ue.h2,{ref:n,className:Xe("chakra-heading",t.className),...i,__css:r})});Px.displayName="Heading";const Ex=Ie(function(t,n){const r=Or("Text",t),{className:o,align:i,decoration:s,casing:a,...l}=Dn(t),u=vh({textAlign:t.align,textDecoration:t.decoration,textTransform:t.casing});return P.jsx(ue.p,{ref:n,className:Xe("chakra-text",t.className),...u,...l,__css:r})});Ex.displayName="Text";const mL=({addTodo:e})=>{const t=C.useRef(null),n=pL(),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 P.jsx("form",{onSubmit:o,children:P.jsxs(_p,{m:"8",children:[P.jsx(Cp,{variant:"filled",placeholder:"Add new todo",ref:t}),P.jsx(xp,{type:"submit",colorScheme:"green",px:"8",children:"Add"})]})})},gL=kp({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"}),yL=kp({displayName:"SunIcon",path:P.jsxs("g",{strokeLinejoin:"round",strokeLinecap:"round",strokeWidth:"2",fill:"none",stroke:"currentColor",children:[P.jsx("circle",{cx:"12",cy:"12",r:"5"}),P.jsx("path",{d:"M12 1v2"}),P.jsx("path",{d:"M12 21v2"}),P.jsx("path",{d:"M4.22 4.22l1.42 1.42"}),P.jsx("path",{d:"M18.36 18.36l1.42 1.42"}),P.jsx("path",{d:"M1 12h2"}),P.jsx("path",{d:"M21 12h2"}),P.jsx("path",{d:"M4.22 19.78l1.42-1.42"}),P.jsx("path",{d:"M18.36 5.64l1.42-1.42"})]})}),vL=kp({displayName:"DeleteIcon",path:P.jsx("g",{fill:"currentColor",children:P.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"})})}),SL=({todos:e,deleteTodo:t})=>{if(e.length===0)return P.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:P.jsx(_x,{})};return P.jsx(Pp,{...n,children:e.map(r=>P.jsxs(_p,{children:[P.jsx(Ex,{children:r.body}),P.jsx(Cx,{}),P.jsx(wp,{"aria-label":"Delete todo",icon:P.jsx(vL,{}),onClick:()=>t(r.id)})]},r.id))})},bL=({toggleTheme:e,theme:t})=>{const n={size:"lg",isRound:!0,variant:"ghost",icon:t==="light"?P.jsx(gL,{}):P.jsx(yL,{}),"aria-label":"Switch DarkMode"};return P.jsx(ux.div,{whileTap:{rotate:180},style:{display:"flex",alignSelf:"flex-end"},children:P.jsx(wp,{onClick:e,...n})})},Ep=Ql("light");Ep.debugLabel="themeAtom";const xL="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";let wL=(e=21)=>{let t="",n=crypto.getRandomValues(new Uint8Array(e|=0));for(;e--;)t+=xL[n[e]&63];return t};const Wo=Ql([]);Wo.debugLabel="todosAtom";const kL=Ql(null,(e,t,n)=>{const r={id:wL(),body:n};t(Wo,[...e(Wo),r])}),CL=Ql(null,(e,t,n)=>{const o=e(Wo).filter(i=>i.id!==n);t(Wo,o)});function TL(){const{colorMode:e,toggleColorMode:t}=yu(),[n,r]=Bd(Ep),[o]=Bd(Wo),i=Fd(kL),s=Fd(CL);C.useEffect(()=>{r(e)},[e,r]);const a=()=>{r(l=>l==="light"?"dark":"light"),t()};return P.jsxs(Pp,{p:4,children:[P.jsx(bL,{toggleTheme:a,theme:n}),P.jsx(Px,{size:"2xl",children:"Jotai-Todos App"}),P.jsx(mL,{addTodo:i}),P.jsx(SL,{todos:o,deleteTodo:s})]})}const _L=()=>{const[e]=Bd(Ep);return P.jsxs(qI,{children:[P.jsx(cL,{initialColorMode:e}),P.jsx(TL,{})]})};V1(document.getElementById("root")).render(P.jsxs(C.StrictMode,{children:[P.jsx($2,{}),P.jsx(_L,{})]})); diff --git a/index.html b/index.html index 8a72f78..ecf92bb 100644 --- a/index.html +++ b/index.html @@ -5,7 +5,7 @@ Todos - +