(()=>{var V_=Object.create;var Hc=Object.defineProperty;var H_=Object.getOwnPropertyDescriptor;var j_=Object.getOwnPropertyNames;var W_=Object.getPrototypeOf,$_=Object.prototype.hasOwnProperty;var rC=(e,t)=>()=>(e&&(t=e(e=0)),t);var gt=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),U_=(e,t)=>{for(var r in t)Hc(e,r,{get:t[r],enumerable:!0})},oC=(e,t,r,o)=>{if(t&&typeof t=="object"||typeof t=="function")for(let n of j_(t))!$_.call(e,n)&&n!==r&&Hc(e,n,{get:()=>t[n],enumerable:!(o=H_(t,n))||o.enumerable});return e};var C=(e,t,r)=>(r=e!=null?V_(W_(e)):{},oC(t||!e||!e.__esModule?Hc(r,"default",{value:e,enumerable:!0}):r,e)),q_=e=>oC(Hc({},"__esModule",{value:!0}),e);var xC=gt(X=>{"use strict";var pf=Symbol.for("react.element"),G_=Symbol.for("react.portal"),Y_=Symbol.for("react.fragment"),X_=Symbol.for("react.strict_mode"),K_=Symbol.for("react.profiler"),Q_=Symbol.for("react.provider"),Z_=Symbol.for("react.context"),J_=Symbol.for("react.forward_ref"),e2=Symbol.for("react.suspense"),t2=Symbol.for("react.memo"),r2=Symbol.for("react.lazy"),nC=Symbol.iterator;function o2(e){return e===null||typeof e!="object"?null:(e=nC&&e[nC]||e["@@iterator"],typeof e=="function"?e:null)}var sC={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},lC=Object.assign,fC={};function Vi(e,t,r){this.props=e,this.context=t,this.refs=fC,this.updater=r||sC}Vi.prototype.isReactComponent={};Vi.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")};Vi.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function uC(){}uC.prototype=Vi.prototype;function rI(e,t,r){this.props=e,this.context=t,this.refs=fC,this.updater=r||sC}var oI=rI.prototype=new uC;oI.constructor=rI;lC(oI,Vi.prototype);oI.isPureReactComponent=!0;var aC=Array.isArray,cC=Object.prototype.hasOwnProperty,nI={current:null},dC={key:!0,ref:!0,__self:!0,__source:!0};function pC(e,t,r){var o,n={},a=null,i=null;if(t!=null)for(o in t.ref!==void 0&&(i=t.ref),t.key!==void 0&&(a=""+t.key),t)cC.call(t,o)&&!dC.hasOwnProperty(o)&&(n[o]=t[o]);var s=arguments.length-2;if(s===1)n.children=r;else if(1{"use strict";hC.exports=xC()});function Zc(e){var t=Object.create(null);return function(r){return t[r]===void 0&&(t[r]=e(r)),t[r]}}var Jc=rC(()=>{});var zC=gt(xe=>{"use strict";var It=typeof Symbol=="function"&&Symbol.for,cI=It?Symbol.for("react.element"):60103,dI=It?Symbol.for("react.portal"):60106,ed=It?Symbol.for("react.fragment"):60107,td=It?Symbol.for("react.strict_mode"):60108,rd=It?Symbol.for("react.profiler"):60114,od=It?Symbol.for("react.provider"):60109,nd=It?Symbol.for("react.context"):60110,pI=It?Symbol.for("react.async_mode"):60111,ad=It?Symbol.for("react.concurrent_mode"):60111,id=It?Symbol.for("react.forward_ref"):60112,sd=It?Symbol.for("react.suspense"):60113,I2=It?Symbol.for("react.suspense_list"):60120,ld=It?Symbol.for("react.memo"):60115,fd=It?Symbol.for("react.lazy"):60116,v2=It?Symbol.for("react.block"):60121,y2=It?Symbol.for("react.fundamental"):60117,b2=It?Symbol.for("react.responder"):60118,S2=It?Symbol.for("react.scope"):60119;function Fr(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case cI:switch(e=e.type,e){case pI:case ad:case ed:case rd:case td:case sd:return e;default:switch(e=e&&e.$$typeof,e){case nd:case id:case fd:case ld:case od:return e;default:return t}}case dI:return t}}}function NC(e){return Fr(e)===ad}xe.AsyncMode=pI;xe.ConcurrentMode=ad;xe.ContextConsumer=nd;xe.ContextProvider=od;xe.Element=cI;xe.ForwardRef=id;xe.Fragment=ed;xe.Lazy=fd;xe.Memo=ld;xe.Portal=dI;xe.Profiler=rd;xe.StrictMode=td;xe.Suspense=sd;xe.isAsyncMode=function(e){return NC(e)||Fr(e)===pI};xe.isConcurrentMode=NC;xe.isContextConsumer=function(e){return Fr(e)===nd};xe.isContextProvider=function(e){return Fr(e)===od};xe.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===cI};xe.isForwardRef=function(e){return Fr(e)===id};xe.isFragment=function(e){return Fr(e)===ed};xe.isLazy=function(e){return Fr(e)===fd};xe.isMemo=function(e){return Fr(e)===ld};xe.isPortal=function(e){return Fr(e)===dI};xe.isProfiler=function(e){return Fr(e)===rd};xe.isStrictMode=function(e){return Fr(e)===td};xe.isSuspense=function(e){return Fr(e)===sd};xe.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===ed||e===ad||e===rd||e===td||e===sd||e===I2||typeof e=="object"&&e!==null&&(e.$$typeof===fd||e.$$typeof===ld||e.$$typeof===od||e.$$typeof===nd||e.$$typeof===id||e.$$typeof===y2||e.$$typeof===b2||e.$$typeof===S2||e.$$typeof===v2)};xe.typeOf=Fr});var HC=gt((rY,VC)=>{"use strict";VC.exports=zC()});var YC=gt((oY,GC)=>{"use strict";var mI=HC(),w2={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},C2={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},P2={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},UC={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},xI={};xI[mI.ForwardRef]=P2;xI[mI.Memo]=UC;function jC(e){return mI.isMemo(e)?UC:xI[e.$$typeof]||w2}var k2=Object.defineProperty,T2=Object.getOwnPropertyNames,WC=Object.getOwnPropertySymbols,D2=Object.getOwnPropertyDescriptor,F2=Object.getPrototypeOf,$C=Object.prototype;function qC(e,t,r){if(typeof t!="string"){if($C){var o=F2(t);o&&o!==$C&&qC(e,o,r)}var n=T2(t);WC&&(n=n.concat(WC(t)));for(var a=jC(e),i=jC(t),s=0;s{"use strict";var V2=F(),H2=Symbol.for("react.element"),j2=Symbol.for("react.fragment"),W2=Object.prototype.hasOwnProperty,$2=V2.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,U2={key:!0,ref:!0,__self:!0,__source:!0};function r1(e,t,r){var o,n={},a=null,i=null;r!==void 0&&(a=""+r),t.key!==void 0&&(a=""+t.key),t.ref!==void 0&&(i=t.ref);for(o in t)W2.call(t,o)&&!U2.hasOwnProperty(o)&&(n[o]=t[o]);if(e&&e.defaultProps)for(o in t=e.defaultProps,t)n[o]===void 0&&(n[o]=t[o]);return{$$typeof:H2,type:e,key:a,ref:i,props:n,_owner:$2.current}}pd.Fragment=j2;pd.jsx=r1;pd.jsxs=r1});var L=gt((MY,n1)=>{"use strict";n1.exports=o1()});var g1=gt(we=>{"use strict";function DI(e,t){var r=e.length;e.push(t);e:for(;0>>1,n=e[o];if(0>>1;ogd(s,r))lgd(f,s)?(e[o]=f,e[l]=r,o=l):(e[o]=s,e[i]=r,o=i);else if(lgd(f,r))e[o]=f,e[l]=r,o=l;else break e}}return t}function gd(e,t){var r=e.sortIndex-t.sortIndex;return r!==0?r:e.id-t.id}typeof performance=="object"&&typeof performance.now=="function"?(l1=performance,we.unstable_now=function(){return l1.now()}):(PI=Date,f1=PI.now(),we.unstable_now=function(){return PI.now()-f1});var l1,PI,f1,Eo=[],_n=[],Y2=1,Ur=null,zt=3,yd=!1,La=!1,Cf=!1,d1=typeof setTimeout=="function"?setTimeout:null,p1=typeof clearTimeout=="function"?clearTimeout:null,u1=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function FI(e){for(var t=fo(_n);t!==null;){if(t.callback===null)vd(_n);else if(t.startTime<=e)vd(_n),t.sortIndex=t.expirationTime,DI(Eo,t);else break;t=fo(_n)}}function EI(e){if(Cf=!1,FI(e),!La)if(fo(Eo)!==null)La=!0,BI(OI);else{var t=fo(_n);t!==null&&AI(EI,t.startTime-e)}}function OI(e,t){La=!1,Cf&&(Cf=!1,p1(Pf),Pf=-1),yd=!0;var r=zt;try{for(FI(t),Ur=fo(Eo);Ur!==null&&(!(Ur.expirationTime>t)||e&&!h1());){var o=Ur.callback;if(typeof o=="function"){Ur.callback=null,zt=Ur.priorityLevel;var n=o(Ur.expirationTime<=t);t=we.unstable_now(),typeof n=="function"?Ur.callback=n:Ur===fo(Eo)&&vd(Eo),FI(t)}else vd(Eo);Ur=fo(Eo)}if(Ur!==null)var a=!0;else{var i=fo(_n);i!==null&&AI(EI,i.startTime-t),a=!1}return a}finally{Ur=null,zt=r,yd=!1}}var bd=!1,Id=null,Pf=-1,m1=5,x1=-1;function h1(){return!(we.unstable_now()-x1e||125o?(e.sortIndex=r,DI(_n,e),fo(Eo)===null&&e===fo(_n)&&(Cf?(p1(Pf),Pf=-1):Cf=!0,AI(EI,r-o))):(e.sortIndex=n,DI(Eo,e),La||yd||(La=!0,BI(OI))),e};we.unstable_shouldYield=h1;we.unstable_wrapCallback=function(e){var t=zt;return function(){var r=zt;zt=t;try{return e.apply(this,arguments)}finally{zt=r}}}});var v1=gt((UY,I1)=>{"use strict";I1.exports=g1()});var wT=gt(Mr=>{"use strict";var X2=F(),Ar=v1();function E(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,r=1;r"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),rv=Object.prototype.hasOwnProperty,K2=/^[: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]*$/,y1={},b1={};function Q2(e){return rv.call(b1,e)?!0:rv.call(y1,e)?!1:K2.test(e)?b1[e]=!0:(y1[e]=!0,!1)}function Z2(e,t,r,o){if(r!==null&&r.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return o?!1:r!==null?!r.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function J2(e,t,r,o){if(t===null||typeof t>"u"||Z2(e,t,r,o))return!0;if(o)return!1;if(r!==null)switch(r.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function tr(e,t,r,o,n,a,i){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=o,this.attributeNamespace=n,this.mustUseProperty=r,this.propertyName=e,this.type=t,this.sanitizeURL=a,this.removeEmptyString=i}var Ot={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Ot[e]=new tr(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Ot[t]=new tr(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Ot[e]=new tr(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Ot[e]=new tr(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){Ot[e]=new tr(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Ot[e]=new tr(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Ot[e]=new tr(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Ot[e]=new tr(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Ot[e]=new tr(e,5,!1,e.toLowerCase(),null,!1,!1)});var Yv=/[\-:]([a-z])/g;function Xv(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(Yv,Xv);Ot[t]=new tr(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(Yv,Xv);Ot[t]=new tr(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(Yv,Xv);Ot[t]=new tr(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Ot[e]=new tr(e,1,!1,e.toLowerCase(),null,!1,!1)});Ot.xlinkHref=new tr("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Ot[e]=new tr(e,1,!1,e.toLowerCase(),null,!0,!0)});function Kv(e,t,r,o){var n=Ot.hasOwnProperty(t)?Ot[t]:null;(n!==null?n.type!==0:o||!(2s||n[i]!==a[s]){var l=` `+n[i].replace(" at new "," at ");return e.displayName&&l.includes("")&&(l=l.replace("",e.displayName)),l}while(1<=i&&0<=s);break}}}finally{MI=!1,Error.prepareStackTrace=r}return(e=e?e.displayName||e.name:"")?Rf(e):""}function eN(e){switch(e.tag){case 5:return Rf(e.type);case 16:return Rf("Lazy");case 13:return Rf("Suspense");case 19:return Rf("SuspenseList");case 0:case 2:case 15:return e=LI(e.type,!1),e;case 11:return e=LI(e.type.render,!1),e;case 1:return e=LI(e.type,!0),e;default:return""}}function iv(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 os:return"Fragment";case rs:return"Portal";case ov:return"Profiler";case Qv:return"StrictMode";case nv:return"Suspense";case av:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case DP:return(e.displayName||"Context")+".Consumer";case TP:return(e._context.displayName||"Context")+".Provider";case Zv:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Jv:return t=e.displayName||null,t!==null?t:iv(e.type)||"Memo";case zn:t=e._payload,e=e._init;try{return iv(e(t))}catch{}}return null}function tN(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 iv(t);case 8:return t===Qv?"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 Jn(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function EP(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function rN(e){var t=EP(e)?"checked":"value",r=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),o=""+e[t];if(!e.hasOwnProperty(t)&&typeof r<"u"&&typeof r.get=="function"&&typeof r.set=="function"){var n=r.get,a=r.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return n.call(this)},set:function(i){o=""+i,a.call(this,i)}}),Object.defineProperty(e,t,{enumerable:r.enumerable}),{getValue:function(){return o},setValue:function(i){o=""+i},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function wd(e){e._valueTracker||(e._valueTracker=rN(e))}function OP(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var r=t.getValue(),o="";return e&&(o=EP(e)?e.checked?"true":"false":e.value),e=o,e!==r?(t.setValue(e),!0):!1}function Qd(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 sv(e,t){var r=t.checked;return He({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:r??e._wrapperState.initialChecked})}function w1(e,t){var r=t.defaultValue==null?"":t.defaultValue,o=t.checked!=null?t.checked:t.defaultChecked;r=Jn(t.value!=null?t.value:r),e._wrapperState={initialChecked:o,initialValue:r,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function BP(e,t){t=t.checked,t!=null&&Kv(e,"checked",t,!1)}function lv(e,t){BP(e,t);var r=Jn(t.value),o=t.type;if(r!=null)o==="number"?(r===0&&e.value===""||e.value!=r)&&(e.value=""+r):e.value!==""+r&&(e.value=""+r);else if(o==="submit"||o==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?fv(e,t.type,r):t.hasOwnProperty("defaultValue")&&fv(e,t.type,Jn(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function C1(e,t,r){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var o=t.type;if(!(o!=="submit"&&o!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,r||t===e.value||(e.value=t),e.defaultValue=t}r=e.name,r!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,r!==""&&(e.name=r)}function fv(e,t,r){(t!=="number"||Qd(e.ownerDocument)!==e)&&(r==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+r&&(e.defaultValue=""+r))}var Mf=Array.isArray;function ms(e,t,r,o){if(e=e.options,t){t={};for(var n=0;n"+t.valueOf().toString()+"",t=Cd.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Yf(e,t){if(t){var r=e.firstChild;if(r&&r===e.lastChild&&r.nodeType===3){r.nodeValue=t;return}}e.textContent=t}var Nf={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},oN=["Webkit","ms","Moz","O"];Object.keys(Nf).forEach(function(e){oN.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Nf[t]=Nf[e]})});function LP(e,t,r){return t==null||typeof t=="boolean"||t===""?"":r||typeof t!="number"||t===0||Nf.hasOwnProperty(e)&&Nf[e]?(""+t).trim():t+"px"}function _P(e,t){e=e.style;for(var r in t)if(t.hasOwnProperty(r)){var o=r.indexOf("--")===0,n=LP(r,t[r],o);r==="float"&&(r="cssFloat"),o?e.setProperty(r,n):e[r]=n}}var nN=He({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 dv(e,t){if(t){if(nN[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(E(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(E(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(E(61))}if(t.style!=null&&typeof t.style!="object")throw Error(E(62))}}function pv(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 mv=null;function ey(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var xv=null,xs=null,hs=null;function T1(e){if(e=du(e)){if(typeof xv!="function")throw Error(E(280));var t=e.stateNode;t&&(t=Pp(t),xv(e.stateNode,e.type,t))}}function NP(e){xs?hs?hs.push(e):hs=[e]:xs=e}function zP(){if(xs){var e=xs,t=hs;if(hs=xs=null,T1(e),t)for(e=0;e>>=0,e===0?32:31-(xN(e)/hN|0)|0}var Pd=64,kd=4194304;function Lf(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 tp(e,t){var r=e.pendingLanes;if(r===0)return 0;var o=0,n=e.suspendedLanes,a=e.pingedLanes,i=r&268435455;if(i!==0){var s=i&~n;s!==0?o=Lf(s):(a&=i,a!==0&&(o=Lf(a)))}else i=r&~n,i!==0?o=Lf(i):a!==0&&(o=Lf(a));if(o===0)return 0;if(t!==0&&t!==o&&!(t&n)&&(n=o&-o,a=t&-t,n>=a||n===16&&(a&4194240)!==0))return t;if(o&4&&(o|=r&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=o;0r;r++)t.push(e);return t}function uu(e,t,r){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-xo(t),e[t]=r}function yN(e,t){var r=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var o=e.eventTimes;for(e=e.expirationTimes;0=Vf),L1=" ",_1=!1;function ak(e,t){switch(e){case"keyup":return YN.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function ik(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var ns=!1;function KN(e,t){switch(e){case"compositionend":return ik(t);case"keypress":return t.which!==32?null:(_1=!0,L1);case"textInput":return e=t.data,e===L1&&_1?null:e;default:return null}}function QN(e,t){if(ns)return e==="compositionend"||!ly&&ak(e,t)?(e=ok(),jd=ay=Wn=null,ns=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:r,offset:t-e};e=o}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=V1(r)}}function uk(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?uk(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function ck(){for(var e=window,t=Qd();t instanceof e.HTMLIFrameElement;){try{var r=typeof t.contentWindow.location.href=="string"}catch{r=!1}if(r)e=t.contentWindow;else break;t=Qd(e.document)}return t}function fy(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 i5(e){var t=ck(),r=e.focusedElem,o=e.selectionRange;if(t!==r&&r&&r.ownerDocument&&uk(r.ownerDocument.documentElement,r)){if(o!==null&&fy(r)){if(t=o.start,e=o.end,e===void 0&&(e=t),"selectionStart"in r)r.selectionStart=t,r.selectionEnd=Math.min(e,r.value.length);else if(e=(t=r.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var n=r.textContent.length,a=Math.min(o.start,n);o=o.end===void 0?a:Math.min(o.end,n),!e.extend&&a>o&&(n=o,o=a,a=n),n=H1(r,a);var i=H1(r,o);n&&i&&(e.rangeCount!==1||e.anchorNode!==n.node||e.anchorOffset!==n.offset||e.focusNode!==i.node||e.focusOffset!==i.offset)&&(t=t.createRange(),t.setStart(n.node,n.offset),e.removeAllRanges(),a>o?(e.addRange(t),e.extend(i.node,i.offset)):(t.setEnd(i.node,i.offset),e.addRange(t)))}}for(t=[],e=r;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof r.focus=="function"&&r.focus(),r=0;r=document.documentMode,as=null,bv=null,jf=null,Sv=!1;function j1(e,t,r){var o=r.window===r?r.document:r.nodeType===9?r:r.ownerDocument;Sv||as==null||as!==Qd(o)||(o=as,"selectionStart"in o&&fy(o)?o={start:o.selectionStart,end:o.selectionEnd}:(o=(o.ownerDocument&&o.ownerDocument.defaultView||window).getSelection(),o={anchorNode:o.anchorNode,anchorOffset:o.anchorOffset,focusNode:o.focusNode,focusOffset:o.focusOffset}),jf&&eu(jf,o)||(jf=o,o=np(bv,"onSelect"),0ls||(e.current=Dv[ls],Dv[ls]=null,ls--)}function Ce(e,t){ls++,Dv[ls]=e.current,e.current=t}var ea={},Wt=ra(ea),pr=ra(!1),$a=ea;function bs(e,t){var r=e.type.contextTypes;if(!r)return ea;var o=e.stateNode;if(o&&o.__reactInternalMemoizedUnmaskedChildContext===t)return o.__reactInternalMemoizedMaskedChildContext;var n={},a;for(a in r)n[a]=t[a];return o&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=n),n}function mr(e){return e=e.childContextTypes,e!=null}function ip(){Be(pr),Be(Wt)}function Q1(e,t,r){if(Wt.current!==ea)throw Error(E(168));Ce(Wt,t),Ce(pr,r)}function yk(e,t,r){var o=e.stateNode;if(t=t.childContextTypes,typeof o.getChildContext!="function")return r;o=o.getChildContext();for(var n in o)if(!(n in t))throw Error(E(108,tN(e)||"Unknown",n));return He({},r,o)}function sp(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||ea,$a=Wt.current,Ce(Wt,e),Ce(pr,pr.current),!0}function Z1(e,t,r){var o=e.stateNode;if(!o)throw Error(E(169));r?(e=yk(e,t,$a),o.__reactInternalMemoizedMergedChildContext=e,Be(pr),Be(Wt),Ce(Wt,e)):Be(pr),Ce(pr,r)}var Jo=null,kp=!1,GI=!1;function bk(e){Jo===null?Jo=[e]:Jo.push(e)}function h5(e){kp=!0,bk(e)}function oa(){if(!GI&&Jo!==null){GI=!0;var e=0,t=he;try{var r=Jo;for(he=1;e>=i,n-=i,en=1<<32-xo(t)+n|r<k?(D=b,b=null):D=b.sibling;var T=d(x,b,g[k],y);if(T===null){b===null&&(b=D);break}e&&b&&T.alternate===null&&t(x,b),p=a(T,p,k),P===null?w=T:P.sibling=T,P=T,b=D}if(k===g.length)return r(x,b),Le&&_a(x,k),w;if(b===null){for(;kk?(D=b,b=null):D=b.sibling;var O=d(x,b,T.value,y);if(O===null){b===null&&(b=D);break}e&&b&&O.alternate===null&&t(x,b),p=a(O,p,k),P===null?w=O:P.sibling=O,P=O,b=D}if(T.done)return r(x,b),Le&&_a(x,k),w;if(b===null){for(;!T.done;k++,T=g.next())T=c(x,T.value,y),T!==null&&(p=a(T,p,k),P===null?w=T:P.sibling=T,P=T);return Le&&_a(x,k),w}for(b=o(x,b);!T.done;k++,T=g.next())T=m(b,x,k,T.value,y),T!==null&&(e&&T.alternate!==null&&b.delete(T.key===null?k:T.key),p=a(T,p,k),P===null?w=T:P.sibling=T,P=T);return e&&b.forEach(function(_){return t(x,_)}),Le&&_a(x,k),w}function v(x,p,g,y){if(typeof g=="object"&&g!==null&&g.type===os&&g.key===null&&(g=g.props.children),typeof g=="object"&&g!==null){switch(g.$$typeof){case Sd:e:{for(var w=g.key,P=p;P!==null;){if(P.key===w){if(w=g.type,w===os){if(P.tag===7){r(x,P.sibling),p=n(P,g.props.children),p.return=x,x=p;break e}}else if(P.elementType===w||typeof w=="object"&&w!==null&&w.$$typeof===zn&&tP(w)===P.type){r(x,P.sibling),p=n(P,g.props),p.ref=Ef(x,P,g),p.return=x,x=p;break e}r(x,P);break}else t(x,P);P=P.sibling}g.type===os?(p=Wa(g.props.children,x.mode,y,g.key),p.return=x,x=p):(y=Kd(g.type,g.key,g.props,null,x.mode,y),y.ref=Ef(x,p,g),y.return=x,x=y)}return i(x);case rs:e:{for(P=g.key;p!==null;){if(p.key===P)if(p.tag===4&&p.stateNode.containerInfo===g.containerInfo&&p.stateNode.implementation===g.implementation){r(x,p.sibling),p=n(p,g.children||[]),p.return=x,x=p;break e}else{r(x,p);break}else t(x,p);p=p.sibling}p=tv(g,x.mode,y),p.return=x,x=p}return i(x);case zn:return P=g._init,v(x,p,P(g._payload),y)}if(Mf(g))return I(x,p,g,y);if(kf(g))return h(x,p,g,y);_d(x,g)}return typeof g=="string"&&g!==""||typeof g=="number"?(g=""+g,p!==null&&p.tag===6?(r(x,p.sibling),p=n(p,g),p.return=x,x=p):(r(x,p),p=ev(g,x.mode,y),p.return=x,x=p),i(x)):r(x,p)}return v}var ws=Pk(!0),kk=Pk(!1),up=ra(null),cp=null,cs=null,py=null;function my(){py=cs=cp=null}function xy(e){var t=up.current;Be(up),e._currentValue=t}function Ov(e,t,r){for(;e!==null;){var o=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,o!==null&&(o.childLanes|=t)):o!==null&&(o.childLanes&t)!==t&&(o.childLanes|=t),e===r)break;e=e.return}}function Is(e,t){cp=e,py=cs=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(dr=!0),e.firstContext=null)}function Kr(e){var t=e._currentValue;if(py!==e)if(e={context:e,memoizedValue:t,next:null},cs===null){if(cp===null)throw Error(E(308));cs=e,cp.dependencies={lanes:0,firstContext:e}}else cs=cs.next=e;return t}var Va=null;function hy(e){Va===null?Va=[e]:Va.push(e)}function Tk(e,t,r,o){var n=t.interleaved;return n===null?(r.next=r,hy(t)):(r.next=n.next,n.next=r),t.interleaved=r,an(e,o)}function an(e,t){e.lanes|=t;var r=e.alternate;for(r!==null&&(r.lanes|=t),r=e,e=e.return;e!==null;)e.childLanes|=t,r=e.alternate,r!==null&&(r.childLanes|=t),r=e,e=e.return;return r.tag===3?r.stateNode:null}var Vn=!1;function gy(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Dk(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function rn(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Xn(e,t,r){var o=e.updateQueue;if(o===null)return null;if(o=o.shared,se&2){var n=o.pending;return n===null?t.next=t:(t.next=n.next,n.next=t),o.pending=t,an(e,r)}return n=o.interleaved,n===null?(t.next=t,hy(o)):(t.next=n.next,n.next=t),o.interleaved=t,an(e,r)}function $d(e,t,r){if(t=t.updateQueue,t!==null&&(t=t.shared,(r&4194240)!==0)){var o=t.lanes;o&=e.pendingLanes,r|=o,t.lanes=r,ry(e,r)}}function rP(e,t){var r=e.updateQueue,o=e.alternate;if(o!==null&&(o=o.updateQueue,r===o)){var n=null,a=null;if(r=r.firstBaseUpdate,r!==null){do{var i={eventTime:r.eventTime,lane:r.lane,tag:r.tag,payload:r.payload,callback:r.callback,next:null};a===null?n=a=i:a=a.next=i,r=r.next}while(r!==null);a===null?n=a=t:a=a.next=t}else n=a=t;r={baseState:o.baseState,firstBaseUpdate:n,lastBaseUpdate:a,shared:o.shared,effects:o.effects},e.updateQueue=r;return}e=r.lastBaseUpdate,e===null?r.firstBaseUpdate=t:e.next=t,r.lastBaseUpdate=t}function dp(e,t,r,o){var n=e.updateQueue;Vn=!1;var a=n.firstBaseUpdate,i=n.lastBaseUpdate,s=n.shared.pending;if(s!==null){n.shared.pending=null;var l=s,f=l.next;l.next=null,i===null?a=f:i.next=f,i=l;var u=e.alternate;u!==null&&(u=u.updateQueue,s=u.lastBaseUpdate,s!==i&&(s===null?u.firstBaseUpdate=f:s.next=f,u.lastBaseUpdate=l))}if(a!==null){var c=n.baseState;i=0,u=f=l=null,s=a;do{var d=s.lane,m=s.eventTime;if((o&d)===d){u!==null&&(u=u.next={eventTime:m,lane:0,tag:s.tag,payload:s.payload,callback:s.callback,next:null});e:{var I=e,h=s;switch(d=t,m=r,h.tag){case 1:if(I=h.payload,typeof I=="function"){c=I.call(m,c,d);break e}c=I;break e;case 3:I.flags=I.flags&-65537|128;case 0:if(I=h.payload,d=typeof I=="function"?I.call(m,c,d):I,d==null)break e;c=He({},c,d);break e;case 2:Vn=!0}}s.callback!==null&&s.lane!==0&&(e.flags|=64,d=n.effects,d===null?n.effects=[s]:d.push(s))}else m={eventTime:m,lane:d,tag:s.tag,payload:s.payload,callback:s.callback,next:null},u===null?(f=u=m,l=c):u=u.next=m,i|=d;if(s=s.next,s===null){if(s=n.shared.pending,s===null)break;d=s,s=d.next,d.next=null,n.lastBaseUpdate=d,n.shared.pending=null}}while(!0);if(u===null&&(l=c),n.baseState=l,n.firstBaseUpdate=f,n.lastBaseUpdate=u,t=n.shared.interleaved,t!==null){n=t;do i|=n.lane,n=n.next;while(n!==t)}else a===null&&(n.shared.lanes=0);Ga|=i,e.lanes=i,e.memoizedState=c}}function oP(e,t,r){if(e=t.effects,t.effects=null,e!==null)for(t=0;tr?r:4,e(!0);var o=XI.transition;XI.transition={};try{e(!1),t()}finally{he=r,XI.transition=o}}function Uk(){return Qr().memoizedState}function y5(e,t,r){var o=Qn(e);if(r={lane:o,action:r,hasEagerState:!1,eagerState:null,next:null},qk(e))Gk(t,r);else if(r=Tk(e,t,r,o),r!==null){var n=er();ho(r,e,o,n),Yk(r,t,o)}}function b5(e,t,r){var o=Qn(e),n={lane:o,action:r,hasEagerState:!1,eagerState:null,next:null};if(qk(e))Gk(t,n);else{var a=e.alternate;if(e.lanes===0&&(a===null||a.lanes===0)&&(a=t.lastRenderedReducer,a!==null))try{var i=t.lastRenderedState,s=a(i,r);if(n.hasEagerState=!0,n.eagerState=s,go(s,i)){var l=t.interleaved;l===null?(n.next=n,hy(t)):(n.next=l.next,l.next=n),t.interleaved=n;return}}catch{}finally{}r=Tk(e,t,n,o),r!==null&&(n=er(),ho(r,e,o,n),Yk(r,t,o))}}function qk(e){var t=e.alternate;return e===Ve||t!==null&&t===Ve}function Gk(e,t){Wf=mp=!0;var r=e.pending;r===null?t.next=t:(t.next=r.next,r.next=t),e.pending=t}function Yk(e,t,r){if(r&4194240){var o=t.lanes;o&=e.pendingLanes,r|=o,t.lanes=r,ry(e,r)}}var xp={readContext:Kr,useCallback:Vt,useContext:Vt,useEffect:Vt,useImperativeHandle:Vt,useInsertionEffect:Vt,useLayoutEffect:Vt,useMemo:Vt,useReducer:Vt,useRef:Vt,useState:Vt,useDebugValue:Vt,useDeferredValue:Vt,useTransition:Vt,useMutableSource:Vt,useSyncExternalStore:Vt,useId:Vt,unstable_isNewReconciler:!1},S5={readContext:Kr,useCallback:function(e,t){return Bo().memoizedState=[e,t===void 0?null:t],e},useContext:Kr,useEffect:aP,useImperativeHandle:function(e,t,r){return r=r!=null?r.concat([e]):null,qd(4194308,4,Vk.bind(null,t,e),r)},useLayoutEffect:function(e,t){return qd(4194308,4,e,t)},useInsertionEffect:function(e,t){return qd(4,2,e,t)},useMemo:function(e,t){var r=Bo();return t=t===void 0?null:t,e=e(),r.memoizedState=[e,t],e},useReducer:function(e,t,r){var o=Bo();return t=r!==void 0?r(t):t,o.memoizedState=o.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},o.queue=e,e=e.dispatch=y5.bind(null,Ve,e),[o.memoizedState,e]},useRef:function(e){var t=Bo();return e={current:e},t.memoizedState=e},useState:nP,useDebugValue:Py,useDeferredValue:function(e){return Bo().memoizedState=e},useTransition:function(){var e=nP(!1),t=e[0];return e=v5.bind(null,e[1]),Bo().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,r){var o=Ve,n=Bo();if(Le){if(r===void 0)throw Error(E(407));r=r()}else{if(r=t(),yt===null)throw Error(E(349));qa&30||Bk(o,t,r)}n.memoizedState=r;var a={value:r,getSnapshot:t};return n.queue=a,aP(Rk.bind(null,o,a,e),[e]),o.flags|=2048,lu(9,Ak.bind(null,o,a,r,t),void 0,null),r},useId:function(){var e=Bo(),t=yt.identifierPrefix;if(Le){var r=tn,o=en;r=(o&~(1<<32-xo(o)-1)).toString(32)+r,t=":"+t+"R"+r,r=iu++,0<\/script>",e=e.removeChild(e.firstChild)):typeof o.is=="string"?e=i.createElement(r,{is:o.is}):(e=i.createElement(r),r==="select"&&(i=e,o.multiple?i.multiple=!0:o.size&&(i.size=o.size))):e=i.createElementNS(e,r),e[Ao]=t,e[ou]=o,nT(e,t,!1,!1),t.stateNode=e;e:{switch(i=pv(r,o),r){case"dialog":Oe("cancel",e),Oe("close",e),n=o;break;case"iframe":case"object":case"embed":Oe("load",e),n=o;break;case"video":case"audio":for(n=0;n<_f.length;n++)Oe(_f[n],e);n=o;break;case"source":Oe("error",e),n=o;break;case"img":case"image":case"link":Oe("error",e),Oe("load",e),n=o;break;case"details":Oe("toggle",e),n=o;break;case"input":w1(e,o),n=sv(e,o),Oe("invalid",e);break;case"option":n=o;break;case"select":e._wrapperState={wasMultiple:!!o.multiple},n=He({},o,{value:void 0}),Oe("invalid",e);break;case"textarea":P1(e,o),n=uv(e,o),Oe("invalid",e);break;default:n=o}dv(r,n),s=n;for(a in s)if(s.hasOwnProperty(a)){var l=s[a];a==="style"?_P(e,l):a==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,l!=null&&MP(e,l)):a==="children"?typeof l=="string"?(r!=="textarea"||l!=="")&&Yf(e,l):typeof l=="number"&&Yf(e,""+l):a!=="suppressContentEditableWarning"&&a!=="suppressHydrationWarning"&&a!=="autoFocus"&&(Gf.hasOwnProperty(a)?l!=null&&a==="onScroll"&&Oe("scroll",e):l!=null&&Kv(e,a,l,i))}switch(r){case"input":wd(e),C1(e,o,!1);break;case"textarea":wd(e),k1(e);break;case"option":o.value!=null&&e.setAttribute("value",""+Jn(o.value));break;case"select":e.multiple=!!o.multiple,a=o.value,a!=null?ms(e,!!o.multiple,a,!1):o.defaultValue!=null&&ms(e,!!o.multiple,o.defaultValue,!0);break;default:typeof n.onClick=="function"&&(e.onclick=ap)}switch(r){case"button":case"input":case"select":case"textarea":o=!!o.autoFocus;break e;case"img":o=!0;break e;default:o=!1}}o&&(t.flags|=4)}t.ref!==null&&(t.flags|=512,t.flags|=2097152)}return Ht(t),null;case 6:if(e&&t.stateNode!=null)iT(e,t,e.memoizedProps,o);else{if(typeof o!="string"&&t.stateNode===null)throw Error(E(166));if(r=Ha(au.current),Ha(Mo.current),Ld(t)){if(o=t.stateNode,r=t.memoizedProps,o[Ao]=t,(a=o.nodeValue!==r)&&(e=Br,e!==null))switch(e.tag){case 3:Md(o.nodeValue,r,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&Md(o.nodeValue,r,(e.mode&1)!==0)}a&&(t.flags|=4)}else o=(r.nodeType===9?r:r.ownerDocument).createTextNode(o),o[Ao]=t,t.stateNode=o}return Ht(t),null;case 13:if(Be(ze),o=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(Le&&Or!==null&&t.mode&1&&!(t.flags&128))Ck(),Ss(),t.flags|=98560,a=!1;else if(a=Ld(t),o!==null&&o.dehydrated!==null){if(e===null){if(!a)throw Error(E(318));if(a=t.memoizedState,a=a!==null?a.dehydrated:null,!a)throw Error(E(317));a[Ao]=t}else Ss(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;Ht(t),a=!1}else mo!==null&&(Gv(mo),mo=null),a=!0;if(!a)return t.flags&65536?t:null}return t.flags&128?(t.lanes=r,t):(o=o!==null,o!==(e!==null&&e.memoizedState!==null)&&o&&(t.child.flags|=8192,t.mode&1&&(e===null||ze.current&1?ft===0&&(ft=3):By())),t.updateQueue!==null&&(t.flags|=4),Ht(t),null);case 4:return Cs(),zv(e,t),e===null&&tu(t.stateNode.containerInfo),Ht(t),null;case 10:return xy(t.type._context),Ht(t),null;case 17:return mr(t.type)&&ip(),Ht(t),null;case 19:if(Be(ze),a=t.memoizedState,a===null)return Ht(t),null;if(o=(t.flags&128)!==0,i=a.rendering,i===null)if(o)Of(a,!1);else{if(ft!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(i=pp(e),i!==null){for(t.flags|=128,Of(a,!1),o=i.updateQueue,o!==null&&(t.updateQueue=o,t.flags|=4),t.subtreeFlags=0,o=r,r=t.child;r!==null;)a=r,e=o,a.flags&=14680066,i=a.alternate,i===null?(a.childLanes=0,a.lanes=e,a.child=null,a.subtreeFlags=0,a.memoizedProps=null,a.memoizedState=null,a.updateQueue=null,a.dependencies=null,a.stateNode=null):(a.childLanes=i.childLanes,a.lanes=i.lanes,a.child=i.child,a.subtreeFlags=0,a.deletions=null,a.memoizedProps=i.memoizedProps,a.memoizedState=i.memoizedState,a.updateQueue=i.updateQueue,a.type=i.type,e=i.dependencies,a.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),r=r.sibling;return Ce(ze,ze.current&1|2),t.child}e=e.sibling}a.tail!==null&&Xe()>ks&&(t.flags|=128,o=!0,Of(a,!1),t.lanes=4194304)}else{if(!o)if(e=pp(i),e!==null){if(t.flags|=128,o=!0,r=e.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),Of(a,!0),a.tail===null&&a.tailMode==="hidden"&&!i.alternate&&!Le)return Ht(t),null}else 2*Xe()-a.renderingStartTime>ks&&r!==1073741824&&(t.flags|=128,o=!0,Of(a,!1),t.lanes=4194304);a.isBackwards?(i.sibling=t.child,t.child=i):(r=a.last,r!==null?r.sibling=i:t.child=i,a.last=i)}return a.tail!==null?(t=a.tail,a.rendering=t,a.tail=t.sibling,a.renderingStartTime=Xe(),t.sibling=null,r=ze.current,Ce(ze,o?r&1|2:r&1),t):(Ht(t),null);case 22:case 23:return Oy(),o=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==o&&(t.flags|=8192),o&&t.mode&1?Er&1073741824&&(Ht(t),t.subtreeFlags&6&&(t.flags|=8192)):Ht(t),null;case 24:return null;case 25:return null}throw Error(E(156,t.tag))}function E5(e,t){switch(cy(t),t.tag){case 1:return mr(t.type)&&ip(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Cs(),Be(pr),Be(Wt),yy(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return vy(t),null;case 13:if(Be(ze),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(E(340));Ss()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Be(ze),null;case 4:return Cs(),null;case 10:return xy(t.type._context),null;case 22:case 23:return Oy(),null;case 24:return null;default:return null}}var zd=!1,jt=!1,O5=typeof WeakSet=="function"?WeakSet:Set,R=null;function ds(e,t){var r=e.ref;if(r!==null)if(typeof r=="function")try{r(null)}catch(o){Ue(e,t,o)}else r.current=null}function Vv(e,t,r){try{r()}catch(o){Ue(e,t,o)}}var hP=!1;function B5(e,t){if(wv=rp,e=ck(),fy(e)){if("selectionStart"in e)var r={start:e.selectionStart,end:e.selectionEnd};else e:{r=(r=e.ownerDocument)&&r.defaultView||window;var o=r.getSelection&&r.getSelection();if(o&&o.rangeCount!==0){r=o.anchorNode;var n=o.anchorOffset,a=o.focusNode;o=o.focusOffset;try{r.nodeType,a.nodeType}catch{r=null;break e}var i=0,s=-1,l=-1,f=0,u=0,c=e,d=null;t:for(;;){for(var m;c!==r||n!==0&&c.nodeType!==3||(s=i+n),c!==a||o!==0&&c.nodeType!==3||(l=i+o),c.nodeType===3&&(i+=c.nodeValue.length),(m=c.firstChild)!==null;)d=c,c=m;for(;;){if(c===e)break t;if(d===r&&++f===n&&(s=i),d===a&&++u===o&&(l=i),(m=c.nextSibling)!==null)break;c=d,d=c.parentNode}c=m}r=s===-1||l===-1?null:{start:s,end:l}}else r=null}r=r||{start:0,end:0}}else r=null;for(Cv={focusedElem:e,selectionRange:r},rp=!1,R=t;R!==null;)if(t=R,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,R=e;else for(;R!==null;){t=R;try{var I=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(I!==null){var h=I.memoizedProps,v=I.memoizedState,x=t.stateNode,p=x.getSnapshotBeforeUpdate(t.elementType===t.type?h:co(t.type,h),v);x.__reactInternalSnapshotBeforeUpdate=p}break;case 3:var g=t.stateNode.containerInfo;g.nodeType===1?g.textContent="":g.nodeType===9&&g.documentElement&&g.removeChild(g.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(E(163))}}catch(y){Ue(t,t.return,y)}if(e=t.sibling,e!==null){e.return=t.return,R=e;break}R=t.return}return I=hP,hP=!1,I}function $f(e,t,r){var o=t.updateQueue;if(o=o!==null?o.lastEffect:null,o!==null){var n=o=o.next;do{if((n.tag&e)===e){var a=n.destroy;n.destroy=void 0,a!==void 0&&Vv(t,r,a)}n=n.next}while(n!==o)}}function Fp(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var r=t=t.next;do{if((r.tag&e)===e){var o=r.create;r.destroy=o()}r=r.next}while(r!==t)}}function Hv(e){var t=e.ref;if(t!==null){var r=e.stateNode;switch(e.tag){case 5:e=r;break;default:e=r}typeof t=="function"?t(e):t.current=e}}function sT(e){var t=e.alternate;t!==null&&(e.alternate=null,sT(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Ao],delete t[ou],delete t[Tv],delete t[m5],delete t[x5])),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 lT(e){return e.tag===5||e.tag===3||e.tag===4}function gP(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||lT(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 jv(e,t,r){var o=e.tag;if(o===5||o===6)e=e.stateNode,t?r.nodeType===8?r.parentNode.insertBefore(e,t):r.insertBefore(e,t):(r.nodeType===8?(t=r.parentNode,t.insertBefore(e,r)):(t=r,t.appendChild(e)),r=r._reactRootContainer,r!=null||t.onclick!==null||(t.onclick=ap));else if(o!==4&&(e=e.child,e!==null))for(jv(e,t,r),e=e.sibling;e!==null;)jv(e,t,r),e=e.sibling}function Wv(e,t,r){var o=e.tag;if(o===5||o===6)e=e.stateNode,t?r.insertBefore(e,t):r.appendChild(e);else if(o!==4&&(e=e.child,e!==null))for(Wv(e,t,r),e=e.sibling;e!==null;)Wv(e,t,r),e=e.sibling}var Ft=null,po=!1;function Nn(e,t,r){for(r=r.child;r!==null;)fT(e,t,r),r=r.sibling}function fT(e,t,r){if(Ro&&typeof Ro.onCommitFiberUnmount=="function")try{Ro.onCommitFiberUnmount(bp,r)}catch{}switch(r.tag){case 5:jt||ds(r,t);case 6:var o=Ft,n=po;Ft=null,Nn(e,t,r),Ft=o,po=n,Ft!==null&&(po?(e=Ft,r=r.stateNode,e.nodeType===8?e.parentNode.removeChild(r):e.removeChild(r)):Ft.removeChild(r.stateNode));break;case 18:Ft!==null&&(po?(e=Ft,r=r.stateNode,e.nodeType===8?qI(e.parentNode,r):e.nodeType===1&&qI(e,r),Zf(e)):qI(Ft,r.stateNode));break;case 4:o=Ft,n=po,Ft=r.stateNode.containerInfo,po=!0,Nn(e,t,r),Ft=o,po=n;break;case 0:case 11:case 14:case 15:if(!jt&&(o=r.updateQueue,o!==null&&(o=o.lastEffect,o!==null))){n=o=o.next;do{var a=n,i=a.destroy;a=a.tag,i!==void 0&&(a&2||a&4)&&Vv(r,t,i),n=n.next}while(n!==o)}Nn(e,t,r);break;case 1:if(!jt&&(ds(r,t),o=r.stateNode,typeof o.componentWillUnmount=="function"))try{o.props=r.memoizedProps,o.state=r.memoizedState,o.componentWillUnmount()}catch(s){Ue(r,t,s)}Nn(e,t,r);break;case 21:Nn(e,t,r);break;case 22:r.mode&1?(jt=(o=jt)||r.memoizedState!==null,Nn(e,t,r),jt=o):Nn(e,t,r);break;default:Nn(e,t,r)}}function IP(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var r=e.stateNode;r===null&&(r=e.stateNode=new O5),t.forEach(function(o){var n=H5.bind(null,e,o);r.has(o)||(r.add(o),o.then(n,n))})}}function uo(e,t){var r=t.deletions;if(r!==null)for(var o=0;on&&(n=i),o&=~a}if(o=n,o=Xe()-o,o=(120>o?120:480>o?480:1080>o?1080:1920>o?1920:3e3>o?3e3:4320>o?4320:1960*R5(o/1960))-o,10e?16:e,$n===null)var o=!1;else{if(e=$n,$n=null,Ip=0,se&6)throw Error(E(331));var n=se;for(se|=4,R=e.current;R!==null;){var a=R,i=a.child;if(R.flags&16){var s=a.deletions;if(s!==null){for(var l=0;lXe()-Fy?ja(e,0):Dy|=r),xr(e,t)}function gT(e,t){t===0&&(e.mode&1?(t=kd,kd<<=1,!(kd&130023424)&&(kd=4194304)):t=1);var r=er();e=an(e,t),e!==null&&(uu(e,t,r),xr(e,r))}function V5(e){var t=e.memoizedState,r=0;t!==null&&(r=t.retryLane),gT(e,r)}function H5(e,t){var r=0;switch(e.tag){case 13:var o=e.stateNode,n=e.memoizedState;n!==null&&(r=n.retryLane);break;case 19:o=e.stateNode;break;default:throw Error(E(314))}o!==null&&o.delete(t),gT(e,r)}var IT;IT=function(e,t,r){if(e!==null)if(e.memoizedProps!==t.pendingProps||pr.current)dr=!0;else{if(!(e.lanes&r)&&!(t.flags&128))return dr=!1,D5(e,t,r);dr=!!(e.flags&131072)}else dr=!1,Le&&t.flags&1048576&&Sk(t,fp,t.index);switch(t.lanes=0,t.tag){case 2:var o=t.type;Gd(e,t),e=t.pendingProps;var n=bs(t,Wt.current);Is(t,r),n=Sy(null,t,o,e,n,r);var a=wy();return t.flags|=1,typeof n=="object"&&n!==null&&typeof n.render=="function"&&n.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,mr(o)?(a=!0,sp(t)):a=!1,t.memoizedState=n.state!==null&&n.state!==void 0?n.state:null,gy(t),n.updater=Dp,t.stateNode=n,n._reactInternals=t,Av(t,o,e,r),t=Lv(null,t,o,!0,a,r)):(t.tag=0,Le&&a&&uy(t),Jt(null,t,n,r),t=t.child),t;case 16:o=t.elementType;e:{switch(Gd(e,t),e=t.pendingProps,n=o._init,o=n(o._payload),t.type=o,n=t.tag=W5(o),e=co(o,e),n){case 0:t=Mv(null,t,o,e,r);break e;case 1:t=pP(null,t,o,e,r);break e;case 11:t=cP(null,t,o,e,r);break e;case 14:t=dP(null,t,o,co(o.type,e),r);break e}throw Error(E(306,o,""))}return t;case 0:return o=t.type,n=t.pendingProps,n=t.elementType===o?n:co(o,n),Mv(e,t,o,n,r);case 1:return o=t.type,n=t.pendingProps,n=t.elementType===o?n:co(o,n),pP(e,t,o,n,r);case 3:e:{if(tT(t),e===null)throw Error(E(387));o=t.pendingProps,a=t.memoizedState,n=a.element,Dk(e,t),dp(t,o,null,r);var i=t.memoizedState;if(o=i.element,a.isDehydrated)if(a={element:o,isDehydrated:!1,cache:i.cache,pendingSuspenseBoundaries:i.pendingSuspenseBoundaries,transitions:i.transitions},t.updateQueue.baseState=a,t.memoizedState=a,t.flags&256){n=Ps(Error(E(423)),t),t=mP(e,t,o,r,n);break e}else if(o!==n){n=Ps(Error(E(424)),t),t=mP(e,t,o,r,n);break e}else for(Or=Yn(t.stateNode.containerInfo.firstChild),Br=t,Le=!0,mo=null,r=kk(t,null,o,r),t.child=r;r;)r.flags=r.flags&-3|4096,r=r.sibling;else{if(Ss(),o===n){t=sn(e,t,r);break e}Jt(e,t,o,r)}t=t.child}return t;case 5:return Fk(t),e===null&&Ev(t),o=t.type,n=t.pendingProps,a=e!==null?e.memoizedProps:null,i=n.children,Pv(o,n)?i=null:a!==null&&Pv(o,a)&&(t.flags|=32),eT(e,t),Jt(e,t,i,r),t.child;case 6:return e===null&&Ev(t),null;case 13:return rT(e,t,r);case 4:return Iy(t,t.stateNode.containerInfo),o=t.pendingProps,e===null?t.child=ws(t,null,o,r):Jt(e,t,o,r),t.child;case 11:return o=t.type,n=t.pendingProps,n=t.elementType===o?n:co(o,n),cP(e,t,o,n,r);case 7:return Jt(e,t,t.pendingProps,r),t.child;case 8:return Jt(e,t,t.pendingProps.children,r),t.child;case 12:return Jt(e,t,t.pendingProps.children,r),t.child;case 10:e:{if(o=t.type._context,n=t.pendingProps,a=t.memoizedProps,i=n.value,Ce(up,o._currentValue),o._currentValue=i,a!==null)if(go(a.value,i)){if(a.children===n.children&&!pr.current){t=sn(e,t,r);break e}}else for(a=t.child,a!==null&&(a.return=t);a!==null;){var s=a.dependencies;if(s!==null){i=a.child;for(var l=s.firstContext;l!==null;){if(l.context===o){if(a.tag===1){l=rn(-1,r&-r),l.tag=2;var f=a.updateQueue;if(f!==null){f=f.shared;var u=f.pending;u===null?l.next=l:(l.next=u.next,u.next=l),f.pending=l}}a.lanes|=r,l=a.alternate,l!==null&&(l.lanes|=r),Ov(a.return,r,t),s.lanes|=r;break}l=l.next}}else if(a.tag===10)i=a.type===t.type?null:a.child;else if(a.tag===18){if(i=a.return,i===null)throw Error(E(341));i.lanes|=r,s=i.alternate,s!==null&&(s.lanes|=r),Ov(i,r,t),i=a.sibling}else i=a.child;if(i!==null)i.return=a;else for(i=a;i!==null;){if(i===t){i=null;break}if(a=i.sibling,a!==null){a.return=i.return,i=a;break}i=i.return}a=i}Jt(e,t,n.children,r),t=t.child}return t;case 9:return n=t.type,o=t.pendingProps.children,Is(t,r),n=Kr(n),o=o(n),t.flags|=1,Jt(e,t,o,r),t.child;case 14:return o=t.type,n=co(o,t.pendingProps),n=co(o.type,n),dP(e,t,o,n,r);case 15:return Zk(e,t,t.type,t.pendingProps,r);case 17:return o=t.type,n=t.pendingProps,n=t.elementType===o?n:co(o,n),Gd(e,t),t.tag=1,mr(o)?(e=!0,sp(t)):e=!1,Is(t,r),Xk(t,o,n),Av(t,o,n,r),Lv(null,t,o,!0,e,r);case 19:return oT(e,t,r);case 22:return Jk(e,t,r)}throw Error(E(156,t.tag))};function vT(e,t){return qP(e,t)}function j5(e,t,r,o){this.tag=e,this.key=r,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=o,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Yr(e,t,r,o){return new j5(e,t,r,o)}function Ay(e){return e=e.prototype,!(!e||!e.isReactComponent)}function W5(e){if(typeof e=="function")return Ay(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Zv)return 11;if(e===Jv)return 14}return 2}function Zn(e,t){var r=e.alternate;return r===null?(r=Yr(e.tag,t,e.key,e.mode),r.elementType=e.elementType,r.type=e.type,r.stateNode=e.stateNode,r.alternate=e,e.alternate=r):(r.pendingProps=t,r.type=e.type,r.flags=0,r.subtreeFlags=0,r.deletions=null),r.flags=e.flags&14680064,r.childLanes=e.childLanes,r.lanes=e.lanes,r.child=e.child,r.memoizedProps=e.memoizedProps,r.memoizedState=e.memoizedState,r.updateQueue=e.updateQueue,t=e.dependencies,r.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},r.sibling=e.sibling,r.index=e.index,r.ref=e.ref,r}function Kd(e,t,r,o,n,a){var i=2;if(o=e,typeof e=="function")Ay(e)&&(i=1);else if(typeof e=="string")i=5;else e:switch(e){case os:return Wa(r.children,n,a,t);case Qv:i=8,n|=8;break;case ov:return e=Yr(12,r,t,n|2),e.elementType=ov,e.lanes=a,e;case nv:return e=Yr(13,r,t,n),e.elementType=nv,e.lanes=a,e;case av:return e=Yr(19,r,t,n),e.elementType=av,e.lanes=a,e;case FP:return Op(r,n,a,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case TP:i=10;break e;case DP:i=9;break e;case Zv:i=11;break e;case Jv:i=14;break e;case zn:i=16,o=null;break e}throw Error(E(130,e==null?e:typeof e,""))}return t=Yr(i,r,t,n),t.elementType=e,t.type=o,t.lanes=a,t}function Wa(e,t,r,o){return e=Yr(7,e,o,t),e.lanes=r,e}function Op(e,t,r,o){return e=Yr(22,e,o,t),e.elementType=FP,e.lanes=r,e.stateNode={isHidden:!1},e}function ev(e,t,r){return e=Yr(6,e,null,t),e.lanes=r,e}function tv(e,t,r){return t=Yr(4,e.children!==null?e.children:[],e.key,t),t.lanes=r,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function $5(e,t,r,o,n){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=NI(0),this.expirationTimes=NI(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=NI(0),this.identifierPrefix=o,this.onRecoverableError=n,this.mutableSourceEagerHydrationData=null}function Ry(e,t,r,o,n,a,i,s,l){return e=new $5(e,t,r,s,l),t===1?(t=1,a===!0&&(t|=8)):t=0,a=Yr(3,null,null,t),e.current=a,a.stateNode=e,a.memoizedState={element:o,isDehydrated:r,cache:null,transitions:null,pendingSuspenseBoundaries:null},gy(a),e}function U5(e,t,r){var o=3{"use strict";function CT(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(CT)}catch(e){console.error(e)}}CT(),PT.exports=wT()});var As=gt((mu,Es)=>{var iz=200,UT="__lodash_hash_undefined__",sz=800,lz=16,qT=9007199254740991,GT="[object Arguments]",fz="[object Array]",uz="[object AsyncFunction]",cz="[object Boolean]",dz="[object Date]",pz="[object Error]",YT="[object Function]",mz="[object GeneratorFunction]",xz="[object Map]",hz="[object Number]",gz="[object Null]",XT="[object Object]",Iz="[object Proxy]",vz="[object RegExp]",yz="[object Set]",bz="[object String]",Sz="[object Undefined]",wz="[object WeakMap]",Cz="[object ArrayBuffer]",Pz="[object DataView]",kz="[object Float32Array]",Tz="[object Float64Array]",Dz="[object Int8Array]",Fz="[object Int16Array]",Ez="[object Int32Array]",Oz="[object Uint8Array]",Bz="[object Uint8ClampedArray]",Az="[object Uint16Array]",Rz="[object Uint32Array]",Mz=/[\\^$.*+?()[\]{}|]/g,Lz=/^\[object .+?Constructor\]$/,_z=/^(?:0|[1-9]\d*)$/,Ae={};Ae[kz]=Ae[Tz]=Ae[Dz]=Ae[Fz]=Ae[Ez]=Ae[Oz]=Ae[Bz]=Ae[Az]=Ae[Rz]=!0;Ae[GT]=Ae[fz]=Ae[Cz]=Ae[cz]=Ae[Pz]=Ae[dz]=Ae[pz]=Ae[YT]=Ae[xz]=Ae[hz]=Ae[XT]=Ae[vz]=Ae[yz]=Ae[bz]=Ae[wz]=!1;var KT=typeof global=="object"&&global&&global.Object===Object&&global,Nz=typeof self=="object"&&self&&self.Object===Object&&self,gu=KT||Nz||Function("return this")(),QT=typeof mu=="object"&&mu&&!mu.nodeType&&mu,xu=QT&&typeof Es=="object"&&Es&&!Es.nodeType&&Es,ZT=xu&&xu.exports===QT,Wy=ZT&&KT.process,LT=function(){try{var e=xu&&xu.require&&xu.require("util").types;return e||Wy&&Wy.binding&&Wy.binding("util")}catch{}}(),_T=LT&<.isTypedArray;function zz(e,t,r){switch(r.length){case 0:return e.call(t);case 1:return e.call(t,r[0]);case 2:return e.call(t,r[0],r[1]);case 3:return e.call(t,r[0],r[1],r[2])}return e.apply(t,r)}function Vz(e,t){for(var r=-1,o=Array(e);++r-1}function lV(e,t){var r=this.__data__,o=Up(r,e);return o<0?(++this.size,r.push([e,t])):r[o][1]=t,this}cn.prototype.clear=nV;cn.prototype.delete=aV;cn.prototype.get=iV;cn.prototype.has=sV;cn.prototype.set=lV;function Os(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t1?r[n-1]:void 0,i=n>2?r[2]:void 0;for(a=e.length>3&&typeof a=="function"?(n--,a):void 0,i&&_V(r[0],r[1],i)&&(a=n<3?void 0:a,n=1),t=Object(t);++o-1&&e%1==0&&e0){if(++t>=sz)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}function UV(e){if(e!=null){try{return $p.call(e)}catch{}try{return e+""}catch{}}return""}function Yp(e,t){return e===t||e!==e&&t!==t}var Gy=$T(function(){return arguments}())?$T:function(e){return Iu(e)&&un.call(e,"callee")&&!Yz.call(e,"callee")},Yy=Array.isArray;function Qy(e){return e!=null&&iD(e.length)&&!Zy(e)}function qV(e){return Iu(e)&&Qy(e)}var aD=Kz||QV;function Zy(e){if(!ti(e))return!1;var t=qp(e);return t==YT||t==mz||t==uz||t==Iz}function iD(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=qT}function ti(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}function Iu(e){return e!=null&&typeof e=="object"}function GV(e){if(!Iu(e)||qp(e)!=XT)return!1;var t=eD(e);if(t===null)return!0;var r=un.call(t,"constructor")&&t.constructor;return typeof r=="function"&&r instanceof r&&$p.call(r)==qz}var sD=_T?Hz(_T):wV;function YV(e){return BV(e,lD(e))}function lD(e){return Qy(e)?vV(e,!0):CV(e)}var XV=AV(function(e,t,r,o){rD(e,t,r,o)});function KV(e){return function(){return e}}function fD(e){return e}function QV(){return!1}Es.exports=XV});var BE=gt((Nee,OE)=>{var Z6=typeof Element<"u",J6=typeof Map=="function",e$=typeof Set=="function",t$=typeof ArrayBuffer=="function"&&!!ArrayBuffer.isView;function Tm(e,t){if(e===t)return!0;if(e&&t&&typeof e=="object"&&typeof t=="object"){if(e.constructor!==t.constructor)return!1;var r,o,n;if(Array.isArray(e)){if(r=e.length,r!=t.length)return!1;for(o=r;o--!==0;)if(!Tm(e[o],t[o]))return!1;return!0}var a;if(J6&&e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(a=e.entries();!(o=a.next()).done;)if(!t.has(o.value[0]))return!1;for(a=e.entries();!(o=a.next()).done;)if(!Tm(o.value[1],t.get(o.value[0])))return!1;return!0}if(e$&&e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(a=e.entries();!(o=a.next()).done;)if(!t.has(o.value[0]))return!1;return!0}if(t$&&ArrayBuffer.isView(e)&&ArrayBuffer.isView(t)){if(r=e.length,r!=t.length)return!1;for(o=r;o--!==0;)if(e[o]!==t[o])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(n=Object.keys(e),r=n.length,r!==Object.keys(t).length)return!1;for(o=r;o--!==0;)if(!Object.prototype.hasOwnProperty.call(t,n[o]))return!1;if(Z6&&e instanceof Element)return!1;for(o=r;o--!==0;)if(!((n[o]==="_owner"||n[o]==="__v"||n[o]==="__o")&&e.$$typeof)&&!Tm(e[n[o]],t[n[o]]))return!1;return!0}return e!==e&&t!==t}OE.exports=function(t,r){try{return Tm(t,r)}catch(o){if((o.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw o}}});var _E={};U_(_E,{default:()=>mb});var n$,mb,Dm=rC(()=>{Jc();n$=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,mb=Zc(function(e){return n$.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91})});var AR=gt((Sge,BR)=>{"use strict";var Qq="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";BR.exports=Qq});var _R=gt((wge,LR)=>{"use strict";var Zq=AR();function RR(){}function MR(){}MR.resetWarningCache=RR;LR.exports=function(){function e(o,n,a,i,s,l){if(l!==Zq){var f=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw f.name="Invariant Violation",f}}e.isRequired=e;function t(){return e}var r={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:MR,resetWarningCache:RR};return r.PropTypes=r,r}});var zR=gt((kge,NR)=>{NR.exports=_R()();var Cge,Pge});var A_=gt((Qg,Zg)=>{(function(){"use strict";var e=typeof self=="object"&&self.self===self&&self||typeof global=="object"&&global.global===global&&global||this,t=9007199254740991;function r(b){return!(typeof b!="number"||b!=b||b===1/0||b===-1/0)}function o(b){return typeof b=="number"&&Math.abs(b)<=t}var n=/(hundred|thousand|(m|b|tr|quadr)illion)$/,a=/teen$/,i=/y$/,s=/(zero|one|two|three|four|five|six|seven|eight|nine|ten|eleven|twelve)$/,l={zero:"zeroth",one:"first",two:"second",three:"third",four:"fourth",five:"fifth",six:"sixth",seven:"seventh",eight:"eighth",nine:"ninth",ten:"tenth",eleven:"eleventh",twelve:"twelfth"};function f(b){return n.test(b)||a.test(b)?b+"th":i.test(b)?b.replace(i,"ieth"):s.test(b)?b.replace(s,u):b}function u(b,k){return l[k]}var c=10,d=100,m=1e3,I=1e6,h=1e9,v=1e12,x=1e15,p=9007199254740992,g=["zero","one","two","three","four","five","six","seven","eight","nine","ten","eleven","twelve","thirteen","fourteen","fifteen","sixteen","seventeen","eighteen","nineteen"],y=["zero","ten","twenty","thirty","forty","fifty","sixty","seventy","eighty","ninety"];function w(b,k){var D,T=parseInt(b,10);if(!r(T))throw new TypeError("Not a finite number: "+b+" ("+typeof b+")");if(!o(T))throw new RangeError("Input is not a safe number, it\u2019s either too large or too small.");return D=function O(_){var $,le,q=arguments[1];return _===0?q?q.join(" ").replace(/,$/,""):"zero":(q||(q=[]),_<0&&(q.push("minus"),_=Math.abs(_)),_<20?($=0,le=g[_]):_{"use strict";var L_=Ny();Kw.createRoot=L_.createRoot,Kw.hydrateRoot=L_.hydrateRoot;var VBe});var Vc=C(F(),1);var Fo=C(F()),Sf=C(F());function l2(e){if(e.sheet)return e.sheet;for(var t=0;t0?Ye(Gi,--Qt):0,Ui--,Je===10&&(Ui=1,Yc--),Je}function Zt(){return Je=Qt2||qi(Je)>3?"":" "}function TC(e,t){for(;--t&&Zt()&&!(Je<48||Je>102||Je>57&&Je<65||Je>70&&Je<97););return Xi(e,gf()+(t<6&&Wr()==32&&Zt()==32))}function lI(e){for(;Zt();)switch(Je){case e:return Qt;case 34:case 39:e!==34&&e!==39&&lI(Je);break;case 40:e===41&&lI(e);break;case 92:Zt();break}return Qt}function DC(e,t){for(;Zt()&&e+Je!==57;)if(e+Je===84&&Wr()===47)break;return"/*"+Xi(t,Qt-1)+"*"+Aa(e===47?e:Zt())}function FC(e){for(;!qi(Wr());)Zt();return Xi(e,Qt)}function BC(e){return Kc(Qc("",null,null,null,[""],e=Xc(e),0,[0],e))}function Qc(e,t,r,o,n,a,i,s,l){for(var f=0,u=0,c=i,d=0,m=0,I=0,h=1,v=1,x=1,p=0,g="",y=n,w=a,P=o,b=g;v;)switch(I=p,p=Zt()){case 40:if(I!=108&&Ye(b,c-1)==58){xf(b+=ne(Ki(p),"&","&\f"),"&\f")!=-1&&(x=-1);break}case 34:case 39:case 91:b+=Ki(p);break;case 9:case 10:case 13:case 32:b+=kC(I);break;case 92:b+=TC(gf()-1,7);continue;case 47:switch(Wr()){case 42:case 47:$i(u2(DC(Zt(),gf()),t,r),l);break;default:b+="/"}break;case 123*h:s[f++]=Kt(b)*x;case 125*h:case 59:case 0:switch(p){case 0:case 125:v=0;case 59+u:x==-1&&(b=ne(b,/\f/g,"")),m>0&&Kt(b)-c&&$i(m>32?OC(b+";",o,r,c-1):OC(ne(b," ","")+";",o,r,c-2),l);break;case 59:b+=";";default:if($i(P=EC(b,t,r,f,u,n,s,g,y=[],w=[],c),a),p===123)if(u===0)Qc(b,t,P,P,y,a,c,s,w);else switch(d===99&&Ye(b,3)===110?100:d){case 100:case 108:case 109:case 115:Qc(e,P,P,o&&$i(EC(e,P,P,0,0,n,s,g,n,y=[],c),w),n,w,c,s,o?y:w);break;default:Qc(b,P,P,P,[""],w,0,s,w)}}f=u=m=0,h=x=1,g=b="",c=i;break;case 58:c=1+Kt(b),m=I;default:if(h<1){if(p==123)--h;else if(p==125&&h++==0&&PC()==125)continue}switch(b+=Aa(p),p*h){case 38:x=u>0?1:(b+="\f",-1);break;case 44:s[f++]=(Kt(b)-1)*x,x=1;break;case 64:Wr()===45&&(b+=Ki(Zt())),d=Wr(),u=c=Kt(g=b+=FC(gf())),p++;break;case 45:I===45&&Kt(b)==2&&(h=0)}}return a}function EC(e,t,r,o,n,a,i,s,l,f,u){for(var c=n-1,d=n===0?a:[""],m=Wi(d),I=0,h=0,v=0;I0?d[x]+" "+p:ne(p,/&\f/g,d[x])))&&(l[v++]=g);return hf(e,t,r,n===0?Hi:s,l,f,u)}function u2(e,t,r){return hf(e,t,r,Uc,Aa(CC()),Mn(e,2,-2),0)}function OC(e,t,r,o){return hf(e,t,r,ji,Mn(e,0,o),Mn(e,o+1,-1),o)}function Ra(e,t){for(var r="",o=Wi(e),n=0;n6)switch(Ye(e,t+1)){case 109:if(Ye(e,t+4)!==45)break;case 102:return ne(e,/(.+:)(.+)-([^]+)/,"$1"+fe+"$2-$3$1"+mf+(Ye(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~xf(e,"stretch")?_C(ne(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(Ye(e,t+1)!==115)break;case 6444:switch(Ye(e,Kt(e)-3-(~xf(e,"!important")&&10))){case 107:return ne(e,":",":"+fe)+e;case 101:return ne(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+fe+(Ye(e,14)===45?"inline-":"")+"box$3$1"+fe+"$2$3$1"+Tt+"$2box$3")+e}break;case 5936:switch(Ye(e,t+11)){case 114:return fe+e+Tt+ne(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return fe+e+Tt+ne(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return fe+e+Tt+ne(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return fe+e+Tt+e+e}return e}var h2=function(t,r,o,n){if(t.length>-1&&!t.return)switch(t.type){case ji:t.return=_C(t.value,t.length);break;case qc:return Ra([Yi(t,{value:ne(t.value,"@","@"+fe)})],n);case Hi:if(t.length)return sI(t.props,function(a){switch(iI(a,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Ra([Yi(t,{props:[ne(a,/:(read-\w+)/,":"+mf+"$1")]})],n);case"::placeholder":return Ra([Yi(t,{props:[ne(a,/:(plac\w+)/,":"+fe+"input-$1")]}),Yi(t,{props:[ne(a,/:(plac\w+)/,":"+mf+"$1")]}),Yi(t,{props:[ne(a,/:(plac\w+)/,Tt+"input-$1")]})],n)}return""})}},g2=[h2],uI=function(t){var r=t.key;if(r==="css"){var o=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(o,function(h){var v=h.getAttribute("data-emotion");v.indexOf(" ")!==-1&&(document.head.appendChild(h),h.setAttribute("data-s",""))})}var n=t.stylisPlugins||g2,a={},i,s=[];i=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+r+' "]'),function(h){for(var v=h.getAttribute("data-emotion").split(" "),x=1;x=4;++o,n-=4)r=e.charCodeAt(o)&255|(e.charCodeAt(++o)&255)<<8|(e.charCodeAt(++o)&255)<<16|(e.charCodeAt(++o)&255)<<24,r=(r&65535)*1540483477+((r>>>16)*59797<<16),r^=r>>>24,t=(r&65535)*1540483477+((r>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(n){case 3:t^=(e.charCodeAt(o+2)&255)<<16;case 2:t^=(e.charCodeAt(o+1)&255)<<8;case 1:t^=e.charCodeAt(o)&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 KC={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};Jc();var O2=/[A-Z]|^ms/g,B2=/_EMO_([^_]+?)_([^]*?)_EMO_/g,e1=function(t){return t.charCodeAt(1)===45},QC=function(t){return t!=null&&typeof t!="boolean"},hI=Zc(function(e){return e1(e)?e:e.replace(O2,"-$&").toLowerCase()}),ZC=function(t,r){switch(t){case"animation":case"animationName":if(typeof r=="string")return r.replace(B2,function(o,n,a){return Do={name:n,styles:a,next:Do},n})}return KC[t]!==1&&!e1(t)&&typeof r=="number"&&r!==0?r+"px":r};function yf(e,t,r){if(r==null)return"";if(r.__emotion_styles!==void 0)return r;switch(typeof r){case"boolean":return"";case"object":{if(r.anim===1)return Do={name:r.name,styles:r.styles,next:Do},r.name;if(r.styles!==void 0){var o=r.next;if(o!==void 0)for(;o!==void 0;)Do={name:o.name,styles:o.styles,next:Do},o=o.next;var n=r.styles+";";return n}return A2(e,t,r)}case"function":{if(e!==void 0){var a=Do,i=r(e);return Do=a,yf(e,t,i)}break}case"string":if(0)var s,l;break}if(t==null)return r;var f=t[r];return f!==void 0?f:r}function A2(e,t,r){var o="";if(Array.isArray(r))for(var n=0;n(0,bI.jsx)(Ji,{styles:i1}),wI=({scope:e=""})=>(0,bI.jsx)(Ji,{styles:a1` 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; } ${i1} `});var md=C(F(),1);function q2(e,t){return`${e} returned \`undefined\`. Seems you forgot to wrap component within ${t}`}function Dt(e={}){let{name:t,strict:r=!0,hookName:o="useContext",providerName:n="Provider",errorMessage:a,defaultValue:i}=e,s=(0,md.createContext)(i);s.displayName=t;function l(){var f;let u=(0,md.useContext)(s);if(!u&&r){let c=new Error(a??q2(o,n));throw c.name="ContextError",(f=Error.captureStackTrace)==null||f.call(Error,c,l),c}return u}return[s.Provider,l,s]}var s1=C(L(),1),[G2,CI]=Dt({strict:!1,name:"PortalManagerContext"});function xd(e){let{children:t,zIndex:r}=e;return(0,s1.jsx)(G2,{value:{zIndex:r},children:t})}xd.displayName="PortalManager";var hd=C(F(),1),Ln=globalThis?.document?hd.useLayoutEffect:hd.useEffect;var zy=C(Ny(),1),Lo=C(F(),1),na=C(L(),1),[kT,K5]=Dt({strict:!1,name:"PortalContext"}),Vy="chakra-portal",Q5=".chakra-portal",Z5=e=>(0,na.jsx)("div",{className:"chakra-portal-zIndex",style:{position:"absolute",zIndex:e.zIndex,top:0,left:0,right:0},children:e.children}),J5=e=>{let{appendToParentPortal:t,children:r}=e,[o,n]=(0,Lo.useState)(null),a=(0,Lo.useRef)(null),[,i]=(0,Lo.useState)({});(0,Lo.useEffect)(()=>i({}),[]);let s=K5(),l=CI();Ln(()=>{if(!o)return;let u=o.ownerDocument,c=t?s??u.body:u.body;if(!c)return;a.current=u.createElement("div"),a.current.className=Vy,c.appendChild(a.current),i({});let d=a.current;return()=>{c.contains(d)&&c.removeChild(d)}},[o]);let f=l?.zIndex?(0,na.jsx)(Z5,{zIndex:l?.zIndex,children:r}):r;return a.current?(0,zy.createPortal)((0,na.jsx)(kT,{value:a.current,children:f}),a.current):(0,na.jsx)("span",{ref:u=>{u&&n(u)}})},ez=e=>{let{children:t,containerRef:r,appendToParentPortal:o}=e,n=r.current,a=n??(typeof window<"u"?document.body:void 0),i=(0,Lo.useMemo)(()=>{let l=n?.ownerDocument.createElement("div");return l&&(l.className=Vy),l},[n]),[,s]=(0,Lo.useState)({});return Ln(()=>s({}),[]),Ln(()=>{if(!(!i||!a))return a.appendChild(i),()=>{a.removeChild(i)}},[i,a]),a&&i?(0,zy.createPortal)((0,na.jsx)(kT,{value:o?i:null,children:t}),i):null};function _o(e){let t={appendToParentPortal:!0,...e},{containerRef:r,...o}=t;return r?(0,na.jsx)(ez,{containerRef:r,...o}):(0,na.jsx)(J5,{...o})}_o.className=Vy;_o.selector=Q5;_o.displayName="Portal";var TT=C(F(),1);function fn(){let e=(0,TT.useContext)(Qo);if(!e)throw Error("useTheme: `theme` is undefined. Seems you forgot to wrap your app in `` or ``");return e}var Lp=C(F(),1),Qa=(0,Lp.createContext)({});Qa.displayName="ColorModeContext";function Za(){let e=(0,Lp.useContext)(Qa);if(e===void 0)throw new Error("useColorMode must be used within a ColorModeProvider");return e}var _p={light:"chakra-ui-light",dark:"chakra-ui-dark"};function DT(e={}){let{preventTransition:t=!0}=e,r={setDataset:o=>{let n=t?r.preventTransition():void 0;document.documentElement.dataset.theme=o,document.documentElement.style.colorScheme=o,n?.()},setClassName(o){document.body.classList.add(o?_p.dark:_p.light),document.body.classList.remove(o?_p.light:_p.dark)},query(){return window.matchMedia("(prefers-color-scheme: dark)")},getSystemTheme(o){var n;return((n=r.query().matches)!=null?n:o==="dark")?"dark":"light"},addListener(o){let n=r.query(),a=i=>{o(i.matches?"dark":"light")};return typeof n.addListener=="function"?n.addListener(a):n.addEventListener("change",a),()=>{typeof n.removeListener=="function"?n.removeListener(a):n.removeEventListener("change",a)}},preventTransition(){let o=document.createElement("style");return o.appendChild(document.createTextNode("*{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}")),document.head.appendChild(o),()=>{window.getComputedStyle(document.body),requestAnimationFrame(()=>{requestAnimationFrame(()=>{document.head.removeChild(o)})})}}};return r}var ET="chakra-ui-color-mode";function tz(e){return{ssr:!1,type:"localStorage",get(t){if(!globalThis?.document)return t;let r;try{r=localStorage.getItem(e)||t}catch{}return r||t},set(t){try{localStorage.setItem(e,t)}catch{}}}}var OT=tz(ET);function FT(e,t){let r=e.match(new RegExp(`(^| )${t}=([^;]+)`));return r?.[2]}function rz(e,t){return{ssr:!!t,type:"cookie",get(r){return t?FT(t,e):globalThis?.document&&FT(document.cookie,e)||r},set(r){document.cookie=`${e}=${r}; max-age=31536000; path=/`}}}var aX=rz(ET);var hr=C(F(),1),Np=C(L(),1),Fs=()=>{};function BT(e,t){return e.type==="cookie"&&e.ssr?e.get(t):t}function zp(e){let{value:t,children:r,options:{useSystemColorMode:o,initialColorMode:n,disableTransitionOnChange:a}={},colorModeManager:i=OT}=e,s=n==="dark"?"dark":"light",[l,f]=(0,hr.useState)(()=>BT(i,s)),[u,c]=(0,hr.useState)(()=>BT(i)),{getSystemTheme:d,setClassName:m,setDataset:I,addListener:h}=(0,hr.useMemo)(()=>DT({preventTransition:a}),[a]),v=n==="system"&&!l?u:l,x=(0,hr.useCallback)(y=>{let w=y==="system"?d():y;f(w),m(w==="dark"),I(w),i.set(w)},[i,d,m,I]);Ln(()=>{n==="system"&&c(d())},[]),(0,hr.useEffect)(()=>{let y=i.get();if(y){x(y);return}if(n==="system"){x("system");return}x(s)},[i,s,n,x]);let p=(0,hr.useCallback)(()=>{x(v==="dark"?"light":"dark")},[v,x]);(0,hr.useEffect)(()=>{if(o)return h(x)},[o,h,x]);let g=(0,hr.useMemo)(()=>({colorMode:t??v,toggleColorMode:t?Fs:p,setColorMode:t?Fs:x,forced:t!==void 0}),[v,p,x,t]);return(0,Np.jsx)(Qa.Provider,{value:g,children:r})}zp.displayName="ColorModeProvider";function AT(e){let t=(0,hr.useMemo)(()=>({colorMode:"dark",toggleColorMode:Fs,setColorMode:Fs,forced:!0}),[]);return(0,Np.jsx)(Qa.Provider,{value:t,...e})}AT.displayName="DarkMode";function RT(e){let t=(0,hr.useMemo)(()=>({colorMode:"light",toggleColorMode:Fs,setColorMode:Fs,forced:!0}),[]);return(0,Np.jsx)(Qa.Provider,{value:t,...e})}RT.displayName="LightMode";function Hy(){let e=Za(),t=fn();return{...e,theme:t}}function oz(e,t,r){var o,n;if(t==null)return t;let a=i=>{var s,l;return(l=(s=e.__breakpoints)==null?void 0:s.asArray)==null?void 0:l[i]};return(n=(o=a(t))!=null?o:a(r))!=null?n:r}function nz(e,t,r){var o,n;if(t==null)return t;let a=i=>{var s,l;return(l=(s=e.__cssMap)==null?void 0:s[i])==null?void 0:l.value};return(n=(o=a(t))!=null?o:a(r))!=null?n:r}function jy(e,t,r){let o=Array.isArray(t)?t:[t],n=Array.isArray(r)?r:[r];return a=>{let i=n.filter(Boolean),s=o.map((l,f)=>{var u,c;if(e==="breakpoints")return oz(a,l,(u=i[f])!=null?u:l);let d=`${e}.${l}`;return nz(a,d,(c=i[f])!=null?c:l)});return Array.isArray(t)?s:s[0]}}var G=(...e)=>e.filter(Boolean).join(" ");function tt(e){let t=typeof e;return e!=null&&(t==="object"||t==="function")&&!Array.isArray(e)}function gr(e,...t){return az(e)?e(...t):e}var az=e=>typeof e=="function",Ir=e=>e?"":void 0,Vp=e=>e?!0:void 0;function rt(...e){return function(r){e.some(o=>(o?.(r),r?.defaultPrevented))}}function MT(...e){return function(r){e.forEach(o=>{o?.(r)})}}var kD=C(As(),1);var yu=C(As(),1),DD=C(As(),1);var Zp=C(As(),1),ZV=e=>/!(important)?$/.test(e),uD=e=>typeof e=="string"?e.replace(/!(important)?$/,"").trim():e,JV=(e,t)=>r=>{let o=String(t),n=ZV(o),a=uD(o),i=e?`${e}.${a}`:a,s=tt(r.__cssMap)&&i in r.__cssMap?r.__cssMap[i].varRef:t;return s=uD(s),n?`${s} !important`:s};function i0(e){let{scale:t,transform:r,compose:o}=e;return(a,i)=>{var s;let l=JV(t,a)(i),f=(s=r?.(l,i))!=null?s:l;return o&&(f=o(f,i)),f}}var Xp=(...e)=>t=>e.reduce((r,o)=>o(r),t);function Zr(e,t){return r=>{let o={property:r,scale:e};return o.transform=i0({scale:e,transform:t}),o}}var e3=({rtl:e,ltr:t})=>r=>r.direction==="rtl"?e:t;function t3(e){let{property:t,scale:r,transform:o}=e;return{scale:r,property:e3(t),transform:r?i0({scale:r,compose:o}):o}}var vD=["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 r3(){return["translateX(var(--chakra-translate-x, 0))","translateY(var(--chakra-translate-y, 0))",...vD].join(" ")}function o3(){return["translate3d(var(--chakra-translate-x, 0), var(--chakra-translate-y, 0), 0)",...vD].join(" ")}var n3={"--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(" ")},a3={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 i3(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 s3={"row-reverse":{space:"--chakra-space-x-reverse",divide:"--chakra-divide-x-reverse"},"column-reverse":{space:"--chakra-space-y-reverse",divide:"--chakra-divide-y-reverse"}},e0={"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"},l3=new Set(Object.values(e0)),t0=new Set(["none","-moz-initial","inherit","initial","revert","unset"]),f3=e=>e.trim();function u3(e,t){if(e==null||t0.has(e))return e;if(!(r0(e)||t0.has(e)))return`url('${e}')`;let n=/(^[a-z-A-Z]+)\((.*)\)/g.exec(e),a=n?.[1],i=n?.[2];if(!a||!i)return e;let s=a.includes("-gradient")?a:`${a}-gradient`,[l,...f]=i.split(",").map(f3).filter(Boolean);if(f?.length===0)return e;let u=l in e0?e0[l]:l;f.unshift(u);let c=f.map(d=>{if(l3.has(d))return d;let m=d.indexOf(" "),[I,h]=m!==-1?[d.substr(0,m),d.substr(m+1)]:[d],v=r0(h)?h:h&&h.split(" "),x=`colors.${I}`,p=x in t.__cssMap?t.__cssMap[x].varRef:I;return v?[p,...Array.isArray(v)?v:[v]].join(" "):p});return`${s}(${c.join(", ")})`}var r0=e=>typeof e=="string"&&e.includes("(")&&e.includes(")"),c3=(e,t)=>u3(e,t??{});function d3(e){return/^var\(--.+\)$/.test(e)}var p3=e=>{let t=parseFloat(e.toString()),r=e.toString().replace(String(t),"");return{unitless:!r,value:t,unit:r}},No=e=>t=>`${e}(${t})`,J={filter(e){return e!=="auto"?e:n3},backdropFilter(e){return e!=="auto"?e:a3},ring(e){return i3(J.px(e))},bgClip(e){return e==="text"?{color:"transparent",backgroundClip:"text"}:{backgroundClip:e}},transform(e){return e==="auto"?r3():e==="auto-gpu"?o3():e},vh(e){return e==="$100vh"?"var(--chakra-vh)":e},px(e){if(e==null)return e;let{unitless:t}=p3(e);return t||typeof e=="number"?`${e}px`:e},fraction(e){return typeof e!="number"||e>1?e:`${e*100}%`},float(e,t){let r={left:"right",right:"left"};return t.direction==="rtl"?r[e]:e},degree(e){if(d3(e)||e==null)return e;let t=typeof e=="string"&&!e.endsWith("deg");return typeof e=="number"||t?`${e}deg`:e},gradient:c3,blur:No("blur"),opacity:No("opacity"),brightness:No("brightness"),contrast:No("contrast"),dropShadow:No("drop-shadow"),grayscale:No("grayscale"),hueRotate:e=>No("hue-rotate")(J.degree(e)),invert:No("invert"),saturate:No("saturate"),sepia:No("sepia"),bgImage(e){return e==null||r0(e)||t0.has(e)?e:`url(${e})`},outline(e){let t=String(e)==="0"||String(e)==="none";return e!==null&&t?{outline:"2px solid transparent",outlineOffset:"2px"}:{outline:e}},flexDirection(e){var t;let{space:r,divide:o}=(t=s3[e])!=null?t:{},n={flexDirection:e};return r&&(n[r]=1),o&&(n[o]=1),n}},S={borderWidths:Zr("borderWidths"),borderStyles:Zr("borderStyles"),colors:Zr("colors"),borders:Zr("borders"),gradients:Zr("gradients",J.gradient),radii:Zr("radii",J.px),space:Zr("space",Xp(J.vh,J.px)),spaceT:Zr("space",Xp(J.vh,J.px)),degreeT(e){return{property:e,transform:J.degree}},prop(e,t,r){return{property:e,scale:t,...t&&{transform:i0({scale:t,transform:r})}}},propT(e,t){return{property:e,transform:t}},sizes:Zr("sizes",Xp(J.vh,J.px)),sizesT:Zr("sizes",Xp(J.vh,J.fraction)),shadows:Zr("shadows"),logical:t3,blur:Zr("blur",J.blur)},Kp={background:S.colors("background"),backgroundColor:S.colors("backgroundColor"),backgroundImage:S.gradients("backgroundImage"),backgroundSize:!0,backgroundPosition:!0,backgroundRepeat:!0,backgroundAttachment:!0,backgroundClip:{transform:J.bgClip},bgSize:S.prop("backgroundSize"),bgPosition:S.prop("backgroundPosition"),bg:S.colors("background"),bgColor:S.colors("backgroundColor"),bgPos:S.prop("backgroundPosition"),bgRepeat:S.prop("backgroundRepeat"),bgAttachment:S.prop("backgroundAttachment"),bgGradient:S.gradients("backgroundImage"),bgClip:{transform:J.bgClip}};Object.assign(Kp,{bgImage:Kp.backgroundImage,bgImg:Kp.backgroundImage});var ce={border:S.borders("border"),borderWidth:S.borderWidths("borderWidth"),borderStyle:S.borderStyles("borderStyle"),borderColor:S.colors("borderColor"),borderRadius:S.radii("borderRadius"),borderTop:S.borders("borderTop"),borderBlockStart:S.borders("borderBlockStart"),borderTopLeftRadius:S.radii("borderTopLeftRadius"),borderStartStartRadius:S.logical({scale:"radii",property:{ltr:"borderTopLeftRadius",rtl:"borderTopRightRadius"}}),borderEndStartRadius:S.logical({scale:"radii",property:{ltr:"borderBottomLeftRadius",rtl:"borderBottomRightRadius"}}),borderTopRightRadius:S.radii("borderTopRightRadius"),borderStartEndRadius:S.logical({scale:"radii",property:{ltr:"borderTopRightRadius",rtl:"borderTopLeftRadius"}}),borderEndEndRadius:S.logical({scale:"radii",property:{ltr:"borderBottomRightRadius",rtl:"borderBottomLeftRadius"}}),borderRight:S.borders("borderRight"),borderInlineEnd:S.borders("borderInlineEnd"),borderBottom:S.borders("borderBottom"),borderBlockEnd:S.borders("borderBlockEnd"),borderBottomLeftRadius:S.radii("borderBottomLeftRadius"),borderBottomRightRadius:S.radii("borderBottomRightRadius"),borderLeft:S.borders("borderLeft"),borderInlineStart:{property:"borderInlineStart",scale:"borders"},borderInlineStartRadius:S.logical({scale:"radii",property:{ltr:["borderTopLeftRadius","borderBottomLeftRadius"],rtl:["borderTopRightRadius","borderBottomRightRadius"]}}),borderInlineEndRadius:S.logical({scale:"radii",property:{ltr:["borderTopRightRadius","borderBottomRightRadius"],rtl:["borderTopLeftRadius","borderBottomLeftRadius"]}}),borderX:S.borders(["borderLeft","borderRight"]),borderInline:S.borders("borderInline"),borderY:S.borders(["borderTop","borderBottom"]),borderBlock:S.borders("borderBlock"),borderTopWidth:S.borderWidths("borderTopWidth"),borderBlockStartWidth:S.borderWidths("borderBlockStartWidth"),borderTopColor:S.colors("borderTopColor"),borderBlockStartColor:S.colors("borderBlockStartColor"),borderTopStyle:S.borderStyles("borderTopStyle"),borderBlockStartStyle:S.borderStyles("borderBlockStartStyle"),borderBottomWidth:S.borderWidths("borderBottomWidth"),borderBlockEndWidth:S.borderWidths("borderBlockEndWidth"),borderBottomColor:S.colors("borderBottomColor"),borderBlockEndColor:S.colors("borderBlockEndColor"),borderBottomStyle:S.borderStyles("borderBottomStyle"),borderBlockEndStyle:S.borderStyles("borderBlockEndStyle"),borderLeftWidth:S.borderWidths("borderLeftWidth"),borderInlineStartWidth:S.borderWidths("borderInlineStartWidth"),borderLeftColor:S.colors("borderLeftColor"),borderInlineStartColor:S.colors("borderInlineStartColor"),borderLeftStyle:S.borderStyles("borderLeftStyle"),borderInlineStartStyle:S.borderStyles("borderInlineStartStyle"),borderRightWidth:S.borderWidths("borderRightWidth"),borderInlineEndWidth:S.borderWidths("borderInlineEndWidth"),borderRightColor:S.colors("borderRightColor"),borderInlineEndColor:S.colors("borderInlineEndColor"),borderRightStyle:S.borderStyles("borderRightStyle"),borderInlineEndStyle:S.borderStyles("borderInlineEndStyle"),borderTopRadius:S.radii(["borderTopLeftRadius","borderTopRightRadius"]),borderBottomRadius:S.radii(["borderBottomLeftRadius","borderBottomRightRadius"]),borderLeftRadius:S.radii(["borderTopLeftRadius","borderBottomLeftRadius"]),borderRightRadius:S.radii(["borderTopRightRadius","borderBottomRightRadius"])};Object.assign(ce,{rounded:ce.borderRadius,roundedTop:ce.borderTopRadius,roundedTopLeft:ce.borderTopLeftRadius,roundedTopRight:ce.borderTopRightRadius,roundedTopStart:ce.borderStartStartRadius,roundedTopEnd:ce.borderStartEndRadius,roundedBottom:ce.borderBottomRadius,roundedBottomLeft:ce.borderBottomLeftRadius,roundedBottomRight:ce.borderBottomRightRadius,roundedBottomStart:ce.borderEndStartRadius,roundedBottomEnd:ce.borderEndEndRadius,roundedLeft:ce.borderLeftRadius,roundedRight:ce.borderRightRadius,roundedStart:ce.borderInlineStartRadius,roundedEnd:ce.borderInlineEndRadius,borderStart:ce.borderInlineStart,borderEnd:ce.borderInlineEnd,borderTopStartRadius:ce.borderStartStartRadius,borderTopEndRadius:ce.borderStartEndRadius,borderBottomStartRadius:ce.borderEndStartRadius,borderBottomEndRadius:ce.borderEndEndRadius,borderStartRadius:ce.borderInlineStartRadius,borderEndRadius:ce.borderInlineEndRadius,borderStartWidth:ce.borderInlineStartWidth,borderEndWidth:ce.borderInlineEndWidth,borderStartColor:ce.borderInlineStartColor,borderEndColor:ce.borderInlineEndColor,borderStartStyle:ce.borderInlineStartStyle,borderEndStyle:ce.borderInlineEndStyle});var m3={color:S.colors("color"),textColor:S.colors("color"),fill:S.colors("fill"),stroke:S.colors("stroke")},o0={boxShadow:S.shadows("boxShadow"),mixBlendMode:!0,blendMode:S.prop("mixBlendMode"),backgroundBlendMode:!0,bgBlendMode:S.prop("backgroundBlendMode"),opacity:!0};Object.assign(o0,{shadow:o0.boxShadow});var x3={filter:{transform:J.filter},blur:S.blur("--chakra-blur"),brightness:S.propT("--chakra-brightness",J.brightness),contrast:S.propT("--chakra-contrast",J.contrast),hueRotate:S.propT("--chakra-hue-rotate",J.hueRotate),invert:S.propT("--chakra-invert",J.invert),saturate:S.propT("--chakra-saturate",J.saturate),dropShadow:S.propT("--chakra-drop-shadow",J.dropShadow),backdropFilter:{transform:J.backdropFilter},backdropBlur:S.blur("--chakra-backdrop-blur"),backdropBrightness:S.propT("--chakra-backdrop-brightness",J.brightness),backdropContrast:S.propT("--chakra-backdrop-contrast",J.contrast),backdropHueRotate:S.propT("--chakra-backdrop-hue-rotate",J.hueRotate),backdropInvert:S.propT("--chakra-backdrop-invert",J.invert),backdropSaturate:S.propT("--chakra-backdrop-saturate",J.saturate)},Qp={alignItems:!0,alignContent:!0,justifyItems:!0,justifyContent:!0,flexWrap:!0,flexDirection:{transform:J.flexDirection},flex:!0,flexFlow:!0,flexGrow:!0,flexShrink:!0,flexBasis:S.sizes("flexBasis"),justifySelf:!0,alignSelf:!0,order:!0,placeItems:!0,placeContent:!0,placeSelf:!0,gap:S.space("gap"),rowGap:S.space("rowGap"),columnGap:S.space("columnGap")};Object.assign(Qp,{flexDir:Qp.flexDirection});var yD={gridGap:S.space("gridGap"),gridColumnGap:S.space("gridColumnGap"),gridRowGap:S.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},h3={appearance:!0,cursor:!0,resize:!0,userSelect:!0,pointerEvents:!0,outline:{transform:J.outline},outlineOffset:!0,outlineColor:S.colors("outlineColor")},Jr={width:S.sizesT("width"),inlineSize:S.sizesT("inlineSize"),height:S.sizes("height"),blockSize:S.sizes("blockSize"),boxSize:S.sizes(["width","height"]),minWidth:S.sizes("minWidth"),minInlineSize:S.sizes("minInlineSize"),minHeight:S.sizes("minHeight"),minBlockSize:S.sizes("minBlockSize"),maxWidth:S.sizes("maxWidth"),maxInlineSize:S.sizes("maxInlineSize"),maxHeight:S.sizes("maxHeight"),maxBlockSize:S.sizes("maxBlockSize"),overflow:!0,overflowX:!0,overflowY:!0,overscrollBehavior:!0,overscrollBehaviorX:!0,overscrollBehaviorY:!0,display:!0,aspectRatio:!0,hideFrom:{scale:"breakpoints",transform:(e,t)=>{var r,o,n;return{[`@media screen and (min-width: ${(n=(o=(r=t.__breakpoints)==null?void 0:r.get(e))==null?void 0:o.minW)!=null?n:e})`]:{display:"none"}}}},hideBelow:{scale:"breakpoints",transform:(e,t)=>{var r,o,n;return{[`@media screen and (max-width: ${(n=(o=(r=t.__breakpoints)==null?void 0:r.get(e))==null?void 0:o._minW)!=null?n:e})`]:{display:"none"}}}},verticalAlign:!0,boxSizing:!0,boxDecorationBreak:!0,float:S.propT("float",J.float),objectFit:!0,objectPosition:!0,visibility:!0,isolation:!0};Object.assign(Jr,{w:Jr.width,h:Jr.height,minW:Jr.minWidth,maxW:Jr.maxWidth,minH:Jr.minHeight,maxH:Jr.maxHeight,overscroll:Jr.overscrollBehavior,overscrollX:Jr.overscrollBehaviorX,overscrollY:Jr.overscrollBehaviorY});var g3={listStyleType:!0,listStylePosition:!0,listStylePos:S.prop("listStylePosition"),listStyleImage:!0,listStyleImg:S.prop("listStyleImage")};function I3(e,t,r,o){let n=typeof t=="string"?t.split("."):[t];for(o=0;o{let t=new WeakMap;return(o,n,a,i)=>{if(typeof o>"u")return e(o,n,a);t.has(o)||t.set(o,new Map);let s=t.get(o);if(s.has(n))return s.get(n);let l=e(o,n,a,i);return s.set(n,l),l}},y3=v3(I3),b3={border:"0px",clip:"rect(0, 0, 0, 0)",width:"1px",height:"1px",margin:"-1px",padding:"0px",overflow:"hidden",whiteSpace:"nowrap",position:"absolute"},S3={position:"static",width:"auto",height:"auto",clip:"auto",padding:"0",margin:"0",overflow:"visible",whiteSpace:"normal"},Jy=(e,t,r)=>{let o={},n=y3(e,t,{});for(let a in n)a in r&&r[a]!=null||(o[a]=n[a]);return o},w3={srOnly:{transform(e){return e===!0?b3:e==="focusable"?S3:{}}},layerStyle:{processResult:!0,transform:(e,t,r)=>Jy(t,`layerStyles.${e}`,r)},textStyle:{processResult:!0,transform:(e,t,r)=>Jy(t,`textStyles.${e}`,r)},apply:{processResult:!0,transform:(e,t,r)=>Jy(t,e,r)}},bu={position:!0,pos:S.prop("position"),zIndex:S.prop("zIndex","zIndices"),inset:S.spaceT("inset"),insetX:S.spaceT(["left","right"]),insetInline:S.spaceT("insetInline"),insetY:S.spaceT(["top","bottom"]),insetBlock:S.spaceT("insetBlock"),top:S.spaceT("top"),insetBlockStart:S.spaceT("insetBlockStart"),bottom:S.spaceT("bottom"),insetBlockEnd:S.spaceT("insetBlockEnd"),left:S.spaceT("left"),insetInlineStart:S.logical({scale:"space",property:{ltr:"left",rtl:"right"}}),right:S.spaceT("right"),insetInlineEnd:S.logical({scale:"space",property:{ltr:"right",rtl:"left"}})};Object.assign(bu,{insetStart:bu.insetInlineStart,insetEnd:bu.insetInlineEnd});var C3={ring:{transform:J.ring},ringColor:S.colors("--chakra-ring-color"),ringOffset:S.prop("--chakra-ring-offset-width"),ringOffsetColor:S.colors("--chakra-ring-offset-color"),ringInset:S.prop("--chakra-ring-inset")},Re={margin:S.spaceT("margin"),marginTop:S.spaceT("marginTop"),marginBlockStart:S.spaceT("marginBlockStart"),marginRight:S.spaceT("marginRight"),marginInlineEnd:S.spaceT("marginInlineEnd"),marginBottom:S.spaceT("marginBottom"),marginBlockEnd:S.spaceT("marginBlockEnd"),marginLeft:S.spaceT("marginLeft"),marginInlineStart:S.spaceT("marginInlineStart"),marginX:S.spaceT(["marginInlineStart","marginInlineEnd"]),marginInline:S.spaceT("marginInline"),marginY:S.spaceT(["marginTop","marginBottom"]),marginBlock:S.spaceT("marginBlock"),padding:S.space("padding"),paddingTop:S.space("paddingTop"),paddingBlockStart:S.space("paddingBlockStart"),paddingRight:S.space("paddingRight"),paddingBottom:S.space("paddingBottom"),paddingBlockEnd:S.space("paddingBlockEnd"),paddingLeft:S.space("paddingLeft"),paddingInlineStart:S.space("paddingInlineStart"),paddingInlineEnd:S.space("paddingInlineEnd"),paddingX:S.space(["paddingInlineStart","paddingInlineEnd"]),paddingInline:S.space("paddingInline"),paddingY:S.space(["paddingTop","paddingBottom"]),paddingBlock:S.space("paddingBlock")};Object.assign(Re,{m:Re.margin,mt:Re.marginTop,mr:Re.marginRight,me:Re.marginInlineEnd,marginEnd:Re.marginInlineEnd,mb:Re.marginBottom,ml:Re.marginLeft,ms:Re.marginInlineStart,marginStart:Re.marginInlineStart,mx:Re.marginX,my:Re.marginY,p:Re.padding,pt:Re.paddingTop,py:Re.paddingY,px:Re.paddingX,pb:Re.paddingBottom,pl:Re.paddingLeft,ps:Re.paddingInlineStart,paddingStart:Re.paddingInlineStart,pr:Re.paddingRight,pe:Re.paddingInlineEnd,paddingEnd:Re.paddingInlineEnd});var P3={textDecorationColor:S.colors("textDecorationColor"),textDecoration:!0,textDecor:{property:"textDecoration"},textDecorationLine:!0,textDecorationStyle:!0,textDecorationThickness:!0,textUnderlineOffset:!0,textShadow:S.shadows("textShadow")},k3={clipPath:!0,transform:S.propT("transform",J.transform),transformOrigin:!0,translateX:S.spaceT("--chakra-translate-x"),translateY:S.spaceT("--chakra-translate-y"),skewX:S.degreeT("--chakra-skew-x"),skewY:S.degreeT("--chakra-skew-y"),scaleX:S.prop("--chakra-scale-x"),scaleY:S.prop("--chakra-scale-y"),scale:S.prop(["--chakra-scale-x","--chakra-scale-y"]),rotate:S.degreeT("--chakra-rotate")},T3={transition:!0,transitionDelay:!0,animation:!0,willChange:!0,transitionDuration:S.prop("transitionDuration","transition.duration"),transitionProperty:S.prop("transitionProperty","transition.property"),transitionTimingFunction:S.prop("transitionTimingFunction","transition.easing")},D3={fontFamily:S.prop("fontFamily","fonts"),fontSize:S.prop("fontSize","fontSizes",J.px),fontWeight:S.prop("fontWeight","fontWeights"),lineHeight:S.prop("lineHeight","lineHeights"),letterSpacing:S.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"}},F3={scrollBehavior:!0,scrollSnapAlign:!0,scrollSnapStop:!0,scrollSnapType:!0,scrollMargin:S.spaceT("scrollMargin"),scrollMarginTop:S.spaceT("scrollMarginTop"),scrollMarginBottom:S.spaceT("scrollMarginBottom"),scrollMarginLeft:S.spaceT("scrollMarginLeft"),scrollMarginRight:S.spaceT("scrollMarginRight"),scrollMarginX:S.spaceT(["scrollMarginLeft","scrollMarginRight"]),scrollMarginY:S.spaceT(["scrollMarginTop","scrollMarginBottom"]),scrollPadding:S.spaceT("scrollPadding"),scrollPaddingTop:S.spaceT("scrollPaddingTop"),scrollPaddingBottom:S.spaceT("scrollPaddingBottom"),scrollPaddingLeft:S.spaceT("scrollPaddingLeft"),scrollPaddingRight:S.spaceT("scrollPaddingRight"),scrollPaddingX:S.spaceT(["scrollPaddingLeft","scrollPaddingRight"]),scrollPaddingY:S.spaceT(["scrollPaddingTop","scrollPaddingBottom"])};function bD(e){return tt(e)&&e.reference?e.reference:String(e)}var Jp=(e,...t)=>t.map(bD).join(` ${e} `).replace(/calc/g,""),cD=(...e)=>`calc(${Jp("+",...e)})`,dD=(...e)=>`calc(${Jp("-",...e)})`,n0=(...e)=>`calc(${Jp("*",...e)})`,pD=(...e)=>`calc(${Jp("/",...e)})`,mD=e=>{let t=bD(e);return t!=null&&!Number.isNaN(parseFloat(t))?String(t).startsWith("-")?String(t).slice(1):`-${t}`:n0(t,-1)},ri=Object.assign(e=>({add:(...t)=>ri(cD(e,...t)),subtract:(...t)=>ri(dD(e,...t)),multiply:(...t)=>ri(n0(e,...t)),divide:(...t)=>ri(pD(e,...t)),negate:()=>ri(mD(e)),toString:()=>e.toString()}),{add:cD,subtract:dD,multiply:n0,divide:pD,negate:mD});function E3(e,t="-"){return e.replace(/\s+/g,t)}function O3(e){let t=E3(e.toString());return A3(B3(t))}function B3(e){return e.includes("\\.")?e:!Number.isInteger(parseFloat(e.toString()))?e.replace(".","\\."):e}function A3(e){return e.replace(/[!-,/:-@[-^`{-~]/g,"\\$&")}function R3(e,t=""){return[t,e].filter(Boolean).join("-")}function M3(e,t){return`var(${e}${t?`, ${t}`:""})`}function L3(e,t=""){return O3(`--${R3(e,t)}`)}function B(e,t,r){let o=L3(e,r);return{variable:o,reference:M3(o,t)}}function SD(e,t){let r={};for(let o of t){if(Array.isArray(o)){let[n,a]=o;r[n]=B(`${e}-${n}`,a);continue}r[o]=B(`${e}-${o}`)}return r}function _3(e){let t=e==null?0:e.length;return t?e[t-1]:void 0}function N3(e){let t=parseFloat(e.toString()),r=e.toString().replace(String(t),"");return{unitless:!r,value:t,unit:r}}function a0(e){if(e==null)return e;let{unitless:t}=N3(e);return t||typeof e=="number"?`${e}px`:e}var wD=(e,t)=>parseInt(e[1],10)>parseInt(t[1],10)?1:-1,s0=e=>Object.fromEntries(Object.entries(e).sort(wD));function xD(e){let t=s0(e);return Object.assign(Object.values(t),t)}function z3(e){let t=Object.keys(s0(e));return new Set(t)}function hD(e){var t;if(!e)return e;e=(t=a0(e))!=null?t:e;let r=-.02;return typeof e=="number"?`${e+r}`:e.replace(/(\d+\.?\d*)/u,o=>`${parseFloat(o)+r}`)}function vu(e,t){let r=["@media screen"];return e&&r.push("and",`(min-width: ${a0(e)})`),t&&r.push("and",`(max-width: ${a0(t)})`),r.join(" ")}function V3(e){var t;if(!e)return null;e.base=(t=e.base)!=null?t:"0px";let r=xD(e),o=Object.entries(e).sort(wD).map(([i,s],l,f)=>{var u;let[,c]=(u=f[l+1])!=null?u:[];return c=parseFloat(c)>0?hD(c):void 0,{_minW:hD(s),breakpoint:i,minW:s,maxW:c,maxWQuery:vu(null,c),minWQuery:vu(s),minMaxQuery:vu(s,c)}}),n=z3(e),a=Array.from(n.values());return{keys:n,normalized:r,isResponsive(i){let s=Object.keys(i);return s.length>0&&s.every(l=>n.has(l))},asObject:s0(e),asArray:xD(e),details:o,get(i){return o.find(s=>s.breakpoint===i)},media:[null,...r.map(i=>vu(i)).slice(1)],toArrayValue(i){if(!tt(i))throw new Error("toArrayValue: value must be an object");let s=a.map(l=>{var f;return(f=i[l])!=null?f:null});for(;_3(s)===null;)s.pop();return s},toObjectValue(i){if(!Array.isArray(i))throw new Error("toObjectValue: value must be an array");return i.reduce((s,l,f)=>{let u=a[f];return u!=null&&l!=null&&(s[u]=l),s},{})}}}var Bt={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}`},aa=e=>CD(t=>e(t,"&"),"[role=group]","[data-group]",".group"),dn=e=>CD(t=>e(t,"~ &"),"[data-peer]",".peer"),CD=(e,...t)=>t.map(e).join(", "),em={_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:aa(Bt.hover),_peerHover:dn(Bt.hover),_groupFocus:aa(Bt.focus),_peerFocus:dn(Bt.focus),_groupFocusVisible:aa(Bt.focusVisible),_peerFocusVisible:dn(Bt.focusVisible),_groupActive:aa(Bt.active),_peerActive:dn(Bt.active),_groupDisabled:aa(Bt.disabled),_peerDisabled:dn(Bt.disabled),_groupInvalid:aa(Bt.invalid),_peerInvalid:dn(Bt.invalid),_groupChecked:aa(Bt.checked),_peerChecked:dn(Bt.checked),_groupFocusWithin:aa(Bt.focusWithin),_peerFocusWithin:dn(Bt.focusWithin),_peerPlaceholderShown:dn(Bt.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]"},PD=Object.keys(em);function gD(e,t){return B(String(e).replace(/\./g,"-"),void 0,t)}function H3(e,t){let r={},o={};for(let[n,a]of Object.entries(e)){let{isSemantic:i,value:s}=a,{variable:l,reference:f}=gD(n,t?.cssVarPrefix);if(!i){if(n.startsWith("space")){let d=n.split("."),[m,...I]=d,h=`${m}.-${I.join(".")}`,v=ri.negate(s),x=ri.negate(f);o[h]={value:v,var:l,varRef:x}}r[l]=s,o[n]={value:s,var:l,varRef:f};continue}let u=d=>{let I=[String(n).split(".")[0],d].join(".");if(!e[I])return d;let{reference:v}=gD(I,t?.cssVarPrefix);return v},c=tt(s)?s:{default:s};r=(0,kD.default)(r,Object.entries(c).reduce((d,[m,I])=>{var h,v;if(!I)return d;let x=u(`${I}`);if(m==="default")return d[l]=x,d;let p=(v=(h=em)==null?void 0:h[m])!=null?v:m;return d[p]={[l]:x},d},{})),o[n]={value:f,var:l,varRef:f}}return{cssVars:r,cssMap:o}}function j3(e,t=[]){let r=Object.assign({},e);for(let o of t)o in r&&delete r[o];return r}function W3(e,t){let r={};for(let o of t)o in e&&(r[o]=e[o]);return r}function $3(e){return typeof e=="object"&&e!=null&&!Array.isArray(e)}function ID(e,t,r={}){let{stop:o,getKey:n}=r;function a(i,s=[]){var l;if($3(i)||Array.isArray(i)){let f={};for(let[u,c]of Object.entries(i)){let d=(l=n?.(u))!=null?l:u,m=[...s,d];if(o?.(i,m))return t(i,s);f[d]=a(c,m)}return f}return t(i,s)}return a(e)}var U3=["colors","borders","borderWidths","borderStyles","fonts","fontSizes","fontWeights","gradients","letterSpacings","lineHeights","radii","space","shadows","sizes","zIndices","transition","blur","breakpoints"];function q3(e){return W3(e,U3)}function G3(e){return e.semanticTokens}function Y3(e){let{__cssMap:t,__cssVars:r,__breakpoints:o,...n}=e;return n}var X3=e=>PD.includes(e)||e==="default";function K3({tokens:e,semanticTokens:t}){let r={};return ID(e,(o,n)=>{o!=null&&(r[n.join(".")]={isSemantic:!1,value:o})}),ID(t,(o,n)=>{o!=null&&(r[n.join(".")]={isSemantic:!0,value:o})},{stop:o=>Object.keys(o).every(X3)}),r}function TD(e){var t;let r=Y3(e),o=q3(r),n=G3(r),a=K3({tokens:o,semanticTokens:n}),i=(t=r.config)==null?void 0:t.cssVarPrefix,{cssMap:s,cssVars:l}=H3(a,{cssVarPrefix:i});return Object.assign(r,{__cssVars:{...{"--chakra-ring-inset":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-ring-offset-width":"0px","--chakra-ring-offset-color":"#fff","--chakra-ring-color":"rgba(66, 153, 225, 0.6)","--chakra-ring-offset-shadow":"0 0 #0000","--chakra-ring-shadow":"0 0 #0000","--chakra-space-x-reverse":"0","--chakra-space-y-reverse":"0"},...l},__cssMap:s,__breakpoints:V3(r.breakpoints)}),r}var l0=(0,DD.default)({},Kp,ce,m3,Qp,Jr,x3,C3,h3,yD,w3,bu,o0,Re,F3,D3,P3,k3,g3,T3),Q3=Object.assign({},Re,Jr,Qp,yD,bu),FD=Object.keys(Q3),ED=[...Object.keys(l0),...PD],Z3={...l0,...em},OD=e=>e in Z3,J3=e=>t=>{if(!t.__breakpoints)return e;let{isResponsive:r,toArrayValue:o,media:n}=t.__breakpoints,a={};for(let i in e){let s=gr(e[i],t);if(s==null)continue;if(s=tt(s)&&r(s)?o(s):s,!Array.isArray(s)){a[i]=s;continue}let l=s.slice(0,n.length).length;for(let f=0;fe.startsWith("--")&&typeof t=="string"&&!tH(t),oH=(e,t)=>{var r,o;if(t==null)return t;let n=l=>{var f,u;return(u=(f=e.__cssMap)==null?void 0:f[l])==null?void 0:u.varRef},a=l=>{var f;return(f=n(l))!=null?f:l},[i,s]=eH(t);return t=(o=(r=n(i))!=null?r:a(s))!=null?o:a(t),t};function nH(e){let{configs:t={},pseudos:r={},theme:o}=e,n=(a,i=!1)=>{var s,l,f;let u=gr(a,o),c=J3(u)(o),d={};for(let m in c){let I=c[m],h=gr(I,o);m in r&&(m=r[m]),rH(m,h)&&(h=oH(o,h));let v=t[m];if(v===!0&&(v={property:m}),tt(h)){d[m]=(s=d[m])!=null?s:{},d[m]=(0,yu.default)({},d[m],n(h,!0));continue}let x=(f=(l=v?.transform)==null?void 0:l.call(v,h,o,u))!=null?f:h;x=v?.processResult?n(x,!0):x;let p=gr(v?.property,o);if(!i&&v?.static){let g=gr(v.static,o);d=(0,yu.default)({},d,g)}if(p&&Array.isArray(p)){for(let g of p)d[g]=x;continue}if(p){p==="&"&&tt(x)?d=(0,yu.default)({},d,x):d[p]=x;continue}if(tt(x)){d=(0,yu.default)({},d,x);continue}d[m]=x}return d};return n}var tm=e=>t=>nH({theme:t,pseudos:em,configs:l0})(e);function H(e){return{definePartsStyle(t){return t},defineMultiStyleConfig(t){return{parts:e,...t}}}}function aH(e,t){if(Array.isArray(e))return e;if(tt(e))return t(e);if(e!=null)return[e]}function iH(e,t){for(let r=t+1;r{(0,Zp.default)(f,{[g]:d?p[g]:{[x]:p[g]}})});continue}if(!m){d?(0,Zp.default)(f,p):f[x]=p;continue}f[x]=p}}return f}}function BD(e){return t=>{var r;let{variant:o,size:n,theme:a}=t,i=sH(a);return(0,Zp.default)({},gr((r=e.baseStyle)!=null?r:{},t),i(e,"sizes",n,t),i(e,"variants",o,t))}}function AD(e,t,r){var o,n,a;return(a=(n=(o=e.__cssMap)==null?void 0:o[`${t}.${r}`])==null?void 0:n.varRef)!=null?a:r}function Pe(e){return j3(e,["styleConfig","size","variant","colorScheme"])}var lH={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"},fH={"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)"},uH={"ultra-fast":"50ms",faster:"100ms",fast:"150ms",normal:"200ms",slow:"300ms",slower:"400ms","ultra-slow":"500ms"},cH={property:lH,easing:fH,duration:uH},RD=cH;var dH={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},MD=dH;var pH={none:0,"1px":"1px solid","2px":"2px solid","4px":"4px solid","8px":"8px solid"},LD=pH;var mH={base:"0em",sm:"30em",md:"48em",lg:"62em",xl:"80em","2xl":"96em"},_D=mH;var xH={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"}},ND=xH;var hH={none:"0",sm:"0.125rem",base:"0.25rem",md:"0.375rem",lg:"0.5rem",xl:"0.75rem","2xl":"1rem","3xl":"1.5rem",full:"9999px"},zD=hH;var gH={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"},VD=gH;var IH={none:0,sm:"4px",base:"8px",md:"12px",lg:"16px",xl:"24px","2xl":"40px","3xl":"64px"},HD=IH;var vH={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"}},rm=vH;var om={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"};var yH={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"},bH={sm:"640px",md:"768px",lg:"1024px",xl:"1280px"},SH={...om,...yH,container:bH},nm=SH;var f0={breakpoints:_D,zIndices:MD,radii:zD,blur:HD,colors:ND,...rm,sizes:nm,shadows:VD,space:om,borders:LD,transition:RD};var{defineMultiStyleConfig:wH,definePartsStyle:wu}=H(["stepper","step","title","description","indicator","separator","icon","number"]),pn=B("stepper-indicator-size"),Rs=B("stepper-icon-size"),Ms=B("stepper-title-font-size"),Cu=B("stepper-description-font-size"),Su=B("stepper-accent-color"),CH=wu(({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"},[Su.variable]:`colors.${e}.500`,_dark:{[Su.variable]:`colors.${e}.200`}},title:{fontSize:Ms.reference,fontWeight:"medium"},description:{fontSize:Cu.reference,color:"chakra-subtle-text"},number:{fontSize:Ms.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:Rs.reference,height:Rs.reference},indicator:{flexShrink:0,borderRadius:"full",width:pn.reference,height:pn.reference,display:"flex",justifyContent:"center",alignItems:"center","&[data-status=active]":{borderWidth:"2px",borderColor:Su.reference},"&[data-status=complete]":{bg:Su.reference,color:"chakra-inverse-text"},"&[data-status=incomplete]":{borderWidth:"2px"}},separator:{bg:"chakra-border-color",flex:"1","&[data-status=complete]":{bg:Su.reference},"&[data-orientation=horizontal]":{width:"100%",height:"2px",marginStart:"2"},"&[data-orientation=vertical]":{width:"2px",position:"absolute",height:"100%",maxHeight:`calc(100% - ${pn.reference} - 8px)`,top:`calc(${pn.reference} + 4px)`,insetStart:`calc(${pn.reference} / 2 - 1px)`}}})),jD=wH({baseStyle:CH,sizes:{xs:wu({stepper:{[pn.variable]:"sizes.4",[Rs.variable]:"sizes.3",[Ms.variable]:"fontSizes.xs",[Cu.variable]:"fontSizes.xs"}}),sm:wu({stepper:{[pn.variable]:"sizes.6",[Rs.variable]:"sizes.4",[Ms.variable]:"fontSizes.sm",[Cu.variable]:"fontSizes.xs"}}),md:wu({stepper:{[pn.variable]:"sizes.8",[Rs.variable]:"sizes.5",[Ms.variable]:"fontSizes.md",[Cu.variable]:"fontSizes.sm"}}),lg:wu({stepper:{[pn.variable]:"sizes.10",[Rs.variable]:"sizes.6",[Ms.variable]:"fontSizes.lg",[Cu.variable]:"fontSizes.md"}})},defaultProps:{size:"md",colorScheme:"blue"}});function ue(e,t={}){let r=!1;function o(){if(!r){r=!0;return}throw new Error("[anatomy] .part(...) should only be called once. Did you mean to use .extend(...) ?")}function n(...u){o();for(let c of u)t[c]=l(c);return ue(e,t)}function a(...u){for(let c of u)c in t||(t[c]=l(c));return ue(e,t)}function i(){return Object.fromEntries(Object.entries(t).map(([c,d])=>[c,d.selector]))}function s(){return Object.fromEntries(Object.entries(t).map(([c,d])=>[c,d.className]))}function l(u){let m=`chakra-${(["container","root"].includes(u??"")?[e]:[e,u]).filter(Boolean).join("__")}`;return{className:m,selector:`.${m}`,toString:()=>u}}return{parts:n,toPart:l,extend:a,selectors:i,classnames:s,get keys(){return Object.keys(t)},__type:{}}}var u0=ue("accordion").parts("root","container","button","panel").extend("icon"),c0=ue("alert").parts("title","description","container").extend("icon","spinner"),d0=ue("avatar").parts("label","badge","container").extend("excessLabel","group"),p0=ue("breadcrumb").parts("link","item","container").extend("separator"),PH=ue("button").parts(),m0=ue("checkbox").parts("control","icon","container").extend("label"),kH=ue("progress").parts("track","filledTrack").extend("label"),x0=ue("drawer").parts("overlay","dialogContainer","dialog").extend("header","closeButton","body","footer"),h0=ue("editable").parts("preview","input","textarea"),g0=ue("form").parts("container","requiredIndicator","helperText"),I0=ue("formError").parts("text","icon"),v0=ue("input").parts("addon","field","element","group"),y0=ue("list").parts("container","item","icon"),b0=ue("menu").parts("button","list","item").extend("groupTitle","icon","command","divider"),S0=ue("modal").parts("overlay","dialogContainer","dialog").extend("header","closeButton","body","footer"),w0=ue("numberinput").parts("root","field","stepperGroup","stepper"),TH=ue("pininput").parts("field"),C0=ue("popover").parts("content","header","body","footer").extend("popper","arrow","closeButton"),P0=ue("progress").parts("label","filledTrack","track"),k0=ue("radio").parts("container","control","label"),T0=ue("select").parts("field","icon"),D0=ue("slider").parts("container","track","thumb","filledTrack","mark"),F0=ue("stat").parts("container","label","helpText","number","icon"),E0=ue("switch").parts("container","track","thumb","label"),O0=ue("table").parts("table","thead","tbody","tr","th","td","tfoot","caption"),B0=ue("tabs").parts("root","tab","tablist","tabpanel","tabpanels","indicator"),A0=ue("tag").parts("container","label","closeButton"),R0=ue("card").parts("container","header","body","footer"),DH=ue("stepper").parts("stepper","step","title","description","indicator","separator","icon","number");function oi(e,t,r){return Math.min(Math.max(e,r),t)}var M0=class extends Error{constructor(t){super(`Failed to parse color: "${t}"`)}},Pu=M0;function am(e){if(typeof e!="string")throw new Pu(e);if(e.trim().toLowerCase()==="transparent")return[0,0,0,0];let t=e.trim();t=LH.test(e)?OH(e):e;let r=BH.exec(t);if(r){let i=Array.from(r).slice(1);return[...i.slice(0,3).map(s=>parseInt(ku(s,2),16)),parseInt(ku(i[3]||"f",2),16)/255]}let o=AH.exec(t);if(o){let i=Array.from(o).slice(1);return[...i.slice(0,3).map(s=>parseInt(s,16)),parseInt(i[3]||"ff",16)/255]}let n=RH.exec(t);if(n){let i=Array.from(n).slice(1);return[...i.slice(0,3).map(s=>parseInt(s,10)),parseFloat(i[3]||"1")]}let a=MH.exec(t);if(a){let[i,s,l,f]=Array.from(a).slice(1).map(parseFloat);if(oi(0,100,s)!==s)throw new Pu(e);if(oi(0,100,l)!==l)throw new Pu(e);return[..._H(i,s,l),Number.isNaN(f)?1:f]}throw new Pu(e)}function FH(e){let t=5381,r=e.length;for(;r;)t=t*33^e.charCodeAt(--r);return(t>>>0)%2341}var WD=e=>parseInt(e.replace(/_/g,""),36),EH="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)=>{let r=WD(t.substring(0,3)),o=WD(t.substring(3)).toString(16),n="";for(let a=0;a<6-o.length;a++)n+="0";return e[r]=`${n}${o}`,e},{});function OH(e){let t=e.toLowerCase().trim(),r=EH[FH(t)];if(!r)throw new Pu(e);return`#${r}`}var ku=(e,t)=>Array.from(Array(t)).map(()=>e).join(""),BH=new RegExp(`^#${ku("([a-f0-9])",3)}([a-f0-9])?$`,"i"),AH=new RegExp(`^#${ku("([a-f0-9]{2})",3)}([a-f0-9]{2})?$`,"i"),RH=new RegExp(`^rgba?\\(\\s*(\\d+)\\s*${ku(",\\s*(\\d+)\\s*",2)}(?:,\\s*([\\d.]+))?\\s*\\)$`,"i"),MH=/^hsla?\(\s*([\d.]+)\s*,\s*([\d.]+)%\s*,\s*([\d.]+)%(?:\s*,\s*([\d.]+))?\s*\)$/i,LH=/^[a-z]+$/i,$D=e=>Math.round(e*255),_H=(e,t,r)=>{let o=r/100;if(t===0)return[o,o,o].map($D);let n=(e%360+360)%360/60,a=(1-Math.abs(2*o-1))*(t/100),i=a*(1-Math.abs(n%2-1)),s=0,l=0,f=0;n>=0&&n<1?(s=a,l=i):n>=1&&n<2?(s=i,l=a):n>=2&&n<3?(l=a,f=i):n>=3&&n<4?(l=i,f=a):n>=4&&n<5?(s=i,f=a):n>=5&&n<6&&(s=a,f=i);let u=o-a/2,c=s+u,d=l+u,m=f+u;return[c,d,m].map($D)};function NH(e,t,r,o){return`rgba(${oi(0,255,e).toFixed()}, ${oi(0,255,t).toFixed()}, ${oi(0,255,r).toFixed()}, ${parseFloat(oi(0,1,o).toFixed(3))})`}function UD(e,t){let[r,o,n,a]=am(e);return NH(r,o,n,a-t)}function qD(e){let[t,r,o,n]=am(e),a=i=>{let s=oi(0,255,i).toString(16);return s.length===1?`0${s}`:s};return`#${a(t)}${a(r)}${a(o)}${n<1?a(Math.round(n*255)):""}`}function zH(e,t,r,o,n){for(t=t.split?t.split("."):t,o=0;oObject.keys(e).length===0,ut=(e,t,r)=>{let o=zH(e,`colors.${t}`,t);try{return qD(o),o}catch{return r??"#000000"}};var HH=e=>{let[t,r,o]=am(e);return(t*299+r*587+o*114)/1e3},GD=e=>t=>{let r=ut(t,e);return HH(r)<128?"dark":"light"},L0=e=>t=>GD(e)(t)==="dark";var zo=(e,t)=>r=>{let o=ut(r,e);return UD(o,1-t)};function im(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 jH=()=>`#${Math.floor(Math.random()*16777215).toString(16).padEnd(6,"0")}`;function _0(e){let t=jH();return!e||VH(e)?t:e.string&&e.colors?$H(e.string,e.colors):e.string&&!e.colors?WH(e.string):e.colors&&!e.string?UH(e.colors):t}function WH(e){let t=0;if(e.length===0)return t.toString();for(let o=0;o>o*8&255;r+=`00${n.toString(16)}`.substr(-2)}return r}function $H(e,t){let r=0;if(e.length===0)return t[0];for(let o=0;or.colorMode==="dark"?t:e}function Tu(e){let{orientation:t,vertical:r,horizontal:o}=e;return t?t==="vertical"?r:o:{}}function ZD(e){return tt(e)&&e.reference?e.reference:String(e)}var sm=(e,...t)=>t.map(ZD).join(` ${e} `).replace(/calc/g,""),YD=(...e)=>`calc(${sm("+",...e)})`,XD=(...e)=>`calc(${sm("-",...e)})`,N0=(...e)=>`calc(${sm("*",...e)})`,KD=(...e)=>`calc(${sm("/",...e)})`,QD=e=>{let t=ZD(e);return t!=null&&!Number.isNaN(parseFloat(t))?String(t).startsWith("-")?String(t).slice(1):`-${t}`:N0(t,-1)},eo=Object.assign(e=>({add:(...t)=>eo(YD(e,...t)),subtract:(...t)=>eo(XD(e,...t)),multiply:(...t)=>eo(N0(e,...t)),divide:(...t)=>eo(KD(e,...t)),negate:()=>eo(QD(e)),toString:()=>e.toString()}),{add:YD,subtract:XD,multiply:N0,divide:KD,negate:QD});function JD(e){return!Number.isInteger(parseFloat(e.toString()))}function qH(e,t="-"){return e.replace(/\s+/g,t)}function eF(e){let t=qH(e.toString());return t.includes("\\.")?e:JD(e)?t.replace(".","\\."):e}function tF(e,t=""){return[t,eF(e)].filter(Boolean).join("-")}function rF(e,t){return`var(${eF(e)}${t?`, ${t}`:""})`}function oF(e,t=""){return`--${tF(e,t)}`}function ke(e,t){let r=oF(e,t?.prefix);return{variable:r,reference:rF(r,GH(t?.fallback))}}function GH(e){return typeof e=="string"?e:e?.reference}var{defineMultiStyleConfig:YH,definePartsStyle:lm}=H(E0.keys),Fu=ke("switch-track-width"),ni=ke("switch-track-height"),z0=ke("switch-track-diff"),XH=eo.subtract(Fu,ni),V0=ke("switch-thumb-x"),Du=ke("switch-bg"),KH=e=>{let{colorScheme:t}=e;return{borderRadius:"full",p:"0.5",width:[Fu.reference],height:[ni.reference],transitionProperty:"common",transitionDuration:"fast",[Du.variable]:"colors.gray.300",_dark:{[Du.variable]:"colors.whiteAlpha.400"},_focusVisible:{boxShadow:"outline"},_disabled:{opacity:.4,cursor:"not-allowed"},_checked:{[Du.variable]:`colors.${t}.500`,_dark:{[Du.variable]:`colors.${t}.200`}},bg:Du.reference}},QH={bg:"white",transitionProperty:"transform",transitionDuration:"normal",borderRadius:"inherit",width:[ni.reference],height:[ni.reference],_checked:{transform:`translateX(${V0.reference})`}},ZH=lm(e=>({container:{[z0.variable]:XH,[V0.variable]:z0.reference,_rtl:{[V0.variable]:eo(z0).negate().toString()}},track:KH(e),thumb:QH})),JH={sm:lm({container:{[Fu.variable]:"1.375rem",[ni.variable]:"sizes.3"}}),md:lm({container:{[Fu.variable]:"1.875rem",[ni.variable]:"sizes.4"}}),lg:lm({container:{[Fu.variable]:"2.875rem",[ni.variable]:"sizes.6"}})},nF=YH({baseStyle:ZH,sizes:JH,defaultProps:{size:"md",colorScheme:"blue"}});var{defineMultiStyleConfig:e4,definePartsStyle:Ls}=H(O0.keys),t4=Ls({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"}}),fm={"&[data-is-numeric=true]":{textAlign:"end"}},r4=Ls(e=>{let{colorScheme:t}=e;return{th:{color:N("gray.600","gray.400")(e),borderBottom:"1px",borderColor:N(`${t}.100`,`${t}.700`)(e),...fm},td:{borderBottom:"1px",borderColor:N(`${t}.100`,`${t}.700`)(e),...fm},caption:{color:N("gray.600","gray.100")(e)},tfoot:{tr:{"&:last-of-type":{th:{borderBottomWidth:0}}}}}}),o4=Ls(e=>{let{colorScheme:t}=e;return{th:{color:N("gray.600","gray.400")(e),borderBottom:"1px",borderColor:N(`${t}.100`,`${t}.700`)(e),...fm},td:{borderBottom:"1px",borderColor:N(`${t}.100`,`${t}.700`)(e),...fm},caption:{color:N("gray.600","gray.100")(e)},tbody:{tr:{"&:nth-of-type(odd)":{"th, td":{borderBottomWidth:"1px",borderColor:N(`${t}.100`,`${t}.700`)(e)},td:{background:N(`${t}.100`,`${t}.700`)(e)}}}},tfoot:{tr:{"&:last-of-type":{th:{borderBottomWidth:0}}}}}}),n4={simple:r4,striped:o4,unstyled:{}},a4={sm:Ls({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:Ls({th:{px:"6",py:"3",lineHeight:"4",fontSize:"xs"},td:{px:"6",py:"4",lineHeight:"5"},caption:{px:"6",py:"2",fontSize:"sm"}}),lg:Ls({th:{px:"8",py:"4",lineHeight:"5",fontSize:"sm"},td:{px:"8",py:"5",lineHeight:"6"},caption:{px:"6",py:"2",fontSize:"md"}})},aF=e4({baseStyle:t4,variants:n4,sizes:a4,defaultProps:{variant:"simple",size:"md",colorScheme:"gray"}});var vr=B("tabs-color"),Io=B("tabs-bg"),um=B("tabs-border-color"),{defineMultiStyleConfig:i4,definePartsStyle:Vo}=H(B0.keys),s4=e=>{let{orientation:t}=e;return{display:t==="vertical"?"flex":"block"}},l4=e=>{let{isFitted:t}=e;return{flex:t?1:void 0,transitionProperty:"common",transitionDuration:"normal",_focusVisible:{zIndex:1,boxShadow:"outline"},_disabled:{cursor:"not-allowed",opacity:.4}}},f4=e=>{let{align:t="start",orientation:r}=e;return{justifyContent:{end:"flex-end",center:"center",start:"flex-start"}[t],flexDirection:r==="vertical"?"column":"row"}},u4={p:4},c4=Vo(e=>({root:s4(e),tab:l4(e),tablist:f4(e),tabpanel:u4})),d4={sm:Vo({tab:{py:1,px:4,fontSize:"sm"}}),md:Vo({tab:{fontSize:"md",py:2,px:4}}),lg:Vo({tab:{fontSize:"lg",py:3,px:4}})},p4=Vo(e=>{let{colorScheme:t,orientation:r}=e,o=r==="vertical",n=o?"borderStart":"borderBottom",a=o?"marginStart":"marginBottom";return{tablist:{[n]:"2px solid",borderColor:"inherit"},tab:{[n]:"2px solid",borderColor:"transparent",[a]:"-2px",_selected:{[vr.variable]:`colors.${t}.600`,_dark:{[vr.variable]:`colors.${t}.300`},borderColor:"currentColor"},_active:{[Io.variable]:"colors.gray.200",_dark:{[Io.variable]:"colors.whiteAlpha.300"}},_disabled:{_active:{bg:"none"}},color:vr.reference,bg:Io.reference}}}),m4=Vo(e=>{let{colorScheme:t}=e;return{tab:{borderTopRadius:"md",border:"1px solid",borderColor:"transparent",mb:"-1px",[um.variable]:"transparent",_selected:{[vr.variable]:`colors.${t}.600`,[um.variable]:"colors.white",_dark:{[vr.variable]:`colors.${t}.300`,[um.variable]:"colors.gray.800"},borderColor:"inherit",borderBottomColor:um.reference},color:vr.reference},tablist:{mb:"-1px",borderBottom:"1px solid",borderColor:"inherit"}}}),x4=Vo(e=>{let{colorScheme:t}=e;return{tab:{border:"1px solid",borderColor:"inherit",[Io.variable]:"colors.gray.50",_dark:{[Io.variable]:"colors.whiteAlpha.50"},mb:"-1px",_notLast:{marginEnd:"-1px"},_selected:{[Io.variable]:"colors.white",[vr.variable]:`colors.${t}.600`,_dark:{[Io.variable]:"colors.gray.800",[vr.variable]:`colors.${t}.300`},borderColor:"inherit",borderTopColor:"currentColor",borderBottomColor:"transparent"},color:vr.reference,bg:Io.reference},tablist:{mb:"-1px",borderBottom:"1px solid",borderColor:"inherit"}}}),h4=Vo(e=>{let{colorScheme:t,theme:r}=e;return{tab:{borderRadius:"full",fontWeight:"semibold",color:"gray.600",_selected:{color:ut(r,`${t}.700`),bg:ut(r,`${t}.100`)}}}}),g4=Vo(e=>{let{colorScheme:t}=e;return{tab:{borderRadius:"full",fontWeight:"semibold",[vr.variable]:"colors.gray.600",_dark:{[vr.variable]:"inherit"},_selected:{[vr.variable]:"colors.white",[Io.variable]:`colors.${t}.600`,_dark:{[vr.variable]:"colors.gray.800",[Io.variable]:`colors.${t}.300`}},color:vr.reference,bg:Io.reference}}}),I4=Vo({}),v4={line:p4,enclosed:m4,"enclosed-colored":x4,"soft-rounded":h4,"solid-rounded":g4,unstyled:I4},iF=i4({baseStyle:c4,sizes:d4,variants:v4,defaultProps:{size:"md",variant:"line",colorScheme:"blue"}});var je=SD("badge",["bg","color","shadow"]),y4={px:1,textTransform:"uppercase",fontSize:"xs",borderRadius:"sm",fontWeight:"bold",bg:je.bg.reference,color:je.color.reference,boxShadow:je.shadow.reference},b4=e=>{let{colorScheme:t,theme:r}=e,o=zo(`${t}.500`,.6)(r);return{[je.bg.variable]:`colors.${t}.500`,[je.color.variable]:"colors.white",_dark:{[je.bg.variable]:o,[je.color.variable]:"colors.whiteAlpha.800"}}},S4=e=>{let{colorScheme:t,theme:r}=e,o=zo(`${t}.200`,.16)(r);return{[je.bg.variable]:`colors.${t}.100`,[je.color.variable]:`colors.${t}.800`,_dark:{[je.bg.variable]:o,[je.color.variable]:`colors.${t}.200`}}},w4=e=>{let{colorScheme:t,theme:r}=e,o=zo(`${t}.200`,.8)(r);return{[je.color.variable]:`colors.${t}.500`,_dark:{[je.color.variable]:o},[je.shadow.variable]:`inset 0 0 0px 1px ${je.color.reference}`}},C4={solid:b4,subtle:S4,outline:w4},ia={baseStyle:y4,variants:C4,defaultProps:{variant:"subtle",colorScheme:"gray"}};var{defineMultiStyleConfig:P4,definePartsStyle:ai}=H(A0.keys),sF=B("tag-bg"),lF=B("tag-color"),j0=B("tag-shadow"),cm=B("tag-min-height"),dm=B("tag-min-width"),pm=B("tag-font-size"),mm=B("tag-padding-inline"),k4={fontWeight:"medium",lineHeight:1.2,outline:0,[lF.variable]:je.color.reference,[sF.variable]:je.bg.reference,[j0.variable]:je.shadow.reference,color:lF.reference,bg:sF.reference,boxShadow:j0.reference,borderRadius:"md",minH:cm.reference,minW:dm.reference,fontSize:pm.reference,px:mm.reference,_focusVisible:{[j0.variable]:"shadows.outline"}},T4={lineHeight:1.2,overflow:"visible"},D4={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}},F4=ai({container:k4,label:T4,closeButton:D4}),E4={sm:ai({container:{[cm.variable]:"sizes.5",[dm.variable]:"sizes.5",[pm.variable]:"fontSizes.xs",[mm.variable]:"space.2"},closeButton:{marginEnd:"-2px",marginStart:"0.35rem"}}),md:ai({container:{[cm.variable]:"sizes.6",[dm.variable]:"sizes.6",[pm.variable]:"fontSizes.sm",[mm.variable]:"space.2"}}),lg:ai({container:{[cm.variable]:"sizes.8",[dm.variable]:"sizes.8",[pm.variable]:"fontSizes.md",[mm.variable]:"space.3"}})},O4={subtle:ai(e=>{var t;return{container:(t=ia.variants)==null?void 0:t.subtle(e)}}),solid:ai(e=>{var t;return{container:(t=ia.variants)==null?void 0:t.solid(e)}}),outline:ai(e=>{var t;return{container:(t=ia.variants)==null?void 0:t.outline(e)}})},fF=P4({variants:O4,baseStyle:F4,sizes:E4,defaultProps:{size:"md",variant:"subtle",colorScheme:"gray"}});var{definePartsStyle:mn,defineMultiStyleConfig:B4}=H(v0.keys),_s=B("input-height"),Ns=B("input-font-size"),zs=B("input-padding"),Vs=B("input-border-radius"),A4=mn({addon:{height:_s.reference,fontSize:Ns.reference,px:zs.reference,borderRadius:Vs.reference},field:{width:"100%",height:_s.reference,fontSize:Ns.reference,px:zs.reference,borderRadius:Vs.reference,minWidth:0,outline:0,position:"relative",appearance:"none",transitionProperty:"common",transitionDuration:"normal",_disabled:{opacity:.4,cursor:"not-allowed"}}}),sa={lg:{[Ns.variable]:"fontSizes.lg",[zs.variable]:"space.4",[Vs.variable]:"radii.md",[_s.variable]:"sizes.12"},md:{[Ns.variable]:"fontSizes.md",[zs.variable]:"space.4",[Vs.variable]:"radii.md",[_s.variable]:"sizes.10"},sm:{[Ns.variable]:"fontSizes.sm",[zs.variable]:"space.3",[Vs.variable]:"radii.sm",[_s.variable]:"sizes.8"},xs:{[Ns.variable]:"fontSizes.xs",[zs.variable]:"space.2",[Vs.variable]:"radii.sm",[_s.variable]:"sizes.6"}},R4={lg:mn({field:sa.lg,group:sa.lg}),md:mn({field:sa.md,group:sa.md}),sm:mn({field:sa.sm,group:sa.sm}),xs:mn({field:sa.xs,group:sa.xs})};function W0(e){let{focusBorderColor:t,errorBorderColor:r}=e;return{focusBorderColor:t||N("blue.500","blue.300")(e),errorBorderColor:r||N("red.500","red.300")(e)}}var M4=mn(e=>{let{theme:t}=e,{focusBorderColor:r,errorBorderColor:o}=W0(e);return{field:{border:"1px solid",borderColor:"inherit",bg:"inherit",_hover:{borderColor:N("gray.300","whiteAlpha.400")(e)},_readOnly:{boxShadow:"none !important",userSelect:"all"},_invalid:{borderColor:ut(t,o),boxShadow:`0 0 0 1px ${ut(t,o)}`},_focusVisible:{zIndex:1,borderColor:ut(t,r),boxShadow:`0 0 0 1px ${ut(t,r)}`}},addon:{border:"1px solid",borderColor:N("inherit","whiteAlpha.50")(e),bg:N("gray.100","whiteAlpha.300")(e)}}}),L4=mn(e=>{let{theme:t}=e,{focusBorderColor:r,errorBorderColor:o}=W0(e);return{field:{border:"2px solid",borderColor:"transparent",bg:N("gray.100","whiteAlpha.50")(e),_hover:{bg:N("gray.200","whiteAlpha.100")(e)},_readOnly:{boxShadow:"none !important",userSelect:"all"},_invalid:{borderColor:ut(t,o)},_focusVisible:{bg:"transparent",borderColor:ut(t,r)}},addon:{border:"2px solid",borderColor:"transparent",bg:N("gray.100","whiteAlpha.50")(e)}}}),_4=mn(e=>{let{theme:t}=e,{focusBorderColor:r,errorBorderColor:o}=W0(e);return{field:{borderBottom:"1px solid",borderColor:"inherit",borderRadius:"0",px:"0",bg:"transparent",_readOnly:{boxShadow:"none !important",userSelect:"all"},_invalid:{borderColor:ut(t,o),boxShadow:`0px 1px 0px 0px ${ut(t,o)}`},_focusVisible:{borderColor:ut(t,r),boxShadow:`0px 1px 0px 0px ${ut(t,r)}`}},addon:{borderBottom:"2px solid",borderColor:"inherit",borderRadius:"0",px:"0",bg:"transparent"}}}),N4=mn({field:{bg:"transparent",px:"0",height:"auto"},addon:{bg:"transparent",px:"0",height:"auto"}}),z4={outline:M4,filled:L4,flushed:_4,unstyled:N4},Q=B4({baseStyle:A4,sizes:R4,variants:z4,defaultProps:{size:"md",variant:"outline"}});var uF,V4={...(uF=Q.baseStyle)==null?void 0:uF.field,paddingY:"2",minHeight:"20",lineHeight:"short",verticalAlign:"top"},cF,dF,H4={outline:e=>{var t,r;return(r=(t=Q.variants)==null?void 0:t.outline(e).field)!=null?r:{}},flushed:e=>{var t,r;return(r=(t=Q.variants)==null?void 0:t.flushed(e).field)!=null?r:{}},filled:e=>{var t,r;return(r=(t=Q.variants)==null?void 0:t.filled(e).field)!=null?r:{}},unstyled:(dF=(cF=Q.variants)==null?void 0:cF.unstyled.field)!=null?dF:{}},pF,mF,xF,hF,gF,IF,vF,yF,j4={xs:(mF=(pF=Q.sizes)==null?void 0:pF.xs.field)!=null?mF:{},sm:(hF=(xF=Q.sizes)==null?void 0:xF.sm.field)!=null?hF:{},md:(IF=(gF=Q.sizes)==null?void 0:gF.md.field)!=null?IF:{},lg:(yF=(vF=Q.sizes)==null?void 0:vF.lg.field)!=null?yF:{}},bF={baseStyle:V4,sizes:j4,variants:H4,defaultProps:{size:"md",variant:"outline"}};var xm=ke("tooltip-bg"),$0=ke("tooltip-fg"),W4=ke("popper-arrow-bg"),$4={bg:xm.reference,color:$0.reference,[xm.variable]:"colors.gray.700",[$0.variable]:"colors.whiteAlpha.900",_dark:{[xm.variable]:"colors.gray.300",[$0.variable]:"colors.gray.900"},[W4.variable]:xm.reference,px:"2",py:"0.5",borderRadius:"sm",fontWeight:"medium",fontSize:"sm",boxShadow:"md",maxW:"xs",zIndex:"tooltip"},SF={baseStyle:$4};var{defineMultiStyleConfig:U4,definePartsStyle:Eu}=H(P0.keys),q4=e=>{let{colorScheme:t,theme:r,isIndeterminate:o,hasStripe:n}=e,a=N(im(),im("1rem","rgba(0,0,0,0.1)"))(e),i=N(`${t}.500`,`${t}.200`)(e),s=`linear-gradient( to right, transparent 0%, ${ut(r,i)} 50%, transparent 100% )`;return{...!o&&n&&a,...o?{bgImage:s}:{bgColor:i}}},G4={lineHeight:"1",fontSize:"0.25em",fontWeight:"bold",color:"white"},Y4=e=>({bg:N("gray.100","whiteAlpha.300")(e)}),X4=e=>({transitionProperty:"common",transitionDuration:"slow",...q4(e)}),K4=Eu(e=>({label:G4,filledTrack:X4(e),track:Y4(e)})),Q4={xs:Eu({track:{h:"1"}}),sm:Eu({track:{h:"2"}}),md:Eu({track:{h:"3"}}),lg:Eu({track:{h:"4"}})},wF=U4({sizes:Q4,baseStyle:K4,defaultProps:{size:"md",colorScheme:"blue"}});var Z4=e=>typeof e=="function";function We(e,...t){return Z4(e)?e(...t):e}var{definePartsStyle:hm,defineMultiStyleConfig:J4}=H(m0.keys),Ou=B("checkbox-size"),ej=e=>{let{colorScheme:t}=e;return{w:Ou.reference,h:Ou.reference,transitionProperty:"box-shadow",transitionDuration:"normal",border:"2px solid",borderRadius:"sm",borderColor:"inherit",color:"white",_checked:{bg:N(`${t}.500`,`${t}.200`)(e),borderColor:N(`${t}.500`,`${t}.200`)(e),color:N("white","gray.900")(e),_hover:{bg:N(`${t}.600`,`${t}.300`)(e),borderColor:N(`${t}.600`,`${t}.300`)(e)},_disabled:{borderColor:N("gray.200","transparent")(e),bg:N("gray.200","whiteAlpha.300")(e),color:N("gray.500","whiteAlpha.500")(e)}},_indeterminate:{bg:N(`${t}.500`,`${t}.200`)(e),borderColor:N(`${t}.500`,`${t}.200`)(e),color:N("white","gray.900")(e)},_disabled:{bg:N("gray.100","whiteAlpha.100")(e),borderColor:N("gray.100","transparent")(e)},_focusVisible:{boxShadow:"outline"},_invalid:{borderColor:N("red.500","red.300")(e)}}},tj={_disabled:{cursor:"not-allowed"}},rj={userSelect:"none",_disabled:{opacity:.4}},oj={transitionProperty:"transform",transitionDuration:"normal"},nj=hm(e=>({icon:oj,container:tj,control:We(ej,e),label:rj})),aj={sm:hm({control:{[Ou.variable]:"sizes.3"},label:{fontSize:"sm"},icon:{fontSize:"3xs"}}),md:hm({control:{[Ou.variable]:"sizes.4"},label:{fontSize:"md"},icon:{fontSize:"2xs"}}),lg:hm({control:{[Ou.variable]:"sizes.5"},label:{fontSize:"lg"},icon:{fontSize:"2xs"}})},Hs=J4({baseStyle:nj,sizes:aj,defaultProps:{size:"md",colorScheme:"blue"}});var{defineMultiStyleConfig:ij,definePartsStyle:gm}=H(k0.keys),sj=e=>{var t;let r=(t=We(Hs.baseStyle,e))==null?void 0:t.control;return{...r,borderRadius:"full",_checked:{...r?._checked,_before:{content:'""',display:"inline-block",pos:"relative",w:"50%",h:"50%",borderRadius:"50%",bg:"currentColor"}}}},lj=gm(e=>{var t,r,o,n;return{label:(r=(t=Hs).baseStyle)==null?void 0:r.call(t,e).label,container:(n=(o=Hs).baseStyle)==null?void 0:n.call(o,e).container,control:sj(e)}}),fj={md:gm({control:{w:"4",h:"4"},label:{fontSize:"md"}}),lg:gm({control:{w:"5",h:"5"},label:{fontSize:"lg"}}),sm:gm({control:{width:"3",height:"3"},label:{fontSize:"sm"}})},CF=ij({baseStyle:lj,sizes:fj,defaultProps:{size:"md",colorScheme:"blue"}});var{defineMultiStyleConfig:uj,definePartsStyle:cj}=H(T0.keys),Im=B("select-bg"),PF,dj={...(PF=Q.baseStyle)==null?void 0:PF.field,appearance:"none",paddingBottom:"1px",lineHeight:"normal",bg:Im.reference,[Im.variable]:"colors.white",_dark:{[Im.variable]:"colors.gray.700"},"> option, > optgroup":{bg:Im.reference}},pj={width:"6",height:"100%",insetEnd:"2",position:"relative",color:"currentColor",fontSize:"xl",_disabled:{opacity:.5}},mj=cj({field:dj,icon:pj}),vm={paddingInlineEnd:"8"},kF,TF,DF,FF,EF,OF,BF,AF,xj={lg:{...(kF=Q.sizes)==null?void 0:kF.lg,field:{...(TF=Q.sizes)==null?void 0:TF.lg.field,...vm}},md:{...(DF=Q.sizes)==null?void 0:DF.md,field:{...(FF=Q.sizes)==null?void 0:FF.md.field,...vm}},sm:{...(EF=Q.sizes)==null?void 0:EF.sm,field:{...(OF=Q.sizes)==null?void 0:OF.sm.field,...vm}},xs:{...(BF=Q.sizes)==null?void 0:BF.xs,field:{...(AF=Q.sizes)==null?void 0:AF.xs.field,...vm},icon:{insetEnd:"1"}}},RF=uj({baseStyle:mj,sizes:xj,variants:Q.variants,defaultProps:Q.defaultProps});var U0=B("skeleton-start-color"),q0=B("skeleton-end-color"),hj={[U0.variable]:"colors.gray.100",[q0.variable]:"colors.gray.400",_dark:{[U0.variable]:"colors.gray.800",[q0.variable]:"colors.gray.600"},background:U0.reference,borderColor:q0.reference,opacity:.7,borderRadius:"sm"},MF={baseStyle:hj};var G0=B("skip-link-bg"),gj={borderRadius:"md",fontWeight:"semibold",_focusVisible:{boxShadow:"outline",padding:"4",position:"fixed",top:"6",insetStart:"6",[G0.variable]:"colors.white",_dark:{[G0.variable]:"colors.gray.700"},bg:G0.reference}},LF={baseStyle:gj};var{defineMultiStyleConfig:Ij,definePartsStyle:ym}=H(D0.keys),Bu=B("slider-thumb-size"),Au=B("slider-track-size"),la=B("slider-bg"),vj=e=>{let{orientation:t}=e;return{display:"inline-block",position:"relative",cursor:"pointer",_disabled:{opacity:.6,cursor:"default",pointerEvents:"none"},...Tu({orientation:t,vertical:{h:"100%"},horizontal:{w:"100%"}})}},yj=e=>({...Tu({orientation:e.orientation,horizontal:{h:Au.reference},vertical:{w:Au.reference}}),overflow:"hidden",borderRadius:"sm",[la.variable]:"colors.gray.200",_dark:{[la.variable]:"colors.whiteAlpha.200"},_disabled:{[la.variable]:"colors.gray.300",_dark:{[la.variable]:"colors.whiteAlpha.300"}},bg:la.reference}),bj=e=>{let{orientation:t}=e;return{...Tu({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:Bu.reference,h:Bu.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"}}},Sj=e=>{let{colorScheme:t}=e;return{width:"inherit",height:"inherit",[la.variable]:`colors.${t}.500`,_dark:{[la.variable]:`colors.${t}.200`},bg:la.reference}},wj=ym(e=>({container:vj(e),track:yj(e),thumb:bj(e),filledTrack:Sj(e)})),Cj=ym({container:{[Bu.variable]:"sizes.4",[Au.variable]:"sizes.1"}}),Pj=ym({container:{[Bu.variable]:"sizes.3.5",[Au.variable]:"sizes.1"}}),kj=ym({container:{[Bu.variable]:"sizes.2.5",[Au.variable]:"sizes.0.5"}}),Tj={lg:Cj,md:Pj,sm:kj},_F=Ij({baseStyle:wj,sizes:Tj,defaultProps:{size:"md",colorScheme:"blue"}});var ii=ke("spinner-size"),Dj={width:[ii.reference],height:[ii.reference]},Fj={xs:{[ii.variable]:"sizes.3"},sm:{[ii.variable]:"sizes.4"},md:{[ii.variable]:"sizes.6"},lg:{[ii.variable]:"sizes.8"},xl:{[ii.variable]:"sizes.12"}},NF={baseStyle:Dj,sizes:Fj,defaultProps:{size:"md"}};var{defineMultiStyleConfig:Ej,definePartsStyle:zF}=H(F0.keys),Oj={fontWeight:"medium"},Bj={opacity:.8,marginBottom:"2"},Aj={verticalAlign:"baseline",fontWeight:"semibold"},Rj={marginEnd:1,w:"3.5",h:"3.5",verticalAlign:"middle"},Mj=zF({container:{},label:Oj,helpText:Bj,number:Aj,icon:Rj}),Lj={md:zF({label:{fontSize:"sm"},helpText:{fontSize:"sm"},number:{fontSize:"2xl"}})},VF=Ej({baseStyle:Mj,sizes:Lj,defaultProps:{size:"md"}});var Y0=B("kbd-bg"),_j={[Y0.variable]:"colors.gray.100",_dark:{[Y0.variable]:"colors.whiteAlpha.100"},bg:Y0.reference,borderRadius:"md",borderWidth:"1px",borderBottomWidth:"3px",fontSize:"0.8em",fontWeight:"bold",lineHeight:"normal",px:"0.4em",whiteSpace:"nowrap"},HF={baseStyle:_j};var Nj={transitionProperty:"common",transitionDuration:"fast",transitionTimingFunction:"ease-out",cursor:"pointer",textDecoration:"none",outline:"none",color:"inherit",_hover:{textDecoration:"underline"},_focusVisible:{boxShadow:"outline"}},jF={baseStyle:Nj};var{defineMultiStyleConfig:zj,definePartsStyle:Vj}=H(y0.keys),Hj={marginEnd:"2",display:"inline",verticalAlign:"text-bottom"},jj=Vj({icon:Hj}),WF=zj({baseStyle:jj});var{defineMultiStyleConfig:Wj,definePartsStyle:$j}=H(b0.keys),Ho=B("menu-bg"),X0=B("menu-shadow"),Uj={[Ho.variable]:"#fff",[X0.variable]:"shadows.sm",_dark:{[Ho.variable]:"colors.gray.700",[X0.variable]:"shadows.dark-lg"},color:"inherit",minW:"3xs",py:"2",zIndex:1,borderRadius:"md",borderWidth:"1px",bg:Ho.reference,boxShadow:X0.reference},qj={py:"1.5",px:"3",transitionProperty:"background",transitionDuration:"ultra-fast",transitionTimingFunction:"ease-in",_focus:{[Ho.variable]:"colors.gray.100",_dark:{[Ho.variable]:"colors.whiteAlpha.100"}},_active:{[Ho.variable]:"colors.gray.200",_dark:{[Ho.variable]:"colors.whiteAlpha.200"}},_expanded:{[Ho.variable]:"colors.gray.100",_dark:{[Ho.variable]:"colors.whiteAlpha.100"}},_disabled:{opacity:.4,cursor:"not-allowed"},bg:Ho.reference},Gj={mx:4,my:2,fontWeight:"semibold",fontSize:"sm"},Yj={display:"inline-flex",alignItems:"center",justifyContent:"center",flexShrink:0},Xj={opacity:.6},Kj={border:0,borderBottom:"1px solid",borderColor:"inherit",my:"2",opacity:.6},Qj={transitionProperty:"common",transitionDuration:"normal"},Zj=$j({button:Qj,list:Uj,item:qj,groupTitle:Gj,icon:Yj,command:Xj,divider:Kj}),$F=Wj({baseStyle:Zj});var{defineMultiStyleConfig:Jj,definePartsStyle:Z0}=H(S0.keys),K0=B("modal-bg"),Q0=B("modal-shadow"),eW={bg:"blackAlpha.600",zIndex:"modal"},tW=e=>{let{isCentered:t,scrollBehavior:r}=e;return{display:"flex",zIndex:"modal",justifyContent:"center",alignItems:t?"center":"flex-start",overflow:r==="inside"?"hidden":"auto",overscrollBehaviorY:"none"}},rW=e=>{let{isCentered:t,scrollBehavior:r}=e;return{borderRadius:"md",color:"inherit",my:t?"auto":"16",mx:t?"auto":void 0,zIndex:"modal",maxH:r==="inside"?"calc(100% - 7.5rem)":void 0,[K0.variable]:"colors.white",[Q0.variable]:"shadows.lg",_dark:{[K0.variable]:"colors.gray.700",[Q0.variable]:"shadows.dark-lg"},bg:K0.reference,boxShadow:Q0.reference}},oW={px:"6",py:"4",fontSize:"xl",fontWeight:"semibold"},nW={position:"absolute",top:"2",insetEnd:"3"},aW=e=>{let{scrollBehavior:t}=e;return{px:"6",py:"2",flex:"1",overflow:t==="inside"?"auto":void 0}},iW={px:"6",py:"4"},sW=Z0(e=>({overlay:eW,dialogContainer:We(tW,e),dialog:We(rW,e),header:oW,closeButton:nW,body:We(aW,e),footer:iW}));function vo(e){return Z0(e==="full"?{dialog:{maxW:"100vw",minH:"$100vh",my:"0",borderRadius:"0"}}:{dialog:{maxW:e}})}var lW={xs:vo("xs"),sm:vo("sm"),md:vo("md"),lg:vo("lg"),xl:vo("xl"),"2xl":vo("2xl"),"3xl":vo("3xl"),"4xl":vo("4xl"),"5xl":vo("5xl"),"6xl":vo("6xl"),full:vo("full")},UF=Jj({baseStyle:sW,sizes:lW,defaultProps:{size:"md"}});var{defineMultiStyleConfig:fW,definePartsStyle:qF}=H(w0.keys),rb=ke("number-input-stepper-width"),GF=ke("number-input-input-padding"),uW=eo(rb).add("0.5rem").toString(),J0=ke("number-input-bg"),eb=ke("number-input-color"),tb=ke("number-input-border-color"),cW={[rb.variable]:"sizes.6",[GF.variable]:uW},dW=e=>{var t,r;return(r=(t=We(Q.baseStyle,e))==null?void 0:t.field)!=null?r:{}},pW={width:rb.reference},mW={borderStart:"1px solid",borderStartColor:tb.reference,color:eb.reference,bg:J0.reference,[eb.variable]:"colors.chakra-body-text",[tb.variable]:"colors.chakra-border-color",_dark:{[eb.variable]:"colors.whiteAlpha.800",[tb.variable]:"colors.whiteAlpha.300"},_active:{[J0.variable]:"colors.gray.200",_dark:{[J0.variable]:"colors.whiteAlpha.300"}},_disabled:{opacity:.4,cursor:"not-allowed"}},xW=qF(e=>{var t;return{root:cW,field:(t=We(dW,e))!=null?t:{},stepperGroup:pW,stepper:mW}});function bm(e){var t,r,o;let n=(t=Q.sizes)==null?void 0:t[e],a={lg:"md",md:"md",sm:"sm",xs:"sm"},i=(o=(r=n.field)==null?void 0:r.fontSize)!=null?o:"md",s=rm.fontSizes[i];return qF({field:{...n.field,paddingInlineEnd:GF.reference,verticalAlign:"top"},stepper:{fontSize:eo(s).multiply(.75).toString(),_first:{borderTopEndRadius:a[e]},_last:{borderBottomEndRadius:a[e],mt:"-1px",borderTopWidth:1}}})}var hW={xs:bm("xs"),sm:bm("sm"),md:bm("md"),lg:bm("lg")},YF=fW({baseStyle:xW,sizes:hW,variants:Q.variants,defaultProps:Q.defaultProps});var XF,gW={...(XF=Q.baseStyle)==null?void 0:XF.field,textAlign:"center"},IW={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"}},KF,QF,vW={outline:e=>{var t,r,o;return(o=(r=We((t=Q.variants)==null?void 0:t.outline,e))==null?void 0:r.field)!=null?o:{}},flushed:e=>{var t,r,o;return(o=(r=We((t=Q.variants)==null?void 0:t.flushed,e))==null?void 0:r.field)!=null?o:{}},filled:e=>{var t,r,o;return(o=(r=We((t=Q.variants)==null?void 0:t.filled,e))==null?void 0:r.field)!=null?o:{}},unstyled:(QF=(KF=Q.variants)==null?void 0:KF.unstyled.field)!=null?QF:{}},ZF={baseStyle:gW,sizes:IW,variants:vW,defaultProps:Q.defaultProps};var{defineMultiStyleConfig:yW,definePartsStyle:bW}=H(C0.keys),Sm=ke("popper-bg"),SW=ke("popper-arrow-bg"),JF=ke("popper-arrow-shadow-color"),wW={zIndex:10},CW={[Sm.variable]:"colors.white",bg:Sm.reference,[SW.variable]:Sm.reference,[JF.variable]:"colors.gray.200",_dark:{[Sm.variable]:"colors.gray.700",[JF.variable]:"colors.whiteAlpha.300"},width:"xs",border:"1px solid",borderColor:"inherit",borderRadius:"md",boxShadow:"sm",zIndex:"inherit",_focusVisible:{outline:0,boxShadow:"outline"}},PW={px:3,py:2,borderBottomWidth:"1px"},kW={px:3,py:2},TW={px:3,py:2,borderTopWidth:"1px"},DW={position:"absolute",borderRadius:"md",top:1,insetEnd:2,padding:2},FW=bW({popper:wW,content:CW,header:PW,body:kW,footer:TW,closeButton:DW}),eE=yW({baseStyle:FW});var{definePartsStyle:ab,defineMultiStyleConfig:EW}=H(x0.keys),ob=B("drawer-bg"),nb=B("drawer-box-shadow");function js(e){return ab(e==="full"?{dialog:{maxW:"100vw",h:"100vh"}}:{dialog:{maxW:e}})}var OW={bg:"blackAlpha.600",zIndex:"modal"},BW={display:"flex",zIndex:"modal",justifyContent:"center"},AW=e=>{let{isFullHeight:t}=e;return{...t&&{height:"100vh"},zIndex:"modal",maxH:"100vh",color:"inherit",[ob.variable]:"colors.white",[nb.variable]:"shadows.lg",_dark:{[ob.variable]:"colors.gray.700",[nb.variable]:"shadows.dark-lg"},bg:ob.reference,boxShadow:nb.reference}},RW={px:"6",py:"4",fontSize:"xl",fontWeight:"semibold"},MW={position:"absolute",top:"2",insetEnd:"3"},LW={px:"6",py:"2",flex:"1",overflow:"auto"},_W={px:"6",py:"4"},NW=ab(e=>({overlay:OW,dialogContainer:BW,dialog:We(AW,e),header:RW,closeButton:MW,body:LW,footer:_W})),zW={xs:js("xs"),sm:js("md"),md:js("lg"),lg:js("2xl"),xl:js("4xl"),full:js("full")},tE=EW({baseStyle:NW,sizes:zW,defaultProps:{size:"xs"}});var{definePartsStyle:VW,defineMultiStyleConfig:HW}=H(h0.keys),jW={borderRadius:"md",py:"1",transitionProperty:"common",transitionDuration:"normal"},WW={borderRadius:"md",py:"1",transitionProperty:"common",transitionDuration:"normal",width:"full",_focusVisible:{boxShadow:"outline"},_placeholder:{opacity:.6}},$W={borderRadius:"md",py:"1",transitionProperty:"common",transitionDuration:"normal",width:"full",_focusVisible:{boxShadow:"outline"},_placeholder:{opacity:.6}},UW=VW({preview:jW,input:WW,textarea:$W}),rE=HW({baseStyle:UW});var{definePartsStyle:qW,defineMultiStyleConfig:GW}=H(g0.keys),Ws=B("form-control-color"),YW={marginStart:"1",[Ws.variable]:"colors.red.500",_dark:{[Ws.variable]:"colors.red.300"},color:Ws.reference},XW={mt:"2",[Ws.variable]:"colors.gray.600",_dark:{[Ws.variable]:"colors.whiteAlpha.600"},color:Ws.reference,lineHeight:"normal",fontSize:"sm"},KW=qW({container:{width:"100%",position:"relative"},requiredIndicator:YW,helperText:XW}),oE=GW({baseStyle:KW});var{definePartsStyle:QW,defineMultiStyleConfig:ZW}=H(I0.keys),$s=B("form-error-color"),JW={[$s.variable]:"colors.red.500",_dark:{[$s.variable]:"colors.red.300"},color:$s.reference,mt:"2",fontSize:"sm",lineHeight:"normal"},e6={marginEnd:"0.5em",[$s.variable]:"colors.red.500",_dark:{[$s.variable]:"colors.red.300"},color:$s.reference},t6=QW({text:JW,icon:e6}),nE=ZW({baseStyle:t6});var r6={fontSize:"md",marginEnd:"3",mb:"2",fontWeight:"medium",transitionProperty:"common",transitionDuration:"normal",opacity:1,_disabled:{opacity:.4}},aE={baseStyle:r6};var o6={fontFamily:"heading",fontWeight:"bold"},n6={"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}},iE={baseStyle:o6,sizes:n6,defaultProps:{size:"xl"}};var{defineMultiStyleConfig:a6,definePartsStyle:i6}=H(p0.keys),ib=B("breadcrumb-link-decor"),s6={transitionProperty:"common",transitionDuration:"fast",transitionTimingFunction:"ease-out",outline:"none",color:"inherit",textDecoration:ib.reference,[ib.variable]:"none","&:not([aria-current=page])":{cursor:"pointer",_hover:{[ib.variable]:"underline"},_focusVisible:{boxShadow:"outline"}}},l6=i6({link:s6}),sE=a6({baseStyle:l6});var f6={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"}}},lE=e=>{let{colorScheme:t,theme:r}=e;if(t==="gray")return{color:N("gray.800","whiteAlpha.900")(e),_hover:{bg:N("gray.100","whiteAlpha.200")(e)},_active:{bg:N("gray.200","whiteAlpha.300")(e)}};let o=zo(`${t}.200`,.12)(r),n=zo(`${t}.200`,.24)(r);return{color:N(`${t}.600`,`${t}.200`)(e),bg:"transparent",_hover:{bg:N(`${t}.50`,o)(e)},_active:{bg:N(`${t}.100`,n)(e)}}},u6=e=>{let{colorScheme:t}=e,r=N("gray.200","whiteAlpha.300")(e);return{border:"1px solid",borderColor:t==="gray"?r:"currentColor",".chakra-button__group[data-attached][data-orientation=horizontal] > &:not(:last-of-type)":{marginEnd:"-1px"},".chakra-button__group[data-attached][data-orientation=vertical] > &:not(:last-of-type)":{marginBottom:"-1px"},...We(lE,e)}},c6={yellow:{bg:"yellow.400",color:"black",hoverBg:"yellow.500",activeBg:"yellow.600"},cyan:{bg:"cyan.400",color:"black",hoverBg:"cyan.500",activeBg:"cyan.600"}},d6=e=>{var t;let{colorScheme:r}=e;if(r==="gray"){let l=N("gray.100","whiteAlpha.200")(e);return{bg:l,color:N("gray.800","whiteAlpha.900")(e),_hover:{bg:N("gray.200","whiteAlpha.300")(e),_disabled:{bg:l}},_active:{bg:N("gray.300","whiteAlpha.400")(e)}}}let{bg:o=`${r}.500`,color:n="white",hoverBg:a=`${r}.600`,activeBg:i=`${r}.700`}=(t=c6[r])!=null?t:{},s=N(o,`${r}.200`)(e);return{bg:s,color:N(n,"gray.800")(e),_hover:{bg:N(a,`${r}.300`)(e),_disabled:{bg:s}},_active:{bg:N(i,`${r}.400`)(e)}}},p6=e=>{let{colorScheme:t}=e;return{padding:0,height:"auto",lineHeight:"normal",verticalAlign:"baseline",color:N(`${t}.500`,`${t}.200`)(e),_hover:{textDecoration:"underline",_disabled:{textDecoration:"none"}},_active:{color:N(`${t}.700`,`${t}.500`)(e)}}},m6={bg:"none",color:"inherit",display:"inline",lineHeight:"inherit",m:"0",p:"0"},x6={ghost:lE,outline:u6,solid:d6,link:p6,unstyled:m6},h6={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"}},fE={baseStyle:f6,variants:x6,sizes:h6,defaultProps:{variant:"solid",size:"md",colorScheme:"gray"}};var{definePartsStyle:si,defineMultiStyleConfig:g6}=H(R0.keys),Cm=B("card-bg"),xn=B("card-padding"),uE=B("card-shadow"),wm=B("card-radius"),cE=B("card-border-width","0"),dE=B("card-border-color"),I6=si({container:{[Cm.variable]:"colors.chakra-body-bg",backgroundColor:Cm.reference,boxShadow:uE.reference,borderRadius:wm.reference,color:"chakra-body-text",borderWidth:cE.reference,borderColor:dE.reference},body:{padding:xn.reference,flex:"1 1 0%"},header:{padding:xn.reference},footer:{padding:xn.reference}}),v6={sm:si({container:{[wm.variable]:"radii.base",[xn.variable]:"space.3"}}),md:si({container:{[wm.variable]:"radii.md",[xn.variable]:"space.5"}}),lg:si({container:{[wm.variable]:"radii.xl",[xn.variable]:"space.7"}})},y6={elevated:si({container:{[uE.variable]:"shadows.base",_dark:{[Cm.variable]:"colors.gray.700"}}}),outline:si({container:{[cE.variable]:"1px",[dE.variable]:"colors.chakra-border-color"}}),filled:si({container:{[Cm.variable]:"colors.chakra-subtle-bg"}}),unstyled:{body:{[xn.variable]:0},header:{[xn.variable]:0},footer:{[xn.variable]:0}}},pE=g6({baseStyle:I6,variants:y6,sizes:v6,defaultProps:{variant:"elevated",size:"md"}});var Mu=ke("close-button-size"),Ru=ke("close-button-bg"),b6={w:[Mu.reference],h:[Mu.reference],borderRadius:"md",transitionProperty:"common",transitionDuration:"normal",_disabled:{opacity:.4,cursor:"not-allowed",boxShadow:"none"},_hover:{[Ru.variable]:"colors.blackAlpha.100",_dark:{[Ru.variable]:"colors.whiteAlpha.100"}},_active:{[Ru.variable]:"colors.blackAlpha.200",_dark:{[Ru.variable]:"colors.whiteAlpha.200"}},_focusVisible:{boxShadow:"outline"},bg:Ru.reference},S6={lg:{[Mu.variable]:"sizes.10",fontSize:"md"},md:{[Mu.variable]:"sizes.8",fontSize:"xs"},sm:{[Mu.variable]:"sizes.6",fontSize:"2xs"}},mE={baseStyle:b6,sizes:S6,defaultProps:{size:"md"}};var{variants:w6,defaultProps:C6}=ia,P6={fontFamily:"mono",fontSize:"sm",px:"0.2em",borderRadius:"sm",bg:je.bg.reference,color:je.color.reference,boxShadow:je.shadow.reference},xE={baseStyle:P6,variants:w6,defaultProps:C6};var k6={w:"100%",mx:"auto",maxW:"prose",px:"4"},hE={baseStyle:k6};var T6={opacity:.6,borderColor:"inherit"},D6={borderStyle:"solid"},F6={borderStyle:"dashed"},E6={solid:D6,dashed:F6},gE={baseStyle:T6,variants:E6,defaultProps:{variant:"solid"}};var{definePartsStyle:O6,defineMultiStyleConfig:B6}=H(u0.keys),A6={borderTopWidth:"1px",borderColor:"inherit",_last:{borderBottomWidth:"1px"}},R6={transitionProperty:"common",transitionDuration:"normal",fontSize:"md",_focusVisible:{boxShadow:"outline"},_hover:{bg:"blackAlpha.50"},_disabled:{opacity:.4,cursor:"not-allowed"},px:"4",py:"2"},M6={pt:"2",px:"4",pb:"5"},L6={fontSize:"1.25em"},_6=O6({container:A6,button:R6,panel:M6,icon:L6}),IE=B6({baseStyle:_6});var{definePartsStyle:Lu,defineMultiStyleConfig:N6}=H(c0.keys),Lr=B("alert-fg"),hn=B("alert-bg"),z6=Lu({container:{bg:hn.reference,px:"4",py:"3"},title:{fontWeight:"bold",lineHeight:"6",marginEnd:"2"},description:{lineHeight:"6"},icon:{color:Lr.reference,flexShrink:0,marginEnd:"3",w:"5",h:"6"},spinner:{color:Lr.reference,flexShrink:0,marginEnd:"3",w:"5",h:"5"}});function sb(e){let{theme:t,colorScheme:r}=e,o=zo(`${r}.200`,.16)(t);return{light:`colors.${r}.100`,dark:o}}var V6=Lu(e=>{let{colorScheme:t}=e,r=sb(e);return{container:{[Lr.variable]:`colors.${t}.600`,[hn.variable]:r.light,_dark:{[Lr.variable]:`colors.${t}.200`,[hn.variable]:r.dark}}}}),H6=Lu(e=>{let{colorScheme:t}=e,r=sb(e);return{container:{[Lr.variable]:`colors.${t}.600`,[hn.variable]:r.light,_dark:{[Lr.variable]:`colors.${t}.200`,[hn.variable]:r.dark},paddingStart:"3",borderStartWidth:"4px",borderStartColor:Lr.reference}}}),j6=Lu(e=>{let{colorScheme:t}=e,r=sb(e);return{container:{[Lr.variable]:`colors.${t}.600`,[hn.variable]:r.light,_dark:{[Lr.variable]:`colors.${t}.200`,[hn.variable]:r.dark},pt:"2",borderTopWidth:"4px",borderTopColor:Lr.reference}}}),W6=Lu(e=>{let{colorScheme:t}=e;return{container:{[Lr.variable]:"colors.white",[hn.variable]:`colors.${t}.600`,_dark:{[Lr.variable]:"colors.gray.900",[hn.variable]:`colors.${t}.200`},color:Lr.reference}}}),$6={subtle:V6,"left-accent":H6,"top-accent":j6,solid:W6},vE=N6({baseStyle:z6,variants:$6,defaultProps:{variant:"subtle",colorScheme:"blue"}});var{definePartsStyle:yE,defineMultiStyleConfig:U6}=H(d0.keys),Us=B("avatar-border-color"),_u=B("avatar-bg"),Nu=B("avatar-font-size"),qs=B("avatar-size"),q6={borderRadius:"full",border:"0.2em solid",borderColor:Us.reference,[Us.variable]:"white",_dark:{[Us.variable]:"colors.gray.800"}},G6={bg:_u.reference,fontSize:Nu.reference,width:qs.reference,height:qs.reference,lineHeight:"1",[_u.variable]:"colors.gray.200",_dark:{[_u.variable]:"colors.whiteAlpha.400"}},Y6=e=>{let{name:t,theme:r}=e,o=t?_0({string:t}):"colors.gray.400",n=L0(o)(r),a="white";return n||(a="gray.800"),{bg:_u.reference,fontSize:Nu.reference,color:a,borderColor:Us.reference,verticalAlign:"top",width:qs.reference,height:qs.reference,"&:not([data-loaded])":{[_u.variable]:o},[Us.variable]:"colors.white",_dark:{[Us.variable]:"colors.gray.800"}}},X6={fontSize:Nu.reference,lineHeight:"1"},K6=yE(e=>({badge:We(q6,e),excessLabel:We(G6,e),container:We(Y6,e),label:X6}));function fa(e){let t=e!=="100%"?nm[e]:void 0;return yE({container:{[qs.variable]:t??e,[Nu.variable]:`calc(${t??e} / 2.5)`},excessLabel:{[qs.variable]:t??e,[Nu.variable]:`calc(${t??e} / 2.5)`}})}var Q6={"2xs":fa(4),xs:fa(6),sm:fa(8),md:fa(12),lg:fa(16),xl:fa(24),"2xl":fa(32),full:fa("100%")},bE=U6({baseStyle:K6,sizes:Q6,defaultProps:{size:"md"}});var SE={Accordion:IE,Alert:vE,Avatar:bE,Badge:ia,Breadcrumb:sE,Button:fE,Checkbox:Hs,CloseButton:mE,Code:xE,Container:hE,Divider:gE,Drawer:tE,Editable:rE,Form:oE,FormError:nE,FormLabel:aE,Heading:iE,Input:Q,Kbd:HF,Link:jF,List:WF,Menu:$F,Modal:UF,NumberInput:YF,PinInput:ZF,Popover:eE,Progress:wF,Radio:CF,Select:RF,Skeleton:MF,SkipLink:LF,Slider:_F,Spinner:NF,Stat:VF,Switch:nF,Table:aF,Tabs:iF,Tag:fF,Textarea:bF,Tooltip:SF,Card:pE,Stepper:jD};var lb={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"}}};var fb={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"}}};var wE="ltr",CE={useSystemColorMode:!1,initialColorMode:"light",cssVarPrefix:"chakra"},PE={semanticTokens:lb,direction:wE,...f0,components:SE,styles:fb,config:CE},kE={semanticTokens:lb,direction:wE,components:{},...f0,styles:fb,config:CE};function TE(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}var ub=TE();var Pm=C(As(),1);function cb(e,t){let r={};return Object.keys(e).forEach(o=>{t.includes(o)||(r[o]=e[o])}),r}function DE(e,t,r,o){let n=typeof t=="string"?t.split("."):[t];for(o=0;o{let t=new WeakMap;return(o,n,a,i)=>{if(typeof o>"u")return e(o,n,a);t.has(o)||t.set(o,new Map);let s=t.get(o);if(s.has(n))return s.get(n);let l=e(o,n,a,i);return s.set(n,l),l}},zu=FE(DE);function km(e,t){let r={};return Object.keys(e).forEach(o=>{let n=e[o];t(n,o,e)&&(r[o]=n)}),r}var Vu=e=>km(e,t=>t!=null);function EE(e){return typeof e=="function"}function Hu(e,...t){return EE(e)?e(...t):e}function db(...e){return function(r){e.some(o=>(o?.(r),r?.defaultPrevented))}}var AE=C(F(),1),RE=C(BE(),1);function ME(e,t={}){var r;let{styleConfig:o,...n}=t,{theme:a,colorMode:i}=Hy(),s=e?zu(a,`components.${e}`):void 0,l=o||s,f=(0,Pm.default)({theme:a,colorMode:i},(r=l?.defaultProps)!=null?r:{},Vu(cb(n,["children"]))),u=(0,AE.useRef)({});if(l){let d=BD(l)(f);(0,RE.default)(u.current,d)||(u.current=d)}return u.current}function ct(e,t={}){return ME(e,t)}function yo(e,t={}){return ME(e,t)}var r$=new Set([...ED,"textStyle","layerStyle","apply","noOfLines","focusBorderColor","errorBorderColor","as","__css","css","sx"]),o$=new Set(["htmlWidth","htmlHeight","htmlSize","htmlTranslate"]);function LE(e){return o$.has(e)||!r$.has(e)}function pb(e,...t){if(e==null)throw new TypeError("Cannot convert undefined or null to object");let r={...e};for(let o of t)if(o!=null)for(let n in o)Object.prototype.hasOwnProperty.call(o,n)&&(n in r&&delete r[n],r[n]=o[n]);return r}var ua=C(F());Dm();var a$=mb,i$=function(t){return t!=="theme"},NE=function(t){return typeof t=="string"&&t.charCodeAt(0)>96?a$:i$},zE=function(t,r,o){var n;if(r){var a=r.shouldForwardProp;n=t.__emotion_forwardProp&&a?function(i){return t.__emotion_forwardProp(i)&&a(i)}:a}return typeof n!="function"&&o&&(n=t.__emotion_forwardProp),n};var s$=function(t){var r=t.cache,o=t.serialized,n=t.isStringTag;return If(r,o,n),cd(function(){return vf(r,o,n)}),null},VE=function e(t,r){var o=t.__emotion_real===t,n=o&&t.__emotion_base||t,a,i;r!==void 0&&(a=r.label,i=r.target);var s=zE(t,r,o),l=s||NE(n),f=!l("as");return function(){var u=arguments,c=o&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(a!==void 0&&c.push("label:"+a+";"),u[0]==null||u[0].raw===void 0)c.push.apply(c,u);else{c.push(u[0][0]);for(var d=u.length,m=1;mt=>{let{theme:r,css:o,__css:n,sx:a,...i}=t,s=km(i,(c,d)=>OD(d)),l=Hu(e,t),f=pb({},n,l,Vu(s),a),u=tm(f)(t.theme);return o?[u,o]:u};function Fm(e,t){let{baseStyle:r,...o}=t??{};o.shouldForwardProp||(o.shouldForwardProp=LE);let n=u$({baseStyle:r}),a=f$(e,o)(n);return xb.default.forwardRef(function(l,f){let{colorMode:u,forced:c}=Za();return xb.default.createElement(a,{ref:f,"data-theme":c?u:void 0,...l})})}function c$(){let e=new Map;return new Proxy(Fm,{apply(t,r,o){return Fm(...o)},get(t,r){return e.has(r)||e.set(r,Fm(r)),e.get(r)}})}var A=c$();var jE=C(F(),1);function V(e){return(0,jE.forwardRef)(e)}var Em=C(F(),1);function hb(e={}){let{strict:t=!0,errorMessage:r="useContext: `context` is undefined. Seems you forgot to wrap component within the Provider",name:o}=e,n=(0,Em.createContext)(void 0);n.displayName=o;function a(){var i;let s=(0,Em.useContext)(n);if(!s&&t){let l=new Error(r);throw l.name="ContextError",(i=Error.captureStackTrace)==null||i.call(Error,l,a),l}return s}return[n.Provider,a,n]}var WE=C(F(),1),Gs=C(L(),1);function gb(e){let{cssVarsRoot:t,theme:r,children:o}=e,n=(0,WE.useMemo)(()=>TD(r),[r]);return(0,Gs.jsxs)(vI,{theme:n,children:[(0,Gs.jsx)($E,{root:t}),o]})}function $E({root:e=":host, :root"}){let t=[e,"[data-theme]"].join(",");return(0,Gs.jsx)(Ji,{styles:r=>({[t]:r.__cssVars})})}var[d$,p$]=hb({name:"StylesContext",errorMessage:"useStyles: `styles` is undefined. Seems you forgot to wrap the components in `` "});function Ib(){let{colorMode:e}=Za();return(0,Gs.jsx)(Ji,{styles:t=>{let r=zu(t,"styles.global"),o=Hu(r,{theme:t,colorMode:e});return o?tm(o)(t):void 0}})}var ca=C(F(),1),Om=C(L(),1),UE=(0,ca.createContext)({getDocument(){return document},getWindow(){return window}});UE.displayName="EnvironmentContext";function Bm(e){let{children:t,environment:r,disabled:o}=e,n=(0,ca.useRef)(null),a=(0,ca.useMemo)(()=>r||{getDocument:()=>{var s,l;return(l=(s=n.current)==null?void 0:s.ownerDocument)!=null?l:document},getWindow:()=>{var s,l;return(l=(s=n.current)==null?void 0:s.ownerDocument.defaultView)!=null?l:window}},[r]),i=!o||!r;return(0,Om.jsxs)(UE.Provider,{value:a,children:[t,i&&(0,Om.jsx)("span",{id:"__chakra_env",hidden:!0,ref:n})]})}Bm.displayName="EnvironmentProvider";var gn=C(L(),1),vb=e=>{let{children:t,colorModeManager:r,portalZIndex:o,resetScope:n,resetCSS:a=!0,theme:i={},environment:s,cssVarsRoot:l,disableEnvironment:f,disableGlobalStyle:u}=e,c=(0,gn.jsx)(Bm,{environment:s,disabled:f,children:t});return(0,gn.jsx)(gb,{theme:i,cssVarsRoot:l,children:(0,gn.jsxs)(zp,{colorModeManager:r,options:i.config,children:[a?(0,gn.jsx)(wI,{scope:n}):(0,gn.jsx)(SI,{}),!u&&(0,gn.jsx)(Ib,{}),o?(0,gn.jsx)(xd,{zIndex:o,children:c}):c]})})};var m$=(e,t)=>e.find(r=>r.id===t);function yb(e,t){let r=bb(e,t),o=r?e[r].findIndex(n=>n.id===t):-1;return{position:r,index:o}}function bb(e,t){for(let[r,o]of Object.entries(e))if(m$(o,t))return r}function qE(e){let t=e.includes("right"),r=e.includes("left"),o="center";return t&&(o="flex-end"),r&&(o="flex-start"),{display:"flex",flexDirection:"column",alignItems:o}}function GE(e){let r=e==="top"||e==="bottom"?"0 auto":void 0,o=e.includes("top")?"env(safe-area-inset-top, 0px)":void 0,n=e.includes("bottom")?"env(safe-area-inset-bottom, 0px)":void 0,a=e.includes("left")?void 0:"env(safe-area-inset-right, 0px)",i=e.includes("right")?void 0:"env(safe-area-inset-left, 0px)";return{position:"fixed",zIndex:"var(--toast-z-index, 5500)",pointerEvents:"none",display:"flex",flexDirection:"column",margin:r,top:o,bottom:n,right:a,left:i}}var YE=C(F(),1);var Ys=C(F(),1);function li(e,t=[]){let r=(0,Ys.useRef)(e);return(0,Ys.useEffect)(()=>{r.current=e}),(0,Ys.useCallback)((...o)=>{var n;return(n=r.current)==null?void 0:n.call(r,...o)},t)}function XE(e,t){let r=li(e);(0,YE.useEffect)(()=>{if(t==null)return;let o=null;return o=window.setTimeout(()=>{r()},t),()=>{o&&window.clearTimeout(o)}},[t,r])}var Xs=C(F(),1);function Ks(e,t){let r=(0,Xs.useRef)(!1),o=(0,Xs.useRef)(!1);(0,Xs.useEffect)(()=>{if(r.current&&o.current)return e();o.current=!0},t),(0,Xs.useEffect)(()=>(r.current=!0,()=>{r.current=!1}),[])}var Wm=C(L(),1),ci=C(F(),1);var KE=C(F(),1),Qs=(0,KE.createContext)({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});var QE=C(F(),1),da=(0,QE.createContext)({});var to=C(F(),1);var ZE=C(F(),1),In=(0,ZE.createContext)(null);var Am=C(F(),1);var Zs=typeof document<"u";var Js=Zs?Am.useLayoutEffect:Am.useEffect;var JE=C(F(),1),Rm=(0,JE.createContext)({strict:!1});var el=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase();var x$="framerAppearId",Mm="data-"+el(x$);var tl={skipAnimations:!1,useManualTiming:!1};var Lm=class{constructor(){this.order=[],this.scheduled=new Set}add(t){if(!this.scheduled.has(t))return this.scheduled.add(t),this.order.push(t),!0}remove(t){let r=this.order.indexOf(t);r!==-1&&(this.order.splice(r,1),this.scheduled.delete(t))}clear(){this.order.length=0,this.scheduled.clear()}};function eO(e){let t=new Lm,r=new Lm,o=0,n=!1,a=!1,i=new WeakSet,s={schedule:(l,f=!1,u=!1)=>{let c=u&&n,d=c?t:r;return f&&i.add(l),d.add(l)&&c&&n&&(o=t.order.length),l},cancel:l=>{r.remove(l),i.delete(l)},process:l=>{if(n){a=!0;return}if(n=!0,[t,r]=[r,t],r.clear(),o=t.order.length,o)for(let f=0;f(c[d]=eO(()=>r=!0),c),{}),i=c=>{a[c].process(n)},s=()=>{let c=tl.useManualTiming?n.timestamp:performance.now();r=!1,n.delta=o?1e3/60:Math.max(Math.min(c-n.timestamp,h$),1),n.timestamp=c,n.isProcessing=!0,_m.forEach(i),n.isProcessing=!1,r&&t&&(o=!1,e(s))},l=()=>{r=!0,o=!0,n.isProcessing||e(s)};return{schedule:_m.reduce((c,d)=>{let m=a[d];return c[d]=(I,h=!1,v=!1)=>(r||l(),m.schedule(I,h,v)),c},{}),cancel:c=>_m.forEach(d=>a[d].cancel(c)),state:n,steps:a}}var{schedule:rl,cancel:yre}=Nm(queueMicrotask,!1);function tO(e,t,r,o){let{visualElement:n}=(0,to.useContext)(da),a=(0,to.useContext)(Rm),i=(0,to.useContext)(In),s=(0,to.useContext)(Qs).reducedMotion,l=(0,to.useRef)();o=o||a.renderer,!l.current&&o&&(l.current=o(e,{visualState:t,parent:n,props:r,presenceContext:i,blockInitialAnimation:i?i.initial===!1:!1,reducedMotionConfig:s}));let f=l.current;(0,to.useInsertionEffect)(()=>{f&&f.update(r,i)});let u=(0,to.useRef)(!!(r[Mm]&&!window.HandoffComplete));return Js(()=>{f&&(rl.postRender(f.render),u.current&&f.animationState&&f.animationState.animateChanges())}),(0,to.useEffect)(()=>{f&&(f.updateFeatures(),!u.current&&f.animationState&&f.animationState.animateChanges(),u.current&&(u.current=!1,window.HandoffComplete=!0))}),f}var rO=C(F(),1);function vn(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function oO(e,t,r){return(0,rO.useCallback)(o=>{o&&e.mount&&e.mount(o),t&&(o?t.mount(o):t.unmount()),r&&(typeof r=="function"?r(o):vn(r)&&(r.current=o))},[t])}var Hm=C(F(),1);function yn(e){return typeof e=="string"||Array.isArray(e)}function pa(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}var zm=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],Wu=["initial",...zm];function fi(e){return pa(e.animate)||Wu.some(t=>yn(e[t]))}function Vm(e){return!!(fi(e)||e.variants)}function nO(e,t){if(fi(e)){let{initial:r,animate:o}=e;return{initial:r===!1||yn(r)?r:void 0,animate:yn(o)?o:void 0}}return e.inherit!==!1?t:{}}function iO(e){let{initial:t,animate:r}=nO(e,(0,Hm.useContext)(da));return(0,Hm.useMemo)(()=>({initial:t,animate:r}),[aO(t),aO(r)])}function aO(e){return Array.isArray(e)?e.join(" "):e}var sO={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"]},ui={};for(let e in sO)ui[e]={isEnabled:t=>sO[e].some(r=>!!t[r])};function lO(e){for(let t in e)ui[t]={...ui[t],...e[t]}}var fO=C(F(),1),ol=(0,fO.createContext)({});var uO=C(F(),1),jm=(0,uO.createContext)({});var cO=Symbol.for("motionComponentSymbol");function dO({preloadedFeatures:e,createVisualElement:t,useRender:r,useVisualState:o,Component:n}){e&&lO(e);function a(s,l){let f,u={...(0,ci.useContext)(Qs),...s,layoutId:g$(s)},{isStatic:c}=u,d=iO(s),m=o(s,c);if(!c&&Zs){d.visualElement=tO(n,m,u,t);let I=(0,ci.useContext)(jm),h=(0,ci.useContext)(Rm).strict;d.visualElement&&(f=d.visualElement.loadFeatures(u,h,e,I))}return(0,Wm.jsxs)(da.Provider,{value:d,children:[f&&d.visualElement?(0,Wm.jsx)(f,{visualElement:d.visualElement,...u}):null,r(n,s,oO(m,d.visualElement,l),m,c,d.visualElement)]})}let i=(0,ci.forwardRef)(a);return i[cO]=n,i}function g$({layoutId:e}){let t=(0,ci.useContext)(ol).id;return t&&e!==void 0?t+"-"+e:e}function pO(e){function t(o,n={}){return dO(e(o,n))}if(typeof Proxy>"u")return t;let r=new Map;return new Proxy(t,{get:(o,n)=>(r.has(n)||r.set(n,t(n)),r.get(n))})}var mO=["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 nl(e){return typeof e!="string"||e.includes("-")?!1:!!(mO.indexOf(e)>-1||/[A-Z]/u.test(e))}var dl=C(F(),1);var wO=C(F(),1);var al={};function xO(e){Object.assign(al,e)}var ma=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],yr=new Set(ma);function $m(e,{layout:t,layoutId:r}){return yr.has(e)||e.startsWith("origin")||(t||r!==void 0)&&(!!al[e]||e==="opacity")}var De=e=>!!(e&&e.getVelocity);var I$={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},v$=ma.length;function hO(e,{enableHardwareAcceleration:t=!0,allowTransformNone:r=!0},o,n){let a="";for(let i=0;it=>typeof t=="string"&&t.startsWith(e),Um=gO("--"),y$=gO("var(--"),il=e=>y$(e)?b$.test(e.split("/*")[0].trim()):!1,b$=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;var IO=(e,t)=>t&&typeof e=="number"?t.transform(e):e;var rr=(e,t,r)=>r>t?t:rtypeof e=="number",parse:parseFloat,transform:e=>e},xa={...jo,transform:e=>rr(0,1,e)},$u={...jo,default:1};var ha=e=>Math.round(e*1e5)/1e5,sl=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu,vO=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu,yO=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu;function bn(e){return typeof e=="string"}var Uu=e=>({test:t=>bn(t)&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),Wo=Uu("deg"),or=Uu("%"),z=Uu("px"),bO=Uu("vh"),SO=Uu("vw"),Sb={...or,parse:e=>or.parse(e)/100,transform:e=>or.transform(e*100)};var wb={...jo,transform:Math.round};var qm={borderWidth:z,borderTopWidth:z,borderRightWidth:z,borderBottomWidth:z,borderLeftWidth:z,borderRadius:z,radius:z,borderTopLeftRadius:z,borderTopRightRadius:z,borderBottomRightRadius:z,borderBottomLeftRadius:z,width:z,maxWidth:z,height:z,maxHeight:z,size:z,top:z,right:z,bottom:z,left:z,padding:z,paddingTop:z,paddingRight:z,paddingBottom:z,paddingLeft:z,margin:z,marginTop:z,marginRight:z,marginBottom:z,marginLeft:z,rotate:Wo,rotateX:Wo,rotateY:Wo,rotateZ:Wo,scale:$u,scaleX:$u,scaleY:$u,scaleZ:$u,skew:Wo,skewX:Wo,skewY:Wo,distance:z,translateX:z,translateY:z,translateZ:z,x:z,y:z,z,perspective:z,transformPerspective:z,opacity:xa,originX:Sb,originY:Sb,originZ:z,zIndex:wb,backgroundPositionX:z,backgroundPositionY:z,fillOpacity:xa,strokeOpacity:xa,numOctaves:wb};function ll(e,t,r,o){let{style:n,vars:a,transform:i,transformOrigin:s}=e,l=!1,f=!1,u=!0;for(let c in t){let d=t[c];if(Um(c)){a[c]=d;continue}let m=qm[c],I=IO(d,m);if(yr.has(c)){if(l=!0,i[c]=I,!u)continue;d!==(m.default||0)&&(u=!1)}else c.startsWith("origin")?(f=!0,s[c]=I):n[c]=I}if(t.transform||(l||o?n.transform=hO(e.transform,r,u,o):n.transform&&(n.transform="none")),f){let{originX:c="50%",originY:d="50%",originZ:m=0}=s;n.transformOrigin=`${c} ${d} ${m}`}}var fl=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function Cb(e,t,r){for(let o in t)!De(t[o])&&!$m(o,r)&&(e[o]=t[o])}function S$({transformTemplate:e},t,r){return(0,wO.useMemo)(()=>{let o=fl();return ll(o,t,{enableHardwareAcceleration:!r},e),Object.assign({},o.vars,o.style)},[t])}function w$(e,t,r){let o=e.style||{},n={};return Cb(n,o,e),Object.assign(n,S$(e,t,r)),n}function CO(e,t,r){let o={},n=w$(e,t,r);return e.drag&&e.dragListener!==!1&&(o.draggable=!1,n.userSelect=n.WebkitUserSelect=n.WebkitTouchCallout="none",n.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(o.tabIndex=0),o.style=n,o}var C$=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function qu(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||C$.has(e)}var PO=e=>!qu(e);function P$(e){e&&(PO=t=>t.startsWith("on")?!qu(t):e(t))}try{P$((Dm(),q_(_E)).default)}catch{}function kO(e,t,r){let o={};for(let n in e)n==="values"&&typeof e.values=="object"||(PO(n)||r===!0&&qu(n)||!t&&!qu(n)||e.draggable&&n.startsWith("onDrag"))&&(o[n]=e[n]);return o}var EO=C(F(),1);function TO(e,t,r){return typeof e=="string"?e:z.transform(t+r*e)}function DO(e,t,r){let o=TO(t,e.x,e.width),n=TO(r,e.y,e.height);return`${o} ${n}`}var k$={offset:"stroke-dashoffset",array:"stroke-dasharray"},T$={offset:"strokeDashoffset",array:"strokeDasharray"};function FO(e,t,r=1,o=0,n=!0){e.pathLength=1;let a=n?k$:T$;e[a.offset]=z.transform(-o);let i=z.transform(t),s=z.transform(r);e[a.array]=`${i} ${s}`}function ul(e,{attrX:t,attrY:r,attrScale:o,originX:n,originY:a,pathLength:i,pathSpacing:s=1,pathOffset:l=0,...f},u,c,d){if(ll(e,f,u,d),c){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};let{attrs:m,style:I,dimensions:h}=e;m.transform&&(h&&(I.transform=m.transform),delete m.transform),h&&(n!==void 0||a!==void 0||I.transform)&&(I.transformOrigin=DO(h,n!==void 0?n:.5,a!==void 0?a:.5)),t!==void 0&&(m.x=t),r!==void 0&&(m.y=r),o!==void 0&&(m.scale=o),i!==void 0&&FO(m,i,s,l,!1)}var Gm=()=>({...fl(),attrs:{}});var cl=e=>typeof e=="string"&&e.toLowerCase()==="svg";function OO(e,t,r,o){let n=(0,EO.useMemo)(()=>{let a=Gm();return ul(a,t,{enableHardwareAcceleration:!1},cl(o),e.transformTemplate),{...a.attrs,style:{...a.style}}},[t]);if(e.style){let a={};Cb(a,e.style,e),n.style={...a,...n.style}}return n}function BO(e=!1){return(r,o,n,{latestValues:a},i)=>{let l=(nl(r)?OO:CO)(o,a,i,r),f=kO(o,typeof r=="string",e),u=r!==dl.Fragment?{...f,...l,ref:n}:{},{children:c}=o,d=(0,dl.useMemo)(()=>De(c)?c.get():c,[c]);return(0,dl.createElement)(r,{...u,children:d})}}function Ym(e,{style:t,vars:r},o,n){Object.assign(e.style,t,n&&n.getProjectionStyles(o));for(let a in r)e.style.setProperty(a,r[a])}var Xm=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 Km(e,t,r,o){Ym(e,t,void 0,o);for(let n in t.attrs)e.setAttribute(Xm.has(n)?n:el(n),t.attrs[n])}function pl(e,t,r){var o;let{style:n}=e,a={};for(let i in n)(De(n[i])||t.style&&De(t.style[i])||$m(i,e)||((o=r?.getValue(i))===null||o===void 0?void 0:o.liveStyle)!==void 0)&&(a[i]=n[i]);return a}function Qm(e,t,r){let o=pl(e,t,r);for(let n in e)if(De(e[n])||De(t[n])){let a=ma.indexOf(n)!==-1?"attr"+n.charAt(0).toUpperCase()+n.substring(1):n;o[a]=e[n]}return o}var Pb=C(F(),1);function ml(e,t,r,o={},n={}){return typeof t=="function"&&(t=t(r!==void 0?r:e.custom,o,n)),typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"&&(t=t(r!==void 0?r:e.custom,o,n)),t}var AO=C(F(),1);function Zm(e){let t=(0,AO.useRef)(null);return t.current===null&&(t.current=e()),t.current}var Gu=e=>Array.isArray(e);var RO=e=>!!(e&&typeof e=="object"&&e.mix&&e.toValue),MO=e=>Gu(e)?e[e.length-1]||0:e;function xl(e){let t=De(e)?e.get():e;return RO(t)?t.toValue():t}function D$({scrapeMotionValuesFromProps:e,createRenderState:t,onMount:r},o,n,a){let i={latestValues:F$(o,n,a,e),renderState:t()};return r&&(i.mount=s=>r(o,s,i)),i}var Jm=e=>(t,r)=>{let o=(0,Pb.useContext)(da),n=(0,Pb.useContext)(In),a=()=>D$(e,t,o,n);return r?a():Zm(a)};function F$(e,t,r,o){let n={},a=o(e,{});for(let d in a)n[d]=xl(a[d]);let{initial:i,animate:s}=e,l=fi(e),f=Vm(e);t&&f&&!l&&e.inherit!==!1&&(i===void 0&&(i=t.initial),s===void 0&&(s=t.animate));let u=r?r.initial===!1:!1;u=u||i===!1;let c=u?s:i;return c&&typeof c!="boolean"&&!pa(c)&&(Array.isArray(c)?c:[c]).forEach(m=>{let I=ml(e,m);if(!I)return;let{transitionEnd:h,transition:v,...x}=I;for(let p in x){let g=x[p];if(Array.isArray(g)){let y=u?g.length-1:0;g=g[y]}g!==null&&(n[p]=g)}for(let p in h)n[p]=h[p]}),n}var ye=e=>e;var{schedule:de,cancel:_r,state:Ke,steps:ex}=Nm(typeof requestAnimationFrame<"u"?requestAnimationFrame:ye,!0);var LO={useVisualState:Jm({scrapeMotionValuesFromProps:Qm,createRenderState:Gm,onMount:(e,t,{renderState:r,latestValues:o})=>{de.read(()=>{try{r.dimensions=typeof t.getBBox=="function"?t.getBBox():t.getBoundingClientRect()}catch{r.dimensions={x:0,y:0,width:0,height:0}}}),de.render(()=>{ul(r,o,{enableHardwareAcceleration:!1},cl(t.tagName),e.transformTemplate),Km(t,r)})}})};var _O={useVisualState:Jm({scrapeMotionValuesFromProps:pl,createRenderState:fl})};function NO(e,{forwardMotionProps:t=!1},r,o){return{...nl(e)?LO:_O,preloadedFeatures:r,useRender:BO(t),createVisualElement:o,Component:e}}function br(e,t,r,o={passive:!0}){return e.addEventListener(t,r,o),()=>e.removeEventListener(t,r)}var tx=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1;function di(e,t="page"){return{point:{x:e[`${t}X`],y:e[`${t}Y`]}}}var zO=e=>t=>tx(t)&&e(t,di(t));function Sr(e,t,r,o){return br(e,t,zO(r),o)}var E$=(e,t)=>r=>t(e(r)),$t=(...e)=>e.reduce(E$);function jO(e){let t=null;return()=>{let r=()=>{t=null};return t===null?(t=e,r):!1}}var VO=jO("dragHorizontal"),HO=jO("dragVertical");function kb(e){let t=!1;if(e==="y")t=HO();else if(e==="x")t=VO();else{let r=VO(),o=HO();r&&o?t=()=>{r(),o()}:(r&&r(),o&&o())}return t}function rx(){let e=kb(!0);return e?(e(),!1):!0}var bt=class{constructor(t){this.isMounted=!1,this.node=t}update(){}};function WO(e,t){let r=t?"pointerenter":"pointerleave",o=t?"onHoverStart":"onHoverEnd",n=(a,i)=>{if(a.pointerType==="touch"||rx())return;let s=e.getProps();e.animationState&&s.whileHover&&e.animationState.setActive("whileHover",t);let l=s[o];l&&l(a,i)};return Sr(e.current,r,n,{passive:!e.getProps()[o]})}var ox=class extends bt{mount(){this.unmount=$t(WO(this.node,!0),WO(this.node,!1))}unmount(){}};var nx=class extends bt{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=$t(br(this.node.current,"focus",()=>this.onFocus()),br(this.node.current,"blur",()=>this.onBlur()))}unmount(){}};var Tb=(e,t)=>t?e===t?!0:Tb(e,t.parentElement):!1;function Db(e,t){if(!t)return;let r=new PointerEvent("pointer"+e);t(r,di(r))}var ax=class extends bt{constructor(){super(...arguments),this.removeStartListeners=ye,this.removeEndListeners=ye,this.removeAccessibleListeners=ye,this.startPointerPress=(t,r)=>{if(this.isPressing)return;this.removeEndListeners();let o=this.node.getProps(),a=Sr(window,"pointerup",(s,l)=>{if(!this.checkPressEnd())return;let{onTap:f,onTapCancel:u,globalTapTarget:c}=this.node.getProps();!c&&!Tb(this.node.current,s.target)?u&&u(s,l):f&&f(s,l)},{passive:!(o.onTap||o.onPointerUp)}),i=Sr(window,"pointercancel",(s,l)=>this.cancelPress(s,l),{passive:!(o.onTapCancel||o.onPointerCancel)});this.removeEndListeners=$t(a,i),this.startPress(t,r)},this.startAccessiblePress=()=>{let t=a=>{if(a.key!=="Enter"||this.isPressing)return;let i=s=>{s.key!=="Enter"||!this.checkPressEnd()||Db("up",(l,f)=>{let{onTap:u}=this.node.getProps();u&&u(l,f)})};this.removeEndListeners(),this.removeEndListeners=br(this.node.current,"keyup",i),Db("down",(s,l)=>{this.startPress(s,l)})},r=br(this.node.current,"keydown",t),o=()=>{this.isPressing&&Db("cancel",(a,i)=>this.cancelPress(a,i))},n=br(this.node.current,"blur",o);this.removeAccessibleListeners=$t(r,n)}}startPress(t,r){this.isPressing=!0;let{onTapStart:o,whileTap:n}=this.node.getProps();n&&this.node.animationState&&this.node.animationState.setActive("whileTap",!0),o&&o(t,r)}checkPressEnd(){return this.removeEndListeners(),this.isPressing=!1,this.node.getProps().whileTap&&this.node.animationState&&this.node.animationState.setActive("whileTap",!1),!rx()}cancelPress(t,r){if(!this.checkPressEnd())return;let{onTapCancel:o}=this.node.getProps();o&&o(t,r)}mount(){let t=this.node.getProps(),r=Sr(t.globalTapTarget?window:this.node.current,"pointerdown",this.startPointerPress,{passive:!(t.onTapStart||t.onPointerStart)}),o=br(this.node.current,"focus",this.startAccessiblePress);this.removeStartListeners=$t(r,o)}unmount(){this.removeStartListeners(),this.removeEndListeners(),this.removeAccessibleListeners()}};var Eb=new WeakMap,Fb=new WeakMap,O$=e=>{let t=Eb.get(e.target);t&&t(e)},B$=e=>{e.forEach(O$)};function A$({root:e,...t}){let r=e||document;Fb.has(r)||Fb.set(r,{});let o=Fb.get(r),n=JSON.stringify(t);return o[n]||(o[n]=new IntersectionObserver(B$,{root:e,...t})),o[n]}function $O(e,t,r){let o=A$(t);return Eb.set(e,r),o.observe(e),()=>{Eb.delete(e),o.unobserve(e)}}var R$={some:0,all:1},ix=class extends bt{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();let{viewport:t={}}=this.node.getProps(),{root:r,margin:o,amount:n="some",once:a}=t,i={root:r?r.current:void 0,rootMargin:o,threshold:typeof n=="number"?n:R$[n]},s=l=>{let{isIntersecting:f}=l;if(this.isInView===f||(this.isInView=f,a&&!f&&this.hasEnteredView))return;f&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",f);let{onViewportEnter:u,onViewportLeave:c}=this.node.getProps(),d=f?u:c;d&&d(l)};return $O(this.node.current,i,s)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;let{props:t,prevProps:r}=this.node;["amount","margin","root"].some(M$(t,r))&&this.startObserver()}unmount(){}};function M$({viewport:e={}},{viewport:t={}}={}){return r=>e[r]!==t[r]}var UO={inView:{Feature:ix},tap:{Feature:ax},focus:{Feature:nx},hover:{Feature:ox}};function Ob(e,t){if(!Array.isArray(t))return!1;let r=t.length;if(r!==e.length)return!1;for(let o=0;ot[o]=r.get()),t}function _$(e){let t={};return e.values.forEach((r,o)=>t[o]=r.getVelocity()),t}function ga(e,t,r){let o=e.getProps();return ml(o,t,r!==void 0?r:o.custom,L$(e),_$(e))}var wr=e=>e*1e3,Cr=e=>e/1e3;var N$={type:"spring",stiffness:500,damping:25,restSpeed:10},z$=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),V$={type:"keyframes",duration:.8},H$={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},qO=(e,{keyframes:t})=>t.length>2?V$:yr.has(e)?e.startsWith("scale")?z$(t[1]):N$:H$;function GO({when:e,delay:t,delayChildren:r,staggerChildren:o,staggerDirection:n,repeat:a,repeatType:i,repeatDelay:s,from:l,elapsed:f,...u}){return!!Object.keys(u).length}function hl(e,t){return e[t]||e.default||e}var sx={current:!1};var j$=e=>e!==null;function Ia(e,{repeat:t,repeatType:r="loop"},o){let n=e.filter(j$),a=t&&r!=="loop"&&t%2===1?0:n.length-1;return!a||o===void 0?n[a]:o}var lx;function W$(){lx=void 0}var Nr={now:()=>(lx===void 0&&Nr.set(Ke.isProcessing||tl.useManualTiming?Ke.timestamp:performance.now()),lx),set:e=>{lx=e,queueMicrotask(W$)}};var fx=e=>/^0[^.\s]+$/u.test(e);function YO(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||fx(e):!0}var gl=ye,zr=ye;var ux=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e);var $$=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function U$(e){let t=$$.exec(e);if(!t)return[,];let[,r,o,n]=t;return[`--${r??o}`,n]}var q$=4;function Bb(e,t,r=1){zr(r<=q$,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`);let[o,n]=U$(e);if(!o)return;let a=window.getComputedStyle(t).getPropertyValue(o);if(a){let i=a.trim();return ux(i)?parseFloat(i):i}return il(n)?Bb(n,t,r+1):n}var QO=new Set(["width","height","top","left","right","bottom","x","y","translateX","translateY"]),Ab=e=>e===jo||e===z,XO=(e,t)=>parseFloat(e.split(", ")[t]),KO=(e,t)=>(r,{transform:o})=>{if(o==="none"||!o)return 0;let n=o.match(/^matrix3d\((.+)\)$/u);if(n)return XO(n[1],t);{let a=o.match(/^matrix\((.+)\)$/u);return a?XO(a[1],e):0}},G$=new Set(["x","y","z"]),Y$=ma.filter(e=>!G$.has(e));function ZO(e){let t=[];return Y$.forEach(r=>{let o=e.getValue(r);o!==void 0&&(t.push([r,o.get()]),o.set(r.startsWith("scale")?1:0))}),t}var pi={width:({x:e},{paddingLeft:t="0",paddingRight:r="0"})=>e.max-e.min-parseFloat(t)-parseFloat(r),height:({y:e},{paddingTop:t="0",paddingBottom:r="0"})=>e.max-e.min-parseFloat(t)-parseFloat(r),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:KO(4,13),y:KO(5,14)};pi.translateX=pi.x;pi.translateY=pi.y;var cx=e=>t=>t.test(e);var JO={test:e=>e==="auto",parse:e=>e};var Rb=[jo,z,or,Wo,SO,bO,JO],Mb=e=>Rb.find(cx(e));var mi=new Set,Lb=!1,_b=!1;function eB(){if(_b){let e=Array.from(mi).filter(o=>o.needsMeasurement),t=new Set(e.map(o=>o.element)),r=new Map;t.forEach(o=>{let n=ZO(o);n.length&&(r.set(o,n),o.render())}),e.forEach(o=>o.measureInitialState()),t.forEach(o=>{o.render();let n=r.get(o);n&&n.forEach(([a,i])=>{var s;(s=o.getValue(a))===null||s===void 0||s.set(i)})}),e.forEach(o=>o.measureEndState()),e.forEach(o=>{o.suspendedScrollY!==void 0&&window.scrollTo(0,o.suspendedScrollY)})}_b=!1,Lb=!1,mi.forEach(e=>e.complete()),mi.clear()}function tB(){mi.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(_b=!0)})}function rB(){tB(),eB()}var va=class{constructor(t,r,o,n,a,i=!1){this.isComplete=!1,this.isAsync=!1,this.needsMeasurement=!1,this.isScheduled=!1,this.unresolvedKeyframes=[...t],this.onComplete=r,this.name=o,this.motionValue=n,this.element=a,this.isAsync=i}scheduleResolve(){this.isScheduled=!0,this.isAsync?(mi.add(this),Lb||(Lb=!0,de.read(tB),de.resolveKeyframes(eB))):(this.readKeyframes(),this.complete())}readKeyframes(){let{unresolvedKeyframes:t,name:r,element:o,motionValue:n}=this;for(let a=0;ar=>!!(bn(r)&&yO.test(r)&&r.startsWith(e)||t&&Object.prototype.hasOwnProperty.call(r,t)),dx=(e,t,r)=>o=>{if(!bn(o))return o;let[n,a,i,s]=o.match(sl);return{[e]:parseFloat(n),[t]:parseFloat(a),[r]:parseFloat(i),alpha:s!==void 0?parseFloat(s):1}};var X$=e=>rr(0,255,e),Nb={...jo,transform:e=>Math.round(X$(e))},$o={test:Il("rgb","red"),parse:dx("red","green","blue"),transform:({red:e,green:t,blue:r,alpha:o=1})=>"rgba("+Nb.transform(e)+", "+Nb.transform(t)+", "+Nb.transform(r)+", "+ha(xa.transform(o))+")"};function K$(e){let t="",r="",o="",n="";return e.length>5?(t=e.substring(1,3),r=e.substring(3,5),o=e.substring(5,7),n=e.substring(7,9)):(t=e.substring(1,2),r=e.substring(2,3),o=e.substring(3,4),n=e.substring(4,5),t+=t,r+=r,o+=o,n+=n),{red:parseInt(t,16),green:parseInt(r,16),blue:parseInt(o,16),alpha:n?parseInt(n,16)/255:1}}var Yu={test:Il("#"),parse:K$,transform:$o.transform};var ya={test:Il("hsl","hue"),parse:dx("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:r,alpha:o=1})=>"hsla("+Math.round(e)+", "+or.transform(ha(t))+", "+or.transform(ha(r))+", "+ha(xa.transform(o))+")"};var ot={test:e=>$o.test(e)||Yu.test(e)||ya.test(e),parse:e=>$o.test(e)?$o.parse(e):ya.test(e)?ya.parse(e):Yu.parse(e),transform:e=>bn(e)?e:e.hasOwnProperty("red")?$o.transform(e):ya.transform(e)};function Q$(e){var t,r;return isNaN(e)&&bn(e)&&(((t=e.match(sl))===null||t===void 0?void 0:t.length)||0)+(((r=e.match(vO))===null||r===void 0?void 0:r.length)||0)>0}var nB="number",aB="color",Z$="var",J$="var(",oB="${}",eU=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function Xu(e){let t=e.toString(),r=[],o={color:[],number:[],var:[]},n=[],a=0,s=t.replace(eU,l=>(ot.test(l)?(o.color.push(a),n.push(aB),r.push(ot.parse(l))):l.startsWith(J$)?(o.var.push(a),n.push(Z$),r.push(l)):(o.number.push(a),n.push(nB),r.push(parseFloat(l))),++a,oB)).split(oB);return{values:r,split:s,indexes:o,types:n}}function iB(e){return Xu(e).values}function sB(e){let{split:t,types:r}=Xu(e),o=t.length;return n=>{let a="";for(let i=0;itypeof e=="number"?0:e;function rU(e){let t=iB(e);return sB(e)(t.map(tU))}var nr={test:Q$,parse:iB,createTransformer:sB,getAnimatableNone:rU};var oU=new Set(["brightness","contrast","saturate","opacity"]);function nU(e){let[t,r]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;let[o]=r.match(sl)||[];if(!o)return e;let n=r.replace(o,""),a=oU.has(t)?1:0;return o!==r&&(a*=100),t+"("+a+n+")"}var aU=/\b([a-z-]*)\(.*?\)/gu,Ku={...nr,getAnimatableNone:e=>{let t=e.match(aU);return t?t.map(nU).join(" "):e}};var iU={...qm,color:ot,backgroundColor:ot,outlineColor:ot,fill:ot,stroke:ot,borderColor:ot,borderTopColor:ot,borderRightColor:ot,borderBottomColor:ot,borderLeftColor:ot,filter:Ku,WebkitFilter:Ku},vl=e=>iU[e];function px(e,t){let r=vl(e);return r!==Ku&&(r=nr),r.getAnimatableNone?r.getAnimatableNone(t):void 0}function lB(e,t,r){let o=0,n;for(;o{r.getValue(l).set(f)}),this.resolveNoneKeyframes()}};function fB(e){let t;return()=>(t===void 0&&(t=e()),t)}var zb=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(nr.test(e)||e==="0")&&!e.startsWith("url("));function sU(e){let t=e[0];if(e.length===1)return!0;for(let r=0;r{this.resolveFinishedPromise=t})}};function mx(e,t){return t?e*(1e3/t):0}var lU=5;function xx(e,t,r){let o=Math.max(t-lU,0);return mx(r-e(o),t-o)}var Vb=.001,fU=.01,cB=10,uU=.05,cU=1;function dB({duration:e=800,bounce:t=.25,velocity:r=0,mass:o=1}){let n,a;gl(e<=wr(cB),"Spring duration must be 10 seconds or less");let i=1-t;i=rr(uU,cU,i),e=rr(fU,cB,Cr(e)),i<1?(n=f=>{let u=f*i,c=u*e,d=u-r,m=hx(f,i),I=Math.exp(-c);return Vb-d/m*I},a=f=>{let c=f*i*e,d=c*r+r,m=Math.pow(i,2)*Math.pow(f,2)*e,I=Math.exp(-c),h=hx(Math.pow(f,2),i);return(-n(f)+Vb>0?-1:1)*((d-m)*I)/h}):(n=f=>{let u=Math.exp(-f*e),c=(f-r)*e+1;return-Vb+u*c},a=f=>{let u=Math.exp(-f*e),c=(r-f)*(e*e);return u*c});let s=5/e,l=pU(n,a,s);if(e=wr(e),isNaN(l))return{stiffness:100,damping:10,duration:e};{let f=Math.pow(l,2)*o;return{stiffness:f,damping:i*2*Math.sqrt(o*f),duration:e}}}var dU=12;function pU(e,t,r){let o=r;for(let n=1;ne[r]!==void 0)}function hU(e){let t={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...e};if(!pB(e,xU)&&pB(e,mU)){let r=dB(e);t={...t,...r,mass:1},t.isResolvedFromDuration=!0}return t}function gx({keyframes:e,restDelta:t,restSpeed:r,...o}){let n=e[0],a=e[e.length-1],i={done:!1,value:n},{stiffness:s,damping:l,mass:f,duration:u,velocity:c,isResolvedFromDuration:d}=hU({...o,velocity:-Cr(o.velocity||0)}),m=c||0,I=l/(2*Math.sqrt(s*f)),h=a-n,v=Cr(Math.sqrt(s/f)),x=Math.abs(h)<5;r||(r=x?.01:2),t||(t=x?.005:.5);let p;if(I<1){let g=hx(v,I);p=y=>{let w=Math.exp(-I*v*y);return a-w*((m+I*v*h)/g*Math.sin(g*y)+h*Math.cos(g*y))}}else if(I===1)p=g=>a-Math.exp(-v*g)*(h+(m+v*h)*g);else{let g=v*Math.sqrt(I*I-1);p=y=>{let w=Math.exp(-I*v*y),P=Math.min(g*y,300);return a-w*((m+I*v*h)*Math.sinh(P)+g*h*Math.cosh(P))/g}}return{calculatedDuration:d&&u||null,next:g=>{let y=p(g);if(d)i.done=g>=u;else{let w=m;g!==0&&(I<1?w=xx(p,g,y):w=0);let P=Math.abs(w)<=r,b=Math.abs(a-y)<=t;i.done=P&&b}return i.value=i.done?a:y,i}}}function Hb({keyframes:e,velocity:t=0,power:r=.8,timeConstant:o=325,bounceDamping:n=10,bounceStiffness:a=500,modifyTarget:i,min:s,max:l,restDelta:f=.5,restSpeed:u}){let c=e[0],d={done:!1,value:c},m=k=>s!==void 0&&kl,I=k=>s===void 0?l:l===void 0||Math.abs(s-k)-h*Math.exp(-k/o),g=k=>x+p(k),y=k=>{let D=p(k),T=g(k);d.done=Math.abs(D)<=f,d.value=d.done?x:T},w,P,b=k=>{m(d.value)&&(w=k,P=gx({keyframes:[d.value,I(d.value)],velocity:xx(g,k,d.value),damping:n,stiffness:a,restDelta:f,restSpeed:u}))};return b(0),{calculatedDuration:null,next:k=>{let D=!1;return!P&&w===void 0&&(D=!0,y(k),b(k)),w!==void 0&&k>=w?P.next(k-w):(!D&&y(k),d)}}}var mB=(e,t,r)=>(((1-3*r+3*t)*e+(3*r-6*t))*e+3*t)*e,gU=1e-7,IU=12;function vU(e,t,r,o,n){let a,i,s=0;do i=t+(r-t)/2,a=mB(i,o,n)-e,a>0?r=i:t=i;while(Math.abs(a)>gU&&++svU(a,0,1,e,r);return a=>a===0||a===1?a:mB(n(a),t,o)}var xB=ba(.42,0,1,1),hB=ba(0,0,.58,1),Ix=ba(.42,0,.58,1);var gB=e=>Array.isArray(e)&&typeof e[0]!="number";var vx=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2;var yx=e=>t=>1-e(1-t);var bx=e=>1-Math.sin(Math.acos(e)),Sx=yx(bx),IB=vx(bx);var jb=ba(.33,1.53,.69,.99),Qu=yx(jb),vB=vx(Qu);var yB=e=>(e*=2)<1?.5*Qu(e):.5*(2-Math.pow(2,-10*(e-1)));var bB={linear:ye,easeIn:xB,easeInOut:Ix,easeOut:hB,circIn:bx,circInOut:IB,circOut:Sx,backIn:Qu,backInOut:vB,backOut:jb,anticipate:yB},Wb=e=>{if(Array.isArray(e)){zr(e.length===4,"Cubic bezier arrays must contain four numerical values.");let[t,r,o,n]=e;return ba(t,r,o,n)}else if(typeof e=="string")return zr(bB[e]!==void 0,`Invalid easing type '${e}'`),bB[e];return e};var Sn=(e,t,r)=>{let o=t-e;return o===0?1:(r-e)/o};var ee=(e,t,r)=>e+(t-e)*r;function $b(e,t,r){return r<0&&(r+=1),r>1&&(r-=1),r<1/6?e+(t-e)*6*r:r<1/2?t:r<2/3?e+(t-e)*(2/3-r)*6:e}function SB({hue:e,saturation:t,lightness:r,alpha:o}){e/=360,t/=100,r/=100;let n=0,a=0,i=0;if(!t)n=a=i=r;else{let s=r<.5?r*(1+t):r+t-r*t,l=2*r-s;n=$b(l,s,e+1/3),a=$b(l,s,e),i=$b(l,s,e-1/3)}return{red:Math.round(n*255),green:Math.round(a*255),blue:Math.round(i*255),alpha:o}}var Ub=(e,t,r)=>{let o=e*e,n=r*(t*t-o)+o;return n<0?0:Math.sqrt(n)},yU=[Yu,$o,ya],bU=e=>yU.find(t=>t.test(e));function wB(e){let t=bU(e);zr(!!t,`'${e}' is not an animatable color. Use the equivalent color code instead.`);let r=t.parse(e);return t===ya&&(r=SB(r)),r}var qb=(e,t)=>{let r=wB(e),o=wB(t),n={...r};return a=>(n.red=Ub(r.red,o.red,a),n.green=Ub(r.green,o.green,a),n.blue=Ub(r.blue,o.blue,a),n.alpha=ee(r.alpha,o.alpha,a),$o.transform(n))};function Gb(e,t){return r=>r>0?t:e}function SU(e,t){return r=>ee(e,t,r)}function wx(e){return typeof e=="number"?SU:typeof e=="string"?il(e)?Gb:ot.test(e)?qb:PU:Array.isArray(e)?CB:typeof e=="object"?ot.test(e)?qb:wU:Gb}function CB(e,t){let r=[...e],o=r.length,n=e.map((a,i)=>wx(a)(a,t[i]));return a=>{for(let i=0;i{for(let a in o)r[a]=o[a](n);return r}}function CU(e,t){var r;let o=[],n={color:0,var:0,number:0};for(let a=0;a{let r=nr.createTransformer(t),o=Xu(e),n=Xu(t);return o.indexes.var.length===n.indexes.var.length&&o.indexes.color.length===n.indexes.color.length&&o.indexes.number.length>=n.indexes.number.length?$t(CB(CU(o,n),n.values),r):(gl(!0,`Complex values '${e}' and '${t}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`),Gb(e,t))};function Cx(e,t,r){return typeof e=="number"&&typeof t=="number"&&typeof r=="number"?ee(e,t,r):wx(e)(e,t)}function kU(e,t,r){let o=[],n=r||Cx,a=e.length-1;for(let i=0;it[0];if(a===2&&e[0]===e[1])return()=>t[1];e[0]>e[a-1]&&(e=[...e].reverse(),t=[...t].reverse());let i=kU(t,o,n),s=i.length,l=f=>{let u=0;if(s>1)for(;ul(rr(e[0],e[a-1],f)):l}function kB(e,t){let r=e[e.length-1];for(let o=1;o<=t;o++){let n=Sn(0,t,o);e.push(ee(r,1,n))}}function TB(e){let t=[0];return kB(t,e.length-1),t}function DB(e,t){return e.map(r=>r*t)}function TU(e,t){return e.map(()=>t||Ix).splice(0,e.length-1)}function Zu({duration:e=300,keyframes:t,times:r,ease:o="easeInOut"}){let n=gB(o)?o.map(Wb):Wb(o),a={done:!1,value:t[0]},i=DB(r&&r.length===t.length?r:TB(t),e),s=PB(i,t,{ease:Array.isArray(n)?n:TU(t,n)});return{calculatedDuration:e,next:l=>(a.value=s(l),a.done=l>=e,a)}}function FB(e){let t=0,r=50,o=e.next(t);for(;!o.done&&t<2e4;)t+=r,o=e.next(t);return t>=2e4?1/0:t}var EB=e=>{let t=({timestamp:r})=>e(r);return{start:()=>de.update(t,!0),stop:()=>_r(t),now:()=>Ke.isProcessing?Ke.timestamp:Nr.now()}};var DU={decay:Hb,inertia:Hb,tween:Zu,keyframes:Zu,spring:gx},FU=e=>e/100,xi=class extends bl{constructor({KeyframeResolver:t=va,...r}){super(r),this.holdTime=null,this.startTime=null,this.cancelTime=null,this.currentTime=0,this.playbackSpeed=1,this.pendingPlayState="running",this.state="idle",this.stop=()=>{if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.teardown();let{onStop:s}=this.options;s&&s()};let{name:o,motionValue:n,keyframes:a}=this.options,i=(s,l)=>this.onKeyframesResolved(s,l);o&&n&&n.owner?this.resolver=n.owner.resolveKeyframes(a,i,o,n):this.resolver=new t(a,i,o,n),this.resolver.scheduleResolve()}initPlayback(t){let{type:r="keyframes",repeat:o=0,repeatDelay:n=0,repeatType:a,velocity:i=0}=this.options,s=DU[r]||Zu,l,f;s!==Zu&&typeof t[0]!="number"&&(l=$t(FU,Cx(t[0],t[1])),t=[0,100]);let u=s({...this.options,keyframes:t});a==="mirror"&&(f=s({...this.options,keyframes:[...t].reverse(),velocity:-i})),u.calculatedDuration===null&&(u.calculatedDuration=FB(u));let{calculatedDuration:c}=u,d=c+n,m=d*(o+1)-n;return{generator:u,mirroredGenerator:f,mapPercentToKeyframes:l,calculatedDuration:c,resolvedDuration:d,totalDuration:m}}onPostResolved(){let{autoplay:t=!0}=this.options;this.play(),this.pendingPlayState==="paused"||!t?this.pause():this.state=this.pendingPlayState}tick(t,r=!1){let{resolved:o}=this;if(!o){let{keyframes:k}=this.options;return{done:!0,value:k[k.length-1]}}let{finalKeyframe:n,generator:a,mirroredGenerator:i,mapPercentToKeyframes:s,keyframes:l,calculatedDuration:f,totalDuration:u,resolvedDuration:c}=o;if(this.startTime===null)return a.next(0);let{delay:d,repeat:m,repeatType:I,repeatDelay:h,onUpdate:v}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-u/this.speed,this.startTime)),r?this.currentTime=t:this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=Math.round(t-this.startTime)*this.speed;let x=this.currentTime-d*(this.speed>=0?1:-1),p=this.speed>=0?x<0:x>u;this.currentTime=Math.max(x,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=u);let g=this.currentTime,y=a;if(m){let k=Math.min(this.currentTime,u)/c,D=Math.floor(k),T=k%1;!T&&k>=1&&(T=1),T===1&&D--,D=Math.min(D,m+1),!!(D%2)&&(I==="reverse"?(T=1-T,h&&(T-=h/c)):I==="mirror"&&(y=i)),g=rr(0,1,T)*c}let w=p?{done:!1,value:l[0]}:y.next(g);s&&(w.value=s(w.value));let{done:P}=w;!p&&f!==null&&(P=this.speed>=0?this.currentTime>=u:this.currentTime<=0);let b=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&P);return b&&n!==void 0&&(w.value=Ia(l,this.options,n)),v&&v(w.value),b&&this.finish(),w}get duration(){let{resolved:t}=this;return t?Cr(t.calculatedDuration):0}get time(){return Cr(this.currentTime)}set time(t){t=wr(t),this.currentTime=t,this.holdTime!==null||this.speed===0?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.speed)}get speed(){return this.playbackSpeed}set speed(t){let r=this.playbackSpeed!==t;this.playbackSpeed=t,r&&(this.time=Cr(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved){this.pendingPlayState="running";return}if(this.isStopped)return;let{driver:t=EB,onPlay:r}=this.options;this.driver||(this.driver=t(n=>this.tick(n))),r&&r();let o=this.driver.now();this.holdTime!==null?this.startTime=o-this.holdTime:(!this.startTime||this.state==="finished")&&(this.startTime=o),this.state==="finished"&&this.updateFinishedPromise(),this.cancelTime=this.startTime,this.holdTime=null,this.state="running",this.driver.start()}pause(){var t;if(!this._resolved){this.pendingPlayState="paused";return}this.state="paused",this.holdTime=(t=this.currentTime)!==null&&t!==void 0?t:0}complete(){this.state!=="running"&&this.play(),this.pendingPlayState=this.state="finished",this.holdTime=null}finish(){this.teardown(),this.state="finished";let{onComplete:t}=this.options;t&&t()}cancel(){this.cancelTime!==null&&this.tick(this.cancelTime),this.teardown(),this.updateFinishedPromise()}teardown(){this.state="idle",this.stopDriver(),this.resolveFinishedPromise(),this.updateFinishedPromise(),this.startTime=this.cancelTime=null,this.resolver.cancel()}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}};var Yb=e=>Array.isArray(e)&&typeof e[0]=="number";function Xb(e){return!!(!e||typeof e=="string"&&e in Kb||Yb(e)||Array.isArray(e)&&e.every(Xb))}var Ju=([e,t,r,o])=>`cubic-bezier(${e}, ${t}, ${r}, ${o})`,Kb={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Ju([0,.65,.55,1]),circOut:Ju([.55,0,1,.45]),backIn:Ju([.31,.01,.66,-.59]),backOut:Ju([.33,1.53,.69,.99])};function EU(e){return Qb(e)||Kb.easeOut}function Qb(e){if(e)return Yb(e)?Ju(e):Array.isArray(e)?e.map(EU):Kb[e]}function OB(e,t,r,{delay:o=0,duration:n=300,repeat:a=0,repeatType:i="loop",ease:s,times:l}={}){let f={[t]:r};l&&(f.offset=l);let u=Qb(s);return Array.isArray(u)&&(f.easing=u),e.animate(f,{delay:o,duration:n,easing:Array.isArray(u)?"linear":u,fill:"both",iterations:a+1,direction:i==="reverse"?"alternate":"normal"})}var OU=fB(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),BU=new Set(["opacity","clipPath","filter","transform"]),Px=10,AU=2e4;function RU(e){return e.type==="spring"||e.name==="backgroundColor"||!Xb(e.ease)}function MU(e,t){let r=new xi({...t,keyframes:e,repeat:0,delay:0,isGenerator:!0}),o={done:!1,value:e[0]},n=[],a=0;for(;!o.done&&athis.onKeyframesResolved(a,i),r,o),this.resolver.scheduleResolve()}initPlayback(t,r){var o;let{duration:n=300,times:a,ease:i,type:s,motionValue:l,name:f}=this.options;if(!(!((o=l.owner)===null||o===void 0)&&o.current))return!1;if(RU(this.options)){let{onComplete:c,onUpdate:d,motionValue:m,...I}=this.options,h=MU(t,I);t=h.keyframes,t.length===1&&(t[1]=t[0]),n=h.duration,a=h.times,i=h.ease,s="keyframes"}let u=OB(l.owner.current,f,t,{...this.options,duration:n,times:a,ease:i});return u.startTime=Nr.now(),this.pendingTimeline?(u.timeline=this.pendingTimeline,this.pendingTimeline=void 0):u.onfinish=()=>{let{onComplete:c}=this.options;l.set(Ia(t,this.options,r)),c&&c(),this.cancel(),this.resolveFinishedPromise()},{animation:u,duration:n,times:a,type:s,ease:i,keyframes:t}}get duration(){let{resolved:t}=this;if(!t)return 0;let{duration:r}=t;return Cr(r)}get time(){let{resolved:t}=this;if(!t)return 0;let{animation:r}=t;return Cr(r.currentTime||0)}set time(t){let{resolved:r}=this;if(!r)return;let{animation:o}=r;o.currentTime=wr(t)}get speed(){let{resolved:t}=this;if(!t)return 1;let{animation:r}=t;return r.playbackRate}set speed(t){let{resolved:r}=this;if(!r)return;let{animation:o}=r;o.playbackRate=t}get state(){let{resolved:t}=this;if(!t)return"idle";let{animation:r}=t;return r.playState}attachTimeline(t){if(!this._resolved)this.pendingTimeline=t;else{let{resolved:r}=this;if(!r)return ye;let{animation:o}=r;o.timeline=t,o.onfinish=null}return ye}play(){if(this.isStopped)return;let{resolved:t}=this;if(!t)return;let{animation:r}=t;r.playState==="finished"&&this.updateFinishedPromise(),r.play()}pause(){let{resolved:t}=this;if(!t)return;let{animation:r}=t;r.pause()}stop(){if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;let{resolved:t}=this;if(!t)return;let{animation:r,keyframes:o,duration:n,type:a,ease:i,times:s}=t;if(!(r.playState==="idle"||r.playState==="finished")){if(this.time){let{motionValue:l,onUpdate:f,onComplete:u,...c}=this.options,d=new xi({...c,keyframes:o,duration:n,type:a,ease:i,times:s,isGenerator:!0}),m=wr(this.time);l.setWithVelocity(d.sample(m-Px).value,d.sample(m).value,Px)}this.cancel()}}complete(){let{resolved:t}=this;t&&t.animation.finish()}cancel(){let{resolved:t}=this;t&&t.animation.cancel()}static supports(t){let{motionValue:r,name:o,repeatDelay:n,repeatType:a,damping:i,type:s}=t;return OU()&&o&&BU.has(o)&&r&&r.owner&&r.owner.current instanceof HTMLElement&&!r.owner.getProps().onUpdate&&!n&&a!=="mirror"&&i!==0&&s!=="inertia"}};var Sl=(e,t,r,o={},n,a)=>i=>{let s=hl(o,e)||{},l=s.delay||o.delay||0,{elapsed:f=0}=o;f=f-wr(l);let u={keyframes:Array.isArray(r)?r:[null,r],ease:"easeOut",velocity:t.getVelocity(),...s,delay:-f,onUpdate:d=>{t.set(d),s.onUpdate&&s.onUpdate(d)},onComplete:()=>{i(),s.onComplete&&s.onComplete()},name:e,motionValue:t,element:a?void 0:n};GO(s)||(u={...u,...qO(e,u)}),u.duration&&(u.duration=wr(u.duration)),u.repeatDelay&&(u.repeatDelay=wr(u.repeatDelay)),u.from!==void 0&&(u.keyframes[0]=u.from);let c=!1;if((u.type===!1||u.duration===0&&!u.repeatDelay)&&(u.duration=0,u.delay===0&&(c=!0)),(sx.current||tl.skipAnimations)&&(c=!0,u.duration=0,u.delay=0),c&&!a&&t.get()!==void 0){let d=Ia(u.keyframes,s);if(d!==void 0){de.update(()=>{u.onUpdate(d),u.onComplete()});return}}return!a&&ec.supports(u)?new ec(u):new xi(u)};function hi(e){return!!(De(e)&&e.add)}function wl(e,t){e.indexOf(t)===-1&&e.push(t)}function Cl(e,t){let r=e.indexOf(t);r>-1&&e.splice(r,1)}var Sa=class{constructor(){this.subscriptions=[]}add(t){return wl(this.subscriptions,t),()=>Cl(this.subscriptions,t)}notify(t,r,o){let n=this.subscriptions.length;if(n)if(n===1)this.subscriptions[0](t,r,o);else for(let a=0;a!isNaN(parseFloat(e)),AB={current:void 0},Zb=class{constructor(t,r={}){this.version="11.1.7",this.canTrackVelocity=!1,this.events={},this.updateAndNotify=(o,n=!0)=>{let a=Nr.now();this.updatedAt!==a&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(o),this.current!==this.prev&&this.events.change&&this.events.change.notify(this.current),n&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.hasAnimated=!1,this.setCurrent(t),this.canTrackVelocity=LU(this.current),this.owner=r.owner}setCurrent(t){this.current=t,this.updatedAt=Nr.now()}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return this.on("change",t)}on(t,r){this.events[t]||(this.events[t]=new Sa);let o=this.events[t].add(r);return t==="change"?()=>{o(),de.read(()=>{this.events.change.getSize()||this.stop()})}:o}clearListeners(){for(let t in this.events)this.events[t].clear()}attach(t,r){this.passiveEffect=t,this.stopPassiveEffect=r}set(t,r=!0){!r||!this.passiveEffect?this.updateAndNotify(t,r):this.passiveEffect(t,this.updateAndNotify)}setWithVelocity(t,r,o){this.set(r),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-o}jump(t,r=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,r&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return AB.current&&AB.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){let t=Nr.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>BB)return 0;let r=Math.min(this.updatedAt-this.prevUpdatedAt,BB);return mx(parseFloat(this.current)-parseFloat(this.prevFrameValue),r)}start(t){return this.stop(),new Promise(r=>{this.hasAnimated=!0,this.animation=t(r),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}};function wn(e,t){return new Zb(e,t)}function _U(e,t,r){e.hasValue(t)?e.getValue(t).set(r):e.addValue(t,wn(r))}function RB(e,t){let r=ga(e,t),{transitionEnd:o={},transition:n={},...a}=r||{};a={...a,...o};for(let i in a){let s=MO(a[i]);_U(e,i,s)}}function NU({protectedKeys:e,needsAnimating:t},r){let o=e.hasOwnProperty(r)&&t[r]!==!0;return t[r]=!1,o}function kx(e,t,{delay:r=0,transitionOverride:o,type:n}={}){var a;let{transition:i=e.getDefaultTransition(),transitionEnd:s,...l}=t,f=e.getValue("willChange");o&&(i=o);let u=[],c=n&&e.animationState&&e.animationState.getState()[n];for(let d in l){let m=e.getValue(d,(a=e.latestValues[d])!==null&&a!==void 0?a:null),I=l[d];if(I===void 0||c&&NU(c,d))continue;let h={delay:r,elapsed:0,...hl(i||{},d)},v=!1;if(window.HandoffAppearAnimations){let g=e.getProps()[Mm];if(g){let y=window.HandoffAppearAnimations(g,d);y!==null&&(h.elapsed=y,v=!0)}}m.start(Sl(d,m,I,e.shouldReduceMotion&&yr.has(d)?{type:!1}:h,e,v));let x=m.animation;x&&(hi(f)&&(f.add(d),x.then(()=>f.remove(d))),u.push(x))}return s&&Promise.all(u).then(()=>{de.update(()=>{s&&RB(e,s)})}),u}function Tx(e,t,r={}){var o;let n=ga(e,t,r.type==="exit"?(o=e.presenceContext)===null||o===void 0?void 0:o.custom:void 0),{transition:a=e.getDefaultTransition()||{}}=n||{};r.transitionOverride&&(a=r.transitionOverride);let i=n?()=>Promise.all(kx(e,n,r)):()=>Promise.resolve(),s=e.variantChildren&&e.variantChildren.size?(f=0)=>{let{delayChildren:u=0,staggerChildren:c,staggerDirection:d}=a;return zU(e,t,u+f,c,d,r)}:()=>Promise.resolve(),{when:l}=a;if(l){let[f,u]=l==="beforeChildren"?[i,s]:[s,i];return f().then(()=>u())}else return Promise.all([i(),s(r.delay)])}function zU(e,t,r=0,o=0,n=1,a){let i=[],s=(e.variantChildren.size-1)*o,l=n===1?(f=0)=>f*o:(f=0)=>s-f*o;return Array.from(e.variantChildren).sort(VU).forEach((f,u)=>{f.notify("AnimationStart",t),i.push(Tx(f,t,{...a,delay:r+l(u)}).then(()=>f.notify("AnimationComplete",t)))}),Promise.all(i)}function VU(e,t){return e.sortNodePosition(t)}function MB(e,t,r={}){e.notify("AnimationStart",t);let o;if(Array.isArray(t)){let n=t.map(a=>Tx(e,a,r));o=Promise.all(n)}else if(typeof t=="string")o=Tx(e,t,r);else{let n=typeof t=="function"?ga(e,t,r.custom):t;o=Promise.all(kx(e,n,r))}return o.then(()=>{de.postRender(()=>{e.notify("AnimationComplete",t)})})}var HU=[...zm].reverse(),jU=zm.length;function WU(e){return t=>Promise.all(t.map(({animation:r,options:o})=>MB(e,r,o)))}function LB(e){let t=WU(e),r=UU(),o=!0,n=l=>(f,u)=>{var c;let d=ga(e,u,l==="exit"?(c=e.presenceContext)===null||c===void 0?void 0:c.custom:void 0);if(d){let{transition:m,transitionEnd:I,...h}=d;f={...f,...h,...I}}return f};function a(l){t=l(e)}function i(l){let f=e.getProps(),u=e.getVariantContext(!0)||{},c=[],d=new Set,m={},I=1/0;for(let v=0;vI&&y,D=!1,T=Array.isArray(g)?g:[g],O=T.reduce(n(x),{});w===!1&&(O={});let{prevResolvedValues:_={}}=p,$={..._,...O},le=q=>{k=!0,d.has(q)&&(D=!0,d.delete(q)),p.needsAnimating[q]=!0;let W=e.getValue(q);W&&(W.liveStyle=!1)};for(let q in $){let W=O[q],re=_[q];if(m.hasOwnProperty(q))continue;let Ne=!1;Gu(W)&&Gu(re)?Ne=!Ob(W,re):Ne=W!==re,Ne?W!=null?le(q):d.add(q):W!==void 0&&d.has(q)?le(q):p.protectedKeys[q]=!0}p.prevProp=g,p.prevResolvedValues=O,p.isActive&&(m={...m,...O}),o&&e.blockInitialAnimation&&(k=!1),k&&(!P||D)&&c.push(...T.map(q=>({animation:q,options:{type:x}})))}if(d.size){let v={};d.forEach(x=>{let p=e.getBaseTarget(x),g=e.getValue(x);g&&(g.liveStyle=!0),v[x]=p??null}),c.push({animation:v})}let h=!!c.length;return o&&(f.initial===!1||f.initial===f.animate)&&!e.manuallyAnimateOnMount&&(h=!1),o=!1,h?t(c):Promise.resolve()}function s(l,f){var u;if(r[l].isActive===f)return Promise.resolve();(u=e.variantChildren)===null||u===void 0||u.forEach(d=>{var m;return(m=d.animationState)===null||m===void 0?void 0:m.setActive(l,f)}),r[l].isActive=f;let c=i(l);for(let d in r)r[d].protectedKeys={};return c}return{animateChanges:i,setActive:s,setAnimateFunction:a,getState:()=>r}}function $U(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!Ob(t,e):!1}function gi(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function UU(){return{animate:gi(!0),whileInView:gi(),whileHover:gi(),whileTap:gi(),whileDrag:gi(),whileFocus:gi(),exit:gi()}}var Dx=class extends bt{constructor(t){super(t),t.animationState||(t.animationState=LB(t))}updateAnimationControlsSubscription(){let{animate:t}=this.node.getProps();this.unmount(),pa(t)&&(this.unmount=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){let{animate:t}=this.node.getProps(),{animate:r}=this.node.prevProps||{};t!==r&&this.updateAnimationControlsSubscription()}unmount(){}};var qU=0,Fx=class extends bt{constructor(){super(...arguments),this.id=qU++}update(){if(!this.node.presenceContext)return;let{isPresent:t,onExitComplete:r}=this.node.presenceContext,{isPresent:o}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===o)return;let n=this.node.animationState.setActive("exit",!t);r&&!t&&n.then(()=>r(this.id))}mount(){let{register:t}=this.node.presenceContext||{};t&&(this.unmount=t(this.id))}unmount(){}};var _B={animation:{Feature:Dx},exit:{Feature:Fx}};var NB=(e,t)=>Math.abs(e-t);function zB(e,t){let r=NB(e.x,t.x),o=NB(e.y,t.y);return Math.sqrt(r**2+o**2)}var Pl=class{constructor(t,r,{transformPagePoint:o,contextWindow:n,dragSnapToOrigin:a=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let c=eS(this.lastMoveEventInfo,this.history),d=this.startEvent!==null,m=zB(c.offset,{x:0,y:0})>=3;if(!d&&!m)return;let{point:I}=c,{timestamp:h}=Ke;this.history.push({...I,timestamp:h});let{onStart:v,onMove:x}=this.handlers;d||(v&&v(this.lastMoveEvent,c),this.startEvent=this.lastMoveEvent),x&&x(this.lastMoveEvent,c)},this.handlePointerMove=(c,d)=>{this.lastMoveEvent=c,this.lastMoveEventInfo=Jb(d,this.transformPagePoint),de.update(this.updatePoint,!0)},this.handlePointerUp=(c,d)=>{this.end();let{onEnd:m,onSessionEnd:I,resumeAnimation:h}=this.handlers;if(this.dragSnapToOrigin&&h&&h(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let v=eS(c.type==="pointercancel"?this.lastMoveEventInfo:Jb(d,this.transformPagePoint),this.history);this.startEvent&&m&&m(c,v),I&&I(c,v)},!tx(t))return;this.dragSnapToOrigin=a,this.handlers=r,this.transformPagePoint=o,this.contextWindow=n||window;let i=di(t),s=Jb(i,this.transformPagePoint),{point:l}=s,{timestamp:f}=Ke;this.history=[{...l,timestamp:f}];let{onSessionStart:u}=r;u&&u(t,eS(s,this.history)),this.removeListeners=$t(Sr(this.contextWindow,"pointermove",this.handlePointerMove),Sr(this.contextWindow,"pointerup",this.handlePointerUp),Sr(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),_r(this.updatePoint)}};function Jb(e,t){return t?{point:t(e.point)}:e}function VB(e,t){return{x:e.x-t.x,y:e.y-t.y}}function eS({point:e},t){return{point:e,delta:VB(e,HB(t)),offset:VB(e,GU(t)),velocity:YU(t,.1)}}function GU(e){return e[0]}function HB(e){return e[e.length-1]}function YU(e,t){if(e.length<2)return{x:0,y:0};let r=e.length-1,o=null,n=HB(e);for(;r>=0&&(o=e[r],!(n.timestamp-o.timestamp>wr(t)));)r--;if(!o)return{x:0,y:0};let a=Cr(n.timestamp-o.timestamp);if(a===0)return{x:0,y:0};let i={x:(n.x-o.x)/a,y:(n.y-o.y)/a};return i.x===1/0&&(i.x=0),i.y===1/0&&(i.y=0),i}function At(e){return e.max-e.min}function Ex(e,t=0,r=.01){return Math.abs(e-t)<=r}function jB(e,t,r,o=.5){e.origin=o,e.originPoint=ee(t.min,t.max,e.origin),e.scale=At(r)/At(t),(Ex(e.scale,1,1e-4)||isNaN(e.scale))&&(e.scale=1),e.translate=ee(r.min,r.max,e.origin)-e.originPoint,(Ex(e.translate)||isNaN(e.translate))&&(e.translate=0)}function kl(e,t,r,o){jB(e.x,t.x,r.x,o?o.originX:void 0),jB(e.y,t.y,r.y,o?o.originY:void 0)}function WB(e,t,r){e.min=r.min+t.min,e.max=e.min+At(t)}function UB(e,t,r){WB(e.x,t.x,r.x),WB(e.y,t.y,r.y)}function $B(e,t,r){e.min=t.min-r.min,e.max=e.min+At(t)}function Tl(e,t,r){$B(e.x,t.x,r.x),$B(e.y,t.y,r.y)}function KB(e,{min:t,max:r},o){return t!==void 0&&er&&(e=o?ee(r,e,o.max):Math.min(e,r)),e}function qB(e,t,r){return{min:t!==void 0?e.min+t:void 0,max:r!==void 0?e.max+r-(e.max-e.min):void 0}}function QB(e,{top:t,left:r,bottom:o,right:n}){return{x:qB(e.x,r,n),y:qB(e.y,t,o)}}function GB(e,t){let r=t.min-e.min,o=t.max-e.max;return t.max-t.mino?r=Sn(t.min,t.max-o,e.min):o>n&&(r=Sn(e.min,e.max-n,t.min)),rr(0,1,r)}function eA(e,t){let r={};return t.min!==void 0&&(r.min=t.min-e.min),t.max!==void 0&&(r.max=t.max-e.min),r}var Ox=.35;function tA(e=Ox){return e===!1?e=0:e===!0&&(e=Ox),{x:YB(e,"left","right"),y:YB(e,"top","bottom")}}function YB(e,t,r){return{min:XB(e,t),max:XB(e,r)}}function XB(e,t){return typeof e=="number"?e:e[t]||0}var rA=()=>({translate:0,scale:1,origin:0,originPoint:0}),Ii=()=>({x:rA(),y:rA()}),oA=()=>({min:0,max:0}),Me=()=>({x:oA(),y:oA()});function Pr(e){return[e("x"),e("y")]}function Bx({top:e,left:t,right:r,bottom:o}){return{x:{min:t,max:r},y:{min:e,max:o}}}function nA({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function aA(e,t){if(!t)return e;let r=t({x:e.left,y:e.top}),o=t({x:e.right,y:e.bottom});return{top:r.y,left:r.x,bottom:o.y,right:o.x}}function tS(e){return e===void 0||e===1}function Ax({scale:e,scaleX:t,scaleY:r}){return!tS(e)||!tS(t)||!tS(r)}function Cn(e){return Ax(e)||rS(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function rS(e){return iA(e.x)||iA(e.y)}function iA(e){return e&&e!=="0%"}function tc(e,t,r){let o=e-r,n=t*o;return r+n}function sA(e,t,r,o,n){return n!==void 0&&(e=tc(e,n,o)),tc(e,r,o)+t}function oS(e,t=0,r=1,o,n){e.min=sA(e.min,t,r,o,n),e.max=sA(e.max,t,r,o,n)}function nS(e,{x:t,y:r}){oS(e.x,t.translate,t.scale,t.originPoint),oS(e.y,r.translate,r.scale,r.originPoint)}function uA(e,t,r,o=!1){let n=r.length;if(!n)return;t.x=t.y=1;let a,i;for(let s=0;s1.0000000000001||e<.999999999999?e:1}function Uo(e,t){e.min=e.min+t,e.max=e.max+t}function fA(e,t,[r,o,n]){let a=t[n]!==void 0?t[n]:.5,i=ee(e.min,e.max,a);oS(e,t[r],t[o],i,t.scale)}var XU=["x","scaleX","originX"],KU=["y","scaleY","originY"];function yi(e,t){fA(e.x,t,XU),fA(e.y,t,KU)}function aS(e,t){return Bx(aA(e.getBoundingClientRect(),t))}function cA(e,t,r){let o=aS(e,r),{scroll:n}=t;return n&&(Uo(o.x,n.offset.x),Uo(o.y,n.offset.y)),o}var Rx=({current:e})=>e?e.ownerDocument.defaultView:null;var QU=new WeakMap,Lx=class{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=Me(),this.visualElement=t}start(t,{snapToCursor:r=!1}={}){let{presenceContext:o}=this.visualElement;if(o&&o.isPresent===!1)return;let n=u=>{let{dragSnapToOrigin:c}=this.getProps();c?this.pauseAnimation():this.stopAnimation(),r&&this.snapToCursor(di(u,"page").point)},a=(u,c)=>{let{drag:d,dragPropagation:m,onDragStart:I}=this.getProps();if(d&&!m&&(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=kb(d),!this.openGlobalLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),Pr(v=>{let x=this.getAxisMotionValue(v).get()||0;if(or.test(x)){let{projection:p}=this.visualElement;if(p&&p.layout){let g=p.layout.layoutBox[v];g&&(x=At(g)*(parseFloat(x)/100))}}this.originPoint[v]=x}),I&&I(u,c);let{animationState:h}=this.visualElement;h&&h.setActive("whileDrag",!0)},i=(u,c)=>{let{dragPropagation:d,dragDirectionLock:m,onDirectionLock:I,onDrag:h}=this.getProps();if(!d&&!this.openGlobalLock)return;let{offset:v}=c;if(m&&this.currentDirection===null){this.currentDirection=ZU(v),this.currentDirection!==null&&I&&I(this.currentDirection);return}this.updateAxis("x",c.point,v),this.updateAxis("y",c.point,v),this.visualElement.render(),h&&h(u,c)},s=(u,c)=>this.stop(u,c),l=()=>Pr(u=>{var c;return this.getAnimationState(u)==="paused"&&((c=this.getAxisMotionValue(u).animation)===null||c===void 0?void 0:c.play())}),{dragSnapToOrigin:f}=this.getProps();this.panSession=new Pl(t,{onSessionStart:n,onStart:a,onMove:i,onSessionEnd:s,resumeAnimation:l},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:f,contextWindow:Rx(this.visualElement)})}stop(t,r){let o=this.isDragging;if(this.cancel(),!o)return;let{velocity:n}=r;this.startAnimation(n);let{onDragEnd:a}=this.getProps();a&&a(t,r)}cancel(){this.isDragging=!1;let{projection:t,animationState:r}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;let{dragPropagation:o}=this.getProps();!o&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),r&&r.setActive("whileDrag",!1)}updateAxis(t,r,o){let{drag:n}=this.getProps();if(!o||!Mx(t,n,this.currentDirection))return;let a=this.getAxisMotionValue(t),i=this.originPoint[t]+o[t];this.constraints&&this.constraints[t]&&(i=KB(i,this.constraints[t],this.elastic[t])),a.set(i)}resolveConstraints(){var t;let{dragConstraints:r,dragElastic:o}=this.getProps(),n=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(t=this.visualElement.projection)===null||t===void 0?void 0:t.layout,a=this.constraints;r&&vn(r)?this.constraints||(this.constraints=this.resolveRefConstraints()):r&&n?this.constraints=QB(n.layoutBox,r):this.constraints=!1,this.elastic=tA(o),a!==this.constraints&&n&&this.constraints&&!this.hasMutatedConstraints&&Pr(i=>{this.constraints!==!1&&this.getAxisMotionValue(i)&&(this.constraints[i]=eA(n.layoutBox[i],this.constraints[i]))})}resolveRefConstraints(){let{dragConstraints:t,onMeasureDragConstraints:r}=this.getProps();if(!t||!vn(t))return!1;let o=t.current;zr(o!==null,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.");let{projection:n}=this.visualElement;if(!n||!n.layout)return!1;let a=cA(o,n.root,this.visualElement.getTransformPagePoint()),i=ZB(n.layout.layoutBox,a);if(r){let s=r(nA(i));this.hasMutatedConstraints=!!s,s&&(i=Bx(s))}return i}startAnimation(t){let{drag:r,dragMomentum:o,dragElastic:n,dragTransition:a,dragSnapToOrigin:i,onDragTransitionEnd:s}=this.getProps(),l=this.constraints||{},f=Pr(u=>{if(!Mx(u,r,this.currentDirection))return;let c=l&&l[u]||{};i&&(c={min:0,max:0});let d=n?200:1e6,m=n?40:1e7,I={type:"inertia",velocity:o?t[u]:0,bounceStiffness:d,bounceDamping:m,timeConstant:750,restDelta:1,restSpeed:10,...a,...c};return this.startAxisValueAnimation(u,I)});return Promise.all(f).then(s)}startAxisValueAnimation(t,r){let o=this.getAxisMotionValue(t);return o.start(Sl(t,o,0,r,this.visualElement))}stopAnimation(){Pr(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){Pr(t=>{var r;return(r=this.getAxisMotionValue(t).animation)===null||r===void 0?void 0:r.pause()})}getAnimationState(t){var r;return(r=this.getAxisMotionValue(t).animation)===null||r===void 0?void 0:r.state}getAxisMotionValue(t){let r=`_drag${t.toUpperCase()}`,o=this.visualElement.getProps(),n=o[r];return n||this.visualElement.getValue(t,(o.initial?o.initial[t]:void 0)||0)}snapToCursor(t){Pr(r=>{let{drag:o}=this.getProps();if(!Mx(r,o,this.currentDirection))return;let{projection:n}=this.visualElement,a=this.getAxisMotionValue(r);if(n&&n.layout){let{min:i,max:s}=n.layout.layoutBox[r];a.set(t[r]-ee(i,s,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;let{drag:t,dragConstraints:r}=this.getProps(),{projection:o}=this.visualElement;if(!vn(r)||!o||!this.constraints)return;this.stopAnimation();let n={x:0,y:0};Pr(i=>{let s=this.getAxisMotionValue(i);if(s&&this.constraints!==!1){let l=s.get();n[i]=JB({min:l,max:l},this.constraints[i])}});let{transformTemplate:a}=this.visualElement.getProps();this.visualElement.current.style.transform=a?a({},""):"none",o.root&&o.root.updateScroll(),o.updateLayout(),this.resolveConstraints(),Pr(i=>{if(!Mx(i,t,null))return;let s=this.getAxisMotionValue(i),{min:l,max:f}=this.constraints[i];s.set(ee(l,f,n[i]))})}addListeners(){if(!this.visualElement.current)return;QU.set(this.visualElement,this);let t=this.visualElement.current,r=Sr(t,"pointerdown",l=>{let{drag:f,dragListener:u=!0}=this.getProps();f&&u&&this.start(l)}),o=()=>{let{dragConstraints:l}=this.getProps();vn(l)&&(this.constraints=this.resolveRefConstraints())},{projection:n}=this.visualElement,a=n.addEventListener("measure",o);n&&!n.layout&&(n.root&&n.root.updateScroll(),n.updateLayout()),o();let i=br(window,"resize",()=>this.scalePositionWithinConstraints()),s=n.addEventListener("didUpdate",({delta:l,hasLayoutChanged:f})=>{this.isDragging&&f&&(Pr(u=>{let c=this.getAxisMotionValue(u);c&&(this.originPoint[u]+=l[u].translate,c.set(c.get()+l[u].translate))}),this.visualElement.render())});return()=>{i(),r(),a(),s&&s()}}getProps(){let t=this.visualElement.getProps(),{drag:r=!1,dragDirectionLock:o=!1,dragPropagation:n=!1,dragConstraints:a=!1,dragElastic:i=Ox,dragMomentum:s=!0}=t;return{...t,drag:r,dragDirectionLock:o,dragPropagation:n,dragConstraints:a,dragElastic:i,dragMomentum:s}}};function Mx(e,t,r){return(t===!0||t===e)&&(r===null||r===e)}function ZU(e,t=10){let r=null;return Math.abs(e.y)>t?r="y":Math.abs(e.x)>t&&(r="x"),r}var _x=class extends bt{constructor(t){super(t),this.removeGroupControls=ye,this.removeListeners=ye,this.controls=new Lx(t)}mount(){let{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||ye}unmount(){this.removeGroupControls(),this.removeListeners()}};var dA=e=>(t,r)=>{e&&e(t,r)},Nx=class extends bt{constructor(){super(...arguments),this.removePointerDownListener=ye}onPointerDown(t){this.session=new Pl(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:Rx(this.node)})}createPanHandlers(){let{onPanSessionStart:t,onPanStart:r,onPan:o,onPanEnd:n}=this.node.getProps();return{onSessionStart:dA(t),onStart:dA(r),onMove:o,onEnd:(a,i)=>{delete this.session,n&&n(a,i)}}}mount(){this.removePointerDownListener=Sr(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}};var xA=C(L(),1),rc=C(F(),1);var bi=C(F(),1);function iS(){let e=(0,bi.useContext)(In);if(e===null)return[!0,null];let{isPresent:t,onExitComplete:r,register:o}=e,n=(0,bi.useId)();return(0,bi.useEffect)(()=>o(n),[]),!t&&r?[!1,()=>r&&r(n)]:[!0]}function sS(){return JU((0,bi.useContext)(In))}function JU(e){return e===null?!0:e.isPresent}var Dl={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function pA(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}var Fl={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(z.test(e))e=parseFloat(e);else return e;let r=pA(e,t.target.x),o=pA(e,t.target.y);return`${r}% ${o}%`}};var mA={correct:(e,{treeScale:t,projectionDelta:r})=>{let o=e,n=nr.parse(e);if(n.length>5)return o;let a=nr.createTransformer(e),i=typeof n[0]!="number"?1:0,s=r.x.scale*t.x,l=r.y.scale*t.y;n[0+i]/=s,n[1+i]/=l;let f=ee(s,l,.5);return typeof n[2+i]=="number"&&(n[2+i]/=f),typeof n[3+i]=="number"&&(n[3+i]/=f),a(n)}};var lS=class extends rc.Component{componentDidMount(){let{visualElement:t,layoutGroup:r,switchLayoutGroup:o,layoutId:n}=this.props,{projection:a}=t;xO(eq),a&&(r.group&&r.group.add(a),o&&o.register&&n&&o.register(a),a.root.didUpdate(),a.addEventListener("animationComplete",()=>{this.safeToRemove()}),a.setOptions({...a.options,onExitComplete:()=>this.safeToRemove()})),Dl.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){let{layoutDependency:r,visualElement:o,drag:n,isPresent:a}=this.props,i=o.projection;return i&&(i.isPresent=a,n||t.layoutDependency!==r||r===void 0?i.willUpdate():this.safeToRemove(),t.isPresent!==a&&(a?i.promote():i.relegate()||de.postRender(()=>{let s=i.getStack();(!s||!s.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){let{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),rl.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){let{visualElement:t,layoutGroup:r,switchLayoutGroup:o}=this.props,{projection:n}=t;n&&(n.scheduleCheckAfterUnmount(),r&&r.group&&r.group.remove(n),o&&o.deregister&&o.deregister(n))}safeToRemove(){let{safeToRemove:t}=this.props;t&&t()}render(){return null}};function zx(e){let[t,r]=iS(),o=(0,rc.useContext)(ol);return(0,xA.jsx)(lS,{...e,layoutGroup:o,switchLayoutGroup:(0,rc.useContext)(jm),isPresent:t,safeToRemove:r})}var eq={borderRadius:{...Fl,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:Fl,borderTopRightRadius:Fl,borderBottomLeftRadius:Fl,borderBottomRightRadius:Fl,boxShadow:mA};var vA=["TopLeft","TopRight","BottomLeft","BottomRight"],tq=vA.length,hA=e=>typeof e=="string"?parseFloat(e):e,gA=e=>typeof e=="number"||z.test(e);function yA(e,t,r,o,n,a){n?(e.opacity=ee(0,r.opacity!==void 0?r.opacity:1,rq(o)),e.opacityExit=ee(t.opacity!==void 0?t.opacity:1,0,oq(o))):a&&(e.opacity=ee(t.opacity!==void 0?t.opacity:1,r.opacity!==void 0?r.opacity:1,o));for(let i=0;iot?1:r(Sn(e,t,o))}function SA(e,t){e.min=t.min,e.max=t.max}function Vr(e,t){SA(e.x,t.x),SA(e.y,t.y)}function wA(e,t,r,o,n){return e-=t,e=tc(e,1/r,o),n!==void 0&&(e=tc(e,1/n,o)),e}function nq(e,t=0,r=1,o=.5,n,a=e,i=e){if(or.test(t)&&(t=parseFloat(t),t=ee(i.min,i.max,t/100)-i.min),typeof t!="number")return;let s=ee(a.min,a.max,o);e===a&&(s-=t),e.min=wA(e.min,t,r,s,n),e.max=wA(e.max,t,r,s,n)}function CA(e,t,[r,o,n],a,i){nq(e,t[r],t[o],t[n],t.scale,a,i)}var aq=["x","scaleX","originX"],iq=["y","scaleY","originY"];function fS(e,t,r,o){CA(e.x,t,aq,r?r.x:void 0,o?o.x:void 0),CA(e.y,t,iq,r?r.y:void 0,o?o.y:void 0)}function PA(e){return e.translate===0&&e.scale===1}function uS(e){return PA(e.x)&&PA(e.y)}function kA(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 cS(e,t){return Math.round(e.x.min)===Math.round(t.x.min)&&Math.round(e.x.max)===Math.round(t.x.max)&&Math.round(e.y.min)===Math.round(t.y.min)&&Math.round(e.y.max)===Math.round(t.y.max)}function dS(e){return At(e.x)/At(e.y)}var Vx=class{constructor(){this.members=[]}add(t){wl(this.members,t),t.scheduleRender()}remove(t){if(Cl(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){let r=this.members[this.members.length-1];r&&this.promote(r)}}relegate(t){let r=this.members.findIndex(n=>t===n);if(r===0)return!1;let o;for(let n=r;n>=0;n--){let a=this.members[n];if(a.isPresent!==!1){o=a;break}}return o?(this.promote(o),!0):!1}promote(t,r){let o=this.lead;if(t!==o&&(this.prevLead=o,this.lead=t,t.show(),o)){o.instance&&o.scheduleRender(),t.scheduleRender(),t.resumeFrom=o,r&&(t.resumeFrom.preserveOpacity=!0),o.snapshot&&(t.snapshot=o.snapshot,t.snapshot.latestValues=o.animationValues||o.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);let{crossfade:n}=t.options;n===!1&&o.hide()}}exitAnimationComplete(){this.members.forEach(t=>{let{options:r,resumingFrom:o}=t;r.onExitComplete&&r.onExitComplete(),o&&o.options.onExitComplete&&o.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}};function pS(e,t,r){let o="",n=e.x.translate/t.x,a=e.y.translate/t.y,i=r?.z||0;if((n||a||i)&&(o=`translate3d(${n}px, ${a}px, ${i}px) `),(t.x!==1||t.y!==1)&&(o+=`scale(${1/t.x}, ${1/t.y}) `),r){let{transformPerspective:f,rotate:u,rotateX:c,rotateY:d,skewX:m,skewY:I}=r;f&&(o=`perspective(${f}px) ${o}`),u&&(o+=`rotate(${u}deg) `),c&&(o+=`rotateX(${c}deg) `),d&&(o+=`rotateY(${d}deg) `),m&&(o+=`skewX(${m}deg) `),I&&(o+=`skewY(${I}deg) `)}let s=e.x.scale*t.x,l=e.y.scale*t.y;return(s!==1||l!==1)&&(o+=`scale(${s}, ${l})`),o||"none"}var TA=(e,t)=>e.depth-t.depth;var Hx=class{constructor(){this.children=[],this.isDirty=!1}add(t){wl(this.children,t),this.isDirty=!0}remove(t){Cl(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(TA),this.isDirty=!1,this.children.forEach(t)}};function DA(e,t){let r=Nr.now(),o=({timestamp:n})=>{let a=n-r;a>=t&&(_r(o),e(a-t))};return de.read(o,!0),()=>_r(o)}function FA(e){window.MotionDebug&&window.MotionDebug.record(e)}function EA(e){return e instanceof SVGElement&&e.tagName!=="svg"}function OA(e,t,r){let o=De(e)?e:wn(e);return o.start(Sl("",o,t,r)),o.animation}var mS=["","X","Y","Z"],sq={visibility:"hidden"},BA=1e3,lq=0,Si={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0};function xS(e,t,r,o){let{latestValues:n}=t;n[e]&&(r[e]=n[e],t.setStaticValue(e,0),o&&(o[e]=0))}function jx({attachResizeListener:e,defaultParent:t,measureScroll:r,checkIsScrollRoot:o,resetTransform:n}){return class{constructor(i={},s=t?.()){this.id=lq++,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.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,Si.totalNodes=Si.resolvedTargetDeltas=Si.recalculatedProjection=0,this.nodes.forEach(cq),this.nodes.forEach(hq),this.nodes.forEach(gq),this.nodes.forEach(dq),FA(Si)},this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=i,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(i,()=>{this.root.updateBlockedByResize=!0,c&&c(),c=DA(d,250),Dl.hasAnimatedSinceResize&&(Dl.hasAnimatedSinceResize=!1,this.nodes.forEach(RA))})}l&&this.root.registerSharedNode(l,this),this.options.animate!==!1&&u&&(l||f)&&this.addEventListener("didUpdate",({delta:c,hasLayoutChanged:d,hasRelativeTargetChanged:m,layout:I})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}let h=this.options.transition||u.getDefaultTransition()||Sq,{onLayoutAnimationStart:v,onLayoutAnimationComplete:x}=u.getProps(),p=!this.targetLayout||!cS(this.targetLayout,I)||m,g=!d&&m;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||g||d&&(p||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(c,g);let y={...hl(h,"layout"),onPlay:v,onComplete:x};(u.shouldReduceMotion||this.options.layoutRoot)&&(y.delay=0,y.type=!1),this.startAnimation(y)}else d||RA(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=I})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);let i=this.getStack();i&&i.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,_r(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(Iq),this.animationId++)}getTransformTemplate(){let{visualElement:i}=this.options;return i&&i.getProps().transformTemplate}willUpdate(i=!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 u=0;uthis.update()))}clearAllSnapshots(){this.nodes.forEach(pq),this.sharedNodes.forEach(vq)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,de.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){de.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{let w=y/1e3;MA(c.x,i.x,w),MA(c.y,i.y,w),this.setTargetDelta(c),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Tl(d,this.layout.layoutBox,this.relativeParent.layout.layoutBox),yq(this.relativeTarget,this.relativeTargetOrigin,d,w),g&&kA(this.relativeTarget,g)&&(this.isProjectionDirty=!1),g||(g=Me()),Vr(g,this.relativeTarget)),h&&(this.animationValues=u,yA(u,f,this.latestValues,w,p,x)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=w},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(i){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(_r(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=de.update(()=>{Dl.hasAnimatedSinceResize=!0,this.currentAnimation=OA(0,BA,{...i,onUpdate:s=>{this.mixTargetDelta(s),i.onUpdate&&i.onUpdate(s)},onComplete:()=>{i.onComplete&&i.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);let i=this.getStack();i&&i.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(BA),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){let i=this.getLead(),{targetWithTransforms:s,target:l,layout:f,latestValues:u}=i;if(!(!s||!l||!f)){if(this!==i&&this.layout&&f&&VA(this.options.animationType,this.layout.layoutBox,f.layoutBox)){l=this.target||Me();let c=At(this.layout.layoutBox.x);l.x.min=i.target.x.min,l.x.max=l.x.min+c;let d=At(this.layout.layoutBox.y);l.y.min=i.target.y.min,l.y.max=l.y.min+d}Vr(s,l),yi(s,u),kl(this.projectionDeltaWithTransform,this.layoutCorrected,s,u)}}registerSharedNode(i,s){this.sharedNodes.has(i)||this.sharedNodes.set(i,new Vx),this.sharedNodes.get(i).add(s);let f=s.options.initialPromotionConfig;s.promote({transition:f?f.transition:void 0,preserveFollowOpacity:f&&f.shouldPreserveFollowOpacity?f.shouldPreserveFollowOpacity(s):void 0})}isLead(){let i=this.getStack();return i?i.lead===this:!0}getLead(){var i;let{layoutId:s}=this.options;return s?((i=this.getStack())===null||i===void 0?void 0:i.lead)||this:this}getPrevLead(){var i;let{layoutId:s}=this.options;return s?(i=this.getStack())===null||i===void 0?void 0:i.prevLead:void 0}getStack(){let{layoutId:i}=this.options;if(i)return this.root.sharedNodes.get(i)}promote({needsReset:i,transition:s,preserveFollowOpacity:l}={}){let f=this.getStack();f&&f.promote(this,l),i&&(this.projectionDelta=void 0,this.needsReset=!0),s&&this.setOptions({transition:s})}relegate(){let i=this.getStack();return i?i.relegate(this):!1}resetSkewAndRotation(){let{visualElement:i}=this.options;if(!i)return;let s=!1,{latestValues:l}=i;if((l.z||l.rotate||l.rotateX||l.rotateY||l.rotateZ||l.skewX||l.skewY)&&(s=!0),!s)return;let f={};l.z&&xS("z",i,f,this.animationValues);for(let u=0;u{var s;return(s=i.currentAnimation)===null||s===void 0?void 0:s.stop()}),this.root.nodes.forEach(AA),this.root.sharedNodes.clear()}}}function fq(e){e.updateLayout()}function uq(e){var t;let r=((t=e.resumeFrom)===null||t===void 0?void 0:t.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&r&&e.hasListeners("didUpdate")){let{layoutBox:o,measuredBox:n}=e.layout,{animationType:a}=e.options,i=r.source!==e.layout.source;a==="size"?Pr(c=>{let d=i?r.measuredBox[c]:r.layoutBox[c],m=At(d);d.min=o[c].min,d.max=d.min+m}):VA(a,r.layoutBox,o)&&Pr(c=>{let d=i?r.measuredBox[c]:r.layoutBox[c],m=At(o[c]);d.max=d.min+m,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[c].max=e.relativeTarget[c].min+m)});let s=Ii();kl(s,o,r.layoutBox);let l=Ii();i?kl(l,e.applyTransform(n,!0),r.measuredBox):kl(l,o,r.layoutBox);let f=!uS(s),u=!1;if(!e.resumeFrom){let c=e.getClosestProjectingParent();if(c&&!c.resumeFrom){let{snapshot:d,layout:m}=c;if(d&&m){let I=Me();Tl(I,r.layoutBox,d.layoutBox);let h=Me();Tl(h,o,m.layoutBox),cS(I,h)||(u=!0),c.options.layoutRoot&&(e.relativeTarget=h,e.relativeTargetOrigin=I,e.relativeParent=c)}}}e.notifyListeners("didUpdate",{layout:o,snapshot:r,delta:l,layoutDelta:s,hasLayoutChanged:f,hasRelativeTargetChanged:u})}else if(e.isLead()){let{onExitComplete:o}=e.options;o&&o()}e.options.transition=void 0}function cq(e){Si.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 dq(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function pq(e){e.clearSnapshot()}function AA(e){e.clearMeasurements()}function mq(e){e.isLayoutDirty=!1}function xq(e){let{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function RA(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function hq(e){e.resolveTargetDelta()}function gq(e){e.calcProjection()}function Iq(e){e.resetSkewAndRotation()}function vq(e){e.removeLeadSnapshot()}function MA(e,t,r){e.translate=ee(t.translate,0,r),e.scale=ee(t.scale,1,r),e.origin=t.origin,e.originPoint=t.originPoint}function LA(e,t,r,o){e.min=ee(t.min,r.min,o),e.max=ee(t.max,r.max,o)}function yq(e,t,r,o){LA(e.x,t.x,r.x,o),LA(e.y,t.y,r.y,o)}function bq(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}var Sq={duration:.45,ease:[.4,0,.1,1]},_A=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),NA=_A("applewebkit/")&&!_A("chrome/")?Math.round:ye;function zA(e){e.min=NA(e.min),e.max=NA(e.max)}function wq(e){zA(e.x),zA(e.y)}function VA(e,t,r){return e==="position"||e==="preserve-aspect"&&!Ex(dS(t),dS(r),.2)}var HA=jx({attachResizeListener:(e,t)=>br(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0});var hS={current:void 0},Wx=jx({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!hS.current){let e=new HA({});e.mount(window),e.setOptions({layoutScroll:!0}),hS.current=e}return hS.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"});var jA={pan:{Feature:Nx},drag:{Feature:_x,ProjectionNode:Wx,MeasureLayout:zx}};var XA=C(F(),1);var oc={current:null},$x={current:!1};function WA(){if($x.current=!0,!!Zs)if(window.matchMedia){let e=window.matchMedia("(prefers-reduced-motion)"),t=()=>oc.current=e.matches;e.addListener(t),t()}else oc.current=!1}function $A(e,t,r){let{willChange:o}=t;for(let n in t){let a=t[n],i=r[n];if(De(a))e.addValue(n,a),hi(o)&&o.add(n);else if(De(i))e.addValue(n,wn(a,{owner:e})),hi(o)&&o.remove(n);else if(i!==a)if(e.hasValue(n)){let s=e.getValue(n);s.liveStyle===!0?s.jump(a):s.hasAnimated||s.set(a)}else{let s=e.getStaticValue(n);e.addValue(n,wn(s!==void 0?s:a,{owner:e}))}}for(let n in r)t[n]===void 0&&e.removeValue(n);return t}var gS=new WeakMap;var Cq=[...Rb,ot,nr],UA=e=>Cq.find(cx(e));var GA=Object.keys(ui),Pq=GA.length,qA=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],kq=Wu.length;function YA(e){if(e)return e.options.allowProjection!==!1?e.projection:YA(e.parent)}var Ux=class{scrapeMotionValuesFromProps(t,r,o){return{}}constructor({parent:t,props:r,presenceContext:o,reducedMotionConfig:n,blockInitialAnimation:a,visualState:i},s={}){this.resolveKeyframes=(d,m,I,h)=>new this.KeyframeResolver(d,m,I,h,this),this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=va,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=()=>de.render(this.render,!1,!0);let{latestValues:l,renderState:f}=i;this.latestValues=l,this.baseTarget={...l},this.initialValues=r.initial?{...l}:{},this.renderState=f,this.parent=t,this.props=r,this.presenceContext=o,this.depth=t?t.depth+1:0,this.reducedMotionConfig=n,this.options=s,this.blockInitialAnimation=!!a,this.isControllingVariants=fi(r),this.isVariantNode=Vm(r),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);let{willChange:u,...c}=this.scrapeMotionValuesFromProps(r,{},this);for(let d in c){let m=c[d];l[d]!==void 0&&De(m)&&(m.set(l[d],!1),hi(u)&&u.add(d))}}mount(t){this.current=t,gS.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((r,o)=>this.bindToMotionValue(o,r)),$x.current||WA(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:oc.current,this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){var t;gS.delete(this.current),this.projection&&this.projection.unmount(),_r(this.notifyUpdate),_r(this.render),this.valueSubscriptions.forEach(r=>r()),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(let r in this.events)this.events[r].clear();for(let r in this.features)(t=this.features[r])===null||t===void 0||t.unmount();this.current=null}bindToMotionValue(t,r){let o=yr.has(t),n=r.on("change",i=>{this.latestValues[t]=i,this.props.onUpdate&&de.preRender(this.notifyUpdate),o&&this.projection&&(this.projection.isTransformDirty=!0)}),a=r.on("renderRequest",this.scheduleRender);this.valueSubscriptions.set(t,()=>{n(),a(),r.owner&&r.stop()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}loadFeatures({children:t,...r},o,n,a){let i,s;for(let l=0;lthis.scheduleRender(),animationType:typeof f=="string"?f:"both",initialPromotionConfig:a,layoutScroll:d,layoutRoot:m})}return s}updateFeatures(){for(let t in this.features){let r=this.features[t];r.isMounted?r.update():(r.mount(),r.isMounted=!0)}}triggerBuild(){this.build(this.renderState,this.latestValues,this.options,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):Me()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,r){this.latestValues[t]=r}update(t,r){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=r;for(let o=0;or.variantChildren.delete(t)}addValue(t,r){let o=this.values.get(t);r!==o&&(o&&this.removeValue(t),this.bindToMotionValue(t,r),this.values.set(t,r),this.latestValues[t]=r.get())}removeValue(t){this.values.delete(t);let r=this.valueSubscriptions.get(t);r&&(r(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,r){if(this.props.values&&this.props.values[t])return this.props.values[t];let o=this.values.get(t);return o===void 0&&r!==void 0&&(o=wn(r===null?void 0:r,{owner:this}),this.addValue(t,o)),o}readValue(t,r){var o;let n=this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:(o=this.getBaseTargetFromProps(this.props,t))!==null&&o!==void 0?o:this.readValueFromInstance(this.current,t,this.options);return n!=null&&(typeof n=="string"&&(ux(n)||fx(n))?n=parseFloat(n):!UA(n)&&nr.test(r)&&(n=px(t,r)),this.setBaseTarget(t,De(n)?n.get():n)),De(n)?n.get():n}setBaseTarget(t,r){this.baseTarget[t]=r}getBaseTarget(t){var r;let{initial:o}=this.props,n;if(typeof o=="string"||typeof o=="object"){let i=ml(this.props,o,(r=this.presenceContext)===null||r===void 0?void 0:r.custom);i&&(n=i[t])}if(o&&n!==void 0)return n;let a=this.getBaseTargetFromProps(this.props,t);return a!==void 0&&!De(a)?a:this.initialValues[t]!==void 0&&n===void 0?void 0:this.baseTarget[t]}on(t,r){return this.events[t]||(this.events[t]=new Sa),this.events[t].add(r)}notify(t,...r){this.events[t]&&this.events[t].notify(...r)}};var El=class extends Ux{constructor(){super(...arguments),this.KeyframeResolver=yl}sortInstanceNodePosition(t,r){return t.compareDocumentPosition(r)&2?1:-1}getBaseTargetFromProps(t,r){return t.style?t.style[r]:void 0}removeValueFromRenderState(t,{vars:r,style:o}){delete r[t],delete o[t]}};function Tq(e){return window.getComputedStyle(e)}var qx=class extends El{constructor(){super(...arguments),this.type="html"}readValueFromInstance(t,r){if(yr.has(r)){let o=vl(r);return o&&o.default||0}else{let o=Tq(t),n=(Um(r)?o.getPropertyValue(r):o[r])||0;return typeof n=="string"?n.trim():n}}measureInstanceViewportBox(t,{transformPagePoint:r}){return aS(t,r)}build(t,r,o,n){ll(t,r,o,n.transformTemplate)}scrapeMotionValuesFromProps(t,r,o){return pl(t,r,o)}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);let{children:t}=this.props;De(t)&&(this.childSubscription=t.on("change",r=>{this.current&&(this.current.textContent=`${r}`)}))}renderInstance(t,r,o,n){Ym(t,r,o,n)}};var Gx=class extends El{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1}getBaseTargetFromProps(t,r){return t[r]}readValueFromInstance(t,r){if(yr.has(r)){let o=vl(r);return o&&o.default||0}return r=Xm.has(r)?r:el(r),t.getAttribute(r)}measureInstanceViewportBox(){return Me()}scrapeMotionValuesFromProps(t,r,o){return Qm(t,r,o)}build(t,r,o,n){ul(t,r,o,this.isSVGTag,n.transformTemplate)}renderInstance(t,r,o,n){Km(t,r,o,n)}mount(t){this.isSVGTag=cl(t.tagName),super.mount(t)}};var KA=(e,t)=>nl(e)?new Gx(t,{enableHardwareAcceleration:!1}):new qx(t,{allowProjection:e!==XA.Fragment,enableHardwareAcceleration:!0});var QA={layout:{ProjectionNode:Wx,MeasureLayout:zx}};var Dq={..._B,...UO,...jA,...QA},wi=pO((e,t)=>NO(e,t,Dq,KA));var kn=C(L(),1),Hr=C(F(),1);var nc=C(F(),1);var ZA=C(F(),1);function Yx(){let e=(0,ZA.useRef)(!1);return Js(()=>(e.current=!0,()=>{e.current=!1}),[]),e}function JA(){let e=Yx(),[t,r]=(0,nc.useState)(0),o=(0,nc.useCallback)(()=>{e.current&&r(t+1)},[t]);return[(0,nc.useCallback)(()=>de.postRender(o),[o]),t]}var vS=C(L(),1),rR=C(F(),1),ac=C(F(),1);var eR=C(L(),1),Xx=C(F(),1),Pn=C(F(),1);var IS=class extends Xx.Component{getSnapshotBeforeUpdate(t){let r=this.props.childRef.current;if(r&&t.isPresent&&!this.props.isPresent){let o=this.props.sizeRef.current;o.height=r.offsetHeight||0,o.width=r.offsetWidth||0,o.top=r.offsetTop,o.left=r.offsetLeft}return null}componentDidUpdate(){}render(){return this.props.children}};function tR({children:e,isPresent:t}){let r=(0,Pn.useId)(),o=(0,Pn.useRef)(null),n=(0,Pn.useRef)({width:0,height:0,top:0,left:0}),{nonce:a}=(0,Pn.useContext)(Qs);return(0,Pn.useInsertionEffect)(()=>{let{width:i,height:s,top:l,left:f}=n.current;if(t||!o.current||!i||!s)return;o.current.dataset.motionPopId=r;let u=document.createElement("style");return a&&(u.nonce=a),document.head.appendChild(u),u.sheet&&u.sheet.insertRule(` [data-motion-pop-id="${r}"] { position: absolute !important; width: ${i}px !important; height: ${s}px !important; top: ${l}px !important; left: ${f}px !important; } `),()=>{document.head.removeChild(u)}},[t]),(0,eR.jsx)(IS,{isPresent:t,childRef:o,sizeRef:n,children:Xx.cloneElement(e,{ref:o})})}var Kx=({children:e,initial:t,isPresent:r,onExitComplete:o,custom:n,presenceAffectsLayout:a,mode:i})=>{let s=Zm(Fq),l=(0,ac.useId)(),f=(0,ac.useMemo)(()=>({id:l,initial:t,isPresent:r,custom:n,onExitComplete:u=>{s.set(u,!0);for(let c of s.values())if(!c)return;o&&o()},register:u=>(s.set(u,!1),()=>s.delete(u))}),a?[Math.random()]:[r]);return(0,ac.useMemo)(()=>{s.forEach((u,c)=>s.set(c,!1))},[r]),rR.useEffect(()=>{!r&&!s.size&&o&&o()},[r]),i==="popLayout"&&(e=(0,vS.jsx)(tR,{isPresent:r,children:e})),(0,vS.jsx)(In.Provider,{value:f,children:e})};function Fq(){return new Map}var oR=C(F(),1);function nR(e){return(0,oR.useEffect)(()=>()=>e(),[])}var Ci=e=>e.key||"";function Eq(e,t){e.forEach(r=>{let o=Ci(r);t.set(o,r)})}function Oq(e){let t=[];return Hr.Children.forEach(e,r=>{(0,Hr.isValidElement)(r)&&t.push(r)}),t}var ic=({children:e,custom:t,initial:r=!0,onExitComplete:o,exitBeforeEnter:n,presenceAffectsLayout:a=!0,mode:i="sync"})=>{zr(!n,"Replace exitBeforeEnter with mode='wait'");let s=(0,Hr.useContext)(ol).forceRender||JA()[0],l=Yx(),f=Oq(e),u=f,c=(0,Hr.useRef)(new Map).current,d=(0,Hr.useRef)(u),m=(0,Hr.useRef)(new Map).current,I=(0,Hr.useRef)(!0);if(Js(()=>{I.current=!1,Eq(f,m),d.current=u}),nR(()=>{I.current=!0,m.clear(),c.clear()}),I.current)return(0,kn.jsx)(kn.Fragment,{children:u.map(p=>(0,kn.jsx)(Kx,{isPresent:!0,initial:r?void 0:!1,presenceAffectsLayout:a,mode:i,children:p},Ci(p)))});u=[...u];let h=d.current.map(Ci),v=f.map(Ci),x=h.length;for(let p=0;p{if(v.indexOf(g)!==-1)return;let y=m.get(g);if(!y)return;let w=h.indexOf(g),P=p;P||(P=(0,kn.jsx)(Kx,{isPresent:!1,onExitComplete:()=>{c.delete(g);let k=Array.from(m.keys()).filter(D=>!v.includes(D));if(k.forEach(D=>m.delete(D)),d.current=f.filter(D=>{let T=Ci(D);return T===g||k.includes(T)}),!c.size){if(l.current===!1)return;s(),o&&o()}},custom:t,presenceAffectsLayout:a,mode:i,children:y},Ci(y)),c.set(g,P)),u.splice(w,0,P)}),u=u.map(p=>{let g=p.key;return c.has(g)?p:(0,kn.jsx)(Kx,{isPresent:!0,presenceAffectsLayout:a,mode:i,children:p},Ci(p))}),(0,kn.jsx)(kn.Fragment,{children:c.size?u:u.map(p=>(0,Hr.cloneElement)(p))})};var Tn=C(F(),1),yS=C(L(),1),Bq={initial:e=>{let{position:t}=e,r=["top","bottom"].includes(t)?"y":"x",o=["top-right","bottom-right"].includes(t)?1:-1;return t==="bottom"&&(o=1),{opacity:0,[r]:o*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]}}},bS=(0,Tn.memo)(e=>{let{id:t,message:r,onCloseComplete:o,onRequestRemove:n,requestClose:a=!1,position:i="bottom",duration:s=5e3,containerStyle:l,motionVariants:f=Bq,toastSpacing:u="0.5rem"}=e,[c,d]=(0,Tn.useState)(s),m=sS();Ks(()=>{m||o?.()},[m]),Ks(()=>{d(s)},[s]);let I=()=>d(null),h=()=>d(s),v=()=>{m&&n()};(0,Tn.useEffect)(()=>{m&&a&&n()},[m,a,n]),XE(v,c);let x=(0,Tn.useMemo)(()=>({pointerEvents:"auto",maxWidth:560,minWidth:300,margin:u,...l}),[l,u]),p=(0,Tn.useMemo)(()=>qE(i),[i]);return(0,yS.jsx)(wi.div,{layout:!0,className:"chakra-toast",variants:f,initial:"initial",animate:"animate",exit:"exit",onHoverStart:I,onHoverEnd:h,custom:{position:i},style:p,children:(0,yS.jsx)(A.div,{role:"status","aria-atomic":"true",className:"chakra-toast__inner",__css:x,children:gr(r,{id:t,onClose:v})})})});bS.displayName="ToastComponent";var wa=C(L(),1),aR={path:(0,wa.jsxs)("g",{stroke:"currentColor",strokeWidth:"1.5",children:[(0,wa.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"}),(0,wa.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"}),(0,wa.jsx)("circle",{fill:"none",strokeMiterlimit:"10",cx:"12",cy:"12",r:"11.25"})]}),viewBox:"0 0 24 24"},Ca=V((e,t)=>{let{as:r,viewBox:o,color:n="currentColor",focusable:a=!1,children:i,className:s,__css:l,...f}=e,u=G("chakra-icon",s),c=ct("Icon",e),d={w:"1em",h:"1em",display:"inline-block",lineHeight:"1em",flexShrink:0,color:n,...l,...c},m={ref:t,focusable:a,className:u,__css:d},I=o??aR.viewBox;if(r&&typeof r!="string")return(0,wa.jsx)(A.svg,{as:r,...m,...f});let h=i??aR.path;return(0,wa.jsx)(A.svg,{verticalAlign:"middle",viewBox:I,...m,...f,children:h})});Ca.displayName="Icon";var Pi=C(L(),1);function iR(e){return(0,Pi.jsx)(Ca,{viewBox:"0 0 24 24",...e,children:(0,Pi.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 sR(e){return(0,Pi.jsx)(Ca,{viewBox:"0 0 24 24",...e,children:(0,Pi.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 SS(e){return(0,Pi.jsx)(Ca,{viewBox:"0 0 24 24",...e,children:(0,Pi.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 wS=C(L(),1),Aq=yI({"0%":{transform:"rotate(0deg)"},"100%":{transform:"rotate(360deg)"}}),Ol=V((e,t)=>{let r=ct("Spinner",e),{label:o="Loading...",thickness:n="2px",speed:a="0.45s",emptyColor:i="transparent",className:s,...l}=Pe(e),f=G("chakra-spinner",s),u={display:"inline-block",borderColor:"currentColor",borderStyle:"solid",borderRadius:"99999px",borderWidth:n,borderBottomColor:i,borderLeftColor:i,animation:`${Aq} ${a} linear infinite`,...r};return(0,wS.jsx)(A.div,{ref:t,__css:u,className:f,...l,children:o&&(0,wS.jsx)(A.span,{srOnly:!0,children:o})})});Ol.displayName="Spinner";var[lR,Bl]=Dt({name:"AlertContext",hookName:"useAlertContext",providerName:""}),[fR,Al]=Dt({name:"AlertStylesContext",hookName:"useAlertStyles",providerName:""}),uR={info:{icon:sR,colorScheme:"blue"},warning:{icon:SS,colorScheme:"orange"},success:{icon:iR,colorScheme:"green"},error:{icon:SS,colorScheme:"red"},loading:{icon:Ol,colorScheme:"blue"}};function cR(e){return uR[e].colorScheme}function dR(e){return uR[e].icon}var pR=C(L(),1),Qx=V(function(t,r){let o=Al(),{status:n}=Bl(),a={display:"inline",...o.description};return(0,pR.jsx)(A.div,{ref:r,"data-status":n,...t,className:G("chakra-alert__desc",t.className),__css:a})});Qx.displayName="AlertDescription";var CS=C(L(),1);function Zx(e){let{status:t}=Bl(),r=dR(t),o=Al(),n=t==="loading"?o.spinner:o.icon;return(0,CS.jsx)(A.span,{display:"inherit","data-status":t,...e,className:G("chakra-alert__icon",e.className),__css:n,children:e.children||(0,CS.jsx)(r,{h:"100%",w:"100%"})})}Zx.displayName="AlertIcon";var mR=C(L(),1),Jx=V(function(t,r){let o=Al(),{status:n}=Bl();return(0,mR.jsx)(A.div,{ref:r,"data-status":n,...t,className:G("chakra-alert__title",t.className),__css:o.title})});Jx.displayName="AlertTitle";var eh=C(L(),1),th=V(function(t,r){var o;let{status:n="info",addRole:a=!0,...i}=Pe(t),s=(o=t.colorScheme)!=null?o:cR(n),l=yo("Alert",{...t,colorScheme:s}),f={width:"100%",display:"flex",alignItems:"center",position:"relative",overflow:"hidden",...l.container};return(0,eh.jsx)(lR,{value:{status:n},children:(0,eh.jsx)(fR,{value:l,children:(0,eh.jsx)(A.div,{"data-status":n,role:a?"alert":void 0,ref:r,...i,className:G("chakra-alert",t.className),__css:f})})})});th.displayName="Alert";var sc=C(L(),1);function Rq(e){return(0,sc.jsx)(Ca,{focusable:"false","aria-hidden":!0,...e,children:(0,sc.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 rh=V(function(t,r){let o=ct("CloseButton",t),{children:n,isDisabled:a,__css:i,...s}=Pe(t),l={outline:0,display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0};return(0,sc.jsx)(A.button,{type:"button","aria-label":"Close",ref:r,disabled:a,__css:{...l,...o,...i},...s,children:n||(0,sc.jsx)(Rq,{width:"1em",height:"1em"})})});rh.displayName="CloseButton";var Dn=C(L(),1),Mq={top:[],"top-left":[],"top-right":[],"bottom-left":[],bottom:[],"bottom-right":[]},Rl=Lq(Mq);function Lq(e){let t=e,r=new Set,o=n=>{t=n(t),r.forEach(a=>a())};return{getState:()=>t,subscribe:n=>(r.add(n),()=>{o(()=>e),r.delete(n)}),removeToast:(n,a)=>{o(i=>({...i,[a]:i[a].filter(s=>s.id!=n)}))},notify:(n,a)=>{let i=_q(n,a),{position:s,id:l}=i;return o(f=>{var u,c;let m=s.includes("top")?[i,...(u=f[s])!=null?u:[]]:[...(c=f[s])!=null?c:[],i];return{...f,[s]:m}}),l},update:(n,a)=>{n&&o(i=>{let s={...i},{position:l,index:f}=yb(s,n);return l&&f!==-1&&(s[l][f]={...s[l][f],...a,message:zq(a)}),s})},closeAll:({positions:n}={})=>{o(a=>(n??["bottom","bottom-right","bottom-left","top","top-left","top-right"]).reduce((l,f)=>(l[f]=a[f].map(u=>({...u,requestClose:!0})),l),{...a}))},close:n=>{o(a=>{let i=bb(a,n);return i?{...a,[i]:a[i].map(s=>s.id==n?{...s,requestClose:!0}:s)}:a})},isActive:n=>!!yb(Rl.getState(),n).position}}var xR=0;function _q(e,t={}){var r,o;xR+=1;let n=(r=t.id)!=null?r:xR,a=(o=t.position)!=null?o:"bottom";return{id:n,message:e,position:a,duration:t.duration,onCloseComplete:t.onCloseComplete,onRequestRemove:()=>Rl.removeToast(String(n),a),status:t.status,requestClose:!1,containerStyle:t.containerStyle}}var Nq=e=>{let{status:t,variant:r="solid",id:o,title:n,isClosable:a,onClose:i,description:s,colorScheme:l,icon:f}=e,u=o?{root:`toast-${o}`,title:`toast-${o}-title`,description:`toast-${o}-description`}:void 0;return(0,Dn.jsxs)(th,{addRole:!1,status:t,variant:r,id:u?.root,alignItems:"start",borderRadius:"md",boxShadow:"lg",paddingEnd:8,textAlign:"start",width:"auto",colorScheme:l,children:[(0,Dn.jsx)(Zx,{children:f}),(0,Dn.jsxs)(A.div,{flex:"1",maxWidth:"100%",children:[n&&(0,Dn.jsx)(Jx,{id:u?.title,children:n}),s&&(0,Dn.jsx)(Qx,{id:u?.description,display:"block",children:s})]}),a&&(0,Dn.jsx)(rh,{size:"sm",onClick:i,position:"absolute",insetEnd:1,top:1})]})};function zq(e={}){let{render:t,toastComponent:r=Nq}=e;return n=>typeof t=="function"?t({...n,...e}):(0,Dn.jsx)(r,{...n,...e})}var hR=C(F(),1);var lc=C(L(),1),[PS,Che]=Dt({name:"ToastOptionsContext",strict:!1}),kS=e=>{let t=(0,hR.useSyncExternalStore)(Rl.subscribe,Rl.getState,Rl.getState),{motionVariants:r,component:o=bS,portalProps:n}=e,i=Object.keys(t).map(s=>{let l=t[s];return(0,lc.jsx)("div",{role:"region","aria-live":"polite","aria-label":`Notifications-${s}`,id:`chakra-toast-manager-${s}`,style:GE(s),children:(0,lc.jsx)(ic,{initial:!1,children:l.map(f=>(0,lc.jsx)(o,{motionVariants:r,...f},f.id))})},s)});return(0,lc.jsx)(_o,{...n,children:i})};var fc=C(L(),1),gR=e=>function({children:r,theme:o=e,toastOptions:n,...a}){return(0,fc.jsxs)(vb,{theme:o,...a,children:[(0,fc.jsx)(PS,{value:n?.defaultOptions,children:r}),(0,fc.jsx)(kS,{...n})]})},TS=gR(PE),Vq=gR(kE);var IR=C(F(),1);function Hq(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 ar(...e){return t=>{e.forEach(r=>{Hq(r,t)})}}function vR(...e){return(0,IR.useMemo)(()=>ar(...e),e)}var oh=C(F(),1);function yR(e){return oh.Children.toArray(e).filter(t=>(0,oh.isValidElement)(t))}var[Mhe,bR]=Dt({strict:!1,name:"ButtonGroupContext"});var nh=C(F(),1);function SR(e){let[t,r]=(0,nh.useState)(!e);return{ref:(0,nh.useCallback)(a=>{a&&r(a.tagName==="BUTTON")},[]),type:t?"button":void 0}}var ah=C(F(),1),wR=C(L(),1);function ih(e){let{children:t,className:r,...o}=e,n=(0,ah.isValidElement)(t)?(0,ah.cloneElement)(t,{"aria-hidden":!0,focusable:!1}):t,a=G("chakra-button__icon",r);return(0,wR.jsx)(A.span,{display:"inline-flex",alignSelf:"center",flexShrink:0,...o,className:a,children:n})}ih.displayName="ButtonIcon";var CR=C(F(),1),DS=C(L(),1);function sh(e){let{label:t,placement:r,spacing:o="0.5rem",children:n=(0,DS.jsx)(Ol,{color:"currentColor",width:"1em",height:"1em"}),className:a,__css:i,...s}=e,l=G("chakra-button__spinner",a),f=r==="start"?"marginEnd":"marginStart",u=(0,CR.useMemo)(()=>({display:"flex",alignItems:"center",position:t?"relative":"absolute",[f]:t?o:0,fontSize:"1em",lineHeight:"normal",...i}),[i,t,f,o]);return(0,DS.jsx)(A.div,{className:l,...s,__css:u,children:n})}sh.displayName="ButtonSpinner";var kR=C(F(),1),jr=C(L(),1),St=V((e,t)=>{let r=bR(),o=ct("Button",{...r,...e}),{isDisabled:n=r?.isDisabled,isLoading:a,isActive:i,children:s,leftIcon:l,rightIcon:f,loadingText:u,iconSpacing:c="0.5rem",type:d,spinner:m,spinnerPlacement:I="start",className:h,as:v,...x}=Pe(e),p=(0,kR.useMemo)(()=>{let P={...o?._focus,zIndex:1};return{display:"inline-flex",appearance:"none",alignItems:"center",justifyContent:"center",userSelect:"none",position:"relative",whiteSpace:"nowrap",verticalAlign:"middle",outline:"none",...o,...!!r&&{_focus:P}}},[o,r]),{ref:g,type:y}=SR(v),w={rightIcon:f,leftIcon:l,iconSpacing:c,children:s};return(0,jr.jsxs)(A.button,{ref:vR(t,g),as:v,type:d??y,"data-active":Ir(i),"data-loading":Ir(a),__css:p,className:G("chakra-button",h),...x,disabled:n||a,children:[a&&I==="start"&&(0,jr.jsx)(sh,{className:"chakra-button__spinner--start",label:u,placement:"start",spacing:c,children:m}),a?u||(0,jr.jsx)(A.span,{opacity:0,children:(0,jr.jsx)(PR,{...w})}):(0,jr.jsx)(PR,{...w}),a&&I==="end"&&(0,jr.jsx)(sh,{className:"chakra-button__spinner--end",label:u,placement:"end",spacing:c,children:m})]})});St.displayName="Button";function PR(e){let{leftIcon:t,rightIcon:r,children:o,iconSpacing:n}=e;return(0,jr.jsxs)(jr.Fragment,{children:[t&&(0,jr.jsx)(ih,{marginEnd:n,children:t}),o,r&&(0,jr.jsx)(ih,{marginStart:n,children:r})]})}var ro=C(F(),1),uc=C(L(),1),[jq,lh]=Dt({name:"FormControlStylesContext",errorMessage:`useFormControlStyles returned is 'undefined'. Seems you forgot to wrap the components in "" `}),[Wq,ki]=Dt({strict:!1,name:"FormControlContext"});function $q(e){let{id:t,isRequired:r,isInvalid:o,isDisabled:n,isReadOnly:a,...i}=e,s=(0,ro.useId)(),l=t||`field-${s}`,f=`${l}-label`,u=`${l}-feedback`,c=`${l}-helptext`,[d,m]=(0,ro.useState)(!1),[I,h]=(0,ro.useState)(!1),[v,x]=(0,ro.useState)(!1),p=(0,ro.useCallback)((b={},k=null)=>({id:c,...b,ref:ar(k,D=>{D&&h(!0)})}),[c]),g=(0,ro.useCallback)((b={},k=null)=>({...b,ref:k,"data-focus":Ir(v),"data-disabled":Ir(n),"data-invalid":Ir(o),"data-readonly":Ir(a),id:b.id!==void 0?b.id:f,htmlFor:b.htmlFor!==void 0?b.htmlFor:l}),[l,n,v,o,a,f]),y=(0,ro.useCallback)((b={},k=null)=>({id:u,...b,ref:ar(k,D=>{D&&m(!0)}),"aria-live":"polite"}),[u]),w=(0,ro.useCallback)((b={},k=null)=>({...b,...i,ref:k,role:"group","data-focus":Ir(v),"data-disabled":Ir(n),"data-invalid":Ir(o),"data-readonly":Ir(a)}),[i,n,v,o,a]),P=(0,ro.useCallback)((b={},k=null)=>({...b,ref:k,role:"presentation","aria-hidden":!0,children:b.children||"*"}),[]);return{isRequired:!!r,isInvalid:!!o,isReadOnly:!!a,isDisabled:!!n,isFocused:!!v,onFocus:()=>x(!0),onBlur:()=>x(!1),hasFeedbackText:d,setHasFeedbackText:m,hasHelpText:I,setHasHelpText:h,id:l,labelId:f,feedbackId:u,helpTextId:c,htmlProps:i,getHelpTextProps:p,getErrorMessageProps:y,getRootProps:w,getLabelProps:g,getRequiredIndicatorProps:P}}var Rt=V(function(t,r){let o=yo("Form",t),n=Pe(t),{getRootProps:a,htmlProps:i,...s}=$q(n),l=G("chakra-form-control",t.className);return(0,uc.jsx)(Wq,{value:s,children:(0,uc.jsx)(jq,{value:o,children:(0,uc.jsx)(A.div,{...a({},r),className:l,__css:o.container})})})});Rt.displayName="FormControl";var TR=V(function(t,r){let o=ki(),n=lh(),a=G("chakra-form__helper-text",t.className);return(0,uc.jsx)(A.div,{...o?.getHelpTextProps(t,r),__css:n.helperText,className:a})});TR.displayName="FormHelperText";var cc=C(L(),1),Mt=V(function(t,r){var o;let n=ct("FormLabel",t),a=Pe(t),{className:i,children:s,requiredIndicator:l=(0,cc.jsx)(FS,{}),optionalIndicator:f=null,...u}=a,c=ki(),d=(o=c?.getLabelProps(u,r))!=null?o:{ref:r,...u};return(0,cc.jsxs)(A.label,{...d,className:G("chakra-form__label",a.className),__css:{display:"block",textAlign:"start",...n},children:[s,c?.isRequired?l:f]})});Mt.displayName="FormLabel";var FS=V(function(t,r){let o=ki(),n=lh();if(!o?.isRequired)return null;let a=G("chakra-form__required-indicator",t.className);return(0,cc.jsx)(A.span,{...o?.getRequiredIndicatorProps(t,r),__css:n.requiredIndicator,className:a})});FS.displayName="RequiredIndicator";function Ti(e){let{isDisabled:t,isInvalid:r,isReadOnly:o,isRequired:n,...a}=DR(e);return{...a,disabled:t,readOnly:o,required:n,"aria-invalid":Vp(r),"aria-required":Vp(n),"aria-readonly":Vp(o)}}function DR(e){var t,r,o;let n=ki(),{id:a,disabled:i,readOnly:s,required:l,isRequired:f,isInvalid:u,isReadOnly:c,isDisabled:d,onFocus:m,onBlur:I,...h}=e,v=e["aria-describedby"]?[e["aria-describedby"]]:[];return n?.hasFeedbackText&&n?.isInvalid&&v.push(n.feedbackId),n?.hasHelpText&&v.push(n.helpTextId),{...h,"aria-describedby":v.join(" ")||void 0,id:a??n?.id,isDisabled:(t=i??d)!=null?t:n?.isDisabled,isReadOnly:(r=s??c)!=null?r:n?.isReadOnly,isRequired:(o=l??f)!=null?o:n?.isRequired,isInvalid:u??n?.isInvalid,onFocus:rt(n?.onFocus,m),onBlur:rt(n?.onBlur,I)}}var FR=C(F(),1);function qo(e,t,r,o){let n=li(r);return(0,FR.useEffect)(()=>{let a=typeof e=="function"?e():e??document;if(!(!r||!a))return a.addEventListener(t,n,o),()=>{a.removeEventListener(t,n,o)}},[t,e,o,n,r]),()=>{let a=typeof e=="function"?e():e??document;a?.removeEventListener(t,n,o)}}function Uq(e){return"current"in e}var ER=()=>typeof window<"u";function qq(){var e;let t=navigator.userAgentData;return(e=t?.platform)!=null?e:navigator.platform}var Gq=e=>ER()&&e.test(navigator.vendor),Yq=e=>ER()&&e.test(qq()),Xq=()=>Yq(/mac|iphone|ipad|ipod/i),Kq=()=>Xq()&&Gq(/apple/i);function OR(e){let{ref:t,elements:r,enabled:o}=e,n=()=>{var a,i;return(i=(a=t.current)==null?void 0:a.ownerDocument)!=null?i:document};qo(n,"pointerdown",a=>{if(!Kq()||!o)return;let i=a.target,l=(r??[t]).some(f=>{let u=Uq(f)?f.current:f;return u?.contains(i)||u===i});n().activeElement!==i&&l&&(a.preventDefault(),i.focus())})}function ES(e,t){if(e==null)return{};var r={};for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){if(t.indexOf(o)>=0)continue;r[o]=e[o]}return r}var Ph=C(F());var ge=C(F());var dc="data-focus-lock",fh="data-focus-lock-disabled",VR="data-no-focus-lock",HR="data-autofocus-inside",jR="data-no-autofocus";function uh(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}var WR=C(F());function $R(e,t){var r=(0,WR.useState)(function(){return{value:e,callback:t,facade:{get current(){return r.value},set current(o){var n=r.value;n!==o&&(r.value=o,r.callback(o,n))}}}})[0];return r.callback=t,r.facade}var ch=C(F());var e8=typeof window<"u"?ch.useLayoutEffect:ch.useEffect,UR=new WeakMap;function OS(e,t){var r=$R(t||null,function(o){return e.forEach(function(n){return uh(n,o)})});return e8(function(){var o=UR.get(r);if(o){var n=new Set(o),a=new Set(e),i=r.current;n.forEach(function(s){a.has(s)||uh(s,null)}),a.forEach(function(s){n.has(s)||uh(s,i)})}UR.set(r,e)},[e]),r}var Ml=C(F());var Ll={width:"1px",height:"0px",padding:0,overflow:"hidden",position:"fixed",top:"1px",left:"1px"},t8=function(t){var r=t.children,o=r===void 0?null:r;return Ml.createElement(Ml.Fragment,null,Ml.createElement("div",{key:"guard-first","data-focus-guard":!0,"data-focus-auto-guard":!0,style:Ll}),o,o&&Ml.createElement("div",{key:"guard-last","data-focus-guard":!0,"data-focus-auto-guard":!0,style:Ll}))};t8.propTypes={};var dh=function(){return dh=Object.assign||function(t){for(var r,o=1,n=arguments.length;o=0}).sort(u8)};var aM=["button:enabled","select:enabled","textarea:enabled","input:enabled","a[href]","area[href]","summary","iframe","object","embed","audio[controls]","video[controls]","[tabindex]","[contenteditable]","[autofocus]"];var jS=aM.join(","),d8="".concat(jS,", [data-focus-guard]"),iM=function(e,t){return Ut((e.shadowRoot||e).children).reduce(function(r,o){return r.concat(o.matches(t?d8:jS)?[o]:[],iM(o))},[])},p8=function(e,t){var r;return e instanceof HTMLIFrameElement&&(!((r=e.contentDocument)===null||r===void 0)&&r.body)?ka([e.contentDocument.body],t):[e]},ka=function(e,t){return e.reduce(function(r,o){var n,a=iM(o,t),i=(n=[]).concat.apply(n,a.map(function(s){return p8(s,t)}));return r.concat(i,o.parentNode?Ut(o.parentNode.querySelectorAll(jS)).filter(function(s){return s===o}):[])},[])},sM=function(e){var t=e.querySelectorAll("[".concat(HR,"]"));return Ut(t).map(function(r){return ka([r])}).reduce(function(r,o){return r.concat(o)},[])};var WS=function(e,t){return Ut(e).filter(function(r){return NS(t,r)}).filter(function(r){return oM(r)})},$S=function(e,t){return t===void 0&&(t=new Map),Ut(e).filter(function(r){return zS(t,r)})},Ic=function(e,t,r){return gc(WS(ka(e,r),t),!0,r)},_l=function(e,t){return gc(WS(ka(e),t),!1)},lM=function(e,t){return WS(sM(e),t)},So=function(e,t){return e.shadowRoot?So(e.shadowRoot,t):Object.getPrototypeOf(e).contains!==void 0&&Object.getPrototypeOf(e).contains.call(e,t)?!0:Ut(e.children).some(function(r){var o;if(r instanceof HTMLIFrameElement){var n=(o=r.contentDocument)===null||o===void 0?void 0:o.body;return n?So(n,t):!1}return So(r,t)})};var m8=function(e){for(var t=new Set,r=e.length,o=0;o0&&t.add(n),(a&Node.DOCUMENT_POSITION_CONTAINS)>0&&t.add(o)}return e.filter(function(i,s){return!t.has(s)})},fM=function(e){return e.parentNode?fM(e.parentNode):e},Nl=function(e){var t=bo(e);return t.filter(Boolean).reduce(function(r,o){var n=o.getAttribute(dc);return r.push.apply(r,n?m8(Ut(fM(o).querySelectorAll("[".concat(dc,'="').concat(n,'"]:not([').concat(fh,'="disabled"])')))):[o]),r},[])};var uM=function(e){try{return e()}catch{return}};var Ta=function(e){if(e===void 0&&(e=document),!(!e||!e.activeElement)){var t=e.activeElement;return t.shadowRoot?Ta(t.shadowRoot):t instanceof HTMLIFrameElement&&uM(function(){return t.contentWindow.document})?Ta(t.contentWindow.document):t}};var x8=function(e,t){return e===t},h8=function(e,t){return!!Ut(e.querySelectorAll("iframe")).some(function(r){return x8(r,t)})},gh=function(e,t){return t===void 0&&(t=Ta(hh(e).ownerDocument)),!t||t.dataset&&t.dataset.focusGuard?!1:Nl(e).some(function(r){return So(r,t)||h8(r,t)})};var US=function(e){e===void 0&&(e=document);var t=Ta(e);return t?Ut(e.querySelectorAll("[".concat(VR,"]"))).some(function(r){return So(r,t)}):!1};var g8=function(e,t){return t.filter(HS).filter(function(r){return r.name===e.name}).filter(function(r){return r.checked})[0]||e},Ih=function(e,t){return HS(e)&&e.name?g8(e,t):e},cM=function(e){var t=new Set;return e.forEach(function(r){return t.add(Ih(r,e))}),e.filter(function(r){return t.has(r)})};var qS=function(e){return e[0]&&e.length>1?Ih(e[0],e):e[0]},GS=function(e,t){return e.indexOf(Ih(t,e))};var vh="NEW_FOCUS",dM=function(e,t,r,o,n){var a=e.length,i=e[0],s=e[a-1],l=xc(o);if(!(o&&e.indexOf(o)>=0)){var f=o!==void 0?r.indexOf(o):-1,u=n?r.indexOf(n):f,c=n?e.indexOf(n):-1;if(f===-1)return c!==-1?c:vh;if(c===-1)return vh;var d=f-u,m=r.indexOf(i),I=r.indexOf(s),h=cM(r),v=o!==void 0?h.indexOf(o):-1,x=v-(n?h.indexOf(n):f);if(!d&&c>=0||t.length===0)return c;var p=GS(e,t[0]),g=GS(e,t[t.length-1]);if(f<=m&&l&&Math.abs(d)>1)return g;if(f>=I&&l&&Math.abs(d)>1)return p;if(d&&Math.abs(x)>1)return c;if(f<=m)return g;if(f>I)return p;if(d)return Math.abs(d)>1?c:(a+c+d)%a}};var I8=function(e){return function(t){var r,o=(r=VS(t))===null||r===void 0?void 0:r.autofocus;return t.autofocus||o!==void 0&&o!=="false"||e.indexOf(t)>=0}},YS=function(e,t,r){var o=e.map(function(a){var i=a.node;return i}),n=$S(o.filter(I8(r)));return n&&n.length?qS(n):qS($S(t))};var KS=function(e,t){return t===void 0&&(t=[]),t.push(e),e.parentNode&&KS(e.parentNode.host||e.parentNode,t),t},XS=function(e,t){for(var r=KS(e),o=KS(t),n=0;n=0)return a}return!1},yh=function(e,t,r){var o=bo(e),n=bo(t),a=o[0],i=!1;return n.filter(Boolean).forEach(function(s){i=XS(i||s,s)||i,r.filter(Boolean).forEach(function(l){var f=XS(a,l);f&&(!i||So(f,i)?i=f:i=XS(f,i))})}),i},QS=function(e,t){return e.reduce(function(r,o){return r.concat(lM(o,t))},[])};var v8=function(e,t){var r=new Map;return t.forEach(function(o){return r.set(o.node,o)}),e.map(function(o){return r.get(o)}).filter(nM)},pM=function(e,t){var r=Ta(bo(e).length>0?document:hh(e).ownerDocument),o=Nl(e).filter(hc),n=yh(r||e,e,o),a=new Map,i=_l(o,a),s=i.filter(function(I){var h=I.node;return hc(h)});if(s[0]){var l=_l([n],a).map(function(I){var h=I.node;return h}),f=v8(l,s),u=f.map(function(I){var h=I.node;return h}),c=f.filter(function(I){var h=I.tabIndex;return h>=0}).map(function(I){var h=I.node;return h}),d=dM(u,c,l,r,t);if(d===vh){var m=YS(i,c,QS(o,a))||YS(i,u,QS(o,a));if(m)return{node:m};console.warn("focus-lock: cannot find any node to move focus into");return}return d===void 0?d:f[d]}};var ZS=function(e){var t=Nl(e).filter(hc),r=yh(e,e,t),o=gc(ka([r],!0),!0,!0),n=ka(t,!1);return o.map(function(a){var i=a.node,s=a.index;return{node:i,index:s,lockItem:n.indexOf(i)>=0,guard:xc(i)}})};var vc=function(e,t){e&&("focus"in e&&e.focus(t),"contentWindow"in e&&e.contentWindow&&e.contentWindow.focus())};var JS=0,ew=!1,bh=function(e,t,r){r===void 0&&(r={});var o=pM(e,t);if(!ew&&o){if(JS>2){console.error("FocusLock: focus-fighting detected. Only one focus management system could be active. See https://github.com/theKashey/focus-lock/#focus-fighting"),ew=!0,setTimeout(function(){ew=!1},1);return}JS++,vc(o.node,r.focusOptions),JS--}};function yc(e){if(!e)return null;if(typeof WeakRef>"u")return function(){return e||null};var t=e?new WeakRef(e):null;return function(){return t?.deref()||null}}var y8=function(e){if(!e)return null;for(var t=[],r=e;r&&r!==document.body;)t.push({current:yc(r),parent:yc(r.parentElement),left:yc(r.previousElementSibling),right:yc(r.nextElementSibling)}),r=r.parentElement;return{element:yc(e),stack:t,ownerDocument:e.ownerDocument}},b8=function(e){var t,r,o,n,a;if(e)for(var i=e.stack,s=e.ownerDocument,l=new Map,f=0,u=i;f-1&&(m.filter(function(h){var v=h.guard,x=h.node;return v&&x.dataset.focusAutoGuard}).forEach(function(h){var v=h.node;return v.removeAttribute("tabIndex")}),IM(I,m.length,1,m),IM(I,-1,-1,m))}}}return t},yM=function(t){wh()&&t&&(t.stopPropagation(),t.preventDefault())},Ch=function(){return Sh(wh)},bM=function(t){var r=t.target,o=t.currentTarget;o.contains(r)||D8(o,r)},A8=function(){return null},R8=function(t){var r=t.children;return vM.createElement("div",{onBlur:Ch,onFocus:bM},r)};R8.propTypes={};var SM=function(){bc="just",Sh(function(){bc="meanwhile"})},M8=function(){document.addEventListener("focusin",yM),document.addEventListener("focusout",Ch),window.addEventListener("blur",SM)},L8=function(){document.removeEventListener("focusin",yM),document.removeEventListener("focusout",Ch),window.removeEventListener("blur",SM)};function _8(e){return e.filter(function(t){var r=t.disabled;return!r})}var wM={moveFocusInside:bh,focusInside:gh,focusNextElement:rw,focusPrevElement:ow,focusFirstElement:nw,focusLastElement:aw,captureFocusRestore:tw};function N8(e){var t=e.slice(-1)[0];t&&!Vl&&M8();var r=Vl,o=r&&t&&t.id===r.id;Vl=t,r&&!o&&(r.onDeactivation(),e.filter(function(n){var a=n.id;return a===r.id}).length||r.returnFocus(!t)),t?(zl=null,(!o||r.observed!==t.observed)&&t.onActivation(wM),wh(!0),Sh(wh)):(L8(),zl=null)}ph.assignSyncMedium(bM);mh.assignMedium(Ch);YR.assignMedium(function(e){return e(wM)});var CM=JR(_8,N8)(A8);var PM=Ph.forwardRef(function(t,r){return Ph.createElement(AS,$r({sideCar:CM,ref:r},t))}),kM=AS.propTypes||{},$ve=kM.sideCar,Uve=ES(kM,["sideCar"]);PM.propTypes={};var TM=PM;var DM=TM;function iw(e){return e!=null&&typeof e=="object"&&"nodeType"in e&&e.nodeType===Node.ELEMENT_NODE}function jl(e){var t;if(!iw(e))return!1;let r=(t=e.ownerDocument.defaultView)!=null?t:window;return e instanceof r.HTMLElement}function sw(e){var t,r;return(r=(t=kh(e))==null?void 0:t.defaultView)!=null?r:window}function kh(e){return iw(e)?e.ownerDocument:document}function lw(e){return kh(e).activeElement}function z8(e){let t=e.ownerDocument.defaultView||window,{overflow:r,overflowX:o,overflowY:n}=t.getComputedStyle(e);return/auto|scroll|overlay|hidden/.test(r+n+o)}function V8(e){return e.localName==="html"?e:e.assignedSlot||e.parentElement||e.ownerDocument.documentElement}function Th(e){return["html","body","#document"].includes(e.localName)?e.ownerDocument.body:jl(e)&&z8(e)?e:Th(V8(e))}var fw=e=>e.hasAttribute("tabindex"),FM=e=>fw(e)&&e.tabIndex===-1;function EM(e){return!!e.getAttribute("disabled")||!!e.getAttribute("aria-disabled")}function uw(e){return e.parentElement&&uw(e.parentElement)?!0:e.hidden}function OM(e){let t=e.getAttribute("contenteditable");return t!=="false"&&t!=null}function cw(e){if(!jl(e)||uw(e)||EM(e))return!1;let{localName:t}=e;if(["input","select","textarea","button"].indexOf(t)>=0)return!0;let o={a:()=>e.hasAttribute("href"),audio:()=>e.hasAttribute("controls"),video:()=>e.hasAttribute("controls")};return t in o?o[t]():OM(e)?!0:fw(e)}function dw(e){return e?jl(e)&&cw(e)&&!FM(e):!1}var H8=["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]"],j8=H8.join(),W8=e=>e.offsetWidth>0&&e.offsetHeight>0;function BM(e){let t=Array.from(e.querySelectorAll(j8));return t.unshift(e),t.filter(r=>cw(r)&&W8(r))}var Dh=C(F(),1),AM=ub?Dh.useLayoutEffect:Dh.useEffect;var Fh=C(F(),1);function pw(e,t=[]){let r=(0,Fh.useRef)(e);return AM(()=>{r.current=e}),(0,Fh.useCallback)((...o)=>{var n;return(n=r.current)==null?void 0:n.call(r,...o)},t)}var Wl=C(F(),1);function RM(e,t){let r=(0,Wl.useId)();return(0,Wl.useMemo)(()=>e||[t,r].filter(Boolean).join("-"),[e,t,r])}var MM=C(F(),1);function LM(e,t){let r=e!==void 0;return[r,r&&typeof e<"u"?e:t]}var $l=C(F(),1);function mw(e={}){let{onClose:t,onOpen:r,isOpen:o,id:n}=e,a=pw(r),i=pw(t),[s,l]=(0,$l.useState)(e.defaultIsOpen||!1),[f,u]=LM(o,s),c=RM(n,"disclosure"),d=(0,$l.useCallback)(()=>{f||l(!1),i?.()},[f,i]),m=(0,$l.useCallback)(()=>{f||l(!0),a?.()},[f,a]),I=(0,$l.useCallback)(()=>{(u?d:m)()},[u,m,d]);return{isOpen:!!u,onOpen:m,onClose:d,onToggle:I,isControlled:f,getButtonProps:(h={})=>({...h,"aria-expanded":u,"aria-controls":c,onClick:db(h.onClick,I)}),getDisclosureProps:(h={})=>({...h,hidden:!u,id:c})}}var _M=C(L(),1),ir=V(function(t,r){let{htmlSize:o,...n}=t,a=yo("Input",n),i=Pe(n),s=Ti(i),l=G("chakra-input",t.className);return(0,_M.jsx)(A.input,{size:o,...s,__css:a.field,ref:r,className:l})});ir.displayName="Input";ir.id="Input";var NM=C(L(),1),xw=V(function(t,r){let{templateAreas:o,gap:n,rowGap:a,columnGap:i,column:s,row:l,autoFlow:f,autoRows:u,templateRows:c,autoColumns:d,templateColumns:m,...I}=t,h={display:"grid",gridTemplateAreas:o,gridGap:n,gridRowGap:a,gridColumnGap:i,gridAutoColumns:d,gridColumn:s,gridRow:l,gridAutoFlow:f,gridAutoRows:u,gridTemplateRows:c,gridTemplateColumns:m};return(0,NM.jsx)(A.div,{ref:r,__css:h,...I})});xw.displayName="Grid";var $8=Object.freeze(["base","sm","md","lg","xl","2xl"]);function Ul(e,t){return Array.isArray(e)?e.map(r=>r===null?null:t(r)):tt(e)?Object.keys(e).reduce((r,o)=>(r[o]=t(e[o]),r),{}):e!=null?t(e):null}var zM=C(L(),1),Eh=V(function(t,r){let{columns:o,spacingX:n,spacingY:a,spacing:i,minChildWidth:s,...l}=t,f=fn(),u=s?q8(s,f):G8(o);return(0,zM.jsx)(xw,{ref:r,gap:i,columnGap:n,rowGap:a,templateColumns:u,...l})});Eh.displayName="SimpleGrid";function U8(e){return typeof e=="number"?`${e}px`:e}function q8(e,t){return Ul(e,r=>{let o=jy("sizes",r,U8(r))(t);return r===null?null:`repeat(auto-fit, minmax(${o}, 1fr))`})}function G8(e){return Ul(e,t=>t===null?null:`repeat(${t}, minmax(0, 1fr))`)}var VM=C(L(),1),hw=e=>(0,VM.jsx)(A.div,{className:"chakra-stack__item",...e,__css:{display:"inline-block",flex:"0 0 auto",minWidth:0,...e.__css}});hw.displayName="StackItem";function HM(e){let{spacing:t,direction:r}=e,o={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{"&":Ul(r,n=>o[n])}}var Di=C(F(),1),Sc=C(L(),1),Da=V((e,t)=>{let{isInline:r,direction:o,align:n,justify:a,spacing:i="0.5rem",wrap:s,children:l,divider:f,className:u,shouldWrapChildren:c,...d}=e,m=r?"row":o??"column",I=(0,Di.useMemo)(()=>HM({spacing:i,direction:m}),[i,m]),h=!!f,v=!c&&!h,x=(0,Di.useMemo)(()=>{let g=yR(l);return v?g:g.map((y,w)=>{let P=typeof y.key<"u"?y.key:w,b=w+1===g.length,D=c?(0,Sc.jsx)(hw,{children:y},P):y;if(!h)return D;let T=(0,Di.cloneElement)(f,{__css:I});return(0,Sc.jsxs)(Di.Fragment,{children:[D,b?null:T]},P)})},[f,I,h,v,c,l]),p=G("chakra-stack",u);return(0,Sc.jsx)(A.div,{ref:t,display:"flex",alignItems:n,justifyContent:a,flexDirection:m,flexWrap:s,gap:h?void 0:i,className:p,...d,children:x})});Da.displayName="Stack";var jM=C(L(),1),Oh=V((e,t)=>(0,jM.jsx)(Da,{align:"center",...e,direction:"column",ref:t}));Oh.displayName="VStack";var WM=C(L(),1),Bh=V((e,t)=>(0,WM.jsx)(Da,{align:"center",...e,direction:"row",ref:t}));Bh.displayName="HStack";var $M=C(L(),1),Ah=V(function(t,r){let o=ct("Heading",t),{className:n,...a}=Pe(t);return(0,$M.jsx)(A.h2,{ref:r,className:G("chakra-heading",t.className),...a,__css:o})});Ah.displayName="Heading";var gw=C(L(),1),ql=A("div");ql.displayName="Box";var Iw=V(function(t,r){let{size:o,centerContent:n=!0,...a}=t;return(0,gw.jsx)(ql,{ref:r,boxSize:o,__css:{...n?{display:"flex",alignItems:"center",justifyContent:"center"}:{},flexShrink:0,flexGrow:0},...a})});Iw.displayName="Square";var UM=V(function(t,r){let{size:o,...n}=t;return(0,gw.jsx)(Iw,{size:o,ref:r,borderRadius:"9999px",...n})});UM.displayName="Circle";var qM=C(L(),1),Rh=V(function(t,r){let{borderLeftWidth:o,borderBottomWidth:n,borderTopWidth:a,borderRightWidth:i,borderWidth:s,borderStyle:l,borderColor:f,...u}=ct("Divider",t),{className:c,orientation:d="horizontal",__css:m,...I}=Pe(t),h={vertical:{borderLeftWidth:o||i||s||"1px",height:"100%"},horizontal:{borderBottomWidth:n||a||s||"1px",width:"100%"}};return(0,qM.jsx)(A.hr,{ref:r,"aria-orientation":d,...I,__css:{...u,border:"0",borderColor:f,borderStyle:l,...h[d],...m},className:G("chakra-divider",c)})});Rh.displayName="Divider";var GM=C(L(),1),Mh=V(function(t,r){let{direction:o,align:n,justify:a,wrap:i,basis:s,grow:l,shrink:f,...u}=t,c={display:"flex",flexDirection:o,alignItems:n,justifyContent:a,flexWrap:i,flexBasis:s,flexGrow:l,flexShrink:f};return(0,GM.jsx)(A.div,{ref:r,__css:c,...u})});Mh.displayName="Flex";var wc=C(F(),1);function Y8(e){let t=e.current;if(!t)return!1;let r=lw(t);return!r||t.contains(r)?!1:!!dw(r)}function YM(e,t){let{shouldFocus:r,visible:o,focusRef:n}=t,a=r&&!o;Ks(()=>{if(!a||Y8(e))return;let i=n?.current||e.current,s;if(i)return s=requestAnimationFrame(()=>{i.focus({preventScroll:!0})}),()=>{cancelAnimationFrame(s)}},[a,e,n])}var X8={preventScroll:!0,shouldFocus:!1};function XM(e,t=X8){let{focusRef:r,preventScroll:o,shouldFocus:n,visible:a}=t,i=K8(e)?e.current:e,s=n&&a,l=(0,wc.useRef)(s),f=(0,wc.useRef)(a);Ln(()=>{!f.current&&a&&(l.current=s),f.current=a},[a,s]);let u=(0,wc.useCallback)(()=>{if(!(!a||!i||!l.current)&&(l.current=!1,!i.contains(document.activeElement)))if(r?.current)requestAnimationFrame(()=>{var c;(c=r.current)==null||c.focus({preventScroll:o})});else{let c=BM(i);c.length>0&&requestAnimationFrame(()=>{c[0].focus({preventScroll:o})})}},[a,o,i,r]);Ks(()=>{u()},[u]),qo(i,"transitionend",u)}function K8(e){return"current"in e}var Gl=(e,t)=>({var:e,varRef:t?`var(${e}, ${t})`:`var(${e})`}),Fe={arrowShadowColor:Gl("--popper-arrow-shadow-color"),arrowSize:Gl("--popper-arrow-size","8px"),arrowSizeHalf:Gl("--popper-arrow-size-half"),arrowBg:Gl("--popper-arrow-bg"),transformOrigin:Gl("--popper-transform-origin"),arrowOffset:Gl("--popper-arrow-offset")};function QM(e){if(e.includes("top"))return"1px 1px 0px 0 var(--popper-arrow-shadow-color)";if(e.includes("bottom"))return"-1px -1px 0px 0 var(--popper-arrow-shadow-color)";if(e.includes("right"))return"-1px 1px 0px 0 var(--popper-arrow-shadow-color)";if(e.includes("left"))return"1px -1px 0px 0 var(--popper-arrow-shadow-color)"}var Q8={top:"bottom center","top-start":"bottom left","top-end":"bottom right",bottom:"top center","bottom-start":"top left","bottom-end":"top right",left:"right center","left-start":"right top","left-end":"right bottom",right:"left center","right-start":"left top","right-end":"left bottom"},ZM=e=>Q8[e],KM={scroll:!0,resize:!0};function JM(e){let t;return typeof e=="object"?t={enabled:!0,options:{...KM,...e}}:t={enabled:e,options:KM},t}var rL={name:"matchWidth",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:({state:e})=>{e.styles.popper.width=`${e.rects.reference.width}px`},effect:({state:e})=>()=>{let t=e.elements.reference;e.elements.popper.style.width=`${t.offsetWidth}px`}},oL={name:"transformOrigin",enabled:!0,phase:"write",fn:({state:e})=>{eL(e)},effect:({state:e})=>()=>{eL(e)}},eL=e=>{e.elements.popper.style.setProperty(Fe.transformOrigin.var,ZM(e.placement))},nL={name:"positionArrow",enabled:!0,phase:"afterWrite",fn:({state:e})=>{Z8(e)}},Z8=e=>{var t;if(!e.placement)return;let r=J8(e.placement);if((t=e.elements)!=null&&t.arrow&&r){Object.assign(e.elements.arrow.style,{[r.property]:r.value,width:Fe.arrowSize.varRef,height:Fe.arrowSize.varRef,zIndex:-1});let o={[Fe.arrowSizeHalf.var]:`calc(${Fe.arrowSize.varRef} / 2 - 1px)`,[Fe.arrowOffset.var]:`calc(${Fe.arrowSizeHalf.varRef} * -1)`};for(let n in o)e.elements.arrow.style.setProperty(n,o[n])}},J8=e=>{if(e.startsWith("top"))return{property:"bottom",value:Fe.arrowOffset.varRef};if(e.startsWith("bottom"))return{property:"top",value:Fe.arrowOffset.varRef};if(e.startsWith("left"))return{property:"right",value:Fe.arrowOffset.varRef};if(e.startsWith("right"))return{property:"left",value:Fe.arrowOffset.varRef}},aL={name:"innerArrow",enabled:!0,phase:"main",requires:["arrow"],fn:({state:e})=>{tL(e)},effect:({state:e})=>()=>{tL(e)}},tL=e=>{if(!e.elements.arrow)return;let t=e.elements.arrow.querySelector("[data-popper-arrow-inner]");if(!t)return;let r=QM(e.placement);r&&t.style.setProperty("--popper-arrow-default-shadow",r),Object.assign(t.style,{transform:"rotate(45deg)",background:Fe.arrowBg.varRef,top:0,left:0,width:"100%",height:"100%",position:"absolute",zIndex:"inherit",boxShadow:"var(--popper-arrow-shadow, var(--popper-arrow-default-shadow))"})};var e9={"start-start":{ltr:"left-start",rtl:"right-start"},"start-end":{ltr:"left-end",rtl:"right-end"},"end-start":{ltr:"right-start",rtl:"left-start"},"end-end":{ltr:"right-end",rtl:"left-end"},start:{ltr:"left",rtl:"right"},end:{ltr:"right",rtl:"left"}},t9={"auto-start":"auto-end","auto-end":"auto-start","top-start":"top-end","top-end":"top-start","bottom-start":"bottom-end","bottom-end":"bottom-start"};function iL(e,t="ltr"){var r,o;let n=((r=e9[e])==null?void 0:r[t])||e;return t==="ltr"?n:(o=t9[e])!=null?o:n}var qe="top",dt="bottom",nt="right",Qe="left",Lh="auto",Fa=[qe,dt,nt,Qe],Fn="start",Fi="end",sL="clippingParents",_h="viewport",Yl="popper",lL="reference",vw=Fa.reduce(function(e,t){return e.concat([t+"-"+Fn,t+"-"+Fi])},[]),Nh=[].concat(Fa,[Lh]).reduce(function(e,t){return e.concat([t,t+"-"+Fn,t+"-"+Fi])},[]),r9="beforeRead",o9="read",n9="afterRead",a9="beforeMain",i9="main",s9="afterMain",l9="beforeWrite",f9="write",u9="afterWrite",fL=[r9,o9,n9,a9,i9,s9,l9,f9,u9];function wt(e){return e?(e.nodeName||"").toLowerCase():null}function _e(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function oo(e){var t=_e(e).Element;return e instanceof t||e instanceof Element}function pt(e){var t=_e(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function Xl(e){if(typeof ShadowRoot>"u")return!1;var t=_e(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function c9(e){var t=e.state;Object.keys(t.elements).forEach(function(r){var o=t.styles[r]||{},n=t.attributes[r]||{},a=t.elements[r];!pt(a)||!wt(a)||(Object.assign(a.style,o),Object.keys(n).forEach(function(i){var s=n[i];s===!1?a.removeAttribute(i):a.setAttribute(i,s===!0?"":s)}))})}function d9(e){var t=e.state,r={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,r.popper),t.styles=r,t.elements.arrow&&Object.assign(t.elements.arrow.style,r.arrow),function(){Object.keys(t.elements).forEach(function(o){var n=t.elements[o],a=t.attributes[o]||{},i=Object.keys(t.styles.hasOwnProperty(o)?t.styles[o]:r[o]),s=i.reduce(function(l,f){return l[f]="",l},{});!pt(n)||!wt(n)||(Object.assign(n.style,s),Object.keys(a).forEach(function(l){n.removeAttribute(l)}))})}}var uL={name:"applyStyles",enabled:!0,phase:"write",fn:c9,effect:d9,requires:["computeStyles"]};function Ct(e){return e.split("-")[0]}var wo=Math.max,Ei=Math.min,En=Math.round;function Kl(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function Cc(){return!/^((?!chrome|android).)*safari/i.test(Kl())}function no(e,t,r){t===void 0&&(t=!1),r===void 0&&(r=!1);var o=e.getBoundingClientRect(),n=1,a=1;t&&pt(e)&&(n=e.offsetWidth>0&&En(o.width)/e.offsetWidth||1,a=e.offsetHeight>0&&En(o.height)/e.offsetHeight||1);var i=oo(e)?_e(e):window,s=i.visualViewport,l=!Cc()&&r,f=(o.left+(l&&s?s.offsetLeft:0))/n,u=(o.top+(l&&s?s.offsetTop:0))/a,c=o.width/n,d=o.height/a;return{width:c,height:d,top:u,right:f+c,bottom:u+d,left:f,x:f,y:u}}function Oi(e){var t=no(e),r=e.offsetWidth,o=e.offsetHeight;return Math.abs(t.width-r)<=1&&(r=t.width),Math.abs(t.height-o)<=1&&(o=t.height),{x:e.offsetLeft,y:e.offsetTop,width:r,height:o}}function Pc(e,t){var r=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(r&&Xl(r)){var o=t;do{if(o&&e.isSameNode(o))return!0;o=o.parentNode||o.host}while(o)}return!1}function sr(e){return _e(e).getComputedStyle(e)}function yw(e){return["table","td","th"].indexOf(wt(e))>=0}function Lt(e){return((oo(e)?e.ownerDocument:e.document)||window.document).documentElement}function On(e){return wt(e)==="html"?e:e.assignedSlot||e.parentNode||(Xl(e)?e.host:null)||Lt(e)}function cL(e){return!pt(e)||sr(e).position==="fixed"?null:e.offsetParent}function p9(e){var t=/firefox/i.test(Kl()),r=/Trident/i.test(Kl());if(r&&pt(e)){var o=sr(e);if(o.position==="fixed")return null}var n=On(e);for(Xl(n)&&(n=n.host);pt(n)&&["html","body"].indexOf(wt(n))<0;){var a=sr(n);if(a.transform!=="none"||a.perspective!=="none"||a.contain==="paint"||["transform","perspective"].indexOf(a.willChange)!==-1||t&&a.willChange==="filter"||t&&a.filter&&a.filter!=="none")return n;n=n.parentNode}return null}function Co(e){for(var t=_e(e),r=cL(e);r&&yw(r)&&sr(r).position==="static";)r=cL(r);return r&&(wt(r)==="html"||wt(r)==="body"&&sr(r).position==="static")?t:r||p9(e)||t}function Bi(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Ai(e,t,r){return wo(e,Ei(t,r))}function dL(e,t,r){var o=Ai(e,t,r);return o>r?r:o}function kc(){return{top:0,right:0,bottom:0,left:0}}function Tc(e){return Object.assign({},kc(),e)}function Dc(e,t){return t.reduce(function(r,o){return r[o]=e,r},{})}var m9=function(t,r){return t=typeof t=="function"?t(Object.assign({},r.rects,{placement:r.placement})):t,Tc(typeof t!="number"?t:Dc(t,Fa))};function x9(e){var t,r=e.state,o=e.name,n=e.options,a=r.elements.arrow,i=r.modifiersData.popperOffsets,s=Ct(r.placement),l=Bi(s),f=[Qe,nt].indexOf(s)>=0,u=f?"height":"width";if(!(!a||!i)){var c=m9(n.padding,r),d=Oi(a),m=l==="y"?qe:Qe,I=l==="y"?dt:nt,h=r.rects.reference[u]+r.rects.reference[l]-i[l]-r.rects.popper[u],v=i[l]-r.rects.reference[l],x=Co(a),p=x?l==="y"?x.clientHeight||0:x.clientWidth||0:0,g=h/2-v/2,y=c[m],w=p-d[u]-c[I],P=p/2-d[u]/2+g,b=Ai(y,P,w),k=l;r.modifiersData[o]=(t={},t[k]=b,t.centerOffset=b-P,t)}}function h9(e){var t=e.state,r=e.options,o=r.element,n=o===void 0?"[data-popper-arrow]":o;n!=null&&(typeof n=="string"&&(n=t.elements.popper.querySelector(n),!n)||Pc(t.elements.popper,n)&&(t.elements.arrow=n))}var pL={name:"arrow",enabled:!0,phase:"main",fn:x9,effect:h9,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function ao(e){return e.split("-")[1]}var g9={top:"auto",right:"auto",bottom:"auto",left:"auto"};function I9(e,t){var r=e.x,o=e.y,n=t.devicePixelRatio||1;return{x:En(r*n)/n||0,y:En(o*n)/n||0}}function mL(e){var t,r=e.popper,o=e.popperRect,n=e.placement,a=e.variation,i=e.offsets,s=e.position,l=e.gpuAcceleration,f=e.adaptive,u=e.roundOffsets,c=e.isFixed,d=i.x,m=d===void 0?0:d,I=i.y,h=I===void 0?0:I,v=typeof u=="function"?u({x:m,y:h}):{x:m,y:h};m=v.x,h=v.y;var x=i.hasOwnProperty("x"),p=i.hasOwnProperty("y"),g=Qe,y=qe,w=window;if(f){var P=Co(r),b="clientHeight",k="clientWidth";if(P===_e(r)&&(P=Lt(r),sr(P).position!=="static"&&s==="absolute"&&(b="scrollHeight",k="scrollWidth")),P=P,n===qe||(n===Qe||n===nt)&&a===Fi){y=dt;var D=c&&P===w&&w.visualViewport?w.visualViewport.height:P[b];h-=D-o.height,h*=l?1:-1}if(n===Qe||(n===qe||n===dt)&&a===Fi){g=nt;var T=c&&P===w&&w.visualViewport?w.visualViewport.width:P[k];m-=T-o.width,m*=l?1:-1}}var O=Object.assign({position:s},f&&g9),_=u===!0?I9({x:m,y:h},_e(r)):{x:m,y:h};if(m=_.x,h=_.y,l){var $;return Object.assign({},O,($={},$[y]=p?"0":"",$[g]=x?"0":"",$.transform=(w.devicePixelRatio||1)<=1?"translate("+m+"px, "+h+"px)":"translate3d("+m+"px, "+h+"px, 0)",$))}return Object.assign({},O,(t={},t[y]=p?h+"px":"",t[g]=x?m+"px":"",t.transform="",t))}function v9(e){var t=e.state,r=e.options,o=r.gpuAcceleration,n=o===void 0?!0:o,a=r.adaptive,i=a===void 0?!0:a,s=r.roundOffsets,l=s===void 0?!0:s,f={placement:Ct(t.placement),variation:ao(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:n,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,mL(Object.assign({},f,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:i,roundOffsets:l})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,mL(Object.assign({},f,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}var xL={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:v9,data:{}};var zh={passive:!0};function y9(e){var t=e.state,r=e.instance,o=e.options,n=o.scroll,a=n===void 0?!0:n,i=o.resize,s=i===void 0?!0:i,l=_e(t.elements.popper),f=[].concat(t.scrollParents.reference,t.scrollParents.popper);return a&&f.forEach(function(u){u.addEventListener("scroll",r.update,zh)}),s&&l.addEventListener("resize",r.update,zh),function(){a&&f.forEach(function(u){u.removeEventListener("scroll",r.update,zh)}),s&&l.removeEventListener("resize",r.update,zh)}}var hL={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:y9,data:{}};var b9={left:"right",right:"left",bottom:"top",top:"bottom"};function Ql(e){return e.replace(/left|right|bottom|top/g,function(t){return b9[t]})}var S9={start:"end",end:"start"};function Vh(e){return e.replace(/start|end/g,function(t){return S9[t]})}function Ri(e){var t=_e(e),r=t.pageXOffset,o=t.pageYOffset;return{scrollLeft:r,scrollTop:o}}function Mi(e){return no(Lt(e)).left+Ri(e).scrollLeft}function bw(e,t){var r=_e(e),o=Lt(e),n=r.visualViewport,a=o.clientWidth,i=o.clientHeight,s=0,l=0;if(n){a=n.width,i=n.height;var f=Cc();(f||!f&&t==="fixed")&&(s=n.offsetLeft,l=n.offsetTop)}return{width:a,height:i,x:s+Mi(e),y:l}}function Sw(e){var t,r=Lt(e),o=Ri(e),n=(t=e.ownerDocument)==null?void 0:t.body,a=wo(r.scrollWidth,r.clientWidth,n?n.scrollWidth:0,n?n.clientWidth:0),i=wo(r.scrollHeight,r.clientHeight,n?n.scrollHeight:0,n?n.clientHeight:0),s=-o.scrollLeft+Mi(e),l=-o.scrollTop;return sr(n||r).direction==="rtl"&&(s+=wo(r.clientWidth,n?n.clientWidth:0)-a),{width:a,height:i,x:s,y:l}}function Li(e){var t=sr(e),r=t.overflow,o=t.overflowX,n=t.overflowY;return/auto|scroll|overlay|hidden/.test(r+n+o)}function Hh(e){return["html","body","#document"].indexOf(wt(e))>=0?e.ownerDocument.body:pt(e)&&Li(e)?e:Hh(On(e))}function Ea(e,t){var r;t===void 0&&(t=[]);var o=Hh(e),n=o===((r=e.ownerDocument)==null?void 0:r.body),a=_e(o),i=n?[a].concat(a.visualViewport||[],Li(o)?o:[]):o,s=t.concat(i);return n?s:s.concat(Ea(On(i)))}function Zl(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function w9(e,t){var r=no(e,!1,t==="fixed");return r.top=r.top+e.clientTop,r.left=r.left+e.clientLeft,r.bottom=r.top+e.clientHeight,r.right=r.left+e.clientWidth,r.width=e.clientWidth,r.height=e.clientHeight,r.x=r.left,r.y=r.top,r}function gL(e,t,r){return t===_h?Zl(bw(e,r)):oo(t)?w9(t,r):Zl(Sw(Lt(e)))}function C9(e){var t=Ea(On(e)),r=["absolute","fixed"].indexOf(sr(e).position)>=0,o=r&&pt(e)?Co(e):e;return oo(o)?t.filter(function(n){return oo(n)&&Pc(n,o)&&wt(n)!=="body"}):[]}function ww(e,t,r,o){var n=t==="clippingParents"?C9(e):[].concat(t),a=[].concat(n,[r]),i=a[0],s=a.reduce(function(l,f){var u=gL(e,f,o);return l.top=wo(u.top,l.top),l.right=Ei(u.right,l.right),l.bottom=Ei(u.bottom,l.bottom),l.left=wo(u.left,l.left),l},gL(e,i,o));return s.width=s.right-s.left,s.height=s.bottom-s.top,s.x=s.left,s.y=s.top,s}function Fc(e){var t=e.reference,r=e.element,o=e.placement,n=o?Ct(o):null,a=o?ao(o):null,i=t.x+t.width/2-r.width/2,s=t.y+t.height/2-r.height/2,l;switch(n){case qe:l={x:i,y:t.y-r.height};break;case dt:l={x:i,y:t.y+t.height};break;case nt:l={x:t.x+t.width,y:s};break;case Qe:l={x:t.x-r.width,y:s};break;default:l={x:t.x,y:t.y}}var f=n?Bi(n):null;if(f!=null){var u=f==="y"?"height":"width";switch(a){case Fn:l[f]=l[f]-(t[u]/2-r[u]/2);break;case Fi:l[f]=l[f]+(t[u]/2-r[u]/2);break;default:}}return l}function Po(e,t){t===void 0&&(t={});var r=t,o=r.placement,n=o===void 0?e.placement:o,a=r.strategy,i=a===void 0?e.strategy:a,s=r.boundary,l=s===void 0?sL:s,f=r.rootBoundary,u=f===void 0?_h:f,c=r.elementContext,d=c===void 0?Yl:c,m=r.altBoundary,I=m===void 0?!1:m,h=r.padding,v=h===void 0?0:h,x=Tc(typeof v!="number"?v:Dc(v,Fa)),p=d===Yl?lL:Yl,g=e.rects.popper,y=e.elements[I?p:d],w=ww(oo(y)?y:y.contextElement||Lt(e.elements.popper),l,u,i),P=no(e.elements.reference),b=Fc({reference:P,element:g,strategy:"absolute",placement:n}),k=Zl(Object.assign({},g,b)),D=d===Yl?k:P,T={top:w.top-D.top+x.top,bottom:D.bottom-w.bottom+x.bottom,left:w.left-D.left+x.left,right:D.right-w.right+x.right},O=e.modifiersData.offset;if(d===Yl&&O){var _=O[n];Object.keys(T).forEach(function($){var le=[nt,dt].indexOf($)>=0?1:-1,q=[qe,dt].indexOf($)>=0?"y":"x";T[$]+=_[q]*le})}return T}function Cw(e,t){t===void 0&&(t={});var r=t,o=r.placement,n=r.boundary,a=r.rootBoundary,i=r.padding,s=r.flipVariations,l=r.allowedAutoPlacements,f=l===void 0?Nh:l,u=ao(o),c=u?s?vw:vw.filter(function(I){return ao(I)===u}):Fa,d=c.filter(function(I){return f.indexOf(I)>=0});d.length===0&&(d=c);var m=d.reduce(function(I,h){return I[h]=Po(e,{placement:h,boundary:n,rootBoundary:a,padding:i})[Ct(h)],I},{});return Object.keys(m).sort(function(I,h){return m[I]-m[h]})}function P9(e){if(Ct(e)===Lh)return[];var t=Ql(e);return[Vh(e),t,Vh(t)]}function k9(e){var t=e.state,r=e.options,o=e.name;if(!t.modifiersData[o]._skip){for(var n=r.mainAxis,a=n===void 0?!0:n,i=r.altAxis,s=i===void 0?!0:i,l=r.fallbackPlacements,f=r.padding,u=r.boundary,c=r.rootBoundary,d=r.altBoundary,m=r.flipVariations,I=m===void 0?!0:m,h=r.allowedAutoPlacements,v=t.options.placement,x=Ct(v),p=x===v,g=l||(p||!I?[Ql(v)]:P9(v)),y=[v].concat(g).reduce(function(Ze,ie){return Ze.concat(Ct(ie)===Lh?Cw(t,{placement:ie,boundary:u,rootBoundary:c,padding:f,flipVariations:I,allowedAutoPlacements:h}):ie)},[]),w=t.rects.reference,P=t.rects.popper,b=new Map,k=!0,D=y[0],T=0;T=0,q=le?"width":"height",W=Po(t,{placement:O,boundary:u,rootBoundary:c,altBoundary:d,padding:f}),re=le?$?nt:Qe:$?dt:qe;w[q]>P[q]&&(re=Ql(re));var Ne=Ql(re),Ee=[];if(a&&Ee.push(W[_]<=0),s&&Ee.push(W[re]<=0,W[Ne]<=0),Ee.every(function(Ze){return Ze})){D=O,k=!1;break}b.set(O,Ee)}if(k)for(var mt=I?3:1,qt=function(ie){var it=y.find(function(kt){var Tr=b.get(kt);if(Tr)return Tr.slice(0,ie).every(function(Yt){return Yt})});if(it)return D=it,"break"},xt=mt;xt>0;xt--){var Gt=qt(xt);if(Gt==="break")break}t.placement!==D&&(t.modifiersData[o]._skip=!0,t.placement=D,t.reset=!0)}}var IL={name:"flip",enabled:!0,phase:"main",fn:k9,requiresIfExists:["offset"],data:{_skip:!1}};function vL(e,t,r){return r===void 0&&(r={x:0,y:0}),{top:e.top-t.height-r.y,right:e.right-t.width+r.x,bottom:e.bottom-t.height+r.y,left:e.left-t.width-r.x}}function yL(e){return[qe,nt,dt,Qe].some(function(t){return e[t]>=0})}function T9(e){var t=e.state,r=e.name,o=t.rects.reference,n=t.rects.popper,a=t.modifiersData.preventOverflow,i=Po(t,{elementContext:"reference"}),s=Po(t,{altBoundary:!0}),l=vL(i,o),f=vL(s,n,a),u=yL(l),c=yL(f);t.modifiersData[r]={referenceClippingOffsets:l,popperEscapeOffsets:f,isReferenceHidden:u,hasPopperEscaped:c},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":c})}var bL={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:T9};function D9(e,t,r){var o=Ct(e),n=[Qe,qe].indexOf(o)>=0?-1:1,a=typeof r=="function"?r(Object.assign({},t,{placement:e})):r,i=a[0],s=a[1];return i=i||0,s=(s||0)*n,[Qe,nt].indexOf(o)>=0?{x:s,y:i}:{x:i,y:s}}function F9(e){var t=e.state,r=e.options,o=e.name,n=r.offset,a=n===void 0?[0,0]:n,i=Nh.reduce(function(u,c){return u[c]=D9(c,t.rects,a),u},{}),s=i[t.placement],l=s.x,f=s.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=f),t.modifiersData[o]=i}var SL={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:F9};function E9(e){var t=e.state,r=e.name;t.modifiersData[r]=Fc({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}var wL={name:"popperOffsets",enabled:!0,phase:"read",fn:E9,data:{}};function Pw(e){return e==="x"?"y":"x"}function O9(e){var t=e.state,r=e.options,o=e.name,n=r.mainAxis,a=n===void 0?!0:n,i=r.altAxis,s=i===void 0?!1:i,l=r.boundary,f=r.rootBoundary,u=r.altBoundary,c=r.padding,d=r.tether,m=d===void 0?!0:d,I=r.tetherOffset,h=I===void 0?0:I,v=Po(t,{boundary:l,rootBoundary:f,padding:c,altBoundary:u}),x=Ct(t.placement),p=ao(t.placement),g=!p,y=Bi(x),w=Pw(y),P=t.modifiersData.popperOffsets,b=t.rects.reference,k=t.rects.popper,D=typeof h=="function"?h(Object.assign({},t.rects,{placement:t.placement})):h,T=typeof D=="number"?{mainAxis:D,altAxis:D}:Object.assign({mainAxis:0,altAxis:0},D),O=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,_={x:0,y:0};if(P){if(a){var $,le=y==="y"?qe:Qe,q=y==="y"?dt:nt,W=y==="y"?"height":"width",re=P[y],Ne=re+v[le],Ee=re-v[q],mt=m?-k[W]/2:0,qt=p===Fn?b[W]:k[W],xt=p===Fn?-k[W]:-b[W],Gt=t.elements.arrow,Ze=m&&Gt?Oi(Gt):{width:0,height:0},ie=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:kc(),it=ie[le],kt=ie[q],Tr=Ai(0,b[W],Ze[W]),Yt=g?b[W]/2-mt-Tr-it-T.mainAxis:qt-Tr-it-T.mainAxis,Xo=g?-b[W]/2+mt+Tr+kt+T.mainAxis:xt+Tr+kt+T.mainAxis,To=t.elements.arrow&&Co(t.elements.arrow),Se=To?y==="y"?To.clientTop||0:To.clientLeft||0:0,_t=($=O?.[y])!=null?$:0,Rn=re+Yt-_t-Se,oe=re+Xo-_t,Nt=Ai(m?Ei(Ne,Rn):Ne,re,m?wo(Ee,oe):Ee);P[y]=Nt,_[y]=Nt-re}if(s){var me,ht=y==="x"?qe:Qe,Dr=y==="x"?dt:nt,st=P[w],Ko=w==="y"?"height":"width",Jg=st+v[ht],Qw=st-v[Dr],eI=[qe,Qe].indexOf(x)!==-1,Zw=(me=O?.[w])!=null?me:0,Jw=eI?Jg:st-b[Ko]-k[Ko]-Zw+T.altAxis,eC=eI?st+b[Ko]+k[Ko]-Zw-T.altAxis:Qw,tC=m&&eI?dL(Jw,st,eC):Ai(m?Jw:Jg,st,m?eC:Qw);P[w]=tC,_[w]=tC-st}t.modifiersData[o]=_}}var CL={name:"preventOverflow",enabled:!0,phase:"main",fn:O9,requiresIfExists:["offset"]};function kw(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function Tw(e){return e===_e(e)||!pt(e)?Ri(e):kw(e)}function B9(e){var t=e.getBoundingClientRect(),r=En(t.width)/e.offsetWidth||1,o=En(t.height)/e.offsetHeight||1;return r!==1||o!==1}function Dw(e,t,r){r===void 0&&(r=!1);var o=pt(t),n=pt(t)&&B9(t),a=Lt(t),i=no(e,n,r),s={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(o||!o&&!r)&&((wt(t)!=="body"||Li(a))&&(s=Tw(t)),pt(t)?(l=no(t,!0),l.x+=t.clientLeft,l.y+=t.clientTop):a&&(l.x=Mi(a))),{x:i.left+s.scrollLeft-l.x,y:i.top+s.scrollTop-l.y,width:i.width,height:i.height}}function A9(e){var t=new Map,r=new Set,o=[];e.forEach(function(a){t.set(a.name,a)});function n(a){r.add(a.name);var i=[].concat(a.requires||[],a.requiresIfExists||[]);i.forEach(function(s){if(!r.has(s)){var l=t.get(s);l&&n(l)}}),o.push(a)}return e.forEach(function(a){r.has(a.name)||n(a)}),o}function Fw(e){var t=A9(e);return fL.reduce(function(r,o){return r.concat(t.filter(function(n){return n.phase===o}))},[])}function Ew(e){var t;return function(){return t||(t=new Promise(function(r){Promise.resolve().then(function(){t=void 0,r(e())})})),t}}function Ow(e){var t=e.reduce(function(r,o){var n=r[o.name];return r[o.name]=n?Object.assign({},n,o,{options:Object.assign({},n.options,o.options),data:Object.assign({},n.data,o.data)}):o,r},{});return Object.keys(t).map(function(r){return t[r]})}var PL={placement:"bottom",modifiers:[],strategy:"absolute"};function kL(){for(var e=arguments.length,t=new Array(e),r=0;r{}),g=(0,lr.useCallback)(()=>{var T;!t||!I.current||!h.current||((T=p.current)==null||T.call(p),v.current=Bw(I.current,h.current,{placement:x,modifiers:[aL,nL,oL,{...rL,enabled:!!d},{name:"eventListeners",...JM(i)},{name:"arrow",options:{padding:a}},{name:"offset",options:{offset:s??[0,l]}},{name:"flip",enabled:!!f,options:{padding:8}},{name:"preventOverflow",enabled:!!c,options:{boundary:u}},...r??[]],strategy:n}),v.current.forceUpdate(),p.current=v.current.destroy)},[x,t,r,d,i,a,s,l,f,c,u,n]);(0,lr.useEffect)(()=>()=>{var T;!I.current&&!h.current&&((T=v.current)==null||T.destroy(),v.current=null)},[]);let y=(0,lr.useCallback)(T=>{I.current=T,g()},[g]),w=(0,lr.useCallback)((T={},O=null)=>({...T,ref:ar(y,O)}),[y]),P=(0,lr.useCallback)(T=>{h.current=T,g()},[g]),b=(0,lr.useCallback)((T={},O=null)=>({...T,ref:ar(P,O),style:{...T.style,position:n,minWidth:d?void 0:"max-content",inset:"0 auto auto 0"}}),[n,P,d]),k=(0,lr.useCallback)((T={},O=null)=>{let{size:_,shadowColor:$,bg:le,style:q,...W}=T;return{...W,ref:O,"data-popper-arrow":"",style:M9(T)}},[]),D=(0,lr.useCallback)((T={},O=null)=>({...T,ref:O,"data-popper-arrow-inner":""}),[]);return{update(){var T;(T=v.current)==null||T.update()},forceUpdate(){var T;(T=v.current)==null||T.forceUpdate()},transformOrigin:Fe.transformOrigin.varRef,referenceRef:y,popperRef:P,getPopperProps:b,getArrowProps:k,getArrowInnerProps:D,getReferenceProps:w}}function M9(e){let{size:t,shadowColor:r,bg:o,style:n}=e,a={...n,position:"absolute"};return t&&(a["--popper-arrow-size"]=t),r&&(a["--popper-arrow-shadow-color"]=r),o&&(a["--popper-arrow-bg"]=o),a}var Oa=C(F(),1);function jh(e={}){let{onClose:t,onOpen:r,isOpen:o,id:n}=e,a=li(r),i=li(t),[s,l]=(0,Oa.useState)(e.defaultIsOpen||!1),f=o!==void 0?o:s,u=o!==void 0,c=(0,Oa.useId)(),d=n??`disclosure-${c}`,m=(0,Oa.useCallback)(()=>{u||l(!1),i?.()},[u,i]),I=(0,Oa.useCallback)(()=>{u||l(!0),a?.()},[u,a]),h=(0,Oa.useCallback)(()=>{f?m():I()},[f,I,m]);function v(p={}){return{...p,"aria-expanded":f,"aria-controls":d,onClick(g){var y;(y=p.onClick)==null||y.call(p,g),h()}}}function x(p={}){return{...p,hidden:!f,id:d}}return{isOpen:f,onOpen:I,onClose:m,onToggle:h,isControlled:u,getButtonProps:v,getDisclosureProps:x}}var Oc=C(F(),1);function DL(e){let{isOpen:t,ref:r}=e,[o,n]=(0,Oc.useState)(t),[a,i]=(0,Oc.useState)(!1);return(0,Oc.useEffect)(()=>{a||(n(t),i(!0))},[t,a,o]),qo(()=>r.current,"animationend",()=>{n(t)}),{present:!(t?!1:!o),onComplete(){var l;let f=sw(r.current),u=new f.CustomEvent("animationend",{bubbles:!0});(l=r.current)==null||l.dispatchEvent(u)}}}function FL(e){let{wasSelected:t,enabled:r,isSelected:o,mode:n="unmount"}=e;return!!(!r||o||n==="keepMounted"&&t)}var[EL,Go]=Dt({name:"PopoverContext",errorMessage:"usePopoverContext: `context` is undefined. Seems you forgot to wrap all popover components within ``"}),[OL,Wh]=Dt({name:"PopoverStylesContext",errorMessage:`usePopoverStyles returned is 'undefined'. Seems you forgot to wrap the components in "" `});var $h=C(F(),1);function Bc(e){let t=$h.Children.only(e.children),{getTriggerProps:r}=Go();return(0,$h.cloneElement)(t,r(t.props,t.ref))}Bc.displayName="PopoverTrigger";var $e=C(F(),1),Jl={click:"click",hover:"hover"};function AL(e={}){let{closeOnBlur:t=!0,closeOnEsc:r=!0,initialFocusRef:o,id:n,returnFocusOnClose:a=!0,autoFocus:i=!0,arrowSize:s,arrowShadowColor:l,trigger:f=Jl.click,openDelay:u=200,closeDelay:c=200,isLazy:d,lazyBehavior:m="unmount",computePositionOnMount:I,...h}=e,{isOpen:v,onClose:x,onOpen:p,onToggle:g}=jh(e),y=(0,$e.useRef)(null),w=(0,$e.useRef)(null),P=(0,$e.useRef)(null),b=(0,$e.useRef)(!1),k=(0,$e.useRef)(!1);v&&(k.current=!0);let[D,T]=(0,$e.useState)(!1),[O,_]=(0,$e.useState)(!1),$=(0,$e.useId)(),le=n??$,[q,W,re,Ne]=["popover-trigger","popover-content","popover-header","popover-body"].map(oe=>`${oe}-${le}`),{referenceRef:Ee,getArrowProps:mt,getPopperProps:qt,getArrowInnerProps:xt,forceUpdate:Gt}=Ec({...h,enabled:v||!!I}),Ze=DL({isOpen:v,ref:P});OR({enabled:v,ref:w}),YM(P,{focusRef:w,visible:v,shouldFocus:a&&f===Jl.click}),XM(P,{focusRef:o,visible:v,shouldFocus:i&&f===Jl.click});let ie=FL({wasSelected:k.current,enabled:d,mode:m,isSelected:Ze.present}),it=(0,$e.useCallback)((oe={},Nt=null)=>{let me={...oe,style:{...oe.style,transformOrigin:Fe.transformOrigin.varRef,[Fe.arrowSize.var]:s?`${s}px`:void 0,[Fe.arrowShadowColor.var]:l},ref:ar(P,Nt),children:ie?oe.children:null,id:W,tabIndex:-1,role:"dialog",onKeyDown:rt(oe.onKeyDown,ht=>{r&&ht.key==="Escape"&&x()}),onBlur:rt(oe.onBlur,ht=>{let Dr=BL(ht),st=Aw(P.current,Dr),Ko=Aw(w.current,Dr);v&&t&&(!st&&!Ko)&&x()}),"aria-labelledby":D?re:void 0,"aria-describedby":O?Ne:void 0};return f===Jl.hover&&(me.role="tooltip",me.onMouseEnter=rt(oe.onMouseEnter,()=>{b.current=!0}),me.onMouseLeave=rt(oe.onMouseLeave,ht=>{ht.nativeEvent.relatedTarget!==null&&(b.current=!1,setTimeout(()=>x(),c))})),me},[ie,W,D,re,O,Ne,f,r,x,v,t,c,l,s]),kt=(0,$e.useCallback)((oe={},Nt=null)=>qt({...oe,style:{visibility:v?"visible":"hidden",...oe.style}},Nt),[v,qt]),Tr=(0,$e.useCallback)((oe,Nt=null)=>({...oe,ref:ar(Nt,y,Ee)}),[y,Ee]),Yt=(0,$e.useRef)(),Xo=(0,$e.useRef)(),To=(0,$e.useCallback)(oe=>{y.current==null&&Ee(oe)},[Ee]),Se=(0,$e.useCallback)((oe={},Nt=null)=>{let me={...oe,ref:ar(w,Nt,To),id:q,"aria-haspopup":"dialog","aria-expanded":v,"aria-controls":W};return f===Jl.click&&(me.onClick=rt(oe.onClick,g)),f===Jl.hover&&(me.onFocus=rt(oe.onFocus,()=>{Yt.current===void 0&&p()}),me.onBlur=rt(oe.onBlur,ht=>{let Dr=BL(ht),st=!Aw(P.current,Dr);v&&t&&st&&x()}),me.onKeyDown=rt(oe.onKeyDown,ht=>{ht.key==="Escape"&&x()}),me.onMouseEnter=rt(oe.onMouseEnter,()=>{b.current=!0,Yt.current=window.setTimeout(()=>p(),u)}),me.onMouseLeave=rt(oe.onMouseLeave,()=>{b.current=!1,Yt.current&&(clearTimeout(Yt.current),Yt.current=void 0),Xo.current=window.setTimeout(()=>{b.current===!1&&x()},c)})),me},[q,v,W,f,To,g,p,t,x,u,c]);(0,$e.useEffect)(()=>()=>{Yt.current&&clearTimeout(Yt.current),Xo.current&&clearTimeout(Xo.current)},[]);let _t=(0,$e.useCallback)((oe={},Nt=null)=>({...oe,id:re,ref:ar(Nt,me=>{T(!!me)})}),[re]),Rn=(0,$e.useCallback)((oe={},Nt=null)=>({...oe,id:Ne,ref:ar(Nt,me=>{_(!!me)})}),[Ne]);return{forceUpdate:Gt,isOpen:v,onAnimationComplete:Ze.onComplete,onClose:x,getAnchorProps:Tr,getArrowProps:mt,getArrowInnerProps:xt,getPopoverPositionerProps:kt,getPopoverProps:it,getTriggerProps:Se,getHeaderProps:_t,getBodyProps:Rn}}function Aw(e,t){return e===t||e?.contains(t)}function BL(e){var t;let r=e.currentTarget.ownerDocument.activeElement;return(t=e.relatedTarget)!=null?t:r}var Rw=C(L(),1);function Uh(e){let t=yo("Popover",e),{children:r,...o}=Pe(e),n=fn(),a=AL({...o,direction:n.direction});return(0,Rw.jsx)(EL,{value:a,children:(0,Rw.jsx)(OL,{value:t,children:gr(r,{isOpen:a.isOpen,onClose:a.onClose,forceUpdate:a.forceUpdate})})})}Uh.displayName="Popover";var qh=C(F(),1);function Gh(e){let t=qh.Children.only(e.children),{getAnchorProps:r}=Go();return(0,qh.cloneElement)(t,r(t.props,t.ref))}Gh.displayName="PopoverAnchor";var RL=C(L(),1),Yh=V(function(t,r){let{getBodyProps:o}=Go(),n=Wh();return(0,RL.jsx)(A.div,{...o(t,r),className:G("chakra-popover__body",t.className),__css:n.body})});Yh.displayName="PopoverBody";var ML=C(L(),1);function L9(e){if(e)return{enter:{...e.enter,visibility:"visible"},exit:{...e.exit,transitionEnd:{visibility:"hidden"}}}}var _9={exit:{opacity:0,scale:.95,transition:{duration:.1,ease:[.4,0,1,1]}},enter:{scale:1,opacity:1,transition:{duration:.15,ease:[0,0,.2,1]}}},N9=A(wi.section),Mw=V(function(t,r){let{variants:o=_9,...n}=t,{isOpen:a}=Go();return(0,ML.jsx)(N9,{ref:r,variants:L9(o),initial:!1,animate:a?"enter":"exit",...n})});Mw.displayName="PopoverTransition";var Lw=C(L(),1),Xh=V(function(t,r){let{rootProps:o,motionProps:n,...a}=t,{getPopoverProps:i,getPopoverPositionerProps:s,onAnimationComplete:l}=Go(),f=Wh(),u={position:"relative",display:"flex",flexDirection:"column",...f.content};return(0,Lw.jsx)(A.div,{...s(o),__css:f.popper,className:"chakra-popover__popper",children:(0,Lw.jsx)(Mw,{...n,...i(a,r),onAnimationComplete:MT(l,a.onAnimationComplete),className:G("chakra-popover__content",t.className),__css:u})})});Xh.displayName="PopoverContent";var Kh=C(L(),1),_w=V(function(t,r){let{children:o,placeholder:n,className:a,...i}=t;return(0,Kh.jsxs)(A.select,{...i,ref:r,className:G("chakra-select",a),children:[n&&(0,Kh.jsx)("option",{value:"",children:n}),o]})});_w.displayName="SelectField";var Qh=C(F(),1),Bn=C(L(),1);function z9(e,t){let r={},o={};for(let[n,a]of Object.entries(e))t.includes(n)?r[n]=a:o[n]=a;return[r,o]}var Zh=V((e,t)=>{var r;let o=yo("Select",e),{rootProps:n,placeholder:a,icon:i,color:s,height:l,h:f,minH:u,minHeight:c,iconColor:d,iconSize:m,...I}=Pe(e),[h,v]=z9(I,FD),x=Ti(v),p={width:"100%",height:"fit-content",position:"relative",color:s},g={paddingEnd:"2rem",...o.field,_focus:{zIndex:"unset",...(r=o.field)==null?void 0:r._focus}};return(0,Bn.jsxs)(A.div,{className:"chakra-select__wrapper",__css:p,...h,...n,children:[(0,Bn.jsx)(_w,{ref:t,height:f??l,minH:u??c,placeholder:a,...x,__css:g,children:e.children}),(0,Bn.jsx)(LL,{"data-disabled":Ir(x.disabled),...(d||s)&&{color:d||s},__css:o.icon,...m&&{fontSize:m},children:i})]})});Zh.displayName="Select";var V9=e=>(0,Bn.jsx)("svg",{viewBox:"0 0 24 24",...e,children:(0,Bn.jsx)("path",{fill:"currentColor",d:"M16.59 8.59L12 13.17 7.41 8.59 6 10l6 6 6-6z"})}),H9=A("div",{baseStyle:{position:"absolute",display:"inline-flex",alignItems:"center",justifyContent:"center",pointerEvents:"none",top:"50%",transform:"translateY(-50%)"}}),LL=e=>{let{children:t=(0,Bn.jsx)(V9,{}),...r}=e,o=(0,Qh.cloneElement)(t,{role:"presentation",className:"chakra-select__icon",focusable:!1,"aria-hidden":!0,style:{width:"1em",height:"1em",color:"currentColor"}});return(0,Bn.jsx)(H9,{...r,className:"chakra-select__icon-wrapper",children:(0,Qh.isValidElement)(t)?o:null})};LL.displayName="SelectIcon";var _L=C(L(),1);function j9(e,t=[]){let r=Object.assign({},e);for(let o of t)o in r&&delete r[o];return r}var W9=["h","minH","height","minHeight"],Jh=V((e,t)=>{let r=ct("Textarea",e),{className:o,rows:n,...a}=Pe(e),i=Ti(a),s=n?j9(r,W9):r;return(0,_L.jsx)(A.textarea,{ref:t,rows:n,...i,className:G("chakra-textarea",o),__css:s})});Jh.displayName="Textarea";var NL={exit:{scale:.85,opacity:0,transition:{opacity:{duration:.15,easings:"easeInOut"},scale:{duration:.2,easings:"easeInOut"}}},enter:{scale:1,opacity:1,transition:{opacity:{easings:"easeOut",duration:.2},scale:{duration:.2,ease:[.175,.885,.4,1.1]}}}};var Ge=C(F(),1),zw=e=>{var t;return((t=e.current)==null?void 0:t.ownerDocument)||document},eg=e=>{var t,r;return((r=(t=e.current)==null?void 0:t.ownerDocument)==null?void 0:r.defaultView)||window};function zL(e={}){let{openDelay:t=0,closeDelay:r=0,closeOnClick:o=!0,closeOnMouseDown:n,closeOnScroll:a,closeOnPointerDown:i=n,closeOnEsc:s=!0,onOpen:l,onClose:f,placement:u,id:c,isOpen:d,defaultIsOpen:m,arrowSize:I=10,arrowShadowColor:h,arrowPadding:v,modifiers:x,isDisabled:p,gutter:g,offset:y,direction:w,...P}=e,{isOpen:b,onOpen:k,onClose:D}=jh({isOpen:d,defaultIsOpen:m,onOpen:l,onClose:f}),{referenceRef:T,getPopperProps:O,getArrowInnerProps:_,getArrowProps:$}=Ec({enabled:b,placement:u,arrowPadding:v,modifiers:x,gutter:g,offset:y,direction:w}),le=(0,Ge.useId)(),W=`tooltip-${c??le}`,re=(0,Ge.useRef)(null),Ne=(0,Ge.useRef)(),Ee=(0,Ge.useCallback)(()=>{Ne.current&&(clearTimeout(Ne.current),Ne.current=void 0)},[]),mt=(0,Ge.useRef)(),qt=(0,Ge.useCallback)(()=>{mt.current&&(clearTimeout(mt.current),mt.current=void 0)},[]),xt=(0,Ge.useCallback)(()=>{qt(),D()},[D,qt]),Gt=$9(re,xt),Ze=(0,Ge.useCallback)(()=>{if(!p&&!Ne.current){b&&Gt();let Se=eg(re);Ne.current=Se.setTimeout(k,t)}},[Gt,p,b,k,t]),ie=(0,Ge.useCallback)(()=>{Ee();let Se=eg(re);mt.current=Se.setTimeout(xt,r)},[r,xt,Ee]),it=(0,Ge.useCallback)(()=>{b&&o&&ie()},[o,ie,b]),kt=(0,Ge.useCallback)(()=>{b&&i&&ie()},[i,ie,b]),Tr=(0,Ge.useCallback)(Se=>{b&&Se.key==="Escape"&&ie()},[b,ie]);qo(()=>zw(re),"keydown",s?Tr:void 0),qo(()=>{if(!a)return null;let Se=re.current;if(!Se)return null;let _t=Th(Se);return _t.localName==="body"?eg(re):_t},"scroll",()=>{b&&a&&xt()},{passive:!0,capture:!0}),(0,Ge.useEffect)(()=>{p&&(Ee(),b&&D())},[p,b,D,Ee]),(0,Ge.useEffect)(()=>()=>{Ee(),qt()},[Ee,qt]),qo(()=>re.current,"pointerleave",ie);let Yt=(0,Ge.useCallback)((Se={},_t=null)=>({...Se,ref:ar(re,_t,T),onPointerEnter:rt(Se.onPointerEnter,oe=>{oe.pointerType!=="touch"&&Ze()}),onClick:rt(Se.onClick,it),onPointerDown:rt(Se.onPointerDown,kt),onFocus:rt(Se.onFocus,Ze),onBlur:rt(Se.onBlur,ie),"aria-describedby":b?W:void 0}),[Ze,ie,kt,b,W,it,T]),Xo=(0,Ge.useCallback)((Se={},_t=null)=>O({...Se,style:{...Se.style,[Fe.arrowSize.var]:I?`${I}px`:void 0,[Fe.arrowShadowColor.var]:h}},_t),[O,I,h]),To=(0,Ge.useCallback)((Se={},_t=null)=>{let Rn={...Se.style,position:"relative",transformOrigin:Fe.transformOrigin.varRef};return{ref:_t,...P,...Se,id:W,role:"tooltip",style:Rn}},[P,W]);return{isOpen:b,show:Ze,hide:ie,getTriggerProps:Yt,getTooltipProps:To,getTooltipPositionerProps:Xo,getArrowProps:$,getArrowInnerProps:_}}var Nw="chakra-ui:close-tooltip";function $9(e,t){return(0,Ge.useEffect)(()=>{let r=zw(e);return r.addEventListener(Nw,t),()=>r.removeEventListener(Nw,t)},[t,e]),()=>{let r=zw(e),o=eg(e);r.dispatchEvent(new o.CustomEvent(Nw))}}var tg=C(F(),1),fr=C(L(),1);function U9(e,t=[]){let r=Object.assign({},e);for(let o of t)o in r&&delete r[o];return r}function q9(e,t){let r={};for(let o of t)o in e&&(r[o]=e[o]);return r}var G9=A(wi.div),ef=V((e,t)=>{var r,o;let n=ct("Tooltip",e),a=Pe(e),i=fn(),{children:s,label:l,shouldWrapChildren:f,"aria-label":u,hasArrow:c,bg:d,portalProps:m,background:I,backgroundColor:h,bgColor:v,motionProps:x,...p}=a,g=(o=(r=I??h)!=null?r:d)!=null?o:v;if(g){n.bg=g;let O=AD(i,"colors",g);n[Fe.arrowBg.var]=O}let y=zL({...p,direction:i.direction}),w=typeof s=="string"||f,P;if(w)P=(0,fr.jsx)(A.span,{display:"inline-block",tabIndex:0,...y.getTriggerProps(),children:s});else{let O=tg.Children.only(s);P=(0,tg.cloneElement)(O,y.getTriggerProps(O.props,O.ref))}let b=!!u,k=y.getTooltipProps({},t),D=b?U9(k,["role","id"]):k,T=q9(k,["role","id"]);return l?(0,fr.jsxs)(fr.Fragment,{children:[P,(0,fr.jsx)(ic,{children:y.isOpen&&(0,fr.jsx)(_o,{...m,children:(0,fr.jsx)(A.div,{...y.getTooltipPositionerProps(),__css:{zIndex:n.zIndex,pointerEvents:"none"},children:(0,fr.jsxs)(G9,{variants:NL,initial:"exit",animate:"enter",exit:"exit",...x,...D,__css:n,children:[l,b&&(0,fr.jsx)(A.span,{srOnly:!0,...T,children:u}),c&&(0,fr.jsx)(A.div,{"data-popper-arrow":!0,className:"chakra-tooltip__arrow-wrapper",children:(0,fr.jsx)(A.div,{"data-popper-arrow-inner":!0,className:"chakra-tooltip__arrow",__css:{bg:n.bg}})})]})})})})]}):(0,fr.jsx)(fr.Fragment,{children:s})});ef.displayName="Tooltip";typeof document<"u"&&document.head.appendChild(document.createElement("style")).appendChild(document.createTextNode(`.costSegForm input { background: white; border-color: white; color: black; } .costSegForm textarea { background: white; border-color: white; color: black; } .costSegForm select { background: white; border-color: white; color: black; } .costSegForm option:not([disabled]) { background: white; border-color: white; color: black; } .costSegForm .chakra-form-control { padding-bottom: 10px; } .dateSelector > button { background: white; border-color: white; width: 100%; } .dateSelector { color: black; } .dateSelector > button[disabled] { background: white !important; } `));var VL=C(F(),1);var Yo=(0,VL.createContext)({formData:{properties:[]},setFormData:()=>{}}),HL=e=>({firstname:e.firstname??"",lastname:e.lastname??"",email:e.email??"",salesRep:e.salesRep??"",properties:e.properties.map(r=>({...r,propertyPlacedInServiceDate:r.propertyPlacedInServiceDate?.toISOString()??void 0}))});var jL=C(F(),1);var at=C(L(),1),Y9=({nextPage:e=()=>{},submitting:t=!1,errors:r=[""]})=>{let{formData:o,setFormData:n}=(0,jL.useContext)(Yo),a=i=>s=>{n(l=>({...l,[i]:s.target.value}))};return(0,at.jsxs)("div",{children:[(0,at.jsxs)(Rt,{isRequired:!0,style:{width:"45%",marginRight:"10%",display:"inline-block"},children:[(0,at.jsx)(Mt,{children:"First Name"}),(0,at.jsx)(ir,{type:"text",id:"firstname",name:"firstname",value:o.firstname||"",onChange:a("firstname"),placeholder:"First Name",disabled:t})]}),(0,at.jsxs)(Rt,{isRequired:!0,style:{width:"45%",display:"inline-block"},children:[(0,at.jsx)(Mt,{children:"Last Name"}),(0,at.jsx)(ir,{type:"text",id:"lastname",name:"lastname",value:o.lastname||"",onChange:a("lastname"),placeholder:"Last Name",disabled:t})]}),(0,at.jsx)("div",{style:{height:"15px"}}),(0,at.jsxs)(Rt,{isRequired:!0,style:{width:"100%"},children:[(0,at.jsx)(Mt,{children:"Email"}),(0,at.jsx)(ir,{type:"text",id:"email",name:"email",value:o.email||"",onChange:a("email"),placeholder:"Email",disabled:t})]}),r.length>0&&(0,at.jsxs)(at.Fragment,{children:[(0,at.jsx)("div",{style:{height:"15px"}}),r.map((i,s)=>(0,at.jsx)("p",{style:{color:"red"},children:i},s))]}),(0,at.jsx)("div",{style:{height:"25px"}}),(0,at.jsx)(St,{colorScheme:"orange",onClick:e,isDisabled:t,children:"Next Page"})]})},WL=Y9;var X9={PROD:{formSubmissionURL:"https://api.hsforms.com/submissions/v3/integration/submit/23361624/3e3d6083-a6be-4ee6-aecc-86580f040198",webhookURL:"https://pmctptm.net/submit"},DEV:{formSubmissionURL:"https://api.hsforms.com/submissions/v3/integration/submit/46104539/a6d201c9-f69b-4b60-8014-359070b01d6c",webhookURL:"https://pmctptm.net/submit"}},Vw=X9.PROD;var O_=C(F(),1);var df=C(F(),1);var $L=C(F(),1);var Ba=C(L(),1),K9=({index:e="0",property:t="",options:r=[""],label:o="",style:n={width:"100%"},disabled:a=!1})=>{let{formData:i,setFormData:s}=(0,$L.useContext)(Yo);return(0,Ba.jsx)("div",{style:n,children:(0,Ba.jsxs)(Rt,{isRequired:!0,children:[(0,Ba.jsx)(Mt,{children:o}),(0,Ba.jsxs)(Zh,{onChange:(f=>u=>{let c=[...i.properties];if(e){c[e][f]=u.target.value;let d={...i,properties:c};s(d)}else{let d={...i};d[f]=u.target.value,s(d),console.log(d)}})(t),value:i.properties[e.toString()]?.[t]||i[t]||"Please Select",style:{color:(i.properties[e.toString()]?.[t]||i[t]||"Please Select")=="Please Select"?"grey":"black"},disabled:a,children:[(0,Ba.jsx)("option",{disabled:!0,value:"Please Select",children:"Please Select"}),r.map((f,u)=>(0,Ba.jsx)("option",{value:f,children:f},u))]})]})})},tf=K9;var UL=["Rental Home","Duplex","Multi-unit Apartment Building","Apartment","Warehouse-Industrial","Commercial Office","Commercial Retail","Mixed Use Building","Restaurant-Fast Food","RV/Mobile Home Park","Doctor's Office","Gas Station","Assisted Living Facility","Automobile Dealership","Bank, Branch Office","Car & Truck Repair","Car Wash","Church","Condo","Distribution Center","Fourplex","Golf Course","Hotel","Manufacturing/Industrial","Restaurant-Sit Down","School","Self Storage","Single Family Home","Strip Mall","Supermarket","Townhouse","Veterinary Facility"];var qL=C(F()),ur=C(zR());function Ac(){return Ac=Object.assign||function(e){for(var t=1;t=0)&&(r[n]=e[n]);return r}function Q9(e){if(e===null||e===!0||e===!1)return NaN;var t=Number(e);return isNaN(t)?t:t<0?Math.ceil(t):Math.floor(t)}function rf(e){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");var t=Object.prototype.toString.call(e);return e instanceof Date||typeof e=="object"&&t==="[object Date]"?new Date(e.getTime()):typeof e=="number"||t==="[object Number]"?new Date(e):((typeof e=="string"||t==="[object String]")&&typeof console<"u"&&(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as arguments. Please use `parseISO` to parse strings. See: https://git.io/fjule"),console.warn(new Error().stack)),new Date(NaN))}function rg(e,t){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var r=rf(e),o=Q9(t);return r.setDate(r.getDate()+o),r}function of(e,t){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var r=rf(e),o=rf(t);return r.getTime()1?n-1:0),i=1;i1&&o){var n=t[0].firstDayOfMonth,a=GL(n,o);a1&&o){var n=t[t.length-1].lastDayOfMonth,a=GL(o,n);a0;)s.unshift(""),l--;return s}function u7(e){var t=e.lastDayOfMonth,r=e.minDate,o=e.maxDate,n=e.selectedDates,a=e.firstDayOfWeek,i=e.showOutsideDays,s=[],l=(t.getDay()+7-a)%7;if(i)for(var f=rg(t,1),u=f.getMonth(),c=f.getFullYear(),d=0;d<6-l;){var m=new Date(c,u,1+d),I={date:m,selected:$w(n,m),selectable:Uw(r,o,m),today:!1,prevMonth:!1,nextMonth:!0};s.push(I),d++}else for(;l<6;)s.push(""),l++;return s}function c7(e,t){var r=new Date(t,e,1);e=r.getMonth(),t=r.getFullYear();var o=32-new Date(t,e,32).getDate();return{daysInMonth:o,month:e,year:t}}function d7(e){for(var t=Math.ceil(e.length/7),r=[],o=0;o=n.getTime()?r+1:t.getTime()>=i.getTime()?r:r-1}function Rc(e){let t=K(e);return t.setHours(0,0,0,0),t}function Ni(e){let t=K(e),r=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return r.setUTCFullYear(t.getFullYear()),+e-+r}function t_(e,t){let r=Rc(e),o=Rc(t),n=+r-Ni(r),a=+o-Ni(o);return Math.round((n-a)/KL)}function r_(e){let t=ag(e),r=Z(e,0);return r.setFullYear(t,0,4),r.setHours(0,0,0,0),ko(r)}function o_(e){return e instanceof Date||typeof e=="object"&&Object.prototype.toString.call(e)==="[object Date]"}function n_(e){if(!o_(e)&&typeof e!="number")return!1;let t=K(e);return!isNaN(Number(t))}function a_(e){let t=K(e),r=Z(e,0);return r.setFullYear(t.getFullYear(),0,1),r.setHours(0,0,0,0),r}var S7={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},i_=(e,t,r)=>{let o,n=S7[e];return typeof n=="string"?o=n:t===1?o=n.one:o=n.other.replace("{{count}}",t.toString()),r?.addSuffix?r.comparison&&r.comparison>0?"in "+o:o+" ago":o};function ig(e){return(t={})=>{let r=t.width?String(t.width):e.defaultWidth;return e.formats[r]||e.formats[e.defaultWidth]}}var w7={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},C7={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},P7={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},s_={date:ig({formats:w7,defaultWidth:"full"}),time:ig({formats:C7,defaultWidth:"full"}),dateTime:ig({formats:P7,defaultWidth:"full"})};var k7={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},l_=(e,t,r,o)=>k7[e];function nf(e){return(t,r)=>{let o=r?.context?String(r.context):"standalone",n;if(o==="formatting"&&e.formattingValues){let i=e.defaultFormattingWidth||e.defaultWidth,s=r?.width?String(r.width):i;n=e.formattingValues[s]||e.formattingValues[i]}else{let i=e.defaultWidth,s=r?.width?String(r.width):e.defaultWidth;n=e.values[s]||e.values[i]}let a=e.argumentCallback?e.argumentCallback(t):t;return n[a]}}var T7={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},D7={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},F7={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},E7={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},O7={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},B7={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},A7=(e,t)=>{let r=Number(e),o=r%100;if(o>20||o<10)switch(o%10){case 1:return r+"st";case 2:return r+"nd";case 3:return r+"rd"}return r+"th"},f_={ordinalNumber:A7,era:nf({values:T7,defaultWidth:"wide"}),quarter:nf({values:D7,defaultWidth:"wide",argumentCallback:e=>e-1}),month:nf({values:F7,defaultWidth:"wide"}),day:nf({values:E7,defaultWidth:"wide"}),dayPeriod:nf({values:O7,defaultWidth:"wide",formattingValues:B7,defaultFormattingWidth:"wide"})};function af(e){return(t,r={})=>{let o=r.width,n=o&&e.matchPatterns[o]||e.matchPatterns[e.defaultMatchWidth],a=t.match(n);if(!a)return null;let i=a[0],s=o&&e.parsePatterns[o]||e.parsePatterns[e.defaultParseWidth],l=Array.isArray(s)?M7(s,c=>c.test(i)):R7(s,c=>c.test(i)),f;f=e.valueCallback?e.valueCallback(l):l,f=r.valueCallback?r.valueCallback(f):f;let u=t.slice(i.length);return{value:f,rest:u}}}function R7(e,t){for(let r in e)if(Object.prototype.hasOwnProperty.call(e,r)&&t(e[r]))return r}function M7(e,t){for(let r=0;r{let o=t.match(e.matchPattern);if(!o)return null;let n=o[0],a=t.match(e.parsePattern);if(!a)return null;let i=e.valueCallback?e.valueCallback(a[0]):a[0];i=r.valueCallback?r.valueCallback(i):i;let s=t.slice(n.length);return{value:i,rest:s}}}var L7=/^(\d+)(th|st|nd|rd)?/i,_7=/\d+/i,N7={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},z7={any:[/^b/i,/^(a|c)/i]},V7={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},H7={any:[/1/i,/2/i,/3/i,/4/i]},j7={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},W7={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},$7={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},U7={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},q7={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},G7={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},c_={ordinalNumber:u_({matchPattern:L7,parsePattern:_7,valueCallback:e=>parseInt(e,10)}),era:af({matchPatterns:N7,defaultMatchWidth:"wide",parsePatterns:z7,defaultParseWidth:"any"}),quarter:af({matchPatterns:V7,defaultMatchWidth:"wide",parsePatterns:H7,defaultParseWidth:"any",valueCallback:e=>e+1}),month:af({matchPatterns:j7,defaultMatchWidth:"wide",parsePatterns:W7,defaultParseWidth:"any"}),day:af({matchPatterns:$7,defaultMatchWidth:"wide",parsePatterns:U7,defaultParseWidth:"any"}),dayPeriod:af({matchPatterns:q7,defaultMatchWidth:"any",parsePatterns:G7,defaultParseWidth:"any"})};var Mc={code:"en-US",formatDistance:i_,formatLong:s_,formatRelative:l_,localize:f_,match:c_,options:{weekStartsOn:0,firstWeekContainsDate:1}};function d_(e){let t=K(e);return t_(t,a_(t))+1}function sg(e){let t=K(e),r=+ko(t)-+r_(t);return Math.round(r/ng)+1}function sf(e,t){let r=K(e),o=r.getFullYear(),n=io(),a=t?.firstWeekContainsDate??t?.locale?.options?.firstWeekContainsDate??n.firstWeekContainsDate??n.locale?.options?.firstWeekContainsDate??1,i=Z(e,0);i.setFullYear(o+1,0,a),i.setHours(0,0,0,0);let s=kr(i,t),l=Z(e,0);l.setFullYear(o,0,a),l.setHours(0,0,0,0);let f=kr(l,t);return r.getTime()>=s.getTime()?o+1:r.getTime()>=f.getTime()?o:o-1}function p_(e,t){let r=io(),o=t?.firstWeekContainsDate??t?.locale?.options?.firstWeekContainsDate??r.firstWeekContainsDate??r.locale?.options?.firstWeekContainsDate??1,n=sf(e,t),a=Z(e,0);return a.setFullYear(n,0,o),a.setHours(0,0,0,0),kr(a,t)}function lg(e,t){let r=K(e),o=+kr(r,t)-+p_(r,t);return Math.round(o/ng)+1}function pe(e,t){let r=e<0?"-":"",o=Math.abs(e).toString().padStart(t,"0");return r+o}var An={y(e,t){let r=e.getFullYear(),o=r>0?r:1-r;return pe(t==="yy"?o%100:o,t.length)},M(e,t){let r=e.getMonth();return t==="M"?String(r+1):pe(r+1,2)},d(e,t){return pe(e.getDate(),t.length)},a(e,t){let r=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return r.toUpperCase();case"aaa":return r;case"aaaaa":return r[0];case"aaaa":default:return r==="am"?"a.m.":"p.m."}},h(e,t){return pe(e.getHours()%12||12,t.length)},H(e,t){return pe(e.getHours(),t.length)},m(e,t){return pe(e.getMinutes(),t.length)},s(e,t){return pe(e.getSeconds(),t.length)},S(e,t){let r=t.length,o=e.getMilliseconds(),n=Math.trunc(o*Math.pow(10,r-3));return pe(n,t.length)}};var lf={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},Gw={G:function(e,t,r){let o=e.getFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return r.era(o,{width:"abbreviated"});case"GGGGG":return r.era(o,{width:"narrow"});case"GGGG":default:return r.era(o,{width:"wide"})}},y:function(e,t,r){if(t==="yo"){let o=e.getFullYear(),n=o>0?o:1-o;return r.ordinalNumber(n,{unit:"year"})}return An.y(e,t)},Y:function(e,t,r,o){let n=sf(e,o),a=n>0?n:1-n;if(t==="YY"){let i=a%100;return pe(i,2)}return t==="Yo"?r.ordinalNumber(a,{unit:"year"}):pe(a,t.length)},R:function(e,t){let r=ag(e);return pe(r,t.length)},u:function(e,t){let r=e.getFullYear();return pe(r,t.length)},Q:function(e,t,r){let o=Math.ceil((e.getMonth()+1)/3);switch(t){case"Q":return String(o);case"QQ":return pe(o,2);case"Qo":return r.ordinalNumber(o,{unit:"quarter"});case"QQQ":return r.quarter(o,{width:"abbreviated",context:"formatting"});case"QQQQQ":return r.quarter(o,{width:"narrow",context:"formatting"});case"QQQQ":default:return r.quarter(o,{width:"wide",context:"formatting"})}},q:function(e,t,r){let o=Math.ceil((e.getMonth()+1)/3);switch(t){case"q":return String(o);case"qq":return pe(o,2);case"qo":return r.ordinalNumber(o,{unit:"quarter"});case"qqq":return r.quarter(o,{width:"abbreviated",context:"standalone"});case"qqqqq":return r.quarter(o,{width:"narrow",context:"standalone"});case"qqqq":default:return r.quarter(o,{width:"wide",context:"standalone"})}},M:function(e,t,r){let o=e.getMonth();switch(t){case"M":case"MM":return An.M(e,t);case"Mo":return r.ordinalNumber(o+1,{unit:"month"});case"MMM":return r.month(o,{width:"abbreviated",context:"formatting"});case"MMMMM":return r.month(o,{width:"narrow",context:"formatting"});case"MMMM":default:return r.month(o,{width:"wide",context:"formatting"})}},L:function(e,t,r){let o=e.getMonth();switch(t){case"L":return String(o+1);case"LL":return pe(o+1,2);case"Lo":return r.ordinalNumber(o+1,{unit:"month"});case"LLL":return r.month(o,{width:"abbreviated",context:"standalone"});case"LLLLL":return r.month(o,{width:"narrow",context:"standalone"});case"LLLL":default:return r.month(o,{width:"wide",context:"standalone"})}},w:function(e,t,r,o){let n=lg(e,o);return t==="wo"?r.ordinalNumber(n,{unit:"week"}):pe(n,t.length)},I:function(e,t,r){let o=sg(e);return t==="Io"?r.ordinalNumber(o,{unit:"week"}):pe(o,t.length)},d:function(e,t,r){return t==="do"?r.ordinalNumber(e.getDate(),{unit:"date"}):An.d(e,t)},D:function(e,t,r){let o=d_(e);return t==="Do"?r.ordinalNumber(o,{unit:"dayOfYear"}):pe(o,t.length)},E:function(e,t,r){let o=e.getDay();switch(t){case"E":case"EE":case"EEE":return r.day(o,{width:"abbreviated",context:"formatting"});case"EEEEE":return r.day(o,{width:"narrow",context:"formatting"});case"EEEEEE":return r.day(o,{width:"short",context:"formatting"});case"EEEE":default:return r.day(o,{width:"wide",context:"formatting"})}},e:function(e,t,r,o){let n=e.getDay(),a=(n-o.weekStartsOn+8)%7||7;switch(t){case"e":return String(a);case"ee":return pe(a,2);case"eo":return r.ordinalNumber(a,{unit:"day"});case"eee":return r.day(n,{width:"abbreviated",context:"formatting"});case"eeeee":return r.day(n,{width:"narrow",context:"formatting"});case"eeeeee":return r.day(n,{width:"short",context:"formatting"});case"eeee":default:return r.day(n,{width:"wide",context:"formatting"})}},c:function(e,t,r,o){let n=e.getDay(),a=(n-o.weekStartsOn+8)%7||7;switch(t){case"c":return String(a);case"cc":return pe(a,t.length);case"co":return r.ordinalNumber(a,{unit:"day"});case"ccc":return r.day(n,{width:"abbreviated",context:"standalone"});case"ccccc":return r.day(n,{width:"narrow",context:"standalone"});case"cccccc":return r.day(n,{width:"short",context:"standalone"});case"cccc":default:return r.day(n,{width:"wide",context:"standalone"})}},i:function(e,t,r){let o=e.getDay(),n=o===0?7:o;switch(t){case"i":return String(n);case"ii":return pe(n,t.length);case"io":return r.ordinalNumber(n,{unit:"day"});case"iii":return r.day(o,{width:"abbreviated",context:"formatting"});case"iiiii":return r.day(o,{width:"narrow",context:"formatting"});case"iiiiii":return r.day(o,{width:"short",context:"formatting"});case"iiii":default:return r.day(o,{width:"wide",context:"formatting"})}},a:function(e,t,r){let n=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return r.dayPeriod(n,{width:"abbreviated",context:"formatting"});case"aaa":return r.dayPeriod(n,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return r.dayPeriod(n,{width:"narrow",context:"formatting"});case"aaaa":default:return r.dayPeriod(n,{width:"wide",context:"formatting"})}},b:function(e,t,r){let o=e.getHours(),n;switch(o===12?n=lf.noon:o===0?n=lf.midnight:n=o/12>=1?"pm":"am",t){case"b":case"bb":return r.dayPeriod(n,{width:"abbreviated",context:"formatting"});case"bbb":return r.dayPeriod(n,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return r.dayPeriod(n,{width:"narrow",context:"formatting"});case"bbbb":default:return r.dayPeriod(n,{width:"wide",context:"formatting"})}},B:function(e,t,r){let o=e.getHours(),n;switch(o>=17?n=lf.evening:o>=12?n=lf.afternoon:o>=4?n=lf.morning:n=lf.night,t){case"B":case"BB":case"BBB":return r.dayPeriod(n,{width:"abbreviated",context:"formatting"});case"BBBBB":return r.dayPeriod(n,{width:"narrow",context:"formatting"});case"BBBB":default:return r.dayPeriod(n,{width:"wide",context:"formatting"})}},h:function(e,t,r){if(t==="ho"){let o=e.getHours()%12;return o===0&&(o=12),r.ordinalNumber(o,{unit:"hour"})}return An.h(e,t)},H:function(e,t,r){return t==="Ho"?r.ordinalNumber(e.getHours(),{unit:"hour"}):An.H(e,t)},K:function(e,t,r){let o=e.getHours()%12;return t==="Ko"?r.ordinalNumber(o,{unit:"hour"}):pe(o,t.length)},k:function(e,t,r){let o=e.getHours();return o===0&&(o=24),t==="ko"?r.ordinalNumber(o,{unit:"hour"}):pe(o,t.length)},m:function(e,t,r){return t==="mo"?r.ordinalNumber(e.getMinutes(),{unit:"minute"}):An.m(e,t)},s:function(e,t,r){return t==="so"?r.ordinalNumber(e.getSeconds(),{unit:"second"}):An.s(e,t)},S:function(e,t){return An.S(e,t)},X:function(e,t,r){let o=e.getTimezoneOffset();if(o===0)return"Z";switch(t){case"X":return x_(o);case"XXXX":case"XX":return zi(o);case"XXXXX":case"XXX":default:return zi(o,":")}},x:function(e,t,r){let o=e.getTimezoneOffset();switch(t){case"x":return x_(o);case"xxxx":case"xx":return zi(o);case"xxxxx":case"xxx":default:return zi(o,":")}},O:function(e,t,r){let o=e.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+m_(o,":");case"OOOO":default:return"GMT"+zi(o,":")}},z:function(e,t,r){let o=e.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+m_(o,":");case"zzzz":default:return"GMT"+zi(o,":")}},t:function(e,t,r){let o=Math.trunc(e.getTime()/1e3);return pe(o,t.length)},T:function(e,t,r){let o=e.getTime();return pe(o,t.length)}};function m_(e,t=""){let r=e>0?"-":"+",o=Math.abs(e),n=Math.trunc(o/60),a=o%60;return a===0?r+String(n):r+String(n)+t+pe(a,2)}function x_(e,t){return e%60===0?(e>0?"-":"+")+pe(Math.abs(e)/60,2):zi(e,t)}function zi(e,t=""){let r=e>0?"-":"+",o=Math.abs(e),n=pe(Math.trunc(o/60),2),a=pe(o%60,2);return r+n+t+a}var h_=(e,t)=>{switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});case"PPPP":default:return t.date({width:"full"})}},g_=(e,t)=>{switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});case"pppp":default:return t.time({width:"full"})}},Y7=(e,t)=>{let r=e.match(/(P+)(p+)?/)||[],o=r[1],n=r[2];if(!n)return h_(e,t);let a;switch(o){case"P":a=t.dateTime({width:"short"});break;case"PP":a=t.dateTime({width:"medium"});break;case"PPP":a=t.dateTime({width:"long"});break;case"PPPP":default:a=t.dateTime({width:"full"});break}return a.replace("{{date}}",h_(o,t)).replace("{{time}}",g_(n,t))},Lc={p:g_,P:Y7};var X7=/^D+$/,K7=/^Y+$/,Q7=["D","DD","YY","YYYY"];function fg(e){return X7.test(e)}function ug(e){return K7.test(e)}function _c(e,t,r){let o=Z7(e,t,r);if(console.warn(o),Q7.includes(e))throw new RangeError(o)}function Z7(e,t,r){let o=e[0]==="Y"?"years":"days of the month";return`Use \`${e.toLowerCase()}\` instead of \`${e}\` (in \`${t}\`) for formatting ${o} to the input \`${r}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}var J7=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,eG=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,tG=/^'([^]*?)'?$/,rG=/''/g,oG=/[a-zA-Z]/;function cg(e,t,r){let o=io(),n=r?.locale??o.locale??Mc,a=r?.firstWeekContainsDate??r?.locale?.options?.firstWeekContainsDate??o.firstWeekContainsDate??o.locale?.options?.firstWeekContainsDate??1,i=r?.weekStartsOn??r?.locale?.options?.weekStartsOn??o.weekStartsOn??o.locale?.options?.weekStartsOn??0,s=K(e);if(!n_(s))throw new RangeError("Invalid time value");let l=t.match(eG).map(u=>{let c=u[0];if(c==="p"||c==="P"){let d=Lc[c];return d(u,n.formatLong)}return u}).join("").match(J7).map(u=>{if(u==="''")return{isToken:!1,value:"'"};let c=u[0];if(c==="'")return{isToken:!1,value:nG(u)};if(Gw[c])return{isToken:!0,value:u};if(c.match(oG))throw new RangeError("Format string contains an unescaped latin alphabet character `"+c+"`");return{isToken:!1,value:u}});n.localize.preprocessor&&(l=n.localize.preprocessor(s,l));let f={firstWeekContainsDate:a,weekStartsOn:i,locale:n};return l.map(u=>{if(!u.isToken)return u.value;let c=u.value;(!r?.useAdditionalWeekYearTokens&&ug(c)||!r?.useAdditionalDayOfYearTokens&&fg(c))&&_c(c,t,String(e));let d=Gw[c[0]];return d(s,c,n.localize,f)}).join("")}function nG(e){let t=e.match(tG);return t?t[1].replace(rG,"'"):e}function I_(){return Object.assign({},io())}function v_(e){let r=K(e).getDay();return r===0&&(r=7),r}function y_(e,t){let r=t instanceof Date?Z(t,0):new t(0);return r.setFullYear(e.getFullYear(),e.getMonth(),e.getDate()),r.setHours(e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()),r}var aG=10,dg=class{subPriority=0;validate(t,r){return!0}},pg=class extends dg{constructor(t,r,o,n,a){super(),this.value=t,this.validateValue=r,this.setValue=o,this.priority=n,a&&(this.subPriority=a)}validate(t,r){return this.validateValue(t,this.value,r)}set(t,r,o){return this.setValue(t,r,this.value,o)}},mg=class extends dg{priority=aG;subPriority=-1;set(t,r){return r.timestampIsSet?t:Z(t,y_(t,Date))}};var M=class{run(t,r,o,n){let a=this.parse(t,r,o,n);return a?{setter:new pg(a.value,this.validate,this.set,this.priority,this.subPriority),rest:a.rest}:null}validate(t,r,o){return!0}};var xg=class extends M{priority=140;parse(t,r,o){switch(r){case"G":case"GG":case"GGG":return o.era(t,{width:"abbreviated"})||o.era(t,{width:"narrow"});case"GGGGG":return o.era(t,{width:"narrow"});case"GGGG":default:return o.era(t,{width:"wide"})||o.era(t,{width:"abbreviated"})||o.era(t,{width:"narrow"})}}set(t,r,o){return r.era=o,t.setFullYear(o,0,1),t.setHours(0,0,0,0),t}incompatibleTokens=["R","u","t","T"]};var ae={month:/^(1[0-2]|0?\d)/,date:/^(3[0-1]|[0-2]?\d)/,dayOfYear:/^(36[0-6]|3[0-5]\d|[0-2]?\d?\d)/,week:/^(5[0-3]|[0-4]?\d)/,hour23h:/^(2[0-3]|[0-1]?\d)/,hour24h:/^(2[0-4]|[0-1]?\d)/,hour11h:/^(1[0-1]|0?\d)/,hour12h:/^(1[0-2]|0?\d)/,minute:/^[0-5]?\d/,second:/^[0-5]?\d/,singleDigit:/^\d/,twoDigits:/^\d{1,2}/,threeDigits:/^\d{1,3}/,fourDigits:/^\d{1,4}/,anyDigitsSigned:/^-?\d+/,singleDigitSigned:/^-?\d/,twoDigitsSigned:/^-?\d{1,2}/,threeDigitsSigned:/^-?\d{1,3}/,fourDigitsSigned:/^-?\d{1,4}/},so={basicOptionalMinutes:/^([+-])(\d{2})(\d{2})?|Z/,basic:/^([+-])(\d{2})(\d{2})|Z/,basicOptionalSeconds:/^([+-])(\d{2})(\d{2})((\d{2}))?|Z/,extended:/^([+-])(\d{2}):(\d{2})|Z/,extendedOptionalSeconds:/^([+-])(\d{2}):(\d{2})(:(\d{2}))?|Z/};function Ie(e,t){return e&&{value:t(e.value),rest:e.rest}}function te(e,t){let r=t.match(e);return r?{value:parseInt(r[0],10),rest:t.slice(r[0].length)}:null}function lo(e,t){let r=t.match(e);if(!r)return null;if(r[0]==="Z")return{value:0,rest:t.slice(1)};let o=r[1]==="+"?1:-1,n=r[2]?parseInt(r[2],10):0,a=r[3]?parseInt(r[3],10):0,i=r[5]?parseInt(r[5],10):0;return{value:o*(n*ZL+a*QL+i*JL),rest:t.slice(r[0].length)}}function hg(e){return te(ae.anyDigitsSigned,e)}function U(e,t){switch(e){case 1:return te(ae.singleDigit,t);case 2:return te(ae.twoDigits,t);case 3:return te(ae.threeDigits,t);case 4:return te(ae.fourDigits,t);default:return te(new RegExp("^\\d{1,"+e+"}"),t)}}function ff(e,t){switch(e){case 1:return te(ae.singleDigitSigned,t);case 2:return te(ae.twoDigitsSigned,t);case 3:return te(ae.threeDigitsSigned,t);case 4:return te(ae.fourDigitsSigned,t);default:return te(new RegExp("^-?\\d{1,"+e+"}"),t)}}function uf(e){switch(e){case"morning":return 4;case"evening":return 17;case"pm":case"noon":case"afternoon":return 12;case"am":case"midnight":case"night":default:return 0}}function gg(e,t){let r=t>0,o=r?t:1-t,n;if(o<=50)n=e||100;else{let a=o+50,i=Math.trunc(a/100)*100,s=e>=a%100;n=e+i-(s?100:0)}return r?n:1-n}function Ig(e){return e%400===0||e%4===0&&e%100!==0}var vg=class extends M{priority=130;incompatibleTokens=["Y","R","u","w","I","i","e","c","t","T"];parse(t,r,o){let n=a=>({year:a,isTwoDigitYear:r==="yy"});switch(r){case"y":return Ie(U(4,t),n);case"yo":return Ie(o.ordinalNumber(t,{unit:"year"}),n);default:return Ie(U(r.length,t),n)}}validate(t,r){return r.isTwoDigitYear||r.year>0}set(t,r,o){let n=t.getFullYear();if(o.isTwoDigitYear){let i=gg(o.year,n);return t.setFullYear(i,0,1),t.setHours(0,0,0,0),t}let a=!("era"in r)||r.era===1?o.year:1-o.year;return t.setFullYear(a,0,1),t.setHours(0,0,0,0),t}};var yg=class extends M{priority=130;parse(t,r,o){let n=a=>({year:a,isTwoDigitYear:r==="YY"});switch(r){case"Y":return Ie(U(4,t),n);case"Yo":return Ie(o.ordinalNumber(t,{unit:"year"}),n);default:return Ie(U(r.length,t),n)}}validate(t,r){return r.isTwoDigitYear||r.year>0}set(t,r,o,n){let a=sf(t,n);if(o.isTwoDigitYear){let s=gg(o.year,a);return t.setFullYear(s,0,n.firstWeekContainsDate),t.setHours(0,0,0,0),kr(t,n)}let i=!("era"in r)||r.era===1?o.year:1-o.year;return t.setFullYear(i,0,n.firstWeekContainsDate),t.setHours(0,0,0,0),kr(t,n)}incompatibleTokens=["y","R","u","Q","q","M","L","I","d","D","i","t","T"]};var bg=class extends M{priority=130;parse(t,r){return r==="R"?ff(4,t):ff(r.length,t)}set(t,r,o){let n=Z(t,0);return n.setFullYear(o,0,4),n.setHours(0,0,0,0),ko(n)}incompatibleTokens=["G","y","Y","u","Q","q","M","L","w","d","D","e","c","t","T"]};var Sg=class extends M{priority=130;parse(t,r){return r==="u"?ff(4,t):ff(r.length,t)}set(t,r,o){return t.setFullYear(o,0,1),t.setHours(0,0,0,0),t}incompatibleTokens=["G","y","Y","R","w","I","i","e","c","t","T"]};var wg=class extends M{priority=120;parse(t,r,o){switch(r){case"Q":case"QQ":return U(r.length,t);case"Qo":return o.ordinalNumber(t,{unit:"quarter"});case"QQQ":return o.quarter(t,{width:"abbreviated",context:"formatting"})||o.quarter(t,{width:"narrow",context:"formatting"});case"QQQQQ":return o.quarter(t,{width:"narrow",context:"formatting"});case"QQQQ":default:return o.quarter(t,{width:"wide",context:"formatting"})||o.quarter(t,{width:"abbreviated",context:"formatting"})||o.quarter(t,{width:"narrow",context:"formatting"})}}validate(t,r){return r>=1&&r<=4}set(t,r,o){return t.setMonth((o-1)*3,1),t.setHours(0,0,0,0),t}incompatibleTokens=["Y","R","q","M","L","w","I","d","D","i","e","c","t","T"]};var Cg=class extends M{priority=120;parse(t,r,o){switch(r){case"q":case"qq":return U(r.length,t);case"qo":return o.ordinalNumber(t,{unit:"quarter"});case"qqq":return o.quarter(t,{width:"abbreviated",context:"standalone"})||o.quarter(t,{width:"narrow",context:"standalone"});case"qqqqq":return o.quarter(t,{width:"narrow",context:"standalone"});case"qqqq":default:return o.quarter(t,{width:"wide",context:"standalone"})||o.quarter(t,{width:"abbreviated",context:"standalone"})||o.quarter(t,{width:"narrow",context:"standalone"})}}validate(t,r){return r>=1&&r<=4}set(t,r,o){return t.setMonth((o-1)*3,1),t.setHours(0,0,0,0),t}incompatibleTokens=["Y","R","Q","M","L","w","I","d","D","i","e","c","t","T"]};var Pg=class extends M{incompatibleTokens=["Y","R","q","Q","L","w","I","D","i","e","c","t","T"];priority=110;parse(t,r,o){let n=a=>a-1;switch(r){case"M":return Ie(te(ae.month,t),n);case"MM":return Ie(U(2,t),n);case"Mo":return Ie(o.ordinalNumber(t,{unit:"month"}),n);case"MMM":return o.month(t,{width:"abbreviated",context:"formatting"})||o.month(t,{width:"narrow",context:"formatting"});case"MMMMM":return o.month(t,{width:"narrow",context:"formatting"});case"MMMM":default:return o.month(t,{width:"wide",context:"formatting"})||o.month(t,{width:"abbreviated",context:"formatting"})||o.month(t,{width:"narrow",context:"formatting"})}}validate(t,r){return r>=0&&r<=11}set(t,r,o){return t.setMonth(o,1),t.setHours(0,0,0,0),t}};var kg=class extends M{priority=110;parse(t,r,o){let n=a=>a-1;switch(r){case"L":return Ie(te(ae.month,t),n);case"LL":return Ie(U(2,t),n);case"Lo":return Ie(o.ordinalNumber(t,{unit:"month"}),n);case"LLL":return o.month(t,{width:"abbreviated",context:"standalone"})||o.month(t,{width:"narrow",context:"standalone"});case"LLLLL":return o.month(t,{width:"narrow",context:"standalone"});case"LLLL":default:return o.month(t,{width:"wide",context:"standalone"})||o.month(t,{width:"abbreviated",context:"standalone"})||o.month(t,{width:"narrow",context:"standalone"})}}validate(t,r){return r>=0&&r<=11}set(t,r,o){return t.setMonth(o,1),t.setHours(0,0,0,0),t}incompatibleTokens=["Y","R","q","Q","M","w","I","D","i","e","c","t","T"]};function b_(e,t,r){let o=K(e),n=lg(o,r)-t;return o.setDate(o.getDate()-n*7),o}var Tg=class extends M{priority=100;parse(t,r,o){switch(r){case"w":return te(ae.week,t);case"wo":return o.ordinalNumber(t,{unit:"week"});default:return U(r.length,t)}}validate(t,r){return r>=1&&r<=53}set(t,r,o,n){return kr(b_(t,o,n),n)}incompatibleTokens=["y","R","u","q","Q","M","L","I","d","D","i","t","T"]};function S_(e,t){let r=K(e),o=sg(r)-t;return r.setDate(r.getDate()-o*7),r}var Dg=class extends M{priority=100;parse(t,r,o){switch(r){case"I":return te(ae.week,t);case"Io":return o.ordinalNumber(t,{unit:"week"});default:return U(r.length,t)}}validate(t,r){return r>=1&&r<=53}set(t,r,o){return ko(S_(t,o))}incompatibleTokens=["y","Y","u","q","Q","M","L","w","d","D","e","c","t","T"]};var iG=[31,28,31,30,31,30,31,31,30,31,30,31],sG=[31,29,31,30,31,30,31,31,30,31,30,31],Fg=class extends M{priority=90;subPriority=1;parse(t,r,o){switch(r){case"d":return te(ae.date,t);case"do":return o.ordinalNumber(t,{unit:"date"});default:return U(r.length,t)}}validate(t,r){let o=t.getFullYear(),n=Ig(o),a=t.getMonth();return n?r>=1&&r<=sG[a]:r>=1&&r<=iG[a]}set(t,r,o){return t.setDate(o),t.setHours(0,0,0,0),t}incompatibleTokens=["Y","R","q","Q","w","I","D","i","e","c","t","T"]};var Eg=class extends M{priority=90;subpriority=1;parse(t,r,o){switch(r){case"D":case"DD":return te(ae.dayOfYear,t);case"Do":return o.ordinalNumber(t,{unit:"date"});default:return U(r.length,t)}}validate(t,r){let o=t.getFullYear();return Ig(o)?r>=1&&r<=366:r>=1&&r<=365}set(t,r,o){return t.setMonth(0,o),t.setHours(0,0,0,0),t}incompatibleTokens=["Y","R","q","Q","M","L","w","I","d","E","i","e","c","t","T"]};function cf(e,t,r){let o=io(),n=r?.weekStartsOn??r?.locale?.options?.weekStartsOn??o.weekStartsOn??o.locale?.options?.weekStartsOn??0,a=K(e),i=a.getDay(),l=(t%7+7)%7,f=7-n,u=t<0||t>6?t-(i+f)%7:(l+f)%7-(i+f)%7;return og(a,u)}var Og=class extends M{priority=90;parse(t,r,o){switch(r){case"E":case"EE":case"EEE":return o.day(t,{width:"abbreviated",context:"formatting"})||o.day(t,{width:"short",context:"formatting"})||o.day(t,{width:"narrow",context:"formatting"});case"EEEEE":return o.day(t,{width:"narrow",context:"formatting"});case"EEEEEE":return o.day(t,{width:"short",context:"formatting"})||o.day(t,{width:"narrow",context:"formatting"});case"EEEE":default:return o.day(t,{width:"wide",context:"formatting"})||o.day(t,{width:"abbreviated",context:"formatting"})||o.day(t,{width:"short",context:"formatting"})||o.day(t,{width:"narrow",context:"formatting"})}}validate(t,r){return r>=0&&r<=6}set(t,r,o,n){return t=cf(t,o,n),t.setHours(0,0,0,0),t}incompatibleTokens=["D","i","e","c","t","T"]};var Bg=class extends M{priority=90;parse(t,r,o,n){let a=i=>{let s=Math.floor((i-1)/7)*7;return(i+n.weekStartsOn+6)%7+s};switch(r){case"e":case"ee":return Ie(U(r.length,t),a);case"eo":return Ie(o.ordinalNumber(t,{unit:"day"}),a);case"eee":return o.day(t,{width:"abbreviated",context:"formatting"})||o.day(t,{width:"short",context:"formatting"})||o.day(t,{width:"narrow",context:"formatting"});case"eeeee":return o.day(t,{width:"narrow",context:"formatting"});case"eeeeee":return o.day(t,{width:"short",context:"formatting"})||o.day(t,{width:"narrow",context:"formatting"});case"eeee":default:return o.day(t,{width:"wide",context:"formatting"})||o.day(t,{width:"abbreviated",context:"formatting"})||o.day(t,{width:"short",context:"formatting"})||o.day(t,{width:"narrow",context:"formatting"})}}validate(t,r){return r>=0&&r<=6}set(t,r,o,n){return t=cf(t,o,n),t.setHours(0,0,0,0),t}incompatibleTokens=["y","R","u","q","Q","M","L","I","d","D","E","i","c","t","T"]};var Ag=class extends M{priority=90;parse(t,r,o,n){let a=i=>{let s=Math.floor((i-1)/7)*7;return(i+n.weekStartsOn+6)%7+s};switch(r){case"c":case"cc":return Ie(U(r.length,t),a);case"co":return Ie(o.ordinalNumber(t,{unit:"day"}),a);case"ccc":return o.day(t,{width:"abbreviated",context:"standalone"})||o.day(t,{width:"short",context:"standalone"})||o.day(t,{width:"narrow",context:"standalone"});case"ccccc":return o.day(t,{width:"narrow",context:"standalone"});case"cccccc":return o.day(t,{width:"short",context:"standalone"})||o.day(t,{width:"narrow",context:"standalone"});case"cccc":default:return o.day(t,{width:"wide",context:"standalone"})||o.day(t,{width:"abbreviated",context:"standalone"})||o.day(t,{width:"short",context:"standalone"})||o.day(t,{width:"narrow",context:"standalone"})}}validate(t,r){return r>=0&&r<=6}set(t,r,o,n){return t=cf(t,o,n),t.setHours(0,0,0,0),t}incompatibleTokens=["y","R","u","q","Q","M","L","I","d","D","E","i","e","t","T"]};function w_(e,t){let r=K(e),o=v_(r),n=t-o;return og(r,n)}var Rg=class extends M{priority=90;parse(t,r,o){let n=a=>a===0?7:a;switch(r){case"i":case"ii":return U(r.length,t);case"io":return o.ordinalNumber(t,{unit:"day"});case"iii":return Ie(o.day(t,{width:"abbreviated",context:"formatting"})||o.day(t,{width:"short",context:"formatting"})||o.day(t,{width:"narrow",context:"formatting"}),n);case"iiiii":return Ie(o.day(t,{width:"narrow",context:"formatting"}),n);case"iiiiii":return Ie(o.day(t,{width:"short",context:"formatting"})||o.day(t,{width:"narrow",context:"formatting"}),n);case"iiii":default:return Ie(o.day(t,{width:"wide",context:"formatting"})||o.day(t,{width:"abbreviated",context:"formatting"})||o.day(t,{width:"short",context:"formatting"})||o.day(t,{width:"narrow",context:"formatting"}),n)}}validate(t,r){return r>=1&&r<=7}set(t,r,o){return t=w_(t,o),t.setHours(0,0,0,0),t}incompatibleTokens=["y","Y","u","q","Q","M","L","w","d","D","E","e","c","t","T"]};var Mg=class extends M{priority=80;parse(t,r,o){switch(r){case"a":case"aa":case"aaa":return o.dayPeriod(t,{width:"abbreviated",context:"formatting"})||o.dayPeriod(t,{width:"narrow",context:"formatting"});case"aaaaa":return o.dayPeriod(t,{width:"narrow",context:"formatting"});case"aaaa":default:return o.dayPeriod(t,{width:"wide",context:"formatting"})||o.dayPeriod(t,{width:"abbreviated",context:"formatting"})||o.dayPeriod(t,{width:"narrow",context:"formatting"})}}set(t,r,o){return t.setHours(uf(o),0,0,0),t}incompatibleTokens=["b","B","H","k","t","T"]};var Lg=class extends M{priority=80;parse(t,r,o){switch(r){case"b":case"bb":case"bbb":return o.dayPeriod(t,{width:"abbreviated",context:"formatting"})||o.dayPeriod(t,{width:"narrow",context:"formatting"});case"bbbbb":return o.dayPeriod(t,{width:"narrow",context:"formatting"});case"bbbb":default:return o.dayPeriod(t,{width:"wide",context:"formatting"})||o.dayPeriod(t,{width:"abbreviated",context:"formatting"})||o.dayPeriod(t,{width:"narrow",context:"formatting"})}}set(t,r,o){return t.setHours(uf(o),0,0,0),t}incompatibleTokens=["a","B","H","k","t","T"]};var _g=class extends M{priority=80;parse(t,r,o){switch(r){case"B":case"BB":case"BBB":return o.dayPeriod(t,{width:"abbreviated",context:"formatting"})||o.dayPeriod(t,{width:"narrow",context:"formatting"});case"BBBBB":return o.dayPeriod(t,{width:"narrow",context:"formatting"});case"BBBB":default:return o.dayPeriod(t,{width:"wide",context:"formatting"})||o.dayPeriod(t,{width:"abbreviated",context:"formatting"})||o.dayPeriod(t,{width:"narrow",context:"formatting"})}}set(t,r,o){return t.setHours(uf(o),0,0,0),t}incompatibleTokens=["a","b","t","T"]};var Ng=class extends M{priority=70;parse(t,r,o){switch(r){case"h":return te(ae.hour12h,t);case"ho":return o.ordinalNumber(t,{unit:"hour"});default:return U(r.length,t)}}validate(t,r){return r>=1&&r<=12}set(t,r,o){let n=t.getHours()>=12;return n&&o<12?t.setHours(o+12,0,0,0):!n&&o===12?t.setHours(0,0,0,0):t.setHours(o,0,0,0),t}incompatibleTokens=["H","K","k","t","T"]};var zg=class extends M{priority=70;parse(t,r,o){switch(r){case"H":return te(ae.hour23h,t);case"Ho":return o.ordinalNumber(t,{unit:"hour"});default:return U(r.length,t)}}validate(t,r){return r>=0&&r<=23}set(t,r,o){return t.setHours(o,0,0,0),t}incompatibleTokens=["a","b","h","K","k","t","T"]};var Vg=class extends M{priority=70;parse(t,r,o){switch(r){case"K":return te(ae.hour11h,t);case"Ko":return o.ordinalNumber(t,{unit:"hour"});default:return U(r.length,t)}}validate(t,r){return r>=0&&r<=11}set(t,r,o){return t.getHours()>=12&&o<12?t.setHours(o+12,0,0,0):t.setHours(o,0,0,0),t}incompatibleTokens=["h","H","k","t","T"]};var Hg=class extends M{priority=70;parse(t,r,o){switch(r){case"k":return te(ae.hour24h,t);case"ko":return o.ordinalNumber(t,{unit:"hour"});default:return U(r.length,t)}}validate(t,r){return r>=1&&r<=24}set(t,r,o){let n=o<=24?o%24:o;return t.setHours(n,0,0,0),t}incompatibleTokens=["a","b","h","H","K","t","T"]};var jg=class extends M{priority=60;parse(t,r,o){switch(r){case"m":return te(ae.minute,t);case"mo":return o.ordinalNumber(t,{unit:"minute"});default:return U(r.length,t)}}validate(t,r){return r>=0&&r<=59}set(t,r,o){return t.setMinutes(o,0,0),t}incompatibleTokens=["t","T"]};var Wg=class extends M{priority=50;parse(t,r,o){switch(r){case"s":return te(ae.second,t);case"so":return o.ordinalNumber(t,{unit:"second"});default:return U(r.length,t)}}validate(t,r){return r>=0&&r<=59}set(t,r,o){return t.setSeconds(o,0),t}incompatibleTokens=["t","T"]};var $g=class extends M{priority=30;parse(t,r){let o=n=>Math.trunc(n*Math.pow(10,-r.length+3));return Ie(U(r.length,t),o)}set(t,r,o){return t.setMilliseconds(o),t}incompatibleTokens=["t","T"]};var Ug=class extends M{priority=10;parse(t,r){switch(r){case"X":return lo(so.basicOptionalMinutes,t);case"XX":return lo(so.basic,t);case"XXXX":return lo(so.basicOptionalSeconds,t);case"XXXXX":return lo(so.extendedOptionalSeconds,t);case"XXX":default:return lo(so.extended,t)}}set(t,r,o){return r.timestampIsSet?t:Z(t,t.getTime()-Ni(t)-o)}incompatibleTokens=["t","T","x"]};var qg=class extends M{priority=10;parse(t,r){switch(r){case"x":return lo(so.basicOptionalMinutes,t);case"xx":return lo(so.basic,t);case"xxxx":return lo(so.basicOptionalSeconds,t);case"xxxxx":return lo(so.extendedOptionalSeconds,t);case"xxx":default:return lo(so.extended,t)}}set(t,r,o){return r.timestampIsSet?t:Z(t,t.getTime()-Ni(t)-o)}incompatibleTokens=["t","T","X"]};var Gg=class extends M{priority=40;parse(t){return hg(t)}set(t,r,o){return[Z(t,o*1e3),{timestampIsSet:!0}]}incompatibleTokens="*"};var Yg=class extends M{priority=20;parse(t){return hg(t)}set(t,r,o){return[Z(t,o),{timestampIsSet:!0}]}incompatibleTokens="*"};var C_={G:new xg,y:new vg,Y:new yg,R:new bg,u:new Sg,Q:new wg,q:new Cg,M:new Pg,L:new kg,w:new Tg,I:new Dg,d:new Fg,D:new Eg,E:new Og,e:new Bg,c:new Ag,i:new Rg,a:new Mg,b:new Lg,B:new _g,h:new Ng,H:new zg,K:new Vg,k:new Hg,m:new jg,s:new Wg,S:new $g,X:new Ug,x:new qg,t:new Gg,T:new Yg};var lG=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,fG=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,uG=/^'([^]*?)'?$/,cG=/''/g,dG=/\S/,pG=/[a-zA-Z]/;function P_(e,t,r,o){let n=I_(),a=o?.locale??n.locale??Mc,i=o?.firstWeekContainsDate??o?.locale?.options?.firstWeekContainsDate??n.firstWeekContainsDate??n.locale?.options?.firstWeekContainsDate??1,s=o?.weekStartsOn??o?.locale?.options?.weekStartsOn??n.weekStartsOn??n.locale?.options?.weekStartsOn??0;if(t==="")return e===""?K(r):Z(r,NaN);let l={firstWeekContainsDate:i,weekStartsOn:s,locale:a},f=[new mg],u=t.match(fG).map(h=>{let v=h[0];if(v in Lc){let x=Lc[v];return x(h,a.formatLong)}return h}).join("").match(lG),c=[];for(let h of u){!o?.useAdditionalWeekYearTokens&&ug(h)&&_c(h,t,e),!o?.useAdditionalDayOfYearTokens&&fg(h)&&_c(h,t,e);let v=h[0],x=C_[v];if(x){let{incompatibleTokens:p}=x;if(Array.isArray(p)){let y=c.find(w=>p.includes(w.token)||w.token===v);if(y)throw new RangeError(`The format string mustn't contain \`${y.fullToken}\` and \`${h}\` at the same time`)}else if(x.incompatibleTokens==="*"&&c.length>0)throw new RangeError(`The format string mustn't contain \`${h}\` and any other token at the same time`);c.push({token:v,fullToken:h});let g=x.run(e,h,a.match,l);if(!g)return Z(r,NaN);f.push(g.setter),e=g.rest}else{if(v.match(pG))throw new RangeError("Format string contains an unescaped latin alphabet character `"+v+"`");if(h==="''"?h="'":v==="'"&&(h=mG(h)),e.indexOf(h)===0)e=e.slice(h.length);else return Z(r,NaN)}}if(e.length>0&&dG.test(e))return Z(r,NaN);let d=f.map(h=>h.priority).sort((h,v)=>v-h).filter((h,v,x)=>x.indexOf(h)===v).map(h=>f.filter(v=>v.priority===h).sort((v,x)=>x.subPriority-v.subPriority)).map(h=>h[0]),m=K(r);if(isNaN(m.getTime()))return Z(r,NaN);let I={};for(let h of d){if(!h.validate(m,l))return Z(r,NaN);let v=h.set(m,I,l);Array.isArray(v)?(m=v[0],Object.assign(I,v[1])):m=v}return Z(r,m)}function mG(e){return e.match(uG)[1].replace(cG,"'")}var xG=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],hG=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"];function ve(){return ve=Object.assign?Object.assign.bind():function(e){for(var t=1;t"),j.default.createElement(St,ve({},n({calendars:o,offset:12}),Xg,a),">>"))},Nc=.125,yG=function(t){var r=t.dateObj,o=t.propsConfigs,n=t.isInRange,a=t.disabledDates,i=t.renderProps,s=t.onMouseEnter,l=r.date,f=r.selected,u=r.selectable,c=r.today,d=i.getDateProps,m=o?.dayOfMonthBtnProps||{},I=m.defaultBtnProps,h=m.isInRangeBtnProps,v=m.selectedBtnProps,x=m.todayBtnProps,p=!u||a?.has(l.getTime()),g=(0,j.useMemo)(function(){var y;return{defaultBtnProps:ve({size:"sm",variant:"ghost"},I,{_after:ve({content:"''",position:"absolute",top:"-"+Nc+"rem",left:"-"+Nc+"rem",bottom:"-"+Nc+"rem",right:"-"+Nc+"rem",borderWidth:Nc+"rem",borderColor:"transparent"},I?._after),_hover:ve({bg:"purple.400"},I?._hover,{_disabled:ve({bg:"gray.100"},I==null||(y=I._hover)==null?void 0:y._disabled)})}),isInRangeBtnProps:ve({background:"purple.200"},h),selectedBtnProps:ve({background:"purple.200"},v),todayBtnProps:ve({borderColor:"blue.400"},x)}},[I,h,v,x]);return j.default.createElement(St,ve({},d({dateObj:r,disabled:p,onMouseEnter:s}),{isDisabled:p},g.defaultBtnProps,n&&!p&&g.isInRangeBtnProps,f&&g.selectedBtnProps,c&&g.todayBtnProps),l.getDate())},bG=function(t){var r,o=t.dayzedHookProps,n=t.configs,a=t.propsConfigs,i=t.disabledDates,s=t.onMouseEnterHighlight,l=t.isInRange,f=qw(o),u=f.calendars,c=f.getBackProps,d=f.getForwardProps,m=(0,j.useMemo)(function(){var v=n.firstDayOfWeek,x=n.dayNames;return v&&v>0?n.dayNames.slice(v,x.length).concat(x.slice(0,v)):x},[n.firstDayOfWeek,n.dayNames]),I=(0,j.useCallback)(function(v){var x=document.activeElement,p=document.querySelectorAll("button");p.forEach(function(g,y){var w=y+v;g===x&&(w<=p.length-1&&w>=0?p[w].focus():p[0].focus())})},[]),h=new gG({left:function(){I(-1)},right:function(){I(1)},up:function(){I(-7)},down:function(){I(7)}});return u.length<=0?null:j.default.createElement(Da,ve({className:"datepicker-calendar",direction:["column","column","row"]},a==null||(r=a.calendarPanelProps)==null?void 0:r.wrapperProps,h.getEvents()),u.map(function(v,x){var p,g,y,w;return j.default.createElement(Oh,ve({key:x,height:"100%",borderWidth:"1px",padding:"0.5rem 0.75rem"},a==null||(p=a.calendarPanelProps)==null?void 0:p.contentProps),j.default.createElement(Bh,ve({},a==null||(g=a.calendarPanelProps)==null?void 0:g.headerProps),j.default.createElement(IG,{calendars:u,getBackProps:c,propsConfigs:a}),j.default.createElement(Ah,ve({size:"sm",minWidth:"5rem",textAlign:"center"},a?.dateHeadingProps),n.monthNames[v.month]," ",v.year),j.default.createElement(vG,{calendars:u,getForwardProps:d,propsConfigs:a})),j.default.createElement(Rh,ve({},a==null||(y=a.calendarPanelProps)==null?void 0:y.dividerProps)),j.default.createElement(Eh,ve({columns:7,spacing:1,textAlign:"center"},a==null||(w=a.calendarPanelProps)==null?void 0:w.bodyProps),m.map(function(P,b){return j.default.createElement(ql,ve({fontSize:"sm",fontWeight:"semibold",key:b},a?.weekdayLabelProps),P)}),v.weeks.map(function(P,b){return P.map(function(k,D){var T=v.month+"-"+v.year+"-"+b+"-"+D;if(!k)return j.default.createElement(ql,{key:T});var O=k.date;return j.default.createElement(yG,{key:T,dateObj:k,propsConfigs:a,renderProps:f,isInRange:l&&l(O),disabledDates:i,onMouseEnter:function(){s&&s(O)}})})})))}))},SG=function(){return j.default.createElement("svg",{viewBox:"0 0 14 14",width:"14px",height:"14px",focusable:"false"},j.default.createElement("path",{fill:"currentColor",d:"M10.8889,5.5 L3.11111,5.5 L3.11111,7.05556 L10.8889,7.05556 L10.8889,5.5 Z M12.4444,1.05556 L11.6667,1.05556 L11.6667,0 L10.1111,0 L10.1111,1.05556 L3.88889,1.05556 L3.88889,0 L2.33333,0 L2.33333,1.05556 L1.55556,1.05556 C0.692222,1.05556 0.00777777,1.75556 0.00777777,2.61111 L0,12.5 C0,13.3556 0.692222,14 1.55556,14 L12.4444,14 C13.3,14 14,13.3556 14,12.5 L14,2.61111 C14,1.75556 13.3,1.05556 12.4444,1.05556 Z M12.4444,12.5 L1.55556,12.5 L1.55556,3.94444 L12.4444,3.94444 L12.4444,12.5 Z M8.55556,8.61111 L3.11111,8.61111 L3.11111,10.1667 L8.55556,10.1667 L8.55556,8.61111 Z"}))},wG={dateFormat:"yyyy-MM-dd",monthNames:xG,dayNames:hG,firstDayOfWeek:0,monthsToDisplay:1},CG={defaultIsOpen:!1,closeOnSelect:!0,triggerVariant:"default"},k_=function(t){var r,o,n=ve({},CG,t),a=n.date,i=n.name,s=n.disabled,l=n.onDateChange,f=n.id,u=n.minDate,c=n.maxDate,d=n.configs,m=n.usePortal,I=n.portalRef,h=n.disabledDates,v=n.defaultIsOpen,x=n.triggerVariant,p=n.propsConfigs,g=n.closeOnSelect,y=n.children,w=(0,j.useState)(a),P=w[0],b=w[1],k=(0,j.useState)(0),D=k[0],T=k[1],O=mw({defaultIsOpen:v}),_=O.onOpen,$=O.onClose,le=O.isOpen,q=n.triggerVariant==="input"&&n.triggerIcon?n.triggerIcon:j.default.createElement(SG,null),W=ve({},wG,d),re=(0,j.useState)(a?cg(a,W.dateFormat):""),Ne=re[0],Ee=re[1],mt=function(){$(),b(a),T(0)},qt=function(ie){var it=ie.selectable,kt=ie.date;if(it&&kt instanceof Date&&!isNaN(kt.getTime())){l(kt),g&&$();return}},xt=function(ie){Ee(ie.target.value);var it=P_(ie.target.value,W.dateFormat,new Date);if(it instanceof Date&&!isNaN(it.getTime())){var kt=h?.has(Rc(it).getTime());kt||l(it)}},Gt=m?_o:j.default.Fragment;return(0,j.useEffect)(function(){a&&Ee(cg(a,W.dateFormat))},[a,W.dateFormat]),j.default.createElement(Uh,{id:f,placement:"bottom-start",variant:"responsive",isOpen:le,onOpen:_,onClose:mt,isLazy:!0},!y&&x==="default"?j.default.createElement(Bc,null,j.default.createElement(St,ve({type:"button",variant:"outline",lineHeight:1,paddingX:"1rem",disabled:s,fontSize:"sm"},p?.triggerBtnProps),a?cg(a,W.dateFormat):"")):null,!y&&x==="input"?j.default.createElement(Mh,{position:"relative",alignItems:"center"},j.default.createElement(Gh,null,j.default.createElement(ir,ve({id:f,onKeyPress:function(ie){ie.key===" "&&!le&&(ie.preventDefault(),_())},autoComplete:"off",width:"10rem",disabled:s,isDisabled:s,name:i,value:Ne,onChange:xt,paddingRight:"2.5rem"},p?.inputProps))),j.default.createElement(Bc,null,j.default.createElement(St,ve({position:"absolute",variant:"ghost",right:"0",size:"sm",marginRight:"5px",zIndex:1,type:"button",disabled:s,padding:"8px"},p?.triggerIconBtnProps),q))):null,y?y(a):null,j.default.createElement(Gt,ve({},m?{containerRef:I}:{}),j.default.createElement(Xh,ve({width:"100%"},p==null||(r=p.popoverCompProps)==null?void 0:r.popoverContentProps),j.default.createElement(Yh,ve({},p==null||(o=p.popoverCompProps)==null?void 0:o.popoverBodyProps),j.default.createElement(DM,null,j.default.createElement(bG,{dayzedHookProps:{showOutsideDays:!0,monthsToDisplay:W.monthsToDisplay,onDateSelected:qt,selected:a,date:P,minDate:u,maxDate:c,offset:D,onOffsetChanged:T,firstDayOfWeek:W.firstDayOfWeek},configs:W,propsConfigs:p,disabledDates:h}))))))};var T_=["Alabama","Alaska","Arizona","Arkansas","California","Colorado","Connecticut","Delaware","Florida","Georgia","Hawaii","Idaho","Illinois","Indiana","Iowa","Kansas","Kentucky","Louisiana","Maine","Maryland","Massachusetts","Michigan","Minnesota","Mississippi","Missouri","Montana","Nebraska","Nevada","New Hampshire","New Jersey","New Mexico","New York","North Carolina","North Dakota","Ohio","Oklahoma","Oregon","Pennsylvania","Rhode Island","South Carolina","South Dakota","Tennessee","Texas","Utah","Vermont","Virginia","Washington","West Virginia","Wisconsin","Wyoming"];var Y=C(L(),1),PG=({index:e="0",disabled:t=!1})=>{let{formData:r,setFormData:o}=(0,df.useContext)(Yo),n=l=>f=>{let u=[...r.properties];u[e][l]=f.target.value;let c={...r,properties:u};o(c)};function a(l){let f=[...r.properties];f[e].propertyPlacedInServiceDate=l;let u={...r,properties:f};o(u)}function i(){var l=document.createElement("input");l.type="file",l.onchange=f=>{var u=f.target.files[0];let c=f.target.files[0].name;var d=new FileReader;d.readAsDataURL(u),d.onload=function(){let m=[...r.properties];m[e].file=`${c}~${d.result}`;let I={...r,properties:m};o(I),l.remove()},d.onerror=function(m){console.log("Error: ",m),l.remove()}},l.click()}let s=(0,df.useRef)();return(0,df.useEffect)(()=>{if(console.log(s),!s.current)return;let l=s.current.querySelectorAll(".dateSelector > button")[0];console.log(l),l.disabled=t},[]),(0,Y.jsxs)("div",{children:[(0,Y.jsxs)(Rt,{style:{width:"100%"},children:[(0,Y.jsx)(Mt,{children:"Property Description"}),(0,Y.jsx)(Jh,{name:"propertyDescription",placeholder:"Property Description",onChange:n("propertyDescription"),value:r.properties[e].propertyDescription||"",disabled:t})]}),(0,Y.jsx)(tf,{index:e,property:"propertyType",label:"Property Type",options:UL,disabled:t}),(0,Y.jsx)(tf,{index:e,property:"residentialOrCommercial",label:"Residential or Commercial?",options:["Commercial","Residential"],disabled:t}),(0,Y.jsxs)(Rt,{style:{width:"30%",marginRight:"5%",display:"inline-block"},children:[(0,Y.jsx)(Mt,{children:"Property Placed-In-Service Date"}),(0,Y.jsx)("div",{ref:s,children:(0,Y.jsx)("div",{className:"dateSelector",children:(0,Y.jsx)(k_,{name:"Property-Placed-In-Service-Date",date:r.properties[e].propertyPlacedInServiceDate||new Date,onDateChange:a,disabled:t})})})]}),(0,Y.jsxs)(Rt,{isRequired:!0,style:{width:"30%",marginRight:"5%",display:"inline-block"},children:[(0,Y.jsx)(Mt,{children:(0,Y.jsx)(ef,{hasArrow:!0,label:"Cost basis would be your purchase price minus land value or the amount listed on your depreciation schedule for the property.",children:(0,Y.jsx)("span",{style:{borderBottom:"1px dotted #fff"},children:"Cost Basis"})})}),(0,Y.jsx)(ir,{type:"text",name:"costBasis",value:r.properties[e].costBasis||"",onChange:n("costBasis"),placeholder:"9999",disabled:t})]}),(0,Y.jsxs)(Rt,{style:{width:"30%",display:"inline-block"},children:[(0,Y.jsx)(Mt,{children:(0,Y.jsx)(ef,{hasArrow:!0,label:"Improvements is the work done on the property after purchase, the amount that is not included on the depreciation schedule.",children:(0,Y.jsx)("span",{style:{borderBottom:"1px dotted #fff"},children:"Total extra improvements to study"})})}),(0,Y.jsx)(ir,{type:"text",name:"totalExtra",value:r.properties[e].totalExtra||"",onChange:n("totalExtra"),placeholder:"9999",disabled:t})]}),(0,Y.jsxs)(Rt,{isRequired:!0,children:[(0,Y.jsx)(Mt,{children:"Property Street Address"}),(0,Y.jsx)(ir,{type:"text",name:"streetAddress",value:r.properties[e].streetAddress||"",onChange:n("streetAddress"),placeholder:"Street Address",disabled:t})]}),(0,Y.jsxs)(Rt,{isRequired:!0,style:{width:"30%",marginRight:"5%",display:"inline-block"},children:[(0,Y.jsx)(Mt,{children:"Property City"}),(0,Y.jsx)(ir,{type:"text",name:"city",value:r.properties[e].city||"",onChange:n("city"),placeholder:"City",disabled:t})]}),(0,Y.jsx)(tf,{index:e,property:"state",label:"Property State",options:T_,style:{width:"30%",marginRight:"5%",display:"inline-block"},disabled:t}),(0,Y.jsxs)(Rt,{isRequired:!0,style:{width:"30%",display:"inline-block"},children:[(0,Y.jsx)(Mt,{children:"Property Zip Code"}),(0,Y.jsx)(ir,{type:"text",name:"zip",value:r.properties[e].zip||"",onChange:n("zip"),placeholder:"Zip Code",disabled:t})]}),(0,Y.jsxs)(Rt,{children:[(0,Y.jsx)(Mt,{children:(0,Y.jsx)(ef,{hasArrow:!0,label:"Depreciation schedules, appraisals, any additional building documentation.",children:(0,Y.jsx)("span",{style:{borderBottom:"1px dotted #fff"},children:"Upload File"})})}),(0,Y.jsx)(St,{onClick:i,isDisabled:t,children:"Upload File"}),r.properties[e].file&&(0,Y.jsx)("p",{children:"File Uploaded"})]})]})},D_=PG;var zc=C(F(),1);var F_={outline:{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"},filled:{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"currentColor",stroke:"none"}};var Kg=(e,t,r,o)=>{let n=(0,zc.forwardRef)(({color:a="currentColor",size:i=24,stroke:s=2,className:l,children:f,...u},c)=>(0,zc.createElement)("svg",{ref:c,...F_[e],width:i,height:i,className:["tabler-icon",`tabler-icon-${t}`,l].join(" "),...e==="filled"?{fill:a}:{strokeWidth:s,stroke:a},...u},[...o.map(([d,m])=>(0,zc.createElement)(d,m)),...Array.isArray(f)?f:[f]]));return n.displayName=`${r}`,n};var Yw=Kg("outline","table-minus","IconTableMinus",[["path",{d:"M12.5 21h-7.5a2 2 0 0 1 -2 -2v-14a2 2 0 0 1 2 -2h14a2 2 0 0 1 2 2v10",key:"svg-0"}],["path",{d:"M3 10h18",key:"svg-1"}],["path",{d:"M10 3v18",key:"svg-2"}],["path",{d:"M16 19h6",key:"svg-3"}]]);var Xw=Kg("outline","table-plus","IconTablePlus",[["path",{d:"M12.5 21h-7.5a2 2 0 0 1 -2 -2v-14a2 2 0 0 1 2 -2h14a2 2 0 0 1 2 2v7.5",key:"svg-0"}],["path",{d:"M3 10h18",key:"svg-1"}],["path",{d:"M10 3v18",key:"svg-2"}],["path",{d:"M16 19h6",key:"svg-3"}],["path",{d:"M19 16v6",key:"svg-4"}]]);var E_=["No Rep","Waterloo","Cawley","Blakeman","Wallace","VanderSande","Tatro","Monty","Melvin","Hakimi","Haney","Martin"];var be=C(L(),1),kG=({nextPage:e=()=>{},submitting:t=!1,errors:r=[""]})=>{let{formData:o,setFormData:n}=(0,O_.useContext)(Yo),a=[];for(let l in o.properties)a.push((0,be.jsxs)("div",{children:[(0,be.jsx)(D_,{index:l,disabled:t}),Number(l)!=o.properties.length-1&&(0,be.jsx)("hr",{style:{marginTop:"15px",marginBottom:"10px"}})]},l));function i(){let l=[...o.properties,{}],f={...o,properties:l};n(f)}function s(){if(o.properties.length>1&&window.confirm("Are you sure you want to remove this property?")){let l=o.properties.slice(0,-1),f={...o,properties:l};n(f)}}return(0,be.jsx)(be.Fragment,{children:(0,be.jsxs)("div",{children:[(0,be.jsxs)("div",{children:[(0,be.jsx)(tf,{index:!1,property:"salesRep",label:"Have you worked with one of our sales associates before?",options:E_,disabled:t}),(0,be.jsx)("hr",{style:{marginTop:"15px",marginBottom:"10px"}})]}),(0,be.jsxs)("div",{children:[a,(0,be.jsxs)("div",{children:[(0,be.jsx)("div",{style:{height:"10px"}}),(0,be.jsx)("p",{children:"Add Additional Properties:"}),(0,be.jsx)("div",{style:{height:"3px"}}),(0,be.jsxs)("div",{children:[(0,be.jsx)(St,{onClick:s,style:{margin:0,padding:0,height:"40px",width:"40px",marginRight:"10px"},isDisabled:o.properties.length==1||t,children:(0,be.jsx)(Yw,{stroke:2})}),(0,be.jsx)(St,{onClick:i,style:{margin:0,padding:0,height:"40px",width:"40px"},isDisabled:t,children:(0,be.jsx)(Xw,{stroke:2})})]}),r.length>0&&(0,be.jsxs)(be.Fragment,{children:[(0,be.jsx)("div",{style:{height:"15px"}}),r.map((l,f)=>(0,be.jsx)("p",{style:{color:"red"},children:l},f))]}),(0,be.jsx)("div",{style:{height:"15px"}}),(0,be.jsx)(St,{colorScheme:"orange",onClick:e,isDisabled:t,children:"Submit"})]})]})]})})},B_=kG;var R_=C(A_(),1),Pt=C(L(),1);var TG=()=>{let[e,t]=(0,Vc.useState)({properties:[{}]}),[r,o]=(0,Vc.useState)(!1),[n,a]=(0,Vc.useState)([]),[i,s]=(0,Vc.useState)(1);async function l(){if(e.email=e.email?.trim()||"",!e.email){a(["Must enter a valid email"]);return}if(!/^\S\S+@\S\S+\.\S\S+$/.test(e.email)||!e.email){a(["Must enter a valid email"]);return}if(!e.firstname){a(["First name is required"]);return}if(!e.lastname){a(["Last name is required"]);return}a([]),o(!0);try{let c=await fetch(Vw.formSubmissionURL,{method:"POST",headers:{Accept:"application/json","Content-Type":"application/json"},body:JSON.stringify({fields:[{objectTypeId:"0-1",name:"email",value:e.email},{objectTypeId:"0-1",name:"firstname",value:e.firstname},{objectTypeId:"0-1",name:"lastname",value:e.lastname}]})});c.status>=200&&c.status<=299?(o(!1),a([]),s(2)):(a([`Error ${c.status}`]),o(!1))}catch(c){console.log("Caught Error"),a([`${c}`]),console.log(c),o(!1)}}let f=[["propertyType","Property Type"],["residentialOrCommercial","Residential Or Commercial"],["propertyPlacedInServiceDate","Property Placed In Service Date"],["costBasis","Cost Basis"],["streetAddress","Street Address"],["city","City"],["state","State"],["zip","Zip"]];async function u(){let c=[];for(let v in e.properties){let x=e.properties[v];for(let p of f)x[p[0]]||c.push(`${p[1]} is required for your ${(0,R_.toWordsOrdinal)(Number(v)+1)} property`)}if(c.length>0){a(c),console.log(c);return}let d=HL(e),m={email:d.email,firstname:d.firstname,lastname:d.lastname,payload:d,salesRep:d.salesRep},h=await(await fetch(Vw.webhookURL,{method:"POST",headers:{Accept:"application/json","Content-Type":"application/json"},body:JSON.stringify(m)})).text();console.log("Response: "),console.log(h),s(3)}return(0,Pt.jsx)(Pt.Fragment,{children:(0,Pt.jsx)(TS,{children:(0,Pt.jsxs)(Yo.Provider,{value:{formData:e,setFormData:t},children:[(0,Pt.jsxs)("div",{className:"costSegForm",children:[i==1&&(0,Pt.jsx)(Pt.Fragment,{children:(0,Pt.jsx)(WL,{submitting:r,nextPage:l,errors:n})}),i==2&&(0,Pt.jsx)(Pt.Fragment,{children:(0,Pt.jsx)(B_,{submitting:r,nextPage:u,errors:n})}),i==3&&(0,Pt.jsx)(Pt.Fragment,{children:(0,Pt.jsx)("p",{children:"Thanks for submitting the form."})})]}),(0,Pt.jsx)("div",{style:{height:"25px"}})]})})})},M_=TG;var N_=C(__(),1),z_=C(L(),1);function DG(){let e=[...document.querySelectorAll(".CostSegFormEmbed:not(.CostSegFormEmbedFinished)")];for(let t of e)(0,N_.createRoot)(t).render((0,z_.jsx)(M_,{})),t.classList.add("CostSegFormEmbedFinished")}document.addEventListener("readystatechange",()=>{document.readyState=="interactive"&&DG()});})(); /*! Bundled license information: react/cjs/react.production.min.js: (** * @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. *) react-is/cjs/react-is.production.min.js: (** @license React v16.13.1 * react-is.production.min.js * * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. *) react/cjs/react-jsx-runtime.production.min.js: (** * @license React * react-jsx-runtime.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. *) scheduler/cjs/scheduler.production.min.js: (** * @license React * scheduler.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. *) react-dom/cjs/react-dom.production.min.js: (** * @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. *) number-to-words/numberToWords.min.js: (*! * Number-To-Words util * @version v1.2.4 * @link https://github.com/marlun78/number-to-words * @author Martin Eneqvist (https://github.com/marlun78) * @contributors Aleksey Pilyugin (https://github.com/pilyugin),Jeremiah Hall (https://github.com/jeremiahrhall),Adriano Melo (https://github.com/adrianomelo),dmrzn (https://github.com/dmrzn) * @license MIT *) @tabler/icons-react/dist/esm/defaultAttributes.mjs: (** * @license @tabler/icons-react v3.3.0 - MIT * * This source code is licensed under the MIT license. * See the LICENSE file in the root directory of this source tree. *) @tabler/icons-react/dist/esm/createReactComponent.mjs: (** * @license @tabler/icons-react v3.3.0 - MIT * * This source code is licensed under the MIT license. * See the LICENSE file in the root directory of this source tree. *) @tabler/icons-react/dist/esm/icons/IconTableMinus.mjs: (** * @license @tabler/icons-react v3.3.0 - MIT * * This source code is licensed under the MIT license. * See the LICENSE file in the root directory of this source tree. *) @tabler/icons-react/dist/esm/icons/IconTablePlus.mjs: (** * @license @tabler/icons-react v3.3.0 - MIT * * This source code is licensed under the MIT license. * See the LICENSE file in the root directory of this source tree. *) @tabler/icons-react/dist/esm/tabler-icons-react.mjs: (** * @license @tabler/icons-react v3.3.0 - MIT * * This source code is licensed under the MIT license. * See the LICENSE file in the root directory of this source tree. *) */