function MC(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 a of i.addedNodes)a.tagName==="LINK"&&a.rel==="modulepreload"&&r(a)}).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 Fi=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Va(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Sy={exports:{}},pu={},xy={exports:{}},J={};/** * @license React * react.production.min.js * * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */var Wa=Symbol.for("react.element"),RC=Symbol.for("react.portal"),zC=Symbol.for("react.fragment"),FC=Symbol.for("react.strict_mode"),IC=Symbol.for("react.profiler"),DC=Symbol.for("react.provider"),OC=Symbol.for("react.context"),LC=Symbol.for("react.forward_ref"),jC=Symbol.for("react.suspense"),BC=Symbol.for("react.memo"),NC=Symbol.for("react.lazy"),Rm=Symbol.iterator;function VC(e){return e===null||typeof e!="object"?null:(e=Rm&&e[Rm]||e["@@iterator"],typeof e=="function"?e:null)}var wy={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},ky=Object.assign,Cy={};function li(e,t,n){this.props=e,this.context=t,this.refs=Cy,this.updater=n||wy}li.prototype.isReactComponent={};li.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};li.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function _y(){}_y.prototype=li.prototype;function bh(e,t,n){this.props=e,this.context=t,this.refs=Cy,this.updater=n||wy}var Sh=bh.prototype=new _y;Sh.constructor=bh;ky(Sh,li.prototype);Sh.isPureReactComponent=!0;var zm=Array.isArray,Py=Object.prototype.hasOwnProperty,xh={current:null},Ty={key:!0,ref:!0,__self:!0,__source:!0};function Ey(e,t,n){var r,o={},i=null,a=null;if(t!=null)for(r in t.ref!==void 0&&(a=t.ref),t.key!==void 0&&(i=""+t.key),t)Py.call(t,r)&&!Ty.hasOwnProperty(r)&&(o[r]=t[r]);var s=arguments.length-2;if(s===1)o.children=n;else if(1>>1,G=M[B];if(0>>1;Bo(Ee,j))ceo(me,Ee)?(M[B]=me,M[ce]=j,B=ce):(M[B]=Ee,M[Z]=j,B=Z);else if(ceo(me,j))M[B]=me,M[ce]=j,B=ce;else break e}}return F}function o(M,F){var j=M.sortIndex-F.sortIndex;return j!==0?j:M.id-F.id}if(typeof performance=="object"&&typeof performance.now=="function"){var i=performance;e.unstable_now=function(){return i.now()}}else{var a=Date,s=a.now();e.unstable_now=function(){return a.now()-s}}var l=[],u=[],c=1,d=null,f=3,h=!1,v=!1,g=!1,x=typeof setTimeout=="function"?setTimeout:null,m=typeof clearTimeout=="function"?clearTimeout:null,p=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function y(M){for(var F=n(u);F!==null;){if(F.callback===null)r(u);else if(F.startTime<=M)r(u),F.sortIndex=F.expirationTime,t(l,F);else break;F=n(u)}}function k(M){if(g=!1,y(M),!v)if(n(l)!==null)v=!0,H(P);else{var F=n(u);F!==null&&L(k,F.startTime-M)}}function P(M,F){v=!1,g&&(g=!1,m($),$=-1),h=!0;var j=f;try{for(y(F),d=n(l);d!==null&&(!(d.expirationTime>F)||M&&!Q());){var B=d.callback;if(typeof B=="function"){d.callback=null,f=d.priorityLevel;var G=B(d.expirationTime<=F);F=e.unstable_now(),typeof G=="function"?d.callback=G:d===n(l)&&r(l),y(F)}else r(l);d=n(l)}if(d!==null)var U=!0;else{var Z=n(u);Z!==null&&L(k,Z.startTime-F),U=!1}return U}finally{d=null,f=j,h=!1}}var A=!1,T=null,$=-1,O=5,D=-1;function Q(){return!(e.unstable_now()-DM||125B?(M.sortIndex=j,t(u,M),n(l)===null&&M===n(u)&&(g?(m($),$=-1):g=!0,L(k,j-B))):(M.sortIndex=G,t(l,M),v||h||(v=!0,H(P))),M},e.unstable_shouldYield=Q,e.unstable_wrapCallback=function(M){var F=f;return function(){var j=f;f=F;try{return M.apply(this,arguments)}finally{f=j}}}})(Ry);My.exports=Ry;var JC=My.exports;/** * @license React * react-dom.production.min.js * * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */var zy=b,At=JC;function I(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Id=Object.prototype.hasOwnProperty,e_=/^[: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]*$/,Dm={},Om={};function t_(e){return Id.call(Om,e)?!0:Id.call(Dm,e)?!1:e_.test(e)?Om[e]=!0:(Dm[e]=!0,!1)}function n_(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 r_(e,t,n,r){if(t===null||typeof t>"u"||n_(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 pt(e,t,n,r,o,i,a){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=a}var tt={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){tt[e]=new pt(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];tt[t]=new pt(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){tt[e]=new pt(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){tt[e]=new pt(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){tt[e]=new pt(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){tt[e]=new pt(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){tt[e]=new pt(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){tt[e]=new pt(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){tt[e]=new pt(e,5,!1,e.toLowerCase(),null,!1,!1)});var kh=/[\-:]([a-z])/g;function Ch(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(kh,Ch);tt[t]=new pt(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(kh,Ch);tt[t]=new pt(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(kh,Ch);tt[t]=new pt(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){tt[e]=new pt(e,1,!1,e.toLowerCase(),null,!1,!1)});tt.xlinkHref=new pt("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){tt[e]=new pt(e,1,!1,e.toLowerCase(),null,!0,!0)});function _h(e,t,n,r){var o=tt.hasOwnProperty(t)?tt[t]:null;(o!==null?o.type!==0:r||!(2s||o[a]!==i[s]){var l=` `+o[a].replace(" at new "," at ");return e.displayName&&l.includes("")&&(l=l.replace("",e.displayName)),l}while(1<=a&&0<=s);break}}}finally{wc=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Ii(e):""}function o_(e){switch(e.tag){case 5:return Ii(e.type);case 16:return Ii("Lazy");case 13:return Ii("Suspense");case 19:return Ii("SuspenseList");case 0:case 2:case 15:return e=kc(e.type,!1),e;case 11:return e=kc(e.type.render,!1),e;case 1:return e=kc(e.type,!0),e;default:return""}}function jd(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 bo:return"Fragment";case yo:return"Portal";case Dd:return"Profiler";case Ph:return"StrictMode";case Od:return"Suspense";case Ld:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Dy:return(e.displayName||"Context")+".Consumer";case Iy:return(e._context.displayName||"Context")+".Provider";case Th:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Eh:return t=e.displayName||null,t!==null?t:jd(e.type)||"Memo";case Xn:t=e._payload,e=e._init;try{return jd(e(t))}catch{}}return null}function i_(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 jd(t);case 8:return t===Ph?"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 gr(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Ly(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function a_(e){var t=Ly(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(a){r=""+a,i.call(this,a)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(a){r=""+a},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function ms(e){e._valueTracker||(e._valueTracker=a_(e))}function jy(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=Ly(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function kl(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 Bd(e,t){var n=t.checked;return ze({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function jm(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=gr(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 By(e,t){t=t.checked,t!=null&&_h(e,"checked",t,!1)}function Nd(e,t){By(e,t);var n=gr(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")?Vd(e,t.type,n):t.hasOwnProperty("defaultValue")&&Vd(e,t.type,gr(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Bm(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 Vd(e,t,n){(t!=="number"||kl(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Di=Array.isArray;function Do(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o"+t.valueOf().toString()+"",t=vs.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function fa(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Ui={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},s_=["Webkit","ms","Moz","O"];Object.keys(Ui).forEach(function(e){s_.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Ui[t]=Ui[e]})});function Hy(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Ui.hasOwnProperty(e)&&Ui[e]?(""+t).trim():t+"px"}function Uy(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,o=Hy(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}var l_=ze({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function Ud(e,t){if(t){if(l_[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(I(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(I(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(I(61))}if(t.style!=null&&typeof t.style!="object")throw Error(I(62))}}function Gd(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 Kd=null;function $h(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Yd=null,Oo=null,Lo=null;function Wm(e){if(e=Ga(e)){if(typeof Yd!="function")throw Error(I(280));var t=e.stateNode;t&&(t=bu(t),Yd(e.stateNode,e.type,t))}}function Gy(e){Oo?Lo?Lo.push(e):Lo=[e]:Oo=e}function Ky(){if(Oo){var e=Oo,t=Lo;if(Lo=Oo=null,Wm(e),t)for(e=0;e>>=0,e===0?32:31-(b_(e)/S_|0)|0}var gs=64,ys=4194304;function Oi(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,a=n&268435455;if(a!==0){var s=a&~o;s!==0?r=Oi(s):(i&=a,i!==0&&(r=Oi(i)))}else a=n&~o,a!==0?r=Oi(a):i!==0&&(r=Oi(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 Ha(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Jt(t),e[t]=n}function C_(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=Ki),Zm=String.fromCharCode(32),Jm=!1;function h1(e,t){switch(e){case"keyup":return Z_.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function p1(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var So=!1;function e2(e,t){switch(e){case"compositionend":return p1(t);case"keypress":return t.which!==32?null:(Jm=!0,Zm);case"textInput":return e=t.data,e===Zm&&Jm?null:e;default:return null}}function t2(e,t){if(So)return e==="compositionend"||!Oh&&h1(e,t)?(e=d1(),qs=Fh=nr=null,So=!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=rv(n)}}function y1(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?y1(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function b1(){for(var e=window,t=kl();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=kl(e.document)}return t}function Lh(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 c2(e){var t=b1(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&y1(n.ownerDocument.documentElement,n)){if(r!==null&&Lh(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=ov(n,i);var a=ov(n,r);o&&a&&(e.rangeCount!==1||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==a.node||e.focusOffset!==a.offset)&&(t=t.createRange(),t.setStart(o.node,o.offset),e.removeAllRanges(),i>r?(e.addRange(t),e.extend(a.node,a.offset)):(t.setEnd(a.node,a.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,xo=null,ef=null,qi=null,tf=!1;function iv(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;tf||xo==null||xo!==kl(r)||(r=xo,"selectionStart"in r&&Lh(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}),qi&&ya(qi,r)||(qi=r,r=Al(ef,"onSelect"),0Co||(e.current=lf[Co],lf[Co]=null,Co--)}function be(e,t){Co++,lf[Co]=e.current,e.current=t}var yr={},st=xr(yr),bt=xr(!1),Kr=yr;function Zo(e,t){var n=e.type.contextTypes;if(!n)return yr;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o={},i;for(i in n)o[i]=t[i];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function St(e){return e=e.childContextTypes,e!=null}function Rl(){ke(bt),ke(st)}function fv(e,t,n){if(st.current!==yr)throw Error(I(168));be(st,t),be(bt,n)}function E1(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var o in r)if(!(o in t))throw Error(I(108,i_(e)||"Unknown",o));return ze({},n,r)}function zl(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||yr,Kr=st.current,be(st,e),be(bt,bt.current),!0}function hv(e,t,n){var r=e.stateNode;if(!r)throw Error(I(169));n?(e=E1(e,t,Kr),r.__reactInternalMemoizedMergedChildContext=e,ke(bt),ke(st),be(st,e)):ke(bt),be(bt,n)}var Tn=null,Su=!1,Oc=!1;function $1(e){Tn===null?Tn=[e]:Tn.push(e)}function w2(e){Su=!0,$1(e)}function wr(){if(!Oc&&Tn!==null){Oc=!0;var e=0,t=he;try{var n=Tn;for(he=1;e>=a,o-=a,An=1<<32-Jt(t)+o|n<$?(O=T,T=null):O=T.sibling;var D=f(m,T,y[$],k);if(D===null){T===null&&(T=O);break}e&&T&&D.alternate===null&&t(m,T),p=i(D,p,$),A===null?P=D:A.sibling=D,A=D,T=O}if($===y.length)return n(m,T),Pe&&Er(m,$),P;if(T===null){for(;$$?(O=T,T=null):O=T.sibling;var Q=f(m,T,D.value,k);if(Q===null){T===null&&(T=O);break}e&&T&&Q.alternate===null&&t(m,T),p=i(Q,p,$),A===null?P=Q:A.sibling=Q,A=Q,T=O}if(D.done)return n(m,T),Pe&&Er(m,$),P;if(T===null){for(;!D.done;$++,D=y.next())D=d(m,D.value,k),D!==null&&(p=i(D,p,$),A===null?P=D:A.sibling=D,A=D);return Pe&&Er(m,$),P}for(T=r(m,T);!D.done;$++,D=y.next())D=h(T,m,$,D.value,k),D!==null&&(e&&D.alternate!==null&&T.delete(D.key===null?$:D.key),p=i(D,p,$),A===null?P=D:A.sibling=D,A=D);return e&&T.forEach(function(fe){return t(m,fe)}),Pe&&Er(m,$),P}function x(m,p,y,k){if(typeof y=="object"&&y!==null&&y.type===bo&&y.key===null&&(y=y.props.children),typeof y=="object"&&y!==null){switch(y.$$typeof){case ps:e:{for(var P=y.key,A=p;A!==null;){if(A.key===P){if(P=y.type,P===bo){if(A.tag===7){n(m,A.sibling),p=o(A,y.props.children),p.return=m,m=p;break e}}else if(A.elementType===P||typeof P=="object"&&P!==null&&P.$$typeof===Xn&&Sv(P)===A.type){n(m,A.sibling),p=o(A,y.props),p.ref=Ci(m,A,y),p.return=m,m=p;break e}n(m,A);break}else t(m,A);A=A.sibling}y.type===bo?(p=Wr(y.props.children,m.mode,k,y.key),p.return=m,m=p):(k=rl(y.type,y.key,y.props,null,m.mode,k),k.ref=Ci(m,p,y),k.return=m,m=k)}return a(m);case yo:e:{for(A=y.key;p!==null;){if(p.key===A)if(p.tag===4&&p.stateNode.containerInfo===y.containerInfo&&p.stateNode.implementation===y.implementation){n(m,p.sibling),p=o(p,y.children||[]),p.return=m,m=p;break e}else{n(m,p);break}else t(m,p);p=p.sibling}p=Uc(y,m.mode,k),p.return=m,m=p}return a(m);case Xn:return A=y._init,x(m,p,A(y._payload),k)}if(Di(y))return v(m,p,y,k);if(bi(y))return g(m,p,y,k);_s(m,y)}return typeof y=="string"&&y!==""||typeof y=="number"?(y=""+y,p!==null&&p.tag===6?(n(m,p.sibling),p=o(p,y),p.return=m,m=p):(n(m,p),p=Hc(y,m.mode,k),p.return=m,m=p),a(m)):n(m,p)}return x}var ei=O1(!0),L1=O1(!1),Ka={},vn=xr(Ka),wa=xr(Ka),ka=xr(Ka);function jr(e){if(e===Ka)throw Error(I(174));return e}function Kh(e,t){switch(be(ka,t),be(wa,e),be(vn,Ka),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Hd(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=Hd(t,e)}ke(vn),be(vn,t)}function ti(){ke(vn),ke(wa),ke(ka)}function j1(e){jr(ka.current);var t=jr(vn.current),n=Hd(t,e.type);t!==n&&(be(wa,e),be(vn,n))}function Yh(e){wa.current===e&&(ke(vn),ke(wa))}var Ae=xr(0);function jl(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var Lc=[];function qh(){for(var e=0;en?n:4,e(!0);var r=jc.transition;jc.transition={};try{e(!1),t()}finally{he=n,jc.transition=r}}function tb(){return Ut().memoizedState}function P2(e,t,n){var r=dr(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},nb(e))rb(t,n);else if(n=z1(e,t,n,r),n!==null){var o=dt();en(n,e,r,o),ob(n,t,r)}}function T2(e,t,n){var r=dr(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(nb(e))rb(t,o);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var a=t.lastRenderedState,s=i(a,n);if(o.hasEagerState=!0,o.eagerState=s,nn(s,a)){var l=t.interleaved;l===null?(o.next=o,Uh(t)):(o.next=l.next,l.next=o),t.interleaved=o;return}}catch{}finally{}n=z1(e,t,o,r),n!==null&&(o=dt(),en(n,e,r,o),ob(n,t,r))}}function nb(e){var t=e.alternate;return e===Re||t!==null&&t===Re}function rb(e,t){Xi=Bl=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function ob(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Mh(e,n)}}var Nl={readContext:Ht,useCallback:rt,useContext:rt,useEffect:rt,useImperativeHandle:rt,useInsertionEffect:rt,useLayoutEffect:rt,useMemo:rt,useReducer:rt,useRef:rt,useState:rt,useDebugValue:rt,useDeferredValue:rt,useTransition:rt,useMutableSource:rt,useSyncExternalStore:rt,useId:rt,unstable_isNewReconciler:!1},E2={readContext:Ht,useCallback:function(e,t){return sn().memoizedState=[e,t===void 0?null:t],e},useContext:Ht,useEffect:wv,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Js(4194308,4,X1.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Js(4194308,4,e,t)},useInsertionEffect:function(e,t){return Js(4,2,e,t)},useMemo:function(e,t){var n=sn();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=sn();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=P2.bind(null,Re,e),[r.memoizedState,e]},useRef:function(e){var t=sn();return e={current:e},t.memoizedState=e},useState:xv,useDebugValue:ep,useDeferredValue:function(e){return sn().memoizedState=e},useTransition:function(){var e=xv(!1),t=e[0];return e=_2.bind(null,e[1]),sn().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=Re,o=sn();if(Pe){if(n===void 0)throw Error(I(407));n=n()}else{if(n=t(),qe===null)throw Error(I(349));qr&30||V1(r,t,n)}o.memoizedState=n;var i={value:n,getSnapshot:t};return o.queue=i,wv(H1.bind(null,r,i,e),[e]),r.flags|=2048,Pa(9,W1.bind(null,r,i,n,t),void 0,null),n},useId:function(){var e=sn(),t=qe.identifierPrefix;if(Pe){var n=Mn,r=An;n=(r&~(1<<32-Jt(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=Ca++,0<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=a.createElement(n,{is:r.is}):(e=a.createElement(n),n==="select"&&(a=e,r.multiple?a.multiple=!0:r.size&&(a.size=r.size))):e=a.createElementNS(e,n),e[fn]=t,e[xa]=r,hb(e,t,!1,!1),t.stateNode=e;e:{switch(a=Gd(n,r),n){case"dialog":xe("cancel",e),xe("close",e),o=r;break;case"iframe":case"object":case"embed":xe("load",e),o=r;break;case"video":case"audio":for(o=0;ori&&(t.flags|=128,r=!0,_i(i,!1),t.lanes=4194304)}else{if(!r)if(e=jl(a),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),_i(i,!0),i.tail===null&&i.tailMode==="hidden"&&!a.alternate&&!Pe)return ot(t),null}else 2*Oe()-i.renderingStartTime>ri&&n!==1073741824&&(t.flags|=128,r=!0,_i(i,!1),t.lanes=4194304);i.isBackwards?(a.sibling=t.child,t.child=a):(n=i.last,n!==null?n.sibling=a:t.child=a,i.last=a)}return i.tail!==null?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=Oe(),t.sibling=null,n=Ae.current,be(Ae,r?n&1|2:n&1),t):(ot(t),null);case 22:case 23:return ap(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?_t&1073741824&&(ot(t),t.subtreeFlags&6&&(t.flags|=8192)):ot(t),null;case 24:return null;case 25:return null}throw Error(I(156,t.tag))}function D2(e,t){switch(Bh(t),t.tag){case 1:return St(t.type)&&Rl(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return ti(),ke(bt),ke(st),qh(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return Yh(t),null;case 13:if(ke(Ae),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(I(340));Jo()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return ke(Ae),null;case 4:return ti(),null;case 10:return Hh(t.type._context),null;case 22:case 23:return ap(),null;case 24:return null;default:return null}}var Ts=!1,at=!1,O2=typeof WeakSet=="function"?WeakSet:Set,W=null;function Eo(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){De(e,t,r)}else n.current=null}function Sf(e,t,n){try{n()}catch(r){De(e,t,r)}}var Mv=!1;function L2(e,t){if(nf=El,e=b1(),Lh(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 a=0,s=-1,l=-1,u=0,c=0,d=e,f=null;t:for(;;){for(var h;d!==n||o!==0&&d.nodeType!==3||(s=a+o),d!==i||r!==0&&d.nodeType!==3||(l=a+r),d.nodeType===3&&(a+=d.nodeValue.length),(h=d.firstChild)!==null;)f=d,d=h;for(;;){if(d===e)break t;if(f===n&&++u===o&&(s=a),f===i&&++c===r&&(l=a),(h=d.nextSibling)!==null)break;d=f,f=d.parentNode}d=h}n=s===-1||l===-1?null:{start:s,end:l}}else n=null}n=n||{start:0,end:0}}else n=null;for(rf={focusedElem:e,selectionRange:n},El=!1,W=t;W!==null;)if(t=W,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,W=e;else for(;W!==null;){t=W;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 g=v.memoizedProps,x=v.memoizedState,m=t.stateNode,p=m.getSnapshotBeforeUpdate(t.elementType===t.type?g:qt(t.type,g),x);m.__reactInternalSnapshotBeforeUpdate=p}break;case 3:var y=t.stateNode.containerInfo;y.nodeType===1?y.textContent="":y.nodeType===9&&y.documentElement&&y.removeChild(y.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(I(163))}}catch(k){De(t,t.return,k)}if(e=t.sibling,e!==null){e.return=t.return,W=e;break}W=t.return}return v=Mv,Mv=!1,v}function Qi(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&&Sf(t,n,i)}o=o.next}while(o!==r)}}function ku(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 xf(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 vb(e){var t=e.alternate;t!==null&&(e.alternate=null,vb(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[fn],delete t[xa],delete t[sf],delete t[S2],delete t[x2])),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 gb(e){return e.tag===5||e.tag===3||e.tag===4}function Rv(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||gb(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 wf(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=Ml));else if(r!==4&&(e=e.child,e!==null))for(wf(e,t,n),e=e.sibling;e!==null;)wf(e,t,n),e=e.sibling}function kf(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(kf(e,t,n),e=e.sibling;e!==null;)kf(e,t,n),e=e.sibling}var Ze=null,Xt=!1;function Un(e,t,n){for(n=n.child;n!==null;)yb(e,t,n),n=n.sibling}function yb(e,t,n){if(mn&&typeof mn.onCommitFiberUnmount=="function")try{mn.onCommitFiberUnmount(mu,n)}catch{}switch(n.tag){case 5:at||Eo(n,t);case 6:var r=Ze,o=Xt;Ze=null,Un(e,t,n),Ze=r,Xt=o,Ze!==null&&(Xt?(e=Ze,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):Ze.removeChild(n.stateNode));break;case 18:Ze!==null&&(Xt?(e=Ze,n=n.stateNode,e.nodeType===8?Dc(e.parentNode,n):e.nodeType===1&&Dc(e,n),va(e)):Dc(Ze,n.stateNode));break;case 4:r=Ze,o=Xt,Ze=n.stateNode.containerInfo,Xt=!0,Un(e,t,n),Ze=r,Xt=o;break;case 0:case 11:case 14:case 15:if(!at&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){o=r=r.next;do{var i=o,a=i.destroy;i=i.tag,a!==void 0&&(i&2||i&4)&&Sf(n,t,a),o=o.next}while(o!==r)}Un(e,t,n);break;case 1:if(!at&&(Eo(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(s){De(n,t,s)}Un(e,t,n);break;case 21:Un(e,t,n);break;case 22:n.mode&1?(at=(r=at)||n.memoizedState!==null,Un(e,t,n),at=r):Un(e,t,n);break;default:Un(e,t,n)}}function zv(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new O2),t.forEach(function(r){var o=K2.bind(null,e,r);n.has(r)||(n.add(r),r.then(o,o))})}}function Kt(e,t){var n=t.deletions;if(n!==null)for(var r=0;ro&&(o=a),r&=~i}if(r=o,r=Oe()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*B2(r/1960))-r,10e?16:e,rr===null)var r=!1;else{if(e=rr,rr=null,Hl=0,re&6)throw Error(I(331));var o=re;for(re|=4,W=e.current;W!==null;){var i=W,a=i.child;if(W.flags&16){var s=i.deletions;if(s!==null){for(var l=0;lOe()-op?Vr(e,0):rp|=n),xt(e,t)}function Pb(e,t){t===0&&(e.mode&1?(t=ys,ys<<=1,!(ys&130023424)&&(ys=4194304)):t=1);var n=dt();e=Bn(e,t),e!==null&&(Ha(e,t,n),xt(e,n))}function G2(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Pb(e,n)}function K2(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,o=e.memoizedState;o!==null&&(n=o.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(I(314))}r!==null&&r.delete(t),Pb(e,n)}var Tb;Tb=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||bt.current)gt=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return gt=!1,F2(e,t,n);gt=!!(e.flags&131072)}else gt=!1,Pe&&t.flags&1048576&&A1(t,Il,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;el(e,t),e=t.pendingProps;var o=Zo(t,st.current);Bo(t,n),o=Qh(null,t,r,e,o,n);var i=Zh();return t.flags|=1,typeof o=="object"&&o!==null&&typeof o.render=="function"&&o.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,St(r)?(i=!0,zl(t)):i=!1,t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,Gh(t),o.updater=xu,t.stateNode=o,o._reactInternals=t,hf(t,r,e,n),t=vf(null,t,r,!0,i,n)):(t.tag=0,Pe&&i&&jh(t),ut(null,t,o,n),t=t.child),t;case 16:r=t.elementType;e:{switch(el(e,t),e=t.pendingProps,o=r._init,r=o(r._payload),t.type=r,o=t.tag=q2(r),e=qt(r,e),o){case 0:t=mf(null,t,r,e,n);break e;case 1:t=Ev(null,t,r,e,n);break e;case 11:t=Pv(null,t,r,e,n);break e;case 14:t=Tv(null,t,r,qt(r.type,e),n);break e}throw Error(I(306,r,""))}return t;case 0:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:qt(r,o),mf(e,t,r,o,n);case 1:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:qt(r,o),Ev(e,t,r,o,n);case 3:e:{if(cb(t),e===null)throw Error(I(387));r=t.pendingProps,i=t.memoizedState,o=i.element,F1(e,t),Ll(t,r,null,n);var a=t.memoizedState;if(r=a.element,i.isDehydrated)if(i={element:r,isDehydrated:!1,cache:a.cache,pendingSuspenseBoundaries:a.pendingSuspenseBoundaries,transitions:a.transitions},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){o=ni(Error(I(423)),t),t=$v(e,t,r,n,o);break e}else if(r!==o){o=ni(Error(I(424)),t),t=$v(e,t,r,n,o);break e}else for(Pt=lr(t.stateNode.containerInfo.firstChild),Tt=t,Pe=!0,Qt=null,n=L1(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Jo(),r===o){t=Nn(e,t,n);break e}ut(e,t,r,n)}t=t.child}return t;case 5:return j1(t),e===null&&cf(t),r=t.type,o=t.pendingProps,i=e!==null?e.memoizedProps:null,a=o.children,of(r,o)?a=null:i!==null&&of(r,i)&&(t.flags|=32),ub(e,t),ut(e,t,a,n),t.child;case 6:return e===null&&cf(t),null;case 13:return db(e,t,n);case 4:return Kh(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=ei(t,null,r,n):ut(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:qt(r,o),Pv(e,t,r,o,n);case 7:return ut(e,t,t.pendingProps,n),t.child;case 8:return ut(e,t,t.pendingProps.children,n),t.child;case 12:return ut(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,o=t.pendingProps,i=t.memoizedProps,a=o.value,be(Dl,r._currentValue),r._currentValue=a,i!==null)if(nn(i.value,a)){if(i.children===o.children&&!bt.current){t=Nn(e,t,n);break e}}else for(i=t.child,i!==null&&(i.return=t);i!==null;){var s=i.dependencies;if(s!==null){a=i.child;for(var l=s.firstContext;l!==null;){if(l.context===r){if(i.tag===1){l=Fn(-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),df(i.return,n,t),s.lanes|=n;break}l=l.next}}else if(i.tag===10)a=i.type===t.type?null:i.child;else if(i.tag===18){if(a=i.return,a===null)throw Error(I(341));a.lanes|=n,s=a.alternate,s!==null&&(s.lanes|=n),df(a,n,t),a=i.sibling}else a=i.child;if(a!==null)a.return=i;else for(a=i;a!==null;){if(a===t){a=null;break}if(i=a.sibling,i!==null){i.return=a.return,a=i;break}a=a.return}i=a}ut(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,Bo(t,n),o=Ht(o),r=r(o),t.flags|=1,ut(e,t,r,n),t.child;case 14:return r=t.type,o=qt(r,t.pendingProps),o=qt(r.type,o),Tv(e,t,r,o,n);case 15:return sb(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:qt(r,o),el(e,t),t.tag=1,St(r)?(e=!0,zl(t)):e=!1,Bo(t,n),D1(t,r,o),hf(t,r,o,n),vf(null,t,r,!0,e,n);case 19:return fb(e,t,n);case 22:return lb(e,t,n)}throw Error(I(156,t.tag))};function Eb(e,t){return e1(e,t)}function Y2(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 Vt(e,t,n,r){return new Y2(e,t,n,r)}function lp(e){return e=e.prototype,!(!e||!e.isReactComponent)}function q2(e){if(typeof e=="function")return lp(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Th)return 11;if(e===Eh)return 14}return 2}function fr(e,t){var n=e.alternate;return n===null?(n=Vt(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 rl(e,t,n,r,o,i){var a=2;if(r=e,typeof e=="function")lp(e)&&(a=1);else if(typeof e=="string")a=5;else e:switch(e){case bo:return Wr(n.children,o,i,t);case Ph:a=8,o|=8;break;case Dd:return e=Vt(12,n,t,o|2),e.elementType=Dd,e.lanes=i,e;case Od:return e=Vt(13,n,t,o),e.elementType=Od,e.lanes=i,e;case Ld:return e=Vt(19,n,t,o),e.elementType=Ld,e.lanes=i,e;case Oy:return _u(n,o,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Iy:a=10;break e;case Dy:a=9;break e;case Th:a=11;break e;case Eh:a=14;break e;case Xn:a=16,r=null;break e}throw Error(I(130,e==null?e:typeof e,""))}return t=Vt(a,n,t,o),t.elementType=e,t.type=r,t.lanes=i,t}function Wr(e,t,n,r){return e=Vt(7,e,r,t),e.lanes=n,e}function _u(e,t,n,r){return e=Vt(22,e,r,t),e.elementType=Oy,e.lanes=n,e.stateNode={isHidden:!1},e}function Hc(e,t,n){return e=Vt(6,e,null,t),e.lanes=n,e}function Uc(e,t,n){return t=Vt(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function X2(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=_c(0),this.expirationTimes=_c(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=_c(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function up(e,t,n,r,o,i,a,s,l){return e=new X2(e,t,n,s,l),t===1?(t=1,i===!0&&(t|=8)):t=0,i=Vt(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Gh(i),e}function Q2(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Rb)}catch(e){console.error(e)}}Rb(),Ay.exports=Rt;var hp=Ay.exports,Nv=hp;Fd.createRoot=Nv.createRoot,Fd.hydrateRoot=Nv.hydrateRoot;function nP(e){if(e.sheet)return e.sheet;for(var t=0;t0?Je(di,--wt):0,oi--,Be===10&&(oi=1,Mu--),Be}function Et(){return Be=wt2||$a(Be)>3?"":" "}function mP(e,t){for(;--t&&Et()&&!(Be<48||Be>102||Be>57&&Be<65||Be>70&&Be<97););return Ya(e,ol()+(t<6&&gn()==32&&Et()==32))}function $f(e){for(;Et();)switch(Be){case e:return wt;case 34:case 39:e!==34&&e!==39&&$f(Be);break;case 40:e===41&&$f(e);break;case 92:Et();break}return wt}function vP(e,t){for(;Et()&&e+Be!==47+10;)if(e+Be===42+42&&gn()===47)break;return"/*"+Ya(t,wt-1)+"*"+Au(e===47?e:Et())}function gP(e){for(;!$a(gn());)Et();return Ya(e,wt)}function yP(e){return Lb(al("",null,null,null,[""],e=Ob(e),0,[0],e))}function al(e,t,n,r,o,i,a,s,l){for(var u=0,c=0,d=a,f=0,h=0,v=0,g=1,x=1,m=1,p=0,y="",k=o,P=i,A=r,T=y;x;)switch(v=p,p=Et()){case 40:if(v!=108&&Je(T,d-1)==58){Ef(T+=se(il(p),"&","&\f"),"&\f")!=-1&&(m=-1);break}case 34:case 39:case 91:T+=il(p);break;case 9:case 10:case 13:case 32:T+=pP(v);break;case 92:T+=mP(ol()-1,7);continue;case 47:switch(gn()){case 42:case 47:As(bP(vP(Et(),ol()),t,n),l);break;default:T+="/"}break;case 123*g:s[u++]=cn(T)*m;case 125*g:case 59:case 0:switch(p){case 0:case 125:x=0;case 59+c:m==-1&&(T=se(T,/\f/g,"")),h>0&&cn(T)-d&&As(h>32?Wv(T+";",r,n,d-1):Wv(se(T," ","")+";",r,n,d-2),l);break;case 59:T+=";";default:if(As(A=Vv(T,t,n,u,c,o,s,y,k=[],P=[],d),i),p===123)if(c===0)al(T,t,A,A,k,i,d,s,P);else switch(f===99&&Je(T,3)===110?100:f){case 100:case 108:case 109:case 115:al(e,A,A,r&&As(Vv(e,A,A,0,0,o,s,y,o,k=[],d),P),o,P,d,s,r?k:P);break;default:al(T,A,A,A,[""],P,0,s,P)}}u=c=h=0,g=m=1,y=T="",d=a;break;case 58:d=1+cn(T),h=v;default:if(g<1){if(p==123)--g;else if(p==125&&g++==0&&hP()==125)continue}switch(T+=Au(p),p*g){case 38:m=c>0?1:(T+="\f",-1);break;case 44:s[u++]=(cn(T)-1)*m,m=1;break;case 64:gn()===45&&(T+=il(Et())),f=gn(),c=d=cn(y=T+=gP(ol())),p++;break;case 45:v===45&&cn(T)==2&&(g=0)}}return i}function Vv(e,t,n,r,o,i,a,s,l,u,c){for(var d=o-1,f=o===0?i:[""],h=vp(f),v=0,g=0,x=0;v0?f[m]+" "+p:se(p,/&\f/g,f[m])))&&(l[x++]=y);return Ru(e,t,n,o===0?pp:s,l,u,c)}function bP(e,t,n){return Ru(e,t,n,zb,Au(fP()),Ea(e,2,-2),0)}function Wv(e,t,n,r){return Ru(e,t,n,mp,Ea(e,0,r),Ea(e,r+1,-1),r)}function Vo(e,t){for(var n="",r=vp(e),o=0;o6)switch(Je(e,t+1)){case 109:if(Je(e,t+4)!==45)break;case 102:return se(e,/(.+:)(.+)-([^]+)/,"$1"+ae+"$2-$3$1"+Kl+(Je(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~Ef(e,"stretch")?Bb(se(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(Je(e,t+1)!==115)break;case 6444:switch(Je(e,cn(e)-3-(~Ef(e,"!important")&&10))){case 107:return se(e,":",":"+ae)+e;case 101:return se(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+ae+(Je(e,14)===45?"inline-":"")+"box$3$1"+ae+"$2$3$1"+it+"$2box$3")+e}break;case 5936:switch(Je(e,t+11)){case 114:return ae+e+it+se(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return ae+e+it+se(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return ae+e+it+se(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return ae+e+it+e+e}return e}var EP=function(t,n,r,o){if(t.length>-1&&!t.return)switch(t.type){case mp:t.return=Bb(t.value,t.length);break;case Fb:return Vo([Ti(t,{value:se(t.value,"@","@"+ae)})],o);case pp:if(t.length)return dP(t.props,function(i){switch(cP(i,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Vo([Ti(t,{props:[se(i,/:(read-\w+)/,":"+Kl+"$1")]})],o);case"::placeholder":return Vo([Ti(t,{props:[se(i,/:(plac\w+)/,":"+ae+"input-$1")]}),Ti(t,{props:[se(i,/:(plac\w+)/,":"+Kl+"$1")]}),Ti(t,{props:[se(i,/:(plac\w+)/,it+"input-$1")]})],o)}return""})}},$P=[EP],AP=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(g){var x=g.getAttribute("data-emotion");x.indexOf(" ")!==-1&&(document.head.appendChild(g),g.setAttribute("data-s",""))})}var o=t.stylisPlugins||$P,i={},a,s=[];a=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(g){for(var x=g.getAttribute("data-emotion").split(" "),m=1;m=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 VP={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},WP=/[A-Z]|^ms/g,HP=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Kb=function(t){return t.charCodeAt(1)===45},Gv=function(t){return t!=null&&typeof t!="boolean"},Gc=jb(function(e){return Kb(e)?e:e.replace(WP,"-$&").toLowerCase()}),Kv=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(HP,function(r,o,i){return dn={name:o,styles:i,next:dn},o})}return VP[t]!==1&&!Kb(t)&&typeof n=="number"&&n!==0?n+"px":n};function Aa(e,t,n){if(n==null)return"";if(n.__emotion_styles!==void 0)return n;switch(typeof n){case"boolean":return"";case"object":{if(n.anim===1)return dn={name:n.name,styles:n.styles,next:dn},n.name;if(n.styles!==void 0){var r=n.next;if(r!==void 0)for(;r!==void 0;)dn={name:r.name,styles:r.styles,next:dn},r=r.next;var o=n.styles+";";return o}return UP(e,t,n)}case"function":{if(e!==void 0){var i=dn,a=n(e);return dn=i,Aa(e,t,a)}break}}if(t==null)return n;var s=t[n];return s!==void 0?s:n}function UP(e,t,n){var r="";if(Array.isArray(n))for(var o=0;ow.jsx(Wu,{styles:Zb}),JP=({scope:e=""})=>w.jsx(Wu,{styles:Qb` html { line-height: 1.5; -webkit-text-size-adjust: 100%; font-family: system-ui, sans-serif; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; -moz-osx-font-smoothing: grayscale; touch-action: manipulation; } body { position: relative; min-height: 100%; margin: 0; font-feature-settings: "kern"; } ${e} :where(*, *::before, *::after) { border-width: 0; border-style: solid; box-sizing: border-box; word-wrap: break-word; } main { display: block; } ${e} hr { border-top-width: 1px; box-sizing: content-box; height: 0; overflow: visible; } ${e} :where(pre, code, kbd,samp) { font-family: SFMono-Regular, Menlo, Monaco, Consolas, monospace; font-size: 1em; } ${e} a { background-color: transparent; color: inherit; text-decoration: inherit; } ${e} abbr[title] { border-bottom: none; text-decoration: underline; -webkit-text-decoration: underline dotted; text-decoration: underline dotted; } ${e} :where(b, strong) { font-weight: bold; } ${e} small { font-size: 80%; } ${e} :where(sub,sup) { font-size: 75%; line-height: 0; position: relative; vertical-align: baseline; } ${e} sub { bottom: -0.25em; } ${e} sup { top: -0.5em; } ${e} img { border-style: none; } ${e} :where(button, input, optgroup, select, textarea) { font-family: inherit; font-size: 100%; line-height: 1.15; margin: 0; } ${e} :where(button, input) { overflow: visible; } ${e} :where(button, select) { text-transform: none; } ${e} :where( button::-moz-focus-inner, [type="button"]::-moz-focus-inner, [type="reset"]::-moz-focus-inner, [type="submit"]::-moz-focus-inner ) { border-style: none; padding: 0; } ${e} fieldset { padding: 0.35em 0.75em 0.625em; } ${e} legend { box-sizing: border-box; color: inherit; display: table; max-width: 100%; padding: 0; white-space: normal; } ${e} progress { vertical-align: baseline; } ${e} textarea { overflow: auto; } ${e} :where([type="checkbox"], [type="radio"]) { box-sizing: border-box; padding: 0; } ${e} input[type="number"]::-webkit-inner-spin-button, ${e} input[type="number"]::-webkit-outer-spin-button { -webkit-appearance: none !important; } ${e} input[type="number"] { -moz-appearance: textfield; } ${e} input[type="search"] { -webkit-appearance: textfield; outline-offset: -2px; } ${e} input[type="search"]::-webkit-search-decoration { -webkit-appearance: none !important; } ${e} ::-webkit-file-upload-button { -webkit-appearance: button; font: inherit; } ${e} details { display: block; } ${e} summary { display: list-item; } template { display: none; } [hidden] { display: none !important; } ${e} :where( blockquote, dl, dd, h1, h2, h3, h4, h5, h6, hr, figure, p, pre ) { margin: 0; } ${e} button { background: transparent; padding: 0; } ${e} fieldset { margin: 0; padding: 0; } ${e} :where(ol, ul) { margin: 0; padding: 0; } ${e} textarea { resize: vertical; } ${e} :where(button, [role="button"]) { cursor: pointer; } ${e} button::-moz-focus-inner { border: 0 !important; } ${e} table { border-collapse: collapse; } ${e} :where(h1, h2, h3, h4, h5, h6) { font-size: inherit; font-weight: inherit; } ${e} :where(button, input, optgroup, select, textarea) { padding: 0; line-height: inherit; color: inherit; } ${e} :where(img, svg, video, canvas, audio, iframe, embed, object) { display: block; } ${e} :where(img, video) { max-width: 100%; height: auto; } [data-js-focus-visible] :focus:not([data-focus-visible-added]):not( [data-focus-visible-disabled] ) { outline: none; box-shadow: none; } ${e} select::-ms-expand { display: none; } ${Zb} `});function eT(e,t){return`${e} returned \`undefined\`. Seems you forgot to wrap component within ${t}`}function Gt(e={}){const{name:t,strict:n=!0,hookName:r="useContext",providerName:o="Provider",errorMessage:i,defaultValue:a}=e,s=b.createContext(a);s.displayName=t;function l(){var u;const c=b.useContext(s);if(!c&&n){const d=new Error(i??eT(r,o));throw d.name="ContextError",(u=Error.captureStackTrace)==null||u.call(Error,d,l),d}return c}return[s.Provider,l,s]}var[tT,nT]=Gt({strict:!1,name:"PortalManagerContext"});function Jb(e){const{children:t,zIndex:n}=e;return w.jsx(tT,{value:{zIndex:n},children:t})}Jb.displayName="PortalManager";var hr=globalThis!=null&&globalThis.document?b.useLayoutEffect:b.useEffect,[eS,rT]=Gt({strict:!1,name:"PortalContext"}),xp="chakra-portal",oT=".chakra-portal",iT=e=>w.jsx("div",{className:"chakra-portal-zIndex",style:{position:"absolute",zIndex:e.zIndex,top:0,left:0,right:0},children:e.children}),aT=e=>{const{appendToParentPortal:t,children:n}=e,[r,o]=b.useState(null),i=b.useRef(null),[,a]=b.useState({});b.useEffect(()=>a({}),[]);const s=rT(),l=nT();hr(()=>{if(!r)return;const c=r.ownerDocument,d=t?s??c.body:c.body;if(!d)return;i.current=c.createElement("div"),i.current.className=xp,d.appendChild(i.current),a({});const f=i.current;return()=>{d.contains(f)&&d.removeChild(f)}},[r]);const u=l!=null&&l.zIndex?w.jsx(iT,{zIndex:l==null?void 0:l.zIndex,children:n}):n;return i.current?hp.createPortal(w.jsx(eS,{value:i.current,children:u}),i.current):w.jsx("span",{ref:c=>{c&&o(c)}})},sT=e=>{const{children:t,containerRef:n,appendToParentPortal:r}=e,o=n.current,i=o??(typeof window<"u"?document.body:void 0),a=b.useMemo(()=>{const l=o==null?void 0:o.ownerDocument.createElement("div");return l&&(l.className=xp),l},[o]),[,s]=b.useState({});return hr(()=>s({}),[]),hr(()=>{if(!(!a||!i))return i.appendChild(a),()=>{i.removeChild(a)}},[a,i]),i&&a?hp.createPortal(w.jsx(eS,{value:r?a:null,children:t}),a):null};function qa(e){const t={appendToParentPortal:!0,...e},{containerRef:n,...r}=t;return n?w.jsx(sT,{containerRef:n,...r}):w.jsx(aT,{...r})}qa.className=xp;qa.selector=oT;qa.displayName="Portal";function tS(){const e=b.useContext(Ma);if(!e)throw Error("useTheme: `theme` is undefined. Seems you forgot to wrap your app in `` or ``");return e}var wp=b.createContext({});wp.displayName="ColorModeContext";function kp(){const e=b.useContext(wp);if(e===void 0)throw new Error("useColorMode must be used within a ColorModeProvider");return e}var Ms={light:"chakra-ui-light",dark:"chakra-ui-dark"};function lT(e={}){const{preventTransition:t=!0}=e,n={setDataset:r=>{const o=t?n.preventTransition():void 0;document.documentElement.dataset.theme=r,document.documentElement.style.colorScheme=r,o==null||o()},setClassName(r){document.body.classList.add(r?Ms.dark:Ms.light),document.body.classList.remove(r?Ms.light:Ms.dark)},query(){return window.matchMedia("(prefers-color-scheme: dark)")},getSystemTheme(r){var o;return((o=n.query().matches)!=null?o:r==="dark")?"dark":"light"},addListener(r){const o=n.query(),i=a=>{r(a.matches?"dark":"light")};return typeof o.addListener=="function"?o.addListener(i):o.addEventListener("change",i),()=>{typeof o.removeListener=="function"?o.removeListener(i):o.removeEventListener("change",i)}},preventTransition(){const r=document.createElement("style");return r.appendChild(document.createTextNode("*{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}")),document.head.appendChild(r),()=>{window.getComputedStyle(document.body),requestAnimationFrame(()=>{requestAnimationFrame(()=>{document.head.removeChild(r)})})}}};return n}var uT="chakra-ui-color-mode";function cT(e){return{ssr:!1,type:"localStorage",get(t){if(!(globalThis!=null&&globalThis.document))return t;let n;try{n=localStorage.getItem(e)||t}catch{}return n||t},set(t){try{localStorage.setItem(e,t)}catch{}}}}var dT=cT(uT),Xv=()=>{};function Qv(e,t){return e.type==="cookie"&&e.ssr?e.get(t):t}function nS(e){const{value:t,children:n,options:{useSystemColorMode:r,initialColorMode:o,disableTransitionOnChange:i}={},colorModeManager:a=dT}=e,s=o==="dark"?"dark":"light",[l,u]=b.useState(()=>Qv(a,s)),[c,d]=b.useState(()=>Qv(a)),{getSystemTheme:f,setClassName:h,setDataset:v,addListener:g}=b.useMemo(()=>lT({preventTransition:i}),[i]),x=o==="system"&&!l?c:l,m=b.useCallback(k=>{const P=k==="system"?f():k;u(P),h(P==="dark"),v(P),a.set(P)},[a,f,h,v]);hr(()=>{o==="system"&&d(f())},[]),b.useEffect(()=>{const k=a.get();if(k){m(k);return}if(o==="system"){m("system");return}m(s)},[a,s,o,m]);const p=b.useCallback(()=>{m(x==="dark"?"light":"dark")},[x,m]);b.useEffect(()=>{if(r)return g(m)},[r,g,m]);const y=b.useMemo(()=>({colorMode:t??x,toggleColorMode:t?Xv:p,setColorMode:t?Xv:m,forced:t!==void 0}),[x,p,m,t]);return w.jsx(wp.Provider,{value:y,children:n})}nS.displayName="ColorModeProvider";function fT(){const e=kp(),t=tS();return{...e,theme:t}}var ye=(...e)=>e.filter(Boolean).join(" ");function tn(e){const t=typeof e;return e!=null&&(t==="object"||t==="function")&&!Array.isArray(e)}function or(e,...t){return hT(e)?e(...t):e}var hT=e=>typeof e=="function",Ie=e=>e?"":void 0,Kc=e=>e?!0:void 0;function Ge(...e){return function(n){e.some(r=>(r==null||r(n),n==null?void 0:n.defaultPrevented))}}function pT(...e){return function(n){e.forEach(r=>{r==null||r(n)})}}var Yl={exports:{}};Yl.exports;(function(e,t){var n=200,r="__lodash_hash_undefined__",o=800,i=16,a=9007199254740991,s="[object Arguments]",l="[object Array]",u="[object AsyncFunction]",c="[object Boolean]",d="[object Date]",f="[object Error]",h="[object Function]",v="[object GeneratorFunction]",g="[object Map]",x="[object Number]",m="[object Null]",p="[object Object]",y="[object Proxy]",k="[object RegExp]",P="[object Set]",A="[object String]",T="[object Undefined]",$="[object WeakMap]",O="[object ArrayBuffer]",D="[object DataView]",Q="[object Float32Array]",fe="[object Float64Array]",V="[object Int8Array]",z="[object Int16Array]",R="[object Int32Array]",H="[object Uint8Array]",L="[object Uint8ClampedArray]",M="[object Uint16Array]",F="[object Uint32Array]",j=/[\\^$.*+?()[\]{}|]/g,B=/^\[object .+?Constructor\]$/,G=/^(?:0|[1-9]\d*)$/,U={};U[Q]=U[fe]=U[V]=U[z]=U[R]=U[H]=U[L]=U[M]=U[F]=!0,U[s]=U[l]=U[O]=U[c]=U[D]=U[d]=U[f]=U[h]=U[g]=U[x]=U[p]=U[k]=U[P]=U[A]=U[$]=!1;var Z=typeof Fi=="object"&&Fi&&Fi.Object===Object&&Fi,Ee=typeof self=="object"&&self&&self.Object===Object&&self,ce=Z||Ee||Function("return this")(),me=t&&!t.nodeType&&t,$e=me&&!0&&e&&!e.nodeType&&e,ve=$e&&$e.exports===me,Fe=ve&&Z.process,nt=function(){try{var S=$e&&$e.require&&$e.require("util").types;return S||Fe&&Fe.binding&&Fe.binding("util")}catch{}}(),It=nt&&nt.isTypedArray;function mi(S,C,E){switch(E.length){case 0:return S.call(C);case 1:return S.call(C,E[0]);case 2:return S.call(C,E[0],E[1]);case 3:return S.call(C,E[0],E[1],E[2])}return S.apply(C,E)}function te(S,C){for(var E=-1,N=Array(S);++E-1}function Nk(S,C){var E=this.__data__,N=us(E,S);return N<0?(++this.size,E.push([S,C])):E[N][1]=C,this}Cn.prototype.clear=Ok,Cn.prototype.delete=Lk,Cn.prototype.get=jk,Cn.prototype.has=Bk,Cn.prototype.set=Nk;function lo(S){var C=-1,E=S==null?0:S.length;for(this.clear();++C1?E[ne-1]:void 0,Ce=ne>2?E[2]:void 0;for(ge=S.length>3&&typeof ge=="function"?(ne--,ge):void 0,Ce&&vC(E[0],E[1],Ce)&&(ge=ne<3?void 0:ge,ne=1),C=Object(C);++N-1&&S%1==0&&S0){if(++C>=o)return arguments[0]}else C=0;return S.apply(void 0,arguments)}}function CC(S){if(S!=null){try{return as.call(S)}catch{}try{return S+""}catch{}}return""}function fs(S,C){return S===C||S!==S&&C!==C}var pc=wm(function(){return arguments}())?wm:function(S){return gi(S)&&kn.call(S,"callee")&&!Tk.call(S,"callee")},mc=Array.isArray;function vc(S){return S!=null&&Tm(S.length)&&!gc(S)}function _C(S){return gi(S)&&vc(S)}var Pm=$k||AC;function gc(S){if(!Pr(S))return!1;var C=cs(S);return C==h||C==v||C==u||C==y}function Tm(S){return typeof S=="number"&&S>-1&&S%1==0&&S<=a}function Pr(S){var C=typeof S;return S!=null&&(C=="object"||C=="function")}function gi(S){return S!=null&&typeof S=="object"}function PC(S){if(!gi(S)||cs(S)!=p)return!1;var C=ym(S);if(C===null)return!0;var E=kn.call(C,"constructor")&&C.constructor;return typeof E=="function"&&E instanceof E&&as.call(E)==_k}var Em=It?xn(It):nC;function TC(S){return dC(S,$m(S))}function $m(S){return vc(S)?Zk(S,!0):rC(S)}var EC=fC(function(S,C,E,N){km(S,C,E,N)});function $C(S){return function(){return S}}function Am(S){return S}function AC(){return!1}e.exports=EC})(Yl,Yl.exports);var mT=Yl.exports;const pn=Va(mT);var vT=e=>/!(important)?$/.test(e),Zv=e=>typeof e=="string"?e.replace(/!(important)?$/,"").trim():e,gT=(e,t)=>n=>{const r=String(t),o=vT(r),i=Zv(r),a=e?`${e}.${i}`:i;let s=tn(n.__cssMap)&&a in n.__cssMap?n.__cssMap[a].varRef:t;return s=Zv(s),o?`${s} !important`:s};function Cp(e){const{scale:t,transform:n,compose:r}=e;return(i,a)=>{var s;const l=gT(t,i)(a);let u=(s=n==null?void 0:n(l,a))!=null?s:l;return r&&(u=r(u,a)),u}}var Rs=(...e)=>t=>e.reduce((n,r)=>r(n),t);function Ot(e,t){return n=>{const r={property:n,scale:e};return r.transform=Cp({scale:e,transform:t}),r}}var yT=({rtl:e,ltr:t})=>n=>n.direction==="rtl"?e:t;function bT(e){const{property:t,scale:n,transform:r}=e;return{scale:n,property:yT(t),transform:n?Cp({scale:n,compose:r}):r}}var rS=["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 ST(){return["translateX(var(--chakra-translate-x, 0))","translateY(var(--chakra-translate-y, 0))",...rS].join(" ")}function xT(){return["translate3d(var(--chakra-translate-x, 0), var(--chakra-translate-y, 0), 0)",...rS].join(" ")}var wT={"--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(" ")},kT={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 CT(e){return{"--chakra-ring-offset-shadow":"var(--chakra-ring-inset) 0 0 0 var(--chakra-ring-offset-width) var(--chakra-ring-offset-color)","--chakra-ring-shadow":"var(--chakra-ring-inset) 0 0 0 calc(var(--chakra-ring-width) + var(--chakra-ring-offset-width)) var(--chakra-ring-color)","--chakra-ring-width":e,boxShadow:["var(--chakra-ring-offset-shadow)","var(--chakra-ring-shadow)","var(--chakra-shadow, 0 0 #0000)"].join(", ")}}var _T={"row-reverse":{space:"--chakra-space-x-reverse",divide:"--chakra-divide-x-reverse"},"column-reverse":{space:"--chakra-space-y-reverse",divide:"--chakra-divide-y-reverse"}},Af={"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"},PT=new Set(Object.values(Af)),Mf=new Set(["none","-moz-initial","inherit","initial","revert","unset"]),TT=e=>e.trim();function ET(e,t){if(e==null||Mf.has(e))return e;if(!(Rf(e)||Mf.has(e)))return`url('${e}')`;const o=/(^[a-z-A-Z]+)\((.*)\)/g.exec(e),i=o==null?void 0:o[1],a=o==null?void 0:o[2];if(!i||!a)return e;const s=i.includes("-gradient")?i:`${i}-gradient`,[l,...u]=a.split(",").map(TT).filter(Boolean);if((u==null?void 0:u.length)===0)return e;const c=l in Af?Af[l]:l;u.unshift(c);const d=u.map(f=>{if(PT.has(f))return f;const h=f.indexOf(" "),[v,g]=h!==-1?[f.substr(0,h),f.substr(h+1)]:[f],x=Rf(g)?g:g&&g.split(" "),m=`colors.${v}`,p=m in t.__cssMap?t.__cssMap[m].varRef:v;return x?[p,...Array.isArray(x)?x:[x]].join(" "):p});return`${s}(${d.join(", ")})`}var Rf=e=>typeof e=="string"&&e.includes("(")&&e.includes(")"),$T=(e,t)=>ET(e,t??{});function AT(e){return/^var\(--.+\)$/.test(e)}var MT=e=>{const t=parseFloat(e.toString()),n=e.toString().replace(String(t),"");return{unitless:!n,value:t,unit:n}},an=e=>t=>`${e}(${t})`,oe={filter(e){return e!=="auto"?e:wT},backdropFilter(e){return e!=="auto"?e:kT},ring(e){return CT(oe.px(e))},bgClip(e){return e==="text"?{color:"transparent",backgroundClip:"text"}:{backgroundClip:e}},transform(e){return e==="auto"?ST():e==="auto-gpu"?xT():e},vh(e){return e==="$100vh"?"var(--chakra-vh)":e},px(e){if(e==null)return e;const{unitless:t}=MT(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(AT(e)||e==null)return e;const t=typeof e=="string"&&!e.endsWith("deg");return typeof e=="number"||t?`${e}deg`:e},gradient:$T,blur:an("blur"),opacity:an("opacity"),brightness:an("brightness"),contrast:an("contrast"),dropShadow:an("drop-shadow"),grayscale:an("grayscale"),hueRotate:an("hue-rotate"),invert:an("invert"),saturate:an("saturate"),sepia:an("sepia"),bgImage(e){return e==null||Rf(e)||Mf.has(e)?e:`url(${e})`},outline(e){const t=String(e)==="0"||String(e)==="none";return e!==null&&t?{outline:"2px solid transparent",outlineOffset:"2px"}:{outline:e}},flexDirection(e){var t;const{space:n,divide:r}=(t=_T[e])!=null?t:{},o={flexDirection:e};return n&&(o[n]=1),r&&(o[r]=1),o}},_={borderWidths:Ot("borderWidths"),borderStyles:Ot("borderStyles"),colors:Ot("colors"),borders:Ot("borders"),gradients:Ot("gradients",oe.gradient),radii:Ot("radii",oe.px),space:Ot("space",Rs(oe.vh,oe.px)),spaceT:Ot("space",Rs(oe.vh,oe.px)),degreeT(e){return{property:e,transform:oe.degree}},prop(e,t,n){return{property:e,scale:t,...t&&{transform:Cp({scale:t,transform:n})}}},propT(e,t){return{property:e,transform:t}},sizes:Ot("sizes",Rs(oe.vh,oe.px)),sizesT:Ot("sizes",Rs(oe.vh,oe.fraction)),shadows:Ot("shadows"),logical:bT,blur:Ot("blur",oe.blur)},sl={background:_.colors("background"),backgroundColor:_.colors("backgroundColor"),backgroundImage:_.gradients("backgroundImage"),backgroundSize:!0,backgroundPosition:!0,backgroundRepeat:!0,backgroundAttachment:!0,backgroundClip:{transform:oe.bgClip},bgSize:_.prop("backgroundSize"),bgPosition:_.prop("backgroundPosition"),bg:_.colors("background"),bgColor:_.colors("backgroundColor"),bgPos:_.prop("backgroundPosition"),bgRepeat:_.prop("backgroundRepeat"),bgAttachment:_.prop("backgroundAttachment"),bgGradient:_.gradients("backgroundImage"),bgClip:{transform:oe.bgClip}};Object.assign(sl,{bgImage:sl.backgroundImage,bgImg:sl.backgroundImage});var ie={border:_.borders("border"),borderWidth:_.borderWidths("borderWidth"),borderStyle:_.borderStyles("borderStyle"),borderColor:_.colors("borderColor"),borderRadius:_.radii("borderRadius"),borderTop:_.borders("borderTop"),borderBlockStart:_.borders("borderBlockStart"),borderTopLeftRadius:_.radii("borderTopLeftRadius"),borderStartStartRadius:_.logical({scale:"radii",property:{ltr:"borderTopLeftRadius",rtl:"borderTopRightRadius"}}),borderEndStartRadius:_.logical({scale:"radii",property:{ltr:"borderBottomLeftRadius",rtl:"borderBottomRightRadius"}}),borderTopRightRadius:_.radii("borderTopRightRadius"),borderStartEndRadius:_.logical({scale:"radii",property:{ltr:"borderTopRightRadius",rtl:"borderTopLeftRadius"}}),borderEndEndRadius:_.logical({scale:"radii",property:{ltr:"borderBottomRightRadius",rtl:"borderBottomLeftRadius"}}),borderRight:_.borders("borderRight"),borderInlineEnd:_.borders("borderInlineEnd"),borderBottom:_.borders("borderBottom"),borderBlockEnd:_.borders("borderBlockEnd"),borderBottomLeftRadius:_.radii("borderBottomLeftRadius"),borderBottomRightRadius:_.radii("borderBottomRightRadius"),borderLeft:_.borders("borderLeft"),borderInlineStart:{property:"borderInlineStart",scale:"borders"},borderInlineStartRadius:_.logical({scale:"radii",property:{ltr:["borderTopLeftRadius","borderBottomLeftRadius"],rtl:["borderTopRightRadius","borderBottomRightRadius"]}}),borderInlineEndRadius:_.logical({scale:"radii",property:{ltr:["borderTopRightRadius","borderBottomRightRadius"],rtl:["borderTopLeftRadius","borderBottomLeftRadius"]}}),borderX:_.borders(["borderLeft","borderRight"]),borderInline:_.borders("borderInline"),borderY:_.borders(["borderTop","borderBottom"]),borderBlock:_.borders("borderBlock"),borderTopWidth:_.borderWidths("borderTopWidth"),borderBlockStartWidth:_.borderWidths("borderBlockStartWidth"),borderTopColor:_.colors("borderTopColor"),borderBlockStartColor:_.colors("borderBlockStartColor"),borderTopStyle:_.borderStyles("borderTopStyle"),borderBlockStartStyle:_.borderStyles("borderBlockStartStyle"),borderBottomWidth:_.borderWidths("borderBottomWidth"),borderBlockEndWidth:_.borderWidths("borderBlockEndWidth"),borderBottomColor:_.colors("borderBottomColor"),borderBlockEndColor:_.colors("borderBlockEndColor"),borderBottomStyle:_.borderStyles("borderBottomStyle"),borderBlockEndStyle:_.borderStyles("borderBlockEndStyle"),borderLeftWidth:_.borderWidths("borderLeftWidth"),borderInlineStartWidth:_.borderWidths("borderInlineStartWidth"),borderLeftColor:_.colors("borderLeftColor"),borderInlineStartColor:_.colors("borderInlineStartColor"),borderLeftStyle:_.borderStyles("borderLeftStyle"),borderInlineStartStyle:_.borderStyles("borderInlineStartStyle"),borderRightWidth:_.borderWidths("borderRightWidth"),borderInlineEndWidth:_.borderWidths("borderInlineEndWidth"),borderRightColor:_.colors("borderRightColor"),borderInlineEndColor:_.colors("borderInlineEndColor"),borderRightStyle:_.borderStyles("borderRightStyle"),borderInlineEndStyle:_.borderStyles("borderInlineEndStyle"),borderTopRadius:_.radii(["borderTopLeftRadius","borderTopRightRadius"]),borderBottomRadius:_.radii(["borderBottomLeftRadius","borderBottomRightRadius"]),borderLeftRadius:_.radii(["borderTopLeftRadius","borderBottomLeftRadius"]),borderRightRadius:_.radii(["borderTopRightRadius","borderBottomRightRadius"])};Object.assign(ie,{rounded:ie.borderRadius,roundedTop:ie.borderTopRadius,roundedTopLeft:ie.borderTopLeftRadius,roundedTopRight:ie.borderTopRightRadius,roundedTopStart:ie.borderStartStartRadius,roundedTopEnd:ie.borderStartEndRadius,roundedBottom:ie.borderBottomRadius,roundedBottomLeft:ie.borderBottomLeftRadius,roundedBottomRight:ie.borderBottomRightRadius,roundedBottomStart:ie.borderEndStartRadius,roundedBottomEnd:ie.borderEndEndRadius,roundedLeft:ie.borderLeftRadius,roundedRight:ie.borderRightRadius,roundedStart:ie.borderInlineStartRadius,roundedEnd:ie.borderInlineEndRadius,borderStart:ie.borderInlineStart,borderEnd:ie.borderInlineEnd,borderTopStartRadius:ie.borderStartStartRadius,borderTopEndRadius:ie.borderStartEndRadius,borderBottomStartRadius:ie.borderEndStartRadius,borderBottomEndRadius:ie.borderEndEndRadius,borderStartRadius:ie.borderInlineStartRadius,borderEndRadius:ie.borderInlineEndRadius,borderStartWidth:ie.borderInlineStartWidth,borderEndWidth:ie.borderInlineEndWidth,borderStartColor:ie.borderInlineStartColor,borderEndColor:ie.borderInlineEndColor,borderStartStyle:ie.borderInlineStartStyle,borderEndStyle:ie.borderInlineEndStyle});var RT={color:_.colors("color"),textColor:_.colors("color"),fill:_.colors("fill"),stroke:_.colors("stroke")},zf={boxShadow:_.shadows("boxShadow"),mixBlendMode:!0,blendMode:_.prop("mixBlendMode"),backgroundBlendMode:!0,bgBlendMode:_.prop("backgroundBlendMode"),opacity:!0};Object.assign(zf,{shadow:zf.boxShadow});var zT={filter:{transform:oe.filter},blur:_.blur("--chakra-blur"),brightness:_.propT("--chakra-brightness",oe.brightness),contrast:_.propT("--chakra-contrast",oe.contrast),hueRotate:_.degreeT("--chakra-hue-rotate"),invert:_.propT("--chakra-invert",oe.invert),saturate:_.propT("--chakra-saturate",oe.saturate),dropShadow:_.propT("--chakra-drop-shadow",oe.dropShadow),backdropFilter:{transform:oe.backdropFilter},backdropBlur:_.blur("--chakra-backdrop-blur"),backdropBrightness:_.propT("--chakra-backdrop-brightness",oe.brightness),backdropContrast:_.propT("--chakra-backdrop-contrast",oe.contrast),backdropHueRotate:_.degreeT("--chakra-backdrop-hue-rotate"),backdropInvert:_.propT("--chakra-backdrop-invert",oe.invert),backdropSaturate:_.propT("--chakra-backdrop-saturate",oe.saturate)},ql={alignItems:!0,alignContent:!0,justifyItems:!0,justifyContent:!0,flexWrap:!0,flexDirection:{transform:oe.flexDirection},flex:!0,flexFlow:!0,flexGrow:!0,flexShrink:!0,flexBasis:_.sizes("flexBasis"),justifySelf:!0,alignSelf:!0,order:!0,placeItems:!0,placeContent:!0,placeSelf:!0,gap:_.space("gap"),rowGap:_.space("rowGap"),columnGap:_.space("columnGap")};Object.assign(ql,{flexDir:ql.flexDirection});var oS={gridGap:_.space("gridGap"),gridColumnGap:_.space("gridColumnGap"),gridRowGap:_.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},FT={appearance:!0,cursor:!0,resize:!0,userSelect:!0,pointerEvents:!0,outline:{transform:oe.outline},outlineOffset:!0,outlineColor:_.colors("outlineColor")},jt={width:_.sizesT("width"),inlineSize:_.sizesT("inlineSize"),height:_.sizes("height"),blockSize:_.sizes("blockSize"),boxSize:_.sizes(["width","height"]),minWidth:_.sizes("minWidth"),minInlineSize:_.sizes("minInlineSize"),minHeight:_.sizes("minHeight"),minBlockSize:_.sizes("minBlockSize"),maxWidth:_.sizes("maxWidth"),maxInlineSize:_.sizes("maxInlineSize"),maxHeight:_.sizes("maxHeight"),maxBlockSize:_.sizes("maxBlockSize"),overflow:!0,overflowX:!0,overflowY:!0,overscrollBehavior:!0,overscrollBehaviorX:!0,overscrollBehaviorY:!0,display:!0,aspectRatio:!0,hideFrom:{scale:"breakpoints",transform:(e,t)=>{var n,r,o;return{[`@media screen and (min-width: ${(o=(r=(n=t.__breakpoints)==null?void 0:n.get(e))==null?void 0:r.minW)!=null?o:e})`]:{display:"none"}}}},hideBelow:{scale:"breakpoints",transform:(e,t)=>{var n,r,o;return{[`@media screen and (max-width: ${(o=(r=(n=t.__breakpoints)==null?void 0:n.get(e))==null?void 0:r._minW)!=null?o:e})`]:{display:"none"}}}},verticalAlign:!0,boxSizing:!0,boxDecorationBreak:!0,float:_.propT("float",oe.float),objectFit:!0,objectPosition:!0,visibility:!0,isolation:!0};Object.assign(jt,{w:jt.width,h:jt.height,minW:jt.minWidth,maxW:jt.maxWidth,minH:jt.minHeight,maxH:jt.maxHeight,overscroll:jt.overscrollBehavior,overscrollX:jt.overscrollBehaviorX,overscrollY:jt.overscrollBehaviorY});var IT={listStyleType:!0,listStylePosition:!0,listStylePos:_.prop("listStylePosition"),listStyleImage:!0,listStyleImg:_.prop("listStyleImage")};function DT(e,t,n,r){const o=typeof t=="string"?t.split("."):[t];for(r=0;r{const t=new WeakMap;return(r,o,i,a)=>{if(typeof r>"u")return e(r,o,i);t.has(r)||t.set(r,new Map);const s=t.get(r);if(s.has(o))return s.get(o);const l=e(r,o,i,a);return s.set(o,l),l}},LT=OT(DT),jT={border:"0px",clip:"rect(0, 0, 0, 0)",width:"1px",height:"1px",margin:"-1px",padding:"0px",overflow:"hidden",whiteSpace:"nowrap",position:"absolute"},BT={position:"static",width:"auto",height:"auto",clip:"auto",padding:"0",margin:"0",overflow:"visible",whiteSpace:"normal"},Yc=(e,t,n)=>{const r={},o=LT(e,t,{});for(const i in o)i in n&&n[i]!=null||(r[i]=o[i]);return r},NT={srOnly:{transform(e){return e===!0?jT:e==="focusable"?BT:{}}},layerStyle:{processResult:!0,transform:(e,t,n)=>Yc(t,`layerStyles.${e}`,n)},textStyle:{processResult:!0,transform:(e,t,n)=>Yc(t,`textStyles.${e}`,n)},apply:{processResult:!0,transform:(e,t,n)=>Yc(t,e,n)}},ea={position:!0,pos:_.prop("position"),zIndex:_.prop("zIndex","zIndices"),inset:_.spaceT("inset"),insetX:_.spaceT(["left","right"]),insetInline:_.spaceT("insetInline"),insetY:_.spaceT(["top","bottom"]),insetBlock:_.spaceT("insetBlock"),top:_.spaceT("top"),insetBlockStart:_.spaceT("insetBlockStart"),bottom:_.spaceT("bottom"),insetBlockEnd:_.spaceT("insetBlockEnd"),left:_.spaceT("left"),insetInlineStart:_.logical({scale:"space",property:{ltr:"left",rtl:"right"}}),right:_.spaceT("right"),insetInlineEnd:_.logical({scale:"space",property:{ltr:"right",rtl:"left"}})};Object.assign(ea,{insetStart:ea.insetInlineStart,insetEnd:ea.insetInlineEnd});var VT={ring:{transform:oe.ring},ringColor:_.colors("--chakra-ring-color"),ringOffset:_.prop("--chakra-ring-offset-width"),ringOffsetColor:_.colors("--chakra-ring-offset-color"),ringInset:_.prop("--chakra-ring-inset")},we={margin:_.spaceT("margin"),marginTop:_.spaceT("marginTop"),marginBlockStart:_.spaceT("marginBlockStart"),marginRight:_.spaceT("marginRight"),marginInlineEnd:_.spaceT("marginInlineEnd"),marginBottom:_.spaceT("marginBottom"),marginBlockEnd:_.spaceT("marginBlockEnd"),marginLeft:_.spaceT("marginLeft"),marginInlineStart:_.spaceT("marginInlineStart"),marginX:_.spaceT(["marginInlineStart","marginInlineEnd"]),marginInline:_.spaceT("marginInline"),marginY:_.spaceT(["marginTop","marginBottom"]),marginBlock:_.spaceT("marginBlock"),padding:_.space("padding"),paddingTop:_.space("paddingTop"),paddingBlockStart:_.space("paddingBlockStart"),paddingRight:_.space("paddingRight"),paddingBottom:_.space("paddingBottom"),paddingBlockEnd:_.space("paddingBlockEnd"),paddingLeft:_.space("paddingLeft"),paddingInlineStart:_.space("paddingInlineStart"),paddingInlineEnd:_.space("paddingInlineEnd"),paddingX:_.space(["paddingInlineStart","paddingInlineEnd"]),paddingInline:_.space("paddingInline"),paddingY:_.space(["paddingTop","paddingBottom"]),paddingBlock:_.space("paddingBlock")};Object.assign(we,{m:we.margin,mt:we.marginTop,mr:we.marginRight,me:we.marginInlineEnd,marginEnd:we.marginInlineEnd,mb:we.marginBottom,ml:we.marginLeft,ms:we.marginInlineStart,marginStart:we.marginInlineStart,mx:we.marginX,my:we.marginY,p:we.padding,pt:we.paddingTop,py:we.paddingY,px:we.paddingX,pb:we.paddingBottom,pl:we.paddingLeft,ps:we.paddingInlineStart,paddingStart:we.paddingInlineStart,pr:we.paddingRight,pe:we.paddingInlineEnd,paddingEnd:we.paddingInlineEnd});var WT={textDecorationColor:_.colors("textDecorationColor"),textDecoration:!0,textDecor:{property:"textDecoration"},textDecorationLine:!0,textDecorationStyle:!0,textDecorationThickness:!0,textUnderlineOffset:!0,textShadow:_.shadows("textShadow")},HT={clipPath:!0,transform:_.propT("transform",oe.transform),transformOrigin:!0,translateX:_.spaceT("--chakra-translate-x"),translateY:_.spaceT("--chakra-translate-y"),skewX:_.degreeT("--chakra-skew-x"),skewY:_.degreeT("--chakra-skew-y"),scaleX:_.prop("--chakra-scale-x"),scaleY:_.prop("--chakra-scale-y"),scale:_.prop(["--chakra-scale-x","--chakra-scale-y"]),rotate:_.degreeT("--chakra-rotate")},UT={transition:!0,transitionDelay:!0,animation:!0,willChange:!0,transitionDuration:_.prop("transitionDuration","transition.duration"),transitionProperty:_.prop("transitionProperty","transition.property"),transitionTimingFunction:_.prop("transitionTimingFunction","transition.easing")},GT={fontFamily:_.prop("fontFamily","fonts"),fontSize:_.prop("fontSize","fontSizes",oe.px),fontWeight:_.prop("fontWeight","fontWeights"),lineHeight:_.prop("lineHeight","lineHeights"),letterSpacing:_.prop("letterSpacing","letterSpacings"),textAlign:!0,fontStyle:!0,textIndent:!0,wordBreak:!0,overflowWrap:!0,textOverflow:!0,textTransform:!0,whiteSpace:!0,isTruncated:{transform(e){if(e===!0)return{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}}},noOfLines:{static:{overflow:"hidden",textOverflow:"ellipsis",display:"-webkit-box",WebkitBoxOrient:"vertical",WebkitLineClamp:"var(--chakra-line-clamp)"},property:"--chakra-line-clamp"}},KT={scrollBehavior:!0,scrollSnapAlign:!0,scrollSnapStop:!0,scrollSnapType:!0,scrollMargin:_.spaceT("scrollMargin"),scrollMarginTop:_.spaceT("scrollMarginTop"),scrollMarginBottom:_.spaceT("scrollMarginBottom"),scrollMarginLeft:_.spaceT("scrollMarginLeft"),scrollMarginRight:_.spaceT("scrollMarginRight"),scrollMarginX:_.spaceT(["scrollMarginLeft","scrollMarginRight"]),scrollMarginY:_.spaceT(["scrollMarginTop","scrollMarginBottom"]),scrollPadding:_.spaceT("scrollPadding"),scrollPaddingTop:_.spaceT("scrollPaddingTop"),scrollPaddingBottom:_.spaceT("scrollPaddingBottom"),scrollPaddingLeft:_.spaceT("scrollPaddingLeft"),scrollPaddingRight:_.spaceT("scrollPaddingRight"),scrollPaddingX:_.spaceT(["scrollPaddingLeft","scrollPaddingRight"]),scrollPaddingY:_.spaceT(["scrollPaddingTop","scrollPaddingBottom"])};function iS(e){return tn(e)&&e.reference?e.reference:String(e)}var Uu=(e,...t)=>t.map(iS).join(` ${e} `).replace(/calc/g,""),Jv=(...e)=>`calc(${Uu("+",...e)})`,eg=(...e)=>`calc(${Uu("-",...e)})`,Ff=(...e)=>`calc(${Uu("*",...e)})`,tg=(...e)=>`calc(${Uu("/",...e)})`,ng=e=>{const t=iS(e);return t!=null&&!Number.isNaN(parseFloat(t))?String(t).startsWith("-")?String(t).slice(1):`-${t}`:Ff(t,-1)},Fr=Object.assign(e=>({add:(...t)=>Fr(Jv(e,...t)),subtract:(...t)=>Fr(eg(e,...t)),multiply:(...t)=>Fr(Ff(e,...t)),divide:(...t)=>Fr(tg(e,...t)),negate:()=>Fr(ng(e)),toString:()=>e.toString()}),{add:Jv,subtract:eg,multiply:Ff,divide:tg,negate:ng});function YT(e,t="-"){return e.replace(/\s+/g,t)}function qT(e){const t=YT(e.toString());return QT(XT(t))}function XT(e){return e.includes("\\.")?e:!Number.isInteger(parseFloat(e.toString()))?e.replace(".","\\."):e}function QT(e){return e.replace(/[!-,/:-@[-^`{-~]/g,"\\$&")}function ZT(e,t=""){return[t,e].filter(Boolean).join("-")}function JT(e,t){return`var(${e}${t?`, ${t}`:""})`}function eE(e,t=""){return qT(`--${ZT(e,t)}`)}function q(e,t,n){const r=eE(e,n);return{variable:r,reference:JT(r,t)}}function tE(e,t){const n={};for(const r of t){if(Array.isArray(r)){const[o,i]=r;n[o]=q(`${e}-${o}`,i);continue}n[r]=q(`${e}-${r}`)}return n}function nE(e){const t=e==null?0:e.length;return t?e[t-1]:void 0}function rE(e){const t=parseFloat(e.toString()),n=e.toString().replace(String(t),"");return{unitless:!n,value:t,unit:n}}function If(e){if(e==null)return e;const{unitless:t}=rE(e);return t||typeof e=="number"?`${e}px`:e}var aS=(e,t)=>parseInt(e[1],10)>parseInt(t[1],10)?1:-1,_p=e=>Object.fromEntries(Object.entries(e).sort(aS));function rg(e){const t=_p(e);return Object.assign(Object.values(t),t)}function oE(e){const t=Object.keys(_p(e));return new Set(t)}function og(e){var t;if(!e)return e;e=(t=If(e))!=null?t:e;const n=-.02;return typeof e=="number"?`${e+n}`:e.replace(/(\d+\.?\d*)/u,r=>`${parseFloat(r)+n}`)}function ji(e,t){const n=["@media screen"];return e&&n.push("and",`(min-width: ${If(e)})`),t&&n.push("and",`(max-width: ${If(t)})`),n.join(" ")}function iE(e){var t;if(!e)return null;e.base=(t=e.base)!=null?t:"0px";const n=rg(e),r=Object.entries(e).sort(aS).map(([a,s],l,u)=>{var c;let[,d]=(c=u[l+1])!=null?c:[];return d=parseFloat(d)>0?og(d):void 0,{_minW:og(s),breakpoint:a,minW:s,maxW:d,maxWQuery:ji(null,d),minWQuery:ji(s),minMaxQuery:ji(s,d)}}),o=oE(e),i=Array.from(o.values());return{keys:o,normalized:n,isResponsive(a){const s=Object.keys(a);return s.length>0&&s.every(l=>o.has(l))},asObject:_p(e),asArray:rg(e),details:r,get(a){return r.find(s=>s.breakpoint===a)},media:[null,...n.map(a=>ji(a)).slice(1)],toArrayValue(a){if(!tn(a))throw new Error("toArrayValue: value must be an object");const s=i.map(l=>{var u;return(u=a[l])!=null?u:null});for(;nE(s)===null;)s.pop();return s},toObjectValue(a){if(!Array.isArray(a))throw new Error("toObjectValue: value must be an array");return a.reduce((s,l,u)=>{const c=i[u];return c!=null&&l!=null&&(s[c]=l),s},{})}}}var Qe={hover:(e,t)=>`${e}:hover ${t}, ${e}[data-hover] ${t}`,focus:(e,t)=>`${e}:focus ${t}, ${e}[data-focus] ${t}`,focusVisible:(e,t)=>`${e}:focus-visible ${t}`,focusWithin:(e,t)=>`${e}:focus-within ${t}`,active:(e,t)=>`${e}:active ${t}, ${e}[data-active] ${t}`,disabled:(e,t)=>`${e}:disabled ${t}, ${e}[data-disabled] ${t}`,invalid:(e,t)=>`${e}:invalid ${t}, ${e}[data-invalid] ${t}`,checked:(e,t)=>`${e}:checked ${t}, ${e}[data-checked] ${t}`,indeterminate:(e,t)=>`${e}:indeterminate ${t}, ${e}[aria-checked=mixed] ${t}, ${e}[data-indeterminate] ${t}`,readOnly:(e,t)=>`${e}:read-only ${t}, ${e}[readonly] ${t}, ${e}[data-read-only] ${t}`,expanded:(e,t)=>`${e}:read-only ${t}, ${e}[aria-expanded=true] ${t}, ${e}[data-expanded] ${t}`,placeholderShown:(e,t)=>`${e}:placeholder-shown ${t}`},Gn=e=>sS(t=>e(t,"&"),"[role=group]","[data-group]",".group"),_n=e=>sS(t=>e(t,"~ &"),"[data-peer]",".peer"),sS=(e,...t)=>t.map(e).join(", "),Gu={_hover:"&:hover, &[data-hover]",_active:"&:active, &[data-active]",_focus:"&:focus, &[data-focus]",_highlighted:"&[data-highlighted]",_focusWithin:"&:focus-within",_focusVisible:"&:focus-visible, &[data-focus-visible]",_disabled:"&:disabled, &[disabled], &[aria-disabled=true], &[data-disabled]",_readOnly:"&[aria-readonly=true], &[readonly], &[data-readonly]",_before:"&::before",_after:"&::after",_empty:"&:empty",_expanded:"&[aria-expanded=true], &[data-expanded]",_checked:"&[aria-checked=true], &[data-checked]",_grabbed:"&[aria-grabbed=true], &[data-grabbed]",_pressed:"&[aria-pressed=true], &[data-pressed]",_invalid:"&[aria-invalid=true], &[data-invalid]",_valid:"&[data-valid], &[data-state=valid]",_loading:"&[data-loading], &[aria-busy=true]",_selected:"&[aria-selected=true], &[data-selected]",_hidden:"&[hidden], &[data-hidden]",_autofill:"&:-webkit-autofill",_even:"&:nth-of-type(even)",_odd:"&:nth-of-type(odd)",_first:"&:first-of-type",_firstLetter:"&::first-letter",_last:"&:last-of-type",_notFirst:"&:not(:first-of-type)",_notLast:"&:not(:last-of-type)",_visited:"&:visited",_activeLink:"&[aria-current=page]",_activeStep:"&[aria-current=step]",_indeterminate:"&:indeterminate, &[aria-checked=mixed], &[data-indeterminate]",_groupHover:Gn(Qe.hover),_peerHover:_n(Qe.hover),_groupFocus:Gn(Qe.focus),_peerFocus:_n(Qe.focus),_groupFocusVisible:Gn(Qe.focusVisible),_peerFocusVisible:_n(Qe.focusVisible),_groupActive:Gn(Qe.active),_peerActive:_n(Qe.active),_groupDisabled:Gn(Qe.disabled),_peerDisabled:_n(Qe.disabled),_groupInvalid:Gn(Qe.invalid),_peerInvalid:_n(Qe.invalid),_groupChecked:Gn(Qe.checked),_peerChecked:_n(Qe.checked),_groupFocusWithin:Gn(Qe.focusWithin),_peerFocusWithin:_n(Qe.focusWithin),_peerPlaceholderShown:_n(Qe.placeholderShown),_placeholder:"&::placeholder",_placeholderShown:"&:placeholder-shown",_fullScreen:"&:fullscreen",_selection:"&::selection",_rtl:"[dir=rtl] &, &[dir=rtl]",_ltr:"[dir=ltr] &, &[dir=ltr]",_mediaDark:"@media (prefers-color-scheme: dark)",_mediaReduceMotion:"@media (prefers-reduced-motion: reduce)",_dark:".chakra-ui-dark &:not([data-theme]),[data-theme=dark] &:not([data-theme]),&[data-theme=dark]",_light:".chakra-ui-light &:not([data-theme]),[data-theme=light] &:not([data-theme]),&[data-theme=light]",_horizontal:"&[data-orientation=horizontal]",_vertical:"&[data-orientation=vertical]"},lS=Object.keys(Gu);function ig(e,t){return q(String(e).replace(/\./g,"-"),void 0,t)}function aE(e,t){let n={};const r={};for(const[o,i]of Object.entries(e)){const{isSemantic:a,value:s}=i,{variable:l,reference:u}=ig(o,t==null?void 0:t.cssVarPrefix);if(!a){if(o.startsWith("space")){const f=o.split("."),[h,...v]=f,g=`${h}.-${v.join(".")}`,x=Fr.negate(s),m=Fr.negate(u);r[g]={value:x,var:l,varRef:m}}n[l]=s,r[o]={value:s,var:l,varRef:u};continue}const c=f=>{const v=[String(o).split(".")[0],f].join(".");if(!e[v])return f;const{reference:x}=ig(v,t==null?void 0:t.cssVarPrefix);return x},d=tn(s)?s:{default:s};n=pn(n,Object.entries(d).reduce((f,[h,v])=>{var g,x;if(!v)return f;const m=c(`${v}`);if(h==="default")return f[l]=m,f;const p=(x=(g=Gu)==null?void 0:g[h])!=null?x:h;return f[p]={[l]:m},f},{})),r[o]={value:u,var:l,varRef:u}}return{cssVars:n,cssMap:r}}function sE(e,t=[]){const n=Object.assign({},e);for(const r of t)r in n&&delete n[r];return n}function lE(e,t){const n={};for(const r of t)r in e&&(n[r]=e[r]);return n}function uE(e){return typeof e=="object"&&e!=null&&!Array.isArray(e)}function ag(e,t,n={}){const{stop:r,getKey:o}=n;function i(a,s=[]){var l;if(uE(a)||Array.isArray(a)){const u={};for(const[c,d]of Object.entries(a)){const f=(l=o==null?void 0:o(c))!=null?l:c,h=[...s,f];if(r!=null&&r(a,h))return t(a,s);u[f]=i(d,h)}return u}return t(a,s)}return i(e)}var cE=["colors","borders","borderWidths","borderStyles","fonts","fontSizes","fontWeights","gradients","letterSpacings","lineHeights","radii","space","shadows","sizes","zIndices","transition","blur","breakpoints"];function dE(e){return lE(e,cE)}function fE(e){return e.semanticTokens}function hE(e){const{__cssMap:t,__cssVars:n,__breakpoints:r,...o}=e;return o}var pE=e=>lS.includes(e)||e==="default";function mE({tokens:e,semanticTokens:t}){const n={};return ag(e,(r,o)=>{r!=null&&(n[o.join(".")]={isSemantic:!1,value:r})}),ag(t,(r,o)=>{r!=null&&(n[o.join(".")]={isSemantic:!0,value:r})},{stop:r=>Object.keys(r).every(pE)}),n}function vE(e){var t;const n=hE(e),r=dE(n),o=fE(n),i=mE({tokens:r,semanticTokens:o}),a=(t=n.config)==null?void 0:t.cssVarPrefix,{cssMap:s,cssVars:l}=aE(i,{cssVarPrefix:a});return Object.assign(n,{__cssVars:{...{"--chakra-ring-inset":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-ring-offset-width":"0px","--chakra-ring-offset-color":"#fff","--chakra-ring-color":"rgba(66, 153, 225, 0.6)","--chakra-ring-offset-shadow":"0 0 #0000","--chakra-ring-shadow":"0 0 #0000","--chakra-space-x-reverse":"0","--chakra-space-y-reverse":"0"},...l},__cssMap:s,__breakpoints:iE(n.breakpoints)}),n}var Pp=pn({},sl,ie,RT,ql,jt,zT,VT,FT,oS,NT,ea,zf,we,KT,GT,WT,HT,IT,UT),gE=Object.assign({},we,jt,ql,oS,ea),yE=Object.keys(gE),bE=[...Object.keys(Pp),...lS],SE={...Pp,...Gu},xE=e=>e in SE,wE=e=>t=>{if(!t.__breakpoints)return e;const{isResponsive:n,toArrayValue:r,media:o}=t.__breakpoints,i={};for(const a in e){let s=or(e[a],t);if(s==null)continue;if(s=tn(s)&&n(s)?r(s):s,!Array.isArray(s)){i[a]=s;continue}const l=s.slice(0,o.length).length;for(let u=0;ue.startsWith("--")&&typeof t=="string"&&!CE(t),PE=(e,t)=>{var n,r;if(t==null)return t;const o=l=>{var u,c;return(c=(u=e.__cssMap)==null?void 0:u[l])==null?void 0:c.varRef},i=l=>{var u;return(u=o(l))!=null?u:l},[a,s]=kE(t);return t=(r=(n=o(a))!=null?n:i(s))!=null?r:i(t),t};function TE(e){const{configs:t={},pseudos:n={},theme:r}=e,o=(i,a=!1)=>{var s,l,u;const c=or(i,r),d=wE(c)(r);let f={};for(let h in d){const v=d[h];let g=or(v,r);h in n&&(h=n[h]),_E(h,g)&&(g=PE(r,g));let x=t[h];if(x===!0&&(x={property:h}),tn(g)){f[h]=(s=f[h])!=null?s:{},f[h]=pn({},f[h],o(g,!0));continue}let m=(u=(l=x==null?void 0:x.transform)==null?void 0:l.call(x,g,r,c))!=null?u:g;m=x!=null&&x.processResult?o(m,!0):m;const p=or(x==null?void 0:x.property,r);if(!a&&(x!=null&&x.static)){const y=or(x.static,r);f=pn({},f,y)}if(p&&Array.isArray(p)){for(const y of p)f[y]=m;continue}if(p){p==="&"&&tn(m)?f=pn({},f,m):f[p]=m;continue}if(tn(m)){f=pn({},f,m);continue}f[h]=m}return f};return o}var uS=e=>t=>TE({theme:t,pseudos:Gu,configs:Pp})(e);function Se(e){return{definePartsStyle(t){return t},defineMultiStyleConfig(t){return{parts:e,...t}}}}function EE(e,t){if(Array.isArray(e))return e;if(tn(e))return t(e);if(e!=null)return[e]}function $E(e,t){for(let n=t+1;n{pn(u,{[y]:f?p[y]:{[m]:p[y]}})});continue}if(!h){f?pn(u,p):u[m]=p;continue}u[m]=p}}return u}}function ME(e){return t=>{var n;const{variant:r,size:o,theme:i}=t,a=AE(i);return pn({},or((n=e.baseStyle)!=null?n:{},t),a(e,"sizes",o,t),a(e,"variants",r,t))}}function rn(e){return sE(e,["styleConfig","size","variant","colorScheme"])}var RE={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"},zE={"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)"},FE={"ultra-fast":"50ms",faster:"100ms",fast:"150ms",normal:"200ms",slow:"300ms",slower:"400ms","ultra-slow":"500ms"},IE={property:RE,easing:zE,duration:FE},DE=IE,OE={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},LE=OE,jE={none:0,"1px":"1px solid","2px":"2px solid","4px":"4px solid","8px":"8px solid"},BE=jE,NE={base:"0em",sm:"30em",md:"48em",lg:"62em",xl:"80em","2xl":"96em"},VE=NE,WE={transparent:"transparent",current:"currentColor",black:"#000000",white:"#FFFFFF",whiteAlpha:{50:"rgba(255, 255, 255, 0.04)",100:"rgba(255, 255, 255, 0.06)",200:"rgba(255, 255, 255, 0.08)",300:"rgba(255, 255, 255, 0.16)",400:"rgba(255, 255, 255, 0.24)",500:"rgba(255, 255, 255, 0.36)",600:"rgba(255, 255, 255, 0.48)",700:"rgba(255, 255, 255, 0.64)",800:"rgba(255, 255, 255, 0.80)",900:"rgba(255, 255, 255, 0.92)"},blackAlpha:{50:"rgba(0, 0, 0, 0.04)",100:"rgba(0, 0, 0, 0.06)",200:"rgba(0, 0, 0, 0.08)",300:"rgba(0, 0, 0, 0.16)",400:"rgba(0, 0, 0, 0.24)",500:"rgba(0, 0, 0, 0.36)",600:"rgba(0, 0, 0, 0.48)",700:"rgba(0, 0, 0, 0.64)",800:"rgba(0, 0, 0, 0.80)",900:"rgba(0, 0, 0, 0.92)"},gray:{50:"#F7FAFC",100:"#EDF2F7",200:"#E2E8F0",300:"#CBD5E0",400:"#A0AEC0",500:"#718096",600:"#4A5568",700:"#2D3748",800:"#1A202C",900:"#171923"},red:{50:"#FFF5F5",100:"#FED7D7",200:"#FEB2B2",300:"#FC8181",400:"#F56565",500:"#E53E3E",600:"#C53030",700:"#9B2C2C",800:"#822727",900:"#63171B"},orange:{50:"#FFFAF0",100:"#FEEBC8",200:"#FBD38D",300:"#F6AD55",400:"#ED8936",500:"#DD6B20",600:"#C05621",700:"#9C4221",800:"#7B341E",900:"#652B19"},yellow:{50:"#FFFFF0",100:"#FEFCBF",200:"#FAF089",300:"#F6E05E",400:"#ECC94B",500:"#D69E2E",600:"#B7791F",700:"#975A16",800:"#744210",900:"#5F370E"},green:{50:"#F0FFF4",100:"#C6F6D5",200:"#9AE6B4",300:"#68D391",400:"#48BB78",500:"#38A169",600:"#2F855A",700:"#276749",800:"#22543D",900:"#1C4532"},teal:{50:"#E6FFFA",100:"#B2F5EA",200:"#81E6D9",300:"#4FD1C5",400:"#38B2AC",500:"#319795",600:"#2C7A7B",700:"#285E61",800:"#234E52",900:"#1D4044"},blue:{50:"#ebf8ff",100:"#bee3f8",200:"#90cdf4",300:"#63b3ed",400:"#4299e1",500:"#3182ce",600:"#2b6cb0",700:"#2c5282",800:"#2a4365",900:"#1A365D"},cyan:{50:"#EDFDFD",100:"#C4F1F9",200:"#9DECF9",300:"#76E4F7",400:"#0BC5EA",500:"#00B5D8",600:"#00A3C4",700:"#0987A0",800:"#086F83",900:"#065666"},purple:{50:"#FAF5FF",100:"#E9D8FD",200:"#D6BCFA",300:"#B794F4",400:"#9F7AEA",500:"#805AD5",600:"#6B46C1",700:"#553C9A",800:"#44337A",900:"#322659"},pink:{50:"#FFF5F7",100:"#FED7E2",200:"#FBB6CE",300:"#F687B3",400:"#ED64A6",500:"#D53F8C",600:"#B83280",700:"#97266D",800:"#702459",900:"#521B41"},linkedin:{50:"#E8F4F9",100:"#CFEDFB",200:"#9BDAF3",300:"#68C7EC",400:"#34B3E4",500:"#00A0DC",600:"#008CC9",700:"#0077B5",800:"#005E93",900:"#004471"},facebook:{50:"#E8F4F9",100:"#D9DEE9",200:"#B7C2DA",300:"#6482C0",400:"#4267B2",500:"#385898",600:"#314E89",700:"#29487D",800:"#223B67",900:"#1E355B"},messenger:{50:"#D0E6FF",100:"#B9DAFF",200:"#A2CDFF",300:"#7AB8FF",400:"#2E90FF",500:"#0078FF",600:"#0063D1",700:"#0052AC",800:"#003C7E",900:"#002C5C"},whatsapp:{50:"#dffeec",100:"#b9f5d0",200:"#90edb3",300:"#65e495",400:"#3cdd78",500:"#22c35e",600:"#179848",700:"#0c6c33",800:"#01421c",900:"#001803"},twitter:{50:"#E5F4FD",100:"#C8E9FB",200:"#A8DCFA",300:"#83CDF7",400:"#57BBF5",500:"#1DA1F2",600:"#1A94DA",700:"#1681BF",800:"#136B9E",900:"#0D4D71"},telegram:{50:"#E3F2F9",100:"#C5E4F3",200:"#A2D4EC",300:"#7AC1E4",400:"#47A9DA",500:"#0088CC",600:"#007AB8",700:"#006BA1",800:"#005885",900:"#003F5E"}},HE=WE,UE={none:"0",sm:"0.125rem",base:"0.25rem",md:"0.375rem",lg:"0.5rem",xl:"0.75rem","2xl":"1rem","3xl":"1.5rem",full:"9999px"},GE=UE,KE={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"},YE=KE,qE={none:0,sm:"4px",base:"8px",md:"12px",lg:"16px",xl:"24px","2xl":"40px","3xl":"64px"},XE=qE,QE={letterSpacings:{tighter:"-0.05em",tight:"-0.025em",normal:"0",wide:"0.025em",wider:"0.05em",widest:"0.1em"},lineHeights:{normal:"normal",none:1,shorter:1.25,short:1.375,base:1.5,tall:1.625,taller:"2",3:".75rem",4:"1rem",5:"1.25rem",6:"1.5rem",7:"1.75rem",8:"2rem",9:"2.25rem",10:"2.5rem"},fontWeights:{hairline:100,thin:200,light:300,normal:400,medium:500,semibold:600,bold:700,extrabold:800,black:900},fonts:{heading:'-apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"',body:'-apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"',mono:'SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace'},fontSizes:{"3xs":"0.45rem","2xs":"0.625rem",xs:"0.75rem",sm:"0.875rem",md:"1rem",lg:"1.125rem",xl:"1.25rem","2xl":"1.5rem","3xl":"1.875rem","4xl":"2.25rem","5xl":"3rem","6xl":"3.75rem","7xl":"4.5rem","8xl":"6rem","9xl":"8rem"}},cS=QE,dS={px:"1px",.5:"0.125rem",1:"0.25rem",1.5:"0.375rem",2:"0.5rem",2.5:"0.625rem",3:"0.75rem",3.5:"0.875rem",4:"1rem",5:"1.25rem",6:"1.5rem",7:"1.75rem",8:"2rem",9:"2.25rem",10:"2.5rem",12:"3rem",14:"3.5rem",16:"4rem",20:"5rem",24:"6rem",28:"7rem",32:"8rem",36:"9rem",40:"10rem",44:"11rem",48:"12rem",52:"13rem",56:"14rem",60:"15rem",64:"16rem",72:"18rem",80:"20rem",96:"24rem"},ZE={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"},JE={sm:"640px",md:"768px",lg:"1024px",xl:"1280px"},e$={...dS,...ZE,container:JE},fS=e$,t$={breakpoints:VE,zIndices:LE,radii:GE,blur:XE,colors:HE,...cS,sizes:fS,shadows:YE,space:dS,borders:BE,transition:DE},{defineMultiStyleConfig:n$,definePartsStyle:Bi}=Se(["stepper","step","title","description","indicator","separator","icon","number"]),En=q("stepper-indicator-size"),Ao=q("stepper-icon-size"),Mo=q("stepper-title-font-size"),Ni=q("stepper-description-font-size"),Ei=q("stepper-accent-color"),r$=Bi(({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"},[Ei.variable]:`colors.${e}.500`,_dark:{[Ei.variable]:`colors.${e}.200`}},title:{fontSize:Mo.reference,fontWeight:"medium"},description:{fontSize:Ni.reference,color:"chakra-subtle-text"},number:{fontSize:Mo.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:Ao.reference,height:Ao.reference},indicator:{flexShrink:0,borderRadius:"full",width:En.reference,height:En.reference,display:"flex",justifyContent:"center",alignItems:"center","&[data-status=active]":{borderWidth:"2px",borderColor:Ei.reference},"&[data-status=complete]":{bg:Ei.reference,color:"chakra-inverse-text"},"&[data-status=incomplete]":{borderWidth:"2px"}},separator:{bg:"chakra-border-color",flex:"1","&[data-status=complete]":{bg:Ei.reference},"&[data-orientation=horizontal]":{width:"100%",height:"2px",marginStart:"2"},"&[data-orientation=vertical]":{width:"2px",position:"absolute",height:"100%",maxHeight:`calc(100% - ${En.reference} - 8px)`,top:`calc(${En.reference} + 4px)`,insetStart:`calc(${En.reference} / 2 - 1px)`}}})),o$=n$({baseStyle:r$,sizes:{xs:Bi({stepper:{[En.variable]:"sizes.4",[Ao.variable]:"sizes.3",[Mo.variable]:"fontSizes.xs",[Ni.variable]:"fontSizes.xs"}}),sm:Bi({stepper:{[En.variable]:"sizes.6",[Ao.variable]:"sizes.4",[Mo.variable]:"fontSizes.sm",[Ni.variable]:"fontSizes.xs"}}),md:Bi({stepper:{[En.variable]:"sizes.8",[Ao.variable]:"sizes.5",[Mo.variable]:"fontSizes.md",[Ni.variable]:"fontSizes.sm"}}),lg:Bi({stepper:{[En.variable]:"sizes.10",[Ao.variable]:"sizes.6",[Mo.variable]:"fontSizes.lg",[Ni.variable]:"fontSizes.md"}})},defaultProps:{size:"md",colorScheme:"blue"}});function de(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 de(e,t)}function i(...c){for(const d of c)d in t||(t[d]=l(d));return de(e,t)}function a(){return Object.fromEntries(Object.entries(t).map(([d,f])=>[d,f.selector]))}function s(){return Object.fromEntries(Object.entries(t).map(([d,f])=>[d,f.className]))}function l(c){const h=`chakra-${(["container","root"].includes(c??"")?[e]:[e,c]).filter(Boolean).join("__")}`;return{className:h,selector:`.${h}`,toString:()=>c}}return{parts:o,toPart:l,extend:i,selectors:a,classnames:s,get keys(){return Object.keys(t)},__type:{}}}var i$=de("accordion").parts("root","container","button","panel").extend("icon"),a$=de("alert").parts("title","description","container").extend("icon","spinner"),s$=de("avatar").parts("label","badge","container").extend("excessLabel","group"),l$=de("breadcrumb").parts("link","item","container").extend("separator");de("button").parts();var u$=de("checkbox").parts("control","icon","container").extend("label");de("progress").parts("track","filledTrack").extend("label");var c$=de("drawer").parts("overlay","dialogContainer","dialog").extend("header","closeButton","body","footer"),d$=de("editable").parts("preview","input","textarea"),f$=de("form").parts("container","requiredIndicator","helperText"),h$=de("formError").parts("text","icon"),p$=de("input").parts("addon","field","element"),m$=de("list").parts("container","item","icon"),v$=de("menu").parts("button","list","item").extend("groupTitle","command","divider"),g$=de("modal").parts("overlay","dialogContainer","dialog").extend("header","closeButton","body","footer"),y$=de("numberinput").parts("root","field","stepperGroup","stepper");de("pininput").parts("field");var b$=de("popover").parts("content","header","body","footer").extend("popper","arrow","closeButton"),S$=de("progress").parts("label","filledTrack","track"),x$=de("radio").parts("container","control","label"),w$=de("select").parts("field","icon"),k$=de("slider").parts("container","track","thumb","filledTrack","mark"),C$=de("stat").parts("container","label","helpText","number","icon"),_$=de("switch").parts("container","track","thumb"),P$=de("table").parts("table","thead","tbody","tr","th","td","tfoot","caption"),T$=de("tabs").parts("root","tab","tablist","tabpanel","tabpanels","indicator"),E$=de("tag").parts("container","label","closeButton"),$$=de("card").parts("container","header","body","footer");function Br(e,t,n){return Math.min(Math.max(e,n),t)}class A$ extends Error{constructor(t){super(`Failed to parse color: "${t}"`)}}var Vi=A$;function Tp(e){if(typeof e!="string")throw new Vi(e);if(e.trim().toLowerCase()==="transparent")return[0,0,0,0];let t=e.trim();t=L$.test(e)?z$(e):e;const n=F$.exec(t);if(n){const a=Array.from(n).slice(1);return[...a.slice(0,3).map(s=>parseInt(Ra(s,2),16)),parseInt(Ra(a[3]||"f",2),16)/255]}const r=I$.exec(t);if(r){const a=Array.from(r).slice(1);return[...a.slice(0,3).map(s=>parseInt(s,16)),parseInt(a[3]||"ff",16)/255]}const o=D$.exec(t);if(o){const a=Array.from(o).slice(1);return[...a.slice(0,3).map(s=>parseInt(s,10)),parseFloat(a[3]||"1")]}const i=O$.exec(t);if(i){const[a,s,l,u]=Array.from(i).slice(1).map(parseFloat);if(Br(0,100,s)!==s)throw new Vi(e);if(Br(0,100,l)!==l)throw new Vi(e);return[...j$(a,s,l),Number.isNaN(u)?1:u]}throw new Vi(e)}function M$(e){let t=5381,n=e.length;for(;n;)t=t*33^e.charCodeAt(--n);return(t>>>0)%2341}const sg=e=>parseInt(e.replace(/_/g,""),36),R$="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=sg(t.substring(0,3)),r=sg(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 z$(e){const t=e.toLowerCase().trim(),n=R$[M$(t)];if(!n)throw new Vi(e);return`#${n}`}const Ra=(e,t)=>Array.from(Array(t)).map(()=>e).join(""),F$=new RegExp(`^#${Ra("([a-f0-9])",3)}([a-f0-9])?$`,"i"),I$=new RegExp(`^#${Ra("([a-f0-9]{2})",3)}([a-f0-9]{2})?$`,"i"),D$=new RegExp(`^rgba?\\(\\s*(\\d+)\\s*${Ra(",\\s*(\\d+)\\s*",2)}(?:,\\s*([\\d.]+))?\\s*\\)$`,"i"),O$=/^hsla?\(\s*([\d.]+)\s*,\s*([\d.]+)%\s*,\s*([\d.]+)%(?:\s*,\s*([\d.]+))?\s*\)$/i,L$=/^[a-z]+$/i,lg=e=>Math.round(e*255),j$=(e,t,n)=>{let r=n/100;if(t===0)return[r,r,r].map(lg);const o=(e%360+360)%360/60,i=(1-Math.abs(2*r-1))*(t/100),a=i*(1-Math.abs(o%2-1));let s=0,l=0,u=0;o>=0&&o<1?(s=i,l=a):o>=1&&o<2?(s=a,l=i):o>=2&&o<3?(l=i,u=a):o>=3&&o<4?(l=a,u=i):o>=4&&o<5?(s=a,u=i):o>=5&&o<6&&(s=i,u=a);const c=r-i/2,d=s+c,f=l+c,h=u+c;return[d,f,h].map(lg)};function B$(e,t,n,r){return`rgba(${Br(0,255,e).toFixed()}, ${Br(0,255,t).toFixed()}, ${Br(0,255,n).toFixed()}, ${parseFloat(Br(0,1,r).toFixed(3))})`}function N$(e,t){const[n,r,o,i]=Tp(e);return B$(n,r,o,i-t)}function V$(e){const[t,n,r,o]=Tp(e);let i=a=>{const s=Br(0,255,a).toString(16);return s.length===1?`0${s}`:s};return`#${i(t)}${i(n)}${i(r)}${o<1?i(Math.round(o*255)):""}`}function W$(e,t,n,r,o){for(t=t.split?t.split("."):t,r=0;rObject.keys(e).length===0,ct=(e,t,n)=>{const r=W$(e,`colors.${t}`,t);try{return V$(r),r}catch{return n??"#000000"}},U$=e=>{const[t,n,r]=Tp(e);return(t*299+n*587+r*114)/1e3},G$=e=>t=>{const n=ct(t,e);return U$(n)<128?"dark":"light"},K$=e=>t=>G$(e)(t)==="dark",ii=(e,t)=>n=>{const r=ct(n,e);return N$(r,1-t)};function ug(e="1rem",t="rgba(255, 255, 255, 0.15)"){return{backgroundImage:`linear-gradient( 45deg, ${t} 25%, transparent 25%, transparent 50%, ${t} 50%, ${t} 75%, transparent 75%, transparent )`,backgroundSize:`${e} ${e}`}}var Y$=()=>`#${Math.floor(Math.random()*16777215).toString(16).padEnd(6,"0")}`;function q$(e){const t=Y$();return!e||H$(e)?t:e.string&&e.colors?Q$(e.string,e.colors):e.string&&!e.colors?X$(e.string):e.colors&&!e.string?Z$(e.colors):t}function X$(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 Q$(e,t){let n=0;if(e.length===0)return t[0];for(let r=0;rn.colorMode==="dark"?t:e}function Ep(e){const{orientation:t,vertical:n,horizontal:r}=e;return t?t==="vertical"?n:r:{}}function hS(e){return tn(e)&&e.reference?e.reference:String(e)}var Ku=(e,...t)=>t.map(hS).join(` ${e} `).replace(/calc/g,""),cg=(...e)=>`calc(${Ku("+",...e)})`,dg=(...e)=>`calc(${Ku("-",...e)})`,Df=(...e)=>`calc(${Ku("*",...e)})`,fg=(...e)=>`calc(${Ku("/",...e)})`,hg=e=>{const t=hS(e);return t!=null&&!Number.isNaN(parseFloat(t))?String(t).startsWith("-")?String(t).slice(1):`-${t}`:Df(t,-1)},$n=Object.assign(e=>({add:(...t)=>$n(cg(e,...t)),subtract:(...t)=>$n(dg(e,...t)),multiply:(...t)=>$n(Df(e,...t)),divide:(...t)=>$n(fg(e,...t)),negate:()=>$n(hg(e)),toString:()=>e.toString()}),{add:cg,subtract:dg,multiply:Df,divide:fg,negate:hg});function J$(e){return!Number.isInteger(parseFloat(e.toString()))}function e5(e,t="-"){return e.replace(/\s+/g,t)}function pS(e){const t=e5(e.toString());return t.includes("\\.")?e:J$(e)?t.replace(".","\\."):e}function t5(e,t=""){return[t,pS(e)].filter(Boolean).join("-")}function n5(e,t){return`var(${pS(e)}${t?`, ${t}`:""})`}function r5(e,t=""){return`--${t5(e,t)}`}function Ue(e,t){const n=r5(e,t==null?void 0:t.prefix);return{variable:n,reference:n5(n,o5(t==null?void 0:t.fallback))}}function o5(e){return typeof e=="string"?e:e==null?void 0:e.reference}var{defineMultiStyleConfig:i5,definePartsStyle:ll}=Se(_$.keys),ta=Ue("switch-track-width"),Hr=Ue("switch-track-height"),qc=Ue("switch-track-diff"),a5=$n.subtract(ta,Hr),Of=Ue("switch-thumb-x"),$i=Ue("switch-bg"),s5=e=>{const{colorScheme:t}=e;return{borderRadius:"full",p:"0.5",width:[ta.reference],height:[Hr.reference],transitionProperty:"common",transitionDuration:"fast",[$i.variable]:"colors.gray.300",_dark:{[$i.variable]:"colors.whiteAlpha.400"},_focusVisible:{boxShadow:"outline"},_disabled:{opacity:.4,cursor:"not-allowed"},_checked:{[$i.variable]:`colors.${t}.500`,_dark:{[$i.variable]:`colors.${t}.200`}},bg:$i.reference}},l5={bg:"white",transitionProperty:"transform",transitionDuration:"normal",borderRadius:"inherit",width:[Hr.reference],height:[Hr.reference],_checked:{transform:`translateX(${Of.reference})`}},u5=ll(e=>({container:{[qc.variable]:a5,[Of.variable]:qc.reference,_rtl:{[Of.variable]:$n(qc).negate().toString()}},track:s5(e),thumb:l5})),c5={sm:ll({container:{[ta.variable]:"1.375rem",[Hr.variable]:"sizes.3"}}),md:ll({container:{[ta.variable]:"1.875rem",[Hr.variable]:"sizes.4"}}),lg:ll({container:{[ta.variable]:"2.875rem",[Hr.variable]:"sizes.6"}})},d5=i5({baseStyle:u5,sizes:c5,defaultProps:{size:"md",colorScheme:"blue"}}),{defineMultiStyleConfig:f5,definePartsStyle:Wo}=Se(P$.keys),h5=Wo({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"}}),Xl={"&[data-is-numeric=true]":{textAlign:"end"}},p5=Wo(e=>{const{colorScheme:t}=e;return{th:{color:K("gray.600","gray.400")(e),borderBottom:"1px",borderColor:K(`${t}.100`,`${t}.700`)(e),...Xl},td:{borderBottom:"1px",borderColor:K(`${t}.100`,`${t}.700`)(e),...Xl},caption:{color:K("gray.600","gray.100")(e)},tfoot:{tr:{"&:last-of-type":{th:{borderBottomWidth:0}}}}}}),m5=Wo(e=>{const{colorScheme:t}=e;return{th:{color:K("gray.600","gray.400")(e),borderBottom:"1px",borderColor:K(`${t}.100`,`${t}.700`)(e),...Xl},td:{borderBottom:"1px",borderColor:K(`${t}.100`,`${t}.700`)(e),...Xl},caption:{color:K("gray.600","gray.100")(e)},tbody:{tr:{"&:nth-of-type(odd)":{"th, td":{borderBottomWidth:"1px",borderColor:K(`${t}.100`,`${t}.700`)(e)},td:{background:K(`${t}.100`,`${t}.700`)(e)}}}},tfoot:{tr:{"&:last-of-type":{th:{borderBottomWidth:0}}}}}}),v5={simple:p5,striped:m5,unstyled:{}},g5={sm:Wo({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:Wo({th:{px:"6",py:"3",lineHeight:"4",fontSize:"xs"},td:{px:"6",py:"4",lineHeight:"5"},caption:{px:"6",py:"2",fontSize:"sm"}}),lg:Wo({th:{px:"8",py:"4",lineHeight:"5",fontSize:"sm"},td:{px:"8",py:"5",lineHeight:"6"},caption:{px:"6",py:"2",fontSize:"md"}})},y5=f5({baseStyle:h5,variants:v5,sizes:g5,defaultProps:{variant:"simple",size:"md",colorScheme:"gray"}}),vt=q("tabs-color"),Zt=q("tabs-bg"),zs=q("tabs-border-color"),{defineMultiStyleConfig:b5,definePartsStyle:yn}=Se(T$.keys),S5=e=>{const{orientation:t}=e;return{display:t==="vertical"?"flex":"block"}},x5=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}}},w5=e=>{const{align:t="start",orientation:n}=e;return{justifyContent:{end:"flex-end",center:"center",start:"flex-start"}[t],flexDirection:n==="vertical"?"column":"row"}},k5={p:4},C5=yn(e=>({root:S5(e),tab:x5(e),tablist:w5(e),tabpanel:k5})),_5={sm:yn({tab:{py:1,px:4,fontSize:"sm"}}),md:yn({tab:{fontSize:"md",py:2,px:4}}),lg:yn({tab:{fontSize:"lg",py:3,px:4}})},P5=yn(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:{[vt.variable]:`colors.${t}.600`,_dark:{[vt.variable]:`colors.${t}.300`},borderColor:"currentColor"},_active:{[Zt.variable]:"colors.gray.200",_dark:{[Zt.variable]:"colors.whiteAlpha.300"}},_disabled:{_active:{bg:"none"}},color:vt.reference,bg:Zt.reference}}}),T5=yn(e=>{const{colorScheme:t}=e;return{tab:{borderTopRadius:"md",border:"1px solid",borderColor:"transparent",mb:"-1px",[zs.variable]:"transparent",_selected:{[vt.variable]:`colors.${t}.600`,[zs.variable]:"colors.white",_dark:{[vt.variable]:`colors.${t}.300`,[zs.variable]:"colors.gray.800"},borderColor:"inherit",borderBottomColor:zs.reference},color:vt.reference},tablist:{mb:"-1px",borderBottom:"1px solid",borderColor:"inherit"}}}),E5=yn(e=>{const{colorScheme:t}=e;return{tab:{border:"1px solid",borderColor:"inherit",[Zt.variable]:"colors.gray.50",_dark:{[Zt.variable]:"colors.whiteAlpha.50"},mb:"-1px",_notLast:{marginEnd:"-1px"},_selected:{[Zt.variable]:"colors.white",[vt.variable]:`colors.${t}.600`,_dark:{[Zt.variable]:"colors.gray.800",[vt.variable]:`colors.${t}.300`},borderColor:"inherit",borderTopColor:"currentColor",borderBottomColor:"transparent"},color:vt.reference,bg:Zt.reference},tablist:{mb:"-1px",borderBottom:"1px solid",borderColor:"inherit"}}}),$5=yn(e=>{const{colorScheme:t,theme:n}=e;return{tab:{borderRadius:"full",fontWeight:"semibold",color:"gray.600",_selected:{color:ct(n,`${t}.700`),bg:ct(n,`${t}.100`)}}}}),A5=yn(e=>{const{colorScheme:t}=e;return{tab:{borderRadius:"full",fontWeight:"semibold",[vt.variable]:"colors.gray.600",_dark:{[vt.variable]:"inherit"},_selected:{[vt.variable]:"colors.white",[Zt.variable]:`colors.${t}.600`,_dark:{[vt.variable]:"colors.gray.800",[Zt.variable]:`colors.${t}.300`}},color:vt.reference,bg:Zt.reference}}}),M5=yn({}),R5={line:P5,enclosed:T5,"enclosed-colored":E5,"soft-rounded":$5,"solid-rounded":A5,unstyled:M5},z5=b5({baseStyle:C5,sizes:_5,variants:R5,defaultProps:{size:"md",variant:"line",colorScheme:"blue"}}),Le=tE("badge",["bg","color","shadow"]),F5={px:1,textTransform:"uppercase",fontSize:"xs",borderRadius:"sm",fontWeight:"bold",bg:Le.bg.reference,color:Le.color.reference,boxShadow:Le.shadow.reference},I5=e=>{const{colorScheme:t,theme:n}=e,r=ii(`${t}.500`,.6)(n);return{[Le.bg.variable]:`colors.${t}.500`,[Le.color.variable]:"colors.white",_dark:{[Le.bg.variable]:r,[Le.color.variable]:"colors.whiteAlpha.800"}}},D5=e=>{const{colorScheme:t,theme:n}=e,r=ii(`${t}.200`,.16)(n);return{[Le.bg.variable]:`colors.${t}.100`,[Le.color.variable]:`colors.${t}.800`,_dark:{[Le.bg.variable]:r,[Le.color.variable]:`colors.${t}.200`}}},O5=e=>{const{colorScheme:t,theme:n}=e,r=ii(`${t}.200`,.8)(n);return{[Le.color.variable]:`colors.${t}.500`,_dark:{[Le.color.variable]:r},[Le.shadow.variable]:`inset 0 0 0px 1px ${Le.color.reference}`}},L5={solid:I5,subtle:D5,outline:O5},na={baseStyle:F5,variants:L5,defaultProps:{variant:"subtle",colorScheme:"gray"}},{defineMultiStyleConfig:j5,definePartsStyle:Ur}=Se(E$.keys),pg=q("tag-bg"),mg=q("tag-color"),Xc=q("tag-shadow"),ul=q("tag-min-height"),cl=q("tag-min-width"),dl=q("tag-font-size"),fl=q("tag-padding-inline"),B5={fontWeight:"medium",lineHeight:1.2,outline:0,[mg.variable]:Le.color.reference,[pg.variable]:Le.bg.reference,[Xc.variable]:Le.shadow.reference,color:mg.reference,bg:pg.reference,boxShadow:Xc.reference,borderRadius:"md",minH:ul.reference,minW:cl.reference,fontSize:dl.reference,px:fl.reference,_focusVisible:{[Xc.variable]:"shadows.outline"}},N5={lineHeight:1.2,overflow:"visible"},V5={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}},W5=Ur({container:B5,label:N5,closeButton:V5}),H5={sm:Ur({container:{[ul.variable]:"sizes.5",[cl.variable]:"sizes.5",[dl.variable]:"fontSizes.xs",[fl.variable]:"space.2"},closeButton:{marginEnd:"-2px",marginStart:"0.35rem"}}),md:Ur({container:{[ul.variable]:"sizes.6",[cl.variable]:"sizes.6",[dl.variable]:"fontSizes.sm",[fl.variable]:"space.2"}}),lg:Ur({container:{[ul.variable]:"sizes.8",[cl.variable]:"sizes.8",[dl.variable]:"fontSizes.md",[fl.variable]:"space.3"}})},U5={subtle:Ur(e=>{var t;return{container:(t=na.variants)==null?void 0:t.subtle(e)}}),solid:Ur(e=>{var t;return{container:(t=na.variants)==null?void 0:t.solid(e)}}),outline:Ur(e=>{var t;return{container:(t=na.variants)==null?void 0:t.outline(e)}})},G5=j5({variants:U5,baseStyle:W5,sizes:H5,defaultProps:{size:"md",variant:"subtle",colorScheme:"gray"}}),{definePartsStyle:Rn,defineMultiStyleConfig:K5}=Se(p$.keys),Y5=Rn({field:{width:"100%",minWidth:0,outline:0,position:"relative",appearance:"none",transitionProperty:"common",transitionDuration:"normal",_disabled:{opacity:.4,cursor:"not-allowed"}}}),Kn={lg:{fontSize:"lg",px:"4",h:"12",borderRadius:"md"},md:{fontSize:"md",px:"4",h:"10",borderRadius:"md"},sm:{fontSize:"sm",px:"3",h:"8",borderRadius:"sm"},xs:{fontSize:"xs",px:"2",h:"6",borderRadius:"sm"}},q5={lg:Rn({field:Kn.lg,addon:Kn.lg}),md:Rn({field:Kn.md,addon:Kn.md}),sm:Rn({field:Kn.sm,addon:Kn.sm}),xs:Rn({field:Kn.xs,addon:Kn.xs})};function $p(e){const{focusBorderColor:t,errorBorderColor:n}=e;return{focusBorderColor:t||K("blue.500","blue.300")(e),errorBorderColor:n||K("red.500","red.300")(e)}}var X5=Rn(e=>{const{theme:t}=e,{focusBorderColor:n,errorBorderColor:r}=$p(e);return{field:{border:"1px solid",borderColor:"inherit",bg:"inherit",_hover:{borderColor:K("gray.300","whiteAlpha.400")(e)},_readOnly:{boxShadow:"none !important",userSelect:"all"},_invalid:{borderColor:ct(t,r),boxShadow:`0 0 0 1px ${ct(t,r)}`},_focusVisible:{zIndex:1,borderColor:ct(t,n),boxShadow:`0 0 0 1px ${ct(t,n)}`}},addon:{border:"1px solid",borderColor:K("inherit","whiteAlpha.50")(e),bg:K("gray.100","whiteAlpha.300")(e)}}}),Q5=Rn(e=>{const{theme:t}=e,{focusBorderColor:n,errorBorderColor:r}=$p(e);return{field:{border:"2px solid",borderColor:"transparent",bg:K("gray.100","whiteAlpha.50")(e),_hover:{bg:K("gray.200","whiteAlpha.100")(e)},_readOnly:{boxShadow:"none !important",userSelect:"all"},_invalid:{borderColor:ct(t,r)},_focusVisible:{bg:"transparent",borderColor:ct(t,n)}},addon:{border:"2px solid",borderColor:"transparent",bg:K("gray.100","whiteAlpha.50")(e)}}}),Z5=Rn(e=>{const{theme:t}=e,{focusBorderColor:n,errorBorderColor:r}=$p(e);return{field:{borderBottom:"1px solid",borderColor:"inherit",borderRadius:"0",px:"0",bg:"transparent",_readOnly:{boxShadow:"none !important",userSelect:"all"},_invalid:{borderColor:ct(t,r),boxShadow:`0px 1px 0px 0px ${ct(t,r)}`},_focusVisible:{borderColor:ct(t,n),boxShadow:`0px 1px 0px 0px ${ct(t,n)}`}},addon:{borderBottom:"2px solid",borderColor:"inherit",borderRadius:"0",px:"0",bg:"transparent"}}}),J5=Rn({field:{bg:"transparent",px:"0",height:"auto"},addon:{bg:"transparent",px:"0",height:"auto"}}),eA={outline:X5,filled:Q5,flushed:Z5,unstyled:J5},le=K5({baseStyle:Y5,sizes:q5,variants:eA,defaultProps:{size:"md",variant:"outline"}}),vg,tA={...(vg=le.baseStyle)==null?void 0:vg.field,paddingY:"2",minHeight:"20",lineHeight:"short",verticalAlign:"top"},gg,yg,nA={outline:e=>{var t,n;return(n=(t=le.variants)==null?void 0:t.outline(e).field)!=null?n:{}},flushed:e=>{var t,n;return(n=(t=le.variants)==null?void 0:t.flushed(e).field)!=null?n:{}},filled:e=>{var t,n;return(n=(t=le.variants)==null?void 0:t.filled(e).field)!=null?n:{}},unstyled:(yg=(gg=le.variants)==null?void 0:gg.unstyled.field)!=null?yg:{}},bg,Sg,xg,wg,kg,Cg,_g,Pg,rA={xs:(Sg=(bg=le.sizes)==null?void 0:bg.xs.field)!=null?Sg:{},sm:(wg=(xg=le.sizes)==null?void 0:xg.sm.field)!=null?wg:{},md:(Cg=(kg=le.sizes)==null?void 0:kg.md.field)!=null?Cg:{},lg:(Pg=(_g=le.sizes)==null?void 0:_g.lg.field)!=null?Pg:{}},oA={baseStyle:tA,sizes:rA,variants:nA,defaultProps:{size:"md",variant:"outline"}},Fs=Ue("tooltip-bg"),Qc=Ue("tooltip-fg"),iA=Ue("popper-arrow-bg"),aA={bg:Fs.reference,color:Qc.reference,[Fs.variable]:"colors.gray.700",[Qc.variable]:"colors.whiteAlpha.900",_dark:{[Fs.variable]:"colors.gray.300",[Qc.variable]:"colors.gray.900"},[iA.variable]:Fs.reference,px:"2",py:"0.5",borderRadius:"sm",fontWeight:"medium",fontSize:"sm",boxShadow:"md",maxW:"xs",zIndex:"tooltip"},sA={baseStyle:aA},{defineMultiStyleConfig:lA,definePartsStyle:Wi}=Se(S$.keys),uA=e=>{const{colorScheme:t,theme:n,isIndeterminate:r,hasStripe:o}=e,i=K(ug(),ug("1rem","rgba(0,0,0,0.1)"))(e),a=K(`${t}.500`,`${t}.200`)(e),s=`linear-gradient( to right, transparent 0%, ${ct(n,a)} 50%, transparent 100% )`;return{...!r&&o&&i,...r?{bgImage:s}:{bgColor:a}}},cA={lineHeight:"1",fontSize:"0.25em",fontWeight:"bold",color:"white"},dA=e=>({bg:K("gray.100","whiteAlpha.300")(e)}),fA=e=>({transitionProperty:"common",transitionDuration:"slow",...uA(e)}),hA=Wi(e=>({label:cA,filledTrack:fA(e),track:dA(e)})),pA={xs:Wi({track:{h:"1"}}),sm:Wi({track:{h:"2"}}),md:Wi({track:{h:"3"}}),lg:Wi({track:{h:"4"}})},mA=lA({sizes:pA,baseStyle:hA,defaultProps:{size:"md",colorScheme:"blue"}}),vA=e=>typeof e=="function";function ft(e,...t){return vA(e)?e(...t):e}var{definePartsStyle:hl,defineMultiStyleConfig:gA}=Se(u$.keys),ra=q("checkbox-size"),yA=e=>{const{colorScheme:t}=e;return{w:ra.reference,h:ra.reference,transitionProperty:"box-shadow",transitionDuration:"normal",border:"2px solid",borderRadius:"sm",borderColor:"inherit",color:"white",_checked:{bg:K(`${t}.500`,`${t}.200`)(e),borderColor:K(`${t}.500`,`${t}.200`)(e),color:K("white","gray.900")(e),_hover:{bg:K(`${t}.600`,`${t}.300`)(e),borderColor:K(`${t}.600`,`${t}.300`)(e)},_disabled:{borderColor:K("gray.200","transparent")(e),bg:K("gray.200","whiteAlpha.300")(e),color:K("gray.500","whiteAlpha.500")(e)}},_indeterminate:{bg:K(`${t}.500`,`${t}.200`)(e),borderColor:K(`${t}.500`,`${t}.200`)(e),color:K("white","gray.900")(e)},_disabled:{bg:K("gray.100","whiteAlpha.100")(e),borderColor:K("gray.100","transparent")(e)},_focusVisible:{boxShadow:"outline"},_invalid:{borderColor:K("red.500","red.300")(e)}}},bA={_disabled:{cursor:"not-allowed"}},SA={userSelect:"none",_disabled:{opacity:.4}},xA={transitionProperty:"transform",transitionDuration:"normal"},wA=hl(e=>({icon:xA,container:bA,control:ft(yA,e),label:SA})),kA={sm:hl({control:{[ra.variable]:"sizes.3"},label:{fontSize:"sm"},icon:{fontSize:"3xs"}}),md:hl({control:{[ra.variable]:"sizes.4"},label:{fontSize:"md"},icon:{fontSize:"2xs"}}),lg:hl({control:{[ra.variable]:"sizes.5"},label:{fontSize:"lg"},icon:{fontSize:"2xs"}})},Ql=gA({baseStyle:wA,sizes:kA,defaultProps:{size:"md",colorScheme:"blue"}}),{defineMultiStyleConfig:CA,definePartsStyle:pl}=Se(x$.keys),_A=e=>{var t;const n=(t=ft(Ql.baseStyle,e))==null?void 0:t.control;return{...n,borderRadius:"full",_checked:{...n==null?void 0:n._checked,_before:{content:'""',display:"inline-block",pos:"relative",w:"50%",h:"50%",borderRadius:"50%",bg:"currentColor"}}}},PA=pl(e=>{var t,n,r,o;return{label:(n=(t=Ql).baseStyle)==null?void 0:n.call(t,e).label,container:(o=(r=Ql).baseStyle)==null?void 0:o.call(r,e).container,control:_A(e)}}),TA={md:pl({control:{w:"4",h:"4"},label:{fontSize:"md"}}),lg:pl({control:{w:"5",h:"5"},label:{fontSize:"lg"}}),sm:pl({control:{width:"3",height:"3"},label:{fontSize:"sm"}})},EA=CA({baseStyle:PA,sizes:TA,defaultProps:{size:"md",colorScheme:"blue"}}),{defineMultiStyleConfig:$A,definePartsStyle:AA}=Se(w$.keys),Is=q("select-bg"),Tg,MA={...(Tg=le.baseStyle)==null?void 0:Tg.field,appearance:"none",paddingBottom:"1px",lineHeight:"normal",bg:Is.reference,[Is.variable]:"colors.white",_dark:{[Is.variable]:"colors.gray.700"},"> option, > optgroup":{bg:Is.reference}},RA={width:"6",height:"100%",insetEnd:"2",position:"relative",color:"currentColor",fontSize:"xl",_disabled:{opacity:.5}},zA=AA({field:MA,icon:RA}),Ds={paddingInlineEnd:"8"},Eg,$g,Ag,Mg,Rg,zg,Fg,Ig,FA={lg:{...(Eg=le.sizes)==null?void 0:Eg.lg,field:{...($g=le.sizes)==null?void 0:$g.lg.field,...Ds}},md:{...(Ag=le.sizes)==null?void 0:Ag.md,field:{...(Mg=le.sizes)==null?void 0:Mg.md.field,...Ds}},sm:{...(Rg=le.sizes)==null?void 0:Rg.sm,field:{...(zg=le.sizes)==null?void 0:zg.sm.field,...Ds}},xs:{...(Fg=le.sizes)==null?void 0:Fg.xs,field:{...(Ig=le.sizes)==null?void 0:Ig.xs.field,...Ds},icon:{insetEnd:"1"}}},IA=$A({baseStyle:zA,sizes:FA,variants:le.variants,defaultProps:le.defaultProps}),Zc=q("skeleton-start-color"),Jc=q("skeleton-end-color"),DA={[Zc.variable]:"colors.gray.100",[Jc.variable]:"colors.gray.400",_dark:{[Zc.variable]:"colors.gray.800",[Jc.variable]:"colors.gray.600"},background:Zc.reference,borderColor:Jc.reference,opacity:.7,borderRadius:"sm"},OA={baseStyle:DA},ed=q("skip-link-bg"),LA={borderRadius:"md",fontWeight:"semibold",_focusVisible:{boxShadow:"outline",padding:"4",position:"fixed",top:"6",insetStart:"6",[ed.variable]:"colors.white",_dark:{[ed.variable]:"colors.gray.700"},bg:ed.reference}},jA={baseStyle:LA},{defineMultiStyleConfig:BA,definePartsStyle:Yu}=Se(k$.keys),za=q("slider-thumb-size"),Fa=q("slider-track-size"),tr=q("slider-bg"),NA=e=>{const{orientation:t}=e;return{display:"inline-block",position:"relative",cursor:"pointer",_disabled:{opacity:.6,cursor:"default",pointerEvents:"none"},...Ep({orientation:t,vertical:{h:"100%"},horizontal:{w:"100%"}})}},VA=e=>({...Ep({orientation:e.orientation,horizontal:{h:Fa.reference},vertical:{w:Fa.reference}}),overflow:"hidden",borderRadius:"sm",[tr.variable]:"colors.gray.200",_dark:{[tr.variable]:"colors.whiteAlpha.200"},_disabled:{[tr.variable]:"colors.gray.300",_dark:{[tr.variable]:"colors.whiteAlpha.300"}},bg:tr.reference}),WA=e=>{const{orientation:t}=e;return{...Ep({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:za.reference,h:za.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"}}},HA=e=>{const{colorScheme:t}=e;return{width:"inherit",height:"inherit",[tr.variable]:`colors.${t}.500`,_dark:{[tr.variable]:`colors.${t}.200`},bg:tr.reference}},UA=Yu(e=>({container:NA(e),track:VA(e),thumb:WA(e),filledTrack:HA(e)})),GA=Yu({container:{[za.variable]:"sizes.4",[Fa.variable]:"sizes.1"}}),KA=Yu({container:{[za.variable]:"sizes.3.5",[Fa.variable]:"sizes.1"}}),YA=Yu({container:{[za.variable]:"sizes.2.5",[Fa.variable]:"sizes.0.5"}}),qA={lg:GA,md:KA,sm:YA},XA=BA({baseStyle:UA,sizes:qA,defaultProps:{size:"md",colorScheme:"blue"}}),Ir=Ue("spinner-size"),QA={width:[Ir.reference],height:[Ir.reference]},ZA={xs:{[Ir.variable]:"sizes.3"},sm:{[Ir.variable]:"sizes.4"},md:{[Ir.variable]:"sizes.6"},lg:{[Ir.variable]:"sizes.8"},xl:{[Ir.variable]:"sizes.12"}},JA={baseStyle:QA,sizes:ZA,defaultProps:{size:"md"}},{defineMultiStyleConfig:eM,definePartsStyle:mS}=Se(C$.keys),tM={fontWeight:"medium"},nM={opacity:.8,marginBottom:"2"},rM={verticalAlign:"baseline",fontWeight:"semibold"},oM={marginEnd:1,w:"3.5",h:"3.5",verticalAlign:"middle"},iM=mS({container:{},label:tM,helpText:nM,number:rM,icon:oM}),aM={md:mS({label:{fontSize:"sm"},helpText:{fontSize:"sm"},number:{fontSize:"2xl"}})},sM=eM({baseStyle:iM,sizes:aM,defaultProps:{size:"md"}}),td=q("kbd-bg"),lM={[td.variable]:"colors.gray.100",_dark:{[td.variable]:"colors.whiteAlpha.100"},bg:td.reference,borderRadius:"md",borderWidth:"1px",borderBottomWidth:"3px",fontSize:"0.8em",fontWeight:"bold",lineHeight:"normal",px:"0.4em",whiteSpace:"nowrap"},uM={baseStyle:lM},cM={transitionProperty:"common",transitionDuration:"fast",transitionTimingFunction:"ease-out",cursor:"pointer",textDecoration:"none",outline:"none",color:"inherit",_hover:{textDecoration:"underline"},_focusVisible:{boxShadow:"outline"}},dM={baseStyle:cM},{defineMultiStyleConfig:fM,definePartsStyle:hM}=Se(m$.keys),pM={marginEnd:"2",display:"inline",verticalAlign:"text-bottom"},mM=hM({icon:pM}),vM=fM({baseStyle:mM}),{defineMultiStyleConfig:gM,definePartsStyle:yM}=Se(v$.keys),un=q("menu-bg"),nd=q("menu-shadow"),bM={[un.variable]:"#fff",[nd.variable]:"shadows.sm",_dark:{[un.variable]:"colors.gray.700",[nd.variable]:"shadows.dark-lg"},color:"inherit",minW:"3xs",py:"2",zIndex:1,borderRadius:"md",borderWidth:"1px",bg:un.reference,boxShadow:nd.reference},SM={py:"1.5",px:"3",transitionProperty:"background",transitionDuration:"ultra-fast",transitionTimingFunction:"ease-in",_focus:{[un.variable]:"colors.gray.100",_dark:{[un.variable]:"colors.whiteAlpha.100"}},_active:{[un.variable]:"colors.gray.200",_dark:{[un.variable]:"colors.whiteAlpha.200"}},_expanded:{[un.variable]:"colors.gray.100",_dark:{[un.variable]:"colors.whiteAlpha.100"}},_disabled:{opacity:.4,cursor:"not-allowed"},bg:un.reference},xM={mx:4,my:2,fontWeight:"semibold",fontSize:"sm"},wM={opacity:.6},kM={border:0,borderBottom:"1px solid",borderColor:"inherit",my:"2",opacity:.6},CM={transitionProperty:"common",transitionDuration:"normal"},_M=yM({button:CM,list:bM,item:SM,groupTitle:xM,command:wM,divider:kM}),PM=gM({baseStyle:_M}),{defineMultiStyleConfig:TM,definePartsStyle:Lf}=Se(g$.keys),rd=q("modal-bg"),od=q("modal-shadow"),EM={bg:"blackAlpha.600",zIndex:"modal"},$M=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"}},AM=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,[rd.variable]:"colors.white",[od.variable]:"shadows.lg",_dark:{[rd.variable]:"colors.gray.700",[od.variable]:"shadows.dark-lg"},bg:rd.reference,boxShadow:od.reference}},MM={px:"6",py:"4",fontSize:"xl",fontWeight:"semibold"},RM={position:"absolute",top:"2",insetEnd:"3"},zM=e=>{const{scrollBehavior:t}=e;return{px:"6",py:"2",flex:"1",overflow:t==="inside"?"auto":void 0}},FM={px:"6",py:"4"},IM=Lf(e=>({overlay:EM,dialogContainer:ft($M,e),dialog:ft(AM,e),header:MM,closeButton:RM,body:ft(zM,e),footer:FM}));function Yt(e){return Lf(e==="full"?{dialog:{maxW:"100vw",minH:"$100vh",my:"0",borderRadius:"0"}}:{dialog:{maxW:e}})}var DM={xs:Yt("xs"),sm:Yt("sm"),md:Yt("md"),lg:Yt("lg"),xl:Yt("xl"),"2xl":Yt("2xl"),"3xl":Yt("3xl"),"4xl":Yt("4xl"),"5xl":Yt("5xl"),"6xl":Yt("6xl"),full:Yt("full")},OM=TM({baseStyle:IM,sizes:DM,defaultProps:{size:"md"}}),{defineMultiStyleConfig:LM,definePartsStyle:vS}=Se(y$.keys),Ap=Ue("number-input-stepper-width"),gS=Ue("number-input-input-padding"),jM=$n(Ap).add("0.5rem").toString(),id=Ue("number-input-bg"),ad=Ue("number-input-color"),sd=Ue("number-input-border-color"),BM={[Ap.variable]:"sizes.6",[gS.variable]:jM},NM=e=>{var t,n;return(n=(t=ft(le.baseStyle,e))==null?void 0:t.field)!=null?n:{}},VM={width:Ap.reference},WM={borderStart:"1px solid",borderStartColor:sd.reference,color:ad.reference,bg:id.reference,[ad.variable]:"colors.chakra-body-text",[sd.variable]:"colors.chakra-border-color",_dark:{[ad.variable]:"colors.whiteAlpha.800",[sd.variable]:"colors.whiteAlpha.300"},_active:{[id.variable]:"colors.gray.200",_dark:{[id.variable]:"colors.whiteAlpha.300"}},_disabled:{opacity:.4,cursor:"not-allowed"}},HM=vS(e=>{var t;return{root:BM,field:(t=ft(NM,e))!=null?t:{},stepperGroup:VM,stepper:WM}});function Os(e){var t,n,r;const o=(t=le.sizes)==null?void 0:t[e],i={lg:"md",md:"md",sm:"sm",xs:"sm"},a=(r=(n=o.field)==null?void 0:n.fontSize)!=null?r:"md",s=cS.fontSizes[a];return vS({field:{...o.field,paddingInlineEnd:gS.reference,verticalAlign:"top"},stepper:{fontSize:$n(s).multiply(.75).toString(),_first:{borderTopEndRadius:i[e]},_last:{borderBottomEndRadius:i[e],mt:"-1px",borderTopWidth:1}}})}var UM={xs:Os("xs"),sm:Os("sm"),md:Os("md"),lg:Os("lg")},GM=LM({baseStyle:HM,sizes:UM,variants:le.variants,defaultProps:le.defaultProps}),Dg,KM={...(Dg=le.baseStyle)==null?void 0:Dg.field,textAlign:"center"},YM={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"}},Og,Lg,qM={outline:e=>{var t,n,r;return(r=(n=ft((t=le.variants)==null?void 0:t.outline,e))==null?void 0:n.field)!=null?r:{}},flushed:e=>{var t,n,r;return(r=(n=ft((t=le.variants)==null?void 0:t.flushed,e))==null?void 0:n.field)!=null?r:{}},filled:e=>{var t,n,r;return(r=(n=ft((t=le.variants)==null?void 0:t.filled,e))==null?void 0:n.field)!=null?r:{}},unstyled:(Lg=(Og=le.variants)==null?void 0:Og.unstyled.field)!=null?Lg:{}},XM={baseStyle:KM,sizes:YM,variants:qM,defaultProps:le.defaultProps},{defineMultiStyleConfig:QM,definePartsStyle:ZM}=Se(b$.keys),Ls=Ue("popper-bg"),JM=Ue("popper-arrow-bg"),jg=Ue("popper-arrow-shadow-color"),eR={zIndex:10},tR={[Ls.variable]:"colors.white",bg:Ls.reference,[JM.variable]:Ls.reference,[jg.variable]:"colors.gray.200",_dark:{[Ls.variable]:"colors.gray.700",[jg.variable]:"colors.whiteAlpha.300"},width:"xs",border:"1px solid",borderColor:"inherit",borderRadius:"md",boxShadow:"sm",zIndex:"inherit",_focusVisible:{outline:0,boxShadow:"outline"}},nR={px:3,py:2,borderBottomWidth:"1px"},rR={px:3,py:2},oR={px:3,py:2,borderTopWidth:"1px"},iR={position:"absolute",borderRadius:"md",top:1,insetEnd:2,padding:2},aR=ZM({popper:eR,content:tR,header:nR,body:rR,footer:oR,closeButton:iR}),sR=QM({baseStyle:aR}),{definePartsStyle:jf,defineMultiStyleConfig:lR}=Se(c$.keys),ld=q("drawer-bg"),ud=q("drawer-box-shadow");function fo(e){return jf(e==="full"?{dialog:{maxW:"100vw",h:"100vh"}}:{dialog:{maxW:e}})}var uR={bg:"blackAlpha.600",zIndex:"overlay"},cR={display:"flex",zIndex:"modal",justifyContent:"center"},dR=e=>{const{isFullHeight:t}=e;return{...t&&{height:"100vh"},zIndex:"modal",maxH:"100vh",color:"inherit",[ld.variable]:"colors.white",[ud.variable]:"shadows.lg",_dark:{[ld.variable]:"colors.gray.700",[ud.variable]:"shadows.dark-lg"},bg:ld.reference,boxShadow:ud.reference}},fR={px:"6",py:"4",fontSize:"xl",fontWeight:"semibold"},hR={position:"absolute",top:"2",insetEnd:"3"},pR={px:"6",py:"2",flex:"1",overflow:"auto"},mR={px:"6",py:"4"},vR=jf(e=>({overlay:uR,dialogContainer:cR,dialog:ft(dR,e),header:fR,closeButton:hR,body:pR,footer:mR})),gR={xs:fo("xs"),sm:fo("md"),md:fo("lg"),lg:fo("2xl"),xl:fo("4xl"),full:fo("full")},yR=lR({baseStyle:vR,sizes:gR,defaultProps:{size:"xs"}}),{definePartsStyle:bR,defineMultiStyleConfig:SR}=Se(d$.keys),xR={borderRadius:"md",py:"1",transitionProperty:"common",transitionDuration:"normal"},wR={borderRadius:"md",py:"1",transitionProperty:"common",transitionDuration:"normal",width:"full",_focusVisible:{boxShadow:"outline"},_placeholder:{opacity:.6}},kR={borderRadius:"md",py:"1",transitionProperty:"common",transitionDuration:"normal",width:"full",_focusVisible:{boxShadow:"outline"},_placeholder:{opacity:.6}},CR=bR({preview:xR,input:wR,textarea:kR}),_R=SR({baseStyle:CR}),{definePartsStyle:PR,defineMultiStyleConfig:TR}=Se(f$.keys),Ho=q("form-control-color"),ER={marginStart:"1",[Ho.variable]:"colors.red.500",_dark:{[Ho.variable]:"colors.red.300"},color:Ho.reference},$R={mt:"2",[Ho.variable]:"colors.gray.600",_dark:{[Ho.variable]:"colors.whiteAlpha.600"},color:Ho.reference,lineHeight:"normal",fontSize:"sm"},AR=PR({container:{width:"100%",position:"relative"},requiredIndicator:ER,helperText:$R}),MR=TR({baseStyle:AR}),{definePartsStyle:RR,defineMultiStyleConfig:zR}=Se(h$.keys),Uo=q("form-error-color"),FR={[Uo.variable]:"colors.red.500",_dark:{[Uo.variable]:"colors.red.300"},color:Uo.reference,mt:"2",fontSize:"sm",lineHeight:"normal"},IR={marginEnd:"0.5em",[Uo.variable]:"colors.red.500",_dark:{[Uo.variable]:"colors.red.300"},color:Uo.reference},DR=RR({text:FR,icon:IR}),OR=zR({baseStyle:DR}),LR={fontSize:"md",marginEnd:"3",mb:"2",fontWeight:"medium",transitionProperty:"common",transitionDuration:"normal",opacity:1,_disabled:{opacity:.4}},jR={baseStyle:LR},BR={fontFamily:"heading",fontWeight:"bold"},NR={"4xl":{fontSize:["6xl",null,"7xl"],lineHeight:1},"3xl":{fontSize:["5xl",null,"6xl"],lineHeight:1},"2xl":{fontSize:["4xl",null,"5xl"],lineHeight:[1.2,null,1]},xl:{fontSize:["3xl",null,"4xl"],lineHeight:[1.33,null,1.2]},lg:{fontSize:["2xl",null,"3xl"],lineHeight:[1.33,null,1.2]},md:{fontSize:"xl",lineHeight:1.2},sm:{fontSize:"md",lineHeight:1.2},xs:{fontSize:"sm",lineHeight:1.2}},VR={baseStyle:BR,sizes:NR,defaultProps:{size:"xl"}},{defineMultiStyleConfig:WR,definePartsStyle:HR}=Se(l$.keys),cd=q("breadcrumb-link-decor"),UR={transitionProperty:"common",transitionDuration:"fast",transitionTimingFunction:"ease-out",outline:"none",color:"inherit",textDecoration:cd.reference,[cd.variable]:"none","&:not([aria-current=page])":{cursor:"pointer",_hover:{[cd.variable]:"underline"},_focusVisible:{boxShadow:"outline"}}},GR=HR({link:UR}),KR=WR({baseStyle:GR}),YR={lineHeight:"1.2",borderRadius:"md",fontWeight:"semibold",transitionProperty:"common",transitionDuration:"normal",_focusVisible:{boxShadow:"outline"},_disabled:{opacity:.4,cursor:"not-allowed",boxShadow:"none"},_hover:{_disabled:{bg:"initial"}}},yS=e=>{const{colorScheme:t,theme:n}=e;if(t==="gray")return{color:K("inherit","whiteAlpha.900")(e),_hover:{bg:K("gray.100","whiteAlpha.200")(e)},_active:{bg:K("gray.200","whiteAlpha.300")(e)}};const r=ii(`${t}.200`,.12)(n),o=ii(`${t}.200`,.24)(n);return{color:K(`${t}.600`,`${t}.200`)(e),bg:"transparent",_hover:{bg:K(`${t}.50`,r)(e)},_active:{bg:K(`${t}.100`,o)(e)}}},qR=e=>{const{colorScheme:t}=e,n=K("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"},...ft(yS,e)}},XR={yellow:{bg:"yellow.400",color:"black",hoverBg:"yellow.500",activeBg:"yellow.600"},cyan:{bg:"cyan.400",color:"black",hoverBg:"cyan.500",activeBg:"cyan.600"}},QR=e=>{var t;const{colorScheme:n}=e;if(n==="gray"){const l=K("gray.100","whiteAlpha.200")(e);return{bg:l,_hover:{bg:K("gray.200","whiteAlpha.300")(e),_disabled:{bg:l}},_active:{bg:K("gray.300","whiteAlpha.400")(e)}}}const{bg:r=`${n}.500`,color:o="white",hoverBg:i=`${n}.600`,activeBg:a=`${n}.700`}=(t=XR[n])!=null?t:{},s=K(r,`${n}.200`)(e);return{bg:s,color:K(o,"gray.800")(e),_hover:{bg:K(i,`${n}.300`)(e),_disabled:{bg:s}},_active:{bg:K(a,`${n}.400`)(e)}}},ZR=e=>{const{colorScheme:t}=e;return{padding:0,height:"auto",lineHeight:"normal",verticalAlign:"baseline",color:K(`${t}.500`,`${t}.200`)(e),_hover:{textDecoration:"underline",_disabled:{textDecoration:"none"}},_active:{color:K(`${t}.700`,`${t}.500`)(e)}}},JR={bg:"none",color:"inherit",display:"inline",lineHeight:"inherit",m:"0",p:"0"},e3={ghost:yS,outline:qR,solid:QR,link:ZR,unstyled:JR},t3={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"}},n3={baseStyle:YR,variants:e3,sizes:t3,defaultProps:{variant:"solid",size:"md",colorScheme:"gray"}},{definePartsStyle:Gr,defineMultiStyleConfig:r3}=Se($$.keys),Zl=q("card-bg"),In=q("card-padding"),bS=q("card-shadow"),ml=q("card-radius"),SS=q("card-border-width","0"),xS=q("card-border-color"),o3=Gr({container:{[Zl.variable]:"colors.chakra-body-bg",backgroundColor:Zl.reference,boxShadow:bS.reference,borderRadius:ml.reference,color:"chakra-body-text",borderWidth:SS.reference,borderColor:xS.reference},body:{padding:In.reference,flex:"1 1 0%"},header:{padding:In.reference},footer:{padding:In.reference}}),i3={sm:Gr({container:{[ml.variable]:"radii.base",[In.variable]:"space.3"}}),md:Gr({container:{[ml.variable]:"radii.md",[In.variable]:"space.5"}}),lg:Gr({container:{[ml.variable]:"radii.xl",[In.variable]:"space.7"}})},a3={elevated:Gr({container:{[bS.variable]:"shadows.base",_dark:{[Zl.variable]:"colors.gray.700"}}}),outline:Gr({container:{[SS.variable]:"1px",[xS.variable]:"colors.chakra-border-color"}}),filled:Gr({container:{[Zl.variable]:"colors.chakra-subtle-bg"}}),unstyled:{body:{[In.variable]:0},header:{[In.variable]:0},footer:{[In.variable]:0}}},s3=r3({baseStyle:o3,variants:a3,sizes:i3,defaultProps:{variant:"elevated",size:"md"}}),oa=Ue("close-button-size"),Ai=Ue("close-button-bg"),l3={w:[oa.reference],h:[oa.reference],borderRadius:"md",transitionProperty:"common",transitionDuration:"normal",_disabled:{opacity:.4,cursor:"not-allowed",boxShadow:"none"},_hover:{[Ai.variable]:"colors.blackAlpha.100",_dark:{[Ai.variable]:"colors.whiteAlpha.100"}},_active:{[Ai.variable]:"colors.blackAlpha.200",_dark:{[Ai.variable]:"colors.whiteAlpha.200"}},_focusVisible:{boxShadow:"outline"},bg:Ai.reference},u3={lg:{[oa.variable]:"sizes.10",fontSize:"md"},md:{[oa.variable]:"sizes.8",fontSize:"xs"},sm:{[oa.variable]:"sizes.6",fontSize:"2xs"}},c3={baseStyle:l3,sizes:u3,defaultProps:{size:"md"}},{variants:d3,defaultProps:f3}=na,h3={fontFamily:"mono",fontSize:"sm",px:"0.2em",borderRadius:"sm",bg:Le.bg.reference,color:Le.color.reference,boxShadow:Le.shadow.reference},p3={baseStyle:h3,variants:d3,defaultProps:f3},m3={w:"100%",mx:"auto",maxW:"prose",px:"4"},v3={baseStyle:m3},g3={opacity:.6,borderColor:"inherit"},y3={borderStyle:"solid"},b3={borderStyle:"dashed"},S3={solid:y3,dashed:b3},x3={baseStyle:g3,variants:S3,defaultProps:{variant:"solid"}},{definePartsStyle:w3,defineMultiStyleConfig:k3}=Se(i$.keys),C3={borderTopWidth:"1px",borderColor:"inherit",_last:{borderBottomWidth:"1px"}},_3={transitionProperty:"common",transitionDuration:"normal",fontSize:"md",_focusVisible:{boxShadow:"outline"},_hover:{bg:"blackAlpha.50"},_disabled:{opacity:.4,cursor:"not-allowed"},px:"4",py:"2"},P3={pt:"2",px:"4",pb:"5"},T3={fontSize:"1.25em"},E3=w3({container:C3,button:_3,panel:P3,icon:T3}),$3=k3({baseStyle:E3}),{definePartsStyle:Xa,defineMultiStyleConfig:A3}=Se(a$.keys),$t=q("alert-fg"),Vn=q("alert-bg"),M3=Xa({container:{bg:Vn.reference,px:"4",py:"3"},title:{fontWeight:"bold",lineHeight:"6",marginEnd:"2"},description:{lineHeight:"6"},icon:{color:$t.reference,flexShrink:0,marginEnd:"3",w:"5",h:"6"},spinner:{color:$t.reference,flexShrink:0,marginEnd:"3",w:"5",h:"5"}});function Mp(e){const{theme:t,colorScheme:n}=e,r=ii(`${n}.200`,.16)(t);return{light:`colors.${n}.100`,dark:r}}var R3=Xa(e=>{const{colorScheme:t}=e,n=Mp(e);return{container:{[$t.variable]:`colors.${t}.500`,[Vn.variable]:n.light,_dark:{[$t.variable]:`colors.${t}.200`,[Vn.variable]:n.dark}}}}),z3=Xa(e=>{const{colorScheme:t}=e,n=Mp(e);return{container:{[$t.variable]:`colors.${t}.500`,[Vn.variable]:n.light,_dark:{[$t.variable]:`colors.${t}.200`,[Vn.variable]:n.dark},paddingStart:"3",borderStartWidth:"4px",borderStartColor:$t.reference}}}),F3=Xa(e=>{const{colorScheme:t}=e,n=Mp(e);return{container:{[$t.variable]:`colors.${t}.500`,[Vn.variable]:n.light,_dark:{[$t.variable]:`colors.${t}.200`,[Vn.variable]:n.dark},pt:"2",borderTopWidth:"4px",borderTopColor:$t.reference}}}),I3=Xa(e=>{const{colorScheme:t}=e;return{container:{[$t.variable]:"colors.white",[Vn.variable]:`colors.${t}.500`,_dark:{[$t.variable]:"colors.gray.900",[Vn.variable]:`colors.${t}.200`},color:$t.reference}}}),D3={subtle:R3,"left-accent":z3,"top-accent":F3,solid:I3},O3=A3({baseStyle:M3,variants:D3,defaultProps:{variant:"subtle",colorScheme:"blue"}}),{definePartsStyle:wS,defineMultiStyleConfig:L3}=Se(s$.keys),Go=q("avatar-border-color"),dd=q("avatar-bg"),j3={borderRadius:"full",border:"0.2em solid",[Go.variable]:"white",_dark:{[Go.variable]:"colors.gray.800"},borderColor:Go.reference},B3={[dd.variable]:"colors.gray.200",_dark:{[dd.variable]:"colors.whiteAlpha.400"},bgColor:dd.reference},Bg=q("avatar-background"),N3=e=>{const{name:t,theme:n}=e,r=t?q$({string:t}):"colors.gray.400",o=K$(r)(n);let i="white";return o||(i="gray.800"),{bg:Bg.reference,"&:not([data-loaded])":{[Bg.variable]:r},color:i,[Go.variable]:"colors.white",_dark:{[Go.variable]:"colors.gray.800"},borderColor:Go.reference,verticalAlign:"top"}},V3=wS(e=>({badge:ft(j3,e),excessLabel:ft(B3,e),container:ft(N3,e)}));function Yn(e){const t=e!=="100%"?fS[e]:void 0;return wS({container:{width:e,height:e,fontSize:`calc(${t??e} / 2.5)`},excessLabel:{width:e,height:e},label:{fontSize:`calc(${t??e} / 2.5)`,lineHeight:e!=="100%"?t??e:void 0}})}var W3={"2xs":Yn(4),xs:Yn(6),sm:Yn(8),md:Yn(12),lg:Yn(16),xl:Yn(24),"2xl":Yn(32),full:Yn("100%")},H3=L3({baseStyle:V3,sizes:W3,defaultProps:{size:"md"}}),U3={Accordion:$3,Alert:O3,Avatar:H3,Badge:na,Breadcrumb:KR,Button:n3,Checkbox:Ql,CloseButton:c3,Code:p3,Container:v3,Divider:x3,Drawer:yR,Editable:_R,Form:MR,FormError:OR,FormLabel:jR,Heading:VR,Input:le,Kbd:uM,Link:dM,List:vM,Menu:PM,Modal:OM,NumberInput:GM,PinInput:XM,Popover:sR,Progress:mA,Radio:EA,Select:IA,Skeleton:OA,SkipLink:jA,Slider:XA,Spinner:JA,Stat:sM,Switch:d5,Table:y5,Tabs:z5,Tag:G5,Textarea:oA,Tooltip:sA,Card:s3,Stepper:o$},G3={colors:{"chakra-body-text":{_light:"gray.800",_dark:"whiteAlpha.900"},"chakra-body-bg":{_light:"white",_dark:"gray.800"},"chakra-border-color":{_light:"gray.200",_dark:"whiteAlpha.300"},"chakra-inverse-text":{_light:"white",_dark:"gray.800"},"chakra-subtle-bg":{_light:"gray.100",_dark:"gray.700"},"chakra-subtle-text":{_light:"gray.600",_dark:"gray.400"},"chakra-placeholder-color":{_light:"gray.500",_dark:"whiteAlpha.400"}}},K3={global:{body:{fontFamily:"body",color:"chakra-body-text",bg:"chakra-body-bg",transitionProperty:"background-color",transitionDuration:"normal",lineHeight:"base"},"*::placeholder":{color:"chakra-placeholder-color"},"*, *::before, &::after":{borderColor:"chakra-border-color"}}},Y3="ltr",q3={useSystemColorMode:!1,initialColorMode:"light",cssVarPrefix:"chakra"},X3={semanticTokens:G3,direction:Y3,...t$,components:U3,styles:K3,config:q3};function Q3(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}var Z3=Q3();function J3(e,t){const n={};return Object.keys(e).forEach(r=>{t.includes(r)||(n[r]=e[r])}),n}function e4(e,t,n,r){const o=typeof t=="string"?t.split("."):[t];for(r=0;r{const t=new WeakMap;return(r,o,i,a)=>{if(typeof r>"u")return e(r,o,i);t.has(r)||t.set(r,new Map);const s=t.get(r);if(s.has(o))return s.get(o);const l=e(r,o,i,a);return s.set(o,l),l}},kS=t4(e4);function CS(e,t){const n={};return Object.keys(e).forEach(r=>{const o=e[r];t(o,r,e)&&(n[r]=o)}),n}var _S=e=>CS(e,t=>t!=null);function n4(e){return typeof e=="function"}function PS(e,...t){return n4(e)?e(...t):e}function r4(...e){return function(n){e.some(r=>(r==null||r(n),n==null?void 0:n.defaultPrevented))}}var o4=typeof Element<"u",i4=typeof Map=="function",a4=typeof Set=="function",s4=typeof ArrayBuffer=="function"&&!!ArrayBuffer.isView;function vl(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(!vl(e[r],t[r]))return!1;return!0}var i;if(i4&&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(!vl(r.value[1],t.get(r.value[0])))return!1;return!0}if(a4&&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(s4&&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(o4&&e instanceof Element)return!1;for(r=n;r--!==0;)if(!((o[r]==="_owner"||o[r]==="__v"||o[r]==="__o")&&e.$$typeof)&&!vl(e[o[r]],t[o[r]]))return!1;return!0}return e!==e&&t!==t}var l4=function(t,n){try{return vl(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 u4=Va(l4);function TS(e,t={}){var n;const{styleConfig:r,...o}=t,{theme:i,colorMode:a}=fT(),s=e?kS(i,`components.${e}`):void 0,l=r||s,u=pn({theme:i,colorMode:a},(n=l==null?void 0:l.defaultProps)!=null?n:{},_S(J3(o,["children"]))),c=b.useRef({});if(l){const f=ME(l)(u);u4(c.current,f)||(c.current=f)}return c.current}function oo(e,t={}){return TS(e,t)}function fi(e,t={}){return TS(e,t)}var c4=new Set([...bE,"textStyle","layerStyle","apply","noOfLines","focusBorderColor","errorBorderColor","as","__css","css","sx"]),d4=new Set(["htmlWidth","htmlHeight","htmlSize","htmlTranslate"]);function f4(e){return d4.has(e)||!c4.has(e)}function h4(e,...t){if(e==null)throw new TypeError("Cannot convert undefined or null to object");const n={...e};for(const r of t)if(r!=null)for(const o in r)Object.prototype.hasOwnProperty.call(r,o)&&(o in n&&delete n[o],n[o]=r[o]);return n}function p4(e){const t=Object.assign({},e);for(let n in t)t[n]===void 0&&delete t[n];return t}var m4=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,v4=jb(function(e){return m4.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),g4=v4,y4=function(t){return t!=="theme"},Ng=function(t){return typeof t=="string"&&t.charCodeAt(0)>96?g4:y4},Vg=function(t,n,r){var o;if(n){var i=n.shouldForwardProp;o=t.__emotion_forwardProp&&i?function(a){return t.__emotion_forwardProp(a)&&i(a)}:i}return typeof o!="function"&&r&&(o=t.__emotion_forwardProp),o},b4=function(t){var n=t.cache,r=t.serialized,o=t.isStringTag;return Ub(n,r,o),KP(function(){return Gb(n,r,o)}),null},S4=function e(t,n){var r=t.__emotion_real===t,o=r&&t.__emotion_base||t,i,a;n!==void 0&&(i=n.label,a=n.target);var s=Vg(t,n,r),l=s||Ng(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,h=1;ht=>{const{theme:n,css:r,__css:o,sx:i,...a}=t,s=CS(a,(d,f)=>xE(f)),l=PS(e,t),u=h4({},o,l,_S(s),i),c=uS(u)(t.theme);return r?[c,r]:c};function fd(e,t){const{baseStyle:n,...r}=t??{};r.shouldForwardProp||(r.shouldForwardProp=f4);const o=k4({baseStyle:n}),i=w4(e,r)(o);return yt.forwardRef(function(l,u){const{colorMode:c,forced:d}=kp();return yt.createElement(i,{ref:u,"data-theme":d?c:void 0,...l})})}function C4(){const e=new Map;return new Proxy(fd,{apply(t,n,r){return fd(...r)},get(t,n){return e.has(n)||e.set(n,fd(n)),e.get(n)}})}var X=C4();function ue(e){return b.forwardRef(e)}function _4(e={}){const{strict:t=!0,errorMessage:n="useContext: `context` is undefined. Seems you forgot to wrap component within the Provider",name:r}=e,o=b.createContext(void 0);o.displayName=r;function i(){var a;const s=b.useContext(o);if(!s&&t){const l=new Error(n);throw l.name="ContextError",(a=Error.captureStackTrace)==null||a.call(Error,l,i),l}return s}return[o.Provider,i,o]}function P4(e){const{cssVarsRoot:t,theme:n,children:r}=e,o=b.useMemo(()=>vE(n),[n]);return w.jsxs(XP,{theme:o,children:[w.jsx(T4,{root:t}),r]})}function T4({root:e=":host, :root"}){const t=[e,"[data-theme]"].join(",");return w.jsx(Wu,{styles:n=>({[t]:n.__cssVars})})}_4({name:"StylesContext",errorMessage:"useStyles: `styles` is undefined. Seems you forgot to wrap the components in `` "});function E4(){const{colorMode:e}=kp();return w.jsx(Wu,{styles:t=>{const n=kS(t,"styles.global"),r=PS(n,{theme:t,colorMode:e});return r?uS(r)(t):void 0}})}var ES=b.createContext({getDocument(){return document},getWindow(){return window}});ES.displayName="EnvironmentContext";function $S(e){const{children:t,environment:n,disabled:r}=e,o=b.useRef(null),i=b.useMemo(()=>n||{getDocument:()=>{var s,l;return(l=(s=o.current)==null?void 0:s.ownerDocument)!=null?l:document},getWindow:()=>{var s,l;return(l=(s=o.current)==null?void 0:s.ownerDocument.defaultView)!=null?l:window}},[n]),a=!r||!n;return w.jsxs(ES.Provider,{value:i,children:[t,a&&w.jsx("span",{id:"__chakra_env",hidden:!0,ref:o})]})}$S.displayName="EnvironmentProvider";var $4=e=>{const{children:t,colorModeManager:n,portalZIndex:r,resetScope:o,resetCSS:i=!0,theme:a={},environment:s,cssVarsRoot:l,disableEnvironment:u}=e,c=w.jsx($S,{environment:s,disabled:u,children:t});return w.jsx(P4,{theme:a,cssVarsRoot:l,children:w.jsxs(nS,{colorModeManager:n,options:a.config,children:[i?w.jsx(JP,{scope:o}):w.jsx(ZP,{}),w.jsx(E4,{}),r?w.jsx(Jb,{zIndex:r,children:c}):c]})})},A4=(e,t)=>e.find(n=>n.id===t);function Hg(e,t){const n=AS(e,t),r=n?e[n].findIndex(o=>o.id===t):-1;return{position:n,index:r}}function AS(e,t){for(const[n,r]of Object.entries(e))if(A4(r,t))return n}function M4(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 R4(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)",a=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:a}}function gl(e,t=[]){const n=b.useRef(e);return b.useEffect(()=>{n.current=e}),b.useCallback((...r)=>{var o;return(o=n.current)==null?void 0:o.call(n,...r)},t)}function z4(e,t){const n=gl(e);b.useEffect(()=>{if(t==null)return;let r=null;return r=window.setTimeout(()=>{n()},t),()=>{r&&window.clearTimeout(r)}},[t,n])}function Bf(e,t){const n=b.useRef(!1),r=b.useRef(!1);b.useEffect(()=>{if(n.current&&r.current)return e();r.current=!0},t),b.useEffect(()=>(n.current=!0,()=>{n.current=!1}),[])}const MS=b.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"}),qu=b.createContext({}),Qa=b.createContext(null),Xu=typeof document<"u",eu=Xu?b.useLayoutEffect:b.useEffect,RS=b.createContext({strict:!1});function F4(e,t,n,r){const{visualElement:o}=b.useContext(qu),i=b.useContext(RS),a=b.useContext(Qa),s=b.useContext(MS).reducedMotion,l=b.useRef();r=r||i.renderer,!l.current&&r&&(l.current=r(e,{visualState:t,parent:o,props:n,presenceContext:a,blockInitialAnimation:a?a.initial===!1:!1,reducedMotionConfig:s}));const u=l.current;return b.useInsertionEffect(()=>{u&&u.update(n,a)}),eu(()=>{u&&u.render()}),b.useEffect(()=>{u&&u.updateFeatures()}),(window.HandoffAppearAnimations?eu:b.useEffect)(()=>{u&&u.animationState&&u.animationState.animateChanges()}),u}function Ro(e){return typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function I4(e,t,n){return b.useCallback(r=>{r&&e.mount&&e.mount(r),t&&(r?t.mount(r):t.unmount()),n&&(typeof n=="function"?n(r):Ro(n)&&(n.current=r))},[t])}function Ia(e){return typeof e=="string"||Array.isArray(e)}function Qu(e){return typeof e=="object"&&typeof e.start=="function"}const Rp=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],zp=["initial",...Rp];function Zu(e){return Qu(e.animate)||zp.some(t=>Ia(e[t]))}function zS(e){return!!(Zu(e)||e.variants)}function D4(e,t){if(Zu(e)){const{initial:n,animate:r}=e;return{initial:n===!1||Ia(n)?n:void 0,animate:Ia(r)?r:void 0}}return e.inherit!==!1?t:{}}function O4(e){const{initial:t,animate:n}=D4(e,b.useContext(qu));return b.useMemo(()=>({initial:t,animate:n}),[Ug(t),Ug(n)])}function Ug(e){return Array.isArray(e)?e.join(" "):e}const Gg={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"]},Da={};for(const e in Gg)Da[e]={isEnabled:t=>Gg[e].some(n=>!!t[n])};function L4(e){for(const t in e)Da[t]={...Da[t],...e[t]}}const Fp=b.createContext({}),FS=b.createContext({}),j4=Symbol.for("motionComponentSymbol");function B4({preloadedFeatures:e,createVisualElement:t,useRender:n,useVisualState:r,Component:o}){e&&L4(e);function i(s,l){let u;const c={...b.useContext(MS),...s,layoutId:N4(s)},{isStatic:d}=c,f=O4(s),h=r(s,d);if(!d&&Xu){f.visualElement=F4(o,h,c,t);const v=b.useContext(FS),g=b.useContext(RS).strict;f.visualElement&&(u=f.visualElement.loadFeatures(c,g,e,v))}return b.createElement(qu.Provider,{value:f},u&&f.visualElement?b.createElement(u,{visualElement:f.visualElement,...c}):null,n(o,s,I4(h,f.visualElement,l),h,d,f.visualElement))}const a=b.forwardRef(i);return a[j4]=o,a}function N4({layoutId:e}){const t=b.useContext(Fp).id;return t&&e!==void 0?t+"-"+e:e}function V4(e){function t(r,o={}){return B4(e(r,o))}if(typeof Proxy>"u")return t;const n=new Map;return new Proxy(t,{get:(r,o)=>(n.has(o)||n.set(o,t(o)),n.get(o))})}const W4=["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:!!(W4.indexOf(e)>-1||/[A-Z]/.test(e))}const tu={};function H4(e){Object.assign(tu,e)}const Za=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],io=new Set(Za);function IS(e,{layout:t,layoutId:n}){return io.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!tu[e]||e==="opacity")}const kt=e=>!!(e&&e.getVelocity),U4={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},G4=Za.length;function K4(e,{enableHardwareAcceleration:t=!0,allowTransformNone:n=!0},r,o){let i="";for(let a=0;at=>typeof t=="string"&&t.startsWith(e),OS=DS("--"),Nf=DS("var(--"),Y4=/var\s*\(\s*--[\w-]+(\s*,\s*(?:(?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)+)?\s*\)/g,q4=(e,t)=>t&&typeof e=="number"?t.transform(e):e,Jr=(e,t,n)=>Math.min(Math.max(n,e),t),ao={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},ia={...ao,transform:e=>Jr(0,1,e)},js={...ao,default:1},aa=e=>Math.round(e*1e5)/1e5,Ju=/(-)?([\d]*\.?[\d])+/g,LS=/(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))/gi,X4=/^(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))$/i;function Ja(e){return typeof e=="string"}const es=e=>({test:t=>Ja(t)&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),qn=es("deg"),bn=es("%"),Y=es("px"),Q4=es("vh"),Z4=es("vw"),Kg={...bn,parse:e=>bn.parse(e)/100,transform:e=>bn.transform(e*100)},Yg={...ao,transform:Math.round},jS={borderWidth:Y,borderTopWidth:Y,borderRightWidth:Y,borderBottomWidth:Y,borderLeftWidth:Y,borderRadius:Y,radius:Y,borderTopLeftRadius:Y,borderTopRightRadius:Y,borderBottomRightRadius:Y,borderBottomLeftRadius:Y,width:Y,maxWidth:Y,height:Y,maxHeight:Y,size:Y,top:Y,right:Y,bottom:Y,left:Y,padding:Y,paddingTop:Y,paddingRight:Y,paddingBottom:Y,paddingLeft:Y,margin:Y,marginTop:Y,marginRight:Y,marginBottom:Y,marginLeft:Y,rotate:qn,rotateX:qn,rotateY:qn,rotateZ:qn,scale:js,scaleX:js,scaleY:js,scaleZ:js,skew:qn,skewX:qn,skewY:qn,distance:Y,translateX:Y,translateY:Y,translateZ:Y,x:Y,y:Y,z:Y,perspective:Y,transformPerspective:Y,opacity:ia,originX:Kg,originY:Kg,originZ:Y,zIndex:Yg,fillOpacity:ia,strokeOpacity:ia,numOctaves:Yg};function Dp(e,t,n,r){const{style:o,vars:i,transform:a,transformOrigin:s}=e;let l=!1,u=!1,c=!0;for(const d in t){const f=t[d];if(OS(d)){i[d]=f;continue}const h=jS[d],v=q4(f,h);if(io.has(d)){if(l=!0,a[d]=v,!c)continue;f!==(h.default||0)&&(c=!1)}else d.startsWith("origin")?(u=!0,s[d]=v):o[d]=v}if(t.transform||(l||r?o.transform=K4(e.transform,n,c,r):o.transform&&(o.transform="none")),u){const{originX:d="50%",originY:f="50%",originZ:h=0}=s;o.transformOrigin=`${d} ${f} ${h}`}}const Op=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function BS(e,t,n){for(const r in t)!kt(t[r])&&!IS(r,n)&&(e[r]=t[r])}function J4({transformTemplate:e},t,n){return b.useMemo(()=>{const r=Op();return Dp(r,t,{enableHardwareAcceleration:!n},e),Object.assign({},r.vars,r.style)},[t])}function ez(e,t,n){const r=e.style||{},o={};return BS(o,r,e),Object.assign(o,J4(e,t,n)),e.transformValues?e.transformValues(o):o}function tz(e,t,n){const r={},o=ez(e,t,n);return e.drag&&e.dragListener!==!1&&(r.draggable=!1,o.userSelect=o.WebkitUserSelect=o.WebkitTouchCallout="none",o.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(r.tabIndex=0),r.style=o,r}const nz=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","transformValues","custom","inherit","onLayoutAnimationStart","onLayoutAnimationComplete","onLayoutMeasure","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","ignoreStrict","viewport"]);function nu(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||nz.has(e)}let NS=e=>!nu(e);function rz(e){e&&(NS=t=>t.startsWith("on")?!nu(t):e(t))}try{rz(require("@emotion/is-prop-valid").default)}catch{}function oz(e,t,n){const r={};for(const o in e)o==="values"&&typeof e.values=="object"||(NS(o)||n===!0&&nu(o)||!t&&!nu(o)||e.draggable&&o.startsWith("onDrag"))&&(r[o]=e[o]);return r}function qg(e,t,n){return typeof e=="string"?e:Y.transform(t+n*e)}function iz(e,t,n){const r=qg(t,e.x,e.width),o=qg(n,e.y,e.height);return`${r} ${o}`}const az={offset:"stroke-dashoffset",array:"stroke-dasharray"},sz={offset:"strokeDashoffset",array:"strokeDasharray"};function lz(e,t,n=1,r=0,o=!0){e.pathLength=1;const i=o?az:sz;e[i.offset]=Y.transform(-r);const a=Y.transform(t),s=Y.transform(n);e[i.array]=`${a} ${s}`}function Lp(e,{attrX:t,attrY:n,attrScale:r,originX:o,originY:i,pathLength:a,pathSpacing:s=1,pathOffset:l=0,...u},c,d,f){if(Dp(e,u,c,f),d){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:h,style:v,dimensions:g}=e;h.transform&&(g&&(v.transform=h.transform),delete h.transform),g&&(o!==void 0||i!==void 0||v.transform)&&(v.transformOrigin=iz(g,o!==void 0?o:.5,i!==void 0?i:.5)),t!==void 0&&(h.x=t),n!==void 0&&(h.y=n),r!==void 0&&(h.scale=r),a!==void 0&&lz(h,a,s,l,!1)}const VS=()=>({...Op(),attrs:{}}),jp=e=>typeof e=="string"&&e.toLowerCase()==="svg";function uz(e,t,n,r){const o=b.useMemo(()=>{const i=VS();return Lp(i,t,{enableHardwareAcceleration:!1},jp(r),e.transformTemplate),{...i.attrs,style:{...i.style}}},[t]);if(e.style){const i={};BS(i,e.style,e),o.style={...i,...o.style}}return o}function cz(e=!1){return(n,r,o,{latestValues:i},a)=>{const l=(Ip(n)?uz:tz)(r,i,a,n),c={...oz(r,typeof n=="string",e),...l,ref:o},{children:d}=r,f=b.useMemo(()=>kt(d)?d.get():d,[d]);return b.createElement(n,{...c,children:f})}}const Bp=e=>e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase();function WS(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 HS=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 US(e,t,n,r){WS(e,t,void 0,r);for(const o in t.attrs)e.setAttribute(HS.has(o)?o:Bp(o),t.attrs[o])}function Np(e,t){const{style:n}=e,r={};for(const o in n)(kt(n[o])||t.style&&kt(t.style[o])||IS(o,e))&&(r[o]=n[o]);return r}function GS(e,t){const n=Np(e,t);for(const r in e)if(kt(e[r])||kt(t[r])){const o=Za.indexOf(r)!==-1?"attr"+r.charAt(0).toUpperCase()+r.substring(1):r;n[o]=e[r]}return n}function Vp(e,t,n,r={},o={}){return typeof t=="function"&&(t=t(n!==void 0?n:e.custom,r,o)),typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"&&(t=t(n!==void 0?n:e.custom,r,o)),t}function KS(e){const t=b.useRef(null);return t.current===null&&(t.current=e()),t.current}const ru=e=>Array.isArray(e),dz=e=>!!(e&&typeof e=="object"&&e.mix&&e.toValue),fz=e=>ru(e)?e[e.length-1]||0:e;function yl(e){const t=kt(e)?e.get():e;return dz(t)?t.toValue():t}function hz({scrapeMotionValuesFromProps:e,createRenderState:t,onMount:n},r,o,i){const a={latestValues:pz(r,o,i,e),renderState:t()};return n&&(a.mount=s=>n(r,s,a)),a}const YS=e=>(t,n)=>{const r=b.useContext(qu),o=b.useContext(Qa),i=()=>hz(e,t,r,o);return n?i():KS(i)};function pz(e,t,n,r){const o={},i=r(e,{});for(const f in i)o[f]=yl(i[f]);let{initial:a,animate:s}=e;const l=Zu(e),u=zS(e);t&&u&&!l&&e.inherit!==!1&&(a===void 0&&(a=t.initial),s===void 0&&(s=t.animate));let c=n?n.initial===!1:!1;c=c||a===!1;const d=c?s:a;return d&&typeof d!="boolean"&&!Qu(d)&&(Array.isArray(d)?d:[d]).forEach(h=>{const v=Vp(e,h);if(!v)return;const{transitionEnd:g,transition:x,...m}=v;for(const p in m){let y=m[p];if(Array.isArray(y)){const k=c?y.length-1:0;y=y[k]}y!==null&&(o[p]=y)}for(const p in g)o[p]=g[p]}),o}const mz={useVisualState:YS({scrapeMotionValuesFromProps:GS,createRenderState:VS,onMount:(e,t,{renderState:n,latestValues:r})=>{try{n.dimensions=typeof t.getBBox=="function"?t.getBBox():t.getBoundingClientRect()}catch{n.dimensions={x:0,y:0,width:0,height:0}}Lp(n,r,{enableHardwareAcceleration:!1},jp(t.tagName),e.transformTemplate),US(t,n)}})},vz={useVisualState:YS({scrapeMotionValuesFromProps:Np,createRenderState:Op})};function gz(e,{forwardMotionProps:t=!1},n,r){return{...Ip(e)?mz:vz,preloadedFeatures:n,useRender:cz(t),createVisualElement:r,Component:e}}function zn(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}const qS=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1;function ec(e,t="page"){return{point:{x:e[t+"X"],y:e[t+"Y"]}}}const yz=e=>t=>qS(t)&&e(t,ec(t));function Dn(e,t,n,r){return zn(e,t,yz(n),r)}const bz=(e,t)=>n=>t(e(n)),pr=(...e)=>e.reduce(bz);function XS(e){let t=null;return()=>{const n=()=>{t=null};return t===null?(t=e,n):!1}}const Xg=XS("dragHorizontal"),Qg=XS("dragVertical");function QS(e){let t=!1;if(e==="y")t=Qg();else if(e==="x")t=Xg();else{const n=Xg(),r=Qg();n&&r?t=()=>{n(),r()}:(n&&n(),r&&r())}return t}function ZS(){const e=QS(!0);return e?(e(),!1):!0}class kr{constructor(t){this.isMounted=!1,this.node=t}update(){}}function Sz(e){let t=[],n=[],r=0,o=!1,i=!1;const a=new WeakSet,s={schedule:(l,u=!1,c=!1)=>{const d=c&&o,f=d?t:n;return u&&a.add(l),f.indexOf(l)===-1&&(f.push(l),d&&o&&(r=t.length)),l},cancel:l=>{const u=n.indexOf(l);u!==-1&&n.splice(u,1),a.delete(l)},process:l=>{if(o){i=!0;return}if(o=!0,[t,n]=[n,t],n.length=0,r=t.length,r)for(let u=0;u(e[t]=Sz(()=>Oa=!0),e),{}),wz=e=>Ko[e].process(Ye),JS=e=>{Oa=!1,Ye.delta=Vf?1e3/60:Math.max(Math.min(e-Ye.timestamp,xz),1),Ye.timestamp=e,Ye.isProcessing=!0,tc.forEach(wz),Ye.isProcessing=!1,Oa&&(Vf=!1,requestAnimationFrame(JS))},kz=()=>{Oa=!0,Vf=!0,Ye.isProcessing||requestAnimationFrame(JS)},Te=tc.reduce((e,t)=>{const n=Ko[t];return e[t]=(r,o=!1,i=!1)=>(Oa||kz(),n.schedule(r,o,i)),e},{});function Wn(e){tc.forEach(t=>Ko[t].cancel(e))}function Zg(e,t){const n="pointer"+(t?"enter":"leave"),r="onHover"+(t?"Start":"End"),o=(i,a)=>{if(i.type==="touch"||ZS())return;const s=e.getProps();e.animationState&&s.whileHover&&e.animationState.setActive("whileHover",t),s[r]&&Te.update(()=>s[r](i,a))};return Dn(e.current,n,o,{passive:!e.getProps()[r]})}class Cz extends kr{mount(){this.unmount=pr(Zg(this.node,!0),Zg(this.node,!1))}unmount(){}}class _z extends kr{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=pr(zn(this.node.current,"focus",()=>this.onFocus()),zn(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}const ex=(e,t)=>t?e===t?!0:ex(e,t.parentElement):!1,We=e=>e;function hd(e,t){if(!t)return;const n=new PointerEvent("pointer"+e);t(n,ec(n))}class Pz extends kr{constructor(){super(...arguments),this.removeStartListeners=We,this.removeEndListeners=We,this.removeAccessibleListeners=We,this.startPointerPress=(t,n)=>{if(this.removeEndListeners(),this.isPressing)return;const r=this.node.getProps(),i=Dn(window,"pointerup",(s,l)=>{if(!this.checkPressEnd())return;const{onTap:u,onTapCancel:c}=this.node.getProps();Te.update(()=>{ex(this.node.current,s.target)?u&&u(s,l):c&&c(s,l)})},{passive:!(r.onTap||r.onPointerUp)}),a=Dn(window,"pointercancel",(s,l)=>this.cancelPress(s,l),{passive:!(r.onTapCancel||r.onPointerCancel)});this.removeEndListeners=pr(i,a),this.startPress(t,n)},this.startAccessiblePress=()=>{const t=i=>{if(i.key!=="Enter"||this.isPressing)return;const a=s=>{s.key!=="Enter"||!this.checkPressEnd()||hd("up",(l,u)=>{const{onTap:c}=this.node.getProps();c&&Te.update(()=>c(l,u))})};this.removeEndListeners(),this.removeEndListeners=zn(this.node.current,"keyup",a),hd("down",(s,l)=>{this.startPress(s,l)})},n=zn(this.node.current,"keydown",t),r=()=>{this.isPressing&&hd("cancel",(i,a)=>this.cancelPress(i,a))},o=zn(this.node.current,"blur",r);this.removeAccessibleListeners=pr(n,o)}}startPress(t,n){this.isPressing=!0;const{onTapStart:r,whileTap:o}=this.node.getProps();o&&this.node.animationState&&this.node.animationState.setActive("whileTap",!0),r&&Te.update(()=>r(t,n))}checkPressEnd(){return this.removeEndListeners(),this.isPressing=!1,this.node.getProps().whileTap&&this.node.animationState&&this.node.animationState.setActive("whileTap",!1),!ZS()}cancelPress(t,n){if(!this.checkPressEnd())return;const{onTapCancel:r}=this.node.getProps();r&&Te.update(()=>r(t,n))}mount(){const t=this.node.getProps(),n=Dn(this.node.current,"pointerdown",this.startPointerPress,{passive:!(t.onTapStart||t.onPointerStart)}),r=zn(this.node.current,"focus",this.startAccessiblePress);this.removeStartListeners=pr(n,r)}unmount(){this.removeStartListeners(),this.removeEndListeners(),this.removeAccessibleListeners()}}const Wf=new WeakMap,pd=new WeakMap,Tz=e=>{const t=Wf.get(e.target);t&&t(e)},Ez=e=>{e.forEach(Tz)};function $z({root:e,...t}){const n=e||document;pd.has(n)||pd.set(n,{});const r=pd.get(n),o=JSON.stringify(t);return r[o]||(r[o]=new IntersectionObserver(Ez,{root:e,...t})),r[o]}function Az(e,t,n){const r=$z(t);return Wf.set(e,n),r.observe(e),()=>{Wf.delete(e),r.unobserve(e)}}const Mz={some:0,all:1};class Rz extends kr{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,a={root:n?n.current:void 0,rootMargin:r,threshold:typeof o=="number"?o:Mz[o]},s=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 Az(this.node.current,a,s)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:n}=this.node;["amount","margin","root"].some(zz(t,n))&&this.startObserver()}unmount(){}}function zz({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const Fz={inView:{Feature:Rz},tap:{Feature:Pz},focus:{Feature:_z},hover:{Feature:Cz}};function tx(e,t){if(!Array.isArray(t))return!1;const n=t.length;if(n!==e.length)return!1;for(let r=0;rt[r]=n.get()),t}function Dz(e){const t={};return e.values.forEach((n,r)=>t[r]=n.getVelocity()),t}function nc(e,t,n){const r=e.getProps();return Vp(r,t,n!==void 0?n:r.custom,Iz(e),Dz(e))}const Oz="framerAppearId",Lz="data-"+Bp(Oz);let jz=We,Wp=We;const mr=e=>e*1e3,On=e=>e/1e3,Bz={current:!1},nx=e=>Array.isArray(e)&&typeof e[0]=="number";function rx(e){return!!(!e||typeof e=="string"&&ox[e]||nx(e)||Array.isArray(e)&&e.every(rx))}const Hi=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,ox={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Hi([0,.65,.55,1]),circOut:Hi([.55,0,1,.45]),backIn:Hi([.31,.01,.66,-.59]),backOut:Hi([.33,1.53,.69,.99])};function ix(e){if(e)return nx(e)?Hi(e):Array.isArray(e)?e.map(ix):ox[e]}function Nz(e,t,n,{delay:r=0,duration:o,repeat:i=0,repeatType:a="loop",ease:s,times:l}={}){const u={[t]:n};l&&(u.offset=l);const c=ix(s);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:a==="reverse"?"alternate":"normal"})}const Jg={waapi:()=>Object.hasOwnProperty.call(Element.prototype,"animate")},md={},ax={};for(const e in Jg)ax[e]=()=>(md[e]===void 0&&(md[e]=Jg[e]()),md[e]);function Vz(e,{repeat:t,repeatType:n="loop"}){const r=t&&n!=="loop"&&t%2===1?0:e.length-1;return e[r]}const sx=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,Wz=1e-7,Hz=12;function Uz(e,t,n,r,o){let i,a,s=0;do a=t+(n-t)/2,i=sx(a,r,o)-e,i>0?n=a:t=a;while(Math.abs(i)>Wz&&++sUz(i,0,1,e,n);return i=>i===0||i===1?i:sx(o(i),t,r)}const Gz=ts(.42,0,1,1),Kz=ts(0,0,.58,1),lx=ts(.42,0,.58,1),Yz=e=>Array.isArray(e)&&typeof e[0]!="number",ux=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,cx=e=>t=>1-e(1-t),dx=e=>1-Math.sin(Math.acos(e)),Hp=cx(dx),qz=ux(Hp),fx=ts(.33,1.53,.69,.99),Up=cx(fx),Xz=ux(Up),Qz=e=>(e*=2)<1?.5*Up(e):.5*(2-Math.pow(2,-10*(e-1))),Zz={linear:We,easeIn:Gz,easeInOut:lx,easeOut:Kz,circIn:dx,circInOut:qz,circOut:Hp,backIn:Up,backInOut:Xz,backOut:fx,anticipate:Qz},e0=e=>{if(Array.isArray(e)){Wp(e.length===4);const[t,n,r,o]=e;return ts(t,n,r,o)}else if(typeof e=="string")return Zz[e];return e},Gp=(e,t)=>n=>!!(Ja(n)&&X4.test(n)&&n.startsWith(e)||t&&Object.prototype.hasOwnProperty.call(n,t)),hx=(e,t,n)=>r=>{if(!Ja(r))return r;const[o,i,a,s]=r.match(Ju);return{[e]:parseFloat(o),[t]:parseFloat(i),[n]:parseFloat(a),alpha:s!==void 0?parseFloat(s):1}},Jz=e=>Jr(0,255,e),vd={...ao,transform:e=>Math.round(Jz(e))},Nr={test:Gp("rgb","red"),parse:hx("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+vd.transform(e)+", "+vd.transform(t)+", "+vd.transform(n)+", "+aa(ia.transform(r))+")"};function eF(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 Hf={test:Gp("#"),parse:eF,transform:Nr.transform},zo={test:Gp("hsl","hue"),parse:hx("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+bn.transform(aa(t))+", "+bn.transform(aa(n))+", "+aa(ia.transform(r))+")"},lt={test:e=>Nr.test(e)||Hf.test(e)||zo.test(e),parse:e=>Nr.test(e)?Nr.parse(e):zo.test(e)?zo.parse(e):Hf.parse(e),transform:e=>Ja(e)?e:e.hasOwnProperty("red")?Nr.transform(e):zo.transform(e)},Me=(e,t,n)=>-n*e+n*t+e;function gd(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 tF({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let o=0,i=0,a=0;if(!t)o=i=a=n;else{const s=n<.5?n*(1+t):n+t-n*t,l=2*n-s;o=gd(l,s,e+1/3),i=gd(l,s,e),a=gd(l,s,e-1/3)}return{red:Math.round(o*255),green:Math.round(i*255),blue:Math.round(a*255),alpha:r}}const yd=(e,t,n)=>{const r=e*e;return Math.sqrt(Math.max(0,n*(t*t-r)+r))},nF=[Hf,Nr,zo],rF=e=>nF.find(t=>t.test(e));function t0(e){const t=rF(e);let n=t.parse(e);return t===zo&&(n=tF(n)),n}const px=(e,t)=>{const n=t0(e),r=t0(t),o={...n};return i=>(o.red=yd(n.red,r.red,i),o.green=yd(n.green,r.green,i),o.blue=yd(n.blue,r.blue,i),o.alpha=Me(n.alpha,r.alpha,i),Nr.transform(o))};function oF(e){var t,n;return isNaN(e)&&Ja(e)&&(((t=e.match(Ju))===null||t===void 0?void 0:t.length)||0)+(((n=e.match(LS))===null||n===void 0?void 0:n.length)||0)>0}const mx={regex:Y4,countKey:"Vars",token:"${v}",parse:We},vx={regex:LS,countKey:"Colors",token:"${c}",parse:lt.parse},gx={regex:Ju,countKey:"Numbers",token:"${n}",parse:ao.parse};function bd(e,{regex:t,countKey:n,token:r,parse:o}){const i=e.tokenised.match(t);i&&(e["num"+n]=i.length,e.tokenised=e.tokenised.replace(t,r),e.values.push(...i.map(o)))}function ou(e){const t=e.toString(),n={value:t,tokenised:t,values:[],numVars:0,numColors:0,numNumbers:0};return n.value.includes("var(--")&&bd(n,mx),bd(n,vx),bd(n,gx),n}function yx(e){return ou(e).values}function bx(e){const{values:t,numColors:n,numVars:r,tokenised:o}=ou(e),i=t.length;return a=>{let s=o;for(let l=0;ltypeof e=="number"?0:e;function aF(e){const t=yx(e);return bx(e)(t.map(iF))}const br={test:oF,parse:yx,createTransformer:bx,getAnimatableNone:aF},Sx=(e,t)=>n=>`${n>0?t:e}`;function xx(e,t){return typeof e=="number"?n=>Me(e,t,n):lt.test(e)?px(e,t):e.startsWith("var(")?Sx(e,t):kx(e,t)}const wx=(e,t)=>{const n=[...e],r=n.length,o=e.map((i,a)=>xx(i,t[a]));return i=>{for(let a=0;a{const n={...e,...t},r={};for(const o in n)e[o]!==void 0&&t[o]!==void 0&&(r[o]=xx(e[o],t[o]));return o=>{for(const i in r)n[i]=r[i](o);return n}},kx=(e,t)=>{const n=br.createTransformer(t),r=ou(e),o=ou(t);return r.numVars===o.numVars&&r.numColors===o.numColors&&r.numNumbers>=o.numNumbers?pr(wx(r.values,o.values),n):Sx(e,t)},La=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r},n0=(e,t)=>n=>Me(e,t,n);function lF(e){return typeof e=="number"?n0:typeof e=="string"?lt.test(e)?px:kx:Array.isArray(e)?wx:typeof e=="object"?sF:n0}function uF(e,t,n){const r=[],o=n||lF(e[0]),i=e.length-1;for(let a=0;at[0];e[0]>e[i-1]&&(e=[...e].reverse(),t=[...t].reverse());const a=uF(t,r,o),s=a.length,l=u=>{let c=0;if(s>1)for(;cl(Jr(e[0],e[i-1],u)):l}function cF(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const o=La(0,t,r);e.push(Me(n,1,o))}}function dF(e){const t=[0];return cF(t,e.length-1),t}function fF(e,t){return e.map(n=>n*t)}function hF(e,t){return e.map(()=>t||lx).splice(0,e.length-1)}function iu({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const o=Yz(r)?r.map(e0):e0(r),i={done:!1,value:t[0]},a=fF(n&&n.length===t.length?n:dF(t),e),s=Cx(a,t,{ease:Array.isArray(o)?o:hF(t,o)});return{calculatedDuration:e,next:l=>(i.value=s(l),i.done=l>=e,i)}}function _x(e,t){return t?e*(1e3/t):0}const pF=5;function Px(e,t,n){const r=Math.max(t-pF,0);return _x(n-e(r),t-r)}const Sd=.001,mF=.01,r0=10,vF=.05,gF=1;function yF({duration:e=800,bounce:t=.25,velocity:n=0,mass:r=1}){let o,i;jz(e<=mr(r0));let a=1-t;a=Jr(vF,gF,a),e=Jr(mF,r0,On(e)),a<1?(o=u=>{const c=u*a,d=c*e,f=c-n,h=Uf(u,a),v=Math.exp(-d);return Sd-f/h*v},i=u=>{const d=u*a*e,f=d*n+n,h=Math.pow(a,2)*Math.pow(u,2)*e,v=Math.exp(-d),g=Uf(Math.pow(u,2),a);return(-o(u)+Sd>0?-1:1)*((f-h)*v)/g}):(o=u=>{const c=Math.exp(-u*e),d=(u-n)*e+1;return-Sd+c*d},i=u=>{const c=Math.exp(-u*e),d=(n-u)*(e*e);return c*d});const s=5/e,l=SF(o,i,s);if(e=mr(e),isNaN(l))return{stiffness:100,damping:10,duration:e};{const u=Math.pow(l,2)*r;return{stiffness:u,damping:a*2*Math.sqrt(r*u),duration:e}}}const bF=12;function SF(e,t,n){let r=n;for(let o=1;oe[n]!==void 0)}function kF(e){let t={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...e};if(!o0(e,wF)&&o0(e,xF)){const n=yF(e);t={...t,...n,velocity:0,mass:1},t.isResolvedFromDuration=!0}return t}function Tx({keyframes:e,restDelta:t,restSpeed:n,...r}){const o=e[0],i=e[e.length-1],a={done:!1,value:o},{stiffness:s,damping:l,mass:u,velocity:c,duration:d,isResolvedFromDuration:f}=kF(r),h=c?-On(c):0,v=l/(2*Math.sqrt(s*u)),g=i-o,x=On(Math.sqrt(s/u)),m=Math.abs(g)<5;n||(n=m?.01:2),t||(t=m?.005:.5);let p;if(v<1){const y=Uf(x,v);p=k=>{const P=Math.exp(-v*x*k);return i-P*((h+v*x*g)/y*Math.sin(y*k)+g*Math.cos(y*k))}}else if(v===1)p=y=>i-Math.exp(-x*y)*(g+(h+x*g)*y);else{const y=x*Math.sqrt(v*v-1);p=k=>{const P=Math.exp(-v*x*k),A=Math.min(y*k,300);return i-P*((h+v*x*g)*Math.sinh(A)+y*g*Math.cosh(A))/y}}return{calculatedDuration:f&&d||null,next:y=>{const k=p(y);if(f)a.done=y>=d;else{let P=h;y!==0&&(v<1?P=Px(p,y,k):P=0);const A=Math.abs(P)<=n,T=Math.abs(i-k)<=t;a.done=A&&T}return a.value=a.done?i:k,a}}}function i0({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:o=10,bounceStiffness:i=500,modifyTarget:a,min:s,max:l,restDelta:u=.5,restSpeed:c}){const d=e[0],f={done:!1,value:d},h=$=>s!==void 0&&$l,v=$=>s===void 0?l:l===void 0||Math.abs(s-$)-g*Math.exp(-$/r),y=$=>m+p($),k=$=>{const O=p($),D=y($);f.done=Math.abs(O)<=u,f.value=f.done?m:D};let P,A;const T=$=>{h(f.value)&&(P=$,A=Tx({keyframes:[f.value,v(f.value)],velocity:Px(y,$,f.value),damping:o,stiffness:i,restDelta:u,restSpeed:c}))};return T(0),{calculatedDuration:null,next:$=>{let O=!1;return!A&&P===void 0&&(O=!0,k($),T($)),P!==void 0&&$>P?A.next($-P):(!O&&k($),f)}}}const CF=e=>{const t=({timestamp:n})=>e(n);return{start:()=>Te.update(t,!0),stop:()=>Wn(t),now:()=>Ye.isProcessing?Ye.timestamp:performance.now()}},a0=2e4;function s0(e){let t=0;const n=50;let r=e.next(t);for(;!r.done&&t=a0?1/0:t}const _F={decay:i0,inertia:i0,tween:iu,keyframes:iu,spring:Tx};function au({autoplay:e=!0,delay:t=0,driver:n=CF,keyframes:r,type:o="keyframes",repeat:i=0,repeatDelay:a=0,repeatType:s="loop",onPlay:l,onStop:u,onComplete:c,onUpdate:d,...f}){let h=1,v=!1,g,x;const m=()=>{g&&g(),x=new Promise(B=>{g=B})};m();let p;const y=_F[o]||iu;let k;y!==iu&&typeof r[0]!="number"&&(k=Cx([0,100],r,{clamp:!1}),r=[0,100]);const P=y({...f,keyframes:r});let A;s==="mirror"&&(A=y({...f,keyframes:[...r].reverse(),velocity:-(f.velocity||0)}));let T="idle",$=null,O=null,D=null;P.calculatedDuration===null&&i&&(P.calculatedDuration=s0(P));const{calculatedDuration:Q}=P;let fe=1/0,V=1/0;Q!==null&&(fe=Q+a,V=fe*(i+1)-a);let z=0;const R=B=>{if(O===null)return;h>0&&(O=Math.min(O,B)),$!==null?z=$:z=(B-O)*h;const G=z-t,U=G<0;z=Math.max(G,0),T==="finished"&&$===null&&(z=V);let Z=z,Ee=P;if(i){const ve=z/fe;let Fe=Math.floor(ve),nt=ve%1;!nt&&ve>=1&&(nt=1),nt===1&&Fe--,Fe=Math.min(Fe,i+1);const It=!!(Fe%2);It&&(s==="reverse"?(nt=1-nt,a&&(nt-=a/fe)):s==="mirror"&&(Ee=A));let mi=Jr(0,1,nt);z>V&&(mi=s==="reverse"&&It?1:0),Z=mi*fe}const ce=U?{done:!1,value:r[0]}:Ee.next(Z);k&&(ce.value=k(ce.value));let{done:me}=ce;!U&&Q!==null&&(me=z>=V);const $e=$===null&&(T==="finished"||T==="running"&&me||h<0&&z<=0);return d&&d(ce.value),$e&&M(),ce},H=()=>{p&&p.stop(),p=void 0},L=()=>{T="idle",H(),m(),O=D=null},M=()=>{T="finished",c&&c(),H(),m()},F=()=>{if(v)return;p||(p=n(R));const B=p.now();l&&l(),$!==null?O=B-$:(!O||T==="finished")&&(O=B),D=O,$=null,T="running",p.start()};e&&F();const j={then(B,G){return x.then(B,G)},get time(){return On(z)},set time(B){B=mr(B),z=B,$!==null||!p||h===0?$=B:O=p.now()-B/h},get duration(){const B=P.calculatedDuration===null?s0(P):P.calculatedDuration;return On(B)},get speed(){return h},set speed(B){B===h||!p||(h=B,j.time=On(z))},get state(){return T},play:F,pause:()=>{T="paused",$=z},stop:()=>{v=!0,T!=="idle"&&(T="idle",u&&u(),L())},cancel:()=>{D!==null&&R(D),L()},complete:()=>{T="finished"},sample:B=>(O=0,R(B))};return j}const PF=new Set(["opacity","clipPath","filter","transform","backgroundColor"]),Bs=10,TF=2e4,EF=(e,t)=>t.type==="spring"||e==="backgroundColor"||!rx(t.ease);function $F(e,t,{onUpdate:n,onComplete:r,...o}){if(!(ax.waapi()&&PF.has(t)&&!o.repeatDelay&&o.repeatType!=="mirror"&&o.damping!==0&&o.type!=="inertia"))return!1;let a=!1,s,l;const u=()=>{l=new Promise(m=>{s=m})};u();let{keyframes:c,duration:d=300,ease:f,times:h}=o;if(EF(t,o)){const m=au({...o,repeat:0,delay:0});let p={done:!1,value:c[0]};const y=[];let k=0;for(;!p.done&&kv.cancel(),x=()=>{Te.update(g),s(),u()};return v.onfinish=()=>{e.set(Vz(c,o)),r&&r(),x()},{then(m,p){return l.then(m,p)},get time(){return On(v.currentTime||0)},set time(m){v.currentTime=mr(m)},get speed(){return v.playbackRate},set speed(m){v.playbackRate=m},get duration(){return On(d)},play:()=>{a||(v.play(),Wn(g))},pause:()=>v.pause(),stop:()=>{if(a=!0,v.playState==="idle")return;const{currentTime:m}=v;if(m){const p=au({...o,autoplay:!1});e.setWithVelocity(p.sample(m-Bs).value,p.sample(m).value,Bs)}x()},complete:()=>v.finish(),cancel:x}}function AF({keyframes:e,delay:t,onUpdate:n,onComplete:r}){const o=()=>(n&&n(e[e.length-1]),r&&r(),{time:0,speed:1,duration:0,play:We,pause:We,stop:We,then:i=>(i(),Promise.resolve()),cancel:We,complete:We});return t?au({keyframes:[0,1],duration:0,delay:t,onComplete:o}):o()}const MF={type:"spring",stiffness:500,damping:25,restSpeed:10},RF=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),zF={type:"keyframes",duration:.8},FF={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},IF=(e,{keyframes:t})=>t.length>2?zF:io.has(e)?e.startsWith("scale")?RF(t[1]):MF:FF,Gf=(e,t)=>e==="zIndex"?!1:!!(typeof t=="number"||Array.isArray(t)||typeof t=="string"&&(br.test(t)||t==="0")&&!t.startsWith("url(")),DF=new Set(["brightness","contrast","saturate","opacity"]);function OF(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(Ju)||[];if(!r)return e;const o=n.replace(r,"");let i=DF.has(t)?1:0;return r!==n&&(i*=100),t+"("+i+o+")"}const LF=/([a-z-]*)\(.*?\)/g,Kf={...br,getAnimatableNone:e=>{const t=e.match(LF);return t?t.map(OF).join(" "):e}},jF={...jS,color:lt,backgroundColor:lt,outlineColor:lt,fill:lt,stroke:lt,borderColor:lt,borderTopColor:lt,borderRightColor:lt,borderBottomColor:lt,borderLeftColor:lt,filter:Kf,WebkitFilter:Kf},Kp=e=>jF[e];function Ex(e,t){let n=Kp(e);return n!==Kf&&(n=br),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const $x=e=>/^0[^.\s]+$/.test(e);function BF(e){if(typeof e=="number")return e===0;if(e!==null)return e==="none"||e==="0"||$x(e)}function NF(e,t,n,r){const o=Gf(t,n);let i;Array.isArray(n)?i=[...n]:i=[null,n];const a=r.from!==void 0?r.from:e.get();let s;const l=[];for(let u=0;uo=>{const i=Ax(r,e)||{},a=i.delay||r.delay||0;let{elapsed:s=0}=r;s=s-mr(a);const l=NF(t,e,n,i),u=l[0],c=l[l.length-1],d=Gf(e,u),f=Gf(e,c);let h={keyframes:l,velocity:t.getVelocity(),ease:"easeOut",...i,delay:-s,onUpdate:v=>{t.set(v),i.onUpdate&&i.onUpdate(v)},onComplete:()=>{o(),i.onComplete&&i.onComplete()}};if(VF(i)||(h={...h,...IF(e,h)}),h.duration&&(h.duration=mr(h.duration)),h.repeatDelay&&(h.repeatDelay=mr(h.repeatDelay)),!d||!f||Bz.current||i.type===!1)return AF(h);if(t.owner&&t.owner.current instanceof HTMLElement&&!t.owner.getProps().onUpdate){const v=$F(t,e,h);if(v)return v}return au(h)};function su(e){return!!(kt(e)&&e.add)}const WF=e=>/^\-?\d*\.?\d+$/.test(e);function qp(e,t){e.indexOf(t)===-1&&e.push(t)}function Xp(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}class Qp{constructor(){this.subscriptions=[]}add(t){return qp(this.subscriptions,t),()=>Xp(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 UF{constructor(t,n={}){this.version="10.12.12",this.timeDelta=0,this.lastUpdated=0,this.canTrackVelocity=!1,this.events={},this.updateAndNotify=(r,o=!0)=>{this.prev=this.current,this.current=r;const{delta:i,timestamp:a}=Ye;this.lastUpdated!==a&&(this.timeDelta=i,this.lastUpdated=a,Te.postRender(this.scheduleVelocityCheck)),this.prev!==this.current&&this.events.change&&this.events.change.notify(this.current),this.events.velocityChange&&this.events.velocityChange.notify(this.getVelocity()),o&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.scheduleVelocityCheck=()=>Te.postRender(this.velocityCheck),this.velocityCheck=({timestamp:r})=>{r!==this.lastUpdated&&(this.prev=this.current,this.events.velocityChange&&this.events.velocityChange.notify(this.getVelocity()))},this.hasAnimated=!1,this.prev=this.current=t,this.canTrackVelocity=HF(this.current),this.owner=n.owner}onChange(t){return this.on("change",t)}on(t,n){this.events[t]||(this.events[t]=new Qp);const r=this.events[t].add(n);return t==="change"?()=>{r(),Te.read(()=>{this.events.change.getSize()||this.stop()})}:r}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,n){this.passiveEffect=t,this.stopPassiveEffect=n}set(t,n=!0){!n||!this.passiveEffect?this.updateAndNotify(t,n):this.passiveEffect(t,this.updateAndNotify)}setWithVelocity(t,n,r){this.set(n),this.prev=t,this.timeDelta=r}jump(t){this.updateAndNotify(t),this.prev=t,this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return this.current}getPrevious(){return this.prev}getVelocity(){return this.canTrackVelocity?_x(parseFloat(this.current)-parseFloat(this.prev),this.timeDelta):0}start(t){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=t(n),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function ai(e,t){return new UF(e,t)}const Mx=e=>t=>t.test(e),GF={test:e=>e==="auto",parse:e=>e},Rx=[ao,Y,bn,qn,Z4,Q4,GF],Mi=e=>Rx.find(Mx(e)),KF=[...Rx,lt,br],YF=e=>KF.find(Mx(e));function qF(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,ai(n))}function XF(e,t){const n=nc(e,t);let{transitionEnd:r={},transition:o={},...i}=n?e.makeTargetAnimatable(n,!1):{};i={...i,...r};for(const a in i){const s=fz(i[a]);qF(e,a,s)}}function QF(e,t,n){var r,o;const i=Object.keys(t).filter(s=>!e.hasValue(s)),a=i.length;if(a)for(let s=0;sl.remove(d))),u.push(g)}return a&&Promise.all(u).then(()=>{a&&XF(e,a)}),u}function Yf(e,t,n={}){const r=nc(e,t,n.custom);let{transition:o=e.getDefaultTransition()||{}}=r||{};n.transitionOverride&&(o=n.transitionOverride);const i=r?()=>Promise.all(zx(e,r,n)):()=>Promise.resolve(),a=e.variantChildren&&e.variantChildren.size?(l=0)=>{const{delayChildren:u=0,staggerChildren:c,staggerDirection:d}=o;return tI(e,t,u+l,c,d,n)}:()=>Promise.resolve(),{when:s}=o;if(s){const[l,u]=s==="beforeChildren"?[i,a]:[a,i];return l().then(()=>u())}else return Promise.all([i(),a(n.delay)])}function tI(e,t,n=0,r=0,o=1,i){const a=[],s=(e.variantChildren.size-1)*r,l=o===1?(u=0)=>u*r:(u=0)=>s-u*r;return Array.from(e.variantChildren).sort(nI).forEach((u,c)=>{u.notify("AnimationStart",t),a.push(Yf(u,t,{...i,delay:n+l(c)}).then(()=>u.notify("AnimationComplete",t)))}),Promise.all(a)}function nI(e,t){return e.sortNodePosition(t)}function rI(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const o=t.map(i=>Yf(e,i,n));r=Promise.all(o)}else if(typeof t=="string")r=Yf(e,t,n);else{const o=typeof t=="function"?nc(e,t,n.custom):t;r=Promise.all(zx(e,o,n))}return r.then(()=>e.notify("AnimationComplete",t))}const oI=[...Rp].reverse(),iI=Rp.length;function aI(e){return t=>Promise.all(t.map(({animation:n,options:r})=>rI(e,n,r)))}function sI(e){let t=aI(e);const n=uI();let r=!0;const o=(l,u)=>{const c=nc(e,u);if(c){const{transition:d,transitionEnd:f,...h}=c;l={...l,...h,...f}}return l};function i(l){t=l(e)}function a(l,u){const c=e.getProps(),d=e.getVariantContext(!0)||{},f=[],h=new Set;let v={},g=1/0;for(let m=0;mg&&P;const D=Array.isArray(k)?k:[k];let Q=D.reduce(o,{});A===!1&&(Q={});const{prevResolvedValues:fe={}}=y,V={...fe,...Q},z=R=>{O=!0,h.delete(R),y.needsAnimating[R]=!0};for(const R in V){const H=Q[R],L=fe[R];v.hasOwnProperty(R)||(H!==L?ru(H)&&ru(L)?!tx(H,L)||$?z(R):y.protectedKeys[R]=!0:H!==void 0?z(R):h.add(R):H!==void 0&&h.has(R)?z(R):y.protectedKeys[R]=!0)}y.prevProp=k,y.prevResolvedValues=Q,y.isActive&&(v={...v,...Q}),r&&e.blockInitialAnimation&&(O=!1),O&&!T&&f.push(...D.map(R=>({animation:R,options:{type:p,...l}})))}if(h.size){const m={};h.forEach(p=>{const y=e.getBaseTarget(p);y!==void 0&&(m[p]=y)}),f.push({animation:m})}let x=!!f.length;return r&&c.initial===!1&&!e.manuallyAnimateOnMount&&(x=!1),r=!1,x?t(f):Promise.resolve()}function s(l,u,c){var d;if(n[l].isActive===u)return Promise.resolve();(d=e.variantChildren)===null||d===void 0||d.forEach(h=>{var v;return(v=h.animationState)===null||v===void 0?void 0:v.setActive(l,u)}),n[l].isActive=u;const f=a(c,l);for(const h in n)n[h].protectedKeys={};return f}return{animateChanges:a,setActive:s,setAnimateFunction:i,getState:()=>n}}function lI(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!tx(t,e):!1}function Tr(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function uI(){return{animate:Tr(!0),whileInView:Tr(),whileHover:Tr(),whileTap:Tr(),whileDrag:Tr(),whileFocus:Tr(),exit:Tr()}}class cI extends kr{constructor(t){super(t),t.animationState||(t.animationState=sI(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();this.unmount(),Qu(t)&&(this.unmount=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:n}=this.node.prevProps||{};t!==n&&this.updateAnimationControlsSubscription()}unmount(){}}let dI=0;class fI extends kr{constructor(){super(...arguments),this.id=dI++}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:n,custom:r}=this.node.presenceContext,{isPresent:o}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===o)return;const i=this.node.animationState.setActive("exit",!t,{custom:r??this.node.getProps().custom});n&&!t&&i.then(()=>n(this.id))}mount(){const{register:t}=this.node.presenceContext||{};t&&(this.unmount=t(this.id))}unmount(){}}const hI={animation:{Feature:cI},exit:{Feature:fI}},l0=(e,t)=>Math.abs(e-t);function pI(e,t){const n=l0(e.x,t.x),r=l0(e.y,t.y);return Math.sqrt(n**2+r**2)}class Fx{constructor(t,n,{transformPagePoint:r}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const u=wd(this.lastMoveEventInfo,this.history),c=this.startEvent!==null,d=pI(u.offset,{x:0,y:0})>=3;if(!c&&!d)return;const{point:f}=u,{timestamp:h}=Ye;this.history.push({...f,timestamp:h});const{onStart:v,onMove:g}=this.handlers;c||(v&&v(this.lastMoveEvent,u),this.startEvent=this.lastMoveEvent),g&&g(this.lastMoveEvent,u)},this.handlePointerMove=(u,c)=>{this.lastMoveEvent=u,this.lastMoveEventInfo=xd(c,this.transformPagePoint),Te.update(this.updatePoint,!0)},this.handlePointerUp=(u,c)=>{if(this.end(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const{onEnd:d,onSessionEnd:f}=this.handlers,h=wd(u.type==="pointercancel"?this.lastMoveEventInfo:xd(c,this.transformPagePoint),this.history);this.startEvent&&d&&d(u,h),f&&f(u,h)},!qS(t))return;this.handlers=n,this.transformPagePoint=r;const o=ec(t),i=xd(o,this.transformPagePoint),{point:a}=i,{timestamp:s}=Ye;this.history=[{...a,timestamp:s}];const{onSessionStart:l}=n;l&&l(t,wd(i,this.history)),this.removeListeners=pr(Dn(window,"pointermove",this.handlePointerMove),Dn(window,"pointerup",this.handlePointerUp),Dn(window,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),Wn(this.updatePoint)}}function xd(e,t){return t?{point:t(e.point)}:e}function u0(e,t){return{x:e.x-t.x,y:e.y-t.y}}function wd({point:e},t){return{point:e,delta:u0(e,Ix(t)),offset:u0(e,mI(t)),velocity:vI(t,.1)}}function mI(e){return e[0]}function Ix(e){return e[e.length-1]}function vI(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const o=Ix(e);for(;n>=0&&(r=e[n],!(o.timestamp-r.timestamp>mr(t)));)n--;if(!r)return{x:0,y:0};const i=On(o.timestamp-r.timestamp);if(i===0)return{x:0,y:0};const a={x:(o.x-r.x)/i,y:(o.y-r.y)/i};return a.x===1/0&&(a.x=0),a.y===1/0&&(a.y=0),a}function Mt(e){return e.max-e.min}function qf(e,t=0,n=.01){return Math.abs(e-t)<=n}function c0(e,t,n,r=.5){e.origin=r,e.originPoint=Me(t.min,t.max,e.origin),e.scale=Mt(n)/Mt(t),(qf(e.scale,1,1e-4)||isNaN(e.scale))&&(e.scale=1),e.translate=Me(n.min,n.max,e.origin)-e.originPoint,(qf(e.translate)||isNaN(e.translate))&&(e.translate=0)}function sa(e,t,n,r){c0(e.x,t.x,n.x,r?r.originX:void 0),c0(e.y,t.y,n.y,r?r.originY:void 0)}function d0(e,t,n){e.min=n.min+t.min,e.max=e.min+Mt(t)}function gI(e,t,n){d0(e.x,t.x,n.x),d0(e.y,t.y,n.y)}function f0(e,t,n){e.min=t.min-n.min,e.max=e.min+Mt(t)}function la(e,t,n){f0(e.x,t.x,n.x),f0(e.y,t.y,n.y)}function yI(e,{min:t,max:n},r){return t!==void 0&&en&&(e=r?Me(n,e,r.max):Math.min(e,n)),e}function h0(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 bI(e,{top:t,left:n,bottom:r,right:o}){return{x:h0(e.x,n,o),y:h0(e.y,t,r)}}function p0(e,t){let n=t.min-e.min,r=t.max-e.max;return t.max-t.minr?n=La(t.min,t.max-r,e.min):r>o&&(n=La(e.min,e.max-o,t.min)),Jr(0,1,n)}function wI(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 Xf=.35;function kI(e=Xf){return e===!1?e=0:e===!0&&(e=Xf),{x:m0(e,"left","right"),y:m0(e,"top","bottom")}}function m0(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 g0=()=>({translate:0,scale:1,origin:0,originPoint:0}),ua=()=>({x:g0(),y:g0()}),y0=()=>({min:0,max:0}),je=()=>({x:y0(),y:y0()});function ln(e){return[e("x"),e("y")]}function Dx({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function CI({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function _I(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 kd(e){return e===void 0||e===1}function Qf({scale:e,scaleX:t,scaleY:n}){return!kd(e)||!kd(t)||!kd(n)}function Ar(e){return Qf(e)||Ox(e)||e.z||e.rotate||e.rotateX||e.rotateY}function Ox(e){return b0(e.x)||b0(e.y)}function b0(e){return e&&e!=="0%"}function lu(e,t,n){const r=e-n,o=t*r;return n+o}function S0(e,t,n,r,o){return o!==void 0&&(e=lu(e,o,r)),lu(e,n,r)+t}function Zf(e,t=0,n=1,r,o){e.min=S0(e.min,t,n,r,o),e.max=S0(e.max,t,n,r,o)}function Lx(e,{x:t,y:n}){Zf(e.x,t.translate,t.scale,t.originPoint),Zf(e.y,n.translate,n.scale,n.originPoint)}function PI(e,t,n,r=!1){const o=n.length;if(!o)return;t.x=t.y=1;let i,a;for(let s=0;s1.0000000000001||e<.999999999999?e:1}function Zn(e,t){e.min=e.min+t,e.max=e.max+t}function w0(e,t,[n,r,o]){const i=t[o]!==void 0?t[o]:.5,a=Me(e.min,e.max,i);Zf(e,t[n],t[r],a,t.scale)}const TI=["x","scaleX","originX"],EI=["y","scaleY","originY"];function Fo(e,t){w0(e.x,t,TI),w0(e.y,t,EI)}function jx(e,t){return Dx(_I(e.getBoundingClientRect(),t))}function $I(e,t,n){const r=jx(e,n),{scroll:o}=t;return o&&(Zn(r.x,o.offset.x),Zn(r.y,o.offset.y)),r}const AI=new WeakMap;class MI{constructor(t){this.openGlobalLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=je(),this.visualElement=t}start(t,{snapToCursor:n=!1}={}){const{presenceContext:r}=this.visualElement;if(r&&r.isPresent===!1)return;const o=l=>{this.stopAnimation(),n&&this.snapToCursor(ec(l,"page").point)},i=(l,u)=>{const{drag:c,dragPropagation:d,onDragStart:f}=this.getProps();if(c&&!d&&(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=QS(c),!this.openGlobalLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),ln(v=>{let g=this.getAxisMotionValue(v).get()||0;if(bn.test(g)){const{projection:x}=this.visualElement;if(x&&x.layout){const m=x.layout.layoutBox[v];m&&(g=Mt(m)*(parseFloat(g)/100))}}this.originPoint[v]=g}),f&&Te.update(()=>f(l,u),!1,!0);const{animationState:h}=this.visualElement;h&&h.setActive("whileDrag",!0)},a=(l,u)=>{const{dragPropagation:c,dragDirectionLock:d,onDirectionLock:f,onDrag:h}=this.getProps();if(!c&&!this.openGlobalLock)return;const{offset:v}=u;if(d&&this.currentDirection===null){this.currentDirection=RI(v),this.currentDirection!==null&&f&&f(this.currentDirection);return}this.updateAxis("x",u.point,v),this.updateAxis("y",u.point,v),this.visualElement.render(),h&&h(l,u)},s=(l,u)=>this.stop(l,u);this.panSession=new Fx(t,{onSessionStart:o,onStart:i,onMove:a,onSessionEnd:s},{transformPagePoint:this.visualElement.getTransformPagePoint()})}stop(t,n){const r=this.isDragging;if(this.cancel(),!r)return;const{velocity:o}=n;this.startAnimation(o);const{onDragEnd:i}=this.getProps();i&&Te.update(()=>i(t,n))}cancel(){this.isDragging=!1;const{projection:t,animationState:n}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:r}=this.getProps();!r&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),n&&n.setActive("whileDrag",!1)}updateAxis(t,n,r){const{drag:o}=this.getProps();if(!r||!Ns(t,o,this.currentDirection))return;const i=this.getAxisMotionValue(t);let a=this.originPoint[t]+r[t];this.constraints&&this.constraints[t]&&(a=yI(a,this.constraints[t],this.elastic[t])),i.set(a)}resolveConstraints(){const{dragConstraints:t,dragElastic:n}=this.getProps(),{layout:r}=this.visualElement.projection||{},o=this.constraints;t&&Ro(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):t&&r?this.constraints=bI(r.layoutBox,t):this.constraints=!1,this.elastic=kI(n),o!==this.constraints&&r&&this.constraints&&!this.hasMutatedConstraints&&ln(i=>{this.getAxisMotionValue(i)&&(this.constraints[i]=wI(r.layoutBox[i],this.constraints[i]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!Ro(t))return!1;const r=t.current,{projection:o}=this.visualElement;if(!o||!o.layout)return!1;const i=$I(r,o.root,this.visualElement.getTransformPagePoint());let a=SI(o.layout.layoutBox,i);if(n){const s=n(CI(a));this.hasMutatedConstraints=!!s,s&&(a=Dx(s))}return a}startAnimation(t){const{drag:n,dragMomentum:r,dragElastic:o,dragTransition:i,dragSnapToOrigin:a,onDragTransitionEnd:s}=this.getProps(),l=this.constraints||{},u=ln(c=>{if(!Ns(c,n,this.currentDirection))return;let d=l&&l[c]||{};a&&(d={min:0,max:0});const f=o?200:1e6,h=o?40:1e7,v={type:"inertia",velocity:r?t[c]:0,bounceStiffness:f,bounceDamping:h,timeConstant:750,restDelta:1,restSpeed:10,...i,...d};return this.startAxisValueAnimation(c,v)});return Promise.all(u).then(s)}startAxisValueAnimation(t,n){const r=this.getAxisMotionValue(t);return r.start(Yp(t,r,0,n))}stopAnimation(){ln(t=>this.getAxisMotionValue(t).stop())}getAxisMotionValue(t){const n="_drag"+t.toUpperCase(),r=this.visualElement.getProps(),o=r[n];return o||this.visualElement.getValue(t,(r.initial?r.initial[t]:void 0)||0)}snapToCursor(t){ln(n=>{const{drag:r}=this.getProps();if(!Ns(n,r,this.currentDirection))return;const{projection:o}=this.visualElement,i=this.getAxisMotionValue(n);if(o&&o.layout){const{min:a,max:s}=o.layout.layoutBox[n];i.set(t[n]-Me(a,s,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!Ro(n)||!r||!this.constraints)return;this.stopAnimation();const o={x:0,y:0};ln(a=>{const s=this.getAxisMotionValue(a);if(s){const l=s.get();o[a]=xI({min:l,max:l},this.constraints[a])}});const{transformTemplate:i}=this.visualElement.getProps();this.visualElement.current.style.transform=i?i({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.resolveConstraints(),ln(a=>{if(!Ns(a,t,null))return;const s=this.getAxisMotionValue(a),{min:l,max:u}=this.constraints[a];s.set(Me(l,u,o[a]))})}addListeners(){if(!this.visualElement.current)return;AI.set(this.visualElement,this);const t=this.visualElement.current,n=Dn(t,"pointerdown",l=>{const{drag:u,dragListener:c=!0}=this.getProps();u&&c&&this.start(l)}),r=()=>{const{dragConstraints:l}=this.getProps();Ro(l)&&(this.constraints=this.resolveRefConstraints())},{projection:o}=this.visualElement,i=o.addEventListener("measure",r);o&&!o.layout&&(o.root&&o.root.updateScroll(),o.updateLayout()),r();const a=zn(window,"resize",()=>this.scalePositionWithinConstraints()),s=o.addEventListener("didUpdate",({delta:l,hasLayoutChanged:u})=>{this.isDragging&&u&&(ln(c=>{const d=this.getAxisMotionValue(c);d&&(this.originPoint[c]+=l[c].translate,d.set(d.get()+l[c].translate))}),this.visualElement.render())});return()=>{a(),n(),i(),s&&s()}}getProps(){const t=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:r=!1,dragPropagation:o=!1,dragConstraints:i=!1,dragElastic:a=Xf,dragMomentum:s=!0}=t;return{...t,drag:n,dragDirectionLock:r,dragPropagation:o,dragConstraints:i,dragElastic:a,dragMomentum:s}}}function Ns(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function RI(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class zI extends kr{constructor(t){super(t),this.removeGroupControls=We,this.removeListeners=We,this.controls=new MI(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||We}unmount(){this.removeGroupControls(),this.removeListeners()}}const k0=e=>(t,n)=>{e&&Te.update(()=>e(t,n))};class FI extends kr{constructor(){super(...arguments),this.removePointerDownListener=We}onPointerDown(t){this.session=new Fx(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint()})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:r,onPanEnd:o}=this.node.getProps();return{onSessionStart:k0(t),onStart:k0(n),onMove:r,onEnd:(i,a)=>{delete this.session,o&&Te.update(()=>o(i,a))}}}mount(){this.removePointerDownListener=Dn(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}function Bx(){const e=b.useContext(Qa);if(e===null)return[!0,null];const{isPresent:t,onExitComplete:n,register:r}=e,o=b.useId();return b.useEffect(()=>r(o),[]),!t&&n?[!1,()=>n&&n(o)]:[!0]}function II(){return DI(b.useContext(Qa))}function DI(e){return e===null?!0:e.isPresent}const bl={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function C0(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const Ri={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(Y.test(e))e=parseFloat(e);else return e;const n=C0(e,t.target.x),r=C0(e,t.target.y);return`${n}% ${r}%`}},OI={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,o=br.parse(e);if(o.length>5)return r;const i=br.createTransformer(e),a=typeof o[0]!="number"?1:0,s=n.x.scale*t.x,l=n.y.scale*t.y;o[0+a]/=s,o[1+a]/=l;const u=Me(s,l,.5);return typeof o[2+a]=="number"&&(o[2+a]/=u),typeof o[3+a]=="number"&&(o[3+a]/=u),i(o)}};class LI extends yt.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r,layoutId:o}=this.props,{projection:i}=t;H4(jI),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()})),bl.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:n,visualElement:r,drag:o,isPresent:i}=this.props,a=r.projection;return a&&(a.isPresent=i,o||t.layoutDependency!==n||n===void 0?a.willUpdate():this.safeToRemove(),t.isPresent!==i&&(i?a.promote():a.relegate()||Te.postRender(()=>{const s=a.getStack();(!s||!s.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),queueMicrotask(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r}=this.props,{projection:o}=t;o&&(o.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(o),r&&r.deregister&&r.deregister(o))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function Nx(e){const[t,n]=Bx(),r=b.useContext(Fp);return yt.createElement(LI,{...e,layoutGroup:r,switchLayoutGroup:b.useContext(FS),isPresent:t,safeToRemove:n})}const jI={borderRadius:{...Ri,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:Ri,borderTopRightRadius:Ri,borderBottomLeftRadius:Ri,borderBottomRightRadius:Ri,boxShadow:OI},Vx=["TopLeft","TopRight","BottomLeft","BottomRight"],BI=Vx.length,_0=e=>typeof e=="string"?parseFloat(e):e,P0=e=>typeof e=="number"||Y.test(e);function NI(e,t,n,r,o,i){o?(e.opacity=Me(0,n.opacity!==void 0?n.opacity:1,VI(r)),e.opacityExit=Me(t.opacity!==void 0?t.opacity:1,0,WI(r))):i&&(e.opacity=Me(t.opacity!==void 0?t.opacity:1,n.opacity!==void 0?n.opacity:1,r));for(let a=0;art?1:n(La(e,t,r))}function E0(e,t){e.min=t.min,e.max=t.max}function Lt(e,t){E0(e.x,t.x),E0(e.y,t.y)}function $0(e,t,n,r,o){return e-=t,e=lu(e,1/n,r),o!==void 0&&(e=lu(e,1/o,r)),e}function HI(e,t=0,n=1,r=.5,o,i=e,a=e){if(bn.test(t)&&(t=parseFloat(t),t=Me(a.min,a.max,t/100)-a.min),typeof t!="number")return;let s=Me(i.min,i.max,r);e===i&&(s-=t),e.min=$0(e.min,t,n,s,o),e.max=$0(e.max,t,n,s,o)}function A0(e,t,[n,r,o],i,a){HI(e,t[n],t[r],t[o],t.scale,i,a)}const UI=["x","scaleX","originX"],GI=["y","scaleY","originY"];function M0(e,t,n,r){A0(e.x,t,UI,n?n.x:void 0,r?r.x:void 0),A0(e.y,t,GI,n?n.y:void 0,r?r.y:void 0)}function R0(e){return e.translate===0&&e.scale===1}function Hx(e){return R0(e.x)&&R0(e.y)}function Jf(e,t){return e.x.min===t.x.min&&e.x.max===t.x.max&&e.y.min===t.y.min&&e.y.max===t.y.max}function z0(e){return Mt(e.x)/Mt(e.y)}class KI{constructor(){this.members=[]}add(t){qp(this.members,t),t.scheduleRender()}remove(t){if(Xp(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 F0(e,t,n){let r="";const o=e.x.translate/t.x,i=e.y.translate/t.y;if((o||i)&&(r=`translate3d(${o}px, ${i}px, 0) `),(t.x!==1||t.y!==1)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),n){const{rotate:l,rotateX:u,rotateY:c}=n;l&&(r+=`rotate(${l}deg) `),u&&(r+=`rotateX(${u}deg) `),c&&(r+=`rotateY(${c}deg) `)}const a=e.x.scale*t.x,s=e.y.scale*t.y;return(a!==1||s!==1)&&(r+=`scale(${a}, ${s})`),r||"none"}const YI=(e,t)=>e.depth-t.depth;class qI{constructor(){this.children=[],this.isDirty=!1}add(t){qp(this.children,t),this.isDirty=!0}remove(t){Xp(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(YI),this.isDirty=!1,this.children.forEach(t)}}function XI(e,t){const n=performance.now(),r=({timestamp:o})=>{const i=o-n;i>=t&&(Wn(r),e(i-t))};return Te.read(r,!0),()=>Wn(r)}function QI(e){window.MotionDebug&&window.MotionDebug.record(e)}function ZI(e){return e instanceof SVGElement&&e.tagName!=="svg"}function JI(e,t,n){const r=kt(e)?e:ai(e);return r.start(Yp("",r,t,n)),r.animation}const I0=["","X","Y","Z"],D0=1e3;let eD=0;const Mr={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0};function Ux({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:o}){return class{constructor(a={},s=t==null?void 0:t()){this.id=eD++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{Mr.totalNodes=Mr.resolvedTargetDeltas=Mr.recalculatedProjection=0,this.nodes.forEach(rD),this.nodes.forEach(sD),this.nodes.forEach(lD),this.nodes.forEach(oD),QI(Mr)},this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=a,this.root=s?s.root||s:this,this.path=s?[...s.path,s]:[],this.parent=s,this.depth=s?s.depth+1:0;for(let l=0;lthis.root.updateBlockedByResize=!1;e(a,()=>{this.root.updateBlockedByResize=!0,d&&d(),d=XI(f,250),bl.hasAnimatedSinceResize&&(bl.hasAnimatedSinceResize=!1,this.nodes.forEach(L0))})}l&&this.root.registerSharedNode(l,this),this.options.animate!==!1&&c&&(l||u)&&this.addEventListener("didUpdate",({delta:d,hasLayoutChanged:f,hasRelativeTargetChanged:h,layout:v})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const g=this.options.transition||c.getDefaultTransition()||hD,{onLayoutAnimationStart:x,onLayoutAnimationComplete:m}=c.getProps(),p=!this.targetLayout||!Jf(this.targetLayout,v)||h,y=!f&&h;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||y||f&&(p||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(d,y);const k={...Ax(g,"layout"),onPlay:x,onComplete:m};(c.shouldReduceMotion||this.options.layoutRoot)&&(k.delay=0,k.type=!1),this.startAnimation(k)}else f||L0(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=v})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const a=this.getStack();a&&a.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,Wn(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(uD),this.animationId++)}getTransformTemplate(){const{visualElement:a}=this.options;return a&&a.getProps().transformTemplate}willUpdate(a=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let c=0;cthis.update()))}clearAllSnapshots(){this.nodes.forEach(iD),this.sharedNodes.forEach(cD)}scheduleUpdateProjection(){Te.preRender(this.updateProjection,!1,!0)}scheduleCheckAfterUnmount(){Te.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure())}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let l=0;l{const P=k/1e3;j0(d.x,a.x,P),j0(d.y,a.y,P),this.setTargetDelta(d),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(la(f,this.layout.layoutBox,this.relativeParent.layout.layoutBox),dD(this.relativeTarget,this.relativeTargetOrigin,f,P),y&&Jf(this.relativeTarget,y)&&(this.isProjectionDirty=!1),y||(y=je()),Lt(y,this.relativeTarget)),g&&(this.animationValues=c,NI(c,u,this.latestValues,P,p,m)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=P},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(a){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(Wn(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=Te.update(()=>{bl.hasAnimatedSinceResize=!0,this.currentAnimation=JI(0,D0,{...a,onUpdate:s=>{this.mixTargetDelta(s),a.onUpdate&&a.onUpdate(s)},onComplete:()=>{a.onComplete&&a.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 a=this.getStack();a&&a.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(D0),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const a=this.getLead();let{targetWithTransforms:s,target:l,layout:u,latestValues:c}=a;if(!(!s||!l||!u)){if(this!==a&&this.layout&&u&&Gx(this.options.animationType,this.layout.layoutBox,u.layoutBox)){l=this.target||je();const d=Mt(this.layout.layoutBox.x);l.x.min=a.target.x.min,l.x.max=l.x.min+d;const f=Mt(this.layout.layoutBox.y);l.y.min=a.target.y.min,l.y.max=l.y.min+f}Lt(s,l),Fo(s,c),sa(this.projectionDeltaWithTransform,this.layoutCorrected,s,c)}}registerSharedNode(a,s){this.sharedNodes.has(a)||this.sharedNodes.set(a,new KI),this.sharedNodes.get(a).add(s);const u=s.options.initialPromotionConfig;s.promote({transition:u?u.transition:void 0,preserveFollowOpacity:u&&u.shouldPreserveFollowOpacity?u.shouldPreserveFollowOpacity(s):void 0})}isLead(){const a=this.getStack();return a?a.lead===this:!0}getLead(){var a;const{layoutId:s}=this.options;return s?((a=this.getStack())===null||a===void 0?void 0:a.lead)||this:this}getPrevLead(){var a;const{layoutId:s}=this.options;return s?(a=this.getStack())===null||a===void 0?void 0:a.prevLead:void 0}getStack(){const{layoutId:a}=this.options;if(a)return this.root.sharedNodes.get(a)}promote({needsReset:a,transition:s,preserveFollowOpacity:l}={}){const u=this.getStack();u&&u.promote(this,l),a&&(this.projectionDelta=void 0,this.needsReset=!0),s&&this.setOptions({transition:s})}relegate(){const a=this.getStack();return a?a.relegate(this):!1}resetRotation(){const{visualElement:a}=this.options;if(!a)return;let s=!1;const{latestValues:l}=a;if((l.rotate||l.rotateX||l.rotateY||l.rotateZ)&&(s=!0),!s)return;const u={};for(let c=0;c{var s;return(s=a.currentAnimation)===null||s===void 0?void 0:s.stop()}),this.root.nodes.forEach(O0),this.root.sharedNodes.clear()}}}function tD(e){e.updateLayout()}function nD(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,a=n.source!==e.layout.source;i==="size"?ln(d=>{const f=a?n.measuredBox[d]:n.layoutBox[d],h=Mt(f);f.min=r[d].min,f.max=f.min+h}):Gx(i,n.layoutBox,r)&&ln(d=>{const f=a?n.measuredBox[d]:n.layoutBox[d],h=Mt(r[d]);f.max=f.min+h,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[d].max=e.relativeTarget[d].min+h)});const s=ua();sa(s,r,n.layoutBox);const l=ua();a?sa(l,e.applyTransform(o,!0),n.measuredBox):sa(l,r,n.layoutBox);const u=!Hx(s);let c=!1;if(!e.resumeFrom){const d=e.getClosestProjectingParent();if(d&&!d.resumeFrom){const{snapshot:f,layout:h}=d;if(f&&h){const v=je();la(v,n.layoutBox,f.layoutBox);const g=je();la(g,r,h.layoutBox),Jf(v,g)||(c=!0),d.options.layoutRoot&&(e.relativeTarget=g,e.relativeTargetOrigin=v,e.relativeParent=d)}}}e.notifyListeners("didUpdate",{layout:r,snapshot:n,delta:l,layoutDelta:s,hasLayoutChanged:u,hasRelativeTargetChanged:c})}else if(e.isLead()){const{onExitComplete:r}=e.options;r&&r()}e.options.transition=void 0}function rD(e){Mr.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 oD(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function iD(e){e.clearSnapshot()}function O0(e){e.clearMeasurements()}function aD(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function L0(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function sD(e){e.resolveTargetDelta()}function lD(e){e.calcProjection()}function uD(e){e.resetRotation()}function cD(e){e.removeLeadSnapshot()}function j0(e,t,n){e.translate=Me(t.translate,0,n),e.scale=Me(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function B0(e,t,n,r){e.min=Me(t.min,n.min,r),e.max=Me(t.max,n.max,r)}function dD(e,t,n,r){B0(e.x,t.x,n.x,r),B0(e.y,t.y,n.y,r)}function fD(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const hD={duration:.45,ease:[.4,0,.1,1]};function N0(e){e.min=Math.round(e.min),e.max=Math.round(e.max)}function pD(e){N0(e.x),N0(e.y)}function Gx(e,t,n){return e==="position"||e==="preserve-aspect"&&!qf(z0(t),z0(n),.2)}const mD=Ux({attachResizeListener:(e,t)=>zn(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),Cd={current:void 0},Kx=Ux({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!Cd.current){const e=new mD({});e.mount(window),e.setOptions({layoutScroll:!0}),Cd.current=e}return Cd.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),vD={pan:{Feature:FI},drag:{Feature:zI,ProjectionNode:Kx,MeasureLayout:Nx}},gD=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/;function yD(e){const t=gD.exec(e);if(!t)return[,];const[,n,r]=t;return[n,r]}function eh(e,t,n=1){const[r,o]=yD(e);if(!r)return;const i=window.getComputedStyle(t).getPropertyValue(r);return i?i.trim():Nf(o)?eh(o,t,n+1):o}function bD(e,{...t},n){const r=e.current;if(!(r instanceof Element))return{target:t,transitionEnd:n};n&&(n={...n}),e.values.forEach(o=>{const i=o.get();if(!Nf(i))return;const a=eh(i,r);a&&o.set(a)});for(const o in t){const i=t[o];if(!Nf(i))continue;const a=eh(i,r);a&&(t[o]=a,n||(n={}),n[o]===void 0&&(n[o]=i))}return{target:t,transitionEnd:n}}const SD=new Set(["width","height","top","left","right","bottom","x","y"]),Yx=e=>SD.has(e),xD=e=>Object.keys(e).some(Yx),V0=e=>e===ao||e===Y,W0=(e,t)=>parseFloat(e.split(", ")[t]),H0=(e,t)=>(n,{transform:r})=>{if(r==="none"||!r)return 0;const o=r.match(/^matrix3d\((.+)\)$/);if(o)return W0(o[1],t);{const i=r.match(/^matrix\((.+)\)$/);return i?W0(i[1],e):0}},wD=new Set(["x","y","z"]),kD=Za.filter(e=>!wD.has(e));function CD(e){const t=[];return kD.forEach(n=>{const r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t.length&&e.render(),t}const U0={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:H0(4,13),y:H0(5,14)},_D=(e,t,n)=>{const r=t.measureViewportBox(),o=t.current,i=getComputedStyle(o),{display:a}=i,s={};a==="none"&&t.setStaticValue("display",e.display||"block"),n.forEach(u=>{s[u]=U0[u](r,i)}),t.render();const l=t.measureViewportBox();return n.forEach(u=>{const c=t.getValue(u);c&&c.jump(s[u]),e[u]=U0[u](l,i)}),e},PD=(e,t,n={},r={})=>{t={...t},r={...r};const o=Object.keys(t).filter(Yx);let i=[],a=!1;const s=[];if(o.forEach(l=>{const u=e.getValue(l);if(!e.hasValue(l))return;let c=n[l],d=Mi(c);const f=t[l];let h;if(ru(f)){const v=f.length,g=f[0]===null?1:0;c=f[g],d=Mi(c);for(let x=g;x=0?window.pageYOffset:null,u=_D(t,e,s);return i.length&&i.forEach(([c,d])=>{e.getValue(c).set(d)}),e.render(),Xu&&l!==null&&window.scrollTo({top:l}),{target:u,transitionEnd:r}}else return{target:t,transitionEnd:r}};function TD(e,t,n,r){return xD(t)?PD(e,t,n,r):{target:t,transitionEnd:r}}const ED=(e,t,n,r)=>{const o=bD(e,t,r);return t=o.target,r=o.transitionEnd,TD(e,t,n,r)},th={current:null},qx={current:!1};function $D(){if(qx.current=!0,!!Xu)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>th.current=e.matches;e.addListener(t),t()}else th.current=!1}function AD(e,t,n){const{willChange:r}=t;for(const o in t){const i=t[o],a=n[o];if(kt(i))e.addValue(o,i),su(r)&&r.add(o);else if(kt(a))e.addValue(o,ai(i,{owner:e})),su(r)&&r.remove(o);else if(a!==i)if(e.hasValue(o)){const s=e.getValue(o);!s.hasAnimated&&s.set(i)}else{const s=e.getStaticValue(o);e.addValue(o,ai(s!==void 0?s:i,{owner:e}))}}for(const o in n)t[o]===void 0&&e.removeValue(o);return t}const G0=new WeakMap,Xx=Object.keys(Da),MD=Xx.length,K0=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],RD=zp.length;class zD{constructor({parent:t,props:n,presenceContext:r,reducedMotionConfig:o,visualState:i},a={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.scheduleRender=()=>Te.render(this.render,!1,!0);const{latestValues:s,renderState:l}=i;this.latestValues=s,this.baseTarget={...s},this.initialValues=n.initial?{...s}:{},this.renderState=l,this.parent=t,this.props=n,this.presenceContext=r,this.depth=t?t.depth+1:0,this.reducedMotionConfig=o,this.options=a,this.isControllingVariants=Zu(n),this.isVariantNode=zS(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:u,...c}=this.scrapeMotionValuesFromProps(n,{});for(const d in c){const f=c[d];s[d]!==void 0&&kt(f)&&(f.set(s[d],!1),su(u)&&u.add(d))}}scrapeMotionValuesFromProps(t,n){return{}}mount(t){this.current=t,G0.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((n,r)=>this.bindToMotionValue(r,n)),qx.current||$D(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:th.current,this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){G0.delete(this.current),this.projection&&this.projection.unmount(),Wn(this.notifyUpdate),Wn(this.render),this.valueSubscriptions.forEach(t=>t()),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const t in this.events)this.events[t].clear();for(const t in this.features)this.features[t].unmount();this.current=null}bindToMotionValue(t,n){const r=io.has(t),o=n.on("change",a=>{this.latestValues[t]=a,this.props.onUpdate&&Te.update(this.notifyUpdate,!1,!0),r&&this.projection&&(this.projection.isTransformDirty=!0)}),i=n.on("renderRequest",this.scheduleRender);this.valueSubscriptions.set(t,()=>{o(),i()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}loadFeatures({children:t,...n},r,o,i){let a,s;for(let l=0;lthis.scheduleRender(),animationType:typeof u=="string"?u:"both",initialPromotionConfig:i,layoutScroll:f,layoutRoot:h})}return s}updateFeatures(){for(const t in this.features){const n=this.features[t];n.isMounted?n.update():(n.mount(),n.isMounted=!0)}}triggerBuild(){this.build(this.renderState,this.latestValues,this.options,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):je()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,n){this.latestValues[t]=n}makeTargetAnimatable(t,n=!0){return this.makeTargetAnimatableFromInstance(t,this.props,n)}update(t,n){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let r=0;rn.variantChildren.delete(t)}addValue(t,n){n!==this.values.get(t)&&(this.removeValue(t),this.bindToMotionValue(t,n)),this.values.set(t,n),this.latestValues[t]=n.get()}removeValue(t){this.values.delete(t);const n=this.valueSubscriptions.get(t);n&&(n(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,n){if(this.props.values&&this.props.values[t])return this.props.values[t];let r=this.values.get(t);return r===void 0&&n!==void 0&&(r=ai(n,{owner:this}),this.addValue(t,r)),r}readValue(t){return this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:this.readValueFromInstance(this.current,t,this.options)}setBaseTarget(t,n){this.baseTarget[t]=n}getBaseTarget(t){var n;const{initial:r}=this.props,o=typeof r=="string"||typeof r=="object"?(n=Vp(this.props,r))===null||n===void 0?void 0:n[t]:void 0;if(r&&o!==void 0)return o;const i=this.getBaseTargetFromProps(this.props,t);return i!==void 0&&!kt(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 Qp),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}}class Qx extends zD{sortInstanceNodePosition(t,n){return t.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(t,n){return t.style?t.style[n]:void 0}removeValueFromRenderState(t,{vars:n,style:r}){delete n[t],delete r[t]}makeTargetAnimatableFromInstance({transition:t,transitionEnd:n,...r},{transformValues:o},i){let a=JF(r,t||{},this);if(o&&(n&&(n=o(n)),r&&(r=o(r)),a&&(a=o(a))),i){QF(this,r,a);const s=ED(this,r,a,n);n=s.transitionEnd,r=s.target}return{transition:t,transitionEnd:n,...r}}}function FD(e){return window.getComputedStyle(e)}class ID extends Qx{readValueFromInstance(t,n){if(io.has(n)){const r=Kp(n);return r&&r.default||0}else{const r=FD(t),o=(OS(n)?r.getPropertyValue(n):r[n])||0;return typeof o=="string"?o.trim():o}}measureInstanceViewportBox(t,{transformPagePoint:n}){return jx(t,n)}build(t,n,r,o){Dp(t,n,r,o.transformTemplate)}scrapeMotionValuesFromProps(t,n){return Np(t,n)}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;kt(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}renderInstance(t,n,r,o){WS(t,n,r,o)}}class DD extends Qx{constructor(){super(...arguments),this.isSVGTag=!1}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(io.has(n)){const r=Kp(n);return r&&r.default||0}return n=HS.has(n)?n:Bp(n),t.getAttribute(n)}measureInstanceViewportBox(){return je()}scrapeMotionValuesFromProps(t,n){return GS(t,n)}build(t,n,r,o){Lp(t,n,r,this.isSVGTag,o.transformTemplate)}renderInstance(t,n,r,o){US(t,n,r,o)}mount(t){this.isSVGTag=jp(t.tagName),super.mount(t)}}const OD=(e,t)=>Ip(e)?new DD(t,{enableHardwareAcceleration:!1}):new ID(t,{enableHardwareAcceleration:!0}),LD={layout:{ProjectionNode:Kx,MeasureLayout:Nx}},jD={...hI,...Fz,...vD,...LD},rc=V4((e,t)=>gz(e,t,jD,OD));function Zx(){const e=b.useRef(!1);return eu(()=>(e.current=!0,()=>{e.current=!1}),[]),e}function BD(){const e=Zx(),[t,n]=b.useState(0),r=b.useCallback(()=>{e.current&&n(t+1)},[t]);return[b.useCallback(()=>Te.postRender(r),[r]),t]}class ND extends b.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 VD({children:e,isPresent:t}){const n=b.useId(),r=b.useRef(null),o=b.useRef({width:0,height:0,top:0,left:0});return b.useInsertionEffect(()=>{const{width:i,height:a,top:s,left:l}=o.current;if(t||!r.current||!i||!a)return;r.current.dataset.motionPopId=n;const u=document.createElement("style");return document.head.appendChild(u),u.sheet&&u.sheet.insertRule(` [data-motion-pop-id="${n}"] { position: absolute !important; width: ${i}px !important; height: ${a}px !important; top: ${s}px !important; left: ${l}px !important; } `),()=>{document.head.removeChild(u)}},[t]),b.createElement(ND,{isPresent:t,childRef:r,sizeRef:o},b.cloneElement(e,{ref:r}))}const _d=({children:e,initial:t,isPresent:n,onExitComplete:r,custom:o,presenceAffectsLayout:i,mode:a})=>{const s=KS(WD),l=b.useId(),u=b.useMemo(()=>({id:l,initial:t,isPresent:n,custom:o,onExitComplete:c=>{s.set(c,!0);for(const d of s.values())if(!d)return;r&&r()},register:c=>(s.set(c,!1),()=>s.delete(c))}),i?void 0:[n]);return b.useMemo(()=>{s.forEach((c,d)=>s.set(d,!1))},[n]),b.useEffect(()=>{!n&&!s.size&&r&&r()},[n]),a==="popLayout"&&(e=b.createElement(VD,{isPresent:n},e)),b.createElement(Qa.Provider,{value:u},e)};function WD(){return new Map}function HD(e){return b.useEffect(()=>()=>e(),[])}const go=e=>e.key||"";function UD(e,t){e.forEach(n=>{const r=go(n);t.set(r,n)})}function GD(e){const t=[];return b.Children.forEach(e,n=>{b.isValidElement(n)&&t.push(n)}),t}const oc=({children:e,custom:t,initial:n=!0,onExitComplete:r,exitBeforeEnter:o,presenceAffectsLayout:i=!0,mode:a="sync"})=>{const s=b.useContext(Fp).forceRender||BD()[0],l=Zx(),u=GD(e);let c=u;const d=b.useRef(new Map).current,f=b.useRef(c),h=b.useRef(new Map).current,v=b.useRef(!0);if(eu(()=>{v.current=!1,UD(u,h),f.current=c}),HD(()=>{v.current=!0,h.clear(),d.clear()}),v.current)return b.createElement(b.Fragment,null,c.map(p=>b.createElement(_d,{key:go(p),isPresent:!0,initial:n?void 0:!1,presenceAffectsLayout:i,mode:a},p)));c=[...c];const g=f.current.map(go),x=u.map(go),m=g.length;for(let p=0;p{if(x.indexOf(y)!==-1)return;const k=h.get(y);if(!k)return;const P=g.indexOf(y);let A=p;if(!A){const T=()=>{h.delete(y),d.delete(y);const $=f.current.findIndex(O=>O.key===y);if(f.current.splice($,1),!d.size){if(f.current=u,l.current===!1)return;s(),r&&r()}};A=b.createElement(_d,{key:go(k),isPresent:!1,onExitComplete:T,custom:t,presenceAffectsLayout:i,mode:a},k),d.set(y,A)}c.splice(P,0,A)}),c=c.map(p=>{const y=p.key;return d.has(y)?p:b.createElement(_d,{key:go(p),isPresent:!0,presenceAffectsLayout:i,mode:a},p)}),b.createElement(b.Fragment,null,d.size?c:c.map(p=>b.cloneElement(p)))};var KD={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]}}},Jx=b.memo(e=>{const{id:t,message:n,onCloseComplete:r,onRequestRemove:o,requestClose:i=!1,position:a="bottom",duration:s=5e3,containerStyle:l,motionVariants:u=KD,toastSpacing:c="0.5rem"}=e,[d,f]=b.useState(s),h=II();Bf(()=>{h||r==null||r()},[h]),Bf(()=>{f(s)},[s]);const v=()=>f(null),g=()=>f(s),x=()=>{h&&o()};b.useEffect(()=>{h&&i&&o()},[h,i,o]),z4(x,d);const m=b.useMemo(()=>({pointerEvents:"auto",maxWidth:560,minWidth:300,margin:c,...l}),[l,c]),p=b.useMemo(()=>M4(a),[a]);return w.jsx(rc.div,{layout:!0,className:"chakra-toast",variants:u,initial:"initial",animate:"animate",exit:"exit",onHoverStart:v,onHoverEnd:g,custom:{position:a},style:p,children:w.jsx(X.div,{role:"status","aria-atomic":"true",className:"chakra-toast__inner",__css:m,children:or(n,{id:t,onClose:x})})})});Jx.displayName="ToastComponent";var Y0={path:w.jsxs("g",{stroke:"currentColor",strokeWidth:"1.5",children:[w.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"}),w.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"}),w.jsx("circle",{fill:"none",strokeMiterlimit:"10",cx:"12",cy:"12",r:"11.25"})]}),viewBox:"0 0 24 24"},ns=ue((e,t)=>{const{as:n,viewBox:r,color:o="currentColor",focusable:i=!1,children:a,className:s,__css:l,...u}=e,c=ye("chakra-icon",s),d=oo("Icon",e),f={w:"1em",h:"1em",display:"inline-block",lineHeight:"1em",flexShrink:0,color:o,...l,...d},h={ref:t,focusable:i,className:c,__css:f},v=r??Y0.viewBox;if(n&&typeof n!="string")return w.jsx(X.svg,{as:n,...h,...u});const g=a??Y0.path;return w.jsx(X.svg,{verticalAlign:"middle",viewBox:v,...h,...u,children:g})});ns.displayName="Icon";function YD(e){return w.jsx(ns,{viewBox:"0 0 24 24",...e,children:w.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 qD(e){return w.jsx(ns,{viewBox:"0 0 24 24",...e,children:w.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 q0(e){return w.jsx(ns,{viewBox:"0 0 24 24",...e,children:w.jsx("path",{fill:"currentColor",d:"M11.983,0a12.206,12.206,0,0,0-8.51,3.653A11.8,11.8,0,0,0,0,12.207,11.779,11.779,0,0,0,11.8,24h.214A12.111,12.111,0,0,0,24,11.791h0A11.766,11.766,0,0,0,11.983,0ZM10.5,16.542a1.476,1.476,0,0,1,1.449-1.53h.027a1.527,1.527,0,0,1,1.523,1.47,1.475,1.475,0,0,1-1.449,1.53h-.027A1.529,1.529,0,0,1,10.5,16.542ZM11,12.5v-6a1,1,0,0,1,2,0v6a1,1,0,1,1-2,0Z"})})}var XD=Hu({"0%":{transform:"rotate(0deg)"},"100%":{transform:"rotate(360deg)"}}),Zp=ue((e,t)=>{const n=oo("Spinner",e),{label:r="Loading...",thickness:o="2px",speed:i="0.45s",emptyColor:a="transparent",className:s,...l}=rn(e),u=ye("chakra-spinner",s),c={display:"inline-block",borderColor:"currentColor",borderStyle:"solid",borderRadius:"99999px",borderWidth:o,borderBottomColor:a,borderLeftColor:a,animation:`${XD} ${i} linear infinite`,...n};return w.jsx(X.div,{ref:t,__css:c,className:u,...l,children:r&&w.jsx(X.span,{srOnly:!0,children:r})})});Zp.displayName="Spinner";var[QD,Jp]=Gt({name:"AlertContext",hookName:"useAlertContext",providerName:""}),[ZD,em]=Gt({name:"AlertStylesContext",hookName:"useAlertStyles",providerName:""}),ew={info:{icon:qD,colorScheme:"blue"},warning:{icon:q0,colorScheme:"orange"},success:{icon:YD,colorScheme:"green"},error:{icon:q0,colorScheme:"red"},loading:{icon:Zp,colorScheme:"blue"}};function JD(e){return ew[e].colorScheme}function eO(e){return ew[e].icon}var tw=ue(function(t,n){const r=em(),{status:o}=Jp(),i={display:"inline",...r.description};return w.jsx(X.div,{ref:n,"data-status":o,...t,className:ye("chakra-alert__desc",t.className),__css:i})});tw.displayName="AlertDescription";function nw(e){const{status:t}=Jp(),n=eO(t),r=em(),o=t==="loading"?r.spinner:r.icon;return w.jsx(X.span,{display:"inherit","data-status":t,...e,className:ye("chakra-alert__icon",e.className),__css:o,children:e.children||w.jsx(n,{h:"100%",w:"100%"})})}nw.displayName="AlertIcon";var rw=ue(function(t,n){const r=em(),{status:o}=Jp();return w.jsx(X.div,{ref:n,"data-status":o,...t,className:ye("chakra-alert__title",t.className),__css:r.title})});rw.displayName="AlertTitle";var ow=ue(function(t,n){var r;const{status:o="info",addRole:i=!0,...a}=rn(t),s=(r=t.colorScheme)!=null?r:JD(o),l=fi("Alert",{...t,colorScheme:s}),u={width:"100%",display:"flex",alignItems:"center",position:"relative",overflow:"hidden",...l.container};return w.jsx(QD,{value:{status:o},children:w.jsx(ZD,{value:l,children:w.jsx(X.div,{"data-status":o,role:i?"alert":void 0,ref:n,...a,className:ye("chakra-alert",t.className),__css:u})})})});ow.displayName="Alert";function tO(e){return w.jsx(ns,{focusable:"false","aria-hidden":!0,...e,children:w.jsx("path",{fill:"currentColor",d:"M.439,21.44a1.5,1.5,0,0,0,2.122,2.121L11.823,14.3a.25.25,0,0,1,.354,0l9.262,9.263a1.5,1.5,0,1,0,2.122-2.121L14.3,12.177a.25.25,0,0,1,0-.354l9.263-9.262A1.5,1.5,0,0,0,21.439.44L12.177,9.7a.25.25,0,0,1-.354,0L2.561.44A1.5,1.5,0,0,0,.439,2.561L9.7,11.823a.25.25,0,0,1,0,.354Z"})})}var tm=ue(function(t,n){const r=oo("CloseButton",t),{children:o,isDisabled:i,__css:a,...s}=rn(t),l={outline:0,display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0};return w.jsx(X.button,{type:"button","aria-label":"Close",ref:n,disabled:i,__css:{...l,...r,...a},...s,children:o||w.jsx(tO,{width:"1em",height:"1em"})})});tm.displayName="CloseButton";var nO={top:[],"top-left":[],"top-right":[],"bottom-left":[],bottom:[],"bottom-right":[]},ca=rO(nO);function rO(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(a=>({...a,[i]:a[i].filter(s=>s.id!=o)}))},notify:(o,i)=>{const a=oO(o,i),{position:s,id:l}=a;return r(u=>{var c,d;const h=s.includes("top")?[a,...(c=u[s])!=null?c:[]]:[...(d=u[s])!=null?d:[],a];return{...u,[s]:h}}),l},update:(o,i)=>{o&&r(a=>{const s={...a},{position:l,index:u}=Hg(s,o);return l&&u!==-1&&(s[l][u]={...s[l][u],...i,message:aO(i)}),s})},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 a=AS(i,o);return a?{...i,[a]:i[a].map(s=>s.id==o?{...s,requestClose:!0}:s)}:i})},isActive:o=>!!Hg(ca.getState(),o).position}}var X0=0;function oO(e,t={}){var n,r;X0+=1;const o=(n=t.id)!=null?n:X0,i=(r=t.position)!=null?r:"bottom";return{id:o,message:e,position:i,duration:t.duration,onCloseComplete:t.onCloseComplete,onRequestRemove:()=>ca.removeToast(String(o),i),status:t.status,requestClose:!1,containerStyle:t.containerStyle}}var iO=e=>{const{status:t,variant:n="solid",id:r,title:o,isClosable:i,onClose:a,description:s,colorScheme:l,icon:u}=e,c=r?{root:`toast-${r}`,title:`toast-${r}-title`,description:`toast-${r}-description`}:void 0;return w.jsxs(ow,{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:[w.jsx(nw,{children:u}),w.jsxs(X.div,{flex:"1",maxWidth:"100%",children:[o&&w.jsx(rw,{id:c==null?void 0:c.title,children:o}),s&&w.jsx(tw,{id:c==null?void 0:c.description,display:"block",children:s})]}),i&&w.jsx(tm,{size:"sm",onClick:a,position:"absolute",insetEnd:1,top:1})]})};function aO(e={}){const{render:t,toastComponent:n=iO}=e;return o=>typeof t=="function"?t({...o,...e}):w.jsx(n,{...o,...e})}var[sO,nN]=Gt({name:"ToastOptionsContext",strict:!1}),lO=e=>{const t=b.useSyncExternalStore(ca.subscribe,ca.getState,ca.getState),{motionVariants:n,component:r=Jx,portalProps:o}=e,a=Object.keys(t).map(s=>{const l=t[s];return w.jsx("div",{role:"region","aria-live":"polite",id:`chakra-toast-manager-${s}`,style:R4(s),children:w.jsx(oc,{initial:!1,children:l.map(u=>w.jsx(r,{motionVariants:n,...u},u.id))})},s)});return w.jsx(qa,{...o,children:a})},uO=e=>function({children:n,theme:r=e,toastOptions:o,...i}){return w.jsxs($4,{theme:r,...i,children:[w.jsx(sO,{value:o==null?void 0:o.defaultOptions,children:n}),w.jsx(lO,{...o})]})},cO=uO(X3);function dO(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 eo(...e){return t=>{e.forEach(n=>{dO(n,t)})}}function fO(...e){return b.useMemo(()=>eo(...e),e)}var nh={ease:[.25,.1,.25,1],easeIn:[.4,0,1,1],easeOut:[0,0,.2,1],easeInOut:[.4,0,.2,1]},zi={scale:{enter:{scale:1},exit:{scale:.95}},fade:{enter:{opacity:1},exit:{opacity:0}},pushLeft:{enter:{x:"100%"},exit:{x:"-30%"}},pushRight:{enter:{x:"-100%"},exit:{x:"30%"}},pushUp:{enter:{y:"100%"},exit:{y:"-30%"}},pushDown:{enter:{y:"-100%"},exit:{y:"30%"}},slideLeft:{position:{left:0,top:0,bottom:0,width:"100%"},enter:{x:0,y:0},exit:{x:"-100%",y:0}},slideRight:{position:{right:0,top:0,bottom:0,width:"100%"},enter:{x:0,y:0},exit:{x:"100%",y:0}},slideUp:{position:{top:0,left:0,right:0,maxWidth:"100vw"},enter:{x:0,y:0},exit:{x:0,y:"-100%"}},slideDown:{position:{bottom:0,left:0,right:0,maxWidth:"100vw"},enter:{x:0,y:0},exit:{x:0,y:"100%"}}};function rh(e){var t;switch((t=e==null?void 0:e.direction)!=null?t:"right"){case"right":return zi.slideRight;case"left":return zi.slideLeft;case"bottom":return zi.slideDown;case"top":return zi.slideUp;default:return zi.slideRight}}var Q0={enter:{duration:.2,ease:nh.easeOut},exit:{duration:.1,ease:nh.easeIn}},uu={enter:(e,t)=>({...e,delay:typeof t=="number"?t:t==null?void 0:t.enter}),exit:(e,t)=>({...e,delay:typeof t=="number"?t:t==null?void 0:t.exit})},hO={enter:({transition:e,transitionEnd:t,delay:n}={})=>{var r;return{opacity:1,transition:(r=e==null?void 0:e.enter)!=null?r:uu.enter(Q0.enter,n),transitionEnd:t==null?void 0:t.enter}},exit:({transition:e,transitionEnd:t,delay:n}={})=>{var r;return{opacity:0,transition:(r=e==null?void 0:e.exit)!=null?r:uu.exit(Q0.exit,n),transitionEnd:t==null?void 0:t.exit}}},iw={initial:"exit",animate:"enter",exit:"exit",variants:hO},pO=b.forwardRef(function(t,n){const{unmountOnExit:r,in:o,className:i,transition:a,transitionEnd:s,delay:l,...u}=t,c=o||r?"enter":"exit",d=r?o&&r:!0,f={transition:a,transitionEnd:s,delay:l};return w.jsx(oc,{custom:f,children:d&&w.jsx(rc.div,{ref:n,className:ye("chakra-fade",i),custom:f,...iw,animate:c,...u})})});pO.displayName="Fade";var Z0={exit:{duration:.15,ease:nh.easeInOut},enter:{type:"spring",damping:25,stiffness:180}},mO={exit:({direction:e,transition:t,transitionEnd:n,delay:r})=>{var o;const{exit:i}=rh({direction:e});return{...i,transition:(o=t==null?void 0:t.exit)!=null?o:uu.exit(Z0.exit,r),transitionEnd:n==null?void 0:n.exit}},enter:({direction:e,transitionEnd:t,transition:n,delay:r})=>{var o;const{enter:i}=rh({direction:e});return{...i,transition:(o=n==null?void 0:n.enter)!=null?o:uu.enter(Z0.enter,r),transitionEnd:t==null?void 0:t.enter}}},aw=b.forwardRef(function(t,n){const{direction:r="right",style:o,unmountOnExit:i,in:a,className:s,transition:l,transitionEnd:u,delay:c,motionProps:d,...f}=t,h=rh({direction:r}),v=Object.assign({position:"fixed"},h.position,o),g=i?a&&i:!0,x=a||i?"enter":"exit",m={transitionEnd:u,transition:l,direction:r,delay:c};return w.jsx(oc,{custom:m,children:g&&w.jsx(rc.div,{...f,ref:n,initial:"exit",className:ye("chakra-slide",s),animate:x,exit:"exit",custom:m,variants:mO,style:v,...d})})});aw.displayName="Slide";var oh=ue(function(t,n){const{htmlWidth:r,htmlHeight:o,alt:i,...a}=t;return w.jsx("img",{width:r,height:o,ref:n,alt:i,...a})});oh.displayName="NativeImage";function vO(e){const{loading:t,src:n,srcSet:r,onLoad:o,onError:i,crossOrigin:a,sizes:s,ignoreFallback:l}=e,[u,c]=b.useState("pending");b.useEffect(()=>{c(n?"loading":"pending")},[n]);const d=b.useRef(),f=b.useCallback(()=>{if(!n)return;h();const v=new Image;v.src=n,a&&(v.crossOrigin=a),r&&(v.srcset=r),s&&(v.sizes=s),t&&(v.loading=t),v.onload=g=>{h(),c("loaded"),o==null||o(g)},v.onerror=g=>{h(),c("failed"),i==null||i(g)},d.current=v},[n,a,r,s,o,i,t]),h=()=>{d.current&&(d.current.onload=null,d.current.onerror=null,d.current=null)};return hr(()=>{if(!l)return u==="loading"&&f(),()=>{h()}},[u,f,l]),l?"loaded":u}var gO=(e,t)=>e!=="loaded"&&t==="beforeLoadOrError"||e==="failed"&&t==="onError";function yO(e,t=[]){const n=Object.assign({},e);for(const r of t)r in n&&delete n[r];return n}var sw=ue(function(t,n){const{fallbackSrc:r,fallback:o,src:i,srcSet:a,align:s,fit:l,loading:u,ignoreFallback:c,crossOrigin:d,fallbackStrategy:f="beforeLoadOrError",referrerPolicy:h,...v}=t,g=r!==void 0||o!==void 0,x=u!=null||c||!g,m=vO({...t,crossOrigin:d,ignoreFallback:x}),p=gO(m,f),y={ref:n,objectFit:l,objectPosition:s,...x?v:yO(v,["onError","onLoad"])};return p?o||w.jsx(X.img,{as:oh,className:"chakra-image__placeholder",src:r,...y}):w.jsx(X.img,{as:oh,src:i,srcSet:a,crossOrigin:d,loading:u,referrerPolicy:h,className:"chakra-image",...y})});sw.displayName="Image";function bO(e){return b.Children.toArray(e).filter(t=>b.isValidElement(t))}var[rN,SO]=Gt({strict:!1,name:"ButtonGroupContext"});function xO(e){const[t,n]=b.useState(!e);return{ref:b.useCallback(i=>{i&&n(i.tagName==="BUTTON")},[]),type:t?"button":void 0}}function ih(e){const{children:t,className:n,...r}=e,o=b.isValidElement(t)?b.cloneElement(t,{"aria-hidden":!0,focusable:!1}):t,i=ye("chakra-button__icon",n);return w.jsx(X.span,{display:"inline-flex",alignSelf:"center",flexShrink:0,...r,className:i,children:o})}ih.displayName="ButtonIcon";function ah(e){const{label:t,placement:n,spacing:r="0.5rem",children:o=w.jsx(Zp,{color:"currentColor",width:"1em",height:"1em"}),className:i,__css:a,...s}=e,l=ye("chakra-button__spinner",i),u=n==="start"?"marginEnd":"marginStart",c=b.useMemo(()=>({display:"flex",alignItems:"center",position:t?"relative":"absolute",[u]:t?r:0,fontSize:"1em",lineHeight:"normal",...a}),[a,t,u,r]);return w.jsx(X.div,{className:l,...s,__css:c,children:o})}ah.displayName="ButtonSpinner";var cu=ue((e,t)=>{const n=SO(),r=oo("Button",{...n,...e}),{isDisabled:o=n==null?void 0:n.isDisabled,isLoading:i,isActive:a,children:s,leftIcon:l,rightIcon:u,loadingText:c,iconSpacing:d="0.5rem",type:f,spinner:h,spinnerPlacement:v="start",className:g,as:x,...m}=rn(e),p=b.useMemo(()=>{const A={...r==null?void 0:r._focus,zIndex:1};return{display:"inline-flex",appearance:"none",alignItems:"center",justifyContent:"center",userSelect:"none",position:"relative",whiteSpace:"nowrap",verticalAlign:"middle",outline:"none",...r,...!!n&&{_focus:A}}},[r,n]),{ref:y,type:k}=xO(x),P={rightIcon:u,leftIcon:l,iconSpacing:d,children:s};return w.jsxs(X.button,{ref:fO(t,y),as:x,type:f??k,"data-active":Ie(a),"data-loading":Ie(i),__css:p,className:ye("chakra-button",g),...m,disabled:o||i,children:[i&&v==="start"&&w.jsx(ah,{className:"chakra-button__spinner--start",label:c,placement:"start",spacing:d,children:h}),i?c||w.jsx(X.span,{opacity:0,children:w.jsx(J0,{...P})}):w.jsx(J0,{...P}),i&&v==="end"&&w.jsx(ah,{className:"chakra-button__spinner--end",label:c,placement:"end",spacing:d,children:h})]})});cu.displayName="Button";function J0(e){const{leftIcon:t,rightIcon:n,children:r,iconSpacing:o}=e;return w.jsxs(w.Fragment,{children:[t&&w.jsx(ih,{marginEnd:o,children:t}),r,n&&w.jsx(ih,{marginStart:o,children:n})]})}var sh=ue((e,t)=>{const{icon:n,children:r,isRound:o,"aria-label":i,...a}=e,s=n||r,l=b.isValidElement(s)?b.cloneElement(s,{"aria-hidden":!0,focusable:!1}):null;return w.jsx(cu,{padding:"0",borderRadius:o?"full":void 0,ref:t,"aria-label":i,...a,children:l})});sh.displayName="IconButton";var[oN,wO]=Gt({name:"CheckboxGroupContext",strict:!1});function kO(e){const[t,n]=b.useState(e),[r,o]=b.useState(!1);return e!==t&&(o(!0),n(e)),r}function CO(e){return w.jsx(X.svg,{width:"1.2em",viewBox:"0 0 12 10",style:{fill:"none",strokeWidth:2,stroke:"currentColor",strokeDasharray:16},...e,children:w.jsx("polyline",{points:"1.5 6 4.5 9 10.5 1"})})}function _O(e){return w.jsx(X.svg,{width:"1.2em",viewBox:"0 0 24 24",style:{stroke:"currentColor",strokeWidth:4},...e,children:w.jsx("line",{x1:"21",x2:"3",y1:"12",y2:"12"})})}function PO(e){const{isIndeterminate:t,isChecked:n,...r}=e,o=t?_O:CO;return n||t?w.jsx(X.div,{style:{display:"flex",alignItems:"center",justifyContent:"center",height:"100%"},children:w.jsx(o,{...r})}):null}var[TO,lw]=Gt({name:"FormControlStylesContext",errorMessage:`useFormControlStyles returned is 'undefined'. Seems you forgot to wrap the components in "" `}),[EO,ic]=Gt({strict:!1,name:"FormControlContext"});function $O(e){const{id:t,isRequired:n,isInvalid:r,isDisabled:o,isReadOnly:i,...a}=e,s=b.useId(),l=t||`field-${s}`,u=`${l}-label`,c=`${l}-feedback`,d=`${l}-helptext`,[f,h]=b.useState(!1),[v,g]=b.useState(!1),[x,m]=b.useState(!1),p=b.useCallback((T={},$=null)=>({id:d,...T,ref:eo($,O=>{O&&g(!0)})}),[d]),y=b.useCallback((T={},$=null)=>({...T,ref:$,"data-focus":Ie(x),"data-disabled":Ie(o),"data-invalid":Ie(r),"data-readonly":Ie(i),id:T.id!==void 0?T.id:u,htmlFor:T.htmlFor!==void 0?T.htmlFor:l}),[l,o,x,r,i,u]),k=b.useCallback((T={},$=null)=>({id:c,...T,ref:eo($,O=>{O&&h(!0)}),"aria-live":"polite"}),[c]),P=b.useCallback((T={},$=null)=>({...T,...a,ref:$,role:"group"}),[a]),A=b.useCallback((T={},$=null)=>({...T,ref:$,role:"presentation","aria-hidden":!0,children:T.children||"*"}),[]);return{isRequired:!!n,isInvalid:!!r,isReadOnly:!!i,isDisabled:!!o,isFocused:!!x,onFocus:()=>m(!0),onBlur:()=>m(!1),hasFeedbackText:f,setHasFeedbackText:h,hasHelpText:v,setHasHelpText:g,id:l,labelId:u,feedbackId:c,helpTextId:d,htmlProps:a,getHelpTextProps:p,getErrorMessageProps:k,getRootProps:P,getLabelProps:y,getRequiredIndicatorProps:A}}var Rr=ue(function(t,n){const r=fi("Form",t),o=rn(t),{getRootProps:i,htmlProps:a,...s}=$O(o),l=ye("chakra-form-control",t.className);return w.jsx(EO,{value:s,children:w.jsx(TO,{value:r,children:w.jsx(X.div,{...i({},n),className:l,__css:r.container})})})});Rr.displayName="FormControl";var AO=ue(function(t,n){const r=ic(),o=lw(),i=ye("chakra-form__helper-text",t.className);return w.jsx(X.div,{...r==null?void 0:r.getHelpTextProps(t,n),__css:o.helperText,className:i})});AO.displayName="FormHelperText";var zr=ue(function(t,n){var r;const o=oo("FormLabel",t),i=rn(t),{className:a,children:s,requiredIndicator:l=w.jsx(uw,{}),optionalIndicator:u=null,...c}=i,d=ic(),f=(r=d==null?void 0:d.getLabelProps(c,n))!=null?r:{ref:n,...c};return w.jsxs(X.label,{...f,className:ye("chakra-form__label",i.className),__css:{display:"block",textAlign:"start",...o},children:[s,d!=null&&d.isRequired?l:u]})});zr.displayName="FormLabel";var uw=ue(function(t,n){const r=ic(),o=lw();if(!(r!=null&&r.isRequired))return null;const i=ye("chakra-form__required-indicator",t.className);return w.jsx(X.span,{...r==null?void 0:r.getRequiredIndicatorProps(t,n),__css:o.requiredIndicator,className:i})});uw.displayName="RequiredIndicator";function cw(e){const{isDisabled:t,isInvalid:n,isReadOnly:r,isRequired:o,...i}=dw(e);return{...i,disabled:t,readOnly:r,required:o,"aria-invalid":Kc(n),"aria-required":Kc(o),"aria-readonly":Kc(r)}}function dw(e){var t,n,r;const o=ic(),{id:i,disabled:a,readOnly:s,required:l,isRequired:u,isInvalid:c,isReadOnly:d,isDisabled:f,onFocus:h,onBlur:v,...g}=e,x=e["aria-describedby"]?[e["aria-describedby"]]:[];return o!=null&&o.hasFeedbackText&&(o!=null&&o.isInvalid)&&x.push(o.feedbackId),o!=null&&o.hasHelpText&&x.push(o.helpTextId),{...g,"aria-describedby":x.join(" ")||void 0,id:i??(o==null?void 0:o.id),isDisabled:(t=a??f)!=null?t:o==null?void 0:o.isDisabled,isReadOnly:(n=s??d)!=null?n:o==null?void 0:o.isReadOnly,isRequired:(r=l??u)!=null?r:o==null?void 0:o.isRequired,isInvalid:c??(o==null?void 0:o.isInvalid),onFocus:Ge(o==null?void 0:o.onFocus,h),onBlur:Ge(o==null?void 0:o.onBlur,v)}}var MO={border:"0",clip:"rect(0, 0, 0, 0)",height:"1px",width:"1px",margin:"-1px",padding:"0",overflow:"hidden",whiteSpace:"nowrap",position:"absolute"},ey=!1,rs=null,to=!1,lh=!1,uh=new Set;function nm(e,t){uh.forEach(n=>n(e,t))}var RO=typeof window<"u"&&window.navigator!=null?/^Mac/.test(window.navigator.platform):!1;function zO(e){return!(e.metaKey||!RO&&e.altKey||e.ctrlKey||e.key==="Control"||e.key==="Shift"||e.key==="Meta")}function ty(e){to=!0,zO(e)&&(rs="keyboard",nm("keyboard",e))}function ho(e){if(rs="pointer",e.type==="mousedown"||e.type==="pointerdown"){to=!0;const t=e.composedPath?e.composedPath()[0]:e.target;let n=!1;try{n=t.matches(":focus-visible")}catch{}if(n)return;nm("pointer",e)}}function FO(e){return e.mozInputSource===0&&e.isTrusted?!0:e.detail===0&&!e.pointerType}function IO(e){FO(e)&&(to=!0,rs="virtual")}function DO(e){e.target===window||e.target===document||(!to&&!lh&&(rs="virtual",nm("virtual",e)),to=!1,lh=!1)}function OO(){to=!1,lh=!0}function ny(){return rs!=="pointer"}function LO(){if(typeof window>"u"||ey)return;const{focus:e}=HTMLElement.prototype;HTMLElement.prototype.focus=function(...n){to=!0,e.apply(this,n)},document.addEventListener("keydown",ty,!0),document.addEventListener("keyup",ty,!0),document.addEventListener("click",IO,!0),window.addEventListener("focus",DO,!0),window.addEventListener("blur",OO,!1),typeof PointerEvent<"u"?(document.addEventListener("pointerdown",ho,!0),document.addEventListener("pointermove",ho,!0),document.addEventListener("pointerup",ho,!0)):(document.addEventListener("mousedown",ho,!0),document.addEventListener("mousemove",ho,!0),document.addEventListener("mouseup",ho,!0)),ey=!0}function jO(e){LO(),e(ny());const t=()=>e(ny());return uh.add(t),()=>{uh.delete(t)}}function BO(e,t=[]){const n=Object.assign({},e);for(const r of t)r in n&&delete n[r];return n}function NO(e={}){const t=dw(e),{isDisabled:n,isReadOnly:r,isRequired:o,isInvalid:i,id:a,onBlur:s,onFocus:l,"aria-describedby":u}=t,{defaultChecked:c,isChecked:d,isFocusable:f,onChange:h,isIndeterminate:v,name:g,value:x,tabIndex:m=void 0,"aria-label":p,"aria-labelledby":y,"aria-invalid":k,...P}=e,A=BO(P,["isDisabled","isReadOnly","isRequired","isInvalid","id","onBlur","onFocus","aria-describedby"]),T=gl(h),$=gl(s),O=gl(l),[D,Q]=b.useState(!1),[fe,V]=b.useState(!1),[z,R]=b.useState(!1),[H,L]=b.useState(!1);b.useEffect(()=>jO(Q),[]);const M=b.useRef(null),[F,j]=b.useState(!0),[B,G]=b.useState(!!c),U=d!==void 0,Z=U?d:B,Ee=b.useCallback(te=>{if(r||n){te.preventDefault();return}U||G(Z?te.target.checked:v?!0:te.target.checked),T==null||T(te)},[r,n,Z,U,v,T]);hr(()=>{M.current&&(M.current.indeterminate=!!v)},[v]),Bf(()=>{n&&V(!1)},[n,V]),hr(()=>{const te=M.current;te!=null&&te.form&&(te.form.onreset=()=>{G(!!c)})},[]);const ce=n&&!f,me=b.useCallback(te=>{te.key===" "&&L(!0)},[L]),$e=b.useCallback(te=>{te.key===" "&&L(!1)},[L]);hr(()=>{if(!M.current)return;M.current.checked!==Z&&G(M.current.checked)},[M.current]);const ve=b.useCallback((te={},xn=null)=>{const wn=so=>{fe&&so.preventDefault(),L(!0)};return{...te,ref:xn,"data-active":Ie(H),"data-hover":Ie(z),"data-checked":Ie(Z),"data-focus":Ie(fe),"data-focus-visible":Ie(fe&&D),"data-indeterminate":Ie(v),"data-disabled":Ie(n),"data-invalid":Ie(i),"data-readonly":Ie(r),"aria-hidden":!0,onMouseDown:Ge(te.onMouseDown,wn),onMouseUp:Ge(te.onMouseUp,()=>L(!1)),onMouseEnter:Ge(te.onMouseEnter,()=>R(!0)),onMouseLeave:Ge(te.onMouseLeave,()=>R(!1))}},[H,Z,n,fe,D,z,v,i,r]),Fe=b.useCallback((te={},xn=null)=>({...A,...te,ref:eo(xn,wn=>{wn&&j(wn.tagName==="LABEL")}),onClick:Ge(te.onClick,()=>{var wn;F||((wn=M.current)==null||wn.click(),requestAnimationFrame(()=>{var so;(so=M.current)==null||so.focus({preventScroll:!0})}))}),"data-disabled":Ie(n),"data-checked":Ie(Z),"data-invalid":Ie(i)}),[A,n,Z,i,F]),nt=b.useCallback((te={},xn=null)=>({...te,ref:eo(M,xn),type:"checkbox",name:g,value:x,id:a,tabIndex:m,onChange:Ge(te.onChange,Ee),onBlur:Ge(te.onBlur,$,()=>V(!1)),onFocus:Ge(te.onFocus,O,()=>V(!0)),onKeyDown:Ge(te.onKeyDown,me),onKeyUp:Ge(te.onKeyUp,$e),required:o,checked:Z,disabled:ce,readOnly:r,"aria-label":p,"aria-labelledby":y,"aria-invalid":k?!!k:i,"aria-describedby":u,"aria-disabled":n,style:MO}),[g,x,a,Ee,$,O,me,$e,o,Z,ce,r,p,y,k,i,u,n,m]),It=b.useCallback((te={},xn=null)=>({...te,ref:xn,onMouseDown:Ge(te.onMouseDown,VO),"data-disabled":Ie(n),"data-checked":Ie(Z),"data-invalid":Ie(i)}),[Z,n,i]);return{state:{isInvalid:i,isFocused:fe,isChecked:Z,isActive:H,isHovered:z,isIndeterminate:v,isDisabled:n,isReadOnly:r,isRequired:o},getRootProps:Fe,getCheckboxProps:ve,getInputProps:nt,getLabelProps:It,htmlProps:A}}function VO(e){e.preventDefault(),e.stopPropagation()}var WO={display:"inline-flex",alignItems:"center",justifyContent:"center",verticalAlign:"top",userSelect:"none",flexShrink:0},HO={cursor:"pointer",display:"inline-flex",alignItems:"center",verticalAlign:"top",position:"relative"},UO=Hu({from:{opacity:0,strokeDashoffset:16,transform:"scale(0.95)"},to:{opacity:1,strokeDashoffset:0,transform:"scale(1)"}}),GO=Hu({from:{opacity:0},to:{opacity:1}}),KO=Hu({from:{transform:"scaleX(0.65)"},to:{transform:"scaleX(1)"}}),fw=ue(function(t,n){const r=wO(),o={...r,...t},i=fi("Checkbox",o),a=rn(t),{spacing:s="0.5rem",className:l,children:u,iconColor:c,iconSize:d,icon:f=w.jsx(PO,{}),isChecked:h,isDisabled:v=r==null?void 0:r.isDisabled,onChange:g,inputProps:x,...m}=a;let p=h;r!=null&&r.value&&a.value&&(p=r.value.includes(a.value));let y=g;r!=null&&r.onChange&&a.value&&(y=pT(r.onChange,g));const{state:k,getInputProps:P,getCheckboxProps:A,getLabelProps:T,getRootProps:$}=NO({...m,isDisabled:v,isChecked:p,onChange:y}),O=kO(k.isChecked),D=b.useMemo(()=>({animation:O?k.isIndeterminate?`${GO} 20ms linear, ${KO} 200ms linear`:`${UO} 200ms linear`:void 0,fontSize:d,color:c,...i.icon}),[c,d,O,k.isIndeterminate,i.icon]),Q=b.cloneElement(f,{__css:D,isIndeterminate:k.isIndeterminate,isChecked:k.isChecked});return w.jsxs(X.label,{__css:{...HO,...i.container},className:ye("chakra-checkbox",l),...$(),children:[w.jsx("input",{className:"chakra-checkbox__input",...P(x,n)}),w.jsx(X.span,{__css:{...WO,...i.control},className:"chakra-checkbox__control",...A(),children:Q}),u&&w.jsx(X.span,{className:"chakra-checkbox__label",...T(),__css:{marginStart:s,...i.label},children:u})]})});fw.displayName="Checkbox";function YO(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,i;for(i=0;i=0)&&(n[o]=e[o]);return n}var ch="data-focus-lock",hw="data-focus-lock-disabled",qO="data-no-focus-lock",XO="data-autofocus-inside",QO="data-no-autofocus";function ZO(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function JO(e,t){var n=b.useState(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(r){var o=n.value;o!==r&&(n.value=r,n.callback(r,o))}}}})[0];return n.callback=t,n.facade}function pw(e,t){return JO(t||null,function(n){return e.forEach(function(r){return ZO(r,n)})})}var Pd={width:"1px",height:"0px",padding:0,overflow:"hidden",position:"fixed",top:"1px",left:"1px"},hn=function(){return hn=Object.assign||function(t){for(var n,r=1,o=arguments.length;r=0}).sort(gL)},yL=["button:enabled","select:enabled","textarea:enabled","input:enabled","a[href]","area[href]","summary","iframe","object","embed","audio[controls]","video[controls]","[tabindex]","[contenteditable]","[autofocus]"],am=yL.join(","),bL="".concat(am,", [data-focus-guard]"),Rw=function(e,t){return Sn((e.shadowRoot||e).children).reduce(function(n,r){return n.concat(r.matches(t?bL:am)?[r]:[],Rw(r))},[])},SL=function(e,t){var n;return e instanceof HTMLIFrameElement&&(!((n=e.contentDocument)===null||n===void 0)&&n.body)?ac([e.contentDocument.body],t):[e]},ac=function(e,t){return e.reduce(function(n,r){var o,i=Rw(r,t),a=(o=[]).concat.apply(o,i.map(function(s){return SL(s,t)}));return n.concat(a,r.parentNode?Sn(r.parentNode.querySelectorAll(am)).filter(function(s){return s===r}):[])},[])},xL=function(e){var t=e.querySelectorAll("[".concat(XO,"]"));return Sn(t).map(function(n){return ac([n])}).reduce(function(n,r){return n.concat(r)},[])},sm=function(e,t){return Sn(e).filter(function(n){return Pw(t,n)}).filter(function(n){return pL(n)})},ry=function(e,t){return t===void 0&&(t=new Map),Sn(e).filter(function(n){return Tw(t,n)})},fh=function(e,t,n){return Mw(sm(ac(e,n),t),!0,n)},oy=function(e,t){return Mw(sm(ac(e),t),!1)},wL=function(e,t){return sm(xL(e),t)},Yo=function(e,t){return e.shadowRoot?Yo(e.shadowRoot,t):Object.getPrototypeOf(e).contains!==void 0&&Object.getPrototypeOf(e).contains.call(e,t)?!0:Sn(e.children).some(function(n){var r;if(n instanceof HTMLIFrameElement){var o=(r=n.contentDocument)===null||r===void 0?void 0:r.body;return o?Yo(o,t):!1}return Yo(n,t)})},kL=function(e){for(var t=new Set,n=e.length,r=0;r0&&t.add(o),(i&Node.DOCUMENT_POSITION_CONTAINS)>0&&t.add(r)}return e.filter(function(a,s){return!t.has(s)})},zw=function(e){return e.parentNode?zw(e.parentNode):e},lm=function(e){var t=du(e);return t.filter(Boolean).reduce(function(n,r){var o=r.getAttribute(ch);return n.push.apply(n,o?kL(Sn(zw(r).querySelectorAll("[".concat(ch,'="').concat(o,'"]:not([').concat(hw,'="disabled"])')))):[r]),n},[])},CL=function(e){try{return e()}catch{return}},Ba=function(e){if(e===void 0&&(e=document),!(!e||!e.activeElement)){var t=e.activeElement;return t.shadowRoot?Ba(t.shadowRoot):t instanceof HTMLIFrameElement&&CL(function(){return t.contentWindow.document})?Ba(t.contentWindow.document):t}},_L=function(e,t){return e===t},PL=function(e,t){return!!Sn(e.querySelectorAll("iframe")).some(function(n){return _L(n,t)})},Fw=function(e,t){return t===void 0&&(t=Ba(kw(e).ownerDocument)),!t||t.dataset&&t.dataset.focusGuard?!1:lm(e).some(function(n){return Yo(n,t)||PL(n,t)})},TL=function(e){e===void 0&&(e=document);var t=Ba(e);return t?Sn(e.querySelectorAll("[".concat(qO,"]"))).some(function(n){return Yo(n,t)}):!1},EL=function(e,t){return t.filter(Aw).filter(function(n){return n.name===e.name}).filter(function(n){return n.checked})[0]||e},um=function(e,t){return Aw(e)&&e.name?EL(e,t):e},$L=function(e){var t=new Set;return e.forEach(function(n){return t.add(um(n,e))}),e.filter(function(n){return t.has(n)})},iy=function(e){return e[0]&&e.length>1?um(e[0],e):e[0]},ay=function(e,t){return e.length>1?e.indexOf(um(e[t],e)):t},Iw="NEW_FOCUS",AL=function(e,t,n,r){var o=e.length,i=e[0],a=e[o-1],s=im(n);if(!(n&&e.indexOf(n)>=0)){var l=n!==void 0?t.indexOf(n):-1,u=r?t.indexOf(r):l,c=r?e.indexOf(r):-1,d=l-u,f=t.indexOf(i),h=t.indexOf(a),v=$L(t),g=n!==void 0?v.indexOf(n):-1,x=g-(r?v.indexOf(r):l),m=ay(e,0),p=ay(e,o-1);if(l===-1||c===-1)return Iw;if(!d&&c>=0)return c;if(l<=f&&s&&Math.abs(d)>1)return p;if(l>=h&&s&&Math.abs(d)>1)return m;if(d&&Math.abs(x)>1)return c;if(l<=f)return p;if(l>h)return m;if(d)return Math.abs(d)>1?c:(o+c+d)%o}},ML=function(e){return function(t){var n,r=(n=Ew(t))===null||n===void 0?void 0:n.autofocus;return t.autofocus||r!==void 0&&r!=="false"||e.indexOf(t)>=0}},RL=function(e,t,n){var r=e.map(function(i){var a=i.node;return a}),o=ry(r.filter(ML(n)));return o&&o.length?iy(o):iy(ry(t))},hh=function(e,t){return t===void 0&&(t=[]),t.push(e),e.parentNode&&hh(e.parentNode.host||e.parentNode,t),t},Td=function(e,t){for(var n=hh(e),r=hh(t),o=0;o=0)return i}return!1},Dw=function(e,t,n){var r=du(e),o=du(t),i=r[0],a=!1;return o.filter(Boolean).forEach(function(s){a=Td(a||s,s)||a,n.filter(Boolean).forEach(function(l){var u=Td(i,l);u&&(!a||Yo(u,a)?a=u:a=Td(u,a))})}),a},zL=function(e,t){return e.reduce(function(n,r){return n.concat(wL(r,t))},[])},FL=function(e,t){var n=new Map;return t.forEach(function(r){return n.set(r.node,r)}),e.map(function(r){return n.get(r)}).filter(vL)},IL=function(e,t){var n=Ba(du(e).length>0?document:kw(e).ownerDocument),r=lm(e).filter(fu),o=Dw(n||e,e,r),i=new Map,a=oy(r,i),s=fh(r,i).filter(function(h){var v=h.node;return fu(v)});if(!(!s[0]&&(s=a,!s[0]))){var l=oy([o],i).map(function(h){var v=h.node;return v}),u=FL(l,s),c=u.map(function(h){var v=h.node;return v}),d=AL(c,l,n,t);if(d===Iw){var f=RL(a,c,zL(r,i));if(f)return{node:f};console.warn("focus-lock: cannot find any node to move focus into");return}return d===void 0?d:u[d]}},DL=function(e){var t=lm(e).filter(fu),n=Dw(e,e,t),r=new Map,o=fh([n],r,!0),i=fh(t,r).filter(function(a){var s=a.node;return fu(s)}).map(function(a){var s=a.node;return s});return o.map(function(a){var s=a.node,l=a.index;return{node:s,index:l,lockItem:i.indexOf(s)>=0,guard:im(s)}})},OL=function(e,t){"focus"in e&&e.focus(t),"contentWindow"in e&&e.contentWindow&&e.contentWindow.focus()},Ed=0,$d=!1,Ow=function(e,t,n){n===void 0&&(n={});var r=IL(e,t);if(!$d&&r){if(Ed>2){console.error("FocusLock: focus-fighting detected. Only one focus management system could be active. See https://github.com/theKashey/focus-lock/#focus-fighting"),$d=!0,setTimeout(function(){$d=!1},1);return}Ed++,OL(r.node,n.focusOptions),Ed--}};function Lw(e){var t=window,n=t.setImmediate;typeof n<"u"?n(e):setTimeout(e,1)}var LL=function(){return document&&document.activeElement===document.body},jL=function(){return LL()||TL()},qo=null,Io=null,Xo=null,Na=!1,BL=function(){return!0},NL=function(t){return(qo.whiteList||BL)(t)},VL=function(t,n){Xo={observerNode:t,portaledElement:n}},WL=function(t){return Xo&&Xo.portaledElement===t};function sy(e,t,n,r){var o=null,i=e;do{var a=r[i];if(a.guard)a.node.dataset.focusAutoGuard&&(o=a);else if(a.lockItem){if(i!==e)return;o=null}else break}while((i+=n)!==t);o&&(o.node.tabIndex=0)}var HL=function(t){return t&&"current"in t?t.current:t},UL=function(t){return t?!!Na:Na==="meanwhile"},GL=function e(t,n,r){return n&&(n.host===t&&(!n.activeElement||r.contains(n.activeElement))||n.parentNode&&e(t,n.parentNode,r))},KL=function(t,n){return n.some(function(r){return GL(t,r,r)})},hu=function(){var t=!1;if(qo){var n=qo,r=n.observed,o=n.persistentFocus,i=n.autoFocus,a=n.shards,s=n.crossFrame,l=n.focusOptions,u=r||Xo&&Xo.portaledElement,c=document&&document.activeElement;if(u){var d=[u].concat(a.map(HL).filter(Boolean));if((!c||NL(c))&&(o||UL(s)||!jL()||!Io&&i)&&(u&&!(Fw(d)||c&&KL(c,d)||WL(c))&&(document&&!Io&&c&&!i?(c.blur&&c.blur(),document.body.focus()):(t=Ow(d,Io,{focusOptions:l}),Xo={})),Na=!1,Io=document&&document.activeElement),document){var f=document&&document.activeElement,h=DL(d),v=h.map(function(g){var x=g.node;return x}).indexOf(f);v>-1&&(h.filter(function(g){var x=g.guard,m=g.node;return x&&m.dataset.focusAutoGuard}).forEach(function(g){var x=g.node;return x.removeAttribute("tabIndex")}),sy(v,h.length,1,h),sy(v,-1,-1,h))}}}return t},jw=function(t){hu()&&t&&(t.stopPropagation(),t.preventDefault())},cm=function(){return Lw(hu)},YL=function(t){var n=t.target,r=t.currentTarget;r.contains(n)||VL(r,n)},qL=function(){return null},Bw=function(){Na="just",setTimeout(function(){Na="meanwhile"},0)},XL=function(){document.addEventListener("focusin",jw),document.addEventListener("focusout",cm),window.addEventListener("blur",Bw)},QL=function(){document.removeEventListener("focusin",jw),document.removeEventListener("focusout",cm),window.removeEventListener("blur",Bw)};function ZL(e){return e.filter(function(t){var n=t.disabled;return!n})}function JL(e){var t=e.slice(-1)[0];t&&!qo&&XL();var n=qo,r=n&&t&&t.id===n.id;qo=t,n&&!r&&(n.onDeactivation(),e.filter(function(o){var i=o.id;return i===n.id}).length||n.returnFocus(!t)),t?(Io=null,(!r||n.observed!==t.observed)&&t.onActivation(),hu(),Lw(hu)):(QL(),Io=null)}Sw.assignSyncMedium(YL);xw.assignMedium(cm);nL.assignMedium(function(e){return e({moveFocusInside:Ow,focusInside:Fw})});const ej=uL(ZL,JL)(qL);var Nw=b.forwardRef(function(t,n){return b.createElement(ww,Zr({sideCar:ej,ref:n},t))}),Vw=ww.propTypes||{};Vw.sideCar;YO(Vw,["sideCar"]);Nw.propTypes={};const ly=Nw;function tj(e){return e!=null&&typeof e=="object"&&"nodeType"in e&&e.nodeType===Node.ELEMENT_NODE}function nj(e){var t;if(!tj(e))return!1;const n=(t=e.ownerDocument.defaultView)!=null?t:window;return e instanceof n.HTMLElement}var rj=e=>e.hasAttribute("tabindex");function oj(e){return!!e.getAttribute("disabled")||!!e.getAttribute("aria-disabled")}function Ww(e){return e.parentElement&&Ww(e.parentElement)?!0:e.hidden}function ij(e){const t=e.getAttribute("contenteditable");return t!=="false"&&t!=null}function aj(e){if(!nj(e)||Ww(e)||oj(e))return!1;const{localName:t}=e;if(["input","select","textarea","button"].indexOf(t)>=0)return!0;const r={a:()=>e.hasAttribute("href"),audio:()=>e.hasAttribute("controls"),video:()=>e.hasAttribute("controls")};return t in r?r[t]():ij(e)?!0:rj(e)}var sj=["input:not(:disabled):not([disabled])","select:not(:disabled):not([disabled])","textarea:not(:disabled):not([disabled])","embed","iframe","object","a[href]","area[href]","button:not(:disabled):not([disabled])","[tabindex]","audio[controls]","video[controls]","*[tabindex]:not([aria-disabled])","*[contenteditable]"],lj=sj.join(),uj=e=>e.offsetWidth>0&&e.offsetHeight>0;function cj(e){const t=Array.from(e.querySelectorAll(lj));return t.unshift(e),t.filter(n=>aj(n)&&uj(n))}var uy,dj=(uy=ly.default)!=null?uy:ly,Hw=e=>{const{initialFocusRef:t,finalFocusRef:n,contentRef:r,restoreFocus:o,children:i,isDisabled:a,autoFocus:s,persistentFocus:l,lockFocusAcrossFrames:u}=e,c=b.useCallback(()=>{t!=null&&t.current?t.current.focus():r!=null&&r.current&&cj(r.current).length===0&&requestAnimationFrame(()=>{var v;(v=r.current)==null||v.focus()})},[t,r]),d=b.useCallback(()=>{var h;(h=n==null?void 0:n.current)==null||h.focus()},[n]),f=o&&!n;return w.jsx(dj,{crossFrame:u,persistentFocus:l,autoFocus:s,disabled:a,onActivation:c,onDeactivation:d,returnFocus:f,children:i})};Hw.displayName="FocusLock";var fj=Z3?b.useLayoutEffect:b.useEffect;function cy(e,t=[]){const n=b.useRef(e);return fj(()=>{n.current=e}),b.useCallback((...r)=>{var o;return(o=n.current)==null?void 0:o.call(n,...r)},t)}function hj(e,t){const n=b.useId();return b.useMemo(()=>e||[t,n].filter(Boolean).join("-"),[e,t,n])}function pj(e,t){const n=e!==void 0;return[n,n&&typeof e<"u"?e:t]}function mj(e={}){const{onClose:t,onOpen:n,isOpen:r,id:o}=e,i=cy(n),a=cy(t),[s,l]=b.useState(e.defaultIsOpen||!1),[u,c]=pj(r,s),d=hj(o,"disclosure"),f=b.useCallback(()=>{u||l(!1),a==null||a()},[u,a]),h=b.useCallback(()=>{u||l(!0),i==null||i()},[u,i]),v=b.useCallback(()=>{(c?f:h)()},[c,h,f]);return{isOpen:!!c,onOpen:h,onClose:f,onToggle:v,isControlled:u,getButtonProps:(g={})=>({...g,"aria-expanded":c,"aria-controls":d,onClick:r4(g.onClick,v)}),getDisclosureProps:(g={})=>({...g,hidden:!c,id:d})}}var Dr=ue(function(t,n){const{htmlSize:r,...o}=t,i=fi("Input",o),a=rn(o),s=cw(a),l=ye("chakra-input",t.className);return w.jsx(X.input,{size:r,...s,__css:i.field,ref:n,className:l})});Dr.displayName="Input";Dr.id="Input";function Uw(e,t){return Array.isArray(e)?e.map(n=>n===null?null:t(n)):tn(e)?Object.keys(e).reduce((n,r)=>(n[r]=t(e[r]),n),{}):e!=null?t(e):null}var dm=ue(function(t,n){const r=oo("Text",t),{className:o,align:i,decoration:a,casing:s,...l}=rn(t),u=p4({textAlign:t.align,textDecoration:t.decoration,textTransform:t.casing});return w.jsx(X.p,{ref:n,className:ye("chakra-text",t.className),...u,...l,__css:r})});dm.displayName="Text";var Gw=e=>w.jsx(X.div,{className:"chakra-stack__item",...e,__css:{display:"inline-block",flex:"0 0 auto",minWidth:0,...e.__css}});Gw.displayName="StackItem";var ph="& > *:not(style) ~ *:not(style)";function vj(e){const{spacing:t,direction:n}=e,r={column:{marginTop:t,marginEnd:0,marginBottom:0,marginStart:0},row:{marginTop:0,marginEnd:0,marginBottom:0,marginStart:t},"column-reverse":{marginTop:0,marginEnd:0,marginBottom:t,marginStart:0},"row-reverse":{marginTop:0,marginEnd:t,marginBottom:0,marginStart:0}};return{flexDirection:n,[ph]:Uw(n,o=>r[o])}}function gj(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{"&":Uw(n,o=>r[o])}}var fm=ue((e,t)=>{const{isInline:n,direction:r,align:o,justify:i,spacing:a="0.5rem",wrap:s,children:l,divider:u,className:c,shouldWrapChildren:d,...f}=e,h=n?"row":r??"column",v=b.useMemo(()=>vj({direction:h,spacing:a}),[h,a]),g=b.useMemo(()=>gj({spacing:a,direction:h}),[a,h]),x=!!u,m=!d&&!x,p=b.useMemo(()=>{const k=bO(l);return m?k:k.map((P,A)=>{const T=typeof P.key<"u"?P.key:A,$=A+1===k.length,D=d?w.jsx(Gw,{children:P},T):P;if(!x)return D;const Q=b.cloneElement(u,{__css:g}),fe=$?null:Q;return w.jsxs(b.Fragment,{children:[D,fe]},T)})},[u,g,x,m,d,l]),y=ye("chakra-stack",c);return w.jsx(X.div,{ref:t,display:"flex",alignItems:o,justifyContent:i,flexDirection:v.flexDirection,flexWrap:s,className:y,__css:x?{}:{[ph]:v[ph]},...f,children:p})});fm.displayName="Stack";var Kw=ue((e,t)=>w.jsx(fm,{align:"center",...e,direction:"column",ref:t}));Kw.displayName="VStack";var mh=ue((e,t)=>w.jsx(fm,{align:"center",...e,direction:"row",ref:t}));mh.displayName="HStack";var os=X("div");os.displayName="Box";var Yw=ue(function(t,n){const{size:r,centerContent:o=!0,...i}=t,a=o?{display:"flex",alignItems:"center",justifyContent:"center"}:{};return w.jsx(os,{ref:n,boxSize:r,__css:{...a,flexShrink:0,flexGrow:0},...i})});Yw.displayName="Square";var yj=ue(function(t,n){const{size:r,...o}=t;return w.jsx(Yw,{size:r,ref:n,borderRadius:"9999px",...o})});yj.displayName="Circle";var vh=ue(function(t,n){const r=oo("Link",t),{className:o,isExternal:i,...a}=rn(t);return w.jsx(X.a,{target:i?"_blank":void 0,rel:i?"noopener":void 0,ref:n,className:ye("chakra-link",o),...a,__css:r})});vh.displayName="Link";var bj=Object.defineProperty,Sj=(e,t,n)=>t in e?bj(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,xj=(e,t,n)=>(Sj(e,typeof t!="symbol"?t+"":t,n),n),wj=class{constructor(){xj(this,"modals"),this.modals=new Map}add(e){return this.modals.set(e,this.modals.size+1),this.modals.size}remove(e){this.modals.delete(e)}isTopModal(e){return e?this.modals.get(e)===this.modals.size:!1}},gh=new wj;function qw(e,t){const[n,r]=b.useState(0);return b.useEffect(()=>{const o=e.current;if(o){if(t){const i=gh.add(o);r(i)}return()=>{gh.remove(o),r(0)}}},[t,e]),n}var kj=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},po=new WeakMap,Vs=new WeakMap,Ws={},Ad=0,Xw=function(e){return e&&(e.host||Xw(e.parentNode))},Cj=function(e,t){return t.map(function(n){if(e.contains(n))return n;var r=Xw(n);return r&&e.contains(r)?r:(console.error("aria-hidden",n,"in not contained inside",e,". Doing nothing"),null)}).filter(function(n){return!!n})},_j=function(e,t,n,r){var o=Cj(t,Array.isArray(e)?e:[e]);Ws[n]||(Ws[n]=new WeakMap);var i=Ws[n],a=[],s=new Set,l=new Set(o),u=function(d){!d||s.has(d)||(s.add(d),u(d.parentNode))};o.forEach(u);var c=function(d){!d||l.has(d)||Array.prototype.forEach.call(d.children,function(f){if(s.has(f))c(f);else{var h=f.getAttribute(r),v=h!==null&&h!=="false",g=(po.get(f)||0)+1,x=(i.get(f)||0)+1;po.set(f,g),i.set(f,x),a.push(f),g===1&&v&&Vs.set(f,!0),x===1&&f.setAttribute(n,"true"),v||f.setAttribute(r,"true")}})};return c(t),s.clear(),Ad++,function(){a.forEach(function(d){var f=po.get(d)-1,h=i.get(d)-1;po.set(d,f),i.set(d,h),f||(Vs.has(d)||d.removeAttribute(r),Vs.delete(d)),h||d.removeAttribute(n)}),Ad--,Ad||(po=new WeakMap,po=new WeakMap,Vs=new WeakMap,Ws={})}},Pj=function(e,t,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),o=t||kj(e);return o?(r.push.apply(r,Array.from(o.querySelectorAll("[aria-live]"))),_j(r,o,n,"aria-hidden")):function(){return null}};function Tj(e){const{isOpen:t,onClose:n,id:r,closeOnOverlayClick:o=!0,closeOnEsc:i=!0,useInert:a=!0,onOverlayClick:s,onEsc:l}=e,u=b.useRef(null),c=b.useRef(null),[d,f,h]=$j(r,"chakra-modal","chakra-modal--header","chakra-modal--body");Ej(u,t&&a),qw(u,t);const v=b.useRef(null),g=b.useCallback($=>{v.current=$.target},[]),x=b.useCallback($=>{$.key==="Escape"&&($.stopPropagation(),i&&(n==null||n()),l==null||l())},[i,n,l]),[m,p]=b.useState(!1),[y,k]=b.useState(!1),P=b.useCallback(($={},O=null)=>({role:"dialog",...$,ref:eo(O,u),id:d,tabIndex:-1,"aria-modal":!0,"aria-labelledby":m?f:void 0,"aria-describedby":y?h:void 0,onClick:Ge($.onClick,D=>D.stopPropagation())}),[h,y,d,f,m]),A=b.useCallback($=>{$.stopPropagation(),v.current===$.target&&gh.isTopModal(u.current)&&(o&&(n==null||n()),s==null||s())},[n,o,s]),T=b.useCallback(($={},O=null)=>({...$,ref:eo(O,c),onClick:Ge($.onClick,A),onKeyDown:Ge($.onKeyDown,x),onMouseDown:Ge($.onMouseDown,g)}),[x,g,A]);return{isOpen:t,onClose:n,headerId:f,bodyId:h,setBodyMounted:k,setHeaderMounted:p,dialogRef:u,overlayRef:c,getDialogProps:P,getDialogContainerProps:T}}function Ej(e,t){const n=e.current;b.useEffect(()=>{if(!(!e.current||!t))return Pj(e.current)},[t,e,n])}function $j(e,...t){const n=b.useId(),r=e||n;return b.useMemo(()=>t.map(o=>`${o}-${r}`),[r,t])}var[Aj,hi]=Gt({name:"ModalStylesContext",errorMessage:`useModalStyles returned is 'undefined'. Seems you forgot to wrap the components in "" `}),[Mj,pi]=Gt({strict:!0,name:"ModalContext",errorMessage:"useModalContext: `context` is undefined. Seems you forgot to wrap modal components in ``"}),Qw=e=>{const t={scrollBehavior:"outside",autoFocus:!0,trapFocus:!0,returnFocusOnClose:!0,blockScrollOnMount:!0,allowPinchZoom:!1,motionPreset:"scale",lockFocusAcrossFrames:!0,...e},{portalProps:n,children:r,autoFocus:o,trapFocus:i,initialFocusRef:a,finalFocusRef:s,returnFocusOnClose:l,blockScrollOnMount:u,allowPinchZoom:c,preserveScrollBarGap:d,motionPreset:f,lockFocusAcrossFrames:h,onCloseComplete:v}=t,g=fi("Modal",t),m={...Tj(t),autoFocus:o,trapFocus:i,initialFocusRef:a,finalFocusRef:s,returnFocusOnClose:l,blockScrollOnMount:u,allowPinchZoom:c,preserveScrollBarGap:d,motionPreset:f,lockFocusAcrossFrames:h};return w.jsx(Mj,{value:m,children:w.jsx(Aj,{value:g,children:w.jsx(oc,{onExitComplete:v,children:m.isOpen&&w.jsx(qa,{...n,children:r})})})})};Qw.displayName="Modal";var Sl="right-scroll-bar-position",xl="width-before-scroll-bar",Rj="with-scroll-bars-hidden",zj="--removed-body-scroll-bar-size",Zw=yw(),Md=function(){},sc=b.forwardRef(function(e,t){var n=b.useRef(null),r=b.useState({onScrollCapture:Md,onWheelCapture:Md,onTouchMoveCapture:Md}),o=r[0],i=r[1],a=e.forwardProps,s=e.children,l=e.className,u=e.removeScrollBar,c=e.enabled,d=e.shards,f=e.sideCar,h=e.noIsolation,v=e.inert,g=e.allowPinchZoom,x=e.as,m=x===void 0?"div":x,p=e.gapMode,y=mw(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as","gapMode"]),k=f,P=pw([n,t]),A=hn(hn({},y),o);return b.createElement(b.Fragment,null,c&&b.createElement(k,{sideCar:Zw,removeScrollBar:u,shards:d,noIsolation:h,inert:v,setCallbacks:i,allowPinchZoom:!!g,lockRef:n,gapMode:p}),a?b.cloneElement(b.Children.only(s),hn(hn({},A),{ref:P})):b.createElement(m,hn({},A,{className:l,ref:P}),s))});sc.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};sc.classNames={fullWidth:xl,zeroRight:Sl};var dy,Fj=function(){if(dy)return dy;if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function Ij(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=Fj();return t&&e.setAttribute("nonce",t),e}function Dj(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function Oj(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var Lj=function(){var e=0,t=null;return{add:function(n){e==0&&(t=Ij())&&(Dj(t,n),Oj(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},jj=function(){var e=Lj();return function(t,n){b.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},Jw=function(){var e=jj(),t=function(n){var r=n.styles,o=n.dynamic;return e(r,o),null};return t},Bj={left:0,top:0,right:0,gap:0},Rd=function(e){return parseInt(e||"",10)||0},Nj=function(e){var t=window.getComputedStyle(document.body),n=t[e==="padding"?"paddingLeft":"marginLeft"],r=t[e==="padding"?"paddingTop":"marginTop"],o=t[e==="padding"?"paddingRight":"marginRight"];return[Rd(n),Rd(r),Rd(o)]},Vj=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return Bj;var t=Nj(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},Wj=Jw(),Hj=function(e,t,n,r){var o=e.left,i=e.top,a=e.right,s=e.gap;return n===void 0&&(n="margin"),` .`.concat(Rj,` { overflow: hidden `).concat(r,`; padding-right: `).concat(s,"px ").concat(r,`; } body { overflow: hidden `).concat(r,`; overscroll-behavior: contain; `).concat([t&&"position: relative ".concat(r,";"),n==="margin"&&` padding-left: `.concat(o,`px; padding-top: `).concat(i,`px; padding-right: `).concat(a,`px; margin-left:0; margin-top:0; margin-right: `).concat(s,"px ").concat(r,`; `),n==="padding"&&"padding-right: ".concat(s,"px ").concat(r,";")].filter(Boolean).join(""),` } .`).concat(Sl,` { right: `).concat(s,"px ").concat(r,`; } .`).concat(xl,` { margin-right: `).concat(s,"px ").concat(r,`; } .`).concat(Sl," .").concat(Sl,` { right: 0 `).concat(r,`; } .`).concat(xl," .").concat(xl,` { margin-right: 0 `).concat(r,`; } body { `).concat(zj,": ").concat(s,`px; } `)},Uj=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,o=r===void 0?"margin":r,i=b.useMemo(function(){return Vj(o)},[o]);return b.createElement(Wj,{styles:Hj(i,!t,o,n?"":"!important")})},yh=!1;if(typeof window<"u")try{var Hs=Object.defineProperty({},"passive",{get:function(){return yh=!0,!0}});window.addEventListener("test",Hs,Hs),window.removeEventListener("test",Hs,Hs)}catch{yh=!1}var mo=yh?{passive:!1}:!1,Gj=function(e){return e.tagName==="TEXTAREA"},ek=function(e,t){var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!Gj(e)&&n[t]==="visible")},Kj=function(e){return ek(e,"overflowY")},Yj=function(e){return ek(e,"overflowX")},fy=function(e,t){var n=t.ownerDocument,r=t;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var o=tk(e,r);if(o){var i=nk(e,r),a=i[1],s=i[2];if(a>s)return!0}r=r.parentNode}while(r&&r!==n.body);return!1},qj=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},Xj=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},tk=function(e,t){return e==="v"?Kj(t):Yj(t)},nk=function(e,t){return e==="v"?qj(t):Xj(t)},Qj=function(e,t){return e==="h"&&t==="rtl"?-1:1},Zj=function(e,t,n,r,o){var i=Qj(e,window.getComputedStyle(t).direction),a=i*r,s=n.target,l=t.contains(s),u=!1,c=a>0,d=0,f=0;do{var h=nk(e,s),v=h[0],g=h[1],x=h[2],m=g-x-i*v;(v||m)&&tk(e,s)&&(d+=m,f+=v),s=s.parentNode}while(!l&&s!==document.body||l&&(t.contains(s)||t===s));return(c&&(o&&d===0||!o&&a>d)||!c&&(o&&f===0||!o&&-a>f))&&(u=!0),u},Us=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},hy=function(e){return[e.deltaX,e.deltaY]},py=function(e){return e&&"current"in e?e.current:e},Jj=function(e,t){return e[0]===t[0]&&e[1]===t[1]},eB=function(e){return` .block-interactivity-`.concat(e,` {pointer-events: none;} .allow-interactivity-`).concat(e,` {pointer-events: all;} `)},tB=0,vo=[];function nB(e){var t=b.useRef([]),n=b.useRef([0,0]),r=b.useRef(),o=b.useState(tB++)[0],i=b.useState(Jw)[0],a=b.useRef(e);b.useEffect(function(){a.current=e},[e]),b.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var g=eL([e.lockRef.current],(e.shards||[]).map(py),!0).filter(Boolean);return g.forEach(function(x){return x.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),g.forEach(function(x){return x.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var s=b.useCallback(function(g,x){if("touches"in g&&g.touches.length===2)return!a.current.allowPinchZoom;var m=Us(g),p=n.current,y="deltaX"in g?g.deltaX:p[0]-m[0],k="deltaY"in g?g.deltaY:p[1]-m[1],P,A=g.target,T=Math.abs(y)>Math.abs(k)?"h":"v";if("touches"in g&&T==="h"&&A.type==="range")return!1;var $=fy(T,A);if(!$)return!0;if($?P=T:(P=T==="v"?"h":"v",$=fy(T,A)),!$)return!1;if(!r.current&&"changedTouches"in g&&(y||k)&&(r.current=P),!P)return!0;var O=r.current||P;return Zj(O,x,g,O==="h"?y:k,!0)},[]),l=b.useCallback(function(g){var x=g;if(!(!vo.length||vo[vo.length-1]!==i)){var m="deltaY"in x?hy(x):Us(x),p=t.current.filter(function(P){return P.name===x.type&&P.target===x.target&&Jj(P.delta,m)})[0];if(p&&p.should){x.cancelable&&x.preventDefault();return}if(!p){var y=(a.current.shards||[]).map(py).filter(Boolean).filter(function(P){return P.contains(x.target)}),k=y.length>0?s(x,y[0]):!a.current.noIsolation;k&&x.cancelable&&x.preventDefault()}}},[]),u=b.useCallback(function(g,x,m,p){var y={name:g,delta:x,target:m,should:p};t.current.push(y),setTimeout(function(){t.current=t.current.filter(function(k){return k!==y})},1)},[]),c=b.useCallback(function(g){n.current=Us(g),r.current=void 0},[]),d=b.useCallback(function(g){u(g.type,hy(g),g.target,s(g,e.lockRef.current))},[]),f=b.useCallback(function(g){u(g.type,Us(g),g.target,s(g,e.lockRef.current))},[]);b.useEffect(function(){return vo.push(i),e.setCallbacks({onScrollCapture:d,onWheelCapture:d,onTouchMoveCapture:f}),document.addEventListener("wheel",l,mo),document.addEventListener("touchmove",l,mo),document.addEventListener("touchstart",c,mo),function(){vo=vo.filter(function(g){return g!==i}),document.removeEventListener("wheel",l,mo),document.removeEventListener("touchmove",l,mo),document.removeEventListener("touchstart",c,mo)}},[]);var h=e.removeScrollBar,v=e.inert;return b.createElement(b.Fragment,null,v?b.createElement(i,{styles:eB(o)}):null,h?b.createElement(Uj,{gapMode:e.gapMode}):null)}const rB=tL(Zw,nB);var rk=b.forwardRef(function(e,t){return b.createElement(sc,hn({},e,{ref:t,sideCar:rB}))});rk.classNames=sc.classNames;const oB=rk;function iB(e){const{autoFocus:t,trapFocus:n,dialogRef:r,initialFocusRef:o,blockScrollOnMount:i,allowPinchZoom:a,finalFocusRef:s,returnFocusOnClose:l,preserveScrollBarGap:u,lockFocusAcrossFrames:c,isOpen:d}=pi(),[f,h]=Bx();b.useEffect(()=>{!f&&h&&setTimeout(h)},[f,h]);const v=qw(r,d);return w.jsx(Hw,{autoFocus:t,isDisabled:!n,initialFocusRef:o,finalFocusRef:s,restoreFocus:l,contentRef:r,lockFocusAcrossFrames:c,children:w.jsx(oB,{removeScrollBar:!u,allowPinchZoom:a,enabled:v===1&&i,forwardProps:!0,children:e.children})})}var[aB,sB]=Gt(),lB={start:{ltr:"left",rtl:"right"},end:{ltr:"right",rtl:"left"}};function uB(e,t){var n,r;if(e)return(r=(n=lB[e])==null?void 0:n[t])!=null?r:e}function cB(e){var t;const{isOpen:n,onClose:r,placement:o="right",children:i,...a}=e,s=tS(),l=(t=s.components)==null?void 0:t.Drawer,u=uB(o,s.direction);return w.jsx(aB,{value:{placement:u},children:w.jsx(Qw,{isOpen:n,onClose:r,styleConfig:l,...a,children:i})})}var dB=X(aw),ok=ue((e,t)=>{const{className:n,children:r,motionProps:o,containerProps:i,...a}=e,{getDialogProps:s,getDialogContainerProps:l,isOpen:u}=pi(),c=s(a,t),d=l(i),f=ye("chakra-modal__content",n),h=hi(),v={display:"flex",flexDirection:"column",position:"relative",width:"100%",outline:0,...h.dialog},g={display:"flex",width:"100vw",height:"$100vh",position:"fixed",left:0,top:0,...h.dialogContainer},{placement:x}=sB();return w.jsx(iB,{children:w.jsx(X.div,{...d,className:"chakra-modal__content-container",__css:g,children:w.jsx(dB,{motionProps:o,direction:x,in:u,className:f,...c,__css:v,children:r})})})});ok.displayName="DrawerContent";var ik=ue((e,t)=>{const{className:n,...r}=e,o=ye("chakra-modal__footer",n),a={display:"flex",alignItems:"center",justifyContent:"flex-end",...hi().footer};return w.jsx(X.footer,{ref:t,...r,__css:a,className:o})});ik.displayName="ModalFooter";var ak=ue((e,t)=>{const{className:n,...r}=e,{headerId:o,setHeaderMounted:i}=pi();b.useEffect(()=>(i(!0),()=>i(!1)),[i]);const a=ye("chakra-modal__header",n),l={flex:0,...hi().header};return w.jsx(X.header,{ref:t,className:a,id:o,...r,__css:l})});ak.displayName="ModalHeader";var fB=X(rc.div),sk=ue((e,t)=>{const{className:n,transition:r,motionProps:o,...i}=e,a=ye("chakra-modal__overlay",n),l={pos:"fixed",left:"0",top:"0",w:"100vw",h:"100vh",...hi().overlay},{motionPreset:u}=pi(),d=o||(u==="none"?{}:iw);return w.jsx(fB,{...d,__css:l,ref:t,className:a,...i})});sk.displayName="ModalOverlay";var lk=ue((e,t)=>{const{className:n,...r}=e,{bodyId:o,setBodyMounted:i}=pi();b.useEffect(()=>(i(!0),()=>i(!1)),[i]);const a=ye("chakra-modal__body",n),s=hi();return w.jsx(X.div,{ref:t,className:a,id:o,...r,__css:s.body})});lk.displayName="ModalBody";var uk=ue((e,t)=>{const{onClick:n,className:r,...o}=e,{onClose:i}=pi(),a=ye("chakra-modal__close-btn",r),s=hi();return w.jsx(tm,{ref:t,__css:s.closeButton,className:a,onClick:Ge(n,l=>{l.stopPropagation(),i()}),...o})});uk.displayName="ModalCloseButton";var ck=ue(function(t,n){const{children:r,placeholder:o,className:i,...a}=t;return w.jsxs(X.select,{...a,ref:n,className:ye("chakra-select",i),children:[o&&w.jsx("option",{value:"",children:o}),r]})});ck.displayName="SelectField";function hB(e,t){const n={},r={};for(const[o,i]of Object.entries(e))t.includes(o)?n[o]=i:r[o]=i;return[n,r]}var dk=ue((e,t)=>{var n;const r=fi("Select",e),{rootProps:o,placeholder:i,icon:a,color:s,height:l,h:u,minH:c,minHeight:d,iconColor:f,iconSize:h,...v}=rn(e),[g,x]=hB(v,yE),m=cw(x),p={width:"100%",height:"fit-content",position:"relative",color:s},y={paddingEnd:"2rem",...r.field,_focus:{zIndex:"unset",...(n=r.field)==null?void 0:n._focus}};return w.jsxs(X.div,{className:"chakra-select__wrapper",__css:p,...g,...o,children:[w.jsx(ck,{ref:t,height:u??l,minH:c??d,placeholder:i,...m,__css:y,children:e.children}),w.jsx(fk,{"data-disabled":Ie(m.disabled),...(f||s)&&{color:f||s},__css:r.icon,...h&&{fontSize:h},children:a})]})});dk.displayName="Select";var pB=e=>w.jsx("svg",{viewBox:"0 0 24 24",...e,children:w.jsx("path",{fill:"currentColor",d:"M16.59 8.59L12 13.17 7.41 8.59 6 10l6 6 6-6z"})}),mB=X("div",{baseStyle:{position:"absolute",display:"inline-flex",alignItems:"center",justifyContent:"center",pointerEvents:"none",top:"50%",transform:"translateY(-50%)"}}),fk=e=>{const{children:t=w.jsx(pB,{}),...n}=e,r=b.cloneElement(t,{role:"presentation",className:"chakra-select__icon",focusable:!1,"aria-hidden":!0,style:{width:"1em",height:"1em",color:"currentColor"}});return w.jsx(mB,{...n,className:"chakra-select__icon-wrapper",children:b.isValidElement(t)?r:null})};fk.displayName="SelectIcon";const vB=({title:e,actions:t})=>w.jsxs(mh,{alignItems:"center",spacing:2,height:16,bgColor:"white",borderBottom:"1px",borderColor:"gray.200",position:"relative",children:[w.jsx(dm,{mx:6,flex:1,textAlign:"left",fontSize:"xl",fontWeight:"medium",color:"gray.600",children:e}),t!=null?w.jsx(mh,{position:"absolute",right:2,spacing:0,bottom:0,top:0,children:t}):null]});var hk={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},my=yt.createContext&&yt.createContext(hk),vr=globalThis&&globalThis.__assign||function(){return vr=Object.assign||function(e){for(var t,n=1,r=arguments.length;n=z?V:""+Array(z+1-H.length).join(R)+V},k={s:y,z:function(V){var z=-V.utcOffset(),R=Math.abs(z),H=Math.floor(R/60),L=R%60;return(z<=0?"+":"-")+y(H,2,"0")+":"+y(L,2,"0")},m:function V(z,R){if(z.date()1)return V(F[0])}else{var j=z.name;A[j]=z,L=j}return!H&&L&&(P=L),L||!H&&P},O=function(V,z){if(T(V))return V.clone();var R=typeof z=="object"?z:{};return R.date=V,R.args=arguments,new Q(R)},D=k;D.l=$,D.i=T,D.w=function(V,z){return O(V,{locale:z.$L,utc:z.$u,x:z.$x,$offset:z.$offset})};var Q=function(){function V(R){this.$L=$(R.locale,null,!0),this.parse(R)}var z=V.prototype;return z.parse=function(R){this.$d=function(H){var L=H.date,M=H.utc;if(L===null)return new Date(NaN);if(D.u(L))return new Date;if(L instanceof Date)return new Date(L);if(typeof L=="string"&&!/Z$/i.test(L)){var F=L.match(x);if(F){var j=F[2]-1||0,B=(F[7]||"0").substring(0,3);return M?new Date(Date.UTC(F[1],j,F[3]||1,F[4]||0,F[5]||0,F[6]||0,B)):new Date(F[1],j,F[3]||1,F[4]||0,F[5]||0,F[6]||0,B)}}return new Date(L)}(R),this.$x=R.x||{},this.init()},z.init=function(){var R=this.$d;this.$y=R.getFullYear(),this.$M=R.getMonth(),this.$D=R.getDate(),this.$W=R.getDay(),this.$H=R.getHours(),this.$m=R.getMinutes(),this.$s=R.getSeconds(),this.$ms=R.getMilliseconds()},z.$utils=function(){return D},z.isValid=function(){return this.$d.toString()!==g},z.isSame=function(R,H){var L=O(R);return this.startOf(H)<=L&&L<=this.endOf(H)},z.isAfter=function(R,H){return O(R){let t;const n=new Set,r=(l,u)=>{const c=typeof l=="function"?l(t):l;if(!Object.is(c,t)){const d=t;t=u??typeof c!="object"?c:Object.assign({},t,c),n.forEach(f=>f(t,d))}},o=()=>t,s={setState:r,getState:o,subscribe:l=>(n.add(l),()=>n.delete(l)),destroy:()=>{({BASE_URL:"/loli-license",MODE:"production",DEV:!1,PROD:!0,SSR:!1}&&"production")!=="production"&&console.warn("[DEPRECATED] The `destroy` method will be unsupported in a future version. Instead use unsubscribe function returned by subscribe. Everything will be garbage-collected if store is garbage-collected."),n.clear()}};return t=e(r,o,s),s},xB=e=>e?vy(e):vy;var yk={exports:{}},bk={},Sk={exports:{}},xk={};/** * @license React * use-sync-external-store-shim.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 si=b;function wB(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var kB=typeof Object.is=="function"?Object.is:wB,CB=si.useState,_B=si.useEffect,PB=si.useLayoutEffect,TB=si.useDebugValue;function EB(e,t){var n=t(),r=CB({inst:{value:n,getSnapshot:t}}),o=r[0].inst,i=r[1];return PB(function(){o.value=n,o.getSnapshot=t,zd(o)&&i({inst:o})},[e,n,t]),_B(function(){return zd(o)&&i({inst:o}),e(function(){zd(o)&&i({inst:o})})},[e]),TB(n),n}function zd(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!kB(e,n)}catch{return!0}}function $B(e,t){return t()}var AB=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?$B:EB;xk.useSyncExternalStore=si.useSyncExternalStore!==void 0?si.useSyncExternalStore:AB;Sk.exports=xk;var MB=Sk.exports;/** * @license React * use-sync-external-store-shim/with-selector.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 lc=b,RB=MB;function zB(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var FB=typeof Object.is=="function"?Object.is:zB,IB=RB.useSyncExternalStore,DB=lc.useRef,OB=lc.useEffect,LB=lc.useMemo,jB=lc.useDebugValue;bk.useSyncExternalStoreWithSelector=function(e,t,n,r,o){var i=DB(null);if(i.current===null){var a={hasValue:!1,value:null};i.current=a}else a=i.current;i=LB(function(){function l(h){if(!u){if(u=!0,c=h,h=r(h),o!==void 0&&a.hasValue){var v=a.value;if(o(v,h))return d=v}return d=h}if(v=d,FB(c,h))return v;var g=r(h);return o!==void 0&&o(v,g)?v:(c=h,d=g)}var u=!1,c,d,f=n===void 0?null:n;return[function(){return l(t())},f===null?void 0:function(){return l(f())}]},[t,n,r,o]);var s=IB(e,i[0],i[1]);return OB(function(){a.hasValue=!0,a.value=s},[s]),jB(s),s};yk.exports=bk;var BB=yk.exports;const NB=Va(BB),{useSyncExternalStoreWithSelector:VB}=NB;function WB(e,t=e.getState,n){const r=VB(e.subscribe,e.getState,e.getServerState||e.getState,t,n);return b.useDebugValue(r),r}const gy=e=>{({BASE_URL:"/loli-license",MODE:"production",DEV:!1,PROD:!0,SSR:!1}&&"production")!=="production"&&typeof e!="function"&&console.warn("[DEPRECATED] Passing a vanilla store will be unsupported in a future version. Instead use `import { useStore } from 'zustand'`.");const t=typeof e=="function"?xB(e):e,n=(r,o)=>WB(t,r,o);return Object.assign(n,t),n},HB=e=>e?gy(e):gy,UB="/loli-license/assets/mahirussy-15408101.jpg",yy=(e=1)=>{let t="";const n="abcdefghijklmnopqrstuvwxyz".toUpperCase();for(let r=0;ryy()+"-"+yy(2)+Math.round(Math.random()*9999).toString().padStart(4,"0"),wk=HB(e=>({name:"Mahiro Oyama",idNo:GB(),accessLevel:"Headpats and hugs only",sex:"Male",birthday:wl().format("YYYY-MM-DD"),photo:UB,expYears:5,showWatermarkOnExport:!0,setValues:t=>e({...t})})),KB=(e,t,n,r,o,i)=>{for(var a=t.split(" "),s="",l=0;lo&&l>0?(e.fillText(s,n,r),s=a[l]+" ",r+=i):s=u}e.fillText(s,n,r)},YB=e=>{e=e.replace(/^\s+|\s+$/g,""),e=e.toLowerCase();for(var t="àáãäâèéëêìíïîòóöôùúüûñç·/_,:;",n="aaaaaeeeeiiiioooouuuunc------",r=0,o=t.length;r{a=typeof a=="number"?a:.5,s=typeof s=="number"?s:.5,a<0&&(a=0),s<0&&(s=0),a>1&&(a=1),s>1&&(s=1);var l=t.width,u=t.height,c=Math.min(o/l,i/u),d=l*c,f=u*c,h,v,g,x,m=1;dl&&(g=l),x>u&&(x=u),e.drawImage(t,h,v,g,x,n,r,o,i)},by=e=>new Promise(t=>{const n=new Image;n.src=e,n.onload=()=>{t(n)}}),XB=e=>new Promise((t,n)=>{const r=new FileReader;r.readAsDataURL(e),r.onload=()=>{t(r.result)},r.onerror=o=>{n(o)}}),QB=({isOpen:e,onClose:t})=>{const n=wk(),r=b.useRef(null),o=async i=>{var l;if(!((l=i.target.files)!=null&&l.length))return;const a=i.target.files[0],s=await XB(a);n.setValues({photo:s})};return w.jsxs(cB,{isOpen:e,placement:"right",onClose:t,children:[w.jsx(sk,{}),w.jsxs(ok,{children:[w.jsx(uk,{}),w.jsx(ak,{children:"Card Detail"}),w.jsx(lk,{children:w.jsxs(Kw,{spacing:3,alignItems:"stretch",children:[w.jsxs(cu,{w:"120px",h:40,bg:"white",shadow:"md",rounded:"md",p:2,overflow:"hidden",position:"relative",onClick:()=>{var i;return(i=r.current)==null?void 0:i.click()},children:[w.jsx(sw,{src:n.photo,w:"full",h:"full",objectFit:"cover"}),w.jsx(os,{position:"absolute",top:1,right:1,color:"gray.900",bg:"whiteAlpha.800",p:1,rounded:"md",children:w.jsx(vk,{})})]}),w.jsx("input",{ref:r,type:"file",accept:"image/*",onChange:o,style:{display:"none"}}),w.jsxs(Rr,{children:[w.jsx(zr,{children:"Agent Name"}),w.jsx(Dr,{value:n.name,onChange:i=>n.setValues({name:i.target.value})})]}),w.jsxs(Rr,{children:[w.jsx(zr,{children:"ID Number"}),w.jsx(Dr,{value:n.idNo,onChange:i=>n.setValues({idNo:i.target.value})})]}),w.jsxs(Rr,{children:[w.jsx(zr,{children:"Sex"}),w.jsx(Dr,{value:n.sex,onChange:i=>n.setValues({sex:i.target.value})})]}),w.jsxs(Rr,{children:[w.jsx(zr,{children:"Birthday"}),w.jsx(Dr,{type:"date",value:n.birthday,onChange:i=>n.setValues({birthday:i.target.value})})]}),w.jsxs(Rr,{children:[w.jsx(zr,{children:"Access Level"}),w.jsx(Dr,{value:n.accessLevel,onChange:i=>n.setValues({accessLevel:i.target.value})})]}),w.jsxs(Rr,{children:[w.jsx(zr,{children:"Expires in"}),w.jsx(dk,{value:n.expYears.toString(),onChange:i=>n.setValues({expYears:parseInt(i.target.value,10)||1}),children:[...Array(10)].map((i,a)=>w.jsx("option",{value:(a+1).toString(),children:`${a+1} years`},a))})]}),w.jsx(fw,{isChecked:n.showWatermarkOnExport,onChange:i=>n.setValues({showWatermarkOnExport:i.target.checked}),children:"Show Watermark on Export"})]})}),w.jsx(ik,{children:w.jsx(cu,{colorScheme:"blue",onClick:()=>t(),children:"Save"})})]})]})},ZB="/loli-license/assets/base-card-bg-2a2686cb.png",JB=({onRef:e})=>{const t=b.useRef(null),n=wk(),[r,o]=b.useState({base:null,photo:null});b.useEffect(()=>{by(ZB).then(s=>{o(l=>({...l,base:s}))})},[]),b.useEffect(()=>{const s=n.photo;s&&by(s).then(l=>{o(u=>({...u,photo:l}))})},[n.photo]);const i=(s=!1)=>{if(!t.current)return;const l=t.current,u=l.getContext("2d");if(!u||!r.base)return;l.width=r.base.width,l.height=r.base.height+(s?12:0),u.clearRect(0,0,l.width,l.height),u.rect(0,0,l.width,l.height),u.fillStyle="#f3f3f3",u.fill(),r.photo&&qB(u,r.photo,640,40,172,230),u.drawImage(r.base,0,0),u.fillStyle="#111",u.font="normal 24px Arial",u.fillText(n.name,190,152),u.fillText(n.idNo,190,220),KB(u,n.accessLevel,190,290,180,28),u.fillText(n.sex,418,152),u.fillText(wl(n.birthday).format("DD-MMM-YYYY"),418,220),u.fillText("One at time",418,290);const c=wl().add(n.expYears,"year");u.fillText(wl(c).format("YYYYMMMDD").toUpperCase(),320,416),s&&(u.fillStyle="#333",u.font="normal 16px Arial",u.fillText("Wanna join FBI watch list? s.id/loli-license",20,l.height-8))};b.useEffect(()=>{i()},[i,r,n]);const a=()=>{t.current&&(i(n.showWatermarkOnExport),setTimeout(()=>{const s=document.createElement("a");s.download=`loli_license_${YB(n.name)}.png`,s.href=t.current.toDataURL(),s.click(),i(!1)},100))};return b.useEffect(()=>{e&&e({onExport:a})},[a]),w.jsx(os,{flex:1,display:"flex",justifyContent:"center",alignItems:"center",overflow:"hidden",padding:3,children:w.jsx("canvas",{ref:t,style:{maxWidth:"100%",maxHeight:"100%"}})})},eN=()=>{const e=b.useRef(null),t=mj();return w.jsxs(cO,{children:[w.jsx(QB,{isOpen:t.isOpen,onClose:t.onClose}),w.jsxs(os,{bg:"gray.100",display:"flex",flexDir:"column",height:"100vh",alignItems:"stretch",overflow:"hidden",children:[w.jsx(vB,{title:"My Loli License",actions:w.jsxs(w.Fragment,{children:[w.jsx(sh,{size:"lg",fontSize:"xl","aria-label":"Save",icon:w.jsx(bB,{}),variant:"ghost",onClick:()=>e.current&&e.current.onExport()}),w.jsx(sh,{size:"lg",fontSize:"xl","aria-label":"Edit",icon:w.jsx(vk,{}),variant:"ghost",onClick:t.onOpen})]})}),w.jsx(JB,{onRef:n=>{e.current=n}}),w.jsxs(dm,{textAlign:"center",my:2,children:["Artwork by:"," ",w.jsx(vh,{fontWeight:"bold",href:"https://www.artstation.com/artwork/14orKL",children:"FLying Cookie"}),"  | Fork on ",w.jsx(vh,{fontWeight:"bold",href:"https://github.com/khairul169/loli-license.git",children:"Github"})]})]})]})};Fd.createRoot(document.getElementById("root")).render(w.jsx(yt.StrictMode,{children:w.jsx(eN,{})}));