From 0c1a2b68bf2a0b2c806b9c54df4949cdae419f83 Mon Sep 17 00:00:00 2001 From: Peter Baylies Date: Sat, 17 Sep 2022 09:11:29 -0400 Subject: [PATCH] * Added parameters to new more verbose React app and rebuilt the app. --- backend/modules/parameters.py | 1 - frontend/dist/assets/index.cc197870.js | 488 ++++++++++++ frontend/dist/assets/index.cc5cde43.js | 695 ------------------ frontend/dist/index.html | 2 +- frontend/src/app/parameterTranslation.ts | 8 + frontend/src/features/gallery/gallerySlice.ts | 2 + frontend/src/features/sd/SamplerOptions.tsx | 18 +- frontend/src/features/sd/sdSlice.ts | 16 + 8 files changed, 531 insertions(+), 699 deletions(-) create mode 100644 frontend/dist/assets/index.cc197870.js delete mode 100644 frontend/dist/assets/index.cc5cde43.js diff --git a/backend/modules/parameters.py b/backend/modules/parameters.py index 1f42571715..2d252ea0e1 100644 --- a/backend/modules/parameters.py +++ b/backend/modules/parameters.py @@ -66,7 +66,6 @@ def create_cmd_parser(): """ parser = argparse.ArgumentParser( description='Example: dream> a fantastic alien landscape -W1024 -H960 -s100 -n12', - exit_on_error=True, ) parser.add_argument('prompt', nargs='?', default='') parser.add_argument('-s', '--steps', type=int, help='Number of steps') diff --git a/frontend/dist/assets/index.cc197870.js b/frontend/dist/assets/index.cc197870.js new file mode 100644 index 0000000000..53b8ad2f2e --- /dev/null +++ b/frontend/dist/assets/index.cc197870.js @@ -0,0 +1,488 @@ +function dB(e,t){for(var n=0;nr[o]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))r(o);new MutationObserver(o=>{for(const i of o)if(i.type==="childList")for(const s of i.addedNodes)s.tagName==="LINK"&&s.rel==="modulepreload"&&r(s)}).observe(document,{childList:!0,subtree:!0});function n(o){const i={};return o.integrity&&(i.integrity=o.integrity),o.referrerpolicy&&(i.referrerPolicy=o.referrerpolicy),o.crossorigin==="use-credentials"?i.credentials="include":o.crossorigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function r(o){if(o.ep)return;o.ep=!0;const i=n(o);fetch(o.href,i)}})();var ki=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function pB(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var C={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 $f=Symbol.for("react.element"),hB=Symbol.for("react.portal"),mB=Symbol.for("react.fragment"),gB=Symbol.for("react.strict_mode"),vB=Symbol.for("react.profiler"),yB=Symbol.for("react.provider"),bB=Symbol.for("react.context"),xB=Symbol.for("react.forward_ref"),SB=Symbol.for("react.suspense"),wB=Symbol.for("react.memo"),_B=Symbol.for("react.lazy"),oC=Symbol.iterator;function CB(e){return e===null||typeof e!="object"?null:(e=oC&&e[oC]||e["@@iterator"],typeof e=="function"?e:null)}var KA={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},YA=Object.assign,XA={};function mu(e,t,n){this.props=e,this.context=t,this.refs=XA,this.updater=n||KA}mu.prototype.isReactComponent={};mu.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")};mu.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function ZA(){}ZA.prototype=mu.prototype;function hx(e,t,n){this.props=e,this.context=t,this.refs=XA,this.updater=n||KA}var mx=hx.prototype=new ZA;mx.constructor=hx;YA(mx,mu.prototype);mx.isPureReactComponent=!0;var iC=Array.isArray,QA=Object.prototype.hasOwnProperty,gx={current:null},JA={key:!0,ref:!0,__self:!0,__source:!0};function eT(e,t,n){var r,o={},i=null,s=null;if(t!=null)for(r in t.ref!==void 0&&(s=t.ref),t.key!==void 0&&(i=""+t.key),t)QA.call(t,r)&&!JA.hasOwnProperty(r)&&(o[r]=t[r]);var u=arguments.length-2;if(u===1)o.children=n;else if(1>>1,H=W[I];if(0>>1;Io(pe,q))meo(Ee,pe)?(W[I]=Ee,W[me]=q,I=me):(W[I]=pe,W[se]=q,I=se);else if(meo(Ee,q))W[I]=Ee,W[me]=q,I=me;else break e}}return X}function o(W,X){var q=W.sortIndex-X.sortIndex;return q!==0?q:W.id-X.id}if(typeof performance=="object"&&typeof performance.now=="function"){var i=performance;e.unstable_now=function(){return i.now()}}else{var s=Date,u=s.now();e.unstable_now=function(){return s.now()-u}}var c=[],f=[],p=1,h=null,m=3,v=!1,b=!1,x=!1,k=typeof setTimeout=="function"?setTimeout:null,S=typeof clearTimeout=="function"?clearTimeout:null,y=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function w(W){for(var X=n(f);X!==null;){if(X.callback===null)r(f);else if(X.startTime<=W)r(f),X.sortIndex=X.expirationTime,t(c,X);else break;X=n(f)}}function E(W){if(x=!1,w(W),!b)if(n(c)!==null)b=!0,ge(O);else{var X=n(f);X!==null&&Pe(E,X.startTime-W)}}function O(W,X){b=!1,x&&(x=!1,S(V),V=-1),v=!0;var q=m;try{for(w(X),h=n(c);h!==null&&(!(h.expirationTime>X)||W&&!te());){var I=h.callback;if(typeof I=="function"){h.callback=null,m=h.priorityLevel;var H=I(h.expirationTime<=X);X=e.unstable_now(),typeof H=="function"?h.callback=H:h===n(c)&&r(c),w(X)}else r(c);h=n(c)}if(h!==null)var ae=!0;else{var se=n(f);se!==null&&Pe(E,se.startTime-X),ae=!1}return ae}finally{h=null,m=q,v=!1}}var N=!1,D=null,V=-1,Y=5,j=-1;function te(){return!(e.unstable_now()-jW||125I?(W.sortIndex=q,t(f,W),n(c)===null&&W===n(f)&&(x?(S(V),V=-1):x=!0,Pe(E,q-I))):(W.sortIndex=H,t(c,W),b||v||(b=!0,ge(O))),W},e.unstable_shouldYield=te,e.unstable_wrapCallback=function(W){var X=m;return function(){var q=m;m=X;try{return W.apply(this,arguments)}finally{m=q}}}})(nT);(function(e){e.exports=nT})(tT);/** + * @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 rT=C.exports,Tr=tT.exports;function oe(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),e1=Object.prototype.hasOwnProperty,TB=/^[: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]*$/,lC={},uC={};function OB(e){return e1.call(uC,e)?!0:e1.call(lC,e)?!1:TB.test(e)?uC[e]=!0:(lC[e]=!0,!1)}function RB(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function IB(e,t,n,r){if(t===null||typeof t>"u"||RB(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function Xn(e,t,n,r,o,i,s){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=s}var kn={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){kn[e]=new Xn(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];kn[t]=new Xn(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){kn[e]=new Xn(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){kn[e]=new Xn(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){kn[e]=new Xn(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){kn[e]=new Xn(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){kn[e]=new Xn(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){kn[e]=new Xn(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){kn[e]=new Xn(e,5,!1,e.toLowerCase(),null,!1,!1)});var yx=/[\-:]([a-z])/g;function bx(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(yx,bx);kn[t]=new Xn(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(yx,bx);kn[t]=new Xn(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(yx,bx);kn[t]=new Xn(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){kn[e]=new Xn(e,1,!1,e.toLowerCase(),null,!1,!1)});kn.xlinkHref=new Xn("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){kn[e]=new Xn(e,1,!1,e.toLowerCase(),null,!0,!0)});function xx(e,t,n,r){var o=kn.hasOwnProperty(t)?kn[t]:null;(o!==null?o.type!==0:r||!(2u||o[s]!==i[u]){var c=` +`+o[s].replace(" at new "," at ");return e.displayName&&c.includes("")&&(c=c.replace("",e.displayName)),c}while(1<=s&&0<=u);break}}}finally{j0=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?mc(e):""}function MB(e){switch(e.tag){case 5:return mc(e.type);case 16:return mc("Lazy");case 13:return mc("Suspense");case 19:return mc("SuspenseList");case 0:case 2:case 15:return e=W0(e.type,!1),e;case 11:return e=W0(e.type.render,!1),e;case 1:return e=W0(e.type,!0),e;default:return""}}function o1(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 xl:return"Fragment";case bl:return"Portal";case t1:return"Profiler";case Sx:return"StrictMode";case n1:return"Suspense";case r1:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case aT:return(e.displayName||"Context")+".Consumer";case iT:return(e._context.displayName||"Context")+".Provider";case wx:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case _x:return t=e.displayName||null,t!==null?t:o1(e.type)||"Memo";case ua:t=e._payload,e=e._init;try{return o1(e(t))}catch{}}return null}function NB(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 o1(t);case 8:return t===Sx?"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 Ra(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function lT(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function DB(e){var t=lT(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var o=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(s){r=""+s,i.call(this,s)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(s){r=""+s},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function hp(e){e._valueTracker||(e._valueTracker=DB(e))}function uT(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=lT(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function Nh(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 i1(e,t){var n=t.checked;return Bt({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function fC(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=Ra(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function cT(e,t){t=t.checked,t!=null&&xx(e,"checked",t,!1)}function a1(e,t){cT(e,t);var n=Ra(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?s1(e,t.type,n):t.hasOwnProperty("defaultValue")&&s1(e,t.type,Ra(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function dC(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function s1(e,t,n){(t!=="number"||Nh(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var gc=Array.isArray;function Fl(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o"+t.valueOf().toString()+"",t=mp.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Kc(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Cc={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},FB=["Webkit","ms","Moz","O"];Object.keys(Cc).forEach(function(e){FB.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Cc[t]=Cc[e]})});function hT(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Cc.hasOwnProperty(e)&&Cc[e]?(""+t).trim():t+"px"}function mT(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,o=hT(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}var LB=Bt({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 c1(e,t){if(t){if(LB[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(oe(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(oe(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(oe(61))}if(t.style!=null&&typeof t.style!="object")throw Error(oe(62))}}function f1(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 d1=null;function Cx(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var p1=null,Ll=null,$l=null;function mC(e){if(e=jf(e)){if(typeof p1!="function")throw Error(oe(280));var t=e.stateNode;t&&(t=qm(t),p1(e.stateNode,e.type,t))}}function gT(e){Ll?$l?$l.push(e):$l=[e]:Ll=e}function vT(){if(Ll){var e=Ll,t=$l;if($l=Ll=null,mC(e),t)for(e=0;e>>=0,e===0?32:31-(KB(e)/YB|0)|0}var gp=64,vp=4194304;function vc(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 $h(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,o=e.suspendedLanes,i=e.pingedLanes,s=n&268435455;if(s!==0){var u=s&~o;u!==0?r=vc(u):(i&=s,i!==0&&(r=vc(i)))}else s=n&~o,s!==0?r=vc(s):i!==0&&(r=vc(i));if(r===0)return 0;if(t!==0&&t!==r&&(t&o)===0&&(o=r&-r,i=t&-t,o>=i||o===16&&(i&4194240)!==0))return t;if((r&4)!==0&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0n;n++)t.push(e);return t}function zf(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-_o(t),e[t]=n}function JB(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0=Ec),CC=String.fromCharCode(32),kC=!1;function LT(e,t){switch(e){case"keyup":return Pz.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function $T(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Sl=!1;function Tz(e,t){switch(e){case"compositionend":return $T(t);case"keypress":return t.which!==32?null:(kC=!0,CC);case"textInput":return e=t.data,e===CC&&kC?null:e;default:return null}}function Oz(e,t){if(Sl)return e==="compositionend"||!Ix&<(e,t)?(e=DT(),rh=Tx=ga=null,Sl=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=TC(n)}}function jT(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?jT(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function WT(){for(var e=window,t=Nh();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Nh(e.document)}return t}function Mx(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 Bz(e){var t=WT(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&jT(n.ownerDocument.documentElement,n)){if(r!==null&&Mx(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var o=n.textContent.length,i=Math.min(r.start,o);r=r.end===void 0?i:Math.min(r.end,o),!e.extend&&i>r&&(o=r,r=i,i=o),o=OC(n,i);var s=OC(n,r);o&&s&&(e.rangeCount!==1||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==s.node||e.focusOffset!==s.offset)&&(t=t.createRange(),t.setStart(o.node,o.offset),e.removeAllRanges(),i>r?(e.addRange(t),e.extend(s.node,s.offset)):(t.setEnd(s.node,s.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n=document.documentMode,wl=null,b1=null,Ac=null,x1=!1;function RC(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;x1||wl==null||wl!==Nh(r)||(r=wl,"selectionStart"in r&&Mx(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),Ac&&ef(Ac,r)||(Ac=r,r=Vh(b1,"onSelect"),0kl||(e.current=E1[kl],E1[kl]=null,kl--)}function wt(e,t){kl++,E1[kl]=e.current,e.current=t}var Ia={},Fn=Ba(Ia),ar=Ba(!1),ks=Ia;function Jl(e,t){var n=e.type.contextTypes;if(!n)return Ia;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o={},i;for(i in n)o[i]=t[i];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function sr(e){return e=e.childContextTypes,e!=null}function Wh(){Et(ar),Et(Fn)}function $C(e,t,n){if(Fn.current!==Ia)throw Error(oe(168));wt(Fn,t),wt(ar,n)}function QT(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var o in r)if(!(o in t))throw Error(oe(108,NB(e)||"Unknown",o));return Bt({},n,r)}function Uh(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Ia,ks=Fn.current,wt(Fn,e),wt(ar,ar.current),!0}function BC(e,t,n){var r=e.stateNode;if(!r)throw Error(oe(169));n?(e=QT(e,t,ks),r.__reactInternalMemoizedMergedChildContext=e,Et(ar),Et(Fn),wt(Fn,e)):Et(ar),wt(ar,n)}var Ci=null,Km=!1,ry=!1;function JT(e){Ci===null?Ci=[e]:Ci.push(e)}function Zz(e){Km=!0,JT(e)}function za(){if(!ry&&Ci!==null){ry=!0;var e=0,t=ut;try{var n=Ci;for(ut=1;e>=s,o-=s,Pi=1<<32-_o(t)+o|n<V?(Y=D,D=null):Y=D.sibling;var j=m(S,D,w[V],E);if(j===null){D===null&&(D=Y);break}e&&D&&j.alternate===null&&t(S,D),y=i(j,y,V),N===null?O=j:N.sibling=j,N=j,D=Y}if(V===w.length)return n(S,D),Ot&&ts(S,V),O;if(D===null){for(;VV?(Y=D,D=null):Y=D.sibling;var te=m(S,D,j.value,E);if(te===null){D===null&&(D=Y);break}e&&D&&te.alternate===null&&t(S,D),y=i(te,y,V),N===null?O=te:N.sibling=te,N=te,D=Y}if(j.done)return n(S,D),Ot&&ts(S,V),O;if(D===null){for(;!j.done;V++,j=w.next())j=h(S,j.value,E),j!==null&&(y=i(j,y,V),N===null?O=j:N.sibling=j,N=j);return Ot&&ts(S,V),O}for(D=r(S,D);!j.done;V++,j=w.next())j=v(D,S,V,j.value,E),j!==null&&(e&&j.alternate!==null&&D.delete(j.key===null?V:j.key),y=i(j,y,V),N===null?O=j:N.sibling=j,N=j);return e&&D.forEach(function(Se){return t(S,Se)}),Ot&&ts(S,V),O}function k(S,y,w,E){if(typeof w=="object"&&w!==null&&w.type===xl&&w.key===null&&(w=w.props.children),typeof w=="object"&&w!==null){switch(w.$$typeof){case pp:e:{for(var O=w.key,N=y;N!==null;){if(N.key===O){if(O=w.type,O===xl){if(N.tag===7){n(S,N.sibling),y=o(N,w.props.children),y.return=S,S=y;break e}}else if(N.elementType===O||typeof O=="object"&&O!==null&&O.$$typeof===ua&&GC(O)===N.type){n(S,N.sibling),y=o(N,w.props),y.ref=ic(S,N,w),y.return=S,S=y;break e}n(S,N);break}else t(S,N);N=N.sibling}w.type===xl?(y=ys(w.props.children,S.mode,E,w.key),y.return=S,S=y):(E=fh(w.type,w.key,w.props,null,S.mode,E),E.ref=ic(S,y,w),E.return=S,S=E)}return s(S);case bl:e:{for(N=w.key;y!==null;){if(y.key===N)if(y.tag===4&&y.stateNode.containerInfo===w.containerInfo&&y.stateNode.implementation===w.implementation){n(S,y.sibling),y=o(y,w.children||[]),y.return=S,S=y;break e}else{n(S,y);break}else t(S,y);y=y.sibling}y=fy(w,S.mode,E),y.return=S,S=y}return s(S);case ua:return N=w._init,k(S,y,N(w._payload),E)}if(gc(w))return b(S,y,w,E);if(ec(w))return x(S,y,w,E);Cp(S,w)}return typeof w=="string"&&w!==""||typeof w=="number"?(w=""+w,y!==null&&y.tag===6?(n(S,y.sibling),y=o(y,w),y.return=S,S=y):(n(S,y),y=cy(w,S.mode,E),y.return=S,S=y),s(S)):n(S,y)}return k}var tu=sO(!0),lO=sO(!1),Wf={},qo=Ba(Wf),of=Ba(Wf),af=Ba(Wf);function ps(e){if(e===Wf)throw Error(oe(174));return e}function jx(e,t){switch(wt(af,t),wt(of,e),wt(qo,Wf),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:u1(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=u1(t,e)}Et(qo),wt(qo,t)}function nu(){Et(qo),Et(of),Et(af)}function uO(e){ps(af.current);var t=ps(qo.current),n=u1(t,e.type);t!==n&&(wt(of,e),wt(qo,n))}function Wx(e){of.current===e&&(Et(qo),Et(of))}var Ft=Ba(0);function Xh(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if((t.flags&128)!==0)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 oy=[];function Ux(){for(var e=0;en?n:4,e(!0);var r=iy.transition;iy.transition={};try{e(!1),t()}finally{ut=n,iy.transition=r}}function kO(){return to().memoizedState}function t8(e,t,n){var r=Aa(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},EO(e))PO(t,n);else if(n=rO(e,t,n,r),n!==null){var o=qn();Co(n,e,r,o),AO(n,t,r)}}function n8(e,t,n){var r=Aa(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(EO(e))PO(t,o);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var s=t.lastRenderedState,u=i(s,n);if(o.hasEagerState=!0,o.eagerState=u,Eo(u,s)){var c=t.interleaved;c===null?(o.next=o,zx(t)):(o.next=c.next,c.next=o),t.interleaved=o;return}}catch{}finally{}n=rO(e,t,o,r),n!==null&&(o=qn(),Co(n,e,r,o),AO(n,t,r))}}function EO(e){var t=e.alternate;return e===$t||t!==null&&t===$t}function PO(e,t){Tc=Zh=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function AO(e,t,n){if((n&4194240)!==0){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Ex(e,n)}}var Qh={readContext:eo,useCallback:On,useContext:On,useEffect:On,useImperativeHandle:On,useInsertionEffect:On,useLayoutEffect:On,useMemo:On,useReducer:On,useRef:On,useState:On,useDebugValue:On,useDeferredValue:On,useTransition:On,useMutableSource:On,useSyncExternalStore:On,useId:On,unstable_isNewReconciler:!1},r8={readContext:eo,useCallback:function(e,t){return Lo().memoizedState=[e,t===void 0?null:t],e},useContext:eo,useEffect:KC,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,sh(4194308,4,xO.bind(null,t,e),n)},useLayoutEffect:function(e,t){return sh(4194308,4,e,t)},useInsertionEffect:function(e,t){return sh(4,2,e,t)},useMemo:function(e,t){var n=Lo();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Lo();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=t8.bind(null,$t,e),[r.memoizedState,e]},useRef:function(e){var t=Lo();return e={current:e},t.memoizedState=e},useState:qC,useDebugValue:Yx,useDeferredValue:function(e){return Lo().memoizedState=e},useTransition:function(){var e=qC(!1),t=e[0];return e=e8.bind(null,e[1]),Lo().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=$t,o=Lo();if(Ot){if(n===void 0)throw Error(oe(407));n=n()}else{if(n=t(),dn===null)throw Error(oe(349));(Ps&30)!==0||dO(r,t,n)}o.memoizedState=n;var i={value:n,getSnapshot:t};return o.queue=i,KC(hO.bind(null,r,i,e),[e]),r.flags|=2048,uf(9,pO.bind(null,r,i,n,t),void 0,null),n},useId:function(){var e=Lo(),t=dn.identifierPrefix;if(Ot){var n=Ai,r=Pi;n=(r&~(1<<32-_o(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=sf++,0<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=s.createElement(n,{is:r.is}):(e=s.createElement(n),n==="select"&&(s=e,r.multiple?s.multiple=!0:r.size&&(s.size=r.size))):e=s.createElementNS(e,n),e[Vo]=t,e[rf]=r,LO(e,t,!1,!1),t.stateNode=e;e:{switch(s=f1(n,r),n){case"dialog":Ct("cancel",e),Ct("close",e),o=r;break;case"iframe":case"object":case"embed":Ct("load",e),o=r;break;case"video":case"audio":for(o=0;oou&&(t.flags|=128,r=!0,ac(i,!1),t.lanes=4194304)}else{if(!r)if(e=Xh(s),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),ac(i,!0),i.tail===null&&i.tailMode==="hidden"&&!s.alternate&&!Ot)return Rn(t),null}else 2*Gt()-i.renderingStartTime>ou&&n!==1073741824&&(t.flags|=128,r=!0,ac(i,!1),t.lanes=4194304);i.isBackwards?(s.sibling=t.child,t.child=s):(n=i.last,n!==null?n.sibling=s:t.child=s,i.last=s)}return i.tail!==null?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=Gt(),t.sibling=null,n=Ft.current,wt(Ft,r?n&1|2:n&1),t):(Rn(t),null);case 22:case 23:return tS(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&(t.mode&1)!==0?(kr&1073741824)!==0&&(Rn(t),t.subtreeFlags&6&&(t.flags|=8192)):Rn(t),null;case 24:return null;case 25:return null}throw Error(oe(156,t.tag))}function f8(e,t){switch(Dx(t),t.tag){case 1:return sr(t.type)&&Wh(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return nu(),Et(ar),Et(Fn),Ux(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 5:return Wx(t),null;case 13:if(Et(Ft),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(oe(340));eu()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Et(Ft),null;case 4:return nu(),null;case 10:return Bx(t.type._context),null;case 22:case 23:return tS(),null;case 24:return null;default:return null}}var Ep=!1,Nn=!1,d8=typeof WeakSet=="function"?WeakSet:Set,be=null;function Tl(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){jt(e,t,r)}else n.current=null}function $1(e,t,n){try{n()}catch(r){jt(e,t,r)}}var rk=!1;function p8(e,t){if(S1=Bh,e=WT(),Mx(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var o=r.anchorOffset,i=r.focusNode;r=r.focusOffset;try{n.nodeType,i.nodeType}catch{n=null;break e}var s=0,u=-1,c=-1,f=0,p=0,h=e,m=null;t:for(;;){for(var v;h!==n||o!==0&&h.nodeType!==3||(u=s+o),h!==i||r!==0&&h.nodeType!==3||(c=s+r),h.nodeType===3&&(s+=h.nodeValue.length),(v=h.firstChild)!==null;)m=h,h=v;for(;;){if(h===e)break t;if(m===n&&++f===o&&(u=s),m===i&&++p===r&&(c=s),(v=h.nextSibling)!==null)break;h=m,m=h.parentNode}h=v}n=u===-1||c===-1?null:{start:u,end:c}}else n=null}n=n||{start:0,end:0}}else n=null;for(w1={focusedElem:e,selectionRange:n},Bh=!1,be=t;be!==null;)if(t=be,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,be=e;else for(;be!==null;){t=be;try{var b=t.alternate;if((t.flags&1024)!==0)switch(t.tag){case 0:case 11:case 15:break;case 1:if(b!==null){var x=b.memoizedProps,k=b.memoizedState,S=t.stateNode,y=S.getSnapshotBeforeUpdate(t.elementType===t.type?x:yo(t.type,x),k);S.__reactInternalSnapshotBeforeUpdate=y}break;case 3:var w=t.stateNode.containerInfo;w.nodeType===1?w.textContent="":w.nodeType===9&&w.documentElement&&w.removeChild(w.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(oe(163))}}catch(E){jt(t,t.return,E)}if(e=t.sibling,e!==null){e.return=t.return,be=e;break}be=t.return}return b=rk,rk=!1,b}function Oc(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var o=r=r.next;do{if((o.tag&e)===e){var i=o.destroy;o.destroy=void 0,i!==void 0&&$1(t,n,i)}o=o.next}while(o!==r)}}function Zm(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function B1(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function zO(e){var t=e.alternate;t!==null&&(e.alternate=null,zO(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Vo],delete t[rf],delete t[k1],delete t[Yz],delete t[Xz])),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 VO(e){return e.tag===5||e.tag===3||e.tag===4}function ok(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||VO(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 z1(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=jh));else if(r!==4&&(e=e.child,e!==null))for(z1(e,t,n),e=e.sibling;e!==null;)z1(e,t,n),e=e.sibling}function V1(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(V1(e,t,n),e=e.sibling;e!==null;)V1(e,t,n),e=e.sibling}var Sn=null,bo=!1;function ea(e,t,n){for(n=n.child;n!==null;)jO(e,t,n),n=n.sibling}function jO(e,t,n){if(Go&&typeof Go.onCommitFiberUnmount=="function")try{Go.onCommitFiberUnmount(Wm,n)}catch{}switch(n.tag){case 5:Nn||Tl(n,t);case 6:var r=Sn,o=bo;Sn=null,ea(e,t,n),Sn=r,bo=o,Sn!==null&&(bo?(e=Sn,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):Sn.removeChild(n.stateNode));break;case 18:Sn!==null&&(bo?(e=Sn,n=n.stateNode,e.nodeType===8?ny(e.parentNode,n):e.nodeType===1&&ny(e,n),Qc(e)):ny(Sn,n.stateNode));break;case 4:r=Sn,o=bo,Sn=n.stateNode.containerInfo,bo=!0,ea(e,t,n),Sn=r,bo=o;break;case 0:case 11:case 14:case 15:if(!Nn&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){o=r=r.next;do{var i=o,s=i.destroy;i=i.tag,s!==void 0&&((i&2)!==0||(i&4)!==0)&&$1(n,t,s),o=o.next}while(o!==r)}ea(e,t,n);break;case 1:if(!Nn&&(Tl(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(u){jt(n,t,u)}ea(e,t,n);break;case 21:ea(e,t,n);break;case 22:n.mode&1?(Nn=(r=Nn)||n.memoizedState!==null,ea(e,t,n),Nn=r):ea(e,t,n);break;default:ea(e,t,n)}}function ik(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new d8),t.forEach(function(r){var o=w8.bind(null,e,r);n.has(r)||(n.add(r),r.then(o,o))})}}function po(e,t){var n=t.deletions;if(n!==null)for(var r=0;ro&&(o=s),r&=~i}if(r=o,r=Gt()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*m8(r/1960))-r,10e?16:e,va===null)var r=!1;else{if(e=va,va=null,tm=0,(Xe&6)!==0)throw Error(oe(331));var o=Xe;for(Xe|=4,be=e.current;be!==null;){var i=be,s=i.child;if((be.flags&16)!==0){var u=i.deletions;if(u!==null){for(var c=0;cGt()-Jx?vs(e,0):Qx|=n),lr(e,t)}function XO(e,t){t===0&&((e.mode&1)===0?t=1:(t=vp,vp<<=1,(vp&130023424)===0&&(vp=4194304)));var n=qn();e=Ni(e,t),e!==null&&(zf(e,t,n),lr(e,n))}function S8(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),XO(e,n)}function w8(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,o=e.memoizedState;o!==null&&(n=o.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(oe(314))}r!==null&&r.delete(t),XO(e,n)}var ZO;ZO=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||ar.current)ir=!0;else{if((e.lanes&n)===0&&(t.flags&128)===0)return ir=!1,u8(e,t,n);ir=(e.flags&131072)!==0}else ir=!1,Ot&&(t.flags&1048576)!==0&&eO(t,Gh,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;lh(e,t),e=t.pendingProps;var o=Jl(t,Fn.current);zl(t,n),o=Gx(null,t,r,e,o,n);var i=qx();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,sr(r)?(i=!0,Uh(t)):i=!1,t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,Vx(t),o.updater=Ym,t.stateNode=o,o._reactInternals=t,R1(t,r,e,n),t=N1(null,t,r,!0,i,n)):(t.tag=0,Ot&&i&&Nx(t),Hn(null,t,o,n),t=t.child),t;case 16:r=t.elementType;e:{switch(lh(e,t),e=t.pendingProps,o=r._init,r=o(r._payload),t.type=r,o=t.tag=C8(r),e=yo(r,e),o){case 0:t=M1(null,t,r,e,n);break e;case 1:t=ek(null,t,r,e,n);break e;case 11:t=QC(null,t,r,e,n);break e;case 14:t=JC(null,t,r,yo(r.type,e),n);break e}throw Error(oe(306,r,""))}return t;case 0:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:yo(r,o),M1(e,t,r,o,n);case 1:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:yo(r,o),ek(e,t,r,o,n);case 3:e:{if(NO(t),e===null)throw Error(oe(387));r=t.pendingProps,i=t.memoizedState,o=i.element,oO(e,t),Yh(t,r,null,n);var s=t.memoizedState;if(r=s.element,i.isDehydrated)if(i={element:r,isDehydrated:!1,cache:s.cache,pendingSuspenseBoundaries:s.pendingSuspenseBoundaries,transitions:s.transitions},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){o=ru(Error(oe(423)),t),t=tk(e,t,r,n,o);break e}else if(r!==o){o=ru(Error(oe(424)),t),t=tk(e,t,r,n,o);break e}else for(Er=ka(t.stateNode.containerInfo.firstChild),Pr=t,Ot=!0,So=null,n=lO(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(eu(),r===o){t=Di(e,t,n);break e}Hn(e,t,r,n)}t=t.child}return t;case 5:return uO(t),e===null&&A1(t),r=t.type,o=t.pendingProps,i=e!==null?e.memoizedProps:null,s=o.children,_1(r,o)?s=null:i!==null&&_1(r,i)&&(t.flags|=32),MO(e,t),Hn(e,t,s,n),t.child;case 6:return e===null&&A1(t),null;case 13:return DO(e,t,n);case 4:return jx(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=tu(t,null,r,n):Hn(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:yo(r,o),QC(e,t,r,o,n);case 7:return Hn(e,t,t.pendingProps,n),t.child;case 8:return Hn(e,t,t.pendingProps.children,n),t.child;case 12:return Hn(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,o=t.pendingProps,i=t.memoizedProps,s=o.value,wt(qh,r._currentValue),r._currentValue=s,i!==null)if(Eo(i.value,s)){if(i.children===o.children&&!ar.current){t=Di(e,t,n);break e}}else for(i=t.child,i!==null&&(i.return=t);i!==null;){var u=i.dependencies;if(u!==null){s=i.child;for(var c=u.firstContext;c!==null;){if(c.context===r){if(i.tag===1){c=Oi(-1,n&-n),c.tag=2;var f=i.updateQueue;if(f!==null){f=f.shared;var p=f.pending;p===null?c.next=c:(c.next=p.next,p.next=c),f.pending=c}}i.lanes|=n,c=i.alternate,c!==null&&(c.lanes|=n),T1(i.return,n,t),u.lanes|=n;break}c=c.next}}else if(i.tag===10)s=i.type===t.type?null:i.child;else if(i.tag===18){if(s=i.return,s===null)throw Error(oe(341));s.lanes|=n,u=s.alternate,u!==null&&(u.lanes|=n),T1(s,n,t),s=i.sibling}else s=i.child;if(s!==null)s.return=i;else for(s=i;s!==null;){if(s===t){s=null;break}if(i=s.sibling,i!==null){i.return=s.return,s=i;break}s=s.return}i=s}Hn(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,zl(t,n),o=eo(o),r=r(o),t.flags|=1,Hn(e,t,r,n),t.child;case 14:return r=t.type,o=yo(r,t.pendingProps),o=yo(r.type,o),JC(e,t,r,o,n);case 15:return RO(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:yo(r,o),lh(e,t),t.tag=1,sr(r)?(e=!0,Uh(t)):e=!1,zl(t,n),aO(t,r,o),R1(t,r,o,n),N1(null,t,r,!0,e,n);case 19:return FO(e,t,n);case 22:return IO(e,t,n)}throw Error(oe(156,t.tag))};function QO(e,t){return CT(e,t)}function _8(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Xr(e,t,n,r){return new _8(e,t,n,r)}function rS(e){return e=e.prototype,!(!e||!e.isReactComponent)}function C8(e){if(typeof e=="function")return rS(e)?1:0;if(e!=null){if(e=e.$$typeof,e===wx)return 11;if(e===_x)return 14}return 2}function Ta(e,t){var n=e.alternate;return n===null?(n=Xr(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function fh(e,t,n,r,o,i){var s=2;if(r=e,typeof e=="function")rS(e)&&(s=1);else if(typeof e=="string")s=5;else e:switch(e){case xl:return ys(n.children,o,i,t);case Sx:s=8,o|=8;break;case t1:return e=Xr(12,n,t,o|2),e.elementType=t1,e.lanes=i,e;case n1:return e=Xr(13,n,t,o),e.elementType=n1,e.lanes=i,e;case r1:return e=Xr(19,n,t,o),e.elementType=r1,e.lanes=i,e;case sT:return Jm(n,o,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case iT:s=10;break e;case aT:s=9;break e;case wx:s=11;break e;case _x:s=14;break e;case ua:s=16,r=null;break e}throw Error(oe(130,e==null?e:typeof e,""))}return t=Xr(s,n,t,o),t.elementType=e,t.type=r,t.lanes=i,t}function ys(e,t,n,r){return e=Xr(7,e,r,t),e.lanes=n,e}function Jm(e,t,n,r){return e=Xr(22,e,r,t),e.elementType=sT,e.lanes=n,e.stateNode={isHidden:!1},e}function cy(e,t,n){return e=Xr(6,e,null,t),e.lanes=n,e}function fy(e,t,n){return t=Xr(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function k8(e,t,n,r,o){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=H0(0),this.expirationTimes=H0(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=H0(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function oS(e,t,n,r,o,i,s,u,c){return e=new k8(e,t,n,u,c),t===1?(t=1,i===!0&&(t|=8)):t=0,i=Xr(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Vx(i),e}function E8(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(t)}catch(n){console.error(n)}}t(),e.exports=Mr})(Bf);var pk=Bf.exports;Jy.createRoot=pk.createRoot,Jy.hydrateRoot=pk.hydrateRoot;var Ri=Boolean(globalThis?.document)?C.exports.useLayoutEffect:C.exports.useEffect,og={exports:{}},ig={};/** + * @license React + * react-jsx-runtime.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var R8=C.exports,I8=Symbol.for("react.element"),M8=Symbol.for("react.fragment"),N8=Object.prototype.hasOwnProperty,D8=R8.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,F8={key:!0,ref:!0,__self:!0,__source:!0};function nR(e,t,n){var r,o={},i=null,s=null;n!==void 0&&(i=""+n),t.key!==void 0&&(i=""+t.key),t.ref!==void 0&&(s=t.ref);for(r in t)N8.call(t,r)&&!F8.hasOwnProperty(r)&&(o[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps,t)o[r]===void 0&&(o[r]=t[r]);return{$$typeof:I8,type:e,key:i,ref:s,props:o,_owner:D8.current}}ig.Fragment=M8;ig.jsx=nR;ig.jsxs=nR;(function(e){e.exports=ig})(og);const fr=og.exports.Fragment,P=og.exports.jsx,ce=og.exports.jsxs;var lS=C.exports.createContext({});lS.displayName="ColorModeContext";function ag(){const e=C.exports.useContext(lS);if(e===void 0)throw new Error("useColorMode must be used within a ColorModeProvider");return e}function jl(e,t){const{colorMode:n}=ag();return n==="dark"?t:e}var Tp={light:"chakra-ui-light",dark:"chakra-ui-dark"};function L8(e={}){const{preventTransition:t=!0}=e,n={setDataset:r=>{const o=t?n.preventTransition():void 0;document.documentElement.dataset.theme=r,document.documentElement.style.colorScheme=r,o?.()},setClassName(r){document.body.classList.add(r?Tp.dark:Tp.light),document.body.classList.remove(r?Tp.light:Tp.dark)},query(){return window.matchMedia("(prefers-color-scheme: dark)")},getSystemTheme(r){return n.query().matches??r==="dark"?"dark":"light"},addListener(r){const o=n.query(),i=s=>{r(s.matches?"dark":"light")};return typeof o.addListener=="function"?o.addListener(i):o.addEventListener("change",i),()=>{typeof o.removeListener=="function"?o.removeListener(i):o.removeEventListener("change",i)}},preventTransition(){const r=document.createElement("style");return r.appendChild(document.createTextNode("*{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}")),document.head.appendChild(r),()=>{window.getComputedStyle(document.body),requestAnimationFrame(()=>{requestAnimationFrame(()=>{document.head.removeChild(r)})})}}};return n}var $8="chakra-ui-color-mode";function B8(e){return{ssr:!1,type:"localStorage",get(t){if(!globalThis?.document)return t;let n;try{n=localStorage.getItem(e)||t}catch{}return n||t},set(t){try{localStorage.setItem(e,t)}catch{}}}}var z8=B8($8),hk=()=>{};function mk(e,t){return e.type==="cookie"&&e.ssr?e.get(t):t}function rR(e){const{value:t,children:n,options:{useSystemColorMode:r,initialColorMode:o,disableTransitionOnChange:i}={},colorModeManager:s=z8}=e,u=o==="dark"?"dark":"light",[c,f]=C.exports.useState(()=>mk(s,u)),[p,h]=C.exports.useState(()=>mk(s)),{getSystemTheme:m,setClassName:v,setDataset:b,addListener:x}=C.exports.useMemo(()=>L8({preventTransition:i}),[i]),k=o==="system"&&!c?p:c,S=C.exports.useCallback(E=>{const O=E==="system"?m():E;f(O),v(O==="dark"),b(O),s.set(O)},[s,m,v,b]);Ri(()=>{o==="system"&&h(m())},[]),C.exports.useEffect(()=>{const E=s.get();if(E){S(E);return}if(o==="system"){S("system");return}S(u)},[s,u,o,S]);const y=C.exports.useCallback(()=>{S(k==="dark"?"light":"dark")},[k,S]);C.exports.useEffect(()=>{if(!!r)return x(S)},[r,x,S]);const w=C.exports.useMemo(()=>({colorMode:t??k,toggleColorMode:t?hk:y,setColorMode:t?hk:S}),[k,y,S,t]);return P(lS.Provider,{value:w,children:n})}rR.displayName="ColorModeProvider";var V8=new Set(["dark","light","system"]);function j8(e){let t=e;return V8.has(t)||(t="light"),t}function W8(e={}){const{initialColorMode:t="light",type:n="localStorage",storageKey:r="chakra-ui-color-mode"}=e,o=j8(t),i=n==="cookie",s=`(function(){try{var a=function(o){var l="(prefers-color-scheme: dark)",v=window.matchMedia(l).matches?"dark":"light",e=o==="system"?v:o,d=document.documentElement,m=document.body,i="chakra-ui-light",n="chakra-ui-dark",s=e==="dark";return m.classList.add(s?n:i),m.classList.remove(s?i:n),d.style.colorScheme=e,d.dataset.theme=e,e},u=a,h="${o}",r="${r}",t=document.cookie.match(new RegExp("(^| )".concat(r,"=([^;]+)"))),c=t?t[2]:null;c?a(c):document.cookie="".concat(r,"=").concat(a(h),"; max-age=31536000; path=/")}catch(a){}})(); + `,u=`(function(){try{var a=function(c){var v="(prefers-color-scheme: dark)",h=window.matchMedia(v).matches?"dark":"light",r=c==="system"?h:c,o=document.documentElement,s=document.body,l="chakra-ui-light",d="chakra-ui-dark",i=r==="dark";return s.classList.add(i?d:l),s.classList.remove(i?l:d),o.style.colorScheme=r,o.dataset.theme=r,r},n=a,m="${o}",e="${r}",t=localStorage.getItem(e);t?a(t):localStorage.setItem(e,a(m))}catch(a){}})(); + `;return`!${i?s:u}`.trim()}function U8(e={}){return P("script",{id:"chakra-script",dangerouslySetInnerHTML:{__html:W8(e)}})}var G1={exports:{}};(function(e,t){var n=200,r="__lodash_hash_undefined__",o=800,i=16,s=9007199254740991,u="[object Arguments]",c="[object Array]",f="[object AsyncFunction]",p="[object Boolean]",h="[object Date]",m="[object Error]",v="[object Function]",b="[object GeneratorFunction]",x="[object Map]",k="[object Number]",S="[object Null]",y="[object Object]",w="[object Proxy]",E="[object RegExp]",O="[object Set]",N="[object String]",D="[object Undefined]",V="[object WeakMap]",Y="[object ArrayBuffer]",j="[object DataView]",te="[object Float32Array]",Se="[object Float64Array]",ke="[object Int8Array]",xe="[object Int16Array]",_e="[object Int32Array]",ge="[object Uint8Array]",Pe="[object Uint8ClampedArray]",W="[object Uint16Array]",X="[object Uint32Array]",q=/[\\^$.*+?()[\]{}|]/g,I=/^\[object .+?Constructor\]$/,H=/^(?:0|[1-9]\d*)$/,ae={};ae[te]=ae[Se]=ae[ke]=ae[xe]=ae[_e]=ae[ge]=ae[Pe]=ae[W]=ae[X]=!0,ae[u]=ae[c]=ae[Y]=ae[p]=ae[j]=ae[h]=ae[m]=ae[v]=ae[x]=ae[k]=ae[y]=ae[E]=ae[O]=ae[N]=ae[V]=!1;var se=typeof ki=="object"&&ki&&ki.Object===Object&&ki,pe=typeof self=="object"&&self&&self.Object===Object&&self,me=se||pe||Function("return this")(),Ee=t&&!t.nodeType&&t,ue=Ee&&!0&&e&&!e.nodeType&&e,Ae=ue&&ue.exports===Ee,Ne=Ae&&se.process,mt=function(){try{var R=ue&&ue.require&&ue.require("util").types;return R||Ne&&Ne.binding&&Ne.binding("util")}catch{}}(),It=mt&&mt.isTypedArray;function En(R,L,U){switch(U.length){case 0:return R.call(L);case 1:return R.call(L,U[0]);case 2:return R.call(L,U[0],U[1]);case 3:return R.call(L,U[0],U[1],U[2])}return R.apply(L,U)}function ve(R,L){for(var U=-1,he=Array(R);++U-1}function hv(R,L){var U=this.__data__,he=li(U,R);return he<0?(++this.size,U.push([R,L])):U[he][1]=L,this}ao.prototype.clear=Pu,ao.prototype.delete=dv,ao.prototype.get=Au,ao.prototype.has=pv,ao.prototype.set=hv;function Wi(R){var L=-1,U=R==null?0:R.length;for(this.clear();++L1?U[je-1]:void 0,Fe=je>2?U[2]:void 0;for(st=R.length>3&&typeof st=="function"?(je--,st):void 0,Fe&&gd(U[0],U[1],Fe)&&(st=je<3?void 0:st,je=1),L=Object(L);++he-1&&R%1==0&&R0){if(++L>=o)return arguments[0]}else L=0;return R.apply(void 0,arguments)}}function Sd(R){if(R!=null){try{return Qt.call(R)}catch{}try{return R+""}catch{}}return""}function qs(R,L){return R===L||R!==R&&L!==L}var Du=Ou(function(){return arguments}())?Ou:function(R){return Ua(R)&&zt.call(R,"callee")&&!To.call(R,"callee")},Fu=Array.isArray;function Ks(R){return R!=null&&_d(R.length)&&!Lu(R)}function Mv(R){return Ua(R)&&Ks(R)}var wd=Wa||Fv;function Lu(R){if(!so(R))return!1;var L=js(R);return L==v||L==b||L==f||L==w}function _d(R){return typeof R=="number"&&R>-1&&R%1==0&&R<=s}function so(R){var L=typeof R;return R!=null&&(L=="object"||L=="function")}function Ua(R){return R!=null&&typeof R=="object"}function Nv(R){if(!Ua(R)||js(R)!=y)return!1;var L=Pn(R);if(L===null)return!0;var U=zt.call(L,"constructor")&&L.constructor;return typeof U=="function"&&U instanceof U&&Qt.call(U)==at}var Cd=It?Mt(It):sd;function Dv(R){return dd(R,kd(R))}function kd(R){return Ks(R)?kv(R,!0):Av(R)}var gt=Ws(function(R,L,U,he){ld(R,L,U,he)});function pt(R){return function(){return R}}function Ed(R){return R}function Fv(){return!1}e.exports=gt})(G1,G1.exports);const Ma=G1.exports;function Uo(e){const t=typeof e;return e!=null&&(t==="object"||t==="function")&&!Array.isArray(e)}function Rl(e,...t){return H8(e)?e(...t):e}var H8=e=>typeof e=="function",G8=e=>/!(important)?$/.test(e),gk=e=>typeof e=="string"?e.replace(/!(important)?$/,"").trim():e,q1=(e,t)=>n=>{const r=String(t),o=G8(r),i=gk(r),s=e?`${e}.${i}`:i;let u=Uo(n.__cssMap)&&s in n.__cssMap?n.__cssMap[s].varRef:t;return u=gk(u),o?`${u} !important`:u};function ff(e){const{scale:t,transform:n,compose:r}=e;return(i,s)=>{const u=q1(t,i)(s);let c=n?.(u,s)??u;return r&&(c=r(c,s)),c}}var Op=(...e)=>t=>e.reduce((n,r)=>r(n),t);function ho(e,t){return n=>{const r={property:n,scale:e};return r.transform=ff({scale:e,transform:t}),r}}var q8=({rtl:e,ltr:t})=>n=>n.direction==="rtl"?e:t;function K8(e){const{property:t,scale:n,transform:r}=e;return{scale:n,property:q8(t),transform:n?ff({scale:n,compose:r}):r}}var oR=["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 Y8(){return["translateX(var(--chakra-translate-x, 0))","translateY(var(--chakra-translate-y, 0))",...oR].join(" ")}function X8(){return["translate3d(var(--chakra-translate-x, 0), var(--chakra-translate-y, 0), 0)",...oR].join(" ")}var Z8={"--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(" ")},Q8={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 J8(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 e9={"row-reverse":{space:"--chakra-space-x-reverse",divide:"--chakra-divide-x-reverse"},"column-reverse":{space:"--chakra-space-y-reverse",divide:"--chakra-divide-y-reverse"}},iR="& > :not(style) ~ :not(style)",t9={[iR]:{marginInlineStart:"calc(var(--chakra-space-x) * calc(1 - var(--chakra-space-x-reverse)))",marginInlineEnd:"calc(var(--chakra-space-x) * var(--chakra-space-x-reverse))"}},n9={[iR]:{marginTop:"calc(var(--chakra-space-y) * calc(1 - var(--chakra-space-y-reverse)))",marginBottom:"calc(var(--chakra-space-y) * var(--chakra-space-y-reverse))"}},K1={"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"},r9=new Set(Object.values(K1)),aR=new Set(["none","-moz-initial","inherit","initial","revert","unset"]),o9=e=>e.trim();function i9(e,t){var n;if(e==null||aR.has(e))return e;const r=/(?^[a-z-A-Z]+)\((?(.*))\)/g,{type:o,values:i}=((n=r.exec(e))==null?void 0:n.groups)??{};if(!o||!i)return e;const s=o.includes("-gradient")?o:`${o}-gradient`,[u,...c]=i.split(",").map(o9).filter(Boolean);if(c?.length===0)return e;const f=u in K1?K1[u]:u;c.unshift(f);const p=c.map(h=>{if(r9.has(h))return h;const m=h.indexOf(" "),[v,b]=m!==-1?[h.substr(0,m),h.substr(m+1)]:[h],x=sR(b)?b:b&&b.split(" "),k=`colors.${v}`,S=k in t.__cssMap?t.__cssMap[k].varRef:v;return x?[S,...Array.isArray(x)?x:[x]].join(" "):S});return`${s}(${p.join(", ")})`}var sR=e=>typeof e=="string"&&e.includes("(")&&e.includes(")"),a9=(e,t)=>i9(e,t??{});function s9(e){return/^var\(--.+\)$/.test(e)}var l9=e=>{const t=parseFloat(e.toString()),n=e.toString().replace(String(t),"");return{unitless:!n,value:t,unit:n}},No=e=>t=>`${e}(${t})`,Ye={filter(e){return e!=="auto"?e:Z8},backdropFilter(e){return e!=="auto"?e:Q8},ring(e){return J8(Ye.px(e))},bgClip(e){return e==="text"?{color:"transparent",backgroundClip:"text"}:{backgroundClip:e}},transform(e){return e==="auto"?Y8():e==="auto-gpu"?X8():e},vh(e){return e==="$100vh"?"var(--chakra-vh)":e},px(e){if(e==null)return e;const{unitless:t}=l9(e);return t||typeof e=="number"?`${e}px`:e},fraction(e){return typeof e!="number"||e>1?e:`${e*100}%`},float(e,t){const n={left:"right",right:"left"};return t.direction==="rtl"?n[e]:e},degree(e){if(s9(e)||e==null)return e;const t=typeof e=="string"&&!e.endsWith("deg");return typeof e=="number"||t?`${e}deg`:e},gradient:a9,blur:No("blur"),opacity:No("opacity"),brightness:No("brightness"),contrast:No("contrast"),dropShadow:No("drop-shadow"),grayscale:No("grayscale"),hueRotate:No("hue-rotate"),invert:No("invert"),saturate:No("saturate"),sepia:No("sepia"),bgImage(e){return e==null||sR(e)||aR.has(e)?e:`url(${e})`},outline(e){const t=String(e)==="0"||String(e)==="none";return e!==null&&t?{outline:"2px solid transparent",outlineOffset:"2px"}:{outline:e}},flexDirection(e){const{space:t,divide:n}=e9[e]??{},r={flexDirection:e};return t&&(r[t]=1),n&&(r[n]=1),r}},$={borderWidths:ho("borderWidths"),borderStyles:ho("borderStyles"),colors:ho("colors"),borders:ho("borders"),radii:ho("radii",Ye.px),space:ho("space",Op(Ye.vh,Ye.px)),spaceT:ho("space",Op(Ye.vh,Ye.px)),degreeT(e){return{property:e,transform:Ye.degree}},prop(e,t,n){return{property:e,scale:t,...t&&{transform:ff({scale:t,transform:n})}}},propT(e,t){return{property:e,transform:t}},sizes:ho("sizes",Op(Ye.vh,Ye.px)),sizesT:ho("sizes",Op(Ye.vh,Ye.fraction)),shadows:ho("shadows"),logical:K8,blur:ho("blur",Ye.blur)},dh={background:$.colors("background"),backgroundColor:$.colors("backgroundColor"),backgroundImage:$.propT("backgroundImage",Ye.bgImage),backgroundSize:!0,backgroundPosition:!0,backgroundRepeat:!0,backgroundAttachment:!0,backgroundClip:{transform:Ye.bgClip},bgSize:$.prop("backgroundSize"),bgPosition:$.prop("backgroundPosition"),bg:$.colors("background"),bgColor:$.colors("backgroundColor"),bgPos:$.prop("backgroundPosition"),bgRepeat:$.prop("backgroundRepeat"),bgAttachment:$.prop("backgroundAttachment"),bgGradient:$.propT("backgroundImage",Ye.gradient),bgClip:{transform:Ye.bgClip}};Object.assign(dh,{bgImage:dh.backgroundImage,bgImg:dh.backgroundImage});var Je={border:$.borders("border"),borderWidth:$.borderWidths("borderWidth"),borderStyle:$.borderStyles("borderStyle"),borderColor:$.colors("borderColor"),borderRadius:$.radii("borderRadius"),borderTop:$.borders("borderTop"),borderBlockStart:$.borders("borderBlockStart"),borderTopLeftRadius:$.radii("borderTopLeftRadius"),borderStartStartRadius:$.logical({scale:"radii",property:{ltr:"borderTopLeftRadius",rtl:"borderTopRightRadius"}}),borderEndStartRadius:$.logical({scale:"radii",property:{ltr:"borderBottomLeftRadius",rtl:"borderBottomRightRadius"}}),borderTopRightRadius:$.radii("borderTopRightRadius"),borderStartEndRadius:$.logical({scale:"radii",property:{ltr:"borderTopRightRadius",rtl:"borderTopLeftRadius"}}),borderEndEndRadius:$.logical({scale:"radii",property:{ltr:"borderBottomRightRadius",rtl:"borderBottomLeftRadius"}}),borderRight:$.borders("borderRight"),borderInlineEnd:$.borders("borderInlineEnd"),borderBottom:$.borders("borderBottom"),borderBlockEnd:$.borders("borderBlockEnd"),borderBottomLeftRadius:$.radii("borderBottomLeftRadius"),borderBottomRightRadius:$.radii("borderBottomRightRadius"),borderLeft:$.borders("borderLeft"),borderInlineStart:{property:"borderInlineStart",scale:"borders"},borderInlineStartRadius:$.logical({scale:"radii",property:{ltr:["borderTopLeftRadius","borderBottomLeftRadius"],rtl:["borderTopRightRadius","borderBottomRightRadius"]}}),borderInlineEndRadius:$.logical({scale:"radii",property:{ltr:["borderTopRightRadius","borderBottomRightRadius"],rtl:["borderTopLeftRadius","borderBottomLeftRadius"]}}),borderX:$.borders(["borderLeft","borderRight"]),borderInline:$.borders("borderInline"),borderY:$.borders(["borderTop","borderBottom"]),borderBlock:$.borders("borderBlock"),borderTopWidth:$.borderWidths("borderTopWidth"),borderBlockStartWidth:$.borderWidths("borderBlockStartWidth"),borderTopColor:$.colors("borderTopColor"),borderBlockStartColor:$.colors("borderBlockStartColor"),borderTopStyle:$.borderStyles("borderTopStyle"),borderBlockStartStyle:$.borderStyles("borderBlockStartStyle"),borderBottomWidth:$.borderWidths("borderBottomWidth"),borderBlockEndWidth:$.borderWidths("borderBlockEndWidth"),borderBottomColor:$.colors("borderBottomColor"),borderBlockEndColor:$.colors("borderBlockEndColor"),borderBottomStyle:$.borderStyles("borderBottomStyle"),borderBlockEndStyle:$.borderStyles("borderBlockEndStyle"),borderLeftWidth:$.borderWidths("borderLeftWidth"),borderInlineStartWidth:$.borderWidths("borderInlineStartWidth"),borderLeftColor:$.colors("borderLeftColor"),borderInlineStartColor:$.colors("borderInlineStartColor"),borderLeftStyle:$.borderStyles("borderLeftStyle"),borderInlineStartStyle:$.borderStyles("borderInlineStartStyle"),borderRightWidth:$.borderWidths("borderRightWidth"),borderInlineEndWidth:$.borderWidths("borderInlineEndWidth"),borderRightColor:$.colors("borderRightColor"),borderInlineEndColor:$.colors("borderInlineEndColor"),borderRightStyle:$.borderStyles("borderRightStyle"),borderInlineEndStyle:$.borderStyles("borderInlineEndStyle"),borderTopRadius:$.radii(["borderTopLeftRadius","borderTopRightRadius"]),borderBottomRadius:$.radii(["borderBottomLeftRadius","borderBottomRightRadius"]),borderLeftRadius:$.radii(["borderTopLeftRadius","borderBottomLeftRadius"]),borderRightRadius:$.radii(["borderTopRightRadius","borderBottomRightRadius"])};Object.assign(Je,{rounded:Je.borderRadius,roundedTop:Je.borderTopRadius,roundedTopLeft:Je.borderTopLeftRadius,roundedTopRight:Je.borderTopRightRadius,roundedTopStart:Je.borderStartStartRadius,roundedTopEnd:Je.borderStartEndRadius,roundedBottom:Je.borderBottomRadius,roundedBottomLeft:Je.borderBottomLeftRadius,roundedBottomRight:Je.borderBottomRightRadius,roundedBottomStart:Je.borderEndStartRadius,roundedBottomEnd:Je.borderEndEndRadius,roundedLeft:Je.borderLeftRadius,roundedRight:Je.borderRightRadius,roundedStart:Je.borderInlineStartRadius,roundedEnd:Je.borderInlineEndRadius,borderStart:Je.borderInlineStart,borderEnd:Je.borderInlineEnd,borderTopStartRadius:Je.borderStartStartRadius,borderTopEndRadius:Je.borderStartEndRadius,borderBottomStartRadius:Je.borderEndStartRadius,borderBottomEndRadius:Je.borderEndEndRadius,borderStartRadius:Je.borderInlineStartRadius,borderEndRadius:Je.borderInlineEndRadius,borderStartWidth:Je.borderInlineStartWidth,borderEndWidth:Je.borderInlineEndWidth,borderStartColor:Je.borderInlineStartColor,borderEndColor:Je.borderInlineEndColor,borderStartStyle:Je.borderInlineStartStyle,borderEndStyle:Je.borderInlineEndStyle});var u9={color:$.colors("color"),textColor:$.colors("color"),fill:$.colors("fill"),stroke:$.colors("stroke")},Y1={boxShadow:$.shadows("boxShadow"),mixBlendMode:!0,blendMode:$.prop("mixBlendMode"),backgroundBlendMode:!0,bgBlendMode:$.prop("backgroundBlendMode"),opacity:!0};Object.assign(Y1,{shadow:Y1.boxShadow});var c9={filter:{transform:Ye.filter},blur:$.blur("--chakra-blur"),brightness:$.propT("--chakra-brightness",Ye.brightness),contrast:$.propT("--chakra-contrast",Ye.contrast),hueRotate:$.degreeT("--chakra-hue-rotate"),invert:$.propT("--chakra-invert",Ye.invert),saturate:$.propT("--chakra-saturate",Ye.saturate),dropShadow:$.propT("--chakra-drop-shadow",Ye.dropShadow),backdropFilter:{transform:Ye.backdropFilter},backdropBlur:$.blur("--chakra-backdrop-blur"),backdropBrightness:$.propT("--chakra-backdrop-brightness",Ye.brightness),backdropContrast:$.propT("--chakra-backdrop-contrast",Ye.contrast),backdropHueRotate:$.degreeT("--chakra-backdrop-hue-rotate"),backdropInvert:$.propT("--chakra-backdrop-invert",Ye.invert),backdropSaturate:$.propT("--chakra-backdrop-saturate",Ye.saturate)},om={alignItems:!0,alignContent:!0,justifyItems:!0,justifyContent:!0,flexWrap:!0,flexDirection:{transform:Ye.flexDirection},experimental_spaceX:{static:t9,transform:ff({scale:"space",transform:e=>e!==null?{"--chakra-space-x":e}:null})},experimental_spaceY:{static:n9,transform:ff({scale:"space",transform:e=>e!=null?{"--chakra-space-y":e}:null})},flex:!0,flexFlow:!0,flexGrow:!0,flexShrink:!0,flexBasis:$.sizes("flexBasis"),justifySelf:!0,alignSelf:!0,order:!0,placeItems:!0,placeContent:!0,placeSelf:!0,gap:$.space("gap"),rowGap:$.space("rowGap"),columnGap:$.space("columnGap")};Object.assign(om,{flexDir:om.flexDirection});var lR={gridGap:$.space("gridGap"),gridColumnGap:$.space("gridColumnGap"),gridRowGap:$.space("gridRowGap"),gridColumn:!0,gridRow:!0,gridAutoFlow:!0,gridAutoColumns:!0,gridColumnStart:!0,gridColumnEnd:!0,gridRowStart:!0,gridRowEnd:!0,gridAutoRows:!0,gridTemplate:!0,gridTemplateColumns:!0,gridTemplateRows:!0,gridTemplateAreas:!0,gridArea:!0},f9={appearance:!0,cursor:!0,resize:!0,userSelect:!0,pointerEvents:!0,outline:{transform:Ye.outline},outlineOffset:!0,outlineColor:$.colors("outlineColor")},qr={width:$.sizesT("width"),inlineSize:$.sizesT("inlineSize"),height:$.sizes("height"),blockSize:$.sizes("blockSize"),boxSize:$.sizes(["width","height"]),minWidth:$.sizes("minWidth"),minInlineSize:$.sizes("minInlineSize"),minHeight:$.sizes("minHeight"),minBlockSize:$.sizes("minBlockSize"),maxWidth:$.sizes("maxWidth"),maxInlineSize:$.sizes("maxInlineSize"),maxHeight:$.sizes("maxHeight"),maxBlockSize:$.sizes("maxBlockSize"),overflow:!0,overflowX:!0,overflowY:!0,overscrollBehavior:!0,overscrollBehaviorX:!0,overscrollBehaviorY:!0,display:!0,verticalAlign:!0,boxSizing:!0,boxDecorationBreak:!0,float:$.propT("float",Ye.float),objectFit:!0,objectPosition:!0,visibility:!0,isolation:!0};Object.assign(qr,{w:qr.width,h:qr.height,minW:qr.minWidth,maxW:qr.maxWidth,minH:qr.minHeight,maxH:qr.maxHeight,overscroll:qr.overscrollBehavior,overscrollX:qr.overscrollBehaviorX,overscrollY:qr.overscrollBehaviorY});var d9={listStyleType:!0,listStylePosition:!0,listStylePos:$.prop("listStylePosition"),listStyleImage:!0,listStyleImg:$.prop("listStyleImage")};function p9(e,t,n,r){const o=typeof t=="string"?t.split("."):[t];for(r=0;r{const t=new WeakMap;return(r,o,i,s)=>{if(typeof r>"u")return e(r,o,i);t.has(r)||t.set(r,new Map);const u=t.get(r);if(u.has(o))return u.get(o);const c=e(r,o,i,s);return u.set(o,c),c}},m9=h9(p9),g9={border:"0px",clip:"rect(0, 0, 0, 0)",width:"1px",height:"1px",margin:"-1px",padding:"0px",overflow:"hidden",whiteSpace:"nowrap",position:"absolute"},v9={position:"static",width:"auto",height:"auto",clip:"auto",padding:"0",margin:"0",overflow:"visible",whiteSpace:"normal"},dy=(e,t,n)=>{const r={},o=m9(e,t,{});for(const i in o)i in n&&n[i]!=null||(r[i]=o[i]);return r},y9={srOnly:{transform(e){return e===!0?g9:e==="focusable"?v9:{}}},layerStyle:{processResult:!0,transform:(e,t,n)=>dy(t,`layerStyles.${e}`,n)},textStyle:{processResult:!0,transform:(e,t,n)=>dy(t,`textStyles.${e}`,n)},apply:{processResult:!0,transform:(e,t,n)=>dy(t,e,n)}},Mc={position:!0,pos:$.prop("position"),zIndex:$.prop("zIndex","zIndices"),inset:$.spaceT("inset"),insetX:$.spaceT(["left","right"]),insetInline:$.spaceT("insetInline"),insetY:$.spaceT(["top","bottom"]),insetBlock:$.spaceT("insetBlock"),top:$.spaceT("top"),insetBlockStart:$.spaceT("insetBlockStart"),bottom:$.spaceT("bottom"),insetBlockEnd:$.spaceT("insetBlockEnd"),left:$.spaceT("left"),insetInlineStart:$.logical({scale:"space",property:{ltr:"left",rtl:"right"}}),right:$.spaceT("right"),insetInlineEnd:$.logical({scale:"space",property:{ltr:"right",rtl:"left"}})};Object.assign(Mc,{insetStart:Mc.insetInlineStart,insetEnd:Mc.insetInlineEnd});var b9={ring:{transform:Ye.ring},ringColor:$.colors("--chakra-ring-color"),ringOffset:$.prop("--chakra-ring-offset-width"),ringOffsetColor:$.colors("--chakra-ring-offset-color"),ringInset:$.prop("--chakra-ring-inset")},kt={margin:$.spaceT("margin"),marginTop:$.spaceT("marginTop"),marginBlockStart:$.spaceT("marginBlockStart"),marginRight:$.spaceT("marginRight"),marginInlineEnd:$.spaceT("marginInlineEnd"),marginBottom:$.spaceT("marginBottom"),marginBlockEnd:$.spaceT("marginBlockEnd"),marginLeft:$.spaceT("marginLeft"),marginInlineStart:$.spaceT("marginInlineStart"),marginX:$.spaceT(["marginInlineStart","marginInlineEnd"]),marginInline:$.spaceT("marginInline"),marginY:$.spaceT(["marginTop","marginBottom"]),marginBlock:$.spaceT("marginBlock"),padding:$.space("padding"),paddingTop:$.space("paddingTop"),paddingBlockStart:$.space("paddingBlockStart"),paddingRight:$.space("paddingRight"),paddingBottom:$.space("paddingBottom"),paddingBlockEnd:$.space("paddingBlockEnd"),paddingLeft:$.space("paddingLeft"),paddingInlineStart:$.space("paddingInlineStart"),paddingInlineEnd:$.space("paddingInlineEnd"),paddingX:$.space(["paddingInlineStart","paddingInlineEnd"]),paddingInline:$.space("paddingInline"),paddingY:$.space(["paddingTop","paddingBottom"]),paddingBlock:$.space("paddingBlock")};Object.assign(kt,{m:kt.margin,mt:kt.marginTop,mr:kt.marginRight,me:kt.marginInlineEnd,marginEnd:kt.marginInlineEnd,mb:kt.marginBottom,ml:kt.marginLeft,ms:kt.marginInlineStart,marginStart:kt.marginInlineStart,mx:kt.marginX,my:kt.marginY,p:kt.padding,pt:kt.paddingTop,py:kt.paddingY,px:kt.paddingX,pb:kt.paddingBottom,pl:kt.paddingLeft,ps:kt.paddingInlineStart,paddingStart:kt.paddingInlineStart,pr:kt.paddingRight,pe:kt.paddingInlineEnd,paddingEnd:kt.paddingInlineEnd});var x9={textDecorationColor:$.colors("textDecorationColor"),textDecoration:!0,textDecor:{property:"textDecoration"},textDecorationLine:!0,textDecorationStyle:!0,textDecorationThickness:!0,textUnderlineOffset:!0,textShadow:$.shadows("textShadow")},S9={clipPath:!0,transform:$.propT("transform",Ye.transform),transformOrigin:!0,translateX:$.spaceT("--chakra-translate-x"),translateY:$.spaceT("--chakra-translate-y"),skewX:$.degreeT("--chakra-skew-x"),skewY:$.degreeT("--chakra-skew-y"),scaleX:$.prop("--chakra-scale-x"),scaleY:$.prop("--chakra-scale-y"),scale:$.prop(["--chakra-scale-x","--chakra-scale-y"]),rotate:$.degreeT("--chakra-rotate")},w9={transition:!0,transitionDelay:!0,animation:!0,willChange:!0,transitionDuration:$.prop("transitionDuration","transition.duration"),transitionProperty:$.prop("transitionProperty","transition.property"),transitionTimingFunction:$.prop("transitionTimingFunction","transition.easing")},_9={fontFamily:$.prop("fontFamily","fonts"),fontSize:$.prop("fontSize","fontSizes",Ye.px),fontWeight:$.prop("fontWeight","fontWeights"),lineHeight:$.prop("lineHeight","lineHeights"),letterSpacing:$.prop("letterSpacing","letterSpacings"),textAlign:!0,fontStyle:!0,wordBreak:!0,overflowWrap:!0,textOverflow:!0,textTransform:!0,whiteSpace:!0,noOfLines:{static:{overflow:"hidden",textOverflow:"ellipsis",display:"-webkit-box",WebkitBoxOrient:"vertical",WebkitLineClamp:"var(--chakra-line-clamp)"},property:"--chakra-line-clamp"}},C9={scrollBehavior:!0,scrollSnapAlign:!0,scrollSnapStop:!0,scrollSnapType:!0,scrollMargin:$.spaceT("scrollMargin"),scrollMarginTop:$.spaceT("scrollMarginTop"),scrollMarginBottom:$.spaceT("scrollMarginBottom"),scrollMarginLeft:$.spaceT("scrollMarginLeft"),scrollMarginRight:$.spaceT("scrollMarginRight"),scrollMarginX:$.spaceT(["scrollMarginLeft","scrollMarginRight"]),scrollMarginY:$.spaceT(["scrollMarginTop","scrollMarginBottom"]),scrollPadding:$.spaceT("scrollPadding"),scrollPaddingTop:$.spaceT("scrollPaddingTop"),scrollPaddingBottom:$.spaceT("scrollPaddingBottom"),scrollPaddingLeft:$.spaceT("scrollPaddingLeft"),scrollPaddingRight:$.spaceT("scrollPaddingRight"),scrollPaddingX:$.spaceT(["scrollPaddingLeft","scrollPaddingRight"]),scrollPaddingY:$.spaceT(["scrollPaddingTop","scrollPaddingBottom"])};function uR(e){return Uo(e)&&e.reference?e.reference:String(e)}var sg=(e,...t)=>t.map(uR).join(` ${e} `).replace(/calc/g,""),vk=(...e)=>`calc(${sg("+",...e)})`,yk=(...e)=>`calc(${sg("-",...e)})`,X1=(...e)=>`calc(${sg("*",...e)})`,bk=(...e)=>`calc(${sg("/",...e)})`,xk=e=>{const t=uR(e);return t!=null&&!Number.isNaN(parseFloat(t))?String(t).startsWith("-")?String(t).slice(1):`-${t}`:X1(t,-1)},ls=Object.assign(e=>({add:(...t)=>ls(vk(e,...t)),subtract:(...t)=>ls(yk(e,...t)),multiply:(...t)=>ls(X1(e,...t)),divide:(...t)=>ls(bk(e,...t)),negate:()=>ls(xk(e)),toString:()=>e.toString()}),{add:vk,subtract:yk,multiply:X1,divide:bk,negate:xk});function k9(e,t="-"){return e.replace(/\s+/g,t)}function E9(e){const t=k9(e.toString());return A9(P9(t))}function P9(e){return e.includes("\\.")?e:!Number.isInteger(parseFloat(e.toString()))?e.replace(".","\\."):e}function A9(e){return e.replace(/[!-,/:-@[-^`{-~]/g,"\\$&")}function T9(e,t=""){return[t,e].filter(Boolean).join("-")}function O9(e,t){return`var(${e}${t?`, ${t}`:""})`}function R9(e,t=""){return E9(`--${T9(e,t)}`)}function Va(e,t,n){const r=R9(e,n);return{variable:r,reference:O9(r,t)}}function I9(e){const t=typeof e;return e!=null&&(t==="object"||t==="function")&&!Array.isArray(e)}Object.freeze(["base","sm","md","lg","xl","2xl"]);function M9(e){const t=e==null?0:e.length;return t?e[t-1]:void 0}function N9(e){const t=parseFloat(e.toString()),n=e.toString().replace(String(t),"");return{unitless:!n,value:t,unit:n}}function Z1(e){if(e==null)return e;const{unitless:t}=N9(e);return t||typeof e=="number"?`${e}px`:e}var cR=(e,t)=>parseInt(e[1],10)>parseInt(t[1],10)?1:-1,uS=e=>Object.fromEntries(Object.entries(e).sort(cR));function Sk(e){const t=uS(e);return Object.assign(Object.values(t),t)}function D9(e){const t=Object.keys(uS(e));return new Set(t)}function wk(e){if(!e)return e;e=Z1(e)??e;const t=e.endsWith("px")?-1:-.0625;return typeof e=="number"?`${e+t}`:e.replace(/(\d+\.?\d*)/u,n=>`${parseFloat(n)+t}`)}function bc(e,t){const n=["@media screen"];return e&&n.push("and",`(min-width: ${Z1(e)})`),t&&n.push("and",`(max-width: ${Z1(t)})`),n.join(" ")}function F9(e){if(!e)return null;e.base=e.base??"0px";const t=Sk(e),n=Object.entries(e).sort(cR).map(([i,s],u,c)=>{let[,f]=c[u+1]??[];return f=parseFloat(f)>0?wk(f):void 0,{_minW:wk(s),breakpoint:i,minW:s,maxW:f,maxWQuery:bc(null,f),minWQuery:bc(s),minMaxQuery:bc(s,f)}}),r=D9(e),o=Array.from(r.values());return{keys:r,normalized:t,isResponsive(i){const s=Object.keys(i);return s.length>0&&s.every(u=>r.has(u))},asObject:uS(e),asArray:Sk(e),details:n,media:[null,...t.map(i=>bc(i)).slice(1)],toArrayValue(i){if(!I9(i))throw new Error("toArrayValue: value must be an object");const s=o.map(u=>i[u]??null);for(;M9(s)===null;)s.pop();return s},toObjectValue(i){if(!Array.isArray(i))throw new Error("toObjectValue: value must be an array");return i.reduce((s,u,c)=>{const f=o[c];return f!=null&&u!=null&&(s[f]=u),s},{})}}}var yn={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}`},ta=e=>fR(t=>e(t,"&"),"[role=group]","[data-group]",".group"),bi=e=>fR(t=>e(t,"~ &"),"[data-peer]",".peer"),fR=(e,...t)=>t.map(e).join(", "),lg={_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], &[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",_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:ta(yn.hover),_peerHover:bi(yn.hover),_groupFocus:ta(yn.focus),_peerFocus:bi(yn.focus),_groupFocusVisible:ta(yn.focusVisible),_peerFocusVisible:bi(yn.focusVisible),_groupActive:ta(yn.active),_peerActive:bi(yn.active),_groupDisabled:ta(yn.disabled),_peerDisabled:bi(yn.disabled),_groupInvalid:ta(yn.invalid),_peerInvalid:bi(yn.invalid),_groupChecked:ta(yn.checked),_peerChecked:bi(yn.checked),_groupFocusWithin:ta(yn.focusWithin),_peerFocusWithin:bi(yn.focusWithin),_peerPlaceholderShown:bi(yn.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]"},L9=Object.keys(lg);function _k(e,t){return Va(String(e).replace(/\./g,"-"),void 0,t)}function $9(e,t){let n={};const r={};for(const[o,i]of Object.entries(e)){const{isSemantic:s,value:u}=i,{variable:c,reference:f}=_k(o,t?.cssVarPrefix);if(!s){if(o.startsWith("space")){const m=o.split("."),[v,...b]=m,x=`${v}.-${b.join(".")}`,k=ls.negate(u),S=ls.negate(f);r[x]={value:k,var:c,varRef:S}}n[c]=u,r[o]={value:u,var:c,varRef:f};continue}const p=m=>{const b=[String(o).split(".")[0],m].join(".");if(!e[b])return m;const{reference:k}=_k(b,t?.cssVarPrefix);return k},h=Uo(u)?u:{default:u};n=Ma(n,Object.entries(h).reduce((m,[v,b])=>{var x;const k=p(b);if(v==="default")return m[c]=k,m;const S=((x=lg)==null?void 0:x[v])??v;return m[S]={[c]:k},m},{})),r[o]={value:f,var:c,varRef:f}}return{cssVars:n,cssMap:r}}function B9(e,t=[]){const n=Object.assign({},e);for(const r of t)r in n&&delete n[r];return n}function z9(e,t){const n={};for(const r of t)r in e&&(n[r]=e[r]);return n}var V9=["colors","borders","borderWidths","borderStyles","fonts","fontSizes","fontWeights","letterSpacings","lineHeights","radii","space","shadows","sizes","zIndices","transition","blur"];function j9(e){return z9(e,V9)}function W9(e){return e.semanticTokens}function U9(e){const{__cssMap:t,__cssVars:n,__breakpoints:r,...o}=e;return o}function H9({tokens:e,semanticTokens:t}){const n=Object.entries(Q1(e)??{}).map(([o,i])=>[o,{isSemantic:!1,value:i}]),r=Object.entries(Q1(t,1)??{}).map(([o,i])=>[o,{isSemantic:!0,value:i}]);return Object.fromEntries([...n,...r])}function Q1(e,t=1/0){return!Uo(e)&&!Array.isArray(e)||!t?e:Object.entries(e).reduce((n,[r,o])=>(Uo(o)||Array.isArray(o)?Object.entries(Q1(o,t-1)).forEach(([i,s])=>{n[`${r}.${i}`]=s}):n[r]=o,n),{})}function G9(e){var t;const n=U9(e),r=j9(n),o=W9(n),i=H9({tokens:r,semanticTokens:o}),s=(t=n.config)==null?void 0:t.cssVarPrefix,{cssMap:u,cssVars:c}=$9(i,{cssVarPrefix:s});return Object.assign(n,{__cssVars:{...{"--chakra-ring-inset":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-ring-offset-width":"0px","--chakra-ring-offset-color":"#fff","--chakra-ring-color":"rgba(66, 153, 225, 0.6)","--chakra-ring-offset-shadow":"0 0 #0000","--chakra-ring-shadow":"0 0 #0000","--chakra-space-x-reverse":"0","--chakra-space-y-reverse":"0"},...c},__cssMap:u,__breakpoints:F9(n.breakpoints)}),n}var cS=Ma({},dh,Je,u9,om,qr,c9,b9,f9,lR,y9,Mc,Y1,kt,C9,_9,x9,S9,d9,w9),q9=Object.assign({},kt,qr,om,lR,Mc),K9=Object.keys(q9),Y9=[...Object.keys(cS),...L9],X9={...cS,...lg},Z9=e=>e in X9;function Q9(e){return/^var\(--.+\)$/.test(e)}var J9=(e,t)=>e.startsWith("--")&&typeof t=="string"&&!Q9(t),e7=(e,t)=>{if(t==null)return t;const n=u=>{var c,f;return(f=(c=e.__cssMap)==null?void 0:c[u])==null?void 0:f.varRef},r=u=>n(u)??u,o=t.split(",").map(u=>u.trim()),[i,s]=o;return t=n(i)??r(s)??r(t),t};function t7(e){const{configs:t={},pseudos:n={},theme:r}=e;if(!r.__breakpoints)return()=>({});const{isResponsive:o,toArrayValue:i,media:s}=r.__breakpoints,u=(c,f=!1)=>{var p;const h=Rl(c,r);let m={};for(let v in h){let b=Rl(h[v],r);if(b==null)continue;if(Array.isArray(b)||Uo(b)&&o(b)){let y=Array.isArray(b)?b:i(b);y=y.slice(0,s.length);for(let w=0;wt=>t7({theme:t,pseudos:lg,configs:cS})(e);function Rt(e){return{definePartsStyle(t){return t},defineMultiStyleConfig(t){return{parts:e,...t}}}}function n7(e,t){if(Array.isArray(e))return e;if(Uo(e))return t(e);if(e!=null)return[e]}function r7(e,t){for(let n=t+1;n{Ma(f,{[w]:m?y[w]:{[S]:y[w]}})});continue}if(!v){m?Ma(f,y):f[S]=y;continue}f[S]=y}}return f}}function i7(e){return t=>{const{variant:n,size:r,theme:o}=t,i=o7(o);return Ma({},Rl(e.baseStyle??{},t),i(e,"sizes",r,t),i(e,"variants",n,t))}}function a7(e,t,n){var r,o;return((o=(r=e.__cssMap)==null?void 0:r[`${t}.${n}`])==null?void 0:o.varRef)??n}function yt(e){return B9(e,["styleConfig","size","variant","colorScheme"])}function s7(e){if(e.sheet)return e.sheet;for(var t=0;t0?rr(yu,--dr):0,iu--,Jt===10&&(iu=1,cg--),Jt}function Ar(){return Jt=dr2||pf(Jt)>3?"":" "}function b7(e,t){for(;--t&&Ar()&&!(Jt<48||Jt>102||Jt>57&&Jt<65||Jt>70&&Jt<97););return Uf(e,ph()+(t<6&&Ko()==32&&Ar()==32))}function eb(e){for(;Ar();)switch(Jt){case e:return dr;case 34:case 39:e!==34&&e!==39&&eb(Jt);break;case 40:e===41&&eb(e);break;case 92:Ar();break}return dr}function x7(e,t){for(;Ar()&&e+Jt!==47+10;)if(e+Jt===42+42&&Ko()===47)break;return"/*"+Uf(t,dr-1)+"*"+ug(e===47?e:Ar())}function S7(e){for(;!pf(Ko());)Ar();return Uf(e,dr)}function w7(e){return yR(mh("",null,null,null,[""],e=vR(e),0,[0],e))}function mh(e,t,n,r,o,i,s,u,c){for(var f=0,p=0,h=s,m=0,v=0,b=0,x=1,k=1,S=1,y=0,w="",E=o,O=i,N=r,D=w;k;)switch(b=y,y=Ar()){case 40:if(b!=108&&D.charCodeAt(h-1)==58){J1(D+=ot(hh(y),"&","&\f"),"&\f")!=-1&&(S=-1);break}case 34:case 39:case 91:D+=hh(y);break;case 9:case 10:case 13:case 32:D+=y7(b);break;case 92:D+=b7(ph()-1,7);continue;case 47:switch(Ko()){case 42:case 47:Rp(_7(x7(Ar(),ph()),t,n),c);break;default:D+="/"}break;case 123*x:u[f++]=Bo(D)*S;case 125*x:case 59:case 0:switch(y){case 0:case 125:k=0;case 59+p:v>0&&Bo(D)-h&&Rp(v>32?kk(D+";",r,n,h-1):kk(ot(D," ","")+";",r,n,h-2),c);break;case 59:D+=";";default:if(Rp(N=Ck(D,t,n,f,p,o,u,w,E=[],O=[],h),i),y===123)if(p===0)mh(D,t,N,N,E,i,h,u,O);else switch(m){case 100:case 109:case 115:mh(e,N,N,r&&Rp(Ck(e,N,N,0,0,o,u,w,o,E=[],h),O),o,O,h,u,r?E:O);break;default:mh(D,N,N,N,[""],O,0,u,O)}}f=p=v=0,x=S=1,w=D="",h=s;break;case 58:h=1+Bo(D),v=b;default:if(x<1){if(y==123)--x;else if(y==125&&x++==0&&v7()==125)continue}switch(D+=ug(y),y*x){case 38:S=p>0?1:(D+="\f",-1);break;case 44:u[f++]=(Bo(D)-1)*S,S=1;break;case 64:Ko()===45&&(D+=hh(Ar())),m=Ko(),p=h=Bo(w=D+=S7(ph())),y++;break;case 45:b===45&&Bo(D)==2&&(x=0)}}return i}function Ck(e,t,n,r,o,i,s,u,c,f,p){for(var h=o-1,m=o===0?i:[""],v=pS(m),b=0,x=0,k=0;b0?m[S]+" "+y:ot(y,/&\f/g,m[S])))&&(c[k++]=w);return fg(e,t,n,o===0?fS:u,c,f,p)}function _7(e,t,n){return fg(e,t,n,pR,ug(g7()),df(e,2,-2),0)}function kk(e,t,n,r){return fg(e,t,n,dS,df(e,0,r),df(e,r+1,-1),r)}function bR(e,t){switch(p7(e,t)){case 5103:return et+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return et+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return et+e+im+e+In+e+e;case 6828:case 4268:return et+e+In+e+e;case 6165:return et+e+In+"flex-"+e+e;case 5187:return et+e+ot(e,/(\w+).+(:[^]+)/,et+"box-$1$2"+In+"flex-$1$2")+e;case 5443:return et+e+In+"flex-item-"+ot(e,/flex-|-self/,"")+e;case 4675:return et+e+In+"flex-line-pack"+ot(e,/align-content|flex-|-self/,"")+e;case 5548:return et+e+In+ot(e,"shrink","negative")+e;case 5292:return et+e+In+ot(e,"basis","preferred-size")+e;case 6060:return et+"box-"+ot(e,"-grow","")+et+e+In+ot(e,"grow","positive")+e;case 4554:return et+ot(e,/([^-])(transform)/g,"$1"+et+"$2")+e;case 6187:return ot(ot(ot(e,/(zoom-|grab)/,et+"$1"),/(image-set)/,et+"$1"),e,"")+e;case 5495:case 3959:return ot(e,/(image-set\([^]*)/,et+"$1$`$1");case 4968:return ot(ot(e,/(.+:)(flex-)?(.*)/,et+"box-pack:$3"+In+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+et+e+e;case 4095:case 3583:case 4068:case 2532:return ot(e,/(.+)-inline(.+)/,et+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(Bo(e)-1-t>6)switch(rr(e,t+1)){case 109:if(rr(e,t+4)!==45)break;case 102:return ot(e,/(.+:)(.+)-([^]+)/,"$1"+et+"$2-$3$1"+im+(rr(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~J1(e,"stretch")?bR(ot(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(rr(e,t+1)!==115)break;case 6444:switch(rr(e,Bo(e)-3-(~J1(e,"!important")&&10))){case 107:return ot(e,":",":"+et)+e;case 101:return ot(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+et+(rr(e,14)===45?"inline-":"")+"box$3$1"+et+"$2$3$1"+In+"$2box$3")+e}break;case 5936:switch(rr(e,t+11)){case 114:return et+e+In+ot(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return et+e+In+ot(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return et+e+In+ot(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return et+e+In+e+e}return e}function Wl(e,t){for(var n="",r=pS(e),o=0;o-1&&!e.return)switch(e.type){case dS:e.return=bR(e.value,e.length);break;case hR:return Wl([lc(e,{value:ot(e.value,"@","@"+et)})],r);case fS:if(e.length)return m7(e.props,function(o){switch(h7(o,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Wl([lc(e,{props:[ot(o,/:(read-\w+)/,":"+im+"$1")]})],r);case"::placeholder":return Wl([lc(e,{props:[ot(o,/:(plac\w+)/,":"+et+"input-$1")]}),lc(e,{props:[ot(o,/:(plac\w+)/,":"+im+"$1")]}),lc(e,{props:[ot(o,/:(plac\w+)/,In+"input-$1")]})],r)}return""})}}var Ek=function(t){var n=new WeakMap;return function(r){if(n.has(r))return n.get(r);var o=t(r);return n.set(r,o),o}};function xR(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var A7=function(t,n,r){for(var o=0,i=0;o=i,i=Ko(),o===38&&i===12&&(n[r]=1),!pf(i);)Ar();return Uf(t,dr)},T7=function(t,n){var r=-1,o=44;do switch(pf(o)){case 0:o===38&&Ko()===12&&(n[r]=1),t[r]+=A7(dr-1,n,r);break;case 2:t[r]+=hh(o);break;case 4:if(o===44){t[++r]=Ko()===58?"&\f":"",n[r]=t[r].length;break}default:t[r]+=ug(o)}while(o=Ar());return t},O7=function(t,n){return yR(T7(vR(t),n))},Pk=new WeakMap,R7=function(t){if(!(t.type!=="rule"||!t.parent||t.length<1)){for(var n=t.value,r=t.parent,o=t.column===r.column&&t.line===r.line;r.type!=="rule";)if(r=r.parent,!r)return;if(!(t.props.length===1&&n.charCodeAt(0)!==58&&!Pk.get(r))&&!o){Pk.set(t,!0);for(var i=[],s=O7(n,i),u=r.props,c=0,f=0;c=4;++r,o-=4)n=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(o){case 3:t^=(e.charCodeAt(r+2)&255)<<16;case 2:t^=(e.charCodeAt(r+1)&255)<<8;case 1:t^=e.charCodeAt(r)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var H7={animationIterationCount: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},G7=/[A-Z]|^ms/g,q7=/_EMO_([^_]+?)_([^]*?)_EMO_/g,PR=function(t){return t.charCodeAt(1)===45},Ak=function(t){return t!=null&&typeof t!="boolean"},py=xR(function(e){return PR(e)?e:e.replace(G7,"-$&").toLowerCase()}),Tk=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(q7,function(r,o,i){return zo={name:o,styles:i,next:zo},o})}return H7[t]!==1&&!PR(t)&&typeof n=="number"&&n!==0?n+"px":n};function mf(e,t,n){if(n==null)return"";if(n.__emotion_styles!==void 0)return n;switch(typeof n){case"boolean":return"";case"object":{if(n.anim===1)return zo={name:n.name,styles:n.styles,next:zo},n.name;if(n.styles!==void 0){var r=n.next;if(r!==void 0)for(;r!==void 0;)zo={name:r.name,styles:r.styles,next:zo},r=r.next;var o=n.styles+";";return o}return K7(e,t,n)}case"function":{if(e!==void 0){var i=zo,s=n(e);return zo=i,mf(e,t,s)}break}}if(t==null)return n;var u=t[n];return u!==void 0?u:n}function K7(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o{t.includes(r)||(n[r]=e[r])}),n}function nV(e,t,n,r){const o=typeof t=="string"?t.split("."):[t];for(r=0;r{const t=new WeakMap;return(r,o,i,s)=>{if(typeof r>"u")return e(r,o,i);t.has(r)||t.set(r,new Map);const u=t.get(r);if(u.has(o))return u.get(o);const c=e(r,o,i,s);return u.set(o,c),c}},RR=rV(nV);function IR(e,t){const n={};return Object.keys(e).forEach(r=>{const o=e[r];t(o,r,e)&&(n[r]=o)}),n}var MR=e=>IR(e,t=>t!=null);function oV(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}var iV=oV();function NR(e,...t){return Il(e)?e(...t):e}function aV(...e){return function(n){e.some(r=>(r?.(n),n?.defaultPrevented))}}var sV=(...e)=>t=>e.reduce((n,r)=>r(n),t);Object.freeze(["base","sm","md","lg","xl","2xl"]);function lV(e={}){const{strict:t=!0,errorMessage:n="useContext: `context` is undefined. Seems you forgot to wrap component within the Provider",name:r}=e,o=C.exports.createContext(void 0);o.displayName=r;function i(){var s;const u=C.exports.useContext(o);if(!u&&t){const c=new Error(n);throw c.name="ContextError",(s=Error.captureStackTrace)==null||s.call(Error,c,i),c}return u}return[o.Provider,i,o]}var uV=/^((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)-.*))$/,cV=xR(function(e){return uV.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),fV=cV,dV=function(t){return t!=="theme"},Ik=function(t){return typeof t=="string"&&t.charCodeAt(0)>96?fV:dV},Mk=function(t,n,r){var o;if(n){var i=n.shouldForwardProp;o=t.__emotion_forwardProp&&i?function(s){return t.__emotion_forwardProp(s)&&i(s)}:i}return typeof o!="function"&&r&&(o=t.__emotion_forwardProp),o},pV=function(t){var n=t.cache,r=t.serialized,o=t.isStringTag;return kR(n,r,o),X7(function(){return ER(n,r,o)}),null},hV=function e(t,n){var r=t.__emotion_real===t,o=r&&t.__emotion_base||t,i,s;n!==void 0&&(i=n.label,s=n.target);var u=Mk(t,n,r),c=u||Ik(o),f=!c("as");return function(){var p=arguments,h=r&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(i!==void 0&&h.push("label:"+i+";"),p[0]==null||p[0].raw===void 0)h.push.apply(h,p);else{h.push(p[0][0]);for(var m=p.length,v=1;v` or ``");return e}function DR(){const e=ag(),t=yS();return{...e,theme:t}}function SV(e,t,n){if(t==null)return t;const r=o=>{var i,s;return(s=(i=e.__breakpoints)==null?void 0:i.asArray)==null?void 0:s[o]};return r(t)??r(n)??n}function wV(e,t,n){if(t==null)return t;const r=o=>{var i,s;return(s=(i=e.__cssMap)==null?void 0:i[o])==null?void 0:s.value};return r(t)??r(n)??n}function _V(e,t,n){const r=Array.isArray(t)?t:[t],o=Array.isArray(n)?n:[n];return i=>{const s=o.filter(Boolean),u=r.map((c,f)=>{if(e==="breakpoints")return SV(i,c,s[f]??c);const p=`${e}.${c}`;return wV(i,p,s[f]??c)});return Array.isArray(t)?u:u[0]}}function CV(e){const{cssVarsRoot:t,theme:n,children:r}=e,o=C.exports.useMemo(()=>G9(n),[n]);return ce(J7,{theme:o,children:[P(kV,{root:t}),r]})}function kV({root:e=":host, :root"}){const t=[e,"[data-theme]"].join(",");return P(wg,{styles:n=>({[t]:n.__cssVars})})}lV({name:"StylesContext",errorMessage:"useStyles: `styles` is undefined. Seems you forgot to wrap the components in `` "});function EV(){const{colorMode:e}=ag();return P(wg,{styles:t=>{const n=RR(t,"styles.global"),r=NR(n,{theme:t,colorMode:e});return r?dR(r)(t):void 0}})}var PV=new Set([...Y9,"textStyle","layerStyle","apply","noOfLines","focusBorderColor","errorBorderColor","as","__css","css","sx"]),AV=new Set(["htmlWidth","htmlHeight","htmlSize"]);function TV(e){return AV.has(e)||!PV.has(e)}var OV=({baseStyle:e})=>t=>{const{theme:n,css:r,__css:o,sx:i,...s}=t,u=IR(s,(h,m)=>Z9(m)),c=NR(e,t),f=Object.assign({},o,c,MR(u),i),p=dR(f)(t.theme);return r?[p,r]:p};function hy(e,t){const{baseStyle:n,...r}=t??{};r.shouldForwardProp||(r.shouldForwardProp=TV);const o=OV({baseStyle:n});return tb(e,r)(o)}function fe(e){return C.exports.forwardRef(e)}function FR(e,t={}){const{styleConfig:n,...r}=t,{theme:o,colorMode:i}=DR(),s=RR(o,`components.${e}`),u=n||s,c=Ma({theme:o,colorMode:i},u?.defaultProps??{},MR(tV(r,["children"]))),f=C.exports.useRef({});if(u){const h=i7(u)(c);xV(f.current,h)||(f.current=h)}return f.current}function Zn(e,t={}){return FR(e,t)}function Fr(e,t={}){return FR(e,t)}function RV(){const e=new Map;return new Proxy(hy,{apply(t,n,r){return hy(...r)},get(t,n){return e.has(n)||e.set(n,hy(n)),e.get(n)}})}var ie=RV();function IV(e,t){return`${e} returned \`undefined\`. Seems you forgot to wrap component within ${t}`}function Kt(e={}){const{name:t,strict:n=!0,hookName:r="useContext",providerName:o="Provider",errorMessage:i}=e,s=C.exports.createContext(void 0);s.displayName=t;function u(){var c;const f=C.exports.useContext(s);if(!f&&n){const p=new Error(i??IV(r,o));throw p.name="ContextError",(c=Error.captureStackTrace)==null||c.call(Error,p,u),p}return f}return[s.Provider,u,s]}function MV(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 Kn(...e){return t=>{e.forEach(n=>{MV(n,t)})}}function NV(...e){return C.exports.useMemo(()=>Kn(...e),e)}function Nk(e){return e.sort((t,n)=>{const r=t.compareDocumentPosition(n);if(r&Node.DOCUMENT_POSITION_FOLLOWING||r&Node.DOCUMENT_POSITION_CONTAINED_BY)return-1;if(r&Node.DOCUMENT_POSITION_PRECEDING||r&Node.DOCUMENT_POSITION_CONTAINS)return 1;if(r&Node.DOCUMENT_POSITION_DISCONNECTED||r&Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC)throw Error("Cannot sort the given nodes.");return 0})}var DV=e=>typeof e=="object"&&"nodeType"in e&&e.nodeType===Node.ELEMENT_NODE;function Dk(e,t,n){let r=e+1;return n&&r>=t&&(r=0),r}function Fk(e,t,n){let r=e-1;return n&&r<0&&(r=t),r}var nb=typeof window<"u"?C.exports.useLayoutEffect:C.exports.useEffect,am=e=>e,FV=class{descendants=new Map;register=e=>{if(e!=null)return DV(e)?this.registerNode(e):t=>{this.registerNode(t,e)}};unregister=e=>{this.descendants.delete(e);const t=Nk(Array.from(this.descendants.keys()));this.assignIndex(t)};destroy=()=>{this.descendants.clear()};assignIndex=e=>{this.descendants.forEach(t=>{const n=e.indexOf(t.node);t.index=n,t.node.dataset.index=t.index.toString()})};count=()=>this.descendants.size;enabledCount=()=>this.enabledValues().length;values=()=>Array.from(this.descendants.values()).sort((t,n)=>t.index-n.index);enabledValues=()=>this.values().filter(e=>!e.disabled);item=e=>{if(this.count()!==0)return this.values()[e]};enabledItem=e=>{if(this.enabledCount()!==0)return this.enabledValues()[e]};first=()=>this.item(0);firstEnabled=()=>this.enabledItem(0);last=()=>this.item(this.descendants.size-1);lastEnabled=()=>{const e=this.enabledValues().length-1;return this.enabledItem(e)};indexOf=e=>{var t;return e?((t=this.descendants.get(e))==null?void 0:t.index)??-1:-1};enabledIndexOf=e=>e==null?-1:this.enabledValues().findIndex(t=>t.node.isSameNode(e));next=(e,t=!0)=>{const n=Dk(e,this.count(),t);return this.item(n)};nextEnabled=(e,t=!0)=>{const n=this.item(e);if(!n)return;const r=this.enabledIndexOf(n.node),o=Dk(r,this.enabledCount(),t);return this.enabledItem(o)};prev=(e,t=!0)=>{const n=Fk(e,this.count()-1,t);return this.item(n)};prevEnabled=(e,t=!0)=>{const n=this.item(e);if(!n)return;const r=this.enabledIndexOf(n.node),o=Fk(r,this.enabledCount()-1,t);return this.enabledItem(o)};registerNode=(e,t)=>{if(!e||this.descendants.has(e))return;const n=Array.from(this.descendants.keys()).concat(e),r=Nk(n);t?.disabled&&(t.disabled=!!t.disabled);const o={node:e,index:-1,...t};this.descendants.set(e,o),this.assignIndex(r)}};function LV(){const e=C.exports.useRef(new FV);return nb(()=>()=>e.current.destroy()),e.current}var[$V,LR]=Kt({name:"DescendantsProvider",errorMessage:"useDescendantsContext must be used within DescendantsProvider"});function BV(e){const t=LR(),[n,r]=C.exports.useState(-1),o=C.exports.useRef(null);nb(()=>()=>{!o.current||t.unregister(o.current)},[]),nb(()=>{if(!o.current)return;const s=Number(o.current.dataset.index);n!=s&&!Number.isNaN(s)&&r(s)});const i=am(e?t.register(e):t.register);return{descendants:t,index:n,enabledIndex:t.enabledIndexOf(o.current),register:Kn(i,o)}}function zV(){return[am($V),()=>am(LR()),()=>LV(),o=>BV(o)]}var Yt=(...e)=>e.filter(Boolean).join(" "),Lk={path:ce("g",{stroke:"currentColor",strokeWidth:"1.5",children:[P("path",{strokeLinecap:"round",fill:"none",d:"M9,9a3,3,0,1,1,4,2.829,1.5,1.5,0,0,0-1,1.415V14.25"}),P("path",{fill:"currentColor",strokeLinecap:"round",d:"M12,17.25a.375.375,0,1,0,.375.375A.375.375,0,0,0,12,17.25h0"}),P("circle",{fill:"none",strokeMiterlimit:"10",cx:"12",cy:"12",r:"11.25"})]}),viewBox:"0 0 24 24"},Po=fe((e,t)=>{const{as:n,viewBox:r,color:o="currentColor",focusable:i=!1,children:s,className:u,__css:c,...f}=e,p=Yt("chakra-icon",u),h={w:"1em",h:"1em",display:"inline-block",lineHeight:"1em",flexShrink:0,color:o,...c},m={ref:t,focusable:i,className:p,__css:h},v=r??Lk.viewBox;if(n&&typeof n!="string")return ee.createElement(ie.svg,{as:n,...m,...f});const b=s??Lk.path;return ee.createElement(ie.svg,{verticalAlign:"middle",viewBox:v,...m,...f},b)});Po.displayName="Icon";function Dn(e,t=[]){const n=C.exports.useRef(e);return C.exports.useEffect(()=>{n.current=e}),C.exports.useCallback((...r)=>{var o;return(o=n.current)==null?void 0:o.call(n,...r)},t)}function VV(e){const{value:t,defaultValue:n,onChange:r,shouldUpdate:o=(m,v)=>m!==v}=e,i=Dn(r),s=Dn(o),[u,c]=C.exports.useState(n),f=t!==void 0,p=f?t:u,h=C.exports.useCallback(m=>{const b=typeof m=="function"?m(p):m;!s(p,b)||(f||c(b),i(b))},[f,i,p,s]);return[p,h]}const bS=C.exports.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"}),_g=C.exports.createContext({});function jV(){return C.exports.useContext(_g).visualElement}const bu=C.exports.createContext(null),Fs=typeof document<"u",sm=Fs?C.exports.useLayoutEffect:C.exports.useEffect,$R=C.exports.createContext({strict:!1});function WV(e,t,n,r){const o=jV(),i=C.exports.useContext($R),s=C.exports.useContext(bu),u=C.exports.useContext(bS).reducedMotion,c=C.exports.useRef(void 0);r=r||i.renderer,!c.current&&r&&(c.current=r(e,{visualState:t,parent:o,props:n,presenceId:s?s.id:void 0,blockInitialAnimation:s?s.initial===!1:!1,reducedMotionConfig:u}));const f=c.current;return sm(()=>{f&&f.syncRender()}),C.exports.useEffect(()=>{f&&f.animationState&&f.animationState.animateChanges()}),sm(()=>()=>f&&f.notifyUnmount(),[]),f}function Ml(e){return typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function UV(e,t,n){return C.exports.useCallback(r=>{r&&e.mount&&e.mount(r),t&&(r?t.mount(r):t.unmount()),n&&(typeof n=="function"?n(r):Ml(n)&&(n.current=r))},[t])}function vf(e){return typeof e=="string"||Array.isArray(e)}function Cg(e){return typeof e=="object"&&typeof e.start=="function"}const HV=["initial","animate","exit","whileHover","whileDrag","whileTap","whileFocus","whileInView"];function kg(e){return Cg(e.animate)||HV.some(t=>vf(e[t]))}function BR(e){return Boolean(kg(e)||e.variants)}function GV(e,t){if(kg(e)){const{initial:n,animate:r}=e;return{initial:n===!1||vf(n)?n:void 0,animate:vf(r)?r:void 0}}return e.inherit!==!1?t:{}}function qV(e){const{initial:t,animate:n}=GV(e,C.exports.useContext(_g));return C.exports.useMemo(()=>({initial:t,animate:n}),[$k(t),$k(n)])}function $k(e){return Array.isArray(e)?e.join(" "):e}const xi=e=>({isEnabled:t=>e.some(n=>!!t[n])}),yf={measureLayout:xi(["layout","layoutId","drag"]),animation:xi(["animate","exit","variants","whileHover","whileTap","whileFocus","whileDrag","whileInView"]),exit:xi(["exit"]),drag:xi(["drag","dragControls"]),focus:xi(["whileFocus"]),hover:xi(["whileHover","onHoverStart","onHoverEnd"]),tap:xi(["whileTap","onTap","onTapStart","onTapCancel"]),pan:xi(["onPan","onPanStart","onPanSessionStart","onPanEnd"]),inView:xi(["whileInView","onViewportEnter","onViewportLeave"])};function KV(e){for(const t in e)t==="projectionNodeConstructor"?yf.projectionNodeConstructor=e[t]:yf[t].Component=e[t]}function Eg(e){const t=C.exports.useRef(null);return t.current===null&&(t.current=e()),t.current}const Nc={hasAnimatedSinceResize:!0,hasEverUpdated:!1};let YV=1;function XV(){return Eg(()=>{if(Nc.hasEverUpdated)return YV++})}const xS=C.exports.createContext({});class ZV extends ee.Component{getSnapshotBeforeUpdate(){const{visualElement:t,props:n}=this.props;return t&&t.setProps(n),null}componentDidUpdate(){}render(){return this.props.children}}const zR=C.exports.createContext({}),QV=Symbol.for("motionComponentSymbol");function JV({preloadedFeatures:e,createVisualElement:t,projectionNodeConstructor:n,useRender:r,useVisualState:o,Component:i}){e&&KV(e);function s(c,f){const p={...C.exports.useContext(bS),...c,layoutId:ej(c)},{isStatic:h}=p;let m=null;const v=qV(c),b=h?void 0:XV(),x=o(c,h);if(!h&&Fs){v.visualElement=WV(i,x,p,t);const k=C.exports.useContext($R).strict,S=C.exports.useContext(zR);v.visualElement&&(m=v.visualElement.loadFeatures(p,k,e,b,n||yf.projectionNodeConstructor,S))}return ce(ZV,{visualElement:v.visualElement,props:p,children:[m,P(_g.Provider,{value:v,children:r(i,c,b,UV(x,v.visualElement,f),x,h,v.visualElement)})]})}const u=C.exports.forwardRef(s);return u[QV]=i,u}function ej({layoutId:e}){const t=C.exports.useContext(xS).id;return t&&e!==void 0?t+"-"+e:e}function tj(e){function t(r,o={}){return JV(e(r,o))}if(typeof Proxy>"u")return t;const n=new Map;return new Proxy(t,{get:(r,o)=>(n.has(o)||n.set(o,t(o)),n.get(o))})}const nj=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","svg","switch","symbol","text","tspan","use","view"];function SS(e){return typeof e!="string"||e.includes("-")?!1:!!(nj.indexOf(e)>-1||/[A-Z]/.test(e))}const lm={};function rj(e){Object.assign(lm,e)}const um=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Gf=new Set(um);function VR(e,{layout:t,layoutId:n}){return Gf.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!lm[e]||e==="opacity")}const ti=e=>!!e?.getVelocity,oj={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},ij=(e,t)=>um.indexOf(e)-um.indexOf(t);function aj({transform:e,transformKeys:t},{enableHardwareAcceleration:n=!0,allowTransformNone:r=!0},o,i){let s="";t.sort(ij);for(const u of t)s+=`${oj[u]||u}(${e[u]}) `;return n&&!e.z&&(s+="translateZ(0)"),s=s.trim(),i?s=i(e,o?"":s):r&&o&&(s="none"),s}function jR(e){return e.startsWith("--")}const sj=(e,t)=>t&&typeof e=="number"?t.transform(e):e,WR=(e,t)=>n=>Math.max(Math.min(n,t),e),Dc=e=>e%1?Number(e.toFixed(5)):e,bf=/(-)?([\d]*\.?[\d])+/g,rb=/(#[0-9a-f]{6}|#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))/gi,lj=/^(#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))$/i;function qf(e){return typeof e=="string"}const Ls={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},Fc=Object.assign(Object.assign({},Ls),{transform:WR(0,1)}),Ip=Object.assign(Object.assign({},Ls),{default:1}),Kf=e=>({test:t=>qf(t)&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),ia=Kf("deg"),Yo=Kf("%"),Ie=Kf("px"),uj=Kf("vh"),cj=Kf("vw"),Bk=Object.assign(Object.assign({},Yo),{parse:e=>Yo.parse(e)/100,transform:e=>Yo.transform(e*100)}),wS=(e,t)=>n=>Boolean(qf(n)&&lj.test(n)&&n.startsWith(e)||t&&Object.prototype.hasOwnProperty.call(n,t)),UR=(e,t,n)=>r=>{if(!qf(r))return r;const[o,i,s,u]=r.match(bf);return{[e]:parseFloat(o),[t]:parseFloat(i),[n]:parseFloat(s),alpha:u!==void 0?parseFloat(u):1}},hs={test:wS("hsl","hue"),parse:UR("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+Yo.transform(Dc(t))+", "+Yo.transform(Dc(n))+", "+Dc(Fc.transform(r))+")"},fj=WR(0,255),my=Object.assign(Object.assign({},Ls),{transform:e=>Math.round(fj(e))}),ya={test:wS("rgb","red"),parse:UR("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+my.transform(e)+", "+my.transform(t)+", "+my.transform(n)+", "+Dc(Fc.transform(r))+")"};function dj(e){let t="",n="",r="",o="";return e.length>5?(t=e.substr(1,2),n=e.substr(3,2),r=e.substr(5,2),o=e.substr(7,2)):(t=e.substr(1,1),n=e.substr(2,1),r=e.substr(3,1),o=e.substr(4,1),t+=t,n+=n,r+=r,o+=o),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:o?parseInt(o,16)/255:1}}const ob={test:wS("#"),parse:dj,transform:ya.transform},Un={test:e=>ya.test(e)||ob.test(e)||hs.test(e),parse:e=>ya.test(e)?ya.parse(e):hs.test(e)?hs.parse(e):ob.parse(e),transform:e=>qf(e)?e:e.hasOwnProperty("red")?ya.transform(e):hs.transform(e)},HR="${c}",GR="${n}";function pj(e){var t,n,r,o;return isNaN(e)&&qf(e)&&((n=(t=e.match(bf))===null||t===void 0?void 0:t.length)!==null&&n!==void 0?n:0)+((o=(r=e.match(rb))===null||r===void 0?void 0:r.length)!==null&&o!==void 0?o:0)>0}function qR(e){typeof e=="number"&&(e=`${e}`);const t=[];let n=0;const r=e.match(rb);r&&(n=r.length,e=e.replace(rb,HR),t.push(...r.map(Un.parse)));const o=e.match(bf);return o&&(e=e.replace(bf,GR),t.push(...o.map(Ls.parse))),{values:t,numColors:n,tokenised:e}}function KR(e){return qR(e).values}function YR(e){const{values:t,numColors:n,tokenised:r}=qR(e),o=t.length;return i=>{let s=r;for(let u=0;utypeof e=="number"?0:e;function mj(e){const t=KR(e);return YR(e)(t.map(hj))}const Fi={test:pj,parse:KR,createTransformer:YR,getAnimatableNone:mj},gj=new Set(["brightness","contrast","saturate","opacity"]);function vj(e){let[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(bf)||[];if(!r)return e;const o=n.replace(r,"");let i=gj.has(t)?1:0;return r!==n&&(i*=100),t+"("+i+o+")"}const yj=/([a-z-]*)\(.*?\)/g,ib=Object.assign(Object.assign({},Fi),{getAnimatableNone:e=>{const t=e.match(yj);return t?t.map(vj).join(" "):e}}),zk={...Ls,transform:Math.round},XR={borderWidth:Ie,borderTopWidth:Ie,borderRightWidth:Ie,borderBottomWidth:Ie,borderLeftWidth:Ie,borderRadius:Ie,radius:Ie,borderTopLeftRadius:Ie,borderTopRightRadius:Ie,borderBottomRightRadius:Ie,borderBottomLeftRadius:Ie,width:Ie,maxWidth:Ie,height:Ie,maxHeight:Ie,size:Ie,top:Ie,right:Ie,bottom:Ie,left:Ie,padding:Ie,paddingTop:Ie,paddingRight:Ie,paddingBottom:Ie,paddingLeft:Ie,margin:Ie,marginTop:Ie,marginRight:Ie,marginBottom:Ie,marginLeft:Ie,rotate:ia,rotateX:ia,rotateY:ia,rotateZ:ia,scale:Ip,scaleX:Ip,scaleY:Ip,scaleZ:Ip,skew:ia,skewX:ia,skewY:ia,distance:Ie,translateX:Ie,translateY:Ie,translateZ:Ie,x:Ie,y:Ie,z:Ie,perspective:Ie,transformPerspective:Ie,opacity:Fc,originX:Bk,originY:Bk,originZ:Ie,zIndex:zk,fillOpacity:Fc,strokeOpacity:Fc,numOctaves:zk};function _S(e,t,n,r){const{style:o,vars:i,transform:s,transformKeys:u,transformOrigin:c}=e;u.length=0;let f=!1,p=!1,h=!0;for(const m in t){const v=t[m];if(jR(m)){i[m]=v;continue}const b=XR[m],x=sj(v,b);if(Gf.has(m)){if(f=!0,s[m]=x,u.push(m),!h)continue;v!==(b.default||0)&&(h=!1)}else m.startsWith("origin")?(p=!0,c[m]=x):o[m]=x}if(f||r?o.transform=aj(e,n,h,r):!t.transform&&o.transform&&(o.transform="none"),p){const{originX:m="50%",originY:v="50%",originZ:b=0}=c;o.transformOrigin=`${m} ${v} ${b}`}}const CS=()=>({style:{},transform:{},transformKeys:[],transformOrigin:{},vars:{}});function ZR(e,t,n){for(const r in t)!ti(t[r])&&!VR(r,n)&&(e[r]=t[r])}function bj({transformTemplate:e},t,n){return C.exports.useMemo(()=>{const r=CS();return _S(r,t,{enableHardwareAcceleration:!n},e),Object.assign({},r.vars,r.style)},[t])}function xj(e,t,n){const r=e.style||{},o={};return ZR(o,r,e),Object.assign(o,bj(e,t,n)),e.transformValues?e.transformValues(o):o}function Sj(e,t,n){const r={},o=xj(e,t,n);return e.drag&&e.dragListener!==!1&&(r.draggable=!1,o.userSelect=o.WebkitUserSelect=o.WebkitTouchCallout="none",o.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}`),r.style=o,r}const wj=["animate","exit","variants","whileHover","whileTap","whileFocus","whileDrag","whileInView"],_j=["whileTap","onTap","onTapStart","onTapCancel"],Cj=["onPan","onPanStart","onPanSessionStart","onPanEnd"],kj=["whileInView","onViewportEnter","onViewportLeave","viewport"],Ej=new Set(["initial","style","variants","transition","transformTemplate","transformValues","custom","inherit","layout","layoutId","layoutDependency","onLayoutAnimationStart","onLayoutAnimationComplete","onLayoutMeasure","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","drag","dragControls","dragListener","dragConstraints","dragDirectionLock","dragSnapToOrigin","_dragX","_dragY","dragElastic","dragMomentum","dragPropagation","dragTransition","onHoverStart","onHoverEnd","layoutScroll",...kj,..._j,...wj,...Cj]);function cm(e){return Ej.has(e)}let QR=e=>!cm(e);function Pj(e){!e||(QR=t=>t.startsWith("on")?!cm(t):e(t))}try{Pj(require("@emotion/is-prop-valid").default)}catch{}function Aj(e,t,n){const r={};for(const o in e)(QR(o)||n===!0&&cm(o)||!t&&!cm(o)||e.draggable&&o.startsWith("onDrag"))&&(r[o]=e[o]);return r}function Vk(e,t,n){return typeof e=="string"?e:Ie.transform(t+n*e)}function Tj(e,t,n){const r=Vk(t,e.x,e.width),o=Vk(n,e.y,e.height);return`${r} ${o}`}const Oj={offset:"stroke-dashoffset",array:"stroke-dasharray"},Rj={offset:"strokeDashoffset",array:"strokeDasharray"};function Ij(e,t,n=1,r=0,o=!0){e.pathLength=1;const i=o?Oj:Rj;e[i.offset]=Ie.transform(-r);const s=Ie.transform(t),u=Ie.transform(n);e[i.array]=`${s} ${u}`}function kS(e,{attrX:t,attrY:n,originX:r,originY:o,pathLength:i,pathSpacing:s=1,pathOffset:u=0,...c},f,p){_S(e,c,f,p),e.attrs=e.style,e.style={};const{attrs:h,style:m,dimensions:v}=e;h.transform&&(v&&(m.transform=h.transform),delete h.transform),v&&(r!==void 0||o!==void 0||m.transform)&&(m.transformOrigin=Tj(v,r!==void 0?r:.5,o!==void 0?o:.5)),t!==void 0&&(h.x=t),n!==void 0&&(h.y=n),i!==void 0&&Ij(h,i,s,u,!1)}const JR=()=>({...CS(),attrs:{}});function Mj(e,t){const n=C.exports.useMemo(()=>{const r=JR();return kS(r,t,{enableHardwareAcceleration:!1},e.transformTemplate),{...r.attrs,style:{...r.style}}},[t]);if(e.style){const r={};ZR(r,e.style,e),n.style={...r,...n.style}}return n}function Nj(e=!1){return(n,r,o,i,{latestValues:s},u)=>{const f=(SS(n)?Mj:Sj)(r,s,u),h={...Aj(r,typeof n=="string",e),...f,ref:i};return o&&(h["data-projection-id"]=o),C.exports.createElement(n,h)}}const eI=e=>e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase();function tI(e,{style:t,vars:n},r,o){Object.assign(e.style,t,o&&o.getProjectionStyles(r));for(const i in n)e.style.setProperty(i,n[i])}const nI=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength"]);function rI(e,t,n,r){tI(e,t,void 0,r);for(const o in t.attrs)e.setAttribute(nI.has(o)?o:eI(o),t.attrs[o])}function ES(e){const{style:t}=e,n={};for(const r in t)(ti(t[r])||VR(r,e))&&(n[r]=t[r]);return n}function oI(e){const t=ES(e);for(const n in e)if(ti(e[n])){const r=n==="x"||n==="y"?"attr"+n.toUpperCase():n;t[r]=e[n]}return t}function iI(e,t,n,r={},o={}){return typeof t=="function"&&(t=t(n!==void 0?n:e.custom,r,o)),typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"&&(t=t(n!==void 0?n:e.custom,r,o)),t}const xf=e=>Array.isArray(e),Dj=e=>Boolean(e&&typeof e=="object"&&e.mix&&e.toValue),aI=e=>xf(e)?e[e.length-1]||0:e;function vh(e){const t=ti(e)?e.get():e;return Dj(t)?t.toValue():t}function Fj({scrapeMotionValuesFromProps:e,createRenderState:t,onMount:n},r,o,i){const s={latestValues:Lj(r,o,i,e),renderState:t()};return n&&(s.mount=u=>n(r,u,s)),s}const sI=e=>(t,n)=>{const r=C.exports.useContext(_g),o=C.exports.useContext(bu),i=()=>Fj(e,t,r,o);return n?i():Eg(i)};function Lj(e,t,n,r){const o={},i=r(e);for(const m in i)o[m]=vh(i[m]);let{initial:s,animate:u}=e;const c=kg(e),f=BR(e);t&&f&&!c&&e.inherit!==!1&&(s===void 0&&(s=t.initial),u===void 0&&(u=t.animate));let p=n?n.initial===!1:!1;p=p||s===!1;const h=p?u:s;return h&&typeof h!="boolean"&&!Cg(h)&&(Array.isArray(h)?h:[h]).forEach(v=>{const b=iI(e,v);if(!b)return;const{transitionEnd:x,transition:k,...S}=b;for(const y in S){let w=S[y];if(Array.isArray(w)){const E=p?w.length-1:0;w=w[E]}w!==null&&(o[y]=w)}for(const y in x)o[y]=x[y]}),o}const $j={useVisualState:sI({scrapeMotionValuesFromProps:oI,createRenderState:JR,onMount:(e,t,{renderState:n,latestValues:r})=>{try{n.dimensions=typeof t.getBBox=="function"?t.getBBox():t.getBoundingClientRect()}catch{n.dimensions={x:0,y:0,width:0,height:0}}kS(n,r,{enableHardwareAcceleration:!1},e.transformTemplate),rI(t,n)}})},Bj={useVisualState:sI({scrapeMotionValuesFromProps:ES,createRenderState:CS})};function zj(e,{forwardMotionProps:t=!1},n,r,o){return{...SS(e)?$j:Bj,preloadedFeatures:n,useRender:Nj(t),createVisualElement:r,projectionNodeConstructor:o,Component:e}}var St;(function(e){e.Animate="animate",e.Hover="whileHover",e.Tap="whileTap",e.Drag="whileDrag",e.Focus="whileFocus",e.InView="whileInView",e.Exit="exit"})(St||(St={}));function Pg(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}function ab(e,t,n,r){C.exports.useEffect(()=>{const o=e.current;if(n&&o)return Pg(o,t,n,r)},[e,t,n,r])}function Vj({whileFocus:e,visualElement:t}){const{animationState:n}=t,r=()=>{n&&n.setActive(St.Focus,!0)},o=()=>{n&&n.setActive(St.Focus,!1)};ab(t,"focus",e?r:void 0),ab(t,"blur",e?o:void 0)}function lI(e){return typeof PointerEvent<"u"&&e instanceof PointerEvent?e.pointerType==="mouse":e instanceof MouseEvent}function uI(e){return!!e.touches}function jj(e){return t=>{const n=t instanceof MouseEvent;(!n||n&&t.button===0)&&e(t)}}const Wj={pageX:0,pageY:0};function Uj(e,t="page"){const r=e.touches[0]||e.changedTouches[0]||Wj;return{x:r[t+"X"],y:r[t+"Y"]}}function Hj(e,t="page"){return{x:e[t+"X"],y:e[t+"Y"]}}function PS(e,t="page"){return{point:uI(e)?Uj(e,t):Hj(e,t)}}const cI=(e,t=!1)=>{const n=r=>e(r,PS(r));return t?jj(n):n},Gj=()=>Fs&&window.onpointerdown===null,qj=()=>Fs&&window.ontouchstart===null,Kj=()=>Fs&&window.onmousedown===null,Yj={pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointercancel:"mousecancel",pointerover:"mouseover",pointerout:"mouseout",pointerenter:"mouseenter",pointerleave:"mouseleave"},Xj={pointerdown:"touchstart",pointermove:"touchmove",pointerup:"touchend",pointercancel:"touchcancel"};function fI(e){return Gj()?e:qj()?Xj[e]:Kj()?Yj[e]:e}function Ul(e,t,n,r){return Pg(e,fI(t),cI(n,t==="pointerdown"),r)}function fm(e,t,n,r){return ab(e,fI(t),n&&cI(n,t==="pointerdown"),r)}function dI(e){let t=null;return()=>{const n=()=>{t=null};return t===null?(t=e,n):!1}}const jk=dI("dragHorizontal"),Wk=dI("dragVertical");function pI(e){let t=!1;if(e==="y")t=Wk();else if(e==="x")t=jk();else{const n=jk(),r=Wk();n&&r?t=()=>{n(),r()}:(n&&n(),r&&r())}return t}function hI(){const e=pI(!0);return e?(e(),!1):!0}function Uk(e,t,n){return(r,o)=>{!lI(r)||hI()||(e.animationState&&e.animationState.setActive(St.Hover,t),n&&n(r,o))}}function Zj({onHoverStart:e,onHoverEnd:t,whileHover:n,visualElement:r}){fm(r,"pointerenter",e||n?Uk(r,!0,e):void 0,{passive:!e}),fm(r,"pointerleave",t||n?Uk(r,!1,t):void 0,{passive:!t})}const mI=(e,t)=>t?e===t?!0:mI(e,t.parentElement):!1;function AS(e){return C.exports.useEffect(()=>()=>e(),[])}var jo=function(){return jo=Object.assign||function(t){for(var n,r=1,o=arguments.length;r0&&i[i.length-1])&&(f[0]===6||f[0]===2)){n=0;continue}if(f[0]===3&&(!i||f[1]>i[0]&&f[1]0)&&!(o=r.next()).done;)i.push(o.value)}catch(u){s={error:u}}finally{try{o&&!o.done&&(n=r.return)&&n.call(r)}finally{if(s)throw s.error}}return i}function sb(e,t,n){if(n||arguments.length===2)for(var r=0,o=t.length,i;rMath.min(Math.max(n,e),t),gy=.001,Jj=.01,Gk=10,eW=.05,tW=1;function nW({duration:e=800,bounce:t=.25,velocity:n=0,mass:r=1}){let o,i;Qj(e<=Gk*1e3);let s=1-t;s=pm(eW,tW,s),e=pm(Jj,Gk,e/1e3),s<1?(o=f=>{const p=f*s,h=p*e,m=p-n,v=lb(f,s),b=Math.exp(-h);return gy-m/v*b},i=f=>{const h=f*s*e,m=h*n+n,v=Math.pow(s,2)*Math.pow(f,2)*e,b=Math.exp(-h),x=lb(Math.pow(f,2),s);return(-o(f)+gy>0?-1:1)*((m-v)*b)/x}):(o=f=>{const p=Math.exp(-f*e),h=(f-n)*e+1;return-gy+p*h},i=f=>{const p=Math.exp(-f*e),h=(n-f)*(e*e);return p*h});const u=5/e,c=oW(o,i,u);if(e=e*1e3,isNaN(c))return{stiffness:100,damping:10,duration:e};{const f=Math.pow(c,2)*r;return{stiffness:f,damping:s*2*Math.sqrt(r*f),duration:e}}}const rW=12;function oW(e,t,n){let r=n;for(let o=1;oe[n]!==void 0)}function sW(e){let t=Object.assign({velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1},e);if(!qk(e,aW)&&qk(e,iW)){const n=nW(e);t=Object.assign(Object.assign(Object.assign({},t),n),{velocity:0,mass:1}),t.isResolvedFromDuration=!0}return t}function TS(e){var{from:t=0,to:n=1,restSpeed:r=2,restDelta:o}=e,i=Ag(e,["from","to","restSpeed","restDelta"]);const s={done:!1,value:t};let{stiffness:u,damping:c,mass:f,velocity:p,duration:h,isResolvedFromDuration:m}=sW(i),v=Kk,b=Kk;function x(){const k=p?-(p/1e3):0,S=n-t,y=c/(2*Math.sqrt(u*f)),w=Math.sqrt(u/f)/1e3;if(o===void 0&&(o=Math.min(Math.abs(n-t)/100,.4)),y<1){const E=lb(w,y);v=O=>{const N=Math.exp(-y*w*O);return n-N*((k+y*w*S)/E*Math.sin(E*O)+S*Math.cos(E*O))},b=O=>{const N=Math.exp(-y*w*O);return y*w*N*(Math.sin(E*O)*(k+y*w*S)/E+S*Math.cos(E*O))-N*(Math.cos(E*O)*(k+y*w*S)-E*S*Math.sin(E*O))}}else if(y===1)v=E=>n-Math.exp(-w*E)*(S+(k+w*S)*E);else{const E=w*Math.sqrt(y*y-1);v=O=>{const N=Math.exp(-y*w*O),D=Math.min(E*O,300);return n-N*((k+y*w*S)*Math.sinh(D)+E*S*Math.cosh(D))/E}}}return x(),{next:k=>{const S=v(k);if(m)s.done=k>=h;else{const y=b(k)*1e3,w=Math.abs(y)<=r,E=Math.abs(n-S)<=o;s.done=w&&E}return s.value=s.done?n:S,s},flipTarget:()=>{p=-p,[t,n]=[n,t],x()}}}TS.needsInterpolation=(e,t)=>typeof e=="string"||typeof t=="string";const Kk=e=>0,Sf=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r},Wt=(e,t,n)=>-n*e+n*t+e;function vy(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function Yk({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let o=0,i=0,s=0;if(!t)o=i=s=n;else{const u=n<.5?n*(1+t):n+t-n*t,c=2*n-u;o=vy(c,u,e+1/3),i=vy(c,u,e),s=vy(c,u,e-1/3)}return{red:Math.round(o*255),green:Math.round(i*255),blue:Math.round(s*255),alpha:r}}const lW=(e,t,n)=>{const r=e*e,o=t*t;return Math.sqrt(Math.max(0,n*(o-r)+r))},uW=[ob,ya,hs],Xk=e=>uW.find(t=>t.test(e)),gI=(e,t)=>{let n=Xk(e),r=Xk(t),o=n.parse(e),i=r.parse(t);n===hs&&(o=Yk(o),n=ya),r===hs&&(i=Yk(i),r=ya);const s=Object.assign({},o);return u=>{for(const c in s)c!=="alpha"&&(s[c]=lW(o[c],i[c],u));return s.alpha=Wt(o.alpha,i.alpha,u),n.transform(s)}},ub=e=>typeof e=="number",cW=(e,t)=>n=>t(e(n)),Tg=(...e)=>e.reduce(cW);function vI(e,t){return ub(e)?n=>Wt(e,t,n):Un.test(e)?gI(e,t):bI(e,t)}const yI=(e,t)=>{const n=[...e],r=n.length,o=e.map((i,s)=>vI(i,t[s]));return i=>{for(let s=0;s{const n=Object.assign(Object.assign({},e),t),r={};for(const o in n)e[o]!==void 0&&t[o]!==void 0&&(r[o]=vI(e[o],t[o]));return o=>{for(const i in r)n[i]=r[i](o);return n}};function Zk(e){const t=Fi.parse(e),n=t.length;let r=0,o=0,i=0;for(let s=0;s{const n=Fi.createTransformer(t),r=Zk(e),o=Zk(t);return r.numHSL===o.numHSL&&r.numRGB===o.numRGB&&r.numNumbers>=o.numNumbers?Tg(yI(r.parsed,o.parsed),n):s=>`${s>0?t:e}`},dW=(e,t)=>n=>Wt(e,t,n);function pW(e){if(typeof e=="number")return dW;if(typeof e=="string")return Un.test(e)?gI:bI;if(Array.isArray(e))return yI;if(typeof e=="object")return fW}function hW(e,t,n){const r=[],o=n||pW(e[0]),i=e.length-1;for(let s=0;sn(Sf(e,t,r))}function gW(e,t){const n=e.length,r=n-1;return o=>{let i=0,s=!1;if(o<=e[0]?s=!0:o>=e[r]&&(i=r-1,s=!0),!s){let c=1;for(;co||c===r);c++);i=c-1}const u=Sf(e[i],e[i+1],o);return t[i](u)}}function xI(e,t,{clamp:n=!0,ease:r,mixer:o}={}){const i=e.length;dm(i===t.length),dm(!r||!Array.isArray(r)||r.length===i-1),e[0]>e[i-1]&&(e=[].concat(e),t=[].concat(t),e.reverse(),t.reverse());const s=hW(t,r,o),u=i===2?mW(e,s):gW(e,s);return n?c=>u(pm(e[0],e[i-1],c)):u}const Og=e=>t=>1-e(1-t),OS=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,vW=e=>t=>Math.pow(t,e),SI=e=>t=>t*t*((e+1)*t-e),yW=e=>{const t=SI(e);return n=>(n*=2)<1?.5*t(n):.5*(2-Math.pow(2,-10*(n-1)))},wI=1.525,bW=4/11,xW=8/11,SW=9/10,RS=e=>e,IS=vW(2),wW=Og(IS),_I=OS(IS),CI=e=>1-Math.sin(Math.acos(e)),MS=Og(CI),_W=OS(MS),NS=SI(wI),CW=Og(NS),kW=OS(NS),EW=yW(wI),PW=4356/361,AW=35442/1805,TW=16061/1805,hm=e=>{if(e===1||e===0)return e;const t=e*e;return ee<.5?.5*(1-hm(1-e*2)):.5*hm(e*2-1)+.5;function IW(e,t){return e.map(()=>t||_I).splice(0,e.length-1)}function MW(e){const t=e.length;return e.map((n,r)=>r!==0?r/(t-1):0)}function NW(e,t){return e.map(n=>n*t)}function yh({from:e=0,to:t=1,ease:n,offset:r,duration:o=300}){const i={done:!1,value:e},s=Array.isArray(t)?t:[e,t],u=NW(r&&r.length===s.length?r:MW(s),o);function c(){return xI(u,s,{ease:Array.isArray(n)?n:IW(s,n)})}let f=c();return{next:p=>(i.value=f(p),i.done=p>=o,i),flipTarget:()=>{s.reverse(),f=c()}}}function DW({velocity:e=0,from:t=0,power:n=.8,timeConstant:r=350,restDelta:o=.5,modifyTarget:i}){const s={done:!1,value:t};let u=n*e;const c=t+u,f=i===void 0?c:i(c);return f!==c&&(u=f-t),{next:p=>{const h=-u*Math.exp(-p/r);return s.done=!(h>o||h<-o),s.value=s.done?f:f+h,s},flipTarget:()=>{}}}const Qk={keyframes:yh,spring:TS,decay:DW};function FW(e){if(Array.isArray(e.to))return yh;if(Qk[e.type])return Qk[e.type];const t=new Set(Object.keys(e));return t.has("ease")||t.has("duration")&&!t.has("dampingRatio")?yh:t.has("dampingRatio")||t.has("stiffness")||t.has("mass")||t.has("damping")||t.has("restSpeed")||t.has("restDelta")?TS:yh}const kI=1/60*1e3,LW=typeof performance<"u"?()=>performance.now():()=>Date.now(),EI=typeof window<"u"?e=>window.requestAnimationFrame(e):e=>setTimeout(()=>e(LW()),kI);function $W(e){let t=[],n=[],r=0,o=!1,i=!1;const s=new WeakSet,u={schedule:(c,f=!1,p=!1)=>{const h=p&&o,m=h?t:n;return f&&s.add(c),m.indexOf(c)===-1&&(m.push(c),h&&o&&(r=t.length)),c},cancel:c=>{const f=n.indexOf(c);f!==-1&&n.splice(f,1),s.delete(c)},process:c=>{if(o){i=!0;return}if(o=!0,[t,n]=[n,t],n.length=0,r=t.length,r)for(let f=0;f(e[t]=$W(()=>wf=!0),e),{}),zW=Yf.reduce((e,t)=>{const n=Rg[t];return e[t]=(r,o=!1,i=!1)=>(wf||WW(),n.schedule(r,o,i)),e},{}),VW=Yf.reduce((e,t)=>(e[t]=Rg[t].cancel,e),{});Yf.reduce((e,t)=>(e[t]=()=>Rg[t].process(Hl),e),{});const jW=e=>Rg[e].process(Hl),PI=e=>{wf=!1,Hl.delta=cb?kI:Math.max(Math.min(e-Hl.timestamp,BW),1),Hl.timestamp=e,fb=!0,Yf.forEach(jW),fb=!1,wf&&(cb=!1,EI(PI))},WW=()=>{wf=!0,cb=!0,fb||EI(PI)},UW=()=>Hl;function AI(e,t,n=0){return e-t-n}function HW(e,t,n=0,r=!0){return r?AI(t+-e,t,n):t-(e-t)+n}function GW(e,t,n,r){return r?e>=t+n:e<=-n}const qW=e=>{const t=({delta:n})=>e(n);return{start:()=>zW.update(t,!0),stop:()=>VW.update(t)}};function TI(e){var t,n,{from:r,autoplay:o=!0,driver:i=qW,elapsed:s=0,repeat:u=0,repeatType:c="loop",repeatDelay:f=0,onPlay:p,onStop:h,onComplete:m,onRepeat:v,onUpdate:b}=e,x=Ag(e,["from","autoplay","driver","elapsed","repeat","repeatType","repeatDelay","onPlay","onStop","onComplete","onRepeat","onUpdate"]);let{to:k}=x,S,y=0,w=x.duration,E,O=!1,N=!0,D;const V=FW(x);!((n=(t=V).needsInterpolation)===null||n===void 0)&&n.call(t,r,k)&&(D=xI([0,100],[r,k],{clamp:!1}),r=0,k=100);const Y=V(Object.assign(Object.assign({},x),{from:r,to:k}));function j(){y++,c==="reverse"?(N=y%2===0,s=HW(s,w,f,N)):(s=AI(s,w,f),c==="mirror"&&Y.flipTarget()),O=!1,v&&v()}function te(){S.stop(),m&&m()}function Se(xe){if(N||(xe=-xe),s+=xe,!O){const _e=Y.next(Math.max(0,s));E=_e.value,D&&(E=D(E)),O=N?_e.done:s<=0}b?.(E),O&&(y===0&&(w??(w=s)),y{h?.(),S.stop()}}}function OI(e,t){return t?e*(1e3/t):0}function KW({from:e=0,velocity:t=0,min:n,max:r,power:o=.8,timeConstant:i=750,bounceStiffness:s=500,bounceDamping:u=10,restDelta:c=1,modifyTarget:f,driver:p,onUpdate:h,onComplete:m,onStop:v}){let b;function x(w){return n!==void 0&&wr}function k(w){return n===void 0?r:r===void 0||Math.abs(n-w){var O;h?.(E),(O=w.onUpdate)===null||O===void 0||O.call(w,E)},onComplete:m,onStop:v}))}function y(w){S(Object.assign({type:"spring",stiffness:s,damping:u,restDelta:c},w))}if(x(e))y({from:e,velocity:t,to:k(e)});else{let w=o*t+e;typeof f<"u"&&(w=f(w));const E=k(w),O=E===n?-1:1;let N,D;const V=Y=>{N=D,D=Y,t=OI(Y-N,UW().delta),(O===1&&Y>E||O===-1&&Yb?.stop()}}const db=e=>e.hasOwnProperty("x")&&e.hasOwnProperty("y"),Jk=e=>db(e)&&e.hasOwnProperty("z"),Mp=(e,t)=>Math.abs(e-t);function DS(e,t){if(ub(e)&&ub(t))return Mp(e,t);if(db(e)&&db(t)){const n=Mp(e.x,t.x),r=Mp(e.y,t.y),o=Jk(e)&&Jk(t)?Mp(e.z,t.z):0;return Math.sqrt(Math.pow(n,2)+Math.pow(r,2)+Math.pow(o,2))}}const RI=(e,t)=>1-3*t+3*e,II=(e,t)=>3*t-6*e,MI=e=>3*e,mm=(e,t,n)=>((RI(t,n)*e+II(t,n))*e+MI(t))*e,NI=(e,t,n)=>3*RI(t,n)*e*e+2*II(t,n)*e+MI(t),YW=1e-7,XW=10;function ZW(e,t,n,r,o){let i,s,u=0;do s=t+(n-t)/2,i=mm(s,r,o)-e,i>0?n=s:t=s;while(Math.abs(i)>YW&&++u=JW?eU(s,h,e,n):m===0?h:ZW(s,u,u+Np,e,n)}return s=>s===0||s===1?s:mm(i(s),t,r)}function nU({onTap:e,onTapStart:t,onTapCancel:n,whileTap:r,visualElement:o}){const i=e||t||n||r,s=C.exports.useRef(!1),u=C.exports.useRef(null),c={passive:!(t||e||n||v)};function f(){u.current&&u.current(),u.current=null}function p(){return f(),s.current=!1,o.animationState&&o.animationState.setActive(St.Tap,!1),!hI()}function h(b,x){!p()||(mI(o.getInstance(),b.target)?e&&e(b,x):n&&n(b,x))}function m(b,x){!p()||n&&n(b,x)}function v(b,x){f(),!s.current&&(s.current=!0,u.current=Tg(Ul(window,"pointerup",h,c),Ul(window,"pointercancel",m,c)),o.animationState&&o.animationState.setActive(St.Tap,!0),t&&t(b,x))}fm(o,"pointerdown",i?v:void 0,c),AS(f)}const rU="production",DI=typeof process>"u"||process.env===void 0?rU:"production",eE=new Set;function FI(e,t,n){e||eE.has(t)||(console.warn(t),n&&console.warn(n),eE.add(t))}const pb=new WeakMap,yy=new WeakMap,oU=e=>{const t=pb.get(e.target);t&&t(e)},iU=e=>{e.forEach(oU)};function aU({root:e,...t}){const n=e||document;yy.has(n)||yy.set(n,{});const r=yy.get(n),o=JSON.stringify(t);return r[o]||(r[o]=new IntersectionObserver(iU,{root:e,...t})),r[o]}function sU(e,t,n){const r=aU(t);return pb.set(e,n),r.observe(e),()=>{pb.delete(e),r.unobserve(e)}}function lU({visualElement:e,whileInView:t,onViewportEnter:n,onViewportLeave:r,viewport:o={}}){const i=C.exports.useRef({hasEnteredView:!1,isInView:!1});let s=Boolean(t||n||r);o.once&&i.current.hasEnteredView&&(s=!1),(typeof IntersectionObserver>"u"?fU:cU)(s,i.current,e,o)}const uU={some:0,all:1};function cU(e,t,n,{root:r,margin:o,amount:i="some",once:s}){C.exports.useEffect(()=>{if(!e)return;const u={root:r?.current,rootMargin:o,threshold:typeof i=="number"?i:uU[i]},c=f=>{const{isIntersecting:p}=f;if(t.isInView===p||(t.isInView=p,s&&!p&&t.hasEnteredView))return;p&&(t.hasEnteredView=!0),n.animationState&&n.animationState.setActive(St.InView,p);const h=n.getProps(),m=p?h.onViewportEnter:h.onViewportLeave;m&&m(f)};return sU(n.getInstance(),u,c)},[e,r,o,i])}function fU(e,t,n,{fallback:r=!0}){C.exports.useEffect(()=>{!e||!r||(DI!=="production"&&FI(!1,"IntersectionObserver not available on this device. whileInView animations will trigger on mount."),requestAnimationFrame(()=>{t.hasEnteredView=!0;const{onViewportEnter:o}=n.getProps();o&&o(null),n.animationState&&n.animationState.setActive(St.InView,!0)}))},[e])}const ba=e=>t=>(e(t),null),dU={inView:ba(lU),tap:ba(nU),focus:ba(Vj),hover:ba(Zj)};function FS(){const e=C.exports.useContext(bu);if(e===null)return[!0,null];const{isPresent:t,onExitComplete:n,register:r}=e,o=C.exports.useId();return C.exports.useEffect(()=>r(o),[]),!t&&n?[!1,()=>n&&n(o)]:[!0]}function pU(){return hU(C.exports.useContext(bu))}function hU(e){return e===null?!0:e.isPresent}function LI(e,t){if(!Array.isArray(t))return!1;const n=t.length;if(n!==e.length)return!1;for(let r=0;re*1e3,mU={linear:RS,easeIn:IS,easeInOut:_I,easeOut:wW,circIn:CI,circInOut:_W,circOut:MS,backIn:NS,backInOut:kW,backOut:CW,anticipate:EW,bounceIn:OW,bounceInOut:RW,bounceOut:hm},tE=e=>{if(Array.isArray(e)){dm(e.length===4);const[t,n,r,o]=e;return tU(t,n,r,o)}else if(typeof e=="string")return mU[e];return e},gU=e=>Array.isArray(e)&&typeof e[0]!="number",nE=(e,t)=>e==="zIndex"?!1:!!(typeof t=="number"||Array.isArray(t)||typeof t=="string"&&Fi.test(t)&&!t.startsWith("url(")),Ja=()=>({type:"spring",stiffness:500,damping:25,restSpeed:10}),Dp=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),by=()=>({type:"keyframes",ease:"linear",duration:.3}),vU=e=>({type:"keyframes",duration:.8,values:e}),rE={x:Ja,y:Ja,z:Ja,rotate:Ja,rotateX:Ja,rotateY:Ja,rotateZ:Ja,scaleX:Dp,scaleY:Dp,scale:Dp,opacity:by,backgroundColor:by,color:by,default:Dp},yU=(e,t)=>{let n;return xf(t)?n=vU:n=rE[e]||rE.default,{to:t,...n(t)}},bU={...XR,color:Un,backgroundColor:Un,outlineColor:Un,fill:Un,stroke:Un,borderColor:Un,borderTopColor:Un,borderRightColor:Un,borderBottomColor:Un,borderLeftColor:Un,filter:ib,WebkitFilter:ib},LS=e=>bU[e];function $S(e,t){var n;let r=LS(e);return r!==ib&&(r=Fi),(n=r.getAnimatableNone)===null||n===void 0?void 0:n.call(r,t)}const xU={current:!1};function SU({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:o,repeat:i,repeatType:s,repeatDelay:u,from:c,...f}){return!!Object.keys(f).length}function wU({ease:e,times:t,yoyo:n,flip:r,loop:o,...i}){const s={...i};return t&&(s.offset=t),i.duration&&(s.duration=gm(i.duration)),i.repeatDelay&&(s.repeatDelay=gm(i.repeatDelay)),e&&(s.ease=gU(e)?e.map(tE):tE(e)),i.type==="tween"&&(s.type="keyframes"),(n||o||r)&&(n?s.repeatType="reverse":o?s.repeatType="loop":r&&(s.repeatType="mirror"),s.repeat=o||n||r||i.repeat),i.type!=="spring"&&(s.type="keyframes"),s}function _U(e,t){var n,r;return(r=(n=(BS(e,t)||{}).delay)!==null&&n!==void 0?n:e.delay)!==null&&r!==void 0?r:0}function CU(e){return Array.isArray(e.to)&&e.to[0]===null&&(e.to=[...e.to],e.to[0]=e.from),e}function kU(e,t,n){return Array.isArray(t.to)&&e.duration===void 0&&(e.duration=.8),CU(t),SU(e)||(e={...e,...yU(n,t.to)}),{...t,...wU(e)}}function EU(e,t,n,r,o){const i=BS(r,e)||{};let s=i.from!==void 0?i.from:t.get();const u=nE(e,n);s==="none"&&u&&typeof n=="string"?s=$S(e,n):oE(s)&&typeof n=="string"?s=iE(n):!Array.isArray(n)&&oE(n)&&typeof s=="string"&&(n=iE(s));const c=nE(e,s);function f(){const h={from:s,to:n,velocity:t.getVelocity(),onComplete:o,onUpdate:m=>t.set(m)};return i.type==="inertia"||i.type==="decay"?KW({...h,...i}):TI({...kU(i,h,e),onUpdate:m=>{h.onUpdate(m),i.onUpdate&&i.onUpdate(m)},onComplete:()=>{h.onComplete(),i.onComplete&&i.onComplete()}})}function p(){const h=aI(n);return t.set(h),o(),i.onUpdate&&i.onUpdate(h),i.onComplete&&i.onComplete(),{stop:()=>{}}}return!c||!u||i.type===!1?p:f}function oE(e){return e===0||typeof e=="string"&&parseFloat(e)===0&&e.indexOf(" ")===-1}function iE(e){return typeof e=="number"?0:$S("",e)}function BS(e,t){return e[t]||e.default||e}function zS(e,t,n,r={}){return xU.current&&(r={type:!1}),t.start(o=>{let i,s;const u=EU(e,t,n,r,o),c=_U(r,e),f=()=>s=u();return c?i=window.setTimeout(f,gm(c)):f(),()=>{clearTimeout(i),s&&s.stop()}})}const PU=e=>/^\-?\d*\.?\d+$/.test(e),AU=e=>/^0[^.\s]+$/.test(e),$I=1/60*1e3,TU=typeof performance<"u"?()=>performance.now():()=>Date.now(),BI=typeof window<"u"?e=>window.requestAnimationFrame(e):e=>setTimeout(()=>e(TU()),$I);function OU(e){let t=[],n=[],r=0,o=!1,i=!1;const s=new WeakSet,u={schedule:(c,f=!1,p=!1)=>{const h=p&&o,m=h?t:n;return f&&s.add(c),m.indexOf(c)===-1&&(m.push(c),h&&o&&(r=t.length)),c},cancel:c=>{const f=n.indexOf(c);f!==-1&&n.splice(f,1),s.delete(c)},process:c=>{if(o){i=!0;return}if(o=!0,[t,n]=[n,t],n.length=0,r=t.length,r)for(let f=0;f(e[t]=OU(()=>_f=!0),e),{}),Xo=Xf.reduce((e,t)=>{const n=Ig[t];return e[t]=(r,o=!1,i=!1)=>(_f||MU(),n.schedule(r,o,i)),e},{}),Cf=Xf.reduce((e,t)=>(e[t]=Ig[t].cancel,e),{}),xy=Xf.reduce((e,t)=>(e[t]=()=>Ig[t].process(Gl),e),{}),IU=e=>Ig[e].process(Gl),zI=e=>{_f=!1,Gl.delta=hb?$I:Math.max(Math.min(e-Gl.timestamp,RU),1),Gl.timestamp=e,mb=!0,Xf.forEach(IU),mb=!1,_f&&(hb=!1,BI(zI))},MU=()=>{_f=!0,hb=!0,mb||BI(zI)},gb=()=>Gl;function VS(e,t){e.indexOf(t)===-1&&e.push(t)}function jS(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}class Lc{constructor(){this.subscriptions=[]}add(t){return VS(this.subscriptions,t),()=>jS(this.subscriptions,t)}notify(t,n,r){const o=this.subscriptions.length;if(!!o)if(o===1)this.subscriptions[0](t,n,r);else for(let i=0;i!isNaN(parseFloat(e));class DU{constructor(t){this.version="7.3.5",this.timeDelta=0,this.lastUpdated=0,this.updateSubscribers=new Lc,this.velocityUpdateSubscribers=new Lc,this.renderSubscribers=new Lc,this.canTrackVelocity=!1,this.updateAndNotify=(n,r=!0)=>{this.prev=this.current,this.current=n;const{delta:o,timestamp:i}=gb();this.lastUpdated!==i&&(this.timeDelta=o,this.lastUpdated=i,Xo.postRender(this.scheduleVelocityCheck)),this.prev!==this.current&&this.updateSubscribers.notify(this.current),this.velocityUpdateSubscribers.getSize()&&this.velocityUpdateSubscribers.notify(this.getVelocity()),r&&this.renderSubscribers.notify(this.current)},this.scheduleVelocityCheck=()=>Xo.postRender(this.velocityCheck),this.velocityCheck=({timestamp:n})=>{n!==this.lastUpdated&&(this.prev=this.current,this.velocityUpdateSubscribers.notify(this.getVelocity()))},this.hasAnimated=!1,this.prev=this.current=t,this.canTrackVelocity=NU(this.current)}onChange(t){return this.updateSubscribers.add(t)}clearListeners(){this.updateSubscribers.clear()}onRenderRequest(t){return t(this.get()),this.renderSubscribers.add(t)}attach(t){this.passiveEffect=t}set(t,n=!0){!n||!this.passiveEffect?this.updateAndNotify(t,n):this.passiveEffect(t,this.updateAndNotify)}get(){return this.current}getPrevious(){return this.prev}getVelocity(){return this.canTrackVelocity?OI(parseFloat(this.current)-parseFloat(this.prev),this.timeDelta):0}start(t){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.stopAnimation=t(n)}).then(()=>this.clearAnimation())}stop(){this.stopAnimation&&this.stopAnimation(),this.clearAnimation()}isAnimating(){return!!this.stopAnimation}clearAnimation(){this.stopAnimation=null}destroy(){this.updateSubscribers.clear(),this.renderSubscribers.clear(),this.stop()}}function au(e){return new DU(e)}const VI=e=>t=>t.test(e),FU={test:e=>e==="auto",parse:e=>e},jI=[Ls,Ie,Yo,ia,cj,uj,FU],uc=e=>jI.find(VI(e)),LU=[...jI,Un,Fi],$U=e=>LU.find(VI(e));function BU(e){const t={};return e.forEachValue((n,r)=>t[r]=n.get()),t}function zU(e){const t={};return e.forEachValue((n,r)=>t[r]=n.getVelocity()),t}function Mg(e,t,n){const r=e.getProps();return iI(r,t,n!==void 0?n:r.custom,BU(e),zU(e))}function VU(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,au(n))}function jU(e,t){const n=Mg(e,t);let{transitionEnd:r={},transition:o={},...i}=n?e.makeTargetAnimatable(n,!1):{};i={...i,...r};for(const s in i){const u=aI(i[s]);VU(e,s,u)}}function WU(e,t,n){var r,o;const i=Object.keys(t).filter(u=>!e.hasValue(u)),s=i.length;if(!!s)for(let u=0;uvb(e,i,n));r=Promise.all(o)}else if(typeof t=="string")r=vb(e,t,n);else{const o=typeof t=="function"?Mg(e,t,n.custom):t;r=WI(e,o,n)}return r.then(()=>e.notifyAnimationComplete(t))}function vb(e,t,n={}){var r;const o=Mg(e,t,n.custom);let{transition:i=e.getDefaultTransition()||{}}=o||{};n.transitionOverride&&(i=n.transitionOverride);const s=o?()=>WI(e,o,n):()=>Promise.resolve(),u=!((r=e.variantChildren)===null||r===void 0)&&r.size?(f=0)=>{const{delayChildren:p=0,staggerChildren:h,staggerDirection:m}=i;return qU(e,t,p+f,h,m,n)}:()=>Promise.resolve(),{when:c}=i;if(c){const[f,p]=c==="beforeChildren"?[s,u]:[u,s];return f().then(p)}else return Promise.all([s(),u(n.delay)])}function WI(e,t,{delay:n=0,transitionOverride:r,type:o}={}){var i;let{transition:s=e.getDefaultTransition(),transitionEnd:u,...c}=e.makeTargetAnimatable(t);const f=e.getValue("willChange");r&&(s=r);const p=[],h=o&&((i=e.animationState)===null||i===void 0?void 0:i.getState()[o]);for(const m in c){const v=e.getValue(m),b=c[m];if(!v||b===void 0||h&&YU(h,m))continue;let x={delay:n,...s};e.shouldReduceMotion&&Gf.has(m)&&(x={...x,type:!1,delay:0});let k=zS(m,v,b,x);vm(f)&&(f.add(m),k=k.then(()=>f.remove(m))),p.push(k)}return Promise.all(p).then(()=>{u&&jU(e,u)})}function qU(e,t,n=0,r=0,o=1,i){const s=[],u=(e.variantChildren.size-1)*r,c=o===1?(f=0)=>f*r:(f=0)=>u-f*r;return Array.from(e.variantChildren).sort(KU).forEach((f,p)=>{s.push(vb(f,t,{...i,delay:n+c(p)}).then(()=>f.notifyAnimationComplete(t)))}),Promise.all(s)}function KU(e,t){return e.sortNodePosition(t)}function YU({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}const WS=[St.Animate,St.InView,St.Focus,St.Hover,St.Tap,St.Drag,St.Exit],XU=[...WS].reverse(),ZU=WS.length;function QU(e){return t=>Promise.all(t.map(({animation:n,options:r})=>GU(e,n,r)))}function JU(e){let t=QU(e);const n=tH();let r=!0;const o=(c,f)=>{const p=Mg(e,f);if(p){const{transition:h,transitionEnd:m,...v}=p;c={...c,...v,...m}}return c};function i(c){t=c(e)}function s(c,f){var p;const h=e.getProps(),m=e.getVariantContext(!0)||{},v=[],b=new Set;let x={},k=1/0;for(let y=0;yk&&N;const te=Array.isArray(O)?O:[O];let Se=te.reduce(o,{});D===!1&&(Se={});const{prevResolvedValues:ke={}}=E,xe={...ke,...Se},_e=ge=>{j=!0,b.delete(ge),E.needsAnimating[ge]=!0};for(const ge in xe){const Pe=Se[ge],W=ke[ge];x.hasOwnProperty(ge)||(Pe!==W?xf(Pe)&&xf(W)?!LI(Pe,W)||Y?_e(ge):E.protectedKeys[ge]=!0:Pe!==void 0?_e(ge):b.add(ge):Pe!==void 0&&b.has(ge)?_e(ge):E.protectedKeys[ge]=!0)}E.prevProp=O,E.prevResolvedValues=Se,E.isActive&&(x={...x,...Se}),r&&e.blockInitialAnimation&&(j=!1),j&&!V&&v.push(...te.map(ge=>({animation:ge,options:{type:w,...c}})))}if(b.size){const y={};b.forEach(w=>{const E=e.getBaseTarget(w);E!==void 0&&(y[w]=E)}),v.push({animation:y})}let S=Boolean(v.length);return r&&h.initial===!1&&!e.manuallyAnimateOnMount&&(S=!1),r=!1,S?t(v):Promise.resolve()}function u(c,f,p){var h;if(n[c].isActive===f)return Promise.resolve();(h=e.variantChildren)===null||h===void 0||h.forEach(v=>{var b;return(b=v.animationState)===null||b===void 0?void 0:b.setActive(c,f)}),n[c].isActive=f;const m=s(p,c);for(const v in n)n[v].protectedKeys={};return m}return{animateChanges:s,setActive:u,setAnimateFunction:i,getState:()=>n}}function eH(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!LI(t,e):!1}function es(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function tH(){return{[St.Animate]:es(!0),[St.InView]:es(),[St.Hover]:es(),[St.Tap]:es(),[St.Drag]:es(),[St.Focus]:es(),[St.Exit]:es()}}const nH={animation:ba(({visualElement:e,animate:t})=>{e.animationState||(e.animationState=JU(e)),Cg(t)&&C.exports.useEffect(()=>t.subscribe(e),[t])}),exit:ba(e=>{const{custom:t,visualElement:n}=e,[r,o]=FS(),i=C.exports.useContext(bu);C.exports.useEffect(()=>{n.isPresent=r;const s=n.animationState&&n.animationState.setActive(St.Exit,!r,{custom:i&&i.custom||t});s&&!r&&s.then(o)},[r])})};class UI{constructor(t,n,{transformPagePoint:r}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const f=wy(this.lastMoveEventInfo,this.history),p=this.startEvent!==null,h=DS(f.offset,{x:0,y:0})>=3;if(!p&&!h)return;const{point:m}=f,{timestamp:v}=gb();this.history.push({...m,timestamp:v});const{onStart:b,onMove:x}=this.handlers;p||(b&&b(this.lastMoveEvent,f),this.startEvent=this.lastMoveEvent),x&&x(this.lastMoveEvent,f)},this.handlePointerMove=(f,p)=>{if(this.lastMoveEvent=f,this.lastMoveEventInfo=Sy(p,this.transformPagePoint),lI(f)&&f.buttons===0){this.handlePointerUp(f,p);return}Xo.update(this.updatePoint,!0)},this.handlePointerUp=(f,p)=>{this.end();const{onEnd:h,onSessionEnd:m}=this.handlers,v=wy(Sy(p,this.transformPagePoint),this.history);this.startEvent&&h&&h(f,v),m&&m(f,v)},uI(t)&&t.touches.length>1)return;this.handlers=n,this.transformPagePoint=r;const o=PS(t),i=Sy(o,this.transformPagePoint),{point:s}=i,{timestamp:u}=gb();this.history=[{...s,timestamp:u}];const{onSessionStart:c}=n;c&&c(t,wy(i,this.history)),this.removeListeners=Tg(Ul(window,"pointermove",this.handlePointerMove),Ul(window,"pointerup",this.handlePointerUp),Ul(window,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),Cf.update(this.updatePoint)}}function Sy(e,t){return t?{point:t(e.point)}:e}function aE(e,t){return{x:e.x-t.x,y:e.y-t.y}}function wy({point:e},t){return{point:e,delta:aE(e,HI(t)),offset:aE(e,rH(t)),velocity:oH(t,.1)}}function rH(e){return e[0]}function HI(e){return e[e.length-1]}function oH(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const o=HI(e);for(;n>=0&&(r=e[n],!(o.timestamp-r.timestamp>gm(t)));)n--;if(!r)return{x:0,y:0};const i=(o.timestamp-r.timestamp)/1e3;if(i===0)return{x:0,y:0};const s={x:(o.x-r.x)/i,y:(o.y-r.y)/i};return s.x===1/0&&(s.x=0),s.y===1/0&&(s.y=0),s}function Or(e){return e.max-e.min}function sE(e,t=0,n=.01){return DS(e,t)n&&(e=r?Wt(n,e,r.max):Math.min(e,n)),e}function fE(e,t,n){return{min:t!==void 0?e.min+t:void 0,max:n!==void 0?e.max+n-(e.max-e.min):void 0}}function sH(e,{top:t,left:n,bottom:r,right:o}){return{x:fE(e.x,n,o),y:fE(e.y,t,r)}}function dE(e,t){let n=t.min-e.min,r=t.max-e.max;return t.max-t.minr?n=Sf(t.min,t.max-r,e.min):r>o&&(n=Sf(e.min,e.max-o,t.min)),pm(0,1,n)}function cH(e,t){const n={};return t.min!==void 0&&(n.min=t.min-e.min),t.max!==void 0&&(n.max=t.max-e.min),n}const yb=.35;function fH(e=yb){return e===!1?e=0:e===!0&&(e=yb),{x:pE(e,"left","right"),y:pE(e,"top","bottom")}}function pE(e,t,n){return{min:hE(e,t),max:hE(e,n)}}function hE(e,t){var n;return typeof e=="number"?e:(n=e[t])!==null&&n!==void 0?n:0}const mE=()=>({translate:0,scale:1,origin:0,originPoint:0}),zc=()=>({x:mE(),y:mE()}),gE=()=>({min:0,max:0}),xn=()=>({x:gE(),y:gE()});function $o(e){return[e("x"),e("y")]}function GI({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function dH({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function pH(e,t){if(!t)return e;const n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}function _y(e){return e===void 0||e===1}function qI({scale:e,scaleX:t,scaleY:n}){return!_y(e)||!_y(t)||!_y(n)}function aa(e){return qI(e)||vE(e.x)||vE(e.y)||e.z||e.rotate||e.rotateX||e.rotateY}function vE(e){return e&&e!=="0%"}function ym(e,t,n){const r=e-n,o=t*r;return n+o}function yE(e,t,n,r,o){return o!==void 0&&(e=ym(e,o,r)),ym(e,n,r)+t}function bb(e,t=0,n=1,r,o){e.min=yE(e.min,t,n,r,o),e.max=yE(e.max,t,n,r,o)}function KI(e,{x:t,y:n}){bb(e.x,t.translate,t.scale,t.originPoint),bb(e.y,n.translate,n.scale,n.originPoint)}function hH(e,t,n,r=!1){var o,i;const s=n.length;if(!s)return;t.x=t.y=1;let u,c;for(let f=0;f{this.stopAnimation(),n&&this.snapToCursor(PS(u,"page").point)},o=(u,c)=>{var f;const{drag:p,dragPropagation:h,onDragStart:m}=this.getProps();p&&!h&&(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=pI(p),!this.openGlobalLock)||(this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),$o(v=>{var b,x;let k=this.getAxisMotionValue(v).get()||0;if(Yo.test(k)){const S=(x=(b=this.visualElement.projection)===null||b===void 0?void 0:b.layout)===null||x===void 0?void 0:x.actual[v];S&&(k=Or(S)*(parseFloat(k)/100))}this.originPoint[v]=k}),m?.(u,c),(f=this.visualElement.animationState)===null||f===void 0||f.setActive(St.Drag,!0))},i=(u,c)=>{const{dragPropagation:f,dragDirectionLock:p,onDirectionLock:h,onDrag:m}=this.getProps();if(!f&&!this.openGlobalLock)return;const{offset:v}=c;if(p&&this.currentDirection===null){this.currentDirection=xH(v),this.currentDirection!==null&&h?.(this.currentDirection);return}this.updateAxis("x",c.point,v),this.updateAxis("y",c.point,v),this.visualElement.syncRender(),m?.(u,c)},s=(u,c)=>this.stop(u,c);this.panSession=new UI(t,{onSessionStart:r,onStart:o,onMove:i,onSessionEnd:s},{transformPagePoint:this.visualElement.getTransformPagePoint()})}stop(t,n){const r=this.isDragging;if(this.cancel(),!r)return;const{velocity:o}=n;this.startAnimation(o);const{onDragEnd:i}=this.getProps();i?.(t,n)}cancel(){var t,n;this.isDragging=!1,this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!1),(t=this.panSession)===null||t===void 0||t.end(),this.panSession=void 0;const{dragPropagation:r}=this.getProps();!r&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),(n=this.visualElement.animationState)===null||n===void 0||n.setActive(St.Drag,!1)}updateAxis(t,n,r){const{drag:o}=this.getProps();if(!r||!Fp(t,o,this.currentDirection))return;const i=this.getAxisMotionValue(t);let s=this.originPoint[t]+r[t];this.constraints&&this.constraints[t]&&(s=aH(s,this.constraints[t],this.elastic[t])),i.set(s)}resolveConstraints(){const{dragConstraints:t,dragElastic:n}=this.getProps(),{layout:r}=this.visualElement.projection||{},o=this.constraints;t&&Ml(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):t&&r?this.constraints=sH(r.actual,t):this.constraints=!1,this.elastic=fH(n),o!==this.constraints&&r&&this.constraints&&!this.hasMutatedConstraints&&$o(i=>{this.getAxisMotionValue(i)&&(this.constraints[i]=cH(r.actual[i],this.constraints[i]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!Ml(t))return!1;const r=t.current,{projection:o}=this.visualElement;if(!o||!o.layout)return!1;const i=vH(r,o.root,this.visualElement.getTransformPagePoint());let s=lH(o.layout.actual,i);if(n){const u=n(dH(s));this.hasMutatedConstraints=!!u,u&&(s=GI(u))}return s}startAnimation(t){const{drag:n,dragMomentum:r,dragElastic:o,dragTransition:i,dragSnapToOrigin:s,onDragTransitionEnd:u}=this.getProps(),c=this.constraints||{},f=$o(p=>{var h;if(!Fp(p,n,this.currentDirection))return;let m=(h=c?.[p])!==null&&h!==void 0?h:{};s&&(m={min:0,max:0});const v=o?200:1e6,b=o?40:1e7,x={type:"inertia",velocity:r?t[p]:0,bounceStiffness:v,bounceDamping:b,timeConstant:750,restDelta:1,restSpeed:10,...i,...m};return this.startAxisValueAnimation(p,x)});return Promise.all(f).then(u)}startAxisValueAnimation(t,n){const r=this.getAxisMotionValue(t);return zS(t,r,0,n)}stopAnimation(){$o(t=>this.getAxisMotionValue(t).stop())}getAxisMotionValue(t){var n,r;const o="_drag"+t.toUpperCase(),i=this.visualElement.getProps()[o];return i||this.visualElement.getValue(t,(r=(n=this.visualElement.getProps().initial)===null||n===void 0?void 0:n[t])!==null&&r!==void 0?r:0)}snapToCursor(t){$o(n=>{const{drag:r}=this.getProps();if(!Fp(n,r,this.currentDirection))return;const{projection:o}=this.visualElement,i=this.getAxisMotionValue(n);if(o&&o.layout){const{min:s,max:u}=o.layout.actual[n];i.set(t[n]-Wt(s,u,.5))}})}scalePositionWithinConstraints(){var t;const{drag:n,dragConstraints:r}=this.getProps(),{projection:o}=this.visualElement;if(!Ml(r)||!o||!this.constraints)return;this.stopAnimation();const i={x:0,y:0};$o(u=>{const c=this.getAxisMotionValue(u);if(c){const f=c.get();i[u]=uH({min:f,max:f},this.constraints[u])}});const{transformTemplate:s}=this.visualElement.getProps();this.visualElement.getInstance().style.transform=s?s({},""):"none",(t=o.root)===null||t===void 0||t.updateScroll(),o.updateLayout(),this.resolveConstraints(),$o(u=>{if(!Fp(u,n,null))return;const c=this.getAxisMotionValue(u),{min:f,max:p}=this.constraints[u];c.set(Wt(f,p,i[u]))})}addListeners(){var t;yH.set(this.visualElement,this);const n=this.visualElement.getInstance(),r=Ul(n,"pointerdown",f=>{const{drag:p,dragListener:h=!0}=this.getProps();p&&h&&this.start(f)}),o=()=>{const{dragConstraints:f}=this.getProps();Ml(f)&&(this.constraints=this.resolveRefConstraints())},{projection:i}=this.visualElement,s=i.addEventListener("measure",o);i&&!i.layout&&((t=i.root)===null||t===void 0||t.updateScroll(),i.updateLayout()),o();const u=Pg(window,"resize",()=>this.scalePositionWithinConstraints()),c=i.addEventListener("didUpdate",({delta:f,hasLayoutChanged:p})=>{this.isDragging&&p&&($o(h=>{const m=this.getAxisMotionValue(h);!m||(this.originPoint[h]+=f[h].translate,m.set(m.get()+f[h].translate))}),this.visualElement.syncRender())});return()=>{u(),r(),s(),c?.()}}getProps(){const t=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:r=!1,dragPropagation:o=!1,dragConstraints:i=!1,dragElastic:s=yb,dragMomentum:u=!0}=t;return{...t,drag:n,dragDirectionLock:r,dragPropagation:o,dragConstraints:i,dragElastic:s,dragMomentum:u}}}function Fp(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function xH(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}function SH(e){const{dragControls:t,visualElement:n}=e,r=Eg(()=>new bH(n));C.exports.useEffect(()=>t&&t.subscribe(r),[r,t]),C.exports.useEffect(()=>r.addListeners(),[r])}function wH({onPan:e,onPanStart:t,onPanEnd:n,onPanSessionStart:r,visualElement:o}){const i=e||t||n||r,s=C.exports.useRef(null),{transformPagePoint:u}=C.exports.useContext(bS),c={onSessionStart:r,onStart:t,onMove:e,onEnd:(p,h)=>{s.current=null,n&&n(p,h)}};C.exports.useEffect(()=>{s.current!==null&&s.current.updateHandlers(c)});function f(p){s.current=new UI(p,c,{transformPagePoint:u})}fm(o,"pointerdown",i&&f),AS(()=>s.current&&s.current.end())}const _H={pan:ba(wH),drag:ba(SH)},xb={current:null},XI={current:!1};function CH(){if(XI.current=!0,!!Fs)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>xb.current=e.matches;e.addListener(t),t()}else xb.current=!1}const Lp=["LayoutMeasure","BeforeLayoutMeasure","LayoutUpdate","ViewportBoxUpdate","Update","Render","AnimationComplete","LayoutAnimationComplete","AnimationStart","LayoutAnimationStart","SetAxisTarget","Unmount"];function kH(){const e=Lp.map(()=>new Lc),t={},n={clearAllListeners:()=>e.forEach(r=>r.clear()),updatePropListeners:r=>{Lp.forEach(o=>{var i;const s="on"+o,u=r[s];(i=t[o])===null||i===void 0||i.call(t),u&&(t[o]=n[s](u))})}};return e.forEach((r,o)=>{n["on"+Lp[o]]=i=>r.add(i),n["notify"+Lp[o]]=(...i)=>r.notify(...i)}),n}function EH(e,t,n){const{willChange:r}=t;for(const o in t){const i=t[o],s=n[o];if(ti(i))e.addValue(o,i),vm(r)&&r.add(o);else if(ti(s))e.addValue(o,au(i)),vm(r)&&r.remove(o);else if(s!==i)if(e.hasValue(o)){const u=e.getValue(o);!u.hasAnimated&&u.set(i)}else{const u=e.getStaticValue(o);e.addValue(o,au(u!==void 0?u:i))}}for(const o in n)t[o]===void 0&&e.removeValue(o);return t}const ZI=Object.keys(yf),PH=ZI.length,QI=({treeType:e="",build:t,getBaseTarget:n,makeTargetAnimatable:r,measureViewportBox:o,render:i,readValueFromInstance:s,removeValueFromRenderState:u,sortNodePosition:c,scrapeMotionValuesFromProps:f})=>({parent:p,props:h,presenceId:m,blockInitialAnimation:v,visualState:b,reducedMotionConfig:x},k={})=>{let S=!1;const{latestValues:y,renderState:w}=b;let E;const O=kH(),N=new Map,D=new Map;let V={};const Y={...y};let j;function te(){!E||!S||(Se(),i(E,w,h.style,X.projection))}function Se(){t(X,w,y,k,h)}function ke(){O.notifyUpdate(y)}function xe(q,I){const H=I.onChange(se=>{y[q]=se,h.onUpdate&&Xo.update(ke,!1,!0)}),ae=I.onRenderRequest(X.scheduleRender);D.set(q,()=>{H(),ae()})}const{willChange:_e,...ge}=f(h);for(const q in ge){const I=ge[q];y[q]!==void 0&&ti(I)&&(I.set(y[q],!1),vm(_e)&&_e.add(q))}const Pe=kg(h),W=BR(h),X={treeType:e,current:null,depth:p?p.depth+1:0,parent:p,children:new Set,presenceId:m,shouldReduceMotion:null,variantChildren:W?new Set:void 0,isVisible:void 0,manuallyAnimateOnMount:Boolean(p?.isMounted()),blockInitialAnimation:v,isMounted:()=>Boolean(E),mount(q){S=!0,E=X.current=q,X.projection&&X.projection.mount(q),W&&p&&!Pe&&(j=p?.addVariantChild(X)),N.forEach((I,H)=>xe(H,I)),XI.current||CH(),X.shouldReduceMotion=x==="never"?!1:x==="always"?!0:xb.current,p?.children.add(X),X.setProps(h)},unmount(){var q;(q=X.projection)===null||q===void 0||q.unmount(),Cf.update(ke),Cf.render(te),D.forEach(I=>I()),j?.(),p?.children.delete(X),O.clearAllListeners(),E=void 0,S=!1},loadFeatures(q,I,H,ae,se,pe){const me=[];for(let Ee=0;EeX.scheduleRender(),animationType:typeof ue=="string"?ue:"both",initialPromotionConfig:pe,layoutScroll:mt})}return me},addVariantChild(q){var I;const H=X.getClosestVariantNode();if(H)return(I=H.variantChildren)===null||I===void 0||I.add(q),()=>H.variantChildren.delete(q)},sortNodePosition(q){return!c||e!==q.treeType?0:c(X.getInstance(),q.getInstance())},getClosestVariantNode:()=>W?X:p?.getClosestVariantNode(),getLayoutId:()=>h.layoutId,getInstance:()=>E,getStaticValue:q=>y[q],setStaticValue:(q,I)=>y[q]=I,getLatestValues:()=>y,setVisibility(q){X.isVisible!==q&&(X.isVisible=q,X.scheduleRender())},makeTargetAnimatable(q,I=!0){return r(X,q,h,I)},measureViewportBox(){return o(E,h)},addValue(q,I){X.hasValue(q)&&X.removeValue(q),N.set(q,I),y[q]=I.get(),xe(q,I)},removeValue(q){var I;N.delete(q),(I=D.get(q))===null||I===void 0||I(),D.delete(q),delete y[q],u(q,w)},hasValue:q=>N.has(q),getValue(q,I){let H=N.get(q);return H===void 0&&I!==void 0&&(H=au(I),X.addValue(q,H)),H},forEachValue:q=>N.forEach(q),readValue:q=>y[q]!==void 0?y[q]:s(E,q,k),setBaseTarget(q,I){Y[q]=I},getBaseTarget(q){if(n){const I=n(h,q);if(I!==void 0&&!ti(I))return I}return Y[q]},...O,build(){return Se(),w},scheduleRender(){Xo.render(te,!1,!0)},syncRender:te,setProps(q){(q.transformTemplate||h.transformTemplate)&&X.scheduleRender(),h=q,O.updatePropListeners(q),V=EH(X,f(h),V)},getProps:()=>h,getVariant:q=>{var I;return(I=h.variants)===null||I===void 0?void 0:I[q]},getDefaultTransition:()=>h.transition,getTransformPagePoint:()=>h.transformPagePoint,getVariantContext(q=!1){if(q)return p?.getVariantContext();if(!Pe){const H=p?.getVariantContext()||{};return h.initial!==void 0&&(H.initial=h.initial),H}const I={};for(let H=0;H{const i=o.get();if(!Sb(i))return;const s=wb(i,r);s&&o.set(s)});for(const o in t){const i=t[o];if(!Sb(i))continue;const s=wb(i,r);!s||(t[o]=s,n&&n[o]===void 0&&(n[o]=i))}return{target:t,transitionEnd:n}}const RH=new Set(["width","height","top","left","right","bottom","x","y"]),t3=e=>RH.has(e),IH=e=>Object.keys(e).some(t3),n3=(e,t)=>{e.set(t,!1),e.set(t)},xE=e=>e===Ls||e===Ie;var SE;(function(e){e.width="width",e.height="height",e.left="left",e.right="right",e.top="top",e.bottom="bottom"})(SE||(SE={}));const wE=(e,t)=>parseFloat(e.split(", ")[t]),_E=(e,t)=>(n,{transform:r})=>{if(r==="none"||!r)return 0;const o=r.match(/^matrix3d\((.+)\)$/);if(o)return wE(o[1],t);{const i=r.match(/^matrix\((.+)\)$/);return i?wE(i[1],e):0}},MH=new Set(["x","y","z"]),NH=um.filter(e=>!MH.has(e));function DH(e){const t=[];return NH.forEach(n=>{const r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t.length&&e.syncRender(),t}const CE={width:({x:e},{paddingLeft:t="0",paddingRight:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),height:({y:e},{paddingTop:t="0",paddingBottom:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:_E(4,13),y:_E(5,14)},FH=(e,t,n)=>{const r=t.measureViewportBox(),o=t.getInstance(),i=getComputedStyle(o),{display:s}=i,u={};s==="none"&&t.setStaticValue("display",e.display||"block"),n.forEach(f=>{u[f]=CE[f](r,i)}),t.syncRender();const c=t.measureViewportBox();return n.forEach(f=>{const p=t.getValue(f);n3(p,u[f]),e[f]=CE[f](c,i)}),e},LH=(e,t,n={},r={})=>{t={...t},r={...r};const o=Object.keys(t).filter(t3);let i=[],s=!1;const u=[];if(o.forEach(c=>{const f=e.getValue(c);if(!e.hasValue(c))return;let p=n[c],h=uc(p);const m=t[c];let v;if(xf(m)){const b=m.length,x=m[0]===null?1:0;p=m[x],h=uc(p);for(let k=x;k=0?window.pageYOffset:null,f=FH(t,e,u);return i.length&&i.forEach(([p,h])=>{e.getValue(p).set(h)}),e.syncRender(),Fs&&c!==null&&window.scrollTo({top:c}),{target:f,transitionEnd:r}}else return{target:t,transitionEnd:r}};function $H(e,t,n,r){return IH(t)?LH(e,t,n,r):{target:t,transitionEnd:r}}const BH=(e,t,n,r)=>{const o=OH(e,t,r);return t=o.target,r=o.transitionEnd,$H(e,t,n,r)};function zH(e){return window.getComputedStyle(e)}const r3={treeType:"dom",readValueFromInstance(e,t){if(Gf.has(t)){const n=LS(t);return n&&n.default||0}else{const n=zH(e),r=(jR(t)?n.getPropertyValue(t):n[t])||0;return typeof r=="string"?r.trim():r}},sortNodePosition(e,t){return e.compareDocumentPosition(t)&2?1:-1},getBaseTarget(e,t){var n;return(n=e.style)===null||n===void 0?void 0:n[t]},measureViewportBox(e,{transformPagePoint:t}){return YI(e,t)},resetTransform(e,t,n){const{transformTemplate:r}=n;t.style.transform=r?r({},""):"none",e.scheduleRender()},restoreTransform(e,t){e.style.transform=t.style.transform},removeValueFromRenderState(e,{vars:t,style:n}){delete t[e],delete n[e]},makeTargetAnimatable(e,{transition:t,transitionEnd:n,...r},{transformValues:o},i=!0){let s=HU(r,t||{},e);if(o&&(n&&(n=o(n)),r&&(r=o(r)),s&&(s=o(s))),i){WU(e,r,s);const u=BH(e,r,s,n);n=u.transitionEnd,r=u.target}return{transition:t,transitionEnd:n,...r}},scrapeMotionValuesFromProps:ES,build(e,t,n,r,o){e.isVisible!==void 0&&(t.style.visibility=e.isVisible?"visible":"hidden"),_S(t,n,r,o.transformTemplate)},render:tI},VH=QI(r3),jH=QI({...r3,getBaseTarget(e,t){return e[t]},readValueFromInstance(e,t){var n;return Gf.has(t)?((n=LS(t))===null||n===void 0?void 0:n.default)||0:(t=nI.has(t)?t:eI(t),e.getAttribute(t))},scrapeMotionValuesFromProps:oI,build(e,t,n,r,o){kS(t,n,r,o.transformTemplate)},render:rI}),WH=(e,t)=>SS(e)?jH(t,{enableHardwareAcceleration:!1}):VH(t,{enableHardwareAcceleration:!0});function kE(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const cc={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(Ie.test(e))e=parseFloat(e);else return e;const n=kE(e,t.target.x),r=kE(e,t.target.y);return`${n}% ${r}%`}},EE="_$css",UH={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,o=e.includes("var("),i=[];o&&(e=e.replace(e3,v=>(i.push(v),EE)));const s=Fi.parse(e);if(s.length>5)return r;const u=Fi.createTransformer(e),c=typeof s[0]!="number"?1:0,f=n.x.scale*t.x,p=n.y.scale*t.y;s[0+c]/=f,s[1+c]/=p;const h=Wt(f,p,.5);typeof s[2+c]=="number"&&(s[2+c]/=h),typeof s[3+c]=="number"&&(s[3+c]/=h);let m=u(s);if(o){let v=0;m=m.replace(EE,()=>{const b=i[v];return v++,b})}return m}};class HH extends ee.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r,layoutId:o}=this.props,{projection:i}=t;rj(qH),i&&(n.group&&n.group.add(i),r&&r.register&&o&&r.register(i),i.root.didUpdate(),i.addEventListener("animationComplete",()=>{this.safeToRemove()}),i.setOptions({...i.options,onExitComplete:()=>this.safeToRemove()})),Nc.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:n,visualElement:r,drag:o,isPresent:i}=this.props,s=r.projection;return s&&(s.isPresent=i,o||t.layoutDependency!==n||n===void 0?s.willUpdate():this.safeToRemove(),t.isPresent!==i&&(i?s.promote():s.relegate()||Xo.postRender(()=>{var u;!((u=s.getStack())===null||u===void 0)&&u.members.length||this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),!t.currentAnimation&&t.isLead()&&this.safeToRemove())}componentWillUnmount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r}=this.props,{projection:o}=t;o&&(o.scheduleCheckAfterUnmount(),n?.group&&n.group.remove(o),r?.deregister&&r.deregister(o))}safeToRemove(){const{safeToRemove:t}=this.props;t?.()}render(){return null}}function GH(e){const[t,n]=FS(),r=C.exports.useContext(xS);return P(HH,{...e,layoutGroup:r,switchLayoutGroup:C.exports.useContext(zR),isPresent:t,safeToRemove:n})}const qH={borderRadius:{...cc,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:cc,borderTopRightRadius:cc,borderBottomLeftRadius:cc,borderBottomRightRadius:cc,boxShadow:UH},KH={measureLayout:GH};function YH(e,t,n={}){const r=ti(e)?e:au(e);return zS("",r,t,n),{stop:()=>r.stop(),isAnimating:()=>r.isAnimating()}}const o3=["TopLeft","TopRight","BottomLeft","BottomRight"],XH=o3.length,PE=e=>typeof e=="string"?parseFloat(e):e,AE=e=>typeof e=="number"||Ie.test(e);function ZH(e,t,n,r,o,i){var s,u,c,f;o?(e.opacity=Wt(0,(s=n.opacity)!==null&&s!==void 0?s:1,QH(r)),e.opacityExit=Wt((u=t.opacity)!==null&&u!==void 0?u:1,0,JH(r))):i&&(e.opacity=Wt((c=t.opacity)!==null&&c!==void 0?c:1,(f=n.opacity)!==null&&f!==void 0?f:1,r));for(let p=0;prt?1:n(Sf(e,t,r))}function OE(e,t){e.min=t.min,e.max=t.max}function mo(e,t){OE(e.x,t.x),OE(e.y,t.y)}function RE(e,t,n,r,o){return e-=t,e=ym(e,1/n,r),o!==void 0&&(e=ym(e,1/o,r)),e}function eG(e,t=0,n=1,r=.5,o,i=e,s=e){if(Yo.test(t)&&(t=parseFloat(t),t=Wt(s.min,s.max,t/100)-s.min),typeof t!="number")return;let u=Wt(i.min,i.max,r);e===i&&(u-=t),e.min=RE(e.min,t,n,u,o),e.max=RE(e.max,t,n,u,o)}function IE(e,t,[n,r,o],i,s){eG(e,t[n],t[r],t[o],t.scale,i,s)}const tG=["x","scaleX","originX"],nG=["y","scaleY","originY"];function ME(e,t,n,r){IE(e.x,t,tG,n?.x,r?.x),IE(e.y,t,nG,n?.y,r?.y)}function NE(e){return e.translate===0&&e.scale===1}function a3(e){return NE(e.x)&&NE(e.y)}function s3(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 DE(e){return Or(e.x)/Or(e.y)}function rG(e,t,n=.01){return DS(e,t)<=n}class oG{constructor(){this.members=[]}add(t){VS(this.members,t),t.scheduleRender()}remove(t){if(jS(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){const n=this.members[this.members.length-1];n&&this.promote(n)}}relegate(t){const n=this.members.findIndex(o=>t===o);if(n===0)return!1;let r;for(let o=n;o>=0;o--){const i=this.members[o];if(i.isPresent!==!1){r=i;break}}return r?(this.promote(r),!0):!1}promote(t,n){var r;const o=this.lead;if(t!==o&&(this.prevLead=o,this.lead=t,t.show(),o)){o.instance&&o.scheduleRender(),t.scheduleRender(),t.resumeFrom=o,n&&(t.resumeFrom.preserveOpacity=!0),o.snapshot&&(t.snapshot=o.snapshot,t.snapshot.latestValues=o.animationValues||o.latestValues,t.snapshot.isShared=!0),!((r=t.root)===null||r===void 0)&&r.isUpdating&&(t.isLayoutDirty=!0);const{crossfade:i}=t.options;i===!1&&o.hide()}}exitAnimationComplete(){this.members.forEach(t=>{var n,r,o,i,s;(r=(n=t.options).onExitComplete)===null||r===void 0||r.call(n),(s=(o=t.resumingFrom)===null||o===void 0?void 0:(i=o.options).onExitComplete)===null||s===void 0||s.call(i)})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}const iG="translate3d(0px, 0px, 0) scale(1, 1) scale(1, 1)";function FE(e,t,n){const r=e.x.translate/t.x,o=e.y.translate/t.y;let i=`translate3d(${r}px, ${o}px, 0) `;if(i+=`scale(${1/t.x}, ${1/t.y}) `,n){const{rotate:c,rotateX:f,rotateY:p}=n;c&&(i+=`rotate(${c}deg) `),f&&(i+=`rotateX(${f}deg) `),p&&(i+=`rotateY(${p}deg) `)}const s=e.x.scale*t.x,u=e.y.scale*t.y;return i+=`scale(${s}, ${u})`,i===iG?"none":i}const aG=(e,t)=>e.depth-t.depth;class sG{constructor(){this.children=[],this.isDirty=!1}add(t){VS(this.children,t),this.isDirty=!0}remove(t){jS(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(aG),this.isDirty=!1,this.children.forEach(t)}}const LE=["","X","Y","Z"],$E=1e3;function l3({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:o}){return class{constructor(s,u={},c=t?.()){this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!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.potentialNodes=new Map,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.nodes.forEach(pG),this.nodes.forEach(hG)},this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.id=s,this.latestValues=u,this.root=c?c.root||c:this,this.path=c?[...c.path,c]:[],this.parent=c,this.depth=c?c.depth+1:0,s&&this.root.registerPotentialNode(s,this);for(let f=0;fthis.root.updateBlockedByResize=!1;e(s,()=>{this.root.updateBlockedByResize=!0,clearTimeout(m),m=window.setTimeout(v,250),Nc.hasAnimatedSinceResize&&(Nc.hasAnimatedSinceResize=!1,this.nodes.forEach(dG))})}f&&this.root.registerSharedNode(f,this),this.options.animate!==!1&&h&&(f||p)&&this.addEventListener("didUpdate",({delta:m,hasLayoutChanged:v,hasRelativeTargetChanged:b,layout:x})=>{var k,S,y,w,E;if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const O=(S=(k=this.options.transition)!==null&&k!==void 0?k:h.getDefaultTransition())!==null&&S!==void 0?S:bG,{onLayoutAnimationStart:N,onLayoutAnimationComplete:D}=h.getProps(),V=!this.targetLayout||!s3(this.targetLayout,x)||b,Y=!v&&b;if(((y=this.resumeFrom)===null||y===void 0?void 0:y.instance)||Y||v&&(V||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(m,Y);const j={...BS(O,"layout"),onPlay:N,onComplete:D};h.shouldReduceMotion&&(j.delay=0,j.type=!1),this.startAnimation(j)}else!v&&this.animationProgress===0&&this.finishAnimation(),this.isLead()&&((E=(w=this.options).onExitComplete)===null||E===void 0||E.call(w));this.targetLayout=x})}unmount(){var s,u;this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this),(s=this.getStack())===null||s===void 0||s.remove(this),(u=this.parent)===null||u===void 0||u.children.delete(this),this.instance=void 0,Cf.preRender(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){var s;return this.isAnimationBlocked||((s=this.parent)===null||s===void 0?void 0:s.isTreeAnimationBlocked())||!1}startUpdate(){var s;this.isUpdateBlocked()||(this.isUpdating=!0,(s=this.nodes)===null||s===void 0||s.forEach(mG))}willUpdate(s=!0){var u,c,f;if(this.root.isUpdateBlocked()){(c=(u=this.options).onExitComplete)===null||c===void 0||c.call(u);return}if(!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let v=0;v{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){if(this.snapshot||!this.instance)return;const s=this.measure(),u=this.removeTransform(this.removeElementScroll(s));WE(u),this.snapshot={measured:s,layout:u,latestValues:{}}}updateLayout(){var s;if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let f=0;f{var y;const w=S/1e3;zE(m.x,s.x,w),zE(m.y,s.y,w),this.setTargetDelta(m),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&((y=this.relativeParent)===null||y===void 0?void 0:y.layout)&&(Bc(v,this.layout.actual,this.relativeParent.layout.actual),vG(this.relativeTarget,this.relativeTargetOrigin,v,w)),b&&(this.animationValues=h,ZH(h,p,this.latestValues,w,k,x)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=w},this.mixTargetDelta(0)}startAnimation(s){var u,c;this.notifyListeners("animationStart"),(u=this.currentAnimation)===null||u===void 0||u.stop(),this.resumingFrom&&((c=this.resumingFrom.currentAnimation)===null||c===void 0||c.stop()),this.pendingAnimation&&(Cf.update(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=Xo.update(()=>{Nc.hasAnimatedSinceResize=!0,this.currentAnimation=YH(0,$E,{...s,onUpdate:f=>{var p;this.mixTargetDelta(f),(p=s.onUpdate)===null||p===void 0||p.call(s,f)},onComplete:()=>{var f;(f=s.onComplete)===null||f===void 0||f.call(s),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){var s;this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0),(s=this.getStack())===null||s===void 0||s.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){var s;this.currentAnimation&&((s=this.mixTargetDelta)===null||s===void 0||s.call(this,$E),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const s=this.getLead();let{targetWithTransforms:u,target:c,layout:f,latestValues:p}=s;if(!(!u||!c||!f)){if(this!==s&&this.layout&&f&&u3(this.options.animationType,this.layout.actual,f.actual)){c=this.target||xn();const h=Or(this.layout.actual.x);c.x.min=s.target.x.min,c.x.max=c.x.min+h;const m=Or(this.layout.actual.y);c.y.min=s.target.y.min,c.y.max=c.y.min+m}mo(u,c),Nl(u,p),$c(this.projectionDeltaWithTransform,this.layoutCorrected,u,p)}}registerSharedNode(s,u){var c,f,p;this.sharedNodes.has(s)||this.sharedNodes.set(s,new oG),this.sharedNodes.get(s).add(u),u.promote({transition:(c=u.options.initialPromotionConfig)===null||c===void 0?void 0:c.transition,preserveFollowOpacity:(p=(f=u.options.initialPromotionConfig)===null||f===void 0?void 0:f.shouldPreserveFollowOpacity)===null||p===void 0?void 0:p.call(f,u)})}isLead(){const s=this.getStack();return s?s.lead===this:!0}getLead(){var s;const{layoutId:u}=this.options;return u?((s=this.getStack())===null||s===void 0?void 0:s.lead)||this:this}getPrevLead(){var s;const{layoutId:u}=this.options;return u?(s=this.getStack())===null||s===void 0?void 0:s.prevLead:void 0}getStack(){const{layoutId:s}=this.options;if(s)return this.root.sharedNodes.get(s)}promote({needsReset:s,transition:u,preserveFollowOpacity:c}={}){const f=this.getStack();f&&f.promote(this,c),s&&(this.projectionDelta=void 0,this.needsReset=!0),u&&this.setOptions({transition:u})}relegate(){const s=this.getStack();return s?s.relegate(this):!1}resetRotation(){const{visualElement:s}=this.options;if(!s)return;let u=!1;const c={};for(let f=0;f{var u;return(u=s.currentAnimation)===null||u===void 0?void 0:u.stop()}),this.root.nodes.forEach(BE),this.root.sharedNodes.clear()}}}function lG(e){e.updateLayout()}function uG(e){var t,n,r;const o=((t=e.resumeFrom)===null||t===void 0?void 0:t.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&o&&e.hasListeners("didUpdate")){const{actual:i,measured:s}=e.layout,{animationType:u}=e.options;u==="size"?$o(m=>{const v=o.isShared?o.measured[m]:o.layout[m],b=Or(v);v.min=i[m].min,v.max=v.min+b}):u3(u,o.layout,i)&&$o(m=>{const v=o.isShared?o.measured[m]:o.layout[m],b=Or(i[m]);v.max=v.min+b});const c=zc();$c(c,i,o.layout);const f=zc();o.isShared?$c(f,e.applyTransform(s,!0),o.measured):$c(f,i,o.layout);const p=!a3(c);let h=!1;if(!e.resumeFrom&&(e.relativeParent=e.getClosestProjectingParent(),e.relativeParent&&!e.relativeParent.resumeFrom)){const{snapshot:m,layout:v}=e.relativeParent;if(m&&v){const b=xn();Bc(b,o.layout,m.layout);const x=xn();Bc(x,i,v.actual),s3(b,x)||(h=!0)}}e.notifyListeners("didUpdate",{layout:i,snapshot:o,delta:f,layoutDelta:c,hasLayoutChanged:p,hasRelativeTargetChanged:h})}else e.isLead()&&((r=(n=e.options).onExitComplete)===null||r===void 0||r.call(n));e.options.transition=void 0}function cG(e){e.clearSnapshot()}function BE(e){e.clearMeasurements()}function fG(e){const{visualElement:t}=e.options;t?.getProps().onBeforeLayoutMeasure&&t.notifyBeforeLayoutMeasure(),e.resetTransform()}function dG(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0}function pG(e){e.resolveTargetDelta()}function hG(e){e.calcProjection()}function mG(e){e.resetRotation()}function gG(e){e.removeLeadSnapshot()}function zE(e,t,n){e.translate=Wt(t.translate,0,n),e.scale=Wt(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function VE(e,t,n,r){e.min=Wt(t.min,n.min,r),e.max=Wt(t.max,n.max,r)}function vG(e,t,n,r){VE(e.x,t.x,n.x,r),VE(e.y,t.y,n.y,r)}function yG(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const bG={duration:.45,ease:[.4,0,.1,1]};function xG(e,t){let n=e.root;for(let i=e.path.length-1;i>=0;i--)if(Boolean(e.path[i].instance)){n=e.path[i];break}const o=(n&&n!==e.root?n.instance:document).querySelector(`[data-projection-id="${t}"]`);o&&e.mount(o,!0)}function jE(e){e.min=Math.round(e.min),e.max=Math.round(e.max)}function WE(e){jE(e.x),jE(e.y)}function u3(e,t,n){return e==="position"||e==="preserve-aspect"&&!rG(DE(t),DE(n))}const SG=l3({attachResizeListener:(e,t)=>Pg(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),Cy={current:void 0},wG=l3({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!Cy.current){const e=new SG(0,{});e.mount(window),e.setOptions({layoutScroll:!0}),Cy.current=e}return Cy.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>Boolean(window.getComputedStyle(e).position==="fixed")}),_G={...nH,...dU,..._H,...KH},Ao=tj((e,t)=>zj(e,t,_G,WH,wG));function c3(){const e=C.exports.useRef(!1);return sm(()=>(e.current=!0,()=>{e.current=!1}),[]),e}function CG(){const e=c3(),[t,n]=C.exports.useState(0),r=C.exports.useCallback(()=>{e.current&&n(t+1)},[t]);return[C.exports.useCallback(()=>Xo.postRender(r),[r]),t]}class kG extends C.exports.Component{getSnapshotBeforeUpdate(t){const n=this.props.childRef.current;if(n&&t.isPresent&&!this.props.isPresent){const r=this.props.sizeRef.current;r.height=n.offsetHeight||0,r.width=n.offsetWidth||0,r.top=n.offsetTop,r.left=n.offsetLeft}return null}componentDidUpdate(){}render(){return this.props.children}}function EG({children:e,isPresent:t}){const n=C.exports.useId(),r=C.exports.useRef(null),o=C.exports.useRef({width:0,height:0,top:0,left:0});return C.exports.useInsertionEffect(()=>{const{width:i,height:s,top:u,left:c}=o.current;if(t||!r.current||!i||!s)return;r.current.dataset.motionPopId=n;const f=document.createElement("style");return document.head.appendChild(f),f.sheet&&f.sheet.insertRule(` + [data-motion-pop-id="${n}"] { + position: absolute !important; + width: ${i}px !important; + height: ${s}px !important; + top: ${u}px !important; + left: ${c}px !important; + } + `),()=>{document.head.removeChild(f)}},[t]),P(kG,{isPresent:t,childRef:r,sizeRef:o,children:C.exports.cloneElement(e,{ref:r})})}const ky=({children:e,initial:t,isPresent:n,onExitComplete:r,custom:o,presenceAffectsLayout:i,mode:s})=>{const u=Eg(PG),c=C.exports.useId(),f=C.exports.useMemo(()=>({id:c,initial:t,isPresent:n,custom:o,onExitComplete:p=>{u.set(p,!0);for(const h of u.values())if(!h)return;r&&r()},register:p=>(u.set(p,!1),()=>u.delete(p))}),i?void 0:[n]);return C.exports.useMemo(()=>{u.forEach((p,h)=>u.set(h,!1))},[n]),C.exports.useEffect(()=>{!n&&!u.size&&r&&r()},[n]),s==="popLayout"&&(e=P(EG,{isPresent:n,children:e})),P(bu.Provider,{value:f,children:e})};function PG(){return new Map}const yl=e=>e.key||"";function AG(e,t){e.forEach(n=>{const r=yl(n);t.set(r,n)})}function TG(e){const t=[];return C.exports.Children.forEach(e,n=>{C.exports.isValidElement(n)&&t.push(n)}),t}const Vi=({children:e,custom:t,initial:n=!0,onExitComplete:r,exitBeforeEnter:o,presenceAffectsLayout:i=!0,mode:s="sync"})=>{o&&(s="wait",FI(!1,"Replace exitBeforeEnter with mode='wait'"));let[u]=CG();const c=C.exports.useContext(xS).forceRender;c&&(u=c);const f=c3(),p=TG(e);let h=p;const m=new Set,v=C.exports.useRef(h),b=C.exports.useRef(new Map).current,x=C.exports.useRef(!0);if(sm(()=>{x.current=!1,AG(p,b),v.current=h}),AS(()=>{x.current=!0,b.clear(),m.clear()}),x.current)return P(fr,{children:h.map(w=>P(ky,{isPresent:!0,initial:n?void 0:!1,presenceAffectsLayout:i,mode:s,children:w},yl(w)))});h=[...h];const k=v.current.map(yl),S=p.map(yl),y=k.length;for(let w=0;w{if(S.indexOf(w)!==-1)return;const E=b.get(w);if(!E)return;const O=k.indexOf(w),N=()=>{b.delete(w),m.delete(w);const D=v.current.findIndex(V=>V.key===w);if(v.current.splice(D,1),!m.size){if(v.current=p,f.current===!1)return;u(),r&&r()}};h.splice(O,0,P(ky,{isPresent:!1,onExitComplete:N,custom:t,presenceAffectsLayout:i,mode:s,children:E},yl(E)))}),h=h.map(w=>{const E=w.key;return m.has(E)?w:P(ky,{isPresent:!0,presenceAffectsLayout:i,mode:s,children:w},yl(w))}),DI!=="production"&&s==="wait"&&h.length>1&&console.warn(`You're attempting to animate multiple children within AnimatePresence, but its mode is set to "wait". This will lead to odd visual behaviour.`),P(fr,{children:m.size?h:h.map(w=>C.exports.cloneElement(w))})};var Zf=(...e)=>e.filter(Boolean).join(" ");function OG(){return!1}var RG=e=>{const{condition:t,message:n}=e;t&&OG()&&console.warn(n)},ms={ease:[.25,.1,.25,1],easeIn:[.4,0,1,1],easeOut:[0,0,.2,1],easeInOut:[.4,0,.2,1]},fc={scale:{enter:{scale:1},exit:{scale:.95}},fade:{enter:{opacity:1},exit:{opacity:0}},pushLeft:{enter:{x:"100%"},exit:{x:"-30%"}},pushRight:{enter:{x:"-100%"},exit:{x:"30%"}},pushUp:{enter:{y:"100%"},exit:{y:"-30%"}},pushDown:{enter:{y:"-100%"},exit:{y:"30%"}},slideLeft:{position:{left:0,top:0,bottom:0,width:"100%"},enter:{x:0,y:0},exit:{x:"-100%",y:0}},slideRight:{position:{right:0,top:0,bottom:0,width:"100%"},enter:{x:0,y:0},exit:{x:"100%",y:0}},slideUp:{position:{top:0,left:0,right:0,maxWidth:"100vw"},enter:{x:0,y:0},exit:{x:0,y:"-100%"}},slideDown:{position:{bottom:0,left:0,right:0,maxWidth:"100vw"},enter:{x:0,y:0},exit:{x:0,y:"100%"}}};function _b(e){switch(e?.direction??"right"){case"right":return fc.slideRight;case"left":return fc.slideLeft;case"bottom":return fc.slideDown;case"top":return fc.slideUp;default:return fc.slideRight}}var bs={enter:{duration:.2,ease:ms.easeOut},exit:{duration:.1,ease:ms.easeIn}},ko={enter:(e,t)=>({...e,delay:typeof t=="number"?t:t?.enter}),exit:(e,t)=>({...e,delay:typeof t=="number"?t:t?.exit})},IG=e=>e!=null&&parseInt(e.toString(),10)>0,UE={exit:{height:{duration:.2,ease:ms.ease},opacity:{duration:.3,ease:ms.ease}},enter:{height:{duration:.3,ease:ms.ease},opacity:{duration:.4,ease:ms.ease}}},MG={exit:({animateOpacity:e,startingHeight:t,transition:n,transitionEnd:r,delay:o})=>({...e&&{opacity:IG(t)?1:0},height:t,transitionEnd:r?.exit,transition:n?.exit??ko.exit(UE.exit,o)}),enter:({animateOpacity:e,endingHeight:t,transition:n,transitionEnd:r,delay:o})=>({...e&&{opacity:1},height:t,transitionEnd:r?.enter,transition:n?.enter??ko.enter(UE.enter,o)})},f3=C.exports.forwardRef((e,t)=>{const{in:n,unmountOnExit:r,animateOpacity:o=!0,startingHeight:i=0,endingHeight:s="auto",style:u,className:c,transition:f,transitionEnd:p,...h}=e,[m,v]=C.exports.useState(!1);C.exports.useEffect(()=>{const y=setTimeout(()=>{v(!0)});return()=>clearTimeout(y)},[]),RG({condition:Boolean(i>0&&r),message:"startingHeight and unmountOnExit are mutually exclusive. You can't use them together"});const b=parseFloat(i.toString())>0,x={startingHeight:i,endingHeight:s,animateOpacity:o,transition:m?f:{enter:{duration:0}},transitionEnd:{enter:p?.enter,exit:r?p?.exit:{...p?.exit,display:b?"block":"none"}}},k=r?n:!0,S=n||r?"enter":"exit";return P(Vi,{initial:!1,custom:x,children:k&&ee.createElement(Ao.div,{ref:t,...h,className:Zf("chakra-collapse",c),style:{overflow:"hidden",display:"block",...u},custom:x,variants:MG,initial:r?"exit":!1,animate:S,exit:"exit"})})});f3.displayName="Collapse";var NG={enter:({transition:e,transitionEnd:t,delay:n}={})=>({opacity:1,transition:e?.enter??ko.enter(bs.enter,n),transitionEnd:t?.enter}),exit:({transition:e,transitionEnd:t,delay:n}={})=>({opacity:0,transition:e?.exit??ko.exit(bs.exit,n),transitionEnd:t?.exit})},d3={initial:"exit",animate:"enter",exit:"exit",variants:NG},DG=C.exports.forwardRef(function(t,n){const{unmountOnExit:r,in:o,className:i,transition:s,transitionEnd:u,delay:c,...f}=t,p=o||r?"enter":"exit",h=r?o&&r:!0,m={transition:s,transitionEnd:u,delay:c};return P(Vi,{custom:m,children:h&&ee.createElement(Ao.div,{ref:n,className:Zf("chakra-fade",i),custom:m,...d3,animate:p,...f})})});DG.displayName="Fade";var FG={exit:({reverse:e,initialScale:t,transition:n,transitionEnd:r,delay:o})=>({opacity:0,...e?{scale:t,transitionEnd:r?.exit}:{transitionEnd:{scale:t,...r?.exit}},transition:n?.exit??ko.exit(bs.exit,o)}),enter:({transitionEnd:e,transition:t,delay:n})=>({opacity:1,scale:1,transition:t?.enter??ko.enter(bs.enter,n),transitionEnd:e?.enter})},p3={initial:"exit",animate:"enter",exit:"exit",variants:FG},LG=C.exports.forwardRef(function(t,n){const{unmountOnExit:r,in:o,reverse:i=!0,initialScale:s=.95,className:u,transition:c,transitionEnd:f,delay:p,...h}=t,m=r?o&&r:!0,v=o||r?"enter":"exit",b={initialScale:s,reverse:i,transition:c,transitionEnd:f,delay:p};return P(Vi,{custom:b,children:m&&ee.createElement(Ao.div,{ref:n,className:Zf("chakra-offset-slide",u),...p3,animate:v,custom:b,...h})})});LG.displayName="ScaleFade";var HE={exit:{duration:.15,ease:ms.easeInOut},enter:{type:"spring",damping:25,stiffness:180}},$G={exit:({direction:e,transition:t,transitionEnd:n,delay:r})=>{const{exit:o}=_b({direction:e});return{...o,transition:t?.exit??ko.exit(HE.exit,r),transitionEnd:n?.exit}},enter:({direction:e,transitionEnd:t,transition:n,delay:r})=>{const{enter:o}=_b({direction:e});return{...o,transition:n?.enter??ko.enter(HE.enter,r),transitionEnd:t?.enter}}},h3=C.exports.forwardRef(function(t,n){const{direction:r="right",style:o,unmountOnExit:i,in:s,className:u,transition:c,transitionEnd:f,delay:p,...h}=t,m=_b({direction:r}),v=Object.assign({position:"fixed"},m.position,o),b=i?s&&i:!0,x=s||i?"enter":"exit",k={transitionEnd:f,transition:c,direction:r,delay:p};return P(Vi,{custom:k,children:b&&ee.createElement(Ao.div,{...h,ref:n,initial:"exit",className:Zf("chakra-slide",u),animate:x,exit:"exit",custom:k,variants:$G,style:v})})});h3.displayName="Slide";var BG={initial:({offsetX:e,offsetY:t,transition:n,transitionEnd:r,delay:o})=>({opacity:0,x:e,y:t,transition:n?.exit??ko.exit(bs.exit,o),transitionEnd:r?.exit}),enter:({transition:e,transitionEnd:t,delay:n})=>({opacity:1,x:0,y:0,transition:e?.enter??ko.enter(bs.enter,n),transitionEnd:t?.enter}),exit:({offsetY:e,offsetX:t,transition:n,transitionEnd:r,reverse:o,delay:i})=>{const s={x:t,y:e};return{opacity:0,transition:n?.exit??ko.exit(bs.exit,i),...o?{...s,transitionEnd:r?.exit}:{transitionEnd:{...s,...r?.exit}}}}},Cb={initial:"initial",animate:"enter",exit:"exit",variants:BG},zG=C.exports.forwardRef(function(t,n){const{unmountOnExit:r,in:o,reverse:i=!0,className:s,offsetX:u=0,offsetY:c=8,transition:f,transitionEnd:p,delay:h,...m}=t,v=r?o&&r:!0,b=o||r?"enter":"exit",x={offsetX:u,offsetY:c,reverse:i,transition:f,transitionEnd:p,delay:h};return P(Vi,{custom:x,children:v&&ee.createElement(Ao.div,{ref:n,className:Zf("chakra-offset-slide",s),custom:x,...Cb,animate:b,...m})})});zG.displayName="SlideFade";var Qf=(...e)=>e.filter(Boolean).join(" ");function VG(){return!1}var Ng=e=>{const{condition:t,message:n}=e;t&&VG()&&console.warn(n)};function Ey(...e){return function(n){e.some(r=>(r?.(n),n?.defaultPrevented))}}var[jG,Dg]=Kt({name:"AccordionStylesContext",hookName:"useAccordionStyles",providerName:""}),[WG,US]=Kt({name:"AccordionItemContext",hookName:"useAccordionItemContext",providerName:""}),[UG,Pfe,HG,GG]=zV(),rs=fe(function(t,n){const{getButtonProps:r}=US(),o=r(t,n),i=Dg(),s={display:"flex",alignItems:"center",width:"100%",outline:0,...i.button};return ee.createElement(ie.button,{...o,className:Qf("chakra-accordion__button",t.className),__css:s})});rs.displayName="AccordionButton";function qG(e){const{onChange:t,defaultIndex:n,index:r,allowMultiple:o,allowToggle:i,...s}=e;XG(e),ZG(e);const u=HG(),[c,f]=C.exports.useState(-1);C.exports.useEffect(()=>()=>{f(-1)},[]);const[p,h]=VV({value:r,defaultValue(){return o?n??[]:n??-1},onChange:t});return{index:p,setIndex:h,htmlProps:s,getAccordionItemProps:v=>{let b=!1;return v!==null&&(b=Array.isArray(p)?p.includes(v):p===v),{isOpen:b,onChange:k=>{if(v!==null)if(o&&Array.isArray(p)){const S=k?p.concat(v):p.filter(y=>y!==v);h(S)}else k?h(v):i&&h(-1)}}},focusedIndex:c,setFocusedIndex:f,descendants:u}}var[KG,HS]=Kt({name:"AccordionContext",hookName:"useAccordionContext",providerName:"Accordion"});function YG(e){const{isDisabled:t,isFocusable:n,id:r,...o}=e,{getAccordionItemProps:i,setFocusedIndex:s}=HS(),u=C.exports.useRef(null),c=C.exports.useId(),f=r??c,p=`accordion-button-${f}`,h=`accordion-panel-${f}`;QG(e);const{register:m,index:v,descendants:b}=GG({disabled:t&&!n}),{isOpen:x,onChange:k}=i(v===-1?null:v);JG({isOpen:x,isDisabled:t});const S=()=>{k?.(!0)},y=()=>{k?.(!1)},w=C.exports.useCallback(()=>{k?.(!x),s(v)},[v,s,x,k]),E=C.exports.useCallback(V=>{const j={ArrowDown:()=>{const te=b.nextEnabled(v);te?.node.focus()},ArrowUp:()=>{const te=b.prevEnabled(v);te?.node.focus()},Home:()=>{const te=b.firstEnabled();te?.node.focus()},End:()=>{const te=b.lastEnabled();te?.node.focus()}}[V.key];j&&(V.preventDefault(),j(V))},[b,v]),O=C.exports.useCallback(()=>{s(v)},[s,v]),N=C.exports.useCallback(function(Y={},j=null){return{...Y,type:"button",ref:Kn(m,u,j),id:p,disabled:!!t,"aria-expanded":!!x,"aria-controls":h,onClick:Ey(Y.onClick,w),onFocus:Ey(Y.onFocus,O),onKeyDown:Ey(Y.onKeyDown,E)}},[p,t,x,w,O,E,h,m]),D=C.exports.useCallback(function(Y={},j=null){return{...Y,ref:j,role:"region",id:h,"aria-labelledby":p,hidden:!x}},[p,x,h]);return{isOpen:x,isDisabled:t,isFocusable:n,onOpen:S,onClose:y,getButtonProps:N,getPanelProps:D,htmlProps:o}}function XG(e){const t=e.index||e.defaultIndex,n=t==null&&!Array.isArray(t)&&e.allowMultiple;Ng({condition:!!n,message:`If 'allowMultiple' is passed, then 'index' or 'defaultIndex' must be an array. You passed: ${typeof t},`})}function ZG(e){Ng({condition:!!(e.allowMultiple&&e.allowToggle),message:"If 'allowMultiple' is passed, 'allowToggle' will be ignored. Either remove 'allowToggle' or 'allowMultiple' depending on whether you want multiple accordions visible or not"})}function QG(e){Ng({condition:!!(e.isFocusable&&!e.isDisabled),message:`Using only 'isFocusable', this prop is reserved for situations where you pass 'isDisabled' but you still want the element to receive focus (A11y). Either remove it or pass 'isDisabled' as well. + `})}function JG(e){Ng({condition:e.isOpen&&!!e.isDisabled,message:"Cannot open a disabled accordion item"})}function os(e){const{isOpen:t,isDisabled:n}=US(),{reduceMotion:r}=HS(),o=Qf("chakra-accordion__icon",e.className),i=Dg(),s={opacity:n?.4:1,transform:t?"rotate(-180deg)":void 0,transition:r?void 0:"transform 0.2s",transformOrigin:"center",...i.icon};return P(Po,{viewBox:"0 0 24 24","aria-hidden":!0,className:o,__css:s,...e,children:P("path",{fill:"currentColor",d:"M16.59 8.59L12 13.17 7.41 8.59 6 10l6 6 6-6z"})})}os.displayName="AccordionIcon";var is=fe(function(t,n){const{children:r,className:o}=t,{htmlProps:i,...s}=YG(t),c={...Dg().container,overflowAnchor:"none"},f=C.exports.useMemo(()=>s,[s]);return ee.createElement(WG,{value:f},ee.createElement(ie.div,{ref:n,...i,className:Qf("chakra-accordion__item",o),__css:c},typeof r=="function"?r({isExpanded:!!s.isOpen,isDisabled:!!s.isDisabled}):r))});is.displayName="AccordionItem";var as=fe(function(t,n){const{reduceMotion:r}=HS(),{getPanelProps:o,isOpen:i}=US(),s=o(t,n),u=Qf("chakra-accordion__panel",t.className),c=Dg();r||delete s.hidden;const f=ee.createElement(ie.div,{...s,__css:c.panel,className:u});return r?f:P(f3,{in:i,children:f})});as.displayName="AccordionPanel";var m3=fe(function({children:t,reduceMotion:n,...r},o){const i=Fr("Accordion",r),s=yt(r),{htmlProps:u,descendants:c,...f}=qG(s),p=C.exports.useMemo(()=>({...f,reduceMotion:!!n}),[f,n]);return ee.createElement(UG,{value:c},ee.createElement(KG,{value:p},ee.createElement(jG,{value:i},ee.createElement(ie.div,{ref:o,...u,className:Qf("chakra-accordion",r.className),__css:i.root},t))))});m3.displayName="Accordion";var eq=(...e)=>e.filter(Boolean).join(" "),tq=Hf({"0%":{transform:"rotate(0deg)"},"100%":{transform:"rotate(360deg)"}}),Fg=fe((e,t)=>{const n=Zn("Spinner",e),{label:r="Loading...",thickness:o="2px",speed:i="0.45s",emptyColor:s="transparent",className:u,...c}=yt(e),f=eq("chakra-spinner",u),p={display:"inline-block",borderColor:"currentColor",borderStyle:"solid",borderRadius:"99999px",borderWidth:o,borderBottomColor:s,borderLeftColor:s,animation:`${tq} ${i} linear infinite`,...n};return ee.createElement(ie.div,{ref:t,__css:p,className:f,...c},r&&ee.createElement(ie.span,{srOnly:!0},r))});Fg.displayName="Spinner";var Lg=(...e)=>e.filter(Boolean).join(" ");function nq(e){return P(Po,{viewBox:"0 0 24 24",...e,children:P("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 rq(e){return P(Po,{viewBox:"0 0 24 24",...e,children:P("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 GE(e){return P(Po,{viewBox:"0 0 24 24",...e,children:P("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[oq,iq]=Kt({name:"AlertContext",hookName:"useAlertContext",providerName:""}),[aq,GS]=Kt({name:"AlertStylesContext",hookName:"useAlertStyles",providerName:""}),g3={info:{icon:rq,colorScheme:"blue"},warning:{icon:GE,colorScheme:"orange"},success:{icon:nq,colorScheme:"green"},error:{icon:GE,colorScheme:"red"},loading:{icon:Fg,colorScheme:"blue"}};function sq(e){return g3[e].colorScheme}function lq(e){return g3[e].icon}var v3=fe(function(t,n){const{status:r="info",addRole:o=!0,...i}=yt(t),s=t.colorScheme??sq(r),u=Fr("Alert",{...t,colorScheme:s}),c={width:"100%",display:"flex",alignItems:"center",position:"relative",overflow:"hidden",...u.container};return ee.createElement(oq,{value:{status:r}},ee.createElement(aq,{value:u},ee.createElement(ie.div,{role:o?"alert":void 0,ref:n,...i,className:Lg("chakra-alert",t.className),__css:c})))});v3.displayName="Alert";var y3=fe(function(t,n){const r=GS(),o={display:"inline",...r.description};return ee.createElement(ie.div,{ref:n,...t,className:Lg("chakra-alert__desc",t.className),__css:o})});y3.displayName="AlertDescription";function b3(e){const{status:t}=iq(),n=lq(t),r=GS(),o=t==="loading"?r.spinner:r.icon;return ee.createElement(ie.span,{display:"inherit",...e,className:Lg("chakra-alert__icon",e.className),__css:o},e.children||P(n,{h:"100%",w:"100%"}))}b3.displayName="AlertIcon";var x3=fe(function(t,n){const r=GS();return ee.createElement(ie.div,{ref:n,...t,className:Lg("chakra-alert__title",t.className),__css:r.title})});x3.displayName="AlertTitle";function uq(e,t=[]){const n=Object.assign({},e);for(const r of t)r in n&&delete n[r];return n}function cq(e){const{loading:t,src:n,srcSet:r,onLoad:o,onError:i,crossOrigin:s,sizes:u,ignoreFallback:c}=e,[f,p]=C.exports.useState("pending");C.exports.useEffect(()=>{p(n?"loading":"pending")},[n]);const h=C.exports.useRef(),m=C.exports.useCallback(()=>{if(!n)return;v();const b=new Image;b.src=n,s&&(b.crossOrigin=s),r&&(b.srcset=r),u&&(b.sizes=u),t&&(b.loading=t),b.onload=x=>{v(),p("loaded"),o?.(x)},b.onerror=x=>{v(),p("failed"),i?.(x)},h.current=b},[n,s,r,u,o,i,t]),v=()=>{h.current&&(h.current.onload=null,h.current.onerror=null,h.current=null)};return Ri(()=>{if(!c)return f==="loading"&&m(),()=>{v()}},[f,m,c]),c?"loaded":f}var fq=(e,t)=>e!=="loaded"&&t==="beforeLoadOrError"||e==="failed"&&t==="onError",bm=fe(function(t,n){const{htmlWidth:r,htmlHeight:o,alt:i,...s}=t;return P("img",{width:r,height:o,ref:n,alt:i,...s})});bm.displayName="NativeImage";var kf=fe(function(t,n){const{fallbackSrc:r,fallback:o,src:i,srcSet:s,align:u,fit:c,loading:f,ignoreFallback:p,crossOrigin:h,fallbackStrategy:m="beforeLoadOrError",referrerPolicy:v,...b}=t,x=r!==void 0||o!==void 0,k=f!=null||p||!x,S=cq({...t,ignoreFallback:k}),y=fq(S,m),w={ref:n,objectFit:c,objectPosition:u,...k?b:uq(b,["onError","onLoad"])};return y?o||ee.createElement(ie.img,{as:bm,className:"chakra-image__placeholder",src:r,...w}):ee.createElement(ie.img,{as:bm,src:i,srcSet:s,crossOrigin:h,loading:f,referrerPolicy:v,className:"chakra-image",...w})});kf.displayName="Image";fe((e,t)=>ee.createElement(ie.img,{ref:t,as:bm,className:"chakra-image",...e}));var dq=Object.create,S3=Object.defineProperty,pq=Object.getOwnPropertyDescriptor,w3=Object.getOwnPropertyNames,hq=Object.getPrototypeOf,mq=Object.prototype.hasOwnProperty,_3=(e,t)=>function(){return t||(0,e[w3(e)[0]])((t={exports:{}}).exports,t),t.exports},gq=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of w3(t))!mq.call(e,o)&&o!==n&&S3(e,o,{get:()=>t[o],enumerable:!(r=pq(t,o))||r.enumerable});return e},vq=(e,t,n)=>(n=e!=null?dq(hq(e)):{},gq(t||!e||!e.__esModule?S3(n,"default",{value:e,enumerable:!0}):n,e)),yq=_3({"../../node_modules/.pnpm/react@18.2.0/node_modules/react/cjs/react.production.min.js"(e){var t=Symbol.for("react.element"),n=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),s=Symbol.for("react.provider"),u=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),f=Symbol.for("react.suspense"),p=Symbol.for("react.memo"),h=Symbol.for("react.lazy"),m=Symbol.iterator;function v(I){return I===null||typeof I!="object"?null:(I=m&&I[m]||I["@@iterator"],typeof I=="function"?I:null)}var b={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},x=Object.assign,k={};function S(I,H,ae){this.props=I,this.context=H,this.refs=k,this.updater=ae||b}S.prototype.isReactComponent={},S.prototype.setState=function(I,H){if(typeof I!="object"&&typeof I!="function"&&I!=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,I,H,"setState")},S.prototype.forceUpdate=function(I){this.updater.enqueueForceUpdate(this,I,"forceUpdate")};function y(){}y.prototype=S.prototype;function w(I,H,ae){this.props=I,this.context=H,this.refs=k,this.updater=ae||b}var E=w.prototype=new y;E.constructor=w,x(E,S.prototype),E.isPureReactComponent=!0;var O=Array.isArray,N=Object.prototype.hasOwnProperty,D={current:null},V={key:!0,ref:!0,__self:!0,__source:!0};function Y(I,H,ae){var se,pe={},me=null,Ee=null;if(H!=null)for(se in H.ref!==void 0&&(Ee=H.ref),H.key!==void 0&&(me=""+H.key),H)N.call(H,se)&&!V.hasOwnProperty(se)&&(pe[se]=H[se]);var ue=arguments.length-2;if(ue===1)pe.children=ae;else if(1(0,qE.isValidElement)(t))}/** + * @license React + * react.development.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. + *//** + * @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 $g=(...e)=>e.filter(Boolean).join(" "),KE=e=>e?"":void 0,[xq,Sq]=Kt({strict:!1,name:"ButtonGroupContext"});function kb(e){const{children:t,className:n,...r}=e,o=C.exports.isValidElement(t)?C.exports.cloneElement(t,{"aria-hidden":!0,focusable:!1}):t,i=$g("chakra-button__icon",n);return ee.createElement(ie.span,{display:"inline-flex",alignSelf:"center",flexShrink:0,...r,className:i},o)}kb.displayName="ButtonIcon";function Eb(e){const{label:t,placement:n,spacing:r="0.5rem",children:o=P(Fg,{color:"currentColor",width:"1em",height:"1em"}),className:i,__css:s,...u}=e,c=$g("chakra-button__spinner",i),f=n==="start"?"marginEnd":"marginStart",p=C.exports.useMemo(()=>({display:"flex",alignItems:"center",position:t?"relative":"absolute",[f]:t?r:0,fontSize:"1em",lineHeight:"normal",...s}),[s,t,f,r]);return ee.createElement(ie.div,{className:c,...u,__css:p},o)}Eb.displayName="ButtonSpinner";function wq(e){const[t,n]=C.exports.useState(!e);return{ref:C.exports.useCallback(i=>{!i||n(i.tagName==="BUTTON")},[]),type:t?"button":void 0}}var su=fe((e,t)=>{const n=Sq(),r=Zn("Button",{...n,...e}),{isDisabled:o=n?.isDisabled,isLoading:i,isActive:s,children:u,leftIcon:c,rightIcon:f,loadingText:p,iconSpacing:h="0.5rem",type:m,spinner:v,spinnerPlacement:b="start",className:x,as:k,...S}=yt(e),y=C.exports.useMemo(()=>{const N={...r?._focus,zIndex:1};return{display:"inline-flex",appearance:"none",alignItems:"center",justifyContent:"center",userSelect:"none",position:"relative",whiteSpace:"nowrap",verticalAlign:"middle",outline:"none",...r,...!!n&&{_focus:N}}},[r,n]),{ref:w,type:E}=wq(k),O={rightIcon:f,leftIcon:c,iconSpacing:h,children:u};return ee.createElement(ie.button,{disabled:o||i,ref:NV(t,w),as:k,type:m??E,"data-active":KE(s),"data-loading":KE(i),__css:y,className:$g("chakra-button",x),...S},i&&b==="start"&&P(Eb,{className:"chakra-button__spinner--start",label:p,placement:"start",spacing:h,children:v}),i?p||ee.createElement(ie.span,{opacity:0},P(YE,{...O})):P(YE,{...O}),i&&b==="end"&&P(Eb,{className:"chakra-button__spinner--end",label:p,placement:"end",spacing:h,children:v}))});su.displayName="Button";function YE(e){const{leftIcon:t,rightIcon:n,children:r,iconSpacing:o}=e;return ce(fr,{children:[t&&P(kb,{marginEnd:o,children:t}),r,n&&P(kb,{marginStart:o,children:n})]})}var _q=fe(function(t,n){const{size:r,colorScheme:o,variant:i,className:s,spacing:u="0.5rem",isAttached:c,isDisabled:f,...p}=t,h=$g("chakra-button__group",s),m=C.exports.useMemo(()=>({size:r,colorScheme:o,variant:i,isDisabled:f}),[r,o,i,f]);let v={display:"inline-flex"};return c?v={...v,"> *: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}}:v={...v,"& > *:not(style) ~ *:not(style)":{marginStart:u}},ee.createElement(xq,{value:m},ee.createElement(ie.div,{ref:n,role:"group",__css:v,className:h,"data-attached":c?"":void 0,...p}))});_q.displayName="ButtonGroup";var Zr=fe((e,t)=>{const{icon:n,children:r,isRound:o,"aria-label":i,...s}=e,u=n||r,c=C.exports.isValidElement(u)?C.exports.cloneElement(u,{"aria-hidden":!0,focusable:!1}):null;return P(su,{padding:"0",borderRadius:o?"full":void 0,ref:t,"aria-label":i,...s,children:c})});Zr.displayName="IconButton";var wu=(...e)=>e.filter(Boolean).join(" "),$p=e=>e?"":void 0,Py=e=>e?!0:void 0;function XE(...e){return function(n){e.some(r=>(r?.(n),n?.defaultPrevented))}}var[Cq,C3]=Kt({name:"FormControlStylesContext",errorMessage:`useFormControlStyles returned is 'undefined'. Seems you forgot to wrap the components in "" `}),[kq,_u]=Kt({strict:!1,name:"FormControlContext"});function Eq(e){const{id:t,isRequired:n,isInvalid:r,isDisabled:o,isReadOnly:i,...s}=e,u=C.exports.useId(),c=t||`field-${u}`,f=`${c}-label`,p=`${c}-feedback`,h=`${c}-helptext`,[m,v]=C.exports.useState(!1),[b,x]=C.exports.useState(!1),[k,S]=C.exports.useState(!1),y=C.exports.useCallback((D={},V=null)=>({id:h,...D,ref:Kn(V,Y=>{!Y||x(!0)})}),[h]),w=C.exports.useCallback((D={},V=null)=>({...D,ref:V,"data-focus":$p(k),"data-disabled":$p(o),"data-invalid":$p(r),"data-readonly":$p(i),id:D.id??f,htmlFor:D.htmlFor??c}),[c,o,k,r,i,f]),E=C.exports.useCallback((D={},V=null)=>({id:p,...D,ref:Kn(V,Y=>{!Y||v(!0)}),"aria-live":"polite"}),[p]),O=C.exports.useCallback((D={},V=null)=>({...D,...s,ref:V,role:"group"}),[s]),N=C.exports.useCallback((D={},V=null)=>({...D,ref:V,role:"presentation","aria-hidden":!0,children:D.children||"*"}),[]);return{isRequired:!!n,isInvalid:!!r,isReadOnly:!!i,isDisabled:!!o,isFocused:!!k,onFocus:()=>S(!0),onBlur:()=>S(!1),hasFeedbackText:m,setHasFeedbackText:v,hasHelpText:b,setHasHelpText:x,id:c,labelId:f,feedbackId:p,helpTextId:h,htmlProps:s,getHelpTextProps:y,getErrorMessageProps:E,getRootProps:O,getLabelProps:w,getRequiredIndicatorProps:N}}var Os=fe(function(t,n){const r=Fr("Form",t),o=yt(t),{getRootProps:i,htmlProps:s,...u}=Eq(o),c=wu("chakra-form-control",t.className);return ee.createElement(kq,{value:u},ee.createElement(Cq,{value:r},ee.createElement(ie.div,{...i({},n),className:c,__css:r.container})))});Os.displayName="FormControl";var Pq=fe(function(t,n){const r=_u(),o=C3(),i=wu("chakra-form__helper-text",t.className);return ee.createElement(ie.div,{...r?.getHelpTextProps(t,n),__css:o.helperText,className:i})});Pq.displayName="FormHelperText";function KS(e){const{isDisabled:t,isInvalid:n,isReadOnly:r,isRequired:o,...i}=YS(e);return{...i,disabled:t,readOnly:r,required:o,"aria-invalid":Py(n),"aria-required":Py(o),"aria-readonly":Py(r)}}function YS(e){const t=_u(),{id:n,disabled:r,readOnly:o,required:i,isRequired:s,isInvalid:u,isReadOnly:c,isDisabled:f,onFocus:p,onBlur:h,...m}=e,v=e["aria-describedby"]?[e["aria-describedby"]]:[];return t?.hasFeedbackText&&t?.isInvalid&&v.push(t.feedbackId),t?.hasHelpText&&v.push(t.helpTextId),{...m,"aria-describedby":v.join(" ")||void 0,id:n??t?.id,isDisabled:r??f??t?.isDisabled,isReadOnly:o??c??t?.isReadOnly,isRequired:i??s??t?.isRequired,isInvalid:u??t?.isInvalid,onFocus:XE(t?.onFocus,p),onBlur:XE(t?.onBlur,h)}}var[Aq,Tq]=Kt({name:"FormErrorStylesContext",errorMessage:`useFormErrorStyles returned is 'undefined'. Seems you forgot to wrap the components in "" `}),Oq=fe((e,t)=>{const n=Fr("FormError",e),r=yt(e),o=_u();return o?.isInvalid?ee.createElement(Aq,{value:n},ee.createElement(ie.div,{...o?.getErrorMessageProps(r,t),className:wu("chakra-form__error-message",e.className),__css:{display:"flex",alignItems:"center",...n.text}})):null});Oq.displayName="FormErrorMessage";var Rq=fe((e,t)=>{const n=Tq(),r=_u();if(!r?.isInvalid)return null;const o=wu("chakra-form__error-icon",e.className);return P(Po,{ref:t,"aria-hidden":!0,...e,__css:n.icon,className:o,children:P("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"})})});Rq.displayName="FormErrorIcon";var Rs=fe(function(t,n){const r=Zn("FormLabel",t),o=yt(t),{className:i,children:s,requiredIndicator:u=P(k3,{}),optionalIndicator:c=null,...f}=o,p=_u(),h=p?.getLabelProps(f,n)??{ref:n,...f};return ee.createElement(ie.label,{...h,className:wu("chakra-form__label",o.className),__css:{display:"block",textAlign:"start",...r}},s,p?.isRequired?u:c)});Rs.displayName="FormLabel";var k3=fe(function(t,n){const r=_u(),o=C3();if(!r?.isRequired)return null;const i=wu("chakra-form__required-indicator",t.className);return ee.createElement(ie.span,{...r?.getRequiredIndicatorProps(t,n),__css:o.requiredIndicator,className:i})});k3.displayName="RequiredIndicator";function xm(e,t){const n=C.exports.useRef(!1),r=C.exports.useRef(!1);C.exports.useEffect(()=>{if(n.current&&r.current)return e();r.current=!0},t),C.exports.useEffect(()=>(n.current=!0,()=>{n.current=!1}),[])}var XS={border:"0px",clip:"rect(0px, 0px, 0px, 0px)",height:"1px",width:"1px",margin:"-1px",padding:"0px",overflow:"hidden",whiteSpace:"nowrap",position:"absolute"},Iq=ie("span",{baseStyle:XS});Iq.displayName="VisuallyHidden";var Mq=ie("input",{baseStyle:XS});Mq.displayName="VisuallyHiddenInput";var ZE=!1,Bg=null,lu=!1,Pb=new Set,Nq=typeof window<"u"&&window.navigator!=null?/^Mac/.test(window.navigator.platform):!1;function Dq(e){return!(e.metaKey||!Nq&&e.altKey||e.ctrlKey)}function ZS(e,t){Pb.forEach(n=>n(e,t))}function QE(e){lu=!0,Dq(e)&&(Bg="keyboard",ZS("keyboard",e))}function fl(e){Bg="pointer",(e.type==="mousedown"||e.type==="pointerdown")&&(lu=!0,ZS("pointer",e))}function Fq(e){e.target===window||e.target===document||(lu||(Bg="keyboard",ZS("keyboard",e)),lu=!1)}function Lq(){lu=!1}function JE(){return Bg!=="pointer"}function $q(){if(typeof window>"u"||ZE)return;const{focus:e}=HTMLElement.prototype;HTMLElement.prototype.focus=function(...n){lu=!0,e.apply(this,n)},document.addEventListener("keydown",QE,!0),document.addEventListener("keyup",QE,!0),window.addEventListener("focus",Fq,!0),window.addEventListener("blur",Lq,!1),typeof PointerEvent<"u"?(document.addEventListener("pointerdown",fl,!0),document.addEventListener("pointermove",fl,!0),document.addEventListener("pointerup",fl,!0)):(document.addEventListener("mousedown",fl,!0),document.addEventListener("mousemove",fl,!0),document.addEventListener("mouseup",fl,!0)),ZE=!0}function Bq(e){$q(),e(JE());const t=()=>e(JE());return Pb.add(t),()=>{Pb.delete(t)}}var[Afe,zq]=Kt({name:"CheckboxGroupContext",strict:!1}),Vq=(...e)=>e.filter(Boolean).join(" "),jn=e=>e?"":void 0;function Gr(...e){return function(n){e.some(r=>(r?.(n),n?.defaultPrevented))}}function jq(...e){return function(n){e.forEach(r=>{r?.(n)})}}function Wq(e){const t=Ao;return"custom"in t&&typeof t.custom=="function"?t.custom(e):t(e)}var E3=Wq(ie.svg);function Uq(e){return P(E3,{width:"1.2em",viewBox:"0 0 12 10",variants:{unchecked:{opacity:0,strokeDashoffset:16},checked:{opacity:1,strokeDashoffset:0,transition:{duration:.2}}},style:{fill:"none",strokeWidth:2,stroke:"currentColor",strokeDasharray:16},...e,children:P("polyline",{points:"1.5 6 4.5 9 10.5 1"})})}function Hq(e){return P(E3,{width:"1.2em",viewBox:"0 0 24 24",variants:{unchecked:{scaleX:.65,opacity:0},checked:{scaleX:1,opacity:1,transition:{scaleX:{duration:0},opacity:{duration:.02}}}},style:{stroke:"currentColor",strokeWidth:4},...e,children:P("line",{x1:"21",x2:"3",y1:"12",y2:"12"})})}function Gq({open:e,children:t}){return P(Vi,{initial:!1,children:e&&ee.createElement(Ao.div,{variants:{unchecked:{scale:.5},checked:{scale:1}},initial:"unchecked",animate:"checked",exit:"unchecked",style:{display:"flex",alignItems:"center",justifyContent:"center",height:"100%"}},t)})}function qq(e){const{isIndeterminate:t,isChecked:n,...r}=e;return P(Gq,{open:n||t,children:P(t?Hq:Uq,{...r})})}function Kq(e,t=[]){const n=Object.assign({},e);for(const r of t)r in n&&delete n[r];return n}function P3(e={}){const t=YS(e),{isDisabled:n,isReadOnly:r,isRequired:o,isInvalid:i,id:s,onBlur:u,onFocus:c,"aria-describedby":f}=t,{defaultChecked:p,isChecked:h,isFocusable:m,onChange:v,isIndeterminate:b,name:x,value:k,tabIndex:S=void 0,"aria-label":y,"aria-labelledby":w,"aria-invalid":E,...O}=e,N=Kq(O,["isDisabled","isReadOnly","isRequired","isInvalid","id","onBlur","onFocus","aria-describedby"]),D=Dn(v),V=Dn(u),Y=Dn(c),[j,te]=C.exports.useState(!1),[Se,ke]=C.exports.useState(!1),[xe,_e]=C.exports.useState(!1),[ge,Pe]=C.exports.useState(!1);C.exports.useEffect(()=>Bq(te),[]);const W=C.exports.useRef(null),[X,q]=C.exports.useState(!0),[I,H]=C.exports.useState(!!p),ae=h!==void 0,se=ae?h:I,pe=C.exports.useCallback(ve=>{if(r||n){ve.preventDefault();return}ae||H(se?ve.target.checked:b?!0:ve.target.checked),D?.(ve)},[r,n,se,ae,b,D]);Ri(()=>{W.current&&(W.current.indeterminate=Boolean(b))},[b]),xm(()=>{n&&ke(!1)},[n,ke]),Ri(()=>{const ve=W.current;!ve?.form||(ve.form.onreset=()=>{H(!!p)})},[]);const me=n&&!m,Ee=C.exports.useCallback(ve=>{ve.key===" "&&Pe(!0)},[Pe]),ue=C.exports.useCallback(ve=>{ve.key===" "&&Pe(!1)},[Pe]);Ri(()=>{if(!W.current)return;W.current.checked!==se&&H(W.current.checked)},[W.current]);const Ae=C.exports.useCallback((ve={},Mt=null)=>{const Zt=it=>{Se&&it.preventDefault(),Pe(!0)};return{...ve,ref:Mt,"data-active":jn(ge),"data-hover":jn(xe),"data-checked":jn(se),"data-focus":jn(Se),"data-focus-visible":jn(Se&&j),"data-indeterminate":jn(b),"data-disabled":jn(n),"data-invalid":jn(i),"data-readonly":jn(r),"aria-hidden":!0,onMouseDown:Gr(ve.onMouseDown,Zt),onMouseUp:Gr(ve.onMouseUp,()=>Pe(!1)),onMouseEnter:Gr(ve.onMouseEnter,()=>_e(!0)),onMouseLeave:Gr(ve.onMouseLeave,()=>_e(!1))}},[ge,se,n,Se,j,xe,b,i,r]),Ne=C.exports.useCallback((ve={},Mt=null)=>({...N,...ve,ref:Kn(Mt,Zt=>{!Zt||q(Zt.tagName==="LABEL")}),onClick:Gr(ve.onClick,()=>{var Zt;X||((Zt=W.current)==null||Zt.click(),requestAnimationFrame(()=>{var it;(it=W.current)==null||it.focus()}))}),"data-disabled":jn(n),"data-checked":jn(se),"data-invalid":jn(i)}),[N,n,se,i,X]),mt=C.exports.useCallback((ve={},Mt=null)=>({...ve,ref:Kn(W,Mt),type:"checkbox",name:x,value:k,id:s,tabIndex:S,onChange:Gr(ve.onChange,pe),onBlur:Gr(ve.onBlur,V,()=>ke(!1)),onFocus:Gr(ve.onFocus,Y,()=>ke(!0)),onKeyDown:Gr(ve.onKeyDown,Ee),onKeyUp:Gr(ve.onKeyUp,ue),required:o,checked:se,disabled:me,readOnly:r,"aria-label":y,"aria-labelledby":w,"aria-invalid":E?Boolean(E):i,"aria-describedby":f,"aria-disabled":n,style:XS}),[x,k,s,pe,V,Y,Ee,ue,o,se,me,r,y,w,E,i,f,n,S]),It=C.exports.useCallback((ve={},Mt=null)=>({...ve,ref:Mt,onMouseDown:Gr(ve.onMouseDown,eP),onTouchStart:Gr(ve.onTouchStart,eP),"data-disabled":jn(n),"data-checked":jn(se),"data-invalid":jn(i)}),[se,n,i]);return{state:{isInvalid:i,isFocused:Se,isChecked:se,isActive:ge,isHovered:xe,isIndeterminate:b,isDisabled:n,isReadOnly:r,isRequired:o},getRootProps:Ne,getCheckboxProps:Ae,getInputProps:mt,getLabelProps:It,htmlProps:N}}function eP(e){e.preventDefault(),e.stopPropagation()}var Yq=ie("span",{baseStyle:{display:"inline-flex",alignItems:"center",justifyContent:"center",verticalAlign:"top",userSelect:"none",flexShrink:0}}),Xq=ie("label",{baseStyle:{cursor:"pointer",display:"inline-flex",alignItems:"center",verticalAlign:"top",position:"relative"}}),Zq=fe(function(t,n){const r=zq(),o={...r,...t},i=Fr("Checkbox",o),s=yt(t),{spacing:u="0.5rem",className:c,children:f,iconColor:p,iconSize:h,icon:m=P(qq,{}),isChecked:v,isDisabled:b=r?.isDisabled,onChange:x,inputProps:k,...S}=s;let y=v;r?.value&&s.value&&(y=r.value.includes(s.value));let w=x;r?.onChange&&s.value&&(w=jq(r.onChange,x));const{state:E,getInputProps:O,getCheckboxProps:N,getLabelProps:D,getRootProps:V}=P3({...S,isDisabled:b,isChecked:y,onChange:w}),Y=C.exports.useMemo(()=>({opacity:E.isChecked||E.isIndeterminate?1:0,transform:E.isChecked||E.isIndeterminate?"scale(1)":"scale(0.95)",fontSize:h,color:p,...i.icon}),[p,h,E.isChecked,E.isIndeterminate,i.icon]),j=C.exports.cloneElement(m,{__css:Y,isIndeterminate:E.isIndeterminate,isChecked:E.isChecked});return ce(Xq,{__css:i.container,className:Vq("chakra-checkbox",c),...V(),children:[P("input",{className:"chakra-checkbox__input",...O(k,n)}),P(Yq,{__css:i.control,className:"chakra-checkbox__control",...N(),children:j}),f&&ee.createElement(ie.span,{className:"chakra-checkbox__label",...D(),__css:{marginStart:u,...i.label}},f)]})});Zq.displayName="Checkbox";function Qq(e){return P(Po,{focusable:"false","aria-hidden":!0,...e,children:P("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 QS=fe(function(t,n){const r=Zn("CloseButton",t),{children:o,isDisabled:i,__css:s,...u}=yt(t),c={outline:0,display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0};return ee.createElement(ie.button,{type:"button","aria-label":"Close",ref:n,disabled:i,__css:{...c,...r,...s},...u},o||P(Qq,{width:"1em",height:"1em"}))});QS.displayName="CloseButton";function Jq(e){const t=parseFloat(e);return typeof t!="number"||Number.isNaN(t)?0:t}function A3(e,t){let n=Jq(e);const r=10**(t??10);return n=Math.round(n*r)/r,t?n.toFixed(t):n.toString()}function tP(e){if(!Number.isFinite(e))return 0;let t=1,n=0;for(;Math.round(e*t)/t!==e;)t*=10,n+=1;return n}function eK(e,t,n){return e==null?e:(nr==null?"":Ay(r,i,n)??""),m=typeof o<"u",v=m?o:p,b=T3(sa(v),i),x=n??b,k=C.exports.useCallback(j=>{j!==v&&(m||h(j.toString()),f?.(j.toString(),sa(j)))},[f,m,v]),S=C.exports.useCallback(j=>{let te=j;return c&&(te=eK(te,s,u)),A3(te,x)},[x,c,u,s]),y=C.exports.useCallback((j=i)=>{let te;v===""?te=sa(j):te=sa(v)+j,te=S(te),k(te)},[S,i,k,v]),w=C.exports.useCallback((j=i)=>{let te;v===""?te=sa(-j):te=sa(v)-j,te=S(te),k(te)},[S,i,k,v]),E=C.exports.useCallback(()=>{let j;r==null?j="":j=Ay(r,i,n)??s,k(j)},[r,n,i,k,s]),O=C.exports.useCallback(j=>{const te=Ay(j,i,x)??s;k(te)},[x,i,k,s]),N=sa(v);return{isOutOfRange:N>u||NP(wg,{styles:O3}),rK=()=>P(wg,{styles:` + 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%; + font-feature-settings: 'kern'; + } + + *, + *::before, + *::after { + border-width: 0; + border-style: solid; + box-sizing: border-box; + } + + main { + display: block; + } + + hr { + border-top-width: 1px; + box-sizing: content-box; + height: 0; + overflow: visible; + } + + pre, + code, + kbd, + samp { + font-family: SFMono-Regular, Menlo, Monaco, Consolas, monospace; + font-size: 1em; + } + + a { + background-color: transparent; + color: inherit; + text-decoration: inherit; + } + + abbr[title] { + border-bottom: none; + text-decoration: underline; + -webkit-text-decoration: underline dotted; + text-decoration: underline dotted; + } + + b, + strong { + font-weight: bold; + } + + small { + font-size: 80%; + } + + sub, + sup { + font-size: 75%; + line-height: 0; + position: relative; + vertical-align: baseline; + } + + sub { + bottom: -0.25em; + } + + sup { + top: -0.5em; + } + + img { + border-style: none; + } + + button, + input, + optgroup, + select, + textarea { + font-family: inherit; + font-size: 100%; + line-height: 1.15; + margin: 0; + } + + button, + input { + overflow: visible; + } + + button, + select { + text-transform: none; + } + + button::-moz-focus-inner, + [type="button"]::-moz-focus-inner, + [type="reset"]::-moz-focus-inner, + [type="submit"]::-moz-focus-inner { + border-style: none; + padding: 0; + } + + fieldset { + padding: 0.35em 0.75em 0.625em; + } + + legend { + box-sizing: border-box; + color: inherit; + display: table; + max-width: 100%; + padding: 0; + white-space: normal; + } + + progress { + vertical-align: baseline; + } + + textarea { + overflow: auto; + } + + [type="checkbox"], + [type="radio"] { + box-sizing: border-box; + padding: 0; + } + + [type="number"]::-webkit-inner-spin-button, + [type="number"]::-webkit-outer-spin-button { + -webkit-appearance: none !important; + } + + input[type="number"] { + -moz-appearance: textfield; + } + + [type="search"] { + -webkit-appearance: textfield; + outline-offset: -2px; + } + + [type="search"]::-webkit-search-decoration { + -webkit-appearance: none !important; + } + + ::-webkit-file-upload-button { + -webkit-appearance: button; + font: inherit; + } + + details { + display: block; + } + + summary { + display: list-item; + } + + template { + display: none; + } + + [hidden] { + display: none !important; + } + + body, + blockquote, + dl, + dd, + h1, + h2, + h3, + h4, + h5, + h6, + hr, + figure, + p, + pre { + margin: 0; + } + + button { + background: transparent; + padding: 0; + } + + fieldset { + margin: 0; + padding: 0; + } + + ol, + ul { + margin: 0; + padding: 0; + } + + textarea { + resize: vertical; + } + + button, + [role="button"] { + cursor: pointer; + } + + button::-moz-focus-inner { + border: 0 !important; + } + + table { + border-collapse: collapse; + } + + h1, + h2, + h3, + h4, + h5, + h6 { + font-size: inherit; + font-weight: inherit; + } + + button, + input, + optgroup, + select, + textarea { + padding: 0; + line-height: inherit; + color: inherit; + } + + img, + svg, + video, + canvas, + audio, + iframe, + embed, + object { + display: block; + } + + 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; + } + + select::-ms-expand { + display: none; + } + + ${O3} + `});function Ab(e,t,n,r){const o=Dn(n);return C.exports.useEffect(()=>{const i=typeof e=="function"?e():e??document;if(!(!n||!i))return i.addEventListener(t,o,r),()=>{i.removeEventListener(t,o,r)}},[t,e,r,o,n]),()=>{const i=typeof e=="function"?e():e??document;i?.removeEventListener(t,o,r)}}var oK=iV?C.exports.useLayoutEffect:C.exports.useEffect;function nP(e,t=[]){const n=C.exports.useRef(e);return oK(()=>{n.current=e}),C.exports.useCallback((...r)=>{var o;return(o=n.current)==null?void 0:o.call(n,...r)},t)}function iK(e,t){const n=e!==void 0;return[n,n&&typeof e<"u"?e:t]}function aK(e,t){const n=C.exports.useId();return C.exports.useMemo(()=>e||[t,n].filter(Boolean).join("-"),[e,t,n])}function Tb(e={}){const{onClose:t,onOpen:n,isOpen:r,id:o}=e,i=nP(n),s=nP(t),[u,c]=C.exports.useState(e.defaultIsOpen||!1),[f,p]=iK(r,u),h=aK(o,"disclosure"),m=C.exports.useCallback(()=>{f||c(!1),s?.()},[f,s]),v=C.exports.useCallback(()=>{f||c(!0),i?.()},[f,i]),b=C.exports.useCallback(()=>{(p?m:v)()},[p,v,m]);return{isOpen:!!p,onOpen:v,onClose:m,onToggle:b,isControlled:f,getButtonProps:(x={})=>({...x,"aria-expanded":p,"aria-controls":h,onClick:aV(x.onClick,b)}),getDisclosureProps:(x={})=>({...x,hidden:!p,id:h})}}function JS(e){const t=Object.assign({},e);for(let n in t)t[n]===void 0&&delete t[n];return t}var ew=fe(function(t,n){const{htmlSize:r,...o}=t,i=Fr("Input",o),s=yt(o),u=KS(s),c=Yt("chakra-input",t.className);return ee.createElement(ie.input,{size:r,...u,__css:i.field,ref:n,className:c})});ew.displayName="Input";ew.id="Input";var[sK,R3]=Kt({name:"InputGroupStylesContext",errorMessage:`useInputGroupStyles returned is 'undefined'. Seems you forgot to wrap the components in "" `}),lK=fe(function(t,n){const r=Fr("Input",t),{children:o,className:i,...s}=yt(t),u=Yt("chakra-input__group",i),c={},f=qS(o),p=r.field;f.forEach(m=>{!r||(p&&m.type.id==="InputLeftElement"&&(c.paddingStart=p.height??p.h),p&&m.type.id==="InputRightElement"&&(c.paddingEnd=p.height??p.h),m.type.id==="InputRightAddon"&&(c.borderEndRadius=0),m.type.id==="InputLeftAddon"&&(c.borderStartRadius=0))});const h=f.map(m=>{var v,b;const x=JS({size:((v=m.props)==null?void 0:v.size)||t.size,variant:((b=m.props)==null?void 0:b.variant)||t.variant});return m.type.id!=="Input"?C.exports.cloneElement(m,x):C.exports.cloneElement(m,Object.assign(x,c,m.props))});return ee.createElement(ie.div,{className:u,ref:n,__css:{width:"100%",display:"flex",position:"relative"},...s},P(sK,{value:r,children:h}))});lK.displayName="InputGroup";var uK={left:{marginEnd:"-1px",borderEndRadius:0,borderEndColor:"transparent"},right:{marginStart:"-1px",borderStartRadius:0,borderStartColor:"transparent"}},cK=ie("div",{baseStyle:{flex:"0 0 auto",width:"auto",display:"flex",alignItems:"center",whiteSpace:"nowrap"}}),tw=fe(function(t,n){const{placement:r="left",...o}=t,i=uK[r]??{},s=R3();return P(cK,{ref:n,...o,__css:{...s.addon,...i}})});tw.displayName="InputAddon";var I3=fe(function(t,n){return P(tw,{ref:n,placement:"left",...t,className:Yt("chakra-input__left-addon",t.className)})});I3.displayName="InputLeftAddon";I3.id="InputLeftAddon";var M3=fe(function(t,n){return P(tw,{ref:n,placement:"right",...t,className:Yt("chakra-input__right-addon",t.className)})});M3.displayName="InputRightAddon";M3.id="InputRightAddon";var fK=ie("div",{baseStyle:{display:"flex",alignItems:"center",justifyContent:"center",position:"absolute",top:"0",zIndex:2}}),zg=fe(function(t,n){const{placement:r="left",...o}=t,i=R3(),s=i.field,c={[r==="left"?"insetStart":"insetEnd"]:"0",width:s?.height??s?.h,height:s?.height??s?.h,fontSize:s?.fontSize,...i.element};return P(fK,{ref:n,__css:c,...o})});zg.id="InputElement";zg.displayName="InputElement";var N3=fe(function(t,n){const{className:r,...o}=t,i=Yt("chakra-input__left-element",r);return P(zg,{ref:n,placement:"left",className:i,...o})});N3.id="InputLeftElement";N3.displayName="InputLeftElement";var D3=fe(function(t,n){const{className:r,...o}=t,i=Yt("chakra-input__right-element",r);return P(zg,{ref:n,placement:"right",className:i,...o})});D3.id="InputRightElement";D3.displayName="InputRightElement";function dK(e){const t=typeof e;return e!=null&&(t==="object"||t==="function")&&!Array.isArray(e)}Object.freeze(["base","sm","md","lg","xl","2xl"]);function Na(e,t){return Array.isArray(e)?e.map(n=>n===null?null:t(n)):dK(e)?Object.keys(e).reduce((n,r)=>(n[r]=t(e[r]),n),{}):e!=null?t(e):null}var pK=fe(function(e,t){const{ratio:n=4/3,children:r,className:o,...i}=e,s=C.exports.Children.only(r),u=Yt("chakra-aspect-ratio",o);return ee.createElement(ie.div,{ref:t,position:"relative",className:u,_before:{height:0,content:'""',display:"block",paddingBottom:Na(n,c=>`${1/c*100}%`)},__css:{"& > *:not(style)":{overflow:"hidden",position:"absolute",top:"0",right:"0",bottom:"0",left:"0",display:"flex",justifyContent:"center",alignItems:"center",width:"100%",height:"100%"},"& > img, & > video":{objectFit:"cover"}},...i},s)});pK.displayName="AspectRatio";var hK=fe(function(t,n){const r=Zn("Badge",t),{className:o,...i}=yt(t);return ee.createElement(ie.span,{ref:n,className:Yt("chakra-badge",t.className),...i,__css:{display:"inline-block",whiteSpace:"nowrap",verticalAlign:"middle",...r}})});hK.displayName="Badge";var xs=ie("div");xs.displayName="Box";var F3=fe(function(t,n){const{size:r,centerContent:o=!0,...i}=t;return P(xs,{ref:n,boxSize:r,__css:{...o?{display:"flex",alignItems:"center",justifyContent:"center"}:{},flexShrink:0,flexGrow:0},...i})});F3.displayName="Square";var mK=fe(function(t,n){const{size:r,...o}=t;return P(F3,{size:r,ref:n,borderRadius:"9999px",...o})});mK.displayName="Circle";var nw=ie("div",{baseStyle:{display:"flex",alignItems:"center",justifyContent:"center"}});nw.displayName="Center";var gK={horizontal:{insetStart:"50%",transform:"translateX(-50%)"},vertical:{top:"50%",transform:"translateY(-50%)"},both:{insetStart:"50%",top:"50%",transform:"translate(-50%, -50%)"}};fe(function(t,n){const{axis:r="both",...o}=t;return ee.createElement(ie.div,{ref:n,__css:gK[r],...o,position:"absolute"})});var vK=fe(function(t,n){const r=Zn("Code",t),{className:o,...i}=yt(t);return ee.createElement(ie.code,{ref:n,className:Yt("chakra-code",t.className),...i,__css:{display:"inline-block",...r}})});vK.displayName="Code";var yK=fe(function(t,n){const{className:r,centerContent:o,...i}=yt(t),s=Zn("Container",t);return ee.createElement(ie.div,{ref:n,className:Yt("chakra-container",r),...i,__css:{...s,...o&&{display:"flex",flexDirection:"column",alignItems:"center"}}})});yK.displayName="Container";var bK=fe(function(t,n){const{borderLeftWidth:r,borderBottomWidth:o,borderTopWidth:i,borderRightWidth:s,borderWidth:u,borderStyle:c,borderColor:f,...p}=Zn("Divider",t),{className:h,orientation:m="horizontal",__css:v,...b}=yt(t),x={vertical:{borderLeftWidth:r||s||u||"1px",height:"100%"},horizontal:{borderBottomWidth:o||i||u||"1px",width:"100%"}};return ee.createElement(ie.hr,{ref:n,"aria-orientation":m,...b,__css:{...p,border:"0",borderColor:f,borderStyle:c,...x[m],...v},className:Yt("chakra-divider",h)})});bK.displayName="Divider";var qe=fe(function(t,n){const{direction:r,align:o,justify:i,wrap:s,basis:u,grow:c,shrink:f,...p}=t,h={display:"flex",flexDirection:r,alignItems:o,justifyContent:i,flexWrap:s,flexBasis:u,flexGrow:c,flexShrink:f};return ee.createElement(ie.div,{ref:n,__css:h,...p})});qe.displayName="Flex";var rw=fe(function(t,n){const{templateAreas:r,gap:o,rowGap:i,columnGap:s,column:u,row:c,autoFlow:f,autoRows:p,templateRows:h,autoColumns:m,templateColumns:v,...b}=t,x={display:"grid",gridTemplateAreas:r,gridGap:o,gridRowGap:i,gridColumnGap:s,gridAutoColumns:m,gridColumn:u,gridRow:c,gridAutoFlow:f,gridAutoRows:p,gridTemplateRows:h,gridTemplateColumns:v};return ee.createElement(ie.div,{ref:n,__css:x,...b})});rw.displayName="Grid";function rP(e){return Na(e,t=>t==="auto"?"auto":`span ${t}/span ${t}`)}var la=fe(function(t,n){const{area:r,colSpan:o,colStart:i,colEnd:s,rowEnd:u,rowSpan:c,rowStart:f,...p}=t,h=JS({gridArea:r,gridColumn:rP(o),gridRow:rP(c),gridColumnStart:i,gridColumnEnd:s,gridRowStart:f,gridRowEnd:u});return ee.createElement(ie.div,{ref:n,__css:h,...p})});la.displayName="GridItem";var ow=fe(function(t,n){const r=Zn("Heading",t),{className:o,...i}=yt(t);return ee.createElement(ie.h2,{ref:n,className:Yt("chakra-heading",t.className),...i,__css:r})});ow.displayName="Heading";fe(function(t,n){const r=Zn("Mark",t),o=yt(t);return P(xs,{ref:n,...o,as:"mark",__css:{bg:"transparent",whiteSpace:"nowrap",...r}})});var xK=fe(function(t,n){const r=Zn("Kbd",t),{className:o,...i}=yt(t);return ee.createElement(ie.kbd,{ref:n,className:Yt("chakra-kbd",o),...i,__css:{fontFamily:"mono",...r}})});xK.displayName="Kbd";var Sm=fe(function(t,n){const r=Zn("Link",t),{className:o,isExternal:i,...s}=yt(t);return ee.createElement(ie.a,{target:i?"_blank":void 0,rel:i?"noopener":void 0,ref:n,className:Yt("chakra-link",o),...s,__css:r})});Sm.displayName="Link";fe(function(t,n){const{isExternal:r,target:o,rel:i,className:s,...u}=t;return ee.createElement(ie.a,{...u,ref:n,className:Yt("chakra-linkbox__overlay",s),rel:r?"noopener noreferrer":i,target:r?"_blank":o,__css:{position:"static","&::before":{content:"''",cursor:"inherit",display:"block",position:"absolute",top:0,left:0,zIndex:0,width:"100%",height:"100%"}}})});fe(function(t,n){const{className:r,...o}=t;return ee.createElement(ie.div,{ref:n,position:"relative",...o,className:Yt("chakra-linkbox",r),__css:{"a[href]:not(.chakra-linkbox__overlay), abbr[title]":{position:"relative",zIndex:1}}})});var[SK,L3]=Kt({name:"ListStylesContext",errorMessage:`useListStyles returned is 'undefined'. Seems you forgot to wrap the components in "" `}),Vg=fe(function(t,n){const r=Fr("List",t),{children:o,styleType:i="none",stylePosition:s,spacing:u,...c}=yt(t),f=qS(o),h=u?{["& > *:not(style) ~ *:not(style)"]:{mt:u}}:{};return ee.createElement(SK,{value:r},ee.createElement(ie.ul,{ref:n,listStyleType:i,listStylePosition:s,role:"list",__css:{...r.container,...h},...c},f))});Vg.displayName="List";var wK=fe((e,t)=>{const{as:n,...r}=e;return P(Vg,{ref:t,as:"ol",styleType:"decimal",marginStart:"1em",...r})});wK.displayName="OrderedList";var _K=fe(function(t,n){const{as:r,...o}=t;return P(Vg,{ref:n,as:"ul",styleType:"initial",marginStart:"1em",...o})});_K.displayName="UnorderedList";var $3=fe(function(t,n){const r=L3();return ee.createElement(ie.li,{ref:n,...t,__css:r.item})});$3.displayName="ListItem";var CK=fe(function(t,n){const r=L3();return P(Po,{ref:n,role:"presentation",...t,__css:r.icon})});CK.displayName="ListIcon";var kK=fe(function(t,n){const{columns:r,spacingX:o,spacingY:i,spacing:s,minChildWidth:u,...c}=t,f=yS(),p=u?PK(u,f):AK(r);return P(rw,{ref:n,gap:s,columnGap:o,rowGap:i,templateColumns:p,...c})});kK.displayName="SimpleGrid";function EK(e){return typeof e=="number"?`${e}px`:e}function PK(e,t){return Na(e,n=>{const r=_V("sizes",n,EK(n))(t);return n===null?null:`repeat(auto-fit, minmax(${r}, 1fr))`})}function AK(e){return Na(e,t=>t===null?null:`repeat(${t}, minmax(0, 1fr))`)}var B3=ie("div",{baseStyle:{flex:1,justifySelf:"stretch",alignSelf:"stretch"}});B3.displayName="Spacer";var Ob="& > *:not(style) ~ *:not(style)";function TK(e){const{spacing:t,direction:n}=e,r={column:{marginTop:t,marginEnd:0,marginBottom:0,marginStart:0},row:{marginTop:0,marginEnd:0,marginBottom:0,marginStart:t},"column-reverse":{marginTop:0,marginEnd:0,marginBottom:t,marginStart:0},"row-reverse":{marginTop:0,marginEnd:t,marginBottom:0,marginStart:0}};return{flexDirection:n,[Ob]:Na(n,o=>r[o])}}function OK(e){const{spacing:t,direction:n}=e,r={column:{my:t,mx:0,borderLeftWidth:0,borderBottomWidth:"1px"},"column-reverse":{my:t,mx:0,borderLeftWidth:0,borderBottomWidth:"1px"},row:{mx:t,my:0,borderLeftWidth:"1px",borderBottomWidth:0},"row-reverse":{mx:t,my:0,borderLeftWidth:"1px",borderBottomWidth:0}};return{"&":Na(n,o=>r[o])}}var z3=e=>ee.createElement(ie.div,{className:"chakra-stack__item",...e,__css:{display:"inline-block",flex:"0 0 auto",minWidth:0,...e.__css}});z3.displayName="StackItem";var iw=fe((e,t)=>{const{isInline:n,direction:r,align:o,justify:i,spacing:s="0.5rem",wrap:u,children:c,divider:f,className:p,shouldWrapChildren:h,...m}=e,v=n?"row":r??"column",b=C.exports.useMemo(()=>TK({direction:v,spacing:s}),[v,s]),x=C.exports.useMemo(()=>OK({spacing:s,direction:v}),[s,v]),k=!!f,S=!h&&!k,y=qS(c),w=S?y:y.map((O,N)=>{const D=typeof O.key<"u"?O.key:N,V=N+1===y.length,j=h?P(z3,{children:O},D):O;if(!k)return j;const te=C.exports.cloneElement(f,{__css:x}),Se=V?null:te;return ce(C.exports.Fragment,{children:[j,Se]},D)}),E=Yt("chakra-stack",p);return ee.createElement(ie.div,{ref:t,display:"flex",alignItems:o,justifyContent:i,flexDirection:b.flexDirection,flexWrap:u,className:E,__css:k?{}:{[Ob]:b[Ob]},...m},w)});iw.displayName="Stack";var wm=fe((e,t)=>P(iw,{align:"center",...e,direction:"row",ref:t}));wm.displayName="HStack";var RK=fe((e,t)=>P(iw,{align:"center",...e,direction:"column",ref:t}));RK.displayName="VStack";var Lt=fe(function(t,n){const r=Zn("Text",t),{className:o,align:i,decoration:s,casing:u,...c}=yt(t),f=JS({textAlign:t.align,textDecoration:t.decoration,textTransform:t.casing});return ee.createElement(ie.p,{ref:n,className:Yt("chakra-text",t.className),...f,...c,__css:r})});Lt.displayName="Text";function oP(e){return typeof e=="number"?`${e}px`:e}var IK=fe(function(t,n){const{spacing:r="0.5rem",spacingX:o,spacingY:i,children:s,justify:u,direction:c,align:f,className:p,shouldWrapChildren:h,...m}=t,v=C.exports.useMemo(()=>{const{spacingX:x=r,spacingY:k=r}={spacingX:o,spacingY:i};return{"--chakra-wrap-x-spacing":S=>Na(x,y=>oP(q1("space",y)(S))),"--chakra-wrap-y-spacing":S=>Na(k,y=>oP(q1("space",y)(S))),"--wrap-x-spacing":"calc(var(--chakra-wrap-x-spacing) / 2)","--wrap-y-spacing":"calc(var(--chakra-wrap-y-spacing) / 2)",display:"flex",flexWrap:"wrap",justifyContent:u,alignItems:f,flexDirection:c,listStyleType:"none",padding:"0",margin:"calc(var(--wrap-y-spacing) * -1) calc(var(--wrap-x-spacing) * -1)","& > *:not(style)":{margin:"var(--wrap-y-spacing) var(--wrap-x-spacing)"}}},[r,o,i,u,f,c]),b=h?C.exports.Children.map(s,(x,k)=>P(V3,{children:x},k)):s;return ee.createElement(ie.div,{ref:n,className:Yt("chakra-wrap",p),overflow:"hidden",...m},ee.createElement(ie.ul,{className:"chakra-wrap__list",__css:v},b))});IK.displayName="Wrap";var V3=fe(function(t,n){const{className:r,...o}=t;return ee.createElement(ie.li,{ref:n,__css:{display:"flex",alignItems:"flex-start"},className:Yt("chakra-wrap__listitem",r),...o})});V3.displayName="WrapItem";var MK={body:{classList:{add(){},remove(){}}},addEventListener(){},removeEventListener(){},activeElement:{blur(){},nodeName:""},querySelector(){return null},querySelectorAll(){return[]},getElementById(){return null},createEvent(){return{initEvent(){}}},createElement(){return{children:[],childNodes:[],style:{},setAttribute(){},getElementsByTagName(){return[]}}}},j3=MK,dl=()=>{},NK={document:j3,navigator:{userAgent:""},CustomEvent:function(){return this},addEventListener:dl,removeEventListener:dl,getComputedStyle(){return{getPropertyValue(){return""}}},matchMedia(){return{matches:!1,addListener:dl,removeListener:dl}},requestAnimationFrame(e){return typeof setTimeout>"u"?(e(),null):setTimeout(e,0)},cancelAnimationFrame(e){typeof setTimeout>"u"||clearTimeout(e)},setTimeout:()=>0,clearTimeout:dl,setInterval:()=>0,clearInterval:dl},DK=NK,FK={window:DK,document:j3},W3=typeof window<"u"?{window,document}:FK,U3=C.exports.createContext(W3);U3.displayName="EnvironmentContext";function H3(e){const{children:t,environment:n}=e,[r,o]=C.exports.useState(null),[i,s]=C.exports.useState(!1);C.exports.useEffect(()=>s(!0),[]);const u=C.exports.useMemo(()=>{if(n)return n;const c=r?.ownerDocument,f=r?.ownerDocument.defaultView;return c?{document:c,window:f}:W3},[r,n]);return ce(U3.Provider,{value:u,children:[t,!n&&i&&P("span",{id:"__chakra_env",hidden:!0,ref:c=>{C.exports.startTransition(()=>{c&&o(c)})}})]})}H3.displayName="EnvironmentProvider";function LK(e){return e!=null&&typeof e=="object"&&"nodeType"in e&&e.nodeType===Node.ELEMENT_NODE}function $K(e){if(!LK(e))return!1;const t=e.ownerDocument.defaultView??window;return e instanceof t.HTMLElement}var BK=e=>e.hasAttribute("tabindex");function zK(e){return Boolean(e.getAttribute("disabled"))===!0||Boolean(e.getAttribute("aria-disabled"))===!0}function G3(e){return e.parentElement&&G3(e.parentElement)?!0:e.hidden}function VK(e){const t=e.getAttribute("contenteditable");return t!=="false"&&t!=null}function jK(e){if(!$K(e)||G3(e)||zK(e))return!1;const{localName:t}=e;if(["input","select","textarea","button"].indexOf(t)>=0)return!0;const r={a:()=>e.hasAttribute("href"),audio:()=>e.hasAttribute("controls"),video:()=>e.hasAttribute("controls")};return t in r?r[t]():VK(e)?!0:BK(e)}var WK=["input:not([disabled])","select:not([disabled])","textarea:not([disabled])","embed","iframe","object","a[href]","area[href]","button:not([disabled])","[tabindex]","audio[controls]","video[controls]","*[tabindex]:not([aria-disabled])","*[contenteditable]"],UK=WK.join(),HK=e=>e.offsetWidth>0&&e.offsetHeight>0;function GK(e){const t=Array.from(e.querySelectorAll(UK));return t.unshift(e),t.filter(n=>jK(n)&&HK(n))}var ur="top",no="bottom",ro="right",cr="left",aw="auto",Jf=[ur,no,ro,cr],uu="start",Ef="end",qK="clippingParents",q3="viewport",dc="popper",KK="reference",iP=Jf.reduce(function(e,t){return e.concat([t+"-"+uu,t+"-"+Ef])},[]),K3=[].concat(Jf,[aw]).reduce(function(e,t){return e.concat([t,t+"-"+uu,t+"-"+Ef])},[]),YK="beforeRead",XK="read",ZK="afterRead",QK="beforeMain",JK="main",eY="afterMain",tY="beforeWrite",nY="write",rY="afterWrite",oY=[YK,XK,ZK,QK,JK,eY,tY,nY,rY];function ni(e){return e?(e.nodeName||"").toLowerCase():null}function oo(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Is(e){var t=oo(e).Element;return e instanceof t||e instanceof Element}function Jr(e){var t=oo(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function sw(e){if(typeof ShadowRoot>"u")return!1;var t=oo(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function iY(e){var t=e.state;Object.keys(t.elements).forEach(function(n){var r=t.styles[n]||{},o=t.attributes[n]||{},i=t.elements[n];!Jr(i)||!ni(i)||(Object.assign(i.style,r),Object.keys(o).forEach(function(s){var u=o[s];u===!1?i.removeAttribute(s):i.setAttribute(s,u===!0?"":u)}))})}function aY(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(r){var o=t.elements[r],i=t.attributes[r]||{},s=Object.keys(t.styles.hasOwnProperty(r)?t.styles[r]:n[r]),u=s.reduce(function(c,f){return c[f]="",c},{});!Jr(o)||!ni(o)||(Object.assign(o.style,u),Object.keys(i).forEach(function(c){o.removeAttribute(c)}))})}}const sY={name:"applyStyles",enabled:!0,phase:"write",fn:iY,effect:aY,requires:["computeStyles"]};function Zo(e){return e.split("-")[0]}var Ss=Math.max,_m=Math.min,cu=Math.round;function Rb(){var e=navigator.userAgentData;return e!=null&&e.brands?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function Y3(){return!/^((?!chrome|android).)*safari/i.test(Rb())}function fu(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var r=e.getBoundingClientRect(),o=1,i=1;t&&Jr(e)&&(o=e.offsetWidth>0&&cu(r.width)/e.offsetWidth||1,i=e.offsetHeight>0&&cu(r.height)/e.offsetHeight||1);var s=Is(e)?oo(e):window,u=s.visualViewport,c=!Y3()&&n,f=(r.left+(c&&u?u.offsetLeft:0))/o,p=(r.top+(c&&u?u.offsetTop:0))/i,h=r.width/o,m=r.height/i;return{width:h,height:m,top:p,right:f+h,bottom:p+m,left:f,x:f,y:p}}function lw(e){var t=fu(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function X3(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&sw(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function Li(e){return oo(e).getComputedStyle(e)}function lY(e){return["table","td","th"].indexOf(ni(e))>=0}function ja(e){return((Is(e)?e.ownerDocument:e.document)||window.document).documentElement}function jg(e){return ni(e)==="html"?e:e.assignedSlot||e.parentNode||(sw(e)?e.host:null)||ja(e)}function aP(e){return!Jr(e)||Li(e).position==="fixed"?null:e.offsetParent}function uY(e){var t=/firefox/i.test(Rb()),n=/Trident/i.test(Rb());if(n&&Jr(e)){var r=Li(e);if(r.position==="fixed")return null}var o=jg(e);for(sw(o)&&(o=o.host);Jr(o)&&["html","body"].indexOf(ni(o))<0;){var i=Li(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 ed(e){for(var t=oo(e),n=aP(e);n&&lY(n)&&Li(n).position==="static";)n=aP(n);return n&&(ni(n)==="html"||ni(n)==="body"&&Li(n).position==="static")?t:n||uY(e)||t}function uw(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Vc(e,t,n){return Ss(e,_m(t,n))}function cY(e,t,n){var r=Vc(e,t,n);return r>n?n:r}function Z3(){return{top:0,right:0,bottom:0,left:0}}function Q3(e){return Object.assign({},Z3(),e)}function J3(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}var fY=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,Q3(typeof t!="number"?t:J3(t,Jf))};function dY(e){var t,n=e.state,r=e.name,o=e.options,i=n.elements.arrow,s=n.modifiersData.popperOffsets,u=Zo(n.placement),c=uw(u),f=[cr,ro].indexOf(u)>=0,p=f?"height":"width";if(!(!i||!s)){var h=fY(o.padding,n),m=lw(i),v=c==="y"?ur:cr,b=c==="y"?no:ro,x=n.rects.reference[p]+n.rects.reference[c]-s[c]-n.rects.popper[p],k=s[c]-n.rects.reference[c],S=ed(i),y=S?c==="y"?S.clientHeight||0:S.clientWidth||0:0,w=x/2-k/2,E=h[v],O=y-m[p]-h[b],N=y/2-m[p]/2+w,D=Vc(E,N,O),V=c;n.modifiersData[r]=(t={},t[V]=D,t.centerOffset=D-N,t)}}function pY(e){var t=e.state,n=e.options,r=n.element,o=r===void 0?"[data-popper-arrow]":r;o!=null&&(typeof o=="string"&&(o=t.elements.popper.querySelector(o),!o)||!X3(t.elements.popper,o)||(t.elements.arrow=o))}const hY={name:"arrow",enabled:!0,phase:"main",fn:dY,effect:pY,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function du(e){return e.split("-")[1]}var mY={top:"auto",right:"auto",bottom:"auto",left:"auto"};function gY(e){var t=e.x,n=e.y,r=window,o=r.devicePixelRatio||1;return{x:cu(t*o)/o||0,y:cu(n*o)/o||0}}function sP(e){var t,n=e.popper,r=e.popperRect,o=e.placement,i=e.variation,s=e.offsets,u=e.position,c=e.gpuAcceleration,f=e.adaptive,p=e.roundOffsets,h=e.isFixed,m=s.x,v=m===void 0?0:m,b=s.y,x=b===void 0?0:b,k=typeof p=="function"?p({x:v,y:x}):{x:v,y:x};v=k.x,x=k.y;var S=s.hasOwnProperty("x"),y=s.hasOwnProperty("y"),w=cr,E=ur,O=window;if(f){var N=ed(n),D="clientHeight",V="clientWidth";if(N===oo(n)&&(N=ja(n),Li(N).position!=="static"&&u==="absolute"&&(D="scrollHeight",V="scrollWidth")),N=N,o===ur||(o===cr||o===ro)&&i===Ef){E=no;var Y=h&&N===O&&O.visualViewport?O.visualViewport.height:N[D];x-=Y-r.height,x*=c?1:-1}if(o===cr||(o===ur||o===no)&&i===Ef){w=ro;var j=h&&N===O&&O.visualViewport?O.visualViewport.width:N[V];v-=j-r.width,v*=c?1:-1}}var te=Object.assign({position:u},f&&mY),Se=p===!0?gY({x:v,y:x}):{x:v,y:x};if(v=Se.x,x=Se.y,c){var ke;return Object.assign({},te,(ke={},ke[E]=y?"0":"",ke[w]=S?"0":"",ke.transform=(O.devicePixelRatio||1)<=1?"translate("+v+"px, "+x+"px)":"translate3d("+v+"px, "+x+"px, 0)",ke))}return Object.assign({},te,(t={},t[E]=y?x+"px":"",t[w]=S?v+"px":"",t.transform="",t))}function vY(e){var t=e.state,n=e.options,r=n.gpuAcceleration,o=r===void 0?!0:r,i=n.adaptive,s=i===void 0?!0:i,u=n.roundOffsets,c=u===void 0?!0:u,f={placement:Zo(t.placement),variation:du(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,sP(Object.assign({},f,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:s,roundOffsets:c})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,sP(Object.assign({},f,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:c})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const yY={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:vY,data:{}};var Bp={passive:!0};function bY(e){var t=e.state,n=e.instance,r=e.options,o=r.scroll,i=o===void 0?!0:o,s=r.resize,u=s===void 0?!0:s,c=oo(t.elements.popper),f=[].concat(t.scrollParents.reference,t.scrollParents.popper);return i&&f.forEach(function(p){p.addEventListener("scroll",n.update,Bp)}),u&&c.addEventListener("resize",n.update,Bp),function(){i&&f.forEach(function(p){p.removeEventListener("scroll",n.update,Bp)}),u&&c.removeEventListener("resize",n.update,Bp)}}const xY={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:bY,data:{}};var SY={left:"right",right:"left",bottom:"top",top:"bottom"};function xh(e){return e.replace(/left|right|bottom|top/g,function(t){return SY[t]})}var wY={start:"end",end:"start"};function lP(e){return e.replace(/start|end/g,function(t){return wY[t]})}function cw(e){var t=oo(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function fw(e){return fu(ja(e)).left+cw(e).scrollLeft}function _Y(e,t){var n=oo(e),r=ja(e),o=n.visualViewport,i=r.clientWidth,s=r.clientHeight,u=0,c=0;if(o){i=o.width,s=o.height;var f=Y3();(f||!f&&t==="fixed")&&(u=o.offsetLeft,c=o.offsetTop)}return{width:i,height:s,x:u+fw(e),y:c}}function CY(e){var t,n=ja(e),r=cw(e),o=(t=e.ownerDocument)==null?void 0:t.body,i=Ss(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),s=Ss(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),u=-r.scrollLeft+fw(e),c=-r.scrollTop;return Li(o||n).direction==="rtl"&&(u+=Ss(n.clientWidth,o?o.clientWidth:0)-i),{width:i,height:s,x:u,y:c}}function dw(e){var t=Li(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+r)}function e5(e){return["html","body","#document"].indexOf(ni(e))>=0?e.ownerDocument.body:Jr(e)&&dw(e)?e:e5(jg(e))}function jc(e,t){var n;t===void 0&&(t=[]);var r=e5(e),o=r===((n=e.ownerDocument)==null?void 0:n.body),i=oo(r),s=o?[i].concat(i.visualViewport||[],dw(r)?r:[]):r,u=t.concat(s);return o?u:u.concat(jc(jg(s)))}function Ib(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function kY(e,t){var n=fu(e,!1,t==="fixed");return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}function uP(e,t,n){return t===q3?Ib(_Y(e,n)):Is(t)?kY(t,n):Ib(CY(ja(e)))}function EY(e){var t=jc(jg(e)),n=["absolute","fixed"].indexOf(Li(e).position)>=0,r=n&&Jr(e)?ed(e):e;return Is(r)?t.filter(function(o){return Is(o)&&X3(o,r)&&ni(o)!=="body"}):[]}function PY(e,t,n,r){var o=t==="clippingParents"?EY(e):[].concat(t),i=[].concat(o,[n]),s=i[0],u=i.reduce(function(c,f){var p=uP(e,f,r);return c.top=Ss(p.top,c.top),c.right=_m(p.right,c.right),c.bottom=_m(p.bottom,c.bottom),c.left=Ss(p.left,c.left),c},uP(e,s,r));return u.width=u.right-u.left,u.height=u.bottom-u.top,u.x=u.left,u.y=u.top,u}function t5(e){var t=e.reference,n=e.element,r=e.placement,o=r?Zo(r):null,i=r?du(r):null,s=t.x+t.width/2-n.width/2,u=t.y+t.height/2-n.height/2,c;switch(o){case ur:c={x:s,y:t.y-n.height};break;case no:c={x:s,y:t.y+t.height};break;case ro:c={x:t.x+t.width,y:u};break;case cr:c={x:t.x-n.width,y:u};break;default:c={x:t.x,y:t.y}}var f=o?uw(o):null;if(f!=null){var p=f==="y"?"height":"width";switch(i){case uu:c[f]=c[f]-(t[p]/2-n[p]/2);break;case Ef:c[f]=c[f]+(t[p]/2-n[p]/2);break}}return c}function Pf(e,t){t===void 0&&(t={});var n=t,r=n.placement,o=r===void 0?e.placement:r,i=n.strategy,s=i===void 0?e.strategy:i,u=n.boundary,c=u===void 0?qK:u,f=n.rootBoundary,p=f===void 0?q3:f,h=n.elementContext,m=h===void 0?dc:h,v=n.altBoundary,b=v===void 0?!1:v,x=n.padding,k=x===void 0?0:x,S=Q3(typeof k!="number"?k:J3(k,Jf)),y=m===dc?KK:dc,w=e.rects.popper,E=e.elements[b?y:m],O=PY(Is(E)?E:E.contextElement||ja(e.elements.popper),c,p,s),N=fu(e.elements.reference),D=t5({reference:N,element:w,strategy:"absolute",placement:o}),V=Ib(Object.assign({},w,D)),Y=m===dc?V:N,j={top:O.top-Y.top+S.top,bottom:Y.bottom-O.bottom+S.bottom,left:O.left-Y.left+S.left,right:Y.right-O.right+S.right},te=e.modifiersData.offset;if(m===dc&&te){var Se=te[o];Object.keys(j).forEach(function(ke){var xe=[ro,no].indexOf(ke)>=0?1:-1,_e=[ur,no].indexOf(ke)>=0?"y":"x";j[ke]+=Se[_e]*xe})}return j}function AY(e,t){t===void 0&&(t={});var n=t,r=n.placement,o=n.boundary,i=n.rootBoundary,s=n.padding,u=n.flipVariations,c=n.allowedAutoPlacements,f=c===void 0?K3:c,p=du(r),h=p?u?iP:iP.filter(function(b){return du(b)===p}):Jf,m=h.filter(function(b){return f.indexOf(b)>=0});m.length===0&&(m=h);var v=m.reduce(function(b,x){return b[x]=Pf(e,{placement:x,boundary:o,rootBoundary:i,padding:s})[Zo(x)],b},{});return Object.keys(v).sort(function(b,x){return v[b]-v[x]})}function TY(e){if(Zo(e)===aw)return[];var t=xh(e);return[lP(e),t,lP(t)]}function OY(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var o=n.mainAxis,i=o===void 0?!0:o,s=n.altAxis,u=s===void 0?!0:s,c=n.fallbackPlacements,f=n.padding,p=n.boundary,h=n.rootBoundary,m=n.altBoundary,v=n.flipVariations,b=v===void 0?!0:v,x=n.allowedAutoPlacements,k=t.options.placement,S=Zo(k),y=S===k,w=c||(y||!b?[xh(k)]:TY(k)),E=[k].concat(w).reduce(function(se,pe){return se.concat(Zo(pe)===aw?AY(t,{placement:pe,boundary:p,rootBoundary:h,padding:f,flipVariations:b,allowedAutoPlacements:x}):pe)},[]),O=t.rects.reference,N=t.rects.popper,D=new Map,V=!0,Y=E[0],j=0;j=0,_e=xe?"width":"height",ge=Pf(t,{placement:te,boundary:p,rootBoundary:h,altBoundary:m,padding:f}),Pe=xe?ke?ro:cr:ke?no:ur;O[_e]>N[_e]&&(Pe=xh(Pe));var W=xh(Pe),X=[];if(i&&X.push(ge[Se]<=0),u&&X.push(ge[Pe]<=0,ge[W]<=0),X.every(function(se){return se})){Y=te,V=!1;break}D.set(te,X)}if(V)for(var q=b?3:1,I=function(pe){var me=E.find(function(Ee){var ue=D.get(Ee);if(ue)return ue.slice(0,pe).every(function(Ae){return Ae})});if(me)return Y=me,"break"},H=q;H>0;H--){var ae=I(H);if(ae==="break")break}t.placement!==Y&&(t.modifiersData[r]._skip=!0,t.placement=Y,t.reset=!0)}}const RY={name:"flip",enabled:!0,phase:"main",fn:OY,requiresIfExists:["offset"],data:{_skip:!1}};function cP(e,t,n){return n===void 0&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function fP(e){return[ur,ro,no,cr].some(function(t){return e[t]>=0})}function IY(e){var t=e.state,n=e.name,r=t.rects.reference,o=t.rects.popper,i=t.modifiersData.preventOverflow,s=Pf(t,{elementContext:"reference"}),u=Pf(t,{altBoundary:!0}),c=cP(s,r),f=cP(u,o,i),p=fP(c),h=fP(f);t.modifiersData[n]={referenceClippingOffsets:c,popperEscapeOffsets:f,isReferenceHidden:p,hasPopperEscaped:h},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":p,"data-popper-escaped":h})}const MY={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:IY};function NY(e,t,n){var r=Zo(e),o=[cr,ur].indexOf(r)>=0?-1:1,i=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,s=i[0],u=i[1];return s=s||0,u=(u||0)*o,[cr,ro].indexOf(r)>=0?{x:u,y:s}:{x:s,y:u}}function DY(e){var t=e.state,n=e.options,r=e.name,o=n.offset,i=o===void 0?[0,0]:o,s=K3.reduce(function(p,h){return p[h]=NY(h,t.rects,i),p},{}),u=s[t.placement],c=u.x,f=u.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=c,t.modifiersData.popperOffsets.y+=f),t.modifiersData[r]=s}const FY={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:DY};function LY(e){var t=e.state,n=e.name;t.modifiersData[n]=t5({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}const $Y={name:"popperOffsets",enabled:!0,phase:"read",fn:LY,data:{}};function BY(e){return e==="x"?"y":"x"}function zY(e){var t=e.state,n=e.options,r=e.name,o=n.mainAxis,i=o===void 0?!0:o,s=n.altAxis,u=s===void 0?!1:s,c=n.boundary,f=n.rootBoundary,p=n.altBoundary,h=n.padding,m=n.tether,v=m===void 0?!0:m,b=n.tetherOffset,x=b===void 0?0:b,k=Pf(t,{boundary:c,rootBoundary:f,padding:h,altBoundary:p}),S=Zo(t.placement),y=du(t.placement),w=!y,E=uw(S),O=BY(E),N=t.modifiersData.popperOffsets,D=t.rects.reference,V=t.rects.popper,Y=typeof x=="function"?x(Object.assign({},t.rects,{placement:t.placement})):x,j=typeof Y=="number"?{mainAxis:Y,altAxis:Y}:Object.assign({mainAxis:0,altAxis:0},Y),te=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,Se={x:0,y:0};if(!!N){if(i){var ke,xe=E==="y"?ur:cr,_e=E==="y"?no:ro,ge=E==="y"?"height":"width",Pe=N[E],W=Pe+k[xe],X=Pe-k[_e],q=v?-V[ge]/2:0,I=y===uu?D[ge]:V[ge],H=y===uu?-V[ge]:-D[ge],ae=t.elements.arrow,se=v&&ae?lw(ae):{width:0,height:0},pe=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:Z3(),me=pe[xe],Ee=pe[_e],ue=Vc(0,D[ge],se[ge]),Ae=w?D[ge]/2-q-ue-me-j.mainAxis:I-ue-me-j.mainAxis,Ne=w?-D[ge]/2+q+ue+Ee+j.mainAxis:H+ue+Ee+j.mainAxis,mt=t.elements.arrow&&ed(t.elements.arrow),It=mt?E==="y"?mt.clientTop||0:mt.clientLeft||0:0,En=(ke=te?.[E])!=null?ke:0,ve=Pe+Ae-En-It,Mt=Pe+Ne-En,Zt=Vc(v?_m(W,ve):W,Pe,v?Ss(X,Mt):X);N[E]=Zt,Se[E]=Zt-Pe}if(u){var it,hr=E==="x"?ur:cr,mr=E==="x"?no:ro,bt=N[O],_t=O==="y"?"height":"width",Qt=bt+k[hr],zt=bt-k[mr],le=[ur,cr].indexOf(S)!==-1,we=(it=te?.[O])!=null?it:0,at=le?Qt:bt-D[_t]-V[_t]-we+j.altAxis,nt=le?bt+D[_t]+V[_t]-we-j.altAxis:zt,ne=v&&le?cY(at,bt,nt):Vc(v?at:Qt,bt,v?nt:zt);N[O]=ne,Se[O]=ne-bt}t.modifiersData[r]=Se}}const VY={name:"preventOverflow",enabled:!0,phase:"main",fn:zY,requiresIfExists:["offset"]};function jY(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function WY(e){return e===oo(e)||!Jr(e)?cw(e):jY(e)}function UY(e){var t=e.getBoundingClientRect(),n=cu(t.width)/e.offsetWidth||1,r=cu(t.height)/e.offsetHeight||1;return n!==1||r!==1}function HY(e,t,n){n===void 0&&(n=!1);var r=Jr(t),o=Jr(t)&&UY(t),i=ja(t),s=fu(e,o,n),u={scrollLeft:0,scrollTop:0},c={x:0,y:0};return(r||!r&&!n)&&((ni(t)!=="body"||dw(i))&&(u=WY(t)),Jr(t)?(c=fu(t,!0),c.x+=t.clientLeft,c.y+=t.clientTop):i&&(c.x=fw(i))),{x:s.left+u.scrollLeft-c.x,y:s.top+u.scrollTop-c.y,width:s.width,height:s.height}}function GY(e){var t=new Map,n=new Set,r=[];e.forEach(function(i){t.set(i.name,i)});function o(i){n.add(i.name);var s=[].concat(i.requires||[],i.requiresIfExists||[]);s.forEach(function(u){if(!n.has(u)){var c=t.get(u);c&&o(c)}}),r.push(i)}return e.forEach(function(i){n.has(i.name)||o(i)}),r}function qY(e){var t=GY(e);return oY.reduce(function(n,r){return n.concat(t.filter(function(o){return o.phase===r}))},[])}function KY(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function YY(e){var t=e.reduce(function(n,r){var o=n[r.name];return n[r.name]=o?Object.assign({},o,r,{options:Object.assign({},o.options,r.options),data:Object.assign({},o.data,r.data)}):r,n},{});return Object.keys(t).map(function(n){return t[n]})}var dP={placement:"bottom",modifiers:[],strategy:"absolute"};function pP(){for(var e=arguments.length,t=new Array(e),n=0;n({var:e,varRef:t?`var(${e}, ${t})`:`var(${e})`}),wn={arrowShadowColor:pl("--popper-arrow-shadow-color"),arrowSize:pl("--popper-arrow-size","8px"),arrowSizeHalf:pl("--popper-arrow-size-half"),arrowBg:pl("--popper-arrow-bg"),transformOrigin:pl("--popper-transform-origin"),arrowOffset:pl("--popper-arrow-offset")};function JY(e){if(e.includes("top"))return"1px 1px 1px 0 var(--popper-arrow-shadow-color)";if(e.includes("bottom"))return"-1px -1px 1px 0 var(--popper-arrow-shadow-color)";if(e.includes("right"))return"-1px 1px 1px 0 var(--popper-arrow-shadow-color)";if(e.includes("left"))return"1px -1px 1px 0 var(--popper-arrow-shadow-color)"}var eX={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"},tX=e=>eX[e],hP={scroll:!0,resize:!0};function nX(e){let t;return typeof e=="object"?t={enabled:!0,options:{...hP,...e}}:t={enabled:e,options:hP},t}var rX={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`}},oX={name:"transformOrigin",enabled:!0,phase:"write",fn:({state:e})=>{mP(e)},effect:({state:e})=>()=>{mP(e)}},mP=e=>{e.elements.popper.style.setProperty(wn.transformOrigin.var,tX(e.placement))},iX={name:"positionArrow",enabled:!0,phase:"afterWrite",fn:({state:e})=>{aX(e)}},aX=e=>{var t;if(!e.placement)return;const n=sX(e.placement);if(((t=e.elements)==null?void 0:t.arrow)&&n){Object.assign(e.elements.arrow.style,{[n.property]:n.value,width:wn.arrowSize.varRef,height:wn.arrowSize.varRef,zIndex:-1});const r={[wn.arrowSizeHalf.var]:`calc(${wn.arrowSize.varRef} / 2)`,[wn.arrowOffset.var]:`calc(${wn.arrowSizeHalf.varRef} * -1)`};for(const o in r)e.elements.arrow.style.setProperty(o,r[o])}},sX=e=>{if(e.startsWith("top"))return{property:"bottom",value:wn.arrowOffset.varRef};if(e.startsWith("bottom"))return{property:"top",value:wn.arrowOffset.varRef};if(e.startsWith("left"))return{property:"right",value:wn.arrowOffset.varRef};if(e.startsWith("right"))return{property:"left",value:wn.arrowOffset.varRef}},lX={name:"innerArrow",enabled:!0,phase:"main",requires:["arrow"],fn:({state:e})=>{gP(e)},effect:({state:e})=>()=>{gP(e)}},gP=e=>{if(!e.elements.arrow)return;const t=e.elements.arrow.querySelector("[data-popper-arrow-inner]");!t||Object.assign(t.style,{transform:"rotate(45deg)",background:wn.arrowBg.varRef,top:0,left:0,width:"100%",height:"100%",position:"absolute",zIndex:"inherit",boxShadow:JY(e.placement)})},uX={"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"}},cX={"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 fX(e,t="ltr"){var n;const r=((n=uX[e])==null?void 0:n[t])||e;return t==="ltr"?r:cX[e]??r}function dX(e={}){const{enabled:t=!0,modifiers:n,placement:r="bottom",strategy:o="absolute",arrowPadding:i=8,eventListeners:s=!0,offset:u,gutter:c=8,flip:f=!0,boundary:p="clippingParents",preventOverflow:h=!0,matchWidth:m,direction:v="ltr"}=e,b=C.exports.useRef(null),x=C.exports.useRef(null),k=C.exports.useRef(null),S=fX(r,v),y=C.exports.useRef(()=>{}),w=C.exports.useCallback(()=>{var j;!t||!b.current||!x.current||((j=y.current)==null||j.call(y),k.current=QY(b.current,x.current,{placement:S,modifiers:[lX,iX,oX,{...rX,enabled:!!m},{name:"eventListeners",...nX(s)},{name:"arrow",options:{padding:i}},{name:"offset",options:{offset:u??[0,c]}},{name:"flip",enabled:!!f,options:{padding:8}},{name:"preventOverflow",enabled:!!h,options:{boundary:p}},...n??[]],strategy:o}),k.current.forceUpdate(),y.current=k.current.destroy)},[S,t,n,m,s,i,u,c,f,h,p,o]);C.exports.useEffect(()=>()=>{var j;!b.current&&!x.current&&((j=k.current)==null||j.destroy(),k.current=null)},[]);const E=C.exports.useCallback(j=>{b.current=j,w()},[w]),O=C.exports.useCallback((j={},te=null)=>({...j,ref:Kn(E,te)}),[E]),N=C.exports.useCallback(j=>{x.current=j,w()},[w]),D=C.exports.useCallback((j={},te=null)=>({...j,ref:Kn(N,te),style:{...j.style,position:o,minWidth:m?void 0:"max-content",inset:"0 auto auto 0"}}),[o,N,m]),V=C.exports.useCallback((j={},te=null)=>{const{size:Se,shadowColor:ke,bg:xe,style:_e,...ge}=j;return{...ge,ref:te,"data-popper-arrow":"",style:pX(j)}},[]),Y=C.exports.useCallback((j={},te=null)=>({...j,ref:te,"data-popper-arrow-inner":""}),[]);return{update(){var j;(j=k.current)==null||j.update()},forceUpdate(){var j;(j=k.current)==null||j.forceUpdate()},transformOrigin:wn.transformOrigin.varRef,referenceRef:E,popperRef:N,getPopperProps:D,getArrowProps:V,getArrowInnerProps:Y,getReferenceProps:O}}function pX(e){const{size:t,shadowColor:n,bg:r,style:o}=e,i={...o,position:"absolute"};return t&&(i["--popper-arrow-size"]=t),n&&(i["--popper-arrow-shadow-color"]=n),r&&(i["--popper-arrow-bg"]=r),i}function hX(e={}){const{onClose:t,onOpen:n,isOpen:r,id:o}=e,i=Dn(n),s=Dn(t),[u,c]=C.exports.useState(e.defaultIsOpen||!1),f=r!==void 0?r:u,p=r!==void 0,h=o??`disclosure-${C.exports.useId()}`,m=C.exports.useCallback(()=>{p||c(!1),s?.()},[p,s]),v=C.exports.useCallback(()=>{p||c(!0),i?.()},[p,i]),b=C.exports.useCallback(()=>{f?m():v()},[f,v,m]);function x(S={}){return{...S,"aria-expanded":f,"aria-controls":h,onClick(y){var w;(w=S.onClick)==null||w.call(S,y),b()}}}function k(S={}){return{...S,hidden:!f,id:h}}return{isOpen:f,onOpen:v,onClose:m,onToggle:b,isControlled:p,getButtonProps:x,getDisclosureProps:k}}var[mX,gX]=Kt({strict:!1,name:"PortalManagerContext"});function n5(e){const{children:t,zIndex:n}=e;return P(mX,{value:{zIndex:n},children:t})}n5.displayName="PortalManager";var[r5,vX]=Kt({strict:!1,name:"PortalContext"}),pw="chakra-portal",yX=".chakra-portal",bX=e=>P("div",{className:"chakra-portal-zIndex",style:{position:"absolute",zIndex:e.zIndex,top:0,left:0,right:0},children:e.children}),xX=e=>{const{appendToParentPortal:t,children:n}=e,[r,o]=C.exports.useState(null),i=C.exports.useRef(null),[,s]=C.exports.useState({});C.exports.useEffect(()=>s({}),[]);const u=vX(),c=gX();Ri(()=>{if(!r)return;const p=r.ownerDocument,h=t?u??p.body:p.body;if(!h)return;i.current=p.createElement("div"),i.current.className=pw,h.appendChild(i.current),s({});const m=i.current;return()=>{h.contains(m)&&h.removeChild(m)}},[r]);const f=c?.zIndex?P(bX,{zIndex:c?.zIndex,children:n}):n;return i.current?Bf.exports.createPortal(P(r5,{value:i.current,children:f}),i.current):P("span",{ref:p=>{p&&o(p)}})},SX=e=>{const{children:t,containerRef:n,appendToParentPortal:r}=e,o=n.current,i=o??(typeof window<"u"?document.body:void 0),s=C.exports.useMemo(()=>{const c=o?.ownerDocument.createElement("div");return c&&(c.className=pw),c},[o]),[,u]=C.exports.useState({});return Ri(()=>u({}),[]),Ri(()=>{if(!(!s||!i))return i.appendChild(s),()=>{i.removeChild(s)}},[s,i]),i&&s?Bf.exports.createPortal(P(r5,{value:r?s:null,children:t}),s):null};function $s(e){const{containerRef:t,...n}=e;return t?P(SX,{containerRef:t,...n}):P(xX,{...n})}$s.defaultProps={appendToParentPortal:!0};$s.className=pw;$s.selector=yX;$s.displayName="Portal";var wX=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},hl=new WeakMap,zp=new WeakMap,Vp={},Ty=0,_X=function(e,t,n,r){var o=Array.isArray(e)?e:[e];Vp[n]||(Vp[n]=new WeakMap);var i=Vp[n],s=[],u=new Set,c=new Set(o),f=function(h){!h||u.has(h)||(u.add(h),f(h.parentNode))};o.forEach(f);var p=function(h){!h||c.has(h)||Array.prototype.forEach.call(h.children,function(m){if(u.has(m))p(m);else{var v=m.getAttribute(r),b=v!==null&&v!=="false",x=(hl.get(m)||0)+1,k=(i.get(m)||0)+1;hl.set(m,x),i.set(m,k),s.push(m),x===1&&b&&zp.set(m,!0),k===1&&m.setAttribute(n,"true"),b||m.setAttribute(r,"true")}})};return p(t),u.clear(),Ty++,function(){s.forEach(function(h){var m=hl.get(h)-1,v=i.get(h)-1;hl.set(h,m),i.set(h,v),m||(zp.has(h)||h.removeAttribute(r),zp.delete(h)),v||h.removeAttribute(n)}),Ty--,Ty||(hl=new WeakMap,hl=new WeakMap,zp=new WeakMap,Vp={})}},CX=function(e,t,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),o=t||wX(e);return o?(r.push.apply(r,Array.from(o.querySelectorAll("[aria-live]"))),_X(r,o,n,"aria-hidden")):function(){return null}};function kX(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,i;for(i=0;i=0)&&(n[o]=e[o]);return n}var ht={exports:{}},EX="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",PX=EX,AX=PX;function o5(){}function i5(){}i5.resetWarningCache=o5;var TX=function(){function e(r,o,i,s,u,c){if(c!==AX){var f=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw f.name="Invariant Violation",f}}e.isRequired=e;function t(){return e}var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:i5,resetWarningCache:o5};return n.PropTypes=n,n};ht.exports=TX();var Mb="data-focus-lock",a5="data-focus-lock-disabled",OX="data-no-focus-lock",RX="data-autofocus-inside",IX="data-no-autofocus";function MX(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function NX(e,t){var n=C.exports.useState(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(r){var o=n.value;o!==r&&(n.value=r,n.callback(r,o))}}}})[0];return n.callback=t,n.facade}function s5(e,t){return NX(t||null,function(n){return e.forEach(function(r){return MX(r,n)})})}var Oy={width:"1px",height:"0px",padding:0,overflow:"hidden",position:"fixed",top:"1px",left:"1px"};function l5(e){return e}function u5(e,t){t===void 0&&(t=l5);var n=[],r=!1,o={read:function(){if(r)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(i){var s=t(i,r);return n.push(s),function(){n=n.filter(function(u){return u!==s})}},assignSyncMedium:function(i){for(r=!0;n.length;){var s=n;n=[],s.forEach(i)}n={push:function(u){return i(u)},filter:function(){return n}}},assignMedium:function(i){r=!0;var s=[];if(n.length){var u=n;n=[],u.forEach(i),s=n}var c=function(){var p=s;s=[],p.forEach(i)},f=function(){return Promise.resolve().then(c)};f(),n={push:function(p){s.push(p),f()},filter:function(p){return s=s.filter(p),n}}}};return o}function hw(e,t){return t===void 0&&(t=l5),u5(e,t)}function c5(e){e===void 0&&(e={});var t=u5(null);return t.options=jo({async:!0,ssr:!1},e),t}var f5=function(e){var t=e.sideCar,n=Ag(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw new Error("Sidecar medium not found");return P(r,{...jo({},n)})};f5.isSideCarExport=!0;function DX(e,t){return e.useMedium(t),f5}var d5=hw({},function(e){var t=e.target,n=e.currentTarget;return{target:t,currentTarget:n}}),p5=hw(),FX=hw(),LX=c5({async:!0}),$X=[],mw=C.exports.forwardRef(function(t,n){var r,o=C.exports.useState(),i=o[0],s=o[1],u=C.exports.useRef(),c=C.exports.useRef(!1),f=C.exports.useRef(null),p=t.children,h=t.disabled,m=t.noFocusGuards,v=t.persistentFocus,b=t.crossFrame,x=t.autoFocus;t.allowTextSelection;var k=t.group,S=t.className,y=t.whiteList,w=t.hasPositiveIndices,E=t.shards,O=E===void 0?$X:E,N=t.as,D=N===void 0?"div":N,V=t.lockProps,Y=V===void 0?{}:V,j=t.sideCar,te=t.returnFocus,Se=t.focusOptions,ke=t.onActivation,xe=t.onDeactivation,_e=C.exports.useState({}),ge=_e[0],Pe=C.exports.useCallback(function(){f.current=f.current||document&&document.activeElement,u.current&&ke&&ke(u.current),c.current=!0},[ke]),W=C.exports.useCallback(function(){c.current=!1,xe&&xe(u.current)},[xe]);C.exports.useEffect(function(){h||(f.current=null)},[]);var X=C.exports.useCallback(function(Ee){var ue=f.current;if(ue&&ue.focus){var Ae=typeof te=="function"?te(ue):te;if(Ae){var Ne=typeof Ae=="object"?Ae:void 0;f.current=null,Ee?Promise.resolve().then(function(){return ue.focus(Ne)}):ue.focus(Ne)}}},[te]),q=C.exports.useCallback(function(Ee){c.current&&d5.useMedium(Ee)},[]),I=p5.useMedium,H=C.exports.useCallback(function(Ee){u.current!==Ee&&(u.current=Ee,s(Ee))},[]),ae=hf((r={},r[a5]=h&&"disabled",r[Mb]=k,r),Y),se=m!==!0,pe=se&&m!=="tail",me=s5([n,H]);return ce(fr,{children:[se&&[P("div",{"data-focus-guard":!0,tabIndex:h?-1:0,style:Oy},"guard-first"),w?P("div",{"data-focus-guard":!0,tabIndex:h?-1:1,style:Oy},"guard-nearest"):null],!h&&P(j,{id:ge,sideCar:LX,observed:i,disabled:h,persistentFocus:v,crossFrame:b,autoFocus:x,whiteList:y,shards:O,onActivation:Pe,onDeactivation:W,returnFocus:X,focusOptions:Se}),P(D,{ref:me,...ae,className:S,onBlur:I,onFocus:q,children:p}),pe&&P("div",{"data-focus-guard":!0,tabIndex:h?-1:0,style:Oy})]})});mw.propTypes={};mw.defaultProps={children:void 0,disabled:!1,returnFocus:!1,focusOptions:void 0,noFocusGuards:!1,autoFocus:!0,persistentFocus:!1,crossFrame:!0,hasPositiveIndices:void 0,allowTextSelection:void 0,group:void 0,className:void 0,whiteList:void 0,shards:void 0,as:"div",lockProps:{},onActivation:void 0,onDeactivation:void 0};const h5=mw;function Nb(e,t){return Nb=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,o){return r.__proto__=o,r},Nb(e,t)}function BX(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Nb(e,t)}function m5(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function zX(e,t){function n(r){return r.displayName||r.name||"Component"}return function(o){var i=[],s;function u(){s=e(i.map(function(f){return f.props})),t(s)}var c=function(f){BX(p,f);function p(){return f.apply(this,arguments)||this}p.peek=function(){return s};var h=p.prototype;return h.componentDidMount=function(){i.push(this),u()},h.componentDidUpdate=function(){u()},h.componentWillUnmount=function(){var v=i.indexOf(this);i.splice(v,1),u()},h.render=function(){return P(o,{...this.props})},p}(C.exports.PureComponent);return m5(c,"displayName","SideEffect("+n(o)+")"),c}}var oi=function(e){for(var t=Array(e.length),n=0;n=0}).sort(KX)},YX=["button:enabled","select:enabled","textarea:enabled","input:enabled","a[href]","area[href]","summary","iframe","object","embed","audio[controls]","video[controls]","[tabindex]","[contenteditable]","[autofocus]"],vw=YX.join(","),XX="".concat(vw,", [data-focus-guard]"),C5=function(e,t){var n;return oi(((n=e.shadowRoot)===null||n===void 0?void 0:n.children)||e.children).reduce(function(r,o){return r.concat(o.matches(t?XX:vw)?[o]:[],C5(o))},[])},yw=function(e,t){return e.reduce(function(n,r){return n.concat(C5(r,t),r.parentNode?oi(r.parentNode.querySelectorAll(vw)).filter(function(o){return o===r}):[])},[])},ZX=function(e){var t=e.querySelectorAll("[".concat(RX,"]"));return oi(t).map(function(n){return yw([n])}).reduce(function(n,r){return n.concat(r)},[])},bw=function(e,t){return oi(e).filter(function(n){return y5(t,n)}).filter(function(n){return HX(n)})},vP=function(e,t){return t===void 0&&(t=new Map),oi(e).filter(function(n){return b5(t,n)})},Fb=function(e,t,n){return _5(bw(yw(e,n),t),!0,n)},yP=function(e,t){return _5(bw(yw(e),t),!1)},QX=function(e,t){return bw(ZX(e),t)},Af=function(e,t){return(e.shadowRoot?Af(e.shadowRoot,t):Object.getPrototypeOf(e).contains.call(e,t))||oi(e.children).some(function(n){return Af(n,t)})},JX=function(e){for(var t=new Set,n=e.length,r=0;r0&&t.add(o),(i&Node.DOCUMENT_POSITION_CONTAINS)>0&&t.add(r)}return e.filter(function(s,u){return!t.has(u)})},k5=function(e){return e.parentNode?k5(e.parentNode):e},xw=function(e){var t=Db(e);return t.filter(Boolean).reduce(function(n,r){var o=r.getAttribute(Mb);return n.push.apply(n,o?JX(oi(k5(r).querySelectorAll("[".concat(Mb,'="').concat(o,'"]:not([').concat(a5,'="disabled"])')))):[r]),n},[])},E5=function(e){return e.activeElement?e.activeElement.shadowRoot?E5(e.activeElement.shadowRoot):e.activeElement:void 0},Sw=function(){return document.activeElement?document.activeElement.shadowRoot?E5(document.activeElement.shadowRoot):document.activeElement:void 0},eZ=function(e){return e===document.activeElement},tZ=function(e){return Boolean(oi(e.querySelectorAll("iframe")).some(function(t){return eZ(t)}))},P5=function(e){var t=document&&Sw();return!t||t.dataset&&t.dataset.focusGuard?!1:xw(e).some(function(n){return Af(n,t)||tZ(n)})},nZ=function(){var e=document&&Sw();return e?oi(document.querySelectorAll("[".concat(OX,"]"))).some(function(t){return Af(t,e)}):!1},rZ=function(e,t){return t.filter(w5).filter(function(n){return n.name===e.name}).filter(function(n){return n.checked})[0]||e},ww=function(e,t){return w5(e)&&e.name?rZ(e,t):e},oZ=function(e){var t=new Set;return e.forEach(function(n){return t.add(ww(n,e))}),e.filter(function(n){return t.has(n)})},bP=function(e){return e[0]&&e.length>1?ww(e[0],e):e[0]},xP=function(e,t){return e.length>1?e.indexOf(ww(e[t],e)):t},A5="NEW_FOCUS",iZ=function(e,t,n,r){var o=e.length,i=e[0],s=e[o-1],u=gw(n);if(!(n&&e.indexOf(n)>=0)){var c=n!==void 0?t.indexOf(n):-1,f=r?t.indexOf(r):c,p=r?e.indexOf(r):-1,h=c-f,m=t.indexOf(i),v=t.indexOf(s),b=oZ(t),x=n!==void 0?b.indexOf(n):-1,k=x-(r?b.indexOf(r):c),S=xP(e,0),y=xP(e,o-1);if(c===-1||p===-1)return A5;if(!h&&p>=0)return p;if(c<=m&&u&&Math.abs(h)>1)return y;if(c>=v&&u&&Math.abs(h)>1)return S;if(h&&Math.abs(k)>1)return p;if(c<=m)return y;if(c>v)return S;if(h)return Math.abs(h)>1?p:(o+p+h)%o}},Lb=function(e,t){return t===void 0&&(t=[]),t.push(e),e.parentNode&&Lb(e.parentNode.host||e.parentNode,t),t},Ry=function(e,t){for(var n=Lb(e),r=Lb(t),o=0;o=0)return i}return!1},T5=function(e,t,n){var r=Db(e),o=Db(t),i=r[0],s=!1;return o.filter(Boolean).forEach(function(u){s=Ry(s||u,u)||s,n.filter(Boolean).forEach(function(c){var f=Ry(i,c);f&&(!s||Af(f,s)?s=f:s=Ry(f,s))})}),s},aZ=function(e,t){return e.reduce(function(n,r){return n.concat(QX(r,t))},[])},sZ=function(e){return function(t){var n;return t.autofocus||!!(!((n=x5(t))===null||n===void 0)&&n.autofocus)||e.indexOf(t)>=0}},lZ=function(e,t){var n=new Map;return t.forEach(function(r){return n.set(r.node,r)}),e.map(function(r){return n.get(r)}).filter(qX)},uZ=function(e,t){var n=document&&Sw(),r=xw(e).filter(Cm),o=T5(n||e,e,r),i=new Map,s=yP(r,i),u=Fb(r,i).filter(function(v){var b=v.node;return Cm(b)});if(!(!u[0]&&(u=s,!u[0]))){var c=yP([o],i).map(function(v){var b=v.node;return b}),f=lZ(c,u),p=f.map(function(v){var b=v.node;return b}),h=iZ(p,c,n,t);if(h===A5){var m=vP(s.map(function(v){var b=v.node;return b})).filter(sZ(aZ(r,i)));return{node:m&&m.length?bP(m):bP(vP(p))}}return h===void 0?h:f[h]}},cZ=function(e){var t=xw(e).filter(Cm),n=T5(e,e,t),r=new Map,o=Fb([n],r,!0),i=Fb(t,r).filter(function(s){var u=s.node;return Cm(u)}).map(function(s){var u=s.node;return u});return o.map(function(s){var u=s.node,c=s.index;return{node:u,index:c,lockItem:i.indexOf(u)>=0,guard:gw(u)}})},fZ=function(e,t){"focus"in e&&e.focus(t),"contentWindow"in e&&e.contentWindow&&e.contentWindow.focus()},Iy=0,My=!1,dZ=function(e,t,n){n===void 0&&(n={});var r=uZ(e,t);if(!My&&r){if(Iy>2){console.error("FocusLock: focus-fighting detected. Only one focus management system could be active. See https://github.com/theKashey/focus-lock/#focus-fighting"),My=!0,setTimeout(function(){My=!1},1);return}Iy++,fZ(r.node,n.focusOptions),Iy--}};const O5=dZ;function R5(e){var t=window,n=t.setImmediate;typeof n<"u"?n(e):setTimeout(e,1)}var pZ=function(){return document&&document.activeElement===document.body},hZ=function(){return pZ()||nZ()},ql=null,Dl=null,Kl=null,Tf=!1,mZ=function(){return!0},gZ=function(t){return(ql.whiteList||mZ)(t)},vZ=function(t,n){Kl={observerNode:t,portaledElement:n}},yZ=function(t){return Kl&&Kl.portaledElement===t};function SP(e,t,n,r){var o=null,i=e;do{var s=r[i];if(s.guard)s.node.dataset.focusAutoGuard&&(o=s);else if(s.lockItem){if(i!==e)return;o=null}else break}while((i+=n)!==t);o&&(o.node.tabIndex=0)}var bZ=function(t){return t&&"current"in t?t.current:t},xZ=function(t){return t?Boolean(Tf):Tf==="meanwhile"},SZ=function e(t,n,r){return n&&(n.host===t&&(!n.activeElement||r.contains(n.activeElement))||n.parentNode&&e(t,n.parentNode,r))},wZ=function(t,n){return n.some(function(r){return SZ(t,r,r)})},km=function(){var t=!1;if(ql){var n=ql,r=n.observed,o=n.persistentFocus,i=n.autoFocus,s=n.shards,u=n.crossFrame,c=n.focusOptions,f=r||Kl&&Kl.portaledElement,p=document&&document.activeElement;if(f){var h=[f].concat(s.map(bZ).filter(Boolean));if((!p||gZ(p))&&(o||xZ(u)||!hZ()||!Dl&&i)&&(f&&!(P5(h)||p&&wZ(p,h)||yZ(p))&&(document&&!Dl&&p&&!i?(p.blur&&p.blur(),document.body.focus()):(t=O5(h,Dl,{focusOptions:c}),Kl={})),Tf=!1,Dl=document&&document.activeElement),document){var m=document&&document.activeElement,v=cZ(h),b=v.map(function(x){var k=x.node;return k}).indexOf(m);b>-1&&(v.filter(function(x){var k=x.guard,S=x.node;return k&&S.dataset.focusAutoGuard}).forEach(function(x){var k=x.node;return k.removeAttribute("tabIndex")}),SP(b,v.length,1,v),SP(b,-1,-1,v))}}}return t},I5=function(t){km()&&t&&(t.stopPropagation(),t.preventDefault())},_w=function(){return R5(km)},_Z=function(t){var n=t.target,r=t.currentTarget;r.contains(n)||vZ(r,n)},CZ=function(){return null},M5=function(){Tf="just",setTimeout(function(){Tf="meanwhile"},0)},kZ=function(){document.addEventListener("focusin",I5),document.addEventListener("focusout",_w),window.addEventListener("blur",M5)},EZ=function(){document.removeEventListener("focusin",I5),document.removeEventListener("focusout",_w),window.removeEventListener("blur",M5)};function PZ(e){return e.filter(function(t){var n=t.disabled;return!n})}function AZ(e){var t=e.slice(-1)[0];t&&!ql&&kZ();var n=ql,r=n&&t&&t.id===n.id;ql=t,n&&!r&&(n.onDeactivation(),e.filter(function(o){var i=o.id;return i===n.id}).length||n.returnFocus(!t)),t?(Dl=null,(!r||n.observed!==t.observed)&&t.onActivation(),km(),R5(km)):(EZ(),Dl=null)}d5.assignSyncMedium(_Z);p5.assignMedium(_w);FX.assignMedium(function(e){return e({moveFocusInside:O5,focusInside:P5})});const TZ=zX(PZ,AZ)(CZ);var N5=C.exports.forwardRef(function(t,n){return P(h5,{sideCar:TZ,ref:n,...t})}),D5=h5.propTypes||{};D5.sideCar;kX(D5,["sideCar"]);N5.propTypes={};const OZ=N5;var F5=e=>{const{initialFocusRef:t,finalFocusRef:n,contentRef:r,restoreFocus:o,children:i,isDisabled:s,autoFocus:u,persistentFocus:c,lockFocusAcrossFrames:f}=e,p=C.exports.useCallback(()=>{t?.current?t.current.focus():r?.current&&GK(r.current).length===0&&requestAnimationFrame(()=>{var b;(b=r.current)==null||b.focus()})},[t,r]),h=C.exports.useCallback(()=>{var v;(v=n?.current)==null||v.focus()},[n]);return P(OZ,{crossFrame:f,persistentFocus:c,autoFocus:u,disabled:s,onActivation:p,onDeactivation:h,returnFocus:o&&!n,children:i})};F5.displayName="FocusLock";var Sh="right-scroll-bar-position",wh="width-before-scroll-bar",RZ="with-scroll-bars-hidden",IZ="--removed-body-scroll-bar-size",L5=c5(),Ny=function(){},Wg=C.exports.forwardRef(function(e,t){var n=C.exports.useRef(null),r=C.exports.useState({onScrollCapture:Ny,onWheelCapture:Ny,onTouchMoveCapture:Ny}),o=r[0],i=r[1],s=e.forwardProps,u=e.children,c=e.className,f=e.removeScrollBar,p=e.enabled,h=e.shards,m=e.sideCar,v=e.noIsolation,b=e.inert,x=e.allowPinchZoom,k=e.as,S=k===void 0?"div":k,y=Ag(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as"]),w=m,E=s5([n,t]),O=jo(jo({},y),o);return ce(fr,{children:[p&&P(w,{sideCar:L5,removeScrollBar:f,shards:h,noIsolation:v,inert:b,setCallbacks:i,allowPinchZoom:!!x,lockRef:n}),s?C.exports.cloneElement(C.exports.Children.only(u),jo(jo({},O),{ref:E})):P(S,{...jo({},O,{className:c,ref:E}),children:u})]})});Wg.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};Wg.classNames={fullWidth:wh,zeroRight:Sh};var MZ=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function NZ(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=MZ();return t&&e.setAttribute("nonce",t),e}function DZ(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function FZ(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var LZ=function(){var e=0,t=null;return{add:function(n){e==0&&(t=NZ())&&(DZ(t,n),FZ(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},$Z=function(){var e=LZ();return function(t,n){C.exports.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},$5=function(){var e=$Z(),t=function(n){var r=n.styles,o=n.dynamic;return e(r,o),null};return t},BZ={left:0,top:0,right:0,gap:0},Dy=function(e){return parseInt(e||"",10)||0},zZ=function(e){var t=window.getComputedStyle(document.body),n=t[e==="padding"?"paddingLeft":"marginLeft"],r=t[e==="padding"?"paddingTop":"marginTop"],o=t[e==="padding"?"paddingRight":"marginRight"];return[Dy(n),Dy(r),Dy(o)]},VZ=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return BZ;var t=zZ(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},jZ=$5(),WZ=function(e,t,n,r){var o=e.left,i=e.top,s=e.right,u=e.gap;return n===void 0&&(n="margin"),` + .`.concat(RZ,` { + overflow: hidden `).concat(r,`; + padding-right: `).concat(u,"px ").concat(r,`; + } + body { + overflow: hidden `).concat(r,`; + overscroll-behavior: contain; + `).concat([t&&"position: relative ".concat(r,";"),n==="margin"&&` + padding-left: `.concat(o,`px; + padding-top: `).concat(i,`px; + padding-right: `).concat(s,`px; + margin-left:0; + margin-top:0; + margin-right: `).concat(u,"px ").concat(r,`; + `),n==="padding"&&"padding-right: ".concat(u,"px ").concat(r,";")].filter(Boolean).join(""),` + } + + .`).concat(Sh,` { + right: `).concat(u,"px ").concat(r,`; + } + + .`).concat(wh,` { + margin-right: `).concat(u,"px ").concat(r,`; + } + + .`).concat(Sh," .").concat(Sh,` { + right: 0 `).concat(r,`; + } + + .`).concat(wh," .").concat(wh,` { + margin-right: 0 `).concat(r,`; + } + + body { + `).concat(IZ,": ").concat(u,`px; + } +`)},UZ=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,o=r===void 0?"margin":r,i=C.exports.useMemo(function(){return VZ(o)},[o]);return P(jZ,{styles:WZ(i,!t,o,n?"":"!important")})},$b=!1;if(typeof window<"u")try{var jp=Object.defineProperty({},"passive",{get:function(){return $b=!0,!0}});window.addEventListener("test",jp,jp),window.removeEventListener("test",jp,jp)}catch{$b=!1}var ml=$b?{passive:!1}:!1,HZ=function(e){return e.tagName==="TEXTAREA"},B5=function(e,t){var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!HZ(e)&&n[t]==="visible")},GZ=function(e){return B5(e,"overflowY")},qZ=function(e){return B5(e,"overflowX")},wP=function(e,t){var n=t;do{typeof ShadowRoot<"u"&&n instanceof ShadowRoot&&(n=n.host);var r=z5(e,n);if(r){var o=V5(e,n),i=o[1],s=o[2];if(i>s)return!0}n=n.parentNode}while(n&&n!==document.body);return!1},KZ=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},YZ=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},z5=function(e,t){return e==="v"?GZ(t):qZ(t)},V5=function(e,t){return e==="v"?KZ(t):YZ(t)},XZ=function(e,t){return e==="h"&&t==="rtl"?-1:1},ZZ=function(e,t,n,r,o){var i=XZ(e,window.getComputedStyle(t).direction),s=i*r,u=n.target,c=t.contains(u),f=!1,p=s>0,h=0,m=0;do{var v=V5(e,u),b=v[0],x=v[1],k=v[2],S=x-k-i*b;(b||S)&&z5(e,u)&&(h+=S,m+=b),u=u.parentNode}while(!c&&u!==document.body||c&&(t.contains(u)||t===u));return(p&&(o&&h===0||!o&&s>h)||!p&&(o&&m===0||!o&&-s>m))&&(f=!0),f},Wp=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},_P=function(e){return[e.deltaX,e.deltaY]},CP=function(e){return e&&"current"in e?e.current:e},QZ=function(e,t){return e[0]===t[0]&&e[1]===t[1]},JZ=function(e){return` + .block-interactivity-`.concat(e,` {pointer-events: none;} + .allow-interactivity-`).concat(e,` {pointer-events: all;} +`)},eQ=0,gl=[];function tQ(e){var t=C.exports.useRef([]),n=C.exports.useRef([0,0]),r=C.exports.useRef(),o=C.exports.useState(eQ++)[0],i=C.exports.useState(function(){return $5()})[0],s=C.exports.useRef(e);C.exports.useEffect(function(){s.current=e},[e]),C.exports.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var x=sb([e.lockRef.current],(e.shards||[]).map(CP),!0).filter(Boolean);return x.forEach(function(k){return k.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),x.forEach(function(k){return k.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var u=C.exports.useCallback(function(x,k){if("touches"in x&&x.touches.length===2)return!s.current.allowPinchZoom;var S=Wp(x),y=n.current,w="deltaX"in x?x.deltaX:y[0]-S[0],E="deltaY"in x?x.deltaY:y[1]-S[1],O,N=x.target,D=Math.abs(w)>Math.abs(E)?"h":"v";if("touches"in x&&D==="h"&&N.type==="range")return!1;var V=wP(D,N);if(!V)return!0;if(V?O=D:(O=D==="v"?"h":"v",V=wP(D,N)),!V)return!1;if(!r.current&&"changedTouches"in x&&(w||E)&&(r.current=O),!O)return!0;var Y=r.current||O;return ZZ(Y,k,x,Y==="h"?w:E,!0)},[]),c=C.exports.useCallback(function(x){var k=x;if(!(!gl.length||gl[gl.length-1]!==i)){var S="deltaY"in k?_P(k):Wp(k),y=t.current.filter(function(O){return O.name===k.type&&O.target===k.target&&QZ(O.delta,S)})[0];if(y&&y.should){k.cancelable&&k.preventDefault();return}if(!y){var w=(s.current.shards||[]).map(CP).filter(Boolean).filter(function(O){return O.contains(k.target)}),E=w.length>0?u(k,w[0]):!s.current.noIsolation;E&&k.cancelable&&k.preventDefault()}}},[]),f=C.exports.useCallback(function(x,k,S,y){var w={name:x,delta:k,target:S,should:y};t.current.push(w),setTimeout(function(){t.current=t.current.filter(function(E){return E!==w})},1)},[]),p=C.exports.useCallback(function(x){n.current=Wp(x),r.current=void 0},[]),h=C.exports.useCallback(function(x){f(x.type,_P(x),x.target,u(x,e.lockRef.current))},[]),m=C.exports.useCallback(function(x){f(x.type,Wp(x),x.target,u(x,e.lockRef.current))},[]);C.exports.useEffect(function(){return gl.push(i),e.setCallbacks({onScrollCapture:h,onWheelCapture:h,onTouchMoveCapture:m}),document.addEventListener("wheel",c,ml),document.addEventListener("touchmove",c,ml),document.addEventListener("touchstart",p,ml),function(){gl=gl.filter(function(x){return x!==i}),document.removeEventListener("wheel",c,ml),document.removeEventListener("touchmove",c,ml),document.removeEventListener("touchstart",p,ml)}},[]);var v=e.removeScrollBar,b=e.inert;return ce(fr,{children:[b?P(i,{styles:JZ(o)}):null,v?P(UZ,{gapMode:"margin"}):null]})}const nQ=DX(L5,tQ);var j5=C.exports.forwardRef(function(e,t){return P(Wg,{...jo({},e,{ref:t,sideCar:nQ})})});j5.classNames=Wg.classNames;const rQ=j5;var Bs=(...e)=>e.filter(Boolean).join(" ");function xc(...e){return function(n){e.some(r=>(r?.(n),n?.defaultPrevented))}}var oQ=class{modals;constructor(){this.modals=[]}add(e){this.modals.push(e)}remove(e){this.modals=this.modals.filter(t=>t!==e)}isTopModal(e){return this.modals[this.modals.length-1]===e}},Bb=new oQ;function iQ(e,t){C.exports.useEffect(()=>(t&&Bb.add(e),()=>{Bb.remove(e)}),[t,e])}function aQ(e){const{isOpen:t,onClose:n,id:r,closeOnOverlayClick:o=!0,closeOnEsc:i=!0,useInert:s=!0,onOverlayClick:u,onEsc:c}=e,f=C.exports.useRef(null),p=C.exports.useRef(null),[h,m,v]=lQ(r,"chakra-modal","chakra-modal--header","chakra-modal--body");sQ(f,t&&s),iQ(f,t);const b=C.exports.useRef(null),x=C.exports.useCallback(V=>{b.current=V.target},[]),k=C.exports.useCallback(V=>{V.key==="Escape"&&(V.stopPropagation(),i&&n?.(),c?.())},[i,n,c]),[S,y]=C.exports.useState(!1),[w,E]=C.exports.useState(!1),O=C.exports.useCallback((V={},Y=null)=>({role:"dialog",...V,ref:Kn(Y,f),id:h,tabIndex:-1,"aria-modal":!0,"aria-labelledby":S?m:void 0,"aria-describedby":w?v:void 0,onClick:xc(V.onClick,j=>j.stopPropagation())}),[v,w,h,m,S]),N=C.exports.useCallback(V=>{V.stopPropagation(),b.current===V.target&&(!Bb.isTopModal(f)||(o&&n?.(),u?.()))},[n,o,u]),D=C.exports.useCallback((V={},Y=null)=>({...V,ref:Kn(Y,p),onClick:xc(V.onClick,N),onKeyDown:xc(V.onKeyDown,k),onMouseDown:xc(V.onMouseDown,x)}),[k,x,N]);return{isOpen:t,onClose:n,headerId:m,bodyId:v,setBodyMounted:E,setHeaderMounted:y,dialogRef:f,overlayRef:p,getDialogProps:O,getDialogContainerProps:D}}function sQ(e,t){const n=e.current;C.exports.useEffect(()=>{if(!(!e.current||!t))return CX(e.current)},[t,e,n])}function lQ(e,...t){const n=C.exports.useId(),r=e||n;return C.exports.useMemo(()=>t.map(o=>`${o}-${r}`),[r,t])}var[uQ,zs]=Kt({name:"ModalStylesContext",errorMessage:`useModalStyles returned is 'undefined'. Seems you forgot to wrap the components in "" `}),[cQ,Da]=Kt({strict:!0,name:"ModalContext",errorMessage:"useModalContext: `context` is undefined. Seems you forgot to wrap modal components in ``"}),Of=e=>{const{portalProps:t,children:n,autoFocus:r,trapFocus:o,initialFocusRef:i,finalFocusRef:s,returnFocusOnClose:u,blockScrollOnMount:c,allowPinchZoom:f,preserveScrollBarGap:p,motionPreset:h,lockFocusAcrossFrames:m,onCloseComplete:v}=e,b=Fr("Modal",e),k={...aQ(e),autoFocus:r,trapFocus:o,initialFocusRef:i,finalFocusRef:s,returnFocusOnClose:u,blockScrollOnMount:c,allowPinchZoom:f,preserveScrollBarGap:p,motionPreset:h,lockFocusAcrossFrames:m};return P(cQ,{value:k,children:P(uQ,{value:b,children:P(Vi,{onExitComplete:v,children:k.isOpen&&P($s,{...t,children:n})})})})};Of.defaultProps={lockFocusAcrossFrames:!0,returnFocusOnClose:!0,scrollBehavior:"outside",trapFocus:!0,autoFocus:!0,blockScrollOnMount:!0,allowPinchZoom:!1,motionPreset:"scale"};Of.displayName="Modal";var Em=fe((e,t)=>{const{className:n,...r}=e,{bodyId:o,setBodyMounted:i}=Da();C.exports.useEffect(()=>(i(!0),()=>i(!1)),[i]);const s=Bs("chakra-modal__body",n),u=zs();return ee.createElement(ie.div,{ref:t,className:s,id:o,...r,__css:u.body})});Em.displayName="ModalBody";var Cw=fe((e,t)=>{const{onClick:n,className:r,...o}=e,{onClose:i}=Da(),s=Bs("chakra-modal__close-btn",r),u=zs();return P(QS,{ref:t,__css:u.closeButton,className:s,onClick:xc(n,c=>{c.stopPropagation(),i()}),...o})});Cw.displayName="ModalCloseButton";function W5(e){const{autoFocus:t,trapFocus:n,dialogRef:r,initialFocusRef:o,blockScrollOnMount:i,allowPinchZoom:s,finalFocusRef:u,returnFocusOnClose:c,preserveScrollBarGap:f,lockFocusAcrossFrames:p}=Da(),[h,m]=FS();return C.exports.useEffect(()=>{!h&&m&&setTimeout(m)},[h,m]),P(F5,{autoFocus:t,isDisabled:!n,initialFocusRef:o,finalFocusRef:u,restoreFocus:c,contentRef:r,lockFocusAcrossFrames:p,children:P(rQ,{removeScrollBar:!f,allowPinchZoom:s,enabled:i,forwardProps:!0,children:e.children})})}var fQ={slideInBottom:{...Cb,custom:{offsetY:16,reverse:!0}},slideInRight:{...Cb,custom:{offsetX:16,reverse:!0}},scale:{...p3,custom:{initialScale:.95,reverse:!0}},none:{}},dQ=ie(Ao.section),U5=C.exports.forwardRef((e,t)=>{const{preset:n,...r}=e,o=fQ[n];return P(dQ,{ref:t,...o,...r})});U5.displayName="ModalTransition";var Rf=fe((e,t)=>{const{className:n,children:r,containerProps:o,...i}=e,{getDialogProps:s,getDialogContainerProps:u}=Da(),c=s(i,t),f=u(o),p=Bs("chakra-modal__content",n),h=zs(),m={display:"flex",flexDirection:"column",position:"relative",width:"100%",outline:0,...h.dialog},v={display:"flex",width:"100vw",height:"100vh","@supports(height: -webkit-fill-available)":{height:"-webkit-fill-available"},position:"fixed",left:0,top:0,...h.dialogContainer},{motionPreset:b}=Da();return ee.createElement(W5,null,ee.createElement(ie.div,{...f,className:"chakra-modal__content-container",tabIndex:-1,__css:v},P(U5,{preset:b,className:p,...c,__css:m,children:r})))});Rf.displayName="ModalContent";var kw=fe((e,t)=>{const{className:n,...r}=e,o=Bs("chakra-modal__footer",n),i=zs(),s={display:"flex",alignItems:"center",justifyContent:"flex-end",...i.footer};return ee.createElement(ie.footer,{ref:t,...r,__css:s,className:o})});kw.displayName="ModalFooter";var Ew=fe((e,t)=>{const{className:n,...r}=e,{headerId:o,setHeaderMounted:i}=Da();C.exports.useEffect(()=>(i(!0),()=>i(!1)),[i]);const s=Bs("chakra-modal__header",n),u=zs(),c={flex:0,...u.header};return ee.createElement(ie.header,{ref:t,className:s,id:o,...r,__css:c})});Ew.displayName="ModalHeader";var pQ=ie(Ao.div),Pm=fe((e,t)=>{const{className:n,transition:r,...o}=e,i=Bs("chakra-modal__overlay",n),s=zs(),u={pos:"fixed",left:"0",top:"0",w:"100vw",h:"100vh",...s.overlay},{motionPreset:c}=Da();return P(pQ,{...c==="none"?{}:d3,__css:u,ref:t,className:i,...o})});Pm.displayName="ModalOverlay";fe((e,t)=>P(Rf,{ref:t,role:"alertdialog",...e}));var[Tfe,hQ]=Kt(),mQ=ie(h3),gQ=fe((e,t)=>{const{className:n,children:r,...o}=e,{getDialogProps:i,getDialogContainerProps:s,isOpen:u}=Da(),c=i(o,t),f=s(),p=Bs("chakra-modal__content",n),h=zs(),m={display:"flex",flexDirection:"column",position:"relative",width:"100%",outline:0,...h.dialog},v={display:"flex",width:"100vw",height:"100vh",position:"fixed",left:0,top:0,...h.dialogContainer},{placement:b}=hQ();return ee.createElement(ie.div,{...f,className:"chakra-modal__content-container",__css:v},P(W5,{children:P(mQ,{direction:b,in:u,className:p,...c,__css:m,children:r})}))});gQ.displayName="DrawerContent";function vQ(e,t){const n=Dn(e);C.exports.useEffect(()=>{let r=null;const o=()=>n();return t!==null&&(r=window.setInterval(o,t)),()=>{r&&window.clearInterval(r)}},[t,n])}var H5=(...e)=>e.filter(Boolean).join(" "),Fy=e=>e?!0:void 0;function Do(...e){return function(n){e.some(r=>(r?.(n),n?.defaultPrevented))}}var yQ=e=>P(Po,{viewBox:"0 0 24 24",...e,children:P("path",{fill:"currentColor",d:"M21,5H3C2.621,5,2.275,5.214,2.105,5.553C1.937,5.892,1.973,6.297,2.2,6.6l9,12 c0.188,0.252,0.485,0.4,0.8,0.4s0.611-0.148,0.8-0.4l9-12c0.228-0.303,0.264-0.708,0.095-1.047C21.725,5.214,21.379,5,21,5z"})}),bQ=e=>P(Po,{viewBox:"0 0 24 24",...e,children:P("path",{fill:"currentColor",d:"M12.8,5.4c-0.377-0.504-1.223-0.504-1.6,0l-9,12c-0.228,0.303-0.264,0.708-0.095,1.047 C2.275,18.786,2.621,19,3,19h18c0.379,0,0.725-0.214,0.895-0.553c0.169-0.339,0.133-0.744-0.095-1.047L12.8,5.4z"})});function kP(e,t,n,r){C.exports.useEffect(()=>{if(!e.current||!r)return;const o=e.current.ownerDocument.defaultView??window,i=Array.isArray(t)?t:[t],s=new o.MutationObserver(u=>{for(const c of u)c.type==="attributes"&&c.attributeName&&i.includes(c.attributeName)&&n(c)});return s.observe(e.current,{attributes:!0,attributeFilter:i}),()=>s.disconnect()})}var xQ=50,EP=300;function SQ(e,t){const[n,r]=C.exports.useState(!1),[o,i]=C.exports.useState(null),[s,u]=C.exports.useState(!0),c=C.exports.useRef(null),f=()=>clearTimeout(c.current);vQ(()=>{o==="increment"&&e(),o==="decrement"&&t()},n?xQ:null);const p=C.exports.useCallback(()=>{s&&e(),c.current=setTimeout(()=>{u(!1),r(!0),i("increment")},EP)},[e,s]),h=C.exports.useCallback(()=>{s&&t(),c.current=setTimeout(()=>{u(!1),r(!0),i("decrement")},EP)},[t,s]),m=C.exports.useCallback(()=>{u(!0),r(!1),f()},[]);return C.exports.useEffect(()=>()=>f(),[]),{up:p,down:h,stop:m,isSpinning:n}}var wQ=/^[Ee0-9+\-.]$/;function _Q(e){return wQ.test(e)}function CQ(e,t){if(e.key==null)return!0;const n=e.ctrlKey||e.altKey||e.metaKey;return!(e.key.length===1)||n?!0:t(e.key)}function kQ(e={}){const{focusInputOnChange:t=!0,clampValueOnBlur:n=!0,keepWithinRange:r=!0,min:o=Number.MIN_SAFE_INTEGER,max:i=Number.MAX_SAFE_INTEGER,step:s=1,isReadOnly:u,isDisabled:c,isRequired:f,isInvalid:p,pattern:h="[0-9]*(.[0-9]+)?",inputMode:m="decimal",allowMouseWheel:v,id:b,onChange:x,precision:k,name:S,"aria-describedby":y,"aria-label":w,"aria-labelledby":E,onFocus:O,onBlur:N,onInvalid:D,getAriaValueText:V,isValidCharacter:Y,format:j,parse:te,...Se}=e,ke=Dn(O),xe=Dn(N),_e=Dn(D),ge=Dn(Y??_Q),Pe=Dn(V),W=tK(e),{update:X,increment:q,decrement:I}=W,[H,ae]=C.exports.useState(!1),se=!(u||c),pe=C.exports.useRef(null),me=C.exports.useRef(null),Ee=C.exports.useRef(null),ue=C.exports.useRef(null),Ae=C.exports.useCallback(ne=>ne.split("").filter(ge).join(""),[ge]),Ne=C.exports.useCallback(ne=>te?.(ne)??ne,[te]),mt=C.exports.useCallback(ne=>(j?.(ne)??ne).toString(),[j]);xm(()=>{(W.valueAsNumber>i||W.valueAsNumber{if(!pe.current)return;if(pe.current.value!=W.value){const Ve=Ne(pe.current.value);W.setValue(Ae(Ve))}},[Ne,Ae]);const It=C.exports.useCallback((ne=s)=>{se&&q(ne)},[q,se,s]),En=C.exports.useCallback((ne=s)=>{se&&I(ne)},[I,se,s]),ve=SQ(It,En);kP(Ee,"disabled",ve.stop,ve.isSpinning),kP(ue,"disabled",ve.stop,ve.isSpinning);const Mt=C.exports.useCallback(ne=>{if(ne.nativeEvent.isComposing)return;const xt=Ne(ne.currentTarget.value);X(Ae(xt)),me.current={start:ne.currentTarget.selectionStart,end:ne.currentTarget.selectionEnd}},[X,Ae,Ne]),Zt=C.exports.useCallback(ne=>{var Ve;ke?.(ne),me.current&&(ne.target.selectionStart=me.current.start??((Ve=ne.currentTarget.value)==null?void 0:Ve.length),ne.currentTarget.selectionEnd=me.current.end??ne.currentTarget.selectionStart)},[ke]),it=C.exports.useCallback(ne=>{if(ne.nativeEvent.isComposing)return;CQ(ne,ge)||ne.preventDefault();const Ve=hr(ne)*s,xt=ne.key,Pn={ArrowUp:()=>It(Ve),ArrowDown:()=>En(Ve),Home:()=>X(o),End:()=>X(i)}[xt];Pn&&(ne.preventDefault(),Pn(ne))},[ge,s,It,En,X,o,i]),hr=ne=>{let Ve=1;return(ne.metaKey||ne.ctrlKey)&&(Ve=.1),ne.shiftKey&&(Ve=10),Ve},mr=C.exports.useMemo(()=>{const ne=Pe?.(W.value);if(ne!=null)return ne;const Ve=W.value.toString();return Ve||void 0},[W.value,Pe]),bt=C.exports.useCallback(()=>{let ne=W.value;ne!==""&&(W.valueAsNumberi&&(ne=i),W.cast(ne))},[W,i,o]),_t=C.exports.useCallback(()=>{ae(!1),n&&bt()},[n,ae,bt]),Qt=C.exports.useCallback(()=>{t&&requestAnimationFrame(()=>{var ne;(ne=pe.current)==null||ne.focus()})},[t]),zt=C.exports.useCallback(ne=>{ne.preventDefault(),ve.up(),Qt()},[Qt,ve]),le=C.exports.useCallback(ne=>{ne.preventDefault(),ve.down(),Qt()},[Qt,ve]);Ab(()=>pe.current,"wheel",ne=>{var Ve;const mn=(((Ve=pe.current)==null?void 0:Ve.ownerDocument)??document).activeElement===pe.current;if(!v||!mn)return;ne.preventDefault();const Pn=hr(ne)*s,gr=Math.sign(ne.deltaY);gr===-1?It(Pn):gr===1&&En(Pn)},{passive:!1});const we=C.exports.useCallback((ne={},Ve=null)=>{const xt=c||r&&W.isAtMax;return{...ne,ref:Kn(Ve,Ee),role:"button",tabIndex:-1,onPointerDown:Do(ne.onPointerDown,mn=>{xt||zt(mn)}),onPointerLeave:Do(ne.onPointerLeave,ve.stop),onPointerUp:Do(ne.onPointerUp,ve.stop),disabled:xt,"aria-disabled":Fy(xt)}},[W.isAtMax,r,zt,ve.stop,c]),at=C.exports.useCallback((ne={},Ve=null)=>{const xt=c||r&&W.isAtMin;return{...ne,ref:Kn(Ve,ue),role:"button",tabIndex:-1,onPointerDown:Do(ne.onPointerDown,mn=>{xt||le(mn)}),onPointerLeave:Do(ne.onPointerLeave,ve.stop),onPointerUp:Do(ne.onPointerUp,ve.stop),disabled:xt,"aria-disabled":Fy(xt)}},[W.isAtMin,r,le,ve.stop,c]),nt=C.exports.useCallback((ne={},Ve=null)=>({name:S,inputMode:m,type:"text",pattern:h,"aria-labelledby":E,"aria-label":w,"aria-describedby":y,id:b,disabled:c,...ne,readOnly:ne.readOnly??u,"aria-readonly":ne.readOnly??u,"aria-required":ne.required??f,required:ne.required??f,ref:Kn(pe,Ve),value:mt(W.value),role:"spinbutton","aria-valuemin":o,"aria-valuemax":i,"aria-valuenow":Number.isNaN(W.valueAsNumber)?void 0:W.valueAsNumber,"aria-invalid":Fy(p??W.isOutOfRange),"aria-valuetext":mr,autoComplete:"off",autoCorrect:"off",onChange:Do(ne.onChange,Mt),onKeyDown:Do(ne.onKeyDown,it),onFocus:Do(ne.onFocus,Zt,()=>ae(!0)),onBlur:Do(ne.onBlur,xe,_t)}),[S,m,h,E,w,mt,y,b,c,f,u,p,W.value,W.valueAsNumber,W.isOutOfRange,o,i,mr,Mt,it,Zt,xe,_t]);return{value:mt(W.value),valueAsNumber:W.valueAsNumber,isFocused:H,isDisabled:c,isReadOnly:u,getIncrementButtonProps:we,getDecrementButtonProps:at,getInputProps:nt,htmlProps:Se}}var[EQ,Ug]=Kt({name:"NumberInputStylesContext",errorMessage:`useNumberInputStyles returned is 'undefined'. Seems you forgot to wrap the components in "" `}),[PQ,Pw]=Kt({name:"NumberInputContext",errorMessage:"useNumberInputContext: `context` is undefined. Seems you forgot to wrap number-input's components within "}),G5=fe(function(t,n){const r=Fr("NumberInput",t),o=yt(t),i=YS(o),{htmlProps:s,...u}=kQ(i),c=C.exports.useMemo(()=>u,[u]);return ee.createElement(PQ,{value:c},ee.createElement(EQ,{value:r},ee.createElement(ie.div,{...s,ref:n,className:H5("chakra-numberinput",t.className),__css:{position:"relative",zIndex:0,...r.root}})))});G5.displayName="NumberInput";var q5=fe(function(t,n){const r=Ug();return ee.createElement(ie.div,{"aria-hidden":!0,ref:n,...t,__css:{display:"flex",flexDirection:"column",position:"absolute",top:"0",insetEnd:"0px",margin:"1px",height:"calc(100% - 2px)",zIndex:1,...r.stepperGroup}})});q5.displayName="NumberInputStepper";var K5=fe(function(t,n){const{getInputProps:r}=Pw(),o=r(t,n),i=Ug();return ee.createElement(ie.input,{...o,className:H5("chakra-numberinput__field",t.className),__css:{width:"100%",...i.field}})});K5.displayName="NumberInputField";var Y5=ie("div",{baseStyle:{display:"flex",justifyContent:"center",alignItems:"center",flex:1,transitionProperty:"common",transitionDuration:"normal",userSelect:"none",cursor:"pointer",lineHeight:"normal"}}),X5=fe(function(t,n){const r=Ug(),{getDecrementButtonProps:o}=Pw(),i=o(t,n);return P(Y5,{...i,__css:r.stepper,children:t.children??P(yQ,{})})});X5.displayName="NumberDecrementStepper";var Z5=fe(function(t,n){const{getIncrementButtonProps:r}=Pw(),o=r(t,n),i=Ug();return P(Y5,{...o,__css:i.stepper,children:t.children??P(bQ,{})})});Z5.displayName="NumberIncrementStepper";function AQ(e,t,n){return(e-t)*100/(n-t)}Hf({"0%":{strokeDasharray:"1, 400",strokeDashoffset:"0"},"50%":{strokeDasharray:"400, 400",strokeDashoffset:"-100"},"100%":{strokeDasharray:"400, 400",strokeDashoffset:"-260"}});Hf({"0%":{transform:"rotate(0deg)"},"100%":{transform:"rotate(360deg)"}});var TQ=Hf({"0%":{left:"-40%"},"100%":{left:"100%"}}),OQ=Hf({from:{backgroundPosition:"1rem 0"},to:{backgroundPosition:"0 0"}});function RQ(e){const{value:t=0,min:n,max:r,valueText:o,getValueText:i,isIndeterminate:s}=e,u=AQ(t,n,r);return{bind:{"data-indeterminate":s?"":void 0,"aria-valuemax":r,"aria-valuemin":n,"aria-valuenow":s?void 0:t,"aria-valuetext":(()=>{if(t!=null)return typeof i=="function"?i(t,u):o})(),role:"progressbar"},percent:u,value:t}}var[IQ,MQ]=Kt({name:"ProgressStylesContext",errorMessage:`useProgressStyles returned is 'undefined'. Seems you forgot to wrap the components in "" `}),NQ=e=>{const{min:t,max:n,value:r,isIndeterminate:o,...i}=e,s=RQ({value:r,min:t,max:n,isIndeterminate:o}),u=MQ(),c={height:"100%",...u.filledTrack};return ee.createElement(ie.div,{style:{width:`${s.percent}%`,...i.style},...s.bind,...i,__css:c})},Q5=e=>{var t;const{value:n,min:r=0,max:o=100,hasStripe:i,isAnimated:s,children:u,borderRadius:c,isIndeterminate:f,"aria-label":p,"aria-labelledby":h,...m}=yt(e),v=Fr("Progress",e),b=c??((t=v.track)==null?void 0:t.borderRadius),x={animation:`${OQ} 1s linear infinite`},y={...!f&&i&&s&&x,...f&&{position:"absolute",willChange:"left",minWidth:"50%",animation:`${TQ} 1s ease infinite normal none running`}},w={overflow:"hidden",position:"relative",...v.track};return ee.createElement(ie.div,{borderRadius:b,__css:w,...m},ce(IQ,{value:v,children:[P(NQ,{"aria-label":p,"aria-labelledby":h,min:r,max:o,value:n,isIndeterminate:f,css:y,borderRadius:b}),u]}))};Q5.displayName="Progress";var DQ=ie("div",{baseStyle:{fontSize:"0.24em",top:"50%",left:"50%",width:"100%",textAlign:"center",position:"absolute",transform:"translate(-50%, -50%)"}});DQ.displayName="CircularProgressLabel";var FQ=(...e)=>e.filter(Boolean).join(" "),LQ=e=>e?"":void 0;function $Q(e,t){const n={},r={};for(const[o,i]of Object.entries(e))t.includes(o)?n[o]=i:r[o]=i;return[n,r]}var J5=fe(function(t,n){const{children:r,placeholder:o,className:i,...s}=t;return ee.createElement(ie.select,{...s,ref:n,className:FQ("chakra-select",i)},o&&P("option",{value:"",children:o}),r)});J5.displayName="SelectField";var e4=fe((e,t)=>{var n;const r=Fr("Select",e),{rootProps:o,placeholder:i,icon:s,color:u,height:c,h:f,minH:p,minHeight:h,iconColor:m,iconSize:v,...b}=yt(e),[x,k]=$Q(b,K9),S=KS(k),y={width:"100%",height:"fit-content",position:"relative",color:u},w={paddingEnd:"2rem",...r.field,_focus:{zIndex:"unset",...(n=r.field)==null?void 0:n._focus}};return ee.createElement(ie.div,{className:"chakra-select__wrapper",__css:y,...x,...o},P(J5,{ref:t,height:f??c,minH:p??h,placeholder:i,...S,__css:w,children:e.children}),P(t4,{"data-disabled":LQ(S.disabled),...(m||u)&&{color:m||u},__css:r.icon,...v&&{fontSize:v},children:s}))});e4.displayName="Select";var BQ=e=>P("svg",{viewBox:"0 0 24 24",...e,children:P("path",{fill:"currentColor",d:"M16.59 8.59L12 13.17 7.41 8.59 6 10l6 6 6-6z"})}),zQ=ie("div",{baseStyle:{position:"absolute",display:"inline-flex",alignItems:"center",justifyContent:"center",pointerEvents:"none",top:"50%",transform:"translateY(-50%)"}}),t4=e=>{const{children:t=P(BQ,{}),...n}=e,r=C.exports.cloneElement(t,{role:"presentation",className:"chakra-select__icon",focusable:!1,"aria-hidden":!0,style:{width:"1em",height:"1em",color:"currentColor"}});return P(zQ,{...n,className:"chakra-select__icon-wrapper",children:C.exports.isValidElement(t)?r:null})};t4.displayName="SelectIcon";var VQ=(...e)=>e.filter(Boolean).join(" "),PP=e=>e?"":void 0,ws=fe(function(t,n){const r=Fr("Switch",t),{spacing:o="0.5rem",children:i,...s}=yt(t),{state:u,getInputProps:c,getCheckboxProps:f,getRootProps:p,getLabelProps:h}=P3(s),m=C.exports.useMemo(()=>({display:"inline-block",position:"relative",verticalAlign:"middle",lineHeight:0,...r.container}),[r.container]),v=C.exports.useMemo(()=>({display:"inline-flex",flexShrink:0,justifyContent:"flex-start",boxSizing:"content-box",cursor:"pointer",...r.track}),[r.track]),b=C.exports.useMemo(()=>({userSelect:"none",marginStart:o,...r.label}),[o,r.label]);return ee.createElement(ie.label,{...p(),className:VQ("chakra-switch",t.className),__css:m},P("input",{className:"chakra-switch__input",...c({},n)}),ee.createElement(ie.span,{...f(),className:"chakra-switch__track",__css:v},ee.createElement(ie.span,{__css:r.thumb,className:"chakra-switch__thumb","data-checked":PP(u.isChecked),"data-hover":PP(u.isHovered)})),i&&ee.createElement(ie.span,{className:"chakra-switch__label",...h(),__css:b},i))});ws.displayName="Switch";var jQ=(...e)=>e.filter(Boolean).join(" ");function WQ(e,t=[]){const n=Object.assign({},e);for(const r of t)r in n&&delete n[r];return n}var UQ=["h","minH","height","minHeight"],n4=fe((e,t)=>{const n=Zn("Textarea",e),{className:r,rows:o,...i}=yt(e),s=KS(i),u=o?WQ(n,UQ):n;return ee.createElement(ie.textarea,{ref:t,rows:o,...s,className:jQ("chakra-textarea",r),__css:u})});n4.displayName="Textarea";function ct(e,t={}){let n=!1;function r(){if(!n){n=!0;return}throw new Error("[anatomy] .part(...) should only be called once. Did you mean to use .extend(...) ?")}function o(...p){r();for(const h of p)t[h]=c(h);return ct(e,t)}function i(...p){for(const h of p)h in t||(t[h]=c(h));return ct(e,t)}function s(){return Object.fromEntries(Object.entries(t).map(([h,m])=>[h,m.selector]))}function u(){return Object.fromEntries(Object.entries(t).map(([h,m])=>[h,m.className]))}function c(p){const v=`chakra-${(["container","root"].includes(p??"")?[e]:[e,p]).filter(Boolean).join("__")}`;return{className:v,selector:`.${v}`,toString:()=>p}}return{parts:o,toPart:c,extend:i,selectors:s,classnames:u,get keys(){return Object.keys(t)},__type:{}}}var HQ=ct("accordion").parts("root","container","button","panel").extend("icon"),GQ=ct("alert").parts("title","description","container").extend("icon","spinner"),qQ=ct("avatar").parts("label","badge","container").extend("excessLabel","group"),KQ=ct("breadcrumb").parts("link","item","container").extend("separator");ct("button").parts();var YQ=ct("checkbox").parts("control","icon","container").extend("label");ct("progress").parts("track","filledTrack").extend("label");var XQ=ct("drawer").parts("overlay","dialogContainer","dialog").extend("header","closeButton","body","footer"),ZQ=ct("editable").parts("preview","input","textarea"),QQ=ct("form").parts("container","requiredIndicator","helperText"),JQ=ct("formError").parts("text","icon"),eJ=ct("input").parts("addon","field","element"),tJ=ct("list").parts("container","item","icon"),nJ=ct("menu").parts("button","list","item").extend("groupTitle","command","divider"),rJ=ct("modal").parts("overlay","dialogContainer","dialog").extend("header","closeButton","body","footer"),oJ=ct("numberinput").parts("root","field","stepperGroup","stepper");ct("pininput").parts("field");var iJ=ct("popover").parts("content","header","body","footer").extend("popper","arrow","closeButton"),aJ=ct("progress").parts("label","filledTrack","track"),sJ=ct("radio").parts("container","control","label"),lJ=ct("select").parts("field","icon"),uJ=ct("slider").parts("container","track","thumb","filledTrack","mark"),cJ=ct("stat").parts("container","label","helpText","number","icon"),fJ=ct("switch").parts("container","track","thumb"),dJ=ct("table").parts("table","thead","tbody","tr","th","td","tfoot","caption"),pJ=ct("tabs").parts("root","tab","tablist","tabpanel","tabpanels","indicator"),hJ=ct("tag").parts("container","label","closeButton");function Cn(e,t){mJ(e)&&(e="100%");var n=gJ(e);return e=t===360?e:Math.min(t,Math.max(0,parseFloat(e))),n&&(e=parseInt(String(e*t),10)/100),Math.abs(e-t)<1e-6?1:(t===360?e=(e<0?e%t+t:e%t)/parseFloat(String(t)):e=e%t/parseFloat(String(t)),e)}function Up(e){return Math.min(1,Math.max(0,e))}function mJ(e){return typeof e=="string"&&e.indexOf(".")!==-1&&parseFloat(e)===1}function gJ(e){return typeof e=="string"&&e.indexOf("%")!==-1}function r4(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function Hp(e){return e<=1?"".concat(Number(e)*100,"%"):e}function gs(e){return e.length===1?"0"+e:String(e)}function vJ(e,t,n){return{r:Cn(e,255)*255,g:Cn(t,255)*255,b:Cn(n,255)*255}}function AP(e,t,n){e=Cn(e,255),t=Cn(t,255),n=Cn(n,255);var r=Math.max(e,t,n),o=Math.min(e,t,n),i=0,s=0,u=(r+o)/2;if(r===o)s=0,i=0;else{var c=r-o;switch(s=u>.5?c/(2-r-o):c/(r+o),r){case e:i=(t-n)/c+(t1&&(n-=1),n<1/6?e+(t-e)*(6*n):n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function yJ(e,t,n){var r,o,i;if(e=Cn(e,360),t=Cn(t,100),n=Cn(n,100),t===0)o=n,i=n,r=n;else{var s=n<.5?n*(1+t):n+t-n*t,u=2*n-s;r=Ly(u,s,e+1/3),o=Ly(u,s,e),i=Ly(u,s,e-1/3)}return{r:r*255,g:o*255,b:i*255}}function TP(e,t,n){e=Cn(e,255),t=Cn(t,255),n=Cn(n,255);var r=Math.max(e,t,n),o=Math.min(e,t,n),i=0,s=r,u=r-o,c=r===0?0:u/r;if(r===o)i=0;else{switch(r){case e:i=(t-n)/u+(t>16,g:(e&65280)>>8,b:e&255}}var zb={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",goldenrod:"#daa520",gold:"#ffd700",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavenderblush:"#fff0f5",lavender:"#e6e6fa",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"};function _J(e){var t={r:0,g:0,b:0},n=1,r=null,o=null,i=null,s=!1,u=!1;return typeof e=="string"&&(e=EJ(e)),typeof e=="object"&&(Si(e.r)&&Si(e.g)&&Si(e.b)?(t=vJ(e.r,e.g,e.b),s=!0,u=String(e.r).substr(-1)==="%"?"prgb":"rgb"):Si(e.h)&&Si(e.s)&&Si(e.v)?(r=Hp(e.s),o=Hp(e.v),t=bJ(e.h,r,o),s=!0,u="hsv"):Si(e.h)&&Si(e.s)&&Si(e.l)&&(r=Hp(e.s),i=Hp(e.l),t=yJ(e.h,r,i),s=!0,u="hsl"),Object.prototype.hasOwnProperty.call(e,"a")&&(n=e.a)),n=r4(n),{ok:s,format:e.format||u,r:Math.min(255,Math.max(t.r,0)),g:Math.min(255,Math.max(t.g,0)),b:Math.min(255,Math.max(t.b,0)),a:n}}var CJ="[-\\+]?\\d+%?",kJ="[-\\+]?\\d*\\.\\d+%?",xa="(?:".concat(kJ,")|(?:").concat(CJ,")"),$y="[\\s|\\(]+(".concat(xa,")[,|\\s]+(").concat(xa,")[,|\\s]+(").concat(xa,")\\s*\\)?"),By="[\\s|\\(]+(".concat(xa,")[,|\\s]+(").concat(xa,")[,|\\s]+(").concat(xa,")[,|\\s]+(").concat(xa,")\\s*\\)?"),vo={CSS_UNIT:new RegExp(xa),rgb:new RegExp("rgb"+$y),rgba:new RegExp("rgba"+By),hsl:new RegExp("hsl"+$y),hsla:new RegExp("hsla"+By),hsv:new RegExp("hsv"+$y),hsva:new RegExp("hsva"+By),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/};function EJ(e){if(e=e.trim().toLowerCase(),e.length===0)return!1;var t=!1;if(zb[e])e=zb[e],t=!0;else if(e==="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var n=vo.rgb.exec(e);return n?{r:n[1],g:n[2],b:n[3]}:(n=vo.rgba.exec(e),n?{r:n[1],g:n[2],b:n[3],a:n[4]}:(n=vo.hsl.exec(e),n?{h:n[1],s:n[2],l:n[3]}:(n=vo.hsla.exec(e),n?{h:n[1],s:n[2],l:n[3],a:n[4]}:(n=vo.hsv.exec(e),n?{h:n[1],s:n[2],v:n[3]}:(n=vo.hsva.exec(e),n?{h:n[1],s:n[2],v:n[3],a:n[4]}:(n=vo.hex8.exec(e),n?{r:Cr(n[1]),g:Cr(n[2]),b:Cr(n[3]),a:RP(n[4]),format:t?"name":"hex8"}:(n=vo.hex6.exec(e),n?{r:Cr(n[1]),g:Cr(n[2]),b:Cr(n[3]),format:t?"name":"hex"}:(n=vo.hex4.exec(e),n?{r:Cr(n[1]+n[1]),g:Cr(n[2]+n[2]),b:Cr(n[3]+n[3]),a:RP(n[4]+n[4]),format:t?"name":"hex8"}:(n=vo.hex3.exec(e),n?{r:Cr(n[1]+n[1]),g:Cr(n[2]+n[2]),b:Cr(n[3]+n[3]),format:t?"name":"hex"}:!1)))))))))}function Si(e){return Boolean(vo.CSS_UNIT.exec(String(e)))}var td=function(){function e(t,n){t===void 0&&(t=""),n===void 0&&(n={});var r;if(t instanceof e)return t;typeof t=="number"&&(t=wJ(t)),this.originalInput=t;var o=_J(t);this.originalInput=t,this.r=o.r,this.g=o.g,this.b=o.b,this.a=o.a,this.roundA=Math.round(100*this.a)/100,this.format=(r=n.format)!==null&&r!==void 0?r:o.format,this.gradientType=n.gradientType,this.r<1&&(this.r=Math.round(this.r)),this.g<1&&(this.g=Math.round(this.g)),this.b<1&&(this.b=Math.round(this.b)),this.isValid=o.ok}return e.prototype.isDark=function(){return this.getBrightness()<128},e.prototype.isLight=function(){return!this.isDark()},e.prototype.getBrightness=function(){var t=this.toRgb();return(t.r*299+t.g*587+t.b*114)/1e3},e.prototype.getLuminance=function(){var t=this.toRgb(),n,r,o,i=t.r/255,s=t.g/255,u=t.b/255;return i<=.03928?n=i/12.92:n=Math.pow((i+.055)/1.055,2.4),s<=.03928?r=s/12.92:r=Math.pow((s+.055)/1.055,2.4),u<=.03928?o=u/12.92:o=Math.pow((u+.055)/1.055,2.4),.2126*n+.7152*r+.0722*o},e.prototype.getAlpha=function(){return this.a},e.prototype.setAlpha=function(t){return this.a=r4(t),this.roundA=Math.round(100*this.a)/100,this},e.prototype.toHsv=function(){var t=TP(this.r,this.g,this.b);return{h:t.h*360,s:t.s,v:t.v,a:this.a}},e.prototype.toHsvString=function(){var t=TP(this.r,this.g,this.b),n=Math.round(t.h*360),r=Math.round(t.s*100),o=Math.round(t.v*100);return this.a===1?"hsv(".concat(n,", ").concat(r,"%, ").concat(o,"%)"):"hsva(".concat(n,", ").concat(r,"%, ").concat(o,"%, ").concat(this.roundA,")")},e.prototype.toHsl=function(){var t=AP(this.r,this.g,this.b);return{h:t.h*360,s:t.s,l:t.l,a:this.a}},e.prototype.toHslString=function(){var t=AP(this.r,this.g,this.b),n=Math.round(t.h*360),r=Math.round(t.s*100),o=Math.round(t.l*100);return this.a===1?"hsl(".concat(n,", ").concat(r,"%, ").concat(o,"%)"):"hsla(".concat(n,", ").concat(r,"%, ").concat(o,"%, ").concat(this.roundA,")")},e.prototype.toHex=function(t){return t===void 0&&(t=!1),OP(this.r,this.g,this.b,t)},e.prototype.toHexString=function(t){return t===void 0&&(t=!1),"#"+this.toHex(t)},e.prototype.toHex8=function(t){return t===void 0&&(t=!1),xJ(this.r,this.g,this.b,this.a,t)},e.prototype.toHex8String=function(t){return t===void 0&&(t=!1),"#"+this.toHex8(t)},e.prototype.toRgb=function(){return{r:Math.round(this.r),g:Math.round(this.g),b:Math.round(this.b),a:this.a}},e.prototype.toRgbString=function(){var t=Math.round(this.r),n=Math.round(this.g),r=Math.round(this.b);return this.a===1?"rgb(".concat(t,", ").concat(n,", ").concat(r,")"):"rgba(".concat(t,", ").concat(n,", ").concat(r,", ").concat(this.roundA,")")},e.prototype.toPercentageRgb=function(){var t=function(n){return"".concat(Math.round(Cn(n,255)*100),"%")};return{r:t(this.r),g:t(this.g),b:t(this.b),a:this.a}},e.prototype.toPercentageRgbString=function(){var t=function(n){return Math.round(Cn(n,255)*100)};return this.a===1?"rgb(".concat(t(this.r),"%, ").concat(t(this.g),"%, ").concat(t(this.b),"%)"):"rgba(".concat(t(this.r),"%, ").concat(t(this.g),"%, ").concat(t(this.b),"%, ").concat(this.roundA,")")},e.prototype.toName=function(){if(this.a===0)return"transparent";if(this.a<1)return!1;for(var t="#"+OP(this.r,this.g,this.b,!1),n=0,r=Object.entries(zb);n=0,i=!n&&o&&(t.startsWith("hex")||t==="name");return i?t==="name"&&this.a===0?this.toName():this.toRgbString():(t==="rgb"&&(r=this.toRgbString()),t==="prgb"&&(r=this.toPercentageRgbString()),(t==="hex"||t==="hex6")&&(r=this.toHexString()),t==="hex3"&&(r=this.toHexString(!0)),t==="hex4"&&(r=this.toHex8String(!0)),t==="hex8"&&(r=this.toHex8String()),t==="name"&&(r=this.toName()),t==="hsl"&&(r=this.toHslString()),t==="hsv"&&(r=this.toHsvString()),r||this.toHexString())},e.prototype.toNumber=function(){return(Math.round(this.r)<<16)+(Math.round(this.g)<<8)+Math.round(this.b)},e.prototype.clone=function(){return new e(this.toString())},e.prototype.lighten=function(t){t===void 0&&(t=10);var n=this.toHsl();return n.l+=t/100,n.l=Up(n.l),new e(n)},e.prototype.brighten=function(t){t===void 0&&(t=10);var n=this.toRgb();return n.r=Math.max(0,Math.min(255,n.r-Math.round(255*-(t/100)))),n.g=Math.max(0,Math.min(255,n.g-Math.round(255*-(t/100)))),n.b=Math.max(0,Math.min(255,n.b-Math.round(255*-(t/100)))),new e(n)},e.prototype.darken=function(t){t===void 0&&(t=10);var n=this.toHsl();return n.l-=t/100,n.l=Up(n.l),new e(n)},e.prototype.tint=function(t){return t===void 0&&(t=10),this.mix("white",t)},e.prototype.shade=function(t){return t===void 0&&(t=10),this.mix("black",t)},e.prototype.desaturate=function(t){t===void 0&&(t=10);var n=this.toHsl();return n.s-=t/100,n.s=Up(n.s),new e(n)},e.prototype.saturate=function(t){t===void 0&&(t=10);var n=this.toHsl();return n.s+=t/100,n.s=Up(n.s),new e(n)},e.prototype.greyscale=function(){return this.desaturate(100)},e.prototype.spin=function(t){var n=this.toHsl(),r=(n.h+t)%360;return n.h=r<0?360+r:r,new e(n)},e.prototype.mix=function(t,n){n===void 0&&(n=50);var r=this.toRgb(),o=new e(t).toRgb(),i=n/100,s={r:(o.r-r.r)*i+r.r,g:(o.g-r.g)*i+r.g,b:(o.b-r.b)*i+r.b,a:(o.a-r.a)*i+r.a};return new e(s)},e.prototype.analogous=function(t,n){t===void 0&&(t=6),n===void 0&&(n=30);var r=this.toHsl(),o=360/n,i=[this];for(r.h=(r.h-(o*t>>1)+720)%360;--t;)r.h=(r.h+o)%360,i.push(new e(r));return i},e.prototype.complement=function(){var t=this.toHsl();return t.h=(t.h+180)%360,new e(t)},e.prototype.monochromatic=function(t){t===void 0&&(t=6);for(var n=this.toHsv(),r=n.h,o=n.s,i=n.v,s=[],u=1/t;t--;)s.push(new e({h:r,s:o,v:i})),i=(i+u)%1;return s},e.prototype.splitcomplement=function(){var t=this.toHsl(),n=t.h;return[this,new e({h:(n+72)%360,s:t.s,l:t.l}),new e({h:(n+216)%360,s:t.s,l:t.l})]},e.prototype.onBackground=function(t){var n=this.toRgb(),r=new e(t).toRgb();return new e({r:r.r+(n.r-r.r)*n.a,g:r.g+(n.g-r.g)*n.a,b:r.b+(n.b-r.b)*n.a})},e.prototype.triad=function(){return this.polyad(3)},e.prototype.tetrad=function(){return this.polyad(4)},e.prototype.polyad=function(t){for(var n=this.toHsl(),r=n.h,o=[this],i=360/t,s=1;sn.length;)e.count=null,e.seed&&(e.seed+=1),n.push(o4(e));return e.count=t,n}var r=PJ(e.hue,e.seed),o=AJ(r,e),i=TJ(r,o,e),s={h:r,s:o,v:i};return e.alpha!==void 0&&(s.a=e.alpha),new td(s)}function PJ(e,t){var n=RJ(e),r=Am(n,t);return r<0&&(r=360+r),r}function AJ(e,t){if(t.hue==="monochrome")return 0;if(t.luminosity==="random")return Am([0,100],t.seed);var n=i4(e).saturationRange,r=n[0],o=n[1];switch(t.luminosity){case"bright":r=55;break;case"dark":r=o-10;break;case"light":o=55;break}return Am([r,o],t.seed)}function TJ(e,t,n){var r=OJ(e,t),o=100;switch(n.luminosity){case"dark":o=r+20;break;case"light":r=(o+r)/2;break;case"random":r=0,o=100;break}return Am([r,o],n.seed)}function OJ(e,t){for(var n=i4(e).lowerBounds,r=0;r=o&&t<=s){var c=(u-i)/(s-o),f=i-c*o;return c*t+f}}return 0}function RJ(e){var t=parseInt(e,10);if(!Number.isNaN(t)&&t<360&&t>0)return[t,t];if(typeof e=="string"){var n=s4.find(function(s){return s.name===e});if(n){var r=a4(n);if(r.hueRange)return r.hueRange}var o=new td(e);if(o.isValid){var i=o.toHsv().h;return[i,i]}}return[0,360]}function i4(e){e>=334&&e<=360&&(e-=360);for(var t=0,n=s4;t=o.hueRange[0]&&e<=o.hueRange[1])return o}throw Error("Color not found")}function Am(e,t){if(t===void 0)return Math.floor(e[0]+Math.random()*(e[1]+1-e[0]));var n=e[1]||1,r=e[0]||0;t=(t*9301+49297)%233280;var o=t/233280;return Math.floor(r+o*(n-r))}function a4(e){var t=e.lowerBounds[0][0],n=e.lowerBounds[e.lowerBounds.length-1][0],r=e.lowerBounds[e.lowerBounds.length-1][1],o=e.lowerBounds[0][1];return{name:e.name,hueRange:e.hueRange,lowerBounds:e.lowerBounds,saturationRange:[t,n],brightnessRange:[r,o]}}var s4=[{name:"monochrome",hueRange:null,lowerBounds:[[0,0],[100,0]]},{name:"red",hueRange:[-26,18],lowerBounds:[[20,100],[30,92],[40,89],[50,85],[60,78],[70,70],[80,60],[90,55],[100,50]]},{name:"orange",hueRange:[19,46],lowerBounds:[[20,100],[30,93],[40,88],[50,86],[60,85],[70,70],[100,70]]},{name:"yellow",hueRange:[47,62],lowerBounds:[[25,100],[40,94],[50,89],[60,86],[70,84],[80,82],[90,80],[100,75]]},{name:"green",hueRange:[63,178],lowerBounds:[[30,100],[40,90],[50,85],[60,81],[70,74],[80,64],[90,50],[100,40]]},{name:"blue",hueRange:[179,257],lowerBounds:[[20,100],[30,86],[40,80],[50,74],[60,60],[70,52],[80,44],[90,39],[100,35]]},{name:"purple",hueRange:[258,282],lowerBounds:[[20,100],[30,87],[40,79],[50,70],[60,65],[70,59],[80,52],[90,45],[100,42]]},{name:"pink",hueRange:[283,334],lowerBounds:[[20,100],[30,90],[40,86],[60,84],[80,80],[90,75],[100,73]]}];function IJ(e,t,n,r,o){for(t=t.split?t.split("."):t,r=0;rObject.keys(e).length===0,ln=(e,t,n)=>{const r=IJ(e,`colors.${t}`,t),{isValid:o}=new td(r);return o?r:n},NJ=e=>t=>{const n=ln(t,e);return new td(n).isDark()?"dark":"light"},DJ=e=>t=>NJ(e)(t)==="dark",pu=(e,t)=>n=>{const r=ln(n,e);return new td(r).setAlpha(t).toRgbString()};function IP(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}`}}function FJ(e){const t=o4().toHexString();return!e||MJ(e)?t:e.string&&e.colors?$J(e.string,e.colors):e.string&&!e.colors?LJ(e.string):e.colors&&!e.string?BJ(e.colors):t}function LJ(e){let t=0;if(e.length===0)return t.toString();for(let r=0;r>r*8&255).toString(16)}`.substr(-2);return n}function $J(e,t){let n=0;if(e.length===0)return t[0];for(let r=0;rn.colorMode==="dark"?t:e}function Aw(e){const{orientation:t,vertical:n,horizontal:r}=e;return t?t==="vertical"?n:r:{}}function zJ(e){const t=typeof e;return e!=null&&(t==="object"||t==="function")&&!Array.isArray(e)}function l4(e){return zJ(e)&&e.reference?e.reference:String(e)}var Hg=(e,...t)=>t.map(l4).join(` ${e} `).replace(/calc/g,""),MP=(...e)=>`calc(${Hg("+",...e)})`,NP=(...e)=>`calc(${Hg("-",...e)})`,Vb=(...e)=>`calc(${Hg("*",...e)})`,DP=(...e)=>`calc(${Hg("/",...e)})`,FP=e=>{const t=l4(e);return t!=null&&!Number.isNaN(parseFloat(t))?String(t).startsWith("-")?String(t).slice(1):`-${t}`:Vb(t,-1)},Ei=Object.assign(e=>({add:(...t)=>Ei(MP(e,...t)),subtract:(...t)=>Ei(NP(e,...t)),multiply:(...t)=>Ei(Vb(e,...t)),divide:(...t)=>Ei(DP(e,...t)),negate:()=>Ei(FP(e)),toString:()=>e.toString()}),{add:MP,subtract:NP,multiply:Vb,divide:DP,negate:FP});function VJ(e){return!Number.isInteger(parseFloat(e.toString()))}function jJ(e,t="-"){return e.replace(/\s+/g,t)}function u4(e){const t=jJ(e.toString());return t.includes("\\.")?e:VJ(e)?t.replace(".","\\."):e}function WJ(e,t=""){return[t,u4(e)].filter(Boolean).join("-")}function UJ(e,t){return`var(${u4(e)}${t?`, ${t}`:""})`}function HJ(e,t=""){return`--${WJ(e,t)}`}function pr(e,t){const n=HJ(e,t?.prefix);return{variable:n,reference:UJ(n,GJ(t?.fallback))}}function GJ(e){return typeof e=="string"?e:e?.reference}var{definePartsStyle:qJ,defineMultiStyleConfig:KJ}=Rt(HQ.keys),YJ={borderTopWidth:"1px",borderColor:"inherit",_last:{borderBottomWidth:"1px"}},XJ={transitionProperty:"common",transitionDuration:"normal",fontSize:"md",_focusVisible:{boxShadow:"outline"},_hover:{bg:"blackAlpha.50"},_disabled:{opacity:.4,cursor:"not-allowed"},px:"4",py:"2"},ZJ={pt:"2",px:"4",pb:"5"},QJ={fontSize:"1.25em"},JJ=qJ({container:YJ,button:XJ,panel:ZJ,icon:QJ}),eee=KJ({baseStyle:JJ}),{definePartsStyle:nd,defineMultiStyleConfig:tee}=Rt(GQ.keys),$i=Va("alert-fg"),rd=Va("alert-bg"),nee=nd({container:{bg:rd.reference,px:"4",py:"3"},title:{fontWeight:"bold",lineHeight:"6",marginEnd:"2"},description:{lineHeight:"6"},icon:{color:$i.reference,flexShrink:0,marginEnd:"3",w:"5",h:"6"},spinner:{color:$i.reference,flexShrink:0,marginEnd:"3",w:"5",h:"5"}});function Tw(e){const{theme:t,colorScheme:n}=e,r=ln(t,`${n}.100`,n),o=pu(`${n}.200`,.16)(t);return J(r,o)(e)}var ree=nd(e=>{const{colorScheme:t}=e,n=J(`${t}.500`,`${t}.200`)(e);return{container:{[rd.variable]:Tw(e),[$i.variable]:`colors.${n}`}}}),oee=nd(e=>{const{colorScheme:t}=e,n=J(`${t}.500`,`${t}.200`)(e);return{container:{[rd.variable]:Tw(e),[$i.variable]:`colors.${n}`,paddingStart:"3",borderStartWidth:"4px",borderStartColor:$i.reference}}}),iee=nd(e=>{const{colorScheme:t}=e,n=J(`${t}.500`,`${t}.200`)(e);return{container:{[rd.variable]:Tw(e),[$i.variable]:`colors.${n}`,pt:"2",borderTopWidth:"4px",borderTopColor:$i.reference}}}),aee=nd(e=>{const{colorScheme:t}=e,n=J(`${t}.500`,`${t}.200`)(e),r=J("white","gray.900")(e);return{container:{[rd.variable]:`colors.${n}`,[$i.variable]:`colors.${r}`,color:$i.reference}}}),see={subtle:ree,"left-accent":oee,"top-accent":iee,solid:aee},lee=tee({baseStyle:nee,variants:see,defaultProps:{variant:"subtle",colorScheme:"blue"}}),c4={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"},uee={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"},cee={sm:"640px",md:"768px",lg:"1024px",xl:"1280px"},fee={...c4,...uee,container:cee},f4=fee,dee=e=>typeof e=="function";function qt(e,...t){return dee(e)?e(...t):e}var{definePartsStyle:d4,defineMultiStyleConfig:pee}=Rt(qQ.keys),hee=e=>({borderRadius:"full",border:"0.2em solid",borderColor:J("white","gray.800")(e)}),mee=e=>({bg:J("gray.200","whiteAlpha.400")(e)}),gee=e=>{const{name:t,theme:n}=e,r=t?FJ({string:t}):"gray.400",o=DJ(r)(n);let i="white";o||(i="gray.800");const s=J("white","gray.800")(e);return{bg:r,color:i,borderColor:s,verticalAlign:"top"}},vee=d4(e=>({badge:qt(hee,e),excessLabel:qt(mee,e),container:qt(gee,e)}));function na(e){const t=e!=="100%"?f4[e]:void 0;return d4({container:{width:e,height:e,fontSize:`calc(${t??e} / 2.5)`},excessLabel:{width:e,height:e},label:{fontSize:`calc(${t??e} / 2.5)`,lineHeight:e!=="100%"?t??e:void 0}})}var yee={"2xs":na(4),xs:na(6),sm:na(8),md:na(12),lg:na(16),xl:na(24),"2xl":na(32),full:na("100%")},bee=pee({baseStyle:vee,sizes:yee,defaultProps:{size:"md"}}),xee={px:1,textTransform:"uppercase",fontSize:"xs",borderRadius:"sm",fontWeight:"bold"},See=e=>{const{colorScheme:t,theme:n}=e,r=pu(`${t}.500`,.6)(n);return{bg:J(`${t}.500`,r)(e),color:J("white","whiteAlpha.800")(e)}},wee=e=>{const{colorScheme:t,theme:n}=e,r=pu(`${t}.200`,.16)(n);return{bg:J(`${t}.100`,r)(e),color:J(`${t}.800`,`${t}.200`)(e)}},_ee=e=>{const{colorScheme:t,theme:n}=e,r=pu(`${t}.200`,.8)(n),o=ln(n,`${t}.500`),i=J(o,r)(e);return{color:i,boxShadow:`inset 0 0 0px 1px ${i}`}},Cee={solid:See,subtle:wee,outline:_ee},Wc={baseStyle:xee,variants:Cee,defaultProps:{variant:"subtle",colorScheme:"gray"}},{defineMultiStyleConfig:kee,definePartsStyle:Eee}=Rt(KQ.keys),Pee={transitionProperty:"common",transitionDuration:"fast",transitionTimingFunction:"ease-out",cursor:"pointer",textDecoration:"none",outline:"none",color:"inherit",_hover:{textDecoration:"underline"},_focusVisible:{boxShadow:"outline"}},Aee=Eee({link:Pee}),Tee=kee({baseStyle:Aee}),Oee={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"}}},p4=e=>{const{colorScheme:t,theme:n}=e;if(t==="gray")return{color:J("inherit","whiteAlpha.900")(e),_hover:{bg:J("gray.100","whiteAlpha.200")(e)},_active:{bg:J("gray.200","whiteAlpha.300")(e)}};const r=pu(`${t}.200`,.12)(n),o=pu(`${t}.200`,.24)(n);return{color:J(`${t}.600`,`${t}.200`)(e),bg:"transparent",_hover:{bg:J(`${t}.50`,r)(e)},_active:{bg:J(`${t}.100`,o)(e)}}},Ree=e=>{const{colorScheme:t}=e,n=J("gray.200","whiteAlpha.300")(e);return{border:"1px solid",borderColor:t==="gray"?n:"currentColor",".chakra-button__group[data-attached] > &:not(:last-of-type)":{marginEnd:"-1px"},...qt(p4,e)}},Iee={yellow:{bg:"yellow.400",color:"black",hoverBg:"yellow.500",activeBg:"yellow.600"},cyan:{bg:"cyan.400",color:"black",hoverBg:"cyan.500",activeBg:"cyan.600"}},Mee=e=>{const{colorScheme:t}=e;if(t==="gray"){const u=J("gray.100","whiteAlpha.200")(e);return{bg:u,_hover:{bg:J("gray.200","whiteAlpha.300")(e),_disabled:{bg:u}},_active:{bg:J("gray.300","whiteAlpha.400")(e)}}}const{bg:n=`${t}.500`,color:r="white",hoverBg:o=`${t}.600`,activeBg:i=`${t}.700`}=Iee[t]??{},s=J(n,`${t}.200`)(e);return{bg:s,color:J(r,"gray.800")(e),_hover:{bg:J(o,`${t}.300`)(e),_disabled:{bg:s}},_active:{bg:J(i,`${t}.400`)(e)}}},Nee=e=>{const{colorScheme:t}=e;return{padding:0,height:"auto",lineHeight:"normal",verticalAlign:"baseline",color:J(`${t}.500`,`${t}.200`)(e),_hover:{textDecoration:"underline",_disabled:{textDecoration:"none"}},_active:{color:J(`${t}.700`,`${t}.500`)(e)}}},Dee={bg:"none",color:"inherit",display:"inline",lineHeight:"inherit",m:"0",p:"0"},Fee={ghost:p4,outline:Ree,solid:Mee,link:Nee,unstyled:Dee},Lee={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"}},$ee={baseStyle:Oee,variants:Fee,sizes:Lee,defaultProps:{variant:"solid",size:"md",colorScheme:"gray"}},{definePartsStyle:_h,defineMultiStyleConfig:Bee}=Rt(YQ.keys),Uc=Va("checkbox-size"),zee=e=>{const{colorScheme:t}=e;return{w:Uc.reference,h:Uc.reference,transitionProperty:"box-shadow",transitionDuration:"normal",border:"2px solid",borderRadius:"sm",borderColor:"inherit",color:"white",_checked:{bg:J(`${t}.500`,`${t}.200`)(e),borderColor:J(`${t}.500`,`${t}.200`)(e),color:J("white","gray.900")(e),_hover:{bg:J(`${t}.600`,`${t}.300`)(e),borderColor:J(`${t}.600`,`${t}.300`)(e)},_disabled:{borderColor:J("gray.200","transparent")(e),bg:J("gray.200","whiteAlpha.300")(e),color:J("gray.500","whiteAlpha.500")(e)}},_indeterminate:{bg:J(`${t}.500`,`${t}.200`)(e),borderColor:J(`${t}.500`,`${t}.200`)(e),color:J("white","gray.900")(e)},_disabled:{bg:J("gray.100","whiteAlpha.100")(e),borderColor:J("gray.100","transparent")(e)},_focusVisible:{boxShadow:"outline"},_invalid:{borderColor:J("red.500","red.300")(e)}}},Vee={_disabled:{cursor:"not-allowed"}},jee={userSelect:"none",_disabled:{opacity:.4}},Wee={transitionProperty:"transform",transitionDuration:"normal"},Uee=_h(e=>({icon:Wee,container:Vee,control:qt(zee,e),label:jee})),Hee={sm:_h({control:{[Uc.variable]:"sizes.3"},label:{fontSize:"sm"},icon:{fontSize:"3xs"}}),md:_h({control:{[Uc.variable]:"sizes.4"},label:{fontSize:"md"},icon:{fontSize:"2xs"}}),lg:_h({control:{[Uc.variable]:"sizes.5"},label:{fontSize:"lg"},icon:{fontSize:"2xs"}})},Tm=Bee({baseStyle:Uee,sizes:Hee,defaultProps:{size:"md",colorScheme:"blue"}}),Hc=pr("close-button-size"),Gee=e=>{const t=J("blackAlpha.100","whiteAlpha.100")(e),n=J("blackAlpha.200","whiteAlpha.200")(e);return{w:[Hc.reference],h:[Hc.reference],borderRadius:"md",transitionProperty:"common",transitionDuration:"normal",_disabled:{opacity:.4,cursor:"not-allowed",boxShadow:"none"},_hover:{bg:t},_active:{bg:n},_focusVisible:{boxShadow:"outline"}}},qee={lg:{[Hc.variable]:"sizes.10",fontSize:"md"},md:{[Hc.variable]:"sizes.8",fontSize:"xs"},sm:{[Hc.variable]:"sizes.6",fontSize:"2xs"}},Kee={baseStyle:Gee,sizes:qee,defaultProps:{size:"md"}},{variants:Yee,defaultProps:Xee}=Wc,Zee={fontFamily:"mono",fontSize:"sm",px:"0.2em",borderRadius:"sm"},Qee={baseStyle:Zee,variants:Yee,defaultProps:Xee},Jee={w:"100%",mx:"auto",maxW:"prose",px:"4"},ete={baseStyle:Jee},tte={opacity:.6,borderColor:"inherit"},nte={borderStyle:"solid"},rte={borderStyle:"dashed"},ote={solid:nte,dashed:rte},ite={baseStyle:tte,variants:ote,defaultProps:{variant:"solid"}},{definePartsStyle:jb,defineMultiStyleConfig:ate}=Rt(XQ.keys);function vl(e){return jb(e==="full"?{dialog:{maxW:"100vw",h:"100vh"}}:{dialog:{maxW:e}})}var ste={bg:"blackAlpha.600",zIndex:"overlay"},lte={display:"flex",zIndex:"modal",justifyContent:"center"},ute=e=>{const{isFullHeight:t}=e;return{...t&&{height:"100vh"},zIndex:"modal",maxH:"100vh",bg:J("white","gray.700")(e),color:"inherit",boxShadow:J("lg","dark-lg")(e)}},cte={px:"6",py:"4",fontSize:"xl",fontWeight:"semibold"},fte={position:"absolute",top:"2",insetEnd:"3"},dte={px:"6",py:"2",flex:"1",overflow:"auto"},pte={px:"6",py:"4"},hte=jb(e=>({overlay:ste,dialogContainer:lte,dialog:qt(ute,e),header:cte,closeButton:fte,body:dte,footer:pte})),mte={xs:vl("xs"),sm:vl("md"),md:vl("lg"),lg:vl("2xl"),xl:vl("4xl"),full:vl("full")},gte=ate({baseStyle:hte,sizes:mte,defaultProps:{size:"xs"}}),{definePartsStyle:vte,defineMultiStyleConfig:yte}=Rt(ZQ.keys),bte={borderRadius:"md",py:"1",transitionProperty:"common",transitionDuration:"normal"},xte={borderRadius:"md",py:"1",transitionProperty:"common",transitionDuration:"normal",width:"full",_focusVisible:{boxShadow:"outline"},_placeholder:{opacity:.6}},Ste={borderRadius:"md",py:"1",transitionProperty:"common",transitionDuration:"normal",width:"full",_focusVisible:{boxShadow:"outline"},_placeholder:{opacity:.6}},wte=vte({preview:bte,input:xte,textarea:Ste}),_te=yte({baseStyle:wte}),{definePartsStyle:Cte,defineMultiStyleConfig:kte}=Rt(QQ.keys),Ete=e=>({marginStart:"1",color:J("red.500","red.300")(e)}),Pte=e=>({mt:"2",color:J("gray.600","whiteAlpha.600")(e),lineHeight:"normal",fontSize:"sm"}),Ate=Cte(e=>({container:{width:"100%",position:"relative"},requiredIndicator:qt(Ete,e),helperText:qt(Pte,e)})),Tte=kte({baseStyle:Ate}),{definePartsStyle:Ote,defineMultiStyleConfig:Rte}=Rt(JQ.keys),Ite=e=>({color:J("red.500","red.300")(e),mt:"2",fontSize:"sm",lineHeight:"normal"}),Mte=e=>({marginEnd:"0.5em",color:J("red.500","red.300")(e)}),Nte=Ote(e=>({text:qt(Ite,e),icon:qt(Mte,e)})),Dte=Rte({baseStyle:Nte}),Fte={fontSize:"md",marginEnd:"3",mb:"2",fontWeight:"medium",transitionProperty:"common",transitionDuration:"normal",opacity:1,_disabled:{opacity:.4}},Lte={baseStyle:Fte},$te={fontFamily:"heading",fontWeight:"bold"},Bte={"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}},zte={baseStyle:$te,sizes:Bte,defaultProps:{size:"xl"}},{definePartsStyle:Ti,defineMultiStyleConfig:Vte}=Rt(eJ.keys),jte=Ti({field:{width:"100%",minWidth:0,outline:0,position:"relative",appearance:"none",transitionProperty:"common",transitionDuration:"normal",_disabled:{opacity:.4,cursor:"not-allowed"}}}),ra={lg:{fontSize:"lg",px:"4",h:"12",borderRadius:"md"},md:{fontSize:"md",px:"4",h:"10",borderRadius:"md"},sm:{fontSize:"sm",px:"3",h:"8",borderRadius:"sm"},xs:{fontSize:"xs",px:"2",h:"6",borderRadius:"sm"}},Wte={lg:Ti({field:ra.lg,addon:ra.lg}),md:Ti({field:ra.md,addon:ra.md}),sm:Ti({field:ra.sm,addon:ra.sm}),xs:Ti({field:ra.xs,addon:ra.xs})};function Ow(e){const{focusBorderColor:t,errorBorderColor:n}=e;return{focusBorderColor:t||J("blue.500","blue.300")(e),errorBorderColor:n||J("red.500","red.300")(e)}}var Ute=Ti(e=>{const{theme:t}=e,{focusBorderColor:n,errorBorderColor:r}=Ow(e);return{field:{border:"1px solid",borderColor:"inherit",bg:"inherit",_hover:{borderColor:J("gray.300","whiteAlpha.400")(e)},_readOnly:{boxShadow:"none !important",userSelect:"all"},_invalid:{borderColor:ln(t,r),boxShadow:`0 0 0 1px ${ln(t,r)}`},_focusVisible:{zIndex:1,borderColor:ln(t,n),boxShadow:`0 0 0 1px ${ln(t,n)}`}},addon:{border:"1px solid",borderColor:J("inherit","whiteAlpha.50")(e),bg:J("gray.100","whiteAlpha.300")(e)}}}),Hte=Ti(e=>{const{theme:t}=e,{focusBorderColor:n,errorBorderColor:r}=Ow(e);return{field:{border:"2px solid",borderColor:"transparent",bg:J("gray.100","whiteAlpha.50")(e),_hover:{bg:J("gray.200","whiteAlpha.100")(e)},_readOnly:{boxShadow:"none !important",userSelect:"all"},_invalid:{borderColor:ln(t,r)},_focusVisible:{bg:"transparent",borderColor:ln(t,n)}},addon:{border:"2px solid",borderColor:"transparent",bg:J("gray.100","whiteAlpha.50")(e)}}}),Gte=Ti(e=>{const{theme:t}=e,{focusBorderColor:n,errorBorderColor:r}=Ow(e);return{field:{borderBottom:"1px solid",borderColor:"inherit",borderRadius:"0",px:"0",bg:"transparent",_readOnly:{boxShadow:"none !important",userSelect:"all"},_invalid:{borderColor:ln(t,r),boxShadow:`0px 1px 0px 0px ${ln(t,r)}`},_focusVisible:{borderColor:ln(t,n),boxShadow:`0px 1px 0px 0px ${ln(t,n)}`}},addon:{borderBottom:"2px solid",borderColor:"inherit",borderRadius:"0",px:"0",bg:"transparent"}}}),qte=Ti({field:{bg:"transparent",px:"0",height:"auto"},addon:{bg:"transparent",px:"0",height:"auto"}}),Kte={outline:Ute,filled:Hte,flushed:Gte,unstyled:qte},tt=Vte({baseStyle:jte,sizes:Wte,variants:Kte,defaultProps:{size:"md",variant:"outline"}}),Yte=e=>({bg:J("gray.100","whiteAlpha")(e),borderRadius:"md",borderWidth:"1px",borderBottomWidth:"3px",fontSize:"0.8em",fontWeight:"bold",lineHeight:"normal",px:"0.4em",whiteSpace:"nowrap"}),Xte={baseStyle:Yte},Zte={transitionProperty:"common",transitionDuration:"fast",transitionTimingFunction:"ease-out",cursor:"pointer",textDecoration:"none",outline:"none",color:"inherit",_hover:{textDecoration:"underline"},_focusVisible:{boxShadow:"outline"}},Qte={baseStyle:Zte},{defineMultiStyleConfig:Jte,definePartsStyle:ene}=Rt(tJ.keys),tne={marginEnd:"2",display:"inline",verticalAlign:"text-bottom"},nne=ene({icon:tne}),rne=Jte({baseStyle:nne}),{defineMultiStyleConfig:one,definePartsStyle:ine}=Rt(nJ.keys),ane=e=>({bg:J("#fff","gray.700")(e),boxShadow:J("sm","dark-lg")(e),color:"inherit",minW:"3xs",py:"2",zIndex:1,borderRadius:"md",borderWidth:"1px"}),sne=e=>({py:"1.5",px:"3",transitionProperty:"background",transitionDuration:"ultra-fast",transitionTimingFunction:"ease-in",_focus:{bg:J("gray.100","whiteAlpha.100")(e)},_active:{bg:J("gray.200","whiteAlpha.200")(e)},_expanded:{bg:J("gray.100","whiteAlpha.100")(e)},_disabled:{opacity:.4,cursor:"not-allowed"}}),lne={mx:4,my:2,fontWeight:"semibold",fontSize:"sm"},une={opacity:.6},cne={border:0,borderBottom:"1px solid",borderColor:"inherit",my:"2",opacity:.6},fne={transitionProperty:"common",transitionDuration:"normal"},dne=ine(e=>({button:fne,list:qt(ane,e),item:qt(sne,e),groupTitle:lne,command:une,divider:cne})),pne=one({baseStyle:dne}),{defineMultiStyleConfig:hne,definePartsStyle:Wb}=Rt(rJ.keys),mne={bg:"blackAlpha.600",zIndex:"modal"},gne=e=>{const{isCentered:t,scrollBehavior:n}=e;return{display:"flex",zIndex:"modal",justifyContent:"center",alignItems:t?"center":"flex-start",overflow:n==="inside"?"hidden":"auto"}},vne=e=>{const{scrollBehavior:t}=e;return{borderRadius:"md",bg:J("white","gray.700")(e),color:"inherit",my:"16",zIndex:"modal",maxH:t==="inside"?"calc(100% - 7.5rem)":void 0,boxShadow:J("lg","dark-lg")(e)}},yne={px:"6",py:"4",fontSize:"xl",fontWeight:"semibold"},bne={position:"absolute",top:"2",insetEnd:"3"},xne=e=>{const{scrollBehavior:t}=e;return{px:"6",py:"2",flex:"1",overflow:t==="inside"?"auto":void 0}},Sne={px:"6",py:"4"},wne=Wb(e=>({overlay:mne,dialogContainer:qt(gne,e),dialog:qt(vne,e),header:yne,closeButton:bne,body:qt(xne,e),footer:Sne}));function go(e){return Wb(e==="full"?{dialog:{maxW:"100vw",minH:"$100vh",my:"0",borderRadius:"0"}}:{dialog:{maxW:e}})}var _ne={xs:go("xs"),sm:go("sm"),md:go("md"),lg:go("lg"),xl:go("xl"),"2xl":go("2xl"),"3xl":go("3xl"),"4xl":go("4xl"),"5xl":go("5xl"),"6xl":go("6xl"),full:go("full")},Cne=hne({baseStyle:wne,sizes:_ne,defaultProps:{size:"md"}}),kne={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"}},h4=kne,{defineMultiStyleConfig:Ene,definePartsStyle:m4}=Rt(oJ.keys),Rw=pr("number-input-stepper-width"),g4=pr("number-input-input-padding"),Pne=Ei(Rw).add("0.5rem").toString(),Ane={[Rw.variable]:"sizes.6",[g4.variable]:Pne},Tne=e=>{var t;return((t=qt(tt.baseStyle,e))==null?void 0:t.field)??{}},One={width:[Rw.reference]},Rne=e=>({borderStart:"1px solid",borderStartColor:J("inherit","whiteAlpha.300")(e),color:J("inherit","whiteAlpha.800")(e),_active:{bg:J("gray.200","whiteAlpha.300")(e)},_disabled:{opacity:.4,cursor:"not-allowed"}}),Ine=m4(e=>({root:Ane,field:Tne,stepperGroup:One,stepper:qt(Rne,e)??{}}));function Gp(e){var t,n;const r=(t=tt.sizes)==null?void 0:t[e],o={lg:"md",md:"md",sm:"sm",xs:"sm"},i=((n=r.field)==null?void 0:n.fontSize)??"md",s=h4.fontSizes[i];return m4({field:{...r.field,paddingInlineEnd:g4.reference,verticalAlign:"top"},stepper:{fontSize:Ei(s).multiply(.75).toString(),_first:{borderTopEndRadius:o[e]},_last:{borderBottomEndRadius:o[e],mt:"-1px",borderTopWidth:1}}})}var Mne={xs:Gp("xs"),sm:Gp("sm"),md:Gp("md"),lg:Gp("lg")},Nne=Ene({baseStyle:Ine,sizes:Mne,variants:tt.variants,defaultProps:tt.defaultProps}),LP,Dne={...(LP=tt.baseStyle)==null?void 0:LP.field,textAlign:"center"},Fne={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"}},$P,Lne={outline:e=>{var t,n;return((n=qt((t=tt.variants)==null?void 0:t.outline,e))==null?void 0:n.field)??{}},flushed:e=>{var t,n;return((n=qt((t=tt.variants)==null?void 0:t.flushed,e))==null?void 0:n.field)??{}},filled:e=>{var t,n;return((n=qt((t=tt.variants)==null?void 0:t.filled,e))==null?void 0:n.field)??{}},unstyled:(($P=tt.variants)==null?void 0:$P.unstyled.field)??{}},$ne={baseStyle:Dne,sizes:Fne,variants:Lne,defaultProps:tt.defaultProps},{defineMultiStyleConfig:Bne,definePartsStyle:zne}=Rt(iJ.keys),zy=pr("popper-bg"),Vne=pr("popper-arrow-bg"),jne=pr("popper-arrow-shadow-color"),Wne={zIndex:10},Une=e=>{const t=J("white","gray.700")(e),n=J("gray.200","whiteAlpha.300")(e);return{[zy.variable]:`colors.${t}`,bg:zy.reference,[Vne.variable]:zy.reference,[jne.variable]:`colors.${n}`,width:"xs",border:"1px solid",borderColor:"inherit",borderRadius:"md",boxShadow:"sm",zIndex:"inherit",_focusVisible:{outline:0,boxShadow:"outline"}}},Hne={px:3,py:2,borderBottomWidth:"1px"},Gne={px:3,py:2},qne={px:3,py:2,borderTopWidth:"1px"},Kne={position:"absolute",borderRadius:"md",top:1,insetEnd:2,padding:2},Yne=zne(e=>({popper:Wne,content:Une(e),header:Hne,body:Gne,footer:qne,closeButton:Kne})),Xne=Bne({baseStyle:Yne}),{defineMultiStyleConfig:Zne,definePartsStyle:Sc}=Rt(aJ.keys),Qne=e=>{const{colorScheme:t,theme:n,isIndeterminate:r,hasStripe:o}=e,i=J(IP(),IP("1rem","rgba(0,0,0,0.1)"))(e),s=J(`${t}.500`,`${t}.200`)(e),u=`linear-gradient( + to right, + transparent 0%, + ${ln(n,s)} 50%, + transparent 100% + )`;return{...!r&&o&&i,...r?{bgImage:u}:{bgColor:s}}},Jne={lineHeight:"1",fontSize:"0.25em",fontWeight:"bold",color:"white"},ere=e=>({bg:J("gray.100","whiteAlpha.300")(e)}),tre=e=>({transitionProperty:"common",transitionDuration:"slow",...Qne(e)}),nre=Sc(e=>({label:Jne,filledTrack:tre(e),track:ere(e)})),rre={xs:Sc({track:{h:"1"}}),sm:Sc({track:{h:"2"}}),md:Sc({track:{h:"3"}}),lg:Sc({track:{h:"4"}})},ore=Zne({sizes:rre,baseStyle:nre,defaultProps:{size:"md",colorScheme:"blue"}}),{defineMultiStyleConfig:ire,definePartsStyle:Ch}=Rt(sJ.keys),are=e=>{var t;const n=(t=qt(Tm.baseStyle,e))==null?void 0:t.control;return{...n,borderRadius:"full",_checked:{...n?._checked,_before:{content:'""',display:"inline-block",pos:"relative",w:"50%",h:"50%",borderRadius:"50%",bg:"currentColor"}}}},sre=Ch(e=>{var t,n,r,o;return{label:(n=(t=Tm).baseStyle)==null?void 0:n.call(t,e).label,container:(o=(r=Tm).baseStyle)==null?void 0:o.call(r,e).container,control:are(e)}}),lre={md:Ch({control:{w:"4",h:"4"},label:{fontSize:"md"}}),lg:Ch({control:{w:"5",h:"5"},label:{fontSize:"lg"}}),sm:Ch({control:{width:"3",height:"3"},label:{fontSize:"sm"}})},ure=ire({baseStyle:sre,sizes:lre,defaultProps:{size:"md",colorScheme:"blue"}}),{defineMultiStyleConfig:cre,definePartsStyle:fre}=Rt(lJ.keys),dre=e=>{var t;return{...(t=tt.baseStyle)==null?void 0:t.field,bg:J("white","gray.700")(e),appearance:"none",paddingBottom:"1px",lineHeight:"normal","> option, > optgroup":{bg:J("white","gray.700")(e)}}},pre={width:"6",height:"100%",insetEnd:"2",position:"relative",color:"currentColor",fontSize:"xl",_disabled:{opacity:.5}},hre=fre(e=>({field:dre(e),icon:pre})),qp={paddingInlineEnd:"8"},BP,zP,VP,jP,WP,UP,HP,GP,mre={lg:{...(BP=tt.sizes)==null?void 0:BP.lg,field:{...(zP=tt.sizes)==null?void 0:zP.lg.field,...qp}},md:{...(VP=tt.sizes)==null?void 0:VP.md,field:{...(jP=tt.sizes)==null?void 0:jP.md.field,...qp}},sm:{...(WP=tt.sizes)==null?void 0:WP.sm,field:{...(UP=tt.sizes)==null?void 0:UP.sm.field,...qp}},xs:{...(HP=tt.sizes)==null?void 0:HP.xs,field:{...(GP=tt.sizes)==null?void 0:GP.sm.field,...qp},icon:{insetEnd:"1"}}},gre=cre({baseStyle:hre,sizes:mre,variants:tt.variants,defaultProps:tt.defaultProps}),vre=Va("skeleton-start-color"),yre=Va("skeleton-end-color"),bre=e=>{const t=J("gray.100","gray.800")(e),n=J("gray.400","gray.600")(e),{startColor:r=t,endColor:o=n,theme:i}=e,s=ln(i,r),u=ln(i,o);return{[vre.variable]:s,[yre.variable]:u,opacity:.7,borderRadius:"2px",borderColor:s,background:u}},xre={baseStyle:bre},Sre=e=>({borderRadius:"md",fontWeight:"semibold",_focusVisible:{boxShadow:"outline",padding:"4",position:"fixed",top:"6",insetStart:"6",bg:J("white","gray.700")(e)}}),wre={baseStyle:Sre},{defineMultiStyleConfig:_re,definePartsStyle:Gg}=Rt(uJ.keys),If=Va("slider-thumb-size"),Mf=Va("slider-track-size"),Cre=e=>{const{orientation:t}=e;return{display:"inline-block",position:"relative",cursor:"pointer",_disabled:{opacity:.6,cursor:"default",pointerEvents:"none"},...Aw({orientation:t,vertical:{h:"100%"},horizontal:{w:"100%"}})}},kre=e=>({...Aw({orientation:e.orientation,horizontal:{h:Mf.reference},vertical:{w:Mf.reference}}),overflow:"hidden",borderRadius:"sm",bg:J("gray.200","whiteAlpha.200")(e),_disabled:{bg:J("gray.300","whiteAlpha.300")(e)}}),Ere=e=>{const{orientation:t}=e;return{...Aw({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:If.reference,h:If.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"}}},Pre=e=>{const{colorScheme:t}=e;return{width:"inherit",height:"inherit",bg:J(`${t}.500`,`${t}.200`)(e)}},Are=Gg(e=>({container:Cre(e),track:kre(e),thumb:Ere(e),filledTrack:Pre(e)})),Tre=Gg({container:{[If.variable]:"sizes.4",[Mf.variable]:"sizes.1"}}),Ore=Gg({container:{[If.variable]:"sizes.3.5",[Mf.variable]:"sizes.1"}}),Rre=Gg({container:{[If.variable]:"sizes.2.5",[Mf.variable]:"sizes.0.5"}}),Ire={lg:Tre,md:Ore,sm:Rre},Mre=_re({baseStyle:Are,sizes:Ire,defaultProps:{size:"md",colorScheme:"blue"}}),us=pr("spinner-size"),Nre={width:[us.reference],height:[us.reference]},Dre={xs:{[us.variable]:"sizes.3"},sm:{[us.variable]:"sizes.4"},md:{[us.variable]:"sizes.6"},lg:{[us.variable]:"sizes.8"},xl:{[us.variable]:"sizes.12"}},Fre={baseStyle:Nre,sizes:Dre,defaultProps:{size:"md"}},{defineMultiStyleConfig:Lre,definePartsStyle:v4}=Rt(cJ.keys),$re={fontWeight:"medium"},Bre={opacity:.8,marginBottom:"2"},zre={verticalAlign:"baseline",fontWeight:"semibold"},Vre={marginEnd:1,w:"3.5",h:"3.5",verticalAlign:"middle"},jre=v4({container:{},label:$re,helpText:Bre,number:zre,icon:Vre}),Wre={md:v4({label:{fontSize:"sm"},helpText:{fontSize:"sm"},number:{fontSize:"2xl"}})},Ure=Lre({baseStyle:jre,sizes:Wre,defaultProps:{size:"md"}}),{defineMultiStyleConfig:Hre,definePartsStyle:kh}=Rt(fJ.keys),Gc=pr("switch-track-width"),_s=pr("switch-track-height"),Vy=pr("switch-track-diff"),Gre=Ei.subtract(Gc,_s),Ub=pr("switch-thumb-x"),qre=e=>{const{colorScheme:t}=e;return{borderRadius:"full",p:"0.5",width:[Gc.reference],height:[_s.reference],transitionProperty:"common",transitionDuration:"fast",bg:J("gray.300","whiteAlpha.400")(e),_focusVisible:{boxShadow:"outline"},_disabled:{opacity:.4,cursor:"not-allowed"},_checked:{bg:J(`${t}.500`,`${t}.200`)(e)}}},Kre={bg:"white",transitionProperty:"transform",transitionDuration:"normal",borderRadius:"inherit",width:[_s.reference],height:[_s.reference],_checked:{transform:`translateX(${Ub.reference})`}},Yre=kh(e=>({container:{[Vy.variable]:Gre,[Ub.variable]:Vy.reference,_rtl:{[Ub.variable]:Ei(Vy).negate().toString()}},track:qre(e),thumb:Kre})),Xre={sm:kh({container:{[Gc.variable]:"1.375rem",[_s.variable]:"sizes.3"}}),md:kh({container:{[Gc.variable]:"1.875rem",[_s.variable]:"sizes.4"}}),lg:kh({container:{[Gc.variable]:"2.875rem",[_s.variable]:"sizes.6"}})},Zre=Hre({baseStyle:Yre,sizes:Xre,defaultProps:{size:"md",colorScheme:"blue"}}),{defineMultiStyleConfig:Qre,definePartsStyle:Yl}=Rt(dJ.keys),Jre=Yl({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"}}),Om={"&[data-is-numeric=true]":{textAlign:"end"}},eoe=Yl(e=>{const{colorScheme:t}=e;return{th:{color:J("gray.600","gray.400")(e),borderBottom:"1px",borderColor:J(`${t}.100`,`${t}.700`)(e),...Om},td:{borderBottom:"1px",borderColor:J(`${t}.100`,`${t}.700`)(e),...Om},caption:{color:J("gray.600","gray.100")(e)},tfoot:{tr:{"&:last-of-type":{th:{borderBottomWidth:0}}}}}}),toe=Yl(e=>{const{colorScheme:t}=e;return{th:{color:J("gray.600","gray.400")(e),borderBottom:"1px",borderColor:J(`${t}.100`,`${t}.700`)(e),...Om},td:{borderBottom:"1px",borderColor:J(`${t}.100`,`${t}.700`)(e),...Om},caption:{color:J("gray.600","gray.100")(e)},tbody:{tr:{"&:nth-of-type(odd)":{"th, td":{borderBottomWidth:"1px",borderColor:J(`${t}.100`,`${t}.700`)(e)},td:{background:J(`${t}.100`,`${t}.700`)(e)}}}},tfoot:{tr:{"&:last-of-type":{th:{borderBottomWidth:0}}}}}}),noe={simple:eoe,striped:toe,unstyled:{}},roe={sm:Yl({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:Yl({th:{px:"6",py:"3",lineHeight:"4",fontSize:"xs"},td:{px:"6",py:"4",lineHeight:"5"},caption:{px:"6",py:"2",fontSize:"sm"}}),lg:Yl({th:{px:"8",py:"4",lineHeight:"5",fontSize:"sm"},td:{px:"8",py:"5",lineHeight:"6"},caption:{px:"6",py:"2",fontSize:"md"}})},ooe=Qre({baseStyle:Jre,variants:noe,sizes:roe,defaultProps:{variant:"simple",size:"md",colorScheme:"gray"}}),{defineMultiStyleConfig:ioe,definePartsStyle:Qo}=Rt(pJ.keys),aoe=e=>{const{orientation:t}=e;return{display:t==="vertical"?"flex":"block"}},soe=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}}},loe=e=>{const{align:t="start",orientation:n}=e;return{justifyContent:{end:"flex-end",center:"center",start:"flex-start"}[t],flexDirection:n==="vertical"?"column":"row"}},uoe={p:4},coe=Qo(e=>({root:aoe(e),tab:soe(e),tablist:loe(e),tabpanel:uoe})),foe={sm:Qo({tab:{py:1,px:4,fontSize:"sm"}}),md:Qo({tab:{fontSize:"md",py:2,px:4}}),lg:Qo({tab:{fontSize:"lg",py:3,px:4}})},doe=Qo(e=>{const{colorScheme:t,orientation:n}=e,r=n==="vertical",o=n==="vertical"?"borderStart":"borderBottom",i=r?"marginStart":"marginBottom";return{tablist:{[o]:"2px solid",borderColor:"inherit"},tab:{[o]:"2px solid",borderColor:"transparent",[i]:"-2px",_selected:{color:J(`${t}.600`,`${t}.300`)(e),borderColor:"currentColor"},_active:{bg:J("gray.200","whiteAlpha.300")(e)},_disabled:{_active:{bg:"none"}}}}}),poe=Qo(e=>{const{colorScheme:t}=e;return{tab:{borderTopRadius:"md",border:"1px solid",borderColor:"transparent",mb:"-1px",_selected:{color:J(`${t}.600`,`${t}.300`)(e),borderColor:"inherit",borderBottomColor:J("white","gray.800")(e)}},tablist:{mb:"-1px",borderBottom:"1px solid",borderColor:"inherit"}}}),hoe=Qo(e=>{const{colorScheme:t}=e;return{tab:{border:"1px solid",borderColor:"inherit",bg:J("gray.50","whiteAlpha.50")(e),mb:"-1px",_notLast:{marginEnd:"-1px"},_selected:{bg:J("#fff","gray.800")(e),color:J(`${t}.600`,`${t}.300`)(e),borderColor:"inherit",borderTopColor:"currentColor",borderBottomColor:"transparent"}},tablist:{mb:"-1px",borderBottom:"1px solid",borderColor:"inherit"}}}),moe=Qo(e=>{const{colorScheme:t,theme:n}=e;return{tab:{borderRadius:"full",fontWeight:"semibold",color:"gray.600",_selected:{color:ln(n,`${t}.700`),bg:ln(n,`${t}.100`)}}}}),goe=Qo(e=>{const{colorScheme:t}=e;return{tab:{borderRadius:"full",fontWeight:"semibold",color:J("gray.600","inherit")(e),_selected:{color:J("#fff","gray.800")(e),bg:J(`${t}.600`,`${t}.300`)(e)}}}}),voe=Qo({}),yoe={line:doe,enclosed:poe,"enclosed-colored":hoe,"soft-rounded":moe,"solid-rounded":goe,unstyled:voe},boe=ioe({baseStyle:coe,sizes:foe,variants:yoe,defaultProps:{size:"md",variant:"line",colorScheme:"blue"}}),{defineMultiStyleConfig:xoe,definePartsStyle:Cs}=Rt(hJ.keys),Soe={fontWeight:"medium",lineHeight:1.2,outline:0,borderRadius:"md",_focusVisible:{boxShadow:"outline"}},woe={lineHeight:1.2,overflow:"visible"},_oe={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}},Coe=Cs({container:Soe,label:woe,closeButton:_oe}),koe={sm:Cs({container:{minH:"5",minW:"5",fontSize:"xs",px:"2"},closeButton:{marginEnd:"-2px",marginStart:"0.35rem"}}),md:Cs({container:{minH:"6",minW:"6",fontSize:"sm",px:"2"}}),lg:Cs({container:{minH:"8",minW:"8",fontSize:"md",px:"3"}})},Eoe={subtle:Cs(e=>{var t;return{container:(t=Wc.variants)==null?void 0:t.subtle(e)}}),solid:Cs(e=>{var t;return{container:(t=Wc.variants)==null?void 0:t.solid(e)}}),outline:Cs(e=>{var t;return{container:(t=Wc.variants)==null?void 0:t.outline(e)}})},Poe=xoe({variants:Eoe,baseStyle:Coe,sizes:koe,defaultProps:{size:"md",variant:"subtle",colorScheme:"gray"}}),qP,Aoe={...(qP=tt.baseStyle)==null?void 0:qP.field,paddingY:"2",minHeight:"20",lineHeight:"short",verticalAlign:"top"},KP,Toe={outline:e=>{var t;return((t=tt.variants)==null?void 0:t.outline(e).field)??{}},flushed:e=>{var t;return((t=tt.variants)==null?void 0:t.flushed(e).field)??{}},filled:e=>{var t;return((t=tt.variants)==null?void 0:t.filled(e).field)??{}},unstyled:((KP=tt.variants)==null?void 0:KP.unstyled.field)??{}},YP,XP,ZP,QP,Ooe={xs:((YP=tt.sizes)==null?void 0:YP.xs.field)??{},sm:((XP=tt.sizes)==null?void 0:XP.sm.field)??{},md:((ZP=tt.sizes)==null?void 0:ZP.md.field)??{},lg:((QP=tt.sizes)==null?void 0:QP.lg.field)??{}},Roe={baseStyle:Aoe,sizes:Ooe,variants:Toe,defaultProps:{size:"md",variant:"outline"}},jy=pr("tooltip-bg"),JP=pr("tooltip-fg"),Ioe=pr("popper-arrow-bg"),Moe=e=>{const t=J("gray.700","gray.300")(e),n=J("whiteAlpha.900","gray.900")(e);return{bg:jy.reference,color:JP.reference,[jy.variable]:`colors.${t}`,[JP.variable]:`colors.${n}`,[Ioe.variable]:jy.reference,px:"2",py:"0.5",borderRadius:"sm",fontWeight:"medium",fontSize:"sm",boxShadow:"md",maxW:"xs",zIndex:"tooltip"}},Noe={baseStyle:Moe},Doe={Accordion:eee,Alert:lee,Avatar:bee,Badge:Wc,Breadcrumb:Tee,Button:$ee,Checkbox:Tm,CloseButton:Kee,Code:Qee,Container:ete,Divider:ite,Drawer:gte,Editable:_te,Form:Tte,FormError:Dte,FormLabel:Lte,Heading:zte,Input:tt,Kbd:Xte,Link:Qte,List:rne,Menu:pne,Modal:Cne,NumberInput:Nne,PinInput:$ne,Popover:Xne,Progress:ore,Radio:ure,Select:gre,Skeleton:xre,SkipLink:wre,Slider:Mre,Spinner:Fre,Stat:Ure,Switch:Zre,Table:ooe,Tabs:boe,Tag:Poe,Textarea:Roe,Tooltip:Noe},Foe={none:0,"1px":"1px solid","2px":"2px solid","4px":"4px solid","8px":"8px solid"},Loe=Foe,$oe={base:"0em",sm:"30em",md:"48em",lg:"62em",xl:"80em","2xl":"96em"},Boe=$oe,zoe={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"}},Voe=zoe,joe={none:"0",sm:"0.125rem",base:"0.25rem",md:"0.375rem",lg:"0.5rem",xl:"0.75rem","2xl":"1rem","3xl":"1.5rem",full:"9999px"},Woe=joe,Uoe={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"},Hoe=Uoe,Goe={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"},qoe={"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)"},Koe={"ultra-fast":"50ms",faster:"100ms",fast:"150ms",normal:"200ms",slow:"300ms",slower:"400ms","ultra-slow":"500ms"},Yoe={property:Goe,easing:qoe,duration:Koe},Xoe=Yoe,Zoe={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},Qoe=Zoe,Joe={none:0,sm:"4px",base:"8px",md:"12px",lg:"16px",xl:"24px","2xl":"40px","3xl":"64px"},eie=Joe,tie={breakpoints:Boe,zIndices:Qoe,radii:Woe,blur:eie,colors:Voe,...h4,sizes:f4,shadows:Hoe,space:c4,borders:Loe,transition:Xoe},nie={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-placeholder-color":{_light:"gray.500",_dark:"whiteAlpha.400"}}},rie={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",wordWrap:"break-word"}}};function oie(e){const t=typeof e;return e!=null&&(t==="object"||t==="function")&&!Array.isArray(e)}var iie=["borders","breakpoints","colors","components","config","direction","fonts","fontSizes","fontWeights","letterSpacings","lineHeights","radii","shadows","sizes","space","styles","transition","zIndices"];function aie(e){return oie(e)?iie.every(t=>Object.prototype.hasOwnProperty.call(e,t)):!1}var sie="ltr",lie={useSystemColorMode:!1,initialColorMode:"light",cssVarPrefix:"chakra"},y4={semanticTokens:nie,direction:sie,...tie,components:Doe,styles:rie,config:lie};function uie(e,t){const n=Dn(e);C.exports.useEffect(()=>{if(t==null)return;let r=null;return r=window.setTimeout(()=>{n()},t),()=>{r&&window.clearTimeout(r)}},[t,n])}function Hb(e,...t){return cie(e)?e(...t):e}var cie=e=>typeof e=="function";function fie(e,t){const n=e??"bottom",o={"top-start":{ltr:"top-left",rtl:"top-right"},"top-end":{ltr:"top-right",rtl:"top-left"},"bottom-start":{ltr:"bottom-left",rtl:"bottom-right"},"bottom-end":{ltr:"bottom-right",rtl:"bottom-left"}}[n];return o?.[t]??n}var die=(e,t)=>e.find(n=>n.id===t);function eA(e,t){const n=b4(e,t),r=n?e[n].findIndex(o=>o.id===t):-1;return{position:n,index:r}}function b4(e,t){for(const[n,r]of Object.entries(e))if(die(r,t))return n}function pie(e){const t=e.includes("right"),n=e.includes("left");let r="center";return t&&(r="flex-end"),n&&(r="flex-start"),{display:"flex",flexDirection:"column",alignItems:r}}function hie(e){const n=e==="top"||e==="bottom"?"0 auto":void 0,r=e.includes("top")?"env(safe-area-inset-top, 0px)":void 0,o=e.includes("bottom")?"env(safe-area-inset-bottom, 0px)":void 0,i=e.includes("left")?void 0:"env(safe-area-inset-right, 0px)",s=e.includes("right")?void 0:"env(safe-area-inset-left, 0px)";return{position:"fixed",zIndex:5500,pointerEvents:"none",display:"flex",flexDirection:"column",margin:n,top:r,bottom:o,right:i,left:s}}var mie={top:[],"top-left":[],"top-right":[],"bottom-left":[],bottom:[],"bottom-right":[]},Wo=gie(mie);function gie(e){let t=e;const n=new Set,r=o=>{t=o(t),n.forEach(i=>i())};return{getState:()=>t,subscribe:o=>(n.add(o),()=>{r(()=>e),n.delete(o)}),removeToast:(o,i)=>{r(s=>({...s,[i]:s[i].filter(u=>u.id!=o)}))},notify:(o,i)=>{const s=vie(o,i),{position:u,id:c}=s;return r(f=>{const h=u.includes("top")?[s,...f[u]??[]]:[...f[u]??[],s];return{...f,[u]:h}}),c},update:(o,i)=>{!o||r(s=>{const u={...s},{position:c,index:f}=eA(u,o);return c&&f!==-1&&(u[c][f]={...u[c][f],...i,message:x4(i)}),u})},closeAll:({positions:o}={})=>{r(i=>(o??["bottom","bottom-right","bottom-left","top","top-left","top-right"]).reduce((c,f)=>(c[f]=i[f].map(p=>({...p,requestClose:!0})),c),{...i}))},close:o=>{r(i=>{const s=b4(i,o);return s?{...i,[s]:i[s].map(u=>u.id==o?{...u,requestClose:!0}:u)}:i})},isActive:o=>Boolean(eA(Wo.getState(),o).position)}}var tA=0;function vie(e,t={}){tA+=1;const n=t.id??tA,r=t.position??"bottom";return{id:n,message:e,position:r,duration:t.duration,onCloseComplete:t.onCloseComplete,onRequestRemove:()=>Wo.removeToast(String(n),r),status:t.status,requestClose:!1,containerStyle:t.containerStyle}}var yie=e=>{const{status:t,variant:n="solid",id:r,title:o,isClosable:i,onClose:s,description:u,icon:c}=e,f=r?{root:`toast-${r}`,title:`toast-${r}-title`,description:`toast-${r}-description`}:void 0;return ee.createElement(v3,{addRole:!1,status:t,variant:n,id:f?.root,alignItems:"start",borderRadius:"md",boxShadow:"lg",paddingEnd:8,textAlign:"start",width:"auto"},P(b3,{children:c}),ee.createElement(ie.div,{flex:"1",maxWidth:"100%"},o&&P(x3,{id:f?.title,children:o}),u&&P(y3,{id:f?.description,display:"block",children:u})),i&&P(QS,{size:"sm",onClick:s,position:"absolute",insetEnd:1,top:1}))};function x4(e={}){const{render:t,toastComponent:n=yie}=e;return o=>typeof t=="function"?t(o):P(n,{...o,...e})}function bie(e,t){const n=o=>({...t,...o,position:fie(o?.position??t?.position,e)}),r=o=>{const i=n(o),s=x4(i);return Wo.notify(s,i)};return r.update=(o,i)=>{Wo.update(o,n(i))},r.promise=(o,i)=>{const s=r({...i.loading,status:"loading",duration:null});o.then(u=>r.update(s,{status:"success",duration:5e3,...Hb(i.success,u)})).catch(u=>r.update(s,{status:"error",duration:5e3,...Hb(i.error,u)}))},r.closeAll=Wo.closeAll,r.close=Wo.close,r.isActive=Wo.isActive,r}function S4(e){const{theme:t}=DR();return C.exports.useMemo(()=>bie(t.direction,e),[e,t.direction])}var xie={initial:e=>{const{position:t}=e,n=["top","bottom"].includes(t)?"y":"x";let r=["top-right","bottom-right"].includes(t)?1:-1;return t==="bottom"&&(r=1),{opacity:0,[n]:r*24}},animate:{opacity:1,y:0,x:0,scale:1,transition:{duration:.4,ease:[.4,0,.2,1]}},exit:{opacity:0,scale:.85,transition:{duration:.2,ease:[.4,0,1,1]}}},w4=C.exports.memo(e=>{const{id:t,message:n,onCloseComplete:r,onRequestRemove:o,requestClose:i=!1,position:s="bottom",duration:u=5e3,containerStyle:c,motionVariants:f=xie,toastSpacing:p="0.5rem"}=e,[h,m]=C.exports.useState(u),v=pU();xm(()=>{v||r?.()},[v]),xm(()=>{m(u)},[u]);const b=()=>m(null),x=()=>m(u),k=()=>{v&&o()};C.exports.useEffect(()=>{v&&i&&o()},[v,i,o]),uie(k,h);const S=C.exports.useMemo(()=>({pointerEvents:"auto",maxWidth:560,minWidth:300,margin:p,...c}),[c,p]),y=C.exports.useMemo(()=>pie(s),[s]);return ee.createElement(Ao.li,{layout:!0,className:"chakra-toast",variants:f,initial:"initial",animate:"animate",exit:"exit",onHoverStart:b,onHoverEnd:x,custom:{position:s},style:y},ee.createElement(ie.div,{role:"status","aria-atomic":"true",className:"chakra-toast__inner",__css:S},Hb(n,{id:t,onClose:k})))});w4.displayName="ToastComponent";var Sie=e=>{const t=C.exports.useSyncExternalStore(Wo.subscribe,Wo.getState,Wo.getState),{children:n,motionVariants:r,component:o=w4,portalProps:i}=e,u=Object.keys(t).map(c=>{const f=t[c];return P("ul",{role:"region","aria-live":"polite",id:`chakra-toast-manager-${c}`,style:hie(c),children:P(Vi,{initial:!1,children:f.map(p=>P(o,{motionVariants:r,...p},p.id))})},c)});return ce(fr,{children:[n,P($s,{...i,children:u})]})};function wie(e,t=[]){const n=Object.assign({},e);for(const r of t)r in n&&delete n[r];return n}function _ie(e,t){const n={};for(const r of t)r in e&&(n[r]=e[r]);return n}var Cie={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]}}}};function pc(...e){return function(n){e.some(r=>(r?.(n),n?.defaultPrevented))}}var Gb=e=>{var t;return((t=e.current)==null?void 0:t.ownerDocument)||document},qb=e=>{var t,n;return((n=(t=e.current)==null?void 0:t.ownerDocument)==null?void 0:n.defaultView)||window};function kie(e={}){const{openDelay:t=0,closeDelay:n=0,closeOnClick:r=!0,closeOnMouseDown:o,closeOnEsc:i=!0,onOpen:s,onClose:u,placement:c,id:f,isOpen:p,defaultIsOpen:h,arrowSize:m=10,arrowShadowColor:v,arrowPadding:b,modifiers:x,isDisabled:k,gutter:S,offset:y,direction:w,...E}=e,{isOpen:O,onOpen:N,onClose:D}=hX({isOpen:p,defaultIsOpen:h,onOpen:s,onClose:u}),{referenceRef:V,getPopperProps:Y,getArrowInnerProps:j,getArrowProps:te}=dX({enabled:O,placement:c,arrowPadding:b,modifiers:x,gutter:S,offset:y,direction:w}),Se=C.exports.useId(),xe=`tooltip-${f??Se}`,_e=C.exports.useRef(null),ge=C.exports.useRef(),Pe=C.exports.useRef(),W=C.exports.useCallback(()=>{Pe.current&&(clearTimeout(Pe.current),Pe.current=void 0),D()},[D]),X=Eie(_e,W),q=C.exports.useCallback(()=>{if(!k&&!ge.current){X();const ue=qb(_e);ge.current=ue.setTimeout(N,t)}},[X,k,N,t]),I=C.exports.useCallback(()=>{ge.current&&(clearTimeout(ge.current),ge.current=void 0);const ue=qb(_e);Pe.current=ue.setTimeout(W,n)},[n,W]),H=C.exports.useCallback(()=>{O&&r&&I()},[r,I,O]),ae=C.exports.useCallback(()=>{O&&o&&I()},[o,I,O]),se=C.exports.useCallback(ue=>{O&&ue.key==="Escape"&&I()},[O,I]);Ab(()=>Gb(_e),"keydown",i?se:void 0),C.exports.useEffect(()=>()=>{clearTimeout(ge.current),clearTimeout(Pe.current)},[]),Ab(()=>_e.current,"mouseleave",I);const pe=C.exports.useCallback((ue={},Ae=null)=>({...ue,ref:Kn(_e,Ae,V),onMouseEnter:pc(ue.onMouseEnter,q),onClick:pc(ue.onClick,H),onMouseDown:pc(ue.onMouseDown,ae),onFocus:pc(ue.onFocus,q),onBlur:pc(ue.onBlur,I),"aria-describedby":O?xe:void 0}),[q,I,ae,O,xe,H,V]),me=C.exports.useCallback((ue={},Ae=null)=>Y({...ue,style:{...ue.style,[wn.arrowSize.var]:m?`${m}px`:void 0,[wn.arrowShadowColor.var]:v}},Ae),[Y,m,v]),Ee=C.exports.useCallback((ue={},Ae=null)=>{const Ne={...ue.style,position:"relative",transformOrigin:wn.transformOrigin.varRef};return{ref:Ae,...E,...ue,id:xe,role:"tooltip",style:Ne}},[E,xe]);return{isOpen:O,show:q,hide:I,getTriggerProps:pe,getTooltipProps:Ee,getTooltipPositionerProps:me,getArrowProps:te,getArrowInnerProps:j}}var Wy="chakra-ui:close-tooltip";function Eie(e,t){return C.exports.useEffect(()=>{const n=Gb(e);return n.addEventListener(Wy,t),()=>n.removeEventListener(Wy,t)},[t,e]),()=>{const n=Gb(e),r=qb(e);n.dispatchEvent(new r.CustomEvent(Wy))}}var Pie=ie(Ao.div),Kb=fe((e,t)=>{const n=Zn("Tooltip",e),r=yt(e),o=yS(),{children:i,label:s,shouldWrapChildren:u,"aria-label":c,hasArrow:f,bg:p,portalProps:h,background:m,backgroundColor:v,bgColor:b,...x}=r,k=m??v??p??b;if(k){n.bg=k;const V=a7(o,"colors",k);n[wn.arrowBg.var]=V}const S=kie({...x,direction:o.direction}),y=typeof i=="string"||u;let w;if(y)w=ee.createElement(ie.span,{tabIndex:0,...S.getTriggerProps()},i);else{const V=C.exports.Children.only(i);w=C.exports.cloneElement(V,S.getTriggerProps(V.props,V.ref))}const E=!!c,O=S.getTooltipProps({},t),N=E?wie(O,["role","id"]):O,D=_ie(O,["role","id"]);return s?ce(fr,{children:[w,P(Vi,{children:S.isOpen&&ee.createElement($s,{...h},ee.createElement(ie.div,{...S.getTooltipPositionerProps(),__css:{zIndex:n.zIndex,pointerEvents:"none"}},ce(Pie,{variants:Cie,...N,initial:"exit",animate:"enter",exit:"exit",__css:n,children:[s,E&&ee.createElement(ie.span,{srOnly:!0,...D},c),f&&ee.createElement(ie.div,{"data-popper-arrow":!0,className:"chakra-tooltip__arrow-wrapper"},ee.createElement(ie.div,{"data-popper-arrow-inner":!0,className:"chakra-tooltip__arrow",__css:{bg:n.bg}}))]})))})]}):P(fr,{children:i})});Kb.displayName="Tooltip";var Aie=e=>{const{children:t,colorModeManager:n,portalZIndex:r,resetCSS:o=!0,theme:i={},environment:s,cssVarsRoot:u}=e,c=P(H3,{environment:s,children:t});return P(CV,{theme:i,cssVarsRoot:u,children:ce(rR,{colorModeManager:n,options:i.config,children:[o?P(rK,{}):P(nK,{}),P(EV,{}),r?P(n5,{zIndex:r,children:c}):c]})})};function Tie({children:e,theme:t=y4,toastOptions:n,...r}){return ce(Aie,{theme:t,...r,children:[e,P(Sie,{...n})]})}function Oie(...e){let t=[...e],n=e[e.length-1];return aie(n)&&t.length>1?t=t.slice(0,t.length-1):n=y4,sV(...t.map(r=>o=>Il(r)?r(o):Rie(o,r)))(n)}function Rie(...e){return Ma({},...e,_4)}function _4(e,t,n,r){if((Il(e)||Il(t))&&Object.prototype.hasOwnProperty.call(r,n))return(...o)=>{const i=Il(e)?e(...o):e,s=Il(t)?t(...o):t;return Ma({},i,s,_4)}}function wo(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r3?t.i-4:t.i:Array.isArray(e)?1:Iw(e)?2:Mw(e)?3:0}function Xl(e,t){return Cu(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function Iie(e,t){return Cu(e)===2?e.get(t):e[t]}function C4(e,t,n){var r=Cu(e);r===2?e.set(t,n):r===3?(e.delete(t),e.add(n)):e[t]=n}function k4(e,t){return e===t?e!==0||1/e==1/t:e!=e&&t!=t}function Iw(e){return $ie&&e instanceof Map}function Mw(e){return Bie&&e instanceof Set}function ss(e){return e.o||e.t}function Nw(e){if(Array.isArray(e))return Array.prototype.slice.call(e);var t=P4(e);delete t[Tt];for(var n=Zl(t),r=0;r1&&(e.set=e.add=e.clear=e.delete=Mie),Object.freeze(e),t&&Ms(e,function(n,r){return Dw(r,!0)},!0)),e}function Mie(){wo(2)}function Fw(e){return e==null||typeof e!="object"||Object.isFrozen(e)}function Jo(e){var t=Qb[e];return t||wo(18,e),t}function Nie(e,t){Qb[e]||(Qb[e]=t)}function Yb(){return Nf}function Uy(e,t){t&&(Jo("Patches"),e.u=[],e.s=[],e.v=t)}function Rm(e){Xb(e),e.p.forEach(Die),e.p=null}function Xb(e){e===Nf&&(Nf=e.l)}function nA(e){return Nf={p:[],l:Nf,h:e,m:!0,_:0}}function Die(e){var t=e[Tt];t.i===0||t.i===1?t.j():t.O=!0}function Hy(e,t){t._=t.p.length;var n=t.p[0],r=e!==void 0&&e!==n;return t.h.g||Jo("ES5").S(t,e,r),r?(n[Tt].P&&(Rm(t),wo(4)),Bi(e)&&(e=Im(t,e),t.l||Mm(t,e)),t.u&&Jo("Patches").M(n[Tt].t,e,t.u,t.s)):e=Im(t,n,[]),Rm(t),t.u&&t.v(t.u,t.s),e!==E4?e:void 0}function Im(e,t,n){if(Fw(t))return t;var r=t[Tt];if(!r)return Ms(t,function(i,s){return rA(e,r,t,i,s,n)},!0),t;if(r.A!==e)return t;if(!r.P)return Mm(e,r.t,!0),r.t;if(!r.I){r.I=!0,r.A._--;var o=r.i===4||r.i===5?r.o=Nw(r.k):r.o;Ms(r.i===3?new Set(o):o,function(i,s){return rA(e,r,o,i,s,n)}),Mm(e,o,!1),n&&e.u&&Jo("Patches").R(r,n,e.u,e.s)}return r.o}function rA(e,t,n,r,o,i){if(Fa(o)){var s=Im(e,o,i&&t&&t.i!==3&&!Xl(t.D,r)?i.concat(r):void 0);if(C4(n,r,s),!Fa(s))return;e.m=!1}if(Bi(o)&&!Fw(o)){if(!e.h.F&&e._<1)return;Im(e,o),t&&t.A.l||Mm(e,o)}}function Mm(e,t,n){n===void 0&&(n=!1),e.h.F&&e.m&&Dw(t,n)}function Gy(e,t){var n=e[Tt];return(n?ss(n):e)[t]}function oA(e,t){if(t in e)for(var n=Object.getPrototypeOf(e);n;){var r=Object.getOwnPropertyDescriptor(n,t);if(r)return r;n=Object.getPrototypeOf(n)}}function ha(e){e.P||(e.P=!0,e.l&&ha(e.l))}function qy(e){e.o||(e.o=Nw(e.t))}function Zb(e,t,n){var r=Iw(t)?Jo("MapSet").N(t,n):Mw(t)?Jo("MapSet").T(t,n):e.g?function(o,i){var s=Array.isArray(o),u={i:s?1:0,A:i?i.A:Yb(),P:!1,I:!1,D:{},l:i,t:o,k:null,o:null,j:null,C:!1},c=u,f=Df;s&&(c=[u],f=wc);var p=Proxy.revocable(c,f),h=p.revoke,m=p.proxy;return u.k=m,u.j=h,m}(t,n):Jo("ES5").J(t,n);return(n?n.A:Yb()).p.push(r),r}function Fie(e){return Fa(e)||wo(22,e),function t(n){if(!Bi(n))return n;var r,o=n[Tt],i=Cu(n);if(o){if(!o.P&&(o.i<4||!Jo("ES5").K(o)))return o.t;o.I=!0,r=iA(n,i),o.I=!1}else r=iA(n,i);return Ms(r,function(s,u){o&&Iie(o.t,s)===u||C4(r,s,t(u))}),i===3?new Set(r):r}(e)}function iA(e,t){switch(t){case 2:return new Map(e);case 3:return Array.from(e)}return Nw(e)}function Lie(){function e(i,s){var u=o[i];return u?u.enumerable=s:o[i]=u={configurable:!0,enumerable:s,get:function(){var c=this[Tt];return Df.get(c,i)},set:function(c){var f=this[Tt];Df.set(f,i,c)}},u}function t(i){for(var s=i.length-1;s>=0;s--){var u=i[s][Tt];if(!u.P)switch(u.i){case 5:r(u)&&ha(u);break;case 4:n(u)&&ha(u)}}}function n(i){for(var s=i.t,u=i.k,c=Zl(u),f=c.length-1;f>=0;f--){var p=c[f];if(p!==Tt){var h=s[p];if(h===void 0&&!Xl(s,p))return!0;var m=u[p],v=m&&m[Tt];if(v?v.t!==h:!k4(m,h))return!0}}var b=!!s[Tt];return c.length!==Zl(s).length+(b?0:1)}function r(i){var s=i.k;if(s.length!==i.t.length)return!0;var u=Object.getOwnPropertyDescriptor(s,s.length-1);if(u&&!u.get)return!0;for(var c=0;c1?S-1:0),w=1;w1?p-1:0),m=1;m=0;o--){var i=r[o];if(i.path.length===0&&i.op==="replace"){n=i.value;break}}o>-1&&(r=r.slice(o+1));var s=Jo("Patches").$;return Fa(n)?s(n,r):this.produce(n,function(u){return s(u,r)})},e}(),Rr=new Vie,A4=Rr.produce;Rr.produceWithPatches.bind(Rr);Rr.setAutoFreeze.bind(Rr);Rr.setUseProxies.bind(Rr);Rr.applyPatches.bind(Rr);Rr.createDraft.bind(Rr);Rr.finishDraft.bind(Rr);function uA(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function cA(e){for(var t=1;t"u"&&(n=t,t=void 0),typeof n<"u"){if(typeof n!="function")throw new Error(Mn(1));return n($w)(e,t)}if(typeof e!="function")throw new Error(Mn(2));var o=e,i=t,s=[],u=s,c=!1;function f(){u===s&&(u=s.slice())}function p(){if(c)throw new Error(Mn(3));return i}function h(x){if(typeof x!="function")throw new Error(Mn(4));if(c)throw new Error(Mn(5));var k=!0;return f(),u.push(x),function(){if(!!k){if(c)throw new Error(Mn(6));k=!1,f();var y=u.indexOf(x);u.splice(y,1),s=null}}}function m(x){if(!jie(x))throw new Error(Mn(7));if(typeof x.type>"u")throw new Error(Mn(8));if(c)throw new Error(Mn(9));try{c=!0,i=o(i,x)}finally{c=!1}for(var k=s=u,S=0;S"u")throw new Error(Mn(12));if(typeof n(void 0,{type:Nm.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(Mn(13))})}function T4(e){for(var t=Object.keys(e),n={},r=0;r"u")throw f&&f.type,new Error(Mn(14));h[v]=k,p=p||k!==x}return p=p||i.length!==Object.keys(c).length,p?h:c}}function Dm(){for(var e=arguments.length,t=new Array(e),n=0;n-1){var f=n[c];return c>0&&(n.splice(c,1),n.unshift(f)),f.value}return Fm}function o(u,c){r(u)===Fm&&(n.unshift({key:u,value:c}),n.length>e&&n.pop())}function i(){return n}function s(){n=[]}return{get:r,put:o,getEntries:i,clear:s}}var qie=function(t,n){return t===n};function Kie(e){return function(n,r){if(n===null||r===null||n.length!==r.length)return!1;for(var o=n.length,i=0;i1?t-1:0),r=1;r=0)&&(!Object.prototype.propertyIsEnumerable.call(e,r)||(n[r]=e[r]))}return n}function kae(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,i;for(i=0;i=0)&&(n[o]=e[o]);return n}var Eae=5e3;function Pae(e,t){var n=e.version!==void 0?e.version:pae;e.debug;var r=e.stateReconciler===void 0?gae:e.stateReconciler,o=e.getStoredState||bae,i=e.timeout!==void 0?e.timeout:Eae,s=null,u=!1,c=!0,f=function(h){return h._persist.rehydrated&&s&&!c&&s.update(h),h};return function(p,h){var m=p||{},v=m._persist,b=Cae(m,["_persist"]),x=b;if(h.type===D4){var k=!1,S=function(V,Y){k||(h.rehydrate(e.key,V,Y),k=!0)};if(i&&setTimeout(function(){!k&&S(void 0,new Error('redux-persist: persist timed out for persist key "'.concat(e.key,'"')))},i),c=!1,s||(s=vae(e)),v)return wi({},t(x,h),{_persist:v});if(typeof h.rehydrate!="function"||typeof h.register!="function")throw new Error("redux-persist: either rehydrate or register is not a function on the PERSIST action. This can happen if the action is being replayed. This is an unexplored use case, please open an issue and we will figure out a resolution.");return h.register(e.key),o(e).then(function(D){var V=e.migrate||function(Y,j){return Promise.resolve(Y)};V(D,n).then(function(Y){S(Y)},function(Y){S(void 0,Y)})},function(D){S(void 0,D)}),wi({},t(x,h),{_persist:{version:n,rehydrated:!1}})}else{if(h.type===F4)return u=!0,h.result(Sae(e)),wi({},t(x,h),{_persist:v});if(h.type===M4)return h.result(s&&s.flush()),wi({},t(x,h),{_persist:v});if(h.type===N4)c=!0;else if(h.type===jw){if(u)return wi({},x,{_persist:wi({},v,{rehydrated:!0})});if(h.key===e.key){var y=t(x,h),w=h.payload,E=r!==!1&&w!==void 0?r(w,p,y,e):y,O=wi({},E,{_persist:wi({},v,{rehydrated:!0})});return f(O)}}}if(!v)return t(p,h);var N=t(x,h);return N===x?p:f(wi({},N,{_persist:v}))}}function vA(e){return Oae(e)||Tae(e)||Aae()}function Aae(){throw new TypeError("Invalid attempt to spread non-iterable instance")}function Tae(e){if(Symbol.iterator in Object(e)||Object.prototype.toString.call(e)==="[object Arguments]")return Array.from(e)}function Oae(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t0&&arguments[0]!==void 0?arguments[0]:$4,n=arguments.length>1?arguments[1]:void 0;switch(n.type){case L4:return ex({},t,{registry:[].concat(vA(t.registry),[n.key])});case jw:var r=t.registry.indexOf(n.key),o=vA(t.registry);return o.splice(r,1),ex({},t,{registry:o,bootstrapped:o.length===0});default:return t}};function Mae(e,t,n){var r=n||!1,o=$w(Iae,$4,t&&t.enhancer?t.enhancer:void 0),i=function(f){o.dispatch({type:L4,key:f})},s=function(f,p,h){var m={type:jw,payload:p,err:h,key:f};e.dispatch(m),o.dispatch(m),r&&u.getState().bootstrapped&&(r(),r=!1)},u=ex({},o,{purge:function(){var f=[];return e.dispatch({type:F4,result:function(h){f.push(h)}}),Promise.all(f)},flush:function(){var f=[];return e.dispatch({type:M4,result:function(h){f.push(h)}}),Promise.all(f)},pause:function(){e.dispatch({type:N4})},persist:function(){e.dispatch({type:D4,register:i,rehydrate:s})}});return t&&t.manualPersist||u.persist(),u}var Ww={},Uw={};Uw.__esModule=!0;Uw.default=Fae;function Ph(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Ph=function(n){return typeof n}:Ph=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Ph(e)}function Yy(){}var Nae={getItem:Yy,setItem:Yy,removeItem:Yy};function Dae(e){if((typeof self>"u"?"undefined":Ph(self))!=="object"||!(e in self))return!1;try{var t=self[e],n="redux-persist ".concat(e," test");t.setItem(n,"test"),t.getItem(n),t.removeItem(n)}catch{return!1}return!0}function Fae(e){var t="".concat(e,"Storage");return Dae(t)?self[t]:Nae}Ww.__esModule=!0;Ww.default=Bae;var Lae=$ae(Uw);function $ae(e){return e&&e.__esModule?e:{default:e}}function Bae(e){var t=(0,Lae.default)(e);return{getItem:function(r){return new Promise(function(o,i){o(t.getItem(r))})},setItem:function(r,o){return new Promise(function(i,s){i(t.setItem(r,o))})},removeItem:function(r){return new Promise(function(o,i){o(t.removeItem(r))})}}}var B4=void 0,zae=Vae(Ww);function Vae(e){return e&&e.__esModule?e:{default:e}}var jae=(0,zae.default)("local");B4=jae;const z4=(e,t)=>Math.floor(Math.random()*(t-e+1)+e),Wae=["ddim","plms","k_lms","k_dpm_2","k_dpm_2_a","k_euler","k_euler_a","k_heun"],Uae=[64,128,192,256,320,384,448,512,576,640,704,768,832,896,960,1024],Hae=[64,128,192,256,320,384,448,512,576,640,704,768,832,896,960,1024],Gae=[{key:"2x",value:2},{key:"4x",value:4}],bA={prompt:"Prompt",iterations:"Iterations",steps:"Steps",cfgScale:"CFG Scale",height:"Height",width:"Width",sampler:"Sampler",seed:"Seed",img2imgStrength:"img2img Strength",gfpganStrength:"GFPGAN Strength",upscalingLevel:"Upscaling Level",upscalingStrength:"Upscaling Strength",initialImagePath:"Initial Image",maskPath:"Initial Image Mask",shouldFitToWidthHeight:"Fit Initial Image",seamless:"Seamless Tiling"},Hw=0,Gw=4294967295,Xy=(e,t,n)=>n?Math.floor(t*e):e,V4={prompt:"",iterations:1,steps:50,realSteps:50,cfgScale:7.5,height:512,width:512,sampler:"k_lms",threshold:0,perlin:0,seed:0,seamless:!1,shouldUseInitImage:!1,img2imgStrength:.75,initialImagePath:"",maskPath:"",shouldFitToWidthHeight:!0,shouldGenerateVariations:!1,variantAmount:.1,seedWeights:"",shouldRunESRGAN:!1,upscalingLevel:4,upscalingStrength:.75,shouldRunGFPGAN:!1,gfpganStrength:.8,shouldRandomizeSeed:!0},qae=V4,j4=Bw({name:"sd",initialState:qae,reducers:{setPrompt:(e,t)=>{e.prompt=t.payload},setIterations:(e,t)=>{e.iterations=t.payload},setSteps:(e,t)=>{const{img2imgStrength:n,initialImagePath:r}=e,o=t.payload;e.steps=o,e.realSteps=Xy(o,n,Boolean(r))},setCfgScale:(e,t)=>{e.cfgScale=t.payload},setThreshold:(e,t)=>{e.threshold=t.payload},setPerlin:(e,t)=>{e.perlin=t.payload},setHeight:(e,t)=>{e.height=t.payload},setWidth:(e,t)=>{e.width=t.payload},setSampler:(e,t)=>{e.sampler=t.payload},setSeed:(e,t)=>{e.seed=t.payload,e.shouldRandomizeSeed=!1},setImg2imgStrength:(e,t)=>{const n=t.payload,{steps:r,initialImagePath:o}=e;e.img2imgStrength=n,e.realSteps=Xy(r,n,Boolean(o))},setGfpganStrength:(e,t)=>{e.gfpganStrength=t.payload},setUpscalingLevel:(e,t)=>{e.upscalingLevel=t.payload},setUpscalingStrength:(e,t)=>{e.upscalingStrength=t.payload},setShouldUseInitImage:(e,t)=>{e.shouldUseInitImage=t.payload},setInitialImagePath:(e,t)=>{const n=t.payload,{steps:r,img2imgStrength:o}=e;e.shouldUseInitImage=!!n,e.initialImagePath=n,e.realSteps=Xy(r,o,Boolean(n))},setMaskPath:(e,t)=>{e.maskPath=t.payload},setSeamless:(e,t)=>{e.seamless=t.payload},setShouldFitToWidthHeight:(e,t)=>{e.shouldFitToWidthHeight=t.payload},resetSeed:e=>{e.seed=-1},randomizeSeed:e=>{e.seed=z4(Hw,Gw)},setParameter:(e,t)=>{const{key:n,value:r}=t.payload,o={...e,[n]:r};return n==="seed"&&(o.shouldRandomizeSeed=!1),n==="initialImagePath"&&r===""&&(o.shouldUseInitImage=!1),o},setShouldGenerateVariations:(e,t)=>{e.shouldGenerateVariations=t.payload},setVariantAmount:(e,t)=>{e.variantAmount=t.payload},setSeedWeights:(e,t)=>{e.seedWeights=t.payload},setAllParameters:(e,t)=>{const{prompt:n,steps:r,cfgScale:o,threshold:i,perlin:s,height:u,width:c,sampler:f,seed:p,img2imgStrength:h,gfpganStrength:m,upscalingLevel:v,upscalingStrength:b,initialImagePath:x,maskPath:k,seamless:S,shouldFitToWidthHeight:y}=t.payload;e.prompt=n??e.prompt,e.steps=r||e.steps,e.cfgScale=o||e.cfgScale,e.threshold=i||e.threshold,e.perlin=s||e.perlin,e.width=c||e.width,e.height=u||e.height,e.sampler=f||e.sampler,e.seed=p??e.seed,e.seamless=S??e.seamless,e.shouldFitToWidthHeight=y??e.shouldFitToWidthHeight,e.img2imgStrength=h??e.img2imgStrength,e.gfpganStrength=m??e.gfpganStrength,e.upscalingLevel=v??e.upscalingLevel,e.upscalingStrength=b??e.upscalingStrength,e.initialImagePath=x??e.initialImagePath,e.maskPath=k??e.maskPath,p&&(e.shouldRandomizeSeed=!1),e.shouldRunGFPGAN=!!m,e.shouldRunESRGAN=!!v,e.shouldGenerateVariations=!1,e.shouldUseInitImage=!!x},resetSDState:e=>({...e,...V4}),setShouldRunGFPGAN:(e,t)=>{e.shouldRunGFPGAN=t.payload},setShouldRunESRGAN:(e,t)=>{e.shouldRunESRGAN=t.payload},setShouldRandomizeSeed:(e,t)=>{e.shouldRandomizeSeed=t.payload}}}),{setPrompt:Kae,setIterations:Yae,setSteps:Xae,setCfgScale:Zae,setThreshold:Qae,setPerlin:Jae,setHeight:ese,setWidth:tse,setSampler:nse,setSeed:qw,setSeamless:rse,setImg2imgStrength:ose,setGfpganStrength:ise,setUpscalingLevel:ase,setUpscalingStrength:sse,setShouldUseInitImage:lse,setInitialImagePath:Kw,setMaskPath:W4,resetSeed:Ofe,randomizeSeed:use,resetSDState:Rfe,setShouldFitToWidthHeight:cse,setParameter:fse,setShouldGenerateVariations:dse,setSeedWeights:pse,setVariantAmount:hse,setAllParameters:Yw,setShouldRunGFPGAN:mse,setShouldRunESRGAN:gse,setShouldRandomizeSeed:vse}=j4.actions,yse=j4.reducer;let Kp;const bse=new Uint8Array(16);function xse(){if(!Kp&&(Kp=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!Kp))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return Kp(bse)}const bn=[];for(let e=0;e<256;++e)bn.push((e+256).toString(16).slice(1));function Sse(e,t=0){return(bn[e[t+0]]+bn[e[t+1]]+bn[e[t+2]]+bn[e[t+3]]+"-"+bn[e[t+4]]+bn[e[t+5]]+"-"+bn[e[t+6]]+bn[e[t+7]]+"-"+bn[e[t+8]]+bn[e[t+9]]+"-"+bn[e[t+10]]+bn[e[t+11]]+bn[e[t+12]]+bn[e[t+13]]+bn[e[t+14]]+bn[e[t+15]]).toLowerCase()}const wse=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),xA={randomUUID:wse};function tx(e,t,n){if(xA.randomUUID&&!t&&!e)return xA.randomUUID();e=e||{};const r=e.random||(e.rng||xse)();if(r[6]=r[6]&15|64,r[8]=r[8]&63|128,t){n=n||0;for(let o=0;o<16;++o)t[n+o]=r[o];return t}return Sse(r)}const U4=e=>{const r=e.split(",").map(o=>o.split(":")).map(o=>[parseInt(o[0]),parseFloat(o[1])]);return qg(r)?r:!1},qg=e=>Boolean(typeof e=="string"?U4(e):e.length&&!e.some(t=>{const[n,r]=t,o=!isNaN(parseInt(n.toString(),10)),i=!isNaN(parseInt(r.toString(),10))&&r>=0&&r<=1;return!(o&&i)})),_se=e=>qg(e)?e.reduce((t,n,r,o)=>{const[i,s]=n;return t+=`${i}:${s}`,r!==o.length-1&&(t+=","),t},""):!1,Cse=(e,t)=>{const{prompt:n,iterations:r,steps:o,cfgScale:i,threshold:s,perlin:u,height:c,width:f,sampler:p,seed:h,seamless:m,shouldUseInitImage:v,img2imgStrength:b,initialImagePath:x,maskPath:k,shouldFitToWidthHeight:S,shouldGenerateVariations:y,variantAmount:w,seedWeights:E,shouldRunESRGAN:O,upscalingLevel:N,upscalingStrength:D,shouldRunGFPGAN:V,gfpganStrength:Y,shouldRandomizeSeed:j}=e,{shouldDisplayInProgress:te}=t,Se={prompt:n,iterations:r,steps:o,cfg_scale:i,threshold:s,perlin:u,height:c,width:f,sampler_name:p,seed:h,seamless:m,progress_images:te};Se.seed=j?z4(Hw,Gw):h,v&&(Se.init_img=x,Se.strength=b,Se.fit=S,k&&(Se.init_mask=k)),y?(Se.variation_amount=w,E&&(Se.with_variations=U4(E))):Se.variation_amount=0;let ke=!1,xe=!1;return O&&(ke={level:N,strength:D}),V&&(xe={strength:Y}),{generationParameters:Se,esrganParameters:ke,gfpganParameters:xe}},H4=e=>{const{prompt:t,iterations:n,steps:r,cfg_scale:o,threshold:i,perlin:s,height:u,width:c,sampler_name:f,seed:p,seamless:h,progress_images:m,variation_amount:v,with_variations:b,gfpgan_strength:x,upscale:k,init_img:S,init_mask:y,strength:w}=e,E={shouldDisplayInProgress:m,shouldGenerateVariations:!1,shouldRunESRGAN:!1,shouldRunGFPGAN:!1,initialImagePath:"",maskPath:""};return v>0&&(E.shouldGenerateVariations=!0,E.variantAmount=v,b&&(E.seedWeights=_se(b))),x>0&&(E.shouldRunGFPGAN=!0,E.gfpganStrength=x),k&&(E.shouldRunESRGAN=!0,E.upscalingLevel=k[0],E.upscalingStrength=k[1]),S&&(E.shouldUseInitImage=!0,E.initialImagePath=S,E.strength=w,y&&(E.maskPath=y)),t&&(E.prompt=t,E.iterations=n,E.steps=r,E.cfgScale=o,E.threshold=i,E.perlin=s,E.height=u,E.width=c,E.sampler=f,E.seed=p,E.seamless=h),E},kse={currentImageUuid:"",images:[]},G4=Bw({name:"gallery",initialState:kse,reducers:{setCurrentImage:(e,t)=>{e.currentImage=t.payload,e.currentImageUuid=t.payload.uuid},removeImage:(e,t)=>{const{uuid:n}=t.payload,r=e.images.filter(s=>s.uuid!==n),o=e.images.findIndex(s=>s.uuid===n),i=Math.min(Math.max(o,0),r.length-1);e.images=r,e.currentImage=r.length?r[i]:void 0,e.currentImageUuid=r.length?r[i].uuid:""},addImage:(e,t)=>{e.images.push(t.payload),e.currentImageUuid=t.payload.uuid,e.intermediateImage=void 0,e.currentImage=t.payload},setIntermediateImage:(e,t)=>{e.intermediateImage=t.payload},clearIntermediateImage:e=>{e.intermediateImage=void 0},setGalleryImages:(e,t)=>{if(t.payload.length===0)e.images=[],e.currentImageUuid="",e.currentImage=void 0;else{const o=t.payload.filter(s=>!e.images.find(u=>u.url===s.path)).map(s=>({uuid:tx(),url:s.path,metadata:H4(s.metadata)})),i=[...e.images].concat(o);if(!i.find(s=>s.uuid===e.currentImageUuid)){const s=i[i.length-1];e.currentImage=s,e.currentImageUuid=s.uuid}e.images=i}}}}),{setCurrentImage:Ese,removeImage:Pse,addImage:Yp,setGalleryImages:Ase,setIntermediateImage:Tse,clearIntermediateImage:SA}=G4.actions,Ose=G4.reducer;var Rse=/d{1,4}|D{3,4}|m{1,4}|yy(?:yy)?|([HhMsTt])\1?|W{1,2}|[LlopSZN]|"[^"]*"|'[^']*'/g,Ise=/\b(?:[A-Z]{1,3}[A-Z][TC])(?:[-+]\d{4})?|((?:Australian )?(?:Pacific|Mountain|Central|Eastern|Atlantic) (?:Standard|Daylight|Prevailing) Time)\b/g,Mse=/[^-+\dA-Z]/g;function Nse(e,t,n,r){if(arguments.length===1&&typeof e=="string"&&!/\d/.test(e)&&(t=e,e=void 0),e=e||e===0?e:new Date,e instanceof Date||(e=new Date(e)),isNaN(e))throw TypeError("Invalid date");t=String(wA[t]||t||wA.default);var o=t.slice(0,4);(o==="UTC:"||o==="GMT:")&&(t=t.slice(4),n=!0,o==="GMT:"&&(r=!0));var i=function(){return n?"getUTC":"get"},s=function(){return e[i()+"Date"]()},u=function(){return e[i()+"Day"]()},c=function(){return e[i()+"Month"]()},f=function(){return e[i()+"FullYear"]()},p=function(){return e[i()+"Hours"]()},h=function(){return e[i()+"Minutes"]()},m=function(){return e[i()+"Seconds"]()},v=function(){return e[i()+"Milliseconds"]()},b=function(){return n?0:e.getTimezoneOffset()},x=function(){return Dse(e)},k=function(){return Fse(e)},S={d:function(){return s()},dd:function(){return _r(s())},ddd:function(){return nr.dayNames[u()]},DDD:function(){return _A({y:f(),m:c(),d:s(),_:i(),dayName:nr.dayNames[u()],short:!0})},dddd:function(){return nr.dayNames[u()+7]},DDDD:function(){return _A({y:f(),m:c(),d:s(),_:i(),dayName:nr.dayNames[u()+7]})},m:function(){return c()+1},mm:function(){return _r(c()+1)},mmm:function(){return nr.monthNames[c()]},mmmm:function(){return nr.monthNames[c()+12]},yy:function(){return String(f()).slice(2)},yyyy:function(){return _r(f(),4)},h:function(){return p()%12||12},hh:function(){return _r(p()%12||12)},H:function(){return p()},HH:function(){return _r(p())},M:function(){return h()},MM:function(){return _r(h())},s:function(){return m()},ss:function(){return _r(m())},l:function(){return _r(v(),3)},L:function(){return _r(Math.floor(v()/10))},t:function(){return p()<12?nr.timeNames[0]:nr.timeNames[1]},tt:function(){return p()<12?nr.timeNames[2]:nr.timeNames[3]},T:function(){return p()<12?nr.timeNames[4]:nr.timeNames[5]},TT:function(){return p()<12?nr.timeNames[6]:nr.timeNames[7]},Z:function(){return r?"GMT":n?"UTC":Lse(e)},o:function(){return(b()>0?"-":"+")+_r(Math.floor(Math.abs(b())/60)*100+Math.abs(b())%60,4)},p:function(){return(b()>0?"-":"+")+_r(Math.floor(Math.abs(b())/60),2)+":"+_r(Math.floor(Math.abs(b())%60),2)},S:function(){return["th","st","nd","rd"][s()%10>3?0:(s()%100-s()%10!=10)*s()%10]},W:function(){return x()},WW:function(){return _r(x())},N:function(){return k()}};return t.replace(Rse,function(y){return y in S?S[y]():y.slice(1,y.length-1)})}var wA={default:"ddd mmm dd yyyy HH:MM:ss",shortDate:"m/d/yy",paddedShortDate:"mm/dd/yyyy",mediumDate:"mmm d, yyyy",longDate:"mmmm d, yyyy",fullDate:"dddd, mmmm d, yyyy",shortTime:"h:MM TT",mediumTime:"h:MM:ss TT",longTime:"h:MM:ss TT Z",isoDate:"yyyy-mm-dd",isoTime:"HH:MM:ss",isoDateTime:"yyyy-mm-dd'T'HH:MM:sso",isoUtcDateTime:"UTC:yyyy-mm-dd'T'HH:MM:ss'Z'",expiresHeaderFormat:"ddd, dd mmm yyyy HH:MM:ss Z"},nr={dayNames:["Sun","Mon","Tue","Wed","Thu","Fri","Sat","Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],monthNames:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec","January","February","March","April","May","June","July","August","September","October","November","December"],timeNames:["a","p","am","pm","A","P","AM","PM"]},_r=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:2;return String(t).padStart(n,"0")},_A=function(t){var n=t.y,r=t.m,o=t.d,i=t._,s=t.dayName,u=t.short,c=u===void 0?!1:u,f=new Date,p=new Date;p.setDate(p[i+"Date"]()-1);var h=new Date;h.setDate(h[i+"Date"]()+1);var m=function(){return f[i+"Date"]()},v=function(){return f[i+"Month"]()},b=function(){return f[i+"FullYear"]()},x=function(){return p[i+"Date"]()},k=function(){return p[i+"Month"]()},S=function(){return p[i+"FullYear"]()},y=function(){return h[i+"Date"]()},w=function(){return h[i+"Month"]()},E=function(){return h[i+"FullYear"]()};return b()===n&&v()===r&&m()===o?c?"Tdy":"Today":S()===n&&k()===r&&x()===o?c?"Ysd":"Yesterday":E()===n&&w()===r&&y()===o?c?"Tmw":"Tomorrow":s},Dse=function(t){var n=new Date(t.getFullYear(),t.getMonth(),t.getDate());n.setDate(n.getDate()-(n.getDay()+6)%7+3);var r=new Date(n.getFullYear(),0,4);r.setDate(r.getDate()-(r.getDay()+6)%7+3);var o=n.getTimezoneOffset()-r.getTimezoneOffset();n.setHours(n.getHours()-o);var i=(n-r)/(864e5*7);return 1+Math.floor(i)},Fse=function(t){var n=t.getDay();return n===0&&(n=7),n},Lse=function(t){return(String(t).match(Ise)||[""]).pop().replace(Mse,"").replace(/GMT\+0000/g,"UTC")};const $se={isConnected:!1,isProcessing:!1,currentStep:0,log:[],shouldShowLogViewer:!1,shouldDisplayInProgress:!1,isGFPGANAvailable:!0,isESRGANAvailable:!0,socketId:"",shouldConfirmOnDelete:!0,openAccordions:[0]},Bse=$se,q4=Bw({name:"system",initialState:Bse,reducers:{setShouldDisplayInProgress:(e,t)=>{e.shouldDisplayInProgress=t.payload},setIsProcessing:(e,t)=>{e.isProcessing=t.payload,t.payload===!1&&(e.currentStep=0)},setCurrentStep:(e,t)=>{e.currentStep=t.payload},addLogEntry:(e,t)=>{const n={timestamp:Nse(new Date,"isoDateTime"),message:t.payload};e.log.push(n)},setShouldShowLogViewer:(e,t)=>{e.shouldShowLogViewer=t.payload},setIsConnected:(e,t)=>{e.isConnected=t.payload},setSocketId:(e,t)=>{e.socketId=t.payload},setShouldConfirmOnDelete:(e,t)=>{e.shouldConfirmOnDelete=t.payload},setOpenAccordions:(e,t)=>{e.openAccordions=t.payload}}}),{setShouldDisplayInProgress:zse,setIsProcessing:oa,setCurrentStep:Xp,addLogEntry:Wn,setShouldShowLogViewer:Vse,setIsConnected:CA,setSocketId:Ife,setShouldConfirmOnDelete:K4,setOpenAccordions:jse}=q4.actions,Wse=q4.reducer,ri=Object.create(null);ri.open="0";ri.close="1";ri.ping="2";ri.pong="3";ri.message="4";ri.upgrade="5";ri.noop="6";const Ah=Object.create(null);Object.keys(ri).forEach(e=>{Ah[ri[e]]=e});const Use={type:"error",data:"parser error"},Hse=typeof Blob=="function"||typeof Blob<"u"&&Object.prototype.toString.call(Blob)==="[object BlobConstructor]",Gse=typeof ArrayBuffer=="function",qse=e=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(e):e&&e.buffer instanceof ArrayBuffer,Y4=({type:e,data:t},n,r)=>Hse&&t instanceof Blob?n?r(t):kA(t,r):Gse&&(t instanceof ArrayBuffer||qse(t))?n?r(t):kA(new Blob([t]),r):r(ri[e]+(t||"")),kA=(e,t)=>{const n=new FileReader;return n.onload=function(){const r=n.result.split(",")[1];t("b"+r)},n.readAsDataURL(e)},EA="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",_c=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(let e=0;e{let t=e.length*.75,n=e.length,r,o=0,i,s,u,c;e[e.length-1]==="="&&(t--,e[e.length-2]==="="&&t--);const f=new ArrayBuffer(t),p=new Uint8Array(f);for(r=0;r>4,p[o++]=(s&15)<<4|u>>2,p[o++]=(u&3)<<6|c&63;return f},Yse=typeof ArrayBuffer=="function",X4=(e,t)=>{if(typeof e!="string")return{type:"message",data:Z4(e,t)};const n=e.charAt(0);return n==="b"?{type:"message",data:Xse(e.substring(1),t)}:Ah[n]?e.length>1?{type:Ah[n],data:e.substring(1)}:{type:Ah[n]}:Use},Xse=(e,t)=>{if(Yse){const n=Kse(e);return Z4(n,t)}else return{base64:!0,data:e}},Z4=(e,t)=>{switch(t){case"blob":return e instanceof ArrayBuffer?new Blob([e]):e;case"arraybuffer":default:return e}},Q4=String.fromCharCode(30),Zse=(e,t)=>{const n=e.length,r=new Array(n);let o=0;e.forEach((i,s)=>{Y4(i,!1,u=>{r[s]=u,++o===n&&t(r.join(Q4))})})},Qse=(e,t)=>{const n=e.split(Q4),r=[];for(let o=0;otypeof self<"u"?self:typeof window<"u"?window:Function("return this")())();function eM(e,...t){return t.reduce((n,r)=>(e.hasOwnProperty(r)&&(n[r]=e[r]),n),{})}const ele=setTimeout,tle=clearTimeout;function Kg(e,t){t.useNativeTimers?(e.setTimeoutFn=ele.bind(Sa),e.clearTimeoutFn=tle.bind(Sa)):(e.setTimeoutFn=setTimeout.bind(Sa),e.clearTimeoutFn=clearTimeout.bind(Sa))}const nle=1.33;function rle(e){return typeof e=="string"?ole(e):Math.ceil((e.byteLength||e.size)*nle)}function ole(e){let t=0,n=0;for(let r=0,o=e.length;r=57344?n+=3:(r++,n+=4);return n}class ile extends Error{constructor(t,n,r){super(t),this.description=n,this.context=r,this.type="TransportError"}}class tM extends tn{constructor(t){super(),this.writable=!1,Kg(this,t),this.opts=t,this.query=t.query,this.readyState="",this.socket=t.socket}onError(t,n,r){return super.emitReserved("error",new ile(t,n,r)),this}open(){return(this.readyState==="closed"||this.readyState==="")&&(this.readyState="opening",this.doOpen()),this}close(){return(this.readyState==="opening"||this.readyState==="open")&&(this.doClose(),this.onClose()),this}send(t){this.readyState==="open"&&this.write(t)}onOpen(){this.readyState="open",this.writable=!0,super.emitReserved("open")}onData(t){const n=X4(t,this.socket.binaryType);this.onPacket(n)}onPacket(t){super.emitReserved("packet",t)}onClose(t){this.readyState="closed",super.emitReserved("close",t)}}const nM="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-_".split(""),nx=64,ale={};let PA=0,Zp=0,AA;function TA(e){let t="";do t=nM[e%nx]+t,e=Math.floor(e/nx);while(e>0);return t}function rM(){const e=TA(+new Date);return e!==AA?(PA=0,AA=e):e+"."+TA(PA++)}for(;Zp{this.readyState="paused",t()};if(this.polling||!this.writable){let r=0;this.polling&&(r++,this.once("pollComplete",function(){--r||n()})),this.writable||(r++,this.once("drain",function(){--r||n()}))}else n()}poll(){this.polling=!0,this.doPoll(),this.emitReserved("poll")}onData(t){const n=r=>{if(this.readyState==="opening"&&r.type==="open"&&this.onOpen(),r.type==="close")return this.onClose({description:"transport closed by the server"}),!1;this.onPacket(r)};Qse(t,this.socket.binaryType).forEach(n),this.readyState!=="closed"&&(this.polling=!1,this.emitReserved("pollComplete"),this.readyState==="open"&&this.poll())}doClose(){const t=()=>{this.write([{type:"close"}])};this.readyState==="open"?t():this.once("open",t)}write(t){this.writable=!1,Zse(t,n=>{this.doWrite(n,()=>{this.writable=!0,this.emitReserved("drain")})})}uri(){let t=this.query||{};const n=this.opts.secure?"https":"http";let r="";this.opts.timestampRequests!==!1&&(t[this.opts.timestampParam]=rM()),!this.supportsBinary&&!t.sid&&(t.b64=1),this.opts.port&&(n==="https"&&Number(this.opts.port)!==443||n==="http"&&Number(this.opts.port)!==80)&&(r=":"+this.opts.port);const o=oM(t),i=this.opts.hostname.indexOf(":")!==-1;return n+"://"+(i?"["+this.opts.hostname+"]":this.opts.hostname)+r+this.opts.path+(o.length?"?"+o:"")}request(t={}){return Object.assign(t,{xd:this.xd,xs:this.xs},this.opts),new ei(this.uri(),t)}doWrite(t,n){const r=this.request({method:"POST",data:t});r.on("success",n),r.on("error",(o,i)=>{this.onError("xhr post error",o,i)})}doPoll(){const t=this.request();t.on("data",this.onData.bind(this)),t.on("error",(n,r)=>{this.onError("xhr poll error",n,r)}),this.pollXhr=t}}class ei extends tn{constructor(t,n){super(),Kg(this,n),this.opts=n,this.method=n.method||"GET",this.uri=t,this.async=n.async!==!1,this.data=n.data!==void 0?n.data:null,this.create()}create(){const t=eM(this.opts,"agent","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","autoUnref");t.xdomain=!!this.opts.xd,t.xscheme=!!this.opts.xs;const n=this.xhr=new aM(t);try{n.open(this.method,this.uri,this.async);try{if(this.opts.extraHeaders){n.setDisableHeaderCheck&&n.setDisableHeaderCheck(!0);for(let r in this.opts.extraHeaders)this.opts.extraHeaders.hasOwnProperty(r)&&n.setRequestHeader(r,this.opts.extraHeaders[r])}}catch{}if(this.method==="POST")try{n.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch{}try{n.setRequestHeader("Accept","*/*")}catch{}"withCredentials"in n&&(n.withCredentials=this.opts.withCredentials),this.opts.requestTimeout&&(n.timeout=this.opts.requestTimeout),n.onreadystatechange=()=>{n.readyState===4&&(n.status===200||n.status===1223?this.onLoad():this.setTimeoutFn(()=>{this.onError(typeof n.status=="number"?n.status:0)},0))},n.send(this.data)}catch(r){this.setTimeoutFn(()=>{this.onError(r)},0);return}typeof document<"u"&&(this.index=ei.requestsCount++,ei.requests[this.index]=this)}onError(t){this.emitReserved("error",t,this.xhr),this.cleanup(!0)}cleanup(t){if(!(typeof this.xhr>"u"||this.xhr===null)){if(this.xhr.onreadystatechange=ule,t)try{this.xhr.abort()}catch{}typeof document<"u"&&delete ei.requests[this.index],this.xhr=null}}onLoad(){const t=this.xhr.responseText;t!==null&&(this.emitReserved("data",t),this.emitReserved("success"),this.cleanup())}abort(){this.cleanup()}}ei.requestsCount=0;ei.requests={};if(typeof document<"u"){if(typeof attachEvent=="function")attachEvent("onunload",OA);else if(typeof addEventListener=="function"){const e="onpagehide"in Sa?"pagehide":"unload";addEventListener(e,OA,!1)}}function OA(){for(let e in ei.requests)ei.requests.hasOwnProperty(e)&&ei.requests[e].abort()}const dle=(()=>typeof Promise=="function"&&typeof Promise.resolve=="function"?t=>Promise.resolve().then(t):(t,n)=>n(t,0))(),Qp=Sa.WebSocket||Sa.MozWebSocket,RA=!0,ple="arraybuffer",IA=typeof navigator<"u"&&typeof navigator.product=="string"&&navigator.product.toLowerCase()==="reactnative";class hle extends tM{constructor(t){super(t),this.supportsBinary=!t.forceBase64}get name(){return"websocket"}doOpen(){if(!this.check())return;const t=this.uri(),n=this.opts.protocols,r=IA?{}:eM(this.opts,"agent","perMessageDeflate","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","localAddress","protocolVersion","origin","maxPayload","family","checkServerIdentity");this.opts.extraHeaders&&(r.headers=this.opts.extraHeaders);try{this.ws=RA&&!IA?n?new Qp(t,n):new Qp(t):new Qp(t,n,r)}catch(o){return this.emitReserved("error",o)}this.ws.binaryType=this.socket.binaryType||ple,this.addEventListeners()}addEventListeners(){this.ws.onopen=()=>{this.opts.autoUnref&&this.ws._socket.unref(),this.onOpen()},this.ws.onclose=t=>this.onClose({description:"websocket connection closed",context:t}),this.ws.onmessage=t=>this.onData(t.data),this.ws.onerror=t=>this.onError("websocket error",t)}write(t){this.writable=!1;for(let n=0;n{const s={};try{RA&&this.ws.send(i)}catch{}o&&dle(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){typeof this.ws<"u"&&(this.ws.close(),this.ws=null)}uri(){let t=this.query||{};const n=this.opts.secure?"wss":"ws";let r="";this.opts.port&&(n==="wss"&&Number(this.opts.port)!==443||n==="ws"&&Number(this.opts.port)!==80)&&(r=":"+this.opts.port),this.opts.timestampRequests&&(t[this.opts.timestampParam]=rM()),this.supportsBinary||(t.b64=1);const o=oM(t),i=this.opts.hostname.indexOf(":")!==-1;return n+"://"+(i?"["+this.opts.hostname+"]":this.opts.hostname)+r+this.opts.path+(o.length?"?"+o:"")}check(){return!!Qp}}const mle={websocket:hle,polling:fle},gle=/^(?:(?![^:@]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@]*)(?::([^:@]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,vle=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];function rx(e){const t=e,n=e.indexOf("["),r=e.indexOf("]");n!=-1&&r!=-1&&(e=e.substring(0,n)+e.substring(n,r).replace(/:/g,";")+e.substring(r,e.length));let o=gle.exec(e||""),i={},s=14;for(;s--;)i[vle[s]]=o[s]||"";return n!=-1&&r!=-1&&(i.source=t,i.host=i.host.substring(1,i.host.length-1).replace(/;/g,":"),i.authority=i.authority.replace("[","").replace("]","").replace(/;/g,":"),i.ipv6uri=!0),i.pathNames=yle(i,i.path),i.queryKey=ble(i,i.query),i}function yle(e,t){const n=/\/{2,9}/g,r=t.replace(n,"/").split("/");return(t.substr(0,1)=="/"||t.length===0)&&r.splice(0,1),t.substr(t.length-1,1)=="/"&&r.splice(r.length-1,1),r}function ble(e,t){const n={};return t.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,function(r,o,i){o&&(n[o]=i)}),n}class ma extends tn{constructor(t,n={}){super(),t&&typeof t=="object"&&(n=t,t=null),t?(t=rx(t),n.hostname=t.host,n.secure=t.protocol==="https"||t.protocol==="wss",n.port=t.port,t.query&&(n.query=t.query)):n.host&&(n.hostname=rx(n.host).host),Kg(this,n),this.secure=n.secure!=null?n.secure:typeof location<"u"&&location.protocol==="https:",n.hostname&&!n.port&&(n.port=this.secure?"443":"80"),this.hostname=n.hostname||(typeof location<"u"?location.hostname:"localhost"),this.port=n.port||(typeof location<"u"&&location.port?location.port:this.secure?"443":"80"),this.transports=n.transports||["polling","websocket"],this.readyState="",this.writeBuffer=[],this.prevBufferLen=0,this.opts=Object.assign({path:"/engine.io",agent:!1,withCredentials:!1,upgrade:!0,timestampParam:"t",rememberUpgrade:!1,rejectUnauthorized:!0,perMessageDeflate:{threshold:1024},transportOptions:{},closeOnBeforeunload:!0},n),this.opts.path=this.opts.path.replace(/\/$/,"")+"/",typeof this.opts.query=="string"&&(this.opts.query=sle(this.opts.query)),this.id=null,this.upgrades=null,this.pingInterval=null,this.pingTimeout=null,this.pingTimeoutTimer=null,typeof addEventListener=="function"&&(this.opts.closeOnBeforeunload&&addEventListener("beforeunload",()=>{this.transport&&(this.transport.removeAllListeners(),this.transport.close())},!1),this.hostname!=="localhost"&&(this.offlineEventListener=()=>{this.onClose("transport close",{description:"network connection lost"})},addEventListener("offline",this.offlineEventListener,!1))),this.open()}createTransport(t){const n=Object.assign({},this.opts.query);n.EIO=J4,n.transport=t,this.id&&(n.sid=this.id);const r=Object.assign({},this.opts.transportOptions[t],this.opts,{query:n,socket:this,hostname:this.hostname,secure:this.secure,port:this.port});return new mle[t](r)}open(){let t;if(this.opts.rememberUpgrade&&ma.priorWebsocketSuccess&&this.transports.indexOf("websocket")!==-1)t="websocket";else if(this.transports.length===0){this.setTimeoutFn(()=>{this.emitReserved("error","No transports available")},0);return}else t=this.transports[0];this.readyState="opening";try{t=this.createTransport(t)}catch{this.transports.shift(),this.open();return}t.open(),this.setTransport(t)}setTransport(t){this.transport&&this.transport.removeAllListeners(),this.transport=t,t.on("drain",this.onDrain.bind(this)).on("packet",this.onPacket.bind(this)).on("error",this.onError.bind(this)).on("close",n=>this.onClose("transport close",n))}probe(t){let n=this.createTransport(t),r=!1;ma.priorWebsocketSuccess=!1;const o=()=>{r||(n.send([{type:"ping",data:"probe"}]),n.once("packet",h=>{if(!r)if(h.type==="pong"&&h.data==="probe"){if(this.upgrading=!0,this.emitReserved("upgrading",n),!n)return;ma.priorWebsocketSuccess=n.name==="websocket",this.transport.pause(()=>{r||this.readyState!=="closed"&&(p(),this.setTransport(n),n.send([{type:"upgrade"}]),this.emitReserved("upgrade",n),n=null,this.upgrading=!1,this.flush())})}else{const m=new Error("probe error");m.transport=n.name,this.emitReserved("upgradeError",m)}}))};function i(){r||(r=!0,p(),n.close(),n=null)}const s=h=>{const m=new Error("probe error: "+h);m.transport=n.name,i(),this.emitReserved("upgradeError",m)};function u(){s("transport closed")}function c(){s("socket closed")}function f(h){n&&h.name!==n.name&&i()}const p=()=>{n.removeListener("open",o),n.removeListener("error",s),n.removeListener("close",u),this.off("close",c),this.off("upgrading",f)};n.once("open",o),n.once("error",s),n.once("close",u),this.once("close",c),this.once("upgrading",f),n.open()}onOpen(){if(this.readyState="open",ma.priorWebsocketSuccess=this.transport.name==="websocket",this.emitReserved("open"),this.flush(),this.readyState==="open"&&this.opts.upgrade&&this.transport.pause){let t=0;const n=this.upgrades.length;for(;t{this.onClose("ping timeout")},this.pingInterval+this.pingTimeout),this.opts.autoUnref&&this.pingTimeoutTimer.unref()}onDrain(){this.writeBuffer.splice(0,this.prevBufferLen),this.prevBufferLen=0,this.writeBuffer.length===0?this.emitReserved("drain"):this.flush()}flush(){if(this.readyState!=="closed"&&this.transport.writable&&!this.upgrading&&this.writeBuffer.length){const t=this.getWritablePackets();this.transport.send(t),this.prevBufferLen=t.length,this.emitReserved("flush")}}getWritablePackets(){if(!(this.maxPayload&&this.transport.name==="polling"&&this.writeBuffer.length>1))return this.writeBuffer;let n=1;for(let r=0;r0&&n>this.maxPayload)return this.writeBuffer.slice(0,r);n+=2}return this.writeBuffer}write(t,n,r){return this.sendPacket("message",t,n,r),this}send(t,n,r){return this.sendPacket("message",t,n,r),this}sendPacket(t,n,r,o){if(typeof n=="function"&&(o=n,n=void 0),typeof r=="function"&&(o=r,r=null),this.readyState==="closing"||this.readyState==="closed")return;r=r||{},r.compress=r.compress!==!1;const i={type:t,data:n,options:r};this.emitReserved("packetCreate",i),this.writeBuffer.push(i),o&&this.once("flush",o),this.flush()}close(){const t=()=>{this.onClose("forced close"),this.transport.close()},n=()=>{this.off("upgrade",n),this.off("upgradeError",n),t()},r=()=>{this.once("upgrade",n),this.once("upgradeError",n)};return(this.readyState==="opening"||this.readyState==="open")&&(this.readyState="closing",this.writeBuffer.length?this.once("drain",()=>{this.upgrading?r():t()}):this.upgrading?r():t()),this}onError(t){ma.priorWebsocketSuccess=!1,this.emitReserved("error",t),this.onClose("transport error",t)}onClose(t,n){(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing")&&(this.clearTimeoutFn(this.pingTimeoutTimer),this.transport.removeAllListeners("close"),this.transport.close(),this.transport.removeAllListeners(),typeof removeEventListener=="function"&&removeEventListener("offline",this.offlineEventListener,!1),this.readyState="closed",this.id=null,this.emitReserved("close",t,n),this.writeBuffer=[],this.prevBufferLen=0)}filterUpgrades(t){const n=[];let r=0;const o=t.length;for(;rtypeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(e):e.buffer instanceof ArrayBuffer,sM=Object.prototype.toString,_le=typeof Blob=="function"||typeof Blob<"u"&&sM.call(Blob)==="[object BlobConstructor]",Cle=typeof File=="function"||typeof File<"u"&&sM.call(File)==="[object FileConstructor]";function Xw(e){return Sle&&(e instanceof ArrayBuffer||wle(e))||_le&&e instanceof Blob||Cle&&e instanceof File}function Th(e,t){if(!e||typeof e!="object")return!1;if(Array.isArray(e)){for(let n=0,r=e.length;n=0&&e.num0;case Ke.ACK:case Ke.BINARY_ACK:return Array.isArray(n)}}destroy(){this.reconstructor&&this.reconstructor.finishedReconstruction()}}class Tle{constructor(t){this.packet=t,this.buffers=[],this.reconPack=t}takeBinaryData(t){if(this.buffers.push(t),this.buffers.length===this.reconPack.attachments){const n=Ele(this.reconPack,this.buffers);return this.finishedReconstruction(),n}return null}finishedReconstruction(){this.reconPack=null,this.buffers=[]}}const Ole=Object.freeze(Object.defineProperty({__proto__:null,protocol:Ple,get PacketType(){return Ke},Encoder:Ale,Decoder:Zw},Symbol.toStringTag,{value:"Module"}));function xo(e,t,n){return e.on(t,n),function(){e.off(t,n)}}const Rle=Object.freeze({connect:1,connect_error:1,disconnect:1,disconnecting:1,newListener:1,removeListener:1});class lM extends tn{constructor(t,n,r){super(),this.connected=!1,this.receiveBuffer=[],this.sendBuffer=[],this.ids=0,this.acks={},this.flags={},this.io=t,this.nsp=n,r&&r.auth&&(this.auth=r.auth),this.io._autoConnect&&this.open()}get disconnected(){return!this.connected}subEvents(){if(this.subs)return;const t=this.io;this.subs=[xo(t,"open",this.onopen.bind(this)),xo(t,"packet",this.onpacket.bind(this)),xo(t,"error",this.onerror.bind(this)),xo(t,"close",this.onclose.bind(this))]}get active(){return!!this.subs}connect(){return this.connected?this:(this.subEvents(),this.io._reconnecting||this.io.open(),this.io._readyState==="open"&&this.onopen(),this)}open(){return this.connect()}send(...t){return t.unshift("message"),this.emit.apply(this,t),this}emit(t,...n){if(Rle.hasOwnProperty(t))throw new Error('"'+t.toString()+'" is a reserved event name');n.unshift(t);const r={type:Ke.EVENT,data:n};if(r.options={},r.options.compress=this.flags.compress!==!1,typeof n[n.length-1]=="function"){const s=this.ids++,u=n.pop();this._registerAckCallback(s,u),r.id=s}const o=this.io.engine&&this.io.engine.transport&&this.io.engine.transport.writable;return this.flags.volatile&&(!o||!this.connected)||(this.connected?(this.notifyOutgoingListeners(r),this.packet(r)):this.sendBuffer.push(r)),this.flags={},this}_registerAckCallback(t,n){const r=this.flags.timeout;if(r===void 0){this.acks[t]=n;return}const o=this.io.setTimeoutFn(()=>{delete this.acks[t];for(let i=0;i{this.io.clearTimeoutFn(o),n.apply(this,[null,...i])}}packet(t){t.nsp=this.nsp,this.io._packet(t)}onopen(){typeof this.auth=="function"?this.auth(t=>{this.packet({type:Ke.CONNECT,data:t})}):this.packet({type:Ke.CONNECT,data:this.auth})}onerror(t){this.connected||this.emitReserved("connect_error",t)}onclose(t,n){this.connected=!1,delete this.id,this.emitReserved("disconnect",t,n)}onpacket(t){if(t.nsp===this.nsp)switch(t.type){case Ke.CONNECT:if(t.data&&t.data.sid){const o=t.data.sid;this.onconnect(o)}else this.emitReserved("connect_error",new Error("It seems you are trying to reach a Socket.IO server in v2.x with a v3.x client, but they are not compatible (more information here: https://socket.io/docs/v3/migrating-from-2-x-to-3-0/)"));break;case Ke.EVENT:case Ke.BINARY_EVENT:this.onevent(t);break;case Ke.ACK:case Ke.BINARY_ACK:this.onack(t);break;case Ke.DISCONNECT:this.ondisconnect();break;case Ke.CONNECT_ERROR:this.destroy();const r=new Error(t.data.message);r.data=t.data.data,this.emitReserved("connect_error",r);break}}onevent(t){const n=t.data||[];t.id!=null&&n.push(this.ack(t.id)),this.connected?this.emitEvent(n):this.receiveBuffer.push(Object.freeze(n))}emitEvent(t){if(this._anyListeners&&this._anyListeners.length){const n=this._anyListeners.slice();for(const r of n)r.apply(this,t)}super.emit.apply(this,t)}ack(t){const n=this;let r=!1;return function(...o){r||(r=!0,n.packet({type:Ke.ACK,id:t,data:o}))}}onack(t){const n=this.acks[t.id];typeof n=="function"&&(n.apply(this,t.data),delete this.acks[t.id])}onconnect(t){this.id=t,this.connected=!0,this.emitBuffered(),this.emitReserved("connect")}emitBuffered(){this.receiveBuffer.forEach(t=>this.emitEvent(t)),this.receiveBuffer=[],this.sendBuffer.forEach(t=>{this.notifyOutgoingListeners(t),this.packet(t)}),this.sendBuffer=[]}ondisconnect(){this.destroy(),this.onclose("io server disconnect")}destroy(){this.subs&&(this.subs.forEach(t=>t()),this.subs=void 0),this.io._destroy(this)}disconnect(){return this.connected&&this.packet({type:Ke.DISCONNECT}),this.destroy(),this.connected&&this.onclose("io client disconnect"),this}close(){return this.disconnect()}compress(t){return this.flags.compress=t,this}get volatile(){return this.flags.volatile=!0,this}timeout(t){return this.flags.timeout=t,this}onAny(t){return this._anyListeners=this._anyListeners||[],this._anyListeners.push(t),this}prependAny(t){return this._anyListeners=this._anyListeners||[],this._anyListeners.unshift(t),this}offAny(t){if(!this._anyListeners)return this;if(t){const n=this._anyListeners;for(let r=0;r0&&e.jitter<=1?e.jitter:0,this.attempts=0}ku.prototype.duration=function(){var e=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var t=Math.random(),n=Math.floor(t*this.jitter*e);e=(Math.floor(t*10)&1)==0?e-n:e+n}return Math.min(e,this.max)|0};ku.prototype.reset=function(){this.attempts=0};ku.prototype.setMin=function(e){this.ms=e};ku.prototype.setMax=function(e){this.max=e};ku.prototype.setJitter=function(e){this.jitter=e};class ax extends tn{constructor(t,n){var r;super(),this.nsps={},this.subs=[],t&&typeof t=="object"&&(n=t,t=void 0),n=n||{},n.path=n.path||"/socket.io",this.opts=n,Kg(this,n),this.reconnection(n.reconnection!==!1),this.reconnectionAttempts(n.reconnectionAttempts||1/0),this.reconnectionDelay(n.reconnectionDelay||1e3),this.reconnectionDelayMax(n.reconnectionDelayMax||5e3),this.randomizationFactor((r=n.randomizationFactor)!==null&&r!==void 0?r:.5),this.backoff=new ku({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(n.timeout==null?2e4:n.timeout),this._readyState="closed",this.uri=t;const o=n.parser||Ole;this.encoder=new o.Encoder,this.decoder=new o.Decoder,this._autoConnect=n.autoConnect!==!1,this._autoConnect&&this.open()}reconnection(t){return arguments.length?(this._reconnection=!!t,this):this._reconnection}reconnectionAttempts(t){return t===void 0?this._reconnectionAttempts:(this._reconnectionAttempts=t,this)}reconnectionDelay(t){var n;return t===void 0?this._reconnectionDelay:(this._reconnectionDelay=t,(n=this.backoff)===null||n===void 0||n.setMin(t),this)}randomizationFactor(t){var n;return t===void 0?this._randomizationFactor:(this._randomizationFactor=t,(n=this.backoff)===null||n===void 0||n.setJitter(t),this)}reconnectionDelayMax(t){var n;return t===void 0?this._reconnectionDelayMax:(this._reconnectionDelayMax=t,(n=this.backoff)===null||n===void 0||n.setMax(t),this)}timeout(t){return arguments.length?(this._timeout=t,this):this._timeout}maybeReconnectOnOpen(){!this._reconnecting&&this._reconnection&&this.backoff.attempts===0&&this.reconnect()}open(t){if(~this._readyState.indexOf("open"))return this;this.engine=new ma(this.uri,this.opts);const n=this.engine,r=this;this._readyState="opening",this.skipReconnect=!1;const o=xo(n,"open",function(){r.onopen(),t&&t()}),i=xo(n,"error",s=>{r.cleanup(),r._readyState="closed",this.emitReserved("error",s),t?t(s):r.maybeReconnectOnOpen()});if(this._timeout!==!1){const s=this._timeout;s===0&&o();const u=this.setTimeoutFn(()=>{o(),n.close(),n.emit("error",new Error("timeout"))},s);this.opts.autoUnref&&u.unref(),this.subs.push(function(){clearTimeout(u)})}return this.subs.push(o),this.subs.push(i),this}connect(t){return this.open(t)}onopen(){this.cleanup(),this._readyState="open",this.emitReserved("open");const t=this.engine;this.subs.push(xo(t,"ping",this.onping.bind(this)),xo(t,"data",this.ondata.bind(this)),xo(t,"error",this.onerror.bind(this)),xo(t,"close",this.onclose.bind(this)),xo(this.decoder,"decoded",this.ondecoded.bind(this)))}onping(){this.emitReserved("ping")}ondata(t){try{this.decoder.add(t)}catch{this.onclose("parse error")}}ondecoded(t){this.emitReserved("packet",t)}onerror(t){this.emitReserved("error",t)}socket(t,n){let r=this.nsps[t];return r||(r=new lM(this,t,n),this.nsps[t]=r),r}_destroy(t){const n=Object.keys(this.nsps);for(const r of n)if(this.nsps[r].active)return;this._close()}_packet(t){const n=this.encoder.encode(t);for(let r=0;rt()),this.subs.length=0,this.decoder.destroy()}_close(){this.skipReconnect=!0,this._reconnecting=!1,this.onclose("forced close"),this.engine&&this.engine.close()}disconnect(){return this._close()}onclose(t,n){this.cleanup(),this.backoff.reset(),this._readyState="closed",this.emitReserved("close",t,n),this._reconnection&&!this.skipReconnect&&this.reconnect()}reconnect(){if(this._reconnecting||this.skipReconnect)return this;const t=this;if(this.backoff.attempts>=this._reconnectionAttempts)this.backoff.reset(),this.emitReserved("reconnect_failed"),this._reconnecting=!1;else{const n=this.backoff.duration();this._reconnecting=!0;const r=this.setTimeoutFn(()=>{t.skipReconnect||(this.emitReserved("reconnect_attempt",t.backoff.attempts),!t.skipReconnect&&t.open(o=>{o?(t._reconnecting=!1,t.reconnect(),this.emitReserved("reconnect_error",o)):t.onreconnect()}))},n);this.opts.autoUnref&&r.unref(),this.subs.push(function(){clearTimeout(r)})}}onreconnect(){const t=this.backoff.attempts;this._reconnecting=!1,this.backoff.reset(),this.emitReserved("reconnect",t)}}const hc={};function Oh(e,t){typeof e=="object"&&(t=e,e=void 0),t=t||{};const n=xle(e,t.path||"/socket.io"),r=n.source,o=n.id,i=n.path,s=hc[o]&&i in hc[o].nsps,u=t.forceNew||t["force new connection"]||t.multiplex===!1||s;let c;return u?c=new ax(r,t):(hc[o]||(hc[o]=new ax(r,t)),c=hc[o]),n.query&&!t.query&&(t.query=n.queryKey),c.socket(n.path,t)}Object.assign(Oh,{Manager:ax,Socket:lM,io:Oh,connect:Oh});const Ile=()=>{const{hostname:e,port:t}=new URL(window.location.href),n=Oh(`http://${e}:9090`);let r=!1;return i=>s=>u=>{const{dispatch:c,getState:f}=i;switch(r||(n.on("connect",()=>{try{c(CA(!0))}catch(p){console.error(p)}}),n.on("disconnect",()=>{try{c(CA(!1)),c(oa(!1)),c(Wn("Disconnected from server"))}catch(p){console.error(p)}}),n.on("result",p=>{try{const h=tx(),{type:m,url:v,uuid:b,metadata:x}=p;switch(m){case"generation":{const k=H4(x);c(Yp({uuid:h,url:v,metadata:k})),c(Wn(`Image generated: ${v}`));break}case"esrgan":{const S={...f().gallery.images.find(y=>y.uuid===b).metadata};S.shouldRunESRGAN=!0,S.upscalingLevel=x.upscale[0],S.upscalingStrength=x.upscale[1],c(Yp({uuid:h,url:v,metadata:S})),c(Wn(`ESRGAN upscaled: ${v}`));break}case"gfpgan":{const S={...f().gallery.images.find(y=>y.uuid===b).metadata};S.shouldRunGFPGAN=!0,S.gfpganStrength=x.gfpgan_strength,c(Yp({uuid:h,url:v,metadata:S})),c(Wn(`GFPGAN fixed faces: ${v}`));break}}c(oa(!1))}catch(h){console.error(h)}}),n.on("progress",p=>{try{c(oa(!0)),c(Xp(p.step))}catch(h){console.error(h)}}),n.on("intermediateResult",p=>{try{const h=tx(),{url:m,metadata:v}=p;c(Tse({uuid:h,url:m,metadata:v})),c(Wn(`Intermediate image generated: ${m}`))}catch(h){console.error(h)}}),n.on("error",p=>{try{c(Wn(`Server error: ${p}`)),c(oa(!1)),c(SA())}catch(h){console.error(h)}}),r=!0),u.type){case"socketio/generateImage":{c(oa(!0)),c(Xp(-1));const{generationParameters:p,esrganParameters:h,gfpganParameters:m}=Cse(f().sd,f().system);n.emit("generateImage",p,h,m),c(Wn(`Image generation requested: ${JSON.stringify({...p,...h,...m})}`));break}case"socketio/runESRGAN":{const p=u.payload;c(oa(!0)),c(Xp(-1));const{upscalingLevel:h,upscalingStrength:m}=f().sd,v={upscale:[h,m]};n.emit("runESRGAN",p,v),c(Wn(`ESRGAN upscale requested: ${JSON.stringify({file:p.url,...v})}`));break}case"socketio/runGFPGAN":{const p=u.payload;c(oa(!0)),c(Xp(-1));const{gfpganStrength:h}=f().sd,m={gfpgan_strength:h};n.emit("runGFPGAN",p,m),c(Wn(`GFPGAN fix faces requested: ${JSON.stringify({file:p.url,...m})}`));break}case"socketio/deleteImage":{const p=u.payload,{url:h}=p;n.emit("deleteImage",h,m=>{m.status==="OK"&&(c(Pse(p)),c(Wn(`Image deleted: ${h}`)))});break}case"socketio/requestAllImages":{n.emit("requestAllImages",p=>{c(Ase(p.data)),c(Wn(`Loaded ${p.data.length} images`))});break}case"socketio/cancelProcessing":{n.emit("cancel",p=>{const{intermediateImage:h}=f().gallery;p.status==="OK"&&(c(oa(!1)),h&&(c(Yp(h)),c(Wn(`Intermediate image saved: ${h.url}`)),c(SA())),c(Wn("Processing canceled")))});break}case"socketio/uploadInitialImage":{const p=u.payload;n.emit("uploadInitialImage",p,p.name,h=>{h.status==="OK"&&(c(Kw(h.data)),c(Wn(`Initial image uploaded: ${h.data}`)))});break}case"socketio/uploadMaskImage":{const p=u.payload;n.emit("uploadMaskImage",p,p.name,h=>{h.status==="OK"&&(c(W4(h.data)),c(Wn(`Mask image uploaded: ${h.data}`)))});break}}s(u)}},Mle=Ir("socketio/generateImage"),Nle=Ir("socketio/runESRGAN"),Dle=Ir("socketio/runGFPGAN"),MA=Ir("socketio/deleteImage"),Fle=Ir("socketio/requestAllImages"),Lle=Ir("socketio/cancelProcessing"),$le=Ir("socketio/uploadInitialImage"),Ble=Ir("socketio/uploadMaskImage"),zle=T4({sd:yse,gallery:Ose,system:Wse}),Vle={key:"root",storage:B4},jle=Pae(Vle,zle),uM=uae({reducer:jle,middleware:e=>e({serializableCheck:!1}).concat(Ile())});var cM={exports:{}},fM={};/** + * @license React + * use-sync-external-store-shim.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var hu=C.exports;function Wle(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Ule=typeof Object.is=="function"?Object.is:Wle,Hle=hu.useState,Gle=hu.useEffect,qle=hu.useLayoutEffect,Kle=hu.useDebugValue;function Yle(e,t){var n=t(),r=Hle({inst:{value:n,getSnapshot:t}}),o=r[0].inst,i=r[1];return qle(function(){o.value=n,o.getSnapshot=t,Zy(o)&&i({inst:o})},[e,n,t]),Gle(function(){return Zy(o)&&i({inst:o}),e(function(){Zy(o)&&i({inst:o})})},[e]),Kle(n),n}function Zy(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Ule(e,n)}catch{return!0}}function Xle(e,t){return t()}var Zle=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?Xle:Yle;fM.useSyncExternalStore=hu.useSyncExternalStore!==void 0?hu.useSyncExternalStore:Zle;(function(e){e.exports=fM})(cM);var dM={exports:{}},pM={};/** + * @license React + * use-sync-external-store-shim/with-selector.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var Yg=C.exports,Qle=cM.exports;function Jle(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var eue=typeof Object.is=="function"?Object.is:Jle,tue=Qle.useSyncExternalStore,nue=Yg.useRef,rue=Yg.useEffect,oue=Yg.useMemo,iue=Yg.useDebugValue;pM.useSyncExternalStoreWithSelector=function(e,t,n,r,o){var i=nue(null);if(i.current===null){var s={hasValue:!1,value:null};i.current=s}else s=i.current;i=oue(function(){function c(v){if(!f){if(f=!0,p=v,v=r(v),o!==void 0&&s.hasValue){var b=s.value;if(o(b,v))return h=b}return h=v}if(b=h,eue(p,v))return b;var x=r(v);return o!==void 0&&o(b,x)?b:(p=v,h=x)}var f=!1,p,h,m=n===void 0?null:n;return[function(){return c(t())},m===null?void 0:function(){return c(m())}]},[t,n,r,o]);var u=tue(e,i[0],i[1]);return rue(function(){s.hasValue=!0,s.value=u},[u]),iue(u),u};(function(e){e.exports=pM})(dM);function aue(e){e()}let hM=aue;const sue=e=>hM=e,lue=()=>hM,La=ee.createContext(null);function mM(){return C.exports.useContext(La)}const uue=()=>{throw new Error("uSES not initialized!")};let gM=uue;const cue=e=>{gM=e},fue=(e,t)=>e===t;function due(e=La){const t=e===La?mM:()=>C.exports.useContext(e);return function(r,o=fue){const{store:i,subscription:s,getServerState:u}=t(),c=gM(s.addNestedSub,i.getState,u||i.getState,r,o);return C.exports.useDebugValue(c),c}}const pue=due();var hue={exports:{}},dt={};/** + * @license React + * react-is.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var Qw=Symbol.for("react.element"),Jw=Symbol.for("react.portal"),Xg=Symbol.for("react.fragment"),Zg=Symbol.for("react.strict_mode"),Qg=Symbol.for("react.profiler"),Jg=Symbol.for("react.provider"),ev=Symbol.for("react.context"),mue=Symbol.for("react.server_context"),tv=Symbol.for("react.forward_ref"),nv=Symbol.for("react.suspense"),rv=Symbol.for("react.suspense_list"),ov=Symbol.for("react.memo"),iv=Symbol.for("react.lazy"),gue=Symbol.for("react.offscreen"),vM;vM=Symbol.for("react.module.reference");function io(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case Qw:switch(e=e.type,e){case Xg:case Qg:case Zg:case nv:case rv:return e;default:switch(e=e&&e.$$typeof,e){case mue:case ev:case tv:case iv:case ov:case Jg:return e;default:return t}}case Jw:return t}}}dt.ContextConsumer=ev;dt.ContextProvider=Jg;dt.Element=Qw;dt.ForwardRef=tv;dt.Fragment=Xg;dt.Lazy=iv;dt.Memo=ov;dt.Portal=Jw;dt.Profiler=Qg;dt.StrictMode=Zg;dt.Suspense=nv;dt.SuspenseList=rv;dt.isAsyncMode=function(){return!1};dt.isConcurrentMode=function(){return!1};dt.isContextConsumer=function(e){return io(e)===ev};dt.isContextProvider=function(e){return io(e)===Jg};dt.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===Qw};dt.isForwardRef=function(e){return io(e)===tv};dt.isFragment=function(e){return io(e)===Xg};dt.isLazy=function(e){return io(e)===iv};dt.isMemo=function(e){return io(e)===ov};dt.isPortal=function(e){return io(e)===Jw};dt.isProfiler=function(e){return io(e)===Qg};dt.isStrictMode=function(e){return io(e)===Zg};dt.isSuspense=function(e){return io(e)===nv};dt.isSuspenseList=function(e){return io(e)===rv};dt.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===Xg||e===Qg||e===Zg||e===nv||e===rv||e===gue||typeof e=="object"&&e!==null&&(e.$$typeof===iv||e.$$typeof===ov||e.$$typeof===Jg||e.$$typeof===ev||e.$$typeof===tv||e.$$typeof===vM||e.getModuleId!==void 0)};dt.typeOf=io;(function(e){e.exports=dt})(hue);function vue(){const e=lue();let t=null,n=null;return{clear(){t=null,n=null},notify(){e(()=>{let r=t;for(;r;)r.callback(),r=r.next})},get(){let r=[],o=t;for(;o;)r.push(o),o=o.next;return r},subscribe(r){let o=!0,i=n={callback:r,next:null,prev:n};return i.prev?i.prev.next=i:t=i,function(){!o||t===null||(o=!1,i.next?i.next.prev=i.prev:n=i.prev,i.prev?i.prev.next=i.next:t=i.next)}}}}const NA={notify(){},get:()=>[]};function yue(e,t){let n,r=NA;function o(h){return c(),r.subscribe(h)}function i(){r.notify()}function s(){p.onStateChange&&p.onStateChange()}function u(){return Boolean(n)}function c(){n||(n=t?t.addNestedSub(s):e.subscribe(s),r=vue())}function f(){n&&(n(),n=void 0,r.clear(),r=NA)}const p={addNestedSub:o,notifyNestedSubs:i,handleChangeWrapper:s,isSubscribed:u,trySubscribe:c,tryUnsubscribe:f,getListeners:()=>r};return p}const bue=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",xue=bue?C.exports.useLayoutEffect:C.exports.useEffect;function Sue({store:e,context:t,children:n,serverState:r}){const o=C.exports.useMemo(()=>{const u=yue(e);return{store:e,subscription:u,getServerState:r?()=>r:void 0}},[e,r]),i=C.exports.useMemo(()=>e.getState(),[e]);return xue(()=>{const{subscription:u}=o;return u.onStateChange=u.notifyNestedSubs,u.trySubscribe(),i!==e.getState()&&u.notifyNestedSubs(),()=>{u.tryUnsubscribe(),u.onStateChange=void 0}},[o,i]),P((t||La).Provider,{value:o,children:n})}function yM(e=La){const t=e===La?mM:()=>C.exports.useContext(e);return function(){const{store:r}=t();return r}}const wue=yM();function _ue(e=La){const t=e===La?wue:yM(e);return function(){return t().dispatch}}const Cue=_ue();cue(dM.exports.useSyncExternalStoreWithSelector);sue(Bf.exports.unstable_batchedUpdates);function Rh(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Rh=function(n){return typeof n}:Rh=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Rh(e)}function kue(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function DA(e,t){for(var n=0;n{const{label:t,size:n="sm",...r}=e;return P(su,{size:n,...r,children:t})},Vue=({image:e})=>{const t=hn(),n=Object.keys(bA),r=[];return n.forEach(o=>{const i=e.metadata[o];i!==void 0&&r.push({label:bA[o],key:o,value:i})}),ce(qe,{gap:2,direction:"column",overflowY:"scroll",width:"100%",children:[P(Gn,{label:"Use all parameters",colorScheme:"gray",padding:2,isDisabled:r.length===0,onClick:()=>t(Yw(e.metadata))}),ce(qe,{gap:2,children:[P(Lt,{fontWeight:"semibold",children:"File:"}),P(Sm,{href:e.url,isExternal:!0,children:P(Lt,{children:e.url})})]}),r.length?ce(fr,{children:[P(Vg,{children:r.map((o,i)=>{const{label:s,key:u,value:c}=o;return P($3,{pb:1,children:ce(qe,{gap:2,children:[P(Zr,{"aria-label":"Use this parameter",icon:P($ue,{}),size:"xs",onClick:()=>t(fse({key:u,value:c}))}),ce(Lt,{fontWeight:"semibold",children:[s,":"]}),c==null||c===""||c===0?P(Lt,{maxHeight:100,fontStyle:"italic",children:"None"}):P(Lt,{maxHeight:100,overflowY:"scroll",children:c.toString()})]})},i)})}),ce(qe,{gap:2,children:[P(Lt,{fontWeight:"semibold",children:"Raw:"}),P(Lt,{maxHeight:100,overflowY:"scroll",wordBreak:"break-all",children:JSON.stringify(e.metadata)})]})]}):P(nw,{width:"100%",pt:10,children:P(Lt,{fontSize:"lg",fontWeight:"semibold",children:"No metadata available"})})]})},jue=Xt(e=>e.system,e=>e.shouldConfirmOnDelete),_M=e=>{const{isOpen:t,onOpen:n,onClose:r}=Tb(),o=hn(),i=Pt(jue),s=h=>{h.stopPropagation(),i?n():f()},{image:u,children:c}=e,f=()=>{o(MA(u)),r()},p=()=>{o(MA(u)),o(K4(!1)),r()};return ce(fr,{children:[C.exports.cloneElement(c,{onClick:s}),ce(Of,{isOpen:t,onClose:r,children:[P(Pm,{}),ce(Rf,{children:[P(Ew,{children:"Are you sure you want to delete this image?"}),P(Cw,{}),P(Em,{children:P(Lt,{children:"It will be deleted forever!"})}),ce(kw,{justifyContent:"space-between",children:[P(Gn,{label:"Yes",colorScheme:"red",onClick:f}),P(Gn,{label:"Yes, and don't ask me again",colorScheme:"red",onClick:p}),P(Gn,{label:"Cancel",colorScheme:"blue",onClick:r})]})]})]})]})};var nn={exports:{}};/** + * @license + * Lodash + * Copyright OpenJS Foundation and other contributors + * Released under MIT license + * Based on Underscore.js 1.8.3 + * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors + */(function(e,t){(function(){var n,r="4.17.21",o=200,i="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",s="Expected a function",u="Invalid `variable` option passed into `_.template`",c="__lodash_hash_undefined__",f=500,p="__lodash_placeholder__",h=1,m=2,v=4,b=1,x=2,k=1,S=2,y=4,w=8,E=16,O=32,N=64,D=128,V=256,Y=512,j=30,te="...",Se=800,ke=16,xe=1,_e=2,ge=3,Pe=1/0,W=9007199254740991,X=17976931348623157e292,q=0/0,I=4294967295,H=I-1,ae=I>>>1,se=[["ary",D],["bind",k],["bindKey",S],["curry",w],["curryRight",E],["flip",Y],["partial",O],["partialRight",N],["rearg",V]],pe="[object Arguments]",me="[object Array]",Ee="[object AsyncFunction]",ue="[object Boolean]",Ae="[object Date]",Ne="[object DOMException]",mt="[object Error]",It="[object Function]",En="[object GeneratorFunction]",ve="[object Map]",Mt="[object Number]",Zt="[object Null]",it="[object Object]",hr="[object Promise]",mr="[object Proxy]",bt="[object RegExp]",_t="[object Set]",Qt="[object String]",zt="[object Symbol]",le="[object Undefined]",we="[object WeakMap]",at="[object WeakSet]",nt="[object ArrayBuffer]",ne="[object DataView]",Ve="[object Float32Array]",xt="[object Float64Array]",mn="[object Int8Array]",Pn="[object Int16Array]",gr="[object Int32Array]",To="[object Uint8Array]",ii="[object Uint8ClampedArray]",Ln="[object Uint16Array]",$r="[object Uint32Array]",Wa=/\b__p \+= '';/g,Vs=/\b(__p \+=) '' \+/g,av=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Eu=/&(?:amp|lt|gt|quot|#39);/g,ji=/[&<>"']/g,sv=RegExp(Eu.source),ai=RegExp(ji.source),lv=/<%-([\s\S]+?)%>/g,uv=/<%([\s\S]+?)%>/g,id=/<%=([\s\S]+?)%>/g,cv=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,fv=/^\w*$/,ao=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Pu=/[\\^$.*+?()[\]{}|]/g,dv=RegExp(Pu.source),Au=/^\s+/,pv=/\s/,hv=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Wi=/\{\n\/\* \[wrapped with (.+)\] \*/,mv=/,? & /,gv=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,vv=/[()=,{}\[\]\/\s]/,yv=/\\(\\)?/g,bv=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,si=/\w*$/,xv=/^[-+]0x[0-9a-f]+$/i,Sv=/^0b[01]+$/i,wv=/^\[object .+?Constructor\]$/,_v=/^0o[0-7]+$/i,Cv=/^(?:0|[1-9]\d*)$/,kv=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Ui=/($^)/,Ev=/['\n\r\u2028\u2029\\]/g,li="\\ud800-\\udfff",Tu="\\u0300-\\u036f",Pv="\\ufe20-\\ufe2f",js="\\u20d0-\\u20ff",Ou=Tu+Pv+js,ad="\\u2700-\\u27bf",sd="a-z\\xdf-\\xf6\\xf8-\\xff",Av="\\xac\\xb1\\xd7\\xf7",ld="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",Tv="\\u2000-\\u206f",Ov=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",ud="A-Z\\xc0-\\xd6\\xd8-\\xde",cd="\\ufe0e\\ufe0f",fd=Av+ld+Tv+Ov,Ru="['\u2019]",Rv="["+li+"]",dd="["+fd+"]",Ws="["+Ou+"]",pd="\\d+",Us="["+ad+"]",Hs="["+sd+"]",hd="[^"+li+fd+pd+ad+sd+ud+"]",Iu="\\ud83c[\\udffb-\\udfff]",md="(?:"+Ws+"|"+Iu+")",gd="[^"+li+"]",Mu="(?:\\ud83c[\\udde6-\\uddff]){2}",Nu="[\\ud800-\\udbff][\\udc00-\\udfff]",ui="["+ud+"]",vd="\\u200d",yd="(?:"+Hs+"|"+hd+")",Iv="(?:"+ui+"|"+hd+")",Gs="(?:"+Ru+"(?:d|ll|m|re|s|t|ve))?",bd="(?:"+Ru+"(?:D|LL|M|RE|S|T|VE))?",xd=md+"?",Sd="["+cd+"]?",qs="(?:"+vd+"(?:"+[gd,Mu,Nu].join("|")+")"+Sd+xd+")*",Du="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Fu="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Ks=Sd+xd+qs,Mv="(?:"+[Us,Mu,Nu].join("|")+")"+Ks,wd="(?:"+[gd+Ws+"?",Ws,Mu,Nu,Rv].join("|")+")",Lu=RegExp(Ru,"g"),_d=RegExp(Ws,"g"),so=RegExp(Iu+"(?="+Iu+")|"+wd+Ks,"g"),Ua=RegExp([ui+"?"+Hs+"+"+Gs+"(?="+[dd,ui,"$"].join("|")+")",Iv+"+"+bd+"(?="+[dd,ui+yd,"$"].join("|")+")",ui+"?"+yd+"+"+Gs,ui+"+"+bd,Fu,Du,pd,Mv].join("|"),"g"),Nv=RegExp("["+vd+li+Ou+cd+"]"),Cd=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Dv=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],kd=-1,gt={};gt[Ve]=gt[xt]=gt[mn]=gt[Pn]=gt[gr]=gt[To]=gt[ii]=gt[Ln]=gt[$r]=!0,gt[pe]=gt[me]=gt[nt]=gt[ue]=gt[ne]=gt[Ae]=gt[mt]=gt[It]=gt[ve]=gt[Mt]=gt[it]=gt[bt]=gt[_t]=gt[Qt]=gt[we]=!1;var pt={};pt[pe]=pt[me]=pt[nt]=pt[ne]=pt[ue]=pt[Ae]=pt[Ve]=pt[xt]=pt[mn]=pt[Pn]=pt[gr]=pt[ve]=pt[Mt]=pt[it]=pt[bt]=pt[_t]=pt[Qt]=pt[zt]=pt[To]=pt[ii]=pt[Ln]=pt[$r]=!0,pt[mt]=pt[It]=pt[we]=!1;var Ed={\u00C0:"A",\u00C1:"A",\u00C2:"A",\u00C3:"A",\u00C4:"A",\u00C5:"A",\u00E0:"a",\u00E1:"a",\u00E2:"a",\u00E3:"a",\u00E4:"a",\u00E5:"a",\u00C7:"C",\u00E7:"c",\u00D0:"D",\u00F0:"d",\u00C8:"E",\u00C9:"E",\u00CA:"E",\u00CB:"E",\u00E8:"e",\u00E9:"e",\u00EA:"e",\u00EB:"e",\u00CC:"I",\u00CD:"I",\u00CE:"I",\u00CF:"I",\u00EC:"i",\u00ED:"i",\u00EE:"i",\u00EF:"i",\u00D1:"N",\u00F1:"n",\u00D2:"O",\u00D3:"O",\u00D4:"O",\u00D5:"O",\u00D6:"O",\u00D8:"O",\u00F2:"o",\u00F3:"o",\u00F4:"o",\u00F5:"o",\u00F6:"o",\u00F8:"o",\u00D9:"U",\u00DA:"U",\u00DB:"U",\u00DC:"U",\u00F9:"u",\u00FA:"u",\u00FB:"u",\u00FC:"u",\u00DD:"Y",\u00FD:"y",\u00FF:"y",\u00C6:"Ae",\u00E6:"ae",\u00DE:"Th",\u00FE:"th",\u00DF:"ss",\u0100:"A",\u0102:"A",\u0104:"A",\u0101:"a",\u0103:"a",\u0105:"a",\u0106:"C",\u0108:"C",\u010A:"C",\u010C:"C",\u0107:"c",\u0109:"c",\u010B:"c",\u010D:"c",\u010E:"D",\u0110:"D",\u010F:"d",\u0111:"d",\u0112:"E",\u0114:"E",\u0116:"E",\u0118:"E",\u011A:"E",\u0113:"e",\u0115:"e",\u0117:"e",\u0119:"e",\u011B:"e",\u011C:"G",\u011E:"G",\u0120:"G",\u0122:"G",\u011D:"g",\u011F:"g",\u0121:"g",\u0123:"g",\u0124:"H",\u0126:"H",\u0125:"h",\u0127:"h",\u0128:"I",\u012A:"I",\u012C:"I",\u012E:"I",\u0130:"I",\u0129:"i",\u012B:"i",\u012D:"i",\u012F:"i",\u0131:"i",\u0134:"J",\u0135:"j",\u0136:"K",\u0137:"k",\u0138:"k",\u0139:"L",\u013B:"L",\u013D:"L",\u013F:"L",\u0141:"L",\u013A:"l",\u013C:"l",\u013E:"l",\u0140:"l",\u0142:"l",\u0143:"N",\u0145:"N",\u0147:"N",\u014A:"N",\u0144:"n",\u0146:"n",\u0148:"n",\u014B:"n",\u014C:"O",\u014E:"O",\u0150:"O",\u014D:"o",\u014F:"o",\u0151:"o",\u0154:"R",\u0156:"R",\u0158:"R",\u0155:"r",\u0157:"r",\u0159:"r",\u015A:"S",\u015C:"S",\u015E:"S",\u0160:"S",\u015B:"s",\u015D:"s",\u015F:"s",\u0161:"s",\u0162:"T",\u0164:"T",\u0166:"T",\u0163:"t",\u0165:"t",\u0167:"t",\u0168:"U",\u016A:"U",\u016C:"U",\u016E:"U",\u0170:"U",\u0172:"U",\u0169:"u",\u016B:"u",\u016D:"u",\u016F:"u",\u0171:"u",\u0173:"u",\u0174:"W",\u0175:"w",\u0176:"Y",\u0177:"y",\u0178:"Y",\u0179:"Z",\u017B:"Z",\u017D:"Z",\u017A:"z",\u017C:"z",\u017E:"z",\u0132:"IJ",\u0133:"ij",\u0152:"Oe",\u0153:"oe",\u0149:"'n",\u017F:"s"},Fv={"&":"&","<":"<",">":">",'"':""","'":"'"},R={"&":"&","<":"<",">":">",""":'"',"'":"'"},L={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},U=parseFloat,he=parseInt,je=typeof ki=="object"&&ki&&ki.Object===Object&&ki,st=typeof self=="object"&&self&&self.Object===Object&&self,Fe=je||st||Function("return this")(),Be=t&&!t.nodeType&&t,Ze=Be&&!0&&e&&!e.nodeType&&e,$n=Ze&&Ze.exports===Be,gn=$n&&je.process,un=function(){try{var B=Ze&&Ze.require&&Ze.require("util").types;return B||gn&&gn.binding&&gn.binding("util")}catch{}}(),Ys=un&&un.isArrayBuffer,Xs=un&&un.isDate,$u=un&&un.isMap,n_=un&&un.isRegExp,r_=un&&un.isSet,o_=un&&un.isTypedArray;function vr(B,K,G){switch(G.length){case 0:return B.call(K);case 1:return B.call(K,G[0]);case 2:return B.call(K,G[0],G[1]);case 3:return B.call(K,G[0],G[1],G[2])}return B.apply(K,G)}function DM(B,K,G,ye){for(var Me=-1,Qe=B==null?0:B.length;++Me-1}function Lv(B,K,G){for(var ye=-1,Me=B==null?0:B.length;++ye-1;);return G}function d_(B,K){for(var G=B.length;G--&&Zs(K,B[G],0)>-1;);return G}function UM(B,K){for(var G=B.length,ye=0;G--;)B[G]===K&&++ye;return ye}var HM=Vv(Ed),GM=Vv(Fv);function qM(B){return"\\"+L[B]}function KM(B,K){return B==null?n:B[K]}function Qs(B){return Nv.test(B)}function YM(B){return Cd.test(B)}function XM(B){for(var K,G=[];!(K=B.next()).done;)G.push(K.value);return G}function Hv(B){var K=-1,G=Array(B.size);return B.forEach(function(ye,Me){G[++K]=[Me,ye]}),G}function p_(B,K){return function(G){return B(K(G))}}function qi(B,K){for(var G=-1,ye=B.length,Me=0,Qe=[];++G-1}function LN(a,l){var d=this.__data__,g=Ud(d,a);return g<0?(++this.size,d.push([a,l])):d[g][1]=l,this}ci.prototype.clear=MN,ci.prototype.delete=NN,ci.prototype.get=DN,ci.prototype.has=FN,ci.prototype.set=LN;function fi(a){var l=-1,d=a==null?0:a.length;for(this.clear();++l=l?a:l)),a}function jr(a,l,d,g,_,T){var M,F=l&h,z=l&m,Z=l&v;if(d&&(M=_?d(a,g,_,T):d(a)),M!==n)return M;if(!Nt(a))return a;var Q=De(a);if(Q){if(M=VD(a),!F)return Qn(a,M)}else{var re=Tn(a),de=re==It||re==En;if(Ji(a))return Y_(a,F);if(re==it||re==pe||de&&!_){if(M=z||de?{}:h2(a),!F)return z?OD(a,JN(M,a)):TD(a,k_(M,a))}else{if(!pt[re])return _?a:{};M=jD(a,re,F)}}T||(T=new uo);var Ce=T.get(a);if(Ce)return Ce;T.set(a,M),W2(a)?a.forEach(function(Re){M.add(jr(Re,l,d,Re,a,T))}):V2(a)&&a.forEach(function(Re,We){M.set(We,jr(Re,l,d,We,a,T))});var Oe=Z?z?v0:g0:z?er:cn,$e=Q?n:Oe(a);return Br($e||a,function(Re,We){$e&&(We=Re,Re=a[We]),Hu(M,We,jr(Re,l,d,We,a,T))}),M}function eD(a){var l=cn(a);return function(d){return E_(d,a,l)}}function E_(a,l,d){var g=d.length;if(a==null)return!g;for(a=vt(a);g--;){var _=d[g],T=l[_],M=a[_];if(M===n&&!(_ in a)||!T(M))return!1}return!0}function P_(a,l,d){if(typeof a!="function")throw new zr(s);return Qu(function(){a.apply(n,d)},l)}function Gu(a,l,d,g){var _=-1,T=Pd,M=!0,F=a.length,z=[],Z=l.length;if(!F)return z;d&&(l=At(l,yr(d))),g?(T=Lv,M=!1):l.length>=o&&(T=Bu,M=!1,l=new qa(l));e:for(;++__?0:_+d),g=g===n||g>_?_:Le(g),g<0&&(g+=_),g=d>g?0:H2(g);d0&&d(F)?l>1?vn(F,l-1,d,g,_):Gi(_,F):g||(_[_.length]=F)}return _}var Qv=t2(),O_=t2(!0);function Oo(a,l){return a&&Qv(a,l,cn)}function Jv(a,l){return a&&O_(a,l,cn)}function Gd(a,l){return Hi(l,function(d){return gi(a[d])})}function Ya(a,l){l=Zi(l,a);for(var d=0,g=l.length;a!=null&&dl}function rD(a,l){return a!=null&<.call(a,l)}function oD(a,l){return a!=null&&l in vt(a)}function iD(a,l,d){return a>=An(l,d)&&a=120&&Q.length>=120)?new qa(M&&Q):n}Q=a[0];var re=-1,de=F[0];e:for(;++re<_&&Z.length-1;)F!==a&&Ld.call(F,z,1),Ld.call(a,z,1);return a}function V_(a,l){for(var d=a?l.length:0,g=d-1;d--;){var _=l[d];if(d==g||_!==T){var T=_;mi(_)?Ld.call(a,_,1):u0(a,_)}}return a}function a0(a,l){return a+zd(S_()*(l-a+1))}function yD(a,l,d,g){for(var _=-1,T=on(Bd((l-a)/(d||1)),0),M=G(T);T--;)M[g?T:++_]=a,a+=d;return M}function s0(a,l){var d="";if(!a||l<1||l>W)return d;do l%2&&(d+=a),l=zd(l/2),l&&(a+=a);while(l);return d}function ze(a,l){return C0(v2(a,l,tr),a+"")}function bD(a){return C_(ul(a))}function xD(a,l){var d=ul(a);return rp(d,Ka(l,0,d.length))}function Yu(a,l,d,g){if(!Nt(a))return a;l=Zi(l,a);for(var _=-1,T=l.length,M=T-1,F=a;F!=null&&++__?0:_+l),d=d>_?_:d,d<0&&(d+=_),_=l>d?0:d-l>>>0,l>>>=0;for(var T=G(_);++g<_;)T[g]=a[g+l];return T}function _D(a,l){var d;return Yi(a,function(g,_,T){return d=l(g,_,T),!d}),!!d}function Kd(a,l,d){var g=0,_=a==null?g:a.length;if(typeof l=="number"&&l===l&&_<=ae){for(;g<_;){var T=g+_>>>1,M=a[T];M!==null&&!xr(M)&&(d?M<=l:M=o){var Z=l?null:ND(a);if(Z)return Td(Z);M=!1,_=Bu,z=new qa}else z=l?[]:F;e:for(;++g=g?a:Wr(a,l,d)}var K_=fN||function(a){return Fe.clearTimeout(a)};function Y_(a,l){if(l)return a.slice();var d=a.length,g=g_?g_(d):new a.constructor(d);return a.copy(g),g}function p0(a){var l=new a.constructor(a.byteLength);return new Dd(l).set(new Dd(a)),l}function kD(a,l){var d=l?p0(a.buffer):a.buffer;return new a.constructor(d,a.byteOffset,a.byteLength)}function ED(a){var l=new a.constructor(a.source,si.exec(a));return l.lastIndex=a.lastIndex,l}function PD(a){return Uu?vt(Uu.call(a)):{}}function X_(a,l){var d=l?p0(a.buffer):a.buffer;return new a.constructor(d,a.byteOffset,a.length)}function Z_(a,l){if(a!==l){var d=a!==n,g=a===null,_=a===a,T=xr(a),M=l!==n,F=l===null,z=l===l,Z=xr(l);if(!F&&!Z&&!T&&a>l||T&&M&&z&&!F&&!Z||g&&M&&z||!d&&z||!_)return 1;if(!g&&!T&&!Z&&a=F)return z;var Z=d[g];return z*(Z=="desc"?-1:1)}}return a.index-l.index}function Q_(a,l,d,g){for(var _=-1,T=a.length,M=d.length,F=-1,z=l.length,Z=on(T-M,0),Q=G(z+Z),re=!g;++F1?d[_-1]:n,M=_>2?d[2]:n;for(T=a.length>3&&typeof T=="function"?(_--,T):n,M&&zn(d[0],d[1],M)&&(T=_<3?n:T,_=1),l=vt(l);++g<_;){var F=d[g];F&&a(l,F,g,T)}return l})}function e2(a,l){return function(d,g){if(d==null)return d;if(!Jn(d))return a(d,g);for(var _=d.length,T=l?_:-1,M=vt(d);(l?T--:++T<_)&&g(M[T],T,M)!==!1;);return d}}function t2(a){return function(l,d,g){for(var _=-1,T=vt(l),M=g(l),F=M.length;F--;){var z=M[a?F:++_];if(d(T[z],z,T)===!1)break}return l}}function RD(a,l,d){var g=l&k,_=Xu(a);function T(){var M=this&&this!==Fe&&this instanceof T?_:a;return M.apply(g?d:this,arguments)}return T}function n2(a){return function(l){l=rt(l);var d=Qs(l)?lo(l):n,g=d?d[0]:l.charAt(0),_=d?Qi(d,1).join(""):l.slice(1);return g[a]()+_}}function al(a){return function(l){return $v(eC(J2(l).replace(Lu,"")),a,"")}}function Xu(a){return function(){var l=arguments;switch(l.length){case 0:return new a;case 1:return new a(l[0]);case 2:return new a(l[0],l[1]);case 3:return new a(l[0],l[1],l[2]);case 4:return new a(l[0],l[1],l[2],l[3]);case 5:return new a(l[0],l[1],l[2],l[3],l[4]);case 6:return new a(l[0],l[1],l[2],l[3],l[4],l[5]);case 7:return new a(l[0],l[1],l[2],l[3],l[4],l[5],l[6])}var d=ol(a.prototype),g=a.apply(d,l);return Nt(g)?g:d}}function ID(a,l,d){var g=Xu(a);function _(){for(var T=arguments.length,M=G(T),F=T,z=sl(_);F--;)M[F]=arguments[F];var Z=T<3&&M[0]!==z&&M[T-1]!==z?[]:qi(M,z);if(T-=Z.length,T-1?_[T?l[M]:M]:n}}function o2(a){return hi(function(l){var d=l.length,g=d,_=Vr.prototype.thru;for(a&&l.reverse();g--;){var T=l[g];if(typeof T!="function")throw new zr(s);if(_&&!M&&tp(T)=="wrapper")var M=new Vr([],!0)}for(g=M?g:d;++g1&&Ge.reverse(),Q&&zF))return!1;var Z=T.get(a),Q=T.get(l);if(Z&&Q)return Z==l&&Q==a;var re=-1,de=!0,Ce=d&x?new qa:n;for(T.set(a,l),T.set(l,a);++re1?"& ":"")+l[g],l=l.join(d>2?", ":" "),a.replace(hv,`{ +/* [wrapped with `+l+`] */ +`)}function UD(a){return De(a)||Qa(a)||!!(b_&&a&&a[b_])}function mi(a,l){var d=typeof a;return l=l??W,!!l&&(d=="number"||d!="symbol"&&Cv.test(a))&&a>-1&&a%1==0&&a0){if(++l>=Se)return arguments[0]}else l=0;return a.apply(n,arguments)}}function rp(a,l){var d=-1,g=a.length,_=g-1;for(l=l===n?g:l;++d1?a[l-1]:n;return d=typeof d=="function"?(a.pop(),d):n,T2(a,d)});function O2(a){var l=A(a);return l.__chain__=!0,l}function tF(a,l){return l(a),a}function op(a,l){return l(a)}var nF=hi(function(a){var l=a.length,d=l?a[0]:0,g=this.__wrapped__,_=function(T){return Zv(T,a)};return l>1||this.__actions__.length||!(g instanceof Ue)||!mi(d)?this.thru(_):(g=g.slice(d,+d+(l?1:0)),g.__actions__.push({func:op,args:[_],thisArg:n}),new Vr(g,this.__chain__).thru(function(T){return l&&!T.length&&T.push(n),T}))});function rF(){return O2(this)}function oF(){return new Vr(this.value(),this.__chain__)}function iF(){this.__values__===n&&(this.__values__=U2(this.value()));var a=this.__index__>=this.__values__.length,l=a?n:this.__values__[this.__index__++];return{done:a,value:l}}function aF(){return this}function sF(a){for(var l,d=this;d instanceof Wd;){var g=_2(d);g.__index__=0,g.__values__=n,l?_.__wrapped__=g:l=g;var _=g;d=d.__wrapped__}return _.__wrapped__=a,l}function lF(){var a=this.__wrapped__;if(a instanceof Ue){var l=a;return this.__actions__.length&&(l=new Ue(this)),l=l.reverse(),l.__actions__.push({func:op,args:[k0],thisArg:n}),new Vr(l,this.__chain__)}return this.thru(k0)}function uF(){return G_(this.__wrapped__,this.__actions__)}var cF=Xd(function(a,l,d){lt.call(a,d)?++a[d]:di(a,d,1)});function fF(a,l,d){var g=De(a)?i_:tD;return d&&zn(a,l,d)&&(l=n),g(a,Te(l,3))}function dF(a,l){var d=De(a)?Hi:T_;return d(a,Te(l,3))}var pF=r2(C2),hF=r2(k2);function mF(a,l){return vn(ip(a,l),1)}function gF(a,l){return vn(ip(a,l),Pe)}function vF(a,l,d){return d=d===n?1:Le(d),vn(ip(a,l),d)}function R2(a,l){var d=De(a)?Br:Yi;return d(a,Te(l,3))}function I2(a,l){var d=De(a)?FM:A_;return d(a,Te(l,3))}var yF=Xd(function(a,l,d){lt.call(a,d)?a[d].push(l):di(a,d,[l])});function bF(a,l,d,g){a=Jn(a)?a:ul(a),d=d&&!g?Le(d):0;var _=a.length;return d<0&&(d=on(_+d,0)),cp(a)?d<=_&&a.indexOf(l,d)>-1:!!_&&Zs(a,l,d)>-1}var xF=ze(function(a,l,d){var g=-1,_=typeof l=="function",T=Jn(a)?G(a.length):[];return Yi(a,function(M){T[++g]=_?vr(l,M,d):qu(M,l,d)}),T}),SF=Xd(function(a,l,d){di(a,d,l)});function ip(a,l){var d=De(a)?At:D_;return d(a,Te(l,3))}function wF(a,l,d,g){return a==null?[]:(De(l)||(l=l==null?[]:[l]),d=g?n:d,De(d)||(d=d==null?[]:[d]),B_(a,l,d))}var _F=Xd(function(a,l,d){a[d?0:1].push(l)},function(){return[[],[]]});function CF(a,l,d){var g=De(a)?$v:u_,_=arguments.length<3;return g(a,Te(l,4),d,_,Yi)}function kF(a,l,d){var g=De(a)?LM:u_,_=arguments.length<3;return g(a,Te(l,4),d,_,A_)}function EF(a,l){var d=De(a)?Hi:T_;return d(a,lp(Te(l,3)))}function PF(a){var l=De(a)?C_:bD;return l(a)}function AF(a,l,d){(d?zn(a,l,d):l===n)?l=1:l=Le(l);var g=De(a)?XN:xD;return g(a,l)}function TF(a){var l=De(a)?ZN:wD;return l(a)}function OF(a){if(a==null)return 0;if(Jn(a))return cp(a)?Js(a):a.length;var l=Tn(a);return l==ve||l==_t?a.size:r0(a).length}function RF(a,l,d){var g=De(a)?Bv:_D;return d&&zn(a,l,d)&&(l=n),g(a,Te(l,3))}var IF=ze(function(a,l){if(a==null)return[];var d=l.length;return d>1&&zn(a,l[0],l[1])?l=[]:d>2&&zn(l[0],l[1],l[2])&&(l=[l[0]]),B_(a,vn(l,1),[])}),ap=dN||function(){return Fe.Date.now()};function MF(a,l){if(typeof l!="function")throw new zr(s);return a=Le(a),function(){if(--a<1)return l.apply(this,arguments)}}function M2(a,l,d){return l=d?n:l,l=a&&l==null?a.length:l,pi(a,D,n,n,n,n,l)}function N2(a,l){var d;if(typeof l!="function")throw new zr(s);return a=Le(a),function(){return--a>0&&(d=l.apply(this,arguments)),a<=1&&(l=n),d}}var P0=ze(function(a,l,d){var g=k;if(d.length){var _=qi(d,sl(P0));g|=O}return pi(a,g,l,d,_)}),D2=ze(function(a,l,d){var g=k|S;if(d.length){var _=qi(d,sl(D2));g|=O}return pi(l,g,a,d,_)});function F2(a,l,d){l=d?n:l;var g=pi(a,w,n,n,n,n,n,l);return g.placeholder=F2.placeholder,g}function L2(a,l,d){l=d?n:l;var g=pi(a,E,n,n,n,n,n,l);return g.placeholder=L2.placeholder,g}function $2(a,l,d){var g,_,T,M,F,z,Z=0,Q=!1,re=!1,de=!0;if(typeof a!="function")throw new zr(s);l=Hr(l)||0,Nt(d)&&(Q=!!d.leading,re="maxWait"in d,T=re?on(Hr(d.maxWait)||0,l):T,de="trailing"in d?!!d.trailing:de);function Ce(Ht){var fo=g,yi=_;return g=_=n,Z=Ht,M=a.apply(yi,fo),M}function Oe(Ht){return Z=Ht,F=Qu(We,l),Q?Ce(Ht):M}function $e(Ht){var fo=Ht-z,yi=Ht-Z,rC=l-fo;return re?An(rC,T-yi):rC}function Re(Ht){var fo=Ht-z,yi=Ht-Z;return z===n||fo>=l||fo<0||re&&yi>=T}function We(){var Ht=ap();if(Re(Ht))return Ge(Ht);F=Qu(We,$e(Ht))}function Ge(Ht){return F=n,de&&g?Ce(Ht):(g=_=n,M)}function Sr(){F!==n&&K_(F),Z=0,g=z=_=F=n}function Vn(){return F===n?M:Ge(ap())}function wr(){var Ht=ap(),fo=Re(Ht);if(g=arguments,_=this,z=Ht,fo){if(F===n)return Oe(z);if(re)return K_(F),F=Qu(We,l),Ce(z)}return F===n&&(F=Qu(We,l)),M}return wr.cancel=Sr,wr.flush=Vn,wr}var NF=ze(function(a,l){return P_(a,1,l)}),DF=ze(function(a,l,d){return P_(a,Hr(l)||0,d)});function FF(a){return pi(a,Y)}function sp(a,l){if(typeof a!="function"||l!=null&&typeof l!="function")throw new zr(s);var d=function(){var g=arguments,_=l?l.apply(this,g):g[0],T=d.cache;if(T.has(_))return T.get(_);var M=a.apply(this,g);return d.cache=T.set(_,M)||T,M};return d.cache=new(sp.Cache||fi),d}sp.Cache=fi;function lp(a){if(typeof a!="function")throw new zr(s);return function(){var l=arguments;switch(l.length){case 0:return!a.call(this);case 1:return!a.call(this,l[0]);case 2:return!a.call(this,l[0],l[1]);case 3:return!a.call(this,l[0],l[1],l[2])}return!a.apply(this,l)}}function LF(a){return N2(2,a)}var $F=CD(function(a,l){l=l.length==1&&De(l[0])?At(l[0],yr(Te())):At(vn(l,1),yr(Te()));var d=l.length;return ze(function(g){for(var _=-1,T=An(g.length,d);++_=l}),Qa=I_(function(){return arguments}())?I_:function(a){return Vt(a)&<.call(a,"callee")&&!y_.call(a,"callee")},De=G.isArray,JF=Ys?yr(Ys):sD;function Jn(a){return a!=null&&up(a.length)&&!gi(a)}function Ut(a){return Vt(a)&&Jn(a)}function eL(a){return a===!0||a===!1||Vt(a)&&Bn(a)==ue}var Ji=hN||B0,tL=Xs?yr(Xs):lD;function nL(a){return Vt(a)&&a.nodeType===1&&!Ju(a)}function rL(a){if(a==null)return!0;if(Jn(a)&&(De(a)||typeof a=="string"||typeof a.splice=="function"||Ji(a)||ll(a)||Qa(a)))return!a.length;var l=Tn(a);if(l==ve||l==_t)return!a.size;if(Zu(a))return!r0(a).length;for(var d in a)if(lt.call(a,d))return!1;return!0}function oL(a,l){return Ku(a,l)}function iL(a,l,d){d=typeof d=="function"?d:n;var g=d?d(a,l):n;return g===n?Ku(a,l,n,d):!!g}function T0(a){if(!Vt(a))return!1;var l=Bn(a);return l==mt||l==Ne||typeof a.message=="string"&&typeof a.name=="string"&&!Ju(a)}function aL(a){return typeof a=="number"&&x_(a)}function gi(a){if(!Nt(a))return!1;var l=Bn(a);return l==It||l==En||l==Ee||l==mr}function z2(a){return typeof a=="number"&&a==Le(a)}function up(a){return typeof a=="number"&&a>-1&&a%1==0&&a<=W}function Nt(a){var l=typeof a;return a!=null&&(l=="object"||l=="function")}function Vt(a){return a!=null&&typeof a=="object"}var V2=$u?yr($u):cD;function sL(a,l){return a===l||n0(a,l,b0(l))}function lL(a,l,d){return d=typeof d=="function"?d:n,n0(a,l,b0(l),d)}function uL(a){return j2(a)&&a!=+a}function cL(a){if(qD(a))throw new Me(i);return M_(a)}function fL(a){return a===null}function dL(a){return a==null}function j2(a){return typeof a=="number"||Vt(a)&&Bn(a)==Mt}function Ju(a){if(!Vt(a)||Bn(a)!=it)return!1;var l=Fd(a);if(l===null)return!0;var d=lt.call(l,"constructor")&&l.constructor;return typeof d=="function"&&d instanceof d&&Id.call(d)==lN}var O0=n_?yr(n_):fD;function pL(a){return z2(a)&&a>=-W&&a<=W}var W2=r_?yr(r_):dD;function cp(a){return typeof a=="string"||!De(a)&&Vt(a)&&Bn(a)==Qt}function xr(a){return typeof a=="symbol"||Vt(a)&&Bn(a)==zt}var ll=o_?yr(o_):pD;function hL(a){return a===n}function mL(a){return Vt(a)&&Tn(a)==we}function gL(a){return Vt(a)&&Bn(a)==at}var vL=ep(o0),yL=ep(function(a,l){return a<=l});function U2(a){if(!a)return[];if(Jn(a))return cp(a)?lo(a):Qn(a);if(zu&&a[zu])return XM(a[zu]());var l=Tn(a),d=l==ve?Hv:l==_t?Td:ul;return d(a)}function vi(a){if(!a)return a===0?a:0;if(a=Hr(a),a===Pe||a===-Pe){var l=a<0?-1:1;return l*X}return a===a?a:0}function Le(a){var l=vi(a),d=l%1;return l===l?d?l-d:l:0}function H2(a){return a?Ka(Le(a),0,I):0}function Hr(a){if(typeof a=="number")return a;if(xr(a))return q;if(Nt(a)){var l=typeof a.valueOf=="function"?a.valueOf():a;a=Nt(l)?l+"":l}if(typeof a!="string")return a===0?a:+a;a=c_(a);var d=Sv.test(a);return d||_v.test(a)?he(a.slice(2),d?2:8):xv.test(a)?q:+a}function G2(a){return Ro(a,er(a))}function bL(a){return a?Ka(Le(a),-W,W):a===0?a:0}function rt(a){return a==null?"":br(a)}var xL=il(function(a,l){if(Zu(l)||Jn(l)){Ro(l,cn(l),a);return}for(var d in l)lt.call(l,d)&&Hu(a,d,l[d])}),q2=il(function(a,l){Ro(l,er(l),a)}),fp=il(function(a,l,d,g){Ro(l,er(l),a,g)}),SL=il(function(a,l,d,g){Ro(l,cn(l),a,g)}),wL=hi(Zv);function _L(a,l){var d=ol(a);return l==null?d:k_(d,l)}var CL=ze(function(a,l){a=vt(a);var d=-1,g=l.length,_=g>2?l[2]:n;for(_&&zn(l[0],l[1],_)&&(g=1);++d1),T}),Ro(a,v0(a),d),g&&(d=jr(d,h|m|v,DD));for(var _=l.length;_--;)u0(d,l[_]);return d});function jL(a,l){return Y2(a,lp(Te(l)))}var WL=hi(function(a,l){return a==null?{}:gD(a,l)});function Y2(a,l){if(a==null)return{};var d=At(v0(a),function(g){return[g]});return l=Te(l),z_(a,d,function(g,_){return l(g,_[0])})}function UL(a,l,d){l=Zi(l,a);var g=-1,_=l.length;for(_||(_=1,a=n);++g<_;){var T=a==null?n:a[Io(l[g])];T===n&&(g=_,T=d),a=gi(T)?T.call(a):T}return a}function HL(a,l,d){return a==null?a:Yu(a,l,d)}function GL(a,l,d,g){return g=typeof g=="function"?g:n,a==null?a:Yu(a,l,d,g)}var X2=l2(cn),Z2=l2(er);function qL(a,l,d){var g=De(a),_=g||Ji(a)||ll(a);if(l=Te(l,4),d==null){var T=a&&a.constructor;_?d=g?new T:[]:Nt(a)?d=gi(T)?ol(Fd(a)):{}:d={}}return(_?Br:Oo)(a,function(M,F,z){return l(d,M,F,z)}),d}function KL(a,l){return a==null?!0:u0(a,l)}function YL(a,l,d){return a==null?a:H_(a,l,d0(d))}function XL(a,l,d,g){return g=typeof g=="function"?g:n,a==null?a:H_(a,l,d0(d),g)}function ul(a){return a==null?[]:Uv(a,cn(a))}function ZL(a){return a==null?[]:Uv(a,er(a))}function QL(a,l,d){return d===n&&(d=l,l=n),d!==n&&(d=Hr(d),d=d===d?d:0),l!==n&&(l=Hr(l),l=l===l?l:0),Ka(Hr(a),l,d)}function JL(a,l,d){return l=vi(l),d===n?(d=l,l=0):d=vi(d),a=Hr(a),iD(a,l,d)}function e$(a,l,d){if(d&&typeof d!="boolean"&&zn(a,l,d)&&(l=d=n),d===n&&(typeof l=="boolean"?(d=l,l=n):typeof a=="boolean"&&(d=a,a=n)),a===n&&l===n?(a=0,l=1):(a=vi(a),l===n?(l=a,a=0):l=vi(l)),a>l){var g=a;a=l,l=g}if(d||a%1||l%1){var _=S_();return An(a+_*(l-a+U("1e-"+((_+"").length-1))),l)}return a0(a,l)}var t$=al(function(a,l,d){return l=l.toLowerCase(),a+(d?Q2(l):l)});function Q2(a){return M0(rt(a).toLowerCase())}function J2(a){return a=rt(a),a&&a.replace(kv,HM).replace(_d,"")}function n$(a,l,d){a=rt(a),l=br(l);var g=a.length;d=d===n?g:Ka(Le(d),0,g);var _=d;return d-=l.length,d>=0&&a.slice(d,_)==l}function r$(a){return a=rt(a),a&&ai.test(a)?a.replace(ji,GM):a}function o$(a){return a=rt(a),a&&dv.test(a)?a.replace(Pu,"\\$&"):a}var i$=al(function(a,l,d){return a+(d?"-":"")+l.toLowerCase()}),a$=al(function(a,l,d){return a+(d?" ":"")+l.toLowerCase()}),s$=n2("toLowerCase");function l$(a,l,d){a=rt(a),l=Le(l);var g=l?Js(a):0;if(!l||g>=l)return a;var _=(l-g)/2;return Jd(zd(_),d)+a+Jd(Bd(_),d)}function u$(a,l,d){a=rt(a),l=Le(l);var g=l?Js(a):0;return l&&g>>0,d?(a=rt(a),a&&(typeof l=="string"||l!=null&&!O0(l))&&(l=br(l),!l&&Qs(a))?Qi(lo(a),0,d):a.split(l,d)):[]}var g$=al(function(a,l,d){return a+(d?" ":"")+M0(l)});function v$(a,l,d){return a=rt(a),d=d==null?0:Ka(Le(d),0,a.length),l=br(l),a.slice(d,d+l.length)==l}function y$(a,l,d){var g=A.templateSettings;d&&zn(a,l,d)&&(l=n),a=rt(a),l=fp({},l,g,u2);var _=fp({},l.imports,g.imports,u2),T=cn(_),M=Uv(_,T),F,z,Z=0,Q=l.interpolate||Ui,re="__p += '",de=Gv((l.escape||Ui).source+"|"+Q.source+"|"+(Q===id?bv:Ui).source+"|"+(l.evaluate||Ui).source+"|$","g"),Ce="//# sourceURL="+(lt.call(l,"sourceURL")?(l.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++kd+"]")+` +`;a.replace(de,function(Re,We,Ge,Sr,Vn,wr){return Ge||(Ge=Sr),re+=a.slice(Z,wr).replace(Ev,qM),We&&(F=!0,re+=`' + +__e(`+We+`) + +'`),Vn&&(z=!0,re+=`'; +`+Vn+`; +__p += '`),Ge&&(re+=`' + +((__t = (`+Ge+`)) == null ? '' : __t) + +'`),Z=wr+Re.length,Re}),re+=`'; +`;var Oe=lt.call(l,"variable")&&l.variable;if(!Oe)re=`with (obj) { +`+re+` +} +`;else if(vv.test(Oe))throw new Me(u);re=(z?re.replace(Wa,""):re).replace(Vs,"$1").replace(av,"$1;"),re="function("+(Oe||"obj")+`) { +`+(Oe?"":`obj || (obj = {}); +`)+"var __t, __p = ''"+(F?", __e = _.escape":"")+(z?`, __j = Array.prototype.join; +function print() { __p += __j.call(arguments, '') } +`:`; +`)+re+`return __p +}`;var $e=tC(function(){return Qe(T,Ce+"return "+re).apply(n,M)});if($e.source=re,T0($e))throw $e;return $e}function b$(a){return rt(a).toLowerCase()}function x$(a){return rt(a).toUpperCase()}function S$(a,l,d){if(a=rt(a),a&&(d||l===n))return c_(a);if(!a||!(l=br(l)))return a;var g=lo(a),_=lo(l),T=f_(g,_),M=d_(g,_)+1;return Qi(g,T,M).join("")}function w$(a,l,d){if(a=rt(a),a&&(d||l===n))return a.slice(0,h_(a)+1);if(!a||!(l=br(l)))return a;var g=lo(a),_=d_(g,lo(l))+1;return Qi(g,0,_).join("")}function _$(a,l,d){if(a=rt(a),a&&(d||l===n))return a.replace(Au,"");if(!a||!(l=br(l)))return a;var g=lo(a),_=f_(g,lo(l));return Qi(g,_).join("")}function C$(a,l){var d=j,g=te;if(Nt(l)){var _="separator"in l?l.separator:_;d="length"in l?Le(l.length):d,g="omission"in l?br(l.omission):g}a=rt(a);var T=a.length;if(Qs(a)){var M=lo(a);T=M.length}if(d>=T)return a;var F=d-Js(g);if(F<1)return g;var z=M?Qi(M,0,F).join(""):a.slice(0,F);if(_===n)return z+g;if(M&&(F+=z.length-F),O0(_)){if(a.slice(F).search(_)){var Z,Q=z;for(_.global||(_=Gv(_.source,rt(si.exec(_))+"g")),_.lastIndex=0;Z=_.exec(Q);)var re=Z.index;z=z.slice(0,re===n?F:re)}}else if(a.indexOf(br(_),F)!=F){var de=z.lastIndexOf(_);de>-1&&(z=z.slice(0,de))}return z+g}function k$(a){return a=rt(a),a&&sv.test(a)?a.replace(Eu,eN):a}var E$=al(function(a,l,d){return a+(d?" ":"")+l.toUpperCase()}),M0=n2("toUpperCase");function eC(a,l,d){return a=rt(a),l=d?n:l,l===n?YM(a)?rN(a):zM(a):a.match(l)||[]}var tC=ze(function(a,l){try{return vr(a,n,l)}catch(d){return T0(d)?d:new Me(d)}}),P$=hi(function(a,l){return Br(l,function(d){d=Io(d),di(a,d,P0(a[d],a))}),a});function A$(a){var l=a==null?0:a.length,d=Te();return a=l?At(a,function(g){if(typeof g[1]!="function")throw new zr(s);return[d(g[0]),g[1]]}):[],ze(function(g){for(var _=-1;++_W)return[];var d=I,g=An(a,I);l=Te(l),a-=I;for(var _=Wv(g,l);++d0||l<0)?new Ue(d):(a<0?d=d.takeRight(-a):a&&(d=d.drop(a)),l!==n&&(l=Le(l),d=l<0?d.dropRight(-l):d.take(l-a)),d)},Ue.prototype.takeRightWhile=function(a){return this.reverse().takeWhile(a).reverse()},Ue.prototype.toArray=function(){return this.take(I)},Oo(Ue.prototype,function(a,l){var d=/^(?:filter|find|map|reject)|While$/.test(l),g=/^(?:head|last)$/.test(l),_=A[g?"take"+(l=="last"?"Right":""):l],T=g||/^find/.test(l);!_||(A.prototype[l]=function(){var M=this.__wrapped__,F=g?[1]:arguments,z=M instanceof Ue,Z=F[0],Q=z||De(M),re=function(We){var Ge=_.apply(A,Gi([We],F));return g&&de?Ge[0]:Ge};Q&&d&&typeof Z=="function"&&Z.length!=1&&(z=Q=!1);var de=this.__chain__,Ce=!!this.__actions__.length,Oe=T&&!de,$e=z&&!Ce;if(!T&&Q){M=$e?M:new Ue(this);var Re=a.apply(M,F);return Re.__actions__.push({func:op,args:[re],thisArg:n}),new Vr(Re,de)}return Oe&&$e?a.apply(this,F):(Re=this.thru(re),Oe?g?Re.value()[0]:Re.value():Re)})}),Br(["pop","push","shift","sort","splice","unshift"],function(a){var l=Od[a],d=/^(?:push|sort|unshift)$/.test(a)?"tap":"thru",g=/^(?:pop|shift)$/.test(a);A.prototype[a]=function(){var _=arguments;if(g&&!this.__chain__){var T=this.value();return l.apply(De(T)?T:[],_)}return this[d](function(M){return l.apply(De(M)?M:[],_)})}}),Oo(Ue.prototype,function(a,l){var d=A[l];if(d){var g=d.name+"";lt.call(rl,g)||(rl[g]=[]),rl[g].push({name:l,func:d})}}),rl[Zd(n,S).name]=[{name:"wrapper",func:n}],Ue.prototype.clone=kN,Ue.prototype.reverse=EN,Ue.prototype.value=PN,A.prototype.at=nF,A.prototype.chain=rF,A.prototype.commit=oF,A.prototype.next=iF,A.prototype.plant=sF,A.prototype.reverse=lF,A.prototype.toJSON=A.prototype.valueOf=A.prototype.value=uF,A.prototype.first=A.prototype.head,zu&&(A.prototype[zu]=aF),A},el=oN();Ze?((Ze.exports=el)._=el,Be._=el):Fe._=el}).call(ki)})(nn,nn.exports);const Wue="calc(100vh - 238px)",Uue=Xt(e=>e.system,e=>({isProcessing:e.isProcessing,isConnected:e.isConnected,isGFPGANAvailable:e.isGFPGANAvailable,isESRGANAvailable:e.isESRGANAvailable}),{memoizeOptions:{resultEqualityCheck:nn.exports.isEqual}}),Hue=()=>{const{currentImage:e,intermediateImage:t}=Pt(h=>h.gallery),{isProcessing:n,isConnected:r,isGFPGANAvailable:o,isESRGANAvailable:i}=Pt(Uue),s=hn(),u=jl("rgba(255, 255, 255, 0.85)","rgba(0, 0, 0, 0.8)"),[c,f]=C.exports.useState(!1),p=t||e;return ce(qe,{direction:"column",rounded:"md",borderWidth:1,p:2,gap:2,children:[p&&ce(qe,{gap:2,children:[P(Gn,{label:"Use as initial image",colorScheme:"gray",flexGrow:1,variant:"outline",onClick:()=>s(Kw(p.url))}),P(Gn,{label:"Use all",colorScheme:"gray",flexGrow:1,variant:"outline",onClick:()=>s(Yw(p.metadata))}),P(Gn,{label:"Use seed",colorScheme:"gray",flexGrow:1,variant:"outline",isDisabled:!p.metadata.seed,onClick:()=>s(qw(p.metadata.seed))}),P(Gn,{label:"Upscale",colorScheme:"gray",flexGrow:1,variant:"outline",isDisabled:!i||Boolean(t)||!(r&&!n),onClick:()=>s(Nle(p))}),P(Gn,{label:"Fix faces",colorScheme:"gray",flexGrow:1,variant:"outline",isDisabled:!o||Boolean(t)||!(r&&!n),onClick:()=>s(Dle(p))}),P(Gn,{label:"Details",colorScheme:"gray",variant:c?"solid":"outline",borderWidth:1,flexGrow:1,onClick:()=>f(!c)}),P(_M,{image:p,children:P(Gn,{label:"Delete",colorScheme:"red",flexGrow:1,variant:"outline",isDisabled:Boolean(t)})})]}),ce(nw,{height:Wue,position:"relative",children:[p&&P(kf,{src:p.url,fit:"contain",maxWidth:"100%",maxHeight:"100%"}),p&&c&&P(qe,{width:"100%",height:"100%",position:"absolute",top:0,left:0,p:3,boxSizing:"border-box",backgroundColor:u,overflow:"scroll",children:P(Vue,{image:p})})]})]})},Gue=Xt(e=>e.system,e=>e.log,{memoizeOptions:{resultEqualityCheck:(e,t)=>e.length===t.length}}),que=Xt(e=>e.system,e=>({shouldShowLogViewer:e.shouldShowLogViewer}),{memoizeOptions:{resultEqualityCheck:nn.exports.isEqual}}),Kue=()=>{const e=hn(),t=jl("gray.50","gray.900"),n=jl("gray.500","gray.500"),[r,o]=C.exports.useState(!0),i=Pt(Gue),{shouldShowLogViewer:s}=Pt(que),u=C.exports.useRef(null);return C.exports.useLayoutEffect(()=>{u.current!==null&&r&&(u.current.scrollTop=u.current.scrollHeight)}),ce(fr,{children:[s&&P(qe,{position:"fixed",left:0,bottom:0,height:"200px",width:"100vw",overflow:"auto",direction:"column",fontFamily:"monospace",fontSize:"sm",pl:12,pr:2,pb:2,borderTopWidth:"4px",borderColor:n,background:t,ref:u,children:i.map((c,f)=>ce(qe,{gap:2,children:[ce(Lt,{fontSize:"sm",fontWeight:"semibold",children:[c.timestamp,":"]}),P(Lt,{fontSize:"sm",wordBreak:"break-all",children:c.message})]},f))}),s&&P(Kb,{label:r?"Autoscroll on":"Autoscroll off",children:P(Zr,{size:"sm",position:"fixed",left:2,bottom:12,"aria-label":"Toggle autoscroll",variant:"solid",colorScheme:r?"blue":"gray",icon:P(Iue,{}),onClick:()=>o(!r)})}),P(Kb,{label:s?"Hide logs":"Show logs",children:P(Zr,{size:"sm",position:"fixed",left:2,bottom:2,variant:"solid","aria-label":"Toggle Log Viewer",icon:s?P(Fue,{}):P(Nue,{}),onClick:()=>e(Vse(!s))})})]})},Yue=()=>{const{prompt:e}=Pt(n=>n.sd),t=hn();return P(n4,{id:"prompt",name:"prompt",resize:"none",size:"lg",height:"100%",isInvalid:!e.length,onChange:n=>t(Kae(n.target.value)),value:e,placeholder:"I'm dreaming of..."})},Xue=Xt(e=>e.sd,e=>({realSteps:e.realSteps}),{memoizeOptions:{resultEqualityCheck:nn.exports.isEqual}}),Zue=()=>{const{realSteps:e}=Pt(Xue),{currentStep:t}=Pt(r=>r.system),n=Math.round(t*100/e);return P(Q5,{height:"10px",value:n,isIndeterminate:n<0||t===e})},Que=Xt(e=>e.sd,e=>({prompt:e.prompt,shouldGenerateVariations:e.shouldGenerateVariations,seedWeights:e.seedWeights,maskPath:e.maskPath,initialImagePath:e.initialImagePath,seed:e.seed}),{memoizeOptions:{resultEqualityCheck:nn.exports.isEqual}}),Jue=Xt(e=>e.system,e=>({isProcessing:e.isProcessing,isConnected:e.isConnected}),{memoizeOptions:{resultEqualityCheck:nn.exports.isEqual}}),ece=()=>{const{prompt:e,shouldGenerateVariations:t,seedWeights:n,maskPath:r,initialImagePath:o,seed:i}=Pt(Que),{isProcessing:s,isConnected:u}=Pt(Jue);return C.exports.useMemo(()=>!(!e||r&&!o||s||!u||t&&(!(qg(n)||n==="")||i===-1)),[e,r,o,s,u,t,n,i])},tce=Xt(e=>e.system,e=>({isProcessing:e.isProcessing,isConnected:e.isConnected}),{memoizeOptions:{resultEqualityCheck:nn.exports.isEqual}}),nce=()=>{const{isProcessing:e,isConnected:t}=Pt(tce),n=hn(),r=ece();return ce(qe,{gap:2,direction:"column",alignItems:"space-between",height:"100%",children:[P(Gn,{label:"Generate",type:"submit",colorScheme:"green",flexGrow:1,isDisabled:!r,fontSize:"md",size:"md",onClick:()=>n(Mle())}),P(Gn,{label:"Cancel",colorScheme:"red",flexGrow:1,fontSize:"md",size:"md",isDisabled:!t||!e,onClick:()=>n(Lle())})]})},rce=C.exports.memo(e=>{const[t,n]=C.exports.useState(!1),r=hn(),o=jl("green.600","green.300"),i=jl("gray.200","gray.700"),s=jl("radial-gradient(circle, rgba(255,255,255,0.7) 0%, rgba(255,255,255,0.7) 20%, rgba(0,0,0,0) 100%)","radial-gradient(circle, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.7) 20%, rgba(0,0,0,0) 100%)"),{image:u,isSelected:c}=e,{url:f,uuid:p,metadata:h}=u,m=()=>n(!0),v=()=>n(!1),b=k=>{k.stopPropagation(),r(Yw(h))},x=k=>{k.stopPropagation(),r(qw(u.metadata.seed))};return ce(xs,{position:"relative",children:[P(kf,{width:120,height:120,objectFit:"cover",rounded:"md",src:f,loading:"lazy",backgroundColor:i}),ce(qe,{cursor:"pointer",position:"absolute",top:0,left:0,rounded:"md",width:"100%",height:"100%",alignItems:"center",justifyContent:"center",background:c?s:void 0,onClick:()=>r(Ese(u)),onMouseOver:m,onMouseOut:v,children:[c&&P(Po,{fill:o,width:"50%",height:"50%",as:Mue}),t&&ce(qe,{direction:"column",gap:1,position:"absolute",top:1,right:1,children:[P(_M,{image:u,children:P(Zr,{colorScheme:"red","aria-label":"Delete image",icon:P(wM,{}),size:"xs",fontSize:15})}),P(Zr,{"aria-label":"Use all parameters",colorScheme:"blue",icon:P(Due,{}),size:"xs",fontSize:15,onClickCapture:b}),u.metadata.seed&&P(Zr,{"aria-label":"Use seed",colorScheme:"blue",icon:P(Bue,{}),size:"xs",fontSize:16,onClickCapture:x})]})]})]},p)},(e,t)=>e.image.uuid===t.image.uuid&&e.isSelected===t.isSelected),oce=()=>{const{images:e,currentImageUuid:t}=Pt(n=>n.gallery);return P(qe,{gap:2,wrap:"wrap",pb:2,children:[...e].reverse().map(n=>{const{uuid:r}=n;return P(rce,{image:n,isSelected:t===r},r)})})};function ice(e){return Lr({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 17h-2v-2h2v2zm2.07-7.75l-.9.92C13.45 12.9 13 13.5 13 15h-2v-.5c0-1.1.45-2.1 1.17-2.83l1.24-1.26c.37-.36.59-.86.59-1.41 0-1.1-.9-2-2-2s-2 .9-2 2H8c0-2.21 1.79-4 4-4s4 1.79 4 4c0 .88-.36 1.68-.93 2.25z"}}]})(e)}function ace(e){return Lr({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0V0z"}},{tag:"path",attr:{d:"M19.14 12.94c.04-.3.06-.61.06-.94 0-.32-.02-.64-.07-.94l2.03-1.58a.49.49 0 00.12-.61l-1.92-3.32a.488.488 0 00-.59-.22l-2.39.96c-.5-.38-1.03-.7-1.62-.94l-.36-2.54a.484.484 0 00-.48-.41h-3.84c-.24 0-.43.17-.47.41l-.36 2.54c-.59.24-1.13.57-1.62.94l-2.39-.96c-.22-.08-.47 0-.59.22L2.74 8.87c-.12.21-.08.47.12.61l2.03 1.58c-.05.3-.09.63-.09.94s.02.64.07.94l-2.03 1.58a.49.49 0 00-.12.61l1.92 3.32c.12.22.37.29.59.22l2.39-.96c.5.38 1.03.7 1.62.94l.36 2.54c.05.24.24.41.48.41h3.84c.24 0 .44-.17.47-.41l.36-2.54c.59-.24 1.13-.56 1.62-.94l2.39.96c.22.08.47 0 .59-.22l1.92-3.32c.12-.22.07-.47-.12-.61l-2.01-1.58zM12 15.6c-1.98 0-3.6-1.62-3.6-3.6s1.62-3.6 3.6-3.6 3.6 1.62 3.6 3.6-1.62 3.6-3.6 3.6z"}}]})(e)}const sce=Xt(e=>e.system,e=>{const{shouldDisplayInProgress:t,shouldConfirmOnDelete:n}=e;return{shouldDisplayInProgress:t,shouldConfirmOnDelete:n}},{memoizeOptions:{resultEqualityCheck:nn.exports.isEqual}}),lce=({children:e})=>{const{isOpen:t,onOpen:n,onClose:r}=Tb(),{isOpen:o,onOpen:i,onClose:s}=Tb(),{shouldDisplayInProgress:u,shouldConfirmOnDelete:c}=Pt(sce),f=hn(),p=()=>{NM.purge().then(()=>{r(),i()})};return ce(fr,{children:[C.exports.cloneElement(e,{onClick:n}),ce(Of,{isOpen:t,onClose:r,children:[P(Pm,{}),ce(Rf,{children:[P(Ew,{children:"Settings"}),P(Cw,{}),P(Em,{children:ce(qe,{gap:5,direction:"column",children:[P(Os,{children:ce(wm,{children:[P(Rs,{marginBottom:1,children:"Display in-progress images (slower)"}),P(ws,{isChecked:u,onChange:h=>f(zse(h.target.checked))})]})}),P(Os,{children:ce(wm,{children:[P(Rs,{marginBottom:1,children:"Confirm on delete"}),P(ws,{isChecked:c,onChange:h=>f(K4(h.target.checked))})]})}),P(ow,{size:"md",children:"Reset Web UI"}),P(Lt,{children:"Resetting the web UI only resets the browser's local cache of your images and remembered settings. It does not delete any images from disk."}),P(Lt,{children:"If images aren't showing up in the gallery or something else isn't working, please try resetting before submitting an issue on GitHub."}),P(Gn,{label:"Reset Web UI",colorScheme:"red",onClick:p})]})}),P(kw,{children:P(Gn,{label:"Close",onClick:r})})]})]}),ce(Of,{closeOnOverlayClick:!1,isOpen:o,onClose:s,isCentered:!0,children:[P(Pm,{bg:"blackAlpha.300",backdropFilter:"blur(40px)"}),P(Rf,{children:P(Em,{pb:6,pt:6,children:P(qe,{justifyContent:"center",children:P(Lt,{fontSize:"lg",children:"Web UI has been reset. Refresh the page to reload."})})})})]})]})},uce=Xt(e=>e.system,e=>({isConnected:e.isConnected}),{memoizeOptions:{resultEqualityCheck:nn.exports.isEqual}}),cce=()=>{const{colorMode:e,toggleColorMode:t}=ag(),{isConnected:n}=Pt(uce);return ce(qe,{minWidth:"max-content",alignItems:"center",gap:"1",pl:2,pr:1,children:[P(ow,{size:"lg",children:"Stable Diffusion Dream Server"}),P(B3,{}),P(Lt,{textColor:n?"green.500":"red.500",children:n?"Connected to server":"No connection to server"}),P(lce,{children:P(Zr,{"aria-label":"Settings",variant:"link",fontSize:24,size:"sm",icon:P(ace,{})})}),P(Zr,{"aria-label":"Link to Github Issues",variant:"link",fontSize:23,size:"sm",icon:P(Sm,{isExternal:!0,href:"http://github.com/lstein/stable-diffusion/issues",children:P(ice,{})})}),P(Zr,{"aria-label":"Link to Github Repo",variant:"link",fontSize:20,size:"sm",icon:P(Sm,{isExternal:!0,href:"http://github.com/lstein/stable-diffusion",children:P(Rue,{})})}),P(Zr,{"aria-label":"Toggle Dark Mode",onClick:t,variant:"link",size:"sm",fontSize:e=="light"?18:20,icon:e=="light"?P(Lue,{}):P(zue,{})})]})},Ho=e=>{const{label:t,isDisabled:n=!1,fontSize:r="md",size:o="sm",width:i,isInvalid:s,...u}=e;return P(Os,{isDisabled:n,width:i,isInvalid:s,children:ce(qe,{gap:2,justifyContent:"space-between",alignItems:"center",children:[t&&P(Rs,{marginBottom:1,children:P(Lt,{fontSize:r,whiteSpace:"nowrap",children:t})}),ce(G5,{size:o,...u,keepWithinRange:!1,clampValueOnBlur:!0,children:[P(K5,{fontSize:"md"}),ce(q5,{children:[P(Z5,{}),P(X5,{})]})]})]})})},$m=e=>{const{label:t,isDisabled:n=!1,fontSize:r="md",size:o="md",width:i,...s}=e;return P(Os,{isDisabled:n,width:i,children:ce(qe,{justifyContent:"space-between",alignItems:"center",children:[t&&P(Rs,{fontSize:r,marginBottom:1,flexGrow:2,whiteSpace:"nowrap",children:t}),P(ws,{size:o,...s})]})})},fce=Xt(e=>e.sd,e=>({variantAmount:e.variantAmount,seedWeights:e.seedWeights,shouldGenerateVariations:e.shouldGenerateVariations,shouldRandomizeSeed:e.shouldRandomizeSeed,seed:e.seed,iterations:e.iterations}),{memoizeOptions:{resultEqualityCheck:nn.exports.isEqual}}),dce=()=>{const{shouldGenerateVariations:e,variantAmount:t,seedWeights:n,shouldRandomizeSeed:r,seed:o,iterations:i}=Pt(fce),s=hn();return ce(qe,{gap:2,direction:"column",children:[P(Ho,{label:"Images to generate",step:1,min:1,precision:0,onChange:u=>s(Yae(Number(u))),value:i}),P($m,{label:"Randomize seed on generation",isChecked:r,onChange:u=>s(vse(u.target.checked))}),ce(qe,{gap:2,children:[P(Ho,{label:"Seed",step:1,precision:0,flexGrow:1,min:Hw,max:Gw,isDisabled:r,isInvalid:o<0&&e,onChange:u=>s(qw(Number(u))),value:o}),P(su,{size:"sm",isDisabled:r,onClick:()=>s(use()),children:P(Lt,{pl:2,pr:2,children:"Shuffle"})})]}),P($m,{label:"Generate variations",isChecked:e,width:"auto",onChange:u=>s(dse(u.target.checked))}),P(Ho,{label:"Variation amount",value:t,step:.01,min:0,max:1,isDisabled:!e,onChange:u=>s(hse(Number(u)))}),P(Os,{isInvalid:e&&!(qg(n)||n===""),flexGrow:1,isDisabled:!e,children:ce(wm,{children:[P(Rs,{marginInlineEnd:0,marginBottom:1,children:P(Lt,{whiteSpace:"nowrap",children:"Seed Weights"})}),P(ew,{size:"sm",value:n,onChange:u=>s(pse(u.target.value))})]})})]})},Bm=e=>{const{label:t,isDisabled:n,validValues:r,size:o="sm",fontSize:i="md",marginBottom:s=1,whiteSpace:u="nowrap",...c}=e;return P(Os,{isDisabled:n,children:ce(qe,{justifyContent:"space-between",alignItems:"center",children:[P(Rs,{marginBottom:s,children:P(Lt,{fontSize:i,whiteSpace:u,children:t})}),P(e4,{fontSize:i,size:o,...c,children:r.map(f=>typeof f=="string"||typeof f=="number"?P("option",{value:f,children:f},f):P("option",{value:f.value,children:f.key},f.value))})]})})},pce=Xt(e=>e.sd,e=>({steps:e.steps,cfgScale:e.cfgScale,sampler:e.sampler,threshold:e.threshold,perlin:e.perlin}),{memoizeOptions:{resultEqualityCheck:nn.exports.isEqual}}),hce=()=>{const{steps:e,cfgScale:t,sampler:n,threshold:r,perlin:o}=Pt(pce),i=hn();return ce(qe,{gap:2,direction:"column",children:[P(Ho,{label:"Steps",min:1,step:1,precision:0,onChange:s=>i(Xae(Number(s))),value:e}),P(Ho,{label:"CFG scale",step:.5,onChange:s=>i(Zae(Number(s))),value:t}),P(Bm,{label:"Sampler",value:n,onChange:s=>i(nse(s.target.value)),validValues:Wae}),P(Ho,{label:"Threshold",step:.1,onChange:s=>i(Qae(Number(s))),value:r}),P(Ho,{label:"Perlin",step:.1,onChange:s=>i(Jae(Number(s))),value:o})]})},mce=Xt(e=>e.sd,e=>({upscalingLevel:e.upscalingLevel,upscalingStrength:e.upscalingStrength}),{memoizeOptions:{resultEqualityCheck:nn.exports.isEqual}}),gce=Xt(e=>e.system,e=>({isESRGANAvailable:e.isESRGANAvailable}),{memoizeOptions:{resultEqualityCheck:nn.exports.isEqual}}),vce=()=>{const{upscalingLevel:e,upscalingStrength:t}=Pt(mce),{isESRGANAvailable:n}=Pt(gce),r=hn();return ce(qe,{direction:"column",gap:2,children:[P(Bm,{isDisabled:!n,label:"Scale",value:e,onChange:o=>r(ase(Number(o.target.value))),validValues:Gae}),P(Ho,{isDisabled:!n,label:"Strength",step:.05,min:0,max:1,onChange:o=>r(sse(Number(o))),value:t})]})},yce=Xt(e=>e.sd,e=>({gfpganStrength:e.gfpganStrength}),{memoizeOptions:{resultEqualityCheck:nn.exports.isEqual}}),bce=Xt(e=>e.system,e=>({isGFPGANAvailable:e.isGFPGANAvailable}),{memoizeOptions:{resultEqualityCheck:nn.exports.isEqual}}),xce=()=>{const{gfpganStrength:e}=Pt(yce),{isGFPGANAvailable:t}=Pt(bce),n=hn();return P(qe,{direction:"column",gap:2,children:P(Ho,{isDisabled:!t,label:"Strength",step:.05,min:0,max:1,onChange:r=>n(ise(Number(r))),value:e})})},Sce=Xt(e=>e.sd,e=>({height:e.height,width:e.width,seamless:e.seamless}),{memoizeOptions:{resultEqualityCheck:nn.exports.isEqual}}),wce=()=>{const{height:e,width:t,seamless:n}=Pt(Sce),r=hn();return ce(qe,{gap:2,direction:"column",children:[ce(qe,{gap:2,children:[P(Bm,{label:"Width",value:t,flexGrow:1,onChange:o=>r(tse(Number(o.target.value))),validValues:Uae}),P(Bm,{label:"Height",value:e,flexGrow:1,onChange:o=>r(ese(Number(o.target.value))),validValues:Hae})]}),P($m,{label:"Seamless tiling",fontSize:"md",isChecked:n,onChange:o=>r(rse(o.target.checked))})]})};var _ce=new Map([["aac","audio/aac"],["abw","application/x-abiword"],["arc","application/x-freearc"],["avif","image/avif"],["avi","video/x-msvideo"],["azw","application/vnd.amazon.ebook"],["bin","application/octet-stream"],["bmp","image/bmp"],["bz","application/x-bzip"],["bz2","application/x-bzip2"],["cda","application/x-cdf"],["csh","application/x-csh"],["css","text/css"],["csv","text/csv"],["doc","application/msword"],["docx","application/vnd.openxmlformats-officedocument.wordprocessingml.document"],["eot","application/vnd.ms-fontobject"],["epub","application/epub+zip"],["gz","application/gzip"],["gif","image/gif"],["heic","image/heic"],["heif","image/heif"],["htm","text/html"],["html","text/html"],["ico","image/vnd.microsoft.icon"],["ics","text/calendar"],["jar","application/java-archive"],["jpeg","image/jpeg"],["jpg","image/jpeg"],["js","text/javascript"],["json","application/json"],["jsonld","application/ld+json"],["mid","audio/midi"],["midi","audio/midi"],["mjs","text/javascript"],["mp3","audio/mpeg"],["mp4","video/mp4"],["mpeg","video/mpeg"],["mpkg","application/vnd.apple.installer+xml"],["odp","application/vnd.oasis.opendocument.presentation"],["ods","application/vnd.oasis.opendocument.spreadsheet"],["odt","application/vnd.oasis.opendocument.text"],["oga","audio/ogg"],["ogv","video/ogg"],["ogx","application/ogg"],["opus","audio/opus"],["otf","font/otf"],["png","image/png"],["pdf","application/pdf"],["php","application/x-httpd-php"],["ppt","application/vnd.ms-powerpoint"],["pptx","application/vnd.openxmlformats-officedocument.presentationml.presentation"],["rar","application/vnd.rar"],["rtf","application/rtf"],["sh","application/x-sh"],["svg","image/svg+xml"],["swf","application/x-shockwave-flash"],["tar","application/x-tar"],["tif","image/tiff"],["tiff","image/tiff"],["ts","video/mp2t"],["ttf","font/ttf"],["txt","text/plain"],["vsd","application/vnd.visio"],["wav","audio/wav"],["weba","audio/webm"],["webm","video/webm"],["webp","image/webp"],["woff","font/woff"],["woff2","font/woff2"],["xhtml","application/xhtml+xml"],["xls","application/vnd.ms-excel"],["xlsx","application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"],["xml","application/xml"],["xul","application/vnd.mozilla.xul+xml"],["zip","application/zip"],["7z","application/x-7z-compressed"],["mkv","video/x-matroska"],["mov","video/quicktime"],["msg","application/vnd.ms-outlook"]]);function od(e,t){var n=Cce(e);if(typeof n.path!="string"){var r=e.webkitRelativePath;Object.defineProperty(n,"path",{value:typeof t=="string"?t:typeof r=="string"&&r.length>0?r:e.name,writable:!1,configurable:!1,enumerable:!0})}return n}function Cce(e){var t=e.name,n=t&&t.lastIndexOf(".")!==-1;if(n&&!e.type){var r=t.split(".").pop().toLowerCase(),o=_ce.get(r);o&&Object.defineProperty(e,"type",{value:o,writable:!1,configurable:!1,enumerable:!0})}return e}var kce=[".DS_Store","Thumbs.db"];function Ece(e){return xu(this,void 0,void 0,function(){return Su(this,function(t){return zm(e)&&Pce(e.dataTransfer)?[2,Rce(e.dataTransfer,e.type)]:Ace(e)?[2,Tce(e)]:Array.isArray(e)&&e.every(function(n){return"getFile"in n&&typeof n.getFile=="function"})?[2,Oce(e)]:[2,[]]})})}function Pce(e){return zm(e)}function Ace(e){return zm(e)&&zm(e.target)}function zm(e){return typeof e=="object"&&e!==null}function Tce(e){return ux(e.target.files).map(function(t){return od(t)})}function Oce(e){return xu(this,void 0,void 0,function(){var t;return Su(this,function(n){switch(n.label){case 0:return[4,Promise.all(e.map(function(r){return r.getFile()}))];case 1:return t=n.sent(),[2,t.map(function(r){return od(r)})]}})})}function Rce(e,t){return xu(this,void 0,void 0,function(){var n,r;return Su(this,function(o){switch(o.label){case 0:return e.items?(n=ux(e.items).filter(function(i){return i.kind==="file"}),t!=="drop"?[2,n]:[4,Promise.all(n.map(Ice))]):[3,2];case 1:return r=o.sent(),[2,LA(CM(r))];case 2:return[2,LA(ux(e.files).map(function(i){return od(i)}))]}})})}function LA(e){return e.filter(function(t){return kce.indexOf(t.name)===-1})}function ux(e){if(e===null)return[];for(var t=[],n=0;ne.length)&&(t=e.length);for(var n=0,r=new Array(t);nn)return[!1,jA(n)];if(e.sizen)return[!1,jA(n)]}return[!0,null]}function cs(e){return e!=null}function Kce(e){var t=e.files,n=e.accept,r=e.minSize,o=e.maxSize,i=e.multiple,s=e.maxFiles,u=e.validator;return!i&&t.length>1||i&&s>=1&&t.length>s?!1:t.every(function(c){var f=AM(c,n),p=Lf(f,1),h=p[0],m=TM(c,r,o),v=Lf(m,1),b=v[0],x=u?u(c):null;return h&&b&&!x})}function Vm(e){return typeof e.isPropagationStopped=="function"?e.isPropagationStopped():typeof e.cancelBubble<"u"?e.cancelBubble:!1}function Jp(e){return e.dataTransfer?Array.prototype.some.call(e.dataTransfer.types,function(t){return t==="Files"||t==="application/x-moz-file"}):!!e.target&&!!e.target.files}function UA(e){e.preventDefault()}function Yce(e){return e.indexOf("MSIE")!==-1||e.indexOf("Trident/")!==-1}function Xce(e){return e.indexOf("Edge/")!==-1}function Zce(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:window.navigator.userAgent;return Yce(e)||Xce(e)}function Fo(){for(var e=arguments.length,t=new Array(e),n=0;n1?o-1:0),s=1;se.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0)&&(!Object.prototype.propertyIsEnumerable.call(e,r)||(n[r]=e[r]))}return n}function hfe(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,i;for(i=0;i=0)&&(n[o]=e[o]);return n}var e_=C.exports.forwardRef(function(e,t){var n=e.children,r=jm(e,rfe),o=t_(r),i=o.open,s=jm(o,ofe);return C.exports.useImperativeHandle(t,function(){return{open:i}},[i]),P(C.exports.Fragment,{children:n(Dt(Dt({},s),{},{open:i}))})});e_.displayName="Dropzone";var MM={disabled:!1,getFilesFromEvent:Ece,maxSize:1/0,minSize:0,multiple:!0,maxFiles:0,preventDropOnDocument:!0,noClick:!1,noKeyboard:!1,noDrag:!1,noDragEventsBubbling:!1,validator:null,useFsAccessApi:!0,autoFocus:!1};e_.defaultProps=MM;e_.propTypes={children:ht.exports.func,accept:ht.exports.objectOf(ht.exports.arrayOf(ht.exports.string)),multiple:ht.exports.bool,preventDropOnDocument:ht.exports.bool,noClick:ht.exports.bool,noKeyboard:ht.exports.bool,noDrag:ht.exports.bool,noDragEventsBubbling:ht.exports.bool,minSize:ht.exports.number,maxSize:ht.exports.number,maxFiles:ht.exports.number,disabled:ht.exports.bool,getFilesFromEvent:ht.exports.func,onFileDialogCancel:ht.exports.func,onFileDialogOpen:ht.exports.func,useFsAccessApi:ht.exports.bool,autoFocus:ht.exports.bool,onDragEnter:ht.exports.func,onDragLeave:ht.exports.func,onDragOver:ht.exports.func,onDrop:ht.exports.func,onDropAccepted:ht.exports.func,onDropRejected:ht.exports.func,onError:ht.exports.func,validator:ht.exports.func};var px={isFocused:!1,isFileDialogActive:!1,isDragActive:!1,isDragAccept:!1,isDragReject:!1,acceptedFiles:[],fileRejections:[]};function t_(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=Dt(Dt({},MM),e),n=t.accept,r=t.disabled,o=t.getFilesFromEvent,i=t.maxSize,s=t.minSize,u=t.multiple,c=t.maxFiles,f=t.onDragEnter,p=t.onDragLeave,h=t.onDragOver,m=t.onDrop,v=t.onDropAccepted,b=t.onDropRejected,x=t.onFileDialogCancel,k=t.onFileDialogOpen,S=t.useFsAccessApi,y=t.autoFocus,w=t.preventDropOnDocument,E=t.noClick,O=t.noKeyboard,N=t.noDrag,D=t.noDragEventsBubbling,V=t.onError,Y=t.validator,j=C.exports.useMemo(function(){return efe(n)},[n]),te=C.exports.useMemo(function(){return Jce(n)},[n]),Se=C.exports.useMemo(function(){return typeof k=="function"?k:GA},[k]),ke=C.exports.useMemo(function(){return typeof x=="function"?x:GA},[x]),xe=C.exports.useRef(null),_e=C.exports.useRef(null),ge=C.exports.useReducer(mfe,px),Pe=Qy(ge,2),W=Pe[0],X=Pe[1],q=W.isFocused,I=W.isFileDialogActive,H=C.exports.useRef(typeof window<"u"&&window.isSecureContext&&S&&Qce()),ae=function(){!H.current&&I&&setTimeout(function(){if(_e.current){var we=_e.current.files;we.length||(X({type:"closeDialog"}),ke())}},300)};C.exports.useEffect(function(){return window.addEventListener("focus",ae,!1),function(){window.removeEventListener("focus",ae,!1)}},[_e,I,ke,H]);var se=C.exports.useRef([]),pe=function(we){xe.current&&xe.current.contains(we.target)||(we.preventDefault(),se.current=[])};C.exports.useEffect(function(){return w&&(document.addEventListener("dragover",UA,!1),document.addEventListener("drop",pe,!1)),function(){w&&(document.removeEventListener("dragover",UA),document.removeEventListener("drop",pe))}},[xe,w]),C.exports.useEffect(function(){return!r&&y&&xe.current&&xe.current.focus(),function(){}},[xe,y,r]);var me=C.exports.useCallback(function(le){V?V(le):console.error(le)},[V]),Ee=C.exports.useCallback(function(le){le.preventDefault(),le.persist(),bt(le),se.current=[].concat(sfe(se.current),[le.target]),Jp(le)&&Promise.resolve(o(le)).then(function(we){if(!(Vm(le)&&!D)){var at=we.length,nt=at>0&&Kce({files:we,accept:j,minSize:s,maxSize:i,multiple:u,maxFiles:c,validator:Y}),ne=at>0&&!nt;X({isDragAccept:nt,isDragReject:ne,isDragActive:!0,type:"setDraggedFiles"}),f&&f(le)}}).catch(function(we){return me(we)})},[o,f,me,D,j,s,i,u,c,Y]),ue=C.exports.useCallback(function(le){le.preventDefault(),le.persist(),bt(le);var we=Jp(le);if(we&&le.dataTransfer)try{le.dataTransfer.dropEffect="copy"}catch{}return we&&h&&h(le),!1},[h,D]),Ae=C.exports.useCallback(function(le){le.preventDefault(),le.persist(),bt(le);var we=se.current.filter(function(nt){return xe.current&&xe.current.contains(nt)}),at=we.indexOf(le.target);at!==-1&&we.splice(at,1),se.current=we,!(we.length>0)&&(X({type:"setDraggedFiles",isDragActive:!1,isDragAccept:!1,isDragReject:!1}),Jp(le)&&p&&p(le))},[xe,p,D]),Ne=C.exports.useCallback(function(le,we){var at=[],nt=[];le.forEach(function(ne){var Ve=AM(ne,j),xt=Qy(Ve,2),mn=xt[0],Pn=xt[1],gr=TM(ne,s,i),To=Qy(gr,2),ii=To[0],Ln=To[1],$r=Y?Y(ne):null;if(mn&&ii&&!$r)at.push(ne);else{var Wa=[Pn,Ln];$r&&(Wa=Wa.concat($r)),nt.push({file:ne,errors:Wa.filter(function(Vs){return Vs})})}}),(!u&&at.length>1||u&&c>=1&&at.length>c)&&(at.forEach(function(ne){nt.push({file:ne,errors:[qce]})}),at.splice(0)),X({acceptedFiles:at,fileRejections:nt,type:"setFiles"}),m&&m(at,nt,we),nt.length>0&&b&&b(nt,we),at.length>0&&v&&v(at,we)},[X,u,j,s,i,c,m,v,b,Y]),mt=C.exports.useCallback(function(le){le.preventDefault(),le.persist(),bt(le),se.current=[],Jp(le)&&Promise.resolve(o(le)).then(function(we){Vm(le)&&!D||Ne(we,le)}).catch(function(we){return me(we)}),X({type:"reset"})},[o,Ne,me,D]),It=C.exports.useCallback(function(){if(H.current){X({type:"openDialog"}),Se();var le={multiple:u,types:te};window.showOpenFilePicker(le).then(function(we){return o(we)}).then(function(we){Ne(we,null),X({type:"closeDialog"})}).catch(function(we){tfe(we)?(ke(we),X({type:"closeDialog"})):nfe(we)?(H.current=!1,_e.current?(_e.current.value=null,_e.current.click()):me(new Error("Cannot open the file picker because the https://developer.mozilla.org/en-US/docs/Web/API/File_System_Access_API is not supported and no was provided."))):me(we)});return}_e.current&&(X({type:"openDialog"}),Se(),_e.current.value=null,_e.current.click())},[X,Se,ke,S,Ne,me,te,u]),En=C.exports.useCallback(function(le){!xe.current||!xe.current.isEqualNode(le.target)||(le.key===" "||le.key==="Enter"||le.keyCode===32||le.keyCode===13)&&(le.preventDefault(),It())},[xe,It]),ve=C.exports.useCallback(function(){X({type:"focus"})},[]),Mt=C.exports.useCallback(function(){X({type:"blur"})},[]),Zt=C.exports.useCallback(function(){E||(Zce()?setTimeout(It,0):It())},[E,It]),it=function(we){return r?null:we},hr=function(we){return O?null:it(we)},mr=function(we){return N?null:it(we)},bt=function(we){D&&we.stopPropagation()},_t=C.exports.useMemo(function(){return function(){var le=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},we=le.refKey,at=we===void 0?"ref":we,nt=le.role,ne=le.onKeyDown,Ve=le.onFocus,xt=le.onBlur,mn=le.onClick,Pn=le.onDragEnter,gr=le.onDragOver,To=le.onDragLeave,ii=le.onDrop,Ln=jm(le,ife);return Dt(Dt(dx({onKeyDown:hr(Fo(ne,En)),onFocus:hr(Fo(Ve,ve)),onBlur:hr(Fo(xt,Mt)),onClick:it(Fo(mn,Zt)),onDragEnter:mr(Fo(Pn,Ee)),onDragOver:mr(Fo(gr,ue)),onDragLeave:mr(Fo(To,Ae)),onDrop:mr(Fo(ii,mt)),role:typeof nt=="string"&&nt!==""?nt:"presentation"},at,xe),!r&&!O?{tabIndex:0}:{}),Ln)}},[xe,En,ve,Mt,Zt,Ee,ue,Ae,mt,O,N,r]),Qt=C.exports.useCallback(function(le){le.stopPropagation()},[]),zt=C.exports.useMemo(function(){return function(){var le=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},we=le.refKey,at=we===void 0?"ref":we,nt=le.onChange,ne=le.onClick,Ve=jm(le,afe),xt=dx({accept:j,multiple:u,type:"file",style:{display:"none"},onChange:it(Fo(nt,mt)),onClick:it(Fo(ne,Qt)),tabIndex:-1},at,_e);return Dt(Dt({},xt),Ve)}},[_e,n,u,mt,r]);return Dt(Dt({},W),{},{isFocused:q&&!r,getRootProps:_t,getInputProps:zt,rootRef:xe,inputRef:_e,open:it(It)})}function mfe(e,t){switch(t.type){case"focus":return Dt(Dt({},e),{},{isFocused:!0});case"blur":return Dt(Dt({},e),{},{isFocused:!1});case"openDialog":return Dt(Dt({},px),{},{isFileDialogActive:!0});case"closeDialog":return Dt(Dt({},e),{},{isFileDialogActive:!1});case"setDraggedFiles":return Dt(Dt({},e),{},{isDragActive:t.isDragActive,isDragAccept:t.isDragAccept,isDragReject:t.isDragReject});case"setFiles":return Dt(Dt({},e),{},{acceptedFiles:t.acceptedFiles,fileRejections:t.fileRejections});case"reset":return Dt({},px);default:return e}}function GA(){}const gfe=({children:e})=>{const t=hn(),n=S4(),r=C.exports.useCallback((c,f)=>{f.forEach(p=>{const h=p.errors.reduce((m,v)=>m+` +`+v.message,"");n({title:"Upload failed",description:h,status:"error",isClosable:!0})}),c.forEach(p=>{t(Ble(p))})},[t,n]),{getRootProps:o,getInputProps:i,open:s}=t_({onDrop:r,accept:{"image/jpeg":[".jpg",".jpeg",".png"]}}),u=c=>{c.stopPropagation(),s()};return ce("div",{...o(),children:[P("input",{...i({multiple:!1})}),C.exports.cloneElement(e,{onClick:u})]})};const vfe=Xt(e=>e.sd,e=>({initialImagePath:e.initialImagePath,maskPath:e.maskPath}),{memoizeOptions:{resultEqualityCheck:nn.exports.isEqual}}),yfe=()=>{const e=S4(),t=hn(),{initialImagePath:n,maskPath:r}=Pt(vfe),o=C.exports.useCallback((k,S)=>{S.forEach(y=>{const w=y.errors.reduce((E,O)=>E+` +`+O.message,"");e({title:"Upload failed",description:w,status:"error",isClosable:!0})}),k.forEach(y=>{t($le(y))})},[t,e]),{getRootProps:i,getInputProps:s,open:u}=t_({onDrop:o,accept:{"image/jpeg":[".jpg",".jpeg",".png"]}}),[c,f]=C.exports.useState(!1),p=k=>{k.stopPropagation(),u()},h=k=>{k.stopPropagation(),t(Kw("")),t(W4(""))},m=()=>f(!1),v=()=>f(!0),b=()=>f(!0),x=()=>f(!0);return ce(qe,{...i({onClick:n?k=>k.stopPropagation():void 0}),direction:"column",alignItems:"center",gap:2,children:[P("input",{...s({multiple:!1})}),ce(qe,{gap:2,justifyContent:"space-between",width:"100%",children:[P(su,{size:"sm",fontSize:"md",fontWeight:"normal",onClick:p,onMouseOver:m,onMouseOut:v,children:"Upload Image"}),P(gfe,{children:P(su,{size:"sm",fontSize:"md",fontWeight:"normal",onClick:p,onMouseOver:b,onMouseOut:x,children:"Upload Mask"})}),P(Zr,{size:"sm","aria-label":"Reset initial image and mask",onClick:h,icon:P(wM,{})})]}),n&&ce(qe,{position:"relative",width:"100%",children:[P(kf,{fit:"contain",src:n,rounded:"md",className:"checkerboard"}),c&&r&&P(kf,{position:"absolute",top:0,left:0,fit:"contain",src:r,rounded:"md",zIndex:1,className:"checkerboard"})]})]})},bfe=Xt(e=>e.sd,e=>({initialImagePath:e.initialImagePath,img2imgStrength:e.img2imgStrength,shouldFitToWidthHeight:e.shouldFitToWidthHeight})),xfe=()=>{const{initialImagePath:e,img2imgStrength:t,shouldFitToWidthHeight:n}=Pt(bfe),r=hn();return ce(qe,{direction:"column",gap:2,children:[P(Ho,{isDisabled:!e,label:"Strength",step:.01,min:0,max:1,onChange:o=>r(ose(Number(o))),value:t}),P($m,{isDisabled:!e,label:"Fit initial image to output size",isChecked:n,onChange:o=>r(cse(o.target.checked))}),P(yfe,{})]})},Sfe=Xt(e=>e.sd,e=>({initialImagePath:e.initialImagePath,shouldUseInitImage:e.shouldUseInitImage,shouldRunESRGAN:e.shouldRunESRGAN,shouldRunGFPGAN:e.shouldRunGFPGAN}),{memoizeOptions:{resultEqualityCheck:nn.exports.isEqual}}),wfe=Xt(e=>e.system,e=>({isGFPGANAvailable:e.isGFPGANAvailable,isESRGANAvailable:e.isESRGANAvailable,openAccordions:e.openAccordions}),{memoizeOptions:{resultEqualityCheck:nn.exports.isEqual}}),_fe=()=>{const{shouldRunESRGAN:e,shouldRunGFPGAN:t,shouldUseInitImage:n,initialImagePath:r}=Pt(Sfe),{isGFPGANAvailable:o,isESRGANAvailable:i,openAccordions:s}=Pt(wfe),u=hn();return ce(m3,{defaultIndex:s,allowMultiple:!0,reduceMotion:!0,onChange:c=>u(jse(c)),children:[ce(is,{children:[P("h2",{children:ce(rs,{children:[P(xs,{flex:"1",textAlign:"left",children:"Seed & Variation"}),P(os,{})]})}),P(as,{children:P(dce,{})})]}),ce(is,{children:[P("h2",{children:ce(rs,{children:[P(xs,{flex:"1",textAlign:"left",children:"Sampler"}),P(os,{})]})}),P(as,{children:P(hce,{})})]}),ce(is,{children:[P("h2",{children:ce(rs,{children:[ce(qe,{justifyContent:"space-between",alignItems:"center",width:"100%",mr:2,children:[P(Lt,{children:"Upscale (ESRGAN)"}),P(ws,{isDisabled:!i,isChecked:e,onChange:c=>u(gse(c.target.checked))})]}),P(os,{})]})}),P(as,{children:P(vce,{})})]}),ce(is,{children:[P("h2",{children:ce(rs,{children:[ce(qe,{justifyContent:"space-between",alignItems:"center",width:"100%",mr:2,children:[P(Lt,{children:"Fix Faces (GFPGAN)"}),P(ws,{isDisabled:!o,isChecked:t,onChange:c=>u(mse(c.target.checked))})]}),P(os,{})]})}),P(as,{children:P(xce,{})})]}),ce(is,{children:[P("h2",{children:ce(rs,{children:[ce(qe,{justifyContent:"space-between",alignItems:"center",width:"100%",mr:2,children:[P(Lt,{children:"Image to Image"}),P(ws,{isDisabled:!r,isChecked:n,onChange:c=>u(lse(c.target.checked))})]}),P(os,{})]})}),P(as,{children:P(xfe,{})})]}),ce(is,{children:[P("h2",{children:ce(rs,{children:[P(xs,{flex:"1",textAlign:"left",children:"Output"}),P(os,{})]})}),P(as,{children:P(wce,{})})]})]})},Cfe=()=>{const e=hn();return C.exports.useEffect(()=>{e(Fle())},[e]),ce(fr,{children:[ce(rw,{width:"100vw",height:"100vh",templateAreas:` + "header header header header" + "progressBar progressBar progressBar progressBar" + "menu prompt processButtons imageRoll" + "menu currentImage currentImage imageRoll"`,gridTemplateRows:"36px 10px 100px auto",gridTemplateColumns:"350px auto 100px 388px",gap:2,children:[P(la,{area:"header",pt:1,children:P(cce,{})}),P(la,{area:"progressBar",children:P(Zue,{})}),P(la,{pl:"2",area:"menu",overflowY:"scroll",children:P(_fe,{})}),P(la,{area:"prompt",children:P(Yue,{})}),P(la,{area:"processButtons",children:P(nce,{})}),P(la,{area:"currentImage",children:P(Hue,{})}),P(la,{pr:"2",area:"imageRoll",overflowY:"scroll",children:P(oce,{})})]}),P(Kue,{})]})},qA=Oie({config:{initialColorMode:"dark",useSystemColorMode:!1},components:{Tooltip:{baseStyle:e=>({textColor:e.colorMode==="dark"?"gray.800":"gray.100"})},Accordion:{baseStyle:e=>({button:{fontWeight:"bold",_hover:{bgColor:e.colorMode==="dark"?"rgba(255,255,255,0.05)":"rgba(0,0,0,0.05)"}},panel:{paddingBottom:2}})},FormLabel:{baseStyle:{fontWeight:"light"}}}}),kfe=()=>P(qe,{width:"100vw",height:"100vh",alignItems:"center",justifyContent:"center",children:P(Fg,{thickness:"2px",speed:"1s",emptyColor:"gray.200",color:"gray.400",size:"xl"})}),NM=Mae(uM);Jy.createRoot(document.getElementById("root")).render(P(ee.StrictMode,{children:P(Sue,{store:uM,children:P(bM,{loading:P(kfe,{}),persistor:NM,children:ce(Tie,{theme:qA,children:[P(U8,{initialColorMode:qA.config.initialColorMode}),P(Cfe,{})]})})})})); diff --git a/frontend/dist/assets/index.cc5cde43.js b/frontend/dist/assets/index.cc5cde43.js deleted file mode 100644 index ae1796b519..0000000000 --- a/frontend/dist/assets/index.cc5cde43.js +++ /dev/null @@ -1,695 +0,0 @@ -function VV(e,t){for(var r=0;ri[s]})}}}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 s of document.querySelectorAll('link[rel="modulepreload"]'))i(s);new MutationObserver(s=>{for(const c of s)if(c.type==="childList")for(const u of c.addedNodes)u.tagName==="LINK"&&u.rel==="modulepreload"&&i(u)}).observe(document,{childList:!0,subtree:!0});function r(s){const c={};return s.integrity&&(c.integrity=s.integrity),s.referrerpolicy&&(c.referrerPolicy=s.referrerpolicy),s.crossorigin==="use-credentials"?c.credentials="include":s.crossorigin==="anonymous"?c.credentials="omit":c.credentials="same-origin",c}function i(s){if(s.ep)return;s.ep=!0;const c=r(s);fetch(s.href,c)}})();var lc=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function HV(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var D={exports:{}},TO={exports:{}};/** - * @license React - * react.development.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. - */(function(e,t){(function(){typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error);var r="18.2.0",i=Symbol.for("react.element"),s=Symbol.for("react.portal"),c=Symbol.for("react.fragment"),u=Symbol.for("react.strict_mode"),h=Symbol.for("react.profiler"),m=Symbol.for("react.provider"),v=Symbol.for("react.context"),b=Symbol.for("react.forward_ref"),x=Symbol.for("react.suspense"),C=Symbol.for("react.suspense_list"),_=Symbol.for("react.memo"),R=Symbol.for("react.lazy"),A=Symbol.for("react.offscreen"),M=Symbol.iterator,j="@@iterator";function I(S){if(S===null||typeof S!="object")return null;var N=M&&S[M]||S[j];return typeof N=="function"?N:null}var z={current:null},B={transition:null},$={current:null,isBatchingLegacy:!1,didScheduleLegacyUpdate:!1},K={current:null},X={},de=null;function ve(S){de=S}X.setExtraStackFrame=function(S){de=S},X.getCurrentStack=null,X.getStackAddendum=function(){var S="";de&&(S+=de);var N=X.getCurrentStack;return N&&(S+=N()||""),S};var se=!1,be=!1,Xe=!1,ie=!1,ce=!1,Re={ReactCurrentDispatcher:z,ReactCurrentBatchConfig:B,ReactCurrentOwner:K};Re.ReactDebugCurrentFrame=X,Re.ReactCurrentActQueue=$;function Ce(S){{for(var N=arguments.length,V=new Array(N>1?N-1:0),G=1;G1?N-1:0),G=1;G1){for(var Nt=Array(gt),pt=0;pt1){for(var Lt=Array(pt),wt=0;wt is not supported and will be removed in a future major release. Did you mean to render instead?")),N.Provider},set:function(xe){N.Provider=xe}},_currentValue:{get:function(){return N._currentValue},set:function(xe){N._currentValue=xe}},_currentValue2:{get:function(){return N._currentValue2},set:function(xe){N._currentValue2=xe}},_threadCount:{get:function(){return N._threadCount},set:function(xe){N._threadCount=xe}},Consumer:{get:function(){return V||(V=!0,oe("Rendering is not supported and will be removed in a future major release. Did you mean to render instead?")),N.Consumer}},displayName:{get:function(){return N.displayName},set:function(xe){te||(Ce("Setting `displayName` on Context.Consumer has no effect. You should set it directly on the context with Context.displayName = '%s'.",xe),te=!0)}}}),N.Consumer=Fe}return N._currentRenderer=null,N._currentRenderer2=null,N}var cr=-1,Aa=0,Di=1,ka=2;function q(S){if(S._status===cr){var N=S._result,V=N();if(V.then(function(Fe){if(S._status===Aa||S._status===cr){var xe=S;xe._status=Di,xe._result=Fe}},function(Fe){if(S._status===Aa||S._status===cr){var xe=S;xe._status=ka,xe._result=Fe}}),S._status===cr){var G=S;G._status=Aa,G._result=V}}if(S._status===Di){var te=S._result;return te===void 0&&oe(`lazy: Expected the result of a dynamic import() call. Instead received: %s - -Your code should look like: - const MyComponent = lazy(() => import('./MyComponent')) - -Did you accidentally put curly braces around the import?`,te),"default"in te||oe(`lazy: Expected the result of a dynamic import() call. Instead received: %s - -Your code should look like: - const MyComponent = lazy(() => import('./MyComponent'))`,te),te.default}else throw S._result}function Be(S){var N={_status:cr,_result:S},V={$$typeof:R,_payload:N,_init:q};{var G,te;Object.defineProperties(V,{defaultProps:{configurable:!0,get:function(){return G},set:function(Fe){oe("React.lazy(...): It is not supported to assign `defaultProps` to a lazy component import. Either specify them where the component is defined, or create a wrapping component around it."),G=Fe,Object.defineProperty(V,"defaultProps",{enumerable:!0})}},propTypes:{configurable:!0,get:function(){return te},set:function(Fe){oe("React.lazy(...): It is not supported to assign `propTypes` to a lazy component import. Either specify them where the component is defined, or create a wrapping component around it."),te=Fe,Object.defineProperty(V,"propTypes",{enumerable:!0})}}})}return V}function qe(S){S!=null&&S.$$typeof===_?oe("forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...))."):typeof S!="function"?oe("forwardRef requires a render function but was given %s.",S===null?"null":typeof S):S.length!==0&&S.length!==2&&oe("forwardRef render functions accept exactly two parameters: props and ref. %s",S.length===1?"Did you forget to use the ref parameter?":"Any additional parameter will be undefined."),S!=null&&(S.defaultProps!=null||S.propTypes!=null)&&oe("forwardRef render functions do not support propTypes or defaultProps. Did you accidentally pass a React component?");var N={$$typeof:b,render:S};{var V;Object.defineProperty(N,"displayName",{enumerable:!1,configurable:!0,get:function(){return V},set:function(G){V=G,!S.name&&!S.displayName&&(S.displayName=G)}})}return N}var bt;bt=Symbol.for("react.module.reference");function nn(S){return!!(typeof S=="string"||typeof S=="function"||S===c||S===h||ce||S===u||S===x||S===C||ie||S===A||se||be||Xe||typeof S=="object"&&S!==null&&(S.$$typeof===R||S.$$typeof===_||S.$$typeof===m||S.$$typeof===v||S.$$typeof===b||S.$$typeof===bt||S.getModuleId!==void 0))}function gn(S,N){nn(S)||oe("memo: The first argument must be a component. Instead received: %s",S===null?"null":typeof S);var V={$$typeof:_,type:S,compare:N===void 0?null:N};{var G;Object.defineProperty(V,"displayName",{enumerable:!1,configurable:!0,get:function(){return G},set:function(te){G=te,!S.name&&!S.displayName&&(S.displayName=te)}})}return V}function tt(){var S=z.current;return S===null&&oe(`Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons: -1. You might have mismatching versions of React and the renderer (such as React DOM) -2. You might be breaking the Rules of Hooks -3. You might have more than one copy of React in the same app -See https://reactjs.org/link/invalid-hook-call for tips about how to debug and fix this problem.`),S}function $t(S){var N=tt();if(S._context!==void 0){var V=S._context;V.Consumer===S?oe("Calling useContext(Context.Consumer) is not supported, may cause bugs, and will be removed in a future major release. Did you mean to call useContext(Context) instead?"):V.Provider===S&&oe("Calling useContext(Context.Provider) is not supported. Did you mean to call useContext(Context) instead?")}return N.useContext(S)}function zn(S){var N=tt();return N.useState(S)}function Mn(S,N,V){var G=tt();return G.useReducer(S,N,V)}function an(S){var N=tt();return N.useRef(S)}function Lr(S,N){var V=tt();return V.useEffect(S,N)}function ci(S,N){var V=tt();return V.useInsertionEffect(S,N)}function Eo(S,N){var V=tt();return V.useLayoutEffect(S,N)}function da(S,N){var V=tt();return V.useCallback(S,N)}function Ji(S,N){var V=tt();return V.useMemo(S,N)}function bu(S,N,V){var G=tt();return G.useImperativeHandle(S,N,V)}function fi(S,N){{var V=tt();return V.useDebugValue(S,N)}}function Bs(){var S=tt();return S.useTransition()}function Pi(S){var N=tt();return N.useDeferredValue(S)}function Zt(){var S=tt();return S.useId()}function Mi(S,N,V){var G=tt();return G.useSyncExternalStore(S,N,V)}var pa=0,To,ns,No,rs,as,Ro,Oo;function is(){}is.__reactDisabledLog=!0;function Us(){{if(pa===0){To=console.log,ns=console.info,No=console.warn,rs=console.error,as=console.group,Ro=console.groupCollapsed,Oo=console.groupEnd;var S={configurable:!0,enumerable:!0,value:is,writable:!0};Object.defineProperties(console,{info:S,log:S,warn:S,error:S,group:S,groupCollapsed:S,groupEnd:S})}pa++}}function js(){{if(pa--,pa===0){var S={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:Ie({},S,{value:To}),info:Ie({},S,{value:ns}),warn:Ie({},S,{value:No}),error:Ie({},S,{value:rs}),group:Ie({},S,{value:as}),groupCollapsed:Ie({},S,{value:Ro}),groupEnd:Ie({},S,{value:Oo})})}pa<0&&oe("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var di=Re.ReactCurrentDispatcher,kr;function Da(S,N,V){{if(kr===void 0)try{throw Error()}catch(te){var G=te.stack.trim().match(/\n( *(at )?)/);kr=G&&G[1]||""}return` -`+kr+S}}var ha=!1,Pa;{var os=typeof WeakMap=="function"?WeakMap:Map;Pa=new os}function Ao(S,N){if(!S||ha)return"";{var V=Pa.get(S);if(V!==void 0)return V}var G;ha=!0;var te=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var Fe;Fe=di.current,di.current=null,Us();try{if(N){var xe=function(){throw Error()};if(Object.defineProperty(xe.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(xe,[])}catch(Dt){G=Dt}Reflect.construct(S,[],xe)}else{try{xe.call()}catch(Dt){G=Dt}S.call(xe.prototype)}}else{try{throw Error()}catch(Dt){G=Dt}S()}}catch(Dt){if(Dt&&G&&typeof Dt.stack=="string"){for(var $e=Dt.stack.split(` -`),it=G.stack.split(` -`),gt=$e.length-1,Nt=it.length-1;gt>=1&&Nt>=0&&$e[gt]!==it[Nt];)Nt--;for(;gt>=1&&Nt>=0;gt--,Nt--)if($e[gt]!==it[Nt]){if(gt!==1||Nt!==1)do if(gt--,Nt--,Nt<0||$e[gt]!==it[Nt]){var pt=` -`+$e[gt].replace(" at new "," at ");return S.displayName&&pt.includes("")&&(pt=pt.replace("",S.displayName)),typeof S=="function"&&Pa.set(S,pt),pt}while(gt>=1&&Nt>=0);break}}}finally{ha=!1,di.current=Fe,js(),Error.prepareStackTrace=te}var Lt=S?S.displayName||S.name:"",wt=Lt?Da(Lt):"";return typeof S=="function"&&Pa.set(S,wt),wt}function ss(S,N,V){return Ao(S,!1)}function Al(S){var N=S.prototype;return!!(N&&N.isReactComponent)}function ma(S,N,V){if(S==null)return"";if(typeof S=="function")return Ao(S,Al(S));if(typeof S=="string")return Da(S);switch(S){case x:return Da("Suspense");case C:return Da("SuspenseList")}if(typeof S=="object")switch(S.$$typeof){case b:return ss(S.render);case _:return ma(S.type,N,V);case R:{var G=S,te=G._payload,Fe=G._init;try{return ma(Fe(te),N,V)}catch{}}}return""}var ko={},Ma=Re.ReactDebugCurrentFrame;function pi(S){if(S){var N=S._owner,V=ma(S.type,S._source,N?N.type:null);Ma.setExtraStackFrame(V)}else Ma.setExtraStackFrame(null)}function $s(S,N,V,G,te){{var Fe=Function.call.bind(fn);for(var xe in S)if(Fe(S,xe)){var $e=void 0;try{if(typeof S[xe]!="function"){var it=Error((G||"React class")+": "+V+" type `"+xe+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof S[xe]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw it.name="Invariant Violation",it}$e=S[xe](N,xe,G,V,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(gt){$e=gt}$e&&!($e instanceof Error)&&(pi(te),oe("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",G||"React class",V,xe,typeof $e),pi(null)),$e instanceof Error&&!($e.message in ko)&&(ko[$e.message]=!0,pi(te),oe("Failed %s type: %s",V,$e.message),pi(null))}}}function on(S){if(S){var N=S._owner,V=ma(S.type,S._source,N?N.type:null);ve(V)}else ve(null)}var hi;hi=!1;function Do(){if(K.current){var S=Bt(K.current.type);if(S)return` - -Check the render method of \``+S+"`."}return""}function It(S){if(S!==void 0){var N=S.fileName.replace(/^.*[\\\/]/,""),V=S.lineNumber;return` - -Check your code at `+N+":"+V+"."}return""}function Vs(S){return S!=null?It(S.__source):""}var gr={};function Ii(S){var N=Do();if(!N){var V=typeof S=="string"?S:S.displayName||S.name;V&&(N=` - -Check the top-level render call using <`+V+">.")}return N}function $a(S,N){if(!(!S._store||S._store.validated||S.key!=null)){S._store.validated=!0;var V=Ii(N);if(!gr[V]){gr[V]=!0;var G="";S&&S._owner&&S._owner!==K.current&&(G=" It was passed a child from "+Bt(S._owner.type)+"."),on(S),oe('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',V,G),on(null)}}}function eo(S,N){if(typeof S=="object"){if(Yt(S))for(var V=0;V",te=" Did you accidentally export a JSX literal instead of a component?"):xe=typeof S,oe("React.createElement: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",xe,te)}var $e=rt.apply(this,arguments);if($e==null)return $e;if(G)for(var it=2;it10&&Ce("Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table."),G._updatedFibers.clear()}}}var to=!1,mi=null;function Hs(S){if(mi===null)try{var N=("require"+Math.random()).slice(0,7),V=e&&e[N];mi=V.call(e,"timers").setImmediate}catch{mi=function(te){to===!1&&(to=!0,typeof MessageChannel>"u"&&oe("This browser does not have a MessageChannel implementation, so enqueuing tasks via await act(async () => ...) will fail. Please file an issue at https://github.com/facebook/react/issues if you encounter this warning."));var Fe=new MessageChannel;Fe.port1.onmessage=te,Fe.port2.postMessage(void 0)}}return mi(S)}var pn=0,Dn=!1;function kl(S){{var N=pn;pn++,$.current===null&&($.current=[]);var V=$.isBatchingLegacy,G;try{if($.isBatchingLegacy=!0,G=S(),!V&&$.didScheduleLegacyUpdate){var te=$.current;te!==null&&($.didScheduleLegacyUpdate=!1,fe(te))}}catch(Lt){throw Ia(N),Lt}finally{$.isBatchingLegacy=V}if(G!==null&&typeof G=="object"&&typeof G.then=="function"){var Fe=G,xe=!1,$e={then:function(Lt,wt){xe=!0,Fe.then(function(Dt){Ia(N),pn===0?W(Dt,Lt,wt):Lt(Dt)},function(Dt){Ia(N),wt(Dt)})}};return!Dn&&typeof Promise<"u"&&Promise.resolve().then(function(){}).then(function(){xe||(Dn=!0,oe("You called act(async () => ...) without await. This could lead to unexpected testing behaviour, interleaving multiple act calls and mixing their scopes. You should - await act(async () => ...);"))}),$e}else{var it=G;if(Ia(N),pn===0){var gt=$.current;gt!==null&&(fe(gt),$.current=null);var Nt={then:function(Lt,wt){$.current===null?($.current=[],W(it,Lt,wt)):Lt(it)}};return Nt}else{var pt={then:function(Lt,wt){Lt(it)}};return pt}}}}function Ia(S){S!==pn-1&&oe("You seem to have overlapping act() calls, this is not supported. Be sure to await previous act() calls before making a new one. "),pn=S}function W(S,N,V){{var G=$.current;if(G!==null)try{fe(G),Hs(function(){G.length===0?($.current=null,N(S)):W(S,N,V)})}catch(te){V(te)}else N(S)}}var Q=!1;function fe(S){if(!Q){Q=!0;var N=0;try{for(;N0;){var Xt=dn-1>>>1,wn=je[Xt];if(v(wn,rt)>0)je[Xt]=rt,je[dn]=wn,dn=Xt;else return}}function m(je,rt,xt){for(var dn=xt,Xt=je.length,wn=Xt>>>1;dnxt&&(!je||ir()));){var dn=ie.callback;if(typeof dn=="function"){ie.callback=null,ce=ie.priorityLevel;var Xt=ie.expirationTime<=xt,wn=dn(Xt);xt=e.unstable_now(),typeof wn=="function"?ie.callback=wn:ie===c(se)&&u(se),we(xt)}else u(se);ie=c(se)}if(ie!==null)return!0;var kn=c(be);return kn!==null&&Tt(Ie,kn.startTime-xt),!1}function st(je,rt){switch(je){case b:case x:case C:case _:case R:break;default:je=C}var xt=ce;ce=je;try{return rt()}finally{ce=xt}}function mt(je){var rt;switch(ce){case b:case x:case C:rt=C;break;default:rt=ce;break}var xt=ce;ce=rt;try{return je()}finally{ce=xt}}function Gt(je){var rt=ce;return function(){var xt=ce;ce=rt;try{return je.apply(this,arguments)}finally{ce=xt}}}function Qe(je,rt,xt){var dn=e.unstable_now(),Xt;if(typeof xt=="object"&&xt!==null){var wn=xt.delay;typeof wn=="number"&&wn>0?Xt=dn+wn:Xt=dn}else Xt=dn;var kn;switch(je){case b:kn=$;break;case x:kn=K;break;case R:kn=ve;break;case _:kn=de;break;case C:default:kn=X;break}var Nr=Xt+kn,Tn={id:Xe++,callback:rt,priorityLevel:je,startTime:Xt,expirationTime:Nr,sortIndex:-1};return Xt>dn?(Tn.sortIndex=Xt,s(be,Tn),c(se)===null&&Tn===c(be)&&(oe?ke():oe=!0,Tt(Ie,Xt-dn))):(Tn.sortIndex=Nr,s(se,Tn),!Ce&&!Re&&(Ce=!0,Jt(Le))),Tn}function vt(){}function Et(){!Ce&&!Re&&(Ce=!0,Jt(Le))}function zt(){return c(se)}function We(je){je.callback=null}function Yt(){return ce}var ye=!1,Mt=null,Kt=-1,St=i,ar=-1;function ir(){var je=e.unstable_now()-ar;return!(je125){console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported");return}je>0?St=Math.floor(1e3/je):St=i}var An=function(){if(Mt!==null){var je=e.unstable_now();ar=je;var rt=!0,xt=!0;try{xt=Mt(rt,je)}finally{xt?hn():(ye=!1,Mt=null)}}else ye=!1},hn;if(typeof pe=="function")hn=function(){pe(An)};else if(typeof MessageChannel<"u"){var Ve=new MessageChannel,Ze=Ve.port2;Ve.port1.onmessage=An,hn=function(){Ze.postMessage(null)}}else hn=function(){Se(An,0)};function Jt(je){Mt=je,ye||(ye=!0,hn())}function Tt(je,rt){Kt=Se(function(){je(e.unstable_now())},rt)}function ke(){Te(Kt),Kt=-1}var jt=Bt,xn=null;e.unstable_IdlePriority=R,e.unstable_ImmediatePriority=b,e.unstable_LowPriority=_,e.unstable_NormalPriority=C,e.unstable_Profiling=xn,e.unstable_UserBlockingPriority=x,e.unstable_cancelCallback=We,e.unstable_continueExecution=Et,e.unstable_forceFrameRate=fn,e.unstable_getCurrentPriorityLevel=Yt,e.unstable_getFirstCallbackNode=zt,e.unstable_next=mt,e.unstable_pauseExecution=vt,e.unstable_requestPaint=jt,e.unstable_runWithPriority=st,e.unstable_scheduleCallback=Qe,e.unstable_shouldYield=ir,e.unstable_wrapCallback=Gt,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error)})()})(mF);(function(e){e.exports=mF})(hF);/** - * @license React - * react-dom.development.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. - */(function(){typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error);var e=D.exports,t=hF.exports,r=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,i=!1;function s(n){i=n}function c(n){if(!i){for(var a=arguments.length,o=new Array(a>1?a-1:0),f=1;f1?a-1:0),f=1;f2&&(n[0]==="o"||n[0]==="O")&&(n[1]==="n"||n[1]==="N")}function Nr(n,a,o,f){if(o!==null&&o.type===Ve)return!1;switch(typeof a){case"function":case"symbol":return!0;case"boolean":{if(f)return!1;if(o!==null)return!o.acceptsBooleans;var p=n.toLowerCase().slice(0,5);return p!=="data-"&&p!=="aria-"}default:return!1}}function Tn(n,a,o,f){if(a===null||typeof a>"u"||Nr(n,a,o,f))return!0;if(f)return!1;if(o!==null)switch(o.type){case Tt:return!a;case ke:return a===!1;case jt:return isNaN(a);case xn:return isNaN(a)||a<1}return!1}function ca(n){return Cn.hasOwnProperty(n)?Cn[n]:null}function Fn(n,a,o,f,p,y,w){this.acceptsBooleans=a===Jt||a===Tt||a===ke,this.attributeName=f,this.attributeNamespace=p,this.mustUseProperty=o,this.propertyName=n,this.type=a,this.sanitizeURL=y,this.removeEmptyString=w}var Cn={},fa=["children","dangerouslySetInnerHTML","defaultValue","defaultChecked","innerHTML","suppressContentEditableWarning","suppressHydrationWarning","style"];fa.forEach(function(n){Cn[n]=new Fn(n,Ve,!1,n,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(n){var a=n[0],o=n[1];Cn[a]=new Fn(a,Ze,!1,o,null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(n){Cn[n]=new Fn(n,Jt,!1,n.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(n){Cn[n]=new Fn(n,Jt,!1,n,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"].forEach(function(n){Cn[n]=new Fn(n,Tt,!1,n.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(n){Cn[n]=new Fn(n,Tt,!0,n,null,!1,!1)}),["capture","download"].forEach(function(n){Cn[n]=new Fn(n,ke,!1,n,null,!1,!1)}),["cols","rows","size","span"].forEach(function(n){Cn[n]=new Fn(n,xn,!1,n,null,!1,!1)}),["rowSpan","start"].forEach(function(n){Cn[n]=new Fn(n,jt,!1,n.toLowerCase(),null,!1,!1)});var vr=/[\-\:]([a-z])/g,wo=function(n){return n[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"].forEach(function(n){var a=n.replace(vr,wo);Cn[a]=new Fn(a,Ze,!1,n,null,!1,!1)}),["xlink:actuate","xlink:arcrole","xlink:role","xlink:show","xlink:title","xlink:type"].forEach(function(n){var a=n.replace(vr,wo);Cn[a]=new Fn(a,Ze,!1,n,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(n){var a=n.replace(vr,wo);Cn[a]=new Fn(a,Ze,!1,n,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(n){Cn[n]=new Fn(n,Ze,!1,n.toLowerCase(),null,!1,!1)});var es="xlinkHref";Cn[es]=new Fn("xlinkHref",Ze,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(n){Cn[n]=new Fn(n,Ze,!1,n.toLowerCase(),null,!0,!0)});var ts=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*\:/i,Co=!1;function _o(n){!Co&&ts.test(n)&&(Co=!0,u("A future version of React will block javascript: URLs as a security precaution. Use event handlers instead if you can. If you need to generate unsafe HTML try using dangerouslySetInnerHTML instead. React was passed %s.",JSON.stringify(n)))}function cr(n,a,o,f){if(f.mustUseProperty){var p=f.propertyName;return n[p]}else{ar(o,a),f.sanitizeURL&&_o(""+o);var y=f.attributeName,w=null;if(f.type===ke){if(n.hasAttribute(y)){var T=n.getAttribute(y);return T===""?!0:Tn(a,o,f,!1)?T:T===""+o?o:T}}else if(n.hasAttribute(y)){if(Tn(a,o,f,!1))return n.getAttribute(y);if(f.type===Tt)return o;w=n.getAttribute(y)}return Tn(a,o,f,!1)?w===null?o:w:w===""+o?o:w}}function Aa(n,a,o,f){{if(!wn(a))return;if(!n.hasAttribute(a))return o===void 0?void 0:null;var p=n.getAttribute(a);return ar(o,a),p===""+o?o:p}}function Di(n,a,o,f){var p=ca(a);if(!kn(a,p,f)){if(Tn(a,o,p,f)&&(o=null),f||p===null){if(wn(a)){var y=a;o===null?n.removeAttribute(y):(ar(o,a),n.setAttribute(y,""+o))}return}var w=p.mustUseProperty;if(w){var T=p.propertyName;if(o===null){var O=p.type;n[T]=O===Tt?!1:""}else n[T]=o;return}var F=p.attributeName,H=p.attributeNamespace;if(o===null)n.removeAttribute(F);else{var ee=p.type,J;ee===Tt||ee===ke&&o===!0?J="":(ar(o,F),J=""+o,p.sanitizeURL&&_o(J.toString())),H?n.setAttributeNS(H,F,J):n.setAttribute(F,J)}}}var ka=Symbol.for("react.element"),q=Symbol.for("react.portal"),Be=Symbol.for("react.fragment"),qe=Symbol.for("react.strict_mode"),bt=Symbol.for("react.profiler"),nn=Symbol.for("react.provider"),gn=Symbol.for("react.context"),tt=Symbol.for("react.forward_ref"),$t=Symbol.for("react.suspense"),zn=Symbol.for("react.suspense_list"),Mn=Symbol.for("react.memo"),an=Symbol.for("react.lazy"),Lr=Symbol.for("react.scope"),ci=Symbol.for("react.debug_trace_mode"),Eo=Symbol.for("react.offscreen"),da=Symbol.for("react.legacy_hidden"),Ji=Symbol.for("react.cache"),bu=Symbol.for("react.tracing_marker"),fi=Symbol.iterator,Bs="@@iterator";function Pi(n){if(n===null||typeof n!="object")return null;var a=fi&&n[fi]||n[Bs];return typeof a=="function"?a:null}var Zt=Object.assign,Mi=0,pa,To,ns,No,rs,as,Ro;function Oo(){}Oo.__reactDisabledLog=!0;function is(){{if(Mi===0){pa=console.log,To=console.info,ns=console.warn,No=console.error,rs=console.group,as=console.groupCollapsed,Ro=console.groupEnd;var n={configurable:!0,enumerable:!0,value:Oo,writable:!0};Object.defineProperties(console,{info:n,log:n,warn:n,error:n,group:n,groupCollapsed:n,groupEnd:n})}Mi++}}function Us(){{if(Mi--,Mi===0){var n={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:Zt({},n,{value:pa}),info:Zt({},n,{value:To}),warn:Zt({},n,{value:ns}),error:Zt({},n,{value:No}),group:Zt({},n,{value:rs}),groupCollapsed:Zt({},n,{value:as}),groupEnd:Zt({},n,{value:Ro})})}Mi<0&&u("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var js=r.ReactCurrentDispatcher,di;function kr(n,a,o){{if(di===void 0)try{throw Error()}catch(p){var f=p.stack.trim().match(/\n( *(at )?)/);di=f&&f[1]||""}return` -`+di+n}}var Da=!1,ha;{var Pa=typeof WeakMap=="function"?WeakMap:Map;ha=new Pa}function os(n,a){if(!n||Da)return"";{var o=ha.get(n);if(o!==void 0)return o}var f;Da=!0;var p=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var y;y=js.current,js.current=null,is();try{if(a){var w=function(){throw Error()};if(Object.defineProperty(w.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(w,[])}catch(me){f=me}Reflect.construct(n,[],w)}else{try{w.call()}catch(me){f=me}n.call(w.prototype)}}else{try{throw Error()}catch(me){f=me}n()}}catch(me){if(me&&f&&typeof me.stack=="string"){for(var T=me.stack.split(` -`),O=f.stack.split(` -`),F=T.length-1,H=O.length-1;F>=1&&H>=0&&T[F]!==O[H];)H--;for(;F>=1&&H>=0;F--,H--)if(T[F]!==O[H]){if(F!==1||H!==1)do if(F--,H--,H<0||T[F]!==O[H]){var ee=` -`+T[F].replace(" at new "," at ");return n.displayName&&ee.includes("")&&(ee=ee.replace("",n.displayName)),typeof n=="function"&&ha.set(n,ee),ee}while(F>=1&&H>=0);break}}}finally{Da=!1,js.current=y,Us(),Error.prepareStackTrace=p}var J=n?n.displayName||n.name:"",he=J?kr(J):"";return typeof n=="function"&&ha.set(n,he),he}function Ao(n,a,o){return os(n,!0)}function ss(n,a,o){return os(n,!1)}function Al(n){var a=n.prototype;return!!(a&&a.isReactComponent)}function ma(n,a,o){if(n==null)return"";if(typeof n=="function")return os(n,Al(n));if(typeof n=="string")return kr(n);switch(n){case $t:return kr("Suspense");case zn:return kr("SuspenseList")}if(typeof n=="object")switch(n.$$typeof){case tt:return ss(n.render);case Mn:return ma(n.type,a,o);case an:{var f=n,p=f._payload,y=f._init;try{return ma(y(p),a,o)}catch{}}}return""}function ko(n){switch(n._debugOwner&&n._debugOwner.type,n._debugSource,n.tag){case _:return kr(n.type);case de:return kr("Lazy");case $:return kr("Suspense");case be:return kr("SuspenseList");case m:case b:case X:return ss(n.type);case z:return ss(n.type.render);case v:return Ao(n.type);default:return""}}function Ma(n){try{var a="",o=n;do a+=ko(o),o=o.return;while(o);return a}catch(f){return` -Error generating stack: `+f.message+` -`+f.stack}}function pi(n,a,o){var f=n.displayName;if(f)return f;var p=a.displayName||a.name||"";return p!==""?o+"("+p+")":o}function $s(n){return n.displayName||"Context"}function on(n){if(n==null)return null;if(typeof n.tag=="number"&&u("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof n=="function")return n.displayName||n.name||null;if(typeof n=="string")return n;switch(n){case Be:return"Fragment";case q:return"Portal";case bt:return"Profiler";case qe:return"StrictMode";case $t:return"Suspense";case zn:return"SuspenseList"}if(typeof n=="object")switch(n.$$typeof){case gn:var a=n;return $s(a)+".Consumer";case nn:var o=n;return $s(o._context)+".Provider";case tt:return pi(n,n.render,"ForwardRef");case Mn:var f=n.displayName||null;return f!==null?f:on(n.type)||"Memo";case an:{var p=n,y=p._payload,w=p._init;try{return on(w(y))}catch{return null}}}return null}function hi(n,a,o){var f=a.displayName||a.name||"";return n.displayName||(f!==""?o+"("+f+")":o)}function Do(n){return n.displayName||"Context"}function It(n){var a=n.tag,o=n.type;switch(a){case Re:return"Cache";case j:var f=o;return Do(f)+".Consumer";case I:var p=o;return Do(p._context)+".Provider";case se:return"DehydratedFragment";case z:return hi(o,o.render,"ForwardRef");case A:return"Fragment";case _:return o;case C:return"Portal";case x:return"Root";case R:return"Text";case de:return on(o);case M:return o===qe?"StrictMode":"Mode";case ie:return"Offscreen";case B:return"Profiler";case Xe:return"Scope";case $:return"Suspense";case be:return"SuspenseList";case Ce:return"TracingMarker";case v:case m:case ve:case b:case K:case X:if(typeof o=="function")return o.displayName||o.name||null;if(typeof o=="string")return o;break}return null}var Vs=r.ReactDebugCurrentFrame,gr=null,Ii=!1;function $a(){{if(gr===null)return null;var n=gr._debugOwner;if(n!==null&&typeof n<"u")return It(n)}return null}function eo(){return gr===null?"":Ma(gr)}function wr(){Vs.getCurrentStack=null,gr=null,Ii=!1}function er(n){Vs.getCurrentStack=n===null?null:eo,gr=n,Ii=!1}function Po(){return gr}function $r(n){Ii=n}function ur(n){return""+n}function Jr(n){switch(typeof n){case"boolean":case"number":case"string":case"undefined":return n;case"object":return hn(n),n;default:return""}}var Su={button:!0,checkbox:!0,image:!0,hidden:!0,radio:!0,reset:!0,submit:!0};function to(n,a){Su[a.type]||a.onChange||a.onInput||a.readOnly||a.disabled||a.value==null||u("You provided a `value` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultValue`. Otherwise, set either `onChange` or `readOnly`."),a.onChange||a.readOnly||a.disabled||a.checked==null||u("You provided a `checked` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultChecked`. Otherwise, set either `onChange` or `readOnly`.")}function mi(n){var a=n.type,o=n.nodeName;return o&&o.toLowerCase()==="input"&&(a==="checkbox"||a==="radio")}function Hs(n){return n._valueTracker}function pn(n){n._valueTracker=null}function Dn(n){var a="";return n&&(mi(n)?a=n.checked?"true":"false":a=n.value),a}function kl(n){var a=mi(n)?"checked":"value",o=Object.getOwnPropertyDescriptor(n.constructor.prototype,a);hn(n[a]);var f=""+n[a];if(!(n.hasOwnProperty(a)||typeof o>"u"||typeof o.get!="function"||typeof o.set!="function")){var p=o.get,y=o.set;Object.defineProperty(n,a,{configurable:!0,get:function(){return p.call(this)},set:function(T){hn(T),f=""+T,y.call(this,T)}}),Object.defineProperty(n,a,{enumerable:o.enumerable});var w={getValue:function(){return f},setValue:function(T){hn(T),f=""+T},stopTracking:function(){pn(n),delete n[a]}};return w}}function Ia(n){Hs(n)||(n._valueTracker=kl(n))}function W(n){if(!n)return!1;var a=Hs(n);if(!a)return!0;var o=a.getValue(),f=Dn(n);return f!==o?(a.setValue(f),!0):!1}function Q(n){if(n=n||(typeof document<"u"?document:void 0),typeof n>"u")return null;try{return n.activeElement||n.body}catch{return n.body}}var fe=!1,at=!1,sn=!1,Pn=!1;function Vt(n){var a=n.type==="checkbox"||n.type==="radio";return a?n.checked!=null:n.value!=null}function S(n,a){var o=n,f=a.checked,p=Zt({},a,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:f??o._wrapperState.initialChecked});return p}function N(n,a){to("input",a),a.checked!==void 0&&a.defaultChecked!==void 0&&!at&&(u("%s contains an input of type %s with both checked and defaultChecked props. Input elements must be either controlled or uncontrolled (specify either the checked prop, or the defaultChecked prop, but not both). Decide between using a controlled or uncontrolled input element and remove one of these props. More info: https://reactjs.org/link/controlled-components",$a()||"A component",a.type),at=!0),a.value!==void 0&&a.defaultValue!==void 0&&!fe&&(u("%s contains an input of type %s with both value and defaultValue props. Input elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled input element and remove one of these props. More info: https://reactjs.org/link/controlled-components",$a()||"A component",a.type),fe=!0);var o=n,f=a.defaultValue==null?"":a.defaultValue;o._wrapperState={initialChecked:a.checked!=null?a.checked:a.defaultChecked,initialValue:Jr(a.value!=null?a.value:f),controlled:Vt(a)}}function V(n,a){var o=n,f=a.checked;f!=null&&Di(o,"checked",f,!1)}function G(n,a){var o=n;{var f=Vt(a);!o._wrapperState.controlled&&f&&!Pn&&(u("A component is changing an uncontrolled input to be controlled. This is likely caused by the value changing from undefined to a defined value, which should not happen. Decide between using a controlled or uncontrolled input element for the lifetime of the component. More info: https://reactjs.org/link/controlled-components"),Pn=!0),o._wrapperState.controlled&&!f&&!sn&&(u("A component is changing a controlled input to be uncontrolled. This is likely caused by the value changing from a defined to undefined, which should not happen. Decide between using a controlled or uncontrolled input element for the lifetime of the component. More info: https://reactjs.org/link/controlled-components"),sn=!0)}V(n,a);var p=Jr(a.value),y=a.type;if(p!=null)y==="number"?(p===0&&o.value===""||o.value!=p)&&(o.value=ur(p)):o.value!==ur(p)&&(o.value=ur(p));else if(y==="submit"||y==="reset"){o.removeAttribute("value");return}a.hasOwnProperty("value")?$e(o,a.type,p):a.hasOwnProperty("defaultValue")&&$e(o,a.type,Jr(a.defaultValue)),a.checked==null&&a.defaultChecked!=null&&(o.defaultChecked=!!a.defaultChecked)}function te(n,a,o){var f=n;if(a.hasOwnProperty("value")||a.hasOwnProperty("defaultValue")){var p=a.type,y=p==="submit"||p==="reset";if(y&&(a.value===void 0||a.value===null))return;var w=ur(f._wrapperState.initialValue);o||w!==f.value&&(f.value=w),f.defaultValue=w}var T=f.name;T!==""&&(f.name=""),f.defaultChecked=!f.defaultChecked,f.defaultChecked=!!f._wrapperState.initialChecked,T!==""&&(f.name=T)}function Fe(n,a){var o=n;G(o,a),xe(o,a)}function xe(n,a){var o=a.name;if(a.type==="radio"&&o!=null){for(var f=n;f.parentNode;)f=f.parentNode;ar(o,"name");for(var p=f.querySelectorAll("input[name="+JSON.stringify(""+o)+'][type="radio"]'),y=0;y.")))}):a.dangerouslySetInnerHTML!=null&&(Nt||(Nt=!0,u("Pass a `value` prop if you set dangerouslyInnerHTML so React knows which value should be selected.")))),a.selected!=null&&!it&&(u("Use the `defaultValue` or `value` props on must be a scalar value if `multiple` is false.%s",o,va())}}}}function Nn(n,a,o,f){var p=n.options;if(a){for(var y=o,w={},T=0;T.");var f=Zt({},a,{value:void 0,defaultValue:void 0,children:ur(o._wrapperState.initialValue)});return f}function cv(n,a){var o=n;to("textarea",a),a.value!==void 0&&a.defaultValue!==void 0&&!Bb&&(u("%s contains a textarea with both value and defaultValue props. Textarea elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled textarea and remove one of these props. More info: https://reactjs.org/link/controlled-components",$a()||"A component"),Bb=!0);var f=a.value;if(f==null){var p=a.children,y=a.defaultValue;if(p!=null){u("Use the `defaultValue` or `value` props instead of setting children on