diff --git a/frontend/public/dyslexicon/assets/index-648e220d.js b/frontend/public/dyslexicon/assets/index-648e220d.js new file mode 100644 index 0000000..e1fce42 --- /dev/null +++ b/frontend/public/dyslexicon/assets/index-648e220d.js @@ -0,0 +1,387 @@ +function H2(e,t){for(var r=0;rn[o]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))n(o);new MutationObserver(o=>{for(const i of o)if(i.type==="childList")for(const a of i.addedNodes)a.tagName==="LINK"&&a.rel==="modulepreload"&&n(a)}).observe(document,{childList:!0,subtree:!0});function r(o){const i={};return o.integrity&&(i.integrity=o.integrity),o.referrerPolicy&&(i.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?i.credentials="include":o.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function n(o){if(o.ep)return;o.ep=!0;const i=r(o);fetch(o.href,i)}})();var nu=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Jp(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var gb={exports:{}},od={},vb={exports:{}},he={};/** + * @license React + * react.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var El=Symbol.for("react.element"),G2=Symbol.for("react.portal"),q2=Symbol.for("react.fragment"),K2=Symbol.for("react.strict_mode"),Y2=Symbol.for("react.profiler"),X2=Symbol.for("react.provider"),Q2=Symbol.for("react.context"),Z2=Symbol.for("react.forward_ref"),J2=Symbol.for("react.suspense"),eP=Symbol.for("react.memo"),tP=Symbol.for("react.lazy"),pv=Symbol.iterator;function rP(e){return e===null||typeof e!="object"?null:(e=pv&&e[pv]||e["@@iterator"],typeof e=="function"?e:null)}var yb={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},bb=Object.assign,xb={};function Oa(e,t,r){this.props=e,this.context=t,this.refs=xb,this.updater=r||yb}Oa.prototype.isReactComponent={};Oa.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")};Oa.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function Sb(){}Sb.prototype=Oa.prototype;function em(e,t,r){this.props=e,this.context=t,this.refs=xb,this.updater=r||yb}var tm=em.prototype=new Sb;tm.constructor=em;bb(tm,Oa.prototype);tm.isPureReactComponent=!0;var mv=Array.isArray,wb=Object.prototype.hasOwnProperty,rm={current:null},kb={key:!0,ref:!0,__self:!0,__source:!0};function Cb(e,t,r){var n,o={},i=null,a=null;if(t!=null)for(n in t.ref!==void 0&&(a=t.ref),t.key!==void 0&&(i=""+t.key),t)wb.call(t,n)&&!kb.hasOwnProperty(n)&&(o[n]=t[n]);var s=arguments.length-2;if(s===1)o.children=r;else if(1>>1,le=F[H];if(0>>1;Ho(de,G))geo(tt,de)?(F[H]=tt,F[ge]=G,H=ge):(F[H]=de,F[re]=G,H=re);else if(geo(tt,G))F[H]=tt,F[ge]=G,H=ge;else break e}}return I}function o(F,I){var G=F.sortIndex-I.sortIndex;return G!==0?G:F.id-I.id}if(typeof performance=="object"&&typeof performance.now=="function"){var i=performance;e.unstable_now=function(){return i.now()}}else{var a=Date,s=a.now();e.unstable_now=function(){return a.now()-s}}var l=[],u=[],c=1,d=null,f=3,p=!1,g=!1,y=!1,w=typeof setTimeout=="function"?setTimeout:null,v=typeof clearTimeout=="function"?clearTimeout:null,m=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function x(F){for(var I=r(u);I!==null;){if(I.callback===null)n(u);else if(I.startTime<=F)n(u),I.sortIndex=I.expirationTime,t(l,I);else break;I=r(u)}}function b(F){if(y=!1,x(F),!g)if(r(l)!==null)g=!0,J(P);else{var I=r(u);I!==null&&oe(b,I.startTime-F)}}function P(F,I){g=!1,y&&(y=!1,v(R),R=-1),p=!0;var G=f;try{for(x(I),d=r(l);d!==null&&(!(d.expirationTime>I)||F&&!L());){var H=d.callback;if(typeof H=="function"){d.callback=null,f=d.priorityLevel;var le=H(d.expirationTime<=I);I=e.unstable_now(),typeof le=="function"?d.callback=le:d===r(l)&&n(l),x(I)}else n(l);d=r(l)}if(d!==null)var ie=!0;else{var re=r(u);re!==null&&oe(b,re.startTime-I),ie=!1}return ie}finally{d=null,f=G,p=!1}}var E=!1,C=null,R=-1,M=5,z=-1;function L(){return!(e.unstable_now()-zF||125H?(F.sortIndex=G,t(u,F),r(l)===null&&F===r(u)&&(y?(v(R),R=-1):y=!0,oe(b,G-H))):(F.sortIndex=le,t(l,F),g||p||(g=!0,J(P))),F},e.unstable_shouldYield=L,e.unstable_wrapCallback=function(F){var I=f;return function(){var G=f;f=I;try{return F.apply(this,arguments)}finally{f=G}}}})(Eb);Tb.exports=Eb;var hP=Tb.exports;/** + * @license React + * react-dom.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var Rb=S,vr=hP;function O(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"),Ch=Object.prototype.hasOwnProperty,pP=/^[: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]*$/,vv={},yv={};function mP(e){return Ch.call(yv,e)?!0:Ch.call(vv,e)?!1:pP.test(e)?yv[e]=!0:(vv[e]=!0,!1)}function gP(e,t,r,n){if(r!==null&&r.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return n?!1:r!==null?!r.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function vP(e,t,r,n){if(t===null||typeof t>"u"||gP(e,t,r,n))return!0;if(n)return!1;if(r!==null)switch(r.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function Yt(e,t,r,n,o,i,a){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=n,this.attributeNamespace=o,this.mustUseProperty=r,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=a}var $t={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){$t[e]=new Yt(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];$t[t]=new Yt(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){$t[e]=new Yt(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){$t[e]=new Yt(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){$t[e]=new Yt(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){$t[e]=new Yt(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){$t[e]=new Yt(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){$t[e]=new Yt(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){$t[e]=new Yt(e,5,!1,e.toLowerCase(),null,!1,!1)});var om=/[\-:]([a-z])/g;function im(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(om,im);$t[t]=new Yt(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(om,im);$t[t]=new Yt(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(om,im);$t[t]=new Yt(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){$t[e]=new Yt(e,1,!1,e.toLowerCase(),null,!1,!1)});$t.xlinkHref=new Yt("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){$t[e]=new Yt(e,1,!1,e.toLowerCase(),null,!0,!0)});function am(e,t,r,n){var o=$t.hasOwnProperty(t)?$t[t]:null;(o!==null?o.type!==0:n||!(2s||o[a]!==i[s]){var l=` +`+o[a].replace(" at new "," at ");return e.displayName&&l.includes("")&&(l=l.replace("",e.displayName)),l}while(1<=a&&0<=s);break}}}finally{hf=!1,Error.prepareStackTrace=r}return(e=e?e.displayName||e.name:"")?vs(e):""}function yP(e){switch(e.tag){case 5:return vs(e.type);case 16:return vs("Lazy");case 13:return vs("Suspense");case 19:return vs("SuspenseList");case 0:case 2:case 15:return e=pf(e.type,!1),e;case 11:return e=pf(e.type.render,!1),e;case 1:return e=pf(e.type,!0),e;default:return""}}function Eh(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 Mi:return"Fragment";case zi:return"Portal";case Ph:return"Profiler";case sm:return"StrictMode";case _h:return"Suspense";case Th:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case $b:return(e.displayName||"Context")+".Consumer";case Ab:return(e._context.displayName||"Context")+".Provider";case lm:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case um:return t=e.displayName||null,t!==null?t:Eh(e.type)||"Memo";case fo:t=e._payload,e=e._init;try{return Eh(e(t))}catch{}}return null}function bP(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 Eh(t);case 8:return t===sm?"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 $o(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Mb(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function xP(e){var t=Mb(e)?"checked":"value",r=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),n=""+e[t];if(!e.hasOwnProperty(t)&&typeof r<"u"&&typeof r.get=="function"&&typeof r.set=="function"){var o=r.get,i=r.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(a){n=""+a,i.call(this,a)}}),Object.defineProperty(e,t,{enumerable:r.enumerable}),{getValue:function(){return n},setValue:function(a){n=""+a},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function au(e){e._valueTracker||(e._valueTracker=xP(e))}function Db(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var r=t.getValue(),n="";return e&&(n=Mb(e)?e.checked?"true":"false":e.value),e=n,e!==r?(t.setValue(e),!0):!1}function fc(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 Rh(e,t){var r=t.checked;return et({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:r??e._wrapperState.initialChecked})}function xv(e,t){var r=t.defaultValue==null?"":t.defaultValue,n=t.checked!=null?t.checked:t.defaultChecked;r=$o(t.value!=null?t.value:r),e._wrapperState={initialChecked:n,initialValue:r,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function Lb(e,t){t=t.checked,t!=null&&am(e,"checked",t,!1)}function jh(e,t){Lb(e,t);var r=$o(t.value),n=t.type;if(r!=null)n==="number"?(r===0&&e.value===""||e.value!=r)&&(e.value=""+r):e.value!==""+r&&(e.value=""+r);else if(n==="submit"||n==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?Ah(e,t.type,r):t.hasOwnProperty("defaultValue")&&Ah(e,t.type,$o(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Sv(e,t,r){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var n=t.type;if(!(n!=="submit"&&n!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,r||t===e.value||(e.value=t),e.defaultValue=t}r=e.name,r!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,r!==""&&(e.name=r)}function Ah(e,t,r){(t!=="number"||fc(e.ownerDocument)!==e)&&(r==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+r&&(e.defaultValue=""+r))}var ys=Array.isArray;function na(e,t,r,n){if(e=e.options,t){t={};for(var o=0;o"+t.valueOf().toString()+"",t=su.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Zs(e,t){if(t){var r=e.firstChild;if(r&&r===e.lastChild&&r.nodeType===3){r.nodeValue=t;return}}e.textContent=t}var Es={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},SP=["Webkit","ms","Moz","O"];Object.keys(Es).forEach(function(e){SP.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Es[t]=Es[e]})});function Bb(e,t,r){return t==null||typeof t=="boolean"||t===""?"":r||typeof t!="number"||t===0||Es.hasOwnProperty(e)&&Es[e]?(""+t).trim():t+"px"}function Nb(e,t){e=e.style;for(var r in t)if(t.hasOwnProperty(r)){var n=r.indexOf("--")===0,o=Bb(r,t[r],n);r==="float"&&(r="cssFloat"),n?e.setProperty(r,o):e[r]=o}}var wP=et({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 Mh(e,t){if(t){if(wP[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(O(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(O(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(O(61))}if(t.style!=null&&typeof t.style!="object")throw Error(O(62))}}function Dh(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 Lh=null;function cm(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Oh=null,oa=null,ia=null;function Cv(e){if(e=Al(e)){if(typeof Oh!="function")throw Error(O(280));var t=e.stateNode;t&&(t=ud(t),Oh(e.stateNode,e.type,t))}}function Vb(e){oa?ia?ia.push(e):ia=[e]:oa=e}function Wb(){if(oa){var e=oa,t=ia;if(ia=oa=null,Cv(e),t)for(e=0;e>>=0,e===0?32:31-(zP(e)/MP|0)|0}var lu=64,uu=4194304;function bs(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 gc(e,t){var r=e.pendingLanes;if(r===0)return 0;var n=0,o=e.suspendedLanes,i=e.pingedLanes,a=r&268435455;if(a!==0){var s=a&~o;s!==0?n=bs(s):(i&=a,i!==0&&(n=bs(i)))}else a=r&~o,a!==0?n=bs(a):i!==0&&(n=bs(i));if(n===0)return 0;if(t!==0&&t!==n&&!(t&o)&&(o=n&-n,i=t&-t,o>=i||o===16&&(i&4194240)!==0))return t;if(n&4&&(n|=r&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=n;0r;r++)t.push(e);return t}function Rl(e,t,r){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-rn(t),e[t]=r}function FP(e,t){var r=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var n=e.eventTimes;for(e=e.expirationTimes;0=js),zv=String.fromCharCode(32),Mv=!1;function ux(e,t){switch(e){case"keyup":return f5.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function cx(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Di=!1;function p5(e,t){switch(e){case"compositionend":return cx(t);case"keypress":return t.which!==32?null:(Mv=!0,zv);case"textInput":return e=t.data,e===zv&&Mv?null:e;default:return null}}function m5(e,t){if(Di)return e==="compositionend"||!ym&&ux(e,t)?(e=sx(),Iu=mm=bo=null,Di=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=Fv(r)}}function px(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?px(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function mx(){for(var e=window,t=fc();t instanceof e.HTMLIFrameElement;){try{var r=typeof t.contentWindow.location.href=="string"}catch{r=!1}if(r)e=t.contentWindow;else break;t=fc(e.document)}return t}function bm(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 C5(e){var t=mx(),r=e.focusedElem,n=e.selectionRange;if(t!==r&&r&&r.ownerDocument&&px(r.ownerDocument.documentElement,r)){if(n!==null&&bm(r)){if(t=n.start,e=n.end,e===void 0&&(e=t),"selectionStart"in r)r.selectionStart=t,r.selectionEnd=Math.min(e,r.value.length);else if(e=(t=r.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var o=r.textContent.length,i=Math.min(n.start,o);n=n.end===void 0?i:Math.min(n.end,o),!e.extend&&i>n&&(o=n,n=i,i=o),o=Iv(r,i);var a=Iv(r,n);o&&a&&(e.rangeCount!==1||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==a.node||e.focusOffset!==a.offset)&&(t=t.createRange(),t.setStart(o.node,o.offset),e.removeAllRanges(),i>n?(e.addRange(t),e.extend(a.node,a.offset)):(t.setEnd(a.node,a.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,Li=null,Wh=null,$s=null,Uh=!1;function Bv(e,t,r){var n=r.window===r?r.document:r.nodeType===9?r:r.ownerDocument;Uh||Li==null||Li!==fc(n)||(n=Li,"selectionStart"in n&&bm(n)?n={start:n.selectionStart,end:n.selectionEnd}:(n=(n.ownerDocument&&n.ownerDocument.defaultView||window).getSelection(),n={anchorNode:n.anchorNode,anchorOffset:n.anchorOffset,focusNode:n.focusNode,focusOffset:n.focusOffset}),$s&&ol($s,n)||($s=n,n=bc(Wh,"onSelect"),0Ii||(e.current=Xh[Ii],Xh[Ii]=null,Ii--)}function Le(e,t){Ii++,Xh[Ii]=e.current,e.current=t}var zo={},Ft=Oo(zo),Jt=Oo(!1),fi=zo;function ya(e,t){var r=e.type.contextTypes;if(!r)return zo;var n=e.stateNode;if(n&&n.__reactInternalMemoizedUnmaskedChildContext===t)return n.__reactInternalMemoizedMaskedChildContext;var o={},i;for(i in r)o[i]=t[i];return n&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function er(e){return e=e.childContextTypes,e!=null}function Sc(){He(Jt),He(Ft)}function qv(e,t,r){if(Ft.current!==zo)throw Error(O(168));Le(Ft,t),Le(Jt,r)}function Cx(e,t,r){var n=e.stateNode;if(t=t.childContextTypes,typeof n.getChildContext!="function")return r;n=n.getChildContext();for(var o in n)if(!(o in t))throw Error(O(108,bP(e)||"Unknown",o));return et({},r,n)}function wc(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||zo,fi=Ft.current,Le(Ft,e),Le(Jt,Jt.current),!0}function Kv(e,t,r){var n=e.stateNode;if(!n)throw Error(O(169));r?(e=Cx(e,t,fi),n.__reactInternalMemoizedMergedChildContext=e,He(Jt),He(Ft),Le(Ft,e)):He(Jt),Le(Jt,r)}var Mn=null,cd=!1,Ef=!1;function Px(e){Mn===null?Mn=[e]:Mn.push(e)}function L5(e){cd=!0,Px(e)}function Fo(){if(!Ef&&Mn!==null){Ef=!0;var e=0,t=je;try{var r=Mn;for(je=1;e>=a,o-=a,On=1<<32-rn(t)+o|r<R?(M=C,C=null):M=C.sibling;var z=f(v,C,x[R],b);if(z===null){C===null&&(C=M);break}e&&C&&z.alternate===null&&t(v,C),m=i(z,m,R),E===null?P=z:E.sibling=z,E=z,C=M}if(R===x.length)return r(v,C),Ye&&qo(v,R),P;if(C===null){for(;RR?(M=C,C=null):M=C.sibling;var L=f(v,C,z.value,b);if(L===null){C===null&&(C=M);break}e&&C&&L.alternate===null&&t(v,C),m=i(L,m,R),E===null?P=L:E.sibling=L,E=L,C=M}if(z.done)return r(v,C),Ye&&qo(v,R),P;if(C===null){for(;!z.done;R++,z=x.next())z=d(v,z.value,b),z!==null&&(m=i(z,m,R),E===null?P=z:E.sibling=z,E=z);return Ye&&qo(v,R),P}for(C=n(v,C);!z.done;R++,z=x.next())z=p(C,v,R,z.value,b),z!==null&&(e&&z.alternate!==null&&C.delete(z.key===null?R:z.key),m=i(z,m,R),E===null?P=z:E.sibling=z,E=z);return e&&C.forEach(function(U){return t(v,U)}),Ye&&qo(v,R),P}function w(v,m,x,b){if(typeof x=="object"&&x!==null&&x.type===Mi&&x.key===null&&(x=x.props.children),typeof x=="object"&&x!==null){switch(x.$$typeof){case iu:e:{for(var P=x.key,E=m;E!==null;){if(E.key===P){if(P=x.type,P===Mi){if(E.tag===7){r(v,E.sibling),m=o(E,x.props.children),m.return=v,v=m;break e}}else if(E.elementType===P||typeof P=="object"&&P!==null&&P.$$typeof===fo&&t0(P)===E.type){r(v,E.sibling),m=o(E,x.props),m.ref=ns(v,E,x),m.return=v,v=m;break e}r(v,E);break}else t(v,E);E=E.sibling}x.type===Mi?(m=si(x.props.children,v.mode,b,x.key),m.return=v,v=m):(b=qu(x.type,x.key,x.props,null,v.mode,b),b.ref=ns(v,m,x),b.return=v,v=b)}return a(v);case zi:e:{for(E=x.key;m!==null;){if(m.key===E)if(m.tag===4&&m.stateNode.containerInfo===x.containerInfo&&m.stateNode.implementation===x.implementation){r(v,m.sibling),m=o(m,x.children||[]),m.return=v,v=m;break e}else{r(v,m);break}else t(v,m);m=m.sibling}m=Lf(x,v.mode,b),m.return=v,v=m}return a(v);case fo:return E=x._init,w(v,m,E(x._payload),b)}if(ys(x))return g(v,m,x,b);if(Za(x))return y(v,m,x,b);gu(v,x)}return typeof x=="string"&&x!==""||typeof x=="number"?(x=""+x,m!==null&&m.tag===6?(r(v,m.sibling),m=o(m,x),m.return=v,v=m):(r(v,m),m=Df(x,v.mode,b),m.return=v,v=m),a(v)):r(v,m)}return w}var xa=zx(!0),Mx=zx(!1),$l={},xn=Oo($l),ll=Oo($l),ul=Oo($l);function ti(e){if(e===$l)throw Error(O(174));return e}function Em(e,t){switch(Le(ul,t),Le(ll,e),Le(xn,$l),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:zh(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=zh(t,e)}He(xn),Le(xn,t)}function Sa(){He(xn),He(ll),He(ul)}function Dx(e){ti(ul.current);var t=ti(xn.current),r=zh(t,e.type);t!==r&&(Le(ll,e),Le(xn,r))}function Rm(e){ll.current===e&&(He(xn),He(ll))}var Qe=Oo(0);function Ec(e){for(var t=e;t!==null;){if(t.tag===13){var r=t.memoizedState;if(r!==null&&(r=r.dehydrated,r===null||r.data==="$?"||r.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var Rf=[];function jm(){for(var e=0;er?r:4,e(!0);var n=jf.transition;jf.transition={};try{e(!1),t()}finally{je=r,jf.transition=n}}function Qx(){return Ir().memoizedState}function B5(e,t,r){var n=To(e);if(r={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null},Zx(e))Jx(t,r);else if(r=Rx(e,t,r,n),r!==null){var o=Gt();nn(r,e,n,o),eS(r,t,n)}}function N5(e,t,r){var n=To(e),o={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null};if(Zx(e))Jx(t,o);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var a=t.lastRenderedState,s=i(a,r);if(o.hasEagerState=!0,o.eagerState=s,on(s,a)){var l=t.interleaved;l===null?(o.next=o,_m(t)):(o.next=l.next,l.next=o),t.interleaved=o;return}}catch{}finally{}r=Rx(e,t,o,n),r!==null&&(o=Gt(),nn(r,e,n,o),eS(r,t,n))}}function Zx(e){var t=e.alternate;return e===Je||t!==null&&t===Je}function Jx(e,t){zs=Rc=!0;var r=e.pending;r===null?t.next=t:(t.next=r.next,r.next=t),e.pending=t}function eS(e,t,r){if(r&4194240){var n=t.lanes;n&=e.pendingLanes,r|=n,t.lanes=r,fm(e,r)}}var jc={readContext:Fr,useCallback:zt,useContext:zt,useEffect:zt,useImperativeHandle:zt,useInsertionEffect:zt,useLayoutEffect:zt,useMemo:zt,useReducer:zt,useRef:zt,useState:zt,useDebugValue:zt,useDeferredValue:zt,useTransition:zt,useMutableSource:zt,useSyncExternalStore:zt,useId:zt,unstable_isNewReconciler:!1},V5={readContext:Fr,useCallback:function(e,t){return hn().memoizedState=[e,t===void 0?null:t],e},useContext:Fr,useEffect:n0,useImperativeHandle:function(e,t,r){return r=r!=null?r.concat([e]):null,Wu(4194308,4,Gx.bind(null,t,e),r)},useLayoutEffect:function(e,t){return Wu(4194308,4,e,t)},useInsertionEffect:function(e,t){return Wu(4,2,e,t)},useMemo:function(e,t){var r=hn();return t=t===void 0?null:t,e=e(),r.memoizedState=[e,t],e},useReducer:function(e,t,r){var n=hn();return t=r!==void 0?r(t):t,n.memoizedState=n.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},n.queue=e,e=e.dispatch=B5.bind(null,Je,e),[n.memoizedState,e]},useRef:function(e){var t=hn();return e={current:e},t.memoizedState=e},useState:r0,useDebugValue:Dm,useDeferredValue:function(e){return hn().memoizedState=e},useTransition:function(){var e=r0(!1),t=e[0];return e=I5.bind(null,e[1]),hn().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,r){var n=Je,o=hn();if(Ye){if(r===void 0)throw Error(O(407));r=r()}else{if(r=t(),Pt===null)throw Error(O(349));pi&30||Fx(n,t,r)}o.memoizedState=r;var i={value:r,getSnapshot:t};return o.queue=i,n0(Bx.bind(null,n,i,e),[e]),n.flags|=2048,fl(9,Ix.bind(null,n,i,r,t),void 0,null),r},useId:function(){var e=hn(),t=Pt.identifierPrefix;if(Ye){var r=Fn,n=On;r=(n&~(1<<32-rn(n)-1)).toString(32)+r,t=":"+t+"R"+r,r=cl++,0<\/script>",e=e.removeChild(e.firstChild)):typeof n.is=="string"?e=a.createElement(r,{is:n.is}):(e=a.createElement(r),r==="select"&&(a=e,n.multiple?a.multiple=!0:n.size&&(a.size=n.size))):e=a.createElementNS(e,r),e[yn]=t,e[sl]=n,uS(e,t,!1,!1),t.stateNode=e;e:{switch(a=Dh(r,n),r){case"dialog":Ve("cancel",e),Ve("close",e),o=n;break;case"iframe":case"object":case"embed":Ve("load",e),o=n;break;case"video":case"audio":for(o=0;oka&&(t.flags|=128,n=!0,os(i,!1),t.lanes=4194304)}else{if(!n)if(e=Ec(a),e!==null){if(t.flags|=128,n=!0,r=e.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),os(i,!0),i.tail===null&&i.tailMode==="hidden"&&!a.alternate&&!Ye)return Mt(t),null}else 2*st()-i.renderingStartTime>ka&&r!==1073741824&&(t.flags|=128,n=!0,os(i,!1),t.lanes=4194304);i.isBackwards?(a.sibling=t.child,t.child=a):(r=i.last,r!==null?r.sibling=a:t.child=a,i.last=a)}return i.tail!==null?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=st(),t.sibling=null,r=Qe.current,Le(Qe,n?r&1|2:r&1),t):(Mt(t),null);case 22:case 23:return Nm(),n=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==n&&(t.flags|=8192),n&&t.mode&1?cr&1073741824&&(Mt(t),t.subtreeFlags&6&&(t.flags|=8192)):Mt(t),null;case 24:return null;case 25:return null}throw Error(O(156,t.tag))}function X5(e,t){switch(Sm(t),t.tag){case 1:return er(t.type)&&Sc(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Sa(),He(Jt),He(Ft),jm(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return Rm(t),null;case 13:if(He(Qe),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(O(340));ba()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return He(Qe),null;case 4:return Sa(),null;case 10:return Pm(t.type._context),null;case 22:case 23:return Nm(),null;case 24:return null;default:return null}}var yu=!1,Lt=!1,Q5=typeof WeakSet=="function"?WeakSet:Set,V=null;function Wi(e,t){var r=e.ref;if(r!==null)if(typeof r=="function")try{r(null)}catch(n){ot(e,t,n)}else r.current=null}function lp(e,t,r){try{r()}catch(n){ot(e,t,n)}}var f0=!1;function Z5(e,t){if(Hh=vc,e=mx(),bm(e)){if("selectionStart"in e)var r={start:e.selectionStart,end:e.selectionEnd};else e:{r=(r=e.ownerDocument)&&r.defaultView||window;var n=r.getSelection&&r.getSelection();if(n&&n.rangeCount!==0){r=n.anchorNode;var o=n.anchorOffset,i=n.focusNode;n=n.focusOffset;try{r.nodeType,i.nodeType}catch{r=null;break e}var a=0,s=-1,l=-1,u=0,c=0,d=e,f=null;t:for(;;){for(var p;d!==r||o!==0&&d.nodeType!==3||(s=a+o),d!==i||n!==0&&d.nodeType!==3||(l=a+n),d.nodeType===3&&(a+=d.nodeValue.length),(p=d.firstChild)!==null;)f=d,d=p;for(;;){if(d===e)break t;if(f===r&&++u===o&&(s=a),f===i&&++c===n&&(l=a),(p=d.nextSibling)!==null)break;d=f,f=d.parentNode}d=p}r=s===-1||l===-1?null:{start:s,end:l}}else r=null}r=r||{start:0,end:0}}else r=null;for(Gh={focusedElem:e,selectionRange:r},vc=!1,V=t;V!==null;)if(t=V,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,V=e;else for(;V!==null;){t=V;try{var g=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(g!==null){var y=g.memoizedProps,w=g.memoizedState,v=t.stateNode,m=v.getSnapshotBeforeUpdate(t.elementType===t.type?y:Kr(t.type,y),w);v.__reactInternalSnapshotBeforeUpdate=m}break;case 3:var x=t.stateNode.containerInfo;x.nodeType===1?x.textContent="":x.nodeType===9&&x.documentElement&&x.removeChild(x.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(O(163))}}catch(b){ot(t,t.return,b)}if(e=t.sibling,e!==null){e.return=t.return,V=e;break}V=t.return}return g=f0,f0=!1,g}function Ms(e,t,r){var n=t.updateQueue;if(n=n!==null?n.lastEffect:null,n!==null){var o=n=n.next;do{if((o.tag&e)===e){var i=o.destroy;o.destroy=void 0,i!==void 0&&lp(t,r,i)}o=o.next}while(o!==n)}}function hd(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var r=t=t.next;do{if((r.tag&e)===e){var n=r.create;r.destroy=n()}r=r.next}while(r!==t)}}function up(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 fS(e){var t=e.alternate;t!==null&&(e.alternate=null,fS(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[yn],delete t[sl],delete t[Yh],delete t[M5],delete t[D5])),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 hS(e){return e.tag===5||e.tag===3||e.tag===4}function h0(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||hS(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 cp(e,t,r){var n=e.tag;if(n===5||n===6)e=e.stateNode,t?r.nodeType===8?r.parentNode.insertBefore(e,t):r.insertBefore(e,t):(r.nodeType===8?(t=r.parentNode,t.insertBefore(e,r)):(t=r,t.appendChild(e)),r=r._reactRootContainer,r!=null||t.onclick!==null||(t.onclick=xc));else if(n!==4&&(e=e.child,e!==null))for(cp(e,t,r),e=e.sibling;e!==null;)cp(e,t,r),e=e.sibling}function dp(e,t,r){var n=e.tag;if(n===5||n===6)e=e.stateNode,t?r.insertBefore(e,t):r.appendChild(e);else if(n!==4&&(e=e.child,e!==null))for(dp(e,t,r),e=e.sibling;e!==null;)dp(e,t,r),e=e.sibling}var Et=null,Yr=!1;function ao(e,t,r){for(r=r.child;r!==null;)pS(e,t,r),r=r.sibling}function pS(e,t,r){if(bn&&typeof bn.onCommitFiberUnmount=="function")try{bn.onCommitFiberUnmount(id,r)}catch{}switch(r.tag){case 5:Lt||Wi(r,t);case 6:var n=Et,o=Yr;Et=null,ao(e,t,r),Et=n,Yr=o,Et!==null&&(Yr?(e=Et,r=r.stateNode,e.nodeType===8?e.parentNode.removeChild(r):e.removeChild(r)):Et.removeChild(r.stateNode));break;case 18:Et!==null&&(Yr?(e=Et,r=r.stateNode,e.nodeType===8?Tf(e.parentNode,r):e.nodeType===1&&Tf(e,r),rl(e)):Tf(Et,r.stateNode));break;case 4:n=Et,o=Yr,Et=r.stateNode.containerInfo,Yr=!0,ao(e,t,r),Et=n,Yr=o;break;case 0:case 11:case 14:case 15:if(!Lt&&(n=r.updateQueue,n!==null&&(n=n.lastEffect,n!==null))){o=n=n.next;do{var i=o,a=i.destroy;i=i.tag,a!==void 0&&(i&2||i&4)&&lp(r,t,a),o=o.next}while(o!==n)}ao(e,t,r);break;case 1:if(!Lt&&(Wi(r,t),n=r.stateNode,typeof n.componentWillUnmount=="function"))try{n.props=r.memoizedProps,n.state=r.memoizedState,n.componentWillUnmount()}catch(s){ot(r,t,s)}ao(e,t,r);break;case 21:ao(e,t,r);break;case 22:r.mode&1?(Lt=(n=Lt)||r.memoizedState!==null,ao(e,t,r),Lt=n):ao(e,t,r);break;default:ao(e,t,r)}}function p0(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var r=e.stateNode;r===null&&(r=e.stateNode=new Q5),t.forEach(function(n){var o=s_.bind(null,e,n);r.has(n)||(r.add(n),n.then(o,o))})}}function Gr(e,t){var r=t.deletions;if(r!==null)for(var n=0;no&&(o=a),n&=~i}if(n=o,n=st()-n,n=(120>n?120:480>n?480:1080>n?1080:1920>n?1920:3e3>n?3e3:4320>n?4320:1960*e_(n/1960))-n,10e?16:e,xo===null)var n=!1;else{if(e=xo,xo=null,zc=0,ye&6)throw Error(O(331));var o=ye;for(ye|=4,V=e.current;V!==null;){var i=V,a=i.child;if(V.flags&16){var s=i.deletions;if(s!==null){for(var l=0;lst()-Im?ai(e,0):Fm|=r),tr(e,t)}function wS(e,t){t===0&&(e.mode&1?(t=uu,uu<<=1,!(uu&130023424)&&(uu=4194304)):t=1);var r=Gt();e=Qn(e,t),e!==null&&(Rl(e,t,r),tr(e,r))}function a_(e){var t=e.memoizedState,r=0;t!==null&&(r=t.retryLane),wS(e,r)}function s_(e,t){var r=0;switch(e.tag){case 13:var n=e.stateNode,o=e.memoizedState;o!==null&&(r=o.retryLane);break;case 19:n=e.stateNode;break;default:throw Error(O(314))}n!==null&&n.delete(t),wS(e,r)}var kS;kS=function(e,t,r){if(e!==null)if(e.memoizedProps!==t.pendingProps||Jt.current)Zt=!0;else{if(!(e.lanes&r)&&!(t.flags&128))return Zt=!1,K5(e,t,r);Zt=!!(e.flags&131072)}else Zt=!1,Ye&&t.flags&1048576&&_x(t,Cc,t.index);switch(t.lanes=0,t.tag){case 2:var n=t.type;Uu(e,t),e=t.pendingProps;var o=ya(t,Ft.current);sa(t,r),o=$m(null,t,n,e,o,r);var i=zm();return t.flags|=1,typeof o=="object"&&o!==null&&typeof o.render=="function"&&o.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,er(n)?(i=!0,wc(t)):i=!1,t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,Tm(t),o.updater=dd,t.stateNode=o,o._reactInternals=t,tp(t,n,e,r),t=op(null,t,n,!0,i,r)):(t.tag=0,Ye&&i&&xm(t),Wt(null,t,o,r),t=t.child),t;case 16:n=t.elementType;e:{switch(Uu(e,t),e=t.pendingProps,o=n._init,n=o(n._payload),t.type=n,o=t.tag=u_(n),e=Kr(n,e),o){case 0:t=np(null,t,n,e,r);break e;case 1:t=u0(null,t,n,e,r);break e;case 11:t=s0(null,t,n,e,r);break e;case 14:t=l0(null,t,n,Kr(n.type,e),r);break e}throw Error(O(306,n,""))}return t;case 0:return n=t.type,o=t.pendingProps,o=t.elementType===n?o:Kr(n,o),np(e,t,n,o,r);case 1:return n=t.type,o=t.pendingProps,o=t.elementType===n?o:Kr(n,o),u0(e,t,n,o,r);case 3:e:{if(aS(t),e===null)throw Error(O(387));n=t.pendingProps,i=t.memoizedState,o=i.element,jx(e,t),Tc(t,n,null,r);var a=t.memoizedState;if(n=a.element,i.isDehydrated)if(i={element:n,isDehydrated:!1,cache:a.cache,pendingSuspenseBoundaries:a.pendingSuspenseBoundaries,transitions:a.transitions},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){o=wa(Error(O(423)),t),t=c0(e,t,n,r,o);break e}else if(n!==o){o=wa(Error(O(424)),t),t=c0(e,t,n,r,o);break e}else for(dr=Co(t.stateNode.containerInfo.firstChild),pr=t,Ye=!0,Qr=null,r=Mx(t,null,n,r),t.child=r;r;)r.flags=r.flags&-3|4096,r=r.sibling;else{if(ba(),n===o){t=Zn(e,t,r);break e}Wt(e,t,n,r)}t=t.child}return t;case 5:return Dx(t),e===null&&Zh(t),n=t.type,o=t.pendingProps,i=e!==null?e.memoizedProps:null,a=o.children,qh(n,o)?a=null:i!==null&&qh(n,i)&&(t.flags|=32),iS(e,t),Wt(e,t,a,r),t.child;case 6:return e===null&&Zh(t),null;case 13:return sS(e,t,r);case 4:return Em(t,t.stateNode.containerInfo),n=t.pendingProps,e===null?t.child=xa(t,null,n,r):Wt(e,t,n,r),t.child;case 11:return n=t.type,o=t.pendingProps,o=t.elementType===n?o:Kr(n,o),s0(e,t,n,o,r);case 7:return Wt(e,t,t.pendingProps,r),t.child;case 8:return Wt(e,t,t.pendingProps.children,r),t.child;case 12:return Wt(e,t,t.pendingProps.children,r),t.child;case 10:e:{if(n=t.type._context,o=t.pendingProps,i=t.memoizedProps,a=o.value,Le(Pc,n._currentValue),n._currentValue=a,i!==null)if(on(i.value,a)){if(i.children===o.children&&!Jt.current){t=Zn(e,t,r);break e}}else for(i=t.child,i!==null&&(i.return=t);i!==null;){var s=i.dependencies;if(s!==null){a=i.child;for(var l=s.firstContext;l!==null;){if(l.context===n){if(i.tag===1){l=Wn(-1,r&-r),l.tag=2;var u=i.updateQueue;if(u!==null){u=u.shared;var c=u.pending;c===null?l.next=l:(l.next=c.next,c.next=l),u.pending=l}}i.lanes|=r,l=i.alternate,l!==null&&(l.lanes|=r),Jh(i.return,r,t),s.lanes|=r;break}l=l.next}}else if(i.tag===10)a=i.type===t.type?null:i.child;else if(i.tag===18){if(a=i.return,a===null)throw Error(O(341));a.lanes|=r,s=a.alternate,s!==null&&(s.lanes|=r),Jh(a,r,t),a=i.sibling}else a=i.child;if(a!==null)a.return=i;else for(a=i;a!==null;){if(a===t){a=null;break}if(i=a.sibling,i!==null){i.return=a.return,a=i;break}a=a.return}i=a}Wt(e,t,o.children,r),t=t.child}return t;case 9:return o=t.type,n=t.pendingProps.children,sa(t,r),o=Fr(o),n=n(o),t.flags|=1,Wt(e,t,n,r),t.child;case 14:return n=t.type,o=Kr(n,t.pendingProps),o=Kr(n.type,o),l0(e,t,n,o,r);case 15:return nS(e,t,t.type,t.pendingProps,r);case 17:return n=t.type,o=t.pendingProps,o=t.elementType===n?o:Kr(n,o),Uu(e,t),t.tag=1,er(n)?(e=!0,wc(t)):e=!1,sa(t,r),$x(t,n,o),tp(t,n,o,r),op(null,t,n,!0,e,r);case 19:return lS(e,t,r);case 22:return oS(e,t,r)}throw Error(O(156,t.tag))};function CS(e,t){return Xb(e,t)}function l_(e,t,r,n){this.tag=e,this.key=r,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=n,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function $r(e,t,r,n){return new l_(e,t,r,n)}function Wm(e){return e=e.prototype,!(!e||!e.isReactComponent)}function u_(e){if(typeof e=="function")return Wm(e)?1:0;if(e!=null){if(e=e.$$typeof,e===lm)return 11;if(e===um)return 14}return 2}function Eo(e,t){var r=e.alternate;return r===null?(r=$r(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 qu(e,t,r,n,o,i){var a=2;if(n=e,typeof e=="function")Wm(e)&&(a=1);else if(typeof e=="string")a=5;else e:switch(e){case Mi:return si(r.children,o,i,t);case sm:a=8,o|=8;break;case Ph:return e=$r(12,r,t,o|2),e.elementType=Ph,e.lanes=i,e;case _h:return e=$r(13,r,t,o),e.elementType=_h,e.lanes=i,e;case Th:return e=$r(19,r,t,o),e.elementType=Th,e.lanes=i,e;case zb:return md(r,o,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Ab:a=10;break e;case $b:a=9;break e;case lm:a=11;break e;case um:a=14;break e;case fo:a=16,n=null;break e}throw Error(O(130,e==null?e:typeof e,""))}return t=$r(a,r,t,o),t.elementType=e,t.type=n,t.lanes=i,t}function si(e,t,r,n){return e=$r(7,e,n,t),e.lanes=r,e}function md(e,t,r,n){return e=$r(22,e,n,t),e.elementType=zb,e.lanes=r,e.stateNode={isHidden:!1},e}function Df(e,t,r){return e=$r(6,e,null,t),e.lanes=r,e}function Lf(e,t,r){return t=$r(4,e.children!==null?e.children:[],e.key,t),t.lanes=r,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function c_(e,t,r,n,o){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=gf(0),this.expirationTimes=gf(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=gf(0),this.identifierPrefix=n,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function Um(e,t,r,n,o,i,a,s,l){return e=new c_(e,t,r,s,l),t===1?(t=1,i===!0&&(t|=8)):t=0,i=$r(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:n,isDehydrated:r,cache:null,transitions:null,pendingSuspenseBoundaries:null},Tm(i),e}function d_(e,t,r){var n=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(ES)}catch(e){console.error(e)}}ES(),_b.exports=Sr;var Km=_b.exports,w0=Km;kh.createRoot=w0.createRoot,kh.hydrateRoot=w0.hydrateRoot;function g_(e){if(e.sheet)return e.sheet;for(var t=0;t0?jt(Ba,--or):0,Ca--,ht===10&&(Ca=1,Sd--),ht}function mr(){return ht=or<$S?jt(Ba,or++):0,Ca++,ht===10&&(Ca=1,Sd++),ht}function Sn(){return jt(Ba,or)}function Ku(){return or}function zl(e,t){return pl(Ba,e,t)}function ml(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function zS(e){return Sd=Ca=1,$S=gn(Ba=e),or=0,[]}function MS(e){return Ba="",e}function Yu(e){return AS(zl(or-1,vp(e===91?e+2:e===40?e+1:e)))}function E_(e){for(;(ht=Sn())&&ht<33;)mr();return ml(e)>2||ml(ht)>3?"":" "}function R_(e,t){for(;--t&&mr()&&!(ht<48||ht>102||ht>57&&ht<65||ht>70&&ht<97););return zl(e,Ku()+(t<6&&Sn()==32&&mr()==32))}function vp(e){for(;mr();)switch(ht){case e:return or;case 34:case 39:e!==34&&e!==39&&vp(ht);break;case 40:e===41&&vp(e);break;case 92:mr();break}return or}function j_(e,t){for(;mr()&&e+ht!==47+10;)if(e+ht===42+42&&Sn()===47)break;return"/*"+zl(t,or-1)+"*"+xd(e===47?e:mr())}function A_(e){for(;!ml(Sn());)mr();return zl(e,or)}function $_(e){return MS(Xu("",null,null,null,[""],e=zS(e),0,[0],e))}function Xu(e,t,r,n,o,i,a,s,l){for(var u=0,c=0,d=a,f=0,p=0,g=0,y=1,w=1,v=1,m=0,x="",b=o,P=i,E=n,C=x;w;)switch(g=m,m=mr()){case 40:if(g!=108&&jt(C,d-1)==58){gp(C+=we(Yu(m),"&","&\f"),"&\f")!=-1&&(v=-1);break}case 34:case 39:case 91:C+=Yu(m);break;case 9:case 10:case 13:case 32:C+=E_(g);break;case 92:C+=R_(Ku()-1,7);continue;case 47:switch(Sn()){case 42:case 47:Su(z_(j_(mr(),Ku()),t,r),l);break;default:C+="/"}break;case 123*y:s[u++]=gn(C)*v;case 125*y:case 59:case 0:switch(m){case 0:case 125:w=0;case 59+c:v==-1&&(C=we(C,/\f/g,"")),p>0&&gn(C)-d&&Su(p>32?C0(C+";",n,r,d-1):C0(we(C," ","")+";",n,r,d-2),l);break;case 59:C+=";";default:if(Su(E=k0(C,t,r,u,c,o,s,x,b=[],P=[],d),i),m===123)if(c===0)Xu(C,t,E,E,b,i,d,s,P);else switch(f===99&&jt(C,3)===110?100:f){case 100:case 108:case 109:case 115:Xu(e,E,E,n&&Su(k0(e,E,E,0,0,o,s,x,o,b=[],d),P),o,P,d,s,n?b:P);break;default:Xu(C,E,E,E,[""],P,0,s,P)}}u=c=p=0,y=v=1,x=C="",d=a;break;case 58:d=1+gn(C),p=g;default:if(y<1){if(m==123)--y;else if(m==125&&y++==0&&T_()==125)continue}switch(C+=xd(m),m*y){case 38:v=c>0?1:(C+="\f",-1);break;case 44:s[u++]=(gn(C)-1)*v,v=1;break;case 64:Sn()===45&&(C+=Yu(mr())),f=Sn(),c=d=gn(x=C+=A_(Ku())),m++;break;case 45:g===45&&gn(C)==2&&(y=0)}}return i}function k0(e,t,r,n,o,i,a,s,l,u,c){for(var d=o-1,f=o===0?i:[""],p=Qm(f),g=0,y=0,w=0;g0?f[v]+" "+m:we(m,/&\f/g,f[v])))&&(l[w++]=x);return wd(e,t,r,o===0?Ym:s,l,u,c)}function z_(e,t,r){return wd(e,t,r,RS,xd(__()),pl(e,2,-2),0)}function C0(e,t,r,n){return wd(e,t,r,Xm,pl(e,0,n),pl(e,n+1,-1),n)}function ua(e,t){for(var r="",n=Qm(e),o=0;o6)switch(jt(e,t+1)){case 109:if(jt(e,t+4)!==45)break;case 102:return we(e,/(.+:)(.+)-([^]+)/,"$1"+Se+"$2-$3$1"+Lc+(jt(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~gp(e,"stretch")?DS(we(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(jt(e,t+1)!==115)break;case 6444:switch(jt(e,gn(e)-3-(~gp(e,"!important")&&10))){case 107:return we(e,":",":"+Se)+e;case 101:return we(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Se+(jt(e,14)===45?"inline-":"")+"box$3$1"+Se+"$2$3$1"+Dt+"$2box$3")+e}break;case 5936:switch(jt(e,t+11)){case 114:return Se+e+Dt+we(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Se+e+Dt+we(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Se+e+Dt+we(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return Se+e+Dt+e+e}return e}var V_=function(t,r,n,o){if(t.length>-1&&!t.return)switch(t.type){case Xm:t.return=DS(t.value,t.length);break;case jS:return ua([as(t,{value:we(t.value,"@","@"+Se)})],o);case Ym:if(t.length)return P_(t.props,function(i){switch(C_(i,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return ua([as(t,{props:[we(i,/:(read-\w+)/,":"+Lc+"$1")]})],o);case"::placeholder":return ua([as(t,{props:[we(i,/:(plac\w+)/,":"+Se+"input-$1")]}),as(t,{props:[we(i,/:(plac\w+)/,":"+Lc+"$1")]}),as(t,{props:[we(i,/:(plac\w+)/,Dt+"input-$1")]})],o)}return""})}},W_=[V_],U_=function(t){var r=t.key;if(r==="css"){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,function(y){var w=y.getAttribute("data-emotion");w.indexOf(" ")!==-1&&(document.head.appendChild(y),y.setAttribute("data-s",""))})}var o=t.stylisPlugins||W_,i={},a,s=[];a=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+r+' "]'),function(y){for(var w=y.getAttribute("data-emotion").split(" "),v=1;v=4;++n,o-=4)r=e.charCodeAt(n)&255|(e.charCodeAt(++n)&255)<<8|(e.charCodeAt(++n)&255)<<16|(e.charCodeAt(++n)&255)<<24,r=(r&65535)*1540483477+((r>>>16)*59797<<16),r^=r>>>24,t=(r&65535)*1540483477+((r>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(o){case 3:t^=(e.charCodeAt(n+2)&255)<<16;case 2:t^=(e.charCodeAt(n+1)&255)<<8;case 1:t^=e.charCodeAt(n)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var rT={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};function nT(e){var t=Object.create(null);return function(r){return t[r]===void 0&&(t[r]=e(r)),t[r]}}var oT=/[A-Z]|^ms/g,iT=/_EMO_([^_]+?)_([^]*?)_EMO_/g,VS=function(t){return t.charCodeAt(1)===45},T0=function(t){return t!=null&&typeof t!="boolean"},Of=nT(function(e){return VS(e)?e:e.replace(oT,"-$&").toLowerCase()}),E0=function(t,r){switch(t){case"animation":case"animationName":if(typeof r=="string")return r.replace(iT,function(n,o,i){return vn={name:o,styles:i,next:vn},o})}return rT[t]!==1&&!VS(t)&&typeof r=="number"&&r!==0?r+"px":r};function gl(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 vn={name:r.name,styles:r.styles,next:vn},r.name;if(r.styles!==void 0){var n=r.next;if(n!==void 0)for(;n!==void 0;)vn={name:n.name,styles:n.styles,next:vn},n=n.next;var o=r.styles+";";return o}return aT(e,t,r)}case"function":{if(e!==void 0){var i=vn,a=r(e);return vn=i,gl(e,t,a)}break}}if(t==null)return r;var s=t[r];return s!==void 0?s:r}function aT(e,t,r){var n="";if(Array.isArray(r))for(var o=0;oh.jsx(zd,{styles:qS}),mT=({scope:e=""})=>h.jsx(zd,{styles:GS` + 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; + } + + ${qS} + `});function gT(e,t){return`${e} returned \`undefined\`. Seems you forgot to wrap component within ${t}`}function sn(e={}){const{name:t,strict:r=!0,hookName:n="useContext",providerName:o="Provider",errorMessage:i,defaultValue:a}=e,s=S.createContext(a);s.displayName=t;function l(){var u;const c=S.useContext(s);if(!c&&r){const d=new Error(i??gT(n,o));throw d.name="ContextError",(u=Error.captureStackTrace)==null||u.call(Error,d,l),d}return c}return[s.Provider,l,s]}var[vT,yT]=sn({strict:!1,name:"PortalManagerContext"});function KS(e){const{children:t,zIndex:r}=e;return h.jsx(vT,{value:{zIndex:r},children:t})}KS.displayName="PortalManager";var Pa=globalThis!=null&&globalThis.document?S.useLayoutEffect:S.useEffect,[YS,bT]=sn({strict:!1,name:"PortalContext"}),rg="chakra-portal",xT=".chakra-portal",ST=e=>h.jsx("div",{className:"chakra-portal-zIndex",style:{position:"absolute",zIndex:e.zIndex,top:0,left:0,right:0},children:e.children}),wT=e=>{const{appendToParentPortal:t,children:r}=e,[n,o]=S.useState(null),i=S.useRef(null),[,a]=S.useState({});S.useEffect(()=>a({}),[]);const s=bT(),l=yT();Pa(()=>{if(!n)return;const c=n.ownerDocument,d=t?s??c.body:c.body;if(!d)return;i.current=c.createElement("div"),i.current.className=rg,d.appendChild(i.current),a({});const f=i.current;return()=>{d.contains(f)&&d.removeChild(f)}},[n]);const u=l!=null&&l.zIndex?h.jsx(ST,{zIndex:l==null?void 0:l.zIndex,children:r}):r;return i.current?Km.createPortal(h.jsx(YS,{value:i.current,children:u}),i.current):h.jsx("span",{ref:c=>{c&&o(c)}})},kT=e=>{const{children:t,containerRef:r,appendToParentPortal:n}=e,o=r.current,i=o??(typeof window<"u"?document.body:void 0),a=S.useMemo(()=>{const l=o==null?void 0:o.ownerDocument.createElement("div");return l&&(l.className=rg),l},[o]),[,s]=S.useState({});return Pa(()=>s({}),[]),Pa(()=>{if(!(!a||!i))return i.appendChild(a),()=>{i.removeChild(a)}},[a,i]),i&&a?Km.createPortal(h.jsx(YS,{value:n?a:null,children:t}),a):null};function Ml(e){const t={appendToParentPortal:!0,...e},{containerRef:r,...n}=t;return r?h.jsx(kT,{containerRef:r,...n}):h.jsx(wT,{...n})}Ml.className=rg;Ml.selector=xT;Ml.displayName="Portal";function Dl(){const e=S.useContext(vl);if(!e)throw Error("useTheme: `theme` is undefined. Seems you forgot to wrap your app in `` or ``");return e}var Md=S.createContext({});Md.displayName="ColorModeContext";function ng(){const e=S.useContext(Md);if(e===void 0)throw new Error("useColorMode must be used within a ColorModeProvider");return e}var wu={light:"chakra-ui-light",dark:"chakra-ui-dark"};function CT(e={}){const{preventTransition:t=!0}=e,r={setDataset:n=>{const o=t?r.preventTransition():void 0;document.documentElement.dataset.theme=n,document.documentElement.style.colorScheme=n,o==null||o()},setClassName(n){document.body.classList.add(n?wu.dark:wu.light),document.body.classList.remove(n?wu.light:wu.dark)},query(){return window.matchMedia("(prefers-color-scheme: dark)")},getSystemTheme(n){var o;return((o=r.query().matches)!=null?o:n==="dark")?"dark":"light"},addListener(n){const o=r.query(),i=a=>{n(a.matches?"dark":"light")};return typeof o.addListener=="function"?o.addListener(i):o.addEventListener("change",i),()=>{typeof o.removeListener=="function"?o.removeListener(i):o.removeEventListener("change",i)}},preventTransition(){const n=document.createElement("style");return n.appendChild(document.createTextNode("*{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}")),document.head.appendChild(n),()=>{window.getComputedStyle(document.body),requestAnimationFrame(()=>{requestAnimationFrame(()=>{document.head.removeChild(n)})})}}};return r}var PT="chakra-ui-color-mode";function _T(e){return{ssr:!1,type:"localStorage",get(t){if(!(globalThis!=null&&globalThis.document))return t;let r;try{r=localStorage.getItem(e)||t}catch{}return r||t},set(t){try{localStorage.setItem(e,t)}catch{}}}}var TT=_T(PT),Fc=()=>{};function A0(e,t){return e.type==="cookie"&&e.ssr?e.get(t):t}function XS(e){const{value:t,children:r,options:{useSystemColorMode:n,initialColorMode:o,disableTransitionOnChange:i}={},colorModeManager:a=TT}=e,s=o==="dark"?"dark":"light",[l,u]=S.useState(()=>A0(a,s)),[c,d]=S.useState(()=>A0(a)),{getSystemTheme:f,setClassName:p,setDataset:g,addListener:y}=S.useMemo(()=>CT({preventTransition:i}),[i]),w=o==="system"&&!l?c:l,v=S.useCallback(b=>{const P=b==="system"?f():b;u(P),p(P==="dark"),g(P),a.set(P)},[a,f,p,g]);Pa(()=>{o==="system"&&d(f())},[]),S.useEffect(()=>{const b=a.get();if(b){v(b);return}if(o==="system"){v("system");return}v(s)},[a,s,o,v]);const m=S.useCallback(()=>{v(w==="dark"?"light":"dark")},[w,v]);S.useEffect(()=>{if(n)return y(v)},[n,y,v]);const x=S.useMemo(()=>({colorMode:t??w,toggleColorMode:t?Fc:m,setColorMode:t?Fc:v,forced:t!==void 0}),[w,m,v,t]);return h.jsx(Md.Provider,{value:x,children:r})}XS.displayName="ColorModeProvider";function QS(e){const t=S.useMemo(()=>({colorMode:"dark",toggleColorMode:Fc,setColorMode:Fc,forced:!0}),[]);return h.jsx(Md.Provider,{value:t,...e})}QS.displayName="DarkMode";var ET=new Set(["dark","light","system"]);function RT(e){let t=e;return ET.has(t)||(t="light"),t}function jT(e={}){const{initialColorMode:t="light",type:r="localStorage",storageKey:n="chakra-ui-color-mode"}=e,o=RT(t),i=r==="cookie",a=`(function(){try{var a=function(o){var l="(prefers-color-scheme: dark)",v=window.matchMedia(l).matches?"dark":"light",e=o==="system"?v:o,d=document.documentElement,m=document.body,i="chakra-ui-light",n="chakra-ui-dark",s=e==="dark";return m.classList.add(s?n:i),m.classList.remove(s?i:n),d.style.colorScheme=e,d.dataset.theme=e,e},u=a,h="${o}",r="${n}",t=document.cookie.match(new RegExp("(^| )".concat(r,"=([^;]+)"))),c=t?t[2]:null;c?a(c):document.cookie="".concat(r,"=").concat(a(h),"; max-age=31536000; path=/")}catch(a){}})(); + `,s=`(function(){try{var a=function(c){var v="(prefers-color-scheme: dark)",h=window.matchMedia(v).matches?"dark":"light",r=c==="system"?h:c,o=document.documentElement,s=document.body,l="chakra-ui-light",d="chakra-ui-dark",i=r==="dark";return s.classList.add(i?d:l),s.classList.remove(i?l:d),o.style.colorScheme=r,o.dataset.theme=r,r},n=a,m="${o}",e="${n}",t=localStorage.getItem(e);t?a(t):localStorage.setItem(e,a(m))}catch(a){}})(); + `;return`!${i?a:s}`.trim()}function AT(e={}){const{nonce:t}=e;return h.jsx("script",{id:"chakra-script",nonce:t,dangerouslySetInnerHTML:{__html:jT(e)}})}function $T(){const e=ng(),t=Dl();return{...e,theme:t}}function zT(e,t,r){var n,o;if(t==null)return t;const i=a=>{var s,l;return(l=(s=e.__breakpoints)==null?void 0:s.asArray)==null?void 0:l[a]};return(o=(n=i(t))!=null?n:i(r))!=null?o:r}function MT(e,t,r){var n,o;if(t==null)return t;const i=a=>{var s,l;return(l=(s=e.__cssMap)==null?void 0:s[a])==null?void 0:l.value};return(o=(n=i(t))!=null?n:i(r))!=null?o:r}function DT(e,t,r){const n=Dl();return ZS(e,t,r)(n)}function ZS(e,t,r){const n=Array.isArray(t)?t:[t],o=Array.isArray(r)?r:[r];return i=>{const a=o.filter(Boolean),s=n.map((l,u)=>{var c,d;if(e==="breakpoints")return zT(i,l,(c=a[u])!=null?c:l);const f=`${e}.${l}`;return MT(i,f,(d=a[u])!=null?d:l)});return Array.isArray(t)?s:s[0]}}var $e=(...e)=>e.filter(Boolean).join(" ");function Dr(e){const t=typeof e;return e!=null&&(t==="object"||t==="function")&&!Array.isArray(e)}function In(e,...t){return LT(e)?e(...t):e}var LT=e=>typeof e=="function",ri=e=>e?"":void 0,Ff=e=>e?!0:void 0;function Rt(...e){return function(r){e.some(n=>(n==null||n(r),r==null?void 0:r.defaultPrevented))}}function OT(...e){return function(r){e.forEach(n=>{n==null||n(r)})}}var Ic={exports:{}};Ic.exports;(function(e,t){var r=200,n="__lodash_hash_undefined__",o=800,i=16,a=9007199254740991,s="[object Arguments]",l="[object Array]",u="[object AsyncFunction]",c="[object Boolean]",d="[object Date]",f="[object Error]",p="[object Function]",g="[object GeneratorFunction]",y="[object Map]",w="[object Number]",v="[object Null]",m="[object Object]",x="[object Proxy]",b="[object RegExp]",P="[object Set]",E="[object String]",C="[object Undefined]",R="[object WeakMap]",M="[object ArrayBuffer]",z="[object DataView]",L="[object Float32Array]",U="[object Float64Array]",Q="[object Int8Array]",Z="[object Int16Array]",se="[object Int32Array]",J="[object Uint8Array]",oe="[object Uint8ClampedArray]",F="[object Uint16Array]",I="[object Uint32Array]",G=/[\\^$.*+?()[\]{}|]/g,H=/^\[object .+?Constructor\]$/,le=/^(?:0|[1-9]\d*)$/,ie={};ie[L]=ie[U]=ie[Q]=ie[Z]=ie[se]=ie[J]=ie[oe]=ie[F]=ie[I]=!0,ie[s]=ie[l]=ie[M]=ie[c]=ie[z]=ie[d]=ie[f]=ie[p]=ie[y]=ie[w]=ie[m]=ie[b]=ie[P]=ie[E]=ie[R]=!1;var re=typeof nu=="object"&&nu&&nu.Object===Object&&nu,de=typeof self=="object"&&self&&self.Object===Object&&self,ge=re||de||Function("return this")(),tt=t&&!t.nodeType&&t,ze=tt&&!0&&e&&!e.nodeType&&e,rt=ze&&ze.exports===tt,St=rt&&re.process,nt=function(){try{var k=ze&&ze.require&&ze.require("util").types;return k||St&&St.binding&&St.binding("util")}catch{}}(),ve=nt&&nt.isTypedArray;function ut(k,_,j){switch(j.length){case 0:return k.call(_);case 1:return k.call(_,j[0]);case 2:return k.call(_,j[0],j[1]);case 3:return k.call(_,j[0],j[1],j[2])}return k.apply(_,j)}function ln(k,_){for(var j=-1,N=Array(k);++j-1}function qa(k,_){var j=this.__data__,N=Jl(j,k);return N<0?(++this.size,j.push([k,_])):j[N][1]=_,this}Nt.prototype.clear=Ga,Nt.prototype.delete=Ur,Nt.prototype.get=Hr,Nt.prototype.has=_i,Nt.prototype.set=qa;function un(k){var _=-1,j=k==null?0:k.length;for(this.clear();++_1?j[me-1]:void 0,Ge=me>2?j[2]:void 0;for(Me=k.length>3&&typeof Me=="function"?(me--,Me):void 0,Ge&&j2(j[0],j[1],Ge)&&(Me=me<3?void 0:Me,me=1),_=Object(_);++N-1&&k%1==0&&k<_}function j2(k,_,j){if(!Ho(j))return!1;var N=typeof _;return(N=="number"?sf(j)&&av(_,j.length):N=="string"&&_ in j)?ru(j[_],k):!1}function A2(k){var _=typeof k;return _=="string"||_=="number"||_=="symbol"||_=="boolean"?k!=="__proto__":k===null}function $2(k){return!!oo&&oo in k}function sv(k){var _=k&&k.constructor,j=typeof _=="function"&&_.prototype||Be;return k===j}function z2(k){var _=[];if(k!=null)for(var j in Object(k))_.push(j);return _}function M2(k){return io.call(k)}function D2(k,_,j){return _=te(_===void 0?k.length-1:_,0),function(){for(var N=arguments,me=-1,Me=te(N.length-_,0),Ge=Array(Me);++me0){if(++_>=o)return arguments[0]}else _=0;return k.apply(void 0,arguments)}}function F2(k){if(k!=null){try{return Vr.call(k)}catch{}try{return k+""}catch{}}return""}function ru(k,_){return k===_||k!==k&&_!==_}var of=ov(function(){return arguments}())?ov:function(k){return Xa(k)&&Bt.call(k,"callee")&&!A.call(k,"callee")},af=Array.isArray;function sf(k){return k!=null&&uv(k.length)&&!lf(k)}function I2(k){return Xa(k)&&sf(k)}var lv=ae||U2;function lf(k){if(!Ho(k))return!1;var _=eu(k);return _==p||_==g||_==u||_==x}function uv(k){return typeof k=="number"&&k>-1&&k%1==0&&k<=a}function Ho(k){var _=typeof k;return k!=null&&(_=="object"||_=="function")}function Xa(k){return k!=null&&typeof k=="object"}function B2(k){if(!Xa(k)||eu(k)!=m)return!1;var _=Ha(k);if(_===null)return!0;var j=Bt.call(_,"constructor")&&_.constructor;return typeof j=="function"&&j instanceof j&&Vr.call(j)==Rn}var cv=ve?ue(ve):g2;function N2(k){return P2(k,dv(k))}function dv(k){return sf(k)?f2(k,!0):v2(k)}var V2=_2(function(k,_,j,N){iv(k,_,j,N)});function W2(k){return function(){return k}}function fv(k){return k}function U2(){return!1}e.exports=V2})(Ic,Ic.exports);var FT=Ic.exports;const zr=Jp(FT);var IT=e=>/!(important)?$/.test(e),$0=e=>typeof e=="string"?e.replace(/!(important)?$/,"").trim():e,BT=(e,t)=>r=>{const n=String(t),o=IT(n),i=$0(n),a=e?`${e}.${i}`:i;let s=Dr(r.__cssMap)&&a in r.__cssMap?r.__cssMap[a].varRef:t;return s=$0(s),o?`${s} !important`:s};function og(e){const{scale:t,transform:r,compose:n}=e;return(i,a)=>{var s;const l=BT(t,i)(a);let u=(s=r==null?void 0:r(l,a))!=null?s:l;return n&&(u=n(u,a)),u}}var ku=(...e)=>t=>e.reduce((r,n)=>n(r),t);function _r(e,t){return r=>{const n={property:r,scale:e};return n.transform=og({scale:e,transform:t}),n}}var NT=({rtl:e,ltr:t})=>r=>r.direction==="rtl"?e:t;function VT(e){const{property:t,scale:r,transform:n}=e;return{scale:r,property:NT(t),transform:r?og({scale:r,compose:n}):n}}var JS=["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 WT(){return["translateX(var(--chakra-translate-x, 0))","translateY(var(--chakra-translate-y, 0))",...JS].join(" ")}function UT(){return["translate3d(var(--chakra-translate-x, 0), var(--chakra-translate-y, 0), 0)",...JS].join(" ")}var HT={"--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(" ")},GT={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 qT(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 KT={"row-reverse":{space:"--chakra-space-x-reverse",divide:"--chakra-divide-x-reverse"},"column-reverse":{space:"--chakra-space-y-reverse",divide:"--chakra-divide-y-reverse"}},yp={"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"},YT=new Set(Object.values(yp)),bp=new Set(["none","-moz-initial","inherit","initial","revert","unset"]),XT=e=>e.trim();function QT(e,t){if(e==null||bp.has(e))return e;if(!(xp(e)||bp.has(e)))return`url('${e}')`;const o=/(^[a-z-A-Z]+)\((.*)\)/g.exec(e),i=o==null?void 0:o[1],a=o==null?void 0:o[2];if(!i||!a)return e;const s=i.includes("-gradient")?i:`${i}-gradient`,[l,...u]=a.split(",").map(XT).filter(Boolean);if((u==null?void 0:u.length)===0)return e;const c=l in yp?yp[l]:l;u.unshift(c);const d=u.map(f=>{if(YT.has(f))return f;const p=f.indexOf(" "),[g,y]=p!==-1?[f.substr(0,p),f.substr(p+1)]:[f],w=xp(y)?y:y&&y.split(" "),v=`colors.${g}`,m=v in t.__cssMap?t.__cssMap[v].varRef:g;return w?[m,...Array.isArray(w)?w:[w]].join(" "):m});return`${s}(${d.join(", ")})`}var xp=e=>typeof e=="string"&&e.includes("(")&&e.includes(")"),ZT=(e,t)=>QT(e,t??{});function JT(e){return/^var\(--.+\)$/.test(e)}var eE=e=>{const t=parseFloat(e.toString()),r=e.toString().replace(String(t),"");return{unitless:!r,value:t,unit:r}},fn=e=>t=>`${e}(${t})`,be={filter(e){return e!=="auto"?e:HT},backdropFilter(e){return e!=="auto"?e:GT},ring(e){return qT(be.px(e))},bgClip(e){return e==="text"?{color:"transparent",backgroundClip:"text"}:{backgroundClip:e}},transform(e){return e==="auto"?WT():e==="auto-gpu"?UT():e},vh(e){return e==="$100vh"?"var(--chakra-vh)":e},px(e){if(e==null)return e;const{unitless:t}=eE(e);return t||typeof e=="number"?`${e}px`:e},fraction(e){return typeof e!="number"||e>1?e:`${e*100}%`},float(e,t){const r={left:"right",right:"left"};return t.direction==="rtl"?r[e]:e},degree(e){if(JT(e)||e==null)return e;const t=typeof e=="string"&&!e.endsWith("deg");return typeof e=="number"||t?`${e}deg`:e},gradient:ZT,blur:fn("blur"),opacity:fn("opacity"),brightness:fn("brightness"),contrast:fn("contrast"),dropShadow:fn("drop-shadow"),grayscale:fn("grayscale"),hueRotate:fn("hue-rotate"),invert:fn("invert"),saturate:fn("saturate"),sepia:fn("sepia"),bgImage(e){return e==null||xp(e)||bp.has(e)?e:`url(${e})`},outline(e){const t=String(e)==="0"||String(e)==="none";return e!==null&&t?{outline:"2px solid transparent",outlineOffset:"2px"}:{outline:e}},flexDirection(e){var t;const{space:r,divide:n}=(t=KT[e])!=null?t:{},o={flexDirection:e};return r&&(o[r]=1),n&&(o[n]=1),o}},T={borderWidths:_r("borderWidths"),borderStyles:_r("borderStyles"),colors:_r("colors"),borders:_r("borders"),gradients:_r("gradients",be.gradient),radii:_r("radii",be.px),space:_r("space",ku(be.vh,be.px)),spaceT:_r("space",ku(be.vh,be.px)),degreeT(e){return{property:e,transform:be.degree}},prop(e,t,r){return{property:e,scale:t,...t&&{transform:og({scale:t,transform:r})}}},propT(e,t){return{property:e,transform:t}},sizes:_r("sizes",ku(be.vh,be.px)),sizesT:_r("sizes",ku(be.vh,be.fraction)),shadows:_r("shadows"),logical:VT,blur:_r("blur",be.blur)},Qu={background:T.colors("background"),backgroundColor:T.colors("backgroundColor"),backgroundImage:T.gradients("backgroundImage"),backgroundSize:!0,backgroundPosition:!0,backgroundRepeat:!0,backgroundAttachment:!0,backgroundClip:{transform:be.bgClip},bgSize:T.prop("backgroundSize"),bgPosition:T.prop("backgroundPosition"),bg:T.colors("background"),bgColor:T.colors("backgroundColor"),bgPos:T.prop("backgroundPosition"),bgRepeat:T.prop("backgroundRepeat"),bgAttachment:T.prop("backgroundAttachment"),bgGradient:T.gradients("backgroundImage"),bgClip:{transform:be.bgClip}};Object.assign(Qu,{bgImage:Qu.backgroundImage,bgImg:Qu.backgroundImage});var xe={border:T.borders("border"),borderWidth:T.borderWidths("borderWidth"),borderStyle:T.borderStyles("borderStyle"),borderColor:T.colors("borderColor"),borderRadius:T.radii("borderRadius"),borderTop:T.borders("borderTop"),borderBlockStart:T.borders("borderBlockStart"),borderTopLeftRadius:T.radii("borderTopLeftRadius"),borderStartStartRadius:T.logical({scale:"radii",property:{ltr:"borderTopLeftRadius",rtl:"borderTopRightRadius"}}),borderEndStartRadius:T.logical({scale:"radii",property:{ltr:"borderBottomLeftRadius",rtl:"borderBottomRightRadius"}}),borderTopRightRadius:T.radii("borderTopRightRadius"),borderStartEndRadius:T.logical({scale:"radii",property:{ltr:"borderTopRightRadius",rtl:"borderTopLeftRadius"}}),borderEndEndRadius:T.logical({scale:"radii",property:{ltr:"borderBottomRightRadius",rtl:"borderBottomLeftRadius"}}),borderRight:T.borders("borderRight"),borderInlineEnd:T.borders("borderInlineEnd"),borderBottom:T.borders("borderBottom"),borderBlockEnd:T.borders("borderBlockEnd"),borderBottomLeftRadius:T.radii("borderBottomLeftRadius"),borderBottomRightRadius:T.radii("borderBottomRightRadius"),borderLeft:T.borders("borderLeft"),borderInlineStart:{property:"borderInlineStart",scale:"borders"},borderInlineStartRadius:T.logical({scale:"radii",property:{ltr:["borderTopLeftRadius","borderBottomLeftRadius"],rtl:["borderTopRightRadius","borderBottomRightRadius"]}}),borderInlineEndRadius:T.logical({scale:"radii",property:{ltr:["borderTopRightRadius","borderBottomRightRadius"],rtl:["borderTopLeftRadius","borderBottomLeftRadius"]}}),borderX:T.borders(["borderLeft","borderRight"]),borderInline:T.borders("borderInline"),borderY:T.borders(["borderTop","borderBottom"]),borderBlock:T.borders("borderBlock"),borderTopWidth:T.borderWidths("borderTopWidth"),borderBlockStartWidth:T.borderWidths("borderBlockStartWidth"),borderTopColor:T.colors("borderTopColor"),borderBlockStartColor:T.colors("borderBlockStartColor"),borderTopStyle:T.borderStyles("borderTopStyle"),borderBlockStartStyle:T.borderStyles("borderBlockStartStyle"),borderBottomWidth:T.borderWidths("borderBottomWidth"),borderBlockEndWidth:T.borderWidths("borderBlockEndWidth"),borderBottomColor:T.colors("borderBottomColor"),borderBlockEndColor:T.colors("borderBlockEndColor"),borderBottomStyle:T.borderStyles("borderBottomStyle"),borderBlockEndStyle:T.borderStyles("borderBlockEndStyle"),borderLeftWidth:T.borderWidths("borderLeftWidth"),borderInlineStartWidth:T.borderWidths("borderInlineStartWidth"),borderLeftColor:T.colors("borderLeftColor"),borderInlineStartColor:T.colors("borderInlineStartColor"),borderLeftStyle:T.borderStyles("borderLeftStyle"),borderInlineStartStyle:T.borderStyles("borderInlineStartStyle"),borderRightWidth:T.borderWidths("borderRightWidth"),borderInlineEndWidth:T.borderWidths("borderInlineEndWidth"),borderRightColor:T.colors("borderRightColor"),borderInlineEndColor:T.colors("borderInlineEndColor"),borderRightStyle:T.borderStyles("borderRightStyle"),borderInlineEndStyle:T.borderStyles("borderInlineEndStyle"),borderTopRadius:T.radii(["borderTopLeftRadius","borderTopRightRadius"]),borderBottomRadius:T.radii(["borderBottomLeftRadius","borderBottomRightRadius"]),borderLeftRadius:T.radii(["borderTopLeftRadius","borderBottomLeftRadius"]),borderRightRadius:T.radii(["borderTopRightRadius","borderBottomRightRadius"])};Object.assign(xe,{rounded:xe.borderRadius,roundedTop:xe.borderTopRadius,roundedTopLeft:xe.borderTopLeftRadius,roundedTopRight:xe.borderTopRightRadius,roundedTopStart:xe.borderStartStartRadius,roundedTopEnd:xe.borderStartEndRadius,roundedBottom:xe.borderBottomRadius,roundedBottomLeft:xe.borderBottomLeftRadius,roundedBottomRight:xe.borderBottomRightRadius,roundedBottomStart:xe.borderEndStartRadius,roundedBottomEnd:xe.borderEndEndRadius,roundedLeft:xe.borderLeftRadius,roundedRight:xe.borderRightRadius,roundedStart:xe.borderInlineStartRadius,roundedEnd:xe.borderInlineEndRadius,borderStart:xe.borderInlineStart,borderEnd:xe.borderInlineEnd,borderTopStartRadius:xe.borderStartStartRadius,borderTopEndRadius:xe.borderStartEndRadius,borderBottomStartRadius:xe.borderEndStartRadius,borderBottomEndRadius:xe.borderEndEndRadius,borderStartRadius:xe.borderInlineStartRadius,borderEndRadius:xe.borderInlineEndRadius,borderStartWidth:xe.borderInlineStartWidth,borderEndWidth:xe.borderInlineEndWidth,borderStartColor:xe.borderInlineStartColor,borderEndColor:xe.borderInlineEndColor,borderStartStyle:xe.borderInlineStartStyle,borderEndStyle:xe.borderInlineEndStyle});var tE={color:T.colors("color"),textColor:T.colors("color"),fill:T.colors("fill"),stroke:T.colors("stroke")},Sp={boxShadow:T.shadows("boxShadow"),mixBlendMode:!0,blendMode:T.prop("mixBlendMode"),backgroundBlendMode:!0,bgBlendMode:T.prop("backgroundBlendMode"),opacity:!0};Object.assign(Sp,{shadow:Sp.boxShadow});var rE={filter:{transform:be.filter},blur:T.blur("--chakra-blur"),brightness:T.propT("--chakra-brightness",be.brightness),contrast:T.propT("--chakra-contrast",be.contrast),hueRotate:T.degreeT("--chakra-hue-rotate"),invert:T.propT("--chakra-invert",be.invert),saturate:T.propT("--chakra-saturate",be.saturate),dropShadow:T.propT("--chakra-drop-shadow",be.dropShadow),backdropFilter:{transform:be.backdropFilter},backdropBlur:T.blur("--chakra-backdrop-blur"),backdropBrightness:T.propT("--chakra-backdrop-brightness",be.brightness),backdropContrast:T.propT("--chakra-backdrop-contrast",be.contrast),backdropHueRotate:T.degreeT("--chakra-backdrop-hue-rotate"),backdropInvert:T.propT("--chakra-backdrop-invert",be.invert),backdropSaturate:T.propT("--chakra-backdrop-saturate",be.saturate)},Bc={alignItems:!0,alignContent:!0,justifyItems:!0,justifyContent:!0,flexWrap:!0,flexDirection:{transform:be.flexDirection},flex:!0,flexFlow:!0,flexGrow:!0,flexShrink:!0,flexBasis:T.sizes("flexBasis"),justifySelf:!0,alignSelf:!0,order:!0,placeItems:!0,placeContent:!0,placeSelf:!0,gap:T.space("gap"),rowGap:T.space("rowGap"),columnGap:T.space("columnGap")};Object.assign(Bc,{flexDir:Bc.flexDirection});var ew={gridGap:T.space("gridGap"),gridColumnGap:T.space("gridColumnGap"),gridRowGap:T.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},nE={appearance:!0,cursor:!0,resize:!0,userSelect:!0,pointerEvents:!0,outline:{transform:be.outline},outlineOffset:!0,outlineColor:T.colors("outlineColor")},Er={width:T.sizesT("width"),inlineSize:T.sizesT("inlineSize"),height:T.sizes("height"),blockSize:T.sizes("blockSize"),boxSize:T.sizes(["width","height"]),minWidth:T.sizes("minWidth"),minInlineSize:T.sizes("minInlineSize"),minHeight:T.sizes("minHeight"),minBlockSize:T.sizes("minBlockSize"),maxWidth:T.sizes("maxWidth"),maxInlineSize:T.sizes("maxInlineSize"),maxHeight:T.sizes("maxHeight"),maxBlockSize:T.sizes("maxBlockSize"),overflow:!0,overflowX:!0,overflowY:!0,overscrollBehavior:!0,overscrollBehaviorX:!0,overscrollBehaviorY:!0,display:!0,aspectRatio:!0,hideFrom:{scale:"breakpoints",transform:(e,t)=>{var r,n,o;return{[`@media screen and (min-width: ${(o=(n=(r=t.__breakpoints)==null?void 0:r.get(e))==null?void 0:n.minW)!=null?o:e})`]:{display:"none"}}}},hideBelow:{scale:"breakpoints",transform:(e,t)=>{var r,n,o;return{[`@media screen and (max-width: ${(o=(n=(r=t.__breakpoints)==null?void 0:r.get(e))==null?void 0:n._minW)!=null?o:e})`]:{display:"none"}}}},verticalAlign:!0,boxSizing:!0,boxDecorationBreak:!0,float:T.propT("float",be.float),objectFit:!0,objectPosition:!0,visibility:!0,isolation:!0};Object.assign(Er,{w:Er.width,h:Er.height,minW:Er.minWidth,maxW:Er.maxWidth,minH:Er.minHeight,maxH:Er.maxHeight,overscroll:Er.overscrollBehavior,overscrollX:Er.overscrollBehaviorX,overscrollY:Er.overscrollBehaviorY});var oE={listStyleType:!0,listStylePosition:!0,listStylePos:T.prop("listStylePosition"),listStyleImage:!0,listStyleImg:T.prop("listStyleImage")};function iE(e,t,r,n){const o=typeof t=="string"?t.split("."):[t];for(n=0;n{const t=new WeakMap;return(n,o,i,a)=>{if(typeof n>"u")return e(n,o,i);t.has(n)||t.set(n,new Map);const s=t.get(n);if(s.has(o))return s.get(o);const l=e(n,o,i,a);return s.set(o,l),l}},sE=aE(iE),lE={border:"0px",clip:"rect(0, 0, 0, 0)",width:"1px",height:"1px",margin:"-1px",padding:"0px",overflow:"hidden",whiteSpace:"nowrap",position:"absolute"},uE={position:"static",width:"auto",height:"auto",clip:"auto",padding:"0",margin:"0",overflow:"visible",whiteSpace:"normal"},If=(e,t,r)=>{const n={},o=sE(e,t,{});for(const i in o)i in r&&r[i]!=null||(n[i]=o[i]);return n},cE={srOnly:{transform(e){return e===!0?lE:e==="focusable"?uE:{}}},layerStyle:{processResult:!0,transform:(e,t,r)=>If(t,`layerStyles.${e}`,r)},textStyle:{processResult:!0,transform:(e,t,r)=>If(t,`textStyles.${e}`,r)},apply:{processResult:!0,transform:(e,t,r)=>If(t,e,r)}},Os={position:!0,pos:T.prop("position"),zIndex:T.prop("zIndex","zIndices"),inset:T.spaceT("inset"),insetX:T.spaceT(["left","right"]),insetInline:T.spaceT("insetInline"),insetY:T.spaceT(["top","bottom"]),insetBlock:T.spaceT("insetBlock"),top:T.spaceT("top"),insetBlockStart:T.spaceT("insetBlockStart"),bottom:T.spaceT("bottom"),insetBlockEnd:T.spaceT("insetBlockEnd"),left:T.spaceT("left"),insetInlineStart:T.logical({scale:"space",property:{ltr:"left",rtl:"right"}}),right:T.spaceT("right"),insetInlineEnd:T.logical({scale:"space",property:{ltr:"right",rtl:"left"}})};Object.assign(Os,{insetStart:Os.insetInlineStart,insetEnd:Os.insetInlineEnd});var dE={ring:{transform:be.ring},ringColor:T.colors("--chakra-ring-color"),ringOffset:T.prop("--chakra-ring-offset-width"),ringOffsetColor:T.colors("--chakra-ring-offset-color"),ringInset:T.prop("--chakra-ring-inset")},We={margin:T.spaceT("margin"),marginTop:T.spaceT("marginTop"),marginBlockStart:T.spaceT("marginBlockStart"),marginRight:T.spaceT("marginRight"),marginInlineEnd:T.spaceT("marginInlineEnd"),marginBottom:T.spaceT("marginBottom"),marginBlockEnd:T.spaceT("marginBlockEnd"),marginLeft:T.spaceT("marginLeft"),marginInlineStart:T.spaceT("marginInlineStart"),marginX:T.spaceT(["marginInlineStart","marginInlineEnd"]),marginInline:T.spaceT("marginInline"),marginY:T.spaceT(["marginTop","marginBottom"]),marginBlock:T.spaceT("marginBlock"),padding:T.space("padding"),paddingTop:T.space("paddingTop"),paddingBlockStart:T.space("paddingBlockStart"),paddingRight:T.space("paddingRight"),paddingBottom:T.space("paddingBottom"),paddingBlockEnd:T.space("paddingBlockEnd"),paddingLeft:T.space("paddingLeft"),paddingInlineStart:T.space("paddingInlineStart"),paddingInlineEnd:T.space("paddingInlineEnd"),paddingX:T.space(["paddingInlineStart","paddingInlineEnd"]),paddingInline:T.space("paddingInline"),paddingY:T.space(["paddingTop","paddingBottom"]),paddingBlock:T.space("paddingBlock")};Object.assign(We,{m:We.margin,mt:We.marginTop,mr:We.marginRight,me:We.marginInlineEnd,marginEnd:We.marginInlineEnd,mb:We.marginBottom,ml:We.marginLeft,ms:We.marginInlineStart,marginStart:We.marginInlineStart,mx:We.marginX,my:We.marginY,p:We.padding,pt:We.paddingTop,py:We.paddingY,px:We.paddingX,pb:We.paddingBottom,pl:We.paddingLeft,ps:We.paddingInlineStart,paddingStart:We.paddingInlineStart,pr:We.paddingRight,pe:We.paddingInlineEnd,paddingEnd:We.paddingInlineEnd});var fE={textDecorationColor:T.colors("textDecorationColor"),textDecoration:!0,textDecor:{property:"textDecoration"},textDecorationLine:!0,textDecorationStyle:!0,textDecorationThickness:!0,textUnderlineOffset:!0,textShadow:T.shadows("textShadow")},hE={clipPath:!0,transform:T.propT("transform",be.transform),transformOrigin:!0,translateX:T.spaceT("--chakra-translate-x"),translateY:T.spaceT("--chakra-translate-y"),skewX:T.degreeT("--chakra-skew-x"),skewY:T.degreeT("--chakra-skew-y"),scaleX:T.prop("--chakra-scale-x"),scaleY:T.prop("--chakra-scale-y"),scale:T.prop(["--chakra-scale-x","--chakra-scale-y"]),rotate:T.degreeT("--chakra-rotate")},pE={transition:!0,transitionDelay:!0,animation:!0,willChange:!0,transitionDuration:T.prop("transitionDuration","transition.duration"),transitionProperty:T.prop("transitionProperty","transition.property"),transitionTimingFunction:T.prop("transitionTimingFunction","transition.easing")},mE={fontFamily:T.prop("fontFamily","fonts"),fontSize:T.prop("fontSize","fontSizes",be.px),fontWeight:T.prop("fontWeight","fontWeights"),lineHeight:T.prop("lineHeight","lineHeights"),letterSpacing:T.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"}},gE={scrollBehavior:!0,scrollSnapAlign:!0,scrollSnapStop:!0,scrollSnapType:!0,scrollMargin:T.spaceT("scrollMargin"),scrollMarginTop:T.spaceT("scrollMarginTop"),scrollMarginBottom:T.spaceT("scrollMarginBottom"),scrollMarginLeft:T.spaceT("scrollMarginLeft"),scrollMarginRight:T.spaceT("scrollMarginRight"),scrollMarginX:T.spaceT(["scrollMarginLeft","scrollMarginRight"]),scrollMarginY:T.spaceT(["scrollMarginTop","scrollMarginBottom"]),scrollPadding:T.spaceT("scrollPadding"),scrollPaddingTop:T.spaceT("scrollPaddingTop"),scrollPaddingBottom:T.spaceT("scrollPaddingBottom"),scrollPaddingLeft:T.spaceT("scrollPaddingLeft"),scrollPaddingRight:T.spaceT("scrollPaddingRight"),scrollPaddingX:T.spaceT(["scrollPaddingLeft","scrollPaddingRight"]),scrollPaddingY:T.spaceT(["scrollPaddingTop","scrollPaddingBottom"])};function tw(e){return Dr(e)&&e.reference?e.reference:String(e)}var Dd=(e,...t)=>t.map(tw).join(` ${e} `).replace(/calc/g,""),z0=(...e)=>`calc(${Dd("+",...e)})`,M0=(...e)=>`calc(${Dd("-",...e)})`,wp=(...e)=>`calc(${Dd("*",...e)})`,D0=(...e)=>`calc(${Dd("/",...e)})`,L0=e=>{const t=tw(e);return t!=null&&!Number.isNaN(parseFloat(t))?String(t).startsWith("-")?String(t).slice(1):`-${t}`:wp(t,-1)},Qo=Object.assign(e=>({add:(...t)=>Qo(z0(e,...t)),subtract:(...t)=>Qo(M0(e,...t)),multiply:(...t)=>Qo(wp(e,...t)),divide:(...t)=>Qo(D0(e,...t)),negate:()=>Qo(L0(e)),toString:()=>e.toString()}),{add:z0,subtract:M0,multiply:wp,divide:D0,negate:L0});function vE(e,t="-"){return e.replace(/\s+/g,t)}function yE(e){const t=vE(e.toString());return xE(bE(t))}function bE(e){return e.includes("\\.")?e:!Number.isInteger(parseFloat(e.toString()))?e.replace(".","\\."):e}function xE(e){return e.replace(/[!-,/:-@[-^`{-~]/g,"\\$&")}function SE(e,t=""){return[t,e].filter(Boolean).join("-")}function wE(e,t){return`var(${e}${t?`, ${t}`:""})`}function kE(e,t=""){return yE(`--${SE(e,t)}`)}function Y(e,t,r){const n=kE(e,r);return{variable:n,reference:wE(n,t)}}function CE(e,t){const r={};for(const n of t){if(Array.isArray(n)){const[o,i]=n;r[o]=Y(`${e}-${o}`,i);continue}r[n]=Y(`${e}-${n}`)}return r}function PE(e){const t=e==null?0:e.length;return t?e[t-1]:void 0}function _E(e){const t=parseFloat(e.toString()),r=e.toString().replace(String(t),"");return{unitless:!r,value:t,unit:r}}function kp(e){if(e==null)return e;const{unitless:t}=_E(e);return t||typeof e=="number"?`${e}px`:e}var rw=(e,t)=>parseInt(e[1],10)>parseInt(t[1],10)?1:-1,ig=e=>Object.fromEntries(Object.entries(e).sort(rw));function O0(e){const t=ig(e);return Object.assign(Object.values(t),t)}function TE(e){const t=Object.keys(ig(e));return new Set(t)}function F0(e){var t;if(!e)return e;e=(t=kp(e))!=null?t:e;const r=-.02;return typeof e=="number"?`${e+r}`:e.replace(/(\d+\.?\d*)/u,n=>`${parseFloat(n)+r}`)}function Ss(e,t){const r=["@media screen"];return e&&r.push("and",`(min-width: ${kp(e)})`),t&&r.push("and",`(max-width: ${kp(t)})`),r.join(" ")}function EE(e){var t;if(!e)return null;e.base=(t=e.base)!=null?t:"0px";const r=O0(e),n=Object.entries(e).sort(rw).map(([a,s],l,u)=>{var c;let[,d]=(c=u[l+1])!=null?c:[];return d=parseFloat(d)>0?F0(d):void 0,{_minW:F0(s),breakpoint:a,minW:s,maxW:d,maxWQuery:Ss(null,d),minWQuery:Ss(s),minMaxQuery:Ss(s,d)}}),o=TE(e),i=Array.from(o.values());return{keys:o,normalized:r,isResponsive(a){const s=Object.keys(a);return s.length>0&&s.every(l=>o.has(l))},asObject:ig(e),asArray:O0(e),details:n,get(a){return n.find(s=>s.breakpoint===a)},media:[null,...r.map(a=>Ss(a)).slice(1)],toArrayValue(a){if(!Dr(a))throw new Error("toArrayValue: value must be an object");const s=i.map(l=>{var u;return(u=a[l])!=null?u:null});for(;PE(s)===null;)s.pop();return s},toObjectValue(a){if(!Array.isArray(a))throw new Error("toObjectValue: value must be an array");return a.reduce((s,l,u)=>{const c=i[u];return c!=null&&l!=null&&(s[c]=l),s},{})}}}var Tt={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}`},so=e=>nw(t=>e(t,"&"),"[role=group]","[data-group]",".group"),$n=e=>nw(t=>e(t,"~ &"),"[data-peer]",".peer"),nw=(e,...t)=>t.map(e).join(", "),Ld={_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:so(Tt.hover),_peerHover:$n(Tt.hover),_groupFocus:so(Tt.focus),_peerFocus:$n(Tt.focus),_groupFocusVisible:so(Tt.focusVisible),_peerFocusVisible:$n(Tt.focusVisible),_groupActive:so(Tt.active),_peerActive:$n(Tt.active),_groupDisabled:so(Tt.disabled),_peerDisabled:$n(Tt.disabled),_groupInvalid:so(Tt.invalid),_peerInvalid:$n(Tt.invalid),_groupChecked:so(Tt.checked),_peerChecked:$n(Tt.checked),_groupFocusWithin:so(Tt.focusWithin),_peerFocusWithin:$n(Tt.focusWithin),_peerPlaceholderShown:$n(Tt.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]"},ow=Object.keys(Ld);function I0(e,t){return Y(String(e).replace(/\./g,"-"),void 0,t)}function RE(e,t){let r={};const n={};for(const[o,i]of Object.entries(e)){const{isSemantic:a,value:s}=i,{variable:l,reference:u}=I0(o,t==null?void 0:t.cssVarPrefix);if(!a){if(o.startsWith("space")){const f=o.split("."),[p,...g]=f,y=`${p}.-${g.join(".")}`,w=Qo.negate(s),v=Qo.negate(u);n[y]={value:w,var:l,varRef:v}}r[l]=s,n[o]={value:s,var:l,varRef:u};continue}const c=f=>{const g=[String(o).split(".")[0],f].join(".");if(!e[g])return f;const{reference:w}=I0(g,t==null?void 0:t.cssVarPrefix);return w},d=Dr(s)?s:{default:s};r=zr(r,Object.entries(d).reduce((f,[p,g])=>{var y,w;if(!g)return f;const v=c(`${g}`);if(p==="default")return f[l]=v,f;const m=(w=(y=Ld)==null?void 0:y[p])!=null?w:p;return f[m]={[l]:v},f},{})),n[o]={value:u,var:l,varRef:u}}return{cssVars:r,cssMap:n}}function jE(e,t=[]){const r=Object.assign({},e);for(const n of t)n in r&&delete r[n];return r}function AE(e,t){const r={};for(const n of t)n in e&&(r[n]=e[n]);return r}function $E(e){return typeof e=="object"&&e!=null&&!Array.isArray(e)}function B0(e,t,r={}){const{stop:n,getKey:o}=r;function i(a,s=[]){var l;if($E(a)||Array.isArray(a)){const u={};for(const[c,d]of Object.entries(a)){const f=(l=o==null?void 0:o(c))!=null?l:c,p=[...s,f];if(n!=null&&n(a,p))return t(a,s);u[f]=i(d,p)}return u}return t(a,s)}return i(e)}var zE=["colors","borders","borderWidths","borderStyles","fonts","fontSizes","fontWeights","gradients","letterSpacings","lineHeights","radii","space","shadows","sizes","zIndices","transition","blur","breakpoints"];function ME(e){return AE(e,zE)}function DE(e){return e.semanticTokens}function LE(e){const{__cssMap:t,__cssVars:r,__breakpoints:n,...o}=e;return o}var OE=e=>ow.includes(e)||e==="default";function FE({tokens:e,semanticTokens:t}){const r={};return B0(e,(n,o)=>{n!=null&&(r[o.join(".")]={isSemantic:!1,value:n})}),B0(t,(n,o)=>{n!=null&&(r[o.join(".")]={isSemantic:!0,value:n})},{stop:n=>Object.keys(n).every(OE)}),r}function IE(e){var t;const r=LE(e),n=ME(r),o=DE(r),i=FE({tokens:n,semanticTokens:o}),a=(t=r.config)==null?void 0:t.cssVarPrefix,{cssMap:s,cssVars:l}=RE(i,{cssVarPrefix:a});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:EE(r.breakpoints)}),r}var ag=zr({},Qu,xe,tE,Bc,Er,rE,dE,nE,ew,cE,Os,Sp,We,gE,mE,fE,hE,oE,pE),BE=Object.assign({},We,Er,Bc,ew,Os),NE=Object.keys(BE),VE=[...Object.keys(ag),...ow],WE={...ag,...Ld},UE=e=>e in WE,HE=e=>t=>{if(!t.__breakpoints)return e;const{isResponsive:r,toArrayValue:n,media:o}=t.__breakpoints,i={};for(const a in e){let s=In(e[a],t);if(s==null)continue;if(s=Dr(s)&&r(s)?n(s):s,!Array.isArray(s)){i[a]=s;continue}const l=s.slice(0,o.length).length;for(let u=0;ue.startsWith("--")&&typeof t=="string"&&!qE(t),YE=(e,t)=>{var r,n;if(t==null)return t;const o=l=>{var u,c;return(c=(u=e.__cssMap)==null?void 0:u[l])==null?void 0:c.varRef},i=l=>{var u;return(u=o(l))!=null?u:l},[a,s]=GE(t);return t=(n=(r=o(a))!=null?r:i(s))!=null?n:i(t),t};function XE(e){const{configs:t={},pseudos:r={},theme:n}=e,o=(i,a=!1)=>{var s,l,u;const c=In(i,n),d=HE(c)(n);let f={};for(let p in d){const g=d[p];let y=In(g,n);p in r&&(p=r[p]),KE(p,y)&&(y=YE(n,y));let w=t[p];if(w===!0&&(w={property:p}),Dr(y)){f[p]=(s=f[p])!=null?s:{},f[p]=zr({},f[p],o(y,!0));continue}let v=(u=(l=w==null?void 0:w.transform)==null?void 0:l.call(w,y,n,c))!=null?u:y;v=w!=null&&w.processResult?o(v,!0):v;const m=In(w==null?void 0:w.property,n);if(!a&&(w!=null&&w.static)){const x=In(w.static,n);f=zr({},f,x)}if(m&&Array.isArray(m)){for(const x of m)f[x]=v;continue}if(m){m==="&"&&Dr(v)?f=zr({},f,v):f[m]=v;continue}if(Dr(v)){f=zr({},f,v);continue}f[p]=v}return f};return o}var iw=e=>t=>XE({theme:t,pseudos:Ld,configs:ag})(e);function Fe(e){return{definePartsStyle(t){return t},defineMultiStyleConfig(t){return{parts:e,...t}}}}function QE(e,t){if(Array.isArray(e))return e;if(Dr(e))return t(e);if(e!=null)return[e]}function ZE(e,t){for(let r=t+1;r{zr(u,{[x]:f?m[x]:{[v]:m[x]}})});continue}if(!p){f?zr(u,m):u[v]=m;continue}u[v]=m}}return u}}function eR(e){return t=>{var r;const{variant:n,size:o,theme:i}=t,a=JE(i);return zr({},In((r=e.baseStyle)!=null?r:{},t),a(e,"sizes",o,t),a(e,"variants",n,t))}}function tR(e,t,r){var n,o,i;return(i=(o=(n=e.__cssMap)==null?void 0:n[`${t}.${r}`])==null?void 0:o.varRef)!=null?i:r}function It(e){return jE(e,["styleConfig","size","variant","colorScheme"])}var rR=["borders","breakpoints","colors","components","config","direction","fonts","fontSizes","fontWeights","letterSpacings","lineHeights","radii","shadows","sizes","space","styles","transition","zIndices"];function nR(e){return Dr(e)?rR.every(t=>Object.prototype.hasOwnProperty.call(e,t)):!1}var oR={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"},iR={"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)"},aR={"ultra-fast":"50ms",faster:"100ms",fast:"150ms",normal:"200ms",slow:"300ms",slower:"400ms","ultra-slow":"500ms"},sR={property:oR,easing:iR,duration:aR},lR=sR,uR={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},cR=uR,dR={none:0,"1px":"1px solid","2px":"2px solid","4px":"4px solid","8px":"8px solid"},fR=dR,hR={base:"0em",sm:"30em",md:"48em",lg:"62em",xl:"80em","2xl":"96em"},pR=hR,mR={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"}},gR=mR,vR={none:"0",sm:"0.125rem",base:"0.25rem",md:"0.375rem",lg:"0.5rem",xl:"0.75rem","2xl":"1rem","3xl":"1.5rem",full:"9999px"},yR=vR,bR={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"},xR=bR,SR={none:0,sm:"4px",base:"8px",md:"12px",lg:"16px",xl:"24px","2xl":"40px","3xl":"64px"},wR=SR,kR={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"}},aw=kR,sw={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"},CR={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"},PR={sm:"640px",md:"768px",lg:"1024px",xl:"1280px"},_R={...sw,...CR,container:PR},lw=_R,TR={breakpoints:pR,zIndices:cR,radii:yR,blur:wR,colors:gR,...aw,sizes:lw,shadows:xR,space:sw,borders:fR,transition:lR},{defineMultiStyleConfig:ER,definePartsStyle:ws}=Fe(["stepper","step","title","description","indicator","separator","icon","number"]),Dn=Y("stepper-indicator-size"),Hi=Y("stepper-icon-size"),Gi=Y("stepper-title-font-size"),ks=Y("stepper-description-font-size"),ss=Y("stepper-accent-color"),RR=ws(({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"},[ss.variable]:`colors.${e}.500`,_dark:{[ss.variable]:`colors.${e}.200`}},title:{fontSize:Gi.reference,fontWeight:"medium"},description:{fontSize:ks.reference,color:"chakra-subtle-text"},number:{fontSize:Gi.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:Hi.reference,height:Hi.reference},indicator:{flexShrink:0,borderRadius:"full",width:Dn.reference,height:Dn.reference,display:"flex",justifyContent:"center",alignItems:"center","&[data-status=active]":{borderWidth:"2px",borderColor:ss.reference},"&[data-status=complete]":{bg:ss.reference,color:"chakra-inverse-text"},"&[data-status=incomplete]":{borderWidth:"2px"}},separator:{bg:"chakra-border-color",flex:"1","&[data-status=complete]":{bg:ss.reference},"&[data-orientation=horizontal]":{width:"100%",height:"2px",marginStart:"2"},"&[data-orientation=vertical]":{width:"2px",position:"absolute",height:"100%",maxHeight:`calc(100% - ${Dn.reference} - 8px)`,top:`calc(${Dn.reference} + 4px)`,insetStart:`calc(${Dn.reference} / 2 - 1px)`}}})),jR=ER({baseStyle:RR,sizes:{xs:ws({stepper:{[Dn.variable]:"sizes.4",[Hi.variable]:"sizes.3",[Gi.variable]:"fontSizes.xs",[ks.variable]:"fontSizes.xs"}}),sm:ws({stepper:{[Dn.variable]:"sizes.6",[Hi.variable]:"sizes.4",[Gi.variable]:"fontSizes.sm",[ks.variable]:"fontSizes.xs"}}),md:ws({stepper:{[Dn.variable]:"sizes.8",[Hi.variable]:"sizes.5",[Gi.variable]:"fontSizes.md",[ks.variable]:"fontSizes.sm"}}),lg:ws({stepper:{[Dn.variable]:"sizes.10",[Hi.variable]:"sizes.6",[Gi.variable]:"fontSizes.lg",[ks.variable]:"fontSizes.md"}})},defaultProps:{size:"md",colorScheme:"blue"}});function Ee(e,t={}){let r=!1;function n(){if(!r){r=!0;return}throw new Error("[anatomy] .part(...) should only be called once. Did you mean to use .extend(...) ?")}function o(...c){n();for(const d of c)t[d]=l(d);return Ee(e,t)}function i(...c){for(const d of c)d in t||(t[d]=l(d));return Ee(e,t)}function a(){return Object.fromEntries(Object.entries(t).map(([d,f])=>[d,f.selector]))}function s(){return Object.fromEntries(Object.entries(t).map(([d,f])=>[d,f.className]))}function l(c){const p=`chakra-${(["container","root"].includes(c??"")?[e]:[e,c]).filter(Boolean).join("__")}`;return{className:p,selector:`.${p}`,toString:()=>c}}return{parts:o,toPart:l,extend:i,selectors:a,classnames:s,get keys(){return Object.keys(t)},__type:{}}}var AR=Ee("accordion").parts("root","container","button","panel").extend("icon"),$R=Ee("alert").parts("title","description","container").extend("icon","spinner"),zR=Ee("avatar").parts("label","badge","container").extend("excessLabel","group"),MR=Ee("breadcrumb").parts("link","item","container").extend("separator");Ee("button").parts();var DR=Ee("checkbox").parts("control","icon","container").extend("label");Ee("progress").parts("track","filledTrack").extend("label");var LR=Ee("drawer").parts("overlay","dialogContainer","dialog").extend("header","closeButton","body","footer"),OR=Ee("editable").parts("preview","input","textarea"),FR=Ee("form").parts("container","requiredIndicator","helperText"),IR=Ee("formError").parts("text","icon"),BR=Ee("input").parts("addon","field","element","group"),NR=Ee("list").parts("container","item","icon"),VR=Ee("menu").parts("button","list","item").extend("groupTitle","icon","command","divider"),WR=Ee("modal").parts("overlay","dialogContainer","dialog").extend("header","closeButton","body","footer"),UR=Ee("numberinput").parts("root","field","stepperGroup","stepper");Ee("pininput").parts("field");var HR=Ee("popover").parts("content","header","body","footer").extend("popper","arrow","closeButton"),GR=Ee("progress").parts("label","filledTrack","track"),qR=Ee("radio").parts("container","control","label"),KR=Ee("select").parts("field","icon"),YR=Ee("slider").parts("container","track","thumb","filledTrack","mark"),XR=Ee("stat").parts("container","label","helpText","number","icon"),QR=Ee("switch").parts("container","track","thumb"),ZR=Ee("table").parts("table","thead","tbody","tr","th","td","tfoot","caption"),JR=Ee("tabs").parts("root","tab","tablist","tabpanel","tabpanels","indicator"),e3=Ee("tag").parts("container","label","closeButton"),t3=Ee("card").parts("container","header","body","footer");function ni(e,t,r){return Math.min(Math.max(e,r),t)}class r3 extends Error{constructor(t){super(`Failed to parse color: "${t}"`)}}var Cs=r3;function sg(e){if(typeof e!="string")throw new Cs(e);if(e.trim().toLowerCase()==="transparent")return[0,0,0,0];let t=e.trim();t=c3.test(e)?i3(e):e;const r=a3.exec(t);if(r){const a=Array.from(r).slice(1);return[...a.slice(0,3).map(s=>parseInt(yl(s,2),16)),parseInt(yl(a[3]||"f",2),16)/255]}const n=s3.exec(t);if(n){const a=Array.from(n).slice(1);return[...a.slice(0,3).map(s=>parseInt(s,16)),parseInt(a[3]||"ff",16)/255]}const o=l3.exec(t);if(o){const a=Array.from(o).slice(1);return[...a.slice(0,3).map(s=>parseInt(s,10)),parseFloat(a[3]||"1")]}const i=u3.exec(t);if(i){const[a,s,l,u]=Array.from(i).slice(1).map(parseFloat);if(ni(0,100,s)!==s)throw new Cs(e);if(ni(0,100,l)!==l)throw new Cs(e);return[...d3(a,s,l),Number.isNaN(u)?1:u]}throw new Cs(e)}function n3(e){let t=5381,r=e.length;for(;r;)t=t*33^e.charCodeAt(--r);return(t>>>0)%2341}const N0=e=>parseInt(e.replace(/_/g,""),36),o3="1q29ehhb 1n09sgk7 1kl1ekf_ _yl4zsno 16z9eiv3 1p29lhp8 _bd9zg04 17u0____ _iw9zhe5 _to73___ _r45e31e _7l6g016 _jh8ouiv _zn3qba8 1jy4zshs 11u87k0u 1ro9yvyo 1aj3xael 1gz9zjz0 _3w8l4xo 1bf1ekf_ _ke3v___ _4rrkb__ 13j776yz _646mbhl _nrjr4__ _le6mbhl 1n37ehkb _m75f91n _qj3bzfz 1939yygw 11i5z6x8 _1k5f8xs 1509441m 15t5lwgf _ae2th1n _tg1ugcv 1lp1ugcv 16e14up_ _h55rw7n _ny9yavn _7a11xb_ 1ih442g9 _pv442g9 1mv16xof 14e6y7tu 1oo9zkds 17d1cisi _4v9y70f _y98m8kc 1019pq0v 12o9zda8 _348j4f4 1et50i2o _8epa8__ _ts6senj 1o350i2o 1mi9eiuo 1259yrp0 1ln80gnw _632xcoy 1cn9zldc _f29edu4 1n490c8q _9f9ziet 1b94vk74 _m49zkct 1kz6s73a 1eu9dtog _q58s1rz 1dy9sjiq __u89jo3 _aj5nkwg _ld89jo3 13h9z6wx _qa9z2ii _l119xgq _bs5arju 1hj4nwk9 1qt4nwk9 1ge6wau6 14j9zlcw 11p1edc_ _ms1zcxe _439shk6 _jt9y70f _754zsow 1la40eju _oq5p___ _x279qkz 1fa5r3rv _yd2d9ip _424tcku _8y1di2_ _zi2uabw _yy7rn9h 12yz980_ __39ljp6 1b59zg0x _n39zfzp 1fy9zest _b33k___ _hp9wq92 1il50hz4 _io472ub _lj9z3eo 19z9ykg0 _8t8iu3a 12b9bl4a 1ak5yw0o _896v4ku _tb8k8lv _s59zi6t _c09ze0p 1lg80oqn 1id9z8wb _238nba5 1kq6wgdi _154zssg _tn3zk49 _da9y6tc 1sg7cv4f _r12jvtt 1gq5fmkz 1cs9rvci _lp9jn1c _xw1tdnb 13f9zje6 16f6973h _vo7ir40 _bt5arjf _rc45e4t _hr4e100 10v4e100 _hc9zke2 _w91egv_ _sj2r1kk 13c87yx8 _vqpds__ _ni8ggk8 _tj9yqfb 1ia2j4r4 _7x9b10u 1fc9ld4j 1eq9zldr _5j9lhpx _ez9zl6o _md61fzm".split(" ").reduce((e,t)=>{const r=N0(t.substring(0,3)),n=N0(t.substring(3)).toString(16);let o="";for(let i=0;i<6-n.length;i++)o+="0";return e[r]=`${o}${n}`,e},{});function i3(e){const t=e.toLowerCase().trim(),r=o3[n3(t)];if(!r)throw new Cs(e);return`#${r}`}const yl=(e,t)=>Array.from(Array(t)).map(()=>e).join(""),a3=new RegExp(`^#${yl("([a-f0-9])",3)}([a-f0-9])?$`,"i"),s3=new RegExp(`^#${yl("([a-f0-9]{2})",3)}([a-f0-9]{2})?$`,"i"),l3=new RegExp(`^rgba?\\(\\s*(\\d+)\\s*${yl(",\\s*(\\d+)\\s*",2)}(?:,\\s*([\\d.]+))?\\s*\\)$`,"i"),u3=/^hsla?\(\s*([\d.]+)\s*,\s*([\d.]+)%\s*,\s*([\d.]+)%(?:\s*,\s*([\d.]+))?\s*\)$/i,c3=/^[a-z]+$/i,V0=e=>Math.round(e*255),d3=(e,t,r)=>{let n=r/100;if(t===0)return[n,n,n].map(V0);const o=(e%360+360)%360/60,i=(1-Math.abs(2*n-1))*(t/100),a=i*(1-Math.abs(o%2-1));let s=0,l=0,u=0;o>=0&&o<1?(s=i,l=a):o>=1&&o<2?(s=a,l=i):o>=2&&o<3?(l=i,u=a):o>=3&&o<4?(l=a,u=i):o>=4&&o<5?(s=a,u=i):o>=5&&o<6&&(s=i,u=a);const c=n-i/2,d=s+c,f=l+c,p=u+c;return[d,f,p].map(V0)};function f3(e,t,r,n){return`rgba(${ni(0,255,e).toFixed()}, ${ni(0,255,t).toFixed()}, ${ni(0,255,r).toFixed()}, ${parseFloat(ni(0,1,n).toFixed(3))})`}function h3(e,t){const[r,n,o,i]=sg(e);return f3(r,n,o,i-t)}function p3(e){const[t,r,n,o]=sg(e);let i=a=>{const s=ni(0,255,a).toString(16);return s.length===1?`0${s}`:s};return`#${i(t)}${i(r)}${i(n)}${o<1?i(Math.round(o*255)):""}`}function m3(e,t,r,n,o){for(t=t.split?t.split("."):t,n=0;nObject.keys(e).length===0,Ut=(e,t,r)=>{const n=m3(e,`colors.${t}`,t);try{return p3(n),n}catch{return r??"#000000"}},v3=e=>{const[t,r,n]=sg(e);return(t*299+r*587+n*114)/1e3},y3=e=>t=>{const r=Ut(t,e);return v3(r)<128?"dark":"light"},b3=e=>t=>y3(e)(t)==="dark",_a=(e,t)=>r=>{const n=Ut(r,e);return h3(n,1-t)};function W0(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 x3=()=>`#${Math.floor(Math.random()*16777215).toString(16).padEnd(6,"0")}`;function S3(e){const t=x3();return!e||g3(e)?t:e.string&&e.colors?k3(e.string,e.colors):e.string&&!e.colors?w3(e.string):e.colors&&!e.string?C3(e.colors):t}function w3(e){let t=0;if(e.length===0)return t.toString();for(let n=0;n>n*8&255;r+=`00${o.toString(16)}`.substr(-2)}return r}function k3(e,t){let r=0;if(e.length===0)return t[0];for(let n=0;nr.colorMode==="dark"?t:e}function lg(e){const{orientation:t,vertical:r,horizontal:n}=e;return t?t==="vertical"?r:n:{}}function uw(e){return Dr(e)&&e.reference?e.reference:String(e)}var Od=(e,...t)=>t.map(uw).join(` ${e} `).replace(/calc/g,""),U0=(...e)=>`calc(${Od("+",...e)})`,H0=(...e)=>`calc(${Od("-",...e)})`,Cp=(...e)=>`calc(${Od("*",...e)})`,G0=(...e)=>`calc(${Od("/",...e)})`,q0=e=>{const t=uw(e);return t!=null&&!Number.isNaN(parseFloat(t))?String(t).startsWith("-")?String(t).slice(1):`-${t}`:Cp(t,-1)},Ln=Object.assign(e=>({add:(...t)=>Ln(U0(e,...t)),subtract:(...t)=>Ln(H0(e,...t)),multiply:(...t)=>Ln(Cp(e,...t)),divide:(...t)=>Ln(G0(e,...t)),negate:()=>Ln(q0(e)),toString:()=>e.toString()}),{add:U0,subtract:H0,multiply:Cp,divide:G0,negate:q0});function P3(e){return!Number.isInteger(parseFloat(e.toString()))}function _3(e,t="-"){return e.replace(/\s+/g,t)}function cw(e){const t=_3(e.toString());return t.includes("\\.")?e:P3(e)?t.replace(".","\\."):e}function T3(e,t=""){return[t,cw(e)].filter(Boolean).join("-")}function E3(e,t){return`var(${cw(e)}${t?`, ${t}`:""})`}function R3(e,t=""){return`--${T3(e,t)}`}function xt(e,t){const r=R3(e,t==null?void 0:t.prefix);return{variable:r,reference:E3(r,j3(t==null?void 0:t.fallback))}}function j3(e){return typeof e=="string"?e:e==null?void 0:e.reference}var{defineMultiStyleConfig:A3,definePartsStyle:Zu}=Fe(QR.keys),Fs=xt("switch-track-width"),li=xt("switch-track-height"),Bf=xt("switch-track-diff"),$3=Ln.subtract(Fs,li),Pp=xt("switch-thumb-x"),ls=xt("switch-bg"),z3=e=>{const{colorScheme:t}=e;return{borderRadius:"full",p:"0.5",width:[Fs.reference],height:[li.reference],transitionProperty:"common",transitionDuration:"fast",[ls.variable]:"colors.gray.300",_dark:{[ls.variable]:"colors.whiteAlpha.400"},_focusVisible:{boxShadow:"outline"},_disabled:{opacity:.4,cursor:"not-allowed"},_checked:{[ls.variable]:`colors.${t}.500`,_dark:{[ls.variable]:`colors.${t}.200`}},bg:ls.reference}},M3={bg:"white",transitionProperty:"transform",transitionDuration:"normal",borderRadius:"inherit",width:[li.reference],height:[li.reference],_checked:{transform:`translateX(${Pp.reference})`}},D3=Zu(e=>({container:{[Bf.variable]:$3,[Pp.variable]:Bf.reference,_rtl:{[Pp.variable]:Ln(Bf).negate().toString()}},track:z3(e),thumb:M3})),L3={sm:Zu({container:{[Fs.variable]:"1.375rem",[li.variable]:"sizes.3"}}),md:Zu({container:{[Fs.variable]:"1.875rem",[li.variable]:"sizes.4"}}),lg:Zu({container:{[Fs.variable]:"2.875rem",[li.variable]:"sizes.6"}})},O3=A3({baseStyle:D3,sizes:L3,defaultProps:{size:"md",colorScheme:"blue"}}),{defineMultiStyleConfig:F3,definePartsStyle:ca}=Fe(ZR.keys),I3=ca({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"}}),Nc={"&[data-is-numeric=true]":{textAlign:"end"}},B3=ca(e=>{const{colorScheme:t}=e;return{th:{color:K("gray.600","gray.400")(e),borderBottom:"1px",borderColor:K(`${t}.100`,`${t}.700`)(e),...Nc},td:{borderBottom:"1px",borderColor:K(`${t}.100`,`${t}.700`)(e),...Nc},caption:{color:K("gray.600","gray.100")(e)},tfoot:{tr:{"&:last-of-type":{th:{borderBottomWidth:0}}}}}}),N3=ca(e=>{const{colorScheme:t}=e;return{th:{color:K("gray.600","gray.400")(e),borderBottom:"1px",borderColor:K(`${t}.100`,`${t}.700`)(e),...Nc},td:{borderBottom:"1px",borderColor:K(`${t}.100`,`${t}.700`)(e),...Nc},caption:{color:K("gray.600","gray.100")(e)},tbody:{tr:{"&:nth-of-type(odd)":{"th, td":{borderBottomWidth:"1px",borderColor:K(`${t}.100`,`${t}.700`)(e)},td:{background:K(`${t}.100`,`${t}.700`)(e)}}}},tfoot:{tr:{"&:last-of-type":{th:{borderBottomWidth:0}}}}}}),V3={simple:B3,striped:N3,unstyled:{}},W3={sm:ca({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:ca({th:{px:"6",py:"3",lineHeight:"4",fontSize:"xs"},td:{px:"6",py:"4",lineHeight:"5"},caption:{px:"6",py:"2",fontSize:"sm"}}),lg:ca({th:{px:"8",py:"4",lineHeight:"5",fontSize:"sm"},td:{px:"8",py:"5",lineHeight:"6"},caption:{px:"6",py:"2",fontSize:"md"}})},U3=F3({baseStyle:I3,variants:V3,sizes:W3,defaultProps:{variant:"simple",size:"md",colorScheme:"gray"}}),Qt=Y("tabs-color"),Zr=Y("tabs-bg"),Cu=Y("tabs-border-color"),{defineMultiStyleConfig:H3,definePartsStyle:wn}=Fe(JR.keys),G3=e=>{const{orientation:t}=e;return{display:t==="vertical"?"flex":"block"}},q3=e=>{const{isFitted:t}=e;return{flex:t?1:void 0,transitionProperty:"common",transitionDuration:"normal",_focusVisible:{zIndex:1,boxShadow:"outline"},_disabled:{cursor:"not-allowed",opacity:.4}}},K3=e=>{const{align:t="start",orientation:r}=e;return{justifyContent:{end:"flex-end",center:"center",start:"flex-start"}[t],flexDirection:r==="vertical"?"column":"row"}},Y3={p:4},X3=wn(e=>({root:G3(e),tab:q3(e),tablist:K3(e),tabpanel:Y3})),Q3={sm:wn({tab:{py:1,px:4,fontSize:"sm"}}),md:wn({tab:{fontSize:"md",py:2,px:4}}),lg:wn({tab:{fontSize:"lg",py:3,px:4}})},Z3=wn(e=>{const{colorScheme:t,orientation:r}=e,n=r==="vertical",o=n?"borderStart":"borderBottom",i=n?"marginStart":"marginBottom";return{tablist:{[o]:"2px solid",borderColor:"inherit"},tab:{[o]:"2px solid",borderColor:"transparent",[i]:"-2px",_selected:{[Qt.variable]:`colors.${t}.600`,_dark:{[Qt.variable]:`colors.${t}.300`},borderColor:"currentColor"},_active:{[Zr.variable]:"colors.gray.200",_dark:{[Zr.variable]:"colors.whiteAlpha.300"}},_disabled:{_active:{bg:"none"}},color:Qt.reference,bg:Zr.reference}}}),J3=wn(e=>{const{colorScheme:t}=e;return{tab:{borderTopRadius:"md",border:"1px solid",borderColor:"transparent",mb:"-1px",[Cu.variable]:"transparent",_selected:{[Qt.variable]:`colors.${t}.600`,[Cu.variable]:"colors.white",_dark:{[Qt.variable]:`colors.${t}.300`,[Cu.variable]:"colors.gray.800"},borderColor:"inherit",borderBottomColor:Cu.reference},color:Qt.reference},tablist:{mb:"-1px",borderBottom:"1px solid",borderColor:"inherit"}}}),e4=wn(e=>{const{colorScheme:t}=e;return{tab:{border:"1px solid",borderColor:"inherit",[Zr.variable]:"colors.gray.50",_dark:{[Zr.variable]:"colors.whiteAlpha.50"},mb:"-1px",_notLast:{marginEnd:"-1px"},_selected:{[Zr.variable]:"colors.white",[Qt.variable]:`colors.${t}.600`,_dark:{[Zr.variable]:"colors.gray.800",[Qt.variable]:`colors.${t}.300`},borderColor:"inherit",borderTopColor:"currentColor",borderBottomColor:"transparent"},color:Qt.reference,bg:Zr.reference},tablist:{mb:"-1px",borderBottom:"1px solid",borderColor:"inherit"}}}),t4=wn(e=>{const{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`)}}}}),r4=wn(e=>{const{colorScheme:t}=e;return{tab:{borderRadius:"full",fontWeight:"semibold",[Qt.variable]:"colors.gray.600",_dark:{[Qt.variable]:"inherit"},_selected:{[Qt.variable]:"colors.white",[Zr.variable]:`colors.${t}.600`,_dark:{[Qt.variable]:"colors.gray.800",[Zr.variable]:`colors.${t}.300`}},color:Qt.reference,bg:Zr.reference}}}),n4=wn({}),o4={line:Z3,enclosed:J3,"enclosed-colored":e4,"soft-rounded":t4,"solid-rounded":r4,unstyled:n4},i4=H3({baseStyle:X3,sizes:Q3,variants:o4,defaultProps:{size:"md",variant:"line",colorScheme:"blue"}}),lt=CE("badge",["bg","color","shadow"]),a4={px:1,textTransform:"uppercase",fontSize:"xs",borderRadius:"sm",fontWeight:"bold",bg:lt.bg.reference,color:lt.color.reference,boxShadow:lt.shadow.reference},s4=e=>{const{colorScheme:t,theme:r}=e,n=_a(`${t}.500`,.6)(r);return{[lt.bg.variable]:`colors.${t}.500`,[lt.color.variable]:"colors.white",_dark:{[lt.bg.variable]:n,[lt.color.variable]:"colors.whiteAlpha.800"}}},l4=e=>{const{colorScheme:t,theme:r}=e,n=_a(`${t}.200`,.16)(r);return{[lt.bg.variable]:`colors.${t}.100`,[lt.color.variable]:`colors.${t}.800`,_dark:{[lt.bg.variable]:n,[lt.color.variable]:`colors.${t}.200`}}},u4=e=>{const{colorScheme:t,theme:r}=e,n=_a(`${t}.200`,.8)(r);return{[lt.color.variable]:`colors.${t}.500`,_dark:{[lt.color.variable]:n},[lt.shadow.variable]:`inset 0 0 0px 1px ${lt.color.reference}`}},c4={solid:s4,subtle:l4,outline:u4},Is={baseStyle:a4,variants:c4,defaultProps:{variant:"subtle",colorScheme:"gray"}},{defineMultiStyleConfig:d4,definePartsStyle:ui}=Fe(e3.keys),K0=Y("tag-bg"),Y0=Y("tag-color"),Nf=Y("tag-shadow"),Ju=Y("tag-min-height"),ec=Y("tag-min-width"),tc=Y("tag-font-size"),rc=Y("tag-padding-inline"),f4={fontWeight:"medium",lineHeight:1.2,outline:0,[Y0.variable]:lt.color.reference,[K0.variable]:lt.bg.reference,[Nf.variable]:lt.shadow.reference,color:Y0.reference,bg:K0.reference,boxShadow:Nf.reference,borderRadius:"md",minH:Ju.reference,minW:ec.reference,fontSize:tc.reference,px:rc.reference,_focusVisible:{[Nf.variable]:"shadows.outline"}},h4={lineHeight:1.2,overflow:"visible"},p4={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}},m4=ui({container:f4,label:h4,closeButton:p4}),g4={sm:ui({container:{[Ju.variable]:"sizes.5",[ec.variable]:"sizes.5",[tc.variable]:"fontSizes.xs",[rc.variable]:"space.2"},closeButton:{marginEnd:"-2px",marginStart:"0.35rem"}}),md:ui({container:{[Ju.variable]:"sizes.6",[ec.variable]:"sizes.6",[tc.variable]:"fontSizes.sm",[rc.variable]:"space.2"}}),lg:ui({container:{[Ju.variable]:"sizes.8",[ec.variable]:"sizes.8",[tc.variable]:"fontSizes.md",[rc.variable]:"space.3"}})},v4={subtle:ui(e=>{var t;return{container:(t=Is.variants)==null?void 0:t.subtle(e)}}),solid:ui(e=>{var t;return{container:(t=Is.variants)==null?void 0:t.solid(e)}}),outline:ui(e=>{var t;return{container:(t=Is.variants)==null?void 0:t.outline(e)}})},y4=d4({variants:v4,baseStyle:m4,sizes:g4,defaultProps:{size:"md",variant:"subtle",colorScheme:"gray"}}),{definePartsStyle:Bn,defineMultiStyleConfig:b4}=Fe(BR.keys),qi=Y("input-height"),Ki=Y("input-font-size"),Yi=Y("input-padding"),Xi=Y("input-border-radius"),x4=Bn({addon:{height:qi.reference,fontSize:Ki.reference,px:Yi.reference,borderRadius:Xi.reference},field:{width:"100%",height:qi.reference,fontSize:Ki.reference,px:Yi.reference,borderRadius:Xi.reference,minWidth:0,outline:0,position:"relative",appearance:"none",transitionProperty:"common",transitionDuration:"normal",_disabled:{opacity:.4,cursor:"not-allowed"}}}),lo={lg:{[Ki.variable]:"fontSizes.lg",[Yi.variable]:"space.4",[Xi.variable]:"radii.md",[qi.variable]:"sizes.12"},md:{[Ki.variable]:"fontSizes.md",[Yi.variable]:"space.4",[Xi.variable]:"radii.md",[qi.variable]:"sizes.10"},sm:{[Ki.variable]:"fontSizes.sm",[Yi.variable]:"space.3",[Xi.variable]:"radii.sm",[qi.variable]:"sizes.8"},xs:{[Ki.variable]:"fontSizes.xs",[Yi.variable]:"space.2",[Xi.variable]:"radii.sm",[qi.variable]:"sizes.6"}},S4={lg:Bn({field:lo.lg,group:lo.lg}),md:Bn({field:lo.md,group:lo.md}),sm:Bn({field:lo.sm,group:lo.sm}),xs:Bn({field:lo.xs,group:lo.xs})};function ug(e){const{focusBorderColor:t,errorBorderColor:r}=e;return{focusBorderColor:t||K("blue.500","blue.300")(e),errorBorderColor:r||K("red.500","red.300")(e)}}var w4=Bn(e=>{const{theme:t}=e,{focusBorderColor:r,errorBorderColor:n}=ug(e);return{field:{border:"1px solid",borderColor:"inherit",bg:"inherit",_hover:{borderColor:K("gray.300","whiteAlpha.400")(e)},_readOnly:{boxShadow:"none !important",userSelect:"all"},_invalid:{borderColor:Ut(t,n),boxShadow:`0 0 0 1px ${Ut(t,n)}`},_focusVisible:{zIndex:1,borderColor:Ut(t,r),boxShadow:`0 0 0 1px ${Ut(t,r)}`}},addon:{border:"1px solid",borderColor:K("inherit","whiteAlpha.50")(e),bg:K("gray.100","whiteAlpha.300")(e)}}}),k4=Bn(e=>{const{theme:t}=e,{focusBorderColor:r,errorBorderColor:n}=ug(e);return{field:{border:"2px solid",borderColor:"transparent",bg:K("gray.100","whiteAlpha.50")(e),_hover:{bg:K("gray.200","whiteAlpha.100")(e)},_readOnly:{boxShadow:"none !important",userSelect:"all"},_invalid:{borderColor:Ut(t,n)},_focusVisible:{bg:"transparent",borderColor:Ut(t,r)}},addon:{border:"2px solid",borderColor:"transparent",bg:K("gray.100","whiteAlpha.50")(e)}}}),C4=Bn(e=>{const{theme:t}=e,{focusBorderColor:r,errorBorderColor:n}=ug(e);return{field:{borderBottom:"1px solid",borderColor:"inherit",borderRadius:"0",px:"0",bg:"transparent",_readOnly:{boxShadow:"none !important",userSelect:"all"},_invalid:{borderColor:Ut(t,n),boxShadow:`0px 1px 0px 0px ${Ut(t,n)}`},_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"}}}),P4=Bn({field:{bg:"transparent",px:"0",height:"auto"},addon:{bg:"transparent",px:"0",height:"auto"}}),_4={outline:w4,filled:k4,flushed:C4,unstyled:P4},ke=b4({baseStyle:x4,sizes:S4,variants:_4,defaultProps:{size:"md",variant:"outline"}}),X0,T4={...(X0=ke.baseStyle)==null?void 0:X0.field,paddingY:"2",minHeight:"20",lineHeight:"short",verticalAlign:"top"},Q0,Z0,E4={outline:e=>{var t,r;return(r=(t=ke.variants)==null?void 0:t.outline(e).field)!=null?r:{}},flushed:e=>{var t,r;return(r=(t=ke.variants)==null?void 0:t.flushed(e).field)!=null?r:{}},filled:e=>{var t,r;return(r=(t=ke.variants)==null?void 0:t.filled(e).field)!=null?r:{}},unstyled:(Z0=(Q0=ke.variants)==null?void 0:Q0.unstyled.field)!=null?Z0:{}},J0,ey,ty,ry,ny,oy,iy,ay,R4={xs:(ey=(J0=ke.sizes)==null?void 0:J0.xs.field)!=null?ey:{},sm:(ry=(ty=ke.sizes)==null?void 0:ty.sm.field)!=null?ry:{},md:(oy=(ny=ke.sizes)==null?void 0:ny.md.field)!=null?oy:{},lg:(ay=(iy=ke.sizes)==null?void 0:iy.lg.field)!=null?ay:{}},j4={baseStyle:T4,sizes:R4,variants:E4,defaultProps:{size:"md",variant:"outline"}},Pu=xt("tooltip-bg"),Vf=xt("tooltip-fg"),A4=xt("popper-arrow-bg"),$4={bg:Pu.reference,color:Vf.reference,[Pu.variable]:"colors.gray.700",[Vf.variable]:"colors.whiteAlpha.900",_dark:{[Pu.variable]:"colors.gray.300",[Vf.variable]:"colors.gray.900"},[A4.variable]:Pu.reference,px:"2",py:"0.5",borderRadius:"sm",fontWeight:"medium",fontSize:"sm",boxShadow:"md",maxW:"xs",zIndex:"tooltip"},z4={baseStyle:$4},{defineMultiStyleConfig:M4,definePartsStyle:Ps}=Fe(GR.keys),D4=e=>{const{colorScheme:t,theme:r,isIndeterminate:n,hasStripe:o}=e,i=K(W0(),W0("1rem","rgba(0,0,0,0.1)"))(e),a=K(`${t}.500`,`${t}.200`)(e),s=`linear-gradient( + to right, + transparent 0%, + ${Ut(r,a)} 50%, + transparent 100% + )`;return{...!n&&o&&i,...n?{bgImage:s}:{bgColor:a}}},L4={lineHeight:"1",fontSize:"0.25em",fontWeight:"bold",color:"white"},O4=e=>({bg:K("gray.100","whiteAlpha.300")(e)}),F4=e=>({transitionProperty:"common",transitionDuration:"slow",...D4(e)}),I4=Ps(e=>({label:L4,filledTrack:F4(e),track:O4(e)})),B4={xs:Ps({track:{h:"1"}}),sm:Ps({track:{h:"2"}}),md:Ps({track:{h:"3"}}),lg:Ps({track:{h:"4"}})},N4=M4({sizes:B4,baseStyle:I4,defaultProps:{size:"md",colorScheme:"blue"}}),V4=e=>typeof e=="function";function qt(e,...t){return V4(e)?e(...t):e}var{definePartsStyle:nc,defineMultiStyleConfig:W4}=Fe(DR.keys),Bs=Y("checkbox-size"),U4=e=>{const{colorScheme:t}=e;return{w:Bs.reference,h:Bs.reference,transitionProperty:"box-shadow",transitionDuration:"normal",border:"2px solid",borderRadius:"sm",borderColor:"inherit",color:"white",_checked:{bg:K(`${t}.500`,`${t}.200`)(e),borderColor:K(`${t}.500`,`${t}.200`)(e),color:K("white","gray.900")(e),_hover:{bg:K(`${t}.600`,`${t}.300`)(e),borderColor:K(`${t}.600`,`${t}.300`)(e)},_disabled:{borderColor:K("gray.200","transparent")(e),bg:K("gray.200","whiteAlpha.300")(e),color:K("gray.500","whiteAlpha.500")(e)}},_indeterminate:{bg:K(`${t}.500`,`${t}.200`)(e),borderColor:K(`${t}.500`,`${t}.200`)(e),color:K("white","gray.900")(e)},_disabled:{bg:K("gray.100","whiteAlpha.100")(e),borderColor:K("gray.100","transparent")(e)},_focusVisible:{boxShadow:"outline"},_invalid:{borderColor:K("red.500","red.300")(e)}}},H4={_disabled:{cursor:"not-allowed"}},G4={userSelect:"none",_disabled:{opacity:.4}},q4={transitionProperty:"transform",transitionDuration:"normal"},K4=nc(e=>({icon:q4,container:H4,control:qt(U4,e),label:G4})),Y4={sm:nc({control:{[Bs.variable]:"sizes.3"},label:{fontSize:"sm"},icon:{fontSize:"3xs"}}),md:nc({control:{[Bs.variable]:"sizes.4"},label:{fontSize:"md"},icon:{fontSize:"2xs"}}),lg:nc({control:{[Bs.variable]:"sizes.5"},label:{fontSize:"lg"},icon:{fontSize:"2xs"}})},Vc=W4({baseStyle:K4,sizes:Y4,defaultProps:{size:"md",colorScheme:"blue"}}),{defineMultiStyleConfig:X4,definePartsStyle:oc}=Fe(qR.keys),Q4=e=>{var t;const r=(t=qt(Vc.baseStyle,e))==null?void 0:t.control;return{...r,borderRadius:"full",_checked:{...r==null?void 0:r._checked,_before:{content:'""',display:"inline-block",pos:"relative",w:"50%",h:"50%",borderRadius:"50%",bg:"currentColor"}}}},Z4=oc(e=>{var t,r,n,o;return{label:(r=(t=Vc).baseStyle)==null?void 0:r.call(t,e).label,container:(o=(n=Vc).baseStyle)==null?void 0:o.call(n,e).container,control:Q4(e)}}),J4={md:oc({control:{w:"4",h:"4"},label:{fontSize:"md"}}),lg:oc({control:{w:"5",h:"5"},label:{fontSize:"lg"}}),sm:oc({control:{width:"3",height:"3"},label:{fontSize:"sm"}})},ej=X4({baseStyle:Z4,sizes:J4,defaultProps:{size:"md",colorScheme:"blue"}}),{defineMultiStyleConfig:tj,definePartsStyle:rj}=Fe(KR.keys),_u=Y("select-bg"),sy,nj={...(sy=ke.baseStyle)==null?void 0:sy.field,appearance:"none",paddingBottom:"1px",lineHeight:"normal",bg:_u.reference,[_u.variable]:"colors.white",_dark:{[_u.variable]:"colors.gray.700"},"> option, > optgroup":{bg:_u.reference}},oj={width:"6",height:"100%",insetEnd:"2",position:"relative",color:"currentColor",fontSize:"xl",_disabled:{opacity:.5}},ij=rj({field:nj,icon:oj}),Tu={paddingInlineEnd:"8"},ly,uy,cy,dy,fy,hy,py,my,aj={lg:{...(ly=ke.sizes)==null?void 0:ly.lg,field:{...(uy=ke.sizes)==null?void 0:uy.lg.field,...Tu}},md:{...(cy=ke.sizes)==null?void 0:cy.md,field:{...(dy=ke.sizes)==null?void 0:dy.md.field,...Tu}},sm:{...(fy=ke.sizes)==null?void 0:fy.sm,field:{...(hy=ke.sizes)==null?void 0:hy.sm.field,...Tu}},xs:{...(py=ke.sizes)==null?void 0:py.xs,field:{...(my=ke.sizes)==null?void 0:my.xs.field,...Tu},icon:{insetEnd:"1"}}},sj=tj({baseStyle:ij,sizes:aj,variants:ke.variants,defaultProps:ke.defaultProps}),Wf=Y("skeleton-start-color"),Uf=Y("skeleton-end-color"),lj={[Wf.variable]:"colors.gray.100",[Uf.variable]:"colors.gray.400",_dark:{[Wf.variable]:"colors.gray.800",[Uf.variable]:"colors.gray.600"},background:Wf.reference,borderColor:Uf.reference,opacity:.7,borderRadius:"sm"},uj={baseStyle:lj},Hf=Y("skip-link-bg"),cj={borderRadius:"md",fontWeight:"semibold",_focusVisible:{boxShadow:"outline",padding:"4",position:"fixed",top:"6",insetStart:"6",[Hf.variable]:"colors.white",_dark:{[Hf.variable]:"colors.gray.700"},bg:Hf.reference}},dj={baseStyle:cj},{defineMultiStyleConfig:fj,definePartsStyle:Fd}=Fe(YR.keys),bl=Y("slider-thumb-size"),xl=Y("slider-track-size"),yo=Y("slider-bg"),hj=e=>{const{orientation:t}=e;return{display:"inline-block",position:"relative",cursor:"pointer",_disabled:{opacity:.6,cursor:"default",pointerEvents:"none"},...lg({orientation:t,vertical:{h:"100%"},horizontal:{w:"100%"}})}},pj=e=>({...lg({orientation:e.orientation,horizontal:{h:xl.reference},vertical:{w:xl.reference}}),overflow:"hidden",borderRadius:"sm",[yo.variable]:"colors.gray.200",_dark:{[yo.variable]:"colors.whiteAlpha.200"},_disabled:{[yo.variable]:"colors.gray.300",_dark:{[yo.variable]:"colors.whiteAlpha.300"}},bg:yo.reference}),mj=e=>{const{orientation:t}=e;return{...lg({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:bl.reference,h:bl.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"}}},gj=e=>{const{colorScheme:t}=e;return{width:"inherit",height:"inherit",[yo.variable]:`colors.${t}.500`,_dark:{[yo.variable]:`colors.${t}.200`},bg:yo.reference}},vj=Fd(e=>({container:hj(e),track:pj(e),thumb:mj(e),filledTrack:gj(e)})),yj=Fd({container:{[bl.variable]:"sizes.4",[xl.variable]:"sizes.1"}}),bj=Fd({container:{[bl.variable]:"sizes.3.5",[xl.variable]:"sizes.1"}}),xj=Fd({container:{[bl.variable]:"sizes.2.5",[xl.variable]:"sizes.0.5"}}),Sj={lg:yj,md:bj,sm:xj},wj=fj({baseStyle:vj,sizes:Sj,defaultProps:{size:"md",colorScheme:"blue"}}),Zo=xt("spinner-size"),kj={width:[Zo.reference],height:[Zo.reference]},Cj={xs:{[Zo.variable]:"sizes.3"},sm:{[Zo.variable]:"sizes.4"},md:{[Zo.variable]:"sizes.6"},lg:{[Zo.variable]:"sizes.8"},xl:{[Zo.variable]:"sizes.12"}},Pj={baseStyle:kj,sizes:Cj,defaultProps:{size:"md"}},{defineMultiStyleConfig:_j,definePartsStyle:dw}=Fe(XR.keys),Tj={fontWeight:"medium"},Ej={opacity:.8,marginBottom:"2"},Rj={verticalAlign:"baseline",fontWeight:"semibold"},jj={marginEnd:1,w:"3.5",h:"3.5",verticalAlign:"middle"},Aj=dw({container:{},label:Tj,helpText:Ej,number:Rj,icon:jj}),$j={md:dw({label:{fontSize:"sm"},helpText:{fontSize:"sm"},number:{fontSize:"2xl"}})},zj=_j({baseStyle:Aj,sizes:$j,defaultProps:{size:"md"}}),Gf=Y("kbd-bg"),Mj={[Gf.variable]:"colors.gray.100",_dark:{[Gf.variable]:"colors.whiteAlpha.100"},bg:Gf.reference,borderRadius:"md",borderWidth:"1px",borderBottomWidth:"3px",fontSize:"0.8em",fontWeight:"bold",lineHeight:"normal",px:"0.4em",whiteSpace:"nowrap"},Dj={baseStyle:Mj},Lj={transitionProperty:"common",transitionDuration:"fast",transitionTimingFunction:"ease-out",cursor:"pointer",textDecoration:"none",outline:"none",color:"inherit",_hover:{textDecoration:"underline"},_focusVisible:{boxShadow:"outline"}},Oj={baseStyle:Lj},{defineMultiStyleConfig:Fj,definePartsStyle:Ij}=Fe(NR.keys),Bj={marginEnd:"2",display:"inline",verticalAlign:"text-bottom"},Nj=Ij({icon:Bj}),Vj=Fj({baseStyle:Nj}),{defineMultiStyleConfig:Wj,definePartsStyle:Uj}=Fe(VR.keys),mn=Y("menu-bg"),qf=Y("menu-shadow"),Hj={[mn.variable]:"#fff",[qf.variable]:"shadows.sm",_dark:{[mn.variable]:"colors.gray.700",[qf.variable]:"shadows.dark-lg"},color:"inherit",minW:"3xs",py:"2",zIndex:1,borderRadius:"md",borderWidth:"1px",bg:mn.reference,boxShadow:qf.reference},Gj={py:"1.5",px:"3",transitionProperty:"background",transitionDuration:"ultra-fast",transitionTimingFunction:"ease-in",_focus:{[mn.variable]:"colors.gray.100",_dark:{[mn.variable]:"colors.whiteAlpha.100"}},_active:{[mn.variable]:"colors.gray.200",_dark:{[mn.variable]:"colors.whiteAlpha.200"}},_expanded:{[mn.variable]:"colors.gray.100",_dark:{[mn.variable]:"colors.whiteAlpha.100"}},_disabled:{opacity:.4,cursor:"not-allowed"},bg:mn.reference},qj={mx:4,my:2,fontWeight:"semibold",fontSize:"sm"},Kj={display:"inline-flex",alignItems:"center",justifyContent:"center",flexShrink:0},Yj={opacity:.6},Xj={border:0,borderBottom:"1px solid",borderColor:"inherit",my:"2",opacity:.6},Qj={transitionProperty:"common",transitionDuration:"normal"},Zj=Uj({button:Qj,list:Hj,item:Gj,groupTitle:qj,icon:Kj,command:Yj,divider:Xj}),Jj=Wj({baseStyle:Zj}),{defineMultiStyleConfig:eA,definePartsStyle:_p}=Fe(WR.keys),Kf=Y("modal-bg"),Yf=Y("modal-shadow"),tA={bg:"blackAlpha.600",zIndex:"modal"},rA=e=>{const{isCentered:t,scrollBehavior:r}=e;return{display:"flex",zIndex:"modal",justifyContent:"center",alignItems:t?"center":"flex-start",overflow:r==="inside"?"hidden":"auto",overscrollBehaviorY:"none"}},nA=e=>{const{isCentered:t,scrollBehavior:r}=e;return{borderRadius:"md",color:"inherit",my:t?"auto":"16",mx:t?"auto":void 0,zIndex:"modal",maxH:r==="inside"?"calc(100% - 7.5rem)":void 0,[Kf.variable]:"colors.white",[Yf.variable]:"shadows.lg",_dark:{[Kf.variable]:"colors.gray.700",[Yf.variable]:"shadows.dark-lg"},bg:Kf.reference,boxShadow:Yf.reference}},oA={px:"6",py:"4",fontSize:"xl",fontWeight:"semibold"},iA={position:"absolute",top:"2",insetEnd:"3"},aA=e=>{const{scrollBehavior:t}=e;return{px:"6",py:"2",flex:"1",overflow:t==="inside"?"auto":void 0}},sA={px:"6",py:"4"},lA=_p(e=>({overlay:tA,dialogContainer:qt(rA,e),dialog:qt(nA,e),header:oA,closeButton:iA,body:qt(aA,e),footer:sA}));function qr(e){return _p(e==="full"?{dialog:{maxW:"100vw",minH:"$100vh",my:"0",borderRadius:"0"}}:{dialog:{maxW:e}})}var uA={xs:qr("xs"),sm:qr("sm"),md:qr("md"),lg:qr("lg"),xl:qr("xl"),"2xl":qr("2xl"),"3xl":qr("3xl"),"4xl":qr("4xl"),"5xl":qr("5xl"),"6xl":qr("6xl"),full:qr("full")},cA=eA({baseStyle:lA,sizes:uA,defaultProps:{size:"md"}}),{defineMultiStyleConfig:dA,definePartsStyle:fw}=Fe(UR.keys),cg=xt("number-input-stepper-width"),hw=xt("number-input-input-padding"),fA=Ln(cg).add("0.5rem").toString(),Xf=xt("number-input-bg"),Qf=xt("number-input-color"),Zf=xt("number-input-border-color"),hA={[cg.variable]:"sizes.6",[hw.variable]:fA},pA=e=>{var t,r;return(r=(t=qt(ke.baseStyle,e))==null?void 0:t.field)!=null?r:{}},mA={width:cg.reference},gA={borderStart:"1px solid",borderStartColor:Zf.reference,color:Qf.reference,bg:Xf.reference,[Qf.variable]:"colors.chakra-body-text",[Zf.variable]:"colors.chakra-border-color",_dark:{[Qf.variable]:"colors.whiteAlpha.800",[Zf.variable]:"colors.whiteAlpha.300"},_active:{[Xf.variable]:"colors.gray.200",_dark:{[Xf.variable]:"colors.whiteAlpha.300"}},_disabled:{opacity:.4,cursor:"not-allowed"}},vA=fw(e=>{var t;return{root:hA,field:(t=qt(pA,e))!=null?t:{},stepperGroup:mA,stepper:gA}});function Eu(e){var t,r,n;const o=(t=ke.sizes)==null?void 0:t[e],i={lg:"md",md:"md",sm:"sm",xs:"sm"},a=(n=(r=o.field)==null?void 0:r.fontSize)!=null?n:"md",s=aw.fontSizes[a];return fw({field:{...o.field,paddingInlineEnd:hw.reference,verticalAlign:"top"},stepper:{fontSize:Ln(s).multiply(.75).toString(),_first:{borderTopEndRadius:i[e]},_last:{borderBottomEndRadius:i[e],mt:"-1px",borderTopWidth:1}}})}var yA={xs:Eu("xs"),sm:Eu("sm"),md:Eu("md"),lg:Eu("lg")},bA=dA({baseStyle:vA,sizes:yA,variants:ke.variants,defaultProps:ke.defaultProps}),gy,xA={...(gy=ke.baseStyle)==null?void 0:gy.field,textAlign:"center"},SA={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"}},vy,yy,wA={outline:e=>{var t,r,n;return(n=(r=qt((t=ke.variants)==null?void 0:t.outline,e))==null?void 0:r.field)!=null?n:{}},flushed:e=>{var t,r,n;return(n=(r=qt((t=ke.variants)==null?void 0:t.flushed,e))==null?void 0:r.field)!=null?n:{}},filled:e=>{var t,r,n;return(n=(r=qt((t=ke.variants)==null?void 0:t.filled,e))==null?void 0:r.field)!=null?n:{}},unstyled:(yy=(vy=ke.variants)==null?void 0:vy.unstyled.field)!=null?yy:{}},kA={baseStyle:xA,sizes:SA,variants:wA,defaultProps:ke.defaultProps},{defineMultiStyleConfig:CA,definePartsStyle:PA}=Fe(HR.keys),Ru=xt("popper-bg"),_A=xt("popper-arrow-bg"),by=xt("popper-arrow-shadow-color"),TA={zIndex:10},EA={[Ru.variable]:"colors.white",bg:Ru.reference,[_A.variable]:Ru.reference,[by.variable]:"colors.gray.200",_dark:{[Ru.variable]:"colors.gray.700",[by.variable]:"colors.whiteAlpha.300"},width:"xs",border:"1px solid",borderColor:"inherit",borderRadius:"md",boxShadow:"sm",zIndex:"inherit",_focusVisible:{outline:0,boxShadow:"outline"}},RA={px:3,py:2,borderBottomWidth:"1px"},jA={px:3,py:2},AA={px:3,py:2,borderTopWidth:"1px"},$A={position:"absolute",borderRadius:"md",top:1,insetEnd:2,padding:2},zA=PA({popper:TA,content:EA,header:RA,body:jA,footer:AA,closeButton:$A}),MA=CA({baseStyle:zA}),{definePartsStyle:Tp,defineMultiStyleConfig:DA}=Fe(LR.keys),Jf=Y("drawer-bg"),eh=Y("drawer-box-shadow");function Ei(e){return Tp(e==="full"?{dialog:{maxW:"100vw",h:"100vh"}}:{dialog:{maxW:e}})}var LA={bg:"blackAlpha.600",zIndex:"modal"},OA={display:"flex",zIndex:"modal",justifyContent:"center"},FA=e=>{const{isFullHeight:t}=e;return{...t&&{height:"100vh"},zIndex:"modal",maxH:"100vh",color:"inherit",[Jf.variable]:"colors.white",[eh.variable]:"shadows.lg",_dark:{[Jf.variable]:"colors.gray.700",[eh.variable]:"shadows.dark-lg"},bg:Jf.reference,boxShadow:eh.reference}},IA={px:"6",py:"4",fontSize:"xl",fontWeight:"semibold"},BA={position:"absolute",top:"2",insetEnd:"3"},NA={px:"6",py:"2",flex:"1",overflow:"auto"},VA={px:"6",py:"4"},WA=Tp(e=>({overlay:LA,dialogContainer:OA,dialog:qt(FA,e),header:IA,closeButton:BA,body:NA,footer:VA})),UA={xs:Ei("xs"),sm:Ei("md"),md:Ei("lg"),lg:Ei("2xl"),xl:Ei("4xl"),full:Ei("full")},HA=DA({baseStyle:WA,sizes:UA,defaultProps:{size:"xs"}}),{definePartsStyle:GA,defineMultiStyleConfig:qA}=Fe(OR.keys),KA={borderRadius:"md",py:"1",transitionProperty:"common",transitionDuration:"normal"},YA={borderRadius:"md",py:"1",transitionProperty:"common",transitionDuration:"normal",width:"full",_focusVisible:{boxShadow:"outline"},_placeholder:{opacity:.6}},XA={borderRadius:"md",py:"1",transitionProperty:"common",transitionDuration:"normal",width:"full",_focusVisible:{boxShadow:"outline"},_placeholder:{opacity:.6}},QA=GA({preview:KA,input:YA,textarea:XA}),ZA=qA({baseStyle:QA}),{definePartsStyle:JA,defineMultiStyleConfig:e$}=Fe(FR.keys),da=Y("form-control-color"),t$={marginStart:"1",[da.variable]:"colors.red.500",_dark:{[da.variable]:"colors.red.300"},color:da.reference},r$={mt:"2",[da.variable]:"colors.gray.600",_dark:{[da.variable]:"colors.whiteAlpha.600"},color:da.reference,lineHeight:"normal",fontSize:"sm"},n$=JA({container:{width:"100%",position:"relative"},requiredIndicator:t$,helperText:r$}),o$=e$({baseStyle:n$}),{definePartsStyle:i$,defineMultiStyleConfig:a$}=Fe(IR.keys),fa=Y("form-error-color"),s$={[fa.variable]:"colors.red.500",_dark:{[fa.variable]:"colors.red.300"},color:fa.reference,mt:"2",fontSize:"sm",lineHeight:"normal"},l$={marginEnd:"0.5em",[fa.variable]:"colors.red.500",_dark:{[fa.variable]:"colors.red.300"},color:fa.reference},u$=i$({text:s$,icon:l$}),c$=a$({baseStyle:u$}),d$={fontSize:"md",marginEnd:"3",mb:"2",fontWeight:"medium",transitionProperty:"common",transitionDuration:"normal",opacity:1,_disabled:{opacity:.4}},f$={baseStyle:d$},h$={fontFamily:"heading",fontWeight:"bold"},p$={"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}},m$={baseStyle:h$,sizes:p$,defaultProps:{size:"xl"}},{defineMultiStyleConfig:g$,definePartsStyle:v$}=Fe(MR.keys),th=Y("breadcrumb-link-decor"),y$={transitionProperty:"common",transitionDuration:"fast",transitionTimingFunction:"ease-out",outline:"none",color:"inherit",textDecoration:th.reference,[th.variable]:"none","&:not([aria-current=page])":{cursor:"pointer",_hover:{[th.variable]:"underline"},_focusVisible:{boxShadow:"outline"}}},b$=v$({link:y$}),x$=g$({baseStyle:b$}),S$={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"}}},pw=e=>{const{colorScheme:t,theme:r}=e;if(t==="gray")return{color:K("gray.800","whiteAlpha.900")(e),_hover:{bg:K("gray.100","whiteAlpha.200")(e)},_active:{bg:K("gray.200","whiteAlpha.300")(e)}};const n=_a(`${t}.200`,.12)(r),o=_a(`${t}.200`,.24)(r);return{color:K(`${t}.600`,`${t}.200`)(e),bg:"transparent",_hover:{bg:K(`${t}.50`,n)(e)},_active:{bg:K(`${t}.100`,o)(e)}}},w$=e=>{const{colorScheme:t}=e,r=K("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"},...qt(pw,e)}},k$={yellow:{bg:"yellow.400",color:"black",hoverBg:"yellow.500",activeBg:"yellow.600"},cyan:{bg:"cyan.400",color:"black",hoverBg:"cyan.500",activeBg:"cyan.600"}},C$=e=>{var t;const{colorScheme:r}=e;if(r==="gray"){const l=K("gray.100","whiteAlpha.200")(e);return{bg:l,color:K("gray.800","whiteAlpha.900")(e),_hover:{bg:K("gray.200","whiteAlpha.300")(e),_disabled:{bg:l}},_active:{bg:K("gray.300","whiteAlpha.400")(e)}}}const{bg:n=`${r}.500`,color:o="white",hoverBg:i=`${r}.600`,activeBg:a=`${r}.700`}=(t=k$[r])!=null?t:{},s=K(n,`${r}.200`)(e);return{bg:s,color:K(o,"gray.800")(e),_hover:{bg:K(i,`${r}.300`)(e),_disabled:{bg:s}},_active:{bg:K(a,`${r}.400`)(e)}}},P$=e=>{const{colorScheme:t}=e;return{padding:0,height:"auto",lineHeight:"normal",verticalAlign:"baseline",color:K(`${t}.500`,`${t}.200`)(e),_hover:{textDecoration:"underline",_disabled:{textDecoration:"none"}},_active:{color:K(`${t}.700`,`${t}.500`)(e)}}},_$={bg:"none",color:"inherit",display:"inline",lineHeight:"inherit",m:"0",p:"0"},T$={ghost:pw,outline:w$,solid:C$,link:P$,unstyled:_$},E$={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"}},R$={baseStyle:S$,variants:T$,sizes:E$,defaultProps:{variant:"solid",size:"md",colorScheme:"gray"}},{definePartsStyle:ci,defineMultiStyleConfig:j$}=Fe(t3.keys),Wc=Y("card-bg"),Un=Y("card-padding"),mw=Y("card-shadow"),ic=Y("card-radius"),gw=Y("card-border-width","0"),vw=Y("card-border-color"),A$=ci({container:{[Wc.variable]:"colors.chakra-body-bg",backgroundColor:Wc.reference,boxShadow:mw.reference,borderRadius:ic.reference,color:"chakra-body-text",borderWidth:gw.reference,borderColor:vw.reference},body:{padding:Un.reference,flex:"1 1 0%"},header:{padding:Un.reference},footer:{padding:Un.reference}}),$$={sm:ci({container:{[ic.variable]:"radii.base",[Un.variable]:"space.3"}}),md:ci({container:{[ic.variable]:"radii.md",[Un.variable]:"space.5"}}),lg:ci({container:{[ic.variable]:"radii.xl",[Un.variable]:"space.7"}})},z$={elevated:ci({container:{[mw.variable]:"shadows.base",_dark:{[Wc.variable]:"colors.gray.700"}}}),outline:ci({container:{[gw.variable]:"1px",[vw.variable]:"colors.chakra-border-color"}}),filled:ci({container:{[Wc.variable]:"colors.chakra-subtle-bg"}}),unstyled:{body:{[Un.variable]:0},header:{[Un.variable]:0},footer:{[Un.variable]:0}}},M$=j$({baseStyle:A$,variants:z$,sizes:$$,defaultProps:{variant:"elevated",size:"md"}}),Ns=xt("close-button-size"),us=xt("close-button-bg"),D$={w:[Ns.reference],h:[Ns.reference],borderRadius:"md",transitionProperty:"common",transitionDuration:"normal",_disabled:{opacity:.4,cursor:"not-allowed",boxShadow:"none"},_hover:{[us.variable]:"colors.blackAlpha.100",_dark:{[us.variable]:"colors.whiteAlpha.100"}},_active:{[us.variable]:"colors.blackAlpha.200",_dark:{[us.variable]:"colors.whiteAlpha.200"}},_focusVisible:{boxShadow:"outline"},bg:us.reference},L$={lg:{[Ns.variable]:"sizes.10",fontSize:"md"},md:{[Ns.variable]:"sizes.8",fontSize:"xs"},sm:{[Ns.variable]:"sizes.6",fontSize:"2xs"}},O$={baseStyle:D$,sizes:L$,defaultProps:{size:"md"}},{variants:F$,defaultProps:I$}=Is,B$={fontFamily:"mono",fontSize:"sm",px:"0.2em",borderRadius:"sm",bg:lt.bg.reference,color:lt.color.reference,boxShadow:lt.shadow.reference},N$={baseStyle:B$,variants:F$,defaultProps:I$},V$={w:"100%",mx:"auto",maxW:"prose",px:"4"},W$={baseStyle:V$},U$={opacity:.6,borderColor:"inherit"},H$={borderStyle:"solid"},G$={borderStyle:"dashed"},q$={solid:H$,dashed:G$},K$={baseStyle:U$,variants:q$,defaultProps:{variant:"solid"}},{definePartsStyle:Y$,defineMultiStyleConfig:X$}=Fe(AR.keys),Q$={borderTopWidth:"1px",borderColor:"inherit",_last:{borderBottomWidth:"1px"}},Z$={transitionProperty:"common",transitionDuration:"normal",fontSize:"md",_focusVisible:{boxShadow:"outline"},_hover:{bg:"blackAlpha.50"},_disabled:{opacity:.4,cursor:"not-allowed"},px:"4",py:"2"},J$={pt:"2",px:"4",pb:"5"},ez={fontSize:"1.25em"},tz=Y$({container:Q$,button:Z$,panel:J$,icon:ez}),rz=X$({baseStyle:tz}),{definePartsStyle:Ll,defineMultiStyleConfig:nz}=Fe($R.keys),gr=Y("alert-fg"),Jn=Y("alert-bg"),oz=Ll({container:{bg:Jn.reference,px:"4",py:"3"},title:{fontWeight:"bold",lineHeight:"6",marginEnd:"2"},description:{lineHeight:"6"},icon:{color:gr.reference,flexShrink:0,marginEnd:"3",w:"5",h:"6"},spinner:{color:gr.reference,flexShrink:0,marginEnd:"3",w:"5",h:"5"}});function dg(e){const{theme:t,colorScheme:r}=e,n=_a(`${r}.200`,.16)(t);return{light:`colors.${r}.100`,dark:n}}var iz=Ll(e=>{const{colorScheme:t}=e,r=dg(e);return{container:{[gr.variable]:`colors.${t}.500`,[Jn.variable]:r.light,_dark:{[gr.variable]:`colors.${t}.200`,[Jn.variable]:r.dark}}}}),az=Ll(e=>{const{colorScheme:t}=e,r=dg(e);return{container:{[gr.variable]:`colors.${t}.500`,[Jn.variable]:r.light,_dark:{[gr.variable]:`colors.${t}.200`,[Jn.variable]:r.dark},paddingStart:"3",borderStartWidth:"4px",borderStartColor:gr.reference}}}),sz=Ll(e=>{const{colorScheme:t}=e,r=dg(e);return{container:{[gr.variable]:`colors.${t}.500`,[Jn.variable]:r.light,_dark:{[gr.variable]:`colors.${t}.200`,[Jn.variable]:r.dark},pt:"2",borderTopWidth:"4px",borderTopColor:gr.reference}}}),lz=Ll(e=>{const{colorScheme:t}=e;return{container:{[gr.variable]:"colors.white",[Jn.variable]:`colors.${t}.500`,_dark:{[gr.variable]:"colors.gray.900",[Jn.variable]:`colors.${t}.200`},color:gr.reference}}}),uz={subtle:iz,"left-accent":az,"top-accent":sz,solid:lz},cz=nz({baseStyle:oz,variants:uz,defaultProps:{variant:"subtle",colorScheme:"blue"}}),{definePartsStyle:yw,defineMultiStyleConfig:dz}=Fe(zR.keys),ha=Y("avatar-border-color"),Vs=Y("avatar-bg"),Sl=Y("avatar-font-size"),Ta=Y("avatar-size"),fz={borderRadius:"full",border:"0.2em solid",borderColor:ha.reference,[ha.variable]:"white",_dark:{[ha.variable]:"colors.gray.800"}},hz={bg:Vs.reference,fontSize:Sl.reference,width:Ta.reference,height:Ta.reference,lineHeight:"1",[Vs.variable]:"colors.gray.200",_dark:{[Vs.variable]:"colors.whiteAlpha.400"}},pz=e=>{const{name:t,theme:r}=e,n=t?S3({string:t}):"colors.gray.400",o=b3(n)(r);let i="white";return o||(i="gray.800"),{bg:Vs.reference,fontSize:Sl.reference,color:i,borderColor:ha.reference,verticalAlign:"top",width:Ta.reference,height:Ta.reference,"&:not([data-loaded])":{[Vs.variable]:n},[ha.variable]:"colors.white",_dark:{[ha.variable]:"colors.gray.800"}}},mz={fontSize:Sl.reference,lineHeight:"1"},gz=yw(e=>({badge:qt(fz,e),excessLabel:qt(hz,e),container:qt(pz,e),label:mz}));function uo(e){const t=e!=="100%"?lw[e]:void 0;return yw({container:{[Ta.variable]:t??e,[Sl.variable]:`calc(${t??e} / 2.5)`},excessLabel:{[Ta.variable]:t??e,[Sl.variable]:`calc(${t??e} / 2.5)`}})}var vz={"2xs":uo(4),xs:uo(6),sm:uo(8),md:uo(12),lg:uo(16),xl:uo(24),"2xl":uo(32),full:uo("100%")},yz=dz({baseStyle:gz,sizes:vz,defaultProps:{size:"md"}}),bz={Accordion:rz,Alert:cz,Avatar:yz,Badge:Is,Breadcrumb:x$,Button:R$,Checkbox:Vc,CloseButton:O$,Code:N$,Container:W$,Divider:K$,Drawer:HA,Editable:ZA,Form:o$,FormError:c$,FormLabel:f$,Heading:m$,Input:ke,Kbd:Dj,Link:Oj,List:Vj,Menu:Jj,Modal:cA,NumberInput:bA,PinInput:kA,Popover:MA,Progress:N4,Radio:ej,Select:sj,Skeleton:uj,SkipLink:dj,Slider:wj,Spinner:Pj,Stat:zj,Switch:O3,Table:U3,Tabs:i4,Tag:y4,Textarea:j4,Tooltip:z4,Card:M$,Stepper:jR},xz={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"}}},Sz={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"}}},wz="ltr",kz={useSystemColorMode:!1,initialColorMode:"light",cssVarPrefix:"chakra"},po={semanticTokens:xz,direction:wz,...TR,components:bz,styles:Sz,config:kz};function _s(e){return typeof e=="function"}function Cz(...e){return t=>e.reduce((r,n)=>n(r),t)}var Pz=e=>function(...r){let n=[...r],o=r[r.length-1];return nR(o)&&n.length>1?n=n.slice(0,n.length-1):o=e,Cz(...n.map(i=>a=>_s(i)?i(a):Tz(a,i)))(o)},_z=Pz(po);function Tz(...e){return zr({},...e,bw)}function bw(e,t,r,n){if((_s(e)||_s(t))&&Object.prototype.hasOwnProperty.call(n,r))return(...o)=>{const i=_s(e)?e(...o):e,a=_s(t)?t(...o):t;return zr({},i,a,bw)}}function Ez(e,t){const r={};return Object.keys(e).forEach(n=>{t.includes(n)||(r[n]=e[n])}),r}function Rz(e,t,r,n){const o=typeof t=="string"?t.split("."):[t];for(n=0;n{const t=new WeakMap;return(n,o,i,a)=>{if(typeof n>"u")return e(n,o,i);t.has(n)||t.set(n,new Map);const s=t.get(n);if(s.has(o))return s.get(o);const l=e(n,o,i,a);return s.set(o,l),l}},xw=jz(Rz);function Sw(e,t){const r={};return Object.keys(e).forEach(n=>{const o=e[n];t(o,n,e)&&(r[n]=o)}),r}var ww=e=>Sw(e,t=>t!=null);function Az(e){return typeof e=="function"}function kw(e,...t){return Az(e)?e(...t):e}var $z=typeof Element<"u",zz=typeof Map=="function",Mz=typeof Set=="function",Dz=typeof ArrayBuffer=="function"&&!!ArrayBuffer.isView;function ac(e,t){if(e===t)return!0;if(e&&t&&typeof e=="object"&&typeof t=="object"){if(e.constructor!==t.constructor)return!1;var r,n,o;if(Array.isArray(e)){if(r=e.length,r!=t.length)return!1;for(n=r;n--!==0;)if(!ac(e[n],t[n]))return!1;return!0}var i;if(zz&&e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(i=e.entries();!(n=i.next()).done;)if(!t.has(n.value[0]))return!1;for(i=e.entries();!(n=i.next()).done;)if(!ac(n.value[1],t.get(n.value[0])))return!1;return!0}if(Mz&&e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(i=e.entries();!(n=i.next()).done;)if(!t.has(n.value[0]))return!1;return!0}if(Dz&&ArrayBuffer.isView(e)&&ArrayBuffer.isView(t)){if(r=e.length,r!=t.length)return!1;for(n=r;n--!==0;)if(e[n]!==t[n])return!1;return!0}if(e.constructor===RegExp)return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf&&typeof e.valueOf=="function"&&typeof t.valueOf=="function")return e.valueOf()===t.valueOf();if(e.toString!==Object.prototype.toString&&typeof e.toString=="function"&&typeof t.toString=="function")return e.toString()===t.toString();if(o=Object.keys(e),r=o.length,r!==Object.keys(t).length)return!1;for(n=r;n--!==0;)if(!Object.prototype.hasOwnProperty.call(t,o[n]))return!1;if($z&&e instanceof Element)return!1;for(n=r;n--!==0;)if(!((o[n]==="_owner"||o[n]==="__v"||o[n]==="__o")&&e.$$typeof)&&!ac(e[o[n]],t[o[n]]))return!1;return!0}return e!==e&&t!==t}var Lz=function(t,r){try{return ac(t,r)}catch(n){if((n.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw n}};const Oz=Jp(Lz);function Cw(e,t={}){var r;const{styleConfig:n,...o}=t,{theme:i,colorMode:a}=$T(),s=e?xw(i,`components.${e}`):void 0,l=n||s,u=zr({theme:i,colorMode:a},(r=l==null?void 0:l.defaultProps)!=null?r:{},ww(Ez(o,["children"]))),c=S.useRef({});if(l){const f=eR(l)(u);Oz(c.current,f)||(c.current=f)}return c.current}function En(e,t={}){return Cw(e,t)}function wi(e,t={}){return Cw(e,t)}var Fz=new Set([...VE,"textStyle","layerStyle","apply","noOfLines","focusBorderColor","errorBorderColor","as","__css","css","sx"]),Iz=new Set(["htmlWidth","htmlHeight","htmlSize","htmlTranslate"]);function Bz(e){return Iz.has(e)||!Fz.has(e)}function Nz(e,...t){if(e==null)throw new TypeError("Cannot convert undefined or null to object");const r={...e};for(const n of t)if(n!=null)for(const o in n)Object.prototype.hasOwnProperty.call(n,o)&&(o in r&&delete r[o],r[o]=n[o]);return r}function Vz(e){const t=Object.assign({},e);for(let r in t)t[r]===void 0&&delete t[r];return t}function Wz(e){var t=Object.create(null);return function(r){return t[r]===void 0&&(t[r]=e(r)),t[r]}}var Uz=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,Hz=Wz(function(e){return Uz.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),Gz=Hz,qz=function(t){return t!=="theme"},xy=function(t){return typeof t=="string"&&t.charCodeAt(0)>96?Gz:qz},Sy=function(t,r,n){var o;if(r){var i=r.shouldForwardProp;o=t.__emotion_forwardProp&&i?function(a){return t.__emotion_forwardProp(a)&&i(a)}:i}return typeof o!="function"&&n&&(o=t.__emotion_forwardProp),o},Kz=function(t){var r=t.cache,n=t.serialized,o=t.isStringTag;return BS(r,n,o),lT(function(){return NS(r,n,o)}),null},Yz=function e(t,r){var n=t.__emotion_real===t,o=n&&t.__emotion_base||t,i,a;r!==void 0&&(i=r.label,a=r.target);var s=Sy(t,r,n),l=s||xy(o),u=!l("as");return function(){var c=arguments,d=n&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(i!==void 0&&d.push("label:"+i+";"),c[0]==null||c[0].raw===void 0)d.push.apply(d,c);else{d.push(c[0][0]);for(var f=c.length,p=1;pt=>{const{theme:r,css:n,__css:o,sx:i,...a}=t,s=Sw(a,(d,f)=>UE(f)),l=kw(e,t),u=Nz({},o,l,ww(s),i),c=iw(u)(t.theme);return n?[c,n]:c};function rh(e,t){const{baseStyle:r,...n}=t??{};n.shouldForwardProp||(n.shouldForwardProp=Bz);const o=Zz({baseStyle:r}),i=Qz(e,n)(o);return hr.forwardRef(function(l,u){const{colorMode:c,forced:d}=ng();return hr.createElement(i,{ref:u,"data-theme":d?c:void 0,...l})})}function Jz(){const e=new Map;return new Proxy(rh,{apply(t,r,n){return rh(...n)},get(t,r){return e.has(r)||e.set(r,rh(r)),e.get(r)}})}var X=Jz();function ce(e){return S.forwardRef(e)}function Pw(e={}){const{strict:t=!0,errorMessage:r="useContext: `context` is undefined. Seems you forgot to wrap component within the Provider",name:n}=e,o=S.createContext(void 0);o.displayName=n;function i(){var a;const s=S.useContext(o);if(!s&&t){const l=new Error(r);throw l.name="ContextError",(a=Error.captureStackTrace)==null||a.call(Error,l,i),l}return s}return[o.Provider,i,o]}function eM(e){const{cssVarsRoot:t,theme:r,children:n}=e,o=S.useMemo(()=>IE(r),[r]);return h.jsxs(dT,{theme:o,children:[h.jsx(tM,{root:t}),n]})}function tM({root:e=":host, :root"}){const t=[e,"[data-theme]"].join(",");return h.jsx(zd,{styles:r=>({[t]:r.__cssVars})})}Pw({name:"StylesContext",errorMessage:"useStyles: `styles` is undefined. Seems you forgot to wrap the components in `` "});function rM(e){return Pw({name:`${e}StylesContext`,errorMessage:`useStyles: "styles" is undefined. Seems you forgot to wrap the components in "<${e} />" `})}function nM(){const{colorMode:e}=ng();return h.jsx(zd,{styles:t=>{const r=xw(t,"styles.global"),n=kw(r,{theme:t,colorMode:e});return n?iw(n)(t):void 0}})}var _w=S.createContext({getDocument(){return document},getWindow(){return window}});_w.displayName="EnvironmentContext";function Tw(e){const{children:t,environment:r,disabled:n}=e,o=S.useRef(null),i=S.useMemo(()=>r||{getDocument:()=>{var s,l;return(l=(s=o.current)==null?void 0:s.ownerDocument)!=null?l:document},getWindow:()=>{var s,l;return(l=(s=o.current)==null?void 0:s.ownerDocument.defaultView)!=null?l:window}},[r]),a=!n||!r;return h.jsxs(_w.Provider,{value:i,children:[t,a&&h.jsx("span",{id:"__chakra_env",hidden:!0,ref:o})]})}Tw.displayName="EnvironmentProvider";var oM=e=>{const{children:t,colorModeManager:r,portalZIndex:n,resetScope:o,resetCSS:i=!0,theme:a={},environment:s,cssVarsRoot:l,disableEnvironment:u,disableGlobalStyle:c}=e,d=h.jsx(Tw,{environment:s,disabled:u,children:t});return h.jsx(eM,{theme:a,cssVarsRoot:l,children:h.jsxs(XS,{colorModeManager:r,options:a.config,children:[i?h.jsx(mT,{scope:o}):h.jsx(pT,{}),!c&&h.jsx(nM,{}),n?h.jsx(KS,{zIndex:n,children:d}):d]})})},iM=(e,t)=>e.find(r=>r.id===t);function ky(e,t){const r=Ew(e,t),n=r?e[r].findIndex(o=>o.id===t):-1;return{position:r,index:n}}function Ew(e,t){for(const[r,n]of Object.entries(e))if(iM(n,t))return r}function aM(e){const t=e.includes("right"),r=e.includes("left");let n="center";return t&&(n="flex-end"),r&&(n="flex-start"),{display:"flex",flexDirection:"column",alignItems:n}}function sM(e){const r=e==="top"||e==="bottom"?"0 auto":void 0,n=e.includes("top")?"env(safe-area-inset-top, 0px)":void 0,o=e.includes("bottom")?"env(safe-area-inset-bottom, 0px)":void 0,i=e.includes("left")?void 0:"env(safe-area-inset-right, 0px)",a=e.includes("right")?void 0:"env(safe-area-inset-left, 0px)";return{position:"fixed",zIndex:"var(--toast-z-index, 5500)",pointerEvents:"none",display:"flex",flexDirection:"column",margin:r,top:n,bottom:o,right:i,left:a}}function Hc(e,t=[]){const r=S.useRef(e);return S.useEffect(()=>{r.current=e}),S.useCallback((...n)=>{var o;return(o=r.current)==null?void 0:o.call(r,...n)},t)}function lM(e,t){const r=Hc(e);S.useEffect(()=>{if(t==null)return;let n=null;return n=window.setTimeout(()=>{r()},t),()=>{n&&window.clearTimeout(n)}},[t,r])}function Gc(e,t){const r=S.useRef(!1),n=S.useRef(!1);S.useEffect(()=>{if(r.current&&n.current)return e();n.current=!0},t),S.useEffect(()=>(r.current=!0,()=>{r.current=!1}),[])}const Rw=S.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"}),Id=S.createContext({}),Ol=S.createContext(null),Bd=typeof document<"u",fg=Bd?S.useLayoutEffect:S.useEffect,jw=S.createContext({strict:!1});function uM(e,t,r,n){const{visualElement:o}=S.useContext(Id),i=S.useContext(jw),a=S.useContext(Ol),s=S.useContext(Rw).reducedMotion,l=S.useRef();n=n||i.renderer,!l.current&&n&&(l.current=n(e,{visualState:t,parent:o,props:r,presenceContext:a,blockInitialAnimation:a?a.initial===!1:!1,reducedMotionConfig:s}));const u=l.current;S.useInsertionEffect(()=>{u&&u.update(r,a)});const c=S.useRef(!!window.HandoffAppearAnimations);return fg(()=>{u&&(u.render(),c.current&&u.animationState&&u.animationState.animateChanges())}),S.useEffect(()=>{u&&(u.updateFeatures(),!c.current&&u.animationState&&u.animationState.animateChanges(),window.HandoffAppearAnimations=void 0,c.current=!1)}),u}function Qi(e){return typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function cM(e,t,r){return S.useCallback(n=>{n&&e.mount&&e.mount(n),t&&(n?t.mount(n):t.unmount()),r&&(typeof r=="function"?r(n):Qi(r)&&(r.current=n))},[t])}function wl(e){return typeof e=="string"||Array.isArray(e)}function Nd(e){return typeof e=="object"&&typeof e.start=="function"}const hg=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],pg=["initial",...hg];function Vd(e){return Nd(e.animate)||pg.some(t=>wl(e[t]))}function Aw(e){return!!(Vd(e)||e.variants)}function dM(e,t){if(Vd(e)){const{initial:r,animate:n}=e;return{initial:r===!1||wl(r)?r:void 0,animate:wl(n)?n:void 0}}return e.inherit!==!1?t:{}}function fM(e){const{initial:t,animate:r}=dM(e,S.useContext(Id));return S.useMemo(()=>({initial:t,animate:r}),[Cy(t),Cy(r)])}function Cy(e){return Array.isArray(e)?e.join(" "):e}const Py={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"]},kl={};for(const e in Py)kl[e]={isEnabled:t=>Py[e].some(r=>!!t[r])};function hM(e){for(const t in e)kl[t]={...kl[t],...e[t]}}const mg=S.createContext({}),$w=S.createContext({}),pM=Symbol.for("motionComponentSymbol");function mM({preloadedFeatures:e,createVisualElement:t,useRender:r,useVisualState:n,Component:o}){e&&hM(e);function i(s,l){let u;const c={...S.useContext(Rw),...s,layoutId:gM(s)},{isStatic:d}=c,f=fM(s),p=n(s,d);if(!d&&Bd){f.visualElement=uM(o,p,c,t);const g=S.useContext($w),y=S.useContext(jw).strict;f.visualElement&&(u=f.visualElement.loadFeatures(c,y,e,g))}return S.createElement(Id.Provider,{value:f},u&&f.visualElement?S.createElement(u,{visualElement:f.visualElement,...c}):null,r(o,s,cM(p,f.visualElement,l),p,d,f.visualElement))}const a=S.forwardRef(i);return a[pM]=o,a}function gM({layoutId:e}){const t=S.useContext(mg).id;return t&&e!==void 0?t+"-"+e:e}function vM(e){function t(n,o={}){return mM(e(n,o))}if(typeof Proxy>"u")return t;const r=new Map;return new Proxy(t,{get:(n,o)=>(r.has(o)||r.set(o,t(o)),r.get(o))})}const yM=["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 gg(e){return typeof e!="string"||e.includes("-")?!1:!!(yM.indexOf(e)>-1||/[A-Z]/.test(e))}const qc={};function bM(e){Object.assign(qc,e)}const Fl=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],ki=new Set(Fl);function zw(e,{layout:t,layoutId:r}){return ki.has(e)||e.startsWith("origin")||(t||r!==void 0)&&(!!qc[e]||e==="opacity")}const ir=e=>!!(e&&e.getVelocity),xM={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},SM=Fl.length;function wM(e,{enableHardwareAcceleration:t=!0,allowTransformNone:r=!0},n,o){let i="";for(let a=0;at=>typeof t=="string"&&t.startsWith(e),Dw=Mw("--"),Ep=Mw("var(--"),kM=/var\s*\(\s*--[\w-]+(\s*,\s*(?:(?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)+)?\s*\)/g,CM=(e,t)=>t&&typeof e=="number"?t.transform(e):e,Mo=(e,t,r)=>Math.min(Math.max(r,e),t),Ci={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},Ws={...Ci,transform:e=>Mo(0,1,e)},ju={...Ci,default:1},Us=e=>Math.round(e*1e5)/1e5,Wd=/(-)?([\d]*\.?[\d])+/g,Lw=/(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))/gi,PM=/^(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))$/i;function Il(e){return typeof e=="string"}const Bl=e=>({test:t=>Il(t)&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),co=Bl("deg"),kn=Bl("%"),ee=Bl("px"),_M=Bl("vh"),TM=Bl("vw"),_y={...kn,parse:e=>kn.parse(e)/100,transform:e=>kn.transform(e*100)},Ty={...Ci,transform:Math.round},Ow={borderWidth:ee,borderTopWidth:ee,borderRightWidth:ee,borderBottomWidth:ee,borderLeftWidth:ee,borderRadius:ee,radius:ee,borderTopLeftRadius:ee,borderTopRightRadius:ee,borderBottomRightRadius:ee,borderBottomLeftRadius:ee,width:ee,maxWidth:ee,height:ee,maxHeight:ee,size:ee,top:ee,right:ee,bottom:ee,left:ee,padding:ee,paddingTop:ee,paddingRight:ee,paddingBottom:ee,paddingLeft:ee,margin:ee,marginTop:ee,marginRight:ee,marginBottom:ee,marginLeft:ee,rotate:co,rotateX:co,rotateY:co,rotateZ:co,scale:ju,scaleX:ju,scaleY:ju,scaleZ:ju,skew:co,skewX:co,skewY:co,distance:ee,translateX:ee,translateY:ee,translateZ:ee,x:ee,y:ee,z:ee,perspective:ee,transformPerspective:ee,opacity:Ws,originX:_y,originY:_y,originZ:ee,zIndex:Ty,fillOpacity:Ws,strokeOpacity:Ws,numOctaves:Ty};function vg(e,t,r,n){const{style:o,vars:i,transform:a,transformOrigin:s}=e;let l=!1,u=!1,c=!0;for(const d in t){const f=t[d];if(Dw(d)){i[d]=f;continue}const p=Ow[d],g=CM(f,p);if(ki.has(d)){if(l=!0,a[d]=g,!c)continue;f!==(p.default||0)&&(c=!1)}else d.startsWith("origin")?(u=!0,s[d]=g):o[d]=g}if(t.transform||(l||n?o.transform=wM(e.transform,r,c,n):o.transform&&(o.transform="none")),u){const{originX:d="50%",originY:f="50%",originZ:p=0}=s;o.transformOrigin=`${d} ${f} ${p}`}}const yg=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function Fw(e,t,r){for(const n in t)!ir(t[n])&&!zw(n,r)&&(e[n]=t[n])}function EM({transformTemplate:e},t,r){return S.useMemo(()=>{const n=yg();return vg(n,t,{enableHardwareAcceleration:!r},e),Object.assign({},n.vars,n.style)},[t])}function RM(e,t,r){const n=e.style||{},o={};return Fw(o,n,e),Object.assign(o,EM(e,t,r)),e.transformValues?e.transformValues(o):o}function jM(e,t,r){const n={},o=RM(e,t,r);return e.drag&&e.dragListener!==!1&&(n.draggable=!1,o.userSelect=o.WebkitUserSelect=o.WebkitTouchCallout="none",o.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(n.tabIndex=0),n.style=o,n}const AM=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","transformValues","custom","inherit","onLayoutAnimationStart","onLayoutAnimationComplete","onLayoutMeasure","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","ignoreStrict","viewport"]);function Kc(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||AM.has(e)}let Iw=e=>!Kc(e);function $M(e){e&&(Iw=t=>t.startsWith("on")?!Kc(t):e(t))}try{$M(require("@emotion/is-prop-valid").default)}catch{}function zM(e,t,r){const n={};for(const o in e)o==="values"&&typeof e.values=="object"||(Iw(o)||r===!0&&Kc(o)||!t&&!Kc(o)||e.draggable&&o.startsWith("onDrag"))&&(n[o]=e[o]);return n}function Ey(e,t,r){return typeof e=="string"?e:ee.transform(t+r*e)}function MM(e,t,r){const n=Ey(t,e.x,e.width),o=Ey(r,e.y,e.height);return`${n} ${o}`}const DM={offset:"stroke-dashoffset",array:"stroke-dasharray"},LM={offset:"strokeDashoffset",array:"strokeDasharray"};function OM(e,t,r=1,n=0,o=!0){e.pathLength=1;const i=o?DM:LM;e[i.offset]=ee.transform(-n);const a=ee.transform(t),s=ee.transform(r);e[i.array]=`${a} ${s}`}function bg(e,{attrX:t,attrY:r,attrScale:n,originX:o,originY:i,pathLength:a,pathSpacing:s=1,pathOffset:l=0,...u},c,d,f){if(vg(e,u,c,f),d){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:p,style:g,dimensions:y}=e;p.transform&&(y&&(g.transform=p.transform),delete p.transform),y&&(o!==void 0||i!==void 0||g.transform)&&(g.transformOrigin=MM(y,o!==void 0?o:.5,i!==void 0?i:.5)),t!==void 0&&(p.x=t),r!==void 0&&(p.y=r),n!==void 0&&(p.scale=n),a!==void 0&&OM(p,a,s,l,!1)}const Bw=()=>({...yg(),attrs:{}}),xg=e=>typeof e=="string"&&e.toLowerCase()==="svg";function FM(e,t,r,n){const o=S.useMemo(()=>{const i=Bw();return bg(i,t,{enableHardwareAcceleration:!1},xg(n),e.transformTemplate),{...i.attrs,style:{...i.style}}},[t]);if(e.style){const i={};Fw(i,e.style,e),o.style={...i,...o.style}}return o}function IM(e=!1){return(r,n,o,{latestValues:i},a)=>{const l=(gg(r)?FM:jM)(n,i,a,r),c={...zM(n,typeof r=="string",e),...l,ref:o},{children:d}=n,f=S.useMemo(()=>ir(d)?d.get():d,[d]);return S.createElement(r,{...c,children:f})}}const Sg=e=>e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase();function Nw(e,{style:t,vars:r},n,o){Object.assign(e.style,t,o&&o.getProjectionStyles(n));for(const i in r)e.style.setProperty(i,r[i])}const Vw=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 Ww(e,t,r,n){Nw(e,t,void 0,n);for(const o in t.attrs)e.setAttribute(Vw.has(o)?o:Sg(o),t.attrs[o])}function wg(e,t){const{style:r}=e,n={};for(const o in r)(ir(r[o])||t.style&&ir(t.style[o])||zw(o,e))&&(n[o]=r[o]);return n}function Uw(e,t){const r=wg(e,t);for(const n in e)if(ir(e[n])||ir(t[n])){const o=Fl.indexOf(n)!==-1?"attr"+n.charAt(0).toUpperCase()+n.substring(1):n;r[o]=e[n]}return r}function kg(e,t,r,n={},o={}){return typeof t=="function"&&(t=t(r!==void 0?r:e.custom,n,o)),typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"&&(t=t(r!==void 0?r:e.custom,n,o)),t}function Hw(e){const t=S.useRef(null);return t.current===null&&(t.current=e()),t.current}const Yc=e=>Array.isArray(e),BM=e=>!!(e&&typeof e=="object"&&e.mix&&e.toValue),NM=e=>Yc(e)?e[e.length-1]||0:e;function sc(e){const t=ir(e)?e.get():e;return BM(t)?t.toValue():t}function VM({scrapeMotionValuesFromProps:e,createRenderState:t,onMount:r},n,o,i){const a={latestValues:WM(n,o,i,e),renderState:t()};return r&&(a.mount=s=>r(n,s,a)),a}const Gw=e=>(t,r)=>{const n=S.useContext(Id),o=S.useContext(Ol),i=()=>VM(e,t,n,o);return r?i():Hw(i)};function WM(e,t,r,n){const o={},i=n(e,{});for(const f in i)o[f]=sc(i[f]);let{initial:a,animate:s}=e;const l=Vd(e),u=Aw(e);t&&u&&!l&&e.inherit!==!1&&(a===void 0&&(a=t.initial),s===void 0&&(s=t.animate));let c=r?r.initial===!1:!1;c=c||a===!1;const d=c?s:a;return d&&typeof d!="boolean"&&!Nd(d)&&(Array.isArray(d)?d:[d]).forEach(p=>{const g=kg(e,p);if(!g)return;const{transitionEnd:y,transition:w,...v}=g;for(const m in v){let x=v[m];if(Array.isArray(x)){const b=c?x.length-1:0;x=x[b]}x!==null&&(o[m]=x)}for(const m in y)o[m]=y[m]}),o}const it=e=>e;class Ry{constructor(){this.order=[],this.scheduled=new Set}add(t){if(!this.scheduled.has(t))return this.scheduled.add(t),this.order.push(t),!0}remove(t){const r=this.order.indexOf(t);r!==-1&&(this.order.splice(r,1),this.scheduled.delete(t))}clear(){this.order.length=0,this.scheduled.clear()}}function UM(e){let t=new Ry,r=new Ry,n=0,o=!1,i=!1;const a=new WeakSet,s={schedule:(l,u=!1,c=!1)=>{const d=c&&o,f=d?t:r;return u&&a.add(l),f.add(l)&&d&&o&&(n=t.order.length),l},cancel:l=>{r.remove(l),a.delete(l)},process:l=>{if(o){i=!0;return}if(o=!0,[t,r]=[r,t],r.clear(),n=t.order.length,n)for(let u=0;u(d[f]=UM(()=>r=!0),d),{}),a=d=>i[d].process(o),s=()=>{const d=performance.now();r=!1,o.delta=n?1e3/60:Math.max(Math.min(d-o.timestamp,HM),1),o.timestamp=d,o.isProcessing=!0,Au.forEach(a),o.isProcessing=!1,r&&t&&(n=!1,e(s))},l=()=>{r=!0,n=!0,o.isProcessing||e(s)};return{schedule:Au.reduce((d,f)=>{const p=i[f];return d[f]=(g,y=!1,w=!1)=>(r||l(),p.schedule(g,y,w)),d},{}),cancel:d=>Au.forEach(f=>i[f].cancel(d)),state:o,steps:i}}const{schedule:Oe,cancel:eo,state:kt,steps:nh}=GM(typeof requestAnimationFrame<"u"?requestAnimationFrame:it,!0),qM={useVisualState:Gw({scrapeMotionValuesFromProps:Uw,createRenderState:Bw,onMount:(e,t,{renderState:r,latestValues:n})=>{Oe.read(()=>{try{r.dimensions=typeof t.getBBox=="function"?t.getBBox():t.getBoundingClientRect()}catch{r.dimensions={x:0,y:0,width:0,height:0}}}),Oe.render(()=>{bg(r,n,{enableHardwareAcceleration:!1},xg(t.tagName),e.transformTemplate),Ww(t,r)})}})},KM={useVisualState:Gw({scrapeMotionValuesFromProps:wg,createRenderState:yg})};function YM(e,{forwardMotionProps:t=!1},r,n){return{...gg(e)?qM:KM,preloadedFeatures:r,useRender:IM(t),createVisualElement:n,Component:e}}function Nn(e,t,r,n={passive:!0}){return e.addEventListener(t,r,n),()=>e.removeEventListener(t,r)}const qw=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1;function Ud(e,t="page"){return{point:{x:e[t+"X"],y:e[t+"Y"]}}}const XM=e=>t=>qw(t)&&e(t,Ud(t));function Hn(e,t,r,n){return Nn(e,t,XM(r),n)}const QM=(e,t)=>r=>t(e(r)),Ro=(...e)=>e.reduce(QM);function Kw(e){let t=null;return()=>{const r=()=>{t=null};return t===null?(t=e,r):!1}}const jy=Kw("dragHorizontal"),Ay=Kw("dragVertical");function Yw(e){let t=!1;if(e==="y")t=Ay();else if(e==="x")t=jy();else{const r=jy(),n=Ay();r&&n?t=()=>{r(),n()}:(r&&r(),n&&n())}return t}function Xw(){const e=Yw(!0);return e?(e(),!1):!0}class Io{constructor(t){this.isMounted=!1,this.node=t}update(){}}function $y(e,t){const r="pointer"+(t?"enter":"leave"),n="onHover"+(t?"Start":"End"),o=(i,a)=>{if(i.type==="touch"||Xw())return;const s=e.getProps();e.animationState&&s.whileHover&&e.animationState.setActive("whileHover",t),s[n]&&Oe.update(()=>s[n](i,a))};return Hn(e.current,r,o,{passive:!e.getProps()[n]})}class ZM extends Io{mount(){this.unmount=Ro($y(this.node,!0),$y(this.node,!1))}unmount(){}}class JM extends Io{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=Ro(Nn(this.node.current,"focus",()=>this.onFocus()),Nn(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}const Qw=(e,t)=>t?e===t?!0:Qw(e,t.parentElement):!1;function oh(e,t){if(!t)return;const r=new PointerEvent("pointer"+e);t(r,Ud(r))}class eD extends Io{constructor(){super(...arguments),this.removeStartListeners=it,this.removeEndListeners=it,this.removeAccessibleListeners=it,this.startPointerPress=(t,r)=>{if(this.removeEndListeners(),this.isPressing)return;const n=this.node.getProps(),i=Hn(window,"pointerup",(s,l)=>{if(!this.checkPressEnd())return;const{onTap:u,onTapCancel:c}=this.node.getProps();Oe.update(()=>{Qw(this.node.current,s.target)?u&&u(s,l):c&&c(s,l)})},{passive:!(n.onTap||n.onPointerUp)}),a=Hn(window,"pointercancel",(s,l)=>this.cancelPress(s,l),{passive:!(n.onTapCancel||n.onPointerCancel)});this.removeEndListeners=Ro(i,a),this.startPress(t,r)},this.startAccessiblePress=()=>{const t=i=>{if(i.key!=="Enter"||this.isPressing)return;const a=s=>{s.key!=="Enter"||!this.checkPressEnd()||oh("up",(l,u)=>{const{onTap:c}=this.node.getProps();c&&Oe.update(()=>c(l,u))})};this.removeEndListeners(),this.removeEndListeners=Nn(this.node.current,"keyup",a),oh("down",(s,l)=>{this.startPress(s,l)})},r=Nn(this.node.current,"keydown",t),n=()=>{this.isPressing&&oh("cancel",(i,a)=>this.cancelPress(i,a))},o=Nn(this.node.current,"blur",n);this.removeAccessibleListeners=Ro(r,o)}}startPress(t,r){this.isPressing=!0;const{onTapStart:n,whileTap:o}=this.node.getProps();o&&this.node.animationState&&this.node.animationState.setActive("whileTap",!0),n&&Oe.update(()=>n(t,r))}checkPressEnd(){return this.removeEndListeners(),this.isPressing=!1,this.node.getProps().whileTap&&this.node.animationState&&this.node.animationState.setActive("whileTap",!1),!Xw()}cancelPress(t,r){if(!this.checkPressEnd())return;const{onTapCancel:n}=this.node.getProps();n&&Oe.update(()=>n(t,r))}mount(){const t=this.node.getProps(),r=Hn(this.node.current,"pointerdown",this.startPointerPress,{passive:!(t.onTapStart||t.onPointerStart)}),n=Nn(this.node.current,"focus",this.startAccessiblePress);this.removeStartListeners=Ro(r,n)}unmount(){this.removeStartListeners(),this.removeEndListeners(),this.removeAccessibleListeners()}}const Rp=new WeakMap,ih=new WeakMap,tD=e=>{const t=Rp.get(e.target);t&&t(e)},rD=e=>{e.forEach(tD)};function nD({root:e,...t}){const r=e||document;ih.has(r)||ih.set(r,{});const n=ih.get(r),o=JSON.stringify(t);return n[o]||(n[o]=new IntersectionObserver(rD,{root:e,...t})),n[o]}function oD(e,t,r){const n=nD(t);return Rp.set(e,r),n.observe(e),()=>{Rp.delete(e),n.unobserve(e)}}const iD={some:0,all:1};class aD extends Io{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:r,margin:n,amount:o="some",once:i}=t,a={root:r?r.current:void 0,rootMargin:n,threshold:typeof o=="number"?o:iD[o]},s=l=>{const{isIntersecting:u}=l;if(this.isInView===u||(this.isInView=u,i&&!u&&this.hasEnteredView))return;u&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",u);const{onViewportEnter:c,onViewportLeave:d}=this.node.getProps(),f=u?c:d;f&&f(l)};return oD(this.node.current,a,s)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:r}=this.node;["amount","margin","root"].some(sD(t,r))&&this.startObserver()}unmount(){}}function sD({viewport:e={}},{viewport:t={}}={}){return r=>e[r]!==t[r]}const lD={inView:{Feature:aD},tap:{Feature:eD},focus:{Feature:JM},hover:{Feature:ZM}};function Zw(e,t){if(!Array.isArray(t))return!1;const r=t.length;if(r!==e.length)return!1;for(let n=0;nt[n]=r.get()),t}function cD(e){const t={};return e.values.forEach((r,n)=>t[n]=r.getVelocity()),t}function Hd(e,t,r){const n=e.getProps();return kg(n,t,r!==void 0?r:n.custom,uD(e),cD(e))}const dD="framerAppearId",fD="data-"+Sg(dD);let hD=it,Cg=it;const jo=e=>e*1e3,Gn=e=>e/1e3,pD={current:!1},Jw=e=>Array.isArray(e)&&typeof e[0]=="number";function ek(e){return!!(!e||typeof e=="string"&&tk[e]||Jw(e)||Array.isArray(e)&&e.every(ek))}const Ts=([e,t,r,n])=>`cubic-bezier(${e}, ${t}, ${r}, ${n})`,tk={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Ts([0,.65,.55,1]),circOut:Ts([.55,0,1,.45]),backIn:Ts([.31,.01,.66,-.59]),backOut:Ts([.33,1.53,.69,.99])};function rk(e){if(e)return Jw(e)?Ts(e):Array.isArray(e)?e.map(rk):tk[e]}function mD(e,t,r,{delay:n=0,duration:o,repeat:i=0,repeatType:a="loop",ease:s,times:l}={}){const u={[t]:r};l&&(u.offset=l);const c=rk(s);return Array.isArray(c)&&(u.easing=c),e.animate(u,{delay:n,duration:o,easing:Array.isArray(c)?"linear":c,fill:"both",iterations:i+1,direction:a==="reverse"?"alternate":"normal"})}function gD(e,{repeat:t,repeatType:r="loop"}){const n=t&&r!=="loop"&&t%2===1?0:e.length-1;return e[n]}const nk=(e,t,r)=>(((1-3*r+3*t)*e+(3*r-6*t))*e+3*t)*e,vD=1e-7,yD=12;function bD(e,t,r,n,o){let i,a,s=0;do a=t+(r-t)/2,i=nk(a,n,o)-e,i>0?r=a:t=a;while(Math.abs(i)>vD&&++sbD(i,0,1,e,r);return i=>i===0||i===1?i:nk(o(i),t,n)}const xD=Nl(.42,0,1,1),SD=Nl(0,0,.58,1),ok=Nl(.42,0,.58,1),wD=e=>Array.isArray(e)&&typeof e[0]!="number",ik=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,ak=e=>t=>1-e(1-t),sk=e=>1-Math.sin(Math.acos(e)),Pg=ak(sk),kD=ik(Pg),lk=Nl(.33,1.53,.69,.99),_g=ak(lk),CD=ik(_g),PD=e=>(e*=2)<1?.5*_g(e):.5*(2-Math.pow(2,-10*(e-1))),_D={linear:it,easeIn:xD,easeInOut:ok,easeOut:SD,circIn:sk,circInOut:kD,circOut:Pg,backIn:_g,backInOut:CD,backOut:lk,anticipate:PD},zy=e=>{if(Array.isArray(e)){Cg(e.length===4);const[t,r,n,o]=e;return Nl(t,r,n,o)}else if(typeof e=="string")return _D[e];return e},Tg=(e,t)=>r=>!!(Il(r)&&PM.test(r)&&r.startsWith(e)||t&&Object.prototype.hasOwnProperty.call(r,t)),uk=(e,t,r)=>n=>{if(!Il(n))return n;const[o,i,a,s]=n.match(Wd);return{[e]:parseFloat(o),[t]:parseFloat(i),[r]:parseFloat(a),alpha:s!==void 0?parseFloat(s):1}},TD=e=>Mo(0,255,e),ah={...Ci,transform:e=>Math.round(TD(e))},oi={test:Tg("rgb","red"),parse:uk("red","green","blue"),transform:({red:e,green:t,blue:r,alpha:n=1})=>"rgba("+ah.transform(e)+", "+ah.transform(t)+", "+ah.transform(r)+", "+Us(Ws.transform(n))+")"};function ED(e){let t="",r="",n="",o="";return e.length>5?(t=e.substring(1,3),r=e.substring(3,5),n=e.substring(5,7),o=e.substring(7,9)):(t=e.substring(1,2),r=e.substring(2,3),n=e.substring(3,4),o=e.substring(4,5),t+=t,r+=r,n+=n,o+=o),{red:parseInt(t,16),green:parseInt(r,16),blue:parseInt(n,16),alpha:o?parseInt(o,16)/255:1}}const jp={test:Tg("#"),parse:ED,transform:oi.transform},Zi={test:Tg("hsl","hue"),parse:uk("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:r,alpha:n=1})=>"hsla("+Math.round(e)+", "+kn.transform(Us(t))+", "+kn.transform(Us(r))+", "+Us(Ws.transform(n))+")"},Vt={test:e=>oi.test(e)||jp.test(e)||Zi.test(e),parse:e=>oi.test(e)?oi.parse(e):Zi.test(e)?Zi.parse(e):jp.parse(e),transform:e=>Il(e)?e:e.hasOwnProperty("red")?oi.transform(e):Zi.transform(e)},Ze=(e,t,r)=>-r*e+r*t+e;function sh(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 RD({hue:e,saturation:t,lightness:r,alpha:n}){e/=360,t/=100,r/=100;let o=0,i=0,a=0;if(!t)o=i=a=r;else{const s=r<.5?r*(1+t):r+t-r*t,l=2*r-s;o=sh(l,s,e+1/3),i=sh(l,s,e),a=sh(l,s,e-1/3)}return{red:Math.round(o*255),green:Math.round(i*255),blue:Math.round(a*255),alpha:n}}const lh=(e,t,r)=>{const n=e*e;return Math.sqrt(Math.max(0,r*(t*t-n)+n))},jD=[jp,oi,Zi],AD=e=>jD.find(t=>t.test(e));function My(e){const t=AD(e);let r=t.parse(e);return t===Zi&&(r=RD(r)),r}const ck=(e,t)=>{const r=My(e),n=My(t),o={...r};return i=>(o.red=lh(r.red,n.red,i),o.green=lh(r.green,n.green,i),o.blue=lh(r.blue,n.blue,i),o.alpha=Ze(r.alpha,n.alpha,i),oi.transform(o))};function $D(e){var t,r;return isNaN(e)&&Il(e)&&(((t=e.match(Wd))===null||t===void 0?void 0:t.length)||0)+(((r=e.match(Lw))===null||r===void 0?void 0:r.length)||0)>0}const dk={regex:kM,countKey:"Vars",token:"${v}",parse:it},fk={regex:Lw,countKey:"Colors",token:"${c}",parse:Vt.parse},hk={regex:Wd,countKey:"Numbers",token:"${n}",parse:Ci.parse};function uh(e,{regex:t,countKey:r,token:n,parse:o}){const i=e.tokenised.match(t);i&&(e["num"+r]=i.length,e.tokenised=e.tokenised.replace(t,n),e.values.push(...i.map(o)))}function Xc(e){const t=e.toString(),r={value:t,tokenised:t,values:[],numVars:0,numColors:0,numNumbers:0};return r.value.includes("var(--")&&uh(r,dk),uh(r,fk),uh(r,hk),r}function pk(e){return Xc(e).values}function mk(e){const{values:t,numColors:r,numVars:n,tokenised:o}=Xc(e),i=t.length;return a=>{let s=o;for(let l=0;ltypeof e=="number"?0:e;function MD(e){const t=pk(e);return mk(e)(t.map(zD))}const Do={test:$D,parse:pk,createTransformer:mk,getAnimatableNone:MD},gk=(e,t)=>r=>`${r>0?t:e}`;function vk(e,t){return typeof e=="number"?r=>Ze(e,t,r):Vt.test(e)?ck(e,t):e.startsWith("var(")?gk(e,t):bk(e,t)}const yk=(e,t)=>{const r=[...e],n=r.length,o=e.map((i,a)=>vk(i,t[a]));return i=>{for(let a=0;a{const r={...e,...t},n={};for(const o in r)e[o]!==void 0&&t[o]!==void 0&&(n[o]=vk(e[o],t[o]));return o=>{for(const i in n)r[i]=n[i](o);return r}},bk=(e,t)=>{const r=Do.createTransformer(t),n=Xc(e),o=Xc(t);return n.numVars===o.numVars&&n.numColors===o.numColors&&n.numNumbers>=o.numNumbers?Ro(yk(n.values,o.values),r):gk(e,t)},Cl=(e,t,r)=>{const n=t-e;return n===0?1:(r-e)/n},Dy=(e,t)=>r=>Ze(e,t,r);function LD(e){return typeof e=="number"?Dy:typeof e=="string"?Vt.test(e)?ck:bk:Array.isArray(e)?yk:typeof e=="object"?DD:Dy}function OD(e,t,r){const n=[],o=r||LD(e[0]),i=e.length-1;for(let a=0;at[0];e[0]>e[i-1]&&(e=[...e].reverse(),t=[...t].reverse());const a=OD(t,n,o),s=a.length,l=u=>{let c=0;if(s>1)for(;cl(Mo(e[0],e[i-1],u)):l}function FD(e,t){const r=e[e.length-1];for(let n=1;n<=t;n++){const o=Cl(0,t,n);e.push(Ze(r,1,o))}}function ID(e){const t=[0];return FD(t,e.length-1),t}function BD(e,t){return e.map(r=>r*t)}function ND(e,t){return e.map(()=>t||ok).splice(0,e.length-1)}function Qc({duration:e=300,keyframes:t,times:r,ease:n="easeInOut"}){const o=wD(n)?n.map(zy):zy(n),i={done:!1,value:t[0]},a=BD(r&&r.length===t.length?r:ID(t),e),s=xk(a,t,{ease:Array.isArray(o)?o:ND(t,o)});return{calculatedDuration:e,next:l=>(i.value=s(l),i.done=l>=e,i)}}function Sk(e,t){return t?e*(1e3/t):0}const VD=5;function wk(e,t,r){const n=Math.max(t-VD,0);return Sk(r-e(n),t-n)}const ch=.001,WD=.01,Ly=10,UD=.05,HD=1;function GD({duration:e=800,bounce:t=.25,velocity:r=0,mass:n=1}){let o,i;hD(e<=jo(Ly));let a=1-t;a=Mo(UD,HD,a),e=Mo(WD,Ly,Gn(e)),a<1?(o=u=>{const c=u*a,d=c*e,f=c-r,p=Ap(u,a),g=Math.exp(-d);return ch-f/p*g},i=u=>{const d=u*a*e,f=d*r+r,p=Math.pow(a,2)*Math.pow(u,2)*e,g=Math.exp(-d),y=Ap(Math.pow(u,2),a);return(-o(u)+ch>0?-1:1)*((f-p)*g)/y}):(o=u=>{const c=Math.exp(-u*e),d=(u-r)*e+1;return-ch+c*d},i=u=>{const c=Math.exp(-u*e),d=(r-u)*(e*e);return c*d});const s=5/e,l=KD(o,i,s);if(e=jo(e),isNaN(l))return{stiffness:100,damping:10,duration:e};{const u=Math.pow(l,2)*n;return{stiffness:u,damping:a*2*Math.sqrt(n*u),duration:e}}}const qD=12;function KD(e,t,r){let n=r;for(let o=1;oe[r]!==void 0)}function QD(e){let t={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...e};if(!Oy(e,XD)&&Oy(e,YD)){const r=GD(e);t={...t,...r,velocity:0,mass:1},t.isResolvedFromDuration=!0}return t}function kk({keyframes:e,restDelta:t,restSpeed:r,...n}){const o=e[0],i=e[e.length-1],a={done:!1,value:o},{stiffness:s,damping:l,mass:u,velocity:c,duration:d,isResolvedFromDuration:f}=QD(n),p=c?-Gn(c):0,g=l/(2*Math.sqrt(s*u)),y=i-o,w=Gn(Math.sqrt(s/u)),v=Math.abs(y)<5;r||(r=v?.01:2),t||(t=v?.005:.5);let m;if(g<1){const x=Ap(w,g);m=b=>{const P=Math.exp(-g*w*b);return i-P*((p+g*w*y)/x*Math.sin(x*b)+y*Math.cos(x*b))}}else if(g===1)m=x=>i-Math.exp(-w*x)*(y+(p+w*y)*x);else{const x=w*Math.sqrt(g*g-1);m=b=>{const P=Math.exp(-g*w*b),E=Math.min(x*b,300);return i-P*((p+g*w*y)*Math.sinh(E)+x*y*Math.cosh(E))/x}}return{calculatedDuration:f&&d||null,next:x=>{const b=m(x);if(f)a.done=x>=d;else{let P=p;x!==0&&(g<1?P=wk(m,x,b):P=0);const E=Math.abs(P)<=r,C=Math.abs(i-b)<=t;a.done=E&&C}return a.value=a.done?i:b,a}}}function Fy({keyframes:e,velocity:t=0,power:r=.8,timeConstant:n=325,bounceDamping:o=10,bounceStiffness:i=500,modifyTarget:a,min:s,max:l,restDelta:u=.5,restSpeed:c}){const d=e[0],f={done:!1,value:d},p=R=>s!==void 0&&Rl,g=R=>s===void 0?l:l===void 0||Math.abs(s-R)-y*Math.exp(-R/n),x=R=>v+m(R),b=R=>{const M=m(R),z=x(R);f.done=Math.abs(M)<=u,f.value=f.done?v:z};let P,E;const C=R=>{p(f.value)&&(P=R,E=kk({keyframes:[f.value,g(f.value)],velocity:wk(x,R,f.value),damping:o,stiffness:i,restDelta:u,restSpeed:c}))};return C(0),{calculatedDuration:null,next:R=>{let M=!1;return!E&&P===void 0&&(M=!0,b(R),C(R)),P!==void 0&&R>P?E.next(R-P):(!M&&b(R),f)}}}const ZD=e=>{const t=({timestamp:r})=>e(r);return{start:()=>Oe.update(t,!0),stop:()=>eo(t),now:()=>kt.isProcessing?kt.timestamp:performance.now()}},Iy=2e4;function By(e){let t=0;const r=50;let n=e.next(t);for(;!n.done&&t=Iy?1/0:t}const JD={decay:Fy,inertia:Fy,tween:Qc,keyframes:Qc,spring:kk};function Zc({autoplay:e=!0,delay:t=0,driver:r=ZD,keyframes:n,type:o="keyframes",repeat:i=0,repeatDelay:a=0,repeatType:s="loop",onPlay:l,onStop:u,onComplete:c,onUpdate:d,...f}){let p=1,g=!1,y,w;const v=()=>{w=new Promise(H=>{y=H})};v();let m;const x=JD[o]||Qc;let b;x!==Qc&&typeof n[0]!="number"&&(b=xk([0,100],n,{clamp:!1}),n=[0,100]);const P=x({...f,keyframes:n});let E;s==="mirror"&&(E=x({...f,keyframes:[...n].reverse(),velocity:-(f.velocity||0)}));let C="idle",R=null,M=null,z=null;P.calculatedDuration===null&&i&&(P.calculatedDuration=By(P));const{calculatedDuration:L}=P;let U=1/0,Q=1/0;L!==null&&(U=L+a,Q=U*(i+1)-a);let Z=0;const se=H=>{if(M===null)return;p>0&&(M=Math.min(M,H)),p<0&&(M=Math.min(H-Q/p,M)),R!==null?Z=R:Z=Math.round(H-M)*p;const le=Z-t*(p>=0?1:-1),ie=p>=0?le<0:le>Q;Z=Math.max(le,0),C==="finished"&&R===null&&(Z=Q);let re=Z,de=P;if(i){const rt=Z/U;let St=Math.floor(rt),nt=rt%1;!nt&&rt>=1&&(nt=1),nt===1&&St--,St=Math.min(St,i+1);const ve=!!(St%2);ve&&(s==="reverse"?(nt=1-nt,a&&(nt-=a/U)):s==="mirror"&&(de=E));let ut=Mo(0,1,nt);Z>Q&&(ut=s==="reverse"&&ve?1:0),re=ut*U}const ge=ie?{done:!1,value:n[0]}:de.next(re);b&&(ge.value=b(ge.value));let{done:tt}=ge;!ie&&L!==null&&(tt=p>=0?Z>=Q:Z<=0);const ze=R===null&&(C==="finished"||C==="running"&&tt);return d&&d(ge.value),ze&&F(),ge},J=()=>{m&&m.stop(),m=void 0},oe=()=>{C="idle",J(),y(),v(),M=z=null},F=()=>{C="finished",c&&c(),J(),y()},I=()=>{if(g)return;m||(m=r(se));const H=m.now();l&&l(),R!==null?M=H-R:(!M||C==="finished")&&(M=H),C==="finished"&&v(),z=M,R=null,C="running",m.start()};e&&I();const G={then(H,le){return w.then(H,le)},get time(){return Gn(Z)},set time(H){H=jo(H),Z=H,R!==null||!m||p===0?R=H:M=m.now()-H/p},get duration(){const H=P.calculatedDuration===null?By(P):P.calculatedDuration;return Gn(H)},get speed(){return p},set speed(H){H===p||!m||(p=H,G.time=Gn(Z))},get state(){return C},play:I,pause:()=>{C="paused",R=Z},stop:()=>{g=!0,C!=="idle"&&(C="idle",u&&u(),oe())},cancel:()=>{z!==null&&se(z),oe()},complete:()=>{C="finished"},sample:H=>(M=0,se(H))};return G}function eL(e){let t;return()=>(t===void 0&&(t=e()),t)}const tL=eL(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),rL=new Set(["opacity","clipPath","filter","transform","backgroundColor"]),$u=10,nL=2e4,oL=(e,t)=>t.type==="spring"||e==="backgroundColor"||!ek(t.ease);function iL(e,t,{onUpdate:r,onComplete:n,...o}){if(!(tL()&&rL.has(t)&&!o.repeatDelay&&o.repeatType!=="mirror"&&o.damping!==0&&o.type!=="inertia"))return!1;let a=!1,s,l;const u=()=>{l=new Promise(m=>{s=m})};u();let{keyframes:c,duration:d=300,ease:f,times:p}=o;if(oL(t,o)){const m=Zc({...o,repeat:0,delay:0});let x={done:!1,value:c[0]};const b=[];let P=0;for(;!x.done&&Pg.cancel(),w=()=>{Oe.update(y),s(),u()};return g.onfinish=()=>{e.set(gD(c,o)),n&&n(),w()},{then(m,x){return l.then(m,x)},attachTimeline(m){return g.timeline=m,g.onfinish=null,it},get time(){return Gn(g.currentTime||0)},set time(m){g.currentTime=jo(m)},get speed(){return g.playbackRate},set speed(m){g.playbackRate=m},get duration(){return Gn(d)},play:()=>{a||(g.play(),eo(y))},pause:()=>g.pause(),stop:()=>{if(a=!0,g.playState==="idle")return;const{currentTime:m}=g;if(m){const x=Zc({...o,autoplay:!1});e.setWithVelocity(x.sample(m-$u).value,x.sample(m).value,$u)}w()},complete:()=>g.finish(),cancel:w}}function aL({keyframes:e,delay:t,onUpdate:r,onComplete:n}){const o=()=>(r&&r(e[e.length-1]),n&&n(),{time:0,speed:1,duration:0,play:it,pause:it,stop:it,then:i=>(i(),Promise.resolve()),cancel:it,complete:it});return t?Zc({keyframes:[0,1],duration:0,delay:t,onComplete:o}):o()}const sL={type:"spring",stiffness:500,damping:25,restSpeed:10},lL=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),uL={type:"keyframes",duration:.8},cL={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},dL=(e,{keyframes:t})=>t.length>2?uL:ki.has(e)?e.startsWith("scale")?lL(t[1]):sL:cL,$p=(e,t)=>e==="zIndex"?!1:!!(typeof t=="number"||Array.isArray(t)||typeof t=="string"&&(Do.test(t)||t==="0")&&!t.startsWith("url(")),fL=new Set(["brightness","contrast","saturate","opacity"]);function hL(e){const[t,r]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[n]=r.match(Wd)||[];if(!n)return e;const o=r.replace(n,"");let i=fL.has(t)?1:0;return n!==r&&(i*=100),t+"("+i+o+")"}const pL=/([a-z-]*)\(.*?\)/g,zp={...Do,getAnimatableNone:e=>{const t=e.match(pL);return t?t.map(hL).join(" "):e}},mL={...Ow,color:Vt,backgroundColor:Vt,outlineColor:Vt,fill:Vt,stroke:Vt,borderColor:Vt,borderTopColor:Vt,borderRightColor:Vt,borderBottomColor:Vt,borderLeftColor:Vt,filter:zp,WebkitFilter:zp},Eg=e=>mL[e];function Ck(e,t){let r=Eg(e);return r!==zp&&(r=Do),r.getAnimatableNone?r.getAnimatableNone(t):void 0}const Pk=e=>/^0[^.\s]+$/.test(e);function gL(e){if(typeof e=="number")return e===0;if(e!==null)return e==="none"||e==="0"||Pk(e)}function vL(e,t,r,n){const o=$p(t,r);let i;Array.isArray(r)?i=[...r]:i=[null,r];const a=n.from!==void 0?n.from:e.get();let s;const l=[];for(let u=0;uo=>{const i=_k(n,e)||{},a=i.delay||n.delay||0;let{elapsed:s=0}=n;s=s-jo(a);const l=vL(t,e,r,i),u=l[0],c=l[l.length-1],d=$p(e,u),f=$p(e,c);let p={keyframes:l,velocity:t.getVelocity(),ease:"easeOut",...i,delay:-s,onUpdate:g=>{t.set(g),i.onUpdate&&i.onUpdate(g)},onComplete:()=>{o(),i.onComplete&&i.onComplete()}};if(yL(i)||(p={...p,...dL(e,p)}),p.duration&&(p.duration=jo(p.duration)),p.repeatDelay&&(p.repeatDelay=jo(p.repeatDelay)),!d||!f||pD.current||i.type===!1)return aL(p);if(t.owner&&t.owner.current instanceof HTMLElement&&!t.owner.getProps().onUpdate){const g=iL(t,e,p);if(g)return g}return Zc(p)};function Jc(e){return!!(ir(e)&&e.add)}const Tk=e=>/^\-?\d*\.?\d+$/.test(e);function jg(e,t){e.indexOf(t)===-1&&e.push(t)}function Ag(e,t){const r=e.indexOf(t);r>-1&&e.splice(r,1)}class $g{constructor(){this.subscriptions=[]}add(t){return jg(this.subscriptions,t),()=>Ag(this.subscriptions,t)}notify(t,r,n){const o=this.subscriptions.length;if(o)if(o===1)this.subscriptions[0](t,r,n);else for(let i=0;i!isNaN(parseFloat(e));class xL{constructor(t,r={}){this.version="10.16.4",this.timeDelta=0,this.lastUpdated=0,this.canTrackVelocity=!1,this.events={},this.updateAndNotify=(n,o=!0)=>{this.prev=this.current,this.current=n;const{delta:i,timestamp:a}=kt;this.lastUpdated!==a&&(this.timeDelta=i,this.lastUpdated=a,Oe.postRender(this.scheduleVelocityCheck)),this.prev!==this.current&&this.events.change&&this.events.change.notify(this.current),this.events.velocityChange&&this.events.velocityChange.notify(this.getVelocity()),o&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.scheduleVelocityCheck=()=>Oe.postRender(this.velocityCheck),this.velocityCheck=({timestamp:n})=>{n!==this.lastUpdated&&(this.prev=this.current,this.events.velocityChange&&this.events.velocityChange.notify(this.getVelocity()))},this.hasAnimated=!1,this.prev=this.current=t,this.canTrackVelocity=bL(this.current),this.owner=r.owner}onChange(t){return this.on("change",t)}on(t,r){this.events[t]||(this.events[t]=new $g);const n=this.events[t].add(r);return t==="change"?()=>{n(),Oe.read(()=>{this.events.change.getSize()||this.stop()})}:n}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,r){this.passiveEffect=t,this.stopPassiveEffect=r}set(t,r=!0){!r||!this.passiveEffect?this.updateAndNotify(t,r):this.passiveEffect(t,this.updateAndNotify)}setWithVelocity(t,r,n){this.set(r),this.prev=t,this.timeDelta=n}jump(t){this.updateAndNotify(t),this.prev=t,this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return this.current}getPrevious(){return this.prev}getVelocity(){return this.canTrackVelocity?Sk(parseFloat(this.current)-parseFloat(this.prev),this.timeDelta):0}start(t){return this.stop(),new Promise(r=>{this.hasAnimated=!0,this.animation=t(r),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function Ea(e,t){return new xL(e,t)}const Ek=e=>t=>t.test(e),SL={test:e=>e==="auto",parse:e=>e},Rk=[Ci,ee,kn,co,TM,_M,SL],cs=e=>Rk.find(Ek(e)),wL=[...Rk,Vt,Do],kL=e=>wL.find(Ek(e));function CL(e,t,r){e.hasValue(t)?e.getValue(t).set(r):e.addValue(t,Ea(r))}function PL(e,t){const r=Hd(e,t);let{transitionEnd:n={},transition:o={},...i}=r?e.makeTargetAnimatable(r,!1):{};i={...i,...n};for(const a in i){const s=NM(i[a]);CL(e,a,s)}}function _L(e,t,r){var n,o;const i=Object.keys(t).filter(s=>!e.hasValue(s)),a=i.length;if(a)for(let s=0;sl.remove(d))),u.push(y)}return a&&Promise.all(u).then(()=>{a&&PL(e,a)}),u}function Mp(e,t,r={}){const n=Hd(e,t,r.custom);let{transition:o=e.getDefaultTransition()||{}}=n||{};r.transitionOverride&&(o=r.transitionOverride);const i=n?()=>Promise.all(jk(e,n,r)):()=>Promise.resolve(),a=e.variantChildren&&e.variantChildren.size?(l=0)=>{const{delayChildren:u=0,staggerChildren:c,staggerDirection:d}=o;return jL(e,t,u+l,c,d,r)}:()=>Promise.resolve(),{when:s}=o;if(s){const[l,u]=s==="beforeChildren"?[i,a]:[a,i];return l().then(()=>u())}else return Promise.all([i(),a(r.delay)])}function jL(e,t,r=0,n=0,o=1,i){const a=[],s=(e.variantChildren.size-1)*n,l=o===1?(u=0)=>u*n:(u=0)=>s-u*n;return Array.from(e.variantChildren).sort(AL).forEach((u,c)=>{u.notify("AnimationStart",t),a.push(Mp(u,t,{...i,delay:r+l(c)}).then(()=>u.notify("AnimationComplete",t)))}),Promise.all(a)}function AL(e,t){return e.sortNodePosition(t)}function $L(e,t,r={}){e.notify("AnimationStart",t);let n;if(Array.isArray(t)){const o=t.map(i=>Mp(e,i,r));n=Promise.all(o)}else if(typeof t=="string")n=Mp(e,t,r);else{const o=typeof t=="function"?Hd(e,t,r.custom):t;n=Promise.all(jk(e,o,r))}return n.then(()=>e.notify("AnimationComplete",t))}const zL=[...hg].reverse(),ML=hg.length;function DL(e){return t=>Promise.all(t.map(({animation:r,options:n})=>$L(e,r,n)))}function LL(e){let t=DL(e);const r=FL();let n=!0;const o=(l,u)=>{const c=Hd(e,u);if(c){const{transition:d,transitionEnd:f,...p}=c;l={...l,...p,...f}}return l};function i(l){t=l(e)}function a(l,u){const c=e.getProps(),d=e.getVariantContext(!0)||{},f=[],p=new Set;let g={},y=1/0;for(let v=0;vy&&P;const z=Array.isArray(b)?b:[b];let L=z.reduce(o,{});E===!1&&(L={});const{prevResolvedValues:U={}}=x,Q={...U,...L},Z=se=>{M=!0,p.delete(se),x.needsAnimating[se]=!0};for(const se in Q){const J=L[se],oe=U[se];g.hasOwnProperty(se)||(J!==oe?Yc(J)&&Yc(oe)?!Zw(J,oe)||R?Z(se):x.protectedKeys[se]=!0:J!==void 0?Z(se):p.add(se):J!==void 0&&p.has(se)?Z(se):x.protectedKeys[se]=!0)}x.prevProp=b,x.prevResolvedValues=L,x.isActive&&(g={...g,...L}),n&&e.blockInitialAnimation&&(M=!1),M&&!C&&f.push(...z.map(se=>({animation:se,options:{type:m,...l}})))}if(p.size){const v={};p.forEach(m=>{const x=e.getBaseTarget(m);x!==void 0&&(v[m]=x)}),f.push({animation:v})}let w=!!f.length;return n&&c.initial===!1&&!e.manuallyAnimateOnMount&&(w=!1),n=!1,w?t(f):Promise.resolve()}function s(l,u,c){var d;if(r[l].isActive===u)return Promise.resolve();(d=e.variantChildren)===null||d===void 0||d.forEach(p=>{var g;return(g=p.animationState)===null||g===void 0?void 0:g.setActive(l,u)}),r[l].isActive=u;const f=a(c,l);for(const p in r)r[p].protectedKeys={};return f}return{animateChanges:a,setActive:s,setAnimateFunction:i,getState:()=>r}}function OL(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!Zw(t,e):!1}function Go(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function FL(){return{animate:Go(!0),whileInView:Go(),whileHover:Go(),whileTap:Go(),whileDrag:Go(),whileFocus:Go(),exit:Go()}}class IL extends Io{constructor(t){super(t),t.animationState||(t.animationState=LL(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();this.unmount(),Nd(t)&&(this.unmount=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:r}=this.node.prevProps||{};t!==r&&this.updateAnimationControlsSubscription()}unmount(){}}let BL=0;class NL extends Io{constructor(){super(...arguments),this.id=BL++}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:r,custom:n}=this.node.presenceContext,{isPresent:o}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===o)return;const i=this.node.animationState.setActive("exit",!t,{custom:n??this.node.getProps().custom});r&&!t&&i.then(()=>r(this.id))}mount(){const{register:t}=this.node.presenceContext||{};t&&(this.unmount=t(this.id))}unmount(){}}const VL={animation:{Feature:IL},exit:{Feature:NL}},Ny=(e,t)=>Math.abs(e-t);function WL(e,t){const r=Ny(e.x,t.x),n=Ny(e.y,t.y);return Math.sqrt(r**2+n**2)}class Ak{constructor(t,r,{transformPagePoint:n}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const u=fh(this.lastMoveEventInfo,this.history),c=this.startEvent!==null,d=WL(u.offset,{x:0,y:0})>=3;if(!c&&!d)return;const{point:f}=u,{timestamp:p}=kt;this.history.push({...f,timestamp:p});const{onStart:g,onMove:y}=this.handlers;c||(g&&g(this.lastMoveEvent,u),this.startEvent=this.lastMoveEvent),y&&y(this.lastMoveEvent,u)},this.handlePointerMove=(u,c)=>{this.lastMoveEvent=u,this.lastMoveEventInfo=dh(c,this.transformPagePoint),Oe.update(this.updatePoint,!0)},this.handlePointerUp=(u,c)=>{if(this.end(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const{onEnd:d,onSessionEnd:f}=this.handlers,p=fh(u.type==="pointercancel"?this.lastMoveEventInfo:dh(c,this.transformPagePoint),this.history);this.startEvent&&d&&d(u,p),f&&f(u,p)},!qw(t))return;this.handlers=r,this.transformPagePoint=n;const o=Ud(t),i=dh(o,this.transformPagePoint),{point:a}=i,{timestamp:s}=kt;this.history=[{...a,timestamp:s}];const{onSessionStart:l}=r;l&&l(t,fh(i,this.history)),this.removeListeners=Ro(Hn(window,"pointermove",this.handlePointerMove),Hn(window,"pointerup",this.handlePointerUp),Hn(window,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),eo(this.updatePoint)}}function dh(e,t){return t?{point:t(e.point)}:e}function Vy(e,t){return{x:e.x-t.x,y:e.y-t.y}}function fh({point:e},t){return{point:e,delta:Vy(e,$k(t)),offset:Vy(e,UL(t)),velocity:HL(t,.1)}}function UL(e){return e[0]}function $k(e){return e[e.length-1]}function HL(e,t){if(e.length<2)return{x:0,y:0};let r=e.length-1,n=null;const o=$k(e);for(;r>=0&&(n=e[r],!(o.timestamp-n.timestamp>jo(t)));)r--;if(!n)return{x:0,y:0};const i=Gn(o.timestamp-n.timestamp);if(i===0)return{x:0,y:0};const a={x:(o.x-n.x)/i,y:(o.y-n.y)/i};return a.x===1/0&&(a.x=0),a.y===1/0&&(a.y=0),a}function yr(e){return e.max-e.min}function Dp(e,t=0,r=.01){return Math.abs(e-t)<=r}function Wy(e,t,r,n=.5){e.origin=n,e.originPoint=Ze(t.min,t.max,e.origin),e.scale=yr(r)/yr(t),(Dp(e.scale,1,1e-4)||isNaN(e.scale))&&(e.scale=1),e.translate=Ze(r.min,r.max,e.origin)-e.originPoint,(Dp(e.translate)||isNaN(e.translate))&&(e.translate=0)}function Hs(e,t,r,n){Wy(e.x,t.x,r.x,n?n.originX:void 0),Wy(e.y,t.y,r.y,n?n.originY:void 0)}function Uy(e,t,r){e.min=r.min+t.min,e.max=e.min+yr(t)}function GL(e,t,r){Uy(e.x,t.x,r.x),Uy(e.y,t.y,r.y)}function Hy(e,t,r){e.min=t.min-r.min,e.max=e.min+yr(t)}function Gs(e,t,r){Hy(e.x,t.x,r.x),Hy(e.y,t.y,r.y)}function qL(e,{min:t,max:r},n){return t!==void 0&&er&&(e=n?Ze(r,e,n.max):Math.min(e,r)),e}function Gy(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 KL(e,{top:t,left:r,bottom:n,right:o}){return{x:Gy(e.x,r,o),y:Gy(e.y,t,n)}}function qy(e,t){let r=t.min-e.min,n=t.max-e.max;return t.max-t.minn?r=Cl(t.min,t.max-n,e.min):n>o&&(r=Cl(e.min,e.max-o,t.min)),Mo(0,1,r)}function QL(e,t){const r={};return t.min!==void 0&&(r.min=t.min-e.min),t.max!==void 0&&(r.max=t.max-e.min),r}const Lp=.35;function ZL(e=Lp){return e===!1?e=0:e===!0&&(e=Lp),{x:Ky(e,"left","right"),y:Ky(e,"top","bottom")}}function Ky(e,t,r){return{min:Yy(e,t),max:Yy(e,r)}}function Yy(e,t){return typeof e=="number"?e:e[t]||0}const Xy=()=>({translate:0,scale:1,origin:0,originPoint:0}),Ji=()=>({x:Xy(),y:Xy()}),Qy=()=>({min:0,max:0}),dt=()=>({x:Qy(),y:Qy()});function pn(e){return[e("x"),e("y")]}function zk({top:e,left:t,right:r,bottom:n}){return{x:{min:t,max:r},y:{min:e,max:n}}}function JL({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function eO(e,t){if(!t)return e;const r=t({x:e.left,y:e.top}),n=t({x:e.right,y:e.bottom});return{top:r.y,left:r.x,bottom:n.y,right:n.x}}function hh(e){return e===void 0||e===1}function Op({scale:e,scaleX:t,scaleY:r}){return!hh(e)||!hh(t)||!hh(r)}function Yo(e){return Op(e)||Mk(e)||e.z||e.rotate||e.rotateX||e.rotateY}function Mk(e){return Zy(e.x)||Zy(e.y)}function Zy(e){return e&&e!=="0%"}function ed(e,t,r){const n=e-r,o=t*n;return r+o}function Jy(e,t,r,n,o){return o!==void 0&&(e=ed(e,o,n)),ed(e,r,n)+t}function Fp(e,t=0,r=1,n,o){e.min=Jy(e.min,t,r,n,o),e.max=Jy(e.max,t,r,n,o)}function Dk(e,{x:t,y:r}){Fp(e.x,t.translate,t.scale,t.originPoint),Fp(e.y,r.translate,r.scale,r.originPoint)}function tO(e,t,r,n=!1){const o=r.length;if(!o)return;t.x=t.y=1;let i,a;for(let s=0;s1.0000000000001||e<.999999999999?e:1}function mo(e,t){e.min=e.min+t,e.max=e.max+t}function t1(e,t,[r,n,o]){const i=t[o]!==void 0?t[o]:.5,a=Ze(e.min,e.max,i);Fp(e,t[r],t[n],a,t.scale)}const rO=["x","scaleX","originX"],nO=["y","scaleY","originY"];function ea(e,t){t1(e.x,t,rO),t1(e.y,t,nO)}function Lk(e,t){return zk(eO(e.getBoundingClientRect(),t))}function oO(e,t,r){const n=Lk(e,r),{scroll:o}=t;return o&&(mo(n.x,o.offset.x),mo(n.y,o.offset.y)),n}const iO=new WeakMap;class aO{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=dt(),this.visualElement=t}start(t,{snapToCursor:r=!1}={}){const{presenceContext:n}=this.visualElement;if(n&&n.isPresent===!1)return;const o=l=>{this.stopAnimation(),r&&this.snapToCursor(Ud(l,"page").point)},i=(l,u)=>{const{drag:c,dragPropagation:d,onDragStart:f}=this.getProps();if(c&&!d&&(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=Yw(c),!this.openGlobalLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),pn(g=>{let y=this.getAxisMotionValue(g).get()||0;if(kn.test(y)){const{projection:w}=this.visualElement;if(w&&w.layout){const v=w.layout.layoutBox[g];v&&(y=yr(v)*(parseFloat(y)/100))}}this.originPoint[g]=y}),f&&Oe.update(()=>f(l,u),!1,!0);const{animationState:p}=this.visualElement;p&&p.setActive("whileDrag",!0)},a=(l,u)=>{const{dragPropagation:c,dragDirectionLock:d,onDirectionLock:f,onDrag:p}=this.getProps();if(!c&&!this.openGlobalLock)return;const{offset:g}=u;if(d&&this.currentDirection===null){this.currentDirection=sO(g),this.currentDirection!==null&&f&&f(this.currentDirection);return}this.updateAxis("x",u.point,g),this.updateAxis("y",u.point,g),this.visualElement.render(),p&&p(l,u)},s=(l,u)=>this.stop(l,u);this.panSession=new Ak(t,{onSessionStart:o,onStart:i,onMove:a,onSessionEnd:s},{transformPagePoint:this.visualElement.getTransformPagePoint()})}stop(t,r){const n=this.isDragging;if(this.cancel(),!n)return;const{velocity:o}=r;this.startAnimation(o);const{onDragEnd:i}=this.getProps();i&&Oe.update(()=>i(t,r))}cancel(){this.isDragging=!1;const{projection:t,animationState:r}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:n}=this.getProps();!n&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),r&&r.setActive("whileDrag",!1)}updateAxis(t,r,n){const{drag:o}=this.getProps();if(!n||!zu(t,o,this.currentDirection))return;const i=this.getAxisMotionValue(t);let a=this.originPoint[t]+n[t];this.constraints&&this.constraints[t]&&(a=qL(a,this.constraints[t],this.elastic[t])),i.set(a)}resolveConstraints(){const{dragConstraints:t,dragElastic:r}=this.getProps(),{layout:n}=this.visualElement.projection||{},o=this.constraints;t&&Qi(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):t&&n?this.constraints=KL(n.layoutBox,t):this.constraints=!1,this.elastic=ZL(r),o!==this.constraints&&n&&this.constraints&&!this.hasMutatedConstraints&&pn(i=>{this.getAxisMotionValue(i)&&(this.constraints[i]=QL(n.layoutBox[i],this.constraints[i]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:r}=this.getProps();if(!t||!Qi(t))return!1;const n=t.current,{projection:o}=this.visualElement;if(!o||!o.layout)return!1;const i=oO(n,o.root,this.visualElement.getTransformPagePoint());let a=YL(o.layout.layoutBox,i);if(r){const s=r(JL(a));this.hasMutatedConstraints=!!s,s&&(a=zk(s))}return a}startAnimation(t){const{drag:r,dragMomentum:n,dragElastic:o,dragTransition:i,dragSnapToOrigin:a,onDragTransitionEnd:s}=this.getProps(),l=this.constraints||{},u=pn(c=>{if(!zu(c,r,this.currentDirection))return;let d=l&&l[c]||{};a&&(d={min:0,max:0});const f=o?200:1e6,p=o?40:1e7,g={type:"inertia",velocity:n?t[c]:0,bounceStiffness:f,bounceDamping:p,timeConstant:750,restDelta:1,restSpeed:10,...i,...d};return this.startAxisValueAnimation(c,g)});return Promise.all(u).then(s)}startAxisValueAnimation(t,r){const n=this.getAxisMotionValue(t);return n.start(Rg(t,n,0,r))}stopAnimation(){pn(t=>this.getAxisMotionValue(t).stop())}getAxisMotionValue(t){const r="_drag"+t.toUpperCase(),n=this.visualElement.getProps(),o=n[r];return o||this.visualElement.getValue(t,(n.initial?n.initial[t]:void 0)||0)}snapToCursor(t){pn(r=>{const{drag:n}=this.getProps();if(!zu(r,n,this.currentDirection))return;const{projection:o}=this.visualElement,i=this.getAxisMotionValue(r);if(o&&o.layout){const{min:a,max:s}=o.layout.layoutBox[r];i.set(t[r]-Ze(a,s,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:r}=this.getProps(),{projection:n}=this.visualElement;if(!Qi(r)||!n||!this.constraints)return;this.stopAnimation();const o={x:0,y:0};pn(a=>{const s=this.getAxisMotionValue(a);if(s){const l=s.get();o[a]=XL({min:l,max:l},this.constraints[a])}});const{transformTemplate:i}=this.visualElement.getProps();this.visualElement.current.style.transform=i?i({},""):"none",n.root&&n.root.updateScroll(),n.updateLayout(),this.resolveConstraints(),pn(a=>{if(!zu(a,t,null))return;const s=this.getAxisMotionValue(a),{min:l,max:u}=this.constraints[a];s.set(Ze(l,u,o[a]))})}addListeners(){if(!this.visualElement.current)return;iO.set(this.visualElement,this);const t=this.visualElement.current,r=Hn(t,"pointerdown",l=>{const{drag:u,dragListener:c=!0}=this.getProps();u&&c&&this.start(l)}),n=()=>{const{dragConstraints:l}=this.getProps();Qi(l)&&(this.constraints=this.resolveRefConstraints())},{projection:o}=this.visualElement,i=o.addEventListener("measure",n);o&&!o.layout&&(o.root&&o.root.updateScroll(),o.updateLayout()),n();const a=Nn(window,"resize",()=>this.scalePositionWithinConstraints()),s=o.addEventListener("didUpdate",({delta:l,hasLayoutChanged:u})=>{this.isDragging&&u&&(pn(c=>{const d=this.getAxisMotionValue(c);d&&(this.originPoint[c]+=l[c].translate,d.set(d.get()+l[c].translate))}),this.visualElement.render())});return()=>{a(),r(),i(),s&&s()}}getProps(){const t=this.visualElement.getProps(),{drag:r=!1,dragDirectionLock:n=!1,dragPropagation:o=!1,dragConstraints:i=!1,dragElastic:a=Lp,dragMomentum:s=!0}=t;return{...t,drag:r,dragDirectionLock:n,dragPropagation:o,dragConstraints:i,dragElastic:a,dragMomentum:s}}}function zu(e,t,r){return(t===!0||t===e)&&(r===null||r===e)}function sO(e,t=10){let r=null;return Math.abs(e.y)>t?r="y":Math.abs(e.x)>t&&(r="x"),r}class lO extends Io{constructor(t){super(t),this.removeGroupControls=it,this.removeListeners=it,this.controls=new aO(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||it}unmount(){this.removeGroupControls(),this.removeListeners()}}const r1=e=>(t,r)=>{e&&Oe.update(()=>e(t,r))};class uO extends Io{constructor(){super(...arguments),this.removePointerDownListener=it}onPointerDown(t){this.session=new Ak(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint()})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:r,onPan:n,onPanEnd:o}=this.node.getProps();return{onSessionStart:r1(t),onStart:r1(r),onMove:n,onEnd:(i,a)=>{delete this.session,o&&Oe.update(()=>o(i,a))}}}mount(){this.removePointerDownListener=Hn(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}function cO(){const e=S.useContext(Ol);if(e===null)return[!0,null];const{isPresent:t,onExitComplete:r,register:n}=e,o=S.useId();return S.useEffect(()=>n(o),[]),!t&&r?[!1,()=>r&&r(o)]:[!0]}function dO(){return fO(S.useContext(Ol))}function fO(e){return e===null?!0:e.isPresent}const lc={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function n1(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const ds={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(ee.test(e))e=parseFloat(e);else return e;const r=n1(e,t.target.x),n=n1(e,t.target.y);return`${r}% ${n}%`}},hO={correct:(e,{treeScale:t,projectionDelta:r})=>{const n=e,o=Do.parse(e);if(o.length>5)return n;const i=Do.createTransformer(e),a=typeof o[0]!="number"?1:0,s=r.x.scale*t.x,l=r.y.scale*t.y;o[0+a]/=s,o[1+a]/=l;const u=Ze(s,l,.5);return typeof o[2+a]=="number"&&(o[2+a]/=u),typeof o[3+a]=="number"&&(o[3+a]/=u),i(o)}};class pO extends hr.Component{componentDidMount(){const{visualElement:t,layoutGroup:r,switchLayoutGroup:n,layoutId:o}=this.props,{projection:i}=t;bM(mO),i&&(r.group&&r.group.add(i),n&&n.register&&o&&n.register(i),i.root.didUpdate(),i.addEventListener("animationComplete",()=>{this.safeToRemove()}),i.setOptions({...i.options,onExitComplete:()=>this.safeToRemove()})),lc.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:r,visualElement:n,drag:o,isPresent:i}=this.props,a=n.projection;return a&&(a.isPresent=i,o||t.layoutDependency!==r||r===void 0?a.willUpdate():this.safeToRemove(),t.isPresent!==i&&(i?a.promote():a.relegate()||Oe.postRender(()=>{const s=a.getStack();(!s||!s.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),queueMicrotask(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:r,switchLayoutGroup:n}=this.props,{projection:o}=t;o&&(o.scheduleCheckAfterUnmount(),r&&r.group&&r.group.remove(o),n&&n.deregister&&n.deregister(o))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function Ok(e){const[t,r]=cO(),n=S.useContext(mg);return hr.createElement(pO,{...e,layoutGroup:n,switchLayoutGroup:S.useContext($w),isPresent:t,safeToRemove:r})}const mO={borderRadius:{...ds,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:ds,borderTopRightRadius:ds,borderBottomLeftRadius:ds,borderBottomRightRadius:ds,boxShadow:hO},Fk=["TopLeft","TopRight","BottomLeft","BottomRight"],gO=Fk.length,o1=e=>typeof e=="string"?parseFloat(e):e,i1=e=>typeof e=="number"||ee.test(e);function vO(e,t,r,n,o,i){o?(e.opacity=Ze(0,r.opacity!==void 0?r.opacity:1,yO(n)),e.opacityExit=Ze(t.opacity!==void 0?t.opacity:1,0,bO(n))):i&&(e.opacity=Ze(t.opacity!==void 0?t.opacity:1,r.opacity!==void 0?r.opacity:1,n));for(let a=0;ant?1:r(Cl(e,t,n))}function s1(e,t){e.min=t.min,e.max=t.max}function Tr(e,t){s1(e.x,t.x),s1(e.y,t.y)}function l1(e,t,r,n,o){return e-=t,e=ed(e,1/r,n),o!==void 0&&(e=ed(e,1/o,n)),e}function xO(e,t=0,r=1,n=.5,o,i=e,a=e){if(kn.test(t)&&(t=parseFloat(t),t=Ze(a.min,a.max,t/100)-a.min),typeof t!="number")return;let s=Ze(i.min,i.max,n);e===i&&(s-=t),e.min=l1(e.min,t,r,s,o),e.max=l1(e.max,t,r,s,o)}function u1(e,t,[r,n,o],i,a){xO(e,t[r],t[n],t[o],t.scale,i,a)}const SO=["x","scaleX","originX"],wO=["y","scaleY","originY"];function c1(e,t,r,n){u1(e.x,t,SO,r?r.x:void 0,n?n.x:void 0),u1(e.y,t,wO,r?r.y:void 0,n?n.y:void 0)}function d1(e){return e.translate===0&&e.scale===1}function Bk(e){return d1(e.x)&&d1(e.y)}function kO(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 Nk(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 f1(e){return yr(e.x)/yr(e.y)}class CO{constructor(){this.members=[]}add(t){jg(this.members,t),t.scheduleRender()}remove(t){if(Ag(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){const r=this.members[this.members.length-1];r&&this.promote(r)}}relegate(t){const r=this.members.findIndex(o=>t===o);if(r===0)return!1;let n;for(let o=r;o>=0;o--){const i=this.members[o];if(i.isPresent!==!1){n=i;break}}return n?(this.promote(n),!0):!1}promote(t,r){const n=this.lead;if(t!==n&&(this.prevLead=n,this.lead=t,t.show(),n)){n.instance&&n.scheduleRender(),t.scheduleRender(),t.resumeFrom=n,r&&(t.resumeFrom.preserveOpacity=!0),n.snapshot&&(t.snapshot=n.snapshot,t.snapshot.latestValues=n.animationValues||n.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);const{crossfade:o}=t.options;o===!1&&n.hide()}}exitAnimationComplete(){this.members.forEach(t=>{const{options:r,resumingFrom:n}=t;r.onExitComplete&&r.onExitComplete(),n&&n.options.onExitComplete&&n.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function h1(e,t,r){let n="";const o=e.x.translate/t.x,i=e.y.translate/t.y;if((o||i)&&(n=`translate3d(${o}px, ${i}px, 0) `),(t.x!==1||t.y!==1)&&(n+=`scale(${1/t.x}, ${1/t.y}) `),r){const{rotate:l,rotateX:u,rotateY:c}=r;l&&(n+=`rotate(${l}deg) `),u&&(n+=`rotateX(${u}deg) `),c&&(n+=`rotateY(${c}deg) `)}const a=e.x.scale*t.x,s=e.y.scale*t.y;return(a!==1||s!==1)&&(n+=`scale(${a}, ${s})`),n||"none"}const PO=(e,t)=>e.depth-t.depth;class _O{constructor(){this.children=[],this.isDirty=!1}add(t){jg(this.children,t),this.isDirty=!0}remove(t){Ag(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(PO),this.isDirty=!1,this.children.forEach(t)}}function TO(e,t){const r=performance.now(),n=({timestamp:o})=>{const i=o-r;i>=t&&(eo(n),e(i-t))};return Oe.read(n,!0),()=>eo(n)}function EO(e){window.MotionDebug&&window.MotionDebug.record(e)}function RO(e){return e instanceof SVGElement&&e.tagName!=="svg"}function jO(e,t,r){const n=ir(e)?e:Ea(e);return n.start(Rg("",n,t,r)),n.animation}const p1=["","X","Y","Z"],m1=1e3;let AO=0;const Xo={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0};function Vk({attachResizeListener:e,defaultParent:t,measureScroll:r,checkIsScrollRoot:n,resetTransform:o}){return class{constructor(a={},s=t==null?void 0:t()){this.id=AO++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{Xo.totalNodes=Xo.resolvedTargetDeltas=Xo.recalculatedProjection=0,this.nodes.forEach(MO),this.nodes.forEach(IO),this.nodes.forEach(BO),this.nodes.forEach(DO),EO(Xo)},this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=a,this.root=s?s.root||s:this,this.path=s?[...s.path,s]:[],this.parent=s,this.depth=s?s.depth+1:0;for(let l=0;lthis.root.updateBlockedByResize=!1;e(a,()=>{this.root.updateBlockedByResize=!0,d&&d(),d=TO(f,250),lc.hasAnimatedSinceResize&&(lc.hasAnimatedSinceResize=!1,this.nodes.forEach(v1))})}l&&this.root.registerSharedNode(l,this),this.options.animate!==!1&&c&&(l||u)&&this.addEventListener("didUpdate",({delta:d,hasLayoutChanged:f,hasRelativeTargetChanged:p,layout:g})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const y=this.options.transition||c.getDefaultTransition()||HO,{onLayoutAnimationStart:w,onLayoutAnimationComplete:v}=c.getProps(),m=!this.targetLayout||!Nk(this.targetLayout,g)||p,x=!f&&p;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||x||f&&(m||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(d,x);const b={..._k(y,"layout"),onPlay:w,onComplete:v};(c.shouldReduceMotion||this.options.layoutRoot)&&(b.delay=0,b.type=!1),this.startAnimation(b)}else f||v1(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=g})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const a=this.getStack();a&&a.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,eo(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(NO),this.animationId++)}getTransformTemplate(){const{visualElement:a}=this.options;return a&&a.getProps().transformTemplate}willUpdate(a=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let c=0;cthis.update()))}clearAllSnapshots(){this.nodes.forEach(LO),this.sharedNodes.forEach(VO)}scheduleUpdateProjection(){Oe.preRender(this.updateProjection,!1,!0)}scheduleCheckAfterUnmount(){Oe.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure())}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let l=0;l{const P=b/1e3;y1(d.x,a.x,P),y1(d.y,a.y,P),this.setTargetDelta(d),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Gs(f,this.layout.layoutBox,this.relativeParent.layout.layoutBox),WO(this.relativeTarget,this.relativeTargetOrigin,f,P),x&&kO(this.relativeTarget,x)&&(this.isProjectionDirty=!1),x||(x=dt()),Tr(x,this.relativeTarget)),y&&(this.animationValues=c,vO(c,u,this.latestValues,P,m,v)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=P},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(a){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(eo(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=Oe.update(()=>{lc.hasAnimatedSinceResize=!0,this.currentAnimation=jO(0,m1,{...a,onUpdate:s=>{this.mixTargetDelta(s),a.onUpdate&&a.onUpdate(s)},onComplete:()=>{a.onComplete&&a.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const a=this.getStack();a&&a.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(m1),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const a=this.getLead();let{targetWithTransforms:s,target:l,layout:u,latestValues:c}=a;if(!(!s||!l||!u)){if(this!==a&&this.layout&&u&&Wk(this.options.animationType,this.layout.layoutBox,u.layoutBox)){l=this.target||dt();const d=yr(this.layout.layoutBox.x);l.x.min=a.target.x.min,l.x.max=l.x.min+d;const f=yr(this.layout.layoutBox.y);l.y.min=a.target.y.min,l.y.max=l.y.min+f}Tr(s,l),ea(s,c),Hs(this.projectionDeltaWithTransform,this.layoutCorrected,s,c)}}registerSharedNode(a,s){this.sharedNodes.has(a)||this.sharedNodes.set(a,new CO),this.sharedNodes.get(a).add(s);const u=s.options.initialPromotionConfig;s.promote({transition:u?u.transition:void 0,preserveFollowOpacity:u&&u.shouldPreserveFollowOpacity?u.shouldPreserveFollowOpacity(s):void 0})}isLead(){const a=this.getStack();return a?a.lead===this:!0}getLead(){var a;const{layoutId:s}=this.options;return s?((a=this.getStack())===null||a===void 0?void 0:a.lead)||this:this}getPrevLead(){var a;const{layoutId:s}=this.options;return s?(a=this.getStack())===null||a===void 0?void 0:a.prevLead:void 0}getStack(){const{layoutId:a}=this.options;if(a)return this.root.sharedNodes.get(a)}promote({needsReset:a,transition:s,preserveFollowOpacity:l}={}){const u=this.getStack();u&&u.promote(this,l),a&&(this.projectionDelta=void 0,this.needsReset=!0),s&&this.setOptions({transition:s})}relegate(){const a=this.getStack();return a?a.relegate(this):!1}resetRotation(){const{visualElement:a}=this.options;if(!a)return;let s=!1;const{latestValues:l}=a;if((l.rotate||l.rotateX||l.rotateY||l.rotateZ)&&(s=!0),!s)return;const u={};for(let c=0;c{var s;return(s=a.currentAnimation)===null||s===void 0?void 0:s.stop()}),this.root.nodes.forEach(g1),this.root.sharedNodes.clear()}}}function $O(e){e.updateLayout()}function zO(e){var t;const r=((t=e.resumeFrom)===null||t===void 0?void 0:t.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&r&&e.hasListeners("didUpdate")){const{layoutBox:n,measuredBox:o}=e.layout,{animationType:i}=e.options,a=r.source!==e.layout.source;i==="size"?pn(d=>{const f=a?r.measuredBox[d]:r.layoutBox[d],p=yr(f);f.min=n[d].min,f.max=f.min+p}):Wk(i,r.layoutBox,n)&&pn(d=>{const f=a?r.measuredBox[d]:r.layoutBox[d],p=yr(n[d]);f.max=f.min+p,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[d].max=e.relativeTarget[d].min+p)});const s=Ji();Hs(s,n,r.layoutBox);const l=Ji();a?Hs(l,e.applyTransform(o,!0),r.measuredBox):Hs(l,n,r.layoutBox);const u=!Bk(s);let c=!1;if(!e.resumeFrom){const d=e.getClosestProjectingParent();if(d&&!d.resumeFrom){const{snapshot:f,layout:p}=d;if(f&&p){const g=dt();Gs(g,r.layoutBox,f.layoutBox);const y=dt();Gs(y,n,p.layoutBox),Nk(g,y)||(c=!0),d.options.layoutRoot&&(e.relativeTarget=y,e.relativeTargetOrigin=g,e.relativeParent=d)}}}e.notifyListeners("didUpdate",{layout:n,snapshot:r,delta:l,layoutDelta:s,hasLayoutChanged:u,hasRelativeTargetChanged:c})}else if(e.isLead()){const{onExitComplete:n}=e.options;n&&n()}e.options.transition=void 0}function MO(e){Xo.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 DO(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function LO(e){e.clearSnapshot()}function g1(e){e.clearMeasurements()}function OO(e){e.isLayoutDirty=!1}function FO(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function v1(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function IO(e){e.resolveTargetDelta()}function BO(e){e.calcProjection()}function NO(e){e.resetRotation()}function VO(e){e.removeLeadSnapshot()}function y1(e,t,r){e.translate=Ze(t.translate,0,r),e.scale=Ze(t.scale,1,r),e.origin=t.origin,e.originPoint=t.originPoint}function b1(e,t,r,n){e.min=Ze(t.min,r.min,n),e.max=Ze(t.max,r.max,n)}function WO(e,t,r,n){b1(e.x,t.x,r.x,n),b1(e.y,t.y,r.y,n)}function UO(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const HO={duration:.45,ease:[.4,0,.1,1]},x1=e=>typeof navigator<"u"&&navigator.userAgent.toLowerCase().includes(e),S1=x1("applewebkit/")&&!x1("chrome/")?Math.round:it;function w1(e){e.min=S1(e.min),e.max=S1(e.max)}function GO(e){w1(e.x),w1(e.y)}function Wk(e,t,r){return e==="position"||e==="preserve-aspect"&&!Dp(f1(t),f1(r),.2)}const qO=Vk({attachResizeListener:(e,t)=>Nn(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),ph={current:void 0},Uk=Vk({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!ph.current){const e=new qO({});e.mount(window),e.setOptions({layoutScroll:!0}),ph.current=e}return ph.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),KO={pan:{Feature:uO},drag:{Feature:lO,ProjectionNode:Uk,MeasureLayout:Ok}},YO=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/;function XO(e){const t=YO.exec(e);if(!t)return[,];const[,r,n]=t;return[r,n]}function Ip(e,t,r=1){const[n,o]=XO(e);if(!n)return;const i=window.getComputedStyle(t).getPropertyValue(n);if(i){const a=i.trim();return Tk(a)?parseFloat(a):a}else return Ep(o)?Ip(o,t,r+1):o}function QO(e,{...t},r){const n=e.current;if(!(n instanceof Element))return{target:t,transitionEnd:r};r&&(r={...r}),e.values.forEach(o=>{const i=o.get();if(!Ep(i))return;const a=Ip(i,n);a&&o.set(a)});for(const o in t){const i=t[o];if(!Ep(i))continue;const a=Ip(i,n);a&&(t[o]=a,r||(r={}),r[o]===void 0&&(r[o]=i))}return{target:t,transitionEnd:r}}const ZO=new Set(["width","height","top","left","right","bottom","x","y","translateX","translateY"]),Hk=e=>ZO.has(e),JO=e=>Object.keys(e).some(Hk),k1=e=>e===Ci||e===ee,C1=(e,t)=>parseFloat(e.split(", ")[t]),P1=(e,t)=>(r,{transform:n})=>{if(n==="none"||!n)return 0;const o=n.match(/^matrix3d\((.+)\)$/);if(o)return C1(o[1],t);{const i=n.match(/^matrix\((.+)\)$/);return i?C1(i[1],e):0}},e6=new Set(["x","y","z"]),t6=Fl.filter(e=>!e6.has(e));function r6(e){const t=[];return t6.forEach(r=>{const n=e.getValue(r);n!==void 0&&(t.push([r,n.get()]),n.set(r.startsWith("scale")?1:0))}),t.length&&e.render(),t}const Ra={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:P1(4,13),y:P1(5,14)};Ra.translateX=Ra.x;Ra.translateY=Ra.y;const n6=(e,t,r)=>{const n=t.measureViewportBox(),o=t.current,i=getComputedStyle(o),{display:a}=i,s={};a==="none"&&t.setStaticValue("display",e.display||"block"),r.forEach(u=>{s[u]=Ra[u](n,i)}),t.render();const l=t.measureViewportBox();return r.forEach(u=>{const c=t.getValue(u);c&&c.jump(s[u]),e[u]=Ra[u](l,i)}),e},o6=(e,t,r={},n={})=>{t={...t},n={...n};const o=Object.keys(t).filter(Hk);let i=[],a=!1;const s=[];if(o.forEach(l=>{const u=e.getValue(l);if(!e.hasValue(l))return;let c=r[l],d=cs(c);const f=t[l];let p;if(Yc(f)){const g=f.length,y=f[0]===null?1:0;c=f[y],d=cs(c);for(let w=y;w=0?window.pageYOffset:null,u=n6(t,e,s);return i.length&&i.forEach(([c,d])=>{e.getValue(c).set(d)}),e.render(),Bd&&l!==null&&window.scrollTo({top:l}),{target:u,transitionEnd:n}}else return{target:t,transitionEnd:n}};function i6(e,t,r,n){return JO(t)?o6(e,t,r,n):{target:t,transitionEnd:n}}const a6=(e,t,r,n)=>{const o=QO(e,t,n);return t=o.target,n=o.transitionEnd,i6(e,t,r,n)},Bp={current:null},Gk={current:!1};function s6(){if(Gk.current=!0,!!Bd)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>Bp.current=e.matches;e.addListener(t),t()}else Bp.current=!1}function l6(e,t,r){const{willChange:n}=t;for(const o in t){const i=t[o],a=r[o];if(ir(i))e.addValue(o,i),Jc(n)&&n.add(o);else if(ir(a))e.addValue(o,Ea(i,{owner:e})),Jc(n)&&n.remove(o);else if(a!==i)if(e.hasValue(o)){const s=e.getValue(o);!s.hasAnimated&&s.set(i)}else{const s=e.getStaticValue(o);e.addValue(o,Ea(s!==void 0?s:i,{owner:e}))}}for(const o in r)t[o]===void 0&&e.removeValue(o);return t}const _1=new WeakMap,qk=Object.keys(kl),u6=qk.length,T1=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],c6=pg.length;class d6{constructor({parent:t,props:r,presenceContext:n,reducedMotionConfig:o,visualState:i},a={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.scheduleRender=()=>Oe.render(this.render,!1,!0);const{latestValues:s,renderState:l}=i;this.latestValues=s,this.baseTarget={...s},this.initialValues=r.initial?{...s}:{},this.renderState=l,this.parent=t,this.props=r,this.presenceContext=n,this.depth=t?t.depth+1:0,this.reducedMotionConfig=o,this.options=a,this.isControllingVariants=Vd(r),this.isVariantNode=Aw(r),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:u,...c}=this.scrapeMotionValuesFromProps(r,{});for(const d in c){const f=c[d];s[d]!==void 0&&ir(f)&&(f.set(s[d],!1),Jc(u)&&u.add(d))}}scrapeMotionValuesFromProps(t,r){return{}}mount(t){this.current=t,_1.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((r,n)=>this.bindToMotionValue(n,r)),Gk.current||s6(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:Bp.current,this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){_1.delete(this.current),this.projection&&this.projection.unmount(),eo(this.notifyUpdate),eo(this.render),this.valueSubscriptions.forEach(t=>t()),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const t in this.events)this.events[t].clear();for(const t in this.features)this.features[t].unmount();this.current=null}bindToMotionValue(t,r){const n=ki.has(t),o=r.on("change",a=>{this.latestValues[t]=a,this.props.onUpdate&&Oe.update(this.notifyUpdate,!1,!0),n&&this.projection&&(this.projection.isTransformDirty=!0)}),i=r.on("renderRequest",this.scheduleRender);this.valueSubscriptions.set(t,()=>{o(),i()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}loadFeatures({children:t,...r},n,o,i){let a,s;for(let l=0;lthis.scheduleRender(),animationType:typeof u=="string"?u:"both",initialPromotionConfig:i,layoutScroll:f,layoutRoot:p})}return s}updateFeatures(){for(const t in this.features){const r=this.features[t];r.isMounted?r.update():(r.mount(),r.isMounted=!0)}}triggerBuild(){this.build(this.renderState,this.latestValues,this.options,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):dt()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,r){this.latestValues[t]=r}makeTargetAnimatable(t,r=!0){return this.makeTargetAnimatableFromInstance(t,this.props,r)}update(t,r){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=r;for(let n=0;nr.variantChildren.delete(t)}addValue(t,r){r!==this.values.get(t)&&(this.removeValue(t),this.bindToMotionValue(t,r)),this.values.set(t,r),this.latestValues[t]=r.get()}removeValue(t){this.values.delete(t);const r=this.valueSubscriptions.get(t);r&&(r(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,r){if(this.props.values&&this.props.values[t])return this.props.values[t];let n=this.values.get(t);return n===void 0&&r!==void 0&&(n=Ea(r,{owner:this}),this.addValue(t,n)),n}readValue(t){var r;return this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:(r=this.getBaseTargetFromProps(this.props,t))!==null&&r!==void 0?r:this.readValueFromInstance(this.current,t,this.options)}setBaseTarget(t,r){this.baseTarget[t]=r}getBaseTarget(t){var r;const{initial:n}=this.props,o=typeof n=="string"||typeof n=="object"?(r=kg(this.props,n))===null||r===void 0?void 0:r[t]:void 0;if(n&&o!==void 0)return o;const i=this.getBaseTargetFromProps(this.props,t);return i!==void 0&&!ir(i)?i:this.initialValues[t]!==void 0&&o===void 0?void 0:this.baseTarget[t]}on(t,r){return this.events[t]||(this.events[t]=new $g),this.events[t].add(r)}notify(t,...r){this.events[t]&&this.events[t].notify(...r)}}class Kk extends d6{sortInstanceNodePosition(t,r){return t.compareDocumentPosition(r)&2?1:-1}getBaseTargetFromProps(t,r){return t.style?t.style[r]:void 0}removeValueFromRenderState(t,{vars:r,style:n}){delete r[t],delete n[t]}makeTargetAnimatableFromInstance({transition:t,transitionEnd:r,...n},{transformValues:o},i){let a=EL(n,t||{},this);if(o&&(r&&(r=o(r)),n&&(n=o(n)),a&&(a=o(a))),i){_L(this,n,a);const s=a6(this,n,a,r);r=s.transitionEnd,n=s.target}return{transition:t,transitionEnd:r,...n}}}function f6(e){return window.getComputedStyle(e)}class h6 extends Kk{readValueFromInstance(t,r){if(ki.has(r)){const n=Eg(r);return n&&n.default||0}else{const n=f6(t),o=(Dw(r)?n.getPropertyValue(r):n[r])||0;return typeof o=="string"?o.trim():o}}measureInstanceViewportBox(t,{transformPagePoint:r}){return Lk(t,r)}build(t,r,n,o){vg(t,r,n,o.transformTemplate)}scrapeMotionValuesFromProps(t,r){return wg(t,r)}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;ir(t)&&(this.childSubscription=t.on("change",r=>{this.current&&(this.current.textContent=`${r}`)}))}renderInstance(t,r,n,o){Nw(t,r,n,o)}}class p6 extends Kk{constructor(){super(...arguments),this.isSVGTag=!1}getBaseTargetFromProps(t,r){return t[r]}readValueFromInstance(t,r){if(ki.has(r)){const n=Eg(r);return n&&n.default||0}return r=Vw.has(r)?r:Sg(r),t.getAttribute(r)}measureInstanceViewportBox(){return dt()}scrapeMotionValuesFromProps(t,r){return Uw(t,r)}build(t,r,n,o){bg(t,r,n,this.isSVGTag,o.transformTemplate)}renderInstance(t,r,n,o){Ww(t,r,n,o)}mount(t){this.isSVGTag=xg(t.tagName),super.mount(t)}}const m6=(e,t)=>gg(e)?new p6(t,{enableHardwareAcceleration:!1}):new h6(t,{enableHardwareAcceleration:!0}),g6={layout:{ProjectionNode:Uk,MeasureLayout:Ok}},v6={...VL,...lD,...KO,...g6},zg=vM((e,t)=>YM(e,t,v6,m6));function Yk(){const e=S.useRef(!1);return fg(()=>(e.current=!0,()=>{e.current=!1}),[]),e}function y6(){const e=Yk(),[t,r]=S.useState(0),n=S.useCallback(()=>{e.current&&r(t+1)},[t]);return[S.useCallback(()=>Oe.postRender(n),[n]),t]}class b6 extends S.Component{getSnapshotBeforeUpdate(t){const r=this.props.childRef.current;if(r&&t.isPresent&&!this.props.isPresent){const n=this.props.sizeRef.current;n.height=r.offsetHeight||0,n.width=r.offsetWidth||0,n.top=r.offsetTop,n.left=r.offsetLeft}return null}componentDidUpdate(){}render(){return this.props.children}}function x6({children:e,isPresent:t}){const r=S.useId(),n=S.useRef(null),o=S.useRef({width:0,height:0,top:0,left:0});return S.useInsertionEffect(()=>{const{width:i,height:a,top:s,left:l}=o.current;if(t||!n.current||!i||!a)return;n.current.dataset.motionPopId=r;const u=document.createElement("style");return document.head.appendChild(u),u.sheet&&u.sheet.insertRule(` + [data-motion-pop-id="${r}"] { + position: absolute !important; + width: ${i}px !important; + height: ${a}px !important; + top: ${s}px !important; + left: ${l}px !important; + } + `),()=>{document.head.removeChild(u)}},[t]),S.createElement(b6,{isPresent:t,childRef:n,sizeRef:o},S.cloneElement(e,{ref:n}))}const mh=({children:e,initial:t,isPresent:r,onExitComplete:n,custom:o,presenceAffectsLayout:i,mode:a})=>{const s=Hw(S6),l=S.useId(),u=S.useMemo(()=>({id:l,initial:t,isPresent:r,custom:o,onExitComplete:c=>{s.set(c,!0);for(const d of s.values())if(!d)return;n&&n()},register:c=>(s.set(c,!1),()=>s.delete(c))}),i?void 0:[r]);return S.useMemo(()=>{s.forEach((c,d)=>s.set(d,!1))},[r]),S.useEffect(()=>{!r&&!s.size&&n&&n()},[r]),a==="popLayout"&&(e=S.createElement(x6,{isPresent:r},e)),S.createElement(Ol.Provider,{value:u},e)};function S6(){return new Map}function w6(e){return S.useEffect(()=>()=>e(),[])}const Ai=e=>e.key||"";function k6(e,t){e.forEach(r=>{const n=Ai(r);t.set(n,r)})}function C6(e){const t=[];return S.Children.forEach(e,r=>{S.isValidElement(r)&&t.push(r)}),t}const Xk=({children:e,custom:t,initial:r=!0,onExitComplete:n,exitBeforeEnter:o,presenceAffectsLayout:i=!0,mode:a="sync"})=>{const s=S.useContext(mg).forceRender||y6()[0],l=Yk(),u=C6(e);let c=u;const d=S.useRef(new Map).current,f=S.useRef(c),p=S.useRef(new Map).current,g=S.useRef(!0);if(fg(()=>{g.current=!1,k6(u,p),f.current=c}),w6(()=>{g.current=!0,p.clear(),d.clear()}),g.current)return S.createElement(S.Fragment,null,c.map(m=>S.createElement(mh,{key:Ai(m),isPresent:!0,initial:r?void 0:!1,presenceAffectsLayout:i,mode:a},m)));c=[...c];const y=f.current.map(Ai),w=u.map(Ai),v=y.length;for(let m=0;m{if(w.indexOf(x)!==-1)return;const b=p.get(x);if(!b)return;const P=y.indexOf(x);let E=m;if(!E){const C=()=>{p.delete(x),d.delete(x);const R=f.current.findIndex(M=>M.key===x);if(f.current.splice(R,1),!d.size){if(f.current=u,l.current===!1)return;s(),n&&n()}};E=S.createElement(mh,{key:Ai(b),isPresent:!1,onExitComplete:C,custom:t,presenceAffectsLayout:i,mode:a},b),d.set(x,E)}c.splice(P,0,E)}),c=c.map(m=>{const x=m.key;return d.has(x)?m:S.createElement(mh,{key:Ai(m),isPresent:!0,presenceAffectsLayout:i,mode:a},m)}),S.createElement(S.Fragment,null,d.size?c:c.map(m=>S.cloneElement(m)))};var P6={initial:e=>{const{position:t}=e,r=["top","bottom"].includes(t)?"y":"x";let n=["top-right","bottom-right"].includes(t)?1:-1;return t==="bottom"&&(n=1),{opacity:0,[r]:n*24}},animate:{opacity:1,y:0,x:0,scale:1,transition:{duration:.4,ease:[.4,0,.2,1]}},exit:{opacity:0,scale:.85,transition:{duration:.2,ease:[.4,0,1,1]}}},Qk=S.memo(e=>{const{id:t,message:r,onCloseComplete:n,onRequestRemove:o,requestClose:i=!1,position:a="bottom",duration:s=5e3,containerStyle:l,motionVariants:u=P6,toastSpacing:c="0.5rem"}=e,[d,f]=S.useState(s),p=dO();Gc(()=>{p||n==null||n()},[p]),Gc(()=>{f(s)},[s]);const g=()=>f(null),y=()=>f(s),w=()=>{p&&o()};S.useEffect(()=>{p&&i&&o()},[p,i,o]),lM(w,d);const v=S.useMemo(()=>({pointerEvents:"auto",maxWidth:560,minWidth:300,margin:c,...l}),[l,c]),m=S.useMemo(()=>aM(a),[a]);return h.jsx(zg.div,{layout:!0,className:"chakra-toast",variants:u,initial:"initial",animate:"animate",exit:"exit",onHoverStart:g,onHoverEnd:y,custom:{position:a},style:m,children:h.jsx(X.div,{role:"status","aria-atomic":"true",className:"chakra-toast__inner",__css:v,children:In(r,{id:t,onClose:w})})})});Qk.displayName="ToastComponent";var E1={path:h.jsxs("g",{stroke:"currentColor",strokeWidth:"1.5",children:[h.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"}),h.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"}),h.jsx("circle",{fill:"none",strokeMiterlimit:"10",cx:"12",cy:"12",r:"11.25"})]}),viewBox:"0 0 24 24"},Ue=ce((e,t)=>{const{as:r,viewBox:n,color:o="currentColor",focusable:i=!1,children:a,className:s,__css:l,...u}=e,c=$e("chakra-icon",s),d=En("Icon",e),f={w:"1em",h:"1em",display:"inline-block",lineHeight:"1em",flexShrink:0,color:o,...l,...d},p={ref:t,focusable:i,className:c,__css:f},g=n??E1.viewBox;if(r&&typeof r!="string")return h.jsx(X.svg,{as:r,...p,...u});const y=a??E1.path;return h.jsx(X.svg,{verticalAlign:"middle",viewBox:g,...p,...u,children:y})});Ue.displayName="Icon";function Na(e){const{viewBox:t="0 0 24 24",d:r,displayName:n,defaultProps:o={}}=e,i=S.Children.toArray(e.path),a=ce((s,l)=>h.jsx(Ue,{ref:l,viewBox:t,...o,...s,children:i.length?i:h.jsx("path",{fill:"currentColor",d:r})}));return a.displayName=n,a}function _6(e){return h.jsx(Ue,{viewBox:"0 0 24 24",...e,children:h.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 T6(e){return h.jsx(Ue,{viewBox:"0 0 24 24",...e,children:h.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 R1(e){return h.jsx(Ue,{viewBox:"0 0 24 24",...e,children:h.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 E6=hT({"0%":{transform:"rotate(0deg)"},"100%":{transform:"rotate(360deg)"}}),Mg=ce((e,t)=>{const r=En("Spinner",e),{label:n="Loading...",thickness:o="2px",speed:i="0.45s",emptyColor:a="transparent",className:s,...l}=It(e),u=$e("chakra-spinner",s),c={display:"inline-block",borderColor:"currentColor",borderStyle:"solid",borderRadius:"99999px",borderWidth:o,borderBottomColor:a,borderLeftColor:a,animation:`${E6} ${i} linear infinite`,...r};return h.jsx(X.div,{ref:t,__css:c,className:u,...l,children:n&&h.jsx(X.span,{srOnly:!0,children:n})})});Mg.displayName="Spinner";var[R6,Dg]=sn({name:"AlertContext",hookName:"useAlertContext",providerName:""}),[j6,Lg]=sn({name:"AlertStylesContext",hookName:"useAlertStyles",providerName:""}),Zk={info:{icon:T6,colorScheme:"blue"},warning:{icon:R1,colorScheme:"orange"},success:{icon:_6,colorScheme:"green"},error:{icon:R1,colorScheme:"red"},loading:{icon:Mg,colorScheme:"blue"}};function A6(e){return Zk[e].colorScheme}function $6(e){return Zk[e].icon}var Jk=ce(function(t,r){const n=Lg(),{status:o}=Dg(),i={display:"inline",...n.description};return h.jsx(X.div,{ref:r,"data-status":o,...t,className:$e("chakra-alert__desc",t.className),__css:i})});Jk.displayName="AlertDescription";function eC(e){const{status:t}=Dg(),r=$6(t),n=Lg(),o=t==="loading"?n.spinner:n.icon;return h.jsx(X.span,{display:"inherit","data-status":t,...e,className:$e("chakra-alert__icon",e.className),__css:o,children:e.children||h.jsx(r,{h:"100%",w:"100%"})})}eC.displayName="AlertIcon";var tC=ce(function(t,r){const n=Lg(),{status:o}=Dg();return h.jsx(X.div,{ref:r,"data-status":o,...t,className:$e("chakra-alert__title",t.className),__css:n.title})});tC.displayName="AlertTitle";var rC=ce(function(t,r){var n;const{status:o="info",addRole:i=!0,...a}=It(t),s=(n=t.colorScheme)!=null?n:A6(o),l=wi("Alert",{...t,colorScheme:s}),u={width:"100%",display:"flex",alignItems:"center",position:"relative",overflow:"hidden",...l.container};return h.jsx(R6,{value:{status:o},children:h.jsx(j6,{value:l,children:h.jsx(X.div,{"data-status":o,role:i?"alert":void 0,ref:r,...a,className:$e("chakra-alert",t.className),__css:u})})})});rC.displayName="Alert";function z6(e){return h.jsx(Ue,{focusable:"false","aria-hidden":!0,...e,children:h.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 nC=ce(function(t,r){const n=En("CloseButton",t),{children:o,isDisabled:i,__css:a,...s}=It(t),l={outline:0,display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0};return h.jsx(X.button,{type:"button","aria-label":"Close",ref:r,disabled:i,__css:{...l,...n,...a},...s,children:o||h.jsx(z6,{width:"1em",height:"1em"})})});nC.displayName="CloseButton";var M6={top:[],"top-left":[],"top-right":[],"bottom-left":[],bottom:[],"bottom-right":[]},qs=D6(M6);function D6(e){let t=e;const r=new Set,n=o=>{t=o(t),r.forEach(i=>i())};return{getState:()=>t,subscribe:o=>(r.add(o),()=>{n(()=>e),r.delete(o)}),removeToast:(o,i)=>{n(a=>({...a,[i]:a[i].filter(s=>s.id!=o)}))},notify:(o,i)=>{const a=L6(o,i),{position:s,id:l}=a;return n(u=>{var c,d;const p=s.includes("top")?[a,...(c=u[s])!=null?c:[]]:[...(d=u[s])!=null?d:[],a];return{...u,[s]:p}}),l},update:(o,i)=>{o&&n(a=>{const s={...a},{position:l,index:u}=ky(s,o);return l&&u!==-1&&(s[l][u]={...s[l][u],...i,message:F6(i)}),s})},closeAll:({positions:o}={})=>{n(i=>(o??["bottom","bottom-right","bottom-left","top","top-left","top-right"]).reduce((l,u)=>(l[u]=i[u].map(c=>({...c,requestClose:!0})),l),{...i}))},close:o=>{n(i=>{const a=Ew(i,o);return a?{...i,[a]:i[a].map(s=>s.id==o?{...s,requestClose:!0}:s)}:i})},isActive:o=>!!ky(qs.getState(),o).position}}var j1=0;function L6(e,t={}){var r,n;j1+=1;const o=(r=t.id)!=null?r:j1,i=(n=t.position)!=null?n:"bottom";return{id:o,message:e,position:i,duration:t.duration,onCloseComplete:t.onCloseComplete,onRequestRemove:()=>qs.removeToast(String(o),i),status:t.status,requestClose:!1,containerStyle:t.containerStyle}}var O6=e=>{const{status:t,variant:r="solid",id:n,title:o,isClosable:i,onClose:a,description:s,colorScheme:l,icon:u}=e,c=n?{root:`toast-${n}`,title:`toast-${n}-title`,description:`toast-${n}-description`}:void 0;return h.jsxs(rC,{addRole:!1,status:t,variant:r,id:c==null?void 0:c.root,alignItems:"start",borderRadius:"md",boxShadow:"lg",paddingEnd:8,textAlign:"start",width:"auto",colorScheme:l,children:[h.jsx(eC,{children:u}),h.jsxs(X.div,{flex:"1",maxWidth:"100%",children:[o&&h.jsx(tC,{id:c==null?void 0:c.title,children:o}),s&&h.jsx(Jk,{id:c==null?void 0:c.description,display:"block",children:s})]}),i&&h.jsx(nC,{size:"sm",onClick:a,position:"absolute",insetEnd:1,top:1})]})};function F6(e={}){const{render:t,toastComponent:r=O6}=e;return o=>typeof t=="function"?t({...o,...e}):h.jsx(r,{...o,...e})}var[I6,VN]=sn({name:"ToastOptionsContext",strict:!1}),B6=e=>{const t=S.useSyncExternalStore(qs.subscribe,qs.getState,qs.getState),{motionVariants:r,component:n=Qk,portalProps:o}=e,a=Object.keys(t).map(s=>{const l=t[s];return h.jsx("div",{role:"region","aria-live":"polite","aria-label":"Notifications",id:`chakra-toast-manager-${s}`,style:sM(s),children:h.jsx(Xk,{initial:!1,children:l.map(u=>h.jsx(n,{motionVariants:r,...u},u.id))})},s)});return h.jsx(Ml,{...o,children:a})},N6=e=>function({children:r,theme:n=e,toastOptions:o,...i}){return h.jsxs(oM,{theme:n,...i,children:[h.jsx(I6,{value:o==null?void 0:o.defaultOptions,children:r}),h.jsx(B6,{...o})]})},V6=N6(po);function W6(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 Jr(...e){return t=>{e.forEach(r=>{W6(r,t)})}}function U6(...e){return S.useMemo(()=>Jr(...e),e)}var Np=ce(function(t,r){const{htmlWidth:n,htmlHeight:o,alt:i,...a}=t;return h.jsx("img",{width:n,height:o,ref:r,alt:i,...a})});Np.displayName="NativeImage";function H6(e){const{loading:t,src:r,srcSet:n,onLoad:o,onError:i,crossOrigin:a,sizes:s,ignoreFallback:l}=e,[u,c]=S.useState("pending");S.useEffect(()=>{c(r?"loading":"pending")},[r]);const d=S.useRef(),f=S.useCallback(()=>{if(!r)return;p();const g=new Image;g.src=r,a&&(g.crossOrigin=a),n&&(g.srcset=n),s&&(g.sizes=s),t&&(g.loading=t),g.onload=y=>{p(),c("loaded"),o==null||o(y)},g.onerror=y=>{p(),c("failed"),i==null||i(y)},d.current=g},[r,a,n,s,o,i,t]),p=()=>{d.current&&(d.current.onload=null,d.current.onerror=null,d.current=null)};return Pa(()=>{if(!l)return u==="loading"&&f(),()=>{p()}},[u,f,l]),l?"loaded":u}var G6=(e,t)=>e!=="loaded"&&t==="beforeLoadOrError"||e==="failed"&&t==="onError";function q6(e,t=[]){const r=Object.assign({},e);for(const n of t)n in r&&delete r[n];return r}var oC=ce(function(t,r){const{fallbackSrc:n,fallback:o,src:i,srcSet:a,align:s,fit:l,loading:u,ignoreFallback:c,crossOrigin:d,fallbackStrategy:f="beforeLoadOrError",referrerPolicy:p,...g}=t,y=n!==void 0||o!==void 0,w=u!=null||c||!y,v=H6({...t,crossOrigin:d,ignoreFallback:w}),m=G6(v,f),x={ref:r,objectFit:l,objectPosition:s,...w?g:q6(g,["onError","onLoad"])};return m?o||h.jsx(X.img,{as:Np,className:"chakra-image__placeholder",src:n,...x}):h.jsx(X.img,{as:Np,src:i,srcSet:a,crossOrigin:d,loading:u,referrerPolicy:p,className:"chakra-image",...x})});oC.displayName="Image";function K6(e){return S.Children.toArray(e).filter(t=>S.isValidElement(t))}var[Y6,X6]=sn({strict:!1,name:"ButtonGroupContext"}),Q6={horizontal:{"> *:first-of-type:not(:last-of-type)":{borderEndRadius:0},"> *:not(:first-of-type):not(:last-of-type)":{borderRadius:0},"> *:not(:first-of-type):last-of-type":{borderStartRadius:0}},vertical:{"> *:first-of-type:not(:last-of-type)":{borderBottomRadius:0},"> *:not(:first-of-type):not(:last-of-type)":{borderRadius:0},"> *:not(:first-of-type):last-of-type":{borderTopRadius:0}}},Z6={horizontal:e=>({"& > *:not(style) ~ *:not(style)":{marginStart:e}}),vertical:e=>({"& > *:not(style) ~ *:not(style)":{marginTop:e}})},pa=ce(function(t,r){const{size:n,colorScheme:o,variant:i,className:a,spacing:s="0.5rem",isAttached:l,isDisabled:u,orientation:c="horizontal",...d}=t,f=$e("chakra-button__group",a),p=S.useMemo(()=>({size:n,colorScheme:o,variant:i,isDisabled:u}),[n,o,i,u]);let g={display:"inline-flex",...l?Q6[c]:Z6[c](s)};const y=c==="vertical";return h.jsx(Y6,{value:p,children:h.jsx(X.div,{ref:r,role:"group",__css:g,className:f,"data-attached":l?"":void 0,"data-orientation":c,flexDir:y?"column":void 0,...d})})});pa.displayName="ButtonGroup";function J6(e){const[t,r]=S.useState(!e);return{ref:S.useCallback(i=>{i&&r(i.tagName==="BUTTON")},[]),type:t?"button":void 0}}function Vp(e){const{children:t,className:r,...n}=e,o=S.isValidElement(t)?S.cloneElement(t,{"aria-hidden":!0,focusable:!1}):t,i=$e("chakra-button__icon",r);return h.jsx(X.span,{display:"inline-flex",alignSelf:"center",flexShrink:0,...n,className:i,children:o})}Vp.displayName="ButtonIcon";function Wp(e){const{label:t,placement:r,spacing:n="0.5rem",children:o=h.jsx(Mg,{color:"currentColor",width:"1em",height:"1em"}),className:i,__css:a,...s}=e,l=$e("chakra-button__spinner",i),u=r==="start"?"marginEnd":"marginStart",c=S.useMemo(()=>({display:"flex",alignItems:"center",position:t?"relative":"absolute",[u]:t?n:0,fontSize:"1em",lineHeight:"normal",...a}),[a,t,u,n]);return h.jsx(X.div,{className:l,...s,__css:c,children:o})}Wp.displayName="ButtonSpinner";var qn=ce((e,t)=>{const r=X6(),n=En("Button",{...r,...e}),{isDisabled:o=r==null?void 0:r.isDisabled,isLoading:i,isActive:a,children:s,leftIcon:l,rightIcon:u,loadingText:c,iconSpacing:d="0.5rem",type:f,spinner:p,spinnerPlacement:g="start",className:y,as:w,...v}=It(e),m=S.useMemo(()=>{const E={...n==null?void 0:n._focus,zIndex:1};return{display:"inline-flex",appearance:"none",alignItems:"center",justifyContent:"center",userSelect:"none",position:"relative",whiteSpace:"nowrap",verticalAlign:"middle",outline:"none",...n,...!!r&&{_focus:E}}},[n,r]),{ref:x,type:b}=J6(w),P={rightIcon:u,leftIcon:l,iconSpacing:d,children:s};return h.jsxs(X.button,{ref:U6(t,x),as:w,type:f??b,"data-active":ri(a),"data-loading":ri(i),__css:m,className:$e("chakra-button",y),...v,disabled:o||i,children:[i&&g==="start"&&h.jsx(Wp,{className:"chakra-button__spinner--start",label:c,placement:"start",spacing:d,children:p}),i?c||h.jsx(X.span,{opacity:0,children:h.jsx(A1,{...P})}):h.jsx(A1,{...P}),i&&g==="end"&&h.jsx(Wp,{className:"chakra-button__spinner--end",label:c,placement:"end",spacing:d,children:p})]})});qn.displayName="Button";function A1(e){const{leftIcon:t,rightIcon:r,children:n,iconSpacing:o}=e;return h.jsxs(h.Fragment,{children:[t&&h.jsx(Vp,{marginEnd:o,children:t}),n,r&&h.jsx(Vp,{marginStart:o,children:r})]})}var _e=ce((e,t)=>{const{icon:r,children:n,isRound:o,"aria-label":i,...a}=e,s=r||n,l=S.isValidElement(s)?S.cloneElement(s,{"aria-hidden":!0,focusable:!1}):null;return h.jsx(qn,{padding:"0",borderRadius:o?"full":void 0,ref:t,"aria-label":i,...a,children:l})});_e.displayName="IconButton";var[eF,iC]=rM("Card"),aC=ce(function(t,r){const{className:n,...o}=t,i=iC();return h.jsx(X.div,{ref:r,className:$e("chakra-card__body",n),__css:i.body,...o})}),sC=ce(function(t,r){const{className:n,...o}=t,i=iC();return h.jsx(X.div,{ref:r,className:$e("chakra-card__header",n),__css:i.header,...o})}),lC=ce(function(t,r){const{className:n,children:o,direction:i="column",justify:a,align:s,...l}=It(t),u=wi("Card",t);return h.jsx(X.div,{ref:r,className:$e("chakra-card",n),__css:{display:"flex",flexDirection:i,justifyContent:a,alignItems:s,position:"relative",minWidth:0,wordWrap:"break-word",...u.container},...l,children:h.jsx(eF,{value:u,children:o})})}),[tF,uC]=sn({name:"FormControlStylesContext",errorMessage:`useFormControlStyles returned is 'undefined'. Seems you forgot to wrap the components in "" `}),[rF,Va]=sn({strict:!1,name:"FormControlContext"});function nF(e){const{id:t,isRequired:r,isInvalid:n,isDisabled:o,isReadOnly:i,...a}=e,s=S.useId(),l=t||`field-${s}`,u=`${l}-label`,c=`${l}-feedback`,d=`${l}-helptext`,[f,p]=S.useState(!1),[g,y]=S.useState(!1),[w,v]=S.useState(!1),m=S.useCallback((C={},R=null)=>({id:d,...C,ref:Jr(R,M=>{M&&y(!0)})}),[d]),x=S.useCallback((C={},R=null)=>({...C,ref:R,"data-focus":ri(w),"data-disabled":ri(o),"data-invalid":ri(n),"data-readonly":ri(i),id:C.id!==void 0?C.id:u,htmlFor:C.htmlFor!==void 0?C.htmlFor:l}),[l,o,w,n,i,u]),b=S.useCallback((C={},R=null)=>({id:c,...C,ref:Jr(R,M=>{M&&p(!0)}),"aria-live":"polite"}),[c]),P=S.useCallback((C={},R=null)=>({...C,...a,ref:R,role:"group"}),[a]),E=S.useCallback((C={},R=null)=>({...C,ref:R,role:"presentation","aria-hidden":!0,children:C.children||"*"}),[]);return{isRequired:!!r,isInvalid:!!n,isReadOnly:!!i,isDisabled:!!o,isFocused:!!w,onFocus:()=>v(!0),onBlur:()=>v(!1),hasFeedbackText:f,setHasFeedbackText:p,hasHelpText:g,setHasHelpText:y,id:l,labelId:u,feedbackId:c,helpTextId:d,htmlProps:a,getHelpTextProps:m,getErrorMessageProps:b,getRootProps:P,getLabelProps:x,getRequiredIndicatorProps:E}}var en=ce(function(t,r){const n=wi("Form",t),o=It(t),{getRootProps:i,htmlProps:a,...s}=nF(o),l=$e("chakra-form-control",t.className);return h.jsx(rF,{value:s,children:h.jsx(tF,{value:n,children:h.jsx(X.div,{...i({},r),className:l,__css:n.container})})})});en.displayName="FormControl";var oF=ce(function(t,r){const n=Va(),o=uC(),i=$e("chakra-form__helper-text",t.className);return h.jsx(X.div,{...n==null?void 0:n.getHelpTextProps(t,r),__css:o.helperText,className:i})});oF.displayName="FormHelperText";var[iF,aF]=sn({name:"FormErrorStylesContext",errorMessage:`useFormErrorStyles returned is 'undefined'. Seems you forgot to wrap the components in "" `}),vi=ce((e,t)=>{const r=wi("FormError",e),n=It(e),o=Va();return o!=null&&o.isInvalid?h.jsx(iF,{value:r,children:h.jsx(X.div,{...o==null?void 0:o.getErrorMessageProps(n,t),className:$e("chakra-form__error-message",e.className),__css:{display:"flex",alignItems:"center",...r.text}})}):null});vi.displayName="FormErrorMessage";var sF=ce((e,t)=>{const r=aF(),n=Va();if(!(n!=null&&n.isInvalid))return null;const o=$e("chakra-form__error-icon",e.className);return h.jsx(Ue,{ref:t,"aria-hidden":!0,...e,__css:r.icon,className:o,children:h.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"})})});sF.displayName="FormErrorIcon";var tn=ce(function(t,r){var n;const o=En("FormLabel",t),i=It(t),{className:a,children:s,requiredIndicator:l=h.jsx(cC,{}),optionalIndicator:u=null,...c}=i,d=Va(),f=(n=d==null?void 0:d.getLabelProps(c,r))!=null?n:{ref:r,...c};return h.jsxs(X.label,{...f,className:$e("chakra-form__label",i.className),__css:{display:"block",textAlign:"start",...o},children:[s,d!=null&&d.isRequired?l:u]})});tn.displayName="FormLabel";var cC=ce(function(t,r){const n=Va(),o=uC();if(!(n!=null&&n.isRequired))return null;const i=$e("chakra-form__required-indicator",t.className);return h.jsx(X.span,{...n==null?void 0:n.getRequiredIndicatorProps(t,r),__css:o.requiredIndicator,className:i})});cC.displayName="RequiredIndicator";function Og(e){const{isDisabled:t,isInvalid:r,isReadOnly:n,isRequired:o,...i}=lF(e);return{...i,disabled:t,readOnly:n,required:o,"aria-invalid":Ff(r),"aria-required":Ff(o),"aria-readonly":Ff(n)}}function lF(e){var t,r,n;const o=Va(),{id:i,disabled:a,readOnly:s,required:l,isRequired:u,isInvalid:c,isReadOnly:d,isDisabled:f,onFocus:p,onBlur:g,...y}=e,w=e["aria-describedby"]?[e["aria-describedby"]]:[];return o!=null&&o.hasFeedbackText&&(o!=null&&o.isInvalid)&&w.push(o.feedbackId),o!=null&&o.hasHelpText&&w.push(o.helpTextId),{...y,"aria-describedby":w.join(" ")||void 0,id:i??(o==null?void 0:o.id),isDisabled:(t=a??f)!=null?t:o==null?void 0:o.isDisabled,isReadOnly:(r=s??d)!=null?r:o==null?void 0:o.isReadOnly,isRequired:(n=l??u)!=null?n:o==null?void 0:o.isRequired,isInvalid:c??(o==null?void 0:o.isInvalid),onFocus:Rt(o==null?void 0:o.onFocus,p),onBlur:Rt(o==null?void 0:o.onBlur,g)}}function ma(e,t,r,n){const o=Hc(r);return S.useEffect(()=>{const i=typeof e=="function"?e():e??document;if(!(!r||!i))return i.addEventListener(t,o,n),()=>{i.removeEventListener(t,o,n)}},[t,e,n,o,r]),()=>{const i=typeof e=="function"?e():e??document;i==null||i.removeEventListener(t,o,n)}}function uF(e){return"current"in e}var dC=()=>typeof window<"u";function cF(){var e;const t=navigator.userAgentData;return(e=t==null?void 0:t.platform)!=null?e:navigator.platform}var dF=e=>dC()&&e.test(navigator.vendor),fF=e=>dC()&&e.test(cF()),hF=()=>fF(/mac|iphone|ipad|ipod/i),pF=()=>hF()&&dF(/apple/i);function mF(e){const{ref:t,elements:r,enabled:n}=e,o=()=>{var i,a;return(a=(i=t.current)==null?void 0:i.ownerDocument)!=null?a:document};ma(o,"pointerdown",i=>{if(!pF()||!n)return;const a=i.target,l=(r??[t]).some(u=>{const c=uF(u)?u.current:u;return(c==null?void 0:c.contains(a))||c===a});o().activeElement!==a&&l&&(i.preventDefault(),a.focus())})}function fC(e){return e!=null&&typeof e=="object"&&"nodeType"in e&&e.nodeType===Node.ELEMENT_NODE}function Fg(e){var t;if(!fC(e))return!1;const r=(t=e.ownerDocument.defaultView)!=null?t:window;return e instanceof r.HTMLElement}function gF(e){var t,r;return(r=(t=hC(e))==null?void 0:t.defaultView)!=null?r:window}function hC(e){return fC(e)?e.ownerDocument:document}function vF(e){return hC(e).activeElement}function yF(e){const t=e.ownerDocument.defaultView||window,{overflow:r,overflowX:n,overflowY:o}=t.getComputedStyle(e);return/auto|scroll|overlay|hidden/.test(r+o+n)}function bF(e){return e.localName==="html"?e:e.assignedSlot||e.parentElement||e.ownerDocument.documentElement}function pC(e){return["html","body","#document"].includes(e.localName)?e.ownerDocument.body:Fg(e)&&yF(e)?e:pC(bF(e))}var mC=e=>e.hasAttribute("tabindex"),xF=e=>mC(e)&&e.tabIndex===-1;function SF(e){return!!e.getAttribute("disabled")||!!e.getAttribute("aria-disabled")}function gC(e){return e.parentElement&&gC(e.parentElement)?!0:e.hidden}function wF(e){const t=e.getAttribute("contenteditable");return t!=="false"&&t!=null}function vC(e){if(!Fg(e)||gC(e)||SF(e))return!1;const{localName:t}=e;if(["input","select","textarea","button"].indexOf(t)>=0)return!0;const n={a:()=>e.hasAttribute("href"),audio:()=>e.hasAttribute("controls"),video:()=>e.hasAttribute("controls")};return t in n?n[t]():wF(e)?!0:mC(e)}function kF(e){return e?Fg(e)&&vC(e)&&!xF(e):!1}var CF=["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]"],PF=CF.join(),_F=e=>e.offsetWidth>0&&e.offsetHeight>0;function TF(e){const t=Array.from(e.querySelectorAll(PF));return t.unshift(e),t.filter(r=>vC(r)&&_F(r))}function $1(e=!1){const[t,r]=S.useState(e),n=S.useMemo(()=>({on:()=>r(!0),off:()=>r(!1),toggle:()=>r(o=>!o)}),[]);return[t,n]}var _n=ce(function(t,r){const{htmlSize:n,...o}=t,i=wi("Input",o),a=It(o),s=Og(a),l=$e("chakra-input",t.className);return h.jsx(X.input,{size:n,...s,__css:i.field,ref:r,className:l})});_n.displayName="Input";_n.id="Input";var yC=ce(function(t,r){const{templateAreas:n,gap:o,rowGap:i,columnGap:a,column:s,row:l,autoFlow:u,autoRows:c,templateRows:d,autoColumns:f,templateColumns:p,...g}=t,y={display:"grid",gridTemplateAreas:n,gridGap:o,gridRowGap:i,gridColumnGap:a,gridAutoColumns:f,gridColumn:s,gridRow:l,gridAutoFlow:u,gridAutoRows:c,gridTemplateRows:d,gridTemplateColumns:p};return h.jsx(X.div,{ref:r,__css:y,...g})});yC.displayName="Grid";function Ig(e,t){return Array.isArray(e)?e.map(r=>r===null?null:t(r)):Dr(e)?Object.keys(e).reduce((r,n)=>(r[n]=t(e[n]),r),{}):e!=null?t(e):null}var Bg=ce(function(t,r){const{columns:n,spacingX:o,spacingY:i,spacing:a,minChildWidth:s,...l}=t,u=Dl(),c=s?RF(s,u):jF(n);return h.jsx(yC,{ref:r,gap:a,columnGap:o,rowGap:i,templateColumns:c,...l})});Bg.displayName="SimpleGrid";function EF(e){return typeof e=="number"?`${e}px`:e}function RF(e,t){return Ig(e,r=>{const n=ZS("sizes",r,EF(r))(t);return r===null?null:`repeat(auto-fit, minmax(${n}, 1fr))`})}function jF(e){return Ig(e,t=>t===null?null:`repeat(${t}, minmax(0, 1fr))`)}var uc=X("div",{baseStyle:{flex:1,justifySelf:"stretch",alignSelf:"stretch"}});uc.displayName="Spacer";var fr=ce(function(t,r){const n=En("Text",t),{className:o,align:i,decoration:a,casing:s,...l}=It(t),u=Vz({textAlign:t.align,textDecoration:t.decoration,textTransform:t.casing});return h.jsx(X.p,{ref:r,className:$e("chakra-text",t.className),...u,...l,__css:n})});fr.displayName="Text";var bC=e=>h.jsx(X.div,{className:"chakra-stack__item",...e,__css:{display:"inline-block",flex:"0 0 auto",minWidth:0,...e.__css}});bC.displayName="StackItem";function AF(e){const{spacing:t,direction:r}=e,n={column:{my:t,mx:0,borderLeftWidth:0,borderBottomWidth:"1px"},"column-reverse":{my:t,mx:0,borderLeftWidth:0,borderBottomWidth:"1px"},row:{mx:t,my:0,borderLeftWidth:"1px",borderBottomWidth:0},"row-reverse":{mx:t,my:0,borderLeftWidth:"1px",borderBottomWidth:0}};return{"&":Ig(r,o=>n[o])}}var Ng=ce((e,t)=>{const{isInline:r,direction:n,align:o,justify:i,spacing:a="0.5rem",wrap:s,children:l,divider:u,className:c,shouldWrapChildren:d,...f}=e,p=r?"row":n??"column",g=S.useMemo(()=>AF({spacing:a,direction:p}),[a,p]),y=!!u,w=!d&&!y,v=S.useMemo(()=>{const x=K6(l);return w?x:x.map((b,P)=>{const E=typeof b.key<"u"?b.key:P,C=P+1===x.length,M=d?h.jsx(bC,{children:b},E):b;if(!y)return M;const z=S.cloneElement(u,{__css:g}),L=C?null:z;return h.jsxs(S.Fragment,{children:[M,L]},E)})},[u,g,y,w,d,l]),m=$e("chakra-stack",c);return h.jsx(X.div,{ref:t,display:"flex",alignItems:o,justifyContent:i,flexDirection:p,flexWrap:s,gap:y?void 0:a,className:m,...f,children:v})});Ng.displayName="Stack";var Ot=ce((e,t)=>h.jsx(Ng,{align:"center",...e,direction:"column",ref:t}));Ot.displayName="VStack";var Cn=ce((e,t)=>h.jsx(Ng,{align:"center",...e,direction:"row",ref:t}));Cn.displayName="HStack";var br=ce(function(t,r){const n=En("Heading",t),{className:o,...i}=It(t);return h.jsx(X.h2,{ref:r,className:$e("chakra-heading",t.className),...i,__css:n})});br.displayName="Heading";var Lr=X("div");Lr.displayName="Box";var xC=ce(function(t,r){const{size:n,centerContent:o=!0,...i}=t,a=o?{display:"flex",alignItems:"center",justifyContent:"center"}:{};return h.jsx(Lr,{ref:r,boxSize:n,__css:{...a,flexShrink:0,flexGrow:0},...i})});xC.displayName="Square";var $F=ce(function(t,r){const{size:n,...o}=t;return h.jsx(xC,{size:n,ref:r,borderRadius:"9999px",...o})});$F.displayName="Circle";var an=ce(function(t,r){const{borderLeftWidth:n,borderBottomWidth:o,borderTopWidth:i,borderRightWidth:a,borderWidth:s,borderStyle:l,borderColor:u,...c}=En("Divider",t),{className:d,orientation:f="horizontal",__css:p,...g}=It(t),y={vertical:{borderLeftWidth:n||a||s||"1px",height:"100%"},horizontal:{borderBottomWidth:o||i||s||"1px",width:"100%"}};return h.jsx(X.hr,{ref:r,"aria-orientation":f,...g,__css:{...c,border:"0",borderColor:u,borderStyle:l,...y[f],...p},className:$e("chakra-divider",d)})});an.displayName="Divider";var yt=ce(function(t,r){const{direction:n,align:o,justify:i,wrap:a,basis:s,grow:l,shrink:u,...c}=t,d={display:"flex",flexDirection:n,alignItems:o,justifyContent:i,flexWrap:a,flexBasis:s,flexGrow:l,flexShrink:u};return h.jsx(X.div,{ref:r,__css:d,...c})});yt.displayName="Flex";function zF(e){const t=e.current;if(!t)return!1;const r=vF(t);return!r||t.contains(r)?!1:!!kF(r)}function MF(e,t){const{shouldFocus:r,visible:n,focusRef:o}=t,i=r&&!n;Gc(()=>{if(!i||zF(e))return;const a=(o==null?void 0:o.current)||e.current;let s;if(a)return s=requestAnimationFrame(()=>{a.focus({preventScroll:!0})}),()=>{cancelAnimationFrame(s)}},[i,e,o])}var DF={preventScroll:!0,shouldFocus:!1};function LF(e,t=DF){const{focusRef:r,preventScroll:n,shouldFocus:o,visible:i}=t,a=OF(e)?e.current:e,s=o&&i,l=S.useRef(s),u=S.useRef(i);Pa(()=>{!u.current&&i&&(l.current=s),u.current=i},[i,s]);const c=S.useCallback(()=>{if(!(!i||!a||!l.current)&&(l.current=!1,!a.contains(document.activeElement)))if(r!=null&&r.current)requestAnimationFrame(()=>{var d;(d=r.current)==null||d.focus({preventScroll:n})});else{const d=TF(a);d.length>0&&requestAnimationFrame(()=>{d[0].focus({preventScroll:n})})}},[i,n,a,r]);Gc(()=>{c()},[c]),ma(a,"transitionend",c)}function OF(e){return"current"in e}var Ri=(e,t)=>({var:e,varRef:t?`var(${e}, ${t})`:`var(${e})`}),pt={arrowShadowColor:Ri("--popper-arrow-shadow-color"),arrowSize:Ri("--popper-arrow-size","8px"),arrowSizeHalf:Ri("--popper-arrow-size-half"),arrowBg:Ri("--popper-arrow-bg"),transformOrigin:Ri("--popper-transform-origin"),arrowOffset:Ri("--popper-arrow-offset")};function FF(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 IF={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"},BF=e=>IF[e],z1={scroll:!0,resize:!0};function NF(e){let t;return typeof e=="object"?t={enabled:!0,options:{...z1,...e}}:t={enabled:e,options:z1},t}var VF={name:"matchWidth",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:({state:e})=>{e.styles.popper.width=`${e.rects.reference.width}px`},effect:({state:e})=>()=>{const t=e.elements.reference;e.elements.popper.style.width=`${t.offsetWidth}px`}},WF={name:"transformOrigin",enabled:!0,phase:"write",fn:({state:e})=>{M1(e)},effect:({state:e})=>()=>{M1(e)}},M1=e=>{e.elements.popper.style.setProperty(pt.transformOrigin.var,BF(e.placement))},UF={name:"positionArrow",enabled:!0,phase:"afterWrite",fn:({state:e})=>{HF(e)}},HF=e=>{var t;if(!e.placement)return;const r=GF(e.placement);if((t=e.elements)!=null&&t.arrow&&r){Object.assign(e.elements.arrow.style,{[r.property]:r.value,width:pt.arrowSize.varRef,height:pt.arrowSize.varRef,zIndex:-1});const n={[pt.arrowSizeHalf.var]:`calc(${pt.arrowSize.varRef} / 2 - 1px)`,[pt.arrowOffset.var]:`calc(${pt.arrowSizeHalf.varRef} * -1)`};for(const o in n)e.elements.arrow.style.setProperty(o,n[o])}},GF=e=>{if(e.startsWith("top"))return{property:"bottom",value:pt.arrowOffset.varRef};if(e.startsWith("bottom"))return{property:"top",value:pt.arrowOffset.varRef};if(e.startsWith("left"))return{property:"right",value:pt.arrowOffset.varRef};if(e.startsWith("right"))return{property:"left",value:pt.arrowOffset.varRef}},qF={name:"innerArrow",enabled:!0,phase:"main",requires:["arrow"],fn:({state:e})=>{D1(e)},effect:({state:e})=>()=>{D1(e)}},D1=e=>{if(!e.elements.arrow)return;const t=e.elements.arrow.querySelector("[data-popper-arrow-inner]");if(!t)return;const r=FF(e.placement);r&&t.style.setProperty("--popper-arrow-default-shadow",r),Object.assign(t.style,{transform:"rotate(45deg)",background:pt.arrowBg.varRef,top:0,left:0,width:"100%",height:"100%",position:"absolute",zIndex:"inherit",boxShadow:"var(--popper-arrow-shadow, var(--popper-arrow-default-shadow))"})},KF={"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"}},YF={"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 XF(e,t="ltr"){var r,n;const o=((r=KF[e])==null?void 0:r[t])||e;return t==="ltr"?o:(n=YF[e])!=null?n:o}var rr="top",Br="bottom",Nr="right",nr="left",Vg="auto",Vl=[rr,Br,Nr,nr],ja="start",Pl="end",QF="clippingParents",SC="viewport",fs="popper",ZF="reference",L1=Vl.reduce(function(e,t){return e.concat([t+"-"+ja,t+"-"+Pl])},[]),wC=[].concat(Vl,[Vg]).reduce(function(e,t){return e.concat([t,t+"-"+ja,t+"-"+Pl])},[]),JF="beforeRead",eI="read",tI="afterRead",rI="beforeMain",nI="main",oI="afterMain",iI="beforeWrite",aI="write",sI="afterWrite",lI=[JF,eI,tI,rI,nI,oI,iI,aI,sI];function Tn(e){return e?(e.nodeName||"").toLowerCase():null}function xr(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function yi(e){var t=xr(e).Element;return e instanceof t||e instanceof Element}function Or(e){var t=xr(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function Wg(e){if(typeof ShadowRoot>"u")return!1;var t=xr(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function uI(e){var t=e.state;Object.keys(t.elements).forEach(function(r){var n=t.styles[r]||{},o=t.attributes[r]||{},i=t.elements[r];!Or(i)||!Tn(i)||(Object.assign(i.style,n),Object.keys(o).forEach(function(a){var s=o[a];s===!1?i.removeAttribute(a):i.setAttribute(a,s===!0?"":s)}))})}function cI(e){var t=e.state,r={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,r.popper),t.styles=r,t.elements.arrow&&Object.assign(t.elements.arrow.style,r.arrow),function(){Object.keys(t.elements).forEach(function(n){var o=t.elements[n],i=t.attributes[n]||{},a=Object.keys(t.styles.hasOwnProperty(n)?t.styles[n]:r[n]),s=a.reduce(function(l,u){return l[u]="",l},{});!Or(o)||!Tn(o)||(Object.assign(o.style,s),Object.keys(i).forEach(function(l){o.removeAttribute(l)}))})}}const dI={name:"applyStyles",enabled:!0,phase:"write",fn:uI,effect:cI,requires:["computeStyles"]};function Pn(e){return e.split("-")[0]}var di=Math.max,td=Math.min,Aa=Math.round;function Up(){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 kC(){return!/^((?!chrome|android).)*safari/i.test(Up())}function $a(e,t,r){t===void 0&&(t=!1),r===void 0&&(r=!1);var n=e.getBoundingClientRect(),o=1,i=1;t&&Or(e)&&(o=e.offsetWidth>0&&Aa(n.width)/e.offsetWidth||1,i=e.offsetHeight>0&&Aa(n.height)/e.offsetHeight||1);var a=yi(e)?xr(e):window,s=a.visualViewport,l=!kC()&&r,u=(n.left+(l&&s?s.offsetLeft:0))/o,c=(n.top+(l&&s?s.offsetTop:0))/i,d=n.width/o,f=n.height/i;return{width:d,height:f,top:c,right:u+d,bottom:c+f,left:u,x:u,y:c}}function Ug(e){var t=$a(e),r=e.offsetWidth,n=e.offsetHeight;return Math.abs(t.width-r)<=1&&(r=t.width),Math.abs(t.height-n)<=1&&(n=t.height),{x:e.offsetLeft,y:e.offsetTop,width:r,height:n}}function CC(e,t){var r=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(r&&Wg(r)){var n=t;do{if(n&&e.isSameNode(n))return!0;n=n.parentNode||n.host}while(n)}return!1}function to(e){return xr(e).getComputedStyle(e)}function fI(e){return["table","td","th"].indexOf(Tn(e))>=0}function Bo(e){return((yi(e)?e.ownerDocument:e.document)||window.document).documentElement}function Gd(e){return Tn(e)==="html"?e:e.assignedSlot||e.parentNode||(Wg(e)?e.host:null)||Bo(e)}function O1(e){return!Or(e)||to(e).position==="fixed"?null:e.offsetParent}function hI(e){var t=/firefox/i.test(Up()),r=/Trident/i.test(Up());if(r&&Or(e)){var n=to(e);if(n.position==="fixed")return null}var o=Gd(e);for(Wg(o)&&(o=o.host);Or(o)&&["html","body"].indexOf(Tn(o))<0;){var i=to(o);if(i.transform!=="none"||i.perspective!=="none"||i.contain==="paint"||["transform","perspective"].indexOf(i.willChange)!==-1||t&&i.willChange==="filter"||t&&i.filter&&i.filter!=="none")return o;o=o.parentNode}return null}function Wl(e){for(var t=xr(e),r=O1(e);r&&fI(r)&&to(r).position==="static";)r=O1(r);return r&&(Tn(r)==="html"||Tn(r)==="body"&&to(r).position==="static")?t:r||hI(e)||t}function Hg(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Ks(e,t,r){return di(e,td(t,r))}function pI(e,t,r){var n=Ks(e,t,r);return n>r?r:n}function PC(){return{top:0,right:0,bottom:0,left:0}}function _C(e){return Object.assign({},PC(),e)}function TC(e,t){return t.reduce(function(r,n){return r[n]=e,r},{})}var mI=function(t,r){return t=typeof t=="function"?t(Object.assign({},r.rects,{placement:r.placement})):t,_C(typeof t!="number"?t:TC(t,Vl))};function gI(e){var t,r=e.state,n=e.name,o=e.options,i=r.elements.arrow,a=r.modifiersData.popperOffsets,s=Pn(r.placement),l=Hg(s),u=[nr,Nr].indexOf(s)>=0,c=u?"height":"width";if(!(!i||!a)){var d=mI(o.padding,r),f=Ug(i),p=l==="y"?rr:nr,g=l==="y"?Br:Nr,y=r.rects.reference[c]+r.rects.reference[l]-a[l]-r.rects.popper[c],w=a[l]-r.rects.reference[l],v=Wl(i),m=v?l==="y"?v.clientHeight||0:v.clientWidth||0:0,x=y/2-w/2,b=d[p],P=m-f[c]-d[g],E=m/2-f[c]/2+x,C=Ks(b,E,P),R=l;r.modifiersData[n]=(t={},t[R]=C,t.centerOffset=C-E,t)}}function vI(e){var t=e.state,r=e.options,n=r.element,o=n===void 0?"[data-popper-arrow]":n;o!=null&&(typeof o=="string"&&(o=t.elements.popper.querySelector(o),!o)||CC(t.elements.popper,o)&&(t.elements.arrow=o))}const yI={name:"arrow",enabled:!0,phase:"main",fn:gI,effect:vI,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function za(e){return e.split("-")[1]}var bI={top:"auto",right:"auto",bottom:"auto",left:"auto"};function xI(e,t){var r=e.x,n=e.y,o=t.devicePixelRatio||1;return{x:Aa(r*o)/o||0,y:Aa(n*o)/o||0}}function F1(e){var t,r=e.popper,n=e.popperRect,o=e.placement,i=e.variation,a=e.offsets,s=e.position,l=e.gpuAcceleration,u=e.adaptive,c=e.roundOffsets,d=e.isFixed,f=a.x,p=f===void 0?0:f,g=a.y,y=g===void 0?0:g,w=typeof c=="function"?c({x:p,y}):{x:p,y};p=w.x,y=w.y;var v=a.hasOwnProperty("x"),m=a.hasOwnProperty("y"),x=nr,b=rr,P=window;if(u){var E=Wl(r),C="clientHeight",R="clientWidth";if(E===xr(r)&&(E=Bo(r),to(E).position!=="static"&&s==="absolute"&&(C="scrollHeight",R="scrollWidth")),E=E,o===rr||(o===nr||o===Nr)&&i===Pl){b=Br;var M=d&&E===P&&P.visualViewport?P.visualViewport.height:E[C];y-=M-n.height,y*=l?1:-1}if(o===nr||(o===rr||o===Br)&&i===Pl){x=Nr;var z=d&&E===P&&P.visualViewport?P.visualViewport.width:E[R];p-=z-n.width,p*=l?1:-1}}var L=Object.assign({position:s},u&&bI),U=c===!0?xI({x:p,y},xr(r)):{x:p,y};if(p=U.x,y=U.y,l){var Q;return Object.assign({},L,(Q={},Q[b]=m?"0":"",Q[x]=v?"0":"",Q.transform=(P.devicePixelRatio||1)<=1?"translate("+p+"px, "+y+"px)":"translate3d("+p+"px, "+y+"px, 0)",Q))}return Object.assign({},L,(t={},t[b]=m?y+"px":"",t[x]=v?p+"px":"",t.transform="",t))}function SI(e){var t=e.state,r=e.options,n=r.gpuAcceleration,o=n===void 0?!0:n,i=r.adaptive,a=i===void 0?!0:i,s=r.roundOffsets,l=s===void 0?!0:s,u={placement:Pn(t.placement),variation:za(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:o,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,F1(Object.assign({},u,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:a,roundOffsets:l})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,F1(Object.assign({},u,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const wI={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:SI,data:{}};var Mu={passive:!0};function kI(e){var t=e.state,r=e.instance,n=e.options,o=n.scroll,i=o===void 0?!0:o,a=n.resize,s=a===void 0?!0:a,l=xr(t.elements.popper),u=[].concat(t.scrollParents.reference,t.scrollParents.popper);return i&&u.forEach(function(c){c.addEventListener("scroll",r.update,Mu)}),s&&l.addEventListener("resize",r.update,Mu),function(){i&&u.forEach(function(c){c.removeEventListener("scroll",r.update,Mu)}),s&&l.removeEventListener("resize",r.update,Mu)}}const CI={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:kI,data:{}};var PI={left:"right",right:"left",bottom:"top",top:"bottom"};function cc(e){return e.replace(/left|right|bottom|top/g,function(t){return PI[t]})}var _I={start:"end",end:"start"};function I1(e){return e.replace(/start|end/g,function(t){return _I[t]})}function Gg(e){var t=xr(e),r=t.pageXOffset,n=t.pageYOffset;return{scrollLeft:r,scrollTop:n}}function qg(e){return $a(Bo(e)).left+Gg(e).scrollLeft}function TI(e,t){var r=xr(e),n=Bo(e),o=r.visualViewport,i=n.clientWidth,a=n.clientHeight,s=0,l=0;if(o){i=o.width,a=o.height;var u=kC();(u||!u&&t==="fixed")&&(s=o.offsetLeft,l=o.offsetTop)}return{width:i,height:a,x:s+qg(e),y:l}}function EI(e){var t,r=Bo(e),n=Gg(e),o=(t=e.ownerDocument)==null?void 0:t.body,i=di(r.scrollWidth,r.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),a=di(r.scrollHeight,r.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),s=-n.scrollLeft+qg(e),l=-n.scrollTop;return to(o||r).direction==="rtl"&&(s+=di(r.clientWidth,o?o.clientWidth:0)-i),{width:i,height:a,x:s,y:l}}function Kg(e){var t=to(e),r=t.overflow,n=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(r+o+n)}function EC(e){return["html","body","#document"].indexOf(Tn(e))>=0?e.ownerDocument.body:Or(e)&&Kg(e)?e:EC(Gd(e))}function Ys(e,t){var r;t===void 0&&(t=[]);var n=EC(e),o=n===((r=e.ownerDocument)==null?void 0:r.body),i=xr(n),a=o?[i].concat(i.visualViewport||[],Kg(n)?n:[]):n,s=t.concat(a);return o?s:s.concat(Ys(Gd(a)))}function Hp(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function RI(e,t){var r=$a(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 B1(e,t,r){return t===SC?Hp(TI(e,r)):yi(t)?RI(t,r):Hp(EI(Bo(e)))}function jI(e){var t=Ys(Gd(e)),r=["absolute","fixed"].indexOf(to(e).position)>=0,n=r&&Or(e)?Wl(e):e;return yi(n)?t.filter(function(o){return yi(o)&&CC(o,n)&&Tn(o)!=="body"}):[]}function AI(e,t,r,n){var o=t==="clippingParents"?jI(e):[].concat(t),i=[].concat(o,[r]),a=i[0],s=i.reduce(function(l,u){var c=B1(e,u,n);return l.top=di(c.top,l.top),l.right=td(c.right,l.right),l.bottom=td(c.bottom,l.bottom),l.left=di(c.left,l.left),l},B1(e,a,n));return s.width=s.right-s.left,s.height=s.bottom-s.top,s.x=s.left,s.y=s.top,s}function RC(e){var t=e.reference,r=e.element,n=e.placement,o=n?Pn(n):null,i=n?za(n):null,a=t.x+t.width/2-r.width/2,s=t.y+t.height/2-r.height/2,l;switch(o){case rr:l={x:a,y:t.y-r.height};break;case Br:l={x:a,y:t.y+t.height};break;case Nr:l={x:t.x+t.width,y:s};break;case nr:l={x:t.x-r.width,y:s};break;default:l={x:t.x,y:t.y}}var u=o?Hg(o):null;if(u!=null){var c=u==="y"?"height":"width";switch(i){case ja:l[u]=l[u]-(t[c]/2-r[c]/2);break;case Pl:l[u]=l[u]+(t[c]/2-r[c]/2);break}}return l}function _l(e,t){t===void 0&&(t={});var r=t,n=r.placement,o=n===void 0?e.placement:n,i=r.strategy,a=i===void 0?e.strategy:i,s=r.boundary,l=s===void 0?QF:s,u=r.rootBoundary,c=u===void 0?SC:u,d=r.elementContext,f=d===void 0?fs:d,p=r.altBoundary,g=p===void 0?!1:p,y=r.padding,w=y===void 0?0:y,v=_C(typeof w!="number"?w:TC(w,Vl)),m=f===fs?ZF:fs,x=e.rects.popper,b=e.elements[g?m:f],P=AI(yi(b)?b:b.contextElement||Bo(e.elements.popper),l,c,a),E=$a(e.elements.reference),C=RC({reference:E,element:x,strategy:"absolute",placement:o}),R=Hp(Object.assign({},x,C)),M=f===fs?R:E,z={top:P.top-M.top+v.top,bottom:M.bottom-P.bottom+v.bottom,left:P.left-M.left+v.left,right:M.right-P.right+v.right},L=e.modifiersData.offset;if(f===fs&&L){var U=L[o];Object.keys(z).forEach(function(Q){var Z=[Nr,Br].indexOf(Q)>=0?1:-1,se=[rr,Br].indexOf(Q)>=0?"y":"x";z[Q]+=U[se]*Z})}return z}function $I(e,t){t===void 0&&(t={});var r=t,n=r.placement,o=r.boundary,i=r.rootBoundary,a=r.padding,s=r.flipVariations,l=r.allowedAutoPlacements,u=l===void 0?wC:l,c=za(n),d=c?s?L1:L1.filter(function(g){return za(g)===c}):Vl,f=d.filter(function(g){return u.indexOf(g)>=0});f.length===0&&(f=d);var p=f.reduce(function(g,y){return g[y]=_l(e,{placement:y,boundary:o,rootBoundary:i,padding:a})[Pn(y)],g},{});return Object.keys(p).sort(function(g,y){return p[g]-p[y]})}function zI(e){if(Pn(e)===Vg)return[];var t=cc(e);return[I1(e),t,I1(t)]}function MI(e){var t=e.state,r=e.options,n=e.name;if(!t.modifiersData[n]._skip){for(var o=r.mainAxis,i=o===void 0?!0:o,a=r.altAxis,s=a===void 0?!0:a,l=r.fallbackPlacements,u=r.padding,c=r.boundary,d=r.rootBoundary,f=r.altBoundary,p=r.flipVariations,g=p===void 0?!0:p,y=r.allowedAutoPlacements,w=t.options.placement,v=Pn(w),m=v===w,x=l||(m||!g?[cc(w)]:zI(w)),b=[w].concat(x).reduce(function(re,de){return re.concat(Pn(de)===Vg?$I(t,{placement:de,boundary:c,rootBoundary:d,padding:u,flipVariations:g,allowedAutoPlacements:y}):de)},[]),P=t.rects.reference,E=t.rects.popper,C=new Map,R=!0,M=b[0],z=0;z=0,se=Z?"width":"height",J=_l(t,{placement:L,boundary:c,rootBoundary:d,altBoundary:f,padding:u}),oe=Z?Q?Nr:nr:Q?Br:rr;P[se]>E[se]&&(oe=cc(oe));var F=cc(oe),I=[];if(i&&I.push(J[U]<=0),s&&I.push(J[oe]<=0,J[F]<=0),I.every(function(re){return re})){M=L,R=!1;break}C.set(L,I)}if(R)for(var G=g?3:1,H=function(de){var ge=b.find(function(tt){var ze=C.get(tt);if(ze)return ze.slice(0,de).every(function(rt){return rt})});if(ge)return M=ge,"break"},le=G;le>0;le--){var ie=H(le);if(ie==="break")break}t.placement!==M&&(t.modifiersData[n]._skip=!0,t.placement=M,t.reset=!0)}}const DI={name:"flip",enabled:!0,phase:"main",fn:MI,requiresIfExists:["offset"],data:{_skip:!1}};function N1(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 V1(e){return[rr,Nr,Br,nr].some(function(t){return e[t]>=0})}function LI(e){var t=e.state,r=e.name,n=t.rects.reference,o=t.rects.popper,i=t.modifiersData.preventOverflow,a=_l(t,{elementContext:"reference"}),s=_l(t,{altBoundary:!0}),l=N1(a,n),u=N1(s,o,i),c=V1(l),d=V1(u);t.modifiersData[r]={referenceClippingOffsets:l,popperEscapeOffsets:u,isReferenceHidden:c,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":c,"data-popper-escaped":d})}const OI={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:LI};function FI(e,t,r){var n=Pn(e),o=[nr,rr].indexOf(n)>=0?-1:1,i=typeof r=="function"?r(Object.assign({},t,{placement:e})):r,a=i[0],s=i[1];return a=a||0,s=(s||0)*o,[nr,Nr].indexOf(n)>=0?{x:s,y:a}:{x:a,y:s}}function II(e){var t=e.state,r=e.options,n=e.name,o=r.offset,i=o===void 0?[0,0]:o,a=wC.reduce(function(c,d){return c[d]=FI(d,t.rects,i),c},{}),s=a[t.placement],l=s.x,u=s.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=u),t.modifiersData[n]=a}const BI={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:II};function NI(e){var t=e.state,r=e.name;t.modifiersData[r]=RC({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}const VI={name:"popperOffsets",enabled:!0,phase:"read",fn:NI,data:{}};function WI(e){return e==="x"?"y":"x"}function UI(e){var t=e.state,r=e.options,n=e.name,o=r.mainAxis,i=o===void 0?!0:o,a=r.altAxis,s=a===void 0?!1:a,l=r.boundary,u=r.rootBoundary,c=r.altBoundary,d=r.padding,f=r.tether,p=f===void 0?!0:f,g=r.tetherOffset,y=g===void 0?0:g,w=_l(t,{boundary:l,rootBoundary:u,padding:d,altBoundary:c}),v=Pn(t.placement),m=za(t.placement),x=!m,b=Hg(v),P=WI(b),E=t.modifiersData.popperOffsets,C=t.rects.reference,R=t.rects.popper,M=typeof y=="function"?y(Object.assign({},t.rects,{placement:t.placement})):y,z=typeof M=="number"?{mainAxis:M,altAxis:M}:Object.assign({mainAxis:0,altAxis:0},M),L=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,U={x:0,y:0};if(E){if(i){var Q,Z=b==="y"?rr:nr,se=b==="y"?Br:Nr,J=b==="y"?"height":"width",oe=E[b],F=oe+w[Z],I=oe-w[se],G=p?-R[J]/2:0,H=m===ja?C[J]:R[J],le=m===ja?-R[J]:-C[J],ie=t.elements.arrow,re=p&&ie?Ug(ie):{width:0,height:0},de=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:PC(),ge=de[Z],tt=de[se],ze=Ks(0,C[J],re[J]),rt=x?C[J]/2-G-ze-ge-z.mainAxis:H-ze-ge-z.mainAxis,St=x?-C[J]/2+G+ze+tt+z.mainAxis:le+ze+tt+z.mainAxis,nt=t.elements.arrow&&Wl(t.elements.arrow),ve=nt?b==="y"?nt.clientTop||0:nt.clientLeft||0:0,ut=(Q=L==null?void 0:L[b])!=null?Q:0,ln=oe+rt-ut-ve,ue=oe+St-ut,gt=Ks(p?td(F,ln):F,oe,p?di(I,ue):I);E[b]=gt,U[b]=gt-oe}if(s){var Ie,wt=b==="x"?rr:nr,Cr=b==="x"?Br:Nr,Be=E[P],sr=P==="y"?"height":"width",Vr=Be+w[wt],Bt=Be-w[Cr],oo=[rr,nr].indexOf(v)!==-1,io=(Ie=L==null?void 0:L[P])!=null?Ie:0,Rn=oo?Vr:Be-C[sr]-R[sr]-io+z.altAxis,Wo=oo?Be+C[sr]+R[sr]-io-z.altAxis:Bt,Wr=p&&oo?pI(Rn,Be,Wo):Ks(p?Rn:Vr,Be,p?Wo:Bt);E[P]=Wr,U[P]=Wr-Be}t.modifiersData[n]=U}}const HI={name:"preventOverflow",enabled:!0,phase:"main",fn:UI,requiresIfExists:["offset"]};function GI(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function qI(e){return e===xr(e)||!Or(e)?Gg(e):GI(e)}function KI(e){var t=e.getBoundingClientRect(),r=Aa(t.width)/e.offsetWidth||1,n=Aa(t.height)/e.offsetHeight||1;return r!==1||n!==1}function YI(e,t,r){r===void 0&&(r=!1);var n=Or(t),o=Or(t)&&KI(t),i=Bo(t),a=$a(e,o,r),s={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(n||!n&&!r)&&((Tn(t)!=="body"||Kg(i))&&(s=qI(t)),Or(t)?(l=$a(t,!0),l.x+=t.clientLeft,l.y+=t.clientTop):i&&(l.x=qg(i))),{x:a.left+s.scrollLeft-l.x,y:a.top+s.scrollTop-l.y,width:a.width,height:a.height}}function XI(e){var t=new Map,r=new Set,n=[];e.forEach(function(i){t.set(i.name,i)});function o(i){r.add(i.name);var a=[].concat(i.requires||[],i.requiresIfExists||[]);a.forEach(function(s){if(!r.has(s)){var l=t.get(s);l&&o(l)}}),n.push(i)}return e.forEach(function(i){r.has(i.name)||o(i)}),n}function QI(e){var t=XI(e);return lI.reduce(function(r,n){return r.concat(t.filter(function(o){return o.phase===n}))},[])}function ZI(e){var t;return function(){return t||(t=new Promise(function(r){Promise.resolve().then(function(){t=void 0,r(e())})})),t}}function JI(e){var t=e.reduce(function(r,n){var o=r[n.name];return r[n.name]=o?Object.assign({},o,n,{options:Object.assign({},o.options,n.options),data:Object.assign({},o.data,n.data)}):n,r},{});return Object.keys(t).map(function(r){return t[r]})}var W1={placement:"bottom",modifiers:[],strategy:"absolute"};function U1(){for(var e=arguments.length,t=new Array(e),r=0;r{}),x=S.useCallback(()=>{var z;!t||!g.current||!y.current||((z=m.current)==null||z.call(m),w.current=rB(g.current,y.current,{placement:v,modifiers:[qF,UF,WF,{...VF,enabled:!!f},{name:"eventListeners",...NF(a)},{name:"arrow",options:{padding:i}},{name:"offset",options:{offset:s??[0,l]}},{name:"flip",enabled:!!u,options:{padding:8}},{name:"preventOverflow",enabled:!!d,options:{boundary:c}},...r??[]],strategy:o}),w.current.forceUpdate(),m.current=w.current.destroy)},[v,t,r,f,a,i,s,l,u,d,c,o]);S.useEffect(()=>()=>{var z;!g.current&&!y.current&&((z=w.current)==null||z.destroy(),w.current=null)},[]);const b=S.useCallback(z=>{g.current=z,x()},[x]),P=S.useCallback((z={},L=null)=>({...z,ref:Jr(b,L)}),[b]),E=S.useCallback(z=>{y.current=z,x()},[x]),C=S.useCallback((z={},L=null)=>({...z,ref:Jr(E,L),style:{...z.style,position:o,minWidth:f?void 0:"max-content",inset:"0 auto auto 0"}}),[o,E,f]),R=S.useCallback((z={},L=null)=>{const{size:U,shadowColor:Q,bg:Z,style:se,...J}=z;return{...J,ref:L,"data-popper-arrow":"",style:nB(z)}},[]),M=S.useCallback((z={},L=null)=>({...z,ref:L,"data-popper-arrow-inner":""}),[]);return{update(){var z;(z=w.current)==null||z.update()},forceUpdate(){var z;(z=w.current)==null||z.forceUpdate()},transformOrigin:pt.transformOrigin.varRef,referenceRef:b,popperRef:E,getPopperProps:C,getArrowProps:R,getArrowInnerProps:M,getReferenceProps:P}}function nB(e){const{size:t,shadowColor:r,bg:n,style:o}=e,i={...o,position:"absolute"};return t&&(i["--popper-arrow-size"]=t),r&&(i["--popper-arrow-shadow-color"]=r),n&&(i["--popper-arrow-bg"]=n),i}function AC(e={}){const{onClose:t,onOpen:r,isOpen:n,id:o}=e,i=Hc(r),a=Hc(t),[s,l]=S.useState(e.defaultIsOpen||!1),u=n!==void 0?n:s,c=n!==void 0,d=S.useId(),f=o??`disclosure-${d}`,p=S.useCallback(()=>{c||l(!1),a==null||a()},[c,a]),g=S.useCallback(()=>{c||l(!0),i==null||i()},[c,i]),y=S.useCallback(()=>{u?p():g()},[u,g,p]);function w(m={}){return{...m,"aria-expanded":u,"aria-controls":f,onClick(x){var b;(b=m.onClick)==null||b.call(m,x),y()}}}function v(m={}){return{...m,hidden:!u,id:f}}return{isOpen:u,onOpen:g,onClose:p,onToggle:y,isControlled:c,getButtonProps:w,getDisclosureProps:v}}function oB(e){const{isOpen:t,ref:r}=e,[n,o]=S.useState(t),[i,a]=S.useState(!1);return S.useEffect(()=>{i||(o(t),a(!0))},[t,i,n]),ma(()=>r.current,"animationend",()=>{o(t)}),{present:!(t?!1:!n),onComplete(){var l;const u=gF(r.current),c=new u.CustomEvent("animationend",{bubbles:!0});(l=r.current)==null||l.dispatchEvent(c)}}}function iB(e){const{wasSelected:t,enabled:r,isSelected:n,mode:o="unmount"}=e;return!!(!r||n||o==="keepMounted"&&t)}var[aB,Ul]=sn({name:"PopoverContext",errorMessage:"usePopoverContext: `context` is undefined. Seems you forgot to wrap all popover components within ``"}),[sB,Yg]=sn({name:"PopoverStylesContext",errorMessage:`usePopoverStyles returned is 'undefined'. Seems you forgot to wrap the components in "" `});function $C(e){const t=S.Children.only(e.children),{getTriggerProps:r}=Ul();return S.cloneElement(t,r(t.props,t.ref))}$C.displayName="PopoverTrigger";var ji={click:"click",hover:"hover"};function lB(e={}){const{closeOnBlur:t=!0,closeOnEsc:r=!0,initialFocusRef:n,id:o,returnFocusOnClose:i=!0,autoFocus:a=!0,arrowSize:s,arrowShadowColor:l,trigger:u=ji.click,openDelay:c=200,closeDelay:d=200,isLazy:f,lazyBehavior:p="unmount",computePositionOnMount:g,...y}=e,{isOpen:w,onClose:v,onOpen:m,onToggle:x}=AC(e),b=S.useRef(null),P=S.useRef(null),E=S.useRef(null),C=S.useRef(!1),R=S.useRef(!1);w&&(R.current=!0);const[M,z]=S.useState(!1),[L,U]=S.useState(!1),Q=S.useId(),Z=o??Q,[se,J,oe,F]=["popover-trigger","popover-content","popover-header","popover-body"].map(ue=>`${ue}-${Z}`),{referenceRef:I,getArrowProps:G,getPopperProps:H,getArrowInnerProps:le,forceUpdate:ie}=jC({...y,enabled:w||!!g}),re=oB({isOpen:w,ref:E});mF({enabled:w,ref:P}),MF(E,{focusRef:P,visible:w,shouldFocus:i&&u===ji.click}),LF(E,{focusRef:n,visible:w,shouldFocus:a&&u===ji.click});const de=iB({wasSelected:R.current,enabled:f,mode:p,isSelected:re.present}),ge=S.useCallback((ue={},gt=null)=>{const Ie={...ue,style:{...ue.style,transformOrigin:pt.transformOrigin.varRef,[pt.arrowSize.var]:s?`${s}px`:void 0,[pt.arrowShadowColor.var]:l},ref:Jr(E,gt),children:de?ue.children:null,id:J,tabIndex:-1,role:"dialog",onKeyDown:Rt(ue.onKeyDown,wt=>{r&&wt.key==="Escape"&&v()}),onBlur:Rt(ue.onBlur,wt=>{const Cr=H1(wt),Be=gh(E.current,Cr),sr=gh(P.current,Cr);w&&t&&(!Be&&!sr)&&v()}),"aria-labelledby":M?oe:void 0,"aria-describedby":L?F:void 0};return u===ji.hover&&(Ie.role="tooltip",Ie.onMouseEnter=Rt(ue.onMouseEnter,()=>{C.current=!0}),Ie.onMouseLeave=Rt(ue.onMouseLeave,wt=>{wt.nativeEvent.relatedTarget!==null&&(C.current=!1,setTimeout(()=>v(),d))})),Ie},[de,J,M,oe,L,F,u,r,v,w,t,d,l,s]),tt=S.useCallback((ue={},gt=null)=>H({...ue,style:{visibility:w?"visible":"hidden",...ue.style}},gt),[w,H]),ze=S.useCallback((ue,gt=null)=>({...ue,ref:Jr(gt,b,I)}),[b,I]),rt=S.useRef(),St=S.useRef(),nt=S.useCallback(ue=>{b.current==null&&I(ue)},[I]),ve=S.useCallback((ue={},gt=null)=>{const Ie={...ue,ref:Jr(P,gt,nt),id:se,"aria-haspopup":"dialog","aria-expanded":w,"aria-controls":J};return u===ji.click&&(Ie.onClick=Rt(ue.onClick,x)),u===ji.hover&&(Ie.onFocus=Rt(ue.onFocus,()=>{rt.current===void 0&&m()}),Ie.onBlur=Rt(ue.onBlur,wt=>{const Cr=H1(wt),Be=!gh(E.current,Cr);w&&t&&Be&&v()}),Ie.onKeyDown=Rt(ue.onKeyDown,wt=>{wt.key==="Escape"&&v()}),Ie.onMouseEnter=Rt(ue.onMouseEnter,()=>{C.current=!0,rt.current=window.setTimeout(()=>m(),c)}),Ie.onMouseLeave=Rt(ue.onMouseLeave,()=>{C.current=!1,rt.current&&(clearTimeout(rt.current),rt.current=void 0),St.current=window.setTimeout(()=>{C.current===!1&&v()},d)})),Ie},[se,w,J,u,nt,x,m,t,v,c,d]);S.useEffect(()=>()=>{rt.current&&clearTimeout(rt.current),St.current&&clearTimeout(St.current)},[]);const ut=S.useCallback((ue={},gt=null)=>({...ue,id:oe,ref:Jr(gt,Ie=>{z(!!Ie)})}),[oe]),ln=S.useCallback((ue={},gt=null)=>({...ue,id:F,ref:Jr(gt,Ie=>{U(!!Ie)})}),[F]);return{forceUpdate:ie,isOpen:w,onAnimationComplete:re.onComplete,onClose:v,getAnchorProps:ze,getArrowProps:G,getArrowInnerProps:le,getPopoverPositionerProps:tt,getPopoverProps:ge,getTriggerProps:ve,getHeaderProps:ut,getBodyProps:ln}}function gh(e,t){return e===t||(e==null?void 0:e.contains(t))}function H1(e){var t;const r=e.currentTarget.ownerDocument.activeElement;return(t=e.relatedTarget)!=null?t:r}function zC(e){const t=wi("Popover",e),{children:r,...n}=It(e),o=Dl(),i=lB({...n,direction:o.direction});return h.jsx(aB,{value:i,children:h.jsx(sB,{value:t,children:In(r,{isOpen:i.isOpen,onClose:i.onClose,forceUpdate:i.forceUpdate})})})}zC.displayName="Popover";var vh=(e,t)=>t?`${e}.${t}, ${t}`:void 0;function MC(e){var t;const{bg:r,bgColor:n,backgroundColor:o,shadow:i,boxShadow:a,shadowColor:s}=e,{getArrowProps:l,getArrowInnerProps:u}=Ul(),c=Yg(),d=(t=r??n)!=null?t:o,f=i??a;return h.jsx(X.div,{...l(),className:"chakra-popover__arrow-positioner",children:h.jsx(X.div,{className:$e("chakra-popover__arrow",e.className),...u(e),__css:{"--popper-arrow-shadow-color":vh("colors",s),"--popper-arrow-bg":vh("colors",d),"--popper-arrow-shadow":vh("shadows",f),...c.arrow}})})}MC.displayName="PopoverArrow";var DC=ce(function(t,r){const{getBodyProps:n}=Ul(),o=Yg();return h.jsx(X.div,{...n(t,r),className:$e("chakra-popover__body",t.className),__css:o.body})});DC.displayName="PopoverBody";function uB(e){if(e)return{enter:{...e.enter,visibility:"visible"},exit:{...e.exit,transitionEnd:{visibility:"hidden"}}}}var cB={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]}}},dB=X(zg.section),LC=ce(function(t,r){const{variants:n=cB,...o}=t,{isOpen:i}=Ul();return h.jsx(dB,{ref:r,variants:uB(n),initial:!1,animate:i?"enter":"exit",...o})});LC.displayName="PopoverTransition";var OC=ce(function(t,r){const{rootProps:n,motionProps:o,...i}=t,{getPopoverProps:a,getPopoverPositionerProps:s,onAnimationComplete:l}=Ul(),u=Yg(),c={position:"relative",display:"flex",flexDirection:"column",...u.content};return h.jsx(X.div,{...s(n),__css:u.popper,className:"chakra-popover__popper",children:h.jsx(LC,{...o,...a(i,r),onAnimationComplete:OT(l,i.onAnimationComplete),className:$e("chakra-popover__content",t.className),__css:c})})});OC.displayName="PopoverContent";var FC=ce(function(t,r){const{children:n,placeholder:o,className:i,...a}=t;return h.jsxs(X.select,{...a,ref:r,className:$e("chakra-select",i),children:[o&&h.jsx("option",{value:"",children:o}),n]})});FC.displayName="SelectField";function fB(e,t){const r={},n={};for(const[o,i]of Object.entries(e))t.includes(o)?r[o]=i:n[o]=i;return[r,n]}var IC=ce((e,t)=>{var r;const n=wi("Select",e),{rootProps:o,placeholder:i,icon:a,color:s,height:l,h:u,minH:c,minHeight:d,iconColor:f,iconSize:p,...g}=It(e),[y,w]=fB(g,NE),v=Og(w),m={width:"100%",height:"fit-content",position:"relative",color:s},x={paddingEnd:"2rem",...n.field,_focus:{zIndex:"unset",...(r=n.field)==null?void 0:r._focus}};return h.jsxs(X.div,{className:"chakra-select__wrapper",__css:m,...y,...o,children:[h.jsx(FC,{ref:t,height:u??l,minH:c??d,placeholder:i,...v,__css:x,children:e.children}),h.jsx(BC,{"data-disabled":ri(v.disabled),...(f||s)&&{color:f||s},__css:n.icon,...p&&{fontSize:p},children:a})]})});IC.displayName="Select";var hB=e=>h.jsx("svg",{viewBox:"0 0 24 24",...e,children:h.jsx("path",{fill:"currentColor",d:"M16.59 8.59L12 13.17 7.41 8.59 6 10l6 6 6-6z"})}),pB=X("div",{baseStyle:{position:"absolute",display:"inline-flex",alignItems:"center",justifyContent:"center",pointerEvents:"none",top:"50%",transform:"translateY(-50%)"}}),BC=e=>{const{children:t=h.jsx(hB,{}),...r}=e,n=S.cloneElement(t,{role:"presentation",className:"chakra-select__icon",focusable:!1,"aria-hidden":!0,style:{width:"1em",height:"1em",color:"currentColor"}});return h.jsx(pB,{...r,className:"chakra-select__icon-wrapper",children:S.isValidElement(t)?n:null})};BC.displayName="SelectIcon";function mB(e,t){if(!e){t(void 0);return}t({width:e.offsetWidth,height:e.offsetHeight});const r=e.ownerDocument.defaultView??window,n=new r.ResizeObserver(o=>{if(!Array.isArray(o)||!o.length)return;const[i]=o;let a,s;if("borderBoxSize"in i){const l=i.borderBoxSize,u=Array.isArray(l)?l[0]:l;a=u.inlineSize,s=u.blockSize}else a=e.offsetWidth,s=e.offsetHeight;t({width:a,height:s})});return n.observe(e,{box:"border-box"}),()=>n.unobserve(e)}var gB=globalThis!=null&&globalThis.document?S.useLayoutEffect:S.useEffect;function vB(e,t){var r,n;if(!e||!e.parentElement)return;const o=(n=(r=e.ownerDocument)==null?void 0:r.defaultView)!=null?n:window,i=new o.MutationObserver(()=>{t()});return i.observe(e.parentElement,{childList:!0}),()=>{i.disconnect()}}function yB({getNodes:e,observeMutation:t=!0}){const[r,n]=S.useState([]),[o,i]=S.useState(0);return gB(()=>{const a=e(),s=a.map((l,u)=>mB(l,c=>{n(d=>[...d.slice(0,u),c,...d.slice(u+1)])}));if(t){const l=a[0];s.push(vB(l,()=>{i(u=>u+1)}))}return()=>{s.forEach(l=>{l==null||l()})}},[o]),r}function bB(e){return typeof e=="object"&&e!==null&&"current"in e}function NC(e){const[t]=yB({observeMutation:!1,getNodes(){return[bB(e)?e.current:e]}});return t}function xB(e,t=[]){const r=Object.assign({},e);for(const n of t)n in r&&delete r[n];return r}var SB=["h","minH","height","minHeight"],qd=ce((e,t)=>{const r=En("Textarea",e),{className:n,rows:o,...i}=It(e),a=Og(i),s=o?xB(r,SB):r;return h.jsx(X.textarea,{ref:t,rows:o,...a,className:$e("chakra-textarea",n),__css:s})});qd.displayName="Textarea";var wB={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]}}}},Gp=e=>{var t;return((t=e.current)==null?void 0:t.ownerDocument)||document},dc=e=>{var t,r;return((r=(t=e.current)==null?void 0:t.ownerDocument)==null?void 0:r.defaultView)||window};function kB(e={}){const{openDelay:t=0,closeDelay:r=0,closeOnClick:n=!0,closeOnMouseDown:o,closeOnScroll:i,closeOnPointerDown:a=o,closeOnEsc:s=!0,onOpen:l,onClose:u,placement:c,id:d,isOpen:f,defaultIsOpen:p,arrowSize:g=10,arrowShadowColor:y,arrowPadding:w,modifiers:v,isDisabled:m,gutter:x,offset:b,direction:P,...E}=e,{isOpen:C,onOpen:R,onClose:M}=AC({isOpen:f,defaultIsOpen:p,onOpen:l,onClose:u}),{referenceRef:z,getPopperProps:L,getArrowInnerProps:U,getArrowProps:Q}=jC({enabled:C,placement:c,arrowPadding:w,modifiers:v,gutter:x,offset:b,direction:P}),Z=S.useId(),J=`tooltip-${d??Z}`,oe=S.useRef(null),F=S.useRef(),I=S.useCallback(()=>{F.current&&(clearTimeout(F.current),F.current=void 0)},[]),G=S.useRef(),H=S.useCallback(()=>{G.current&&(clearTimeout(G.current),G.current=void 0)},[]),le=S.useCallback(()=>{H(),M()},[M,H]),ie=CB(oe,le),re=S.useCallback(()=>{if(!m&&!F.current){C&&ie();const ve=dc(oe);F.current=ve.setTimeout(R,t)}},[ie,m,C,R,t]),de=S.useCallback(()=>{I();const ve=dc(oe);G.current=ve.setTimeout(le,r)},[r,le,I]),ge=S.useCallback(()=>{C&&n&&de()},[n,de,C]),tt=S.useCallback(()=>{C&&a&&de()},[a,de,C]),ze=S.useCallback(ve=>{C&&ve.key==="Escape"&&de()},[C,de]);ma(()=>Gp(oe),"keydown",s?ze:void 0),ma(()=>{const ve=oe.current;if(!ve)return null;const ut=pC(ve);return ut.localName==="body"?dc(oe):ut},"scroll",()=>{C&&i&&le()},{passive:!0,capture:!0}),S.useEffect(()=>{m&&(I(),C&&M())},[m,C,M,I]),S.useEffect(()=>()=>{I(),H()},[I,H]),ma(()=>oe.current,"pointerleave",de);const rt=S.useCallback((ve={},ut=null)=>({...ve,ref:Jr(oe,ut,z),onPointerEnter:Rt(ve.onPointerEnter,ue=>{ue.pointerType!=="touch"&&re()}),onClick:Rt(ve.onClick,ge),onPointerDown:Rt(ve.onPointerDown,tt),onFocus:Rt(ve.onFocus,re),onBlur:Rt(ve.onBlur,de),"aria-describedby":C?J:void 0}),[re,de,tt,C,J,ge,z]),St=S.useCallback((ve={},ut=null)=>L({...ve,style:{...ve.style,[pt.arrowSize.var]:g?`${g}px`:void 0,[pt.arrowShadowColor.var]:y}},ut),[L,g,y]),nt=S.useCallback((ve={},ut=null)=>{const ln={...ve.style,position:"relative",transformOrigin:pt.transformOrigin.varRef};return{ref:ut,...E,...ve,id:J,role:"tooltip",style:ln}},[E,J]);return{isOpen:C,show:re,hide:de,getTriggerProps:rt,getTooltipProps:nt,getTooltipPositionerProps:St,getArrowProps:Q,getArrowInnerProps:U}}var yh="chakra-ui:close-tooltip";function CB(e,t){return S.useEffect(()=>{const r=Gp(e);return r.addEventListener(yh,t),()=>r.removeEventListener(yh,t)},[t,e]),()=>{const r=Gp(e),n=dc(e);r.dispatchEvent(new n.CustomEvent(yh))}}function PB(e,t=[]){const r=Object.assign({},e);for(const n of t)n in r&&delete r[n];return r}function _B(e,t){const r={};for(const n of t)n in e&&(r[n]=e[n]);return r}var TB=X(zg.div),VC=ce((e,t)=>{var r,n;const o=En("Tooltip",e),i=It(e),a=Dl(),{children:s,label:l,shouldWrapChildren:u,"aria-label":c,hasArrow:d,bg:f,portalProps:p,background:g,backgroundColor:y,bgColor:w,motionProps:v,...m}=i,x=(n=(r=g??y)!=null?r:f)!=null?n:w;if(x){o.bg=x;const L=tR(a,"colors",x);o[pt.arrowBg.var]=L}const b=kB({...m,direction:a.direction}),P=typeof s=="string"||u;let E;if(P)E=h.jsx(X.span,{display:"inline-block",tabIndex:0,...b.getTriggerProps(),children:s});else{const L=S.Children.only(s);E=S.cloneElement(L,b.getTriggerProps(L.props,L.ref))}const C=!!c,R=b.getTooltipProps({},t),M=C?PB(R,["role","id"]):R,z=_B(R,["role","id"]);return l?h.jsxs(h.Fragment,{children:[E,h.jsx(Xk,{children:b.isOpen&&h.jsx(Ml,{...p,children:h.jsx(X.div,{...b.getTooltipPositionerProps(),__css:{zIndex:o.zIndex,pointerEvents:"none"},children:h.jsxs(TB,{variants:wB,initial:"exit",animate:"enter",exit:"exit",...v,...M,__css:o,children:[l,C&&h.jsx(X.span,{srOnly:!0,...z,children:c}),d&&h.jsx(X.div,{"data-popper-arrow":!0,className:"chakra-tooltip__arrow-wrapper",children:h.jsx(X.div,{"data-popper-arrow-inner":!0,className:"chakra-tooltip__arrow",__css:{bg:o.bg}})})]})})})})]}):h.jsx(h.Fragment,{children:s})});VC.displayName="Tooltip";/** + * @remix-run/router v1.8.0 + * + * Copyright (c) Remix Software Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE.md file in the root directory of this source tree. + * + * @license MIT + */function Ke(){return Ke=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u")throw new Error(t)}function Ma(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function RB(){return Math.random().toString(36).substr(2,8)}function q1(e,t){return{usr:e.state,key:e.key,idx:t}}function Tl(e,t,r,n){return r===void 0&&(r=null),Ke({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?no(t):t,{state:r,key:t&&t.key||n||RB()})}function bi(e){let{pathname:t="/",search:r="",hash:n=""}=e;return r&&r!=="?"&&(t+=r.charAt(0)==="?"?r:"?"+r),n&&n!=="#"&&(t+=n.charAt(0)==="#"?n:"#"+n),t}function no(e){let t={};if(e){let r=e.indexOf("#");r>=0&&(t.hash=e.substr(r),e=e.substr(0,r));let n=e.indexOf("?");n>=0&&(t.search=e.substr(n),e=e.substr(0,n)),e&&(t.pathname=e)}return t}function jB(e,t,r,n){n===void 0&&(n={});let{window:o=document.defaultView,v5Compat:i=!1}=n,a=o.history,s=ft.Pop,l=null,u=c();u==null&&(u=0,a.replaceState(Ke({},a.state,{idx:u}),""));function c(){return(a.state||{idx:null}).idx}function d(){s=ft.Pop;let w=c(),v=w==null?null:w-u;u=w,l&&l({action:s,location:y.location,delta:v})}function f(w,v){s=ft.Push;let m=Tl(y.location,w,v);r&&r(m,w),u=c()+1;let x=q1(m,u),b=y.createHref(m);try{a.pushState(x,"",b)}catch(P){if(P instanceof DOMException&&P.name==="DataCloneError")throw P;o.location.assign(b)}i&&l&&l({action:s,location:y.location,delta:1})}function p(w,v){s=ft.Replace;let m=Tl(y.location,w,v);r&&r(m,w),u=c();let x=q1(m,u),b=y.createHref(m);a.replaceState(x,"",b),i&&l&&l({action:s,location:y.location,delta:0})}function g(w){let v=o.location.origin!=="null"?o.location.origin:o.location.href,m=typeof w=="string"?w:bi(w);return fe(v,"No window.location.(origin|href) available to create URL for href: "+m),new URL(m,v)}let y={get action(){return s},get location(){return e(o,a)},listen(w){if(l)throw new Error("A history only accepts one active listener");return o.addEventListener(G1,d),l=w,()=>{o.removeEventListener(G1,d),l=null}},createHref(w){return t(o,w)},createURL:g,encodeLocation(w){let v=g(w);return{pathname:v.pathname,search:v.search,hash:v.hash}},push:f,replace:p,go(w){return a.go(w)}};return y}var at;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(at||(at={}));const AB=new Set(["lazy","caseSensitive","path","id","index","children"]);function $B(e){return e.index===!0}function qp(e,t,r,n){return r===void 0&&(r=[]),n===void 0&&(n={}),e.map((o,i)=>{let a=[...r,i],s=typeof o.id=="string"?o.id:a.join("-");if(fe(o.index!==!0||!o.children,"Cannot specify children on an index route"),fe(!n[s],'Found a route id collision on id "'+s+`". Route id's must be globally unique within Data Router usages`),$B(o)){let l=Ke({},o,t(o),{id:s});return n[s]=l,l}else{let l=Ke({},o,t(o),{id:s,children:void 0});return n[s]=l,o.children&&(l.children=qp(o.children,t,a,n)),l}})}function ta(e,t,r){r===void 0&&(r="/");let n=typeof t=="string"?no(t):t,o=Wa(n.pathname||"/",r);if(o==null)return null;let i=WC(e);zB(i);let a=null;for(let s=0;a==null&&s{let l={relativePath:s===void 0?i.path||"":s,caseSensitive:i.caseSensitive===!0,childrenIndex:a,route:i};l.relativePath.startsWith("/")&&(fe(l.relativePath.startsWith(n),'Absolute route path "'+l.relativePath+'" nested under path '+('"'+n+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),l.relativePath=l.relativePath.slice(n.length));let u=Kn([n,l.relativePath]),c=r.concat(l);i.children&&i.children.length>0&&(fe(i.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+u+'".')),WC(i.children,t,c,u)),!(i.path==null&&!i.index)&&t.push({path:u,score:BB(u,i.index),routesMeta:c})};return e.forEach((i,a)=>{var s;if(i.path===""||!((s=i.path)!=null&&s.includes("?")))o(i,a);else for(let l of UC(i.path))o(i,a,l)}),t}function UC(e){let t=e.split("/");if(t.length===0)return[];let[r,...n]=t,o=r.endsWith("?"),i=r.replace(/\?$/,"");if(n.length===0)return o?[i,""]:[i];let a=UC(n.join("/")),s=[];return s.push(...a.map(l=>l===""?i:[i,l].join("/"))),o&&s.push(...a),s.map(l=>e.startsWith("/")&&l===""?"/":l)}function zB(e){e.sort((t,r)=>t.score!==r.score?r.score-t.score:NB(t.routesMeta.map(n=>n.childrenIndex),r.routesMeta.map(n=>n.childrenIndex)))}const MB=/^:\w+$/,DB=3,LB=2,OB=1,FB=10,IB=-2,K1=e=>e==="*";function BB(e,t){let r=e.split("/"),n=r.length;return r.some(K1)&&(n+=IB),t&&(n+=LB),r.filter(o=>!K1(o)).reduce((o,i)=>o+(MB.test(i)?DB:i===""?OB:FB),n)}function NB(e,t){return e.length===t.length&&e.slice(0,-1).every((n,o)=>n===t[o])?e[e.length-1]-t[t.length-1]:0}function VB(e,t){let{routesMeta:r}=e,n={},o="/",i=[];for(let a=0;a{if(c==="*"){let f=s[d]||"";a=i.slice(0,i.length-f.length).replace(/(.)\/+$/,"$1")}return u[c]=GB(s[d]||"",c),u},{}),pathname:i,pathnameBase:a,pattern:e}}function UB(e,t,r){t===void 0&&(t=!1),r===void 0&&(r=!0),Ma(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let n=[],o="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^$?{}|()[\]]/g,"\\$&").replace(/\/:(\w+)/g,(a,s)=>(n.push(s),"/([^\\/]+)"));return e.endsWith("*")?(n.push("*"),o+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):r?o+="\\/*$":e!==""&&e!=="/"&&(o+="(?:(?=\\/|$))"),[new RegExp(o,t?void 0:"i"),n]}function HB(e){try{return decodeURI(e)}catch(t){return Ma(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+t+").")),e}}function GB(e,t){try{return decodeURIComponent(e)}catch(r){return Ma(!1,'The value for the URL param "'+t+'" will not be decoded because'+(' the string "'+e+'" is a malformed URL segment. This is probably')+(" due to a bad percent encoding ("+r+").")),e}}function Wa(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let r=t.endsWith("/")?t.length-1:t.length,n=e.charAt(r);return n&&n!=="/"?null:e.slice(r)||"/"}function qB(e,t){t===void 0&&(t="/");let{pathname:r,search:n="",hash:o=""}=typeof e=="string"?no(e):e;return{pathname:r?r.startsWith("/")?r:KB(r,t):t,search:XB(n),hash:QB(o)}}function KB(e,t){let r=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(o=>{o===".."?r.length>1&&r.pop():o!=="."&&r.push(o)}),r.length>1?r.join("/"):"/"}function bh(e,t,r,n){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(n)+"]. Please separate it out to the ")+("`to."+r+"` field. Alternatively you may provide the full path as ")+'a string in and the router will parse it for you.'}function Kd(e){return e.filter((t,r)=>r===0||t.route.path&&t.route.path.length>0)}function Xg(e,t,r,n){n===void 0&&(n=!1);let o;typeof e=="string"?o=no(e):(o=Ke({},e),fe(!o.pathname||!o.pathname.includes("?"),bh("?","pathname","search",o)),fe(!o.pathname||!o.pathname.includes("#"),bh("#","pathname","hash",o)),fe(!o.search||!o.search.includes("#"),bh("#","search","hash",o)));let i=e===""||o.pathname==="",a=i?"/":o.pathname,s;if(n||a==null)s=r;else{let d=t.length-1;if(a.startsWith("..")){let f=a.split("/");for(;f[0]==="..";)f.shift(),d-=1;o.pathname=f.join("/")}s=d>=0?t[d]:"/"}let l=qB(o,s),u=a&&a!=="/"&&a.endsWith("/"),c=(i||a===".")&&r.endsWith("/");return!l.pathname.endsWith("/")&&(u||c)&&(l.pathname+="/"),l}const Kn=e=>e.join("/").replace(/\/\/+/g,"/"),YB=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),XB=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,QB=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;class Qg{constructor(t,r,n,o){o===void 0&&(o=!1),this.status=t,this.statusText=r||"",this.internal=o,n instanceof Error?(this.data=n.toString(),this.error=n):this.data=n}}function HC(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const GC=["post","put","patch","delete"],ZB=new Set(GC),JB=["get",...GC],e7=new Set(JB),t7=new Set([301,302,303,307,308]),r7=new Set([307,308]),xh={state:"idle",location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},n7={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},hs={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},qC=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,o7=e=>({hasErrorBoundary:!!e.hasErrorBoundary});function i7(e){const t=e.window?e.window:typeof window<"u"?window:void 0,r=typeof t<"u"&&typeof t.document<"u"&&typeof t.document.createElement<"u",n=!r;fe(e.routes.length>0,"You must provide a non-empty routes array to createRouter");let o;if(e.mapRouteProperties)o=e.mapRouteProperties;else if(e.detectErrorBoundary){let A=e.detectErrorBoundary;o=$=>({hasErrorBoundary:A($)})}else o=o7;let i={},a=qp(e.routes,o,void 0,i),s,l=e.basename||"/",u=Ke({v7_normalizeFormMethod:!1,v7_prependBasename:!1},e.future),c=null,d=new Set,f=null,p=null,g=null,y=e.hydrationData!=null,w=ta(a,e.history.location,l),v=null;if(w==null){let A=Rr(404,{pathname:e.history.location.pathname}),{matches:$,route:D}=rb(a);w=$,v={[D.id]:A}}let m=!w.some(A=>A.route.lazy)&&(!w.some(A=>A.route.loader)||e.hydrationData!=null),x,b={historyAction:e.history.action,location:e.history.location,matches:w,initialized:m,navigation:xh,restoreScrollPosition:e.hydrationData!=null?!1:null,preventScrollReset:!1,revalidation:"idle",loaderData:e.hydrationData&&e.hydrationData.loaderData||{},actionData:e.hydrationData&&e.hydrationData.actionData||null,errors:e.hydrationData&&e.hydrationData.errors||v,fetchers:new Map,blockers:new Map},P=ft.Pop,E=!1,C,R=!1,M=!1,z=[],L=[],U=new Map,Q=0,Z=-1,se=new Map,J=new Set,oe=new Map,F=new Map,I=new Map,G=!1;function H(){return c=e.history.listen(A=>{let{action:$,location:D,delta:B}=A;if(G){G=!1;return}Ma(I.size===0||B!=null,"You are trying to use a blocker on a POP navigation to a location that was not created by @remix-run/router. This will fail silently in production. This can happen if you are navigating outside the router via `window.history.pushState`/`window.location.hash` instead of using router navigation APIs. This can also happen if you are using createHashRouter and the user manually changes the URL.");let ae=Wo({currentLocation:b.location,nextLocation:D,historyAction:$});if(ae&&B!=null){G=!0,e.history.go(B*-1),Rn(ae,{state:"blocked",location:D,proceed(){Rn(ae,{state:"proceeding",proceed:void 0,reset:void 0,location:D}),e.history.go(B)},reset(){let te=new Map(b.blockers);te.set(ae,hs),re({blockers:te})}});return}return ze($,D)}),b.initialized||ze(ft.Pop,b.location),x}function le(){c&&c(),d.clear(),C&&C.abort(),b.fetchers.forEach((A,$)=>Cr($)),b.blockers.forEach((A,$)=>io($))}function ie(A){return d.add(A),()=>d.delete(A)}function re(A){b=Ke({},b,A),d.forEach($=>$(b))}function de(A,$){var D,B;let ae=b.actionData!=null&&b.navigation.formMethod!=null&&Xr(b.navigation.formMethod)&&b.navigation.state==="loading"&&((D=A.state)==null?void 0:D._isRedirect)!==!0,te;$.actionData?Object.keys($.actionData).length>0?te=$.actionData:te=null:ae?te=b.actionData:te=null;let ne=$.loaderData?tb(b.loaderData,$.loaderData,$.matches||[],$.errors):b.loaderData,q=b.blockers;q.size>0&&(q=new Map(q),q.forEach((Re,Ne)=>q.set(Ne,hs)));let W=E===!0||b.navigation.formMethod!=null&&Xr(b.navigation.formMethod)&&((B=A.state)==null?void 0:B._isRedirect)!==!0;s&&(a=s,s=void 0),R||P===ft.Pop||(P===ft.Push?e.history.push(A,A.state):P===ft.Replace&&e.history.replace(A,A.state)),re(Ke({},$,{actionData:te,loaderData:ne,historyAction:P,location:A,initialized:!0,navigation:xh,revalidation:"idle",restoreScrollPosition:Ha(A,$.matches||b.matches),preventScrollReset:W,blockers:q})),P=ft.Pop,E=!1,R=!1,M=!1,z=[],L=[]}async function ge(A,$){if(typeof A=="number"){e.history.go(A);return}let D=Kp(b.location,b.matches,l,u.v7_prependBasename,A,$==null?void 0:$.fromRouteId,$==null?void 0:$.relative),{path:B,submission:ae,error:te}=Y1(u.v7_normalizeFormMethod,!1,D,$),ne=b.location,q=Tl(b.location,B,$&&$.state);q=Ke({},q,e.history.encodeLocation(q));let W=$&&$.replace!=null?$.replace:void 0,Re=ft.Push;W===!0?Re=ft.Replace:W===!1||ae!=null&&Xr(ae.formMethod)&&ae.formAction===b.location.pathname+b.location.search&&(Re=ft.Replace);let Ne=$&&"preventScrollReset"in $?$.preventScrollReset===!0:void 0,Ce=Wo({currentLocation:ne,nextLocation:q,historyAction:Re});if(Ce){Rn(Ce,{state:"blocked",location:q,proceed(){Rn(Ce,{state:"proceeding",proceed:void 0,reset:void 0,location:q}),ge(A,$)},reset(){let Xe=new Map(b.blockers);Xe.set(Ce,hs),re({blockers:Xe})}});return}return await ze(Re,q,{submission:ae,pendingError:te,preventScrollReset:Ne,replace:$&&$.replace})}function tt(){if(Ie(),re({revalidation:"loading"}),b.navigation.state!=="submitting"){if(b.navigation.state==="idle"){ze(b.historyAction,b.location,{startUninterruptedRevalidation:!0});return}ze(P||b.historyAction,b.navigation.location,{overrideNavigation:b.navigation})}}async function ze(A,$,D){C&&C.abort(),C=null,P=A,R=(D&&D.startUninterruptedRevalidation)===!0,Xl(b.location,b.matches),E=(D&&D.preventScrollReset)===!0;let B=s||a,ae=D&&D.overrideNavigation,te=ta(B,$,l);if(!te){let Xe=Rr(404,{pathname:$.pathname}),{matches:ct,route:jn}=rb(B);Wr(),de($,{matches:ct,loaderData:{},errors:{[jn.id]:Xe}});return}if(b.initialized&&!M&&c7(b.location,$)&&!(D&&D.submission&&Xr(D.submission.formMethod))){de($,{matches:te});return}C=new AbortController;let ne=ms(e.history,$,C.signal,D&&D.submission),q,W;if(D&&D.pendingError)W={[ra(te).route.id]:D.pendingError};else if(D&&D.submission&&Xr(D.submission.formMethod)){let Xe=await rt(ne,$,D.submission,te,{replace:D.replace});if(Xe.shortCircuited)return;q=Xe.pendingActionData,W=Xe.pendingActionError,ae=Du($,D.submission),ne=new Request(ne.url,{signal:ne.signal})}let{shortCircuited:Re,loaderData:Ne,errors:Ce}=await St(ne,$,te,ae,D&&D.submission,D&&D.fetcherSubmission,D&&D.replace,q,W);Re||(C=null,de($,Ke({matches:te},q?{actionData:q}:{},{loaderData:Ne,errors:Ce})))}async function rt(A,$,D,B,ae){ae===void 0&&(ae={}),Ie();let te=m7($,D);re({navigation:te});let ne,q=Xp(B,$);if(!q.route.action&&!q.route.lazy)ne={type:at.error,error:Rr(405,{method:A.method,pathname:$.pathname,routeId:q.route.id})};else if(ne=await ps("action",A,q,B,i,o,l),A.signal.aborted)return{shortCircuited:!0};if(ga(ne)){let W;return ae&&ae.replace!=null?W=ae.replace:W=ne.location===b.location.pathname+b.location.search,await ue(b,ne,{submission:D,replace:W}),{shortCircuited:!0}}if(Xs(ne)){let W=ra(B,q.route.id);return(ae&&ae.replace)!==!0&&(P=ft.Push),{pendingActionData:{},pendingActionError:{[W.route.id]:ne.error}}}if(ii(ne))throw Rr(400,{type:"defer-action"});return{pendingActionData:{[q.route.id]:ne.data}}}async function St(A,$,D,B,ae,te,ne,q,W){let Re=B||Du($,ae),Ne=ae||te||ib(Re),Ce=s||a,[Xe,ct]=X1(e.history,b,D,Ne,$,M,z,L,oe,J,Ce,l,q,W);if(Wr(Pe=>!(D&&D.some(lr=>lr.route.id===Pe))||Xe&&Xe.some(lr=>lr.route.id===Pe)),Z=++Q,Xe.length===0&&ct.length===0){let Pe=Vr();return de($,Ke({matches:D,loaderData:{},errors:W||null},q?{actionData:q}:{},Pe?{fetchers:new Map(b.fetchers)}:{})),{shortCircuited:!0}}if(!R){ct.forEach(lr=>{let cn=b.fetchers.get(lr.key),Ya=gs(void 0,cn?cn.data:void 0);b.fetchers.set(lr.key,Ya)});let Pe=q||b.actionData;re(Ke({navigation:Re},Pe?Object.keys(Pe).length===0?{actionData:null}:{actionData:Pe}:{},ct.length>0?{fetchers:new Map(b.fetchers)}:{}))}ct.forEach(Pe=>{U.has(Pe.key)&&Be(Pe.key),Pe.controller&&U.set(Pe.key,Pe.controller)});let jn=()=>ct.forEach(Pe=>Be(Pe.key));C&&C.signal.addEventListener("abort",jn);let{results:An,loaderResults:Nt,fetcherResults:Ga}=await gt(b.matches,D,Xe,ct,A);if(A.signal.aborted)return{shortCircuited:!0};C&&C.signal.removeEventListener("abort",jn),ct.forEach(Pe=>U.delete(Pe.key));let Ur=nb(An);if(Ur){if(Ur.idx>=Xe.length){let Pe=ct[Ur.idx-Xe.length].key;J.add(Pe)}return await ue(b,Ur.result,{replace:ne}),{shortCircuited:!0}}let{loaderData:Hr,errors:_i}=eb(b,D,Xe,Nt,W,ct,Ga,F);F.forEach((Pe,lr)=>{Pe.subscribe(cn=>{(cn||Pe.done)&&F.delete(lr)})});let qa=Vr(),un=Bt(Z),Ka=qa||un||ct.length>0;return Ke({loaderData:Hr,errors:_i},Ka?{fetchers:new Map(b.fetchers)}:{})}function nt(A){return b.fetchers.get(A)||n7}function ve(A,$,D,B){if(n)throw new Error("router.fetch() was called during the server render, but it shouldn't be. You are likely calling a useFetcher() method in the body of your component. Try moving it to a useEffect or a callback.");U.has(A)&&Be(A);let ae=s||a,te=Kp(b.location,b.matches,l,u.v7_prependBasename,D,$,B==null?void 0:B.relative),ne=ta(ae,te,l);if(!ne){wt(A,$,Rr(404,{pathname:te}));return}let{path:q,submission:W,error:Re}=Y1(u.v7_normalizeFormMethod,!0,te,B);if(Re){wt(A,$,Re);return}let Ne=Xp(ne,q);if(E=(B&&B.preventScrollReset)===!0,W&&Xr(W.formMethod)){ut(A,$,q,Ne,ne,W);return}oe.set(A,{routeId:$,path:q}),ln(A,$,q,Ne,ne,W)}async function ut(A,$,D,B,ae,te){if(Ie(),oe.delete(A),!B.route.action&&!B.route.lazy){let De=Rr(405,{method:te.formMethod,pathname:D,routeId:$});wt(A,$,De);return}let ne=b.fetchers.get(A),q=g7(te,ne);b.fetchers.set(A,q),re({fetchers:new Map(b.fetchers)});let W=new AbortController,Re=ms(e.history,D,W.signal,te);U.set(A,W);let Ne=Q,Ce=await ps("action",Re,B,ae,i,o,l);if(Re.signal.aborted){U.get(A)===W&&U.delete(A);return}if(ga(Ce))if(U.delete(A),Z>Ne){let De=$i(void 0);b.fetchers.set(A,De),re({fetchers:new Map(b.fetchers)});return}else{J.add(A);let De=gs(te);return b.fetchers.set(A,De),re({fetchers:new Map(b.fetchers)}),ue(b,Ce,{submission:te,isFetchActionRedirect:!0})}if(Xs(Ce)){wt(A,$,Ce.error);return}if(ii(Ce))throw Rr(400,{type:"defer-action"});let Xe=b.navigation.location||b.location,ct=ms(e.history,Xe,W.signal),jn=s||a,An=b.navigation.state!=="idle"?ta(jn,b.navigation.location,l):b.matches;fe(An,"Didn't find any matches after fetcher action");let Nt=++Q;se.set(A,Nt);let Ga=gs(te,Ce.data);b.fetchers.set(A,Ga);let[Ur,Hr]=X1(e.history,b,An,te,Xe,M,z,L,oe,J,jn,l,{[B.route.id]:Ce.data},void 0);Hr.filter(De=>De.key!==A).forEach(De=>{let Uo=De.key,Zl=b.fetchers.get(Uo),Jd=gs(void 0,Zl?Zl.data:void 0);b.fetchers.set(Uo,Jd),U.has(Uo)&&Be(Uo),De.controller&&U.set(Uo,De.controller)}),re({fetchers:new Map(b.fetchers)});let _i=()=>Hr.forEach(De=>Be(De.key));W.signal.addEventListener("abort",_i);let{results:qa,loaderResults:un,fetcherResults:Ka}=await gt(b.matches,An,Ur,Hr,ct);if(W.signal.aborted)return;W.signal.removeEventListener("abort",_i),se.delete(A),U.delete(A),Hr.forEach(De=>U.delete(De.key));let Pe=nb(qa);if(Pe){if(Pe.idx>=Ur.length){let De=Hr[Pe.idx-Ur.length].key;J.add(De)}return ue(b,Pe.result)}let{loaderData:lr,errors:cn}=eb(b,b.matches,Ur,un,void 0,Hr,Ka,F);if(b.fetchers.has(A)){let De=$i(Ce.data);b.fetchers.set(A,De)}let Ya=Bt(Nt);b.navigation.state==="loading"&&Nt>Z?(fe(P,"Expected pending action"),C&&C.abort(),de(b.navigation.location,{matches:An,loaderData:lr,errors:cn,fetchers:new Map(b.fetchers)})):(re(Ke({errors:cn,loaderData:tb(b.loaderData,lr,An,cn)},Ya||Hr.length>0?{fetchers:new Map(b.fetchers)}:{})),M=!1)}async function ln(A,$,D,B,ae,te){let ne=b.fetchers.get(A),q=gs(te,ne?ne.data:void 0);b.fetchers.set(A,q),re({fetchers:new Map(b.fetchers)});let W=new AbortController,Re=ms(e.history,D,W.signal);U.set(A,W);let Ne=Q,Ce=await ps("loader",Re,B,ae,i,o,l);if(ii(Ce)&&(Ce=await XC(Ce,Re.signal,!0)||Ce),U.get(A)===W&&U.delete(A),Re.signal.aborted)return;if(ga(Ce))if(Z>Ne){let ct=$i(void 0);b.fetchers.set(A,ct),re({fetchers:new Map(b.fetchers)});return}else{J.add(A),await ue(b,Ce);return}if(Xs(Ce)){let ct=ra(b.matches,$);b.fetchers.delete(A),re({fetchers:new Map(b.fetchers),errors:{[ct.route.id]:Ce.error}});return}fe(!ii(Ce),"Unhandled fetcher deferred data");let Xe=$i(Ce.data);b.fetchers.set(A,Xe),re({fetchers:new Map(b.fetchers)})}async function ue(A,$,D){let{submission:B,replace:ae,isFetchActionRedirect:te}=D===void 0?{}:D;$.revalidate&&(M=!0);let ne=Tl(A.location,$.location,Ke({_isRedirect:!0},te?{_isFetchActionRedirect:!0}:{}));if(fe(ne,"Expected a location on the redirect navigation"),r){let Re=!1;if($.reloadDocument)Re=!0;else if(qC.test($.location)){const Ne=e.history.createURL($.location);Re=Ne.origin!==t.location.origin||Wa(Ne.pathname,l)==null}if(Re){ae?t.location.replace($.location):t.location.assign($.location);return}}C=null;let q=ae===!0?ft.Replace:ft.Push,W=B||ib(A.navigation);if(r7.has($.status)&&W&&Xr(W.formMethod))await ze(q,ne,{submission:Ke({},W,{formAction:$.location}),preventScrollReset:E});else if(te)await ze(q,ne,{overrideNavigation:Du(ne),fetcherSubmission:W,preventScrollReset:E});else{let Re=Du(ne,W);await ze(q,ne,{overrideNavigation:Re,preventScrollReset:E})}}async function gt(A,$,D,B,ae){let te=await Promise.all([...D.map(W=>ps("loader",ae,W,$,i,o,l)),...B.map(W=>W.matches&&W.match&&W.controller?ps("loader",ms(e.history,W.path,W.controller.signal),W.match,W.matches,i,o,l):{type:at.error,error:Rr(404,{pathname:W.path})})]),ne=te.slice(0,D.length),q=te.slice(D.length);return await Promise.all([ob(A,D,ne,ne.map(()=>ae.signal),!1,b.loaderData),ob(A,B.map(W=>W.match),q,B.map(W=>W.controller?W.controller.signal:null),!0)]),{results:te,loaderResults:ne,fetcherResults:q}}function Ie(){M=!0,z.push(...Wr()),oe.forEach((A,$)=>{U.has($)&&(L.push($),Be($))})}function wt(A,$,D){let B=ra(b.matches,$);Cr(A),re({errors:{[B.route.id]:D},fetchers:new Map(b.fetchers)})}function Cr(A){let $=b.fetchers.get(A);U.has(A)&&!($&&$.state==="loading"&&se.has(A))&&Be(A),oe.delete(A),se.delete(A),J.delete(A),b.fetchers.delete(A)}function Be(A){let $=U.get(A);fe($,"Expected fetch controller: "+A),$.abort(),U.delete(A)}function sr(A){for(let $ of A){let D=nt($),B=$i(D.data);b.fetchers.set($,B)}}function Vr(){let A=[],$=!1;for(let D of J){let B=b.fetchers.get(D);fe(B,"Expected fetcher: "+D),B.state==="loading"&&(J.delete(D),A.push(D),$=!0)}return sr(A),$}function Bt(A){let $=[];for(let[D,B]of se)if(B0}function oo(A,$){let D=b.blockers.get(A)||hs;return I.get(A)!==$&&I.set(A,$),D}function io(A){b.blockers.delete(A),I.delete(A)}function Rn(A,$){let D=b.blockers.get(A)||hs;fe(D.state==="unblocked"&&$.state==="blocked"||D.state==="blocked"&&$.state==="blocked"||D.state==="blocked"&&$.state==="proceeding"||D.state==="blocked"&&$.state==="unblocked"||D.state==="proceeding"&&$.state==="unblocked","Invalid blocker state transition: "+D.state+" -> "+$.state);let B=new Map(b.blockers);B.set(A,$),re({blockers:B})}function Wo(A){let{currentLocation:$,nextLocation:D,historyAction:B}=A;if(I.size===0)return;I.size>1&&Ma(!1,"A router only supports one blocker at a time");let ae=Array.from(I.entries()),[te,ne]=ae[ae.length-1],q=b.blockers.get(te);if(!(q&&q.state==="proceeding")&&ne({currentLocation:$,nextLocation:D,historyAction:B}))return te}function Wr(A){let $=[];return F.forEach((D,B)=>{(!A||A(B))&&(D.cancel(),$.push(B),F.delete(B))}),$}function Yl(A,$,D){if(f=A,g=$,p=D||null,!y&&b.navigation===xh){y=!0;let B=Ha(b.location,b.matches);B!=null&&re({restoreScrollPosition:B})}return()=>{f=null,g=null,p=null}}function Ua(A,$){return p&&p(A,$.map(B=>p7(B,b.loaderData)))||A.key}function Xl(A,$){if(f&&g){let D=Ua(A,$);f[D]=g()}}function Ha(A,$){if(f){let D=Ua(A,$),B=f[D];if(typeof B=="number")return B}return null}function Ql(A){i={},s=qp(A,o,void 0,i)}return x={get basename(){return l},get state(){return b},get routes(){return a},initialize:H,subscribe:ie,enableScrollRestoration:Yl,navigate:ge,fetch:ve,revalidate:tt,createHref:A=>e.history.createHref(A),encodeLocation:A=>e.history.encodeLocation(A),getFetcher:nt,deleteFetcher:Cr,dispose:le,getBlocker:oo,deleteBlocker:io,_internalFetchControllers:U,_internalActiveDeferreds:F,_internalSetRoutes:Ql},x}function a7(e){return e!=null&&("formData"in e&&e.formData!=null||"body"in e&&e.body!==void 0)}function Kp(e,t,r,n,o,i,a){let s,l;if(i!=null&&a!=="path"){s=[];for(let c of t)if(s.push(c),c.route.id===i){l=c;break}}else s=t,l=t[t.length-1];let u=Xg(o||".",Kd(s).map(c=>c.pathnameBase),Wa(e.pathname,r)||e.pathname,a==="path");return o==null&&(u.search=e.search,u.hash=e.hash),(o==null||o===""||o===".")&&l&&l.route.index&&!Zg(u.search)&&(u.search=u.search?u.search.replace(/^\?/,"?index&"):"?index"),n&&r!=="/"&&(u.pathname=u.pathname==="/"?r:Kn([r,u.pathname])),bi(u)}function Y1(e,t,r,n){if(!n||!a7(n))return{path:r};if(n.formMethod&&!h7(n.formMethod))return{path:r,error:Rr(405,{method:n.formMethod})};let o=()=>({path:r,error:Rr(400,{type:"invalid-body"})}),i=n.formMethod||"get",a=e?i.toUpperCase():i.toLowerCase(),s=YC(r);if(n.body!==void 0){if(n.formEncType==="text/plain"){if(!Xr(a))return o();let f=typeof n.body=="string"?n.body:n.body instanceof FormData||n.body instanceof URLSearchParams?Array.from(n.body.entries()).reduce((p,g)=>{let[y,w]=g;return""+p+y+"="+w+` +`},""):String(n.body);return{path:r,submission:{formMethod:a,formAction:s,formEncType:n.formEncType,formData:void 0,json:void 0,text:f}}}else if(n.formEncType==="application/json"){if(!Xr(a))return o();try{let f=typeof n.body=="string"?JSON.parse(n.body):n.body;return{path:r,submission:{formMethod:a,formAction:s,formEncType:n.formEncType,formData:void 0,json:f,text:void 0}}}catch{return o()}}}fe(typeof FormData=="function","FormData is not available in this environment");let l,u;if(n.formData)l=Yp(n.formData),u=n.formData;else if(n.body instanceof FormData)l=Yp(n.body),u=n.body;else if(n.body instanceof URLSearchParams)l=n.body,u=J1(l);else if(n.body==null)l=new URLSearchParams,u=new FormData;else try{l=new URLSearchParams(n.body),u=J1(l)}catch{return o()}let c={formMethod:a,formAction:s,formEncType:n&&n.formEncType||"application/x-www-form-urlencoded",formData:u,json:void 0,text:void 0};if(Xr(c.formMethod))return{path:r,submission:c};let d=no(r);return t&&d.search&&Zg(d.search)&&l.append("index",""),d.search="?"+l,{path:bi(d),submission:c}}function s7(e,t){let r=e;if(t){let n=e.findIndex(o=>o.route.id===t);n>=0&&(r=e.slice(0,n))}return r}function X1(e,t,r,n,o,i,a,s,l,u,c,d,f,p){let g=p?Object.values(p)[0]:f?Object.values(f)[0]:void 0,y=e.createURL(t.location),w=e.createURL(o),v=p?Object.keys(p)[0]:void 0,x=s7(r,v).filter((P,E)=>{if(P.route.lazy)return!0;if(P.route.loader==null)return!1;if(l7(t.loaderData,t.matches[E],P)||a.some(M=>M===P.route.id))return!0;let C=t.matches[E],R=P;return Q1(P,Ke({currentUrl:y,currentParams:C.params,nextUrl:w,nextParams:R.params},n,{actionResult:g,defaultShouldRevalidate:i||y.pathname+y.search===w.pathname+w.search||y.search!==w.search||KC(C,R)}))}),b=[];return l.forEach((P,E)=>{if(!r.some(L=>L.route.id===P.routeId))return;let C=ta(c,P.path,d);if(!C){b.push({key:E,routeId:P.routeId,path:P.path,matches:null,match:null,controller:null});return}let R=t.fetchers.get(E),M=Xp(C,P.path),z=!1;u.has(E)?z=!1:s.includes(E)?z=!0:R&&R.state!=="idle"&&R.data===void 0?z=i:z=Q1(M,Ke({currentUrl:y,currentParams:t.matches[t.matches.length-1].params,nextUrl:w,nextParams:r[r.length-1].params},n,{actionResult:g,defaultShouldRevalidate:i})),z&&b.push({key:E,routeId:P.routeId,path:P.path,matches:C,match:M,controller:new AbortController})}),[x,b]}function l7(e,t,r){let n=!t||r.route.id!==t.route.id,o=e[r.route.id]===void 0;return n||o}function KC(e,t){let r=e.route.path;return e.pathname!==t.pathname||r!=null&&r.endsWith("*")&&e.params["*"]!==t.params["*"]}function Q1(e,t){if(e.route.shouldRevalidate){let r=e.route.shouldRevalidate(t);if(typeof r=="boolean")return r}return t.defaultShouldRevalidate}async function Z1(e,t,r){if(!e.lazy)return;let n=await e.lazy();if(!e.lazy)return;let o=r[e.id];fe(o,"No route found in manifest");let i={};for(let a in n){let l=o[a]!==void 0&&a!=="hasErrorBoundary";Ma(!l,'Route "'+o.id+'" has a static property "'+a+'" defined but its lazy function is also returning a value for this property. '+('The lazy route property "'+a+'" will be ignored.')),!l&&!AB.has(a)&&(i[a]=n[a])}Object.assign(o,i),Object.assign(o,Ke({},t(o),{lazy:void 0}))}async function ps(e,t,r,n,o,i,a,s){s===void 0&&(s={});let l,u,c,d=g=>{let y,w=new Promise((v,m)=>y=m);return c=()=>y(),t.signal.addEventListener("abort",c),Promise.race([g({request:t,params:r.params,context:s.requestContext}),w])};try{let g=r.route[e];if(r.route.lazy)if(g)u=(await Promise.all([d(g),Z1(r.route,i,o)]))[0];else if(await Z1(r.route,i,o),g=r.route[e],g)u=await d(g);else if(e==="action"){let y=new URL(t.url),w=y.pathname+y.search;throw Rr(405,{method:t.method,pathname:w,routeId:r.route.id})}else return{type:at.data,data:void 0};else if(g)u=await d(g);else{let y=new URL(t.url),w=y.pathname+y.search;throw Rr(404,{pathname:w})}fe(u!==void 0,"You defined "+(e==="action"?"an action":"a loader")+" for route "+('"'+r.route.id+"\" but didn't return anything from your `"+e+"` ")+"function. Please return a value or `null`.")}catch(g){l=at.error,u=g}finally{c&&t.signal.removeEventListener("abort",c)}if(f7(u)){let g=u.status;if(t7.has(g)){let v=u.headers.get("Location");if(fe(v,"Redirects returned/thrown from loaders/actions must have a Location header"),!qC.test(v))v=Kp(new URL(t.url),n.slice(0,n.indexOf(r)+1),a,!0,v);else if(!s.isStaticRequest){let m=new URL(t.url),x=v.startsWith("//")?new URL(m.protocol+v):new URL(v),b=Wa(x.pathname,a)!=null;x.origin===m.origin&&b&&(v=x.pathname+x.search+x.hash)}if(s.isStaticRequest)throw u.headers.set("Location",v),u;return{type:at.redirect,status:g,location:v,revalidate:u.headers.get("X-Remix-Revalidate")!==null,reloadDocument:u.headers.get("X-Remix-Reload-Document")!==null}}if(s.isRouteRequest)throw{type:l===at.error?at.error:at.data,response:u};let y,w=u.headers.get("Content-Type");return w&&/\bapplication\/json\b/.test(w)?y=await u.json():y=await u.text(),l===at.error?{type:l,error:new Qg(g,u.statusText,y),headers:u.headers}:{type:at.data,data:y,statusCode:u.status,headers:u.headers}}if(l===at.error)return{type:l,error:u};if(d7(u)){var f,p;return{type:at.deferred,deferredData:u,statusCode:(f=u.init)==null?void 0:f.status,headers:((p=u.init)==null?void 0:p.headers)&&new Headers(u.init.headers)}}return{type:at.data,data:u}}function ms(e,t,r,n){let o=e.createURL(YC(t)).toString(),i={signal:r};if(n&&Xr(n.formMethod)){let{formMethod:a,formEncType:s}=n;i.method=a.toUpperCase(),s==="application/json"?(i.headers=new Headers({"Content-Type":s}),i.body=JSON.stringify(n.json)):s==="text/plain"?i.body=n.text:s==="application/x-www-form-urlencoded"&&n.formData?i.body=Yp(n.formData):i.body=n.formData}return new Request(o,i)}function Yp(e){let t=new URLSearchParams;for(let[r,n]of e.entries())t.append(r,typeof n=="string"?n:n.name);return t}function J1(e){let t=new FormData;for(let[r,n]of e.entries())t.append(r,n);return t}function u7(e,t,r,n,o){let i={},a=null,s,l=!1,u={};return r.forEach((c,d)=>{let f=t[d].route.id;if(fe(!ga(c),"Cannot handle redirect results in processLoaderData"),Xs(c)){let p=ra(e,f),g=c.error;n&&(g=Object.values(n)[0],n=void 0),a=a||{},a[p.route.id]==null&&(a[p.route.id]=g),i[f]=void 0,l||(l=!0,s=HC(c.error)?c.error.status:500),c.headers&&(u[f]=c.headers)}else ii(c)?(o.set(f,c.deferredData),i[f]=c.deferredData.data):i[f]=c.data,c.statusCode!=null&&c.statusCode!==200&&!l&&(s=c.statusCode),c.headers&&(u[f]=c.headers)}),n&&(a=n,i[Object.keys(n)[0]]=void 0),{loaderData:i,errors:a,statusCode:s||200,loaderHeaders:u}}function eb(e,t,r,n,o,i,a,s){let{loaderData:l,errors:u}=u7(t,r,n,o,s);for(let c=0;cn.route.id===t)+1):[...e]).reverse().find(n=>n.route.hasErrorBoundary===!0)||e[0]}function rb(e){let t=e.find(r=>r.index||!r.path||r.path==="/")||{id:"__shim-error-route__"};return{matches:[{params:{},pathname:"",pathnameBase:"",route:t}],route:t}}function Rr(e,t){let{pathname:r,routeId:n,method:o,type:i}=t===void 0?{}:t,a="Unknown Server Error",s="Unknown @remix-run/router error";return e===400?(a="Bad Request",o&&r&&n?s="You made a "+o+' request to "'+r+'" but '+('did not provide a `loader` for route "'+n+'", ')+"so there is no way to handle the request.":i==="defer-action"?s="defer() is not supported in actions":i==="invalid-body"&&(s="Unable to encode submission body")):e===403?(a="Forbidden",s='Route "'+n+'" does not match URL "'+r+'"'):e===404?(a="Not Found",s='No route matches URL "'+r+'"'):e===405&&(a="Method Not Allowed",o&&r&&n?s="You made a "+o.toUpperCase()+' request to "'+r+'" but '+('did not provide an `action` for route "'+n+'", ')+"so there is no way to handle the request.":o&&(s='Invalid request method "'+o.toUpperCase()+'"')),new Qg(e||500,a,new Error(s),!0)}function nb(e){for(let t=e.length-1;t>=0;t--){let r=e[t];if(ga(r))return{result:r,idx:t}}}function YC(e){let t=typeof e=="string"?no(e):e;return bi(Ke({},t,{hash:""}))}function c7(e,t){return e.pathname!==t.pathname||e.search!==t.search?!1:e.hash===""?t.hash!=="":e.hash===t.hash?!0:t.hash!==""}function ii(e){return e.type===at.deferred}function Xs(e){return e.type===at.error}function ga(e){return(e&&e.type)===at.redirect}function d7(e){let t=e;return t&&typeof t=="object"&&typeof t.data=="object"&&typeof t.subscribe=="function"&&typeof t.cancel=="function"&&typeof t.resolveData=="function"}function f7(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.headers=="object"&&typeof e.body<"u"}function h7(e){return e7.has(e.toLowerCase())}function Xr(e){return ZB.has(e.toLowerCase())}async function ob(e,t,r,n,o,i){for(let a=0;ad.route.id===l.route.id),c=u!=null&&!KC(u,l)&&(i&&i[l.route.id])!==void 0;if(ii(s)&&(o||c)){let d=n[a];fe(d,"Expected an AbortSignal for revalidating fetcher deferred result"),await XC(s,d,o).then(f=>{f&&(r[a]=f||r[a])})}}}async function XC(e,t,r){if(r===void 0&&(r=!1),!await e.deferredData.resolveData(t)){if(r)try{return{type:at.data,data:e.deferredData.unwrappedData}}catch(o){return{type:at.error,error:o}}return{type:at.data,data:e.deferredData.data}}}function Zg(e){return new URLSearchParams(e).getAll("index").some(t=>t==="")}function p7(e,t){let{route:r,pathname:n,params:o}=e;return{id:r.id,pathname:n,params:o,data:t[r.id],handle:r.handle}}function Xp(e,t){let r=typeof t=="string"?no(t).search:t.search;if(e[e.length-1].route.index&&Zg(r||""))return e[e.length-1];let n=Kd(e);return n[n.length-1]}function ib(e){let{formMethod:t,formAction:r,formEncType:n,text:o,formData:i,json:a}=e;if(!(!t||!r||!n)){if(o!=null)return{formMethod:t,formAction:r,formEncType:n,formData:void 0,json:void 0,text:o};if(i!=null)return{formMethod:t,formAction:r,formEncType:n,formData:i,json:void 0,text:void 0};if(a!==void 0)return{formMethod:t,formAction:r,formEncType:n,formData:void 0,json:a,text:void 0}}}function Du(e,t){return t?{state:"loading",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text}:{state:"loading",location:e,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0}}function m7(e,t){return{state:"submitting",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text}}function gs(e,t){return e?{state:"loading",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t," _hasFetcherDoneAnything ":!0}:{state:"loading",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:t," _hasFetcherDoneAnything ":!0}}function g7(e,t){return{state:"submitting",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t?t.data:void 0," _hasFetcherDoneAnything ":!0}}function $i(e){return{state:"idle",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:e," _hasFetcherDoneAnything ":!0}}/** + * React Router v6.15.0 + * + * Copyright (c) Remix Software Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE.md file in the root directory of this source tree. + * + * @license MIT + */function rd(){return rd=Object.assign?Object.assign.bind():function(e){for(var t=1;tl.pathnameBase)),a=S.useRef(!1);return ZC(()=>{a.current=!0}),S.useCallback(function(l,u){if(u===void 0&&(u={}),!a.current)return;if(typeof l=="number"){r.go(l);return}let c=Xg(l,JSON.parse(i),o,u.relative==="path");e==null&&t!=="/"&&(c.pathname=c.pathname==="/"?t:Kn([t,c.pathname])),(u.replace?r.replace:r.push)(c,u.state,u)},[t,r,i,o,e])}const b7=S.createContext(null);function x7(e){let t=S.useContext(No).outlet;return t&&S.createElement(b7.Provider,{value:e},t)}function ev(e,t){let{relative:r}=t===void 0?{}:t,{matches:n}=S.useContext(No),{pathname:o}=Gl(),i=JSON.stringify(Kd(n).map(a=>a.pathnameBase));return S.useMemo(()=>Xg(e,JSON.parse(i),o,r==="path"),[e,i,o,r])}function S7(e,t,r){Hl()||fe(!1);let{navigator:n}=S.useContext(Pi),{matches:o}=S.useContext(No),i=o[o.length-1],a=i?i.params:{};i&&i.pathname;let s=i?i.pathnameBase:"/";i&&i.route;let l=Gl(),u;if(t){var c;let y=typeof t=="string"?no(t):t;s==="/"||(c=y.pathname)!=null&&c.startsWith(s)||fe(!1),u=y}else u=l;let d=u.pathname||"/",f=s==="/"?d:d.slice(s.length)||"/",p=ta(e,{pathname:f}),g=_7(p&&p.map(y=>Object.assign({},y,{params:Object.assign({},a,y.params),pathname:Kn([s,n.encodeLocation?n.encodeLocation(y.pathname).pathname:y.pathname]),pathnameBase:y.pathnameBase==="/"?s:Kn([s,n.encodeLocation?n.encodeLocation(y.pathnameBase).pathname:y.pathnameBase])})),o,r);return t&&g?S.createElement(Xd.Provider,{value:{location:rd({pathname:"/",search:"",hash:"",state:null,key:"default"},u),navigationType:ft.Pop}},g):g}function w7(){let e=R7(),t=HC(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),r=e instanceof Error?e.stack:null,o={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"},i=null;return S.createElement(S.Fragment,null,S.createElement("h2",null,"Unexpected Application Error!"),S.createElement("h3",{style:{fontStyle:"italic"}},t),r?S.createElement("pre",{style:o},r):null,i)}const k7=S.createElement(w7,null);class C7 extends S.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,r){return r.location!==t.location||r.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error||r.error,location:r.location,revalidation:t.revalidation||r.revalidation}}componentDidCatch(t,r){console.error("React Router caught the following error during render",t,r)}render(){return this.state.error?S.createElement(No.Provider,{value:this.props.routeContext},S.createElement(QC.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function P7(e){let{routeContext:t,match:r,children:n}=e,o=S.useContext(Yd);return o&&o.static&&o.staticContext&&(r.route.errorElement||r.route.ErrorBoundary)&&(o.staticContext._deepestRenderedBoundaryId=r.route.id),S.createElement(No.Provider,{value:t},n)}function _7(e,t,r){var n;if(t===void 0&&(t=[]),r===void 0&&(r=null),e==null){var o;if((o=r)!=null&&o.errors)e=r.matches;else return null}let i=e,a=(n=r)==null?void 0:n.errors;if(a!=null){let s=i.findIndex(l=>l.route.id&&(a==null?void 0:a[l.route.id]));s>=0||fe(!1),i=i.slice(0,Math.min(i.length,s+1))}return i.reduceRight((s,l,u)=>{let c=l.route.id?a==null?void 0:a[l.route.id]:null,d=null;r&&(d=l.route.errorElement||k7);let f=t.concat(i.slice(0,u+1)),p=()=>{let g;return c?g=d:l.route.Component?g=S.createElement(l.route.Component,null):l.route.element?g=l.route.element:g=s,S.createElement(P7,{match:l,routeContext:{outlet:s,matches:f,isDataRoute:r!=null},children:g})};return r&&(l.route.ErrorBoundary||l.route.errorElement||u===0)?S.createElement(C7,{location:r.location,revalidation:r.revalidation,component:d,error:c,children:p(),routeContext:{outlet:null,matches:f,isDataRoute:!0}}):p()},null)}var JC=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(JC||{}),Da=function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e}(Da||{});function T7(e){let t=S.useContext(Yd);return t||fe(!1),t}function e2(e){let t=S.useContext(Jg);return t||fe(!1),t}function E7(e){let t=S.useContext(No);return t||fe(!1),t}function tv(e){let t=E7(),r=t.matches[t.matches.length-1];return r.route.id||fe(!1),r.route.id}function t2(){let e=e2(Da.UseLoaderData),t=tv(Da.UseLoaderData);if(e.errors&&e.errors[t]!=null){console.error("You cannot `useLoaderData` in an errorElement (routeId: "+t+")");return}return e.loaderData[t]}function R7(){var e;let t=S.useContext(QC),r=e2(Da.UseRouteError),n=tv(Da.UseRouteError);return t||((e=r.errors)==null?void 0:e[n])}function j7(){let{router:e}=T7(JC.UseNavigateStable),t=tv(Da.UseNavigateStable),r=S.useRef(!1);return ZC(()=>{r.current=!0}),S.useCallback(function(o,i){i===void 0&&(i={}),r.current&&(typeof o=="number"?e.navigate(o):e.navigate(o,rd({fromRouteId:t},i)))},[e,t])}const A7="startTransition",ab=wh[A7];function $7(e){let{fallbackElement:t,router:r,future:n}=e,[o,i]=S.useState(r.state),{v7_startTransition:a}=n||{},s=S.useCallback(d=>{a&&ab?ab(()=>i(d)):i(d)},[i,a]);S.useLayoutEffect(()=>r.subscribe(s),[r,s]);let l=S.useMemo(()=>({createHref:r.createHref,encodeLocation:r.encodeLocation,go:d=>r.navigate(d),push:(d,f,p)=>r.navigate(d,{state:f,preventScrollReset:p==null?void 0:p.preventScrollReset}),replace:(d,f,p)=>r.navigate(d,{replace:!0,state:f,preventScrollReset:p==null?void 0:p.preventScrollReset})}),[r]),u=r.basename||"/",c=S.useMemo(()=>({router:r,navigator:l,static:!1,basename:u}),[r,l,u]);return S.createElement(S.Fragment,null,S.createElement(Yd.Provider,{value:c},S.createElement(Jg.Provider,{value:o},S.createElement(M7,{basename:u,location:o.location,navigationType:o.historyAction,navigator:l},o.initialized?S.createElement(z7,{routes:r.routes,state:o}):t))),null)}function z7(e){let{routes:t,state:r}=e;return S7(t,void 0,r)}function Qp(e){return x7(e.context)}function M7(e){let{basename:t="/",children:r=null,location:n,navigationType:o=ft.Pop,navigator:i,static:a=!1}=e;Hl()&&fe(!1);let s=t.replace(/^\/*/,"/"),l=S.useMemo(()=>({basename:s,navigator:i,static:a}),[s,i,a]);typeof n=="string"&&(n=no(n));let{pathname:u="/",search:c="",hash:d="",state:f=null,key:p="default"}=n,g=S.useMemo(()=>{let y=Wa(u,s);return y==null?null:{location:{pathname:y,search:c,hash:d,state:f,key:p},navigationType:o}},[s,u,c,d,f,p,o]);return g==null?null:S.createElement(Pi.Provider,{value:l},S.createElement(Xd.Provider,{children:r,value:g}))}new Promise(()=>{});function D7(e){let t={hasErrorBoundary:e.ErrorBoundary!=null||e.errorElement!=null};return e.Component&&Object.assign(t,{element:S.createElement(e.Component),Component:void 0}),e.ErrorBoundary&&Object.assign(t,{errorElement:S.createElement(e.ErrorBoundary),ErrorBoundary:void 0}),t}/** + * React Router DOM v6.15.0 + * + * Copyright (c) Remix Software Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE.md file in the root directory of this source tree. + * + * @license MIT + */function La(){return La=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&(r[o]=e[o]);return r}function L7(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function O7(e,t){return e.button===0&&(!t||t==="_self")&&!L7(e)}const F7=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset"],I7=["aria-current","caseSensitive","className","end","style","to","children"];function B7(e,t){return i7({basename:t==null?void 0:t.basename,future:La({},t==null?void 0:t.future,{v7_prependBasename:!0}),history:EB({window:t==null?void 0:t.window}),hydrationData:(t==null?void 0:t.hydrationData)||N7(),routes:e,mapRouteProperties:D7}).initialize()}function N7(){var e;let t=(e=window)==null?void 0:e.__staticRouterHydrationData;return t&&t.errors&&(t=La({},t,{errors:V7(t.errors)})),t}function V7(e){if(!e)return null;let t=Object.entries(e),r={};for(let[n,o]of t)if(o&&o.__type==="RouteErrorResponse")r[n]=new Qg(o.status,o.statusText,o.data,o.internal===!0);else if(o&&o.__type==="Error"){if(o.__subType){let i=window[o.__subType];if(typeof i=="function")try{let a=new i(o.message);a.stack="",r[n]=a}catch{}}if(r[n]==null){let i=new Error(o.message);i.stack="",r[n]=i}}else r[n]=o;return r}const W7=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",U7=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,nd=S.forwardRef(function(t,r){let{onClick:n,relative:o,reloadDocument:i,replace:a,state:s,target:l,to:u,preventScrollReset:c}=t,d=r2(t,F7),{basename:f}=S.useContext(Pi),p,g=!1;if(typeof u=="string"&&U7.test(u)&&(p=u,W7))try{let m=new URL(window.location.href),x=u.startsWith("//")?new URL(m.protocol+u):new URL(u),b=Wa(x.pathname,f);x.origin===m.origin&&b!=null?u=b+x.search+x.hash:g=!0}catch{}let y=v7(u,{relative:o}),w=G7(u,{replace:a,state:s,target:l,preventScrollReset:c,relative:o});function v(m){n&&n(m),m.defaultPrevented||w(m)}return S.createElement("a",La({},d,{href:p||y,onClick:g||i?n:v,ref:r,target:l}))}),H7=S.forwardRef(function(t,r){let{"aria-current":n="page",caseSensitive:o=!1,className:i="",end:a=!1,style:s,to:l,children:u}=t,c=r2(t,I7),d=ev(l,{relative:c.relative}),f=Gl(),p=S.useContext(Jg),{navigator:g}=S.useContext(Pi),y=g.encodeLocation?g.encodeLocation(d).pathname:d.pathname,w=f.pathname,v=p&&p.navigation&&p.navigation.location?p.navigation.location.pathname:null;o||(w=w.toLowerCase(),v=v?v.toLowerCase():null,y=y.toLowerCase());let m=w===y||!a&&w.startsWith(y)&&w.charAt(y.length)==="/",x=v!=null&&(v===y||!a&&v.startsWith(y)&&v.charAt(y.length)==="/"),b=m?n:void 0,P;typeof i=="function"?P=i({isActive:m,isPending:x}):P=[i,m?"active":null,x?"pending":null].filter(Boolean).join(" ");let E=typeof s=="function"?s({isActive:m,isPending:x}):s;return S.createElement(nd,La({},c,{"aria-current":b,className:P,ref:r,style:E,to:l}),typeof u=="function"?u({isActive:m,isPending:x}):u)});var sb;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher"})(sb||(sb={}));var lb;(function(e){e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(lb||(lb={}));function G7(e,t){let{target:r,replace:n,state:o,preventScrollReset:i,relative:a}=t===void 0?{}:t,s=Vo(),l=Gl(),u=ev(e,{relative:a});return S.useCallback(c=>{if(O7(c,r)){c.preventDefault();let d=n!==void 0?n:bi(l)===bi(u);s(e,{replace:d,state:o,preventScrollReset:i,relative:a})}},[l,s,u,n,o,r,e,i,a])}function q7(){return h.jsx(yt,{minH:"full",align:"center",children:"← Choose one of the options to get started!"})}const K7="/hello.mp3",Y7="/hello2.mp3",ql={johndoe:{1:{title:"Lorem Ipsum",body:"Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum."},1293:{title:"Test1",body:`abcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyz +hi`},2977:{title:"Test",body:`The +quick +brown +fox +jumps +over +the +lazy +dog`}}},Qd={1:{title:"Help me with pronunciation",by:"user1",body:"I'm having trouble with the pronunciation of the word 'hello'. Can someone help me?",comments:[{body:"I think it should be like this:",by:"user2",audio:Y7}],audio:K7},2:{title:"Hi!",by:"user2",body:"Hi everyone! I'm new here. Nice to meet you all!",comments:[{body:"Hi!",by:"user3"},{body:"Welcome!",by:"user4"}]}};let Kl="";const Vn={johndoe:["hello","world","goodbye","goodnight","pronunciation"]},Zp={user1:"user1",user2:"user2",user3:"user3",user4:"user4",johndoe:"password123"};function ub(){return Qd}function X7(){return ql[Ht()]}function Q7(e){return ql[Ht()][e]}function n2(e){return Qd[e]}function Z7(e,t){Qd[e].comments.push(t)}function J7(e){Qd[crypto.randomUUID()]=e}function eN(e){ql[Ht()][crypto.randomUUID()]=e}function Ht(){return Kl}function Sh(){return Vn[Ht()][0]}function tN(e,t){ql[Ht()][e]=t}function rN(){const e=Math.floor(Math.random()*Vn[Ht()].length*.3)+2;Vn[Ht()].splice(e,0,Vn[Ht()][0]),Vn[Ht()].shift()}function nN(){const e=Vn[Ht()].shift();Math.random()<.3&&Vn[Ht()].push(e)}function oN(e){Vn[Ht()].unshift(e)}function iN(){Kl=""}function aN(){return Kl!==""}function cb(e,t){return Zp[e]===t?(Kl=e,!0):!1}function sN(e,t){return Zp[e]===void 0?(Zp[e]=t,Vn[e]=[],ql[e]={},Kl=e,!0):!1}function lN(){const[e,t]=S.useState(""),[r,n]=S.useState(""),[o,i]=S.useState(!1),a=Vo();return h.jsxs(yt,{direction:"column",h:"full",children:[h.jsx(yt,{borderRadius:"md",bg:"themeColors.primary",maxWidth:"full",m:"1",p:"4",px:"8",children:h.jsx(br,{flexGrow:1,size:"2xl",textAlign:"center",children:"Dyslexicon"})}),h.jsx(yt,{minH:0,grow:1,fontSize:"3xl",children:h.jsxs(Ot,{flexGrow:1,minW:0,bg:"themeColors.primary",borderRadius:"md",padding:4,mx:"1",mb:"1",children:[h.jsx(br,{textAlign:"center",children:"Login"}),h.jsx(an,{}),h.jsxs(Ot,{children:[h.jsxs(en,{isInvalid:o&&e==="",isRequired:!0,children:[h.jsx(tn,{children:"Username"}),h.jsx(_n,{value:e,onChange:s=>{t(s.target.value)}}),h.jsx(vi,{children:"Username empty or taken"})]}),h.jsxs(en,{isInvalid:o&&r==="",isRequired:!0,children:[h.jsx(tn,{children:"Password"}),h.jsx(_n,{type:"password",value:r,onChange:s=>{n(s.target.value)}}),h.jsx(vi,{children:"Password empty or incorrect"})]}),h.jsxs(pa,{children:[h.jsx(qn,{onClick:()=>{i(e===""||r===""),!(e===""||r==="")&&(cb(e,r)?a("/"):(n(""),i(!0)))},children:"Login"}),h.jsx(qn,{onClick:()=>{i(e===""||r===""),!(e===""||r==="")&&(sN(e,r)?a("/"):(t(""),i(!0)))},children:"Sign up"}),h.jsx(qn,{onClick:()=>{cb("johndoe","password123"),a("/")},children:"Guest account"})]})]})]})})]})}var o2={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},db=hr.createContext&&hr.createContext(o2),Ao=globalThis&&globalThis.__assign||function(){return Ao=Object.assign||function(e){for(var t,r=1,n=arguments.length;r{const r={...e};return r.bg=r.bg?r.bg:"black",r.hasArrow=r.hasArrow?r.hasArrow:!0,r.textColor=r.textColor?r.textColor:"white",h.jsx(VC,{ref:t,...r})});function fN(e){return h.jsx(Te,{hasArrow:!0,label:e.tooltip,placement:"right",children:h.jsx(qn,{bg:e.highlight?"themeColors.accent1":void 0,boxShadow:e.highlight?"md":void 0,_hover:e.highlight?{bg:"themeColors.accent1"}:void 0,w:"full",h:"fit-content",borderRadius:"lg",textAlign:"center",py:2.5,mx:2.5,fontSize:"xl",children:e.children})})}function hN(){const e=Vo();return S.useEffect(()=>{aN()||e("/login")},[e]),h.jsxs(yt,{direction:"column",h:"full",children:[h.jsxs(yt,{borderRadius:"md",bg:"themeColors.primary",maxWidth:"full",m:"1",p:"4",px:"8",gap:2,children:[h.jsx(br,{size:"2xl",children:"Dyslexicon"}),h.jsx(uc,{}),h.jsxs(fr,{margin:"auto",fontSize:"lg",children:["Hi ",h.jsx("b",{children:Ht()}),"!"]}),h.jsx(Te,{label:"Log out",placement:"left",children:h.jsx(_e,{margin:"auto",onClick:()=>{iN(),e("/login")},float:"right","aria-label":"Log out",icon:h.jsx(Ue,{as:dN,boxSize:5})})})]}),h.jsxs(yt,{minH:0,grow:1,fontSize:"3xl",children:[h.jsxs(yt,{borderRadius:"md",bg:"themeColors.primary",minW:150,m:"1",p:"1",mt:"0",py:"2",direction:"column",children:[h.jsx(uc,{}),h.jsx(yt,{as:"nav",direction:"column",gap:2.5,children:ON.map(t=>h.jsx(H7,{to:t.path,style:{display:"flex",alignItems:"center",justifyContent:"center"},children:({isActive:r})=>h.jsx(fN,{tooltip:t.tooltip,highlight:r,children:t.name})},t.path))}),h.jsx(uc,{})]}),h.jsx(Lr,{flexGrow:1,minW:0,bg:"themeColors.primary",borderRadius:"md",padding:4,mr:"1",mb:"1",children:h.jsx(Qp,{})})]})]})}var pN=Na({displayName:"EditIcon",path:h.jsxs("g",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"2",children:[h.jsx("path",{d:"M11 4H4a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7"}),h.jsx("path",{d:"M18.5 2.5a2.121 2.121 0 0 1 3 3L12 15l-4 1 1-4 9.5-9.5z"})]})}),mN=Na({displayName:"CloseIcon",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"}),a2=Na({displayName:"DeleteIcon",path:h.jsx("g",{fill:"currentColor",children:h.jsx("path",{d:"M19.452 7.5H4.547a.5.5 0 00-.5.545l1.287 14.136A2 2 0 007.326 24h9.347a2 2 0 001.992-1.819L19.95 8.045a.5.5 0 00-.129-.382.5.5 0 00-.369-.163zm-9.2 13a.75.75 0 01-1.5 0v-9a.75.75 0 011.5 0zm5 0a.75.75 0 01-1.5 0v-9a.75.75 0 011.5 0zM22 4h-4.75a.25.25 0 01-.25-.25V2.5A2.5 2.5 0 0014.5 0h-5A2.5 2.5 0 007 2.5v1.25a.25.25 0 01-.25.25H2a1 1 0 000 2h20a1 1 0 000-2zM9 3.75V2.5a.5.5 0 01.5-.5h5a.5.5 0 01.5.5v1.25a.25.25 0 01-.25.25h-5.5A.25.25 0 019 3.75z"})})}),rv=Na({d:"M0,12a1.5,1.5,0,0,0,1.5,1.5h8.75a.25.25,0,0,1,.25.25V22.5a1.5,1.5,0,0,0,3,0V13.75a.25.25,0,0,1,.25-.25H22.5a1.5,1.5,0,0,0,0-3H13.75a.25.25,0,0,1-.25-.25V1.5a1.5,1.5,0,0,0-3,0v8.75a.25.25,0,0,1-.25.25H1.5A1.5,1.5,0,0,0,0,12Z",displayName:"AddIcon"}),Zd=Na({d:"M20 11H7.83l5.59-5.59L12 4l-8 8 8 8 1.41-1.41L7.83 13H20v-2z",displayName:"ArrowBackIcon"}),gN=Na({d:"M12 4l-1.41 1.41L16.17 11H4v2h12.17l-5.58 5.59L12 20l8-8z",displayName:"ArrowForwardIcon"});function vN(){const e=X7(),t=250,r=1,n=S.useRef(null),o=NC(n),i=o!=null&&o.width?Math.min(t,o.width):t;return h.jsxs(Ot,{ref:n,spacing:2,maxH:"full",children:[h.jsxs(yt,{w:"full",justify:"space-between",children:[h.jsx(br,{textAlign:"center",children:"Your content"}),h.jsx(Te,{label:"Add or generate text",placement:"left",children:h.jsx(_e,{as:nd,to:"new",float:"right","aria-label":"add",icon:h.jsx(rv,{boxSize:5})})})]}),h.jsx(an,{}),h.jsx(Bg,{columns:o!=null&&o.width?Math.floor(o.width/i):100,spacing:2,mt:4,overflowY:"scroll",children:Object.entries(e).map(([a,s])=>h.jsxs(lC,{as:nd,to:a,width:i+"px",height:i*r+"px",variant:"clickable-card",children:[h.jsx(sC,{children:h.jsx(br,{size:"md",noOfLines:1,children:s.title})}),h.jsx(aC,{minH:0,children:h.jsx(Lr,{borderWidth:1,borderColor:"themeColors.accent1",borderRadius:"sm",p:2,h:"full",children:h.jsx(fr,{fontSize:"sm",whiteSpace:"pre-wrap",overflow:"hidden",maxH:"full",children:s.body})})})]},a))})]})}function yN(e){return ar({tag:"svg",attr:{fill:"currentColor",viewBox:"0 0 16 16"},child:[{tag:"path",attr:{d:"M13.854 3.646a.5.5 0 0 1 0 .708l-7 7a.5.5 0 0 1-.708 0l-3.5-3.5a.5.5 0 1 1 .708-.708L6.5 10.293l6.646-6.647a.5.5 0 0 1 .708 0z"}}]})(e)}function bN(e){return ar({tag:"svg",attr:{fill:"currentColor",viewBox:"0 0 16 16"},child:[{tag:"path",attr:{d:"M3.5 6.5A.5.5 0 0 1 4 7v1a4 4 0 0 0 8 0V7a.5.5 0 0 1 1 0v1a5 5 0 0 1-4.5 4.975V15h3a.5.5 0 0 1 0 1h-7a.5.5 0 0 1 0-1h3v-2.025A5 5 0 0 1 3 8V7a.5.5 0 0 1 .5-.5z"}},{tag:"path",attr:{d:"M10 8a2 2 0 1 1-4 0V3a2 2 0 1 1 4 0v5zM8 0a3 3 0 0 0-3 3v5a3 3 0 0 0 6 0V3a3 3 0 0 0-3-3z"}}]})(e)}function xN(e){return ar({tag:"svg",attr:{fill:"currentColor",viewBox:"0 0 16 16"},child:[{tag:"path",attr:{d:"M6 3.5a.5.5 0 0 1 .5.5v8a.5.5 0 0 1-1 0V4a.5.5 0 0 1 .5-.5zm4 0a.5.5 0 0 1 .5.5v8a.5.5 0 0 1-1 0V4a.5.5 0 0 1 .5-.5z"}}]})(e)}function SN(e){return ar({tag:"svg",attr:{fill:"currentColor",viewBox:"0 0 16 16"},child:[{tag:"path",attr:{d:"M10.804 8 5 4.633v6.734L10.804 8zm.792-.696a.802.802 0 0 1 0 1.392l-6.363 3.692C4.713 12.69 4 12.345 4 11.692V4.308c0-.653.713-.998 1.233-.696l6.363 3.692z"}}]})(e)}function nv(e){return ar({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M21.03 5.72a.75.75 0 0 1 0 1.06l-11.5 11.5a.747.747 0 0 1-1.072-.012l-5.5-5.75a.75.75 0 1 1 1.084-1.036l4.97 5.195L19.97 5.72a.75.75 0 0 1 1.06 0Z"}}]})(e)}function wN(e){return ar({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M15.28 5.22a.75.75 0 0 1 0 1.06L9.56 12l5.72 5.72a.749.749 0 0 1-.326 1.275.749.749 0 0 1-.734-.215l-6.25-6.25a.75.75 0 0 1 0-1.06l6.25-6.25a.75.75 0 0 1 1.06 0Z"}}]})(e)}function kN(e){return ar({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M8.72 18.78a.75.75 0 0 1 0-1.06L14.44 12 8.72 6.28a.751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018l6.25 6.25a.75.75 0 0 1 0 1.06l-6.25 6.25a.75.75 0 0 1-1.06 0Z"}}]})(e)}function CN(e){return ar({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M11.22 5.22a.749.749 0 0 1 1.06 0l6.25 6.25a.749.749 0 0 1 0 1.06l-6.25 6.25a.749.749 0 1 1-1.06-1.06l4.969-4.97H1.75a.75.75 0 0 1 0-1.5h14.439L11.22 6.28a.749.749 0 0 1 0-1.06Zm10.03-1.47a.75.75 0 0 1 .75.75v15a.75.75 0 0 1-1.5 0v-15a.75.75 0 0 1 .75-.75Z"}}]})(e)}function PN(e){return ar({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M12.78 18.78a.749.749 0 0 1-1.06 0l-6.25-6.25a.749.749 0 0 1 0-1.06l6.25-6.25a.749.749 0 1 1 1.06 1.06l-4.969 4.97H22.25a.75.75 0 0 1 0 1.5H7.811l4.969 4.97a.749.749 0 0 1 0 1.06ZM2.75 3.75a.75.75 0 0 1 .75.75v15a.75.75 0 0 1-1.5 0v-15a.75.75 0 0 1 .75-.75Z"}}]})(e)}function _N(e){return ar({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M5.72 5.72a.75.75 0 0 1 1.06 0L12 10.94l5.22-5.22a.749.749 0 0 1 1.275.326.749.749 0 0 1-.215.734L13.06 12l5.22 5.22a.749.749 0 0 1-.326 1.275.749.749 0 0 1-.734-.215L12 13.06l-5.22 5.22a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042L10.94 12 5.72 6.78a.75.75 0 0 1 0-1.06Z"}}]})(e)}function s2(e){return ar({tag:"svg",attr:{fill:"none",viewBox:"0 0 24 24",strokeWidth:"1.5",stroke:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{strokeLinecap:"round",strokeLinejoin:"round",d:"M9.879 7.519c1.171-1.025 3.071-1.025 4.242 0 1.172 1.025 1.172 2.687 0 3.712-.203.179-.43.326-.67.442-.745.361-1.45.999-1.45 1.827v.75M21 12a9 9 0 11-18 0 9 9 0 0118 0zm-9 5.25h.008v.008H12v-.008z"}}]})(e)}function l2(e){return ar({tag:"svg",attr:{fill:"none",viewBox:"0 0 24 24",strokeWidth:"1.5",stroke:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{strokeLinecap:"round",strokeLinejoin:"round",d:"M19.114 5.636a9 9 0 010 12.728M16.463 8.288a5.25 5.25 0 010 7.424M6.75 8.25l4.72-4.72a.75.75 0 011.28.53v15.88a.75.75 0 01-1.28.53l-4.72-4.72H4.51c-.88 0-1.704-.507-1.938-1.354A9.01 9.01 0 012.25 12c0-.83.112-1.633.322-2.396C2.806 8.756 3.63 8.25 4.51 8.25H6.75z"}}]})(e)}function TN(e){const t=DT("colors","themeColors.accent1")+"55";return h.jsxs(zC,{isOpen:e.selected===e.idx&&e.clicked,autoFocus:!1,isLazy:!0,children:[h.jsx($C,{children:h.jsx(Lr,{display:"inline-block",onMouseEnter:()=>e.triggerHighlight(e.idx),onMouseLeave:()=>e.triggerHighlight(-1),bgColor:e.selected===e.idx?"themeColors.accent1":e.highlighted===e.idx?t:"transparent",borderRadius:"md",onMouseDown:r=>{e.triggerClick(e.idx),r.stopPropagation()},children:e.word})}),h.jsxs(OC,{bgColor:"themeColors.popoverBackground",w:"fit-content",children:[h.jsx(MC,{bgColor:"themeColors.popoverBackground"}),h.jsx(DC,{children:h.jsxs(pa,{spacing:2,children:[h.jsx(Te,{label:"Play audio",placement:"bottom",children:h.jsx(_e,{"aria-label":"Play audio",icon:h.jsx(Ue,{as:l2,boxSize:5})})}),h.jsx(Te,{label:"Show meaning",placement:"bottom",children:h.jsx(_e,{"aria-label":"Show meaning",icon:h.jsx(Ue,{as:s2,boxSize:5})})}),h.jsx(Te,{label:"Add to revision",placement:"bottom",children:h.jsx(_e,{"aria-label":"Add to revision",onClick:()=>{oN(e.word)},icon:h.jsx(Ue,{as:rv,boxSize:3})})})]})})]})]})}function EN(e){return ar({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M149.688 85.625c-1.234.005-2.465.033-3.72.063-33.913.806-75.48 10.704-127.25 33.718V362.78c60.77-28.82 106.718-37.067 144.22-33.092 33.502 3.55 59.685 16.66 83.562 31.187v-242.97c-23.217-17.744-50.195-30.04-85.97-32-3.52-.192-7.142-.296-10.843-.28zm211.968 0c-3.7-.016-7.322.088-10.844.28-35.773 1.96-62.75 14.256-85.968 32v242.97c23.876-14.527 50.06-27.637 83.562-31.188 37.502-3.974 83.45 4.272 144.22 33.094V119.407c-51.77-23.014-93.337-32.912-127.25-33.72-1.255-.028-2.486-.056-3.72-.06zm5.72 261.78c-1.038-.002-2.074.017-3.095.033-4.808.075-9.43.37-13.905.843-33.932 3.597-59.603 17.976-85.53 34.44v.28c-6.554-1.99-13.02-2.37-19.408-.97-25.566-16.177-51.003-30.202-84.468-33.75-5.595-.592-11.44-.883-17.564-.842-32.04.213-71.833 9.778-124.687 35.937v42.53c60.77-28.823 106.714-37.067 144.218-33.092 18.545 1.965 34.837 6.845 49.75 13.28-4.682 6.064-9.308 13.268-13.875 21.688h117.156c-5.93-8.22-11.798-15.414-17.626-21.56 14.996-6.503 31.39-11.43 50.062-13.408 37.503-3.974 83.448 4.27 144.22 33.094v-42.53c-53.16-26.31-93.115-35.863-125.25-35.97z"}}]})(e)}function RN(){const{contentId:e,content:t}=t2(),r=Vo(),[n,o]=$1(!1),[i,a]=$1(!1),[s,l]=S.useState(t.title),[u,c]=S.useState(t.body),[d,f]=S.useState(""),[p,g]=S.useState(""),[y,w]=S.useState([""]),[v,m]=S.useState(0),[x,b]=S.useState(1),[P,E]=S.useState(!1),[C,R]=S.useState(0),[M,z]=S.useState(void 0);return S.useEffect(()=>{const L=u.split(/[^a-zA-Z0-9-]+/);for(;L[L.length-1]==="";)L.pop();const U=u.split(/[a-zA-Z0-9-]+/),Q=[];for(let Z=0;Z{tN(e,{title:s,body:u})},[s,u,e]),S.useEffect(()=>{n?(E(!1),z(setTimeout(()=>{const L=x+2;L<=C?b(L):o.off()},300))):clearTimeout(M)},[n,x,C,M,o]),h.jsxs(Ot,{w:"full",h:"full",spacing:2,children:[h.jsxs(yt,{w:"full",justify:"space-between",align:"center",children:[h.jsx(yt,{align:"center",gap:3,children:i?h.jsx(_n,{fontSize:"2xl",value:d,onChange:L=>f(L.target.value)}):h.jsxs(h.Fragment,{children:[h.jsx(Te,{label:"Back",placement:"right",children:h.jsx(_e,{onClick:()=>r(-1),"aria-label":"Back",icon:h.jsx(Zd,{boxSize:7})})}),h.jsx(br,{textAlign:"center",children:s})]})}),i?h.jsxs(pa,{children:[h.jsx(Te,{label:"Accept changes",placement:"bottom",children:h.jsx(_e,{onClick:()=>{l(d.trim()),c(p.trim()),a.off()},"aria-label":"Accept changes",icon:h.jsx(Ue,{as:nv,boxSize:7})})}),h.jsx(Te,{label:"Discard changes",placement:"bottom",children:h.jsx(_e,{onClick:a.off,"aria-label":"Discard changes",icon:h.jsx(Ue,{as:_N,boxSize:7})})})]}):h.jsxs(pa,{children:[h.jsx(Te,{label:"Edit text",placement:"bottom",children:h.jsx(_e,{onClick:()=>{f(s),g(u),a.on()},"aria-label":"Edit text",icon:h.jsx(pN,{boxSize:5})})}),h.jsx(Te,{label:"Delete text",placement:"bottom",children:h.jsx(_e,{"aria-label":"Delete text",icon:h.jsx(a2,{boxSize:5})})})]})]}),h.jsx(an,{}),i?h.jsx(qd,{h:"full",overflowY:"scroll",fontSize:"2xl",whiteSpace:"pre-wrap",value:p,onChange:L=>g(L.target.value)}):h.jsx(Lr,{w:"full",flexGrow:1,p:4,minH:0,borderWidth:2,borderRadius:"md",borderColor:"themeColors.accent1",onMouseDown:()=>{E(!1)},children:h.jsx(fr,{as:Lr,h:"full",w:"full",overflowY:"scroll",overflowX:"hidden",fontSize:"2xl",whiteSpace:"pre-wrap",display:"inline-block",children:y.map((L,U)=>U%2===1?h.jsx(TN,{word:L,idx:U,highlighted:v,selected:x,clicked:P,triggerHighlight:m,triggerClick:Q=>{b(Q),E(!0),o.off()}}):L)})}),h.jsx(an,{}),h.jsxs(pa,{isDisabled:i,children:[h.jsx(Te,{label:"To Start",placement:"top",children:h.jsx(_e,{onClick:()=>{b(1),E(!1)},"aria-label":"To Start",icon:h.jsx(Ue,{as:PN,boxSize:7})})}),h.jsx(Te,{label:"Back",placement:"top",children:h.jsx(_e,{onClick:()=>{E(!1);const L=x-2;L>=1&&b(L)},"aria-label":"Back",icon:h.jsx(Ue,{as:wN,boxSize:7})})}),h.jsx(Te,{label:n?"Pause":"Play",placement:"top",children:h.jsx(_e,{onClick:o.toggle,"aria-label":n?"Pause":"Play",icon:h.jsx(Ue,{as:n?xN:SN,boxSize:7})})}),h.jsx(Te,{label:"Next",placement:"top",children:h.jsx(_e,{onClick:()=>{E(!1);const L=x+2;L<=C&&b(L)},"aria-label":"Next",icon:h.jsx(Ue,{as:kN,boxSize:7})})}),h.jsx(Te,{label:"To End",placement:"top",children:h.jsx(_e,{onClick:()=>{b(C),E(!1)},"aria-label":"To End",icon:h.jsx(Ue,{as:CN,boxSize:7})})}),h.jsx(Te,{label:"Quiz yourself",placement:"top",children:h.jsx(_e,{onClick:()=>{alert("not implemented")},"aria-label":"Quiz yourself",icon:h.jsx(Ue,{as:EN,boxSize:7})})})]})]})}async function jN(e){const t=e.params.contentId;return{contentId:t,content:Q7(t)}}async function AN(e){const t=e.params.contentId;return{contentId:t,content:n2(t)}}function $N(){const e=Vo(),[t,r]=S.useState("New Content"),[n,o]=S.useState("ai"),[i,a]=S.useState(""),s=S.useRef(null),[l,u]=S.useState(""),[c,d]=S.useState(null),[f,p]=S.useState(!1);S.useEffect(()=>{s.current.value="",d(null),n==="image"?u("image/*"):n==="audio"&&u("audio/*")},[n]);function g(){p(t===""||n!=="text"),!(t===""||n!=="text")&&n==="text"&&(eN({title:t,body:i}),e(-1))}return h.jsxs(Ot,{w:"full",h:"full",spacing:2,children:[h.jsxs(yt,{align:"center",w:"full",gap:3,children:[h.jsx(Te,{label:"Back",placement:"right",children:h.jsx(_e,{onClick:()=>e(-1),"aria-label":"Back",icon:h.jsx(Zd,{boxSize:7})})}),h.jsx(br,{flexGrow:1,children:"New Content"}),h.jsx(Te,{label:"Submit",placement:"left",children:h.jsx(_e,{onClick:g,"aria-label":"Submit",icon:h.jsx(Ue,{as:nv,boxSize:7})})})]}),h.jsx(an,{}),h.jsxs(en,{isInvalid:f&&t==="",isRequired:!0,children:[h.jsx(tn,{children:"Name"}),h.jsx(_n,{value:t,onChange:y=>{r(y.target.value)}}),h.jsx(vi,{children:"A title is required."})]}),h.jsxs(en,{isInvalid:f&&n!=="text",children:[h.jsx(tn,{children:"Content Type"}),h.jsxs(IC,{value:n,onChange:y=>{o(y.target.value)},children:[h.jsx("option",{value:"ai",children:"AI Generated"}),h.jsx("option",{value:"text",children:"Text"}),h.jsx("option",{value:"image",children:"Image"}),h.jsx("option",{value:"audio",children:"Audio"})]}),h.jsx(vi,{children:"(Note: not implemented yet)"})]}),h.jsx(_n,{ref:s,type:"file",accept:l,display:"none",onChange:y=>d(y.target.files.length>0?y.target.files[0]:null)}),n==="text"?h.jsxs(en,{as:yt,direction:"column",flexGrow:1,children:[h.jsx(tn,{children:"Content"}),h.jsx(qd,{value:i,onChange:y=>{a(y.target.value)},flexGrow:1})]}):n==="image"?h.jsxs(en,{as:yt,direction:"column",minH:0,isRequired:!0,children:[h.jsx(tn,{children:"Image"})," ",h.jsxs(Ot,{minH:0,p:2,spacing:2,borderWidth:2,borderColor:"themeColors.accent1",borderRadius:"md",children:[h.jsxs(Cn,{children:[h.jsx(qn,{onClick:()=>{s.current.click()},children:"Upload"}),h.jsx(fr,{fontSize:"md",children:c?c.name:"No file selected"})]}),c&&h.jsx(oC,{minH:0,src:URL.createObjectURL(c)})]})]}):n==="audio"?h.jsxs(en,{as:yt,direction:"column",minH:0,isRequired:!0,children:[h.jsx(tn,{children:"Audio"})," ",h.jsxs(Ot,{minH:0,p:2,spacing:2,borderWidth:2,borderColor:"themeColors.accent1",borderRadius:"md",children:[h.jsxs(Cn,{children:[h.jsx(qn,{onClick:()=>{s.current.click()},children:"Upload"}),h.jsx(fr,{fontSize:"md",children:c?c.name:"No file selected"})]}),c?h.jsxs(Lr,{as:"audio",controls:!0,minH:0,children:[h.jsx("source",{src:URL.createObjectURL(c),type:c.type})," "]}):h.jsx(h.Fragment,{})]})]}):h.jsx(h.Fragment,{})]})}function u2(e){const[t,r]=S.useState(""),n=Vo();return S.createElement(lC,{...e.styleProps,key:e.id,onClick:e.hasLink?()=>{n(e.id)}:void 0,w:e.cardWidth==="full"?e.cardWidth:e.cardWidth+"px",variant:"clickable-card"},h.jsxs(sC,{pb:0,children:[h.jsx(br,{size:"md",noOfLines:1,children:e.content.title}),h.jsxs(fr,{fontSize:"sm",children:["Posted by ",e.content.by]})]}),h.jsx(aC,{minH:0,display:"flex",flexDir:"column",children:h.jsxs(Ot,{w:"full",spacing:2,align:"left",overflowX:"hidden",children:[h.jsx(fr,{fontSize:"sm",whiteSpace:"pre-wrap",overflow:"hidden",w:"full",children:e.content.body}),e.content.audio&&h.jsx(Lr,{as:"audio",controls:!0,children:h.jsx("source",{src:e.content.audio})}),h.jsx(an,{borderWidth:2}),e.content.comments.length>0&&h.jsx(Ot,{w:"full",spacing:2,maxH:e.limitHeight?200:void 0,overflowY:"scroll",flexShrink:1,children:e.content.comments.map(o=>h.jsxs(fr,{as:Lr,borderWidth:2,borderColor:"themeColors.accent1",borderRadius:"md",p:2,w:"full",fontSize:"sm",whiteSpace:"pre-wrap",display:"inline-block",mb:0,children:[o.body,o.audio?h.jsx(Lr,{as:"audio",controls:!0,children:h.jsx("source",{src:o.audio})}):h.jsx(h.Fragment,{children:" "}),h.jsxs(fr,{fontSize:"xs",display:"inline-block",children:["~",o.by]})]}))}),h.jsxs(Cn,{w:"full",children:[h.jsx(_n,{value:t,onClick:o=>{o.preventDefault(),o.stopPropagation()},onChange:o=>{r(o.target.value)},placeholder:"Add a comment..."}),h.jsx(Te,{label:"Add audio",placement:"left",children:h.jsx(_e,{float:"right","aria-label":"Add audio",onClick:o=>{o.stopPropagation()},icon:h.jsx(bN,{boxSize:5})})}),t.length>0&&h.jsx(Te,{label:"Post comment",placement:"left",children:h.jsx(_e,{onClick:o=>{Z7(e.id,{body:t,by:Ht()}),r(""),e.triggerReload(),o.stopPropagation()},float:"right","aria-label":"Post comment",icon:h.jsx(gN,{boxSize:5})})})]})]})}))}function zN(){const[e,t]=S.useState(ub()),r=500,n=S.useRef(null),o=NC(n),i=o!=null&&o.width?Math.min(r,o.width):r;function a(){t(Object.assign({},ub()))}return h.jsxs(Ot,{ref:n,spacing:2,maxH:"full",children:[h.jsxs(yt,{w:"full",justify:"space-between",children:[h.jsx(br,{textAlign:"center",children:"Forum"}),h.jsx(Te,{label:"Make post",placement:"left",children:h.jsx(_e,{as:nd,to:"new",float:"right","aria-label":"Make post",icon:h.jsx(rv,{boxSize:5})})})]}),h.jsx(an,{}),h.jsx(Bg,{columns:o!=null&&o.width?Math.floor(o.width/i):100,spacing:2,mt:4,overflowY:"scroll",children:Object.entries(e).map(([s,l])=>h.jsx(u2,{id:s,content:l,cardWidth:i,limitHeight:!0,triggerReload:a,hasLink:!0}))})]})}function MN(){const{contentId:e,content:t}=t2(),[r,n]=S.useState(t),o=Vo();function i(){n(Object.assign({},n2(e)))}return h.jsxs(Ot,{w:"full",h:"full",spacing:2,children:[h.jsxs(Cn,{align:"center",spacing:3,w:"full",children:[h.jsx(Te,{label:"Back",placement:"right",children:h.jsx(_e,{onClick:()=>o(-1),"aria-label":"Back",icon:h.jsx(Zd,{boxSize:7})})}),h.jsx(br,{textAlign:"center",children:"Forum Post"})]}),h.jsx(an,{}),h.jsx(u2,{styleProps:{overflowY:"hidden"},cardWidth:"full",content:r,id:e,triggerReload:i})]})}function DN(){const e=Vo(),[t,r]=S.useState("New Post"),[n,o]=S.useState(""),i=S.useRef(null),[a,s]=S.useState(null),[l,u]=S.useState(!1);function c(){u(t===""||n===""),!(t===""||n==="")&&(J7({title:t,body:n,by:Ht(),comments:[]}),e(-1))}return h.jsxs(Ot,{w:"full",h:"full",spacing:2,children:[h.jsxs(Cn,{align:"center",spacing:3,w:"full",children:[h.jsx(Te,{label:"Back",placement:"right",children:h.jsx(_e,{onClick:()=>e(-1),"aria-label":"Back",icon:h.jsx(Zd,{boxSize:7})})}),h.jsx(br,{textAlign:"left",flexGrow:1,children:"New Post"}),h.jsx(Te,{label:"Submit",placement:"left",children:h.jsx(_e,{onClick:c,"aria-label":"Submit",icon:h.jsx(Ue,{as:nv,boxSize:7})})})]}),h.jsx(an,{}),h.jsxs(en,{isInvalid:l&&t==="",isRequired:!0,children:[h.jsx(tn,{children:"Title"}),h.jsx(_n,{value:t,onChange:d=>{r(d.target.value)}}),h.jsx(vi,{children:"A title is required."})]}),h.jsxs(en,{isInvalid:l&&n==="",isRequired:!0,children:[h.jsx(tn,{children:"Body"}),h.jsx(qd,{h:300,value:n,onChange:d=>{o(d.target.value)}}),h.jsx(vi,{children:"A body is required."})]}),h.jsx(_n,{ref:i,type:"file",accept:"audio/*",display:"none",onChange:d=>s(d.target.files.length>0?d.target.files[0]:null)}),h.jsxs(en,{as:yt,direction:"column",minH:0,children:[h.jsx(tn,{children:"Audio"})," ",h.jsxs(Ot,{minH:0,p:2,spacing:2,borderWidth:2,borderColor:"themeColors.accent1",borderRadius:"md",children:[h.jsxs(Cn,{children:[h.jsx(qn,{onClick:()=>{i.current.click()},children:"Upload"}),h.jsx(fr,{fontSize:"md",children:a?a.name:"No file selected"}),a&&h.jsx(Te,{label:"Remove audio",placement:"top",children:h.jsx(_e,{onClick:()=>s(null),"aria-label":"Remove audio",icon:h.jsx(a2,{boxSize:5})})})]}),a&&h.jsxs(Lr,{as:"audio",controls:!0,minH:0,children:[h.jsx("source",{src:URL.createObjectURL(a),type:a.type})," "]})]})]})]})}function LN(){const[e,t]=S.useState(Sh());return h.jsxs(Ot,{w:"full",h:"full",spacing:2,children:[h.jsx(Cn,{align:"center",spacing:3,w:"full",children:h.jsx(br,{textAlign:"center",children:"Flashcards"})}),h.jsx(an,{}),e?h.jsxs(Ot,{flexGrow:1,borderWidth:2,borderColor:"themeColors.accent1",borderRadius:"md",w:"full",p:2,spacing:2,children:[h.jsx(Cn,{flexGrow:1,children:h.jsx(fr,{fontSize:"9xl",children:e})}),h.jsxs(Cn,{children:[h.jsx(Te,{label:"Understood",placement:"bottom",children:h.jsx(_e,{onClick:()=>{nN(),t(Sh())},"aria-label":"Understood",icon:h.jsx(Ue,{as:yN,boxSize:7})})}),h.jsx(Te,{label:"Play audio",placement:"bottom",children:h.jsx(_e,{"aria-label":"Play audio",icon:h.jsx(Ue,{as:l2,boxSize:5})})}),h.jsx(Te,{label:"Show meaning",placement:"bottom",children:h.jsx(_e,{"aria-label":"Show meaning",icon:h.jsx(Ue,{as:s2,boxSize:5})})}),h.jsx(Te,{label:"Don't understand",placement:"bottom",children:h.jsx(_e,{"aria-label":"Don't understand",onClick:()=>{rN(),t(Sh())},icon:h.jsx(Ue,{as:mN,boxSize:3})})})]})]}):h.jsx(fr,{fontSize:"xl",children:"There's no more words for you!"})]})}const ON=[{name:"Read",path:"content",tooltip:"See your submitted content"},{name:"Revise",path:"revise",tooltip:"Revise with flashcards"},{name:"Forum",path:"forum",tooltip:"Learn with others"}],FN=[{path:"",element:h.jsx(q7,{})},{path:"content",element:h.jsx(Qp,{}),children:[{index:!0,element:h.jsx(vN,{})},{path:"new",element:h.jsx($N,{})},{path:":contentId",element:h.jsx(RN,{}),loader:jN}]},{path:"revise",element:h.jsx(LN,{})},{path:"forum",element:h.jsx(Qp,{}),children:[{index:!0,element:h.jsx(zN,{})},{path:"new",element:h.jsx(DN,{})},{path:":contentId",element:h.jsx(MN,{}),loader:AN}]}],IN=[{path:"/",element:h.jsx(hN,{}),children:FN},{path:"login",element:h.jsx(lN,{})}],BN=B7(IN,{basename:"/dyslexicon"});var hb,pb,mb;const fb=_z({config:{initialColorMode:"system",useSystemColorMode:!1},styles:{global:{"#root":{h:"100%"},body:{bg:"themeColors.background",textColor:"white",h:"100%"},html:{h:"100%"}}},colors:{themeColors:{background:po.colors.gray[900],popoverBackground:po.colors.blue[700],primary:po.colors.blue[800],accent1:po.colors.blue[600]}},components:{Button:{variants:{outline:{borderColor:"themeColors.accent1",borderWidth:2,_hover:{bg:"blackAlpha.200"},_active:{bg:"blackAlpha.300"}}},defaultProps:{variant:"outline"}},Input:{variants:{outline:{field:{display:"flex",borderColor:"themeColors.accent1",borderWidth:2,_hover:{bg:"blackAlpha.200",borderColor:"themeColors.accent1"},_active:{bg:"blackAlpha.300"}}}}},Textarea:{variants:{outline:{borderColor:"themeColors.accent1",borderWidth:2,_hover:{bg:"blackAlpha.200",borderColor:"themeColors.accent1"},_active:{bg:"blackAlpha.300"}}}},Select:{variants:{outline:{field:{display:"flex",borderColor:"themeColors.accent1",borderWidth:2,_hover:{bg:"blackAlpha.200",borderColor:"themeColors.accent1"},_active:{bg:"blackAlpha.300"}},icon:{h:"full"}}}},Divider:{baseStyle:{borderColor:"themeColors.accent1",borderWidth:5}},Card:{variants:{outline:{container:{borderWidth:2,borderColor:"themeColors.accent1",bg:"transparent"}},"clickable-card":{...(hb=po.components.Card.variants)==null?void 0:hb.outline,container:{...(mb=(pb=po.components.Card.variants)==null?void 0:pb.outline)==null?void 0:mb.container,borderWidth:2,borderColor:"themeColors.accent1",bg:"transparent",_hover:{bg:"blackAlpha.200"},_active:{bg:"blackAlpha.300"},transition:"all 0.2s ease-in-out"}}},defaultProps:{variant:"outline"}}}});kh.createRoot(document.getElementById("root")).render(h.jsxs(hr.StrictMode,{children:[h.jsx(AT,{initialColorMode:fb.config.initialColorMode}),h.jsx(V6,{theme:fb,children:h.jsx(QS,{children:h.jsx($7,{router:BN})})})]})); diff --git a/frontend/public/dyslexicon/hello.mp3 b/frontend/public/dyslexicon/hello.mp3 new file mode 100644 index 0000000..b7dec2e Binary files /dev/null and b/frontend/public/dyslexicon/hello.mp3 differ diff --git a/frontend/public/dyslexicon/hello2.mp3 b/frontend/public/dyslexicon/hello2.mp3 new file mode 100644 index 0000000..c35f7bc Binary files /dev/null and b/frontend/public/dyslexicon/hello2.mp3 differ diff --git a/frontend/public/dyslexicon/index.html b/frontend/public/dyslexicon/index.html new file mode 100644 index 0000000..f2c2ae9 --- /dev/null +++ b/frontend/public/dyslexicon/index.html @@ -0,0 +1,14 @@ + + + + + + + Dyslexicon + + + +
+ + +