var D$=Object.defineProperty;var $$=(e,t,n)=>t in e?D$(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var vm=(e,t,n)=>$$(e,typeof t!="symbol"?t+"":t,n);function F$(e,t){for(var n=0;nr[i]})}}}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 i of document.querySelectorAll('link[rel="modulepreload"]'))r(i);new MutationObserver(i=>{for(const o of i)if(o.type==="childList")for(const a of o.addedNodes)a.tagName==="LINK"&&a.rel==="modulepreload"&&r(a)}).observe(document,{childList:!0,subtree:!0});function n(i){const o={};return i.integrity&&(o.integrity=i.integrity),i.referrerPolicy&&(o.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?o.credentials="include":i.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function r(i){if(i.ep)return;i.ep=!0;const o=n(i);fetch(i.href,o)}})();var Av=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function To(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var yb={exports:{}},ym={},xb={exports:{}},Vt={};/** * @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 X5;function B$(){if(X5)return Vt;X5=1;var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),o=Symbol.for("react.provider"),a=Symbol.for("react.context"),l=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),d=Symbol.for("react.memo"),h=Symbol.for("react.lazy"),m=Symbol.iterator;function v(z){return z===null||typeof z!="object"?null:(z=m&&z[m]||z["@@iterator"],typeof z=="function"?z:null)}var y={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},w=Object.assign,C={};function _(z,J,Me){this.props=z,this.context=J,this.refs=C,this.updater=Me||y}_.prototype.isReactComponent={},_.prototype.setState=function(z,J){if(typeof z!="object"&&typeof z!="function"&&z!=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,z,J,"setState")},_.prototype.forceUpdate=function(z){this.updater.enqueueForceUpdate(this,z,"forceUpdate")};function P(){}P.prototype=_.prototype;function T(z,J,Me){this.props=z,this.context=J,this.refs=C,this.updater=Me||y}var A=T.prototype=new P;A.constructor=T,w(A,_.prototype),A.isPureReactComponent=!0;var I=Array.isArray,M=Object.prototype.hasOwnProperty,N={current:null},L={key:!0,ref:!0,__self:!0,__source:!0};function F(z,J,Me){var Pe,we={},je=null,re=null;if(J!=null)for(Pe in J.ref!==void 0&&(re=J.ref),J.key!==void 0&&(je=""+J.key),J)M.call(J,Pe)&&!L.hasOwnProperty(Pe)&&(we[Pe]=J[Pe]);var he=arguments.length-2;if(he===1)we.children=Me;else if(1>>1,J=H[z];if(0>>1;zi(we,X))jei(re,we)?(H[z]=re,H[je]=X,z=je):(H[z]=we,H[Pe]=X,z=Pe);else if(jei(re,X))H[z]=re,H[je]=X,z=je;else break e}}return Z}function i(H,Z){var X=H.sortIndex-Z.sortIndex;return X!==0?X:H.id-Z.id}if(typeof performance=="object"&&typeof performance.now=="function"){var o=performance;e.unstable_now=function(){return o.now()}}else{var a=Date,l=a.now();e.unstable_now=function(){return a.now()-l}}var c=[],d=[],h=1,m=null,v=3,y=!1,w=!1,C=!1,_=typeof setTimeout=="function"?setTimeout:null,P=typeof clearTimeout=="function"?clearTimeout:null,T=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function A(H){for(var Z=n(d);Z!==null;){if(Z.callback===null)r(d);else if(Z.startTime<=H)r(d),Z.sortIndex=Z.expirationTime,t(c,Z);else break;Z=n(d)}}function I(H){if(C=!1,A(H),!w)if(n(c)!==null)w=!0,le(M);else{var Z=n(d);Z!==null&&q(I,Z.startTime-H)}}function M(H,Z){w=!1,C&&(C=!1,P(F),F=-1),y=!0;var X=v;try{for(A(Z),m=n(c);m!==null&&(!(m.expirationTime>Z)||H&&!W());){var z=m.callback;if(typeof z=="function"){m.callback=null,v=m.priorityLevel;var J=z(m.expirationTime<=Z);Z=e.unstable_now(),typeof J=="function"?m.callback=J:m===n(c)&&r(c),A(Z)}else r(c);m=n(c)}if(m!==null)var Me=!0;else{var Pe=n(d);Pe!==null&&q(I,Pe.startTime-Z),Me=!1}return Me}finally{m=null,v=X,y=!1}}var N=!1,L=null,F=-1,B=5,U=-1;function W(){return!(e.unstable_now()-UH||125z?(H.sortIndex=X,t(d,H),n(c)===null&&H===n(d)&&(C?(P(F),F=-1):C=!0,q(I,X-z))):(H.sortIndex=J,t(c,H),w||y||(w=!0,le(M))),H},e.unstable_shouldYield=W,e.unstable_wrapCallback=function(H){var Z=v;return function(){var X=v;v=Z;try{return H.apply(this,arguments)}finally{v=X}}}}(Sb)),Sb}var nO;function W$(){return nO||(nO=1,wb.exports=U$()),wb.exports}/** * @license React * react-dom.production.min.js * * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */var rO;function H$(){if(rO)return Yi;rO=1;var e=Lh(),t=W$();function n(s){for(var u="https://reactjs.org/docs/error-decoder.html?invariant="+s,g=1;g"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),c=Object.prototype.hasOwnProperty,d=/^[: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]*$/,h={},m={};function v(s){return c.call(m,s)?!0:c.call(h,s)?!1:d.test(s)?m[s]=!0:(h[s]=!0,!1)}function y(s,u,g,x){if(g!==null&&g.type===0)return!1;switch(typeof u){case"function":case"symbol":return!0;case"boolean":return x?!1:g!==null?!g.acceptsBooleans:(s=s.toLowerCase().slice(0,5),s!=="data-"&&s!=="aria-");default:return!1}}function w(s,u,g,x){if(u===null||typeof u>"u"||y(s,u,g,x))return!0;if(x)return!1;if(g!==null)switch(g.type){case 3:return!u;case 4:return u===!1;case 5:return isNaN(u);case 6:return isNaN(u)||1>u}return!1}function C(s,u,g,x,E,k,D){this.acceptsBooleans=u===2||u===3||u===4,this.attributeName=x,this.attributeNamespace=E,this.mustUseProperty=g,this.propertyName=s,this.type=u,this.sanitizeURL=k,this.removeEmptyString=D}var _={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(s){_[s]=new C(s,0,!1,s,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(s){var u=s[0];_[u]=new C(u,1,!1,s[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(s){_[s]=new C(s,2,!1,s.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(s){_[s]=new C(s,2,!1,s,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(s){_[s]=new C(s,3,!1,s.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(s){_[s]=new C(s,3,!0,s,null,!1,!1)}),["capture","download"].forEach(function(s){_[s]=new C(s,4,!1,s,null,!1,!1)}),["cols","rows","size","span"].forEach(function(s){_[s]=new C(s,6,!1,s,null,!1,!1)}),["rowSpan","start"].forEach(function(s){_[s]=new C(s,5,!1,s.toLowerCase(),null,!1,!1)});var P=/[\-:]([a-z])/g;function T(s){return s[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(s){var u=s.replace(P,T);_[u]=new C(u,1,!1,s,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(s){var u=s.replace(P,T);_[u]=new C(u,1,!1,s,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(s){var u=s.replace(P,T);_[u]=new C(u,1,!1,s,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(s){_[s]=new C(s,1,!1,s.toLowerCase(),null,!1,!1)}),_.xlinkHref=new C("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(s){_[s]=new C(s,1,!1,s.toLowerCase(),null,!0,!0)});function A(s,u,g,x){var E=_.hasOwnProperty(u)?_[u]:null;(E!==null?E.type!==0:x||!(2K||E[D]!==k[K]){var Q=` `+E[D].replace(" at new "," at ");return s.displayName&&Q.includes("")&&(Q=Q.replace("",s.displayName)),Q}while(1<=D&&0<=K);break}}}finally{Me=!1,Error.prepareStackTrace=g}return(s=s?s.displayName||s.name:"")?J(s):""}function we(s){switch(s.tag){case 5:return J(s.type);case 16:return J("Lazy");case 13:return J("Suspense");case 19:return J("SuspenseList");case 0:case 2:case 15:return s=Pe(s.type,!1),s;case 11:return s=Pe(s.type.render,!1),s;case 1:return s=Pe(s.type,!0),s;default:return""}}function je(s){if(s==null)return null;if(typeof s=="function")return s.displayName||s.name||null;if(typeof s=="string")return s;switch(s){case L:return"Fragment";case N:return"Portal";case B:return"Profiler";case F:return"StrictMode";case ie:return"Suspense";case te:return"SuspenseList"}if(typeof s=="object")switch(s.$$typeof){case W:return(s.displayName||"Context")+".Consumer";case U:return(s._context.displayName||"Context")+".Provider";case G:var u=s.render;return s=s.displayName,s||(s=u.displayName||u.name||"",s=s!==""?"ForwardRef("+s+")":"ForwardRef"),s;case se:return u=s.displayName||null,u!==null?u:je(s.type)||"Memo";case le:u=s._payload,s=s._init;try{return je(s(u))}catch{}}return null}function re(s){var u=s.type;switch(s.tag){case 24:return"Cache";case 9:return(u.displayName||"Context")+".Consumer";case 10:return(u._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return s=u.render,s=s.displayName||s.name||"",u.displayName||(s!==""?"ForwardRef("+s+")":"ForwardRef");case 7:return"Fragment";case 5:return u;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return je(u);case 8:return u===F?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof u=="function")return u.displayName||u.name||null;if(typeof u=="string")return u}return null}function he(s){switch(typeof s){case"boolean":case"number":case"string":case"undefined":return s;case"object":return s;default:return""}}function oe(s){var u=s.type;return(s=s.nodeName)&&s.toLowerCase()==="input"&&(u==="checkbox"||u==="radio")}function be(s){var u=oe(s)?"checked":"value",g=Object.getOwnPropertyDescriptor(s.constructor.prototype,u),x=""+s[u];if(!s.hasOwnProperty(u)&&typeof g<"u"&&typeof g.get=="function"&&typeof g.set=="function"){var E=g.get,k=g.set;return Object.defineProperty(s,u,{configurable:!0,get:function(){return E.call(this)},set:function(D){x=""+D,k.call(this,D)}}),Object.defineProperty(s,u,{enumerable:g.enumerable}),{getValue:function(){return x},setValue:function(D){x=""+D},stopTracking:function(){s._valueTracker=null,delete s[u]}}}}function Ce(s){s._valueTracker||(s._valueTracker=be(s))}function fe(s){if(!s)return!1;var u=s._valueTracker;if(!u)return!0;var g=u.getValue(),x="";return s&&(x=oe(s)?s.checked?"true":"false":s.value),s=x,s!==g?(u.setValue(s),!0):!1}function De(s){if(s=s||(typeof document<"u"?document:void 0),typeof s>"u")return null;try{return s.activeElement||s.body}catch{return s.body}}function Le(s,u){var g=u.checked;return X({},u,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:g??s._wrapperState.initialChecked})}function it(s,u){var g=u.defaultValue==null?"":u.defaultValue,x=u.checked!=null?u.checked:u.defaultChecked;g=he(u.value!=null?u.value:g),s._wrapperState={initialChecked:x,initialValue:g,controlled:u.type==="checkbox"||u.type==="radio"?u.checked!=null:u.value!=null}}function Ve(s,u){u=u.checked,u!=null&&A(s,"checked",u,!1)}function At(s,u){Ve(s,u);var g=he(u.value),x=u.type;if(g!=null)x==="number"?(g===0&&s.value===""||s.value!=g)&&(s.value=""+g):s.value!==""+g&&(s.value=""+g);else if(x==="submit"||x==="reset"){s.removeAttribute("value");return}u.hasOwnProperty("value")?zt(s,u.type,g):u.hasOwnProperty("defaultValue")&&zt(s,u.type,he(u.defaultValue)),u.checked==null&&u.defaultChecked!=null&&(s.defaultChecked=!!u.defaultChecked)}function pt(s,u,g){if(u.hasOwnProperty("value")||u.hasOwnProperty("defaultValue")){var x=u.type;if(!(x!=="submit"&&x!=="reset"||u.value!==void 0&&u.value!==null))return;u=""+s._wrapperState.initialValue,g||u===s.value||(s.value=u),s.defaultValue=u}g=s.name,g!==""&&(s.name=""),s.defaultChecked=!!s._wrapperState.initialChecked,g!==""&&(s.name=g)}function zt(s,u,g){(u!=="number"||De(s.ownerDocument)!==s)&&(g==null?s.defaultValue=""+s._wrapperState.initialValue:s.defaultValue!==""+g&&(s.defaultValue=""+g))}var st=Array.isArray;function Gt(s,u,g,x){if(s=s.options,u){u={};for(var E=0;E"+u.valueOf().toString()+"",u=rn.firstChild;s.firstChild;)s.removeChild(s.firstChild);for(;u.firstChild;)s.appendChild(u.firstChild)}});function Hn(s,u){if(u){var g=s.firstChild;if(g&&g===s.lastChild&&g.nodeType===3){g.nodeValue=u;return}}s.textContent=u}var xi={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},Ii=["Webkit","ms","Moz","O"];Object.keys(xi).forEach(function(s){Ii.forEach(function(u){u=u+s.charAt(0).toUpperCase()+s.substring(1),xi[u]=xi[s]})});function Ur(s,u,g){return u==null||typeof u=="boolean"||u===""?"":g||typeof u!="number"||u===0||xi.hasOwnProperty(s)&&xi[s]?(""+u).trim():u+"px"}function ve(s,u){s=s.style;for(var g in u)if(u.hasOwnProperty(g)){var x=g.indexOf("--")===0,E=Ur(g,u[g],x);g==="float"&&(g="cssFloat"),x?s.setProperty(g,E):s[g]=E}}var pe=X({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 Je(s,u){if(u){if(pe[s]&&(u.children!=null||u.dangerouslySetInnerHTML!=null))throw Error(n(137,s));if(u.dangerouslySetInnerHTML!=null){if(u.children!=null)throw Error(n(60));if(typeof u.dangerouslySetInnerHTML!="object"||!("__html"in u.dangerouslySetInnerHTML))throw Error(n(61))}if(u.style!=null&&typeof u.style!="object")throw Error(n(62))}}function Xe(s,u){if(s.indexOf("-")===-1)return typeof u.is=="string";switch(s){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 et=null;function We(s){return s=s.target||s.srcElement||window,s.correspondingUseElement&&(s=s.correspondingUseElement),s.nodeType===3?s.parentNode:s}var He=null,Mt=null,Bt=null;function jt(s){if(s=Tr(s)){if(typeof He!="function")throw Error(n(280));var u=s.stateNode;u&&(u=Qf(u),He(s.stateNode,s.type,u))}}function vt(s){Mt?Bt?Bt.push(s):Bt=[s]:Mt=s}function lt(){if(Mt){var s=Mt,u=Bt;if(Bt=Mt=null,jt(s),u)for(s=0;s>>=0,s===0?32:31-(s0(s)/l0|0)|0}var Al=64,Of=4194304;function Tl(s){switch(s&-s){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 s&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return s&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return s}}function Ts(s,u){var g=s.pendingLanes;if(g===0)return 0;var x=0,E=s.suspendedLanes,k=s.pingedLanes,D=g&268435455;if(D!==0){var K=D&~E;K!==0?x=Tl(K):(k&=D,k!==0&&(x=Tl(k)))}else D=g&~E,D!==0?x=Tl(D):k!==0&&(x=Tl(k));if(x===0)return 0;if(u!==0&&u!==x&&(u&E)===0&&(E=x&-x,k=u&-u,E>=k||E===16&&(k&4194240)!==0))return u;if((x&4)!==0&&(x|=g&16),u=s.entangledLanes,u!==0)for(s=s.entanglements,u&=x;0g;g++)u.push(s);return u}function Vu(s,u,g){s.pendingLanes|=u,u!==536870912&&(s.suspendedLanes=0,s.pingedLanes=0),s=s.eventTimes,u=31-no(u),s[u]=g}function f0(s,u){var g=s.pendingLanes&~u;s.pendingLanes=u,s.suspendedLanes=0,s.pingedLanes=0,s.expiredLanes&=u,s.mutableReadLanes&=u,s.entangledLanes&=u,u=s.entanglements;var x=s.eventTimes;for(s=s.expirationTimes;0=ua),E0=" ",O0=!1;function P0(s,u){switch(s){case"keyup":return bi.indexOf(u.keyCode)!==-1;case"keydown":return u.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function A0(s){return s=s.detail,typeof s=="object"&&"data"in s?s.data:null}var Rl=!1;function Ll(s,u){switch(s){case"compositionend":return A0(u);case"keypress":return u.which!==32?null:(O0=!0,E0);case"textInput":return s=u.data,s===E0&&O0?null:s;default:return null}}function Mx(s,u){if(Rl)return s==="compositionend"||!qu&&P0(s,u)?(s=ip(),Mo=Hu=Pn=null,Rl=!1,s):null;switch(s){case"paste":return null;case"keypress":if(!(u.ctrlKey||u.altKey||u.metaKey)||u.ctrlKey&&u.altKey){if(u.char&&1=u)return{node:g,offset:u-s};s=x}e:{for(;g;){if(g.nextSibling){g=g.nextSibling;break e}g=g.parentNode}g=void 0}g=Ot(g)}}function Kn(s,u){return s&&u?s===u?!0:s&&s.nodeType===3?!1:u&&u.nodeType===3?Kn(s,u.parentNode):"contains"in s?s.contains(u):s.compareDocumentPosition?!!(s.compareDocumentPosition(u)&16):!1:!1}function fn(){for(var s=window,u=De();u instanceof s.HTMLIFrameElement;){try{var g=typeof u.contentWindow.location.href=="string"}catch{g=!1}if(g)s=u.contentWindow;else break;u=De(s.document)}return u}function Ku(s){var u=s&&s.nodeName&&s.nodeName.toLowerCase();return u&&(u==="input"&&(s.type==="text"||s.type==="search"||s.type==="tel"||s.type==="url"||s.type==="password")||u==="textarea"||s.contentEditable==="true")}function $x(s){var u=fn(),g=s.focusedElem,x=s.selectionRange;if(u!==g&&g&&g.ownerDocument&&Kn(g.ownerDocument.documentElement,g)){if(x!==null&&Ku(g)){if(u=x.start,s=x.end,s===void 0&&(s=u),"selectionStart"in g)g.selectionStart=u,g.selectionEnd=Math.min(s,g.value.length);else if(s=(u=g.ownerDocument||document)&&u.defaultView||window,s.getSelection){s=s.getSelection();var E=g.textContent.length,k=Math.min(x.start,E);x=x.end===void 0?k:Math.min(x.end,E),!s.extend&&k>x&&(E=x,x=k,k=E),E=Yt(g,k);var D=Yt(g,x);E&&D&&(s.rangeCount!==1||s.anchorNode!==E.node||s.anchorOffset!==E.offset||s.focusNode!==D.node||s.focusOffset!==D.offset)&&(u=u.createRange(),u.setStart(E.node,E.offset),s.removeAllRanges(),k>x?(s.addRange(u),s.extend(D.node,D.offset)):(u.setEnd(D.node,D.offset),s.addRange(u)))}}for(u=[],s=g;s=s.parentNode;)s.nodeType===1&&u.push({element:s,left:s.scrollLeft,top:s.scrollTop});for(typeof g.focus=="function"&&g.focus(),g=0;g=document.documentMode,ca=null,vp=null,Io=null,$l=!1;function Gu(s,u,g){var x=g.window===g?g.document:g.nodeType===9?g:g.ownerDocument;$l||ca==null||ca!==De(x)||(x=ca,"selectionStart"in x&&Ku(x)?x={start:x.selectionStart,end:x.selectionEnd}:(x=(x.ownerDocument&&x.ownerDocument.defaultView||window).getSelection(),x={anchorNode:x.anchorNode,anchorOffset:x.anchorOffset,focusNode:x.focusNode,focusOffset:x.focusOffset}),Io&&ze(Io,x)||(Io=x,x=Gf(vp,"onSelect"),0ql||(s.current=Sp[ql],Sp[ql]=null,ql--)}function xn(s,u){ql++,Sp[ql]=s.current,s.current=u}var Ya={},kr=li(Ya),ui=li(!1),qr=Ya;function Kl(s,u){var g=s.type.contextTypes;if(!g)return Ya;var x=s.stateNode;if(x&&x.__reactInternalMemoizedUnmaskedChildContext===u)return x.__reactInternalMemoizedMaskedChildContext;var E={},k;for(k in g)E[k]=u[k];return x&&(s=s.stateNode,s.__reactInternalMemoizedUnmaskedChildContext=u,s.__reactInternalMemoizedMaskedChildContext=E),E}function ci(s){return s=s.childContextTypes,s!=null}function Jf(){Sn(ui),Sn(kr)}function $0(s,u,g){if(kr.current!==Ya)throw Error(n(168));xn(kr,u),xn(ui,g)}function F0(s,u,g){var x=s.stateNode;if(u=u.childContextTypes,typeof x.getChildContext!="function")return g;x=x.getChildContext();for(var E in x)if(!(E in u))throw Error(n(108,re(s)||"Unknown",E));return X({},g,x)}function Li(s){return s=(s=s.stateNode)&&s.__reactInternalMemoizedMergedChildContext||Ya,qr=kr.current,xn(kr,s),xn(ui,ui.current),!0}function B0(s,u,g){var x=s.stateNode;if(!x)throw Error(n(169));g?(s=F0(s,u,qr),x.__reactInternalMemoizedMergedChildContext=s,Sn(ui),Sn(kr),xn(kr,s)):Sn(ui),xn(ui,g)}var ha=null,ed=!1,_p=!1;function V0(s){ha===null?ha=[s]:ha.push(s)}function Ds(s){ed=!0,V0(s)}function Za(){if(!_p&&ha!==null){_p=!0;var s=0,u=en;try{var g=ha;for(en=1;s>=D,E-=D,Lo=1<<32-no(u)+E|g<yt?(ur=at,at=null):ur=at.sibling;var Xt=Oe(ce,at,de[yt],Re);if(Xt===null){at===null&&(at=ur);break}s&&at&&Xt.alternate===null&&u(ce,at),ne=k(Xt,ne,yt),dt===null?tt=Xt:dt.sibling=Xt,dt=Xt,at=ur}if(yt===de.length)return g(ce,at),_n&&Fs(ce,yt),tt;if(at===null){for(;ytyt?(ur=at,at=null):ur=at.sibling;var ls=Oe(ce,at,Xt.value,Re);if(ls===null){at===null&&(at=ur);break}s&&at&&ls.alternate===null&&u(ce,at),ne=k(ls,ne,yt),dt===null?tt=ls:dt.sibling=ls,dt=ls,at=ur}if(Xt.done)return g(ce,at),_n&&Fs(ce,yt),tt;if(at===null){for(;!Xt.done;yt++,Xt=de.next())Xt=ke(ce,Xt.value,Re),Xt!==null&&(ne=k(Xt,ne,yt),dt===null?tt=Xt:dt.sibling=Xt,dt=Xt);return _n&&Fs(ce,yt),tt}for(at=x(ce,at);!Xt.done;yt++,Xt=de.next())Xt=Ue(at,ce,yt,Xt.value,Re),Xt!==null&&(s&&Xt.alternate!==null&&at.delete(Xt.key===null?yt:Xt.key),ne=k(Xt,ne,yt),dt===null?tt=Xt:dt.sibling=Xt,dt=Xt);return s&&at.forEach(function(ab){return u(ce,ab)}),_n&&Fs(ce,yt),tt}function Bn(ce,ne,de,Re){if(typeof de=="object"&&de!==null&&de.type===L&&de.key===null&&(de=de.props.children),typeof de=="object"&&de!==null){switch(de.$$typeof){case M:e:{for(var tt=de.key,dt=ne;dt!==null;){if(dt.key===tt){if(tt=de.type,tt===L){if(dt.tag===7){g(ce,dt.sibling),ne=E(dt,de.props.children),ne.return=ce,ce=ne;break e}}else if(dt.elementType===tt||typeof tt=="object"&&tt!==null&&tt.$$typeof===le&&H0(tt)===dt.type){g(ce,dt.sibling),ne=E(dt,de.props),ne.ref=oc(ce,dt,de),ne.return=ce,ce=ne;break e}g(ce,dt);break}else u(ce,dt);dt=dt.sibling}de.type===L?(ne=Qs(de.props.children,ce.mode,Re,de.key),ne.return=ce,ce=ne):(Re=$d(de.type,de.key,de.props,null,ce.mode,Re),Re.ref=oc(ce,ne,de),Re.return=ce,ce=Re)}return D(ce);case N:e:{for(dt=de.key;ne!==null;){if(ne.key===dt)if(ne.tag===4&&ne.stateNode.containerInfo===de.containerInfo&&ne.stateNode.implementation===de.implementation){g(ce,ne.sibling),ne=E(ne,de.children||[]),ne.return=ce,ce=ne;break e}else{g(ce,ne);break}else u(ce,ne);ne=ne.sibling}ne=dm(de,ce.mode,Re),ne.return=ce,ce=ne}return D(ce);case le:return dt=de._init,Bn(ce,ne,dt(de._payload),Re)}if(st(de))return Ye(ce,ne,de,Re);if(Z(de))return Qe(ce,ne,de,Re);Vs(ce,de)}return typeof de=="string"&&de!==""||typeof de=="number"?(de=""+de,ne!==null&&ne.tag===6?(g(ce,ne.sibling),ne=E(ne,de),ne.return=ce,ce=ne):(g(ce,ne),ne=fm(de,ce.mode,Re),ne.return=ce,ce=ne),D(ce)):g(ce,ne)}return Bn}var Ln=Ep(!0),id=Ep(!1),ac=li(null),Ci=null,Xa=null,Yl=null;function ma(){Yl=Xa=Ci=null}function od(s){var u=ac.current;Sn(ac),s._currentValue=u}function gr(s,u,g){for(;s!==null;){var x=s.alternate;if((s.childLanes&u)!==u?(s.childLanes|=u,x!==null&&(x.childLanes|=u)):x!==null&&(x.childLanes&u)!==u&&(x.childLanes|=u),s===g)break;s=s.return}}function Qa(s,u){Ci=s,Yl=Xa=null,s=s.dependencies,s!==null&&s.firstContext!==null&&((s.lanes&u)!==0&&(Gr=!0),s.firstContext=null)}function Fi(s){var u=s._currentValue;if(Yl!==s)if(s={context:s,memoizedValue:u,next:null},Xa===null){if(Ci===null)throw Error(n(308));Xa=s,Ci.dependencies={lanes:0,firstContext:s}}else Xa=Xa.next=s;return u}var zs=null;function Op(s){zs===null?zs=[s]:zs.push(s)}function ad(s,u,g,x){var E=u.interleaved;return E===null?(g.next=g,Op(u)):(g.next=E.next,E.next=g),u.interleaved=g,ga(s,x)}function ga(s,u){s.lanes|=u;var g=s.alternate;for(g!==null&&(g.lanes|=u),g=s,s=s.return;s!==null;)s.childLanes|=u,g=s.alternate,g!==null&&(g.childLanes|=u),g=s,s=s.return;return g.tag===3?g.stateNode:null}var Bi=!1;function sd(s){s.updateQueue={baseState:s.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function q0(s,u){s=s.updateQueue,u.updateQueue===s&&(u.updateQueue={baseState:s.baseState,firstBaseUpdate:s.firstBaseUpdate,lastBaseUpdate:s.lastBaseUpdate,shared:s.shared,effects:s.effects})}function va(s,u){return{eventTime:s,lane:u,tag:0,payload:null,callback:null,next:null}}function Vi(s,u,g){var x=s.updateQueue;if(x===null)return null;if(x=x.shared,(qt&2)!==0){var E=x.pending;return E===null?u.next=u:(u.next=E.next,E.next=u),x.pending=u,ga(s,g)}return E=x.interleaved,E===null?(u.next=u,Op(x)):(u.next=E.next,E.next=u),x.interleaved=u,ga(s,g)}function ld(s,u,g){if(u=u.updateQueue,u!==null&&(u=u.shared,(g&4194240)!==0)){var x=u.lanes;x&=s.pendingLanes,g|=x,u.lanes=g,zu(s,g)}}function K0(s,u){var g=s.updateQueue,x=s.alternate;if(x!==null&&(x=x.updateQueue,g===x)){var E=null,k=null;if(g=g.firstBaseUpdate,g!==null){do{var D={eventTime:g.eventTime,lane:g.lane,tag:g.tag,payload:g.payload,callback:g.callback,next:null};k===null?E=k=D:k=k.next=D,g=g.next}while(g!==null);k===null?E=k=u:k=k.next=u}else E=k=u;g={baseState:x.baseState,firstBaseUpdate:E,lastBaseUpdate:k,shared:x.shared,effects:x.effects},s.updateQueue=g;return}s=g.lastBaseUpdate,s===null?g.firstBaseUpdate=u:s.next=u,g.lastBaseUpdate=u}function Zl(s,u,g,x){var E=s.updateQueue;Bi=!1;var k=E.firstBaseUpdate,D=E.lastBaseUpdate,K=E.shared.pending;if(K!==null){E.shared.pending=null;var Q=K,ge=Q.next;Q.next=null,D===null?k=ge:D.next=ge,D=Q;var Ae=s.alternate;Ae!==null&&(Ae=Ae.updateQueue,K=Ae.lastBaseUpdate,K!==D&&(K===null?Ae.firstBaseUpdate=ge:K.next=ge,Ae.lastBaseUpdate=Q))}if(k!==null){var ke=E.baseState;D=0,Ae=ge=Q=null,K=k;do{var Oe=K.lane,Ue=K.eventTime;if((x&Oe)===Oe){Ae!==null&&(Ae=Ae.next={eventTime:Ue,lane:0,tag:K.tag,payload:K.payload,callback:K.callback,next:null});e:{var Ye=s,Qe=K;switch(Oe=u,Ue=g,Qe.tag){case 1:if(Ye=Qe.payload,typeof Ye=="function"){ke=Ye.call(Ue,ke,Oe);break e}ke=Ye;break e;case 3:Ye.flags=Ye.flags&-65537|128;case 0:if(Ye=Qe.payload,Oe=typeof Ye=="function"?Ye.call(Ue,ke,Oe):Ye,Oe==null)break e;ke=X({},ke,Oe);break e;case 2:Bi=!0}}K.callback!==null&&K.lane!==0&&(s.flags|=64,Oe=E.effects,Oe===null?E.effects=[K]:Oe.push(K))}else Ue={eventTime:Ue,lane:Oe,tag:K.tag,payload:K.payload,callback:K.callback,next:null},Ae===null?(ge=Ae=Ue,Q=ke):Ae=Ae.next=Ue,D|=Oe;if(K=K.next,K===null){if(K=E.shared.pending,K===null)break;Oe=K,K=Oe.next,Oe.next=null,E.lastBaseUpdate=Oe,E.shared.pending=null}}while(!0);if(Ae===null&&(Q=ke),E.baseState=Q,E.firstBaseUpdate=ge,E.lastBaseUpdate=Ae,u=E.shared.interleaved,u!==null){E=u;do D|=E.lane,E=E.next;while(E!==u)}else k===null&&(E.shared.lanes=0);rs|=D,s.lanes=D,s.memoizedState=ke}}function Pp(s,u,g){if(s=u.effects,u.effects=null,s!==null)for(u=0;ug?g:4,s(!0);var x=jp.transition;jp.transition={};try{s(!1),u()}finally{en=g,jp.transition=x}}function Fp(){return zi().memoizedState}function Bx(s,u,g){var x=as(s);if(g={lane:x,action:g,hasEagerState:!1,eagerState:null,next:null},Bp(s))Kr(u,g);else if(g=ad(s,u,g,x),g!==null){var E=Xr();co(g,s,x,E),oo(g,u,x)}}function J0(s,u,g){var x=as(s),E={lane:x,action:g,hasEagerState:!1,eagerState:null,next:null};if(Bp(s))Kr(u,E);else{var k=s.alternate;if(s.lanes===0&&(k===null||k.lanes===0)&&(k=u.lastRenderedReducer,k!==null))try{var D=u.lastRenderedState,K=k(D,g);if(E.hasEagerState=!0,E.eagerState=K,me(K,D)){var Q=u.interleaved;Q===null?(E.next=E,Op(u)):(E.next=Q.next,Q.next=E),u.interleaved=E;return}}catch{}finally{}g=ad(s,u,E,x),g!==null&&(E=Xr(),co(g,s,x,E),oo(g,u,x))}}function Bp(s){var u=s.alternate;return s===Mn||u!==null&&u===Mn}function Kr(s,u){cc=Ql=!0;var g=s.pending;g===null?u.next=u:(u.next=g.next,g.next=u),s.pending=u}function oo(s,u,g){if((g&4194240)!==0){var x=u.lanes;x&=s.pendingLanes,g|=x,u.lanes=g,zu(s,g)}}var gd={readContext:Fi,useCallback:Ir,useContext:Ir,useEffect:Ir,useImperativeHandle:Ir,useInsertionEffect:Ir,useLayoutEffect:Ir,useMemo:Ir,useReducer:Ir,useRef:Ir,useState:Ir,useDebugValue:Ir,useDeferredValue:Ir,useTransition:Ir,useMutableSource:Ir,useSyncExternalStore:Ir,useId:Ir,unstable_isNewReconciler:!1},Vx={readContext:Fi,useCallback:function(s,u){return zo().memoizedState=[s,u===void 0?null:u],s},useContext:Fi,useEffect:md,useImperativeHandle:function(s,u,g){return g=g!=null?g.concat([s]):null,dc(4194308,4,Dp.bind(null,u,s),g)},useLayoutEffect:function(s,u){return dc(4194308,4,s,u)},useInsertionEffect:function(s,u){return dc(4,2,s,u)},useMemo:function(s,u){var g=zo();return u=u===void 0?null:u,s=s(),g.memoizedState=[s,u],s},useReducer:function(s,u,g){var x=zo();return u=g!==void 0?g(u):u,x.memoizedState=x.baseState=u,s={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:s,lastRenderedState:u},x.queue=s,s=s.dispatch=Bx.bind(null,Mn,s),[x.memoizedState,s]},useRef:function(s){var u=zo();return s={current:s},u.memoizedState=s},useState:fc,useDebugValue:hc,useDeferredValue:function(s){return zo().memoizedState=s},useTransition:function(){var s=fc(!1),u=s[0];return s=Q0.bind(null,s[1]),zo().memoizedState=s,[u,s]},useMutableSource:function(){},useSyncExternalStore:function(s,u,g){var x=Mn,E=zo();if(_n){if(g===void 0)throw Error(n(407));g=g()}else{if(g=u(),lr===null)throw Error(n(349));(es&30)!==0||Rp(x,u,g)}E.memoizedState=g;var k={value:g,getSnapshot:u};return E.queue=k,md(xa.bind(null,x,k,s),[s]),x.flags|=2048,eu(9,di.bind(null,x,k,g,u),void 0,null),g},useId:function(){var s=zo(),u=lr.identifierPrefix;if(_n){var g=Do,x=Lo;g=(x&~(1<<32-no(x)-1)).toString(32)+g,u=":"+u+"R"+g,g=Ws++,0<\/script>",s=s.removeChild(s.firstChild)):typeof x.is=="string"?s=D.createElement(g,{is:x.is}):(s=D.createElement(g),g==="select"&&(D=s,x.multiple?D.multiple=!0:x.size&&(D.size=x.size))):s=D.createElementNS(s,g),s[No]=u,s[Ga]=x,yr(s,u,!1,!1),u.stateNode=s;e:{switch(D=Xe(g,x),g){case"dialog":wn("cancel",s),wn("close",s),E=x;break;case"iframe":case"object":case"embed":wn("load",s),E=x;break;case"video":case"audio":for(E=0;EGs&&(u.flags|=128,x=!0,bc(k,!1),u.lanes=4194304)}else{if(!x)if(s=Us(D),s!==null){if(u.flags|=128,x=!0,g=s.updateQueue,g!==null&&(u.updateQueue=g,u.flags|=4),bc(k,!0),k.tail===null&&k.tailMode==="hidden"&&!D.alternate&&!_n)return xr(u),null}else 2*cn()-k.renderingStartTime>Gs&&g!==1073741824&&(u.flags|=128,x=!0,bc(k,!1),u.lanes=4194304);k.isBackwards?(D.sibling=u.child,u.child=D):(g=k.last,g!==null?g.sibling=D:u.child=D,k.last=D)}return k.tail!==null?(u=k.tail,k.rendering=u,k.tail=u.sibling,k.renderingStartTime=cn(),u.sibling=null,g=An.current,xn(An,x?g&1|2:g&1),u):(xr(u),null);case 22:case 23:return um(),x=u.memoizedState!==null,s!==null&&s.memoizedState!==null!==x&&(u.flags|=8192),x&&(u.mode&1)!==0?(Oi&1073741824)!==0&&(xr(u),u.subtreeFlags&6&&(u.flags|=8192)):xr(u),null;case 24:return null;case 25:return null}throw Error(n(156,u.tag))}function Ux(s,u){switch(Bs(u),u.tag){case 1:return ci(u.type)&&Jf(),s=u.flags,s&65536?(u.flags=s&-65537|128,u):null;case 3:return Ja(),Sn(ui),Sn(kr),cd(),s=u.flags,(s&65536)!==0&&(s&128)===0?(u.flags=s&-65537|128,u):null;case 5:return ud(u),null;case 13:if(Sn(An),s=u.memoizedState,s!==null&&s.dehydrated!==null){if(u.alternate===null)throw Error(n(340));Fo()}return s=u.flags,s&65536?(u.flags=s&-65537|128,u):null;case 19:return Sn(An),null;case 4:return Ja(),null;case 10:return od(u.type._context),null;case 22:case 23:return um(),null;case 24:return null;default:return null}}var Ed=!1,Tn=!1,Yr=typeof WeakSet=="function"?WeakSet:Set,qe=null;function au(s,u){var g=s.ref;if(g!==null)if(typeof g=="function")try{g(null)}catch(x){In(s,u,x)}else g.current=null}function wc(s,u,g){try{g()}catch(x){In(s,u,x)}}var av=!1;function Wx(s,u){if(ec=jf,s=fn(),Ku(s)){if("selectionStart"in s)var g={start:s.selectionStart,end:s.selectionEnd};else e:{g=(g=s.ownerDocument)&&g.defaultView||window;var x=g.getSelection&&g.getSelection();if(x&&x.rangeCount!==0){g=x.anchorNode;var E=x.anchorOffset,k=x.focusNode;x=x.focusOffset;try{g.nodeType,k.nodeType}catch{g=null;break e}var D=0,K=-1,Q=-1,ge=0,Ae=0,ke=s,Oe=null;t:for(;;){for(var Ue;ke!==g||E!==0&&ke.nodeType!==3||(K=D+E),ke!==k||x!==0&&ke.nodeType!==3||(Q=D+x),ke.nodeType===3&&(D+=ke.nodeValue.length),(Ue=ke.firstChild)!==null;)Oe=ke,ke=Ue;for(;;){if(ke===s)break t;if(Oe===g&&++ge===E&&(K=D),Oe===k&&++Ae===x&&(Q=D),(Ue=ke.nextSibling)!==null)break;ke=Oe,Oe=ke.parentNode}ke=Ue}g=K===-1||Q===-1?null:{start:K,end:Q}}else g=null}g=g||{start:0,end:0}}else g=null;for(Ls={focusedElem:s,selectionRange:g},jf=!1,qe=u;qe!==null;)if(u=qe,s=u.child,(u.subtreeFlags&1028)!==0&&s!==null)s.return=u,qe=s;else for(;qe!==null;){u=qe;try{var Ye=u.alternate;if((u.flags&1024)!==0)switch(u.tag){case 0:case 11:case 15:break;case 1:if(Ye!==null){var Qe=Ye.memoizedProps,Bn=Ye.memoizedState,ce=u.stateNode,ne=ce.getSnapshotBeforeUpdate(u.elementType===u.type?Qe:Ui(u.type,Qe),Bn);ce.__reactInternalSnapshotBeforeUpdate=ne}break;case 3:var de=u.stateNode.containerInfo;de.nodeType===1?de.textContent="":de.nodeType===9&&de.documentElement&&de.removeChild(de.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(n(163))}}catch(Re){In(u,u.return,Re)}if(s=u.sibling,s!==null){s.return=u.return,qe=s;break}qe=u.return}return Ye=av,av=!1,Ye}function Sa(s,u,g){var x=u.updateQueue;if(x=x!==null?x.lastEffect:null,x!==null){var E=x=x.next;do{if((E.tag&s)===s){var k=E.destroy;E.destroy=void 0,k!==void 0&&wc(u,g,k)}E=E.next}while(E!==x)}}function Sc(s,u){if(u=u.updateQueue,u=u!==null?u.lastEffect:null,u!==null){var g=u=u.next;do{if((g.tag&s)===s){var x=g.create;g.destroy=x()}g=g.next}while(g!==u)}}function Od(s){var u=s.ref;if(u!==null){var g=s.stateNode;switch(s.tag){case 5:s=g;break;default:s=g}typeof u=="function"?u(s):u.current=s}}function sv(s){var u=s.alternate;u!==null&&(s.alternate=null,sv(u)),s.child=null,s.deletions=null,s.sibling=null,s.tag===5&&(u=s.stateNode,u!==null&&(delete u[No],delete u[Ga],delete u[Xf],delete u[$],delete u[Hl])),s.stateNode=null,s.return=null,s.dependencies=null,s.memoizedProps=null,s.memoizedState=null,s.pendingProps=null,s.stateNode=null,s.updateQueue=null}function lv(s){return s.tag===5||s.tag===3||s.tag===4}function uv(s){e:for(;;){for(;s.sibling===null;){if(s.return===null||lv(s.return))return null;s=s.return}for(s.sibling.return=s.return,s=s.sibling;s.tag!==5&&s.tag!==6&&s.tag!==18;){if(s.flags&2||s.child===null||s.tag===4)continue e;s.child.return=s,s=s.child}if(!(s.flags&2))return s.stateNode}}function Qp(s,u,g){var x=s.tag;if(x===5||x===6)s=s.stateNode,u?g.nodeType===8?g.parentNode.insertBefore(s,u):g.insertBefore(s,u):(g.nodeType===8?(u=g.parentNode,u.insertBefore(s,g)):(u=g,u.appendChild(s)),g=g._reactRootContainer,g!=null||u.onclick!==null||(u.onclick=Yf));else if(x!==4&&(s=s.child,s!==null))for(Qp(s,u,g),s=s.sibling;s!==null;)Qp(s,u,g),s=s.sibling}function Pd(s,u,g){var x=s.tag;if(x===5||x===6)s=s.stateNode,u?g.insertBefore(s,u):g.appendChild(s);else if(x!==4&&(s=s.child,s!==null))for(Pd(s,u,g),s=s.sibling;s!==null;)Pd(s,u,g),s=s.sibling}var sr=null,so=!1;function qo(s,u,g){for(g=g.child;g!==null;)Jp(s,u,g),g=g.sibling}function Jp(s,u,g){if(jo&&typeof jo.onCommitFiberUnmount=="function")try{jo.onCommitFiberUnmount(Ef,g)}catch{}switch(g.tag){case 5:Tn||au(g,u);case 6:var x=sr,E=so;sr=null,qo(s,u,g),sr=x,so=E,sr!==null&&(so?(s=sr,g=g.stateNode,s.nodeType===8?s.parentNode.removeChild(g):s.removeChild(g)):sr.removeChild(g.stateNode));break;case 18:sr!==null&&(so?(s=sr,g=g.stateNode,s.nodeType===8?wp(s.parentNode,g):s.nodeType===1&&wp(s,g),tn(s)):wp(sr,g.stateNode));break;case 4:x=sr,E=so,sr=g.stateNode.containerInfo,so=!0,qo(s,u,g),sr=x,so=E;break;case 0:case 11:case 14:case 15:if(!Tn&&(x=g.updateQueue,x!==null&&(x=x.lastEffect,x!==null))){E=x=x.next;do{var k=E,D=k.destroy;k=k.tag,D!==void 0&&((k&2)!==0||(k&4)!==0)&&wc(g,u,D),E=E.next}while(E!==x)}qo(s,u,g);break;case 1:if(!Tn&&(au(g,u),x=g.stateNode,typeof x.componentWillUnmount=="function"))try{x.props=g.memoizedProps,x.state=g.memoizedState,x.componentWillUnmount()}catch(K){In(g,u,K)}qo(s,u,g);break;case 21:qo(s,u,g);break;case 22:g.mode&1?(Tn=(x=Tn)||g.memoizedState!==null,qo(s,u,g),Tn=x):qo(s,u,g);break;default:qo(s,u,g)}}function su(s){var u=s.updateQueue;if(u!==null){s.updateQueue=null;var g=s.stateNode;g===null&&(g=s.stateNode=new Yr),u.forEach(function(x){var E=Xx.bind(null,s,x);g.has(x)||(g.add(x),x.then(E,E))})}}function Ei(s,u){var g=u.deletions;if(g!==null)for(var x=0;xE&&(E=D),x&=~k}if(x=E,x=cn()-x,x=(120>x?120:480>x?480:1080>x?1080:1920>x?1920:3e3>x?3e3:4320>x?4320:1960*fv(x/1960))-x,10s?16:s,os===null)var x=!1;else{if(s=os,os=null,Zr=0,(qt&6)!==0)throw Error(n(331));var E=qt;for(qt|=4,qe=s.current;qe!==null;){var k=qe,D=k.child;if((qe.flags&16)!==0){var K=k.deletions;if(K!==null){for(var Q=0;Qcn()-rm?Zs(s,0):kd|=g),pi(s,u)}function vv(s,u){u===0&&((s.mode&1)===0?u=1:(u=Of,Of<<=1,(Of&130023424)===0&&(Of=4194304)));var g=Xr();s=ga(s,u),s!==null&&(Vu(s,u,g),pi(s,g))}function Zx(s){var u=s.memoizedState,g=0;u!==null&&(g=u.retryLane),vv(s,g)}function Xx(s,u){var g=0;switch(s.tag){case 13:var x=s.stateNode,E=s.memoizedState;E!==null&&(g=E.retryLane);break;case 19:x=s.stateNode;break;default:throw Error(n(314))}x!==null&&x.delete(u),vv(s,g)}var yv;yv=function(s,u,g){if(s!==null)if(s.memoizedProps!==u.pendingProps||ui.current)Gr=!0;else{if((s.lanes&g)===0&&(u.flags&128)===0)return Gr=!1,iv(s,u,g);Gr=(s.flags&131072)!==0}else Gr=!1,_n&&(u.flags&1048576)!==0&&z0(u,nd,u.index);switch(u.lanes=0,u.tag){case 2:var x=u.type;Cd(s,u),s=u.pendingProps;var E=Kl(u,kr.current);Qa(u,g),E=Hs(null,u,x,s,E,g);var k=fd();return u.flags|=1,typeof E=="object"&&E!==null&&typeof E.render=="function"&&E.$$typeof===void 0?(u.tag=1,u.memoizedState=null,u.updateQueue=null,ci(x)?(k=!0,Li(u)):k=!1,u.memoizedState=E.state!==null&&E.state!==void 0?E.state:null,sd(u),E.updater=xd,u.stateNode=E,E._reactInternals=u,zp(u,x,s,g),u=Yp(null,u,x,!0,k,g)):(u.tag=0,_n&&k&&rc(u),vr(null,u,E,g),u=u.child),u;case 16:x=u.elementType;e:{switch(Cd(s,u),s=u.pendingProps,E=x._init,x=E(x._payload),u.type=x,E=u.tag=Jx(x),s=Ui(x,s),E){case 0:u=Kp(null,u,x,s,g);break e;case 1:u=Gp(null,u,x,s,g);break e;case 11:u=nv(null,u,x,s,g);break e;case 14:u=Wp(null,u,x,Ui(x.type,s),g);break e}throw Error(n(306,x,""))}return u;case 0:return x=u.type,E=u.pendingProps,E=u.elementType===x?E:Ui(x,E),Kp(s,u,x,E,g);case 1:return x=u.type,E=u.pendingProps,E=u.elementType===x?E:Ui(x,E),Gp(s,u,x,E,g);case 3:e:{if(rv(u),s===null)throw Error(n(387));x=u.pendingProps,k=u.memoizedState,E=k.element,q0(s,u),Zl(u,x,null,g);var D=u.memoizedState;if(x=D.element,k.isDehydrated)if(k={element:x,isDehydrated:!1,cache:D.cache,pendingSuspenseBoundaries:D.pendingSuspenseBoundaries,transitions:D.transitions},u.updateQueue.baseState=k,u.memoizedState=k,u.flags&256){E=Ks(Error(n(423)),u),u=Ho(s,u,x,g,E);break e}else if(x!==E){E=Ks(Error(n(424)),u),u=Ho(s,u,x,g,E);break e}else for(_i=Ka(u.stateNode.containerInfo.firstChild),Mr=u,_n=!0,io=null,g=id(u,null,x,g),u.child=g;g;)g.flags=g.flags&-3|4096,g=g.sibling;else{if(Fo(),x===E){u=ao(s,u,g);break e}vr(s,u,x,g)}u=u.child}return u;case 5:return Tp(u),s===null&&fi(u),x=u.type,E=u.pendingProps,k=s!==null?s.memoizedProps:null,D=E.children,tc(x,E)?D=null:k!==null&&tc(x,k)&&(u.flags|=32),qp(s,u),vr(s,u,D,g),u.child;case 6:return s===null&&fi(u),null;case 13:return _d(s,u,g);case 4:return Ap(u,u.stateNode.containerInfo),x=u.pendingProps,s===null?u.child=Ln(u,null,x,g):vr(s,u,x,g),u.child;case 11:return x=u.type,E=u.pendingProps,E=u.elementType===x?E:Ui(x,E),nv(s,u,x,E,g);case 7:return vr(s,u,u.pendingProps,g),u.child;case 8:return vr(s,u,u.pendingProps.children,g),u.child;case 12:return vr(s,u,u.pendingProps.children,g),u.child;case 10:e:{if(x=u.type._context,E=u.pendingProps,k=u.memoizedProps,D=E.value,xn(ac,x._currentValue),x._currentValue=D,k!==null)if(me(k.value,D)){if(k.children===E.children&&!ui.current){u=ao(s,u,g);break e}}else for(k=u.child,k!==null&&(k.return=u);k!==null;){var K=k.dependencies;if(K!==null){D=k.child;for(var Q=K.firstContext;Q!==null;){if(Q.context===x){if(k.tag===1){Q=va(-1,g&-g),Q.tag=2;var ge=k.updateQueue;if(ge!==null){ge=ge.shared;var Ae=ge.pending;Ae===null?Q.next=Q:(Q.next=Ae.next,Ae.next=Q),ge.pending=Q}}k.lanes|=g,Q=k.alternate,Q!==null&&(Q.lanes|=g),gr(k.return,g,u),K.lanes|=g;break}Q=Q.next}}else if(k.tag===10)D=k.type===u.type?null:k.child;else if(k.tag===18){if(D=k.return,D===null)throw Error(n(341));D.lanes|=g,K=D.alternate,K!==null&&(K.lanes|=g),gr(D,g,u),D=k.sibling}else D=k.child;if(D!==null)D.return=k;else for(D=k;D!==null;){if(D===u){D=null;break}if(k=D.sibling,k!==null){k.return=D.return,D=k;break}D=D.return}k=D}vr(s,u,E.children,g),u=u.child}return u;case 9:return E=u.type,x=u.pendingProps.children,Qa(u,g),E=Fi(E),x=x(E),u.flags|=1,vr(s,u,x,g),u.child;case 14:return x=u.type,E=Ui(x,u.pendingProps),E=Ui(x.type,E),Wp(s,u,x,E,g);case 15:return Wo(s,u,u.type,u.pendingProps,g);case 17:return x=u.type,E=u.pendingProps,E=u.elementType===x?E:Ui(x,E),Cd(s,u),u.tag=1,ci(x)?(s=!0,Li(u)):s=!1,Qa(u,g),qs(u,x,E),zp(u,x,E,g),Yp(null,u,x,!0,s,g);case 19:return ts(s,u,g);case 22:return Hp(s,u,g)}throw Error(n(156,u.tag))};function xv(s,u){return Lu(s,u)}function Qx(s,u,g,x){this.tag=s,this.key=g,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=u,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=x,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Hi(s,u,g,x){return new Qx(s,u,g,x)}function Dd(s){return s=s.prototype,!(!s||!s.isReactComponent)}function Jx(s){if(typeof s=="function")return Dd(s)?1:0;if(s!=null){if(s=s.$$typeof,s===G)return 11;if(s===se)return 14}return 2}function fo(s,u){var g=s.alternate;return g===null?(g=Hi(s.tag,u,s.key,s.mode),g.elementType=s.elementType,g.type=s.type,g.stateNode=s.stateNode,g.alternate=s,s.alternate=g):(g.pendingProps=u,g.type=s.type,g.flags=0,g.subtreeFlags=0,g.deletions=null),g.flags=s.flags&14680064,g.childLanes=s.childLanes,g.lanes=s.lanes,g.child=s.child,g.memoizedProps=s.memoizedProps,g.memoizedState=s.memoizedState,g.updateQueue=s.updateQueue,u=s.dependencies,g.dependencies=u===null?null:{lanes:u.lanes,firstContext:u.firstContext},g.sibling=s.sibling,g.index=s.index,g.ref=s.ref,g}function $d(s,u,g,x,E,k){var D=2;if(x=s,typeof s=="function")Dd(s)&&(D=1);else if(typeof s=="string")D=5;else e:switch(s){case L:return Qs(g.children,E,k,u);case F:D=8,E|=8;break;case B:return s=Hi(12,g,u,E|2),s.elementType=B,s.lanes=k,s;case ie:return s=Hi(13,g,u,E),s.elementType=ie,s.lanes=k,s;case te:return s=Hi(19,g,u,E),s.elementType=te,s.lanes=k,s;case q:return Fd(g,E,k,u);default:if(typeof s=="object"&&s!==null)switch(s.$$typeof){case U:D=10;break e;case W:D=9;break e;case G:D=11;break e;case se:D=14;break e;case le:D=16,x=null;break e}throw Error(n(130,s==null?s:typeof s,""))}return u=Hi(D,g,u,E),u.elementType=s,u.type=x,u.lanes=k,u}function Qs(s,u,g,x){return s=Hi(7,s,x,u),s.lanes=g,s}function Fd(s,u,g,x){return s=Hi(22,s,x,u),s.elementType=q,s.lanes=g,s.stateNode={isHidden:!1},s}function fm(s,u,g){return s=Hi(6,s,null,u),s.lanes=g,s}function dm(s,u,g){return u=Hi(4,s.children!==null?s.children:[],s.key,u),u.lanes=g,u.stateNode={containerInfo:s.containerInfo,pendingChildren:null,implementation:s.implementation},u}function eb(s,u,g,x,E){this.tag=u,this.containerInfo=s,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Bu(0),this.expirationTimes=Bu(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Bu(0),this.identifierPrefix=x,this.onRecoverableError=E,this.mutableSourceEagerHydrationData=null}function hm(s,u,g,x,E,k,D,K,Q){return s=new eb(s,u,g,K,Q),u===1?(u=1,k===!0&&(u|=8)):u=0,k=Hi(3,null,null,u),s.current=k,k.stateNode=s,k.memoizedState={element:x,isDehydrated:g,cache:null,transitions:null,pendingSuspenseBoundaries:null},sd(k),s}function tb(s,u,g){var x=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),bb.exports=H$(),bb.exports}var oO;function q$(){if(oO)return Tv;oO=1;var e=wj();return Tv.createRoot=e.createRoot,Tv.hydrateRoot=e.hydrateRoot,Tv}var aO=q$(),rC=wj();/** * @remix-run/router v1.23.0 * * Copyright (c) Remix Software Inc. * * This source code is licensed under the MIT license found in the * LICENSE.md file in the root directory of this source tree. * * @license MIT */function Zm(){return Zm=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u")throw new Error(t)}function Sj(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function G$(){return Math.random().toString(36).substr(2,8)}function lO(e,t){return{usr:e.state,key:e.key,idx:t}}function SS(e,t,n,r){return n===void 0&&(n=null),Zm({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?Dh(t):t,{state:n,key:t&&t.key||r||G$()})}function _j(e){let{pathname:t="/",search:n="",hash:r=""}=e;return n&&n!=="?"&&(t+=n.charAt(0)==="?"?n:"?"+n),r&&r!=="#"&&(t+=r.charAt(0)==="#"?r:"#"+r),t}function Dh(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}function Y$(e,t,n,r){r===void 0&&(r={});let{window:i=document.defaultView,v5Compat:o=!1}=r,a=i.history,l=yu.Pop,c=null,d=h();d==null&&(d=0,a.replaceState(Zm({},a.state,{idx:d}),""));function h(){return(a.state||{idx:null}).idx}function m(){l=yu.Pop;let _=h(),P=_==null?null:_-d;d=_,c&&c({action:l,location:C.location,delta:P})}function v(_,P){l=yu.Push;let T=SS(C.location,_,P);d=h()+1;let A=lO(T,d),I=C.createHref(T);try{a.pushState(A,"",I)}catch(M){if(M instanceof DOMException&&M.name==="DataCloneError")throw M;i.location.assign(I)}o&&c&&c({action:l,location:C.location,delta:1})}function y(_,P){l=yu.Replace;let T=SS(C.location,_,P);d=h();let A=lO(T,d),I=C.createHref(T);a.replaceState(A,"",I),o&&c&&c({action:l,location:C.location,delta:0})}function w(_){let P=i.location.origin!=="null"?i.location.origin:i.location.href,T=typeof _=="string"?_:_j(_);return T=T.replace(/ $/,"%20"),Sr(P,"No window.location.(origin|href) available to create URL for href: "+T),new URL(T,P)}let C={get action(){return l},get location(){return e(i,a)},listen(_){if(c)throw new Error("A history only accepts one active listener");return i.addEventListener(sO,m),c=_,()=>{i.removeEventListener(sO,m),c=null}},createHref(_){return t(i,_)},createURL:w,encodeLocation(_){let P=w(_);return{pathname:P.pathname,search:P.search,hash:P.hash}},push:v,replace:y,go(_){return a.go(_)}};return C}var uO;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(uO||(uO={}));function Z$(e,t,n){return n===void 0&&(n="/"),X$(e,t,n)}function X$(e,t,n,r){let i=typeof t=="string"?Dh(t):t,o=Oj(i.pathname||"/",n);if(o==null)return null;let a=Cj(e);Q$(a);let l=null;for(let c=0;l==null&&c{let c={relativePath:l===void 0?o.path||"":l,caseSensitive:o.caseSensitive===!0,childrenIndex:a,route:o};c.relativePath.startsWith("/")&&(Sr(c.relativePath.startsWith(r),'Absolute route path "'+c.relativePath+'" nested under path '+('"'+r+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),c.relativePath=c.relativePath.slice(r.length));let d=Uc([r,c.relativePath]),h=n.concat(c);o.children&&o.children.length>0&&(Sr(o.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+d+'".')),Cj(o.children,t,h,d)),!(o.path==null&&!o.index)&&t.push({path:d,score:o7(d,o.index),routesMeta:h})};return e.forEach((o,a)=>{var l;if(o.path===""||!((l=o.path)!=null&&l.includes("?")))i(o,a);else for(let c of Ej(o.path))i(o,a,c)}),t}function Ej(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,i=n.endsWith("?"),o=n.replace(/\?$/,"");if(r.length===0)return i?[o,""]:[o];let a=Ej(r.join("/")),l=[];return l.push(...a.map(c=>c===""?o:[o,c].join("/"))),i&&l.push(...a),l.map(c=>e.startsWith("/")&&c===""?"/":c)}function Q$(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:a7(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const J$=/^:[\w-]+$/,e7=3,t7=2,n7=1,r7=10,i7=-2,cO=e=>e==="*";function o7(e,t){let n=e.split("/"),r=n.length;return n.some(cO)&&(r+=i7),t&&(r+=t7),n.filter(i=>!cO(i)).reduce((i,o)=>i+(J$.test(o)?e7:o===""?n7:r7),r)}function a7(e,t){return e.length===t.length&&e.slice(0,-1).every((r,i)=>r===t[i])?e[e.length-1]-t[t.length-1]:0}function s7(e,t,n){let{routesMeta:r}=e,i={},o="/",a=[];for(let l=0;l{let{paramName:v,isOptional:y}=h;if(v==="*"){let C=l[m]||"";a=o.slice(0,o.length-C.length).replace(/(.)\/+$/,"$1")}const w=l[m];return y&&!w?d[v]=void 0:d[v]=(w||"").replace(/%2F/g,"/"),d},{}),pathname:o,pathnameBase:a,pattern:e}}function u7(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),Sj(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let r=[],i="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(a,l,c)=>(r.push({paramName:l,isOptional:c!=null}),c?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(r.push({paramName:"*"}),i+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?i+="\\/*$":e!==""&&e!=="/"&&(i+="(?:(?=\\/|$))"),[new RegExp(i,t?void 0:"i"),r]}function c7(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return Sj(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+t+").")),e}}function Oj(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&r!=="/"?null:e.slice(n)||"/"}function f7(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:i=""}=typeof e=="string"?Dh(e):e;return{pathname:n?n.startsWith("/")?n:d7(n,t):t,search:v7(r),hash:y7(i)}}function d7(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(i=>{i===".."?n.length>1&&n.pop():i!=="."&&n.push(i)}),n.length>1?n.join("/"):"/"}function _b(e,t,n,r){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(r)+"]. Please separate it out to the ")+("`to."+n+"` field. Alternatively you may provide the full path as ")+'a string in and the router will parse it for you.'}function h7(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function p7(e,t){let n=h7(e);return t?n.map((r,i)=>i===n.length-1?r.pathname:r.pathnameBase):n.map(r=>r.pathnameBase)}function m7(e,t,n,r){r===void 0&&(r=!1);let i;typeof e=="string"?i=Dh(e):(i=Zm({},e),Sr(!i.pathname||!i.pathname.includes("?"),_b("?","pathname","search",i)),Sr(!i.pathname||!i.pathname.includes("#"),_b("#","pathname","hash",i)),Sr(!i.search||!i.search.includes("#"),_b("#","search","hash",i)));let o=e===""||i.pathname==="",a=o?"/":i.pathname,l;if(a==null)l=n;else{let m=t.length-1;if(!r&&a.startsWith("..")){let v=a.split("/");for(;v[0]==="..";)v.shift(),m-=1;i.pathname=v.join("/")}l=m>=0?t[m]:"/"}let c=f7(i,l),d=a&&a!=="/"&&a.endsWith("/"),h=(o||a===".")&&n.endsWith("/");return!c.pathname.endsWith("/")&&(d||h)&&(c.pathname+="/"),c}const Uc=e=>e.join("/").replace(/\/\/+/g,"/"),g7=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),v7=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,y7=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function x7(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const Pj=["post","put","patch","delete"];new Set(Pj);const b7=["get",...Pj];new Set(b7);/** * React Router v6.30.0 * * Copyright (c) Remix Software Inc. * * This source code is licensed under the MIT license found in the * LICENSE.md file in the root directory of this source tree. * * @license MIT */function Xm(){return Xm=Object.assign?Object.assign.bind():function(e){for(var t=1;t{l.current=!0}),O.useCallback(function(d,h){if(h===void 0&&(h={}),!l.current)return;if(typeof d=="number"){r.go(d);return}let m=m7(d,JSON.parse(a),o,h.relative==="path");e==null&&t!=="/"&&(m.pathname=m.pathname==="/"?t:Uc([t,m.pathname])),(h.replace?r.replace:r.push)(m,h.state,h)},[t,r,a,o,e])}const C7=O.createContext(null);function E7(e){let t=O.useContext(gf).outlet;return t&&O.createElement(C7.Provider,{value:e},t)}function O7(e,t){return P7(e,t)}function P7(e,t,n,r){E1()||Sr(!1);let{navigator:i,static:o}=O.useContext(_1),{matches:a}=O.useContext(gf),l=a[a.length-1],c=l?l.params:{};l&&l.pathname;let d=l?l.pathnameBase:"/";l&&l.route;let h=O1(),m;if(t){var v;let P=typeof t=="string"?Dh(t):t;d==="/"||(v=P.pathname)!=null&&v.startsWith(d)||Sr(!1),m=P}else m=h;let y=m.pathname||"/",w=y;if(d!=="/"){let P=d.replace(/^\//,"").split("/");w="/"+y.replace(/^\//,"").split("/").slice(P.length).join("/")}let C=Z$(e,{pathname:w}),_=M7(C&&C.map(P=>Object.assign({},P,{params:Object.assign({},c,P.params),pathname:Uc([d,i.encodeLocation?i.encodeLocation(P.pathname).pathname:P.pathname]),pathnameBase:P.pathnameBase==="/"?d:Uc([d,i.encodeLocation?i.encodeLocation(P.pathnameBase).pathname:P.pathnameBase])})),a,n,r);return t&&_?O.createElement(C1.Provider,{value:{location:Xm({pathname:"/",search:"",hash:"",state:null,key:"default"},m),navigationType:yu.Pop}},_):_}function A7(){let e=L7(),t=x7(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,i={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return O.createElement(O.Fragment,null,O.createElement("h2",null,"Unexpected Application Error!"),O.createElement("h3",{style:{fontStyle:"italic"}},t),n?O.createElement("pre",{style:i},n):null,null)}const T7=O.createElement(A7,null);class k7 extends O.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,n){return n.location!==t.location||n.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?t.error:n.error,location:n.location,revalidation:t.revalidation||n.revalidation}}componentDidCatch(t,n){console.error("React Router caught the following error during render",t,n)}render(){return this.state.error!==void 0?O.createElement(gf.Provider,{value:this.props.routeContext},O.createElement(Aj.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function j7(e){let{routeContext:t,match:n,children:r}=e,i=O.useContext(iC);return i&&i.static&&i.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(i.staticContext._deepestRenderedBoundaryId=n.route.id),O.createElement(gf.Provider,{value:t},r)}function M7(e,t,n,r){var i;if(t===void 0&&(t=[]),n===void 0&&(n=null),r===void 0&&(r=null),e==null){var o;if(!n)return null;if(n.errors)e=n.matches;else if((o=r)!=null&&o.v7_partialHydration&&t.length===0&&!n.initialized&&n.matches.length>0)e=n.matches;else return null}let a=e,l=(i=n)==null?void 0:i.errors;if(l!=null){let h=a.findIndex(m=>m.route.id&&(l==null?void 0:l[m.route.id])!==void 0);h>=0||Sr(!1),a=a.slice(0,Math.min(a.length,h+1))}let c=!1,d=-1;if(n&&r&&r.v7_partialHydration)for(let h=0;h=0?a=a.slice(0,d+1):a=[a[0]];break}}}return a.reduceRight((h,m,v)=>{let y,w=!1,C=null,_=null;n&&(y=l&&m.route.id?l[m.route.id]:void 0,C=m.route.errorElement||T7,c&&(d<0&&v===0?($7("route-fallback"),w=!0,_=null):d===v&&(w=!0,_=m.route.hydrateFallbackElement||null)));let P=t.concat(a.slice(0,v+1)),T=()=>{let A;return y?A=C:w?A=_:m.route.Component?A=O.createElement(m.route.Component,null):m.route.element?A=m.route.element:A=h,O.createElement(j7,{match:m,routeContext:{outlet:h,matches:P,isDataRoute:n!=null},children:A})};return n&&(m.route.ErrorBoundary||m.route.errorElement||v===0)?O.createElement(k7,{location:n.location,revalidation:n.revalidation,component:C,error:y,children:T(),routeContext:{outlet:null,matches:P,isDataRoute:!0}}):T()},null)}var kj=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(kj||{}),jj=function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e}(jj||{});function I7(e){let t=O.useContext(iC);return t||Sr(!1),t}function N7(e){let t=O.useContext(w7);return t||Sr(!1),t}function R7(e){let t=O.useContext(gf);return t||Sr(!1),t}function Mj(e){let t=R7(),n=t.matches[t.matches.length-1];return n.route.id||Sr(!1),n.route.id}function L7(){var e;let t=O.useContext(Aj),n=N7(),r=Mj();return t!==void 0?t:(e=n.errors)==null?void 0:e[r]}function D7(){let{router:e}=I7(kj.UseNavigateStable),t=Mj(jj.UseNavigateStable),n=O.useRef(!1);return Tj(()=>{n.current=!0}),O.useCallback(function(i,o){o===void 0&&(o={}),n.current&&(typeof i=="number"?e.navigate(i):e.navigate(i,Xm({fromRouteId:t},o)))},[e,t])}const fO={};function $7(e,t,n){fO[e]||(fO[e]=!0)}function F7(e,t){e==null||e.v7_startTransition,e==null||e.v7_relativeSplatPath}function B7(e){return E7(e.context)}function Mc(e){Sr(!1)}function V7(e){let{basename:t="/",children:n=null,location:r,navigationType:i=yu.Pop,navigator:o,static:a=!1,future:l}=e;E1()&&Sr(!1);let c=t.replace(/^\/*/,"/"),d=O.useMemo(()=>({basename:c,navigator:o,static:a,future:Xm({v7_relativeSplatPath:!1},l)}),[c,l,o,a]);typeof r=="string"&&(r=Dh(r));let{pathname:h="/",search:m="",hash:v="",state:y=null,key:w="default"}=r,C=O.useMemo(()=>{let _=Oj(h,c);return _==null?null:{location:{pathname:_,search:m,hash:v,state:y,key:w},navigationType:i}},[c,h,m,v,y,w,i]);return C==null?null:O.createElement(_1.Provider,{value:d},O.createElement(C1.Provider,{children:n,value:C}))}function z7(e){let{children:t,location:n}=e;return O7(_S(t),n)}new Promise(()=>{});function _S(e,t){t===void 0&&(t=[]);let n=[];return O.Children.forEach(e,(r,i)=>{if(!O.isValidElement(r))return;let o=[...t,i];if(r.type===O.Fragment){n.push.apply(n,_S(r.props.children,o));return}r.type!==Mc&&Sr(!1),!r.props.index||!r.props.children||Sr(!1);let a={id:r.props.id||o.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,Component:r.props.Component,index:r.props.index,path:r.props.path,loader:r.props.loader,action:r.props.action,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary:r.props.ErrorBoundary!=null||r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle,lazy:r.props.lazy};r.props.children&&(a.children=_S(r.props.children,o)),n.push(a)}),n}/** * React Router DOM v6.30.0 * * Copyright (c) Remix Software Inc. * * This source code is licensed under the MIT license found in the * LICENSE.md file in the root directory of this source tree. * * @license MIT */function CS(e){return e===void 0&&(e=""),new URLSearchParams(typeof e=="string"||Array.isArray(e)||e instanceof URLSearchParams?e:Object.keys(e).reduce((t,n)=>{let r=e[n];return t.concat(Array.isArray(r)?r.map(i=>[n,i]):[[n,r]])},[]))}function U7(e,t){let n=CS(e);return t&&t.forEach((r,i)=>{n.has(i)||t.getAll(i).forEach(o=>{n.append(i,o)})}),n}const W7="6";try{window.__reactRouterVersion=W7}catch{}const H7="startTransition",dO=py[H7];function hO(e){let{basename:t,children:n,future:r,window:i}=e,o=O.useRef();o.current==null&&(o.current=K$({window:i,v5Compat:!0}));let a=o.current,[l,c]=O.useState({action:a.action,location:a.location}),{v7_startTransition:d}=r||{},h=O.useCallback(m=>{d&&dO?dO(()=>c(m)):c(m)},[c,d]);return O.useLayoutEffect(()=>a.listen(h),[a,h]),O.useEffect(()=>F7(r),[r]),O.createElement(V7,{basename:t,children:n,location:l.location,navigationType:l.action,navigator:a,future:r})}var pO;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(pO||(pO={}));var mO;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(mO||(mO={}));function q7(e){let t=O.useRef(CS(e)),n=O.useRef(!1),r=O1(),i=O.useMemo(()=>U7(r.search,n.current?null:t.current),[r.search]),o=S7(),a=O.useCallback((l,c)=>{const d=CS(typeof l=="function"?l(i):l);n.current=!0,o("?"+d,c)},[o,i]);return[i,a]}const kv={ExpectedGains:"/expected-gains",IvfCalculator:"/ivf-calculator",IvfCalculatorReport:"/ivf-calculator/report",IvfCalculatorLanding:"/ivf-calculator-landing"};var Cb={exports:{}};/*! Copyright (c) 2018 Jed Watson. Licensed under the MIT License (MIT), see http://jedwatson.github.io/classnames */var gO;function K7(){return gO||(gO=1,function(e){(function(){var t={}.hasOwnProperty;function n(){for(var o="",a=0;a{try{const{search:e}=O1(),t=new URLSearchParams(e);return Object.fromEntries(t)}catch{return null}},Y7=()=>{const e=P1(),t=(e==null?void 0:e.iframe)??null;return b.jsx("div",{className:Ht({"flex items-center justify-center md:pt-20":t==="0"}),children:b.jsx(B7,{})})},Z7=({className:e,size:t=20})=>b.jsx("svg",{width:t,height:t,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:e,children:b.jsx("path",{d:"M7 9.5L12 14.5L17 9.5",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})}),ta=({className:e,size:t=20})=>b.jsx("svg",{width:t,height:t,viewBox:"0 0 8 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:e,children:b.jsx("path",{d:"M6.5 11.2002L1.5 6.2002L6.5 1.2002",stroke:"currentColor",strokeWidth:"1.25",strokeLinecap:"round",strokeLinejoin:"round"})}),vO=({className:e,size:t=20,strokeWidth:n=0})=>b.jsx("svg",{width:t,height:t,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:e,children:b.jsx("path",{d:"M6.95 18L5.999 17.0498L11.049 12L5.999 6.9502L6.95 6L11.999 11.0498L17.049 6L17.999 6.9502L12.95 12L17.999 17.0498L17.049 18L11.999 12.9502L6.95 18Z",fill:"currentColor",stroke:n?"currentColor":"none",strokeWidth:n})}),X7=({fill:e="#202B38",stroke:t="white",strokeWidth:n,...r})=>b.jsxs("svg",{width:"40",height:"41",viewBox:"0 0 40 41",fill:"none",xmlns:"http://www.w3.org/2000/svg",...r,children:[b.jsx("rect",{y:"0.200195",width:"40",height:"40",rx:"20",fill:e}),b.jsx("circle",{cx:"19.9997",cy:"12.1999",r:"2.16667",fill:t,stroke:t}),b.jsx("circle",{cx:"19.9997",cy:"28.1999",r:"2.16667",fill:t,stroke:t}),b.jsx("circle",{cx:"19.9997",cy:"20.1999",r:"2.16667",fill:t,stroke:t}),b.jsx("circle",{cx:"27.9997",cy:"24.1999",r:"2.16667",fill:t,stroke:t}),b.jsx("circle",{cx:"11.9997",cy:"24.1999",r:"2.16667",fill:t,stroke:t}),b.jsx("circle",{cx:"27.9997",cy:"16.1999",r:"2.16667",fill:t,stroke:t}),b.jsx("circle",{cx:"11.9997",cy:"16.1999",r:"2.16667",fill:t,stroke:t})]}),Q7=({fill:e="#202B38",stroke:t="white",strokeWidth:n="1.5",...r})=>b.jsxs("svg",{width:"40",height:"41",viewBox:"0 0 40 41",fill:"none",xmlns:"http://www.w3.org/2000/svg",...r,children:[b.jsx("rect",{y:"0.200195",width:"40",height:"40",rx:"20",fill:e}),b.jsx("circle",{cx:"19.9997",cy:"20.1999",r:"10.6667",stroke:t,strokeWidth:n,fill:"none"}),b.jsx("circle",{cx:"22.6667",cy:"17.5339",r:"2.16667",stroke:t,fill:"none"})]}),J7=({fill:e="#F3F3F3",stroke:t="#BFBFBF",strokeWidth:n,...r})=>b.jsxs("svg",{width:"40",height:"41",viewBox:"0 0 40 41",fill:"none",xmlns:"http://www.w3.org/2000/svg",...r,children:[b.jsx("rect",{y:"0.200195",width:"40",height:"40",rx:"20",fill:e}),b.jsxs("g",{clipPath:"url(#clip0_9974_15505)",children:[b.jsx("path",{d:"M16.4055 23.4758V12.2939C16.4055 11.5314 16.1026 10.8002 15.5635 10.261C15.0243 9.72185 14.293 9.41895 13.5305 9.41895C12.768 9.41895 12.0368 9.72185 11.4976 10.261C10.9584 10.8002 10.6555 11.5314 10.6555 12.2939V23.4758C10.1221 23.9562 9.71733 24.5623 9.47794 25.2391C9.23854 25.9159 9.17214 26.6418 9.28479 27.3508C9.39744 28.0597 9.68554 28.7293 10.1229 29.2985C10.5603 29.8678 11.133 30.3186 11.7891 30.61C12.4451 30.9015 13.1636 31.0243 13.8792 30.9673C14.5948 30.9102 15.2848 30.6753 15.8864 30.2836C16.488 29.892 16.9821 29.3561 17.3238 28.7249C17.6656 28.0935 17.844 27.3868 17.843 26.6689C17.8417 26.0655 17.713 25.4691 17.4653 24.9188C17.2176 24.3686 16.8564 23.8768 16.4055 23.4758Z",stroke:t,strokeLinecap:"round",strokeLinejoin:"round",fill:"none"}),b.jsx("path",{d:"M13.5312 13.7314V25.2314",stroke:t,strokeLinecap:"round",strokeLinejoin:"round"}),b.jsx("path",{d:"M12.0938 26.6689C12.0938 27.0502 12.2452 27.4159 12.5148 27.6854C12.7844 27.955 13.15 28.1064 13.5312 28.1064C13.9125 28.1064 14.2781 27.955 14.5477 27.6854C14.8173 27.4159 14.9688 27.0502 14.9688 26.6689C14.9688 26.2877 14.8173 25.922 14.5477 25.6524C14.2781 25.3829 13.9125 25.2314 13.5312 25.2314C13.15 25.2314 12.7844 25.3829 12.5148 25.6524C12.2452 25.922 12.0938 26.2877 12.0938 26.6689Z",stroke:t,strokeLinecap:"round",strokeLinejoin:"round",fill:"none"}),b.jsx("path",{d:"M19.2812 15.1689C19.2812 16.6939 19.887 18.1565 20.9654 19.2348C22.0437 20.3132 23.5063 20.9189 25.0312 20.9189C26.5562 20.9189 28.0188 20.3132 29.0971 19.2348C30.1755 18.1565 30.7812 16.6939 30.7812 15.1689C30.7812 13.6439 30.1755 12.1814 29.0971 11.1031C28.0188 10.0247 26.5562 9.41895 25.0312 9.41895C23.5063 9.41895 22.0437 10.0247 20.9654 11.1031C19.887 12.1814 19.2812 13.6439 19.2812 15.1689Z",stroke:t,strokeLinecap:"round",strokeLinejoin:"round",fill:"none"}),b.jsx("circle",{cx:"26",cy:"14.2002",r:"1.5",stroke:t,fill:"none"})]}),b.jsx("defs",{children:b.jsx("clipPath",{id:"clip0_9974_15505",children:b.jsx("rect",{width:"24",height:"24",fill:"white",transform:"translate(8 8.2002)"})})})]}),eF=({fill:e="#F3F3F3",stroke:t="#BFBFBF",strokeWidth:n="1.5",...r})=>b.jsxs("svg",{width:"40",height:"41",viewBox:"0 0 40 41",fill:"none",xmlns:"http://www.w3.org/2000/svg",...r,children:[b.jsx("rect",{y:"0.200195",width:"40",height:"40",rx:"20",fill:e}),b.jsx("circle",{cx:"19.9997",cy:"20.1999",r:"10.6667",stroke:t,strokeWidth:n,fill:"none"}),b.jsx("circle",{cx:"15.9997",cy:"20.1999",r:"2.16667",stroke:t,fill:"none"}),b.jsx("circle",{cx:"23.9997",cy:"20.1999",r:"2.16667",stroke:t,fill:"none"})]}),tF=({fill:e="#F3F3F3",stroke:t="#BFBFBF",strokeWidth:n="1.5",...r})=>b.jsxs("svg",{width:"40",height:"41",viewBox:"0 0 40 41",fill:"none",xmlns:"http://www.w3.org/2000/svg",...r,children:[b.jsx("rect",{y:"0.200195",width:"40",height:"40",rx:"20",fill:e}),b.jsx("circle",{cx:"19.9997",cy:"20.1999",r:"9.91667",stroke:t,strokeWidth:n,fill:"none"}),b.jsx("circle",{cx:"20",cy:"20.2002",r:"7.5",stroke:t,fill:"none"}),b.jsx("circle",{cx:"23.3333",cy:"23.5335",r:"2.83333",stroke:t,fill:"none"})]}),nF=({fill:e="#F3F3F3",stroke:t="#BFBFBF",strokeWidth:n="1.5",...r})=>b.jsxs("svg",{width:"40",height:"41",viewBox:"0 0 40 41",fill:"none",xmlns:"http://www.w3.org/2000/svg",...r,children:[b.jsx("rect",{y:"0.200195",width:"40",height:"40",rx:"20",fill:e}),b.jsx("circle",{cx:"19.9997",cy:"20.1999",r:"9.91667",stroke:t,strokeWidth:n,fill:"none"}),b.jsx("circle",{cx:"20",cy:"20.2002",r:"7.5",stroke:t,fill:"none"}),b.jsx("path",{d:"M18 27.2002C18 22.2296 22.0294 18.2002 27 18.2002",stroke:t,fill:"none"})]}),rF=({fill:e="#F3F3F3",stroke:t="#BFBFBF",strokeWidth:n,...r})=>b.jsxs("svg",{width:"40",height:"41",viewBox:"0 0 40 41",fill:"none",xmlns:"http://www.w3.org/2000/svg",...r,children:[b.jsx("rect",{y:"0.200195",width:"40",height:"40",rx:"20",fill:e}),b.jsxs("g",{clipPath:"url(#clip0_9974_15517)",children:[b.jsx("path",{d:"M16.9055 23.4758V12.2939C16.9055 11.5314 16.6026 10.8002 16.0635 10.261C15.5243 9.72185 14.793 9.41895 14.0305 9.41895C13.268 9.41895 12.5368 9.72185 11.9976 10.261C11.4584 10.8002 11.1555 11.5314 11.1555 12.2939V23.4758C10.6221 23.9562 10.2173 24.5623 9.97794 25.2391C9.73854 25.9159 9.67214 26.6418 9.78479 27.3508C9.89744 28.0597 10.1855 28.7293 10.6229 29.2985C11.0603 29.8678 11.633 30.3186 12.2891 30.61C12.9451 30.9015 13.6636 31.0243 14.3792 30.9673C15.0948 30.9102 15.7848 30.6753 16.3864 30.2836C16.988 29.892 17.4821 29.3561 17.8238 28.7249C18.1656 28.0935 18.344 27.3868 18.343 26.6689C18.3417 26.0655 18.213 25.4691 17.9653 24.9188C17.7176 24.3686 17.3564 23.8768 16.9055 23.4758Z",stroke:t,strokeLinecap:"round",strokeLinejoin:"round",fill:"none"}),b.jsx("path",{d:"M14.0312 13.7314V25.2314",stroke:t,strokeLinecap:"round",strokeLinejoin:"round"}),b.jsx("path",{d:"M12.5938 26.6689C12.5938 27.0502 12.7452 27.4159 13.0148 27.6854C13.2844 27.955 13.65 28.1064 14.0312 28.1064C14.4125 28.1064 14.7781 27.955 15.0477 27.6854C15.3173 27.4159 15.4688 27.0502 15.4688 26.6689C15.4688 26.2877 15.3173 25.922 15.0477 25.6524C14.7781 25.3829 14.4125 25.2314 14.0312 25.2314C13.65 25.2314 13.2844 25.3829 13.0148 25.6524C12.7452 25.922 12.5938 26.2877 12.5938 26.6689Z",stroke:t,strokeLinecap:"round",strokeLinejoin:"round",fill:"none"}),b.jsx("path",{d:"M19.7812 15.1689C19.7812 16.6939 20.387 18.1565 21.4654 19.2348C22.5437 20.3132 24.0063 20.9189 25.5312 20.9189C27.0562 20.9189 28.5188 20.3132 29.5971 19.2348C30.6755 18.1565 31.2812 16.6939 31.2812 15.1689C31.2812 13.6439 30.6755 12.1814 29.5971 11.1031C28.5188 10.0247 27.0562 9.41895 25.5312 9.41895C24.0063 9.41895 22.5437 10.0247 21.4654 11.1031C20.387 12.1814 19.7812 13.6439 19.7812 15.1689Z",stroke:t,strokeLinecap:"round",strokeLinejoin:"round",fill:"none"}),b.jsx("circle",{cx:"25.5",cy:"15.2002",r:"3.5",stroke:t,fill:"none"}),b.jsx("path",{d:"M24.5 18.2002C24.5 15.9911 26.2909 14.2002 28.5 14.2002",stroke:t,fill:"none"})]}),b.jsx("defs",{children:b.jsx("clipPath",{id:"clip0_9974_15517",children:b.jsx("rect",{width:"24",height:"24",fill:"white",transform:"translate(8.5 8.2002)"})})})]}),iF=({fill:e="#F3F3F3",stroke:t="#BFBFBF",strokeWidth:n,...r})=>b.jsxs("svg",{width:"40",height:"41",viewBox:"0 0 40 41",fill:"none",xmlns:"http://www.w3.org/2000/svg",...r,children:[b.jsx("rect",{y:"0.200195",width:"40",height:"40",rx:"20",fill:e}),b.jsx("path",{d:"M30.2812 16.7731C30.2812 16.1812 30.2759 15.6334 30.2666 15.1276C30.2112 12.1999 28.0008 9.98896 25.0726 9.93412C24.5241 9.9239 23.9756 9.91884 23.4271 9.91895C23.4271 9.91895 22.9375 13.1012 22.9375 16.7731",stroke:t,strokeLinecap:"round",strokeLinejoin:"round",fill:"none"}),b.jsx("path",{d:"M30.2816 16.7734C30.2816 18.1967 30.0441 19.5513 29.767 20.6495C29.3435 22.3253 27.9277 23.4288 26.2019 23.5263C25.1752 23.5845 23.7936 23.6276 21.9587 23.6276C20.1237 23.6276 18.7421 23.5845 17.7154 23.5263C15.9897 23.4283 14.5738 22.3253 14.1503 20.6495C13.8732 19.5513 13.6357 18.1967 13.6357 16.7734H30.2816Z",stroke:t,strokeLinecap:"round",strokeLinejoin:"round",fill:"none"}),b.jsx("path",{d:"M28.8125 28.7676C28.8125 29.3519 28.5804 29.9123 28.1672 30.3254C27.7541 30.7386 27.1937 30.9707 26.6094 30.9707C26.0251 30.9707 25.4647 30.7386 25.0515 30.3254C24.6384 29.9123 24.4062 29.3519 24.4062 28.7676C24.4062 28.1833 24.6384 27.6229 25.0515 27.2097C25.4647 26.7966 26.0251 26.5645 26.6094 26.5645C27.1937 26.5645 27.7541 26.7966 28.1672 27.2097C28.5804 27.6229 28.8125 28.1833 28.8125 28.7676Z",stroke:t,strokeLinecap:"round",strokeLinejoin:"round",fill:"none"}),b.jsx("path",{d:"M15.1045 28.7676C15.1045 29.3519 15.3366 29.9123 15.7498 30.3254C16.1629 30.7386 16.7233 30.9707 17.3076 30.9707C17.8919 30.9707 18.4523 30.7386 18.8655 30.3254C19.2786 29.9123 19.5107 29.3519 19.5107 28.7676C19.5107 28.1833 19.2786 27.6229 18.8655 27.2097C18.4523 26.7966 17.8919 26.5645 17.3076 26.5645C16.7233 26.5645 16.1629 26.7966 15.7498 27.2097C15.3366 27.6229 15.1045 28.1833 15.1045 28.7676Z",stroke:t,strokeLinecap:"round",strokeLinejoin:"round",fill:"none"}),b.jsx("path",{d:"M13.6357 16.7731C13.225 14.8644 12.7891 12.9612 12.3281 11.0641C12.2267 10.6474 11.9437 10.2994 11.5291 10.1887C11.0419 10.0585 10.2757 9.91895 9.22949 9.91895",stroke:t,strokeLinecap:"round",strokeLinejoin:"round",fill:"none"})]}),oF=({className:e,size:t=20})=>b.jsx("svg",{width:t,height:t,viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:e,children:b.jsx("path",{d:"M9.25 14H10.75V9H9.25V14ZM9.99563 7.5C10.2069 7.5 10.3854 7.42854 10.5312 7.28563C10.6771 7.14271 10.75 6.96563 10.75 6.75438C10.75 6.54313 10.6785 6.36458 10.5356 6.21875C10.3927 6.07292 10.2156 6 10.0044 6C9.79313 6 9.61458 6.07146 9.46875 6.21437C9.32292 6.35729 9.25 6.53437 9.25 6.74562C9.25 6.95687 9.32146 7.13542 9.46438 7.28125C9.60729 7.42708 9.78438 7.5 9.99563 7.5ZM10.0058 18C8.90472 18 7.86806 17.7917 6.89583 17.375C5.92361 16.9583 5.07292 16.3854 4.34375 15.6562C3.61458 14.9271 3.04167 14.0767 2.625 13.105C2.20833 12.1333 2 11.0951 2 9.99042C2 8.88569 2.20833 7.85069 2.625 6.88542C3.04167 5.92014 3.61458 5.07292 4.34375 4.34375C5.07292 3.61458 5.92333 3.04167 6.895 2.625C7.86667 2.20833 8.90486 2 10.0096 2C11.1143 2 12.1493 2.20833 13.1146 2.625C14.0799 3.04167 14.9271 3.61458 15.6562 4.34375C16.3854 5.07292 16.9583 5.92167 17.375 6.89C17.7917 7.85847 18 8.89319 18 9.99417C18 11.0953 17.7917 12.1319 17.375 13.1042C16.9583 14.0764 16.3854 14.9271 15.6562 15.6562C14.9271 16.3854 14.0783 16.9583 13.11 17.375C12.1415 17.7917 11.1068 18 10.0058 18ZM10 16.5C11.8056 16.5 13.3403 15.8681 14.6042 14.6042C15.8681 13.3403 16.5 11.8056 16.5 10C16.5 8.19444 15.8681 6.65972 14.6042 5.39583C13.3403 4.13194 11.8056 3.5 10 3.5C8.19444 3.5 6.65972 4.13194 5.39583 5.39583C4.13194 6.65972 3.5 8.19444 3.5 10C3.5 11.8056 4.13194 13.3403 5.39583 14.6042C6.65972 15.8681 8.19444 16.5 10 16.5Z",fill:"#BFBFBF"})}),Ij=({className:e,size:t=20})=>b.jsx("svg",{width:t,height:t,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:e,children:b.jsx("path",{d:"M6.167 12H17.833",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})}),Nj=({className:e,size:t=20})=>b.jsx("svg",{width:t,height:t,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:e,children:b.jsx("path",{d:"M4 11.833C4 12.7535 3.2535 13.5 2.333 13.5L2.167 13.5C1.2465 13.5 0.5 12.7535 0.5 11.833L0.5 11.667C0.5 10.7465 1.2465 10 2.167 10L2.333 10C3.2535 10 4 10.7465 4 11.667L4 11.833ZM10.25 11.833C10.25 12.7535 9.5035 13.5 8.583 13.5L8.417 13.5C7.4965 13.5 6.75 12.7535 6.75 11.833L6.75 11.667C6.75 10.7465 7.4965 10 8.417 10L8.583 10C9.5035 10 10.25 10.7465 10.25 11.667L10.25 11.833ZM16.5 11.833C16.5 12.7535 15.7535 13.5 14.833 13.5L14.667 13.5C13.7465 13.5 13 12.7535 13 11.833L13 11.667C13 10.7465 13.7465 10 14.667 10L14.833 10C15.7535 10 16.5 10.7465 16.5 11.667L16.5 11.833Z",fill:"currentColor"})}),oC=({className:e,size:t=20})=>b.jsx("svg",{width:t,height:t,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:e,children:b.jsx("path",{d:"M6.167 11.9993H17.833M12 6.166V17.8327",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})}),aF=({activeValue:e,onIncrease:t,onDecrease:n})=>b.jsxs("div",{className:"flex h-12 flex-shrink-0 items-center justify-between self-stretch rounded-lg border border-input-stroke-tint bg-white",children:[b.jsx("button",{onClick:n,className:"group flex w-[44px] items-center justify-center self-stretch rounded-bl-lg rounded-br-sm rounded-tl-lg rounded-tr-sm p-2 transition-colors",children:b.jsx("div",{className:"flex h-5 w-5 flex-shrink-0 items-center justify-center",children:b.jsx(Ij,{size:20,className:"text-dark-blue transition-colors group-hover:text-gray-500"})})}),b.jsx("div",{className:"text-center font-ibm-plex-mono text-[.9375rem] font-medium leading-[140%] text-dark-blue",children:e}),b.jsx("button",{onClick:t,className:"group flex w-[44px] items-center justify-center self-stretch rounded-bl-sm rounded-br-lg rounded-tl-sm rounded-tr-lg p-2 transition-colors",children:b.jsx("div",{className:"flex h-5 w-5 flex-shrink-0 items-center justify-center",children:b.jsx(oC,{size:20,className:"text-dark-blue transition-colors group-hover:text-gray-500"})})})]}),aC=O.createContext({});function Ng(e){const t=O.useRef(null);return t.current===null&&(t.current=e()),t.current}const sC=typeof window<"u",lC=sC?O.useLayoutEffect:O.useEffect,A1=O.createContext(null);function uC(e,t){e.indexOf(t)===-1&&e.push(t)}function cC(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}const hl=(e,t,n)=>n>t?t:n{};const pl={},Rj=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e);function Lj(e){return typeof e=="object"&&e!==null}const Dj=e=>/^0[^.\s]+$/u.test(e);function dC(e){let t;return()=>(t===void 0&&(t=e()),t)}const ia=e=>e,sF=(e,t)=>n=>t(e(n)),Rg=(...e)=>e.reduce(sF),Qm=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r};class hC{constructor(){this.subscriptions=[]}add(t){return uC(this.subscriptions,t),()=>cC(this.subscriptions,t)}notify(t,n,r){const i=this.subscriptions.length;if(i)if(i===1)this.subscriptions[0](t,n,r);else for(let o=0;oe*1e3,ms=e=>e/1e3;function $j(e,t){return t?e*(1e3/t):0}const Fj=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,lF=1e-7,uF=12;function cF(e,t,n,r,i){let o,a,l=0;do a=t+(n-t)/2,o=Fj(a,r,i)-e,o>0?n=a:t=a;while(Math.abs(o)>lF&&++lcF(o,0,1,e,n);return o=>o===0||o===1?o:Fj(i(o),t,r)}const Bj=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,Vj=e=>t=>1-e(1-t),zj=Lg(.33,1.53,.69,.99),pC=Vj(zj),Uj=Bj(pC),Wj=e=>(e*=2)<1?.5*pC(e):.5*(2-Math.pow(2,-10*(e-1))),mC=e=>1-Math.sin(Math.acos(e)),Hj=Vj(mC),qj=Bj(mC),fF=Lg(.42,0,1,1),dF=Lg(0,0,.58,1),Kj=Lg(.42,0,.58,1),hF=e=>Array.isArray(e)&&typeof e[0]!="number",Gj=e=>Array.isArray(e)&&typeof e[0]=="number",pF={linear:ia,easeIn:fF,easeInOut:Kj,easeOut:dF,circIn:mC,circInOut:qj,circOut:Hj,backIn:pC,backInOut:Uj,backOut:zj,anticipate:Wj},mF=e=>typeof e=="string",yO=e=>{if(Gj(e)){fC(e.length===4);const[t,n,r,i]=e;return Lg(t,n,r,i)}else if(mF(e))return pF[e];return e},jv=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function gF(e,t){let n=new Set,r=new Set,i=!1,o=!1;const a=new WeakSet;let l={delta:0,timestamp:0,isProcessing:!1};function c(h){a.has(h)&&(d.schedule(h),e()),h(l)}const d={schedule:(h,m=!1,v=!1)=>{const w=v&&i?n:r;return m&&a.add(h),w.has(h)||w.add(h),h},cancel:h=>{r.delete(h),a.delete(h)},process:h=>{if(l=h,i){o=!0;return}i=!0,[n,r]=[r,n],n.forEach(c),n.clear(),i=!1,o&&(o=!1,d.process(h))}};return d}const vF=40;function Yj(e,t){let n=!1,r=!0;const i={delta:0,timestamp:0,isProcessing:!1},o=()=>n=!0,a=jv.reduce((A,I)=>(A[I]=gF(o),A),{}),{setup:l,read:c,resolveKeyframes:d,preUpdate:h,update:m,preRender:v,render:y,postRender:w}=a,C=()=>{const A=pl.useManualTiming?i.timestamp:performance.now();n=!1,pl.useManualTiming||(i.delta=r?1e3/60:Math.max(Math.min(A-i.timestamp,vF),1)),i.timestamp=A,i.isProcessing=!0,l.process(i),c.process(i),d.process(i),h.process(i),m.process(i),v.process(i),y.process(i),w.process(i),i.isProcessing=!1,n&&t&&(r=!1,e(C))},_=()=>{n=!0,r=!0,i.isProcessing||e(C)};return{schedule:jv.reduce((A,I)=>{const M=a[I];return A[I]=(N,L=!1,F=!1)=>(n||_(),M.schedule(N,L,F)),A},{}),cancel:A=>{for(let I=0;I(iy===void 0&&Xi.set(Jr.isProcessing||pl.useManualTiming?Jr.timestamp:performance.now()),iy),set:e=>{iy=e,queueMicrotask(yF)}},Zj=e=>t=>typeof t=="string"&&t.startsWith(e),gC=Zj("--"),xF=Zj("var(--"),vC=e=>xF(e)?bF.test(e.split("/*")[0].trim()):!1,bF=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,$h={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},Jm={...$h,transform:e=>hl(0,1,e)},Mv={...$h,default:1},Vm=e=>Math.round(e*1e5)/1e5,yC=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function wF(e){return e==null}const SF=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,xC=(e,t)=>n=>!!(typeof n=="string"&&SF.test(n)&&n.startsWith(e)||t&&!wF(n)&&Object.prototype.hasOwnProperty.call(n,t)),Xj=(e,t,n)=>r=>{if(typeof r!="string")return r;const[i,o,a,l]=r.match(yC);return{[e]:parseFloat(i),[t]:parseFloat(o),[n]:parseFloat(a),alpha:l!==void 0?parseFloat(l):1}},_F=e=>hl(0,255,e),Ob={...$h,transform:e=>Math.round(_F(e))},Dc={test:xC("rgb","red"),parse:Xj("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+Ob.transform(e)+", "+Ob.transform(t)+", "+Ob.transform(n)+", "+Vm(Jm.transform(r))+")"};function CF(e){let t="",n="",r="",i="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),i=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),i=e.substring(4,5),t+=t,n+=n,r+=r,i+=i),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:i?parseInt(i,16)/255:1}}const ES={test:xC("#"),parse:CF,transform:Dc.transform},Dg=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),pu=Dg("deg"),gs=Dg("%"),Ct=Dg("px"),EF=Dg("vh"),OF=Dg("vw"),xO={...gs,parse:e=>gs.parse(e)/100,transform:e=>gs.transform(e*100)},oh={test:xC("hsl","hue"),parse:Xj("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+gs.transform(Vm(t))+", "+gs.transform(Vm(n))+", "+Vm(Jm.transform(r))+")"},cr={test:e=>Dc.test(e)||ES.test(e)||oh.test(e),parse:e=>Dc.test(e)?Dc.parse(e):oh.test(e)?oh.parse(e):ES.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?Dc.transform(e):oh.transform(e),getAnimatableNone:e=>{const t=cr.parse(e);return t.alpha=0,cr.transform(t)}},PF=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function AF(e){var t,n;return isNaN(e)&&typeof e=="string"&&(((t=e.match(yC))==null?void 0:t.length)||0)+(((n=e.match(PF))==null?void 0:n.length)||0)>0}const Qj="number",Jj="color",TF="var",kF="var(",bO="${}",jF=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function eg(e){const t=e.toString(),n=[],r={color:[],number:[],var:[]},i=[];let o=0;const l=t.replace(jF,c=>(cr.test(c)?(r.color.push(o),i.push(Jj),n.push(cr.parse(c))):c.startsWith(kF)?(r.var.push(o),i.push(TF),n.push(c)):(r.number.push(o),i.push(Qj),n.push(parseFloat(c))),++o,bO)).split(bO);return{values:n,split:l,indexes:r,types:i}}function e6(e){return eg(e).values}function t6(e){const{split:t,types:n}=eg(e),r=t.length;return i=>{let o="";for(let a=0;atypeof e=="number"?0:cr.test(e)?cr.getAnimatableNone(e):e;function IF(e){const t=e6(e);return t6(e)(t.map(MF))}const wu={test:AF,parse:e6,createTransformer:t6,getAnimatableNone:IF};function Pb(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 NF({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let i=0,o=0,a=0;if(!t)i=o=a=n;else{const l=n<.5?n*(1+t):n+t-n*t,c=2*n-l;i=Pb(c,l,e+1/3),o=Pb(c,l,e),a=Pb(c,l,e-1/3)}return{red:Math.round(i*255),green:Math.round(o*255),blue:Math.round(a*255),alpha:r}}function my(e,t){return n=>n>0?t:e}const Un=(e,t,n)=>e+(t-e)*n,Ab=(e,t,n)=>{const r=e*e,i=n*(t*t-r)+r;return i<0?0:Math.sqrt(i)},RF=[ES,Dc,oh],LF=e=>RF.find(t=>t.test(e));function wO(e){const t=LF(e);if(!t)return!1;let n=t.parse(e);return t===oh&&(n=NF(n)),n}const SO=(e,t)=>{const n=wO(e),r=wO(t);if(!n||!r)return my(e,t);const i={...n};return o=>(i.red=Ab(n.red,r.red,o),i.green=Ab(n.green,r.green,o),i.blue=Ab(n.blue,r.blue,o),i.alpha=Un(n.alpha,r.alpha,o),Dc.transform(i))},OS=new Set(["none","hidden"]);function DF(e,t){return OS.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function $F(e,t){return n=>Un(e,t,n)}function bC(e){return typeof e=="number"?$F:typeof e=="string"?vC(e)?my:cr.test(e)?SO:VF:Array.isArray(e)?n6:typeof e=="object"?cr.test(e)?SO:FF:my}function n6(e,t){const n=[...e],r=n.length,i=e.map((o,a)=>bC(o)(o,t[a]));return o=>{for(let a=0;a{for(const o in r)n[o]=r[o](i);return n}}function BF(e,t){const n=[],r={color:0,var:0,number:0};for(let i=0;i{const n=wu.createTransformer(t),r=eg(e),i=eg(t);return r.indexes.var.length===i.indexes.var.length&&r.indexes.color.length===i.indexes.color.length&&r.indexes.number.length>=i.indexes.number.length?OS.has(e)&&!i.values.length||OS.has(t)&&!r.values.length?DF(e,t):Rg(n6(BF(r,i),i.values),n):my(e,t)};function r6(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?Un(e,t,n):bC(e)(e,t)}const zF=e=>{const t=({timestamp:n})=>e(n);return{start:(n=!0)=>jn.update(t,n),stop:()=>ml(t),now:()=>Jr.isProcessing?Jr.timestamp:Xi.now()}},i6=(e,t,n=10)=>{let r="";const i=Math.max(Math.round(t/n),2);for(let o=0;o=gy?1/0:t}function UF(e,t=100,n){const r=n({...e,keyframes:[0,t]}),i=Math.min(wC(r),gy);return{type:"keyframes",ease:o=>r.next(i*o).value/t,duration:ms(i)}}const WF=5;function o6(e,t,n){const r=Math.max(t-WF,0);return $j(n-e(r),t-r)}const Qn={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1},_O=.001;function HF({duration:e=Qn.duration,bounce:t=Qn.bounce,velocity:n=Qn.velocity,mass:r=Qn.mass}){let i,o,a=1-t;a=hl(Qn.minDamping,Qn.maxDamping,a),e=hl(Qn.minDuration,Qn.maxDuration,ms(e)),a<1?(i=d=>{const h=d*a,m=h*e,v=h-n,y=PS(d,a),w=Math.exp(-m);return _O-v/y*w},o=d=>{const m=d*a*e,v=m*n+n,y=Math.pow(a,2)*Math.pow(d,2)*e,w=Math.exp(-m),C=PS(Math.pow(d,2),a);return(-i(d)+_O>0?-1:1)*((v-y)*w)/C}):(i=d=>{const h=Math.exp(-d*e),m=(d-n)*e+1;return-.001+h*m},o=d=>{const h=Math.exp(-d*e),m=(n-d)*(e*e);return h*m});const l=5/e,c=KF(i,o,l);if(e=ps(e),isNaN(c))return{stiffness:Qn.stiffness,damping:Qn.damping,duration:e};{const d=Math.pow(c,2)*r;return{stiffness:d,damping:a*2*Math.sqrt(r*d),duration:e}}}const qF=12;function KF(e,t,n){let r=n;for(let i=1;ie[n]!==void 0)}function ZF(e){let t={velocity:Qn.velocity,stiffness:Qn.stiffness,damping:Qn.damping,mass:Qn.mass,isResolvedFromDuration:!1,...e};if(!CO(e,YF)&&CO(e,GF))if(e.visualDuration){const n=e.visualDuration,r=2*Math.PI/(n*1.2),i=r*r,o=2*hl(.05,1,1-(e.bounce||0))*Math.sqrt(i);t={...t,mass:Qn.mass,stiffness:i,damping:o}}else{const n=HF(e);t={...t,...n,mass:Qn.mass},t.isResolvedFromDuration=!0}return t}function vy(e=Qn.visualDuration,t=Qn.bounce){const n=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:t}:e;let{restSpeed:r,restDelta:i}=n;const o=n.keyframes[0],a=n.keyframes[n.keyframes.length-1],l={done:!1,value:o},{stiffness:c,damping:d,mass:h,duration:m,velocity:v,isResolvedFromDuration:y}=ZF({...n,velocity:-ms(n.velocity||0)}),w=v||0,C=d/(2*Math.sqrt(c*h)),_=a-o,P=ms(Math.sqrt(c/h)),T=Math.abs(_)<5;r||(r=T?Qn.restSpeed.granular:Qn.restSpeed.default),i||(i=T?Qn.restDelta.granular:Qn.restDelta.default);let A;if(C<1){const M=PS(P,C);A=N=>{const L=Math.exp(-C*P*N);return a-L*((w+C*P*_)/M*Math.sin(M*N)+_*Math.cos(M*N))}}else if(C===1)A=M=>a-Math.exp(-P*M)*(_+(w+P*_)*M);else{const M=P*Math.sqrt(C*C-1);A=N=>{const L=Math.exp(-C*P*N),F=Math.min(M*N,300);return a-L*((w+C*P*_)*Math.sinh(F)+M*_*Math.cosh(F))/M}}const I={calculatedDuration:y&&m||null,next:M=>{const N=A(M);if(y)l.done=M>=m;else{let L=M===0?w:0;C<1&&(L=M===0?ps(w):o6(A,M,N));const F=Math.abs(L)<=r,B=Math.abs(a-N)<=i;l.done=F&&B}return l.value=l.done?a:N,l},toString:()=>{const M=Math.min(wC(I),gy),N=i6(L=>I.next(M*L).value,M,30);return M+"ms "+N},toTransition:()=>{}};return I}vy.applyToOptions=e=>{const t=UF(e,100,vy);return e.ease=t.ease,e.duration=ps(t.duration),e.type="keyframes",e};function AS({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:i=10,bounceStiffness:o=500,modifyTarget:a,min:l,max:c,restDelta:d=.5,restSpeed:h}){const m=e[0],v={done:!1,value:m},y=F=>l!==void 0&&Fc,w=F=>l===void 0?c:c===void 0||Math.abs(l-F)-C*Math.exp(-F/r),A=F=>P+T(F),I=F=>{const B=T(F),U=A(F);v.done=Math.abs(B)<=d,v.value=v.done?P:U};let M,N;const L=F=>{y(v.value)&&(M=F,N=vy({keyframes:[v.value,w(v.value)],velocity:o6(A,F,v.value),damping:i,stiffness:o,restDelta:d,restSpeed:h}))};return L(0),{calculatedDuration:null,next:F=>{let B=!1;return!N&&M===void 0&&(B=!0,I(F),L(F)),M!==void 0&&F>=M?N.next(F-M):(!B&&I(F),v)}}}function XF(e,t,n){const r=[],i=n||pl.mix||r6,o=e.length-1;for(let a=0;at[0];if(o===2&&t[0]===t[1])return()=>t[1];const a=e[0]===e[1];e[0]>e[o-1]&&(e=[...e].reverse(),t=[...t].reverse());const l=XF(t,r,i),c=l.length,d=h=>{if(a&&h1)for(;md(hl(e[0],e[o-1],h)):d}function QF(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const i=Qm(0,t,r);e.push(Un(n,1,i))}}function JF(e){const t=[0];return QF(t,e.length-1),t}function eB(e,t){return e.map(n=>n*t)}function tB(e,t){return e.map(()=>t||Kj).splice(0,e.length-1)}function zm({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const i=hF(r)?r.map(yO):yO(r),o={done:!1,value:t[0]},a=eB(n&&n.length===t.length?n:JF(t),e),l=a6(a,t,{ease:Array.isArray(i)?i:tB(t,i)});return{calculatedDuration:e,next:c=>(o.value=l(c),o.done=c>=e,o)}}const nB=e=>e!==null;function SC(e,{repeat:t,repeatType:n="loop"},r,i=1){const o=e.filter(nB),l=i<0||t&&n!=="loop"&&t%2===1?0:o.length-1;return!l||r===void 0?o[l]:r}const rB={decay:AS,inertia:AS,tween:zm,keyframes:zm,spring:vy};function s6(e){typeof e.type=="string"&&(e.type=rB[e.type])}class _C{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(t=>{this.resolve=t})}notifyFinished(){this.resolve()}then(t,n){return this.finished.then(t,n)}}const iB=e=>e/100;class T1 extends _C{constructor(t){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.stop=()=>{var r,i;const{motionValue:n}=this.options;n&&n.updatedAt!==Xi.now()&&this.tick(Xi.now()),this.isStopped=!0,this.state!=="idle"&&(this.teardown(),(i=(r=this.options).onStop)==null||i.call(r))},this.options=t,this.initAnimation(),this.play(),t.autoplay===!1&&this.pause()}initAnimation(){const{options:t}=this;s6(t);const{type:n=zm,repeat:r=0,repeatDelay:i=0,repeatType:o,velocity:a=0}=t;let{keyframes:l}=t;const c=n||zm;c!==zm&&typeof l[0]!="number"&&(this.mixKeyframes=Rg(iB,r6(l[0],l[1])),l=[0,100]);const d=c({...t,keyframes:l});o==="mirror"&&(this.mirroredGenerator=c({...t,keyframes:[...l].reverse(),velocity:-a})),d.calculatedDuration===null&&(d.calculatedDuration=wC(d));const{calculatedDuration:h}=d;this.calculatedDuration=h,this.resolvedDuration=h+i,this.totalDuration=this.resolvedDuration*(r+1)-i,this.generator=d}updateTime(t){const n=Math.round(t-this.startTime)*this.playbackSpeed;this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=n}tick(t,n=!1){const{generator:r,totalDuration:i,mixKeyframes:o,mirroredGenerator:a,resolvedDuration:l,calculatedDuration:c}=this;if(this.startTime===null)return r.next(0);const{delay:d=0,keyframes:h,repeat:m,repeatType:v,repeatDelay:y,type:w,onUpdate:C,finalKeyframe:_}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-i/this.speed,this.startTime)),n?this.currentTime=t:this.updateTime(t);const P=this.currentTime-d*(this.playbackSpeed>=0?1:-1),T=this.playbackSpeed>=0?P<0:P>i;this.currentTime=Math.max(P,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=i);let A=this.currentTime,I=r;if(m){const F=Math.min(this.currentTime,i)/l;let B=Math.floor(F),U=F%1;!U&&F>=1&&(U=1),U===1&&B--,B=Math.min(B,m+1),!!(B%2)&&(v==="reverse"?(U=1-U,y&&(U-=y/l)):v==="mirror"&&(I=a)),A=hl(0,1,U)*l}const M=T?{done:!1,value:h[0]}:I.next(A);o&&(M.value=o(M.value));let{done:N}=M;!T&&c!==null&&(N=this.playbackSpeed>=0?this.currentTime>=i:this.currentTime<=0);const L=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&N);return L&&w!==AS&&(M.value=SC(h,this.options,_,this.speed)),C&&C(M.value),L&&this.finish(),M}then(t,n){return this.finished.then(t,n)}get duration(){return ms(this.calculatedDuration)}get time(){return ms(this.currentTime)}set time(t){var n;t=ps(t),this.currentTime=t,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.playbackSpeed),(n=this.driver)==null||n.start(!1)}get speed(){return this.playbackSpeed}set speed(t){this.updateTime(Xi.now());const n=this.playbackSpeed!==t;this.playbackSpeed=t,n&&(this.time=ms(this.currentTime))}play(){var i,o;if(this.isStopped)return;const{driver:t=zF,startTime:n}=this.options;this.driver||(this.driver=t(a=>this.tick(a))),(o=(i=this.options).onPlay)==null||o.call(i);const r=this.driver.now();this.state==="finished"?(this.updateFinished(),this.startTime=r):this.holdTime!==null?this.startTime=r-this.holdTime:this.startTime||(this.startTime=n??r),this.state==="finished"&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state="running",this.driver.start()}pause(){this.state="paused",this.updateTime(Xi.now()),this.holdTime=this.currentTime}complete(){this.state!=="running"&&this.play(),this.state="finished",this.holdTime=null}finish(){var t,n;this.notifyFinished(),this.teardown(),this.state="finished",(n=(t=this.options).onComplete)==null||n.call(t)}cancel(){var t,n;this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),(n=(t=this.options).onCancel)==null||n.call(t)}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}attachTimeline(t){var n;return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),(n=this.driver)==null||n.stop(),t.observe(this)}}function oB(e){for(let t=1;te*180/Math.PI,TS=e=>{const t=$c(Math.atan2(e[1],e[0]));return kS(t)},aB={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:TS,rotateZ:TS,skewX:e=>$c(Math.atan(e[1])),skewY:e=>$c(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},kS=e=>(e=e%360,e<0&&(e+=360),e),EO=TS,OO=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),PO=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),sB={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:OO,scaleY:PO,scale:e=>(OO(e)+PO(e))/2,rotateX:e=>kS($c(Math.atan2(e[6],e[5]))),rotateY:e=>kS($c(Math.atan2(-e[2],e[0]))),rotateZ:EO,rotate:EO,skewX:e=>$c(Math.atan(e[4])),skewY:e=>$c(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function jS(e){return e.includes("scale")?1:0}function MS(e,t){if(!e||e==="none")return jS(t);const n=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let r,i;if(n)r=sB,i=n;else{const l=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);r=aB,i=l}if(!i)return jS(t);const o=r[t],a=i[1].split(",").map(uB);return typeof o=="function"?o(a):a[o]}const lB=(e,t)=>{const{transform:n="none"}=getComputedStyle(e);return MS(n,t)};function uB(e){return parseFloat(e.trim())}const Fh=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Bh=new Set(Fh),AO=e=>e===$h||e===Ct,cB=new Set(["x","y","z"]),fB=Fh.filter(e=>!cB.has(e));function dB(e){const t=[];return fB.forEach(n=>{const r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t}const Wc={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,{transform:t})=>MS(t,"x"),y:(e,{transform:t})=>MS(t,"y")};Wc.translateX=Wc.x;Wc.translateY=Wc.y;const Hc=new Set;let IS=!1,NS=!1,RS=!1;function l6(){if(NS){const e=Array.from(Hc).filter(r=>r.needsMeasurement),t=new Set(e.map(r=>r.element)),n=new Map;t.forEach(r=>{const i=dB(r);i.length&&(n.set(r,i),r.render())}),e.forEach(r=>r.measureInitialState()),t.forEach(r=>{r.render();const i=n.get(r);i&&i.forEach(([o,a])=>{var l;(l=r.getValue(o))==null||l.set(a)})}),e.forEach(r=>r.measureEndState()),e.forEach(r=>{r.suspendedScrollY!==void 0&&window.scrollTo(0,r.suspendedScrollY)})}NS=!1,IS=!1,Hc.forEach(e=>e.complete(RS)),Hc.clear()}function u6(){Hc.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(NS=!0)})}function hB(){RS=!0,u6(),l6(),RS=!1}class CC{constructor(t,n,r,i,o,a=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...t],this.onComplete=n,this.name=r,this.motionValue=i,this.element=o,this.isAsync=a}scheduleResolve(){this.state="scheduled",this.isAsync?(Hc.add(this),IS||(IS=!0,jn.read(u6),jn.resolveKeyframes(l6))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:n,element:r,motionValue:i}=this;if(t[0]===null){const o=i==null?void 0:i.get(),a=t[t.length-1];if(o!==void 0)t[0]=o;else if(r&&n){const l=r.readValue(n,a);l!=null&&(t[0]=l)}t[0]===void 0&&(t[0]=a),i&&o===void 0&&i.set(t[0])}oB(t)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(t=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,t),Hc.delete(this)}cancel(){this.state==="scheduled"&&(Hc.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}}const pB=e=>e.startsWith("--");function mB(e,t,n){pB(t)?e.style.setProperty(t,n):e.style[t]=n}const gB=dC(()=>window.ScrollTimeline!==void 0),vB={};function yB(e,t){const n=dC(e);return()=>vB[t]??n()}const c6=yB(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),Nm=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,TO={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Nm([0,.65,.55,1]),circOut:Nm([.55,0,1,.45]),backIn:Nm([.31,.01,.66,-.59]),backOut:Nm([.33,1.53,.69,.99])};function f6(e,t){if(e)return typeof e=="function"?c6()?i6(e,t):"ease-out":Gj(e)?Nm(e):Array.isArray(e)?e.map(n=>f6(n,t)||TO.easeOut):TO[e]}function xB(e,t,n,{delay:r=0,duration:i=300,repeat:o=0,repeatType:a="loop",ease:l="easeOut",times:c}={},d=void 0){const h={[t]:n};c&&(h.offset=c);const m=f6(l,i);Array.isArray(m)&&(h.easing=m);const v={delay:r,duration:i,easing:Array.isArray(m)?"linear":m,fill:"both",iterations:o+1,direction:a==="reverse"?"alternate":"normal"};return d&&(v.pseudoElement=d),e.animate(h,v)}function d6(e){return typeof e=="function"&&"applyToOptions"in e}function bB({type:e,...t}){return d6(e)&&c6()?e.applyToOptions(t):(t.duration??(t.duration=300),t.ease??(t.ease="easeOut"),t)}class wB extends _C{constructor(t){if(super(),this.finishedTime=null,this.isStopped=!1,!t)return;const{element:n,name:r,keyframes:i,pseudoElement:o,allowFlatten:a=!1,finalKeyframe:l,onComplete:c}=t;this.isPseudoElement=!!o,this.allowFlatten=a,this.options=t,fC(typeof t.type!="string");const d=bB(t);this.animation=xB(n,r,i,d,o),d.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!o){const h=SC(i,this.options,l,this.speed);this.updateMotionValue?this.updateMotionValue(h):mB(n,r,h),this.animation.cancel()}c==null||c(),this.notifyFinished()}}play(){this.isStopped||(this.animation.play(),this.state==="finished"&&this.updateFinished())}pause(){this.animation.pause()}complete(){var t,n;(n=(t=this.animation).finish)==null||n.call(t)}cancel(){try{this.animation.cancel()}catch{}}stop(){if(this.isStopped)return;this.isStopped=!0;const{state:t}=this;t==="idle"||t==="finished"||(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){var t,n;this.isPseudoElement||(n=(t=this.animation).commitStyles)==null||n.call(t)}get duration(){var n,r;const t=((r=(n=this.animation.effect)==null?void 0:n.getComputedTiming)==null?void 0:r.call(n).duration)||0;return ms(Number(t))}get time(){return ms(Number(this.animation.currentTime)||0)}set time(t){this.finishedTime=null,this.animation.currentTime=ps(t)}get speed(){return this.animation.playbackRate}set speed(t){t<0&&(this.finishedTime=null),this.animation.playbackRate=t}get state(){return this.finishedTime!==null?"finished":this.animation.playState}get startTime(){return Number(this.animation.startTime)}set startTime(t){this.animation.startTime=t}attachTimeline({timeline:t,observe:n}){var r;return this.allowFlatten&&((r=this.animation.effect)==null||r.updateTiming({easing:"linear"})),this.animation.onfinish=null,t&&gB()?(this.animation.timeline=t,ia):n(this)}}const h6={anticipate:Wj,backInOut:Uj,circInOut:qj};function SB(e){return e in h6}function _B(e){typeof e.ease=="string"&&SB(e.ease)&&(e.ease=h6[e.ease])}const kO=10;class CB extends wB{constructor(t){_B(t),s6(t),super(t),t.startTime&&(this.startTime=t.startTime),this.options=t}updateMotionValue(t){const{motionValue:n,onUpdate:r,onComplete:i,element:o,...a}=this.options;if(!n)return;if(t!==void 0){n.set(t);return}const l=new T1({...a,autoplay:!1}),c=ps(this.finishedTime??this.time);n.setWithVelocity(l.sample(c-kO).value,l.sample(c).value,kO),l.stop()}}const jO=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(wu.test(e)||e==="0")&&!e.startsWith("url("));function EB(e){const t=e[0];if(e.length===1)return!0;for(let n=0;nObject.hasOwnProperty.call(Element.prototype,"animate"));function TB(e){var h;const{motionValue:t,name:n,repeatDelay:r,repeatType:i,damping:o,type:a}=e;if(!(((h=t==null?void 0:t.owner)==null?void 0:h.current)instanceof HTMLElement))return!1;const{onUpdate:c,transformTemplate:d}=t.owner.getProps();return AB()&&n&&PB.has(n)&&(n!=="transform"||!d)&&!c&&!r&&i!=="mirror"&&o!==0&&a!=="inertia"}const kB=40;class jB extends _C{constructor({autoplay:t=!0,delay:n=0,type:r="keyframes",repeat:i=0,repeatDelay:o=0,repeatType:a="loop",keyframes:l,name:c,motionValue:d,element:h,...m}){var w;super(),this.stop=()=>{var C,_;this._animation&&(this._animation.stop(),(C=this.stopTimeline)==null||C.call(this)),(_=this.keyframeResolver)==null||_.cancel()},this.createdAt=Xi.now();const v={autoplay:t,delay:n,type:r,repeat:i,repeatDelay:o,repeatType:a,name:c,motionValue:d,element:h,...m},y=(h==null?void 0:h.KeyframeResolver)||CC;this.keyframeResolver=new y(l,(C,_,P)=>this.onKeyframesResolved(C,_,v,!P),c,d,h),(w=this.keyframeResolver)==null||w.scheduleResolve()}onKeyframesResolved(t,n,r,i){this.keyframeResolver=void 0;const{name:o,type:a,velocity:l,delay:c,isHandoff:d,onUpdate:h}=r;this.resolvedAt=Xi.now(),OB(t,o,a,l)||((pl.instantAnimations||!c)&&(h==null||h(SC(t,r,n))),t[0]=t[t.length-1],r.duration=0,r.repeat=0);const v={startTime:i?this.resolvedAt?this.resolvedAt-this.createdAt>kB?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:n,...r,keyframes:t},y=!d&&TB(v)?new CB({...v,element:v.motionValue.owner.current}):new T1(v);y.finished.then(()=>this.notifyFinished()).catch(ia),this.pendingTimeline&&(this.stopTimeline=y.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=y}get finished(){return this._animation?this.animation.finished:this._finished}then(t,n){return this.finished.finally(t).then(()=>{})}get animation(){var t;return this._animation||((t=this.keyframeResolver)==null||t.resume(),hB()),this._animation}get duration(){return this.animation.duration}get time(){return this.animation.time}set time(t){this.animation.time=t}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(t){this.animation.speed=t}get startTime(){return this.animation.startTime}attachTimeline(t){return this._animation?this.stopTimeline=this.animation.attachTimeline(t):this.pendingTimeline=t,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){var t;this._animation&&this.animation.cancel(),(t=this.keyframeResolver)==null||t.cancel()}}const MB=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function IB(e){const t=MB.exec(e);if(!t)return[,];const[,n,r,i]=t;return[`--${n??r}`,i]}function p6(e,t,n=1){const[r,i]=IB(e);if(!r)return;const o=window.getComputedStyle(t).getPropertyValue(r);if(o){const a=o.trim();return Rj(a)?parseFloat(a):a}return vC(i)?p6(i,t,n+1):i}function EC(e,t){return(e==null?void 0:e[t])??(e==null?void 0:e.default)??e}const m6=new Set(["width","height","top","left","right","bottom",...Fh]),NB={test:e=>e==="auto",parse:e=>e},g6=e=>t=>t.test(e),v6=[$h,Ct,gs,pu,OF,EF,NB],MO=e=>v6.find(g6(e));function RB(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||Dj(e):!0}const LB=new Set(["brightness","contrast","saturate","opacity"]);function DB(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(yC)||[];if(!r)return e;const i=n.replace(r,"");let o=LB.has(t)?1:0;return r!==n&&(o*=100),t+"("+o+i+")"}const $B=/\b([a-z-]*)\(.*?\)/gu,LS={...wu,getAnimatableNone:e=>{const t=e.match($B);return t?t.map(DB).join(" "):e}},IO={...$h,transform:Math.round},FB={rotate:pu,rotateX:pu,rotateY:pu,rotateZ:pu,scale:Mv,scaleX:Mv,scaleY:Mv,scaleZ:Mv,skew:pu,skewX:pu,skewY:pu,distance:Ct,translateX:Ct,translateY:Ct,translateZ:Ct,x:Ct,y:Ct,z:Ct,perspective:Ct,transformPerspective:Ct,opacity:Jm,originX:xO,originY:xO,originZ:Ct},OC={borderWidth:Ct,borderTopWidth:Ct,borderRightWidth:Ct,borderBottomWidth:Ct,borderLeftWidth:Ct,borderRadius:Ct,radius:Ct,borderTopLeftRadius:Ct,borderTopRightRadius:Ct,borderBottomRightRadius:Ct,borderBottomLeftRadius:Ct,width:Ct,maxWidth:Ct,height:Ct,maxHeight:Ct,top:Ct,right:Ct,bottom:Ct,left:Ct,padding:Ct,paddingTop:Ct,paddingRight:Ct,paddingBottom:Ct,paddingLeft:Ct,margin:Ct,marginTop:Ct,marginRight:Ct,marginBottom:Ct,marginLeft:Ct,backgroundPositionX:Ct,backgroundPositionY:Ct,...FB,zIndex:IO,fillOpacity:Jm,strokeOpacity:Jm,numOctaves:IO},BB={...OC,color:cr,backgroundColor:cr,outlineColor:cr,fill:cr,stroke:cr,borderColor:cr,borderTopColor:cr,borderRightColor:cr,borderBottomColor:cr,borderLeftColor:cr,filter:LS,WebkitFilter:LS},y6=e=>BB[e];function x6(e,t){let n=y6(e);return n!==LS&&(n=wu),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const VB=new Set(["auto","none","0"]);function zB(e,t,n){let r=0,i;for(;r{t.getValue(c).set(d)}),this.resolveNoneKeyframes()}}function WB(e,t,n){if(e instanceof EventTarget)return[e];if(typeof e=="string"){let r=document;const i=(n==null?void 0:n[e])??r.querySelectorAll(e);return i?Array.from(i):[]}return Array.from(e)}const b6=(e,t)=>t&&typeof e=="number"?t.transform(e):e;function w6(e){return Lj(e)&&"offsetHeight"in e}const NO=30,HB=e=>!isNaN(parseFloat(e)),Um={current:void 0};class qB{constructor(t,n={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=(r,i=!0)=>{var a,l;const o=Xi.now();if(this.updatedAt!==o&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(r),this.current!==this.prev&&((a=this.events.change)==null||a.notify(this.current),this.dependents))for(const c of this.dependents)c.dirty();i&&((l=this.events.renderRequest)==null||l.notify(this.current))},this.hasAnimated=!1,this.setCurrent(t),this.owner=n.owner}setCurrent(t){this.current=t,this.updatedAt=Xi.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=HB(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return this.on("change",t)}on(t,n){this.events[t]||(this.events[t]=new hC);const r=this.events[t].add(n);return t==="change"?()=>{r(),jn.read(()=>{this.events.change.getSize()||this.stop()})}:r}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,n){this.passiveEffect=t,this.stopPassiveEffect=n}set(t,n=!0){!n||!this.passiveEffect?this.updateAndNotify(t,n):this.passiveEffect(t,this.updateAndNotify)}setWithVelocity(t,n,r){this.set(n),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-r}jump(t,n=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,n&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){var t;(t=this.events.change)==null||t.notify(this.current)}addDependent(t){this.dependents||(this.dependents=new Set),this.dependents.add(t)}removeDependent(t){this.dependents&&this.dependents.delete(t)}get(){return Um.current&&Um.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){const t=Xi.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>NO)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,NO);return $j(parseFloat(this.current)-parseFloat(this.prevFrameValue),n)}start(t){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=t(n),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){var t,n;(t=this.dependents)==null||t.clear(),(n=this.events.destroy)==null||n.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function nf(e,t){return new qB(e,t)}const{schedule:PC}=Yj(queueMicrotask,!1),Pa={x:!1,y:!1};function S6(){return Pa.x||Pa.y}function KB(e){return e==="x"||e==="y"?Pa[e]?null:(Pa[e]=!0,()=>{Pa[e]=!1}):Pa.x||Pa.y?null:(Pa.x=Pa.y=!0,()=>{Pa.x=Pa.y=!1})}function _6(e,t){const n=WB(e),r=new AbortController,i={passive:!0,...t,signal:r.signal};return[n,i,()=>r.abort()]}function RO(e){return!(e.pointerType==="touch"||S6())}function GB(e,t,n={}){const[r,i,o]=_6(e,n),a=l=>{if(!RO(l))return;const{target:c}=l,d=t(c,l);if(typeof d!="function"||!c)return;const h=m=>{RO(m)&&(d(m),c.removeEventListener("pointerleave",h))};c.addEventListener("pointerleave",h,i)};return r.forEach(l=>{l.addEventListener("pointerenter",a,i)}),o}const C6=(e,t)=>t?e===t?!0:C6(e,t.parentElement):!1,AC=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1,YB=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function ZB(e){return YB.has(e.tagName)||e.tabIndex!==-1}const oy=new WeakSet;function LO(e){return t=>{t.key==="Enter"&&e(t)}}function Tb(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}const XB=(e,t)=>{const n=e.currentTarget;if(!n)return;const r=LO(()=>{if(oy.has(n))return;Tb(n,"down");const i=LO(()=>{Tb(n,"up")}),o=()=>Tb(n,"cancel");n.addEventListener("keyup",i,t),n.addEventListener("blur",o,t)});n.addEventListener("keydown",r,t),n.addEventListener("blur",()=>n.removeEventListener("keydown",r),t)};function DO(e){return AC(e)&&!S6()}function QB(e,t,n={}){const[r,i,o]=_6(e,n),a=l=>{const c=l.currentTarget;if(!DO(l))return;oy.add(c);const d=t(c,l),h=(y,w)=>{window.removeEventListener("pointerup",m),window.removeEventListener("pointercancel",v),oy.has(c)&&oy.delete(c),DO(y)&&typeof d=="function"&&d(y,{success:w})},m=y=>{h(y,c===window||c===document||n.useGlobalTarget||C6(c,y.target))},v=y=>{h(y,!1)};window.addEventListener("pointerup",m,i),window.addEventListener("pointercancel",v,i)};return r.forEach(l=>{(n.useGlobalTarget?window:l).addEventListener("pointerdown",a,i),w6(l)&&(l.addEventListener("focus",d=>XB(d,i)),!ZB(l)&&!l.hasAttribute("tabindex")&&(l.tabIndex=0))}),o}function E6(e){return Lj(e)&&"ownerSVGElement"in e}function JB(e){return E6(e)&&e.tagName==="svg"}function eV(...e){const t=!Array.isArray(e[0]),n=t?0:-1,r=e[0+n],i=e[1+n],o=e[2+n],a=e[3+n],l=a6(i,o,a);return t?l(r):l}const Dr=e=>!!(e&&e.getVelocity);function tV(e,t,n){const r=e.get();let i=null,o=r,a;const l=typeof r=="string"?r.replace(/[\d.-]/g,""):void 0,c=()=>{i&&(i.stop(),i=null)},d=()=>{c(),i=new T1({keyframes:[FO(e.get()),FO(o)],velocity:e.getVelocity(),type:"spring",restDelta:.001,restSpeed:.01,...n,onUpdate:a})};e.attach((m,v)=>(o=m,a=y=>v($O(y,l)),jn.postRender(d),e.get()),c);let h;return Dr(t)&&(h=t.on("change",m=>e.set($O(m,l))),e.on("destroy",h)),h}function $O(e,t){return t?e+t:e}function FO(e){return typeof e=="number"?e:parseFloat(e)}const nV=[...v6,cr,wu],rV=e=>nV.find(g6(e)),$g=O.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});class iV extends O.Component{getSnapshotBeforeUpdate(t){const n=this.props.childRef.current;if(n&&t.isPresent&&!this.props.isPresent){const r=n.offsetParent,i=w6(r)&&r.offsetWidth||0,o=this.props.sizeRef.current;o.height=n.offsetHeight||0,o.width=n.offsetWidth||0,o.top=n.offsetTop,o.left=n.offsetLeft,o.right=i-o.width-o.left}return null}componentDidUpdate(){}render(){return this.props.children}}function oV({children:e,isPresent:t,anchorX:n,root:r}){const i=O.useId(),o=O.useRef(null),a=O.useRef({width:0,height:0,top:0,left:0,right:0}),{nonce:l}=O.useContext($g);return O.useInsertionEffect(()=>{const{width:c,height:d,top:h,left:m,right:v}=a.current;if(t||!o.current||!c||!d)return;const y=n==="left"?`left: ${m}`:`right: ${v}`;o.current.dataset.motionPopId=i;const w=document.createElement("style");l&&(w.nonce=l);const C=r??document.head;return C.appendChild(w),w.sheet&&w.sheet.insertRule(` [data-motion-pop-id="${i}"] { position: absolute !important; width: ${c}px !important; height: ${d}px !important; ${y}px !important; top: ${h}px !important; } `),()=>{C.removeChild(w),C.contains(w)&&C.removeChild(w)}},[t]),b.jsx(iV,{isPresent:t,childRef:o,sizeRef:a,children:O.cloneElement(e,{ref:o})})}const aV=({children:e,initial:t,isPresent:n,onExitComplete:r,custom:i,presenceAffectsLayout:o,mode:a,anchorX:l,root:c})=>{const d=Ng(sV),h=O.useId();let m=!0,v=O.useMemo(()=>(m=!1,{id:h,initial:t,isPresent:n,custom:i,onExitComplete:y=>{d.set(y,!0);for(const w of d.values())if(!w)return;r&&r()},register:y=>(d.set(y,!1),()=>d.delete(y))}),[n,d,r]);return o&&m&&(v={...v}),O.useMemo(()=>{d.forEach((y,w)=>d.set(w,!1))},[n]),O.useEffect(()=>{!n&&!d.size&&r&&r()},[n]),a==="popLayout"&&(e=b.jsx(oV,{isPresent:n,anchorX:l,root:c,children:e})),b.jsx(A1.Provider,{value:v,children:e})};function sV(){return new Map}function O6(e=!0){const t=O.useContext(A1);if(t===null)return[!0,null];const{isPresent:n,onExitComplete:r,register:i}=t,o=O.useId();O.useEffect(()=>{if(e)return i(o)},[e]);const a=O.useCallback(()=>e&&r&&r(o),[o,r,e]);return!n&&r?[!1,a]:[!0]}const Iv=e=>e.key||"";function BO(e){const t=[];return O.Children.forEach(e,n=>{O.isValidElement(n)&&t.push(n)}),t}const xo=({children:e,custom:t,initial:n=!0,onExitComplete:r,presenceAffectsLayout:i=!0,mode:o="sync",propagate:a=!1,anchorX:l="left",root:c})=>{const[d,h]=O6(a),m=O.useMemo(()=>BO(e),[e]),v=a&&!d?[]:m.map(Iv),y=O.useRef(!0),w=O.useRef(m),C=Ng(()=>new Map),[_,P]=O.useState(m),[T,A]=O.useState(m);lC(()=>{y.current=!1,w.current=m;for(let N=0;N{const L=Iv(N),F=a&&!d?!1:m===T||v.includes(L),B=()=>{if(C.has(L))C.set(L,!0);else return;let U=!0;C.forEach(W=>{W||(U=!1)}),U&&(M==null||M(),A(w.current),a&&(h==null||h()),r&&r())};return b.jsx(aV,{isPresent:F,initial:!y.current||n?void 0:!1,custom:t,presenceAffectsLayout:i,mode:o,root:c,onExitComplete:F?void 0:B,anchorX:l,children:N},L)})})},P6=O.createContext({strict:!1}),VO={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},yh={};for(const e in VO)yh[e]={isEnabled:t=>VO[e].some(n=>!!t[n])};function lV(e){for(const t in e)yh[t]={...yh[t],...e[t]}}const uV=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function yy(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||uV.has(e)}let A6=e=>!yy(e);function cV(e){typeof e=="function"&&(A6=t=>t.startsWith("on")?!yy(t):e(t))}try{cV(require("@emotion/is-prop-valid").default)}catch{}function fV(e,t,n){const r={};for(const i in e)i==="values"&&typeof e.values=="object"||(A6(i)||n===!0&&yy(i)||!t&&!yy(i)||e.draggable&&i.startsWith("onDrag"))&&(r[i]=e[i]);return r}const k1=O.createContext({});function j1(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}function tg(e){return typeof e=="string"||Array.isArray(e)}const TC=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],kC=["initial",...TC];function M1(e){return j1(e.animate)||kC.some(t=>tg(e[t]))}function T6(e){return!!(M1(e)||e.variants)}function dV(e,t){if(M1(e)){const{initial:n,animate:r}=e;return{initial:n===!1||tg(n)?n:void 0,animate:tg(r)?r:void 0}}return e.inherit!==!1?t:{}}function hV(e){const{initial:t,animate:n}=dV(e,O.useContext(k1));return O.useMemo(()=>({initial:t,animate:n}),[zO(t),zO(n)])}function zO(e){return Array.isArray(e)?e.join(" "):e}const ng={};function pV(e){for(const t in e)ng[t]=e[t],gC(t)&&(ng[t].isCSSVariable=!0)}function k6(e,{layout:t,layoutId:n}){return Bh.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!ng[e]||e==="opacity")}const mV={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},gV=Fh.length;function vV(e,t,n){let r="",i=!0;for(let o=0;o({style:{},transform:{},transformOrigin:{},vars:{}});function j6(e,t,n){for(const r in t)!Dr(t[r])&&!k6(r,n)&&(e[r]=t[r])}function yV({transformTemplate:e},t){return O.useMemo(()=>{const n=MC();return jC(n,t,e),Object.assign({},n.vars,n.style)},[t])}function xV(e,t){const n=e.style||{},r={};return j6(r,n,e),Object.assign(r,yV(e,t)),r}function bV(e,t){const n={},r=xV(e,t);return e.drag&&e.dragListener!==!1&&(n.draggable=!1,r.userSelect=r.WebkitUserSelect=r.WebkitTouchCallout="none",r.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(n.tabIndex=0),n.style=r,n}const wV={offset:"stroke-dashoffset",array:"stroke-dasharray"},SV={offset:"strokeDashoffset",array:"strokeDasharray"};function _V(e,t,n=1,r=0,i=!0){e.pathLength=1;const o=i?wV:SV;e[o.offset]=Ct.transform(-r);const a=Ct.transform(t),l=Ct.transform(n);e[o.array]=`${a} ${l}`}function M6(e,{attrX:t,attrY:n,attrScale:r,pathLength:i,pathSpacing:o=1,pathOffset:a=0,...l},c,d,h){if(jC(e,l,d),c){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:m,style:v}=e;m.transform&&(v.transform=m.transform,delete m.transform),(v.transform||m.transformOrigin)&&(v.transformOrigin=m.transformOrigin??"50% 50%",delete m.transformOrigin),v.transform&&(v.transformBox=(h==null?void 0:h.transformBox)??"fill-box",delete m.transformBox),t!==void 0&&(m.x=t),n!==void 0&&(m.y=n),r!==void 0&&(m.scale=r),i!==void 0&&_V(m,i,o,a,!1)}const I6=()=>({...MC(),attrs:{}}),N6=e=>typeof e=="string"&&e.toLowerCase()==="svg";function CV(e,t,n,r){const i=O.useMemo(()=>{const o=I6();return M6(o,t,N6(r),e.transformTemplate,e.style),{...o.attrs,style:{...o.style}}},[t]);if(e.style){const o={};j6(o,e.style,e),i.style={...o,...i.style}}return i}const EV=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function IC(e){return typeof e!="string"||e.includes("-")?!1:!!(EV.indexOf(e)>-1||/[A-Z]/u.test(e))}function OV(e,t,n,{latestValues:r},i,o=!1){const l=(IC(e)?CV:bV)(t,r,i,e),c=fV(t,typeof e=="string",o),d=e!==O.Fragment?{...c,...l,ref:n}:{},{children:h}=t,m=O.useMemo(()=>Dr(h)?h.get():h,[h]);return O.createElement(e,{...d,children:m})}function UO(e){const t=[{},{}];return e==null||e.values.forEach((n,r)=>{t[0][r]=n.get(),t[1][r]=n.getVelocity()}),t}function NC(e,t,n,r){if(typeof t=="function"){const[i,o]=UO(r);t=t(n!==void 0?n:e.custom,i,o)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){const[i,o]=UO(r);t=t(n!==void 0?n:e.custom,i,o)}return t}function ay(e){return Dr(e)?e.get():e}function PV({scrapeMotionValuesFromProps:e,createRenderState:t},n,r,i){return{latestValues:AV(n,r,i,e),renderState:t()}}function AV(e,t,n,r){const i={},o=r(e,{});for(const v in o)i[v]=ay(o[v]);let{initial:a,animate:l}=e;const c=M1(e),d=T6(e);t&&d&&!c&&e.inherit!==!1&&(a===void 0&&(a=t.initial),l===void 0&&(l=t.animate));let h=n?n.initial===!1:!1;h=h||a===!1;const m=h?l:a;if(m&&typeof m!="boolean"&&!j1(m)){const v=Array.isArray(m)?m:[m];for(let y=0;y(t,n)=>{const r=O.useContext(k1),i=O.useContext(A1),o=()=>PV(e,t,r,i);return n?o():Ng(o)};function RC(e,t,n){var o;const{style:r}=e,i={};for(const a in r)(Dr(r[a])||t.style&&Dr(t.style[a])||k6(a,e)||((o=n==null?void 0:n.getValue(a))==null?void 0:o.liveStyle)!==void 0)&&(i[a]=r[a]);return i}const TV=R6({scrapeMotionValuesFromProps:RC,createRenderState:MC});function L6(e,t,n){const r=RC(e,t,n);for(const i in e)if(Dr(e[i])||Dr(t[i])){const o=Fh.indexOf(i)!==-1?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i;r[o]=e[i]}return r}const kV=R6({scrapeMotionValuesFromProps:L6,createRenderState:I6}),jV=Symbol.for("motionComponentSymbol");function ah(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function MV(e,t,n){return O.useCallback(r=>{r&&e.onMount&&e.onMount(r),t&&(r?t.mount(r):t.unmount()),n&&(typeof n=="function"?n(r):ah(n)&&(n.current=r))},[t])}const LC=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),IV="framerAppearId",D6="data-"+LC(IV),$6=O.createContext({});function NV(e,t,n,r,i){var C,_;const{visualElement:o}=O.useContext(k1),a=O.useContext(P6),l=O.useContext(A1),c=O.useContext($g).reducedMotion,d=O.useRef(null);r=r||a.renderer,!d.current&&r&&(d.current=r(e,{visualState:t,parent:o,props:n,presenceContext:l,blockInitialAnimation:l?l.initial===!1:!1,reducedMotionConfig:c}));const h=d.current,m=O.useContext($6);h&&!h.projection&&i&&(h.type==="html"||h.type==="svg")&&RV(d.current,n,i,m);const v=O.useRef(!1);O.useInsertionEffect(()=>{h&&v.current&&h.update(n,l)});const y=n[D6],w=O.useRef(!!y&&!((C=window.MotionHandoffIsComplete)!=null&&C.call(window,y))&&((_=window.MotionHasOptimisedAnimation)==null?void 0:_.call(window,y)));return lC(()=>{h&&(v.current=!0,window.MotionIsMounted=!0,h.updateFeatures(),h.scheduleRenderMicrotask(),w.current&&h.animationState&&h.animationState.animateChanges())}),O.useEffect(()=>{h&&(!w.current&&h.animationState&&h.animationState.animateChanges(),w.current&&(queueMicrotask(()=>{var P;(P=window.MotionHandoffMarkAsComplete)==null||P.call(window,y)}),w.current=!1))}),h}function RV(e,t,n,r){const{layoutId:i,layout:o,drag:a,dragConstraints:l,layoutScroll:c,layoutRoot:d,layoutCrossfade:h}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:F6(e.parent)),e.projection.setOptions({layoutId:i,layout:o,alwaysMeasureLayout:!!a||l&&ah(l),visualElement:e,animationType:typeof o=="string"?o:"both",initialPromotionConfig:r,crossfade:h,layoutScroll:c,layoutRoot:d})}function F6(e){if(e)return e.options.allowProjection!==!1?e.projection:F6(e.parent)}function kb(e,{forwardMotionProps:t=!1}={},n,r){n&&lV(n);const i=IC(e)?kV:TV;function o(l,c){let d;const h={...O.useContext($g),...l,layoutId:LV(l)},{isStatic:m}=h,v=hV(l),y=i(l,m);if(!m&&sC){DV();const w=$V(h);d=w.MeasureLayout,v.visualElement=NV(e,y,h,r,w.ProjectionNode)}return b.jsxs(k1.Provider,{value:v,children:[d&&v.visualElement?b.jsx(d,{visualElement:v.visualElement,...h}):null,OV(e,l,MV(y,v.visualElement,c),y,m,t)]})}o.displayName=`motion.${typeof e=="string"?e:`create(${e.displayName??e.name??""})`}`;const a=O.forwardRef(o);return a[jV]=e,a}function LV({layoutId:e}){const t=O.useContext(aC).id;return t&&e!==void 0?t+"-"+e:e}function DV(e,t){O.useContext(P6).strict}function $V(e){const{drag:t,layout:n}=yh;if(!t&&!n)return{};const r={...t,...n};return{MeasureLayout:t!=null&&t.isEnabled(e)||n!=null&&n.isEnabled(e)?r.MeasureLayout:void 0,ProjectionNode:r.ProjectionNode}}function FV(e,t){if(typeof Proxy>"u")return kb;const n=new Map,r=(o,a)=>kb(o,a,e,t),i=(o,a)=>r(o,a);return new Proxy(i,{get:(o,a)=>a==="create"?r:(n.has(a)||n.set(a,kb(a,void 0,e,t)),n.get(a))})}function B6({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function BV({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function VV(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 jb(e){return e===void 0||e===1}function DS({scale:e,scaleX:t,scaleY:n}){return!jb(e)||!jb(t)||!jb(n)}function Ic(e){return DS(e)||V6(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function V6(e){return WO(e.x)||WO(e.y)}function WO(e){return e&&e!=="0%"}function xy(e,t,n){const r=e-n,i=t*r;return n+i}function HO(e,t,n,r,i){return i!==void 0&&(e=xy(e,i,r)),xy(e,n,r)+t}function $S(e,t=0,n=1,r,i){e.min=HO(e.min,t,n,r,i),e.max=HO(e.max,t,n,r,i)}function z6(e,{x:t,y:n}){$S(e.x,t.translate,t.scale,t.originPoint),$S(e.y,n.translate,n.scale,n.originPoint)}const qO=.999999999999,KO=1.0000000000001;function zV(e,t,n,r=!1){const i=n.length;if(!i)return;t.x=t.y=1;let o,a;for(let l=0;lqO&&(t.x=1),t.yqO&&(t.y=1)}function sh(e,t){e.min=e.min+t,e.max=e.max+t}function GO(e,t,n,r,i=.5){const o=Un(e.min,e.max,i);$S(e,t,n,o,r)}function lh(e,t){GO(e.x,t.x,t.scaleX,t.scale,t.originX),GO(e.y,t.y,t.scaleY,t.scale,t.originY)}function U6(e,t){return B6(VV(e.getBoundingClientRect(),t))}function UV(e,t,n){const r=U6(e,n),{scroll:i}=t;return i&&(sh(r.x,i.offset.x),sh(r.y,i.offset.y)),r}const YO=()=>({translate:0,scale:1,origin:0,originPoint:0}),uh=()=>({x:YO(),y:YO()}),ZO=()=>({min:0,max:0}),or=()=>({x:ZO(),y:ZO()}),FS={current:null},W6={current:!1};function WV(){if(W6.current=!0,!!sC)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>FS.current=e.matches;e.addEventListener("change",t),t()}else FS.current=!1}const HV=new WeakMap;function qV(e,t,n){for(const r in t){const i=t[r],o=n[r];if(Dr(i))e.addValue(r,i);else if(Dr(o))e.addValue(r,nf(i,{owner:e}));else if(o!==i)if(e.hasValue(r)){const a=e.getValue(r);a.liveStyle===!0?a.jump(i):a.hasAnimated||a.set(i)}else{const a=e.getStaticValue(r);e.addValue(r,nf(a!==void 0?a:i,{owner:e}))}}for(const r in n)t[r]===void 0&&e.removeValue(r);return t}const XO=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class KV{scrapeMotionValuesFromProps(t,n,r){return{}}constructor({parent:t,props:n,presenceContext:r,reducedMotionConfig:i,blockInitialAnimation:o,visualState:a},l={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=CC,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const v=Xi.now();this.renderScheduledAtthis.bindToMotionValue(r,n)),W6.current||WV(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:FS.current,this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){this.projection&&this.projection.unmount(),ml(this.notifyUpdate),ml(this.render),this.valueSubscriptions.forEach(t=>t()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const t in this.events)this.events[t].clear();for(const t in this.features){const n=this.features[t];n&&(n.unmount(),n.isMounted=!1)}this.current=null}bindToMotionValue(t,n){this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)();const r=Bh.has(t);r&&this.onBindTransform&&this.onBindTransform();const i=n.on("change",l=>{this.latestValues[t]=l,this.props.onUpdate&&jn.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0)}),o=n.on("renderRequest",this.scheduleRender);let a;window.MotionCheckAppearSync&&(a=window.MotionCheckAppearSync(this,t,n)),this.valueSubscriptions.set(t,()=>{i(),o(),a&&a(),n.owner&&n.stop()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}updateFeatures(){let t="animation";for(t in yh){const n=yh[t];if(!n)continue;const{isEnabled:r,Feature:i}=n;if(!this.features[t]&&i&&r(this.props)&&(this.features[t]=new i(this)),this.features[t]){const o=this.features[t];o.isMounted?o.update():(o.mount(),o.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):or()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,n){this.latestValues[t]=n}update(t,n){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let r=0;rn.variantChildren.delete(t)}addValue(t,n){const r=this.values.get(t);n!==r&&(r&&this.removeValue(t),this.bindToMotionValue(t,n),this.values.set(t,n),this.latestValues[t]=n.get())}removeValue(t){this.values.delete(t);const n=this.valueSubscriptions.get(t);n&&(n(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,n){if(this.props.values&&this.props.values[t])return this.props.values[t];let r=this.values.get(t);return r===void 0&&n!==void 0&&(r=nf(n===null?void 0:n,{owner:this}),this.addValue(t,r)),r}readValue(t,n){let r=this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:this.getBaseTargetFromProps(this.props,t)??this.readValueFromInstance(this.current,t,this.options);return r!=null&&(typeof r=="string"&&(Rj(r)||Dj(r))?r=parseFloat(r):!rV(r)&&wu.test(n)&&(r=x6(t,n)),this.setBaseTarget(t,Dr(r)?r.get():r)),Dr(r)?r.get():r}setBaseTarget(t,n){this.baseTarget[t]=n}getBaseTarget(t){var o;const{initial:n}=this.props;let r;if(typeof n=="string"||typeof n=="object"){const a=NC(this.props,n,(o=this.presenceContext)==null?void 0:o.custom);a&&(r=a[t])}if(n&&r!==void 0)return r;const i=this.getBaseTargetFromProps(this.props,t);return i!==void 0&&!Dr(i)?i:this.initialValues[t]!==void 0&&r===void 0?void 0:this.baseTarget[t]}on(t,n){return this.events[t]||(this.events[t]=new hC),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}scheduleRenderMicrotask(){PC.render(this.render)}}class H6 extends KV{constructor(){super(...arguments),this.KeyframeResolver=UB}sortInstanceNodePosition(t,n){return t.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(t,n){return t.style?t.style[n]:void 0}removeValueFromRenderState(t,{vars:n,style:r}){delete n[t],delete r[t]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;Dr(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}function q6(e,{style:t,vars:n},r,i){const o=e.style;let a;for(a in t)o[a]=t[a];i==null||i.applyProjectionStyles(o,r);for(a in n)o.setProperty(a,n[a])}function GV(e){return window.getComputedStyle(e)}class YV extends H6{constructor(){super(...arguments),this.type="html",this.renderInstance=q6}readValueFromInstance(t,n){var r;if(Bh.has(n))return(r=this.projection)!=null&&r.isProjecting?jS(n):lB(t,n);{const i=GV(t),o=(gC(n)?i.getPropertyValue(n):i[n])||0;return typeof o=="string"?o.trim():o}}measureInstanceViewportBox(t,{transformPagePoint:n}){return U6(t,n)}build(t,n,r){jC(t,n,r.transformTemplate)}scrapeMotionValuesFromProps(t,n,r){return RC(t,n,r)}}const K6=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function ZV(e,t,n,r){q6(e,t,void 0,r);for(const i in t.attrs)e.setAttribute(K6.has(i)?i:LC(i),t.attrs[i])}class XV extends H6{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=or}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(Bh.has(n)){const r=y6(n);return r&&r.default||0}return n=K6.has(n)?n:LC(n),t.getAttribute(n)}scrapeMotionValuesFromProps(t,n,r){return L6(t,n,r)}build(t,n,r){M6(t,n,this.isSVGTag,r.transformTemplate,r.style)}renderInstance(t,n,r,i){ZV(t,n,r,i)}mount(t){this.isSVGTag=N6(t.tagName),super.mount(t)}}const QV=(e,t)=>IC(e)?new XV(t):new YV(t,{allowProjection:e!==O.Fragment});function rg(e,t,n){const r=e.getProps();return NC(r,t,n!==void 0?n:r.custom,e)}const BS=e=>Array.isArray(e);function JV(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,nf(n))}function ez(e){return BS(e)?e[e.length-1]||0:e}function tz(e,t){const n=rg(e,t);let{transitionEnd:r={},transition:i={},...o}=n||{};o={...o,...r};for(const a in o){const l=ez(o[a]);JV(e,a,l)}}function nz(e){return!!(Dr(e)&&e.add)}function VS(e,t){const n=e.getValue("willChange");if(nz(n))return n.add(t);if(!n&&pl.WillChange){const r=new pl.WillChange("auto");e.addValue("willChange",r),r.add(t)}}function G6(e){return e.props[D6]}const rz=e=>e!==null;function iz(e,{repeat:t,repeatType:n="loop"},r){const i=e.filter(rz),o=t&&n!=="loop"&&t%2===1?0:i.length-1;return i[o]}const oz={type:"spring",stiffness:500,damping:25,restSpeed:10},az=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),sz={type:"keyframes",duration:.8},lz={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},uz=(e,{keyframes:t})=>t.length>2?sz:Bh.has(e)?e.startsWith("scale")?az(t[1]):oz:lz;function cz({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:i,repeat:o,repeatType:a,repeatDelay:l,from:c,elapsed:d,...h}){return!!Object.keys(h).length}const DC=(e,t,n,r={},i,o)=>a=>{const l=EC(r,e)||{},c=l.delay||r.delay||0;let{elapsed:d=0}=r;d=d-ps(c);const h={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...l,delay:-d,onUpdate:v=>{t.set(v),l.onUpdate&&l.onUpdate(v)},onComplete:()=>{a(),l.onComplete&&l.onComplete()},name:e,motionValue:t,element:o?void 0:i};cz(l)||Object.assign(h,uz(e,h)),h.duration&&(h.duration=ps(h.duration)),h.repeatDelay&&(h.repeatDelay=ps(h.repeatDelay)),h.from!==void 0&&(h.keyframes[0]=h.from);let m=!1;if((h.type===!1||h.duration===0&&!h.repeatDelay)&&(h.duration=0,h.delay===0&&(m=!0)),(pl.instantAnimations||pl.skipAnimations)&&(m=!0,h.duration=0,h.delay=0),h.allowFlatten=!l.type&&!l.ease,m&&!o&&t.get()!==void 0){const v=iz(h.keyframes,l);if(v!==void 0){jn.update(()=>{h.onUpdate(v),h.onComplete()});return}}return l.isSync?new T1(h):new jB(h)};function fz({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function Y6(e,t,{delay:n=0,transitionOverride:r,type:i}={}){let{transition:o=e.getDefaultTransition(),transitionEnd:a,...l}=t;r&&(o=r);const c=[],d=i&&e.animationState&&e.animationState.getState()[i];for(const h in l){const m=e.getValue(h,e.latestValues[h]??null),v=l[h];if(v===void 0||d&&fz(d,h))continue;const y={delay:n,...EC(o||{},h)},w=m.get();if(w!==void 0&&!m.isAnimating&&!Array.isArray(v)&&v===w&&!y.velocity)continue;let C=!1;if(window.MotionHandoffAnimation){const P=G6(e);if(P){const T=window.MotionHandoffAnimation(P,h,jn);T!==null&&(y.startTime=T,C=!0)}}VS(e,h),m.start(DC(h,m,v,e.shouldReduceMotion&&m6.has(h)?{type:!1}:y,e,C));const _=m.animation;_&&c.push(_)}return a&&Promise.all(c).then(()=>{jn.update(()=>{a&&tz(e,a)})}),c}function zS(e,t,n={}){var c;const r=rg(e,t,n.type==="exit"?(c=e.presenceContext)==null?void 0:c.custom:void 0);let{transition:i=e.getDefaultTransition()||{}}=r||{};n.transitionOverride&&(i=n.transitionOverride);const o=r?()=>Promise.all(Y6(e,r,n)):()=>Promise.resolve(),a=e.variantChildren&&e.variantChildren.size?(d=0)=>{const{delayChildren:h=0,staggerChildren:m,staggerDirection:v}=i;return dz(e,t,d,h,m,v,n)}:()=>Promise.resolve(),{when:l}=i;if(l){const[d,h]=l==="beforeChildren"?[o,a]:[a,o];return d().then(()=>h())}else return Promise.all([o(),a(n.delay)])}function dz(e,t,n=0,r=0,i=0,o=1,a){const l=[],c=e.variantChildren.size,d=(c-1)*i,h=typeof r=="function",m=h?v=>r(v,c):o===1?(v=0)=>v*i:(v=0)=>d-v*i;return Array.from(e.variantChildren).sort(hz).forEach((v,y)=>{v.notify("AnimationStart",t),l.push(zS(v,t,{...a,delay:n+(h?0:r)+m(y)}).then(()=>v.notify("AnimationComplete",t)))}),Promise.all(l)}function hz(e,t){return e.sortNodePosition(t)}function pz(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const i=t.map(o=>zS(e,o,n));r=Promise.all(i)}else if(typeof t=="string")r=zS(e,t,n);else{const i=typeof t=="function"?rg(e,t,n.custom):t;r=Promise.all(Y6(e,i,n))}return r.then(()=>{e.notify("AnimationComplete",t)})}function Z6(e,t){if(!Array.isArray(t))return!1;const n=t.length;if(n!==e.length)return!1;for(let r=0;rPromise.all(t.map(({animation:n,options:r})=>pz(e,n,r)))}function xz(e){let t=yz(e),n=QO(),r=!0;const i=c=>(d,h)=>{var v;const m=rg(e,h,c==="exit"?(v=e.presenceContext)==null?void 0:v.custom:void 0);if(m){const{transition:y,transitionEnd:w,...C}=m;d={...d,...C,...w}}return d};function o(c){t=c(e)}function a(c){const{props:d}=e,h=X6(e.parent)||{},m=[],v=new Set;let y={},w=1/0;for(let _=0;_w&&I,B=!1;const U=Array.isArray(A)?A:[A];let W=U.reduce(i(P),{});M===!1&&(W={});const{prevResolvedValues:G={}}=T,ie={...G,...W},te=q=>{F=!0,v.has(q)&&(B=!0,v.delete(q)),T.needsAnimating[q]=!0;const H=e.getValue(q);H&&(H.liveStyle=!1)};for(const q in ie){const H=W[q],Z=G[q];if(y.hasOwnProperty(q))continue;let X=!1;BS(H)&&BS(Z)?X=!Z6(H,Z):X=H!==Z,X?H!=null?te(q):v.add(q):H!==void 0&&v.has(q)?te(q):T.protectedKeys[q]=!0}T.prevProp=A,T.prevResolvedValues=W,T.isActive&&(y={...y,...W}),r&&e.blockInitialAnimation&&(F=!1),F&&(!(N&&L)||B)&&m.push(...U.map(q=>({animation:q,options:{type:P}})))}if(v.size){const _={};if(typeof d.initial!="boolean"){const P=rg(e,Array.isArray(d.initial)?d.initial[0]:d.initial);P&&P.transition&&(_.transition=P.transition)}v.forEach(P=>{const T=e.getBaseTarget(P),A=e.getValue(P);A&&(A.liveStyle=!0),_[P]=T??null}),m.push({animation:_})}let C=!!m.length;return r&&(d.initial===!1||d.initial===d.animate)&&!e.manuallyAnimateOnMount&&(C=!1),r=!1,C?t(m):Promise.resolve()}function l(c,d){var m;if(n[c].isActive===d)return Promise.resolve();(m=e.variantChildren)==null||m.forEach(v=>{var y;return(y=v.animationState)==null?void 0:y.setActive(c,d)}),n[c].isActive=d;const h=a(c);for(const v in n)n[v].protectedKeys={};return h}return{animateChanges:a,setActive:l,setAnimateFunction:o,getState:()=>n,reset:()=>{n=QO(),r=!0}}}function bz(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!Z6(t,e):!1}function jc(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function QO(){return{animate:jc(!0),whileInView:jc(),whileHover:jc(),whileTap:jc(),whileDrag:jc(),whileFocus:jc(),exit:jc()}}class Au{constructor(t){this.isMounted=!1,this.node=t}update(){}}class wz extends Au{constructor(t){super(t),t.animationState||(t.animationState=xz(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();j1(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:n}=this.node.prevProps||{};t!==n&&this.updateAnimationControlsSubscription()}unmount(){var t;this.node.animationState.reset(),(t=this.unmountControls)==null||t.call(this)}}let Sz=0;class _z extends Au{constructor(){super(...arguments),this.id=Sz++}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:n}=this.node.presenceContext,{isPresent:r}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===r)return;const i=this.node.animationState.setActive("exit",!t);n&&!t&&i.then(()=>{n(this.id)})}mount(){const{register:t,onExitComplete:n}=this.node.presenceContext||{};n&&n(this.id),t&&(this.unmount=t(this.id))}unmount(){}}const Cz={animation:{Feature:wz},exit:{Feature:_z}};function ig(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}function Fg(e){return{point:{x:e.pageX,y:e.pageY}}}const Ez=e=>t=>AC(t)&&e(t,Fg(t));function Wm(e,t,n,r){return ig(e,t,Ez(n),r)}const Q6=1e-4,Oz=1-Q6,Pz=1+Q6,J6=.01,Az=0-J6,Tz=0+J6;function Ai(e){return e.max-e.min}function kz(e,t,n){return Math.abs(e-t)<=n}function JO(e,t,n,r=.5){e.origin=r,e.originPoint=Un(t.min,t.max,e.origin),e.scale=Ai(n)/Ai(t),e.translate=Un(n.min,n.max,e.origin)-e.originPoint,(e.scale>=Oz&&e.scale<=Pz||isNaN(e.scale))&&(e.scale=1),(e.translate>=Az&&e.translate<=Tz||isNaN(e.translate))&&(e.translate=0)}function Hm(e,t,n,r){JO(e.x,t.x,n.x,r?r.originX:void 0),JO(e.y,t.y,n.y,r?r.originY:void 0)}function e3(e,t,n){e.min=n.min+t.min,e.max=e.min+Ai(t)}function jz(e,t,n){e3(e.x,t.x,n.x),e3(e.y,t.y,n.y)}function t3(e,t,n){e.min=t.min-n.min,e.max=e.min+Ai(t)}function qm(e,t,n){t3(e.x,t.x,n.x),t3(e.y,t.y,n.y)}function ea(e){return[e("x"),e("y")]}const eM=({current:e})=>e?e.ownerDocument.defaultView:null,n3=(e,t)=>Math.abs(e-t);function Mz(e,t){const n=n3(e.x,t.x),r=n3(e.y,t.y);return Math.sqrt(n**2+r**2)}class tM{constructor(t,n,{transformPagePoint:r,contextWindow:i=window,dragSnapToOrigin:o=!1,distanceThreshold:a=3}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const v=Ib(this.lastMoveEventInfo,this.history),y=this.startEvent!==null,w=Mz(v.offset,{x:0,y:0})>=this.distanceThreshold;if(!y&&!w)return;const{point:C}=v,{timestamp:_}=Jr;this.history.push({...C,timestamp:_});const{onStart:P,onMove:T}=this.handlers;y||(P&&P(this.lastMoveEvent,v),this.startEvent=this.lastMoveEvent),T&&T(this.lastMoveEvent,v)},this.handlePointerMove=(v,y)=>{this.lastMoveEvent=v,this.lastMoveEventInfo=Mb(y,this.transformPagePoint),jn.update(this.updatePoint,!0)},this.handlePointerUp=(v,y)=>{this.end();const{onEnd:w,onSessionEnd:C,resumeAnimation:_}=this.handlers;if(this.dragSnapToOrigin&&_&&_(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const P=Ib(v.type==="pointercancel"?this.lastMoveEventInfo:Mb(y,this.transformPagePoint),this.history);this.startEvent&&w&&w(v,P),C&&C(v,P)},!AC(t))return;this.dragSnapToOrigin=o,this.handlers=n,this.transformPagePoint=r,this.distanceThreshold=a,this.contextWindow=i||window;const l=Fg(t),c=Mb(l,this.transformPagePoint),{point:d}=c,{timestamp:h}=Jr;this.history=[{...d,timestamp:h}];const{onSessionStart:m}=n;m&&m(t,Ib(c,this.history)),this.removeListeners=Rg(Wm(this.contextWindow,"pointermove",this.handlePointerMove),Wm(this.contextWindow,"pointerup",this.handlePointerUp),Wm(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),ml(this.updatePoint)}}function Mb(e,t){return t?{point:t(e.point)}:e}function r3(e,t){return{x:e.x-t.x,y:e.y-t.y}}function Ib({point:e},t){return{point:e,delta:r3(e,nM(t)),offset:r3(e,Iz(t)),velocity:Nz(t,.1)}}function Iz(e){return e[0]}function nM(e){return e[e.length-1]}function Nz(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const i=nM(e);for(;n>=0&&(r=e[n],!(i.timestamp-r.timestamp>ps(t)));)n--;if(!r)return{x:0,y:0};const o=ms(i.timestamp-r.timestamp);if(o===0)return{x:0,y:0};const a={x:(i.x-r.x)/o,y:(i.y-r.y)/o};return a.x===1/0&&(a.x=0),a.y===1/0&&(a.y=0),a}function Rz(e,{min:t,max:n},r){return t!==void 0&&en&&(e=r?Un(n,e,r.max):Math.min(e,n)),e}function i3(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 Lz(e,{top:t,left:n,bottom:r,right:i}){return{x:i3(e.x,n,i),y:i3(e.y,t,r)}}function o3(e,t){let n=t.min-e.min,r=t.max-e.max;return t.max-t.minr?n=Qm(t.min,t.max-r,e.min):r>i&&(n=Qm(e.min,e.max-i,t.min)),hl(0,1,n)}function Fz(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 US=.35;function Bz(e=US){return e===!1?e=0:e===!0&&(e=US),{x:a3(e,"left","right"),y:a3(e,"top","bottom")}}function a3(e,t,n){return{min:s3(e,t),max:s3(e,n)}}function s3(e,t){return typeof e=="number"?e:e[t]||0}const Vz=new WeakMap;class zz{constructor(t){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=or(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=t}start(t,{snapToCursor:n=!1,distanceThreshold:r}={}){const{presenceContext:i}=this.visualElement;if(i&&i.isPresent===!1)return;const o=m=>{const{dragSnapToOrigin:v}=this.getProps();v?this.pauseAnimation():this.stopAnimation(),n&&this.snapToCursor(Fg(m).point)},a=(m,v)=>{const{drag:y,dragPropagation:w,onDragStart:C}=this.getProps();if(y&&!w&&(this.openDragLock&&this.openDragLock(),this.openDragLock=KB(y),!this.openDragLock))return;this.latestPointerEvent=m,this.latestPanInfo=v,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),ea(P=>{let T=this.getAxisMotionValue(P).get()||0;if(gs.test(T)){const{projection:A}=this.visualElement;if(A&&A.layout){const I=A.layout.layoutBox[P];I&&(T=Ai(I)*(parseFloat(T)/100))}}this.originPoint[P]=T}),C&&jn.postRender(()=>C(m,v)),VS(this.visualElement,"transform");const{animationState:_}=this.visualElement;_&&_.setActive("whileDrag",!0)},l=(m,v)=>{this.latestPointerEvent=m,this.latestPanInfo=v;const{dragPropagation:y,dragDirectionLock:w,onDirectionLock:C,onDrag:_}=this.getProps();if(!y&&!this.openDragLock)return;const{offset:P}=v;if(w&&this.currentDirection===null){this.currentDirection=Uz(P),this.currentDirection!==null&&C&&C(this.currentDirection);return}this.updateAxis("x",v.point,P),this.updateAxis("y",v.point,P),this.visualElement.render(),_&&_(m,v)},c=(m,v)=>{this.latestPointerEvent=m,this.latestPanInfo=v,this.stop(m,v),this.latestPointerEvent=null,this.latestPanInfo=null},d=()=>ea(m=>{var v;return this.getAnimationState(m)==="paused"&&((v=this.getAxisMotionValue(m).animation)==null?void 0:v.play())}),{dragSnapToOrigin:h}=this.getProps();this.panSession=new tM(t,{onSessionStart:o,onStart:a,onMove:l,onSessionEnd:c,resumeAnimation:d},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:h,distanceThreshold:r,contextWindow:eM(this.visualElement)})}stop(t,n){const r=t||this.latestPointerEvent,i=n||this.latestPanInfo,o=this.isDragging;if(this.cancel(),!o||!i||!r)return;const{velocity:a}=i;this.startAnimation(a);const{onDragEnd:l}=this.getProps();l&&jn.postRender(()=>l(r,i))}cancel(){this.isDragging=!1;const{projection:t,animationState:n}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:r}=this.getProps();!r&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),n&&n.setActive("whileDrag",!1)}updateAxis(t,n,r){const{drag:i}=this.getProps();if(!r||!Nv(t,i,this.currentDirection))return;const o=this.getAxisMotionValue(t);let a=this.originPoint[t]+r[t];this.constraints&&this.constraints[t]&&(a=Rz(a,this.constraints[t],this.elastic[t])),o.set(a)}resolveConstraints(){var o;const{dragConstraints:t,dragElastic:n}=this.getProps(),r=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(o=this.visualElement.projection)==null?void 0:o.layout,i=this.constraints;t&&ah(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):t&&r?this.constraints=Lz(r.layoutBox,t):this.constraints=!1,this.elastic=Bz(n),i!==this.constraints&&r&&this.constraints&&!this.hasMutatedConstraints&&ea(a=>{this.constraints!==!1&&this.getAxisMotionValue(a)&&(this.constraints[a]=Fz(r.layoutBox[a],this.constraints[a]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!ah(t))return!1;const r=t.current,{projection:i}=this.visualElement;if(!i||!i.layout)return!1;const o=UV(r,i.root,this.visualElement.getTransformPagePoint());let a=Dz(i.layout.layoutBox,o);if(n){const l=n(BV(a));this.hasMutatedConstraints=!!l,l&&(a=B6(l))}return a}startAnimation(t){const{drag:n,dragMomentum:r,dragElastic:i,dragTransition:o,dragSnapToOrigin:a,onDragTransitionEnd:l}=this.getProps(),c=this.constraints||{},d=ea(h=>{if(!Nv(h,n,this.currentDirection))return;let m=c&&c[h]||{};a&&(m={min:0,max:0});const v=i?200:1e6,y=i?40:1e7,w={type:"inertia",velocity:r?t[h]:0,bounceStiffness:v,bounceDamping:y,timeConstant:750,restDelta:1,restSpeed:10,...o,...m};return this.startAxisValueAnimation(h,w)});return Promise.all(d).then(l)}startAxisValueAnimation(t,n){const r=this.getAxisMotionValue(t);return VS(this.visualElement,t),r.start(DC(t,r,0,n,this.visualElement,!1))}stopAnimation(){ea(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){ea(t=>{var n;return(n=this.getAxisMotionValue(t).animation)==null?void 0:n.pause()})}getAnimationState(t){var n;return(n=this.getAxisMotionValue(t).animation)==null?void 0:n.state}getAxisMotionValue(t){const n=`_drag${t.toUpperCase()}`,r=this.visualElement.getProps(),i=r[n];return i||this.visualElement.getValue(t,(r.initial?r.initial[t]:void 0)||0)}snapToCursor(t){ea(n=>{const{drag:r}=this.getProps();if(!Nv(n,r,this.currentDirection))return;const{projection:i}=this.visualElement,o=this.getAxisMotionValue(n);if(i&&i.layout){const{min:a,max:l}=i.layout.layoutBox[n];o.set(t[n]-Un(a,l,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!ah(n)||!r||!this.constraints)return;this.stopAnimation();const i={x:0,y:0};ea(a=>{const l=this.getAxisMotionValue(a);if(l&&this.constraints!==!1){const c=l.get();i[a]=$z({min:c,max:c},this.constraints[a])}});const{transformTemplate:o}=this.visualElement.getProps();this.visualElement.current.style.transform=o?o({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.resolveConstraints(),ea(a=>{if(!Nv(a,t,null))return;const l=this.getAxisMotionValue(a),{min:c,max:d}=this.constraints[a];l.set(Un(c,d,i[a]))})}addListeners(){if(!this.visualElement.current)return;Vz.set(this.visualElement,this);const t=this.visualElement.current,n=Wm(t,"pointerdown",c=>{const{drag:d,dragListener:h=!0}=this.getProps();d&&h&&this.start(c)}),r=()=>{const{dragConstraints:c}=this.getProps();ah(c)&&c.current&&(this.constraints=this.resolveRefConstraints())},{projection:i}=this.visualElement,o=i.addEventListener("measure",r);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),jn.read(r);const a=ig(window,"resize",()=>this.scalePositionWithinConstraints()),l=i.addEventListener("didUpdate",({delta:c,hasLayoutChanged:d})=>{this.isDragging&&d&&(ea(h=>{const m=this.getAxisMotionValue(h);m&&(this.originPoint[h]+=c[h].translate,m.set(m.get()+c[h].translate))}),this.visualElement.render())});return()=>{a(),n(),o(),l&&l()}}getProps(){const t=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:r=!1,dragPropagation:i=!1,dragConstraints:o=!1,dragElastic:a=US,dragMomentum:l=!0}=t;return{...t,drag:n,dragDirectionLock:r,dragPropagation:i,dragConstraints:o,dragElastic:a,dragMomentum:l}}}function Nv(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function Uz(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class Wz extends Au{constructor(t){super(t),this.removeGroupControls=ia,this.removeListeners=ia,this.controls=new zz(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||ia}unmount(){this.removeGroupControls(),this.removeListeners()}}const l3=e=>(t,n)=>{e&&jn.postRender(()=>e(t,n))};class Hz extends Au{constructor(){super(...arguments),this.removePointerDownListener=ia}onPointerDown(t){this.session=new tM(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:eM(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:r,onPanEnd:i}=this.node.getProps();return{onSessionStart:l3(t),onStart:l3(n),onMove:r,onEnd:(o,a)=>{delete this.session,i&&jn.postRender(()=>i(o,a))}}}mount(){this.removePointerDownListener=Wm(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}const sy={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function u3(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const xm={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(Ct.test(e))e=parseFloat(e);else return e;const n=u3(e,t.target.x),r=u3(e,t.target.y);return`${n}% ${r}%`}},qz={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,i=wu.parse(e);if(i.length>5)return r;const o=wu.createTransformer(e),a=typeof i[0]!="number"?1:0,l=n.x.scale*t.x,c=n.y.scale*t.y;i[0+a]/=l,i[1+a]/=c;const d=Un(l,c,.5);return typeof i[2+a]=="number"&&(i[2+a]/=d),typeof i[3+a]=="number"&&(i[3+a]/=d),o(i)}};let c3=!1;class Kz extends O.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r,layoutId:i}=this.props,{projection:o}=t;pV(Gz),o&&(n.group&&n.group.add(o),r&&r.register&&i&&r.register(o),c3&&o.root.didUpdate(),o.addEventListener("animationComplete",()=>{this.safeToRemove()}),o.setOptions({...o.options,onExitComplete:()=>this.safeToRemove()})),sy.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:n,visualElement:r,drag:i,isPresent:o}=this.props,{projection:a}=r;return a&&(a.isPresent=o,c3=!0,i||t.layoutDependency!==n||n===void 0||t.isPresent!==o?a.willUpdate():this.safeToRemove(),t.isPresent!==o&&(o?a.promote():a.relegate()||jn.postRender(()=>{const l=a.getStack();(!l||!l.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),PC.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r}=this.props,{projection:i}=t;i&&(i.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(i),r&&r.deregister&&r.deregister(i))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function rM(e){const[t,n]=O6(),r=O.useContext(aC);return b.jsx(Kz,{...e,layoutGroup:r,switchLayoutGroup:O.useContext($6),isPresent:t,safeToRemove:n})}const Gz={borderRadius:{...xm,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:xm,borderTopRightRadius:xm,borderBottomLeftRadius:xm,borderBottomRightRadius:xm,boxShadow:qz};function Yz(e,t,n){const r=Dr(e)?e:nf(e);return r.start(DC("",r,t,n)),r.animation}const Zz=(e,t)=>e.depth-t.depth;class Xz{constructor(){this.children=[],this.isDirty=!1}add(t){uC(this.children,t),this.isDirty=!0}remove(t){cC(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(Zz),this.isDirty=!1,this.children.forEach(t)}}function Qz(e,t){const n=Xi.now(),r=({timestamp:i})=>{const o=i-n;o>=t&&(ml(r),e(o-t))};return jn.setup(r,!0),()=>ml(r)}const iM=["TopLeft","TopRight","BottomLeft","BottomRight"],Jz=iM.length,f3=e=>typeof e=="string"?parseFloat(e):e,d3=e=>typeof e=="number"||Ct.test(e);function eU(e,t,n,r,i,o){i?(e.opacity=Un(0,n.opacity??1,tU(r)),e.opacityExit=Un(t.opacity??1,0,nU(r))):o&&(e.opacity=Un(t.opacity??1,n.opacity??1,r));for(let a=0;art?1:n(Qm(e,t,r))}function p3(e,t){e.min=t.min,e.max=t.max}function Go(e,t){p3(e.x,t.x),p3(e.y,t.y)}function m3(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function g3(e,t,n,r,i){return e-=t,e=xy(e,1/n,r),i!==void 0&&(e=xy(e,1/i,r)),e}function rU(e,t=0,n=1,r=.5,i,o=e,a=e){if(gs.test(t)&&(t=parseFloat(t),t=Un(a.min,a.max,t/100)-a.min),typeof t!="number")return;let l=Un(o.min,o.max,r);e===o&&(l-=t),e.min=g3(e.min,t,n,l,i),e.max=g3(e.max,t,n,l,i)}function v3(e,t,[n,r,i],o,a){rU(e,t[n],t[r],t[i],t.scale,o,a)}const iU=["x","scaleX","originX"],oU=["y","scaleY","originY"];function y3(e,t,n,r){v3(e.x,t,iU,n?n.x:void 0,r?r.x:void 0),v3(e.y,t,oU,n?n.y:void 0,r?r.y:void 0)}function x3(e){return e.translate===0&&e.scale===1}function aM(e){return x3(e.x)&&x3(e.y)}function b3(e,t){return e.min===t.min&&e.max===t.max}function aU(e,t){return b3(e.x,t.x)&&b3(e.y,t.y)}function w3(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function sM(e,t){return w3(e.x,t.x)&&w3(e.y,t.y)}function S3(e){return Ai(e.x)/Ai(e.y)}function _3(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}class sU{constructor(){this.members=[]}add(t){uC(this.members,t),t.scheduleRender()}remove(t){if(cC(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(i=>t===i);if(n===0)return!1;let r;for(let i=n;i>=0;i--){const o=this.members[i];if(o.isPresent!==!1){r=o;break}}return r?(this.promote(r),!0):!1}promote(t,n){const r=this.lead;if(t!==r&&(this.prevLead=r,this.lead=t,t.show(),r)){r.instance&&r.scheduleRender(),t.scheduleRender(),t.resumeFrom=r,n&&(t.resumeFrom.preserveOpacity=!0),r.snapshot&&(t.snapshot=r.snapshot,t.snapshot.latestValues=r.animationValues||r.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);const{crossfade:i}=t.options;i===!1&&r.hide()}}exitAnimationComplete(){this.members.forEach(t=>{const{options:n,resumingFrom:r}=t;n.onExitComplete&&n.onExitComplete(),r&&r.options.onExitComplete&&r.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function lU(e,t,n){let r="";const i=e.x.translate/t.x,o=e.y.translate/t.y,a=(n==null?void 0:n.z)||0;if((i||o||a)&&(r=`translate3d(${i}px, ${o}px, ${a}px) `),(t.x!==1||t.y!==1)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),n){const{transformPerspective:d,rotate:h,rotateX:m,rotateY:v,skewX:y,skewY:w}=n;d&&(r=`perspective(${d}px) ${r}`),h&&(r+=`rotate(${h}deg) `),m&&(r+=`rotateX(${m}deg) `),v&&(r+=`rotateY(${v}deg) `),y&&(r+=`skewX(${y}deg) `),w&&(r+=`skewY(${w}deg) `)}const l=e.x.scale*t.x,c=e.y.scale*t.y;return(l!==1||c!==1)&&(r+=`scale(${l}, ${c})`),r||"none"}const Nb=["","X","Y","Z"],uU=1e3;let cU=0;function Rb(e,t,n,r){const{latestValues:i}=t;i[e]&&(n[e]=i[e],t.setStaticValue(e,0),r&&(r[e]=0))}function lM(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const n=G6(t);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:i,layoutId:o}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",jn,!(i||o))}const{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&lM(r)}function uM({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:i}){return class{constructor(a={},l=t==null?void 0:t()){this.id=cU++,this.animationId=0,this.animationCommitId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,this.nodes.forEach(hU),this.nodes.forEach(vU),this.nodes.forEach(yU),this.nodes.forEach(pU)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=a,this.root=l?l.root||l:this,this.path=l?[...l.path,l]:[],this.parent=l,this.depth=l?l.depth+1:0;for(let c=0;cthis.root.updateBlockedByResize=!1;jn.read(()=>{m=window.innerWidth}),e(a,()=>{const y=window.innerWidth;y!==m&&(m=y,this.root.updateBlockedByResize=!0,h&&h(),h=Qz(v,250),sy.hasAnimatedSinceResize&&(sy.hasAnimatedSinceResize=!1,this.nodes.forEach(O3)))})}l&&this.root.registerSharedNode(l,this),this.options.animate!==!1&&d&&(l||c)&&this.addEventListener("didUpdate",({delta:h,hasLayoutChanged:m,hasRelativeLayoutChanged:v,layout:y})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const w=this.options.transition||d.getDefaultTransition()||_U,{onLayoutAnimationStart:C,onLayoutAnimationComplete:_}=d.getProps(),P=!this.targetLayout||!sM(this.targetLayout,y),T=!m&&v;if(this.options.layoutRoot||this.resumeFrom||T||m&&(P||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);const A={...EC(w,"layout"),onPlay:C,onComplete:_};(d.shouldReduceMotion||this.options.layoutRoot)&&(A.delay=0,A.type=!1),this.startAnimation(A),this.setAnimationOrigin(h,T)}else m||O3(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=y})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const a=this.getStack();a&&a.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),ml(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(xU),this.animationId++)}getTransformTemplate(){const{visualElement:a}=this.options;return a&&a.getProps().transformTemplate}willUpdate(a=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&lM(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let h=0;h{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!Ai(this.snapshot.measuredBox.x)&&!Ai(this.snapshot.measuredBox.y)&&(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let c=0;c{const M=I/1e3;P3(m.x,a.x,M),P3(m.y,a.y,M),this.setTargetDelta(m),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(qm(v,this.layout.layoutBox,this.relativeParent.layout.layoutBox),wU(this.relativeTarget,this.relativeTargetOrigin,v,M),A&&aU(this.relativeTarget,A)&&(this.isProjectionDirty=!1),A||(A=or()),Go(A,this.relativeTarget)),C&&(this.animationValues=h,eU(h,d,this.latestValues,M,T,P)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=M},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(a){var l,c,d;this.notifyListeners("animationStart"),(l=this.currentAnimation)==null||l.stop(),(d=(c=this.resumingFrom)==null?void 0:c.currentAnimation)==null||d.stop(),this.pendingAnimation&&(ml(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=jn.update(()=>{sy.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=nf(0)),this.currentAnimation=Yz(this.motionValue,[0,1e3],{...a,velocity:0,isSync:!0,onUpdate:h=>{this.mixTargetDelta(h),a.onUpdate&&a.onUpdate(h)},onStop:()=>{},onComplete:()=>{a.onComplete&&a.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const a=this.getStack();a&&a.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(uU),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const a=this.getLead();let{targetWithTransforms:l,target:c,layout:d,latestValues:h}=a;if(!(!l||!c||!d)){if(this!==a&&this.layout&&d&&cM(this.options.animationType,this.layout.layoutBox,d.layoutBox)){c=this.target||or();const m=Ai(this.layout.layoutBox.x);c.x.min=a.target.x.min,c.x.max=c.x.min+m;const v=Ai(this.layout.layoutBox.y);c.y.min=a.target.y.min,c.y.max=c.y.min+v}Go(l,c),lh(l,h),Hm(this.projectionDeltaWithTransform,this.layoutCorrected,l,h)}}registerSharedNode(a,l){this.sharedNodes.has(a)||this.sharedNodes.set(a,new sU),this.sharedNodes.get(a).add(l);const d=l.options.initialPromotionConfig;l.promote({transition:d?d.transition:void 0,preserveFollowOpacity:d&&d.shouldPreserveFollowOpacity?d.shouldPreserveFollowOpacity(l):void 0})}isLead(){const a=this.getStack();return a?a.lead===this:!0}getLead(){var l;const{layoutId:a}=this.options;return a?((l=this.getStack())==null?void 0:l.lead)||this:this}getPrevLead(){var l;const{layoutId:a}=this.options;return a?(l=this.getStack())==null?void 0:l.prevLead:void 0}getStack(){const{layoutId:a}=this.options;if(a)return this.root.sharedNodes.get(a)}promote({needsReset:a,transition:l,preserveFollowOpacity:c}={}){const d=this.getStack();d&&d.promote(this,c),a&&(this.projectionDelta=void 0,this.needsReset=!0),l&&this.setOptions({transition:l})}relegate(){const a=this.getStack();return a?a.relegate(this):!1}resetSkewAndRotation(){const{visualElement:a}=this.options;if(!a)return;let l=!1;const{latestValues:c}=a;if((c.z||c.rotate||c.rotateX||c.rotateY||c.rotateZ||c.skewX||c.skewY)&&(l=!0),!l)return;const d={};c.z&&Rb("z",a,d,this.animationValues);for(let h=0;h{var l;return(l=a.currentAnimation)==null?void 0:l.stop()}),this.root.nodes.forEach(C3),this.root.sharedNodes.clear()}}}function fU(e){e.updateLayout()}function dU(e){var n;const t=((n=e.resumeFrom)==null?void 0:n.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&t&&e.hasListeners("didUpdate")){const{layoutBox:r,measuredBox:i}=e.layout,{animationType:o}=e.options,a=t.source!==e.layout.source;o==="size"?ea(m=>{const v=a?t.measuredBox[m]:t.layoutBox[m],y=Ai(v);v.min=r[m].min,v.max=v.min+y}):cM(o,t.layoutBox,r)&&ea(m=>{const v=a?t.measuredBox[m]:t.layoutBox[m],y=Ai(r[m]);v.max=v.min+y,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[m].max=e.relativeTarget[m].min+y)});const l=uh();Hm(l,r,t.layoutBox);const c=uh();a?Hm(c,e.applyTransform(i,!0),t.measuredBox):Hm(c,r,t.layoutBox);const d=!aM(l);let h=!1;if(!e.resumeFrom){const m=e.getClosestProjectingParent();if(m&&!m.resumeFrom){const{snapshot:v,layout:y}=m;if(v&&y){const w=or();qm(w,t.layoutBox,v.layoutBox);const C=or();qm(C,r,y.layoutBox),sM(w,C)||(h=!0),m.options.layoutRoot&&(e.relativeTarget=C,e.relativeTargetOrigin=w,e.relativeParent=m)}}}e.notifyListeners("didUpdate",{layout:r,snapshot:t,delta:c,layoutDelta:l,hasLayoutChanged:d,hasRelativeLayoutChanged:h})}else if(e.isLead()){const{onExitComplete:r}=e.options;r&&r()}e.options.transition=void 0}function hU(e){e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function pU(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function mU(e){e.clearSnapshot()}function C3(e){e.clearMeasurements()}function E3(e){e.isLayoutDirty=!1}function gU(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function O3(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function vU(e){e.resolveTargetDelta()}function yU(e){e.calcProjection()}function xU(e){e.resetSkewAndRotation()}function bU(e){e.removeLeadSnapshot()}function P3(e,t,n){e.translate=Un(t.translate,0,n),e.scale=Un(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function A3(e,t,n,r){e.min=Un(t.min,n.min,r),e.max=Un(t.max,n.max,r)}function wU(e,t,n,r){A3(e.x,t.x,n.x,r),A3(e.y,t.y,n.y,r)}function SU(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const _U={duration:.45,ease:[.4,0,.1,1]},T3=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),k3=T3("applewebkit/")&&!T3("chrome/")?Math.round:ia;function j3(e){e.min=k3(e.min),e.max=k3(e.max)}function CU(e){j3(e.x),j3(e.y)}function cM(e,t,n){return e==="position"||e==="preserve-aspect"&&!kz(S3(t),S3(n),.2)}function EU(e){var t;return e!==e.root&&((t=e.scroll)==null?void 0:t.wasRoot)}const OU=uM({attachResizeListener:(e,t)=>ig(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),Lb={current:void 0},fM=uM({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!Lb.current){const e=new OU({});e.mount(window),e.setOptions({layoutScroll:!0}),Lb.current=e}return Lb.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),PU={pan:{Feature:Hz},drag:{Feature:Wz,ProjectionNode:fM,MeasureLayout:rM}};function M3(e,t,n){const{props:r}=e;e.animationState&&r.whileHover&&e.animationState.setActive("whileHover",n==="Start");const i="onHover"+n,o=r[i];o&&jn.postRender(()=>o(t,Fg(t)))}class AU extends Au{mount(){const{current:t}=this.node;t&&(this.unmount=GB(t,(n,r)=>(M3(this.node,r,"Start"),i=>M3(this.node,i,"End"))))}unmount(){}}class TU extends Au{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch{t=!0}!t||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=Rg(ig(this.node.current,"focus",()=>this.onFocus()),ig(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function I3(e,t,n){const{props:r}=e;if(e.current instanceof HTMLButtonElement&&e.current.disabled)return;e.animationState&&r.whileTap&&e.animationState.setActive("whileTap",n==="Start");const i="onTap"+(n==="End"?"":n),o=r[i];o&&jn.postRender(()=>o(t,Fg(t)))}class kU extends Au{mount(){const{current:t}=this.node;t&&(this.unmount=QB(t,(n,r)=>(I3(this.node,r,"Start"),(i,{success:o})=>I3(this.node,i,o?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const WS=new WeakMap,Db=new WeakMap,jU=e=>{const t=WS.get(e.target);t&&t(e)},MU=e=>{e.forEach(jU)};function IU({root:e,...t}){const n=e||document;Db.has(n)||Db.set(n,{});const r=Db.get(n),i=JSON.stringify(t);return r[i]||(r[i]=new IntersectionObserver(MU,{root:e,...t})),r[i]}function NU(e,t,n){const r=IU(t);return WS.set(e,n),r.observe(e),()=>{WS.delete(e),r.unobserve(e)}}const RU={some:0,all:1};class LU extends Au{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:n,margin:r,amount:i="some",once:o}=t,a={root:n?n.current:void 0,rootMargin:r,threshold:typeof i=="number"?i:RU[i]},l=c=>{const{isIntersecting:d}=c;if(this.isInView===d||(this.isInView=d,o&&!d&&this.hasEnteredView))return;d&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",d);const{onViewportEnter:h,onViewportLeave:m}=this.node.getProps(),v=d?h:m;v&&v(c)};return NU(this.node.current,a,l)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:n}=this.node;["amount","margin","root"].some(DU(t,n))&&this.startObserver()}unmount(){}}function DU({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const $U={inView:{Feature:LU},tap:{Feature:kU},focus:{Feature:TU},hover:{Feature:AU}},FU={layout:{ProjectionNode:fM,MeasureLayout:rM}},BU={...Cz,...$U,...PU,...FU},Cn=FV(BU,QV);function dM(e){const t=Ng(()=>nf(e)),{isStatic:n}=O.useContext($g);if(n){const[,r]=O.useState(e);O.useEffect(()=>t.on("change",r),[])}return t}function hM(e,t){const n=dM(t()),r=()=>n.set(t());return r(),lC(()=>{const i=()=>jn.preRender(r,!1,!0),o=e.map(a=>a.on("change",i));return()=>{o.forEach(a=>a()),ml(r)}}),n}function VU(e){Um.current=[],e();const t=hM(Um.current,e);return Um.current=void 0,t}function pM(e,t,n,r){if(typeof e=="function")return VU(e);const i=typeof t=="function"?t:eV(t,n,r);return Array.isArray(e)?N3(e,i):N3([e],([o])=>i(o))}function N3(e,t){const n=Ng(()=>[]);return hM(e,()=>{n.length=0;const r=e.length;for(let i=0;iDr(e)?e.get():e;if(n)return pM(r);const i=dM(r());return O.useInsertionEffect(()=>tV(i,e,t),[i,JSON.stringify(t)]),i}const R3=({className:e,children:t})=>b.jsx("div",{className:Ht("font-ibm-plex-mono text-15 font-500 leading-[140%] tracking-normal text-dark-blue",e),children:t}),qc=({isOpen:e,children:t})=>b.jsx(Cn.div,{className:"overflow-hidden",initial:!1,animate:{height:e?"auto":0,opacity:e?1:0},transition:{duration:.2,ease:"easeInOut"},children:t}),xu=({isOpen:e,onClick:t,textClassName:n,containerClassName:r})=>{const i=b.jsx("svg",{width:"16",height:"17",viewBox:"0 0 16 17",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:b.jsx("path",{d:"M3.33325 8.5H12.6666",stroke:"#202B38",strokeLinecap:"round",strokeLinejoin:"round"})}),o=b.jsx("svg",{width:"16",height:"17",viewBox:"0 0 16 17",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:b.jsx("path",{d:"M3.33325 8.50065H12.6666M7.99992 3.83398V13.1673",stroke:"#202B38",strokeLinecap:"round",strokeLinejoin:"round"})});return b.jsxs("div",{onClick:t,className:Ht("flex cursor-pointer flex-row flex-wrap items-center gap-x-[4px] opacity-70 transition-opacity duration-100 hover:opacity-80",r),children:[b.jsx("div",{className:Ht("text-center font-ibm-plex-mono text-12 font-500 uppercase leading-[140%] text-dark-blue",n),children:"More info"}),e?i:o]})},Kd=({className:e,children:t,...n})=>b.jsx("div",{className:Ht("font-ibm-plex-mono text-15 font-400 leading-[155%]",e),...n,children:t}),bm=({className:e,children:t})=>b.jsx("div",{className:Ht("font-ibm-plex-mono text-12 font-500 leading-[140%] text-dark-blue",e),children:t}),xh=Math.min,Kc=Math.max,by=Math.round,Rv=Math.floor,vs=e=>({x:e,y:e}),UU={left:"right",right:"left",bottom:"top",top:"bottom"},WU={start:"end",end:"start"};function HS(e,t,n){return Kc(e,xh(t,n))}function Bg(e,t){return typeof e=="function"?e(t):e}function rf(e){return e.split("-")[0]}function Vg(e){return e.split("-")[1]}function mM(e){return e==="x"?"y":"x"}function $C(e){return e==="y"?"height":"width"}function Gc(e){return["top","bottom"].includes(rf(e))?"y":"x"}function FC(e){return mM(Gc(e))}function HU(e,t,n){n===void 0&&(n=!1);const r=Vg(e),i=FC(e),o=$C(i);let a=i==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[o]>t.floating[o]&&(a=wy(a)),[a,wy(a)]}function qU(e){const t=wy(e);return[qS(e),t,qS(t)]}function qS(e){return e.replace(/start|end/g,t=>WU[t])}function KU(e,t,n){const r=["left","right"],i=["right","left"],o=["top","bottom"],a=["bottom","top"];switch(e){case"top":case"bottom":return n?t?i:r:t?r:i;case"left":case"right":return t?o:a;default:return[]}}function GU(e,t,n,r){const i=Vg(e);let o=KU(rf(e),n==="start",r);return i&&(o=o.map(a=>a+"-"+i),t&&(o=o.concat(o.map(qS)))),o}function wy(e){return e.replace(/left|right|bottom|top/g,t=>UU[t])}function YU(e){return{top:0,right:0,bottom:0,left:0,...e}}function gM(e){return typeof e!="number"?YU(e):{top:e,right:e,bottom:e,left:e}}function Sy(e){const{x:t,y:n,width:r,height:i}=e;return{width:r,height:i,top:n,left:t,right:t+r,bottom:n+i,x:t,y:n}}function L3(e,t,n){let{reference:r,floating:i}=e;const o=Gc(t),a=FC(t),l=$C(a),c=rf(t),d=o==="y",h=r.x+r.width/2-i.width/2,m=r.y+r.height/2-i.height/2,v=r[l]/2-i[l]/2;let y;switch(c){case"top":y={x:h,y:r.y-i.height};break;case"bottom":y={x:h,y:r.y+r.height};break;case"right":y={x:r.x+r.width,y:m};break;case"left":y={x:r.x-i.width,y:m};break;default:y={x:r.x,y:r.y}}switch(Vg(t)){case"start":y[a]-=v*(n&&d?-1:1);break;case"end":y[a]+=v*(n&&d?-1:1);break}return y}const ZU=async(e,t,n)=>{const{placement:r="bottom",strategy:i="absolute",middleware:o=[],platform:a}=n,l=o.filter(Boolean),c=await(a.isRTL==null?void 0:a.isRTL(t));let d=await a.getElementRects({reference:e,floating:t,strategy:i}),{x:h,y:m}=L3(d,r,c),v=r,y={},w=0;for(let C=0;C({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:i,rects:o,platform:a,elements:l,middlewareData:c}=t,{element:d,padding:h=0}=Bg(e,t)||{};if(d==null)return{};const m=gM(h),v={x:n,y:r},y=FC(i),w=$C(y),C=await a.getDimensions(d),_=y==="y",P=_?"top":"left",T=_?"bottom":"right",A=_?"clientHeight":"clientWidth",I=o.reference[w]+o.reference[y]-v[y]-o.floating[w],M=v[y]-o.reference[y],N=await(a.getOffsetParent==null?void 0:a.getOffsetParent(d));let L=N?N[A]:0;(!L||!await(a.isElement==null?void 0:a.isElement(N)))&&(L=l.floating[A]||o.floating[w]);const F=I/2-M/2,B=L/2-C[w]/2-1,U=xh(m[P],B),W=xh(m[T],B),G=U,ie=L-C[w]-W,te=L/2-C[w]/2+F,se=HS(G,te,ie),le=!c.arrow&&Vg(i)!=null&&te!==se&&o.reference[w]/2-(tese<=0)){var W,G;const se=(((W=o.flip)==null?void 0:W.index)||0)+1,le=L[se];if(le){var ie;const H=m==="alignment"?T!==Gc(le):!1,Z=((ie=U[0])==null?void 0:ie.overflows[0])>0;if(!H||Z)return{data:{index:se,overflows:U},reset:{placement:le}}}let q=(G=U.filter(H=>H.overflows[0]<=0).sort((H,Z)=>H.overflows[1]-Z.overflows[1])[0])==null?void 0:G.placement;if(!q)switch(y){case"bestFit":{var te;const H=(te=U.filter(Z=>{if(N){const X=Gc(Z.placement);return X===T||X==="y"}return!0}).map(Z=>[Z.placement,Z.overflows.filter(X=>X>0).reduce((X,z)=>X+z,0)]).sort((Z,X)=>Z[1]-X[1])[0])==null?void 0:te[0];H&&(q=H);break}case"initialPlacement":q=l;break}if(i!==q)return{reset:{placement:q}}}return{}}}};async function JU(e,t){const{placement:n,platform:r,elements:i}=e,o=await(r.isRTL==null?void 0:r.isRTL(i.floating)),a=rf(n),l=Vg(n),c=Gc(n)==="y",d=["left","top"].includes(a)?-1:1,h=o&&c?-1:1,m=Bg(t,e);let{mainAxis:v,crossAxis:y,alignmentAxis:w}=typeof m=="number"?{mainAxis:m,crossAxis:0,alignmentAxis:null}:{mainAxis:m.mainAxis||0,crossAxis:m.crossAxis||0,alignmentAxis:m.alignmentAxis};return l&&typeof w=="number"&&(y=l==="end"?w*-1:w),c?{x:y*h,y:v*d}:{x:v*d,y:y*h}}const eW=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:i,y:o,placement:a,middlewareData:l}=t,c=await JU(t,e);return a===((n=l.offset)==null?void 0:n.placement)&&(r=l.arrow)!=null&&r.alignmentOffset?{}:{x:i+c.x,y:o+c.y,data:{...c,placement:a}}}}},tW=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:i}=t,{mainAxis:o=!0,crossAxis:a=!1,limiter:l={fn:_=>{let{x:P,y:T}=_;return{x:P,y:T}}},...c}=Bg(e,t),d={x:n,y:r},h=await vM(t,c),m=Gc(rf(i)),v=mM(m);let y=d[v],w=d[m];if(o){const _=v==="y"?"top":"left",P=v==="y"?"bottom":"right",T=y+h[_],A=y-h[P];y=HS(T,y,A)}if(a){const _=m==="y"?"top":"left",P=m==="y"?"bottom":"right",T=w+h[_],A=w-h[P];w=HS(T,w,A)}const C=l.fn({...t,[v]:y,[m]:w});return{...C,data:{x:C.x-n,y:C.y-r,enabled:{[v]:o,[m]:a}}}}}};function I1(){return typeof window<"u"}function Vh(e){return yM(e)?(e.nodeName||"").toLowerCase():"#document"}function _o(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Os(e){var t;return(t=(yM(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function yM(e){return I1()?e instanceof Node||e instanceof _o(e).Node:!1}function Ma(e){return I1()?e instanceof Element||e instanceof _o(e).Element:!1}function ws(e){return I1()?e instanceof HTMLElement||e instanceof _o(e).HTMLElement:!1}function D3(e){return!I1()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof _o(e).ShadowRoot}function zg(e){const{overflow:t,overflowX:n,overflowY:r,display:i}=Ia(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(i)}function nW(e){return["table","td","th"].includes(Vh(e))}function N1(e){return[":popover-open",":modal"].some(t=>{try{return e.matches(t)}catch{return!1}})}function BC(e){const t=VC(),n=Ma(e)?Ia(e):e;return["transform","translate","scale","rotate","perspective"].some(r=>n[r]?n[r]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||["transform","translate","scale","rotate","perspective","filter"].some(r=>(n.willChange||"").includes(r))||["paint","layout","strict","content"].some(r=>(n.contain||"").includes(r))}function rW(e){let t=Su(e);for(;ws(t)&&!bh(t);){if(BC(t))return t;if(N1(t))return null;t=Su(t)}return null}function VC(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function bh(e){return["html","body","#document"].includes(Vh(e))}function Ia(e){return _o(e).getComputedStyle(e)}function R1(e){return Ma(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Su(e){if(Vh(e)==="html")return e;const t=e.assignedSlot||e.parentNode||D3(e)&&e.host||Os(e);return D3(t)?t.host:t}function xM(e){const t=Su(e);return bh(t)?e.ownerDocument?e.ownerDocument.body:e.body:ws(t)&&zg(t)?t:xM(t)}function og(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const i=xM(e),o=i===((r=e.ownerDocument)==null?void 0:r.body),a=_o(i);if(o){const l=KS(a);return t.concat(a,a.visualViewport||[],zg(i)?i:[],l&&n?og(l):[])}return t.concat(i,og(i,[],n))}function KS(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function bM(e){const t=Ia(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const i=ws(e),o=i?e.offsetWidth:n,a=i?e.offsetHeight:r,l=by(n)!==o||by(r)!==a;return l&&(n=o,r=a),{width:n,height:r,$:l}}function zC(e){return Ma(e)?e:e.contextElement}function hh(e){const t=zC(e);if(!ws(t))return vs(1);const n=t.getBoundingClientRect(),{width:r,height:i,$:o}=bM(t);let a=(o?by(n.width):n.width)/r,l=(o?by(n.height):n.height)/i;return(!a||!Number.isFinite(a))&&(a=1),(!l||!Number.isFinite(l))&&(l=1),{x:a,y:l}}const iW=vs(0);function wM(e){const t=_o(e);return!VC()||!t.visualViewport?iW:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function oW(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==_o(e)?!1:t}function of(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const i=e.getBoundingClientRect(),o=zC(e);let a=vs(1);t&&(r?Ma(r)&&(a=hh(r)):a=hh(e));const l=oW(o,n,r)?wM(o):vs(0);let c=(i.left+l.x)/a.x,d=(i.top+l.y)/a.y,h=i.width/a.x,m=i.height/a.y;if(o){const v=_o(o),y=r&&Ma(r)?_o(r):r;let w=v,C=KS(w);for(;C&&r&&y!==w;){const _=hh(C),P=C.getBoundingClientRect(),T=Ia(C),A=P.left+(C.clientLeft+parseFloat(T.paddingLeft))*_.x,I=P.top+(C.clientTop+parseFloat(T.paddingTop))*_.y;c*=_.x,d*=_.y,h*=_.x,m*=_.y,c+=A,d+=I,w=_o(C),C=KS(w)}}return Sy({width:h,height:m,x:c,y:d})}function UC(e,t){const n=R1(e).scrollLeft;return t?t.left+n:of(Os(e)).left+n}function SM(e,t,n){n===void 0&&(n=!1);const r=e.getBoundingClientRect(),i=r.left+t.scrollLeft-(n?0:UC(e,r)),o=r.top+t.scrollTop;return{x:i,y:o}}function aW(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e;const o=i==="fixed",a=Os(r),l=t?N1(t.floating):!1;if(r===a||l&&o)return n;let c={scrollLeft:0,scrollTop:0},d=vs(1);const h=vs(0),m=ws(r);if((m||!m&&!o)&&((Vh(r)!=="body"||zg(a))&&(c=R1(r)),ws(r))){const y=of(r);d=hh(r),h.x=y.x+r.clientLeft,h.y=y.y+r.clientTop}const v=a&&!m&&!o?SM(a,c,!0):vs(0);return{width:n.width*d.x,height:n.height*d.y,x:n.x*d.x-c.scrollLeft*d.x+h.x+v.x,y:n.y*d.y-c.scrollTop*d.y+h.y+v.y}}function sW(e){return Array.from(e.getClientRects())}function lW(e){const t=Os(e),n=R1(e),r=e.ownerDocument.body,i=Kc(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),o=Kc(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let a=-n.scrollLeft+UC(e);const l=-n.scrollTop;return Ia(r).direction==="rtl"&&(a+=Kc(t.clientWidth,r.clientWidth)-i),{width:i,height:o,x:a,y:l}}function uW(e,t){const n=_o(e),r=Os(e),i=n.visualViewport;let o=r.clientWidth,a=r.clientHeight,l=0,c=0;if(i){o=i.width,a=i.height;const d=VC();(!d||d&&t==="fixed")&&(l=i.offsetLeft,c=i.offsetTop)}return{width:o,height:a,x:l,y:c}}function cW(e,t){const n=of(e,!0,t==="fixed"),r=n.top+e.clientTop,i=n.left+e.clientLeft,o=ws(e)?hh(e):vs(1),a=e.clientWidth*o.x,l=e.clientHeight*o.y,c=i*o.x,d=r*o.y;return{width:a,height:l,x:c,y:d}}function $3(e,t,n){let r;if(t==="viewport")r=uW(e,n);else if(t==="document")r=lW(Os(e));else if(Ma(t))r=cW(t,n);else{const i=wM(e);r={x:t.x-i.x,y:t.y-i.y,width:t.width,height:t.height}}return Sy(r)}function _M(e,t){const n=Su(e);return n===t||!Ma(n)||bh(n)?!1:Ia(n).position==="fixed"||_M(n,t)}function fW(e,t){const n=t.get(e);if(n)return n;let r=og(e,[],!1).filter(l=>Ma(l)&&Vh(l)!=="body"),i=null;const o=Ia(e).position==="fixed";let a=o?Su(e):e;for(;Ma(a)&&!bh(a);){const l=Ia(a),c=BC(a);!c&&l.position==="fixed"&&(i=null),(o?!c&&!i:!c&&l.position==="static"&&!!i&&["absolute","fixed"].includes(i.position)||zg(a)&&!c&&_M(e,a))?r=r.filter(h=>h!==a):i=l,a=Su(a)}return t.set(e,r),r}function dW(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e;const a=[...n==="clippingAncestors"?N1(t)?[]:fW(t,this._c):[].concat(n),r],l=a[0],c=a.reduce((d,h)=>{const m=$3(t,h,i);return d.top=Kc(m.top,d.top),d.right=xh(m.right,d.right),d.bottom=xh(m.bottom,d.bottom),d.left=Kc(m.left,d.left),d},$3(t,l,i));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}}function hW(e){const{width:t,height:n}=bM(e);return{width:t,height:n}}function pW(e,t,n){const r=ws(t),i=Os(t),o=n==="fixed",a=of(e,!0,o,t);let l={scrollLeft:0,scrollTop:0};const c=vs(0);function d(){c.x=UC(i)}if(r||!r&&!o)if((Vh(t)!=="body"||zg(i))&&(l=R1(t)),r){const y=of(t,!0,o,t);c.x=y.x+t.clientLeft,c.y=y.y+t.clientTop}else i&&d();o&&!r&&i&&d();const h=i&&!r&&!o?SM(i,l):vs(0),m=a.left+l.scrollLeft-c.x-h.x,v=a.top+l.scrollTop-c.y-h.y;return{x:m,y:v,width:a.width,height:a.height}}function $b(e){return Ia(e).position==="static"}function F3(e,t){if(!ws(e)||Ia(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return Os(e)===n&&(n=n.ownerDocument.body),n}function CM(e,t){const n=_o(e);if(N1(e))return n;if(!ws(e)){let i=Su(e);for(;i&&!bh(i);){if(Ma(i)&&!$b(i))return i;i=Su(i)}return n}let r=F3(e,t);for(;r&&nW(r)&&$b(r);)r=F3(r,t);return r&&bh(r)&&$b(r)&&!BC(r)?n:r||rW(e)||n}const mW=async function(e){const t=this.getOffsetParent||CM,n=this.getDimensions,r=await n(e.floating);return{reference:pW(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function gW(e){return Ia(e).direction==="rtl"}const vW={convertOffsetParentRelativeRectToViewportRelativeRect:aW,getDocumentElement:Os,getClippingRect:dW,getOffsetParent:CM,getElementRects:mW,getClientRects:sW,getDimensions:hW,getScale:hh,isElement:Ma,isRTL:gW};function EM(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function yW(e,t){let n=null,r;const i=Os(e);function o(){var l;clearTimeout(r),(l=n)==null||l.disconnect(),n=null}function a(l,c){l===void 0&&(l=!1),c===void 0&&(c=1),o();const d=e.getBoundingClientRect(),{left:h,top:m,width:v,height:y}=d;if(l||t(),!v||!y)return;const w=Rv(m),C=Rv(i.clientWidth-(h+v)),_=Rv(i.clientHeight-(m+y)),P=Rv(h),A={rootMargin:-w+"px "+-C+"px "+-_+"px "+-P+"px",threshold:Kc(0,xh(1,c))||1};let I=!0;function M(N){const L=N[0].intersectionRatio;if(L!==c){if(!I)return a();L?a(!1,L):r=setTimeout(()=>{a(!1,1e-7)},1e3)}L===1&&!EM(d,e.getBoundingClientRect())&&a(),I=!1}try{n=new IntersectionObserver(M,{...A,root:i.ownerDocument})}catch{n=new IntersectionObserver(M,A)}n.observe(e)}return a(!0),o}function OM(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:i=!0,ancestorResize:o=!0,elementResize:a=typeof ResizeObserver=="function",layoutShift:l=typeof IntersectionObserver=="function",animationFrame:c=!1}=r,d=zC(e),h=i||o?[...d?og(d):[],...og(t)]:[];h.forEach(P=>{i&&P.addEventListener("scroll",n,{passive:!0}),o&&P.addEventListener("resize",n)});const m=d&&l?yW(d,n):null;let v=-1,y=null;a&&(y=new ResizeObserver(P=>{let[T]=P;T&&T.target===d&&y&&(y.unobserve(t),cancelAnimationFrame(v),v=requestAnimationFrame(()=>{var A;(A=y)==null||A.observe(t)})),n()}),d&&!c&&y.observe(d),y.observe(t));let w,C=c?of(e):null;c&&_();function _(){const P=of(e);C&&!EM(C,P)&&n(),C=P,w=requestAnimationFrame(_)}return n(),()=>{var P;h.forEach(T=>{i&&T.removeEventListener("scroll",n),o&&T.removeEventListener("resize",n)}),m==null||m(),(P=y)==null||P.disconnect(),y=null,c&&cancelAnimationFrame(w)}}const xW=eW,bW=tW,wW=QU,SW=XU,B3=(e,t,n)=>{const r=new Map,i={platform:vW,...n},o={...i.platform,_c:r};return ZU(e,t,{...i,platform:o})};var V3={};const _W="react-tooltip-core-styles",CW="react-tooltip-base-styles",z3={core:!1,base:!1};function U3({css:e,id:t=CW,type:n="base",ref:r}){var i,o;if(!e||typeof document>"u"||z3[n]||n==="core"&&typeof process<"u"&&(!((i=process==null?void 0:V3)===null||i===void 0)&&i.REACT_TOOLTIP_DISABLE_CORE_STYLES)||n!=="base"&&typeof process<"u"&&(!((o=process==null?void 0:V3)===null||o===void 0)&&o.REACT_TOOLTIP_DISABLE_BASE_STYLES))return;n==="core"&&(t=_W),r||(r={});const{insertAt:a}=r;if(document.getElementById(t))return;const l=document.head||document.getElementsByTagName("head")[0],c=document.createElement("style");c.id=t,c.type="text/css",a==="top"&&l.firstChild?l.insertBefore(c,l.firstChild):l.appendChild(c),c.styleSheet?c.styleSheet.cssText=e:c.appendChild(document.createTextNode(e)),z3[n]=!0}const W3=async({elementReference:e=null,tooltipReference:t=null,tooltipArrowReference:n=null,place:r="top",offset:i=10,strategy:o="absolute",middlewares:a=[xW(Number(i)),wW({fallbackAxisSideDirection:"start"}),bW({padding:5})],border:l,arrowSize:c=8})=>{if(!e)return{tooltipStyles:{},tooltipArrowStyles:{},place:r};if(t===null)return{tooltipStyles:{},tooltipArrowStyles:{},place:r};const d=a;return n?(d.push(SW({element:n,padding:5})),B3(e,t,{placement:r,strategy:o,middleware:d}).then(({x:h,y:m,placement:v,middlewareData:y})=>{var w,C;const _={left:`${h}px`,top:`${m}px`,border:l},{x:P,y:T}=(w=y.arrow)!==null&&w!==void 0?w:{x:0,y:0},A=(C={top:"bottom",right:"left",bottom:"top",left:"right"}[v.split("-")[0]])!==null&&C!==void 0?C:"bottom",I=l&&{borderBottom:l,borderRight:l};let M=0;if(l){const N=`${l}`.match(/(\d+)px/);M=N!=null&&N[1]?Number(N[1]):1}return{tooltipStyles:_,tooltipArrowStyles:{left:P!=null?`${P}px`:"",top:T!=null?`${T}px`:"",right:"",bottom:"",...I,[A]:`-${c/2+M}px`},place:v}})):B3(e,t,{placement:"bottom",strategy:o,middleware:d}).then(({x:h,y:m,placement:v})=>({tooltipStyles:{left:`${h}px`,top:`${m}px`},tooltipArrowStyles:{},place:v}))},H3=(e,t)=>!("CSS"in window&&"supports"in window.CSS)||window.CSS.supports(e,t),q3=(e,t,n)=>{let r=null;const i=function(...o){const a=()=>{r=null};!r&&(e.apply(this,o),r=setTimeout(a,t))};return i.cancel=()=>{r&&(clearTimeout(r),r=null)},i},K3=e=>e!==null&&!Array.isArray(e)&&typeof e=="object",GS=(e,t)=>{if(e===t)return!0;if(Array.isArray(e)&&Array.isArray(t))return e.length===t.length&&e.every((i,o)=>GS(i,t[o]));if(Array.isArray(e)!==Array.isArray(t))return!1;if(!K3(e)||!K3(t))return e===t;const n=Object.keys(e),r=Object.keys(t);return n.length===r.length&&n.every(i=>GS(e[i],t[i]))},EW=e=>{if(!(e instanceof HTMLElement||e instanceof SVGElement))return!1;const t=getComputedStyle(e);return["overflow","overflow-x","overflow-y"].some(n=>{const r=t.getPropertyValue(n);return r==="auto"||r==="scroll"})},G3=e=>{if(!e)return null;let t=e.parentElement;for(;t;){if(EW(t))return t;t=t.parentElement}return document.scrollingElement||document.documentElement},OW=typeof window<"u"?O.useLayoutEffect:O.useEffect,Yo=e=>{e.current&&(clearTimeout(e.current),e.current=null)},PW="DEFAULT_TOOLTIP_ID",AW={anchorRefs:new Set,activeAnchor:{current:null},attach:()=>{},detach:()=>{},setActiveAnchor:()=>{}},TW=O.createContext({getTooltipData:()=>AW});function PM(e=PW){return O.useContext(TW).getTooltipData(e)}var Gd={tooltip:"core-styles-module_tooltip__3vRRp",fixed:"core-styles-module_fixed__pcSol",arrow:"core-styles-module_arrow__cvMwQ",noArrow:"core-styles-module_noArrow__xock6",clickable:"core-styles-module_clickable__ZuTTB",show:"core-styles-module_show__Nt9eE",closing:"core-styles-module_closing__sGnxF"},Fb={tooltip:"styles-module_tooltip__mnnfp",arrow:"styles-module_arrow__K0L3T",dark:"styles-module_dark__xNqje",light:"styles-module_light__Z6W-X",success:"styles-module_success__A2AKt",warning:"styles-module_warning__SCK0X",error:"styles-module_error__JvumD",info:"styles-module_info__BWdHW"};const kW=({forwardRef:e,id:t,className:n,classNameArrow:r,variant:i="dark",anchorId:o,anchorSelect:a,place:l="top",offset:c=10,events:d=["hover"],openOnClick:h=!1,positionStrategy:m="absolute",middlewares:v,wrapper:y,delayShow:w=0,delayHide:C=0,float:_=!1,hidden:P=!1,noArrow:T=!1,clickable:A=!1,closeOnEsc:I=!1,closeOnScroll:M=!1,closeOnResize:N=!1,openEvents:L,closeEvents:F,globalCloseEvents:B,imperativeModeOnly:U,style:W,position:G,afterShow:ie,afterHide:te,disableTooltip:se,content:le,contentWrapperRef:q,isOpen:H,defaultIsOpen:Z=!1,setIsOpen:X,activeAnchor:z,setActiveAnchor:J,border:Me,opacity:Pe,arrowColor:we,arrowSize:je=8,role:re="tooltip"})=>{var he;const oe=O.useRef(null),be=O.useRef(null),Ce=O.useRef(null),fe=O.useRef(null),De=O.useRef(null),[Le,it]=O.useState({tooltipStyles:{},tooltipArrowStyles:{},place:l}),[Ve,At]=O.useState(!1),[pt,zt]=O.useState(!1),[st,Gt]=O.useState(null),Ne=O.useRef(!1),gt=O.useRef(null),{anchorRefs:er,setActiveAnchor:$n}=PM(t),ar=O.useRef(!1),[bn,rn]=O.useState([]),Wn=O.useRef(!1),Hn=h||d.includes("click"),xi=Hn||(L==null?void 0:L.click)||(L==null?void 0:L.dblclick)||(L==null?void 0:L.mousedown),Ii=L?{...L}:{mouseover:!0,focus:!0,mouseenter:!1,click:!1,dblclick:!1,mousedown:!1};!L&&Hn&&Object.assign(Ii,{mouseenter:!1,focus:!1,mouseover:!1,click:!0});const Ur=F?{...F}:{mouseout:!0,blur:!0,mouseleave:!1,click:!1,dblclick:!1,mouseup:!1};!F&&Hn&&Object.assign(Ur,{mouseleave:!1,blur:!1,mouseout:!1});const ve=B?{...B}:{escape:I||!1,scroll:M||!1,resize:N||!1,clickOutsideAnchor:xi||!1};U&&(Object.assign(Ii,{mouseover:!1,focus:!1,mouseenter:!1,click:!1,dblclick:!1,mousedown:!1}),Object.assign(Ur,{mouseout:!1,blur:!1,mouseleave:!1,click:!1,dblclick:!1,mouseup:!1}),Object.assign(ve,{escape:!1,scroll:!1,resize:!1,clickOutsideAnchor:!1})),OW(()=>(Wn.current=!0,()=>{Wn.current=!1}),[]);const pe=$e=>{Wn.current&&($e&&zt(!0),setTimeout(()=>{Wn.current&&(X==null||X($e),H===void 0&&At($e))},10))};O.useEffect(()=>{if(H===void 0)return()=>null;H&&zt(!0);const $e=setTimeout(()=>{At(H)},10);return()=>{clearTimeout($e)}},[H]),O.useEffect(()=>{if(Ve!==Ne.current)if(Yo(De),Ne.current=Ve,Ve)ie==null||ie();else{const $e=(ot=>{const ft=ot.match(/^([\d.]+)(ms|s)$/);if(!ft)return 0;const[,on,un]=ft;return Number(on)*(un==="ms"?1:1e3)})(getComputedStyle(document.body).getPropertyValue("--rt-transition-show-delay"));De.current=setTimeout(()=>{zt(!1),Gt(null),te==null||te()},$e+25)}},[Ve]);const Je=$e=>{it(ot=>GS(ot,$e)?ot:$e)},Xe=($e=w)=>{Yo(Ce),pt?pe(!0):Ce.current=setTimeout(()=>{pe(!0)},$e)},et=($e=C)=>{Yo(fe),fe.current=setTimeout(()=>{ar.current||pe(!1)},$e)},We=$e=>{var ot;if(!$e)return;const ft=(ot=$e.currentTarget)!==null&&ot!==void 0?ot:$e.target;if(!(ft!=null&&ft.isConnected))return J(null),void $n({current:null});w?Xe():pe(!0),J(ft),$n({current:ft}),Yo(fe)},He=()=>{A?et(C||100):C?et():pe(!1),Yo(Ce)},Mt=({x:$e,y:ot})=>{var ft;const on={getBoundingClientRect:()=>({x:$e,y:ot,width:0,height:0,top:ot,left:$e,right:$e,bottom:ot})};W3({place:(ft=st==null?void 0:st.place)!==null&&ft!==void 0?ft:l,offset:c,elementReference:on,tooltipReference:oe.current,tooltipArrowReference:be.current,strategy:m,middlewares:v,border:Me,arrowSize:je}).then(un=>{Je(un)})},Bt=$e=>{if(!$e)return;const ot=$e,ft={x:ot.clientX,y:ot.clientY};Mt(ft),gt.current=ft},jt=$e=>{var ot;if(!Ve)return;const ft=$e.target;ft.isConnected&&(!((ot=oe.current)===null||ot===void 0)&&ot.contains(ft)||[document.querySelector(`[id='${o}']`),...bn].some(on=>on==null?void 0:on.contains(ft))||(pe(!1),Yo(Ce)))},vt=q3(We,50),lt=q3(He,50),Jt=$e=>{lt.cancel(),vt($e)},Ge=()=>{vt.cancel(),lt()},Tt=O.useCallback(()=>{var $e,ot;const ft=($e=st==null?void 0:st.position)!==null&&$e!==void 0?$e:G;ft?Mt(ft):_?gt.current&&Mt(gt.current):z!=null&&z.isConnected&&W3({place:(ot=st==null?void 0:st.place)!==null&&ot!==void 0?ot:l,offset:c,elementReference:z,tooltipReference:oe.current,tooltipArrowReference:be.current,strategy:m,middlewares:v,border:Me,arrowSize:je}).then(on=>{Wn.current&&Je(on)})},[Ve,z,le,W,l,st==null?void 0:st.place,c,m,G,st==null?void 0:st.position,_,je]);O.useEffect(()=>{var $e,ot;const ft=new Set(er);bn.forEach(Wt=>{se!=null&&se(Wt)||ft.add({current:Wt})});const on=document.querySelector(`[id='${o}']`);on&&!(se!=null&&se(on))&&ft.add({current:on});const un=()=>{pe(!1)},pr=G3(z),ii=G3(oe.current);ve.scroll&&(window.addEventListener("scroll",un),pr==null||pr.addEventListener("scroll",un),ii==null||ii.addEventListener("scroll",un));let mr=null;ve.resize?window.addEventListener("resize",un):z&&oe.current&&(mr=OM(z,oe.current,Tt,{ancestorResize:!0,elementResize:!0,layoutShift:!0}));const oi=Wt=>{Wt.key==="Escape"&&pe(!1)};ve.escape&&window.addEventListener("keydown",oi),ve.clickOutsideAnchor&&window.addEventListener("click",jt);const vn=[],ai=Wt=>!!(Wt!=null&&Wt.target&&(z!=null&&z.contains(Wt.target))),Iu=Wt=>{Ve&&ai(Wt)||We(Wt)},_f=Wt=>{Ve&&ai(Wt)&&He()},Cf=["mouseover","mouseout","mouseenter","mouseleave","focus","blur"],Nu=["click","dblclick","mousedown","mouseup"];Object.entries(Ii).forEach(([Wt,to])=>{to&&(Cf.includes(Wt)?vn.push({event:Wt,listener:Jt}):Nu.includes(Wt)&&vn.push({event:Wt,listener:Iu}))}),Object.entries(Ur).forEach(([Wt,to])=>{to&&(Cf.includes(Wt)?vn.push({event:Wt,listener:Ge}):Nu.includes(Wt)&&vn.push({event:Wt,listener:_f}))}),_&&vn.push({event:"pointermove",listener:Bt});const Ru=()=>{ar.current=!0},Lu=()=>{ar.current=!1,He()},Du=A&&(Ur.mouseout||Ur.mouseleave);return Du&&(($e=oe.current)===null||$e===void 0||$e.addEventListener("mouseover",Ru),(ot=oe.current)===null||ot===void 0||ot.addEventListener("mouseout",Lu)),vn.forEach(({event:Wt,listener:to})=>{ft.forEach(cn=>{var As;(As=cn.current)===null||As===void 0||As.addEventListener(Wt,to)})}),()=>{var Wt,to;ve.scroll&&(window.removeEventListener("scroll",un),pr==null||pr.removeEventListener("scroll",un),ii==null||ii.removeEventListener("scroll",un)),ve.resize?window.removeEventListener("resize",un):mr==null||mr(),ve.clickOutsideAnchor&&window.removeEventListener("click",jt),ve.escape&&window.removeEventListener("keydown",oi),Du&&((Wt=oe.current)===null||Wt===void 0||Wt.removeEventListener("mouseover",Ru),(to=oe.current)===null||to===void 0||to.removeEventListener("mouseout",Lu)),vn.forEach(({event:cn,listener:As})=>{ft.forEach($u=>{var Pl;(Pl=$u.current)===null||Pl===void 0||Pl.removeEventListener(cn,As)})})}},[z,Tt,pt,er,bn,L,F,B,Hn,w,C]),O.useEffect(()=>{var $e,ot;let ft=(ot=($e=st==null?void 0:st.anchorSelect)!==null&&$e!==void 0?$e:a)!==null&&ot!==void 0?ot:"";!ft&&t&&(ft=`[data-tooltip-id='${t.replace(/'/g,"\\'")}']`);const on=new MutationObserver(un=>{const pr=[],ii=[];un.forEach(mr=>{if(mr.type==="attributes"&&mr.attributeName==="data-tooltip-id"&&(mr.target.getAttribute("data-tooltip-id")===t?pr.push(mr.target):mr.oldValue===t&&ii.push(mr.target)),mr.type==="childList"){if(z){const oi=[...mr.removedNodes].filter(vn=>vn.nodeType===1);if(ft)try{ii.push(...oi.filter(vn=>vn.matches(ft))),ii.push(...oi.flatMap(vn=>[...vn.querySelectorAll(ft)]))}catch{}oi.some(vn=>{var ai;return!!(!((ai=vn==null?void 0:vn.contains)===null||ai===void 0)&&ai.call(vn,z))&&(zt(!1),pe(!1),J(null),Yo(Ce),Yo(fe),!0)})}if(ft)try{const oi=[...mr.addedNodes].filter(vn=>vn.nodeType===1);pr.push(...oi.filter(vn=>vn.matches(ft))),pr.push(...oi.flatMap(vn=>[...vn.querySelectorAll(ft)]))}catch{}}}),(pr.length||ii.length)&&rn(mr=>[...mr.filter(oi=>!ii.includes(oi)),...pr])});return on.observe(document.body,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["data-tooltip-id"],attributeOldValue:!0}),()=>{on.disconnect()}},[t,a,st==null?void 0:st.anchorSelect,z]),O.useEffect(()=>{Tt()},[Tt]),O.useEffect(()=>{if(!(q!=null&&q.current))return()=>null;const $e=new ResizeObserver(()=>{setTimeout(()=>Tt())});return $e.observe(q.current),()=>{$e.disconnect()}},[le,q==null?void 0:q.current]),O.useEffect(()=>{var $e;const ot=document.querySelector(`[id='${o}']`),ft=[...bn,ot];z&&ft.includes(z)||J(($e=bn[0])!==null&&$e!==void 0?$e:ot)},[o,bn,z]),O.useEffect(()=>(Z&&pe(!0),()=>{Yo(Ce),Yo(fe)}),[]),O.useEffect(()=>{var $e;let ot=($e=st==null?void 0:st.anchorSelect)!==null&&$e!==void 0?$e:a;if(!ot&&t&&(ot=`[data-tooltip-id='${t.replace(/'/g,"\\'")}']`),ot)try{const ft=Array.from(document.querySelectorAll(ot));rn(ft)}catch{rn([])}},[t,a,st==null?void 0:st.anchorSelect]),O.useEffect(()=>{Ce.current&&(Yo(Ce),Xe(w))},[w]);const On=(he=st==null?void 0:st.content)!==null&&he!==void 0?he:le,qn=Ve&&Object.keys(Le.tooltipStyles).length>0;return O.useImperativeHandle(e,()=>({open:$e=>{if($e!=null&&$e.anchorSelect)try{document.querySelector($e.anchorSelect)}catch{return void console.warn(`[react-tooltip] "${$e.anchorSelect}" is not a valid CSS selector`)}Gt($e??null),$e!=null&&$e.delay?Xe($e.delay):pe(!0)},close:$e=>{$e!=null&&$e.delay?et($e.delay):pe(!1)},activeAnchor:z,place:Le.place,isOpen:!!(pt&&!P&&On&&qn)})),pt&&!P&&On?fs.createElement(y,{id:t,role:re,className:Ht("react-tooltip",Gd.tooltip,Fb.tooltip,Fb[i],n,`react-tooltip__place-${Le.place}`,Gd[qn?"show":"closing"],qn?"react-tooltip__show":"react-tooltip__closing",m==="fixed"&&Gd.fixed,A&&Gd.clickable),onTransitionEnd:$e=>{Yo(De),Ve||$e.propertyName!=="opacity"||(zt(!1),Gt(null),te==null||te())},style:{...W,...Le.tooltipStyles,opacity:Pe!==void 0&&qn?Pe:void 0},ref:oe},On,fs.createElement(y,{className:Ht("react-tooltip-arrow",Gd.arrow,Fb.arrow,r,T&&Gd.noArrow),style:{...Le.tooltipArrowStyles,background:we?`linear-gradient(to right bottom, transparent 50%, ${we} 50%)`:void 0,"--rt-arrow-size":`${je}px`},ref:be})):null},jW=({content:e})=>fs.createElement("span",{dangerouslySetInnerHTML:{__html:e}}),ri=fs.forwardRef(({id:e,anchorId:t,anchorSelect:n,content:r,html:i,render:o,className:a,classNameArrow:l,variant:c="dark",place:d="top",offset:h=10,wrapper:m="div",children:v=null,events:y=["hover"],openOnClick:w=!1,positionStrategy:C="absolute",middlewares:_,delayShow:P=0,delayHide:T=0,float:A=!1,hidden:I=!1,noArrow:M=!1,clickable:N=!1,closeOnEsc:L=!1,closeOnScroll:F=!1,closeOnResize:B=!1,openEvents:U,closeEvents:W,globalCloseEvents:G,imperativeModeOnly:ie=!1,style:te,position:se,isOpen:le,defaultIsOpen:q=!1,disableStyleInjection:H=!1,border:Z,opacity:X,arrowColor:z,arrowSize:J,setIsOpen:Me,afterShow:Pe,afterHide:we,disableTooltip:je,role:re="tooltip"},he)=>{const[oe,be]=O.useState(r),[Ce,fe]=O.useState(i),[De,Le]=O.useState(d),[it,Ve]=O.useState(c),[At,pt]=O.useState(h),[zt,st]=O.useState(P),[Gt,Ne]=O.useState(T),[gt,er]=O.useState(A),[$n,ar]=O.useState(I),[bn,rn]=O.useState(m),[Wn,Hn]=O.useState(y),[xi,Ii]=O.useState(C),[Ur,ve]=O.useState(null),[pe,Je]=O.useState(null),Xe=O.useRef(H),{anchorRefs:et,activeAnchor:We}=PM(e),He=lt=>lt==null?void 0:lt.getAttributeNames().reduce((Jt,Ge)=>{var Tt;return Ge.startsWith("data-tooltip-")&&(Jt[Ge.replace(/^data-tooltip-/,"")]=(Tt=lt==null?void 0:lt.getAttribute(Ge))!==null&&Tt!==void 0?Tt:null),Jt},{}),Mt=lt=>{const Jt={place:Ge=>{var Tt;Le((Tt=Ge)!==null&&Tt!==void 0?Tt:d)},content:Ge=>{be(Ge??r)},html:Ge=>{fe(Ge??i)},variant:Ge=>{var Tt;Ve((Tt=Ge)!==null&&Tt!==void 0?Tt:c)},offset:Ge=>{pt(Ge===null?h:Number(Ge))},wrapper:Ge=>{var Tt;rn((Tt=Ge)!==null&&Tt!==void 0?Tt:m)},events:Ge=>{const Tt=Ge==null?void 0:Ge.split(" ");Hn(Tt??y)},"position-strategy":Ge=>{var Tt;Ii((Tt=Ge)!==null&&Tt!==void 0?Tt:C)},"delay-show":Ge=>{st(Ge===null?P:Number(Ge))},"delay-hide":Ge=>{Ne(Ge===null?T:Number(Ge))},float:Ge=>{er(Ge===null?A:Ge==="true")},hidden:Ge=>{ar(Ge===null?I:Ge==="true")},"class-name":Ge=>{ve(Ge)}};Object.values(Jt).forEach(Ge=>Ge(null)),Object.entries(lt).forEach(([Ge,Tt])=>{var On;(On=Jt[Ge])===null||On===void 0||On.call(Jt,Tt)})};O.useEffect(()=>{be(r)},[r]),O.useEffect(()=>{fe(i)},[i]),O.useEffect(()=>{Le(d)},[d]),O.useEffect(()=>{Ve(c)},[c]),O.useEffect(()=>{pt(h)},[h]),O.useEffect(()=>{st(P)},[P]),O.useEffect(()=>{Ne(T)},[T]),O.useEffect(()=>{er(A)},[A]),O.useEffect(()=>{ar(I)},[I]),O.useEffect(()=>{Ii(C)},[C]),O.useEffect(()=>{Xe.current!==H&&console.warn("[react-tooltip] Do not change `disableStyleInjection` dynamically.")},[H]),O.useEffect(()=>{typeof window<"u"&&window.dispatchEvent(new CustomEvent("react-tooltip-inject-styles",{detail:{disableCore:H==="core",disableBase:H}}))},[]),O.useEffect(()=>{var lt;const Jt=new Set(et);let Ge=n;if(!Ge&&e&&(Ge=`[data-tooltip-id='${e.replace(/'/g,"\\'")}']`),Ge)try{document.querySelectorAll(Ge).forEach(ot=>{Jt.add({current:ot})})}catch{console.warn(`[react-tooltip] "${Ge}" is not a valid CSS selector`)}const Tt=document.querySelector(`[id='${t}']`);if(Tt&&Jt.add({current:Tt}),!Jt.size)return()=>null;const On=(lt=pe??Tt)!==null&<!==void 0?lt:We.current,qn=new MutationObserver(ot=>{ot.forEach(ft=>{var on;if(!On||ft.type!=="attributes"||!(!((on=ft.attributeName)===null||on===void 0)&&on.startsWith("data-tooltip-")))return;const un=He(On);Mt(un)})}),$e={attributes:!0,childList:!1,subtree:!1};if(On){const ot=He(On);Mt(ot),qn.observe(On,$e)}return()=>{qn.disconnect()}},[et,We,pe,t,n]),O.useEffect(()=>{te!=null&&te.border&&console.warn("[react-tooltip] Do not set `style.border`. Use `border` prop instead."),Z&&!H3("border",`${Z}`)&&console.warn(`[react-tooltip] "${Z}" is not a valid \`border\`.`),te!=null&&te.opacity&&console.warn("[react-tooltip] Do not set `style.opacity`. Use `opacity` prop instead."),X&&!H3("opacity",`${X}`)&&console.warn(`[react-tooltip] "${X}" is not a valid \`opacity\`.`)},[]);let Bt=v;const jt=O.useRef(null);if(o){const lt=o({content:(pe==null?void 0:pe.getAttribute("data-tooltip-content"))||oe||null,activeAnchor:pe});Bt=lt?fs.createElement("div",{ref:jt,className:"react-tooltip-content-wrapper"},lt):null}else oe&&(Bt=oe);Ce&&(Bt=fs.createElement(jW,{content:Ce}));const vt={forwardRef:he,id:e,anchorId:t,anchorSelect:n,className:Ht(a,Ur),classNameArrow:l,content:Bt,contentWrapperRef:jt,place:De,variant:it,offset:At,wrapper:bn,events:Wn,openOnClick:w,positionStrategy:xi,middlewares:_,delayShow:zt,delayHide:Gt,float:gt,hidden:$n,noArrow:M,clickable:N,closeOnEsc:L,closeOnScroll:F,closeOnResize:B,openEvents:U,closeEvents:W,globalCloseEvents:G,imperativeModeOnly:ie,style:te,position:se,isOpen:le,defaultIsOpen:q,border:Z,opacity:X,arrowColor:z,arrowSize:J,setIsOpen:Me,afterShow:Pe,afterHide:we,disableTooltip:je,activeAnchor:pe,setActiveAnchor:lt=>Je(lt),role:re};return fs.createElement(kW,{...vt})});typeof window<"u"&&window.addEventListener("react-tooltip-inject-styles",e=>{e.detail.disableCore||U3({css:":root{--rt-color-white:#fff;--rt-color-dark:#222;--rt-color-success:#8dc572;--rt-color-error:#be6464;--rt-color-warning:#f0ad4e;--rt-color-info:#337ab7;--rt-opacity:0.9;--rt-transition-show-delay:0.15s;--rt-transition-closing-delay:0.15s;--rt-arrow-size:8px}.core-styles-module_tooltip__3vRRp{position:absolute;top:0;left:0;pointer-events:none;opacity:0;will-change:opacity}.core-styles-module_fixed__pcSol{position:fixed}.core-styles-module_arrow__cvMwQ{position:absolute;background:inherit;z-index:-1}.core-styles-module_noArrow__xock6{display:none}.core-styles-module_clickable__ZuTTB{pointer-events:auto}.core-styles-module_show__Nt9eE{opacity:var(--rt-opacity);transition:opacity var(--rt-transition-show-delay)ease-out}.core-styles-module_closing__sGnxF{opacity:0;transition:opacity var(--rt-transition-closing-delay)ease-in}",type:"core"}),e.detail.disableBase||U3({css:` .styles-module_tooltip__mnnfp{padding:8px 16px;border-radius:3px;font-size:90%;width:max-content}.styles-module_arrow__K0L3T{width:var(--rt-arrow-size);height:var(--rt-arrow-size)}[class*='react-tooltip__place-top']>.styles-module_arrow__K0L3T{transform:rotate(45deg)}[class*='react-tooltip__place-right']>.styles-module_arrow__K0L3T{transform:rotate(135deg)}[class*='react-tooltip__place-bottom']>.styles-module_arrow__K0L3T{transform:rotate(225deg)}[class*='react-tooltip__place-left']>.styles-module_arrow__K0L3T{transform:rotate(315deg)}.styles-module_dark__xNqje{background:var(--rt-color-dark);color:var(--rt-color-white)}.styles-module_light__Z6W-X{background-color:var(--rt-color-white);color:var(--rt-color-dark)}.styles-module_success__A2AKt{background-color:var(--rt-color-success);color:var(--rt-color-white)}.styles-module_warning__SCK0X{background-color:var(--rt-color-warning);color:var(--rt-color-white)}.styles-module_error__JvumD{background-color:var(--rt-color-error);color:var(--rt-color-white)}.styles-module_info__BWdHW{background-color:var(--rt-color-info);color:var(--rt-color-white)}`,type:"base"})});var Rm={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 */var MW=Rm.exports,Y3;function IW(){return Y3||(Y3=1,function(e,t){(function(){var n,r="4.17.21",i=200,o="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",a="Expected a function",l="Invalid `variable` option passed into `_.template`",c="__lodash_hash_undefined__",d=500,h="__lodash_placeholder__",m=1,v=2,y=4,w=1,C=2,_=1,P=2,T=4,A=8,I=16,M=32,N=64,L=128,F=256,B=512,U=30,W="...",G=800,ie=16,te=1,se=2,le=3,q=1/0,H=9007199254740991,Z=17976931348623157e292,X=NaN,z=4294967295,J=z-1,Me=z>>>1,Pe=[["ary",L],["bind",_],["bindKey",P],["curry",A],["curryRight",I],["flip",B],["partial",M],["partialRight",N],["rearg",F]],we="[object Arguments]",je="[object Array]",re="[object AsyncFunction]",he="[object Boolean]",oe="[object Date]",be="[object DOMException]",Ce="[object Error]",fe="[object Function]",De="[object GeneratorFunction]",Le="[object Map]",it="[object Number]",Ve="[object Null]",At="[object Object]",pt="[object Promise]",zt="[object Proxy]",st="[object RegExp]",Gt="[object Set]",Ne="[object String]",gt="[object Symbol]",er="[object Undefined]",$n="[object WeakMap]",ar="[object WeakSet]",bn="[object ArrayBuffer]",rn="[object DataView]",Wn="[object Float32Array]",Hn="[object Float64Array]",xi="[object Int8Array]",Ii="[object Int16Array]",Ur="[object Int32Array]",ve="[object Uint8Array]",pe="[object Uint8ClampedArray]",Je="[object Uint16Array]",Xe="[object Uint32Array]",et=/\b__p \+= '';/g,We=/\b(__p \+=) '' \+/g,He=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Mt=/&(?:amp|lt|gt|quot|#39);/g,Bt=/[&<>"']/g,jt=RegExp(Mt.source),vt=RegExp(Bt.source),lt=/<%-([\s\S]+?)%>/g,Jt=/<%([\s\S]+?)%>/g,Ge=/<%=([\s\S]+?)%>/g,Tt=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,On=/^\w*$/,qn=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,$e=/[\\^$.*+?()[\]{}|]/g,ot=RegExp($e.source),ft=/^\s+/,on=/\s/,un=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,pr=/\{\n\/\* \[wrapped with (.+)\] \*/,ii=/,? & /,mr=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,oi=/[()=,{}\[\]\/\s]/,vn=/\\(\\)?/g,ai=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Iu=/\w*$/,_f=/^[-+]0x[0-9a-f]+$/i,Cf=/^0b[01]+$/i,Nu=/^\[object .+?Constructor\]$/,Ru=/^0o[0-7]+$/i,Lu=/^(?:0|[1-9]\d*)$/,Du=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Wt=/($^)/,to=/['\n\r\u2028\u2029\\]/g,cn="\\ud800-\\udfff",As="\\u0300-\\u036f",$u="\\ufe20-\\ufe2f",Pl="\\u20d0-\\u20ff",Fu=As+$u+Pl,a0="\\u2700-\\u27bf",Qh="a-z\\xdf-\\xf6\\xf8-\\xff",Ef="\\xac\\xb1\\xd7\\xf7",jo="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",bx="\\u2000-\\u206f",no=" \\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",s0="A-Z\\xc0-\\xd6\\xd8-\\xde",l0="\\ufe0e\\ufe0f",u0=Ef+jo+bx+no,Al="['’]",Of="["+cn+"]",Tl="["+u0+"]",Ts="["+Fu+"]",c0="\\d+",wx="["+a0+"]",Pf="["+Qh+"]",Jh="[^"+cn+u0+c0+a0+Qh+s0+"]",Bu="\\ud83c[\\udffb-\\udfff]",Vu="(?:"+Ts+"|"+Bu+")",f0="[^"+cn+"]",zu="(?:\\ud83c[\\udde6-\\uddff]){2}",en="[\\ud800-\\udbff][\\udc00-\\udfff]",ks="["+s0+"]",ep="\\u200d",Af="(?:"+Pf+"|"+Jh+")",d0="(?:"+ks+"|"+Jh+")",tp="(?:"+Al+"(?:d|ll|m|re|s|t|ve))?",np="(?:"+Al+"(?:D|LL|M|RE|S|T|VE))?",Tf=Vu+"?",Uu="["+l0+"]?",$a="(?:"+ep+"(?:"+[f0,zu,en].join("|")+")"+Uu+Tf+")*",Fa="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Ba="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",kl=Uu+Tf+$a,Wu="(?:"+[wx,zu,en].join("|")+")"+kl,Va="(?:"+[f0+Ts+"?",Ts,zu,en,Of].join("|")+")",Sx=RegExp(Al,"g"),h0=RegExp(Ts,"g"),js=RegExp(Bu+"(?="+Bu+")|"+Va+kl,"g"),_x=RegExp([ks+"?"+Pf+"+"+tp+"(?="+[Tl,ks,"$"].join("|")+")",d0+"+"+np+"(?="+[Tl,ks+Af,"$"].join("|")+")",ks+"?"+Af+"+"+tp,ks+"+"+np,Ba,Fa,c0,Wu].join("|"),"g"),p0=RegExp("["+ep+cn+Fu+l0+"]"),kf=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,m0=["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"],Cx=-1,an={};an[Wn]=an[Hn]=an[xi]=an[Ii]=an[Ur]=an[ve]=an[pe]=an[Je]=an[Xe]=!0,an[we]=an[je]=an[bn]=an[he]=an[rn]=an[oe]=an[Ce]=an[fe]=an[Le]=an[it]=an[At]=an[st]=an[Gt]=an[Ne]=an[$n]=!1;var tn={};tn[we]=tn[je]=tn[bn]=tn[rn]=tn[he]=tn[oe]=tn[Wn]=tn[Hn]=tn[xi]=tn[Ii]=tn[Ur]=tn[Le]=tn[it]=tn[At]=tn[st]=tn[Gt]=tn[Ne]=tn[gt]=tn[ve]=tn[pe]=tn[Je]=tn[Xe]=!0,tn[Ce]=tn[fe]=tn[$n]=!1;var jl={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},jf={"&":"&","<":"<",">":">",'"':""","'":"'"},Ex={"&":"&","<":"<",">":">",""":'"',"'":"'"},Ox={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},rp=parseFloat,Mf=parseInt,If=typeof Av=="object"&&Av&&Av.Object===Object&&Av,g0=typeof self=="object"&&self&&self.Object===Object&&self,Pn=If||g0||Function("return this")(),Hu=t&&!t.nodeType&&t,Mo=Hu&&!0&&e&&!e.nodeType&&e,ip=Mo&&Mo.exports===Hu,Ml=ip&&If.process,Wr=function(){try{var ae=Mo&&Mo.require&&Mo.require("util").types;return ae||Ml&&Ml.binding&&Ml.binding("util")}catch{}}(),op=Wr&&Wr.isArrayBuffer,si=Wr&&Wr.isDate,Ms=Wr&&Wr.isMap,Nf=Wr&&Wr.isRegExp,Il=Wr&&Wr.isSet,v0=Wr&&Wr.isTypedArray;function Hr(ae,xe,me){switch(me.length){case 0:return ae.call(xe);case 1:return ae.call(xe,me[0]);case 2:return ae.call(xe,me[0],me[1]);case 3:return ae.call(xe,me[0],me[1],me[2])}return ae.apply(xe,me)}function ap(ae,xe,me,ze){for(var Ot=-1,Yt=ae==null?0:ae.length;++Ot-1}function lp(ae,xe,me){for(var ze=-1,Ot=ae==null?0:ae.length;++ze-1;);return me}function mp(ae,xe){for(var me=ae.length;me--&&Nl(xe,ae[me],0)>-1;);return me}function E0(ae,xe){for(var me=ae.length,ze=0;me--;)ae[me]===xe&&++ze;return ze}var O0=$f(jl),P0=$f(jf);function A0(ae){return"\\"+Ox[ae]}function Rl(ae,xe){return ae==null?n:ae[xe]}function Ll(ae){return p0.test(ae)}function Mx(ae){return kf.test(ae)}function Ix(ae){for(var xe,me=[];!(xe=ae.next()).done;)me.push(xe.value);return me}function Ff(ae){var xe=-1,me=Array(ae.size);return ae.forEach(function(ze,Ot){me[++xe]=[Ot,ze]}),me}function gp(ae,xe){return function(me){return ae(xe(me))}}function Ni(ae,xe){for(var me=-1,ze=ae.length,Ot=0,Yt=[];++me-1}function F0(f,p){var S=this.__data__,j=Mr(S,f);return j<0?(++this.size,S.push([f,p])):S[j][1]=p,this}qr.prototype.clear=Kl,qr.prototype.delete=ci,qr.prototype.get=Jf,qr.prototype.has=$0,qr.prototype.set=F0;function Li(f){var p=-1,S=f==null?0:f.length;for(this.clear();++p=p?f:p)),f}function fi(f,p,S,j,R,V){var Y,ee=p&m,ue=p&v,Se=p&y;if(S&&(Y=R?S(f,j,R,V):S(f)),Y!==n)return Y;if(!Vn(f))return f;var _e=Nt(f);if(_e){if(Y=bc(f),!ee)return Kr(f,Y)}else{var Te=yr(f),Fe=Te==fe||Te==De;if(cu(f))return $p(f,ee);if(Te==At||Te==we||Fe&&!R){if(Y=ue||Fe?{}:xr(f),!ee)return ue?Vx(f,io(Y,f)):gd(f,_n(Y,f))}else{if(!tn[Te])return R?f:{};Y=zx(f,Te,ee)}}V||(V=new jr);var nt=V.get(f);if(nt)return nt;V.set(f,Y),L5(f)?f.forEach(function(bt){Y.add(fi(bt,p,S,bt,f,V))}):N5(f)&&f.forEach(function(bt,Ut){Y.set(Ut,fi(bt,p,S,Ut,f,V))});var xt=Se?ue?vc:gc:ue?Ki:Rr,$t=_e?n:xt(f);return Pr($t||f,function(bt,Ut){$t&&(Ut=bt,bt=f[Ut]),Bs(Y,Ut,fi(bt,p,S,Ut,f,V))}),Y}function U0(f){var p=Rr(f);return function(S){return ic(S,f,p)}}function ic(f,p,S){var j=S.length;if(f==null)return!j;for(f=fn(f);j--;){var R=S[j],V=p[R],Y=f[R];if(Y===n&&!(R in f)||!V(Y))return!1}return!0}function Cp(f,p,S){if(typeof f!="function")throw new Ri(a);return su(function(){f.apply(n,S)},p)}function Fo(f,p,S,j){var R=-1,V=Lf,Y=!0,ee=f.length,ue=[],Se=p.length;if(!ee)return ue;S&&(p=yn(p,bi(S))),j?(V=lp,Y=!1):p.length>=i&&(V=ua,Y=!1,p=new Ds(p));e:for(;++RR?0:R+S),j=j===n||j>R?R:Dt(j),j<0&&(j+=R),j=S>j?0:$5(j);S0&&S(ee)?p>1?Ln(ee,p-1,S,j,R):Ua(R,ee):j||(R[R.length]=ee)}return R}var id=yd(),ac=yd(!0);function Ci(f,p){return f&&id(f,p,Rr)}function Xa(f,p){return f&&ac(f,p,Rr)}function Yl(f,p){return za(p,function(S){return el(f[S])})}function ma(f,p){p=Uo(p,f);for(var S=0,j=p.length;f!=null&&Sp}function Fi(f,p){return f!=null&&Zt.call(f,p)}function zs(f,p){return f!=null&&p in fn(f)}function Op(f,p,S){return f>=Ar(p,S)&&f=120&&_e.length>=120)?new Ds(Y&&_e):n}_e=f[0];var Te=-1,Fe=ee[0];e:for(;++Te-1;)ee!==f&&qf.call(ee,ue,1),qf.call(f,ue,1);return f}function tr(f,p){for(var S=f?p.length:0,j=S-1;S--;){var R=p[S];if(S==j||R!==V){var V=R;Tn(R)?qf.call(f,R,1):hd(f,R)}}return f}function Ql(f,p){return f+Ha(Ju()*(p-f+1))}function cc(f,p,S,j){for(var R=-1,V=Gn(Rs((p-f)/(S||1)),0),Y=me(V);V--;)Y[j?V:++R]=f,f+=S;return Y}function Ws(f,p){var S="";if(!f||p<1||p>H)return S;do p%2&&(S+=f),p=Ha(p/2),p&&(f+=f);while(p);return S}function Lt(f,p){return Ei(Pd(f,p,Gi),f+"")}function Ir(f){return Do(qd(f))}function Mp(f,p){var S=qd(f);return Ad(S,pa(p,0,S.length))}function Hs(f,p,S,j){if(!Vn(f))return f;p=Uo(p,f);for(var R=-1,V=p.length,Y=V-1,ee=f;ee!=null&&++RR?0:R+p),S=S>R?R:S,S<0&&(S+=R),R=p>S?0:S-p>>>0,p>>>=0;for(var V=me(R);++j>>1,Y=f[V];Y!==null&&!ho(Y)&&(S?Y<=p:Y=i){var Se=p?null:nv(f);if(Se)return Wa(Se);Y=!1,R=ua,ue=new Ds}else ue=p?[]:ee;e:for(;++j=j?f:Nr(f,p,S)}var Dp=R0||function(f){return Pn.clearTimeout(f)};function $p(f,p){if(p)return f.slice();var S=f.length,j=yp?yp(S):new f.constructor(S);return f.copy(j),j}function hc(f){var p=new f.constructor(f.byteLength);return new Xu(p).set(new Xu(f)),p}function Y0(f,p){var S=p?hc(f.buffer):f.buffer;return new f.constructor(S,f.byteOffset,f.byteLength)}function Z0(f){var p=new f.constructor(f.source,Iu.exec(f));return p.lastIndex=f.lastIndex,p}function X0(f){return Si?fn(Si.call(f)):{}}function Q0(f,p){var S=p?hc(f.buffer):f.buffer;return new f.constructor(S,f.byteOffset,f.length)}function Fp(f,p){if(f!==p){var S=f!==n,j=f===null,R=f===f,V=ho(f),Y=p!==n,ee=p===null,ue=p===p,Se=ho(p);if(!ee&&!Se&&!V&&f>p||V&&Y&&ue&&!ee&&!Se||j&&Y&&ue||!S&&ue||!R)return 1;if(!j&&!V&&!Se&&f=ee)return ue;var Se=S[j];return ue*(Se=="desc"?-1:1)}}return f.index-p.index}function J0(f,p,S,j){for(var R=-1,V=f.length,Y=S.length,ee=-1,ue=p.length,Se=Gn(V-Y,0),_e=me(ue+Se),Te=!j;++ee1?S[R-1]:n,Y=R>2?S[2]:n;for(V=f.length>3&&typeof V=="function"?(R--,V):n,Y&&Yr(S[0],S[1],Y)&&(V=R<3?n:V,R=1),p=fn(p);++j-1?R[V?p[Y]:Y]:n}}function bd(f){return Ho(function(p){var S=p.length,j=S,R=Tr.prototype.thru;for(f&&p.reverse();j--;){var V=p[j];if(typeof V!="function")throw new Ri(a);if(R&&!Y&&ou(V)=="wrapper")var Y=new Tr([],!0)}for(j=Y?j:S;++j1&&Kt.reverse(),_e&&ueee))return!1;var Se=V.get(f),_e=V.get(p);if(Se&&_e)return Se==p&&_e==f;var Te=-1,Fe=!0,nt=S&C?new Ds:n;for(V.set(f,p),V.set(p,f);++Te1?"& ":"")+p[j],p=p.join(S>2?", ":" "),f.replace(un,`{ /* [wrapped with `+p+`] */ `)}function Ed(f){return Nt(f)||kc(f)||!!(N0&&f&&f[N0])}function Tn(f,p){var S=typeof f;return p=p??H,!!p&&(S=="number"||S!="symbol"&&Lu.test(f))&&f>-1&&f%1==0&&f0){if(++p>=G)return arguments[0]}else p=0;return f.apply(n,arguments)}}function Ad(f,p){var S=-1,j=f.length,R=j-1;for(p=p===n?j:p;++S1?f[p-1]:n;return S=typeof S=="function"?(f.pop(),S):n,In(f,S)});function Dd(f){var p=$(f);return p.__chain__=!0,p}function Jx(f,p){return p(f),f}function fo(f,p){return p(f)}var $d=Ho(function(f){var p=f.length,S=p?f[0]:0,j=this.__wrapped__,R=function(V){return rd(V,f)};return p>1||this.__actions__.length||!(j instanceof It)||!Tn(S)?this.thru(R):(j=j.slice(S,+S+(p?1:0)),j.__actions__.push({func:fo,args:[R],thisArg:n}),new Tr(j,this.__chain__).thru(function(V){return p&&!V.length&&V.push(n),V}))});function Qs(){return Dd(this)}function Fd(){return new Tr(this.value(),this.__chain__)}function fm(){this.__values__===n&&(this.__values__=D5(this.value()));var f=this.__index__>=this.__values__.length,p=f?n:this.__values__[this.__index__++];return{done:f,value:p}}function dm(){return this}function eb(f){for(var p,S=this;S instanceof Ro;){var j=fv(S);j.__index__=0,j.__values__=n,p?R.__wrapped__=j:p=j;var R=j;S=S.__wrapped__}return R.__wrapped__=f,p}function hm(){var f=this.__wrapped__;if(f instanceof It){var p=f;return this.__actions__.length&&(p=new It(this)),p=p.reverse(),p.__actions__.push({func:fo,args:[Nd],thisArg:n}),new Tr(p,this.__chain__)}return this.thru(Nd)}function tb(){return eu(this.__wrapped__,this.__actions__)}var bv=vd(function(f,p,S){Zt.call(f,S)?++f[S]:$o(f,S,1)});function wv(f,p,S){var j=Nt(f)?sp:oc;return S&&Yr(f,p,S)&&(p=n),j(f,ht(p,3))}function Bd(f,p){var S=Nt(f)?za:Ep;return S(f,ht(p,3))}var Vd=Ks(rs),Sv=Ks(Cc);function pm(f,p){return Ln(Js(f,p),1)}function nb(f,p){return Ln(Js(f,p),q)}function _v(f,p,S){return S=S===n?1:Dt(S),Ln(Js(f,p),S)}function zd(f,p){var S=Nt(f)?Pr:Bo;return S(f,ht(p,3))}function Ac(f,p){var S=Nt(f)?Rf:W0;return S(f,ht(p,3))}var mm=vd(function(f,p,S){Zt.call(f,S)?f[S].push(p):$o(f,S,[p])});function Ud(f,p,S,j){f=qi(f)?f:qd(f),S=S&&!j?Dt(S):0;var R=f.length;return S<0&&(S=Gn(R+S,0)),Ov(f)?S<=R&&f.indexOf(p,S)>-1:!!R&&Nl(f,p,S)>-1}var Cv=Lt(function(f,p,S){var j=-1,R=typeof p=="function",V=qi(f)?me(f.length):[];return Bo(f,function(Y){V[++j]=R?Hr(p,Y,S):Bi(Y,p,S)}),V}),rb=vd(function(f,p,S){$o(f,S,p)});function Js(f,p){var S=Nt(f)?yn:Tp;return S(f,ht(p,3))}function ib(f,p,S,j){return f==null?[]:(Nt(p)||(p=p==null?[]:[p]),S=j?n:S,Nt(S)||(S=S==null?[]:[S]),uc(f,p,S))}var Tc=vd(function(f,p,S){f[S?0:1].push(p)},function(){return[[],[]]});function ob(f,p,S){var j=Nt(f)?up:S0,R=arguments.length<3;return j(f,ht(p,4),S,R,Bo)}function Wd(f,p,S){var j=Nt(f)?Px:S0,R=arguments.length<3;return j(f,ht(p,4),S,R,W0)}function s(f,p){var S=Nt(f)?za:Ep;return S(f,Re(ht(p,3)))}function u(f){var p=Nt(f)?Do:Ir;return p(f)}function g(f,p,S){(S?Yr(f,p,S):p===n)?p=1:p=Dt(p);var j=Nt(f)?Fs:Mp;return j(f,p)}function x(f){var p=Nt(f)?z0:zi;return p(f)}function E(f){if(f==null)return 0;if(qi(f))return Ov(f)?Is(f):f.length;var p=yr(f);return p==Le||p==Gt?f.size:ya(f).length}function k(f,p,S){var j=Nt(f)?cp:Ip;return S&&Yr(f,p,S)&&(p=n),j(f,ht(p,3))}var D=Lt(function(f,p){if(f==null)return[];var S=p.length;return S>1&&Yr(f,p[0],p[1])?p=[]:S>2&&Yr(p[0],p[1],p[2])&&(p=[p[0]]),uc(f,Ln(p,1),[])}),K=wn||function(){return Pn.Date.now()};function Q(f,p){if(typeof p!="function")throw new Ri(a);return f=Dt(f),function(){if(--f<1)return p.apply(this,arguments)}}function ge(f,p,S){return p=S?n:p,p=f&&p==null?f.length:p,Wo(f,L,n,n,n,n,p)}function Ae(f,p){var S;if(typeof p!="function")throw new Ri(a);return f=Dt(f),function(){return--f>0&&(S=p.apply(this,arguments)),f<=1&&(p=n),S}}var ke=Lt(function(f,p,S){var j=_;if(S.length){var R=Ni(S,wa(ke));j|=M}return Wo(f,j,p,S,R)}),Oe=Lt(function(f,p,S){var j=_|P;if(S.length){var R=Ni(S,wa(Oe));j|=M}return Wo(p,j,f,S,R)});function Ue(f,p,S){p=S?n:p;var j=Wo(f,A,n,n,n,n,n,p);return j.placeholder=Ue.placeholder,j}function Ye(f,p,S){p=S?n:p;var j=Wo(f,I,n,n,n,n,n,p);return j.placeholder=Ye.placeholder,j}function Qe(f,p,S){var j,R,V,Y,ee,ue,Se=0,_e=!1,Te=!1,Fe=!0;if(typeof f!="function")throw new Ri(a);p=Ko(p)||0,Vn(S)&&(_e=!!S.leading,Te="maxWait"in S,V=Te?Gn(Ko(S.maxWait)||0,p):V,Fe="trailing"in S?!!S.trailing:Fe);function nt(ir){var Ea=j,nl=R;return j=R=n,Se=ir,Y=f.apply(nl,Ea),Y}function xt(ir){return Se=ir,ee=su(Ut,p),_e?nt(ir):Y}function $t(ir){var Ea=ir-ue,nl=ir-Se,Z5=p-Ea;return Te?Ar(Z5,V-nl):Z5}function bt(ir){var Ea=ir-ue,nl=ir-Se;return ue===n||Ea>=p||Ea<0||Te&&nl>=V}function Ut(){var ir=K();if(bt(ir))return Kt(ir);ee=su(Ut,$t(ir))}function Kt(ir){return ee=n,Fe&&j?nt(ir):(j=R=n,Y)}function po(){ee!==n&&Dp(ee),Se=0,j=ue=R=ee=n}function Pi(){return ee===n?Y:Kt(K())}function mo(){var ir=K(),Ea=bt(ir);if(j=arguments,R=this,ue=ir,Ea){if(ee===n)return xt(ue);if(Te)return Dp(ee),ee=su(Ut,p),nt(ue)}return ee===n&&(ee=su(Ut,p)),Y}return mo.cancel=po,mo.flush=Pi,mo}var Bn=Lt(function(f,p){return Cp(f,1,p)}),ce=Lt(function(f,p,S){return Cp(f,Ko(p)||0,S)});function ne(f){return Wo(f,B)}function de(f,p){if(typeof f!="function"||p!=null&&typeof p!="function")throw new Ri(a);var S=function(){var j=arguments,R=p?p.apply(this,j):j[0],V=S.cache;if(V.has(R))return V.get(R);var Y=f.apply(this,j);return S.cache=V.set(R,Y)||V,Y};return S.cache=new(de.Cache||Li),S}de.Cache=Li;function Re(f){if(typeof f!="function")throw new Ri(a);return function(){var p=arguments;switch(p.length){case 0:return!f.call(this);case 1:return!f.call(this,p[0]);case 2:return!f.call(this,p[0],p[1]);case 3:return!f.call(this,p[0],p[1],p[2])}return!f.apply(this,p)}}function tt(f){return Ae(2,f)}var dt=G0(function(f,p){p=p.length==1&&Nt(p[0])?yn(p[0],bi(ht())):yn(Ln(p,1),bi(ht()));var S=p.length;return Lt(function(j){for(var R=-1,V=Ar(j.length,S);++R=p}),kc=sd(function(){return arguments}())?sd:function(f){return Zn(f)&&Zt.call(f,"callee")&&!Hf.call(f,"callee")},Nt=me.isArray,C8=op?bi(op):q0;function qi(f){return f!=null&&Ev(f.length)&&!el(f)}function rr(f){return Zn(f)&&qi(f)}function E8(f){return f===!0||f===!1||Zn(f)&&gr(f)==he}var cu=bp||vb,O8=si?bi(si):va;function P8(f){return Zn(f)&&f.nodeType===1&&!gm(f)}function A8(f){if(f==null)return!0;if(qi(f)&&(Nt(f)||typeof f=="string"||typeof f.splice=="function"||cu(f)||Hd(f)||kc(f)))return!f.length;var p=yr(f);if(p==Le||p==Gt)return!f.size;if(Sa(f))return!ya(f).length;for(var S in f)if(Zt.call(f,S))return!1;return!0}function T8(f,p){return Vi(f,p)}function k8(f,p,S){S=typeof S=="function"?S:n;var j=S?S(f,p):n;return j===n?Vi(f,p,n,S):!!j}function sb(f){if(!Zn(f))return!1;var p=gr(f);return p==Ce||p==be||typeof f.message=="string"&&typeof f.name=="string"&&!gm(f)}function j8(f){return typeof f=="number"&&Bl(f)}function el(f){if(!Vn(f))return!1;var p=gr(f);return p==fe||p==De||p==re||p==zt}function I5(f){return typeof f=="number"&&f==Dt(f)}function Ev(f){return typeof f=="number"&&f>-1&&f%1==0&&f<=H}function Vn(f){var p=typeof f;return f!=null&&(p=="object"||p=="function")}function Zn(f){return f!=null&&typeof f=="object"}var N5=Ms?bi(Ms):K0;function M8(f,p){return f===p||Zl(f,p,xc(p))}function I8(f,p,S){return S=typeof S=="function"?S:n,Zl(f,p,xc(p),S)}function N8(f){return R5(f)&&f!=+f}function R8(f){if(Wx(f))throw new Ot(o);return Pp(f)}function L8(f){return f===null}function D8(f){return f==null}function R5(f){return typeof f=="number"||Zn(f)&&gr(f)==it}function gm(f){if(!Zn(f)||gr(f)!=At)return!1;var p=ro(f);if(p===null)return!0;var S=Zt.call(p,"constructor")&&p.constructor;return typeof S=="function"&&S instanceof S&&Gu.call(S)==Uf}var lb=Nf?bi(Nf):sc;function $8(f){return I5(f)&&f>=-9007199254740991&&f<=H}var L5=Il?bi(Il):Vo;function Ov(f){return typeof f=="string"||!Nt(f)&&Zn(f)&&gr(f)==Ne}function ho(f){return typeof f=="symbol"||Zn(f)&&gr(f)==gt}var Hd=v0?bi(v0):lc;function F8(f){return f===n}function B8(f){return Zn(f)&&yr(f)==$n}function V8(f){return Zn(f)&&gr(f)==ar}var z8=Sd(Ja),U8=Sd(function(f,p){return f<=p});function D5(f){if(!f)return[];if(qi(f))return Ov(f)?wi(f):Kr(f);if(da&&f[da])return Ix(f[da]());var p=yr(f),S=p==Le?Ff:p==Gt?Wa:qd;return S(f)}function tl(f){if(!f)return f===0?f:0;if(f=Ko(f),f===q||f===-1/0){var p=f<0?-1:1;return p*Z}return f===f?f:0}function Dt(f){var p=tl(f),S=p%1;return p===p?S?p-S:p:0}function $5(f){return f?pa(Dt(f),0,z):0}function Ko(f){if(typeof f=="number")return f;if(ho(f))return X;if(Vn(f)){var p=typeof f.valueOf=="function"?f.valueOf():f;f=Vn(p)?p+"":p}if(typeof f!="string")return f===0?f:+f;f=_0(f);var S=Cf.test(f);return S||Ru.test(f)?Mf(f.slice(2),S?2:8):_f.test(f)?X:+f}function F5(f){return oo(f,Ki(f))}function W8(f){return f?pa(Dt(f),-9007199254740991,H):f===0?f:0}function dn(f){return f==null?"":di(f)}var H8=nu(function(f,p){if(Sa(p)||qi(p)){oo(p,Rr(p),f);return}for(var S in p)Zt.call(p,S)&&Bs(f,S,p[S])}),B5=nu(function(f,p){oo(p,Ki(p),f)}),Pv=nu(function(f,p,S,j){oo(p,Ki(p),f,j)}),q8=nu(function(f,p,S,j){oo(p,Rr(p),f,j)}),K8=Ho(rd);function G8(f,p){var S=Hl(f);return p==null?S:_n(S,p)}var Y8=Lt(function(f,p){f=fn(f);var S=-1,j=p.length,R=j>2?p[2]:n;for(R&&Yr(p[0],p[1],R)&&(j=1);++S1),V}),oo(f,vc(f),S),j&&(S=fi(S,m|v|y,Kp));for(var R=p.length;R--;)hd(S,p[R]);return S});function hD(f,p){return z5(f,Re(ht(p)))}var pD=Ho(function(f,p){return f==null?{}:jp(f,p)});function z5(f,p){if(f==null)return{};var S=yn(vc(f),function(j){return[j]});return p=ht(p),es(f,S,function(j,R){return p(j,R[0])})}function mD(f,p,S){p=Uo(p,f);var j=-1,R=p.length;for(R||(R=1,f=n);++jp){var j=f;f=p,p=j}if(S||f%1||p%1){var R=Ju();return Ar(f+R*(p-f+rp("1e-"+((R+"").length-1))),p)}return Ql(f,p)}var OD=qs(function(f,p,S){return p=p.toLowerCase(),f+(S?H5(p):p)});function H5(f){return fb(dn(f).toLowerCase())}function q5(f){return f=dn(f),f&&f.replace(Du,O0).replace(h0,"")}function PD(f,p,S){f=dn(f),p=di(p);var j=f.length;S=S===n?j:pa(Dt(S),0,j);var R=S;return S-=p.length,S>=0&&f.slice(S,R)==p}function AD(f){return f=dn(f),f&&vt.test(f)?f.replace(Bt,P0):f}function TD(f){return f=dn(f),f&&ot.test(f)?f.replace($e,"\\$&"):f}var kD=qs(function(f,p,S){return f+(S?"-":"")+p.toLowerCase()}),jD=qs(function(f,p,S){return f+(S?" ":"")+p.toLowerCase()}),MD=Vp("toLowerCase");function ID(f,p,S){f=dn(f),p=Dt(p);var j=p?Is(f):0;if(!p||j>=p)return f;var R=(p-j)/2;return mc(Ha(R),S)+f+mc(Rs(R),S)}function ND(f,p,S){f=dn(f),p=Dt(p);var j=p?Is(f):0;return p&&j>>0,S?(f=dn(f),f&&(typeof p=="string"||p!=null&&!lb(p))&&(p=di(p),!p&&Ll(f))?ba(wi(f),0,S):f.split(p,S)):[]}var VD=qs(function(f,p,S){return f+(S?" ":"")+fb(p)});function zD(f,p,S){return f=dn(f),S=S==null?0:pa(Dt(S),0,f.length),p=di(p),f.slice(S,S+p.length)==p}function UD(f,p,S){var j=$.templateSettings;S&&Yr(f,p,S)&&(p=n),f=dn(f),p=Pv({},p,j,Hp);var R=Pv({},p.imports,j.imports,Hp),V=Rr(R),Y=qu(R,V),ee,ue,Se=0,_e=p.interpolate||Wt,Te="__p += '",Fe=Ku((p.escape||Wt).source+"|"+_e.source+"|"+(_e===Ge?ai:Wt).source+"|"+(p.evaluate||Wt).source+"|$","g"),nt="//# sourceURL="+(Zt.call(p,"sourceURL")?(p.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++Cx+"]")+` `;f.replace(Fe,function(bt,Ut,Kt,po,Pi,mo){return Kt||(Kt=po),Te+=f.slice(Se,mo).replace(to,A0),Ut&&(ee=!0,Te+=`' + __e(`+Ut+`) + '`),Pi&&(ue=!0,Te+=`'; `+Pi+`; __p += '`),Kt&&(Te+=`' + ((__t = (`+Kt+`)) == null ? '' : __t) + '`),Se=mo+bt.length,bt}),Te+=`'; `;var xt=Zt.call(p,"variable")&&p.variable;if(!xt)Te=`with (obj) { `+Te+` } `;else if(oi.test(xt))throw new Ot(l);Te=(ue?Te.replace(et,""):Te).replace(We,"$1").replace(He,"$1;"),Te="function("+(xt||"obj")+`) { `+(xt?"":`obj || (obj = {}); `)+"var __t, __p = ''"+(ee?", __e = _.escape":"")+(ue?`, __j = Array.prototype.join; function print() { __p += __j.call(arguments, '') } `:`; `)+Te+`return __p }`;var $t=G5(function(){return Yt(V,nt+"return "+Te).apply(n,Y)});if($t.source=Te,sb($t))throw $t;return $t}function WD(f){return dn(f).toLowerCase()}function HD(f){return dn(f).toUpperCase()}function qD(f,p,S){if(f=dn(f),f&&(S||p===n))return _0(f);if(!f||!(p=di(p)))return f;var j=wi(f),R=wi(p),V=C0(j,R),Y=mp(j,R)+1;return ba(j,V,Y).join("")}function KD(f,p,S){if(f=dn(f),f&&(S||p===n))return f.slice(0,Vf(f)+1);if(!f||!(p=di(p)))return f;var j=wi(f),R=mp(j,wi(p))+1;return ba(j,0,R).join("")}function GD(f,p,S){if(f=dn(f),f&&(S||p===n))return f.replace(ft,"");if(!f||!(p=di(p)))return f;var j=wi(f),R=C0(j,wi(p));return ba(j,R).join("")}function YD(f,p){var S=U,j=W;if(Vn(p)){var R="separator"in p?p.separator:R;S="length"in p?Dt(p.length):S,j="omission"in p?di(p.omission):j}f=dn(f);var V=f.length;if(Ll(f)){var Y=wi(f);V=Y.length}if(S>=V)return f;var ee=S-Is(j);if(ee<1)return j;var ue=Y?ba(Y,0,ee).join(""):f.slice(0,ee);if(R===n)return ue+j;if(Y&&(ee+=ue.length-ee),lb(R)){if(f.slice(ee).search(R)){var Se,_e=ue;for(R.global||(R=Ku(R.source,dn(Iu.exec(R))+"g")),R.lastIndex=0;Se=R.exec(_e);)var Te=Se.index;ue=ue.slice(0,Te===n?ee:Te)}}else if(f.indexOf(di(R),ee)!=ee){var Fe=ue.lastIndexOf(R);Fe>-1&&(ue=ue.slice(0,Fe))}return ue+j}function ZD(f){return f=dn(f),f&&jt.test(f)?f.replace(Mt,T0):f}var XD=qs(function(f,p,S){return f+(S?" ":"")+p.toUpperCase()}),fb=Vp("toUpperCase");function K5(f,p,S){return f=dn(f),p=S?n:p,p===n?Mx(f)?Lx(f):Tx(f):f.match(p)||[]}var G5=Lt(function(f,p){try{return Hr(f,n,p)}catch(S){return sb(S)?S:new Ot(S)}}),QD=Ho(function(f,p){return Pr(p,function(S){S=uo(S),$o(f,S,ke(f[S],f))}),f});function JD(f){var p=f==null?0:f.length,S=ht();return f=p?yn(f,function(j){if(typeof j[1]!="function")throw new Ri(a);return[S(j[0]),j[1]]}):[],Lt(function(j){for(var R=-1;++RH)return[];var S=z,j=Ar(f,z);p=ht(p),f-=z;for(var R=pp(j,p);++S0||p<0)?new It(S):(f<0?S=S.takeRight(-f):f&&(S=S.drop(f)),p!==n&&(p=Dt(p),S=p<0?S.dropRight(-p):S.take(p-f)),S)},It.prototype.takeRightWhile=function(f){return this.reverse().takeWhile(f).reverse()},It.prototype.toArray=function(){return this.take(z)},Ci(It.prototype,function(f,p){var S=/^(?:filter|find|map|reject)|While$/.test(p),j=/^(?:head|last)$/.test(p),R=$[j?"take"+(p=="last"?"Right":""):p],V=j||/^find/.test(p);R&&($.prototype[p]=function(){var Y=this.__wrapped__,ee=j?[1]:arguments,ue=Y instanceof It,Se=ee[0],_e=ue||Nt(Y),Te=function(Ut){var Kt=R.apply($,Ua([Ut],ee));return j&&Fe?Kt[0]:Kt};_e&&S&&typeof Se=="function"&&Se.length!=1&&(ue=_e=!1);var Fe=this.__chain__,nt=!!this.__actions__.length,xt=V&&!Fe,$t=ue&&!nt;if(!V&&_e){Y=$t?Y:new It(this);var bt=f.apply(Y,ee);return bt.__actions__.push({func:fo,args:[Te],thisArg:n}),new Tr(bt,Fe)}return xt&&$t?f.apply(this,ee):(bt=this.thru(Te),xt?j?bt.value()[0]:bt.value():bt)})}),Pr(["pop","push","shift","sort","splice","unshift"],function(f){var p=ca[f],S=/^(?:push|sort|unshift)$/.test(f)?"tap":"thru",j=/^(?:pop|shift)$/.test(f);$.prototype[f]=function(){var R=arguments;if(j&&!this.__chain__){var V=this.value();return p.apply(Nt(V)?V:[],R)}return this[S](function(Y){return p.apply(Nt(Y)?Y:[],R)})}}),Ci(It.prototype,function(f,p){var S=$[p];if(S){var j=S.name+"";Zt.call(Ul,j)||(Ul[j]=[]),Ul[j].push({name:p,func:S})}}),Ul[iu(n,P).name]=[{name:"wrapper",func:n}],It.prototype.clone=Qf,It.prototype.reverse=Sp,It.prototype.value=ql,$.prototype.at=$d,$.prototype.chain=Qs,$.prototype.commit=Fd,$.prototype.next=fm,$.prototype.plant=eb,$.prototype.reverse=hm,$.prototype.toJSON=$.prototype.valueOf=$.prototype.value=tb,$.prototype.first=$.prototype.head,da&&($.prototype[da]=dm),$},Dl=Dx();Mo?((Mo.exports=Dl)._=Dl,Hu._=Dl):Pn._=Dl}).call(MW)}(Rm,Rm.exports)),Rm.exports}var NW=IW();const Oa=To(NW),af=e=>{const n=`https://pgsgraphs.com/${e.startsWith("/")?e.slice(1):e}?v=${1773702142332}`;return console.log(`Getting public asset from ${n}`),n};function sf(e){"@babel/helpers - typeof";return sf=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},sf(e)}function RW(e,t){if(sf(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(sf(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function AM(e){var t=RW(e,"string");return sf(t)=="symbol"?t:t+""}function Lm(e,t,n){return(t=AM(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Z3(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function mt(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=Array(t);n0?ti(zh,--Ji):0,wh--,fr===10&&(wh=1,D1--),fr}function Co(){return fr=Ji2||sg(fr)>3?"":" "}function cH(e,t){for(;--t&&Co()&&!(fr<48||fr>102||fr>57&&fr<65||fr>70&&fr<97););return Ug(e,ly()+(t<6&&ys()==32&&Co()==32))}function QS(e){for(;Co();)switch(fr){case e:return Ji;case 34:case 39:e!==34&&e!==39&&QS(fr);break;case 40:e===41&&QS(e);break;case 92:Co();break}return Ji}function fH(e,t){for(;Co()&&e+fr!==57;)if(e+fr===84&&ys()===47)break;return"/*"+Ug(t,Ji-1)+"*"+L1(e===47?e:Co())}function dH(e){for(;!sg(ys());)Co();return Ug(e,Ji)}function hH(e){return LM(cy("",null,null,null,[""],e=RM(e),0,[0],e))}function cy(e,t,n,r,i,o,a,l,c){for(var d=0,h=0,m=a,v=0,y=0,w=0,C=1,_=1,P=1,T=0,A="",I=i,M=o,N=r,L=A;_;)switch(w=T,T=Co()){case 40:if(w!=108&&ti(L,m-1)==58){XS(L+=ln(uy(T),"&","&\f"),"&\f")!=-1&&(P=-1);break}case 34:case 39:case 91:L+=uy(T);break;case 9:case 10:case 13:case 32:L+=uH(w);break;case 92:L+=cH(ly()-1,7);continue;case 47:switch(ys()){case 42:case 47:Lv(pH(fH(Co(),ly()),t,n),c);break;default:L+="/"}break;case 123*C:l[d++]=us(L)*P;case 125*C:case 59:case 0:switch(T){case 0:case 125:_=0;case 59+h:P==-1&&(L=ln(L,/\f/g,"")),y>0&&us(L)-m&&Lv(y>32?J3(L+";",r,n,m-1):J3(ln(L," ","")+";",r,n,m-2),c);break;case 59:L+=";";default:if(Lv(N=Q3(L,t,n,d,h,i,l,A,I=[],M=[],m),o),T===123)if(h===0)cy(L,t,N,N,I,o,m,l,M);else switch(v===99&&ti(L,3)===110?100:v){case 100:case 108:case 109:case 115:cy(e,N,N,r&&Lv(Q3(e,N,N,0,0,i,l,A,i,I=[],m),M),i,M,m,l,r?I:M);break;default:cy(L,N,N,N,[""],M,0,l,M)}}d=h=y=0,C=P=1,A=L="",m=a;break;case 58:m=1+us(L),y=w;default:if(C<1){if(T==123)--C;else if(T==125&&C++==0&&lH()==125)continue}switch(L+=L1(T),T*C){case 38:P=h>0?1:(L+="\f",-1);break;case 44:l[d++]=(us(L)-1)*P,P=1;break;case 64:ys()===45&&(L+=uy(Co())),v=ys(),h=m=us(A=L+=dH(ly())),T++;break;case 45:w===45&&us(L)==2&&(C=0)}}return o}function Q3(e,t,n,r,i,o,a,l,c,d,h){for(var m=i-1,v=i===0?o:[""],y=KC(v),w=0,C=0,_=0;w0?v[P]+" "+T:ln(T,/&\f/g,v[P])))&&(c[_++]=A);return $1(e,t,n,i===0?HC:l,c,d,h)}function pH(e,t,n){return $1(e,t,n,jM,L1(sH()),ag(e,2,-2),0)}function J3(e,t,n,r){return $1(e,t,n,qC,ag(e,0,r),ag(e,r+1,-1),r)}function ph(e,t){for(var n="",r=KC(e),i=0;i6)switch(ti(e,t+1)){case 109:if(ti(e,t+4)!==45)break;case 102:return ln(e,/(.+:)(.+)-([^]+)/,"$1"+sn+"$2-$3$1"+Cy+(ti(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~XS(e,"stretch")?DM(ln(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(ti(e,t+1)!==115)break;case 6444:switch(ti(e,us(e)-3-(~XS(e,"!important")&&10))){case 107:return ln(e,":",":"+sn)+e;case 101:return ln(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+sn+(ti(e,14)===45?"inline-":"")+"box$3$1"+sn+"$2$3$1"+mi+"$2box$3")+e}break;case 5936:switch(ti(e,t+11)){case 114:return sn+e+mi+ln(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return sn+e+mi+ln(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return sn+e+mi+ln(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return sn+e+mi+e+e}return e}var CH=function(t,n,r,i){if(t.length>-1&&!t.return)switch(t.type){case qC:t.return=DM(t.value,t.length);break;case MM:return ph([wm(t,{value:ln(t.value,"@","@"+sn)})],i);case HC:if(t.length)return aH(t.props,function(o){switch(oH(o,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return ph([wm(t,{props:[ln(o,/:(read-\w+)/,":"+Cy+"$1")]})],i);case"::placeholder":return ph([wm(t,{props:[ln(o,/:(plac\w+)/,":"+sn+"input-$1")]}),wm(t,{props:[ln(o,/:(plac\w+)/,":"+Cy+"$1")]}),wm(t,{props:[ln(o,/:(plac\w+)/,mi+"input-$1")]})],i)}return""})}},EH=[CH],OH=function(t){var n=t.key;if(n==="css"){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,function(C){var _=C.getAttribute("data-emotion");_.indexOf(" ")!==-1&&(document.head.appendChild(C),C.setAttribute("data-s",""))})}var i=t.stylisPlugins||EH,o={},a,l=[];a=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(C){for(var _=C.getAttribute("data-emotion").split(" "),P=1;P<_.length;P++)o[_[P]]=!0;l.push(C)});var c,d=[SH,_H];{var h,m=[mH,vH(function(C){h.insert(C)})],v=gH(d.concat(i,m)),y=function(_){return ph(hH(_),v)};c=function(_,P,T,A){h=T,y(_?_+"{"+P.styles+"}":P.styles),A&&(w.inserted[P.name]=!0)}}var w={key:n,sheet:new JW({key:n,container:a,nonce:t.nonce,speedy:t.speedy,prepend:t.prepend,insertionPoint:t.insertionPoint}),nonce:t.nonce,inserted:o,registered:{},insert:c};return w.sheet.hydrate(l),w},Bb={exports:{}},hn={};/** @license React v16.13.1 * react-is.production.min.js * * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */var tP;function PH(){if(tP)return hn;tP=1;var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,i=e?Symbol.for("react.strict_mode"):60108,o=e?Symbol.for("react.profiler"):60114,a=e?Symbol.for("react.provider"):60109,l=e?Symbol.for("react.context"):60110,c=e?Symbol.for("react.async_mode"):60111,d=e?Symbol.for("react.concurrent_mode"):60111,h=e?Symbol.for("react.forward_ref"):60112,m=e?Symbol.for("react.suspense"):60113,v=e?Symbol.for("react.suspense_list"):60120,y=e?Symbol.for("react.memo"):60115,w=e?Symbol.for("react.lazy"):60116,C=e?Symbol.for("react.block"):60121,_=e?Symbol.for("react.fundamental"):60117,P=e?Symbol.for("react.responder"):60118,T=e?Symbol.for("react.scope"):60119;function A(M){if(typeof M=="object"&&M!==null){var N=M.$$typeof;switch(N){case t:switch(M=M.type,M){case c:case d:case r:case o:case i:case m:return M;default:switch(M=M&&M.$$typeof,M){case l:case h:case w:case y:case a:return M;default:return N}}case n:return N}}}function I(M){return A(M)===d}return hn.AsyncMode=c,hn.ConcurrentMode=d,hn.ContextConsumer=l,hn.ContextProvider=a,hn.Element=t,hn.ForwardRef=h,hn.Fragment=r,hn.Lazy=w,hn.Memo=y,hn.Portal=n,hn.Profiler=o,hn.StrictMode=i,hn.Suspense=m,hn.isAsyncMode=function(M){return I(M)||A(M)===c},hn.isConcurrentMode=I,hn.isContextConsumer=function(M){return A(M)===l},hn.isContextProvider=function(M){return A(M)===a},hn.isElement=function(M){return typeof M=="object"&&M!==null&&M.$$typeof===t},hn.isForwardRef=function(M){return A(M)===h},hn.isFragment=function(M){return A(M)===r},hn.isLazy=function(M){return A(M)===w},hn.isMemo=function(M){return A(M)===y},hn.isPortal=function(M){return A(M)===n},hn.isProfiler=function(M){return A(M)===o},hn.isStrictMode=function(M){return A(M)===i},hn.isSuspense=function(M){return A(M)===m},hn.isValidElementType=function(M){return typeof M=="string"||typeof M=="function"||M===r||M===d||M===o||M===i||M===m||M===v||typeof M=="object"&&M!==null&&(M.$$typeof===w||M.$$typeof===y||M.$$typeof===a||M.$$typeof===l||M.$$typeof===h||M.$$typeof===_||M.$$typeof===P||M.$$typeof===T||M.$$typeof===C)},hn.typeOf=A,hn}var nP;function AH(){return nP||(nP=1,Bb.exports=PH()),Bb.exports}var Vb,rP;function TH(){if(rP)return Vb;rP=1;var e=AH(),t={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},n={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},r={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},i={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},o={};o[e.ForwardRef]=r,o[e.Memo]=i;function a(w){return e.isMemo(w)?i:o[w.$$typeof]||t}var l=Object.defineProperty,c=Object.getOwnPropertyNames,d=Object.getOwnPropertySymbols,h=Object.getOwnPropertyDescriptor,m=Object.getPrototypeOf,v=Object.prototype;function y(w,C,_){if(typeof C!="string"){if(v){var P=m(C);P&&P!==v&&y(w,P,_)}var T=c(C);d&&(T=T.concat(d(C)));for(var A=a(w),I=a(C),M=0;M=4;++r,i-=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(i){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 NH={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},RH=/[A-Z]|^ms/g,LH=/_EMO_([^_]+?)_([^]*?)_EMO_/g,FM=function(t){return t.charCodeAt(1)===45},iP=function(t){return t!=null&&typeof t!="boolean"},zb=yH(function(e){return FM(e)?e:e.replace(RH,"-$&").toLowerCase()}),oP=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(LH,function(r,i,o){return cs={name:i,styles:o,next:cs},i})}return NH[t]!==1&&!FM(t)&&typeof n=="number"&&n!==0?n+"px":n};function lg(e,t,n){if(n==null)return"";var r=n;if(r.__emotion_styles!==void 0)return r;switch(typeof n){case"boolean":return"";case"object":{var i=n;if(i.anim===1)return cs={name:i.name,styles:i.styles,next:cs},i.name;var o=n;if(o.styles!==void 0){var a=o.next;if(a!==void 0)for(;a!==void 0;)cs={name:a.name,styles:a.styles,next:cs},a=a.next;var l=o.styles+";";return l}return DH(e,t,n)}case"function":{if(e!==void 0){var c=cs,d=n(e);return cs=c,lg(e,t,d)}break}}var h=n;return h}function DH(e,t,n){var r="";if(Array.isArray(n))for(var i=0;i2?n-2:0),i=2;i-1}function QH(e){return F1(e)?window.innerHeight:e.clientHeight}function UM(e){return F1(e)?window.pageYOffset:e.scrollTop}function Oy(e,t){if(F1(e)){window.scrollTo(0,t);return}e.scrollTop=t}function JH(e){var t=getComputedStyle(e),n=t.position==="absolute",r=/(auto|scroll)/;if(t.position==="fixed")return document.documentElement;for(var i=e;i=i.parentElement;)if(t=getComputedStyle(i),!(n&&t.position==="static")&&r.test(t.overflow+t.overflowY+t.overflowX))return i;return document.documentElement}function eq(e,t,n,r){return n*((e=e/r-1)*e*e+1)+t}function Dv(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:200,r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:Ey,i=UM(e),o=t-i,a=10,l=0;function c(){l+=a;var d=eq(l,i,o,n);Oy(e,d),ln.bottom?Oy(e,Math.min(t.offsetTop+t.clientHeight-e.offsetHeight+i,e.scrollHeight)):r.top-i1?n-1:0),i=1;i=w)return{placement:"bottom",maxHeight:t};if(B>=w&&!a)return o&&Dv(c,U,G),{placement:"bottom",maxHeight:t};if(!a&&B>=r||a&&L>=r){o&&Dv(c,U,G);var ie=a?L-I:B-I;return{placement:"bottom",maxHeight:ie}}if(i==="auto"||a){var te=t,se=a?N:F;return se>=r&&(te=Math.min(se-I-l,t)),{placement:"top",maxHeight:te}}if(i==="bottom")return o&&Oy(c,U),{placement:"bottom",maxHeight:t};break;case"top":if(N>=w)return{placement:"top",maxHeight:t};if(F>=w&&!a)return o&&Dv(c,W,G),{placement:"top",maxHeight:t};if(!a&&F>=r||a&&N>=r){var le=t;return(!a&&F>=r||a&&N>=r)&&(le=a?N-M:F-M),o&&Dv(c,W,G),{placement:"top",maxHeight:le}}return{placement:"bottom",maxHeight:t};default:throw new Error('Invalid placement provided "'.concat(i,'".'))}return d}function fq(e){var t={bottom:"top",top:"bottom"};return e?t[e]:"bottom"}var HM=function(t){return t==="auto"?"bottom":t},dq=function(t,n){var r,i=t.placement,o=t.theme,a=o.borderRadius,l=o.spacing,c=o.colors;return mt((r={label:"menu"},Lm(r,fq(i),"100%"),Lm(r,"position","absolute"),Lm(r,"width","100%"),Lm(r,"zIndex",1),r),n?{}:{backgroundColor:c.neutral0,borderRadius:a,boxShadow:"0 0 0 1px hsla(0, 0%, 0%, 0.1), 0 4px 11px hsla(0, 0%, 0%, 0.1)",marginBottom:l.menuGutter,marginTop:l.menuGutter})},qM=O.createContext(null),hq=function(t){var n=t.children,r=t.minMenuHeight,i=t.maxMenuHeight,o=t.menuPlacement,a=t.menuPosition,l=t.menuShouldScrollIntoView,c=t.theme,d=O.useContext(qM)||{},h=d.setPortalPlacement,m=O.useRef(null),v=O.useState(i),y=ul(v,2),w=y[0],C=y[1],_=O.useState(null),P=ul(_,2),T=P[0],A=P[1],I=c.spacing.controlHeight;return e_(function(){var M=m.current;if(M){var N=a==="fixed",L=l&&!N,F=cq({maxHeight:i,menuEl:M,minHeight:r,placement:o,shouldScroll:L,isFixedPosition:N,controlHeight:I});C(F.maxHeight),A(F.placement),h==null||h(F.placement)}},[i,o,a,l,r,h,I]),n({ref:m,placerProps:mt(mt({},t),{},{placement:T||HM(o),maxHeight:w})})},pq=function(t){var n=t.children,r=t.innerRef,i=t.innerProps;return ct("div",wt({},Jn(t,"menu",{menu:!0}),{ref:r},i),n)},mq=pq,gq=function(t,n){var r=t.maxHeight,i=t.theme.spacing.baseUnit;return mt({maxHeight:r,overflowY:"auto",position:"relative",WebkitOverflowScrolling:"touch"},n?{}:{paddingBottom:i,paddingTop:i})},vq=function(t){var n=t.children,r=t.innerProps,i=t.innerRef,o=t.isMulti;return ct("div",wt({},Jn(t,"menuList",{"menu-list":!0,"menu-list--is-multi":o}),{ref:i},r),n)},KM=function(t,n){var r=t.theme,i=r.spacing.baseUnit,o=r.colors;return mt({textAlign:"center"},n?{}:{color:o.neutral40,padding:"".concat(i*2,"px ").concat(i*3,"px")})},yq=KM,xq=KM,bq=function(t){var n=t.children,r=n===void 0?"No options":n,i=t.innerProps,o=wl(t,lq);return ct("div",wt({},Jn(mt(mt({},o),{},{children:r,innerProps:i}),"noOptionsMessage",{"menu-notice":!0,"menu-notice--no-options":!0}),i),r)},wq=function(t){var n=t.children,r=n===void 0?"Loading...":n,i=t.innerProps,o=wl(t,uq);return ct("div",wt({},Jn(mt(mt({},o),{},{children:r,innerProps:i}),"loadingMessage",{"menu-notice":!0,"menu-notice--loading":!0}),i),r)},Sq=function(t){var n=t.rect,r=t.offset,i=t.position;return{left:n.left,position:i,top:r,width:n.width,zIndex:1}},_q=function(t){var n=t.appendTo,r=t.children,i=t.controlElement,o=t.innerProps,a=t.menuPlacement,l=t.menuPosition,c=O.useRef(null),d=O.useRef(null),h=O.useState(HM(a)),m=ul(h,2),v=m[0],y=m[1],w=O.useMemo(function(){return{setPortalPlacement:y}},[]),C=O.useState(null),_=ul(C,2),P=_[0],T=_[1],A=O.useCallback(function(){if(i){var L=tq(i),F=l==="fixed"?0:window.pageYOffset,B=L[v]+F;(B!==(P==null?void 0:P.offset)||L.left!==(P==null?void 0:P.rect.left)||L.width!==(P==null?void 0:P.rect.width))&&T({offset:B,rect:L})}},[i,l,v,P==null?void 0:P.offset,P==null?void 0:P.rect.left,P==null?void 0:P.rect.width]);e_(function(){A()},[A]);var I=O.useCallback(function(){typeof d.current=="function"&&(d.current(),d.current=null),i&&c.current&&(d.current=OM(i,c.current,A,{elementResize:"ResizeObserver"in window}))},[i,A]);e_(function(){I()},[I]);var M=O.useCallback(function(L){c.current=L,I()},[I]);if(!n&&l!=="fixed"||!P)return null;var N=ct("div",wt({ref:M},Jn(mt(mt({},t),{},{offset:P.offset,position:l,rect:P.rect}),"menuPortal",{"menu-portal":!0}),o),r);return ct(qM.Provider,{value:w},n?rC.createPortal(N,n):N)},Cq=function(t){var n=t.isDisabled,r=t.isRtl;return{label:"container",direction:r?"rtl":void 0,pointerEvents:n?"none":void 0,position:"relative"}},Eq=function(t){var n=t.children,r=t.innerProps,i=t.isDisabled,o=t.isRtl;return ct("div",wt({},Jn(t,"container",{"--is-disabled":i,"--is-rtl":o}),r),n)},Oq=function(t,n){var r=t.theme.spacing,i=t.isMulti,o=t.hasValue,a=t.selectProps.controlShouldRenderValue;return mt({alignItems:"center",display:i&&o&&a?"flex":"grid",flex:1,flexWrap:"wrap",WebkitOverflowScrolling:"touch",position:"relative",overflow:"hidden"},n?{}:{padding:"".concat(r.baseUnit/2,"px ").concat(r.baseUnit*2,"px")})},Pq=function(t){var n=t.children,r=t.innerProps,i=t.isMulti,o=t.hasValue;return ct("div",wt({},Jn(t,"valueContainer",{"value-container":!0,"value-container--is-multi":i,"value-container--has-value":o}),r),n)},Aq=function(){return{alignItems:"center",alignSelf:"stretch",display:"flex",flexShrink:0}},Tq=function(t){var n=t.children,r=t.innerProps;return ct("div",wt({},Jn(t,"indicatorsContainer",{indicators:!0}),r),n)},cP,kq=["size"],jq=["innerProps","isRtl","size"],Mq={name:"8mmkcg",styles:"display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0"},GM=function(t){var n=t.size,r=wl(t,kq);return ct("svg",wt({height:n,width:n,viewBox:"0 0 20 20","aria-hidden":"true",focusable:"false",css:Mq},r))},ZC=function(t){return ct(GM,wt({size:20},t),ct("path",{d:"M14.348 14.849c-0.469 0.469-1.229 0.469-1.697 0l-2.651-3.030-2.651 3.029c-0.469 0.469-1.229 0.469-1.697 0-0.469-0.469-0.469-1.229 0-1.697l2.758-3.15-2.759-3.152c-0.469-0.469-0.469-1.228 0-1.697s1.228-0.469 1.697 0l2.652 3.031 2.651-3.031c0.469-0.469 1.228-0.469 1.697 0s0.469 1.229 0 1.697l-2.758 3.152 2.758 3.15c0.469 0.469 0.469 1.229 0 1.698z"}))},YM=function(t){return ct(GM,wt({size:20},t),ct("path",{d:"M4.516 7.548c0.436-0.446 1.043-0.481 1.576 0l3.908 3.747 3.908-3.747c0.533-0.481 1.141-0.446 1.574 0 0.436 0.445 0.408 1.197 0 1.615-0.406 0.418-4.695 4.502-4.695 4.502-0.217 0.223-0.502 0.335-0.787 0.335s-0.57-0.112-0.789-0.335c0 0-4.287-4.084-4.695-4.502s-0.436-1.17 0-1.615z"}))},ZM=function(t,n){var r=t.isFocused,i=t.theme,o=i.spacing.baseUnit,a=i.colors;return mt({label:"indicatorContainer",display:"flex",transition:"color 150ms"},n?{}:{color:r?a.neutral60:a.neutral20,padding:o*2,":hover":{color:r?a.neutral80:a.neutral40}})},Iq=ZM,Nq=function(t){var n=t.children,r=t.innerProps;return ct("div",wt({},Jn(t,"dropdownIndicator",{indicator:!0,"dropdown-indicator":!0}),r),n||ct(YM,null))},Rq=ZM,Lq=function(t){var n=t.children,r=t.innerProps;return ct("div",wt({},Jn(t,"clearIndicator",{indicator:!0,"clear-indicator":!0}),r),n||ct(ZC,null))},Dq=function(t,n){var r=t.isDisabled,i=t.theme,o=i.spacing.baseUnit,a=i.colors;return mt({label:"indicatorSeparator",alignSelf:"stretch",width:1},n?{}:{backgroundColor:r?a.neutral10:a.neutral20,marginBottom:o*2,marginTop:o*2})},$q=function(t){var n=t.innerProps;return ct("span",wt({},n,Jn(t,"indicatorSeparator",{"indicator-separator":!0})))},Fq=KH(cP||(cP=GH([` 0%, 80%, 100% { opacity: 0; } 40% { opacity: 1; } `]))),Bq=function(t,n){var r=t.isFocused,i=t.size,o=t.theme,a=o.colors,l=o.spacing.baseUnit;return mt({label:"loadingIndicator",display:"flex",transition:"color 150ms",alignSelf:"center",fontSize:i,lineHeight:1,marginRight:i,textAlign:"center",verticalAlign:"middle"},n?{}:{color:r?a.neutral60:a.neutral20,padding:l*2})},Ub=function(t){var n=t.delay,r=t.offset;return ct("span",{css:YC({animation:"".concat(Fq," 1s ease-in-out ").concat(n,"ms infinite;"),backgroundColor:"currentColor",borderRadius:"1em",display:"inline-block",marginLeft:r?"1em":void 0,height:"1em",verticalAlign:"top",width:"1em"},"","")})},Vq=function(t){var n=t.innerProps,r=t.isRtl,i=t.size,o=i===void 0?4:i,a=wl(t,jq);return ct("div",wt({},Jn(mt(mt({},a),{},{innerProps:n,isRtl:r,size:o}),"loadingIndicator",{indicator:!0,"loading-indicator":!0}),n),ct(Ub,{delay:0,offset:r}),ct(Ub,{delay:160,offset:!0}),ct(Ub,{delay:320,offset:!r}))},zq=function(t,n){var r=t.isDisabled,i=t.isFocused,o=t.theme,a=o.colors,l=o.borderRadius,c=o.spacing;return mt({label:"control",alignItems:"center",cursor:"default",display:"flex",flexWrap:"wrap",justifyContent:"space-between",minHeight:c.controlHeight,outline:"0 !important",position:"relative",transition:"all 100ms"},n?{}:{backgroundColor:r?a.neutral5:a.neutral0,borderColor:r?a.neutral10:i?a.primary:a.neutral20,borderRadius:l,borderStyle:"solid",borderWidth:1,boxShadow:i?"0 0 0 1px ".concat(a.primary):void 0,"&:hover":{borderColor:i?a.primary:a.neutral30}})},Uq=function(t){var n=t.children,r=t.isDisabled,i=t.isFocused,o=t.innerRef,a=t.innerProps,l=t.menuIsOpen;return ct("div",wt({ref:o},Jn(t,"control",{control:!0,"control--is-disabled":r,"control--is-focused":i,"control--menu-is-open":l}),a,{"aria-disabled":r||void 0}),n)},Wq=Uq,Hq=["data"],qq=function(t,n){var r=t.theme.spacing;return n?{}:{paddingBottom:r.baseUnit*2,paddingTop:r.baseUnit*2}},Kq=function(t){var n=t.children,r=t.cx,i=t.getStyles,o=t.getClassNames,a=t.Heading,l=t.headingProps,c=t.innerProps,d=t.label,h=t.theme,m=t.selectProps;return ct("div",wt({},Jn(t,"group",{group:!0}),c),ct(a,wt({},l,{selectProps:m,theme:h,getStyles:i,getClassNames:o,cx:r}),d),ct("div",null,n))},Gq=function(t,n){var r=t.theme,i=r.colors,o=r.spacing;return mt({label:"group",cursor:"default",display:"block"},n?{}:{color:i.neutral40,fontSize:"75%",fontWeight:500,marginBottom:"0.25em",paddingLeft:o.baseUnit*3,paddingRight:o.baseUnit*3,textTransform:"uppercase"})},Yq=function(t){var n=zM(t);n.data;var r=wl(n,Hq);return ct("div",wt({},Jn(t,"groupHeading",{"group-heading":!0}),r))},Zq=Kq,Xq=["innerRef","isDisabled","isHidden","inputClassName"],Qq=function(t,n){var r=t.isDisabled,i=t.value,o=t.theme,a=o.spacing,l=o.colors;return mt(mt({visibility:r?"hidden":"visible",transform:i?"translateZ(0)":""},Jq),n?{}:{margin:a.baseUnit/2,paddingBottom:a.baseUnit/2,paddingTop:a.baseUnit/2,color:l.neutral80})},XM={gridArea:"1 / 2",font:"inherit",minWidth:"2px",border:0,margin:0,outline:0,padding:0},Jq={flex:"1 1 auto",display:"inline-grid",gridArea:"1 / 1 / 2 / 3",gridTemplateColumns:"0 min-content","&:after":mt({content:'attr(data-value) " "',visibility:"hidden",whiteSpace:"pre"},XM)},eK=function(t){return mt({label:"input",color:"inherit",background:0,opacity:t?0:1,width:"100%"},XM)},tK=function(t){var n=t.cx,r=t.value,i=zM(t),o=i.innerRef,a=i.isDisabled,l=i.isHidden,c=i.inputClassName,d=wl(i,Xq);return ct("div",wt({},Jn(t,"input",{"input-container":!0}),{"data-value":r||""}),ct("input",wt({className:n({input:!0},c),ref:o,style:eK(l),disabled:a},d)))},nK=tK,rK=function(t,n){var r=t.theme,i=r.spacing,o=r.borderRadius,a=r.colors;return mt({label:"multiValue",display:"flex",minWidth:0},n?{}:{backgroundColor:a.neutral10,borderRadius:o/2,margin:i.baseUnit/2})},iK=function(t,n){var r=t.theme,i=r.borderRadius,o=r.colors,a=t.cropWithEllipsis;return mt({overflow:"hidden",textOverflow:a||a===void 0?"ellipsis":void 0,whiteSpace:"nowrap"},n?{}:{borderRadius:i/2,color:o.neutral80,fontSize:"85%",padding:3,paddingLeft:6})},oK=function(t,n){var r=t.theme,i=r.spacing,o=r.borderRadius,a=r.colors,l=t.isFocused;return mt({alignItems:"center",display:"flex"},n?{}:{borderRadius:o/2,backgroundColor:l?a.dangerLight:void 0,paddingLeft:i.baseUnit,paddingRight:i.baseUnit,":hover":{backgroundColor:a.dangerLight,color:a.danger}})},QM=function(t){var n=t.children,r=t.innerProps;return ct("div",r,n)},aK=QM,sK=QM;function lK(e){var t=e.children,n=e.innerProps;return ct("div",wt({role:"button"},n),t||ct(ZC,{size:14}))}var uK=function(t){var n=t.children,r=t.components,i=t.data,o=t.innerProps,a=t.isDisabled,l=t.removeProps,c=t.selectProps,d=r.Container,h=r.Label,m=r.Remove;return ct(d,{data:i,innerProps:mt(mt({},Jn(t,"multiValue",{"multi-value":!0,"multi-value--is-disabled":a})),o),selectProps:c},ct(h,{data:i,innerProps:mt({},Jn(t,"multiValueLabel",{"multi-value__label":!0})),selectProps:c},n),ct(m,{data:i,innerProps:mt(mt({},Jn(t,"multiValueRemove",{"multi-value__remove":!0})),{},{"aria-label":"Remove ".concat(n||"option")},l),selectProps:c}))},cK=uK,fK=function(t,n){var r=t.isDisabled,i=t.isFocused,o=t.isSelected,a=t.theme,l=a.spacing,c=a.colors;return mt({label:"option",cursor:"default",display:"block",fontSize:"inherit",width:"100%",userSelect:"none",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)"},n?{}:{backgroundColor:o?c.primary:i?c.primary25:"transparent",color:r?c.neutral20:o?c.neutral0:"inherit",padding:"".concat(l.baseUnit*2,"px ").concat(l.baseUnit*3,"px"),":active":{backgroundColor:r?void 0:o?c.primary:c.primary50}})},dK=function(t){var n=t.children,r=t.isDisabled,i=t.isFocused,o=t.isSelected,a=t.innerRef,l=t.innerProps;return ct("div",wt({},Jn(t,"option",{option:!0,"option--is-disabled":r,"option--is-focused":i,"option--is-selected":o}),{ref:a,"aria-disabled":r},l),n)},hK=dK,pK=function(t,n){var r=t.theme,i=r.spacing,o=r.colors;return mt({label:"placeholder",gridArea:"1 / 1 / 2 / 3"},n?{}:{color:o.neutral50,marginLeft:i.baseUnit/2,marginRight:i.baseUnit/2})},mK=function(t){var n=t.children,r=t.innerProps;return ct("div",wt({},Jn(t,"placeholder",{placeholder:!0}),r),n)},gK=mK,vK=function(t,n){var r=t.isDisabled,i=t.theme,o=i.spacing,a=i.colors;return mt({label:"singleValue",gridArea:"1 / 1 / 2 / 3",maxWidth:"100%",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},n?{}:{color:r?a.neutral40:a.neutral80,marginLeft:o.baseUnit/2,marginRight:o.baseUnit/2})},yK=function(t){var n=t.children,r=t.isDisabled,i=t.innerProps;return ct("div",wt({},Jn(t,"singleValue",{"single-value":!0,"single-value--is-disabled":r}),i),n)},xK=yK,JM={ClearIndicator:Lq,Control:Wq,DropdownIndicator:Nq,DownChevron:YM,CrossIcon:ZC,Group:Zq,GroupHeading:Yq,IndicatorsContainer:Tq,IndicatorSeparator:$q,Input:nK,LoadingIndicator:Vq,Menu:mq,MenuList:vq,MenuPortal:_q,LoadingMessage:wq,NoOptionsMessage:bq,MultiValue:cK,MultiValueContainer:aK,MultiValueLabel:sK,MultiValueRemove:lK,Option:hK,Placeholder:gK,SelectContainer:Eq,SingleValue:xK,ValueContainer:Pq},bK=function(t){return mt(mt({},JM),t.components)},fP=Number.isNaN||function(t){return typeof t=="number"&&t!==t};function wK(e,t){return!!(e===t||fP(e)&&fP(t))}function SK(e,t){if(e.length!==t.length)return!1;for(var n=0;n1?"s":""," ").concat(o.join(","),", selected.");case"select-option":return a?"option ".concat(i," is disabled. Select another option."):"option ".concat(i,", selected.");default:return""}},onFocus:function(t){var n=t.context,r=t.focused,i=t.options,o=t.label,a=o===void 0?"":o,l=t.selectValue,c=t.isDisabled,d=t.isSelected,h=t.isAppleDevice,m=function(C,_){return C&&C.length?"".concat(C.indexOf(_)+1," of ").concat(C.length):""};if(n==="value"&&l)return"value ".concat(a," focused, ").concat(m(l,r),".");if(n==="menu"&&h){var v=c?" disabled":"",y="".concat(d?" selected":"").concat(v);return"".concat(a).concat(y,", ").concat(m(i,r),".")}return""},onFilter:function(t){var n=t.inputValue,r=t.resultsMessage;return"".concat(r).concat(n?" for search term "+n:"",".")}},PK=function(t){var n=t.ariaSelection,r=t.focusedOption,i=t.focusedValue,o=t.focusableOptions,a=t.isFocused,l=t.selectValue,c=t.selectProps,d=t.id,h=t.isAppleDevice,m=c.ariaLiveMessages,v=c.getOptionLabel,y=c.inputValue,w=c.isMulti,C=c.isOptionDisabled,_=c.isSearchable,P=c.menuIsOpen,T=c.options,A=c.screenReaderStatus,I=c.tabSelectsValue,M=c.isLoading,N=c["aria-label"],L=c["aria-live"],F=O.useMemo(function(){return mt(mt({},OK),m||{})},[m]),B=O.useMemo(function(){var se="";if(n&&F.onChange){var le=n.option,q=n.options,H=n.removedValue,Z=n.removedValues,X=n.value,z=function(he){return Array.isArray(he)?null:he},J=H||le||z(X),Me=J?v(J):"",Pe=q||Z||void 0,we=Pe?Pe.map(v):[],je=mt({isDisabled:J&&C(J,l),label:Me,labels:we},n);se=F.onChange(je)}return se},[n,F,C,l,v]),U=O.useMemo(function(){var se="",le=r||i,q=!!(r&&l&&l.includes(r));if(le&&F.onFocus){var H={focused:le,label:v(le),isDisabled:C(le,l),isSelected:q,options:o,context:le===r?"menu":"value",selectValue:l,isAppleDevice:h};se=F.onFocus(H)}return se},[r,i,v,C,F,o,l,h]),W=O.useMemo(function(){var se="";if(P&&T.length&&!M&&F.onFilter){var le=A({count:o.length});se=F.onFilter({inputValue:y,resultsMessage:le})}return se},[o,y,P,F,T,A,M]),G=(n==null?void 0:n.action)==="initial-input-focus",ie=O.useMemo(function(){var se="";if(F.guidance){var le=i?"value":P?"menu":"input";se=F.guidance({"aria-label":N,context:le,isDisabled:r&&C(r,l),isMulti:w,isSearchable:_,tabSelectsValue:I,isInitialFocus:G})}return se},[N,r,i,w,C,_,P,F,l,I,G]),te=ct(O.Fragment,null,ct("span",{id:"aria-selection"},B),ct("span",{id:"aria-focused"},U),ct("span",{id:"aria-results"},W),ct("span",{id:"aria-guidance"},ie));return ct(O.Fragment,null,ct(dP,{id:d},G&&te),ct(dP,{"aria-live":L,"aria-atomic":"false","aria-relevant":"additions text",role:"log"},a&&!G&&te))},AK=PK,t_=[{base:"A",letters:"AⒶAÀÁÂẦẤẪẨÃĀĂẰẮẴẲȦǠÄǞẢÅǺǍȀȂẠẬẶḀĄȺⱯ"},{base:"AA",letters:"Ꜳ"},{base:"AE",letters:"ÆǼǢ"},{base:"AO",letters:"Ꜵ"},{base:"AU",letters:"Ꜷ"},{base:"AV",letters:"ꜸꜺ"},{base:"AY",letters:"Ꜽ"},{base:"B",letters:"BⒷBḂḄḆɃƂƁ"},{base:"C",letters:"CⒸCĆĈĊČÇḈƇȻꜾ"},{base:"D",letters:"DⒹDḊĎḌḐḒḎĐƋƊƉꝹ"},{base:"DZ",letters:"DZDŽ"},{base:"Dz",letters:"DzDž"},{base:"E",letters:"EⒺEÈÉÊỀẾỄỂẼĒḔḖĔĖËẺĚȄȆẸỆȨḜĘḘḚƐƎ"},{base:"F",letters:"FⒻFḞƑꝻ"},{base:"G",letters:"GⒼGǴĜḠĞĠǦĢǤƓꞠꝽꝾ"},{base:"H",letters:"HⒽHĤḢḦȞḤḨḪĦⱧⱵꞍ"},{base:"I",letters:"IⒾIÌÍÎĨĪĬİÏḮỈǏȈȊỊĮḬƗ"},{base:"J",letters:"JⒿJĴɈ"},{base:"K",letters:"KⓀKḰǨḲĶḴƘⱩꝀꝂꝄꞢ"},{base:"L",letters:"LⓁLĿĹĽḶḸĻḼḺŁȽⱢⱠꝈꝆꞀ"},{base:"LJ",letters:"LJ"},{base:"Lj",letters:"Lj"},{base:"M",letters:"MⓂMḾṀṂⱮƜ"},{base:"N",letters:"NⓃNǸŃÑṄŇṆŅṊṈȠƝꞐꞤ"},{base:"NJ",letters:"NJ"},{base:"Nj",letters:"Nj"},{base:"O",letters:"OⓄOÒÓÔỒỐỖỔÕṌȬṎŌṐṒŎȮȰÖȪỎŐǑȌȎƠỜỚỠỞỢỌỘǪǬØǾƆƟꝊꝌ"},{base:"OI",letters:"Ƣ"},{base:"OO",letters:"Ꝏ"},{base:"OU",letters:"Ȣ"},{base:"P",letters:"PⓅPṔṖƤⱣꝐꝒꝔ"},{base:"Q",letters:"QⓆQꝖꝘɊ"},{base:"R",letters:"RⓇRŔṘŘȐȒṚṜŖṞɌⱤꝚꞦꞂ"},{base:"S",letters:"SⓈSẞŚṤŜṠŠṦṢṨȘŞⱾꞨꞄ"},{base:"T",letters:"TⓉTṪŤṬȚŢṰṮŦƬƮȾꞆ"},{base:"TZ",letters:"Ꜩ"},{base:"U",letters:"UⓊUÙÚÛŨṸŪṺŬÜǛǗǕǙỦŮŰǓȔȖƯỪỨỮỬỰỤṲŲṶṴɄ"},{base:"V",letters:"VⓋVṼṾƲꝞɅ"},{base:"VY",letters:"Ꝡ"},{base:"W",letters:"WⓌWẀẂŴẆẄẈⱲ"},{base:"X",letters:"XⓍXẊẌ"},{base:"Y",letters:"YⓎYỲÝŶỸȲẎŸỶỴƳɎỾ"},{base:"Z",letters:"ZⓏZŹẐŻŽẒẔƵȤⱿⱫꝢ"},{base:"a",letters:"aⓐaẚàáâầấẫẩãāăằắẵẳȧǡäǟảåǻǎȁȃạậặḁąⱥɐ"},{base:"aa",letters:"ꜳ"},{base:"ae",letters:"æǽǣ"},{base:"ao",letters:"ꜵ"},{base:"au",letters:"ꜷ"},{base:"av",letters:"ꜹꜻ"},{base:"ay",letters:"ꜽ"},{base:"b",letters:"bⓑbḃḅḇƀƃɓ"},{base:"c",letters:"cⓒcćĉċčçḉƈȼꜿↄ"},{base:"d",letters:"dⓓdḋďḍḑḓḏđƌɖɗꝺ"},{base:"dz",letters:"dzdž"},{base:"e",letters:"eⓔeèéêềếễểẽēḕḗĕėëẻěȅȇẹệȩḝęḙḛɇɛǝ"},{base:"f",letters:"fⓕfḟƒꝼ"},{base:"g",letters:"gⓖgǵĝḡğġǧģǥɠꞡᵹꝿ"},{base:"h",letters:"hⓗhĥḣḧȟḥḩḫẖħⱨⱶɥ"},{base:"hv",letters:"ƕ"},{base:"i",letters:"iⓘiìíîĩīĭïḯỉǐȉȋịįḭɨı"},{base:"j",letters:"jⓙjĵǰɉ"},{base:"k",letters:"kⓚkḱǩḳķḵƙⱪꝁꝃꝅꞣ"},{base:"l",letters:"lⓛlŀĺľḷḹļḽḻſłƚɫⱡꝉꞁꝇ"},{base:"lj",letters:"lj"},{base:"m",letters:"mⓜmḿṁṃɱɯ"},{base:"n",letters:"nⓝnǹńñṅňṇņṋṉƞɲʼnꞑꞥ"},{base:"nj",letters:"nj"},{base:"o",letters:"oⓞoòóôồốỗổõṍȭṏōṑṓŏȯȱöȫỏőǒȍȏơờớỡởợọộǫǭøǿɔꝋꝍɵ"},{base:"oi",letters:"ƣ"},{base:"ou",letters:"ȣ"},{base:"oo",letters:"ꝏ"},{base:"p",letters:"pⓟpṕṗƥᵽꝑꝓꝕ"},{base:"q",letters:"qⓠqɋꝗꝙ"},{base:"r",letters:"rⓡrŕṙřȑȓṛṝŗṟɍɽꝛꞧꞃ"},{base:"s",letters:"sⓢsßśṥŝṡšṧṣṩșşȿꞩꞅẛ"},{base:"t",letters:"tⓣtṫẗťṭțţṱṯŧƭʈⱦꞇ"},{base:"tz",letters:"ꜩ"},{base:"u",letters:"uⓤuùúûũṹūṻŭüǜǘǖǚủůűǔȕȗưừứữửựụṳųṷṵʉ"},{base:"v",letters:"vⓥvṽṿʋꝟʌ"},{base:"vy",letters:"ꝡ"},{base:"w",letters:"wⓦwẁẃŵẇẅẘẉⱳ"},{base:"x",letters:"xⓧxẋẍ"},{base:"y",letters:"yⓨyỳýŷỹȳẏÿỷẙỵƴɏỿ"},{base:"z",letters:"zⓩzźẑżžẓẕƶȥɀⱬꝣ"}],TK=new RegExp("["+t_.map(function(e){return e.letters}).join("")+"]","g"),eI={};for(var Wb=0;Wb-1}},IK=["innerRef"];function NK(e){var t=e.innerRef,n=wl(e,IK),r=sq(n,"onExited","in","enter","exit","appear");return ct("input",wt({ref:t},r,{css:YC({label:"dummyInput",background:0,border:0,caretColor:"transparent",fontSize:"inherit",gridArea:"1 / 1 / 2 / 3",outline:0,padding:0,width:1,color:"transparent",left:-100,opacity:0,position:"relative",transform:"scale(.01)"},"","")}))}var RK=function(t){t.cancelable&&t.preventDefault(),t.stopPropagation()};function LK(e){var t=e.isEnabled,n=e.onBottomArrive,r=e.onBottomLeave,i=e.onTopArrive,o=e.onTopLeave,a=O.useRef(!1),l=O.useRef(!1),c=O.useRef(0),d=O.useRef(null),h=O.useCallback(function(_,P){if(d.current!==null){var T=d.current,A=T.scrollTop,I=T.scrollHeight,M=T.clientHeight,N=d.current,L=P>0,F=I-M-A,B=!1;F>P&&a.current&&(r&&r(_),a.current=!1),L&&l.current&&(o&&o(_),l.current=!1),L&&P>F?(n&&!a.current&&n(_),N.scrollTop=I,B=!0,a.current=!0):!L&&-P>A&&(i&&!l.current&&i(_),N.scrollTop=0,B=!0,l.current=!0),B&&RK(_)}},[n,r,i,o]),m=O.useCallback(function(_){h(_,_.deltaY)},[h]),v=O.useCallback(function(_){c.current=_.changedTouches[0].clientY},[]),y=O.useCallback(function(_){var P=c.current-_.changedTouches[0].clientY;h(_,P)},[h]),w=O.useCallback(function(_){if(_){var P=iq?{passive:!1}:!1;_.addEventListener("wheel",m,P),_.addEventListener("touchstart",v,P),_.addEventListener("touchmove",y,P)}},[y,v,m]),C=O.useCallback(function(_){_&&(_.removeEventListener("wheel",m,!1),_.removeEventListener("touchstart",v,!1),_.removeEventListener("touchmove",y,!1))},[y,v,m]);return O.useEffect(function(){if(t){var _=d.current;return w(_),function(){C(_)}}},[t,w,C]),function(_){d.current=_}}var pP=["boxSizing","height","overflow","paddingRight","position"],mP={boxSizing:"border-box",overflow:"hidden",position:"relative",height:"100%"};function gP(e){e.cancelable&&e.preventDefault()}function vP(e){e.stopPropagation()}function yP(){var e=this.scrollTop,t=this.scrollHeight,n=e+this.offsetHeight;e===0?this.scrollTop=1:n===t&&(this.scrollTop=e-1)}function xP(){return"ontouchstart"in window||navigator.maxTouchPoints}var bP=!!(typeof window<"u"&&window.document&&window.document.createElement),Sm=0,Yd={capture:!1,passive:!1};function DK(e){var t=e.isEnabled,n=e.accountForScrollbars,r=n===void 0?!0:n,i=O.useRef({}),o=O.useRef(null),a=O.useCallback(function(c){if(bP){var d=document.body,h=d&&d.style;if(r&&pP.forEach(function(w){var C=h&&h[w];i.current[w]=C}),r&&Sm<1){var m=parseInt(i.current.paddingRight,10)||0,v=document.body?document.body.clientWidth:0,y=window.innerWidth-v+m||0;Object.keys(mP).forEach(function(w){var C=mP[w];h&&(h[w]=C)}),h&&(h.paddingRight="".concat(y,"px"))}d&&xP()&&(d.addEventListener("touchmove",gP,Yd),c&&(c.addEventListener("touchstart",yP,Yd),c.addEventListener("touchmove",vP,Yd))),Sm+=1}},[r]),l=O.useCallback(function(c){if(bP){var d=document.body,h=d&&d.style;Sm=Math.max(Sm-1,0),r&&Sm<1&&pP.forEach(function(m){var v=i.current[m];h&&(h[m]=v)}),d&&xP()&&(d.removeEventListener("touchmove",gP,Yd),c&&(c.removeEventListener("touchstart",yP,Yd),c.removeEventListener("touchmove",vP,Yd)))}},[r]);return O.useEffect(function(){if(t){var c=o.current;return a(c),function(){l(c)}}},[t,a,l]),function(c){o.current=c}}var $K=function(t){var n=t.target;return n.ownerDocument.activeElement&&n.ownerDocument.activeElement.blur()},FK={name:"1kfdb0e",styles:"position:fixed;left:0;bottom:0;right:0;top:0"};function BK(e){var t=e.children,n=e.lockEnabled,r=e.captureEnabled,i=r===void 0?!0:r,o=e.onBottomArrive,a=e.onBottomLeave,l=e.onTopArrive,c=e.onTopLeave,d=LK({isEnabled:i,onBottomArrive:o,onBottomLeave:a,onTopArrive:l,onTopLeave:c}),h=DK({isEnabled:n}),m=function(y){d(y),h(y)};return ct(O.Fragment,null,n&&ct("div",{onClick:$K,css:FK}),t(m))}var VK={name:"1a0ro4n-requiredInput",styles:"label:requiredInput;opacity:0;pointer-events:none;position:absolute;bottom:0;left:0;right:0;width:100%"},zK=function(t){var n=t.name,r=t.onFocus;return ct("input",{required:!0,name:n,tabIndex:-1,"aria-hidden":"true",onFocus:r,css:VK,value:"",onChange:function(){}})},UK=zK;function XC(e){var t;return typeof window<"u"&&window.navigator!=null?e.test(((t=window.navigator.userAgentData)===null||t===void 0?void 0:t.platform)||window.navigator.platform):!1}function WK(){return XC(/^iPhone/i)}function nI(){return XC(/^Mac/i)}function HK(){return XC(/^iPad/i)||nI()&&navigator.maxTouchPoints>1}function qK(){return WK()||HK()}function KK(){return nI()||qK()}var GK=function(t){return t.label},YK=function(t){return t.label},ZK=function(t){return t.value},XK=function(t){return!!t.isDisabled},QK={clearIndicator:Rq,container:Cq,control:zq,dropdownIndicator:Iq,group:qq,groupHeading:Gq,indicatorsContainer:Aq,indicatorSeparator:Dq,input:Qq,loadingIndicator:Bq,loadingMessage:xq,menu:dq,menuList:gq,menuPortal:Sq,multiValue:rK,multiValueLabel:iK,multiValueRemove:oK,noOptionsMessage:yq,option:fK,placeholder:pK,singleValue:vK,valueContainer:Oq},JK={primary:"#2684FF",primary75:"#4C9AFF",primary50:"#B2D4FF",primary25:"#DEEBFF",danger:"#DE350B",dangerLight:"#FFBDAD",neutral0:"hsl(0, 0%, 100%)",neutral5:"hsl(0, 0%, 95%)",neutral10:"hsl(0, 0%, 90%)",neutral20:"hsl(0, 0%, 80%)",neutral30:"hsl(0, 0%, 70%)",neutral40:"hsl(0, 0%, 60%)",neutral50:"hsl(0, 0%, 50%)",neutral60:"hsl(0, 0%, 40%)",neutral70:"hsl(0, 0%, 30%)",neutral80:"hsl(0, 0%, 20%)",neutral90:"hsl(0, 0%, 10%)"},eG=4,rI=4,tG=38,nG=rI*2,rG={baseUnit:rI,controlHeight:tG,menuGutter:nG},Kb={borderRadius:eG,colors:JK,spacing:rG},iG={"aria-live":"polite",backspaceRemovesValue:!0,blurInputOnSelect:uP(),captureMenuScroll:!uP(),classNames:{},closeMenuOnSelect:!0,closeMenuOnScroll:!1,components:{},controlShouldRenderValue:!0,escapeClearsValue:!1,filterOption:MK(),formatGroupLabel:GK,getOptionLabel:YK,getOptionValue:ZK,isDisabled:!1,isLoading:!1,isMulti:!1,isRtl:!1,isSearchable:!0,isOptionDisabled:XK,loadingMessage:function(){return"Loading..."},maxMenuHeight:300,minMenuHeight:140,menuIsOpen:!1,menuPlacement:"bottom",menuPosition:"absolute",menuShouldBlockScroll:!1,menuShouldScrollIntoView:!nq(),noOptionsMessage:function(){return"No options"},openMenuOnFocus:!1,openMenuOnClick:!0,options:[],pageSize:5,placeholder:"Select...",screenReaderStatus:function(t){var n=t.count;return"".concat(n," result").concat(n!==1?"s":""," available")},styles:{},tabIndex:0,tabSelectsValue:!0,unstyled:!1};function wP(e,t,n,r){var i=aI(e,t,n),o=sI(e,t,n),a=oI(e,t),l=Py(e,t);return{type:"option",data:t,isDisabled:i,isSelected:o,label:a,value:l,index:r}}function fy(e,t){return e.options.map(function(n,r){if("options"in n){var i=n.options.map(function(a,l){return wP(e,a,t,l)}).filter(function(a){return _P(e,a)});return i.length>0?{type:"group",data:n,options:i,index:r}:void 0}var o=wP(e,n,t,r);return _P(e,o)?o:void 0}).filter(oq)}function iI(e){return e.reduce(function(t,n){return n.type==="group"?t.push.apply(t,WC(n.options.map(function(r){return r.data}))):t.push(n.data),t},[])}function SP(e,t){return e.reduce(function(n,r){return r.type==="group"?n.push.apply(n,WC(r.options.map(function(i){return{data:i.data,id:"".concat(t,"-").concat(r.index,"-").concat(i.index)}}))):n.push({data:r.data,id:"".concat(t,"-").concat(r.index)}),n},[])}function oG(e,t){return iI(fy(e,t))}function _P(e,t){var n=e.inputValue,r=n===void 0?"":n,i=t.data,o=t.isSelected,a=t.label,l=t.value;return(!uI(e)||!o)&&lI(e,{label:a,value:l,data:i},r)}function aG(e,t){var n=e.focusedValue,r=e.selectValue,i=r.indexOf(n);if(i>-1){var o=t.indexOf(n);if(o>-1)return n;if(i-1?n:t[0]}var Gb=function(t,n){var r,i=(r=t.find(function(o){return o.data===n}))===null||r===void 0?void 0:r.id;return i||null},oI=function(t,n){return t.getOptionLabel(n)},Py=function(t,n){return t.getOptionValue(n)};function aI(e,t,n){return typeof e.isOptionDisabled=="function"?e.isOptionDisabled(t,n):!1}function sI(e,t,n){if(n.indexOf(t)>-1)return!0;if(typeof e.isOptionSelected=="function")return e.isOptionSelected(t,n);var r=Py(e,t);return n.some(function(i){return Py(e,i)===r})}function lI(e,t,n){return e.filterOption?e.filterOption(t,n):!0}var uI=function(t){var n=t.hideSelectedOptions,r=t.isMulti;return n===void 0?r:n},lG=1,cI=function(e){WW(n,e);var t=KW(n);function n(r){var i;if(zW(this,n),i=t.call(this,r),i.state={ariaSelection:null,focusedOption:null,focusedOptionId:null,focusableOptionsWithIds:[],focusedValue:null,inputIsHidden:!1,isFocused:!1,selectValue:[],clearFocusValueOnUpdate:!1,prevWasFocused:!1,inputIsHiddenAfterUpdate:void 0,prevProps:void 0,instancePrefix:""},i.blockOptionHover=!1,i.isComposing=!1,i.commonProps=void 0,i.initialTouchX=0,i.initialTouchY=0,i.openAfterFocus=!1,i.scrollToFocusedOptionOnUpdate=!1,i.userIsDragging=void 0,i.isAppleDevice=KK(),i.controlRef=null,i.getControlRef=function(c){i.controlRef=c},i.focusedOptionRef=null,i.getFocusedOptionRef=function(c){i.focusedOptionRef=c},i.menuListRef=null,i.getMenuListRef=function(c){i.menuListRef=c},i.inputRef=null,i.getInputRef=function(c){i.inputRef=c},i.focus=i.focusInput,i.blur=i.blurInput,i.onChange=function(c,d){var h=i.props,m=h.onChange,v=h.name;d.name=v,i.ariaOnChange(c,d),m(c,d)},i.setValue=function(c,d,h){var m=i.props,v=m.closeMenuOnSelect,y=m.isMulti,w=m.inputValue;i.onInputChange("",{action:"set-value",prevInputValue:w}),v&&(i.setState({inputIsHiddenAfterUpdate:!y}),i.onMenuClose()),i.setState({clearFocusValueOnUpdate:!0}),i.onChange(c,{action:d,option:h})},i.selectOption=function(c){var d=i.props,h=d.blurInputOnSelect,m=d.isMulti,v=d.name,y=i.state.selectValue,w=m&&i.isOptionSelected(c,y),C=i.isOptionDisabled(c,y);if(w){var _=i.getOptionValue(c);i.setValue(y.filter(function(P){return i.getOptionValue(P)!==_}),"deselect-option",c)}else if(!C)m?i.setValue([].concat(WC(y),[c]),"select-option",c):i.setValue(c,"select-option");else{i.ariaOnChange(c,{action:"select-option",option:c,name:v});return}h&&i.blurInput()},i.removeValue=function(c){var d=i.props.isMulti,h=i.state.selectValue,m=i.getOptionValue(c),v=h.filter(function(w){return i.getOptionValue(w)!==m}),y=Fv(d,v,v[0]||null);i.onChange(y,{action:"remove-value",removedValue:c}),i.focusInput()},i.clearValue=function(){var c=i.state.selectValue;i.onChange(Fv(i.props.isMulti,[],null),{action:"clear",removedValues:c})},i.popValue=function(){var c=i.props.isMulti,d=i.state.selectValue,h=d[d.length-1],m=d.slice(0,d.length-1),v=Fv(c,m,m[0]||null);h&&i.onChange(v,{action:"pop-value",removedValue:h})},i.getFocusedOptionId=function(c){return Gb(i.state.focusableOptionsWithIds,c)},i.getFocusableOptionsWithIds=function(){return SP(fy(i.props,i.state.selectValue),i.getElementId("option"))},i.getValue=function(){return i.state.selectValue},i.cx=function(){for(var c=arguments.length,d=new Array(c),h=0;hy||v>y}},i.onTouchEnd=function(c){i.userIsDragging||(i.controlRef&&!i.controlRef.contains(c.target)&&i.menuListRef&&!i.menuListRef.contains(c.target)&&i.blurInput(),i.initialTouchX=0,i.initialTouchY=0)},i.onControlTouchEnd=function(c){i.userIsDragging||i.onControlMouseDown(c)},i.onClearIndicatorTouchEnd=function(c){i.userIsDragging||i.onClearIndicatorMouseDown(c)},i.onDropdownIndicatorTouchEnd=function(c){i.userIsDragging||i.onDropdownIndicatorMouseDown(c)},i.handleInputChange=function(c){var d=i.props.inputValue,h=c.currentTarget.value;i.setState({inputIsHiddenAfterUpdate:!1}),i.onInputChange(h,{action:"input-change",prevInputValue:d}),i.props.menuIsOpen||i.onMenuOpen()},i.onInputFocus=function(c){i.props.onFocus&&i.props.onFocus(c),i.setState({inputIsHiddenAfterUpdate:!1,isFocused:!0}),(i.openAfterFocus||i.props.openMenuOnFocus)&&i.openMenu("first"),i.openAfterFocus=!1},i.onInputBlur=function(c){var d=i.props.inputValue;if(i.menuListRef&&i.menuListRef.contains(document.activeElement)){i.inputRef.focus();return}i.props.onBlur&&i.props.onBlur(c),i.onInputChange("",{action:"input-blur",prevInputValue:d}),i.onMenuClose(),i.setState({focusedValue:null,isFocused:!1})},i.onOptionHover=function(c){if(!(i.blockOptionHover||i.state.focusedOption===c)){var d=i.getFocusableOptions(),h=d.indexOf(c);i.setState({focusedOption:c,focusedOptionId:h>-1?i.getFocusedOptionId(c):null})}},i.shouldHideSelectedOptions=function(){return uI(i.props)},i.onValueInputFocus=function(c){c.preventDefault(),c.stopPropagation(),i.focus()},i.onKeyDown=function(c){var d=i.props,h=d.isMulti,m=d.backspaceRemovesValue,v=d.escapeClearsValue,y=d.inputValue,w=d.isClearable,C=d.isDisabled,_=d.menuIsOpen,P=d.onKeyDown,T=d.tabSelectsValue,A=d.openMenuOnFocus,I=i.state,M=I.focusedOption,N=I.focusedValue,L=I.selectValue;if(!C&&!(typeof P=="function"&&(P(c),c.defaultPrevented))){switch(i.blockOptionHover=!0,c.key){case"ArrowLeft":if(!h||y)return;i.focusValue("previous");break;case"ArrowRight":if(!h||y)return;i.focusValue("next");break;case"Delete":case"Backspace":if(y)return;if(N)i.removeValue(N);else{if(!m)return;h?i.popValue():w&&i.clearValue()}break;case"Tab":if(i.isComposing||c.shiftKey||!_||!T||!M||A&&i.isOptionSelected(M,L))return;i.selectOption(M);break;case"Enter":if(c.keyCode===229)break;if(_){if(!M||i.isComposing)return;i.selectOption(M);break}return;case"Escape":_?(i.setState({inputIsHiddenAfterUpdate:!1}),i.onInputChange("",{action:"menu-close",prevInputValue:y}),i.onMenuClose()):w&&v&&i.clearValue();break;case" ":if(y)return;if(!_){i.openMenu("first");break}if(!M)return;i.selectOption(M);break;case"ArrowUp":_?i.focusOption("up"):i.openMenu("last");break;case"ArrowDown":_?i.focusOption("down"):i.openMenu("first");break;case"PageUp":if(!_)return;i.focusOption("pageup");break;case"PageDown":if(!_)return;i.focusOption("pagedown");break;case"Home":if(!_)return;i.focusOption("first");break;case"End":if(!_)return;i.focusOption("last");break;default:return}c.preventDefault()}},i.state.instancePrefix="react-select-"+(i.props.instanceId||++lG),i.state.selectValue=sP(r.value),r.menuIsOpen&&i.state.selectValue.length){var o=i.getFocusableOptionsWithIds(),a=i.buildFocusableOptions(),l=a.indexOf(i.state.selectValue[0]);i.state.focusableOptionsWithIds=o,i.state.focusedOption=a[l],i.state.focusedOptionId=Gb(o,a[l])}return i}return UW(n,[{key:"componentDidMount",value:function(){this.startListeningComposition(),this.startListeningToTouch(),this.props.closeMenuOnScroll&&document&&document.addEventListener&&document.addEventListener("scroll",this.onScroll,!0),this.props.autoFocus&&this.focusInput(),this.props.menuIsOpen&&this.state.focusedOption&&this.menuListRef&&this.focusedOptionRef&&lP(this.menuListRef,this.focusedOptionRef)}},{key:"componentDidUpdate",value:function(i){var o=this.props,a=o.isDisabled,l=o.menuIsOpen,c=this.state.isFocused;(c&&!a&&i.isDisabled||c&&l&&!i.menuIsOpen)&&this.focusInput(),c&&a&&!i.isDisabled?this.setState({isFocused:!1},this.onMenuClose):!c&&!a&&i.isDisabled&&this.inputRef===document.activeElement&&this.setState({isFocused:!0}),this.menuListRef&&this.focusedOptionRef&&this.scrollToFocusedOptionOnUpdate&&(lP(this.menuListRef,this.focusedOptionRef),this.scrollToFocusedOptionOnUpdate=!1)}},{key:"componentWillUnmount",value:function(){this.stopListeningComposition(),this.stopListeningToTouch(),document.removeEventListener("scroll",this.onScroll,!0)}},{key:"onMenuOpen",value:function(){this.props.onMenuOpen()}},{key:"onMenuClose",value:function(){this.onInputChange("",{action:"menu-close",prevInputValue:this.props.inputValue}),this.props.onMenuClose()}},{key:"onInputChange",value:function(i,o){this.props.onInputChange(i,o)}},{key:"focusInput",value:function(){this.inputRef&&this.inputRef.focus()}},{key:"blurInput",value:function(){this.inputRef&&this.inputRef.blur()}},{key:"openMenu",value:function(i){var o=this,a=this.state,l=a.selectValue,c=a.isFocused,d=this.buildFocusableOptions(),h=i==="first"?0:d.length-1;if(!this.props.isMulti){var m=d.indexOf(l[0]);m>-1&&(h=m)}this.scrollToFocusedOptionOnUpdate=!(c&&this.menuListRef),this.setState({inputIsHiddenAfterUpdate:!1,focusedValue:null,focusedOption:d[h],focusedOptionId:this.getFocusedOptionId(d[h])},function(){return o.onMenuOpen()})}},{key:"focusValue",value:function(i){var o=this.state,a=o.selectValue,l=o.focusedValue;if(this.props.isMulti){this.setState({focusedOption:null});var c=a.indexOf(l);l||(c=-1);var d=a.length-1,h=-1;if(a.length){switch(i){case"previous":c===0?h=0:c===-1?h=d:h=c-1;break;case"next":c>-1&&c0&&arguments[0]!==void 0?arguments[0]:"first",o=this.props.pageSize,a=this.state.focusedOption,l=this.getFocusableOptions();if(l.length){var c=0,d=l.indexOf(a);a||(d=-1),i==="up"?c=d>0?d-1:l.length-1:i==="down"?c=(d+1)%l.length:i==="pageup"?(c=d-o,c<0&&(c=0)):i==="pagedown"?(c=d+o,c>l.length-1&&(c=l.length-1)):i==="last"&&(c=l.length-1),this.scrollToFocusedOptionOnUpdate=!0,this.setState({focusedOption:l[c],focusedValue:null,focusedOptionId:this.getFocusedOptionId(l[c])})}}},{key:"getTheme",value:function(){return this.props.theme?typeof this.props.theme=="function"?this.props.theme(Kb):mt(mt({},Kb),this.props.theme):Kb}},{key:"getCommonProps",value:function(){var i=this.clearValue,o=this.cx,a=this.getStyles,l=this.getClassNames,c=this.getValue,d=this.selectOption,h=this.setValue,m=this.props,v=m.isMulti,y=m.isRtl,w=m.options,C=this.hasValue();return{clearValue:i,cx:o,getStyles:a,getClassNames:l,getValue:c,hasValue:C,isMulti:v,isRtl:y,options:w,selectOption:d,selectProps:m,setValue:h,theme:this.getTheme()}}},{key:"hasValue",value:function(){var i=this.state.selectValue;return i.length>0}},{key:"hasOptions",value:function(){return!!this.getFocusableOptions().length}},{key:"isClearable",value:function(){var i=this.props,o=i.isClearable,a=i.isMulti;return o===void 0?a:o}},{key:"isOptionDisabled",value:function(i,o){return aI(this.props,i,o)}},{key:"isOptionSelected",value:function(i,o){return sI(this.props,i,o)}},{key:"filterOption",value:function(i,o){return lI(this.props,i,o)}},{key:"formatOptionLabel",value:function(i,o){if(typeof this.props.formatOptionLabel=="function"){var a=this.props.inputValue,l=this.state.selectValue;return this.props.formatOptionLabel(i,{context:o,inputValue:a,selectValue:l})}else return this.getOptionLabel(i)}},{key:"formatGroupLabel",value:function(i){return this.props.formatGroupLabel(i)}},{key:"startListeningComposition",value:function(){document&&document.addEventListener&&(document.addEventListener("compositionstart",this.onCompositionStart,!1),document.addEventListener("compositionend",this.onCompositionEnd,!1))}},{key:"stopListeningComposition",value:function(){document&&document.removeEventListener&&(document.removeEventListener("compositionstart",this.onCompositionStart),document.removeEventListener("compositionend",this.onCompositionEnd))}},{key:"startListeningToTouch",value:function(){document&&document.addEventListener&&(document.addEventListener("touchstart",this.onTouchStart,!1),document.addEventListener("touchmove",this.onTouchMove,!1),document.addEventListener("touchend",this.onTouchEnd,!1))}},{key:"stopListeningToTouch",value:function(){document&&document.removeEventListener&&(document.removeEventListener("touchstart",this.onTouchStart),document.removeEventListener("touchmove",this.onTouchMove),document.removeEventListener("touchend",this.onTouchEnd))}},{key:"renderInput",value:function(){var i=this.props,o=i.isDisabled,a=i.isSearchable,l=i.inputId,c=i.inputValue,d=i.tabIndex,h=i.form,m=i.menuIsOpen,v=i.required,y=this.getComponents(),w=y.Input,C=this.state,_=C.inputIsHidden,P=C.ariaSelection,T=this.commonProps,A=l||this.getElementId("input"),I=mt(mt(mt({"aria-autocomplete":"list","aria-expanded":m,"aria-haspopup":!0,"aria-errormessage":this.props["aria-errormessage"],"aria-invalid":this.props["aria-invalid"],"aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"],"aria-required":v,role:"combobox","aria-activedescendant":this.isAppleDevice?void 0:this.state.focusedOptionId||""},m&&{"aria-controls":this.getElementId("listbox")}),!a&&{"aria-readonly":!0}),this.hasValue()?(P==null?void 0:P.action)==="initial-input-focus"&&{"aria-describedby":this.getElementId("live-region")}:{"aria-describedby":this.getElementId("placeholder")});return a?O.createElement(w,wt({},T,{autoCapitalize:"none",autoComplete:"off",autoCorrect:"off",id:A,innerRef:this.getInputRef,isDisabled:o,isHidden:_,onBlur:this.onInputBlur,onChange:this.handleInputChange,onFocus:this.onInputFocus,spellCheck:"false",tabIndex:d,form:h,type:"text",value:c},I)):O.createElement(NK,wt({id:A,innerRef:this.getInputRef,onBlur:this.onInputBlur,onChange:Ey,onFocus:this.onInputFocus,disabled:o,tabIndex:d,inputMode:"none",form:h,value:""},I))}},{key:"renderPlaceholderOrValue",value:function(){var i=this,o=this.getComponents(),a=o.MultiValue,l=o.MultiValueContainer,c=o.MultiValueLabel,d=o.MultiValueRemove,h=o.SingleValue,m=o.Placeholder,v=this.commonProps,y=this.props,w=y.controlShouldRenderValue,C=y.isDisabled,_=y.isMulti,P=y.inputValue,T=y.placeholder,A=this.state,I=A.selectValue,M=A.focusedValue,N=A.isFocused;if(!this.hasValue()||!w)return P?null:O.createElement(m,wt({},v,{key:"placeholder",isDisabled:C,isFocused:N,innerProps:{id:this.getElementId("placeholder")}}),T);if(_)return I.map(function(F,B){var U=F===M,W="".concat(i.getOptionLabel(F),"-").concat(i.getOptionValue(F));return O.createElement(a,wt({},v,{components:{Container:l,Label:c,Remove:d},isFocused:U,isDisabled:C,key:W,index:B,removeProps:{onClick:function(){return i.removeValue(F)},onTouchEnd:function(){return i.removeValue(F)},onMouseDown:function(ie){ie.preventDefault()}},data:F}),i.formatOptionLabel(F,"value"))});if(P)return null;var L=I[0];return O.createElement(h,wt({},v,{data:L,isDisabled:C}),this.formatOptionLabel(L,"value"))}},{key:"renderClearIndicator",value:function(){var i=this.getComponents(),o=i.ClearIndicator,a=this.commonProps,l=this.props,c=l.isDisabled,d=l.isLoading,h=this.state.isFocused;if(!this.isClearable()||!o||c||!this.hasValue()||d)return null;var m={onMouseDown:this.onClearIndicatorMouseDown,onTouchEnd:this.onClearIndicatorTouchEnd,"aria-hidden":"true"};return O.createElement(o,wt({},a,{innerProps:m,isFocused:h}))}},{key:"renderLoadingIndicator",value:function(){var i=this.getComponents(),o=i.LoadingIndicator,a=this.commonProps,l=this.props,c=l.isDisabled,d=l.isLoading,h=this.state.isFocused;if(!o||!d)return null;var m={"aria-hidden":"true"};return O.createElement(o,wt({},a,{innerProps:m,isDisabled:c,isFocused:h}))}},{key:"renderIndicatorSeparator",value:function(){var i=this.getComponents(),o=i.DropdownIndicator,a=i.IndicatorSeparator;if(!o||!a)return null;var l=this.commonProps,c=this.props.isDisabled,d=this.state.isFocused;return O.createElement(a,wt({},l,{isDisabled:c,isFocused:d}))}},{key:"renderDropdownIndicator",value:function(){var i=this.getComponents(),o=i.DropdownIndicator;if(!o)return null;var a=this.commonProps,l=this.props.isDisabled,c=this.state.isFocused,d={onMouseDown:this.onDropdownIndicatorMouseDown,onTouchEnd:this.onDropdownIndicatorTouchEnd,"aria-hidden":"true"};return O.createElement(o,wt({},a,{innerProps:d,isDisabled:l,isFocused:c}))}},{key:"renderMenu",value:function(){var i=this,o=this.getComponents(),a=o.Group,l=o.GroupHeading,c=o.Menu,d=o.MenuList,h=o.MenuPortal,m=o.LoadingMessage,v=o.NoOptionsMessage,y=o.Option,w=this.commonProps,C=this.state.focusedOption,_=this.props,P=_.captureMenuScroll,T=_.inputValue,A=_.isLoading,I=_.loadingMessage,M=_.minMenuHeight,N=_.maxMenuHeight,L=_.menuIsOpen,F=_.menuPlacement,B=_.menuPosition,U=_.menuPortalTarget,W=_.menuShouldBlockScroll,G=_.menuShouldScrollIntoView,ie=_.noOptionsMessage,te=_.onMenuScrollToTop,se=_.onMenuScrollToBottom;if(!L)return null;var le=function(Me,Pe){var we=Me.type,je=Me.data,re=Me.isDisabled,he=Me.isSelected,oe=Me.label,be=Me.value,Ce=C===je,fe=re?void 0:function(){return i.onOptionHover(je)},De=re?void 0:function(){return i.selectOption(je)},Le="".concat(i.getElementId("option"),"-").concat(Pe),it={id:Le,onClick:De,onMouseMove:fe,onMouseOver:fe,tabIndex:-1,role:"option","aria-selected":i.isAppleDevice?void 0:he};return O.createElement(y,wt({},w,{innerProps:it,data:je,isDisabled:re,isSelected:he,key:Le,label:oe,type:we,value:be,isFocused:Ce,innerRef:Ce?i.getFocusedOptionRef:void 0}),i.formatOptionLabel(Me.data,"menu"))},q;if(this.hasOptions())q=this.getCategorizedOptions().map(function(J){if(J.type==="group"){var Me=J.data,Pe=J.options,we=J.index,je="".concat(i.getElementId("group"),"-").concat(we),re="".concat(je,"-heading");return O.createElement(a,wt({},w,{key:je,data:Me,options:Pe,Heading:l,headingProps:{id:re,data:J.data},label:i.formatGroupLabel(J.data)}),J.options.map(function(he){return le(he,"".concat(we,"-").concat(he.index))}))}else if(J.type==="option")return le(J,"".concat(J.index))});else if(A){var H=I({inputValue:T});if(H===null)return null;q=O.createElement(m,w,H)}else{var Z=ie({inputValue:T});if(Z===null)return null;q=O.createElement(v,w,Z)}var X={minMenuHeight:M,maxMenuHeight:N,menuPlacement:F,menuPosition:B,menuShouldScrollIntoView:G},z=O.createElement(hq,wt({},w,X),function(J){var Me=J.ref,Pe=J.placerProps,we=Pe.placement,je=Pe.maxHeight;return O.createElement(c,wt({},w,X,{innerRef:Me,innerProps:{onMouseDown:i.onMenuMouseDown,onMouseMove:i.onMenuMouseMove},isLoading:A,placement:we}),O.createElement(BK,{captureEnabled:P,onTopArrive:te,onBottomArrive:se,lockEnabled:W},function(re){return O.createElement(d,wt({},w,{innerRef:function(oe){i.getMenuListRef(oe),re(oe)},innerProps:{role:"listbox","aria-multiselectable":w.isMulti,id:i.getElementId("listbox")},isLoading:A,maxHeight:je,focusedOption:C}),q)}))});return U||B==="fixed"?O.createElement(h,wt({},w,{appendTo:U,controlElement:this.controlRef,menuPlacement:F,menuPosition:B}),z):z}},{key:"renderFormField",value:function(){var i=this,o=this.props,a=o.delimiter,l=o.isDisabled,c=o.isMulti,d=o.name,h=o.required,m=this.state.selectValue;if(h&&!this.hasValue()&&!l)return O.createElement(UK,{name:d,onFocus:this.onValueInputFocus});if(!(!d||l))if(c)if(a){var v=m.map(function(C){return i.getOptionValue(C)}).join(a);return O.createElement("input",{name:d,type:"hidden",value:v})}else{var y=m.length>0?m.map(function(C,_){return O.createElement("input",{key:"i-".concat(_),name:d,type:"hidden",value:i.getOptionValue(C)})}):O.createElement("input",{name:d,type:"hidden",value:""});return O.createElement("div",null,y)}else{var w=m[0]?this.getOptionValue(m[0]):"";return O.createElement("input",{name:d,type:"hidden",value:w})}}},{key:"renderLiveRegion",value:function(){var i=this.commonProps,o=this.state,a=o.ariaSelection,l=o.focusedOption,c=o.focusedValue,d=o.isFocused,h=o.selectValue,m=this.getFocusableOptions();return O.createElement(AK,wt({},i,{id:this.getElementId("live-region"),ariaSelection:a,focusedOption:l,focusedValue:c,isFocused:d,selectValue:h,focusableOptions:m,isAppleDevice:this.isAppleDevice}))}},{key:"render",value:function(){var i=this.getComponents(),o=i.Control,a=i.IndicatorsContainer,l=i.SelectContainer,c=i.ValueContainer,d=this.props,h=d.className,m=d.id,v=d.isDisabled,y=d.menuIsOpen,w=this.state.isFocused,C=this.commonProps=this.getCommonProps();return O.createElement(l,wt({},C,{className:h,innerProps:{id:m,onKeyDown:this.onKeyDown},isDisabled:v,isFocused:w}),this.renderLiveRegion(),O.createElement(o,wt({},C,{innerRef:this.getControlRef,innerProps:{onMouseDown:this.onControlMouseDown,onTouchEnd:this.onControlTouchEnd},isDisabled:v,isFocused:w,menuIsOpen:y}),O.createElement(c,wt({},C,{isDisabled:v}),this.renderPlaceholderOrValue(),this.renderInput()),O.createElement(a,wt({},C,{isDisabled:v}),this.renderClearIndicator(),this.renderLoadingIndicator(),this.renderIndicatorSeparator(),this.renderDropdownIndicator())),this.renderMenu(),this.renderFormField())}}],[{key:"getDerivedStateFromProps",value:function(i,o){var a=o.prevProps,l=o.clearFocusValueOnUpdate,c=o.inputIsHiddenAfterUpdate,d=o.ariaSelection,h=o.isFocused,m=o.prevWasFocused,v=o.instancePrefix,y=i.options,w=i.value,C=i.menuIsOpen,_=i.inputValue,P=i.isMulti,T=sP(w),A={};if(a&&(w!==a.value||y!==a.options||C!==a.menuIsOpen||_!==a.inputValue)){var I=C?oG(i,T):[],M=C?SP(fy(i,T),"".concat(v,"-option")):[],N=l?aG(o,T):null,L=sG(o,I),F=Gb(M,L);A={selectValue:T,focusedOption:L,focusedOptionId:F,focusableOptionsWithIds:M,focusedValue:N,clearFocusValueOnUpdate:!1}}var B=c!=null&&i!==a?{inputIsHidden:c,inputIsHiddenAfterUpdate:void 0}:{},U=d,W=h&&m;return h&&!W&&(U={value:Fv(P,T,T[0]||null),options:T,action:"initial-input-focus"},W=!m),(d==null?void 0:d.action)==="initial-input-focus"&&(U=null),mt(mt(mt({},A),B),{},{prevProps:i,ariaSelection:U,prevWasFocused:W})}}]),n}(O.Component);cI.defaultProps=iG;var uG=O.forwardRef(function(e,t){var n=VW(e);return O.createElement(cI,wt({ref:t},n))}),fI=uG,Yb={},Zb={},Xb={},CP;function dI(){return CP||(CP=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t}});function t(n){if(n=`${n}`,n==="0")return"0";if(/^[+-]?(\d+|\d*\.\d+)(e[+-]?\d+)?(%|\w+)?$/.test(n))return n.replace(/^[+-]?/,i=>i==="-"?"":"-");let r=["var","calc","min","max","clamp"];for(const i of r)if(n.includes(`${i}(`))return`calc(${n} * -1)`}}(Xb)),Xb}var Qb={},EP;function cG(){return EP||(EP=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t}});const t=["preflight","container","accessibility","pointerEvents","visibility","position","inset","isolation","zIndex","order","gridColumn","gridColumnStart","gridColumnEnd","gridRow","gridRowStart","gridRowEnd","float","clear","margin","boxSizing","lineClamp","display","aspectRatio","size","height","maxHeight","minHeight","width","minWidth","maxWidth","flex","flexShrink","flexGrow","flexBasis","tableLayout","captionSide","borderCollapse","borderSpacing","transformOrigin","translate","rotate","skew","scale","transform","animation","cursor","touchAction","userSelect","resize","scrollSnapType","scrollSnapAlign","scrollSnapStop","scrollMargin","scrollPadding","listStylePosition","listStyleType","listStyleImage","appearance","columns","breakBefore","breakInside","breakAfter","gridAutoColumns","gridAutoFlow","gridAutoRows","gridTemplateColumns","gridTemplateRows","flexDirection","flexWrap","placeContent","placeItems","alignContent","alignItems","justifyContent","justifyItems","gap","space","divideWidth","divideStyle","divideColor","divideOpacity","placeSelf","alignSelf","justifySelf","overflow","overscrollBehavior","scrollBehavior","textOverflow","hyphens","whitespace","textWrap","wordBreak","borderRadius","borderWidth","borderStyle","borderColor","borderOpacity","backgroundColor","backgroundOpacity","backgroundImage","gradientColorStops","boxDecorationBreak","backgroundSize","backgroundAttachment","backgroundClip","backgroundPosition","backgroundRepeat","backgroundOrigin","fill","stroke","strokeWidth","objectFit","objectPosition","padding","textAlign","textIndent","verticalAlign","fontFamily","fontSize","fontWeight","textTransform","fontStyle","fontVariantNumeric","lineHeight","letterSpacing","textColor","textOpacity","textDecoration","textDecorationColor","textDecorationStyle","textDecorationThickness","textUnderlineOffset","fontSmoothing","placeholderColor","placeholderOpacity","caretColor","accentColor","opacity","backgroundBlendMode","mixBlendMode","boxShadow","boxShadowColor","outlineStyle","outlineWidth","outlineOffset","outlineColor","ringWidth","ringColor","ringOpacity","ringOffsetWidth","ringOffsetColor","blur","brightness","contrast","dropShadow","grayscale","hueRotate","invert","saturate","sepia","filter","backdropBlur","backdropBrightness","backdropContrast","backdropGrayscale","backdropHueRotate","backdropInvert","backdropOpacity","backdropSaturate","backdropSepia","backdropFilter","transitionProperty","transitionDelay","transitionDuration","transitionTimingFunction","willChange","contain","content","forcedColorAdjust"]}(Qb)),Qb}var Jb={},OP;function fG(){return OP||(OP=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t}});function t(n,r){return n===void 0?r:Array.isArray(n)?n:[...new Set(r.filter(o=>n!==!1&&n[o]!==!1).concat(Object.keys(n).filter(o=>n[o]!==!1)))]}}(Jb)),Jb}var ew={},tw={},Bv={exports:{}},PP;function hI(){if(PP)return Bv.exports;PP=1;var e=String,t=function(){return{isColorSupported:!1,reset:e,bold:e,dim:e,italic:e,underline:e,inverse:e,hidden:e,strikethrough:e,black:e,red:e,green:e,yellow:e,blue:e,magenta:e,cyan:e,white:e,gray:e,bgBlack:e,bgRed:e,bgGreen:e,bgYellow:e,bgBlue:e,bgMagenta:e,bgCyan:e,bgWhite:e,blackBright:e,redBright:e,greenBright:e,yellowBright:e,blueBright:e,magentaBright:e,cyanBright:e,whiteBright:e,bgBlackBright:e,bgRedBright:e,bgGreenBright:e,bgYellowBright:e,bgBlueBright:e,bgMagentaBright:e,bgCyanBright:e,bgWhiteBright:e}};return Bv.exports=t(),Bv.exports.createColors=t,Bv.exports}var AP;function QC(){return AP||(AP=1,function(e){var t={};Object.defineProperty(e,"__esModule",{value:!0});function n(d,h){for(var m in h)Object.defineProperty(d,m,{enumerable:!0,get:h[m]})}n(e,{dim:function(){return l},default:function(){return c}});const r=i(hI());function i(d){return d&&d.__esModule?d:{default:d}}let o=new Set;function a(d,h,m){typeof process<"u"&&t.JEST_WORKER_ID||m&&o.has(m)||(m&&o.add(m),console.warn(""),h.forEach(v=>console.warn(d,"-",v)))}function l(d){return r.default.dim(d)}const c={info(d,h){a(r.default.bold(r.default.cyan("info")),...Array.isArray(d)?[d]:[h,d])},warn(d,h){a(r.default.bold(r.default.yellow("warn")),...Array.isArray(d)?[d]:[h,d])},risk(d,h){a(r.default.bold(r.default.magenta("risk")),...Array.isArray(d)?[d]:[h,d])}}}(tw)),tw}var TP;function dG(){return TP||(TP=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return i}});const t=n(QC());function n(o){return o&&o.__esModule?o:{default:o}}function r({version:o,from:a,to:l}){t.default.warn(`${a}-color-renamed`,[`As of Tailwind CSS ${o}, \`${a}\` has been renamed to \`${l}\`.`,"Update your configuration file to silence this warning."])}const i={inherit:"inherit",current:"currentColor",transparent:"transparent",black:"#000",white:"#fff",slate:{50:"#f8fafc",100:"#f1f5f9",200:"#e2e8f0",300:"#cbd5e1",400:"#94a3b8",500:"#64748b",600:"#475569",700:"#334155",800:"#1e293b",900:"#0f172a",950:"#020617"},gray:{50:"#f9fafb",100:"#f3f4f6",200:"#e5e7eb",300:"#d1d5db",400:"#9ca3af",500:"#6b7280",600:"#4b5563",700:"#374151",800:"#1f2937",900:"#111827",950:"#030712"},zinc:{50:"#fafafa",100:"#f4f4f5",200:"#e4e4e7",300:"#d4d4d8",400:"#a1a1aa",500:"#71717a",600:"#52525b",700:"#3f3f46",800:"#27272a",900:"#18181b",950:"#09090b"},neutral:{50:"#fafafa",100:"#f5f5f5",200:"#e5e5e5",300:"#d4d4d4",400:"#a3a3a3",500:"#737373",600:"#525252",700:"#404040",800:"#262626",900:"#171717",950:"#0a0a0a"},stone:{50:"#fafaf9",100:"#f5f5f4",200:"#e7e5e4",300:"#d6d3d1",400:"#a8a29e",500:"#78716c",600:"#57534e",700:"#44403c",800:"#292524",900:"#1c1917",950:"#0c0a09"},red:{50:"#fef2f2",100:"#fee2e2",200:"#fecaca",300:"#fca5a5",400:"#f87171",500:"#ef4444",600:"#dc2626",700:"#b91c1c",800:"#991b1b",900:"#7f1d1d",950:"#450a0a"},orange:{50:"#fff7ed",100:"#ffedd5",200:"#fed7aa",300:"#fdba74",400:"#fb923c",500:"#f97316",600:"#ea580c",700:"#c2410c",800:"#9a3412",900:"#7c2d12",950:"#431407"},amber:{50:"#fffbeb",100:"#fef3c7",200:"#fde68a",300:"#fcd34d",400:"#fbbf24",500:"#f59e0b",600:"#d97706",700:"#b45309",800:"#92400e",900:"#78350f",950:"#451a03"},yellow:{50:"#fefce8",100:"#fef9c3",200:"#fef08a",300:"#fde047",400:"#facc15",500:"#eab308",600:"#ca8a04",700:"#a16207",800:"#854d0e",900:"#713f12",950:"#422006"},lime:{50:"#f7fee7",100:"#ecfccb",200:"#d9f99d",300:"#bef264",400:"#a3e635",500:"#84cc16",600:"#65a30d",700:"#4d7c0f",800:"#3f6212",900:"#365314",950:"#1a2e05"},green:{50:"#f0fdf4",100:"#dcfce7",200:"#bbf7d0",300:"#86efac",400:"#4ade80",500:"#22c55e",600:"#16a34a",700:"#15803d",800:"#166534",900:"#14532d",950:"#052e16"},emerald:{50:"#ecfdf5",100:"#d1fae5",200:"#a7f3d0",300:"#6ee7b7",400:"#34d399",500:"#10b981",600:"#059669",700:"#047857",800:"#065f46",900:"#064e3b",950:"#022c22"},teal:{50:"#f0fdfa",100:"#ccfbf1",200:"#99f6e4",300:"#5eead4",400:"#2dd4bf",500:"#14b8a6",600:"#0d9488",700:"#0f766e",800:"#115e59",900:"#134e4a",950:"#042f2e"},cyan:{50:"#ecfeff",100:"#cffafe",200:"#a5f3fc",300:"#67e8f9",400:"#22d3ee",500:"#06b6d4",600:"#0891b2",700:"#0e7490",800:"#155e75",900:"#164e63",950:"#083344"},sky:{50:"#f0f9ff",100:"#e0f2fe",200:"#bae6fd",300:"#7dd3fc",400:"#38bdf8",500:"#0ea5e9",600:"#0284c7",700:"#0369a1",800:"#075985",900:"#0c4a6e",950:"#082f49"},blue:{50:"#eff6ff",100:"#dbeafe",200:"#bfdbfe",300:"#93c5fd",400:"#60a5fa",500:"#3b82f6",600:"#2563eb",700:"#1d4ed8",800:"#1e40af",900:"#1e3a8a",950:"#172554"},indigo:{50:"#eef2ff",100:"#e0e7ff",200:"#c7d2fe",300:"#a5b4fc",400:"#818cf8",500:"#6366f1",600:"#4f46e5",700:"#4338ca",800:"#3730a3",900:"#312e81",950:"#1e1b4b"},violet:{50:"#f5f3ff",100:"#ede9fe",200:"#ddd6fe",300:"#c4b5fd",400:"#a78bfa",500:"#8b5cf6",600:"#7c3aed",700:"#6d28d9",800:"#5b21b6",900:"#4c1d95",950:"#2e1065"},purple:{50:"#faf5ff",100:"#f3e8ff",200:"#e9d5ff",300:"#d8b4fe",400:"#c084fc",500:"#a855f7",600:"#9333ea",700:"#7e22ce",800:"#6b21a8",900:"#581c87",950:"#3b0764"},fuchsia:{50:"#fdf4ff",100:"#fae8ff",200:"#f5d0fe",300:"#f0abfc",400:"#e879f9",500:"#d946ef",600:"#c026d3",700:"#a21caf",800:"#86198f",900:"#701a75",950:"#4a044e"},pink:{50:"#fdf2f8",100:"#fce7f3",200:"#fbcfe8",300:"#f9a8d4",400:"#f472b6",500:"#ec4899",600:"#db2777",700:"#be185d",800:"#9d174d",900:"#831843",950:"#500724"},rose:{50:"#fff1f2",100:"#ffe4e6",200:"#fecdd3",300:"#fda4af",400:"#fb7185",500:"#f43f5e",600:"#e11d48",700:"#be123c",800:"#9f1239",900:"#881337",950:"#4c0519"},get lightBlue(){return r({version:"v2.2",from:"lightBlue",to:"sky"}),this.sky},get warmGray(){return r({version:"v3.0",from:"warmGray",to:"stone"}),this.stone},get trueGray(){return r({version:"v3.0",from:"trueGray",to:"neutral"}),this.neutral},get coolGray(){return r({version:"v3.0",from:"coolGray",to:"gray"}),this.gray},get blueGray(){return r({version:"v3.0",from:"blueGray",to:"slate"}),this.slate}}}(ew)),ew}var nw={},kP;function hG(){return kP||(kP=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"defaults",{enumerable:!0,get:function(){return t}});function t(n,...r){for(let a of r){for(let l in a){var i;!(n==null||(i=n.hasOwnProperty)===null||i===void 0)&&i.call(n,l)||(n[l]=a[l])}for(let l of Object.getOwnPropertySymbols(a)){var o;!(n==null||(o=n.hasOwnProperty)===null||o===void 0)&&o.call(n,l)||(n[l]=a[l])}}return n}}(nw)),nw}var rw={},jP;function pG(){return jP||(jP=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"toPath",{enumerable:!0,get:function(){return t}});function t(n){if(Array.isArray(n))return n;let r=n.split("[").length-1,i=n.split("]").length-1;if(r!==i)throw new Error(`Path is invalid. Has unbalanced brackets: ${n}`);return n.split(/\.(?![^\[]*\])|[\[\]]/g).filter(Boolean)}}(rw)),rw}var iw={},ow={},MP;function JC(){return MP||(MP=1,function(e){var t={};Object.defineProperty(e,"__esModule",{value:!0});function n(v,y){for(var w in y)Object.defineProperty(v,w,{enumerable:!0,get:y[w]})}n(e,{flagEnabled:function(){return c},issueFlagNotices:function(){return h},default:function(){return m}});const r=o(hI()),i=o(QC());function o(v){return v&&v.__esModule?v:{default:v}}let a={optimizeUniversalDefaults:!1,generalizedModifiers:!0,disableColorOpacityUtilitiesByDefault:!1,relativeContentPathsByDefault:!1},l={future:["hoverOnlyWhenSupported","respectDefaultRingColorOpacity","disableColorOpacityUtilitiesByDefault","relativeContentPathsByDefault"],experimental:["optimizeUniversalDefaults","generalizedModifiers"]};function c(v,y){if(l.future.includes(y)){var w,C,_;return v.future==="all"||((_=(C=v==null||(w=v.future)===null||w===void 0?void 0:w[y])!==null&&C!==void 0?C:a[y])!==null&&_!==void 0?_:!1)}if(l.experimental.includes(y)){var P,T,A;return v.experimental==="all"||((A=(T=v==null||(P=v.experimental)===null||P===void 0?void 0:P[y])!==null&&T!==void 0?T:a[y])!==null&&A!==void 0?A:!1)}return!1}function d(v){if(v.experimental==="all")return l.experimental;var y;return Object.keys((y=v==null?void 0:v.experimental)!==null&&y!==void 0?y:{}).filter(w=>l.experimental.includes(w)&&v.experimental[w])}function h(v){if(t.JEST_WORKER_ID===void 0&&d(v).length>0){let y=d(v).map(w=>r.default.yellow(w)).join(", ");i.default.warn("experimental-flags-enabled",[`You have enabled experimental features: ${y}`,"Experimental features in Tailwind CSS are not covered by semver, may introduce breaking changes, and can change at any time."])}}const m=l}(ow)),ow}var IP;function mG(){return IP||(IP=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"normalizeConfig",{enumerable:!0,get:function(){return o}});const t=JC(),n=i(QC());function r(a){if(typeof WeakMap!="function")return null;var l=new WeakMap,c=new WeakMap;return(r=function(d){return d?c:l})(a)}function i(a,l){if(a&&a.__esModule)return a;if(a===null||typeof a!="object"&&typeof a!="function")return{default:a};var c=r(l);if(c&&c.has(a))return c.get(a);var d={},h=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var m in a)if(m!=="default"&&Object.prototype.hasOwnProperty.call(a,m)){var v=h?Object.getOwnPropertyDescriptor(a,m):null;v&&(v.get||v.set)?Object.defineProperty(d,m,v):d[m]=a[m]}return d.default=a,c&&c.set(a,d),d}function o(a){if((()=>{if(a.purge||!a.content||!Array.isArray(a.content)&&!(typeof a.content=="object"&&a.content!==null))return!1;if(Array.isArray(a.content))return a.content.every(d=>typeof d=="string"?!0:!(typeof(d==null?void 0:d.raw)!="string"||d!=null&&d.extension&&typeof(d==null?void 0:d.extension)!="string"));if(typeof a.content=="object"&&a.content!==null){if(Object.keys(a.content).some(d=>!["files","relative","extract","transform"].includes(d)))return!1;if(Array.isArray(a.content.files)){if(!a.content.files.every(d=>typeof d=="string"?!0:!(typeof(d==null?void 0:d.raw)!="string"||d!=null&&d.extension&&typeof(d==null?void 0:d.extension)!="string")))return!1;if(typeof a.content.extract=="object"){for(let d of Object.values(a.content.extract))if(typeof d!="function")return!1}else if(!(a.content.extract===void 0||typeof a.content.extract=="function"))return!1;if(typeof a.content.transform=="object"){for(let d of Object.values(a.content.transform))if(typeof d!="function")return!1}else if(!(a.content.transform===void 0||typeof a.content.transform=="function"))return!1;if(typeof a.content.relative!="boolean"&&typeof a.content.relative<"u")return!1}return!0}return!1})()||n.default.warn("purge-deprecation",["The `purge`/`content` options have changed in Tailwind CSS v3.0.","Update your configuration file to eliminate this warning.","https://tailwindcss.com/docs/upgrade-guide#configure-content-sources"]),a.safelist=(()=>{var d;let{content:h,purge:m,safelist:v}=a;return Array.isArray(v)?v:Array.isArray(h==null?void 0:h.safelist)?h.safelist:Array.isArray(m==null?void 0:m.safelist)?m.safelist:Array.isArray(m==null||(d=m.options)===null||d===void 0?void 0:d.safelist)?m.options.safelist:[]})(),a.blocklist=(()=>{let{blocklist:d}=a;if(Array.isArray(d)){if(d.every(h=>typeof h=="string"))return d;n.default.warn("blocklist-invalid",["The `blocklist` option must be an array of strings.","https://tailwindcss.com/docs/content-configuration#discarding-classes"])}return[]})(),typeof a.prefix=="function")n.default.warn("prefix-function",["As of Tailwind CSS v3.0, `prefix` cannot be a function.","Update `prefix` in your configuration to be a string to eliminate this warning.","https://tailwindcss.com/docs/upgrade-guide#prefix-cannot-be-a-function"]),a.prefix="";else{var c;a.prefix=(c=a.prefix)!==null&&c!==void 0?c:""}a.content={relative:(()=>{let{content:d}=a;return d!=null&&d.relative?d.relative:(0,t.flagEnabled)(a,"relativeContentPathsByDefault")})(),files:(()=>{let{content:d,purge:h}=a;return Array.isArray(h)?h:Array.isArray(h==null?void 0:h.content)?h.content:Array.isArray(d)?d:Array.isArray(d==null?void 0:d.content)?d.content:Array.isArray(d==null?void 0:d.files)?d.files:[]})(),extract:(()=>{let d=(()=>{var v,y,w,C,_,P,T,A,I,M;return!((v=a.purge)===null||v===void 0)&&v.extract?a.purge.extract:!((y=a.content)===null||y===void 0)&&y.extract?a.content.extract:!((w=a.purge)===null||w===void 0||(C=w.extract)===null||C===void 0)&&C.DEFAULT?a.purge.extract.DEFAULT:!((_=a.content)===null||_===void 0||(P=_.extract)===null||P===void 0)&&P.DEFAULT?a.content.extract.DEFAULT:!((T=a.purge)===null||T===void 0||(A=T.options)===null||A===void 0)&&A.extractors?a.purge.options.extractors:!((I=a.content)===null||I===void 0||(M=I.options)===null||M===void 0)&&M.extractors?a.content.options.extractors:{}})(),h={},m=(()=>{var v,y,w,C;if(!((v=a.purge)===null||v===void 0||(y=v.options)===null||y===void 0)&&y.defaultExtractor)return a.purge.options.defaultExtractor;if(!((w=a.content)===null||w===void 0||(C=w.options)===null||C===void 0)&&C.defaultExtractor)return a.content.options.defaultExtractor})();if(m!==void 0&&(h.DEFAULT=m),typeof d=="function")h.DEFAULT=d;else if(Array.isArray(d))for(let{extensions:v,extractor:y}of d??[])for(let w of v)h[w]=y;else typeof d=="object"&&d!==null&&Object.assign(h,d);return h})(),transform:(()=>{let d=(()=>{var m,v,y,w,C,_;return!((m=a.purge)===null||m===void 0)&&m.transform?a.purge.transform:!((v=a.content)===null||v===void 0)&&v.transform?a.content.transform:!((y=a.purge)===null||y===void 0||(w=y.transform)===null||w===void 0)&&w.DEFAULT?a.purge.transform.DEFAULT:!((C=a.content)===null||C===void 0||(_=C.transform)===null||_===void 0)&&_.DEFAULT?a.content.transform.DEFAULT:{}})(),h={};return typeof d=="function"?h.DEFAULT=d:typeof d=="object"&&d!==null&&Object.assign(h,d),h})()};for(let d of a.content.files)if(typeof d=="string"&&/{([^,]*?)}/g.test(d)){n.default.warn("invalid-glob-braces",[`The glob pattern ${(0,n.dim)(d)} in your Tailwind CSS configuration is invalid.`,`Update it to ${(0,n.dim)(d.replace(/{([^,]*?)}/g,"$1"))} to silence this warning.`]);break}return a}}(iw)),iw}var aw={},NP;function gG(){return NP||(NP=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t}});function t(n){if(Object.prototype.toString.call(n)!=="[object Object]")return!1;const r=Object.getPrototypeOf(n);return r===null||Object.getPrototypeOf(r)===null}}(aw)),aw}var sw={},RP;function vG(){return RP||(RP=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"cloneDeep",{enumerable:!0,get:function(){return t}});function t(n){return Array.isArray(n)?n.map(r=>t(r)):typeof n=="object"&&n!==null?Object.fromEntries(Object.entries(n).map(([r,i])=>[r,t(i)])):n}}(sw)),sw}var lw={},uw={},LP;function yG(){return LP||(LP=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t}});function t(n){return n.replace(/\\,/g,"\\2c ")}}(uw)),uw}var cw={},fw={},dw={},DP;function xG(){return DP||(DP=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t}});const t={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}}(dw)),dw}var $P;function pI(){return $P||($P=1,function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(w,C){for(var _ in C)Object.defineProperty(w,_,{enumerable:!0,get:C[_]})}t(e,{parseColor:function(){return v},formatColor:function(){return y}});const n=r(xG());function r(w){return w&&w.__esModule?w:{default:w}}let i=/^#([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})?$/i,o=/^#([a-f\d])([a-f\d])([a-f\d])([a-f\d])?$/i,a=/(?:\d+|\d*\.\d+)%?/,l=/(?:\s*,\s*|\s+)/,c=/\s*[,/]\s*/,d=/var\(--(?:[^ )]*?)(?:,(?:[^ )]*?|var\(--[^ )]*?\)))?\)/,h=new RegExp(`^(rgba?)\\(\\s*(${a.source}|${d.source})(?:${l.source}(${a.source}|${d.source}))?(?:${l.source}(${a.source}|${d.source}))?(?:${c.source}(${a.source}|${d.source}))?\\s*\\)$`),m=new RegExp(`^(hsla?)\\(\\s*((?:${a.source})(?:deg|rad|grad|turn)?|${d.source})(?:${l.source}(${a.source}|${d.source}))?(?:${l.source}(${a.source}|${d.source}))?(?:${c.source}(${a.source}|${d.source}))?\\s*\\)$`);function v(w,{loose:C=!1}={}){var _,P;if(typeof w!="string")return null;if(w=w.trim(),w==="transparent")return{mode:"rgb",color:["0","0","0"],alpha:"0"};if(w in n.default)return{mode:"rgb",color:n.default[w].map(N=>N.toString())};let T=w.replace(o,(N,L,F,B,U)=>["#",L,L,F,F,B,B,U?U+U:""].join("")).match(i);if(T!==null)return{mode:"rgb",color:[parseInt(T[1],16),parseInt(T[2],16),parseInt(T[3],16)].map(N=>N.toString()),alpha:T[4]?(parseInt(T[4],16)/255).toString():void 0};var A;let I=(A=w.match(h))!==null&&A!==void 0?A:w.match(m);if(I===null)return null;let M=[I[2],I[3],I[4]].filter(Boolean).map(N=>N.toString());return M.length===2&&M[0].startsWith("var(")?{mode:I[1],color:[M[0]],alpha:M[1]}:!C&&M.length!==3||M.length<3&&!M.some(N=>/^var\(.*?\)$/.test(N))?null:{mode:I[1],color:M,alpha:(_=I[5])===null||_===void 0||(P=_.toString)===null||P===void 0?void 0:P.call(_)}}function y({mode:w,color:C,alpha:_}){let P=_!==void 0;return w==="rgba"||w==="hsla"?`${w}(${C.join(", ")}${P?`, ${_}`:""})`:`${w}(${C.join(" ")}${P?` / ${_}`:""})`}}(fw)),fw}var FP;function mI(){return FP||(FP=1,function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(o,a){for(var l in a)Object.defineProperty(o,l,{enumerable:!0,get:a[l]})}t(e,{withAlphaValue:function(){return r},default:function(){return i}});const n=pI();function r(o,a,l){if(typeof o=="function")return o({opacityValue:a});let c=(0,n.parseColor)(o,{loose:!0});return c===null?l:(0,n.formatColor)({...c,alpha:a})}function i({color:o,property:a,variable:l}){let c=[].concat(a);if(typeof o=="function")return{[l]:"1",...Object.fromEntries(c.map(h=>[h,o({opacityVariable:l,opacityValue:`var(${l}, 1)`})]))};const d=(0,n.parseColor)(o);return d===null?Object.fromEntries(c.map(h=>[h,o])):d.alpha!==void 0?Object.fromEntries(c.map(h=>[h,o])):{[l]:"1",...Object.fromEntries(c.map(h=>[h,(0,n.formatColor)({...d,alpha:`var(${l}, 1)`})]))}}}(cw)),cw}var hw={},pw={},mw={},BP;function eE(){return BP||(BP=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"splitAtTopLevelOnly",{enumerable:!0,get:function(){return t}});function t(n,r){let i=[],o=[],a=0,l=!1;for(let c=0;c{let m=h.trim(),v={raw:m},y=m.split(i),w=new Set;for(let C of y)o.lastIndex=0,!w.has("KEYWORD")&&r.has(C)?(v.keyword=C,w.add("KEYWORD")):o.test(C)?w.has("X")?w.has("Y")?w.has("BLUR")?w.has("SPREAD")||(v.spread=C,w.add("SPREAD")):(v.blur=C,w.add("BLUR")):(v.y=C,w.add("Y")):(v.x=C,w.add("X")):v.color?(v.unknown||(v.unknown=[]),v.unknown.push(C)):v.color=C;return v.valid=v.x!==void 0&&v.y!==void 0,v})}function l(c){return c.map(d=>d.valid?[d.keyword,d.x,d.y,d.blur,d.spread,d.color].filter(Boolean).join(" "):d.raw).join(", ")}}(pw)),pw}var zP;function gI(){return zP||(zP=1,function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(q,H){for(var Z in H)Object.defineProperty(q,Z,{enumerable:!0,get:H[Z]})}t(e,{normalize:function(){return c},normalizeAttributeSelectors:function(){return d},url:function(){return m},number:function(){return v},percentage:function(){return y},length:function(){return _},lineWidth:function(){return T},shadow:function(){return A},color:function(){return I},image:function(){return M},gradient:function(){return L},position:function(){return B},familyName:function(){return U},genericName:function(){return G},absoluteSize:function(){return te},relativeSize:function(){return le}});const n=pI(),r=bG(),i=eE();let o=["min","max","clamp","calc"];function a(q){return o.some(H=>new RegExp(`^${H}\\(.*\\)`).test(q))}const l=new Set(["scroll-timeline-name","timeline-scope","view-timeline-name","font-palette","anchor-name","anchor-scope","position-anchor","position-try-options","scroll-timeline","animation-timeline","view-timeline","position-try"]);function c(q,H=null,Z=!0){let X=H&&l.has(H.property);return q.startsWith("--")&&!X?`var(${q})`:q.includes("url(")?q.split(/(url\(.*?\))/g).filter(Boolean).map(z=>/^url\(.*?\)$/.test(z)?z:c(z,H,!1)).join(""):(q=q.replace(/([^\\])_+/g,(z,J)=>J+" ".repeat(z.length-1)).replace(/^_/g," ").replace(/\\_/g,"_"),Z&&(q=q.trim()),q=h(q),q)}function d(q){return q.includes("=")&&(q=q.replace(/(=.*)/g,(H,Z)=>{if(Z[1]==="'"||Z[1]==='"')return Z;if(Z.length>2){let X=Z[Z.length-1];if(Z[Z.length-2]===" "&&(X==="i"||X==="I"||X==="s"||X==="S"))return`="${Z.slice(1,-2)}" ${Z[Z.length-1]}`}return`="${Z.slice(1)}"`})),q}function h(q){let H=["theme"],Z=["min-content","max-content","fit-content","safe-area-inset-top","safe-area-inset-right","safe-area-inset-bottom","safe-area-inset-left","titlebar-area-x","titlebar-area-y","titlebar-area-width","titlebar-area-height","keyboard-inset-top","keyboard-inset-right","keyboard-inset-bottom","keyboard-inset-left","keyboard-inset-width","keyboard-inset-height","radial-gradient","linear-gradient","conic-gradient","repeating-radial-gradient","repeating-linear-gradient","repeating-conic-gradient","anchor-size"];return q.replace(/(calc|min|max|clamp)\(.+\)/g,X=>{let z="";function J(){let we=z.trimEnd();return we[we.length-1]}for(let we=0;weX[we+Ce]===be)},re=function(oe){let be=1/0;for(let fe of oe){let De=X.indexOf(fe,we);De!==-1&&Deje(oe))){let oe=Z.find(be=>je(be));z+=oe,we+=oe.length-1}else H.some(oe=>je(oe))?z+=re([")"]):je("[")?z+=re(["]"]):["+","-","*","/"].includes(he)&&!["(","+","-","*","/",","].includes(J())?z+=` ${he} `:z+=he}return z.replace(/\s+/g," ")})}function m(q){return q.startsWith("url(")}function v(q){return!isNaN(Number(q))||a(q)}function y(q){return q.endsWith("%")&&v(q.slice(0,-1))||a(q)}let C=`(?:${["cm","mm","Q","in","pc","pt","px","em","ex","ch","rem","lh","rlh","vw","vh","vmin","vmax","vb","vi","svw","svh","lvw","lvh","dvw","dvh","cqw","cqh","cqi","cqb","cqmin","cqmax"].join("|")})`;function _(q){return q==="0"||new RegExp(`^[+-]?[0-9]*.?[0-9]+(?:[eE][+-]?[0-9]+)?${C}$`).test(q)||a(q)}let P=new Set(["thin","medium","thick"]);function T(q){return P.has(q)}function A(q){let H=(0,r.parseBoxShadowValue)(c(q));for(let Z of H)if(!Z.valid)return!1;return!0}function I(q){let H=0;return(0,i.splitAtTopLevelOnly)(q,"_").every(X=>(X=c(X),X.startsWith("var(")?!0:(0,n.parseColor)(X,{loose:!0})!==null?(H++,!0):!1))?H>0:!1}function M(q){let H=0;return(0,i.splitAtTopLevelOnly)(q,",").every(X=>(X=c(X),X.startsWith("var(")?!0:m(X)||L(X)||["element(","image(","cross-fade(","image-set("].some(z=>X.startsWith(z))?(H++,!0):!1))?H>0:!1}let N=new Set(["conic-gradient","linear-gradient","radial-gradient","repeating-conic-gradient","repeating-linear-gradient","repeating-radial-gradient"]);function L(q){q=c(q);for(let H of N)if(q.startsWith(`${H}(`))return!0;return!1}let F=new Set(["center","top","right","bottom","left"]);function B(q){let H=0;return(0,i.splitAtTopLevelOnly)(q,"_").every(X=>(X=c(X),X.startsWith("var(")?!0:F.has(X)||_(X)||y(X)?(H++,!0):!1))?H>0:!1}function U(q){let H=0;return(0,i.splitAtTopLevelOnly)(q,",").every(X=>(X=c(X),X.startsWith("var(")?!0:X.includes(" ")&&!/(['"])([^"']+)\1/g.test(X)||/^\d/g.test(X)?!1:(H++,!0)))?H>0:!1}let W=new Set(["serif","sans-serif","monospace","cursive","fantasy","system-ui","ui-serif","ui-sans-serif","ui-monospace","ui-rounded","math","emoji","fangsong"]);function G(q){return W.has(q)}let ie=new Set(["xx-small","x-small","small","medium","large","x-large","xx-large","xxx-large"]);function te(q){return ie.has(q)}let se=new Set(["larger","smaller"]);function le(q){return se.has(q)}}(hw)),hw}var gw={},UP;function wG(){return UP||(UP=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"backgroundSize",{enumerable:!0,get:function(){return r}});const t=gI(),n=eE();function r(i){let o=["cover","contain"];return(0,n.splitAtTopLevelOnly)(i,",").every(a=>{let l=(0,n.splitAtTopLevelOnly)(a,"_").filter(Boolean);return l.length===1&&o.includes(l[0])?!0:l.length!==1&&l.length!==2?!1:l.every(c=>(0,t.length)(c)||(0,t.percentage)(c)||c==="auto")})}}(gw)),gw}var WP;function SG(){return WP||(WP=1,function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(B,U){for(var W in U)Object.defineProperty(B,W,{enumerable:!0,get:U[W]})}t(e,{updateAllClasses:function(){return d},asValue:function(){return v},parseColorFormat:function(){return C},asColor:function(){return P},asLookupValue:function(){return T},typeMap:function(){return I},coerceValue:function(){return L},getMatchingTypes:function(){return F}});const n=c(yG()),r=mI(),i=gI(),o=c(dI()),a=wG(),l=JC();function c(B){return B&&B.__esModule?B:{default:B}}function d(B,U){B.walkClasses(W=>{W.value=U(W.value),W.raws&&W.raws.value&&(W.raws.value=(0,n.default)(W.raws.value))})}function h(B,U){if(!y(B))return;let W=B.slice(1,-1);if(U(W))return(0,i.normalize)(W)}function m(B,U={},W){let G=U[B];if(G!==void 0)return(0,o.default)(G);if(y(B)){let ie=h(B,W);return ie===void 0?void 0:(0,o.default)(ie)}}function v(B,U={},{validate:W=()=>!0}={}){var G;let ie=(G=U.values)===null||G===void 0?void 0:G[B];return ie!==void 0?ie:U.supportsNegativeValues&&B.startsWith("-")?m(B.slice(1),U.values,W):h(B,W)}function y(B){return B.startsWith("[")&&B.endsWith("]")}function w(B){let U=B.lastIndexOf("/"),W=B.lastIndexOf("[",U),G=B.indexOf("]",U);return B[U-1]==="]"||B[U+1]==="["||W!==-1&&G!==-1&&W")){let U=B;return({opacityValue:W=1})=>U.replace(//g,W)}return B}function _(B){return(0,i.normalize)(B.slice(1,-1))}function P(B,U={},{tailwindConfig:W={}}={}){var G;if(((G=U.values)===null||G===void 0?void 0:G[B])!==void 0){var ie;return C((ie=U.values)===null||ie===void 0?void 0:ie[B])}let[te,se]=w(B);if(se!==void 0){var le,q,H,Z;let X=(Z=(le=U.values)===null||le===void 0?void 0:le[te])!==null&&Z!==void 0?Z:y(te)?te.slice(1,-1):void 0;return X===void 0?void 0:(X=C(X),y(se)?(0,r.withAlphaValue)(X,_(se)):((q=W.theme)===null||q===void 0||(H=q.opacity)===null||H===void 0?void 0:H[se])===void 0?void 0:(0,r.withAlphaValue)(X,W.theme.opacity[se]))}return v(B,U,{validate:i.color})}function T(B,U={}){var W;return(W=U.values)===null||W===void 0?void 0:W[B]}function A(B){return(U,W)=>v(U,W,{validate:B})}let I={any:v,color:P,url:A(i.url),image:A(i.image),length:A(i.length),percentage:A(i.percentage),position:A(i.position),lookup:T,"generic-name":A(i.genericName),"family-name":A(i.familyName),number:A(i.number),"line-width":A(i.lineWidth),"absolute-size":A(i.absoluteSize),"relative-size":A(i.relativeSize),shadow:A(i.shadow),size:A(a.backgroundSize)},M=Object.keys(I);function N(B,U){let W=B.indexOf(U);return W===-1?[void 0,B]:[B.slice(0,W),B.slice(W+1)]}function L(B,U,W,G){if(W.values&&U in W.values)for(let{type:te}of B??[]){let se=I[te](U,W,{tailwindConfig:G});if(se!==void 0)return[se,te,null]}if(y(U)){let te=U.slice(1,-1),[se,le]=N(te,":");if(!/^[\w-_]+$/g.test(se))le=te;else if(se!==void 0&&!M.includes(se))return[];if(le.length>0&&M.includes(se))return[v(`[${le}]`,W),se,null]}let ie=F(B,U,W,G);for(let te of ie)return te;return[]}function*F(B,U,W,G){let ie=(0,l.flagEnabled)(G,"generalizedModifiers"),[te,se]=w(U);if(ie&&W.modifiers!=null&&(W.modifiers==="any"||typeof W.modifiers=="object"&&(se&&y(se)||se in W.modifiers))||(te=U,se=void 0),se!==void 0&&te===""&&(te="DEFAULT"),se!==void 0&&typeof W.modifiers=="object"){var q,H;let Z=(H=(q=W.modifiers)===null||q===void 0?void 0:q[se])!==null&&H!==void 0?H:null;Z!==null?se=Z:y(se)&&(se=_(se))}for(let{type:Z}of B??[]){let X=I[Z](te,W,{tailwindConfig:G});X!==void 0&&(yield[X,Z,se??null])}}}(lw)),lw}var vw={},HP;function _G(){return HP||(HP=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t}});function t(n){return typeof n=="function"?n({}):n}}(vw)),vw}var qP;function CG(){return qP||(qP=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return W}});const t=y(dI()),n=y(cG()),r=y(fG()),i=y(dG()),o=hG(),a=pG(),l=mG(),c=y(gG()),d=vG(),h=SG(),m=mI(),v=y(_G());function y(G){return G&&G.__esModule?G:{default:G}}function w(G){return typeof G=="function"}function C(G,...ie){let te=ie.pop();for(let se of ie)for(let le in se){let q=te(G[le],se[le]);q===void 0?(0,c.default)(G[le])&&(0,c.default)(se[le])?G[le]=C({},G[le],se[le],te):G[le]=se[le]:G[le]=q}return G}const _={colors:i.default,negative(G){return Object.keys(G).filter(ie=>G[ie]!=="0").reduce((ie,te)=>{let se=(0,t.default)(G[te]);return se!==void 0&&(ie[`-${te}`]=se),ie},{})},breakpoints(G){return Object.keys(G).filter(ie=>typeof G[ie]=="string").reduce((ie,te)=>({...ie,[`screen-${te}`]:G[te]}),{})}};function P(G,...ie){return w(G)?G(...ie):G}function T(G){return G.reduce((ie,{extend:te})=>C(ie,te,(se,le)=>se===void 0?[le]:Array.isArray(se)?[le,...se]:[le,se]),{})}function A(G){return{...G.reduce((ie,te)=>(0,o.defaults)(ie,te),{}),extend:T(G)}}function I(G,ie){if(Array.isArray(G)&&(0,c.default)(G[0]))return G.concat(ie);if(Array.isArray(ie)&&(0,c.default)(ie[0])&&(0,c.default)(G))return[G,...ie];if(Array.isArray(ie))return ie}function M({extend:G,...ie}){return C(ie,G,(te,se)=>!w(te)&&!se.some(w)?C({},te,...se,I):(le,q)=>C({},...[te,...se].map(H=>P(H,le,q)),I))}function*N(G){let ie=(0,a.toPath)(G);if(ie.length===0||(yield ie,Array.isArray(G)))return;let te=/^(.*?)\s*\/\s*([^/]+)$/,se=G.match(te);if(se!==null){let[,le,q]=se,H=(0,a.toPath)(le);H.alpha=q,yield H}}function L(G){const ie=(te,se)=>{for(const le of N(te)){let q=0,H=G;for(;H!=null&&q(te[se]=w(G[se])?G[se](ie,_):G[se],te),{})}function F(G){let ie=[];return G.forEach(te=>{ie=[...ie,te];var se;const le=(se=te==null?void 0:te.plugins)!==null&&se!==void 0?se:[];le.length!==0&&le.forEach(q=>{q.__isOptionsFunction&&(q=q());var H;ie=[...ie,...F([(H=q==null?void 0:q.config)!==null&&H!==void 0?H:{}])]})}),ie}function B(G){return[...G].reduceRight((te,se)=>w(se)?se({corePlugins:te}):(0,r.default)(se,te),n.default)}function U(G){return[...G].reduceRight((te,se)=>[...te,...se],[])}function W(G){let ie=[...F(G),{prefix:"",important:!1,separator:":"}];var te,se;return(0,l.normalizeConfig)((0,o.defaults)({theme:L(M(A(ie.map(le=>(te=le==null?void 0:le.theme)!==null&&te!==void 0?te:{})))),corePlugins:B(ie.map(le=>le.corePlugins)),plugins:U(G.map(le=>(se=le==null?void 0:le.plugins)!==null&&se!==void 0?se:[]))},...ie))}}(Zb)),Zb}var yw={},xw,KP;function EG(){return KP||(KP=1,xw={content:[],presets:[],darkMode:"media",theme:{accentColor:({theme:e})=>({...e("colors"),auto:"auto"}),animation:{none:"none",spin:"spin 1s linear infinite",ping:"ping 1s cubic-bezier(0, 0, 0.2, 1) infinite",pulse:"pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite",bounce:"bounce 1s infinite"},aria:{busy:'busy="true"',checked:'checked="true"',disabled:'disabled="true"',expanded:'expanded="true"',hidden:'hidden="true"',pressed:'pressed="true"',readonly:'readonly="true"',required:'required="true"',selected:'selected="true"'},aspectRatio:{auto:"auto",square:"1 / 1",video:"16 / 9"},backdropBlur:({theme:e})=>e("blur"),backdropBrightness:({theme:e})=>e("brightness"),backdropContrast:({theme:e})=>e("contrast"),backdropGrayscale:({theme:e})=>e("grayscale"),backdropHueRotate:({theme:e})=>e("hueRotate"),backdropInvert:({theme:e})=>e("invert"),backdropOpacity:({theme:e})=>e("opacity"),backdropSaturate:({theme:e})=>e("saturate"),backdropSepia:({theme:e})=>e("sepia"),backgroundColor:({theme:e})=>e("colors"),backgroundImage:{none:"none","gradient-to-t":"linear-gradient(to top, var(--tw-gradient-stops))","gradient-to-tr":"linear-gradient(to top right, var(--tw-gradient-stops))","gradient-to-r":"linear-gradient(to right, var(--tw-gradient-stops))","gradient-to-br":"linear-gradient(to bottom right, var(--tw-gradient-stops))","gradient-to-b":"linear-gradient(to bottom, var(--tw-gradient-stops))","gradient-to-bl":"linear-gradient(to bottom left, var(--tw-gradient-stops))","gradient-to-l":"linear-gradient(to left, var(--tw-gradient-stops))","gradient-to-tl":"linear-gradient(to top left, var(--tw-gradient-stops))"},backgroundOpacity:({theme:e})=>e("opacity"),backgroundPosition:{bottom:"bottom",center:"center",left:"left","left-bottom":"left bottom","left-top":"left top",right:"right","right-bottom":"right bottom","right-top":"right top",top:"top"},backgroundSize:{auto:"auto",cover:"cover",contain:"contain"},blur:{0:"0",none:"",sm:"4px",DEFAULT:"8px",md:"12px",lg:"16px",xl:"24px","2xl":"40px","3xl":"64px"},borderColor:({theme:e})=>({...e("colors"),DEFAULT:e("colors.gray.200","currentColor")}),borderOpacity:({theme:e})=>e("opacity"),borderRadius:{none:"0px",sm:"0.125rem",DEFAULT:"0.25rem",md:"0.375rem",lg:"0.5rem",xl:"0.75rem","2xl":"1rem","3xl":"1.5rem",full:"9999px"},borderSpacing:({theme:e})=>({...e("spacing")}),borderWidth:{DEFAULT:"1px",0:"0px",2:"2px",4:"4px",8:"8px"},boxShadow:{sm:"0 1px 2px 0 rgb(0 0 0 / 0.05)",DEFAULT:"0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1)",md:"0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1)",lg:"0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1)",xl:"0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1)","2xl":"0 25px 50px -12px rgb(0 0 0 / 0.25)",inner:"inset 0 2px 4px 0 rgb(0 0 0 / 0.05)",none:"none"},boxShadowColor:({theme:e})=>e("colors"),brightness:{0:"0",50:".5",75:".75",90:".9",95:".95",100:"1",105:"1.05",110:"1.1",125:"1.25",150:"1.5",200:"2"},caretColor:({theme:e})=>e("colors"),colors:({colors:e})=>({inherit:e.inherit,current:e.current,transparent:e.transparent,black:e.black,white:e.white,slate:e.slate,gray:e.gray,zinc:e.zinc,neutral:e.neutral,stone:e.stone,red:e.red,orange:e.orange,amber:e.amber,yellow:e.yellow,lime:e.lime,green:e.green,emerald:e.emerald,teal:e.teal,cyan:e.cyan,sky:e.sky,blue:e.blue,indigo:e.indigo,violet:e.violet,purple:e.purple,fuchsia:e.fuchsia,pink:e.pink,rose:e.rose}),columns:{auto:"auto",1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9",10:"10",11:"11",12:"12","3xs":"16rem","2xs":"18rem",xs:"20rem",sm:"24rem",md:"28rem",lg:"32rem",xl:"36rem","2xl":"42rem","3xl":"48rem","4xl":"56rem","5xl":"64rem","6xl":"72rem","7xl":"80rem"},container:{},content:{none:"none"},contrast:{0:"0",50:".5",75:".75",100:"1",125:"1.25",150:"1.5",200:"2"},cursor:{auto:"auto",default:"default",pointer:"pointer",wait:"wait",text:"text",move:"move",help:"help","not-allowed":"not-allowed",none:"none","context-menu":"context-menu",progress:"progress",cell:"cell",crosshair:"crosshair","vertical-text":"vertical-text",alias:"alias",copy:"copy","no-drop":"no-drop",grab:"grab",grabbing:"grabbing","all-scroll":"all-scroll","col-resize":"col-resize","row-resize":"row-resize","n-resize":"n-resize","e-resize":"e-resize","s-resize":"s-resize","w-resize":"w-resize","ne-resize":"ne-resize","nw-resize":"nw-resize","se-resize":"se-resize","sw-resize":"sw-resize","ew-resize":"ew-resize","ns-resize":"ns-resize","nesw-resize":"nesw-resize","nwse-resize":"nwse-resize","zoom-in":"zoom-in","zoom-out":"zoom-out"},divideColor:({theme:e})=>e("borderColor"),divideOpacity:({theme:e})=>e("borderOpacity"),divideWidth:({theme:e})=>e("borderWidth"),dropShadow:{sm:"0 1px 1px rgb(0 0 0 / 0.05)",DEFAULT:["0 1px 2px rgb(0 0 0 / 0.1)","0 1px 1px rgb(0 0 0 / 0.06)"],md:["0 4px 3px rgb(0 0 0 / 0.07)","0 2px 2px rgb(0 0 0 / 0.06)"],lg:["0 10px 8px rgb(0 0 0 / 0.04)","0 4px 3px rgb(0 0 0 / 0.1)"],xl:["0 20px 13px rgb(0 0 0 / 0.03)","0 8px 5px rgb(0 0 0 / 0.08)"],"2xl":"0 25px 25px rgb(0 0 0 / 0.15)",none:"0 0 #0000"},fill:({theme:e})=>({none:"none",...e("colors")}),flex:{1:"1 1 0%",auto:"1 1 auto",initial:"0 1 auto",none:"none"},flexBasis:({theme:e})=>({auto:"auto",...e("spacing"),"1/2":"50%","1/3":"33.333333%","2/3":"66.666667%","1/4":"25%","2/4":"50%","3/4":"75%","1/5":"20%","2/5":"40%","3/5":"60%","4/5":"80%","1/6":"16.666667%","2/6":"33.333333%","3/6":"50%","4/6":"66.666667%","5/6":"83.333333%","1/12":"8.333333%","2/12":"16.666667%","3/12":"25%","4/12":"33.333333%","5/12":"41.666667%","6/12":"50%","7/12":"58.333333%","8/12":"66.666667%","9/12":"75%","10/12":"83.333333%","11/12":"91.666667%",full:"100%"}),flexGrow:{0:"0",DEFAULT:"1"},flexShrink:{0:"0",DEFAULT:"1"},fontFamily:{sans:["ui-sans-serif","system-ui","sans-serif",'"Apple Color Emoji"','"Segoe UI Emoji"','"Segoe UI Symbol"','"Noto Color Emoji"'],serif:["ui-serif","Georgia","Cambria",'"Times New Roman"',"Times","serif"],mono:["ui-monospace","SFMono-Regular","Menlo","Monaco","Consolas",'"Liberation Mono"','"Courier New"',"monospace"]},fontSize:{xs:["0.75rem",{lineHeight:"1rem"}],sm:["0.875rem",{lineHeight:"1.25rem"}],base:["1rem",{lineHeight:"1.5rem"}],lg:["1.125rem",{lineHeight:"1.75rem"}],xl:["1.25rem",{lineHeight:"1.75rem"}],"2xl":["1.5rem",{lineHeight:"2rem"}],"3xl":["1.875rem",{lineHeight:"2.25rem"}],"4xl":["2.25rem",{lineHeight:"2.5rem"}],"5xl":["3rem",{lineHeight:"1"}],"6xl":["3.75rem",{lineHeight:"1"}],"7xl":["4.5rem",{lineHeight:"1"}],"8xl":["6rem",{lineHeight:"1"}],"9xl":["8rem",{lineHeight:"1"}]},fontWeight:{thin:"100",extralight:"200",light:"300",normal:"400",medium:"500",semibold:"600",bold:"700",extrabold:"800",black:"900"},gap:({theme:e})=>e("spacing"),gradientColorStops:({theme:e})=>e("colors"),gradientColorStopPositions:{"0%":"0%","5%":"5%","10%":"10%","15%":"15%","20%":"20%","25%":"25%","30%":"30%","35%":"35%","40%":"40%","45%":"45%","50%":"50%","55%":"55%","60%":"60%","65%":"65%","70%":"70%","75%":"75%","80%":"80%","85%":"85%","90%":"90%","95%":"95%","100%":"100%"},grayscale:{0:"0",DEFAULT:"100%"},gridAutoColumns:{auto:"auto",min:"min-content",max:"max-content",fr:"minmax(0, 1fr)"},gridAutoRows:{auto:"auto",min:"min-content",max:"max-content",fr:"minmax(0, 1fr)"},gridColumn:{auto:"auto","span-1":"span 1 / span 1","span-2":"span 2 / span 2","span-3":"span 3 / span 3","span-4":"span 4 / span 4","span-5":"span 5 / span 5","span-6":"span 6 / span 6","span-7":"span 7 / span 7","span-8":"span 8 / span 8","span-9":"span 9 / span 9","span-10":"span 10 / span 10","span-11":"span 11 / span 11","span-12":"span 12 / span 12","span-full":"1 / -1"},gridColumnEnd:{auto:"auto",1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9",10:"10",11:"11",12:"12",13:"13"},gridColumnStart:{auto:"auto",1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9",10:"10",11:"11",12:"12",13:"13"},gridRow:{auto:"auto","span-1":"span 1 / span 1","span-2":"span 2 / span 2","span-3":"span 3 / span 3","span-4":"span 4 / span 4","span-5":"span 5 / span 5","span-6":"span 6 / span 6","span-7":"span 7 / span 7","span-8":"span 8 / span 8","span-9":"span 9 / span 9","span-10":"span 10 / span 10","span-11":"span 11 / span 11","span-12":"span 12 / span 12","span-full":"1 / -1"},gridRowEnd:{auto:"auto",1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9",10:"10",11:"11",12:"12",13:"13"},gridRowStart:{auto:"auto",1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9",10:"10",11:"11",12:"12",13:"13"},gridTemplateColumns:{none:"none",subgrid:"subgrid",1:"repeat(1, minmax(0, 1fr))",2:"repeat(2, minmax(0, 1fr))",3:"repeat(3, minmax(0, 1fr))",4:"repeat(4, minmax(0, 1fr))",5:"repeat(5, minmax(0, 1fr))",6:"repeat(6, minmax(0, 1fr))",7:"repeat(7, minmax(0, 1fr))",8:"repeat(8, minmax(0, 1fr))",9:"repeat(9, minmax(0, 1fr))",10:"repeat(10, minmax(0, 1fr))",11:"repeat(11, minmax(0, 1fr))",12:"repeat(12, minmax(0, 1fr))"},gridTemplateRows:{none:"none",subgrid:"subgrid",1:"repeat(1, minmax(0, 1fr))",2:"repeat(2, minmax(0, 1fr))",3:"repeat(3, minmax(0, 1fr))",4:"repeat(4, minmax(0, 1fr))",5:"repeat(5, minmax(0, 1fr))",6:"repeat(6, minmax(0, 1fr))",7:"repeat(7, minmax(0, 1fr))",8:"repeat(8, minmax(0, 1fr))",9:"repeat(9, minmax(0, 1fr))",10:"repeat(10, minmax(0, 1fr))",11:"repeat(11, minmax(0, 1fr))",12:"repeat(12, minmax(0, 1fr))"},height:({theme:e})=>({auto:"auto",...e("spacing"),"1/2":"50%","1/3":"33.333333%","2/3":"66.666667%","1/4":"25%","2/4":"50%","3/4":"75%","1/5":"20%","2/5":"40%","3/5":"60%","4/5":"80%","1/6":"16.666667%","2/6":"33.333333%","3/6":"50%","4/6":"66.666667%","5/6":"83.333333%",full:"100%",screen:"100vh",svh:"100svh",lvh:"100lvh",dvh:"100dvh",min:"min-content",max:"max-content",fit:"fit-content"}),hueRotate:{0:"0deg",15:"15deg",30:"30deg",60:"60deg",90:"90deg",180:"180deg"},inset:({theme:e})=>({auto:"auto",...e("spacing"),"1/2":"50%","1/3":"33.333333%","2/3":"66.666667%","1/4":"25%","2/4":"50%","3/4":"75%",full:"100%"}),invert:{0:"0",DEFAULT:"100%"},keyframes:{spin:{to:{transform:"rotate(360deg)"}},ping:{"75%, 100%":{transform:"scale(2)",opacity:"0"}},pulse:{"50%":{opacity:".5"}},bounce:{"0%, 100%":{transform:"translateY(-25%)",animationTimingFunction:"cubic-bezier(0.8,0,1,1)"},"50%":{transform:"none",animationTimingFunction:"cubic-bezier(0,0,0.2,1)"}}},letterSpacing:{tighter:"-0.05em",tight:"-0.025em",normal:"0em",wide:"0.025em",wider:"0.05em",widest:"0.1em"},lineHeight:{none:"1",tight:"1.25",snug:"1.375",normal:"1.5",relaxed:"1.625",loose:"2",3:".75rem",4:"1rem",5:"1.25rem",6:"1.5rem",7:"1.75rem",8:"2rem",9:"2.25rem",10:"2.5rem"},listStyleType:{none:"none",disc:"disc",decimal:"decimal"},listStyleImage:{none:"none"},margin:({theme:e})=>({auto:"auto",...e("spacing")}),lineClamp:{1:"1",2:"2",3:"3",4:"4",5:"5",6:"6"},maxHeight:({theme:e})=>({...e("spacing"),none:"none",full:"100%",screen:"100vh",svh:"100svh",lvh:"100lvh",dvh:"100dvh",min:"min-content",max:"max-content",fit:"fit-content"}),maxWidth:({theme:e,breakpoints:t})=>({...e("spacing"),none:"none",xs:"20rem",sm:"24rem",md:"28rem",lg:"32rem",xl:"36rem","2xl":"42rem","3xl":"48rem","4xl":"56rem","5xl":"64rem","6xl":"72rem","7xl":"80rem",full:"100%",min:"min-content",max:"max-content",fit:"fit-content",prose:"65ch",...t(e("screens"))}),minHeight:({theme:e})=>({...e("spacing"),full:"100%",screen:"100vh",svh:"100svh",lvh:"100lvh",dvh:"100dvh",min:"min-content",max:"max-content",fit:"fit-content"}),minWidth:({theme:e})=>({...e("spacing"),full:"100%",min:"min-content",max:"max-content",fit:"fit-content"}),objectPosition:{bottom:"bottom",center:"center",left:"left","left-bottom":"left bottom","left-top":"left top",right:"right","right-bottom":"right bottom","right-top":"right top",top:"top"},opacity:{0:"0",5:"0.05",10:"0.1",15:"0.15",20:"0.2",25:"0.25",30:"0.3",35:"0.35",40:"0.4",45:"0.45",50:"0.5",55:"0.55",60:"0.6",65:"0.65",70:"0.7",75:"0.75",80:"0.8",85:"0.85",90:"0.9",95:"0.95",100:"1"},order:{first:"-9999",last:"9999",none:"0",1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9",10:"10",11:"11",12:"12"},outlineColor:({theme:e})=>e("colors"),outlineOffset:{0:"0px",1:"1px",2:"2px",4:"4px",8:"8px"},outlineWidth:{0:"0px",1:"1px",2:"2px",4:"4px",8:"8px"},padding:({theme:e})=>e("spacing"),placeholderColor:({theme:e})=>e("colors"),placeholderOpacity:({theme:e})=>e("opacity"),ringColor:({theme:e})=>({DEFAULT:e("colors.blue.500","#3b82f6"),...e("colors")}),ringOffsetColor:({theme:e})=>e("colors"),ringOffsetWidth:{0:"0px",1:"1px",2:"2px",4:"4px",8:"8px"},ringOpacity:({theme:e})=>({DEFAULT:"0.5",...e("opacity")}),ringWidth:{DEFAULT:"3px",0:"0px",1:"1px",2:"2px",4:"4px",8:"8px"},rotate:{0:"0deg",1:"1deg",2:"2deg",3:"3deg",6:"6deg",12:"12deg",45:"45deg",90:"90deg",180:"180deg"},saturate:{0:"0",50:".5",100:"1",150:"1.5",200:"2"},scale:{0:"0",50:".5",75:".75",90:".9",95:".95",100:"1",105:"1.05",110:"1.1",125:"1.25",150:"1.5"},screens:{sm:"640px",md:"768px",lg:"1024px",xl:"1280px","2xl":"1536px"},scrollMargin:({theme:e})=>({...e("spacing")}),scrollPadding:({theme:e})=>e("spacing"),sepia:{0:"0",DEFAULT:"100%"},skew:{0:"0deg",1:"1deg",2:"2deg",3:"3deg",6:"6deg",12:"12deg"},space:({theme:e})=>({...e("spacing")}),spacing:{px:"1px",0:"0px",.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",11:"2.75rem",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"},stroke:({theme:e})=>({none:"none",...e("colors")}),strokeWidth:{0:"0",1:"1",2:"2"},supports:{},data:{},textColor:({theme:e})=>e("colors"),textDecorationColor:({theme:e})=>e("colors"),textDecorationThickness:{auto:"auto","from-font":"from-font",0:"0px",1:"1px",2:"2px",4:"4px",8:"8px"},textIndent:({theme:e})=>({...e("spacing")}),textOpacity:({theme:e})=>e("opacity"),textUnderlineOffset:{auto:"auto",0:"0px",1:"1px",2:"2px",4:"4px",8:"8px"},transformOrigin:{center:"center",top:"top","top-right":"top right",right:"right","bottom-right":"bottom right",bottom:"bottom","bottom-left":"bottom left",left:"left","top-left":"top left"},transitionDelay:{0:"0s",75:"75ms",100:"100ms",150:"150ms",200:"200ms",300:"300ms",500:"500ms",700:"700ms",1e3:"1000ms"},transitionDuration:{DEFAULT:"150ms",0:"0s",75:"75ms",100:"100ms",150:"150ms",200:"200ms",300:"300ms",500:"500ms",700:"700ms",1e3:"1000ms"},transitionProperty:{none:"none",all:"all",DEFAULT:"color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter",colors:"color, background-color, border-color, text-decoration-color, fill, stroke",opacity:"opacity",shadow:"box-shadow",transform:"transform"},transitionTimingFunction:{DEFAULT:"cubic-bezier(0.4, 0, 0.2, 1)",linear:"linear",in:"cubic-bezier(0.4, 0, 1, 1)",out:"cubic-bezier(0, 0, 0.2, 1)","in-out":"cubic-bezier(0.4, 0, 0.2, 1)"},translate:({theme:e})=>({...e("spacing"),"1/2":"50%","1/3":"33.333333%","2/3":"66.666667%","1/4":"25%","2/4":"50%","3/4":"75%",full:"100%"}),size:({theme:e})=>({auto:"auto",...e("spacing"),"1/2":"50%","1/3":"33.333333%","2/3":"66.666667%","1/4":"25%","2/4":"50%","3/4":"75%","1/5":"20%","2/5":"40%","3/5":"60%","4/5":"80%","1/6":"16.666667%","2/6":"33.333333%","3/6":"50%","4/6":"66.666667%","5/6":"83.333333%","1/12":"8.333333%","2/12":"16.666667%","3/12":"25%","4/12":"33.333333%","5/12":"41.666667%","6/12":"50%","7/12":"58.333333%","8/12":"66.666667%","9/12":"75%","10/12":"83.333333%","11/12":"91.666667%",full:"100%",min:"min-content",max:"max-content",fit:"fit-content"}),width:({theme:e})=>({auto:"auto",...e("spacing"),"1/2":"50%","1/3":"33.333333%","2/3":"66.666667%","1/4":"25%","2/4":"50%","3/4":"75%","1/5":"20%","2/5":"40%","3/5":"60%","4/5":"80%","1/6":"16.666667%","2/6":"33.333333%","3/6":"50%","4/6":"66.666667%","5/6":"83.333333%","1/12":"8.333333%","2/12":"16.666667%","3/12":"25%","4/12":"33.333333%","5/12":"41.666667%","6/12":"50%","7/12":"58.333333%","8/12":"66.666667%","9/12":"75%","10/12":"83.333333%","11/12":"91.666667%",full:"100%",screen:"100vw",svw:"100svw",lvw:"100lvw",dvw:"100dvw",min:"min-content",max:"max-content",fit:"fit-content"}),willChange:{auto:"auto",scroll:"scroll-position",contents:"contents",transform:"transform"},zIndex:{auto:"auto",0:"0",10:"10",20:"20",30:"30",40:"40",50:"50"}},plugins:[]}),xw}var GP;function OG(){return GP||(GP=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return i}});const t=r(EG()),n=JC();function r(o){return o&&o.__esModule?o:{default:o}}function i(o){var a;const l=((a=o==null?void 0:o.presets)!==null&&a!==void 0?a:[t.default]).slice().reverse().flatMap(h=>i(h instanceof Function?h():h)),c={respectDefaultRingColorOpacity:{theme:{ringColor:({theme:h})=>({DEFAULT:"#3b82f67f",...h("colors")})}},disableColorOpacityUtilitiesByDefault:{corePlugins:{backgroundOpacity:!1,borderOpacity:!1,divideOpacity:!1,placeholderOpacity:!1,ringOpacity:!1,textOpacity:!1}}},d=Object.keys(c).filter(h=>(0,n.flagEnabled)(o,h)).map(h=>c[h]);return[o,...d,...l]}}(yw)),yw}var YP;function PG(){return YP||(YP=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return i}});const t=r(CG()),n=r(OG());function r(o){return o&&o.__esModule?o:{default:o}}function i(...o){let[,...a]=(0,n.default)(o[0]);return(0,t.default)([...o,...a])}}(Yb)),Yb}var bw,ZP;function AG(){if(ZP)return bw;ZP=1;let e=PG();return bw=(e.__esModule?e:{default:e}).default,bw}var TG=AG();const kG=To(TG),jG={content:["./index.html","./src/**/*.{js,ts,jsx,tsx}"],theme:{extend:{borderWidth:{1:"1px",3:"3px"},colors:{"dark-blue":"#202B3B","paper-blue":"#3b4d63",white:"#FFFFFF","input-background":"#F5F8F9","input-border":"#c8d5e4","input-stroke-tint":"#C8D5E4","embryo-fill":"#78A6A8","embryo-stroke":"#9CD5D8",gray:{50:"#F3F3F3",100:"#E8EAEB",250:"#BFBFBF",500:"#8F959B"},error:{250:"#FFBFBF",700:"#B20000"},gradient:"#F3F3F3"},borderRadius:{"x-small":"2px",small:"4px",smallish:"6px",medium:"8px",large:"16px"},fontSize:{6:"6px",8:"8px",10:"10px",12:"12px",14:"14px",15:"15px",16:"16px",18:"18px",20:"20px",22:"22px",24:"24px",32:"32px"},leading:{22:"22px",24:"24px",28:"28px",32:"32px"},height:{"xx-small":"16px","x-small":"24px",small:"32px",medium:"44px",large:"64px",screen_no_nav:"calc(100vh - 92px)"},screens:{xs:"480px"},fontWeight:{300:"300",400:"400",500:"500",600:"600",700:"700",800:"800"},lineHeight:{"xx-small":"16px","x-small":"24px",small:"32px",medium:"44px",large:"64px"},spacing:{small:"4px","small-medium":"6px",medium:"8px",large:"12px","x-large":"16px","2x-large":"24px","3x-large":"32px","4x-large":"48px","5x-large":"64px","6x-large":"96px","xx-large":"24px","xxx-large":"32px","xxxx-large":"48px","xxxxx-large":"64px","xxxxxx-large":"96px"},gridTemplateColumns:{15:"repeat(15, minmax(0, 1fr))",20:"repeat(20, minmax(0, 1fr))",25:"repeat(25, minmax(0, 1fr))"},width:{"xx-small":"16px","x-small":"24px",small:"32px",medium:"44px",large:"64px",expected_gains:"800px"},maxWidth:{expected_gains:"800px"},fontFamily:{inter:["Inter","sans-serif"],questrial:["Questrial","sans-serif"],"roboto-slab":["Roboto Slab","serif"],roboto:["Roboto","sans-serif"],"ibm-plex-mono":["IBM Plex Mono","monospace"]},aspectRatio:{"16/9":"16 / 9","4/3":"4 / 3","3/2":"3 / 2","1/1":"1 / 1"}}},plugins:[]},MG=kG(jG),kt=MG.theme,vI=()=>({control:e=>({...e,minHeight:"48px",height:"48px",cursor:"pointer",backgroundColor:kt.colors.white,borderWidth:"1px",borderStyle:"solid",borderColor:kt.colors["input-stroke-tint"],borderRadius:kt.borderRadius.medium,boxShadow:"none",fontSize:kt.fontSize[15],fontWeight:"500",fontFamily:kt.fontFamily["ibm-plex-mono"].join(", "),"&:hover":{borderColor:kt.colors["input-stroke-tint"],backgroundColor:kt.colors.gray[50]},display:"flex",alignItems:"center",justifyContent:"space-between",flexWrap:"nowrap"}),valueContainer:e=>({...e,height:"48px",padding:`0 ${kt.spacing.large}`,display:"flex",alignItems:"center",flex:"1 1 0%",overflow:"hidden",position:"relative",flexWrap:"nowrap"}),indicatorsContainer:e=>({...e,height:"48px"}),input:e=>({...e,margin:"0px !important",padding:"0px !important",fontSize:kt.fontSize[15],fontWeight:"500",fontFamily:kt.fontFamily["ibm-plex-mono"].join(", "),color:kt.colors["dark-blue"],gridArea:"1 / 1 / 2 / 3 !important",position:"absolute",top:0,left:0,width:"100% !important",height:"100%"}),placeholder:e=>({...e,fontSize:kt.fontSize[15],fontWeight:"500",fontFamily:kt.fontFamily["ibm-plex-mono"].join(", "),color:kt.colors.gray[500]}),singleValue:e=>({...e,fontSize:kt.fontSize[15],fontWeight:"500",fontFamily:kt.fontFamily["ibm-plex-mono"].join(", "),color:kt.colors["dark-blue"],overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",maxWidth:"100%",gridArea:"1 / 1 / 2 / 3"}),option:(e,t)=>({...e,cursor:"pointer",padding:`${kt.spacing["small-medium"]} ${kt.spacing.medium}`,marginBottom:kt.spacing.medium,borderRadius:kt.borderRadius.medium,backgroundColor:t.isSelected?kt.colors.gray[50]:t.isFocused?kt.colors.gray[100]:kt.colors.white,color:kt.colors["dark-blue"],fontSize:kt.fontSize[15],fontWeight:"500",fontFamily:kt.fontFamily["ibm-plex-mono"].join(", "),lineHeight:"140%",borderBottom:"none","&:active":{backgroundColor:kt.colors.gray[100]},"&:last-child":{marginBottom:0}}),menu:e=>({...e,borderRadius:kt.borderRadius.medium,borderColor:kt.colors.gray[100],borderWidth:"1px",borderStyle:"solid",boxShadow:"0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1)",marginTop:kt.spacing.small,backgroundColor:kt.colors.white,zIndex:10,overflow:"hidden",animation:"dropdownFadeIn 150ms ease-out"}),menuList:e=>({...e,paddingTop:kt.spacing.large,paddingBottom:kt.spacing.large,paddingLeft:kt.spacing.medium,paddingRight:kt.spacing.medium,maxHeight:"600px"}),dropdownIndicator:e=>({...e,padding:kt.spacing.large,color:kt.colors["dark-blue"]}),indicatorSeparator:()=>({display:"none"}),group:e=>({...e,paddingTop:0,paddingBottom:0,"&:not(:first-of-type)":{marginTop:kt.spacing.large}}),groupHeading:e=>({...e,backgroundColor:"transparent",color:kt.colors.gray[500],padding:`${kt.spacing["small-medium"]} ${kt.spacing.medium}`,marginBottom:kt.spacing.medium,fontSize:kt.fontSize[12],fontWeight:"500",fontFamily:kt.fontFamily["ibm-plex-mono"].join(", "),textTransform:"uppercase",letterSpacing:"0px",borderBottom:"none",lineHeight:"140%"})}),IG=vI(),Km=({className:e,styles:t,onChange:n,...r})=>{const i={...IG,...t},o=(a,l)=>{n&&n(a,l)};return b.jsx("div",{children:b.jsx(fI,{isSearchable:!1,styles:i,className:e,onChange:o,classNamePrefix:"react-select",autoFocus:!1,openMenuOnFocus:!1,...r})})},NG=(e,t,n,r)=>{var o,a,l,c;const i=[n,{code:t,...r||{}}];if((a=(o=e==null?void 0:e.services)==null?void 0:o.logger)!=null&&a.forward)return e.services.logger.forward(i,"warn","react-i18next::",!0);Yc(i[0])&&(i[0]=`react-i18next:: ${i[0]}`),(c=(l=e==null?void 0:e.services)==null?void 0:l.logger)!=null&&c.warn?e.services.logger.warn(...i):console!=null&&console.warn&&console.warn(...i)},XP={},n_=(e,t,n,r)=>{Yc(n)&&XP[n]||(Yc(n)&&(XP[n]=new Date),NG(e,t,n,r))},yI=(e,t)=>()=>{if(e.isInitialized)t();else{const n=()=>{setTimeout(()=>{e.off("initialized",n)},0),t()};e.on("initialized",n)}},r_=(e,t,n)=>{e.loadNamespaces(t,yI(e,n))},QP=(e,t,n,r)=>{if(Yc(n)&&(n=[n]),e.options.preload&&e.options.preload.indexOf(t)>-1)return r_(e,n,r);n.forEach(i=>{e.options.ns.indexOf(i)<0&&e.options.ns.push(i)}),e.loadLanguages(t,yI(e,r))},RG=(e,t,n={})=>!t.languages||!t.languages.length?(n_(t,"NO_LANGUAGES","i18n.languages were undefined or empty",{languages:t.languages}),!0):t.hasLoadedNamespace(e,{lng:n.lng,precheck:(r,i)=>{var o;if(((o=n.bindI18n)==null?void 0:o.indexOf("languageChanging"))>-1&&r.services.backendConnector.backend&&r.isLanguageChangingTo&&!i(r.isLanguageChangingTo,e))return!1}}),Yc=e=>typeof e=="string",LG=e=>typeof e=="object"&&e!==null,DG=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,$G={"&":"&","&":"&","<":"<","<":"<",">":">",">":">","'":"'","'":"'",""":'"',""":'"'," ":" "," ":" ","©":"©","©":"©","®":"®","®":"®","…":"…","…":"…","/":"/","/":"/"},FG=e=>$G[e],BG=e=>e.replace(DG,FG);let i_={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0,unescape:BG};const VG=(e={})=>{i_={...i_,...e}},zG=()=>i_;let xI;const UG=e=>{xI=e},WG=()=>xI,HG={type:"3rdParty",init(e){VG(e.options.react),UG(e)}},qG=O.createContext();class KG{constructor(){this.usedNamespaces={}}addUsedNamespaces(t){t.forEach(n=>{this.usedNamespaces[n]||(this.usedNamespaces[n]=!0)})}getUsedNamespaces(){return Object.keys(this.usedNamespaces)}}const GG=(e,t)=>{const n=O.useRef();return O.useEffect(()=>{n.current=e},[e,t]),n.current},bI=(e,t,n,r)=>e.getFixedT(t,n,r),YG=(e,t,n,r)=>O.useCallback(bI(e,t,n,r),[e,t,n,r]),vf=(e,t={})=>{var I,M,N,L;const{i18n:n}=t,{i18n:r,defaultNS:i}=O.useContext(qG)||{},o=n||r||WG();if(o&&!o.reportNamespaces&&(o.reportNamespaces=new KG),!o){n_(o,"NO_I18NEXT_INSTANCE","useTranslation: You will need to pass in an i18next instance by using initReactI18next");const F=(U,W)=>Yc(W)?W:LG(W)&&Yc(W.defaultValue)?W.defaultValue:Array.isArray(U)?U[U.length-1]:U,B=[F,{},!1];return B.t=F,B.i18n={},B.ready=!1,B}(I=o.options.react)!=null&&I.wait&&n_(o,"DEPRECATED_OPTION","useTranslation: It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.");const a={...zG(),...o.options.react,...t},{useSuspense:l,keyPrefix:c}=a;let d=i||((M=o.options)==null?void 0:M.defaultNS);d=Yc(d)?[d]:d||["translation"],(L=(N=o.reportNamespaces).addUsedNamespaces)==null||L.call(N,d);const h=(o.isInitialized||o.initializedStoreOnce)&&d.every(F=>RG(F,o,a)),m=YG(o,t.lng||null,a.nsMode==="fallback"?d:d[0],c),v=()=>m,y=()=>bI(o,t.lng||null,a.nsMode==="fallback"?d:d[0],c),[w,C]=O.useState(v);let _=d.join();t.lng&&(_=`${t.lng}${_}`);const P=GG(_),T=O.useRef(!0);O.useEffect(()=>{const{bindI18n:F,bindI18nStore:B}=a;T.current=!0,!h&&!l&&(t.lng?QP(o,t.lng,d,()=>{T.current&&C(y)}):r_(o,d,()=>{T.current&&C(y)})),h&&P&&P!==_&&T.current&&C(y);const U=()=>{T.current&&C(y)};return F&&(o==null||o.on(F,U)),B&&(o==null||o.store.on(B,U)),()=>{T.current=!1,o&&(F==null||F.split(" ").forEach(W=>o.off(W,U))),B&&o&&B.split(" ").forEach(W=>o.store.off(W,U))}},[o,_]),O.useEffect(()=>{T.current&&h&&C(v)},[o,c,h]);const A=[w,o,h];if(A.t=w,A.i18n=o,A.ready=h,h||!h&&!l)return A;throw new Promise(F=>{t.lng?QP(o,t.lng,d,()=>F()):r_(o,d,()=>F())})},ZG=e=>e!==void 0&&"parental_mean"in e,XG=2.54,QG=["EUR","EAS","AFR","AMR","SAS","MID"],wI={prostate_cancer_male:"CANCER",breast_cancer_female:"CANCER",basal_cell_carcinoma:"CANCER",testicular_cancer_male:"CANCER",melanoma:"CANCER",diabetes_type_2:"METABOLIC_CARDIOVASCULAR",hypertension:"METABOLIC_CARDIOVASCULAR",gout:"METABOLIC_CARDIOVASCULAR",venous_thromboembolism:"METABOLIC_CARDIOVASCULAR",alzheimers:"NEUROLOGICAL",intelligence:"NEUROLOGICAL",schizophrenia:"NEUROLOGICAL",multiple_sclerosis:"NEUROLOGICAL",psoriasis:"INFLAMMATORY_AUTOIMMUNE",atopic_dermatitis:"INFLAMMATORY_AUTOIMMUNE",vitiligo:"INFLAMMATORY_AUTOIMMUNE",ibd:"INFLAMMATORY_AUTOIMMUNE",glaucoma:"OTHER",osteoporosis:"OTHER",height:"PHYSICAL",height_male:"PHYSICAL",height_female:"PHYSICAL",bmi:"PHYSICAL"},JG={intelligence:"IQ"},eY={intelligence:1};function tY(e){return JG[e.toLowerCase()]||""}function nY(e){return Oa.min([e.low,e.mean,e.high])>=.01?1:2}const rY={intelligence:"IQ","externalizing behavior":"Externalizing"};function iY(e){return rY[e.toLowerCase()]||e}function oY(e){const t=e/XG,n=Math.floor(t/12),r=t%12;let i;const o=r%1;if(o<.25?i=Math.floor(r):o<.75?i=Math.floor(r)+.5:i=Math.ceil(r),i===12)return`${n+1}' 0"`;const a=i%1===.5?`${Math.floor(i)}½`:i;return`${n}' ${a}"`}const JP=()=>{if(!(navigator!=null&&navigator.language))return!0;const[e,t]=navigator.language.split("-");return t!=="US"},SI=()=>{try{const e=P1();if(e!=null&&e.metric){if(e.metric==="1")return!0;if(e.metric==="0")return!1}}catch{return JP()}return JP()},ww=({text:e,number:t})=>b.jsxs("div",{className:"flex h-auto w-full flex-1 flex-row items-center justify-between gap-y-[8px] rounded-medium bg-gray-50 p-x-large xs:h-[96px] xs:w-auto xs:flex-col xs:justify-center xs:p-0",children:[b.jsx("div",{className:"text-center font-ibm-plex-mono text-15 font-500 leading-[140%]",children:e}),t&&b.jsx("div",{className:"font-inter text-20 font-500 leading-[140%]",children:t})]}),Sw=({text:e,number:t})=>b.jsxs("div",{className:"flex h-auto w-full flex-1 flex-row items-center justify-between gap-y-[8px] rounded-medium bg-gray-50 p-x-large xs:h-[96px] xs:w-auto xs:flex-col xs:justify-center xs:p-0",children:[b.jsx("div",{className:"text-center font-ibm-plex-mono text-15 font-500 leading-[140%]",children:e}),b.jsx("div",{className:"font-inter text-20 font-500 leading-[140%]",children:t})]}),aY=({activeData:e})=>{const{t}=vf(),n=SI();if(!e)return null;const r=ZG(e),i=O.useMemo(()=>r?e.trait==="height"&&n?"cm":tY(e.trait):"%",[r,n,e.trait]),o=eY[e.trait]??nY(e),a=m=>{const{low:v,mean:y,high:w,parental_mean:C}=m,_=y-v;return m.trait!=="intelligence"&&console.warn("This function is not written for non-IQ traits."),{low:`${(C-_).toFixed(o)} ${i}`,mean:`${C} ${i}`,high:`${(C+_).toFixed(o)} ${i}`}},l=m=>{const{low:v,mean:y,high:w}=m;return{low:`${(v*100).toFixed(o)}${i}`,mean:`${(y*100).toFixed(o)}${i}`,high:`${(w*100).toFixed(o)}${i}`}},{low:c,mean:d,high:h}=r?a(e):l(e);return b.jsx("div",{className:"flex flex-col",children:b.jsx("div",{className:"flex w-full flex-col items-start gap-y-[8px] xs:h-24 xs:w-auto xs:flex-row xs:gap-x-[5px] xs:gap-y-0 md:gap-3",children:r?b.jsxs(b.Fragment,{children:[b.jsx(ww,{text:t("expectedGains.summary.lowest"),number:c}),b.jsx(ww,{text:t("expectedGains.summary.average"),number:d}),b.jsx(ww,{text:t("expectedGains.summary.highest"),number:h})]}):b.jsxs(b.Fragment,{children:[b.jsx(Sw,{text:t("expectedGains.summary.lowest"),number:c}),b.jsx(Sw,{text:t("expectedGains.summary.average"),number:d}),b.jsx(Sw,{text:t("expectedGains.summary.highest"),number:h})]})})})},sY=({activeTrait:e,onClick:t,placeholder:n,enableTranslation:r=!0})=>{const{t:i}=vf(),o=a=>a?r?i(`expectedGains.traits.${a}`):a.replace(/_/g," ").replace(/\b\w/g,l=>l.toUpperCase()):n||i("expectedGains.selectTraitPlaceholder");return b.jsxs("button",{onClick:t,className:"flex h-[48px] min-h-[48px] w-full items-center justify-between rounded-md border border-gray-300 bg-white px-3 py-2 text-left font-ibm-plex-mono text-15 font-500 transition-colors hover:bg-gray-50 focus:border-blue-500 focus:outline-none focus:ring-1 focus:ring-blue-500",children:[b.jsx("span",{className:"block truncate font-ibm-plex-mono text-15 font-500",children:o(e)}),b.jsx(Nj,{size:20,className:"ml-2 flex-shrink-0 text-gray-400"})]})},Zd=({traitCategory:e,traits:t,onTraitSelect:n,selectedTrait:r})=>{const{t:i}=vf();return t!=null&&t.length?b.jsxs("div",{className:"flex basis-0 flex-col gap-y-[8px]",children:[b.jsx("h3",{className:"font-ibm-plex-mono text-12 font-medium uppercase leading-[140%] text-gray-500",children:i(`expectedGains.traitCategories.${e}`)}),t.map(o=>b.jsx(lY,{trait:o,isSelected:r===o,onClick:n,label:i(`expectedGains.traits.${o}`)},o))]}):null},lY=({trait:e,isSelected:t,onClick:n,label:r,hasFixedWidth:i=!1})=>b.jsx("button",{onClick:()=>n(e),className:Ht("whitespace-nowrap rounded-lg p-1.5 text-left transition-colors",{"bg-gray-50":t,"hover:bg-gray-50":!t}),style:i?{width:"238px"}:void 0,children:b.jsx("span",{className:"font-ibm-plex-mono text-15 font-medium leading-[140%] text-dark-blue",children:r})}),uY=({isOpen:e,onClose:t,traitsToChooseFrom:n,selectedTrait:r="",onTraitSelect:i,enableTranslation:o=!0})=>{const{t:a}=vf(),l=O.useMemo(()=>n.reduce((w,C)=>{const _=wI[C];return w[_]||(w[_]=[]),w[_].push(C),w},{}),[n]),{CANCER:c,METABOLIC_CARDIOVASCULAR:d,NEUROLOGICAL:h,INFLAMMATORY_AUTOIMMUNE:m,OTHER:v,PHYSICAL:y}=l;return b.jsx(xo,{children:e&&b.jsx(Cn.div,{className:"fixed inset-0 z-50 flex items-center justify-center bg-black",initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},transition:{duration:.15},onClick:t,style:{backgroundColor:"rgba(0, 0, 0, 0.5)"},children:b.jsxs(Cn.div,{className:"flex max-h-[800px] flex-col gap-y-[16px] rounded-md border border-input-stroke-tint bg-white px-[32px] py-[24px] xs:w-[834px] sm:h-[572px] sm:max-h-none",initial:{scale:.95,opacity:0},animate:{scale:1,opacity:1},exit:{scale:.95,opacity:0},transition:{duration:.15},onClick:w=>w.stopPropagation(),children:[b.jsx("div",{className:"p-x-[5px] flex flex-row items-center justify-between pb-[8px] pt-[5px]",children:b.jsx("button",{onClick:t,className:"rounded p-1 transition-colors hover:bg-gray-100",children:b.jsx("svg",{width:20,height:20,viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:b.jsx("path",{d:"M4.94973 16L3.99951 15.0498L9.04929 10L3.99951 4.95022L4.94973 4L9.99951 9.04978L15.0493 4L15.9995 4.95022L10.9497 10L15.9995 15.0498L15.0493 16L9.99951 10.9502L4.94973 16Z",fill:"#202B38"})})})}),b.jsxs("div",{className:"grid grid-cols-3 items-start gap-x-[16px] gap-y-[10px]",children:[b.jsx(Zd,{traitCategory:"NEUROLOGICAL",traits:h,onTraitSelect:i,selectedTrait:r}),b.jsx(Zd,{traitCategory:"CANCER",traits:c,onTraitSelect:i,selectedTrait:r}),b.jsx(Zd,{traitCategory:"INFLAMMATORY_AUTOIMMUNE",traits:m,onTraitSelect:i,selectedTrait:r}),b.jsx(Zd,{traitCategory:"METABOLIC_CARDIOVASCULAR",traits:d,onTraitSelect:i,selectedTrait:r}),b.jsx(Zd,{traitCategory:"OTHER",traits:v,onTraitSelect:i,selectedTrait:r}),b.jsx(Zd,{traitCategory:"PHYSICAL",traits:y,onTraitSelect:i,selectedTrait:r})]})]})})})},cY=vI(),fY=({options:e,styles:t,onChange:n,...r})=>{const i=e,o={...cY,...t},a=(d,h)=>{n&&n(d,h)},l=d=>b.jsx("span",{children:d.label}),c=()=>b.jsx("div",{style:{display:"flex",alignItems:"center",justifyContent:"center",padding:"12px"},children:b.jsx(Z7,{size:20})});return b.jsx("div",{children:b.jsx(fI,{options:i,formatGroupLabel:l,styles:o,components:{DropdownIndicator:c},onChange:a,classNamePrefix:"react-select",autoFocus:!1,openMenuOnFocus:!1,...r})})},dY=({traitsToChooseFrom:e,activeTrait:t,onTraitChange:n,placeholder:r,instanceId:i="trait-select-dropdown",enableTranslation:o=!0})=>{const{t:a}=vf(),l=m=>o?a(`expectedGains.traits.${m}`):m.replace(/_/g," ").replace(/\b\w/g,v=>v.toUpperCase()),c=O.useMemo(()=>e.reduce((m,v)=>{const y=wI[v];return m[y]||(m[y]=[]),m[y].push(v),m},{}),[e]),d=m=>b.jsx(JM.DropdownIndicator,{...m,onMouseDown:v=>{v.preventDefault(),v.stopPropagation()},onTouchStart:v=>{v.preventDefault(),v.stopPropagation()},children:b.jsx(Nj,{size:20})}),h=Object.entries(c).map(([m,v],y)=>({label:a(`expectedGains.traitCategories.${m}`),options:v.map(w=>({value:w,label:l(w)}))}));return b.jsx(fY,{options:h,onChange:m=>{m&&n(m.value)},isSearchable:!1,value:h.flatMap(m=>m.options).find(m=>m.value===t)||null,placeholder:r||a("expectedGains.selectTraitPlaceholder"),instanceId:i,components:{DropdownIndicator:d}})},hY=({embryoCountIndex:e,embryoCountOptions:t,maxDots:n=20,arcSpan:r=120,onEmbryoCountIndexChange:i,verticalOffset:o,containerHeight:a,viewBoxHeight:l=165})=>{const{t:c}=vf(),[d,h]=O.useState(!1),[m,v]=O.useState(null),[y,w]=O.useState(!1),C=O.useRef(null),_=t[e],P=442/l,T=a||`min(200px, ${100/P}vw)`,A=221,I=213,N=I-187,F=I-N,B=.2,U=.4,W=N+F*B,G=F*U,ie=241,te=205,se=we=>{if(we<0||we>=t.length)return{x:A,y:I-te,angle:0};const je=-60+120/3*we,re=je*Math.PI/180,he=A+te*Math.sin(re),oe=I-te*Math.cos(re);return{x:he,y:oe,angle:je}},le=se(e),q=d&&m!==null?m:le.angle,H=te,Z=180*Math.PI*H/180,X=(q+120)*Math.PI*H/180,z=O.useCallback(we=>{we.preventDefault(),we.stopPropagation(),h(!0)},[]),J=we=>"touches"in we&&we.touches.length>0?{clientX:we.touches[0].clientX,clientY:we.touches[0].clientY}:{clientX:we.clientX,clientY:we.clientY},Me=O.useCallback(we=>{if(!d||!C.current)return;we.preventDefault();const je=C.current.getBoundingClientRect(),{clientX:re,clientY:he}=J(we),oe=re-je.left,be=he-je.top,Ce=oe/je.width*442,fe=be/je.height*l+o,De=Ce-A,Le=fe-I;let it=Math.atan2(De,-Le)*(180/Math.PI);it=Math.max(-60,Math.min(60,it)),v(it);const Ve=[-60,-20,20,60];let At=0,pt=Math.abs(it-Ve[0]);for(let zt=1;zt{h(!1),v(null)},[]);return fs.useEffect(()=>{if(d)return document.addEventListener("mousemove",Me),document.addEventListener("mouseup",Pe),document.addEventListener("touchmove",Me,{passive:!1}),document.addEventListener("touchend",Pe,{passive:!1}),()=>{document.removeEventListener("mousemove",Me),document.removeEventListener("mouseup",Pe),document.removeEventListener("touchmove",Me),document.removeEventListener("touchend",Pe)}},[d,Me,Pe]),b.jsx("div",{className:"relative flex w-full items-center justify-center",style:{height:T},children:b.jsxs("svg",{ref:C,width:"100%",height:"100%",viewBox:`0 ${o} 442 ${l}`,preserveAspectRatio:"xMidYMid meet",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[b.jsx("circle",{cx:"221",cy:"213",r:"205",strokeWidth:"36",stroke:"#F3F3F3"}),b.jsx("path",{d:`M ${A+te*Math.sin(-120*Math.PI/180)} ${I-te*Math.cos(-120*Math.PI/180)} A ${te} ${te} 0 0 1 ${A+te*Math.sin(60*Math.PI/180)} ${I-te*Math.cos(60*Math.PI/180)}`,stroke:"#D4D4D4",strokeWidth:"24",fill:"none",strokeLinecap:"round",strokeDasharray:Z,strokeDashoffset:Z-X,style:{transition:d?"none":"stroke-dashoffset 0.25s ease-out"}}),b.jsx("circle",{cx:"221",cy:"213",r:"187",fill:"url(#paint0_linear_7206_854)"}),b.jsx("foreignObject",{x:"34",y:W,width:"374",height:G,children:b.jsxs("div",{style:{width:"100%",height:"100%",display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center"},children:[b.jsx("div",{className:"text-center font-inter text-[20px] font-600 uppercase leading-[112%] text-dark-blue",children:_}),b.jsx("div",{className:"text-11 font-inter font-500 uppercase leading-[125%] tracking-[-2%] text-dark-blue",children:c("expectedGains.embryos")})]})}),Array.from({length:n},(we,je)=>{let re=-45;if(je<_)if(_===1)re=0;else{const be=_-1-je,Ce=r/2,fe=-Ce,Le=Ce-fe;re=fe+Le/(_-1)*be}const oe=je<_?re:re-180;return b.jsxs("g",{transform:`rotate(${oe} ${A} ${I})`,style:{transition:"transform 0.5s ease-in-out",transitionDelay:`${je*10}ms`},children:[b.jsx("circle",{cx:A,cy:I,r:ie,fill:"none",opacity:"0"}),b.jsx("g",{transform:`translate(${A-6.5}, ${I-ie-6.5})`,children:b.jsxs("svg",{width:"13",height:"13",viewBox:"0 0 13 13",fill:"none",children:[b.jsx("circle",{cx:"6.5",cy:"6.5",r:"2.6",fill:"#78A6AB"}),b.jsx("circle",{cx:"6.5",cy:"6.5",r:"4.9",stroke:"#9CD5DB",strokeWidth:"2.12",fill:"none"})]})})]},je)}),t.map((we,je)=>{const re=se(je),he=e>=je;return b.jsx("g",{transform:`translate(${re.x-9.5}, ${re.y-9.5})`,style:{opacity:he?.3:1,transition:"opacity 0.2s ease-out, transform 0.2s ease-out"},onMouseEnter:oe=>{oe.currentTarget.style.transform=`translate(${re.x-9.5}px, ${re.y-9.5}px) scale(1.1)`},onMouseLeave:oe=>{oe.currentTarget.style.transform=`translate(${re.x-9.5}px, ${re.y-9.5}px) scale(1)`},children:b.jsx("svg",{width:"19",height:"19",viewBox:"0 0 19 19",fill:"none",style:{cursor:"pointer"},onClick:()=>i(je),children:b.jsx("path",{d:"M13.0674 1.52911C17.6594 3.43111 19.8404 8.69611 17.9384 13.2881C16.0364 17.8801 10.7714 20.0611 6.17938 18.1591C1.58738 16.2571 -0.593589 10.9921 1.30841 6.40011C3.21041 1.80811 8.47538 -0.37289 13.0674 1.52911Z",fill:"#E8E8E8"})})},je)}),b.jsxs("g",{transform:`rotate(${q||0} ${A} ${I})`,onMouseDown:z,onTouchStart:z,onMouseEnter:()=>w(!0),onMouseLeave:()=>w(!1),style:{cursor:d?"grabbing":"grab",transition:d?"none":"transform 0.25s ease-out"},children:[b.jsx("circle",{cx:A,cy:I,r:te,fill:"none",opacity:"0"}),b.jsxs("g",{transform:`translate(${A}, ${I-te}) rotate(290)`,children:[b.jsx("circle",{cx:"0",cy:"0",r:"16",fill:"#B8D1ED",opacity:y?"0.5":"0",style:{transition:"opacity 0.2s ease-out"}}),b.jsx("circle",{cx:"0",cy:"0",r:"9.5",fill:"white",stroke:"#D1D5DB",strokeWidth:"1"}),b.jsx("path",{d:"M-2.65234 0.398333L1.07566 1.56033L2.89066 -1.89767",stroke:"#8F959B",strokeLinecap:"round",strokeLinejoin:"round"})]})]}),b.jsx("defs",{children:b.jsxs("linearGradient",{id:"paint0_linear_7206_854",x1:"221",y1:"26",x2:"221",y2:"400",gradientUnits:"userSpaceOnUse",children:[b.jsx("stop",{stopColor:"#A9E1F4"}),b.jsx("stop",{offset:"0.331749",stopColor:"#F5F8F9",stopOpacity:"0"})]})})]})})},ki=({className:e})=>b.jsx("div",{className:e||"size-[16px] xs:size-[20px]",children:b.jsx(oF,{className:"cursor-pointer",size:"100%"})});function pY(e,t,n){return e?n==="height"&&!t?oY(e):n==="height"&&t?`${e.toFixed(1)} cm`:e%5===0?e.toString():e.toFixed(1):""}const mY=({label:e,onIncrease:t,onDecrease:n})=>b.jsxs("div",{className:"flex h-12 flex-shrink-0 items-center justify-between self-stretch rounded-lg border border-input-stroke-tint bg-white",children:[b.jsx("button",{onClick:n,className:"group flex w-[44px] items-center justify-center self-stretch rounded-bl-lg rounded-br-sm rounded-tl-lg rounded-tr-sm p-2 transition-colors",children:b.jsx("div",{className:"flex h-5 w-5 flex-shrink-0 items-center justify-center",children:b.jsx(Ij,{size:20,className:"text-dark-blue transition-colors group-hover:text-gray-500"})})}),b.jsx("div",{className:"text-center font-ibm-plex-mono text-[.9375rem] font-medium leading-[140%] text-dark-blue",children:e}),b.jsx("button",{onClick:t,className:"group flex w-[44px] items-center justify-center self-stretch rounded-bl-sm rounded-br-lg rounded-tl-sm rounded-tr-lg p-2 transition-colors",children:b.jsx("div",{className:"flex h-5 w-5 flex-shrink-0 items-center justify-center",children:b.jsx(oC,{size:20,className:"text-dark-blue transition-colors group-hover:text-gray-500"})})})]}),Ps=()=>{const[e,t]=O.useState(!1);return O.useEffect(()=>{const n=()=>"ontouchstart"in window||navigator.maxTouchPoints>0;t(n());const r=()=>{t(n())};return window.addEventListener("resize",r),()=>{window.removeEventListener("resize",r)}},[]),e},eA=QG;function _w(e,t){return[e,t].toSorted().join("")}const gY=({children:e,className:t})=>b.jsx("div",{className:t,children:e}),vY=({children:e,className:t})=>b.jsx("div",{className:t,children:e}),yY=({children:e,className:t})=>b.jsx("div",{className:t,children:e}),xY=({children:e,className:t})=>b.jsx("div",{className:t,children:e}),o_=()=>{const{t:e}=vf(),[t,n]=O.useState("EUR"),[r,i]=O.useState("EUR"),o=P1(),a=o==null?void 0:o.height,l=o==null?void 0:o.width,c=SI(),d=Ps(),h=866,m="100%",[v,y]=O.useState(""),[w,C]=O.useState(1),[_,P]=O.useState(9),[T,A]=O.useState(0),[I,M]=O.useState(0),[N,L]=O.useState(!1),[F,B]=O.useState(!1),[U,W]=O.useState([]),[G,ie]=O.useState([]),[te,se]=O.useState([]),[le,q]=O.useState(!1),[H,Z]=O.useState(!1),[X,z]=O.useState(!1),J=O.useCallback(Ne=>Oa.uniqBy(G,"trait").map(er=>er.trait).includes(Ne),[Oa.size(G)]),Me=J(v),Pe=!Me,we=O.useMemo(()=>Oa.uniqBy(G,"trait").map(Ne=>Ne.trait).includes(v)?Oa.sortBy(Oa.uniq(G.map(gt=>gt.n_embryo))):Oa.sortBy(Oa.uniq(U.map(gt=>gt.n_embryo))),[v,G.length,U.length]);O.useEffect(()=>{M(0),A(0)},[v]);const je=_w(r,t),re=O.useMemo(()=>J(v)?Oa.sortBy(Oa.uniqBy(G.filter(Ne=>Ne.trait===v&&je===_w(Ne.father_ancestry,Ne.mother_ancestry)),Ne=>Ne.parental_mean).map(Ne=>Ne.parental_mean)):[],[v,G.length,r,t]),he=O.useMemo(()=>J(v)?G.find(Ne=>Ne.trait===v&&Ne.n_embryo===we[w]&&Ne.parental_mean==re[_]&&je===_w(Ne.father_ancestry,Ne.mother_ancestry)):U.filter(Ne=>Ne.trait===v&&Ne.n_embryo===we[w]&&Ne.mother_ancestry===r&&Ne.father_ancestry===t).find(Ne=>{if("father_disease"in Ne&&"mother_disease"in Ne)return Ne.father_disease===I&&Ne.mother_disease===T;if("father_disease"in Ne)return Ne.father_disease===I;if("mother_disease"in Ne)return Ne.mother_disease===T}),[U.length,G.length,v,w,_,re,we,T,I,t,r]),oe=O.useMemo(()=>{let Ne=[{value:"0,0",label:e("expectedGains.diseaseOptions.noOne")},{value:"1,0",label:e("expectedGains.diseaseOptions.father")},{value:"0,1",label:e("expectedGains.diseaseOptions.mother")},{value:"1,1",label:e("expectedGains.diseaseOptions.both")}];return he&&!J(v)&&!("father_disease"in he)?Ne=[{value:"0,0",label:e("expectedGains.diseaseOptions.noOne")},{value:"0,1",label:e("expectedGains.diseaseOptions.mother")}]:he&&!J(v)&&!("mother_disease"in he)&&(Ne=[{value:"0,0",label:e("expectedGains.diseaseOptions.noOne")},{value:"1,0",label:e("expectedGains.diseaseOptions.father")}]),Ne},[v,he,e,J]);O.useEffect(()=>{async function Ne(){B(!0);try{const gt=fetch(af("data/precomputed_binary.json")),er=fetch(af("data/precomputed_cont.json")),[$n,ar]=await Promise.all([gt,er]),bn=await $n.json(),rn=await ar.json();W(bn),ie(rn);const Wn=new Set([...bn.map(Hn=>Hn.trait),...rn.map(Hn=>Hn.trait)]);se(Oa.sortBy(Array.from(Wn))),y("alzheimers")}catch(gt){console.error(gt)}finally{B(!1)}}Ne()},[]);const be=b.jsx(mY,{label:pY(re[_],c,v),onIncrease:()=>{re[_+1]!==void 0&&P(_+1)},onDecrease:()=>{re[_-1]!==void 0&&P(_-1)}}),Ce=b.jsxs("div",{className:"flex min-w-0 grow flex-col gap-y-[8px]",children:[b.jsx(bm,{children:e("expectedGains.chooseTrait")}),b.jsxs(b.Fragment,{children:[b.jsx("div",{className:"hidden xs:block",children:b.jsx(sY,{activeTrait:v,onClick:()=>L(!0)})}),b.jsx("div",{className:"block xs:hidden",children:b.jsx(dY,{traitsToChooseFrom:te,activeTrait:v,onTraitChange:y,instanceId:"trait-select-expected-gains"})})]})]}),fe=b.jsx(Km,{options:oe,onChange:Ne=>{if(Ne){const[gt,er]=Ne.value.split(",").map($n=>parseInt($n));M(gt),A(er)}},value:oe.find(Ne=>Ne.value===`${I},${T}`)||null}),De=Me?be:fe,Le=b.jsxs("div",{className:"flex min-w-0 shrink grow basis-1/2 flex-col gap-y-[8px]",children:[b.jsxs("div",{className:"flex flex-row items-center gap-x-[6px]",children:[b.jsx(bm,{children:Me?"Family mean IQ":e("expectedGains.familyHistory")}),b.jsx("div",{"data-tooltip-id":"family-history-tooltip","data-tooltip-content":Pe?e("expectedGains.familyHistoryTooltip"):"The mean genotypic IQ of the parents.",children:b.jsx(ki,{})}),b.jsx(ri,{id:"family-history-tooltip",className:"basic_tooltip",globalCloseEvents:d?{scroll:!0}:void 0})]}),De]}),it=b.jsxs("div",{className:"flex min-w-0 grow basis-1/2 flex-col gap-y-[8px]",children:[b.jsxs("div",{className:"flex flex-row items-center gap-x-[6px]",children:[b.jsx(bm,{className:"!mb-0 !pb-0",children:e("expectedGains.embryoCount")}),b.jsx("div",{"data-tooltip-id":"embryo-count-tooltip","data-tooltip-content":e("expectedGains.embryoCountTooltip"),children:b.jsx(ki,{})}),b.jsx(ri,{id:"embryo-count-tooltip",className:"basic_tooltip",globalCloseEvents:d?{scroll:!0}:void 0})]}),b.jsx(aF,{activeValue:we[w],onIncrease:()=>{we[w+1]&&C(w+1)},onDecrease:()=>{we[w-1]&&C(w-1)}})]}),Ve=eA.map(Ne=>({value:Ne,label:e(`expectedGains.ancestryOptions.${Ne}`)})),At=b.jsx(Km,{className:"w-full min-w-0",options:Ve,placeholder:e("expectedGains.selectAncestryPlaceholder"),onChange:Ne=>{Ne&&n(Ne.value)},value:Ve.find(Ne=>Ne.value===t)||null}),pt=b.jsxs("div",{className:"flex min-w-0 flex-col gap-y-[8px]",style:{minWidth:0,width:"100%"},children:[b.jsx(bm,{children:e("expectedGains.fatherAncestry")}),b.jsx("div",{className:"min-w-0 max-w-full overflow-visible",style:{minWidth:0},children:At})]}),zt=eA.map(Ne=>({value:Ne,label:e(`expectedGains.ancestryOptions.${Ne}`)})),st=b.jsx(Km,{className:"w-full min-w-0",placeholder:e("expectedGains.selectAncestryPlaceholder"),options:zt,onChange:Ne=>{Ne&&i(Ne.value)},value:zt.find(Ne=>Ne.value===r)||null}),Gt=b.jsxs("div",{className:"flex min-w-0 flex-col gap-y-[8px]",style:{minWidth:0,width:"100%"},children:[b.jsx(bm,{children:e("expectedGains.motherAncestry")}),b.jsx("div",{className:"min-w-0 max-w-full overflow-visible",style:{minWidth:0},children:st})]});return b.jsxs("div",{style:{maxHeight:a||m,maxWidth:l||h},className:"h-full",children:[!F&&(G.length>0||U.length>0)&&b.jsxs("div",{className:Ht("flex w-full flex-col gap-y-[16px]"),children:[b.jsxs(gY,{className:Ht("flex flex-col rounded-smallish border border-gray-100 bg-white px-2x-large py-3x-large xs:justify-between xs:gap-x-[100px] md:gap-x-[230px]"),children:[b.jsxs("div",{className:"flex flex-col justify-between gap-y-4 xs:flex-row xs:gap-y-0",children:[b.jsx(Kd,{className:"max-w-full xs:max-w-[75%]",children:e("expectedGains.widgetIntroText")}),b.jsx(xu,{containerClassName:"self-start",onClick:()=>z(Ne=>!Ne),isOpen:X})]}),b.jsx(qc,{isOpen:X,children:b.jsxs(Kd,{className:"mt-6 flex flex-col gap-y-4",children:[b.jsx("p",{children:e("expectedGains.widgetIntroLogicText")}),b.jsx("p",{children:e("expectedGains.widgetIntroStep1")}),b.jsx("p",{children:e("expectedGains.widgetIntroStep2")}),b.jsx("p",{children:e("expectedGains.widgetIntroStep3")})]})})]}),b.jsxs("div",{className:"flex flex-col gap-x-[2px] gap-y-[16px] xs:flex-row xs:gap-y-0 md:gap-x-[16px]",children:[b.jsx(vY,{className:"flex max-w-full flex-row gap-x-[16px] rounded-smallish border border-gray-100 bg-white px-2x-large py-3x-large xs:min-w-0 xs:flex-shrink xs:basis-1/3 xs:px-2x-large xs:py-3x-large",children:b.jsxs(yY,{className:"flex w-full min-w-0 flex-col gap-y-xxx-large",children:[b.jsxs("div",{children:[b.jsxs("div",{className:"flex min-w-0 flex-row justify-between",children:[b.jsx(R3,{className:"min-w-0 truncate",children:e("expectedGains.parameters")}),b.jsx(xu,{onClick:()=>q(Ne=>!Ne),isOpen:le})]}),b.jsx(qc,{isOpen:le,children:b.jsx(Kd,{className:"mt-[12px]",children:e("expectedGains.parametersInfoDescriptionWithTrait",{trait:e(`expectedGains.traits.${v}`).toLowerCase()})})})]}),b.jsxs("div",{className:"flex flex-col gap-y-xx-large",children:[b.jsx("div",{className:"hidden shrink xs:block",children:Ce}),Gt,pt]}),b.jsxs("div",{"data-tooltip-id":"important-info-tooltip","data-tooltip-content":e("expectedGains.importantInfoTooltip"),className:"flex flex-row items-center gap-x-[4px] font-ibm-plex-mono text-12 font-500 leading-[140%] tracking-normal text-dark-blue",children:[b.jsx("div",{children:e("expectedGains.importantInformation")}),b.jsx(ki,{})]}),b.jsx(ri,{id:"important-info-tooltip",className:"basic_tooltip",place:"bottom",globalCloseEvents:d?{scroll:!0}:void 0})]})}),b.jsxs(xY,{className:"flex max-w-full flex-col gap-y-xx-large rounded-smallish border border-gray-100 bg-white px-2x-large pt-3x-large xs:min-w-0 xs:flex-shrink xs:basis-2/3",children:[b.jsxs("div",{children:[b.jsxs("div",{className:"flex flex-row items-center justify-between",children:[b.jsx(R3,{children:e(`expectedGains.traits.${v}`)}),b.jsx(xu,{onClick:()=>Z(Ne=>!Ne),isOpen:H})]}),b.jsx(qc,{isOpen:H,children:b.jsxs(Kd,{className:"mt-[12px]",children:[Pe?e("expectedGains.resultsInfoDescription"):`These values show the expected ${iY(v)} outcomes for ${we[w]} embryos estimated by our genetic predictors across a given number of potential embryos.`,v==="alzheimers"&&b.jsx(Kd,{className:"mt-2",children:"Note that APOE’s heavy‑tail effect slightly violates assumed normality in gain estimates."})]})})]}),b.jsxs("div",{className:"flex min-w-0 shrink flex-col gap-y-x-large",children:[b.jsx("div",{className:"flex flex-row justify-between xs:hidden",children:Ce}),b.jsxs("div",{className:"flex flex-col gap-x-x-large gap-y-x-large xs:flex-row",children:[Le,it]})]}),b.jsxs("div",{className:"_results",children:[b.jsx(Kd,{className:"mb-[8px] !text-12 !font-500",children:Pe?e("expectedGains.expectedRiskRange",{trait:e(`expectedGains.traits.${v}`),embryoCount:we[w]}):`Expected ${v} range for ${we[w]} embryos`}),t&&r?b.jsx(aY,{activeData:he}):b.jsx("div",{className:"flex min-h-[96px] items-center justify-center rounded-medium bg-gray-50 text-center font-ibm-plex-mono text-15 font-500 leading-[140%] text-dark-blue",children:e("expectedGains.selectBothAncestriesMessage")})]}),b.jsx(hY,{embryoCountIndex:w,embryoCountOptions:we,onEmbryoCountIndexChange:C,verticalOffset:-31})]})]})]}),b.jsx(uY,{isOpen:N,onClose:()=>L(!1),traitsToChooseFrom:te,selectedTrait:v,onTraitSelect:Ne=>{y(Ne),L(!1)}})]})},Ee={RETRIEVED_EGGS:"retrieved_eggs",MATURE_EGGS:"mature_eggs",THAWED_EGGS:"thawed_eggs",FERTILIZED_EMBRYOS:"fertilized_embryos",BLASTOCYSTS:"blastocysts",EUPLOID_EMBRYOS:"euploid_embryos",WARMED_EMBRYOS:"warmed_embryos",LIVE_BIRTHS:"live_births"},Zc={[Ee.RETRIEVED_EGGS]:"Retrieved Eggs",[Ee.MATURE_EGGS]:"Mature Eggs",[Ee.THAWED_EGGS]:"Thawed Eggs",[Ee.FERTILIZED_EMBRYOS]:"Fertilized Embryos",[Ee.BLASTOCYSTS]:"Blastocysts",[Ee.EUPLOID_EMBRYOS]:"Euploid Embryos",[Ee.WARMED_EMBRYOS]:"Warmed Embryos",[Ee.LIVE_BIRTHS]:"Live Births"},bY=Object.entries(Zc).reduce((e,[t,n])=>(e[n]=t,e),{}),mu=[Ee.RETRIEVED_EGGS,Ee.MATURE_EGGS,Ee.THAWED_EGGS,Ee.FERTILIZED_EMBRYOS,Ee.BLASTOCYSTS,Ee.EUPLOID_EMBRYOS,Ee.WARMED_EMBRYOS,Ee.LIVE_BIRTHS];function lf(e){return Object.values(Zc).includes(e)?e:Zc[e]||e}function wY(e){return Object.values(Ee).includes(e)?e:bY[e]||e}function SY(e){return Object.values(Ee).includes(e)}function Sh(e){return SY(e)?e:wY(e)}const _Y={[Ee.RETRIEVED_EGGS]:"Retrieved",[Ee.MATURE_EGGS]:"Mature",[Ee.THAWED_EGGS]:"Thawed",[Ee.FERTILIZED_EMBRYOS]:"Fertilized",[Ee.BLASTOCYSTS]:"Blasts",[Ee.EUPLOID_EMBRYOS]:"Euploid",[Ee.WARMED_EMBRYOS]:"Warmed",[Ee.LIVE_BIRTHS]:"Births"};function CY(e){const t=Sh(e);return _Y[t]||e}function EY(e){const t=lf(e);return{"Retrieved Eggs":"Retrieved eggs","Mature Eggs":"Mature eggs","Thawed Eggs":"Thawed eggs","Fertilized Embryos":"Fertilized embryos",Blastocysts:"Blastocysts","Euploid Embryos":"Euploid embryos","Warmed Embryos":"Warmed embryos","Live Births":"Live births"}[t]||t}const OY={[Ee.RETRIEVED_EGGS]:"eggs_retrieved",[Ee.MATURE_EGGS]:"mature_eggs",[Ee.THAWED_EGGS]:"egg_freeze_thaw",[Ee.FERTILIZED_EMBRYOS]:"fertilization",[Ee.BLASTOCYSTS]:"blastocyst",[Ee.EUPLOID_EMBRYOS]:"euploid",[Ee.WARMED_EMBRYOS]:"embryo_freeze_thaw",[Ee.LIVE_BIRTHS]:"live_birth"};function PY(e){const t=Sh(e);return OY[t]||"eggs_retrieved"}const AY={[Ee.RETRIEVED_EGGS]:"The percentage that progress to this stage.",[Ee.MATURE_EGGS]:"The percentage of retrieved eggs that are mature and ready for fertilization.",[Ee.THAWED_EGGS]:"The percentage of frozen eggs that survive the thawing process.",[Ee.FERTILIZED_EMBRYOS]:"The percentage of eggs that successfully fertilize.",[Ee.BLASTOCYSTS]:"The percentage of fertilized embryos that develop to the blastocyst stage (Day 5).",[Ee.EUPLOID_EMBRYOS]:"The percentage of blastocysts that are chromosomally normal (euploid).",[Ee.WARMED_EMBRYOS]:"The percentage of frozen embryos that survive the thawing process.",[Ee.LIVE_BIRTHS]:"The percentage of embryo transfers that result in live births."};function tA(e){const t=Sh(e);return AY[t]||"The percentage that progress to this stage."}const TY={retrieved_eggs_mature_eggs:"Immature eggs",mature_eggs_thawed_eggs:`Lost in thaw`,mature_eggs_fertilized_embryos:"Fertilization failure",thawed_eggs_fertilized_embryos:"Fertilization failure",fertilized_embryos_blastocysts:"Development failure",blastocysts_euploid_embryos:"Aneuploid embryos",euploid_embryos_warmed_embryos:`Lost in warming`,warmed_embryos_live_births:"Pregnancy loss"};function tE(e,t){const n=Sh(e),r=Sh(t),i=`${n}_${r}`;return TY[i]||""}const kY=e=>({elective_baseline:"Elective - Baseline",elective_optimistic:"Elective - Optimistic",non_elective_ovulatory:"Non-Elective - PCOS / Ovulatory",non_elective_tubal:"Non-Elective - Tubal Disease",non_elective_endometriosis:"Non-Elective - Endometriosis",non_elective_male_factor:"Non-Elective - Male Factor",non_elective_unexplained:"Non-Elective - Unexplained"})[e]||e,nA=e=>({top10:"Top 10%",average:"Average",bottom10:"Bottom 10%"})[e||"top10"]||"Top 10%",Cw={"Retrieved eggs":"Eggs collected from the ovaries, typically ranging from 0-30+ depending on age and ovarian reserve.","Mature eggs":"Eggs that have completed their first meiotic division and are ready for fertilization, typically ~80% of retrieved eggs.","Thawed eggs":"Previously frozen eggs that survive the thawing process, with modern vitrification achieving ~89% survival rates.","Fertilized embryos":"Eggs successfully fertilized by sperm to form embryos, typically achieving 70% fertilization rate with ICSI.",Blastocysts:"Day 5-6 embryos that have developed into a structure ready for implantation or genetic testing.","Euploid embryos":"Genetically tested embryos with the correct number of chromosomes, strongly predicting successful pregnancy.","Warmed embryos":"Frozen embryos that survive the thawing process for transfer, with ~95% survival using modern vitrification.","Live births":"Successful pregnancies resulting in live birth, the ultimate goal of IVF treatment."},rA={"Immature eggs":"Eggs that fail to complete meiotic division that are not suitable for fertilization.","Lost in\nthaw":"Eggs that don't survive the freezing and thawing process.","Fertilization failure":"Mature eggs that fail to fertilize despite sperm exposure.","Development failure":"Fertilized embryos that stop developing before reaching the blastocyst stage.","Aneuploid embryos":"Embryos with abnormal chromosome counts unlikely to result in successful pregnancy.","Lost in\nwarming":"Frozen embryos that don't survive the thawing process before transfer.","Pregnancy loss":"Transferred embryos that don't result in live birth due to implantation failure or miscarriage."};function dy(e){if(e<.5)return Math.log(Math.PI)-Math.log(Math.sin(Math.PI*e))-dy(1-e);e--;const t=7,n=[.9999999999998099,676.5203681218851,-1259.1392167224028,771.3234287776531,-176.6150291621406,12.507343278686905,-.13857109526572012,9984369578019572e-21,15056327351493116e-23];let r=n[0];for(let o=1;oe||t<0)return 0;if(t===0)return 1;if(!Number.isInteger(e)){const r=dy(e+1)-dy(t+1)-dy(e-t+1);return Math.exp(r)}if(t===e)return 1;t=Math.min(t,e-t);let n=1;for(let r=0;rt||e<0?0:t===0?e===0?1:0:_I(t,e)*Math.pow(n,e)*Math.pow(1-n,t-e)}function iA(e,t,n){return e<0?0:_I(e+t-1,e)*Math.pow(n,t)*Math.pow(1-n,e)}function oA(e){return 1/(1+Math.exp(-e))}function fu(e,t,n=!1){const r=new Array(e.length).fill(0);for(let i=0;i100?CI(r):r}function CI(e,t=1e-6){if(e.length===0)return e;let n=0;const r=[];for(const c of e)n+=c,r.push(n);if(n===0)return e;for(let c=0;ct){i=c;break}let o=e.length-1;for(let c=e.length-1;c>=0;c--)if(r[c]<1-t){o=c+1;break}const a=500;if(o-i>a){const c=e.indexOf(Math.max(...e)),d=Math.floor(a/2);i=Math.max(0,c-d),o=Math.min(e.length,i+a)}const l=new Array(o+1).fill(0);for(let c=i;c<=o;c++)l[c]=e[c];return l}function Ew(e,t=!1){if(!e.length)return[];if(e.length===1)return e[0];let n=e[0];for(let i=1;i500&&(n=CI(n));const r=n.reduce((i,o)=>i+o,0);return r>0&&(n=n.map(i=>i/r)),n}function MY(e,t){const n=new Array(e.length+t.length-1).fill(0);for(let r=0;r=0&&en.length));return e.map(n=>n.lengtht+r*n,0)}function Ow(e){let t=0;for(let n=0;n=.5)return n;return e.length-1}function Xd(e,t){const n=t/100;let r=0;for(let i=0;i=n)return i;return e.length-1}let EI=class{constructor(t){vm(this,"models");vm(this,"fertilityProfiles");this.models=t,this.fertilityProfiles=t.fertility_profiles.profiles}getFertilityProfileMapping(t,n="eggs"){if(!this.fertilityProfiles[t])throw new Error(`Unknown fertility profile: ${t}`);const r=this.fertilityProfiles[t];if(n==="eggs")return{main_reason:r.main_reason||"Treatment - IVF",infertility_type:r.eggs_infertility||"none"};if(n==="maturity")return{infertility_type:r.maturity_infertility||"none"};if(n==="fertilization")return{infertility_type:r.fertilization_infertility||"none"};throw new Error(`Unknown model stage: ${n}`)}getRegionalCalibrationFactor(t,n="US"){if(n!=="US")return 1;t=Math.max(18,Math.min(50,t));const r=this.models.calibration.sart_calibration_factors;return t<35?r.age_18_34:t>=35&&t<38?r.age_35_37:t>=38&&t<41?r.age_38_40:t>=41&&t<43?r.age_41_42:r.age_43_plus}buildLinearPredictor(t,n,r,i,o){let a=t["(Intercept)"]||0;if(a+=(t.patient_age_at_treatment||0)*n,a+=(t.stimulation_used||0)*o,r==="Treatment - IVF"?a+=t.main_reasontreatment||0:r==="Egg/Embryo storage"&&(a+=t.main_reasonstorage||0),i!=="endometriosis"){const l=`infertility_type${i}`;a+=t[l]||0}return a}predictEggsRetrieved(t,n="non_elective_tubal",r=1,i="US"){const o=this.generateEggsDistribution(t,n,r,i,50);return Zo(o)}generateEggsDistribution(t,n="non_elective_tubal",r=1,i="US",o=50){const a=this.models.egg_retrieval,l=this.getFertilityProfileMapping(n,"eggs"),c=l.main_reason,d=l.infertility_type,h=this.buildLinearPredictor(a.count_coefficients,t,c,d,r),m=this.buildLinearPredictor(a.zero_coefficients,t,c,d,r),v=oA(m);let y=Math.exp(h);const w=a.theta,C=this.getRegionalCalibrationFactor(t,i);y*=C;const _=new Array(o+1).fill(0);for(let T=0;T<=o;T++)if(T===0){const A=iA(0,w,w/(w+y));_[T]=v+(1-v)*A}else _[T]=(1-v)*iA(T,w,w/(w+y));const P=_.reduce((T,A)=>T+A,0);return _.map(T=>T/P)}predictRate(t,n,r,i,o,a){const l=this.models[t];if(l.model_type==="tiered_lookup_table"&&n!==void 0){const h=a||"top10",m=l.tiers[h];if(!m)throw new Error(`Cohort ${h} not found in tiered model ${t}`);const v=m.rates||{},y=String(n);if(y in v)return v[y];if(n<18)return v[18];if(n>50)return v[50];throw new Error(`Age ${n} not found in lookup table for ${t}`)}if(l.model_type==="lookup_table"&&n!==void 0){const h=l.rates||{},m=String(n);if(m in h)return h[m];if(n<18)return h[18];if(n>50)return h[50];throw new Error(`Age ${n} not found in lookup table for ${t}`)}const c=l.coefficients;let d=c["(Intercept)"]||0;if(n!==void 0&&(d+=(c.patient_age_at_treatment||0)*n,d+=(c.age||0)*n),i!==void 0&&(d+=(c.stimulation_used||0)*i),o&&o!=="ICSI"){const h=`treatment_type${o}`;d+=c[h]||0}if(r&&(t==="maturity_rate"||t==="fertilization_rate")){const h=t==="maturity_rate"?"maturity":"fertilization",v=this.getFertilityProfileMapping(r,h).infertility_type;if(v!=="endometriosis"){const y=`infertility_type${v}`;d+=c[y]||0}}return oA(d)}predictSingleCycle(t,n,r,i,o,a,l,c,d,h){const m={inputs:{age:t,fertilityProfile:n,stimulationUsed:r,treatmentType:i,usePgtA:o,freezeEggs:a,region:l,lbrCohort:h},stages:[],rates:{},expectedValues:{}};let v,y=0,w=-1;if(c&&d!==void 0){if(w=mu.indexOf(c),w===-1)throw new Error(`Unknown stage name: ${c}`);for(let C=0;C0?(m[c]=1-d,c+1<=h&&(m[c+1]=d)):m[c]=1;const v=fu(m,l);r.push(v)}return r.length===1?r[0]:Ew(r)}predictFullCycle(t,n="non_elective_tubal",r=1,i="ICSI",o=!0,a="US",l="top10"){if(!t.length)throw new Error("At least one cycle must be provided");const c=[];let d=1/0;for(const T of t)if(T.knownStageName&&T.knownValue!==void 0){const A=mu.indexOf(T.knownStageName);A!==-1&&AT.freezeEggs),region:a,lbrCohort:l},stages:[],rates:{},expectedValues:{},cycleResults:c},m=mu,v=t.some(T=>T.freezeEggs),y=[];for(const T of m){const A=c.some(I=>I.stages.some(M=>M.name===T));(T===Ee.THAWED_EGGS&&v||A)&&y.push(T)}for(const T of y){const A=[],I=[],M=[];let N=!1,L=!0,F=!0;const B=[];for(let H=0;HH.knownStageName&&H.knownValue!==void 0);if(L||W&&G){const H={name:T,distribution:null,mean:"N/A",median:"N/A",percentile10:"N/A",percentile90:"N/A"};if(W&&G){const Z=t.reduce((X,z)=>z.knownStageName===T?X+(z.knownValue||0):X,0);Z>0&&(H.knownValue=Z)}h.stages.push(H);continue}const ie=A.filter(H=>H!==null);if(N){const H=NY(ie);ie.splice(0,ie.length,...H)}let te=Ew(ie,N);const se=[...te],le={};if(t.length>1&&ie.length>0){const H=[];for(let Z=1;Z<=ie.length;Z++){const X=ie.slice(0,Z),z=Ew(X,N);H.push(z)}for(let Z=0;ZMe.length)),J=new Array(z).fill(0);for(let Me=0;MeMath.max(0,je-Pe[re]));le[`cycle${Z+1}`]=we}}}const q={name:T,distribution:se,mean:Zo(te),median:Ow(te),percentile10:Xd(te,10),percentile90:Xd(te,90)};if(Object.keys(le).length>0&&(q.cumulativeDistributions=le),N&&(q.isFromPointDistribution=!0),F&&B.length>0){const H=[...new Set(B.filter(Z=>Z!==void 0))];H.length===1&&(q.knownValue=H[0])}if(I.length>0&&I.length===M.length){const H=M.reduce((Z,X)=>Z+X,0);if(H>0){const Z=I.reduce((X,z,J)=>X+z*M[J]/H,0);q.survivalRate=Z}else q.survivalRate=I.reduce((Z,X)=>Z+X,0)/I.length}else I.length>0&&(q.survivalRate=I.reduce((H,Z)=>H+Z,0)/I.length);h.stages.push(q)}const w=new Set;for(const T of c)Object.keys(T.rates).forEach(A=>w.add(A));for(const T of w){const A=c.filter(I=>T in I.rates).map(I=>I.rates[T]);A.length>0&&(h.rates[T]=A.reduce((I,M)=>I+M,0)/A.length)}const C=new Set;for(const T of c)Object.keys(T.expectedValues).forEach(A=>C.add(A));for(const T of C){const A=c.filter(I=>T in I.expectedValues).map(I=>I.expectedValues[T]);A.length>0&&(h.expectedValues[T]=A.reduce((I,M)=>I+M,0))}const _=Math.min(3,Math.floor(h.expectedValues.embryosForTransfer||0)),P=h.rates.liveBirthPerTransfer||0;return _>0?h.cumulativeLiveBirthRate=1-Math.pow(1-P,_):h.cumulativeLiveBirthRate=0,h}};const Ay=()=>({fertilityProfile:"elective_baseline",cycles:[{age:30}],lbrCohort:"top10",currentStageName:null,viewMode:"median"}),aA=e=>{const t={};return t.fp=e.fertilityProfile,e.cycles.forEach((n,r)=>{const i=r+1;i<=6&&(t[`c${i}_age`]=n.age.toString(),n.freezeEggs&&(t[`c${i}_frozen`]="1"),n.knownStageName&&(t[`c${i}_ks`]=n.knownStageName,n.knownValue!==void 0&&(t[`c${i}_kv`]=n.knownValue.toString())))}),t.lbr=e.lbrCohort,e.currentStageName&&(t.cs=e.currentStageName),t.vm=e.viewMode,t},RY=e=>{const t=Ay(),n=e.fp||t.fertilityProfile,r=[];for(let l=1;l<=6;l++){const c=e[`c${l}_age`];if(c){const d=parseInt(c,10);if(!isNaN(d)&&d>=18&&d<=50){const h={age:d};e[`c${l}_frozen`]==="1"&&(h.freezeEggs=!0);const v=e[`c${l}_ks`],y=e[`c${l}_kv`];if(v&&y){const w=parseInt(y,10);!isNaN(w)&&w>=0&&(h.knownStageName=v,h.knownValue=w)}r.push(h)}}}r.length===0&&r.push(t.cycles[0]);const i=e.lbr==="average"||e.lbr==="bottom10"?e.lbr:"top10";let o=null;e.cs&&(o=e.cs);const a=e.vm==="low"||e.vm==="high"?e.vm:"median";return{fertilityProfile:n,cycles:r,lbrCohort:i,currentStageName:o,viewMode:a}},sA=e=>{const t=new URLSearchParams;return e.has("iframe")&&t.set("iframe",e.get("iframe")),e.has("lang")&&t.set("lang",e.get("lang")),e.has("metric")&&t.set("metric",e.get("metric")),t},LY=()=>{const[e,t]=q7(),n=O.useRef(null),r=O.useRef(!0),i=O.useMemo(()=>{const a={};if(e.forEach((c,d)=>{a[d]=c}),!(a.fp||a.c1_age)&&r.current){const c=Ay(),d=aA(c),h=sA(e);return Object.entries(d).forEach(([m,v])=>{v!==void 0&&v!==""&&h.set(m,v)}),t(h,{replace:!0}),c}return RY(a)},[]),o=O.useCallback((a,l=!1)=>{n.current&&clearTimeout(n.current);const c=()=>{const d=aA(a),h=sA(e);Object.entries(d).forEach(([y,w])=>{w!==void 0&&w!==""?h.set(y,w):h.delete(y)});const m=e.toString(),v=h.toString();m!==v&&t(h,{replace:!0})};l?c():n.current=setTimeout(c,500)},[e,t]);return O.useEffect(()=>(r.current=!1,()=>{n.current&&clearTimeout(n.current)}),[]),{initialState:i,updateUrlParams:o}},lA=[{label:"Elective - Baseline",value:"elective_baseline"},{label:"Elective - Optimistic",value:"elective_optimistic"},{label:"Non-Elective - PCOS / Ovulatory",value:"non_elective_ovulatory"},{label:"Non-Elective - Tubal Disease",value:"non_elective_tubal"},{label:"Non-Elective - Endometriosis",value:"non_elective_endometriosis"},{label:"Non-Elective - Male Factor",value:"non_elective_male_factor"},{label:"Non-Elective - Unexplained",value:"non_elective_unexplained"}],DY=({fertilityProfile:e,setFertilityProfile:t,onClear:n})=>{const r=Ps(),[i,o]=O.useState(!1),[a,l]=O.useState(!0),[c,d]=O.useState(!1),h=lA.find(m=>m.value===e);return b.jsxs("div",{className:"flex flex-col px-2x-large",children:[b.jsxs("div",{className:"hidden sm:flex sm:min-h-[32px] sm:items-center sm:justify-between",children:[b.jsx("h3",{className:"font-ibm-plex-mono text-15 font-500 leading-[140%] text-dark-blue",children:"Your Fertility Profile"}),b.jsxs("div",{className:"flex items-center gap-4",children:[n&&b.jsxs("button",{onClick:n,className:"flex items-center gap-1 opacity-70 transition-opacity hover:opacity-100",children:[b.jsx("span",{className:"font-ibm-plex-mono text-12 font-500 leading-[140%] text-dark-blue",children:"CLEAR"}),b.jsx(vO,{className:"text-dark-blue",size:18,strokeWidth:.5})]}),b.jsx(xu,{isOpen:i,onClick:()=>o(!i)})]})]}),b.jsxs("div",{className:"flex flex-col gap-3 sm:hidden",children:[b.jsxs("div",{className:"flex items-center justify-between",children:[b.jsx("h3",{className:"font-ibm-plex-mono text-15 font-500 leading-[140%] text-dark-blue",children:"Your Fertility Profile"}),b.jsx(xu,{isOpen:i,onClick:()=>o(!i)})]}),n&&b.jsx("div",{className:"flex justify-start",children:b.jsxs("button",{onClick:n,className:"flex items-center gap-1 opacity-70 transition-opacity hover:opacity-100",children:[b.jsx("span",{className:"font-ibm-plex-mono text-12 font-500 leading-[140%] text-dark-blue",children:"CLEAR"}),b.jsx(vO,{className:"text-dark-blue",size:18,strokeWidth:.5})]})})]}),b.jsx("div",{className:"mt-4 border-t border-gray-100"}),b.jsx("p",{className:"mt-4 font-ibm-plex-mono text-15 font-400 leading-[155%] text-black",children:"This calculator predicts your chances at each stage of IVF treatment, from egg retrieval through live birth. Start by inputting your fertility profile and some key information about any completed or planned IVF cycles."}),b.jsx(qc,{isOpen:i,children:b.jsxs("div",{className:"mt-4",children:[b.jsx("p",{className:"mb-4 font-ibm-plex-mono text-15 font-400 leading-[155%]",children:"For patients undergoing IVF due to fertility challenges, we offer tailored profiles that reflect common clinical diagnoses — including ovulatory disorders, tubal factor, endometriosis, and male factor infertility. These profiles adjust the calculator's estimates to better reflect the unique considerations and success rates associated with each condition."}),b.jsx("p",{className:"font-ibm-plex-mono text-15 font-400 leading-[155%]",children:"For those pursuing IVF electively (e.g., for fertility preservation, embryo selection, or non-infertility-related reasons), we also provide profiles based on average or above-average fertility indicators to offer realistic planning benchmarks."})]})}),b.jsx("div",{className:"mt-xx-large",children:b.jsxs("div",{className:"flex w-full flex-col gap-y-[8px] sm:w-1/2",children:[b.jsxs("div",{className:"flex flex-row items-center gap-x-[6px]",children:[b.jsx("label",{className:"font-ibm-plex-mono text-12 font-500 leading-[140%] text-dark-blue",children:"Your Fertility Profile"}),b.jsx("div",{"data-tooltip-id":"fertility-profile-tooltip","data-tooltip-html":"Non-elective profiles are for patients with diagnosed fertility challenges. Elective profiles are for patients without fertility issues who are pursuing IVF for reasons like fertility preservation or genetic screening.

'Baseline' provides conservative estimates while 'Optimistic' reflects outcomes for those with exceptional fertility indicators.",onMouseEnter:()=>{d(!0),l(!0)},onMouseLeave:()=>{d(!1),l(!1),setTimeout(()=>{l(!0)},50)},children:b.jsx(ki,{})}),a&&b.jsx(ri,{id:"fertility-profile-tooltip",className:"basic_tooltip",globalCloseEvents:r?{scroll:!0}:void 0})]}),b.jsx(Km,{value:h,onChange:m=>{m&&t(m.value)},options:lA,className:"embryo-select",placeholder:"Please select"})]})})]})},OI=({className:e,size:t=16})=>b.jsx("svg",{width:t,height:t,viewBox:"0 0 16 17",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:e,children:b.jsx("path",{d:"M2 4.50001H14M12.6667 4.50001V13.8333C12.6667 14.5 12 15.1667 11.3333 15.1667H4.66667C4 15.1667 3.33333 14.5 3.33333 13.8333V4.50001M5.33333 4.50001V3.16668C5.33333 2.50001 6 1.83334 6.66667 1.83334H9.33333C10 1.83334 10.6667 2.50001 10.6667 3.16668V4.50001",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"})}),Pw=({cycle:e,index:t,onChange:n,onRemove:r,canRemove:i})=>{var le;const[o,a]=O.useState(e.age.toString()),[l,c]=O.useState(null),[d,h]=O.useState(((le=e.knownValue)==null?void 0:le.toString())||""),[m,v]=O.useState(null),[y,w]=O.useState(!!(e.knownStageName&&!e.freezeEggs)),C=Ps(),[_,P]=O.useState(!0),[T,A]=O.useState(!1),[I,M]=O.useState(!0),[N,L]=O.useState(!1);O.useEffect(()=>{a(e.age.toString())},[e.age]),O.useEffect(()=>{var q;h(((q=e.knownValue)==null?void 0:q.toString())||"")},[e.knownValue]),O.useEffect(()=>{w(!!e.knownStageName)},[e.knownStageName]);const F=q=>{if(a(q),q===""){c(null);return}const H=parseInt(q);isNaN(H)?c(null):H<18||H>50?c("Age must be from 18 to 50"):(c(null),n({...e,age:H}))},B=()=>{const q=parseInt(o);isNaN(q)||o===""?(c("Age is required"),a(e.age.toString())):(q<18||q>50)&&(a(e.age.toString()),c(null))},U=()=>{const q={...e,freezeEggs:!e.freezeEggs};n(q)},W=()=>{const q=!y;if(w(q),!q){const H={...e};delete H.knownStageName,delete H.knownValue,n(H),h(""),v(null)}},G=q=>{if(h(q),q===""){v(null);return}const H=parseInt(q);if(isNaN(H))v(null);else if(H<1||H>100)v("Value must be from 1 to 100");else{v(null);const Z={...e,knownValue:H};n(Z)}},ie=()=>{var H;const q=parseInt(d);if(d===""||isNaN(q)){const Z={...e};delete Z.knownValue,n(Z),h(""),v(null)}else(q<1||q>100)&&(h(((H=e.knownValue)==null?void 0:H.toString())||""),v(null))},te=q=>{if(q)n({...e,knownStageName:q.value});else{const H={...e};delete H.knownStageName,delete H.knownValue,n(H),h(""),v(null)}},se=(()=>{const q=[],H=[Ee.RETRIEVED_EGGS,Ee.MATURE_EGGS,...e.freezeEggs?[Ee.THAWED_EGGS]:[],Ee.FERTILIZED_EMBRYOS,Ee.BLASTOCYSTS,Ee.EUPLOID_EMBRYOS];for(const Z of H){let X=Zc[Z];Z===Ee.FERTILIZED_EMBRYOS?X="Fertilized":Z===Ee.MATURE_EGGS&&e.freezeEggs&&(X="Frozen Eggs"),q.push({label:X,value:Z})}return q})();return b.jsxs("div",{className:"rounded-smallish border border-input-border bg-white",children:[b.jsxs("div",{className:"flex h-[56px] items-center justify-between rounded-t-smallish px-2x-large",children:[b.jsxs("span",{className:"font-ibm-plex-mono text-15 font-500 leading-[140%] text-dark-blue",children:["Cycle ",t+1]}),i&&r&&b.jsx("button",{onClick:r,className:"group rounded p-1 transition-colors hover:bg-transparent",children:b.jsx(OI,{size:16,className:"text-[#BFBFBF] transition-colors group-hover:text-dark-blue"})})]}),b.jsx("div",{className:"rounded-b-smallish border-t border-input-border px-2x-large pb-2x-large",children:b.jsxs("div",{className:"mt-[16px] flex flex-col gap-y-x-large",children:[b.jsxs("div",{className:"flex items-center justify-between",children:[b.jsxs("div",{className:"flex flex-row items-center gap-x-2",children:[b.jsx("label",{className:"font-ibm-plex-mono text-12 font-500 leading-[140%] text-dark-blue",children:"Frozen Eggs Cycle?"}),b.jsx("div",{"data-tooltip-id":`frozen-eggs-tooltip-${t}`,"data-tooltip-content":"If this is a frozen eggs cycle, you should select this option to include egg freezing in the calculation.",onMouseEnter:()=>{A(!0),P(!0)},onMouseLeave:()=>{A(!1),P(!1),setTimeout(()=>{P(!0)},50)},children:b.jsx(ki,{})}),_&&b.jsx(ri,{id:`frozen-eggs-tooltip-${t}`,className:"basic_tooltip",globalCloseEvents:C?{scroll:!0}:void 0})]}),b.jsxs("button",{onClick:U,className:`relative inline-flex h-6 w-11 items-center rounded-full transition-colors ${e.freezeEggs?"bg-dark-blue":"bg-gray-300"}`,"aria-checked":e.freezeEggs||!1,role:"switch",children:[b.jsx("span",{className:"sr-only",children:"Toggle frozen eggs cycle"}),b.jsx("span",{className:`inline-block h-5 w-5 transform rounded-full bg-white transition-transform ${e.freezeEggs?"translate-x-5":"translate-x-0.5"}`})]})]}),b.jsxs("div",{className:"flex flex-col",children:[b.jsx("label",{className:"mb-[8px] font-ibm-plex-mono text-12 font-500 leading-[140%] text-dark-blue",children:e.freezeEggs?"Age at freezing (mother)":"Age (mother)"}),b.jsx("input",{type:"number",min:"18",max:"50",value:o,onChange:q=>F(q.target.value),onBlur:B,onFocus:q=>{q.target.select()},className:`ring-none w-full rounded-smallish border px-[12px] py-[12px] font-ibm-plex-mono text-15 font-400 leading-[140%] outline-none transition-all duration-[400ms] placeholder:text-gray-400 ${l?"border-error-700 bg-error-250 text-error-700":"border-input-border bg-white text-dark-blue"}`}),b.jsx(xo,{initial:!1,children:l&&b.jsx(Cn.div,{initial:{height:0,opacity:0},animate:{height:"auto",opacity:1},exit:{height:0,opacity:0},transition:{duration:.2,ease:"easeInOut"},style:{overflow:"hidden",marginTop:"4px"},children:b.jsx("span",{className:"font-ibm-plex-mono text-12 font-300 text-error-700",children:l})})})]}),b.jsxs(b.Fragment,{children:[b.jsx("div",{className:"-mx-2x-large border-t border-input-border"}),b.jsxs("div",{className:"flex items-center justify-between",children:[b.jsxs("div",{className:"flex flex-row items-start gap-x-2",children:[b.jsxs("label",{className:"font-ibm-plex-mono text-12 font-500 leading-[140%] text-dark-blue",children:["Cycle partially",b.jsx("span",{className:"sm:hidden",children:" "}),b.jsx("br",{className:"hidden sm:block"}),"completed?"]}),b.jsx("div",{"data-tooltip-id":`known-stage-tooltip-${t}`,"data-tooltip-content":"If you've completed part of this cycle, select the most recent stage you've reached and enter the actual number achieved at that stage.",onMouseEnter:()=>{L(!0),M(!0)},onMouseLeave:()=>{L(!1),M(!1),setTimeout(()=>{M(!0)},50)},children:b.jsx(ki,{})}),I&&b.jsx(ri,{id:`known-stage-tooltip-${t}`,className:"basic_tooltip",globalCloseEvents:C?{scroll:!0}:void 0})]}),b.jsxs("button",{onClick:W,className:`relative inline-flex h-6 w-11 items-center rounded-full transition-colors ${y?"bg-dark-blue":"bg-gray-300"}`,"aria-checked":y,role:"switch",children:[b.jsx("span",{className:"sr-only",children:"Toggle partially completed cycle"}),b.jsx("span",{className:`inline-block h-5 w-5 transform rounded-full bg-white transition-transform ${y?"translate-x-5":"translate-x-0.5"}`})]})]}),b.jsx(xo,{initial:!1,children:y&&b.jsxs(Cn.div,{initial:{height:0,opacity:0},animate:{height:"auto",opacity:1},exit:{height:0,opacity:0},transition:{duration:.2,ease:"easeInOut"},style:{overflow:"hidden"},className:"flex flex-col",children:[b.jsx("label",{className:"mb-[8px] font-ibm-plex-mono text-12 font-500 leading-[140%] text-dark-blue",children:"Latest completed stage"}),b.jsx(Km,{value:e.knownStageName?se.find(q=>q.value===e.knownStageName):null,onChange:te,options:se,className:"embryo-select",placeholder:"Select stage",menuPortalTarget:document.body,menuPosition:"fixed"})]})}),b.jsx(xo,{initial:!1,children:y&&e.knownStageName&&b.jsxs(Cn.div,{initial:{height:0,opacity:0},animate:{height:"auto",opacity:1},exit:{height:0,opacity:0},transition:{duration:.2,ease:"easeInOut"},style:{overflow:"hidden"},className:"flex flex-col",children:[b.jsx("label",{className:"mb-[8px] font-ibm-plex-mono text-12 font-500 leading-[140%] text-dark-blue",children:{[Ee.RETRIEVED_EGGS]:"Number of retrieved eggs",[Ee.MATURE_EGGS]:e.freezeEggs?"Number of eggs frozen":"Number of mature eggs",[Ee.THAWED_EGGS]:"Number of thawed eggs",[Ee.FERTILIZED_EMBRYOS]:"Number of fertilized embryos",[Ee.BLASTOCYSTS]:"Number of blastocysts",[Ee.EUPLOID_EMBRYOS]:"Number of euploid embryos",[Ee.WARMED_EMBRYOS]:"Number of warmed embryos",[Ee.LIVE_BIRTHS]:"Number of live births"}[e.knownStageName]||"Known value"}),b.jsx("input",{type:"number",min:"1",max:"100",value:d,onChange:q=>G(q.target.value),onBlur:ie,onFocus:q=>{q.target.select()},placeholder:"Enter Number",className:`ring-none w-full rounded-smallish border px-[12px] py-[12px] font-ibm-plex-mono text-15 font-400 leading-[140%] outline-none transition-all duration-[400ms] placeholder:text-gray-400 ${m?"border-error-700 bg-error-250 text-error-700":"border-input-border bg-white text-dark-blue"}`}),b.jsx(xo,{initial:!1,children:m&&b.jsx(Cn.div,{initial:{height:0,opacity:0},animate:{height:"auto",opacity:1},exit:{height:0,opacity:0},transition:{duration:.2,ease:"easeInOut"},style:{overflow:"hidden",marginTop:"4px"},children:b.jsx("span",{className:"font-ibm-plex-mono text-12 font-300 text-error-700",children:m})})})]})})]})]})})]})},Aw=({cycleNumber:e})=>b.jsx("div",{className:"flex min-h-full flex-col items-center justify-center rounded-smallish border border-input-border bg-[#F5F8F9]",children:b.jsxs("div",{className:"text-center font-ibm-plex-mono text-12 font-500 leading-[140%] text-[#8F959B]",children:[b.jsxs("div",{children:["Cycle ",e]}),b.jsx("div",{children:"Not yet added"})]})}),$Y=({cycles:e,setCycles:t,resetPagination:n})=>{const r=Ps(),[i,o]=O.useState(0),[a,l]=O.useState(0),[c,d]=O.useState(0),[h,m]=O.useState(!0),[v,y]=O.useState(!1),[w,C]=O.useState(()=>e.map((A,I)=>`cycle-${Date.now()}-${I}`));O.useEffect(()=>{w.length!==e.length&&C(e.map((A,I)=>`cycle-${Date.now()}-${I}`))},[e.length]),O.useEffect(()=>{n&&(o(0),l(0),d(0))},[n]);const _=(A,I)=>{const M=[...e];M[A]=I,t(M)},P=A=>{const I=e.filter((F,B)=>B!==A),M=w.filter((F,B)=>B!==A);if(t(I),C(M),A===i&&i>0&&A>=I.length&&o(Math.max(0,i-1)),Math.floor(A/2)===a&&a>0){const F=a*2;I.length>F||l(Math.max(0,a-1))}if(Math.floor(A/3)===c&&c>0){const F=c*3;I.length>F||d(Math.max(0,c-1))}},T=()=>{var A;if(e.length<6){t([...e,{age:((A=e[e.length-1])==null?void 0:A.age)||30}]),C([...w,`cycle-${Date.now()}-${w.length}`]);const I=e.length;o(I),l(Math.floor(I/2)),d(Math.floor(I/3))}};return b.jsxs("div",{className:"flex flex-col gap-y-[16px]",children:[b.jsxs("div",{className:"flex h-8 items-end justify-between px-2x-large",children:[b.jsxs("div",{className:"flex flex-row items-center gap-x-[6px]",children:[b.jsxs("h3",{className:"font-ibm-plex-mono text-12 font-500 leading-[140%] text-dark-blue",children:["IVF Cycles (",e.length,")"]}),b.jsx("div",{"data-tooltip-id":"cycles-tooltip","data-tooltip-content":"Add up to 6 IVF cycles to see cumulative success rates. Each cycle can have a different age to account for time between cycles.",onMouseEnter:()=>{y(!0),m(!0)},onMouseLeave:()=>{y(!1),m(!1),setTimeout(()=>{m(!0)},50)},children:b.jsx(ki,{})}),h&&b.jsx(ri,{id:"cycles-tooltip",className:"basic_tooltip",globalCloseEvents:r?{scroll:!0}:void 0})]}),e.length<6&&b.jsxs("button",{onClick:T,className:"flex h-8 items-center gap-2 rounded-full bg-dark-blue px-4 text-white transition-all hover:bg-opacity-90 active:scale-95",children:[b.jsx(oC,{size:16,className:"text-white"}),b.jsx("span",{className:"hidden font-ibm-plex-mono text-12 font-normal leading-[140%] sm:block",children:"ADD ADDITIONAL CYCLE"}),b.jsx("span",{className:"font-ibm-plex-mono text-12 font-normal leading-[140%] sm:hidden",children:"ADD CYCLE"})]})]}),b.jsx("div",{className:"relative block overflow-hidden sm:hidden",children:b.jsx("div",{className:"flex transition-transform duration-300 ease-out",style:{transform:`translateX(-${i*100}%)`},children:[0,1,2,3,4,5].map(A=>{const I=e[A],M=w[A];return b.jsx("div",{className:"grid w-full flex-shrink-0 grid-cols-1 gap-[16px] px-2x-large",children:I?b.jsx(Pw,{cycle:I,index:A,onChange:N=>_(A,N),onRemove:()=>P(A),canRemove:e.length>1},M):b.jsx(Aw,{cycleNumber:A+1},`empty-${A}`)},`mobile-page-${A}`)})})}),b.jsx("div",{className:"relative hidden overflow-hidden sm:block lg:hidden",children:b.jsx("div",{className:"flex transition-transform duration-300 ease-out",style:{transform:`translateX(-${a*100}%)`},children:[0,1,2].map(A=>b.jsx("div",{className:"grid w-full flex-shrink-0 grid-cols-2 gap-[16px] px-2x-large",children:[0,1].map(I=>{const M=A*2+I,N=e[M],L=w[M];return N?b.jsx(Pw,{cycle:N,index:M,onChange:F=>_(M,F),onRemove:()=>P(M),canRemove:e.length>1},L):b.jsx(Aw,{cycleNumber:M+1},`empty-${M}`)})},`tablet-page-${A}`))})}),b.jsx("div",{className:"relative hidden overflow-hidden lg:block",children:b.jsx("div",{className:"flex transition-transform duration-300 ease-out",style:{transform:`translateX(-${c*100}%)`},children:[0,1].map(A=>b.jsx("div",{className:"grid w-full flex-shrink-0 grid-cols-3 gap-[16px] px-2x-large",children:[0,1,2].map(I=>{const M=A*3+I,N=e[M],L=w[M];return N?b.jsx(Pw,{cycle:N,index:M,onChange:F=>_(M,F),onRemove:()=>P(M),canRemove:e.length>1},L):b.jsx(Aw,{cycleNumber:M+1},`empty-${M}`)})},`desktop-page-${A}`))})}),b.jsxs("div",{className:"flex items-center justify-between px-2x-large sm:hidden",children:[b.jsx("button",{onClick:()=>o(Math.max(0,i-1)),disabled:i===0,className:Ht("flex items-center justify-center rounded-full transition-all duration-200",i===0?"cursor-not-allowed bg-gray-200":"bg-dark-blue hover:scale-110 active:scale-95"),style:{width:"38px",height:"38px"},children:b.jsx(ta,{className:"text-white",size:16})}),b.jsx("div",{className:"flex items-center gap-2",children:Array.from({length:e.length},(A,I)=>b.jsx("div",{className:Ht("h-2 w-2 rounded-full transition-colors",i===I?"bg-dark-blue":"bg-gray-300")},`mobile-dot-${I}`))}),b.jsx("button",{onClick:()=>o(Math.min(5,i+1)),disabled:i>=e.length-1,className:Ht("flex items-center justify-center rounded-full transition-all duration-200",i>=e.length-1?"cursor-not-allowed bg-gray-200":"bg-dark-blue hover:scale-110 active:scale-95"),style:{width:"38px",height:"38px"},children:b.jsx(ta,{className:"rotate-180 text-white",size:16})})]}),b.jsxs("div",{className:"hidden items-center justify-between px-2x-large sm:flex lg:hidden",children:[b.jsx("button",{onClick:()=>l(Math.max(0,a-1)),disabled:a===0,className:Ht("flex items-center justify-center rounded-full transition-all duration-200",a===0?"cursor-not-allowed bg-gray-200":"bg-dark-blue hover:scale-110 active:scale-95"),style:{width:"38px",height:"38px"},children:b.jsx(ta,{className:"text-white",size:16})}),b.jsx("div",{className:"flex items-center gap-2",children:Array.from({length:Math.ceil(e.length/2)},(A,I)=>b.jsx("div",{className:Ht("h-2 w-2 rounded-full transition-colors",a===I?"bg-dark-blue":"bg-gray-300")},`tablet-dot-${I}`))}),b.jsx("button",{onClick:()=>l(Math.min(2,a+1)),disabled:a>=Math.ceil(e.length/2)-1,className:Ht("flex items-center justify-center rounded-full transition-all duration-200",a>=Math.ceil(e.length/2)-1?"cursor-not-allowed bg-gray-200":"bg-dark-blue hover:scale-110 active:scale-95"),style:{width:"38px",height:"38px"},children:b.jsx(ta,{className:"rotate-180 text-white",size:16})})]}),b.jsxs("div",{className:"hidden items-center justify-between px-2x-large lg:flex",children:[b.jsx("button",{onClick:()=>d(0),disabled:c===0,className:Ht("flex items-center justify-center rounded-full transition-all duration-200",c===0?"cursor-not-allowed bg-gray-200":"bg-dark-blue hover:scale-110 active:scale-95"),style:{width:"38px",height:"38px"},children:b.jsx(ta,{className:"text-white",size:16})}),b.jsx("div",{className:"flex items-center gap-2",children:Array.from({length:Math.ceil(e.length/3)},(A,I)=>b.jsx("div",{className:Ht("h-2 w-2 rounded-full transition-colors",c===I?"bg-dark-blue":"bg-gray-300")},`desktop-dot-${I}`))}),b.jsx("button",{onClick:()=>d(1),disabled:c>=Math.ceil(e.length/3)-1,className:Ht("flex items-center justify-center rounded-full transition-all duration-200",c>=Math.ceil(e.length/3)-1?"cursor-not-allowed bg-gray-200":"bg-dark-blue hover:scale-110 active:scale-95"),style:{width:"38px",height:"38px"},children:b.jsx(ta,{className:"rotate-180 text-white",size:16})})]})]})};function PI(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var i=e.length;for(t=0;te===0?0:e>0?1:-1,oa=e=>typeof e=="number"&&e!=+e,Fc=e=>typeof e=="string"&&e.indexOf("%")===e.length-1,ut=e=>(typeof e=="number"||e instanceof Number)&&!oa(e),Ss=e=>ut(e)||typeof e=="string",HY=0,ug=e=>{var t=++HY;return"".concat(e||"").concat(t)},Na=function(t,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(!ut(t)&&typeof t!="string")return r;var o;if(Fc(t)){if(n==null)return r;var a=t.indexOf("%");o=n*parseFloat(t.slice(0,a))/100}else o=+t;return oa(o)&&(o=r),i&&n!=null&&o>n&&(o=n),o},kI=e=>{if(!Array.isArray(e))return!1;for(var t=e.length,n={},r=0;rr&&(typeof t=="function"?t(r):uf(r,t))===n)}var _r=e=>e===null||typeof e>"u",Wg=e=>_r(e)?e:"".concat(e.charAt(0).toUpperCase()).concat(e.slice(1)),KY=["dangerouslySetInnerHTML","onCopy","onCopyCapture","onCut","onCutCapture","onPaste","onPasteCapture","onCompositionEnd","onCompositionEndCapture","onCompositionStart","onCompositionStartCapture","onCompositionUpdate","onCompositionUpdateCapture","onFocus","onFocusCapture","onBlur","onBlurCapture","onChange","onChangeCapture","onBeforeInput","onBeforeInputCapture","onInput","onInputCapture","onReset","onResetCapture","onSubmit","onSubmitCapture","onInvalid","onInvalidCapture","onLoad","onLoadCapture","onError","onErrorCapture","onKeyDown","onKeyDownCapture","onKeyPress","onKeyPressCapture","onKeyUp","onKeyUpCapture","onAbort","onAbortCapture","onCanPlay","onCanPlayCapture","onCanPlayThrough","onCanPlayThroughCapture","onDurationChange","onDurationChangeCapture","onEmptied","onEmptiedCapture","onEncrypted","onEncryptedCapture","onEnded","onEndedCapture","onLoadedData","onLoadedDataCapture","onLoadedMetadata","onLoadedMetadataCapture","onLoadStart","onLoadStartCapture","onPause","onPauseCapture","onPlay","onPlayCapture","onPlaying","onPlayingCapture","onProgress","onProgressCapture","onRateChange","onRateChangeCapture","onSeeked","onSeekedCapture","onSeeking","onSeekingCapture","onStalled","onStalledCapture","onSuspend","onSuspendCapture","onTimeUpdate","onTimeUpdateCapture","onVolumeChange","onVolumeChangeCapture","onWaiting","onWaitingCapture","onAuxClick","onAuxClickCapture","onClick","onClickCapture","onContextMenu","onContextMenuCapture","onDoubleClick","onDoubleClickCapture","onDrag","onDragCapture","onDragEnd","onDragEndCapture","onDragEnter","onDragEnterCapture","onDragExit","onDragExitCapture","onDragLeave","onDragLeaveCapture","onDragOver","onDragOverCapture","onDragStart","onDragStartCapture","onDrop","onDropCapture","onMouseDown","onMouseDownCapture","onMouseEnter","onMouseLeave","onMouseMove","onMouseMoveCapture","onMouseOut","onMouseOutCapture","onMouseOver","onMouseOverCapture","onMouseUp","onMouseUpCapture","onSelect","onSelectCapture","onTouchCancel","onTouchCancelCapture","onTouchEnd","onTouchEndCapture","onTouchMove","onTouchMoveCapture","onTouchStart","onTouchStartCapture","onPointerDown","onPointerDownCapture","onPointerMove","onPointerMoveCapture","onPointerUp","onPointerUpCapture","onPointerCancel","onPointerCancelCapture","onPointerEnter","onPointerEnterCapture","onPointerLeave","onPointerLeaveCapture","onPointerOver","onPointerOverCapture","onPointerOut","onPointerOutCapture","onGotPointerCapture","onGotPointerCaptureCapture","onLostPointerCapture","onLostPointerCaptureCapture","onScroll","onScrollCapture","onWheel","onWheelCapture","onAnimationStart","onAnimationStartCapture","onAnimationEnd","onAnimationEndCapture","onAnimationIteration","onAnimationIterationCapture","onTransitionEnd","onTransitionEndCapture"];function iE(e){if(typeof e!="string")return!1;var t=KY;return t.includes(e)}var GY=["viewBox","children"],vA=["points","pathLength"],Lw={svg:GY,polygon:vA,polyline:vA},YY=(e,t)=>{if(!e||typeof e=="function"||typeof e=="boolean")return null;var n=e;if(O.isValidElement(e)&&(n=e.props),typeof n!="object"&&typeof n!="function")return null;var r={};return Object.keys(n).forEach(i=>{iE(i)&&(r[i]=o=>n[i](n,o))}),r},ZY=(e,t,n)=>r=>(e(t,n,r),null),oE=(e,t,n)=>{if(e===null||typeof e!="object"&&typeof e!="function")return null;var r=null;return Object.keys(e).forEach(i=>{var o=e[i];iE(i)&&typeof o=="function"&&(r||(r={}),r[i]=ZY(o,t,n))}),r},XY=["aria-activedescendant","aria-atomic","aria-autocomplete","aria-busy","aria-checked","aria-colcount","aria-colindex","aria-colspan","aria-controls","aria-current","aria-describedby","aria-details","aria-disabled","aria-errormessage","aria-expanded","aria-flowto","aria-haspopup","aria-hidden","aria-invalid","aria-keyshortcuts","aria-label","aria-labelledby","aria-level","aria-live","aria-modal","aria-multiline","aria-multiselectable","aria-orientation","aria-owns","aria-placeholder","aria-posinset","aria-pressed","aria-readonly","aria-relevant","aria-required","aria-roledescription","aria-rowcount","aria-rowindex","aria-rowspan","aria-selected","aria-setsize","aria-sort","aria-valuemax","aria-valuemin","aria-valuenow","aria-valuetext","className","color","height","id","lang","max","media","method","min","name","style","target","width","role","tabIndex","accentHeight","accumulate","additive","alignmentBaseline","allowReorder","alphabetic","amplitude","arabicForm","ascent","attributeName","attributeType","autoReverse","azimuth","baseFrequency","baselineShift","baseProfile","bbox","begin","bias","by","calcMode","capHeight","clip","clipPath","clipPathUnits","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","fx","fy","g1","g2","glyphName","glyphOrientationHorizontal","glyphOrientationVertical","glyphRef","gradientTransform","gradientUnits","hanging","horizAdvX","horizOriginX","href","ideographic","imageRendering","in2","in","intercept","k1","k2","k3","k4","k","kernelMatrix","kernelUnitLength","kerning","keyPoints","keySplines","keyTimes","lengthAdjust","letterSpacing","lightingColor","limitingConeAngle","local","markerEnd","markerHeight","markerMid","markerStart","markerUnits","markerWidth","mask","maskContentUnits","maskUnits","mathematical","mode","numOctaves","offset","opacity","operator","order","orient","orientation","origin","overflow","overlinePosition","overlineThickness","paintOrder","panose1","pathLength","patternContentUnits","patternTransform","patternUnits","pointerEvents","pointsAtX","pointsAtY","pointsAtZ","preserveAlpha","preserveAspectRatio","primitiveUnits","r","radius","refX","refY","renderingIntent","repeatCount","repeatDur","requiredExtensions","requiredFeatures","restart","result","rotate","rx","ry","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","textLength","textRendering","to","transform","u1","u2","underlinePosition","underlineThickness","unicode","unicodeBidi","unicodeRange","unitsPerEm","vAlphabetic","values","vectorEffect","version","vertAdvY","vertOriginX","vertOriginY","vHanging","vIdeographic","viewTarget","visibility","vMathematical","widths","wordSpacing","writingMode","x1","x2","x","xChannelSelector","xHeight","xlinkActuate","xlinkArcrole","xlinkHref","xlinkRole","xlinkShow","xlinkTitle","xlinkType","xmlBase","xmlLang","xmlns","xmlnsXlink","xmlSpace","y1","y2","y","yChannelSelector","z","zoomAndPan","ref","key","angle"];function jI(e){if(typeof e!="string")return!1;var t=XY;return t.includes(e)}function B1(e){var t=Object.entries(e).filter(n=>{var[r]=n;return jI(r)});return Object.fromEntries(t)}var yA=e=>typeof e=="string"?e:e?e.displayName||e.name||"Component":"",xA=null,Dw=null,MI=e=>{if(e===xA&&Array.isArray(Dw))return Dw;var t=[];return O.Children.forEach(e,n=>{_r(n)||(WY.isFragment(n)?t=t.concat(MI(n.props.children)):t.push(n))}),Dw=t,xA=e,t};function aE(e,t){var n=[],r=[];return Array.isArray(t)?r=t.map(i=>yA(i)):r=[yA(t)],MI(e).forEach(i=>{var o=uf(i,"type.displayName")||uf(i,"type.name");r.indexOf(o)!==-1&&n.push(i)}),n}var QY=(e,t,n,r)=>{var i;if(typeof t=="symbol"||typeof t=="number")return!0;var o=(i=r&&(Lw==null?void 0:Lw[r]))!==null&&i!==void 0?i:[],a=t.startsWith("data-"),l=typeof e!="function"&&(!!r&&o.includes(t)||jI(t)),c=!!n&&iE(t);return a||l||c},$r=(e,t,n)=>{if(!e||typeof e=="function"||typeof e=="boolean")return null;var r=e;if(O.isValidElement(e)&&(r=e.props),typeof r!="object"&&typeof r!="function")return null;var i={};return Object.keys(r).forEach(o=>{var a;QY((a=r)===null||a===void 0?void 0:a[o],o,t,n)&&(i[o]=r[o])}),i},JY=["children","width","height","viewBox","className","style","title","desc"];function a_(){return a_=Object.assign?Object.assign.bind():function(e){for(var t=1;t{var{children:n,width:r,height:i,viewBox:o,className:a,style:l,title:c,desc:d}=e,h=eZ(e,JY),m=o||{width:r,height:i,x:0,y:0},v=Rn("recharts-surface",a);return O.createElement("svg",a_({},$r(h,!0,"svg"),{className:v,width:r,height:i,style:l,viewBox:"".concat(m.x," ").concat(m.y," ").concat(m.width," ").concat(m.height),ref:t}),O.createElement("title",null,c),O.createElement("desc",null,d),n)}),nZ=["children","className"];function s_(){return s_=Object.assign?Object.assign.bind():function(e){for(var t=1;t{var{children:n,className:r}=e,i=rZ(e,nZ),o=Rn("recharts-layer",r);return O.createElement("g",s_({className:o},$r(i,!0),{ref:t}),n)}),oZ=O.createContext(null);function kn(e){return function(){return e}}const NI=Math.cos,Ty=Math.sin,La=Math.sqrt,ky=Math.PI,V1=2*ky,l_=Math.PI,u_=2*l_,Nc=1e-6,aZ=u_-Nc;function RI(e){this._+=e[0];for(let t=1,n=e.length;t=0))throw new Error(`invalid digits: ${e}`);if(t>15)return RI;const n=10**t;return function(r){this._+=r[0];for(let i=1,o=r.length;iNc)if(!(Math.abs(m*c-d*h)>Nc)||!o)this._append`L${this._x1=t},${this._y1=n}`;else{let y=r-a,w=i-l,C=c*c+d*d,_=y*y+w*w,P=Math.sqrt(C),T=Math.sqrt(v),A=o*Math.tan((l_-Math.acos((C+v-_)/(2*P*T)))/2),I=A/T,M=A/P;Math.abs(I-1)>Nc&&this._append`L${t+I*h},${n+I*m}`,this._append`A${o},${o},0,0,${+(m*y>h*w)},${this._x1=t+M*c},${this._y1=n+M*d}`}}arc(t,n,r,i,o,a){if(t=+t,n=+n,r=+r,a=!!a,r<0)throw new Error(`negative radius: ${r}`);let l=r*Math.cos(i),c=r*Math.sin(i),d=t+l,h=n+c,m=1^a,v=a?i-o:o-i;this._x1===null?this._append`M${d},${h}`:(Math.abs(this._x1-d)>Nc||Math.abs(this._y1-h)>Nc)&&this._append`L${d},${h}`,r&&(v<0&&(v=v%u_+u_),v>aZ?this._append`A${r},${r},0,1,${m},${t-l},${n-c}A${r},${r},0,1,${m},${this._x1=d},${this._y1=h}`:v>Nc&&this._append`A${r},${r},0,${+(v>=l_)},${m},${this._x1=t+r*Math.cos(o)},${this._y1=n+r*Math.sin(o)}`)}rect(t,n,r,i){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+n}h${r=+r}v${+i}h${-r}Z`}toString(){return this._}}function sE(e){let t=3;return e.digits=function(n){if(!arguments.length)return t;if(n==null)t=null;else{const r=Math.floor(n);if(!(r>=0))throw new RangeError(`invalid digits: ${n}`);t=r}return e},()=>new lZ(t)}function lE(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function LI(e){this._context=e}LI.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:this._context.lineTo(e,t);break}}};function z1(e){return new LI(e)}function DI(e){return e[0]}function $I(e){return e[1]}function FI(e,t){var n=kn(!0),r=null,i=z1,o=null,a=sE(l);e=typeof e=="function"?e:e===void 0?DI:kn(e),t=typeof t=="function"?t:t===void 0?$I:kn(t);function l(c){var d,h=(c=lE(c)).length,m,v=!1,y;for(r==null&&(o=i(y=a())),d=0;d<=h;++d)!(d=y;--w)l.point(A[w],I[w]);l.lineEnd(),l.areaEnd()}P&&(A[v]=+e(_,v,m),I[v]=+t(_,v,m),l.point(r?+r(_,v,m):A[v],n?+n(_,v,m):I[v]))}if(T)return l=null,T+""||null}function h(){return FI().defined(i).curve(a).context(o)}return d.x=function(m){return arguments.length?(e=typeof m=="function"?m:kn(+m),r=null,d):e},d.x0=function(m){return arguments.length?(e=typeof m=="function"?m:kn(+m),d):e},d.x1=function(m){return arguments.length?(r=m==null?null:typeof m=="function"?m:kn(+m),d):r},d.y=function(m){return arguments.length?(t=typeof m=="function"?m:kn(+m),n=null,d):t},d.y0=function(m){return arguments.length?(t=typeof m=="function"?m:kn(+m),d):t},d.y1=function(m){return arguments.length?(n=m==null?null:typeof m=="function"?m:kn(+m),d):n},d.lineX0=d.lineY0=function(){return h().x(e).y(t)},d.lineY1=function(){return h().x(e).y(n)},d.lineX1=function(){return h().x(r).y(t)},d.defined=function(m){return arguments.length?(i=typeof m=="function"?m:kn(!!m),d):i},d.curve=function(m){return arguments.length?(a=m,o!=null&&(l=a(o)),d):a},d.context=function(m){return arguments.length?(m==null?o=l=null:l=a(o=m),d):o},d}class BI{constructor(t,n){this._context=t,this._x=n}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._point=0}lineEnd(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line}point(t,n){switch(t=+t,n=+n,this._point){case 0:{this._point=1,this._line?this._context.lineTo(t,n):this._context.moveTo(t,n);break}case 1:this._point=2;default:{this._x?this._context.bezierCurveTo(this._x0=(this._x0+t)/2,this._y0,this._x0,n,t,n):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+n)/2,t,this._y0,t,n);break}}this._x0=t,this._y0=n}}function uZ(e){return new BI(e,!0)}function cZ(e){return new BI(e,!1)}const uE={draw(e,t){const n=La(t/ky);e.moveTo(n,0),e.arc(0,0,n,0,V1)}},fZ={draw(e,t){const n=La(t/5)/2;e.moveTo(-3*n,-n),e.lineTo(-n,-n),e.lineTo(-n,-3*n),e.lineTo(n,-3*n),e.lineTo(n,-n),e.lineTo(3*n,-n),e.lineTo(3*n,n),e.lineTo(n,n),e.lineTo(n,3*n),e.lineTo(-n,3*n),e.lineTo(-n,n),e.lineTo(-3*n,n),e.closePath()}},VI=La(1/3),dZ=VI*2,hZ={draw(e,t){const n=La(t/dZ),r=n*VI;e.moveTo(0,-n),e.lineTo(r,0),e.lineTo(0,n),e.lineTo(-r,0),e.closePath()}},pZ={draw(e,t){const n=La(t),r=-n/2;e.rect(r,r,n,n)}},mZ=.8908130915292852,zI=Ty(ky/10)/Ty(7*ky/10),gZ=Ty(V1/10)*zI,vZ=-NI(V1/10)*zI,yZ={draw(e,t){const n=La(t*mZ),r=gZ*n,i=vZ*n;e.moveTo(0,-n),e.lineTo(r,i);for(let o=1;o<5;++o){const a=V1*o/5,l=NI(a),c=Ty(a);e.lineTo(c*n,-l*n),e.lineTo(l*r-c*i,c*r+l*i)}e.closePath()}},$w=La(3),xZ={draw(e,t){const n=-La(t/($w*3));e.moveTo(0,n*2),e.lineTo(-$w*n,-n),e.lineTo($w*n,-n),e.closePath()}},Xo=-.5,Qo=La(3)/2,c_=1/La(12),bZ=(c_/2+1)*3,wZ={draw(e,t){const n=La(t/bZ),r=n/2,i=n*c_,o=r,a=n*c_+n,l=-o,c=a;e.moveTo(r,i),e.lineTo(o,a),e.lineTo(l,c),e.lineTo(Xo*r-Qo*i,Qo*r+Xo*i),e.lineTo(Xo*o-Qo*a,Qo*o+Xo*a),e.lineTo(Xo*l-Qo*c,Qo*l+Xo*c),e.lineTo(Xo*r+Qo*i,Xo*i-Qo*r),e.lineTo(Xo*o+Qo*a,Xo*a-Qo*o),e.lineTo(Xo*l+Qo*c,Xo*c-Qo*l),e.closePath()}};function SZ(e,t){let n=null,r=sE(i);e=typeof e=="function"?e:kn(e||uE),t=typeof t=="function"?t:kn(t===void 0?64:+t);function i(){let o;if(n||(n=o=r()),e.apply(this,arguments).draw(n,+t.apply(this,arguments)),o)return n=null,o+""||null}return i.type=function(o){return arguments.length?(e=typeof o=="function"?o:kn(o),i):e},i.size=function(o){return arguments.length?(t=typeof o=="function"?o:kn(+o),i):t},i.context=function(o){return arguments.length?(n=o??null,i):n},i}function jy(){}function My(e,t,n){e._context.bezierCurveTo((2*e._x0+e._x1)/3,(2*e._y0+e._y1)/3,(e._x0+2*e._x1)/3,(e._y0+2*e._y1)/3,(e._x0+4*e._x1+t)/6,(e._y0+4*e._y1+n)/6)}function UI(e){this._context=e}UI.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:My(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:My(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function _Z(e){return new UI(e)}function WI(e){this._context=e}WI.prototype={areaStart:jy,areaEnd:jy,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x2,this._y2),this._context.closePath();break}case 2:{this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break}case 3:{this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4);break}}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x2=e,this._y2=t;break;case 1:this._point=2,this._x3=e,this._y3=t;break;case 2:this._point=3,this._x4=e,this._y4=t,this._context.moveTo((this._x0+4*this._x1+e)/6,(this._y0+4*this._y1+t)/6);break;default:My(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function CZ(e){return new WI(e)}function HI(e){this._context=e}HI.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var n=(this._x0+4*this._x1+e)/6,r=(this._y0+4*this._y1+t)/6;this._line?this._context.lineTo(n,r):this._context.moveTo(n,r);break;case 3:this._point=4;default:My(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function EZ(e){return new HI(e)}function qI(e){this._context=e}qI.prototype={areaStart:jy,areaEnd:jy,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(e,t){e=+e,t=+t,this._point?this._context.lineTo(e,t):(this._point=1,this._context.moveTo(e,t))}};function OZ(e){return new qI(e)}function bA(e){return e<0?-1:1}function wA(e,t,n){var r=e._x1-e._x0,i=t-e._x1,o=(e._y1-e._y0)/(r||i<0&&-0),a=(n-e._y1)/(i||r<0&&-0),l=(o*i+a*r)/(r+i);return(bA(o)+bA(a))*Math.min(Math.abs(o),Math.abs(a),.5*Math.abs(l))||0}function SA(e,t){var n=e._x1-e._x0;return n?(3*(e._y1-e._y0)/n-t)/2:t}function Fw(e,t,n){var r=e._x0,i=e._y0,o=e._x1,a=e._y1,l=(o-r)/3;e._context.bezierCurveTo(r+l,i+l*t,o-l,a-l*n,o,a)}function Iy(e){this._context=e}Iy.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:Fw(this,this._t0,SA(this,this._t0));break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){var n=NaN;if(e=+e,t=+t,!(e===this._x1&&t===this._y1)){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,Fw(this,SA(this,n=wA(this,e,t)),n);break;default:Fw(this,this._t0,n=wA(this,e,t));break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=n}}};function KI(e){this._context=new GI(e)}(KI.prototype=Object.create(Iy.prototype)).point=function(e,t){Iy.prototype.point.call(this,t,e)};function GI(e){this._context=e}GI.prototype={moveTo:function(e,t){this._context.moveTo(t,e)},closePath:function(){this._context.closePath()},lineTo:function(e,t){this._context.lineTo(t,e)},bezierCurveTo:function(e,t,n,r,i,o){this._context.bezierCurveTo(t,e,r,n,o,i)}};function PZ(e){return new Iy(e)}function AZ(e){return new KI(e)}function YI(e){this._context=e}YI.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var e=this._x,t=this._y,n=e.length;if(n)if(this._line?this._context.lineTo(e[0],t[0]):this._context.moveTo(e[0],t[0]),n===2)this._context.lineTo(e[1],t[1]);else for(var r=_A(e),i=_A(t),o=0,a=1;a=0;--t)i[t]=(a[t]-i[t+1])/o[t];for(o[n-1]=(e[n]+i[n-1])/2,t=0;t=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:{if(this._t<=0)this._context.lineTo(this._x,t),this._context.lineTo(e,t);else{var n=this._x*(1-this._t)+e*this._t;this._context.lineTo(n,this._y),this._context.lineTo(n,t)}break}}this._x=e,this._y=t}};function kZ(e){return new U1(e,.5)}function jZ(e){return new U1(e,0)}function MZ(e){return new U1(e,1)}function _h(e,t){if((a=e.length)>1)for(var n=1,r,i,o=e[t[0]],a,l=o.length;n=0;)n[t]=t;return n}function IZ(e,t){return e[t]}function NZ(e){const t=[];return t.key=e,t}function RZ(){var e=kn([]),t=f_,n=_h,r=IZ;function i(o){var a=Array.from(e.apply(this,arguments),NZ),l,c=a.length,d=-1,h;for(const m of o)for(l=0,++d;l0){for(var n,r,i=0,o=e[0].length,a;i0){for(var n=0,r=e[t[0]],i,o=r.length;n0)||!((o=(i=e[t[0]]).length)>0))){for(var n=0,r=1,i,o,a;r{var t="symbol".concat(Wg(e));return ZI[t]||uE},KZ=(e,t,n)=>{if(t==="area")return e;switch(n){case"cross":return 5*e*e/9;case"diamond":return .5*e*e/Math.sqrt(3);case"square":return e*e;case"star":{var r=18*HZ;return 1.25*e*e*(Math.tan(r)-Math.tan(r*2)*Math.tan(r)**2)}case"triangle":return Math.sqrt(3)*e*e/4;case"wye":return(21-10*Math.sqrt(3))*e*e/8;default:return Math.PI*e*e/4}},GZ=(e,t)=>{ZI["symbol".concat(Wg(e))]=t},XI=e=>{var{type:t="circle",size:n=64,sizeType:r="area"}=e,i=UZ(e,FZ),o=EA(EA({},i),{},{type:t,size:n,sizeType:r}),a=()=>{var m=qZ(t),v=SZ().type(m).size(KZ(n,r,t));return v()},{className:l,cx:c,cy:d}=o,h=$r(o,!0);return c===+c&&d===+d&&n===+n?O.createElement("path",d_({},h,{className:Rn("recharts-symbols",l),transform:"translate(".concat(c,", ").concat(d,")"),d:a()})):null};XI.registerSymbol=GZ;var Bw={},Vw={},OA;function YZ(){return OA||(OA=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n,r){const i=new Map;for(let o=0;o=0}e.isLength=t}(Hw)),Hw}var TA;function cE(){return TA||(TA=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=ZZ();function n(r){return r!=null&&typeof r!="function"&&t.isLength(r.length)}e.isArrayLike=n}(Ww)),Ww}var qw={},kA;function XZ(){return kA||(kA=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n){return typeof n=="object"&&n!==null}e.isObjectLike=t}(qw)),qw}var jA;function QZ(){return jA||(jA=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=cE(),n=XZ();function r(i){return n.isObjectLike(i)&&t.isArrayLike(i)}e.isArrayLikeObject=r}(Uw)),Uw}var Kw={},Gw={},MA;function JZ(){return MA||(MA=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=rE();function n(r){return function(i){return t.get(i,r)}}e.property=n}(Gw)),Gw}var Yw={},Zw={},Xw={},Qw={},IA;function JI(){return IA||(IA=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n){return n!==null&&(typeof n=="object"||typeof n=="function")}e.isObject=t}(Qw)),Qw}var Jw={},NA;function eN(){return NA||(NA=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n){return n==null||typeof n!="object"&&typeof n!="function"}e.isPrimitive=t}(Jw)),Jw}var e2={},RA;function fE(){return RA||(RA=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n,r){return n===r||Number.isNaN(n)&&Number.isNaN(r)}e.eq=t}(e2)),e2}var LA;function eX(){return LA||(LA=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=dE(),n=JI(),r=eN(),i=fE();function o(m,v,y){return typeof y!="function"?t.isMatch(m,v):a(m,v,function w(C,_,P,T,A,I){const M=y(C,_,P,T,A,I);return M!==void 0?!!M:a(C,_,w,I)},new Map)}function a(m,v,y,w){if(v===m)return!0;switch(typeof v){case"object":return l(m,v,y,w);case"function":return Object.keys(v).length>0?a(m,{...v},y,w):i.eq(m,v);default:return n.isObject(m)?typeof v=="string"?v==="":!0:i.eq(m,v)}}function l(m,v,y,w){if(v==null)return!0;if(Array.isArray(v))return d(m,v,y,w);if(v instanceof Map)return c(m,v,y,w);if(v instanceof Set)return h(m,v,y,w);const C=Object.keys(v);if(m==null)return C.length===0;if(C.length===0)return!0;if(w&&w.has(v))return w.get(v)===m;w&&w.set(v,m);try{for(let _=0;_{})}e.isMatch=n}(Zw)),Zw}var t2={},n2={},r2={},$A;function tN(){return $A||($A=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n){return Object.getOwnPropertySymbols(n).filter(r=>Object.prototype.propertyIsEnumerable.call(n,r))}e.getSymbols=t}(r2)),r2}var i2={},FA;function hE(){return FA||(FA=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n){return n==null?n===void 0?"[object Undefined]":"[object Null]":Object.prototype.toString.call(n)}e.getTag=t}(i2)),i2}var o2={},BA;function pE(){return BA||(BA=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t="[object RegExp]",n="[object String]",r="[object Number]",i="[object Boolean]",o="[object Arguments]",a="[object Symbol]",l="[object Date]",c="[object Map]",d="[object Set]",h="[object Array]",m="[object Function]",v="[object ArrayBuffer]",y="[object Object]",w="[object Error]",C="[object DataView]",_="[object Uint8Array]",P="[object Uint8ClampedArray]",T="[object Uint16Array]",A="[object Uint32Array]",I="[object BigUint64Array]",M="[object Int8Array]",N="[object Int16Array]",L="[object Int32Array]",F="[object BigInt64Array]",B="[object Float32Array]",U="[object Float64Array]";e.argumentsTag=o,e.arrayBufferTag=v,e.arrayTag=h,e.bigInt64ArrayTag=F,e.bigUint64ArrayTag=I,e.booleanTag=i,e.dataViewTag=C,e.dateTag=l,e.errorTag=w,e.float32ArrayTag=B,e.float64ArrayTag=U,e.functionTag=m,e.int16ArrayTag=N,e.int32ArrayTag=L,e.int8ArrayTag=M,e.mapTag=c,e.numberTag=r,e.objectTag=y,e.regexpTag=t,e.setTag=d,e.stringTag=n,e.symbolTag=a,e.uint16ArrayTag=T,e.uint32ArrayTag=A,e.uint8ArrayTag=_,e.uint8ClampedArrayTag=P}(o2)),o2}var a2={},VA;function tX(){return VA||(VA=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n){return ArrayBuffer.isView(n)&&!(n instanceof DataView)}e.isTypedArray=t}(a2)),a2}var zA;function nN(){return zA||(zA=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=tN(),n=hE(),r=pE(),i=eN(),o=tX();function a(h,m){return l(h,void 0,h,new Map,m)}function l(h,m,v,y=new Map,w=void 0){const C=w==null?void 0:w(h,m,v,y);if(C!==void 0)return C;if(i.isPrimitive(h))return h;if(y.has(h))return y.get(h);if(Array.isArray(h)){const _=new Array(h.length);y.set(h,_);for(let P=0;Pt.isMatch(o,i)}e.matches=r}(Yw)),Yw}var s2={},l2={},u2={},HA;function iX(){return HA||(HA=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=nN(),n=pE();function r(i,o){return t.cloneDeepWith(i,(a,l,c,d)=>{const h=o==null?void 0:o(a,l,c,d);if(h!==void 0)return h;if(typeof i=="object")switch(Object.prototype.toString.call(i)){case n.numberTag:case n.stringTag:case n.booleanTag:{const m=new i.constructor(i==null?void 0:i.valueOf());return t.copyProperties(m,i),m}case n.argumentsTag:{const m={};return t.copyProperties(m,i),m.length=i.length,m[Symbol.iterator]=i[Symbol.iterator],m}default:return}})}e.cloneDeepWith=r}(u2)),u2}var qA;function oX(){return qA||(qA=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=iX();function n(r){return t.cloneDeepWith(r)}e.cloneDeep=n}(l2)),l2}var c2={},f2={},KA;function rN(){return KA||(KA=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=/^(?:0|[1-9]\d*)$/;function n(r,i=Number.MAX_SAFE_INTEGER){switch(typeof r){case"number":return Number.isInteger(r)&&r>=0&&r"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?d:l;return v2.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:h,v2}var nT;function mX(){return nT||(nT=1,g2.exports=pX()),g2.exports}/** * @license React * use-sync-external-store-shim/with-selector.production.js * * Copyright (c) Meta Platforms, Inc. and 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;function gX(){if(rT)return m2;rT=1;var e=Lh(),t=mX();function n(d,h){return d===h&&(d!==0||1/d===1/h)||d!==d&&h!==h}var r=typeof Object.is=="function"?Object.is:n,i=t.useSyncExternalStore,o=e.useRef,a=e.useEffect,l=e.useMemo,c=e.useDebugValue;return m2.useSyncExternalStoreWithSelector=function(d,h,m,v,y){var w=o(null);if(w.current===null){var C={hasValue:!1,value:null};w.current=C}else C=w.current;w=l(function(){function P(N){if(!T){if(T=!0,A=N,N=v(N),y!==void 0&&C.hasValue){var L=C.value;if(y(L,N))return I=L}return I=N}if(L=I,r(A,N))return L;var F=v(N);return y!==void 0&&y(L,F)?(A=N,L):(A=N,I=F)}var T=!1,A,I,M=m===void 0?null:m;return[function(){return P(h())},M===null?void 0:function(){return P(M())}]},[h,m,v,y]);var _=i(d,w[0],w[1]);return a(function(){C.hasValue=!0,C.value=_},[_]),c(_),_},m2}var iT;function vX(){return iT||(iT=1,p2.exports=gX()),p2.exports}var yX=vX(),mE=O.createContext(null),xX=e=>e,Br=()=>{var e=O.useContext(mE);return e?e.store.dispatch:xX},hy=()=>{},bX=()=>hy,wX=(e,t)=>e===t;function St(e){var t=O.useContext(mE);return yX.useSyncExternalStoreWithSelector(t?t.subscription.addNestedSub:bX,t?t.store.getState:hy,t?t.store.getState:hy,t?e:hy,wX)}function SX(e,t=`expected a function, instead received ${typeof e}`){if(typeof e!="function")throw new TypeError(t)}function _X(e,t=`expected an object, instead received ${typeof e}`){if(typeof e!="object")throw new TypeError(t)}function CX(e,t="expected all items to be functions, instead received the following types: "){if(!e.every(n=>typeof n=="function")){const n=e.map(r=>typeof r=="function"?`function ${r.name||"unnamed"}()`:typeof r).join(", ");throw new TypeError(`${t}[${n}]`)}}var oT=e=>Array.isArray(e)?e:[e];function EX(e){const t=Array.isArray(e[0])?e[0]:e;return CX(t,"createSelector expects all input-selectors to be functions, but received the following types: "),t}function OX(e,t){const n=[],{length:r}=e;for(let i=0;i{n=zv(),a.resetResultsCount()},a.resultsCount=()=>o,a.resetResultsCount=()=>{o=0},a}function kX(e,...t){const n=typeof e=="function"?{memoize:e,memoizeOptions:t}:e,r=(...i)=>{let o=0,a=0,l,c={},d=i.pop();typeof d=="object"&&(c=d,d=i.pop()),SX(d,`createSelector expects an output function after the inputs, but received: [${typeof d}]`);const h={...n,...c},{memoize:m,memoizeOptions:v=[],argsMemoize:y=iN,argsMemoizeOptions:w=[]}=h,C=oT(v),_=oT(w),P=EX(i),T=m(function(){return o++,d.apply(null,arguments)},...C),A=y(function(){a++;const M=OX(P,arguments);return l=T.apply(null,M),l},..._);return Object.assign(A,{resultFunc:d,memoizedResultFunc:T,dependencies:P,dependencyRecomputations:()=>a,resetDependencyRecomputations:()=>{a=0},lastResult:()=>l,recomputations:()=>o,resetRecomputations:()=>{o=0},memoize:m,argsMemoize:y})};return Object.assign(r,{withTypes:()=>r}),r}var ye=kX(iN),jX=Object.assign((e,t=ye)=>{_X(e,`createStructuredSelector expects first argument to be an object where each property is a selector, instead received a ${typeof e}`);const n=Object.keys(e),r=n.map(o=>e[o]);return t(r,(...o)=>o.reduce((a,l,c)=>(a[n[c]]=l,a),{}))},{withTypes:()=>jX}),y2={},x2={},b2={},sT;function MX(){return sT||(sT=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r){return typeof r=="symbol"?1:r===null?2:r===void 0?3:r!==r?4:0}const n=(r,i,o)=>{if(r!==i){const a=t(r),l=t(i);if(a===l&&a===0){if(ri)return o==="desc"?-1:1}return o==="desc"?l-a:a-l}return 0};e.compareValues=n}(b2)),b2}var w2={},S2={},lT;function oN(){return lT||(lT=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n){return typeof n=="symbol"||n instanceof Symbol}e.isSymbol=t}(S2)),S2}var uT;function IX(){return uT||(uT=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=oN(),n=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,r=/^\w*$/;function i(o,a){return Array.isArray(o)?!1:typeof o=="number"||typeof o=="boolean"||o==null||t.isSymbol(o)?!0:typeof o=="string"&&(r.test(o)||!n.test(o))||a!=null&&Object.hasOwn(a,o)}e.isKey=i}(w2)),w2}var cT;function NX(){return cT||(cT=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=MX(),n=IX(),r=nE();function i(o,a,l,c){if(o==null)return[];l=c?void 0:l,Array.isArray(o)||(o=Object.values(o)),Array.isArray(a)||(a=a==null?[null]:[a]),a.length===0&&(a=[null]),Array.isArray(l)||(l=l==null?[]:[l]),l=l.map(y=>String(y));const d=(y,w)=>{let C=y;for(let _=0;_w==null||y==null?w:typeof y=="object"&&"key"in y?Object.hasOwn(w,y.key)?w[y.key]:d(w,y.path):typeof y=="function"?y(w):Array.isArray(y)?d(w,y):typeof w=="object"?w[y]:w,m=a.map(y=>(Array.isArray(y)&&y.length===1&&(y=y[0]),y==null||typeof y=="function"||Array.isArray(y)||n.isKey(y)?y:{key:y,path:r.toPath(y)}));return o.map(y=>({original:y,criteria:m.map(w=>h(w,y))})).slice().sort((y,w)=>{for(let C=0;Cy.original)}e.orderBy=i}(x2)),x2}var _2={},fT;function RX(){return fT||(fT=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n,r=1){const i=[],o=Math.floor(r),a=(l,c)=>{for(let d=0;d1&&r.isIterateeCall(o,a[0],a[1])?a=[]:l>2&&r.isIterateeCall(a[0],a[1],a[2])&&(a=[a[0]]),t.orderBy(o,n.flatten(a),["asc"])}e.sortBy=i}(y2)),y2}var E2,pT;function DX(){return pT||(pT=1,E2=LX().sortBy),E2}var $X=DX();const W1=To($X);var sN=e=>e.legend.settings,FX=e=>e.legend.size,BX=e=>e.legend.payload;ye([BX,sN],(e,t)=>{var{itemSorter:n}=t,r=e.flat(1);return n?W1(r,n):r});var Uv=1;function VX(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],[t,n]=O.useState({height:0,left:0,top:0,width:0}),r=O.useCallback(i=>{if(i!=null){var o=i.getBoundingClientRect(),a={height:o.height,left:o.left,top:o.top,width:o.width};(Math.abs(a.height-t.height)>Uv||Math.abs(a.left-t.left)>Uv||Math.abs(a.top-t.top)>Uv||Math.abs(a.width-t.width)>Uv)&&n({height:a.height,left:a.left,top:a.top,width:a.width})}},[t.width,t.height,t.top,t.left,...e]);return[t,r]}function Qr(e){return`Minified Redux error #${e}; visit https://redux.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}var zX=typeof Symbol=="function"&&Symbol.observable||"@@observable",mT=zX,O2=()=>Math.random().toString(36).substring(7).split("").join("."),UX={INIT:`@@redux/INIT${O2()}`,REPLACE:`@@redux/REPLACE${O2()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${O2()}`},Ny=UX;function gE(e){if(typeof e!="object"||e===null)return!1;let t=e;for(;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t||Object.getPrototypeOf(e)===null}function lN(e,t,n){if(typeof e!="function")throw new Error(Qr(2));if(typeof t=="function"&&typeof n=="function"||typeof n=="function"&&typeof arguments[3]=="function")throw new Error(Qr(0));if(typeof t=="function"&&typeof n>"u"&&(n=t,t=void 0),typeof n<"u"){if(typeof n!="function")throw new Error(Qr(1));return n(lN)(e,t)}let r=e,i=t,o=new Map,a=o,l=0,c=!1;function d(){a===o&&(a=new Map,o.forEach((_,P)=>{a.set(P,_)}))}function h(){if(c)throw new Error(Qr(3));return i}function m(_){if(typeof _!="function")throw new Error(Qr(4));if(c)throw new Error(Qr(5));let P=!0;d();const T=l++;return a.set(T,_),function(){if(P){if(c)throw new Error(Qr(6));P=!1,d(),a.delete(T),o=null}}}function v(_){if(!gE(_))throw new Error(Qr(7));if(typeof _.type>"u")throw new Error(Qr(8));if(typeof _.type!="string")throw new Error(Qr(17));if(c)throw new Error(Qr(9));try{c=!0,i=r(i,_)}finally{c=!1}return(o=a).forEach(T=>{T()}),_}function y(_){if(typeof _!="function")throw new Error(Qr(10));r=_,v({type:Ny.REPLACE})}function w(){const _=m;return{subscribe(P){if(typeof P!="object"||P===null)throw new Error(Qr(11));function T(){const I=P;I.next&&I.next(h())}return T(),{unsubscribe:_(T)}},[mT](){return this}}}return v({type:Ny.INIT}),{dispatch:v,subscribe:m,getState:h,replaceReducer:y,[mT]:w}}function WX(e){Object.keys(e).forEach(t=>{const n=e[t];if(typeof n(void 0,{type:Ny.INIT})>"u")throw new Error(Qr(12));if(typeof n(void 0,{type:Ny.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(Qr(13))})}function uN(e){const t=Object.keys(e),n={};for(let o=0;o"u")throw l&&l.type,new Error(Qr(14));d[m]=w,c=c||w!==y}return c=c||r.length!==Object.keys(a).length,c?d:a}}function Ry(...e){return e.length===0?t=>t:e.length===1?e[0]:e.reduce((t,n)=>(...r)=>t(n(...r)))}function HX(...e){return t=>(n,r)=>{const i=t(n,r);let o=()=>{throw new Error(Qr(15))};const a={getState:i.getState,dispatch:(c,...d)=>o(c,...d)},l=e.map(c=>c(a));return o=Ry(...l)(i.dispatch),{...i,dispatch:o}}}function cN(e){return gE(e)&&"type"in e&&typeof e.type=="string"}var fN=Symbol.for("immer-nothing"),gT=Symbol.for("immer-draftable"),Po=Symbol.for("immer-state");function Aa(e,...t){throw new Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var Ch=Object.getPrototypeOf;function cf(e){return!!e&&!!e[Po]}function gl(e){var t;return e?dN(e)||Array.isArray(e)||!!e[gT]||!!((t=e.constructor)!=null&&t[gT])||Hg(e)||q1(e):!1}var qX=Object.prototype.constructor.toString();function dN(e){if(!e||typeof e!="object")return!1;const t=Ch(e);if(t===null)return!0;const n=Object.hasOwnProperty.call(t,"constructor")&&t.constructor;return n===Object?!0:typeof n=="function"&&Function.toString.call(n)===qX}function Ly(e,t){H1(e)===0?Reflect.ownKeys(e).forEach(n=>{t(n,e[n],e)}):e.forEach((n,r)=>t(r,n,e))}function H1(e){const t=e[Po];return t?t.type_:Array.isArray(e)?1:Hg(e)?2:q1(e)?3:0}function h_(e,t){return H1(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function hN(e,t,n){const r=H1(e);r===2?e.set(t,n):r===3?e.add(n):e[t]=n}function KX(e,t){return e===t?e!==0||1/e===1/t:e!==e&&t!==t}function Hg(e){return e instanceof Map}function q1(e){return e instanceof Set}function Rc(e){return e.copy_||e.base_}function p_(e,t){if(Hg(e))return new Map(e);if(q1(e))return new Set(e);if(Array.isArray(e))return Array.prototype.slice.call(e);const n=dN(e);if(t===!0||t==="class_only"&&!n){const r=Object.getOwnPropertyDescriptors(e);delete r[Po];let i=Reflect.ownKeys(r);for(let o=0;o1&&Object.defineProperties(e,{set:{value:Wv},add:{value:Wv},clear:{value:Wv},delete:{value:Wv}}),Object.freeze(e),t&&Object.values(e).forEach(n=>vE(n,!0))),e}function Wv(){Aa(2)}function K1(e){return Object.isFrozen(e)}var GX={};function ff(e){const t=GX[e];return t||Aa(0,e),t}var cg;function pN(){return cg}function YX(e,t){return{drafts_:[],parent_:e,immer_:t,canAutoFreeze_:!0,unfinalizedDrafts_:0}}function vT(e,t){t&&(ff("Patches"),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function m_(e){g_(e),e.drafts_.forEach(ZX),e.drafts_=null}function g_(e){e===cg&&(cg=e.parent_)}function yT(e){return cg=YX(cg,e)}function ZX(e){const t=e[Po];t.type_===0||t.type_===1?t.revoke_():t.revoked_=!0}function xT(e,t){t.unfinalizedDrafts_=t.drafts_.length;const n=t.drafts_[0];return e!==void 0&&e!==n?(n[Po].modified_&&(m_(t),Aa(4)),gl(e)&&(e=Dy(t,e),t.parent_||$y(t,e)),t.patches_&&ff("Patches").generateReplacementPatches_(n[Po].base_,e,t.patches_,t.inversePatches_)):e=Dy(t,n,[]),m_(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==fN?e:void 0}function Dy(e,t,n){if(K1(t))return t;const r=t[Po];if(!r)return Ly(t,(i,o)=>bT(e,r,t,i,o,n)),t;if(r.scope_!==e)return t;if(!r.modified_)return $y(e,r.base_,!0),r.base_;if(!r.finalized_){r.finalized_=!0,r.scope_.unfinalizedDrafts_--;const i=r.copy_;let o=i,a=!1;r.type_===3&&(o=new Set(i),i.clear(),a=!0),Ly(o,(l,c)=>bT(e,r,i,l,c,n,a)),$y(e,i,!1),n&&e.patches_&&ff("Patches").generatePatches_(r,n,e.patches_,e.inversePatches_)}return r.copy_}function bT(e,t,n,r,i,o,a){if(cf(i)){const l=o&&t&&t.type_!==3&&!h_(t.assigned_,r)?o.concat(r):void 0,c=Dy(e,i,l);if(hN(n,r,c),cf(c))e.canAutoFreeze_=!1;else return}else a&&n.add(i);if(gl(i)&&!K1(i)){if(!e.immer_.autoFreeze_&&e.unfinalizedDrafts_<1)return;Dy(e,i),(!t||!t.scope_.parent_)&&typeof r!="symbol"&&(Hg(n)?n.has(r):Object.prototype.propertyIsEnumerable.call(n,r))&&$y(e,i)}}function $y(e,t,n=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&vE(t,n)}function XX(e,t){const n=Array.isArray(e),r={type_:n?1:0,scope_:t?t.scope_:pN(),modified_:!1,finalized_:!1,assigned_:{},parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1};let i=r,o=yE;n&&(i=[r],o=fg);const{revoke:a,proxy:l}=Proxy.revocable(i,o);return r.draft_=l,r.revoke_=a,l}var yE={get(e,t){if(t===Po)return e;const n=Rc(e);if(!h_(n,t))return QX(e,n,t);const r=n[t];return e.finalized_||!gl(r)?r:r===P2(e.base_,t)?(A2(e),e.copy_[t]=y_(r,e)):r},has(e,t){return t in Rc(e)},ownKeys(e){return Reflect.ownKeys(Rc(e))},set(e,t,n){const r=mN(Rc(e),t);if(r!=null&&r.set)return r.set.call(e.draft_,n),!0;if(!e.modified_){const i=P2(Rc(e),t),o=i==null?void 0:i[Po];if(o&&o.base_===n)return e.copy_[t]=n,e.assigned_[t]=!1,!0;if(KX(n,i)&&(n!==void 0||h_(e.base_,t)))return!0;A2(e),v_(e)}return e.copy_[t]===n&&(n!==void 0||t in e.copy_)||Number.isNaN(n)&&Number.isNaN(e.copy_[t])||(e.copy_[t]=n,e.assigned_[t]=!0),!0},deleteProperty(e,t){return P2(e.base_,t)!==void 0||t in e.base_?(e.assigned_[t]=!1,A2(e),v_(e)):delete e.assigned_[t],e.copy_&&delete e.copy_[t],!0},getOwnPropertyDescriptor(e,t){const n=Rc(e),r=Reflect.getOwnPropertyDescriptor(n,t);return r&&{writable:!0,configurable:e.type_!==1||t!=="length",enumerable:r.enumerable,value:n[t]}},defineProperty(){Aa(11)},getPrototypeOf(e){return Ch(e.base_)},setPrototypeOf(){Aa(12)}},fg={};Ly(yE,(e,t)=>{fg[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}});fg.deleteProperty=function(e,t){return fg.set.call(this,e,t,void 0)};fg.set=function(e,t,n){return yE.set.call(this,e[0],t,n,e[0])};function P2(e,t){const n=e[Po];return(n?Rc(n):e)[t]}function QX(e,t,n){var i;const r=mN(t,n);return r?"value"in r?r.value:(i=r.get)==null?void 0:i.call(e.draft_):void 0}function mN(e,t){if(!(t in e))return;let n=Ch(e);for(;n;){const r=Object.getOwnPropertyDescriptor(n,t);if(r)return r;n=Ch(n)}}function v_(e){e.modified_||(e.modified_=!0,e.parent_&&v_(e.parent_))}function A2(e){e.copy_||(e.copy_=p_(e.base_,e.scope_.immer_.useStrictShallowCopy_))}var JX=class{constructor(e){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.produce=(t,n,r)=>{if(typeof t=="function"&&typeof n!="function"){const o=n;n=t;const a=this;return function(c=o,...d){return a.produce(c,h=>n.call(this,h,...d))}}typeof n!="function"&&Aa(6),r!==void 0&&typeof r!="function"&&Aa(7);let i;if(gl(t)){const o=yT(this),a=y_(t,void 0);let l=!0;try{i=n(a),l=!1}finally{l?m_(o):g_(o)}return vT(o,r),xT(i,o)}else if(!t||typeof t!="object"){if(i=n(t),i===void 0&&(i=t),i===fN&&(i=void 0),this.autoFreeze_&&vE(i,!0),r){const o=[],a=[];ff("Patches").generateReplacementPatches_(t,i,o,a),r(o,a)}return i}else Aa(1,t)},this.produceWithPatches=(t,n)=>{if(typeof t=="function")return(a,...l)=>this.produceWithPatches(a,c=>t(c,...l));let r,i;return[this.produce(t,n,(a,l)=>{r=a,i=l}),r,i]},typeof(e==null?void 0:e.autoFreeze)=="boolean"&&this.setAutoFreeze(e.autoFreeze),typeof(e==null?void 0:e.useStrictShallowCopy)=="boolean"&&this.setUseStrictShallowCopy(e.useStrictShallowCopy)}createDraft(e){gl(e)||Aa(8),cf(e)&&(e=cl(e));const t=yT(this),n=y_(e,void 0);return n[Po].isManual_=!0,g_(t),n}finishDraft(e,t){const n=e&&e[Po];(!n||!n.isManual_)&&Aa(9);const{scope_:r}=n;return vT(r,t),xT(void 0,r)}setAutoFreeze(e){this.autoFreeze_=e}setUseStrictShallowCopy(e){this.useStrictShallowCopy_=e}applyPatches(e,t){let n;for(n=t.length-1;n>=0;n--){const i=t[n];if(i.path.length===0&&i.op==="replace"){e=i.value;break}}n>-1&&(t=t.slice(n+1));const r=ff("Patches").applyPatches_;return cf(e)?r(e,t):this.produce(e,i=>r(i,t))}};function y_(e,t){const n=Hg(e)?ff("MapSet").proxyMap_(e,t):q1(e)?ff("MapSet").proxySet_(e,t):XX(e,t);return(t?t.scope_:pN()).drafts_.push(n),n}function cl(e){return cf(e)||Aa(10,e),gN(e)}function gN(e){if(!gl(e)||K1(e))return e;const t=e[Po];let n;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,n=p_(e,t.scope_.immer_.useStrictShallowCopy_)}else n=p_(e,!0);return Ly(n,(r,i)=>{hN(n,r,gN(i))}),t&&(t.finalized_=!1),n}var eQ=new JX,vN=eQ.produce;function yN(e){return({dispatch:n,getState:r})=>i=>o=>typeof o=="function"?o(n,r,e):i(o)}var tQ=yN(),nQ=yN,rQ=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?Ry:Ry.apply(null,arguments)};function aa(e,t){function n(...r){if(t){let i=t(...r);if(!i)throw new Error(Eo(0));return{type:e,payload:i.payload,..."meta"in i&&{meta:i.meta},..."error"in i&&{error:i.error}}}return{type:e,payload:r[0]}}return n.toString=()=>`${e}`,n.type=e,n.match=r=>cN(r)&&r.type===e,n}var xN=class Dm extends Array{constructor(...t){super(...t),Object.setPrototypeOf(this,Dm.prototype)}static get[Symbol.species](){return Dm}concat(...t){return super.concat.apply(this,t)}prepend(...t){return t.length===1&&Array.isArray(t[0])?new Dm(...t[0].concat(this)):new Dm(...t.concat(this))}};function wT(e){return gl(e)?vN(e,()=>{}):e}function Hv(e,t,n){return e.has(t)?e.get(t):e.set(t,n(t)).get(t)}function iQ(e){return typeof e=="boolean"}var oQ=()=>function(t){const{thunk:n=!0,immutableCheck:r=!0,serializableCheck:i=!0,actionCreatorCheck:o=!0}=t??{};let a=new xN;return n&&(iQ(n)?a.push(tQ):a.push(nQ(n.extraArgument))),a},aQ="RTK_autoBatch",ST=e=>t=>{setTimeout(t,e)},sQ=(e={type:"raf"})=>t=>(...n)=>{const r=t(...n);let i=!0,o=!1,a=!1;const l=new Set,c=e.type==="tick"?queueMicrotask:e.type==="raf"?typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:ST(10):e.type==="callback"?e.queueNotification:ST(e.timeout),d=()=>{a=!1,o&&(o=!1,l.forEach(h=>h()))};return Object.assign({},r,{subscribe(h){const m=()=>i&&h(),v=r.subscribe(m);return l.add(h),()=>{v(),l.delete(h)}},dispatch(h){var m;try{return i=!((m=h==null?void 0:h.meta)!=null&&m[aQ]),o=!i,o&&(a||(a=!0,c(d))),r.dispatch(h)}finally{i=!0}}})},lQ=e=>function(n){const{autoBatch:r=!0}=n??{};let i=new xN(e);return r&&i.push(sQ(typeof r=="object"?r:void 0)),i};function uQ(e){const t=oQ(),{reducer:n=void 0,middleware:r,devTools:i=!0,preloadedState:o=void 0,enhancers:a=void 0}=e||{};let l;if(typeof n=="function")l=n;else if(gE(n))l=uN(n);else throw new Error(Eo(1));let c;typeof r=="function"?c=r(t):c=t();let d=Ry;i&&(d=rQ({trace:!1,...typeof i=="object"&&i}));const h=HX(...c),m=lQ(h);let v=typeof a=="function"?a(m):m();const y=d(...v);return lN(l,o,y)}function bN(e){const t={},n=[];let r;const i={addCase(o,a){const l=typeof o=="string"?o:o.type;if(!l)throw new Error(Eo(28));if(l in t)throw new Error(Eo(29));return t[l]=a,i},addAsyncThunk(o,a){return a.pending&&(t[o.pending.type]=a.pending),a.rejected&&(t[o.rejected.type]=a.rejected),a.fulfilled&&(t[o.fulfilled.type]=a.fulfilled),a.settled&&n.push({matcher:o.settled,reducer:a.settled}),i},addMatcher(o,a){return n.push({matcher:o,reducer:a}),i},addDefaultCase(o){return r=o,i}};return e(i),[t,n,r]}function cQ(e){return typeof e=="function"}function fQ(e,t){let[n,r,i]=bN(t),o;if(cQ(e))o=()=>wT(e());else{const l=wT(e);o=()=>l}function a(l=o(),c){let d=[n[c.type],...r.filter(({matcher:h})=>h(c)).map(({reducer:h})=>h)];return d.filter(h=>!!h).length===0&&(d=[i]),d.reduce((h,m)=>{if(m)if(cf(h)){const y=m(h,c);return y===void 0?h:y}else{if(gl(h))return vN(h,v=>m(v,c));{const v=m(h,c);if(v===void 0){if(h===null)return h;throw Error("A case reducer on a non-draftable value must not return undefined")}return v}}return h},l)}return a.getInitialState=o,a}var dQ="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",hQ=(e=21)=>{let t="",n=e;for(;n--;)t+=dQ[Math.random()*64|0];return t},pQ=Symbol.for("rtk-slice-createasyncthunk");function mQ(e,t){return`${e}/${t}`}function gQ({creators:e}={}){var n;const t=(n=e==null?void 0:e.asyncThunk)==null?void 0:n[pQ];return function(i){const{name:o,reducerPath:a=o}=i;if(!o)throw new Error(Eo(11));const l=(typeof i.reducers=="function"?i.reducers(yQ()):i.reducers)||{},c=Object.keys(l),d={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},h={addCase(I,M){const N=typeof I=="string"?I:I.type;if(!N)throw new Error(Eo(12));if(N in d.sliceCaseReducersByType)throw new Error(Eo(13));return d.sliceCaseReducersByType[N]=M,h},addMatcher(I,M){return d.sliceMatchers.push({matcher:I,reducer:M}),h},exposeAction(I,M){return d.actionCreators[I]=M,h},exposeCaseReducer(I,M){return d.sliceCaseReducersByName[I]=M,h}};c.forEach(I=>{const M=l[I],N={reducerName:I,type:mQ(o,I),createNotation:typeof i.reducers=="function"};bQ(M)?SQ(N,M,h,t):xQ(N,M,h)});function m(){const[I={},M=[],N=void 0]=typeof i.extraReducers=="function"?bN(i.extraReducers):[i.extraReducers],L={...I,...d.sliceCaseReducersByType};return fQ(i.initialState,F=>{for(let B in L)F.addCase(B,L[B]);for(let B of d.sliceMatchers)F.addMatcher(B.matcher,B.reducer);for(let B of M)F.addMatcher(B.matcher,B.reducer);N&&F.addDefaultCase(N)})}const v=I=>I,y=new Map,w=new WeakMap;let C;function _(I,M){return C||(C=m()),C(I,M)}function P(){return C||(C=m()),C.getInitialState()}function T(I,M=!1){function N(F){let B=F[I];return typeof B>"u"&&M&&(B=Hv(w,N,P)),B}function L(F=v){const B=Hv(y,M,()=>new WeakMap);return Hv(B,F,()=>{const U={};for(const[W,G]of Object.entries(i.selectors??{}))U[W]=vQ(G,F,()=>Hv(w,F,P),M);return U})}return{reducerPath:I,getSelectors:L,get selectors(){return L(N)},selectSlice:N}}const A={name:o,reducer:_,actions:d.actionCreators,caseReducers:d.sliceCaseReducersByName,getInitialState:P,...T(a),injectInto(I,{reducerPath:M,...N}={}){const L=M??a;return I.inject({reducerPath:L,reducer:_},N),{...A,...T(L,!0)}}};return A}}function vQ(e,t,n,r){function i(o,...a){let l=t(o);return typeof l>"u"&&r&&(l=n()),e(l,...a)}return i.unwrapped=e,i}var ko=gQ();function yQ(){function e(t,n){return{_reducerDefinitionType:"asyncThunk",payloadCreator:t,...n}}return e.withTypes=()=>e,{reducer(t){return Object.assign({[t.name](...n){return t(...n)}}[t.name],{_reducerDefinitionType:"reducer"})},preparedReducer(t,n){return{_reducerDefinitionType:"reducerWithPrepare",prepare:t,reducer:n}},asyncThunk:e}}function xQ({type:e,reducerName:t,createNotation:n},r,i){let o,a;if("reducer"in r){if(n&&!wQ(r))throw new Error(Eo(17));o=r.reducer,a=r.prepare}else o=r;i.addCase(e,o).exposeCaseReducer(t,o).exposeAction(t,a?aa(e,a):aa(e))}function bQ(e){return e._reducerDefinitionType==="asyncThunk"}function wQ(e){return e._reducerDefinitionType==="reducerWithPrepare"}function SQ({type:e,reducerName:t},n,r,i){if(!i)throw new Error(Eo(18));const{payloadCreator:o,fulfilled:a,pending:l,rejected:c,settled:d,options:h}=n,m=i(e,o,h);r.exposeAction(t,m),a&&r.addCase(m.fulfilled,a),l&&r.addCase(m.pending,l),c&&r.addCase(m.rejected,c),d&&r.addMatcher(m.settled,d),r.exposeCaseReducer(t,{fulfilled:a||qv,pending:l||qv,rejected:c||qv,settled:d||qv})}function qv(){}var _Q="task",wN="listener",SN="completed",xE="cancelled",CQ=`task-${xE}`,EQ=`task-${SN}`,x_=`${wN}-${xE}`,OQ=`${wN}-${SN}`,G1=class{constructor(e){vm(this,"name","TaskAbortError");vm(this,"message");this.code=e,this.message=`${_Q} ${xE} (reason: ${e})`}},bE=(e,t)=>{if(typeof e!="function")throw new TypeError(Eo(32))},Fy=()=>{},_N=(e,t=Fy)=>(e.catch(t),e),CN=(e,t)=>(e.addEventListener("abort",t,{once:!0}),()=>e.removeEventListener("abort",t)),Xc=(e,t)=>{const n=e.signal;n.aborted||("reason"in n||Object.defineProperty(n,"reason",{enumerable:!0,value:t,configurable:!0,writable:!0}),e.abort(t))},Qc=e=>{if(e.aborted){const{reason:t}=e;throw new G1(t)}};function EN(e,t){let n=Fy;return new Promise((r,i)=>{const o=()=>i(new G1(e.reason));if(e.aborted){o();return}n=CN(e,o),t.finally(()=>n()).then(r,i)}).finally(()=>{n=Fy})}var PQ=async(e,t)=>{try{return await Promise.resolve(),{status:"ok",value:await e()}}catch(n){return{status:n instanceof G1?"cancelled":"rejected",error:n}}finally{t==null||t()}},By=e=>t=>_N(EN(e,t).then(n=>(Qc(e),n))),ON=e=>{const t=By(e);return n=>t(new Promise(r=>setTimeout(r,n)))},{assign:mh}=Object,_T={},Y1="listenerMiddleware",AQ=(e,t)=>{const n=r=>CN(e,()=>Xc(r,e.reason));return(r,i)=>{bE(r);const o=new AbortController;n(o);const a=PQ(async()=>{Qc(e),Qc(o.signal);const l=await r({pause:By(o.signal),delay:ON(o.signal),signal:o.signal});return Qc(o.signal),l},()=>Xc(o,EQ));return i!=null&&i.autoJoin&&t.push(a.catch(Fy)),{result:By(e)(a),cancel(){Xc(o,CQ)}}}},TQ=(e,t)=>{const n=async(r,i)=>{Qc(t);let o=()=>{};const l=[new Promise((c,d)=>{let h=e({predicate:r,effect:(m,v)=>{v.unsubscribe(),c([m,v.getState(),v.getOriginalState()])}});o=()=>{h(),d()}})];i!=null&&l.push(new Promise(c=>setTimeout(c,i,null)));try{const c=await EN(t,Promise.race(l));return Qc(t),c}finally{o()}};return(r,i)=>_N(n(r,i))},PN=e=>{let{type:t,actionCreator:n,matcher:r,predicate:i,effect:o}=e;if(t)i=aa(t).match;else if(n)t=n.type,i=n.match;else if(r)i=r;else if(!i)throw new Error(Eo(21));return bE(o),{predicate:i,type:t,effect:o}},AN=mh(e=>{const{type:t,predicate:n,effect:r}=PN(e);return{id:hQ(),effect:r,type:t,predicate:n,pending:new Set,unsubscribe:()=>{throw new Error(Eo(22))}}},{withTypes:()=>AN}),CT=(e,t)=>{const{type:n,effect:r,predicate:i}=PN(t);return Array.from(e.values()).find(o=>(typeof n=="string"?o.type===n:o.predicate===i)&&o.effect===r)},b_=e=>{e.pending.forEach(t=>{Xc(t,x_)})},kQ=e=>()=>{e.forEach(b_),e.clear()},ET=(e,t,n)=>{try{e(t,n)}catch(r){setTimeout(()=>{throw r},0)}},TN=mh(aa(`${Y1}/add`),{withTypes:()=>TN}),jQ=aa(`${Y1}/removeAll`),kN=mh(aa(`${Y1}/remove`),{withTypes:()=>kN}),MQ=(...e)=>{console.error(`${Y1}/error`,...e)},qg=(e={})=>{const t=new Map,{extra:n,onError:r=MQ}=e;bE(r);const i=h=>(h.unsubscribe=()=>t.delete(h.id),t.set(h.id,h),m=>{h.unsubscribe(),m!=null&&m.cancelActive&&b_(h)}),o=h=>{const m=CT(t,h)??AN(h);return i(m)};mh(o,{withTypes:()=>o});const a=h=>{const m=CT(t,h);return m&&(m.unsubscribe(),h.cancelActive&&b_(m)),!!m};mh(a,{withTypes:()=>a});const l=async(h,m,v,y)=>{const w=new AbortController,C=TQ(o,w.signal),_=[];try{h.pending.add(w),await Promise.resolve(h.effect(m,mh({},v,{getOriginalState:y,condition:(P,T)=>C(P,T).then(Boolean),take:C,delay:ON(w.signal),pause:By(w.signal),extra:n,signal:w.signal,fork:AQ(w.signal,_),unsubscribe:h.unsubscribe,subscribe:()=>{t.set(h.id,h)},cancelActiveListeners:()=>{h.pending.forEach((P,T,A)=>{P!==w&&(Xc(P,x_),A.delete(P))})},cancel:()=>{Xc(w,x_),h.pending.delete(w)},throwIfCancelled:()=>{Qc(w.signal)}})))}catch(P){P instanceof G1||ET(r,P,{raisedBy:"effect"})}finally{await Promise.all(_),Xc(w,OQ),h.pending.delete(w)}},c=kQ(t);return{middleware:h=>m=>v=>{if(!cN(v))return m(v);if(TN.match(v))return o(v.payload);if(jQ.match(v)){c();return}if(kN.match(v))return a(v.payload);let y=h.getState();const w=()=>{if(y===_T)throw new Error(Eo(23));return y};let C;try{if(C=m(v),t.size>0){const _=h.getState(),P=Array.from(t.values());for(const T of P){let A=!1;try{A=T.predicate(v,_,y)}catch(I){A=!1,ET(r,I,{raisedBy:"predicate"})}A&&l(T,v,h,w)}}}finally{y=_T}return C},startListening:o,stopListening:a,clearListeners:c}};function Eo(e){return`Minified Redux Toolkit error #${e}; visit https://redux-toolkit.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}var IQ={layoutType:"horizontal",width:0,height:0,margin:{top:5,right:5,bottom:5,left:5},scale:1},jN=ko({name:"chartLayout",initialState:IQ,reducers:{setLayout(e,t){e.layoutType=t.payload},setChartSize(e,t){e.width=t.payload.width,e.height=t.payload.height},setMargin(e,t){e.margin.top=t.payload.top,e.margin.right=t.payload.right,e.margin.bottom=t.payload.bottom,e.margin.left=t.payload.left},setScale(e,t){e.scale=t.payload}}}),{setMargin:NQ,setLayout:RQ,setChartSize:LQ,setScale:DQ}=jN.actions,$Q=jN.reducer;function OT(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function PT(e){for(var t=1;te*180/Math.PI,ni=(e,t,n,r)=>({x:e+Math.cos(-Vy*r)*n,y:t+Math.sin(-Vy*r)*n}),UQ=function(t,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{top:0,right:0,bottom:0,left:0};return Math.min(Math.abs(t-(r.left||0)-(r.right||0)),Math.abs(n-(r.top||0)-(r.bottom||0)))/2},WQ=(e,t)=>{var{x:n,y:r}=e,{x:i,y:o}=t;return Math.sqrt((n-i)**2+(r-o)**2)},HQ=(e,t)=>{var{x:n,y:r}=e,{cx:i,cy:o}=t,a=WQ({x:n,y:r},{x:i,y:o});if(a<=0)return{radius:a,angle:0};var l=(n-i)/a,c=Math.acos(l);return r>o&&(c=2*Math.PI-c),{radius:a,angle:zQ(c),angleInRadian:c}},qQ=e=>{var{startAngle:t,endAngle:n}=e,r=Math.floor(t/360),i=Math.floor(n/360),o=Math.min(r,i);return{startAngle:t-o*360,endAngle:n-o*360}},KQ=(e,t)=>{var{startAngle:n,endAngle:r}=t,i=Math.floor(n/360),o=Math.floor(r/360),a=Math.min(i,o);return e+a*360},GQ=(e,t)=>{var{x:n,y:r}=e,{radius:i,angle:o}=HQ({x:n,y:r},t),{innerRadius:a,outerRadius:l}=t;if(il||i===0)return null;var{startAngle:c,endAngle:d}=qQ(t),h=o,m;if(c<=d){for(;h>d;)h-=360;for(;h=c&&h<=d}else{for(;h>c;)h-=360;for(;h=d&&h<=c}return m?PT(PT({},t),{},{radius:i,angle:KQ(h,t)}):null};function MN(e,t,n){return Array.isArray(e)&&e&&t+n!==0?e.slice(t,n+1):e}function AT(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function na(e){for(var t=1;t{var o,a=-1,l=(o=t==null?void 0:t.length)!==null&&o!==void 0?o:0;if(l<=1||e==null)return 0;if(r==="angleAxis"&&i!=null&&Math.abs(Math.abs(i[1]-i[0])-360)<=1e-6)for(var c=0;c0?n[c-1].coordinate:n[l-1].coordinate,h=n[c].coordinate,m=c>=l-1?n[0].coordinate:n[c+1].coordinate,v=void 0;if(So(h-d)!==So(m-h)){var y=[];if(So(m-h)===So(i[1]-i[0])){v=m;var w=h+i[1]-i[0];y[0]=Math.min(w,(w+d)/2),y[1]=Math.max(w,(w+d)/2)}else{v=d;var C=m+i[1]-i[0];y[0]=Math.min(h,(C+h)/2),y[1]=Math.max(h,(C+h)/2)}var _=[Math.min(h,(v+h)/2),Math.max(h,(v+h)/2)];if(e>_[0]&&e<=_[1]||e>=y[0]&&e<=y[1]){({index:a}=n[c]);break}}else{var P=Math.min(d,m),T=Math.max(d,m);if(e>(P+h)/2&&e<=(T+h)/2){({index:a}=n[c]);break}}}else if(t){for(var A=0;A0&&A(t[A].coordinate+t[A-1].coordinate)/2&&e<=(t[A].coordinate+t[A+1].coordinate)/2||A===l-1&&e>(t[A].coordinate+t[A-1].coordinate)/2){({index:a}=t[A]);break}}return a},JQ=(e,t,n)=>{if(t&&n){var{width:r,height:i}=n,{align:o,verticalAlign:a,layout:l}=t;if((l==="vertical"||l==="horizontal"&&a==="middle")&&o!=="center"&&ut(e[o]))return na(na({},e),{},{[o]:e[o]+(r||0)});if((l==="horizontal"||l==="vertical"&&o==="center")&&a!=="middle"&&ut(e[a]))return na(na({},e),{},{[a]:e[a]+(i||0)})}return e},yf=(e,t)=>e==="horizontal"&&t==="xAxis"||e==="vertical"&&t==="yAxis"||e==="centric"&&t==="angleAxis"||e==="radial"&&t==="radiusAxis",TT=1e-4,eJ=e=>{var t=e.domain();if(!(!t||t.length<=2)){var n=t.length,r=e.range(),i=Math.min(r[0],r[1])-TT,o=Math.max(r[0],r[1])+TT,a=e(t[0]),l=e(t[n-1]);(ao||lo)&&e.domain([t[0],t[n-1]])}},tJ=(e,t)=>{if(!t||t.length!==2||!ut(t[0])||!ut(t[1]))return e;var n=Math.min(t[0],t[1]),r=Math.max(t[0],t[1]),i=[e[0],e[1]];return(!ut(e[0])||e[0]r)&&(i[1]=r),i[0]>r&&(i[0]=r),i[1]{var t=e.length;if(!(t<=0))for(var n=0,r=e[0].length;n=0?(e[a][n][0]=i,e[a][n][1]=i+l,i=e[a][n][1]):(e[a][n][0]=o,e[a][n][1]=o+l,o=e[a][n][1])}},rJ=e=>{var t=e.length;if(!(t<=0))for(var n=0,r=e[0].length;n=0?(e[o][n][0]=i,e[o][n][1]=i+a,i=e[o][n][1]):(e[o][n][0]=0,e[o][n][1]=0)}},iJ={sign:nJ,expand:LZ,none:_h,silhouette:DZ,wiggle:$Z,positive:rJ},oJ=(e,t,n)=>{var r=iJ[n],i=RZ().keys(t).value((o,a)=>+ji(o,a,0)).order(f_).offset(r);return i(e)};function aJ(e){return e==null?void 0:String(e)}var kT=e=>{var{axis:t,ticks:n,offset:r,bandSize:i,entry:o,index:a}=e;if(t.type==="category")return n[a]?n[a].coordinate+r:null;var l=ji(o,t.dataKey,t.scale.domain()[a]);return _r(l)?null:t.scale(l)-i/2+r},sJ=e=>{var{numericAxis:t}=e,n=t.scale.domain();if(t.type==="number"){var r=Math.min(n[0],n[1]),i=Math.max(n[0],n[1]);return r<=0&&i>=0?0:i<0?i:r}return n[0]},lJ=e=>{var t=e.flat(2).filter(ut);return[Math.min(...t),Math.max(...t)]},uJ=e=>[e[0]===1/0?0:e[0],e[1]===-1/0?0:e[1]],cJ=(e,t,n)=>{if(e!=null)return uJ(Object.keys(e).reduce((r,i)=>{var o=e[i],{stackedData:a}=o,l=a.reduce((c,d)=>{var h=MN(d,t,n),m=lJ(h);return[Math.min(c[0],m[0]),Math.max(c[1],m[1])]},[1/0,-1/0]);return[Math.min(l[0],r[0]),Math.max(l[1],r[1])]},[1/0,-1/0]))},jT=/^dataMin[\s]*-[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,MT=/^dataMax[\s]*\+[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,wE=(e,t,n)=>{if(e&&e.scale&&e.scale.bandwidth){var r=e.scale.bandwidth();if(!n||r>0)return r}if(e&&t&&t.length>=2){for(var i=W1(t,h=>h.coordinate),o=1/0,a=1,l=i.length;a=i.left&&e<=i.left+i.width&&t>=i.top&&t<=i.top+i.height;return o?{x:e,y:t}:null}return r?GQ({x:e,y:t},r):null}var dJ=(e,t,n,r)=>{var i=t.find(d=>d&&d.index===n);if(i){if(e==="horizontal")return{x:i.coordinate,y:r.y};if(e==="vertical")return{x:r.x,y:i.coordinate};if(e==="centric"){var o=i.coordinate,{radius:a}=r;return na(na(na({},r),ni(r.cx,r.cy,a,o)),{},{angle:o,radius:a})}var l=i.coordinate,{angle:c}=r;return na(na(na({},r),ni(r.cx,r.cy,l,c)),{},{angle:c,radius:l})}return{x:0,y:0}},hJ=(e,t)=>t==="horizontal"?e.x:t==="vertical"?e.y:t==="centric"?e.angle:e.radius,Sl=e=>e.layout.width,_l=e=>e.layout.height,pJ=e=>e.layout.scale,NN=e=>e.layout.margin,SE=ye(e=>e.cartesianAxis.xAxis,e=>Object.values(e)),_E=ye(e=>e.cartesianAxis.yAxis,e=>Object.values(e)),mJ="data-recharts-item-index",gJ="data-recharts-item-data-key",Z1=60;function NT(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function du(e){for(var t=1;te.brush.height,Vr=ye([Sl,_l,NN,bJ,SE,_E,sN,FX],(e,t,n,r,i,o,a,l)=>{var c=o.reduce((w,C)=>{var{orientation:_}=C;if(!C.mirror&&!C.hide){var P=typeof C.width=="number"?C.width:Z1;return du(du({},w),{},{[_]:w[_]+P})}return w},{left:n.left||0,right:n.right||0}),d=i.reduce((w,C)=>{var{orientation:_}=C;return!C.mirror&&!C.hide?du(du({},w),{},{[_]:uf(w,"".concat(_))+C.height}):w},{top:n.top||0,bottom:n.bottom||0}),h=du(du({},d),c),m=h.bottom;h.bottom+=r,h=JQ(h,a,l);var v=e-h.left-h.right,y=t-h.top-h.bottom;return du(du({brushBottom:m},h),{},{width:Math.max(v,0),height:Math.max(y,0)})}),wJ=ye(Vr,e=>({x:e.left,y:e.top,width:e.width,height:e.height})),RN=ye(Sl,_l,(e,t)=>({x:0,y:0,width:e,height:t})),SJ=O.createContext(null),Da=()=>O.useContext(SJ)!=null,X1=e=>e.brush,Q1=ye([X1,Vr,NN],(e,t,n)=>({height:e.height,x:ut(e.x)?e.x:t.left,y:ut(e.y)?e.y:t.top+t.height+t.brushBottom-((n==null?void 0:n.bottom)||0),width:ut(e.width)?e.width:t.width})),CE=()=>{var e,t=Da(),n=St(wJ),r=St(Q1),i=(e=St(X1))===null||e===void 0?void 0:e.padding;return!t||!r||!i?n:{width:r.width-i.left-i.right,height:r.height-i.top-i.bottom,x:i.left,y:i.top}},_J={top:0,bottom:0,left:0,right:0,width:0,height:0,brushBottom:0},CJ=()=>{var e;return(e=St(Vr))!==null&&e!==void 0?e:_J},EJ=()=>St(Sl),OJ=()=>St(_l),gn=e=>e.layout.layoutType,EE=()=>St(gn),PJ={settings:{layout:"horizontal",align:"center",verticalAlign:"middle",itemSorter:"value"},size:{width:0,height:0},payload:[]},LN=ko({name:"legend",initialState:PJ,reducers:{setLegendSize(e,t){e.size.width=t.payload.width,e.size.height=t.payload.height},setLegendSettings(e,t){e.settings.align=t.payload.align,e.settings.layout=t.payload.layout,e.settings.verticalAlign=t.payload.verticalAlign,e.settings.itemSorter=t.payload.itemSorter},addLegendPayload(e,t){e.payload.push(t.payload)},removeLegendPayload(e,t){var n=cl(e).payload.indexOf(t.payload);n>-1&&e.payload.splice(n,1)}}}),{setLegendSize:Dhe,setLegendSettings:$he,addLegendPayload:AJ,removeLegendPayload:TJ}=LN.actions,kJ=LN.reducer;function w_(){return w_=Object.assign?Object.assign.bind():function(e){for(var t=1;t{var{separator:t=" : ",contentStyle:n={},itemStyle:r={},labelStyle:i={},payload:o,formatter:a,itemSorter:l,wrapperClassName:c,labelClassName:d,label:h,labelFormatter:m,accessibilityLayer:v=!1}=e,y=()=>{if(o&&o.length){var M={padding:0,margin:0},N=(l?W1(o,l):o).map((L,F)=>{if(L.type==="none")return null;var B=L.formatter||a||NJ,{value:U,name:W}=L,G=U,ie=W;if(B){var te=B(U,W,L,F,o);if(Array.isArray(te))[G,ie]=te;else if(te!=null)G=te;else return null}var se=T2({display:"block",paddingTop:4,paddingBottom:4,color:L.color||"#000"},r);return O.createElement("li",{className:"recharts-tooltip-item",key:"tooltip-item-".concat(F),style:se},Ss(ie)?O.createElement("span",{className:"recharts-tooltip-item-name"},ie):null,Ss(ie)?O.createElement("span",{className:"recharts-tooltip-item-separator"},t):null,O.createElement("span",{className:"recharts-tooltip-item-value"},G),O.createElement("span",{className:"recharts-tooltip-item-unit"},L.unit||""))});return O.createElement("ul",{className:"recharts-tooltip-item-list",style:M},N)}return null},w=T2({margin:0,padding:10,backgroundColor:"#fff",border:"1px solid #ccc",whiteSpace:"nowrap"},n),C=T2({margin:0},i),_=!_r(h),P=_?h:"",T=Rn("recharts-default-tooltip",c),A=Rn("recharts-tooltip-label",d);_&&m&&o!==void 0&&o!==null&&(P=m(h,o));var I=v?{role:"status","aria-live":"assertive"}:{};return O.createElement("div",w_({className:T,style:w},I),O.createElement("p",{className:A,style:C},O.isValidElement(P)?P:"".concat(P)),y())},_m="recharts-tooltip-wrapper",LJ={visibility:"hidden"};function DJ(e){var{coordinate:t,translateX:n,translateY:r}=e;return Rn(_m,{["".concat(_m,"-right")]:ut(n)&&t&&ut(t.x)&&n>=t.x,["".concat(_m,"-left")]:ut(n)&&t&&ut(t.x)&&n=t.y,["".concat(_m,"-top")]:ut(r)&&t&&ut(t.y)&&r0?i:0),m=n[r]+i;if(t[r])return a[r]?h:m;var v=c[r];if(v==null)return 0;if(a[r]){var y=h,w=v;return y_?Math.max(h,v):Math.max(m,v)}function $J(e){var{translateX:t,translateY:n,useTranslate3d:r}=e;return{transform:r?"translate3d(".concat(t,"px, ").concat(n,"px, 0)"):"translate(".concat(t,"px, ").concat(n,"px)")}}function FJ(e){var{allowEscapeViewBox:t,coordinate:n,offsetTopLeft:r,position:i,reverseDirection:o,tooltipBox:a,useTranslate3d:l,viewBox:c}=e,d,h,m;return a.height>0&&a.width>0&&n?(h=LT({allowEscapeViewBox:t,coordinate:n,key:"x",offsetTopLeft:r,position:i,reverseDirection:o,tooltipDimension:a.width,viewBox:c,viewBoxDimension:c.width}),m=LT({allowEscapeViewBox:t,coordinate:n,key:"y",offsetTopLeft:r,position:i,reverseDirection:o,tooltipDimension:a.height,viewBox:c,viewBoxDimension:c.height}),d=$J({translateX:h,translateY:m,useTranslate3d:l})):d=LJ,{cssProperties:d,cssClasses:DJ({translateX:h,translateY:m,coordinate:n})}}function DT(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Kv(e){for(var t=1;t{if(t.key==="Escape"){var n,r,i,o;this.setState({dismissed:!0,dismissedAtCoordinate:{x:(n=(r=this.props.coordinate)===null||r===void 0?void 0:r.x)!==null&&n!==void 0?n:0,y:(i=(o=this.props.coordinate)===null||o===void 0?void 0:o.y)!==null&&i!==void 0?i:0}})}})}componentDidMount(){document.addEventListener("keydown",this.handleKeyDown)}componentWillUnmount(){document.removeEventListener("keydown",this.handleKeyDown)}componentDidUpdate(){var t,n;this.state.dismissed&&(((t=this.props.coordinate)===null||t===void 0?void 0:t.x)!==this.state.dismissedAtCoordinate.x||((n=this.props.coordinate)===null||n===void 0?void 0:n.y)!==this.state.dismissedAtCoordinate.y)&&(this.state.dismissed=!1)}render(){var{active:t,allowEscapeViewBox:n,animationDuration:r,animationEasing:i,children:o,coordinate:a,hasPayload:l,isAnimationActive:c,offset:d,position:h,reverseDirection:m,useTranslate3d:v,viewBox:y,wrapperStyle:w,lastBoundingBox:C,innerRef:_,hasPortalFromProps:P}=this.props,{cssClasses:T,cssProperties:A}=FJ({allowEscapeViewBox:n,coordinate:a,offsetTopLeft:d,position:h,reverseDirection:m,tooltipBox:{height:C.height,width:C.width},useTranslate3d:v,viewBox:y}),I=P?{}:Kv(Kv({transition:c&&t?"transform ".concat(r,"ms ").concat(i):void 0},A),{},{pointerEvents:"none",visibility:!this.state.dismissed&&t&&l?"visible":"hidden",position:"absolute",top:0,left:0}),M=Kv(Kv({},I),{},{visibility:!this.state.dismissed&&t&&l?"visible":"hidden"},w);return O.createElement("div",{xmlns:"http://www.w3.org/1999/xhtml",tabIndex:-1,className:T,style:M,ref:_},o)}}var UJ=()=>!(typeof window<"u"&&window.document&&window.document.createElement&&window.setTimeout),Kg={isSsr:UJ()},DN=()=>St(e=>e.rootProps.accessibilityLayer);function Ao(e){return Number.isFinite(e)}function zy(e){return typeof e=="number"&&e>0&&Number.isFinite(e)}function __(){return __=Object.assign?Object.assign.bind():function(e){for(var t=1;tAo(e.x)&&Ao(e.y),Cm=e=>e.x,Em=e=>e.y,KJ=(e,t)=>{if(typeof e=="function")return e;var n="curve".concat(Wg(e));return(n==="curveMonotone"||n==="curveBump")&&t?BT["".concat(n).concat(t==="vertical"?"Y":"X")]:BT[n]||z1},GJ=e=>{var{type:t="linear",points:n=[],baseLine:r,layout:i,connectNulls:o=!1}=e,a=KJ(t,i),l=o?n.filter(Gv):n,c;if(Array.isArray(r)){var d=o?r.filter(m=>Gv(m)):r,h=l.map((m,v)=>FT(FT({},m),{},{base:d[v]}));return i==="vertical"?c=Vv().y(Em).x1(Cm).x0(m=>m.base.x):c=Vv().x(Cm).y1(Em).y0(m=>m.base.y),c.defined(Gv).curve(a),c(h)}return i==="vertical"&&ut(r)?c=Vv().y(Em).x1(Cm).x0(r):ut(r)?c=Vv().x(Cm).y1(Em).y0(r):c=FI().x(Cm).y(Em),c.defined(Gv).curve(a),c(l)},YJ=e=>{var{className:t,points:n,path:r,pathRef:i}=e;if((!n||!n.length)&&!r)return null;var o=n&&n.length?GJ(e):r;return O.createElement("path",__({},B1(e),YY(e),{className:Rn("recharts-curve",t),d:o===null?void 0:o,ref:i}))},ZJ=["x","y","top","left","width","height","className"];function C_(){return C_=Object.assign?Object.assign.bind():function(e){for(var t=1;t"M".concat(e,",").concat(i,"v").concat(r,"M").concat(o,",").concat(t,"h").concat(n),iee=e=>{var{x:t=0,y:n=0,top:r=0,left:i=0,width:o=0,height:a=0,className:l}=e,c=tee(e,ZJ),d=XJ({x:t,y:n,top:r,left:i,width:o,height:a},c);return!ut(t)||!ut(n)||!ut(o)||!ut(a)||!ut(r)||!ut(i)?null:O.createElement("path",C_({},$r(d,!0),{className:Rn("recharts-cross",l),d:ree(t,n,o,a,r,i)}))};function oee(e,t,n,r){var i=r/2;return{stroke:"none",fill:"#ccc",x:e==="horizontal"?t.x-i:n.left+.5,y:e==="horizontal"?n.top+.5:t.y-i,width:e==="horizontal"?r:n.width-1,height:e==="horizontal"?n.height-1:r}}function zT(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function aee(e){for(var t=1;t(a[l]===void 0&&r[l]!==void 0&&(a[l]=r[l]),a),n);return o}var k2={},j2={},M2={},UT;function cee(){return UT||(UT=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n){if(!n||typeof n!="object")return!1;const r=Object.getPrototypeOf(n);return r===null||r===Object.prototype||Object.getPrototypeOf(r)===null?Object.prototype.toString.call(n)==="[object Object]":!1}e.isPlainObject=t}(M2)),M2}var WT;function fee(){return WT||(WT=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=cee(),n=tN(),r=hE(),i=pE(),o=fE();function a(d,h,m){return l(d,h,void 0,void 0,void 0,void 0,m)}function l(d,h,m,v,y,w,C){const _=C(d,h,m,v,y,w);if(_!==void 0)return _;if(typeof d==typeof h)switch(typeof d){case"bigint":case"string":case"boolean":case"symbol":case"undefined":return d===h;case"number":return d===h||Object.is(d,h);case"function":return d===h;case"object":return c(d,h,w,C)}return c(d,h,w,C)}function c(d,h,m,v){if(Object.is(d,h))return!0;let y=r.getTag(d),w=r.getTag(h);if(y===i.argumentsTag&&(y=i.objectTag),w===i.argumentsTag&&(w=i.objectTag),y!==w)return!1;switch(y){case i.stringTag:return d.toString()===h.toString();case i.numberTag:{const P=d.valueOf(),T=h.valueOf();return o.eq(P,T)}case i.booleanTag:case i.dateTag:case i.symbolTag:return Object.is(d.valueOf(),h.valueOf());case i.regexpTag:return d.source===h.source&&d.flags===h.flags;case i.functionTag:return d===h}m=m??new Map;const C=m.get(d),_=m.get(h);if(C!=null&&_!=null)return C===h;m.set(d,h),m.set(h,d);try{switch(y){case i.mapTag:{if(d.size!==h.size)return!1;for(const[P,T]of d.entries())if(!h.has(P)||!l(T,h.get(P),P,d,h,m,v))return!1;return!0}case i.setTag:{if(d.size!==h.size)return!1;const P=Array.from(d.values()),T=Array.from(h.values());for(let A=0;Al(I,N,void 0,d,h,m,v));if(M===-1)return!1;T.splice(M,1)}return!0}case i.arrayTag:case i.uint8ArrayTag:case i.uint8ClampedArrayTag:case i.uint16ArrayTag:case i.uint32ArrayTag:case i.bigUint64ArrayTag:case i.int8ArrayTag:case i.int16ArrayTag:case i.int32ArrayTag:case i.bigInt64ArrayTag:case i.float32ArrayTag:case i.float64ArrayTag:{if(typeof Buffer<"u"&&Buffer.isBuffer(d)!==Buffer.isBuffer(h)||d.length!==h.length)return!1;for(let P=0;P[0,3*e,3*t-6*e,3*e-3*t+1],FN=(e,t)=>e.map((n,r)=>n*t**r).reduce((n,r)=>n+r),GT=(e,t)=>n=>{var r=$N(e,t);return FN(r,n)},vee=(e,t)=>n=>{var r=$N(e,t),i=[...r.map((o,a)=>o*a).slice(1),0];return FN(i,n)},YT=function(){for(var t,n,r,i,o=arguments.length,a=new Array(o),l=0;lparseFloat(w)))}}else a.length===4&&([t,r,n,i]=a);var d=GT(t,n),h=GT(r,i),m=vee(t,n),v=w=>w>1?1:w<0?0:w,y=w=>{for(var C=w>1?1:w,_=C,P=0;P<8;++P){var T=d(_)-C,A=m(_);if(Math.abs(T-C)0&&arguments[0]!==void 0?arguments[0]:{},{stiff:n=100,damping:r=8,dt:i=17}=t,o=(a,l,c)=>{var d=-(a-l)*n,h=c*r,m=c+(d-h)*i/1e3,v=c*i/1e3+a;return Math.abs(v-l){if(typeof e=="string")switch(e){case"ease":case"ease-in-out":case"ease-out":case"ease-in":case"linear":return YT(e);case"spring":return yee();default:if(e.split("(")[0]==="cubic-bezier")return YT(e)}return typeof e=="function"?e:null};function ZT(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function XT(e){for(var t=1;te.replace(/([A-Z])/g,t=>"-".concat(t.toLowerCase())),_ee=(e,t,n)=>e.map(r=>"".concat(See(r)," ").concat(t,"ms ").concat(n)).join(","),Cee=(e,t)=>[Object.keys(e),Object.keys(t)].reduce((n,r)=>n.filter(i=>r.includes(i))),dg=(e,t)=>Object.keys(t).reduce((n,r)=>XT(XT({},n),{},{[r]:e(r,t[r])}),{});function QT(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function ei(e){for(var t=1;te+(t-e)*n,E_=e=>{var{from:t,to:n}=e;return t!==n},VN=(e,t,n)=>{var r=dg((i,o)=>{if(E_(o)){var[a,l]=e(o.from,o.to,o.velocity);return ei(ei({},o),{},{from:a,velocity:l})}return o},t);return n<1?dg((i,o)=>E_(o)?ei(ei({},o),{},{velocity:Wy(o.velocity,r[i].velocity,n),from:Wy(o.from,r[i].from,n)}):o,t):VN(e,r,n-1)};function Aee(e,t,n,r,i,o){var a,l=r.reduce((v,y)=>ei(ei({},v),{},{[y]:{from:e[y],velocity:0,to:t[y]}}),{}),c=()=>dg((v,y)=>y.from,l),d=()=>!Object.values(l).filter(E_).length,h=null,m=v=>{a||(a=v);var y=v-a,w=y/n.dt;l=VN(n,l,w),i(ei(ei(ei({},e),t),c())),a=v,d()||(h=o.setTimeout(m))};return()=>(h=o.setTimeout(m),()=>{h()})}function Tee(e,t,n,r,i,o,a){var l=null,c=i.reduce((m,v)=>ei(ei({},m),{},{[v]:[e[v],t[v]]}),{}),d,h=m=>{d||(d=m);var v=(m-d)/r,y=dg((C,_)=>Wy(..._,n(v)),c);if(o(ei(ei(ei({},e),t),y)),v<1)l=a.setTimeout(h);else{var w=dg((C,_)=>Wy(..._,n(1)),c);o(ei(ei(ei({},e),t),w))}};return()=>(l=a.setTimeout(h),()=>{l()})}const zN=(e,t,n,r,i,o)=>{var a=Cee(e,t);return n.isStepper===!0?Aee(e,t,n,a,i,o):Tee(e,t,n,r,a,i,o)};function kee(e){var t,n=()=>null,r=!1,i=null,o=a=>{if(!r){if(Array.isArray(a)){if(!a.length)return;var l=a,[c,...d]=l;if(typeof c=="number"){i=e.setTimeout(o.bind(null,d),c);return}o(c),i=e.setTimeout(o.bind(null,d));return}typeof a=="string"&&(t=a,n(t)),typeof a=="object"&&(t=a,n(t)),typeof a=="function"&&a()}};return{stop:()=>{r=!0},start:a=>{r=!1,i&&(i(),i=null),o(a)},subscribe:a=>(n=a,()=>{n=()=>null}),getTimeoutController:()=>e}}class jee{setTimeout(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,r=performance.now(),i=null,o=a=>{a-r>=n?t(a):typeof requestAnimationFrame=="function"&&(i=requestAnimationFrame(o))};return i=requestAnimationFrame(o),()=>{cancelAnimationFrame(i)}}}function Mee(){return kee(new jee)}var Iee=O.createContext(Mee);function UN(e,t){var n=O.useContext(Iee);return O.useMemo(()=>t??n(e),[e,t,n])}var Nee=["children","begin","duration","attributeName","easing","isActive","from","to","canBegin","onAnimationEnd","shouldReAnimate","onAnimationReStart","animationManager"];function O_(){return O_=Object.assign?Object.assign.bind():function(e){for(var t=1;t{this.stopJSAnimation=d()};this.manager.start([c,a,h,i,l])}runAnimation(t){var{begin:n,duration:r,attributeName:i,to:o,easing:a,onAnimationStart:l,onAnimationEnd:c,children:d}=t;if(this.unSubscribe=this.manager.subscribe(this.handleStyleChange),typeof a=="function"||typeof d=="function"||a==="spring"){this.runJSAnimation(t);return}var h=i?{[i]:o}:o,m=_ee(Object.keys(h),r,a);this.manager.start([l,n,hu(hu({},h),{},{transition:m}),r,c])}render(){var t=this.props,{children:n,begin:r,duration:i,attributeName:o,easing:a,isActive:l,from:c,to:d,canBegin:h,onAnimationEnd:m,shouldReAnimate:v,onAnimationReStart:y,animationManager:w}=t,C=Ree(t,Nee),_=O.Children.count(n),P=this.state.style;if(typeof n=="function")return n(P);if(!l||_===0||i<=0)return n;var T=A=>{var{style:I={},className:M}=A.props,N=O.cloneElement(A,hu(hu({},C),{},{style:hu(hu({},I),P),className:M}));return N};return _===1?T(O.Children.only(n)):O.createElement("div",null,O.Children.map(n,A=>T(A)))}}Bc(OE,"displayName","Animate");Bc(OE,"defaultProps",{begin:0,duration:1e3,attributeName:"",easing:"ease",isActive:!0,canBegin:!0,onAnimationEnd:()=>{},onAnimationStart:()=>{}});function Hy(e){var t,n=UN((t=e.attributeName)!==null&&t!==void 0?t:Object.keys(e.to).join(","),e.animationManager);return O.createElement(OE,O_({},e,{animationManager:n}))}function qy(){return qy=Object.assign?Object.assign.bind():function(e){for(var t=1;t{var o=Math.min(Math.abs(n)/2,Math.abs(r)/2),a=r>=0?1:-1,l=n>=0?1:-1,c=r>=0&&n>=0||r<0&&n<0?1:0,d;if(o>0&&i instanceof Array){for(var h=[0,0,0,0],m=0,v=4;mo?o:i[m];d="M".concat(e,",").concat(t+a*h[0]),h[0]>0&&(d+="A ".concat(h[0],",").concat(h[0],",0,0,").concat(c,",").concat(e+l*h[0],",").concat(t)),d+="L ".concat(e+n-l*h[1],",").concat(t),h[1]>0&&(d+="A ".concat(h[1],",").concat(h[1],",0,0,").concat(c,`, `).concat(e+n,",").concat(t+a*h[1])),d+="L ".concat(e+n,",").concat(t+r-a*h[2]),h[2]>0&&(d+="A ".concat(h[2],",").concat(h[2],",0,0,").concat(c,`, `).concat(e+n-l*h[2],",").concat(t+r)),d+="L ".concat(e+l*h[3],",").concat(t+r),h[3]>0&&(d+="A ".concat(h[3],",").concat(h[3],",0,0,").concat(c,`, `).concat(e,",").concat(t+r-a*h[3])),d+="Z"}else if(o>0&&i===+i&&i>0){var y=Math.min(o,i);d="M ".concat(e,",").concat(t+a*y,` A `).concat(y,",").concat(y,",0,0,").concat(c,",").concat(e+l*y,",").concat(t,` L `).concat(e+n-l*y,",").concat(t,` A `).concat(y,",").concat(y,",0,0,").concat(c,",").concat(e+n,",").concat(t+a*y,` L `).concat(e+n,",").concat(t+r-a*y,` A `).concat(y,",").concat(y,",0,0,").concat(c,",").concat(e+n-l*y,",").concat(t+r,` L `).concat(e+l*y,",").concat(t+r,` A `).concat(y,",").concat(y,",0,0,").concat(c,",").concat(e,",").concat(t+r-a*y," Z")}else d="M ".concat(e,",").concat(t," h ").concat(n," v ").concat(r," h ").concat(-n," Z");return d},Fee={x:0,y:0,width:0,height:0,radius:0,isAnimationActive:!1,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},WN=e=>{var t=xf(e,Fee),n=O.useRef(null),[r,i]=O.useState(-1);O.useEffect(()=>{if(n.current&&n.current.getTotalLength)try{var P=n.current.getTotalLength();P&&i(P)}catch{}},[]);var{x:o,y:a,width:l,height:c,radius:d,className:h}=t,{animationEasing:m,animationDuration:v,animationBegin:y,isAnimationActive:w,isUpdateAnimationActive:C}=t;if(o!==+o||a!==+a||l!==+l||c!==+c||l===0||c===0)return null;var _=Rn("recharts-rectangle",h);return C?O.createElement(Hy,{canBegin:r>0,from:{width:l,height:c,x:o,y:a},to:{width:l,height:c,x:o,y:a},duration:v,animationEasing:m,isActive:C},P=>{var{width:T,height:A,x:I,y:M}=P;return O.createElement(Hy,{canBegin:r>0,from:"0px ".concat(r===-1?1:r,"px"),to:"".concat(r,"px 0px"),attributeName:"strokeDasharray",begin:y,duration:v,isActive:w,easing:m},O.createElement("path",qy({},$r(t,!0),{className:_,d:ek(I,M,T,A,d),ref:n})))}):O.createElement("path",qy({},$r(t,!0),{className:_,d:ek(o,a,l,c,d)}))};function HN(e){var{cx:t,cy:n,radius:r,startAngle:i,endAngle:o}=e,a=ni(t,n,r,i),l=ni(t,n,r,o);return{points:[a,l],cx:t,cy:n,radius:r,startAngle:i,endAngle:o}}function P_(){return P_=Object.assign?Object.assign.bind():function(e){for(var t=1;t{var n=So(t-e),r=Math.min(Math.abs(t-e),359.999);return n*r},Yv=e=>{var{cx:t,cy:n,radius:r,angle:i,sign:o,isExternal:a,cornerRadius:l,cornerIsExternal:c}=e,d=l*(a?1:-1)+r,h=Math.asin(l/d)/Vy,m=c?i:i+o*h,v=ni(t,n,d,m),y=ni(t,n,r,m),w=c?i-o*h:i,C=ni(t,n,d*Math.cos(h*Vy),w);return{center:v,circleTangency:y,lineTangency:C,theta:h}},qN=e=>{var{cx:t,cy:n,innerRadius:r,outerRadius:i,startAngle:o,endAngle:a}=e,l=Bee(o,a),c=o+l,d=ni(t,n,i,o),h=ni(t,n,i,c),m="M ".concat(d.x,",").concat(d.y,` A `).concat(i,",").concat(i,`,0, `).concat(+(Math.abs(l)>180),",").concat(+(o>c),`, `).concat(h.x,",").concat(h.y,` `);if(r>0){var v=ni(t,n,r,o),y=ni(t,n,r,c);m+="L ".concat(y.x,",").concat(y.y,` A `).concat(r,",").concat(r,`,0, `).concat(+(Math.abs(l)>180),",").concat(+(o<=c),`, `).concat(v.x,",").concat(v.y," Z")}else m+="L ".concat(t,",").concat(n," Z");return m},Vee=e=>{var{cx:t,cy:n,innerRadius:r,outerRadius:i,cornerRadius:o,forceCornerRadius:a,cornerIsExternal:l,startAngle:c,endAngle:d}=e,h=So(d-c),{circleTangency:m,lineTangency:v,theta:y}=Yv({cx:t,cy:n,radius:i,angle:c,sign:h,cornerRadius:o,cornerIsExternal:l}),{circleTangency:w,lineTangency:C,theta:_}=Yv({cx:t,cy:n,radius:i,angle:d,sign:-h,cornerRadius:o,cornerIsExternal:l}),P=l?Math.abs(c-d):Math.abs(c-d)-y-_;if(P<0)return a?"M ".concat(v.x,",").concat(v.y,` a`).concat(o,",").concat(o,",0,0,1,").concat(o*2,`,0 a`).concat(o,",").concat(o,",0,0,1,").concat(-o*2,`,0 `):qN({cx:t,cy:n,innerRadius:r,outerRadius:i,startAngle:c,endAngle:d});var T="M ".concat(v.x,",").concat(v.y,` A`).concat(o,",").concat(o,",0,0,").concat(+(h<0),",").concat(m.x,",").concat(m.y,` A`).concat(i,",").concat(i,",0,").concat(+(P>180),",").concat(+(h<0),",").concat(w.x,",").concat(w.y,` A`).concat(o,",").concat(o,",0,0,").concat(+(h<0),",").concat(C.x,",").concat(C.y,` `);if(r>0){var{circleTangency:A,lineTangency:I,theta:M}=Yv({cx:t,cy:n,radius:r,angle:c,sign:h,isExternal:!0,cornerRadius:o,cornerIsExternal:l}),{circleTangency:N,lineTangency:L,theta:F}=Yv({cx:t,cy:n,radius:r,angle:d,sign:-h,isExternal:!0,cornerRadius:o,cornerIsExternal:l}),B=l?Math.abs(c-d):Math.abs(c-d)-M-F;if(B<0&&o===0)return"".concat(T,"L").concat(t,",").concat(n,"Z");T+="L".concat(L.x,",").concat(L.y,` A`).concat(o,",").concat(o,",0,0,").concat(+(h<0),",").concat(N.x,",").concat(N.y,` A`).concat(r,",").concat(r,",0,").concat(+(B>180),",").concat(+(h>0),",").concat(A.x,",").concat(A.y,` A`).concat(o,",").concat(o,",0,0,").concat(+(h<0),",").concat(I.x,",").concat(I.y,"Z")}else T+="L".concat(t,",").concat(n,"Z");return T},zee={cx:0,cy:0,innerRadius:0,outerRadius:0,startAngle:0,endAngle:0,cornerRadius:0,forceCornerRadius:!1,cornerIsExternal:!1},KN=e=>{var t=xf(e,zee),{cx:n,cy:r,innerRadius:i,outerRadius:o,cornerRadius:a,forceCornerRadius:l,cornerIsExternal:c,startAngle:d,endAngle:h,className:m}=t;if(o0&&Math.abs(d-h)<360?C=Vee({cx:n,cy:r,innerRadius:i,outerRadius:o,cornerRadius:Math.min(w,y/2),forceCornerRadius:l,cornerIsExternal:c,startAngle:d,endAngle:h}):C=qN({cx:n,cy:r,innerRadius:i,outerRadius:o,startAngle:d,endAngle:h}),O.createElement("path",P_({},$r(t,!0),{className:v,d:C}))};function Uee(e,t,n){var r,i,o,a;if(e==="horizontal")r=t.x,o=r,i=n.top,a=n.top+n.height;else if(e==="vertical")i=t.y,a=i,r=n.left,o=n.left+n.width;else if(t.cx!=null&&t.cy!=null)if(e==="centric"){var{cx:l,cy:c,innerRadius:d,outerRadius:h,angle:m}=t,v=ni(l,c,d,m),y=ni(l,c,h,m);r=v.x,i=v.y,o=y.x,a=y.y}else return HN(t);return[{x:r,y:i},{x:o,y:a}]}var R2={},L2={},D2={},tk;function Wee(){return tk||(tk=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=oN();function n(r){return t.isSymbol(r)?NaN:Number(r)}e.toNumber=n}(D2)),D2}var nk;function Hee(){return nk||(nk=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=Wee();function n(r){return r?(r=t.toNumber(r),r===1/0||r===-1/0?(r<0?-1:1)*Number.MAX_VALUE:r===r?r:0):r===0?r:0}e.toFinite=n}(L2)),L2}var rk;function qee(){return rk||(rk=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=aN(),n=Hee();function r(i,o,a){a&&typeof a!="number"&&t.isIterateeCall(i,o,a)&&(o=a=void 0),i=n.toFinite(i),o===void 0?(o=i,i=0):o=n.toFinite(o),a=a===void 0?it?1:e>=t?0:NaN}function Yee(e,t){return e==null||t==null?NaN:te?1:t>=e?0:NaN}function PE(e){let t,n,r;e.length!==2?(t=bu,n=(l,c)=>bu(e(l),c),r=(l,c)=>e(l)-c):(t=e===bu||e===Yee?e:Zee,n=e,r=e);function i(l,c,d=0,h=l.length){if(d>>1;n(l[m],c)<0?d=m+1:h=m}while(d>>1;n(l[m],c)<=0?d=m+1:h=m}while(dd&&r(l[m-1],c)>-r(l[m],c)?m-1:m}return{left:i,center:a,right:o}}function Zee(){return 0}function YN(e){return e===null?NaN:+e}function*Xee(e,t){for(let n of e)n!=null&&(n=+n)>=n&&(yield n)}const Qee=PE(bu),Gg=Qee.right;PE(YN).center;class ok extends Map{constructor(t,n=tte){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:n}}),t!=null)for(const[r,i]of t)this.set(r,i)}get(t){return super.get(ak(this,t))}has(t){return super.has(ak(this,t))}set(t,n){return super.set(Jee(this,t),n)}delete(t){return super.delete(ete(this,t))}}function ak({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):n}function Jee({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):(e.set(r,n),n)}function ete({_intern:e,_key:t},n){const r=t(n);return e.has(r)&&(n=e.get(r),e.delete(r)),n}function tte(e){return e!==null&&typeof e=="object"?e.valueOf():e}function nte(e=bu){if(e===bu)return ZN;if(typeof e!="function")throw new TypeError("compare is not a function");return(t,n)=>{const r=e(t,n);return r||r===0?r:(e(n,n)===0)-(e(t,t)===0)}}function ZN(e,t){return(e==null||!(e>=e))-(t==null||!(t>=t))||(et?1:0)}const rte=Math.sqrt(50),ite=Math.sqrt(10),ote=Math.sqrt(2);function Ky(e,t,n){const r=(t-e)/Math.max(0,n),i=Math.floor(Math.log10(r)),o=r/Math.pow(10,i),a=o>=rte?10:o>=ite?5:o>=ote?2:1;let l,c,d;return i<0?(d=Math.pow(10,-i)/a,l=Math.round(e*d),c=Math.round(t*d),l/dt&&--c,d=-d):(d=Math.pow(10,i)*a,l=Math.round(e/d),c=Math.round(t/d),l*dt&&--c),c0))return[];if(e===t)return[e];const r=t=i))return[];const l=o-i+1,c=new Array(l);if(r)if(a<0)for(let d=0;d=r)&&(n=r);return n}function lk(e,t){let n;for(const r of e)r!=null&&(n>r||n===void 0&&r>=r)&&(n=r);return n}function XN(e,t,n=0,r=1/0,i){if(t=Math.floor(t),n=Math.floor(Math.max(0,n)),r=Math.floor(Math.min(e.length-1,r)),!(n<=t&&t<=r))return e;for(i=i===void 0?ZN:nte(i);r>n;){if(r-n>600){const c=r-n+1,d=t-n+1,h=Math.log(c),m=.5*Math.exp(2*h/3),v=.5*Math.sqrt(h*m*(c-m)/c)*(d-c/2<0?-1:1),y=Math.max(n,Math.floor(t-d*m/c+v)),w=Math.min(r,Math.floor(t+(c-d)*m/c+v));XN(e,t,y,w,i)}const o=e[t];let a=n,l=r;for(Om(e,n,t),i(e[r],o)>0&&Om(e,n,r);a0;)--l}i(e[n],o)===0?Om(e,n,l):(++l,Om(e,l,r)),l<=t&&(n=l+1),t<=l&&(r=l-1)}return e}function Om(e,t,n){const r=e[t];e[t]=e[n],e[n]=r}function ate(e,t,n){if(e=Float64Array.from(Xee(e)),!(!(r=e.length)||isNaN(t=+t))){if(t<=0||r<2)return lk(e);if(t>=1)return sk(e);var r,i=(r-1)*t,o=Math.floor(i),a=sk(XN(e,o).subarray(0,o+1)),l=lk(e.subarray(o+1));return a+(l-a)*(i-o)}}function ste(e,t,n=YN){if(!(!(r=e.length)||isNaN(t=+t))){if(t<=0||r<2)return+n(e[0],0,e);if(t>=1)return+n(e[r-1],r-1,e);var r,i=(r-1)*t,o=Math.floor(i),a=+n(e[o],o,e),l=+n(e[o+1],o+1,e);return a+(l-a)*(i-o)}}function lte(e,t,n){e=+e,t=+t,n=(i=arguments.length)<2?(t=e,e=0,1):i<3?1:+n;for(var r=-1,i=Math.max(0,Math.ceil((t-e)/n))|0,o=new Array(i);++r>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):n===8?Zv(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):n===4?Zv(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|t&240,((t&15)<<4|t&15)/255):null):(t=fte.exec(e))?new Qi(t[1],t[2],t[3],1):(t=dte.exec(e))?new Qi(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=hte.exec(e))?Zv(t[1],t[2],t[3],t[4]):(t=pte.exec(e))?Zv(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=mte.exec(e))?mk(t[1],t[2]/100,t[3]/100,1):(t=gte.exec(e))?mk(t[1],t[2]/100,t[3]/100,t[4]):uk.hasOwnProperty(e)?dk(uk[e]):e==="transparent"?new Qi(NaN,NaN,NaN,0):null}function dk(e){return new Qi(e>>16&255,e>>8&255,e&255,1)}function Zv(e,t,n,r){return r<=0&&(e=t=n=NaN),new Qi(e,t,n,r)}function xte(e){return e instanceof Yg||(e=mg(e)),e?(e=e.rgb(),new Qi(e.r,e.g,e.b,e.opacity)):new Qi}function M_(e,t,n,r){return arguments.length===1?xte(e):new Qi(e,t,n,r??1)}function Qi(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}kE(Qi,M_,JN(Yg,{brighter(e){return e=e==null?Gy:Math.pow(Gy,e),new Qi(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?hg:Math.pow(hg,e),new Qi(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new Qi(Jc(this.r),Jc(this.g),Jc(this.b),Yy(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:hk,formatHex:hk,formatHex8:bte,formatRgb:pk,toString:pk}));function hk(){return`#${Vc(this.r)}${Vc(this.g)}${Vc(this.b)}`}function bte(){return`#${Vc(this.r)}${Vc(this.g)}${Vc(this.b)}${Vc((isNaN(this.opacity)?1:this.opacity)*255)}`}function pk(){const e=Yy(this.opacity);return`${e===1?"rgb(":"rgba("}${Jc(this.r)}, ${Jc(this.g)}, ${Jc(this.b)}${e===1?")":`, ${e})`}`}function Yy(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function Jc(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function Vc(e){return e=Jc(e),(e<16?"0":"")+e.toString(16)}function mk(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new Ta(e,t,n,r)}function eR(e){if(e instanceof Ta)return new Ta(e.h,e.s,e.l,e.opacity);if(e instanceof Yg||(e=mg(e)),!e)return new Ta;if(e instanceof Ta)return e;e=e.rgb();var t=e.r/255,n=e.g/255,r=e.b/255,i=Math.min(t,n,r),o=Math.max(t,n,r),a=NaN,l=o-i,c=(o+i)/2;return l?(t===o?a=(n-r)/l+(n0&&c<1?0:a,new Ta(a,l,c,e.opacity)}function wte(e,t,n,r){return arguments.length===1?eR(e):new Ta(e,t,n,r??1)}function Ta(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}kE(Ta,wte,JN(Yg,{brighter(e){return e=e==null?Gy:Math.pow(Gy,e),new Ta(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?hg:Math.pow(hg,e),new Ta(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+(this.h<0)*360,t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,i=2*n-r;return new Qi(F2(e>=240?e-240:e+120,i,r),F2(e,i,r),F2(e<120?e+240:e-120,i,r),this.opacity)},clamp(){return new Ta(gk(this.h),Xv(this.s),Xv(this.l),Yy(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const e=Yy(this.opacity);return`${e===1?"hsl(":"hsla("}${gk(this.h)}, ${Xv(this.s)*100}%, ${Xv(this.l)*100}%${e===1?")":`, ${e})`}`}}));function gk(e){return e=(e||0)%360,e<0?e+360:e}function Xv(e){return Math.max(0,Math.min(1,e||0))}function F2(e,t,n){return(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)*255}const jE=e=>()=>e;function Ste(e,t){return function(n){return e+n*t}}function _te(e,t,n){return e=Math.pow(e,n),t=Math.pow(t,n)-e,n=1/n,function(r){return Math.pow(e+r*t,n)}}function Cte(e){return(e=+e)==1?tR:function(t,n){return n-t?_te(t,n,e):jE(isNaN(t)?n:t)}}function tR(e,t){var n=t-e;return n?Ste(e,n):jE(isNaN(e)?t:e)}const vk=function e(t){var n=Cte(t);function r(i,o){var a=n((i=M_(i)).r,(o=M_(o)).r),l=n(i.g,o.g),c=n(i.b,o.b),d=tR(i.opacity,o.opacity);return function(h){return i.r=a(h),i.g=l(h),i.b=c(h),i.opacity=d(h),i+""}}return r.gamma=e,r}(1);function Ete(e,t){t||(t=[]);var n=e?Math.min(t.length,e.length):0,r=t.slice(),i;return function(o){for(i=0;in&&(o=t.slice(n,o),l[a]?l[a]+=o:l[++a]=o),(r=r[0])===(i=i[0])?l[a]?l[a]+=i:l[++a]=i:(l[++a]=null,c.push({i:a,x:Zy(r,i)})),n=B2.lastIndex;return nt&&(n=e,e=t,t=n),function(r){return Math.max(e,Math.min(t,r))}}function Lte(e,t,n){var r=e[0],i=e[1],o=t[0],a=t[1];return i2?Dte:Lte,c=d=null,m}function m(v){return v==null||isNaN(v=+v)?o:(c||(c=l(e.map(r),t,n)))(r(a(v)))}return m.invert=function(v){return a(i((d||(d=l(t,e.map(r),Zy)))(v)))},m.domain=function(v){return arguments.length?(e=Array.from(v,Xy),h()):e.slice()},m.range=function(v){return arguments.length?(t=Array.from(v),h()):t.slice()},m.rangeRound=function(v){return t=Array.from(v),n=ME,h()},m.clamp=function(v){return arguments.length?(a=v?!0:Ti,h()):a!==Ti},m.interpolate=function(v){return arguments.length?(n=v,h()):n},m.unknown=function(v){return arguments.length?(o=v,m):o},function(v,y){return r=v,i=y,h()}}function IE(){return J1()(Ti,Ti)}function $te(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)}function Qy(e,t){if((n=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"))<0)return null;var n,r=e.slice(0,n);return[r.length>1?r[0]+r.slice(2):r,+e.slice(n+1)]}function Eh(e){return e=Qy(Math.abs(e)),e?e[1]:NaN}function Fte(e,t){return function(n,r){for(var i=n.length,o=[],a=0,l=e[0],c=0;i>0&&l>0&&(c+l+1>r&&(l=Math.max(1,r-c)),o.push(n.substring(i-=l,i+l)),!((c+=l+1)>r));)l=e[a=(a+1)%e.length];return o.reverse().join(t)}}function Bte(e){return function(t){return t.replace(/[0-9]/g,function(n){return e[+n]})}}var Vte=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function gg(e){if(!(t=Vte.exec(e)))throw new Error("invalid format: "+e);var t;return new NE({fill:t[1],align:t[2],sign:t[3],symbol:t[4],zero:t[5],width:t[6],comma:t[7],precision:t[8]&&t[8].slice(1),trim:t[9],type:t[10]})}gg.prototype=NE.prototype;function NE(e){this.fill=e.fill===void 0?" ":e.fill+"",this.align=e.align===void 0?">":e.align+"",this.sign=e.sign===void 0?"-":e.sign+"",this.symbol=e.symbol===void 0?"":e.symbol+"",this.zero=!!e.zero,this.width=e.width===void 0?void 0:+e.width,this.comma=!!e.comma,this.precision=e.precision===void 0?void 0:+e.precision,this.trim=!!e.trim,this.type=e.type===void 0?"":e.type+""}NE.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(this.width===void 0?"":Math.max(1,this.width|0))+(this.comma?",":"")+(this.precision===void 0?"":"."+Math.max(0,this.precision|0))+(this.trim?"~":"")+this.type};function zte(e){e:for(var t=e.length,n=1,r=-1,i;n0&&(r=0);break}return r>0?e.slice(0,r)+e.slice(i+1):e}var nR;function Ute(e,t){var n=Qy(e,t);if(!n)return e+"";var r=n[0],i=n[1],o=i-(nR=Math.max(-8,Math.min(8,Math.floor(i/3)))*3)+1,a=r.length;return o===a?r:o>a?r+new Array(o-a+1).join("0"):o>0?r.slice(0,o)+"."+r.slice(o):"0."+new Array(1-o).join("0")+Qy(e,Math.max(0,t+o-1))[0]}function xk(e,t){var n=Qy(e,t);if(!n)return e+"";var r=n[0],i=n[1];return i<0?"0."+new Array(-i).join("0")+r:r.length>i+1?r.slice(0,i+1)+"."+r.slice(i+1):r+new Array(i-r.length+2).join("0")}const bk={"%":(e,t)=>(e*100).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+"",d:$te,e:(e,t)=>e.toExponential(t),f:(e,t)=>e.toFixed(t),g:(e,t)=>e.toPrecision(t),o:e=>Math.round(e).toString(8),p:(e,t)=>xk(e*100,t),r:xk,s:Ute,X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function wk(e){return e}var Sk=Array.prototype.map,_k=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function Wte(e){var t=e.grouping===void 0||e.thousands===void 0?wk:Fte(Sk.call(e.grouping,Number),e.thousands+""),n=e.currency===void 0?"":e.currency[0]+"",r=e.currency===void 0?"":e.currency[1]+"",i=e.decimal===void 0?".":e.decimal+"",o=e.numerals===void 0?wk:Bte(Sk.call(e.numerals,String)),a=e.percent===void 0?"%":e.percent+"",l=e.minus===void 0?"−":e.minus+"",c=e.nan===void 0?"NaN":e.nan+"";function d(m){m=gg(m);var v=m.fill,y=m.align,w=m.sign,C=m.symbol,_=m.zero,P=m.width,T=m.comma,A=m.precision,I=m.trim,M=m.type;M==="n"?(T=!0,M="g"):bk[M]||(A===void 0&&(A=12),I=!0,M="g"),(_||v==="0"&&y==="=")&&(_=!0,v="0",y="=");var N=C==="$"?n:C==="#"&&/[boxX]/.test(M)?"0"+M.toLowerCase():"",L=C==="$"?r:/[%p]/.test(M)?a:"",F=bk[M],B=/[defgprs%]/.test(M);A=A===void 0?6:/[gprs]/.test(M)?Math.max(1,Math.min(21,A)):Math.max(0,Math.min(20,A));function U(W){var G=N,ie=L,te,se,le;if(M==="c")ie=F(W)+ie,W="";else{W=+W;var q=W<0||1/W<0;if(W=isNaN(W)?c:F(Math.abs(W),A),I&&(W=zte(W)),q&&+W==0&&w!=="+"&&(q=!1),G=(q?w==="("?w:l:w==="-"||w==="("?"":w)+G,ie=(M==="s"?_k[8+nR/3]:"")+ie+(q&&w==="("?")":""),B){for(te=-1,se=W.length;++tele||le>57){ie=(le===46?i+W.slice(te+1):W.slice(te))+ie,W=W.slice(0,te);break}}}T&&!_&&(W=t(W,1/0));var H=G.length+W.length+ie.length,Z=H>1)+G+W+ie+Z.slice(H);break;default:W=Z+G+W+ie;break}return o(W)}return U.toString=function(){return m+""},U}function h(m,v){var y=d((m=gg(m),m.type="f",m)),w=Math.max(-8,Math.min(8,Math.floor(Eh(v)/3)))*3,C=Math.pow(10,-w),_=_k[8+w/3];return function(P){return y(C*P)+_}}return{format:d,formatPrefix:h}}var Qv,RE,rR;Hte({thousands:",",grouping:[3],currency:["$",""]});function Hte(e){return Qv=Wte(e),RE=Qv.format,rR=Qv.formatPrefix,Qv}function qte(e){return Math.max(0,-Eh(Math.abs(e)))}function Kte(e,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(Eh(t)/3)))*3-Eh(Math.abs(e)))}function Gte(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,Eh(t)-Eh(e))+1}function iR(e,t,n,r){var i=k_(e,t,n),o;switch(r=gg(r??",f"),r.type){case"s":{var a=Math.max(Math.abs(e),Math.abs(t));return r.precision==null&&!isNaN(o=Kte(i,a))&&(r.precision=o),rR(r,a)}case"":case"e":case"g":case"p":case"r":{r.precision==null&&!isNaN(o=Gte(i,Math.max(Math.abs(e),Math.abs(t))))&&(r.precision=o-(r.type==="e"));break}case"f":case"%":{r.precision==null&&!isNaN(o=qte(i))&&(r.precision=o-(r.type==="%")*2);break}}return RE(r)}function Tu(e){var t=e.domain;return e.ticks=function(n){var r=t();return A_(r[0],r[r.length-1],n??10)},e.tickFormat=function(n,r){var i=t();return iR(i[0],i[i.length-1],n??10,r)},e.nice=function(n){n==null&&(n=10);var r=t(),i=0,o=r.length-1,a=r[i],l=r[o],c,d,h=10;for(l0;){if(d=T_(a,l,n),d===c)return r[i]=a,r[o]=l,t(r);if(d>0)a=Math.floor(a/d)*d,l=Math.ceil(l/d)*d;else if(d<0)a=Math.ceil(a*d)/d,l=Math.floor(l*d)/d;else break;c=d}return e},e}function oR(){var e=IE();return e.copy=function(){return Zg(e,oR())},la.apply(e,arguments),Tu(e)}function aR(e){var t;function n(r){return r==null||isNaN(r=+r)?t:r}return n.invert=n,n.domain=n.range=function(r){return arguments.length?(e=Array.from(r,Xy),n):e.slice()},n.unknown=function(r){return arguments.length?(t=r,n):t},n.copy=function(){return aR(e).unknown(t)},e=arguments.length?Array.from(e,Xy):[0,1],Tu(n)}function sR(e,t){e=e.slice();var n=0,r=e.length-1,i=e[n],o=e[r],a;return oMath.pow(e,t)}function Jte(e){return e===Math.E?Math.log:e===10&&Math.log10||e===2&&Math.log2||(e=Math.log(e),t=>Math.log(t)/e)}function Ok(e){return(t,n)=>-e(-t,n)}function LE(e){const t=e(Ck,Ek),n=t.domain;let r=10,i,o;function a(){return i=Jte(r),o=Qte(r),n()[0]<0?(i=Ok(i),o=Ok(o),e(Yte,Zte)):e(Ck,Ek),t}return t.base=function(l){return arguments.length?(r=+l,a()):r},t.domain=function(l){return arguments.length?(n(l),a()):n()},t.ticks=l=>{const c=n();let d=c[0],h=c[c.length-1];const m=h0){for(;v<=y;++v)for(w=1;wh)break;P.push(C)}}else for(;v<=y;++v)for(w=r-1;w>=1;--w)if(C=v>0?w/o(-v):w*o(v),!(Ch)break;P.push(C)}P.length*2<_&&(P=A_(d,h,_))}else P=A_(v,y,Math.min(y-v,_)).map(o);return m?P.reverse():P},t.tickFormat=(l,c)=>{if(l==null&&(l=10),c==null&&(c=r===10?"s":","),typeof c!="function"&&(!(r%1)&&(c=gg(c)).precision==null&&(c.trim=!0),c=RE(c)),l===1/0)return c;const d=Math.max(1,r*l/t.ticks().length);return h=>{let m=h/o(Math.round(i(h)));return m*rn(sR(n(),{floor:l=>o(Math.floor(i(l))),ceil:l=>o(Math.ceil(i(l)))})),t}function lR(){const e=LE(J1()).domain([1,10]);return e.copy=()=>Zg(e,lR()).base(e.base()),la.apply(e,arguments),e}function Pk(e){return function(t){return Math.sign(t)*Math.log1p(Math.abs(t/e))}}function Ak(e){return function(t){return Math.sign(t)*Math.expm1(Math.abs(t))*e}}function DE(e){var t=1,n=e(Pk(t),Ak(t));return n.constant=function(r){return arguments.length?e(Pk(t=+r),Ak(t)):t},Tu(n)}function uR(){var e=DE(J1());return e.copy=function(){return Zg(e,uR()).constant(e.constant())},la.apply(e,arguments)}function Tk(e){return function(t){return t<0?-Math.pow(-t,e):Math.pow(t,e)}}function ene(e){return e<0?-Math.sqrt(-e):Math.sqrt(e)}function tne(e){return e<0?-e*e:e*e}function $E(e){var t=e(Ti,Ti),n=1;function r(){return n===1?e(Ti,Ti):n===.5?e(ene,tne):e(Tk(n),Tk(1/n))}return t.exponent=function(i){return arguments.length?(n=+i,r()):n},Tu(t)}function FE(){var e=$E(J1());return e.copy=function(){return Zg(e,FE()).exponent(e.exponent())},la.apply(e,arguments),e}function nne(){return FE.apply(null,arguments).exponent(.5)}function kk(e){return Math.sign(e)*e*e}function rne(e){return Math.sign(e)*Math.sqrt(Math.abs(e))}function cR(){var e=IE(),t=[0,1],n=!1,r;function i(o){var a=rne(e(o));return isNaN(a)?r:n?Math.round(a):a}return i.invert=function(o){return e.invert(kk(o))},i.domain=function(o){return arguments.length?(e.domain(o),i):e.domain()},i.range=function(o){return arguments.length?(e.range((t=Array.from(o,Xy)).map(kk)),i):t.slice()},i.rangeRound=function(o){return i.range(o).round(!0)},i.round=function(o){return arguments.length?(n=!!o,i):n},i.clamp=function(o){return arguments.length?(e.clamp(o),i):e.clamp()},i.unknown=function(o){return arguments.length?(r=o,i):r},i.copy=function(){return cR(e.domain(),t).round(n).clamp(e.clamp()).unknown(r)},la.apply(i,arguments),Tu(i)}function fR(){var e=[],t=[],n=[],r;function i(){var a=0,l=Math.max(1,t.length);for(n=new Array(l-1);++a0?n[l-1]:e[0],l=n?[r[n-1],t]:[r[d-1],r[d]]},a.unknown=function(c){return arguments.length&&(o=c),a},a.thresholds=function(){return r.slice()},a.copy=function(){return dR().domain([e,t]).range(i).unknown(o)},la.apply(Tu(a),arguments)}function hR(){var e=[.5],t=[0,1],n,r=1;function i(o){return o!=null&&o<=o?t[Gg(e,o,0,r)]:n}return i.domain=function(o){return arguments.length?(e=Array.from(o),r=Math.min(e.length,t.length-1),i):e.slice()},i.range=function(o){return arguments.length?(t=Array.from(o),r=Math.min(e.length,t.length-1),i):t.slice()},i.invertExtent=function(o){var a=t.indexOf(o);return[e[a-1],e[a]]},i.unknown=function(o){return arguments.length?(n=o,i):n},i.copy=function(){return hR().domain(e).range(t).unknown(n)},la.apply(i,arguments)}const V2=new Date,z2=new Date;function Cr(e,t,n,r){function i(o){return e(o=arguments.length===0?new Date:new Date(+o)),o}return i.floor=o=>(e(o=new Date(+o)),o),i.ceil=o=>(e(o=new Date(o-1)),t(o,1),e(o),o),i.round=o=>{const a=i(o),l=i.ceil(o);return o-a(t(o=new Date(+o),a==null?1:Math.floor(a)),o),i.range=(o,a,l)=>{const c=[];if(o=i.ceil(o),l=l==null?1:Math.floor(l),!(o0))return c;let d;do c.push(d=new Date(+o)),t(o,l),e(o);while(dCr(a=>{if(a>=a)for(;e(a),!o(a);)a.setTime(a-1)},(a,l)=>{if(a>=a)if(l<0)for(;++l<=0;)for(;t(a,-1),!o(a););else for(;--l>=0;)for(;t(a,1),!o(a););}),n&&(i.count=(o,a)=>(V2.setTime(+o),z2.setTime(+a),e(V2),e(z2),Math.floor(n(V2,z2))),i.every=o=>(o=Math.floor(o),!isFinite(o)||!(o>0)?null:o>1?i.filter(r?a=>r(a)%o===0:a=>i.count(0,a)%o===0):i)),i}const Jy=Cr(()=>{},(e,t)=>{e.setTime(+e+t)},(e,t)=>t-e);Jy.every=e=>(e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?Cr(t=>{t.setTime(Math.floor(t/e)*e)},(t,n)=>{t.setTime(+t+n*e)},(t,n)=>(n-t)/e):Jy);Jy.range;const sl=1e3,ra=sl*60,ll=ra*60,vl=ll*24,BE=vl*7,jk=vl*30,U2=vl*365,zc=Cr(e=>{e.setTime(e-e.getMilliseconds())},(e,t)=>{e.setTime(+e+t*sl)},(e,t)=>(t-e)/sl,e=>e.getUTCSeconds());zc.range;const VE=Cr(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*sl)},(e,t)=>{e.setTime(+e+t*ra)},(e,t)=>(t-e)/ra,e=>e.getMinutes());VE.range;const zE=Cr(e=>{e.setUTCSeconds(0,0)},(e,t)=>{e.setTime(+e+t*ra)},(e,t)=>(t-e)/ra,e=>e.getUTCMinutes());zE.range;const UE=Cr(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*sl-e.getMinutes()*ra)},(e,t)=>{e.setTime(+e+t*ll)},(e,t)=>(t-e)/ll,e=>e.getHours());UE.range;const WE=Cr(e=>{e.setUTCMinutes(0,0,0)},(e,t)=>{e.setTime(+e+t*ll)},(e,t)=>(t-e)/ll,e=>e.getUTCHours());WE.range;const Xg=Cr(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*ra)/vl,e=>e.getDate()-1);Xg.range;const ex=Cr(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/vl,e=>e.getUTCDate()-1);ex.range;const pR=Cr(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/vl,e=>Math.floor(e/vl));pR.range;function bf(e){return Cr(t=>{t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)},(t,n)=>{t.setDate(t.getDate()+n*7)},(t,n)=>(n-t-(n.getTimezoneOffset()-t.getTimezoneOffset())*ra)/BE)}const tx=bf(0),e1=bf(1),ine=bf(2),one=bf(3),Oh=bf(4),ane=bf(5),sne=bf(6);tx.range;e1.range;ine.range;one.range;Oh.range;ane.range;sne.range;function wf(e){return Cr(t=>{t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)},(t,n)=>{t.setUTCDate(t.getUTCDate()+n*7)},(t,n)=>(n-t)/BE)}const nx=wf(0),t1=wf(1),lne=wf(2),une=wf(3),Ph=wf(4),cne=wf(5),fne=wf(6);nx.range;t1.range;lne.range;une.range;Ph.range;cne.range;fne.range;const HE=Cr(e=>{e.setDate(1),e.setHours(0,0,0,0)},(e,t)=>{e.setMonth(e.getMonth()+t)},(e,t)=>t.getMonth()-e.getMonth()+(t.getFullYear()-e.getFullYear())*12,e=>e.getMonth());HE.range;const qE=Cr(e=>{e.setUTCDate(1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCMonth(e.getUTCMonth()+t)},(e,t)=>t.getUTCMonth()-e.getUTCMonth()+(t.getUTCFullYear()-e.getUTCFullYear())*12,e=>e.getUTCMonth());qE.range;const yl=Cr(e=>{e.setMonth(0,1),e.setHours(0,0,0,0)},(e,t)=>{e.setFullYear(e.getFullYear()+t)},(e,t)=>t.getFullYear()-e.getFullYear(),e=>e.getFullYear());yl.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:Cr(t=>{t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)},(t,n)=>{t.setFullYear(t.getFullYear()+n*e)});yl.range;const xl=Cr(e=>{e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCFullYear(e.getUTCFullYear()+t)},(e,t)=>t.getUTCFullYear()-e.getUTCFullYear(),e=>e.getUTCFullYear());xl.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:Cr(t=>{t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},(t,n)=>{t.setUTCFullYear(t.getUTCFullYear()+n*e)});xl.range;function mR(e,t,n,r,i,o){const a=[[zc,1,sl],[zc,5,5*sl],[zc,15,15*sl],[zc,30,30*sl],[o,1,ra],[o,5,5*ra],[o,15,15*ra],[o,30,30*ra],[i,1,ll],[i,3,3*ll],[i,6,6*ll],[i,12,12*ll],[r,1,vl],[r,2,2*vl],[n,1,BE],[t,1,jk],[t,3,3*jk],[e,1,U2]];function l(d,h,m){const v=h_).right(a,v);if(y===a.length)return e.every(k_(d/U2,h/U2,m));if(y===0)return Jy.every(Math.max(k_(d,h,m),1));const[w,C]=a[v/a[y-1][2]53)return null;"w"in fe||(fe.w=1),"Z"in fe?(Le=H2(Pm(fe.y,0,1)),it=Le.getUTCDay(),Le=it>4||it===0?t1.ceil(Le):t1(Le),Le=ex.offset(Le,(fe.V-1)*7),fe.y=Le.getUTCFullYear(),fe.m=Le.getUTCMonth(),fe.d=Le.getUTCDate()+(fe.w+6)%7):(Le=W2(Pm(fe.y,0,1)),it=Le.getDay(),Le=it>4||it===0?e1.ceil(Le):e1(Le),Le=Xg.offset(Le,(fe.V-1)*7),fe.y=Le.getFullYear(),fe.m=Le.getMonth(),fe.d=Le.getDate()+(fe.w+6)%7)}else("W"in fe||"U"in fe)&&("w"in fe||(fe.w="u"in fe?fe.u%7:"W"in fe?1:0),it="Z"in fe?H2(Pm(fe.y,0,1)).getUTCDay():W2(Pm(fe.y,0,1)).getDay(),fe.m=0,fe.d="W"in fe?(fe.w+6)%7+fe.W*7-(it+5)%7:fe.w+fe.U*7-(it+6)%7);return"Z"in fe?(fe.H+=fe.Z/100|0,fe.M+=fe.Z%100,H2(fe)):W2(fe)}}function F(oe,be,Ce,fe){for(var De=0,Le=be.length,it=Ce.length,Ve,At;De=it)return-1;if(Ve=be.charCodeAt(De++),Ve===37){if(Ve=be.charAt(De++),At=M[Ve in Mk?be.charAt(De++):Ve],!At||(fe=At(oe,Ce,fe))<0)return-1}else if(Ve!=Ce.charCodeAt(fe++))return-1}return fe}function B(oe,be,Ce){var fe=d.exec(be.slice(Ce));return fe?(oe.p=h.get(fe[0].toLowerCase()),Ce+fe[0].length):-1}function U(oe,be,Ce){var fe=y.exec(be.slice(Ce));return fe?(oe.w=w.get(fe[0].toLowerCase()),Ce+fe[0].length):-1}function W(oe,be,Ce){var fe=m.exec(be.slice(Ce));return fe?(oe.w=v.get(fe[0].toLowerCase()),Ce+fe[0].length):-1}function G(oe,be,Ce){var fe=P.exec(be.slice(Ce));return fe?(oe.m=T.get(fe[0].toLowerCase()),Ce+fe[0].length):-1}function ie(oe,be,Ce){var fe=C.exec(be.slice(Ce));return fe?(oe.m=_.get(fe[0].toLowerCase()),Ce+fe[0].length):-1}function te(oe,be,Ce){return F(oe,t,be,Ce)}function se(oe,be,Ce){return F(oe,n,be,Ce)}function le(oe,be,Ce){return F(oe,r,be,Ce)}function q(oe){return a[oe.getDay()]}function H(oe){return o[oe.getDay()]}function Z(oe){return c[oe.getMonth()]}function X(oe){return l[oe.getMonth()]}function z(oe){return i[+(oe.getHours()>=12)]}function J(oe){return 1+~~(oe.getMonth()/3)}function Me(oe){return a[oe.getUTCDay()]}function Pe(oe){return o[oe.getUTCDay()]}function we(oe){return c[oe.getUTCMonth()]}function je(oe){return l[oe.getUTCMonth()]}function re(oe){return i[+(oe.getUTCHours()>=12)]}function he(oe){return 1+~~(oe.getUTCMonth()/3)}return{format:function(oe){var be=N(oe+="",A);return be.toString=function(){return oe},be},parse:function(oe){var be=L(oe+="",!1);return be.toString=function(){return oe},be},utcFormat:function(oe){var be=N(oe+="",I);return be.toString=function(){return oe},be},utcParse:function(oe){var be=L(oe+="",!0);return be.toString=function(){return oe},be}}}var Mk={"-":"",_:" ",0:"0"},zr=/^\s*\d+/,vne=/^%/,yne=/[\\^$*+?|[\]().{}]/g;function nn(e,t,n){var r=e<0?"-":"",i=(r?-e:e)+"",o=i.length;return r+(o[t.toLowerCase(),n]))}function bne(e,t,n){var r=zr.exec(t.slice(n,n+1));return r?(e.w=+r[0],n+r[0].length):-1}function wne(e,t,n){var r=zr.exec(t.slice(n,n+1));return r?(e.u=+r[0],n+r[0].length):-1}function Sne(e,t,n){var r=zr.exec(t.slice(n,n+2));return r?(e.U=+r[0],n+r[0].length):-1}function _ne(e,t,n){var r=zr.exec(t.slice(n,n+2));return r?(e.V=+r[0],n+r[0].length):-1}function Cne(e,t,n){var r=zr.exec(t.slice(n,n+2));return r?(e.W=+r[0],n+r[0].length):-1}function Ik(e,t,n){var r=zr.exec(t.slice(n,n+4));return r?(e.y=+r[0],n+r[0].length):-1}function Nk(e,t,n){var r=zr.exec(t.slice(n,n+2));return r?(e.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function Ene(e,t,n){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(n,n+6));return r?(e.Z=r[1]?0:-(r[2]+(r[3]||"00")),n+r[0].length):-1}function One(e,t,n){var r=zr.exec(t.slice(n,n+1));return r?(e.q=r[0]*3-3,n+r[0].length):-1}function Pne(e,t,n){var r=zr.exec(t.slice(n,n+2));return r?(e.m=r[0]-1,n+r[0].length):-1}function Rk(e,t,n){var r=zr.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function Ane(e,t,n){var r=zr.exec(t.slice(n,n+3));return r?(e.m=0,e.d=+r[0],n+r[0].length):-1}function Lk(e,t,n){var r=zr.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function Tne(e,t,n){var r=zr.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function kne(e,t,n){var r=zr.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function jne(e,t,n){var r=zr.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function Mne(e,t,n){var r=zr.exec(t.slice(n,n+6));return r?(e.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function Ine(e,t,n){var r=vne.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function Nne(e,t,n){var r=zr.exec(t.slice(n));return r?(e.Q=+r[0],n+r[0].length):-1}function Rne(e,t,n){var r=zr.exec(t.slice(n));return r?(e.s=+r[0],n+r[0].length):-1}function Dk(e,t){return nn(e.getDate(),t,2)}function Lne(e,t){return nn(e.getHours(),t,2)}function Dne(e,t){return nn(e.getHours()%12||12,t,2)}function $ne(e,t){return nn(1+Xg.count(yl(e),e),t,3)}function gR(e,t){return nn(e.getMilliseconds(),t,3)}function Fne(e,t){return gR(e,t)+"000"}function Bne(e,t){return nn(e.getMonth()+1,t,2)}function Vne(e,t){return nn(e.getMinutes(),t,2)}function zne(e,t){return nn(e.getSeconds(),t,2)}function Une(e){var t=e.getDay();return t===0?7:t}function Wne(e,t){return nn(tx.count(yl(e)-1,e),t,2)}function vR(e){var t=e.getDay();return t>=4||t===0?Oh(e):Oh.ceil(e)}function Hne(e,t){return e=vR(e),nn(Oh.count(yl(e),e)+(yl(e).getDay()===4),t,2)}function qne(e){return e.getDay()}function Kne(e,t){return nn(e1.count(yl(e)-1,e),t,2)}function Gne(e,t){return nn(e.getFullYear()%100,t,2)}function Yne(e,t){return e=vR(e),nn(e.getFullYear()%100,t,2)}function Zne(e,t){return nn(e.getFullYear()%1e4,t,4)}function Xne(e,t){var n=e.getDay();return e=n>=4||n===0?Oh(e):Oh.ceil(e),nn(e.getFullYear()%1e4,t,4)}function Qne(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+nn(t/60|0,"0",2)+nn(t%60,"0",2)}function $k(e,t){return nn(e.getUTCDate(),t,2)}function Jne(e,t){return nn(e.getUTCHours(),t,2)}function ere(e,t){return nn(e.getUTCHours()%12||12,t,2)}function tre(e,t){return nn(1+ex.count(xl(e),e),t,3)}function yR(e,t){return nn(e.getUTCMilliseconds(),t,3)}function nre(e,t){return yR(e,t)+"000"}function rre(e,t){return nn(e.getUTCMonth()+1,t,2)}function ire(e,t){return nn(e.getUTCMinutes(),t,2)}function ore(e,t){return nn(e.getUTCSeconds(),t,2)}function are(e){var t=e.getUTCDay();return t===0?7:t}function sre(e,t){return nn(nx.count(xl(e)-1,e),t,2)}function xR(e){var t=e.getUTCDay();return t>=4||t===0?Ph(e):Ph.ceil(e)}function lre(e,t){return e=xR(e),nn(Ph.count(xl(e),e)+(xl(e).getUTCDay()===4),t,2)}function ure(e){return e.getUTCDay()}function cre(e,t){return nn(t1.count(xl(e)-1,e),t,2)}function fre(e,t){return nn(e.getUTCFullYear()%100,t,2)}function dre(e,t){return e=xR(e),nn(e.getUTCFullYear()%100,t,2)}function hre(e,t){return nn(e.getUTCFullYear()%1e4,t,4)}function pre(e,t){var n=e.getUTCDay();return e=n>=4||n===0?Ph(e):Ph.ceil(e),nn(e.getUTCFullYear()%1e4,t,4)}function mre(){return"+0000"}function Fk(){return"%"}function Bk(e){return+e}function Vk(e){return Math.floor(+e/1e3)}var Jd,bR,wR;gre({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});function gre(e){return Jd=gne(e),bR=Jd.format,Jd.parse,wR=Jd.utcFormat,Jd.utcParse,Jd}function vre(e){return new Date(e)}function yre(e){return e instanceof Date?+e:+new Date(+e)}function KE(e,t,n,r,i,o,a,l,c,d){var h=IE(),m=h.invert,v=h.domain,y=d(".%L"),w=d(":%S"),C=d("%I:%M"),_=d("%I %p"),P=d("%a %d"),T=d("%b %d"),A=d("%B"),I=d("%Y");function M(N){return(c(N)t(i/(e.length-1)))},n.quantiles=function(r){return Array.from({length:r+1},(i,o)=>ate(e,o/r))},n.copy=function(){return ER(t).domain(e)},Cl.apply(n,arguments)}function ix(){var e=0,t=.5,n=1,r=1,i,o,a,l,c,d=Ti,h,m=!1,v;function y(C){return isNaN(C=+C)?v:(C=.5+((C=+h(C))-o)*(r*Ce.chartData,_re=ye([ju],e=>{var t=e.chartData!=null?e.chartData.length-1:0;return{chartData:e.chartData,computedData:e.computedData,dataEndIndex:t,dataStartIndex:0}}),ZE=(e,t,n,r)=>r?_re(e):ju(e);function Ah(e){if(Array.isArray(e)&&e.length===2){var[t,n]=e;if(Ao(t)&&Ao(n))return!0}return!1}function zk(e,t,n){return n?e:[Math.min(e[0],t[0]),Math.max(e[1],t[1])]}function Cre(e,t){if(t&&typeof e!="function"&&Array.isArray(e)&&e.length===2){var[n,r]=e,i,o;if(Ao(n))i=n;else if(typeof n=="function")return;if(Ao(r))o=r;else if(typeof r=="function")return;var a=[i,o];if(Ah(a))return a}}function Ere(e,t,n){if(!(!n&&t==null)){if(typeof e=="function"&&t!=null)try{var r=e(t,n);if(Ah(r))return zk(r,t,n)}catch{}if(Array.isArray(e)&&e.length===2){var[i,o]=e,a,l;if(i==="auto")t!=null&&(a=Math.min(...t));else if(ut(i))a=i;else if(typeof i=="function")try{t!=null&&(a=i(t==null?void 0:t[0]))}catch{}else if(typeof i=="string"&&jT.test(i)){var c=jT.exec(i);if(c==null||t==null)a=void 0;else{var d=+c[1];a=t[0]-d}}else a=t==null?void 0:t[0];if(o==="auto")t!=null&&(l=Math.max(...t));else if(ut(o))l=o;else if(typeof o=="function")try{t!=null&&(l=o(t==null?void 0:t[1]))}catch{}else if(typeof o=="string"&&MT.test(o)){var h=MT.exec(o);if(h==null||t==null)l=void 0;else{var m=+h[1];l=t[1]+m}}else l=t==null?void 0:t[1];var v=[a,l];if(Ah(v))return t==null?v:zk(v,t,n)}}}var Wh=1e9,Ore={precision:20,rounding:4,toExpNeg:-7,toExpPos:21,LN10:"2.302585092994045684017991454684364207601101488628772976033327900967572609677352480235997205089598298341967784042286"},QE,Dn=!0,sa="[DecimalError] ",ef=sa+"Invalid argument: ",XE=sa+"Exponent out of range: ",Hh=Math.floor,Lc=Math.pow,Pre=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,wo,Lr=1e7,Nn=7,TR=9007199254740991,n1=Hh(TR/Nn),Ze={};Ze.absoluteValue=Ze.abs=function(){var e=new this.constructor(this);return e.s&&(e.s=1),e};Ze.comparedTo=Ze.cmp=function(e){var t,n,r,i,o=this;if(e=new o.constructor(e),o.s!==e.s)return o.s||-e.s;if(o.e!==e.e)return o.e>e.e^o.s<0?1:-1;for(r=o.d.length,i=e.d.length,t=0,n=re.d[t]^o.s<0?1:-1;return r===i?0:r>i^o.s<0?1:-1};Ze.decimalPlaces=Ze.dp=function(){var e=this,t=e.d.length-1,n=(t-e.e)*Nn;if(t=e.d[t],t)for(;t%10==0;t/=10)n--;return n<0?0:n};Ze.dividedBy=Ze.div=function(e){return fl(this,new this.constructor(e))};Ze.dividedToIntegerBy=Ze.idiv=function(e){var t=this,n=t.constructor;return En(fl(t,new n(e),0,1),n.precision)};Ze.equals=Ze.eq=function(e){return!this.cmp(e)};Ze.exponent=function(){return dr(this)};Ze.greaterThan=Ze.gt=function(e){return this.cmp(e)>0};Ze.greaterThanOrEqualTo=Ze.gte=function(e){return this.cmp(e)>=0};Ze.isInteger=Ze.isint=function(){return this.e>this.d.length-2};Ze.isNegative=Ze.isneg=function(){return this.s<0};Ze.isPositive=Ze.ispos=function(){return this.s>0};Ze.isZero=function(){return this.s===0};Ze.lessThan=Ze.lt=function(e){return this.cmp(e)<0};Ze.lessThanOrEqualTo=Ze.lte=function(e){return this.cmp(e)<1};Ze.logarithm=Ze.log=function(e){var t,n=this,r=n.constructor,i=r.precision,o=i+5;if(e===void 0)e=new r(10);else if(e=new r(e),e.s<1||e.eq(wo))throw Error(sa+"NaN");if(n.s<1)throw Error(sa+(n.s?"NaN":"-Infinity"));return n.eq(wo)?new r(0):(Dn=!1,t=fl(vg(n,o),vg(e,o),o),Dn=!0,En(t,i))};Ze.minus=Ze.sub=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?MR(t,e):kR(t,(e.s=-e.s,e))};Ze.modulo=Ze.mod=function(e){var t,n=this,r=n.constructor,i=r.precision;if(e=new r(e),!e.s)throw Error(sa+"NaN");return n.s?(Dn=!1,t=fl(n,e,0,1).times(e),Dn=!0,n.minus(t)):En(new r(n),i)};Ze.naturalExponential=Ze.exp=function(){return jR(this)};Ze.naturalLogarithm=Ze.ln=function(){return vg(this)};Ze.negated=Ze.neg=function(){var e=new this.constructor(this);return e.s=-e.s||0,e};Ze.plus=Ze.add=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?kR(t,e):MR(t,(e.s=-e.s,e))};Ze.precision=Ze.sd=function(e){var t,n,r,i=this;if(e!==void 0&&e!==!!e&&e!==1&&e!==0)throw Error(ef+e);if(t=dr(i)+1,r=i.d.length-1,n=r*Nn+1,r=i.d[r],r){for(;r%10==0;r/=10)n--;for(r=i.d[0];r>=10;r/=10)n++}return e&&t>n?t:n};Ze.squareRoot=Ze.sqrt=function(){var e,t,n,r,i,o,a,l=this,c=l.constructor;if(l.s<1){if(!l.s)return new c(0);throw Error(sa+"NaN")}for(e=dr(l),Dn=!1,i=Math.sqrt(+l),i==0||i==1/0?(t=ds(l.d),(t.length+e)%2==0&&(t+="0"),i=Math.sqrt(t),e=Hh((e+1)/2)-(e<0||e%2),i==1/0?t="5e"+e:(t=i.toExponential(),t=t.slice(0,t.indexOf("e")+1)+e),r=new c(t)):r=new c(i.toString()),n=c.precision,i=a=n+3;;)if(o=r,r=o.plus(fl(l,o,a+2)).times(.5),ds(o.d).slice(0,a)===(t=ds(r.d)).slice(0,a)){if(t=t.slice(a-3,a+1),i==a&&t=="4999"){if(En(o,n+1,0),o.times(o).eq(l)){r=o;break}}else if(t!="9999")break;a+=4}return Dn=!0,En(r,n)};Ze.times=Ze.mul=function(e){var t,n,r,i,o,a,l,c,d,h=this,m=h.constructor,v=h.d,y=(e=new m(e)).d;if(!h.s||!e.s)return new m(0);for(e.s*=h.s,n=h.e+e.e,c=v.length,d=y.length,c=0;){for(t=0,i=c+r;i>r;)l=o[i]+y[r]*v[i-r-1]+t,o[i--]=l%Lr|0,t=l/Lr|0;o[i]=(o[i]+t)%Lr|0}for(;!o[--a];)o.pop();return t?++n:o.shift(),e.d=o,e.e=n,Dn?En(e,m.precision):e};Ze.toDecimalPlaces=Ze.todp=function(e,t){var n=this,r=n.constructor;return n=new r(n),e===void 0?n:(_s(e,0,Wh),t===void 0?t=r.rounding:_s(t,0,8),En(n,e+dr(n)+1,t))};Ze.toExponential=function(e,t){var n,r=this,i=r.constructor;return e===void 0?n=df(r,!0):(_s(e,0,Wh),t===void 0?t=i.rounding:_s(t,0,8),r=En(new i(r),e+1,t),n=df(r,!0,e+1)),n};Ze.toFixed=function(e,t){var n,r,i=this,o=i.constructor;return e===void 0?df(i):(_s(e,0,Wh),t===void 0?t=o.rounding:_s(t,0,8),r=En(new o(i),e+dr(i)+1,t),n=df(r.abs(),!1,e+dr(r)+1),i.isneg()&&!i.isZero()?"-"+n:n)};Ze.toInteger=Ze.toint=function(){var e=this,t=e.constructor;return En(new t(e),dr(e)+1,t.rounding)};Ze.toNumber=function(){return+this};Ze.toPower=Ze.pow=function(e){var t,n,r,i,o,a,l=this,c=l.constructor,d=12,h=+(e=new c(e));if(!e.s)return new c(wo);if(l=new c(l),!l.s){if(e.s<1)throw Error(sa+"Infinity");return l}if(l.eq(wo))return l;if(r=c.precision,e.eq(wo))return En(l,r);if(t=e.e,n=e.d.length-1,a=t>=n,o=l.s,a){if((n=h<0?-h:h)<=TR){for(i=new c(wo),t=Math.ceil(r/Nn+4),Dn=!1;n%2&&(i=i.times(l),Wk(i.d,t)),n=Hh(n/2),n!==0;)l=l.times(l),Wk(l.d,t);return Dn=!0,e.s<0?new c(wo).div(i):En(i,r)}}else if(o<0)throw Error(sa+"NaN");return o=o<0&&e.d[Math.max(t,n)]&1?-1:1,l.s=1,Dn=!1,i=e.times(vg(l,r+d)),Dn=!0,i=jR(i),i.s=o,i};Ze.toPrecision=function(e,t){var n,r,i=this,o=i.constructor;return e===void 0?(n=dr(i),r=df(i,n<=o.toExpNeg||n>=o.toExpPos)):(_s(e,1,Wh),t===void 0?t=o.rounding:_s(t,0,8),i=En(new o(i),e,t),n=dr(i),r=df(i,e<=n||n<=o.toExpNeg,e)),r};Ze.toSignificantDigits=Ze.tosd=function(e,t){var n=this,r=n.constructor;return e===void 0?(e=r.precision,t=r.rounding):(_s(e,1,Wh),t===void 0?t=r.rounding:_s(t,0,8)),En(new r(n),e,t)};Ze.toString=Ze.valueOf=Ze.val=Ze.toJSON=Ze[Symbol.for("nodejs.util.inspect.custom")]=function(){var e=this,t=dr(e),n=e.constructor;return df(e,t<=n.toExpNeg||t>=n.toExpPos)};function kR(e,t){var n,r,i,o,a,l,c,d,h=e.constructor,m=h.precision;if(!e.s||!t.s)return t.s||(t=new h(e)),Dn?En(t,m):t;if(c=e.d,d=t.d,a=e.e,i=t.e,c=c.slice(),o=a-i,o){for(o<0?(r=c,o=-o,l=d.length):(r=d,i=a,l=c.length),a=Math.ceil(m/Nn),l=a>l?a+1:l+1,o>l&&(o=l,r.length=1),r.reverse();o--;)r.push(0);r.reverse()}for(l=c.length,o=d.length,l-o<0&&(o=l,r=d,d=c,c=r),n=0;o;)n=(c[--o]=c[o]+d[o]+n)/Lr|0,c[o]%=Lr;for(n&&(c.unshift(n),++i),l=c.length;c[--l]==0;)c.pop();return t.d=c,t.e=i,Dn?En(t,m):t}function _s(e,t,n){if(e!==~~e||en)throw Error(ef+e)}function ds(e){var t,n,r,i=e.length-1,o="",a=e[0];if(i>0){for(o+=a,t=1;ta?1:-1;else for(l=c=0;li[l]?1:-1;break}return c}function n(r,i,o){for(var a=0;o--;)r[o]-=a,a=r[o]1;)r.shift()}return function(r,i,o,a){var l,c,d,h,m,v,y,w,C,_,P,T,A,I,M,N,L,F,B=r.constructor,U=r.s==i.s?1:-1,W=r.d,G=i.d;if(!r.s)return new B(r);if(!i.s)throw Error(sa+"Division by zero");for(c=r.e-i.e,L=G.length,M=W.length,y=new B(U),w=y.d=[],d=0;G[d]==(W[d]||0);)++d;if(G[d]>(W[d]||0)&&--c,o==null?T=o=B.precision:a?T=o+(dr(r)-dr(i))+1:T=o,T<0)return new B(0);if(T=T/Nn+2|0,d=0,L==1)for(h=0,G=G[0],T++;(d1&&(G=e(G,h),W=e(W,h),L=G.length,M=W.length),I=L,C=W.slice(0,L),_=C.length;_=Lr/2&&++N;do h=0,l=t(G,C,L,_),l<0?(P=C[0],L!=_&&(P=P*Lr+(C[1]||0)),h=P/N|0,h>1?(h>=Lr&&(h=Lr-1),m=e(G,h),v=m.length,_=C.length,l=t(m,C,v,_),l==1&&(h--,n(m,L16)throw Error(XE+dr(e));if(!e.s)return new h(wo);for(Dn=!1,l=m,a=new h(.03125);e.abs().gte(.1);)e=e.times(a),d+=5;for(r=Math.log(Lc(2,d))/Math.LN10*2+5|0,l+=r,n=i=o=new h(wo),h.precision=l;;){if(i=En(i.times(e),l),n=n.times(++c),a=o.plus(fl(i,n,l)),ds(a.d).slice(0,l)===ds(o.d).slice(0,l)){for(;d--;)o=En(o.times(o),l);return h.precision=m,t==null?(Dn=!0,En(o,m)):o}o=a}}function dr(e){for(var t=e.e*Nn,n=e.d[0];n>=10;n/=10)t++;return t}function q2(e,t,n){if(t>e.LN10.sd())throw Dn=!0,n&&(e.precision=n),Error(sa+"LN10 precision limit exceeded");return En(new e(e.LN10),t)}function gu(e){for(var t="";e--;)t+="0";return t}function vg(e,t){var n,r,i,o,a,l,c,d,h,m=1,v=10,y=e,w=y.d,C=y.constructor,_=C.precision;if(y.s<1)throw Error(sa+(y.s?"NaN":"-Infinity"));if(y.eq(wo))return new C(0);if(t==null?(Dn=!1,d=_):d=t,y.eq(10))return t==null&&(Dn=!0),q2(C,d);if(d+=v,C.precision=d,n=ds(w),r=n.charAt(0),o=dr(y),Math.abs(o)<15e14){for(;r<7&&r!=1||r==1&&n.charAt(1)>3;)y=y.times(e),n=ds(y.d),r=n.charAt(0),m++;o=dr(y),r>1?(y=new C("0."+n),o++):y=new C(r+"."+n.slice(1))}else return c=q2(C,d+2,_).times(o+""),y=vg(new C(r+"."+n.slice(1)),d-v).plus(c),C.precision=_,t==null?(Dn=!0,En(y,_)):y;for(l=a=y=fl(y.minus(wo),y.plus(wo),d),h=En(y.times(y),d),i=3;;){if(a=En(a.times(h),d),c=l.plus(fl(a,new C(i),d)),ds(c.d).slice(0,d)===ds(l.d).slice(0,d))return l=l.times(2),o!==0&&(l=l.plus(q2(C,d+2,_).times(o+""))),l=fl(l,new C(m),d),C.precision=_,t==null?(Dn=!0,En(l,_)):l;l=c,i+=2}}function Uk(e,t){var n,r,i;for((n=t.indexOf("."))>-1&&(t=t.replace(".","")),(r=t.search(/e/i))>0?(n<0&&(n=r),n+=+t.slice(r+1),t=t.substring(0,r)):n<0&&(n=t.length),r=0;t.charCodeAt(r)===48;)++r;for(i=t.length;t.charCodeAt(i-1)===48;)--i;if(t=t.slice(r,i),t){if(i-=r,n=n-r-1,e.e=Hh(n/Nn),e.d=[],r=(n+1)%Nn,n<0&&(r+=Nn),rn1||e.e<-n1))throw Error(XE+n)}else e.s=0,e.e=0,e.d=[0];return e}function En(e,t,n){var r,i,o,a,l,c,d,h,m=e.d;for(a=1,o=m[0];o>=10;o/=10)a++;if(r=t-a,r<0)r+=Nn,i=t,d=m[h=0];else{if(h=Math.ceil((r+1)/Nn),o=m.length,h>=o)return e;for(d=o=m[h],a=1;o>=10;o/=10)a++;r%=Nn,i=r-Nn+a}if(n!==void 0&&(o=Lc(10,a-i-1),l=d/o%10|0,c=t<0||m[h+1]!==void 0||d%o,c=n<4?(l||c)&&(n==0||n==(e.s<0?3:2)):l>5||l==5&&(n==4||c||n==6&&(r>0?i>0?d/Lc(10,a-i):0:m[h-1])%10&1||n==(e.s<0?8:7))),t<1||!m[0])return c?(o=dr(e),m.length=1,t=t-o-1,m[0]=Lc(10,(Nn-t%Nn)%Nn),e.e=Hh(-t/Nn)||0):(m.length=1,m[0]=e.e=e.s=0),e;if(r==0?(m.length=h,o=1,h--):(m.length=h+1,o=Lc(10,Nn-r),m[h]=i>0?(d/Lc(10,a-i)%Lc(10,i)|0)*o:0),c)for(;;)if(h==0){(m[0]+=o)==Lr&&(m[0]=1,++e.e);break}else{if(m[h]+=o,m[h]!=Lr)break;m[h--]=0,o=1}for(r=m.length;m[--r]===0;)m.pop();if(Dn&&(e.e>n1||e.e<-n1))throw Error(XE+dr(e));return e}function MR(e,t){var n,r,i,o,a,l,c,d,h,m,v=e.constructor,y=v.precision;if(!e.s||!t.s)return t.s?t.s=-t.s:t=new v(e),Dn?En(t,y):t;if(c=e.d,m=t.d,r=t.e,d=e.e,c=c.slice(),a=d-r,a){for(h=a<0,h?(n=c,a=-a,l=m.length):(n=m,r=d,l=c.length),i=Math.max(Math.ceil(y/Nn),l)+2,a>i&&(a=i,n.length=1),n.reverse(),i=a;i--;)n.push(0);n.reverse()}else{for(i=c.length,l=m.length,h=i0;--i)c[l++]=0;for(i=m.length;i>a;){if(c[--i]0?o=o.charAt(0)+"."+o.slice(1)+gu(r):a>1&&(o=o.charAt(0)+"."+o.slice(1)),o=o+(i<0?"e":"e+")+i):i<0?(o="0."+gu(-i-1)+o,n&&(r=n-a)>0&&(o+=gu(r))):i>=a?(o+=gu(i+1-a),n&&(r=n-i-1)>0&&(o=o+"."+gu(r))):((r=i+1)0&&(i+1===a&&(o+="."),o+=gu(r))),e.s<0?"-"+o:o}function Wk(e,t){if(e.length>t)return e.length=t,!0}function IR(e){var t,n,r;function i(o){var a=this;if(!(a instanceof i))return new i(o);if(a.constructor=i,o instanceof i){a.s=o.s,a.e=o.e,a.d=(o=o.d)?o.slice():o;return}if(typeof o=="number"){if(o*0!==0)throw Error(ef+o);if(o>0)a.s=1;else if(o<0)o=-o,a.s=-1;else{a.s=0,a.e=0,a.d=[0];return}if(o===~~o&&o<1e7){a.e=0,a.d=[o];return}return Uk(a,o.toString())}else if(typeof o!="string")throw Error(ef+o);if(o.charCodeAt(0)===45?(o=o.slice(1),a.s=-1):a.s=1,Pre.test(o))Uk(a,o);else throw Error(ef+o)}if(i.prototype=Ze,i.ROUND_UP=0,i.ROUND_DOWN=1,i.ROUND_CEIL=2,i.ROUND_FLOOR=3,i.ROUND_HALF_UP=4,i.ROUND_HALF_DOWN=5,i.ROUND_HALF_EVEN=6,i.ROUND_HALF_CEIL=7,i.ROUND_HALF_FLOOR=8,i.clone=IR,i.config=i.set=Are,e===void 0&&(e={}),e)for(r=["precision","rounding","toExpNeg","toExpPos","LN10"],t=0;t=i[t+1]&&r<=i[t+2])this[n]=r;else throw Error(ef+n+": "+r);if((r=e[n="LN10"])!==void 0)if(r==Math.LN10)this[n]=new this(r);else throw Error(ef+n+": "+r);return this}var QE=IR(Ore);wo=new QE(1);const mn=QE;var Tre=e=>e,NR={},RR=e=>e===NR,Hk=e=>function t(){return arguments.length===0||arguments.length===1&&RR(arguments.length<=0?void 0:arguments[0])?t:e(...arguments)},LR=(e,t)=>e===1?t:Hk(function(){for(var n=arguments.length,r=new Array(n),i=0;ia!==NR).length;return o>=e?t(...r):LR(e-o,Hk(function(){for(var a=arguments.length,l=new Array(a),c=0;cRR(h)?l.shift():h);return t(...d,...l)}))}),ox=e=>LR(e.length,e),R_=(e,t)=>{for(var n=[],r=e;rArray.isArray(t)?t.map(e):Object.keys(t).map(n=>t[n]).map(e)),jre=function(){for(var t=arguments.length,n=new Array(t),r=0;rc(l),o(...arguments))}},L_=e=>Array.isArray(e)?e.reverse():e.split("").reverse().join(""),DR=e=>{var t=null,n=null;return function(){for(var r=arguments.length,i=new Array(r),o=0;o{var c;return a===((c=t)===null||c===void 0?void 0:c[l])})||(t=i,n=e(...i)),n}};function $R(e){var t;return e===0?t=1:t=Math.floor(new mn(e).abs().log(10).toNumber())+1,t}function FR(e,t,n){for(var r=new mn(e),i=0,o=[];r.lt(t)&&i<1e5;)o.push(r.toNumber()),r=r.add(n),i++;return o}ox((e,t,n)=>{var r=+e,i=+t;return r+n*(i-r)});ox((e,t,n)=>{var r=t-+e;return r=r||1/0,(n-e)/r});ox((e,t,n)=>{var r=t-+e;return r=r||1/0,Math.max(0,Math.min(1,(n-e)/r))});var BR=e=>{var[t,n]=e,[r,i]=[t,n];return t>n&&([r,i]=[n,t]),[r,i]},VR=(e,t,n)=>{if(e.lte(0))return new mn(0);var r=$R(e.toNumber()),i=new mn(10).pow(r),o=e.div(i),a=r!==1?.05:.1,l=new mn(Math.ceil(o.div(a).toNumber())).add(n).mul(a),c=l.mul(i);return t?new mn(c.toNumber()):new mn(Math.ceil(c.toNumber()))},Mre=(e,t,n)=>{var r=new mn(1),i=new mn(e);if(!i.isint()&&n){var o=Math.abs(e);o<1?(r=new mn(10).pow($R(e)-1),i=new mn(Math.floor(i.div(r).toNumber())).mul(r)):o>1&&(i=new mn(Math.floor(e)))}else e===0?i=new mn(Math.floor((t-1)/2)):n||(i=new mn(Math.floor(e)));var a=Math.floor((t-1)/2),l=jre(kre(c=>i.add(new mn(c-a).mul(r)).toNumber()),R_);return l(0,t)},zR=function(t,n,r,i){var o=arguments.length>4&&arguments[4]!==void 0?arguments[4]:0;if(!Number.isFinite((n-t)/(r-1)))return{step:new mn(0),tickMin:new mn(0),tickMax:new mn(0)};var a=VR(new mn(n).sub(t).div(r-1),i,o),l;t<=0&&n>=0?l=new mn(0):(l=new mn(t).add(n).div(2),l=l.sub(new mn(l).mod(a)));var c=Math.ceil(l.sub(t).div(a).toNumber()),d=Math.ceil(new mn(n).sub(l).div(a).toNumber()),h=c+d+1;return h>r?zR(t,n,r,i,o+1):(h0?d+(r-h):d,c=n>0?c:c+(r-h)),{step:a,tickMin:l.sub(new mn(c).mul(a)),tickMax:l.add(new mn(d).mul(a))})};function Ire(e){var[t,n]=e,r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:6,i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,o=Math.max(r,2),[a,l]=BR([t,n]);if(a===-1/0||l===1/0){var c=l===1/0?[a,...R_(0,r-1).map(()=>1/0)]:[...R_(0,r-1).map(()=>-1/0),l];return t>n?L_(c):c}if(a===l)return Mre(a,r,i);var{step:d,tickMin:h,tickMax:m}=zR(a,l,o,i,0),v=FR(h,m.add(new mn(.1).mul(d)),d);return t>n?L_(v):v}function Nre(e,t){var[n,r]=e,i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,[o,a]=BR([n,r]);if(o===-1/0||a===1/0)return[n,r];if(o===a)return[o];var l=Math.max(t,2),c=VR(new mn(a).sub(o).div(l-1),i,0),d=[...FR(new mn(o),new mn(a),c),a];return i===!1&&(d=d.map(h=>Math.round(h))),n>r?L_(d):d}var Rre=DR(Ire),Lre=DR(Nre),UR=e=>e.rootProps.maxBarSize,Dre=e=>e.rootProps.barGap,WR=e=>e.rootProps.barCategoryGap,$re=e=>e.rootProps.barSize,ax=e=>e.rootProps.stackOffset,JE=e=>e.options.chartName,e5=e=>e.rootProps.syncId,HR=e=>e.rootProps.syncMethod,t5=e=>e.options.eventEmitter,ol={allowDuplicatedCategory:!0,angleAxisId:0,reversed:!1,scale:"auto",tick:!0,type:"category"},yo={allowDataOverflow:!1,allowDuplicatedCategory:!0,radiusAxisId:0,scale:"auto",tick:!0,tickCount:5,type:"number"},sx=(e,t)=>{if(!(!e||!t))return e!=null&&e.reversed?[t[1],t[0]]:t},Fre={allowDataOverflow:!1,allowDecimals:!1,allowDuplicatedCategory:!1,dataKey:void 0,domain:void 0,id:ol.angleAxisId,includeHidden:!1,name:void 0,reversed:ol.reversed,scale:ol.scale,tick:ol.tick,tickCount:void 0,ticks:void 0,type:ol.type,unit:void 0},Bre={allowDataOverflow:yo.allowDataOverflow,allowDecimals:!1,allowDuplicatedCategory:yo.allowDuplicatedCategory,dataKey:void 0,domain:void 0,id:yo.radiusAxisId,includeHidden:!1,name:void 0,reversed:!1,scale:yo.scale,tick:yo.tick,tickCount:yo.tickCount,ticks:void 0,type:yo.type,unit:void 0},Vre={allowDataOverflow:!1,allowDecimals:!1,allowDuplicatedCategory:ol.allowDuplicatedCategory,dataKey:void 0,domain:void 0,id:ol.angleAxisId,includeHidden:!1,name:void 0,reversed:!1,scale:ol.scale,tick:ol.tick,tickCount:void 0,ticks:void 0,type:"number",unit:void 0},zre={allowDataOverflow:yo.allowDataOverflow,allowDecimals:!1,allowDuplicatedCategory:yo.allowDuplicatedCategory,dataKey:void 0,domain:void 0,id:yo.radiusAxisId,includeHidden:!1,name:void 0,reversed:!1,scale:yo.scale,tick:yo.tick,tickCount:yo.tickCount,ticks:void 0,type:"category",unit:void 0},n5=(e,t)=>e.polarAxis.angleAxis[t]!=null?e.polarAxis.angleAxis[t]:e.layout.layoutType==="radial"?Vre:Fre,r5=(e,t)=>e.polarAxis.radiusAxis[t]!=null?e.polarAxis.radiusAxis[t]:e.layout.layoutType==="radial"?zre:Bre,lx=e=>e.polarOptions,i5=ye([Sl,_l,Vr],UQ),qR=ye([lx,i5],(e,t)=>{if(e!=null)return Na(e.innerRadius,t,0)}),KR=ye([lx,i5],(e,t)=>{if(e!=null)return Na(e.outerRadius,t,t*.8)}),Ure=e=>{if(e==null)return[0,0];var{startAngle:t,endAngle:n}=e;return[t,n]},GR=ye([lx],Ure);ye([n5,GR],sx);var YR=ye([i5,qR,KR],(e,t,n)=>{if(!(e==null||t==null||n==null))return[t,n]});ye([r5,YR],sx);var ZR=ye([gn,lx,qR,KR,Sl,_l],(e,t,n,r,i,o)=>{if(!(e!=="centric"&&e!=="radial"||t==null||n==null||r==null)){var{cx:a,cy:l,startAngle:c,endAngle:d}=t;return{cx:Na(a,i,i/2),cy:Na(l,o,o/2),innerRadius:n,outerRadius:r,startAngle:c,endAngle:d,clockWise:!1}}}),hr=(e,t)=>t,ux=(e,t,n)=>n;function o5(e){return e==null?void 0:e.id}var Er=e=>{var t=gn(e);return t==="horizontal"?"xAxis":t==="vertical"?"yAxis":t==="centric"?"angleAxis":"radiusAxis"},qh=e=>e.tooltip.settings.axisId,Or=e=>{var t=Er(e),n=qh(e);return Qg(e,t,n)};function XR(e,t,n){var{chartData:r=[]}=t,i=n==null?void 0:n.dataKey,o=new Map;return e.forEach(a=>{var l,c=(l=a.data)!==null&&l!==void 0?l:r;if(!(c==null||c.length===0)){var d=o5(a);c.forEach((h,m)=>{var v=i==null?m:String(ji(h,i,null)),y=ji(h,a.dataKey,0),w;o.has(v)?w=o.get(v):w={},Object.assign(w,{[d]:y}),o.set(v,w)})}}),Array.from(o.values())}function cx(e){return e.stackId!=null&&e.dataKey!=null}function qk(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function r1(e){for(var t=1;t{var n=e.cartesianAxis.xAxis[t];return n??go},vo={allowDataOverflow:!1,allowDecimals:!0,allowDuplicatedCategory:!0,angle:0,dataKey:void 0,domain:D_,hide:!0,id:0,includeHidden:!1,interval:"preserveEnd",minTickGap:5,mirror:!1,name:void 0,orientation:"left",padding:{top:0,bottom:0},reversed:!1,scale:"auto",tick:!0,tickCount:5,tickFormatter:void 0,ticks:void 0,type:"number",unit:void 0,width:Z1},Mu=(e,t)=>{var n=e.cartesianAxis.yAxis[t];return n??vo},Kre={domain:[0,"auto"],includeHidden:!1,reversed:!1,allowDataOverflow:!1,allowDuplicatedCategory:!1,dataKey:void 0,id:0,name:"",range:[64,64],scale:"auto",type:"number",unit:""},a5=(e,t)=>{var n=e.cartesianAxis.zAxis[t];return n??Kre},eo=(e,t,n)=>{switch(t){case"xAxis":return El(e,n);case"yAxis":return Mu(e,n);case"zAxis":return a5(e,n);case"angleAxis":return n5(e,n);case"radiusAxis":return r5(e,n);default:throw new Error("Unexpected axis type: ".concat(t))}},Gre=(e,t,n)=>{switch(t){case"xAxis":return El(e,n);case"yAxis":return Mu(e,n);default:throw new Error("Unexpected axis type: ".concat(t))}},Qg=(e,t,n)=>{switch(t){case"xAxis":return El(e,n);case"yAxis":return Mu(e,n);case"angleAxis":return n5(e,n);case"radiusAxis":return r5(e,n);default:throw new Error("Unexpected axis type: ".concat(t))}},QR=e=>e.graphicalItems.cartesianItems.some(t=>t.type==="bar")||e.graphicalItems.polarItems.some(t=>t.type==="radialBar");function JR(e,t){return n=>{switch(e){case"xAxis":return"xAxisId"in n&&n.xAxisId===t;case"yAxis":return"yAxisId"in n&&n.yAxisId===t;case"zAxis":return"zAxisId"in n&&n.zAxisId===t;case"angleAxis":return"angleAxisId"in n&&n.angleAxisId===t;case"radiusAxis":return"radiusAxisId"in n&&n.radiusAxisId===t;default:return!1}}}var s5=e=>e.graphicalItems.cartesianItems,Yre=ye([hr,ux],JR),e9=(e,t,n)=>e.filter(n).filter(r=>(t==null?void 0:t.includeHidden)===!0?!0:!r.hide),Jg=ye([s5,eo,Yre],e9),t9=ye([Jg],e=>e.filter(t=>t.type==="area"||t.type==="bar").filter(cx)),n9=e=>e.filter(t=>!("stackId"in t)||t.stackId===void 0),r9=ye([Jg],n9),i9=e=>e.map(t=>t.data).filter(Boolean).flat(1),Zre=ye([Jg],i9),o9=(e,t)=>{var{chartData:n=[],dataStartIndex:r,dataEndIndex:i}=t;return e.length>0?e:n.slice(r,i+1)},l5=ye([Zre,ZE],o9),a9=(e,t,n)=>(t==null?void 0:t.dataKey)!=null?e.map(r=>({value:ji(r,t.dataKey)})):n.length>0?n.map(r=>r.dataKey).flatMap(r=>e.map(i=>({value:ji(i,r)}))):e.map(r=>({value:r})),fx=ye([l5,eo,Jg],a9);function s9(e,t){switch(e){case"xAxis":return t.direction==="x";case"yAxis":return t.direction==="y";default:return!1}}function Sf(e){return e.filter(t=>Ss(t)||t instanceof Date).map(Number).filter(t=>oa(t)===!1)}function Xre(e,t,n){return!n||typeof t!="number"||oa(t)?[]:n.length?Sf(n.flatMap(r=>{var i=ji(e,r.dataKey),o,a;if(Array.isArray(i)?[o,a]=i:o=a=i,!(!Ao(o)||!Ao(a)))return[t-o,t+a]})):[]}var Qre=ye([t9,ZE,Or],XR),l9=(e,t,n)=>{var r={},i=t.reduce((o,a)=>(a.stackId==null||(o[a.stackId]==null&&(o[a.stackId]=[]),o[a.stackId].push(a)),o),r);return Object.fromEntries(Object.entries(i).map(o=>{var[a,l]=o,c=l.map(o5);return[a,{stackedData:oJ(e,c,n),graphicalItems:l}]}))},$_=ye([Qre,t9,ax],l9),u9=(e,t,n)=>{var{dataStartIndex:r,dataEndIndex:i}=t;if(n!=="zAxis"){var o=cJ(e,r,i);if(!(o!=null&&o[0]===0&&o[1]===0))return o}},Jre=ye([$_,ju,hr],u9),c9=(e,t,n,r,i)=>n.length>0?e.flatMap(o=>n.flatMap(a=>{var l,c,d=(l=r[a.id])===null||l===void 0?void 0:l.filter(m=>s9(i,m)),h=ji(o,(c=t.dataKey)!==null&&c!==void 0?c:a.dataKey);return{value:h,errorDomain:Xre(o,h,d)}})).filter(Boolean):(t==null?void 0:t.dataKey)!=null?e.map(o=>({value:ji(o,t.dataKey),errorDomain:[]})):e.map(o=>({value:o,errorDomain:[]})),dx=e=>e.errorBars,f9=(e,t,n)=>e.flatMap(r=>t[r.id]).filter(Boolean).filter(r=>s9(n,r));ye([r9,dx,hr],f9);var eie=ye([l5,eo,r9,dx,hr],c9);function tie(e){var{value:t}=e;if(Ss(t)||t instanceof Date)return t}var Kk=e=>{var t=e.flatMap(r=>[r.value,r.errorDomain]).flat(1),n=Sf(t);if(n.length!==0)return[Math.min(...n),Math.max(...n)]},nie=(e,t,n)=>{var r=e.map(tie).filter(i=>i!=null);return n&&(t.dataKey==null||t.allowDuplicatedCategory&&kI(r))?GN(0,e.length):t.allowDuplicatedCategory?r:Array.from(new Set(r))},u5=e=>{var t;if(e==null||!("domain"in e))return D_;if(e.domain!=null)return e.domain;if(e.ticks!=null){if(e.type==="number"){var n=Sf(e.ticks);return[Math.min(...n),Math.max(...n)]}if(e.type==="category")return e.ticks.map(String)}return(t=e==null?void 0:e.domain)!==null&&t!==void 0?t:D_},i1=function(){for(var t=arguments.length,n=new Array(t),r=0;re.referenceElements.dots,Kh=(e,t,n)=>e.filter(r=>r.ifOverflow==="extendDomain").filter(r=>t==="xAxis"?r.xAxisId===n:r.yAxisId===n),rie=ye([d9,hr,ux],Kh),h9=e=>e.referenceElements.areas,iie=ye([h9,hr,ux],Kh),p9=e=>e.referenceElements.lines,oie=ye([p9,hr,ux],Kh),m9=(e,t)=>{var n=Sf(e.map(r=>t==="xAxis"?r.x:r.y));if(n.length!==0)return[Math.min(...n),Math.max(...n)]},aie=ye(rie,hr,m9),g9=(e,t)=>{var n=Sf(e.flatMap(r=>[t==="xAxis"?r.x1:r.y1,t==="xAxis"?r.x2:r.y2]));if(n.length!==0)return[Math.min(...n),Math.max(...n)]},sie=ye([iie,hr],g9),v9=(e,t)=>{var n=Sf(e.map(r=>t==="xAxis"?r.x:r.y));if(n.length!==0)return[Math.min(...n),Math.max(...n)]},lie=ye(oie,hr,v9),uie=ye(aie,lie,sie,(e,t,n)=>i1(e,n,t)),cie=ye([eo],u5),y9=(e,t,n,r,i,o,a)=>{var l=Cre(t,e.allowDataOverflow);if(l!=null)return l;var c=o==="vertical"&&a==="xAxis"||o==="horizontal"&&a==="yAxis",d=c?i1(n,i,Kk(r)):i1(i,Kk(r));return Ere(t,d,e.allowDataOverflow)},fie=ye([eo,cie,Jre,eie,uie,gn,hr],y9),die=[0,1],x9=(e,t,n,r,i,o,a)=>{if(!((e==null||n==null||n.length===0)&&a===void 0)){var{dataKey:l,type:c}=e,d=yf(t,o);return d&&l==null?GN(0,n.length):c==="category"?nie(r,e,d):i==="expand"?die:a}},c5=ye([eo,gn,l5,fx,ax,hr,fie],x9),b9=(e,t,n,r,i)=>{if(e!=null){var{scale:o,type:a}=e;if(o==="auto")return t==="radial"&&i==="radiusAxis"?"band":t==="radial"&&i==="angleAxis"?"linear":a==="category"&&r&&(r.indexOf("LineChart")>=0||r.indexOf("AreaChart")>=0||r.indexOf("ComposedChart")>=0&&!n)?"point":a==="category"?"band":"linear";if(typeof o=="string"){var l="scale".concat(Wg(o));return l in $m?l:"point"}}},e0=ye([eo,gn,QR,JE,hr],b9);function hie(e){if(e!=null){if(e in $m)return $m[e]();var t="scale".concat(Wg(e));if(t in $m)return $m[t]()}}function f5(e,t,n,r){if(!(n==null||r==null)){if(typeof e.scale=="function")return e.scale.copy().domain(n).range(r);var i=hie(t);if(i!=null){var o=i.domain(n).range(r);return eJ(o),o}}}var w9=(e,t,n)=>{var r=u5(t);if(!(n!=="auto"&&n!=="linear")){if(t!=null&&t.tickCount&&Array.isArray(r)&&(r[0]==="auto"||r[1]==="auto")&&Ah(e))return Rre(e,t.tickCount,t.allowDecimals);if(t!=null&&t.tickCount&&t.type==="number"&&Ah(e))return Lre(e,t.tickCount,t.allowDecimals)}},d5=ye([c5,Qg,e0],w9),S9=(e,t,n,r)=>{if(r!=="angleAxis"&&(e==null?void 0:e.type)==="number"&&Ah(t)&&Array.isArray(n)&&n.length>0){var i=t[0],o=n[0],a=t[1],l=n[n.length-1];return[Math.min(i,o),Math.max(a,l)]}return t},pie=ye([eo,c5,d5,hr],S9),mie=ye(fx,eo,(e,t)=>{if(!(!t||t.type!=="number")){var n=1/0,r=Array.from(Sf(e.map(l=>l.value))).sort((l,c)=>l-c);if(r.length<2)return 1/0;var i=r[r.length-1]-r[0];if(i===0)return 1/0;for(var o=0;or,(e,t,n,r,i)=>{if(!Ao(e))return 0;var o=t==="vertical"?r.height:r.width;if(i==="gap")return e*o/2;if(i==="no-gap"){var a=Na(n,e*o),l=e*o/2;return l-a-(l-a)/o*a}return 0}),gie=(e,t)=>{var n=El(e,t);return n==null||typeof n.padding!="string"?0:_9(e,"xAxis",t,n.padding)},vie=(e,t)=>{var n=Mu(e,t);return n==null||typeof n.padding!="string"?0:_9(e,"yAxis",t,n.padding)},yie=ye(El,gie,(e,t)=>{var n,r;if(e==null)return{left:0,right:0};var{padding:i}=e;return typeof i=="string"?{left:t,right:t}:{left:((n=i.left)!==null&&n!==void 0?n:0)+t,right:((r=i.right)!==null&&r!==void 0?r:0)+t}}),xie=ye(Mu,vie,(e,t)=>{var n,r;if(e==null)return{top:0,bottom:0};var{padding:i}=e;return typeof i=="string"?{top:t,bottom:t}:{top:((n=i.top)!==null&&n!==void 0?n:0)+t,bottom:((r=i.bottom)!==null&&r!==void 0?r:0)+t}}),bie=ye([Vr,yie,Q1,X1,(e,t,n)=>n],(e,t,n,r,i)=>{var{padding:o}=r;return i?[o.left,n.width-o.right]:[e.left+t.left,e.left+e.width-t.right]}),wie=ye([Vr,gn,xie,Q1,X1,(e,t,n)=>n],(e,t,n,r,i,o)=>{var{padding:a}=i;return o?[r.height-a.bottom,a.top]:t==="horizontal"?[e.top+e.height-n.bottom,e.top+n.top]:[e.top+n.top,e.top+e.height-n.bottom]}),t0=(e,t,n,r)=>{var i;switch(t){case"xAxis":return bie(e,n,r);case"yAxis":return wie(e,n,r);case"zAxis":return(i=a5(e,n))===null||i===void 0?void 0:i.range;case"angleAxis":return GR(e);case"radiusAxis":return YR(e,n);default:return}},C9=ye([eo,t0],sx),Gh=ye([eo,e0,pie,C9],f5);ye([Jg,dx,hr],f9);function E9(e,t){return e.idt.id?1:0}var hx=(e,t)=>t,px=(e,t,n)=>n,Sie=ye(SE,hx,px,(e,t,n)=>e.filter(r=>r.orientation===t).filter(r=>r.mirror===n).sort(E9)),_ie=ye(_E,hx,px,(e,t,n)=>e.filter(r=>r.orientation===t).filter(r=>r.mirror===n).sort(E9)),O9=(e,t)=>({width:e.width,height:t.height}),Cie=(e,t)=>{var n=typeof t.width=="number"?t.width:Z1;return{width:n,height:e.height}},P9=ye(Vr,El,O9),Eie=(e,t,n)=>{switch(t){case"top":return e.top;case"bottom":return n-e.bottom;default:return 0}},Oie=(e,t,n)=>{switch(t){case"left":return e.left;case"right":return n-e.right;default:return 0}},Pie=ye(_l,Vr,Sie,hx,px,(e,t,n,r,i)=>{var o={},a;return n.forEach(l=>{var c=O9(t,l);a==null&&(a=Eie(t,r,e));var d=r==="top"&&!i||r==="bottom"&&i;o[l.id]=a-Number(d)*c.height,a+=(d?-1:1)*c.height}),o}),Aie=ye(Sl,Vr,_ie,hx,px,(e,t,n,r,i)=>{var o={},a;return n.forEach(l=>{var c=Cie(t,l);a==null&&(a=Oie(t,r,e));var d=r==="left"&&!i||r==="right"&&i;o[l.id]=a-Number(d)*c.width,a+=(d?-1:1)*c.width}),o}),Tie=(e,t)=>{var n=Vr(e),r=El(e,t);if(r!=null){var i=Pie(e,r.orientation,r.mirror),o=i[t];return o==null?{x:n.left,y:0}:{x:n.left,y:o}}},kie=(e,t)=>{var n=Vr(e),r=Mu(e,t);if(r!=null){var i=Aie(e,r.orientation,r.mirror),o=i[t];return o==null?{x:0,y:n.top}:{x:o,y:n.top}}},A9=ye(Vr,Mu,(e,t)=>{var n=typeof t.width=="number"?t.width:Z1;return{width:n,height:e.height}}),Gk=(e,t,n)=>{switch(t){case"xAxis":return P9(e,n).width;case"yAxis":return A9(e,n).height;default:return}},T9=(e,t,n,r)=>{if(n!=null){var{allowDuplicatedCategory:i,type:o,dataKey:a}=n,l=yf(e,r),c=t.map(d=>d.value);if(a&&l&&o==="category"&&i&&kI(c))return c}},h5=ye([gn,fx,eo,hr],T9),k9=(e,t,n,r)=>{if(!(n==null||n.dataKey==null)){var{type:i,scale:o}=n,a=yf(e,r);if(a&&(i==="number"||o!=="auto"))return t.map(l=>l.value)}},p5=ye([gn,fx,Qg,hr],k9);ye([gn,Gre,e0,Gh,h5,p5,t0,d5,hr],(e,t,n,r,i,o,a,l,c)=>{if(t==null)return null;var d=yf(e,c);return{angle:t.angle,interval:t.interval,minTickGap:t.minTickGap,orientation:t.orientation,tick:t.tick,tickCount:t.tickCount,tickFormatter:t.tickFormatter,ticks:t.ticks,type:t.type,unit:t.unit,axisType:c,categoricalDomain:o,duplicateDomain:i,isCategorical:d,niceTicks:l,range:a,realScaleType:n,scale:r}});var jie=(e,t,n,r,i,o,a,l,c)=>{if(!(t==null||r==null)){var d=yf(e,c),{type:h,ticks:m,tickCount:v}=t,y=n==="scaleBand"&&typeof r.bandwidth=="function"?r.bandwidth()/2:2,w=h==="category"&&r.bandwidth?r.bandwidth()/y:0;w=c==="angleAxis"&&o!=null&&o.length>=2?So(o[0]-o[1])*2*w:w;var C=m||i;if(C){var _=C.map((P,T)=>{var A=a?a.indexOf(P):P;return{index:T,coordinate:r(A)+w,value:P,offset:w}});return _.filter(P=>!oa(P.coordinate))}return d&&l?l.map((P,T)=>({coordinate:r(P)+w,value:P,index:T,offset:w})):r.ticks?r.ticks(v).map(P=>({coordinate:r(P)+w,value:P,offset:w})):r.domain().map((P,T)=>({coordinate:r(P)+w,value:a?a[P]:P,index:T,offset:w}))}},j9=ye([gn,Qg,e0,Gh,d5,t0,h5,p5,hr],jie),Mie=(e,t,n,r,i,o,a)=>{if(!(t==null||n==null||r==null||r[0]===r[1])){var l=yf(e,a),{tickCount:c}=t,d=0;return d=a==="angleAxis"&&(r==null?void 0:r.length)>=2?So(r[0]-r[1])*2*d:d,l&&o?o.map((h,m)=>({coordinate:n(h)+d,value:h,index:m,offset:d})):n.ticks?n.ticks(c).map(h=>({coordinate:n(h)+d,value:h,offset:d})):n.domain().map((h,m)=>({coordinate:n(h)+d,value:i?i[h]:h,index:m,offset:d}))}},Th=ye([gn,Qg,Gh,t0,h5,p5,hr],Mie),kh=ye(eo,Gh,(e,t)=>{if(!(e==null||t==null))return r1(r1({},e),{},{scale:t})}),Iie=ye([eo,e0,c5,C9],f5);ye((e,t,n)=>a5(e,n),Iie,(e,t)=>{if(!(e==null||t==null))return r1(r1({},e),{},{scale:t})});var Nie=ye([gn,SE,_E],(e,t,n)=>{switch(e){case"horizontal":return t.some(r=>r.reversed)?"right-to-left":"left-to-right";case"vertical":return n.some(r=>r.reversed)?"bottom-to-top":"top-to-bottom";case"centric":case"radial":return"left-to-right";default:return}}),M9=e=>e.options.defaultTooltipEventType,I9=e=>e.options.validateTooltipEventTypes;function N9(e,t,n){if(e==null)return t;var r=e?"axis":"item";return n==null?t:n.includes(r)?r:t}function m5(e,t){var n=M9(e),r=I9(e);return N9(t,n,r)}function Rie(e){return St(t=>m5(t,e))}var R9=(e,t)=>{var n,r=Number(t);if(!(oa(r)||t==null))return r>=0?e==null||(n=e[r])===null||n===void 0?void 0:n.value:void 0},Lie=e=>e.tooltip.settings,vu={active:!1,index:null,dataKey:void 0,coordinate:void 0},Die={itemInteraction:{click:vu,hover:vu},axisInteraction:{click:vu,hover:vu},keyboardInteraction:vu,syncInteraction:{active:!1,index:null,dataKey:void 0,label:void 0,coordinate:void 0},tooltipItemPayloads:[],settings:{shared:void 0,trigger:"hover",axisId:0,active:!1,defaultIndex:void 0}},L9=ko({name:"tooltip",initialState:Die,reducers:{addTooltipEntrySettings(e,t){e.tooltipItemPayloads.push(t.payload)},removeTooltipEntrySettings(e,t){var n=cl(e).tooltipItemPayloads.indexOf(t.payload);n>-1&&e.tooltipItemPayloads.splice(n,1)},setTooltipSettingsState(e,t){e.settings=t.payload},setActiveMouseOverItemIndex(e,t){e.syncInteraction.active=!1,e.keyboardInteraction.active=!1,e.itemInteraction.hover.active=!0,e.itemInteraction.hover.index=t.payload.activeIndex,e.itemInteraction.hover.dataKey=t.payload.activeDataKey,e.itemInteraction.hover.coordinate=t.payload.activeCoordinate},mouseLeaveChart(e){e.itemInteraction.hover.active=!1,e.axisInteraction.hover.active=!1},mouseLeaveItem(e){e.itemInteraction.hover.active=!1},setActiveClickItemIndex(e,t){e.syncInteraction.active=!1,e.itemInteraction.click.active=!0,e.keyboardInteraction.active=!1,e.itemInteraction.click.index=t.payload.activeIndex,e.itemInteraction.click.dataKey=t.payload.activeDataKey,e.itemInteraction.click.coordinate=t.payload.activeCoordinate},setMouseOverAxisIndex(e,t){e.syncInteraction.active=!1,e.axisInteraction.hover.active=!0,e.keyboardInteraction.active=!1,e.axisInteraction.hover.index=t.payload.activeIndex,e.axisInteraction.hover.dataKey=t.payload.activeDataKey,e.axisInteraction.hover.coordinate=t.payload.activeCoordinate},setMouseClickAxisIndex(e,t){e.syncInteraction.active=!1,e.keyboardInteraction.active=!1,e.axisInteraction.click.active=!0,e.axisInteraction.click.index=t.payload.activeIndex,e.axisInteraction.click.dataKey=t.payload.activeDataKey,e.axisInteraction.click.coordinate=t.payload.activeCoordinate},setSyncInteraction(e,t){e.syncInteraction=t.payload},setKeyboardInteraction(e,t){e.keyboardInteraction.active=t.payload.active,e.keyboardInteraction.index=t.payload.activeIndex,e.keyboardInteraction.coordinate=t.payload.activeCoordinate,e.keyboardInteraction.dataKey=t.payload.activeDataKey}}}),{addTooltipEntrySettings:$ie,removeTooltipEntrySettings:Fie,setTooltipSettingsState:Bie,setActiveMouseOverItemIndex:D9,mouseLeaveItem:Vie,mouseLeaveChart:$9,setActiveClickItemIndex:zie,setMouseOverAxisIndex:F9,setMouseClickAxisIndex:Uie,setSyncInteraction:F_,setKeyboardInteraction:B_}=L9.actions,Wie=L9.reducer;function Yk(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Jv(e){for(var t=1;t{if(t==null)return vu;var i=Gie(e,t,n);if(i==null)return vu;if(i.active)return i;if(e.keyboardInteraction.active)return e.keyboardInteraction;if(e.syncInteraction.active&&e.syncInteraction.index!=null)return e.syncInteraction;var o=e.settings.active===!0;if(Yie(i)){if(o)return Jv(Jv({},i),{},{active:!0})}else if(r!=null)return{active:!0,coordinate:void 0,dataKey:void 0,index:r};return Jv(Jv({},vu),{},{coordinate:i.coordinate})},g5=(e,t)=>{var n=e==null?void 0:e.index;if(n==null)return null;var r=Number(n);if(!Ao(r))return n;var i=0,o=1/0;return t.length>0&&(o=t.length-1),String(Math.max(i,Math.min(r,o)))},V9=(e,t,n,r,i,o,a,l)=>{if(!(o==null||l==null)){var c=a[0],d=c==null?void 0:l(c.positions,o);if(d!=null)return d;var h=i==null?void 0:i[Number(o)];if(h)switch(n){case"horizontal":return{x:h.coordinate,y:(r.top+t)/2};default:return{x:(r.left+e)/2,y:h.coordinate}}}},z9=(e,t,n,r)=>{if(t==="axis")return e.tooltipItemPayloads;if(e.tooltipItemPayloads.length===0)return[];var i;return n==="hover"?i=e.itemInteraction.hover.dataKey:i=e.itemInteraction.click.dataKey,i==null&&r!=null?[e.tooltipItemPayloads[0]]:e.tooltipItemPayloads.filter(o=>{var a;return((a=o.settings)===null||a===void 0?void 0:a.dataKey)===i})},n0=e=>e.options.tooltipPayloadSearcher,Yh=e=>e.tooltip;function Zk(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Xk(e){for(var t=1;t{if(!(t==null||o==null)){var{chartData:l,computedData:c,dataStartIndex:d,dataEndIndex:h}=n,m=[];return e.reduce((v,y)=>{var w,{dataDefinedOnItem:C,settings:_}=y,P=Jie(C,l),T=Array.isArray(P)?MN(P,d,h):P,A=(w=_==null?void 0:_.dataKey)!==null&&w!==void 0?w:r==null?void 0:r.dataKey,I=_==null?void 0:_.nameKey,M;if(r!=null&&r.dataKey&&Array.isArray(T)&&!Array.isArray(T[0])&&a==="axis"?M=qY(T,r.dataKey,i):M=o(T,t,c,I),Array.isArray(M))M.forEach(L=>{var F=Xk(Xk({},_),{},{name:L.name,unit:L.unit,color:void 0,fill:void 0});v.push(IT({tooltipEntrySettings:F,dataKey:L.dataKey,payload:L.payload,value:ji(L.payload,L.dataKey),name:L.name}))});else{var N;v.push(IT({tooltipEntrySettings:_,dataKey:A,payload:M,value:ji(M,A),name:(N=ji(M,I))!==null&&N!==void 0?N:_==null?void 0:_.name}))}return v},m)}},v5=ye([Or,gn,QR,JE,Er],b9),eoe=ye([e=>e.graphicalItems.cartesianItems,e=>e.graphicalItems.polarItems],(e,t)=>[...e,...t]),toe=ye([Er,qh],JR),r0=ye([eoe,Or,toe],e9),noe=ye([r0],e=>e.filter(cx)),roe=ye([r0],i9),Zh=ye([roe,ju],o9),ioe=ye([noe,ju,Or],XR),y5=ye([Zh,Or,r0],a9),ooe=ye([Or],u5),aoe=ye([r0],e=>e.filter(cx)),soe=ye([ioe,aoe,ax],l9),loe=ye([soe,ju,Er],u9),uoe=ye([r0],n9),coe=ye([Zh,Or,uoe,dx,Er],c9),foe=ye([d9,Er,qh],Kh),doe=ye([foe,Er],m9),hoe=ye([h9,Er,qh],Kh),poe=ye([hoe,Er],g9),moe=ye([p9,Er,qh],Kh),goe=ye([moe,Er],v9),voe=ye([doe,goe,poe],i1),yoe=ye([Or,ooe,loe,coe,voe,gn,Er],y9),W9=ye([Or,gn,Zh,y5,ax,Er,yoe],x9),xoe=ye([W9,Or,v5],w9),boe=ye([Or,W9,xoe,Er],S9),H9=e=>{var t=Er(e),n=qh(e),r=!1;return t0(e,t,n,r)},q9=ye([Or,H9],sx),K9=ye([Or,v5,boe,q9],f5),woe=ye([gn,y5,Or,Er],T9),Soe=ye([gn,y5,Or,Er],k9),_oe=(e,t,n,r,i,o,a,l)=>{if(t){var{type:c}=t,d=yf(e,l);if(r){var h=n==="scaleBand"&&r.bandwidth?r.bandwidth()/2:2,m=c==="category"&&r.bandwidth?r.bandwidth()/h:0;return m=l==="angleAxis"&&i!=null&&(i==null?void 0:i.length)>=2?So(i[0]-i[1])*2*m:m,d&&a?a.map((v,y)=>({coordinate:r(v)+m,value:v,index:y,offset:m})):r.domain().map((v,y)=>({coordinate:r(v)+m,value:o?o[v]:v,index:y,offset:m}))}}},Ol=ye([gn,Or,v5,K9,H9,woe,Soe,Er],_oe),x5=ye([M9,I9,Lie],(e,t,n)=>N9(n.shared,e,t)),G9=e=>e.tooltip.settings.trigger,b5=e=>e.tooltip.settings.defaultIndex,mx=ye([Yh,x5,G9,b5],B9),jh=ye([mx,Zh],g5),Y9=ye([Ol,jh],R9),Z9=ye([mx],e=>{if(e)return e.dataKey}),X9=ye([Yh,x5,G9,b5],z9),Coe=ye([Sl,_l,gn,Vr,Ol,b5,X9,n0],V9),Eoe=ye([mx,Coe],(e,t)=>e!=null&&e.coordinate?e.coordinate:t),Ooe=ye([mx],e=>e.active),Poe=ye([X9,jh,ju,Or,Y9,n0,x5],U9);ye([Poe],e=>{if(e!=null){var t=e.map(n=>n.payload).filter(n=>n!=null);return Array.from(new Set(t))}});function Qk(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Jk(e){for(var t=1;tSt(Or),Moe=()=>{var e=joe(),t=St(Ol),n=St(K9);return wE(Jk(Jk({},e),{},{scale:n}),t)},Ioe=()=>St(JE),w5=(e,t)=>t,Q9=(e,t,n)=>n,S5=(e,t,n,r)=>r,Noe=ye(Ol,e=>W1(e,t=>t.coordinate)),_5=ye([Yh,w5,Q9,S5],B9),J9=ye([_5,Zh],g5),Roe=(e,t,n)=>{if(t!=null){var r=Yh(e);return t==="axis"?n==="hover"?r.axisInteraction.hover.dataKey:r.axisInteraction.click.dataKey:n==="hover"?r.itemInteraction.hover.dataKey:r.itemInteraction.click.dataKey}},eL=ye([Yh,w5,Q9,S5],z9),o1=ye([Sl,_l,gn,Vr,Ol,S5,eL,n0],V9),Loe=ye([_5,o1],(e,t)=>{var n;return(n=e.coordinate)!==null&&n!==void 0?n:t}),tL=ye(Ol,J9,R9),Doe=ye([eL,J9,ju,Or,tL,n0,w5],U9),$oe=ye([_5],e=>({isActive:e.active,activeIndex:e.index})),Foe=(e,t,n,r,i,o,a,l)=>{if(!(!e||!t||!r||!i||!o)){var c=fJ(e.chartX,e.chartY,t,n,l);if(c){var d=hJ(c,t),h=QQ(d,a,o,r,i),m=dJ(t,o,h,c);return{activeIndex:String(h),activeCoordinate:m}}}};function V_(){return V_=Object.assign?Object.assign.bind():function(e){for(var t=1;tO.useContext(nL),K2={exports:{}},t4;function qoe(){return t4||(t4=1,function(e){var t=Object.prototype.hasOwnProperty,n="~";function r(){}Object.create&&(r.prototype=Object.create(null),new r().__proto__||(n=!1));function i(c,d,h){this.fn=c,this.context=d,this.once=h||!1}function o(c,d,h,m,v){if(typeof h!="function")throw new TypeError("The listener must be a function");var y=new i(h,m||c,v),w=n?n+d:d;return c._events[w]?c._events[w].fn?c._events[w]=[c._events[w],y]:c._events[w].push(y):(c._events[w]=y,c._eventsCount++),c}function a(c,d){--c._eventsCount===0?c._events=new r:delete c._events[d]}function l(){this._events=new r,this._eventsCount=0}l.prototype.eventNames=function(){var d=[],h,m;if(this._eventsCount===0)return d;for(m in h=this._events)t.call(h,m)&&d.push(n?m.slice(1):m);return Object.getOwnPropertySymbols?d.concat(Object.getOwnPropertySymbols(h)):d},l.prototype.listeners=function(d){var h=n?n+d:d,m=this._events[h];if(!m)return[];if(m.fn)return[m.fn];for(var v=0,y=m.length,w=new Array(y);v{e.eventEmitter==null&&(e.eventEmitter=Symbol("rechartsEventEmitter"))}}}),Xoe=rL.reducer,{createEventEmitter:Qoe}=rL.actions;function Joe(e){return e.tooltip.syncInteraction}var eae={chartData:void 0,computedData:void 0,dataStartIndex:0,dataEndIndex:0},iL=ko({name:"chartData",initialState:eae,reducers:{setChartData(e,t){if(e.chartData=t.payload,t.payload==null){e.dataStartIndex=0,e.dataEndIndex=0;return}t.payload.length>0&&e.dataEndIndex!==t.payload.length-1&&(e.dataEndIndex=t.payload.length-1)},setComputedData(e,t){e.computedData=t.payload},setDataStartEndIndexes(e,t){var{startIndex:n,endIndex:r}=t.payload;n!=null&&(e.dataStartIndex=n),r!=null&&(e.dataEndIndex=r)}}}),{setChartData:r4,setDataStartEndIndexes:tae,setComputedData:Fhe}=iL.actions,nae=iL.reducer,oL=()=>{};function rae(){var e=St(e5),t=St(t5),n=Br(),r=St(HR),i=St(Ol),o=EE(),a=CE(),l=St(c=>c.rootProps.className);O.useEffect(()=>{if(e==null)return oL;var c=(d,h,m)=>{if(t!==m&&e===d){if(r==="index"){n(h);return}if(i!=null){var v;if(typeof r=="function"){var y={activeTooltipIndex:h.payload.index==null?void 0:Number(h.payload.index),isTooltipActive:h.payload.active,activeIndex:h.payload.index==null?void 0:Number(h.payload.index),activeLabel:h.payload.label,activeDataKey:h.payload.dataKey,activeCoordinate:h.payload.coordinate},w=r(i,y);v=i[w]}else r==="value"&&(v=i.find(N=>String(N.value)===h.payload.label));var{coordinate:C}=h.payload;if(v==null||h.payload.active===!1||C==null||a==null){n(F_({active:!1,coordinate:void 0,dataKey:void 0,index:null,label:void 0}));return}var{x:_,y:P}=C,T=Math.min(_,a.x+a.width),A=Math.min(P,a.y+a.height),I={x:o==="horizontal"?v.coordinate:T,y:o==="horizontal"?A:v.coordinate},M=F_({active:h.payload.active,coordinate:I,dataKey:h.payload.dataKey,index:String(v.index),label:h.payload.label});n(M)}}};return yg.on(z_,c),()=>{yg.off(z_,c)}},[l,n,t,e,r,i,o,a])}function iae(){var e=St(e5),t=St(t5),n=Br();O.useEffect(()=>{if(e==null)return oL;var r=(i,o,a)=>{t!==a&&e===i&&n(tae(o))};return yg.on(n4,r),()=>{yg.off(n4,r)}},[n,t,e])}function oae(){var e=Br();O.useEffect(()=>{e(Qoe())},[e]),rae(),iae()}function aae(e,t,n,r,i,o){var a=St(v=>Roe(v,e,t)),l=St(t5),c=St(e5),d=St(HR),h=St(Joe),m=h==null?void 0:h.active;O.useEffect(()=>{if(!m&&c!=null&&l!=null){var v=F_({active:o,coordinate:n,dataKey:a,index:i,label:typeof r=="number"?String(r):r});yg.emit(z_,c,v,l)}},[m,n,a,i,r,l,c,d,o])}function i4(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function o4(e){for(var t=1;t{M(Bie({shared:_,trigger:P,axisId:I,active:n,defaultIndex:N}))},[M,_,P,I,n,N]);var L=CE(),F=DN(),B=Rie(_),{activeIndex:U,isActive:W}=St(we=>$oe(we,B,P,N)),G=St(we=>Doe(we,B,P,N)),ie=St(we=>tL(we,B,P,N)),te=St(we=>Loe(we,B,P,N)),se=G,le=Hoe(),q=n??W,[H,Z]=VX([se,q]),X=B==="axis"?ie:void 0;aae(B,P,te,X,U,q);var z=A??le;if(z==null)return null;var J=se??a4;q||(J=a4),l&&J.length&&(J=hX(se.filter(we=>we.value!=null&&(we.hide!==!0||t.includeHidden)),h,cae));var Me=J.length>0,Pe=O.createElement(zJ,{allowEscapeViewBox:r,animationDuration:i,animationEasing:o,isAnimationActive:c,active:q,coordinate:te,hasPayload:Me,offset:d,position:m,reverseDirection:v,useTranslate3d:y,viewBox:L,wrapperStyle:w,lastBoundingBox:H,innerRef:Z,hasPortalFromProps:!!A},fae(a,o4(o4({},t),{},{payload:J,label:X,active:q,coordinate:te,accessibilityLayer:F})));return O.createElement(O.Fragment,null,rC.createPortal(Pe,z),q&&O.createElement(Woe,{cursor:C,tooltipEventType:B,coordinate:te,payload:se,index:U}))}var G2={},Y2={},Z2={},s4;function pae(){return s4||(s4=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n,r,{signal:i,edges:o}={}){let a,l=null;const c=o!=null&&o.includes("leading"),d=o==null||o.includes("trailing"),h=()=>{l!==null&&(n.apply(a,l),a=void 0,l=null)},m=()=>{d&&h(),C()};let v=null;const y=()=>{v!=null&&clearTimeout(v),v=setTimeout(()=>{v=null,m()},r)},w=()=>{v!==null&&(clearTimeout(v),v=null)},C=()=>{w(),a=void 0,l=null},_=()=>{h()},P=function(...T){if(i!=null&&i.aborted)return;a=this,l=T;const A=v==null;y(),c&&A&&h()};return P.schedule=y,P.cancel=C,P.flush=_,i==null||i.addEventListener("abort",C,{once:!0}),P}e.debounce=t}(Z2)),Z2}var l4;function mae(){return l4||(l4=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=pae();function n(r,i=0,o={}){typeof o!="object"&&(o={});const{leading:a=!1,trailing:l=!0,maxWait:c}=o,d=Array(2);a&&(d[0]="leading"),l&&(d[1]="trailing");let h,m=null;const v=t.debounce(function(...C){h=r.apply(this,C),m=null},i,{edges:d}),y=function(...C){return c!=null&&(m===null&&(m=Date.now()),Date.now()-m>=c)?(h=r.apply(this,C),m=Date.now(),v.cancel(),v.schedule(),h):(v.apply(this,C),h)},w=()=>(v.flush(),h);return y.cancel=v.cancel,y.flush=w,y}e.debounce=n}(Y2)),Y2}var u4;function gae(){return u4||(u4=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=mae();function n(r,i=0,o={}){const{leading:a=!0,trailing:l=!0}=o;return t.debounce(r,i,{leading:a,maxWait:i,trailing:l})}e.throttle=n}(G2)),G2}var X2,c4;function vae(){return c4||(c4=1,X2=gae().throttle),X2}var yae=vae();const xae=To(yae);var Q2=function(t,n){for(var r=arguments.length,i=new Array(r>2?r-2:0),o=2;o{var{aspect:n,initialDimension:r={width:-1,height:-1},width:i="100%",height:o="100%",minWidth:a=0,minHeight:l,maxHeight:c,children:d,debounce:h=0,id:m,className:v,onResize:y,style:w={}}=e,C=O.useRef(null),_=O.useRef();_.current=y,O.useImperativeHandle(t,()=>C.current);var[P,T]=O.useState({containerWidth:r.width,containerHeight:r.height}),A=O.useCallback((M,N)=>{T(L=>{var F=Math.round(M),B=Math.round(N);return L.containerWidth===F&&L.containerHeight===B?L:{containerWidth:F,containerHeight:B}})},[]);O.useEffect(()=>{var M=B=>{var U,{width:W,height:G}=B[0].contentRect;A(W,G),(U=_.current)===null||U===void 0||U.call(_,W,G)};h>0&&(M=xae(M,h,{trailing:!0,leading:!1}));var N=new ResizeObserver(M),{width:L,height:F}=C.current.getBoundingClientRect();return A(L,F),N.observe(C.current),()=>{N.disconnect()}},[A,h]);var I=O.useMemo(()=>{var{containerWidth:M,containerHeight:N}=P;if(M<0||N<0)return null;Q2(Fc(i)||Fc(o),`The width(%s) and height(%s) are both fixed numbers, maybe you don't need to use a ResponsiveContainer.`,i,o),Q2(!n||n>0,"The aspect(%s) must be greater than zero.",n);var L=Fc(i)?M:i,F=Fc(o)?N:o;return n&&n>0&&(L?F=L/n:F&&(L=F*n),c&&F>c&&(F=c)),Q2(L>0||F>0,`The width(%s) and height(%s) of chart should be greater than 0, please check the style of container, or the props width(%s) and height(%s), or add a minWidth(%s) or minHeight(%s) or use aspect(%s) to control the height and width.`,L,F,i,o,a,l,n),O.Children.map(d,B=>O.cloneElement(B,{width:L,height:F,style:J2({width:L,height:F},B.props.style)}))},[n,d,o,c,l,a,P,i]);return O.createElement("div",{id:m?"".concat(m):void 0,className:Rn("recharts-responsive-container",v),style:J2(J2({},w),{},{width:i,height:o,minWidth:a,minHeight:l,maxHeight:c}),ref:C},O.createElement("div",{style:{width:0,height:0,overflow:"visible"}},I))}),C5=e=>null;C5.displayName="Cell";function _ae(e,t,n){return(t=Cae(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Cae(e){var t=Eae(e,"string");return typeof t=="symbol"?t:t+""}function Eae(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}class Oae{constructor(t){_ae(this,"cache",new Map),this.maxSize=t}get(t){var n=this.cache.get(t);return n!==void 0&&(this.cache.delete(t),this.cache.set(t,n)),n}set(t,n){if(this.cache.has(t))this.cache.delete(t);else if(this.cache.size>=this.maxSize){var r=this.cache.keys().next().value;this.cache.delete(r)}this.cache.set(t,n)}clear(){this.cache.clear()}size(){return this.cache.size}}function d4(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Pae(e){for(var t=1;t{try{var n=document.getElementById(p4);n||(n=document.createElement("span"),n.setAttribute("id",p4),n.setAttribute("aria-hidden","true"),document.body.appendChild(n)),Object.assign(n.style,Mae,t),n.textContent="".concat(e);var r=n.getBoundingClientRect();return{width:r.width,height:r.height}}catch{return{width:0,height:0}}},Gm=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(t==null||Kg.isSsr)return{width:0,height:0};if(!sL.enableCache)return m4(t,n);var r=Iae(t,n),i=h4.get(r);if(i)return i;var o=m4(t,n);return h4.set(r,o),o},g4=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([*/])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,v4=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([+-])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,Nae=/^px|cm|vh|vw|em|rem|%|mm|in|pt|pc|ex|ch|vmin|vmax|Q$/,Rae=/(-?\d+(?:\.\d+)?)([a-zA-Z%]+)?/,lL={cm:96/2.54,mm:96/25.4,pt:96/72,pc:96/6,in:96,Q:96/(2.54*40),px:1},Lae=Object.keys(lL),ch="NaN";function Dae(e,t){return e*lL[t]}class Zi{static parse(t){var n,[,r,i]=(n=Rae.exec(t))!==null&&n!==void 0?n:[];return new Zi(parseFloat(r),i??"")}constructor(t,n){this.num=t,this.unit=n,this.num=t,this.unit=n,oa(t)&&(this.unit=""),n!==""&&!Nae.test(n)&&(this.num=NaN,this.unit=""),Lae.includes(n)&&(this.num=Dae(t,n),this.unit="px")}add(t){return this.unit!==t.unit?new Zi(NaN,""):new Zi(this.num+t.num,this.unit)}subtract(t){return this.unit!==t.unit?new Zi(NaN,""):new Zi(this.num-t.num,this.unit)}multiply(t){return this.unit!==""&&t.unit!==""&&this.unit!==t.unit?new Zi(NaN,""):new Zi(this.num*t.num,this.unit||t.unit)}divide(t){return this.unit!==""&&t.unit!==""&&this.unit!==t.unit?new Zi(NaN,""):new Zi(this.num/t.num,this.unit||t.unit)}toString(){return"".concat(this.num).concat(this.unit)}isNaN(){return oa(this.num)}}function uL(e){if(e.includes(ch))return ch;for(var t=e;t.includes("*")||t.includes("/");){var n,[,r,i,o]=(n=g4.exec(t))!==null&&n!==void 0?n:[],a=Zi.parse(r??""),l=Zi.parse(o??""),c=i==="*"?a.multiply(l):a.divide(l);if(c.isNaN())return ch;t=t.replace(g4,c.toString())}for(;t.includes("+")||/.-\d+(?:\.\d+)?/.test(t);){var d,[,h,m,v]=(d=v4.exec(t))!==null&&d!==void 0?d:[],y=Zi.parse(h??""),w=Zi.parse(v??""),C=m==="+"?y.add(w):y.subtract(w);if(C.isNaN())return ch;t=t.replace(v4,C.toString())}return t}var y4=/\(([^()]*)\)/;function $ae(e){for(var t=e,n;(n=y4.exec(t))!=null;){var[,r]=n;t=t.replace(y4,uL(r))}return t}function Fae(e){var t=e.replace(/\s+/g,"");return t=$ae(t),t=uL(t),t}function Bae(e){try{return Fae(e)}catch{return ch}}function eS(e){var t=Bae(e.slice(5,-1));return t===ch?"":t}var Vae=["x","y","lineHeight","capHeight","scaleToFit","textAnchor","verticalAnchor","fill"],zae=["dx","dy","angle","className","breakAll"];function U_(){return U_=Object.assign?Object.assign.bind():function(e){for(var t=1;t{var{children:t,breakAll:n,style:r}=e;try{var i=[];_r(t)||(n?i=t.toString().split(""):i=t.toString().split(cL));var o=i.map(l=>({word:l,width:Gm(l,r).width})),a=n?0:Gm(" ",r).width;return{wordsWithComputedWidth:o,spaceWidth:a}}catch{return null}},Wae=(e,t,n,r,i)=>{var{maxLines:o,children:a,style:l,breakAll:c}=e,d=ut(o),h=a,m=function(){var W=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return W.reduce((G,ie)=>{var{word:te,width:se}=ie,le=G[G.length-1];if(le&&(r==null||i||le.width+se+nU.reduce((W,G)=>W.width>G.width?W:G);if(!d||i)return v;var w=v.length>o||y(v).width>Number(r);if(!w)return v;for(var C="…",_=U=>{var W=h.slice(0,U),G=fL({breakAll:c,style:l,children:W+C}).wordsWithComputedWidth,ie=m(G),te=ie.length>o||y(ie).width>Number(r);return[te,ie]},P=0,T=h.length-1,A=0,I;P<=T&&A<=h.length-1;){var M=Math.floor((P+T)/2),N=M-1,[L,F]=_(N),[B]=_(M);if(!L&&!B&&(P=M+1),L&&B&&(T=M-1),!L&&B){I=F;break}A++}return I||v},b4=e=>{var t=_r(e)?[]:e.toString().split(cL);return[{words:t}]},Hae=e=>{var{width:t,scaleToFit:n,children:r,style:i,breakAll:o,maxLines:a}=e;if((t||n)&&!Kg.isSsr){var l,c,d=fL({breakAll:o,children:r,style:i});if(d){var{wordsWithComputedWidth:h,spaceWidth:m}=d;l=h,c=m}else return b4(r);return Wae({breakAll:o,children:r,maxLines:a,style:i},l,c,t,n)}return b4(r)},w4="#808080",E5=O.forwardRef((e,t)=>{var{x:n=0,y:r=0,lineHeight:i="1em",capHeight:o="0.71em",scaleToFit:a=!1,textAnchor:l="start",verticalAnchor:c="end",fill:d=w4}=e,h=x4(e,Vae),m=O.useMemo(()=>Hae({breakAll:h.breakAll,children:h.children,maxLines:h.maxLines,scaleToFit:a,style:h.style,width:h.width}),[h.breakAll,h.children,h.maxLines,a,h.style,h.width]),{dx:v,dy:y,angle:w,className:C,breakAll:_}=h,P=x4(h,zae);if(!Ss(n)||!Ss(r))return null;var T=n+(ut(v)?v:0),A=r+(ut(y)?y:0),I;switch(c){case"start":I=eS("calc(".concat(o,")"));break;case"middle":I=eS("calc(".concat((m.length-1)/2," * -").concat(i," + (").concat(o," / 2))"));break;default:I=eS("calc(".concat(m.length-1," * -").concat(i,")"));break}var M=[];if(a){var N=m[0].width,{width:L}=h;M.push("scale(".concat(ut(L)?L/N:1,")"))}return w&&M.push("rotate(".concat(w,", ").concat(T,", ").concat(A,")")),M.length&&(P.transform=M.join(" ")),O.createElement("text",U_({},$r(P,!0),{ref:t,x:T,y:A,className:Rn("recharts-text",C),textAnchor:l,fill:d.includes("url")?w4:d}),m.map((F,B)=>{var U=F.words.join(_?"":" ");return O.createElement("tspan",{x:T,dy:B===0?I:i,key:"".concat(U,"-").concat(B)},U)}))});E5.displayName="Text";var qae=["offset"],Kae=["labelRef"];function S4(e,t){if(e==null)return{};var n,r,i=Gae(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r{var{value:t,formatter:n}=e,r=_r(e.children)?t:e.children;return typeof n=="function"?n(r):r},O5=e=>e!=null&&typeof e=="function",Jae=(e,t)=>{var n=So(t-e),r=Math.min(Math.abs(t-e),360);return n*r},ese=(e,t,n,r)=>{var{position:i,offset:o,className:a}=e,{cx:l,cy:c,innerRadius:d,outerRadius:h,startAngle:m,endAngle:v,clockWise:y}=r,w=(d+h)/2,C=Jae(m,v),_=C>=0?1:-1,P,T;i==="insideStart"?(P=m+_*o,T=y):i==="insideEnd"?(P=v-_*o,T=!y):i==="end"&&(P=v+_*o,T=y),T=C<=0?T:!T;var A=ni(l,c,w,P),I=ni(l,c,w,P+(T?1:-1)*359),M="M".concat(A.x,",").concat(A.y,` A`).concat(w,",").concat(w,",0,1,").concat(T?0:1,`, `).concat(I.x,",").concat(I.y),N=_r(e.id)?ug("recharts-radial-line-"):e.id;return O.createElement("text",al({},n,{dominantBaseline:"central",className:Rn("recharts-radial-bar-label",a)}),O.createElement("defs",null,O.createElement("path",{id:N,d:M})),O.createElement("textPath",{xlinkHref:"#".concat(N)},t))},tse=(e,t,n)=>{var{cx:r,cy:i,innerRadius:o,outerRadius:a,startAngle:l,endAngle:c}=e,d=(l+c)/2;if(n==="outside"){var{x:h,y:m}=ni(r,i,a+t,d);return{x:h,y:m,textAnchor:h>=r?"start":"end",verticalAnchor:"middle"}}if(n==="center")return{x:r,y:i,textAnchor:"middle",verticalAnchor:"middle"};if(n==="centerTop")return{x:r,y:i,textAnchor:"middle",verticalAnchor:"start"};if(n==="centerBottom")return{x:r,y:i,textAnchor:"middle",verticalAnchor:"end"};var v=(o+a)/2,{x:y,y:w}=ni(r,i,v,d);return{x:y,y:w,textAnchor:"middle",verticalAnchor:"middle"}},nse=(e,t)=>{var{parentViewBox:n,offset:r,position:i}=e,{x:o,y:a,width:l,height:c}=t,d=c>=0?1:-1,h=d*r,m=d>0?"end":"start",v=d>0?"start":"end",y=l>=0?1:-1,w=y*r,C=y>0?"end":"start",_=y>0?"start":"end";if(i==="top"){var P={x:o+l/2,y:a-d*r,textAnchor:"middle",verticalAnchor:m};return Xn(Xn({},P),n?{height:Math.max(a-n.y,0),width:l}:{})}if(i==="bottom"){var T={x:o+l/2,y:a+c+h,textAnchor:"middle",verticalAnchor:v};return Xn(Xn({},T),n?{height:Math.max(n.y+n.height-(a+c),0),width:l}:{})}if(i==="left"){var A={x:o-w,y:a+c/2,textAnchor:C,verticalAnchor:"middle"};return Xn(Xn({},A),n?{width:Math.max(A.x-n.x,0),height:c}:{})}if(i==="right"){var I={x:o+l+w,y:a+c/2,textAnchor:_,verticalAnchor:"middle"};return Xn(Xn({},I),n?{width:Math.max(n.x+n.width-I.x,0),height:c}:{})}var M=n?{width:l,height:c}:{};return i==="insideLeft"?Xn({x:o+w,y:a+c/2,textAnchor:_,verticalAnchor:"middle"},M):i==="insideRight"?Xn({x:o+l-w,y:a+c/2,textAnchor:C,verticalAnchor:"middle"},M):i==="insideTop"?Xn({x:o+l/2,y:a+h,textAnchor:"middle",verticalAnchor:v},M):i==="insideBottom"?Xn({x:o+l/2,y:a+c-h,textAnchor:"middle",verticalAnchor:m},M):i==="insideTopLeft"?Xn({x:o+w,y:a+h,textAnchor:_,verticalAnchor:v},M):i==="insideTopRight"?Xn({x:o+l-w,y:a+h,textAnchor:C,verticalAnchor:v},M):i==="insideBottomLeft"?Xn({x:o+w,y:a+c-h,textAnchor:_,verticalAnchor:m},M):i==="insideBottomRight"?Xn({x:o+l-w,y:a+c-h,textAnchor:C,verticalAnchor:m},M):i&&typeof i=="object"&&(ut(i.x)||Fc(i.x))&&(ut(i.y)||Fc(i.y))?Xn({x:o+Na(i.x,l),y:a+Na(i.y,c),textAnchor:"end",verticalAnchor:"end"},M):Xn({x:o+l/2,y:a+c/2,textAnchor:"middle",verticalAnchor:"middle"},M)},rse=e=>"cx"in e&&ut(e.cx);function bo(e){var{offset:t=5}=e,n=S4(e,qae),r=Xn({offset:t},n),{viewBox:i,position:o,value:a,children:l,content:c,className:d="",textBreakAll:h,labelRef:m}=r,v=St(ZR),y=CE(),w=o==="center"?y:v??y,C=i||w;if(!C||_r(a)&&_r(l)&&!O.isValidElement(c)&&typeof c!="function")return null;var _=Xn(Xn({},r),{},{viewBox:C});if(O.isValidElement(c)){var{labelRef:P}=_,T=S4(_,Kae);return O.cloneElement(c,T)}var A;if(typeof c=="function"){if(A=O.createElement(c,_),O.isValidElement(A))return A}else A=Qae(r);var I=rse(C),M=$r(r,!0);if(I&&(o==="insideStart"||o==="insideEnd"||o==="end"))return ese(r,A,M,C);var N=I?tse(C,r.offset,r.position):nse(r,C);return O.createElement(E5,al({ref:m,className:Rn("recharts-label",d)},M,N,{breakAll:h}),A)}bo.displayName="Label";var dL=e=>{var{cx:t,cy:n,angle:r,startAngle:i,endAngle:o,r:a,radius:l,innerRadius:c,outerRadius:d,x:h,y:m,top:v,left:y,width:w,height:C,clockWise:_,labelViewBox:P}=e;if(P)return P;if(ut(w)&&ut(C)){if(ut(h)&&ut(m))return{x:h,y:m,width:w,height:C};if(ut(v)&&ut(y))return{x:v,y,width:w,height:C}}if(ut(h)&&ut(m))return{x:h,y:m,width:0,height:0};if(ut(t)&&ut(n))return{cx:t,cy:n,startAngle:i||r||0,endAngle:o||r||0,innerRadius:c||0,outerRadius:d||l||a||0,clockWise:_};if(e.viewBox)return e.viewBox},ise=(e,t,n)=>{if(!e)return null;var r={viewBox:t,labelRef:n};return e===!0?O.createElement(bo,al({key:"label-implicit"},r)):Ss(e)?O.createElement(bo,al({key:"label-implicit",value:e},r)):O.isValidElement(e)?e.type===bo?O.cloneElement(e,Xn({key:"label-implicit"},r)):O.createElement(bo,al({key:"label-implicit",content:e},r)):O5(e)?O.createElement(bo,al({key:"label-implicit",content:e},r)):e&&typeof e=="object"?O.createElement(bo,al({},e,{key:"label-implicit"},r)):null},ose=function(t,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;if(!t||!t.children&&r&&!t.label)return null;var{children:i,labelRef:o}=t,a=dL(t),l=aE(i,bo).map((d,h)=>O.cloneElement(d,{viewBox:n||a,key:"label-".concat(h)}));if(!r)return l;var c=ise(t.label,n||a,o);return[c,...l]};bo.parseViewBox=dL;bo.renderCallByParent=ose;var tS={},nS={},C4;function ase(){return C4||(C4=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n){return n[n.length-1]}e.last=t}(nS)),nS}var rS={},E4;function sse(){return E4||(E4=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n){return Array.isArray(n)?n:Array.from(n)}e.toArray=t}(rS)),rS}var O4;function lse(){return O4||(O4=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=ase(),n=sse(),r=cE();function i(o){if(r.isArrayLike(o))return t.last(n.toArray(o))}e.last=i}(tS)),tS}var iS,P4;function use(){return P4||(P4=1,iS=lse().last),iS}var cse=use();const fse=To(cse);var dse=["valueAccessor"],hse=["data","dataKey","clockWise","id","textBreakAll"];function a1(){return a1=Object.assign?Object.assign.bind():function(e){for(var t=1;tArray.isArray(e.value)?fse(e.value):e.value;function dl(e){var{valueAccessor:t=yse}=e,n=k4(e,dse),{data:r,dataKey:i,clockWise:o,id:a,textBreakAll:l}=n,c=k4(n,hse);return!r||!r.length?null:O.createElement(_u,{className:"recharts-label-list"},r.map((d,h)=>{var m=_r(i)?t(d,h):ji(d&&d.payload,i),v=_r(a)?{}:{id:"".concat(a,"-").concat(h)};return O.createElement(bo,a1({},$r(d,!0),c,v,{parentViewBox:d.parentViewBox,value:m,textBreakAll:l,viewBox:bo.parseViewBox(_r(o)?d:T4(T4({},d),{},{clockWise:o})),key:"label-".concat(h),index:h}))}))}dl.displayName="LabelList";function xse(e,t){return e?e===!0?O.createElement(dl,{key:"labelList-implicit",data:t}):O.isValidElement(e)||O5(e)?O.createElement(dl,{key:"labelList-implicit",data:t,content:e}):typeof e=="object"?O.createElement(dl,a1({data:t},e,{key:"labelList-implicit"})):null:null}function bse(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;if(!e||!e.children&&n&&!e.label)return null;var{children:r}=e,i=aE(r,dl).map((a,l)=>O.cloneElement(a,{data:t,key:"labelList-".concat(l)}));if(!n)return i;var o=xse(e.label,t);return[o,...i]}dl.renderCallByParent=bse;var wse={radiusAxis:{},angleAxis:{}},hL=ko({name:"polarAxis",initialState:wse,reducers:{addRadiusAxis(e,t){e.radiusAxis[t.payload.id]=t.payload},removeRadiusAxis(e,t){delete e.radiusAxis[t.payload.id]},addAngleAxis(e,t){e.angleAxis[t.payload.id]=t.payload},removeAngleAxis(e,t){delete e.angleAxis[t.payload.id]}}}),{addRadiusAxis:Bhe,removeRadiusAxis:Vhe,addAngleAxis:zhe,removeAngleAxis:Uhe}=hL.actions,Sse=hL.reducer,oS={},j4;function _se(){return j4||(j4=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n){var i;if(typeof n!="object"||n==null)return!1;if(Object.getPrototypeOf(n)===null)return!0;if(Object.prototype.toString.call(n)!=="[object Object]"){const o=n[Symbol.toStringTag];return o==null||!((i=Object.getOwnPropertyDescriptor(n,Symbol.toStringTag))!=null&&i.writable)?!1:n.toString()===`[object ${o}]`}let r=n;for(;Object.getPrototypeOf(r)!==null;)r=Object.getPrototypeOf(r);return Object.getPrototypeOf(n)===r}e.isPlainObject=t}(oS)),oS}var aS,M4;function Cse(){return M4||(M4=1,aS=_se().isPlainObject),aS}var Ese=Cse();const Ose=To(Ese);function s1(){return s1=Object.assign?Object.assign.bind():function(e){for(var t=1;t{var o=n-r,a;return a="M ".concat(e,",").concat(t),a+="L ".concat(e+n,",").concat(t),a+="L ".concat(e+n-o/2,",").concat(t+i),a+="L ".concat(e+n-o/2-r,",").concat(t+i),a+="L ".concat(e,",").concat(t," Z"),a},Pse={x:0,y:0,upperWidth:0,lowerWidth:0,height:0,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},Ase=e=>{var t=xf(e,Pse),n=O.useRef(),[r,i]=O.useState(-1);O.useEffect(()=>{if(n.current&&n.current.getTotalLength)try{var _=n.current.getTotalLength();_&&i(_)}catch{}},[]);var{x:o,y:a,upperWidth:l,lowerWidth:c,height:d,className:h}=t,{animationEasing:m,animationDuration:v,animationBegin:y,isUpdateAnimationActive:w}=t;if(o!==+o||a!==+a||l!==+l||c!==+c||d!==+d||l===0&&c===0||d===0)return null;var C=Rn("recharts-trapezoid",h);return w?O.createElement(Hy,{canBegin:r>0,from:{upperWidth:0,lowerWidth:0,height:d,x:o,y:a},to:{upperWidth:l,lowerWidth:c,height:d,x:o,y:a},duration:v,animationEasing:m,isActive:w},_=>{var{upperWidth:P,lowerWidth:T,height:A,x:I,y:M}=_;return O.createElement(Hy,{canBegin:r>0,from:"0px ".concat(r===-1?1:r,"px"),to:"".concat(r,"px 0px"),attributeName:"strokeDasharray",begin:y,duration:v,easing:m},O.createElement("path",s1({},$r(t,!0),{className:C,d:I4(I,M,P,T,A),ref:n})))}):O.createElement("g",null,O.createElement("path",s1({},$r(t,!0),{className:C,d:I4(o,a,l,c,d)})))},Tse=["option","shapeType","propTransformer","activeClassName","isActive"];function kse(e,t){if(e==null)return{};var n,r,i=jse(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r{var n=Br();return(r,i)=>o=>{e==null||e(r,i,o),n(D9({activeIndex:String(i),activeDataKey:t,activeCoordinate:r.tooltipPosition}))}},mL=e=>{var t=Br();return(n,r)=>i=>{e==null||e(n,r,i),t(Vie())}},gL=(e,t)=>{var n=Br();return(r,i)=>o=>{e==null||e(r,i,o),n(zie({activeIndex:String(i),activeDataKey:t,activeCoordinate:r.tooltipPosition}))}};function Fse(e){var{fn:t,args:n}=e,r=Br(),i=Da();return O.useEffect(()=>{if(!i){var o=t(n);return r($ie(o)),()=>{r(Fie(o))}}},[t,n,r,i]),null}var Bse=()=>{};function Vse(e){var{legendPayload:t}=e,n=Br(),r=Da();return O.useEffect(()=>r?Bse:(n(AJ(t)),()=>{n(TJ(t))}),[n,r,t]),null}function zse(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"animation-",n=O.useRef(ug(t)),r=O.useRef(e);return r.current!==e&&(n.current=ug(t),r.current=e),n.current}var sS,Use=()=>{var[e]=O.useState(()=>ug("uid-"));return e},Wse=(sS=py.useId)!==null&&sS!==void 0?sS:Use;function Hse(e,t){var n=Wse();return t||(e?"".concat(e,"-").concat(n):n)}var qse=O.createContext(void 0),Kse=e=>{var{id:t,type:n,children:r}=e,i=Hse("recharts-".concat(n),t);return O.createElement(qse.Provider,{value:i},r(i))},Gse={cartesianItems:[],polarItems:[]},vL=ko({name:"graphicalItems",initialState:Gse,reducers:{addCartesianGraphicalItem(e,t){e.cartesianItems.push(t.payload)},replaceCartesianGraphicalItem(e,t){var{prev:n,next:r}=t.payload,i=cl(e).cartesianItems.indexOf(n);i>-1&&(e.cartesianItems[i]=r)},removeCartesianGraphicalItem(e,t){var n=cl(e).cartesianItems.indexOf(t.payload);n>-1&&e.cartesianItems.splice(n,1)},addPolarGraphicalItem(e,t){e.polarItems.push(t.payload)},removePolarGraphicalItem(e,t){var n=cl(e).polarItems.indexOf(t.payload);n>-1&&e.polarItems.splice(n,1)}}}),{addCartesianGraphicalItem:Yse,replaceCartesianGraphicalItem:Zse,removeCartesianGraphicalItem:Xse,addPolarGraphicalItem:Whe,removePolarGraphicalItem:Hhe}=vL.actions,Qse=vL.reducer;function Jse(e){var t=Br(),n=O.useRef(null);return O.useEffect(()=>{n.current===null?t(Yse(e)):n.current!==e&&t(Zse({prev:n.current,next:e})),n.current=e},[t,e]),O.useEffect(()=>()=>{n.current&&(t(Xse(n.current)),n.current=null)},[t]),null}function ele(){}var tle={begin:0,duration:1e3,easing:"ease",isActive:!0,canBegin:!0,onAnimationEnd:()=>{},onAnimationStart:()=>{}},L4={t:0},lS={t:1};function nle(e){var t=xf(e,tle),{isActive:n,canBegin:r,duration:i,easing:o,begin:a,onAnimationEnd:l,onAnimationStart:c,children:d}=t,h=UN("JavascriptAnimate",t.animationManager),[m,v]=O.useState(n?L4:lS),y=O.useRef(null);return O.useEffect(()=>{n||v(lS)},[n]),O.useEffect(()=>{if(!n||!r)return ele;var w=zN(L4,lS,BN(o),i,v,h.getTimeoutController()),C=()=>{y.current=w()};return h.start([c,a,C,i,l]),()=>{h.stop(),y.current&&y.current(),l()}},[n,r,i,o,a,c,l,h]),d(m.t)}var rle=ye([Vr],e=>{if(e)return{top:e.top,bottom:e.bottom,left:e.left,right:e.right}}),ile=ye([rle,Sl,_l],(e,t,n)=>{if(!(!e||t==null||n==null))return{x:e.left,y:e.top,width:Math.max(0,t-e.left-e.right),height:Math.max(0,n-e.top-e.bottom)}}),yL=()=>St(ile),ole="Invariant failed";function ale(e,t){throw new Error(ole)}var sle=["x","y"];function W_(){return W_=Object.assign?Object.assign.bind():function(e){for(var t=1;t1&&arguments[1]!==void 0?arguments[1]:0;return(r,i)=>{if(ut(t))return t;var o=ut(r)||_r(r);return o?t(r,i):(o||ale(),n)}},mle={},bL=ko({name:"errorBars",initialState:mle,reducers:{addErrorBar:(e,t)=>{var{itemId:n,errorBar:r}=t.payload;e[n]||(e[n]=[]),e[n].push(r)},removeErrorBar:(e,t)=>{var{itemId:n,errorBar:r}=t.payload;e[n]&&(e[n]=e[n].filter(i=>i.dataKey!==r.dataKey||i.direction!==r.direction))}}}),{addErrorBar:qhe,removeErrorBar:Khe}=bL.actions,gle=bL.reducer,vle=["children"];function yle(e,t){if(e==null)return{};var n,r,i=xle(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r({x:0,y:0,value:0}),errorBarOffset:0},wle=O.createContext(ble);function Sle(e){var{children:t}=e,n=yle(e,vle);return O.createElement(wle.Provider,{value:n},t)}function wL(e,t){var n,r,i=St(d=>El(d,e)),o=St(d=>Mu(d,t)),a=(n=i==null?void 0:i.allowDataOverflow)!==null&&n!==void 0?n:go.allowDataOverflow,l=(r=o==null?void 0:o.allowDataOverflow)!==null&&r!==void 0?r:vo.allowDataOverflow,c=a||l;return{needClip:c,needClipX:a,needClipY:l}}function _le(e){var{xAxisId:t,yAxisId:n,clipPathId:r}=e,i=yL(),{needClipX:o,needClipY:a,needClip:l}=wL(t,n);if(!l)return null;var{x:c,y:d,width:h,height:m}=i;return O.createElement("clipPath",{id:"clipPath-".concat(r)},O.createElement("rect",{x:o?c:c-h/2,y:a?d:d-m/2,width:o?h:h*2,height:a?m:m*2}))}var Cle=["onMouseEnter","onMouseLeave","onClick"],Ele=["value","background","tooltipPosition"],Ole=["id"],Ple=["onMouseEnter","onClick","onMouseLeave"];function Mh(){return Mh=Object.assign?Object.assign.bind():function(e){for(var t=1;t{var{dataKey:t,name:n,fill:r,legendType:i,hide:o}=e;return[{inactive:o,dataKey:t,type:i,color:r,value:IN(n,t),payload:e}]};function Ile(e){var{dataKey:t,stroke:n,strokeWidth:r,fill:i,name:o,hide:a,unit:l}=e;return{dataDefinedOnItem:void 0,positions:void 0,settings:{stroke:n,strokeWidth:r,fill:i,dataKey:t,nameKey:void 0,name:IN(o,t),hide:a,type:e.tooltipType,color:e.fill,unit:l}}}function Nle(e){var t=St(jh),{data:n,dataKey:r,background:i,allOtherBarProps:o}=e,{onMouseEnter:a,onMouseLeave:l,onClick:c}=o,d=u1(o,Cle),h=pL(a,r),m=mL(l),v=gL(c,r);if(!i||n==null)return null;var y=$r(i,!1);return O.createElement(O.Fragment,null,n.map((w,C)=>{var{value:_,background:P,tooltipPosition:T}=w,A=u1(w,Ele);if(!P)return null;var I=h(w,C),M=m(w,C),N=v(w,C),L=vi(vi(vi(vi(vi({option:i,isActive:String(C)===t},A),{},{fill:"#eee"},P),y),oE(d,w,C)),{},{onMouseEnter:I,onMouseLeave:M,onClick:N,dataKey:r,index:C,className:"recharts-bar-background-rectangle"});return O.createElement(xL,Mh({key:"background-bar-".concat(C)},L))}))}function SL(e){var{data:t,props:n,showLabels:r}=e,i=B1(n),{id:o}=i,a=u1(i,Ole),{shape:l,dataKey:c,activeBar:d}=n,h=St(jh),m=St(Z9),{onMouseEnter:v,onClick:y,onMouseLeave:w}=n,C=u1(n,Ple),_=pL(v,c),P=mL(w),T=gL(y,c);return t?O.createElement(O.Fragment,null,t.map((A,I)=>{var M=d&&String(I)===h&&(m==null||c===m),N=M?d:l,L=vi(vi(vi({},a),A),{},{isActive:M,option:N,index:I,dataKey:c});return O.createElement(_u,Mh({className:"recharts-bar-rectangle"},oE(C,A,I),{onMouseEnter:_(A,I),onMouseLeave:P(A,I),onClick:T(A,I),key:"rectangle-".concat(A==null?void 0:A.x,"-").concat(A==null?void 0:A.y,"-").concat(A==null?void 0:A.value,"-").concat(I)}),O.createElement(xL,L))}),r&&dl.renderCallByParent(n,t)):null}function Rle(e){var{props:t,previousRectanglesRef:n}=e,{data:r,layout:i,isAnimationActive:o,animationBegin:a,animationDuration:l,animationEasing:c,onAnimationEnd:d,onAnimationStart:h}=t,m=n.current,v=zse(t,"recharts-bar-"),[y,w]=O.useState(!1),C=O.useCallback(()=>{typeof d=="function"&&d(),w(!1)},[d]),_=O.useCallback(()=>{typeof h=="function"&&h(),w(!0)},[h]);return O.createElement(nle,{begin:a,duration:l,isActive:o,easing:c,onAnimationEnd:C,onAnimationStart:_,key:v},P=>{var T=P===1?r:r==null?void 0:r.map((A,I)=>{var M=m&&m[I];if(M)return vi(vi({},A),{},{x:Qd(M.x,A.x,P),y:Qd(M.y,A.y,P),width:Qd(M.width,A.width,P),height:Qd(M.height,A.height,P)});if(i==="horizontal"){var N=Qd(0,A.height,P);return vi(vi({},A),{},{y:A.y+A.height-N,height:N})}var L=Qd(0,A.width,P);return vi(vi({},A),{},{width:L})});return P>0&&(n.current=T??null),T==null?null:O.createElement(_u,null,O.createElement(SL,{props:t,data:T,showLabels:!y}))})}function Lle(e){var{data:t,isAnimationActive:n}=e,r=O.useRef(null);return n&&t&&t.length&&(r.current==null||r.current!==t)?O.createElement(Rle,{previousRectanglesRef:r,props:e}):O.createElement(SL,{props:e,data:t,showLabels:!0})}var _L=0,Dle=(e,t)=>{var n=Array.isArray(e.value)?e.value[1]:e.value;return{x:e.x,y:e.y,value:n,errorVal:ji(e,t)}};class $le extends O.PureComponent{render(){var{hide:t,data:n,dataKey:r,className:i,xAxisId:o,yAxisId:a,needClip:l,background:c,id:d}=this.props;if(t)return null;var h=Rn("recharts-bar",i),m=d;return O.createElement(_u,{className:h,id:d},l&&O.createElement("defs",null,O.createElement(_le,{clipPathId:m,xAxisId:o,yAxisId:a})),O.createElement(_u,{className:"recharts-bar-rectangles",clipPath:l?"url(#clipPath-".concat(m,")"):void 0},O.createElement(Nle,{data:n,dataKey:r,background:c,allOtherBarProps:this.props}),O.createElement(Lle,this.props)),this.props.children)}}var Fle={activeBar:!1,animationBegin:0,animationDuration:400,animationEasing:"ease",hide:!1,isAnimationActive:!Kg.isSsr,legendType:"rect",minPointSize:_L,xAxisId:0,yAxisId:0};function Ble(e){var{xAxisId:t,yAxisId:n,hide:r,legendType:i,minPointSize:o,activeBar:a,animationBegin:l,animationDuration:c,animationEasing:d,isAnimationActive:h}=e,{needClip:m}=wL(t,n),v=EE(),y=Da(),w=aE(e.children,C5),C=St(T=>hue(T,t,n,y,e.id,w));if(v!=="vertical"&&v!=="horizontal")return null;var _,P=C==null?void 0:C[0];return P==null||P.height==null||P.width==null?_=0:_=v==="vertical"?P.height/2:P.width/2,O.createElement(Sle,{xAxisId:t,yAxisId:n,data:C,dataPointFormatter:Dle,errorBarOffset:_},O.createElement($le,Mh({},e,{layout:v,needClip:m,data:C,xAxisId:t,yAxisId:n,hide:r,legendType:i,minPointSize:o,activeBar:a,animationBegin:l,animationDuration:c,animationEasing:d,isAnimationActive:h})))}function Vle(e){var{layout:t,barSettings:{dataKey:n,minPointSize:r},pos:i,bandSize:o,xAxis:a,yAxis:l,xAxisTicks:c,yAxisTicks:d,stackedData:h,displayedData:m,offset:v,cells:y}=e,w=t==="horizontal"?l:a,C=h?w.scale.domain():null,_=sJ({numericAxis:w});return m.map((P,T)=>{var A,I,M,N,L,F;h?A=tJ(h[T],C):(A=ji(P,n),Array.isArray(A)||(A=[_,A]));var B=ple(r,_L)(A[1],T);if(t==="horizontal"){var U,[W,G]=[l.scale(A[0]),l.scale(A[1])];I=kT({axis:a,ticks:c,bandSize:o,offset:i.offset,entry:P,index:T}),M=(U=G??W)!==null&&U!==void 0?U:void 0,N=i.size;var ie=W-G;if(L=oa(ie)?0:ie,F={x:I,y:v.top,width:N,height:v.height},Math.abs(B)>0&&Math.abs(L)0&&Math.abs(N)O.createElement(O.Fragment,null,O.createElement(Vse,{legendPayload:Mle(t)}),O.createElement(Fse,{fn:Ile,args:t}),O.createElement(Jse,{type:"bar",id:r,data:void 0,xAxisId:t.xAxisId,yAxisId:t.yAxisId,zAxisId:0,dataKey:t.dataKey,stackId:aJ(t.stackId),hide:t.hide,barSize:t.barSize,minPointSize:t.minPointSize,maxBarSize:t.maxBarSize,isPanorama:n}),O.createElement(Ble,Mh({},t,{id:r}))))}c1.displayName="Bar";function F4(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function ty(e){for(var t=1;tt,qle=(e,t,n)=>n,Kle=(e,t,n,r)=>r,Gle=(e,t,n,r,i)=>i,i0=ye([s5,Gle],(e,t)=>e.filter(n=>n.type==="bar").find(n=>n.id===t)),Yle=ye([i0],e=>e==null?void 0:e.maxBarSize),Zle=(e,t,n,r,i,o)=>o,B4=(e,t,n)=>{var r=n??e;if(!_r(r))return Na(r,t,0)},Xle=ye([gn,s5,Hle,qle,Kle],(e,t,n,r,i)=>t.filter(o=>e==="horizontal"?o.xAxisId===n:o.yAxisId===r).filter(o=>o.isPanorama===i).filter(o=>o.hide===!1).filter(o=>o.type==="bar")),Qle=(e,t,n,r)=>{var i=gn(e);return i==="horizontal"?$_(e,"yAxis",n,r):$_(e,"xAxis",t,r)},Jle=(e,t,n)=>{var r=gn(e);return r==="horizontal"?Gk(e,"xAxis",t):Gk(e,"yAxis",n)},eue=(e,t,n)=>{var r={},i=e.filter(cx),o=e.filter(d=>d.stackId==null),a=i.reduce((d,h)=>(d[h.stackId]||(d[h.stackId]=[]),d[h.stackId].push(h),d),r),l=Object.entries(a).map(d=>{var[h,m]=d,v=m.map(w=>w.dataKey),y=B4(t,n,m[0].barSize);return{stackId:h,dataKeys:v,barSize:y}}),c=o.map(d=>{var h=[d.dataKey].filter(v=>v!=null),m=B4(t,n,d.barSize);return{stackId:void 0,dataKeys:h,barSize:m}});return[...l,...c]},tue=ye([Xle,$re,Jle],eue),nue=(e,t,n,r,i)=>{var o,a,l=i0(e,t,n,r,i);if(l!=null){var c=gn(e),d=UR(e),{maxBarSize:h}=l,m=_r(h)?d:h,v,y;return c==="horizontal"?(v=kh(e,"xAxis",t,r),y=Th(e,"xAxis",t,r)):(v=kh(e,"yAxis",n,r),y=Th(e,"yAxis",n,r)),(o=(a=wE(v,y,!0))!==null&&a!==void 0?a:m)!==null&&o!==void 0?o:0}},CL=(e,t,n,r)=>{var i=gn(e),o,a;return i==="horizontal"?(o=kh(e,"xAxis",t,r),a=Th(e,"xAxis",t,r)):(o=kh(e,"yAxis",n,r),a=Th(e,"yAxis",n,r)),wE(o,a)};function rue(e,t,n,r,i){var o=r.length;if(!(o<1)){var a=Na(e,n,0,!0),l,c=[];if(Ao(r[0].barSize)){var d=!1,h=n/o,m=r.reduce((P,T)=>P+(T.barSize||0),0);m+=(o-1)*a,m>=n&&(m-=(o-1)*a,a=0),m>=n&&h>0&&(d=!0,h*=.9,m=o*h);var v=(n-m)/2>>0,y={offset:v-a,size:0};l=r.reduce((P,T)=>{var A,I={stackId:T.stackId,dataKeys:T.dataKeys,position:{offset:y.offset+y.size+a,size:d?h:(A=T.barSize)!==null&&A!==void 0?A:0}},M=[...P,I];return y=M[M.length-1].position,M},c)}else{var w=Na(t,n,0,!0);n-2*w-(o-1)*a<=0&&(a=0);var C=(n-2*w-(o-1)*a)/o;C>1&&(C>>=0);var _=Ao(i)?Math.min(C,i):C;l=r.reduce((P,T,A)=>[...P,{stackId:T.stackId,dataKeys:T.dataKeys,position:{offset:w+(C+a)*A+(C-_)/2,size:_}}],c)}return l}}var iue=(e,t,n,r,i,o,a)=>{var l=_r(a)?t:a,c=rue(n,r,i!==o?i:o,e,l);return i!==o&&c!=null&&(c=c.map(d=>ty(ty({},d),{},{position:ty(ty({},d.position),{},{offset:d.position.offset-i/2})}))),c},oue=ye([tue,UR,Dre,WR,nue,CL,Yle],iue),aue=(e,t,n,r)=>kh(e,"xAxis",t,r),sue=(e,t,n,r)=>kh(e,"yAxis",n,r),lue=(e,t,n,r)=>Th(e,"xAxis",t,r),uue=(e,t,n,r)=>Th(e,"yAxis",n,r),cue=ye([oue,i0],(e,t)=>{if(!(e==null||t==null)){var n=e.find(r=>r.stackId===t.stackId&&t.dataKey!=null&&r.dataKeys.includes(t.dataKey));if(n!=null)return n.position}}),fue=(e,t)=>{var n=o5(t);if(!(!e||n==null||t==null)){var{stackId:r}=t;if(r!=null){var i=e[r];if(i){var{stackedData:o}=i;if(o)return o.find(a=>a.key===n)}}}},due=ye([Qle,i0],fue),hue=ye([Vr,aue,sue,lue,uue,cue,gn,ZE,CL,due,i0,Zle],(e,t,n,r,i,o,a,l,c,d,h,m)=>{var{chartData:v,dataStartIndex:y,dataEndIndex:w}=l;if(!(h==null||o==null||a!=="horizontal"&&a!=="vertical"||t==null||n==null||r==null||i==null||c==null)){var{data:C}=h,_;if(C!=null&&C.length>0?_=C:_=v==null?void 0:v.slice(y,w+1),_!=null)return Vle({layout:a,barSettings:h,pos:o,bandSize:c,xAxis:t,yAxis:n,xAxisTicks:r,yAxisTicks:i,stackedData:d,displayedData:_,offset:e,cells:m})}}),pue=e=>{var{chartData:t}=e,n=Br(),r=Da();return O.useEffect(()=>r?()=>{}:(n(r4(t)),()=>{n(r4(void 0))}),[t,n,r]),null},V4={x:0,y:0,width:0,height:0,padding:{top:0,right:0,bottom:0,left:0}},EL=ko({name:"brush",initialState:V4,reducers:{setBrushSettings(e,t){return t.payload==null?V4:t.payload}}}),{setBrushSettings:Ghe}=EL.actions,mue=EL.reducer;function gue(e,t,n){return(t=vue(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function vue(e){var t=yue(e,"string");return typeof t=="symbol"?t:t+""}function yue(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}class P5{static create(t){return new P5(t)}constructor(t){this.scale=t}get domain(){return this.scale.domain}get range(){return this.scale.range}get rangeMin(){return this.range()[0]}get rangeMax(){return this.range()[1]}get bandwidth(){return this.scale.bandwidth}apply(t){var{bandAware:n,position:r}=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(t!==void 0){if(r)switch(r){case"start":return this.scale(t);case"middle":{var i=this.bandwidth?this.bandwidth()/2:0;return this.scale(t)+i}case"end":{var o=this.bandwidth?this.bandwidth():0;return this.scale(t)+o}default:return this.scale(t)}if(n){var a=this.bandwidth?this.bandwidth()/2:0;return this.scale(t)+a}return this.scale(t)}}isInRange(t){var n=this.range(),r=n[0],i=n[n.length-1];return r<=i?t>=r&&t<=i:t>=i&&t<=r}}gue(P5,"EPS",1e-4);function xue(e){return(e%180+180)%180}var bue=function(t){var{width:n,height:r}=t,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,o=xue(i),a=o*Math.PI/180,l=Math.atan(r/n),c=a>l&&a{e.dots.push(t.payload)},removeDot:(e,t)=>{var n=cl(e).dots.findIndex(r=>r===t.payload);n!==-1&&e.dots.splice(n,1)},addArea:(e,t)=>{e.areas.push(t.payload)},removeArea:(e,t)=>{var n=cl(e).areas.findIndex(r=>r===t.payload);n!==-1&&e.areas.splice(n,1)},addLine:(e,t)=>{e.lines.push(t.payload)},removeLine:(e,t)=>{var n=cl(e).lines.findIndex(r=>r===t.payload);n!==-1&&e.lines.splice(n,1)}}}),{addDot:Yhe,removeDot:Zhe,addArea:Xhe,removeArea:Qhe,addLine:Jhe,removeLine:epe}=OL.actions,Sue=OL.reducer,_ue=O.createContext(void 0),Cue=e=>{var{children:t}=e,[n]=O.useState("".concat(ug("recharts"),"-clip")),r=yL();if(r==null)return null;var{x:i,y:o,width:a,height:l}=r;return O.createElement(_ue.Provider,{value:n},O.createElement("defs",null,O.createElement("clipPath",{id:n},O.createElement("rect",{x:i,y:o,height:l,width:a}))),t)};function uS(e,t){for(var n in e)if({}.hasOwnProperty.call(e,n)&&(!{}.hasOwnProperty.call(t,n)||e[n]!==t[n]))return!1;for(var r in t)if({}.hasOwnProperty.call(t,r)&&!{}.hasOwnProperty.call(e,r))return!1;return!0}function PL(e,t,n){if(t<1)return[];if(t===1&&n===void 0)return e;for(var r=[],i=0;ie*i)return!1;var o=n();return e*(t-e*o/2-r)>=0&&e*(t+e*o/2-i)<=0}function Pue(e,t){return PL(e,t+1)}function Aue(e,t,n,r,i){for(var o=(r||[]).slice(),{start:a,end:l}=t,c=0,d=1,h=a,m=function(){var w=r==null?void 0:r[c];if(w===void 0)return{v:PL(r,d)};var C=c,_,P=()=>(_===void 0&&(_=n(w,C)),_),T=w.coordinate,A=c===0||f1(e,T,P,h,l);A||(c=0,h=a,d+=1),A&&(h=T+e*(P()/2+i),c+=d)},v;d<=o.length;)if(v=m(),v)return v.v;return[]}function z4(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function gi(e){for(var t=1;t(w===void 0&&(w=n(y,v)),w);if(v===a-1){var _=e*(y.coordinate+e*C()/2-c);o[v]=y=gi(gi({},y),{},{tickCoord:_>0?y.coordinate-_*e:y.coordinate})}else o[v]=y=gi(gi({},y),{},{tickCoord:y.coordinate});var P=f1(e,y.tickCoord,C,l,c);P&&(c=y.tickCoord-e*(C()/2+i),o[v]=gi(gi({},y),{},{isShow:!0}))},h=a-1;h>=0;h--)d(h);return o}function Iue(e,t,n,r,i,o){var a=(r||[]).slice(),l=a.length,{start:c,end:d}=t;if(o){var h=r[l-1],m=n(h,l-1),v=e*(h.coordinate+e*m/2-d);a[l-1]=h=gi(gi({},h),{},{tickCoord:v>0?h.coordinate-v*e:h.coordinate});var y=f1(e,h.tickCoord,()=>m,c,d);y&&(d=h.tickCoord-e*(m/2+i),a[l-1]=gi(gi({},h),{},{isShow:!0}))}for(var w=o?l-1:l,C=function(T){var A=a[T],I,M=()=>(I===void 0&&(I=n(A,T)),I);if(T===0){var N=e*(A.coordinate-e*M()/2-c);a[T]=A=gi(gi({},A),{},{tickCoord:N<0?A.coordinate-N*e:A.coordinate})}else a[T]=A=gi(gi({},A),{},{tickCoord:A.coordinate});var L=f1(e,A.tickCoord,M,c,d);L&&(c=A.tickCoord+e*(M()/2+i),a[T]=gi(gi({},A),{},{isShow:!0}))},_=0;_{var M=typeof d=="function"?d(A.value,I):A.value;return w==="width"?Eue(Gm(M,{fontSize:t,letterSpacing:n}),C,m):Gm(M,{fontSize:t,letterSpacing:n})[w]},P=i.length>=2?So(i[1].coordinate-i[0].coordinate):1,T=Oue(o,P,w);return c==="equidistantPreserveStart"?Aue(P,T,_,i,a):(c==="preserveStart"||c==="preserveStartEnd"?y=Iue(P,T,_,i,a,c==="preserveStartEnd"):y=Mue(P,T,_,i,a),y.filter(A=>A.isShow))}var Rue=["viewBox"],Lue=["viewBox"];function fh(){return fh=Object.assign?Object.assign.bind():function(e){for(var t=1;t2&&arguments[2]!==void 0?arguments[2]:[],{tickLine:i,stroke:o,tick:a,tickFormatter:l,unit:c,padding:d}=this.props,h=Nue(wr(wr({},this.props),{},{ticks:r}),t,n),m=this.getTickTextAnchor(),v=this.getTickVerticalAnchor(),y=B1(this.props),w=$r(a,!1),C=wr(wr({},y),{},{fill:"none"},$r(i,!1)),_=h.map((P,T)=>{var{line:A,tick:I}=this.getTickLineCoord(P),M=wr(wr(wr(wr({textAnchor:m,verticalAnchor:v},y),{},{stroke:"none",fill:o},w),I),{},{index:T,payload:P,visibleTicksCount:h.length,tickFormatter:l,padding:d});return O.createElement(_u,fh({className:"recharts-cartesian-axis-tick",key:"tick-".concat(P.value,"-").concat(P.coordinate,"-").concat(P.tickCoord)},oE(this.props,P,T)),i&&O.createElement("line",fh({},C,A,{className:Rn("recharts-cartesian-axis-tick-line",uf(i,"className"))})),a&&Xh.renderTickItem(a,M,"".concat(typeof l=="function"?l(P.value,T):P.value).concat(c||"")))});return _.length>0?O.createElement("g",{className:"recharts-cartesian-axis-ticks"},_):null}render(){var{axisLine:t,width:n,height:r,className:i,hide:o}=this.props;if(o)return null;var{ticks:a}=this.props;return n!=null&&n<=0||r!=null&&r<=0?null:O.createElement(_u,{className:Rn("recharts-cartesian-axis",i),ref:l=>{if(l){var c=l.getElementsByClassName("recharts-cartesian-axis-tick-value");this.tickRefs.current=Array.from(c);var d=c[0];if(d){var h=window.getComputedStyle(d).fontSize,m=window.getComputedStyle(d).letterSpacing;(h!==this.state.fontSize||m!==this.state.letterSpacing)&&this.setState({fontSize:window.getComputedStyle(d).fontSize,letterSpacing:window.getComputedStyle(d).letterSpacing})}}}},t&&this.renderAxisLine(),this.renderTicks(this.state.fontSize,this.state.letterSpacing,a),bo.renderCallByParent(this.props))}}A5(Xh,"displayName","CartesianAxis");A5(Xh,"defaultProps",{x:0,y:0,width:0,height:0,viewBox:{x:0,y:0,width:0,height:0},orientation:"bottom",ticks:[],stroke:"#666",tickLine:!0,axisLine:!0,tick:!0,mirror:!1,minTickGap:5,tickSize:6,tickMargin:2,interval:"preserveEnd"});function H4(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function q4(e){for(var t=1;t{var{children:o}=e,a=kL(e,Zue);return a},[e]),r=St(o=>El(o,n.id)),i=n===r;return O.useEffect(()=>(t(Wue(n)),()=>{t(Hue(n))}),[n,t]),i?e.children:null}var nce=e=>{var{xAxisId:t,className:n}=e,r=St(RN),i=Da(),o="xAxis",a=St(y=>Gh(y,o,t,i)),l=St(y=>j9(y,o,t,i)),c=St(y=>P9(y,t)),d=St(y=>Tie(y,t));if(c==null||d==null)return null;var{dangerouslySetInnerHTML:h,ticks:m}=e,v=kL(e,Xue);return O.createElement(Xh,H_({},v,{scale:a,x:d.x,y:d.y,width:c.width,height:c.height,className:Rn("recharts-".concat(o," ").concat(o),n),viewBox:r,ticks:l}))},rce=e=>{var t,n,r,i,o;return O.createElement(tce,{interval:(t=e.interval)!==null&&t!==void 0?t:"preserveEnd",id:e.xAxisId,scale:e.scale,type:e.type,padding:e.padding,allowDataOverflow:e.allowDataOverflow,domain:e.domain,dataKey:e.dataKey,allowDuplicatedCategory:e.allowDuplicatedCategory,allowDecimals:e.allowDecimals,tickCount:e.tickCount,includeHidden:(n=e.includeHidden)!==null&&n!==void 0?n:!1,reversed:e.reversed,ticks:e.ticks,height:e.height,orientation:e.orientation,mirror:e.mirror,hide:e.hide,unit:e.unit,name:e.name,angle:(r=e.angle)!==null&&r!==void 0?r:0,minTickGap:(i=e.minTickGap)!==null&&i!==void 0?i:5,tick:(o=e.tick)!==null&&o!==void 0?o:!0,tickFormatter:e.tickFormatter},O.createElement(nce,e))};class gx extends O.Component{render(){return O.createElement(rce,this.props)}}TL(gx,"displayName","XAxis");TL(gx,"defaultProps",{allowDataOverflow:go.allowDataOverflow,allowDecimals:go.allowDecimals,allowDuplicatedCategory:go.allowDuplicatedCategory,height:go.height,hide:!1,mirror:go.mirror,orientation:go.orientation,padding:go.padding,reversed:go.reversed,scale:go.scale,tickCount:go.tickCount,type:go.type,xAxisId:0});var ice=e=>{var{ticks:t,label:n,labelGapWithTick:r=5,tickSize:i=0,tickMargin:o=0}=e,a=0;if(t){t.forEach(h=>{if(h){var m=h.getBoundingClientRect();m.width>a&&(a=m.width)}});var l=n?n.getBoundingClientRect().width:0,c=i+o,d=a+c+l+(n?r:0);return Math.round(d)}return 0},oce=["dangerouslySetInnerHTML","ticks"];function jL(e,t,n){return(t=ace(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ace(e){var t=sce(e,"string");return typeof t=="symbol"?t:t+""}function sce(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function q_(){return q_=Object.assign?Object.assign.bind():function(e){for(var t=1;t(t(que(e)),()=>{t(Kue(e))}),[e,t]),null}var fce=e=>{var t,{yAxisId:n,className:r,width:i,label:o}=e,a=O.useRef(null),l=O.useRef(null),c=St(RN),d=Da(),h=Br(),m="yAxis",v=St(A=>Gh(A,m,n,d)),y=St(A=>A9(A,n)),w=St(A=>kie(A,n)),C=St(A=>j9(A,m,n,d));if(O.useLayoutEffect(()=>{var A;if(!(i!=="auto"||!y||O5(o)||O.isValidElement(o))){var I=a.current,M=I==null||(A=I.tickRefs)===null||A===void 0?void 0:A.current,{tickSize:N,tickMargin:L}=I.props,F=ice({ticks:M,label:l.current,labelGapWithTick:5,tickSize:N,tickMargin:L});Math.round(y.width)!==Math.round(F)&&h(Gue({id:n,width:F}))}},[a,a==null||(t=a.current)===null||t===void 0||(t=t.tickRefs)===null||t===void 0?void 0:t.current,y==null?void 0:y.width,y,h,o,n,i]),y==null||w==null)return null;var{dangerouslySetInnerHTML:_,ticks:P}=e,T=lce(e,oce);return O.createElement(Xh,q_({},T,{ref:a,labelRef:l,scale:v,x:w.x,y:w.y,width:y.width,height:y.height,className:Rn("recharts-".concat(m," ").concat(m),r),viewBox:c,ticks:C}))},dce=e=>{var t,n,r,i,o;return O.createElement(O.Fragment,null,O.createElement(cce,{interval:(t=e.interval)!==null&&t!==void 0?t:"preserveEnd",id:e.yAxisId,scale:e.scale,type:e.type,domain:e.domain,allowDataOverflow:e.allowDataOverflow,dataKey:e.dataKey,allowDuplicatedCategory:e.allowDuplicatedCategory,allowDecimals:e.allowDecimals,tickCount:e.tickCount,padding:e.padding,includeHidden:(n=e.includeHidden)!==null&&n!==void 0?n:!1,reversed:e.reversed,ticks:e.ticks,width:e.width,orientation:e.orientation,mirror:e.mirror,hide:e.hide,unit:e.unit,name:e.name,angle:(r=e.angle)!==null&&r!==void 0?r:0,minTickGap:(i=e.minTickGap)!==null&&i!==void 0?i:5,tick:(o=e.tick)!==null&&o!==void 0?o:!0,tickFormatter:e.tickFormatter}),O.createElement(fce,e))},hce={allowDataOverflow:vo.allowDataOverflow,allowDecimals:vo.allowDecimals,allowDuplicatedCategory:vo.allowDuplicatedCategory,hide:!1,mirror:vo.mirror,orientation:vo.orientation,padding:vo.padding,reversed:vo.reversed,scale:vo.scale,tickCount:vo.tickCount,type:vo.type,width:vo.width,yAxisId:0};class vx extends O.Component{render(){return O.createElement(dce,this.props)}}jL(vx,"displayName","YAxis");jL(vx,"defaultProps",hce);var cS={exports:{}},fS={};/** * @license React * use-sync-external-store-with-selector.production.js * * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */var K4;function pce(){if(K4)return fS;K4=1;var e=Lh();function t(c,d){return c===d&&(c!==0||1/c===1/d)||c!==c&&d!==d}var n=typeof Object.is=="function"?Object.is:t,r=e.useSyncExternalStore,i=e.useRef,o=e.useEffect,a=e.useMemo,l=e.useDebugValue;return fS.useSyncExternalStoreWithSelector=function(c,d,h,m,v){var y=i(null);if(y.current===null){var w={hasValue:!1,value:null};y.current=w}else w=y.current;y=a(function(){function _(M){if(!P){if(P=!0,T=M,M=m(M),v!==void 0&&w.hasValue){var N=w.value;if(v(N,M))return A=N}return A=M}if(N=A,n(T,M))return N;var L=m(M);return v!==void 0&&v(N,L)?(T=M,N):(T=M,A=L)}var P=!1,T,A,I=h===void 0?null:h;return[function(){return _(d())},I===null?void 0:function(){return _(I())}]},[d,h,m,v]);var C=r(c,y[0],y[1]);return o(function(){w.hasValue=!0,w.value=C},[C]),l(C),C},fS}var G4;function mce(){return G4||(G4=1,cS.exports=pce()),cS.exports}mce();function gce(e){e()}function vce(){let e=null,t=null;return{clear(){e=null,t=null},notify(){gce(()=>{let n=e;for(;n;)n.callback(),n=n.next})},get(){const n=[];let r=e;for(;r;)n.push(r),r=r.next;return n},subscribe(n){let r=!0;const i=t={callback:n,next:null,prev:t};return i.prev?i.prev.next=i:e=i,function(){!r||e===null||(r=!1,i.next?i.next.prev=i.prev:t=i.prev,i.prev?i.prev.next=i.next:e=i.next)}}}}var Y4={notify(){},get:()=>[]};function yce(e,t){let n,r=Y4,i=0,o=!1;function a(C){h();const _=r.subscribe(C);let P=!1;return()=>{P||(P=!0,_(),m())}}function l(){r.notify()}function c(){w.onStateChange&&w.onStateChange()}function d(){return o}function h(){i++,n||(n=e.subscribe(c),r=vce())}function m(){i--,n&&i===0&&(n(),n=void 0,r.clear(),r=Y4)}function v(){o||(o=!0,h())}function y(){o&&(o=!1,m())}const w={addNestedSub:a,notifyNestedSubs:l,handleChangeWrapper:c,isSubscribed:d,trySubscribe:v,tryUnsubscribe:y,getListeners:()=>r};return w}var xce=()=>typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",bce=xce(),wce=()=>typeof navigator<"u"&&navigator.product==="ReactNative",Sce=wce(),_ce=()=>bce||Sce?O.useLayoutEffect:O.useEffect,Cce=_ce(),dS=Symbol.for("react-redux-context"),hS=typeof globalThis<"u"?globalThis:{};function Ece(){if(!O.createContext)return{};const e=hS[dS]??(hS[dS]=new Map);let t=e.get(O.createContext);return t||(t=O.createContext(null),e.set(O.createContext,t)),t}var Oce=Ece();function Pce(e){const{children:t,context:n,serverState:r,store:i}=e,o=O.useMemo(()=>{const c=yce(i);return{store:i,subscription:c,getServerState:r?()=>r:void 0}},[i,r]),a=O.useMemo(()=>i.getState(),[i]);Cce(()=>{const{subscription:c}=o;return c.onStateChange=c.notifyNestedSubs,c.trySubscribe(),a!==i.getState()&&c.notifyNestedSubs(),()=>{c.tryUnsubscribe(),c.onStateChange=void 0}},[o,a]);const l=n||Oce;return O.createElement(l.Provider,{value:o},t)}var Ace=Pce,Tce=(e,t)=>t,T5=ye([Tce,gn,ZR,Er,q9,Ol,Noe,Vr],Foe),k5=e=>{var t=e.currentTarget.getBoundingClientRect(),n=t.width/e.currentTarget.offsetWidth,r=t.height/e.currentTarget.offsetHeight;return{chartX:Math.round((e.clientX-t.left)/n),chartY:Math.round((e.clientY-t.top)/r)}},ML=aa("mouseClick"),IL=qg();IL.startListening({actionCreator:ML,effect:(e,t)=>{var n=e.payload,r=T5(t.getState(),k5(n));(r==null?void 0:r.activeIndex)!=null&&t.dispatch(Uie({activeIndex:r.activeIndex,activeDataKey:void 0,activeCoordinate:r.activeCoordinate}))}});var K_=aa("mouseMove"),NL=qg();NL.startListening({actionCreator:K_,effect:(e,t)=>{var n=e.payload,r=t.getState(),i=m5(r,r.tooltip.settings.shared),o=T5(r,k5(n));i==="axis"&&((o==null?void 0:o.activeIndex)!=null?t.dispatch(F9({activeIndex:o.activeIndex,activeDataKey:void 0,activeCoordinate:o.activeCoordinate})):t.dispatch($9()))}});function kce(e,t){return t instanceof HTMLElement?"HTMLElement <".concat(t.tagName,' class="').concat(t.className,'">'):t===window?"global.window":t}var Z4={accessibilityLayer:!0,barCategoryGap:"10%",barGap:4,barSize:void 0,className:void 0,maxBarSize:void 0,stackOffset:"none",syncId:void 0,syncMethod:"index"},RL=ko({name:"rootProps",initialState:Z4,reducers:{updateOptions:(e,t)=>{var n;e.accessibilityLayer=t.payload.accessibilityLayer,e.barCategoryGap=t.payload.barCategoryGap,e.barGap=(n=t.payload.barGap)!==null&&n!==void 0?n:Z4.barGap,e.barSize=t.payload.barSize,e.maxBarSize=t.payload.maxBarSize,e.stackOffset=t.payload.stackOffset,e.syncId=t.payload.syncId,e.syncMethod=t.payload.syncMethod,e.className=t.payload.className}}}),jce=RL.reducer,{updateOptions:Mce}=RL.actions,LL=ko({name:"polarOptions",initialState:null,reducers:{updatePolarOptions:(e,t)=>t.payload}}),{updatePolarOptions:rpe}=LL.actions,Ice=LL.reducer,DL=aa("keyDown"),$L=aa("focus"),j5=qg();j5.startListening({actionCreator:DL,effect:(e,t)=>{var n=t.getState(),r=n.rootProps.accessibilityLayer!==!1;if(r){var{keyboardInteraction:i}=n.tooltip,o=e.payload;if(!(o!=="ArrowRight"&&o!=="ArrowLeft"&&o!=="Enter")){var a=Number(g5(i,Zh(n))),l=Ol(n);if(o==="Enter"){var c=o1(n,"axis","hover",String(i.index));t.dispatch(B_({active:!i.active,activeIndex:i.index,activeDataKey:i.dataKey,activeCoordinate:c}));return}var d=Nie(n),h=d==="left-to-right"?1:-1,m=o==="ArrowRight"?1:-1,v=a+m*h;if(!(l==null||v>=l.length||v<0)){var y=o1(n,"axis","hover",String(v));t.dispatch(B_({active:!0,activeIndex:v.toString(),activeDataKey:void 0,activeCoordinate:y}))}}}}});j5.startListening({actionCreator:$L,effect:(e,t)=>{var n=t.getState(),r=n.rootProps.accessibilityLayer!==!1;if(r){var{keyboardInteraction:i}=n.tooltip;if(!i.active&&i.index==null){var o="0",a=o1(n,"axis","hover",String(o));t.dispatch(B_({activeDataKey:void 0,active:!0,activeIndex:o,activeCoordinate:a}))}}}});var Jo=aa("externalEvent"),FL=qg();FL.startListening({actionCreator:Jo,effect:(e,t)=>{if(e.payload.handler!=null){var n=t.getState(),r={activeCoordinate:Eoe(n),activeDataKey:Z9(n),activeIndex:jh(n),activeLabel:Y9(n),activeTooltipIndex:jh(n),isTooltipActive:Ooe(n)};e.payload.handler(r,e.payload.reactEvent)}}});var Nce=ye([Yh],e=>e.tooltipItemPayloads),Rce=ye([Nce,n0,(e,t,n)=>t,(e,t,n)=>n],(e,t,n,r)=>{var i=e.find(l=>l.settings.dataKey===r);if(i!=null){var{positions:o}=i;if(o!=null){var a=t(o,n);return a}}}),BL=aa("touchMove"),VL=qg();VL.startListening({actionCreator:BL,effect:(e,t)=>{var n=e.payload,r=t.getState(),i=m5(r,r.tooltip.settings.shared);if(i==="axis"){var o=T5(r,k5({clientX:n.touches[0].clientX,clientY:n.touches[0].clientY,currentTarget:n.currentTarget}));(o==null?void 0:o.activeIndex)!=null&&t.dispatch(F9({activeIndex:o.activeIndex,activeDataKey:void 0,activeCoordinate:o.activeCoordinate}))}else if(i==="item"){var a,l=n.touches[0],c=document.elementFromPoint(l.clientX,l.clientY);if(!c||!c.getAttribute)return;var d=c.getAttribute(mJ),h=(a=c.getAttribute(gJ))!==null&&a!==void 0?a:void 0,m=Rce(t.getState(),d,h);t.dispatch(D9({activeDataKey:h,activeIndex:d,activeCoordinate:m}))}}});var Lce=uN({brush:mue,cartesianAxis:Yue,chartData:nae,errorBars:gle,graphicalItems:Qse,layout:$Q,legend:kJ,options:Xoe,polarAxis:Sse,polarOptions:Ice,referenceElements:Sue,rootProps:jce,tooltip:Wie}),Dce=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"Chart";return uQ({reducer:Lce,preloadedState:t,middleware:r=>r({serializableCheck:!1}).concat([IL.middleware,NL.middleware,j5.middleware,FL.middleware,VL.middleware]),devTools:{serialize:{replacer:kce},name:"recharts-".concat(n)}})};function $ce(e){var{preloadedState:t,children:n,reduxStoreName:r}=e,i=Da(),o=O.useRef(null);if(i)return n;o.current==null&&(o.current=Dce(t,r));var a=mE;return O.createElement(Ace,{context:a,store:o.current},n)}function Fce(e){var{layout:t,width:n,height:r,margin:i}=e,o=Br(),a=Da();return O.useEffect(()=>{a||(o(RQ(t)),o(LQ({width:n,height:r})),o(NQ(i)))},[o,a,t,n,r,i]),null}function Bce(e){var t=Br();return O.useEffect(()=>{t(Mce(e))},[t,e]),null}var Vce=["children"];function zce(e,t){if(e==null)return{};var n,r,i=Uce(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r{var n=EJ(),r=OJ(),i=DN();if(!zy(n)||!zy(r))return null;var{children:o,otherAttributes:a,title:l,desc:c}=e,d,h;return typeof a.tabIndex=="number"?d=a.tabIndex:d=i?0:void 0,typeof a.role=="string"?h=a.role:h=i?"application":void 0,O.createElement(II,d1({},a,{title:l,desc:c,role:h,tabIndex:d,width:n,height:r,style:Wce,ref:t}),o)}),qce=e=>{var{children:t}=e,n=St(Q1);if(!n)return null;var{width:r,height:i,y:o,x:a}=n;return O.createElement(II,{width:r,height:i,x:a,y:o},t)},X4=O.forwardRef((e,t)=>{var{children:n}=e,r=zce(e,Vce),i=Da();return i?O.createElement(qce,null,n):O.createElement(Hce,d1({ref:t},r),n)});function Kce(){var e=Br(),[t,n]=O.useState(null),r=St(pJ);return O.useEffect(()=>{if(t!=null){var i=t.getBoundingClientRect(),o=i.width/t.offsetWidth;Ao(o)&&o!==r&&e(DQ(o))}},[t,e,r]),n}function Q4(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Gce(e){for(var t=1;t{var{children:n,className:r,height:i,onClick:o,onContextMenu:a,onDoubleClick:l,onMouseDown:c,onMouseEnter:d,onMouseLeave:h,onMouseMove:m,onMouseUp:v,onTouchEnd:y,onTouchMove:w,onTouchStart:C,style:_,width:P}=e,T=Br(),[A,I]=O.useState(null),[M,N]=O.useState(null);oae();var L=Kce(),F=O.useCallback(J=>{L(J),typeof t=="function"&&t(J),I(J),N(J)},[L,t,I,N]),B=O.useCallback(J=>{T(ML(J)),T(Jo({handler:o,reactEvent:J}))},[T,o]),U=O.useCallback(J=>{T(K_(J)),T(Jo({handler:d,reactEvent:J}))},[T,d]),W=O.useCallback(J=>{T($9()),T(Jo({handler:h,reactEvent:J}))},[T,h]),G=O.useCallback(J=>{T(K_(J)),T(Jo({handler:m,reactEvent:J}))},[T,m]),ie=O.useCallback(()=>{T($L())},[T]),te=O.useCallback(J=>{T(DL(J.key))},[T]),se=O.useCallback(J=>{T(Jo({handler:a,reactEvent:J}))},[T,a]),le=O.useCallback(J=>{T(Jo({handler:l,reactEvent:J}))},[T,l]),q=O.useCallback(J=>{T(Jo({handler:c,reactEvent:J}))},[T,c]),H=O.useCallback(J=>{T(Jo({handler:v,reactEvent:J}))},[T,v]),Z=O.useCallback(J=>{T(Jo({handler:C,reactEvent:J}))},[T,C]),X=O.useCallback(J=>{T(BL(J)),T(Jo({handler:w,reactEvent:J}))},[T,w]),z=O.useCallback(J=>{T(Jo({handler:y,reactEvent:J}))},[T,y]);return O.createElement(nL.Provider,{value:A},O.createElement(oZ.Provider,{value:M},O.createElement("div",{className:Rn("recharts-wrapper",r),style:Gce({position:"relative",cursor:"default",width:P,height:i},_),onClick:B,onContextMenu:se,onDoubleClick:le,onFocus:ie,onKeyDown:te,onMouseDown:q,onMouseEnter:U,onMouseLeave:W,onMouseMove:G,onMouseUp:H,onTouchEnd:z,onTouchMove:X,onTouchStart:Z,ref:F},n)))}),Jce=["children","className","width","height","style","compact","title","desc"];function efe(e,t){if(e==null)return{};var n,r,i=tfe(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r{var{children:n,className:r,width:i,height:o,style:a,compact:l,title:c,desc:d}=e,h=efe(e,Jce),m=B1(h);return l?O.createElement(X4,{otherAttributes:m,title:c,desc:d},n):O.createElement(Qce,{className:r,style:a,width:i,height:o,onClick:e.onClick,onMouseLeave:e.onMouseLeave,onMouseEnter:e.onMouseEnter,onMouseMove:e.onMouseMove,onMouseDown:e.onMouseDown,onMouseUp:e.onMouseUp,onContextMenu:e.onContextMenu,onDoubleClick:e.onDoubleClick,onTouchStart:e.onTouchStart,onTouchMove:e.onTouchMove,onTouchEnd:e.onTouchEnd},O.createElement(X4,{otherAttributes:m,title:c,desc:d,ref:t},O.createElement(Cue,null,n)))}),rfe=["width","height"];function G_(){return G_=Object.assign?Object.assign.bind():function(e){for(var t=1;tO.createElement(lfe,{chartName:"BarChart",defaultTooltipEventType:"axis",validateTooltipEventTypes:ufe,tooltipPayloadSearcher:Yoe,categoricalChartProps:e,ref:t}));const Y_=(e,t=1)=>e<1?"<1%":e>99?">99%":`${e.toFixed(t)}%`,cfe={hover:{right_tail:"#3C4957CC"}},ffe=({stage:e,cycles:t,setCycles:n})=>{const r="#B8D1ED",[i,o]=O.useState(null),a=O.useRef(null),c=Ps()?280:380,d=O.useMemo(()=>{if(!e.distribution||e.knownValue)return[];const y=[],w=e.distribution;let C=w.length-1;const _=.001;for(let T=w.length-1;T>=0;T--)if(w[T]>_){C=T;break}for(let T=0;T<=C&&TT.probability>.05);return P.length>0?P:y},[e.distribution]),h=({active:y,payload:w})=>{if(y&&w&&w[0]&&e.distribution){const C=w[0].payload,_=e.distribution.slice(C.value).reduce((P,T)=>P+T,0)*100;return b.jsxs("div",{className:"rounded-[4px] bg-[rgba(32,43,56,0.85)] px-3 py-2.5 backdrop-blur-[3px]",children:[b.jsx("div",{className:"font-['Inter',_sans-serif] text-[14px] font-normal leading-[1.2] text-white",children:Y_(_)}),b.jsxs("div",{className:"font-['IBM_Plex_Mono',_sans-serif] text-[10px] leading-[1.4] text-white",children:["Probability of at least ",C.value," ",Zc[e.name].toLowerCase()]})]})}return null},m=O.useMemo(()=>{if(!t||t.length===0)return null;let y=null,w=1/0,C=[];return t.forEach((_,P)=>{if(_.knownStageName&&_.knownValue!==void 0){const T=mu.indexOf(_.knownStageName);T!==-1&&T_.knownValue),cycleIndices:C.map(({index:_})=>_)}:null},[t]),v=()=>{if(!m||!t||!n)return;const y=t.map((w,C)=>{if(m.cycleIndices.includes(C)){const{knownStageName:_,knownValue:P,...T}=w;return T}return w});n(y)};return!e.distribution||e.knownValue?b.jsx("div",{className:"relative mb-xx-large rounded-md bg-input-background",style:{height:c},children:m?b.jsx("div",{className:"relative flex h-full flex-col overflow-hidden px-6 py-8",style:{backgroundImage:`url('${af("/images/curves-1.svg")}')`,backgroundSize:"cover",backgroundPosition:"center"},children:b.jsxs("div",{className:"relative z-10 flex flex-col",children:[b.jsx("p",{className:"mb-2 font-ibm-plex-mono text-14 font-500 text-dark-blue opacity-50",children:"Known value"}),b.jsxs("p",{className:"mb-8 font-questrial text-[24px] font-500 text-dark-blue",children:[m.values.reduce((y,w)=>y+w,0)," ",Zc[m.stageName]]}),b.jsxs("button",{onClick:v,className:"active:scale-9 flex h-10 w-fit items-center justify-center gap-2 rounded-[500px] bg-dark-blue px-6 text-white transition-all hover:bg-opacity-90",children:[b.jsx(OI,{size:16,className:"text-white"}),b.jsx("span",{className:"font-ibm-plex-mono text-12 font-500 leading-[140%]",children:"CLEAR KNOWN VALUE"})]})]})}):b.jsx("div",{className:"flex h-full items-center justify-center",children:b.jsx("p",{className:"text-gray-500",children:"Known value selected"})})}):b.jsxs("div",{className:"relative mb-6",children:[b.jsx("style",{children:` .chart-container svg:focus { outline: none; } `}),b.jsx("div",{ref:a,children:b.jsx(aL,{width:"100%",height:c,className:"chart-container",children:b.jsxs(zL,{data:d,margin:{top:30,right:30,left:-10,bottom:10},barCategoryGap:"5%",onMouseMove:y=>{y&&y.activeLabel!==void 0&&o(y.activeLabel)},onMouseLeave:()=>o(null),onTouchMove:y=>{y&&y.activeLabel!==void 0&&o(y.activeLabel)},onTouchEnd:()=>o(null),children:[b.jsx(gx,{dataKey:"value",tick:{fontSize:12,fill:"#666666",fontFamily:"IBM Plex Mono"},interval:Math.floor(d.length/8),label:{value:`Number of ${Zc[e.name].toLowerCase()}`,position:"insideBottom",offset:-5,style:{fontSize:12,fill:"#666666",fontFamily:"IBM Plex Mono",textAnchor:"middle"}}}),b.jsx(vx,{tick:{fontSize:12,fill:"#666666",fontFamily:"IBM Plex Mono"},padding:{bottom:.5},tickFormatter:y=>`${y.toFixed(1)}%`}),b.jsx(hae,{content:b.jsx(h,{}),cursor:!1,active:i!==null}),b.jsx(c1,{dataKey:"probability",children:d.map((y,w)=>{const C=i!==null&&y.value>=i;return b.jsx(C5,{fill:C?cfe.hover.right_tail:r},`cell-${w}`)})})]})})})]})},pS=({label:e,percentileLabel:t,value:n,tooltipId:r,tooltipContent:i,isMobile:o})=>b.jsxs(b.Fragment,{children:[b.jsxs("div",{className:"flex flex-1 items-center justify-between rounded-md bg-gray-50 px-4 py-3 sm:hidden",children:[b.jsxs("div",{className:"flex items-center gap-x-[6px]",children:[b.jsx("span",{className:"font-['IBM_Plex_Mono',_sans-serif] text-15 font-500 leading-[1.4] text-dark-blue",children:e}),b.jsx("div",{"data-tooltip-id":r,"data-tooltip-content":i,children:b.jsx(ki,{})}),b.jsx(ri,{id:r,className:"basic_tooltip",globalCloseEvents:o?{scroll:!0}:void 0})]}),b.jsx("div",{className:"font-['Inter',_sans-serif] text-[20px] font-medium leading-[1.4] text-dark-blue",children:n})]}),b.jsxs("div",{className:"hidden flex-1 flex-col justify-between gap-3 rounded-md bg-gray-50 p-6 sm:flex",children:[b.jsxs("div",{className:"flex items-center gap-x-[6px]",children:[b.jsx("span",{className:"font-['IBM_Plex_Mono',_sans-serif] text-15 font-500 leading-[1.4] text-dark-blue",children:e}),b.jsx("div",{"data-tooltip-id":r,"data-tooltip-content":i,children:b.jsx(ki,{})}),b.jsx(ri,{id:r,className:"basic_tooltip",globalCloseEvents:o?{scroll:!0}:void 0})]}),b.jsx("div",{className:"font-['Inter',_sans-serif] text-[20px] font-medium leading-[1.4] text-dark-blue",children:n}),b.jsx("span",{className:"font-['IBM_Plex_Mono',_sans-serif] text-[12px] font-medium leading-[1.4] text-dark-blue opacity-50",children:t})]})]}),dfe=({stage:e})=>{const t=Ps(),n=e.distribution===null||e.knownValue;return b.jsxs("div",{className:"flex flex-col gap-4 sm:flex-row sm:gap-4",children:[b.jsx(pS,{label:"Lower",percentileLabel:"10th percentile",value:n?"N/A":String(e.percentile10),tooltipId:"percentile-10-tooltip",tooltipContent:"90% of patients achieve this result or better.",isMobile:t}),b.jsx(pS,{label:"Median",percentileLabel:"50th percentile",value:n?"N/A":String(e.median),tooltipId:"median-tooltip",tooltipContent:"Half of patients achieve this result or better.",isMobile:t}),b.jsx(pS,{label:"Higher",percentileLabel:"90th percentile",value:n?"N/A":String(e.percentile90),tooltipId:"percentile-90-tooltip",tooltipContent:"10% of patients achieve this result or better.",isMobile:t})]})},hfe=({stage:e,cycleCount:t,cycles:n,setCycles:r})=>b.jsxs(b.Fragment,{children:[b.jsx("div",{className:"block sm:hidden",children:b.jsx(dfe,{stage:e})}),b.jsx(ffe,{stage:e,cycles:n,setCycles:r})]}),Z_=38,jm=Z_/2,pfe=250,mS=({Icon:e,state:t})=>{const n=t==="future"?"#F3F3F3":"#202b38",r=t==="future"?"#BFBFBF":"white";return b.jsx("div",{className:"relative flex items-center justify-center",style:{width:"100%",height:"100%"},children:b.jsx(e,{fill:n,stroke:r,strokeWidth:"1.5",style:{width:"100%",height:"100%"}})})},gS=e=>e==="future"?"text-gray-500 font-normal":"text-dark-blue font-500",vS={[Ee.RETRIEVED_EGGS]:X7,[Ee.MATURE_EGGS]:Q7,[Ee.THAWED_EGGS]:J7,[Ee.FERTILIZED_EMBRYOS]:eF,[Ee.BLASTOCYSTS]:tF,[Ee.EUPLOID_EMBRYOS]:nF,[Ee.WARMED_EMBRYOS]:rF,[Ee.LIVE_BIRTHS]:iF},mfe=({stages:e,cycles:t=[],currentStageName:n,onStageClick:r,onPrevStep:i,onNextStep:o,showValues:a=!1})=>{const l=e.slice(0,8),c=Ps(),d=t.some(U=>U.freezeEggs),h=t.some(U=>!U.freezeEggs),m=d&&!h,v=U=>U===Ee.MATURE_EGGS?m?"Frozen":d&&h?"Mat./Froz.":"Mature":CY(U),y=n?l.findIndex(U=>U.name===n):0,w=O.useRef(y),C=w.current,_=`transform ${pfe}ms ease`,P=U=>{const W=U{const G=y+1;L((G-1)*66)},[y]),O.useEffect(()=>{w.current=y},[y]);const F=Z_,B=()=>b.jsxs("svg",{width:"40",height:"40",viewBox:"0 0 40 40",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[b.jsx("rect",{width:"40",height:"40",rx:"20"}),b.jsx("circle",{cx:"20",cy:"20",r:"6"})]});return b.jsxs(b.Fragment,{children:[b.jsxs("div",{className:"flex items-start justify-between px-2 md:hidden",children:[b.jsxs("div",{className:"group flex flex-col items-center gap-y-[6px]",children:[b.jsx("button",{onClick:i,disabled:y===0,className:Ht("flex items-center justify-center rounded-full transition-all duration-200",y===0?"cursor-not-allowed bg-gray-200":"bg-dark-blue hover:scale-110 active:scale-95"),style:{width:`${F}px`,height:`${F}px`},"aria-label":"Previous stage",children:b.jsx(ta,{className:"text-white",size:16})}),b.jsx("div",{className:"flex flex-col items-center text-center font-ibm-plex-mono text-10 font-500 leading-[140%] text-gray-400 transition-colors",style:{width:`${F}px`},children:b.jsx("span",{children:"Prev"})})]}),b.jsx("div",{className:"relative flex-1 overflow-hidden",children:b.jsx("div",{className:"flex items-start gap-x-7 transition-transform ease-out",style:{transform:`translateX(calc(50% - ${N+2*F+14}px))`,transitionDuration:"250ms"},children:[null,...l,null].map((U,W)=>{if(U===null)return b.jsx("div",{className:"pointer-events-none flex-shrink-0 opacity-0",style:{width:`${F}px`}},`placeholder-${W}`);const G=W-1,ie=vS[U.name]||B,te=G1&&"pointer-events-none"),children:[se&&b.jsx("div",{className:"absolute bg-dark-blue",style:{top:`${jm}px`,left:`${Z_-1}px`,width:"100%",height:"1px",pointerEvents:"none",transform:`translateY(-50%) scaleX(${le})`,transformOrigin:q,transition:_,willChange:"transform"}}),b.jsx("button",{onClick:()=>r==null?void 0:r(U.name),className:"cursor-pointer transition-transform duration-200 hover:scale-110 active:scale-95",style:{width:`${F}px`,height:`${F}px`},children:b.jsx(mS,{Icon:ie,state:te})}),b.jsx("div",{className:"flex flex-col items-center text-center font-ibm-plex-mono text-10 leading-[140%]",style:{width:`${F}px`},children:b.jsx("span",{className:gS(te),children:v(U.name)})})]},U.name)})})}),b.jsxs("div",{className:"group flex flex-col items-center gap-y-[6px]",children:[b.jsx("button",{onClick:o,disabled:y===l.length-1,className:Ht("flex items-center justify-center rounded-full transition-all duration-200",y===l.length-1?"cursor-not-allowed bg-gray-200":"bg-dark-blue hover:scale-110 active:scale-95"),style:{width:`${F}px`,height:`${F}px`},"aria-label":"Next stage",children:b.jsx(ta,{className:"rotate-180 text-white",size:16})}),b.jsx("div",{className:"flex flex-col items-center text-center font-ibm-plex-mono text-10 font-600 leading-[140%] text-gray-400 transition-colors",style:{width:`${F}px`},children:b.jsx("span",{children:"Next"})})]})]}),a?b.jsxs("div",{className:"relative hidden gap-x-2 gap-y-4 md:grid",style:{gridTemplateColumns:`80px repeat(${l.length}, 1fr) 80px`,gridTemplateRows:"auto auto auto auto","--column-width":`calc((100% - 160px - ${(l.length-1)*8}px) / ${l.length})`,"--current-index":y},children:[b.jsxs("div",{className:"group col-start-1 row-start-1 flex flex-col items-center gap-y-[6px]",children:[b.jsx("button",{onClick:i,disabled:y===0,className:Ht("flex items-center justify-center rounded-full transition-all duration-200",y===0?"cursor-not-allowed bg-gray-200":"bg-dark-blue hover:scale-110 active:scale-95"),style:{width:`${F}px`,height:`${F}px`},"aria-label":"Previous stage",children:b.jsx(ta,{className:"text-white",size:16})}),b.jsx("div",{className:Ht("flex flex-col items-center text-center font-ibm-plex-mono text-10 font-500 leading-[140%] text-gray-400 transition-colors",y!==0&&"group-hover:text-dark-blue"),style:{width:`${F}px`},children:b.jsx("span",{children:"Prev"})})]}),b.jsxs("div",{className:"col-start-1 row-start-2 flex items-center justify-center gap-x-[6px]",children:[b.jsx("span",{className:"text-center font-['IBM_Plex_Mono',_sans-serif] text-[12px] font-medium leading-[1.4] text-[#8f959b]",children:"Higher"}),b.jsx("div",{"data-tooltip-id":"progress-higher-tooltip","data-tooltip-content":"10% of patients achieve this result or better.",onMouseEnter:()=>{A("higher"),M(U=>({...U,higher:!0}))},onMouseLeave:()=>{A(null),M(U=>({...U,higher:!1})),setTimeout(()=>{M(U=>({...U,higher:!0}))},50)},children:b.jsx(ki,{})}),I.higher&&b.jsx(ri,{id:"progress-higher-tooltip",className:"basic_tooltip",globalCloseEvents:c?{scroll:!0}:void 0})]}),b.jsxs("div",{className:"col-start-1 row-start-3 flex items-center justify-center gap-x-[6px]",children:[b.jsx("span",{className:"text-center font-['IBM_Plex_Mono',_sans-serif] text-[12px] font-medium leading-[1.4] text-[#8f959b]",children:"Median"}),b.jsx("div",{"data-tooltip-id":"progress-median-tooltip","data-tooltip-content":"Half of patients achieve this result or better.",onMouseEnter:()=>{A("median"),M(U=>({...U,median:!0}))},onMouseLeave:()=>{A(null),M(U=>({...U,median:!1})),setTimeout(()=>{M(U=>({...U,median:!0}))},50)},children:b.jsx(ki,{})}),I.median&&b.jsx(ri,{id:"progress-median-tooltip",className:"basic_tooltip",globalCloseEvents:c?{scroll:!0}:void 0})]}),b.jsxs("div",{className:"col-start-1 row-start-4 flex items-center justify-center gap-x-[6px]",children:[b.jsx("span",{className:"text-center font-['IBM_Plex_Mono',_sans-serif] text-[12px] font-medium leading-[1.4] text-[#8f959b]",children:"Lower"}),b.jsx("div",{"data-tooltip-id":"progress-lower-tooltip","data-tooltip-content":"90% of patients achieve this result or better.",onMouseEnter:()=>{A("lower"),M(U=>({...U,lower:!0}))},onMouseLeave:()=>{A(null),M(U=>({...U,lower:!1})),setTimeout(()=>{M(U=>({...U,lower:!0}))},50)},children:b.jsx(ki,{})}),I.lower&&b.jsx(ri,{id:"progress-lower-tooltip",className:"basic_tooltip",globalCloseEvents:c?{scroll:!0}:void 0})]}),l.map((U,W)=>{const G=vS[U.name]||B,ie=Wr==null?void 0:r(U.name),className:"cursor-pointer transition-transform duration-200 hover:scale-110 active:scale-95",style:{width:`${F}px`,height:`${F}px`},children:b.jsx(mS,{Icon:G,state:ie})}),b.jsx("div",{className:"flex flex-col items-center text-center font-ibm-plex-mono text-10 leading-[140%]",style:{width:`${F}px`},children:b.jsx("span",{className:gS(ie),children:v(U.name)})})]}),W===y&&b.jsx("div",{className:"-my-2 mx-3 rounded bg-[#F5F8F9] transition-opacity duration-300 ease-in-out",style:{gridColumn:q,gridRow:"2 / 5",zIndex:0}}),b.jsx("div",{className:Ht("relative row-start-2 flex items-center justify-center font-questrial text-[14px] leading-[1.4]",W