diff --git a/assets/index-C7XQX2tI.js b/assets/index-Bl1BH3vt.js similarity index 82% rename from assets/index-C7XQX2tI.js rename to assets/index-Bl1BH3vt.js index 368b3aa..9d88f2c 100644 --- a/assets/index-C7XQX2tI.js +++ b/assets/index-Bl1BH3vt.js @@ -66,7 +66,7 @@ Error generating stack: `+i.message+` `));if(d!==null&&!u[d])throw Error([`MUI X: id used for left axis "${d}" is not defined.`,`Available ids are: ${c.join(", ")}.`].join(` `));if(h!==null&&!u[h])throw Error([`MUI X: id used for right axis "${h}" is not defined.`,`Available ids are: ${c.join(", ")}.`].join(` `));if(f!==null&&!a[f])throw Error([`MUI X: id used for bottom axis "${f}" is not defined.`,`Available ids are: ${l.join(", ")}.`].join(` -`));const g=su(t,i,s),b=su(o,i,s),m=su(n,i,s),y=su(r,i,s);return v.jsxs(S.Fragment,{children:[p&&v.jsx(bx,A({},g,{position:"top",axisId:p})),f&&v.jsx(bx,A({},b,{position:"bottom",axisId:f})),d&&v.jsx(wx,A({},m,{position:"left",axisId:d})),h&&v.jsx(wx,A({},y,{position:"right",axisId:h}))]})}var _0={};Object.defineProperty(_0,"__esModule",{value:!0});var WC=_0.default=void 0,fj=hj(S),pj=jk;function UC(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,n=new WeakMap;return(UC=function(r){return r?n:t})(e)}function hj(e,t){if(e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var n=UC(t);if(n&&n.has(e))return n.get(e);var r={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(i!=="default"&&Object.prototype.hasOwnProperty.call(e,i)){var s=o?Object.getOwnPropertyDescriptor(e,i):null;s&&(s.get||s.set)?Object.defineProperty(r,i,s):r[i]=e[i]}return r.default=e,n&&n.set(e,r),r}function mj(e){return Object.keys(e).length===0}function gj(e=null){const t=fj.useContext(pj.ThemeContext);return!t||mj(t)?e:t}WC=_0.default=gj;var $t="top",rn="bottom",on="right",Pt="left",A0="auto",pl=[$t,rn,on,Pt],Wi="start",Da="end",vj="clippingParents",BC="viewport",Ps="popper",yj="reference",Sx=pl.reduce(function(e,t){return e.concat([t+"-"+Wi,t+"-"+Da])},[]),GC=[].concat(pl,[A0]).reduce(function(e,t){return e.concat([t,t+"-"+Wi,t+"-"+Da])},[]),xj="beforeRead",bj="read",wj="afterRead",Sj="beforeMain",kj="main",Cj="afterMain",$j="beforeWrite",Pj="write",Tj="afterWrite",Ej=[xj,bj,wj,Sj,kj,Cj,$j,Pj,Tj];function Dn(e){return e?(e.nodeName||"").toLowerCase():null}function It(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Ao(e){var t=It(e).Element;return e instanceof t||e instanceof Element}function Jt(e){var t=It(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function O0(e){if(typeof ShadowRoot>"u")return!1;var t=It(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function Mj(e){var t=e.state;Object.keys(t.elements).forEach(function(n){var r=t.styles[n]||{},o=t.attributes[n]||{},i=t.elements[n];!Jt(i)||!Dn(i)||(Object.assign(i.style,r),Object.keys(o).forEach(function(s){var a=o[s];a===!1?i.removeAttribute(s):i.setAttribute(s,a===!0?"":a)}))})}function _j(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(r){var o=t.elements[r],i=t.attributes[r]||{},s=Object.keys(t.styles.hasOwnProperty(r)?t.styles[r]:n[r]),a=s.reduce(function(l,u){return l[u]="",l},{});!Jt(o)||!Dn(o)||(Object.assign(o.style,a),Object.keys(i).forEach(function(l){o.removeAttribute(l)}))})}}const Aj={name:"applyStyles",enabled:!0,phase:"write",fn:Mj,effect:_j,requires:["computeStyles"]};function In(e){return e.split("-")[0]}var Co=Math.max,Dc=Math.min,Ui=Math.round;function nm(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function KC(){return!/^((?!chrome|android).)*safari/i.test(nm())}function Bi(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var r=e.getBoundingClientRect(),o=1,i=1;t&&Jt(e)&&(o=e.offsetWidth>0&&Ui(r.width)/e.offsetWidth||1,i=e.offsetHeight>0&&Ui(r.height)/e.offsetHeight||1);var s=Ao(e)?It(e):window,a=s.visualViewport,l=!KC()&&n,u=(r.left+(l&&a?a.offsetLeft:0))/o,c=(r.top+(l&&a?a.offsetTop:0))/i,d=r.width/o,f=r.height/i;return{width:d,height:f,top:c,right:u+d,bottom:c+f,left:u,x:u,y:c}}function R0(e){var t=Bi(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function YC(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&O0(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function ur(e){return It(e).getComputedStyle(e)}function Oj(e){return["table","td","th"].indexOf(Dn(e))>=0}function qr(e){return((Ao(e)?e.ownerDocument:e.document)||window.document).documentElement}function cf(e){return Dn(e)==="html"?e:e.assignedSlot||e.parentNode||(O0(e)?e.host:null)||qr(e)}function kx(e){return!Jt(e)||ur(e).position==="fixed"?null:e.offsetParent}function Rj(e){var t=/firefox/i.test(nm()),n=/Trident/i.test(nm());if(n&&Jt(e)){var r=ur(e);if(r.position==="fixed")return null}var o=cf(e);for(O0(o)&&(o=o.host);Jt(o)&&["html","body"].indexOf(Dn(o))<0;){var i=ur(o);if(i.transform!=="none"||i.perspective!=="none"||i.contain==="paint"||["transform","perspective"].indexOf(i.willChange)!==-1||t&&i.willChange==="filter"||t&&i.filter&&i.filter!=="none")return o;o=o.parentNode}return null}function hl(e){for(var t=It(e),n=kx(e);n&&Oj(n)&&ur(n).position==="static";)n=kx(n);return n&&(Dn(n)==="html"||Dn(n)==="body"&&ur(n).position==="static")?t:n||Rj(e)||t}function j0(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Zs(e,t,n){return Co(e,Dc(t,n))}function jj(e,t,n){var r=Zs(e,t,n);return r>n?n:r}function qC(){return{top:0,right:0,bottom:0,left:0}}function XC(e){return Object.assign({},qC(),e)}function QC(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}var Ij=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,XC(typeof t!="number"?t:QC(t,pl))};function Lj(e){var t,n=e.state,r=e.name,o=e.options,i=n.elements.arrow,s=n.modifiersData.popperOffsets,a=In(n.placement),l=j0(a),u=[Pt,on].indexOf(a)>=0,c=u?"height":"width";if(!(!i||!s)){var d=Ij(o.padding,n),f=R0(i),p=l==="y"?$t:Pt,h=l==="y"?rn:on,g=n.rects.reference[c]+n.rects.reference[l]-s[l]-n.rects.popper[c],b=s[l]-n.rects.reference[l],m=hl(i),y=m?l==="y"?m.clientHeight||0:m.clientWidth||0:0,x=g/2-b/2,w=d[p],C=y-f[c]-d[h],k=y/2-f[c]/2+x,$=Zs(w,k,C),P=l;n.modifiersData[r]=(t={},t[P]=$,t.centerOffset=$-k,t)}}function Nj(e){var t=e.state,n=e.options,r=n.element,o=r===void 0?"[data-popper-arrow]":r;o!=null&&(typeof o=="string"&&(o=t.elements.popper.querySelector(o),!o)||YC(t.elements.popper,o)&&(t.elements.arrow=o))}const Dj={name:"arrow",enabled:!0,phase:"main",fn:Lj,effect:Nj,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Gi(e){return e.split("-")[1]}var Fj={top:"auto",right:"auto",bottom:"auto",left:"auto"};function zj(e,t){var n=e.x,r=e.y,o=t.devicePixelRatio||1;return{x:Ui(n*o)/o||0,y:Ui(r*o)/o||0}}function Cx(e){var t,n=e.popper,r=e.popperRect,o=e.placement,i=e.variation,s=e.offsets,a=e.position,l=e.gpuAcceleration,u=e.adaptive,c=e.roundOffsets,d=e.isFixed,f=s.x,p=f===void 0?0:f,h=s.y,g=h===void 0?0:h,b=typeof c=="function"?c({x:p,y:g}):{x:p,y:g};p=b.x,g=b.y;var m=s.hasOwnProperty("x"),y=s.hasOwnProperty("y"),x=Pt,w=$t,C=window;if(u){var k=hl(n),$="clientHeight",P="clientWidth";if(k===It(n)&&(k=qr(n),ur(k).position!=="static"&&a==="absolute"&&($="scrollHeight",P="scrollWidth")),k=k,o===$t||(o===Pt||o===on)&&i===Da){w=rn;var R=d&&k===C&&C.visualViewport?C.visualViewport.height:k[$];g-=R-r.height,g*=l?1:-1}if(o===Pt||(o===$t||o===rn)&&i===Da){x=on;var M=d&&k===C&&C.visualViewport?C.visualViewport.width:k[P];p-=M-r.width,p*=l?1:-1}}var O=Object.assign({position:a},u&&Fj),E=c===!0?zj({x:p,y:g},It(n)):{x:p,y:g};if(p=E.x,g=E.y,l){var _;return Object.assign({},O,(_={},_[w]=y?"0":"",_[x]=m?"0":"",_.transform=(C.devicePixelRatio||1)<=1?"translate("+p+"px, "+g+"px)":"translate3d("+p+"px, "+g+"px, 0)",_))}return Object.assign({},O,(t={},t[w]=y?g+"px":"",t[x]=m?p+"px":"",t.transform="",t))}function Vj(e){var t=e.state,n=e.options,r=n.gpuAcceleration,o=r===void 0?!0:r,i=n.adaptive,s=i===void 0?!0:i,a=n.roundOffsets,l=a===void 0?!0:a,u={placement:In(t.placement),variation:Gi(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:o,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,Cx(Object.assign({},u,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:s,roundOffsets:l})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,Cx(Object.assign({},u,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const Hj={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:Vj,data:{}};var au={passive:!0};function Wj(e){var t=e.state,n=e.instance,r=e.options,o=r.scroll,i=o===void 0?!0:o,s=r.resize,a=s===void 0?!0:s,l=It(t.elements.popper),u=[].concat(t.scrollParents.reference,t.scrollParents.popper);return i&&u.forEach(function(c){c.addEventListener("scroll",n.update,au)}),a&&l.addEventListener("resize",n.update,au),function(){i&&u.forEach(function(c){c.removeEventListener("scroll",n.update,au)}),a&&l.removeEventListener("resize",n.update,au)}}const Uj={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:Wj,data:{}};var Bj={left:"right",right:"left",bottom:"top",top:"bottom"};function Bu(e){return e.replace(/left|right|bottom|top/g,function(t){return Bj[t]})}var Gj={start:"end",end:"start"};function $x(e){return e.replace(/start|end/g,function(t){return Gj[t]})}function I0(e){var t=It(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function L0(e){return Bi(qr(e)).left+I0(e).scrollLeft}function Kj(e,t){var n=It(e),r=qr(e),o=n.visualViewport,i=r.clientWidth,s=r.clientHeight,a=0,l=0;if(o){i=o.width,s=o.height;var u=KC();(u||!u&&t==="fixed")&&(a=o.offsetLeft,l=o.offsetTop)}return{width:i,height:s,x:a+L0(e),y:l}}function Yj(e){var t,n=qr(e),r=I0(e),o=(t=e.ownerDocument)==null?void 0:t.body,i=Co(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),s=Co(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),a=-r.scrollLeft+L0(e),l=-r.scrollTop;return ur(o||n).direction==="rtl"&&(a+=Co(n.clientWidth,o?o.clientWidth:0)-i),{width:i,height:s,x:a,y:l}}function N0(e){var t=ur(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+r)}function ZC(e){return["html","body","#document"].indexOf(Dn(e))>=0?e.ownerDocument.body:Jt(e)&&N0(e)?e:ZC(cf(e))}function Js(e,t){var n;t===void 0&&(t=[]);var r=ZC(e),o=r===((n=e.ownerDocument)==null?void 0:n.body),i=It(r),s=o?[i].concat(i.visualViewport||[],N0(r)?r:[]):r,a=t.concat(s);return o?a:a.concat(Js(cf(s)))}function rm(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function qj(e,t){var n=Bi(e,!1,t==="fixed");return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}function Px(e,t,n){return t===BC?rm(Kj(e,n)):Ao(t)?qj(t,n):rm(Yj(qr(e)))}function Xj(e){var t=Js(cf(e)),n=["absolute","fixed"].indexOf(ur(e).position)>=0,r=n&&Jt(e)?hl(e):e;return Ao(r)?t.filter(function(o){return Ao(o)&&YC(o,r)&&Dn(o)!=="body"}):[]}function Qj(e,t,n,r){var o=t==="clippingParents"?Xj(e):[].concat(t),i=[].concat(o,[n]),s=i[0],a=i.reduce(function(l,u){var c=Px(e,u,r);return l.top=Co(c.top,l.top),l.right=Dc(c.right,l.right),l.bottom=Dc(c.bottom,l.bottom),l.left=Co(c.left,l.left),l},Px(e,s,r));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}function JC(e){var t=e.reference,n=e.element,r=e.placement,o=r?In(r):null,i=r?Gi(r):null,s=t.x+t.width/2-n.width/2,a=t.y+t.height/2-n.height/2,l;switch(o){case $t:l={x:s,y:t.y-n.height};break;case rn:l={x:s,y:t.y+t.height};break;case on:l={x:t.x+t.width,y:a};break;case Pt:l={x:t.x-n.width,y:a};break;default:l={x:t.x,y:t.y}}var u=o?j0(o):null;if(u!=null){var c=u==="y"?"height":"width";switch(i){case Wi:l[u]=l[u]-(t[c]/2-n[c]/2);break;case Da:l[u]=l[u]+(t[c]/2-n[c]/2);break}}return l}function Fa(e,t){t===void 0&&(t={});var n=t,r=n.placement,o=r===void 0?e.placement:r,i=n.strategy,s=i===void 0?e.strategy:i,a=n.boundary,l=a===void 0?vj:a,u=n.rootBoundary,c=u===void 0?BC:u,d=n.elementContext,f=d===void 0?Ps:d,p=n.altBoundary,h=p===void 0?!1:p,g=n.padding,b=g===void 0?0:g,m=XC(typeof b!="number"?b:QC(b,pl)),y=f===Ps?yj:Ps,x=e.rects.popper,w=e.elements[h?y:f],C=Qj(Ao(w)?w:w.contextElement||qr(e.elements.popper),l,c,s),k=Bi(e.elements.reference),$=JC({reference:k,element:x,strategy:"absolute",placement:o}),P=rm(Object.assign({},x,$)),R=f===Ps?P:k,M={top:C.top-R.top+m.top,bottom:R.bottom-C.bottom+m.bottom,left:C.left-R.left+m.left,right:R.right-C.right+m.right},O=e.modifiersData.offset;if(f===Ps&&O){var E=O[o];Object.keys(M).forEach(function(_){var T=[on,rn].indexOf(_)>=0?1:-1,I=[$t,rn].indexOf(_)>=0?"y":"x";M[_]+=E[I]*T})}return M}function Zj(e,t){t===void 0&&(t={});var n=t,r=n.placement,o=n.boundary,i=n.rootBoundary,s=n.padding,a=n.flipVariations,l=n.allowedAutoPlacements,u=l===void 0?GC:l,c=Gi(r),d=c?a?Sx:Sx.filter(function(h){return Gi(h)===c}):pl,f=d.filter(function(h){return u.indexOf(h)>=0});f.length===0&&(f=d);var p=f.reduce(function(h,g){return h[g]=Fa(e,{placement:g,boundary:o,rootBoundary:i,padding:s})[In(g)],h},{});return Object.keys(p).sort(function(h,g){return p[h]-p[g]})}function Jj(e){if(In(e)===A0)return[];var t=Bu(e);return[$x(e),t,$x(t)]}function eI(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var o=n.mainAxis,i=o===void 0?!0:o,s=n.altAxis,a=s===void 0?!0:s,l=n.fallbackPlacements,u=n.padding,c=n.boundary,d=n.rootBoundary,f=n.altBoundary,p=n.flipVariations,h=p===void 0?!0:p,g=n.allowedAutoPlacements,b=t.options.placement,m=In(b),y=m===b,x=l||(y||!h?[Bu(b)]:Jj(b)),w=[b].concat(x).reduce(function(J,X){return J.concat(In(X)===A0?Zj(t,{placement:X,boundary:c,rootBoundary:d,padding:u,flipVariations:h,allowedAutoPlacements:g}):X)},[]),C=t.rects.reference,k=t.rects.popper,$=new Map,P=!0,R=w[0],M=0;M=0,I=T?"width":"height",L=Fa(t,{placement:O,boundary:c,rootBoundary:d,altBoundary:f,padding:u}),F=T?_?on:Pt:_?rn:$t;C[I]>k[I]&&(F=Bu(F));var j=Bu(F),N=[];if(i&&N.push(L[E]<=0),a&&N.push(L[F]<=0,L[j]<=0),N.every(function(J){return J})){R=O,P=!1;break}$.set(O,N)}if(P)for(var V=h?3:1,G=function(X){var oe=w.find(function(le){var de=$.get(le);if(de)return de.slice(0,X).every(function(W){return W})});if(oe)return R=oe,"break"},B=V;B>0;B--){var q=G(B);if(q==="break")break}t.placement!==R&&(t.modifiersData[r]._skip=!0,t.placement=R,t.reset=!0)}}const tI={name:"flip",enabled:!0,phase:"main",fn:eI,requiresIfExists:["offset"],data:{_skip:!1}};function Tx(e,t,n){return n===void 0&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function Ex(e){return[$t,on,rn,Pt].some(function(t){return e[t]>=0})}function nI(e){var t=e.state,n=e.name,r=t.rects.reference,o=t.rects.popper,i=t.modifiersData.preventOverflow,s=Fa(t,{elementContext:"reference"}),a=Fa(t,{altBoundary:!0}),l=Tx(s,r),u=Tx(a,o,i),c=Ex(l),d=Ex(u);t.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:u,isReferenceHidden:c,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":c,"data-popper-escaped":d})}const rI={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:nI};function oI(e,t,n){var r=In(e),o=[Pt,$t].indexOf(r)>=0?-1:1,i=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,s=i[0],a=i[1];return s=s||0,a=(a||0)*o,[Pt,on].indexOf(r)>=0?{x:a,y:s}:{x:s,y:a}}function iI(e){var t=e.state,n=e.options,r=e.name,o=n.offset,i=o===void 0?[0,0]:o,s=GC.reduce(function(c,d){return c[d]=oI(d,t.rects,i),c},{}),a=s[t.placement],l=a.x,u=a.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=u),t.modifiersData[r]=s}const sI={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:iI};function aI(e){var t=e.state,n=e.name;t.modifiersData[n]=JC({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}const lI={name:"popperOffsets",enabled:!0,phase:"read",fn:aI,data:{}};function uI(e){return e==="x"?"y":"x"}function cI(e){var t=e.state,n=e.options,r=e.name,o=n.mainAxis,i=o===void 0?!0:o,s=n.altAxis,a=s===void 0?!1:s,l=n.boundary,u=n.rootBoundary,c=n.altBoundary,d=n.padding,f=n.tether,p=f===void 0?!0:f,h=n.tetherOffset,g=h===void 0?0:h,b=Fa(t,{boundary:l,rootBoundary:u,padding:d,altBoundary:c}),m=In(t.placement),y=Gi(t.placement),x=!y,w=j0(m),C=uI(w),k=t.modifiersData.popperOffsets,$=t.rects.reference,P=t.rects.popper,R=typeof g=="function"?g(Object.assign({},t.rects,{placement:t.placement})):g,M=typeof R=="number"?{mainAxis:R,altAxis:R}:Object.assign({mainAxis:0,altAxis:0},R),O=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,E={x:0,y:0};if(k){if(i){var _,T=w==="y"?$t:Pt,I=w==="y"?rn:on,L=w==="y"?"height":"width",F=k[w],j=F+b[T],N=F-b[I],V=p?-P[L]/2:0,G=y===Wi?$[L]:P[L],B=y===Wi?-P[L]:-$[L],q=t.elements.arrow,J=p&&q?R0(q):{width:0,height:0},X=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:qC(),oe=X[T],le=X[I],de=Zs(0,$[L],J[L]),W=x?$[L]/2-V-de-oe-M.mainAxis:G-de-oe-M.mainAxis,K=x?-$[L]/2+V+de+le+M.mainAxis:B+de+le+M.mainAxis,Q=t.elements.arrow&&hl(t.elements.arrow),D=Q?w==="y"?Q.clientTop||0:Q.clientLeft||0:0,be=(_=O==null?void 0:O[w])!=null?_:0,ne=F+W-be-D,Re=F+K-be,me=Zs(p?Dc(j,ne):j,F,p?Co(N,Re):N);k[w]=me,E[w]=me-F}if(a){var Be,Qr=w==="x"?$t:Pt,qP=w==="x"?rn:on,Zr=k[C],Ol=C==="y"?"height":"width",Uv=Zr+b[Qr],Bv=Zr-b[qP],Of=[$t,Pt].indexOf(m)!==-1,Gv=(Be=O==null?void 0:O[C])!=null?Be:0,Kv=Of?Uv:Zr-$[Ol]-P[Ol]-Gv+M.altAxis,Yv=Of?Zr+$[Ol]+P[Ol]-Gv-M.altAxis:Bv,qv=p&&Of?jj(Kv,Zr,Yv):Zs(p?Kv:Uv,Zr,p?Yv:Bv);k[C]=qv,E[C]=qv-Zr}t.modifiersData[r]=E}}const dI={name:"preventOverflow",enabled:!0,phase:"main",fn:cI,requiresIfExists:["offset"]};function fI(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function pI(e){return e===It(e)||!Jt(e)?I0(e):fI(e)}function hI(e){var t=e.getBoundingClientRect(),n=Ui(t.width)/e.offsetWidth||1,r=Ui(t.height)/e.offsetHeight||1;return n!==1||r!==1}function mI(e,t,n){n===void 0&&(n=!1);var r=Jt(t),o=Jt(t)&&hI(t),i=qr(t),s=Bi(e,o,n),a={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(r||!r&&!n)&&((Dn(t)!=="body"||N0(i))&&(a=pI(t)),Jt(t)?(l=Bi(t,!0),l.x+=t.clientLeft,l.y+=t.clientTop):i&&(l.x=L0(i))),{x:s.left+a.scrollLeft-l.x,y:s.top+a.scrollTop-l.y,width:s.width,height:s.height}}function gI(e){var t=new Map,n=new Set,r=[];e.forEach(function(i){t.set(i.name,i)});function o(i){n.add(i.name);var s=[].concat(i.requires||[],i.requiresIfExists||[]);s.forEach(function(a){if(!n.has(a)){var l=t.get(a);l&&o(l)}}),r.push(i)}return e.forEach(function(i){n.has(i.name)||o(i)}),r}function vI(e){var t=gI(e);return Ej.reduce(function(n,r){return n.concat(t.filter(function(o){return o.phase===r}))},[])}function yI(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function xI(e){var t=e.reduce(function(n,r){var o=n[r.name];return n[r.name]=o?Object.assign({},o,r,{options:Object.assign({},o.options,r.options),data:Object.assign({},o.data,r.data)}):r,n},{});return Object.keys(t).map(function(n){return t[n]})}var Mx={placement:"bottom",modifiers:[],strategy:"absolute"};function _x(){for(var e=arguments.length,t=new Array(e),n=0;n{i||a(kI(o)||document.body)},[o,i]),or(()=>{if(s&&!i)return Sc(n,s),()=>{Sc(n,null)}},[n,s,i]),i){if(S.isValidElement(r)){const u={ref:l};return S.cloneElement(r,u)}return v.jsx(S.Fragment,{children:r})}return v.jsx(S.Fragment,{children:s&&rl.createPortal(r,s)})});function $I(e){return Hn("MuiPopper",e)}fr("MuiPopper",["root"]);const PI=["anchorEl","children","direction","disablePortal","modifiers","open","placement","popperOptions","popperRef","slotProps","slots","TransitionProps","ownerState"],TI=["anchorEl","children","container","direction","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","style","transition","slotProps","slots"];function EI(e,t){if(t==="ltr")return e;switch(e){case"bottom-end":return"bottom-start";case"bottom-start":return"bottom-end";case"top-end":return"top-start";case"top-start":return"top-end";default:return e}}function om(e){return typeof e=="function"?e():e}function MI(e){return e.nodeType!==void 0}const _I=e=>{const{classes:t}=e;return Vn({root:["root"]},$I,t)},AI={},OI=S.forwardRef(function(t,n){var r;const{anchorEl:o,children:i,direction:s,disablePortal:a,modifiers:l,open:u,placement:c,popperOptions:d,popperRef:f,slotProps:p={},slots:h={},TransitionProps:g}=t,b=se(t,PI),m=S.useRef(null),y=Li(m,n),x=S.useRef(null),w=Li(x,f),C=S.useRef(w);or(()=>{C.current=w},[w]),S.useImperativeHandle(f,()=>x.current,[]);const k=EI(c,s),[$,P]=S.useState(k),[R,M]=S.useState(om(o));S.useEffect(()=>{x.current&&x.current.forceUpdate()}),S.useEffect(()=>{o&&M(om(o))},[o]),or(()=>{if(!R||!u)return;const I=j=>{P(j.placement)};let L=[{name:"preventOverflow",options:{altBoundary:a}},{name:"flip",options:{altBoundary:a}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:j})=>{I(j)}}];l!=null&&(L=L.concat(l)),d&&d.modifiers!=null&&(L=L.concat(d.modifiers));const F=SI(R,m.current,A({placement:k},d,{modifiers:L}));return C.current(F),()=>{F.destroy(),C.current(null)}},[R,a,l,u,d,k]);const O={placement:$};g!==null&&(O.TransitionProps=g);const E=_I(t),_=(r=h.root)!=null?r:"div",T=On({elementType:_,externalSlotProps:p.root,externalForwardedProps:b,additionalProps:{role:"tooltip",ref:y},ownerState:t,className:E.root});return v.jsx(_,A({},T,{children:typeof i=="function"?i(O):i}))}),RI=S.forwardRef(function(t,n){const{anchorEl:r,children:o,container:i,direction:s="ltr",disablePortal:a=!1,keepMounted:l=!1,modifiers:u,open:c,placement:d="bottom",popperOptions:f=AI,popperRef:p,style:h,transition:g=!1,slotProps:b={},slots:m={}}=t,y=se(t,TI),[x,w]=S.useState(!0),C=()=>{w(!1)},k=()=>{w(!0)};if(!l&&!c&&(!g||x))return null;let $;if(i)$=i;else if(r){const M=om(r);$=M&&MI(M)?wc(M).body:wc(null).body}const P=!c&&l&&(!g||x)?"none":void 0,R=g?{in:c,onEnter:C,onExited:k}:void 0;return v.jsx(CI,{disablePortal:a,container:$,children:v.jsx(OI,A({anchorEl:r,direction:s,disablePortal:a,modifiers:u,ref:n,open:g?!x:c,placement:d,popperOptions:f,popperRef:p,slotProps:b,slots:m},y,{style:A({position:"fixed",top:0,left:0,display:P},h),TransitionProps:R,children:o}))})}),jI=["anchorEl","component","components","componentsProps","container","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","transition","slots","slotProps"],II=qe(RI,{name:"MuiPopper",slot:"Root",overridesResolver:(e,t)=>t.root})({}),LI=S.forwardRef(function(t,n){var r;const o=WC(),i=Ug({props:t,name:"MuiPopper"}),{anchorEl:s,component:a,components:l,componentsProps:u,container:c,disablePortal:d,keepMounted:f,modifiers:p,open:h,placement:g,popperOptions:b,popperRef:m,transition:y,slots:x,slotProps:w}=i,C=se(i,jI),k=(r=x==null?void 0:x.root)!=null?r:l==null?void 0:l.Root,$=A({anchorEl:s,container:c,disablePortal:d,keepMounted:f,modifiers:p,open:h,placement:g,popperOptions:b,popperRef:m,transition:y},C);return v.jsx(II,A({as:a,direction:o==null?void 0:o.direction,slots:{root:k},slotProps:w??u},$,{ref:n}))});function e5(e){const{children:t,defer:n=!1,fallback:r=null}=e,[o,i]=S.useState(!1);return or(()=>{n||i(!0)},[n]),S.useEffect(()=>{n&&i(!0)},[n]),v.jsx(S.Fragment,{children:o?t:r})}const ml=S.createContext({item:null,axis:{x:null,y:null},useVoronoiInteraction:!1,dispatch:()=>null}),NI=(e,t)=>{switch(t.type){case"enterItem":return A({},e,{item:t.data});case"exitChart":return e.item===null&&e.axis.x===null&&e.axis.y===null?e:A({},e,{axis:{x:null,y:null},item:null});case"updateVoronoiUsage":return A({},e,{useVoronoiInteraction:t.useVoronoiInteraction});case"leaveItem":return e.item===null||Object.keys(t.data).some(n=>t.data[n]!==e.item[n])?e:A({},e,{item:null});case"updateAxis":return t.data.x===e.axis.x&&t.data.y===e.axis.y?e:A({},e,{axis:t.data});default:return e}};function DI(e){const{children:t}=e,[n,r]=S.useReducer(NI,{item:null,axis:{x:null,y:null},useVoronoiInteraction:!1}),o=S.useMemo(()=>A({},n,{dispatch:r}),[n]);return v.jsx(ml.Provider,{value:o,children:t})}function FI(e){if(e===null)return{getBoundingClientRect:()=>({width:0,height:0,x:0,y:0,top:0,right:0,bottom:0,left:0,toJSON:()=>""})};const{x:t,y:n}=e,r={width:0,height:0,x:t,y:n,top:n,right:t,bottom:n,left:t};return{getBoundingClientRect:()=>A({},r,{toJSON:()=>JSON.stringify(r)})}}function zI(){const e=DC(),[t,n]=S.useState(null);return S.useEffect(()=>{const r=e.current;if(r===null)return()=>{};const o=()=>{n(null)},i=s=>{n({x:s.clientX,y:s.clientY,height:s.height,pointerType:s.pointerType})};return r.addEventListener("pointerdown",i),r.addEventListener("pointermove",i),r.addEventListener("pointerup",o),()=>{r.removeEventListener("pointerdown",i),r.removeEventListener("pointermove",i),r.removeEventListener("pointerup",o)}},[e]),t}function VI(e,t){if(e==="item")return t!==null;const n=t.x!==null,r=t.y!==null;return n||r}function HI(e){return e instanceof Date?e.toUTCString():e.toLocaleString()}function WI(e){return Hn("MuiChartsTooltip",e)}const Ax=fr("MuiChartsTooltip",["root","table","row","cell","mark","markCell","labelCell","valueCell"]),t5=qe("div",{name:"MuiChartsTooltip",slot:"Container"})(({theme:e})=>({boxShadow:e.shadows[1],backgroundColor:(e.vars||e).palette.background.paper,color:(e.vars||e).palette.text.primary,transition:e.transitions.create("box-shadow"),borderRadius:e.shape.borderRadius})),n5=qe("table",{name:"MuiChartsTooltip",slot:"Table"})(({theme:e})=>({borderSpacing:0,"& thead td":{borderBottom:`solid ${(e.vars||e).palette.divider} 1px`}})),im=qe("tr",{name:"MuiChartsTooltip",slot:"Row"})(({theme:e})=>({"tr:first-of-type& td":{paddingTop:e.spacing(1)},"tr:last-of-type& td":{paddingBottom:e.spacing(1)}})),mo=qe("td",{name:"MuiChartsTooltip",slot:"Cell"})(({theme:e})=>({verticalAlign:"middle",color:(e.vars||e).palette.text.secondary,[`&.${Ax.labelCell}`]:{paddingLeft:e.spacing(1)},[`&.${Ax.valueCell}`]:{paddingLeft:e.spacing(4),color:(e.vars||e).palette.text.primary},"td:first-of-type&":{paddingLeft:e.spacing(2)},"td:last-of-type&":{paddingRight:e.spacing(2)}})),r5=qe("div",{name:"MuiChartsTooltip",slot:"Mark",shouldForwardProp:e=>JA(e)&&e!=="color"})(({theme:e,color:t})=>({width:e.spacing(1),height:e.spacing(1),borderRadius:"50%",boxShadow:e.shadows[1],backgroundColor:t,borderColor:(e.vars||e).palette.background.paper,border:`solid ${(e.vars||e).palette.background.paper} ${e.spacing(.25)}`,boxSizing:"content-box"}));function UI(e){var c;const{series:t,itemData:n,sx:r,classes:o,getColor:i}=e;if(n.dataIndex===void 0||!t.data[n.dataIndex])return null;const{displayedLabel:s,color:a}=t.type==="pie"?{color:i(n.dataIndex),displayedLabel:xn(t.data[n.dataIndex].label,"tooltip")}:{color:i(n.dataIndex),displayedLabel:xn(t.label,"tooltip")},l=t.type==="pie"?A({},t.data[n.dataIndex],{label:xn(t.data[n.dataIndex].label,"tooltip")}):t.data[n.dataIndex],u=(c=t.valueFormatter)==null?void 0:c.call(t,l,{dataIndex:n.dataIndex});return v.jsx(t5,{sx:r,className:o.root,children:v.jsx(n5,{className:o.table,children:v.jsx("tbody",{children:v.jsxs(im,{className:o.row,children:[v.jsx(mo,{className:Zt(o.markCell,o.cell),children:v.jsx(r5,{color:a,className:o.mark})}),v.jsx(mo,{className:Zt(o.labelCell,o.cell),children:s}),v.jsx(mo,{className:Zt(o.valueCell,o.cell),children:u})]})})})})}function BI(e){var w;const{content:t,itemData:n,sx:r,classes:o,contentProps:i}=e,s=No()[n.type].series[n.seriesId],{xAxis:a,yAxis:l,xAxisIds:u,yAxisIds:c}=Yr(),{zAxis:d,zAxisIds:f}=S.useContext(E0),p=cC(),h=s.xAxisId??s.xAxisKey??u[0],g=s.yAxisId??s.yAxisKey??c[0],b=s.zAxisId??s.zAxisKey??f[0],m=((w=p[s.type])==null?void 0:w.call(p,s,h&&a[h],g&&l[g],b&&d[b]))??(()=>""),y=t??UI,x=On({elementType:y,externalSlotProps:i,additionalProps:{itemData:n,series:s,sx:r,classes:o,getColor:m},ownerState:{}});return v.jsx(y,A({},x))}function GI(e){return Hn("MuiTypography",e)}fr("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const KI=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],YI=e=>{const{align:t,gutterBottom:n,noWrap:r,paragraph:o,variant:i,classes:s}=e,a={root:["root",i,e.align!=="inherit"&&`align${Nn(t)}`,n&&"gutterBottom",r&&"noWrap",o&&"paragraph"]};return Vn(a,GI,s)},qI=qe("span",{name:"MuiTypography",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.variant&&t[n.variant],n.align!=="inherit"&&t[`align${Nn(n.align)}`],n.noWrap&&t.noWrap,n.gutterBottom&&t.gutterBottom,n.paragraph&&t.paragraph]}})(({theme:e,ownerState:t})=>A({margin:0},t.variant==="inherit"&&{font:"inherit"},t.variant!=="inherit"&&e.typography[t.variant],t.align!=="inherit"&&{textAlign:t.align},t.noWrap&&{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},t.gutterBottom&&{marginBottom:"0.35em"},t.paragraph&&{marginBottom:16})),Ox={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},XI={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},QI=e=>XI[e]||e,Cp=S.forwardRef(function(t,n){const r=Ug({props:t,name:"MuiTypography"}),o=QI(r.color),i=Vk(A({},r,{color:o})),{align:s="inherit",className:a,component:l,gutterBottom:u=!1,noWrap:c=!1,paragraph:d=!1,variant:f="body1",variantMapping:p=Ox}=i,h=se(i,KI),g=A({},i,{align:s,color:o,className:a,component:l,gutterBottom:u,noWrap:c,paragraph:d,variant:f,variantMapping:p}),b=l||(d?"p":p[f]||Ox[f])||"span",m=YI(g);return v.jsx(qI,A({as:b,ref:n,ownerState:g,className:Zt(m.root,a)},h))});let Rx;class ZI{constructor(){if(this.types=new Set,Rx)throw new Error("You can only create one instance!");Rx=this.types}addType(t){this.types.add(t)}getTypes(){return this.types}}const df=new ZI;df.addType("bar");df.addType("line");df.addType("scatter");function o5(e){return df.getTypes().has(e)}function JI(e){return o5(e.type)}function e7(e){const{series:t,axis:n,dataIndex:r,axisValue:o,sx:i,classes:s}=e;if(r==null)return null;const a=n.valueFormatter??(l=>n.scaleType==="utc"?HI(l):l.toLocaleString());return v.jsx(t5,{sx:i,className:s.root,children:v.jsxs(n5,{className:s.table,children:[o!=null&&!n.hideTooltip&&v.jsx("thead",{children:v.jsx(im,{children:v.jsx(mo,{colSpan:3,children:v.jsx(Cp,{children:a(o,{location:"tooltip"})})})})}),v.jsx("tbody",{children:t.filter(JI).map(({id:l,label:u,valueFormatter:c,data:d,getColor:f})=>{const p=c(d[r]??null,{dataIndex:r});if(p==null)return null;const h=xn(u,"tooltip"),g=f(r);return v.jsxs(im,{className:s.row,children:[v.jsx(mo,{className:Zt(s.markCell,s.cell),children:g&&v.jsx(r5,{color:g,className:s.mark})}),v.jsx(mo,{className:Zt(s.labelCell,s.cell),children:h?v.jsx(Cp,{children:h}):null}),v.jsx(mo,{className:Zt(s.valueCell,s.cell),children:v.jsx(Cp,{children:p})})]},l)})})]})})}function t7(e){const{content:t,contentProps:n,axisData:r,sx:o,classes:i}=e,s=(r.x&&r.x.index)!==void 0,a=s?r.x&&r.x.index:r.y&&r.y.index,l=s?r.x&&r.x.value:r.y&&r.y.value,{xAxisIds:u,xAxis:c,yAxisIds:d,yAxis:f}=Yr(),{zAxisIds:p,zAxis:h}=S.useContext(E0),g=No(),b=cC(),m=s?u[0]:d[0],y=S.useMemo(()=>{const k=[];return Object.keys(g).filter(o5).forEach($=>{g[$].seriesOrder.forEach(P=>{var _;const R=g[$].series[P],M=R.xAxisId??R.xAxisKey,O=R.yAxisId??R.yAxisKey,E=s?M:O;if(E===void 0||E===m){const T=g[$].series[P],I=M??u[0],L=O??d[0],F=T.zAxisId??T.zAxisKey??p[0],j=((_=b[$])==null?void 0:_.call(b,T,c[I],f[L],F&&h[F]))??(()=>"");k.push(A({},T,{getColor:j}))}})}),k},[m,b,s,g,c,u,f,d,h,p]),x=S.useMemo(()=>s?c[m]:f[m],[m,s,c,f]),w=t??e7,C=On({elementType:w,externalSlotProps:n,additionalProps:{axisData:r,series:y,axis:x,dataIndex:a,axisValue:l,sx:o,classes:i},ownerState:{}});return v.jsx(w,A({},C))}const n7=e=>{const{classes:t}=e;return Vn({root:["root"],table:["table"],row:["row"],cell:["cell"],mark:["mark"],markCell:["markCell"],labelCell:["labelCell"],valueCell:["valueCell"]},WI,t)},r7=qe(LI,{name:"MuiChartsTooltip",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({pointerEvents:"none",zIndex:e.zIndex.modal}));function o7(e){const t=nf({props:e,name:"MuiChartsTooltip"}),{trigger:n="axis",itemContent:r,axisContent:o,slots:i,slotProps:s}=t,a=zI(),{item:l,axis:u}=S.useContext(ml),c=n==="item"?l:u,d=VI(n,c),f=a!==null&&d,p=n7({classes:t.classes}),h=(i==null?void 0:i.popper)??r7,g=On({elementType:h,externalSlotProps:s==null?void 0:s.popper,additionalProps:{open:f,placement:(a==null?void 0:a.pointerType)==="mouse"?"right-start":"top",anchorEl:FI(a),modifiers:[{name:"offset",options:{offset:[0,(a==null?void 0:a.pointerType)==="touch"?40-a.height:0]}}]},ownerState:{}});return n==="none"?null:v.jsx(e5,{children:f&&v.jsx(h,A({},g,{children:n==="item"?v.jsx(BI,{itemData:c,content:(i==null?void 0:i.itemContent)??r,contentProps:s==null?void 0:s.itemContent,sx:{mx:2},classes:p}):v.jsx(t7,{axisData:c,content:(i==null?void 0:i.axisContent)??o,contentProps:s==null?void 0:s.axisContent,sx:{mx:2},classes:p})}))})}const i7=e=>{const{seriesOrder:t,series:n}=e;return t.reduce((r,o)=>{const i=xn(n[o].label,"legend");return i===void 0||r.push({color:n[o].color,label:i,id:o}),r},[])},s7=e=>{const{seriesOrder:t,series:n}=e;return t.reduce((r,o)=>{const i=xn(n[o].label,"legend");return i===void 0||r.push({color:n[o].color,label:i,id:o}),r},[])},a7=e=>{const{seriesOrder:t,series:n}=e;return t.reduce((r,o)=>{const i=xn(n[o].label,"legend");return i===void 0||r.push({color:n[o].color,label:i,id:o}),r},[])},l7=e=>{const{seriesOrder:t,series:n}=e;return t.reduce((r,o)=>(n[o].data.forEach(i=>{const s=xn(i.label,"legend");s!==void 0&&r.push({color:i.color,label:s,id:i.id})}),r),[])},u7={bar:i7,scatter:s7,line:a7,pie:l7};function c7(e){return Object.keys(e).flatMap(t=>{const n=u7[t];return n===void 0?[]:n(e[t])})}function d7(e){return Hn("MuiChartsLegend",e)}fr("MuiChartsLegend",["root","series","mark","label","column","row"]);const f7=["label"];function p7(e,t,n,r,o,i,s){let a=0,l=0,u=0,c=0,d=0;const f=[0];return[e.map(h=>{let{label:g}=h,b=se(h,f7);const m=t(g,n),y=A({},b,{label:g,positionX:a,positionY:l,innerHeight:m.innerHeight,innerWidth:m.innerWidth,outerHeight:m.outerHeight,outerWidth:m.outerWidth,rowIndex:d});return r==="row"&&(a+m.innerWidth>o&&(a=0,l+=f[d],d+=1,f.length<=d&&f.push(0),y.positionX=a,y.positionY=l,y.rowIndex=d),u=Math.max(u,a+m.outerWidth),c=Math.max(c,l+m.outerHeight),f[d]=Math.max(f[d],m.outerHeight),a+=m.outerWidth),r==="column"&&(l+m.innerHeight>i&&(a=u+s,l=0,d=0,y.positionX=a,y.positionY=l,y.rowIndex=d),f.length<=d&&f.push(0),u=Math.max(u,a+m.outerWidth),c=Math.max(c,l+m.outerHeight),d+=1,l+=m.outerHeight),y}).map(h=>A({},h,{positionY:h.positionY+(r==="row"?f[h.rowIndex]/2:h.outerHeight/2)})),u,c]}const h7=["rotate","dominantBaseline"],m7=qe("g",{name:"MuiChartsLegend",slot:"Root",overridesResolver:(e,t)=>t.root})({}),g7=e=>typeof e=="number"?{left:e,right:e,top:e,bottom:e}:A({left:0,right:0,top:0,bottom:0},e);function v7(e){const{hidden:t,position:n,direction:r,itemsToDisplay:o,classes:i,itemMarkWidth:s=20,itemMarkHeight:a=20,markGap:l=5,itemGap:u=10,padding:c=10,labelStyle:d}=e,f=is(),p=f.direction==="rtl",h=pr(),g=S.useMemo(()=>A({},f.typography.subtitle1,{color:"inherit",dominantBaseline:"central",textAnchor:"start",fill:(f.vars||f).palette.text.primary,lineHeight:1},d),[d,f]),b=S.useMemo(()=>g7(c),[c]),m=S.useCallback((O,E={})=>{const _=se(E,h7),T=M0({style:_,needsComputation:!0,text:O}),I={innerWidth:s+l+Math.max(...T.map(L=>L.width)),innerHeight:Math.max(a,T.length*T[0].height)};return A({},I,{outerWidth:I.innerWidth+u,outerHeight:I.innerHeight+u})},[u,a,s,l]),y=h.left+h.width+h.right,x=h.top+h.height+h.bottom,w=y-b.left-b.right,C=x-b.top-b.bottom,[k,$,P]=S.useMemo(()=>p7(o,m,g,r,w,C,u),[o,m,g,r,w,C,u]),R=S.useMemo(()=>{switch(n.horizontal){case"left":return b.left;case"right":return y-b.right-$;default:return(y-$)/2}},[n.horizontal,b.left,b.right,y,$]),M=S.useMemo(()=>{switch(n.vertical){case"top":return b.top;case"bottom":return x-b.bottom-P;default:return(x-P)/2}},[n.vertical,b.top,b.bottom,x,P]);return t?null:v.jsx(e5,{children:v.jsx(m7,{className:i==null?void 0:i.root,children:k.map(({id:O,label:E,color:_,positionX:T,positionY:I})=>v.jsxs("g",{className:i==null?void 0:i.series,transform:`translate(${R+(p?$-T:T)} ${M+I})`,children:[v.jsx("rect",{className:i==null?void 0:i.mark,x:p?-s:0,y:-a/2,width:s,height:a,fill:_}),v.jsx(Na,{style:g,text:E,x:(p?-1:1)*(s+l),y:0})]},O))})})}const y7=["drawingArea","seriesToDisplay"];function x7(e){const{seriesToDisplay:t}=e,n=se(e,y7);return v.jsx(v7,A({},n,{itemsToDisplay:t}))}const b7=e=>{const{classes:t,direction:n}=e;return Vn({root:["root",n],mark:["mark"],label:["label"],series:["series"]},d7,t)},w7={position:{horizontal:"middle",vertical:"top"},direction:"row"};function S7(e){const t=nf({props:A({},w7,e),name:"MuiChartsLegend"}),{position:n,direction:r,hidden:o,slots:i,slotProps:s}=t,a=is(),l=b7(A({},t,{theme:a})),u=pr(),c=No(),d=c7(c),f=(i==null?void 0:i.legend)??x7,p=On({elementType:f,externalSlotProps:s==null?void 0:s.legend,additionalProps:{position:n,direction:r,classes:l,drawingArea:u,series:c,hidden:o,seriesToDisplay:d},ownerState:{}});return v.jsx(f,A({},p))}const k7=10;function jx(e){const{gradientUnits:t,isReversed:n,gradientId:r,size:o,direction:i,scale:s,colorScale:a,colorMap:l}=e,u=[l.min??0,l.max??100],c=u.map(s).filter(h=>h!==void 0);if(c.length!==2)return null;const d=typeof u[0]=="number"?ja(u[0],u[1]):gC(u[0],u[1]),f=Math.round((Math.max(...c)-Math.min(...c))/k7),p=`${u[0]}-${u[1]}-`;return v.jsx("linearGradient",{id:r,x1:"0",x2:"0",y1:"0",y2:"0",[`${i}${n?1:2}`]:t==="objectBoundingBox"?1:`${o}px`,gradientUnits:t??"userSpaceOnUse",children:Array.from({length:f+1},(h,g)=>{const b=d(g/f);if(b===void 0)return null;const m=s(b);if(m===void 0)return null;const y=n?1-m/o:m/o,x=a(b);return x===null?null:v.jsx("stop",{offset:y,stopColor:x,stopOpacity:1},p+g)})})}function lo(e,t){if(typeof e=="number")return e;if(e==="100%")return t;if(e.endsWith("%")){const n=Number.parseFloat(e.slice(0,e.length-1));if(!Number.isNaN(n))return n*t/100}if(e.endsWith("px")){const n=Number.parseFloat(e.slice(0,e.length-2));if(!Number.isNaN(n))return n}throw Error(`MUI X: Received an unknown value "${e}". It should be a number, or a string with a percentage value.`)}function C7(e){return Hn("MuiChartsAxisHighlight",e)}fr("MuiChartsAxisHighlight",["root"]);const $7=()=>Vn({root:["root"]},C7),lu=qe("path",{name:"MuiChartsAxisHighlight",slot:"Root",overridesResolver:(e,t)=>t.root})(({ownerState:e,theme:t})=>A({pointerEvents:"none"},e.axisHighlight==="band"&&{fill:t.palette.mode==="light"?"gray":"white",fillOpacity:.1},e.axisHighlight==="line"&&{strokeDasharray:"5 2",stroke:t.palette.mode==="light"?"#000000":"#ffffff"}));function P7(e){const{x:t,y:n}=e,{xAxisIds:r,xAxis:o,yAxisIds:i,yAxis:s}=Yr(),a=$7(),l=r[0],u=i[0],c=o[l].scale,d=s[u].scale,{axis:f}=S.useContext(ml),p=vx(c),h=vx(d),g=f.x,b=f.y,m=t==="band"&&g!==null&&La(c),y=n==="band"&&b!==null&&La(d);return v.jsxs(S.Fragment,{children:[m&&c(g.value)!==void 0&&v.jsx(lu,{d:`M ${c(g.value)-(c.step()-c.bandwidth())/2} ${d.range()[0]} l ${c.step()} 0 l 0 ${d.range()[1]-d.range()[0]} l ${-c.step()} 0 Z`,className:a.root,ownerState:{axisHighlight:"band"}}),y&&d(b.value)!==void 0&&v.jsx(lu,{d:`M ${c.range()[0]} ${d(b.value)-(d.step()-d.bandwidth())/2} l 0 ${d.step()} l ${c.range()[1]-c.range()[0]} 0 l 0 ${-d.step()} Z`,className:a.root,ownerState:{axisHighlight:"band"}}),t==="line"&&f.x!==null&&v.jsx(lu,{d:`M ${p(f.x.value)} ${d.range()[0]} L ${p(f.x.value)} ${d.range()[1]}`,className:a.root,ownerState:{axisHighlight:"line"}}),n==="line"&&f.y!==null&&v.jsx(lu,{d:`M ${c.range()[0]} ${h(f.y.value)} L ${c.range()[1]} ${h(f.y.value)}`,className:a.root,ownerState:{axisHighlight:"line"}})]})}function T7(e,t){const n=e.createSVGPoint();return n.x=t.clientX,n.y=t.clientY,n.matrixTransform(e.getScreenCTM().inverse())}var D0=vl(),Z=e=>gl(e,D0),F0=vl();Z.write=e=>gl(e,F0);var ff=vl();Z.onStart=e=>gl(e,ff);var z0=vl();Z.onFrame=e=>gl(e,z0);var V0=vl();Z.onFinish=e=>gl(e,V0);var Ci=[];Z.setTimeout=(e,t)=>{const n=Z.now()+t,r=()=>{const i=Ci.findIndex(s=>s.cancel==r);~i&&Ci.splice(i,1),Er-=~i?1:0},o={time:n,handler:e,cancel:r};return Ci.splice(i5(n),0,o),Er+=1,s5(),o};var i5=e=>~(~Ci.findIndex(t=>t.time>e)||~Ci.length);Z.cancel=e=>{ff.delete(e),z0.delete(e),V0.delete(e),D0.delete(e),F0.delete(e)};Z.sync=e=>{sm=!0,Z.batchedUpdates(e),sm=!1};Z.throttle=e=>{let t;function n(){try{e(...t)}finally{t=null}}function r(...o){t=o,Z.onStart(n)}return r.handler=e,r.cancel=()=>{ff.delete(n),t=null},r};var H0=typeof window<"u"?window.requestAnimationFrame:()=>{};Z.use=e=>H0=e;Z.now=typeof performance<"u"?()=>performance.now():Date.now;Z.batchedUpdates=e=>e();Z.catch=console.error;Z.frameLoop="always";Z.advance=()=>{Z.frameLoop!=="demand"?console.warn("Cannot call the manual advancement of rafz whilst frameLoop is not set as demand"):l5()};var Tr=-1,Er=0,sm=!1;function gl(e,t){sm?(t.delete(e),e(0)):(t.add(e),s5())}function s5(){Tr<0&&(Tr=0,Z.frameLoop!=="demand"&&H0(a5))}function E7(){Tr=-1}function a5(){~Tr&&(H0(a5),Z.batchedUpdates(l5))}function l5(){const e=Tr;Tr=Z.now();const t=i5(Tr);if(t&&(u5(Ci.splice(0,t),n=>n.handler()),Er-=t),!Er){E7();return}ff.flush(),D0.flush(e?Math.min(64,Tr-e):16.667),z0.flush(),F0.flush(),V0.flush()}function vl(){let e=new Set,t=e;return{add(n){Er+=t==e&&!e.has(n)?1:0,e.add(n)},delete(n){return Er-=t==e&&e.has(n)?1:0,e.delete(n)},flush(n){t.size&&(e=new Set,Er-=t.size,u5(t,r=>r(n)&&e.add(r)),Er+=e.size,t=e)}}}function u5(e,t){e.forEach(n=>{try{t(n)}catch(r){Z.catch(r)}})}var M7=Object.defineProperty,_7=(e,t)=>{for(var n in t)M7(e,n,{get:t[n],enumerable:!0})},Lt={};_7(Lt,{assign:()=>O7,colors:()=>Nr,createStringInterpolator:()=>U0,skipAnimation:()=>d5,to:()=>c5,willAdvance:()=>B0});function am(){}var A7=(e,t,n)=>Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0}),H={arr:Array.isArray,obj:e=>!!e&&e.constructor.name==="Object",fun:e=>typeof e=="function",str:e=>typeof e=="string",num:e=>typeof e=="number",und:e=>e===void 0};function Kn(e,t){if(H.arr(e)){if(!H.arr(t)||e.length!==t.length)return!1;for(let n=0;ne.forEach(t);function Fn(e,t,n){if(H.arr(e)){for(let r=0;rH.und(e)?[]:H.arr(e)?e:[e];function ea(e,t){if(e.size){const n=Array.from(e);e.clear(),ee(n,t)}}var Ds=(e,...t)=>ea(e,n=>n(...t)),W0=()=>typeof window>"u"||!window.navigator||/ServerSideRendering|^Deno\//.test(window.navigator.userAgent),U0,c5,Nr=null,d5=!1,B0=am,O7=e=>{e.to&&(c5=e.to),e.now&&(Z.now=e.now),e.colors!==void 0&&(Nr=e.colors),e.skipAnimation!=null&&(d5=e.skipAnimation),e.createStringInterpolator&&(U0=e.createStringInterpolator),e.requestAnimationFrame&&Z.use(e.requestAnimationFrame),e.batchedUpdates&&(Z.batchedUpdates=e.batchedUpdates),e.willAdvance&&(B0=e.willAdvance),e.frameLoop&&(Z.frameLoop=e.frameLoop)},ta=new Set,Kt=[],$p=[],Fc=0,pf={get idle(){return!ta.size&&!Kt.length},start(e){Fc>e.priority?(ta.add(e),Z.onStart(R7)):(f5(e),Z(lm))},advance:lm,sort(e){if(Fc)Z.onFrame(()=>pf.sort(e));else{const t=Kt.indexOf(e);~t&&(Kt.splice(t,1),p5(e))}},clear(){Kt=[],ta.clear()}};function R7(){ta.forEach(f5),ta.clear(),Z(lm)}function f5(e){Kt.includes(e)||p5(e)}function p5(e){Kt.splice(j7(Kt,t=>t.priority>e.priority),0,e)}function lm(e){const t=$p;for(let n=0;n0}function j7(e,t){const n=e.findIndex(t);return n<0?e.length:n}var I7=(e,t,n)=>Math.min(Math.max(n,e),t),L7={transparent:0,aliceblue:4042850303,antiquewhite:4209760255,aqua:16777215,aquamarine:2147472639,azure:4043309055,beige:4126530815,bisque:4293182719,black:255,blanchedalmond:4293643775,blue:65535,blueviolet:2318131967,brown:2771004159,burlywood:3736635391,burntsienna:3934150143,cadetblue:1604231423,chartreuse:2147418367,chocolate:3530104575,coral:4286533887,cornflowerblue:1687547391,cornsilk:4294499583,crimson:3692313855,cyan:16777215,darkblue:35839,darkcyan:9145343,darkgoldenrod:3095792639,darkgray:2846468607,darkgreen:6553855,darkgrey:2846468607,darkkhaki:3182914559,darkmagenta:2332068863,darkolivegreen:1433087999,darkorange:4287365375,darkorchid:2570243327,darkred:2332033279,darksalmon:3918953215,darkseagreen:2411499519,darkslateblue:1211993087,darkslategray:793726975,darkslategrey:793726975,darkturquoise:13554175,darkviolet:2483082239,deeppink:4279538687,deepskyblue:12582911,dimgray:1768516095,dimgrey:1768516095,dodgerblue:512819199,firebrick:2988581631,floralwhite:4294635775,forestgreen:579543807,fuchsia:4278255615,gainsboro:3705462015,ghostwhite:4177068031,gold:4292280575,goldenrod:3668254975,gray:2155905279,green:8388863,greenyellow:2919182335,grey:2155905279,honeydew:4043305215,hotpink:4285117695,indianred:3445382399,indigo:1258324735,ivory:4294963455,khaki:4041641215,lavender:3873897215,lavenderblush:4293981695,lawngreen:2096890111,lemonchiffon:4294626815,lightblue:2916673279,lightcoral:4034953471,lightcyan:3774873599,lightgoldenrodyellow:4210742015,lightgray:3553874943,lightgreen:2431553791,lightgrey:3553874943,lightpink:4290167295,lightsalmon:4288707327,lightseagreen:548580095,lightskyblue:2278488831,lightslategray:2005441023,lightslategrey:2005441023,lightsteelblue:2965692159,lightyellow:4294959359,lime:16711935,limegreen:852308735,linen:4210091775,magenta:4278255615,maroon:2147483903,mediumaquamarine:1724754687,mediumblue:52735,mediumorchid:3126187007,mediumpurple:2473647103,mediumseagreen:1018393087,mediumslateblue:2070474495,mediumspringgreen:16423679,mediumturquoise:1221709055,mediumvioletred:3340076543,midnightblue:421097727,mintcream:4127193855,mistyrose:4293190143,moccasin:4293178879,navajowhite:4292783615,navy:33023,oldlace:4260751103,olive:2155872511,olivedrab:1804477439,orange:4289003775,orangered:4282712319,orchid:3664828159,palegoldenrod:4008225535,palegreen:2566625535,paleturquoise:2951671551,palevioletred:3681588223,papayawhip:4293907967,peachpuff:4292524543,peru:3448061951,pink:4290825215,plum:3718307327,powderblue:2967529215,purple:2147516671,rebeccapurple:1714657791,red:4278190335,rosybrown:3163525119,royalblue:1097458175,saddlebrown:2336560127,salmon:4202722047,sandybrown:4104413439,seagreen:780883967,seashell:4294307583,sienna:2689740287,silver:3233857791,skyblue:2278484991,slateblue:1784335871,slategray:1887473919,slategrey:1887473919,snow:4294638335,springgreen:16744447,steelblue:1182971135,tan:3535047935,teal:8421631,thistle:3636451583,tomato:4284696575,turquoise:1088475391,violet:4001558271,wheat:4125012991,white:4294967295,whitesmoke:4126537215,yellow:4294902015,yellowgreen:2597139199},gn="[-+]?\\d*\\.?\\d+",zc=gn+"%";function hf(...e){return"\\(\\s*("+e.join(")\\s*,\\s*(")+")\\s*\\)"}var N7=new RegExp("rgb"+hf(gn,gn,gn)),D7=new RegExp("rgba"+hf(gn,gn,gn,gn)),F7=new RegExp("hsl"+hf(gn,zc,zc)),z7=new RegExp("hsla"+hf(gn,zc,zc,gn)),V7=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,H7=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,W7=/^#([0-9a-fA-F]{6})$/,U7=/^#([0-9a-fA-F]{8})$/;function B7(e){let t;return typeof e=="number"?e>>>0===e&&e>=0&&e<=4294967295?e:null:(t=W7.exec(e))?parseInt(t[1]+"ff",16)>>>0:Nr&&Nr[e]!==void 0?Nr[e]:(t=N7.exec(e))?(Yo(t[1])<<24|Yo(t[2])<<16|Yo(t[3])<<8|255)>>>0:(t=D7.exec(e))?(Yo(t[1])<<24|Yo(t[2])<<16|Yo(t[3])<<8|Nx(t[4]))>>>0:(t=V7.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+"ff",16)>>>0:(t=U7.exec(e))?parseInt(t[1],16)>>>0:(t=H7.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+t[4]+t[4],16)>>>0:(t=F7.exec(e))?(Ix(Lx(t[1]),uu(t[2]),uu(t[3]))|255)>>>0:(t=z7.exec(e))?(Ix(Lx(t[1]),uu(t[2]),uu(t[3]))|Nx(t[4]))>>>0:null}function Pp(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 Ix(e,t,n){const r=n<.5?n*(1+t):n+t-n*t,o=2*n-r,i=Pp(o,r,e+1/3),s=Pp(o,r,e),a=Pp(o,r,e-1/3);return Math.round(i*255)<<24|Math.round(s*255)<<16|Math.round(a*255)<<8}function Yo(e){const t=parseInt(e,10);return t<0?0:t>255?255:t}function Lx(e){return(parseFloat(e)%360+360)%360/360}function Nx(e){const t=parseFloat(e);return t<0?0:t>1?255:Math.round(t*255)}function uu(e){const t=parseFloat(e);return t<0?0:t>100?1:t/100}function Dx(e){let t=B7(e);if(t===null)return e;t=t||0;const n=(t&4278190080)>>>24,r=(t&16711680)>>>16,o=(t&65280)>>>8,i=(t&255)/255;return`rgba(${n}, ${r}, ${o}, ${i})`}var za=(e,t,n)=>{if(H.fun(e))return e;if(H.arr(e))return za({range:e,output:t,extrapolate:n});if(H.str(e.output[0]))return U0(e);const r=e,o=r.output,i=r.range||[0,1],s=r.extrapolateLeft||r.extrapolate||"extend",a=r.extrapolateRight||r.extrapolate||"extend",l=r.easing||(u=>u);return u=>{const c=K7(u,i);return G7(u,i[c],i[c+1],o[c],o[c+1],l,s,a,r.map)}};function G7(e,t,n,r,o,i,s,a,l){let u=l?l(e):e;if(un){if(a==="identity")return u;a==="clamp"&&(u=n)}return r===o?r:t===n?e<=t?r:o:(t===-1/0?u=-u:n===1/0?u=u-t:u=(u-t)/(n-t),u=i(u),r===-1/0?u=-u:o===1/0?u=u+r:u=u*(o-r)+r,u)}function K7(e,t){for(var n=1;n=e);++n);return n-1}var Y7=(e,t="end")=>n=>{n=t==="end"?Math.min(n,.999):Math.max(n,.001);const r=n*e,o=t==="end"?Math.floor(r):Math.ceil(r);return I7(0,1,o/e)},Vc=1.70158,cu=Vc*1.525,Fx=Vc+1,zx=2*Math.PI/3,Vx=2*Math.PI/4.5,du=e=>e<1/2.75?7.5625*e*e:e<2/2.75?7.5625*(e-=1.5/2.75)*e+.75:e<2.5/2.75?7.5625*(e-=2.25/2.75)*e+.9375:7.5625*(e-=2.625/2.75)*e+.984375,q7={linear:e=>e,easeInQuad:e=>e*e,easeOutQuad:e=>1-(1-e)*(1-e),easeInOutQuad:e=>e<.5?2*e*e:1-Math.pow(-2*e+2,2)/2,easeInCubic:e=>e*e*e,easeOutCubic:e=>1-Math.pow(1-e,3),easeInOutCubic:e=>e<.5?4*e*e*e:1-Math.pow(-2*e+2,3)/2,easeInQuart:e=>e*e*e*e,easeOutQuart:e=>1-Math.pow(1-e,4),easeInOutQuart:e=>e<.5?8*e*e*e*e:1-Math.pow(-2*e+2,4)/2,easeInQuint:e=>e*e*e*e*e,easeOutQuint:e=>1-Math.pow(1-e,5),easeInOutQuint:e=>e<.5?16*e*e*e*e*e:1-Math.pow(-2*e+2,5)/2,easeInSine:e=>1-Math.cos(e*Math.PI/2),easeOutSine:e=>Math.sin(e*Math.PI/2),easeInOutSine:e=>-(Math.cos(Math.PI*e)-1)/2,easeInExpo:e=>e===0?0:Math.pow(2,10*e-10),easeOutExpo:e=>e===1?1:1-Math.pow(2,-10*e),easeInOutExpo:e=>e===0?0:e===1?1:e<.5?Math.pow(2,20*e-10)/2:(2-Math.pow(2,-20*e+10))/2,easeInCirc:e=>1-Math.sqrt(1-Math.pow(e,2)),easeOutCirc:e=>Math.sqrt(1-Math.pow(e-1,2)),easeInOutCirc:e=>e<.5?(1-Math.sqrt(1-Math.pow(2*e,2)))/2:(Math.sqrt(1-Math.pow(-2*e+2,2))+1)/2,easeInBack:e=>Fx*e*e*e-Vc*e*e,easeOutBack:e=>1+Fx*Math.pow(e-1,3)+Vc*Math.pow(e-1,2),easeInOutBack:e=>e<.5?Math.pow(2*e,2)*((cu+1)*2*e-cu)/2:(Math.pow(2*e-2,2)*((cu+1)*(e*2-2)+cu)+2)/2,easeInElastic:e=>e===0?0:e===1?1:-Math.pow(2,10*e-10)*Math.sin((e*10-10.75)*zx),easeOutElastic:e=>e===0?0:e===1?1:Math.pow(2,-10*e)*Math.sin((e*10-.75)*zx)+1,easeInOutElastic:e=>e===0?0:e===1?1:e<.5?-(Math.pow(2,20*e-10)*Math.sin((20*e-11.125)*Vx))/2:Math.pow(2,-20*e+10)*Math.sin((20*e-11.125)*Vx)/2+1,easeInBounce:e=>1-du(1-e),easeOutBounce:du,easeInOutBounce:e=>e<.5?(1-du(1-2*e))/2:(1+du(2*e-1))/2,steps:Y7},Va=Symbol.for("FluidValue.get"),Ki=Symbol.for("FluidValue.observers"),Ut=e=>!!(e&&e[Va]),vt=e=>e&&e[Va]?e[Va]():e,Hx=e=>e[Ki]||null;function X7(e,t){e.eventObserved?e.eventObserved(t):e(t)}function Ha(e,t){const n=e[Ki];n&&n.forEach(r=>{X7(r,t)})}var h5=class{constructor(e){if(!e&&!(e=this.get))throw Error("Unknown getter");Q7(this,e)}},Q7=(e,t)=>m5(e,Va,t);function ss(e,t){if(e[Va]){let n=e[Ki];n||m5(e,Ki,n=new Set),n.has(t)||(n.add(t),e.observerAdded&&e.observerAdded(n.size,t))}return t}function Wa(e,t){const n=e[Ki];if(n&&n.has(t)){const r=n.size-1;r?n.delete(t):e[Ki]=null,e.observerRemoved&&e.observerRemoved(r,t)}}var m5=(e,t,n)=>Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0}),Gu=/[+\-]?(?:0|[1-9]\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,Z7=/(#(?:[0-9a-f]{2}){2,4}|(#[0-9a-f]{3})|(rgb|hsl)a?\((-?\d+%?[,\s]+){2,3}\s*[\d\.]+%?\))/gi,Wx=new RegExp(`(${Gu.source})(%|[a-z]+)`,"i"),J7=/rgba\(([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+)\)/gi,mf=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/,g5=e=>{const[t,n]=eL(e);if(!t||W0())return e;const r=window.getComputedStyle(document.documentElement).getPropertyValue(t);if(r)return r.trim();if(n&&n.startsWith("--")){const o=window.getComputedStyle(document.documentElement).getPropertyValue(n);return o||e}else{if(n&&mf.test(n))return g5(n);if(n)return n}return e},eL=e=>{const t=mf.exec(e);if(!t)return[,];const[,n,r]=t;return[n,r]},Tp,tL=(e,t,n,r,o)=>`rgba(${Math.round(t)}, ${Math.round(n)}, ${Math.round(r)}, ${o})`,v5=e=>{Tp||(Tp=Nr?new RegExp(`(${Object.keys(Nr).join("|")})(?!\\w)`,"g"):/^\b$/);const t=e.output.map(i=>vt(i).replace(mf,g5).replace(Z7,Dx).replace(Tp,Dx)),n=t.map(i=>i.match(Gu).map(Number)),o=n[0].map((i,s)=>n.map(a=>{if(!(s in a))throw Error('The arity of each "output" value must be equal');return a[s]})).map(i=>za({...e,output:i}));return i=>{var l;const s=!Wx.test(t[0])&&((l=t.find(u=>Wx.test(u)))==null?void 0:l.replace(Gu,""));let a=0;return t[0].replace(Gu,()=>`${o[a++](i)}${s||""}`).replace(J7,tL)}},G0="react-spring: ",y5=e=>{const t=e;let n=!1;if(typeof t!="function")throw new TypeError(`${G0}once requires a function parameter`);return(...r)=>{n||(t(...r),n=!0)}},nL=y5(console.warn);function rL(){nL(`${G0}The "interpolate" function is deprecated in v9 (use "to" instead)`)}var oL=y5(console.warn);function iL(){oL(`${G0}Directly calling start instead of using the api object is deprecated in v9 (use ".start" instead), this will be removed in later 0.X.0 versions`)}function gf(e){return H.str(e)&&(e[0]=="#"||/\d/.test(e)||!W0()&&mf.test(e)||e in(Nr||{}))}var go=W0()?S.useEffect:S.useLayoutEffect,sL=()=>{const e=S.useRef(!1);return go(()=>(e.current=!0,()=>{e.current=!1}),[]),e};function x5(){const e=S.useState()[1],t=sL();return()=>{t.current&&e(Math.random())}}function aL(e,t){const[n]=S.useState(()=>({inputs:t,result:e()})),r=S.useRef(),o=r.current;let i=o;return i?t&&i.inputs&&lL(t,i.inputs)||(i={inputs:t,result:e()}):i=n,S.useEffect(()=>{r.current=i,o==n&&(n.inputs=n.result=void 0)},[i]),i.result}function lL(e,t){if(e.length!==t.length)return!1;for(let n=0;nS.useEffect(e,uL),uL=[];function cL(e){const t=S.useRef();return S.useEffect(()=>{t.current=e}),t.current}var Ua=Symbol.for("Animated:node"),dL=e=>!!e&&e[Ua]===e,Cn=e=>e&&e[Ua],K0=(e,t)=>A7(e,Ua,t),vf=e=>e&&e[Ua]&&e[Ua].getPayload(),w5=class{constructor(){K0(this,this)}getPayload(){return this.payload||[]}},yl=class extends w5{constructor(e){super(),this._value=e,this.done=!0,this.durationProgress=0,H.num(this._value)&&(this.lastPosition=this._value)}static create(e){return new yl(e)}getPayload(){return[this]}getValue(){return this._value}setValue(e,t){return H.num(e)&&(this.lastPosition=e,t&&(e=Math.round(e/t)*t,this.done&&(this.lastPosition=e))),this._value===e?!1:(this._value=e,!0)}reset(){const{done:e}=this;this.done=!1,H.num(this._value)&&(this.elapsedTime=0,this.durationProgress=0,this.lastPosition=this._value,e&&(this.lastVelocity=null),this.v0=null)}},Ba=class extends yl{constructor(e){super(0),this._string=null,this._toString=za({output:[e,e]})}static create(e){return new Ba(e)}getValue(){const e=this._string;return e??(this._string=this._toString(this._value))}setValue(e){if(H.str(e)){if(e==this._string)return!1;this._string=e,this._value=1}else if(super.setValue(e))this._string=null;else return!1;return!0}reset(e){e&&(this._toString=za({output:[this.getValue(),e]})),this._value=0,super.reset()}},Hc={dependencies:null},yf=class extends w5{constructor(e){super(),this.source=e,this.setValue(e)}getValue(e){const t={};return Fn(this.source,(n,r)=>{dL(n)?t[r]=n.getValue(e):Ut(n)?t[r]=vt(n):e||(t[r]=n)}),t}setValue(e){this.source=e,this.payload=this._makePayload(e)}reset(){this.payload&&ee(this.payload,e=>e.reset())}_makePayload(e){if(e){const t=new Set;return Fn(e,this._addToPayload,t),Array.from(t)}}_addToPayload(e){Hc.dependencies&&Ut(e)&&Hc.dependencies.add(e);const t=vf(e);t&&ee(t,n=>this.add(n))}},S5=class extends yf{constructor(e){super(e)}static create(e){return new S5(e)}getValue(){return this.source.map(e=>e.getValue())}setValue(e){const t=this.getPayload();return e.length==t.length?t.map((n,r)=>n.setValue(e[r])).some(Boolean):(super.setValue(e.map(fL)),!0)}};function fL(e){return(gf(e)?Ba:yl).create(e)}function um(e){const t=Cn(e);return t?t.constructor:H.arr(e)?S5:gf(e)?Ba:yl}var Ux=(e,t)=>{const n=!H.fun(e)||e.prototype&&e.prototype.isReactComponent;return S.forwardRef((r,o)=>{const i=S.useRef(null),s=n&&S.useCallback(h=>{i.current=mL(o,h)},[o]),[a,l]=hL(r,t),u=x5(),c=()=>{const h=i.current;if(n&&!h)return;(h?t.applyAnimatedValues(h,a.getValue(!0)):!1)===!1&&u()},d=new pL(c,l),f=S.useRef();go(()=>(f.current=d,ee(l,h=>ss(h,d)),()=>{f.current&&(ee(f.current.deps,h=>Wa(h,f.current)),Z.cancel(f.current.update))})),S.useEffect(c,[]),b5(()=>()=>{const h=f.current;ee(h.deps,g=>Wa(g,h))});const p=t.getComponentProps(a.getValue());return S.createElement(e,{...p,ref:s})})},pL=class{constructor(e,t){this.update=e,this.deps=t}eventObserved(e){e.type=="change"&&Z.write(this.update)}};function hL(e,t){const n=new Set;return Hc.dependencies=n,e.style&&(e={...e,style:t.createAnimatedStyle(e.style)}),e=new yf(e),Hc.dependencies=null,[e,n]}function mL(e,t){return e&&(H.fun(e)?e(t):e.current=t),t}var Bx=Symbol.for("AnimatedComponent"),gL=(e,{applyAnimatedValues:t=()=>!1,createAnimatedStyle:n=o=>new yf(o),getComponentProps:r=o=>o}={})=>{const o={applyAnimatedValues:t,createAnimatedStyle:n,getComponentProps:r},i=s=>{const a=Gx(s)||"Anonymous";return H.str(s)?s=i[s]||(i[s]=Ux(s,o)):s=s[Bx]||(s[Bx]=Ux(s,o)),s.displayName=`Animated(${a})`,s};return Fn(e,(s,a)=>{H.arr(e)&&(a=Gx(s)),i[a]=i(s)}),{animated:i}},Gx=e=>H.str(e)?e:e&&H.str(e.displayName)?e.displayName:H.fun(e)&&e.name||null;function yt(e,...t){return H.fun(e)?e(...t):e}var na=(e,t)=>e===!0||!!(t&&e&&(H.fun(e)?e(t):ct(e).includes(t))),k5=(e,t)=>H.obj(e)?t&&e[t]:e,C5=(e,t)=>e.default===!0?e[t]:e.default?e.default[t]:void 0,vL=e=>e,Y0=(e,t=vL)=>{let n=yL;e.default&&e.default!==!0&&(e=e.default,n=Object.keys(e));const r={};for(const o of n){const i=t(e[o],o);H.und(i)||(r[o]=i)}return r},yL=["config","onProps","onStart","onChange","onPause","onResume","onRest"],xL={config:1,from:1,to:1,ref:1,loop:1,reset:1,pause:1,cancel:1,reverse:1,immediate:1,default:1,delay:1,onProps:1,onStart:1,onChange:1,onPause:1,onResume:1,onRest:1,onResolve:1,items:1,trail:1,sort:1,expires:1,initial:1,enter:1,update:1,leave:1,children:1,onDestroyed:1,keys:1,callId:1,parentId:1};function bL(e){const t={};let n=0;if(Fn(e,(r,o)=>{xL[o]||(t[o]=r,n++)}),n)return t}function q0(e){const t=bL(e);if(t){const n={to:t};return Fn(e,(r,o)=>o in t||(n[o]=r)),n}return{...e}}function Ga(e){return e=vt(e),H.arr(e)?e.map(Ga):gf(e)?Lt.createStringInterpolator({range:[0,1],output:[e,e]})(1):e}function wL(e){for(const t in e)return!0;return!1}function cm(e){return H.fun(e)||H.arr(e)&&H.obj(e[0])}function Kx(e,t){var n;(n=e.ref)==null||n.delete(e),t==null||t.delete(e)}function SL(e,t){var n;t&&e.ref!==t&&((n=e.ref)==null||n.delete(e),t.add(e),e.ref=t)}var kL={default:{tension:170,friction:26},gentle:{tension:120,friction:14},wobbly:{tension:180,friction:12},stiff:{tension:210,friction:20},slow:{tension:280,friction:60},molasses:{tension:280,friction:120}},dm={...kL.default,mass:1,damping:1,easing:q7.linear,clamp:!1},CL=class{constructor(){this.velocity=0,Object.assign(this,dm)}};function $L(e,t,n){n&&(n={...n},Yx(n,t),t={...n,...t}),Yx(e,t),Object.assign(e,t);for(const s in dm)e[s]==null&&(e[s]=dm[s]);let{frequency:r,damping:o}=e;const{mass:i}=e;return H.und(r)||(r<.01&&(r=.01),o<0&&(o=0),e.tension=Math.pow(2*Math.PI/r,2)*i,e.friction=4*Math.PI*o*i/r),e}function Yx(e,t){if(!H.und(t.decay))e.duration=void 0;else{const n=!H.und(t.tension)||!H.und(t.friction);(n||!H.und(t.frequency)||!H.und(t.damping)||!H.und(t.mass))&&(e.duration=void 0,e.decay=void 0),n&&(e.frequency=void 0)}}var qx=[],PL=class{constructor(){this.changed=!1,this.values=qx,this.toValues=null,this.fromValues=qx,this.config=new CL,this.immediate=!1}};function $5(e,{key:t,props:n,defaultProps:r,state:o,actions:i}){return new Promise((s,a)=>{let l,u,c=na(n.cancel??(r==null?void 0:r.cancel),t);if(c)p();else{H.und(n.pause)||(o.paused=na(n.pause,t));let h=r==null?void 0:r.pause;h!==!0&&(h=o.paused||na(h,t)),l=yt(n.delay||0,t),h?(o.resumeQueue.add(f),i.pause()):(i.resume(),f())}function d(){o.resumeQueue.add(f),o.timeouts.delete(u),u.cancel(),l=u.time-Z.now()}function f(){l>0&&!Lt.skipAnimation?(o.delayed=!0,u=Z.setTimeout(p,l),o.pauseQueue.add(d),o.timeouts.add(u)):p()}function p(){o.delayed&&(o.delayed=!1),o.pauseQueue.delete(d),o.timeouts.delete(u),e<=(o.cancelId||0)&&(c=!0);try{i.start({...n,callId:e,cancel:c},s)}catch(h){a(h)}}})}var X0=(e,t)=>t.length==1?t[0]:t.some(n=>n.cancelled)?$i(e.get()):t.every(n=>n.noop)?P5(e.get()):hn(e.get(),t.every(n=>n.finished)),P5=e=>({value:e,noop:!0,finished:!0,cancelled:!1}),hn=(e,t,n=!1)=>({value:e,finished:t,cancelled:n}),$i=e=>({value:e,cancelled:!0,finished:!1});function T5(e,t,n,r){const{callId:o,parentId:i,onRest:s}=t,{asyncTo:a,promise:l}=n;return!i&&e===a&&!t.reset?l:n.promise=(async()=>{n.asyncId=o,n.asyncTo=e;const u=Y0(t,(b,m)=>m==="onRest"?void 0:b);let c,d;const f=new Promise((b,m)=>(c=b,d=m)),p=b=>{const m=o<=(n.cancelId||0)&&$i(r)||o!==n.asyncId&&hn(r,!1);if(m)throw b.result=m,d(b),b},h=(b,m)=>{const y=new Xx,x=new Qx;return(async()=>{if(Lt.skipAnimation)throw Ka(n),x.result=hn(r,!1),d(x),x;p(y);const w=H.obj(b)?{...b}:{...m,to:b};w.parentId=o,Fn(u,(k,$)=>{H.und(w[$])&&(w[$]=k)});const C=await r.start(w);return p(y),n.paused&&await new Promise(k=>{n.resumeQueue.add(k)}),C})()};let g;if(Lt.skipAnimation)return Ka(n),hn(r,!1);try{let b;H.arr(e)?b=(async m=>{for(const y of m)await h(y)})(e):b=Promise.resolve(e(h,r.stop.bind(r))),await Promise.all([b.then(c),f]),g=hn(r.get(),!0,!1)}catch(b){if(b instanceof Xx)g=b.result;else if(b instanceof Qx)g=b.result;else throw b}finally{o==n.asyncId&&(n.asyncId=i,n.asyncTo=i?a:void 0,n.promise=i?l:void 0)}return H.fun(s)&&Z.batchedUpdates(()=>{s(g,r,r.item)}),g})()}function Ka(e,t){ea(e.timeouts,n=>n.cancel()),e.pauseQueue.clear(),e.resumeQueue.clear(),e.asyncId=e.asyncTo=e.promise=void 0,t&&(e.cancelId=t)}var Xx=class extends Error{constructor(){super("An async animation has been interrupted. You see this error because you forgot to use `await` or `.catch(...)` on its returned promise.")}},Qx=class extends Error{constructor(){super("SkipAnimationSignal")}},fm=e=>e instanceof Q0,TL=1,Q0=class extends h5{constructor(){super(...arguments),this.id=TL++,this._priority=0}get priority(){return this._priority}set priority(e){this._priority!=e&&(this._priority=e,this._onPriorityChange(e))}get(){const e=Cn(this);return e&&e.getValue()}to(...e){return Lt.to(this,e)}interpolate(...e){return rL(),Lt.to(this,e)}toJSON(){return this.get()}observerAdded(e){e==1&&this._attach()}observerRemoved(e){e==0&&this._detach()}_attach(){}_detach(){}_onChange(e,t=!1){Ha(this,{type:"change",parent:this,value:e,idle:t})}_onPriorityChange(e){this.idle||pf.sort(this),Ha(this,{type:"priority",parent:this,priority:e})}},Oo=Symbol.for("SpringPhase"),E5=1,pm=2,hm=4,Ep=e=>(e[Oo]&E5)>0,mr=e=>(e[Oo]&pm)>0,Ts=e=>(e[Oo]&hm)>0,Zx=(e,t)=>t?e[Oo]|=pm|E5:e[Oo]&=~pm,Jx=(e,t)=>t?e[Oo]|=hm:e[Oo]&=~hm,EL=class extends Q0{constructor(e,t){if(super(),this.animation=new PL,this.defaultProps={},this._state={paused:!1,delayed:!1,pauseQueue:new Set,resumeQueue:new Set,timeouts:new Set},this._pendingCalls=new Set,this._lastCallId=0,this._lastToId=0,this._memoizedDuration=0,!H.und(e)||!H.und(t)){const n=H.obj(e)?{...e}:{...t,from:e};H.und(n.default)&&(n.default=!0),this.start(n)}}get idle(){return!(mr(this)||this._state.asyncTo)||Ts(this)}get goal(){return vt(this.animation.to)}get velocity(){const e=Cn(this);return e instanceof yl?e.lastVelocity||0:e.getPayload().map(t=>t.lastVelocity||0)}get hasAnimated(){return Ep(this)}get isAnimating(){return mr(this)}get isPaused(){return Ts(this)}get isDelayed(){return this._state.delayed}advance(e){let t=!0,n=!1;const r=this.animation;let{toValues:o}=r;const{config:i}=r,s=vf(r.to);!s&&Ut(r.to)&&(o=ct(vt(r.to))),r.values.forEach((u,c)=>{if(u.done)return;const d=u.constructor==Ba?1:s?s[c].lastPosition:o[c];let f=r.immediate,p=d;if(!f){if(p=u.lastPosition,i.tension<=0){u.done=!0;return}let h=u.elapsedTime+=e;const g=r.fromValues[c],b=u.v0!=null?u.v0:u.v0=H.arr(i.velocity)?i.velocity[c]:i.velocity;let m;const y=i.precision||(g==d?.005:Math.min(1,Math.abs(d-g)*.001));if(H.und(i.duration))if(i.decay){const x=i.decay===!0?.998:i.decay,w=Math.exp(-(1-x)*h);p=g+b/(1-x)*(1-w),f=Math.abs(u.lastPosition-p)<=y,m=b*w}else{m=u.lastVelocity==null?b:u.lastVelocity;const x=i.restVelocity||y/10,w=i.clamp?0:i.bounce,C=!H.und(w),k=g==d?u.v0>0:gx,!(!$&&(f=Math.abs(d-p)<=y,f)));++O){C&&(P=p==d||p>d==k,P&&(m=-m*w,p=d));const E=-i.tension*1e-6*(p-d),_=-i.friction*.001*m,T=(E+_)/i.mass;m=m+T*R,p=p+m*R}}else{let x=1;i.duration>0&&(this._memoizedDuration!==i.duration&&(this._memoizedDuration=i.duration,u.durationProgress>0&&(u.elapsedTime=i.duration*u.durationProgress,h=u.elapsedTime+=e)),x=(i.progress||0)+h/this._memoizedDuration,x=x>1?1:x<0?0:x,u.durationProgress=x),p=g+i.easing(x)*(d-g),m=(p-u.lastPosition)/e,f=x==1}u.lastVelocity=m,Number.isNaN(p)&&(console.warn("Got NaN while animating:",this),f=!0)}s&&!s[c].done&&(f=!1),f?u.done=!0:t=!1,u.setValue(p,i.round)&&(n=!0)});const a=Cn(this),l=a.getValue();if(t){const u=vt(r.to);(l!==u||n)&&!i.decay?(a.setValue(u),this._onChange(u)):n&&i.decay&&this._onChange(l),this._stop()}else n&&this._onChange(l)}set(e){return Z.batchedUpdates(()=>{this._stop(),this._focus(e),this._set(e)}),this}pause(){this._update({pause:!0})}resume(){this._update({pause:!1})}finish(){if(mr(this)){const{to:e,config:t}=this.animation;Z.batchedUpdates(()=>{this._onStart(),t.decay||this._set(e,!1),this._stop()})}return this}update(e){return(this.queue||(this.queue=[])).push(e),this}start(e,t){let n;return H.und(e)?(n=this.queue||[],this.queue=[]):n=[H.obj(e)?e:{...t,to:e}],Promise.all(n.map(r=>this._update(r))).then(r=>X0(this,r))}stop(e){const{to:t}=this.animation;return this._focus(this.get()),Ka(this._state,e&&this._lastCallId),Z.batchedUpdates(()=>this._stop(t,e)),this}reset(){this._update({reset:!0})}eventObserved(e){e.type=="change"?this._start():e.type=="priority"&&(this.priority=e.priority+1)}_prepareNode(e){const t=this.key||"";let{to:n,from:r}=e;n=H.obj(n)?n[t]:n,(n==null||cm(n))&&(n=void 0),r=H.obj(r)?r[t]:r,r==null&&(r=void 0);const o={to:n,from:r};return Ep(this)||(e.reverse&&([n,r]=[r,n]),r=vt(r),H.und(r)?Cn(this)||this._set(n):this._set(r)),o}_update({...e},t){const{key:n,defaultProps:r}=this;e.default&&Object.assign(r,Y0(e,(s,a)=>/^on/.test(a)?k5(s,n):s)),tb(this,e,"onProps"),Ms(this,"onProps",e,this);const o=this._prepareNode(e);if(Object.isFrozen(this))throw Error("Cannot animate a `SpringValue` object that is frozen. Did you forget to pass your component to `animated(...)` before animating its props?");const i=this._state;return $5(++this._lastCallId,{key:n,props:e,defaultProps:r,state:i,actions:{pause:()=>{Ts(this)||(Jx(this,!0),Ds(i.pauseQueue),Ms(this,"onPause",hn(this,Es(this,this.animation.to)),this))},resume:()=>{Ts(this)&&(Jx(this,!1),mr(this)&&this._resume(),Ds(i.resumeQueue),Ms(this,"onResume",hn(this,Es(this,this.animation.to)),this))},start:this._merge.bind(this,o)}}).then(s=>{if(e.loop&&s.finished&&!(t&&s.noop)){const a=M5(e);if(a)return this._update(a,!0)}return s})}_merge(e,t,n){if(t.cancel)return this.stop(!0),n($i(this));const r=!H.und(e.to),o=!H.und(e.from);if(r||o)if(t.callId>this._lastToId)this._lastToId=t.callId;else return n($i(this));const{key:i,defaultProps:s,animation:a}=this,{to:l,from:u}=a;let{to:c=l,from:d=u}=e;o&&!r&&(!t.default||H.und(c))&&(c=d),t.reverse&&([c,d]=[d,c]);const f=!Kn(d,u);f&&(a.from=d),d=vt(d);const p=!Kn(c,l);p&&this._focus(c);const h=cm(t.to),{config:g}=a,{decay:b,velocity:m}=g;(r||o)&&(g.velocity=0),t.config&&!h&&$L(g,yt(t.config,i),t.config!==s.config?yt(s.config,i):void 0);let y=Cn(this);if(!y||H.und(c))return n(hn(this,!0));const x=H.und(t.reset)?o&&!t.default:!H.und(d)&&na(t.reset,i),w=x?d:this.get(),C=Ga(c),k=H.num(C)||H.arr(C)||gf(C),$=!h&&(!k||na(s.immediate||t.immediate,i));if(p){const O=um(c);if(O!==y.constructor)if($)y=this._set(C);else throw Error(`Cannot animate between ${y.constructor.name} and ${O.name}, as the "to" prop suggests`)}const P=y.constructor;let R=Ut(c),M=!1;if(!R){const O=x||!Ep(this)&&f;(p||O)&&(M=Kn(Ga(w),C),R=!M),(!Kn(a.immediate,$)&&!$||!Kn(g.decay,b)||!Kn(g.velocity,m))&&(R=!0)}if(M&&mr(this)&&(a.changed&&!x?R=!0:R||this._stop(l)),!h&&((R||Ut(l))&&(a.values=y.getPayload(),a.toValues=Ut(c)?null:P==Ba?[1]:ct(C)),a.immediate!=$&&(a.immediate=$,!$&&!x&&this._set(l)),R)){const{onRest:O}=a;ee(ML,_=>tb(this,t,_));const E=hn(this,Es(this,l));Ds(this._pendingCalls,E),this._pendingCalls.add(n),a.changed&&Z.batchedUpdates(()=>{var _;a.changed=!x,O==null||O(E,this),x?yt(s.onRest,E):(_=a.onStart)==null||_.call(a,E,this)})}x&&this._set(w),h?n(T5(t.to,t,this._state,this)):R?this._start():mr(this)&&!p?this._pendingCalls.add(n):n(P5(w))}_focus(e){const t=this.animation;e!==t.to&&(Hx(this)&&this._detach(),t.to=e,Hx(this)&&this._attach())}_attach(){let e=0;const{to:t}=this.animation;Ut(t)&&(ss(t,this),fm(t)&&(e=t.priority+1)),this.priority=e}_detach(){const{to:e}=this.animation;Ut(e)&&Wa(e,this)}_set(e,t=!0){const n=vt(e);if(!H.und(n)){const r=Cn(this);if(!r||!Kn(n,r.getValue())){const o=um(n);!r||r.constructor!=o?K0(this,o.create(n)):r.setValue(n),r&&Z.batchedUpdates(()=>{this._onChange(n,t)})}}return Cn(this)}_onStart(){const e=this.animation;e.changed||(e.changed=!0,Ms(this,"onStart",hn(this,Es(this,e.to)),this))}_onChange(e,t){t||(this._onStart(),yt(this.animation.onChange,e,this)),yt(this.defaultProps.onChange,e,this),super._onChange(e,t)}_start(){const e=this.animation;Cn(this).reset(vt(e.to)),e.immediate||(e.fromValues=e.values.map(t=>t.lastPosition)),mr(this)||(Zx(this,!0),Ts(this)||this._resume())}_resume(){Lt.skipAnimation?this.finish():pf.start(this)}_stop(e,t){if(mr(this)){Zx(this,!1);const n=this.animation;ee(n.values,o=>{o.done=!0}),n.toValues&&(n.onChange=n.onPause=n.onResume=void 0),Ha(this,{type:"idle",parent:this});const r=t?$i(this.get()):hn(this.get(),Es(this,e??n.to));Ds(this._pendingCalls,r),n.changed&&(n.changed=!1,Ms(this,"onRest",r,this))}}};function Es(e,t){const n=Ga(t),r=Ga(e.get());return Kn(r,n)}function M5(e,t=e.loop,n=e.to){const r=yt(t);if(r){const o=r!==!0&&q0(r),i=(o||e).reverse,s=!o||o.reset;return Wc({...e,loop:t,default:!1,pause:void 0,to:!i||cm(n)?n:void 0,from:s?e.from:void 0,reset:s,...o})}}function Wc(e){const{to:t,from:n}=e=q0(e),r=new Set;return H.obj(t)&&eb(t,r),H.obj(n)&&eb(n,r),e.keys=r.size?Array.from(r):null,e}function eb(e,t){Fn(e,(n,r)=>n!=null&&t.add(r))}var ML=["onStart","onRest","onChange","onPause","onResume"];function tb(e,t,n){e.animation[n]=t[n]!==C5(t,n)?k5(t[n],e.key):void 0}function Ms(e,t,...n){var r,o,i,s;(o=(r=e.animation)[t])==null||o.call(r,...n),(s=(i=e.defaultProps)[t])==null||s.call(i,...n)}var _L=["onStart","onChange","onRest"],AL=1,OL=class{constructor(e,t){this.id=AL++,this.springs={},this.queue=[],this._lastAsyncId=0,this._active=new Set,this._changed=new Set,this._started=!1,this._state={paused:!1,pauseQueue:new Set,resumeQueue:new Set,timeouts:new Set},this._events={onStart:new Map,onChange:new Map,onRest:new Map},this._onFrame=this._onFrame.bind(this),t&&(this._flush=t),e&&this.start({default:!0,...e})}get idle(){return!this._state.asyncTo&&Object.values(this.springs).every(e=>e.idle&&!e.isDelayed&&!e.isPaused)}get item(){return this._item}set item(e){this._item=e}get(){const e={};return this.each((t,n)=>e[n]=t.get()),e}set(e){for(const t in e){const n=e[t];H.und(n)||this.springs[t].set(n)}}update(e){return e&&this.queue.push(Wc(e)),this}start(e){let{queue:t}=this;return e?t=ct(e).map(Wc):this.queue=[],this._flush?this._flush(this,t):(R5(this,t),RL(this,t))}stop(e,t){if(e!==!!e&&(t=e),t){const n=this.springs;ee(ct(t),r=>n[r].stop(!!e))}else Ka(this._state,this._lastAsyncId),this.each(n=>n.stop(!!e));return this}pause(e){if(H.und(e))this.start({pause:!0});else{const t=this.springs;ee(ct(e),n=>t[n].pause())}return this}resume(e){if(H.und(e))this.start({pause:!1});else{const t=this.springs;ee(ct(e),n=>t[n].resume())}return this}each(e){Fn(this.springs,e)}_onFrame(){const{onStart:e,onChange:t,onRest:n}=this._events,r=this._active.size>0,o=this._changed.size>0;(r&&!this._started||o&&!this._started)&&(this._started=!0,ea(e,([a,l])=>{l.value=this.get(),a(l,this,this._item)}));const i=!r&&this._started,s=o||i&&n.size?this.get():null;o&&t.size&&ea(t,([a,l])=>{l.value=s,a(l,this,this._item)}),i&&(this._started=!1,ea(n,([a,l])=>{l.value=s,a(l,this,this._item)}))}eventObserved(e){if(e.type=="change")this._changed.add(e.parent),e.idle||this._active.add(e.parent);else if(e.type=="idle")this._active.delete(e.parent);else return;Z.onFrame(this._onFrame)}};function RL(e,t){return Promise.all(t.map(n=>_5(e,n))).then(n=>X0(e,n))}async function _5(e,t,n){const{keys:r,to:o,from:i,loop:s,onRest:a,onResolve:l}=t,u=H.obj(t.default)&&t.default;s&&(t.loop=!1),o===!1&&(t.to=null),i===!1&&(t.from=null);const c=H.arr(o)||H.fun(o)?o:void 0;c?(t.to=void 0,t.onRest=void 0,u&&(u.onRest=void 0)):ee(_L,g=>{const b=t[g];if(H.fun(b)){const m=e._events[g];t[g]=({finished:y,cancelled:x})=>{const w=m.get(b);w?(y||(w.finished=!1),x&&(w.cancelled=!0)):m.set(b,{value:null,finished:y||!1,cancelled:x||!1})},u&&(u[g]=t[g])}});const d=e._state;t.pause===!d.paused?(d.paused=t.pause,Ds(t.pause?d.pauseQueue:d.resumeQueue)):d.paused&&(t.pause=!0);const f=(r||Object.keys(e.springs)).map(g=>e.springs[g].start(t)),p=t.cancel===!0||C5(t,"cancel")===!0;(c||p&&d.asyncId)&&f.push($5(++e._lastAsyncId,{props:t,state:d,actions:{pause:am,resume:am,start(g,b){p?(Ka(d,e._lastAsyncId),b($i(e))):(g.onRest=a,b(T5(c,g,d,e)))}}})),d.paused&&await new Promise(g=>{d.resumeQueue.add(g)});const h=X0(e,await Promise.all(f));if(s&&h.finished&&!(n&&h.noop)){const g=M5(t,s,o);if(g)return R5(e,[g]),_5(e,g,!0)}return l&&Z.batchedUpdates(()=>l(h,e,e.item)),h}function jL(e,t){const n={...e.springs};return t&&ee(ct(t),r=>{H.und(r.keys)&&(r=Wc(r)),H.obj(r.to)||(r={...r,to:void 0}),O5(n,r,o=>A5(o))}),IL(e,n),n}function IL(e,t){Fn(t,(n,r)=>{e.springs[r]||(e.springs[r]=n,ss(n,e))})}function A5(e,t){const n=new EL;return n.key=e,t&&ss(n,t),n}function O5(e,t,n){t.keys&&ee(t.keys,r=>{(e[r]||(e[r]=n(r)))._prepareNode(t)})}function R5(e,t){ee(t,n=>{O5(e.springs,n,r=>A5(r,e))})}var xf=({children:e,...t})=>{const n=S.useContext(Uc),r=t.pause||!!n.pause,o=t.immediate||!!n.immediate;t=aL(()=>({pause:r,immediate:o}),[r,o]);const{Provider:i}=Uc;return S.createElement(i,{value:t},e)},Uc=LL(xf,{});xf.Provider=Uc.Provider;xf.Consumer=Uc.Consumer;function LL(e,t){return Object.assign(e,S.createContext(t)),e.Provider._context=e,e.Consumer._context=e,e}var NL=()=>{const e=[],t=function(r){iL();const o=[];return ee(e,(i,s)=>{if(H.und(r))o.push(i.start());else{const a=n(r,i,s);a&&o.push(i.start(a))}}),o};t.current=e,t.add=function(r){e.includes(r)||e.push(r)},t.delete=function(r){const o=e.indexOf(r);~o&&e.splice(o,1)},t.pause=function(){return ee(e,r=>r.pause(...arguments)),this},t.resume=function(){return ee(e,r=>r.resume(...arguments)),this},t.set=function(r){ee(e,(o,i)=>{const s=H.fun(r)?r(i,o):r;s&&o.set(s)})},t.start=function(r){const o=[];return ee(e,(i,s)=>{if(H.und(r))o.push(i.start());else{const a=this._getProps(r,i,s);a&&o.push(i.start(a))}}),o},t.stop=function(){return ee(e,r=>r.stop(...arguments)),this},t.update=function(r){return ee(e,(o,i)=>o.update(this._getProps(r,o,i))),this};const n=function(r,o,i){return H.fun(r)?r(i,o):r};return t._getProps=n,t};function j5(e,t,n){const r=H.fun(t)&&t,{reset:o,sort:i,trail:s=0,expires:a=!0,exitBeforeEnter:l=!1,onDestroyed:u,ref:c,config:d}=r?r():t,f=S.useMemo(()=>r||arguments.length==3?NL():void 0,[]),p=ct(e),h=[],g=S.useRef(null),b=o?null:g.current;go(()=>{g.current=h}),b5(()=>(ee(h,T=>{f==null||f.add(T.ctrl),T.ctrl.ref=f}),()=>{ee(g.current,T=>{T.expired&&clearTimeout(T.expirationId),Kx(T.ctrl,f),T.ctrl.stop(!0)})}));const m=FL(p,r?r():t,b),y=o&&g.current||[];go(()=>ee(y,({ctrl:T,item:I,key:L})=>{Kx(T,f),yt(u,I,L)}));const x=[];if(b&&ee(b,(T,I)=>{T.expired?(clearTimeout(T.expirationId),y.push(T)):(I=x[I]=m.indexOf(T.key),~I&&(h[I]=T))}),ee(p,(T,I)=>{h[I]||(h[I]={key:m[I],item:T,phase:"mount",ctrl:new OL},h[I].ctrl.item=T)}),x.length){let T=-1;const{leave:I}=r?r():t;ee(x,(L,F)=>{const j=b[F];~L?(T=h.indexOf(j),h[T]={...j,item:p[L]}):I&&h.splice(++T,0,j)})}H.fun(i)&&h.sort((T,I)=>i(T.item,I.item));let w=-s;const C=x5(),k=Y0(t),$=new Map,P=S.useRef(new Map),R=S.useRef(!1);ee(h,(T,I)=>{const L=T.key,F=T.phase,j=r?r():t;let N,V;const G=yt(j.delay||0,L);if(F=="mount")N=j.enter,V="enter";else{const X=m.indexOf(L)<0;if(F!="leave")if(X)N=j.leave,V="leave";else if(N=j.update)V="update";else return;else if(!X)N=j.enter,V="enter";else return}if(N=yt(N,T.item,I),N=H.obj(N)?q0(N):{to:N},!N.config){const X=d||k.config;N.config=yt(X,T.item,I,V)}w+=s;const B={...k,delay:G+w,ref:c,immediate:j.immediate,reset:!1,...N};if(V=="enter"&&H.und(B.from)){const X=r?r():t,oe=H.und(X.initial)||b?X.from:X.initial;B.from=yt(oe,T.item,I)}const{onResolve:q}=B;B.onResolve=X=>{yt(q,X);const oe=g.current,le=oe.find(de=>de.key===L);if(le&&!(X.cancelled&&le.phase!="update")&&le.ctrl.idle){const de=oe.every(W=>W.ctrl.idle);if(le.phase=="leave"){const W=yt(a,le.item);if(W!==!1){const K=W===!0?0:W;if(le.expired=!0,!de&&K>0){K<=2147483647&&(le.expirationId=setTimeout(C,K));return}}}de&&oe.some(W=>W.expired)&&(P.current.delete(le),l&&(R.current=!0),C())}};const J=jL(T.ctrl,B);V==="leave"&&l?P.current.set(T,{phase:V,springs:J,payload:B}):$.set(T,{phase:V,springs:J,payload:B})});const M=S.useContext(xf),O=cL(M),E=M!==O&&wL(M);go(()=>{E&&ee(h,T=>{T.ctrl.start({default:M})})},[M]),ee($,(T,I)=>{if(P.current.size){const L=h.findIndex(F=>F.key===I.key);h.splice(L,1)}}),go(()=>{ee(P.current.size?P.current:$,({phase:T,payload:I},L)=>{const{ctrl:F}=L;L.phase=T,f==null||f.add(F),E&&T=="enter"&&F.start({default:M}),I&&(SL(F,I.ref),(F.ref||f)&&!R.current?F.update(I):(F.start(I),R.current&&(R.current=!1)))})},o?void 0:n);const _=T=>S.createElement(S.Fragment,null,h.map((I,L)=>{const{springs:F}=$.get(I)||I.ctrl,j=T({...F},I.item,I,L);return j&&j.type?S.createElement(j.type,{...j.props,key:H.str(I.key)||H.num(I.key)?I.key:I.ctrl.id,ref:j.ref}):j}));return f?[_,f]:_}var DL=1;function FL(e,{key:t,keys:n=t},r){if(n===null){const o=new Set;return e.map(i=>{const s=r&&r.find(a=>a.item===i&&a.phase!=="leave"&&!o.has(a));return s?(o.add(s),s.key):DL++})}return H.und(n)?e:H.fun(n)?e.map(n):ct(n)}var I5=class extends Q0{constructor(e,t){super(),this.source=e,this.idle=!0,this._active=new Set,this.calc=za(...t);const n=this._get(),r=um(n);K0(this,r.create(n))}advance(e){const t=this._get(),n=this.get();Kn(t,n)||(Cn(this).setValue(t),this._onChange(t,this.idle)),!this.idle&&nb(this._active)&&Mp(this)}_get(){const e=H.arr(this.source)?this.source.map(vt):ct(vt(this.source));return this.calc(...e)}_start(){this.idle&&!nb(this._active)&&(this.idle=!1,ee(vf(this),e=>{e.done=!1}),Lt.skipAnimation?(Z.batchedUpdates(()=>this.advance()),Mp(this)):pf.start(this))}_attach(){let e=1;ee(ct(this.source),t=>{Ut(t)&&ss(t,this),fm(t)&&(t.idle||this._active.add(t),e=Math.max(e,t.priority+1))}),this.priority=e,this._start()}_detach(){ee(ct(this.source),e=>{Ut(e)&&Wa(e,this)}),this._active.clear(),Mp(this)}eventObserved(e){e.type=="change"?e.idle?this.advance():(this._active.add(e.parent),this._start()):e.type=="idle"?this._active.delete(e.parent):e.type=="priority"&&(this.priority=ct(this.source).reduce((t,n)=>Math.max(t,(fm(n)?n.priority:0)+1),0))}};function zL(e){return e.idle!==!1}function nb(e){return!e.size||Array.from(e).every(zL)}function Mp(e){e.idle||(e.idle=!0,ee(vf(e),t=>{t.done=!0}),Ha(e,{type:"idle",parent:e}))}var Bc=(e,...t)=>new I5(e,t);Lt.assign({createStringInterpolator:v5,to:(e,t)=>new I5(e,t)});var L5=/^--/;function VL(e,t){return t==null||typeof t=="boolean"||t===""?"":typeof t=="number"&&t!==0&&!L5.test(e)&&!(ra.hasOwnProperty(e)&&ra[e])?t+"px":(""+t).trim()}var rb={};function HL(e,t){if(!e.nodeType||!e.setAttribute)return!1;const n=e.nodeName==="filter"||e.parentNode&&e.parentNode.nodeName==="filter",{style:r,children:o,scrollTop:i,scrollLeft:s,viewBox:a,...l}=t,u=Object.values(l),c=Object.keys(l).map(d=>n||e.hasAttribute(d)?d:rb[d]||(rb[d]=d.replace(/([A-Z])/g,f=>"-"+f.toLowerCase())));o!==void 0&&(e.textContent=o);for(const d in r)if(r.hasOwnProperty(d)){const f=VL(d,r[d]);L5.test(d)?e.style.setProperty(d,f):e.style[d]=f}c.forEach((d,f)=>{e.setAttribute(d,u[f])}),i!==void 0&&(e.scrollTop=i),s!==void 0&&(e.scrollLeft=s),a!==void 0&&e.setAttribute("viewBox",a)}var ra={animationIterationCount:!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,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},WL=(e,t)=>e+t.charAt(0).toUpperCase()+t.substring(1),UL=["Webkit","Ms","Moz","O"];ra=Object.keys(ra).reduce((e,t)=>(UL.forEach(n=>e[WL(n,t)]=e[t]),e),ra);var BL=/^(matrix|translate|scale|rotate|skew)/,GL=/^(translate)/,KL=/^(rotate|skew)/,_p=(e,t)=>H.num(e)&&e!==0?e+t:e,Ku=(e,t)=>H.arr(e)?e.every(n=>Ku(n,t)):H.num(e)?e===t:parseFloat(e)===t,YL=class extends yf{constructor({x:e,y:t,z:n,...r}){const o=[],i=[];(e||t||n)&&(o.push([e||0,t||0,n||0]),i.push(s=>[`translate3d(${s.map(a=>_p(a,"px")).join(",")})`,Ku(s,0)])),Fn(r,(s,a)=>{if(a==="transform")o.push([s||""]),i.push(l=>[l,l===""]);else if(BL.test(a)){if(delete r[a],H.und(s))return;const l=GL.test(a)?"px":KL.test(a)?"deg":"";o.push(ct(s)),i.push(a==="rotate3d"?([u,c,d,f])=>[`rotate3d(${u},${c},${d},${_p(f,l)})`,Ku(f,0)]:u=>[`${a}(${u.map(c=>_p(c,l)).join(",")})`,Ku(u,a.startsWith("scale")?1:0)])}}),o.length&&(r.transform=new qL(o,i)),super(r)}},qL=class extends h5{constructor(e,t){super(),this.inputs=e,this.transforms=t,this._value=null}get(){return this._value||(this._value=this._get())}_get(){let e="",t=!0;return ee(this.inputs,(n,r)=>{const o=vt(n[0]),[i,s]=this.transforms[r](H.arr(o)?o:n.map(vt));e+=" "+i,t=t&&s}),t?"none":e}observerAdded(e){e==1&&ee(this.inputs,t=>ee(t,n=>Ut(n)&&ss(n,this)))}observerRemoved(e){e==0&&ee(this.inputs,t=>ee(t,n=>Ut(n)&&Wa(n,this)))}eventObserved(e){e.type=="change"&&(this._value=null),Ha(this,e)}},XL=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"];Lt.assign({batchedUpdates:rl.unstable_batchedUpdates,createStringInterpolator:v5,colors:L7});var QL=gL(XL,{applyAnimatedValues:HL,createAnimatedStyle:e=>new YL(e),getComponentProps:({scrollTop:e,scrollLeft:t,...n})=>n}),N5=QL.animated;const ZL=e=>{const{dispatch:t}=S.useContext(ml),{setHighlighted:n,clearHighlighted:r}=c0();return i=>({onPointerEnter:()=>{t({type:"enterItem",data:i}),n({seriesId:i.seriesId,dataIndex:i.dataIndex})},onPointerLeave:u=>{u.currentTarget.releasePointerCapture(u.pointerId),t({type:"leaveItem",data:i}),r()},onPointerDown:u=>{u.currentTarget.hasPointerCapture(u.pointerId)&&u.currentTarget.releasePointerCapture(u.pointerId)}})};function qo(e){return e instanceof Date?e.getTime():e}const JL=e=>{const t=DC(),n=pr(),{xAxis:r,yAxis:o,xAxisIds:i,yAxisIds:s}=Yr(),{dispatch:a}=S.useContext(ml),l=i[0],u=s[0],c=S.useRef({isInChart:!1,x:-1,y:-1});S.useEffect(()=>{const d=t.current;if(d===null||e)return()=>{};function f(b,m){const{scale:y,data:x,reverse:w}=b;if(!La(y)){const k=y.invert(m);if(x===void 0)return{value:k};const $=qo(k),P=x==null?void 0:x.findIndex((R,M)=>{const O=qo(R);return O>$&&(M===0||Math.abs($-O)<=Math.abs($-qo(x[M-1])))||O<=$&&(M===x.length-1||Math.abs(qo(k)-O)=0?x[P]:k,index:P}}const C=y.bandwidth()===0?Math.floor((m-Math.min(...y.range())+y.step()/2)/y.step()):Math.floor((m-Math.min(...y.range()))/y.step());if(C<0||C>=x.length)return null;if(w){const k=x.length-1-C;return{index:k,value:x[k]}}return{index:C,value:x[C]}}const p=()=>{c.current={isInChart:!1,x:-1,y:-1},a({type:"exitChart"})},h=b=>{const m="targetTouches"in b?b.targetTouches[0]:b,y=T7(d,m);if(c.current.x=y.x,c.current.y=y.y,!n.isPointInside(y,b.target)){c.current.isInChart&&(a({type:"exitChart"}),c.current.isInChart=!1);return}c.current.isInChart=!0;const x=f(r[l],y.x),w=f(o[u],y.y);a({type:"updateAxis",data:{x,y:w}})},g=b=>{const m=b.currentTarget;m&&m.hasPointerCapture(b.pointerId)&&m.releasePointerCapture(b.pointerId)};return d.addEventListener("pointerdown",g),d.addEventListener("pointermove",h),d.addEventListener("pointerout",p),d.addEventListener("pointercancel",p),d.addEventListener("pointerleave",p),()=>{d.removeEventListener("pointerdown",g),d.removeEventListener("pointermove",h),d.removeEventListener("pointerout",p),d.removeEventListener("pointercancel",p),d.removeEventListener("pointerleave",p)}},[t,a,u,o,l,r,e,n])},e9=["children","width","height","viewBox","disableAxisListener","className","title","desc"],t9=qe("svg",{name:"MuiChartsSurface",slot:"Root"})(()=>({touchAction:"none"})),n9=S.forwardRef(function(t,n){const{children:r,width:o,height:i,viewBox:s,disableAxisListener:a=!1,className:l,title:u,desc:c}=t,d=se(t,e9),f=A({width:o,height:i,x:0,y:0},s);return JL(a),v.jsxs(t9,A({width:o,height:i,viewBox:`${f.x} ${f.y} ${f.width} ${f.height}`,ref:n,className:l},d,{children:[v.jsx("title",{children:u}),v.jsx("desc",{children:c}),r]}))});function ob(e){const{isReversed:t,gradientId:n,size:r,direction:o,scale:i,colorMap:s}=e;return v.jsx("linearGradient",{id:n,x1:"0",x2:"0",y1:"0",y2:"0",[`${o}${t?1:2}`]:`${r}px`,gradientUnits:"userSpaceOnUse",children:s.thresholds.map((a,l)=>{const u=i(a);if(u===void 0)return null;const c=t?1-u/r:u/r;return v.jsxs(S.Fragment,{children:[v.jsx("stop",{offset:c,stopColor:s.colors[l],stopOpacity:1}),v.jsx("stop",{offset:c,stopColor:s.colors[l+1],stopOpacity:1})]},a.toString()+l)})})}function r9(){const{chartId:e}=S.useContext(uf);return S.useCallback((t,n)=>`${e}-gradient-${n}-${t}`,[e])}function o9(){const{top:e,height:t,bottom:n,left:r,width:o,right:i}=pr(),s=e+t+n,a=r+o+i,l=r9(),{xAxisIds:u,xAxis:c,yAxisIds:d,yAxis:f}=Yr();return v.jsxs("defs",{children:[d.filter(p=>f[p].colorMap!==void 0).map(p=>{const h=l(p,"y"),{colorMap:g,scale:b,colorScale:m,reverse:y}=f[p];return(g==null?void 0:g.type)==="piecewise"?v.jsx(ob,{isReversed:!y,scale:b,colorMap:g,size:s,gradientId:h,direction:"y"},h):(g==null?void 0:g.type)==="continuous"?v.jsx(jx,{isReversed:!y,scale:b,colorScale:m,colorMap:g,size:s,gradientId:h,direction:"y"},h):null}),u.filter(p=>c[p].colorMap!==void 0).map(p=>{const h=l(p,"x"),{colorMap:g,scale:b,reverse:m,colorScale:y}=c[p];return(g==null?void 0:g.type)==="piecewise"?v.jsx(ob,{isReversed:m,scale:b,colorMap:g,size:a,gradientId:h,direction:"x"},h):(g==null?void 0:g.type)==="continuous"?v.jsx(jx,{isReversed:m,scale:b,colorScale:y,colorMap:g,size:a,gradientId:h,direction:"x"},h):null})]})}const ib=(e,t)=>{const n=t==="x"?Xk:WA;return[...(e==null?void 0:e.map((r,o)=>A({id:`defaultized-${t}-axis-${o}`},r)))??[],...e===void 0||e.findIndex(({id:r})=>r===n)===-1?[{id:n,scaleType:"linear"}]:[]]},i9=(e,t)=>{const n=S.useMemo(()=>ib(e,"x"),[e]),r=S.useMemo(()=>ib(t,"y"),[t]);return[n,r]},s9=()=>{go(()=>{var n;if(!window.matchMedia)return Lt.assign({skipAnimation:!0}),()=>{};const e=window.matchMedia("(prefers-reduced-motion)"),t=r=>{Lt.assign({skipAnimation:r.matches||void 0})};return t(e),(n=e.addEventListener)==null||n.call(e,"change",t),()=>{var r;(r=e.removeEventListener)==null||r.call(e,"change",t)}},[])},a9=["width","height","series","margin","xAxis","yAxis","zAxis","colors","dataset","sx","title","desc","disableAxisListener","highlightedItem","onHighlightChange","plugins","children"],l9=(e,t)=>{const{width:n,height:r,series:o,margin:i,xAxis:s,yAxis:a,zAxis:l,colors:u,dataset:c,sx:d,title:f,desc:p,disableAxisListener:h,highlightedItem:g,onHighlightChange:b,plugins:m,children:y}=e,x=se(e,a9),w=S.useRef(null),C=Li(t,w);s9();const[k,$]=i9(s,a),P={width:n,height:r,margin:i,svgRef:w},R={plugins:m},M={series:o,colors:u,dataset:c},O={xAxis:k,yAxis:$,dataset:c},E={zAxis:l,dataset:c},_={highlightedItem:g,onHighlightChange:b},T=A({},x,{width:n,height:r,ref:C,sx:d,title:f,desc:p,disableAxisListener:h});return{children:y,drawingProviderProps:P,seriesProviderProps:M,cartesianContextProps:O,zAxisContextProps:E,highlightedProviderProps:_,chartsSurfaceProps:T,pluginProviderProps:R,xAxis:k,yAxis:$}},u9=S.forwardRef(function(t,n){const{children:r,drawingProviderProps:o,seriesProviderProps:i,cartesianContextProps:s,zAxisContextProps:a,highlightedProviderProps:l,chartsSurfaceProps:u,pluginProviderProps:c}=l9(t,n);return v.jsx(L8,A({},o,{children:v.jsx(Z6,A({},c,{children:v.jsx(nO,A({},i,{children:v.jsx(K8,A({},s,{children:v.jsx(j8,A({},a,{children:v.jsx(DI,{children:v.jsx(sO,A({},l,{children:v.jsxs(n9,A({},u,{children:[v.jsx(o9,{}),r]}))}))})}))}))}))}))}))}),c9=qe("div",{name:"MuiResponsiveChart",slot:"Container"})(({ownerState:e})=>({width:e.width??"100%",height:e.height??"100%",display:"flex",position:"relative",flexGrow:1,flexDirection:"column",alignItems:"center",justifyContent:"center",overflow:"hidden","&>svg":{width:"100%",height:"100%"}})),d9=(e,t)=>{const n=S.useRef(!1),r=S.useRef(null),[o,i]=S.useState(0),[s,a]=S.useState(0),l=S.useCallback(()=>{const u=r==null?void 0:r.current;if(!u)return;const d=lk(u).getComputedStyle(u),f=Math.floor(parseFloat(d.height))||0,p=Math.floor(parseFloat(d.width))||0;i(p),a(f)},[]);return S.useEffect(()=>{n.current=!0},[]),or(()=>{if(e!==void 0&&t!==void 0)return()=>{};l();const u=r.current;if(typeof ResizeObserver>"u")return()=>{};let c;const d=new ResizeObserver(()=>{c=requestAnimationFrame(()=>{l()})});return u&&d.observe(u),()=>{c&&window.cancelAnimationFrame(c),u&&d.unobserve(u)}},[l,t,e]),{containerRef:r,width:e??o,height:t??s}},f9=["width","height","margin","children","series","colors","dataset","desc","disableAxisListener","highlightedItem","onHighlightChange","plugins","sx","title","viewBox","xAxis","yAxis","zAxis"],p9=(e,t)=>{const{width:n,height:r,margin:o,children:i,series:s,colors:a,dataset:l,desc:u,disableAxisListener:c,highlightedItem:d,onHighlightChange:f,plugins:p,sx:h,title:g,viewBox:b,xAxis:m,yAxis:y,zAxis:x}=e,w=se(e,f9),{containerRef:C,width:k,height:$}=d9(n,r),P=A({},w,{ownerState:{width:n,height:r},ref:C});return{hasIntrinsicSize:k&&$,chartContainerProps:{margin:o,children:i,series:s,colors:a,dataset:l,desc:u,disableAxisListener:c,highlightedItem:d,onHighlightChange:f,plugins:p,sx:h,title:g,viewBox:b,xAxis:m,yAxis:y,zAxis:x,width:k,height:$,ref:t},resizableChartContainerProps:P}},h9=S.forwardRef(function(t,n){const{hasIntrinsicSize:r,chartContainerProps:o,resizableChartContainerProps:i}=p9(t,n);return v.jsx(c9,A({},i,{children:r?v.jsx(u9,A({},o)):null}))}),m9=["message"],g9=qe("text")(({theme:e})=>A({},e.typography.body2,{stroke:"none",fill:e.palette.text.primary,shapeRendering:"crispEdges",textAnchor:"middle",dominantBaseline:"middle"}));function v9(e){const{message:t}=e,n=se(e,m9),{top:r,left:o,height:i,width:s}=pr();return v.jsx(g9,A({x:o+s/2,y:r+i/2},n,{children:t??"Loading data…"}))}const y9=["message"],x9=qe("text")(({theme:e})=>A({},e.typography.body2,{stroke:"none",fill:e.palette.text.primary,shapeRendering:"crispEdges",textAnchor:"middle",dominantBaseline:"middle"}));function b9(e){const{message:t}=e,n=se(e,y9),{top:r,left:o,height:i,width:s}=pr();return v.jsx(x9,A({x:o+s/2,y:r+i/2},n,{children:t??"No data to display"}))}function w9(){const e=No();return Object.values(e).every(t=>{if(!t)return!0;const{series:n,seriesOrder:r}=t;return r.every(o=>n[o].data.length===0)})}function S9(e){var n,r,o,i;const t=w9();if(e.loading){const s=((n=e.slots)==null?void 0:n.loadingOverlay)??v9;return v.jsx(s,A({},(r=e.slotProps)==null?void 0:r.loadingOverlay))}if(t){const s=((o=e.slots)==null?void 0:o.noDataOverlay)??b9;return v.jsx(s,A({},(i=e.slotProps)==null?void 0:i.noDataOverlay))}return null}const k9=["classes","color","cornerRadius","dataIndex","endAngle","id","innerRadius","isFaded","isHighlighted","onClick","outerRadius","paddingAngle","startAngle","highlightScope"];function C9(e){return Hn("MuiPieArc",e)}fr("MuiPieArc",["root","highlighted","faded"]);const $9=e=>{const{classes:t,id:n,isFaded:r,isHighlighted:o}=e,i={root:["root",`series-${n}`,o&&"highlighted",r&&"faded"]};return Vn(i,C9,t)},P9=qe(N5.path,{name:"MuiPieArc",slot:"Root",overridesResolver:(e,t)=>t.arc})(({theme:e})=>({stroke:(e.vars||e).palette.background.paper,strokeWidth:1,strokeLinejoin:"round"}));function T9(e){const{classes:t,color:n,cornerRadius:r,dataIndex:o,endAngle:i,id:s,innerRadius:a,isFaded:l,isHighlighted:u,onClick:c,outerRadius:d,paddingAngle:f,startAngle:p}=e,h=se(e,k9),g={id:s,dataIndex:o,classes:t,color:n,isFaded:l,isHighlighted:u},b=$9(g),m=ZL();return v.jsx(P9,A({d:Bc([p,i,f,a,d,r],(y,x,w,C,k,$)=>rC().cornerRadius($)({padAngle:w,startAngle:y,endAngle:x,innerRadius:C,outerRadius:k})),visibility:Bc([p,i],(y,x)=>y===x?"hidden":"visible"),onClick:c,cursor:c?"pointer":"unset",ownerState:g,className:b.root},h,m({type:"pie",seriesId:s,dataIndex:o})))}const E9={keys:e=>e.id,from:({innerRadius:e,outerRadius:t,cornerRadius:n,startAngle:r,endAngle:o,paddingAngle:i,color:s,isFaded:a})=>({innerRadius:e,outerRadius:(e+t)/2,cornerRadius:n,startAngle:(r+o)/2,endAngle:(r+o)/2,paddingAngle:i,fill:s,opacity:a?.3:1}),leave:({innerRadius:e,startAngle:t,endAngle:n})=>({innerRadius:e,outerRadius:e,startAngle:(t+n)/2,endAngle:(t+n)/2}),enter:({innerRadius:e,outerRadius:t,startAngle:n,endAngle:r})=>({innerRadius:e,outerRadius:t,startAngle:n,endAngle:r}),update:({innerRadius:e,outerRadius:t,cornerRadius:n,startAngle:r,endAngle:o,paddingAngle:i,color:s,isFaded:a})=>({innerRadius:e,outerRadius:t,cornerRadius:n,startAngle:r,endAngle:o,paddingAngle:i,fill:s,opacity:a?.3:1}),config:{tension:120,friction:14,clamp:!0}},M9={keys:e=>e.id,from:({innerRadius:e,outerRadius:t,arcLabelRadius:n,cornerRadius:r,startAngle:o,endAngle:i,paddingAngle:s})=>({innerRadius:e,outerRadius:(e+t)/2,cornerRadius:r,arcLabelRadius:n,startAngle:(o+i)/2,endAngle:(o+i)/2,paddingAngle:s,opacity:0}),leave:({innerRadius:e,startAngle:t,endAngle:n})=>({innerRadius:e,outerRadius:e,arcLabelRadius:e,startAngle:(t+n)/2,endAngle:(t+n)/2,opacity:0}),enter:({innerRadius:e,outerRadius:t,startAngle:n,endAngle:r,arcLabelRadius:o})=>({innerRadius:e,outerRadius:t,startAngle:n,endAngle:r,arcLabelRadius:o,opacity:1}),update:({innerRadius:e,outerRadius:t,cornerRadius:n,startAngle:r,endAngle:o,paddingAngle:i,arcLabelRadius:s})=>({innerRadius:e,outerRadius:t,cornerRadius:n,startAngle:r,endAngle:o,paddingAngle:i,arcLabelRadius:s,opacity:1}),config:{tension:120,friction:14,clamp:!0}};function D5(e){const{id:t,data:n,faded:r,highlighted:o,paddingAngle:i=0,innerRadius:s=0,arcLabelRadius:a,outerRadius:l,cornerRadius:u=0}=e,{isFaded:c,isHighlighted:d}=c0();return S.useMemo(()=>n.map((p,h)=>{const g={seriesId:t,dataIndex:h},b=d(g),m=!b&&c(g),y=A({additionalRadius:0},m&&r||b&&o||{}),x=Math.max(0,Math.PI*(y.paddingAngle??i)/180),w=Math.max(0,y.innerRadius??s),C=Math.max(0,y.outerRadius??l+y.additionalRadius),k=y.cornerRadius??u,$=y.arcLabelRadius??a??(w+C)/2;return A({},p,y,{isFaded:m,isHighlighted:b,paddingAngle:x,innerRadius:w,outerRadius:C,cornerRadius:k,arcLabelRadius:$})}),[u,s,l,i,a,n,r,o,c,d,t])}const _9=["slots","slotProps","innerRadius","outerRadius","cornerRadius","paddingAngle","id","highlighted","faded","data","onItemClick","skipAnimation"],A9=["startAngle","endAngle","paddingAngle","innerRadius","arcLabelRadius","outerRadius","cornerRadius"];function O9(e){const{slots:t,slotProps:n,innerRadius:r=0,outerRadius:o,cornerRadius:i=0,paddingAngle:s=0,id:a,highlighted:l,faded:u={additionalRadius:-5},data:c,onItemClick:d,skipAnimation:f}=e,p=se(e,_9),h=D5({innerRadius:r,outerRadius:o,cornerRadius:i,paddingAngle:s,id:a,highlighted:l,faded:u,data:c}),g=j5(h,A({},E9,{immediate:f})),{highlightScope:b}=c0();if(c.length===0)return null;const m=(t==null?void 0:t.pieArc)??T9;return v.jsx("g",A({},p,{children:g((y,x,w,C)=>{let{startAngle:k,endAngle:$,paddingAngle:P,innerRadius:R,outerRadius:M,cornerRadius:O}=y,E=se(y,A9);return v.jsx(m,A({startAngle:k,endAngle:$,paddingAngle:P,innerRadius:R,outerRadius:M,cornerRadius:O,style:E,id:a,color:x.color,dataIndex:C,highlightScope:b,isFaded:x.isFaded,isHighlighted:x.isHighlighted,onClick:d&&(_=>{d(_,{type:"pie",seriesId:a,dataIndex:C},x)})},n==null?void 0:n.pieArc))})}))}const R9=["id","classes","color","startAngle","endAngle","paddingAngle","arcLabelRadius","innerRadius","outerRadius","cornerRadius","formattedArcLabel","isHighlighted","isFaded","style"];function j9(e){return Hn("MuiPieArcLabel",e)}const I9=fr("MuiPieArcLabel",["root","highlighted","faded"]),L9=e=>{const{classes:t,id:n,isFaded:r,isHighlighted:o}=e,i={root:["root",`series-${n}`,o&&"highlighted",r&&"faded"]};return Vn(i,j9,t)},N9=qe(N5.text,{name:"MuiPieArcLabel",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({fill:(e.vars||e).palette.text.primary,textAnchor:"middle",dominantBaseline:"middle",pointerEvents:"none"})),sb=(e,t)=>(n,r,o,i,s)=>{if(!e)return 0;const[a,l]=rC().cornerRadius(s).centroid({padAngle:o,startAngle:n,endAngle:r,innerRadius:i,outerRadius:i});return t==="x"?a:l};function D9(e){const{id:t,classes:n,color:r,startAngle:o,endAngle:i,paddingAngle:s,arcLabelRadius:a,cornerRadius:l,formattedArcLabel:u,isHighlighted:c,isFaded:d,style:f}=e,p=se(e,R9),g=L9({id:t,classes:n,color:r,isFaded:d,isHighlighted:c});return v.jsx(N9,A({className:g.root},p,{style:A({x:Bc([o,i,s,a,l],sb(u,"x")),y:Bc([o,i,s,a,l],sb(u,"y"))},f),children:u}))}const F9=["arcLabel","arcLabelMinAngle","arcLabelRadius","cornerRadius","data","faded","highlighted","id","innerRadius","outerRadius","paddingAngle","skipAnimation","slotProps","slots"],z9=["startAngle","endAngle","paddingAngle","innerRadius","outerRadius","arcLabelRadius","cornerRadius"],V9=180/Math.PI;function H9(e,t,n){var o;if(!e||(n.endAngle-n.startAngle)*V9{let{startAngle:C,endAngle:k,paddingAngle:$,innerRadius:P,outerRadius:R,arcLabelRadius:M,cornerRadius:O}=x,E=se(x,z9);return v.jsx(y,A({startAngle:C,endAngle:k,paddingAngle:$,innerRadius:P,outerRadius:R,arcLabelRadius:M,cornerRadius:O,style:E,id:l,color:w.color,isFaded:w.isFaded,isHighlighted:w.isHighlighted,formattedArcLabel:H9(t,n,w)},p==null?void 0:p.pieArcLabel))})}))}function ab(e,t){const{height:n,width:r}=t,{cx:o,cy:i}=e,s=Math.min(r,n)/2,a=lo(o??"50%",r),l=lo(i??"50%",n);return{cx:a,cy:l,availableRadius:s}}function U9(e){const{skipAnimation:t,slots:n,slotProps:r,onItemClick:o}=e,i=rO(),{left:s,top:a,width:l,height:u}=S.useContext(uf);if(i===void 0)return null;const{series:c,seriesOrder:d}=i;return v.jsxs("g",{children:[d.map(f=>{const{innerRadius:p,outerRadius:h,cornerRadius:g,paddingAngle:b,data:m,cx:y,cy:x,highlighted:w,faded:C}=c[f],{cx:k,cy:$,availableRadius:P}=ab({cx:y,cy:x},{width:l,height:u}),R=lo(h??P,P),M=lo(p??0,P);return v.jsx("g",{transform:`translate(${s+k}, ${a+$})`,children:v.jsx(O9,{innerRadius:M,outerRadius:R,cornerRadius:g,paddingAngle:b,id:f,data:m,skipAnimation:t,highlighted:w,faded:C,onItemClick:o,slots:n,slotProps:r})},f)}),d.map(f=>{const{innerRadius:p,outerRadius:h,arcLabelRadius:g,cornerRadius:b,paddingAngle:m,arcLabel:y,arcLabelMinAngle:x,data:w,cx:C,cy:k}=c[f],{cx:$,cy:P,availableRadius:R}=ab({cx:C,cy:k},{width:l,height:u}),M=lo(h??R,R),O=lo(p??0,R),E=g===void 0?(M+O)/2:lo(g,R);return v.jsx("g",{transform:`translate(${s+$}, ${a+P})`,children:v.jsx(W9,{innerRadius:O,outerRadius:M??R,arcLabelRadius:E,cornerRadius:b,paddingAngle:m,id:f,data:w,skipAnimation:t,arcLabel:y,arcLabelMinAngle:x,slots:n,slotProps:r})},f)})]})}const B9=()=>is().direction==="rtl",G9=["xAxis","yAxis","series","width","height","margin","colors","sx","tooltip","axisHighlight","skipAnimation","legend","topAxis","leftAxis","rightAxis","bottomAxis","children","slots","slotProps","onItemClick","loading","highlightedItem","onHighlightChange","className"],K9={top:5,bottom:5,left:5,right:100},Y9={top:5,bottom:5,left:100,right:5},q9=S.forwardRef(function(t,n){const{xAxis:r,yAxis:o,series:i,width:s,height:a,margin:l,colors:u,sx:c,tooltip:d={trigger:"item"},axisHighlight:f={x:"none",y:"none"},skipAnimation:p,legend:h,topAxis:g=null,leftAxis:b=null,rightAxis:m=null,bottomAxis:y=null,children:x,slots:w,slotProps:C,onItemClick:k,loading:$,highlightedItem:P,onHighlightChange:R,className:M}=t,O=se(t,G9),E=B9(),_=A({},E?Y9:K9,l),T=A({direction:"column",position:{vertical:"middle",horizontal:E?"left":"right"}},h);return v.jsxs(h9,A({},O,{ref:n,series:i.map(I=>A({type:"pie"},I)),width:s,height:a,margin:_,xAxis:r??[{id:Xk,scaleType:"point",data:[...new Array(Math.max(...i.map(I=>I.data.length)))].map((I,L)=>L)}],yAxis:o,colors:u,sx:c,disableAxisListener:(d==null?void 0:d.trigger)!=="axis"&&(f==null?void 0:f.x)==="none"&&(f==null?void 0:f.y)==="none",highlightedItem:P,onHighlightChange:R,className:M,children:[v.jsx(dj,{topAxis:g,leftAxis:b,rightAxis:m,bottomAxis:y,slots:w,slotProps:C}),v.jsx(U9,{slots:w,slotProps:C,onItemClick:k,skipAnimation:p}),v.jsx(S9,{loading:$,slots:w,slotProps:C}),v.jsx(S7,A({},T,{slots:w,slotProps:C})),v.jsx(P7,A({},f)),!$&&v.jsx(o7,A({},d,{slots:w,slotProps:C})),x]}))});function X9({setInfo:e}){const t=[{id:0,value:33,name:"Software",skills:[{name:"Django",logo:"https://www.svgrepo.com/show/353657/django-icon.svg"},{name:"Python",logo:"https://i.pinimg.com/originals/2f/9c/11/2f9c11f9e55efbf1791f12c06d60729b.jpg"},{name:"Java",logo:"https://cdn4.iconfinder.com/data/icons/logos-and-brands/512/181_Java_logo_logos-512.png"},{name:"React",logo:"https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcRQ-RS3Oeb0xs2q4aJmYZ4FGWnFuPnn4yFNHg&s"},{name:"JavaScript",logo:"https://upload.wikimedia.org/wikipedia/commons/6/6a/JavaScript-logo.png"},{name:"C",logo:"https://cdn.iconscout.com/icon/free/png-256/free-c-58-1175247.png"},{name:"PHP",logo:"https://pngimg.com/uploads/php/small/php_PNG7.png"},{name:"Rust",logo:"https://upload.wikimedia.org/wikipedia/commons/thumb/2/20/Rustacean-orig-noshadow.svg/1200px-Rustacean-orig-noshadow.svg.png"},{name:"Anchor",logo:"https://cryptologos.cc/logos/solana-sol-logo.png"},{name:"TypeScript",logo:"https://cdn-icons-png.flaticon.com/256/919/919832.png"},{name:"Postman",logo:"https://uxwing.com/wp-content/themes/uxwing/download/brands-and-social-media/postman-icon.png"},{name:"SQL",logo:"https://icons.veryicon.com/png/o/application/designer-icon/sql-5.png"},{name:"MongoDB",logo:"https://seeklogo.com/images/M/mongodb-logo-D13D67C930-seeklogo.com.png"},{name:"MySQL",logo:"https://w7.pngwing.com/pngs/841/331/png-transparent-mysql-database-phpmyadmin-postgresql-innodb-mysql-orange-logo-area-thumbnail.png"},{name:"jQuery",logo:"https://cdn.worldvectorlogo.com/logos/jquery-4.svg"},{name:"XAMPP",logo:"https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcTeBr8B8nBG3QP5UIoWaS7xNXhXHrKAkmLsZA&s"},{name:"Bootstrap",logo:"https://cdn-icons-png.flaticon.com/512/5968/5968672.png"},{name:"Flask",logo:"https://cms-assets.tutsplus.com/uploads/users/30/posts/16037/preview_image/flask.png"}]},{id:1,value:33,name:"AI",skills:[{name:"Machine Learning",logo:"https://cdn-icons-png.freepik.com/512/8365/8365406.png"},{name:"Data Visualization",logo:"https://static.vecteezy.com/system/resources/thumbnails/001/187/079/small/chart.png"},{name:"Deep Learning",logo:"https://cdn-icons-png.flaticon.com/512/8637/8637101.png"},{name:"Algorithms",logo:"https://cdn-icons-png.flaticon.com/512/10061/10061724.png"},{name:"numpy",logo:"https://user-images.githubusercontent.com/50221806/86498208-af4bfe00-bd39-11ea-88fa-c747ae0ddd85.png"},{name:"pandas",logo:"https://pandas.pydata.org/static/img/favicon_white.ico"},{name:"matplotlib",logo:"https://pydata.org/wp-content/uploads/2016/07/matplotlib-logo-300.png"},{name:"seaborn",logo:"https://user-images.githubusercontent.com/315810/92159303-30d41100-edfb-11ea-8107-1c5352202571.png"},{name:"scikit-learn",logo:"https://avatars.githubusercontent.com/u/17349883?s=280&v=4"},{name:"Jupyter",logo:"https://raw.githubusercontent.com/jithurjacob/vscode-nbpreviewer/master/images/jupyter.png"}]},{id:2,value:33,name:"DevOps",skills:[{name:"Linux",logo:"https://seeklogo.com/images/L/Linux_Tux-logo-DA252F3C21-seeklogo.com.png"},{name:"Docker",logo:"https://cdn-icons-png.flaticon.com/512/5969/5969124.png"},{name:"Git",logo:"https://git-scm.com/images/logos/downloads/Git-Icon-1788C.png"},{name:"VirtualBox",logo:"https://styles.redditmedia.com/t5_7sqfde/styles/communityIcon_ix7q9wstcxna1.png"},{name:"Nginx",logo:"https://iconape.com/wp-content/png_logo_vector/nginx.png"},{name:"Ansible",logo:"https://docs.ansible.com/ansible/2.9/_static/images/logo_invert.png"},{name:"Wireshark",logo:"https://cdn.icon-icons.com/icons2/1495/PNG/512/wireshark_103123.png"},{name:"Networking",logo:"https://static.vecteezy.com/system/resources/thumbnails/018/923/768/small_2x/timeline-diagram-template-png.png"}]}];return v.jsx("div",{className:"pie-div",children:v.jsx(q9,{colors:["wheat","#ffccff","#ccffff"],series:[{data:t,paddingAngle:5,innerRadius:50,cornerRadius:5,startAngle:0,endAngle:360,arcLabel:n=>`${n.name}`,highlightScope:{faded:"global",highlighted:"item"},faded:{innerRadius:30,additionalRadius:-30,color:"grey"},highlighted:{innerRadius:50,additionalRadius:10}}],sx:{[`& .${I9.root}`]:{fill:"black",fontSize:12,fontWeight:"bold"}},tooltip:{enabled:!1},height:330,onHighlightChange:n=>{n&&e(t[n.dataIndex].skills)}})})}function lb(e){const t={display:"flex",font:"monospace",color:"white",fontSize:"30px",textAlign:"left",fontWeight:"bold"},n={display:"flex",textAlign:"left",font:"monospace",color:"white",fontSize:"15px",opacity:"0.8",padding:"1rem",border:"0.1px solid rgb(100, 100, 100)",height:"auto",borderRadius:"10px",overflow:"visible",zIndex:"-1",marginRight:"35px"},r={display:"flex",flexWrap:"wrap",columnGap:"0px",padding:"0",margin:"0"},o={display:"flex",alignItems:"center",justifyContent:"center",padding:"5px",margin:"5px",borderRadius:"5px",backgroundColor:"rgba(0, 0, 0, 0.5)",color:"white",fontSize:"12px",fontWeight:"bold",width:"auto"},i={skillData:{display:"block",textAlign:"center",font:"monospace",color:"white",fontSize:"15px",margin:"15px 35px 0 0",opacity:"0.8",padding:"1rem",border:"0.1px solid rgb(100, 100, 100)",height:"auto",borderRadius:"10px"}},[s,a]=S.useState([]);return v.jsx(v.Fragment,{children:v.jsxs("div",{className:"skill-container",children:[v.jsxs("div",{style:t,children:[v.jsx("div",{children:"Skills"}),v.jsx("div",{className:"close-btn",onClick:()=>e.setExpanded(!1),children:v.jsx(ul,{})})]}),v.jsxs("div",{style:window.innerWidth<798?i.skillData:n,children:[v.jsx(X9,{setInfo:a}),v.jsx("div",{className:"pie-info",children:v.jsx("div",{style:r,children:s.map((l,u)=>v.jsxs("div",{style:o,children:[l.logo&&v.jsx("img",{src:l.logo,alt:"",style:{width:"20px",height:"20px",marginRight:"5px"}}),l.name]},u))})})]})]})})}function Q9(e){const t={display:"flex",font:"monospace",color:"white",fontSize:"15px",margin:"15px 35px 0 0",opacity:"0.8",textAlign:"left",padding:"1rem",border:"none",height:"auto",borderRadius:"10px"},n={width:"100px",height:"100px",margin:"0 10px 0 0"},r={display:"flex",font:"monospace",fontSize:"20px",textAlign:"left",fontWeight:"bold"},o={display:"flex",font:"monospace",color:"white",fontSize:"15px",textAlign:"left",fontWeight:"bold"};return v.jsxs("div",{className:"achievement-card",style:t,children:[v.jsx("img",{src:e.logo,alt:"badge",style:n}),v.jsxs("div",{children:[v.jsx("div",{style:r,children:e.content.achievement}),v.jsx("div",{style:o,children:e.content.additional}),v.jsx("div",{style:{color:"grey"},children:e.content.year})]})]})}const Z9="/assets/badge-BXfHEwqV.png",J9="/assets/badge2-CzfoDTcJ.png",eN="/assets/badge3-DyI0Y8Uf.png";function tN(e){const t={display:"block",font:"monospace",position:"relative",margin:"10px",padding:"10px"},n={display:"flex",font:"monospace",color:"white",fontSize:"30px",textAlign:"left",fontWeight:"bold"},r=[Z9,J9,eN];return v.jsx(v.Fragment,{children:v.jsxs("div",{style:t,children:[v.jsxs("div",{style:n,children:[v.jsx("div",{children:"Achievements"}),v.jsx("div",{className:"close-btn",onClick:()=>e.setExpanded(!1),children:v.jsx(ul,{})})]}),v.jsx("div",{className:"achievements-list",children:e.content.map((o,i)=>v.jsx(Q9,{logo:r[i],content:o},i))})]})})}function nN({certification:e,index:t}){return v.jsxs("div",{className:"card",children:[v.jsx("div",{className:"card__side card__side--front-1",children:v.jsx("div",{className:"certification-card",children:v.jsxs("div",{children:[v.jsx("div",{style:window.innerWidth<798?{fontSize:"12px"}:{fontSize:"16px"},className:"card-content",children:e.certification}),v.jsx("div",{className:"card-content",style:{fontSize:"12px",color:"grey"},children:e.year}),v.jsx("div",{style:window.innerWidth<798?{fontSize:"10px",color:"grey"}:{fontSize:"12px",color:"grey"},children:e.institution})]})},t)}),v.jsx("div",{className:"card-content card__side card__side--back card__side--back-1",children:v.jsx("img",{src:e.image,alt:"certificate",style:{width:"100%",height:"100%"}})})]})}const rN="/assets/cs50x-B0So1Q_L.png",oN="/assets/acm_ml-DS6srYd9.png",iN="/assets/cs50w-ClLToWVo.png",sN="/assets/google_cyber-DZDomvYC.png",aN="/assets/nptel_python-ScttXPRu.png";function lN(e){const t={display:"block",font:"`Times New Roman`, `serif`",position:"relative",width:"100%",margin:"10px",padding:"10px"},n={display:"flex",color:"white",fontSize:"30px",textAlign:"left",fontWeight:"bold"},r=window.innerWidth<798?{display:"flex",flexWrap:"wrap",margin:"4px",padding:"0",paddingTop:"10px"}:{display:"flex",flexWrap:"wrap",marginTop:"10px",padding:"0"},o={title:"Certifications",description:"Proofs of sacrifices and dedication",points:["Harvard","Google","IIT Madras","ACM..."],content:[{certification:"CS50W: Web Programming with Python and JavaScript",year:"2024",institution:"Harvard University",image:iN},{certification:"Google Cybersecurity Professional",year:"2024",institution:"Coursera",image:sN},{certification:"Machine Learning using Python",year:"2024",institution:"Association of Computing Machinery",image:oN},{certification:"CS50: Introduction to Computer Science",year:"2023",institution:"Harvard University",image:rN},{certification:"Programming, Data Structures and Algorithms using Python",year:"2024",institution:"IIT Madras (NPTEL)",image:aN}]};return v.jsx(v.Fragment,{children:v.jsxs("div",{style:t,children:[v.jsxs("div",{style:n,children:[v.jsx("div",{children:"Certifications"}),v.jsx("div",{className:"close-btn",onClick:()=>e.setExpanded(!1),children:v.jsx(ul,{})})]}),v.jsx("div",{style:r,className:"certificates-div",children:o.content.map((i,s)=>v.jsx(nN,{index:s,certification:i},s))})]})})}function uN({isExpanded:e,setExpanded:t}){const n={title:"Education",description:"Colleges, Schools, and Degrees",points:["College of Engineering, Trivandrum","University College, TVM","St. Joseph's HSS..."],content:[{ongoing:!0,degree:"Masters in Computer Applications",school:"College of Engineering, Trivandrum",year:"2023 - Present",marks:"CGPA: 9.36"},{ongoing:!1,degree:"Bachelor of Science in Mathematics",school:"University College, Trivandrum",year:"2020 - 2023",marks:"CGPA: 9.63 (Core)"},{ongoing:!1,degree:"Higher Secondary",school:"St. Joseph's Higher Secondary School",year:"2018 - 2020",marks:"Percentage: 94%"}]},r={title:"Skills",description:"Products of consistent learning and practice",points:["Django","React","Python","Java","C..."],content:[]},o={title:"Certifications",description:"Proofs of sacrifices and dedication",points:["Harvard","Google","IIT Madras","ACM..."]},i={title:"Achievements",description:"Seeds of motivation and inspiration",points:["College Topper","IIT JAM","Kerala MCA Entrance..."],content:[{achievement:"College Topper",year:"2023",additional:"University College, Trivandrum"},{achievement:"AIR 1778",year:"2023",additional:"IIT JAM "},{achievement:"Rank 20",year:"2023",additional:"Kerala MCA Entrance"}]},s={overflow:"hidden"},a={display:"block",position:"relative",backgroundColor:"black",height:"100%",width:"100%",borderRadius:"20px",overflow:"hidden"},l={display:"grid",gridTemplateColumns:"1fr 1fr",gridGap:"20px"},u={cards:{...l,display:"block"},expanded:{...a}},[c,d]=S.useState("none"),f=S.useRef(null);S.useEffect(()=>{f.current&&e&&f.current.scrollIntoView({behavior:"smooth",block:"nearest"})},[]);const[p,h]=S.useState(0);return S.useEffect(()=>{const g=setInterval(()=>{h(b=>(b+1)%4)},2e3);return()=>clearInterval(g)},[]),v.jsxs("div",{ref:f,style:s,children:[v.jsxs("div",{className:"expandedDiv",style:e?window.innerWidth<798?u.expanded:a:{display:"none"},onMouseLeave:()=>t(!1),children:[c=="Education"&&v.jsx(HA,{...n,setExpanded:t}),c=="Skills"&&v.jsx(lb,{...lb,setExpanded:t}),c=="Achievements"&&v.jsx(tN,{...i,setExpanded:t}),c=="Certifications"&&v.jsx(lN,{setExpanded:t})]}),v.jsxs("div",{style:window.innerWidth<798?u.cards:l,className:"more-details",children:[v.jsx(Jl,{...n,isExpanded:e,setExpanded:t,setHovering:d,isActive:p===0}),v.jsx(Jl,{...r,isExpanded:e,setExpanded:t,setHovering:d,isActive:p===1}),v.jsx(Jl,{...o,isExpanded:e,setExpanded:t,setHovering:d,isActive:p===(window.innerWidth<798?2:3)}),v.jsx(Jl,{...i,isExpanded:e,setExpanded:t,setHovering:d,isActive:p===(window.innerWidth<798?3:2)})]})]})}function cN({isExpanded:e,setExpanded:t}){const n={flex:4,padding:"1rem",display:"block",backgroundColor:"black",maxWidth:"100%",height:"auto",background:"#000",borderRadius:"0 1.5rem 1.5rem 0",overflow:"hidden",zIndex:2},r={...n,borderRadius:"0 0 1.5rem 1.5rem"};return v.jsx(v.Fragment,{children:v.jsxs("div",{style:window.innerWidth<798?r:n,onMouseLeave:()=>t(!1),children:[v.jsx(kE,{isExpanded:e}),v.jsx(uN,{isExpanded:e,setExpanded:t})]})})}const dN="/assets/dp_cartoon-C0cUQ8Bq.jpeg";function fN(e,t,n){let[r,o]=S.useState(e||t),i=S.useRef(e!==void 0),s=e!==void 0;S.useEffect(()=>{let u=i.current;u!==s&&console.warn(`WARN: A component changed from ${u?"controlled":"uncontrolled"} to ${s?"controlled":"uncontrolled"}.`),i.current=s},[s]);let a=s?e:r,l=S.useCallback((u,...c)=>{let d=(f,...p)=>{n&&(Object.is(a,f)||n(f,...p)),s||(a=f)};typeof u=="function"?(console.warn("We can not support a function callback. See Github Issues for details https://github.com/adobe/react-spectrum/issues/2320"),o((p,...h)=>{let g=u(s?a:p,...h);return d(g,...c),s?p:g})):(s||o(u),d(u,...c))},[s,a,n]);return[a,l]}function mm(e,t=-1/0,n=1/0){return Math.min(Math.max(e,t),n)}function pN(e){let[t,n]=fN(e.isOpen,e.defaultOpen||!1,e.onOpenChange);const r=S.useCallback(()=>{n(!0)},[n]),o=S.useCallback(()=>{n(!1)},[n]),i=S.useCallback(()=>{n(!t)},[n,t]);return{isOpen:t,setOpen:n,open:r,close:o,toggle:i}}const hN=1500,ub=500;let to={},mN=0,_s=!1,Un=null,no=null;function gN(e={}){let{delay:t=hN,closeDelay:n=ub}=e,{isOpen:r,open:o,close:i}=pN(e),s=S.useMemo(()=>`${++mN}`,[]),a=S.useRef(),l=()=>{to[s]=d},u=()=>{for(let p in to)p!==s&&(to[p](!0),delete to[p])},c=()=>{clearTimeout(a.current),a.current=null,u(),l(),_s=!0,o(),Un&&(clearTimeout(Un),Un=null),no&&(clearTimeout(no),no=null)},d=p=>{p||n<=0?(clearTimeout(a.current),a.current=null,i()):a.current||(a.current=setTimeout(()=>{a.current=null,i()},n)),Un&&(clearTimeout(Un),Un=null),_s&&(no&&clearTimeout(no),no=setTimeout(()=>{delete to[s],no=null,_s=!1},Math.max(ub,n)))},f=()=>{u(),l(),!r&&!Un&&!_s?Un=setTimeout(()=>{Un=null,_s=!0,c()},t):r||c()};return S.useEffect(()=>()=>{clearTimeout(a.current),to[s]&&delete to[s]},[s]),{isOpen:r,open:p=>{!p&&t>0&&!a.current?f():c()},close:d}}const Yi=typeof document<"u"?ze.useLayoutEffect:()=>{};function gm(e){const t=S.useRef(null);return Yi(()=>{t.current=e},[e]),S.useCallback((...n)=>{const r=t.current;return r==null?void 0:r(...n)},[])}const Gc={prefix:String(Math.round(Math.random()*1e10)),current:0},F5=ze.createContext(Gc),vN=ze.createContext(!1);let yN=!!(typeof window<"u"&&window.document&&window.document.createElement),Ap=new WeakMap;function xN(e=!1){let t=S.useContext(F5),n=S.useRef(null);if(n.current===null&&!e){var r,o;let i=(o=ze.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED)===null||o===void 0||(r=o.ReactCurrentOwner)===null||r===void 0?void 0:r.current;if(i){let s=Ap.get(i);s==null?Ap.set(i,{id:t.current,state:i.memoizedState}):i.memoizedState!==s.state&&(t.current=s.id,Ap.delete(i))}n.current=++t.current}return n.current}function bN(e){let t=S.useContext(F5);t===Gc&&!yN&&console.warn("When server rendering, you must wrap your application in an to ensure consistent ids are generated between the client and server.");let n=xN(!!e),r=`react-aria${t.prefix}`;return e||`${r}-${n}`}function wN(e){let t=ze.useId(),[n]=S.useState(Z0()),r=n?"react-aria":`react-aria${Gc.prefix}`;return e||`${r}-${t}`}const SN=typeof ze.useId=="function"?wN:bN;function kN(){return!1}function CN(){return!0}function $N(e){return()=>{}}function Z0(){return typeof ze.useSyncExternalStore=="function"?ze.useSyncExternalStore($N,kN,CN):S.useContext(vN)}let PN=!!(typeof window<"u"&&window.document&&window.document.createElement),Kc=new Map;function TN(e){let[t,n]=S.useState(e),r=S.useRef(null),o=SN(t),i=S.useCallback(s=>{r.current=s},[]);return PN&&Kc.set(o,i),Yi(()=>{let s=o;return()=>{Kc.delete(s)}},[o]),S.useEffect(()=>{let s=r.current;s&&(r.current=null,n(s))}),o}function EN(e,t){if(e===t)return e;let n=Kc.get(e);if(n)return n(t),t;let r=Kc.get(t);return r?(r(e),e):t}function MN(...e){return(...t)=>{for(let n of e)typeof n=="function"&&n(...t)}}const xl=e=>{var t;return(t=e==null?void 0:e.ownerDocument)!==null&&t!==void 0?t:document},vm=e=>e&&"window"in e&&e.window===e?e:xl(e).defaultView||window;function vo(...e){let t={...e[0]};for(let n=1;n=65&&o.charCodeAt(2)<=90?t[o]=MN(i,s):(o==="className"||o==="UNSAFE_className")&&typeof i=="string"&&typeof s=="string"?t[o]=Zt(i,s):o==="id"&&i&&s?t.id=EN(i,s):t[o]=s!==void 0?s:i}}return t}const _N=new Set(["id"]),AN=new Set(["aria-label","aria-labelledby","aria-describedby","aria-details"]),ON=new Set(["href","hrefLang","target","rel","download","ping","referrerPolicy"]),RN=/^(data-.*)$/;function jN(e,t={}){let{labelable:n,isLink:r,propNames:o}=t,i={};for(const s in e)Object.prototype.hasOwnProperty.call(e,s)&&(_N.has(s)||n&&AN.has(s)||r&&ON.has(s)||o!=null&&o.has(s)||RN.test(s))&&(i[s]=e[s]);return i}function J0(e){var t;return typeof window>"u"||window.navigator==null?!1:((t=window.navigator.userAgentData)===null||t===void 0?void 0:t.brands.some(n=>e.test(n.brand)))||e.test(window.navigator.userAgent)}function IN(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 LN(){return IN(/^Mac/i)}function NN(){return J0(/AppleWebKit/i)&&!DN()}function DN(){return J0(/Chrome/i)}function FN(){return J0(/Android/i)}function zN(){return typeof window.ResizeObserver<"u"}function VN(e){const{ref:t,onResize:n}=e;S.useEffect(()=>{let r=t==null?void 0:t.current;if(r)if(zN()){const o=new window.ResizeObserver(i=>{i.length&&n()});return o.observe(r),()=>{r&&o.unobserve(r)}}else return window.addEventListener("resize",n,!1),()=>{window.removeEventListener("resize",n,!1)}},[n,t])}function HN(e){return e.mozInputSource===0&&e.isTrusted?!0:FN()&&e.pointerType?e.type==="click"&&e.buttons===1:e.detail===0&&!e.pointerType}let WN=class{isDefaultPrevented(){return this.nativeEvent.defaultPrevented}preventDefault(){this.defaultPrevented=!0,this.nativeEvent.preventDefault()}stopPropagation(){this.nativeEvent.stopPropagation(),this.isPropagationStopped=()=>!0}isPropagationStopped(){return!1}persist(){}constructor(t,n){this.nativeEvent=n,this.target=n.target,this.currentTarget=n.currentTarget,this.relatedTarget=n.relatedTarget,this.bubbles=n.bubbles,this.cancelable=n.cancelable,this.defaultPrevented=n.defaultPrevented,this.eventPhase=n.eventPhase,this.isTrusted=n.isTrusted,this.timeStamp=n.timeStamp,this.type=t}};function UN(e){let t=S.useRef({isFocused:!1,observer:null});Yi(()=>{const r=t.current;return()=>{r.observer&&(r.observer.disconnect(),r.observer=null)}},[]);let n=gm(r=>{e==null||e(r)});return S.useCallback(r=>{if(r.target instanceof HTMLButtonElement||r.target instanceof HTMLInputElement||r.target instanceof HTMLTextAreaElement||r.target instanceof HTMLSelectElement){t.current.isFocused=!0;let o=r.target,i=s=>{t.current.isFocused=!1,o.disabled&&n(new WN("blur",s)),t.current.observer&&(t.current.observer.disconnect(),t.current.observer=null)};o.addEventListener("focusout",i,{once:!0}),t.current.observer=new MutationObserver(()=>{if(t.current.isFocused&&o.disabled){var s;(s=t.current.observer)===null||s===void 0||s.disconnect();let a=o===document.activeElement?null:document.activeElement;o.dispatchEvent(new FocusEvent("blur",{relatedTarget:a})),o.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:a}))}}),t.current.observer.observe(o,{attributes:!0,attributeFilter:["disabled"]})}},[n])}let as=null,BN=new Set,oa=new Map,Ro=!1,ym=!1;function ev(e,t){for(let n of BN)n(e,t)}function GN(e){return!(e.metaKey||!LN()&&e.altKey||e.ctrlKey||e.key==="Control"||e.key==="Shift"||e.key==="Meta")}function Yc(e){Ro=!0,GN(e)&&(as="keyboard",ev("keyboard",e))}function Bt(e){as="pointer",(e.type==="mousedown"||e.type==="pointerdown")&&(Ro=!0,ev("pointer",e))}function z5(e){HN(e)&&(Ro=!0,as="virtual")}function V5(e){e.target===window||e.target===document||(!Ro&&!ym&&(as="virtual",ev("virtual",e)),Ro=!1,ym=!1)}function H5(){Ro=!1,ym=!0}function cb(e){if(typeof window>"u"||oa.get(vm(e)))return;const t=vm(e),n=xl(e);let r=t.HTMLElement.prototype.focus;t.HTMLElement.prototype.focus=function(){Ro=!0,r.apply(this,arguments)},n.addEventListener("keydown",Yc,!0),n.addEventListener("keyup",Yc,!0),n.addEventListener("click",z5,!0),t.addEventListener("focus",V5,!0),t.addEventListener("blur",H5,!1),typeof PointerEvent<"u"?(n.addEventListener("pointerdown",Bt,!0),n.addEventListener("pointermove",Bt,!0),n.addEventListener("pointerup",Bt,!0)):(n.addEventListener("mousedown",Bt,!0),n.addEventListener("mousemove",Bt,!0),n.addEventListener("mouseup",Bt,!0)),t.addEventListener("beforeunload",()=>{W5(e)},{once:!0}),oa.set(t,{focus:r})}const W5=(e,t)=>{const n=vm(e),r=xl(e);t&&r.removeEventListener("DOMContentLoaded",t),oa.has(n)&&(n.HTMLElement.prototype.focus=oa.get(n).focus,r.removeEventListener("keydown",Yc,!0),r.removeEventListener("keyup",Yc,!0),r.removeEventListener("click",z5,!0),n.removeEventListener("focus",V5,!0),n.removeEventListener("blur",H5,!1),typeof PointerEvent<"u"?(r.removeEventListener("pointerdown",Bt,!0),r.removeEventListener("pointermove",Bt,!0),r.removeEventListener("pointerup",Bt,!0)):(r.removeEventListener("mousedown",Bt,!0),r.removeEventListener("mousemove",Bt,!0),r.removeEventListener("mouseup",Bt,!0)),oa.delete(n))};function KN(e){const t=xl(e);let n;return t.readyState!=="loading"?cb(e):(n=()=>{cb(e)},t.addEventListener("DOMContentLoaded",n)),()=>W5(e,n)}typeof document<"u"&&KN();function YN(){return as!=="pointer"}function qN(){return as}function XN(e){let{isDisabled:t,onBlurWithin:n,onFocusWithin:r,onFocusWithinChange:o}=e,i=S.useRef({isFocusWithin:!1}),s=S.useCallback(u=>{i.current.isFocusWithin&&!u.currentTarget.contains(u.relatedTarget)&&(i.current.isFocusWithin=!1,n&&n(u),o&&o(!1))},[n,o,i]),a=UN(s),l=S.useCallback(u=>{!i.current.isFocusWithin&&document.activeElement===u.target&&(r&&r(u),o&&o(!0),i.current.isFocusWithin=!0,a(u))},[r,o,a]);return t?{focusWithinProps:{onFocus:void 0,onBlur:void 0}}:{focusWithinProps:{onFocus:l,onBlur:s}}}let qc=!1,Op=0;function xm(){qc=!0,setTimeout(()=>{qc=!1},50)}function db(e){e.pointerType==="touch"&&xm()}function QN(){if(!(typeof document>"u"))return typeof PointerEvent<"u"?document.addEventListener("pointerup",db):document.addEventListener("touchend",xm),Op++,()=>{Op--,!(Op>0)&&(typeof PointerEvent<"u"?document.removeEventListener("pointerup",db):document.removeEventListener("touchend",xm))}}function U5(e){let{onHoverStart:t,onHoverChange:n,onHoverEnd:r,isDisabled:o}=e,[i,s]=S.useState(!1),a=S.useRef({isHovered:!1,ignoreEmulatedMouseEvents:!1,pointerType:"",target:null}).current;S.useEffect(QN,[]);let{hoverProps:l,triggerHoverEnd:u}=S.useMemo(()=>{let c=(p,h)=>{if(a.pointerType=h,o||h==="touch"||a.isHovered||!p.currentTarget.contains(p.target))return;a.isHovered=!0;let g=p.currentTarget;a.target=g,t&&t({type:"hoverstart",target:g,pointerType:h}),n&&n(!0),s(!0)},d=(p,h)=>{if(a.pointerType="",a.target=null,h==="touch"||!a.isHovered)return;a.isHovered=!1;let g=p.currentTarget;r&&r({type:"hoverend",target:g,pointerType:h}),n&&n(!1),s(!1)},f={};return typeof PointerEvent<"u"?(f.onPointerEnter=p=>{qc&&p.pointerType==="mouse"||c(p,p.pointerType)},f.onPointerLeave=p=>{!o&&p.currentTarget.contains(p.target)&&d(p,p.pointerType)}):(f.onTouchStart=()=>{a.ignoreEmulatedMouseEvents=!0},f.onMouseEnter=p=>{!a.ignoreEmulatedMouseEvents&&!qc&&c(p,"mouse"),a.ignoreEmulatedMouseEvents=!1},f.onMouseLeave=p=>{!o&&p.currentTarget.contains(p.target)&&d(p,"mouse")}),{hoverProps:f,triggerHoverEnd:d}},[t,n,r,o,a]);return S.useEffect(()=>{o&&u({currentTarget:a.target},a.pointerType)},[o]),{hoverProps:l,isHovered:i}}function ZN(e){let{ref:t,onInteractOutside:n,isDisabled:r,onInteractOutsideStart:o}=e,i=S.useRef({isPointerDown:!1,ignoreEmulatedMouseEvents:!1}),s=gm(l=>{n&&fu(l,t)&&(o&&o(l),i.current.isPointerDown=!0)}),a=gm(l=>{n&&n(l)});S.useEffect(()=>{let l=i.current;if(r)return;const u=t.current,c=xl(u);if(typeof PointerEvent<"u"){let d=f=>{l.isPointerDown&&fu(f,t)&&a(f),l.isPointerDown=!1};return c.addEventListener("pointerdown",s,!0),c.addEventListener("pointerup",d,!0),()=>{c.removeEventListener("pointerdown",s,!0),c.removeEventListener("pointerup",d,!0)}}else{let d=p=>{l.ignoreEmulatedMouseEvents?l.ignoreEmulatedMouseEvents=!1:l.isPointerDown&&fu(p,t)&&a(p),l.isPointerDown=!1},f=p=>{l.ignoreEmulatedMouseEvents=!0,l.isPointerDown&&fu(p,t)&&a(p),l.isPointerDown=!1};return c.addEventListener("mousedown",s,!0),c.addEventListener("mouseup",d,!0),c.addEventListener("touchstart",s,!0),c.addEventListener("touchend",f,!0),()=>{c.removeEventListener("mousedown",s,!0),c.removeEventListener("mouseup",d,!0),c.removeEventListener("touchstart",s,!0),c.removeEventListener("touchend",f,!0)}}},[t,r,s,a])}function fu(e,t){if(e.button>0)return!1;if(e.target){const n=e.target.ownerDocument;if(!n||!n.documentElement.contains(e.target)||e.target.closest("[data-react-aria-top-layer]"))return!1}return t.current&&!t.current.contains(e.target)}function JN(e,t){let n=jN(e,{labelable:!0}),{hoverProps:r}=U5({onHoverStart:()=>t==null?void 0:t.open(!0),onHoverEnd:()=>t==null?void 0:t.close()});return{tooltipProps:vo(n,r,{role:"tooltip"})}}const tv=typeof document<"u"?ze.useLayoutEffect:()=>{};function eD(e){const t=S.useRef(null);return tv(()=>{t.current=e},[e]),S.useCallback((...n)=>{const r=t.current;return r==null?void 0:r(...n)},[])}let fb=new Map;function tD(e,t){if(e===t)return e;let n=fb.get(e);if(n)return n(t),t;let r=fb.get(t);return r?(r(e),e):t}function nD(...e){return(...t)=>{for(let n of e)typeof n=="function"&&n(...t)}}const ls=e=>{var t;return(t=e==null?void 0:e.ownerDocument)!==null&&t!==void 0?t:document},bm=e=>e&&"window"in e&&e.window===e?e:ls(e).defaultView||window;function pb(...e){let t={...e[0]};for(let n=1;n=65&&o.charCodeAt(2)<=90?t[o]=nD(i,s):(o==="className"||o==="UNSAFE_className")&&typeof i=="string"&&typeof s=="string"?t[o]=Zt(i,s):o==="id"&&i&&s?t.id=tD(i,s):t[o]=s!==void 0?s:i}}return t}function hb(e){if(rD())e.focus({preventScroll:!0});else{let t=oD(e);e.focus(),iD(t)}}let pu=null;function rD(){if(pu==null){pu=!1;try{document.createElement("div").focus({get preventScroll(){return pu=!0,!0}})}catch{}}return pu}function oD(e){let t=e.parentNode,n=[],r=document.scrollingElement||document.documentElement;for(;t instanceof HTMLElement&&t!==r;)(t.offsetHeight"u"||window.navigator==null?!1:((t=window.navigator.userAgentData)===null||t===void 0?void 0:t.brands.some(n=>e.test(n.brand)))||e.test(window.navigator.userAgent)}function aD(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 B5(e){let t=null;return()=>(t==null&&(t=e()),t)}const lD=B5(function(){return aD(/^Mac/i)}),uD=B5(function(){return sD(/Android/i)});let Jo=new Map,wm=new Set;function mb(){if(typeof window>"u")return;function e(r){return"propertyName"in r}let t=r=>{if(!e(r)||!r.target)return;let o=Jo.get(r.target);o||(o=new Set,Jo.set(r.target,o),r.target.addEventListener("transitioncancel",n,{once:!0})),o.add(r.propertyName)},n=r=>{if(!e(r)||!r.target)return;let o=Jo.get(r.target);if(o&&(o.delete(r.propertyName),o.size===0&&(r.target.removeEventListener("transitioncancel",n),Jo.delete(r.target)),Jo.size===0)){for(let i of wm)i();wm.clear()}};document.body.addEventListener("transitionrun",t),document.body.addEventListener("transitionend",n)}typeof document<"u"&&(document.readyState!=="loading"?mb():document.addEventListener("DOMContentLoaded",mb));function cD(e){requestAnimationFrame(()=>{Jo.size===0?e():wm.add(e)})}function dD(e,t){tv(()=>{if(e&&e.ref&&t)return e.ref.current=t.current,()=>{e.ref&&(e.ref.current=null)}})}function fD(e){return e.mozInputSource===0&&e.isTrusted?!0:uD()&&e.pointerType?e.type==="click"&&e.buttons===1:e.detail===0&&!e.pointerType}class pD{isDefaultPrevented(){return this.nativeEvent.defaultPrevented}preventDefault(){this.defaultPrevented=!0,this.nativeEvent.preventDefault()}stopPropagation(){this.nativeEvent.stopPropagation(),this.isPropagationStopped=()=>!0}isPropagationStopped(){return!1}persist(){}constructor(t,n){this.nativeEvent=n,this.target=n.target,this.currentTarget=n.currentTarget,this.relatedTarget=n.relatedTarget,this.bubbles=n.bubbles,this.cancelable=n.cancelable,this.defaultPrevented=n.defaultPrevented,this.eventPhase=n.eventPhase,this.isTrusted=n.isTrusted,this.timeStamp=n.timeStamp,this.type=t}}function hD(e){let t=S.useRef({isFocused:!1,observer:null});tv(()=>{const r=t.current;return()=>{r.observer&&(r.observer.disconnect(),r.observer=null)}},[]);let n=eD(r=>{e==null||e(r)});return S.useCallback(r=>{if(r.target instanceof HTMLButtonElement||r.target instanceof HTMLInputElement||r.target instanceof HTMLTextAreaElement||r.target instanceof HTMLSelectElement){t.current.isFocused=!0;let o=r.target,i=s=>{t.current.isFocused=!1,o.disabled&&n(new pD("blur",s)),t.current.observer&&(t.current.observer.disconnect(),t.current.observer=null)};o.addEventListener("focusout",i,{once:!0}),t.current.observer=new MutationObserver(()=>{if(t.current.isFocused&&o.disabled){var s;(s=t.current.observer)===null||s===void 0||s.disconnect();let a=o===document.activeElement?null:document.activeElement;o.dispatchEvent(new FocusEvent("blur",{relatedTarget:a})),o.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:a}))}}),t.current.observer.observe(o,{attributes:!0,attributeFilter:["disabled"]})}},[n])}function mD(e){let{isDisabled:t,onFocus:n,onBlur:r,onFocusChange:o}=e;const i=S.useCallback(l=>{if(l.target===l.currentTarget)return r&&r(l),o&&o(!1),!0},[r,o]),s=hD(i),a=S.useCallback(l=>{const u=ls(l.target);l.target===l.currentTarget&&u.activeElement===l.target&&(n&&n(l),o&&o(!0),s(l))},[o,n,s]);return{focusProps:{onFocus:!t&&(n||o||r)?a:void 0,onBlur:!t&&(r||o)?i:void 0}}}let bl=null,gD=new Set,ia=new Map,jo=!1,Sm=!1;function nv(e,t){for(let n of gD)n(e,t)}function vD(e){return!(e.metaKey||!lD()&&e.altKey||e.ctrlKey||e.key==="Control"||e.key==="Shift"||e.key==="Meta")}function Xc(e){jo=!0,vD(e)&&(bl="keyboard",nv("keyboard",e))}function Gt(e){bl="pointer",(e.type==="mousedown"||e.type==="pointerdown")&&(jo=!0,nv("pointer",e))}function G5(e){fD(e)&&(jo=!0,bl="virtual")}function K5(e){e.target===window||e.target===document||(!jo&&!Sm&&(bl="virtual",nv("virtual",e)),jo=!1,Sm=!1)}function Y5(){jo=!1,Sm=!0}function gb(e){if(typeof window>"u"||ia.get(bm(e)))return;const t=bm(e),n=ls(e);let r=t.HTMLElement.prototype.focus;t.HTMLElement.prototype.focus=function(){jo=!0,r.apply(this,arguments)},n.addEventListener("keydown",Xc,!0),n.addEventListener("keyup",Xc,!0),n.addEventListener("click",G5,!0),t.addEventListener("focus",K5,!0),t.addEventListener("blur",Y5,!1),typeof PointerEvent<"u"?(n.addEventListener("pointerdown",Gt,!0),n.addEventListener("pointermove",Gt,!0),n.addEventListener("pointerup",Gt,!0)):(n.addEventListener("mousedown",Gt,!0),n.addEventListener("mousemove",Gt,!0),n.addEventListener("mouseup",Gt,!0)),t.addEventListener("beforeunload",()=>{q5(e)},{once:!0}),ia.set(t,{focus:r})}const q5=(e,t)=>{const n=bm(e),r=ls(e);t&&r.removeEventListener("DOMContentLoaded",t),ia.has(n)&&(n.HTMLElement.prototype.focus=ia.get(n).focus,r.removeEventListener("keydown",Xc,!0),r.removeEventListener("keyup",Xc,!0),r.removeEventListener("click",G5,!0),n.removeEventListener("focus",K5,!0),n.removeEventListener("blur",Y5,!1),typeof PointerEvent<"u"?(r.removeEventListener("pointerdown",Gt,!0),r.removeEventListener("pointermove",Gt,!0),r.removeEventListener("pointerup",Gt,!0)):(r.removeEventListener("mousedown",Gt,!0),r.removeEventListener("mousemove",Gt,!0),r.removeEventListener("mouseup",Gt,!0)),ia.delete(n))};function yD(e){const t=ls(e);let n;return t.readyState!=="loading"?gb(e):(n=()=>{gb(e)},t.addEventListener("DOMContentLoaded",n)),()=>q5(e,n)}typeof document<"u"&&yD();function xD(){return bl}function vb(e){if(!e)return;let t=!0;return n=>{let r={...n,preventDefault(){n.preventDefault()},isDefaultPrevented(){return n.isDefaultPrevented()},stopPropagation(){console.error("stopPropagation is now the default behavior for events in React Spectrum. You can use continuePropagation() to revert this behavior.")},continuePropagation(){t=!1}};e(r),t&&n.stopPropagation()}}function bD(e){return{keyboardProps:e.isDisabled?{}:{onKeyDown:vb(e.onKeyDown),onKeyUp:vb(e.onKeyUp)}}}function wD(e){const t=ls(e);if(xD()==="virtual"){let n=t.activeElement;cD(()=>{t.activeElement===n&&e.isConnected&&hb(e)})}else hb(e)}let SD=null;function X5(e,t){return!e||!t?!1:t.some(n=>n.contains(e))}function kD(e,t=null){if(e instanceof Element&&e.closest("[data-react-aria-top-layer]"))return!0;for(let{scopeRef:n}of xb.traverse(xb.getTreeNode(t)))if(n&&X5(e,n.current))return!0;return!1}function CD(e){return kD(e,SD)}class rv{get size(){return this.fastMap.size}getTreeNode(t){return this.fastMap.get(t)}addTreeNode(t,n,r){let o=this.fastMap.get(n??null);if(!o)return;let i=new yb({scopeRef:t});o.addChild(i),i.parent=o,this.fastMap.set(t,i),r&&(i.nodeToRestore=r)}addNode(t){this.fastMap.set(t.scopeRef,t)}removeTreeNode(t){if(t===null)return;let n=this.fastMap.get(t);if(!n)return;let r=n.parent;for(let i of this.traverse())i!==n&&n.nodeToRestore&&i.nodeToRestore&&n.scopeRef&&n.scopeRef.current&&X5(i.nodeToRestore,n.scopeRef.current)&&(i.nodeToRestore=n.nodeToRestore);let o=n.children;r&&(r.removeChild(n),o.size>0&&o.forEach(i=>r&&r.addChild(i))),this.fastMap.delete(n.scopeRef)}*traverse(t=this.root){if(t.scopeRef!=null&&(yield t),t.children.size>0)for(let n of t.children)yield*this.traverse(n)}clone(){var t;let n=new rv;var r;for(let o of this.traverse())n.addTreeNode(o.scopeRef,(r=(t=o.parent)===null||t===void 0?void 0:t.scopeRef)!==null&&r!==void 0?r:null,o.nodeToRestore);return n}constructor(){this.fastMap=new Map,this.root=new yb({scopeRef:null}),this.fastMap.set(null,this.root)}}class yb{addChild(t){this.children.add(t),t.parent=this}removeChild(t){this.children.delete(t),t.parent=void 0}constructor(t){this.children=new Set,this.contain=!1,this.scopeRef=t.scopeRef}}let xb=new rv,$D=ze.createContext(null);function PD(e){let t=S.useContext($D)||{};dD(t,e);let{ref:n,...r}=t;return r}function TD(e,t){let{focusProps:n}=mD(e),{keyboardProps:r}=bD(e),o=pb(n,r),i=PD(t),s=e.isDisabled?{}:i,a=S.useRef(e.autoFocus);return S.useEffect(()=>{a.current&&t.current&&wD(t.current),a.current=!1},[t]),{focusableProps:pb({...o,tabIndex:e.excludeFromTabOrder&&!e.isDisabled?-1:void 0},s)}}function ED(e,t,n){let{isDisabled:r,trigger:o}=e,i=TN(),s=S.useRef(!1),a=S.useRef(!1),l=()=>{(s.current||a.current)&&t.open(a.current)},u=m=>{!s.current&&!a.current&&t.close(m)};S.useEffect(()=>{let m=y=>{n&&n.current&&y.key==="Escape"&&(y.stopPropagation(),t.close(!0))};if(t.isOpen)return document.addEventListener("keydown",m,!0),()=>{document.removeEventListener("keydown",m,!0)}},[n,t]);let c=()=>{o!=="focus"&&(qN()==="pointer"?s.current=!0:s.current=!1,l())},d=()=>{o!=="focus"&&(a.current=!1,s.current=!1,u())},f=()=>{a.current=!1,s.current=!1,u(!0)},p=()=>{YN()&&(a.current=!0,l())},h=()=>{a.current=!1,s.current=!1,u(!0)},{hoverProps:g}=U5({isDisabled:r,onHoverStart:c,onHoverEnd:d}),{focusableProps:b}=TD({isDisabled:r,onFocus:p,onBlur:h},n);return{triggerProps:{"aria-describedby":t.isOpen?i:void 0,...vo(b,g,{onPointerDown:f,onKeyDown:f})},tooltipProps:{id:i}}}const pi={top:"top",bottom:"top",left:"left",right:"left"},Qc={top:"bottom",bottom:"top",left:"right",right:"left"},MD={top:"left",left:"top"},km={top:"height",left:"width"},Q5={width:"totalWidth",height:"totalHeight"},hu={};let mt=typeof document<"u"&&window.visualViewport;function bb(e){let t=0,n=0,r=0,o=0,i=0,s=0,a={},l=(mt==null?void 0:mt.scale)>1;if(e.tagName==="BODY"){let d=document.documentElement;r=d.clientWidth,o=d.clientHeight;var u;t=(u=mt==null?void 0:mt.width)!==null&&u!==void 0?u:r;var c;n=(c=mt==null?void 0:mt.height)!==null&&c!==void 0?c:o,a.top=d.scrollTop||e.scrollTop,a.left=d.scrollLeft||e.scrollLeft,mt&&(i=mt.offsetTop,s=mt.offsetLeft)}else({width:t,height:n,top:i,left:s}=Pi(e)),a.top=e.scrollTop,a.left=e.scrollLeft,r=t,o=n;return NN()&&(e.tagName==="BODY"||e.tagName==="HTML")&&l&&(a.top=0,a.left=0,i=mt.pageTop,s=mt.pageLeft),{width:t,height:n,totalWidth:r,totalHeight:o,scroll:a,top:i,left:s}}function _D(e){return{top:e.scrollTop,left:e.scrollLeft,width:e.scrollWidth,height:e.scrollHeight}}function wb(e,t,n,r,o,i,s){let a=o.scroll[e],l=r[km[e]],u=r.scroll[pi[e]]+i,c=l+r.scroll[pi[e]]-i,d=t-a+s[e]-r[pi[e]],f=t-a+n+s[e]-r[pi[e]];return dc?Math.max(c-f,u-d):0}function AD(e){let t=window.getComputedStyle(e);return{top:parseInt(t.marginTop,10)||0,bottom:parseInt(t.marginBottom,10)||0,left:parseInt(t.marginLeft,10)||0,right:parseInt(t.marginRight,10)||0}}function Sb(e){if(hu[e])return hu[e];let[t,n]=e.split(" "),r=pi[t]||"right",o=MD[r];pi[n]||(n="center");let i=km[r],s=km[o];return hu[e]={placement:t,crossPlacement:n,axis:r,crossAxis:o,size:i,crossSize:s},hu[e]}function Rp(e,t,n,r,o,i,s,a,l,u){let{placement:c,crossPlacement:d,axis:f,crossAxis:p,size:h,crossSize:g}=r,b={};b[p]=e[p],d==="center"?b[p]+=(e[g]-n[g])/2:d!==p&&(b[p]+=e[g]-n[g]),b[p]+=i;const m=e[p]-n[g]+l+u,y=e[p]+e[g]-l-u;if(b[p]=mm(b[p],m,y),c===f){const x=a?s[h]:t[Q5[h]];b[Qc[f]]=Math.floor(x-e[f]+o)}else b[f]=Math.floor(e[f]+e[h]+o);return b}function OD(e,t,n,r,o,i,s,a){const l=r?n.height:t[Q5.height];let u=e.top!=null?n.top+e.top:n.top+(l-e.bottom-s),c=a!=="top"?Math.max(0,t.height+t.top+t.scroll.top-u-(o.top+o.bottom+i)):Math.max(0,u+s-(t.top+t.scroll.top)-(o.top+o.bottom+i));return Math.min(t.height-i*2,c)}function kb(e,t,n,r,o,i){let{placement:s,axis:a,size:l}=i;return s===a?Math.max(0,n[a]-e[a]-e.scroll[a]+t[a]-r[a]-r[Qc[a]]-o):Math.max(0,e[l]+e[a]+e.scroll[a]-t[a]-n[a]-n[l]-r[a]-r[Qc[a]]-o)}function RD(e,t,n,r,o,i,s,a,l,u,c,d,f,p,h,g){let b=Sb(e),{size:m,crossAxis:y,crossSize:x,placement:w,crossPlacement:C}=b,k=Rp(t,a,n,b,c,d,u,f,h,g),$=c,P=kb(a,u,t,o,i+c,b);if(s&&r[m]>P){let N=Sb(`${Qc[w]} ${C}`),V=Rp(t,a,n,N,c,d,u,f,h,g);kb(a,u,t,o,i+c,N)>P&&(b=N,k=V,$=c)}let R="bottom";b.axis==="top"?b.placement==="top"?R="top":b.placement==="bottom"&&(R="bottom"):b.crossAxis==="top"&&(b.crossPlacement==="top"?R="bottom":b.crossPlacement==="bottom"&&(R="top"));let M=wb(y,k[y],n[x],a,l,i,u);k[y]+=M;let O=OD(k,a,u,f,o,i,n.height,R);p&&p{if(!n||r===null)return;let o=i=>{let s=i.target;if(!t.current||s instanceof Node&&!s.contains(t.current))return;let a=r||LD.get(t.current);a&&a()};return window.addEventListener("scroll",o,!0),()=>{window.removeEventListener("scroll",o,!0)}},[n,r,t])}const DD=new Set(["Arab","Syrc","Samr","Mand","Thaa","Mend","Nkoo","Adlm","Rohg","Hebr"]),FD=new Set(["ae","ar","arc","bcc","bqi","ckb","dv","fa","glk","he","ku","mzn","nqo","pnb","ps","sd","ug","ur","yi"]);function zD(e){if(Intl.Locale){let n=new Intl.Locale(e).maximize(),r=typeof n.getTextInfo=="function"?n.getTextInfo():n.textInfo;if(r)return r.direction==="rtl";if(n.script)return DD.has(n.script)}let t=e.split("-")[0];return FD.has(t)}const VD=Symbol.for("react-aria.i18n.locale");function Z5(){let e=typeof window<"u"&&window[VD]||typeof navigator<"u"&&(navigator.language||navigator.userLanguage)||"en-US";try{Intl.DateTimeFormat.supportedLocalesOf([e])}catch{e="en-US"}return{locale:e,direction:zD(e)?"rtl":"ltr"}}let Cm=Z5(),Fs=new Set;function Pb(){Cm=Z5();for(let e of Fs)e(Cm)}function HD(){let e=Z0(),[t,n]=S.useState(Cm);return S.useEffect(()=>(Fs.size===0&&window.addEventListener("languagechange",Pb),Fs.add(n),()=>{Fs.delete(n),Fs.size===0&&window.removeEventListener("languagechange",Pb)}),[]),e?{locale:"en-US",direction:"ltr"}:t}const WD=ze.createContext(null);function UD(){let e=HD();return S.useContext(WD)||e}let je=typeof document<"u"&&window.visualViewport;function BD(e){let{direction:t}=UD(),{arrowSize:n=0,targetRef:r,overlayRef:o,scrollRef:i=o,placement:s="bottom",containerPadding:a=12,shouldFlip:l=!0,boundaryElement:u=typeof document<"u"?document.body:null,offset:c=0,crossOffset:d=0,shouldUpdatePosition:f=!0,isOpen:p=!0,onClose:h,maxHeight:g,arrowBoundaryOffset:b=0}=e,[m,y]=S.useState({position:{},arrowOffsetLeft:void 0,arrowOffsetTop:void 0,maxHeight:void 0,placement:void 0}),x=[f,s,o.current,r.current,i.current,a,l,u,c,d,p,t,g,b,n],w=S.useRef(je==null?void 0:je.scale);S.useEffect(()=>{p&&(w.current=je==null?void 0:je.scale)},[p]);let C=S.useCallback(()=>{if(f===!1||!p||!o.current||!r.current||!i.current||!u||(je==null?void 0:je.scale)!==w.current)return;let P=o.current;if(!g&&o.current){var R;P.style.top="0px",P.style.bottom="";var M;P.style.maxHeight=((M=(R=window.visualViewport)===null||R===void 0?void 0:R.height)!==null&&M!==void 0?M:window.innerHeight)+"px"}let O=jD({placement:KD(s,t),overlayNode:o.current,targetNode:r.current,scrollNode:i.current,padding:a,shouldFlip:l,boundaryElement:u,offset:c,crossOffset:d,maxHeight:g,arrowSize:n,arrowBoundaryOffset:b});P.style.top="",P.style.bottom="",Object.keys(O.position).forEach(E=>P.style[E]=O.position[E]+"px"),P.style.maxHeight=O.maxHeight!=null?O.maxHeight+"px":void 0,y(O)},x);Yi(C,x),GD(C),VN({ref:o,onResize:C});let k=S.useRef(!1);Yi(()=>{let P,R=()=>{k.current=!0,clearTimeout(P),P=setTimeout(()=>{k.current=!1},500),C()},M=()=>{k.current&&R()};return je==null||je.addEventListener("resize",R),je==null||je.addEventListener("scroll",M),()=>{je==null||je.removeEventListener("resize",R),je==null||je.removeEventListener("scroll",M)}},[C]);let $=S.useCallback(()=>{k.current||h()},[h,k]);return ND({triggerRef:r,isOpen:p,onClose:h&&$}),{overlayProps:{style:{position:"absolute",zIndex:1e5,...m.position,maxHeight:m.maxHeight}},placement:m.placement,arrowProps:{"aria-hidden":"true",role:"presentation",style:{left:m.arrowOffsetLeft,top:m.arrowOffsetTop}},updatePosition:C}}function GD(e){Yi(()=>(window.addEventListener("resize",e,!1),()=>{window.removeEventListener("resize",e,!1)}),[e])}function KD(e,t){return t==="rtl"?e.replace("start","right").replace("end","left"):e.replace("start","left").replace("end","right")}const Bn=[];function YD(e,t){let{onClose:n,shouldCloseOnBlur:r,isOpen:o,isDismissable:i=!1,isKeyboardDismissDisabled:s=!1,shouldCloseOnInteractOutside:a}=e;S.useEffect(()=>(o&&Bn.push(t),()=>{let h=Bn.indexOf(t);h>=0&&Bn.splice(h,1)}),[o,t]);let l=()=>{Bn[Bn.length-1]===t&&n&&n()},u=h=>{(!a||a(h.target))&&Bn[Bn.length-1]===t&&(h.stopPropagation(),h.preventDefault())},c=h=>{(!a||a(h.target))&&(Bn[Bn.length-1]===t&&(h.stopPropagation(),h.preventDefault()),l())},d=h=>{h.key==="Escape"&&!s&&!h.nativeEvent.isComposing&&(h.stopPropagation(),h.preventDefault(),l())};ZN({ref:t,onInteractOutside:i&&o?c:null,onInteractOutsideStart:u});let{focusWithinProps:f}=XN({isDisabled:!r,onBlurWithin:h=>{!h.relatedTarget||CD(h.relatedTarget)||(!a||a(h.relatedTarget))&&n()}}),p=h=>{h.target===h.currentTarget&&h.preventDefault()};return{overlayProps:{onKeyDown:d,...f},underlayProps:{onPointerDown:p}}}const $m=ze.createContext(null);function qD(e){let{children:t}=e,n=S.useContext($m),[r,o]=S.useState(0),i=S.useMemo(()=>({parent:n,modalCount:r,addModal(){o(s=>s+1),n&&n.addModal()},removeModal(){o(s=>s-1),n&&n.removeModal()}}),[n,r]);return ze.createElement($m.Provider,{value:i},t)}function XD(){let e=S.useContext($m);return{modalProviderProps:{"aria-hidden":e&&e.modalCount>0?!0:null}}}function QD(e){let{modalProviderProps:t}=XD();return ze.createElement("div",{"data-overlay-container":!0,...e,...t})}function ZD(e){return ze.createElement(qD,null,ze.createElement(QD,e))}function Tb(e){let t=Z0(),{portalContainer:n=t?null:document.body,...r}=e;if(ze.useEffect(()=>{if(n!=null&&n.closest("[data-overlay-container]"))throw new Error("An OverlayContainer must not be inside another container. Please change the portalContainer prop.")},[n]),!n)return null;let o=ze.createElement(ZD,r);return SE.createPortal(o,n)}function JD(e={}){const{strict:t=!0,errorMessage:n="useContext: `context` is undefined. Seems you forgot to wrap component within the Provider",name:r}=e,o=S.createContext(void 0);o.displayName=r;function i(){var s;const a=S.useContext(o);if(!a&&t){const l=new Error(n);throw l.name="ContextError",(s=Error.captureStackTrace)==null||s.call(Error,l,i),l}return a}return[o.Provider,i,o]}function eF(e){return{UNSAFE_getDOMNode(){return e.current}}}function tF(e){return typeof e=="function"}var Xo=e=>e?"true":void 0;function J5(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e))for(t=0;t"u")&&!Eb[i]&&(Eb[i]=!0,((r=process==null?void 0:rF)==null?void 0:r.NODE_ENV)!=="production"))return console.warn(i,n)}function iF(e){if(!e||typeof e!="object")return"";try{return JSON.stringify(e)}catch{return""}}function sF(e,t){if(e!=null){if(tF(e)){e(t);return}try{e.current=t}catch{throw new Error(`Cannot assign value '${t}' to ref '${e}'`)}}}function aF(...e){return t=>{e.forEach(n=>sF(n,t))}}var[yG,lF]=JD({name:"ProviderContext",strict:!1});const ov=S.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"}),bf=S.createContext({}),iv=S.createContext(null),sv=typeof window<"u",e$=sv?S.useLayoutEffect:S.useEffect,av=S.createContext({strict:!1}),wf=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),uF="framerAppearId",t$="data-"+wf(uF),cF={skipAnimations:!1,useManualTiming:!1};function dF(e){let t=new Set,n=new Set,r=!1,o=!1;const i=new WeakSet;let s={delta:0,timestamp:0,isProcessing:!1};function a(u){i.has(u)&&(l.schedule(u),e()),u(s)}const l={schedule:(u,c=!1,d=!1)=>{const p=d&&r?t:n;return c&&i.add(u),p.has(u)||p.add(u),u},cancel:u=>{n.delete(u),i.delete(u)},process:u=>{if(s=u,r){o=!0;return}r=!0,[t,n]=[n,t],n.clear(),t.forEach(a),r=!1,o&&(o=!1,l.process(u))}};return l}const mu=["read","resolveKeyframes","update","preRender","render","postRender"],fF=40;function n$(e,t){let n=!1,r=!0;const o={delta:0,timestamp:0,isProcessing:!1},i=()=>n=!0,s=mu.reduce((m,y)=>(m[y]=dF(i),m),{}),{read:a,resolveKeyframes:l,update:u,preRender:c,render:d,postRender:f}=s,p=()=>{const m=performance.now();n=!1,o.delta=r?1e3/60:Math.max(Math.min(m-o.timestamp,fF),1),o.timestamp=m,o.isProcessing=!0,a.process(o),l.process(o),u.process(o),c.process(o),d.process(o),f.process(o),o.isProcessing=!1,n&&t&&(r=!1,e(p))},h=()=>{n=!0,r=!0,o.isProcessing||e(p)};return{schedule:mu.reduce((m,y)=>{const x=s[y];return m[y]=(w,C=!1,k=!1)=>(n||h(),x.schedule(w,C,k)),m},{}),cancel:m=>{for(let y=0;y{d&&d.update(n,l)});const p=n[t$],h=S.useRef(!!p&&!window.MotionHandoffIsComplete&&((i=window.MotionHasOptimisedAnimation)===null||i===void 0?void 0:i.call(window,p)));return e$(()=>{d&&(d.updateFeatures(),pF.render(d.render),h.current&&d.animationState&&d.animationState.animateChanges())}),S.useEffect(()=>{d&&(!h.current&&d.animationState&&d.animationState.animateChanges(),h.current=!1,Mb||(Mb=!0,queueMicrotask(gF)))}),d}function gF(){window.MotionHandoffIsComplete=!0}function vF(e,t,n,r){const{layoutId:o,layout:i,drag:s,dragConstraints:a,layoutScroll:l,layoutRoot:u}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:o$(e.parent)),e.projection.setOptions({layoutId:o,layout:i,alwaysMeasureLayout:!!s||a&&r$(a),visualElement:e,animationType:typeof i=="string"?i:"both",initialPromotionConfig:r,layoutScroll:l,layoutRoot:u})}function o$(e){if(e)return e.options.allowProjection!==!1?e.projection:o$(e.parent)}function yF(e,t,n){return S.useCallback(r=>{r&&e.mount&&e.mount(r),t&&(r?t.mount(r):t.unmount()),n&&(typeof n=="function"?n(r):r$(n)&&(n.current=r))},[t])}function Ya(e){return typeof e=="string"||Array.isArray(e)}function qa(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}const lv=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],uv=["initial",...lv];function Sf(e){return qa(e.animate)||uv.some(t=>Ya(e[t]))}function i$(e){return!!(Sf(e)||e.variants)}function xF(e,t){if(Sf(e)){const{initial:n,animate:r}=e;return{initial:n===!1||Ya(n)?n:void 0,animate:Ya(r)?r:void 0}}return e.inherit!==!1?t:{}}function bF(e){const{initial:t,animate:n}=xF(e,S.useContext(bf));return S.useMemo(()=>({initial:t,animate:n}),[_b(t),_b(n)])}function _b(e){return Array.isArray(e)?e.join(" "):e}const Ab={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"]},qi={};for(const e in Ab)qi[e]={isEnabled:t=>Ab[e].some(n=>!!t[n])};function Pm(e){for(const t in e)qi[t]={...qi[t],...e[t]}}const s$=S.createContext({}),wF=Symbol.for("motionComponentSymbol"),Ln=e=>e;let Tm=Ln;function SF({preloadedFeatures:e,createVisualElement:t,useRender:n,useVisualState:r,Component:o}){e&&Pm(e);function i(a,l){let u;const c={...S.useContext(ov),...a,layoutId:kF(a)},{isStatic:d}=c,f=bF(a),p=r(a,d);if(!d&&sv){CF();const h=$F(c);u=h.MeasureLayout,f.visualElement=mF(o,p,c,t,h.ProjectionNode)}return v.jsxs(bf.Provider,{value:f,children:[u&&f.visualElement?v.jsx(u,{visualElement:f.visualElement,...c}):null,n(o,a,yF(p,f.visualElement,l),p,d,f.visualElement)]})}const s=S.forwardRef(i);return s[wF]=o,s}function kF({layoutId:e}){const t=S.useContext(s$).id;return t&&e!==void 0?t+"-"+e:e}function CF(e,t){S.useContext(av).strict}function $F(e){const{drag:t,layout:n}=qi;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 PF(e){function t(r,o={}){return SF(e(r,o))}if(typeof Proxy>"u")return t;const n=new Map;return new Proxy(t,{get:(r,o)=>(n.has(o)||n.set(o,t(o)),n.get(o))})}const TF=["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 cv(e){return typeof e!="string"||e.includes("-")?!1:!!(TF.indexOf(e)>-1||/[A-Z]/u.test(e))}const EF={},wl=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Xr=new Set(wl);function a$(e,{layout:t,layoutId:n}){return Xr.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!EF[e]||e==="opacity")}const dt=e=>!!(e&&e.getVelocity),l$=(e,t)=>t&&typeof e=="number"?t.transform(e):e,Xi=(e,t,n)=>n>t?t:ntypeof e=="number",parse:parseFloat,transform:e=>e},sa={...us,transform:e=>Xi(0,1,e)},gu={...us,default:1},aa=e=>Math.round(e*1e5)/1e5,dv=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu,MF=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu,_F=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu;function Sl(e){return typeof e=="string"}function AF(e){return e==null}const kl=e=>({test:t=>Sl(t)&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),xr=kl("deg"),Ti=kl("%"),Y=kl("px"),OF=kl("vh"),RF=kl("vw"),Ob={...Ti,parse:e=>Ti.parse(e)/100,transform:e=>Ti.transform(e*100)},Rb={...us,transform:Math.round},fv={borderWidth:Y,borderTopWidth:Y,borderRightWidth:Y,borderBottomWidth:Y,borderLeftWidth:Y,borderRadius:Y,radius:Y,borderTopLeftRadius:Y,borderTopRightRadius:Y,borderBottomRightRadius:Y,borderBottomLeftRadius:Y,width:Y,maxWidth:Y,height:Y,maxHeight:Y,size:Y,top:Y,right:Y,bottom:Y,left:Y,padding:Y,paddingTop:Y,paddingRight:Y,paddingBottom:Y,paddingLeft:Y,margin:Y,marginTop:Y,marginRight:Y,marginBottom:Y,marginLeft:Y,rotate:xr,rotateX:xr,rotateY:xr,rotateZ:xr,scale:gu,scaleX:gu,scaleY:gu,scaleZ:gu,skew:xr,skewX:xr,skewY:xr,distance:Y,translateX:Y,translateY:Y,translateZ:Y,x:Y,y:Y,z:Y,perspective:Y,transformPerspective:Y,opacity:sa,originX:Ob,originY:Ob,originZ:Y,zIndex:Rb,backgroundPositionX:Y,backgroundPositionY:Y,fillOpacity:sa,strokeOpacity:sa,numOctaves:Rb},jF={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},IF=wl.length;function LF(e,t,n){let r="",o=!0;for(let i=0;it=>typeof t=="string"&&t.startsWith(e),c$=u$("--"),NF=u$("var(--"),pv=e=>NF(e)?DF.test(e.split("/*")[0].trim()):!1,DF=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function hv(e,t,n){const{style:r,vars:o,transformOrigin:i}=e;let s=!1,a=!1;for(const l in t){const u=t[l];if(Xr.has(l)){s=!0;continue}else if(c$(l)){o[l]=u;continue}else{const c=l$(u,fv[l]);l.startsWith("origin")?(a=!0,i[l]=c):r[l]=c}}if(t.transform||(s||n?r.transform=LF(t,e.transform,n):r.transform&&(r.transform="none")),a){const{originX:l="50%",originY:u="50%",originZ:c=0}=i;r.transformOrigin=`${l} ${u} ${c}`}}const mv=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function d$(e,t,n){for(const r in t)!dt(t[r])&&!a$(r,n)&&(e[r]=t[r])}function FF({transformTemplate:e},t){return S.useMemo(()=>{const n=mv();return hv(n,t,e),Object.assign({},n.vars,n.style)},[t])}function zF(e,t){const n=e.style||{},r={};return d$(r,n,e),Object.assign(r,FF(e,t)),r}function VF(e,t){const n={},r=zF(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 HF=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 Zc(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||HF.has(e)}let f$=e=>!Zc(e);function WF(e){e&&(f$=t=>t.startsWith("on")?!Zc(t):e(t))}try{WF(require("@emotion/is-prop-valid").default)}catch{}function UF(e,t,n){const r={};for(const o in e)o==="values"&&typeof e.values=="object"||(f$(o)||n===!0&&Zc(o)||!t&&!Zc(o)||e.draggable&&o.startsWith("onDrag"))&&(r[o]=e[o]);return r}function jb(e,t,n){return typeof e=="string"?e:Y.transform(t+n*e)}function BF(e,t,n){const r=jb(t,e.x,e.width),o=jb(n,e.y,e.height);return`${r} ${o}`}const GF={offset:"stroke-dashoffset",array:"stroke-dasharray"},KF={offset:"strokeDashoffset",array:"strokeDasharray"};function YF(e,t,n=1,r=0,o=!0){e.pathLength=1;const i=o?GF:KF;e[i.offset]=Y.transform(-r);const s=Y.transform(t),a=Y.transform(n);e[i.array]=`${s} ${a}`}function gv(e,{attrX:t,attrY:n,attrScale:r,originX:o,originY:i,pathLength:s,pathSpacing:a=1,pathOffset:l=0,...u},c,d){if(hv(e,u,d),c){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:f,style:p,dimensions:h}=e;f.transform&&(h&&(p.transform=f.transform),delete f.transform),h&&(o!==void 0||i!==void 0||p.transform)&&(p.transformOrigin=BF(h,o!==void 0?o:.5,i!==void 0?i:.5)),t!==void 0&&(f.x=t),n!==void 0&&(f.y=n),r!==void 0&&(f.scale=r),s!==void 0&&YF(f,s,a,l,!1)}const p$=()=>({...mv(),attrs:{}}),vv=e=>typeof e=="string"&&e.toLowerCase()==="svg";function qF(e,t,n,r){const o=S.useMemo(()=>{const i=p$();return gv(i,t,vv(r),e.transformTemplate),{...i.attrs,style:{...i.style}}},[t]);if(e.style){const i={};d$(i,e.style,e),o.style={...i,...o.style}}return o}function XF(e=!1){return(n,r,o,{latestValues:i},s)=>{const l=(cv(n)?qF:VF)(r,i,s,n),u=UF(r,typeof n=="string",e),c=n!==S.Fragment?{...u,...l,ref:o}:{},{children:d}=r,f=S.useMemo(()=>dt(d)?d.get():d,[d]);return S.createElement(n,{...c,children:f})}}function h$(e,{style:t,vars:n},r,o){Object.assign(e.style,t,o&&o.getProjectionStyles(r));for(const i in n)e.style.setProperty(i,n[i])}const m$=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 g$(e,t,n,r){h$(e,t,void 0,r);for(const o in t.attrs)e.setAttribute(m$.has(o)?o:wf(o),t.attrs[o])}function yv(e,t,n){var r;const{style:o}=e,i={};for(const s in o)(dt(o[s])||t.style&&dt(t.style[s])||a$(s,e)||((r=n==null?void 0:n.getValue(s))===null||r===void 0?void 0:r.liveStyle)!==void 0)&&(i[s]=o[s]);return n&&o&&typeof o.willChange=="string"&&(n.applyWillChange=!1),i}function v$(e,t,n){const r=yv(e,t,n);for(const o in e)if(dt(e[o])||dt(t[o])){const i=wl.indexOf(o)!==-1?"attr"+o.charAt(0).toUpperCase()+o.substring(1):o;r[i]=e[o]}return r}function Ib(e){const t=[{},{}];return e==null||e.values.forEach((n,r)=>{t[0][r]=n.get(),t[1][r]=n.getVelocity()}),t}function xv(e,t,n,r){if(typeof t=="function"){const[o,i]=Ib(r);t=t(n!==void 0?n:e.custom,o,i)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){const[o,i]=Ib(r);t=t(n!==void 0?n:e.custom,o,i)}return t}function bv(e){const t=S.useRef(null);return t.current===null&&(t.current=e()),t.current}const Em=e=>Array.isArray(e),QF=e=>!!(e&&typeof e=="object"&&e.mix&&e.toValue),ZF=e=>Em(e)?e[e.length-1]||0:e;function JF(e){const t=dt(e)?e.get():e;return QF(t)?t.toValue():t}const y$=new Set(["opacity","clipPath","filter","transform"]);function x$(e){if(Xr.has(e))return"transform";if(y$.has(e))return wf(e)}function b$(e,t){e.indexOf(t)===-1&&e.push(t)}function w$(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}function ez({applyWillChange:e=!1,scrapeMotionValuesFromProps:t,createRenderState:n,onMount:r},o,i,s,a){const l={latestValues:nz(o,i,s,a?!1:e,t),renderState:n()};return r&&(l.mount=u=>r(o,u,l)),l}const S$=e=>(t,n)=>{const r=S.useContext(bf),o=S.useContext(iv),i=()=>ez(e,t,r,o,n);return n?i():bv(i)};function tz(e,t){const n=x$(t);n&&b$(e,n)}function Lb(e,t,n){const r=Array.isArray(t)?t:[t];for(let o=0;o{for(const y in b){let x=b[y];if(Array.isArray(x)){const w=h?x.length-1:0;x=x[w]}x!==null&&(s[y]=x)}for(const y in m)s[y]=m[y]}),l&&(d&&c!==!1&&!qa(d)&&Lb(e,d,b=>{for(const m in b)tz(a,m)}),a.length&&(s.willChange=a.join(","))),s}const{schedule:Je,cancel:Jc,state:ed,steps:bG}=n$(typeof requestAnimationFrame<"u"?requestAnimationFrame:Ln,!0),rz={useVisualState:S$({scrapeMotionValuesFromProps:v$,createRenderState:p$,onMount:(e,t,{renderState:n,latestValues:r})=>{Je.read(()=>{try{n.dimensions=typeof t.getBBox=="function"?t.getBBox():t.getBoundingClientRect()}catch{n.dimensions={x:0,y:0,width:0,height:0}}}),Je.render(()=>{gv(n,r,vv(t.tagName),e.transformTemplate),g$(t,n)})}})},oz={useVisualState:S$({applyWillChange:!0,scrapeMotionValuesFromProps:yv,createRenderState:mv})};function iz(e,{forwardMotionProps:t=!1},n,r){return{...cv(e)?rz:oz,preloadedFeatures:n,useRender:XF(t),createVisualElement:r,Component:e}}function yo(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}const sz=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1;function k$(e,t="page"){return{point:{x:e[`${t}X`],y:e[`${t}Y`]}}}const az=e=>t=>sz(t)&&e(t,k$(t));function Yu(e,t,n,r){return yo(e,t,az(n),r)}const lz=(e,t)=>n=>t(e(n)),Dr=(...e)=>e.reduce(lz);function C$(e){let t=null;return()=>{const n=()=>{t=null};return t===null?(t=e,n):!1}}const uz=C$("dragHorizontal"),cz=C$("dragVertical");function dz(e){let t=!1;{const n=uz(),r=cz();n&&r?t=()=>{n(),r()}:(n&&n(),r&&r())}return t}function $$(){const e=dz();return e?(e(),!1):!0}class cs{constructor(t){this.isMounted=!1,this.node=t}update(){}}function Nb(e,t){const n=t?"pointerenter":"pointerleave",r=t?"onHoverStart":"onHoverEnd",o=(i,s)=>{if(i.pointerType==="touch"||$$())return;const a=e.getProps();e.animationState&&a.whileHover&&e.animationState.setActive("whileHover",t);const l=a[r];l&&Je.postRender(()=>l(i,s))};return Yu(e.current,n,o,{passive:!e.getProps()[r]})}class fz extends cs{mount(){this.unmount=Dr(Nb(this.node,!0),Nb(this.node,!1))}unmount(){}}class pz extends cs{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=Dr(yo(this.node.current,"focus",()=>this.onFocus()),yo(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}const P$=(e,t)=>t?e===t?!0:P$(e,t.parentElement):!1;function jp(e,t){if(!t)return;const n=new PointerEvent("pointer"+e);t(n,k$(n))}class hz extends cs{constructor(){super(...arguments),this.removeStartListeners=Ln,this.removeEndListeners=Ln,this.removeAccessibleListeners=Ln,this.startPointerPress=(t,n)=>{if(this.isPressing)return;this.removeEndListeners();const r=this.node.getProps(),i=Yu(window,"pointerup",(a,l)=>{if(!this.checkPressEnd())return;const{onTap:u,onTapCancel:c,globalTapTarget:d}=this.node.getProps(),f=!d&&!P$(this.node.current,a.target)?c:u;f&&Je.update(()=>f(a,l))},{passive:!(r.onTap||r.onPointerUp)}),s=Yu(window,"pointercancel",(a,l)=>this.cancelPress(a,l),{passive:!(r.onTapCancel||r.onPointerCancel)});this.removeEndListeners=Dr(i,s),this.startPress(t,n)},this.startAccessiblePress=()=>{const t=i=>{if(i.key!=="Enter"||this.isPressing)return;const s=a=>{a.key!=="Enter"||!this.checkPressEnd()||jp("up",(l,u)=>{const{onTap:c}=this.node.getProps();c&&Je.postRender(()=>c(l,u))})};this.removeEndListeners(),this.removeEndListeners=yo(this.node.current,"keyup",s),jp("down",(a,l)=>{this.startPress(a,l)})},n=yo(this.node.current,"keydown",t),r=()=>{this.isPressing&&jp("cancel",(i,s)=>this.cancelPress(i,s))},o=yo(this.node.current,"blur",r);this.removeAccessibleListeners=Dr(n,o)}}startPress(t,n){this.isPressing=!0;const{onTapStart:r,whileTap:o}=this.node.getProps();o&&this.node.animationState&&this.node.animationState.setActive("whileTap",!0),r&&Je.postRender(()=>r(t,n))}checkPressEnd(){return this.removeEndListeners(),this.isPressing=!1,this.node.getProps().whileTap&&this.node.animationState&&this.node.animationState.setActive("whileTap",!1),!$$()}cancelPress(t,n){if(!this.checkPressEnd())return;const{onTapCancel:r}=this.node.getProps();r&&Je.postRender(()=>r(t,n))}mount(){const t=this.node.getProps(),n=Yu(t.globalTapTarget?window:this.node.current,"pointerdown",this.startPointerPress,{passive:!(t.onTapStart||t.onPointerStart)}),r=yo(this.node.current,"focus",this.startAccessiblePress);this.removeStartListeners=Dr(n,r)}unmount(){this.removeStartListeners(),this.removeEndListeners(),this.removeAccessibleListeners()}}const Mm=new WeakMap,Ip=new WeakMap,mz=e=>{const t=Mm.get(e.target);t&&t(e)},gz=e=>{e.forEach(mz)};function vz({root:e,...t}){const n=e||document;Ip.has(n)||Ip.set(n,{});const r=Ip.get(n),o=JSON.stringify(t);return r[o]||(r[o]=new IntersectionObserver(gz,{root:e,...t})),r[o]}function yz(e,t,n){const r=vz(t);return Mm.set(e,n),r.observe(e),()=>{Mm.delete(e),r.unobserve(e)}}const xz={some:0,all:1};class bz extends cs{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:n,margin:r,amount:o="some",once:i}=t,s={root:n?n.current:void 0,rootMargin:r,threshold:typeof o=="number"?o:xz[o]},a=l=>{const{isIntersecting:u}=l;if(this.isInView===u||(this.isInView=u,i&&!u&&this.hasEnteredView))return;u&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",u);const{onViewportEnter:c,onViewportLeave:d}=this.node.getProps(),f=u?c:d;f&&f(l)};return yz(this.node.current,s,a)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:n}=this.node;["amount","margin","root"].some(wz(t,n))&&this.startObserver()}unmount(){}}function wz({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const Sz={inView:{Feature:bz},tap:{Feature:hz},focus:{Feature:pz},hover:{Feature:fz}};function T$(e,t){if(!Array.isArray(t))return!1;const n=t.length;if(n!==e.length)return!1;for(let r=0;re*1e3,zr=e=>e/1e3,kz={type:"spring",stiffness:500,damping:25,restSpeed:10},Cz=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),$z={type:"keyframes",duration:.8},Pz={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},Tz=(e,{keyframes:t})=>t.length>2?$z:Xr.has(e)?e.startsWith("scale")?Cz(t[1]):kz:Pz;function Ez({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:o,repeat:i,repeatType:s,repeatDelay:a,from:l,elapsed:u,...c}){return!!Object.keys(c).length}function E$(e,t){return e[t]||e.default||e}const Mz=e=>e!==null;function Cf(e,{repeat:t,repeatType:n="loop"},r){const o=e.filter(Mz),i=t&&n!=="loop"&&t%2===1?0:o.length-1;return!i||r===void 0?o[i]:r}let qu;function _z(){qu=void 0}const Ei={now:()=>(qu===void 0&&Ei.set(ed.isProcessing||cF.useManualTiming?ed.timestamp:performance.now()),qu),set:e=>{qu=e,queueMicrotask(_z)}},M$=e=>/^0[^.\s]+$/u.test(e);function Az(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||M$(e):!0}const _$=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),Oz=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function Rz(e){const t=Oz.exec(e);if(!t)return[,];const[,n,r,o]=t;return[`--${n??r}`,o]}function A$(e,t,n=1){const[r,o]=Rz(e);if(!r)return;const i=window.getComputedStyle(t).getPropertyValue(r);if(i){const s=i.trim();return _$(s)?parseFloat(s):s}return pv(o)?A$(o,t,n+1):o}const jz=new Set(["width","height","top","left","right","bottom","x","y","translateX","translateY"]),Db=e=>e===us||e===Y,Fb=(e,t)=>parseFloat(e.split(", ")[t]),zb=(e,t)=>(n,{transform:r})=>{if(r==="none"||!r)return 0;const o=r.match(/^matrix3d\((.+)\)$/u);if(o)return Fb(o[1],t);{const i=r.match(/^matrix\((.+)\)$/u);return i?Fb(i[1],e):0}},Iz=new Set(["x","y","z"]),Lz=wl.filter(e=>!Iz.has(e));function Nz(e){const t=[];return Lz.forEach(n=>{const r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t}const Qi={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:zb(4,13),y:zb(5,14)};Qi.translateX=Qi.x;Qi.translateY=Qi.y;const O$=e=>t=>t.test(e),Dz={test:e=>e==="auto",parse:e=>e},R$=[us,Y,Ti,xr,RF,OF,Dz],Vb=e=>R$.find(O$(e)),$o=new Set;let _m=!1,Am=!1;function j$(){if(Am){const e=Array.from($o).filter(r=>r.needsMeasurement),t=new Set(e.map(r=>r.element)),n=new Map;t.forEach(r=>{const o=Nz(r);o.length&&(n.set(r,o),r.render())}),e.forEach(r=>r.measureInitialState()),t.forEach(r=>{r.render();const o=n.get(r);o&&o.forEach(([i,s])=>{var a;(a=r.getValue(i))===null||a===void 0||a.set(s)})}),e.forEach(r=>r.measureEndState()),e.forEach(r=>{r.suspendedScrollY!==void 0&&window.scrollTo(0,r.suspendedScrollY)})}Am=!1,_m=!1,$o.forEach(e=>e.complete()),$o.clear()}function I$(){$o.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(Am=!0)})}function Fz(){I$(),j$()}class wv{constructor(t,n,r,o,i,s=!1){this.isComplete=!1,this.isAsync=!1,this.needsMeasurement=!1,this.isScheduled=!1,this.unresolvedKeyframes=[...t],this.onComplete=n,this.name=r,this.motionValue=o,this.element=i,this.isAsync=s}scheduleResolve(){this.isScheduled=!0,this.isAsync?($o.add(this),_m||(_m=!0,Je.read(I$),Je.resolveKeyframes(j$))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:n,element:r,motionValue:o}=this;for(let i=0;in=>!!(Sl(n)&&_F.test(n)&&n.startsWith(e)||t&&!AF(n)&&Object.prototype.hasOwnProperty.call(n,t)),L$=(e,t,n)=>r=>{if(!Sl(r))return r;const[o,i,s,a]=r.match(dv);return{[e]:parseFloat(o),[t]:parseFloat(i),[n]:parseFloat(s),alpha:a!==void 0?parseFloat(a):1}},zz=e=>Xi(0,255,e),Lp={...us,transform:e=>Math.round(zz(e))},xo={test:Sv("rgb","red"),parse:L$("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+Lp.transform(e)+", "+Lp.transform(t)+", "+Lp.transform(n)+", "+aa(sa.transform(r))+")"};function Vz(e){let t="",n="",r="",o="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),o=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),o=e.substring(4,5),t+=t,n+=n,r+=r,o+=o),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:o?parseInt(o,16)/255:1}}const Om={test:Sv("#"),parse:Vz,transform:xo.transform},hi={test:Sv("hsl","hue"),parse:L$("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+Ti.transform(aa(t))+", "+Ti.transform(aa(n))+", "+aa(sa.transform(r))+")"},st={test:e=>xo.test(e)||Om.test(e)||hi.test(e),parse:e=>xo.test(e)?xo.parse(e):hi.test(e)?hi.parse(e):Om.parse(e),transform:e=>Sl(e)?e:e.hasOwnProperty("red")?xo.transform(e):hi.transform(e)};function Hz(e){var t,n;return isNaN(e)&&Sl(e)&&(((t=e.match(dv))===null||t===void 0?void 0:t.length)||0)+(((n=e.match(MF))===null||n===void 0?void 0:n.length)||0)>0}const N$="number",D$="color",Wz="var",Uz="var(",Hb="${}",Bz=/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 Xa(e){const t=e.toString(),n=[],r={color:[],number:[],var:[]},o=[];let i=0;const a=t.replace(Bz,l=>(st.test(l)?(r.color.push(i),o.push(D$),n.push(st.parse(l))):l.startsWith(Uz)?(r.var.push(i),o.push(Wz),n.push(l)):(r.number.push(i),o.push(N$),n.push(parseFloat(l))),++i,Hb)).split(Hb);return{values:n,split:a,indexes:r,types:o}}function F$(e){return Xa(e).values}function z$(e){const{split:t,types:n}=Xa(e),r=t.length;return o=>{let i="";for(let s=0;stypeof e=="number"?0:e;function Kz(e){const t=F$(e);return z$(e)(t.map(Gz))}const ds={test:Hz,parse:F$,createTransformer:z$,getAnimatableNone:Kz},Yz=new Set(["brightness","contrast","saturate","opacity"]);function qz(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(dv)||[];if(!r)return e;const o=n.replace(r,"");let i=Yz.has(t)?1:0;return r!==n&&(i*=100),t+"("+i+o+")"}const Xz=/\b([a-z-]*)\(.*?\)/gu,Rm={...ds,getAnimatableNone:e=>{const t=e.match(Xz);return t?t.map(qz).join(" "):e}},Qz={...fv,color:st,backgroundColor:st,outlineColor:st,fill:st,stroke:st,borderColor:st,borderTopColor:st,borderRightColor:st,borderBottomColor:st,borderLeftColor:st,filter:Rm,WebkitFilter:Rm},kv=e=>Qz[e];function V$(e,t){let n=kv(e);return n!==Rm&&(n=ds),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const Zz=new Set(["auto","none","0"]);function Jz(e,t,n){let r=0,o;for(;r{n.getValue(l).set(u)}),this.resolveNoneKeyframes()}}function W$(e){let t;return()=>(t===void 0&&(t=e()),t)}const Wb=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(ds.test(e)||e==="0")&&!e.startsWith("url("));function eV(e){const t=e[0];if(e.length===1)return!0;for(let n=0;n{this.resolveFinishedPromise=t})}}function B$(e,t){return t?e*(1e3/t):0}const nV=5;function G$(e,t,n){const r=Math.max(t-nV,0);return B$(n-e(r),t-r)}const Np=.001,rV=.01,oV=10,iV=.05,sV=1;function aV({duration:e=800,bounce:t=.25,velocity:n=0,mass:r=1}){let o,i,s=1-t;s=Xi(iV,sV,s),e=Xi(rV,oV,zr(e)),s<1?(o=u=>{const c=u*s,d=c*e,f=c-n,p=jm(u,s),h=Math.exp(-d);return Np-f/p*h},i=u=>{const d=u*s*e,f=d*n+n,p=Math.pow(s,2)*Math.pow(u,2)*e,h=Math.exp(-d),g=jm(Math.pow(u,2),s);return(-o(u)+Np>0?-1:1)*((f-p)*h)/g}):(o=u=>{const c=Math.exp(-u*e),d=(u-n)*e+1;return-Np+c*d},i=u=>{const c=Math.exp(-u*e),d=(n-u)*(e*e);return c*d});const a=5/e,l=uV(o,i,a);if(e=Fr(e),isNaN(l))return{stiffness:100,damping:10,duration:e};{const u=Math.pow(l,2)*r;return{stiffness:u,damping:s*2*Math.sqrt(r*u),duration:e}}}const lV=12;function uV(e,t,n){let r=n;for(let o=1;oe[n]!==void 0)}function fV(e){let t={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...e};if(!Ub(e,dV)&&Ub(e,cV)){const n=aV(e);t={...t,...n,mass:1},t.isResolvedFromDuration=!0}return t}function K$({keyframes:e,restDelta:t,restSpeed:n,...r}){const o=e[0],i=e[e.length-1],s={done:!1,value:o},{stiffness:a,damping:l,mass:u,duration:c,velocity:d,isResolvedFromDuration:f}=fV({...r,velocity:-zr(r.velocity||0)}),p=d||0,h=l/(2*Math.sqrt(a*u)),g=i-o,b=zr(Math.sqrt(a/u)),m=Math.abs(g)<5;n||(n=m?.01:2),t||(t=m?.005:.5);let y;if(h<1){const x=jm(b,h);y=w=>{const C=Math.exp(-h*b*w);return i-C*((p+h*b*g)/x*Math.sin(x*w)+g*Math.cos(x*w))}}else if(h===1)y=x=>i-Math.exp(-b*x)*(g+(p+b*g)*x);else{const x=b*Math.sqrt(h*h-1);y=w=>{const C=Math.exp(-h*b*w),k=Math.min(x*w,300);return i-C*((p+h*b*g)*Math.sinh(k)+x*g*Math.cosh(k))/x}}return{calculatedDuration:f&&c||null,next:x=>{const w=y(x);if(f)s.done=x>=c;else{let C=0;h<1&&(C=x===0?Fr(p):G$(y,x,w));const k=Math.abs(C)<=n,$=Math.abs(i-w)<=t;s.done=k&&$}return s.value=s.done?i:w,s}}}function Bb({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:o=10,bounceStiffness:i=500,modifyTarget:s,min:a,max:l,restDelta:u=.5,restSpeed:c}){const d=e[0],f={done:!1,value:d},p=P=>a!==void 0&&Pl,h=P=>a===void 0?l:l===void 0||Math.abs(a-P)-g*Math.exp(-P/r),x=P=>m+y(P),w=P=>{const R=y(P),M=x(P);f.done=Math.abs(R)<=u,f.value=f.done?m:M};let C,k;const $=P=>{p(f.value)&&(C=P,k=K$({keyframes:[f.value,h(f.value)],velocity:G$(x,P,f.value),damping:o,stiffness:i,restDelta:u,restSpeed:c}))};return $(0),{calculatedDuration:null,next:P=>{let R=!1;return!k&&C===void 0&&(R=!0,w(P),$(P)),C!==void 0&&P>=C?k.next(P-C):(!R&&w(P),f)}}}const Y$=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,pV=1e-7,hV=12;function mV(e,t,n,r,o){let i,s,a=0;do s=t+(n-t)/2,i=Y$(s,r,o)-e,i>0?n=s:t=s;while(Math.abs(i)>pV&&++amV(i,0,1,e,n);return i=>i===0||i===1?i:Y$(o(i),t,r)}const gV=Cl(.42,0,1,1),vV=Cl(0,0,.58,1),q$=Cl(.42,0,.58,1),yV=e=>Array.isArray(e)&&typeof e[0]!="number",X$=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,Q$=e=>t=>1-e(1-t),Cv=e=>1-Math.sin(Math.acos(e)),xV=Q$(Cv),bV=X$(Cv),Z$=Cl(.33,1.53,.69,.99),$v=Q$(Z$),wV=X$($v),SV=e=>(e*=2)<1?.5*$v(e):.5*(2-Math.pow(2,-10*(e-1))),Gb={linear:Ln,easeIn:gV,easeInOut:q$,easeOut:vV,circIn:Cv,circInOut:bV,circOut:xV,backIn:$v,backInOut:wV,backOut:Z$,anticipate:SV},Kb=e=>{if(Array.isArray(e)){Tm(e.length===4);const[t,n,r,o]=e;return Cl(t,n,r,o)}else if(typeof e=="string")return Tm(Gb[e]!==void 0),Gb[e];return e},J$=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r},$f=(e,t,n)=>e+(t-e)*n;function Dp(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 kV({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let o=0,i=0,s=0;if(!t)o=i=s=n;else{const a=n<.5?n*(1+t):n+t-n*t,l=2*n-a;o=Dp(l,a,e+1/3),i=Dp(l,a,e),s=Dp(l,a,e-1/3)}return{red:Math.round(o*255),green:Math.round(i*255),blue:Math.round(s*255),alpha:r}}function td(e,t){return n=>n>0?t:e}const Fp=(e,t,n)=>{const r=e*e,o=n*(t*t-r)+r;return o<0?0:Math.sqrt(o)},CV=[Om,xo,hi],$V=e=>CV.find(t=>t.test(e));function Yb(e){const t=$V(e);if(!t)return!1;let n=t.parse(e);return t===hi&&(n=kV(n)),n}const qb=(e,t)=>{const n=Yb(e),r=Yb(t);if(!n||!r)return td(e,t);const o={...n};return i=>(o.red=Fp(n.red,r.red,i),o.green=Fp(n.green,r.green,i),o.blue=Fp(n.blue,r.blue,i),o.alpha=$f(n.alpha,r.alpha,i),xo.transform(o))},Im=new Set(["none","hidden"]);function PV(e,t){return Im.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function TV(e,t){return n=>$f(e,t,n)}function Pv(e){return typeof e=="number"?TV:typeof e=="string"?pv(e)?td:st.test(e)?qb:_V:Array.isArray(e)?eP:typeof e=="object"?st.test(e)?qb:EV:td}function eP(e,t){const n=[...e],r=n.length,o=e.map((i,s)=>Pv(i)(i,t[s]));return i=>{for(let s=0;s{for(const i in r)n[i]=r[i](o);return n}}function MV(e,t){var n;const r=[],o={color:0,var:0,number:0};for(let i=0;i{const n=ds.createTransformer(t),r=Xa(e),o=Xa(t);return r.indexes.var.length===o.indexes.var.length&&r.indexes.color.length===o.indexes.color.length&&r.indexes.number.length>=o.indexes.number.length?Im.has(e)&&!o.values.length||Im.has(t)&&!r.values.length?PV(e,t):Dr(eP(MV(r,o),o.values),n):td(e,t)};function tP(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?$f(e,t,n):Pv(e)(e,t)}function AV(e,t,n){const r=[],o=n||tP,i=e.length-1;for(let s=0;st[0];if(i===2&&e[0]===e[1])return()=>t[1];e[0]>e[i-1]&&(e=[...e].reverse(),t=[...t].reverse());const s=AV(t,r,o),a=s.length,l=u=>{let c=0;if(a>1)for(;cl(Xi(e[0],e[i-1],u)):l}function RV(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const o=J$(0,t,r);e.push($f(n,1,o))}}function jV(e){const t=[0];return RV(t,e.length-1),t}function IV(e,t){return e.map(n=>n*t)}function LV(e,t){return e.map(()=>t||q$).splice(0,e.length-1)}function nd({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const o=yV(r)?r.map(Kb):Kb(r),i={done:!1,value:t[0]},s=IV(n&&n.length===t.length?n:jV(t),e),a=OV(s,t,{ease:Array.isArray(o)?o:LV(t,o)});return{calculatedDuration:e,next:l=>(i.value=a(l),i.done=l>=e,i)}}const Xb=2e4;function NV(e){let t=0;const n=50;let r=e.next(t);for(;!r.done&&t=Xb?1/0:t}const DV=e=>{const t=({timestamp:n})=>e(n);return{start:()=>Je.update(t,!0),stop:()=>Jc(t),now:()=>ed.isProcessing?ed.timestamp:Ei.now()}},FV={decay:Bb,inertia:Bb,tween:nd,keyframes:nd,spring:K$},zV=e=>e/100;class Tv extends U${constructor({KeyframeResolver:t=wv,...n}){super(n),this.holdTime=null,this.startTime=null,this.cancelTime=null,this.currentTime=0,this.playbackSpeed=1,this.pendingPlayState="running",this.state="idle",this.stop=()=>{if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.teardown();const{onStop:a}=this.options;a&&a()};const{name:r,motionValue:o,keyframes:i}=this.options,s=(a,l)=>this.onKeyframesResolved(a,l);r&&o&&o.owner?this.resolver=o.owner.resolveKeyframes(i,s,r,o):this.resolver=new t(i,s,r,o),this.resolver.scheduleResolve()}initPlayback(t){const{type:n="keyframes",repeat:r=0,repeatDelay:o=0,repeatType:i,velocity:s=0}=this.options,a=FV[n]||nd;let l,u;a!==nd&&typeof t[0]!="number"&&(l=Dr(zV,tP(t[0],t[1])),t=[0,100]);const c=a({...this.options,keyframes:t});i==="mirror"&&(u=a({...this.options,keyframes:[...t].reverse(),velocity:-s})),c.calculatedDuration===null&&(c.calculatedDuration=NV(c));const{calculatedDuration:d}=c,f=d+o,p=f*(r+1)-o;return{generator:c,mirroredGenerator:u,mapPercentToKeyframes:l,calculatedDuration:d,resolvedDuration:f,totalDuration:p}}onPostResolved(){const{autoplay:t=!0}=this.options;this.play(),this.pendingPlayState==="paused"||!t?this.pause():this.state=this.pendingPlayState}tick(t,n=!1){const{resolved:r}=this;if(!r){const{keyframes:P}=this.options;return{done:!0,value:P[P.length-1]}}const{finalKeyframe:o,generator:i,mirroredGenerator:s,mapPercentToKeyframes:a,keyframes:l,calculatedDuration:u,totalDuration:c,resolvedDuration:d}=r;if(this.startTime===null)return i.next(0);const{delay:f,repeat:p,repeatType:h,repeatDelay:g,onUpdate:b}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-c/this.speed,this.startTime)),n?this.currentTime=t:this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=Math.round(t-this.startTime)*this.speed;const m=this.currentTime-f*(this.speed>=0?1:-1),y=this.speed>=0?m<0:m>c;this.currentTime=Math.max(m,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=c);let x=this.currentTime,w=i;if(p){const P=Math.min(this.currentTime,c)/d;let R=Math.floor(P),M=P%1;!M&&P>=1&&(M=1),M===1&&R--,R=Math.min(R,p+1),!!(R%2)&&(h==="reverse"?(M=1-M,g&&(M-=g/d)):h==="mirror"&&(w=s)),x=Xi(0,1,M)*d}const C=y?{done:!1,value:l[0]}:w.next(x);a&&(C.value=a(C.value));let{done:k}=C;!y&&u!==null&&(k=this.speed>=0?this.currentTime>=c:this.currentTime<=0);const $=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&k);return $&&o!==void 0&&(C.value=Cf(l,this.options,o)),b&&b(C.value),$&&this.finish(),C}get duration(){const{resolved:t}=this;return t?zr(t.calculatedDuration):0}get time(){return zr(this.currentTime)}set time(t){t=Fr(t),this.currentTime=t,this.holdTime!==null||this.speed===0?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.speed)}get speed(){return this.playbackSpeed}set speed(t){const n=this.playbackSpeed!==t;this.playbackSpeed=t,n&&(this.time=zr(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved){this.pendingPlayState="running";return}if(this.isStopped)return;const{driver:t=DV,onPlay:n}=this.options;this.driver||(this.driver=t(o=>this.tick(o))),n&&n();const r=this.driver.now();this.holdTime!==null?this.startTime=r-this.holdTime:(!this.startTime||this.state==="finished")&&(this.startTime=r),this.state==="finished"&&this.updateFinishedPromise(),this.cancelTime=this.startTime,this.holdTime=null,this.state="running",this.driver.start()}pause(){var t;if(!this._resolved){this.pendingPlayState="paused";return}this.state="paused",this.holdTime=(t=this.currentTime)!==null&&t!==void 0?t:0}complete(){this.state!=="running"&&this.play(),this.pendingPlayState=this.state="finished",this.holdTime=null}finish(){this.teardown(),this.state="finished";const{onComplete:t}=this.options;t&&t()}cancel(){this.cancelTime!==null&&this.tick(this.cancelTime),this.teardown(),this.updateFinishedPromise()}teardown(){this.state="idle",this.stopDriver(),this.resolveFinishedPromise(),this.updateFinishedPromise(),this.startTime=this.cancelTime=null,this.resolver.cancel()}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}}const nP=e=>Array.isArray(e)&&typeof e[0]=="number";function rP(e){return!!(!e||typeof e=="string"&&e in Ev||nP(e)||Array.isArray(e)&&e.every(rP))}const zs=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,Ev={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:zs([0,.65,.55,1]),circOut:zs([.55,0,1,.45]),backIn:zs([.31,.01,.66,-.59]),backOut:zs([.33,1.53,.69,.99])};function VV(e){return oP(e)||Ev.easeOut}function oP(e){if(e)return nP(e)?zs(e):Array.isArray(e)?e.map(VV):Ev[e]}function HV(e,t,n,{delay:r=0,duration:o=300,repeat:i=0,repeatType:s="loop",ease:a,times:l}={}){const u={[t]:n};l&&(u.offset=l);const c=oP(a);return Array.isArray(c)&&(u.easing=c),e.animate(u,{delay:r,duration:o,easing:Array.isArray(c)?"linear":c,fill:"both",iterations:i+1,direction:s==="reverse"?"alternate":"normal"})}const WV=W$(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),rd=10,UV=2e4;function BV(e){return e.type==="spring"||!rP(e.ease)}function GV(e,t){const n=new Tv({...t,keyframes:e,repeat:0,delay:0,isGenerator:!0});let r={done:!1,value:e[0]};const o=[];let i=0;for(;!r.done&&ithis.onKeyframesResolved(i,s),n,r),this.resolver.scheduleResolve()}initPlayback(t,n){var r;let{duration:o=300,times:i,ease:s,type:a,motionValue:l,name:u}=this.options;if(!(!((r=l.owner)===null||r===void 0)&&r.current))return!1;if(BV(this.options)){const{onComplete:d,onUpdate:f,motionValue:p,...h}=this.options,g=GV(t,h);t=g.keyframes,t.length===1&&(t[1]=t[0]),o=g.duration,i=g.times,s=g.ease,a="keyframes"}const c=HV(l.owner.current,u,t,{...this.options,duration:o,times:i,ease:s});return c.startTime=Ei.now(),this.pendingTimeline?(c.timeline=this.pendingTimeline,this.pendingTimeline=void 0):c.onfinish=()=>{const{onComplete:d}=this.options;l.set(Cf(t,this.options,n)),d&&d(),this.cancel(),this.resolveFinishedPromise()},{animation:c,duration:o,times:i,type:a,ease:s,keyframes:t}}get duration(){const{resolved:t}=this;if(!t)return 0;const{duration:n}=t;return zr(n)}get time(){const{resolved:t}=this;if(!t)return 0;const{animation:n}=t;return zr(n.currentTime||0)}set time(t){const{resolved:n}=this;if(!n)return;const{animation:r}=n;r.currentTime=Fr(t)}get speed(){const{resolved:t}=this;if(!t)return 1;const{animation:n}=t;return n.playbackRate}set speed(t){const{resolved:n}=this;if(!n)return;const{animation:r}=n;r.playbackRate=t}get state(){const{resolved:t}=this;if(!t)return"idle";const{animation:n}=t;return n.playState}attachTimeline(t){if(!this._resolved)this.pendingTimeline=t;else{const{resolved:n}=this;if(!n)return Ln;const{animation:r}=n;r.timeline=t,r.onfinish=null}return Ln}play(){if(this.isStopped)return;const{resolved:t}=this;if(!t)return;const{animation:n}=t;n.playState==="finished"&&this.updateFinishedPromise(),n.play()}pause(){const{resolved:t}=this;if(!t)return;const{animation:n}=t;n.pause()}stop(){if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.resolveFinishedPromise(),this.updateFinishedPromise();const{resolved:t}=this;if(!t)return;const{animation:n,keyframes:r,duration:o,type:i,ease:s,times:a}=t;if(n.playState==="idle"||n.playState==="finished")return;if(this.time){const{motionValue:u,onUpdate:c,onComplete:d,...f}=this.options,p=new Tv({...f,keyframes:r,duration:o,type:i,ease:s,times:a,isGenerator:!0}),h=Fr(this.time);u.setWithVelocity(p.sample(h-rd).value,p.sample(h).value,rd)}const{onStop:l}=this.options;l&&l(),this.cancel()}complete(){const{resolved:t}=this;t&&t.animation.finish()}cancel(){const{resolved:t}=this;t&&t.animation.cancel()}static supports(t){const{motionValue:n,name:r,repeatDelay:o,repeatType:i,damping:s,type:a}=t;return WV()&&r&&y$.has(r)&&n&&n.owner&&n.owner.current instanceof HTMLElement&&!n.owner.getProps().onUpdate&&!o&&i!=="mirror"&&s!==0&&a!=="inertia"}}function KV(e,t){let n;const r=()=>{const{currentTime:o}=t,s=(o===null?0:o.value)/100;n!==s&&e(s),n=s};return Je.update(r,!0),()=>Jc(r)}const YV=W$(()=>window.ScrollTimeline!==void 0);class qV{constructor(t){this.stop=()=>this.runAll("stop"),this.animations=t.filter(Boolean)}then(t,n){return Promise.all(this.animations).then(t).catch(n)}getAll(t){return this.animations[0][t]}setAll(t,n){for(let r=0;r{if(YV()&&r.attachTimeline)r.attachTimeline(t);else return r.pause(),KV(o=>{r.time=r.duration*o},t)});return()=>{n.forEach((r,o)=>{r&&r(),this.animations[o].stop()})}}get time(){return this.getAll("time")}set time(t){this.setAll("time",t)}get speed(){return this.getAll("speed")}set speed(t){this.setAll("speed",t)}get duration(){let t=0;for(let n=0;nn[t]())}play(){this.runAll("play")}pause(){this.runAll("pause")}cancel(){this.runAll("cancel")}complete(){this.runAll("complete")}}const XV=(e,t,n,r={},o,i,s)=>a=>{const l=E$(r,e)||{},u=l.delay||r.delay||0;let{elapsed:c=0}=r;c=c-Fr(u);let d={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...l,delay:-c,onUpdate:p=>{t.set(p),l.onUpdate&&l.onUpdate(p)},onComplete:()=>{a(),l.onComplete&&l.onComplete(),s&&s()},onStop:s,name:e,motionValue:t,element:i?void 0:o};Ez(l)||(d={...d,...Tz(e,d)}),d.duration&&(d.duration=Fr(d.duration)),d.repeatDelay&&(d.repeatDelay=Fr(d.repeatDelay)),d.from!==void 0&&(d.keyframes[0]=d.from);let f=!1;if((d.type===!1||d.duration===0&&!d.repeatDelay)&&(d.duration=0,d.delay===0&&(f=!0)),f&&!i&&t.get()!==void 0){const p=Cf(d.keyframes,l);if(p!==void 0)return Je.update(()=>{d.onUpdate(p),d.onComplete()}),new qV([])}return!i&&Qb.supports(d)?new Qb(d):new Tv(d)};class iP{constructor(){this.subscriptions=[]}add(t){return b$(this.subscriptions,t),()=>w$(this.subscriptions,t)}notify(t,n,r){const o=this.subscriptions.length;if(o)if(o===1)this.subscriptions[0](t,n,r);else for(let i=0;i!isNaN(parseFloat(e));class sP{constructor(t,n={}){this.version="11.3.24",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(r,o=!0)=>{const i=Ei.now();this.updatedAt!==i&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(r),this.current!==this.prev&&this.events.change&&this.events.change.notify(this.current),o&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.hasAnimated=!1,this.setCurrent(t),this.owner=n.owner}setCurrent(t){this.current=t,this.updatedAt=Ei.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=QV(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 iP);const r=this.events[t].add(n);return t==="change"?()=>{r(),Je.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()}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const t=Ei.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>Zb)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,Zb);return B$(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(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function od(e,t){return new sP(e,t)}function ZV(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,od(n))}function JV(e,t){const n=kf(e,t);let{transitionEnd:r={},transition:o={},...i}=n||{};i={...i,...r};for(const s in i){const a=ZF(i[s]);ZV(e,s,a)}}function eH(e){return e.getProps()[t$]}class tH extends sP{constructor(){super(...arguments),this.output=[],this.counts=new Map}add(t){const n=x$(t);if(!n)return;const r=this.counts.get(n)||0;this.counts.set(n,r+1),r===0&&(this.output.push(n),this.update());let o=!1;return()=>{if(o)return;o=!0;const i=this.counts.get(n)-1;this.counts.set(n,i),i===0&&(w$(this.output,n),this.update())}}update(){this.set(this.output.length?this.output.join(", "):"auto")}}function nH(e){return!!(dt(e)&&e.add)}function rH(e,t){var n;if(!e.applyWillChange)return;let r=e.getValue("willChange");if(!r&&!(!((n=e.props.style)===null||n===void 0)&&n.willChange)&&(r=new tH("auto"),e.addValue("willChange",r)),nH(r))return r.add(t)}function oH({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function aP(e,t,{delay:n=0,transitionOverride:r,type:o}={}){var i;let{transition:s=e.getDefaultTransition(),transitionEnd:a,...l}=t;r&&(s=r);const u=[],c=o&&e.animationState&&e.animationState.getState()[o];for(const d in l){const f=e.getValue(d,(i=e.latestValues[d])!==null&&i!==void 0?i:null),p=l[d];if(p===void 0||c&&oH(c,d))continue;const h={delay:n,elapsed:0,...E$(s||{},d)};let g=!1;if(window.MotionHandoffAnimation){const m=eH(e);if(m){const y=window.MotionHandoffAnimation(m,d,Je);y!==null&&(h.elapsed=y,g=!0)}}f.start(XV(d,f,p,e.shouldReduceMotion&&Xr.has(d)?{type:!1}:h,e,g,rH(e,d)));const b=f.animation;b&&u.push(b)}return a&&Promise.all(u).then(()=>{Je.update(()=>{a&&JV(e,a)})}),u}function Lm(e,t,n={}){var r;const o=kf(e,t,n.type==="exit"?(r=e.presenceContext)===null||r===void 0?void 0:r.custom:void 0);let{transition:i=e.getDefaultTransition()||{}}=o||{};n.transitionOverride&&(i=n.transitionOverride);const s=o?()=>Promise.all(aP(e,o,n)):()=>Promise.resolve(),a=e.variantChildren&&e.variantChildren.size?(u=0)=>{const{delayChildren:c=0,staggerChildren:d,staggerDirection:f}=i;return iH(e,t,c+u,d,f,n)}:()=>Promise.resolve(),{when:l}=i;if(l){const[u,c]=l==="beforeChildren"?[s,a]:[a,s];return u().then(()=>c())}else return Promise.all([s(),a(n.delay)])}function iH(e,t,n=0,r=0,o=1,i){const s=[],a=(e.variantChildren.size-1)*r,l=o===1?(u=0)=>u*r:(u=0)=>a-u*r;return Array.from(e.variantChildren).sort(sH).forEach((u,c)=>{u.notify("AnimationStart",t),s.push(Lm(u,t,{...i,delay:n+l(c)}).then(()=>u.notify("AnimationComplete",t)))}),Promise.all(s)}function sH(e,t){return e.sortNodePosition(t)}function aH(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const o=t.map(i=>Lm(e,i,n));r=Promise.all(o)}else if(typeof t=="string")r=Lm(e,t,n);else{const o=typeof t=="function"?kf(e,t,n.custom):t;r=Promise.all(aP(e,o,n))}return r.then(()=>{e.notify("AnimationComplete",t)})}const lH=[...lv].reverse(),uH=lv.length;function cH(e){return t=>Promise.all(t.map(({animation:n,options:r})=>aH(e,n,r)))}function dH(e){let t=cH(e),n=Jb(),r=!0;const o=l=>(u,c)=>{var d;const f=kf(e,c,l==="exit"?(d=e.presenceContext)===null||d===void 0?void 0:d.custom:void 0);if(f){const{transition:p,transitionEnd:h,...g}=f;u={...u,...g,...h}}return u};function i(l){t=l(e)}function s(l){const u=e.getProps(),c=e.getVariantContext(!0)||{},d=[],f=new Set;let p={},h=1/0;for(let b=0;bh&&w,R=!1;const M=Array.isArray(x)?x:[x];let O=M.reduce(o(m),{});C===!1&&(O={});const{prevResolvedValues:E={}}=y,_={...E,...O},T=I=>{P=!0,f.has(I)&&(R=!0,f.delete(I)),y.needsAnimating[I]=!0;const L=e.getValue(I);L&&(L.liveStyle=!1)};for(const I in _){const L=O[I],F=E[I];if(p.hasOwnProperty(I))continue;let j=!1;Em(L)&&Em(F)?j=!T$(L,F):j=L!==F,j?L!=null?T(I):f.add(I):L!==void 0&&f.has(I)?T(I):y.protectedKeys[I]=!0}y.prevProp=x,y.prevResolvedValues=O,y.isActive&&(p={...p,...O}),r&&e.blockInitialAnimation&&(P=!1),P&&(!k||R)&&d.push(...M.map(I=>({animation:I,options:{type:m}})))}if(f.size){const b={};f.forEach(m=>{const y=e.getBaseTarget(m),x=e.getValue(m);x&&(x.liveStyle=!0),b[m]=y??null}),d.push({animation:b})}let g=!!d.length;return r&&(u.initial===!1||u.initial===u.animate)&&!e.manuallyAnimateOnMount&&(g=!1),r=!1,g?t(d):Promise.resolve()}function a(l,u){var c;if(n[l].isActive===u)return Promise.resolve();(c=e.variantChildren)===null||c===void 0||c.forEach(f=>{var p;return(p=f.animationState)===null||p===void 0?void 0:p.setActive(l,u)}),n[l].isActive=u;const d=s(l);for(const f in n)n[f].protectedKeys={};return d}return{animateChanges:s,setActive:a,setAnimateFunction:i,getState:()=>n,reset:()=>{n=Jb(),r=!0}}}function fH(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!T$(t,e):!1}function ro(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function Jb(){return{animate:ro(!0),whileInView:ro(),whileHover:ro(),whileTap:ro(),whileDrag:ro(),whileFocus:ro(),exit:ro()}}class pH extends cs{constructor(t){super(t),t.animationState||(t.animationState=dH(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();qa(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===void 0||t.call(this)}}let hH=0;class mH extends cs{constructor(){super(...arguments),this.id=hH++}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 o=this.node.animationState.setActive("exit",!t);n&&!t&&o.then(()=>n(this.id))}mount(){const{register:t}=this.node.presenceContext||{};t&&(this.unmount=t(this.id))}unmount(){}}const gH={animation:{Feature:pH},exit:{Feature:mH}},ew=()=>({min:0,max:0}),lP=()=>({x:ew(),y:ew()});function vH({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function yH(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 xH(e,t){return vH(yH(e.getBoundingClientRect(),t))}const Nm={current:null},uP={current:!1};function bH(){if(uP.current=!0,!!sv)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>Nm.current=e.matches;e.addListener(t),t()}else Nm.current=!1}function wH(e,t,n){for(const r in t){const o=t[r],i=n[r];if(dt(o))e.addValue(r,o);else if(dt(i))e.addValue(r,od(o,{owner:e}));else if(i!==o)if(e.hasValue(r)){const s=e.getValue(r);s.liveStyle===!0?s.jump(o):s.hasAnimated||s.set(o)}else{const s=e.getStaticValue(r);e.addValue(r,od(s!==void 0?s:o,{owner:e}))}}for(const r in n)t[r]===void 0&&e.removeValue(r);return t}const tw=new WeakMap,SH=[...R$,st,ds],kH=e=>SH.find(O$(e)),nw=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],CH=uv.length;class $H{scrapeMotionValuesFromProps(t,n,r){return{}}constructor({parent:t,props:n,presenceContext:r,reducedMotionConfig:o,blockInitialAnimation:i,visualState:s},a={}){this.applyWillChange=!1,this.resolveKeyframes=(f,p,h,g)=>new this.KeyframeResolver(f,p,h,g,this),this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=wv,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.isRenderScheduled=!1,this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.isRenderScheduled=!1,this.scheduleRender=()=>{this.isRenderScheduled||(this.isRenderScheduled=!0,Je.render(this.render,!1,!0))};const{latestValues:l,renderState:u}=s;this.latestValues=l,this.baseTarget={...l},this.initialValues=n.initial?{...l}:{},this.renderState=u,this.parent=t,this.props=n,this.presenceContext=r,this.depth=t?t.depth+1:0,this.reducedMotionConfig=o,this.options=a,this.blockInitialAnimation=!!i,this.isControllingVariants=Sf(n),this.isVariantNode=i$(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:c,...d}=this.scrapeMotionValuesFromProps(n,{},this);for(const f in d){const p=d[f];l[f]!==void 0&&dt(p)&&p.set(l[f],!1)}}mount(t){this.current=t,tw.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((n,r)=>this.bindToMotionValue(r,n)),uP.current||bH(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:Nm.current,this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){tw.delete(this.current),this.projection&&this.projection.unmount(),Jc(this.notifyUpdate),Jc(this.render),this.valueSubscriptions.forEach(t=>t()),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const t in this.events)this.events[t].clear();for(const t in this.features){const n=this.features[t];n&&(n.unmount(),n.isMounted=!1)}this.current=null}bindToMotionValue(t,n){const r=Xr.has(t),o=n.on("change",s=>{this.latestValues[t]=s,this.props.onUpdate&&Je.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0)}),i=n.on("renderRequest",this.scheduleRender);this.valueSubscriptions.set(t,()=>{o(),i(),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 qi){const n=qi[t];if(!n)continue;const{isEnabled:r,Feature:o}=n;if(!this.features[t]&&o&&r(this.props)&&(this.features[t]=new o(this)),this.features[t]){const i=this.features[t];i.isMounted?i.update():(i.mount(),i.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):lP()}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=od(n===null?void 0:n,{owner:this}),this.addValue(t,r)),r}readValue(t,n){var r;let o=this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:(r=this.getBaseTargetFromProps(this.props,t))!==null&&r!==void 0?r:this.readValueFromInstance(this.current,t,this.options);return o!=null&&(typeof o=="string"&&(_$(o)||M$(o))?o=parseFloat(o):!kH(o)&&ds.test(n)&&(o=V$(t,n)),this.setBaseTarget(t,dt(o)?o.get():o)),dt(o)?o.get():o}setBaseTarget(t,n){this.baseTarget[t]=n}getBaseTarget(t){var n;const{initial:r}=this.props;let o;if(typeof r=="string"||typeof r=="object"){const s=xv(this.props,r,(n=this.presenceContext)===null||n===void 0?void 0:n.custom);s&&(o=s[t])}if(r&&o!==void 0)return o;const i=this.getBaseTargetFromProps(this.props,t);return i!==void 0&&!dt(i)?i:this.initialValues[t]!==void 0&&o===void 0?void 0:this.baseTarget[t]}on(t,n){return this.events[t]||(this.events[t]=new iP),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}}class cP extends $H{constructor(){super(...arguments),this.KeyframeResolver=H$}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]}}function PH(e){return window.getComputedStyle(e)}class TH extends cP{constructor(){super(...arguments),this.type="html",this.applyWillChange=!0,this.renderInstance=h$}readValueFromInstance(t,n){if(Xr.has(n)){const r=kv(n);return r&&r.default||0}else{const r=PH(t),o=(c$(n)?r.getPropertyValue(n):r[n])||0;return typeof o=="string"?o.trim():o}}measureInstanceViewportBox(t,{transformPagePoint:n}){return xH(t,n)}build(t,n,r){hv(t,n,r.transformTemplate)}scrapeMotionValuesFromProps(t,n,r){return yv(t,n,r)}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;dt(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}class EH extends cP{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=lP}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(Xr.has(n)){const r=kv(n);return r&&r.default||0}return n=m$.has(n)?n:wf(n),t.getAttribute(n)}scrapeMotionValuesFromProps(t,n,r){return v$(t,n,r)}build(t,n,r){gv(t,n,this.isSVGTag,r.transformTemplate)}renderInstance(t,n,r,o){g$(t,n,r,o)}mount(t){this.isSVGTag=vv(t.tagName),super.mount(t)}}const MH=(e,t)=>cv(e)?new EH(t):new TH(t,{allowProjection:e!==S.Fragment}),_H=PF(iz);class AH extends S.Component{getSnapshotBeforeUpdate(t){const n=this.props.childRef.current;if(n&&t.isPresent&&!this.props.isPresent){const r=this.props.sizeRef.current;r.height=n.offsetHeight||0,r.width=n.offsetWidth||0,r.top=n.offsetTop,r.left=n.offsetLeft}return null}componentDidUpdate(){}render(){return this.props.children}}function OH({children:e,isPresent:t}){const n=S.useId(),r=S.useRef(null),o=S.useRef({width:0,height:0,top:0,left:0}),{nonce:i}=S.useContext(ov);return S.useInsertionEffect(()=>{const{width:s,height:a,top:l,left:u}=o.current;if(t||!r.current||!s||!a)return;r.current.dataset.motionPopId=n;const c=document.createElement("style");return i&&(c.nonce=i),document.head.appendChild(c),c.sheet&&c.sheet.insertRule(` +`));const g=su(t,i,s),b=su(o,i,s),m=su(n,i,s),y=su(r,i,s);return v.jsxs(S.Fragment,{children:[p&&v.jsx(bx,A({},g,{position:"top",axisId:p})),f&&v.jsx(bx,A({},b,{position:"bottom",axisId:f})),d&&v.jsx(wx,A({},m,{position:"left",axisId:d})),h&&v.jsx(wx,A({},y,{position:"right",axisId:h}))]})}var _0={};Object.defineProperty(_0,"__esModule",{value:!0});var WC=_0.default=void 0,fj=hj(S),pj=jk;function UC(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,n=new WeakMap;return(UC=function(r){return r?n:t})(e)}function hj(e,t){if(e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var n=UC(t);if(n&&n.has(e))return n.get(e);var r={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(i!=="default"&&Object.prototype.hasOwnProperty.call(e,i)){var s=o?Object.getOwnPropertyDescriptor(e,i):null;s&&(s.get||s.set)?Object.defineProperty(r,i,s):r[i]=e[i]}return r.default=e,n&&n.set(e,r),r}function mj(e){return Object.keys(e).length===0}function gj(e=null){const t=fj.useContext(pj.ThemeContext);return!t||mj(t)?e:t}WC=_0.default=gj;var $t="top",rn="bottom",on="right",Pt="left",A0="auto",pl=[$t,rn,on,Pt],Wi="start",Da="end",vj="clippingParents",BC="viewport",Ps="popper",yj="reference",Sx=pl.reduce(function(e,t){return e.concat([t+"-"+Wi,t+"-"+Da])},[]),GC=[].concat(pl,[A0]).reduce(function(e,t){return e.concat([t,t+"-"+Wi,t+"-"+Da])},[]),xj="beforeRead",bj="read",wj="afterRead",Sj="beforeMain",kj="main",Cj="afterMain",$j="beforeWrite",Pj="write",Tj="afterWrite",Ej=[xj,bj,wj,Sj,kj,Cj,$j,Pj,Tj];function Dn(e){return e?(e.nodeName||"").toLowerCase():null}function It(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Ao(e){var t=It(e).Element;return e instanceof t||e instanceof Element}function Jt(e){var t=It(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function O0(e){if(typeof ShadowRoot>"u")return!1;var t=It(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function Mj(e){var t=e.state;Object.keys(t.elements).forEach(function(n){var r=t.styles[n]||{},o=t.attributes[n]||{},i=t.elements[n];!Jt(i)||!Dn(i)||(Object.assign(i.style,r),Object.keys(o).forEach(function(s){var a=o[s];a===!1?i.removeAttribute(s):i.setAttribute(s,a===!0?"":a)}))})}function _j(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(r){var o=t.elements[r],i=t.attributes[r]||{},s=Object.keys(t.styles.hasOwnProperty(r)?t.styles[r]:n[r]),a=s.reduce(function(l,u){return l[u]="",l},{});!Jt(o)||!Dn(o)||(Object.assign(o.style,a),Object.keys(i).forEach(function(l){o.removeAttribute(l)}))})}}const Aj={name:"applyStyles",enabled:!0,phase:"write",fn:Mj,effect:_j,requires:["computeStyles"]};function In(e){return e.split("-")[0]}var Co=Math.max,Dc=Math.min,Ui=Math.round;function nm(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function KC(){return!/^((?!chrome|android).)*safari/i.test(nm())}function Bi(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var r=e.getBoundingClientRect(),o=1,i=1;t&&Jt(e)&&(o=e.offsetWidth>0&&Ui(r.width)/e.offsetWidth||1,i=e.offsetHeight>0&&Ui(r.height)/e.offsetHeight||1);var s=Ao(e)?It(e):window,a=s.visualViewport,l=!KC()&&n,u=(r.left+(l&&a?a.offsetLeft:0))/o,c=(r.top+(l&&a?a.offsetTop:0))/i,d=r.width/o,f=r.height/i;return{width:d,height:f,top:c,right:u+d,bottom:c+f,left:u,x:u,y:c}}function R0(e){var t=Bi(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function YC(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&O0(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function ur(e){return It(e).getComputedStyle(e)}function Oj(e){return["table","td","th"].indexOf(Dn(e))>=0}function qr(e){return((Ao(e)?e.ownerDocument:e.document)||window.document).documentElement}function cf(e){return Dn(e)==="html"?e:e.assignedSlot||e.parentNode||(O0(e)?e.host:null)||qr(e)}function kx(e){return!Jt(e)||ur(e).position==="fixed"?null:e.offsetParent}function Rj(e){var t=/firefox/i.test(nm()),n=/Trident/i.test(nm());if(n&&Jt(e)){var r=ur(e);if(r.position==="fixed")return null}var o=cf(e);for(O0(o)&&(o=o.host);Jt(o)&&["html","body"].indexOf(Dn(o))<0;){var i=ur(o);if(i.transform!=="none"||i.perspective!=="none"||i.contain==="paint"||["transform","perspective"].indexOf(i.willChange)!==-1||t&&i.willChange==="filter"||t&&i.filter&&i.filter!=="none")return o;o=o.parentNode}return null}function hl(e){for(var t=It(e),n=kx(e);n&&Oj(n)&&ur(n).position==="static";)n=kx(n);return n&&(Dn(n)==="html"||Dn(n)==="body"&&ur(n).position==="static")?t:n||Rj(e)||t}function j0(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Zs(e,t,n){return Co(e,Dc(t,n))}function jj(e,t,n){var r=Zs(e,t,n);return r>n?n:r}function qC(){return{top:0,right:0,bottom:0,left:0}}function XC(e){return Object.assign({},qC(),e)}function QC(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}var Ij=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,XC(typeof t!="number"?t:QC(t,pl))};function Lj(e){var t,n=e.state,r=e.name,o=e.options,i=n.elements.arrow,s=n.modifiersData.popperOffsets,a=In(n.placement),l=j0(a),u=[Pt,on].indexOf(a)>=0,c=u?"height":"width";if(!(!i||!s)){var d=Ij(o.padding,n),f=R0(i),p=l==="y"?$t:Pt,h=l==="y"?rn:on,g=n.rects.reference[c]+n.rects.reference[l]-s[l]-n.rects.popper[c],b=s[l]-n.rects.reference[l],m=hl(i),y=m?l==="y"?m.clientHeight||0:m.clientWidth||0:0,x=g/2-b/2,w=d[p],C=y-f[c]-d[h],k=y/2-f[c]/2+x,$=Zs(w,k,C),P=l;n.modifiersData[r]=(t={},t[P]=$,t.centerOffset=$-k,t)}}function Nj(e){var t=e.state,n=e.options,r=n.element,o=r===void 0?"[data-popper-arrow]":r;o!=null&&(typeof o=="string"&&(o=t.elements.popper.querySelector(o),!o)||YC(t.elements.popper,o)&&(t.elements.arrow=o))}const Dj={name:"arrow",enabled:!0,phase:"main",fn:Lj,effect:Nj,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Gi(e){return e.split("-")[1]}var Fj={top:"auto",right:"auto",bottom:"auto",left:"auto"};function zj(e,t){var n=e.x,r=e.y,o=t.devicePixelRatio||1;return{x:Ui(n*o)/o||0,y:Ui(r*o)/o||0}}function Cx(e){var t,n=e.popper,r=e.popperRect,o=e.placement,i=e.variation,s=e.offsets,a=e.position,l=e.gpuAcceleration,u=e.adaptive,c=e.roundOffsets,d=e.isFixed,f=s.x,p=f===void 0?0:f,h=s.y,g=h===void 0?0:h,b=typeof c=="function"?c({x:p,y:g}):{x:p,y:g};p=b.x,g=b.y;var m=s.hasOwnProperty("x"),y=s.hasOwnProperty("y"),x=Pt,w=$t,C=window;if(u){var k=hl(n),$="clientHeight",P="clientWidth";if(k===It(n)&&(k=qr(n),ur(k).position!=="static"&&a==="absolute"&&($="scrollHeight",P="scrollWidth")),k=k,o===$t||(o===Pt||o===on)&&i===Da){w=rn;var R=d&&k===C&&C.visualViewport?C.visualViewport.height:k[$];g-=R-r.height,g*=l?1:-1}if(o===Pt||(o===$t||o===rn)&&i===Da){x=on;var M=d&&k===C&&C.visualViewport?C.visualViewport.width:k[P];p-=M-r.width,p*=l?1:-1}}var O=Object.assign({position:a},u&&Fj),E=c===!0?zj({x:p,y:g},It(n)):{x:p,y:g};if(p=E.x,g=E.y,l){var _;return Object.assign({},O,(_={},_[w]=y?"0":"",_[x]=m?"0":"",_.transform=(C.devicePixelRatio||1)<=1?"translate("+p+"px, "+g+"px)":"translate3d("+p+"px, "+g+"px, 0)",_))}return Object.assign({},O,(t={},t[w]=y?g+"px":"",t[x]=m?p+"px":"",t.transform="",t))}function Vj(e){var t=e.state,n=e.options,r=n.gpuAcceleration,o=r===void 0?!0:r,i=n.adaptive,s=i===void 0?!0:i,a=n.roundOffsets,l=a===void 0?!0:a,u={placement:In(t.placement),variation:Gi(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:o,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,Cx(Object.assign({},u,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:s,roundOffsets:l})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,Cx(Object.assign({},u,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const Hj={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:Vj,data:{}};var au={passive:!0};function Wj(e){var t=e.state,n=e.instance,r=e.options,o=r.scroll,i=o===void 0?!0:o,s=r.resize,a=s===void 0?!0:s,l=It(t.elements.popper),u=[].concat(t.scrollParents.reference,t.scrollParents.popper);return i&&u.forEach(function(c){c.addEventListener("scroll",n.update,au)}),a&&l.addEventListener("resize",n.update,au),function(){i&&u.forEach(function(c){c.removeEventListener("scroll",n.update,au)}),a&&l.removeEventListener("resize",n.update,au)}}const Uj={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:Wj,data:{}};var Bj={left:"right",right:"left",bottom:"top",top:"bottom"};function Bu(e){return e.replace(/left|right|bottom|top/g,function(t){return Bj[t]})}var Gj={start:"end",end:"start"};function $x(e){return e.replace(/start|end/g,function(t){return Gj[t]})}function I0(e){var t=It(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function L0(e){return Bi(qr(e)).left+I0(e).scrollLeft}function Kj(e,t){var n=It(e),r=qr(e),o=n.visualViewport,i=r.clientWidth,s=r.clientHeight,a=0,l=0;if(o){i=o.width,s=o.height;var u=KC();(u||!u&&t==="fixed")&&(a=o.offsetLeft,l=o.offsetTop)}return{width:i,height:s,x:a+L0(e),y:l}}function Yj(e){var t,n=qr(e),r=I0(e),o=(t=e.ownerDocument)==null?void 0:t.body,i=Co(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),s=Co(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),a=-r.scrollLeft+L0(e),l=-r.scrollTop;return ur(o||n).direction==="rtl"&&(a+=Co(n.clientWidth,o?o.clientWidth:0)-i),{width:i,height:s,x:a,y:l}}function N0(e){var t=ur(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+r)}function ZC(e){return["html","body","#document"].indexOf(Dn(e))>=0?e.ownerDocument.body:Jt(e)&&N0(e)?e:ZC(cf(e))}function Js(e,t){var n;t===void 0&&(t=[]);var r=ZC(e),o=r===((n=e.ownerDocument)==null?void 0:n.body),i=It(r),s=o?[i].concat(i.visualViewport||[],N0(r)?r:[]):r,a=t.concat(s);return o?a:a.concat(Js(cf(s)))}function rm(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function qj(e,t){var n=Bi(e,!1,t==="fixed");return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}function Px(e,t,n){return t===BC?rm(Kj(e,n)):Ao(t)?qj(t,n):rm(Yj(qr(e)))}function Xj(e){var t=Js(cf(e)),n=["absolute","fixed"].indexOf(ur(e).position)>=0,r=n&&Jt(e)?hl(e):e;return Ao(r)?t.filter(function(o){return Ao(o)&&YC(o,r)&&Dn(o)!=="body"}):[]}function Qj(e,t,n,r){var o=t==="clippingParents"?Xj(e):[].concat(t),i=[].concat(o,[n]),s=i[0],a=i.reduce(function(l,u){var c=Px(e,u,r);return l.top=Co(c.top,l.top),l.right=Dc(c.right,l.right),l.bottom=Dc(c.bottom,l.bottom),l.left=Co(c.left,l.left),l},Px(e,s,r));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}function JC(e){var t=e.reference,n=e.element,r=e.placement,o=r?In(r):null,i=r?Gi(r):null,s=t.x+t.width/2-n.width/2,a=t.y+t.height/2-n.height/2,l;switch(o){case $t:l={x:s,y:t.y-n.height};break;case rn:l={x:s,y:t.y+t.height};break;case on:l={x:t.x+t.width,y:a};break;case Pt:l={x:t.x-n.width,y:a};break;default:l={x:t.x,y:t.y}}var u=o?j0(o):null;if(u!=null){var c=u==="y"?"height":"width";switch(i){case Wi:l[u]=l[u]-(t[c]/2-n[c]/2);break;case Da:l[u]=l[u]+(t[c]/2-n[c]/2);break}}return l}function Fa(e,t){t===void 0&&(t={});var n=t,r=n.placement,o=r===void 0?e.placement:r,i=n.strategy,s=i===void 0?e.strategy:i,a=n.boundary,l=a===void 0?vj:a,u=n.rootBoundary,c=u===void 0?BC:u,d=n.elementContext,f=d===void 0?Ps:d,p=n.altBoundary,h=p===void 0?!1:p,g=n.padding,b=g===void 0?0:g,m=XC(typeof b!="number"?b:QC(b,pl)),y=f===Ps?yj:Ps,x=e.rects.popper,w=e.elements[h?y:f],C=Qj(Ao(w)?w:w.contextElement||qr(e.elements.popper),l,c,s),k=Bi(e.elements.reference),$=JC({reference:k,element:x,strategy:"absolute",placement:o}),P=rm(Object.assign({},x,$)),R=f===Ps?P:k,M={top:C.top-R.top+m.top,bottom:R.bottom-C.bottom+m.bottom,left:C.left-R.left+m.left,right:R.right-C.right+m.right},O=e.modifiersData.offset;if(f===Ps&&O){var E=O[o];Object.keys(M).forEach(function(_){var T=[on,rn].indexOf(_)>=0?1:-1,I=[$t,rn].indexOf(_)>=0?"y":"x";M[_]+=E[I]*T})}return M}function Zj(e,t){t===void 0&&(t={});var n=t,r=n.placement,o=n.boundary,i=n.rootBoundary,s=n.padding,a=n.flipVariations,l=n.allowedAutoPlacements,u=l===void 0?GC:l,c=Gi(r),d=c?a?Sx:Sx.filter(function(h){return Gi(h)===c}):pl,f=d.filter(function(h){return u.indexOf(h)>=0});f.length===0&&(f=d);var p=f.reduce(function(h,g){return h[g]=Fa(e,{placement:g,boundary:o,rootBoundary:i,padding:s})[In(g)],h},{});return Object.keys(p).sort(function(h,g){return p[h]-p[g]})}function Jj(e){if(In(e)===A0)return[];var t=Bu(e);return[$x(e),t,$x(t)]}function eI(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var o=n.mainAxis,i=o===void 0?!0:o,s=n.altAxis,a=s===void 0?!0:s,l=n.fallbackPlacements,u=n.padding,c=n.boundary,d=n.rootBoundary,f=n.altBoundary,p=n.flipVariations,h=p===void 0?!0:p,g=n.allowedAutoPlacements,b=t.options.placement,m=In(b),y=m===b,x=l||(y||!h?[Bu(b)]:Jj(b)),w=[b].concat(x).reduce(function(J,X){return J.concat(In(X)===A0?Zj(t,{placement:X,boundary:c,rootBoundary:d,padding:u,flipVariations:h,allowedAutoPlacements:g}):X)},[]),C=t.rects.reference,k=t.rects.popper,$=new Map,P=!0,R=w[0],M=0;M=0,I=T?"width":"height",L=Fa(t,{placement:O,boundary:c,rootBoundary:d,altBoundary:f,padding:u}),F=T?_?on:Pt:_?rn:$t;C[I]>k[I]&&(F=Bu(F));var j=Bu(F),N=[];if(i&&N.push(L[E]<=0),a&&N.push(L[F]<=0,L[j]<=0),N.every(function(J){return J})){R=O,P=!1;break}$.set(O,N)}if(P)for(var V=h?3:1,G=function(X){var oe=w.find(function(le){var de=$.get(le);if(de)return de.slice(0,X).every(function(W){return W})});if(oe)return R=oe,"break"},B=V;B>0;B--){var q=G(B);if(q==="break")break}t.placement!==R&&(t.modifiersData[r]._skip=!0,t.placement=R,t.reset=!0)}}const tI={name:"flip",enabled:!0,phase:"main",fn:eI,requiresIfExists:["offset"],data:{_skip:!1}};function Tx(e,t,n){return n===void 0&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function Ex(e){return[$t,on,rn,Pt].some(function(t){return e[t]>=0})}function nI(e){var t=e.state,n=e.name,r=t.rects.reference,o=t.rects.popper,i=t.modifiersData.preventOverflow,s=Fa(t,{elementContext:"reference"}),a=Fa(t,{altBoundary:!0}),l=Tx(s,r),u=Tx(a,o,i),c=Ex(l),d=Ex(u);t.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:u,isReferenceHidden:c,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":c,"data-popper-escaped":d})}const rI={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:nI};function oI(e,t,n){var r=In(e),o=[Pt,$t].indexOf(r)>=0?-1:1,i=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,s=i[0],a=i[1];return s=s||0,a=(a||0)*o,[Pt,on].indexOf(r)>=0?{x:a,y:s}:{x:s,y:a}}function iI(e){var t=e.state,n=e.options,r=e.name,o=n.offset,i=o===void 0?[0,0]:o,s=GC.reduce(function(c,d){return c[d]=oI(d,t.rects,i),c},{}),a=s[t.placement],l=a.x,u=a.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=u),t.modifiersData[r]=s}const sI={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:iI};function aI(e){var t=e.state,n=e.name;t.modifiersData[n]=JC({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}const lI={name:"popperOffsets",enabled:!0,phase:"read",fn:aI,data:{}};function uI(e){return e==="x"?"y":"x"}function cI(e){var t=e.state,n=e.options,r=e.name,o=n.mainAxis,i=o===void 0?!0:o,s=n.altAxis,a=s===void 0?!1:s,l=n.boundary,u=n.rootBoundary,c=n.altBoundary,d=n.padding,f=n.tether,p=f===void 0?!0:f,h=n.tetherOffset,g=h===void 0?0:h,b=Fa(t,{boundary:l,rootBoundary:u,padding:d,altBoundary:c}),m=In(t.placement),y=Gi(t.placement),x=!y,w=j0(m),C=uI(w),k=t.modifiersData.popperOffsets,$=t.rects.reference,P=t.rects.popper,R=typeof g=="function"?g(Object.assign({},t.rects,{placement:t.placement})):g,M=typeof R=="number"?{mainAxis:R,altAxis:R}:Object.assign({mainAxis:0,altAxis:0},R),O=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,E={x:0,y:0};if(k){if(i){var _,T=w==="y"?$t:Pt,I=w==="y"?rn:on,L=w==="y"?"height":"width",F=k[w],j=F+b[T],N=F-b[I],V=p?-P[L]/2:0,G=y===Wi?$[L]:P[L],B=y===Wi?-P[L]:-$[L],q=t.elements.arrow,J=p&&q?R0(q):{width:0,height:0},X=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:qC(),oe=X[T],le=X[I],de=Zs(0,$[L],J[L]),W=x?$[L]/2-V-de-oe-M.mainAxis:G-de-oe-M.mainAxis,K=x?-$[L]/2+V+de+le+M.mainAxis:B+de+le+M.mainAxis,Q=t.elements.arrow&&hl(t.elements.arrow),D=Q?w==="y"?Q.clientTop||0:Q.clientLeft||0:0,be=(_=O==null?void 0:O[w])!=null?_:0,ne=F+W-be-D,Re=F+K-be,me=Zs(p?Dc(j,ne):j,F,p?Co(N,Re):N);k[w]=me,E[w]=me-F}if(a){var Be,Qr=w==="x"?$t:Pt,qP=w==="x"?rn:on,Zr=k[C],Ol=C==="y"?"height":"width",Uv=Zr+b[Qr],Bv=Zr-b[qP],Of=[$t,Pt].indexOf(m)!==-1,Gv=(Be=O==null?void 0:O[C])!=null?Be:0,Kv=Of?Uv:Zr-$[Ol]-P[Ol]-Gv+M.altAxis,Yv=Of?Zr+$[Ol]+P[Ol]-Gv-M.altAxis:Bv,qv=p&&Of?jj(Kv,Zr,Yv):Zs(p?Kv:Uv,Zr,p?Yv:Bv);k[C]=qv,E[C]=qv-Zr}t.modifiersData[r]=E}}const dI={name:"preventOverflow",enabled:!0,phase:"main",fn:cI,requiresIfExists:["offset"]};function fI(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function pI(e){return e===It(e)||!Jt(e)?I0(e):fI(e)}function hI(e){var t=e.getBoundingClientRect(),n=Ui(t.width)/e.offsetWidth||1,r=Ui(t.height)/e.offsetHeight||1;return n!==1||r!==1}function mI(e,t,n){n===void 0&&(n=!1);var r=Jt(t),o=Jt(t)&&hI(t),i=qr(t),s=Bi(e,o,n),a={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(r||!r&&!n)&&((Dn(t)!=="body"||N0(i))&&(a=pI(t)),Jt(t)?(l=Bi(t,!0),l.x+=t.clientLeft,l.y+=t.clientTop):i&&(l.x=L0(i))),{x:s.left+a.scrollLeft-l.x,y:s.top+a.scrollTop-l.y,width:s.width,height:s.height}}function gI(e){var t=new Map,n=new Set,r=[];e.forEach(function(i){t.set(i.name,i)});function o(i){n.add(i.name);var s=[].concat(i.requires||[],i.requiresIfExists||[]);s.forEach(function(a){if(!n.has(a)){var l=t.get(a);l&&o(l)}}),r.push(i)}return e.forEach(function(i){n.has(i.name)||o(i)}),r}function vI(e){var t=gI(e);return Ej.reduce(function(n,r){return n.concat(t.filter(function(o){return o.phase===r}))},[])}function yI(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function xI(e){var t=e.reduce(function(n,r){var o=n[r.name];return n[r.name]=o?Object.assign({},o,r,{options:Object.assign({},o.options,r.options),data:Object.assign({},o.data,r.data)}):r,n},{});return Object.keys(t).map(function(n){return t[n]})}var Mx={placement:"bottom",modifiers:[],strategy:"absolute"};function _x(){for(var e=arguments.length,t=new Array(e),n=0;n{i||a(kI(o)||document.body)},[o,i]),or(()=>{if(s&&!i)return Sc(n,s),()=>{Sc(n,null)}},[n,s,i]),i){if(S.isValidElement(r)){const u={ref:l};return S.cloneElement(r,u)}return v.jsx(S.Fragment,{children:r})}return v.jsx(S.Fragment,{children:s&&rl.createPortal(r,s)})});function $I(e){return Hn("MuiPopper",e)}fr("MuiPopper",["root"]);const PI=["anchorEl","children","direction","disablePortal","modifiers","open","placement","popperOptions","popperRef","slotProps","slots","TransitionProps","ownerState"],TI=["anchorEl","children","container","direction","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","style","transition","slotProps","slots"];function EI(e,t){if(t==="ltr")return e;switch(e){case"bottom-end":return"bottom-start";case"bottom-start":return"bottom-end";case"top-end":return"top-start";case"top-start":return"top-end";default:return e}}function om(e){return typeof e=="function"?e():e}function MI(e){return e.nodeType!==void 0}const _I=e=>{const{classes:t}=e;return Vn({root:["root"]},$I,t)},AI={},OI=S.forwardRef(function(t,n){var r;const{anchorEl:o,children:i,direction:s,disablePortal:a,modifiers:l,open:u,placement:c,popperOptions:d,popperRef:f,slotProps:p={},slots:h={},TransitionProps:g}=t,b=se(t,PI),m=S.useRef(null),y=Li(m,n),x=S.useRef(null),w=Li(x,f),C=S.useRef(w);or(()=>{C.current=w},[w]),S.useImperativeHandle(f,()=>x.current,[]);const k=EI(c,s),[$,P]=S.useState(k),[R,M]=S.useState(om(o));S.useEffect(()=>{x.current&&x.current.forceUpdate()}),S.useEffect(()=>{o&&M(om(o))},[o]),or(()=>{if(!R||!u)return;const I=j=>{P(j.placement)};let L=[{name:"preventOverflow",options:{altBoundary:a}},{name:"flip",options:{altBoundary:a}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:j})=>{I(j)}}];l!=null&&(L=L.concat(l)),d&&d.modifiers!=null&&(L=L.concat(d.modifiers));const F=SI(R,m.current,A({placement:k},d,{modifiers:L}));return C.current(F),()=>{F.destroy(),C.current(null)}},[R,a,l,u,d,k]);const O={placement:$};g!==null&&(O.TransitionProps=g);const E=_I(t),_=(r=h.root)!=null?r:"div",T=On({elementType:_,externalSlotProps:p.root,externalForwardedProps:b,additionalProps:{role:"tooltip",ref:y},ownerState:t,className:E.root});return v.jsx(_,A({},T,{children:typeof i=="function"?i(O):i}))}),RI=S.forwardRef(function(t,n){const{anchorEl:r,children:o,container:i,direction:s="ltr",disablePortal:a=!1,keepMounted:l=!1,modifiers:u,open:c,placement:d="bottom",popperOptions:f=AI,popperRef:p,style:h,transition:g=!1,slotProps:b={},slots:m={}}=t,y=se(t,TI),[x,w]=S.useState(!0),C=()=>{w(!1)},k=()=>{w(!0)};if(!l&&!c&&(!g||x))return null;let $;if(i)$=i;else if(r){const M=om(r);$=M&&MI(M)?wc(M).body:wc(null).body}const P=!c&&l&&(!g||x)?"none":void 0,R=g?{in:c,onEnter:C,onExited:k}:void 0;return v.jsx(CI,{disablePortal:a,container:$,children:v.jsx(OI,A({anchorEl:r,direction:s,disablePortal:a,modifiers:u,ref:n,open:g?!x:c,placement:d,popperOptions:f,popperRef:p,slotProps:b,slots:m},y,{style:A({position:"fixed",top:0,left:0,display:P},h),TransitionProps:R,children:o}))})}),jI=["anchorEl","component","components","componentsProps","container","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","transition","slots","slotProps"],II=qe(RI,{name:"MuiPopper",slot:"Root",overridesResolver:(e,t)=>t.root})({}),LI=S.forwardRef(function(t,n){var r;const o=WC(),i=Ug({props:t,name:"MuiPopper"}),{anchorEl:s,component:a,components:l,componentsProps:u,container:c,disablePortal:d,keepMounted:f,modifiers:p,open:h,placement:g,popperOptions:b,popperRef:m,transition:y,slots:x,slotProps:w}=i,C=se(i,jI),k=(r=x==null?void 0:x.root)!=null?r:l==null?void 0:l.Root,$=A({anchorEl:s,container:c,disablePortal:d,keepMounted:f,modifiers:p,open:h,placement:g,popperOptions:b,popperRef:m,transition:y},C);return v.jsx(II,A({as:a,direction:o==null?void 0:o.direction,slots:{root:k},slotProps:w??u},$,{ref:n}))});function e5(e){const{children:t,defer:n=!1,fallback:r=null}=e,[o,i]=S.useState(!1);return or(()=>{n||i(!0)},[n]),S.useEffect(()=>{n&&i(!0)},[n]),v.jsx(S.Fragment,{children:o?t:r})}const ml=S.createContext({item:null,axis:{x:null,y:null},useVoronoiInteraction:!1,dispatch:()=>null}),NI=(e,t)=>{switch(t.type){case"enterItem":return A({},e,{item:t.data});case"exitChart":return e.item===null&&e.axis.x===null&&e.axis.y===null?e:A({},e,{axis:{x:null,y:null},item:null});case"updateVoronoiUsage":return A({},e,{useVoronoiInteraction:t.useVoronoiInteraction});case"leaveItem":return e.item===null||Object.keys(t.data).some(n=>t.data[n]!==e.item[n])?e:A({},e,{item:null});case"updateAxis":return t.data.x===e.axis.x&&t.data.y===e.axis.y?e:A({},e,{axis:t.data});default:return e}};function DI(e){const{children:t}=e,[n,r]=S.useReducer(NI,{item:null,axis:{x:null,y:null},useVoronoiInteraction:!1}),o=S.useMemo(()=>A({},n,{dispatch:r}),[n]);return v.jsx(ml.Provider,{value:o,children:t})}function FI(e){if(e===null)return{getBoundingClientRect:()=>({width:0,height:0,x:0,y:0,top:0,right:0,bottom:0,left:0,toJSON:()=>""})};const{x:t,y:n}=e,r={width:0,height:0,x:t,y:n,top:n,right:t,bottom:n,left:t};return{getBoundingClientRect:()=>A({},r,{toJSON:()=>JSON.stringify(r)})}}function zI(){const e=DC(),[t,n]=S.useState(null);return S.useEffect(()=>{const r=e.current;if(r===null)return()=>{};const o=()=>{n(null)},i=s=>{n({x:s.clientX,y:s.clientY,height:s.height,pointerType:s.pointerType})};return r.addEventListener("pointerdown",i),r.addEventListener("pointermove",i),r.addEventListener("pointerup",o),()=>{r.removeEventListener("pointerdown",i),r.removeEventListener("pointermove",i),r.removeEventListener("pointerup",o)}},[e]),t}function VI(e,t){if(e==="item")return t!==null;const n=t.x!==null,r=t.y!==null;return n||r}function HI(e){return e instanceof Date?e.toUTCString():e.toLocaleString()}function WI(e){return Hn("MuiChartsTooltip",e)}const Ax=fr("MuiChartsTooltip",["root","table","row","cell","mark","markCell","labelCell","valueCell"]),t5=qe("div",{name:"MuiChartsTooltip",slot:"Container"})(({theme:e})=>({boxShadow:e.shadows[1],backgroundColor:(e.vars||e).palette.background.paper,color:(e.vars||e).palette.text.primary,transition:e.transitions.create("box-shadow"),borderRadius:e.shape.borderRadius})),n5=qe("table",{name:"MuiChartsTooltip",slot:"Table"})(({theme:e})=>({borderSpacing:0,"& thead td":{borderBottom:`solid ${(e.vars||e).palette.divider} 1px`}})),im=qe("tr",{name:"MuiChartsTooltip",slot:"Row"})(({theme:e})=>({"tr:first-of-type& td":{paddingTop:e.spacing(1)},"tr:last-of-type& td":{paddingBottom:e.spacing(1)}})),mo=qe("td",{name:"MuiChartsTooltip",slot:"Cell"})(({theme:e})=>({verticalAlign:"middle",color:(e.vars||e).palette.text.secondary,[`&.${Ax.labelCell}`]:{paddingLeft:e.spacing(1)},[`&.${Ax.valueCell}`]:{paddingLeft:e.spacing(4),color:(e.vars||e).palette.text.primary},"td:first-of-type&":{paddingLeft:e.spacing(2)},"td:last-of-type&":{paddingRight:e.spacing(2)}})),r5=qe("div",{name:"MuiChartsTooltip",slot:"Mark",shouldForwardProp:e=>JA(e)&&e!=="color"})(({theme:e,color:t})=>({width:e.spacing(1),height:e.spacing(1),borderRadius:"50%",boxShadow:e.shadows[1],backgroundColor:t,borderColor:(e.vars||e).palette.background.paper,border:`solid ${(e.vars||e).palette.background.paper} ${e.spacing(.25)}`,boxSizing:"content-box"}));function UI(e){var c;const{series:t,itemData:n,sx:r,classes:o,getColor:i}=e;if(n.dataIndex===void 0||!t.data[n.dataIndex])return null;const{displayedLabel:s,color:a}=t.type==="pie"?{color:i(n.dataIndex),displayedLabel:xn(t.data[n.dataIndex].label,"tooltip")}:{color:i(n.dataIndex),displayedLabel:xn(t.label,"tooltip")},l=t.type==="pie"?A({},t.data[n.dataIndex],{label:xn(t.data[n.dataIndex].label,"tooltip")}):t.data[n.dataIndex],u=(c=t.valueFormatter)==null?void 0:c.call(t,l,{dataIndex:n.dataIndex});return v.jsx(t5,{sx:r,className:o.root,children:v.jsx(n5,{className:o.table,children:v.jsx("tbody",{children:v.jsxs(im,{className:o.row,children:[v.jsx(mo,{className:Zt(o.markCell,o.cell),children:v.jsx(r5,{color:a,className:o.mark})}),v.jsx(mo,{className:Zt(o.labelCell,o.cell),children:s}),v.jsx(mo,{className:Zt(o.valueCell,o.cell),children:u})]})})})})}function BI(e){var w;const{content:t,itemData:n,sx:r,classes:o,contentProps:i}=e,s=No()[n.type].series[n.seriesId],{xAxis:a,yAxis:l,xAxisIds:u,yAxisIds:c}=Yr(),{zAxis:d,zAxisIds:f}=S.useContext(E0),p=cC(),h=s.xAxisId??s.xAxisKey??u[0],g=s.yAxisId??s.yAxisKey??c[0],b=s.zAxisId??s.zAxisKey??f[0],m=((w=p[s.type])==null?void 0:w.call(p,s,h&&a[h],g&&l[g],b&&d[b]))??(()=>""),y=t??UI,x=On({elementType:y,externalSlotProps:i,additionalProps:{itemData:n,series:s,sx:r,classes:o,getColor:m},ownerState:{}});return v.jsx(y,A({},x))}function GI(e){return Hn("MuiTypography",e)}fr("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const KI=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],YI=e=>{const{align:t,gutterBottom:n,noWrap:r,paragraph:o,variant:i,classes:s}=e,a={root:["root",i,e.align!=="inherit"&&`align${Nn(t)}`,n&&"gutterBottom",r&&"noWrap",o&&"paragraph"]};return Vn(a,GI,s)},qI=qe("span",{name:"MuiTypography",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.variant&&t[n.variant],n.align!=="inherit"&&t[`align${Nn(n.align)}`],n.noWrap&&t.noWrap,n.gutterBottom&&t.gutterBottom,n.paragraph&&t.paragraph]}})(({theme:e,ownerState:t})=>A({margin:0},t.variant==="inherit"&&{font:"inherit"},t.variant!=="inherit"&&e.typography[t.variant],t.align!=="inherit"&&{textAlign:t.align},t.noWrap&&{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},t.gutterBottom&&{marginBottom:"0.35em"},t.paragraph&&{marginBottom:16})),Ox={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},XI={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},QI=e=>XI[e]||e,Cp=S.forwardRef(function(t,n){const r=Ug({props:t,name:"MuiTypography"}),o=QI(r.color),i=Vk(A({},r,{color:o})),{align:s="inherit",className:a,component:l,gutterBottom:u=!1,noWrap:c=!1,paragraph:d=!1,variant:f="body1",variantMapping:p=Ox}=i,h=se(i,KI),g=A({},i,{align:s,color:o,className:a,component:l,gutterBottom:u,noWrap:c,paragraph:d,variant:f,variantMapping:p}),b=l||(d?"p":p[f]||Ox[f])||"span",m=YI(g);return v.jsx(qI,A({as:b,ref:n,ownerState:g,className:Zt(m.root,a)},h))});let Rx;class ZI{constructor(){if(this.types=new Set,Rx)throw new Error("You can only create one instance!");Rx=this.types}addType(t){this.types.add(t)}getTypes(){return this.types}}const df=new ZI;df.addType("bar");df.addType("line");df.addType("scatter");function o5(e){return df.getTypes().has(e)}function JI(e){return o5(e.type)}function e7(e){const{series:t,axis:n,dataIndex:r,axisValue:o,sx:i,classes:s}=e;if(r==null)return null;const a=n.valueFormatter??(l=>n.scaleType==="utc"?HI(l):l.toLocaleString());return v.jsx(t5,{sx:i,className:s.root,children:v.jsxs(n5,{className:s.table,children:[o!=null&&!n.hideTooltip&&v.jsx("thead",{children:v.jsx(im,{children:v.jsx(mo,{colSpan:3,children:v.jsx(Cp,{children:a(o,{location:"tooltip"})})})})}),v.jsx("tbody",{children:t.filter(JI).map(({id:l,label:u,valueFormatter:c,data:d,getColor:f})=>{const p=c(d[r]??null,{dataIndex:r});if(p==null)return null;const h=xn(u,"tooltip"),g=f(r);return v.jsxs(im,{className:s.row,children:[v.jsx(mo,{className:Zt(s.markCell,s.cell),children:g&&v.jsx(r5,{color:g,className:s.mark})}),v.jsx(mo,{className:Zt(s.labelCell,s.cell),children:h?v.jsx(Cp,{children:h}):null}),v.jsx(mo,{className:Zt(s.valueCell,s.cell),children:v.jsx(Cp,{children:p})})]},l)})})]})})}function t7(e){const{content:t,contentProps:n,axisData:r,sx:o,classes:i}=e,s=(r.x&&r.x.index)!==void 0,a=s?r.x&&r.x.index:r.y&&r.y.index,l=s?r.x&&r.x.value:r.y&&r.y.value,{xAxisIds:u,xAxis:c,yAxisIds:d,yAxis:f}=Yr(),{zAxisIds:p,zAxis:h}=S.useContext(E0),g=No(),b=cC(),m=s?u[0]:d[0],y=S.useMemo(()=>{const k=[];return Object.keys(g).filter(o5).forEach($=>{g[$].seriesOrder.forEach(P=>{var _;const R=g[$].series[P],M=R.xAxisId??R.xAxisKey,O=R.yAxisId??R.yAxisKey,E=s?M:O;if(E===void 0||E===m){const T=g[$].series[P],I=M??u[0],L=O??d[0],F=T.zAxisId??T.zAxisKey??p[0],j=((_=b[$])==null?void 0:_.call(b,T,c[I],f[L],F&&h[F]))??(()=>"");k.push(A({},T,{getColor:j}))}})}),k},[m,b,s,g,c,u,f,d,h,p]),x=S.useMemo(()=>s?c[m]:f[m],[m,s,c,f]),w=t??e7,C=On({elementType:w,externalSlotProps:n,additionalProps:{axisData:r,series:y,axis:x,dataIndex:a,axisValue:l,sx:o,classes:i},ownerState:{}});return v.jsx(w,A({},C))}const n7=e=>{const{classes:t}=e;return Vn({root:["root"],table:["table"],row:["row"],cell:["cell"],mark:["mark"],markCell:["markCell"],labelCell:["labelCell"],valueCell:["valueCell"]},WI,t)},r7=qe(LI,{name:"MuiChartsTooltip",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({pointerEvents:"none",zIndex:e.zIndex.modal}));function o7(e){const t=nf({props:e,name:"MuiChartsTooltip"}),{trigger:n="axis",itemContent:r,axisContent:o,slots:i,slotProps:s}=t,a=zI(),{item:l,axis:u}=S.useContext(ml),c=n==="item"?l:u,d=VI(n,c),f=a!==null&&d,p=n7({classes:t.classes}),h=(i==null?void 0:i.popper)??r7,g=On({elementType:h,externalSlotProps:s==null?void 0:s.popper,additionalProps:{open:f,placement:(a==null?void 0:a.pointerType)==="mouse"?"right-start":"top",anchorEl:FI(a),modifiers:[{name:"offset",options:{offset:[0,(a==null?void 0:a.pointerType)==="touch"?40-a.height:0]}}]},ownerState:{}});return n==="none"?null:v.jsx(e5,{children:f&&v.jsx(h,A({},g,{children:n==="item"?v.jsx(BI,{itemData:c,content:(i==null?void 0:i.itemContent)??r,contentProps:s==null?void 0:s.itemContent,sx:{mx:2},classes:p}):v.jsx(t7,{axisData:c,content:(i==null?void 0:i.axisContent)??o,contentProps:s==null?void 0:s.axisContent,sx:{mx:2},classes:p})}))})}const i7=e=>{const{seriesOrder:t,series:n}=e;return t.reduce((r,o)=>{const i=xn(n[o].label,"legend");return i===void 0||r.push({color:n[o].color,label:i,id:o}),r},[])},s7=e=>{const{seriesOrder:t,series:n}=e;return t.reduce((r,o)=>{const i=xn(n[o].label,"legend");return i===void 0||r.push({color:n[o].color,label:i,id:o}),r},[])},a7=e=>{const{seriesOrder:t,series:n}=e;return t.reduce((r,o)=>{const i=xn(n[o].label,"legend");return i===void 0||r.push({color:n[o].color,label:i,id:o}),r},[])},l7=e=>{const{seriesOrder:t,series:n}=e;return t.reduce((r,o)=>(n[o].data.forEach(i=>{const s=xn(i.label,"legend");s!==void 0&&r.push({color:i.color,label:s,id:i.id})}),r),[])},u7={bar:i7,scatter:s7,line:a7,pie:l7};function c7(e){return Object.keys(e).flatMap(t=>{const n=u7[t];return n===void 0?[]:n(e[t])})}function d7(e){return Hn("MuiChartsLegend",e)}fr("MuiChartsLegend",["root","series","mark","label","column","row"]);const f7=["label"];function p7(e,t,n,r,o,i,s){let a=0,l=0,u=0,c=0,d=0;const f=[0];return[e.map(h=>{let{label:g}=h,b=se(h,f7);const m=t(g,n),y=A({},b,{label:g,positionX:a,positionY:l,innerHeight:m.innerHeight,innerWidth:m.innerWidth,outerHeight:m.outerHeight,outerWidth:m.outerWidth,rowIndex:d});return r==="row"&&(a+m.innerWidth>o&&(a=0,l+=f[d],d+=1,f.length<=d&&f.push(0),y.positionX=a,y.positionY=l,y.rowIndex=d),u=Math.max(u,a+m.outerWidth),c=Math.max(c,l+m.outerHeight),f[d]=Math.max(f[d],m.outerHeight),a+=m.outerWidth),r==="column"&&(l+m.innerHeight>i&&(a=u+s,l=0,d=0,y.positionX=a,y.positionY=l,y.rowIndex=d),f.length<=d&&f.push(0),u=Math.max(u,a+m.outerWidth),c=Math.max(c,l+m.outerHeight),d+=1,l+=m.outerHeight),y}).map(h=>A({},h,{positionY:h.positionY+(r==="row"?f[h.rowIndex]/2:h.outerHeight/2)})),u,c]}const h7=["rotate","dominantBaseline"],m7=qe("g",{name:"MuiChartsLegend",slot:"Root",overridesResolver:(e,t)=>t.root})({}),g7=e=>typeof e=="number"?{left:e,right:e,top:e,bottom:e}:A({left:0,right:0,top:0,bottom:0},e);function v7(e){const{hidden:t,position:n,direction:r,itemsToDisplay:o,classes:i,itemMarkWidth:s=20,itemMarkHeight:a=20,markGap:l=5,itemGap:u=10,padding:c=10,labelStyle:d}=e,f=is(),p=f.direction==="rtl",h=pr(),g=S.useMemo(()=>A({},f.typography.subtitle1,{color:"inherit",dominantBaseline:"central",textAnchor:"start",fill:(f.vars||f).palette.text.primary,lineHeight:1},d),[d,f]),b=S.useMemo(()=>g7(c),[c]),m=S.useCallback((O,E={})=>{const _=se(E,h7),T=M0({style:_,needsComputation:!0,text:O}),I={innerWidth:s+l+Math.max(...T.map(L=>L.width)),innerHeight:Math.max(a,T.length*T[0].height)};return A({},I,{outerWidth:I.innerWidth+u,outerHeight:I.innerHeight+u})},[u,a,s,l]),y=h.left+h.width+h.right,x=h.top+h.height+h.bottom,w=y-b.left-b.right,C=x-b.top-b.bottom,[k,$,P]=S.useMemo(()=>p7(o,m,g,r,w,C,u),[o,m,g,r,w,C,u]),R=S.useMemo(()=>{switch(n.horizontal){case"left":return b.left;case"right":return y-b.right-$;default:return(y-$)/2}},[n.horizontal,b.left,b.right,y,$]),M=S.useMemo(()=>{switch(n.vertical){case"top":return b.top;case"bottom":return x-b.bottom-P;default:return(x-P)/2}},[n.vertical,b.top,b.bottom,x,P]);return t?null:v.jsx(e5,{children:v.jsx(m7,{className:i==null?void 0:i.root,children:k.map(({id:O,label:E,color:_,positionX:T,positionY:I})=>v.jsxs("g",{className:i==null?void 0:i.series,transform:`translate(${R+(p?$-T:T)} ${M+I})`,children:[v.jsx("rect",{className:i==null?void 0:i.mark,x:p?-s:0,y:-a/2,width:s,height:a,fill:_}),v.jsx(Na,{style:g,text:E,x:(p?-1:1)*(s+l),y:0})]},O))})})}const y7=["drawingArea","seriesToDisplay"];function x7(e){const{seriesToDisplay:t}=e,n=se(e,y7);return v.jsx(v7,A({},n,{itemsToDisplay:t}))}const b7=e=>{const{classes:t,direction:n}=e;return Vn({root:["root",n],mark:["mark"],label:["label"],series:["series"]},d7,t)},w7={position:{horizontal:"middle",vertical:"top"},direction:"row"};function S7(e){const t=nf({props:A({},w7,e),name:"MuiChartsLegend"}),{position:n,direction:r,hidden:o,slots:i,slotProps:s}=t,a=is(),l=b7(A({},t,{theme:a})),u=pr(),c=No(),d=c7(c),f=(i==null?void 0:i.legend)??x7,p=On({elementType:f,externalSlotProps:s==null?void 0:s.legend,additionalProps:{position:n,direction:r,classes:l,drawingArea:u,series:c,hidden:o,seriesToDisplay:d},ownerState:{}});return v.jsx(f,A({},p))}const k7=10;function jx(e){const{gradientUnits:t,isReversed:n,gradientId:r,size:o,direction:i,scale:s,colorScale:a,colorMap:l}=e,u=[l.min??0,l.max??100],c=u.map(s).filter(h=>h!==void 0);if(c.length!==2)return null;const d=typeof u[0]=="number"?ja(u[0],u[1]):gC(u[0],u[1]),f=Math.round((Math.max(...c)-Math.min(...c))/k7),p=`${u[0]}-${u[1]}-`;return v.jsx("linearGradient",{id:r,x1:"0",x2:"0",y1:"0",y2:"0",[`${i}${n?1:2}`]:t==="objectBoundingBox"?1:`${o}px`,gradientUnits:t??"userSpaceOnUse",children:Array.from({length:f+1},(h,g)=>{const b=d(g/f);if(b===void 0)return null;const m=s(b);if(m===void 0)return null;const y=n?1-m/o:m/o,x=a(b);return x===null?null:v.jsx("stop",{offset:y,stopColor:x,stopOpacity:1},p+g)})})}function lo(e,t){if(typeof e=="number")return e;if(e==="100%")return t;if(e.endsWith("%")){const n=Number.parseFloat(e.slice(0,e.length-1));if(!Number.isNaN(n))return n*t/100}if(e.endsWith("px")){const n=Number.parseFloat(e.slice(0,e.length-2));if(!Number.isNaN(n))return n}throw Error(`MUI X: Received an unknown value "${e}". It should be a number, or a string with a percentage value.`)}function C7(e){return Hn("MuiChartsAxisHighlight",e)}fr("MuiChartsAxisHighlight",["root"]);const $7=()=>Vn({root:["root"]},C7),lu=qe("path",{name:"MuiChartsAxisHighlight",slot:"Root",overridesResolver:(e,t)=>t.root})(({ownerState:e,theme:t})=>A({pointerEvents:"none"},e.axisHighlight==="band"&&{fill:t.palette.mode==="light"?"gray":"white",fillOpacity:.1},e.axisHighlight==="line"&&{strokeDasharray:"5 2",stroke:t.palette.mode==="light"?"#000000":"#ffffff"}));function P7(e){const{x:t,y:n}=e,{xAxisIds:r,xAxis:o,yAxisIds:i,yAxis:s}=Yr(),a=$7(),l=r[0],u=i[0],c=o[l].scale,d=s[u].scale,{axis:f}=S.useContext(ml),p=vx(c),h=vx(d),g=f.x,b=f.y,m=t==="band"&&g!==null&&La(c),y=n==="band"&&b!==null&&La(d);return v.jsxs(S.Fragment,{children:[m&&c(g.value)!==void 0&&v.jsx(lu,{d:`M ${c(g.value)-(c.step()-c.bandwidth())/2} ${d.range()[0]} l ${c.step()} 0 l 0 ${d.range()[1]-d.range()[0]} l ${-c.step()} 0 Z`,className:a.root,ownerState:{axisHighlight:"band"}}),y&&d(b.value)!==void 0&&v.jsx(lu,{d:`M ${c.range()[0]} ${d(b.value)-(d.step()-d.bandwidth())/2} l 0 ${d.step()} l ${c.range()[1]-c.range()[0]} 0 l 0 ${-d.step()} Z`,className:a.root,ownerState:{axisHighlight:"band"}}),t==="line"&&f.x!==null&&v.jsx(lu,{d:`M ${p(f.x.value)} ${d.range()[0]} L ${p(f.x.value)} ${d.range()[1]}`,className:a.root,ownerState:{axisHighlight:"line"}}),n==="line"&&f.y!==null&&v.jsx(lu,{d:`M ${c.range()[0]} ${h(f.y.value)} L ${c.range()[1]} ${h(f.y.value)}`,className:a.root,ownerState:{axisHighlight:"line"}})]})}function T7(e,t){const n=e.createSVGPoint();return n.x=t.clientX,n.y=t.clientY,n.matrixTransform(e.getScreenCTM().inverse())}var D0=vl(),Z=e=>gl(e,D0),F0=vl();Z.write=e=>gl(e,F0);var ff=vl();Z.onStart=e=>gl(e,ff);var z0=vl();Z.onFrame=e=>gl(e,z0);var V0=vl();Z.onFinish=e=>gl(e,V0);var Ci=[];Z.setTimeout=(e,t)=>{const n=Z.now()+t,r=()=>{const i=Ci.findIndex(s=>s.cancel==r);~i&&Ci.splice(i,1),Er-=~i?1:0},o={time:n,handler:e,cancel:r};return Ci.splice(i5(n),0,o),Er+=1,s5(),o};var i5=e=>~(~Ci.findIndex(t=>t.time>e)||~Ci.length);Z.cancel=e=>{ff.delete(e),z0.delete(e),V0.delete(e),D0.delete(e),F0.delete(e)};Z.sync=e=>{sm=!0,Z.batchedUpdates(e),sm=!1};Z.throttle=e=>{let t;function n(){try{e(...t)}finally{t=null}}function r(...o){t=o,Z.onStart(n)}return r.handler=e,r.cancel=()=>{ff.delete(n),t=null},r};var H0=typeof window<"u"?window.requestAnimationFrame:()=>{};Z.use=e=>H0=e;Z.now=typeof performance<"u"?()=>performance.now():Date.now;Z.batchedUpdates=e=>e();Z.catch=console.error;Z.frameLoop="always";Z.advance=()=>{Z.frameLoop!=="demand"?console.warn("Cannot call the manual advancement of rafz whilst frameLoop is not set as demand"):l5()};var Tr=-1,Er=0,sm=!1;function gl(e,t){sm?(t.delete(e),e(0)):(t.add(e),s5())}function s5(){Tr<0&&(Tr=0,Z.frameLoop!=="demand"&&H0(a5))}function E7(){Tr=-1}function a5(){~Tr&&(H0(a5),Z.batchedUpdates(l5))}function l5(){const e=Tr;Tr=Z.now();const t=i5(Tr);if(t&&(u5(Ci.splice(0,t),n=>n.handler()),Er-=t),!Er){E7();return}ff.flush(),D0.flush(e?Math.min(64,Tr-e):16.667),z0.flush(),F0.flush(),V0.flush()}function vl(){let e=new Set,t=e;return{add(n){Er+=t==e&&!e.has(n)?1:0,e.add(n)},delete(n){return Er-=t==e&&e.has(n)?1:0,e.delete(n)},flush(n){t.size&&(e=new Set,Er-=t.size,u5(t,r=>r(n)&&e.add(r)),Er+=e.size,t=e)}}}function u5(e,t){e.forEach(n=>{try{t(n)}catch(r){Z.catch(r)}})}var M7=Object.defineProperty,_7=(e,t)=>{for(var n in t)M7(e,n,{get:t[n],enumerable:!0})},Lt={};_7(Lt,{assign:()=>O7,colors:()=>Nr,createStringInterpolator:()=>U0,skipAnimation:()=>d5,to:()=>c5,willAdvance:()=>B0});function am(){}var A7=(e,t,n)=>Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0}),H={arr:Array.isArray,obj:e=>!!e&&e.constructor.name==="Object",fun:e=>typeof e=="function",str:e=>typeof e=="string",num:e=>typeof e=="number",und:e=>e===void 0};function Kn(e,t){if(H.arr(e)){if(!H.arr(t)||e.length!==t.length)return!1;for(let n=0;ne.forEach(t);function Fn(e,t,n){if(H.arr(e)){for(let r=0;rH.und(e)?[]:H.arr(e)?e:[e];function ea(e,t){if(e.size){const n=Array.from(e);e.clear(),ee(n,t)}}var Ds=(e,...t)=>ea(e,n=>n(...t)),W0=()=>typeof window>"u"||!window.navigator||/ServerSideRendering|^Deno\//.test(window.navigator.userAgent),U0,c5,Nr=null,d5=!1,B0=am,O7=e=>{e.to&&(c5=e.to),e.now&&(Z.now=e.now),e.colors!==void 0&&(Nr=e.colors),e.skipAnimation!=null&&(d5=e.skipAnimation),e.createStringInterpolator&&(U0=e.createStringInterpolator),e.requestAnimationFrame&&Z.use(e.requestAnimationFrame),e.batchedUpdates&&(Z.batchedUpdates=e.batchedUpdates),e.willAdvance&&(B0=e.willAdvance),e.frameLoop&&(Z.frameLoop=e.frameLoop)},ta=new Set,Kt=[],$p=[],Fc=0,pf={get idle(){return!ta.size&&!Kt.length},start(e){Fc>e.priority?(ta.add(e),Z.onStart(R7)):(f5(e),Z(lm))},advance:lm,sort(e){if(Fc)Z.onFrame(()=>pf.sort(e));else{const t=Kt.indexOf(e);~t&&(Kt.splice(t,1),p5(e))}},clear(){Kt=[],ta.clear()}};function R7(){ta.forEach(f5),ta.clear(),Z(lm)}function f5(e){Kt.includes(e)||p5(e)}function p5(e){Kt.splice(j7(Kt,t=>t.priority>e.priority),0,e)}function lm(e){const t=$p;for(let n=0;n0}function j7(e,t){const n=e.findIndex(t);return n<0?e.length:n}var I7=(e,t,n)=>Math.min(Math.max(n,e),t),L7={transparent:0,aliceblue:4042850303,antiquewhite:4209760255,aqua:16777215,aquamarine:2147472639,azure:4043309055,beige:4126530815,bisque:4293182719,black:255,blanchedalmond:4293643775,blue:65535,blueviolet:2318131967,brown:2771004159,burlywood:3736635391,burntsienna:3934150143,cadetblue:1604231423,chartreuse:2147418367,chocolate:3530104575,coral:4286533887,cornflowerblue:1687547391,cornsilk:4294499583,crimson:3692313855,cyan:16777215,darkblue:35839,darkcyan:9145343,darkgoldenrod:3095792639,darkgray:2846468607,darkgreen:6553855,darkgrey:2846468607,darkkhaki:3182914559,darkmagenta:2332068863,darkolivegreen:1433087999,darkorange:4287365375,darkorchid:2570243327,darkred:2332033279,darksalmon:3918953215,darkseagreen:2411499519,darkslateblue:1211993087,darkslategray:793726975,darkslategrey:793726975,darkturquoise:13554175,darkviolet:2483082239,deeppink:4279538687,deepskyblue:12582911,dimgray:1768516095,dimgrey:1768516095,dodgerblue:512819199,firebrick:2988581631,floralwhite:4294635775,forestgreen:579543807,fuchsia:4278255615,gainsboro:3705462015,ghostwhite:4177068031,gold:4292280575,goldenrod:3668254975,gray:2155905279,green:8388863,greenyellow:2919182335,grey:2155905279,honeydew:4043305215,hotpink:4285117695,indianred:3445382399,indigo:1258324735,ivory:4294963455,khaki:4041641215,lavender:3873897215,lavenderblush:4293981695,lawngreen:2096890111,lemonchiffon:4294626815,lightblue:2916673279,lightcoral:4034953471,lightcyan:3774873599,lightgoldenrodyellow:4210742015,lightgray:3553874943,lightgreen:2431553791,lightgrey:3553874943,lightpink:4290167295,lightsalmon:4288707327,lightseagreen:548580095,lightskyblue:2278488831,lightslategray:2005441023,lightslategrey:2005441023,lightsteelblue:2965692159,lightyellow:4294959359,lime:16711935,limegreen:852308735,linen:4210091775,magenta:4278255615,maroon:2147483903,mediumaquamarine:1724754687,mediumblue:52735,mediumorchid:3126187007,mediumpurple:2473647103,mediumseagreen:1018393087,mediumslateblue:2070474495,mediumspringgreen:16423679,mediumturquoise:1221709055,mediumvioletred:3340076543,midnightblue:421097727,mintcream:4127193855,mistyrose:4293190143,moccasin:4293178879,navajowhite:4292783615,navy:33023,oldlace:4260751103,olive:2155872511,olivedrab:1804477439,orange:4289003775,orangered:4282712319,orchid:3664828159,palegoldenrod:4008225535,palegreen:2566625535,paleturquoise:2951671551,palevioletred:3681588223,papayawhip:4293907967,peachpuff:4292524543,peru:3448061951,pink:4290825215,plum:3718307327,powderblue:2967529215,purple:2147516671,rebeccapurple:1714657791,red:4278190335,rosybrown:3163525119,royalblue:1097458175,saddlebrown:2336560127,salmon:4202722047,sandybrown:4104413439,seagreen:780883967,seashell:4294307583,sienna:2689740287,silver:3233857791,skyblue:2278484991,slateblue:1784335871,slategray:1887473919,slategrey:1887473919,snow:4294638335,springgreen:16744447,steelblue:1182971135,tan:3535047935,teal:8421631,thistle:3636451583,tomato:4284696575,turquoise:1088475391,violet:4001558271,wheat:4125012991,white:4294967295,whitesmoke:4126537215,yellow:4294902015,yellowgreen:2597139199},gn="[-+]?\\d*\\.?\\d+",zc=gn+"%";function hf(...e){return"\\(\\s*("+e.join(")\\s*,\\s*(")+")\\s*\\)"}var N7=new RegExp("rgb"+hf(gn,gn,gn)),D7=new RegExp("rgba"+hf(gn,gn,gn,gn)),F7=new RegExp("hsl"+hf(gn,zc,zc)),z7=new RegExp("hsla"+hf(gn,zc,zc,gn)),V7=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,H7=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,W7=/^#([0-9a-fA-F]{6})$/,U7=/^#([0-9a-fA-F]{8})$/;function B7(e){let t;return typeof e=="number"?e>>>0===e&&e>=0&&e<=4294967295?e:null:(t=W7.exec(e))?parseInt(t[1]+"ff",16)>>>0:Nr&&Nr[e]!==void 0?Nr[e]:(t=N7.exec(e))?(Yo(t[1])<<24|Yo(t[2])<<16|Yo(t[3])<<8|255)>>>0:(t=D7.exec(e))?(Yo(t[1])<<24|Yo(t[2])<<16|Yo(t[3])<<8|Nx(t[4]))>>>0:(t=V7.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+"ff",16)>>>0:(t=U7.exec(e))?parseInt(t[1],16)>>>0:(t=H7.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+t[4]+t[4],16)>>>0:(t=F7.exec(e))?(Ix(Lx(t[1]),uu(t[2]),uu(t[3]))|255)>>>0:(t=z7.exec(e))?(Ix(Lx(t[1]),uu(t[2]),uu(t[3]))|Nx(t[4]))>>>0:null}function Pp(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 Ix(e,t,n){const r=n<.5?n*(1+t):n+t-n*t,o=2*n-r,i=Pp(o,r,e+1/3),s=Pp(o,r,e),a=Pp(o,r,e-1/3);return Math.round(i*255)<<24|Math.round(s*255)<<16|Math.round(a*255)<<8}function Yo(e){const t=parseInt(e,10);return t<0?0:t>255?255:t}function Lx(e){return(parseFloat(e)%360+360)%360/360}function Nx(e){const t=parseFloat(e);return t<0?0:t>1?255:Math.round(t*255)}function uu(e){const t=parseFloat(e);return t<0?0:t>100?1:t/100}function Dx(e){let t=B7(e);if(t===null)return e;t=t||0;const n=(t&4278190080)>>>24,r=(t&16711680)>>>16,o=(t&65280)>>>8,i=(t&255)/255;return`rgba(${n}, ${r}, ${o}, ${i})`}var za=(e,t,n)=>{if(H.fun(e))return e;if(H.arr(e))return za({range:e,output:t,extrapolate:n});if(H.str(e.output[0]))return U0(e);const r=e,o=r.output,i=r.range||[0,1],s=r.extrapolateLeft||r.extrapolate||"extend",a=r.extrapolateRight||r.extrapolate||"extend",l=r.easing||(u=>u);return u=>{const c=K7(u,i);return G7(u,i[c],i[c+1],o[c],o[c+1],l,s,a,r.map)}};function G7(e,t,n,r,o,i,s,a,l){let u=l?l(e):e;if(un){if(a==="identity")return u;a==="clamp"&&(u=n)}return r===o?r:t===n?e<=t?r:o:(t===-1/0?u=-u:n===1/0?u=u-t:u=(u-t)/(n-t),u=i(u),r===-1/0?u=-u:o===1/0?u=u+r:u=u*(o-r)+r,u)}function K7(e,t){for(var n=1;n=e);++n);return n-1}var Y7=(e,t="end")=>n=>{n=t==="end"?Math.min(n,.999):Math.max(n,.001);const r=n*e,o=t==="end"?Math.floor(r):Math.ceil(r);return I7(0,1,o/e)},Vc=1.70158,cu=Vc*1.525,Fx=Vc+1,zx=2*Math.PI/3,Vx=2*Math.PI/4.5,du=e=>e<1/2.75?7.5625*e*e:e<2/2.75?7.5625*(e-=1.5/2.75)*e+.75:e<2.5/2.75?7.5625*(e-=2.25/2.75)*e+.9375:7.5625*(e-=2.625/2.75)*e+.984375,q7={linear:e=>e,easeInQuad:e=>e*e,easeOutQuad:e=>1-(1-e)*(1-e),easeInOutQuad:e=>e<.5?2*e*e:1-Math.pow(-2*e+2,2)/2,easeInCubic:e=>e*e*e,easeOutCubic:e=>1-Math.pow(1-e,3),easeInOutCubic:e=>e<.5?4*e*e*e:1-Math.pow(-2*e+2,3)/2,easeInQuart:e=>e*e*e*e,easeOutQuart:e=>1-Math.pow(1-e,4),easeInOutQuart:e=>e<.5?8*e*e*e*e:1-Math.pow(-2*e+2,4)/2,easeInQuint:e=>e*e*e*e*e,easeOutQuint:e=>1-Math.pow(1-e,5),easeInOutQuint:e=>e<.5?16*e*e*e*e*e:1-Math.pow(-2*e+2,5)/2,easeInSine:e=>1-Math.cos(e*Math.PI/2),easeOutSine:e=>Math.sin(e*Math.PI/2),easeInOutSine:e=>-(Math.cos(Math.PI*e)-1)/2,easeInExpo:e=>e===0?0:Math.pow(2,10*e-10),easeOutExpo:e=>e===1?1:1-Math.pow(2,-10*e),easeInOutExpo:e=>e===0?0:e===1?1:e<.5?Math.pow(2,20*e-10)/2:(2-Math.pow(2,-20*e+10))/2,easeInCirc:e=>1-Math.sqrt(1-Math.pow(e,2)),easeOutCirc:e=>Math.sqrt(1-Math.pow(e-1,2)),easeInOutCirc:e=>e<.5?(1-Math.sqrt(1-Math.pow(2*e,2)))/2:(Math.sqrt(1-Math.pow(-2*e+2,2))+1)/2,easeInBack:e=>Fx*e*e*e-Vc*e*e,easeOutBack:e=>1+Fx*Math.pow(e-1,3)+Vc*Math.pow(e-1,2),easeInOutBack:e=>e<.5?Math.pow(2*e,2)*((cu+1)*2*e-cu)/2:(Math.pow(2*e-2,2)*((cu+1)*(e*2-2)+cu)+2)/2,easeInElastic:e=>e===0?0:e===1?1:-Math.pow(2,10*e-10)*Math.sin((e*10-10.75)*zx),easeOutElastic:e=>e===0?0:e===1?1:Math.pow(2,-10*e)*Math.sin((e*10-.75)*zx)+1,easeInOutElastic:e=>e===0?0:e===1?1:e<.5?-(Math.pow(2,20*e-10)*Math.sin((20*e-11.125)*Vx))/2:Math.pow(2,-20*e+10)*Math.sin((20*e-11.125)*Vx)/2+1,easeInBounce:e=>1-du(1-e),easeOutBounce:du,easeInOutBounce:e=>e<.5?(1-du(1-2*e))/2:(1+du(2*e-1))/2,steps:Y7},Va=Symbol.for("FluidValue.get"),Ki=Symbol.for("FluidValue.observers"),Ut=e=>!!(e&&e[Va]),vt=e=>e&&e[Va]?e[Va]():e,Hx=e=>e[Ki]||null;function X7(e,t){e.eventObserved?e.eventObserved(t):e(t)}function Ha(e,t){const n=e[Ki];n&&n.forEach(r=>{X7(r,t)})}var h5=class{constructor(e){if(!e&&!(e=this.get))throw Error("Unknown getter");Q7(this,e)}},Q7=(e,t)=>m5(e,Va,t);function ss(e,t){if(e[Va]){let n=e[Ki];n||m5(e,Ki,n=new Set),n.has(t)||(n.add(t),e.observerAdded&&e.observerAdded(n.size,t))}return t}function Wa(e,t){const n=e[Ki];if(n&&n.has(t)){const r=n.size-1;r?n.delete(t):e[Ki]=null,e.observerRemoved&&e.observerRemoved(r,t)}}var m5=(e,t,n)=>Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0}),Gu=/[+\-]?(?:0|[1-9]\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,Z7=/(#(?:[0-9a-f]{2}){2,4}|(#[0-9a-f]{3})|(rgb|hsl)a?\((-?\d+%?[,\s]+){2,3}\s*[\d\.]+%?\))/gi,Wx=new RegExp(`(${Gu.source})(%|[a-z]+)`,"i"),J7=/rgba\(([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+)\)/gi,mf=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/,g5=e=>{const[t,n]=eL(e);if(!t||W0())return e;const r=window.getComputedStyle(document.documentElement).getPropertyValue(t);if(r)return r.trim();if(n&&n.startsWith("--")){const o=window.getComputedStyle(document.documentElement).getPropertyValue(n);return o||e}else{if(n&&mf.test(n))return g5(n);if(n)return n}return e},eL=e=>{const t=mf.exec(e);if(!t)return[,];const[,n,r]=t;return[n,r]},Tp,tL=(e,t,n,r,o)=>`rgba(${Math.round(t)}, ${Math.round(n)}, ${Math.round(r)}, ${o})`,v5=e=>{Tp||(Tp=Nr?new RegExp(`(${Object.keys(Nr).join("|")})(?!\\w)`,"g"):/^\b$/);const t=e.output.map(i=>vt(i).replace(mf,g5).replace(Z7,Dx).replace(Tp,Dx)),n=t.map(i=>i.match(Gu).map(Number)),o=n[0].map((i,s)=>n.map(a=>{if(!(s in a))throw Error('The arity of each "output" value must be equal');return a[s]})).map(i=>za({...e,output:i}));return i=>{var l;const s=!Wx.test(t[0])&&((l=t.find(u=>Wx.test(u)))==null?void 0:l.replace(Gu,""));let a=0;return t[0].replace(Gu,()=>`${o[a++](i)}${s||""}`).replace(J7,tL)}},G0="react-spring: ",y5=e=>{const t=e;let n=!1;if(typeof t!="function")throw new TypeError(`${G0}once requires a function parameter`);return(...r)=>{n||(t(...r),n=!0)}},nL=y5(console.warn);function rL(){nL(`${G0}The "interpolate" function is deprecated in v9 (use "to" instead)`)}var oL=y5(console.warn);function iL(){oL(`${G0}Directly calling start instead of using the api object is deprecated in v9 (use ".start" instead), this will be removed in later 0.X.0 versions`)}function gf(e){return H.str(e)&&(e[0]=="#"||/\d/.test(e)||!W0()&&mf.test(e)||e in(Nr||{}))}var go=W0()?S.useEffect:S.useLayoutEffect,sL=()=>{const e=S.useRef(!1);return go(()=>(e.current=!0,()=>{e.current=!1}),[]),e};function x5(){const e=S.useState()[1],t=sL();return()=>{t.current&&e(Math.random())}}function aL(e,t){const[n]=S.useState(()=>({inputs:t,result:e()})),r=S.useRef(),o=r.current;let i=o;return i?t&&i.inputs&&lL(t,i.inputs)||(i={inputs:t,result:e()}):i=n,S.useEffect(()=>{r.current=i,o==n&&(n.inputs=n.result=void 0)},[i]),i.result}function lL(e,t){if(e.length!==t.length)return!1;for(let n=0;nS.useEffect(e,uL),uL=[];function cL(e){const t=S.useRef();return S.useEffect(()=>{t.current=e}),t.current}var Ua=Symbol.for("Animated:node"),dL=e=>!!e&&e[Ua]===e,Cn=e=>e&&e[Ua],K0=(e,t)=>A7(e,Ua,t),vf=e=>e&&e[Ua]&&e[Ua].getPayload(),w5=class{constructor(){K0(this,this)}getPayload(){return this.payload||[]}},yl=class extends w5{constructor(e){super(),this._value=e,this.done=!0,this.durationProgress=0,H.num(this._value)&&(this.lastPosition=this._value)}static create(e){return new yl(e)}getPayload(){return[this]}getValue(){return this._value}setValue(e,t){return H.num(e)&&(this.lastPosition=e,t&&(e=Math.round(e/t)*t,this.done&&(this.lastPosition=e))),this._value===e?!1:(this._value=e,!0)}reset(){const{done:e}=this;this.done=!1,H.num(this._value)&&(this.elapsedTime=0,this.durationProgress=0,this.lastPosition=this._value,e&&(this.lastVelocity=null),this.v0=null)}},Ba=class extends yl{constructor(e){super(0),this._string=null,this._toString=za({output:[e,e]})}static create(e){return new Ba(e)}getValue(){const e=this._string;return e??(this._string=this._toString(this._value))}setValue(e){if(H.str(e)){if(e==this._string)return!1;this._string=e,this._value=1}else if(super.setValue(e))this._string=null;else return!1;return!0}reset(e){e&&(this._toString=za({output:[this.getValue(),e]})),this._value=0,super.reset()}},Hc={dependencies:null},yf=class extends w5{constructor(e){super(),this.source=e,this.setValue(e)}getValue(e){const t={};return Fn(this.source,(n,r)=>{dL(n)?t[r]=n.getValue(e):Ut(n)?t[r]=vt(n):e||(t[r]=n)}),t}setValue(e){this.source=e,this.payload=this._makePayload(e)}reset(){this.payload&&ee(this.payload,e=>e.reset())}_makePayload(e){if(e){const t=new Set;return Fn(e,this._addToPayload,t),Array.from(t)}}_addToPayload(e){Hc.dependencies&&Ut(e)&&Hc.dependencies.add(e);const t=vf(e);t&&ee(t,n=>this.add(n))}},S5=class extends yf{constructor(e){super(e)}static create(e){return new S5(e)}getValue(){return this.source.map(e=>e.getValue())}setValue(e){const t=this.getPayload();return e.length==t.length?t.map((n,r)=>n.setValue(e[r])).some(Boolean):(super.setValue(e.map(fL)),!0)}};function fL(e){return(gf(e)?Ba:yl).create(e)}function um(e){const t=Cn(e);return t?t.constructor:H.arr(e)?S5:gf(e)?Ba:yl}var Ux=(e,t)=>{const n=!H.fun(e)||e.prototype&&e.prototype.isReactComponent;return S.forwardRef((r,o)=>{const i=S.useRef(null),s=n&&S.useCallback(h=>{i.current=mL(o,h)},[o]),[a,l]=hL(r,t),u=x5(),c=()=>{const h=i.current;if(n&&!h)return;(h?t.applyAnimatedValues(h,a.getValue(!0)):!1)===!1&&u()},d=new pL(c,l),f=S.useRef();go(()=>(f.current=d,ee(l,h=>ss(h,d)),()=>{f.current&&(ee(f.current.deps,h=>Wa(h,f.current)),Z.cancel(f.current.update))})),S.useEffect(c,[]),b5(()=>()=>{const h=f.current;ee(h.deps,g=>Wa(g,h))});const p=t.getComponentProps(a.getValue());return S.createElement(e,{...p,ref:s})})},pL=class{constructor(e,t){this.update=e,this.deps=t}eventObserved(e){e.type=="change"&&Z.write(this.update)}};function hL(e,t){const n=new Set;return Hc.dependencies=n,e.style&&(e={...e,style:t.createAnimatedStyle(e.style)}),e=new yf(e),Hc.dependencies=null,[e,n]}function mL(e,t){return e&&(H.fun(e)?e(t):e.current=t),t}var Bx=Symbol.for("AnimatedComponent"),gL=(e,{applyAnimatedValues:t=()=>!1,createAnimatedStyle:n=o=>new yf(o),getComponentProps:r=o=>o}={})=>{const o={applyAnimatedValues:t,createAnimatedStyle:n,getComponentProps:r},i=s=>{const a=Gx(s)||"Anonymous";return H.str(s)?s=i[s]||(i[s]=Ux(s,o)):s=s[Bx]||(s[Bx]=Ux(s,o)),s.displayName=`Animated(${a})`,s};return Fn(e,(s,a)=>{H.arr(e)&&(a=Gx(s)),i[a]=i(s)}),{animated:i}},Gx=e=>H.str(e)?e:e&&H.str(e.displayName)?e.displayName:H.fun(e)&&e.name||null;function yt(e,...t){return H.fun(e)?e(...t):e}var na=(e,t)=>e===!0||!!(t&&e&&(H.fun(e)?e(t):ct(e).includes(t))),k5=(e,t)=>H.obj(e)?t&&e[t]:e,C5=(e,t)=>e.default===!0?e[t]:e.default?e.default[t]:void 0,vL=e=>e,Y0=(e,t=vL)=>{let n=yL;e.default&&e.default!==!0&&(e=e.default,n=Object.keys(e));const r={};for(const o of n){const i=t(e[o],o);H.und(i)||(r[o]=i)}return r},yL=["config","onProps","onStart","onChange","onPause","onResume","onRest"],xL={config:1,from:1,to:1,ref:1,loop:1,reset:1,pause:1,cancel:1,reverse:1,immediate:1,default:1,delay:1,onProps:1,onStart:1,onChange:1,onPause:1,onResume:1,onRest:1,onResolve:1,items:1,trail:1,sort:1,expires:1,initial:1,enter:1,update:1,leave:1,children:1,onDestroyed:1,keys:1,callId:1,parentId:1};function bL(e){const t={};let n=0;if(Fn(e,(r,o)=>{xL[o]||(t[o]=r,n++)}),n)return t}function q0(e){const t=bL(e);if(t){const n={to:t};return Fn(e,(r,o)=>o in t||(n[o]=r)),n}return{...e}}function Ga(e){return e=vt(e),H.arr(e)?e.map(Ga):gf(e)?Lt.createStringInterpolator({range:[0,1],output:[e,e]})(1):e}function wL(e){for(const t in e)return!0;return!1}function cm(e){return H.fun(e)||H.arr(e)&&H.obj(e[0])}function Kx(e,t){var n;(n=e.ref)==null||n.delete(e),t==null||t.delete(e)}function SL(e,t){var n;t&&e.ref!==t&&((n=e.ref)==null||n.delete(e),t.add(e),e.ref=t)}var kL={default:{tension:170,friction:26},gentle:{tension:120,friction:14},wobbly:{tension:180,friction:12},stiff:{tension:210,friction:20},slow:{tension:280,friction:60},molasses:{tension:280,friction:120}},dm={...kL.default,mass:1,damping:1,easing:q7.linear,clamp:!1},CL=class{constructor(){this.velocity=0,Object.assign(this,dm)}};function $L(e,t,n){n&&(n={...n},Yx(n,t),t={...n,...t}),Yx(e,t),Object.assign(e,t);for(const s in dm)e[s]==null&&(e[s]=dm[s]);let{frequency:r,damping:o}=e;const{mass:i}=e;return H.und(r)||(r<.01&&(r=.01),o<0&&(o=0),e.tension=Math.pow(2*Math.PI/r,2)*i,e.friction=4*Math.PI*o*i/r),e}function Yx(e,t){if(!H.und(t.decay))e.duration=void 0;else{const n=!H.und(t.tension)||!H.und(t.friction);(n||!H.und(t.frequency)||!H.und(t.damping)||!H.und(t.mass))&&(e.duration=void 0,e.decay=void 0),n&&(e.frequency=void 0)}}var qx=[],PL=class{constructor(){this.changed=!1,this.values=qx,this.toValues=null,this.fromValues=qx,this.config=new CL,this.immediate=!1}};function $5(e,{key:t,props:n,defaultProps:r,state:o,actions:i}){return new Promise((s,a)=>{let l,u,c=na(n.cancel??(r==null?void 0:r.cancel),t);if(c)p();else{H.und(n.pause)||(o.paused=na(n.pause,t));let h=r==null?void 0:r.pause;h!==!0&&(h=o.paused||na(h,t)),l=yt(n.delay||0,t),h?(o.resumeQueue.add(f),i.pause()):(i.resume(),f())}function d(){o.resumeQueue.add(f),o.timeouts.delete(u),u.cancel(),l=u.time-Z.now()}function f(){l>0&&!Lt.skipAnimation?(o.delayed=!0,u=Z.setTimeout(p,l),o.pauseQueue.add(d),o.timeouts.add(u)):p()}function p(){o.delayed&&(o.delayed=!1),o.pauseQueue.delete(d),o.timeouts.delete(u),e<=(o.cancelId||0)&&(c=!0);try{i.start({...n,callId:e,cancel:c},s)}catch(h){a(h)}}})}var X0=(e,t)=>t.length==1?t[0]:t.some(n=>n.cancelled)?$i(e.get()):t.every(n=>n.noop)?P5(e.get()):hn(e.get(),t.every(n=>n.finished)),P5=e=>({value:e,noop:!0,finished:!0,cancelled:!1}),hn=(e,t,n=!1)=>({value:e,finished:t,cancelled:n}),$i=e=>({value:e,cancelled:!0,finished:!1});function T5(e,t,n,r){const{callId:o,parentId:i,onRest:s}=t,{asyncTo:a,promise:l}=n;return!i&&e===a&&!t.reset?l:n.promise=(async()=>{n.asyncId=o,n.asyncTo=e;const u=Y0(t,(b,m)=>m==="onRest"?void 0:b);let c,d;const f=new Promise((b,m)=>(c=b,d=m)),p=b=>{const m=o<=(n.cancelId||0)&&$i(r)||o!==n.asyncId&&hn(r,!1);if(m)throw b.result=m,d(b),b},h=(b,m)=>{const y=new Xx,x=new Qx;return(async()=>{if(Lt.skipAnimation)throw Ka(n),x.result=hn(r,!1),d(x),x;p(y);const w=H.obj(b)?{...b}:{...m,to:b};w.parentId=o,Fn(u,(k,$)=>{H.und(w[$])&&(w[$]=k)});const C=await r.start(w);return p(y),n.paused&&await new Promise(k=>{n.resumeQueue.add(k)}),C})()};let g;if(Lt.skipAnimation)return Ka(n),hn(r,!1);try{let b;H.arr(e)?b=(async m=>{for(const y of m)await h(y)})(e):b=Promise.resolve(e(h,r.stop.bind(r))),await Promise.all([b.then(c),f]),g=hn(r.get(),!0,!1)}catch(b){if(b instanceof Xx)g=b.result;else if(b instanceof Qx)g=b.result;else throw b}finally{o==n.asyncId&&(n.asyncId=i,n.asyncTo=i?a:void 0,n.promise=i?l:void 0)}return H.fun(s)&&Z.batchedUpdates(()=>{s(g,r,r.item)}),g})()}function Ka(e,t){ea(e.timeouts,n=>n.cancel()),e.pauseQueue.clear(),e.resumeQueue.clear(),e.asyncId=e.asyncTo=e.promise=void 0,t&&(e.cancelId=t)}var Xx=class extends Error{constructor(){super("An async animation has been interrupted. You see this error because you forgot to use `await` or `.catch(...)` on its returned promise.")}},Qx=class extends Error{constructor(){super("SkipAnimationSignal")}},fm=e=>e instanceof Q0,TL=1,Q0=class extends h5{constructor(){super(...arguments),this.id=TL++,this._priority=0}get priority(){return this._priority}set priority(e){this._priority!=e&&(this._priority=e,this._onPriorityChange(e))}get(){const e=Cn(this);return e&&e.getValue()}to(...e){return Lt.to(this,e)}interpolate(...e){return rL(),Lt.to(this,e)}toJSON(){return this.get()}observerAdded(e){e==1&&this._attach()}observerRemoved(e){e==0&&this._detach()}_attach(){}_detach(){}_onChange(e,t=!1){Ha(this,{type:"change",parent:this,value:e,idle:t})}_onPriorityChange(e){this.idle||pf.sort(this),Ha(this,{type:"priority",parent:this,priority:e})}},Oo=Symbol.for("SpringPhase"),E5=1,pm=2,hm=4,Ep=e=>(e[Oo]&E5)>0,mr=e=>(e[Oo]&pm)>0,Ts=e=>(e[Oo]&hm)>0,Zx=(e,t)=>t?e[Oo]|=pm|E5:e[Oo]&=~pm,Jx=(e,t)=>t?e[Oo]|=hm:e[Oo]&=~hm,EL=class extends Q0{constructor(e,t){if(super(),this.animation=new PL,this.defaultProps={},this._state={paused:!1,delayed:!1,pauseQueue:new Set,resumeQueue:new Set,timeouts:new Set},this._pendingCalls=new Set,this._lastCallId=0,this._lastToId=0,this._memoizedDuration=0,!H.und(e)||!H.und(t)){const n=H.obj(e)?{...e}:{...t,from:e};H.und(n.default)&&(n.default=!0),this.start(n)}}get idle(){return!(mr(this)||this._state.asyncTo)||Ts(this)}get goal(){return vt(this.animation.to)}get velocity(){const e=Cn(this);return e instanceof yl?e.lastVelocity||0:e.getPayload().map(t=>t.lastVelocity||0)}get hasAnimated(){return Ep(this)}get isAnimating(){return mr(this)}get isPaused(){return Ts(this)}get isDelayed(){return this._state.delayed}advance(e){let t=!0,n=!1;const r=this.animation;let{toValues:o}=r;const{config:i}=r,s=vf(r.to);!s&&Ut(r.to)&&(o=ct(vt(r.to))),r.values.forEach((u,c)=>{if(u.done)return;const d=u.constructor==Ba?1:s?s[c].lastPosition:o[c];let f=r.immediate,p=d;if(!f){if(p=u.lastPosition,i.tension<=0){u.done=!0;return}let h=u.elapsedTime+=e;const g=r.fromValues[c],b=u.v0!=null?u.v0:u.v0=H.arr(i.velocity)?i.velocity[c]:i.velocity;let m;const y=i.precision||(g==d?.005:Math.min(1,Math.abs(d-g)*.001));if(H.und(i.duration))if(i.decay){const x=i.decay===!0?.998:i.decay,w=Math.exp(-(1-x)*h);p=g+b/(1-x)*(1-w),f=Math.abs(u.lastPosition-p)<=y,m=b*w}else{m=u.lastVelocity==null?b:u.lastVelocity;const x=i.restVelocity||y/10,w=i.clamp?0:i.bounce,C=!H.und(w),k=g==d?u.v0>0:gx,!(!$&&(f=Math.abs(d-p)<=y,f)));++O){C&&(P=p==d||p>d==k,P&&(m=-m*w,p=d));const E=-i.tension*1e-6*(p-d),_=-i.friction*.001*m,T=(E+_)/i.mass;m=m+T*R,p=p+m*R}}else{let x=1;i.duration>0&&(this._memoizedDuration!==i.duration&&(this._memoizedDuration=i.duration,u.durationProgress>0&&(u.elapsedTime=i.duration*u.durationProgress,h=u.elapsedTime+=e)),x=(i.progress||0)+h/this._memoizedDuration,x=x>1?1:x<0?0:x,u.durationProgress=x),p=g+i.easing(x)*(d-g),m=(p-u.lastPosition)/e,f=x==1}u.lastVelocity=m,Number.isNaN(p)&&(console.warn("Got NaN while animating:",this),f=!0)}s&&!s[c].done&&(f=!1),f?u.done=!0:t=!1,u.setValue(p,i.round)&&(n=!0)});const a=Cn(this),l=a.getValue();if(t){const u=vt(r.to);(l!==u||n)&&!i.decay?(a.setValue(u),this._onChange(u)):n&&i.decay&&this._onChange(l),this._stop()}else n&&this._onChange(l)}set(e){return Z.batchedUpdates(()=>{this._stop(),this._focus(e),this._set(e)}),this}pause(){this._update({pause:!0})}resume(){this._update({pause:!1})}finish(){if(mr(this)){const{to:e,config:t}=this.animation;Z.batchedUpdates(()=>{this._onStart(),t.decay||this._set(e,!1),this._stop()})}return this}update(e){return(this.queue||(this.queue=[])).push(e),this}start(e,t){let n;return H.und(e)?(n=this.queue||[],this.queue=[]):n=[H.obj(e)?e:{...t,to:e}],Promise.all(n.map(r=>this._update(r))).then(r=>X0(this,r))}stop(e){const{to:t}=this.animation;return this._focus(this.get()),Ka(this._state,e&&this._lastCallId),Z.batchedUpdates(()=>this._stop(t,e)),this}reset(){this._update({reset:!0})}eventObserved(e){e.type=="change"?this._start():e.type=="priority"&&(this.priority=e.priority+1)}_prepareNode(e){const t=this.key||"";let{to:n,from:r}=e;n=H.obj(n)?n[t]:n,(n==null||cm(n))&&(n=void 0),r=H.obj(r)?r[t]:r,r==null&&(r=void 0);const o={to:n,from:r};return Ep(this)||(e.reverse&&([n,r]=[r,n]),r=vt(r),H.und(r)?Cn(this)||this._set(n):this._set(r)),o}_update({...e},t){const{key:n,defaultProps:r}=this;e.default&&Object.assign(r,Y0(e,(s,a)=>/^on/.test(a)?k5(s,n):s)),tb(this,e,"onProps"),Ms(this,"onProps",e,this);const o=this._prepareNode(e);if(Object.isFrozen(this))throw Error("Cannot animate a `SpringValue` object that is frozen. Did you forget to pass your component to `animated(...)` before animating its props?");const i=this._state;return $5(++this._lastCallId,{key:n,props:e,defaultProps:r,state:i,actions:{pause:()=>{Ts(this)||(Jx(this,!0),Ds(i.pauseQueue),Ms(this,"onPause",hn(this,Es(this,this.animation.to)),this))},resume:()=>{Ts(this)&&(Jx(this,!1),mr(this)&&this._resume(),Ds(i.resumeQueue),Ms(this,"onResume",hn(this,Es(this,this.animation.to)),this))},start:this._merge.bind(this,o)}}).then(s=>{if(e.loop&&s.finished&&!(t&&s.noop)){const a=M5(e);if(a)return this._update(a,!0)}return s})}_merge(e,t,n){if(t.cancel)return this.stop(!0),n($i(this));const r=!H.und(e.to),o=!H.und(e.from);if(r||o)if(t.callId>this._lastToId)this._lastToId=t.callId;else return n($i(this));const{key:i,defaultProps:s,animation:a}=this,{to:l,from:u}=a;let{to:c=l,from:d=u}=e;o&&!r&&(!t.default||H.und(c))&&(c=d),t.reverse&&([c,d]=[d,c]);const f=!Kn(d,u);f&&(a.from=d),d=vt(d);const p=!Kn(c,l);p&&this._focus(c);const h=cm(t.to),{config:g}=a,{decay:b,velocity:m}=g;(r||o)&&(g.velocity=0),t.config&&!h&&$L(g,yt(t.config,i),t.config!==s.config?yt(s.config,i):void 0);let y=Cn(this);if(!y||H.und(c))return n(hn(this,!0));const x=H.und(t.reset)?o&&!t.default:!H.und(d)&&na(t.reset,i),w=x?d:this.get(),C=Ga(c),k=H.num(C)||H.arr(C)||gf(C),$=!h&&(!k||na(s.immediate||t.immediate,i));if(p){const O=um(c);if(O!==y.constructor)if($)y=this._set(C);else throw Error(`Cannot animate between ${y.constructor.name} and ${O.name}, as the "to" prop suggests`)}const P=y.constructor;let R=Ut(c),M=!1;if(!R){const O=x||!Ep(this)&&f;(p||O)&&(M=Kn(Ga(w),C),R=!M),(!Kn(a.immediate,$)&&!$||!Kn(g.decay,b)||!Kn(g.velocity,m))&&(R=!0)}if(M&&mr(this)&&(a.changed&&!x?R=!0:R||this._stop(l)),!h&&((R||Ut(l))&&(a.values=y.getPayload(),a.toValues=Ut(c)?null:P==Ba?[1]:ct(C)),a.immediate!=$&&(a.immediate=$,!$&&!x&&this._set(l)),R)){const{onRest:O}=a;ee(ML,_=>tb(this,t,_));const E=hn(this,Es(this,l));Ds(this._pendingCalls,E),this._pendingCalls.add(n),a.changed&&Z.batchedUpdates(()=>{var _;a.changed=!x,O==null||O(E,this),x?yt(s.onRest,E):(_=a.onStart)==null||_.call(a,E,this)})}x&&this._set(w),h?n(T5(t.to,t,this._state,this)):R?this._start():mr(this)&&!p?this._pendingCalls.add(n):n(P5(w))}_focus(e){const t=this.animation;e!==t.to&&(Hx(this)&&this._detach(),t.to=e,Hx(this)&&this._attach())}_attach(){let e=0;const{to:t}=this.animation;Ut(t)&&(ss(t,this),fm(t)&&(e=t.priority+1)),this.priority=e}_detach(){const{to:e}=this.animation;Ut(e)&&Wa(e,this)}_set(e,t=!0){const n=vt(e);if(!H.und(n)){const r=Cn(this);if(!r||!Kn(n,r.getValue())){const o=um(n);!r||r.constructor!=o?K0(this,o.create(n)):r.setValue(n),r&&Z.batchedUpdates(()=>{this._onChange(n,t)})}}return Cn(this)}_onStart(){const e=this.animation;e.changed||(e.changed=!0,Ms(this,"onStart",hn(this,Es(this,e.to)),this))}_onChange(e,t){t||(this._onStart(),yt(this.animation.onChange,e,this)),yt(this.defaultProps.onChange,e,this),super._onChange(e,t)}_start(){const e=this.animation;Cn(this).reset(vt(e.to)),e.immediate||(e.fromValues=e.values.map(t=>t.lastPosition)),mr(this)||(Zx(this,!0),Ts(this)||this._resume())}_resume(){Lt.skipAnimation?this.finish():pf.start(this)}_stop(e,t){if(mr(this)){Zx(this,!1);const n=this.animation;ee(n.values,o=>{o.done=!0}),n.toValues&&(n.onChange=n.onPause=n.onResume=void 0),Ha(this,{type:"idle",parent:this});const r=t?$i(this.get()):hn(this.get(),Es(this,e??n.to));Ds(this._pendingCalls,r),n.changed&&(n.changed=!1,Ms(this,"onRest",r,this))}}};function Es(e,t){const n=Ga(t),r=Ga(e.get());return Kn(r,n)}function M5(e,t=e.loop,n=e.to){const r=yt(t);if(r){const o=r!==!0&&q0(r),i=(o||e).reverse,s=!o||o.reset;return Wc({...e,loop:t,default:!1,pause:void 0,to:!i||cm(n)?n:void 0,from:s?e.from:void 0,reset:s,...o})}}function Wc(e){const{to:t,from:n}=e=q0(e),r=new Set;return H.obj(t)&&eb(t,r),H.obj(n)&&eb(n,r),e.keys=r.size?Array.from(r):null,e}function eb(e,t){Fn(e,(n,r)=>n!=null&&t.add(r))}var ML=["onStart","onRest","onChange","onPause","onResume"];function tb(e,t,n){e.animation[n]=t[n]!==C5(t,n)?k5(t[n],e.key):void 0}function Ms(e,t,...n){var r,o,i,s;(o=(r=e.animation)[t])==null||o.call(r,...n),(s=(i=e.defaultProps)[t])==null||s.call(i,...n)}var _L=["onStart","onChange","onRest"],AL=1,OL=class{constructor(e,t){this.id=AL++,this.springs={},this.queue=[],this._lastAsyncId=0,this._active=new Set,this._changed=new Set,this._started=!1,this._state={paused:!1,pauseQueue:new Set,resumeQueue:new Set,timeouts:new Set},this._events={onStart:new Map,onChange:new Map,onRest:new Map},this._onFrame=this._onFrame.bind(this),t&&(this._flush=t),e&&this.start({default:!0,...e})}get idle(){return!this._state.asyncTo&&Object.values(this.springs).every(e=>e.idle&&!e.isDelayed&&!e.isPaused)}get item(){return this._item}set item(e){this._item=e}get(){const e={};return this.each((t,n)=>e[n]=t.get()),e}set(e){for(const t in e){const n=e[t];H.und(n)||this.springs[t].set(n)}}update(e){return e&&this.queue.push(Wc(e)),this}start(e){let{queue:t}=this;return e?t=ct(e).map(Wc):this.queue=[],this._flush?this._flush(this,t):(R5(this,t),RL(this,t))}stop(e,t){if(e!==!!e&&(t=e),t){const n=this.springs;ee(ct(t),r=>n[r].stop(!!e))}else Ka(this._state,this._lastAsyncId),this.each(n=>n.stop(!!e));return this}pause(e){if(H.und(e))this.start({pause:!0});else{const t=this.springs;ee(ct(e),n=>t[n].pause())}return this}resume(e){if(H.und(e))this.start({pause:!1});else{const t=this.springs;ee(ct(e),n=>t[n].resume())}return this}each(e){Fn(this.springs,e)}_onFrame(){const{onStart:e,onChange:t,onRest:n}=this._events,r=this._active.size>0,o=this._changed.size>0;(r&&!this._started||o&&!this._started)&&(this._started=!0,ea(e,([a,l])=>{l.value=this.get(),a(l,this,this._item)}));const i=!r&&this._started,s=o||i&&n.size?this.get():null;o&&t.size&&ea(t,([a,l])=>{l.value=s,a(l,this,this._item)}),i&&(this._started=!1,ea(n,([a,l])=>{l.value=s,a(l,this,this._item)}))}eventObserved(e){if(e.type=="change")this._changed.add(e.parent),e.idle||this._active.add(e.parent);else if(e.type=="idle")this._active.delete(e.parent);else return;Z.onFrame(this._onFrame)}};function RL(e,t){return Promise.all(t.map(n=>_5(e,n))).then(n=>X0(e,n))}async function _5(e,t,n){const{keys:r,to:o,from:i,loop:s,onRest:a,onResolve:l}=t,u=H.obj(t.default)&&t.default;s&&(t.loop=!1),o===!1&&(t.to=null),i===!1&&(t.from=null);const c=H.arr(o)||H.fun(o)?o:void 0;c?(t.to=void 0,t.onRest=void 0,u&&(u.onRest=void 0)):ee(_L,g=>{const b=t[g];if(H.fun(b)){const m=e._events[g];t[g]=({finished:y,cancelled:x})=>{const w=m.get(b);w?(y||(w.finished=!1),x&&(w.cancelled=!0)):m.set(b,{value:null,finished:y||!1,cancelled:x||!1})},u&&(u[g]=t[g])}});const d=e._state;t.pause===!d.paused?(d.paused=t.pause,Ds(t.pause?d.pauseQueue:d.resumeQueue)):d.paused&&(t.pause=!0);const f=(r||Object.keys(e.springs)).map(g=>e.springs[g].start(t)),p=t.cancel===!0||C5(t,"cancel")===!0;(c||p&&d.asyncId)&&f.push($5(++e._lastAsyncId,{props:t,state:d,actions:{pause:am,resume:am,start(g,b){p?(Ka(d,e._lastAsyncId),b($i(e))):(g.onRest=a,b(T5(c,g,d,e)))}}})),d.paused&&await new Promise(g=>{d.resumeQueue.add(g)});const h=X0(e,await Promise.all(f));if(s&&h.finished&&!(n&&h.noop)){const g=M5(t,s,o);if(g)return R5(e,[g]),_5(e,g,!0)}return l&&Z.batchedUpdates(()=>l(h,e,e.item)),h}function jL(e,t){const n={...e.springs};return t&&ee(ct(t),r=>{H.und(r.keys)&&(r=Wc(r)),H.obj(r.to)||(r={...r,to:void 0}),O5(n,r,o=>A5(o))}),IL(e,n),n}function IL(e,t){Fn(t,(n,r)=>{e.springs[r]||(e.springs[r]=n,ss(n,e))})}function A5(e,t){const n=new EL;return n.key=e,t&&ss(n,t),n}function O5(e,t,n){t.keys&&ee(t.keys,r=>{(e[r]||(e[r]=n(r)))._prepareNode(t)})}function R5(e,t){ee(t,n=>{O5(e.springs,n,r=>A5(r,e))})}var xf=({children:e,...t})=>{const n=S.useContext(Uc),r=t.pause||!!n.pause,o=t.immediate||!!n.immediate;t=aL(()=>({pause:r,immediate:o}),[r,o]);const{Provider:i}=Uc;return S.createElement(i,{value:t},e)},Uc=LL(xf,{});xf.Provider=Uc.Provider;xf.Consumer=Uc.Consumer;function LL(e,t){return Object.assign(e,S.createContext(t)),e.Provider._context=e,e.Consumer._context=e,e}var NL=()=>{const e=[],t=function(r){iL();const o=[];return ee(e,(i,s)=>{if(H.und(r))o.push(i.start());else{const a=n(r,i,s);a&&o.push(i.start(a))}}),o};t.current=e,t.add=function(r){e.includes(r)||e.push(r)},t.delete=function(r){const o=e.indexOf(r);~o&&e.splice(o,1)},t.pause=function(){return ee(e,r=>r.pause(...arguments)),this},t.resume=function(){return ee(e,r=>r.resume(...arguments)),this},t.set=function(r){ee(e,(o,i)=>{const s=H.fun(r)?r(i,o):r;s&&o.set(s)})},t.start=function(r){const o=[];return ee(e,(i,s)=>{if(H.und(r))o.push(i.start());else{const a=this._getProps(r,i,s);a&&o.push(i.start(a))}}),o},t.stop=function(){return ee(e,r=>r.stop(...arguments)),this},t.update=function(r){return ee(e,(o,i)=>o.update(this._getProps(r,o,i))),this};const n=function(r,o,i){return H.fun(r)?r(i,o):r};return t._getProps=n,t};function j5(e,t,n){const r=H.fun(t)&&t,{reset:o,sort:i,trail:s=0,expires:a=!0,exitBeforeEnter:l=!1,onDestroyed:u,ref:c,config:d}=r?r():t,f=S.useMemo(()=>r||arguments.length==3?NL():void 0,[]),p=ct(e),h=[],g=S.useRef(null),b=o?null:g.current;go(()=>{g.current=h}),b5(()=>(ee(h,T=>{f==null||f.add(T.ctrl),T.ctrl.ref=f}),()=>{ee(g.current,T=>{T.expired&&clearTimeout(T.expirationId),Kx(T.ctrl,f),T.ctrl.stop(!0)})}));const m=FL(p,r?r():t,b),y=o&&g.current||[];go(()=>ee(y,({ctrl:T,item:I,key:L})=>{Kx(T,f),yt(u,I,L)}));const x=[];if(b&&ee(b,(T,I)=>{T.expired?(clearTimeout(T.expirationId),y.push(T)):(I=x[I]=m.indexOf(T.key),~I&&(h[I]=T))}),ee(p,(T,I)=>{h[I]||(h[I]={key:m[I],item:T,phase:"mount",ctrl:new OL},h[I].ctrl.item=T)}),x.length){let T=-1;const{leave:I}=r?r():t;ee(x,(L,F)=>{const j=b[F];~L?(T=h.indexOf(j),h[T]={...j,item:p[L]}):I&&h.splice(++T,0,j)})}H.fun(i)&&h.sort((T,I)=>i(T.item,I.item));let w=-s;const C=x5(),k=Y0(t),$=new Map,P=S.useRef(new Map),R=S.useRef(!1);ee(h,(T,I)=>{const L=T.key,F=T.phase,j=r?r():t;let N,V;const G=yt(j.delay||0,L);if(F=="mount")N=j.enter,V="enter";else{const X=m.indexOf(L)<0;if(F!="leave")if(X)N=j.leave,V="leave";else if(N=j.update)V="update";else return;else if(!X)N=j.enter,V="enter";else return}if(N=yt(N,T.item,I),N=H.obj(N)?q0(N):{to:N},!N.config){const X=d||k.config;N.config=yt(X,T.item,I,V)}w+=s;const B={...k,delay:G+w,ref:c,immediate:j.immediate,reset:!1,...N};if(V=="enter"&&H.und(B.from)){const X=r?r():t,oe=H.und(X.initial)||b?X.from:X.initial;B.from=yt(oe,T.item,I)}const{onResolve:q}=B;B.onResolve=X=>{yt(q,X);const oe=g.current,le=oe.find(de=>de.key===L);if(le&&!(X.cancelled&&le.phase!="update")&&le.ctrl.idle){const de=oe.every(W=>W.ctrl.idle);if(le.phase=="leave"){const W=yt(a,le.item);if(W!==!1){const K=W===!0?0:W;if(le.expired=!0,!de&&K>0){K<=2147483647&&(le.expirationId=setTimeout(C,K));return}}}de&&oe.some(W=>W.expired)&&(P.current.delete(le),l&&(R.current=!0),C())}};const J=jL(T.ctrl,B);V==="leave"&&l?P.current.set(T,{phase:V,springs:J,payload:B}):$.set(T,{phase:V,springs:J,payload:B})});const M=S.useContext(xf),O=cL(M),E=M!==O&&wL(M);go(()=>{E&&ee(h,T=>{T.ctrl.start({default:M})})},[M]),ee($,(T,I)=>{if(P.current.size){const L=h.findIndex(F=>F.key===I.key);h.splice(L,1)}}),go(()=>{ee(P.current.size?P.current:$,({phase:T,payload:I},L)=>{const{ctrl:F}=L;L.phase=T,f==null||f.add(F),E&&T=="enter"&&F.start({default:M}),I&&(SL(F,I.ref),(F.ref||f)&&!R.current?F.update(I):(F.start(I),R.current&&(R.current=!1)))})},o?void 0:n);const _=T=>S.createElement(S.Fragment,null,h.map((I,L)=>{const{springs:F}=$.get(I)||I.ctrl,j=T({...F},I.item,I,L);return j&&j.type?S.createElement(j.type,{...j.props,key:H.str(I.key)||H.num(I.key)?I.key:I.ctrl.id,ref:j.ref}):j}));return f?[_,f]:_}var DL=1;function FL(e,{key:t,keys:n=t},r){if(n===null){const o=new Set;return e.map(i=>{const s=r&&r.find(a=>a.item===i&&a.phase!=="leave"&&!o.has(a));return s?(o.add(s),s.key):DL++})}return H.und(n)?e:H.fun(n)?e.map(n):ct(n)}var I5=class extends Q0{constructor(e,t){super(),this.source=e,this.idle=!0,this._active=new Set,this.calc=za(...t);const n=this._get(),r=um(n);K0(this,r.create(n))}advance(e){const t=this._get(),n=this.get();Kn(t,n)||(Cn(this).setValue(t),this._onChange(t,this.idle)),!this.idle&&nb(this._active)&&Mp(this)}_get(){const e=H.arr(this.source)?this.source.map(vt):ct(vt(this.source));return this.calc(...e)}_start(){this.idle&&!nb(this._active)&&(this.idle=!1,ee(vf(this),e=>{e.done=!1}),Lt.skipAnimation?(Z.batchedUpdates(()=>this.advance()),Mp(this)):pf.start(this))}_attach(){let e=1;ee(ct(this.source),t=>{Ut(t)&&ss(t,this),fm(t)&&(t.idle||this._active.add(t),e=Math.max(e,t.priority+1))}),this.priority=e,this._start()}_detach(){ee(ct(this.source),e=>{Ut(e)&&Wa(e,this)}),this._active.clear(),Mp(this)}eventObserved(e){e.type=="change"?e.idle?this.advance():(this._active.add(e.parent),this._start()):e.type=="idle"?this._active.delete(e.parent):e.type=="priority"&&(this.priority=ct(this.source).reduce((t,n)=>Math.max(t,(fm(n)?n.priority:0)+1),0))}};function zL(e){return e.idle!==!1}function nb(e){return!e.size||Array.from(e).every(zL)}function Mp(e){e.idle||(e.idle=!0,ee(vf(e),t=>{t.done=!0}),Ha(e,{type:"idle",parent:e}))}var Bc=(e,...t)=>new I5(e,t);Lt.assign({createStringInterpolator:v5,to:(e,t)=>new I5(e,t)});var L5=/^--/;function VL(e,t){return t==null||typeof t=="boolean"||t===""?"":typeof t=="number"&&t!==0&&!L5.test(e)&&!(ra.hasOwnProperty(e)&&ra[e])?t+"px":(""+t).trim()}var rb={};function HL(e,t){if(!e.nodeType||!e.setAttribute)return!1;const n=e.nodeName==="filter"||e.parentNode&&e.parentNode.nodeName==="filter",{style:r,children:o,scrollTop:i,scrollLeft:s,viewBox:a,...l}=t,u=Object.values(l),c=Object.keys(l).map(d=>n||e.hasAttribute(d)?d:rb[d]||(rb[d]=d.replace(/([A-Z])/g,f=>"-"+f.toLowerCase())));o!==void 0&&(e.textContent=o);for(const d in r)if(r.hasOwnProperty(d)){const f=VL(d,r[d]);L5.test(d)?e.style.setProperty(d,f):e.style[d]=f}c.forEach((d,f)=>{e.setAttribute(d,u[f])}),i!==void 0&&(e.scrollTop=i),s!==void 0&&(e.scrollLeft=s),a!==void 0&&e.setAttribute("viewBox",a)}var ra={animationIterationCount:!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,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},WL=(e,t)=>e+t.charAt(0).toUpperCase()+t.substring(1),UL=["Webkit","Ms","Moz","O"];ra=Object.keys(ra).reduce((e,t)=>(UL.forEach(n=>e[WL(n,t)]=e[t]),e),ra);var BL=/^(matrix|translate|scale|rotate|skew)/,GL=/^(translate)/,KL=/^(rotate|skew)/,_p=(e,t)=>H.num(e)&&e!==0?e+t:e,Ku=(e,t)=>H.arr(e)?e.every(n=>Ku(n,t)):H.num(e)?e===t:parseFloat(e)===t,YL=class extends yf{constructor({x:e,y:t,z:n,...r}){const o=[],i=[];(e||t||n)&&(o.push([e||0,t||0,n||0]),i.push(s=>[`translate3d(${s.map(a=>_p(a,"px")).join(",")})`,Ku(s,0)])),Fn(r,(s,a)=>{if(a==="transform")o.push([s||""]),i.push(l=>[l,l===""]);else if(BL.test(a)){if(delete r[a],H.und(s))return;const l=GL.test(a)?"px":KL.test(a)?"deg":"";o.push(ct(s)),i.push(a==="rotate3d"?([u,c,d,f])=>[`rotate3d(${u},${c},${d},${_p(f,l)})`,Ku(f,0)]:u=>[`${a}(${u.map(c=>_p(c,l)).join(",")})`,Ku(u,a.startsWith("scale")?1:0)])}}),o.length&&(r.transform=new qL(o,i)),super(r)}},qL=class extends h5{constructor(e,t){super(),this.inputs=e,this.transforms=t,this._value=null}get(){return this._value||(this._value=this._get())}_get(){let e="",t=!0;return ee(this.inputs,(n,r)=>{const o=vt(n[0]),[i,s]=this.transforms[r](H.arr(o)?o:n.map(vt));e+=" "+i,t=t&&s}),t?"none":e}observerAdded(e){e==1&&ee(this.inputs,t=>ee(t,n=>Ut(n)&&ss(n,this)))}observerRemoved(e){e==0&&ee(this.inputs,t=>ee(t,n=>Ut(n)&&Wa(n,this)))}eventObserved(e){e.type=="change"&&(this._value=null),Ha(this,e)}},XL=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"];Lt.assign({batchedUpdates:rl.unstable_batchedUpdates,createStringInterpolator:v5,colors:L7});var QL=gL(XL,{applyAnimatedValues:HL,createAnimatedStyle:e=>new YL(e),getComponentProps:({scrollTop:e,scrollLeft:t,...n})=>n}),N5=QL.animated;const ZL=e=>{const{dispatch:t}=S.useContext(ml),{setHighlighted:n,clearHighlighted:r}=c0();return i=>({onPointerEnter:()=>{t({type:"enterItem",data:i}),n({seriesId:i.seriesId,dataIndex:i.dataIndex})},onPointerLeave:u=>{u.currentTarget.releasePointerCapture(u.pointerId),t({type:"leaveItem",data:i}),r()},onPointerDown:u=>{u.currentTarget.hasPointerCapture(u.pointerId)&&u.currentTarget.releasePointerCapture(u.pointerId)}})};function qo(e){return e instanceof Date?e.getTime():e}const JL=e=>{const t=DC(),n=pr(),{xAxis:r,yAxis:o,xAxisIds:i,yAxisIds:s}=Yr(),{dispatch:a}=S.useContext(ml),l=i[0],u=s[0],c=S.useRef({isInChart:!1,x:-1,y:-1});S.useEffect(()=>{const d=t.current;if(d===null||e)return()=>{};function f(b,m){const{scale:y,data:x,reverse:w}=b;if(!La(y)){const k=y.invert(m);if(x===void 0)return{value:k};const $=qo(k),P=x==null?void 0:x.findIndex((R,M)=>{const O=qo(R);return O>$&&(M===0||Math.abs($-O)<=Math.abs($-qo(x[M-1])))||O<=$&&(M===x.length-1||Math.abs(qo(k)-O)=0?x[P]:k,index:P}}const C=y.bandwidth()===0?Math.floor((m-Math.min(...y.range())+y.step()/2)/y.step()):Math.floor((m-Math.min(...y.range()))/y.step());if(C<0||C>=x.length)return null;if(w){const k=x.length-1-C;return{index:k,value:x[k]}}return{index:C,value:x[C]}}const p=()=>{c.current={isInChart:!1,x:-1,y:-1},a({type:"exitChart"})},h=b=>{const m="targetTouches"in b?b.targetTouches[0]:b,y=T7(d,m);if(c.current.x=y.x,c.current.y=y.y,!n.isPointInside(y,b.target)){c.current.isInChart&&(a({type:"exitChart"}),c.current.isInChart=!1);return}c.current.isInChart=!0;const x=f(r[l],y.x),w=f(o[u],y.y);a({type:"updateAxis",data:{x,y:w}})},g=b=>{const m=b.currentTarget;m&&m.hasPointerCapture(b.pointerId)&&m.releasePointerCapture(b.pointerId)};return d.addEventListener("pointerdown",g),d.addEventListener("pointermove",h),d.addEventListener("pointerout",p),d.addEventListener("pointercancel",p),d.addEventListener("pointerleave",p),()=>{d.removeEventListener("pointerdown",g),d.removeEventListener("pointermove",h),d.removeEventListener("pointerout",p),d.removeEventListener("pointercancel",p),d.removeEventListener("pointerleave",p)}},[t,a,u,o,l,r,e,n])},e9=["children","width","height","viewBox","disableAxisListener","className","title","desc"],t9=qe("svg",{name:"MuiChartsSurface",slot:"Root"})(()=>({touchAction:"none"})),n9=S.forwardRef(function(t,n){const{children:r,width:o,height:i,viewBox:s,disableAxisListener:a=!1,className:l,title:u,desc:c}=t,d=se(t,e9),f=A({width:o,height:i,x:0,y:0},s);return JL(a),v.jsxs(t9,A({width:o,height:i,viewBox:`${f.x} ${f.y} ${f.width} ${f.height}`,ref:n,className:l},d,{children:[v.jsx("title",{children:u}),v.jsx("desc",{children:c}),r]}))});function ob(e){const{isReversed:t,gradientId:n,size:r,direction:o,scale:i,colorMap:s}=e;return v.jsx("linearGradient",{id:n,x1:"0",x2:"0",y1:"0",y2:"0",[`${o}${t?1:2}`]:`${r}px`,gradientUnits:"userSpaceOnUse",children:s.thresholds.map((a,l)=>{const u=i(a);if(u===void 0)return null;const c=t?1-u/r:u/r;return v.jsxs(S.Fragment,{children:[v.jsx("stop",{offset:c,stopColor:s.colors[l],stopOpacity:1}),v.jsx("stop",{offset:c,stopColor:s.colors[l+1],stopOpacity:1})]},a.toString()+l)})})}function r9(){const{chartId:e}=S.useContext(uf);return S.useCallback((t,n)=>`${e}-gradient-${n}-${t}`,[e])}function o9(){const{top:e,height:t,bottom:n,left:r,width:o,right:i}=pr(),s=e+t+n,a=r+o+i,l=r9(),{xAxisIds:u,xAxis:c,yAxisIds:d,yAxis:f}=Yr();return v.jsxs("defs",{children:[d.filter(p=>f[p].colorMap!==void 0).map(p=>{const h=l(p,"y"),{colorMap:g,scale:b,colorScale:m,reverse:y}=f[p];return(g==null?void 0:g.type)==="piecewise"?v.jsx(ob,{isReversed:!y,scale:b,colorMap:g,size:s,gradientId:h,direction:"y"},h):(g==null?void 0:g.type)==="continuous"?v.jsx(jx,{isReversed:!y,scale:b,colorScale:m,colorMap:g,size:s,gradientId:h,direction:"y"},h):null}),u.filter(p=>c[p].colorMap!==void 0).map(p=>{const h=l(p,"x"),{colorMap:g,scale:b,reverse:m,colorScale:y}=c[p];return(g==null?void 0:g.type)==="piecewise"?v.jsx(ob,{isReversed:m,scale:b,colorMap:g,size:a,gradientId:h,direction:"x"},h):(g==null?void 0:g.type)==="continuous"?v.jsx(jx,{isReversed:m,scale:b,colorScale:y,colorMap:g,size:a,gradientId:h,direction:"x"},h):null})]})}const ib=(e,t)=>{const n=t==="x"?Xk:WA;return[...(e==null?void 0:e.map((r,o)=>A({id:`defaultized-${t}-axis-${o}`},r)))??[],...e===void 0||e.findIndex(({id:r})=>r===n)===-1?[{id:n,scaleType:"linear"}]:[]]},i9=(e,t)=>{const n=S.useMemo(()=>ib(e,"x"),[e]),r=S.useMemo(()=>ib(t,"y"),[t]);return[n,r]},s9=()=>{go(()=>{var n;if(!window.matchMedia)return Lt.assign({skipAnimation:!0}),()=>{};const e=window.matchMedia("(prefers-reduced-motion)"),t=r=>{Lt.assign({skipAnimation:r.matches||void 0})};return t(e),(n=e.addEventListener)==null||n.call(e,"change",t),()=>{var r;(r=e.removeEventListener)==null||r.call(e,"change",t)}},[])},a9=["width","height","series","margin","xAxis","yAxis","zAxis","colors","dataset","sx","title","desc","disableAxisListener","highlightedItem","onHighlightChange","plugins","children"],l9=(e,t)=>{const{width:n,height:r,series:o,margin:i,xAxis:s,yAxis:a,zAxis:l,colors:u,dataset:c,sx:d,title:f,desc:p,disableAxisListener:h,highlightedItem:g,onHighlightChange:b,plugins:m,children:y}=e,x=se(e,a9),w=S.useRef(null),C=Li(t,w);s9();const[k,$]=i9(s,a),P={width:n,height:r,margin:i,svgRef:w},R={plugins:m},M={series:o,colors:u,dataset:c},O={xAxis:k,yAxis:$,dataset:c},E={zAxis:l,dataset:c},_={highlightedItem:g,onHighlightChange:b},T=A({},x,{width:n,height:r,ref:C,sx:d,title:f,desc:p,disableAxisListener:h});return{children:y,drawingProviderProps:P,seriesProviderProps:M,cartesianContextProps:O,zAxisContextProps:E,highlightedProviderProps:_,chartsSurfaceProps:T,pluginProviderProps:R,xAxis:k,yAxis:$}},u9=S.forwardRef(function(t,n){const{children:r,drawingProviderProps:o,seriesProviderProps:i,cartesianContextProps:s,zAxisContextProps:a,highlightedProviderProps:l,chartsSurfaceProps:u,pluginProviderProps:c}=l9(t,n);return v.jsx(L8,A({},o,{children:v.jsx(Z6,A({},c,{children:v.jsx(nO,A({},i,{children:v.jsx(K8,A({},s,{children:v.jsx(j8,A({},a,{children:v.jsx(DI,{children:v.jsx(sO,A({},l,{children:v.jsxs(n9,A({},u,{children:[v.jsx(o9,{}),r]}))}))})}))}))}))}))}))}),c9=qe("div",{name:"MuiResponsiveChart",slot:"Container"})(({ownerState:e})=>({width:e.width??"100%",height:e.height??"100%",display:"flex",position:"relative",flexGrow:1,flexDirection:"column",alignItems:"center",justifyContent:"center",overflow:"hidden","&>svg":{width:"100%",height:"100%"}})),d9=(e,t)=>{const n=S.useRef(!1),r=S.useRef(null),[o,i]=S.useState(0),[s,a]=S.useState(0),l=S.useCallback(()=>{const u=r==null?void 0:r.current;if(!u)return;const d=lk(u).getComputedStyle(u),f=Math.floor(parseFloat(d.height))||0,p=Math.floor(parseFloat(d.width))||0;i(p),a(f)},[]);return S.useEffect(()=>{n.current=!0},[]),or(()=>{if(e!==void 0&&t!==void 0)return()=>{};l();const u=r.current;if(typeof ResizeObserver>"u")return()=>{};let c;const d=new ResizeObserver(()=>{c=requestAnimationFrame(()=>{l()})});return u&&d.observe(u),()=>{c&&window.cancelAnimationFrame(c),u&&d.unobserve(u)}},[l,t,e]),{containerRef:r,width:e??o,height:t??s}},f9=["width","height","margin","children","series","colors","dataset","desc","disableAxisListener","highlightedItem","onHighlightChange","plugins","sx","title","viewBox","xAxis","yAxis","zAxis"],p9=(e,t)=>{const{width:n,height:r,margin:o,children:i,series:s,colors:a,dataset:l,desc:u,disableAxisListener:c,highlightedItem:d,onHighlightChange:f,plugins:p,sx:h,title:g,viewBox:b,xAxis:m,yAxis:y,zAxis:x}=e,w=se(e,f9),{containerRef:C,width:k,height:$}=d9(n,r),P=A({},w,{ownerState:{width:n,height:r},ref:C});return{hasIntrinsicSize:k&&$,chartContainerProps:{margin:o,children:i,series:s,colors:a,dataset:l,desc:u,disableAxisListener:c,highlightedItem:d,onHighlightChange:f,plugins:p,sx:h,title:g,viewBox:b,xAxis:m,yAxis:y,zAxis:x,width:k,height:$,ref:t},resizableChartContainerProps:P}},h9=S.forwardRef(function(t,n){const{hasIntrinsicSize:r,chartContainerProps:o,resizableChartContainerProps:i}=p9(t,n);return v.jsx(c9,A({},i,{children:r?v.jsx(u9,A({},o)):null}))}),m9=["message"],g9=qe("text")(({theme:e})=>A({},e.typography.body2,{stroke:"none",fill:e.palette.text.primary,shapeRendering:"crispEdges",textAnchor:"middle",dominantBaseline:"middle"}));function v9(e){const{message:t}=e,n=se(e,m9),{top:r,left:o,height:i,width:s}=pr();return v.jsx(g9,A({x:o+s/2,y:r+i/2},n,{children:t??"Loading data…"}))}const y9=["message"],x9=qe("text")(({theme:e})=>A({},e.typography.body2,{stroke:"none",fill:e.palette.text.primary,shapeRendering:"crispEdges",textAnchor:"middle",dominantBaseline:"middle"}));function b9(e){const{message:t}=e,n=se(e,y9),{top:r,left:o,height:i,width:s}=pr();return v.jsx(x9,A({x:o+s/2,y:r+i/2},n,{children:t??"No data to display"}))}function w9(){const e=No();return Object.values(e).every(t=>{if(!t)return!0;const{series:n,seriesOrder:r}=t;return r.every(o=>n[o].data.length===0)})}function S9(e){var n,r,o,i;const t=w9();if(e.loading){const s=((n=e.slots)==null?void 0:n.loadingOverlay)??v9;return v.jsx(s,A({},(r=e.slotProps)==null?void 0:r.loadingOverlay))}if(t){const s=((o=e.slots)==null?void 0:o.noDataOverlay)??b9;return v.jsx(s,A({},(i=e.slotProps)==null?void 0:i.noDataOverlay))}return null}const k9=["classes","color","cornerRadius","dataIndex","endAngle","id","innerRadius","isFaded","isHighlighted","onClick","outerRadius","paddingAngle","startAngle","highlightScope"];function C9(e){return Hn("MuiPieArc",e)}fr("MuiPieArc",["root","highlighted","faded"]);const $9=e=>{const{classes:t,id:n,isFaded:r,isHighlighted:o}=e,i={root:["root",`series-${n}`,o&&"highlighted",r&&"faded"]};return Vn(i,C9,t)},P9=qe(N5.path,{name:"MuiPieArc",slot:"Root",overridesResolver:(e,t)=>t.arc})(({theme:e})=>({stroke:(e.vars||e).palette.background.paper,strokeWidth:1,strokeLinejoin:"round"}));function T9(e){const{classes:t,color:n,cornerRadius:r,dataIndex:o,endAngle:i,id:s,innerRadius:a,isFaded:l,isHighlighted:u,onClick:c,outerRadius:d,paddingAngle:f,startAngle:p}=e,h=se(e,k9),g={id:s,dataIndex:o,classes:t,color:n,isFaded:l,isHighlighted:u},b=$9(g),m=ZL();return v.jsx(P9,A({d:Bc([p,i,f,a,d,r],(y,x,w,C,k,$)=>rC().cornerRadius($)({padAngle:w,startAngle:y,endAngle:x,innerRadius:C,outerRadius:k})),visibility:Bc([p,i],(y,x)=>y===x?"hidden":"visible"),onClick:c,cursor:c?"pointer":"unset",ownerState:g,className:b.root},h,m({type:"pie",seriesId:s,dataIndex:o})))}const E9={keys:e=>e.id,from:({innerRadius:e,outerRadius:t,cornerRadius:n,startAngle:r,endAngle:o,paddingAngle:i,color:s,isFaded:a})=>({innerRadius:e,outerRadius:(e+t)/2,cornerRadius:n,startAngle:(r+o)/2,endAngle:(r+o)/2,paddingAngle:i,fill:s,opacity:a?.3:1}),leave:({innerRadius:e,startAngle:t,endAngle:n})=>({innerRadius:e,outerRadius:e,startAngle:(t+n)/2,endAngle:(t+n)/2}),enter:({innerRadius:e,outerRadius:t,startAngle:n,endAngle:r})=>({innerRadius:e,outerRadius:t,startAngle:n,endAngle:r}),update:({innerRadius:e,outerRadius:t,cornerRadius:n,startAngle:r,endAngle:o,paddingAngle:i,color:s,isFaded:a})=>({innerRadius:e,outerRadius:t,cornerRadius:n,startAngle:r,endAngle:o,paddingAngle:i,fill:s,opacity:a?.3:1}),config:{tension:120,friction:14,clamp:!0}},M9={keys:e=>e.id,from:({innerRadius:e,outerRadius:t,arcLabelRadius:n,cornerRadius:r,startAngle:o,endAngle:i,paddingAngle:s})=>({innerRadius:e,outerRadius:(e+t)/2,cornerRadius:r,arcLabelRadius:n,startAngle:(o+i)/2,endAngle:(o+i)/2,paddingAngle:s,opacity:0}),leave:({innerRadius:e,startAngle:t,endAngle:n})=>({innerRadius:e,outerRadius:e,arcLabelRadius:e,startAngle:(t+n)/2,endAngle:(t+n)/2,opacity:0}),enter:({innerRadius:e,outerRadius:t,startAngle:n,endAngle:r,arcLabelRadius:o})=>({innerRadius:e,outerRadius:t,startAngle:n,endAngle:r,arcLabelRadius:o,opacity:1}),update:({innerRadius:e,outerRadius:t,cornerRadius:n,startAngle:r,endAngle:o,paddingAngle:i,arcLabelRadius:s})=>({innerRadius:e,outerRadius:t,cornerRadius:n,startAngle:r,endAngle:o,paddingAngle:i,arcLabelRadius:s,opacity:1}),config:{tension:120,friction:14,clamp:!0}};function D5(e){const{id:t,data:n,faded:r,highlighted:o,paddingAngle:i=0,innerRadius:s=0,arcLabelRadius:a,outerRadius:l,cornerRadius:u=0}=e,{isFaded:c,isHighlighted:d}=c0();return S.useMemo(()=>n.map((p,h)=>{const g={seriesId:t,dataIndex:h},b=d(g),m=!b&&c(g),y=A({additionalRadius:0},m&&r||b&&o||{}),x=Math.max(0,Math.PI*(y.paddingAngle??i)/180),w=Math.max(0,y.innerRadius??s),C=Math.max(0,y.outerRadius??l+y.additionalRadius),k=y.cornerRadius??u,$=y.arcLabelRadius??a??(w+C)/2;return A({},p,y,{isFaded:m,isHighlighted:b,paddingAngle:x,innerRadius:w,outerRadius:C,cornerRadius:k,arcLabelRadius:$})}),[u,s,l,i,a,n,r,o,c,d,t])}const _9=["slots","slotProps","innerRadius","outerRadius","cornerRadius","paddingAngle","id","highlighted","faded","data","onItemClick","skipAnimation"],A9=["startAngle","endAngle","paddingAngle","innerRadius","arcLabelRadius","outerRadius","cornerRadius"];function O9(e){const{slots:t,slotProps:n,innerRadius:r=0,outerRadius:o,cornerRadius:i=0,paddingAngle:s=0,id:a,highlighted:l,faded:u={additionalRadius:-5},data:c,onItemClick:d,skipAnimation:f}=e,p=se(e,_9),h=D5({innerRadius:r,outerRadius:o,cornerRadius:i,paddingAngle:s,id:a,highlighted:l,faded:u,data:c}),g=j5(h,A({},E9,{immediate:f})),{highlightScope:b}=c0();if(c.length===0)return null;const m=(t==null?void 0:t.pieArc)??T9;return v.jsx("g",A({},p,{children:g((y,x,w,C)=>{let{startAngle:k,endAngle:$,paddingAngle:P,innerRadius:R,outerRadius:M,cornerRadius:O}=y,E=se(y,A9);return v.jsx(m,A({startAngle:k,endAngle:$,paddingAngle:P,innerRadius:R,outerRadius:M,cornerRadius:O,style:E,id:a,color:x.color,dataIndex:C,highlightScope:b,isFaded:x.isFaded,isHighlighted:x.isHighlighted,onClick:d&&(_=>{d(_,{type:"pie",seriesId:a,dataIndex:C},x)})},n==null?void 0:n.pieArc))})}))}const R9=["id","classes","color","startAngle","endAngle","paddingAngle","arcLabelRadius","innerRadius","outerRadius","cornerRadius","formattedArcLabel","isHighlighted","isFaded","style"];function j9(e){return Hn("MuiPieArcLabel",e)}const I9=fr("MuiPieArcLabel",["root","highlighted","faded"]),L9=e=>{const{classes:t,id:n,isFaded:r,isHighlighted:o}=e,i={root:["root",`series-${n}`,o&&"highlighted",r&&"faded"]};return Vn(i,j9,t)},N9=qe(N5.text,{name:"MuiPieArcLabel",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({fill:(e.vars||e).palette.text.primary,textAnchor:"middle",dominantBaseline:"middle",pointerEvents:"none"})),sb=(e,t)=>(n,r,o,i,s)=>{if(!e)return 0;const[a,l]=rC().cornerRadius(s).centroid({padAngle:o,startAngle:n,endAngle:r,innerRadius:i,outerRadius:i});return t==="x"?a:l};function D9(e){const{id:t,classes:n,color:r,startAngle:o,endAngle:i,paddingAngle:s,arcLabelRadius:a,cornerRadius:l,formattedArcLabel:u,isHighlighted:c,isFaded:d,style:f}=e,p=se(e,R9),g=L9({id:t,classes:n,color:r,isFaded:d,isHighlighted:c});return v.jsx(N9,A({className:g.root},p,{style:A({x:Bc([o,i,s,a,l],sb(u,"x")),y:Bc([o,i,s,a,l],sb(u,"y"))},f),children:u}))}const F9=["arcLabel","arcLabelMinAngle","arcLabelRadius","cornerRadius","data","faded","highlighted","id","innerRadius","outerRadius","paddingAngle","skipAnimation","slotProps","slots"],z9=["startAngle","endAngle","paddingAngle","innerRadius","outerRadius","arcLabelRadius","cornerRadius"],V9=180/Math.PI;function H9(e,t,n){var o;if(!e||(n.endAngle-n.startAngle)*V9{let{startAngle:C,endAngle:k,paddingAngle:$,innerRadius:P,outerRadius:R,arcLabelRadius:M,cornerRadius:O}=x,E=se(x,z9);return v.jsx(y,A({startAngle:C,endAngle:k,paddingAngle:$,innerRadius:P,outerRadius:R,arcLabelRadius:M,cornerRadius:O,style:E,id:l,color:w.color,isFaded:w.isFaded,isHighlighted:w.isHighlighted,formattedArcLabel:H9(t,n,w)},p==null?void 0:p.pieArcLabel))})}))}function ab(e,t){const{height:n,width:r}=t,{cx:o,cy:i}=e,s=Math.min(r,n)/2,a=lo(o??"50%",r),l=lo(i??"50%",n);return{cx:a,cy:l,availableRadius:s}}function U9(e){const{skipAnimation:t,slots:n,slotProps:r,onItemClick:o}=e,i=rO(),{left:s,top:a,width:l,height:u}=S.useContext(uf);if(i===void 0)return null;const{series:c,seriesOrder:d}=i;return v.jsxs("g",{children:[d.map(f=>{const{innerRadius:p,outerRadius:h,cornerRadius:g,paddingAngle:b,data:m,cx:y,cy:x,highlighted:w,faded:C}=c[f],{cx:k,cy:$,availableRadius:P}=ab({cx:y,cy:x},{width:l,height:u}),R=lo(h??P,P),M=lo(p??0,P);return v.jsx("g",{transform:`translate(${s+k}, ${a+$})`,children:v.jsx(O9,{innerRadius:M,outerRadius:R,cornerRadius:g,paddingAngle:b,id:f,data:m,skipAnimation:t,highlighted:w,faded:C,onItemClick:o,slots:n,slotProps:r})},f)}),d.map(f=>{const{innerRadius:p,outerRadius:h,arcLabelRadius:g,cornerRadius:b,paddingAngle:m,arcLabel:y,arcLabelMinAngle:x,data:w,cx:C,cy:k}=c[f],{cx:$,cy:P,availableRadius:R}=ab({cx:C,cy:k},{width:l,height:u}),M=lo(h??R,R),O=lo(p??0,R),E=g===void 0?(M+O)/2:lo(g,R);return v.jsx("g",{transform:`translate(${s+$}, ${a+P})`,children:v.jsx(W9,{innerRadius:O,outerRadius:M??R,arcLabelRadius:E,cornerRadius:b,paddingAngle:m,id:f,data:w,skipAnimation:t,arcLabel:y,arcLabelMinAngle:x,slots:n,slotProps:r})},f)})]})}const B9=()=>is().direction==="rtl",G9=["xAxis","yAxis","series","width","height","margin","colors","sx","tooltip","axisHighlight","skipAnimation","legend","topAxis","leftAxis","rightAxis","bottomAxis","children","slots","slotProps","onItemClick","loading","highlightedItem","onHighlightChange","className"],K9={top:5,bottom:5,left:5,right:100},Y9={top:5,bottom:5,left:100,right:5},q9=S.forwardRef(function(t,n){const{xAxis:r,yAxis:o,series:i,width:s,height:a,margin:l,colors:u,sx:c,tooltip:d={trigger:"item"},axisHighlight:f={x:"none",y:"none"},skipAnimation:p,legend:h,topAxis:g=null,leftAxis:b=null,rightAxis:m=null,bottomAxis:y=null,children:x,slots:w,slotProps:C,onItemClick:k,loading:$,highlightedItem:P,onHighlightChange:R,className:M}=t,O=se(t,G9),E=B9(),_=A({},E?Y9:K9,l),T=A({direction:"column",position:{vertical:"middle",horizontal:E?"left":"right"}},h);return v.jsxs(h9,A({},O,{ref:n,series:i.map(I=>A({type:"pie"},I)),width:s,height:a,margin:_,xAxis:r??[{id:Xk,scaleType:"point",data:[...new Array(Math.max(...i.map(I=>I.data.length)))].map((I,L)=>L)}],yAxis:o,colors:u,sx:c,disableAxisListener:(d==null?void 0:d.trigger)!=="axis"&&(f==null?void 0:f.x)==="none"&&(f==null?void 0:f.y)==="none",highlightedItem:P,onHighlightChange:R,className:M,children:[v.jsx(dj,{topAxis:g,leftAxis:b,rightAxis:m,bottomAxis:y,slots:w,slotProps:C}),v.jsx(U9,{slots:w,slotProps:C,onItemClick:k,skipAnimation:p}),v.jsx(S9,{loading:$,slots:w,slotProps:C}),v.jsx(S7,A({},T,{slots:w,slotProps:C})),v.jsx(P7,A({},f)),!$&&v.jsx(o7,A({},d,{slots:w,slotProps:C})),x]}))});function X9({setInfo:e}){const t=[{id:0,value:33,name:"Software",skills:[{name:"Django",logo:"https://www.svgrepo.com/show/353657/django-icon.svg"},{name:"Python",logo:"https://i.pinimg.com/originals/2f/9c/11/2f9c11f9e55efbf1791f12c06d60729b.jpg"},{name:"Java",logo:"https://cdn4.iconfinder.com/data/icons/logos-and-brands/512/181_Java_logo_logos-512.png"},{name:"React",logo:"https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcRQ-RS3Oeb0xs2q4aJmYZ4FGWnFuPnn4yFNHg&s"},{name:"JavaScript",logo:"https://upload.wikimedia.org/wikipedia/commons/6/6a/JavaScript-logo.png"},{name:"C",logo:"https://cdn.iconscout.com/icon/free/png-256/free-c-58-1175247.png"},{name:"PHP",logo:"https://pngimg.com/uploads/php/small/php_PNG7.png"},{name:"Rust",logo:"https://upload.wikimedia.org/wikipedia/commons/thumb/2/20/Rustacean-orig-noshadow.svg/1200px-Rustacean-orig-noshadow.svg.png"},{name:"Anchor",logo:"https://cryptologos.cc/logos/solana-sol-logo.png"},{name:"TypeScript",logo:"https://cdn-icons-png.flaticon.com/256/919/919832.png"},{name:"Postman",logo:"https://uxwing.com/wp-content/themes/uxwing/download/brands-and-social-media/postman-icon.png"},{name:"SQL",logo:"https://icons.veryicon.com/png/o/application/designer-icon/sql-5.png"},{name:"MongoDB",logo:"https://seeklogo.com/images/M/mongodb-logo-D13D67C930-seeklogo.com.png"},{name:"MySQL",logo:"https://w7.pngwing.com/pngs/841/331/png-transparent-mysql-database-phpmyadmin-postgresql-innodb-mysql-orange-logo-area-thumbnail.png"},{name:"jQuery",logo:"https://cdn.worldvectorlogo.com/logos/jquery-4.svg"},{name:"XAMPP",logo:"https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcTeBr8B8nBG3QP5UIoWaS7xNXhXHrKAkmLsZA&s"},{name:"Bootstrap",logo:"https://cdn-icons-png.flaticon.com/512/5968/5968672.png"},{name:"Flask",logo:"https://cms-assets.tutsplus.com/uploads/users/30/posts/16037/preview_image/flask.png"}]},{id:1,value:33,name:"AI",skills:[{name:"Machine Learning",logo:"https://cdn-icons-png.freepik.com/512/8365/8365406.png"},{name:"Data Visualization",logo:"https://static.vecteezy.com/system/resources/thumbnails/001/187/079/small/chart.png"},{name:"Deep Learning",logo:"https://cdn-icons-png.flaticon.com/512/8637/8637101.png"},{name:"Algorithms",logo:"https://cdn-icons-png.flaticon.com/512/10061/10061724.png"},{name:"numpy",logo:"https://user-images.githubusercontent.com/50221806/86498208-af4bfe00-bd39-11ea-88fa-c747ae0ddd85.png"},{name:"pandas",logo:"https://pandas.pydata.org/static/img/favicon_white.ico"},{name:"matplotlib",logo:"https://pydata.org/wp-content/uploads/2016/07/matplotlib-logo-300.png"},{name:"seaborn",logo:"https://user-images.githubusercontent.com/315810/92159303-30d41100-edfb-11ea-8107-1c5352202571.png"},{name:"scikit-learn",logo:"https://avatars.githubusercontent.com/u/17349883?s=280&v=4"},{name:"Jupyter",logo:"https://raw.githubusercontent.com/jithurjacob/vscode-nbpreviewer/master/images/jupyter.png"}]},{id:2,value:33,name:"DevOps",skills:[{name:"Linux",logo:"https://seeklogo.com/images/L/Linux_Tux-logo-DA252F3C21-seeklogo.com.png"},{name:"Docker",logo:"https://cdn-icons-png.flaticon.com/512/5969/5969124.png"},{name:"Git",logo:"https://git-scm.com/images/logos/downloads/Git-Icon-1788C.png"},{name:"VirtualBox",logo:"https://styles.redditmedia.com/t5_7sqfde/styles/communityIcon_ix7q9wstcxna1.png"},{name:"Nginx",logo:"https://iconape.com/wp-content/png_logo_vector/nginx.png"},{name:"Ansible",logo:"https://docs.ansible.com/ansible/2.9/_static/images/logo_invert.png"},{name:"Wireshark",logo:"https://cdn.icon-icons.com/icons2/1495/PNG/512/wireshark_103123.png"},{name:"Networking",logo:"https://static.vecteezy.com/system/resources/thumbnails/018/923/768/small_2x/timeline-diagram-template-png.png"}]}];return v.jsx("div",{className:"pie-div",children:v.jsx(q9,{colors:["wheat","#ffccff","#ccffff"],series:[{data:t,paddingAngle:5,innerRadius:50,cornerRadius:5,startAngle:0,endAngle:360,arcLabel:n=>`${n.name}`,highlightScope:{faded:"global",highlighted:"item"},faded:{innerRadius:30,additionalRadius:-30,color:"grey"},highlighted:{innerRadius:50,additionalRadius:10}}],sx:{[`& .${I9.root}`]:{fill:"black",fontSize:12,fontWeight:"bold"}},tooltip:{enabled:!1},height:330,onHighlightChange:n=>{n&&e(t[n.dataIndex].skills)}})})}function lb(e){const t={display:"flex",font:"monospace",color:"white",fontSize:"30px",textAlign:"left",fontWeight:"bold"},n={display:"flex",textAlign:"left",font:"monospace",color:"white",fontSize:"15px",opacity:"0.8",padding:"1rem",border:"0.1px solid rgb(100, 100, 100)",height:"auto",borderRadius:"10px",overflow:"visible",zIndex:"-1",marginRight:"35px"},r={display:"flex",flexWrap:"wrap",columnGap:"0px",padding:"0",margin:"0"},o={display:"flex",alignItems:"center",justifyContent:"center",padding:"5px",margin:"5px",borderRadius:"5px",backgroundColor:"rgba(0, 0, 0, 0.5)",color:"white",fontSize:"12px",fontWeight:"bold",width:"auto"},i={skillData:{display:"block",textAlign:"center",font:"monospace",color:"white",fontSize:"15px",margin:"15px 35px 0 0",opacity:"0.8",padding:"1rem",border:"0.1px solid rgb(100, 100, 100)",height:"auto",borderRadius:"10px"}},[s,a]=S.useState([]);return v.jsx(v.Fragment,{children:v.jsxs("div",{className:"skill-container",children:[v.jsxs("div",{style:t,children:[v.jsx("div",{children:"Skills"}),v.jsx("div",{className:"close-btn",onClick:()=>e.setExpanded(!1),children:v.jsx(ul,{})})]}),v.jsxs("div",{style:window.innerWidth<798?i.skillData:n,children:[v.jsx(X9,{setInfo:a}),v.jsx("div",{className:"pie-info",children:v.jsx("div",{style:r,children:s.map((l,u)=>v.jsxs("div",{style:o,children:[l.logo&&v.jsx("img",{src:l.logo,alt:"",style:{width:"20px",height:"20px",marginRight:"5px"}}),l.name]},u))})})]})]})})}function Q9(e){const t={display:"flex",font:"monospace",color:"white",fontSize:"15px",margin:"15px 35px 0 0",opacity:"0.8",textAlign:"left",padding:"1rem",border:"none",height:"auto",borderRadius:"10px"},n={width:"100px",height:"100px",margin:"0 10px 0 0"},r={display:"flex",font:"monospace",fontSize:"20px",textAlign:"left",fontWeight:"bold"},o={display:"flex",font:"monospace",color:"white",fontSize:"15px",textAlign:"left",fontWeight:"bold"};return v.jsxs("div",{className:"achievement-card",style:t,children:[v.jsx("img",{src:e.logo,alt:"badge",style:n}),v.jsxs("div",{children:[v.jsx("div",{style:r,children:e.content.achievement}),v.jsx("div",{style:o,children:e.content.additional}),v.jsx("div",{style:{color:"grey"},children:e.content.year})]})]})}const Z9="/assets/badge-BXfHEwqV.png",J9="/assets/badge2-CzfoDTcJ.png",eN="/assets/badge3-DyI0Y8Uf.png";function tN(e){const t={display:"block",position:"relative",width:"100%",margin:"10px",padding:"10px"},n={display:"flex",font:"monospace",color:"white",fontSize:"30px",textAlign:"left",fontWeight:"bold"},r=[Z9,J9,eN];return v.jsx(v.Fragment,{children:v.jsxs("div",{style:t,children:[v.jsxs("div",{style:n,children:[v.jsx("div",{children:"Achievements"}),v.jsx("div",{className:"close-btn",onClick:()=>e.setExpanded(!1),children:v.jsx(ul,{})})]}),v.jsx("div",{className:"achievements-list",children:e.content.map((o,i)=>v.jsx(Q9,{logo:r[i],content:o},i))})]})})}function nN({certification:e,index:t}){return v.jsxs("div",{className:"card",children:[v.jsx("div",{className:"card__side card__side--front-1",children:v.jsx("div",{className:"certification-card",children:v.jsxs("div",{children:[v.jsx("div",{style:window.innerWidth<798?{fontSize:"12px"}:{fontSize:"16px"},className:"card-content",children:e.certification}),v.jsx("div",{className:"card-content",style:{fontSize:"12px",color:"grey"},children:e.year}),v.jsx("div",{style:window.innerWidth<798?{fontSize:"10px",color:"grey"}:{fontSize:"12px",color:"grey"},children:e.institution})]})},t)}),v.jsx("div",{className:"card-content card__side card__side--back card__side--back-1",children:v.jsx("img",{src:e.image,alt:"certificate",style:{width:"100%",height:"100%"}})})]})}const rN="/assets/cs50x-B0So1Q_L.png",oN="/assets/acm_ml-DS6srYd9.png",iN="/assets/cs50w-ClLToWVo.png",sN="/assets/google_cyber-DZDomvYC.png",aN="/assets/nptel_python-ScttXPRu.png";function lN(e){const t={display:"block",font:"`Times New Roman`, `serif`",position:"relative",width:"100%",margin:"10px",padding:"10px"},n={display:"flex",color:"white",fontSize:"30px",textAlign:"left",fontWeight:"bold"},r=window.innerWidth<798?{display:"flex",flexWrap:"wrap",margin:"4px",padding:"0",paddingTop:"10px"}:{display:"flex",flexWrap:"wrap",marginTop:"10px",padding:"0"},o={title:"Certifications",description:"Proofs of sacrifices and dedication",points:["Harvard","Google","IIT Madras","ACM..."],content:[{certification:"CS50W: Web Programming with Python and JavaScript",year:"2024",institution:"Harvard University",image:iN},{certification:"Google Cybersecurity Professional",year:"2024",institution:"Coursera",image:sN},{certification:"Machine Learning using Python",year:"2024",institution:"Association of Computing Machinery",image:oN},{certification:"CS50: Introduction to Computer Science",year:"2023",institution:"Harvard University",image:rN},{certification:"Programming, Data Structures and Algorithms using Python",year:"2024",institution:"IIT Madras (NPTEL)",image:aN}]};return v.jsx(v.Fragment,{children:v.jsxs("div",{style:t,children:[v.jsxs("div",{style:n,children:[v.jsx("div",{children:"Certifications"}),v.jsx("div",{className:"close-btn",onClick:()=>e.setExpanded(!1),children:v.jsx(ul,{})})]}),v.jsx("div",{style:r,className:"certificates-div",children:o.content.map((i,s)=>v.jsx(nN,{index:s,certification:i},s))})]})})}function uN({isExpanded:e,setExpanded:t}){const n={title:"Education",description:"Colleges, Schools, and Degrees",points:["College of Engineering, Trivandrum","University College, TVM","St. Joseph's HSS..."],content:[{ongoing:!0,degree:"Masters in Computer Applications",school:"College of Engineering, Trivandrum",year:"2023 - Present",marks:"CGPA: 9.36"},{ongoing:!1,degree:"Bachelor of Science in Mathematics",school:"University College, Trivandrum",year:"2020 - 2023",marks:"CGPA: 9.63 (Core)"},{ongoing:!1,degree:"Higher Secondary",school:"St. Joseph's Higher Secondary School",year:"2018 - 2020",marks:"Percentage: 94%"}]},r={title:"Skills",description:"Products of consistent learning and practice",points:["Django","React","Python","Java","C..."],content:[]},o={title:"Certifications",description:"Proofs of sacrifices and dedication",points:["Harvard","Google","IIT Madras","ACM..."]},i={title:"Achievements",description:"Seeds of motivation and inspiration",points:["College Topper","IIT JAM","Kerala MCA Entrance..."],content:[{achievement:"College Topper",year:"2023",additional:"University College, Trivandrum"},{achievement:"AIR 1778",year:"2023",additional:"IIT JAM "},{achievement:"Rank 20",year:"2023",additional:"Kerala MCA Entrance"}]},s={overflow:"hidden"},a={display:"block",position:"relative",backgroundColor:"black",height:"100%",width:"100%",borderRadius:"20px",overflow:"hidden"},l={display:"grid",gridTemplateColumns:"1fr 1fr",gridGap:"20px"},u={cards:{...l,display:"block"},expanded:{...a}},[c,d]=S.useState("none"),f=S.useRef(null);S.useEffect(()=>{f.current&&e&&f.current.scrollIntoView({behavior:"smooth",block:"nearest"})},[]);const[p,h]=S.useState(0);return S.useEffect(()=>{const g=setInterval(()=>{h(b=>(b+1)%4)},2e3);return()=>clearInterval(g)},[]),v.jsxs("div",{ref:f,style:s,children:[v.jsxs("div",{className:"expandedDiv",style:e?window.innerWidth<798?u.expanded:a:{display:"none"},onMouseLeave:()=>t(!1),children:[c=="Education"&&v.jsx(HA,{...n,setExpanded:t}),c=="Skills"&&v.jsx(lb,{...lb,setExpanded:t}),c=="Achievements"&&v.jsx(tN,{...i,setExpanded:t}),c=="Certifications"&&v.jsx(lN,{setExpanded:t})]}),v.jsxs("div",{style:window.innerWidth<798?u.cards:l,className:"more-details",children:[v.jsx(Jl,{...n,isExpanded:e,setExpanded:t,setHovering:d,isActive:p===0}),v.jsx(Jl,{...r,isExpanded:e,setExpanded:t,setHovering:d,isActive:p===1}),v.jsx(Jl,{...o,isExpanded:e,setExpanded:t,setHovering:d,isActive:p===(window.innerWidth<798?2:3)}),v.jsx(Jl,{...i,isExpanded:e,setExpanded:t,setHovering:d,isActive:p===(window.innerWidth<798?3:2)})]})]})}function cN({isExpanded:e,setExpanded:t}){const n={flex:4,padding:"1rem",display:"block",backgroundColor:"black",maxWidth:"100%",height:"auto",background:"#000",borderRadius:"0 1.5rem 1.5rem 0",overflow:"hidden",zIndex:2},r={...n,borderRadius:"0 0 1.5rem 1.5rem"};return v.jsx(v.Fragment,{children:v.jsxs("div",{style:window.innerWidth<798?r:n,onMouseLeave:()=>t(!1),children:[v.jsx(kE,{isExpanded:e}),v.jsx(uN,{isExpanded:e,setExpanded:t})]})})}const dN="/assets/dp_cartoon-C0cUQ8Bq.jpeg";function fN(e,t,n){let[r,o]=S.useState(e||t),i=S.useRef(e!==void 0),s=e!==void 0;S.useEffect(()=>{let u=i.current;u!==s&&console.warn(`WARN: A component changed from ${u?"controlled":"uncontrolled"} to ${s?"controlled":"uncontrolled"}.`),i.current=s},[s]);let a=s?e:r,l=S.useCallback((u,...c)=>{let d=(f,...p)=>{n&&(Object.is(a,f)||n(f,...p)),s||(a=f)};typeof u=="function"?(console.warn("We can not support a function callback. See Github Issues for details https://github.com/adobe/react-spectrum/issues/2320"),o((p,...h)=>{let g=u(s?a:p,...h);return d(g,...c),s?p:g})):(s||o(u),d(u,...c))},[s,a,n]);return[a,l]}function mm(e,t=-1/0,n=1/0){return Math.min(Math.max(e,t),n)}function pN(e){let[t,n]=fN(e.isOpen,e.defaultOpen||!1,e.onOpenChange);const r=S.useCallback(()=>{n(!0)},[n]),o=S.useCallback(()=>{n(!1)},[n]),i=S.useCallback(()=>{n(!t)},[n,t]);return{isOpen:t,setOpen:n,open:r,close:o,toggle:i}}const hN=1500,ub=500;let to={},mN=0,_s=!1,Un=null,no=null;function gN(e={}){let{delay:t=hN,closeDelay:n=ub}=e,{isOpen:r,open:o,close:i}=pN(e),s=S.useMemo(()=>`${++mN}`,[]),a=S.useRef(),l=()=>{to[s]=d},u=()=>{for(let p in to)p!==s&&(to[p](!0),delete to[p])},c=()=>{clearTimeout(a.current),a.current=null,u(),l(),_s=!0,o(),Un&&(clearTimeout(Un),Un=null),no&&(clearTimeout(no),no=null)},d=p=>{p||n<=0?(clearTimeout(a.current),a.current=null,i()):a.current||(a.current=setTimeout(()=>{a.current=null,i()},n)),Un&&(clearTimeout(Un),Un=null),_s&&(no&&clearTimeout(no),no=setTimeout(()=>{delete to[s],no=null,_s=!1},Math.max(ub,n)))},f=()=>{u(),l(),!r&&!Un&&!_s?Un=setTimeout(()=>{Un=null,_s=!0,c()},t):r||c()};return S.useEffect(()=>()=>{clearTimeout(a.current),to[s]&&delete to[s]},[s]),{isOpen:r,open:p=>{!p&&t>0&&!a.current?f():c()},close:d}}const Yi=typeof document<"u"?ze.useLayoutEffect:()=>{};function gm(e){const t=S.useRef(null);return Yi(()=>{t.current=e},[e]),S.useCallback((...n)=>{const r=t.current;return r==null?void 0:r(...n)},[])}const Gc={prefix:String(Math.round(Math.random()*1e10)),current:0},F5=ze.createContext(Gc),vN=ze.createContext(!1);let yN=!!(typeof window<"u"&&window.document&&window.document.createElement),Ap=new WeakMap;function xN(e=!1){let t=S.useContext(F5),n=S.useRef(null);if(n.current===null&&!e){var r,o;let i=(o=ze.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED)===null||o===void 0||(r=o.ReactCurrentOwner)===null||r===void 0?void 0:r.current;if(i){let s=Ap.get(i);s==null?Ap.set(i,{id:t.current,state:i.memoizedState}):i.memoizedState!==s.state&&(t.current=s.id,Ap.delete(i))}n.current=++t.current}return n.current}function bN(e){let t=S.useContext(F5);t===Gc&&!yN&&console.warn("When server rendering, you must wrap your application in an to ensure consistent ids are generated between the client and server.");let n=xN(!!e),r=`react-aria${t.prefix}`;return e||`${r}-${n}`}function wN(e){let t=ze.useId(),[n]=S.useState(Z0()),r=n?"react-aria":`react-aria${Gc.prefix}`;return e||`${r}-${t}`}const SN=typeof ze.useId=="function"?wN:bN;function kN(){return!1}function CN(){return!0}function $N(e){return()=>{}}function Z0(){return typeof ze.useSyncExternalStore=="function"?ze.useSyncExternalStore($N,kN,CN):S.useContext(vN)}let PN=!!(typeof window<"u"&&window.document&&window.document.createElement),Kc=new Map;function TN(e){let[t,n]=S.useState(e),r=S.useRef(null),o=SN(t),i=S.useCallback(s=>{r.current=s},[]);return PN&&Kc.set(o,i),Yi(()=>{let s=o;return()=>{Kc.delete(s)}},[o]),S.useEffect(()=>{let s=r.current;s&&(r.current=null,n(s))}),o}function EN(e,t){if(e===t)return e;let n=Kc.get(e);if(n)return n(t),t;let r=Kc.get(t);return r?(r(e),e):t}function MN(...e){return(...t)=>{for(let n of e)typeof n=="function"&&n(...t)}}const xl=e=>{var t;return(t=e==null?void 0:e.ownerDocument)!==null&&t!==void 0?t:document},vm=e=>e&&"window"in e&&e.window===e?e:xl(e).defaultView||window;function vo(...e){let t={...e[0]};for(let n=1;n=65&&o.charCodeAt(2)<=90?t[o]=MN(i,s):(o==="className"||o==="UNSAFE_className")&&typeof i=="string"&&typeof s=="string"?t[o]=Zt(i,s):o==="id"&&i&&s?t.id=EN(i,s):t[o]=s!==void 0?s:i}}return t}const _N=new Set(["id"]),AN=new Set(["aria-label","aria-labelledby","aria-describedby","aria-details"]),ON=new Set(["href","hrefLang","target","rel","download","ping","referrerPolicy"]),RN=/^(data-.*)$/;function jN(e,t={}){let{labelable:n,isLink:r,propNames:o}=t,i={};for(const s in e)Object.prototype.hasOwnProperty.call(e,s)&&(_N.has(s)||n&&AN.has(s)||r&&ON.has(s)||o!=null&&o.has(s)||RN.test(s))&&(i[s]=e[s]);return i}function J0(e){var t;return typeof window>"u"||window.navigator==null?!1:((t=window.navigator.userAgentData)===null||t===void 0?void 0:t.brands.some(n=>e.test(n.brand)))||e.test(window.navigator.userAgent)}function IN(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 LN(){return IN(/^Mac/i)}function NN(){return J0(/AppleWebKit/i)&&!DN()}function DN(){return J0(/Chrome/i)}function FN(){return J0(/Android/i)}function zN(){return typeof window.ResizeObserver<"u"}function VN(e){const{ref:t,onResize:n}=e;S.useEffect(()=>{let r=t==null?void 0:t.current;if(r)if(zN()){const o=new window.ResizeObserver(i=>{i.length&&n()});return o.observe(r),()=>{r&&o.unobserve(r)}}else return window.addEventListener("resize",n,!1),()=>{window.removeEventListener("resize",n,!1)}},[n,t])}function HN(e){return e.mozInputSource===0&&e.isTrusted?!0:FN()&&e.pointerType?e.type==="click"&&e.buttons===1:e.detail===0&&!e.pointerType}let WN=class{isDefaultPrevented(){return this.nativeEvent.defaultPrevented}preventDefault(){this.defaultPrevented=!0,this.nativeEvent.preventDefault()}stopPropagation(){this.nativeEvent.stopPropagation(),this.isPropagationStopped=()=>!0}isPropagationStopped(){return!1}persist(){}constructor(t,n){this.nativeEvent=n,this.target=n.target,this.currentTarget=n.currentTarget,this.relatedTarget=n.relatedTarget,this.bubbles=n.bubbles,this.cancelable=n.cancelable,this.defaultPrevented=n.defaultPrevented,this.eventPhase=n.eventPhase,this.isTrusted=n.isTrusted,this.timeStamp=n.timeStamp,this.type=t}};function UN(e){let t=S.useRef({isFocused:!1,observer:null});Yi(()=>{const r=t.current;return()=>{r.observer&&(r.observer.disconnect(),r.observer=null)}},[]);let n=gm(r=>{e==null||e(r)});return S.useCallback(r=>{if(r.target instanceof HTMLButtonElement||r.target instanceof HTMLInputElement||r.target instanceof HTMLTextAreaElement||r.target instanceof HTMLSelectElement){t.current.isFocused=!0;let o=r.target,i=s=>{t.current.isFocused=!1,o.disabled&&n(new WN("blur",s)),t.current.observer&&(t.current.observer.disconnect(),t.current.observer=null)};o.addEventListener("focusout",i,{once:!0}),t.current.observer=new MutationObserver(()=>{if(t.current.isFocused&&o.disabled){var s;(s=t.current.observer)===null||s===void 0||s.disconnect();let a=o===document.activeElement?null:document.activeElement;o.dispatchEvent(new FocusEvent("blur",{relatedTarget:a})),o.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:a}))}}),t.current.observer.observe(o,{attributes:!0,attributeFilter:["disabled"]})}},[n])}let as=null,BN=new Set,oa=new Map,Ro=!1,ym=!1;function ev(e,t){for(let n of BN)n(e,t)}function GN(e){return!(e.metaKey||!LN()&&e.altKey||e.ctrlKey||e.key==="Control"||e.key==="Shift"||e.key==="Meta")}function Yc(e){Ro=!0,GN(e)&&(as="keyboard",ev("keyboard",e))}function Bt(e){as="pointer",(e.type==="mousedown"||e.type==="pointerdown")&&(Ro=!0,ev("pointer",e))}function z5(e){HN(e)&&(Ro=!0,as="virtual")}function V5(e){e.target===window||e.target===document||(!Ro&&!ym&&(as="virtual",ev("virtual",e)),Ro=!1,ym=!1)}function H5(){Ro=!1,ym=!0}function cb(e){if(typeof window>"u"||oa.get(vm(e)))return;const t=vm(e),n=xl(e);let r=t.HTMLElement.prototype.focus;t.HTMLElement.prototype.focus=function(){Ro=!0,r.apply(this,arguments)},n.addEventListener("keydown",Yc,!0),n.addEventListener("keyup",Yc,!0),n.addEventListener("click",z5,!0),t.addEventListener("focus",V5,!0),t.addEventListener("blur",H5,!1),typeof PointerEvent<"u"?(n.addEventListener("pointerdown",Bt,!0),n.addEventListener("pointermove",Bt,!0),n.addEventListener("pointerup",Bt,!0)):(n.addEventListener("mousedown",Bt,!0),n.addEventListener("mousemove",Bt,!0),n.addEventListener("mouseup",Bt,!0)),t.addEventListener("beforeunload",()=>{W5(e)},{once:!0}),oa.set(t,{focus:r})}const W5=(e,t)=>{const n=vm(e),r=xl(e);t&&r.removeEventListener("DOMContentLoaded",t),oa.has(n)&&(n.HTMLElement.prototype.focus=oa.get(n).focus,r.removeEventListener("keydown",Yc,!0),r.removeEventListener("keyup",Yc,!0),r.removeEventListener("click",z5,!0),n.removeEventListener("focus",V5,!0),n.removeEventListener("blur",H5,!1),typeof PointerEvent<"u"?(r.removeEventListener("pointerdown",Bt,!0),r.removeEventListener("pointermove",Bt,!0),r.removeEventListener("pointerup",Bt,!0)):(r.removeEventListener("mousedown",Bt,!0),r.removeEventListener("mousemove",Bt,!0),r.removeEventListener("mouseup",Bt,!0)),oa.delete(n))};function KN(e){const t=xl(e);let n;return t.readyState!=="loading"?cb(e):(n=()=>{cb(e)},t.addEventListener("DOMContentLoaded",n)),()=>W5(e,n)}typeof document<"u"&&KN();function YN(){return as!=="pointer"}function qN(){return as}function XN(e){let{isDisabled:t,onBlurWithin:n,onFocusWithin:r,onFocusWithinChange:o}=e,i=S.useRef({isFocusWithin:!1}),s=S.useCallback(u=>{i.current.isFocusWithin&&!u.currentTarget.contains(u.relatedTarget)&&(i.current.isFocusWithin=!1,n&&n(u),o&&o(!1))},[n,o,i]),a=UN(s),l=S.useCallback(u=>{!i.current.isFocusWithin&&document.activeElement===u.target&&(r&&r(u),o&&o(!0),i.current.isFocusWithin=!0,a(u))},[r,o,a]);return t?{focusWithinProps:{onFocus:void 0,onBlur:void 0}}:{focusWithinProps:{onFocus:l,onBlur:s}}}let qc=!1,Op=0;function xm(){qc=!0,setTimeout(()=>{qc=!1},50)}function db(e){e.pointerType==="touch"&&xm()}function QN(){if(!(typeof document>"u"))return typeof PointerEvent<"u"?document.addEventListener("pointerup",db):document.addEventListener("touchend",xm),Op++,()=>{Op--,!(Op>0)&&(typeof PointerEvent<"u"?document.removeEventListener("pointerup",db):document.removeEventListener("touchend",xm))}}function U5(e){let{onHoverStart:t,onHoverChange:n,onHoverEnd:r,isDisabled:o}=e,[i,s]=S.useState(!1),a=S.useRef({isHovered:!1,ignoreEmulatedMouseEvents:!1,pointerType:"",target:null}).current;S.useEffect(QN,[]);let{hoverProps:l,triggerHoverEnd:u}=S.useMemo(()=>{let c=(p,h)=>{if(a.pointerType=h,o||h==="touch"||a.isHovered||!p.currentTarget.contains(p.target))return;a.isHovered=!0;let g=p.currentTarget;a.target=g,t&&t({type:"hoverstart",target:g,pointerType:h}),n&&n(!0),s(!0)},d=(p,h)=>{if(a.pointerType="",a.target=null,h==="touch"||!a.isHovered)return;a.isHovered=!1;let g=p.currentTarget;r&&r({type:"hoverend",target:g,pointerType:h}),n&&n(!1),s(!1)},f={};return typeof PointerEvent<"u"?(f.onPointerEnter=p=>{qc&&p.pointerType==="mouse"||c(p,p.pointerType)},f.onPointerLeave=p=>{!o&&p.currentTarget.contains(p.target)&&d(p,p.pointerType)}):(f.onTouchStart=()=>{a.ignoreEmulatedMouseEvents=!0},f.onMouseEnter=p=>{!a.ignoreEmulatedMouseEvents&&!qc&&c(p,"mouse"),a.ignoreEmulatedMouseEvents=!1},f.onMouseLeave=p=>{!o&&p.currentTarget.contains(p.target)&&d(p,"mouse")}),{hoverProps:f,triggerHoverEnd:d}},[t,n,r,o,a]);return S.useEffect(()=>{o&&u({currentTarget:a.target},a.pointerType)},[o]),{hoverProps:l,isHovered:i}}function ZN(e){let{ref:t,onInteractOutside:n,isDisabled:r,onInteractOutsideStart:o}=e,i=S.useRef({isPointerDown:!1,ignoreEmulatedMouseEvents:!1}),s=gm(l=>{n&&fu(l,t)&&(o&&o(l),i.current.isPointerDown=!0)}),a=gm(l=>{n&&n(l)});S.useEffect(()=>{let l=i.current;if(r)return;const u=t.current,c=xl(u);if(typeof PointerEvent<"u"){let d=f=>{l.isPointerDown&&fu(f,t)&&a(f),l.isPointerDown=!1};return c.addEventListener("pointerdown",s,!0),c.addEventListener("pointerup",d,!0),()=>{c.removeEventListener("pointerdown",s,!0),c.removeEventListener("pointerup",d,!0)}}else{let d=p=>{l.ignoreEmulatedMouseEvents?l.ignoreEmulatedMouseEvents=!1:l.isPointerDown&&fu(p,t)&&a(p),l.isPointerDown=!1},f=p=>{l.ignoreEmulatedMouseEvents=!0,l.isPointerDown&&fu(p,t)&&a(p),l.isPointerDown=!1};return c.addEventListener("mousedown",s,!0),c.addEventListener("mouseup",d,!0),c.addEventListener("touchstart",s,!0),c.addEventListener("touchend",f,!0),()=>{c.removeEventListener("mousedown",s,!0),c.removeEventListener("mouseup",d,!0),c.removeEventListener("touchstart",s,!0),c.removeEventListener("touchend",f,!0)}}},[t,r,s,a])}function fu(e,t){if(e.button>0)return!1;if(e.target){const n=e.target.ownerDocument;if(!n||!n.documentElement.contains(e.target)||e.target.closest("[data-react-aria-top-layer]"))return!1}return t.current&&!t.current.contains(e.target)}function JN(e,t){let n=jN(e,{labelable:!0}),{hoverProps:r}=U5({onHoverStart:()=>t==null?void 0:t.open(!0),onHoverEnd:()=>t==null?void 0:t.close()});return{tooltipProps:vo(n,r,{role:"tooltip"})}}const tv=typeof document<"u"?ze.useLayoutEffect:()=>{};function eD(e){const t=S.useRef(null);return tv(()=>{t.current=e},[e]),S.useCallback((...n)=>{const r=t.current;return r==null?void 0:r(...n)},[])}let fb=new Map;function tD(e,t){if(e===t)return e;let n=fb.get(e);if(n)return n(t),t;let r=fb.get(t);return r?(r(e),e):t}function nD(...e){return(...t)=>{for(let n of e)typeof n=="function"&&n(...t)}}const ls=e=>{var t;return(t=e==null?void 0:e.ownerDocument)!==null&&t!==void 0?t:document},bm=e=>e&&"window"in e&&e.window===e?e:ls(e).defaultView||window;function pb(...e){let t={...e[0]};for(let n=1;n=65&&o.charCodeAt(2)<=90?t[o]=nD(i,s):(o==="className"||o==="UNSAFE_className")&&typeof i=="string"&&typeof s=="string"?t[o]=Zt(i,s):o==="id"&&i&&s?t.id=tD(i,s):t[o]=s!==void 0?s:i}}return t}function hb(e){if(rD())e.focus({preventScroll:!0});else{let t=oD(e);e.focus(),iD(t)}}let pu=null;function rD(){if(pu==null){pu=!1;try{document.createElement("div").focus({get preventScroll(){return pu=!0,!0}})}catch{}}return pu}function oD(e){let t=e.parentNode,n=[],r=document.scrollingElement||document.documentElement;for(;t instanceof HTMLElement&&t!==r;)(t.offsetHeight"u"||window.navigator==null?!1:((t=window.navigator.userAgentData)===null||t===void 0?void 0:t.brands.some(n=>e.test(n.brand)))||e.test(window.navigator.userAgent)}function aD(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 B5(e){let t=null;return()=>(t==null&&(t=e()),t)}const lD=B5(function(){return aD(/^Mac/i)}),uD=B5(function(){return sD(/Android/i)});let Jo=new Map,wm=new Set;function mb(){if(typeof window>"u")return;function e(r){return"propertyName"in r}let t=r=>{if(!e(r)||!r.target)return;let o=Jo.get(r.target);o||(o=new Set,Jo.set(r.target,o),r.target.addEventListener("transitioncancel",n,{once:!0})),o.add(r.propertyName)},n=r=>{if(!e(r)||!r.target)return;let o=Jo.get(r.target);if(o&&(o.delete(r.propertyName),o.size===0&&(r.target.removeEventListener("transitioncancel",n),Jo.delete(r.target)),Jo.size===0)){for(let i of wm)i();wm.clear()}};document.body.addEventListener("transitionrun",t),document.body.addEventListener("transitionend",n)}typeof document<"u"&&(document.readyState!=="loading"?mb():document.addEventListener("DOMContentLoaded",mb));function cD(e){requestAnimationFrame(()=>{Jo.size===0?e():wm.add(e)})}function dD(e,t){tv(()=>{if(e&&e.ref&&t)return e.ref.current=t.current,()=>{e.ref&&(e.ref.current=null)}})}function fD(e){return e.mozInputSource===0&&e.isTrusted?!0:uD()&&e.pointerType?e.type==="click"&&e.buttons===1:e.detail===0&&!e.pointerType}class pD{isDefaultPrevented(){return this.nativeEvent.defaultPrevented}preventDefault(){this.defaultPrevented=!0,this.nativeEvent.preventDefault()}stopPropagation(){this.nativeEvent.stopPropagation(),this.isPropagationStopped=()=>!0}isPropagationStopped(){return!1}persist(){}constructor(t,n){this.nativeEvent=n,this.target=n.target,this.currentTarget=n.currentTarget,this.relatedTarget=n.relatedTarget,this.bubbles=n.bubbles,this.cancelable=n.cancelable,this.defaultPrevented=n.defaultPrevented,this.eventPhase=n.eventPhase,this.isTrusted=n.isTrusted,this.timeStamp=n.timeStamp,this.type=t}}function hD(e){let t=S.useRef({isFocused:!1,observer:null});tv(()=>{const r=t.current;return()=>{r.observer&&(r.observer.disconnect(),r.observer=null)}},[]);let n=eD(r=>{e==null||e(r)});return S.useCallback(r=>{if(r.target instanceof HTMLButtonElement||r.target instanceof HTMLInputElement||r.target instanceof HTMLTextAreaElement||r.target instanceof HTMLSelectElement){t.current.isFocused=!0;let o=r.target,i=s=>{t.current.isFocused=!1,o.disabled&&n(new pD("blur",s)),t.current.observer&&(t.current.observer.disconnect(),t.current.observer=null)};o.addEventListener("focusout",i,{once:!0}),t.current.observer=new MutationObserver(()=>{if(t.current.isFocused&&o.disabled){var s;(s=t.current.observer)===null||s===void 0||s.disconnect();let a=o===document.activeElement?null:document.activeElement;o.dispatchEvent(new FocusEvent("blur",{relatedTarget:a})),o.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:a}))}}),t.current.observer.observe(o,{attributes:!0,attributeFilter:["disabled"]})}},[n])}function mD(e){let{isDisabled:t,onFocus:n,onBlur:r,onFocusChange:o}=e;const i=S.useCallback(l=>{if(l.target===l.currentTarget)return r&&r(l),o&&o(!1),!0},[r,o]),s=hD(i),a=S.useCallback(l=>{const u=ls(l.target);l.target===l.currentTarget&&u.activeElement===l.target&&(n&&n(l),o&&o(!0),s(l))},[o,n,s]);return{focusProps:{onFocus:!t&&(n||o||r)?a:void 0,onBlur:!t&&(r||o)?i:void 0}}}let bl=null,gD=new Set,ia=new Map,jo=!1,Sm=!1;function nv(e,t){for(let n of gD)n(e,t)}function vD(e){return!(e.metaKey||!lD()&&e.altKey||e.ctrlKey||e.key==="Control"||e.key==="Shift"||e.key==="Meta")}function Xc(e){jo=!0,vD(e)&&(bl="keyboard",nv("keyboard",e))}function Gt(e){bl="pointer",(e.type==="mousedown"||e.type==="pointerdown")&&(jo=!0,nv("pointer",e))}function G5(e){fD(e)&&(jo=!0,bl="virtual")}function K5(e){e.target===window||e.target===document||(!jo&&!Sm&&(bl="virtual",nv("virtual",e)),jo=!1,Sm=!1)}function Y5(){jo=!1,Sm=!0}function gb(e){if(typeof window>"u"||ia.get(bm(e)))return;const t=bm(e),n=ls(e);let r=t.HTMLElement.prototype.focus;t.HTMLElement.prototype.focus=function(){jo=!0,r.apply(this,arguments)},n.addEventListener("keydown",Xc,!0),n.addEventListener("keyup",Xc,!0),n.addEventListener("click",G5,!0),t.addEventListener("focus",K5,!0),t.addEventListener("blur",Y5,!1),typeof PointerEvent<"u"?(n.addEventListener("pointerdown",Gt,!0),n.addEventListener("pointermove",Gt,!0),n.addEventListener("pointerup",Gt,!0)):(n.addEventListener("mousedown",Gt,!0),n.addEventListener("mousemove",Gt,!0),n.addEventListener("mouseup",Gt,!0)),t.addEventListener("beforeunload",()=>{q5(e)},{once:!0}),ia.set(t,{focus:r})}const q5=(e,t)=>{const n=bm(e),r=ls(e);t&&r.removeEventListener("DOMContentLoaded",t),ia.has(n)&&(n.HTMLElement.prototype.focus=ia.get(n).focus,r.removeEventListener("keydown",Xc,!0),r.removeEventListener("keyup",Xc,!0),r.removeEventListener("click",G5,!0),n.removeEventListener("focus",K5,!0),n.removeEventListener("blur",Y5,!1),typeof PointerEvent<"u"?(r.removeEventListener("pointerdown",Gt,!0),r.removeEventListener("pointermove",Gt,!0),r.removeEventListener("pointerup",Gt,!0)):(r.removeEventListener("mousedown",Gt,!0),r.removeEventListener("mousemove",Gt,!0),r.removeEventListener("mouseup",Gt,!0)),ia.delete(n))};function yD(e){const t=ls(e);let n;return t.readyState!=="loading"?gb(e):(n=()=>{gb(e)},t.addEventListener("DOMContentLoaded",n)),()=>q5(e,n)}typeof document<"u"&&yD();function xD(){return bl}function vb(e){if(!e)return;let t=!0;return n=>{let r={...n,preventDefault(){n.preventDefault()},isDefaultPrevented(){return n.isDefaultPrevented()},stopPropagation(){console.error("stopPropagation is now the default behavior for events in React Spectrum. You can use continuePropagation() to revert this behavior.")},continuePropagation(){t=!1}};e(r),t&&n.stopPropagation()}}function bD(e){return{keyboardProps:e.isDisabled?{}:{onKeyDown:vb(e.onKeyDown),onKeyUp:vb(e.onKeyUp)}}}function wD(e){const t=ls(e);if(xD()==="virtual"){let n=t.activeElement;cD(()=>{t.activeElement===n&&e.isConnected&&hb(e)})}else hb(e)}let SD=null;function X5(e,t){return!e||!t?!1:t.some(n=>n.contains(e))}function kD(e,t=null){if(e instanceof Element&&e.closest("[data-react-aria-top-layer]"))return!0;for(let{scopeRef:n}of xb.traverse(xb.getTreeNode(t)))if(n&&X5(e,n.current))return!0;return!1}function CD(e){return kD(e,SD)}class rv{get size(){return this.fastMap.size}getTreeNode(t){return this.fastMap.get(t)}addTreeNode(t,n,r){let o=this.fastMap.get(n??null);if(!o)return;let i=new yb({scopeRef:t});o.addChild(i),i.parent=o,this.fastMap.set(t,i),r&&(i.nodeToRestore=r)}addNode(t){this.fastMap.set(t.scopeRef,t)}removeTreeNode(t){if(t===null)return;let n=this.fastMap.get(t);if(!n)return;let r=n.parent;for(let i of this.traverse())i!==n&&n.nodeToRestore&&i.nodeToRestore&&n.scopeRef&&n.scopeRef.current&&X5(i.nodeToRestore,n.scopeRef.current)&&(i.nodeToRestore=n.nodeToRestore);let o=n.children;r&&(r.removeChild(n),o.size>0&&o.forEach(i=>r&&r.addChild(i))),this.fastMap.delete(n.scopeRef)}*traverse(t=this.root){if(t.scopeRef!=null&&(yield t),t.children.size>0)for(let n of t.children)yield*this.traverse(n)}clone(){var t;let n=new rv;var r;for(let o of this.traverse())n.addTreeNode(o.scopeRef,(r=(t=o.parent)===null||t===void 0?void 0:t.scopeRef)!==null&&r!==void 0?r:null,o.nodeToRestore);return n}constructor(){this.fastMap=new Map,this.root=new yb({scopeRef:null}),this.fastMap.set(null,this.root)}}class yb{addChild(t){this.children.add(t),t.parent=this}removeChild(t){this.children.delete(t),t.parent=void 0}constructor(t){this.children=new Set,this.contain=!1,this.scopeRef=t.scopeRef}}let xb=new rv,$D=ze.createContext(null);function PD(e){let t=S.useContext($D)||{};dD(t,e);let{ref:n,...r}=t;return r}function TD(e,t){let{focusProps:n}=mD(e),{keyboardProps:r}=bD(e),o=pb(n,r),i=PD(t),s=e.isDisabled?{}:i,a=S.useRef(e.autoFocus);return S.useEffect(()=>{a.current&&t.current&&wD(t.current),a.current=!1},[t]),{focusableProps:pb({...o,tabIndex:e.excludeFromTabOrder&&!e.isDisabled?-1:void 0},s)}}function ED(e,t,n){let{isDisabled:r,trigger:o}=e,i=TN(),s=S.useRef(!1),a=S.useRef(!1),l=()=>{(s.current||a.current)&&t.open(a.current)},u=m=>{!s.current&&!a.current&&t.close(m)};S.useEffect(()=>{let m=y=>{n&&n.current&&y.key==="Escape"&&(y.stopPropagation(),t.close(!0))};if(t.isOpen)return document.addEventListener("keydown",m,!0),()=>{document.removeEventListener("keydown",m,!0)}},[n,t]);let c=()=>{o!=="focus"&&(qN()==="pointer"?s.current=!0:s.current=!1,l())},d=()=>{o!=="focus"&&(a.current=!1,s.current=!1,u())},f=()=>{a.current=!1,s.current=!1,u(!0)},p=()=>{YN()&&(a.current=!0,l())},h=()=>{a.current=!1,s.current=!1,u(!0)},{hoverProps:g}=U5({isDisabled:r,onHoverStart:c,onHoverEnd:d}),{focusableProps:b}=TD({isDisabled:r,onFocus:p,onBlur:h},n);return{triggerProps:{"aria-describedby":t.isOpen?i:void 0,...vo(b,g,{onPointerDown:f,onKeyDown:f})},tooltipProps:{id:i}}}const pi={top:"top",bottom:"top",left:"left",right:"left"},Qc={top:"bottom",bottom:"top",left:"right",right:"left"},MD={top:"left",left:"top"},km={top:"height",left:"width"},Q5={width:"totalWidth",height:"totalHeight"},hu={};let mt=typeof document<"u"&&window.visualViewport;function bb(e){let t=0,n=0,r=0,o=0,i=0,s=0,a={},l=(mt==null?void 0:mt.scale)>1;if(e.tagName==="BODY"){let d=document.documentElement;r=d.clientWidth,o=d.clientHeight;var u;t=(u=mt==null?void 0:mt.width)!==null&&u!==void 0?u:r;var c;n=(c=mt==null?void 0:mt.height)!==null&&c!==void 0?c:o,a.top=d.scrollTop||e.scrollTop,a.left=d.scrollLeft||e.scrollLeft,mt&&(i=mt.offsetTop,s=mt.offsetLeft)}else({width:t,height:n,top:i,left:s}=Pi(e)),a.top=e.scrollTop,a.left=e.scrollLeft,r=t,o=n;return NN()&&(e.tagName==="BODY"||e.tagName==="HTML")&&l&&(a.top=0,a.left=0,i=mt.pageTop,s=mt.pageLeft),{width:t,height:n,totalWidth:r,totalHeight:o,scroll:a,top:i,left:s}}function _D(e){return{top:e.scrollTop,left:e.scrollLeft,width:e.scrollWidth,height:e.scrollHeight}}function wb(e,t,n,r,o,i,s){let a=o.scroll[e],l=r[km[e]],u=r.scroll[pi[e]]+i,c=l+r.scroll[pi[e]]-i,d=t-a+s[e]-r[pi[e]],f=t-a+n+s[e]-r[pi[e]];return dc?Math.max(c-f,u-d):0}function AD(e){let t=window.getComputedStyle(e);return{top:parseInt(t.marginTop,10)||0,bottom:parseInt(t.marginBottom,10)||0,left:parseInt(t.marginLeft,10)||0,right:parseInt(t.marginRight,10)||0}}function Sb(e){if(hu[e])return hu[e];let[t,n]=e.split(" "),r=pi[t]||"right",o=MD[r];pi[n]||(n="center");let i=km[r],s=km[o];return hu[e]={placement:t,crossPlacement:n,axis:r,crossAxis:o,size:i,crossSize:s},hu[e]}function Rp(e,t,n,r,o,i,s,a,l,u){let{placement:c,crossPlacement:d,axis:f,crossAxis:p,size:h,crossSize:g}=r,b={};b[p]=e[p],d==="center"?b[p]+=(e[g]-n[g])/2:d!==p&&(b[p]+=e[g]-n[g]),b[p]+=i;const m=e[p]-n[g]+l+u,y=e[p]+e[g]-l-u;if(b[p]=mm(b[p],m,y),c===f){const x=a?s[h]:t[Q5[h]];b[Qc[f]]=Math.floor(x-e[f]+o)}else b[f]=Math.floor(e[f]+e[h]+o);return b}function OD(e,t,n,r,o,i,s,a){const l=r?n.height:t[Q5.height];let u=e.top!=null?n.top+e.top:n.top+(l-e.bottom-s),c=a!=="top"?Math.max(0,t.height+t.top+t.scroll.top-u-(o.top+o.bottom+i)):Math.max(0,u+s-(t.top+t.scroll.top)-(o.top+o.bottom+i));return Math.min(t.height-i*2,c)}function kb(e,t,n,r,o,i){let{placement:s,axis:a,size:l}=i;return s===a?Math.max(0,n[a]-e[a]-e.scroll[a]+t[a]-r[a]-r[Qc[a]]-o):Math.max(0,e[l]+e[a]+e.scroll[a]-t[a]-n[a]-n[l]-r[a]-r[Qc[a]]-o)}function RD(e,t,n,r,o,i,s,a,l,u,c,d,f,p,h,g){let b=Sb(e),{size:m,crossAxis:y,crossSize:x,placement:w,crossPlacement:C}=b,k=Rp(t,a,n,b,c,d,u,f,h,g),$=c,P=kb(a,u,t,o,i+c,b);if(s&&r[m]>P){let N=Sb(`${Qc[w]} ${C}`),V=Rp(t,a,n,N,c,d,u,f,h,g);kb(a,u,t,o,i+c,N)>P&&(b=N,k=V,$=c)}let R="bottom";b.axis==="top"?b.placement==="top"?R="top":b.placement==="bottom"&&(R="bottom"):b.crossAxis==="top"&&(b.crossPlacement==="top"?R="bottom":b.crossPlacement==="bottom"&&(R="top"));let M=wb(y,k[y],n[x],a,l,i,u);k[y]+=M;let O=OD(k,a,u,f,o,i,n.height,R);p&&p{if(!n||r===null)return;let o=i=>{let s=i.target;if(!t.current||s instanceof Node&&!s.contains(t.current))return;let a=r||LD.get(t.current);a&&a()};return window.addEventListener("scroll",o,!0),()=>{window.removeEventListener("scroll",o,!0)}},[n,r,t])}const DD=new Set(["Arab","Syrc","Samr","Mand","Thaa","Mend","Nkoo","Adlm","Rohg","Hebr"]),FD=new Set(["ae","ar","arc","bcc","bqi","ckb","dv","fa","glk","he","ku","mzn","nqo","pnb","ps","sd","ug","ur","yi"]);function zD(e){if(Intl.Locale){let n=new Intl.Locale(e).maximize(),r=typeof n.getTextInfo=="function"?n.getTextInfo():n.textInfo;if(r)return r.direction==="rtl";if(n.script)return DD.has(n.script)}let t=e.split("-")[0];return FD.has(t)}const VD=Symbol.for("react-aria.i18n.locale");function Z5(){let e=typeof window<"u"&&window[VD]||typeof navigator<"u"&&(navigator.language||navigator.userLanguage)||"en-US";try{Intl.DateTimeFormat.supportedLocalesOf([e])}catch{e="en-US"}return{locale:e,direction:zD(e)?"rtl":"ltr"}}let Cm=Z5(),Fs=new Set;function Pb(){Cm=Z5();for(let e of Fs)e(Cm)}function HD(){let e=Z0(),[t,n]=S.useState(Cm);return S.useEffect(()=>(Fs.size===0&&window.addEventListener("languagechange",Pb),Fs.add(n),()=>{Fs.delete(n),Fs.size===0&&window.removeEventListener("languagechange",Pb)}),[]),e?{locale:"en-US",direction:"ltr"}:t}const WD=ze.createContext(null);function UD(){let e=HD();return S.useContext(WD)||e}let je=typeof document<"u"&&window.visualViewport;function BD(e){let{direction:t}=UD(),{arrowSize:n=0,targetRef:r,overlayRef:o,scrollRef:i=o,placement:s="bottom",containerPadding:a=12,shouldFlip:l=!0,boundaryElement:u=typeof document<"u"?document.body:null,offset:c=0,crossOffset:d=0,shouldUpdatePosition:f=!0,isOpen:p=!0,onClose:h,maxHeight:g,arrowBoundaryOffset:b=0}=e,[m,y]=S.useState({position:{},arrowOffsetLeft:void 0,arrowOffsetTop:void 0,maxHeight:void 0,placement:void 0}),x=[f,s,o.current,r.current,i.current,a,l,u,c,d,p,t,g,b,n],w=S.useRef(je==null?void 0:je.scale);S.useEffect(()=>{p&&(w.current=je==null?void 0:je.scale)},[p]);let C=S.useCallback(()=>{if(f===!1||!p||!o.current||!r.current||!i.current||!u||(je==null?void 0:je.scale)!==w.current)return;let P=o.current;if(!g&&o.current){var R;P.style.top="0px",P.style.bottom="";var M;P.style.maxHeight=((M=(R=window.visualViewport)===null||R===void 0?void 0:R.height)!==null&&M!==void 0?M:window.innerHeight)+"px"}let O=jD({placement:KD(s,t),overlayNode:o.current,targetNode:r.current,scrollNode:i.current,padding:a,shouldFlip:l,boundaryElement:u,offset:c,crossOffset:d,maxHeight:g,arrowSize:n,arrowBoundaryOffset:b});P.style.top="",P.style.bottom="",Object.keys(O.position).forEach(E=>P.style[E]=O.position[E]+"px"),P.style.maxHeight=O.maxHeight!=null?O.maxHeight+"px":void 0,y(O)},x);Yi(C,x),GD(C),VN({ref:o,onResize:C});let k=S.useRef(!1);Yi(()=>{let P,R=()=>{k.current=!0,clearTimeout(P),P=setTimeout(()=>{k.current=!1},500),C()},M=()=>{k.current&&R()};return je==null||je.addEventListener("resize",R),je==null||je.addEventListener("scroll",M),()=>{je==null||je.removeEventListener("resize",R),je==null||je.removeEventListener("scroll",M)}},[C]);let $=S.useCallback(()=>{k.current||h()},[h,k]);return ND({triggerRef:r,isOpen:p,onClose:h&&$}),{overlayProps:{style:{position:"absolute",zIndex:1e5,...m.position,maxHeight:m.maxHeight}},placement:m.placement,arrowProps:{"aria-hidden":"true",role:"presentation",style:{left:m.arrowOffsetLeft,top:m.arrowOffsetTop}},updatePosition:C}}function GD(e){Yi(()=>(window.addEventListener("resize",e,!1),()=>{window.removeEventListener("resize",e,!1)}),[e])}function KD(e,t){return t==="rtl"?e.replace("start","right").replace("end","left"):e.replace("start","left").replace("end","right")}const Bn=[];function YD(e,t){let{onClose:n,shouldCloseOnBlur:r,isOpen:o,isDismissable:i=!1,isKeyboardDismissDisabled:s=!1,shouldCloseOnInteractOutside:a}=e;S.useEffect(()=>(o&&Bn.push(t),()=>{let h=Bn.indexOf(t);h>=0&&Bn.splice(h,1)}),[o,t]);let l=()=>{Bn[Bn.length-1]===t&&n&&n()},u=h=>{(!a||a(h.target))&&Bn[Bn.length-1]===t&&(h.stopPropagation(),h.preventDefault())},c=h=>{(!a||a(h.target))&&(Bn[Bn.length-1]===t&&(h.stopPropagation(),h.preventDefault()),l())},d=h=>{h.key==="Escape"&&!s&&!h.nativeEvent.isComposing&&(h.stopPropagation(),h.preventDefault(),l())};ZN({ref:t,onInteractOutside:i&&o?c:null,onInteractOutsideStart:u});let{focusWithinProps:f}=XN({isDisabled:!r,onBlurWithin:h=>{!h.relatedTarget||CD(h.relatedTarget)||(!a||a(h.relatedTarget))&&n()}}),p=h=>{h.target===h.currentTarget&&h.preventDefault()};return{overlayProps:{onKeyDown:d,...f},underlayProps:{onPointerDown:p}}}const $m=ze.createContext(null);function qD(e){let{children:t}=e,n=S.useContext($m),[r,o]=S.useState(0),i=S.useMemo(()=>({parent:n,modalCount:r,addModal(){o(s=>s+1),n&&n.addModal()},removeModal(){o(s=>s-1),n&&n.removeModal()}}),[n,r]);return ze.createElement($m.Provider,{value:i},t)}function XD(){let e=S.useContext($m);return{modalProviderProps:{"aria-hidden":e&&e.modalCount>0?!0:null}}}function QD(e){let{modalProviderProps:t}=XD();return ze.createElement("div",{"data-overlay-container":!0,...e,...t})}function ZD(e){return ze.createElement(qD,null,ze.createElement(QD,e))}function Tb(e){let t=Z0(),{portalContainer:n=t?null:document.body,...r}=e;if(ze.useEffect(()=>{if(n!=null&&n.closest("[data-overlay-container]"))throw new Error("An OverlayContainer must not be inside another container. Please change the portalContainer prop.")},[n]),!n)return null;let o=ze.createElement(ZD,r);return SE.createPortal(o,n)}function JD(e={}){const{strict:t=!0,errorMessage:n="useContext: `context` is undefined. Seems you forgot to wrap component within the Provider",name:r}=e,o=S.createContext(void 0);o.displayName=r;function i(){var s;const a=S.useContext(o);if(!a&&t){const l=new Error(n);throw l.name="ContextError",(s=Error.captureStackTrace)==null||s.call(Error,l,i),l}return a}return[o.Provider,i,o]}function eF(e){return{UNSAFE_getDOMNode(){return e.current}}}function tF(e){return typeof e=="function"}var Xo=e=>e?"true":void 0;function J5(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e))for(t=0;t"u")&&!Eb[i]&&(Eb[i]=!0,((r=process==null?void 0:rF)==null?void 0:r.NODE_ENV)!=="production"))return console.warn(i,n)}function iF(e){if(!e||typeof e!="object")return"";try{return JSON.stringify(e)}catch{return""}}function sF(e,t){if(e!=null){if(tF(e)){e(t);return}try{e.current=t}catch{throw new Error(`Cannot assign value '${t}' to ref '${e}'`)}}}function aF(...e){return t=>{e.forEach(n=>sF(n,t))}}var[yG,lF]=JD({name:"ProviderContext",strict:!1});const ov=S.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"}),bf=S.createContext({}),iv=S.createContext(null),sv=typeof window<"u",e$=sv?S.useLayoutEffect:S.useEffect,av=S.createContext({strict:!1}),wf=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),uF="framerAppearId",t$="data-"+wf(uF),cF={skipAnimations:!1,useManualTiming:!1};function dF(e){let t=new Set,n=new Set,r=!1,o=!1;const i=new WeakSet;let s={delta:0,timestamp:0,isProcessing:!1};function a(u){i.has(u)&&(l.schedule(u),e()),u(s)}const l={schedule:(u,c=!1,d=!1)=>{const p=d&&r?t:n;return c&&i.add(u),p.has(u)||p.add(u),u},cancel:u=>{n.delete(u),i.delete(u)},process:u=>{if(s=u,r){o=!0;return}r=!0,[t,n]=[n,t],n.clear(),t.forEach(a),r=!1,o&&(o=!1,l.process(u))}};return l}const mu=["read","resolveKeyframes","update","preRender","render","postRender"],fF=40;function n$(e,t){let n=!1,r=!0;const o={delta:0,timestamp:0,isProcessing:!1},i=()=>n=!0,s=mu.reduce((m,y)=>(m[y]=dF(i),m),{}),{read:a,resolveKeyframes:l,update:u,preRender:c,render:d,postRender:f}=s,p=()=>{const m=performance.now();n=!1,o.delta=r?1e3/60:Math.max(Math.min(m-o.timestamp,fF),1),o.timestamp=m,o.isProcessing=!0,a.process(o),l.process(o),u.process(o),c.process(o),d.process(o),f.process(o),o.isProcessing=!1,n&&t&&(r=!1,e(p))},h=()=>{n=!0,r=!0,o.isProcessing||e(p)};return{schedule:mu.reduce((m,y)=>{const x=s[y];return m[y]=(w,C=!1,k=!1)=>(n||h(),x.schedule(w,C,k)),m},{}),cancel:m=>{for(let y=0;y{d&&d.update(n,l)});const p=n[t$],h=S.useRef(!!p&&!window.MotionHandoffIsComplete&&((i=window.MotionHasOptimisedAnimation)===null||i===void 0?void 0:i.call(window,p)));return e$(()=>{d&&(d.updateFeatures(),pF.render(d.render),h.current&&d.animationState&&d.animationState.animateChanges())}),S.useEffect(()=>{d&&(!h.current&&d.animationState&&d.animationState.animateChanges(),h.current=!1,Mb||(Mb=!0,queueMicrotask(gF)))}),d}function gF(){window.MotionHandoffIsComplete=!0}function vF(e,t,n,r){const{layoutId:o,layout:i,drag:s,dragConstraints:a,layoutScroll:l,layoutRoot:u}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:o$(e.parent)),e.projection.setOptions({layoutId:o,layout:i,alwaysMeasureLayout:!!s||a&&r$(a),visualElement:e,animationType:typeof i=="string"?i:"both",initialPromotionConfig:r,layoutScroll:l,layoutRoot:u})}function o$(e){if(e)return e.options.allowProjection!==!1?e.projection:o$(e.parent)}function yF(e,t,n){return S.useCallback(r=>{r&&e.mount&&e.mount(r),t&&(r?t.mount(r):t.unmount()),n&&(typeof n=="function"?n(r):r$(n)&&(n.current=r))},[t])}function Ya(e){return typeof e=="string"||Array.isArray(e)}function qa(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}const lv=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],uv=["initial",...lv];function Sf(e){return qa(e.animate)||uv.some(t=>Ya(e[t]))}function i$(e){return!!(Sf(e)||e.variants)}function xF(e,t){if(Sf(e)){const{initial:n,animate:r}=e;return{initial:n===!1||Ya(n)?n:void 0,animate:Ya(r)?r:void 0}}return e.inherit!==!1?t:{}}function bF(e){const{initial:t,animate:n}=xF(e,S.useContext(bf));return S.useMemo(()=>({initial:t,animate:n}),[_b(t),_b(n)])}function _b(e){return Array.isArray(e)?e.join(" "):e}const Ab={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"]},qi={};for(const e in Ab)qi[e]={isEnabled:t=>Ab[e].some(n=>!!t[n])};function Pm(e){for(const t in e)qi[t]={...qi[t],...e[t]}}const s$=S.createContext({}),wF=Symbol.for("motionComponentSymbol"),Ln=e=>e;let Tm=Ln;function SF({preloadedFeatures:e,createVisualElement:t,useRender:n,useVisualState:r,Component:o}){e&&Pm(e);function i(a,l){let u;const c={...S.useContext(ov),...a,layoutId:kF(a)},{isStatic:d}=c,f=bF(a),p=r(a,d);if(!d&&sv){CF();const h=$F(c);u=h.MeasureLayout,f.visualElement=mF(o,p,c,t,h.ProjectionNode)}return v.jsxs(bf.Provider,{value:f,children:[u&&f.visualElement?v.jsx(u,{visualElement:f.visualElement,...c}):null,n(o,a,yF(p,f.visualElement,l),p,d,f.visualElement)]})}const s=S.forwardRef(i);return s[wF]=o,s}function kF({layoutId:e}){const t=S.useContext(s$).id;return t&&e!==void 0?t+"-"+e:e}function CF(e,t){S.useContext(av).strict}function $F(e){const{drag:t,layout:n}=qi;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 PF(e){function t(r,o={}){return SF(e(r,o))}if(typeof Proxy>"u")return t;const n=new Map;return new Proxy(t,{get:(r,o)=>(n.has(o)||n.set(o,t(o)),n.get(o))})}const TF=["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 cv(e){return typeof e!="string"||e.includes("-")?!1:!!(TF.indexOf(e)>-1||/[A-Z]/u.test(e))}const EF={},wl=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Xr=new Set(wl);function a$(e,{layout:t,layoutId:n}){return Xr.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!EF[e]||e==="opacity")}const dt=e=>!!(e&&e.getVelocity),l$=(e,t)=>t&&typeof e=="number"?t.transform(e):e,Xi=(e,t,n)=>n>t?t:ntypeof e=="number",parse:parseFloat,transform:e=>e},sa={...us,transform:e=>Xi(0,1,e)},gu={...us,default:1},aa=e=>Math.round(e*1e5)/1e5,dv=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu,MF=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu,_F=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu;function Sl(e){return typeof e=="string"}function AF(e){return e==null}const kl=e=>({test:t=>Sl(t)&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),xr=kl("deg"),Ti=kl("%"),Y=kl("px"),OF=kl("vh"),RF=kl("vw"),Ob={...Ti,parse:e=>Ti.parse(e)/100,transform:e=>Ti.transform(e*100)},Rb={...us,transform:Math.round},fv={borderWidth:Y,borderTopWidth:Y,borderRightWidth:Y,borderBottomWidth:Y,borderLeftWidth:Y,borderRadius:Y,radius:Y,borderTopLeftRadius:Y,borderTopRightRadius:Y,borderBottomRightRadius:Y,borderBottomLeftRadius:Y,width:Y,maxWidth:Y,height:Y,maxHeight:Y,size:Y,top:Y,right:Y,bottom:Y,left:Y,padding:Y,paddingTop:Y,paddingRight:Y,paddingBottom:Y,paddingLeft:Y,margin:Y,marginTop:Y,marginRight:Y,marginBottom:Y,marginLeft:Y,rotate:xr,rotateX:xr,rotateY:xr,rotateZ:xr,scale:gu,scaleX:gu,scaleY:gu,scaleZ:gu,skew:xr,skewX:xr,skewY:xr,distance:Y,translateX:Y,translateY:Y,translateZ:Y,x:Y,y:Y,z:Y,perspective:Y,transformPerspective:Y,opacity:sa,originX:Ob,originY:Ob,originZ:Y,zIndex:Rb,backgroundPositionX:Y,backgroundPositionY:Y,fillOpacity:sa,strokeOpacity:sa,numOctaves:Rb},jF={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},IF=wl.length;function LF(e,t,n){let r="",o=!0;for(let i=0;it=>typeof t=="string"&&t.startsWith(e),c$=u$("--"),NF=u$("var(--"),pv=e=>NF(e)?DF.test(e.split("/*")[0].trim()):!1,DF=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function hv(e,t,n){const{style:r,vars:o,transformOrigin:i}=e;let s=!1,a=!1;for(const l in t){const u=t[l];if(Xr.has(l)){s=!0;continue}else if(c$(l)){o[l]=u;continue}else{const c=l$(u,fv[l]);l.startsWith("origin")?(a=!0,i[l]=c):r[l]=c}}if(t.transform||(s||n?r.transform=LF(t,e.transform,n):r.transform&&(r.transform="none")),a){const{originX:l="50%",originY:u="50%",originZ:c=0}=i;r.transformOrigin=`${l} ${u} ${c}`}}const mv=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function d$(e,t,n){for(const r in t)!dt(t[r])&&!a$(r,n)&&(e[r]=t[r])}function FF({transformTemplate:e},t){return S.useMemo(()=>{const n=mv();return hv(n,t,e),Object.assign({},n.vars,n.style)},[t])}function zF(e,t){const n=e.style||{},r={};return d$(r,n,e),Object.assign(r,FF(e,t)),r}function VF(e,t){const n={},r=zF(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 HF=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 Zc(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||HF.has(e)}let f$=e=>!Zc(e);function WF(e){e&&(f$=t=>t.startsWith("on")?!Zc(t):e(t))}try{WF(require("@emotion/is-prop-valid").default)}catch{}function UF(e,t,n){const r={};for(const o in e)o==="values"&&typeof e.values=="object"||(f$(o)||n===!0&&Zc(o)||!t&&!Zc(o)||e.draggable&&o.startsWith("onDrag"))&&(r[o]=e[o]);return r}function jb(e,t,n){return typeof e=="string"?e:Y.transform(t+n*e)}function BF(e,t,n){const r=jb(t,e.x,e.width),o=jb(n,e.y,e.height);return`${r} ${o}`}const GF={offset:"stroke-dashoffset",array:"stroke-dasharray"},KF={offset:"strokeDashoffset",array:"strokeDasharray"};function YF(e,t,n=1,r=0,o=!0){e.pathLength=1;const i=o?GF:KF;e[i.offset]=Y.transform(-r);const s=Y.transform(t),a=Y.transform(n);e[i.array]=`${s} ${a}`}function gv(e,{attrX:t,attrY:n,attrScale:r,originX:o,originY:i,pathLength:s,pathSpacing:a=1,pathOffset:l=0,...u},c,d){if(hv(e,u,d),c){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:f,style:p,dimensions:h}=e;f.transform&&(h&&(p.transform=f.transform),delete f.transform),h&&(o!==void 0||i!==void 0||p.transform)&&(p.transformOrigin=BF(h,o!==void 0?o:.5,i!==void 0?i:.5)),t!==void 0&&(f.x=t),n!==void 0&&(f.y=n),r!==void 0&&(f.scale=r),s!==void 0&&YF(f,s,a,l,!1)}const p$=()=>({...mv(),attrs:{}}),vv=e=>typeof e=="string"&&e.toLowerCase()==="svg";function qF(e,t,n,r){const o=S.useMemo(()=>{const i=p$();return gv(i,t,vv(r),e.transformTemplate),{...i.attrs,style:{...i.style}}},[t]);if(e.style){const i={};d$(i,e.style,e),o.style={...i,...o.style}}return o}function XF(e=!1){return(n,r,o,{latestValues:i},s)=>{const l=(cv(n)?qF:VF)(r,i,s,n),u=UF(r,typeof n=="string",e),c=n!==S.Fragment?{...u,...l,ref:o}:{},{children:d}=r,f=S.useMemo(()=>dt(d)?d.get():d,[d]);return S.createElement(n,{...c,children:f})}}function h$(e,{style:t,vars:n},r,o){Object.assign(e.style,t,o&&o.getProjectionStyles(r));for(const i in n)e.style.setProperty(i,n[i])}const m$=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 g$(e,t,n,r){h$(e,t,void 0,r);for(const o in t.attrs)e.setAttribute(m$.has(o)?o:wf(o),t.attrs[o])}function yv(e,t,n){var r;const{style:o}=e,i={};for(const s in o)(dt(o[s])||t.style&&dt(t.style[s])||a$(s,e)||((r=n==null?void 0:n.getValue(s))===null||r===void 0?void 0:r.liveStyle)!==void 0)&&(i[s]=o[s]);return n&&o&&typeof o.willChange=="string"&&(n.applyWillChange=!1),i}function v$(e,t,n){const r=yv(e,t,n);for(const o in e)if(dt(e[o])||dt(t[o])){const i=wl.indexOf(o)!==-1?"attr"+o.charAt(0).toUpperCase()+o.substring(1):o;r[i]=e[o]}return r}function Ib(e){const t=[{},{}];return e==null||e.values.forEach((n,r)=>{t[0][r]=n.get(),t[1][r]=n.getVelocity()}),t}function xv(e,t,n,r){if(typeof t=="function"){const[o,i]=Ib(r);t=t(n!==void 0?n:e.custom,o,i)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){const[o,i]=Ib(r);t=t(n!==void 0?n:e.custom,o,i)}return t}function bv(e){const t=S.useRef(null);return t.current===null&&(t.current=e()),t.current}const Em=e=>Array.isArray(e),QF=e=>!!(e&&typeof e=="object"&&e.mix&&e.toValue),ZF=e=>Em(e)?e[e.length-1]||0:e;function JF(e){const t=dt(e)?e.get():e;return QF(t)?t.toValue():t}const y$=new Set(["opacity","clipPath","filter","transform"]);function x$(e){if(Xr.has(e))return"transform";if(y$.has(e))return wf(e)}function b$(e,t){e.indexOf(t)===-1&&e.push(t)}function w$(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}function ez({applyWillChange:e=!1,scrapeMotionValuesFromProps:t,createRenderState:n,onMount:r},o,i,s,a){const l={latestValues:nz(o,i,s,a?!1:e,t),renderState:n()};return r&&(l.mount=u=>r(o,u,l)),l}const S$=e=>(t,n)=>{const r=S.useContext(bf),o=S.useContext(iv),i=()=>ez(e,t,r,o,n);return n?i():bv(i)};function tz(e,t){const n=x$(t);n&&b$(e,n)}function Lb(e,t,n){const r=Array.isArray(t)?t:[t];for(let o=0;o{for(const y in b){let x=b[y];if(Array.isArray(x)){const w=h?x.length-1:0;x=x[w]}x!==null&&(s[y]=x)}for(const y in m)s[y]=m[y]}),l&&(d&&c!==!1&&!qa(d)&&Lb(e,d,b=>{for(const m in b)tz(a,m)}),a.length&&(s.willChange=a.join(","))),s}const{schedule:Je,cancel:Jc,state:ed,steps:bG}=n$(typeof requestAnimationFrame<"u"?requestAnimationFrame:Ln,!0),rz={useVisualState:S$({scrapeMotionValuesFromProps:v$,createRenderState:p$,onMount:(e,t,{renderState:n,latestValues:r})=>{Je.read(()=>{try{n.dimensions=typeof t.getBBox=="function"?t.getBBox():t.getBoundingClientRect()}catch{n.dimensions={x:0,y:0,width:0,height:0}}}),Je.render(()=>{gv(n,r,vv(t.tagName),e.transformTemplate),g$(t,n)})}})},oz={useVisualState:S$({applyWillChange:!0,scrapeMotionValuesFromProps:yv,createRenderState:mv})};function iz(e,{forwardMotionProps:t=!1},n,r){return{...cv(e)?rz:oz,preloadedFeatures:n,useRender:XF(t),createVisualElement:r,Component:e}}function yo(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}const sz=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1;function k$(e,t="page"){return{point:{x:e[`${t}X`],y:e[`${t}Y`]}}}const az=e=>t=>sz(t)&&e(t,k$(t));function Yu(e,t,n,r){return yo(e,t,az(n),r)}const lz=(e,t)=>n=>t(e(n)),Dr=(...e)=>e.reduce(lz);function C$(e){let t=null;return()=>{const n=()=>{t=null};return t===null?(t=e,n):!1}}const uz=C$("dragHorizontal"),cz=C$("dragVertical");function dz(e){let t=!1;{const n=uz(),r=cz();n&&r?t=()=>{n(),r()}:(n&&n(),r&&r())}return t}function $$(){const e=dz();return e?(e(),!1):!0}class cs{constructor(t){this.isMounted=!1,this.node=t}update(){}}function Nb(e,t){const n=t?"pointerenter":"pointerleave",r=t?"onHoverStart":"onHoverEnd",o=(i,s)=>{if(i.pointerType==="touch"||$$())return;const a=e.getProps();e.animationState&&a.whileHover&&e.animationState.setActive("whileHover",t);const l=a[r];l&&Je.postRender(()=>l(i,s))};return Yu(e.current,n,o,{passive:!e.getProps()[r]})}class fz extends cs{mount(){this.unmount=Dr(Nb(this.node,!0),Nb(this.node,!1))}unmount(){}}class pz extends cs{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=Dr(yo(this.node.current,"focus",()=>this.onFocus()),yo(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}const P$=(e,t)=>t?e===t?!0:P$(e,t.parentElement):!1;function jp(e,t){if(!t)return;const n=new PointerEvent("pointer"+e);t(n,k$(n))}class hz extends cs{constructor(){super(...arguments),this.removeStartListeners=Ln,this.removeEndListeners=Ln,this.removeAccessibleListeners=Ln,this.startPointerPress=(t,n)=>{if(this.isPressing)return;this.removeEndListeners();const r=this.node.getProps(),i=Yu(window,"pointerup",(a,l)=>{if(!this.checkPressEnd())return;const{onTap:u,onTapCancel:c,globalTapTarget:d}=this.node.getProps(),f=!d&&!P$(this.node.current,a.target)?c:u;f&&Je.update(()=>f(a,l))},{passive:!(r.onTap||r.onPointerUp)}),s=Yu(window,"pointercancel",(a,l)=>this.cancelPress(a,l),{passive:!(r.onTapCancel||r.onPointerCancel)});this.removeEndListeners=Dr(i,s),this.startPress(t,n)},this.startAccessiblePress=()=>{const t=i=>{if(i.key!=="Enter"||this.isPressing)return;const s=a=>{a.key!=="Enter"||!this.checkPressEnd()||jp("up",(l,u)=>{const{onTap:c}=this.node.getProps();c&&Je.postRender(()=>c(l,u))})};this.removeEndListeners(),this.removeEndListeners=yo(this.node.current,"keyup",s),jp("down",(a,l)=>{this.startPress(a,l)})},n=yo(this.node.current,"keydown",t),r=()=>{this.isPressing&&jp("cancel",(i,s)=>this.cancelPress(i,s))},o=yo(this.node.current,"blur",r);this.removeAccessibleListeners=Dr(n,o)}}startPress(t,n){this.isPressing=!0;const{onTapStart:r,whileTap:o}=this.node.getProps();o&&this.node.animationState&&this.node.animationState.setActive("whileTap",!0),r&&Je.postRender(()=>r(t,n))}checkPressEnd(){return this.removeEndListeners(),this.isPressing=!1,this.node.getProps().whileTap&&this.node.animationState&&this.node.animationState.setActive("whileTap",!1),!$$()}cancelPress(t,n){if(!this.checkPressEnd())return;const{onTapCancel:r}=this.node.getProps();r&&Je.postRender(()=>r(t,n))}mount(){const t=this.node.getProps(),n=Yu(t.globalTapTarget?window:this.node.current,"pointerdown",this.startPointerPress,{passive:!(t.onTapStart||t.onPointerStart)}),r=yo(this.node.current,"focus",this.startAccessiblePress);this.removeStartListeners=Dr(n,r)}unmount(){this.removeStartListeners(),this.removeEndListeners(),this.removeAccessibleListeners()}}const Mm=new WeakMap,Ip=new WeakMap,mz=e=>{const t=Mm.get(e.target);t&&t(e)},gz=e=>{e.forEach(mz)};function vz({root:e,...t}){const n=e||document;Ip.has(n)||Ip.set(n,{});const r=Ip.get(n),o=JSON.stringify(t);return r[o]||(r[o]=new IntersectionObserver(gz,{root:e,...t})),r[o]}function yz(e,t,n){const r=vz(t);return Mm.set(e,n),r.observe(e),()=>{Mm.delete(e),r.unobserve(e)}}const xz={some:0,all:1};class bz extends cs{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:n,margin:r,amount:o="some",once:i}=t,s={root:n?n.current:void 0,rootMargin:r,threshold:typeof o=="number"?o:xz[o]},a=l=>{const{isIntersecting:u}=l;if(this.isInView===u||(this.isInView=u,i&&!u&&this.hasEnteredView))return;u&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",u);const{onViewportEnter:c,onViewportLeave:d}=this.node.getProps(),f=u?c:d;f&&f(l)};return yz(this.node.current,s,a)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:n}=this.node;["amount","margin","root"].some(wz(t,n))&&this.startObserver()}unmount(){}}function wz({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const Sz={inView:{Feature:bz},tap:{Feature:hz},focus:{Feature:pz},hover:{Feature:fz}};function T$(e,t){if(!Array.isArray(t))return!1;const n=t.length;if(n!==e.length)return!1;for(let r=0;re*1e3,zr=e=>e/1e3,kz={type:"spring",stiffness:500,damping:25,restSpeed:10},Cz=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),$z={type:"keyframes",duration:.8},Pz={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},Tz=(e,{keyframes:t})=>t.length>2?$z:Xr.has(e)?e.startsWith("scale")?Cz(t[1]):kz:Pz;function Ez({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:o,repeat:i,repeatType:s,repeatDelay:a,from:l,elapsed:u,...c}){return!!Object.keys(c).length}function E$(e,t){return e[t]||e.default||e}const Mz=e=>e!==null;function Cf(e,{repeat:t,repeatType:n="loop"},r){const o=e.filter(Mz),i=t&&n!=="loop"&&t%2===1?0:o.length-1;return!i||r===void 0?o[i]:r}let qu;function _z(){qu=void 0}const Ei={now:()=>(qu===void 0&&Ei.set(ed.isProcessing||cF.useManualTiming?ed.timestamp:performance.now()),qu),set:e=>{qu=e,queueMicrotask(_z)}},M$=e=>/^0[^.\s]+$/u.test(e);function Az(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||M$(e):!0}const _$=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),Oz=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function Rz(e){const t=Oz.exec(e);if(!t)return[,];const[,n,r,o]=t;return[`--${n??r}`,o]}function A$(e,t,n=1){const[r,o]=Rz(e);if(!r)return;const i=window.getComputedStyle(t).getPropertyValue(r);if(i){const s=i.trim();return _$(s)?parseFloat(s):s}return pv(o)?A$(o,t,n+1):o}const jz=new Set(["width","height","top","left","right","bottom","x","y","translateX","translateY"]),Db=e=>e===us||e===Y,Fb=(e,t)=>parseFloat(e.split(", ")[t]),zb=(e,t)=>(n,{transform:r})=>{if(r==="none"||!r)return 0;const o=r.match(/^matrix3d\((.+)\)$/u);if(o)return Fb(o[1],t);{const i=r.match(/^matrix\((.+)\)$/u);return i?Fb(i[1],e):0}},Iz=new Set(["x","y","z"]),Lz=wl.filter(e=>!Iz.has(e));function Nz(e){const t=[];return Lz.forEach(n=>{const r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t}const Qi={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:zb(4,13),y:zb(5,14)};Qi.translateX=Qi.x;Qi.translateY=Qi.y;const O$=e=>t=>t.test(e),Dz={test:e=>e==="auto",parse:e=>e},R$=[us,Y,Ti,xr,RF,OF,Dz],Vb=e=>R$.find(O$(e)),$o=new Set;let _m=!1,Am=!1;function j$(){if(Am){const e=Array.from($o).filter(r=>r.needsMeasurement),t=new Set(e.map(r=>r.element)),n=new Map;t.forEach(r=>{const o=Nz(r);o.length&&(n.set(r,o),r.render())}),e.forEach(r=>r.measureInitialState()),t.forEach(r=>{r.render();const o=n.get(r);o&&o.forEach(([i,s])=>{var a;(a=r.getValue(i))===null||a===void 0||a.set(s)})}),e.forEach(r=>r.measureEndState()),e.forEach(r=>{r.suspendedScrollY!==void 0&&window.scrollTo(0,r.suspendedScrollY)})}Am=!1,_m=!1,$o.forEach(e=>e.complete()),$o.clear()}function I$(){$o.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(Am=!0)})}function Fz(){I$(),j$()}class wv{constructor(t,n,r,o,i,s=!1){this.isComplete=!1,this.isAsync=!1,this.needsMeasurement=!1,this.isScheduled=!1,this.unresolvedKeyframes=[...t],this.onComplete=n,this.name=r,this.motionValue=o,this.element=i,this.isAsync=s}scheduleResolve(){this.isScheduled=!0,this.isAsync?($o.add(this),_m||(_m=!0,Je.read(I$),Je.resolveKeyframes(j$))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:n,element:r,motionValue:o}=this;for(let i=0;in=>!!(Sl(n)&&_F.test(n)&&n.startsWith(e)||t&&!AF(n)&&Object.prototype.hasOwnProperty.call(n,t)),L$=(e,t,n)=>r=>{if(!Sl(r))return r;const[o,i,s,a]=r.match(dv);return{[e]:parseFloat(o),[t]:parseFloat(i),[n]:parseFloat(s),alpha:a!==void 0?parseFloat(a):1}},zz=e=>Xi(0,255,e),Lp={...us,transform:e=>Math.round(zz(e))},xo={test:Sv("rgb","red"),parse:L$("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+Lp.transform(e)+", "+Lp.transform(t)+", "+Lp.transform(n)+", "+aa(sa.transform(r))+")"};function Vz(e){let t="",n="",r="",o="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),o=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),o=e.substring(4,5),t+=t,n+=n,r+=r,o+=o),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:o?parseInt(o,16)/255:1}}const Om={test:Sv("#"),parse:Vz,transform:xo.transform},hi={test:Sv("hsl","hue"),parse:L$("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+Ti.transform(aa(t))+", "+Ti.transform(aa(n))+", "+aa(sa.transform(r))+")"},st={test:e=>xo.test(e)||Om.test(e)||hi.test(e),parse:e=>xo.test(e)?xo.parse(e):hi.test(e)?hi.parse(e):Om.parse(e),transform:e=>Sl(e)?e:e.hasOwnProperty("red")?xo.transform(e):hi.transform(e)};function Hz(e){var t,n;return isNaN(e)&&Sl(e)&&(((t=e.match(dv))===null||t===void 0?void 0:t.length)||0)+(((n=e.match(MF))===null||n===void 0?void 0:n.length)||0)>0}const N$="number",D$="color",Wz="var",Uz="var(",Hb="${}",Bz=/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 Xa(e){const t=e.toString(),n=[],r={color:[],number:[],var:[]},o=[];let i=0;const a=t.replace(Bz,l=>(st.test(l)?(r.color.push(i),o.push(D$),n.push(st.parse(l))):l.startsWith(Uz)?(r.var.push(i),o.push(Wz),n.push(l)):(r.number.push(i),o.push(N$),n.push(parseFloat(l))),++i,Hb)).split(Hb);return{values:n,split:a,indexes:r,types:o}}function F$(e){return Xa(e).values}function z$(e){const{split:t,types:n}=Xa(e),r=t.length;return o=>{let i="";for(let s=0;stypeof e=="number"?0:e;function Kz(e){const t=F$(e);return z$(e)(t.map(Gz))}const ds={test:Hz,parse:F$,createTransformer:z$,getAnimatableNone:Kz},Yz=new Set(["brightness","contrast","saturate","opacity"]);function qz(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(dv)||[];if(!r)return e;const o=n.replace(r,"");let i=Yz.has(t)?1:0;return r!==n&&(i*=100),t+"("+i+o+")"}const Xz=/\b([a-z-]*)\(.*?\)/gu,Rm={...ds,getAnimatableNone:e=>{const t=e.match(Xz);return t?t.map(qz).join(" "):e}},Qz={...fv,color:st,backgroundColor:st,outlineColor:st,fill:st,stroke:st,borderColor:st,borderTopColor:st,borderRightColor:st,borderBottomColor:st,borderLeftColor:st,filter:Rm,WebkitFilter:Rm},kv=e=>Qz[e];function V$(e,t){let n=kv(e);return n!==Rm&&(n=ds),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const Zz=new Set(["auto","none","0"]);function Jz(e,t,n){let r=0,o;for(;r{n.getValue(l).set(u)}),this.resolveNoneKeyframes()}}function W$(e){let t;return()=>(t===void 0&&(t=e()),t)}const Wb=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(ds.test(e)||e==="0")&&!e.startsWith("url("));function eV(e){const t=e[0];if(e.length===1)return!0;for(let n=0;n{this.resolveFinishedPromise=t})}}function B$(e,t){return t?e*(1e3/t):0}const nV=5;function G$(e,t,n){const r=Math.max(t-nV,0);return B$(n-e(r),t-r)}const Np=.001,rV=.01,oV=10,iV=.05,sV=1;function aV({duration:e=800,bounce:t=.25,velocity:n=0,mass:r=1}){let o,i,s=1-t;s=Xi(iV,sV,s),e=Xi(rV,oV,zr(e)),s<1?(o=u=>{const c=u*s,d=c*e,f=c-n,p=jm(u,s),h=Math.exp(-d);return Np-f/p*h},i=u=>{const d=u*s*e,f=d*n+n,p=Math.pow(s,2)*Math.pow(u,2)*e,h=Math.exp(-d),g=jm(Math.pow(u,2),s);return(-o(u)+Np>0?-1:1)*((f-p)*h)/g}):(o=u=>{const c=Math.exp(-u*e),d=(u-n)*e+1;return-Np+c*d},i=u=>{const c=Math.exp(-u*e),d=(n-u)*(e*e);return c*d});const a=5/e,l=uV(o,i,a);if(e=Fr(e),isNaN(l))return{stiffness:100,damping:10,duration:e};{const u=Math.pow(l,2)*r;return{stiffness:u,damping:s*2*Math.sqrt(r*u),duration:e}}}const lV=12;function uV(e,t,n){let r=n;for(let o=1;oe[n]!==void 0)}function fV(e){let t={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...e};if(!Ub(e,dV)&&Ub(e,cV)){const n=aV(e);t={...t,...n,mass:1},t.isResolvedFromDuration=!0}return t}function K$({keyframes:e,restDelta:t,restSpeed:n,...r}){const o=e[0],i=e[e.length-1],s={done:!1,value:o},{stiffness:a,damping:l,mass:u,duration:c,velocity:d,isResolvedFromDuration:f}=fV({...r,velocity:-zr(r.velocity||0)}),p=d||0,h=l/(2*Math.sqrt(a*u)),g=i-o,b=zr(Math.sqrt(a/u)),m=Math.abs(g)<5;n||(n=m?.01:2),t||(t=m?.005:.5);let y;if(h<1){const x=jm(b,h);y=w=>{const C=Math.exp(-h*b*w);return i-C*((p+h*b*g)/x*Math.sin(x*w)+g*Math.cos(x*w))}}else if(h===1)y=x=>i-Math.exp(-b*x)*(g+(p+b*g)*x);else{const x=b*Math.sqrt(h*h-1);y=w=>{const C=Math.exp(-h*b*w),k=Math.min(x*w,300);return i-C*((p+h*b*g)*Math.sinh(k)+x*g*Math.cosh(k))/x}}return{calculatedDuration:f&&c||null,next:x=>{const w=y(x);if(f)s.done=x>=c;else{let C=0;h<1&&(C=x===0?Fr(p):G$(y,x,w));const k=Math.abs(C)<=n,$=Math.abs(i-w)<=t;s.done=k&&$}return s.value=s.done?i:w,s}}}function Bb({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:o=10,bounceStiffness:i=500,modifyTarget:s,min:a,max:l,restDelta:u=.5,restSpeed:c}){const d=e[0],f={done:!1,value:d},p=P=>a!==void 0&&Pl,h=P=>a===void 0?l:l===void 0||Math.abs(a-P)-g*Math.exp(-P/r),x=P=>m+y(P),w=P=>{const R=y(P),M=x(P);f.done=Math.abs(R)<=u,f.value=f.done?m:M};let C,k;const $=P=>{p(f.value)&&(C=P,k=K$({keyframes:[f.value,h(f.value)],velocity:G$(x,P,f.value),damping:o,stiffness:i,restDelta:u,restSpeed:c}))};return $(0),{calculatedDuration:null,next:P=>{let R=!1;return!k&&C===void 0&&(R=!0,w(P),$(P)),C!==void 0&&P>=C?k.next(P-C):(!R&&w(P),f)}}}const Y$=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,pV=1e-7,hV=12;function mV(e,t,n,r,o){let i,s,a=0;do s=t+(n-t)/2,i=Y$(s,r,o)-e,i>0?n=s:t=s;while(Math.abs(i)>pV&&++amV(i,0,1,e,n);return i=>i===0||i===1?i:Y$(o(i),t,r)}const gV=Cl(.42,0,1,1),vV=Cl(0,0,.58,1),q$=Cl(.42,0,.58,1),yV=e=>Array.isArray(e)&&typeof e[0]!="number",X$=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,Q$=e=>t=>1-e(1-t),Cv=e=>1-Math.sin(Math.acos(e)),xV=Q$(Cv),bV=X$(Cv),Z$=Cl(.33,1.53,.69,.99),$v=Q$(Z$),wV=X$($v),SV=e=>(e*=2)<1?.5*$v(e):.5*(2-Math.pow(2,-10*(e-1))),Gb={linear:Ln,easeIn:gV,easeInOut:q$,easeOut:vV,circIn:Cv,circInOut:bV,circOut:xV,backIn:$v,backInOut:wV,backOut:Z$,anticipate:SV},Kb=e=>{if(Array.isArray(e)){Tm(e.length===4);const[t,n,r,o]=e;return Cl(t,n,r,o)}else if(typeof e=="string")return Tm(Gb[e]!==void 0),Gb[e];return e},J$=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r},$f=(e,t,n)=>e+(t-e)*n;function Dp(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 kV({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let o=0,i=0,s=0;if(!t)o=i=s=n;else{const a=n<.5?n*(1+t):n+t-n*t,l=2*n-a;o=Dp(l,a,e+1/3),i=Dp(l,a,e),s=Dp(l,a,e-1/3)}return{red:Math.round(o*255),green:Math.round(i*255),blue:Math.round(s*255),alpha:r}}function td(e,t){return n=>n>0?t:e}const Fp=(e,t,n)=>{const r=e*e,o=n*(t*t-r)+r;return o<0?0:Math.sqrt(o)},CV=[Om,xo,hi],$V=e=>CV.find(t=>t.test(e));function Yb(e){const t=$V(e);if(!t)return!1;let n=t.parse(e);return t===hi&&(n=kV(n)),n}const qb=(e,t)=>{const n=Yb(e),r=Yb(t);if(!n||!r)return td(e,t);const o={...n};return i=>(o.red=Fp(n.red,r.red,i),o.green=Fp(n.green,r.green,i),o.blue=Fp(n.blue,r.blue,i),o.alpha=$f(n.alpha,r.alpha,i),xo.transform(o))},Im=new Set(["none","hidden"]);function PV(e,t){return Im.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function TV(e,t){return n=>$f(e,t,n)}function Pv(e){return typeof e=="number"?TV:typeof e=="string"?pv(e)?td:st.test(e)?qb:_V:Array.isArray(e)?eP:typeof e=="object"?st.test(e)?qb:EV:td}function eP(e,t){const n=[...e],r=n.length,o=e.map((i,s)=>Pv(i)(i,t[s]));return i=>{for(let s=0;s{for(const i in r)n[i]=r[i](o);return n}}function MV(e,t){var n;const r=[],o={color:0,var:0,number:0};for(let i=0;i{const n=ds.createTransformer(t),r=Xa(e),o=Xa(t);return r.indexes.var.length===o.indexes.var.length&&r.indexes.color.length===o.indexes.color.length&&r.indexes.number.length>=o.indexes.number.length?Im.has(e)&&!o.values.length||Im.has(t)&&!r.values.length?PV(e,t):Dr(eP(MV(r,o),o.values),n):td(e,t)};function tP(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?$f(e,t,n):Pv(e)(e,t)}function AV(e,t,n){const r=[],o=n||tP,i=e.length-1;for(let s=0;st[0];if(i===2&&e[0]===e[1])return()=>t[1];e[0]>e[i-1]&&(e=[...e].reverse(),t=[...t].reverse());const s=AV(t,r,o),a=s.length,l=u=>{let c=0;if(a>1)for(;cl(Xi(e[0],e[i-1],u)):l}function RV(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const o=J$(0,t,r);e.push($f(n,1,o))}}function jV(e){const t=[0];return RV(t,e.length-1),t}function IV(e,t){return e.map(n=>n*t)}function LV(e,t){return e.map(()=>t||q$).splice(0,e.length-1)}function nd({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const o=yV(r)?r.map(Kb):Kb(r),i={done:!1,value:t[0]},s=IV(n&&n.length===t.length?n:jV(t),e),a=OV(s,t,{ease:Array.isArray(o)?o:LV(t,o)});return{calculatedDuration:e,next:l=>(i.value=a(l),i.done=l>=e,i)}}const Xb=2e4;function NV(e){let t=0;const n=50;let r=e.next(t);for(;!r.done&&t=Xb?1/0:t}const DV=e=>{const t=({timestamp:n})=>e(n);return{start:()=>Je.update(t,!0),stop:()=>Jc(t),now:()=>ed.isProcessing?ed.timestamp:Ei.now()}},FV={decay:Bb,inertia:Bb,tween:nd,keyframes:nd,spring:K$},zV=e=>e/100;class Tv extends U${constructor({KeyframeResolver:t=wv,...n}){super(n),this.holdTime=null,this.startTime=null,this.cancelTime=null,this.currentTime=0,this.playbackSpeed=1,this.pendingPlayState="running",this.state="idle",this.stop=()=>{if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.teardown();const{onStop:a}=this.options;a&&a()};const{name:r,motionValue:o,keyframes:i}=this.options,s=(a,l)=>this.onKeyframesResolved(a,l);r&&o&&o.owner?this.resolver=o.owner.resolveKeyframes(i,s,r,o):this.resolver=new t(i,s,r,o),this.resolver.scheduleResolve()}initPlayback(t){const{type:n="keyframes",repeat:r=0,repeatDelay:o=0,repeatType:i,velocity:s=0}=this.options,a=FV[n]||nd;let l,u;a!==nd&&typeof t[0]!="number"&&(l=Dr(zV,tP(t[0],t[1])),t=[0,100]);const c=a({...this.options,keyframes:t});i==="mirror"&&(u=a({...this.options,keyframes:[...t].reverse(),velocity:-s})),c.calculatedDuration===null&&(c.calculatedDuration=NV(c));const{calculatedDuration:d}=c,f=d+o,p=f*(r+1)-o;return{generator:c,mirroredGenerator:u,mapPercentToKeyframes:l,calculatedDuration:d,resolvedDuration:f,totalDuration:p}}onPostResolved(){const{autoplay:t=!0}=this.options;this.play(),this.pendingPlayState==="paused"||!t?this.pause():this.state=this.pendingPlayState}tick(t,n=!1){const{resolved:r}=this;if(!r){const{keyframes:P}=this.options;return{done:!0,value:P[P.length-1]}}const{finalKeyframe:o,generator:i,mirroredGenerator:s,mapPercentToKeyframes:a,keyframes:l,calculatedDuration:u,totalDuration:c,resolvedDuration:d}=r;if(this.startTime===null)return i.next(0);const{delay:f,repeat:p,repeatType:h,repeatDelay:g,onUpdate:b}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-c/this.speed,this.startTime)),n?this.currentTime=t:this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=Math.round(t-this.startTime)*this.speed;const m=this.currentTime-f*(this.speed>=0?1:-1),y=this.speed>=0?m<0:m>c;this.currentTime=Math.max(m,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=c);let x=this.currentTime,w=i;if(p){const P=Math.min(this.currentTime,c)/d;let R=Math.floor(P),M=P%1;!M&&P>=1&&(M=1),M===1&&R--,R=Math.min(R,p+1),!!(R%2)&&(h==="reverse"?(M=1-M,g&&(M-=g/d)):h==="mirror"&&(w=s)),x=Xi(0,1,M)*d}const C=y?{done:!1,value:l[0]}:w.next(x);a&&(C.value=a(C.value));let{done:k}=C;!y&&u!==null&&(k=this.speed>=0?this.currentTime>=c:this.currentTime<=0);const $=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&k);return $&&o!==void 0&&(C.value=Cf(l,this.options,o)),b&&b(C.value),$&&this.finish(),C}get duration(){const{resolved:t}=this;return t?zr(t.calculatedDuration):0}get time(){return zr(this.currentTime)}set time(t){t=Fr(t),this.currentTime=t,this.holdTime!==null||this.speed===0?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.speed)}get speed(){return this.playbackSpeed}set speed(t){const n=this.playbackSpeed!==t;this.playbackSpeed=t,n&&(this.time=zr(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved){this.pendingPlayState="running";return}if(this.isStopped)return;const{driver:t=DV,onPlay:n}=this.options;this.driver||(this.driver=t(o=>this.tick(o))),n&&n();const r=this.driver.now();this.holdTime!==null?this.startTime=r-this.holdTime:(!this.startTime||this.state==="finished")&&(this.startTime=r),this.state==="finished"&&this.updateFinishedPromise(),this.cancelTime=this.startTime,this.holdTime=null,this.state="running",this.driver.start()}pause(){var t;if(!this._resolved){this.pendingPlayState="paused";return}this.state="paused",this.holdTime=(t=this.currentTime)!==null&&t!==void 0?t:0}complete(){this.state!=="running"&&this.play(),this.pendingPlayState=this.state="finished",this.holdTime=null}finish(){this.teardown(),this.state="finished";const{onComplete:t}=this.options;t&&t()}cancel(){this.cancelTime!==null&&this.tick(this.cancelTime),this.teardown(),this.updateFinishedPromise()}teardown(){this.state="idle",this.stopDriver(),this.resolveFinishedPromise(),this.updateFinishedPromise(),this.startTime=this.cancelTime=null,this.resolver.cancel()}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}}const nP=e=>Array.isArray(e)&&typeof e[0]=="number";function rP(e){return!!(!e||typeof e=="string"&&e in Ev||nP(e)||Array.isArray(e)&&e.every(rP))}const zs=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,Ev={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:zs([0,.65,.55,1]),circOut:zs([.55,0,1,.45]),backIn:zs([.31,.01,.66,-.59]),backOut:zs([.33,1.53,.69,.99])};function VV(e){return oP(e)||Ev.easeOut}function oP(e){if(e)return nP(e)?zs(e):Array.isArray(e)?e.map(VV):Ev[e]}function HV(e,t,n,{delay:r=0,duration:o=300,repeat:i=0,repeatType:s="loop",ease:a,times:l}={}){const u={[t]:n};l&&(u.offset=l);const c=oP(a);return Array.isArray(c)&&(u.easing=c),e.animate(u,{delay:r,duration:o,easing:Array.isArray(c)?"linear":c,fill:"both",iterations:i+1,direction:s==="reverse"?"alternate":"normal"})}const WV=W$(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),rd=10,UV=2e4;function BV(e){return e.type==="spring"||!rP(e.ease)}function GV(e,t){const n=new Tv({...t,keyframes:e,repeat:0,delay:0,isGenerator:!0});let r={done:!1,value:e[0]};const o=[];let i=0;for(;!r.done&&ithis.onKeyframesResolved(i,s),n,r),this.resolver.scheduleResolve()}initPlayback(t,n){var r;let{duration:o=300,times:i,ease:s,type:a,motionValue:l,name:u}=this.options;if(!(!((r=l.owner)===null||r===void 0)&&r.current))return!1;if(BV(this.options)){const{onComplete:d,onUpdate:f,motionValue:p,...h}=this.options,g=GV(t,h);t=g.keyframes,t.length===1&&(t[1]=t[0]),o=g.duration,i=g.times,s=g.ease,a="keyframes"}const c=HV(l.owner.current,u,t,{...this.options,duration:o,times:i,ease:s});return c.startTime=Ei.now(),this.pendingTimeline?(c.timeline=this.pendingTimeline,this.pendingTimeline=void 0):c.onfinish=()=>{const{onComplete:d}=this.options;l.set(Cf(t,this.options,n)),d&&d(),this.cancel(),this.resolveFinishedPromise()},{animation:c,duration:o,times:i,type:a,ease:s,keyframes:t}}get duration(){const{resolved:t}=this;if(!t)return 0;const{duration:n}=t;return zr(n)}get time(){const{resolved:t}=this;if(!t)return 0;const{animation:n}=t;return zr(n.currentTime||0)}set time(t){const{resolved:n}=this;if(!n)return;const{animation:r}=n;r.currentTime=Fr(t)}get speed(){const{resolved:t}=this;if(!t)return 1;const{animation:n}=t;return n.playbackRate}set speed(t){const{resolved:n}=this;if(!n)return;const{animation:r}=n;r.playbackRate=t}get state(){const{resolved:t}=this;if(!t)return"idle";const{animation:n}=t;return n.playState}attachTimeline(t){if(!this._resolved)this.pendingTimeline=t;else{const{resolved:n}=this;if(!n)return Ln;const{animation:r}=n;r.timeline=t,r.onfinish=null}return Ln}play(){if(this.isStopped)return;const{resolved:t}=this;if(!t)return;const{animation:n}=t;n.playState==="finished"&&this.updateFinishedPromise(),n.play()}pause(){const{resolved:t}=this;if(!t)return;const{animation:n}=t;n.pause()}stop(){if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.resolveFinishedPromise(),this.updateFinishedPromise();const{resolved:t}=this;if(!t)return;const{animation:n,keyframes:r,duration:o,type:i,ease:s,times:a}=t;if(n.playState==="idle"||n.playState==="finished")return;if(this.time){const{motionValue:u,onUpdate:c,onComplete:d,...f}=this.options,p=new Tv({...f,keyframes:r,duration:o,type:i,ease:s,times:a,isGenerator:!0}),h=Fr(this.time);u.setWithVelocity(p.sample(h-rd).value,p.sample(h).value,rd)}const{onStop:l}=this.options;l&&l(),this.cancel()}complete(){const{resolved:t}=this;t&&t.animation.finish()}cancel(){const{resolved:t}=this;t&&t.animation.cancel()}static supports(t){const{motionValue:n,name:r,repeatDelay:o,repeatType:i,damping:s,type:a}=t;return WV()&&r&&y$.has(r)&&n&&n.owner&&n.owner.current instanceof HTMLElement&&!n.owner.getProps().onUpdate&&!o&&i!=="mirror"&&s!==0&&a!=="inertia"}}function KV(e,t){let n;const r=()=>{const{currentTime:o}=t,s=(o===null?0:o.value)/100;n!==s&&e(s),n=s};return Je.update(r,!0),()=>Jc(r)}const YV=W$(()=>window.ScrollTimeline!==void 0);class qV{constructor(t){this.stop=()=>this.runAll("stop"),this.animations=t.filter(Boolean)}then(t,n){return Promise.all(this.animations).then(t).catch(n)}getAll(t){return this.animations[0][t]}setAll(t,n){for(let r=0;r{if(YV()&&r.attachTimeline)r.attachTimeline(t);else return r.pause(),KV(o=>{r.time=r.duration*o},t)});return()=>{n.forEach((r,o)=>{r&&r(),this.animations[o].stop()})}}get time(){return this.getAll("time")}set time(t){this.setAll("time",t)}get speed(){return this.getAll("speed")}set speed(t){this.setAll("speed",t)}get duration(){let t=0;for(let n=0;nn[t]())}play(){this.runAll("play")}pause(){this.runAll("pause")}cancel(){this.runAll("cancel")}complete(){this.runAll("complete")}}const XV=(e,t,n,r={},o,i,s)=>a=>{const l=E$(r,e)||{},u=l.delay||r.delay||0;let{elapsed:c=0}=r;c=c-Fr(u);let d={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...l,delay:-c,onUpdate:p=>{t.set(p),l.onUpdate&&l.onUpdate(p)},onComplete:()=>{a(),l.onComplete&&l.onComplete(),s&&s()},onStop:s,name:e,motionValue:t,element:i?void 0:o};Ez(l)||(d={...d,...Tz(e,d)}),d.duration&&(d.duration=Fr(d.duration)),d.repeatDelay&&(d.repeatDelay=Fr(d.repeatDelay)),d.from!==void 0&&(d.keyframes[0]=d.from);let f=!1;if((d.type===!1||d.duration===0&&!d.repeatDelay)&&(d.duration=0,d.delay===0&&(f=!0)),f&&!i&&t.get()!==void 0){const p=Cf(d.keyframes,l);if(p!==void 0)return Je.update(()=>{d.onUpdate(p),d.onComplete()}),new qV([])}return!i&&Qb.supports(d)?new Qb(d):new Tv(d)};class iP{constructor(){this.subscriptions=[]}add(t){return b$(this.subscriptions,t),()=>w$(this.subscriptions,t)}notify(t,n,r){const o=this.subscriptions.length;if(o)if(o===1)this.subscriptions[0](t,n,r);else for(let i=0;i!isNaN(parseFloat(e));class sP{constructor(t,n={}){this.version="11.3.24",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(r,o=!0)=>{const i=Ei.now();this.updatedAt!==i&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(r),this.current!==this.prev&&this.events.change&&this.events.change.notify(this.current),o&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.hasAnimated=!1,this.setCurrent(t),this.owner=n.owner}setCurrent(t){this.current=t,this.updatedAt=Ei.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=QV(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 iP);const r=this.events[t].add(n);return t==="change"?()=>{r(),Je.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()}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const t=Ei.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>Zb)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,Zb);return B$(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(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function od(e,t){return new sP(e,t)}function ZV(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,od(n))}function JV(e,t){const n=kf(e,t);let{transitionEnd:r={},transition:o={},...i}=n||{};i={...i,...r};for(const s in i){const a=ZF(i[s]);ZV(e,s,a)}}function eH(e){return e.getProps()[t$]}class tH extends sP{constructor(){super(...arguments),this.output=[],this.counts=new Map}add(t){const n=x$(t);if(!n)return;const r=this.counts.get(n)||0;this.counts.set(n,r+1),r===0&&(this.output.push(n),this.update());let o=!1;return()=>{if(o)return;o=!0;const i=this.counts.get(n)-1;this.counts.set(n,i),i===0&&(w$(this.output,n),this.update())}}update(){this.set(this.output.length?this.output.join(", "):"auto")}}function nH(e){return!!(dt(e)&&e.add)}function rH(e,t){var n;if(!e.applyWillChange)return;let r=e.getValue("willChange");if(!r&&!(!((n=e.props.style)===null||n===void 0)&&n.willChange)&&(r=new tH("auto"),e.addValue("willChange",r)),nH(r))return r.add(t)}function oH({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function aP(e,t,{delay:n=0,transitionOverride:r,type:o}={}){var i;let{transition:s=e.getDefaultTransition(),transitionEnd:a,...l}=t;r&&(s=r);const u=[],c=o&&e.animationState&&e.animationState.getState()[o];for(const d in l){const f=e.getValue(d,(i=e.latestValues[d])!==null&&i!==void 0?i:null),p=l[d];if(p===void 0||c&&oH(c,d))continue;const h={delay:n,elapsed:0,...E$(s||{},d)};let g=!1;if(window.MotionHandoffAnimation){const m=eH(e);if(m){const y=window.MotionHandoffAnimation(m,d,Je);y!==null&&(h.elapsed=y,g=!0)}}f.start(XV(d,f,p,e.shouldReduceMotion&&Xr.has(d)?{type:!1}:h,e,g,rH(e,d)));const b=f.animation;b&&u.push(b)}return a&&Promise.all(u).then(()=>{Je.update(()=>{a&&JV(e,a)})}),u}function Lm(e,t,n={}){var r;const o=kf(e,t,n.type==="exit"?(r=e.presenceContext)===null||r===void 0?void 0:r.custom:void 0);let{transition:i=e.getDefaultTransition()||{}}=o||{};n.transitionOverride&&(i=n.transitionOverride);const s=o?()=>Promise.all(aP(e,o,n)):()=>Promise.resolve(),a=e.variantChildren&&e.variantChildren.size?(u=0)=>{const{delayChildren:c=0,staggerChildren:d,staggerDirection:f}=i;return iH(e,t,c+u,d,f,n)}:()=>Promise.resolve(),{when:l}=i;if(l){const[u,c]=l==="beforeChildren"?[s,a]:[a,s];return u().then(()=>c())}else return Promise.all([s(),a(n.delay)])}function iH(e,t,n=0,r=0,o=1,i){const s=[],a=(e.variantChildren.size-1)*r,l=o===1?(u=0)=>u*r:(u=0)=>a-u*r;return Array.from(e.variantChildren).sort(sH).forEach((u,c)=>{u.notify("AnimationStart",t),s.push(Lm(u,t,{...i,delay:n+l(c)}).then(()=>u.notify("AnimationComplete",t)))}),Promise.all(s)}function sH(e,t){return e.sortNodePosition(t)}function aH(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const o=t.map(i=>Lm(e,i,n));r=Promise.all(o)}else if(typeof t=="string")r=Lm(e,t,n);else{const o=typeof t=="function"?kf(e,t,n.custom):t;r=Promise.all(aP(e,o,n))}return r.then(()=>{e.notify("AnimationComplete",t)})}const lH=[...lv].reverse(),uH=lv.length;function cH(e){return t=>Promise.all(t.map(({animation:n,options:r})=>aH(e,n,r)))}function dH(e){let t=cH(e),n=Jb(),r=!0;const o=l=>(u,c)=>{var d;const f=kf(e,c,l==="exit"?(d=e.presenceContext)===null||d===void 0?void 0:d.custom:void 0);if(f){const{transition:p,transitionEnd:h,...g}=f;u={...u,...g,...h}}return u};function i(l){t=l(e)}function s(l){const u=e.getProps(),c=e.getVariantContext(!0)||{},d=[],f=new Set;let p={},h=1/0;for(let b=0;bh&&w,R=!1;const M=Array.isArray(x)?x:[x];let O=M.reduce(o(m),{});C===!1&&(O={});const{prevResolvedValues:E={}}=y,_={...E,...O},T=I=>{P=!0,f.has(I)&&(R=!0,f.delete(I)),y.needsAnimating[I]=!0;const L=e.getValue(I);L&&(L.liveStyle=!1)};for(const I in _){const L=O[I],F=E[I];if(p.hasOwnProperty(I))continue;let j=!1;Em(L)&&Em(F)?j=!T$(L,F):j=L!==F,j?L!=null?T(I):f.add(I):L!==void 0&&f.has(I)?T(I):y.protectedKeys[I]=!0}y.prevProp=x,y.prevResolvedValues=O,y.isActive&&(p={...p,...O}),r&&e.blockInitialAnimation&&(P=!1),P&&(!k||R)&&d.push(...M.map(I=>({animation:I,options:{type:m}})))}if(f.size){const b={};f.forEach(m=>{const y=e.getBaseTarget(m),x=e.getValue(m);x&&(x.liveStyle=!0),b[m]=y??null}),d.push({animation:b})}let g=!!d.length;return r&&(u.initial===!1||u.initial===u.animate)&&!e.manuallyAnimateOnMount&&(g=!1),r=!1,g?t(d):Promise.resolve()}function a(l,u){var c;if(n[l].isActive===u)return Promise.resolve();(c=e.variantChildren)===null||c===void 0||c.forEach(f=>{var p;return(p=f.animationState)===null||p===void 0?void 0:p.setActive(l,u)}),n[l].isActive=u;const d=s(l);for(const f in n)n[f].protectedKeys={};return d}return{animateChanges:s,setActive:a,setAnimateFunction:i,getState:()=>n,reset:()=>{n=Jb(),r=!0}}}function fH(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!T$(t,e):!1}function ro(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function Jb(){return{animate:ro(!0),whileInView:ro(),whileHover:ro(),whileTap:ro(),whileDrag:ro(),whileFocus:ro(),exit:ro()}}class pH extends cs{constructor(t){super(t),t.animationState||(t.animationState=dH(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();qa(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===void 0||t.call(this)}}let hH=0;class mH extends cs{constructor(){super(...arguments),this.id=hH++}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 o=this.node.animationState.setActive("exit",!t);n&&!t&&o.then(()=>n(this.id))}mount(){const{register:t}=this.node.presenceContext||{};t&&(this.unmount=t(this.id))}unmount(){}}const gH={animation:{Feature:pH},exit:{Feature:mH}},ew=()=>({min:0,max:0}),lP=()=>({x:ew(),y:ew()});function vH({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function yH(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 xH(e,t){return vH(yH(e.getBoundingClientRect(),t))}const Nm={current:null},uP={current:!1};function bH(){if(uP.current=!0,!!sv)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>Nm.current=e.matches;e.addListener(t),t()}else Nm.current=!1}function wH(e,t,n){for(const r in t){const o=t[r],i=n[r];if(dt(o))e.addValue(r,o);else if(dt(i))e.addValue(r,od(o,{owner:e}));else if(i!==o)if(e.hasValue(r)){const s=e.getValue(r);s.liveStyle===!0?s.jump(o):s.hasAnimated||s.set(o)}else{const s=e.getStaticValue(r);e.addValue(r,od(s!==void 0?s:o,{owner:e}))}}for(const r in n)t[r]===void 0&&e.removeValue(r);return t}const tw=new WeakMap,SH=[...R$,st,ds],kH=e=>SH.find(O$(e)),nw=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],CH=uv.length;class $H{scrapeMotionValuesFromProps(t,n,r){return{}}constructor({parent:t,props:n,presenceContext:r,reducedMotionConfig:o,blockInitialAnimation:i,visualState:s},a={}){this.applyWillChange=!1,this.resolveKeyframes=(f,p,h,g)=>new this.KeyframeResolver(f,p,h,g,this),this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=wv,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.isRenderScheduled=!1,this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.isRenderScheduled=!1,this.scheduleRender=()=>{this.isRenderScheduled||(this.isRenderScheduled=!0,Je.render(this.render,!1,!0))};const{latestValues:l,renderState:u}=s;this.latestValues=l,this.baseTarget={...l},this.initialValues=n.initial?{...l}:{},this.renderState=u,this.parent=t,this.props=n,this.presenceContext=r,this.depth=t?t.depth+1:0,this.reducedMotionConfig=o,this.options=a,this.blockInitialAnimation=!!i,this.isControllingVariants=Sf(n),this.isVariantNode=i$(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:c,...d}=this.scrapeMotionValuesFromProps(n,{},this);for(const f in d){const p=d[f];l[f]!==void 0&&dt(p)&&p.set(l[f],!1)}}mount(t){this.current=t,tw.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((n,r)=>this.bindToMotionValue(r,n)),uP.current||bH(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:Nm.current,this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){tw.delete(this.current),this.projection&&this.projection.unmount(),Jc(this.notifyUpdate),Jc(this.render),this.valueSubscriptions.forEach(t=>t()),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const t in this.events)this.events[t].clear();for(const t in this.features){const n=this.features[t];n&&(n.unmount(),n.isMounted=!1)}this.current=null}bindToMotionValue(t,n){const r=Xr.has(t),o=n.on("change",s=>{this.latestValues[t]=s,this.props.onUpdate&&Je.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0)}),i=n.on("renderRequest",this.scheduleRender);this.valueSubscriptions.set(t,()=>{o(),i(),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 qi){const n=qi[t];if(!n)continue;const{isEnabled:r,Feature:o}=n;if(!this.features[t]&&o&&r(this.props)&&(this.features[t]=new o(this)),this.features[t]){const i=this.features[t];i.isMounted?i.update():(i.mount(),i.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):lP()}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=od(n===null?void 0:n,{owner:this}),this.addValue(t,r)),r}readValue(t,n){var r;let o=this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:(r=this.getBaseTargetFromProps(this.props,t))!==null&&r!==void 0?r:this.readValueFromInstance(this.current,t,this.options);return o!=null&&(typeof o=="string"&&(_$(o)||M$(o))?o=parseFloat(o):!kH(o)&&ds.test(n)&&(o=V$(t,n)),this.setBaseTarget(t,dt(o)?o.get():o)),dt(o)?o.get():o}setBaseTarget(t,n){this.baseTarget[t]=n}getBaseTarget(t){var n;const{initial:r}=this.props;let o;if(typeof r=="string"||typeof r=="object"){const s=xv(this.props,r,(n=this.presenceContext)===null||n===void 0?void 0:n.custom);s&&(o=s[t])}if(r&&o!==void 0)return o;const i=this.getBaseTargetFromProps(this.props,t);return i!==void 0&&!dt(i)?i:this.initialValues[t]!==void 0&&o===void 0?void 0:this.baseTarget[t]}on(t,n){return this.events[t]||(this.events[t]=new iP),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}}class cP extends $H{constructor(){super(...arguments),this.KeyframeResolver=H$}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]}}function PH(e){return window.getComputedStyle(e)}class TH extends cP{constructor(){super(...arguments),this.type="html",this.applyWillChange=!0,this.renderInstance=h$}readValueFromInstance(t,n){if(Xr.has(n)){const r=kv(n);return r&&r.default||0}else{const r=PH(t),o=(c$(n)?r.getPropertyValue(n):r[n])||0;return typeof o=="string"?o.trim():o}}measureInstanceViewportBox(t,{transformPagePoint:n}){return xH(t,n)}build(t,n,r){hv(t,n,r.transformTemplate)}scrapeMotionValuesFromProps(t,n,r){return yv(t,n,r)}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;dt(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}class EH extends cP{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=lP}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(Xr.has(n)){const r=kv(n);return r&&r.default||0}return n=m$.has(n)?n:wf(n),t.getAttribute(n)}scrapeMotionValuesFromProps(t,n,r){return v$(t,n,r)}build(t,n,r){gv(t,n,this.isSVGTag,r.transformTemplate)}renderInstance(t,n,r,o){g$(t,n,r,o)}mount(t){this.isSVGTag=vv(t.tagName),super.mount(t)}}const MH=(e,t)=>cv(e)?new EH(t):new TH(t,{allowProjection:e!==S.Fragment}),_H=PF(iz);class AH extends S.Component{getSnapshotBeforeUpdate(t){const n=this.props.childRef.current;if(n&&t.isPresent&&!this.props.isPresent){const r=this.props.sizeRef.current;r.height=n.offsetHeight||0,r.width=n.offsetWidth||0,r.top=n.offsetTop,r.left=n.offsetLeft}return null}componentDidUpdate(){}render(){return this.props.children}}function OH({children:e,isPresent:t}){const n=S.useId(),r=S.useRef(null),o=S.useRef({width:0,height:0,top:0,left:0}),{nonce:i}=S.useContext(ov);return S.useInsertionEffect(()=>{const{width:s,height:a,top:l,left:u}=o.current;if(t||!r.current||!s||!a)return;r.current.dataset.motionPopId=n;const c=document.createElement("style");return i&&(c.nonce=i),document.head.appendChild(c),c.sheet&&c.sheet.insertRule(` [data-motion-pop-id="${n}"] { position: absolute !important; width: ${s}px !important; diff --git a/index.html b/index.html index f54e2b6..04546e0 100644 --- a/index.html +++ b/index.html @@ -28,7 +28,7 @@ Akshay Rajan - +